@pendo/agent 2.277.0 → 2.278.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/debugger-plugin.min.js +1 -1
- package/dist/dom.esm.js +1 -1
- package/dist/pendo.debugger.min.js +12 -10
- package/dist/pendo.module.js +51 -24
- package/dist/pendo.module.min.js +1 -1
- package/dist/pendo.preview.min.js +10 -8
- package/package.json +1 -1
package/dist/pendo.module.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*
|
|
2
2
|
@license https://agent.pendo.io/licenses
|
|
3
3
|
*/
|
|
4
|
-
function loadAgent(h){P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var P,G={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 P[e>>18&63]+P[e>>12&63]+P[e>>6&63]+P[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=P[n>>2])+P[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=P[n>>10])+P[n>>4&63])+P[n<<2&63]}return o}},Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function D(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var B,o,W,$,U,j,z,e={exports:{}};function Z(e){e?(j[0]=j[16]=j[1]=j[2]=j[3]=j[4]=j[5]=j[6]=j[7]=j[8]=j[9]=j[10]=j[11]=j[12]=j[13]=j[14]=j[15]=0,this.blocks=j):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}st=e,B="object"==typeof window?window:{},i=!B.JS_SHA1_NO_COMMON_JS&&st.exports,o="0123456789abcdef".split(""),W=[-2147483648,8388608,32768,128],$=[24,16,8,0],U=["hex","array","digest","arrayBuffer"],j=[],z=function(t){return function(e){return new Z(!0).update(e)[t]()}},Z.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===B.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]<<$[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<$[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<$[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<$[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<$[3&n++],a[n>>2]|=(128|t>>12&63)<<$[3&n++]),a[n>>2]|=(128|t>>6&63)<<$[3&n++]),a[n>>2]|=(128|63&t)<<$[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}},Z.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=W[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())},Z.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},Z.prototype.toString=Z.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]},Z.prototype.array=Z.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]},Z.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},qe=function(){var t=z("hex");t.create=function(){return new Z},t.update=function(e){return t.create().update(e)};for(var e=0;e<U.length;++e){var n=U[e];t[n]=z(n)}return t}(),i?st.exports=qe:B.sha1=qe;var V,Y=D(e.exports),H={createScriptURL:function(e){return e},createHTML:function(e){return e}};function K(e){return V||(V=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",H):H),e.trustedTypesPolicy=V),V}var v,X="stagingServerHashes",J={};function q(e){return e.loadAsModule}function Q(e){return"staging"===e.environmentName}function ee(e){return"extension"===e.installType}function te(e,t,n){e=function(e){void 0===e&&(e=[]);for(var t=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/g,n=0;n<e.length;n++){var i=e[n];if(t.test(i.src))return i.src.replace(/\.js$/,"-staging.js")}}(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function ne(e,t){if(Q(e=e||J))return!0;if(t=t||window.location,(o=e)&&o.stagingAgentUrl&&o[X]){o=t.host;for(var n=G.uint8ToBase64(Y.create().update(o).digest()),i=0,r=e[X].length;i<r;++i)if(e[X][i]===n)return!0}var o;if((o=e)&&o.stagingAgentUrl&&o.stagingServers)for(var a=0,s=e.stagingServers.length;a<s;++a){var d=e.stagingServers[a];if((d="string"==typeof d?new RegExp("^"+d+"$"):d)instanceof RegExp&&d.test(t.host))return!0}return!1}var ie=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function re(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function oe(e){if(!e._q)for(var t=ie,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){re(t,e,arguments)}}(t[n],e)}function ae(e,t,n){if(!ee(i=e)&&!Q(i)&&ne(i)){i=te(e,!0,n);if(i)return oe(t),de(i,t),!0}var i;return!1}function se(e,t,n){if(r=n,!ee(i=e)&&!i.unminified&&r){i=te(e,!1,n);if(i)return oe(t),de(i,t),!0}var i,r;return!1}function de(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=K(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function ue(e){J=e}function ce(){return void 0===h?{}:h}function le(e){return J[e]}pe(window.setTimeout,window);function pe(e,t){return"function"==typeof e.bind?e.bind(t):e}var he,Dt=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 pe(e[t],e)}(window),y=D(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Bt&&Bt.global===Bt&&Bt||Function("return this")()||{},i=Array.prototype,P=Object.prototype,G="undefined"!=typeof Symbol?Symbol.prototype:null,D=i.push,d=i.slice,l=P.toString,B=P.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),W=Array.isArray,$=Object.keys,U=Object.create,j=t&&ArrayBuffer.isView,z=isNaN,Z=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),Y=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],H=Math.pow(2,53)-1;function c(r,o){return o=null==o?r.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+o];switch(o){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}for(var i=Array(o+1),n=0;n<o;n++)i[n]=arguments[n];return i[o]=t,r.apply(this,i)}}function o(e){var t=typeof e;return"function"==t||"object"==t&&!!e}function K(e){return void 0===e}function X(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var J=r("String"),q=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=W||r("Array");function g(e,t){return null!=e&&B.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return q(e)&&z(e)}function de(e){return function(){return e}}function ue(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=H}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=ue(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return j?j(e)&&!h(e):le(e)&&pe.test(l.call(e))}:de(!1),v=ce("length");function fe(e,t){t=function(t){for(var n={},e=t.length,i=0;i<e;++i)n[t[i]]=!0;return{contains:function(e){return!0===n[e]},push:function(e){return n[e]=!0,t.push(e)}}}(t);var n=Y.length,i=e.constructor,r=p(i)&&i.prototype||P,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=Y[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if($)return $(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return G.valueOf.call(e)===G.valueOf.call(t);case"[object ArrayBuffer]":case ve:return c(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var d,u=y(e);if(s=u.length,y(t).length!==s)return!1;for(;s--;)if(d=u[s],!g(t,d)||!ye(e[d],t[d],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function u(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return V&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=u(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==we||!p(e[Ie])}}var Ie="forEach",e=["clear","delete"],n=["get","has","set"],W=e.concat(Ie,n),we=e.concat(n),t=["add"].concat(e,Ie,"has"),n=a?be(W):r("Map"),e=a?be(we):r("WeakMap"),W=a?be(t):r("Set"),a=r("WeakSet");function I(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ce(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Se(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function Ae(d,u){return function(e){var t=arguments.length;if(u&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=d(i),o=r.length,a=0;a<o;a++){var s=r[a];u&&void 0!==e[s]||(e[s]=i[s])}return e}}var Ee=Ae(u),s=Ae(y),Te=Ae(u,!0);function _e(e){var t;return o(e)?U?U(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function xe(e){return f(e)?e:[e]}function w(e){return b.toPath(e)}function Re(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function ke(e,t,n){e=Re(e,w(t));return K(e)?n:e}function Oe(e){return e}function C(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=w(t),function(e){return Re(e,t)}}function S(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?S(e,t,n):(o(e)&&!f(e)?C:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function A(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Fe(){}function Pe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=xe,b.iteratee=Le;var E=Date.now||function(){return(new Date).getTime()};function Ge(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},De=Ge(t),t=Ge(Ce(t)),Be=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},We=/(.)^/,$e={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ue=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+$e[e]}var ze=/^\s*(\w|\$)+\s*$/;var Ze=0;function Ve(e,t,n,i,r){return i instanceof t?(i=_e(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}),Ye=(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")})),_=ue(v);function x(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(_(s)&&(f(s)||ae(s)))if(1<t)x(s,t-1,n,i),r=i.length;else for(var d=0,u=s.length;d<u;)i[r++]=s[d++];else n||(i[r++]=s)}return i}var He=c(function(e,t){var n=(t=x(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ye(e[i],e)}return e});var Ke=c(function(e,t,n){return Dt(function(){return e.apply(null,n)},t)}),Xe=T(Ke,b,1);function Je(e){return function(){return!e.apply(this,arguments)}}function qe(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=T(qe,2);function et(e,t,n){t=A(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=A(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=A(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(d.call(e,i,r),se))?n+i:-1;for(n=0<o?i:r-1;0<=n&&n<r;n+=o)if(e[n]===t)return n;return-1}}var at=ot(1,nt,rt),st=ot(-1,it);function dt(e,t,n){t=(_(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function R(e,t,n){if(t=S(t,n),_(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function k(e,t,n){t=A(t,n);for(var i=!_(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function ut(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=S(t,i,4),s=n,d=!_(o)&&y(o),u=(d||o).length,c=0<p?0:u-1;for(r||(s=o[d?d[c]:c],c+=p);0<=c&&c<u;c+=p){var l=d?d[c]:c;s=a(s,o[l],l,o)}return s}}var ct=ut(1),lt=ut(-1);function O(e,i,t){var r=[];return i=A(i,t),R(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=A(t,n);for(var i=!_(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=A(t,n);for(var i=!_(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return _(e)||(e=I(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=w(n),r=n.slice(0,-1),n=n[n.length-1]),k(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Re(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return k(e,Ne(t))}function mt(e,i,t){var n,r,o=-Infinity,a=-Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=_(e)?e:I(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=A(i,t),R(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?d.call(e):J(e)?e.match(vt):_(e)?k(e,Oe):I(e):[]}function bt(e,t,n){if(null==t||n)return(e=_(e)?e:I(e))[Pe(e.length-1)];for(var i=yt(e),n=v(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=Pe(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=A(i,e),R(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var It=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),wt=M(function(e,t,n){e[n]=t}),Ct=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),St=M(function(e,t,n){e[n?0:1].push(t)},!0);function At(e,t,n){return t in n}var Et=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=S(i,t[1])),t=u(e)):(i=At,t=x(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),Tt=c(function(e,n){var t,i=n[0];return p(i)?(i=Je(i),1<n.length&&(t=n[1])):(n=k(x(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Et(e,i,t)});function _t(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function xt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:_t(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var Rt=c(function(e,t){return t=x(t,!0,!0),O(e,function(e){return!N(t,e)})}),kt=c(function(e,t){return Rt(e,t)});function Ot(e,t,n,i){X(t)||(i=n,n=t,t=!1),null!=n&&(n=A(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var d=e[a],u=n?n(d,a,e):d;t&&!n?(a&&o===u||r.push(d),o=u):n?N(o,u)||(o.push(u),r.push(d)):N(r,d)||r.push(d)}return r}var Nt=c(function(e){return Ot(x(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Ft(e,t){return e._chain?b(t).chain():t}function Pt(n){return R(Se(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return D.apply(e,arguments),Ft(this,t.apply(b,e))}}),b}R(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Ft(this,e)}}),R(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Ft(this,e=null!=e?t.apply(e,arguments):e)}});var F=Pt({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:K,isBoolean:X,isElement:function(e){return!(!e||1!==e.nodeType)},isString:J,isNumber:q,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&Z(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||J(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:W,isWeakSet:a,keys:y,allKeys:u,values:I,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ce,functions:Se,methods:Se,extend:Ee,extendOwn:s,assign:s,defaults:Te,create:function(e,t){return e=_e(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ee({},e):e},tap:function(e,t){return t(e),e},get:ke,has:function(e,t){for(var n=(t=w(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=A(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:de,noop:Fe,toPath:xe,property:Ne,propertyOf:function(t){return null==t?Fe:function(e){return ke(t,e)}},matcher:C,matches:C,times:function(e,t,n){var i=Array(Math.max(0,e));t=S(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Pe,now:E,escape:De,unescape:t,templateSettings:Be,template:function(o,e,t){e=Te({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||We).source,(e.interpolate||We).source,(e.evaluate||We).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(Ue,je),a=r+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",t=e.variable){if(!ze.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=w(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++Ze+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:T,bind:Ye,bindAll:He,memoize:function(i,r){var o=function(e){var t=o.cache,n=""+(r?r.apply(this,arguments):e);return g(t,n)||(t[n]=i.apply(this,arguments)),t[n]};return o.cache={},o},delay:Ke,defer:Xe,throttle:function(n,i,r){var o,a,s,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:E(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=E(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),u=e,d=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Dt(c,t)),d};return e.cancel=function(){clearTimeout(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=E()-o;e<n?r=Dt(u,n-e):(r=null,i||(s=t.apply(d,a)),r||(a=d=null))},e=c(function(e){return d=this,a=e,o=E(),r||(r=Dt(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){clearTimeout(r),r=a=d=null},e},wrap:function(e,t){return T(t,e)},negate:Je,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:qe,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:dt,detect:dt,findWhere:function(e,t){return dt(e,C(t))},each:R,forEach:R,map:k,collect:k,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Je(A(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,C(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=_(e)?e:I(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=A(i,t),R(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=A(i,t),gt(k(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:It,indexBy:wt,countBy:Ct,partition:St,toArray:yt,size:function(e){return null==e?0:(_(e)?e:y(e)).length},pick:Et,omit:Tt,first:xt,head:xt,take:xt,initial:_t,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return x(e,t,!1)},without:kt,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:Rt,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(d.call(e,i,i+=t));return n},mixin:Pt,"default":b}),Gt=F.toPath;return F.mixin({toPath:function(e){return F.isString(e)?e.split("."):Gt(e)}}),F._=F}());function fe(e){return!(null==e)}function ge(e){return y.isFunction(e)||y.isRegExp(e)?e:y.isArray(e)?y.map(e,ge):y.isObject(e)?y.reduce(e,function(e,t,n){return e[n]=ge(t),e},{}):e}me=y.all,ve=y.each,ye=y.filter,be=y.first,Ie=y.find,we=y.map,Ce=y.pluck,Se="global",Ae="default",Ee={},t("additionalApiKeys",[r="pendoconfig",n="snippet"]),t("allowedOriginServers"),t("allowMixedApiKeyFrames",[n,r],!0),t("annotateUrl",[n]),t("apiKey",[r,n]),t("assetHost",[n,r]),t("autoFrameInstall",[n,r],!1),t("blockAgentMetadata",[r],!1),t("contentHost",[n,r]),t("cookieDomain",[n,r]),t("dataHost",[n,r]),t("disableAutoInitialize"),t("disableCookies",[n,r]),t("disablePendo",[n,r],!1),t("disablePersistence",[n,r]),t("enableSignedMetadata",[r],!1),t("frameIdentitySync",[n,r],!1),t("frameIdentityTopDownOnly",[n,r],!0),t("forceAnonymous",[n,r],!1),t("identityStorageLifetime",[n,r]),t("identityStorageSuffix",[n,r]),t("ignoreHashRouting",[n,r]),t("initializeImmediately",[n,r],!1),t("installType"),t("localStorageOnly",[n,r]),t("location.pushState",[n,r],!0),t("maxCookieTTLDays",[n,r],Infinity),t("observeShadowRoots",[n,r],!1),t("pendoCore",[r],!0),t("pendoGlobalKey",[r]),t("preferBroadcastChannel",[n,r],!1),t("preferMutationObserver",[n,r],!1),t("preventCookieRefresh"),t("preventUnloadListener",[n,r],!1),t("promotedAgentMetadataConfigurations",[r]),t("queryStringWhitelist",[n]),t("requireSignedMetadata",[r],!1),t("sanitizeUrl",[n]),t("selfHosted"),t("selfHostedAgentUrl",[n,r]),t("sendEventsWithPostOnly",[n,r],!1),t("siblingSelectors"),t("dropAnonymous"),t("allowedText",[n,r],[]),t("analytics.excludeEvents",[n,r],[]),t("enableDebugEvents",[n,r]),t("freeNPSData"),t("eventPropertyConfigurations"),t("eventPropertyMatchParents",[n,r],!0),t("excludeAllText",[r,n],!1,!0),t("excludeNonGuideAnalytics",[n,r],!1),t("htmlAttributeBlacklist"),t("htmlAttributes"),t("interceptElementRemoval",[n,r],!1),t("interceptPreventDefault",[n,r],!0),t("interceptStopPropagation",[n,r],!0),t("syntheticClicks.elementRemoval",[n,r],!1),t("syntheticClicks.targetChanged",[n,r],!0),t("xhrWhitelist"),t("appAutoOrdering",[n,r]),t("cacheGuides",[n,r],!1),t("cacheGuidesTimeout",[r],6e5),t("delayGuides",[n]),t("disableDesigner",[r,n],!1),t("disableDesignerKeyboardShortcut",[r],!1),t("disableGlobalCSS",[n,r],!1),t("disableGuidePseudoStyles",[n,r],!1),t("disableGuides",[n]),t("disablePrefetch",[n,r]),t("enableDesignerKeyboardShortcut",[n]),t("enableGuideTimeout",[r,n],!1),t("guideCssAssetPath"),t("guideSeenTimeoutLength",[r,n],1e4),t("guideTimeout",[n]),t("guideValidation",[n,r],!1),t("guides.attachPoint",[n]),t("guides.delay",[n]),t("guides.disabled",[n]),t("guides.ejectOnTimeout",[n,r],!1),t("guides.globalScripts",[n,r],[]),t("guides.timeout",[n]),t("guides.tooltip.arrowSize",[n]),t("inlineStyleNonce",[n]),t("leaderKey",[n,r],[]),t("preventCodeInjection",[r,n,Se],!1),t("previewModeAssetPath"),t("storage.allowKeys",[n],"*"),t("disableFeedback",[n]),t("disableFeedbackAutoInit"),t("feedbackSettings",[r],{}),t("pendoFeedback",[r],!1),t("crossAppGuideStorageSuffix",[n,r]),t("enableCrossOriginIsolation",[n,r],!1),t("adoptHost"),t("adoptAnalyticsForwarding"),t("agentDebuggerPluginLoader"),t("allowPartnerAnalyticsForwarding",[n],!1),t("adoptPrioritizeAdoptGuides",[r],!1),t("designerAgentPluginsLoader",[r,n]),t("trainingPartner"),t("errorClickLogging",[r],!1),t("forceParentDesigner",[n]),t("enableAllEmbeddedGuideEvents",[r],!1),t("formValidation",[r],!1),(Te={})[n]=function(){return{lookup:he||window.pendo_options,name:n}},Te[r]=function(){return{lookup:J,name:r}},Te[Se]=function(){return{lookup:v,name:Se}},Ne.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"};var me,ve,ye,be,Ie,we,Ce,n,r,Se,Ae,Ee,Te,m={audit:Me,get:function(e,t){return Oe(e,t).value},getLocalConfig:function(e,t){return arguments.length?Oe(e,t,[n]).value:ge(he)},getHostedConfig:function(e,t){return Oe(e,t,[r]).value},addOption:t,setLocalConfig:function(e){he=e},options:function(){return Ce(Ee,"name")},sources:{SNIPPET_SRC:n,PENDO_CONFIG_SRC:r,GLOBAL_SRC:Se,DEFAULT_SRC:Ae},validate:function(t){t.groupCollapsed("Validate Config options"),ve(Me(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),ve(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}};function t(e,t,n,i){void 0===t&&(t=[r]),e&&!Ee[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),Ee[e]=n)}function _e(e){return Ee[e]||{name:e}}function xe(e,t){if(t)return t=t(),fe(e=y.get(t.lookup,(t=e,y.get(t,"key")||y.get(t,"name"))))?e:undefined}function Re(e,t){var n=xe(e,Te[t]);return new Ne(e.name,n,t)}function ke(e,t){return t=t||y.get(e,"supportedSources",[n,r,Se]),ye(we(t,y.partial(Re,e)),function(e){return fe(e.value)})}function Oe(e,t,n){var i=_e(e),e=new Ne(e,t=t||y.get(i,"defaultValue",null),Ae),n=ke(i,n);return i.useAnySource&&fe(t)?Ie(n,function(e){return e.value!==t})||e:be(n)||e}function Ne(e,t,n){this.name=e,this.value=t,this.source=n}function Me(){var n=[];return ve(Ee,function(e){var t;n.push({name:e.name,active:Oe(e.name),conflicts:(e=_e(e=e.name),(t=ye(ke(e),function(e){return e.source!==Ae})).length<2||me(Ce(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}var Le="prod",Fe="extension",Pe="native";function Ge(){return m.get("installType")||Pe}function De(e){var t;return e===Le?"pendo-io-static":"prod-jp"===e?"pendo-jp-prod-static":"pendo-"+((t=/^prod-(.+)$/.exec(e))&&1<t.length?t[1]:e)+"-static"}var Be,We=function(e,t){return e=e||10,(t=!isNaN(Ze)&&(!t||Ze<t))&&Be<e};function $e(e){return parseInt(e,10)}var Ue=function(e){return y.isString(e)?e.toLowerCase():e};function je(){return(window.navigator||{}).userAgent}i=je(),st=$e((/msie (\d+)/.exec(Ue(i))||[])[1]),Be=st=isNaN(st)?$e((/trident\/.*; rv:(\d+)/.exec(Ue(i))||[])[1]):st;var ze,Ze=function(e,t){e=$e((/trident\/(\d+)/.exec(Ue(e))||[])[1]);return e=isNaN(e)&&7==t?3:e}(je(),Be),Ve={},Ye=$e((/android (\d+)/.exec(Ue(je()))||[])[1]),He=/Boxee/i.test(je()),Ke=window.document||{},Xe=Ke.documentMode,Je=/^(Moz|webkit|O|ms)(?=[A-Z])/,qe=Ke.body&&Ke.body.style,e=!1,i=!1;if(qe){for(var Qe in qe)if(Qe=Je.exec(Qe)){ze=(ze=Qe[0]).substr(0,1).toUpperCase()+ze.substr(1);break}ze=ze||"WebkitOpacity"in qe&&"webkit",e=!!("transition"in qe||ze+"Transition"in qe),i=!!("animation"in qe||ze+"Animation"in qe),!Ye||e&&i||(e=y.isString(Ke.body.style.webkitTransition),i=y.isString(Ke.body.style.webkitAnimation))}var et={supportsHistoryApi:y.memoize(function(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&y.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&y.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&y.get(n,"pushState.writable",!0)&&y.get(n,"replaceState.writable",!0),i=!(Ye<4),r=Ge()===Fe;return!(!e||t||!n||!i||He||r)}),supportsHashChange:function(){var e="onhashchange"in window,t=!Xe||7<Xe,n=Ge()===Fe;return!(!e||!t||n)},hasEvent:function(e){var t;return("input"!=e||9!=Be)&&(y.isUndefined(Ve[e])&&(t=Ke.createElement("div"),Ve[e]="on"+e in t),Ve[e])},vendorPrefix:ze,transitions:e,animations:i,android:Ye,msie:Be,msieDocumentMode:Xe,safari:/apple/i.test(navigator.vendor),sri:"integrity"in document.createElement("script"),addEventListener:y.isFunction(window.addEventListener),MutationObserver:/native/.test(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:y.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(je())})},tt=function(){return!isNaN(Be)&&11!=Be&&"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,Be<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+v.TOOLTIP_ARROW_SIZE),e.arrow.top=i-v.TOOLTIP_ARROW_SIZE,10==Be?e.arrow.top--:Be<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=10+v.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*v.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-v.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-v.TOOLTIP_ARROW_SIZE),e.arrow.left=r-v.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-v.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e},it="",rt="",ot="",at="",st="",dt="2.277.0_",qe="2.277.0",ut="xhr",ct=function(){return tt()?dt+"+quirksmode":dt};function lt(){return(le("installType")||ce().installType)===Fe}function pt(){return-1!==it.indexOf("prod")}var ht=/^\s+|\s+$/g;function ft(e){for(var t=[],n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t.push(i):i<2048?t.push(192|i>>6,128|63&i):i<55296||57344<=i?t.push(224|i>>12,128|i>>6&63,128|63&i):(n++,i=65536+((1023&i)<<10|1023&e.charCodeAt(n)),t.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return t}var gt=(gt=String.prototype.trim)||function(){return this.replace(ht,"")},e={exports:{}};!function(){var q=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===q?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&d(this)}function d(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=u[s],s=0,o===r.length)&&(r=d(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=u[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var u=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,P,n=this.input;switch(this.d){case 0:for(t=0,P=n.length;t<P;){var G,D,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===P,o=q,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),G=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&G,a[s++]=G>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,D=i.length;o<D;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),l=0,B=c.length;l<B;l++)if(d=c[l],te.prototype.b.apply(u,ie[d]),256<d)u.b(c[++l],c[++l],Q),u.b(c[++l],5),u.b(c[++l],c[++l],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,W,b,I,w,$,C=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),S=ne;for(C.b(1,1,Q),C.b(S,2,Q),p=re(this,n),S=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var A,E,T,_,x,z=h,Z=f,R=new(ee?Uint32Array:Array)(z+Z),k=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=A=0;N<z;N++)R[A++]=m[N];for(N=0;N<Z;N++)R[A++]=v[N];if(!ee)for(N=0,T=O.length;N<T;++N)O[N]=0;for(N=_=0,T=R.length;N<T;N+=A){for(A=1;N+A<T&&R[N+A]===R[N];++A);if(E=A,0===R[N])if(E<3)for(;0<E--;)O[k[_++]=0]++;else for(;0<E;)(x=E-3<(x=E<138?E:138)&&x<E?E-3:x)<=10?(k[_++]=17,k[_++]=x-3,O[17]++):(k[_++]=18,k[_++]=x-11,O[18]++),E-=x;else if(k[_++]=R[N],O[R[N]]++,--E<3)for(;0<E--;)k[_++]=R[N],O[R[N]]++;else for(;0<E;)E-3<(x=E<6?E:6)&&x<E&&(x=E-3),k[_++]=16,k[_++]=x-3,O[16]++,E-=x}for(e=ee?k.subarray(0,_):k.slice(0,_),y=oe(O,7),w=0;w<19;w++)j[w]=y[U[w]];for(g=19;4<g&&0===j[g-1];g--);for(W=ae(y),C.b(h-257,5,Q),C.b(f-1,5,Q),C.b(g-4,4,Q),w=0;w<g;w++)C.b(j[w],3,Q);for(w=0,$=e.length;w<$;w++)if(b=e[w],C.b(W[b],y[b],Q),16<=b){switch(w++,b){case 16:I=2;break;case 17:I=3;break;case 18:I=7;break;default:throw"invalid code: "+b}C.b(e[w],I,Q)}for(var M,V,S=[S,m],L=[L,v],Y=S[0],H=S[1],K=L[0],X=L[1],F=0,J=p.length;F<J;++F)if(M=p[F],C.b(Y[M],H[M],Q),256<M)C.b(p[++F],p[++F],Q),V=p[++F],C.b(K[V],X[V],Q),C.b(p[++F],p[++F],Q);else if(256===M)break;this.a=C.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),I=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=I[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,d,u,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===q&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<d.length?(u=function(e,t,n){var i,r,o,a,s,d,u=0,c=e.length;a=0,d=n.length;e:for(;a<d;a++){if(i=n[d-a-1],(o=3)<u){for(s=u;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=u}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(u<o&&(r=i,u=o),258===o)break}return new b(u,t-r)}(t,i,d),c?c.length<u.length?(l=t[i-1],h[f++]=l,++m[l],n(u,0)):n(c,-1):u.length<y?c=u:n(u,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}d.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,d=new c(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],l[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),l[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<d[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===u[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===u[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=w.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,w=l,C=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case w.NONE:t=0;break;case w.h:t=1;break;case w.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,c=1,l=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;l+=c+=o[h++],--u;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:w.NONE,FIXED:w.h,DYNAMIC:w.g});if(Object.keys)g=Object.keys(C);else for(m in g=[],v=0,C)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),C[m])}.call(e.exports);var mt={Deflate:D(e.exports).Zlib.Deflate},vt="base64url";function yt(e,t){t=t||vt;e=ft("string"==typeof e?e:JSON.stringify(e)),e=new mt.Deflate(e).compress();return t===vt?G.uint8ToBase64(e):e}i={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(i.exports);var bt={CRC32:D(i.exports).Zlib.CRC32},It=function(e,n){var i;return 200<=(n=n||0)?e:y.isArray(e)?y.map(e,function(e){return It(e,n+1)}):!y.isObject(e)||y.isDate(e)||y.isRegExp(e)||y.isElement(e)?y.isString(e)?y.escape(e):e:(i={},y.each(e,function(e,t){i[t]=It(e,n+1)}),i)},wt=function(e){e=ft(e);return G.uint8ToBase64(e)},Ct=function(e){if(void 0!==e)return e=ft(e=y.isString(e)?e:JSON.stringify(e)),bt.CRC32.calc(e,0,e.length)};function St(e){return e[Math.floor(Math.random()*e.length)]}function At(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=St(i);return n}var Et=function(e,t,n){return!(!fe(e)||!fe(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function b(){return(new Date).getTime()}function Tt(){return"undefined"!=typeof $A&&y.isFunction($A.get)&&y.isString($A.get("$Browser.formFactor"))}function _t(e,t){void 0===t&&(t=window);var n="__symbol__";if("undefined"!=typeof Zone&&y.isFunction(Zone[n])){n=t[Zone[n](e)];if(y.isFunction(n))return n}return t[e]}e=window;var xt=y.isFunction(e.isFinite)?e.isFinite:e.Number&&y.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function Rt(e){return"number"==typeof e&&xt(e)&&Math.floor(e)===e}function kt(e,t,n,i){(t=t||{}).maxRetries=Rt(t.maxRetries)?t.maxRetries:10,t.delay=Rt(t.delay)?t.delay:50,t.exponentialBackoff=t.exponentialBackoff||!1;var r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=r(n)?n:function(){},a=r(i)?i:function(){},n=e();n?o(n):0<t.maxRetries?Dt(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,kt(e,t,o,a)},t.delay):(a||function(){})()}var Ot=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function Nt(e){return y.isObject(e)&&y.isFunction(e.then)}var Mt=y.isFunction(window.decodeURIComponent)?window.decodeURIComponent:y.identity,Lt=y.isFunction(window.encodeURIComponent)?window.encodeURIComponent:y.identity,Ft=(window.Promise,i=function(){var t=Dt;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(e=window.Promise)&&/native/.test(e)?e:i()),Pt=function(e,t){return(Pt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};var Gt=function(){return(Gt=Object.assign||function Gt(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function Wt(e,t,s,d){return new(s=s||Ft)(function(n,i){function r(e){try{a(d.next(e))}catch(t){i(t)}}function o(e){try{a(d["throw"](e))}catch(t){i(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((d=d.apply(e,t||[])).next())})}function $t(n,i){var r,o,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},d=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return d.next=e(0),d["throw"]=e(1),d["return"]=e(2),"function"==typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function e(t){return function(e){return u([t,e])}}function u(e){if(r)throw new TypeError("Generator is already executing.");for(;s=d&&e[d=0]?0:s;)try{if(r=1,o&&(a=2&e[0]?o["return"]:e[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,e[1])).done)return a;switch(o=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return s.label++,{value:e[1],done:!1};case 5:s.label++,o=e[1],e=[0];continue;case 7:e=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){s=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3]))s.label=e[1];else if(6===e[0]&&s.label<a[1])s.label=a[1],a=e;else{if(!(a&&s.label<a[2])){a[2]&&s.ops.pop(),s.trys.pop();continue}s.label=a[2],s.ops.push(e)}}e=i.call(n,s)}catch(t){e=[6,t],o=0}finally{r=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}function Ut(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||((i=i||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}jt.prototype.addEventListener=function(e,t){var n=this.listeners[e];n||(this.listeners[e]=n=[]),y.findIndex(n,function(e){return t===e})<0&&n.push(t)},jt.prototype.removeEventListener=function(e,t){var n,i=this.listeners[e];i&&0<=(n=y.findIndex(i,function(e){return t===e}))&&(i.splice(n,1),i.length||delete this.listeners[e])},jt.prototype.dispatchEvent=function(t){var e=this.listeners[t.type];e&&y.each(e,function(e){e(t)})};e=jt;function jt(){this.listeners={}}Vt.prototype.toString=function(){var e=this.message;return this.error&&e!==this.error.message&&(e="".concat(e,":").concat(this.error.message)),this.attributes&&(e+=": ".concat(y.map(this.attributes,function(e,t){return"".concat(t,"=").concat(e)}))),e},Vt.prototype.hashCode=function(){return this.toString()};var zt,Zt=Vt;function Vt(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}(i=zt=zt||{}).Debug="debug",i.Info="info",i.Warn="warn",i.Error="error",i.Critical="critical";var I=new(function(e){var t=r,n=e;if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}function r(){return null!==e&&e.apply(this,arguments)||this}return Pt(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i),r.prototype.write=function(e,t,n){this.dispatchEvent(new Zt(t,e,n))},r.prototype.writeError=function(e,t,n){y.isString(e)?r={message:i=e}:i=(r=e).message,n&&n.error&&(r=n.error,delete n.error);var i,r,e=new Zt(t,i,n);e.error=r,this.dispatchEvent(e)},r.prototype.debug=function(e,t){this.write(e,zt.Debug,t)},r.prototype.info=function(e,t){this.write(e,zt.Info,t)},r.prototype.warn=function(e,t){this.writeError(e,zt.Warn,t)},r.prototype.error=function(e,t){this.writeError(e,zt.Error,t)},r.prototype.critical=function(e,t){this.writeError(e,zt.Critical,t)},r}(e));function Yt(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Ht=function(){var e=m.get("storage.allowKeys")||"*";return y.isArray(e)?y.indexBy(e):e};function Kt(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function Xt(n){y.forEach(y.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function Jt(e){var t=y.noop,t={getItem:function(){return null},setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:Kt(n,n.getItem,null),setItem:Kt(n,n.setItem),removeItem:Kt(n,n.removeItem),clearPendo:y.partial(Xt,n)}:t}catch(i){return t}}var qt,i=Jt(function(){return window.localStorage}),e=Jt(function(){return window.sessionStorage}),Qt={},en=!0,tn=function(){return m.get("localStorageOnly")},nn=function(){return!!m.get("disableCookies")};function rn(e){en=e}var on=function(e){var t=nn()||tn()?Qt[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?Mt(e[2]):null},an=function(e,t,n,i){var r,o;!en||m.get("preventCookieRefresh")&&on(e)===t||(o=pn(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+Lt(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",qt&&(o+=";domain="+qt),nn()||tn()?Qt[e]=o:document.cookie=o)};function sn(e){qt?an(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var dn=function(e,t){return"_pendo_".concat(e,".").concat(t||v.apiKey)},un=function(e,t){return on(dn(e,t))},cn=864e5,ln=100*cn,pn=function(e){void 0===e&&(e=ln);var t=m.get("maxCookieTTLDays"),t=t<Infinity?t*cn:Infinity;return Math.min(e,t)},hn=function(e,t,n,i,r){n=n||ln,an(dn(e,r),t,n,i)};function fn(){this.keys={}}fn.prototype.addLocal=function(e){this._add(e,"local")},fn.prototype.addSession=function(e){this._add(e,"session")},fn.prototype.hasLocal=function(e){return this._has(e,"local")},fn.prototype.hasSession=function(e){return this._has(e,"session")},fn.prototype._add=function(e,t){this.keys[e]||(this.keys[e]=t)},fn.prototype._has=function(e,t){return this.keys[e]===t};gn=new fn,mn=y.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}}),(vn=y.extend({},e)).setItem=bn(vn.setItem,"hasSession"),(yn=y.extend({},i)).setItem=bn(yn.setItem,"hasLocal");var gn,mn,vn,yn,w={read:function(e,t,n){var i;return In()?(i=t?e:dn(e,n),null===(i=function(e){if(null===e)return null;try{var t=JSON.parse(e);return t.ttl?t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}(localStorage.getItem(i)))&&Cn(e,t,n),i):t?on(e):un(e,n)},write:bn(function(e,t,n,i,r,o){if(wn(mn),In())try{var a=i?e:dn(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+pn(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void wn(mn)}catch(s){}if(!i)return hn(e,t,n,r,o);an(e,t,n,r)},"hasLocal"),clear:Cn,registry:gn,getLocal:function(){return yn},getSession:function(){return vn}};function bn(i,r){return function(e){var t,n;if(t=e,"*"===(n=Ht())||n[t])return gn[r](e)||I.warn("storage key ".concat(e," is not registered")),i.apply(this,arguments);I.debug("writing storage key ".concat(e," is not allowed"))}}function In(){return!nn()&&!qt&&mn("localStorage")}function wn(e){e.cache&&(e.cache={})}function Cn(e,t,n){t=t?e:dn(e,n);if(In())return localStorage.removeItem(t);sn(t)}An=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},En=function(n,i){var r=Sn.defer(),o=function(n,i){Dt(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===Tn?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},Tn=1,(Sn={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,y.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(Tn,e)},a=function(e){t(2,e)},s=function(e,t){e=En(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=An();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=An();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}};var Sn,An,En,Tn,C,e=Sn;function _n(e){var n,i=C.defer(),r=y.isArray(e)?[]:{},o=y.size(e);return o?(n=!1,y.each(e,function(e,t){C.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):C.resolve(e)}!lt()&&et.isMinimumIEVersion(11)?C={all:function(e){return y.isArray(e)?Ft.all.apply(Ft,arguments):_n(e)},reject:function(){return Ft.reject.apply(Ft,arguments)},resolve:function(){return Ft.resolve.apply(Ft,arguments)},defer:function(){var n={};return n.promise=new Ft(function(e,t){n.resolve=e,n.reject=t}),n}}:((C=e).all=_n,C.reject=function(e){var t=C.defer();return t.reject(e),t.promise},C.resolve=function(e){var t=C.defer();return t.resolve(e),t.promise});var xn=w.getSession(),Rn="pendo_tabId",kn="pendo_parentTabId";On=window,i=y.partial,Nn=y.extend,Mn=y.omit,Ln={data:{},getItem:function(e){return Ln.data[e]},setItem:function(e,t){Ln.data[e]=t},removeItem:function(e){Ln.data[e]=null,delete Ln.data[e]}},Fn=i(Wn,Rn,$n),Pn=i(Wn,"pendo_frameId",Ln);var On,Nn,Mn,Ln,Fn,Pn,Gn={addTracerIds:function(e){return Mn(Nn(e,{parentTabId:Dn(kn,$n),tabId:Fn(),frameId:Pn()}),function(e){return e===undefined})},setParentTabId:function(e){Bn(kn,e,$n)},newTabId:function(){var e=At(16);return Bn(Rn,e,$n),e},getTabId:Fn,getFrameId:Pn,tabIdChanged:function(t){var e;if(et.addEventListener)return On.addEventListener("storage",e=function(e){e.key===Rn&&(Ln.removeItem(Rn),t())}),function(){On.removeEventListener("storage",e)}}};function Dn(e,t){return(y.isFunction(t)?t():t).getItem(e)}function Bn(e,t,n){(y.isFunction(n)?n():n).setItem(e,t)}function Wn(e,t){var n=Dn(e,t);return n||Bn(e,n=At(16),t),n}function $n(){return n=Ln,i=xn,{getItem:function(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem:function(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem:function(e){n.removeItem(e),i.removeItem(e)}};var n,i}function Un(){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(y.isString(e)||y.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),y.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 y.isFunction(t)?(n=y.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=y.toArray(arguments).slice(1);return y.map(t,function(e){return e.apply(v,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return y.map(e,function(e){if(!t.cancel)return e.apply(v,[t])})},this.triggerAsync=function(){var e=y.map(this.trigger.apply(this,arguments),function(e){return!1===e?C.reject():e});return C.all(e)},this}Un.clear=function(t){t&&y.each(y.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};rr={DEBUG:e="debug",FRAMES:i="frames",LIFECYCLE:s="lifecycle",RUNTIME:lr="runtime"},jn=[new a("ready",[e,s]),new a("deliverablesLoaded",[e,s]),new a("guidesFailed",[e,s]),new a("guidesLoaded",[e,s]),new a("guideListChanged",[e,s]),new a("guideSeen",[e,s]),new a("guideNotSeen",[e,s]),new a("guideAdvanced",[e,s]),new a("guideDismissed",[e,s]),new a("guideSnoozed",[e,s]),new a("beforeGuideShow",[s]),new a("beforeMount",[lr]),new a("beforeAdvance",[lr]),new a("beforePrevious",[lr]),new a("beforeSnooze",[lr]),new a("beforeDismiss",[lr]),new a("beforeUnmount",[lr]),new a("unmounted",[lr]),new a("beforeUpdate",[lr]),new a("updated",[lr]),new a("guideSnoozeCancelled",[e,s]),new a("guideTimeout",[e,s]),new a("guideLoopStopped",[e,s]),new a("guideUpdateComplete",[s]),new a("designerLaunched",[e,s]),new a("debuggerLaunched",[e,s]),new a("stepEligibility",[e]),new a("identify",[e,s]),new a("metadata",[e,s]),new a("appUnloaded",[e,s]),new a("appHidden",[e,s]),new a("startPreview",[e]),new a("resourceFetchFail",[e]),new a("contentVerificationFail",[e]),new a("contentValidationFail",[e]),new a("renderFail",[e]),new a("appUsage",[s]),new a("eventCaptured",[e]),new a("error",[e,s]),new a("onClickCaptured",[e]),new a("urlChanged",[s]),new a("leaderChanged",[s,i]),new a("transmit:locked",[s]),new a("transmit:unlocked",[s]),new a("sessionChanged",[s]),new a("childFrameJoined",[i]),new a("tabIdChanged:self",[e,s])],zn=Un.call({}),Zn={debug:function(){return Gn.addTracerIds(Yn.apply(null,arguments))},lifecycle:Yn,runtime:Yn,frames:Yn},Vn=zn.trigger,zn.trigger=Hn,y.each(y.values(rr),function(e){zn[e]={on:y.partial(zn.on,e),one:y.partial(zn.one,e),off:y.partial(zn.off,e)}}),y.each(jn,function(e){e=e.name,zn[e]={on:y.partial(zn.on,e),one:y.partial(zn.one,e),off:y.partial(zn.off,e),trigger:y.partial(Hn,e)}});var jn,zn,Zn,Vn,S=zn;function a(e,t){this.name=e,this.groups=t||[]}function Yn(e,t){e={type:e,ts:b()};return fe(t)&&y.isObject(t)&&(e.data=t),e}function Hn(t){var e=y.findWhere(jn,{name:t}),n=y.toArray(arguments).slice(1),i={};return y.each(e.groups,function(e){i.cancel||(i=Zn[e](t,n),Vn.apply(zn,[e].concat(i)))}),i.cancel||(i=Yn(t,n),Vn.apply(zn,[t].concat(i))),i}function Kn(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),y.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),y.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:y.partial(t,i),subscribeAction:y.partial(t,r),registerModule:function h(n,e){y.isString(n)&&(n=[n]);var t=u(s.state,e,n);y.extend(s.getters,p(e,t,s,n));y.extend(o,c(e,t,n));y.extend(a,l(e,t,s,n));y.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return y.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):y.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 y.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),y.extend(i,ge(t.state||{}))}function c(e,n,i){var r={};return y.each(e.mutations,function(e,t){r[d(i,t)]=y.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 y.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return y.each(e.actions,function(e,t){n[d(r,t)]=y.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return y.each(e.getters,function(e,t){a[t]=o[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var A=Kn(),Xn=(A.subscribe(function(e,t){}),"_PENDO_T_"),Jn=11,qn="visitorId",Qn="oldVisitorId",ei="accountId",ti=function(e){return(e=void 0===e?"":e)+At(Jn)};var ni=function(e){return fe(e)&&""!==e&&e!==di&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===gt.call(e).length)},ii=function(e){return!(!e||"number"==typeof e)&&e.substring(0,Xn.length)===Xn},ri=function(){return!m.get("disablePersistence")},oi=function(e){e=e||[qn,ei,Qn];var t=m.get("identityStorageSuffix")||v.apiKey;y.each(e,function(e){sn(dn(e,t)),w.clear(e,!1,t)})},ai="VISITOR-UNIQUE-ID",si=function(e){return ai===e},di="::",ui=function(e){return new RegExp(di).test(e)};function ci(e){return e.old_visitor_id!==e.visitor_id}var li,pi=function(e,t){var n,i={old_visitor_id:E(),old_account_id:mi()};ni(e)?(ni(n=e)?fi(""+n):I.info("Invalid visitor id "+n),n=t,y.isUndefined(n)?I.info("No account id provided"):ni(n)?(v.accountId=""+n,ri()&&vi(ei,v.accountId)):(delete v.accountId,delete(t=m.getLocalConfig()).account,m.setLocalConfig(t),A.commit("metadata/clearAccount"),ri()&&w.clear(ei),I.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=E({generate:!0}),i.account_id=mi(),!ci(t=i)&&t.old_account_id===t.account_id||(ci(i)&&(n=i.old_visitor_id)&&vi(Qn,li=n),S.identify.trigger(i))):I.info("Invalid visitor id "+e)};function hi(){return ti(Xn)}function fi(e){v.visitorId!==e&&(ri()&&vi(qn,e),v.visitorId=e)}function E(e){void 0===e&&(e={});var t=function(){if(ni(v.visitorId))return v.visitorId;var e=m.get("forceAnonymous");if(ri()){var t=yi(qn);if(ni(t)&&(!e||ii(t)))return t}return undefined}();return fi(t=!t&&e.generate?hi():t),t}function gi(){return E()||hi()}var mi=function(){var e=m.get("forceAnonymous");return ni(v.accountId)||!ri()||e||(e=yi(ei),v.accountId=e),v.accountId};function vi(e,t){var n=m.get("identityStorageLifetime")||ln,i=m.get("identityStorageSuffix")||v.apiKey;w.write(e,t,n,!1,!0,i)}function yi(e){var t=m.get("identityStorageSuffix"),n=t||v.apiKey,n=w.read(e,!1,n)||w.read(e,!1,v.apiKey);return t&&w.clear(e,!1,v.apiKey),n}function bi(){var e={old_visitor_id:E({generate:!1}),old_account_id:mi(),wasCleared:!0};oi(),delete v.visitorId,delete v.accountId,E({generate:!0}),y.extend(e,{visitor_id:E(),account_id:mi()}),S.identify.trigger(e)}function Ii(e){e=e.data[0];return y.get(e,"wasCleared")}var wi=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||I.critical(e)}}};lr=function(n){return function Ci(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 Ci="function"==typeof(i=window.URL)&&/native/.test(i)?i:lr(document);function Si(e){if((t=e)&&y.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function Ai(e){return e.shadowRoot}function Ei(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function Ti(e,t){return Ei(e,t)?e.host:e.parentNode}var _i={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Si,getShadowRoot:Ai,isElementShadowRoot:Ei,getParent:Ti,isShadowSelector:xi,wrapSizzle:function(i){i.intercept(function(a,e,n,i,r){var t,o;return xi(e)?y.isFunction(document.documentElement.attachShadow)?(o=a,t=(t=e).replace(_i.PSEUDO_REGEX,_i.PSEUDO_SAFE),t=y.map(o.tokenize(t),Ri),y.reduce(t,function(e,t){return e.concat(s(t,n,i,r))},[])):a(e.replace(_i.PSEUDO_REGEX,""),n,i,r):a(e,n,i,r);function s(e,t,n,i){var r,o;return xi(e)?(o=s((r={baseCss:(o=(o=e).split(_i.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(_i.PSEUDO_ELEMENT)}).baseCss,t),y.reduce(o,function(e,t){return _i.getShadowRoot(t)?e.concat(s(r.shadowCss,_i.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!_i.isElementShadowRoot(t)&&(xi(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function xi(e){return!!e&&-1<e.indexOf(_i.PSEUDO_ELEMENT)}function Ri(e){return y.reduce(e,function(e,t){return t.value===_i.PSEUDO_SAFE?e+_i.PSEUDO_ELEMENT:e+t.value},"")}var ki,Oi,T,Ni,Mi,Li,Fi,Pi,Gi,Di,Bi,Wi,_,$i,Ui,ji,zi,Zi,Vi,e={exports:{}},s=e,Yi=window,Hi="sizzle"+ +new Date,Ki=Yi.document,Xi=0,Ji=0,qi=Mr(),Qi=Mr(),er=Mr(),tr=Mr(),nr=function(e,t){return e===t&&(Bi=!0),0},ir={}.hasOwnProperty,rr=[],or=rr.pop,ar=rr.push,sr=rr.push,dr=rr.slice,ur=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},cr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",d="[\\x20\\t\\r\\n\\f]",i="(?:\\\\[\\da-fA-F]{1,6}"+d+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",lr="\\["+d+"*("+i+")(?:"+d+"*([*^$|!~]?=)"+d+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+i+"))|)"+d+"*\\]",pr=":("+i+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+lr+")*)|.*)\\)|)",hr=new RegExp(d+"+","g"),fr=new RegExp("^"+d+"+|((?:^|[^\\\\])(?:\\\\.)*)"+d+"+$","g"),gr=new RegExp("^"+d+"*,"+d+"*"),mr=new RegExp("^"+d+"*([>+~]|"+d+")"+d+"*"),vr=new RegExp(d+"|>"),yr=new RegExp(pr),br=new RegExp("^"+i+"$"),Ir={ID:new RegExp("^#("+i+")"),CLASS:new RegExp("^\\.("+i+")"),TAG:new RegExp("^("+i+"|[*])"),ATTR:new RegExp("^"+lr),PSEUDO:new RegExp("^"+pr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+d+"*(even|odd|(([+-]|)(\\d*)n|)"+d+"*(?:([+-]|)"+d+"*(\\d+)|))"+d+"*\\)|)","i"),bool:new RegExp("^(?:"+cr+")$","i"),needsContext:new RegExp("^"+d+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+d+"*((?:-\\d)?\\d*)"+d+"*\\)|)(?=[^-]|$)","i")},wr=/HTML$/i,Cr=/^(?:input|select|textarea|button)$/i,Sr=/^h\d$/i,Ar=/^[^{]+\{\s*\[native \w/,Er=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Tr=/[+~]/,_r=new RegExp("\\\\[\\da-fA-F]{1,6}"+d+"?|\\\\([^\\r\\n\\f])","g"),xr=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))},Rr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,kr=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Or=function(){Wi()},Nr=jr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{sr.apply(rr=dr.call(Ki.childNodes),Ki.childNodes),rr[Ki.childNodes.length].nodeType}catch(nA){sr={apply:rr.length?function(e,t){ar.apply(e,dr.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function x(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&&(Wi(t),t=t||_,Ui)){if(11!==l&&(s=Er.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))&&Vi(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return sr.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&Oi.getElementsByClassName&&t.getElementsByClassName)return sr.apply(n,t.getElementsByClassName(r)),n}if(Oi.qsa&&!tr[e+" "]&&(!ji||!ji.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===l&&(vr.test(e)||mr.test(e))){for((c=Tr.test(e)&&Wr(t.parentNode)||t)===t&&Oi.scope||((a=t.getAttribute("id"))?a=a.replace(Rr,kr):t.setAttribute("id",a=Hi)),o=(d=Li(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+Ur(d[o]);u=d.join(",")}try{return sr.apply(n,c.querySelectorAll(u)),n}catch(p){tr(e,!0)}finally{a===Hi&&t.removeAttribute("id")}}}return Pi(e.replace(fr,"$1"),t,n,i)}function Mr(){var n=[];function i(e,t){return n.push(e+" ")>T.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function Lr(e){return e[Hi]=!0,e}function Fr(e){var t=_.createElement("fieldset");try{return!!e(t)}catch(nA){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function Pr(e,t){for(var n=e.split("|"),i=n.length;i--;)T.attrHandle[n[i]]=t}function Gr(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 Dr(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&&Nr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function Br(a){return Lr(function(o){return o=+o,Lr(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 Wr(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(ki in Oi=x.support={},Mi=x.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!wr.test(t||e&&e.nodeName||"HTML")},Wi=x.setDocument=function(e){var e=e?e.ownerDocument||e:Ki;return e!=_&&9===e.nodeType&&e.documentElement&&($i=(_=e).documentElement,Ui=!Mi(_),Ki!=_&&(e=_.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",Or,!1):e.attachEvent&&e.attachEvent("onunload",Or)),Oi.scope=Fr(function(e){return $i.appendChild(e).appendChild(_.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),Oi.attributes=Fr(function(e){return e.className="i",!e.getAttribute("className")}),Oi.getElementsByTagName=Fr(function(e){return e.appendChild(_.createComment("")),!e.getElementsByTagName("*").length}),Oi.getElementsByClassName=!!_.getElementsByClassName,Oi.getById=Fr(function(e){return $i.appendChild(e).id=Hi,!_.getElementsByName||!_.getElementsByName(Hi).length}),Oi.getById?(T.filter.ID=function(e){var t=e.replace(_r,xr);return function(e){return e.getAttribute("id")===t}},T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&Ui)return(e=t.getElementById(e))?[e]:[]}):(T.filter.ID=function(e){var t=e.replace(_r,xr);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&Ui){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[]}}),T.find.TAG=Oi.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):Oi.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},T.find.CLASS=Oi.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&Ui?t.getElementsByClassName(e):Oi.qsa&&Ui?t.querySelectorAll("."+e):void 0},zi=[],ji=[],(Oi.qsa=!!_.querySelectorAll)&&(Fr(function(e){var t;$i.appendChild(e).innerHTML=K().createHTML("<a id='"+Hi+"'></a><select id='"+Hi+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&ji.push("[*^$]="+d+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||ji.push("\\["+d+"*(?:value|"+cr+")"),e.querySelectorAll("[id~="+Hi+"-]").length||ji.push("~="),(t=_.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||ji.push("\\["+d+"*name"+d+"*="+d+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||ji.push(":checked"),e.querySelectorAll("a#"+Hi+"+*").length||ji.push(".#.+[+~]"),e.querySelectorAll("\\\f"),ji.push("[\\r\\n\\f]")}),Fr(function(e){e.innerHTML=K().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=_.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&ji.push("name"+d+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&ji.push(":enabled",":disabled"),$i.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&ji.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),ji.push(",.*:")})),(Oi.matchesSelector=Ar.test(Zi=$i.matches||$i.webkitMatchesSelector||$i.mozMatchesSelector||$i.oMatchesSelector||$i.msMatchesSelector))&&Fr(function(e){Oi.disconnectedMatch=Zi.call(e,"*"),Zi.call(e,"[s!='']:x"),zi.push("!=",pr)}),ji=ji.length&&new RegExp(ji.join("|")),zi=zi.length&&new RegExp(zi.join("|")),e=!!$i.compareDocumentPosition,Vi=e||$i.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},nr=e?function(e,t){var n;return e===t?(Bi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!Oi.sortDetached&&t.compareDocumentPosition(e)===n?e==_||e.ownerDocument==Ki&&Vi(Ki,e)?-1:t==_||t.ownerDocument==Ki&&Vi(Ki,t)?1:Di?ur(Di,e)-ur(Di,t):0:4&n?-1:1)}:function(e,t){if(e===t)return Bi=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==_?-1:t==_?1:r?-1:o?1:Di?ur(Di,e)-ur(Di,t):0;if(r===o)return Gr(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?Gr(a[i],s[i]):a[i]==Ki?-1:s[i]==Ki?1:0}),_},x.matches=function(e,t){return x(e,null,null,t)},x.matchesSelector=function(e,t){if(Wi(e),Oi.matchesSelector&&Ui&&!tr[t+" "]&&(!zi||!zi.test(t))&&(!ji||!ji.test(t)))try{var n=Zi.call(e,t);if(n||Oi.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(nA){tr(t,!0)}return 0<x(t,_,null,[e]).length},x.contains=function(e,t){return(e.ownerDocument||e)!=_&&Wi(e),Vi(e,t)},x.attr=function(e,t){(e.ownerDocument||e)!=_&&Wi(e);var n=T.attrHandle[t.toLowerCase()],n=n&&ir.call(T.attrHandle,t.toLowerCase())?n(e,t,!Ui):undefined;return n!==undefined?n:Oi.attributes||!Ui?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},x.escape=function(e){return(e+"").replace(Rr,kr)},x.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],i=0,r=0;if(Bi=!Oi.detectDuplicates,Di=!Oi.sortStable&&e.slice(0),e.sort(nr),Bi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return Di=null,e},Ni=x.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+=Ni(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=Ni(t);return n},(T=x.selectors={cacheLength:50,createPseudo:Lr,match:Ir,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(_r,xr),e[3]=(e[3]||e[4]||e[5]||"").replace(_r,xr),"~="===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]||x.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]&&x.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Ir.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&yr.test(n)&&(t=(t=Li(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(_r,xr).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=qi[e+" "];return t||(t=new RegExp("(^|"+d+")"+e+"("+d+"|$)"))&&qi(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=x.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(hr," ")+" ").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)[Hi]||(a[Hi]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Xi&&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]=[Xi,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[Hi]||(a[Hi]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Xi&&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[Hi]||(a[Hi]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[Xi,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=T.pseudos[e]||T.setFilters[e.toLowerCase()]||x.error("unsupported pseudo: "+e);return a[Hi]?a(o):1<a.length?(t=[e,e,"",o],T.setFilters.hasOwnProperty(e.toLowerCase())?Lr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=ur(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:Lr(function(e){var i=[],r=[],s=Fi(e.replace(fr,"$1"));return s[Hi]?Lr(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:Lr(function(t){return function(e){return 0<x(t,e).length}}),contains:Lr(function(t){return t=t.replace(_r,xr),function(e){return-1<(e.textContent||Ni(e)).indexOf(t)}}),lang:Lr(function(n){return br.test(n||"")||x.error("unsupported lang: "+n),n=n.replace(_r,xr).toLowerCase(),function(e){var t;do{if(t=Ui?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=Yi.location&&Yi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===$i},focus:function(e){return e===_.activeElement&&(!_.hasFocus||_.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:Dr(!1),disabled:Dr(!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!T.pseudos.empty(e)},header:function(e){return Sr.test(e.nodeName)},input:function(e){return Cr.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:Br(function(){return[0]}),last:Br(function(e,t){return[t-1]}),eq:Br(function(e,t,n){return[n<0?n+t:n]}),even:Br(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:Br(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:Br(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:Br(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=T.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[ki]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(ki);for(ki in{submit:!0,reset:!0})T.pseudos[ki]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(ki);function $r(){}function Ur(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function jr(a,e,t){var s=e.dir,d=e.next,u=d||s,c=t&&"parentNode"===u,l=Ji++;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=[Xi,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[Hi]||(e[Hi]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===Xi&&i[1]===l)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function zr(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 Zr(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 Vr(h,f,g,m,v,e){return m&&!m[Hi]&&(m=Vr(m)),v&&!v[Hi]&&(v=Vr(v,e)),Lr(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++)x(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:Zr(c,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=Zr(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?ur(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=Zr(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):sr.apply(t,p)})}$r.prototype=T.filters=T.pseudos,T.setFilters=new $r,Li=x.tokenize=function(e,t){var n,i,r,o,a,s,d,u=Qi[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=T.preFilter;a;){for(o in n&&!(i=gr.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=mr.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(fr," ")}),a=a.slice(n.length)),T.filter)T.filter.hasOwnProperty(o)&&(i=Ir[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?x.error(e):Qi(e,s).slice(0)},Fi=x.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=er[e+" "];if(!a){for(n=(t=t||Li(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,d=jr(function(e){return e===i},a,!0),u=jr(function(e){return-1<ur(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==Gi)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=T.relative[e[s].type])c=[jr(zr(c),t)];else{if((t=T.filter[e[s].type].apply(null,e[s].matches))[Hi]){for(n=++s;n<r&&!T.relative[e[n].type];n++);return Vr(1<s&&zr(c),1<s&&Ur(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(fr,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&Ur(e))}c.push(t)}return zr(c)}(t[n]))[Hi]?r:o).push(a);(a=er(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=Gi,h=e||b&&T.find.TAG("*",r),f=Xi+=null==p?1:Math.random()||.1,g=h.length;for(r&&(Gi=t==_||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==_||(Wi(o),n=!Ui);s=m[a++];)if(s(o,t||_,n)){i.push(o);break}r&&(Xi=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]=or.call(i));l=Zr(l)}sr.apply(i,l),r&&!e&&0<l.length&&1<d+v.length&&x.uniqueSort(i)}return r&&(Xi=f,Gi=p),c},y?Lr(i):i))).selector=e}return a},Pi=x.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,c=!i&&Li(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&&Ui&&T.relative[o[1].type]){if(!(t=(T.find.ID(a.matches[0].replace(_r,xr),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=Ir.needsContext.test(e)?0:o.length;r--&&(a=o[r],!T.relative[s=a.type]);)if((d=T.find[s])&&(i=d(a.matches[0].replace(_r,xr),Tr.test(o[0].type)&&Wr(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&Ur(o))break;return sr.apply(n,i),n}}return(u||Fi(e,c))(i,t,!Ui,n,!t||Tr.test(e)&&Wr(t.parentNode)||t),n},Oi.sortStable=Hi.split("").sort(nr).join("")===Hi,Oi.detectDuplicates=!!Bi,Wi(),Oi.sortDetached=Fr(function(e){return 1&e.compareDocumentPosition(_.createElement("fieldset"))}),Fr(function(e){return e.innerHTML=K().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||Pr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),Oi.attributes&&Fr(function(e){return e.innerHTML=K().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||Pr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),Fr(function(e){return null==e.getAttribute("disabled")})||Pr(cr,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var Yr=Yi.Sizzle;x.noConflict=function(){return Yi.Sizzle===x&&(Yi.Sizzle=Yr),x},s.exports?s.exports=x:Yi.Sizzle=x;Hr=D(e.exports),(Kr=y.extend(function(){return Kr.Sizzle.apply(this,arguments)},Hr)).reset=function(){Kr.Sizzle=Hr,Kr.matchesSelector=Hr.matchesSelector,Kr.matches=Hr.matches},Kr.intercept=function(e,t){Kr[t=void 0===t?"Sizzle":t]=y.wrap(Kr[t],e)},Kr.reset();var Hr,Kr,Xr=Kr;function R(e,t){var n,i=this;if(e&&e instanceof R)return e;if(!(i instanceof R))return new R(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=y.toArray(r.childNodes)}else if(y.isString(e)){t instanceof R&&(t=0<t.length?t[0]:null);try{n=Xr(e,t)}catch(o){n=[]}}else n=[e];else n=[];return y.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,i}function Jr(){this.ownerKey="_pendo_"+At(8)}y.extend(Jr.prototype,{cache:function(e){var t;return y.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set:function(e,t,n){e=this.cache(e);return e[t]=n,e},get:function(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove:function(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!y.isEmpty(n)||(e[this.ownerKey]=undefined)}});var qr=new Jr,Qr=1;function eo(e){return y.isNumber(e.eventPhase)&&e.eventPhase===Qr}function to(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?_t("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),function(){no(e,t,n,i)}):y.noop}function no(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?_t("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var io=function(e){var t=_i.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},ro={add:function(t,e){var n=qr.get(t),i=(n.handle||(n.handle=function(e){ro.dispatch(t,e)}),e.id=y.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||to(t,e.type,n.handle,e.capture),i.push(e),function(){R.event.remove(t,e.type,e.handler,e.capture)}},dispatch:function(r,o){var e,t,a;r&&(e=(qr.get(r,"captureEvents")||{})[o.type]||[],t=(qr.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=qr.get(o)).ignore&&(a.handled=a.handled||{},y.each(t.slice(),function(e){var t=!!e.capture===eo(o),n=(n=o,y.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(io(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!fe(e.selector)||0<R(io(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){I.error(i)}}}))},remove:function(e,t,n,i){var r=qr.get(e);if(r){if(y.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=y.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],no(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],no(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],no(e,t,r.handle));y.isEmpty(r.captureEvents)&&y.isEmpty(r.bubbleEvents)&&(qr.remove(e,"captureEvents"),qr.remove(e,"bubbleEvents"),qr.remove(e,"handle"))}},trigger:function(e){var t=qr.get(e);if(!t.pendoStopped)if(e.bubbles){var n=io(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=_i.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),eo(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)ro.dispatch(o[i],e);(e=ro.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(ro.dispatch(n,e),(e=ro.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)ro.dispatch(o[i],e)}}else ro.dispatch(io(e),e)},clone:function(e){var t=y.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",qr.ownerKey]),e=_i.getComposedPath(e);return e&&(t.composedPath=y.constant(e)),t},$:{on:function(e,n,i,r){return y.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){y.each(e,function(e){ro.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},oo=y.extend(so,{get:function(e,t){return so({method:"GET",url:e,headers:t})},post:uo,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",uo(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(y.isArray(t))i=t;else{if(!y.isObject(t))return e||"";i=y.keys(t)}var i=y.map(i,function(e){return y.isArray(t)?Lt(e):Lt(e)+"="+Lt(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=y.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported:function(){return void 0!==ao()}});function ao(){return window.XMLHttpRequest||ActiveXObject}function so(e){var t=C.defer(),n=new(ao())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),y.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 uo(e,t,n){return so({method:"POST",url:e,data:t,headers:n})}var co,lo=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},po=function(){return m.get("annotateUrl")||vo()||m.get("sanitizeUrl")||m.get(Eo)||m.get("xhrWhitelist")},ho=function(){return vo()?{href:mo(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},fo=function(){return new Ci(window.location.href)},go=function(){var e,t,n,i;return po()?(e=fo(),vo()&&(e.href=mo(e.href)),lo()?(t=Lo.electronResourcesPath(),n=Lo.electronUserDirectory(),i=Lo.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(Lo.electronUserHomeDirectory(),"").replace("file:///","")):_o(e.href)):A.getters["location/href"]()},mo=function(e){return e.match(/(.+?)(?:#|$)/)[1]},vo=function(){return!0===m.get("ignoreHashRouting")},yo=500;function bo(){return y.isUndefined(co)&&function e(){Ao(),co=Dt(e,yo)}(),function(){clearTimeout(co)}}var Io=function(e){var t;try{t=go()}catch(n){}return t},wo=[],Co=!1,So=null;function Ao(){var t=ho().href;So!=t&&(So=t,y.map(wo,function(e){e(t)}))}var Eo="queryStringWhitelist";function To(e){var t=m.get("sanitizeUrl");return y.isFunction(t)?t(e):e}function _o(e){e=e||ho().href;var t=m.get("annotateUrl");if(t)if(y.isFunction(t))try{var n,i,r,o=t();return o&&(y.isObject(o)||y.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&y.isArray(n)||i&&(y.isArray(i)||y.isObject(i)))&&(n&&(e=Ro(e,null,n,!0)),o=i||{}),oo.urlFor(e,o,r)):e}catch(a){I.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else I.error("customer-provided `annotateUrl` must be of type: function");return e}function xo(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function Ro(e,t,n,i){e=e||Io(),t=t||xo(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=y.isArray(n)?Oo(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var ko,Oo=function(e,t,n){return n&&y.contains(t,"*")?"":(e=No(e),e=n?y.omit(e,t):y.pick(e,t),Mo(e))},No=function(e){e=e.split("&");return y.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&Mt(t[1])),e},{})},Mo=function(e){return y.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},Lo={watch:function(e){var n,i=[],t=(I.info("Initializing Pendo URL Watcher"),m.get("location.pushState")&&et.supportsHistoryApi());return Co||(t&&(n=window.history,y.each(["pushState","replaceState"],function(e){var t=n[e];n[e]=y.wrap(n[e],function(e){var t=e.apply(n,y.toArray(arguments).slice(1));return Dt(Ao,0),t}),i.push(function(){n[e]=t})}),i.push(to(window,"popstate",Ao))),et.supportsHashChange()&&i.push(to(window,"hashchange",Ao)),!1!==t&&et.supportsHashChange()||i.push(bo()),Co=!0),wo.push(e),function(){y.each(i,function(e){e()}),wo.length=0,Co=!1}},get:Io,externalizeURL:function(e,t,n){n=n||m.get(Eo);return To(Ro(e,t,n=y.isFunction(n)?n():n,!1))},startPoller:bo,getWindowLocation:ho,clear:function(){wo=[]},isElectron:lo,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 Fo(){var e=m.getLocalConfig("dataHost");return e||((e=m.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:rt)}function Po(){ko=Fo()}function Go(){var e=m.get("contentHost")||m.get("assetHost")||ot;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function Do(e){return"".concat(Go(),"/").concat(at?at+"/":"").concat(e)}function Bo(){var e=m.get("allowPartnerAnalyticsForwarding",!1)&&m.get("adoptAnalyticsForwarding",!1);return m.get("trainingPartner",!1)||e}var Wo=3,$o=1,Uo=9,jo=11,zo=4;function f(e){var t;if((t=e)&&t.nodeType===$o)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function Zo(e,t){var n;return!(!e||!y.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&y.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),y.any(n,function(e){return e&&"none"!==e}))}function Vo(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function Yo(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function Ho(e){return y.isNumber(e)?e:0}function Ko(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!Jo(e)?null:e}function Xo(e){return Zo(f(e),ze)&&isNaN(Be)}function Jo(e){if(e)return(e=f(e))&&(y.contains(["relative","absolute","fixed"],e.position)||Zo(e,ze))}function qo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=Jo(t)?t:Ko(t,n),i=t?Qo(t):{top:0,left:0},e=Qo(e),i={top:e.top-i.top,left:e.left-i.left,width:e.width,height:e.height};return t?(t!==n.document.scrollingElement&&(i.top+=Ho(t.scrollTop),i.left+=Ho(t.scrollLeft)),i.top-=Ho(t.clientTop),i.left-=Ho(t.clientLeft)):(i.top+=Vo(n),i.left+=Yo(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function Qo(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}}var ea=void 0===(i=m.get("pendoCore"))||i,ta=function(e,t,n){e=ko+"/data/"+e+"/"+t,t=y.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function na(){return y.compact([v.apiKey].concat(v.additionalApiKeys))}var ia=function(e){return e+="v"+dt,oa(ta("log.gif",v.apiKey,{msg:e,version:dt}))};function ra(e){try{var t=ko+"/data/errorlog?apiKey="+v.apiKey,n={error:e,version:"v"+dt,visitorId:E()},i=aa.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):oo.postJSON(t,n);return i.then(function(){I.info("successfully wrote error")},function(e){I.info("error writing error:"+e)})}catch(r){return I.info("Failed to write error to server using POST endpoint: "+r),ia("Failed to write error to server using POST endpoint: "+r)}}function oa(e){var t,n;return ca()?(t=C.defer(),to(n=new Image,"load",t.resolve),to(n,"error",t.reject),n.src=e,t.promise):C.resolve()}function aa(e,t){t=y.extend({},{method:"GET",keepalive:!0},t=void 0===t?{}:t);return fetch(e,t)}function sa(e,t){return navigator.sendBeacon(e,t)}aa.supported=function(){try{return y.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var da=!(sa.supported=function(){return y.isFunction(navigator.sendBeacon)}),ua=function(){var e=ca();return da=!0,e&&S["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},ca=function(){return!da&&ea},la=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(ga(e))}catch(n){return!1}},pa=function(e,t){try{var n;la(e,t)||(n=gt.call(ga(e))+" "+t,fa(e,n))}catch(i){}},ha=function(e,t){try{var n,i;la(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=ga(e).replace(n," "),fa(e,i))}catch(r){}},fa=function(e,t){y.isString(e.className)?e.className=t:e.setAttribute("class",t)},ga=function(e){try{var t=e.className;return(y.isString(t)||!fe(t)?t:e.getAttribute("class"))||""}catch(n){return""}},ma=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},va={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},ya=function(e,t){t=function(e){if(y.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);ba(e,t)},ba=function(a,e){y.each(e,function(e,t){if(""!==(t=gt.call(t))){var n=ma(t),i=(!y.isNumber(e)||isNaN(e)||va[n]?y.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=gt.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=gt.call(e)}catch(o){I.info("failed to set style: "+t+" with value "+e)}}})},Ia=function(){return tt()?{width:document.documentElement.offsetWidth||0,height:document.documentElement.offsetHeight||0}:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}},wa=function(e){var t=Ia(),n=Vo(),i=Yo();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function Ca(t){return y.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function Sa(e,t){var n;return void 0===t&&(t=window),function(e){var t,n=e;for(;n;){if(!(t=f(n)))return;if("fixed"===t.position)return!isNaN(Be)||!Na(n);n=n.parentNode}return}(e)?((n=Qo(e)).fixed=!0,Ca(n)):Ca(qo(e,_a(t.document),t))}var Aa=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},Ea=y.compose(function(e){return Array.prototype.slice.call(e)},function(e,t){try{return Xr(e,t)}catch(n){return ia("error using sizzle: "+n),t.getElementsByTagName(e)}}),Ta=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return I.info("error interrogating body elements: "+n),ia("error picking best body:"+n),0}},_a=function(e){e=e||document;try{var t=Ea("body",e);return t&&1<t.length?(t.sort(Ta),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return ia("Error getting body element: "+n),e.body}};function xa(e){if(e&&e.parentNode){var t=e.parentNode,n=e;if(!t)return[];var i=[];if(t.childNodes)for(var r=0;r<t.childNodes.length;r++){var o=t.childNodes[r];1===o.nodeType&&o!==n&&i.push(o)}return i}return[]}function Ra(e){if(Xr.contains(document,e))return!0;for(;e&&e.parentNode||_i.isElementShadowRoot(e);)e=_i.getParent(e);return e===document}var ka=function(e){var t=_a();if(null!==e)return e===document||e===window?((t={left:window.pageXOffset||t.scrollLeft,top:window.pageYOffset||t.scrollTop,width:window.innerWidth,height:window.innerHeight}).right=t.left+t.width,t.bottom=t.top+t.height,t):((t=Sa(e)).right=t.left+t.width,t.bottom=t.top+t.height,t)},Oa=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Na(e){for(var t=e&&e.parentNode;t;){if(Zo(f(t),ze))return 1;t=t.parentNode}}var Ma=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(Ra(e))for(i=e;i;)if(_i.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))&&!y.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Na(i))i=Ko(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function La(e,t){e=f(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?Fa.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?Fa.BOTH:t.test(e.overflowY)?Fa.Y:t.test(e.overflowX)?Fa.X:t.test(e.overflow)?Fa.BOTH:Fa.NONE}var Fa={X:"x",Y:"y",BOTH:"both",NONE:"none"};function Pa(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&Ra(e)}function Ga(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 Da(e){if(e){if(y.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function Ba(e,t,n){for(var i=[],r=Da(document.documentElement),o=Da(Ma(t)),a=0;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=Da(Ma(o)),a++;return function(){y.each(y.compact(i),function(e){e()}),i.length=0}}var Wa=['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 $a(e,t,n){var i=ka(t),t=La(t,n);if(t!==Fa.BOTH||Oa(e,i)){if(t===Fa.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===Fa.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function Ua(e){if(e){if(Pa(e))return 1;var t=ka(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 ja(e,t){if(!Ua(e))return!1;if(!Pa(e)){for(var n=ka(e),i=Ma(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!$a(n,i,t))return!1;i=Ma(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=Yo(),e+=Vo()),o<=0||e<=0)return!1}}return!0}function za(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=ka(e),u=Ma(e,s);if(!Ua(e))return!1;for(;u;){if(t=ka(u),(o=La(u,a))!==Fa.NONE&&(i=n=0,o!==Fa.Y&&o!==Fa.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!==Fa.X&&o!==Fa.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))),!$a(d,u,s))return!1;u=Ma(u,s)}return!0}function Za(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=_a(),d=Ma(e,a);d&&d!==s;)t=ka(e),n=ka(d),r=i=0,t.bottom>n.bottom&&(i+=t.bottom-n.bottom,t.top-=i,t.bottom-=i),t.top<n.top&&(i-=o=n.top-t.top,t.top+=o,t.bottom+=o),t.right>n.right&&(r+=t.right-n.right,t.left-=r,t.right-=r),t.left<n.left&&(r-=o=n.left-t.left,t.left+=o,t.right+=o),y.isFunction(d.scrollBy)?d.scrollBy(r,i):(d.scrollTop+=i,d.scrollLeft+=r),d=Ma(d,a)}lr={$:{findOrCreate:function(e){return 0<this.length?this:R(e)},find:function(e){var t=R();return t.context=this.context,this.each(function(){R(e,this).each(function(){t[t.length++]=this})}),t},each:function(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html:function(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text:function(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){ya(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass:function(e){return e=e.split(/\s+/),this.each(function(t){y.each(e,function(e){pa(t,e)})})},removeClass:function(e){return e=e.split(/\s+/),this.each(function(t){y.each(e,function(e){ha(t,e)})})},hasClass:function(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){y.each(e,function(e){n=n&&la(t,e)})}),n)},toggleClass:function(e){return e=e.split(/\s+/),this.each(function(t){y.each(e,function(e){(la(t,e)?ha:pa)(t,e)})})},css:function(e){return this.each(function(){ya(this,e)}),this},appendTo:function(e){return R(e).append(this),this},append:function(e){var t=this;return R(e).each(function(){t.length&&t[0].appendChild(this),Ra(this)&&y.each(Xr("script",this),Ga)}),t},prependTo:function(e){return R(e).prepend(this),this},prepend:function(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],R(e).each(function(){n?R(this).insertBefore(n):R(this).appendTo(t)})),this},getParent:function(){var e=R(this)[0];if(e&&e.parentNode)return R(e.parentNode)},insertBefore:function(e){e=R(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),Ra(document))&&y.each(Xr("script",this[0]),Ga)},remove:function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr:function(e,t){return y.isObject(e)?(this.each(function(){y.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest:function(e,t){for(var n=this[0];n&&!Xr.matchesSelector(n,e);)if((n=Ti(n))===document||t&&Xr.matchesSelector(n,t))return R();return R(n)},eq:function(e){return R(this[e])},height:function(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width:function(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus:function(){return this.each(function(){y.isFunction(this.focus)&&this.focus()})}}},Va.prototype.signal=function(){y.each(this.listeners,function(e){e.get()})},Va.prototype.addObservers=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.listeners=[].concat(this.listeners,e)},Va.prototype.teardown=function(){this._teardown()},rr=Va;function Va(e,t){void 0===e&&(e=_a()),void 0===t&&(t={attributes:!0,childList:!0,subtree:!0});var n,i,r=this;this.listeners=[],this._teardown=function(){},et.MutationObserver?((n=new(_t("MutationObserver"))(function(e,t){r.signal()})).observe(e,t),this._teardown=function(){return n.disconnect}):(i=Dt(function(){r.signal()},500),this._teardown=function(){clearTimeout(i)})}s=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var Ya="function"==typeof(e=window.WeakRef)&&/native/.test(e)?e:s();function Ha(e,t){var n,i;return e.tagName&&-1<["textarea","input"].indexOf(e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:qa(n.substring(0,i))):Ka(e,t)}function Ka(e,t){void 0===t&&(t=128);var n,i="",r=e.nodeType;if(r===Wo||r===zo)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===$o||r===Uo||r===jo)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=Ka(e.childNodes[a],t-i.length))).length)return i+qa(o.substring(0,t-i.length));i+=o}}return i}function Xa(e){return 55296<=e&&e<=56319}function Ja(e){return 56320<=e&&e<=57343}function qa(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(Xa(t)||Ja(t)){if(1===e.length)return e.slice(0,-1);if(Xa(t))return e.slice(0,-1);if(Ja(t))if(!Xa(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}function Qa(e){this.listeners={},this.events=[],this.cssSelector=e}function es(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===Fo())return!0;if(t===Go())return!0;var e=[/^https:\/\/(app|via|adopt)(\.eu|\.us|\.gov|\.jpn|\.hsbc|\.au)?\.pendo\.io$/,/^https:\/\/((adopt\.)?us1\.)?(app|via|adopt)\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)-static\.storage\.googleapis\.com$/,/^https:\/\/(us1\.)?cdn(\.eu|\.jpn|\.gov|\.hsbc|\.au)?\.pendo\.io$/],n=(pt()||(e=e.concat([/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(dev|test|io|us1|govramp|jp-prod|hsbc|au|batman|magic|atlas|wildlings|ionchef|mobile-guides|mobile-hummus|mobile-fbi|mobile-plat|eu|eu-dev|apollo|security|perfserf|freeze|armada|voc|mcfly|calypso|dap|scrum-ops|ml|helix|uat)\.appspot\.com$/,/^https:\/\/via\.pendo\.local:\d{4}$/,/^https:\/\/adopt\.pendo\.local:\d{4}$/,/^https:\/\/local\.pendo\.io:\d{4}$/,new RegExp("^https://pendo-"+it+"-static\\.storage\\.googleapis\\.com$")])),m.get("adoptHost"));if(n&&t==="https://"+n)return!0;return!!y.contains(m.get("allowedOriginServers",[]),t)||y.any(e,function(e){return e.test(t)})}function ts(e){var t;if(y.isString(e))return t=(t=xo(e).substring(1))&&t.length?No(t):{},e=y.last(y.first(e.split("?")).split("/")).split("."),{filename:y.first(e),extension:e.slice(1).join("."),query:t}}function ns(e,t){var n;m.get("guideValidation")&&et.sri&&(n=ts(t),t=y.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],y.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}Qa.prototype.get=function(){var t=this,n=this.elRef&&this.elRef.deref(),e=Ra(n);if(!n||!e){if(n&&!e)return undefined;if(!(n=R(this.cssSelector)[0]))return undefined;y.each(this.events,function(e){n.addEventListener(e,function(e){return t.onEvent(e)})}),this.elRef=new Ya(n)}return n},Qa.prototype.getText=function(e){return void 0===e&&(e=1024),Ha(this.get(),e)},Qa.prototype.addEventListener=function(e,t){var n=this,i=this.get();this.events.indexOf(e)<0&&(this.events.push(e),i)&&i.addEventListener(e,function(e){return n.onEvent(e)}),this.listeners[e]=this.listeners[e]?this.listeners[e].push(t):[].concat(t)},Qa.prototype.onEvent=function(t){var e=t.type;y.each(this.listeners[e],function(e){return e(t)})},Qa.prototype.teardown=function(){var t=this,n=this.get();n&&y.each(this.events,function(e){return n.removeEventListener(e,t.onEvent)})},y.extend(R,{data:qr,event:ro,removeNode:Aa,getClass:ga,hasClass:la,addClass:function(e,t){var n;"string"==typeof e?(n=R(e),y.map(n,function(e){pa(e,t)})):pa(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=R(e),y.map(n,function(e){ha(e,t)})):ha(e,t)},getBody:_a,getComputedStyle:f,getClientRect:ka,intersectRect:Oa,getScrollParent:Ma,isElementVisible:ja,Observer:rr,Element:Qa,scrollIntoView:Za,getRootNode:Da}),y.extend(R.prototype,ro.$,lr.$);var is,rs=function(e){var t=0===m.get("allowedOriginServers",[]).length,n=Bo();return!(!t&&!n&&(t=it,n=J,!/prod/.test(t)||ne(n)))||es(e)},os=function(e,t,n){void 0===n&&(n=!1);try{var i,r="text/css",o="text/javascript";if(y.isString(e)&&(e={url:e}),!rs((u=e.url,new Ci(u).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];if(e.type===r){var d=document.createElement("link");d.type=r,d.rel="stylesheet",d.href=e.url,ns(d,e.url),a=d}else{if(Tt())return(i=document.createElement("script")).addEventListener("load",function(){t(),Aa(i)}),i.type=o,i.src=K(v).createScriptURL(e.url),ns(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=K(v).createScriptURL(e.url),ns(i,e.url),a=i,t=y.wrap(t,function(e,t){R.removeNode(i),t?n&&e(t):e.apply(this,y.toArray(arguments).slice(1))})}return s.appendChild(a),as(a,e.url,t),a}catch(c){return{}}var u},as=function(e,t,n){var i=!1;fe(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Dt(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Dt(function(){i||ia("Failed to load "+t+" within 10 seconds")},1e4))},ss=function(e){var t=JSON.parse(e.data),n=e.origin;I.debug(v.app_name+": Message: "+JSON.stringify(t)+" from "+n),Cs(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},ds=function(e){cs(fs)(us(e))},us=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation){if(t.type&&"string"==typeof t.type)return{data:t,origin:n,source:i};I.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function cs(t){return function(e){if(e&&es(e.origin))return t.apply(this,arguments)}}var ls={disconnect:function(e){},module:function(e){ws(e.moduleURL)},debug:function(e){Es(ss)}},ps=function(e,t){ls[e]=t},hs=function(e){delete ls[e]},fs=function(e){var t;e&&(t=e.data)&&fe(ls[t.type])&&ls[t.type](t,e)},gs={},ms=function(e){if(gs[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},vs=function(e){return fe(gs[e])},ys=function(e){if(gs)for(var t in gs)if(0<=t.indexOf(e))return t;return null},bs=[],Is=function(){var e;bs.length<1||(e=bs.shift(),vs(e))||os(e,function(){ms(e),Is()})};var ws=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};y.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 Ci(e);return es(n.origin)&&t[n.pathname]}catch(i){I.debug("Invalid module URL: "+e)}}(e)||(bs.push(e),1<bs.length)||Is()},Cs=function(e,t,n){var i,r=y.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=is||As(),n="*"),t.guid=r,e&&y.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";I.info("Failed to postMessage: "+t)}return r},Ss=function(){return window!=window.top},As=function(){var e=new RegExp("^"+Yt(ko).replace(/^https?:/,"https?:")),t=m.get("forceParentDesigner");return!pt()&&t||e.test(location.href)?window.parent:window.top},Es=function(e){var t;return fe(window.addEventListener)&&y.isFunction(window.addEventListener)&&(t=cs(e),window.addEventListener("message",t,!1)),function(){fe(window.removeEventListener)&&y.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},Ts=y.memoize(function(){return m.get("restrictP1Access")}),_s=[],xs=[],Rs=12e4,ks=16,Os=1900,Ns=65536,Ms=function(e){return!(!e||""===e)},Ls=function(){return Lo.get()},Fs={flush:y.noop,flushBy:y.noop,flushEvents:Bs,flushTrackEvents:Bs,flushSilos:Bs,flushTrackEventSilos:Bs,flushBeacons:Bs,flushNow:Bs,flushLater:Ws,flushEvery:$s,flushStop:Us,beacons:[],silos:[],trackEventSilos:[],lock:ua,unlock:function(){if(!ca())return js(),function(){var e=!ca();return da=!1,e&&S["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},Ps=[];function Gs(e){Ps.push(e)}function Ds(e){e=Ps.indexOf(e);0<=e&&Ps.splice(e,1)}function Bs(e,t){try{y.each(Ps,function(e){e.flush&&e.flush(t)})}catch(n){I.critical("unhandled error while flushing event cache",{error:n})}}function Ws(e){return t=y.partial(Bs,!0),n=e,n=parseInt(n,10)||0,t[n]||(i=Dt(function(){t(),t[n]()},n),t[n]=function(){window.clearTimeout(i),delete t[n]});var t,n,i}function $s(e){var t;if(e=parseInt(e,10)||0,y.isObject($s.intervals)||($s.intervals={}),!$s.intervals[e])return t=window.setInterval(Bs,e),$s.intervals[e]=function(){clearInterval(t),delete $s.intervals[e]}}function Us(){var e=y.values($s.intervals).concat([Bs]);y.map(e,function(e){y.isFunction(e)&&e()})}function js(){y.each(Ps,function(e){e.clear&&e.clear()}),Us()}function zs(e){try{return window.TextDecoder?JSON.parse((new TextDecoder).decode((t=e.split(".")[1],t=atob(t),Uint8Array.from(t,function(e){return e.codePointAt(0)})))):JSON.parse(atob(e.split(".")[1]))}catch(n){return null}var t}function Zs(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(I.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(I.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!y.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(I.debug(t+"The jwt is invalid."),!1)):(I.debug(t+"Missing jwt and signingKeyName."),!1)}Vs=null;var Vs,Ys={set:function(e){Vs=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==Vs?Vs:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!m.get("enableSignedMetadata")&&(n=Zs(e,t),m.get("requireSignedMetadata")&&!n?(I.debug("Pendo will not "+t+"."),!1):n?zs(e.jwt):void I.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}},Hs=100,Ks=(Xs.prototype.isEmpty=function(){return this.queue.length<=0},Xs.prototype.stop=function(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer},Xs.prototype.start=function(){this.stopped=!1},Xs.prototype.push=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.queue).push.apply(e,t),this.next()},Xs.prototype.next=function(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)},Xs.prototype.incrementFailure=function(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t},Xs.prototype.pass=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()},Xs.prototype.fail=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,6))))},Xs.prototype.retryLater=function(e){var t=this;this.timer=Dt(function(){delete t.timer,t.next()},e)},Xs.prototype.failed=function(){return 0<this.failures.get(this.queue[0])&&null!=this.timer},Xs.prototype.send=function(e,t,n){var i=this;return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(function(){return i.pass(e,n)},function(){return i.fail(e,n)})},Xs.prototype.drain=function(e,t){var n;if(void 0===t&&(t=!0),(n=this.queue).push.apply(n,e),this.failed())return Ft.reject();for(var i=[],r=0,o=this.queue;r<o.length;r++){var a=o[r];this.pending.has(a)?this.retryPending&&t&&!this.unloads.has(a)&&(this.incrementFailure(a),i.push(this.send(a,t,!1))):i.push(this.send(a,t,!1))}return Ft.all(i)},Xs);function Xs(e,t){void 0===t&&(t=Hs),this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}var Js="_PENDO_UNNAMED_",qs=5;function Qs(e,t,n,i,r,o){var a,s;a=m.get("dropAnonymous"),s=ii(E()),!ea||a&&s||(a=t,s=n,t=i,n=r,i=o,s={type:r=e,browser_time:b(),visitor_id:E({generate:!0}),account_id:mi(),url:Lo.externalizeURL(s),props:a||{},eventProperties:n},s=Gn.addTracerIds(s),"track"===r&&(s.track_event_name=t||Js),S.eventCaptured.trigger(s,i),Ms((o=s).url)&&function(e){if(m.get("freeNPSData"))return y.contains(ed,e.type);return 1}(o)&&("track"===e?Ld.push(o):Md.push(function(e,t){try{if(!e.getters["monitoring/shouldFlush"]())return t;var n=e.getters["monitoring/payload"]();e.dispatch("monitoring/flush"),y.isEmpty(n)||(t.ops=n)}catch(i){}return t}(A,o))))}var ed=["load","meta","identify"];function td(){var r=y.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}var nd=0;function id(e,t){e.sequence=nd++,t(e)}function rd(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 od(e,t){return Bo()?ad("account_id")(e,t):t(e)}function ad(s){return function(e,t){if(!e.length)return t(e);for(var n=y.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==y.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 sd(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function dd(e,t,n){t=n[t-1]||y.last(n);return Math.ceil(e/t)}function ud(e,t){for(var n,i=0,r=(y.isFunction(t.overhead)?t.overhead:y.constant(0))(),o=0;o<e.length;++o){if(dd(n=sd(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(dd(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(dd(i+(n=sd(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function cd(){var e=Ys.get();return y.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}function ld(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=v.squeezeAndCompress(e.slice()),e.JZB.length<=Ns)||1===e.length?t(e):(n=e.length/2,ld(e.slice(0,n),t),void ld(e.slice(n),t))}function pd(e,t){ca()&&t(e)}function hd(){return function(e,t){1===e.length&&e.JZB.length>Ns?(I.debug("Couldn't write event"),ia("Single item is: "+e.JZB.length+". Dropping."),ra(e.JZB)):t(e)}}function fd(e,t){return ta(t.beacon+".gif",e,y.extend({v:dt,ct:b(),jzb:t.JZB},t.params,t.auth))}function gd(e,t){return ta(t.beacon+".gif",e,y.extend({v:dt,ct:b(),s:t.JZB.length},t.params))}function md(i){return function(e,t){e.params=y.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=Ys.get();y.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function vd(e,t){var n=Bo(),i=y.first(e),i=y.get(i,"account_id");n&&i&&(e.params=y.extend({},e.params,{acc:wt(i)})),t(e)}function yd(e,t){var n=y.first(e),n=y.get(n,"props.source");n&&(e.params=y.extend({},e.params,{source:n})),t(e)}function bd(e){return JSON.stringify(y.extend({events:e.JZB},e.auth))}function Id(e){return e.status<200||300<=e.status?C.reject(new Error("received status code ".concat(e.status,": ").concat(e.statusText))):C.resolve()}function wd(e,t){return aa(fd(e,t)).then(Id)}function Cd(e,t){return fetch(gd(e,t),{method:"POST",keepalive:!0,body:bd(t),headers:{"Content-Type":"application/json"}}).then(Id)}function Sd(e,t){var n=bd(t);return sa(gd(e,t),n)?C.resolve():C.reject()}function Ad(n){return function(e,t){return t.JZB?t.eventLength<=Os&&!m.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&aa.supported()?wd(e,t):t.auth?oo({method:"GET",url:fd(e,t)}):oa(fd(e,t)):n.allowPost&&t.eventLength<=Ns?aa.supported()?Cd(e,t):sa.supported()?Sd(e,t):oo({method:"POST",url:gd(e,e=t),data:bd(e),headers:{"Content-Type":"application/json"}}):C.resolve():C.resolve()}}function Ed(n){return function(e,t){if(t.JZB){if(t.eventLength<=Os&&!m.get("sendEventsWithPostOnly",!1)){if(!t.auth&&aa.supported())return wd(e,t);if(et.msie<=11)return oo({method:"GET",url:fd(e,t),sync:!0})}if(t.eventLength<=Ns&&n.allowPost){if(aa.supported())return Cd(e,t);if(sa.supported())return Sd(e,t);if(et.msie<=11)return oo({method:"POST",url:gd(e,e=t),data:bd(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return C.resolve()}}function Td(e){return td(pd,od,ld,(t=e.shorten,t=y.defaults(t||{},{fields:[],siloMaxLength:Ns}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],I.debug("Max length exceeded for an event"),y.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(I.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),ld,hd(),md(e),vd,yd);var t}xd.prototype.isEmpty=function(){return y.all(this.queues,function(e){return e.isEmpty()})},xd.prototype.stop=function(){y.each(this.queues,function(e){return e.stop()})},xd.prototype.push=function(){var t=y.toArray(arguments);y.each(this.queues,function(e){return e.push.apply(e,t)})},xd.prototype.drain=function(){var t=y.toArray(arguments);return C.all(y.map(this.queues,function(e){return e.drain.apply(e,t)}))};var _d=xd;function xd(e){this.queues=e}function Rd(t,r,o){r=r||Ad(t),o=o||Ed(t);e=t;var e=y.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=y.map(e,function(i){var e=new Ks(function(e,t,n){return n&&(e.params=y.extend({},e.params,{rt:n})),(t?o:r)(i,e)});return e.onTimeout=function(){A.commit("monitoring/incrementCounter",t.beacon+"GifFailures")},e.retryPending=!0,e});return new _d(e)}function kd(e,t){var n=m.get("analytics.excludeEvents");0<=y.indexOf(n,e.type)||t(e)}Pd.prototype.pause=function(e){var t=this,n=(void 0===e&&(e=1e4),y.uniqueId()),i=this.locks,r=(i[n]=1,function(){i[n]&&(clearTimeout(o),delete i[n],t.flush())}),o=Dt(r,e);return r},Pd.prototype.push=function(e){var t=this;this.packageSilos(e,function(e){t.silos.push(e)})},Pd.prototype.clear=function(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()},Pd.prototype.flush=function(e){var t,e=void 0===e?{}:e,n=e.unload,n=void 0!==n&&n,e=e.hidden,e=void 0!==e&&e,i=this.cache,r=this.silos;0===i.length&&0===r.length&&this.sendQueue.isEmpty()||y.isEmpty(this.locks)&&(r.push(i.slice()),i.length=0,i=r.slice(),r.length=0,t=[],y.each(i,function(e){this.processSilos(e,function(e){t.push(e)})},this),n||e?this.sendQueue.drain(t,n):(r=this.sendQueue).push.apply(r,t))};var Od,Nd,Md,Ld,Fd=Pd;function Pd(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=Rd(e)}function Gd(e){var i,r,t=Td(e),n=td((r=e.beacon,function(e,t){var n=m.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),kd,id,rd(e.cache),(i={overhead:cd,lower:m.get("sendEventsWithPostOnly")?Ns:Os,upper:Ns,compressionRatio:[.5*qs,.75*qs,qs]},function(e,t){for(var n=ud(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=ud(e,i)}));return new Fd(y.extend({processSilos:t,packageSilos:n},e))}var Dd=wi(function(e){var t,n,i;if((e=e||Lo.get())&&e!==Dd.lastUrl)return Dd.lastUrl=e,t=-1,Ts()||Ss()&&(i=As(),Cs(i,{type:"load",url:location.toString()},"*")),I.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&y.isFunction(performance.getEntriesByType)&&!y.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},Ss()&&(t.is_frame=!0),"*"!==(n=Ht())&&(t.allowed_storage_keys=y.keys(n)),Qs("load",t,e),Ws(),S.urlChanged.trigger(),!0});function Bd(e){return"hidden"===e.visibilityState}Dd.reset=function(){Dd.lastUrl=null};var Wd="visibilitychange",$d="pagehide",Ud="unload";function jd(){this.serializers=y.toArray(arguments)}function zd(e,t){return e.tag=_i.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function Zd(e){return fe(e)?""+e:""}function Vd(e,t){return e.id=Zd(t.id),e}function Yd(e,t){return e.cls=Zd(R.getClass(t)),e}y.extend(jd.prototype,{add:function(e){this.serializers.push(e)},remove:function(e){e=y.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize:function(n,i){return n?(i=i||n,y.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var Hd=256,Kd=64,Xd={a:{events:["click"],attr:["href"]},button:{events:["click"],attr:["value","name"]},img:{events:["click"],attr:["src","alt"]},select:{events:["mouseup"],attr:["name","type","selectedIndex"]},textarea:{events:["mouseup"],attr:["name"]},'input[type="submit"]':{events:["click"],attr:["name","type","value"]},'input[type="button"]':{events:["click"],attr:["name","type","value"]},'input[type="radio"]':{events:["click"],attr:["name","type"]},'input[type="checkbox"]':{events:["click"],attr:["name","type"]},'input[type="password"]':{events:["click"],attr:["name","type"]},'input[type="text"]':{events:["click"],attr:["name","type"]}};var Jd=function(e,t,n){var i;return e&&e.nodeName?"img"==(i=e.nodeName.toLowerCase())&&"src"==t||"a"==i&&"href"==t?(i=e.getAttribute(t),To((i=i)&&0===i.indexOf("data:")?(I.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"")):(i=t,e=(t=e).getAttribute?t.getAttribute(i):t[i],(!n||typeof e===n)&&e?y.isString(e)?gt.call(e).substring(0,Hd):e:null):null};function qd(t){var e,n,i;return y.isRegExp(t)&&y.isFunction(t.test)?function(e){return t.test(e)}:y.isArray(t)?(e=y.map(y.filter(t,y.isObject),function(e){var t;return e.regexp?(t=(t=/\/([a-z]*)$/.exec(e.value))&&t[1]||"",new RegExp(e.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),t)):new RegExp("^"+e.value+"$","i")}),function(t){return y.any(e,function(e){return e.test(t)})}):y.isObject(t)&&t.regexp?(n=(n=/\/([a-z]*)$/.exec(t.value))&&n[1]||"",i=new RegExp(t.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),n),function(e){return i.test(e)}):y.constant(!1)}function Qd(e,t,n,i){try{var r,o=y.indexBy(t),a=y.filter(y.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=Kd?y.pluck(a,"nodeName"):(r=y.groupBy(e,function(e){return o[e.nodeName]?"defaults":y.isString(e.value)&&e.value.length>Hd?"large":"small"}),y.pluck([].concat(y.sortBy(r.defaults,"nodeName")).concat(y.sortBy(r.small,"nodeName")).concat(y.sortBy(r.large,"nodeName")).slice(0,Kd),"nodeName"))}catch(s){return I.error("Error collecting DOM Node attributes: ".concat(s)),[]}}function eu(t,n){var e=qd(m.get("htmlAttributes")),i=qd(m.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=Jd(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},Qd(n.attributes,Xd[r]&&Xd[r].attr,e,i));return y.each(r,function(e){t.attrs[e.toLowerCase()]=Jd(n,e)}),t}function tu(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=y.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==$o}).indexOf(t).value()),e}function nu(i,e){var r;return m.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(nu),e=this.serialize(e.previousElementSibling),this.add(nu),i.attrs=i.attrs||{},y.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;y.isEmpty(e)||(y.isObject(e)?y.each(e,function(e,t){e&&!y.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var iu=new jd(zd,Vd,Yd,eu,tu,nu),ru=function(e){return"BODY"===e.nodeName&&e===_a()||null===e.parentNode&&!_i.isElementShadowRoot(e)},ou="pendo-ignore",au="pendo-analytics-ignore",su=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=iu.serialize(o,e)}while(r||!Et(a.cls,ou)&&!Et(a.cls,au)||(r=!0),n.parentElem=a,n=a,(i=_i.getParent(o))&&!ru(o));return r&&(t.parentElem.ignore=!0),t.parentElem},du=["","left","right","middle"],i=function(e){return e},e=function(e,t){return e[t]},uu=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return du[t]}],["altKey",e,i,i],["ctrlKey",e,i,i],["metaKey",e,i,i],["shiftKey",e,i,i]],cu={click:function(e,t){for(var n=[],i=0;i<uu.length;i++){var r=uu[i],o=r[0],a=r[1],s=r[2],r=r[3],a=a(e,o);s(a)&&n.push(r(o,a))}return t.flags=n,t}},lu=function(e){try{var t,n,i,r,o,a;R.data.get(e,"counted")||(R.data.set(e,"counted",!0),t=io(e),n=e.type,i={},(r=cu[n])&&(i=r(e,i)),R.data.get(e,"stopped")&&(i.stopped=!0),e.from&&y.isString(e.from)&&(i.from=e.from),(t=(s=t).nodeType===Wo?s.parentNode:s.nodeType===zo?null:s.correspondingUseElement||s)?(o=su(t),y.extend(o,i),Dd()&&Lo.startPoller(),o.ignore||(a=void 0,"click"===n&&(a=function(e){e=function(e){var n={};return{getEventProperties:function(){return n},addEventProperty:function(e,t){y.isString(e)&&!y.isUndefined(t)?n[e]=t:I.error("Failed to add click event property")},target:e}}(e),S.onClickCaptured.trigger(e),e=e.getEventProperties();if(!y.isEmpty(e))return e}(t)),Qs(n,{target:o},undefined,undefined,a,e),S.trigger("appUsage",o,e))):I.info("Invalid HTML target",{contexts:["event","dom","processing"]}))}catch(d){I.critical("pendo.io while handling event",{error:d})}var s};var pu=y.debounce(lu,5e3,!0),hu=function(e){var t,n,i,r=[],o=(y.contains(e=e||["click","focus","submit","change"],"change")&&(e=y.without(e,"change"),r.push(function(){pu.cancel()}),r.push(to(document,"change",pu,!0))),m.get("interceptElementRemoval")||m.get("syntheticClicks.elementRemoval")),a=m.get("syntheticClicks.targetChanged"),a=(r.push(function(t,e,n,i){var r,o,a=[],s=et.hasEvent("pointerdown"),d=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",u=[],c={cloneEvent:function(e){e=R.event.clone(e);return e.type="click",e.from=d,e.bubbles=!0,e},down:function(e){o=!1,e&&(r=c.cloneEvent(e),n)&&c.intercept(e)},up:function(e){o=!1,e&&r&&i&&io(r)!==io(e)&&(o=!0,t(r))},click:function(e){r=null,o&&R.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!ru(e);)t.push(e),e=e.parentNode;return t}(io(e));y.each(e,function(e){e=fu(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(y.each(a,function(e){e()}),a=[])},teardown:function Ay(){c.unwrap(),y.each(u,function(e){e()})}};e&&(u.push(to(document,d,c.down,!0)),u.push(to(document,s,c.up,!0)),u.push(to(document,"click",c.click,!0)));return c}(R.event.trigger,et.addEventListener,o,a).teardown),r.push((o=e,t=y.map(o,function(e){return l(document,e,lu,!0)}),function(){y.each(t,function(e){e()})})),r.push((n=function(e,t){t&&S.appUnloaded.trigger(),e&&S.appHidden.trigger()},m.get("preventUnloadListener")?((i=[]).push(to(document,Wd,function(){Bd(document)&&n(!0,!1)})),i.push(to(window,$d,y.partial(n,!1,!0))),function(){return y.each(i,function(e){e()})}):to(window,Ud,y.partial(n,!0,!0)))),S.appHidden.on(function(){Bs(0,{hidden:!0})}),S.appUnloaded.on(function(){Bs(0,{unload:!0})}),m.get("interceptStopPropagation",!0)),o=m.get("interceptPreventDefault",!0);return a&&r.push(gu(window.Event,e)),o&&r.push(mu(window.Event,["touchend"])),function(){y.each(r,function(e){e()})}};function fu(n,i){var e=["remove","removeChild"];try{if(!n)return y.noop;y.each(e,function(e){var t=n[e];if(!t)return y.noop;n[e]=y.wrap(t,function(e){return i&&i(),e.apply(this,y.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return y.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){I.critical("ERROR in interceptRemove",{error:t})}return function(){y.each(e,function(e){if(!n[e])return y.noop;e=n[e]._pendoUnwrap;y.isFunction(e)&&e()})}}function gu(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return y.noop;var i=y.indexBy(e);y.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=y.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(R.data.set(this,"stopped",!0),R.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){I.critical("ERROR in interceptStopPropagation",{error:r})}return function(){y.each(t,function(e){e=n.prototype[e]._pendoUnwrap;y.isFunction(e)&&e()})}}function mu(t,e){try{if(!t||!t.prototype)return y.noop;var i=y.indexBy(e),n=t.prototype.preventDefault;if(!n)return y.noop;t.prototype.preventDefault=y.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=R.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=Qr,R.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){I.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;y.isFunction(e)&&e()}}function l(e,t,n,i){return e&&t&&n?(i&&!et.addEventListener&&(i=!1),R.event.add(e,{type:t,handler:n,capture:i})):y.noop}function vu(e,t,n,i){e&&t&&n&&(i&&!et.addEventListener&&(i=!1),R.event.remove(e,t,n,i))}var yu=function(e){R.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},bu=function(e,t){return"complete"!==(t=t||window).document.readyState?to(t,"load",e):(e(),y.noop)},k=[],Iu=[],wu={},Cu={};function Su(){return k}function Au(){return Eu(k)}function Eu(e){return y.filter(e,function(e){return!e.isFrameProxy})}function Tu(e){y.isArray(e)?(k=e,S.guideListChanged.trigger({guideIds:y.pluck(e,"id")})):I.info("bad guide array input to `setActiveGuides`")}_u=[];var _u,xu={addGuide:function(e){var t;y.isEmpty(e)||(_u=_u.concat(e),y.each(_u,function(e){return e.hide&&e.hide()}),e=k,(t=y.difference(e,_u)).length<e.length&&(Tu(t),A.dispatch("frames/changeGuideList",t)))}};function Ru(t,n){return y.find(Mu(),function(e){return y.get(e,t)===n})||null}function ku(e){return Ru("id",e)}function Ou(e){return Ru("name",e)}function Nu(e,t){return e&&e.id?(e=ku(e.id)).findStepById(t):null}function Mu(){var e=y.values(Cu);return e.length?k.concat(y.flatten(e)):k}var Lu="_pendo-guide-tt_",Fu="_pendo-guide-mobile-tt_",Pu=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},Gu=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},Du=function(e){return!!y.get(e,"attributes.form")};function Bu(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function Wu(){return!!(Bu()&&Ia().width<=320)||et.isMobileUserAgent()}function $u(){var e=$u.attachPoint;if(null==e){var t=m.get("guides.attachPoint");if(y.isString(t)){try{e=Xr(t)[0]}catch(n){I.info('Error finding guide attach point "'+t+'"')}e=e||document.createElement("div")}else e=!!y.isFunction(t)&&t();$u.attachPoint=e}return e||_a()}var Uu=function(e){var t=wu[e.guideId];if(t){t=t.element();if(Ra(t)&&t.id==="_pendo-badge_"+e.id)return t}},ju=function(e){var t;return e?(t=e.getGuide(),t="building-block"===y.get(t,"attributes.type")||!Gu(t),!e.overrideElement&&t&&(e.overrideElement=Uu(e)),e.targetElement=zu(e),e.overrideElement||e.targetElement):(I.info("Can't get element for null step"),null)},zu=function(e){e=e.elementPathRule||null,e=e?Xr(e):[_a()];return 0===e.length?null:y.first(e)};function Zu(e){var t=y.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function Vu(e,t,n){var i,r,o,e=Sa(e),t=Sa(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!==wa(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),y.contains([Fa.X,Fa.BOTH],i)&&(r.x=0);y.contains([Fa.Y,Fa.BOTH],i)&&(r.y=0);return r}(a,Ia(),n,La(_a(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function Yu(e,t,n,i,r){var o,a=y.toArray(arguments).slice(1),s=e.apply(this,a);return n||Da(o=$u())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function Hu(){return A.getters["frames/isLeader"]()}function Ku(e){return A.dispatch("frames/updateFrameVisibility",{visibility:e})}Xu=Un.call({}),Ju={validateGuide:1,validateLauncher:1,validateGlobalScript:1},qu={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},y.each(["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"],function(t){qu[t]&&S[t].on(function(e){return Qu[t].apply(Qu[t],e.data)}),Xu[t]=function(e){return y.isFunction(e)?Xu.on(t,e):Xu[Ju[t]?"triggerAsync":"trigger"].apply(Xu,[t].concat(y.toArray(arguments)))}});var Xu,Ju,qu,Qu=Xu;var ec={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:function(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint:function(){return"guide.json"},usesXhr:function(){return!0}};function tc(e){e=ts(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}ic=sc={failed:{},verified:{}},oc=ra,ac=function(e){try{var t=[];return!ec.usesXhr()&&e.domJsonpUrl?t.push(cc(e,"domJsonpUrl")):ec.usesXhr()&&e.domUrl&&t.push(uc(e,"domUrl")),e.contentUrlJs?t.push(cc(e,"contentUrlJs")):e.contentUrl&&t.push(cc(e,"contentUrl")),C.all(t)}catch(n){throw S.contentVerificationFail.trigger(e,n),n}},rc=function(e){return ac(e).then(y.noop,function(e){return/verify/.test(e)&&oc(e),C.reject(e)})},nc=function(t){return ic.failed[t.id]?C.reject():ic.verified[t.id]?C.resolve():rc(t).then(function(){ic.verified[t.id]=!0},function(e){return ic.failed[t.id]=!0,C.reject(e)})};var nc,ic,rc,oc,ac,sc,dc={verify:function(e){return m.get("guideValidation")?nc(e):C.resolve()},reset:function(){sc.failed={},sc.verified={}}};function uc(e,t){var n,i=e[t];return y.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||tc(e[t]),oo.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=Y.create()).update(e),G.uint8ToBase64(t.digest())!==n)return C.reject('Unable to verify content at "'+i+'"')})):C.reject('unable to parse "'+i+'"')}function cc(e,t){var n=e[t];return et.sri&&/[?&]sha(256|384|512)=/.test(n)?C.resolve():uc(e,t)}lc="allow",pc="deny",hc="pending",gc=function(){return 0<y.size(Qu._handlers.validateGuide)},mc=function(e,n){var i=[];return y.each(e,function(e,t){n&&(t=n+"."+t),y.isObject(e)?y.each(mc(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var lc,pc,hc,fc,gc,mc,vc={state:fc={},Step:function(e){var n=this;function i(e){return y.filter([["content",tc(e.contentUrl)],["contentCss",tc(e.contentUrlCss)],["contentJs",tc(e.contentUrlJs)],["dom",tc(e.domUrl)],["domJsonp",tc(e.domJsonpUrl)]],function(e){return e[1]})}return this.signature=function(){var e,t;return this.domUrl?this.guide.authoredLanguage===this.language?i(this):i({contentUrl:n.contentUrl,contentUrlCss:n.contentUrlCss,contentUrlJs:n.contentUrlJs,domUrl:n.domUrl,domJsonpUrl:n.domJsonpUrl}):(e=[["content",this.content]],(t=this.attributes&&this.attributes.variables)&&(t=mc(t)).length&&(t=y.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return y.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<y.size(Qu._handlers.validateLauncher)&&n.data.template};return n.before("update",function(){if(r()&&i)return!1}),n.before("render",function(){var e,t;if(r())return!i&&(t="launcher-"+Ct(n.signature()),(t=fc[t])!==pc)&&(t!==lc?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+Ct(t),Qu.validateLauncher(t).then(function(){fc[e]=lc},function(){fc[e]=pc}).then(function(){i=!1,n.render(),n.update(k)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=mc(this.data);return t.length&&(t=y.chain(t).filter(function(e){return!/^contentUrl/.test(e[0])}).sortBy(function(e){return e[0]}).value(),e.push(["variables",t])),e},n},validate:function(e){if(!gc())return C.resolve();try{return y.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=N.findResourceCenterModules(t,k),t=[t].concat(n),C.all(y.map(t,yc))):yc(e)}catch(i){throw S.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!gc()||!!(e=fc[e.guideId])&&e.status===lc},invalid:function(e){return!!gc()&&!!(e=fc[e.guideId])&&e.status===pc},reset:function(){fc={}}};function yc(i){var r=fc[i.id];return r||(r={},fc[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+Ct(e),n=(r[t]||(r[t]={status:hc},r.status=hc),r[t].promise);return n||(n=Qu.validateGuide(e,i).then(function(){r[t].status=lc,r.status=lc},function(e){return r[t].status=pc,r.status=pc,C.reject(e)}),r[t].promise=n),n})}function bc(e,t){var n=y.toArray(arguments).slice(2);return y.reduce(e,function(e,t){return t.apply(e,n)},t)}function Ic(e){return y.isFunction(e.before)?e:bc(Ic.behaviors,e)}function wc(e,t){return bc(wc.behaviors,e,t)}function Cc(e){var t,n,i=m.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+((t=it)===Le?"pendo-static":De(t))+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+De(it)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+Yt(ot),"g"),i)):e}function Sc(e){return m.getLocalConfig("contentHost")?JSON.parse(Cc(JSON.stringify(e))):e}Ic.behaviors=[],wc.behaviors=[];Ac={},Ec=y.compose(function(e){var t=function(){var e=Yt(m.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&I.debug("Failed to verify URL: "+e+" vs "+t),e},Cc),Tc=[function(e,t,n){return t="var guide = pendo.findGuideById('".concat(t,"');\nvar step = guide && guide.findStepById('").concat(n,"');"),e.replace("<% if (typeof guide !== 'undefined') { %>\nvar guide = pendo.findGuideById('<%= guide.id %>');\nvar step = guide && guide.findStepById('<%= step.id %>');\n<% } %>",t)}];var Ac,Ec,Tc,_c={load:function(t){try{var e=Ac[t.id];if(e&&e.language!==t.language&&delete Ac[t.id],!Ac[t.id]){var n,i=[],r={deferred:{},language:t.language},o=!1;if(Ac[t.id]=r,ec.usesXhr()&&t.domUrl?(r.deferred.domJson=C.defer(),oo.get(Ec(t.domUrl)).then(function(e){r.domJson=Sc(e.data);var e=e.data;e=e,y.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(I.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){I.critical(e),S.resourceFetchFail.trigger(t,e),r.deferred.domJson.reject("Failed to load content")}),i.push(r.deferred.domJson.promise),o=!0):t.domJsonpUrl&&(r.deferred.domJson=C.defer(),n=os(Ec(t.domJsonpUrl),function(e){R.removeNode(n),e&&S.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!m.get("preventCodeInjection")){r.deferred.content=C.defer();var a=os(Ec(function(e){if(Tt()){var t=e.replace(/^https?:\/\/[^/]+\/guide-content\//,"").split("/"),n=t[0],n=$A.get("$Resource.pendoGuide"+function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",n=e.length,i=0,r=0,o="",a=0;a<n;a++)for(r=r<<8|e[a],i+=8;5<=i;)o+=t[r>>>i-5&31],i-=5;return 0<i&&(o+=t[r<<5-i&31]),o}(ft(n)));if(y.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){R.removeNode(a),e&&S.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=C.defer(),os({url:Ec(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!m.get("preventCodeInjection")){r.deferred.content=C.defer();var s=os(function(e,t){if(!y.isString(e))return e;var n=y.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(Ec(t.contentUrl),".js"),function(e){R.removeNode(s),e&&S.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return C.reject("fetchedDomContent is still false");r.deferred.promise=C.all(i).then(function(){return y.omit(r,"deferred")})}return Ac[t.id].deferred.promise}catch(d){throw S.resourceFetchFail.trigger(t,d),d}},reset:function(){Ac={}},guideContent:function(e,t,n,i,r){var o,a,s;y.isString(n)&&(o=n,a=e,s=t,n=y.reduce(Tc,function(e,t){return t(e,a,s)},o),y.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?y.template(n):y.constant(n)),o=Ac[e+t])&&o.deferred.content&&(o.content=n,o.template=i,o.script=r,o.deferred.content.resolve())},receiveDomStructureJson:function(e,t,n){(e=Ac[e+t])&&e.deferred.domJson&&(e.domJson=Sc(n),e.deferred.domJson.resolve())}},xc=(Rc.state={},Rc.queue=[],Rc.pending=function(){return y.reduce(Rc.state,function(e,t){return e+(t.loaded?0:1)},0)},Rc.reset=function(){_c.reset(),Rc.state={},Rc.queue=[]},Rc.prefetch=function(e){var t;return Rc.hasContent(e)?y.get(Rc.state[kc(e)],"promise"):(t=C.defer(),Rc.queue.push([t,e]),t.promise)},Rc.processPrefetch=function(e){return void 0===e&&(e=10),Rc.queue.length?(e=Rc.queue.splice(0,Math.max(e-Rc.pending(),0)),C.all(y.map(e,function(t){return Rc.fetchContent(t[1]).then(function(e){t[0].resolve(e)})["catch"](function(e){t[0].reject(e)})}))):C.resolve()},Rc.fetchContent=function(t){var e=kc(t);if(!(i=Rc.state[e])){var n,i={},r=t.getGuide();if(r.control)return C.resolve();r&&r.language&&(n=r.language);var r=t.guideId+t.id,o=y.extend({id:r,language:n,guideId:t.guideId},y.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=dc.verify(o).then(function(){return i.verified=!0,_c.load(o)}).then(function(e){return i.loaded=!0,e}),Rc.state[e]=i}return i.promise.then(function(e){y.extend(t,e)})},Rc.hasContent=function(e){return fe(e.content)||fe(e.domJson)},Rc);function Rc(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(y.extend(i,{fetchContent:function(e){void 0===e&&(e=!1);return e?Rc.prefetch(i):Rc.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=y.indexOf(n.steps,i);y.chain(n.steps).rest(t+1).first(e).each(function(e){y.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function kc(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}s=S.runtime,Oc=[],Nc=Un.call({}),Mc={beforeUnmount:{type:"trigger",fromUnmount:!1},beforeUpdate:{type:"trigger",fromUnmount:!1},updated:{type:"trigger",fromUnmount:!1},unmounted:{type:"trigger",fromUnmount:!0},advanced:{type:"trigger",fromUnmount:!0},dismissed:{type:"trigger",fromUnmount:!0},snoozed:{type:"trigger",fromUnmount:!0},hidden:{type:"trigger",fromUnmount:!0},beforeMount:{type:"triggerCancelable",fromUnmount:!1},beforeAdvance:{type:"triggerCancelable",fromUnmount:!1},beforePrevious:{type:"triggerCancelable",fromUnmount:!1},beforeDismiss:{type:"triggerCancelable",fromUnmount:!1},beforeSnooze:{type:"triggerCancelable",fromUnmount:!1}},s.on(function(e){var t,n=e.data[0];if(e.step=n,delete e.data,Dc(e.type))return-1<y.indexOf(["beforeUnmount","unmounted"],e.type)&&(t="active"===(t=n).seenState?"hidden":t.seenState,e.reason=t,"unmounted"===e.type)&&Nc.trigger(t,e),t=Mc[e.type].type,Nc[t](e.type,e),"unmounted"===e.type?Nc.trigger("afterUnmounted",e):"beforeMount"===e.type&&Gc(this,e,n),"triggerCancelable"!==t&&e.cancel&&delete e.cancel,e}),Bc.prototype.on=function(e,t){var n,i;Dc(e)?(Mc[e].fromUnmount&&(t=y.once(t)),n=this.step,i=t,t=wi(t=function(e){if(e.step.id===n.id)return i(e);I.debug("called guide runtime callback on wrong step")}),Nc.on(e,t),this.purge=y.compose(this.purge,y.partial(Nc.off,e,t))):I.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)};var Oc,Nc,Mc,Lc={initialize:function(){var e=m.get("guides.globalScripts");y.each(e,Lc.addGlobalScript)},teardown:function(){y.each(Oc,Lc.removeGlobalScript)},addGlobalScript:function(e){var t,n,i,r;t=e,(i=y.without(y.keys(t),"script","test","regex","beforeMount")).length&&(n=t.script,t.script=function(){if(y.each(i,function(e){Dc(e)&&this.on(e,t[e])},this),y.isFunction(n))return n.apply(this,arguments)}),r=e=t,!y.isFunction(r.script)&&!y.isFunction(r.beforeMount)||r.test&&!y.isFunction(r.test)||r.regex&&!y.isRegExp(r.regex)?I.critical("Error adding invalid GlobalScript via API"):Oc.push(e)},removeGlobalScript:function(e){0<=(e=y.indexOf(Oc,e))&&Oc.splice(e,1)},getContext:function(e){return new Bc(e)},runCustomScripts:function(i,r){y.each(Pc(i,r),function(e){try{var t=Lc.getContext(i);e.call(t,i,r,v)}catch(n){I.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})}};function Fc(e,n,i,r){return y.filter(e,function(e){if(y.isFunction(e[r])){if(y.isFunction(e.test))try{return e.test(n,i,v)}catch(t){return I.critical("Error in global script test code block",{error:t}),!1}return y.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function Pc(e,t,n){var i=[];return"script"===(n=void 0===n?"script":n)&&y.isFunction(e.script)&&i.push(e.script),y.size(Oc)&&(e=Fc(Oc,e,t,n),y.each(e,function(e){i.push(e[n])})),i}function Gc(n,i,r){var o=r.guide;o&&y.all(Pc(r,o,"beforeMount"),function(e){try{return e.call(n,i),!i.cancel}catch(t){return I.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}function Dc(e){return Mc[e]}function Bc(n){this.step=n,y.each(["read","write","clear"],function(t){this[t]=w[t],this[t+"ByGuide"]=function(){var e=y.first(arguments)+":"+y.get(n,"guide.id");return w[t].apply(this,[e].concat(y.rest(arguments)))}},this);var e=y.bind(function(e){this.step.id!==e.step.id?I.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=y.partial(Nc.off,"afterUnmounted",e),Nc.on("afterUnmounted",e)}function Wc(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?y.find(e.children,Wc):void 0}function $c(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=$c(e.children[n],t);if(i)return i}return!1}function Uc(e,t){if(t.props&&t.props.id===e)return t;if(t.children)for(var n=0;n<t.children.length;n++){var i=Uc(e,t.children[n]);if(i)return i}}var jc={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||k,a=r||v.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return y.reduce(e,function(e,t,n){var i=N.findResourceCenterHomeView(f),r=y.find(f,function(e){return e.id===t.id});if(v.designer)r=t,i=y.find(f,function(e){return y.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return y.each(r.children,function(e){e=ku(e);e&&e.control&&e.steps[0].onControlGuide("control")}),e}var o,a,s,d=JSON.parse(JSON.stringify(p)),u=(delete d.templateChildren,d.props.id=d.props.id+"-"+n,d.props["data-pendo-module-guide-id"]=r.id,d.actions||(d.actions=[]),{action:"renderResourceCenterModule",source:d.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id}],uiMetadata:{},eventType:"click"}),u=(d.props["data-localization-direction"]&&u.parameters.push({name:"transitionDirection",type:"string",value:d.props["data-localization-direction"]}),v.designer||d.actions.push(u),y.get(i,"attributes.notificationBubble")),c=y.get(i,"attributes.notifications"),u=(u&&c&&("AnnouncementsModule"===y.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===y.get(r,"attributes.resourceCenter.integrationName")?"chat":o)&&(d.props["data-pendo-notification-id"]=o,c=d,r=u,u=o,o=(i=i).attributes.notifications.individualCounts[o],c=$c(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=y.find(c.children,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-text")}))&&s.props&&s.props.style&&(l=parseInt(s.props.style.width,10))&&!isNaN(l)&&(a=c.children.indexOf(s),l=l-40+"px","100%"!==s.props.style.width&&(s.props.style.width=l),(l="rtl"===s.props.dir)?s.props.style["padding-left"]="40px":s.props.style["padding-right"]="40px",s.props.style["box-sizing"]="content-box",s={type:"div",children:[{type:"div",content:String(i.attributes.notifications.individualCounts[u]),props:{style:{position:"relative",top:"50%","font-weight":r["font-weight"],"font-family":r["font-family"],color:r.color}}}],props:{id:"pendo-home-view-bubble","class":"_pendo-home-view-bubble",style:Gt(Gt(Gt({position:"absolute","border-radius":"20px",height:"26px","line-height":"0px",padding:"0px 10px"},!l&&{right:"20px"}),l&&{left:"20px"}),{top:"50%","margin-top":"-14px","box-sizing":"content-box","background-color":r["background-color"],display:o?"block":"none"}),"aria-hidden":!0}},c.children.splice(a+1,0,s)),$c(d=Zc(d,t,d.props.id,n),function(e){e=y.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),i=$c(d,function(e){e=y.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=$c(d,function(e){e=y.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-".concat(n))});return u&&(u.props["aria-hidden"]=!0,i)&&(i.props["aria-labelledby"]="".concat(u.props.id," ").concat(l&&l.props.id)),e.concat(g(d,h,f))},[])}(t,n,o,a);case"pendo_resource_center_guide_list_item":return function(o,a,s,d){var e=o.templateChildren;return y.reduce(e,function(e,t,n){var i,r=Vc(s,t);return r?(i=JSON.parse(JSON.stringify(o)),t.keywords&&(i.props["data-_pendo-text-list-item-1"]=t.keywords),delete i.templateChildren,i.props.id=i.props.id+"-"+n,i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},v.designer||i.actions.push(r),i=Zc(i,t,i.props.id,n),e.concat(d(i,a,s))):e},[])}(t,n,o,a);case"pendo_task_list":return function(e,t,n,i){var r=e.templateChildren;y.filter(r,function(e){return Vc(n,e)}).length?(e.children=y.filter(e.children,function(e){return"pendo_task_list_fallback_text"!==e.templateName}),function o(e,t){e.templateName&&(e.templateChildren=t);if(!e.children||!e.children.length)return;for(var n=0;n<e.children.length;n++)o(e.children[n],t)}(e,r)):e.children=y.filter(e.children,function(e){return"pendo_task_list_item"!==e.templateName&&"pendo_task_list_progress_bar"!==e.templateName});return N.updatePseudoStyleSelectors(e),[i(e,t,n)]}(t,n,o,a);case"pendo_resource_center_onboarding_item":case"pendo_task_list_item":return function(s,d,u,c){var e=s.templateChildren;return y.reduce(e,function(e,t,n){var i,r,o,a=Vc(u,t);return a?(delete(i=JSON.parse(JSON.stringify(s))).templateChildren,i.props.id=i.props.id+"-"+n,i.props["data-pendo-show-guide-id"]=a.id,i.props["class"]+=" pendo-task-list-item",i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:a.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},v.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),$c(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=zc(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=Zc(i,t,i.props.id,n),e.concat(c(i,d,u))):e},[])}(t,n,o,a);case"pendo_resource_center_onboarding_progress_bar":case"pendo_task_list_progress_bar":return function(e,t,n,i){var r=e.templateChildren||t.getGuide().attributes.resourceCenter.children,o=0,a=0,r=(y.forEach(r,function(e){e=Vc(n,e);e&&(e.isComplete()?(o+=e.getTotalSteps(),a+=e.getTotalSteps()):(o+=e.getTotalSteps(),a+=e.getSeenSteps()))}),parseInt(a/o*100,10));isNaN(r)&&(r=0);r={totalPercentComplete:r+"%"};return $c(e=Zc(e=JSON.parse(JSON.stringify(e)),r),function(e){return e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-progress-bar-fill")}).props.style.width=r.totalPercentComplete,[i(e,t,n)]}(t,n,o,a);case"pendo_task_list_fallback_text":return[a(t,n,o)];case"pendo_resource_center_announcement_item":return function(l,e,n,p){e=e.getGuide().attributes.resourceCenter.children,e=y.reduce(e,function(e,t){t=Vc(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!y.every(e,function(e){e=e.steps[0];return!!xc.hasContent(e)}))return[];var t=N.getResourceCenter(),h=y.get(t,"attributes.notificationBubble");h&&(delete h.dir,"rtl"===l.props["data-localization-direction"])&&(h.dir="rtl");return y.map(e,function(e,t){var n,i,r,o,a,s,d,u="whatsnew"===y.get(e,"attributes.type"),c=JSON.parse(JSON.stringify(l));return c.props.id=c.props.id+"-"+t,c.props["data-pendo-announcement-guide-id"]=e.id,c.props["data-pendo-announcement-send-seen-event"]=!0,u?(t=c,u=h,s=p,n=Ic(r=e),(d=n.steps[0]).render(),Lc.runCustomScripts(d,n),i="#"+(n=d.guideElement)[0].id+" h1::after { display:none; }",n[0].appendChild(document.createElement("style")).innerHTML=i,u&&((o=Yc(u)).props.style.top="20px"),!N.hasAnnouncementBeenSeen(r)&&o&&(t.props["class"]+=" pendo-unseen-announcement",t.children=[o]),i=s(t,d),n.appendTo(i),i):(u=c,r=h,o=p,d=Ic(t=e),s=t.steps[0],Lc.runCustomScripts(s,d),d=JSON.parse(JSON.stringify(s.domJson)),u.children=[d],r&&(a=Yc(r),d=$c(u,function(e){return"pendo-guide-container"===e.props.id}),r=parseInt(u.props.style["padding-top"],10),d=parseInt(d.props.style["padding-top"],10),a.props.style.top=d+r+5+"px"),!N.hasAnnouncementBeenSeen(t)&&a&&(u.props["class"]+=" pendo-unseen-announcement",u.children.unshift(a)),delete u.templateName,(d=Uc("pendo-guide-container",u))&&(d.props.id=d.props.id+"-"+s.id),o(u,s))})}(t,n,o,a);case"pendo_guide_data_text_block":return function(e,t,n,i){var r=t.getGuide?t.getGuide():y.find(n,function(e){return e.id===t.guideId}),o=y.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=y.get(r,"currentFirstEligibleToBeSeenAt")||y.get(r,"showsAfter")||y.get(r,"publishedAt"),o=o?new Date(o):new Date,r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o.getMonth()]+" "+o.getDate()+", "+o.getFullYear(),{showsAfter:r});return r=Zc(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:Yc,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return y.reduce(e,function(e,t,n){t=Vc(i,t);return t&&e.push(t),e},[])}};function zc(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return y.isNull(n[t])||y.isUndefined(n[t])?e:n[t]})}function Zc(e,t,n,i){if(e.content&&(e.content=zc(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?zc(e.props["aria-label"],t):""),e.props.id)&&i!==undefined&&e.props.id!==n&&(e.props.id=e.props.id+"-"+i),e.children)for(var r=0;r<e.children.length;r++)Zc(e.children[r],t,n,i);return e}function Vc(e,t){e=y.find(e,function(e){return e.id===(t.id||t)});if(v.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function Yc(e){var t={left:"0px"};return"rtl"===e.dir&&(t={right:"0px"}),{type:"div",children:[],props:{"class":"pendo-unread-announcement-mini-bubble",style:Gt(Gt({position:"absolute","border-radius":"5px",height:"10px",width:"10px","line-height":"0px"},t),{top:"30px","box-sizing":"content-box","background-color":e["background-color"],"z-index":"10"})}}}var Hc={buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return Kc(t)}},createProgressCircleSvg:Kc};function Kc(e){var t,n,i,r,o,a,s;return We(9)?(n=(t=(t=e).svgAttributes).fillCircle.stroke,i=t.backgroundCircle.stroke,t=100<=(t.fillCircle.percentComplete||0),r=R(K(v).createHTML('<div aria-hidden="true" focusable="false" class="pendo-progress-circle-ie"><div class="pendo-progress-circle-fill"></div></div>')),o=r.find(".pendo-progress-circle-fill"),t?o.css({border:"3px solid "+n,height:"10px",width:"10px"}):o.css({border:"3px solid "+i,height:"10px",width:"10px"}),r):100<=((t=e.svgAttributes).fillCircle.percentComplete||0)?(n=(n=t).fillCircle.stroke,(i=R(K(v).createHTML('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" class="pendo-progress-circle-fill" viewBox="0 0 24 24" fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>')))[0].setAttributeNS(null,"stroke",n),i):(r=(o=t).fillCircle.stroke,e=o.backgroundCircle.stroke,o=o.fillCircle.percentComplete||0,a='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" version="1.1" viewBox="0 0 40 40" preserveAspectRatio="xMidYMid"><circle class="pendo-progress-circle-background" cx="20" cy="20" r="'+(a=100/(2*Math.PI))+'" stroke-width="6px" stroke-linecap="round" fill="none"></circle><circle class="pendo-progress-circle-fill" cx="20" cy="20" r="'+a+'" stroke-width="6px" stroke-linecap="round" transform="rotate(-90 20 20)" fill="none"></circle></svg>',s=(a=R(K(v).createHTML(a))).find(".pendo-progress-circle-fill")[0],a.find(".pendo-progress-circle-background")[0].setAttributeNS(null,"stroke",e),o<=0?s.setAttributeNS(null,"stroke-width","0px"):(s.setAttributeNS(null,"stroke",r),s.setAttributeNS(null,"stroke-dasharray",o+", 100")),a)}var Xc=function(e,t){return e<t},Jc=y.negate(Xc);function qc(){var e=_a();return Xo(e)?ka(e):((e=Ia()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function Qc(e,t,n){var i={},r=t.top-e.top,e=t.left-e.left;return i.top=r-n.top,i.left=e-n.left,i.height=t.height+n.top+n.bottom,i.width=t.width+n.left+n.right,i.bottom=i.top+i.height,i.right=i.left+i.width,{top:{top:0,height:Math.max(i.top,0),left:i.left,width:i.width},left:{top:0,bottom:0,left:0,width:i.left},bottom:{top:i.bottom,width:i.width,bottom:0,left:i.left},right:{top:0,bottom:0,left:i.right,right:0}}}function el(e){var t;if(e&&e.length)return t=Xo(_a())?ka:Qo,(e=y.reduce(e,function(n,e){var i;return ja(e)?(i=t(e))?(y.each([["top",Xc],["right",Jc],["bottom",Jc],["left",Xc]],function(e){var t=e[0],e=e[1];n[t]&&!e(i[t],n[t])||(n[t]=i[t])}),n):void 0:n},{})).height=e.bottom-e.top,e.width=e.right-e.left,e}function tl(e,t){var n=qc(),e=el(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:Qc(n,e,t)}}function nl(e){var t=[],n=y.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==_a()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=R(i[r]);o&&y.each(o,function(e){t.push(e)})}catch(a){I.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var il=null,rl=function(e){var t=!y.isEqual(e,il);return il=e,t},ol=null,al=function(e){var t=!y.isEqual(e,ol);return ol=e,t},sl=null,dl=function(e){var t=!y.isEqual(e,sl);return sl=e,t},ul=function(e){return al(e.viewport)||rl(e.box)||dl(e.overlays)};function cl(e){try{var t=tl(nl(e),y.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));ul(t)&&y.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];y.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){I.info("Failed to update BlockOut ui",{contexts:["error"]})}}function ll(e){try{var t,n,i,r;if(!(0<R("._pendo-guide-backdrop_").length))return t=tl(nl(e),y.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),ul(t),n={"z-index":1e4,position:"fixed"},i=[],y.each(t.overlays,function(e,t){t=function(e,t){var n=R("div.pendo-backdrop-region-"+e);n.length||(n=R(document.createElement("div")).addClass("pendo-backdrop-region-"+e));return R(n).css(t).attr("pendo-region",e),n}(t,y.extend({},e,n));i.push(t)}),o=i,a=Uc("pendo-backdrop",e.domJson),y.each(["left","right","width","height","bottom","top"],function(e){delete a.props.style[e]}),s=R(document.createElement("div")).attr("id","pendo-backdrop").addClass("_pendo-guide-backdrop_"),y.each(a.props,function(n,i){y.each(o,function(e,t){"style"===i?e.css(a.props.style):"class"===i?e.addClass(n):"id"===i?e.attr(i,n+"-"+t):e.attr(i,n),s.append(e)})}),r=s,e.backdrop=r[0],r}catch(d){I.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s}var pl="top",hl="bottom",fl="left",gl="right",ml="center";function vl(e,t,n){return n===gl||n===fl?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?ml:n<e/2?gl:fl)}var yl={createBBTooltip:bl,getBBTooltipDimensions:Sl,determineBBHorizontalBias:vl,determineTooltipPosition:Al,positionBBTooltipWithBias:El,calculateToolTipPositionForTopBottom:Tl,calculateToolTipPositionForLeftRight:_l,buildTooltipCaret:xl,styleTopOrBottomCaret:kl,styleLeftOrRightCaret:Ol,buildBorderCaret:Nl,determineBorderCaretColor:Ll,placeBBTooltip:function(e,t){var n,i,r,o,a,t=t||function(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=Wc(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}(e);t&&(i=e.element||ju(e),n=Sa(i),"none"!==f(e.elements[0]).display)&&(i=Qo(i),a=e.attributes.layoutDir,e=e.guideElement,r=R(t).find("#pendo-guide-container"),o=r[0].style,t=f(t),t={height:parseInt(t.height,10),width:parseInt(t.width,10)},r={height:parseInt(r[0].getAttribute("data-caret-height"),10)||0,width:parseInt(r[0].getAttribute("data-caret-width"),10)||0,backgroundColor:r[0].style["background-color"],offset:10,borderColor:o.borderColor,borderWidth:parseInt(o.borderWidth,10)},o=this.getBBTooltipDimensions(n,t,r,a,i),r.height&&r.width&&(t=e.find(".pendo-tooltip-caret")[0],a=e.find(".pendo-tooltip-caret-border")[0],t&&Rl(t,o,r),a)&&Ml(a,r,o.layoutDir,t),e.css({top:o.top,left:o.left,position:n.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:Cl,attachScrollHandlers:Il,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!y.isObject(e.domJson)||!(e=Wc(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){bl(t,e.element,e,n),e.hasBeenScrolledTo||(Za(e.element),Vu(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)}};function bl(e,t,n,i){var r,o,a,s,d,u;if(n.guideElement)return(r=n.guideElement).addClass(Wu()?Fu:Lu),0===(o=Sa(t)).height&&0===o.width?null:(t=Qo(t),(e=$c(e,function(e){return"pendo-guide-container"===e.props.id}))?(u=n.attributes.layoutDir,d={height:i.offsetHeight,width:i.offsetWidth},a={height:parseInt(e.props["data-caret-height"],10)||0,width:parseInt(e.props["data-caret-width"],10)||0,backgroundColor:e.props.style["background-color"],offset:10},Cl(n),e.props.style.border&&(e=e.props.style.border.split(" "),a.borderColor=e[2],a.borderWidth=parseInt(e[0],10)),e=Sl(o,d,a,u,t),n&&(n.dim=e),n&&y.isFunction(n.getGuide)&&(s=n.getGuide()),d=y.get(s,"attributes.resourceCenter"),o.fixed?(r.css({position:"fixed"}),i.style.position="absolute"):n&&d||(i.style.position="absolute"),a.height&&a.width&&xl(r,e,a),u="300000",i&&i.style&&i.style["z-index"]&&(u=i.style["z-index"]),r.css({"z-index":u}),d||r.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&r.css({left:e.left,top:e.top,position:o.fixed?"fixed":"absolute"}),"top"===e.layoutDir&&e.hbias===fl&&r.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),Il(n,Fl),r[0]):void 0)}function Il(e,t){e&&y.isFunction(e.attachEvent)&&(Bu()&&e.element===R.getBody()||(t=y.throttle(y.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),Ba(y.bind(e.attachEvent,e),e.targetElement,t)))}function wl(t,n){var e=R(n.elementPathRule)[0];n.attachEvent(e,t,function(e){R.data.set(e,"advanced",!0),bm(t,n)})}function Cl(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?wl("mouseover",e):e.attributes.advanceActions.elementClick&&wl("click",e))}function Sl(e,t,n,i,r){var o,a,s=Ia(),i=i||"auto",t={width:Math.min(t.width,s.width),height:t.height},d=(t.layoutDir=i,t.hbias=vl(e,s,i),t.vbias=(o=e,d=s,(a=i)===pl||a===hl?a:(a=o.top,(d=(o=d.height)/3)<a&&a<2*d?ml:a<o/2?hl:pl)),t.layoutDir=Al(t,s,r,i),El(t,e,s));return t.top=d.top,t.left=d.left,"top"===t.layoutDir?t.top-=n.height:"bottom"===t.layoutDir?t.top+=n.height:"right"===t.layoutDir?t.left+=n.height:"left"===t.layoutDir&&(t.left-=n.height),t}function Al(e,t,n,i){var r,o,a,s,d,u,c;return i&&"auto"!==i?i:(i=n.top,o=(r=n.left)+n.width,a=n.top-e.height<0,s=n.top+n.height+e.height>t.height,d=n.left-e.width<0,u=n.left+n.width+e.width>t.width,!(s&&a&&d&&u)&&(i<t.height/3&&(c="bottom"),(i>2*t.height/3||e.hbias===ml)&&(c="top"),"top"===(c=r<e.width&&t.width-o<e.width?"bottom":c)&&n.top-e.height<0&&(c="bottom"),s&&a&&(e.hbias!==ml&&(c=e.hbias),d&&u||(u||(c="right"),d)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function El(e,t,n){return"top"===e.layoutDir||"bottom"===e.layoutDir?Tl(e,n,t,e.layoutDir,e.hbias):_l(e,n,t,e.vbias)}function Tl(e,t,n,i,r){var o=e.height,a=e.width,s={top:null,left:null};return"bottom"===i?s.top=n.top+n.height:"top"===i&&(s.top=n.top-o),"right"===r?((i=n.left+n.width/2)+e.width>t.width&&(i-=i+e.width-t.width),s.left=i):s.left="left"===r?n.left-a+n.width/2:n.left+n.width/2-a/2,s}function _l(e,t,n,i){var r=e.height,o=e.width,a={top:null,left:null};return"right"===e.layoutDir?a.left=n.left+n.width:"left"===e.layoutDir&&(a.left=Math.max(0,n.left-o)),"bottom"===i?((o=n.top+n.height/2)+e.height>t.height&&(o-=o+e.height-t.height),a.top=o):a.top="top"===i?n.top-r+n.height/2:n.top-r/2+n.height/2,a}function xl(e,t,n){var i=document.createElement("div"),e=(i.setAttribute("class","pendo-tooltip-caret pendo-tooltip-caret--"+t.layoutDir),i.style.position="absolute",i.style.zIndex=11,Rl(i,t,n),e.find("#pendo-guide-container")[0].parentNode);e.appendChild(i),n.borderWidth&&(i=Nl(i,n,t.layoutDir),e.appendChild(i))}function Rl(e,t,n){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||kl(e,t,n),"left"!==t.layoutDir&&"right"!==t.layoutDir||Ol(e,t,n)}function kl(e,t,n){var i,r=Ia();return e.style["border-left"]=n.width+"px solid transparent",e.style["border-right"]=n.width+"px solid transparent",e.style.right="",t.hbias===fl?(i=t.width-2*n.width-n.offset-n.borderWidth,e.style.left=i+"px",t.left+=n.offset+n.width+n.borderWidth):t.hbias===gl?(e.style.left=n.offset+n.borderWidth+"px",t.left-=n.offset+n.width+n.borderWidth,t.left+t.width>r.width&&(t.left=t.left-(t.left+t.width-r.width)),t.left=Math.max(0,t.left)):e.style.left=t.width/2-n.width+"px","bottom"===t.layoutDir&&(e.style["border-bottom"]=n.height+"px solid "+n.backgroundColor,e.style["border-top"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.top=i+"px",e.style.bottom=""),"top"===t.layoutDir&&(e.style["border-top"]=n.height+"px solid "+n.backgroundColor,e.style["border-bottom"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.bottom=r+"px",e.style.top=""),e}function Ol(e,t,n){var i,r=Ia();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===pl?(i=t.height-2*n.width-n.offset-n.borderWidth,e.style.top=i+"px",t.top+=n.offset+n.width+n.borderWidth):t.vbias===hl?(e.style.top=n.offset+n.borderWidth+"px",t.top-=n.offset+n.width+n.borderWidth,t.top+t.height>r.height&&(t.top=t.top-(t.top+t.height-r.height)),t.top=Math.max(0,t.top)):e.style.top=t.height/2-n.width+"px","left"===t.layoutDir&&(e.style["border-left"]=n.height+"px solid "+n.backgroundColor,e.style["border-right"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.right=i+"px",e.style.left=""),"right"===t.layoutDir&&(e.style["border-right"]=n.height+"px solid "+n.backgroundColor,e.style["border-left"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.left=r+"px",e.style.right=""),e}function Nl(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=10,Ml(i,t,n,e),i}function Ml(e,t,n,i){for(var r={top:"",right:"",bottom:"",left:""},o=["Top","Right","Bottom","Left"],a=0;a<o.length;a++){var s="border"+o[a]+"Width",d="border"+o[a]+"Color",u="border"+o[a]+"Style";i.style[s]?(r[s]=parseInt(i.style[s],10)+t.borderWidth+"px",r[d]=Ll(i.style[d],t.borderColor),r[u]="solid"):(r[s]="",r[d]="",r[u]="")}"top"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.bottom=parseInt(i.style.bottom,10)-t.borderWidth+"px"),"bottom"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.top=parseInt(i.style.top,10)-t.borderWidth+"px"),"right"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.left=parseInt(i.style.left,10)-t.borderWidth+"px"),"left"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.right=parseInt(i.style.right,10)-t.borderWidth+"px"),y.extend(e.style,r)}function Ll(e,t){return"transparent"===e?e:t}function Fl(e){ja(e.element)?(yl.placeBBTooltip(e),R(e.elements[0]).css({display:"block"})):R(e.elements[0]).css({display:"none"})}function Pl(i){var e=i.find('[data-pendo-grow-height="true"]');if(e.length)for(var r=Object.entries(e),o=[],t=0;t<r.length;t++)!function(e){if(Number.isInteger(Number.parseInt(r[e][0],10))){var t=r[e][1];if(y.some(o,function(e){return e.parentNode===t.parentNode}))return;var e=i[0],n=t.parentNode.closest('[data-pendo-grow-height="true"]');if(n){if(!o.includes(n))return;e=n}Gl(t,e),o.push(t)}}(t)}function Gl(e,t){for(var n=0,i=e.parentNode.children,r=0;r<i.length;r++){var o,a=i[r];a!==e&&(o=f(a),o=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10),n+=a.offsetHeight+o)}var s=t.offsetHeight,t=f(t),t=parseInt(t.paddingTop,10)+parseInt(t.paddingBottom,10),d=f(e),d=parseInt(d.marginTop,10)+parseInt(d.marginBottom,10),s=Math.max(s-t-n-d,0);0<s&&(e.style.height=s+"px")}function Dl(e,t){var n,i,r,o,a,s,d,u,c,e=R("#"+e,t)[0];e&&(t=R(e),n=R(t.find("#pendo-guide-container")[0]),r="%"===(i=e.style.height)[i.length-1]?"%":"px",o=parseInt(i,10),a=e.getAttribute("data-pendo-static-height"),t.css({height:"auto"}),a||n.css({"max-height":"none"}),s=parseInt(f(e).height,10),d=Ia().height,u=parseInt(e.style.top,10),u=isNaN(u)?0:u,c=parseInt(e.style.bottom,10),(d=d-u-(c=isNaN(c)?0:c))<s&&(n.css({"max-height":d+"px",overflow:"auto"}),s=d),s!==o?(t.css({height:(u=a&&o?o:s)+r}),"Centered"!==(c=e.getAttribute("data-vertical-alignment"))&&"Left Aligned"!==c&&"Right Aligned"!==c||t.css({"margin-top":"-"+(d<s?d:u)/2+"px"})):t.css({height:i}))}function Bl(e,t){e=R("#"+e,t)[0];if(e){t=e.getAttribute("data-pendo-mobile-layout");if(!t){var n=R(e),t=R(n.find("#pendo-guide-container")[0]),i=parseInt(e.style.width,10),r=(t.css({"max-width":"none"}),n.css({"margin-right":"0px"}),parseInt(f(e).width,10)),o=Ia().width-parseInt(e.style.left||0,10)-parseInt(e.style.right||0,10);if(o<r&&(t.css({"max-width":o+"px"}),r=o),!isNaN(i))switch(e.getAttribute("data-vertical-alignment")){case"Centered":case"Top Aligned":case"Bottom Aligned":var a=r/2;parseInt(n.css("margin-left"),10)!==a&&n.css({"margin-left":"-"+a+"px"});break;case"Right Aligned":case"Top Right Aligned":case"Bottom Right Aligned":a=i-r;parseInt(n.css("margin-right"),10)!==a&&n.css({"margin-right":"-"+a+"px"})}}}}function Wl(e,i){var e=y.isArray(e)?e:[e],e=y.reduce(e,function(e,t){var t=R("#"+t,i),n=t[0];return n&&!n.getAttribute("data-pendo-mobile-layout")&&(n=t.find("#pendo-guide-container")[0],e.push(n)),e},[]),t=e;(t=y.reduce(t,function(e,t){return e.concat(y.toArray(R(['[class*="_pendo-text-"]:not([class*="_pendo-resource-center-"])','.pendo-mock-flexbox-element > [class*="_pendo-button-"]',"._pendo-multi-choice-poll-select"].join(","),t)))},[]))&&t.length&&$l(y.reduce(t,function(e,t){var n,t=R(t),i=zl(t[0]),i=i.marginLeft+i.marginRight,r=jl(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),y.each(e,function(e){var t=e,t=((t=R("._pendo-open-text-poll-input",t))&&t.length&&y.each(t,function(e){var t,n=R(e),i=n.attr("data-_pendo-open-text-poll-resize-base-width"),e=(i||(i=e.style.width,n.attr("data-_pendo-open-text-poll-resize-base-width",i)),zl(n[0])),r=e.marginLeft+e.marginRight,o=jl(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&Ul(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),$l({$blockElement:n,availableSpace:o}))}),e);(t=R(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&y.each(t,function(e){var t=R(e),n=zl(t[0]),i=n.width,n=n.marginLeft+n.marginRight,r=t.attr("data-_pendo-media-resize-base-width"),e=(r||(r=e.style.width,t.attr("data-_pendo-media-resize-base-width",r)),-1!==r.indexOf("%"));if(t.hasClass("_pendo-image")){var o=e&&100<parseInt(r,10),a=t.attr("data-pendo-accessible-element");if(o||!a)return void t.css({width:i});t.css({height:"auto"})}o=jl(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&Ul(t,i,r,a),$l({$blockElement:t,availableSpace:a}))})})}function $l(e){y.isArray(e)||(e=[e]),y.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=y.map(e,function(e){return zl(e.$blockElement[0]).width});y.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function Ul(e,t,n,i){var r=-1!==e[0].style.width.indexOf("%"),i=i*(parseInt(n,10)/100);(r||t<i)&&e.css({width:i<0?0:i})}function jl(e){e=e.closest("._pendo-row");if(e){e=f(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function zl(e){e=f(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var Zl,g={calculateTotalOffsetWidth:Hl,center:function(e,t){for(var n=t/2,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=Hl(e,r);e[r].style.left=n+o+"px"}1<e.length&&(i.style.right=n+"px");t.style.left=n+"px"},createFlexContainer:function(e,t){var n=document.createElement("div");n.style.display="inline-block",e||t||(n.style.position="absolute");return n.style["vertical-align"]="top",n.setAttribute("class","pendo-mock-flexbox-element"),n},createFlexRow:function(){var e=document.createElement("div");return e.setAttribute("class","pendo-mock-flexbox-row"),e.style.display="block",e.style.position="relative",e.style.width="100%",e},findMaxChildHeight:function(e,t){for(var n=[],i=0;i<e.length;i++){var r;t&&-1!==(e[i].children[0].children[0].getAttribute("class")||"").indexOf("pendo-block-wrapper")&&(r=e[i].children[0].offsetHeight+"px",e[i].style.height=r),n.push(e[i].offsetHeight)}return y.reduce(n,function(e,t){return Math.max(e,t)},20)},flexEnd:function(e,t){for(var n=t,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=Hl(e,r);e[r].style.left=n+o+"px"}1<e.length&&(t.style.left=n+"px");i.style.right="0px"},flexStart:function(e){e[0].style.left="0px";for(var t=1;t<e.length;t++){var n=Hl(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return y.filter(e,Yl)},getPendoVisualElements:function(e){return y.filter(e,function(e){return!Yl(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=Vl(e),i=g.getPendoInlineUIElements(e.children);if(1===n.length&&0===n[0].id.indexOf("pendo-text"))return e;for(;t.childNodes.length;)t.removeChild(t.childNodes[0]);for(var r=0;r<n.length;r++)Xl(n[r])?t.appendChild(n[r]):t.appendChild(g.wrapElementInMockFlexboxContainer(n[r],e,t));for(var o=0;o<i.length;o++)t.appendChild(i[o]);return e.parentNode.replaceChild(t,e),t},isPendoInlineUIElement:Yl,setElementHorizontalAlignment:function(e,t,n){if(!(e.length<1))switch(n){case"space-between":g.spaceBetween(e,t);break;case"space-around":g.spaceAround(e,t);break;case"space-evenly":g.spaceEvenly(e,t);break;case"center":g.center(e,t);break;case"flex-start":g.flexStart(e);break;case"flex-end":g.flexEnd(e,t)}},setElementVerticalAlignment:function(e,t,n){switch(n){case"top":g.topAlignment(e);break;case"center":g.centerAlignment(e,t);break;case"bottom":g.bottomAlignment(e)}},spaceAround:function(e,t){for(var n=t/(2*e.length),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=Hl(e,r);e[r].style.left=2*n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},spaceBetween:function(e,t){for(var n=t/Math.max(e.length-1,1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=Hl(e,r);e[r].style.left=r*n+o+"px"}t.style.left="0px",i.style.right="0px"},spaceEvenly:function(e,t){for(var n=t/(e.length+1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=Hl(e,r);e[r].style.left=n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},topAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.top="0px"},centerAlignment:function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=i.offsetHeight,o=t/2,o=Math.round(o-r/2);i.style.top=o+"px"}},bottomAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.bottom="0px"},wrapElementInMockFlexboxContainer:function(e,t,n){var i=e.getAttribute("class")||"",r=-1!==i.indexOf("pendo-block-wrapper"),o=e.style&&"absolute"===e.style.position,a=y.get(e.style,"width",""),s=f(e).width,d=-1!==i.indexOf("_pendo-open-text-poll-wrapper")||-1!==i.indexOf("_pendo-image-wrapper")||-1!==i.indexOf("pendo-video-wrapper")||-1!==i.indexOf("_pendo-number-scale-poll-wrapper");r&&!d&&(a=(a?s:null)||f(e.children[0]).width);(0<=i.indexOf("_pendo-resource-center-onboarding-module-guide-complete-circle-container")||0<=i.indexOf("pendo-task-list-progress-circle"))&&(s=parseInt(f(t).width,10),u=parseInt(f(e).width,10)+parseInt(e.style.marginRight||0,10)+parseInt(e.style.marginLeft||0,10),t=(R(t).find("._pendo-simple-text").getParent()||R(n).find("._pendo-simple-text").getParent())[0],n=s-u,"border-box"!==y.get(t,"style.boxSizing")&&(n=n-parseInt(t.style.paddingLeft||0,10)-parseInt(t.style.paddingRight||0,10)),t.style.width=n.toString()+"px",t.style.maxWidth=n.toString()+"px");{var u;if(!i||i.indexOf("pendo-mock-flexbox-element")<0)return(s=g.createFlexContainer(o)).appendChild(e),-1<e.id.indexOf("pendo-text")&&"rtl"===e.dir&&(s.style.right="0px"),u=y.get(e,"children")[0],r&&u&&-1!==(u.getAttribute("class")||"").indexOf("image-preview-placeholder")&&(s.children[0].style.width=a),!r||d||e.style.width||(s.children[0].children[0].style.width=a),s}return e},getVisualElementsWrappedInFlexElements:Vl,initializeFlexRows:function(e,t,n,i){void 0===i&&(i=!1);{var r;i?(e.style.display="flex",e.style.flexWrap="wrap",e.style.justifyContent=t,e.style.alignItems={top:"flex-start",center:"center",bottom:"flex-end"}[n]||"flex-start"):0!==(i=function(e){return y.filter(e,function(e){e=e.getAttribute("class")||"";return e&&-1<e.indexOf("pendo-mock-flexbox-element")})}(e.children)).length&&(r=g.getRowWidth(e),i=g.wrapFlexElementsInFlexRows(i,e,r),g.formatFlexRows(i,e,t,n,r))}},getRowWidth:Kl,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||Kl(t),r=g.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var d=e[s],u=Qo(d).width,u=parseInt(u,10);o.rowWidthUsed+=u,o.rowWidthUsed>i&&0!==y.indexOf(e,d)&&(o.rowWidthUsed-=u,(r=g.createFlexRow()).appendChild(d),a.push(o={row:r,rowWidthUsed:u})),o.row.appendChild(d)}return a},formatFlexRows:function(e,t,n,i,r){for(var o=r||Kl(t),a=0;a<e.length;a++){var s=e[a],d=(t.appendChild(s.row),g.findMaxChildHeight(s.row.children,!1)),u=(s.row.style["min-height"]=d+"px",o-parseInt(s.rowWidthUsed,10));g.setElementHorizontalAlignment(s.row.children,u,n),g.setElementVerticalAlignment(s.row.children,d,i)}},isElementHiddenInGuide:Xl,flexAllThings:function(e,t){var n=null==(n=null==t?void 0:t.attributes)?void 0:n.useFlexbox,t=(null==t?void 0:t.guideElement)||document,e=R("#"+e,t)[0];e&&(ql(e),g.flexElement(e,n))},flexElement:function(e,i){e=R("[data-pendo-display-flex]",e);y.each(e,function(e){var t=i?e:g.initializeFlexElements(e),n=e.getAttribute("data-pendo-justify-content"),e=e.getAttribute("data-row-vertical-alignment");g.initializeFlexRows(t,n,e,i)})},maintainAspectRatios:ql};function Vl(e){return R(["._pendo-button",".pendo-block-wrapper","._pendo-multi-choice-poll-select-border","._pendo-text-subTitle","._pendo-text-paragraph","._pendo-text-title","._pendo-text-custom","._pendo-close-guide","> ._pendo-simple-text","div._pendo-resource-center-module-list-item-text-container","._pendo-resource-center-right-caret",'[id^="pendo-onboarding-guide-progress-circle"]','[id^="pendo-task-list-progress-circle"]','[id^="pendo-a11y-list-item-button-block"]',"._pendo-resource-center-onboarding-module-listed-guide-link","._pendo-home-view-bubble"].join(","),e)}function Yl(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function Hl(e,t){for(var n=(e=Array.prototype.slice.call(e)).slice(0,t),i=0,r=0;r<n.length;r++)i+=n[r].offsetWidth;return i}function Kl(e){var t=Qo(e).width,e=f(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function Xl(e){Jl(e);var t=ka(e);if(0===t.width||0===t.height)return!0;if(!e.style||"visible"!==e.style.visibility)for(var n=e,i=e.id||"",r=0;0!==i.indexOf("pendo-g-")&&(Jl(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function Jl(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function ql(e){var n="data-aspect-ratio",e=R("["+n+"]",e);y.each(e,function(e){var t=e.getAttribute(n).split(":"),t=1<t.length?parseInt(t[0],10)/parseInt(t[1],10):parseFloat(t[0]);isNaN(t)||(e.style.height=e.offsetWidth/t+"px")})}function Ql(){return!v.designer&&m.get("disableGuidePseudoStyles")}function ep(e,t,n){return e&&e.templateName?jc.buildNodesFromTemplate(e.templateName,e,t,n,ip):"style"===e.type&&Ql()?[]:[ip(e,t,n)]}function tp(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),I.info(e),new Error(e)}function np(n,i,r,o){var a={allow:!0,allowfullscreen:!0,alt:!0,"alt-text":!0,autofocus:!0,"class":!0,cols:!0,contenteditable:!0,dir:!0,"for":!0,frameborder:!0,href:!0,id:!0,loading:!0,name:!0,placeholder:!0,placement:!0,rows:!0,role:!0,sandbox:!0,scoped:!0,src:!0,start:!0,style:!0,tabindex:!0,target:!0,title:!0,type:!0,value:!0},s={embed:{src:!0}},d=/^data-/,u=/^aria-/,e=y.keys(n);return y.reduce(e,function(e,t){return s[o]&&s[o][t]&&tp(t,r,i,o),a[t]||d.test(t)||u.test(t)||tp(t,r,i),e[t]=n[t],e},{})}function ip(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=np(n.props,i.id,i.guideId,n.type);var t,r=R(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return R(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.attributes&&i.attributes.blockOutUI&&i.attributes.blockOutUI.enabled&&yl.attachScrollHandlers(i,cl),ll(i);if(y.each(n.props,function(e,t){"style"===t?r.css(n.props.style):"data-pendo-code-block"!==t||!0!==e||m.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent(),0!==gt.call(t).length&&r.addClass("pendo-code-block").html(t))}),n.content&&r.text(n.content),"style"===n.type&&(v.designer||(n.css=function(e){for(var t=["button:focus"],n=[],i=0;i<e.length;i++)y.contains(t,e[i].selector)||n.push(e[i]);return n}(n.css)),(t=m.get("inlineStyleNonce"))&&r.attr("nonce",t),r.styleSheet?r.styleSheet.cssText=sp(n.css):r.text(sp(n.css))),n.svgWidgetId&&Hc.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)ap(r,n.actions[a],i),"renderGuidesListItem"===n.actions[a].action&&((o=ku(n.actions[a].parameters[0]))?r.text(o.name):r.attr("style","display: none;"));if(y.find(n.actions,function(e){return"dismissGuide"===e.action})&&!i.hasEscapeListener&&(i.hasEscapeListener=!0,i.attachEvent(window,"keyup",function(e){27===e.keyCode&&i.eventRouter.eventable.trigger("pendoEvent",{step:i,action:"dismissGuide"})},!0)),n.children)for(var s=Da($u()),d=s!==document,u=0;u<n.children.length;u++){var c=ep(n.children[u],i,e);y.each(c,function(e){var t;e&&("STYLE"!==e[0].tagName?e.appendTo(r):d?((t=new CSSStyleSheet).replaceSync(e[0].innerHTML),(s.hasOwnProperty("wrappedJSObject")?s.wrappedJSObject:s).adoptedStyleSheets.push(t)):(R.addClass(e[0],"pendo-style-".concat(i.isBadge?i.guideId:i.id)),e.appendTo(document.head)))})}return r.hasClass("pendo-code-block")?r.find("img").each(function(e){rp(e,i)}):rp(r[0],i),r}function rp(e,t){var n=e.id&&-1!==e.id.indexOf("badge"),i=!!e.getAttribute("src"),r=e.className&&0<=e.className.indexOf("bb-control"),o=e.tagName&&e.tagName.toLowerCase(),a=e.className&&0<=e.className.indexOf("_pendo-video");("img"===o&&i&&!n&&!r||"iframe"===o&&t&&!a)&&"lazy"!==e.getAttribute("loading")&&(t.attributes&&!t.attributes.imgCount?t.attributes.imgCount=1:t.attributes&&t.attributes.imgCount&&t.attributes.imgCount++,op(R(e),t))}function op(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=Wc(i.domJson)),i.containerId||t.props&&t.props.id||""),n=t&&R("#"+t,i.guideElement)[0];i&&i.attributes&&i.attributes.imgCount&&(i.attributes.imgCount--,n)&&i.attributes.imgCount<=0&&(Bl(t,i.guideElement),Wl(t,i.guideElement),g.flexAllThings(t,i),e=i.getGuide(),y.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===y.get(e,"attributes.resourceCenter.moduleId")||(Dl(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&(Wl(t,i.guideElement),g.flexAllThings(i.containerId,i))),"tooltip"===i.attributes.calculatedType&&yl.positionStepForTooltip(i,i.domJson,n),n.style.visibility="visible",n.parentNode.style.visibility="visible",R.event.dispatch(n,{type:"imagesLoaded"}))}),e.on("error",function(){var e=R("#"+i.containerId,i.guideElement)[0];e?("tooltip"===i.attributes.calculatedType&&yl.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",g.flexAllThings(i.containerId,i)):I.info("Failed to find guideContainer for id: "+i.containerId)})}function ap(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?v.designerv2&&v.designerv2.designerActions&&v.designerv2.designerActions[i.action](n,i.parameters):(t={action:i.action,params:i.parameters,step:r,ignore:!!i.ignore,srcElement:e.srcElement},("showElements"!==i.action&&"hideElements"!==i.action||e.srcElement&&e.srcElement.getAttribute("id")===i.source||e.target&&e.target.getAttribute("id")===i.source)&&r.eventRouter.eventable.trigger("pendoEvent",t))})}function sp(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=sp(n[r].styles):y.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function dp(t){y.each(document.head.childNodes,function(e){e&&R.hasClass(e,"pendo-style-".concat(t))&&Aa(e)})}var up=function(){var e=window.navigator;return((y.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},cp="meta",lp=y.compose(JSON.parse,JSON.stringify),pp=function(){var e=new Date,t=e.getDate(),n=e.getMonth()+1;return e=(t=t<10?"0"+t:t)+"/"+(n=n<10?"0"+n:n)+"/"+e.getFullYear()},hp=function(e){(e=y.isObject(e=void 0===e?{}:e)?e:{}).jwt&&e.signingKeyName&&(t=Ys.getJwtOptions(e,"updateOptions"))&&(Ys.set(y.pick(e,"jwt","signingKeyName")),e=t),t=e,n=y.extend({},t.visitor),i=y.extend({},t.account),t=y.extend({},t.parentAccount),n.id===ai&&(I.info("Missing visitor id."),delete n.id),ni(i.id)&&ni(t.id)&&(ui(i.id)?t.id=i.id.split(di)[0]:i.id=""+t.id+di+i.id),ni(i.id)&&(i.id=""+i.id),ni(n.id)?n.id=""+n.id:n.id=E({generate:!0}),n.language=up(),e={visitor:lp(n),account:lp(i),parentAccount:lp(t),date:pp(),version:v.VERSION},A.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=y.clone(yp()),i=(m.setLocalConfig(y.extend({},m.getLocalConfig(),e)),A.commit("metadata/setMetadata",e),yp()),r=(ni(e.visitor.id)&&(v.identify(e.visitor.id,e.account.id),e.visitor.id=E(),e.account.id=mi()),Ct(e)),o=(void 0!==(o="object"==typeof(o=r)?Ct(o):o)&&o.toString&&(o=o.toString()),""+(y.isNumber(Zl)?Zl:yi(cp))!==o);return Zl=r,o&&vi(cp,r),{options:e,hashChanged:o,storeChanged:!y.isEqual(n,i)}},fp=wi(function(e){e=hp(e);S.metadata.trigger(e)}),gp=wi(function(e,t){y.isObject(e)?fp(e):pi(e,t)}),mp=function(){var t,e=R("script");return e=e,t=new RegExp("/agent/static/"+v.apiKey+"/pendo\\.js$"),!y.any(e,function(e){return t.test(e.src)})&&"extension"!==Ge()},vp=function(){var e=m.get("blockAgentMetadata");return e!==undefined&&e};function yp(){return A.getters["metadata/metadata"]()}function bp(){return JSON.parse(JSON.stringify(yp()))}S.identify.on(function(e){var t=e.data[0],n=m.getLocalConfig()||{};Ii(e)?(oi([cp]),A.commit("metadata/reset",t)):(n.visitor=y.extend({},n.visitor,{id:t.visitor_id}),n.account=y.extend({},n.account,{id:t.account_id}),m.setLocalConfig(n),A.commit("metadata/setMetadata",n))});var Ip={Launcher:{addBehavior:y.noop},Metadata:{getMetadata:yp},Util:{documentScrollTop:Vo,documentScrollLeft:Yo,getOffsetPosition:Sa},Events:S,JWT:{getJWT:Ys.get}};var wp,Cp,Sp,Ap,Ep={},Tp=(Cp=[],Sp=[],Ap={},(wp=Ep).tagExtension=function(e,t){e=wp.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},wp.findExtensionByTag=function(t){return y.find(Sp,function(e){return y.contains(e.tags,t)})},wp.findExtensionByName=function(e){return y.findWhere(Sp,{name:e})},wp.filterExtensionsByUse=function(t){return y.filter(Sp,function(e){return e.use===t})},wp.findExtensionByNameAndProvider=function(t,n){return y.find(Sp,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},wp.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],Ap[e]={handler:t,validators:n}},wp.getExtensionFrames=function(){return y.reduce(Sp,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=y.filter(e,_p)).length&&(Cp=function n(e){if(!e.length)return e;var t=y.filter(e,xp);if(t.length)return n(y.difference(e,t));return e}(Cp.concat(e)))});function _p(t){var e;return!!y.every(["name","version","use","type","uri"],y.partial(y.has,t))&&(e=t.use,e=Ap[e]?Ap[e].validators:[],y.every(y.map(e,function(e){return e(t)})))}function xp(e){var t;return"behavior"===e.use?!!e.uri(wp,Ip)&&(Sp.push(e),!0):(t=e.use,!!(t=Ap[t]?Ap[t].handler||y.identity:null)&&((e=t(e))&&Sp.push(e),!!e))}var O,Rp,kp,Op,Np,Mp,N={initializeResourceCenter:function(r){if(!(O=Fp(r)))return C.resolve();if(A.getters["frames/isShownInAnotherFrame"]()(O.steps[0]))return C.resolve();if(N.isFullyCustom(O))return O.hasResourceCenterContent=!0,C.resolve();var e=Pp(O,r),t=y.reduce(e,function(e,t){return Lp(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(vc.validate(O).then(y.noop,function(){O.launchMethod="api"})),O.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},y.forEach(Up(),function(e){var t=Ep.findExtensionByNameAndProvider("chat",e),t=(t&&Vp(e,t),Ep.findExtensionByNameAndProvider("helpcenter",e));t&&Vp(e,t)}),y.forEach(e,function(t){var e=t.attributes.resourceCenter,n=e.children,i=e.moduleId,e=("IframeModule"===i&&(t.hasResourceCenterContent=!0),"SandboxModule"===i&&(t.hasResourceCenterContent=!0),"IntegrationModule"===i&&(t.integrationConfig=Wp(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&$p(e.integrationName,e.integrationProvider),y.reduce(n,function(e,t){var n=y.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(O.attributes.notifications.individualCounts[t.id]=0,y.forEach(e,function(e){yh(e)||e.isControlGroup()||O.attributes.notifications.individualCounts[t.id]++}));-1<y.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&y.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),O.modules=e,O.badgeHidden=!0,C.all(t)["catch"](function(){return O=null,I.error("Failed to load one or more Resource Center modules"),C.resolve()})},findResourceCenterHomeView:Fp,findResourceCenterModules:Pp,replaceResourceCenterContent:Gp,renderResourceCenterModule:function(e,t){Gp(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){R("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?N.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(N.showResourceCenterEmptyState(),y.each(e.controlGuidesInAllModules,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}))},showResourceCenterEmptyState:function(){var e=R("#pendo-resource-center-empty-state-container");e&&e.length&&R(e[0]).css({display:"block"})},launchIntegrationByNameAndProvider:function(e,t,n){var e=Ep.findExtensionByNameAndProvider(e,t);return e?(n=R(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):I.info("could not find target element for "+t+" integration"):I.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:$p,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=N.getResourceCenterContainer())&&(e=R(e).find('iframe[id^="_pendo-launcher-ext-frame-chat"]'))&&e.length&&e.each(function(e){e=R(e);e.css({display:"none"}),e.appendTo($u())})},getResourceCenter:Qp,getResourceCenterContainer:eh,getResourceCenterBadge:th,addNotificationBubbleToResourceCenterBadge:ch,addNotificationBubbleToTargetElement:lh,updateNotificationBubbles:function(){var e=O,t=y.get(e,"attributes.notifications");if(t){var n=oh(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&mh(),t.totalUnseenCount=n;else{ah();var i=n!==t.totalUnseenCount;if(i||!ih(Op)){if("badge"===e.launchMethod){i=th();if(!i)return;ch(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&y.get(e,"attributes.activation.selector")){i=R(e.attributes.activation.selector);if(!i.length)return;lh(i[0],e.attributes.notificationBubble,n),to(window,"resize",y.debounce(rh,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:mh,updateNotificationBubbleCount:vh,updateNotificationBubbleOnHomeView:sh,updateOrCreateNotificationBubble:ph,hexToRgb:nh,doesIntegrationExist:Wp,calculateTotalNotificationCount:oh,updateNotificationBubblesOnHomeView:ah,createNotification:fh,appendNotificationBubble:gh,hasAnnouncementBeenSeen:yh,clearAnnouncementUnseenInterval:Dp,createAnnouncementUnseenInterval:Bp,findShownResourceCenterModule:function(){var e=N.getResourceCenterContainer();if(e){e=R(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=y.find(Au(),function(e){return e.id===t});if(y.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:bh,repositionResourceCenter:function(){var e=N.getResourceCenterContainer();{var t,n,i;e&&(i=N.findResourceCenterHomeView(Au()).steps[0],t=y.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(y.get(i,"domJson.props.style.bottom",0),10),i=parseInt(y.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=Ia().height-n-i)<=t&&(e.style.height=(n-10).toString()+"px"),i=parseInt(e.style.height,10),i=isNaN(i)?0:i,t<n)&&t!==i&&(e.style.height=t.toString()+"px")}Pl(R(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;A.getters["frames/isLeader"]()&&1<(e=y.unique(y.compact([].concat(y.toArray(R("._pendo-resource-center-badge-container"))).concat(y.toArray(R("._pendo-resource-center-badge-container")))))).length&&function(e){var t=ka(e[0]),e=ka(e[1]);return Oa(t,e)}(e)&&(t=Sa(e[0]).width+5,n=Sa(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return y.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=eh();if(t){o=Ia().width,r=R(t),e=R(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(f(r[0]).width,10),o<i&&(i=parseInt(t.style.left,10),i=isNaN(i)?0:i,t=parseInt(t.style.right,10),t=isNaN(t)?0:t,o=o-t-i,r.css({"max-width":o+"px"}),e.css({"max-width":o+"px"}));var t=e,n=R('button[id^="pendo-a11y-list-item-button-block"]');if(n&&n.length)for(var i=R(t.find("ol._pendo-text-list-ordered"))[0],r=0,o=0,i=(i&&(i=f(i),o=parseInt(i.paddingLeft,10),r=parseInt(i.paddingRight,10)),R('[id^="pendo-onboarding-guide-progress-circle"]')[0]),e=0,a=0,s=0,d=(i&&(i=f(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),u=parseInt(f(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=R(l),l=(p.css({"max-width":"none"}),f(l)),h=parseInt(l.width,10),l=u-d-(parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10));l<=h&&p.css({"max-width":l})}}},setNativeIntegrationDefaults:Vp,renderNativeIntegration:Jp,isSupportedNativeIntegration:jp,handleNativeIntegrationContinuation:qp,isProviderInstalled:zp,adjustNotificationBubbleForResize:rh,getNotificationBubbleDefaultCss:hh,getModuleId:Ih,isIframeModule:function(e){return"IframeModule"===Ih(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===Ih(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===Ih(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===Ih(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!N.isSupportedNativeIntegration(e.integrationProvider)||N.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=Fp(e);if(!n)return C.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return C.resolve();if(N.isFullyCustom(n))return C.resolve();var t=Pp(n,e),i=[],r=y.indexBy(e,"id");return y.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=y.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),y.each(e,function(e){Lp(e)&&i.push(e.steps[0].fetchContent(!0))}))}),C.all(i)},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=R('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=R('[id="pendo-resource-center-module-title-container"]'),n=t.find('button[id^="pendo-left-caret-"')[0]);n&&n.focus()},revertRtlChanges:function(e,t){var n="rtl"===y.get(t,"data-localization-direction",!1),e=y.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=y.get(t,"style.left",!1),e=y.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:dh,resetBadgeAriaLabel:function(){var e=N.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:uh,updatePseudoStyleSelectors:wh,hideRCBadge:Ch};function Lp(e){return e.steps&&e.steps.length&&y.isFunction(e.steps[0].fetchContent)}function Fp(e){var e=y.filter(e,function(e){return y.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=y.find(e,function(e){return"staged"===e.state});return t||e[0]}function Pp(t,e){return y.filter(e,function(e){return e&&!e.isFrameProxy&&y.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function Gp(t,e,n,i){if(void 0===i&&(i=!0),!kp){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),eh());if(e){var a=R(e).find('[id^="pendo-g-"]')[0];if(a){var s,d=a.getAttribute("data-pendo-guide-id"),u=y.find(Au(),function(e){return e.id===t}),c=(t!==O.id?(dp(y.get(O.activeModule||O,"steps.0.id")),O.activeModule=u):(s=O.activeModule,dp(y.get(s,"steps.0.id")),delete O.activeModule),y.get(u,"attributes.resourceCenter.integrationProvider")),l=(jp(c)&&Jp(c),u.steps[0]),c=wh(l.domJson),c=(c.props["data-pendo-guide-id"]=u.id,ip(c,l)),p=c[0],r=(-1===p.id.indexOf("pendo-g-")&&(p=c.find('[id^="pendo-g-"]')[0]),n||(p.style.transition=r,a.style.transition=r,"left"===o?p.style.left=e.offsetWidth+"px":"right"===o&&(p.style.left=-1*e.offsetWidth+"px")),n&&(R(a).remove(),s)&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),R(e).find('[id^="pendo-end-focus-bumper-"]')[0]);if(r?R(p).insertBefore(r):R(p).appendTo(e),l.guideElement=R(e),l.elements.push(l.guideElement[0]),N.adjustResourceCenterWidth(p),"AnnouncementsModule"===Ih(u)&&l.guide.guidesInModule?(Wl(r=y.reduce(l.guide.guidesInModule,function(e,t){var n;return y.isUndefined(t.steps[0].attributes.imgCount)&&(n=t.steps[0].id,n=R(p).find("#pendo-g-"+n)[0]?n:t.id,e.push("pendo-g-"+n)),e},[]),l.guideElement),y.each(r,function(e){g.flexAllThings(e,l)})):g.flexAllThings("pendo-resource-center-container"),Pl(R(e)),p.style.left="0px",!n){kp=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Dt(function(){R(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),kp=!1},200)}catch(h){throw kp=!1,h}}return"AnnouncementsModule"===Ih(u)&&(Bp(),r=jc.getGuidesInResourceCenterModule(u,Au()),(n=y.reduce(r,function(e,t){return t.steps&&t.steps.length&&xc.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(y.isFunction(document.createElementNS))return i="http://www.w3.org/2000/svg",e=function(e,t){var n=R(document.createElementNS(i,"circle")).attr({cx:e,cy:t,fill:"#9a9ca5",r:5});return y.each(y.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return R(document.createElementNS(i,"animate")).attr({attributeName:"fill-opacity",values:"0;1;0;0",keyTimes:"0;0.4;0.8;1",dur:"1.4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0 0 0.58 1; 0 0 0.58 1; 0 0 0.58 1",begin:e})},t=R(document.createElementNS(i,"svg")).attr({viewBox:"0 0 70 20",xmlns:"http://www.w3.org/2000/svg",width:"70",height:"20"}).append(e(21,10,t("-0.32s"))).append(e(35,10,t("-0.16s"))).append(e(49,10,t("0s"))),R(document.createElement("li")).css({padding:"5px 20px","list-style-type":"none","list-style-position":"inside",position:"relative","margin-left":"0em","border-width":"0px","border-style":"solid","border-color":"rgb(255, 255, 255)","float":"none","vertical-align":"baseline","text-align":"center"}).append(t)}())&&c.find("ol").append(o),C.all(n).then(function(){var e=C.defer();return Dt(e.resolve,500),e.promise}).then(function(){O.activeModule===u&&N.renderResourceCenterModule(u,i)})),N.setFocusForResourceCenterModule(c,d),i&&l.onShown("launcher"),c}}}}function Dp(){window.clearInterval(Rp),Rp=null}function Bp(){Rp=Rp||window.setInterval(function(){var e=eh();if(!e)return Dp();e=R(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return Dp();var t=R(e).find('ol[id^="pendo-list"]');if(!t.length)return Dp();var n=ka(t[0]),i=R(t).find("li");if(!i.length)return Dp();for(var r=e.attr("data-pendo-guide-id"),o=O.attributes.notifications.individualCounts[r],a=n.height/3,s=ka(i[i.length-1]).bottom-30<n.top+n.height,d=0;d<i.length;d++){var u=R(i[d]),c=u.hasClass("pendo-unseen-announcement"),l=u.attr("data-pendo-announcement-send-seen-event");if(c||l){if(ka(i[d]).top-n.top>n.height-a&&!s)break;var p=u.attr("data-pendo-announcement-guide-id"),l=y.find(Au(),function(e){return e.id===p});if(!l)break;c&&(u.removeClass("pendo-unseen-announcement"),c=u.find(".pendo-unread-announcement-mini-bubble"),We(10)?u.find(".pendo-unread-announcement-mini-bubble").remove():(c[0].style.visibility="hidden",c[0].style.opacity="0",c[0].style.transition="visibility 0s 2s, opacity 2s linear"),yh(l)||o--,vh(o,r)),l.steps[0].seenState="advanced",Fm(l.id,l.steps[0].id,E(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),u[0].removeAttribute("data-pendo-announcement-send-seen-event"),Gm(l.id,l.steps[0].id,E(),"advanced",l.language)}}},500)}function Wp(e,t){return Ep.findExtensionByNameAndProvider(e,t)}function $p(e,t){e=Ep.findExtensionByNameAndProvider(e,t);if(!e)return I.info(t+" integration has not been loaded into the agent");jp(t)&&zp(t)?O.hasEligibleNativeIntegrationModule=!0:(Ra((t=e.getFrame())[0])||t.appendTo($u()),t.css({display:"none"}))}function Up(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function jp(e){return!!e&&0<=Up().indexOf(e)}function zp(e){return!!e&&null!==(e=Zp(e))&&y.isFunction(window[e])}function Zp(e){if(!e)return null;switch(e){case"zendesk-chat":case"zendesk-messaging":case"zendesk-native-kb":return"zE";case"intercom-chat":return"Intercom";case"drift-native-chat":return"drift";default:return null}}function Vp(e,t){var n,i,r;e&&(zp(e)?Yp(e,t):(e=e,t=t,"function"==typeof Object.defineProperty&&null!==(i=Zp(e))&&(Np&&Np[i]?Np[i][e]||(Np[i][e]={installed:!1,integrationObj:t}):((Np=Np||{})[i]=((n={})[e]={installed:!1,integrationObj:t},n),Object.defineProperty(window,i,{get:function(){return r},set:function(e){r=e,y.forEach(Np[i],function(e,t){var n=e.integrationObj;!e.installed&&zp(t)&&(e.installed=!0,Yp(t,n),$p(n.name,t),y.forEach(O.modules,function(e){e.integrationConfig&&e.integrationConfig.data.name===n.name&&e.integrationConfig.data.provider.name===t&&(e.hasResourceCenterContent=!0)}))})},configurable:!0,enumerable:!0})))))}function Yp(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=Kp(i);Hp(n,"webWidget","hide"),Hp(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),Hp(n,"webWidget:on","close",function(){Hp(n,"webWidget","hide"),Xp()}),O.isInProgress()&&qp(O.activeModule),Hp(n,"webWidget:on","chat:unreadMessages",function(e){vh(e,"chat")});break;case"zendesk-messaging":i=t;Hp(i=i.data.provider.name,"messenger","hide"),Hp(i,"messenger:on","close",function(){Xp()}),Hp(i,"messenger:on","unreadMessages",function(e){vh(e,"chat")});break;case"intercom-chat":var r=t;r=Kp(r),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.hide_default_launcher=!0,window.intercomSettings.alignment=r?r[1]:"right",window.Intercom("update",{hide_default_launcher:!0,alignment:r?r[1]:"right"}),window.Intercom("onHide",function(){Xp()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=yp();window.drift.identify(t.visitor.id,function o(e){var t={};for(var n in e)if("object"!=typeof e[n]||Array.isArray(e[n]))t[n]=e[n];else{var i,r=o(e[n]);for(i in r)r[i]&&(t[n+"."+i]=r[i])}return t}(t)),window.drift.on("message",function(e){if(!O.isNativeModuleActive)return vh(1,"chat")})}),window.drift.on("chatClose",function(e){vh(0,"chat"),window.drift.hide(),Xp()})}}function Hp(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];try{Mp&&Mp[e]||window.zE.apply(null,n)}catch(r){Mp?Mp[e]=!0:((t={})[e]=!0,Mp=t)}}function Kp(e){e=y.get(e,"data.options.labels.position");return e=e&&e.split("-")}function Xp(){bh(O.activeModule),delete O.activeModule,O.continueToNativeModule=!1}function Jp(e,t){if(e){var n=yp();if(O.isShown()&&O.hide(),Mp&&Mp[e])I.info(e+" integration failed to communicate with API, closing"),N.replaceResourceCenterContent(O.id,undefined,!0),Xp();else{var i=th();switch(i&&Ch(i,O),e){case"zendesk-messaging":Hp(e,"messenger","show"),Hp(e,"messenger","open");break;case"zendesk-native-kb":Hp(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),Hp(e,"webWidget","show"),Hp(e,"webWidget","open");break;case"zendesk-chat":Hp(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&Hp(e,"webWidget","prefill",{email:{value:n.visitor.email}});break;case"intercom-chat":window.Intercom("show"),n&&n.visitor&&n.visitor.email&&window.Intercom("update",{email:n.visitor.email});break;case"drift-native-chat":window.drift.api.openChat(),n&&n.visitor&&n.visitor.email&&window.drift.config({email:n.visitor.email})}vh(0,"chat"),!O.activeModule&&t&&(O.activeModule=t).steps[0].onShown("launcher")}}}function qp(e){e&&!e.isTopLevel&&(Jp(y.get(e,"attributes.resourceCenter.integrationProvider")),O.activeModule||(O.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function Qp(){return O}function eh(){return y.get(O,"steps.0.guideElement.0")}function th(){if(O&&O.id)return wu[O.id]}function nh(e){e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function ih(e){return e&&y.all(e,function(e){return Ra(e&&e.length?e[0]:e)})}function rh(){var e,t=N.getResourceCenter(),n=y.get(t,"attributes.notifications");n&&(n=N.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&y.get(t,"attributes.activation.selector")&&(e=R(t.attributes.activation.selector)).length&&N.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function oh(e){return y.reduce(e,function(e,t){return e+t},0)}function ah(){var e,t=O;t&&(t=y.get(t,"attributes.notifications"))&&(e=eh())&&R(e).find("._pendo-resource-center-home-list").length&&y.each(t.individualCounts,function(e,t){sh(e,t)})}function sh(e,t){var n=N.getResourceCenterContainer();n&&(n=R(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=R(n[0]).find("._pendo-home-view-bubble"),n=R(t[0].children[0]),e!==parseInt(n.text(),10))&&(0<e?(n.text(e),R(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),R(t[0]).css({display:"none"})))}function dh(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function uh(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function ch(e,t,n){var i=uh(n),i=e.getAttribute(i),i=(i&&(dh(e),i=i.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",i)),y.get(t,"position","top-left")),r=f(e),r=(parseInt(r.width,10)||56)/2,o=r/Math.sqrt(2),r=Math.round(r-o)-10,a=r-10,o=Math.round(2*o),r={"top-left":{top:r+"px",left:a+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"top-right":{top:r+"px",left:a+o+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-left":{top:r+o,left:a+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-right":{top:r+o,left:a+o+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"}},a=e.attributes["data-localization-direction"]||!1,o=N.resourceCenterIgnoreRtl();ph(e,t,n,r[i=a&&!o?{"top-left":"top-right","top-right":"top-left","bottom-left":"bottom-right","bottom-right":"bottom-left"}[i]:i])}function lh(e,t,n){var i=qo(e,e),r=qo(e,_a());ph(e,t,n,{width:"28px",top:i.top-Math.min(r.top,14)+"px",left:i.left-Math.min(r.left,14)+"px",position:"absolute"},{width:"28px","font-size":"16px","text-align":"center",position:"absolute",right:"0px"})}function ph(e,t,n,i,r){var o,a;ih(Op)?(a=(o=hh(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=y.extend(a,i),o=y.extend(o,r),Op.bubbleEle.css(a),Op.unseenCountEle.css(o),Op.unseenCountEle.text()!=""+n&&Op.unseenCountEle.text(n)):(a=R(e).find(".pendo-resource-center-badge-notification-bubble")).length?a[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&gh(Op=fh(t,n,i,r),e)}function hh(e){return{defaultBubbleCss:{position:"absolute","border-radius":"20px","line-height":"0px",height:"26px","box-sizing":"content-box","background-color":e["background-color"]},defaultUnseenCountCss:{"font-weight":e["font-weight"],"font-family":e["font-family"],height:"100%",position:"relative",top:"50%",color:e.color}}}function fh(e,t,n,i){var r,o=hh(e),a=o.defaultBubbleCss,o=o.defaultUnseenCountCss,s=(t=t||0,R(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),d=R(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),a=y.extend(a,n),n=y.extend(o,i);return s.css(a),d.css(n),We(10)||Ql()||(r=R(document.createElement("style")).attr("id","pendo-resource-center-bubble-animation"),i="@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6) } } "+('.pendo-resource-center-badge-notification-bubble::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: '+("rgb("+(o=nh(e["background-color"])).r+", "+o.g+", "+o.b+")")+"; border-radius: 100%; z-index: -1; animation: pulse 2s infinite; will-change: transform; }"),r.styleSheet?r.styleSheet.cssText=i:r[0].innerHTML=i),d.text(t),{bubbleEle:s,unseenCountEle:d,styleEle:r}}function gh(e,t){e.styleEle&&e.styleEle.appendTo(t),e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function mh(){var n=Op?Op.bubbleEle:R(".pendo-resource-center-badge-notification-bubble"),i=Op?Op.styleEle:R("#pendo-resource-center-bubble-animation");n&&y.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&y.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),Op=null,N.resetBadgeAriaLabel()}function vh(e,t){var n=O;n&&(n=y.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,N.updateNotificationBubbles())}function yh(e){return!(!y.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function bh(e){var t=y.get(e,"attributes.resourceCenter.isModule",!1)?e:N.findShownResourceCenterModule();t&&(t=y.first(t.steps),mm(t));t=(y.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:N.findResourceCenterHomeView(Au())).steps[0];return mm(t)}function Ih(e){return y.get(e,"attributes.resourceCenter.moduleId")}function wh(e){var t=["pendo-a11y-list-item-button-block","pendo-link-","pendo-right-caret-","pendo-row-","pendo-text-"].join("|"),n=new RegExp("#((".concat(t,")[^:]*)")),t=function i(e,t){var n=[];return t(e)&&n.push(e),e.children?n.concat.apply(n,y.map(e.children,function(e){return i(e,t)})):n}(e,function(e){return e.css&&e.css.length});return y.forEach(t,function(e){y.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function Ch(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete wu[t.id])}var Sh=1e4,Ah="lastStepAdvanced";function Eh(e){A.dispatch("guideState/updateLastGuideStepSeen",e),A.dispatch("guideState/write"),A.dispatch("frames/changeLastGuideStepSeen",e)}function Th(){A.dispatch("guideState/regainFocus")}function _h(){return A.state.guideState.lastGuideStepSeen}var rr={actions:{init:function(e){e.getters.storage().registry.addLocal(Ah),e.commit("setScopedStorageKey",dn(e.state.storageKey)),S.identify.on(function(e){Ii(e)&&oi([Ah])})},load:function(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&y.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire:function(n){y.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire:function(n){var i=n.getters.now();y.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply:function(o){var a,s=y.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),y.each(o.state.steps,function(e){var t,n,i=e.guideId,r=e.guideStepId;e.visitorId&&e.visitorId!==o.getters.visitorId()||((!a||e.time>a.time)&&(a=e),(i=s[i])&&(t=y.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(I.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(I.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(I.info("making sure that seenReason = '"+e.reason+"' for "+n+": "+r),t.seenReason=e.seenReason),e.dismissCount!==undefined&&t.dismissCount!=e.dismissCount&&(t.dismissCount===undefined?t.dismissCount=e.dismissCount:t.dismissCount=Math.max(e.dismissCount,t.dismissCount),I.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e=y.indexOf(i.steps,t),y.each(i.steps.slice(0,e),function(e){y.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",y.extend({},o.state.lastGuideStepSeen,a))},receiveLastGuideStepSeen:function(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen:function(e,t){var n;t.visitorId&&t.visitorId!==e.getters.visitorId()||(n=y.some(e.getters.guideList(),function(e){return e.id===t.guideId}),t.guideStepId&&e.commit("setStepState",t),n&&(e.commit("setLastGuideStepSeen",t),v.lastGuideStepSeen=t))},updateThrottlingState:function(e,t){e.commit("setThrottlingState",t)},write:function(e){e.dispatch("expire");var t=e.rootState.frames.tabId,n=e.state.storageKey,i=e.getters.cookieSuffix(),r=e.state.ttl,o=e.getters.storage(),a=JSON.stringify(y.map(e.state.steps,function(e){return y.extend({tabId:t},e)}));I.info("writing "+a+" to a cookie named "+n+" for "+r+" and cookieSuffix "+i),o.write(n,a,r,!1,!1,i),e.dispatch("preview/update",e.state.lastGuideStepSeen,{root:!0})},storageChanged:function(e,t){if(t.key===e.state.scopedStorageKey){try{var n=e.getters.storage(),i=e.getters.cookieSuffix(),r=n.read(e.state.storageKey,!1,i),o=[].concat(JSON.parse(r))}catch(a){}e.getters.storageChangedInOtherTab()(o)&&(Bh(),e.dispatch("load",r),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}},regainFocus:function(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||(Wh(),$h())),n&&Wv()}},mutations:{expireStepState:function(e,t){e.expired[t]=e.steps[t],delete e.steps[t]},setStepState:function(e,t){e.steps[t.guideStepId]=t},setScopedStorageKey:function(e,t){e.scopedStorageKey=t},setLastGuideStepSeen:function(e,t){e.lastGuideStepSeen=t},setReceivedLastGuideStepSeen:function(e,t){e.receivedLastGuideStepSeen=t},setReceivedStateChange:function(e,t){e.receivedStateChangeAt=t},setLastGuideRequestAt:function(e,t){e.lastGuideRequestAt=t},setThrottlingState:function(e,t){e[t.name]=t.value}},state:{steps:{},expired:{},ttl:Sh,storageKey:Ah,guideRequestExpiration:36e5,scopedStorageKey:null,receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now:b,storage:function(){return w},guideList:function(){return k},tabLostFocus:function(e){return!!e.receivedStateChangeAt},isGuideRequestStale:function(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab:function(n,e,i){return function(e){var t=y.get(i,"frames.tabId");return!!e&&!!((e=y.max(y.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix:function(){return m.get("crossAppGuideStorageSuffix")},visitorId:function(){return E()}}},xh={canDisplay:function(e,t,n){if(n&&n.enabled&&y.isFinite(t)){t=Oh(t,n);if(y.isNumber(t)&&!isNaN(t))return t<=e}return!0},lastDismissedTime:function(e){return Math.max(e.latestDismissedAutoAt||-Infinity,e.finalAdvancedAutoAt||-Infinity,e.latestSnoozedAutoAt||-Infinity)},sortAndFilter:function(e,t){var n=m.get("appAutoOrdering")||[].concat(m.get("leaderKey"));{var i;n.length&&(i=A.getters["frames/autoOrdering"](),n=y.reduce(n,function(e,t){return e.concat(i[t]||[])},[]),t=y.uniq(n.concat(t)))}var r,o,n=function(e){e=y.defaults(y.groupBy(e,function(e){return kh(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return y.isArray(t)&&t.length?(n=y.indexBy(e,"id"),t=y.reduce(t,i,[]),y.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(y.filter(e,Rh),t));return y.find(e,function(e){return e.isTraining})?(t=m.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],y.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=xh.lastDismissedTime(t),n=xh.canDisplay(b(),n,t.throttling);if((kh(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:Oh};function Rh(e){return e&&/auto/.test(e.launchMethod)}function kh(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||y.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function Oh(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return y.isNumber(n)&&xt(e)?"minute"===t?6e4*n+e+1:"hour"===t?36e5*n+e+1:"day"===t?(t=e,e=n,(t=new Date(Math.max(t,0))).setHours(0,0,0,0),t.setDate(t.getDate()+e),t.getTime()):void 0:y.isNumber(n)?(new Date).getTime():void 0}function Nh(t){return S.guideSeen.on(function(e){var e=e.data[0].props||{};"permalink"===e.reason&&(e=t(e.guide_id))&&(e.shownFromPermalink=!0)}),{tryDisplay:function(){var t=r(window.location.href),e=this.getGuideFromUrl(t);{var n,i;if(e&&this.shouldShowPermalinkGuide(e))return n=this.getStepFromUrl(t,e),i=t.pendo_once,this.showPermalinkGuide(e,n).then(function(e){return e&&i&&(delete t.pendo_once,delete t.pendo,delete t.step,delete t.c__pendo,window.history.replaceState({},document.title,window.location.pathname+"?"+Mo(t))),e})}},getQueryString:r,getGuideFromUrl:function(e){e=e.pendo||e.c__pendo;return e?t(e):null},getStepFromUrl:function(e,t){e=e.step;return e?function(e,t){return y.find(e.steps,function(e){return e.id===t})}(t,e):null},showPermalinkGuide:function(e,t){return(t||e).show("permalink")},shouldShowPermalinkGuide:function(e){return!e.shownFromPermalink}};function r(e){var t=xo(e).substring(1),t=No(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=xo(e.substring(n+1)).substring(1),y.extend(t,No(n))),t}}var Mh=y.memoize(function(){return Nh(ku)});function Lh(e,t){var e=y.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}Fh.prototype.markDirty=function(){var e;Hu()&&(this.queue.push("permalink","continuation"),(e=this.queue).push.apply(e,xh.sortAndFilter(k,v.autoOrdering)))},Fh.prototype.process=function(e){if(tm())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return Mh().tryDisplay(v);if("continuation"===t){var n=Lh(k,_h());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!Lh(k,_h()))return e.saveContext(t),xh.tryDisplayGuide(t,v);this.cancel()}}},Fh.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();e&&I.warn("Auto display ("+e.id+") timeout exceeded")},Fh.prototype.cancel=function(){this.queue.length=0},Fh.prototype.isComplete=function(){return!this.queue.length};lr=Fh;function Fh(){this.name="autoDisplay",this.queue=[]}var Ph=null,Gh=500,Dh=function(e){Ph=y.delay(function(){Ph=null,$h()},e=e||Gh),v.guidesProcessingThreadHandle=Ph},Bh=function(){Ph&&(clearTimeout(Ph),Ph=null,v.guidesProcessingThreadHandle=Ph),A.dispatch("guideUpdate/stopScheduledUpdate")},Wh=function(){am(),Qh.cancel();for(var e=0;e<Iu.length;e++){var t=Iu[e];t.parentNode.removeChild(t)}Iu.length=0,A.dispatch("guideUpdate/stopObserver"),S.guideLoopStopped.trigger()},$h=function(){if(Bh(),Bv.pending||qm&&v.id&&v.id!==qm.id)I.info("guides are loading.",{contexts:["guides","loading"]});else if(xv())I.info("guides are disabled.",{contexts:["guides","disabled"]});else if(Rv())I.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!A.getters["guideState/tabLostFocus"]())try{var e=Mu();e&&0!==e.length&&(A.dispatch("guideUpdate/startObserverIfNeeded"),Qh.isComplete()&&Qh.markDirty(),A.getters["frames/leaderExists"]())&&Qh.process()}catch(t){Qh.cancel(),I.critical("ERROR in guide-loop",{error:t})}finally{Qh.paused||(Qh.isComplete()?(A.state.guideUpdate.useObserver&&!A.state.guideUpdate.needsUpdate||Dh(),S.guideUpdateComplete.trigger()):Dh(50))}};var Uh=function(){var e=m.getLocalConfig();m.get("delayGuides")&&(delete e.delayGuides,m.setLocalConfig(e)),m.get("guides.delay")&&(delete e.guides.delay,m.setLocalConfig(e)),$h()},jh=function(){xv()||Ov(!0),Wh(),Qm()},zh=(Zh.prototype.markDirty=function(){this.dirty=!0},Zh.prototype.process=function(){this.processFn(),this.dirty=!1},Zh.prototype.cancel=function(){this.dirty=!1},Zh.prototype.isComplete=function(){return!this.dirty},Zh);function Zh(e,t){this.dirty=!1,this.name=e,this.processFn=y.isFunction(t)?t:y.noop}Vh.prototype.markDirty=function(){this.queue.push.apply(this.queue,y.filter(Eu(k),Pu))},Vh.prototype.process=function(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()},Vh.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();I.warn("Badge ("+e.id+") timeout exceeded")},Vh.prototype.cancel=function(){this.queue.length=0},Vh.prototype.isComplete=function(){return!this.queue.length};e=Vh;function Vh(){this.name="badge",this.queue=[]}function Yh(i,e){var r,o,t,n,a;N.isFullyCustom(i)||(r=!1,o=[],t=y.filter(i.modules,function(e){var t,n;return!!e&&(!!N.isIframeModule(e)||!!N.isSandboxModule(e)||(N.isIntegrationModule(e)?!!N.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1):(t=(n=y.filter(e.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):(e.ineligibleForRC=!0,e.control&&o.push(e),!1)})).length,e.hasResourceCenterContent=!!t,i.activeModule&&e.id===i.activeModule.id&&(n=Ct(y.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:y.pluck(e.steps,"seenState");return{id:e.id,seenState:t}})),e.eligibleGuidesInModuleHash&&n!==e.eligibleGuidesInModuleHash&&(r=!0),e.eligibleGuidesInModuleHash=n),t)))}),n=!1,i.activeModule||(a=Ct(y.map(t,function(e){return{id:e.id}})),i.eligibleModulesHash&&i.eligibleModulesHash!==a&&(n=!0,N.replaceResourceCenterContent(i.id,undefined,!0)),i.eligibleModulesHash=a),e(i,t,o),1===t.length&&(i.skipResourceCenterHomeView=!0,i.moduleIdToReplaceHomeViewWith=t[0].id,a=!i.activeModule&&n,e=i.activeModule&&i.activeModule.id!==t[0].id,a||e||r)&&N.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),t&&(n=y.find(t,function(e){return e.isContinuation(_h())}),a=y.get(n,"attributes.doNotResume"),e=y.get(n,"attributes.resourceCenter.integrationProvider"),N.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=y.find(t,function(e){return e.id===i.activeModule.id}))&&r&&N.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||N.replaceResourceCenterContent(i.id)),N.repositionResourceCenter())}function Hh(e,t,n){var i,r,o=wu[e.id];t&&t.length||(t=-1!==e.launchMethod.indexOf("badge"),i=-1!==e.launchMethod.indexOf("dom"),r=-1!==e.launchMethod.indexOf("extensionIcon"),e.hasResourceCenterContent=!1,t?(e.isShown()&&e.hide(),o&&N.hideRCBadge(o,e),y.each(n,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}),e.badgeHidden=!0,delete e.activeModule):(i||r)&&(e.showEmptyState=!0,e.controlGuidesInAllModules=n)),e.badgeHidden&&e.hasResourceCenterContent&&!e.isNativeModuleActive&&(o||(y.isFunction(e.placeBadge)&&e.placeBadge(),o=wu[e.id]),o&&o.show(),e.badgeHidden=!1)}function Kh(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=y.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&N.isSupportedNativeIntegration(n),N.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!A.getters["frames/isLeader"]()?Yh(e,Hh):(t=e,n=Hh,N.isFullyCustom(t)||(i=[],o=[],(r=y.find(t.modules,function(e){return!!N.isIframeModule(e)||!!N.isSandboxModule(e)||!!N.isIntegrationModule(e)&&(!!N.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1))}))&&i.push(r),r=y.flatten(y.pluck(t.modules,"guidesInModule")),o=y.filter(y.compact(r),function(e){return e.control}),!i.length&&(a=y.reduce(t.modules,function(t,n){return y.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=y.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=y.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=y.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o))),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=wu[e.id])&&N.hideRCBadge(a,e),"dom"===e.launchMethod&&(N.updateNotificationBubbles(),N.adjustNotificationBubbleForResize())))}Jh.prototype.start=function(){this.context=null,this.startTime=b()},Jh.prototype.isTimeExceeded=function(){return b()-this.startTime>this.timeLimit},Jh.prototype.saveContext=function(e){this.context=e},Jh.prototype.getContext=function(){return this.context};var Xh=Jh;function Jh(e){void 0===e&&(e=50),this.startTime=-1,this.timeLimit=e,this.context=null}function qh(e){this.phases=e,this.queue=[],this.paused=!1}qh.prototype.markDirty=function(){for(var e=0,t=this.phases;e<t.length;e++)t[e].markDirty();this.queue=this.phases.slice()},qh.prototype.runGuidePhase=function(){for(var e,t,n,i=this.queue[0],r=new Xh(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));Nt(e)?(t=this.updateId,n=y.bind(function(){this.updateId===t&&(this.paused=!1,$h())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()},qh.prototype.addPhase=function(e,t){t=t||e.name||this.phases.length,y.isFunction(e)&&(e=new zh(t,e)),this.phases.push(e)},qh.prototype.removePhase=function(t){var e=y.findIndex(this.phases,function(e){return e.name===t});0<=e&&this.phases.splice(e,1)},qh.prototype.timedOut=function(){return!!this.iterationStartTime&&b()-this.iterationStartTime>A.state.guideUpdate.iterationTimeLimit},qh.prototype.ejectGuide=function(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=m.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&xu.addGuide(e)},qh.prototype.process=function(){var e=b();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,A.commit("guideUpdate/startUpdate",e)),this.iterationStartTime=e;!this.paused&&this.queue.length&&!this.timedOut();)this.runGuidePhase();e=b(),this.updateTotalTime+=e-this.iterationStartTime,this.isComplete()&&this.complete(e)},qh.prototype.complete=function(e){A.commit("monitoring/setTimer",{name:"guideUpdateTimeMS",time:this.updateTotalTime}),A.commit("guideUpdate/completeUpdate",e),this.cancel()},qh.prototype.cancel=function(){this.updateId=null,this.paused=!1;for(var e=this.queue.length=0,t=this.phases;e<t.length;e++){var n=t[e];y.isFunction(n.cancel)&&n.cancel()}},qh.prototype.isComplete=function(){return!this.queue.length};var Qh=new qh([new e,new zh("resourceCenter",function(){Kh(N.getResourceCenter())}),new zh("frameVisibility",function(){A.dispatch("frames/checkFrameVisibility")}),new zh("guideShowing",function(){var a=Uv();a&&(y.each(a.steps,function(e){var t,n,i,r,o;a.guide,(e=e).isLocked()||A.getters["frames/isShownInAnotherFrame"]()(e)||(t=e.element,n=e.targetElement,r=e.guideElement,i=R("."+Jg),(r=r.find("#pendo-guide-container")[0])&&r.textContent&&(r=f(r).fontSize,e.attributes.currentTextZoomFontSize!==r)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=r),e.elementPathRule&&n&&!Xr.matchesSelector(n,e.elementPathRule)?e.hide():(r=ja(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=Tm(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&za(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new lr]);function ef(){Qh.addPhase.apply(Qh,arguments)}function tf(){Qh.removePhase.apply(Qh,arguments)}function nf(){var s={};return y.each(["after","before"],function(i){this[i]=function(e,t){var n,r,o,a;this[e]&&((n=s[e])||(n=s[e]={before:[],after:[]},this[e]=(r=this[e],o=n.before,a=n.after,function(){for(var e=y.toArray(arguments),t=0,n=o.length;t<n;++t)if(!1===o[t].apply(this,e))return;var i=r.apply(this,e);for(t=0,n=a.length;t<n&&!1!==a[t].apply(this,e);++t);return i})),n[i].push(t))}},this),this}var rf="debug-enabled";function of(){try{return JSON.parse(w.read(rf,!0)||on(rf))||{}}catch(e){return{}}}function af(e){var t;return void 0===e&&(e=!0),t=A&&A.getters&&A.getters["debugger/debuggingEnabled"]?A.getters["debugger/debuggingEnabled"]():!0===of().enabled,e?t:t?"Yes":"No"}sf.prototype.test=function(e){return this.identificationFn(e)};i=sf;function sf(e,t){this.type=t,this.identificationFn=e}df={},uf=function(e){var e=e.data,t=e[0];e[1];var n=ku(t.guideId),e=(y.find(df,function(e){return e.GuideType.test(n)})||{}).handler;e&&e(n,"resourceFetchFail")};var df,uf,cf={run:function(){S.resourceFetchFail.on(uf)},stop:function(){S.resourceFetchFail.off(uf)},addTypeHandler:function(e,t){y.isFunction(t)?df[e.type]={GuideType:e,handler:t}:I.error("Invalid Handler function provided for type ".concat(e.type))}},lf=(cf.addTypeHandler(new i(Pu,"badge"),function(e,t){xu.addGuide(e)}),"_pendo-badge_");function pf(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function hf(t,n){var e,i,r,o,a,s=zu(n),d=!(null==(d=null==t?void 0:t.attributes)||!d.resourceCenter),u=!1;return d&&(u=null==(e=null==(e=null==t?void 0:t.attributes)?void 0:e.badge)?void 0:e.ignoreRTL),"building-block"===t.attributes.type?(e=y.reduce([(o=t.language,a=d?["he","ar"]:[],function(e){return y.contains(a,o)&&(e.props["data-localization-direction"]=!0),e}),(r=u,function(e){var t,n;return y.get(e,"props.data-localization-direction",!1)&&!r&&(t=y.get(e,"props.style.left","auto"),n=y.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),pf,Sc,function(e){return ip(e,{id:n.id,guideId:t.id,isBadge:!0})}],function(e,t){return t(e)},this.domJson)[0],i=e,R.removeNode(e),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=Cc(this.imageUrl),i.className="_pendo-badge "+lf,d=this.width||13,u=this.height||13,ya(i,"width:"+d+"px;height:"+u+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=y.isFunction(n.getGuide)&&n.getGuide(),t=Om(e);!e.isShown()||A.getters["frames/isShownInAnotherFrame"]()(n)?Mm(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=y.find(e.steps,function(e){return e.isShown()}),mm(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(y.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){R.removeNode(i),dp(t.id),y.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},Om(t)&&(this.toggleAriaExpanded=function(){var e=!!R("#pendo-resource-center-container")[0],t=R("button._pendo-resource-center-badge-container")[0]||R('._pendo-resource-center-badge-container [id^="pendo-image-badge-"]')[0];t&&t.setAttribute("aria-expanded",e)},i.checkAriaExpanded=this.toggleAriaExpanded),this.step=y.constant(n),this.target=y.constant(s),this.element=y.constant(i),this}hf.create=function(n){var i=hf.findStep(n);if(i)return y.reduce(hf.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},hf.findStep=function(e){var t=y.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},hf.behaviors=[nf,hf,function(){"inline"!==this.position&&"inline-right"!==this.position&&"inline-left"!==this.position||this.before("show",function(){var e,t=this.target(),n=this.element();this.isP2Badge&&ya(n,"display:inline-block;vertical-align:text-bottom;"),this.css&&ya(n,this.css),t&&t.tagName&&(e=t.tagName.toLowerCase(),/br|input|img|select|textarea/.test(e)?n.parentNode!==t.parentNode&&t.parentNode.insertBefore(n,t.nextSibling):n.parentNode!==t&&("inline"===this.position||"inline-right"===this.position?t.appendChild(n):"inline-left"===this.position&&t.prepend(n)))});return this},function(s){this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e,t=this.element(),n=Sa(this.target()),i=0,r=0,o=0;if(this.offsets&&(i=this.offsets.top||0,r=this.offsets.right||0,o=this.offsets.left||0),!y.get(s,"attributes.resourceCenter",!1)){var a="position:"+(n.fixed?"fixed":"absolute")+";top:"+(n.top+i)+"px;";switch(this.position){case"top-right":a+="left:"+(n.left+n.width-r)+"px";break;case"top-left":a+="left:"+(n.left+o)+"px"}ya(t,a)}t.parentNode||($u().appendChild(t),e=Ba(to,this.target(),yf),this.removeScrollHandlers=function(){yf.cancel(),e()})});return this},function(){"over"===this.position&&this.before("show",function(){var e,t=this.element(),n=Sa(this.target()),i="position:absolute;top:"+n.top+"px;left:"+n.left+"px;";i+="height:"+n.height+"px;width:"+n.width+"px;",ya(t,i+="background-color:transparent;"),t.parentNode||($u().appendChild(t),e=Ba(yf,t,this.target()),this.removeScrollHandlers=function(){yf.cancel(),e()})});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),yu(e)};return t.after("show",function(){n||(l(e,"click",i),n=!0)}),t.after("hide",function(){vu(e,"click",i),n=!1}),t},function(){var t=this.element(),n=this.step(),e=!1;{var i,r,o;"yes"!==this.useHover&&!this.showGuideOnBadgeHover||(i=y.throttle(function(e){io(e)===t||function(e){for(;e;){if(/_pendo-guide_|_pendo-guide-tt_|_pendo-backdrop|_pendo-badge_/.test(e.className))return!0;if(/pendo-guide-container/.test(e.id))return!0;e=e.parentNode}return!1}(io(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||Mm(n,"badge"),l(document,"mousemove",i),yu(e)},o=function(e){vu(document,"mousemove",i),Bu()||mm(n)},this.after("show",function(){e||(l(t,"mouseover",r),e=!0)}),this.after("hide",function(){vu(t,"mouseover",r),vu(document,"mousemove",i),e=!1}))}return this},function(){var s=this.element(),d=this.target(),e=!1;{var t,n,i,r,u;!this.showBadgeOnlyOnElementHover&&!/hover/.test(this.showOnEvent)||Bu()||(t="inline"===this.position?"visibility:visible;":"display:inline;",n="inline"===this.position?"visibility:hidden;":"display:none;",i=y.throttle(function(e){var t,n,i,r,o,a;io(e)===d||io(e)===s||la(s,"triggered")||(t=e.clientX,e=e.clientY,n=ka(d),i=ka(s),r=Math.min(n.left,i.left),o=Math.min(n.top,i.top),a=Math.max(n.right,i.right),n=Math.max(n.bottom,i.bottom),i=e+document.documentElement.scrollTop,r<=t&&t<=a&&o<=i&&i<=n)||u()},50,{trailing:!1}),r=function(){ya(s,t),l(document,"mousemove",i)},u=function(){vu(document,"mousemove",i),ya(s,n)},this.after("show",function(){e||(l(d,"mouseover",r),e=!0,u())}),this.after("hide",function(){e&&(vu(d,"mouseover",r),e=!1),u()}))}return this}];var ff=function(e,t){var n,i,r=(t=t||wu)[e.id],o=r?r.step():hf.findStep(e);o&&(i=r?r.target():zu(o),(n=y.get(e,"attributes.resourceCenter"))&&!A.getters["frames/canShowRCBadge"]()?r&&y.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(N.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&Tm(i,o.elementContainsRulesList)),(i=o.elementPathRule&&ja(i)&&Xr.matchesSelector(i,o.elementPathRule)&&n)?((r=r||hf.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),af()&&S.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),N.repositionDoubleResourceCenterBadge()))},gf=function(){y.map(wu,mf),wu={}},mf=function(e,t){e&&(y.isFunction(e.hide)&&e.hide(),y.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete wu[t.id]},vf=function(e){var t=wu[e.id];t&&mf(t,e)};var yf=y.throttle(function(){y.map(wu,function(e){e&&e.show&&e.show()})},10);var M,bf=w.getLocal(),If="pendo-preview",wf="current-guide-preview";function Cf(e){return A.dispatch("preview/load"),Sf(e)}function Sf(t){var e=Df();if(e)return Ef(t),A.dispatch("preview/start",y.extend(e)),w.clear(Ah),rn(!1),Fs.lock(),iv=Uf,S.startPreview.trigger(),S.leaderChanged.on(function(e){A.dispatch("preview/write"),e.oldLeaderId||Wv(),A.getters["frames/isLeader"]()||(R(M).remove(),M=null,t.removeEventListener("message",_f))}),ef(Af),!0}function Af(){if(!A.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=Mu(),d=_h();if(xf()&&(t=Df())&&M&&M.contentWindow)if(s&&s.length){M.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),n=y.find(s,function(e){return e.id===t.guideId}),i=0,r=n.steps.length,o=d||{},y.find(n.steps,function(e,t){return o.guideStepId===e.id&&("dismissed"===o.state||"active"===o.state?i=t:"advanced"===o.state&&o.destinationStepId?i=y.indexOf(n.steps,y.find(n.steps,function(e){return e.id===o.destinationStepId})):"advanced"===o.state&&t===r-1&&(i=r),!0)}),s="dismissed"===o.state,d=r-1<=i,s=s||d,d=d?r-1:i,e=n.steps[d],h=e.isShown(),M.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:rt}},location.origin),M.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:n.previewPages}},location.origin),M.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:n.name,guideAttributes:JSON.stringify(n.attributes),guideLaunchMethod:n.launchMethod,guideActivationSelector:Zu(n),isAdoptGuide:n.isTraining,isResourceCenter:t.isResourceCenter,stepId:e&&e.id,currentStepIndex:d,stepCount:r,elementPathRule:e.elementPathRule,elementContainsRulesList:e.elementContainsRulesList,triggerElementPathRule:e.triggerElementPathRule,isShown:h,pageId:e.pageId,completed:s,languageOptions:y.get(t,"languageOptions",[]),currentLanguage:t.language}},location.origin);var u=e,c=d,l=M;if(u&&l&&l.contentWindow){var p=u.getGuide().id,h=y.filter(A.state.frames.frames,function(e){return"hidden"!==e.visibility&&e.guides&&e.guides[p]});if(h.length)h=y.map(h,function(e){return L.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:u.id,guideId:p,currentStepIndex:c})}),C.all(h).then(function(e){for(var t={},n=-1,i=0;i<e.length;i++){var r=JSON.parse(e[i]).errors;if(!r.GUIDE){var o=y.keys(r).length;if(!o){t={};break}-1===n?(t=r,n=o):u.regexUrlRule?!r.PAGE&&o<=n&&(t=r,n=o):o<n&&(t=r,n=o)}}l.contentWindow.postMessage({mutation:"preview/setErrors",payload:{errors:t}},location.origin)})["catch"](y.noop)}}else Lf(0,{status:404,data:"Guide not found"})}return!0}function Ef(e){if(A.getters["frames/leaderExists"]()){if(!A.getters["frames/isFollower"]()){if(M)return!0;var t,n;y.isFunction(e.addEventListener)&&e.addEventListener("message",_f),(t=document.createElement("iframe")).id=If,ba(t,{border:"none",display:"block !important",height:n="70px !important","min-height":n,left:0,position:"fixed",right:0,top:0,visibility:"visible !important",width:"100% !important","z-index":4e5}),t.onload=function(){m.get("inlineStyleNonce")&&(o=t.contentDocument.createElement.bind(t.contentDocument),t.contentDocument.createElement=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i,r=o.apply(void 0,Ut([e],t,!1));return"style"===e&&(i=m.get("inlineStyleNonce"))&&r.setAttribute("nonce",i),r});var o,e=document.createElement("script");e.src=m.get("previewModeAssetPath")||Do("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},M=t,_a().appendChild(M)}}else S.one("leaderChanged",y.partial(Ef,e))}function Tf(e,t,n){am(),A.commit("healthCheck/resetStepStatus",null,{root:!0}),xc.reset(),Wv();var i=e[0],i=(i&&y.each(i.steps,function(e){e.seenState=null}),w.clear(Ah),A.dispatch("preview/update",null),Df());return i&&(i=y.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),A.dispatch("preview/restart",i)),Mf(e,t)}function _f(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===If+"::exit"?(Ff({preventWindowClose:n}),A.dispatch("frames/stopPreview",{preventWindowClose:n})):t===If+"::restart"?(n=Tf(Mu(),_h(),e.data.language),A.dispatch("guideState/forceExpire"),A.dispatch("guideState/updateLastGuideStepSeen",n),A.dispatch("frames/restartPreview")):t===If+"::resize"?(n=e.data.height,M&&M.style&&(M.style.height=n)):t===If+"::request-preview-mode-type"&&(e=Bf(),M)&&M.contentWindow&&e&&M.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function xf(){return A.getters["preview/isInPreviewMode"]()}function Rf(){return A.getters["preview/isInDesignerPreviewMode"]()}function kf(e){var t,n,i,r,o,a=Df();return a?a.isResourceCenter?(i=e,t=a,n=N.findResourceCenterHomeView(i),i=y.filter(i,function(e){return e.id!==n.id}),Nf(n,t.stepId),t=y.map(i,function(e){return e.launchMethod="launcher",e}),[n].concat(t)):(i=e,r=a,y.each(i,function(e){e.id===r.guideId?o=e:((e=e).launchMethod="api",(e=e.steps[0])&&(e.seenState="advanced"))}),Of(o),o.showsAfter=null,o.expiresAfter=null,Nf(o,r.stepId),i):e}function Of(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Nf(e,t){for(var n=y.find(e.steps,function(e){return e.id===t}),i=n?e.steps.indexOf(n):0,r=0;r<e.steps.length;r++)r<i?(e.steps[r].seenState="advanced",e.steps[r].seenReason="continue"):(e.steps[r].seenState=null,e.steps[r].seenReason=null)}function Mf(e,t){null==t&&(t={});var n=Df();if(!n)return t;e=y.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;Of(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function Lf(e,t){M&&M.contentWindow&&M.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function Ff(e){var t=Bf(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),bf.getItem("pendo-navigation-state"));if(A.dispatch("preview/exit"),am({stayHidden:!0}),w.clear(Ah),Fs.unlock(),R(M).remove(),iv=ec,tf(Af),rn(!0),n&&i){bf.setItem(wf,JSON.stringify(y.extend(t,{isExitBackToDesigner:!0})));try{var r=JSON.parse(i),o={target:r.baseUrl,gcsBucket:r.gcsBucket,preloader:!0,DADesigner:r.isDADesigner,host:r.host,forceNativeDesigner:"web"===t.guide.appPlatform};A.dispatch("preview/launchInAppDesigner",o)}catch(a){A.dispatch("preview/exitDesignerPreview")}}else e&&!e.preventWindowClose&&window.close(),Wv()}function Pf(e,t){e=y.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function Gf(){return A}var Df=y.partial(Pf,Gf,"state.preview.preview"),Bf=y.partial(Pf,Gf,"state.preview.designerPreview");function Wf(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+Lt(e.subscriptionId)+t+Lt(e.guideId)+"/preview"}var $f=function(e){var t;return es(e.origin)?(t=Wf(e))?(t={url:e.origin+t+"?url="+Lt(Lo.externalizeURL())+"&apiKey="+v.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),oo(t).then(function(e){return e.data.guide})):(I.info("Invalid guide url, exiting preview"),C.reject("invalid guide url")):(I.info("Invalid origin, exiting preview"),C.reject("invalid origin"))},Uf={load:zf,post:function(e,t,n){return zf(e,n)},endpoint:function(){return""},usesXhr:function(){return!0}};function jf(n,t){var e,i;return es(n.origin)?(e=Wf(n))?A.getters["frames/leaderExists"]()&&n.apiKey===v.apiKey?(e="".concat(n.origin).concat(e,"?url=").concat(Lt(Lo.externalizeURL()),"&apiKey=").concat(v.apiKey),n.childGuides&&n.childGuides.length&&(e+="&childGuides="+n.childGuides.toString()),Rf()&&(e+="&ignoreGuide=true"),e={url:e,withCredentials:!0},n.headers&&(e.headers=n.headers),i=[],oo(e).then(function(e){var t,c,e=e.data;return Rf()?(t=Bf(),i=t?Rf()?(y.each(t.guide.steps,function(t){var e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),y.each(e,function(e){delete t[e]})}),t.guide.showsAfter=null,t.guide.expiresAfter=null,[t.guide]):void 0:[],e.guide=i[0]):i=n.isResourceCenter?e.guide:(e.guide.previewPages=e.pages,[e.guide]),e.children&&(i=i.concat(e.children)),n.language&&n.language!==y.get(i,"[0].authoredLanguage")&&(t=i,c=n.language.value,y.forEach(t,function(u){y.forEach(u.steps,function(e){var t=y.get(u,"translationStates."+c+".stepTranslations."+e.id,{}),n=t.domHash,i=t.domJsonpHash,r=t.translationHash,o=t.originalDomJsonHash,a=t.originalDomJsonpHash,s=t.originalBuildingBlockHash,d=t.domHash256,t=t.domJsonpHash256;e.domUrl=Zf(o,e.domUrl,".dom.json",d),e.domJsonpUrl=Zf(a,e.domJsonpUrl,".dom.jsonp",t),e.buildingBlocksUrl=Zf(s,e.buildingBlocksUrl,".buildingBlocks.json"),n&&i&&r&&(e.domUrl=e.domUrl.replace(".dom.json","-"+n+"-"+c+".dom.json"),e.domJsonpUrl=e.domJsonpUrl.replace(".dom.jsonp","-"+i+"-"+c+".dom.jsonp"),e.buildingBlocksUrl=e.buildingBlocksUrl.replace(".buildingBlocks.json","-"+r+"-"+c+".buildingBlocks.json"))})})),n.watermarkConfig&&(e.guide.isTraining=!0),v.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},v.guideCssUrl=e.guideCssUrl,v.normalizedUrl=e.normalizedUrl,v.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),$f(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&i.push(e),v.guidesPayload({id:t,lastGuideStepSeen:Mf(i,v.lastGuideStepSeen),guides:kf(i)})})["catch"](function(e){return Lf(document,e),C.reject(e)})):(v.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),C.resolve()):(I.info("Invalid guide url, exiting preview"),C.reject("invalid guide url")):(I.info("Invalid origin, exiting preview"),C.reject("invalid origin"))}function zf(e,t){var n=Df();return!n||!Wf(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?C.reject():jf(n,e[1]).then(t)}function Zf(e,t,n,i){var r,o;if(t)return o=r=(t=t.split("/"))[t.length-1],e&&(o="".concat(e).concat(r.slice(r.indexOf(n)))),i&&-1<(e=o.indexOf("sha256="))&&(o="".concat(o.slice(0,e)).concat("sha256=").concat(i)),t[t.length-1]=o,t.join("/")}Vf=null,Yf=[],Hf=function(e){v.apiKey=e+="",Vf=e};var Vf,Yf,Hf,Kf,Xf,Jf,qf={getApiKey:function(){return v.apiKey},discoverKeys:function(e){var t=e.apiKey,e=e.additionalApiKeys,e=void 0===e?[]:e;Vf=null,Yf=[],t=t,(t=m.get("apiKey",t))&&Hf(t),t=e,t=m.get("additionalApiKeys",t),Yf=y.reduce(t,function(e,t){return t&&e.push(t+""),e},[]),Yf=[].concat(t),v.additionalApiKeys=Yf,!Vf&&Yf&&Yf.length&&Hf(Yf[0])},getAdditionalApiKeys:function(){return v.additionalApiKeys},tamperedWith:function(){return v.apiKey!==Vf||v.additionalApiKeys!==Yf}},Qf=w.getLocal(),eg=(Kf=rt,Xf="in-app-designer",Jf="latest","local"===st&&(Kf="https://local.pendo.io:8080"),S.leaderChanged.on(function(){tg({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||Rf()})}),{launchDesigner:function(e){var t,n="latest",i="designer";cg("designer-styles","@keyframes pendoExtensionSlideIn{from{transform:translate3d(-300px,0,0)}to{transform:translate3d(0,0,0);}}#pendo-draggable-handle{z-index:11;line-height: 15px;text-align:center;font-size:20px;letter-spacing:1.5px;position:absolute;width:100%;height:65px;font-size:16px;background-color:transparent;color:#ABE7DB;user-select:none;cursor: move;cursor: grab;cursor: -moz-grab;cursor: -webkit-grab;}#pendo-draggable-handle:active{cursor: grabbing;cursor: -moz-grabbing;cursor: -webkit-grabbing !important;}#pendo-draggable-handle.hidden{display:none;}#pendo-draggable-handle:hover{color:#2EA2A0;}#pendo-designer-container{animation-duration:375ms;animation-name:pendoExtensionSlideIn;animation-timing-function:cubic-bezier(0.4,0.0,0.2,1); box-shadow: 0px 2px 10px rgba(0,0,0,0.15);height:100vh;width:400px;position:fixed;top:0;left:0;overflow:hidden;border-radius:3px;z-index:1000000;}#pendo-mousemove-cover{position:absolute;height:100%;width:100%;top:0;left:0;z-index:9999999999;display:none;}#pendo-designer-container.fullscreen{width:100%;opacity:0.98;}#pendo-designer-container.closed{left:-400px;}#pendo-designer-iframe{background:#3a3c45;border:0px;height:100%;left:0;z-index:10;top:0;width:100%;}"),lg("designer-shims",Kf+"/"+i+"/"+n+"/plugin.js"),v.DESIGNER_VERSION?dg(n,i):t=window.setInterval(function(){v.DESIGNER_VERSION&&(dg(n,i),clearInterval(t))},100)},launchInAppDesigner:sg,localStorageNavigation:tg,launchOnToken:function(e){if(!pg(window.name)){var t=/pendo-designer=([A-Za-z0-9-]+)/;if(t.test(e)){var n,e=t.exec(e);if(e)return t=function(e){try{return JSON.parse(atob(Mt(e)))||{}}catch(t){return{}}}(e[1]),e=ig(t),n=ag(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),sg({target:n,host:e,preloader:!1,sidebarDesigner:!!t.sidebarDesigner}),!0}}},sendMessageToLocalStorage:function(e){var t=document.getElementById("pendo-designer-communication-iframe");t&&t.contentWindow.postMessage(e.data,eg.hostConfig.host)},isValidDesignerHost:ng,isValidTarget:og,addCommunicationIframe:function(e,t){e=e||{};y.isFunction(t)||(t=y.noop);var n=ag(e),e=rg(e),i=(new Date).getTime(),r=(eg.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=ug(r,Kf+"/"+e+"/"+n+"/communication.html","border-width:0;height:0;width:0;");return i.setAttribute("name",o),i.onload=t,document.body.appendChild(i),i},addStylesToPage:cg,hostConfig:{host:Kf},isDesignerFrame:pg,addScriptToPage:lg});function tg(e){if(!e.ignoreLocalStorageNavigation){var t,e=Qf.getItem("pendo-navigation-state");if(e&&A.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===qf.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===Ge())return e=t.isDADesigner?"da-designer":"in-app-designer",e={target:t.baseUrl,preloader:!0,host:t.host,gcsBucket:t.gcsBucket||e,DADesigner:t.isDADesigner,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},eg.launchInAppDesigner(e),!0}}}function ng(e){return!!e&&es(e)}function ig(e){var e=(e=e||{}).host||Kf,t=ng(e),e=t?e:rt;return t||I.info("Invalid host, falling back to "+rt),e}function rg(e){var e=(e=e||{}).gcsBucket||Xf,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:Xf;return t||I.info("Invalid bucket, falling back to "+Xf),e}function og(e){return"latest"===e||"strict"===e||"beta"===e||"via"===e||"mobile"===e||new RegExp("^[0-9]+.[0-9]+.[0-9]+(-[a-z0-9-]+[a-z0-9]+)?$").test(e)}function ag(e){e=e||{};var t=m.get("enableCrossOriginIsolation")?"strict":Jf,e=e.target||e.baseFolder||t,t=og(e),e=t?e:Jf;return t||I.info("Invalid target, falling back to "+Jf),e}function sg(e){if(!pg(window.name)&&!v.designerLaunched)if(m.get("disableDesigner"))I.info("Unable to launch the Visual Design Studio, set to disabled in configuration.");else{var t,n,i,r,o,a=!1;try{a=!!window.top.pendo}catch(s){}eg.crossFrameChannel===undefined&&(eg.crossFrameChannel=L,eg.useCrossFrameChannel=!0),Ss()&&a&&!e.allowChildFrame&&!e.selectionOnly?I.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):v.isReady()?(v.designerLaunchTime=(new Date).getTime(),a=ig(e=e||{}),i=rg(e),r=ag(e),n=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+i+"/"+r+"/"+n,eg.hostConfig={gcsBucket:i,baseFolder:r,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:Ge(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:qf.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),m.get("pendoGlobalKey")&&(i["data-pendo-global-key"]=m.get("pendoGlobalKey")),r=m.get("designerAgentPluginsLoader"),a=window.__pendoExtensions&&e.forceNativeDesigner,o=!window.__pendoExtensions&&!y.isFunction(r),(a||o)&&(eg.addScriptToPage(t,n,i),v.designerLaunched=!0),!e.forceNativeDesigner&&y.isFunction(r)&&(r(t,n,i),v.designerLaunched=!0)):I.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function dg(e,t){window.postMessage({type:"connect",source:"pendo-designer-content-script",destination:"pendo-designer-agent"},location.origin);var n;document.getElementById("pendo-designer-container")||(n="pendo-designer-embedded",n+="__"+eg.windowCommunicationId,(t=ug("pendo-designer-iframe",Kf+"/"+t+"/"+e+"/designer.html")).setAttribute("name",n),e=function(e){var t=document.createElement("div");return t.setAttribute("id","pendo-designer-container"),t.appendChild(e),t}(t),document.body.appendChild(e))}function ug(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&ya(i,n),i.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation allow-forms allow-pointer-lock allow-popups allow-storage-access-by-user-activation"),i.src=t,i}function cg(e,t){var n;document.getElementById(e)||((n=document.createElement("style")).setAttribute("id",e),n.type="text/css",e=document.createTextNode(t),n.appendChild(e),document.getElementsByTagName("head")[0].appendChild(n))}function lg(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=K(v).createScriptURL(t),n&&y.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function pg(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}hg={body:"pendo-launch-modal-body",closeButton:"pendo-launch-modal-close-button",container:"pendo-launch-modal",footer:"pendo-launch-modal-footer",header:"pendo-launch-modal-header",launchButton:"pendo-launch-modal-launch-button",title:"pendo-launch-modal-title",logoContainer:"pendo-launch-modal-logo-container",style:"pendo-launch-modal-style",commIframeId:"pendo-designer-communication-iframe"},fg={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(gg={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*gg.HEADER_HEIGHT,gg.BODY_HEIGHT="calc(100% - "+gg.HEADER_HEIGHT+"px - "+gg.FOOTER_HEIGHT+"px)",mg='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 164.12 164.12"><defs><style>.cls-1{fill:#fff;}</style></defs><title>chevron</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><polygon class="cls-1" points="82.06 0 0 82.06 82.06 82.06 82.06 164.13 164.13 82.06 164.13 0 82.06 0"/></g></g></svg>',(vg={})["#"+hg.closeButton+":hover"]={"background-color":fg.GRAY_LIGHTER_6},vg["#"+hg.launchButton+":hover"]={"background-color":fg.TEAL_DARKER+" !important"},yg={PRIMARY_FONT:"Helvetica Neue"};var hg,fg,gg,mg,vg,yg,bg={listen:function(){return y.isFunction(document.addEventListener)?(document.addEventListener("keyup",Ig,!1),function(){document.removeEventListener("keyup",Ig,!1)}):function(){}},launchOnLocalStorageToken:_g,ids:hg,removeElement:Ag,attemptToLaunch:Sg,loadPluginJs:function(){var t;v.designerLaunched||(t=y.once(function(e){_g(e,!0)}),Es(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function Ig(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&Sg(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&Sg(!1,!0)}function wg(e,t){var n,i,r,o={"background-color":fg.WHITE,height:gg.MODAL_HEIGHT+"px","min-height":gg.MODAL_HEIGHT+"px",width:gg.MODAL_WIDTH+"px",position:"fixed",top:gg.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-gg.MODAL_WIDTH/2+"px","border-radius":"4px","box-shadow":"0px 13px 28px rgba(0, 0, 0, 0.17)",overflow:"hidden","z-index":"300000","box-sizing":"border-box"},o=Cg("div",hg.container,o);o.appendChild(((i=document.createElement("style")).setAttribute("id",hg.style),i.type="text/css",r=document.createTextNode(function(e){return y.reduce(y.pairs(e),function(e,t){var n=t[0],t=t[1];return e+n+"{"+y.reduce(y.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},"")}(vg)),i.appendChild(r),i)),o.appendChild((r=t,i=Cg("div",hg.header,{"background-color":fg.GRAY_PRIMARY,height:gg.HEADER_HEIGHT+"px","min-height":gg.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(t=Cg("div",hg.logoContainer,{height:"38px",width:"44px","background-color":fg.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=K(v).createHTML(mg),i.appendChild(t),(t=Cg("div",hg.title,{width:"100%",display:"flex","align-items":"center","font-family":yg.PRIMARY_FONT,"font-size":"18px",color:fg.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=r?"VIA Designer":"Pendo Designer",i.appendChild(t),i)),o.appendChild(((r=Cg("div",hg.body,{height:gg.BODY_HEIGHT,"min-height":gg.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":yg.PRIMARY_FONT,"font-size":"14px","box-sizing":"border-box"})).innerText="Thanks for letting us know you're here. We're ready to try this again. Launch Designer below to begin.",r)),o.appendChild((n=e,t=Cg("div",hg.footer,{"align-items":"center","border-top":"1px solid"+fg.GRAY_LIGHTER_6,display:"flex",height:gg.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":gg.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(i=Cg("button",hg.closeButton,{"border-radius":"3px",border:"none",height:gg.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":yg.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","margin-right":"10px","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Close",i.onclick=function(){Ag(hg.container),Ag(hg.commIframeId)},(r=Cg("button",hg.launchButton,{"background-color":fg.TEAL_PRIMARY,"border-radius":"3px",color:fg.WHITE,border:"none",height:gg.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":yg.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Launch Designer",r.onclick=function(){_g(n)},t.appendChild(i),t.appendChild(r),t)),document.body.appendChild(o)}function Cg(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),y.extend(e.style,n),e}function Sg(t,n){var i,r,o;v.designerLaunched||(o=y.once(function(e){t||!n?_g(e):wg(e,t),Eg()}),Es(function(e){"pendo-designer-launch-modal"===e.data.destination&&(clearInterval(i),e.data.viaconfirmed?clearInterval(r):e.data.token?(o(e.data.token),e=JSON.parse(e.data.token),y.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(hg.commIframeId)&&Tg()},100))):Eg())}),eg.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){Tg(),i=window.setInterval(Tg,50)}))}function Ag(e){document.getElementById(e)&&document.getElementById(e).remove()}function Eg(){var e=document.querySelector("#"+hg.commIframeId+'[src*="pendo"]');e&&e.remove()}function Tg(){var e=document.getElementById(hg.commIframeId);e&&e.contentWindow&&y.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:v.visitorId},y.get(v,"designerv2.hostConfig.host",rt))}function _g(e,t){var n={},e=JSON.parse(e);n.target=e.target||"latest",e.host&&(n.host=e.host),e.lookaside&&(n.lookaside=e.lookaside),t&&(n.selectionOnly=t),e.forceNativeDesigner&&(n.forceNativeDesigner=e.forceNativeDesigner),e.sidebarDesigner&&(n.sidebarDesigner=e.sidebarDesigner),Ag(hg.container),eg.launchInAppDesigner(n)}var xg=y.wrap(y.wrap(y.once(y.wrap(function(e){var t=C.defer();return os(e,function(){t.resolve()}),t.promise},function(e,t){return 0<y.size(Qu._handlers.validateGlobalScript)?oo.get(t).then(function(e){return Qu.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):C.resolve()}),function(e,t){return m.get("preventCodeInjection")?C.resolve():e(t)}),Rg={initializeWatermark:function(e){e=y.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),Rg.watermarkGuides=e,e=y.map(e,function(e){return e.fetchContent()});return C.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining){var n=e.targetAccount?function(t){return y.find(Rg.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return y.find(Rg.watermarkGuides,function(e){return t===e.appId})}(e.appId);if(n&&n.steps){var i,n=n.steps[0];if(n&&n.domJson)return i=n.domJson,(i=t(i,n)).css({position:"absolute",left:"auto",top:e.isBottomAligned?"auto":"100%",bottom:e.isBottomAligned?"100%":"auto",right:"0"}),i}}}},kg=1e4;function Og(n,i){var r=!1,o=[];return n.addEventListener("message",function(e){d(e.data),i.state.guideUpdate.useObserver&&i.dispatch("guideUpdate/documentChanged")}),{postMessage:a,postMessageAsPromise:s,postMessageOrTimeout:function(e,t){void 0===t&&(t=kg);var n=C.defer(),i=At(32),r=(e=y.extend(e,{promiseId:i}),Dt(function(){o[i]&&(n.reject(JSON.stringify({message:"request timed out"})),delete o[i])},t));return s(e).then(function(e){clearTimeout(r),n.resolve(e)}),n.promise},close:function(){r=!0,y.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=y.extend({apiKey:v.apiKey,allowMixedApiKeyFrames:m.get("allowMixedApiKeyFrames"),agentInstallType:Ge()},e),n.postMessage(t),Dt(function(){d(t)},0))}function s(e){e.promiseId||(t=At(32),e=y.extend(e,{promiseId:t}));var t=C.defer();return o[e.promiseId]=t,a(y.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function d(e){try{var t;r||e.apiKey!==v.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===m.get("allowMixedApiKeyFrames"))||e.targetFrame&&e.targetFrame!==i.state.frames.frameId||(e.resolveId?(t=o[e.resolveId])&&(delete o[e.resolveId],t.resolve(JSON.stringify(e))):/^frames\/|^debugger\//.test(e.action)&&i.dispatch(e.action,e))}catch(n){I.critical("ERROR in cross frame channel",{error:n})}}}var Ng="frames/removeFrame";function Mg(e,t,n){return new Lg(e,t,n,(e=t,t=n,new(y.isFunction(e.MessageChannel)?Fg:Pg)(e,t)))}function Lg(e,t,n,i){this.init(e,t,n,i)}y.extend(Lg.prototype,{init:function(e,t,n,i){this._store=e,this._window=t,this._singletonMessageHandler=n,this._listeners=[],this._targetOrigin=n.targetOrigin(),this._impl=i,this._impl.onconnect=y.bind(this._frameConnectHandler,this),this._impl.onmessage=y.bind(this._fireMessageListeners,this),this._impl.onrelay=y.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners:function(t){y.each(this._listeners,function(e){e(t)})},_controlMessageHandler:function(e){e=this._impl._parseMessage(e);e.data&&("pendo::connect"===e.data.action&&this._impl.frameConnect(e),e.data.action===Ng)&&this._topMessageHandler(e)},_topMessageHandler:function(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===Ng&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop:function(e,t,n){this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},this._targetOrigin),Dt(y.bind(function(){this._connected||(0===t?y.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler:function(){this._singletonMessageHandler.addEventListener(y.bind(this._controlMessageHandler,this))},_frameConnectHandler:function(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener:function(e,t){"message"===e&&this._listeners.push(t)},postMessage:function(e){this._closed||this._impl.postMessage(e)},close:function(){this._closed=!0,this._listeners.length=0,this._impl.close()}});s={_frameConnectHandler:function(e){y.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived:function(e){y.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage:function(e){y.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage:function(e){var t;return y.isString(e.data)?((t=y.pick(e,"type","origin","source","ports","lastEventId","target")).data=function(e){if(!y.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}(e.data),t):e}};function Fg(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function Pg(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=y.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=y.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}y.extend(Fg.prototype,s,{connectToTop:function(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect:function(e){var t,n=e.ports[0];(t=n)&&y.all(["addEventListener","start"],function(e){return y.isFunction(t[e])})&&((this._ports[e.data.frameId]=n).addEventListener("message",y.bind(this._relayMessage,this)),n.start(),n.postMessage({action:"pendo::connectSuccess"}),n.postMessage({action:"frames/receiveFrame",frame:A.state.frames.frames[A.state.frames.frameId],"pendo-preview":A.state.preview.preview}))},frameDisconnect:function(e){delete this._ports[e.data.frameId]},connectSuccess:function(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",y.bind(this._messageReceived,this))},broadcast:function(t){y.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage:function(e){this._port&&this._port.postMessage(e),e.action===Ng&&this._window.top.postMessage(e,this._targetOrigin)},close:function(){y.each(this._ports,function(e){e.close()}),this._ports={},this._closeChannel()},_openChannel:function(){this._channel=new this._window.MessageChannel,this._port=this._channel.port1,this._boundFrameConnectHandler=y.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel:function(){this._port&&y.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),y.extend(Pg.prototype,s,{connectToTop:function(e,t){this._isTop||this._window.top.postMessage(JSON.stringify(e),t)},frameConnect:function(e){this._frames[e.data.frameId]=e.source,this._relayHandlerAdded||(this._relayHandlerAdded=!0,this._boundRelayMessage=y.bind(this._relayMessage,this),this._singletonMessageHandler.addEventListener(this._boundRelayMessage)),e.source.postMessage(JSON.stringify({action:"pendo::connectSuccess"}))},frameDisconnect:function(e){delete this._frames[e.data.frameId]},connectSuccess:function(){this._singletonMessageHandler.removeEventListener(this._boundFrameConnectHandler),this._singletonMessageHandler.addEventListener(this._boundMessageReceived)},broadcast:function(t){var n=this._singletonMessageHandler.targetOrigin();y.each(this._frames,function(e){t.source!=e&&e.postMessage(JSON.stringify(t.data),n)}),t.source!=this._window&&this._messageReceived(t)},postMessage:function(e){this._isTop?this._relayMessage({data:e,source:this._window}):this._window.top.postMessage(JSON.stringify(e),this._singletonMessageHandler.targetOrigin())},close:function(){var e=this._singletonMessageHandler;e.removeEventListener(this._boundFrameConnectHandler),e.removeEventListener(this._boundMessageReceived),e.removeEventListener(this._boundRelayMessage)}});Gg=window,Dg=es,Wg=!(Bg=[]);var Gg,Dg,Bg,Wg,$g={targetOrigin:function(){return Wg?location.origin:"*"},secure:function(e){Wg=e},addEventListener:function(e){0===Bg.length&&Gg.addEventListener("message",Ug),Bg.push(e)},removeEventListener:function(e){e=Bg.indexOf(e);0<=e&&Bg.splice(e,1),0===Bg.length&&Gg.removeEventListener("message",Ug)},close:function(){Gg.removeEventListener("message",Ug),Bg.length=0}};function Ug(t){Wg&&!Dg(t.origin)||y.each(Bg,function(e){y.isFunction(e)&&e(t)})}function jg(e){if(!et.addEventListener)return{addEventListener:y.noop,postMessage:y.noop,close:y.noop};var o,a,t=!!window.__pendoExtensions;if(m.get("preferBroadcastChannel")&&!t&&y.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=new BroadcastChannel("pendo"),o=Gn,a=[],t.removeEventListener=y.wrap(t.removeEventListener,function(e,t,n){var i,r=y.toArray(arguments).slice(1);return"message"===t&&0<=(i=y.findIndex(a,function(e){return e[0]===n}))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),t.addEventListener=y.wrap(t.addEventListener,function(e,t,n){var i,r=y.toArray(arguments).slice(1);return"message"===t&&(r[1]=i=function(e){if(e.data.tabId===o.getTabId())return n.apply(this,arguments)},a.push([n,i])),e.apply(this,r)}),t.postMessage=y.wrap(t.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,y.toArray(arguments).slice(1))});if(t&&y.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),Mg(e,window,$g)}var zg="guides_blocked",Zg="Guides disabled: unreachable endpoint guide.gif";var Vg=w.getLocal(),Yg=[],Hg="Guide was not shown because this visitor is in a control group of an active experiment for the guide",Kg=[];function Xg(){var e=m.get("guideCssAssetPath");return e||Do("guide.css")}var Jg="_pendo-guide_",qg="_pendo_g_",Qg=0;function em(e){Qg=e}var tm=function(){return y.any(k,function(e){return e.isShown()})},nm=function(e,t){var n=R("._pendo-close-guide_",e);return n.length||(n=R(document.createElement("button")).attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").text("\xd7"),tt()?9<Be&&n.css({top:3}):8===Be?n.css({top:9,right:2}):9===Be?n.css({right:2,top:3}):9<Be&&n.css({top:3}),e=R("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},im=function(n){return y.reduce(k,function(e,t){return n(t)&&e.push(t),e},[])},rm=function(e,t,n,i,r){e=Nu(ku(e),t);e&&(e.seenState=n,e.lastSeenAt=i,r!==undefined)&&(e.dismissCount=r)},om=function(e){for(var t=new RegExp("^"+qg);e;){if(y.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function am(t){y.each(k,function(e){y.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var sm=function(e){return e&&e.guideId};var dm=function(e,t){var n,i;return sm(e)&&(t=e,e=null),(n=t)&&y.isFunction(n.render)?t:t?(n=ku(t.guideId))&&n.findStepById(t.id):(n=y.find(k,function(e){return e.isShown()}))?((i=e?om(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||ia("findStepForGuideEvent: step with id "+i):(t=y.find(n.steps,function(e){return e.isShown()}))||ia("findStepForGuideEvent: no step shown"),t):void 0},um=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=ju(e);"tooltip"===e.type&&y.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):vu(n,t,bm,!0)};function cm(e){return e.isLocked()&&(!e.elements||!e.elements.length||void ra('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var lm=function(e){var e=R("#_pendo-badge_"+e.id),t=e.find("input"),t=0<t.length?t:e;t.length<1||t[0].focus()},pm=function(e){e=y.get(e,"attributes.activation.selector",""),e=Xr(e);e.length<1||e[0].focus()},hm=function(){var e=N.getResourceCenterBadge();e?e.element().focus():(e=N.getResourceCenter(),pm(e))},fm=function(e){if(!v.designer&&e&&"building-block"===y.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=y.get(e,"launchMethod","").split("-"),r=y.contains(i,"dom"),o=y.contains(i,"badge"),i=Om(e);if(y.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&lm(t);break;case"dom":r&&pm(e);break;case"launcher":hm();break;default:return}}};function gm(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var mm=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=dm(e,t))&&t.id?cm(t)||("dismissed"===t.seenState?I.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(I.info("onGuideDismissed called",{contexts:["guides"]}),S.beforeDismiss.trigger(t).cancel?I.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(um(t),e=t.id,n=ku(s=t.guideId),i=(i=y.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=y.get(t,"dismissCount",0)+1,Pm(s,e,E(),i,o),o=b(),rm(s,e,"dismissed",o,r),(a=y.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||Eh({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:E(),dismissCount:r}),gm(n,i)&&Bm(o,Dm.DISMISSED),t.hide(),fm(a),tm()||(Wh(),$h())))):Wh()},vm=function(e,t,n){var i,r,o,a,s,d,u,c;I.info("onGuideSnoozed called",{contexts:["guides"]}),(t=dm(e,t))?"snoozed"===t.seenState?I.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):S.beforeSnooze.trigger(t).cancel?I.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,I.info("no snooze duration provided, defaulting to 1 day")),cm(t)||(um(t),e=t.id,i=t.guideId,r=E(),o=ku(i),a=o&&o.language,s=y.first(o&&o.steps),s=s&&s.seenReason,d=b(),I.info("snoozing guide for "+n+" ms"),u=d+n,t.snoozeEndTime=u,c=$m({type:"guideSnoozed",guideId:c=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),zm(c),S.guideSnoozed.trigger(c),rm(i,e,"snoozed",d),o&&o.attributes&&o.attributes.doNotResume||Eh({guideId:i,guideStepId:e,time:d,state:"snoozed",seenReason:s,visitorId:E(),snoozeEndTime:u}),gm(o,s)&&Bm(d,Dm.SNOOZED),t.hide(),fm(o),tm())||(Wh(),$h())):(I.info("missing step. can't snooze",{contexts:["guides","error"]}),Wh(),ia("onGuideSnoozed: missing step"))},ym=function(e){var t,n,i,r=(r=e&&e.step)||dm(e);r?(i=e&&e.params,i=y.find(i,function(e){return"goToStepId"===e.name}),t=i&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?I.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=ku(r.guideId),(n=y.find(i.steps,function(e){return e.id===t}))?(n=y.indexOf(i.steps,n),i=y.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?bm(e,r,!1):Im(e,r)):I.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):I.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):I.info("[goToStep] missing current step",{contexts:["guides","error"]})},bm=function(e,t,n){if((s=Uv())&&y.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=ju(e);"tooltip"===e.type&&y.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):vu(n,t,bm,!0)}),1===arguments.length&&sm(e)&&(s=Ru(e.guideId),i=dm(),s)&&i&&y.first(s.steps).id===i.id&&y.last(s.steps).id===e.id&&(I.info("Cannot skip to last step from first step"),e=null),I.info("onGuideAdvanced called",{contexts:["guides"]}),(t=dm(e,t))===e&&(e=null),t){if(!cm(t))if("advanced"!==t.seenState||n)if(S.beforeAdvance.trigger(t).cancel)I.info("Guide advance canceled during runtime in step: "+t.id);else{var i=e&&e.action&&"goToStep"===e.action||!1,r=ku(t.guideId),o=r&&r.language,a=r&&r.steps&&y.findIndex(r.steps,function(e){return t.id==e.id});if(e&&y.isNumber(e.steps)&&1<e.steps&&!i){var s=a+(e.steps-1),d=s=s>=r.steps.length?r.steps.length-1:s;!0===e.skip&&(d=a+1);for(var u=a;u<d;++u){t=r.steps[u],Gm(r.id,t.id,E(),t.seenReason,o,u!==a);var c=b();Eh({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:E()}),rm(r.id,t.id,"advanced",c)}return bm(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=y.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&y.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=y.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||I.info("missing destination step id"),I.info("advancing guide"),Gm(s,i,E(),p,o,n,h),I.info("update guide status"),r&&y.last(r.steps).id===i&&(l=y.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(rm(s,i,"advanced",f,l),y.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||Eh({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:E(),destinationStepId:h,dismissCount:l}),gm(r,p)&&Bm(f,Dm.ADVANCED),I.info("stop guide"),Wh(),I.info("start guides"),$h()}else I.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else I.info("missing step. can't advance",{contexts:["guides","error"]}),Wh(),ia("onGuideAdvanced: missing step")},Im=function(e,t){var n,i,r,o,a,s;I.info("onGuidePrevious called",{contexts:["guides"]}),(t=dm(e,t))?"advanced"===t.seenState?I.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):S.beforePrevious.trigger(t).cancel?I.info("Guide previous canceled during runtime in step: "+t.id):(o=ku(n=t.guideId),s=e&&e.action&&"goToStep"===e.action||!1,0!==(i=y.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=ju(t),"tooltip"===t.type&&y.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):vu(a,r,bm,!0),a=e&&y.isNumber(e.steps)?e.steps:1,r=y.first(o&&o.steps),a=0<=(i=i-a)?o.steps[i]:r,i=r&&r.seenReason,r=o&&o.language,o=a.id,(o=s&&e&&e.destinationStepId?e.destinationStepId:o)||I.info("missing destination step id"),I.info("advancing guide"),Gm(n,t.id,E(),i,r,!1,o),I.info("update guide status"),a=(new Date).getTime(),rm(t.guideId,t.id,"advanced",a),(s=y.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||Eh({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:E(),destinationStepId:o}),Wh(),$h())):(Wh(),ia("onGuidePrevious: missing step"))},wm=function(e){var t;R("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",Go()+"/img/tiny-logo.png"),t=R(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:v.TOOLTIP_ARROW_SIZE}).append(t),Iu.push(t[0]),t.appendTo(e))};function Cm(e){return e&&e.attributes&&e.attributes.stayHidden}var Sm=function(e,t,n){var i;return af()&&(i=e.id,e=e.guideId,S.stepEligibility.trigger({stepId:i,guideId:e,eligible:t,reason:n})),t},Am=function(e){var t,n,i=y.partial(Sm,e);return Cm(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!ja(Xr(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=ju(e),(n=e.targetElement)&&e.elementContainsRulesList&&!Tm(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||yl.isBuildingBlockGuideRelativeToElement(e),e=ja(t),n?e?i(e,"target_element_tooltip"):i(za(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function Em(e){var t=(R(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function Tm(e,t){for(var n=Em(e),i=0;i<t.length;i++)if(!_m(n,t[i]))return!1;return!0}function _m(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=Ot(e);if(null==r)return!1;e=parseFloat(r),i=parseFloat(i);if(isNaN(e)||isNaN(i))return!1}else"string"===t&&(e=e.toLowerCase(),i=i.toLowerCase());return"equal"===n?e===i:"notEqual"===n?e!==i:"contains"===n?-1<String(e).indexOf(i):"notContains"===n?-1===String(e).indexOf(i):"greaterThan"===n?i<e:"lessThan"===n&&e<i}var xm=function(e){return qg+e.id},Rm=function(e){var t=e.element,n=y.first(R("#"+xm(e)));t&&n?ja(t)||R.hasClass(n,"mouseover")?Dt(function(){Rm(e)},Gh):e.hide&&(e.hide(),tm())||(Wh(),$h()):t||!n||e.hide&&(e.hide(),tm())||(Wh(),$h())},km=function(){return!1},Om=y.partial(y.get,y,"attributes.resourceCenter"),Nm=function(t){var e;tm()&&(e=dm(),um(e),Om(t)?(e=im(Om),(e=y.filter(e,function(e){return e.id!==t.id})).length&&A.dispatch("frames/hideGuides",y.pluck(e,"id"))):(am(),A.dispatch("frames/hideGuides")))},Mm=function(e,t){return!(!e||!e.guideId||!(e=ku(e.guideId)))&&(Nm(e),e.launch(t),e.isShown())},Lm=function(e,t,n,i,r,o){e=$m({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&y.extend(e.props,{step_poll_types:o}),zm(e),S.guideNotSeen.trigger(e)};var Fm=function(e,t,n,i,r,o){i||(I.critical("pendo.io guideSeen exception",{guideId:e,stepId:t,error:new Error("seenGuide called without seen reason")}),a=ku(e),s="auto",i=a&&(a=(a.launchMethod||s).split("-"),!y.contains(a,s))&&a.length?y.first(a):s);var a=$m({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(y.extend(a.props,o),zm(a),b());Eh({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:E()}),rm(e,t,"active",s),S.guideSeen.trigger(a)};function Pm(e,t,n,i,r){e=$m({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});zm(e),S.guideDismissed.trigger(e)}function Gm(e,t,n,i,r,o,a){e={type:"guideAdvanced",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r},a&&(e.destination_step_id=a),t=$m(e);zm(t,null,o),S.guideAdvanced.trigger(t)}var Dm={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function Bm(e,t){Wm(e,t);var n={};n[t]=e,A.dispatch("frames/changeThrottlingState",n)}function Wm(e,t){y.contains(y.values(Dm),t)&&(y.isFunction(e.getTime)&&(e=e.getTime()),v[t]=e,w.write(t,e,Sh),A.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function $m(e,t,n,i,r,o){var a=e,e=("object"!=typeof a&&(a={type:e,guideId:t,stepId:n,visitorId:i,language:o}),r&&(a.reason=r),y.isString(a.language)||delete a.language,y.extend({guide_id:a.guideId,guide_step_id:a.stepId},y.omit(a,"type","guideId","stepId","visitorId"))),t=Gn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:mi(),browser_time:(new Date).getTime(),url:Lo.externalizeURL(),props:e});return S.eventCaptured.trigger(t),t}var Um=null,jm=function(e){window.clearTimeout(Um),Um=Dt(Iv,e)},zm=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-Qg,Ev(),yv.push(e),jm(t)},Zm=function(e,t){return"dismissed"===e.state?null:ku(e.guideId).nextStep(e,t||Vm())},Vm=function(){return v.normalizedUrl||Ym(Lo.externalizeURL())},Ym=function(e){try{var t=new Ci(e),n=y.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return I.error("Invalid URL provided to normalize"),e}},Hm=function(e,t){return!fe(e)||new RegExp(e).test(t)},Km=function(e,t){e=Ou(e);return!!e&&(!(t=Mm(y.first(e.steps),t||"api"))&&e.control&&I.info(Hg),t)},Xm=function(e,t){e=ku(e);return!!e&&(!(t=Mm(y.first(e.steps),t||"api"))&&e.control&&I.info(Hg),t)};function Jm(e,t){return t=parseInt(t,10),isNaN(t)||!y.isNumber(t)||!(y.isNumber(e)&&e<t)&&y.isNumber(e)?e:t}var qm,Qm=function(){Wh(),Bh(),N.removeNotificationBubble(),gf(),Ws()};function ev(){Wh(),ua(),v.segmentFlags=[],v.doNotProcess=!0,A.commit("debugger/doNotProcess",!0),I.info("not tracking visitor due to 451 response")}function tv(e){var t;qm&&(451===e.statusCode&&(ev(),qm.deferred.reject(e)),y.isString(e.id)&&e.id!==qm.id||(t=y.indexBy(v.guides,"id"),y.extend(v,e),v.guides=y.map(v.guides,function(e){return 1==y.keys(e).length&&e.id?t[e.id]:e}),qm.deferred&&qm.deferred.resolve(),qm=null))}var nv=function(e,t){var n=Bo(),i=y.uniqueId(),r=C.defer(),o=(qm={id:i,deferred:r},vp()||((o=yp())?(I.info("sending metadata: "+JSON.stringify(o),{contexts:["guides","metadata"]}),t.metadata=o):I.info("no metadata to send",{contexts:["guides","metadata"]})),yt(t)),i={id:i,jzb:o,v:dt,ct:(new Date).getTime()},n=(n&&t.accountId&&"ACCOUNT-UNIQUE-ID"!==t.accountId&&(i.acc=wt(t.accountId)),af()&&(i.debug=!0),ta(iv.endpoint(),e,i)),t=Ys.get();return o=2e3<n.length||!y.isEmpty(t)?(delete i.jzb,n=ta("guide.json",e,i),i=y.extend({events:o},t),iv.post(n,i,v,y.noop)):iv.load(n,v,y.noop),C.all([o["catch"](function(e){return 451===e.status&&ev(),C.reject(e)}),r.promise,(t=iv,i=e,"1"===(n=w.read(zg))?(I.info(Zg),C.resolve({success:!1,cached:!0})):"0"===n?C.resolve({success:!0,cached:!0}):(n=ta("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:b(),v:dt}),(t.usesXhr()?oo.get(n):oa(n)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}})))]).then(function(e){var t,e=e[2];if((t=e).cached||(t.success?w.write(zg,"0",144e5):(I.info(Zg),w.write(zg,"1",18e5))),!e.success)return C.reject()})},iv=ec;function rv(e){e=y.find(e.steps,function(e){return e.pageId&&!e.regexUrlRule});return!e||(I.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function ov(n){return y.every(Kg,function(e){try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function av(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&y.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var sv,dv=function(){return!m.get("disableGlobalCSS")};function uv(e,t){var n=m.get("dropAnonymous");if(ii(e)&&n)I.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),y.isFunction(t)&&t("error: guides are blocked");else if("1"===w.read(zg))I.info("guide events are blocked, load guides cancelled"),y.isFunction(t)&&t("error: guides are blocked");else{if(Ms(Ls()))return 1;I.info("bad url: probably local file system",{contexts:["guides","error"]}),y.isFunction(t)&&t("error: invalid url")}}var cv=function(e,o,a,s){var t,d,n,i,r,u,c,l,p,h,f=C.defer(),g=!1;return e=e||v.apiKey,uv(o=o||E(),s)?(I.info("loading guides for "+a+"...",{context:["guides"]}),a=Lo.externalizeURL(a),t=cv.lastVisitorId!==o,d=t?y.noop:(r=k,(i=y.find(r,function(e){return y.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=y.chain(i.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=y.findWhere(e,{id:i.id});e&&!y.get(e,"attributes.doNotResume")&&y.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),r=(cv.lastVisitorId=o,Bh(),A.commit("guideState/setLastGuideRequestAt",b()),{visitorId:o,accountId:mi(),url:a,oldVisitorId:li=li===undefined&&ri()?yi(Qn):li}),u=v,h=cv,void 0===c&&(c=b()),l=[],m.get("cacheGuides")&&!(l=c-(h.lastUncached||0)<m.get("cacheGuidesTimeout")?y.map(u.guides,function(e){return y.pick(e,"id","lastUpdatedAt")}):l).length&&(h.lastUncached=c),p=((u=l).length&&!t&&(r.cachedGuides=u),y.uniqueId()),h=(cv.reqId=p,nv(e,r).then(function(){var e,t,n,i,r;g||v.designer||(cv.reqId!==p?f.resolve():(S.deliverablesLoaded.trigger(),I.info("successfully loaded guides for "+a,{contexts:["guides"]}),v.designerEnabled&&"true"!==Vg.getItem("pendo-designer-mode")&&bg.loadPluginJs(),Qm(),(r=v.lastGuideStepSeen)?(A.dispatch("guideState/receiveLastGuideStepSeen",r),r.visitorId=o,A.dispatch("guideState/updateLastGuideStepSeen",r),A.commit("guideState/setLastGuideRequestAt",b()),Cu={},r=v.guides,Tu(r=y.chain(r).map(Ic).filter(rv).filter(ov).sortBy(av).value()),e=Mu(),A.dispatch("guideState/load",(n=Ah,i=m.get("crossAppGuideStorageSuffix"),w.read(n,!1,i))),A.dispatch("guideState/apply"),v.latestDismissedAutoAt=Jm(v.latestDismissedAutoAt,w.read("latestDismissedAutoAt")),A.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:v.latestDismissedAutoAt}),v.finalAdvancedAutoAt=Jm(v.finalAdvancedAutoAt,w.read("finalAdvancedAutoAt")),A.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:v.finalAdvancedAutoAt}),v.latestSnoozedAutoAt=Jm(v.latestSnoozedAutoAt,w.read("latestSnoozedAutoAt")),A.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:v.latestSnoozedAutoAt}),A.dispatch("healthCheck/init",r),A.dispatch("frames/changeGuideList",e),v.eventProperties=Nv(v.features),e.length?C.all([vv(),xg(Cc(v.globalJsUrl)),Sv(r),Rg.initializeWatermark(r),hv(5e3)].concat((t=r,y.map(lv,function(e){return e(t)})))).then(function(){cv.reqId===p&&(A.getters["frames/isLeader"]()&&d(k),S.guidesLoaded.trigger(),$h(),clearTimeout(sv)),y.isFunction(s)&&s(),f.resolve()},function(e){I.error("Post loadGuide request failed: ",e),S.guidesFailed.trigger(),f.reject()}):(S.guidesLoaded.trigger(),f.resolve())):I.info("lastGuideStepSeen is not set, shutting down guides")))})["catch"](function(e){S.guidesFailed.trigger(),f.reject(e)}),m.get("guideTimeout")||m.get("guides.timeout")),y.isNumber(h)&&(clearTimeout(sv),sv=Dt(function(){var e;e=f,Qm(),e.reject(),g=!0},h))):f.reject(),f.promise};var lv=[];function pv(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?C.resolve():(n=C.defer(),R(i).remove(),v.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var hv=y.memoize(function(t,n,e){if(!dv()||!fv(k))return C.resolve();n=n||b,e=e||"_pendo-hidden_";var i=R(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(R.getBody()),r=n(),o=C.defer();return function s(e){Dt(function(){a(i[0])?(i.remove(),o.resolve()):n()-r>t?(i.remove(),o.reject("Unable to find global css after delay")):s(100)},e)}(0),o.promise;function a(e){e=f(e);if(e)return"none"===e.display}});function fv(e,t){return t&&t.designer||y.any(e,function(e){return!Du(e)&&y.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}var gv="_pendo-default-css_",mv="_pendo-css_";function vv(){var e=[];if(!dv())return C.resolve();fv(k,v)&&e.push(pv(gv,Xg()));var t=((v.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(pv(mv,Cc(t))):R("#"+mv).remove(),C.all(e)}var yv,bv,Iv=function(e){yv&&yv.flush(e)},wv=function(){return Yg};function Cv(e){var t=td(pd,ad("visitor_id"),ad("props.guide_id"),ad("props.source"),ld,hd(),md(e),vd,yd),n=td(id,rd(e.cache),y.noop);return new Fd(y.extend({processSilos:t,packageSilos:n},e))}var Sv=function(e){return N.initializeResourceCenter(e)},L={postMessage:y.noop,close:y.noop},Av=L;function Ev(){return yv=yv||Cv({cache:Yg,apiKey:function(){return v.apiKey},beacon:"guide",allowPost:!0,preferFetch:et.safari}),bv=bv||Cv({cache:[],apiKey:function(){return v.apiKey},beacon:"poll",allowPost:!0,preferFetch:et.safari}),function(){yv.clear(),bv.clear()}}function Tv(e){var e=e.blockedURI;e&&-1!==e.indexOf("/data/guide.json")&&m.get("cacheGuides")&&((e=m.getLocalConfig()).cacheGuides=!1,m.setLocalConfig(e),no(window,"securitypolicyviolation",Tv),Wv())}var _v=function(){var e,t,n,i,r,o,a,s,d,u=[],c=(u.push(Ev()),cf.run(),u.push(cf.stop),S.appHidden.on(function(){Iv({hidden:!0})}),S.appUnloaded.on(function(){Iv({unload:!0}),A.dispatch("frames/leave")}),S.metadata.on(function(e){e.data[0].storeChanged&&!vp()&&Bv()}),S.identify.on(function(){Bv()}),S.urlChanged.on(function(){Bv(Lo.get())}),S.guideUpdateComplete.on(function(){var e,t,n;e=y.filter(k,function(e){return y.isFunction(e.outsideTimebox)&&e.outsideTimebox()}),xu.addGuide(e),xc.processPrefetch(),e=k,t=wu,m.get("disablePrefetch")||(t=y.keys(t)).length&&(n=y.indexBy(e,"id"),y.each(t,function(e){var e=n[e];e&&(e=y.first(e.steps))&&y.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}),S.guidesLoaded.on(function(){N.fetchAnnouncementGuidesContent(k,A)}),S.guideListChanged.on(function(e){var n,e=e.data[0].guideIds;(e=e)&&e.length&&(n=y.indexBy(e),y.each(wu,function(e,t){n[t]||(e.hide(),delete wu[t])}))}),u.push((e=document,t=function(){Lo.get()===Dv.lastUrl&&Wv()},n=function(){Qm()},c=window.Turbolinks,a=window.Turbo,c&&(i=c.EVENTS&&c.EVENTS.LOAD),(i=a&&a.visit?"turbo:load":i)?(r=to(e,i,t),o=to(e,"turbo:before-cache",n),function(){r(),o()}):function(){})),m.get("guides.tooltip.arrowSize"));return y.isNumber(c)&&(v.TOOLTIP_ARROW_SIZE=c),Av=jg(A),L=Og(Av,A),u.push(function(){return L.close()}),u.push(Gn.tabIdChanged(function(){var e=Gn.getTabId();A.commit("frames/setTabId",e),A.dispatch("frames/join")})),A.dispatch("frames/init"),A.dispatch("frames/join"),u.push((s=[],A.dispatch("guideState/init"),s.push(to(window,"focus",Th)),s.push(to(window,"storage",function(e){A.dispatch("guideState/storageChanged",e)})),function(){return y.each(s,function(e){e()})})),u.push(function(){Fv.cancel(),yf.cancel()}),u.push(to(window,"resize",Fv)),u.push(to(window,"scroll",yf,!0)),u.push(to(window,"gestureend",Pv,!0)),u.push(to(window,"securitypolicyviolation",Tv)),u.push(function(){for(var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],t=[],n=0;n<e.length;n++)t.push(to(document,e[n],Gv));return function(){y.each(t,function(e){e()})}}()),m.get("preferMutationObserver")&&et.MutationObserver&&(d=y.debounce(function(e){A.dispatch("guideUpdate/documentChanged")},50),u.push(function(){d.cancel()}),u.push(l(window,"animationend",d)),u.push(l(window,"transitionend",d)),u.push(l(window,"mouseover",d)),A.commit("guideUpdate/setUseObserver"),m.get("observeShadowRoots")&&A.commit("guideUpdate/setObserveShadowRoots"),u.push(function(){return A.dispatch("guideUpdate/stopObserver")})),w.registry.addLocal(Dm.ADVANCED),w.registry.addLocal(Dm.DISMISSED),w.registry.addLocal(Dm.SNOOZED),w.registry.addLocal(zg),Lc.initialize(),function(){Dv.reset(),Qm(),Bv.reset(),cv.reqId=null,y.each(u,function(e){e()}),R("#"+gv).remove(),R("#"+mv).remove(),Lc.teardown()}},xv=function(){return m.get("guides.disabled",!1)||m.get("disableGuides",!1)||!ea},Rv=function(){return m.get("guides.delay",!1)||m.get("delayGuides",!1)},kv=function(e){var t=m.getLocalConfig();t.disableGuides=e,m.setLocalConfig(t)},Ov=function(e){var t=m.getLocalConfig();t.delayGuides=e,m.setLocalConfig(t)},Nv=wi(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=y.map(e[n].eventProperties,function(e){return e.selector?e:JSON&&JSON.parse&&e.rule?JSON.parse(e.rule):void 0});t.push({featureRules:i,eventPropertyRules:r,featureId:e[n].featureId})}return t}}),Mv=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},Lv=function(){I.debug("adjustActiveGuideOnResize firing");var e=Uv();e&&e.step&&!v.ignoreResize&&e.step.redraw()},Fv=y.debounce(function(){var e;-1<y.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Mv())||e.id.indexOf("pendo-video-")<0)&&Dt(function(){Lv()},150):Lv(),yf()},50),Pv=function(e){1!==e.scale&&Fv()},Gv=function(e){var t=y.get(document,"activeElement.id",""),e=y.get(e,"target.id","");y.filter([t,e],function(e){return-1<e.indexOf("pendo-video-")}).length&&(Mv()?v.ignoreResize=!0:Dt(function(){v.ignoreResize=!1},1e3))};function Dv(e){var t,n,i,r,o=E(),a=mi();e=e||Lo.get(),n=o,i=a,r=Zl,!(t=e)||!v.apiKey||xv()&&"true"!==Vg.getItem("pendo-designer-mode")||t===Dv.lastUrl&&n===Dv.lastVisitorId&&i===Dv.lastAccountId&&r===Dv.lastMetadataHash||(Dv.lastUrl=e,Dv.lastVisitorId=o,Dv.lastAccountId=a,Dv.lastMetadataHash=Zl,cv(v.apiKey,o,e)["catch"](y.noop))}Dv.reset=function(){y.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){Dv[e]=null})};var Bv=function(e){ea&&(Bv.reset(),Bv.pending=Dt(function(){delete Bv.pending,Dv(e)},0))};function Wv(){Dv.lastUrl=null,Bv()}function $v(e){e=Kg.indexOf(e);-1!==e&&Kg.splice(e,1)}function Uv(){var e,n,t=y.find(k,function(e){return e.isShown()});return!t||y.get(t,"attributes.resourceCenter.isModule")&&!(t=N.getResourceCenter())?null:(e=y.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:y.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function jv(e){var t,n=y.get(e,"value","");-1!==y.get(e,"parentElement.className","").indexOf("_pendo-nps-poll-"+n+"-wrapper")&&(e=R("._pendo-nps-open-text-poll-question"),t=R("._pendo-nps-open-text-poll-input")[0],y.forEach(e,function(e){"none"!==y.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}Bv.reset=function(){Bv.pending&&clearTimeout(Bv.pending)};var zv,Zv,Vv,Yv,Hv,Kv=function(){var n=this,o=(this.eventable=Un.call({}),this.eventable.on("pendoEvent",function(e){try{n.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";I.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!v.designer){var t=e.step.guideElement;switch(e.action){case o.advanceGuide:bm(e,e.step);break;case o.previousStep:Im(e,e.step);break;case o.goToStep:ym(e);break;case o.submitPoll:this.submitPoll(e);break;case o.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;vm(e,e.step,n);break;case o.dismissGuide:N.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return mm();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return N.dismissResourceCenter(t);mm(e,e.step)}(e);break;case o.showElements:this.setElementDisplay(e,"block"),e.srcElement&&jv(e.srcElement),Bl((i=Wc(e.step.domJson)).props.id,t),Wl(i.props.id,t),g.flexAllThings(i.props.id,e.step),Dl(i.props.id,t);break;case o.hideElements:this.setElementDisplay(e,"none"),Bl((i=Wc(e.step.domJson)).props.id,t),Wl(i.props.id,t),g.flexAllThings(i.props.id,e.step),Dl(i.props.id,t);break;case o.slideElement:this.setElementAnimation(e);break;case o.showGuide:n=y.find(e.params,function(e){return"reason"===e.name});Xm(e.params[0].value,n&&n.value);break;case o.launchGuide:this.launchGuide(e);break;case o.renderResourceCenterModule:var i=a(e);N.replaceResourceCenterContent(e.params[0].value,i);break;case o.returnToResourceCenterHome:n=N.findResourceCenterHomeView(Au());if(!n)return;N.attemptToPreserveIntegrationIframes(e),N.replaceResourceCenterContent(n.id,e.params);break;case o.openLink:this.openLink(e);break;case o.searchGuides:this.searchGuides(e);break;case o.submitPollAndGoToStep:this.submitPoll(e),ym(e);break;case o.confirmation:this.confirmGuide(e)}var r=Kv.prototype.registeredActions,r=r&&r[e.action];"function"==typeof r&&r(e)}},this.submitPoll=function(e){var t=e&&e.action,i=e.step,n=[];e.srcElement&&e.srcElement.getAttribute("data-pendo-poll-type")&&"yesNo"===e.srcElement.getAttribute("data-pendo-poll-type")&&(r=e.srcElement.getAttribute("data-pendo-poll-id"),e=e.srcElement.value,n.push({pollId:r,value:parseInt(e,10)}));var r=R("[data-pendo-poll-id]",i.guideElement[0]);n=n.concat(y.map(r,function(e){var t,n=R("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value)return t=e.getAttribute("data-pendo-poll-id"),e=y.find(i.guide.polls,function(e){return e.id===t}),n=n[0].value,e&&e.numericResponses&&(n=parseInt(n,10)),{pollId:t,value:n}})),i.response&&n?i.response(y.compact(n)):I.info("[Agent] Error! Trying to submit a poll response but step does not have response function!");t!==o.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=R(y.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);y.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=R(y.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=y.find(e.params,function(e){return"transition"===e.name}).value,e=y.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=y.find(e.params,function(e){return"url"===e.name}).value,e=y.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&Ss()&&(e="_top");window.open(t,e)},this.goToStep=ym,this.searchGuides=function(e){var t="",n=e.srcElement.value,e=R("#pendo-resource-center-container"),i=e.find('[id^="pendo-list-item-"]'),r=e.find('[id^="pendo-results-count-container"]'),e=e.find('[id^="pendo-no-matches-container"]'),o=[],a=!0,s=0;if(i)for(var d in i){var u;d&&i[d]&&(u=!1,R(i[d]).text()&&(-1!==R(i[d]).text().toLowerCase().indexOf(n.toLowerCase())?(R(i[d]).css({display:"list-item"}),u=!(a=!1)):R(i[d]).css({display:"none"})),y.isFunction(i[d].getAttribute)&&(t=i[d].getAttribute("data-_pendo-text-list-item-1").split(","),y.forEach(t,function(e){y.contains(o,e)||o.push(e)})),this.searchAllTerms(o,t,n)&&i[d]&&(R(i[d]).css({display:"list-item"}),u=!(a=!1)),t="",u)&&s++}a?R(e[0]).css({display:"block"}):R(e[0]).css({display:"none"});{var c;r&&r.length&&(r[0].innerHTML="",n)&&(c="",0===s?(c=e[0].innerText,this.debounceAnnounceResults(r[0],c)):(e=1===s?"data-pendo-aria-label-alert-singular":"data-pendo-aria-label-alert-plural",(c=r[0].getAttribute(e))&&(c=c.replace("{RESULT_COUNT}",s),this.debounceAnnounceResults(r[0],c))))}},this.searchAllTerms=function(t,e,n){return!!e&&e.some(function(e){return y.contains(t,e)&&e===n})},this.confirmGuide=function(e){var e=e.step,t=function(e){if(e.confirmationElementPathRule)return Xr(e.confirmationElementPathRule)[0]}(e);e.advance(),t?t.click():I.critical("pendo.io confirmationElement exception",{stepId:e.id,confirmationElementPathRule:e.confirmationElementPathRule,error:new Error("confirmation action called but confirmationElement was not found")})},this.getTransitionParams=a,this.launchGuide=function(e){y.get(e,"params.2.value.doNotDismiss")||mm(e,e.step);var t=e&&e.params&&e.params[0]&&e.params[0].value,n=e&&e.params&&e.params[1]&&e.params[1].value;{var i,r;t&&n?(n=ku(e.params[0].value),i=e.params[1].value,r=(r=y.find(n.steps,function(e){return e.id===i}))||n.steps[0],Nm(n),r.show("api")):t&&Xm(e.params[0].value)}},this.debounceAnnounceResults=y.debounce(function(e,t){e.innerHTML=t},300),{advanceGuide:"advanceGuide",previousStep:"previousStep",goToStep:"goToStep",submitPoll:"submitPoll",guideSnoozed:"guideSnoozed",dismissGuide:"dismissGuide",showElements:"showElements",hideElements:"hideElements",slideElement:"slideElement",showGuide:"showGuide",launchGuide:"launchGuide",renderResourceCenterModule:"renderResourceCenterModule",returnToResourceCenterHome:"returnToResourceCenterHome",openLink:"openLink",searchGuides:"searchGuides",submitPollAndGoToStep:"submitPollAndGoToStep",confirmation:"confirmation"});function a(e){return e.params.find(function(e){return"transitionDirection"===e.name})?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},Xv=(Kv.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((Kv.prototype.registeredActions=Kv.prototype.registeredActions?Kv.prototype.registeredActions:{})[e]=t)},Kv.deregisterAction=function(e){e&&"string"==typeof e&&delete(Kv.prototype.registeredActions=Kv.prototype.registeredActions?Kv.prototype.registeredActions:{})[e]},zv="guideActivity",Zv=function(){return(new Date).getTime()-Qg},Vv=y.isObject,Yv=y.findWhere,{type:zv,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,Vv(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if(y.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(Vv(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return Jv(e)}(t)||function(e){return Qv(e)}(t)||function(e){return qv(e)}(t))&&(e=function(e){var t=function(e){for(var t=0,n=Hv;t<n.length;t++){var i=(0,n[t])(e);if(i)return i}return Uv()}(e);if(t&&(!function(e){e=e.guide.activeModule;return e&&e.attributes&&e.attributes.resourceCenter&&"AnnouncementsModule"===e.attributes.resourceCenter.moduleId}(t)||(t=function(e){var t=R("#"+e).closest("[data-pendo-announcement-guide-id]").attr("data-pendo-announcement-guide-id"),e=y.find(Au(),function(e){return e.id===t});return e?{guide:e,step:e.steps[0]}:undefined}(e.id)))&&t.step&&t.step.domJson){var n,i,r,e=Qv(e)||Jv(e)||qv(e)||{type:e.tag,id:e.id},o=function a(e,t){if(t.props&&t.props.id&&t.props.id===e)return t;if(t.children!==undefined)for(var n=0;n<t.children.length;n++){var i=a(e,t.children[n]);if(i!==undefined)return i}return undefined}(e.id,t.step.domJson);if(o)return n=e.id,o=function(e,t){if(e!==undefined){if("a"===e.type)return[{action:"openLink",url:To(e.props.href),target:e.props.target}];if(e.actions!==undefined)return y.map(e.actions,function(e){switch(e.action){case"automation":var t=Yv(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=Yv(e.parameters,{name:"url"}),n=Yv(e.parameters,{name:"target"});return{action:e.action,url:To(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=Yv(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=Yv(e.parameters,{name:"snooze_duration"}),t=Yv(e.parameters,{name:"time_unit"});return{action:e.action,duration:n.value,timeUnit:t.value};case"showGuide":case"launchGuide":n=e.parameters[0],t=e.parameters[1]||{};return{action:e.action,guideId:n.value,stepId:t.value};case"advanceGuide":case"previousStep":case"submitPoll":case"dismissGuide":case"confirmation":return{action:e.action};default:return{}}});if("pendo_task_list_item"===t.templateName&&y.isArray(e.templateChildren)&&e.templateChildren[t.templateChildIndex])return[{action:"showGuide",guideId:e.templateChildren[t.templateChildIndex].id}]}return[]}(o,e),r=o[0],i=(r=void 0===r?{}:r).action,r=r.guideId,"showGuide"===i&&r&&(n+="-"+r),$m({type:zv,visitorId:E(),ui_element_id:n,ui_element_type:e.type,ui_element_actions:o,guideId:t.guide.id,stepId:t.step.id,duration:Zv(),language:t.guide.language})}}(n))&&zm(e)},registerGuideResolver:function(e){Hv.push(e)},removeGuideResolver:function(e){e=Hv.indexOf(e);-1!==e&&Hv.splice(e,1)}});function Jv(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:ey(e)||!Vv(e.parentElem)?null:Jv(e.parentElem)}function qv(e){var t,n;if("LI"===e.tag&&/pendo-task-list-item/.test(e.cls))return t=(n=e.id.split("-")).pop(),n=n.join("-"),{type:e.tag,id:n,templateName:"pendo_task_list_item",templateChildIndex:t};return ey(e)||!Vv(e.parentElem)?null:qv(e.parentElem)}function Qv(e){return"A"===e.tag?{type:e.tag,id:e.id}:ey(e)||!Vv(e.parentElem)?null:Qv(e.parentElem)}function ey(e){return y.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}var ty=[],ny=!(Hv=[]),iy={agent:{getJwtInfoCopy:Ys.get,treatAsAdoptPartner:Bo},agentStorage:w,analytics:{ptm:function(){return Md},collectEvent:Qs},attachEvent:l,ConfigReader:m,Events:S,EventTracer:Gn,EventRouter:Kv,Extensions:{API:{addTopic:function(e,t){var n=Ip[e]||{};y.extend(n,t),Ip[e]=n}}},frames:{getChannel:function(){return Av}},getAssetUrl:Do,getEventable:function(){return Un.call({})},GlobalRuntime:{addGlobalScript:Lc.addGlobalScript,removeGlobalScript:Lc.removeGlobalScript},GuideActivity:Xv,GuideLoop:{addUpdatePhase:ef,removeUpdatePhase:tf},guides:{addProcessor:function(e){return Kg.push(e),y.partial($v,e)},removeProcessor:$v,registerDisplayableGuides:function(e,t){y.isArray(t)&&(Cu[e]=t)},removeDisplayableGuides:function(e){delete Cu[e]}},hosts:{SERVER:rt},NodeSerializer:iu,q:C,sessionStorage:w.getSession(),sizeElements:Pl,store:A,Tombstone:xu,transmit:{buildBaseDataUrl:ta,fetchKeepalive:aa,sendBeacon:sa},log:I,util:{trim:gt,base64EncodeString:wt,parseUrl:ts},constants:{URL_MAX_LENGTH:2e3}};function ry(t){y.find(ty,function(e){return e.name===t.name})?I.warn("Plugin with name ".concat(t.name," already exists. Skipping registration.")):(ty.push(t),ny&&t.initialize(v,iy))}function oy(){y.each(ty,function(e){y.isFunction(e.teardown)&&e.teardown(v,iy)}),ny=!1}Ep.registerExtensionsByUse("plugin",function(e){return y.extend(e.uri,y.pick(e,"name")),ry(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var ay=!1;function sy(){ay||(S.identify.on(function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(ii(n)?ni(t)?ii(t)?(I.info("Visitor is anonymous: "+t),1):si(t)?(I.info("Visitor id is the default: "+t),1):(I.info("Re-mapping visitor identity from "+n+" to "+t),0):(I.info("Not valid visitor id: "+t),1):(I.info("Visitor is already identified: "+n),1))&&(n=(t=e).old_account_id,t=t.account_id,ni(t)?n===t||(I.info("Re-mapping account identity from "+n+" to "+t),0):(I.info("Not valid account id: "+t),1))||(Qs("identify",e),Ws())}),S.metadata.on(function(e){var t;vp()||(t=(e=e.data[0]).options,e.hashChanged&&(Qs("meta",t),Ws()))}),ay=!0)}dy="guideActivity",uy=function(){return(new Date).getTime()-Qg},cy=y.isObject;var dy,uy,cy,ly={type:dy,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,cy(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(cy(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return fy(e)}(t)||function(e){return py(e)}(t)||function(e){return hy(e)}(t))&&(e=function(e){var t=N.getResourceCenter();if(t){var n=t.activeModule,i=fy(e);if(i?(i={elementId:i.id},/^pendo-close-guide/.test(i.id)?i.actions=[{action:"dismissGuide"}]:/^pendo-left-caret/.test(i.id)&&(i.actions=[{action:"showGuide",guideId:t.id}])):i=py(e)||hy(e),i)return i.guideId||(i.guideId=(n||t).id),i.stepId||(i.stepId=(n||t).steps[0].id),i.actions||(i.actions=[{action:"showGuide",guideId:i.elementId}]),i.language||(i.language=(n||t).language),$m({type:dy,visitorId:E(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:uy(),language:i.language})}}(n))&&zm(e)}};function py(e){return-1!==e.cls.split(" ").indexOf("_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:R("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&cy(e.parentElem)?py(e.parentElem):null}function hy(e){var t=e.cls.split(" ");if(-1===t.indexOf("_pendo-resource-center-guidelist-module-listed-guide")&&-1===t.indexOf("_pendo-resource-center-onboarding-module-listed-guide"))return"pendo-resource-center-container"!==e.id&&cy(e.parentElem)?hy(e.parentElem):null;t=N.getResourceCenter();if(t){e=e.id.split("-").pop(),t=t.activeModule;if(t&&t.attributes&&t.attributes.resourceCenter)return{type:"BUTTON",elementId:t.attributes.resourceCenter.children[e]}}return null}function fy(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-left-caret/.test(e.id))?{type:e.tag,id:e.id}:"pendo-guide-container"!==e.id&&cy(e.parentElem)?fy(e.parentElem):null}var gy=function(e){return(e=e||v).doesExist(e.apiKey)};var my=0,vy="initializeImmediately",yy=[],by=wi(function(e){if("complete"===document.readyState||y.get(e,vy)||m.get(vy))if(I.info("pendo.initialize called with "+JSON.stringify(e)),v.apiKey)1==my++&&I.info(["pendo.initialize only needs to be called once",Tt()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},y.isEmpty(Ys.get())&&(r=Ys.getJwtOptions(e,"initialize"))&&(Ys.set(y.pick(e,"jwt","signingKeyName")),y.extend(e,r,{forceAnonymous:!0})),y.isString(e))return oo.get(e).then(function(e){return ue(h=e.data),by()});A.dispatch("location/init",e.location||{}),m.setLocalConfig(e),Po(),v.HOST=ko;var t,n,i,r=m.get("cookieDomain");r&&(r=r,t=location.host,r?y.isString(r)&&(t=t.replace(/:\d+$/,""),r=r.replace(/^\./,""),n=new RegExp("\\."+Yt(r)+"$"),i=new RegExp("^"+Yt(r)+"$"),n.test(t)||i.test(t))&&(qt="."+r):qt=r),qf.discoverKeys(e),qf.getApiKey()?(A.commit("metadata/setMetadata",{selfHosted:mp()}),e.logStackTraces&&(v.logStackTraces=e.logStackTraces),m.get("preferBroadcastChannel")&&$g.secure(!0),yy.push((Od=Fs.events=_s,Nd=Fs.trackEvents=xs,Md=Gd({cache:Od,silos:Fs.silos,apiKey:na,beacon:"ptm",allowPost:!0}),Ld=Gd({cache:Nd,silos:Fs.trackEventSilos,apiKey:na,beacon:"ptm",allowPost:!0,params:{type:"track"}}),Gs(Md),Gs(Ld),function(){js(),Ds(Md),Ds(Ld)})),ea&&(w.registry.addLocal(qn),w.registry.addLocal(Qn),w.registry.addLocal(ei),w.registry.addLocal(cp),w.registry.addLocal(rf),v.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,n=(n=e).events,y.each(void 0===n?[]:n,function(e,t){Qu[t]&&Qu[t](e)}),yy.push(_v()),sy(),yy.push(hu()),yy.push((y.each(ty,function(e){e.initialize(v,iy)}),ny=!0,oy)),yy.push((t=e,w.registry.addLocal(If),w.registry.addLocal(wf),y.find([y.partial(eg.launchOnToken,window.location),y.partial(Cf,window),y.partial(eg.localStorageNavigation,t)],function(e){return e()}),t.enableDesignerKeyboardShortcut||!m.get("disableDesignerKeyboardShortcut")?bg.listen():function(){})),S.appUsage.on(Xv.handler),S.appUsage.on(ly.handler),yy.push($s(Rs))),ri()||oi(),v.updateOptions(e),e.visitorId&&e.visitorId!=ai&&v.identify(e.visitorId),yy.push(Lo.watch(function(){v.pageLoad()})),ea&&S.ready.trigger(),Dd(Lo.get()),my++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((i=$g.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},i):I.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),Cy()):I.debug("API key is not set, Pendo will not initialize.")}else re(v,"initialize",arguments)});function Iy(e){return!y.isArray(e)||y.isEmpty(e)}function wy(e){if(!Iy(e))return y.find(e,function(e){return"initialize"===e[0]})}function Cy(i){var e;return!Iy((i=i||v)._q)&&(e=!!wy(i._q),gy(i)||e)?(e=i._q.splice(0,i._q.length),y.reduce(e,function(e,t){var n;return y.isArray(t)&&(n=i[t.shift()],y.isFunction(n))?e.then(function(){return n.apply(i,t)}):e},C.resolve()).then(Cy)):C.resolve()}function Sy(){gy()?I.info("already running"):(window.pendo_options&&by(window.pendo_options),Cy())}function Ay(){S.appHidden.trigger(),S.appUnloaded.trigger(),y.each(yy,function(e){e()}),Dd.reset(),yy.length=0,$g.close(),Un.clear(S),Un.clear(Qu),delete v.apiKey,my=0}var Ey,Ty,_y={getActiveGuide:Uv,smartNextStep:function(e){var t,n=Uv();n&&(t=n.guide.steps[n.stepIndex+1],Dt(function(){var e=Xr(t.elementPathRule);0!==e.length&&y.some(e,ja)?bm(n.step):bm(t)},e=e||0))},smartFirstStep:function(){R("._pendo-guide_").css("display:none;");var t=Vm(),e=Uv().guide.steps,n=y.filter(y.rest(e),function(e){return!!e.pageId}),n=y.indexOf(e,y.find(n,function(e){return Hm(e.regexUrlRule,t)}));I.info("startingPoint is "+n),-1==n?R("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],I.info("found starting step to be "+n.id),bm(n))},advanceOn:function(e,t){var n=Uv(),i=R(t=t||n.step.elementPathRule)[0],r=function(){bm(),vu(i,e,r,!0)};l(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=y.findWhere(i,{seenState:"active"}));else{var i=Uv();if(!i)return;t=i.guide,n=i.step}return(e=y.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})}},F={renderGuideFromJSON:function(e,n,t,i){var r=n.getGuide(),o=Wc(e),a=y.get(r,"attributes.resourceCenter");a&&(N.revertRtlChanges(r,e.props),e=N.updatePseudoStyleSelectors(e));var s=a&&N.isFullyCustom(r),d="AnnouncementsModule"===y.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=ju(n),F.buildNodeFromJSON(e,n,t)),t=(n.guideElement=o).find("#"+n.containerId),u="data-vertical-alignment",c="Relative to Element"===t.attr(u);c&&!a&&R(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});t.css({visibility:"hidden"}),o.css({visibility:"hidden"});u=Rg.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(u)},F.buildNodeFromJSON);u&&t.append(u);var u=n&&n.attributes&&n.attributes.imgCount,l=$u(),p=y.get(r,"attributes.embedConfig",null);{var h,f;p?(f="pendo-guide-container",g=o[0],h=g.querySelector("#".concat(f)),h&&(h.id="".concat(f,"-").concat(n.id),g.id="".concat("pendo-base","-").concat(n.id)),h=p.selector,f=p.method,l=R(h)[0],"replace"===f&&l?(l.innerHTML="",o.appendTo(l)):"prepend"===f?o.prependTo(l):o.appendTo(l)):o.appendTo(l)}(function(e,t,n){var i,r,t=R.getRootNode(t),e=R.getRootNode(e);e!==t&&(e!==document?e.hasOwnProperty("wrappedJSObject")?(i=e.wrappedJSObject.adoptedStyleSheets,(r=t.wrappedJSObject.adoptedStyleSheets).push.apply(r,i)):(i=e.adoptedStyleSheets,(r=t.adoptedStyleSheets).push.apply(r,i)):(r=R(".pendo-style-".concat(n),e)).length&&(r.remove(),r.appendTo(t)))})($u(),o[0],n.id),Pl(o),s||d||(F.recalculateGuideWidth(n.containerId,n.guideElement),F.adjustGuideContentWidth(n.containerId,n.guideElement));u||a||F.flexAllThings(n.containerId,n);s||F.recalculateGuideHeight(n.containerId,n.guideElement);c?n.attributes.calculatedType="tooltip":yl.attachBBAdvanceActions(n);c&&!u&&yl.positionStepForTooltip(n,e,t[0]);{var g;a&&(N.showHomeViewOrEmptyState(r),g=[],d?g=[r.attributes.resourceCenter]:F.flexAllThings(n.containerId,n),g.length)&&y.forEach(g,function(e){e=y.get(e,"children",[]);y.forEach(e,function(e){var t;e&&(t=e.steps[0],y.isUndefined(t.attributes.imgCount))&&(t=y.get(t,"id",n.id),e=y.get(e,"id",r.id),t=R("#pendo-g-"+t).length?t:e,F.flexAllThings("pendo-g-"+t,n))})})}{var m;u?(m=C.defer(),o.rendered=m.promise,t.on("imagesLoaded",function(){m.resolve()})):(t.css({visibility:"visible"}),o.rendered=C.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),v.designer||(y.get(n,"attributes.isAutoFocus")&&(F.autofocusStep(n,t),F.trapFocusStep(n,t),n.hiddenElements=F.addAriaHiddenOutsideGuide(o[0])),a&&(F.attachRCFocusHandlers(),r.skipResourceCenterHomeView?(p=r.activeModule.steps[0],F.autofocusStep(p,p.guideElement)):F.autofocusStep(n,t)));return R(".pendo-video-wrapper",o).each(function(t){R("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),F.addVideoLoadListener(t,e)})}),o},autofocusStep:function(e,o){var n="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",i={maxRetries:100,delay:50,exponentialBackoff:!1};kt(function(){var e,t,n,i,r=R(o).find("#pendo-guide-container");return(r=r[0]||r)&&ja(r)&&(n=Qo(n=r),i=Ia(),y.extend(i,{top:0,left:0,bottom:i.height,right:i.width}),Oa(i,n))&&(i=r,n=y.contains(["A","INPUT","LABEL","SELECT","TEXTAREA","BUTTON","FIELDSET","LEGEND","DATALIST","OUTPUT","OPTION","OPTGROUP"],i.nodeName),e=!!i.tabIndex,t=!i.hidden,i=!i.disabled,(n||e)&&t&&i)?r:null},i,function(t){kt(function(){return!!(e=t)&&(e.focus(),e===R.getRootNode(e).activeElement);var e},i,function(){},function(){I.warn(n+"#pendo-guide-container is available on page but could not capture focus")})},function(){I.warn(n+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(e,t){!function(e){var o,a,s,t,d,u,n,c=e[0];c&&(t=["a[href]:not([disabled])","button:not([disabled])","textarea:not([disabled])",'input[type="text"]:not([disabled])','input[type="radio"]:not([disabled])','input[type="checkbox"]:not([disabled])',"select:not([disabled])","[tabindex]","iframe"].join(", "),(o=y.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=Oy(e),d=t[0],u=t[1],n=function(e){var t,n,i=xy(e),r=e.shiftKey;i&&(t=(i=R.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===d||t||n)&&(ky(o,s).focus(),e.preventDefault()):(t||i===u||n)&&(ky(o,a).focus(),e.preventDefault()))},l(document,"keyup",n),l(document,"keydown",n),S.one("unmounted",function(){vu(document,"keyup",n),vu(document,"keydown",n)}))}(t.find("#pendo-guide-container"))},attachRCFocusHandlers:function(){var e,t,s,d,n,i,r,u=N.getResourceCenter(),c=N.getResourceCenterContainer();"dom"===u.launchMethod&&c&&(e=R(u.attributes.activation.selector)[0])&&(t=Oy(R(c)),s=t[0],d=t[1],n=function(e){var t,n,i,r=xy(e),o=e.shiftKey;function a(t){return Object.values(i).findIndex(function(e){return e===t})}r&&(r=R.getRootNode(c).activeElement,t=R(u.attributes.activation.selector)[0])&&(n=r===s,r=r===d,i=R(Wa),o?n?(t.focus(),e.preventDefault()):r&&Ry(0===(o=a(s))?i.length-1:o-1,i,e):r?Ry(a(t)+1,i,e):n&&Ry((o=a(d))>=i.length-1?0:o+1,i,e))},i=function(e){var t=xy(e),n=e.shiftKey;t&&!n&&Ry(0,R('[id^="pendo-g-"]').find(Wa),e)},r=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=s&&t&&Ry((n=R('[id^="pendo-g-"]').find(Wa)).length-1,n,e)},l(document,"keyup",n),l(document,"keydown",n),l(e,"keydown",i),l(e,"focus",r),S.one("unmounted",function(){vu(document,"keyup",n),vu(document,"keydown",n),vu(e,"keydown",i),vu(e,"focus",r)}))},addAriaHiddenOutsideGuide:function iA(e,n){void 0===n&&(n=[]);if(!e||e===_a())return n;var t=xa(e);y.each(t,function(e){var t;-1===n.indexOf(e)&&"true"!==e.getAttribute("aria-hidden")&&"script"!==(t=e.tagName.toLowerCase())&&"style"!==t&&(e.setAttribute("aria-hidden","true"),n.push(e))});e.parentNode&&iA(e.parentNode,n);return n},renderResourceCenterModule:N.renderResourceCenterModule,buildNodeFromJSON:ip,attachImgLoadHandlers:rp,recalculateGuideHeightOnImgLoad:op,buildStyleString:function(e){var n="";return y.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:sp,bindActionToNode:ap,recalculateGuideHeight:Dl,recalculateGuideWidth:Bl,adjustGuideContentWidth:Wl,findDomBlockInDomJson:$c,isElementHiddenInGuide:g.isElementHiddenInGuide,positionStepForTooltip:yl.positionStepForTooltip,flexAllThings:g.flexAllThings,flexElement:g.flexElement,findTopLevelContainer:function(t){for(var e=["pendo-base","pendo-resource-center-container"],n=0;n<20;n++){if(y.find(e,function(e){return t.id===e}))return t;if(t===document.body)return document.body;t.parentNode&&(t=t.parentNode)}return document.body},updateBackdrop:cl,buildNodesFromJSON:ep,findGuideContainerJSON:Wc,maintainAspectRatios:g.maintainAspectRatios,sizeElement:Gl,sizeElements:Pl,getAllowedAttributes:np,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:yl.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:jv,addVideoLoadListener:function(e,t){l(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function xy(e){return"Tab"===e.key||9===e.keyCode}function Ry(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function ky(e,t){var n,i;return"radio"===t.getAttribute("type")&&(n=t.getAttribute("data-pendo-poll-id"),i=y.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return n===t&&e.checked})),i||t}function Oy(e){var t={margin:0,padding:0,outline:"none",border:"none","box-shadow":"none",shadow:"none"},t={type:"style",props:{type:"text/css",scoped:"scoped",id:"pendo-focus-bumper-styles"+Date.now()},css:[{selector:".pendo-start-focus-bumper",styles:y.extend({},t,{tabIndex:0})},{selector:".pendo-start-focus-bumper:hover",styles:t},{selector:".pendo-start-focus-bumper:focus",styles:t},{selector:".pendo-end-focus-bumper",styles:y.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=F.buildNodeFromJSON(t),t=(e.prepend(t),document.createElement("div")),n=(t.setAttribute("id","pendo-start-focus-bumper-"+Date.now()),t.setAttribute("class","pendo-start-focus-bumper"),t.setAttribute("tabIndex",0),e.prepend(t),document.createElement("div"));return n.setAttribute("id","pendo-end-focus-bumper-"+Date.now()),n.setAttribute("class","pendo-end-focus-bumper"),n.setAttribute("tabIndex",0),e.append(n),[t,n]}var Ny=100,My=[],Ly=[],Fy="log-enabled",Py="active-contexts",Gy=function(){return Wy()?Ty?"logging already enabled":(w.write(Fy,"true",null,!0),Ty=!0,"logging enabled"):"logging unavailable"},Dy=function(){return Ty?(w.write(Fy,"false",null,!0),Ty=!1,"logging disabled"):"logging already disabled"};var By=function(e,t){return y.compact([].concat(e,t))},Wy=function(e){return e=e||"log","undefined"!=typeof console&&y.isFunction(console[e])},$y=function(e){return e=By(e),0<Ey.length?0<y.intersection(Ey,e).length:!!Ty||!!af()},Uy=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];I.info(e,{contexts:t})};function jy(e){var t;e.level!==zt.Debug&&e.level!==zt.Info||(t=e.attributes?By(e.attributes.contexts):[],Wy()&&$y(t)&&Ky(e.message),Zy(My,e.message,t))}function zy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];Wy("error")&&console.error.apply(console,e),Zy(Ly,e.join(" "))}var Zy=function(e,t,n){y.contains(n,"debug")||(e.length==Ny&&e.shift(),e.push([t,n]))},Vy=function(t){t=By(t),y.each(y.map(y.filter(My,function(e){return 0===t.length||0<y.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){Ky(e,"[Pendo-History] ")})},Yy=function(){return y.union.apply(y,y.map(My,function(e){return e[1]}))},Hy=function(e){Ey=By(e),w.write(Py,Ey.join(","),null,!0)},Ky=function(e,t){var n;Wy()&&(t=t||"[Agent] ",e&&e.length?((n=1e3<e.length?e.length-1e3:0)&&(t+="..."),console.log(t+e.substring(n))):console.log(t+e))};function Xy(e,t){var n;e&&y.isString(e)?(y.isObject(n=t)||(n={__err__:t}),t=Lo.get(),Qs("track",n,t,e)):I.error("Must provide valid name string for event tracking")}Uy.init=function(){var e,t;e=w.read(Py,!0),Ey=e?e.split(","):[],e=it,t=w.read(Fy,!0),Ty=null!==t?"true"==t:!y.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","prod-gov","rc"],e),I.addEventListener("log",jy),w.registry.addLocal(Fy),w.registry.addLocal(Py)},Uy.enableLogging=Gy,Uy.disableLogging=Dy,Uy.getActiveContexts=function(){return Ey},Uy.setActiveContexts=Hy,Uy.showLogHistory=Vy,Uy.getLoggedContexts=Yy;var Jy=function Jy(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):fe(i)?console[e](t,i):console[e](t)}if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";r||console.group("Pendo Install Validation"),v.apiKey||a("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var e=E(),e=(ii(e)&&a("warn",'The current visitor is not identified and will be treated as "anonymous". Is this expected? (You might have used "VISITOR-UNIQUE-ID" as the visitor ID)',"isAnonymousVisitor"),si(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),mi()),t=(e||a("warn","The current visitor is not associated with an account. Is this expected?","noVisitorInAccount"),"ACCOUNT-UNIQUE-ID"===e&&a("error","The current account ID matches the example account ID from the Pendo installation instructions.","exampleAccountId"),m.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),yp());if(y.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=y.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=y.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&y.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),y.each(y.keys(i),function(e){var t=i[e];y.isObject(t)&&!y.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):y.isArray(t)&&y.any(t,y.isObject)?a("warn",e+" contains object values. The objects will be ignored.",n+"Metadata",t):a("log",e+":",n+"Metadata",t)}),r||console.groupEnd()):"parentAccount"!==n&&a("warn","No "+n+" metadata found. Learn more about metadata here: http://help.pendo.io/resources/support-library/installation/metadata.html",n+"MetaData")}),r)return o;console.groupEnd()},qy=function(n){var e=[{nativeType:Object.prototype,displayName:"Object | Prototype "},{nativeType:Object,displayName:"Object ",propsToCheck:["create","getOwnPropertyNames"]},{nativeType:Number.prototype,displayName:"Number | Prototype"},{nativeType:String.prototype,displayName:"String | Prototype"},{nativeType:Function.prototype,displayName:"Function | Prototype"},{nativeType:Boolean.prototype,displayName:"Boolean | Prototype"},{nativeType:Array.prototype,displayName:"Array | Prototype"},{nativeType:Date.prototype,displayName:"Date | Prototype"},{nativeType:RegExp.prototype,displayName:"RegExp | Prototype"},{nativeType:JSON,displayName:"JSON ",propsToCheck:["parse","stringify"]},{nativeType:Math,displayName:"Math "},{nativeType:Ft.prototype,displayName:"Promise | Prototype"},{nativeType:window,displayName:"Window ",propsToCheck:["alert","asap","atob","btoa","cancelAnimationFrame","clearImmediate","clearInterval","clearTimeout","close","confirm","getComputedStyle","getSelection","open","postMessage","prompt","requestAnimationFrame","scroll","scrollBy","scrollTo","setImmediate","setInterval","setTimeout","stop","XMLHttpRequest","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent"]}],r=!1,i=(y.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);y.each(t,function(e){try{e&&n[e]&&"function"==typeof n[e]&&(n[e].toString().includes("[native code]")||i.push(e))}catch(t){}}),i.length&&(e.nonNativeImplementations=i,r=!0)}),{hasNonNativeMethods:r,implementations:[]});return n||console.group("Native javascript method check:"),r?(n||console.warn("Pendo has detected that your application may be changing native javascript functionality. We suggest consulting an engineer or your CSM to better understand if these changes will negatively impact Pendo's ability to function properly"),y.each(e,function(e){var t;e.nonNativeImplementations&&(t=e.displayName.trim(),n?i.implementations.push({nativeType:t,nonNativeImplementations:e.nonNativeImplementations}):console.warn(t+" | Contains the following non-native implementations:",e.nonNativeImplementations.sort().join(", ")))}),n?i:void console.groupEnd()):n?i:(console.log("Environment uses native javascript implementations"),console.groupEnd())},Qy=function(e){var t=[];if(y.isNumber(window.frames.length)&&y.isFinite(window.frames.length)&&R("iframe").length+R("frame").length===window.frames.length||t.push("Pendo has detected that window.frames.length has been modified"),window.Event&&window.Event.prototype||t.push("Pendo has detected that window.Event has been modified"),t.length){if(e)return t;console.group("Global variables:"),y.each(t,function(e){console.warn(e)}),console.groupEnd()}},eb=function(e){var t,n=window.location.href,i=[];try{(t=go())!==n&&i.push({type:"customizedUrl",msg:"URL has been customized. This will affect data collection, guide requests, and reload tests.",value:t})}catch(o){i.push({method:"error",msg:"Error getting Custom URL",value:o})}try{var r=Lo.externalizeURL();r!==t&&i.push({type:"sanitizedUrl",msg:"URL has been sanitized. This will affect sending data and guides requests.",value:r})}catch(o){i.push({method:"error",msg:"Error getting Externalized URL",value:o})}if(e)return i;console.group("URL Validation"),console.log("Browser URL:",n),y.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()},tb=function(e){if(0<Ly.length){var t=[].concat(Ly);if(e)return t;console.group("Agent Error History"),y.each(t,function(e,t){console.log("Error History ",t,e)}),console.groupEnd()}},nb=function(e){t=e;var t,n=y.map(ty,function(e){return e.validate&&!t&&e.validate(v,iy),e.name});if(e)return n;console.group("Active Plugins"),y.each(n,function(e){return console.log(e)}),console.groupEnd()},ib=function(e){var t={install:Jy(e),plugins:nb(e),globals:Qy(e),url:eb(e),errors:tb(e)};if(e)return t.methods=qy(e),t;m.validate(console)},rb={BuildingBlockGuides:F,BuildingBlockResourceCenter:N,BuildingBlockTemplates:jc,BuildingBlockTooltips:yl,BuildingBlockSvgs:Hc};function ob(e,t){this.state={duration:e,isStopped:!0,handle:null,cb:t,hasRun:!1,errors:[],options:{}},this.shouldJobRun=function(){return!(!this.state.hasRun&&this.state.options.skipFirstRun||this.state.isStopped)},this.doJob=function(e){if(e)try{this.state.cb(this)}catch(t){this.state.errors.push(t)}},this.afterJobRun=function(){this.state.hasRun=!0,this.state.handle=Dt(this.run,this.state.duration)},this.run=y.compose(y.bind(this.afterJobRun,this),y.bind(this.doJob,this),y.bind(this.shouldJobRun,this))}ob.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},ob.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var ab=oo.urlFor;function sb(e,t,n){var i={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};if(y.isObject(e)&&(t=e.action,n=e.data,e=e.attr),!i[e])throw new Error("Invalid URL attribute type: "+e);if(!y.contains(i[e],t))throw new Error("Invalid transform ("+t+") for attribute ("+e+")");this.attr=e,this.action=t,this.data=n}function db(e){return e instanceof Ci||e instanceof HTMLAnchorElement}sb.prototype.applyToURL=function(e){return{AllowOnlyKeys:function(e,t,n){y.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Ci(Ro(t,null,n,!1))},ExcludeKeys:function(e,t,n){y.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Ci(Ro(t,null,n,!0))},AddTo:function(e,t,n){y.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Ci(ab(t,n))},Clear:function(e,t){return e[t]="",e},Replace:function(e,t,n){return y.isFunction(n)&&(n=n(e[t],e)),"href"===t?new Ci(n):(e[t]=n,e)},ForceSecure:function(e,t){return"protocol"===t?e.protocol="https":e.href=e.href.replace(/^(.*:\/\/\/)/,"https://"),e}}[this.action](e,this.attr,this.data)},sb.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},sb.fromJSON=function(e){return e instanceof sb?e:new sb(e.attr,e.action,e.data)};ub=function(t,n,i,r){return[new sb("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new sb("href","ForceSecure")]},e={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:cb=function(){var e=fo(),t=Lo.isElectron()?ub(Lo.electronAppName(),Lo.electronResourcesPath(),Lo.electronUserDirectory(),Lo.electronUserHomeDirectory()):[];return fb([].concat(t),e)}},lb=new ob(500,function(e){!gy()||Bd(document)||Dd()}),pb=function(e){if("string"==typeof e)return new Ci(e);if(db(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},hb=function(e){return e||window.location},fb=function(e,t){return y.reduce(e,function(e,t){return t.applyToURL(e)},t)};var ub,cb,lb,pb,hb,fb,gb,lr={state:e,actions:{init:function(e,t){e.commit("clearTransforms"),e.commit("clearInternalTransforms"),e.commit("changeUrlSource"),t.transforms&&e.dispatch("addTransforms",t.transforms),t.setUrl&&e.commit("changeUrlSource",t.setUrl)},addTransforms:function(t,e){y.each(e,function(e){t.commit("addTransform",sb.fromJSON(e))})},addInternalTransforms:function(t,e){y.each(e,function(e){t.commit("addInternalTransform",sb.fromJSON(e))})},removeInternalTransforms:function(t,e){y.each(e,function(e){t.commit("removeInternalTransform",sb.fromJSON(e))})},startPolling:function(e){lb.start()},stopPolling:function(e){e.state.currentSrcFn===cb&&lb.stop()}},mutations:{addTransform:function(e,t){e.transforms.push(t)},addInternalTransform:function(e,t){e.internalTransforms.push(t)},removeInternalTransform:function(e,t){t=y.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms:function(e){e.transforms=[]},clearInternalTransforms:function(e){e.internalTransforms=[]},changeUrlSource:function(e,t){if(t){if("string"==typeof t)var n=new Ci(t),n=y.partial(y.identity,n);else if(db(t))n=y.partial(y.identity,t);else{if("function"!=typeof t)throw new Error("URL Source must be either a Function that returns a URL or String that is a valid URL. Or, it may be a static URL or String.");n=t}e.currentSrcFn=n,lb.start(!gy())}else e.currentSrcFn=cb,lb.stop()}},getters:{url:gb=function(e){try{var t=function(e){return n=e},n=y.reduce([e.currentSrcFn,pb,t,y.partial(fb,e.transforms),pb,t,y.partial(fb,e.internalTransforms),pb],function(e,t){return t(e)},null)}catch(i){I.critical(i),n=hb(n)}return n},href:function(e){return gb(e).href}}};function mb(e){var t;if("function"==typeof mb[e])return t=y.toArray(arguments).slice(1),mb[e].apply(mb,t)}y.extend(mb,{getHref:function(){return A.getters["location/href"]()},clearTransforms:function(){A.commit("location/clearTransforms"),Dd()},addTransforms:function(e){A.dispatch("location/addTransforms",e),Dd()},setUrl:function(e){A.commit("location/changeUrlSource",e)},useBrowserUrl:function(){A.commit("location/changeUrlSource"),Dd()}});function vb(){return m.get("guideSeenTimeoutLength")||1e4}yb=[];var yb,bb={name:"StepTimeoutMonitor",initialize:function(){this._beforeGuideShow=y.bind(bb.beforeGuideShow,bb),this._stop=y.bind(bb.stop,bb),S.beforeGuideShow.on(this._beforeGuideShow),S.guideSeen.on(this._stop),S.guideNotSeen.on(this._stop)},teardown:function(){bb.stop(),S.beforeGuideShow.off(this._beforeGuideShow),S.guideSeen.off(this._stop),S.guideNotSeen.off(this._stop)},beforeGuideShow:function(e){var t=e.data[0],e=e.data[1],n=t.guide;m.get("enableGuideTimeout")&&(e=-1<y.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==y.indexOf(n,t)||e)&&bb.start(t))},start:function(e){var d,t,n=yb[0];n&&n===e.id||(n&&n!==e.id&&(n=yb[1],y.isFunction(n))&&n(),e.shouldStartTimer()&&(d=vb(),n=y.partial(function(e,t){var n,i,r,o,a,s=ku(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(Vm())?Am(n)?"other":"element":"page",i=t,r=e,o=E(),a=a,s=s.language,i=$m({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:d}),zm(i),S.guideTimeout.trigger(i),I.info("Guide "+t+" timed out showing Step "+e),n.timeout()),bb.stop()},e.id,e.guide.id),t=Dt(n,d),yb=[e.id,n,t]))},stop:function(){var e=yb[2];e&&clearTimeout(e),yb=[]},getGuideSeenTimeoutLength:vb};function Ib(){console.warn("This functionality is not supported by your subscription.")}function u(e){return ea?e:Ib}var wb="is going away",Cb="is gone",Sb=y.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return I.info(e),e});function Ab(e,t,n){return function(){return Sb("pendo."+t,n),(e||y.noop).apply(null,arguments)}}function Eb(e){return e&&1===e.length?e[0]:y.any(e,Nt)?C.all(e).then(function(e){return y.any(e)}):void 0}function Tb(){var e,t=this,n=(this.elements=[],this.attributes=this.attributes||{},this.attributes.device&&this.attributes.device.type?"all"==this.attributes.device.type?this.attributes.device={desktop:!0,mobile:!0}:(e=this.attributes.device.type,this.attributes.device={mobile:!1,desktop:!1},this.attributes.device[e]=!0):this.attributes.device=this.attributes.device||{},y.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),wc(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&y.contains(this.attributes.activation.event,e)&&this.canEventActivatedGuideBeShown())},this.isContinuation=function(e){return!1},this.isGuideWidget=function(){return this.attributes&&"launcher"===this.attributes.type},this.isOnboarding=function(){return this.attributes&&!!this.attributes.isOnboarding},this.isWhatsNew=function(){var e=y.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return y.get(this,"attributes.isAnnouncement")},this.isHelpGuide=function(){return!this.isOnboarding()&&!this.isWhatsNew()&&!this.isGuideWidget()},this.nextStep=function(e){return null},this.hasLaunchMethod=function(e){return this.launchMethod&&0<=this.launchMethod.indexOf(e)},this.shouldAutoDisplay=function(){return!this.outsideTimebox()&&this.hasLaunchMethod("auto")&&y.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return Eb(y.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return y.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return y.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!Bu()){var e=Wu(),t=this.attributes&&this.attributes.device||{};if(!e&&!1===t.desktop)return!1;if(e&&!0!==t.mobile)return!1}return!0},this.canShow=function(){return this.canShowOnDevice()&&y.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?y.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&y.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return Eb(y.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){y.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return y.all(this.steps,function(e){return e.hasBeenSeen()})},this.canBadgeBeShown=function(){var e=this.attributes.badge;return!(e&&e.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.placeBadge=function(){var e;this.canShowOnDevice()&&this.hasLaunchMethod("badge")&&this.canBadgeBeShown()&&!this.outsideTimebox()?(e=y.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=y.first(this.steps))&&y.isFunction(e.canShowOnPage)&&e.canShowOnPage(Vm())&&ff(this)):vf(this)},this.findStepById=function(t){return y.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!y.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return Et(this.name,t,!0)?i="name":(e=!(n=[]),(e=0<(n=this.attributes&&this.attributes.launcher&&this.attributes.launcher.keywords?this.attributes.launcher.keywords:n).length?y.find(n,function(e){return Et(e.text,t,!0)}):e)?i="tag":(n=y.map(this.steps,function(e){return e.searchFor(t)}),0<y.compact(n).length&&(i="content"))),!!i&&{guide:this,field:i}},this.shouldBeAddedToResourceCenter=function(){var e,t=this;return!(!t.steps||!t.steps.length||t.control||!t.eligibleInFrame&&(!t.steps[0].content&&!y.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(Vm())||!t.canShowOnDevice()||!Am(e)||t.outsideTimebox()))},this.shouldBeAddedToLauncher=function(){var e;return!(!this.steps||!this.steps.length||(e=this.steps[0],!this.hasLaunchMethod("launcher")&&!this.isWhatsNew())||!e.canShowOnPage(Vm())||!this.canShowOnDevice()||!Am(e)||this.outsideTimebox())},"PENDO_HELPER_STEP");return this.getPositionOfStep=function(e){var t=y.reject(this.steps,function(e){return Et(e.content,n)});return y.indexOf(t,e)+1},this.getTotalSteps=function(){return y.reject(this.steps,function(e){return Et(e.content,n)}).length},this.getSeenSteps=function(){return y.size(y.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return y.all(this.steps,function(e){return y.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&y.any(this.steps,function(e){return y.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return C.all(y.map(this.steps,function(e){if(y.isFunction(e.fetchContent))return e.fetchContent()}))},this.canEventActivatedGuideBeShown=function(){return!(this.attributes.dom&&this.attributes.dom.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.isGuideSnoozed=function(){return y.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return y.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&y.any(this.steps,function(e){return!(t="dismissed"===e.seenState?!0:t)&&"snoozed"===e.seenState&&e.snoozeEndTime&&(new Date).getTime()>e.snoozeEndTime})},this.shouldRepeatGuide=function(){var t;return!(!this.redisplay||this.outsideTimebox()||this.isGuideSnoozed()||this.hasReachedMaxDismissals()||(t=0,y.forEach(this.steps,function(e){t=Math.max(t,e.lastSeenAt||0)}),!t))&&b()-t>=this.redisplay.interval},this.isExpired=function(){return!!this.expiresAfter&&b()>this.expiresAfter},this.isBeforeStartTime=function(){return!!t.showsAfter&&b()<t.showsAfter},this.outsideTimebox=function(){return t.isExpired()||t.isBeforeStartTime()},this.calculateDismissCountFromSteps=function(){var t=0;return y.forEach(this.steps,function(e){e.dismissCount&&(t+=e.dismissCount)}),t},this.hasReachedMaxDismissals=function(){return this.redisplay&&0!==this.redisplay.maxDismissals&&this.calculateDismissCountFromSteps()>=this.redisplay.maxDismissals},this}function _b(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){y.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var xb=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function Rb(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(y.each(this.steps,function(e){e.after("render",function(){y.each(e.elements,function(e){R(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=y.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=y.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=y.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return y.find(this.sections,function(e){return y.contains(e,t)})},this.getSubSection=function(e,t){t=y.indexOf(e,t);return e.slice(t+1)},this.isContinuation=function(e){var t=this.isTopLevel||this.isModule,n=this.hasResourceCenterContent;return(!t||n)&&!!this.nextStep(e)},this.nextStep=function(t){var e=null;if(this.isGuideSnoozed())return null;t=t||{};for(var n,i,r=0;r<this.steps.length;r++)if(this.steps[r].id===t.guideStepId){if("dismissed"===t.state)break;if("active"===t.state||"snoozed"===t.state){e=this.steps[r];break}if("advanced"===t.state&&t.destinationStepId){e=y.find(this.steps,function(e){return e.id===t.destinationStepId});break}if(r+1<this.steps.length){e=this.steps[r+1];break}}return e?(n=(new Date).getTime(),(i=t.time)&&432e5<n-i&&!xb(this)?(o||(I.info("Multi-step continuation has expired",{contexts:["guides","info"]}),o=!0),null):e):null},this.shouldAutoDisplay=function(){return this.hasLaunchMethod("auto")&&(this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||y.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=y.first(this.steps),n=this.nextStep(_h())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return y.first(this.steps).show(e)},this.show=function(e){var t=_h(),n=y.first(this.steps),t=this.nextStep(t)||n;return t.show("continue"===e&&t===n&&"auto"===n.seenReason?"auto":e)},this.isComplete=function(){var e=y.last(this.steps);return!!e&&y.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return y.findWhere(e,{seenState:"active"})}),this}function kb(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,y.toArray(arguments).slice(1))}catch(i){var t,n="ERROR in guide "+r+' (ID="'+a.id+'")';throw o.push(b()),5<=o.length&&(t=0<(t=y.last(o)-y.first(o))?(o.length-1)/(t/6e4):Infinity,kb.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,xu.addGuide(a),S.trigger("renderFail",a)),o.shift()),I.critical(n,{error:i}),i}}}return y.each(["canShow","placeBadge","show"],function(e){a[e]=y.wrap(a[e],t(e))}),a}function Ob(){return y.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=y.wrap(this.shouldBeAddedToLauncher,function(e){return A.getters["frames/hasFrames"]()?!(!A.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!A.getters["frames/isGuideInDifferentFrame"]()(this)&&A.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=y.wrap(this.shouldBeAddedToResourceCenter,function(e){return A.getters["frames/hasFrames"]()?!(!A.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!A.getters["frames/isGuideInDifferentFrame"]()(this)&&A.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function Nb(e){var t=this;return"whatsnew"===t.type||y.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=y.wrap(t.isShown,function(e){return e.apply(this,arguments)||A.getters["frames/isShownInAnotherFrame"]()(t)})),t}function Mb(o){var a,t,i,s,r,n,d,u=this;return u.pollIds&&u.pollIds.length&&(a="_pendo-poll-selected_",t=y.indexBy(o.polls,"id"),i=y.map(u.pollIds,function(e){return t[e]}),r=function(e,t){if(e&&t!==undefined)return e.numericResponses?parseInt(t,10):t},n=function(){var e=o.id,t=u.id,n=b();Gm(e,t,E(),u.seenReason,o.language),rm(e,t,"advanced",n),Eh({guideId:e,guideStepId:t,time:n,state:"advanced"})},d=function(){var e=R("._pendo-poll_"),t=R("._pendo-poll-message_");t.length?(e.addClass("_pendo-poll-submitted_"),t.css("margin-top:-"+t.height()/2+"px"),n()):u.advance()},u.after("render",function(){var n=R("._pendo-poll_")[0],e=R("._pendo-poll-submit_",n)[0];e?u.attachEvent(e,"click",function(e){var t=R("._pendo-poll-question_",n),t=y.map(t,function(e,t){e=R("textarea,input:text,select,input:radio:checked",e);if(e&&e.length&&e[0].value)return{pollId:(t=i[t]).id,value:r(t,e[0].value)}});u.response(y.compact(t)),d()}):u.attachEvent(n,"click",function(e){var t,e=R(io(e)).closest("._pendo-poll-question_ :button,._pendo-poll-question_ :radio");e.length&&(t=i[0],e=r(t,e.attr("data-pendo-poll-value")||e.attr("value")),u.response([{pollId:t.id,value:e}]),d())})}),u.after("render",function(){var i=R("._pendo-poll_ ._pendo-poll-npsrating_")[0],r=R("._pendo-poll_ ._pendo-poll-submit_"),o="_pendo-poll-npsrating-selected_";i&&(r.css({display:"none"}),u.attachEvent(i,"click",function(e){var t=R(":radio:checked",i)[0],n=R("._pendo-poll_");R("label",i).removeClass(a),n.removeClass(o),t&&(R('label[for="'+t.id+'"]').addClass(a),n.addClass(o),r.css({display:""})),y.isFunction(u.resize)&&u.resize()}))}),u.after("show",function(){s=(new Date).getTime()}),u.response=function(e,r){e&&e.length&&(Ev(),y.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return y.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=$m("pollResponse",u.guideId,u.id,E(),undefined,o.language);y.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&y.extend(i.props,{poll_type:n.attributes.type}),bv.push(i)}),bv.flush())}),u}kb.MAX_ERRORS_PER_MINUTE=30;var Lb={show:function(t,n){if(Bu()&&y.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return Fb(t,n);if(!A.getters["frames/hasFrames"]()||A.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=N.getResourceCenter();if(e)return Fb(e.steps[0],t)}}(t,n);if(Nt(e))return e.then(function(){return Fb(t,n)}).then(function(e){return!!e||Pb(t,n)});e=Fb(t,n);if(Nt(e))return e.then(function(e){return!!e||Pb(t,n)});if(e)return!0}return Pb(t,n)},showLocal:Fb};function Fb(e,t){return xc.hasContent(e)&&vc.valid(e)?(e._show(t),e.isShown()):!(xc.hasContent(e)&&vc.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(Vm()))&&(e.lock(),xc.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&vc.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function Pb(t,e){var n=t.getGuide();return!(!A.getters["frames/hasFrames"]()||!A.getters["frames/isGuideInDifferentFrame"]()(n))&&(t.lock(),A.dispatch("frames/showGuideStep",{guideId:t.guideId,stepId:t.id,reason:e}).then(function(e){return t.unlock(),e.isShown},function(){return t.unlock(),!1}).then(function(e){return e&&(clearInterval(t.timeoutTimer),delete t.timeoutTimer),e}))}function Gb(d){var e=!1,t=!1;return this.guide=d,this.elements=[],this.handlers=[],this.attributes=this.attributes||{},(this.domUrl||this.domJson)&&(this.eventRouter=new Kv),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=y.indexOf(t,this),i=yp();try{var r=this.attributes.variables||{},o={step:{id:this.id,isFirst:0===n,isLast:n===t.length-1,index:n,number:n+1},guide:{id:e.id,name:e.name,publishedAt:e.publishedAt,showsAfter:e.showsAfter,percentComplete:t.length?Math.round((n+1)/t.length*100):0,stepCount:t.length},metadata:It(i),template:r};return this.template||(this.template=y.template(this.content||"")),Cc(this.template(o).replace(/#_pendo_g_undefined/g,"#_pendo_g_"+this.id).replace(/pendo-src="([^"]+)"/g,function(e,t){return/<%=[^>]+>/.test(t)?e:'src="'+t+'"'}))}catch(a){return this.content}},this.isLocked=function(){return e},this.lock=function(){e=!0},this.unlock=function(){e=!1},this.isTimedOut=function(){return t},this.timeout=function(){t=!0},this.isRendered=function(){return this.elements&&0<this.elements.length},this.isShown=function(){return this.isRendered()||this.isLocked()},this.canShow=function(){return!y.get(this,"guide.attributes.isAnnouncement")&&!!d.canShowOnDevice()&&!this.isShown()&&!y.get(this,"stepIneligibleForApp")&&this.canShowOnPage(Vm())&&Am(this)},this.canShowOnPage=function(e){e=Hm(this.regexUrlRule,e);return af()&&S.stepEligibility.trigger({stepId:this.id,guideId:this.guideId,eligible:e,reason:"page_match"}),e},this.shouldAutoDisplay=function(){return this.shouldRepeat()||!this.hasBeenControlled()&&!this.isSnoozed()&&!y.contains(["dismissed","advanced"],this.seenState)},this.autoDisplay=function(){var e;if(this.shouldAutoDisplay())return e=this.shouldRepeat()?"repeatGuide":"auto",this.show(e)},this._preRenderHealthCheck=function(){var e,t;return!(!(v.designer||Bu()||xf())&&(e=Vm(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!Hm(this.regexUrlRule,e)?(xu.addGuide(d),t.error=new Error('attempted display on page "'+e+'"'),I.critical("pendo.io page rule exception",t),1):A.getters["healthCheck/isMissingPageRule"]()(this)?(xu.addGuide(d),t.error=new Error('missing regexUrlRule"'),I.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(xu.addGuide(d),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),I.critical("pendo.io page rule exception",t),1)))},this.render=function(){var e=this;if(this._preRenderHealthCheck()){if(e.domJson)return d.skipResourceCenterHomeView&&d.moduleIdToReplaceHomeViewWith&&d.hasEligibleNativeIntegrationModule?(t=y.find(Au(),function(e){return e.id===d.moduleIdToReplaceHomeViewWith}),n=y.get(t,"attributes.resourceCenter.integrationProvider"),N.renderNativeIntegration(n,t)):d.continueToNativeModule?N.handleNativeIntegrationContinuation(d):(y.get(d,"attributes.resourceCenter")&&Yh(N.getResourceCenter(),Hh),d.isModule?F.renderResourceCenterModule(d,!1):(n=F.renderGuideFromJSON(e.domJson,e),y.get(d,"attributes.resourceCenter")&&(t=d.activeModule?d.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),N.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=v.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+d.id+"_",r=R(document.createElement("div")).attr("id",xm(e)).addClass(Jg+" "+r),o=R(document.createElement("div")).addClass("_pendo-guide-content_").html(e.getContent()),a=R(document.createElement("div")).addClass("_pendo-guide-container_"),s=R(document.createElement("div")).addClass("_pendo-backdrop_");r.width(t),r.height(n),a.css({left:i,top:i}),e.isEditable&&o.attr("contenteditable","true"),o.appendTo(a),a.appendTo(r),d&&y.isFunction(d.isOnboarding)&&d.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){I.info("guide step teardown",{contexts:["guide","render"]}),y.each(this.handlers,function(e){vu(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,y.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(y.each(this.hiddenElements,function(e){try{e&&"function"==typeof e.removeAttribute&&e.removeAttribute("aria-hidden")}catch(t){I.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),dp(this.id)},this.show=function(e){var t;if(!y.contains(["auto","continue"],e)||!A.getters["healthCheck/isRedisplay"]()(this))return(t=Lb.show(this,e))&&t["catch"]&&t["catch"](y.noop),t;A.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r,o=this;o.guideElement&&!v.designer&&(t=(e=y.get(d,"attributes.resourceCenter"))&&N.isFullyCustom(d),n=d.activeModule?d.activeModule.activeStep().domJson.props.id:o.containerId,i=o.guideElement.find("#"+n),r=d.activeModule&&"AnnouncementsModule"===y.get(d.activeModule,"attributes.resourceCenter.moduleId"),S.beforeUpdate.trigger(o),t||r||(F.recalculateGuideWidth(n,o.guideElement),F.adjustGuideContentWidth(n,o.guideElement)),e?(N.adjustResourceCenterWidth(i),r&&d.activeModule.guidesInModule?y.forEach(d.activeModule.guidesInModule,function(e){var t;!y.isUndefined(e.steps[0].attributes.imgCount)&&0!==y.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=R(i).find("#pendo-g-"+t)[0]?t:e.id,F.adjustGuideContentWidth("pendo-g-"+t,o.guideElement),F.flexAllThings("pendo-g-"+t,o))}):F.flexAllThings("pendo-resource-center-container")):F.flexAllThings(n,o),t||F.recalculateGuideHeight(n,o.guideElement),S.updated.trigger(o))},this._show=function(e){S.beforeGuideShow.trigger(this,e),this.canShow()&&(!Bu()&&d.control?this.hasBeenControlled()||this.onControlGuide("control"):S.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return d.canShowOnDevice()&&!d.attributes.isAnnouncement&&!Cm(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],y.forEach(e.pollIds,function(t){var e=y.find(n.polls,function(e){return e.id===t});e&&e.attributes&&e.attributes.type&&i.push(e.attributes.type)}),i},this.onControlGuide=function(e){var t;Bu()||(this.seenReason=e,em(b()),t=this.getStepPollTypes(d,this),this.hasBeenControlled())||(Lm(this.guideId,this.id,E(),e,d.language,t),y.each(d.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(r,e){void 0===e&&(e=!0);var t,n,i=this;i.overrideElement&&(R.addClass(i.overrideElement,"triggered"),i.overrideElement.checkAriaExpanded)&&i.overrideElement.checkAriaExpanded(),Bu()||(i.seenReason=r,i.seenState="active",em(b()),t={last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(d,i))&&(t.step_poll_types=n),e&&Fm(i.guideId,i.id,E(),r,d.language,t),A.dispatch("guideState/updateLastGuideStepSeen",{guideId:d.id,guideStepId:i.id,time:Qg,state:i.seenState,seenReason:r,visitorId:E()}),y.each(d.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=d.id,e=e.id,n=E(),i=d.language,t=$m({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),zm(t,null,!0),S.guideSnoozeCancelled.trigger(t))}),Lc.runCustomScripts(i,d)),A.dispatch("frames/guideStepShownInFrame",{guideId:d.id,stepId:i.id,isShown:i.isShown()}),i.guideElement&&i.guideElement[0]&&i.attachEvent(i.guideElement[0],"focusin",function(e){"TEXTAREA"!==e.target.tagName&&"INPUT"!==e.target.tagName||(v.ignoreResize=!0,Dt(function(){v.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),S.beforeUnmount.trigger(t),t.teardown(),y.each(t.elements,function(e){Aa(e)}),S.unmounted.trigger(t),t.attributes&&e&&e.stayHidden&&(t.attributes.stayHidden=e.stayHidden),t.elements.length=0,t.element=null,t.guideElement=null,t.overrideElement&&(R.removeClass(t.overrideElement,"triggered"),t.overrideElement.checkAriaExpanded)&&t.overrideElement.checkAriaExpanded(),A.dispatch("frames/guideStepHiddenInFrame",{guideId:d.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||bm(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||mm(this)},this.isPoweredByEnabled=function(){return!0!==this.hideCredits},this.isSnoozed=function(){var e="snoozed"===this.seenState,t=!this.snoozeEndTime||(new Date).getTime()>this.snoozeEndTime;return e&&!t},this.shouldRepeat=function(){return!!this.lastSeenAt&&d.redisplay&&!d.outsideTimebox()&&!this.isSnoozed()&&b()-this.lastSeenAt>=d.redisplay.interval&&!d.hasReachedMaxDismissals()},this.hasBeenControlled=function(){return d.isControlGroup()&&"notSeen"===this.seenState},this.attachEvent=function(e,t,n){var i={element:e,type:t,fn:n};l(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&Et(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&yl.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&cl(this)},this.getType=function(){return this.domJson?y.get(this,"attributes.calculatedType"):this.type},this}function Db(){return this.after("render",function(){var e,t;M&&M.contentWindow&&M.style&&(e=y.first(R('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=f(e))&&(t={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===e.top?(M.style.top="auto",M.style.bottom="0px",M.contentWindow.postMessage(t,location.origin)):"0px"!==e.bottom&&M.style.top||(M.style.top="0px",M.style.bottom="auto",t.payload.isPreviewBarTop=!0,M.contentWindow.postMessage(t,location.origin)))}),this}Gb.isGuideStep=function(e){return!!e&&y.isFunction(e.render)};var i={state:{errorCount:0,errors:{}},actions:{write:function(e,t){var n=t.error;if(n&&!t.logged){var i=e.getters.hasLogged()(t);if(e.dispatch("update",t),!i){try{t.logged=!0}catch(r){}e="[".concat(t,"]");t.level===zt.Critical?(i=window.pendo_options||{},zy(e),!1!==v.logStackTraces&&!1!==i.logStackTraces&&n.stack?ra("".concat(e,"\n").concat(n.stack)):ia(e)):t.level===zt.Error?zy(e):t.level===zt.Warn&&function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];Wy("warn")&&console.warn.apply(console,e)}(e)}}},update:function(e,t){t&&(e.getters.hasLogged()(t)||e.commit("addError",t),e.commit("incrementError",t))}},mutations:{addError:function(e,t){var n=t.message,i=t.level,r=t.hashCode();e.errors[r]={count:0,stack:t.error.stack,message:n,level:i,hash:r}},incrementError:function(e,t){e.errors[t.hashCode()].count++,e.errorCount++}},getters:{hasLogged:function(t){return function(e){return!!t.errors[e.hashCode()]}}}},Bb=w.getSession(),Wb="pendo_cd";function $b(){this.name="CloneDetection"}$b.prototype.initialize=function(){if(y.isFunction(window.BroadcastChannel))return w.registry.addSession(Wb),this.tabId=Gn.getTabId(),this.id=At(16),this.channel=new BroadcastChannel("pendo-clone-detection-".concat(v.apiKey)),this.channel.addEventListener("message",y.bind(this.onmessage,this)),this.detectClonedSession(this.id),y.bind(this.teardown,this)},$b.prototype.teardown=function(){this.stopCloneDetectionTimer(),this.channel.removeEventListener("message",this.onmessage),this.channel.close(),this.channel=null},$b.prototype.onmessage=function(e){var t=y.get(e,"data.type"),n=y.get(e,"data.tabId"),i=y.get(e,"data.id");if(n===this.tabId)switch(t){case"pendo-clone-test":i!==this.id&&this.isClonedSession(i)&&this.sendMessage("pendo-change-tab-id",{tabId:n,id:i});break;case"pendo-change-tab-id":i===this.id&&this.clearClonedStorage()}},$b.prototype.detectClonedSession=function(e){var t=Bb.getItem(Wb)||"";-1===t.indexOf(e)&&(t+="-"+e),Bb.setItem(Wb,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()},$b.prototype.isClonedSession=function(e){return this.startCloneDetectionTimer(),-1===(Bb.getItem(Wb)||"").indexOf(e)},$b.prototype.clearCloneDetectionValue=function(){Bb.removeItem(Wb),this.cloneDetectionTimer=null},$b.prototype.startCloneDetectionTimer=function(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Dt(this.clearCloneDetectionValue.bind(this),1e4)},$b.prototype.stopCloneDetectionTimer=function(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)},$b.prototype.clearClonedStorage=function(){Bb.clearPendo(),Gn.setParentTabId(this.tabId),this.tabId=Gn.newTabId(),S.trigger("tabIdChanged:self"),A.dispatch("frames/setTabId",this.tabId)},$b.prototype.sendMessage=function(e,t){this.channel.postMessage(Gt({type:e},t))};var Ub=new $b;function jb(e){A.dispatch("frames/setReady",{isReady:!0})}var zb=["unknown","hidden","visible"];function Zb(e){return"visible"===e.visibility||"unknown"===e.visibility}Vb={};var Vb,s={actions:{init:function(e){var t,n,i=e.state;i.initialized||(w.registry.addSession(Rn),w.registry.addSession(kn),t=Gn.addTracerIds({}),n=Ge(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),S.ready.on(jb),S.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&L.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),Ub.initialize(),e.commit("setInitialized",!0))},changeGuideList:function(e,t){e=e.state,t=Hb(t);L.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:v.autoOrdering||[]})},receiveGuideList:function(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),Kb(e.state)},join:function(e){var t,n,i,r;e.state.disabled||(Wh(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:Hb(Mu())}),(r=[].concat(m.get("leaderKey"))).length||t.agentInstallType!==Fe||(r=[v.apiKey]),e.dispatch("receiveFrame",{frame:y.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:b(),isTop:n,visibility:n?"visible":"unknown",apiKey:v.apiKey,leaderKey:r},i)}))},receiveFrame:function(e,t){var n,i=e.state;if(v.designerv2.launched&&(n=Object.assign({},eg.hostConfig,{selectionOnly:!0}),L.postMessage({action:"frames/addSelectionModeToFrames",options:n})),!i.frames[t.frame.id]||!i.frames[t.frame.id].id){if(e.commit("addFrame",t.frame),e.commit("setGuideList",{frameId:t.frame.id,guides:y.toArray(y.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=y.filter(i.frames,function(e){return e.isTop});r.length;){var a=r.shift(),s=y.filter(o,function(e){return e.apiKey===a});if(s.length){o=s;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[If]&&e.dispatch("receiveStartPreview",t),L.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave:function(t){var e=t.state;L.postMessage({action:"frames/removeFrame",frameId:e.frameId}),y.each(e.frames,function(e){t.commit("removeFrame",e.id)}),L.close()},removeFrame:function(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),y.each(Vb,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete Vb[t])}),e.dispatch("electLeader"))},waitThenElectLeader:y.debounce(function(e){e.dispatch("electLeader")},50),electLeader:function(e){var t=e.state,n=t.frames,i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){var r=i.shift(),o=y.filter(t.frames,function(e){return e.apiKey===r});if(o.length){n=o;break}}var a=y.find(n,function(e){return e.isTop});a?e.dispatch("followLeader",{leaderId:a.id}):(a=y.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),Kb(e.state),e.getters.isLeader()&&S.childFrameJoined.trigger()},followLeader:function(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&S.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep:function(t,n){var i=y.filter(t.state.frames,function(e){return e.id!==t.state.frameId&&"hidden"!==e.visibility&&e.guides&&e.guides[n.guideId]});return function r(){var e=i.shift();return e?t.dispatch("requestShowGuideStepInFrame",y.extend({frameId:e.id},n)).then(function(e){return e.error?C.reject(e.error):e.isShown?e:r()}):C.resolve({isShown:!1})}()},requestShowGuideStepInFrame:function(e,t){var n=t.frameId+"/"+At(32),i=C.defer();return Vb[n]=i,L.postMessage(y.extend({action:"frames/showGuideStepInFrame",requestId:n},t)),i.promise},showGuideStepInFrame:function(t,n){var e;function i(e){t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:e})}t.state.frameId===n.frameId&&((e=(e=ku(n.guideId))&&e.findStepById(n.stepId))?Nt(e=Lb.showLocal(e,n.reason))?e.then(i)["catch"](y.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame:function(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),L.postMessage(y.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame:function(e,t){var n=Vb[t.requestId];n&&(n.resolve(t),delete Vb[t.requestId]),e.getters.isShownInFrame()(t.frameId,{id:t.stepId})!==t.isShown&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:t.isShown})},hideGuides:function(e,t){t=y.isArray(t)?t:[],L.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides:function(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?y.each(y.compact(y.map(t.guideIds,ku)),function(e){e.hide()}):am(),e.commit("hideGuides"))},guideStepHiddenInFrame:function(e,t){var n=e.getters.isShownInFrame()(e.state.frameId,{id:t.stepId});e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:!1}),L.postMessage(y.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame:function(e,t){e.state.frameId!==t.frameId&&e.getters.isShownInFrame()(t.frameId,{id:t.stepId})&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:!1})},fixDoubleDisplay:function(n,i){y.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&L.postMessage(y.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame:function(e,t){e.state.frameId===t.frameId&&(t=(e=ku(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen:function(e,t){L.postMessage({action:"frames/receiveLastGuideStepSeen",frameId:e.state.frameId,lastGuideStepSeen:t}),e.commit("updateLastGuideStepSeen",t),e.commit("healthCheck/updateStepState",{id:t.guideStepId,seenState:t.state},{root:!0})},receiveLastGuideStepSeen:function(e,t){var n;t.frameId!==e.state.frameId&&(n=e.state.frames[t.frameId],(n=y.get(n,"agentInstallType"))&&n!==e.state.agentInstallType&&delete t.lastGuideStepSeen.visitorId,e.dispatch("guideState/updateLastGuideStepSeen",t.lastGuideStepSeen,{root:!0}),e.dispatch("guideState/write",null,{root:!0}),t=(t=ku((n=t.lastGuideStepSeen).guideId))&&t.findStepById(n.guideStepId))&&(t.seenState=n.state,t.seenReason=n.seenReason,t.lastSeenAt=n.time,n.dismissCount&&(t.dismissCount=n.dismissCount),n.snoozeEndTime&&(t.snoozeEndTime=n.snoozeEndTime),e.commit("updateLastGuideStepSeen",n),e.commit("healthCheck/updateStepState",t,{root:!0}))},changeThrottlingState:function(e,t){L.postMessage(y.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState:function(e,t){t.frameId!==e.state.frameId&&y.each(Dm,function(e){t[e]&&Wm(t[e],e)})},startPreview:function(e){L.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview:function(e){L.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview:function(e,t){L.postMessage(y.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview:function(e,t){e.dispatch("preview/start",t[If],{root:!0}),Sf(window),Wv()},receiveRestartPreview:function(e){var t=Tf(k,_h());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview:function(e,t){Ff({preventWindowClose:!!t.preventWindowClose})},checkFrameVisibility:function(e,t){if(!e.getters.isTop()&&!e.state.disableFrameVisibilityCheck)try{var n="unknown",i=(t=null==t?window:t).frameElement;i?(n=ja(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility:function(e,t){var n;!y.find(zb,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),L.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility:function(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames:function(e,t){t=t.options;eg.launchInAppDesigner(t)},syncOptions:function(e,t){t.options&&L.postMessage({action:"frames/receiveOptions",frameId:e.state.frameId,options:t.options})},receiveOptions:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&t.options&&hp(t.options)},syncIdentity:function(e,t){var n;(t.visitorId||t.accountId)&&(n=t.visitorId,t=t.accountId,L.postMessage({action:"frames/receiveIdentity",frameId:e.state.frameId,visitorId:n,accountId:t}))},receiveIdentity:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&(t.visitorId||t.accountId)&&pi(t.visitorId,t.accountId)},setReady:function(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen:function(e,t){t.frameId!==e.state.frameId&&S.guideSeen.trigger(t.guideSeen)},checkGuideEligibility:function(e,t){var n=t.guideId,i=t.stepId,r=t.currentStepIndex,o=t.sourceFrame,t=t.promiseId,n=ku(n),i=n&&n.findStepById(i),a={};return n&&i?(0===r&&(r=Zu(n))&&((r=y.first(Xr(r)))?ja(r)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),y.isFunction(i.canShowOnPage)&&!i.canShowOnPage(Vm())&&(a.PAGE="mismatch"),i.elementPathRule&&((r=y.first(Xr(i.elementPathRule)))?ja(r)?i.elementContainsRulesList&&!Tm(r,i.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),i.triggerElementPathRule&&((r=y.first(Xr(i.triggerElementPathRule)))?ja(r)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),y.get(n,"attributes.embedConfig")&&(i=y.get(n,"attributes.embedConfig.selector"),(r=y.first(Xr(i)))?ja(r)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",t&&o&&L.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:o,resolveId:t}),a},setTabId:function(e,t){e.commit("setTabId",t)}},mutations:{addFrame:function(e,t){var n=t.id;e.frames[n]=y.extend({},e.frames[n],t)},removeFrame:function(e,t){delete e.frames[t]},setGuideList:function(e,t){var n=t.frameId;e.frames[n]=y.extend({},e.frames[n],{guides:y.indexBy(Hb(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown:function(e,t){var n=t.frameId,n=e.frames[n]=y.extend({},e.frames[n]);n.shown=y.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized:function(e,t){e.initialized=t},setLeaderId:function(e,t){e.leaderId=t},setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setTopId:function(e,t){e.topId=t},setAgentInstallType:function(e,t){e.agentInstallType=t},setLeadershipMode:function(e,t){e.leadershipMode!==Fe&&(e.leadershipMode=t)},setFrameVisibility:function(e,t){var n=t.frameId;e.frames[n]=y.extend({},e.frames[n],{visibility:t.visibility})},setReady:function(e,t){e.isReady=t},disableFrameVisibilityCheck:function(e){e.disableFrameVisibilityCheck=!0},hideGuides:function(e){y.each(e.frames,function(n){y.each(n.shown,function(e,t){n.shown[t]=!1})})},setChannelType:function(e,t){e.channelType=t},setGuidesLoaded:function(e){e.guidesLoaded=!0},setConnectFailed:function(e){e.connectFailed=!0},updateLastGuideStepSeen:function(e,t){t&&y.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=y.findWhere(e.steps,{id:t.guideStepId}))&&(e.seenState=t.state,e.lastSeenAt=t.time,e.seenReason=t.seenReason,t.dismissCount&&(e.dismissCount=t.dismissCount),t.snoozeEndTime)&&(e.snoozeEndTime=t.snoozeEndTime)})}},getters:{allFrames:function(e){return e.frames},autoOrdering:function(e){return y.reduce(e.frames,function(e,t){return e[t.apiKey]=t.autoOrdering,e},{})},leaderExists:function(e){return!!e.leaderId},isLeader:function(e){return e.leaderId===e.frameId},leaderKey:function(e,t){if(t.leaderExists()){t=e.frames[e.leaderId];if(t)return t.apiKey}},isFollower:function(e){return!!e.leaderId&&e.leaderId!==e.frameId},isTop:function(e,t){t=t.window();return e.topId===e.frameId||t==t.top},frameVisibility:function(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame:function(n){return function(e){var t=n.frames&&n.frames[n.frameId];return!!(t&&t.guides||{})[e.id]}},isGuideInDifferentFrame:function(i){return function(n){return y.any(i.frames,function(e,t){return t!==i.frameId&&e.guides&&e.guides[n.id]})}},isReady:function(e){return e.isReady},isShownInAnotherFrame:function(i){return function(n){return y.any(i.frames,function(e,t){return t!==i.frameId&&e.shown&&e.shown[n.id]})}},isShownInFrame:function(n){return function(e,t){e=n.frames&&n.frames[e],e=e&&e.shown||{};return!(!e||!e[t.id])}},hasFrame:function(t){return function(e){return t.frames&&t.frames[e]}},hasFrames:function(e){return 1<y.size(e.frames)},shouldBeAddedToLauncher:function(i,e){return function(n){return e.canShowRCBadge()&&y.any(i.frames,function(e,t){return t!==i.frameId&&!!Zb(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter:function(i,e){return function(n){return e.canShowRCBadge()&&y.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===v.apiKey&&!!Zb(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel:function(e){return"BroadcastChannel"===e.channelType},channelType:function(e){return e.channelType},canShowRCBadge:function(e,t){var n,i;return t.leaderKey()!==v.apiKey?(n=y.filter(e.frames,function(e){return e.apiKey===v.apiKey}),(i=y.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=y.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):y.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference:function(e){e=y.filter(e.frames,function(e){return e.leaderKey&&e.leaderKey.length});return 1===y.unique(y.map(e,function(e){return e.leaderKey.join(",")})).length?[].concat(e[0].leaderKey):[]},getMyApiKey:function(e,t){return t.getMyFrame().apiKey},getMyFrame:function(e){return e.frames[e.frameId]},window:function(){return window}},state:{initialized:!1,frameId:null,leaderId:null,tabId:null,agentInstallType:null,leadershipMode:null,topId:null,frames:{},guidesLoaded:!1,channelType:null,ready:!1},requests:Vb};function Yb(e){var t=y.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=y.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=y.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=y.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=y.map(e.steps,function(e){return y.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function Hb(e){return y.map(e,Yb)}function Kb(t){var n=y.indexBy(y.filter(Mu(),function(e){return!e.isFrameProxy}),"id"),e=y.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return y.toArray(y.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return y.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(Ic).value(),e=y.toArray(n).concat(e).filter(ov);y.sortBy(e,av),Sv(e),Tu(e),t.guidesLoaded&&0===y.size(y.get(t,"frames."+t.frameId+".guides",[]))&&$h()}function Xb(e,t){new(_t("MutationObserver"))(t).observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}var Jb,qb={startObserver:function(t){var n,i,r,o,a;n=t,i=Element.prototype.attachShadow,Element.prototype.attachShadow=function(e){e=i.call(this,e);return this.shadowRoot&&Xb(this.shadowRoot,n),e},Element.prototype.attachShadow.toString=function(){return i.toString()},y.isFunction(document.createNodeIterator)&&(r=0,o=[_a()],function s(e){do{if(!(e=e||document.createNodeIterator(o.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(a=e.nextNode())&&(r++,a&&a.shadowRoot&&(Xb(a.shadowRoot,t),o.push(a.shadowRoot),qb.foundShadowRoots=!0),r%5e3!=0););}while(!a&&(e=null,o.length));a&&qb.foundShadowRoots&&Dt(function(){s(e)},50),5e3!==r||qb.foundShadowRoots||(qb.stoppedSearchEarly=!0)}())},foundShadowRoots:!1,stoppedSearchEarly:!1},e={actions:{documentChanged:function(e){var t;e.state.updateId?e.commit("setNeedsUpdate"):e.state.scheduledUpdate||(t=e.getters.now()-e.state.updateCompleteTime,t=Math.min(Math.max(0,Gh-t),Gh),t=Dt(e0,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate:function(e){e.dispatch("stopScheduledUpdate"),$h()},stopScheduledUpdate:function(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded:function(e,t){var n;e.state.useObserver&&((n=e.getters.observer())||(n=new(t||_t("MutationObserver"))(Qb),Jb=n),e.state.observing||(n.observe(document.documentElement,{subtree:!0,attributes:!0,childList:!0,characterData:!0}),e.state.observeShadowRoots&&qb.startObserver(Qb),e.commit("setObserving",!0)))},stopObserver:function(e){var t=e.getters.observer();t&&y.isFunction(t.disconnect)&&t.disconnect(),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setUseObserver:function(e){e.useObserver=!0},setObserveShadowRoots:function(e){e.observeShadowRoots=!0},setObserving:function(e,t){e.observing=t},setNeedsUpdate:function(e){e.needsUpdate=!0},setScheduledUpdate:function(e,t){e.scheduledUpdate=t},startUpdate:function(e,t){e.needsUpdate=!1,e.updateId=t},completeUpdate:function(e,t){e.updateId=null,e.updateCompleteTime=t}},getters:{now:b,observer:function(){return Jb}},state:{useObserver:!1,observeShadowRoots:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}};function Qb(){A.dispatch("guideUpdate/documentChanged")}function e0(){A.dispatch("guideUpdate/handleScheduledUpdate")}t0=["advanced","dismissed","snoozed"];var t0,n0,i0,r0,o0,a0,s0,d0,u0,c0={actions:{init:function(t,e){y.each(e,function(e){y.each(e.steps,function(e){t.commit("updateStepState",e)})})},fixSeenStateAndLogError:function(e,t){var n,i,r=t.step,t=t.reason;e.state.exceptions[r.id]||(n=r.seenState,(i=e.state.steps[r.id])&&i.seenState&&(r.seenState=i.seenState),e.state.exceptions[r.id]=!0,e.dispatch("logRedisplayError",{id:r.id,guideId:r.guideId,reason:t,seenState:i.seenState,previousSeenState:n}))},logRedisplayError:function(e,t){ra(['Attempted redisplay of guide="',t.guideId,'" step="',t.id,'" reason="',t.reason,'" seenState="',t.seenState,'" previousSeenState="',t.previousSeenState,'"'].join())}},mutations:{updateStepState:function(e,t){var n=b();e.steps[t.id]=y.extend({},e.steps[t.id],{pageId:t.pageId,regexUrlRule:t.regexUrlRule,seenState:t.seenState,updatedAt:n,allowedAt:n+6e4})},resetStepStatus:function(e){e.steps={}}},getters:{isRedisplay:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(e.resetAt>t.updatedAt)&&!(b()>=t.allowedAt)&&y.contains(t0,t.seenState)&&!y.contains(t0,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}},l0={state:{lastFlush:b(),flushInterval:3e5,counters:{ptmGifFailures:0,guideGifFailures:0},timers:{}},actions:{flush:function(n){y.each(n.state.counters,function(e,t){n.commit("resetCounter",t)}),y.each(n.state.timers,function(e,t){n.commit("resetTimer",t)}),n.commit("setLastFlush",n.getters.now())}},mutations:{setLastFlush:function(e,t){e.lastFlush=t},incrementCounter:function(e,t){e.counters[t]!==undefined&&e.counters[t]++},resetCounter:function(e,t){e.counters[t]!==undefined&&(e.counters[t]=0)},setTimer:function(e,t){var t=void 0===t?{}:t,n=t.name,t=t.time;n&&null!=t&&(e.timers[n]=t)},resetTimer:function(e,t){delete e.timers[t]}},getters:{shouldFlush:function(e,t){return t.now()-e.lastFlush>=e.flushInterval},payload:function(e){var t=y.reduce(e.counters,function(e,t,n){return 0<t&&(e[n]=t),e},{});return y.extend({},t,e.timers)},now:b}},p0={state:{visitor:{},account:{},parentAccount:{},date:null,version:null,selfHosted:null},actions:{},mutations:{setMetadata:function(e,t){t&&(t.visitor&&(e.visitor=t.visitor),t.account&&(e.account=t.account),t.parentAccount&&(e.parentAccount=t.parentAccount),t.date&&(e.date=t.date),t.version&&(e.version=t.version),null!==t.selfHosted)&&(e.selfHosted=t.selfHosted)},clearAccount:function(e){e.account={}},reset:function(e,t){e.visitor={id:t.visitor_id},e.account={},e.parentAccount={},e.date=null,e.version=null,e.selfHosted=null}},getters:{metadata:function(e){return e},selfHosted:function(e){return e.selfHosted}}},h0=w.getLocal(),f0="pendo-preview",g0="current-guide-preview",m0={state:{preview:null,designerPreview:null},actions:{start:function(e,t){e.commit("setPreview",t),e.dispatch("write")},restart:function(e,t){e.commit("updatePreview",{state:null}),e.commit("updatePreview",t)},update:function(e,t){e.commit("updatePreview",{state:t}),e.dispatch("write")},load:function(e){try{var t=e.getters.storage(),n=JSON.parse(t.getItem(f0)),i=(n.apiKey===v.apiKey&&e.commit("setPreview",n),t.getItem(g0));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write:function(e){try{var t=e.getters.storage();e.state.preview?t.setItem(f0,JSON.stringify(e.state.preview)):t.removeItem(f0)}catch(n){}},exit:function(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview:function(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(g0)},launchInAppDesigner:function(e,t){eg.launchInAppDesigner(t)}},mutations:{updatePreview:function(e,t){e.preview&&y.extend(e.preview,t)},setPreview:function(e,t){e.preview=t},setDesignerPreview:function(e,t){e.designerPreview=t}},getters:{isInPreviewMode:function(e){return!!e.preview},isInDesignerPreviewMode:function(e,t){return!!e.designerPreview&&t.isInPreviewMode()},storage:function(){return h0}}},v0=(n0={isTop:undefined,isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null,doNotProcess:!1},o0={debuggingEnabled:{type:i0="top-down",defaultValue:!(r0="bottom-up")},guideLoopRunning:{type:r0,defaultValue:!1},stepEligibilitySet:{type:r0,defaultValue:{}},identity:{type:r0,defaultValue:{}},location:{type:r0,defaultValue:{}}},v0={init:function(e){e.commit("setFrameId",Gn.getFrameId()),e.commit("setTabId",Gn.getTabId()),e.commit("setInstallType",Ge());var t=Hu()&&window.top===window;n0.isTop,e.commit("setIsTop",t),e.commit("isLeader",Hu()),t?(t=of(),e.commit("debuggingEnabled",!0===t.enabled),t.enableEventLogging&&e.commit("enableEventLogging",!0)):L.postMessage({action:"debugger/join",frameId:e.state.frameId})},join:function(n,e){n.state.frameId!==e.frameId&&y.each(o0,function(e,t){e.type===i0&&L.postMessage({action:"debugger/sync",frameId:n.state.frameId,fields:((e={})[t]=n.state[t],e)})})},sync:function(i,e){var r;i.state.frameId!==e.frameId&&(r=e.frameId,e=e.fields,y.each(e,function(e,t){var n;!o0[t]||(n=o0[t].type)===i0&&i.state.isTop||n===r0&&!i.state.isTop||i.commit("_sync_".concat(t),{value:e,frameId:r})}))},enableEventLogging:function(e,t){e.commit("enableEventLogging",t)},eventCaptured:function(e,t){e.state.isTop?e.commit("eventsCaptured",t):L.postMessage({action:"debugger/receiveEventCaptured",frameId:e.state.frameId,event:t})},receiveEventCaptured:function(e,t){e.state.isTop&&e.commit("eventsCaptured",t.event)},clearEventsCaptured:function(e){e.commit("eventsCaptured",[])},onCspError:function(e,t){e.state.isTop?e.commit("cspError",t):L.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:function(e,t){e.state.isTop&&e.commit("cspError",t.data)},checkGuideEligibility:function(e,t){var i=t.guideId,n=t.response,t=y.filter(A.state.frames.frames,function(e){return e.guides&&e.guides[i]});t.length&&(t=y.map(t,function(n){var e=y.map(n.guides[i].steps,function(e,t){return L.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i})});return C.all(e).then(function(e){return{frameId:n.id,frameVisibility:n.visibility,errors:y.map(e,function(e){return JSON.parse(e).errors})}})}),C.all(t).then(function(e){return e}).then(function(e){return n(e)})["catch"](function(e){return n({error:e})}))}},a0={},s0={setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setIsTop:function(e,t){e.isTop=t},isLeader:function(e,t){e.isLeader=t},setInstallType:function(e,t){e.installType=t},stepEligibilitySet:function(e,t){var n=t.stepId;e.stepEligibilitySet[n]=t},guideLoopRunning:function(e,t){e.guideLoopRunning!==t&&(e.guideLoopRunning=t)},identity:function(e,t){e.identity=t},location:function(e,t){e.location=t},debuggingEnabled:function(e,t){e.debuggingEnabled=t,t=t,e=e.isTop,n0.debuggingEnabled!==t&&(t?(w0(),C0(),S.on("stepEligibility",y0),S.on("guideUpdateComplete",d0),S.on("guideLoopStopped",u0),S.on("eventCaptured",I0),S.on("identify",w0),S.on("urlChanged",C0),e&&(b0(),S.on("guidesLoaded",b0))):(S.off("stepEligibility",y0),S.off("guideUpdateComplete",d0),S.off("guideLoopStopped",u0),S.off("eventCaptured",I0),S.off("identify",w0),S.off("urlChanged",C0),e&&S.off("guidesLoaded",b0)))},excludedGuides:function(e,t){e.excludedGuides=t},autoOrdering:function(e,t){e.autoOrdering=t},throttling:function(e,t){e.throttling=t},eventsCaptured:function(e,t){y.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&e.eventsCaptured.unshift(t)},enableEventLogging:function(e,t){e.enableEventLogging=t},cspError:function(e,t){e.cspErrors.unshift(t),10<e.cspErrors.length&&e.cspErrors.pop()},doNotProcess:function(e,t){e.doNotProcess=t}},d0=y.partial(S0,!0),u0=y.partial(S0,!1),y.each(o0,function(e,i){var r=e.type,e=e.defaultValue,o=(n0[i]=e,a0[i]=function(e){return e[i]},s0[i]||function(e,t){e[i]=t});s0[i]=y.wrap(o,function(e,t,n){!t.isTop&&r===i0||(e(t,n),t.isTop&&r===r0)||L.postMessage({action:"debugger/sync",frameId:t.frameId,fields:((e={})[i]=n,e)})}),o=s0["_sync_".concat(i)]||o,s0["_sync_".concat(i)]=function(e,t){var n=t.value,t=t.frameId;e.frames[t]||(e.frames[t]={}),e.frames[t][i]||(e.frames[t][i]=o0[i].defaultValue),o(e.frames[t],n),e.isTop||r!==i0||o(e,n)}}),{state:n0,actions:v0,getters:a0,mutations:s0});function y0(e){e=e.data[0];A.commit("debugger/stepEligibilitySet",e)}function b0(e){var t=y.map(xh.sortAndFilter(k,v.autoOrdering),function(e){return e.id});A.commit("debugger/autoOrdering",t||[]),A.commit("debugger/excludedGuides",v.excludedGuides||[]),A.commit("debugger/throttling",v.throttling||{})}function I0(e){A.dispatch("debugger/eventCaptured",e.data[0])}function w0(e){A.commit("debugger/identity",{visitorId:y.get(e,"data.0.visitor_id")||v.get_visitor_id(),accountId:y.get(e,"data.0.account_id")||v.get_account_id(),apiKey:v.apiKey})}function C0(){A.commit("debugger/location",{href:go(),browserUrl:window.location.href})}function S0(e){A.commit("debugger/guideLoopRunning",e)}_0="pendo-loader";var A0,E0,T0,_0,x0={name:"IFrameMonitor",initialize:function(e,t){A0=e,E0=t,function(){E0.ConfigReader.get("autoFrameInstall")&&E0.Events.ready.on(F0);E0.ConfigReader.get("frameIdentitySync")&&(E0.Events.metadata.on(G0),E0.Events.identify.on(D0),E0.Events.childFrameJoined.on(R0))}(),T0=E0.ConfigReader.get("frameIdentityTopDownOnly")},teardown:function(){E0.Events.ready.off(F0),E0.Events.metadata.off(G0),E0.Events.identify.off(D0),E0.Events.childFrameJoined.off(R0)}};function R0(){B0()}function k0(e){return e.ignoreIframeMonitor||e.pendo&&(e.pendo.initialize||e.pendo.iframeWaiting)||!!e.document.getElementById(_0)}function O0(e,t){var n;k0(e)||((n=E0.ConfigReader.getLocalConfig()).apiKey||(n.apiKey=A0.apiKey),e.pendo={_q:[["initialize",n]]},(n=e.document.createElement("script")).src=t,n["async"]=!0,n.id=_0,(t=e.document.getElementsByTagName("script")[0])&&t.parentNode?t.parentNode.insertBefore(n,t):(e.document.head||e.document.body).appendChild(n))}function N0(e,t){e.pendo.iframeWaiting=!1,O0(e,t)}function M0(e){try{if(k0(e))return}catch(i){return}var t,n=(n=E0.ConfigReader.get("selfHostedAgentUrl"))||(n=A0.dom("script"),t=/\/pendo(\.\w+)?\.js$/,(n=A0._.find(n,function(e){return t.test(e.src)}))&&n.src);n?"complete"===e.document.readyState?O0(e,n):(e.pendo={iframeWaiting:!0},e.document.addEventListener("DOMContentLoaded",A0._.partial(N0,e,n))):A0.log("Unable to find agent url to install agent in frames","debug")}function L0(){for(var e=A0.dom("iframe").length,t=0;t<e;t++)M0(window.frames[t]);Dt(L0,250)}function F0(){L0()}function P0(){return!T0||E0.store.getters["frames/isLeader"]()}function G0(e){P0()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&E0.store.dispatch("frames/syncOptions",{options:e.options})}function D0(e){var t;B0(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function B0(e,t){void 0===e&&(e=E()),void 0===t&&(t=mi()),P0()&&E0.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}$0.prototype.markDirty=function(){this.queue.push.apply(this.queue,this.domActivation.guides)},$0.prototype.process=function(e){var t,n,i=this.queue.shift();if(i){e.saveContext(i);try{t=Xr(i.selector)}catch(r){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),e=t,n=i.targets,e.length==n.length&&y.all(e,function(e,t){return e===n[t]})||(i.targets=t,this.domActivation.detach(i,this.domActivation.targets),y.each(t,function(e){this.domActivation.attach(e,i,this.domActivation.targets)},this))}},$0.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();e&&I.warn("Element activated guide ("+e.id+") timeout exceeded")},$0.prototype.cancel=function(){this.queue.length=0},$0.prototype.isComplete=function(){return!this.queue.length};var W0=$0;function $0(e){this.maxTargets=50,this.domActivation=e,this.name="dom",this.queue=[]}var U0,j0,z0,Z0,V0,Y0,H0={name:"DOMActivation",key:z0="pendoTargetId",guides:Z0=[],targets:V0={},reset:Q0,init:tI,attach:function(n,i,e){var t=n[z0],r=t?e[t]:null;r||(t=t||"target"+y.uniqueId(),r={target:n,events:{}},e[t]=r,n[z0]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,y.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=y.partial(q0,y,t.guideIds),l(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:J0,handler:q0,activates:eI,prefetch:nI,initialize:function(e,t){(U0=t).Events.on("deliverablesLoaded",Q0),t.Events.on("guideListChanged",K0),t.Events.on("guidesLoaded",X0),ef(j0=new W0(H0))},teardown:function(){tf(j0),U0.Events.off("deliverablesLoaded",Q0),U0.Events.off("guideListChanged",K0),U0.Events.off("guidesLoaded",X0)}};function K0(){Q0(),tI(Au())}function X0(){nI(Au())}function J0(i,t){y.each(t[i.id],function(e){var n=e?t[e]:null;n&&(y.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],y.size(e.guideIds)<=0)&&(vu(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),y.size(n.events)<=0)&&(delete n.target[z0],n.target=null,delete t[e])}),delete t[i.id]}function q0(e,t){var n;!e.pendoActivatedGuide&&!R.data.get(e,"advanced")&&(n=m.get("adoptPrioritizeAdoptGuides"),t=y.compact(y.map(y.keys(t),ku)),t=y.filter(t,function(e){return!(!e.steps||!e.steps.length||y.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=y(t).chain().sortBy(function(e){return"staged"===e.state?0:1}).sortBy(function(e){e=e.isTraining;return n?e?0:1:e?1:0}).value(),t=y.find(t,function(e){var t=y.first(e.steps);return y.get(e,"attributes.resourceCenter",!1)&&e.isShown()?N.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||Mm(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function Q0(){y.each(Z0,function(e){J0(e,V0),e.targets=[]}),Z0.length=0}function eI(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(Vm())){var t=y.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=Zu(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function tI(e){y.each(e,function(e){e=eI(e);e&&Z0.push(e)})}function nI(e){m.get("disablePrefetch")||y.each(e,function(e){y.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&y.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}var iI,rI,oI,aI,sI=function(){(Y0=Y0||{dom:R,placeBadge:ff,showPreview:km,stopGuides:Wh,removeAllBadges:gf,_:y,sizzle:Xr,tellMaster:Cs,tell:Cs,log:Uy,attachEvent:l,createLauncher:y.constant({}),removeLauncher:y.noop,addGuideToLauncher:y.noop,updateLauncherContent:y.noop,DEFAULT_TIMER_LENGTH:Gh,getOffsetPosition:Sa,getScreenDimensions:Ia,registerMessageHandler:ps,whenLoadedCall:bu,loadResource:os,loadGuideCss:vv,GuideFactory:Ic,GuideStep:wc,extractElementTreeContext:su,previewGuideFromJSON:F.previewGuideFromJSON,hidePreviewedGuide:F.hidePreviewedGuide,shadowAPI:_i,getTarget:io,pullContentsFromTargetElement:Em,doesElementMatchContainsRules:Tm,doesElementContentMatchRule:_m,getGuideAttachPoint:$u}).areGuidesEnabled=!xv(),v.designer||(v.designer=Y0)},dI={name:"DesignerConnect",initialize:function(e,t){iI=e,rI=t,Ts()||ps("connect",uI);ps("pendo-designer-launch::launch",pI),ps("pendo-preview::launch",hI),e.app_name=document.title,(Ss()||window.opener)&&window.addEventListener&&(iI.log(e.app_name+": listening to messages"),window.addEventListener("message",ds,!1));window.opener&&iI._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");iI.onConnectMessage=uI},teardown:function(){window.removeEventListener&&window.removeEventListener("message",ds,!1),cI(),hs("connect"),hs("pendo-designer-launch::launch"),hs("pendo-preview::launch"),aI&&(rI.Events.appUnloaded.off(aI),aI=undefined);oI=oI&&undefined},onConnectMessage:uI,disconnectDesigner:cI,launchDesignerListener:pI,launchPreviewListener:hI,sendToken:lI};function uI(e,t){var n,i;iI.isSendingEvents()&&(n=t.origin,iI.stopGuides(),iI.buffers.lock(),i=t.source,is=i,iI.designerv2.hostConfig||(rI.store.dispatch("frames/leave"),aI=iI._.partial(cI,i,n),rI.Events.appUnloaded.on(aI)),sI(),Cs(t.source,{status:"success",type:"connect"},n),ys("selection.js")&&(iI.log("Designer Modules already loaded."),Cs({type:"ready"},n)),rI.Events.designerLaunched.trigger())}function cI(e,t){iI.buffers.unlock(),v.designer&&(v.designer=null,delete v.designer),e&&Cs(e,{type:"unload"},t)}function lI(e,t){var n;oI&&(n={token:oI,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),oI=undefined)}function pI(e,t){var n,t=t.data.token;t&&(oI=t,ps("pendo-designer-launch::get-token",lI),n=t.DADesigner?"da-designer":"in-app-designer",n={lookaside:t.baseUrl,host:t.host,target:t.target||"latest",DADesigner:!!t.DADesigner,gcsBucket:t.gcsBucket||n,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},iI.designerv2.launchInAppDesigner(n))}function hI(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==Ge()?iI.log("Skipping preview launch due to agent install type mismatch."):(n=iI._.extend({},t.data.config,{origin:t.origin}),Bo()&&(n.apiKey=iI.apiKey),rI.store.dispatch("preview/exitDesignerPreview"),rI.store.dispatch("preview/start",n),Sf(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:iI.apiKey,accountId:iI.accountId},t.origin),Wv(),rI.store.dispatch("frames/startPreview")))}var fI,gI,mI,vI,yI,bI="__sg__",II=(gI="promotedAgentMetadataConfigurations",mI=[],vI={},yI={},{name:"PromoteMetadata",initialize:function(e,t){if(mI=(fI=t).ConfigReader.get(gI),yI={},fI.agentStorage.registry.addLocal(bI),ri())try{vI=JSON.parse(fI.agentStorage.read(bI))||{}}catch(n){TI()}mI&&mI.length&&(fI.Events.on("metadata",SI),fI.Events.on("eventCaptured",xI),fI.Events.on("identify",AI))},teardown:function(){fI.Events.off("metadata",SI),fI.Events.off("eventCaptured",xI),fI.Events.off("identify",AI)},getPromotedMetadata:function(){return mI},hasPromotedMetadataKind:wI,setSchemaGroup:SI,getSchemaGroup:CI,resetSchemaGroup:EI,resetCachedSchemaGroup:TI});function wI(t){return y.some(mI,function(e){return e.kind===t})}function CI(){return yI}function SI(e){var t;e?(e=e.data[0].options)&&(t=e):t=yp(),yI=function(r){ri()&&(vI=function(e){return y.mapObject(e,function(t,e){var n={};return Object.keys(t).forEach(function(e){n[e.replace("agent__","")]=t[e]}),n})}(vI=JSON.parse(fI.agentStorage.read(bI))||{}));var o=yI;y.each(["visitor","account","parentAccount"],function(e){var t=wI(e),n=!y.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!y.isEmpty(vI)&&y.isEmpty(Ys.get())&&(o[i]=_I(vI[i],e)),n)&&(t=_I(r[e],e),y.isEmpty(t)||(o[i]=Gt(Gt({},o[i]),t)))}),ri()&&fI.agentStorage.write(bI,JSON.stringify(o),undefined,!1,!0);return o}(t)}function AI(e){e=e.data[0];y.get(e,"wasCleared")&&(fI.agentStorage.clear(bI),EI())}function EI(){yI={}}function TI(){vI={}}function _I(e,i){var r={};return e&&y.each(e,function(e,t){var n=t.toLowerCase();Boolean(y.find(mI,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function xI(e){e=e.data[0];e&&(y.isEmpty(yI)&&SI(),y.isEmpty(yI)||("track"===e.type?e.props.__sg__=yI:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=yI)))}function RI(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}RI.prototype.add=function(){0===y.indexOf(this.guide.steps,this.step)&&!RI.shouldAttachHandler(this.guide,this.method)||Pu(this.guide)&&!Gu(this.guide)||this.setupElementEvent(this.element,this.method)},RI.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},RI.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=y.compose(y.bind(this.teardownElementEvent,this,e,t),y.bind(this.step.advance,this.step))),RI.attach(this.step,e,t,this.advanceFn)},RI.prototype.teardownElementEvent=function(e,t){I.info("detach onGuideAdvanced",{contexts:["guide"]}),vu(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},RI.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||H0.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector};var kI=null,OI=function(){return Wu()?Fu:Lu},NI=function(e){return"#_pendo_g_"+e.id},MI=function(e,t){kI=null;var n,i,r,o,e=Sa(e);return 0===e.height&&0===e.width?null:(n=t.guideElement,o=t.attributes.height,i=t.attributes.width,r=t.attributes.layoutDir,n.addClass(OI()),o=jI(e,o,i,r),t&&(t.dim=o),n.css({width:o.width,height:o.height,left:o.left,top:o.top}),e.fixed&&n.css({position:"fixed"}),R("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),LI(n[0],o),n[0])},LI=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=y.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+v.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=R("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),d=R("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");y.each(n,function(e){s.removeClass(i+e+"_").removeClass(e),d.removeClass(r+e+"_").removeClass(e)}),s.addClass(i+o+"_").addClass(o).css(a+"top:"+t.arrow.top+"px;left:"+t.arrow.left+"px;"),d.addClass(r+o+"_").addClass(o).css(a+"top:"+t.arrow.border.top+"px;left:"+t.arrow.border.left+"px;"),R(e).append(s).append(d)},FI=function(e,t){t===undefined&&(t=Iu),e.element=ju(e);var n=e.element;if(!n)return I.info("No element found for step: "+e.id),null;Za(n);var i=MI(n,e);return null===i?null:(i.id=v.getTooltipDivId(e),R(i).appendTo($u()),t.push(i),l(i,"mouseover",y.partial(R.addClass,i,"mouseover")),l(i,"mouseout",y.partial(R.removeClass,i,"mouseover")),Vu(n,i),WI(e),n)},PI=null,GI=null;var DI=null,BI={top:"north",left:"east",bottom:"south",right:"west"},WI=function(e){try{var t,n,i,r,o,a,s,d;e.attributes&&e.attributes.blockOutUI&&e.attributes.blockOutUI.enabled&&(t=e.attributes.blockOutUI,(n=[]).push(e.element),i=el(n=n.concat(y.compact(y.flatten(y.map(t.additionalElements,function(e){return y.toArray(R(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=Qc(a=qc(),i,o),h=i,f=!y.isEqual(h,PI),PI=h,f||(l=a,p=!y.isEqual(l,GI),GI=l,p)||(u=s,c=!y.isEqual(u,DI),DI=u,c))&&(d={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(d["background-color"]=t.bgColor),t.opacity&&(d.opacity=t.opacity),y.each(s,function(e,t){t=BI[t],e=y.extend({},e,d),t=R("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||$I(t),R(t).css(e)}))}catch(g){I.info("Failed to add BlockOut ui",{contexts:["error"]})}var u,c,l,p,h,f},$I=function(e){e=R(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");R("body").append(e)},UI=function(e){var t=y.isEqual(e,kI);return kI=e,!t},jI=function(e,t,n,i){var r=v.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=Ia();return o.width=Math.min(n,a.width),o.height=t,o.content.width=o.width-2*r,o.content.height=o.height-2*r,o=zI(o,e,a,i=i||"auto"),o=ZI(o,e,a,i),o=VI(o,e,a)},zI=function(e,t,n,i){return e.arrow.hbias=vl(t,n,i),e},ZI=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-Vo(),t=(r=t.left-Yo())+t.width,i<n.height/3?e.arrowPosition="top":i>2*n.height/3||"center"==e.arrow.hbias?e.arrowPosition="bottom":r<e.width&&n.width-t<e.width?e.arrowPosition="top":e.arrowPosition=e.arrow.hbias),e},VI=function(e,t,n){var i,r,o,a=e.height,s=e.width;return tt()?nt(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=We(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-v.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=We(9,6)?6:0,e.arrow.top+=8==Be?-1:0,i=1),r=10+v.TOOLTIP_ARROW_SIZE,o=s-3*v.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==fl?(e.left=t.left+t.width/2-(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==gl?(e.left=t.left-s+t.width/2+(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-v.TOOLTIP_ARROW_SIZE),!1!==e.arrow.floating&&(n=e.left+s-n.width,0<(n-=Math.max(0,e.arrow.left+n-o))&&(e.left-=n,e.arrow.left+=n),o=-e.left,0<(o-=Math.max(0,r-(e.arrow.left-o))))&&(e.left+=o,e.arrow.left-=o),e.arrow.border.top=e.arrow.top+i,e.arrow.border.left=e.arrow.left):(e.arrow.hbias==fl?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=We(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==gl&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-v.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=We(10,6)?5:0,e.arrow.left+=7==Be&&6<=Ze?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-v.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},YI=430,HI=200,KI=15;function XI(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||v.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||v.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||ju(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=y.map(e,function(e){return new RI(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=y.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!Cm(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(Vm())&&Am(t)},this.after("render",function(){FI(this,this.elements)&&(y.each(this.getTriggers(),function(e){e.add()}),yl.attachScrollHandlers(this,this.onscroll))}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=R("._pendo-guide-container_",i),o=Sa(this.element),t=jI(o,t,e,n);r.removeClass("top right bottom left").removeClass("_pendo-guide-container-top_ _pendo-guide-container-right_ _pendo-guide-container-bottom_ _pendo-guide-container-left_").addClass(t.arrowPosition).addClass("_pendo-guide-container-"+t.arrowPosition+"_"),R("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),LI(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,WI(this)},this.onscroll=function(e){ja(e.element)?(e.reposition(),ya(e.elements[0],"display:block")):ya(e.elements[0],"display:none")},this.teardownElementEvent=function(){y.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){R("._pendo-guide-tt-region-block_").remove(),DI=GI=PI=null})),this}var JI=function(e,t){var n=!!R("._pendo-backdrop_")[0];return y.get(t,"overlayDiv[0]")||(t.overlayDiv=R(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo($u())),tt()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&R(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},qI=function(e){var t=e.guideElement,n=v.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass("_pendo-guide-lb_").css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),R("._pendo-guide-container_",t).css({bottom:n,right:n}),tt()&&t.css({position:"absolute"})},QI=function(e,t){t===undefined&&(t=Iu),e.element=ju(e),qI(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(JI(n,e),e.guideElement);t.push(n[0]),n.appendTo($u())},e1=function(e,t){t===undefined&&(t=Iu),e.element=ju(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=JI(n,e),e=e.guideElement,i=v.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),R("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}R("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo($u()),t.push(e[0]),l(n[0],"touchmove",r),l(e[0],"touchmove",r)};function t1(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||v.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||v.LB_DEFAULT_WIDTH,e.after("render",function(){(Wu()?e1:QI)(e,e.elements)}),e.reposition=function(){Wu()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var n1=500,i1="_pendo-guide-banner_";function r1(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||n1,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=v.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(i1).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),Bu()||e.addClass("_pendo-in_"),R("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=ju(n),n.elements.push(e[0]),e.appendTo($u())})),n}function o1(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(y.extend(n,{isShown:y.constant(!1),launch:d,onShown:d,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=R(document.createElement("div")).attr("id",xm(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),y.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),y.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!Ra(e[0])&&(R("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),Lc.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){Bu()||a()&&n.seenState!==r&&function(e){{var t,n;if(ja(e,/(auto|scroll|hidden)/))return(t=Ma(e))?(t=ka(t),e=ka(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Fm(n.guideId,n.id,E(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,y.delay(function(){n.guideElement.addClass(i+" out")},y.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function d(){}}var a1="_pendo-launcher-searching_",s1="._pendo-launcher-search-box_ input";var d1,u1=function(e){return e&&y.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function c1(){var e;return function(){var e;if(v.guideWidget)return(e=v.guideWidget.data)&&e.enableSearch}()&&(e=R(s1)[0])&&0<(e=e.value).length?(e=gt.call(e),[].concat(y.compact(e.split(" ")))):[]}function l1(e){if(!m.get("disablePrefetch"))return C.all(y.map(e,function(e){return e.fetchContent()}))}function p1(e,t){return I.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||k,t&&0!==t.length?y.chain(e).filter(u1).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return y.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var h1=function(){var e=Mu();if(Hu()){if(v.guideWidget&&v.guideWidget.enabled){var t=C1(e),n=!0;if(v.guideWidget&&y.isFunction(v.guideWidget.update))v.guideWidget.update(t,n)}}else{N1();t=Eu(e),n=S1(C1(t));n!==d1&&A.dispatch("frames/changeGuideList",t),d1=n}},f1="launcher-closed",g1=null,m1=null,v1=!(RI.attach=function(e,t,n,i){if(e){for(var r=RI.handlers=RI.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(vu(t,n,s[2],!0),o.splice(y.indexOf(o,s),1),a--)}o.push([t,n,i]),vu(t,n,i,!0),l(t,n,i,!0)}}),y1="_pendo-launcher-active_",b1=null,I1=function(){return""};function w1(e,t){I1=t}function C1(e){var t,e=y.filter(e||k,u1);return e=e,0===(t=c1()).length?e:(t=y.map(t,y.partial(p1,e)),y.union.apply(y,t))}function S1(e){return Ct(y.map(e,function(e){var t=e.isWhatsNew()?[]:y.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function A1(e){var n=this,t=e.launchType||"badge",i=(y.extend(n,{show:function(){"badge"===t&&R(n.element).css("display: ;")},hide:function(){R(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=R(document.createElement("div")).addClass(e.className).append(e).appendTo($u()),e.className="",n.element=t[0])}},dispose:function(){R.removeNode(n.element)},setActive:function(e){e?R(n.element).addClass(y1):R(n.element).removeClass(y1)}}),e),e=i.position||"bottom-right",r=document.createElement("img");R(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=Cc(i.launcherBadgeUrl)),r.onerror=function(e){I.info("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),I.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},tt()&&(l(r,"mouseover",function(e){R(r).addClass("_pendo-launcher-badge-active_")}),l(r,"mouseout",function(e){R(r).removeClass("_pendo-launcher-badge-active_")}),R(r).css({position:"absolute"})),$u().appendChild(r)}function E1(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=io(e),t=n();R(e).closest(t).length&&(G1()?w.write(f1,"yes",864e6):v.guideWidget.position(e),$1())}v.guideWidget.removeCountBadge=function(){R("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),y.extend(this,{getLauncherTarget:function(){return R(n())[0]},dispose:function(){vu(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&R("._pendo-launcher-whatsnew-count_").remove()}}),l(document,"click",t)}function T1(){var n,s="bottom-right",d="bottom-left";return this.update=function(e,t){t=t?e:C1(e),e=S1(t)+Ct(c1());return e!==n&&(n=e,this.updateLauncherContent(t)),k1(),0<t.length},this.updateLauncherContent=F1,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(g1=new A1(e),e.height||310),n=(e.enableSearch&&(t+=tt()?50:39),this&&!this.hidePoweredBy&&(t+=40),e.addHeight&&(t+=e.addHeight),this.height=t,e.width||330),i=(e.addWidth&&(n+=e.addWidth),this.width=n,R(document.createElement("div")).addClass("_pendo-launcher_")),r=(m1=i[0],Sa(g1.element)),r=jI(r,t,n),o=(i.css({width:n,height:t}),v.TOOLTIP_ARROW_SIZE),n=R(document.createElement("div")).addClass("_pendo-guide-container_ "+r.arrowPosition).addClass("_pendo-guide-container-"+r.arrowPosition+"_").css({top:o,left:o,width:n-2*o,height:t-2*o}).appendTo(i),t=L1(),o=Cc(_1(this.template(t))),t=R(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),nm(i[0],function(){B1(),w.write(f1,"yes",288e5)}),t.on("click",function(e){var t=R(io(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=ku((t=/^launcher-(.+)$/.exec(gt.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Mm(t.steps[0],"launcher"),B1(),yu(e))}),tt()&&(R("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),R("._pendo-launcher-footer_",i).css({"border-top":"1px solid #bbb"}),i.css({position:"absolute"})),i.find("[pendo-style]").each(function(){var e=this.getAttribute("pendo-style");R(this).css(e)}),i.appendTo($u()),y.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!We(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),R("._pendo-guide-container_."+r.arrowPosition).css({maxHeight:e.height-30,minHeight:e.height/2-30,height:"calc(100% - 30px)"}))},this.position=function(e){var t,n,i,r,o,a;e&&(t=this.data,e=Sa(e),n=jI(e,this.height,this.width),i=R(m1),"badge"===(r=t.launchType||"badge")?(o=t.position,y.indexOf(a=[s,d,"top-left","top-right"],t.position)<0&&(o=s),y.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=y.contains([s,d],o)?"bottom":"top",n.arrow.hbias=y.contains([d,"top-left"],o)?"left":"right",n.arrow.floating=!1):"element"===r&&i.css({top:n.top,left:n.left,height:n.height,width:n.width,position:e.fixed?"fixed":"absolute"}),R("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),VI(n,e,{width:Infinity,height:Infinity}),LI(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=$1,this}function _1(e){return e=y.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function x1(e,t){e.contentHostUrl&&(e.contentHostUrl=(n=e.contentHostUrl,i=location,(r=m.getLocalConfig("contentHost"))&&(n=(n=n.replace(/^pendo-static-\d+\.storage\.googleapis\.com$/,r).replace(/^pendo-\w+-static\.storage\.googleapis\.com$/,r).replace(/^cdn\.pendo\.io$/,r)).replace(/^https?:/,"").replace(/^\/\//,""),!/\./.test(n))&&!/^localhost/.test(n)&&/^\//.test(n)?i.host+n:n)),b1=new E1(e);var n,i,r=T1.create(v.guideWidget);return y.isFunction(r.template)||(r.template=e.template?y.template(e.template):I1),r.render(),r.position(b1.getLauncherTarget()),t&&r.toggle(),r}T1.create=function(e){return y.reduce(T1.behaviors,function(e,t){return t.call(e)},e)},T1.behaviors=[nf,T1,vc.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){R(s1).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,v.disableGuideCenterContentSearch||this.before("update",l1),this.before("update",function(){t.text=c1().join(" ");var e=R("._pendo-launcher_");t.text?e.addClass(a1):e.removeClass(a1)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=y.filter(e,xb),t=y.filter(e,function(e){return"complete"==n.guideStatus(e)}),e=i.total=e.length,t=(i.percentComplete=0<e?Math.round(t.length/e*100):0,R("._pendo-launcher_,._pendo-launcher-badge_"));e?(t.addClass("onboarding"),t.addClass("_pendo-launcher-onboarding_")):(t.removeClass("onboarding"),t.removeClass("_pendo-launcher-onboarding_"))}),n.getOnboardingState=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":e.isNotStarted()?"not-started":null})}return n},function(){var n=this,i=R(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=y.filter(e,function(e){return e.isWhatsNew()});e.sort(t),n.data.whatsnew.total=e.length,n.data.whatsnew.guides=e}),n.after("update",function(e){var t=n.data.whatsnew.guides,t=(y.each(t,function(e){e.show()}),y.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),y.filter(t,function(e){return"active"!==e.steps[0].seenState}).length);t!==n.data.whatsnew.unseenCount&&(i.html(t).css({display:t?"":"none"}),n.data.whatsnew.unseenCount=t,R("span._pendo-launcher-whatsnew-count_").text(n.data.whatsnew.unseenCount))}),n.after("render",function(){M1()?i.appendTo(this.data.launchElement):(g1.wrap(),i.appendTo(g1.element))}));return n;function t(e,t){var n=function(e,t){e=e.showsAfter||e.publishedAt||0;return(t.showsAfter||t.publishedAt||0)-e}(e,t);return 0===n?(t=t,e=(e=e).name.toLowerCase(),(t=t.name.toLowerCase())<e?1:e<t?-1:0):n}}];var R1=function(){m1&&(R.removeNode(m1),m1=null),b1&&(b1.dispose(),b1=null),g1&&(g1.dispose(),g1=null)},k1=function(){(!M1()&&(D1()||0<c1().length)?O1:N1)()},O1=function(){g1&&g1.show()},N1=function(){M1()||B1(),g1&&g1.hide()},M1=function(){return!(!v.guideWidget||!v.guideWidget.data||"element"!==v.guideWidget.data.launchType)},L1=function(e){var t=yp(),t=y.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:It(t)},v.guideWidget);return t.data=y.extend({},t.data),e&&(t.guides=e),t};function F1(e){var t=v.guideWidget.template||I1,e=L1(e),e=R(document.createElement("div")).html(_1(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();R("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){R(e).html(n.eq(t).html())}),R("._pendo-launcher_ ._pendo-launcher-footer_").html(t),R("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var P1=y.compose(k1,function(e,t){var n,i,r,o;u1(e)&&(n=R("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(o=R("#launcher-"+e.id)).length?o[0]:(e=e,R(i=document.createElement("div")).addClass("_pendo-launcher-item_"),R(i).attr("id","launcher-"+e.id),(r=document.createElement("a")).href="#",r.innerHTML=e.name,i.appendChild(r),i),o=0<o.length,y.isNumber(t)&&(r=R("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),G1=function(){return R(m1).hasClass(y1)},D1=function(){return 0<R("._pendo-launcher-item_").length},B1=function(){var e;m1&&(e=R(m1))&&e.hasClass(y1)&&(e.removeClass(y1),g1)&&g1.setActive(!1)},W1=function(){var e;m1&&(e=R(m1))&&!e.hasClass(y1)&&(e.addClass(y1),g1)&&g1.setActive(!0)},$1=function(){m1&&!v1&&(G1()?B1:W1)()};var U1=function(){try{var e=v.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};R1(),!Wu()&&!n.desktop||Wu()&&!n.mobile||Ss()&&!n.iframe||e.enabled&&(x1(t),N1())}catch(i){I.critical("ERROR while initializing launcher",{error:i})}},j1=function(e){e.defaultLauncher=w1,e.toggleLauncher=$1,e.showLauncher=W1,e.hideLauncher=B1,e.removeLauncher=R1,e.initLauncher=U1,e.createLauncher=x1,e._addGuideToLauncher=P1,e.launcherToolTipDiv=m1},z1=function(){U1()},Z1=function(){var e;(e=v).designer&&(e.designer.createLauncher=x1,e.designer.removeLauncher=R1,e.designer.addGuideToLauncher=P1,e.designer.updateLauncherContent=F1)},V1=function(){var e;(e=v).debugging&&(e.debugging.getLauncherGuides=C1)},Y1=function(e){return i=v.guideWidget,e=e,r=i&&i.data,e=y.filter(e,function(e){e=y.first(e.steps);return e&&"launcher"===e.type}),(e=y.first(y.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=y.first(e.steps),y.extend(r,y.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),y.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==m.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?dc.verify(n).then(function(){return _c.load(n)}).then(function(e){return n.template=e.content,y.extend(t,e)}):C.resolve();var t,n,i,r},H1=function(e,t){j1(e),t.Events.on("guidesLoaded",z1),t.Events.on("designerLaunched",Z1),t.Events.on("debuggerLaunched",V1),t.GuideLoop.addUpdatePhase(h1),lv.push(Y1),t.agentStorage.registry.addLocal(f1)},K1=function(e,t){var n;n=Y1,0<=(n=y.indexOf(lv,n))&&lv.splice(n,1),t.GuideLoop.removeUpdatePhase(h1),t.Events.off("guidesLoaded",z1),t.Events.off("designerLaunched",Z1),t.Events.off("debuggerLaunched",V1)};iy.Extensions.API.addTopic("Launcher",{addBehavior:function(e){T1.behaviors.push(e)}});var X1,J1,q1,Q1={name:"P1Guides",initialize:function(e,t){var n;J1=t,X1=e.dom,q1=[XI,t1,r1,o1,nw,iw,tw,ew],-1<y.indexOf(wc.behaviors,XI)||(n=y.indexOf(wc.behaviors,Mb),wc.behaviors.splice.apply(wc.behaviors,[n,0].concat(q1)),t.Events.guideLoopStopped.on(N1),e.TOOLTIP_DEFAULT_WIDTH=YI,e.TOOLTIP_DEFAULT_HEIGHT=HI,e.TOOLTIP_ARROW_SIZE=KI,e._showElementGuide=FI,e._createTooltip=MI,e._get_tooltip_dimensions=jI,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=QI,H1(e,t))},teardown:function(){K1(0,J1),J1.Events.guideLoopStopped.off(N1),q1.forEach(function(e){e=y.indexOf(wc.behaviors,e);0<=e&&wc.behaviors.splice(e,1)}),q1=[]}};function ew(){var o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;r=Sa((e=o).element||ju(e)),WI(e),UI(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=jI(r,n,i,t),(i=R(NI(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),LI(i,n))}),o}function tw(){var i=this;return i.attributes&&i.attributes.autoHeight&&(i.after("render",function(){i.guideElement&&i.guideElement.length&&(i.resize(),i.attachEvent(i.guideElement[0],"load",function(){i.resize()}))}),i.resize=function(){var e,t=v.TOOLTIP_ARROW_SIZE,n=i.guideElement;n&&(e=X1("._pendo-guide-container_",n),"tooltip"==i.type||tt()&&"lightbox"==i.type?e.css({width:i.attributes.width-2*t,height:""}):e.css({right:t,bottom:""}),i.attributes.height=e.height()+2*t,n.height(i.attributes.height),i.reposition())}),i}function nw(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&nm(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||mm(t)})}),t}function iw(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||Du(e.guide)||e.after("render",function(){wm(e.guideElement[0])}),e}var rw,ow,aw={name:"Branding",initialize:function(e,t){rw=e,(ow=t).ConfigReader.get("isPendoFree")&&ow.Events.on("guideSeen",sw)},teardown:function(){ow.Events.off("guideSeen",sw)},addBranding:dw};function sw(e){dw(rw,e)}function dw(e,t){var n,i,r,t=t.data[0].props;t.step_poll_types&&-1<t.step_poll_types.indexOf("NPSRating")&&(e=-1<(t=e.findGuideById(t.guide_id).steps[0].guideElement[0].lastElementChild).dataset.verticalAlignment.indexOf("Bottom"),n=""!==t.style.width,(i=document.createElement("a")).href="https://www.pendo.io/pendo-free/nps?utm_source=pendo_app&utm_medium=branded-nps&utm_campaign=free-branded-nps",i.target="_blank",(r=document.createElement("img")).setAttribute("src",ow.getAssetUrl("img/nps-branding.png")),i.appendChild(r),i.style.display="inline-block",(r=document.createElement("div")).style.lineHeight=0,r.style.padding="8px",e&&(r.style.position="absolute",r.style.bottom="100%"),n&&(r.style.paddingLeft=0),r.append(i),t.append(r))}hw="automation",fw=250,gw=500,vw=10;var uw,cw,lw,pw,hw,fw,gw,mw,vw,yw={name:"ActionAutomation",automationQueue:void(mw=0),initialize:function(e,t){lw=t,uw=(cw=e)._,this.automationQueue=[],t.EventRouter.registerAction(hw,e._.bind(bw,this))},teardown:function(){lw.EventRouter.deregisterAction(hw),this.automationQueue=[]},guideActivity:bw,getAutomationFromGuide:function(i,e){return uw.reduce(e,function(e,t){var n=uw.find(i,function(e){return e.id===t});return n?e.push(n):cw.log("could not find automation for "+t,"debug"),e},[])},getAutomationConfigs:function(e){if(!e||e.length<=0)return[];if(!pw)return[];var t=pw.guide,n=pw.step;if(!t||!n)return[];n=t.automations;if(!n||!n.length)return[];n=this.getAutomationFromGuide(n,e),e=n[n.length-1];if(this.isAutomationInQueue(e))return cw.log("Automation is already in queue autoId: "+e.id+", guideId: "+t.id,"debug"),[];return n},getTarget:function(e){e=e.target.elementPathRules,e=cw.Sizzle(e,document);return e&&e[0]},getElement:function(n,i){void 0===i&&(i=vw);return new Ft(function(t){return Dt(function(){var e=this.getTarget(n);e&&!e.disabled||i<1?t(e):this.getElement(n,i-1).then(function(e){t(e)})}.bind(this),fw)}.bind(this))},getValue:function(e){return e.value},injectText:function(e,t){"INPUT"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"));"TEXTAREA"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,"value"));n&&"function"==typeof n.set?n.set.call(e,t):e.value=t;var n=new InputEvent("input",{bubbles:!0,data:t[t.length-1]}),t=(n.simulated=!0,e.dispatchEvent(n),new InputEvent("change",{bubbles:!0}));t.simulated=!0,e.dispatchEvent(t)},simulateClick:function(e){e.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0})),e.click()},isAutomationInQueue:function(t){return!!uw.find(this.automationQueue,function(e){return t.id===e.id})},popQueue:function(){var e=mw,n=this.automationQueue[0];"autoclick"===n.type&&(e=gw);return Dt(function(){return this.getElement(n,vw).then(function(e){if(e)if(e.disabled)this.automationQueue=[],cw.log("automation target found but disabled. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug");else{switch(n.type){case"autofill":var t=this.getValue(n);this.injectText(e,t);break;case"autoclick":this.simulateClick(e)}this.automationQueue.shift(),this.automationQueue.length&&this.popQueue()}else this.automationQueue=[],cw.log("automation target element not found. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug")}.bind(this))}.bind(this),e)},setActive:function(e){pw=e}};function bw(e){var t;e.step&&(this.setActive({guide:e.step.guide,step:e.step}),e.params)&&((e=uw.find(e.params,function(e){return"automationIds"===e.name&&uw.isArray(e.value)&&e.value.length}))?(e=this.getAutomationConfigs(e.value),t=!this.automationQueue.length,this.automationQueue=this.automationQueue.concat(e),t&&this.popQueue()):cw.log("no automation ids were found","debug"))}function Iw(e,i){return"undefined"!=typeof Proxy&&y.isFunction(i)?new Proxy(e,{get:function(e,t){if("textContent"===t)return i(e);if("parentNode"===t){var n=e[t];if(e.ownerDocument!==n)return Iw(e[t],i)}return y.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}Tw=wi(function(n){{var e;Sw.eventProperties&&Sw.eventProperties.length&&(e=function c(i){var r=Aw.ConfigReader.get("eventPropertyMatchParents");var e=b();var t={};var n;for(var o=0;o<Sw.eventProperties.length&&b()-e<50;o++){n=Sw.eventProperties[o];var a=Sw._.any(n.featureRules,function(e){try{var t=kw(r,Cw);return t(i,e)}catch(n){return!1}});if(a)for(var s=0;s<n.eventPropertyRules.length&&b()-e<50;s++){var d=n.eventPropertyRules[s];if(!d.name)return;t[d.name]=Lw(d,i)}}var u=b()-e;if(50<u){if(r&&Cw===Sw._.identity&&Sw._.isFunction(Sw.getText))return Sw.log("switching event property collection to fast text implementation"),Cw=function(e){return Iw(e,function(e){return Sw.getText(e,128)})},c(i);Mw(50,n)}return t}(n.target),y.pairs(e).forEach(function(e){var t=e[0],e=e[1];n.addEventProperty(t,e)}))}}),_w=wi(function(){var e={};if(ww)return{};var t=Aw.ConfigReader.get("eventPropertyConfigurations");if(!t||Sw._.isEmpty(t))return{};if(e=function(e){for(var t,n=b(),i={},r=0;r<e.length&&b()-n<50;r++){if(!(t=e[r]).name)return;var o=Lw(t);o&&(i["_pendo_"+t.name]=o)}50<b()-n&&Mw(50,t);return i}(t),Sw._.isEmpty(e))return{};return e});var ww,Cw,Sw,Aw,Ew,Tw,_w,xw,Rw={name:"EventProperties",initialize:function(e,t){Aw=t,Cw=(Sw=e)._.identity,ww=!1,Sw.getEventPropertyTarget=Fw,Sw.previewEventProperty=Lw,Aw.Events.onClickCaptured.off(Ow),Aw.Events.onClickCaptured.on(Ow),Aw.Events.ready.on(Nw)},teardown:function(){Aw.Events.onClickCaptured.off(Ow),Aw.Events.ready.off(Nw),Aw.store.dispatch("location/removeInternalTransforms",Ew),Ew=[],Aw.store.dispatch("location/stopPolling")},collectClickEventProperties:Tw,collectEventProperty:Lw,collectPageEventProperties:_w,getEventPropertyTarget:Fw,addPageEventProperties:Nw};function kw(e,n){return e?function(e,t){return 0<Sw.dom(n(e)).closest(t).length}:function(e,t){return Sw.Sizzle.matchesSelector(e,t)}}function Ow(e){Tw(e.data[0])}function Nw(){var e;e=Aw.ConfigReader.get("eventPropertyConfigurations"),Ew=e&&!Sw._.isEmpty(e)?[new sb("search","AddTo",function(){return _w()})]:[],Aw.store.dispatch("location/addInternalTransforms",Ew),0<Ew.length&&Aw.store.dispatch("location/startPolling")}function Mw(e,t){Sw.log("event property collection disabled; collection took greater than "+e+" milliseconds.");e="ERROR event property collection exceeded time limit.";t.featureId?e+="\n For feature with id: "+t.featureId:e+="\n For page event with name: "+t.name,I.critical(e),t.featureId?Sw.eventProperties=[]:ww=!0}function Lw(e,t){if(e.path)return t=Fw(e,t),Sw._.get(t,e.path,undefined)}function Fw(e,t){e=e.source||e.selector;if(e&&t){for(var n,i=e,r=t;!n&&r;){try{if((n=Sw.Sizzle.matchesSelector(r,i)?r:Sw.Sizzle(i,r)[0])&&("password"===n.type||"hidden"===n.type))return}catch(o){return}r=_i.getParent(r)}return n}return e?!(t=Sw.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}function Pw(){var e;of().enabled&&(A.commit("debugger/debuggingEnabled",!0),Gw(),R("#pendo-client-debugger").length||(e=m.get("agentDebuggerPluginLoader"),iy.restartDebugger?iy.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=K(v).createScriptURL(Do("debugger-plugin.min.js")),R.getBody().appendChild(e)),S.debuggerLaunched.trigger()))}function Gw(){xw=xw||{store:A,ConfigReader:m,getState:function(){return JSON.stringify(A.state)},getEventCache:function(){return[].concat(_s)},getAllGuides:function(){return[].concat(k)},getAutoGuides:function(){return xh.sortAndFilter(k,v.autoOrdering)},getBadgeGuides:function(){return y.filter(k,Pu)},getLauncherGuides:function(){return[]},getEventHistory:function(){return[]},getAllFrames:function(){return A.getters["frames/allFrames"]()},getChannelType:function(){return A.getters["frames/channelType"]()},isStepShownInFrame:function(e,t){return A.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:Tu,getBody:R.getBody,isMobileUserAgent:et.isMobileUserAgent,areGuidesDelayed:Rv,doesElementMatchContainsRules:Tm,getMetadata:yp,isStagingServer:ne,AutoDisplay:xh,isLeader:Hu,Events:S},v.debugging=xw}function Dw(e){var t;return af()?e?t:"debugging already enabled":Hu()?((t=of()).enabled=!0,w.write(rf,JSON.stringify(t),null,!0),Pw(),e?t:"debugging enabled"):void 0}function Bw(){if(!af())return"debugging already disabled";A.commit("debugger/debuggingEnabled",!1);var e=of();return e.enabled=!1,w.write(rf,JSON.stringify(e),null,!0),v.debugging=null,delete v.debugging,R("#pendo-client-debugger").remove(),"debugging disabled"}y.extend(function(e){I.debug(e,{contexts:["debug"]})},xw);var Ww,$w,Uw=function(e,t,n){var i;return t.getters["frames/leaderExists"]()?n.resolve():(i=n.defer(),e.on("leaderChanged",function(){i.resolve()}),i.promise)},jw={name:"DebuggerLauncher",initialize:function(n,e){var i=e.Events,r=e.q;$w=e.store,Uw(i,$w,r).then(function(){$w.dispatch("debugger/init"),$w.getters["frames/isLeader"]()&&Pw()}),ps("pendo-debugger::launch",function(e,t){e.config.apiKey===n.apiKey&&Uw(i,$w,r).then(function(){t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!af()&&$w.getters["frames/isLeader"]()&&Dw(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",zw);(Ww=n).isDebuggingEnabled=function(e){return af(e=void 0===e?!1:e)},n.enableDebugging=Dw,n.disableDebugging=Bw,n.addDebuggingFunctions=Gw},teardown:function(){hs("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",zw),Ww.debugging&&Ww.debugging.teardown&&Ww.debugging.teardown();Bw()}};function zw(e){var t=e.blockedURI,n=e.documentURI,i=e.originalPolicy,e=e.violatedDirective;t&&-1!==t.indexOf("pendo")&&$w.dispatch("debugger/onCspError",{blockedURI:t,documentURI:n,originalPolicy:i,violatedDirective:e})}nC=[],iC=100,rC=4,oC=500,aC=["TEXTAREA","INPUT"],sC=!(tC=0),dC={},uC="previous_page_loads",cC="errorClickLogging",pC=!(lC=1500);var Zw,Vw,Yw,Hw,Kw,Xw,Jw,qw,Qw,eC,tC,nC,iC,rC,oC,aC,sC,dC,uC,cC,lC,pC,hC={name:"FrustrationEvent",initialize:function(e,t){Kw=(eC=e)._,tC=0,nC=[],Xw=[],dC={},pC=(Zw=t).ConfigReader.get(cC),this.detachErrorEvent=Zw.attachEvent(window,"error",AC,!0),this.detachDocumentEvents=function(){for(var e=Ut(Ut([],["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],!0),["visibilitychange","selectionchange","scroll"],!1),t=[],n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(Zw.attachEvent(window,e[n],mC,!0));break;case"visibilitychange":t.push(Zw.attachEvent(window,e[n],function(){gC(250)},!0));break;default:t.push(Zw.attachEvent(window,e[n],gC,!0))}return t}(),Zw.Events.on("eventCaptured",TC),Zw.agentStorage.registry.addSession(uC),eC.sniffer.MutationObserver&&(e=_t("MutationObserver"),(Jw=new e(vC)).observe(eC.dom.getBody(),{childList:!0,attributes:!0,subtree:!0}))},teardown:function(){Zw.Events.off("eventCaptured",TC),this.detachErrorEvent&&(this.detachErrorEvent(),this.detachErrorEvent=null);if(this.detachDocumentEvents){for(var e=0;e<this.detachDocumentEvents.length;e++)this.detachDocumentEvents[e]();this.detachDocumentEvents=null}Jw&&Jw.disconnect()},addErrorClickLog:wC,getErrorEventTarget:SC,checkErrorEvent:AC,observeDOMMutation:vC};function fC(t){void 0===t&&(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()),(nC=Kw.filter(nC,function(e){return t-e.timestamp<=iC})).length&&Dt(fC,iC)}function gC(e){void 0===e&&(e=oC),sC=!1,Kw.each(dC,function(e){clearTimeout(e)}),dC={},Dt(function(){sC=!0},e)}function mC(){var e=document.getSelection().toString();(qw||e.length)&&(gC(),qw=!!e.length)}function vC(e){e.length&&gC()}function yC(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function bC(e){return e&&yC(e.element)}function IC(e,t){var n=e.frustrationTypes,n=void 0===n?[]:n;Kw.contains(n,t)||(n.push(t),e.frustrationTypes=n)}function wC(e,t){var n=t.detail,n=void 0===n?{}:n,n=(bC(n)&&n.error?n.error:t).message;n&&n.length>lC&&(n=n.substring(0,lC)),e.errorClickLog=n}function CC(e,t){var n,i,r=t.target&&"A"===t.target.tagName&&t.target.hasAttribute("href"),o=t.target&&!Kw.contains(aC,t.target.tagName);sC&&!qw&&o&&!r&&(n=e,i=Dt(function(){delete dC[i],IC(n,"deadClick")},oC),dC[i]=i),9<nC.length&&nC.pop(),nC.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Dt(fC,iC),Kw.each(Xw,function(e){AC(e)}),Vw?(o=t,e.browser_time-Vw<=1e3&&Math.abs(Yw-o.x)<=30&&Math.abs(Hw-o.y)<=30?tC++:(tC=1,Yw=t.x,Hw=t.y),Vw=e.browser_time,4===tC&&(Vw=null,IC(e,"rageClick"))):(Vw=e.browser_time,Yw=t.x,Hw=t.y,tC=1)}function SC(e){if(yC(e.target))return bC(e=void 0===(e=e.detail)?{}:e)?e.element:yC(document.activeElement)?document.activeElement:void 0}function AC(t){var n,i,e,r=SC(t);r&&((n=Kw.find(nC,function(e){return(e.target===r||e.activeElement===r)&&t.timeStamp-e.timestamp<iC}))?(e=Kw.find(eC.buffers.events,i=function(e){return e.browser_time===n.browser_time&&"click"===e.type})||Kw.find(eC.buffers.silos,function(e){return Kw.find(e,i)}))&&(IC(e,"errorClick"),pC)&&wC(e,t):(Kw.contains(Xw,t)||Xw.push(t),Xw.length>rC&&Xw.pop()))}function EC(e){var t;null!=(t=Zw.sessionStorage.getItem(uC))&&0<t.length&&(t=JSON.parse(t)),Qw=Kw.isArray(t)?t:[],function(e){var t,n;if(!(Qw.length<2))return t=Qw[0],n=Qw[1],t&&n&&t.url&&n.url&&t.browser_time&&n.browser_time?t.url===e.url&&e.browser_time-n.browser_time<=7e3&&n.url!==e.url:void 0}(e)&&IC(e,"uTurn"),2===Qw.length&&Qw.shift(),Qw.push({url:e.url,browser_time:e.browser_time}),t=Qw,Zw.sessionStorage.setItem(uC,JSON.stringify(t))}function TC(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&CC(t,e),"load"===t.type&&EC(t),"submit"!==t.type&&"change"!==t.type||gC(),Kw.has(e,"target")&&Kw.contains(aC,e.target.tagName));"focus"===t.type&&e&&gC()}NC=[];var _C,xC,RC,kC,OC,NC,MC={name:"EmbeddedGuides",activeEmbeddedGuides:OC=[],initialize:function(e,t){_C=t,kC=(xC=e)._,function(e){e.getEmbeddedGuides=$C,e.getActiveEmbeddedGuides=UC}(e),RC=function(e){var r=e.store,o=e.globalPendo,a=o._;return{show:function(e){var t=a.first(this.steps),n=a.map(this.steps,function(e){return e.id}),n=a.pick(r.state.guideState.steps,n),i=null;return a.isEmpty(n)||(i=a.max(n,function(e){return e.time||0})),(this.nextStep(i)||t).show(e)},isShownInThisFrame:function(){return a.any(this.steps,function(e){return e.isRendered()||e.isLocked()})},getActiveStep:function(){return this?a.find(this.steps,function(e){return e.isShown()}):null},handleShow:function(){var e,t=null,n=a.get(this,"attributes.embedConfig.selector"),i=a.get(this,"attributes.embedConfig.method"),n=a.first(o.Sizzle(n)),r=this.isShownInThisFrame();n&&r&&(e="#pendo-guide-container-".concat(a.get(this.getActiveStep(),"id")),t=!!o.Sizzle(e,n).length),!r&&n&&this.shouldAutoDisplay()?"replace"===i&&o.Sizzle('[id^="pendo-guide-container"]',n).length||this.show("embed"):!r||n&&t||this.hide()},shouldAutoDisplay:function(){return this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||a.all(this.steps,function(e){return e.shouldRepeat()||!e.isSnoozed()&&"dismissed"!==e.seenState})}}}({store:_C.store,globalPendo:xC}),_C.Events.on("deliverablesLoaded",PC),_C.Events.on("guideLoopStopped",FC),_C.Events.on("guideListChanged",WC),_C.GuideLoop.addUpdatePhase(LC),_C.guides.addProcessor(GC),_C.GuideActivity.registerGuideResolver(BC),this.removeResizeEvent=e.attachEvent(window,"resize",DC)},teardown:function(){PC(),_C.Events.off("deliverablesLoaded",PC),_C.Events.off("guideLoopStopped",FC),_C.Events.off("guideListChanged",WC),_C.GuideLoop.removeUpdatePhase(LC),_C.guides.removeProcessor(GC),_C.GuideActivity.removeGuideResolver(BC),this.removeResizeEvent&&this.removeResizeEvent();NC.length=0}};function LC(){kC.forEach(OC,function(e){e.handleShow()})}function FC(){kC.forEach(OC,function(e){e.isShownInThisFrame()&&e.hide()})}function PC(){NC=kC.toArray(OC),_C.guides.removeDisplayableGuides("embeddedGuides"),OC.length=0}function GC(t){var e;return!(e=t)||!e.launchMethod||"embed"!==e.launchMethod||(kC.some(OC,function(e){return e.id===t.id})||OC.push(t),!1)}function DC(){kC.forEach(OC,function(e){e=e.getActiveStep();e&&!xC.ignoreResize&&e.redraw()})}function BC(e){if(OC.length){var t,n="pendo-base-";if(kC.isString(e.id)&&0===e.id.indexOf(n)){var i=e.id.substring(n.length);return(n=kC.find(OC,function(e){t=kC.find(e.steps,function(e){if(e.id===i)return e});return!!t}))&&t?{guide:n,step:t}:null;return}else return kC.isObject(e.parentElem)?BC(e.parentElem):null}return null}function WC(){kC.each(NC,function(t){var e=kC.findIndex(OC,function(e){return e.id===t.id});-1===e&&t.isShownInThisFrame()?t.hide():t.isFrameProxy||(OC[e]=t)}),NC.length=0,_C.guides.registerDisplayableGuides("embeddedGuides",OC),kC.map(OC,function(e){Object.assign(e,RC),kC.map(e.steps,function(e){var t=function(e){var n=e.pluginApi;e._;return this._onShown||Object.defineProperty(this,"_onShown",{value:this.onShown,writable:!1,configurable:!1}),this._onShown?{onShown:function(e){var t=!this.lastSeenAt||!!n.ConfigReader.get("enableAllEmbeddedGuideEvents");return this._onShown(e,t)}}:null}.call(e,{pluginApi:_C,_:kC});Object.assign(e,t)})})}function $C(){return MC.activeEmbeddedGuides}function UC(){return MC.activeEmbeddedGuides.filter(function(e){return e.isShown()})}var jC="sessionId";function zC(){this.name="SessionManager"}zC.prototype.initialize=function(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"ready",y.bind(this.ready,this)),this.api.attachEvent(this.api.Events,"eventCaptured",y.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.api.agentStorage.registry.addLocal(jC),this.api.agentStorage.registry.addLocal("sessionLastUserInteractionEvent"),this.api.store.getters["frames/isReady"]()&&this.ready()},zC.prototype.teardown=function(){y.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0},zC.prototype.ready=function(){this.isReady||(this.sessionId(),this.isReady=!0)},zC.prototype.isExpired=function(e){var t=y.get(this._sessionInfo,"timestamp");return!!(t&&e-t>this.inactivityDuration)},zC.prototype.eventCaptured=function(e){var t;e&&e.data&&e.data.length&&(e=e.data[0],this.ready(),t=e.browser_time||(new Date).getTime(),this.isExpired(t)&&(this.clearSessionInfo(),this.api.Events.sessionChanged.trigger()),this.storeLastInteractionEventInformation(t),e.sessionId=this.sessionId())},zC.prototype.sessionId=function(e){var t;return void 0===e&&(e=this.pendo.randomString(16)),this._sessionInfo||((t=this.api.agentStorage.read(jC))||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(jC,t)),this._sessionInfo=JSON.parse(t)),this._sessionInfo.sessionId},zC.prototype.clearSessionInfo=function(){delete this._sessionInfo,this.api.agentStorage.clear(jC),this.sessionId()},zC.prototype.storeLastInteractionEventInformation=function(e){this._sessionInfo.timestamp=e,this.api.agentStorage.write(jC,JSON.stringify(this._sessionInfo))};var ZC=new zC;function VC(){this.name="SegmentFlags"}VC.prototype.initialize=function(e,t){var n="requestSegmentFlags",e=(this.pendo=e,(this.api=t).ConfigReader);e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],!1),this.segmentFlagsEnabled=e.get(n),this.segmentFlagsEnabled&&(this.mostRecentSegmentsRequest=null,this.pendo.segmentsPayload=this.pendo._.bind(this.segmentsPayload,this),this.handleMetadataChange=this.pendo._.debounce(this.pendo._.bind(this.requestSegmentFlags,this),50),this.handleReadyBound=this.pendo._.bind(this.handleReady,this),this.api.Events.ready.on(this.handleReadyBound),this.api.Events.metadata.on(this.handleMetadataChange),this.api.Events.identify.on(this.handleMetadataChange))},VC.prototype.teardown=function(){this.segmentFlagsEnabled&&(this.pendo.segmentsPayload=this.pendo._.noop,this.handleMetadataChange.cancel(),this.api.Events.ready.off(this.handleReadyBound),this.api.Events.metadata.off(this.handleMetadataChange),this.api.Events.identify.off(this.handleMetadataChange))},VC.prototype.handleReady=function(){this.ready=!0,this.requestSegmentFlags()},VC.prototype.requestSegmentFlags=function(){if(this.ready){var e,t=this.pendo._.uniqueId(),n=(this.mostRecentSegmentsRequest=t,{visitorId:this.pendo.get_visitor_id(),accountId:this.pendo.get_account_id(),metadata:this.pendo.getSerializedMetadata(),url:this.pendo.url.get()}),i=this.pendo.compress(n),t={id:t,jzb:i,v:this.pendo.VERSION,ct:(new Date).getTime()},n=(this.api.agent.treatAsAdoptPartner()&&n.accountId&&"ACCOUNT-UNIQUE-ID"!==n.accountId&&(t.acc=this.api.util.base64EncodeString(n.accountId)),"script"===this.pendo.LOADER?"segmentflag.js":"segmentflag.json"),n=this.api.transmit.buildBaseDataUrl(n,this.pendo.apiKey,t),r=this.api.agent.getJwtInfoCopy();try{n.length>this.api.constants.URL_MAX_LENGTH||!this.pendo._.isEmpty(r)?(delete t.jzb,n=this.api.transmit.buildBaseDataUrl("segmentflag.json",this.pendo.apiKey,t),e=this.pendo._.extend({events:i},r),this.postLoad(n,e)):"script"===this.pendo.LOADER?this.scriptLoad(n):this.getLoad(n)}catch(o){this.api.log.error("Failed to load segment flags",{error:o})}}},VC.prototype.segmentsPayload=function(e){!this.mostRecentSegmentsRequest||this.pendo._.isString(e.id)&&e.id!==this.mostRecentSegmentsRequest||(this.pendo.segmentFlags=e.segmentFlags,this.api.log.info("successfully loaded segment flags"),this.mostRecentSegmentsRequest=null)},VC.prototype.scriptLoad=function(e){this.pendo.loadResource(e,this.pendo._.noop)},VC.prototype.getLoad=function(n){return Wt(this,void 0,void 0,function(){var t;return $t(this,function(e){switch(e.label){case 0:return[4,this.pendo.ajax.get(n)];case 1:return t=e.sent(),this.segmentsPayload(t.data),[2]}})})},VC.prototype.postLoad=function(n,i){return Wt(this,void 0,void 0,function(){var t;return $t(this,function(e){switch(e.label){case 0:return[4,this.pendo.ajax.postJSON(n,i)];case 1:return t=e.sent(),this.segmentsPayload(t.data),[2]}})})};var YC=new VC,HC=["google","bing","yahoo","duckduckgo","baidu","yandex","aol","ask","excite","lycos","webcrawler","infoseek","dogpile","altavista","netscape","hotbot","looksmart","gigablast","teoma","alltheweb","search.com","mamma","metacrawler","ixquick","searchy","searchalot","searchengine","searchenginez","searchengineland","searchenginewatch","searchengineworld","searchenginejournal","searchengineguide","searchengineforums"],KC=new RegExp("(".concat(HC.join("|"),")"),"i"),XC=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat"],JC=new RegExp("(".concat(XC.join("|"),")"),"i"),qC=["youtube","vimeo","dailymotion","twitch","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],QC=new RegExp("(".concat(qC.join("|"),")"),"i"),eS=new RegExp("(".concat(["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco"].join("|"),")"),"i"),tS=new RegExp("(".concat(["google performance max","microsoft audience network","facebook audience network"].join("|"),")"),"i");function nS(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}var iS=new RegExp("^(.*cp.*|ppc|retargeting)$"),rS=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i"),oS=[["Email",function(e){var t=e.source,n=e.medium;return"direct"===e.referrer&&(null!==n.match(rS)||null!==t.match(rS)||"newsletter"===n)}],["Paid Search",function(e){var t=e.source,n=e.medium,i=e.gclid,e=e._;return i||"paid-search"===n||n.match(iS)&&e.contains(HC,t)}],["Organic Search",function(e){var t=e.source,n=e.medium,i=e.referrer,e=e._;return"organic"===n&&e.contains(HC,t)||!n&&nS(KC,i)}],["Display",function(e){var t=e.medium;return e._.contains(["display","cpm","banner","interstitial","expandable","programmatic"],t)}],["Paid Social",function(e){var t=e.source,n=e.medium,i=e.fbclid,e=e._;return i||"paid-social"===n||n.match(iS)&&e.contains(XC,t)}],["Organic Social",function(e){var t=e.source,n=e.medium,i=e.referrer,e=e._;return!n&&nS(JC,i)||"social"===n||e.contains(XC,t)}],["Paid Shopping",function(e){e=e.medium;return"shopping"==e||"paid-shopping"==e}],["Organic Shopping",function(e){var t=e.medium,e=e.referrer;return"organic-shopping"===t||!t&&nS(eS,e)}],["Paid Video",function(e){var t=e.medium,n=e.source,e=e._;return"paid-video"==t||!t.match(iS)&&e.contains(qC,n)}],["Organic Video",function(e){var t=e.medium,e=e.referrer;return"video"===t||!t&&nS(QC,e)}],["Affiliates",function(e){e=e.medium;return"affiliate"===e||"partner"===e}],["Audio",function(e){e=e.medium;return"podcast"===e||"audio"===e}],["Cross-network",function(e){var t=e.source;return"cross-network"===e.medium||t.match(tS)}],["Other Advertising",function(e){e=e.medium;return"cpv"===e||"cpa"===e}],["SMS",function(e){var t=e.source,e=e.medium;return"sms"===t||"sms"===e}],["Mobile Push Notifications",function(e){var t=e.source,e=e.medium;return e.endsWith("push")||0<=e.indexOf("mobile")||0<=e.indexOf("notification")||"firebase"===t}],["Referral",function(e){var t=e.medium,e=e.referrer;return"referral"===t||!!e&&"self"!==e&&"direct"!==e}],["Paid Other",function(e){var t=e.medium;return e.source,e._,"paid-other"==t||t.match(iS)}],["Other",function(e){return!!e.medium}],["Direct",function(e){var t=e.source;return!e.medium&&!t}]],aS="utm",sS="enableFullUtmReferrer";function dS(){this.name="WebAnalytics"}dS.prototype.initialize=function(e,t){this.pendo=e;var n=(this.api=t).ConfigReader,n=(n.addOption(sS,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),e._.bind),n=(this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",n(this.addUtmToEvent,this)),t.attachEvent(t.Events,"sessionChanged",n(this.sessionChanged,this))],this.loadParameters(t.agentStorage));n&&!e._.isEmpty(n)||(n=this.extractParameters(window.location.href,document.referrer)),this.api.agentStorage.registry.addLocal(aS),this.storeParameters(n,t.agentStorage)},dS.prototype.extractParameters=function(e,t){var n=new Ci(e).hostname,n=(i=(n={referrer:t,currentHost:n}).referrer,n=n.currentHost,i&&""!==i?(r="self",(i=new Ci(i).hostname)!==n?null==i?void 0:i.toLowerCase():r):"direct");if("self"!==n){var i=this.api.util.parseUrl(e);if(!i)return{};var r=i.query,e=r.utm_source,i=r.utm_medium,o=r.utm_campaign,a=r.utm_term,s=r.utm_content,d=r.gclid,u=r.fbclid;if(this.pendo._.compact([e,i,o,a,s,d]).length)return(e={source:e,medium:i,campaign:o,term:a,content:s}).channel=this.calculateUtmChannel({referrerValue:n,utm:e,gclid:d,fbclid:u}),t&&this.api.ConfigReader.get(sS)?e.referrer=t:"direct"!==n&&(e.referrer=n),e}return{}},dS.prototype.calculateUtmChannel=function(e){var t=e.referrerValue,n=e.utm,i=e.gclid,e=e.fbclid,r=(null==(r=n.medium)?void 0:r.toLowerCase())||"",n=(null==(n=n.source)?void 0:n.toLowerCase())||"",o={_:this.pendo._,referrer:t,source:n,medium:r,gclid:i,fbclid:e},t=this.pendo._.find(oS,function(e){return e[1](o)});return t?t[0]:"Direct"},dS.prototype.storeParameters=function(e,t){0<this.pendo._.size(e)&&(this.utm=e,t.write(aS,JSON.stringify(e)))},dS.prototype.loadParameters=function(e){e=e.read(aS);return e?JSON.parse(e):null},dS.prototype.teardown=function(){for(var e=0,t=this.subscriptions;e<t.length;e++)(0,t[e])();this.subscriptions.length=0,this.utm=null},dS.prototype.addUtmToEvent=function(e){this.utm&&(e.data[0].utm=this.utm)},dS.prototype.sessionChanged=function(){this.utm=null;var e=this.api.agentStorage,t=(e.clear(aS),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)};var uS=new dS,cS={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},lS={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},pS={children:[],props:{"class":"_pendo-step-container-size","data-relative-alignment":!0,"data-vertical-alignment":"Relative to Element",id:"pendo-g-validation-tooltip-container",style:{display:"block",width:"300px","z-index":3e5}},type:"div"},hS={children:[],props:{"class":"_pendo-step-container-styles",id:"pendo-guide-container",role:"dialog","data-caret-enabled":!0,"data-caret-height":"15px","data-caret-width":"15px",style:{"background-color":"rgba(255, 255, 255, 1)",border:"1px solid #BBBBBB","border-radius":"5px",padding:"8px 12px","box-shadow":"0px 0px 10px 0px rgba(190, 190, 190, 0.5)"},tabindex:-1},type:"div"},fS={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function gS(e,t){return{content:t,props:{id:"text-".concat(e),"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function mS(e){var e=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement,t=document.createElement("div");return t.style.marginRight="5px",t.appendChild(e),t}var vS='\n<svg xmlns="http://www.w3.org/2000/svg" \n width="10" height="10" fill="none"\n stroke="gray" stroke-linecap="round" stroke-linejoin="round" \n stroke-width="2" viewBox="0 0 10 10">\n <line x1="2" y1="5" x2="8" y2="5"/>\n</svg>\n',yS='\n<svg xmlns="http://www.w3.org/2000/svg" \n width="10" height="10" viewBox="0 0 10 10" \n fill="none" stroke="green" stroke-width="2" \n stroke-linecap="round" stroke-linejoin="round" \n class="feather feather-check">\n <polyline points="2 5 4 7 8 2"></polyline>\n</svg>\n',bS='\n<svg xmlns="http://www.w3.org/2000/svg" \n width="10" height="10" viewBox="0 0 10 10" \n fill="none" stroke="red" stroke-width="2" \n stroke-linecap="round" stroke-linejoin="round" \n class="feather feather-x">\n <line x1="2" y1="2" x2="8" y2="8"/>\n <line x1="8" y1="2" x2="2" y2="8"/>\n</svg>\n',IS={emailRegex:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,phoneRegex:/^(\+\d{1,2}\s?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,urlRegex:/^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/},wS={"MM-DD-YYYY":/^(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])-(19|20)\d\d$/,"DD-MM-YYYY":/^(0[1-9]|[12][0-9]|3[01])-(0[1-9]|1[0-2])-(19|20)\d\d$/,"MM/DD/YYYY":/^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/(19|20)\d\d$/,"DD/MM/YYYY":/^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[0-2])\/(19|20)\d\d$/,"YYYY-MM-DD":/^(19|20)\d\d-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/},CS={email:function(e){return IS.emailRegex.test(e)},phone:function(e){return IS.phoneRegex.test(e)},date:function(e,t){return(wS[(t=void 0===t?{}:t).format]||wS["MM/DD/YYYY"]).test(e)},url:function(e){return IS.urlRegex.test(e)},number:function(e,t){var n,i,r,o;return""!==e&&(n=(t=void 0===t?{}:t).min,i=t.max,t=t.allowDecimal,r=SS(n),o=SS(i),r&&(n=Number(n)),o&&(i=Number(i)),e=Number(e),!isNaN(e))&&!(r&&e<n||o&&i<e||!t&&e%1!=0)},characterLength:function(e,t){var n=(t=void 0===t?{}:t).min,t=t.max,i=SS(n),r=SS(t);return i&&(n=Number(n)),r&&(t=Number(t)),!(i&&e.length<n||r&&e.length>t)}};function SS(e){return e!==undefined&&null!==e&&""!==e}RS=null;var AS,ES,TS,c,p,_S,xS,RS,kS={name:"FormValidation",validationGuides:xS=[],debouncedValidate:TS,initialize:function(e,t){var n;t.ConfigReader.get("formValidation")&&(AS=e,ES=t,TS=y.debounce(US,100),ES.Events.on("deliverablesLoaded",NS),ES.Events.on("guideLoopStopped",MS),ES.Events.on("guideListChanged",LS),ES.GuideLoop.addUpdatePhase(PS),ES.guides.addProcessor(GS),n=!(null==AS||!AS.designer),_S=setInterval(function(){n&&(OS(),clearInterval(_S),_S=null)},1e3),e.attachEvent(document,"focusin",BS),e.attachEvent(document,"focusout",WS),e.attachEvent(document,"input",TS))},teardown:OS,appendValidationStyles:DS,getActiveStep:function(){return c},setActiveStep:function(e){c=e},setActiveField:function(e){p=e},getActiveField:function(){return p},getActiveFieldIsValid:function(){return RS},setActiveFieldIsValid:function(e){RS=e},getValidationGuides:function(){return xS},setValidationGuides:function(e){xS=e},initializeFormValidation:LS,clearAllValidationGuides:NS,extractValidationGuides:GS,applyFormBehaviors:FS,checkValidationFieldVisibility:PS,hideValidationTooltip:MS,focusField:BS,blurField:WS,findFieldByElement:$S,validateInput:US,validateField:jS,getRuleText:zS,setValidationStyle:ZS};function OS(){ES&&(_S&&(clearInterval(_S),_S=null),ES.Events.off("deliverablesLoaded",NS),ES.Events.off("guideLoopStopped",MS),ES.Events.off("guideListChanged",LS),ES.GuideLoop.removeUpdatePhase(PS),ES.guides.removeProcessor(GS),AS.detachEvent(document,"focusin",BS),AS.detachEvent(document,"focusout",WS),AS.detachEvent(document,"input",TS),TS.cancel(),xS=[],RS=p=c=null)}function NS(){ES.guides.removeDisplayableGuides("validationGuides"),xS=[]}function MS(){AS.detachEvent(document,"focusin",BS),p&&(RS=p=null),c&&(c.hide({validationHidden:!0}),c=null)}function LS(){DS(),ES.guides.registerDisplayableGuides("validationGuides",xS),FS()}function FS(){y.map(xS,function(e){y.map(e.steps,function(e){var t=function(){var t,n,i;return this.attributes?(n=(t=this).show,i=t.hide,{show:function(e){return!t.attributes.validationHidden&&n.call(t,e)},hide:function(e){return e&&e.validationHidden&&(t.attributes.validationHidden=!0),i.call(t,e)}}):(I.info("buildFormStepBehaviors called with invalid context"),{})}.call(e);Object.assign(e,t)})})}function PS(){var e;!p||(e=AS.Sizzle(c.elementPathRule)[0])&&AS.isElementVisible(e)||(RS=p=null,c.hide({validationHidden:!0}),c=null),((null==(e=qr.get(document).bubbleEvents)?void 0:e.focusin)||[]).some(function(e){return e.handler===BS})||AS.attachEvent(document,"focusin",BS)}function GS(t){return"form"!==t.launchMethod||y.some(xS,function(e){return e.id===t.id})||xS.push(t),!0}function DS(){var e=document.createElement("style");e.innerHTML='\n input[data-pendo-field-valid="false"] {\n border-color: red !important;\n outline-color: red !important;\n }\n ',document.head.appendChild(e)}function BS(e){var t,n,i,r,o,a,s,e=e.target;"INPUT"===e.tagName&&(t=$S(e))&&c&&(c.attributes.validationHidden=!1,c.domJson||(a=p.rules[0],s=gS("context-".concat(p.id),p.context),a=null!=a&&a.type?function(e,t){return t=gS(e,t),{props:{id:"rule-".concat(e),"class":"text-row",style:{display:"flex","align-items":"center"}},children:[t],type:"div"}}(a.id,a.ruleText):null,0!==(s=[s,a].filter(Boolean)).length&&(a=ge(cS),n=ge(lS),i=ge(pS),r=ge(hS),o=ge(fS),a.children.push(n,i),i.children.push(r),r.children.push(o),o.children=s,c.domJson=a)),c.show("api"),(i=document.getElementById("rule-".concat(null==(n=null==p?void 0:p.rules[0])?void 0:n.id)))&&null!=(r=null==p?void 0:p.rules[0])&&r.type&&(o=null===p.isValid?mS(vS):mS(RS?yS:bS),i.insertBefore(o,i.firstChild)),""!==t.value)&&jS(e)}function WS(e){e=e.target;p&&c&&(AS.Sizzle.matchesSelector(e,null==c?void 0:c.elementPathRule)&&ZS(e,RS),c.hide({validationHidden:!0}),null===p.isValid&&!1===RS&&(zS().props.style.color="red"),p.isValid=RS,RS=c=p=null)}function $S(t){c&&c.hide({validationHidden:!0}),RS=p=c=null;for(var e=0,n=xS;e<n.length;e++){var i=n[e],i=y.find(i.steps,function(e){return AS.Sizzle.matchesSelector(t,e.elementPathRule)});if(i)return p=null==(i=(c=i).attributes)?void 0:i.field,RS=p.isValid,p}return null}function US(e){var t,e=e.target;AS.Sizzle.matchesSelector(e,null==c?void 0:c.elementPathRule)?jS(e):(t=$S(e))&&(RS=t.isValid,jS(e))}function jS(e){var t,n,i=null==p?void 0:p.rules[0];i&&(n=CS[i.type])&&(i=n(e.value,i.options),RS=!!i,n=zS(),null===p.isValid?(n.props.style.color=i?"green":"gray",t=mS(i?yS:vS)):(n.props.style.color=i?"green":"red",t=mS(i?yS:bS),ZS(e,i)),c.hide({stepHidden:!0}),c.show("api"),n=document.getElementById("rule-".concat(p.rules[0].id)))&&n.insertBefore(t,n.firstChild)}function zS(){var e=p.rules[0].id;return Uc("text-".concat(e),c.domJson)}function ZS(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}YS.prototype.waitThenCheckForSubmit=function(){var e=this,t=this.q.defer();return Dt(function(){t.resolve(""===e.getPromptValue())},100),t.promise},YS.prototype.submit=function(t){t&&(this._.each(this.listeners,function(e){return e(t)}),this.latestPromptValue="")},YS.prototype.capturePromptValue=function(e){void 0===e&&(e=!1);var t=this.getPromptValue();!t&&e||(this.latestPromptValue=t)},YS.prototype.getPromptValue=function(){return this.inputEl.getText()},YS.prototype.onSubmit=function(e){this.listeners.push(e)},YS.prototype.teardown=function(){this.promptContainer.teardown(),this.inputEl.teardown(),this.submitEl.teardown()};var VS=YS;function YS(e,t,n,i,r){var o=this;this.listeners=[],this.latestPromptValue="",this.dom=e.dom,this._=e._,this.q=t.q,this.inputEl=new this.dom.Element(n),this.submitEl=new this.dom.Element(i),this.inputEl.addEventListener("change",function(e){o.capturePromptValue()},!0),this.inputEl.addEventListener("keydown",function(e){e="Enter"===e.code;o.capturePromptValue(e),e&&o.waitThenCheckForSubmit().then(function(e){e&&o.submit(o.latestPromptValue)})},!0),this.submitEl.addEventListener("click",function(){o.waitThenCheckForSubmit().then(function(e){e&&o.submit(o.latestPromptValue)})},!0),this.promptContainer=new this.dom.Observer,this.promptContainer.addObservers(this.inputEl,this.submitEl)}function HS(){this.name="PromptAnalytics",this.configName="aiAgents",this.prompts=[]}HS.prototype.initialize=function(e,t){var n=this;this.pendo=e,this.api=t,this._=this.pendo._,this.api.ConfigReader.addOption(this.configName,["pendoconfig","snippet"]),this.loadConfig(this.configName).then(function(e){return n.onConfigLoaded(e)})["catch"](function(){})},HS.prototype.loadConfig=function(e){var t=this.api,n=t.q,t=t.ConfigReader,n=n.defer(),e=t.get(e);return n.resolve(e),n.promise},HS.prototype.onConfigLoaded=function(e){var t=this;(e=void 0===e?[]:e)&&this._.isArray(e)&&0!==e.length&&this._.each(e,function(e){t.observePrompt(e)})},HS.prototype.observePrompt=function(e){var t=this,n=e.id,i=(e.containerCssSelector,e.cssSelectors),e=e.privacyFilters,i=(this.setFilters(e),this.agentId=n,e=this.parseCssSelector("input",i),n=this.parseCssSelector("submit",i),new VS(this.pendo,this.api,e,n));i.onSubmit(function(e){t.sendEvent(e)}),this.prompts.push(i)},HS.prototype.parseCssSelector=function(t,e){return this._.find(e,function(e){return e.type===t}).cssSelector},HS.prototype.setFilters=function(e){if(!e)return this.privacyFilters=null;try{this.privacyFilters=new RegExp(e,"gmi")}catch(t){this.privacyFilters=null,this.api.log.error(t)}return this.privacyFilters},HS.prototype.sendEvent=function(e){var t=this.applyPrivacyFilter(e);this.api.analytics.collectEvent("prompt",{prompt:t,agentId:this.agentId,promptType:"request",privacyFilterApplied:e!==t})},HS.prototype.applyPrivacyFilter=function(e){return this.privacyFilters&&this._.isRegExp(this.privacyFilters)?e.replace(this.privacyFilters,"redacted"):e},HS.prototype.teardown=function(){this._.each(this.prompts,function(e){return e.teardown()})};var KS=new HS;function XS(i){var e,t;(e=i).getVersion=ct,e.isReady=gy,e.pageLoad=Dd,e.getVisitorId=gi,e.getAccountId=mi,e.clearSession=bi,e.VERSION=dt,e.LOADER=ut,e.flushNow=u(function(e){return Bs(0,e)}),e.teardown=wi(Ay),e.initGuides=u(_v),e.loadGuides=u(cv),e.findGuideByName=u(Ou),e.hideGuides=u(am),e.onGuideDismissed=u(mm),e.goToStep=ym,e.onGuideAdvanced=u(bm),e.onGuidePrevious=u(Im),e.onGuideSnoozed=vm,e.startGuides=u(Uh),e.stopGuides=u(jh),e.defaultCssUrl=u(Xg()),e.getActiveGuides=Su,e.getActiveGuide=Uv,e.guideSeenTimeoutLength=bb.getGuideSeenTimeoutLength(),e.guidesPayload=tv,e.areGuidesDisabled=u(xv),e.setGuidesDisabled=u(kv),e.buildNodeFromJSON=F.buildNodeFromJSON,e.flexElement=u(F.flexElement),e.GuideFactory=u(Ic),e.dom=R,e.getText=Ka,e.attachEvent=u(l),e.detactEvent=u(vu),e.frames={setFrameVisibility:Ku},e.log=Uy,e.enableLogging=Gy,e.disableLogging=Dy,e.setActiveContexts=Hy,e.showLogHistory=Vy,e.getLoggedContexts=Yy,e.isDebuggingEnabled=y.noop,e.enableDebugging=y.noop,e.disableDebugging=y.noop,e.addDebuggingFunctions=y.noop,e.stopSendingEvents=u(Fs.lock),e.startSendingEvents=u(Fs.unlock),e.isSendingEvents=u(ca),e.fromByteArray=G.uint8ToBase64,e.events=u(Qu),e.track=u(Xy),e.validateInstall=Jy,e.validateNativeMethods=qy,e.validateBuiltInGlobals=Qy,e.validateUrl=eb,e.validateEnvironment=ib,e.doesExist=fe,e.generate_unique_id=ti,e.TEMP_PREFIX=Xn,e.SIZE_UNIQUE_ID=Jn,e.defaultLauncher=y.noop,e.toggleLauncher=y.noop,e.showLauncher=y.noop,e.hideLauncher=y.noop,e.removeLauncher=y.noop,e.identify=gp,e.get_visitor_id=gi,e.set_visitor_id=function(e){gp(e)},e.get_account_id=mi,e.set_account_id=function(e){gp(E(),e)},e.getSerializedMetadata=bp,e.compress=yt,e.squeezeAndCompress=yt,e.randomElement=St,e.randomString=At,e.toUTF8Array=ft,e.getNumberFromText=Ot,e._addCredits=u(wm),e.getCurrentUrl=Vm,e.getNormalizedUrl=Vm,e.testUrlForStep=u(Hm),e.showGuideByName=u(Km),e.showGuideById=u(Xm),e.designerv2=eg,e.P2AutoLaunch=u(bg),e.BuildingBlocks=u(rb),e.onConnectMessage=y.noop,e.buffers=Fs,e.guideDev=u(_y),e.badgesShown=u(wu),e.get_pendo_cookie=un,e.DEFAULT_EXPIRE_LEN=ln,e.set_pendo_cookie=hn,e.loadResource=os,e.loadWatcher=as,e.messageLogger=ss,e.messageReceiver=ds,e.messageValidator=us,e.MESSAGE_TYPES=ls,e.messageDispatcher=fs,e.moduleRegistry=gs,e.addModule=ms,e.hasModule=u(vs),e.findModuleByName=u(ys),e.modulesWaiting=bs,e.loadModules=Is,e.moduleLoader=ws,e.TOOLTIP_DEFAULT_WIDTH=430,e.TOOLTIP_DEFAULT_HEIGHT=200,e.TOOLTIP_ARROW_SIZE=15,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e.sniffer=et,e.url=Lo,e.location=mb,e.Sizzle=Xr,e._=y,e.ajax=oo,e.Zlib=bt,e.guideContent=u(_c.guideContent),e.receiveDomStructureJson=u(_c.receiveDomStructureJson),e.addExtension=Tp,(t=i).SHADOW_STYLE="",y.extend(t,{_showElementGuide:y.noop,flushEventCache:Ab(null,"flushEventCache",Cb),HOST:ko,MAX_LENGTH:Os,MAX_NUM_EVENTS:ks,_createToolTip:y.noop,_get_tooltip_dimensions:y.noop,_isOldIE:u(Ab(We,"_isOldIE",wb)),_logMessage:Ab(ia,"_logMessage",wb),_sendEvent:Ab(null,"_sendEvent",Cb),_sendGuideEvent:Ab(null,"_sendGuideEvent",Cb),_stopEvents:!1,_storeInCache:Ab(null,"_storeInCache",Cb),_writeEventImgTag:Ab(null,"_writeEventImgTag",Cb),_writeImgTag:u(Ab(oa,"_writeImgTag",wb)),getUA:Ab(je,"getUA",wb),ifDebugThen:Ab(null,"ifDebugThen",Cb),send_event:u(Ab(Qs,"send_event","has changed to pendo.cache.createEvent")),wire_page:Ab(hu,"wire_page",wb),messageOriginTester:Ab(null,"messageOriginTester",Cb),findGuideBy:u(Ru),findGuideById:u(ku),findStepInGuide:u(Nu),_updateGuideStepStatus:u(rm),_addCloseButton:u(nm),initialize:by,getEventCache:u(wv),processEventCache:u(Iv),isGuideShown:u(tm),_getNextStepInMultistep:u(Zm),attachEvent:l,detachEvent:vu,updateOptions:fp,createLauncher:y.constant({}),initLauncher:y.noop,_addGuideToLauncher:y.noop,launcherToolTipDiv:null,isAnonymousVisitor:function(e){return void 0===e&&(e=t.get_visitor_id()),ii(e)},DEFAULT_VISITOR_ID:ai,shouldIdentityChange:y.constant(!1),read:w.read,write:w.write,_delete_cookie:w.clear,_set_cookie:an,_get_cookie:on,get_cookie_key:dn,ENV:it,eventCache:u(_s),_getOpacityStyles:Ab(null,"_getOpacityStyles",wb),setStyle:ya,_createGuideEvent:u($m),seenGuide:u(Fm),dismissedGuide:u(Pm),advancedGuide:u(Gm),seenTime:0,placeBadge:u(ff),isBadge:u(Pu),showPreview:u(Ab(km,"showPreview",wb)),removeAllBadges:u(gf),tellMaster:Cs,DEFAULT_TIMER_LENGTH:Gh,registerMessageHandler:ps,_get_offset:u(Sa),_shouldAutoDisplayGuide:y.constant(!1),removeBadge:mf,_showLightboxGuide:y.noop,_showGuide:u(Mm),getElementForGuideStep:u(ju),isElementVisible:ja,getTooltipDivId:u(xm),setupWatchOnTooltip:u(Rm),letters:"",charset:"",detectMaster:Ss,listenToMaster:Ab(null,"listenToMaster",Cb),start:bu,SEND_INTERVAL:Rs,stageGuideEvent:u(zm),startStagedTimer:jm,isURLValid:Ms,getURL:Ls,_get_screen_dim:u(Ia),_isInViewport:u(wa),_getCss3Prop:ma,waitThenStartGuides:u(Dh),guidesProcessingThreadHandle:Ph,getMode:y.constant("default")}),y.each(["identify","updateOptions","pageLoad","track"],function(t){var n=i[t];i[t]=function(){try{gy()?n.apply(this,arguments):re(i,t,arguments)}catch(e){I.critical(e)}}})}var JS,qS,QS,eA=ce(),tA=(tA=q(tA=eA)?{}:window,v=tA.pendo=tA.pendo||{});return JS=tA,ue(eA=eA),it=le("env")||it,rt=le("server")||rt,ot=le("assetHost")||ot,at=le("assetPath")||at,st=le("designerEnv")||st,st=lt()?it+"_ext":it,dt=qe+"_"+st,!q(eA)&&(st=eA,eA=JS,QS=af(),ae(st,eA,QS)||se(st,eA,QS))||JS&&JS.VERSION||(m.get("disablePendo")?(qS=JS,y.each(["initialize","identify","updateOptions","pageLoad","track"],function(e){qS[e]=function(){console.log("Pendo is currently disabled.")}})):((st=A).registerModule("debugger",v0),st.registerModule("errorLog",i),st.registerModule("frames",s),st.registerModule("guideUpdate",e),st.registerModule("guideState",rr),st.registerModule("healthCheck",c0),st.registerModule("location",lr),st.registerModule("monitoring",l0),st.registerModule("metadata",p0),st.registerModule("preview",m0),Po(),Ic.behaviors=[nf,Tb,vc.Guide,_b,Rb,kb,Ob],wc.behaviors=[nf,Gb,Nb,xc,vc.Step,Mb,Db],xc.reset(),A.dispatch("frames/init"),Uy.init(),_i.wrapSizzle(Xr),Xr.intercept(Yu),XS(JS),I.addEventListener("log",y.partial(A.dispatch,"errorLog/write")),ry(x0),ry(H0),ry(dI),ry(II),ry(Q1),ry(aw),ry(yw),ry(Rw),ry(bb),ry(jw),ry(hC),ry(MC),ry(ZC),ry(YC),ry(uS),ry(kS),ry(KS),eA=JS._q,QS=Sy,st=bu,m.get("disableAutoInitialize")||(eA=(eA=wy(eA))&&1<eA.length?eA[1]:{},y.get(eA,vy)||m.get(vy)?QS():yy.push(st(QS))))),tA}var TextCapture=function(){var i,r,n,o={};return{name:"TextCapture",initialize:function(e,t){r=t,(i=e).excludeAllText=r.ConfigReader.get("excludeAllText");t=r.ConfigReader.get("allowedText");o=i._.reduce(t,function(e,t){return i._.isString(t)&&(e[t]=!0),e},{}),r.NodeSerializer.add(a),n=i._.partial(s,e),r.Events.on("eventCaptured",n)},teardown:function(){r.NodeSerializer.remove(a),r.Events.off("eventCaptured",n)},isEnabled:d,isTextCapturable:function(e){var t=r.util.trim.call(e);return d()||i._.has(o,t)||i._.has(o,e)},hasWhitelist:function(){return 0<i._.size(o)},serializer:a};function a(e,t,n){return t===n&&(TextCapture.isEnabled()||!TextCapture.isEnabled()&&TextCapture.hasWhitelist())&&(t=i.getText(n,128),TextCapture.isTextCapturable(t))&&(e.txt=TextCapture.hasWhitelist()?r.util.trim.call(t):t),e}function s(e,t){var n;d()&&(n=t.data[0])&&"guideActivity"===n.type&&(t=e.getActiveGuide())&&(e=(0,e.BuildingBlocks.BuildingBlockGuides.findDomBlockInDomJson)(t.step.domJson,function(e){return e.props&&e.props.id&&e.props.id===n.props.ui_element_id}))&&(n.props.ui_element_text=e.content)}function d(){return!i.excludeAllText}}(),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString="({goto-".concat(goToMiddleString,"\\/})");function lookupGuideButtons(e,t){return void 0===t&&(t=[]),"button"===e.type&&e.actions&&t.push(e),e.children&&e.children.forEach(function(e){lookupGuideButtons(e,t)}),t}function removeMarkdownSyntax(e,t,n,i){var r;i.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.innerHTML=null==(r=e.innerHTML)?void 0:r.replace(t,n)),"div"===e.localName||("button"!==e.localName&&"label"!==e.localName&&"a"!==e.localName||(e.textContent=e.textContent.replace(t,n)),0<e.children.length)||(i.dom(e).hasClass("_pendo-simple-text")||i.dom(e).hasClass("_pendo-text-plain")||i.dom(e).hasClass("_pendo-text-list-item")||i.dom(e).hasClass("_pendo-text-link"))&&(e.textContent=e.textContent.replace(t,n))}var guideMarkdownUtil={substitutionRegex:substitutionRegex,skipStepString:skipStepString,goToString:goToString,lookupGuideButtons:lookupGuideButtons,removeMarkdownSyntax:removeMarkdownSyntax},goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script:function(r,o,a){var s=!1,e=initialBranchingSetup(r,a);!e||1<a._.size(e)||this.on("beforeAdvance",function(e){var t,n=0===r.guideElement.find("[branching] .pendo-radio:checked").length,i=r.guideElement.find("[branching] .pendo-radio:checked + label")[0];i&&(t=a._.isNull(i.getAttribute("goToStep"))),s||n||t||(s=!0,branchingGoToStep(e,r,o,a))})},test:function(e,t,n){e=null==(e=e.guideElement)?void 0:e.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return!n._.isUndefined(e)&&n._.size(e)},designerListener:function(i){var e=i.dom.getBody();function r(e,t){return'<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"\n style="margin-left: 5px;\n height:'.concat(t,"; width:").concat(t,'; display:inline; vertical-align:middle;" xmlns="http://www.w3.org/2000/svg">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"></g>\n <g> <circle cx="4" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="17" r="2" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></circle>\n <path d="M18 7H6" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></path>\n <path d="M7 7V7C8.65685 7 10 8.34315 10 10V15C10 16.1046 10.8954 17 12 17H18"\n stroke="').concat(e,'" stroke-width="2" stroke-linecap="round"\n stroke-linejoin="round"></path> </g></svg>')}new MutationObserver(function(e){e.forEach(function(e){var t=i._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelector);e.addedNodes.length&&t&&e.addedNodes[0].querySelector("._pendo-multi-choice-poll-select-border")&&i._.size(i.dom('._pendo-multi-choice-poll-question:contains("{branching/}")'))&&i.dom('._pendo-multi-choice-poll-question:contains("{branching/}")').each(function(e,t){i._.each(i.dom("#".concat(e.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","",i)}),i.dom("#".concat(e.id," p")).css({display:"inline-block !important"}).append(r("#999","20px")).attr({title:"Custom Branching Added"});var n=e.getAttribute("data-pendo-poll-id"),n=(i.dom("._pendo-multi-choice-poll-question[data-pendo-poll-id=".concat(n,"]"))[0]&&i.dom("._pendo-multi-choice-poll-question[data-pendo-poll-id=".concat(n,"]"))[0].textContent.trim(),i.dom("label[for*=".concat(n,"]")));i._.size(n)&&i._.forEach(n,function(e){var t;goToRegex.test(e.textContent)&&(t=goToRegex.exec(e.textContent)[2],guideMarkdownUtil.removeMarkdownSyntax(e,goToRegex,"",i),i.dom(e).append(r("#999","14px")).attr({title:"Branching to step ".concat(t)}))}),0<t&&(i.dom(e).append('<div style="text-align:lrft; font-size: 14px; color: red;\n font-style: italic; margin-top: 0px;" class="branching-wrapper"\n name="'.concat(e.dataset.pendoPollId,'">\n * Branching Error: Multiple branching polls not supported</div>')),i.dom("#".concat(e.id," #pendo-ps-branching-svg")).remove(),i.dom("#".concat(e.id," p")).css({display:"inline-block !important"}).append(r("red","20px")).attr({title:"Unsupported Branching configuration"}))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function initialBranchingSetup(n,i){var e=n.guideElement.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return i._.forEach(e,function(e){var t=e.getAttribute("data-pendo-poll-id"),e=(i._.each(n.guideElement.find("#".concat(e.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","",i)}),n.guideElement.find("label[for*=".concat(t,"]"))),e=(i._.forEach(e,function(e){var t,n;i._.isNull(goToRegex.exec(e.textContent))||(t=goToRegex.exec(e.textContent)[1],n=goToRegex.exec(e.textContent)[2],e.setAttribute("goToStep",n),guideMarkdownUtil.removeMarkdownSyntax(e,t,"",i))}),n.guideElement.find("[data-pendo-poll-id=".concat(t,"]._pendo-multi-choice-poll-select-border")));e&&e.length&&e[0].setAttribute("branching","")}),e}function branchingGoToStep(e,t,n,i){var r=null==(r=t.guideElement.find("[branching] input.pendo-radio[data-pendo-poll-id]:checked")[0])?void 0:r.id,r=t.guideElement.find('label[for="'.concat(r,'"]'))[0],t=(null==r?void 0:r.getAttribute("goToStep"))-1;t<0||(r={destinationStepId:n.steps[t].id},i.goToStep(r),e.cancel=!0)}var containerSelector='[id^="pendo-guide-container"]',MetadataSubstitution={name:"MetadataSubstitution",script:function(e,t,n){var i=findSubstitutableElements(n);e.domJson&&findSubstitutableUrlsInJson(e.domJson,i,n),n._.size(i)&&(n._.each(i,function(e){processPlaceholder(e,n)}),updateGuideContainer("pendo-g-".concat(e.id),e.guideElement,n))},designerListener:function(i){var e=i.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t,n;e.addedNodes.length&&document.querySelector(containerSelector)&&(e=findSubstitutableElements(i),t=null==(t=i.designerv2.currentlyPreviewedGuide)?void 0:t.steps[0])&&(n=t.buildingBlocks,i._.isUndefined(n)||findSubstitutableUrlsInJson(n,e,i),i._.size(e))&&(i._.each(e,function(e){i._.isUndefined(e)||processPlaceholder(e,i)}),updateGuideContainer("pendo-g-".concat(t.id),t.guideElement,i))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function processPlaceholder(e,t){for(var n=e.data,i=e.target,r=new RegExp(guideMarkdownUtil.substitutionRegex);o=matchPlaceholder(e,r);){var o=r.exec(o);substituteMetadataByTarget(n,i,getSubstituteValue(o,t),o)}}function matchPlaceholder(e,t){return("textContent"===e.target?e.data[e.target]:decodeURI(e.data[e.target])).match(t)}function getSubstituteValue(e,t){if(!t._.isUndefined(e[1])&&!t._.isUndefined(e[2])){var n=e[1],i=e[2],e=e[3];if(!t._.isUndefined(n)&&!t._.isUndefined(i))return t._.get(t.getSerializedMetadata(),"".concat(n,".").concat(i))||e||""}}function substituteMetadataByTarget(e,t,n,i){e[t]="href"===t||"value"===t?decodeURI(e[t]).replace(i[0],window.encodeURI(n)):e[t].replace(i[0],n)}function updateGuideContainer(e,t,n){n.designer&&!n._.size(n.dom("#pendo-ps-substitution-icon"))&&n.dom(containerSelector).append(substitutionIcon("#999","30px")),n.flexElement(n.dom(containerSelector)),n.BuildingBlocks.BuildingBlockGuides.recalculateGuideHeight(e,t)}function findSubstitutableUrlsInJson(e,t,n){void 0===t&&(t=[]);var i=new RegExp(guideMarkdownUtil.substitutionRegex);return"url"!==e.name&&"href"!==e.name||!e.value||i.test(e.value)&&t.push({data:e,target:"value"}),e.properties&&"href_link_block"===e.id&&n._.each(e.properties,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.views&&n._.each(e.views,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.parameters&&n._.each(e.parameters,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.actions&&n._.each(e.actions,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.children&&n._.each(e.children,function(e){findSubstitutableUrlsInJson(e,t,n)}),t}function findSubstitutableElements(n){var e=n.dom("".concat(containerSelector," *:not(.pendo-inline-ui)"));return n._.chain(e).filter(function(e){var t=new RegExp(guideMarkdownUtil.substitutionRegex);return"a"===e.localName?t.test(decodeURI(e.href))||t.test(e.textContent):"div"!==e.localName?"button"===e.localName||"label"===e.localName?t.test(e.textContent):0<e.children.length?void 0:n.dom(e).hasClass("_pendo-simple-text")||n.dom(e).hasClass("_pendo-text-plain")||n.dom(e).hasClass("_pendo-text-list-item")||n.dom(e).hasClass("_pendo-text-link")?t.test(e.textContent):t.test(e.textContent)||t.test(decodeURI(e.href)):void 0}).map(function(e){return"a"===e.localName&&n.dom(e).hasClass("_pendo-text-link")?[{data:e,target:"href"},{data:e,target:"textContent"}]:"a"===e.localName?{data:e,target:"href"}:"button"===e.localName||n.dom(e).hasClass("_pendo-simple-text")||n.dom(e).hasClass("_pendo-text-plain")||n.dom(e).hasClass("_pendo-text-list-item")||n.dom(e).hasClass("_pendo-text-link")?{data:e,target:"textContent"}:void 0}).flatten().value()}function substitutionIcon(e,t){return'<div title="Metadata Substitution added">\n <svg id="pendo-ps-substitution-icon" viewBox="0 0 24 24"\n preserveAspectRatio="xMidYMid meet"\n height='.concat(t," width=").concat(t,' title="Metadata Substitution"\n style="bottom:5px; right:10px; position: absolute;"\n fill="none" xmlns="http://www.w3.org/2000/svg" stroke="').concat(e,'"\n transform="matrix(1, 0, 0, 1, 0, 0)rotate(0)">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"\n stroke="').concat(e,'" stroke-width="0.528"></g>\n <g><path fill-rule="evenodd" clip-rule="evenodd"\n d="M5 5.5C4.17157 5.5 3.5 6.17157 3.5 7V10C3.5 10.8284\n 4.17157 11.5 5 11.5H8C8.82843 11.5 9.5 10.8284 9.5\n 10V9H17V11C17 11.2761 17.2239 11.5 17.5 11.5C17.7761\n 11.5 18 11.2761 18 11V8.5C18 8.22386 17.7761 8 17.5\n 8H9.5V7C9.5 6.17157 8.82843 5.5 8 5.5H5ZM8.5 7C8.5\n 6.72386 8.27614 6.5 8 6.5H5C4.72386 6.5 4.5 6.72386\n 4.5 7V10C4.5 10.2761 4.72386 10.5 5 10.5H8C8.27614\n 10.5 8.5 10.2761 8.5 10V7Z" fill="').concat(e,'"></path>\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M7 13C7 12.7239 6.77614 12.5 6.5 12.5C6.22386 12.5\n 6 12.7239 6 13V15.5C6 15.7761 6.22386 16 6.5\n 16H14.5V17C14.5 17.8284 15.1716 18.5 16 18.5H19C19.8284\n 18.5 20.5 17.8284 20.5 17V14C20.5 13.1716 19.8284 12.5\n 19 12.5H16C15.1716 12.5 14.5 13.1716 14.5\n 14V15H7V13ZM15.5 17C15.5 17.2761 15.7239 17.5 16\n 17.5H19C19.2761 17.5 19.5 17.2761 19.5 17V14C19.5\n 13.7239 19.2761 13.5 19 13.5H16C15.7239 13.5 15.5\n 13.7239 15.5 14V17Z" fill="').concat(e,'"></path> </g></svg></div>')}var requiredElement='<span class="_pendo-required-indicator" style="color:red; font-style:italic;" title="Question is required"> *</span>',RequiredQuestions={name:"RequiredQuestions",script:function(i,e,r){var t,n=[],o=null==(t=guideMarkdownUtil.lookupGuideButtons(i.domJson))?void 0:t.filter(function(e){return e.actions.find(function(e){return"submitPoll"===e.action||"submitPollAndGoToStep"===e.action})}),a=function(){var e=i.guideElement.find("[class*=-poll-question]:contains({required/})");e&&r._.forEach(e,function(e){var t=e.getAttribute("data-pendo-poll-id");n.push(t),r._.each(i.guideElement.find("#".concat(e.id," *, #").concat(e.id)),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","",r)}),i.guideElement.find("#".concat(e.id," p")).append(requiredElement)});r._.size(n)&&(0===r.dom("#_pendo-guide-required-disabled").length&&r.dom("head").append("<style type=text/css\n id=_pendo-guide-required-disabled>\n ._pendo-button:disabled, ._pendo-buttons[disabled] {\n border: 1px solid #999999 !important;\n background-color: #cccccc !important;\n color: #666666 !important;\n pointer-events: none !important;\n }\n </style>"),d(o));return e}();function s(e){var t,n;0!==e.length&&(t=!0,(t=(n=(n=[]).concat(r._.map(e,function(e){e=e.getAttribute("data-pendo-poll-id"),e=i.guideElement.find("\n [data-pendo-poll-id=".concat(e,"] textarea,\n [data-pendo-poll-id=").concat(e,"] input:text,\n [data-pendo-poll-id=").concat(e,"] select,\n [data-pendo-poll-id=").concat(e,"] input:radio:checked"));if(e&&e.length&&e[0].value)return e[0].value}))).includes(undefined)||r._.isEmpty(n)?!1:t)?o.forEach(function(e){i.guideElement.find("#".concat(e.props.id))[0]&&(i.guideElement.find("#".concat(e.props.id))[0].disabled=!1,i.guideElement.find("#".concat(e.props.id))[0].parentElement.title="")}):d(o))}function d(e){e.forEach(function(e){i.guideElement.find("#".concat(e.props.id))[0]&&(i.guideElement.find("#".concat(e.props.id))[0].disabled=!0,i.guideElement.find("#".concat(e.props.id))[0].parentElement.title="Please complete all required questions.")})}a&&(r._.forEach(a,function(e){e.classList.contains("_pendo-open-text-poll-question")&&(e=e.dataset.pendoPollId,i.attachEvent(i.guideElement.find("[data-pendo-poll-id=".concat(e,"]._pendo-open-text-poll-input"))[0],"input",function(){s(a)}))}),i.attachEvent(i.guideElement.find("#pendo-guide-container")[0],"click",function(e){e.target.classList.contains("_pendo-button")||s(a)}))},test:function(e,t,n){e=null==(e=e.guideElement)?void 0:e.find("[class*=-poll-question]:contains({required/})");return!n._.isUndefined(e)&&n._.size(e)},designerListener:function(n){var e=n.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=n._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(t=e.addedNodes[0].querySelectorAll("[class*=-poll-wrapper], [class*=-poll-select-border]"))&&t.forEach(function(e){var t,e=e.classList.contains("_pendo-open-text-poll-wrapper")||e.classList.contains("_pendo-number-scale-poll-wrapper")?e.getAttribute("name"):e.getAttribute("data-pendo-poll-id");(t=n.dom('[class*="-poll-question"][data-pendo-poll-id='.concat(e,"]"))[0]?n.dom('[class*="-poll-question"][data-pendo-poll-id='.concat(e,"]"))[0].textContent:t).includes("{required/}")&&(n._.each(n.dom("[data-pendo-poll-id=".concat(e,"]:not(.pendo-radio)")),function(e){n._.each(n.dom("#".concat(e.id,' *:not(".pendo-radio"), #').concat(e.id,':not(".pendo-radio")')),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","",n)})}),(0!==n.dom(".bb-text[data-pendo-poll-id=".concat(e,"] p")).length||0!==n.dom(".bb-text[data-pendo-poll-id=".concat(e,"] li")).length?(n.dom(".bb-text[data-pendo-poll-id=".concat(e,"] p")).append(requiredElement),n.dom(".bb-text[data-pendo-poll-id=".concat(e,"] li"))):n.dom(".bb-text[data-pendo-poll-id=".concat(e,"]"))).append(requiredElement))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},skipStepRegex=new RegExp(guideMarkdownUtil.skipStepString),SkipToEligibleStep={script:function(i,r,o){var n=!1,a=!1,e=i.guideElement.find("#pendo-guide-container"),t=e.attr("aria-label"),s=skipStepRegex.exec(t)[1];function d(e,t){var n=u(r.getPositionOfStep(i),"next",e),e=u(r.getPositionOfStep(i)-2,"previous",e);return n&&"next"==t&&o.goToStep({destinationStepId:n}),e&&"previous"==t&&o.goToStep({destinationStepId:e}),"next"===t?n:e}function u(e,t,n){var i;if(!o._.isNaN(e))return(i=r.steps[e])&&!i.canShow()?"auto"!==n?r.steps[n-1]:"next"===t?u(e+1,"next",n):u(e-1,"previous",n):i}e&&e.attr({"aria-label":e.attr("aria-label").replace(skipStepRegex,"")}),this.on("beforeAdvance",function(e){var t;r.getPositionOfStep(i)===r.steps.length||o._.isUndefined(s)||(t=d(s,"next"),!n&&s&&(n=!0,o.goToStep({destinationStepId:t.id}),e.cancel=!0))}),this.on("beforePrevious",function(e){var t;o._.isUndefined(s)||(t=d(s,"previous"),!a&&s&&(a=!0,o.goToStep({destinationStepId:t.id}),e.cancel=!0))})},test:function(e,t,n){e=null==(e=e.guideElement)?void 0:e.find("#pendo-guide-container").attr("aria-label");return!n._.isUndefined(e)&&(null==e?void 0:e.includes("{skipStep"))},designerListener:function(n){var e=n.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=n._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(e=null==(t=e.addedNodes[0].querySelectorAll("#pendo-guide-container")[0])?void 0:t.getAttribute("aria-label"))&&e.match(skipStepRegex)&&(t=e.match(skipStepRegex)[0],e.replace(t,""),n.dom("#_pendoSkipIcon").length||n.dom("#pendo-guide-container").append((t="#999",'<div title="Skip step added"><svg id="_pendoSkipIcon" version="1.0" xmlns="http://www.w3.org/2000/svg"\n width="'.concat(e="30px",'" height="').concat(e,'" viewBox="0 0 512.000000 512.000000"\n preserveAspectRatio="xMidYMid meet" style="bottom:5px; right:10px; position: absolute;">\n <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"\n fill="').concat(t,'" stroke="none">\n <path d="M2185 4469 c-363 -38 -739 -186 -1034 -407 -95 -71 -273 -243 -357\n -343 -205 -246 -364 -577 -429 -897 -25 -121 -45 -288 -45 -373 l0 -49 160 0\n 160 0 0 48 c0 26 5 88 10 137 68 593 417 1103 940 1374 1100 570 2418 -137\n 2560 -1374 5 -49 10 -111 10 -137 l0 -47 -155 -3 -155 -3 235 -235 235 -236\n 235 236 235 235 -155 3 -155 3 0 48 c0 27 -5 95 -10 152 -100 989 -878 1767\n -1869 1868 -117 12 -298 12 -416 0z"/>\n <path d="M320 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M960 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M1600 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2240 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2880 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M3840 1440 l0 -160 480 0 480 0 0 160 0 160 -480 0 -480 0 0 -160z"/>\n </g></svg></div>\n ').trim())))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},GuideMarkdown=function(){var r,o,a;return{name:"GuideMarkdown",initialize:function(e,t){a=e;var n=(o=t).ConfigReader,i="guideMarkdown";n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i)&&(r=[PollBranching,MetadataSubstitution,RequiredQuestions,SkipToEligibleStep],e.designer||r.forEach(function(e){t.GlobalRuntime.addGlobalScript(e)}),t.Events.on("designerLaunched",s))},teardown:function(){o.Events.off("designerLaunched",s),r.forEach(function(e){o.GlobalRuntime.removeGlobalScript(e)})}};function s(){r.forEach(function(e){e.designerListener&&e.designerListener(a,o)})}}(),setTimeout=safeBind(window.setTimeout,window);function safeBind(e,t){return"function"==typeof e.bind?e.bind(t):e}var setTimeout$1=setTimeout=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return safeBind(e[t],e)}(window),Promise$3=window.Promise,Promise$4=Promise$3=function(e){var t=window.Promise;return"function"==typeof t&&/native/.test(t)?t:e()}(function(){var t=setTimeout$1;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a});function isObject$8(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$8,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,now$1=function(){return root$8.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=trimmedEndIndex$1,reTrimStart=/^\s+/;function baseTrim$1(e){return e&&e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root$7=_root,Symbol$6=_root.Symbol,_Symbol=Symbol$6,Symbol$5=_Symbol,objectProto$d=Object.prototype,hasOwnProperty$a=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$5?Symbol$5.toStringTag:undefined;function getRawTag$1(e){var t=hasOwnProperty$a.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=undefined;var i=!0}catch(o){}var r=nativeObjectToString$1.call(e);return i&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),r}var _getRawTag=getRawTag$1,objectProto$c=Object.prototype,nativeObjectToString=objectProto$c.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$4=_Symbol,getRawTag=_getRawTag,objectToString=objectToString$1,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol?_Symbol.toStringTag:undefined;function baseGetTag$6(e){return null==e?e===undefined?undefinedTag:nullTag:(symToStringTag&&symToStringTag in Object(e)?getRawTag:objectToString)(e)}var _baseGetTag=baseGetTag$6;function isObjectLike$7(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike$7,baseGetTag$5=_baseGetTag,isObjectLike$6=isObjectLike_1,symbolTag$2="[object Symbol]";function isSymbol$4(e){return"symbol"==typeof e||isObjectLike$6(e)&&baseGetTag$5(e)==symbolTag$2}var isSymbol_1=isSymbol$4,baseTrim=_baseTrim,isObject$7=isObject_1,isSymbol$3=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if("number"==typeof e)return e;if(isSymbol$3(e))return NAN;if(isObject$7(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=isObject$7(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var t=reIsBinary.test(e);return t||reIsOctal.test(e)?freeParseInt(e.slice(2),t?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1,isObject$6=isObject_1,now=now_1,toNumber=toNumber$1,FUNC_ERROR_TEXT$2="Expected a function",nativeMax$1=Math.max,nativeMin=Math.min;function debounce$1(i,n,e){var r,o,a,s,d,u,c=0,l=!1,p=!1,t=!0;if("function"!=typeof i)throw new TypeError(FUNC_ERROR_TEXT$2);function h(e){var t=r,n=o;return r=o=undefined,c=e,s=i.apply(n,t)}function f(e){var t=e-u;return u===undefined||n<=t||t<0||p&&a<=e-c}function g(){var e,t=now();if(f(t))return m(t);d=setTimeout$1(g,(e=n-((t=t)-u),p?nativeMin(e,a-(t-c)):e))}function m(e){return d=undefined,t&&r?h(e):(r=o=undefined,s)}function v(){var e=now(),t=f(e);if(r=arguments,o=this,u=e,t){if(d===undefined)return c=e=u,d=setTimeout$1(g,n),l?h(e):s;if(p)return clearTimeout(d),d=setTimeout$1(g,n),h(u)}return d===undefined&&(d=setTimeout$1(g,n)),s}return n=toNumber(n)||0,isObject$6(e)&&(l=!!e.leading,p="maxWait"in e,a=p?nativeMax$1(toNumber(e.maxWait)||0,n):a,t="trailing"in e?!!e.trailing:t),v.cancel=function(){d!==undefined&&clearTimeout(d),c=0,r=u=o=d=undefined},v.flush=function(){return d===undefined?s:m(now())},v}var debounce_1=debounce$1,debounce=debounce$1,isObject$5=isObject_1,FUNC_ERROR_TEXT$1="Expected a function";function throttle$1(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);return isObject$5(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),debounce(e,t,{leading:i,maxWait:t,trailing:r})}var throttle_1=throttle$1,throttle$2=getDefaultExportFromCjs(throttle$1),isArray$8=Array.isArray,isArray_1=isArray$8,isArray$7=isArray_1,isSymbol$2=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$1(e,t){var n;return!isArray$7(e)&&(!("number"!=(n=typeof e)&&"symbol"!=n&&"boolean"!=n&&null!=e&&!isSymbol$2(e))||reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey$1,baseGetTag$4=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){return!!isObject$4(e)&&((e=baseGetTag$4(e))==funcTag$2||e==genTag$1||e==asyncTag||e==proxyTag)}var isFunction_1=isFunction$2,isFunction$3=getDefaultExportFromCjs(isFunction_1),root$6=_root,coreJsData$1=_root["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=coreJsData$1,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource$2(e){if(null!=e){try{return funcToString$2.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$b=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$9=objectProto$b.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){return!(!isObject$3(e)||isMasked(e))&&(isFunction$1(e)?reIsNative:reIsHostCtor).test(toSource$1(e))}var _baseIsNative=baseIsNative$1;function getValue$1(e,t){return null==e?undefined:e[t]}var _getValue=getValue$1,baseIsNative=baseIsNative$1,getValue=getValue$1;function getNative$9(e,t){e=getValue(e,t);return baseIsNative(e)?e:undefined}var _getNative=getNative$9,getNative$8=_getNative,nativeCreate$4=_getNative(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){e=this.has(e)&&delete this.__data__[e];return this.size-=e?1:0,e}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__",objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty;function hashGet$1(e){var t,n=this.__data__;return nativeCreate$2?(t=n[e])===HASH_UNDEFINED$1?undefined:t:hasOwnProperty$8.call(n,e)?n[e]:undefined}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$9=Object.prototype,hasOwnProperty$7=objectProto$9.hasOwnProperty;function hashHas$1(e){var t=this.__data__;return nativeCreate$1?t[e]!==undefined:hasOwnProperty$7.call(t,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet$1(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nativeCreate&&t===undefined?HASH_UNDEFINED:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=hashHas$1,hashSet=hashSet$1;function Hash$1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype["delete"]=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(e,t){return e===t||e!=e&&t!=t}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(e,t){for(var n=e.length;n--;)if(eq$1(e[n][0],t))return n;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var t=this.__data__,e=assocIndexOf$3(t,e);return!(e<0||(e==t.length-1?t.pop():splice.call(t,e,1),--this.size,0))}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var t=this.__data__,e=assocIndexOf$2(t,e);return e<0?undefined:t[e][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return-1<assocIndexOf$1(this.__data__,e)}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,t){var n=this.__data__,i=assocIndexOf(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=listCacheDelete$1,listCacheGet=listCacheGet$1,listCacheHas=listCacheHas$1,listCacheSet=listCacheSet$1;function ListCache$4(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype["delete"]=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$7=_getNative,root$5=_root,Map$4=_getNative(_root,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var _isKeyable=isKeyable$1,isKeyable=isKeyable$1;function getMapData$4(e,t){e=e.__data__;return isKeyable(t)?e["string"==typeof t?"string":"hash"]:e.map}var _getMapData=getMapData$4,getMapData$3=getMapData$4;function mapCacheDelete$1(e){e=getMapData$3(this,e)["delete"](e);return this.size-=e?1:0,e}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=getMapData$4;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=getMapData$4;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=getMapData$4;function mapCacheSet$1(e,t){var n=getMapData(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=mapCacheClear$1,mapCacheDelete=mapCacheDelete$1,mapCacheGet=mapCacheGet$1,mapCacheHas=mapCacheHas$1,mapCacheSet=mapCacheSet$1;function MapCache$2(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}MapCache$2.prototype.clear=mapCacheClear,MapCache$2.prototype["delete"]=mapCacheDelete,MapCache$2.prototype.get=mapCacheGet,MapCache$2.prototype.has=mapCacheHas,MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,MapCache$1=_MapCache,FUNC_ERROR_TEXT="Expected a function";function memoize$1(i,r){if("function"!=typeof i||null!=r&&"function"!=typeof r)throw new TypeError(FUNC_ERROR_TEXT);var o=function(){var e=arguments,t=r?r.apply(this,e):e[0],n=o.cache;return n.has(t)?n.get(t):(e=i.apply(this,e),o.cache=n.set(t,e)||n,e)};return o.cache=new(memoize$1.Cache||MapCache$1),o}memoize$1.Cache=MapCache$1;var memoize_1=memoize$1,memoize=memoize$1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(e){var e=memoize(e,function(e){return t.size===MAX_MEMOIZE_SIZE&&t.clear(),e}),t=e.cache;return e}var _memoizeCapped=memoizeCapped$1,memoizeCapped=memoizeCapped$1,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped$1(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(rePropName,function(e,t,n,i){r.push(n?i.replace(reEscapeChar,"$1"):t||e)}),r}),_stringToPath=stringToPath$1;function arrayMap$2(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}var _arrayMap=arrayMap$2,Symbol$3=_Symbol,arrayMap$1=_arrayMap,isArray$6=isArray_1,isSymbol$1=isSymbol_1,INFINITY$1=1/0,symbolProto$1=_Symbol?_Symbol.prototype:undefined,symbolToString=symbolProto$1?symbolProto$1.toString:undefined;function baseToString$1(e){var t;return"string"==typeof e?e:isArray$6(e)?arrayMap$1(e,baseToString$1)+"":isSymbol$1(e)?symbolToString?symbolToString.call(e):"":"0"==(t=e+"")&&1/e==-INFINITY$1?"-0":t}var _baseToString=baseToString$1,baseToString=baseToString$1;function toString$2(e){return null==e?"":baseToString(e)}var toString_1=toString$2,isArray$5=isArray_1,isKey=_isKey,stringToPath=_stringToPath,toString$1=toString$2;function castPath$3(e,t){return isArray$5(e)?e:isKey(e,t)?[e]:stringToPath(toString$1(e))}var _castPath=castPath$3,isSymbol=isSymbol_1,INFINITY=1/0;function toKey$2(e){var t;return"string"==typeof e||isSymbol(e)?e:"0"==(t=e+"")&&1/e==-INFINITY?"-0":t}var _toKey=toKey$2,castPath$2=_castPath,toKey$1=_toKey;function baseGet$2(e,t){for(var n=0,i=(t=castPath$2(t,e)).length;null!=e&&n<i;)e=e[toKey$1(t[n++])];return n&&n==i?e:undefined}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get(e,t,n){e=null==e?undefined:baseGet$1(e,t);return e===undefined?n:e}var get_1=get,get$1=getDefaultExportFromCjs(get),toString=toString$2,idCounter=0;function uniqueId(e){var t=++idCounter;return toString(e)+t}var uniqueId_1=uniqueId,uniqueId$1=getDefaultExportFromCjs(uniqueId),ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(e){var t=this.__data__,e=t["delete"](e);return this.size=t.size,e}var _stackDelete=stackDelete$1;function stackGet$1(e){return this.__data__.get(e)}var _stackGet=stackGet$1;function stackHas$1(e){return this.__data__.has(e)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(e,t){var n=this.__data__;if(n instanceof ListCache$1){var i=n.__data__;if(!Map$2||i.length<LARGE_ARRAY_SIZE-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new MapCache(i)}return n.set(e,t),this.size=n.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=stackClear$1,stackDelete=stackDelete$1,stackGet=stackGet$1,stackHas=stackHas$1,stackSet=stackSet$1;function Stack$1(e){e=this.__data__=new ListCache(e);this.size=e.size}Stack$1.prototype.clear=stackClear,Stack$1.prototype["delete"]=stackDelete,Stack$1.prototype.get=stackGet,Stack$1.prototype.has=stackHas,Stack$1.prototype.set=stackSet;var _Stack=Stack$1;function arrayEach$2(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}var _arrayEach=arrayEach$2,getNative$6=_getNative,defineProperty$2=function(){try{var e=getNative$6(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),_defineProperty=defineProperty$2,defineProperty$1=_defineProperty;function baseAssignValue$2(e,t,n){"__proto__"==t&&defineProperty$1?defineProperty$1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _baseAssignValue=baseAssignValue$2,baseAssignValue$1=_baseAssignValue,eq=eq_1,objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty;function assignValue$2(e,t,n){var i=e[t];hasOwnProperty$6.call(e,t)&&eq(i,n)&&(n!==undefined||t in e)||baseAssignValue$1(e,t,n)}var _assignValue=assignValue$2,assignValue$1=_assignValue,baseAssignValue=_baseAssignValue;function copyObject$5(e,t,n,i){for(var r=!n,o=(n=n||{},-1),a=t.length;++o<a;){var s=t[o],d=i?i(n[s],e[s],s,n,e):undefined;d===undefined&&(d=e[s]),(r?baseAssignValue:assignValue$1)(n,s,d)}return n}var _copyObject=copyObject$5;function baseTimes$1(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var _baseTimes=baseTimes$1,baseGetTag$3=_baseGetTag,isObjectLike$5=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(e){return isObjectLike$5(e)&&baseGetTag$3(e)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=baseIsArguments$1,isObjectLike$4=isObjectLike_1,objectProto$7=Object.prototype,hasOwnProperty$5=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments$2=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike$4(e)&&hasOwnProperty$5.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")},isArguments_1=isArguments$2,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse,isBufferExports=(isBuffer$2.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?_root.Buffer:undefined,t=n?n.isBuffer:undefined;e.exports=t||stubFalse_1}(isBuffer$2,isBuffer$2.exports),isBuffer$2.exports),MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(e,t){var n=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==n||"symbol"!=n&&reIsUint.test(e))&&-1<e&&e%1==0&&e<t}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=9007199254740991;function isLength$2(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$2=_baseGetTag,isLength$1=isLength_1,isObjectLike$3=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$3="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray$1(e){return isObjectLike$3(e)&&isLength$1(e.length)&&!!typedArrayTags[baseGetTag$2(e)]}typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(t){return function(e){return t(e)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}},_nodeUtilExports=(_nodeUtil.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,i=n&&n.exports===t&&_freeGlobal.process,t=function(){try{var e=n&&n.require&&n.require("util").types;return e?e:i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=t}(_nodeUtil,_nodeUtil.exports),_nodeUtil.exports),baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=_nodeUtilExports&&_nodeUtilExports.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$1,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$4=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray=isTypedArray$1,objectProto$6=Object.prototype,hasOwnProperty$4=objectProto$6.hasOwnProperty;function arrayLikeKeys$2(e,t){var n,i=isArray$4(e),r=!i&&isArguments$1(e),o=!i&&!r&&isBuffer$1(e),a=!i&&!r&&!o&&isTypedArray(e),s=i||r||o||a,d=s?baseTimes(e.length,String):[],u=d.length;for(n in e)!t&&!hasOwnProperty$4.call(e,n)||s&&("length"==n||o&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||isIndex(n,u))||d.push(n);return d}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$5=Object.prototype;function isPrototype$3(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$5)}var _isPrototype=isPrototype$3;function overArg$2(t,n){return function(e){return t(n(e))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=_overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=nativeKeys$1,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function baseKeys$1(e){if(!isPrototype$2(e))return nativeKeys(e);var t,n=[];for(t in Object(e))hasOwnProperty$3.call(e,t)&&"constructor"!=t&&n.push(t);return n}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$3(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var isArrayLike_1=isArrayLike$3,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=baseKeys$1,isArrayLike$2=isArrayLike_1;function keys$4(e){return(isArrayLike$2(e)?arrayLikeKeys$1:baseKeys)(e)}var keys_1=keys$4,copyObject$4=_copyObject,keys$3=keys_1;function baseAssign$1(e,t){return e&©Object$4(t,keys$3(t),e)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var _nativeKeysIn=nativeKeysIn$1,isObject$2=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=nativeKeysIn$1,objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function baseKeysIn$1(e){if(!isObject$2(e))return nativeKeysIn(e);var t,n=isPrototype$1(e),i=[];for(t in e)("constructor"!=t||!n&&hasOwnProperty$2.call(e,t))&&i.push(t);return i}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=baseKeysIn$1,isArrayLike$1=isArrayLike_1;function keysIn$3(e){return isArrayLike$1(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}var keysIn_1=keysIn$3,copyObject$3=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(e,t){return e&©Object$3(t,keysIn$2(t),e)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}},_cloneBufferExports=(_cloneBuffer.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?_root.Buffer:undefined,i=n?n.allocUnsafe:undefined;e.exports=function(e,t){return t?e.slice():(t=e.length,t=i?i(t):new e.constructor(t),e.copy(t),t)}}(_cloneBuffer,_cloneBuffer.exports),_cloneBuffer.exports);function copyArray$1(e,t){var n=-1,i=e.length;for(t=t||Array(i);++n<i;)t[n]=e[n];return t}var _copyArray=copyArray$1;function arrayFilter$1(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}var _arrayFilter=arrayFilter$1;function stubArray$2(){return[]}var stubArray_1=stubArray$2,arrayFilter=arrayFilter$1,stubArray$1=stubArray_1,objectProto$2=Object.prototype,propertyIsEnumerable=objectProto$2.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols$3=nativeGetSymbols$1?function(t){return null==t?[]:(t=Object(t),arrayFilter(nativeGetSymbols$1(t),function(e){return propertyIsEnumerable.call(t,e)}))}:stubArray$1,_getSymbols=getSymbols$3,copyObject$2=_copyObject,getSymbols$2=_getSymbols;function copySymbols$1(e,t){return copyObject$2(e,getSymbols$2(e),t)}var _copySymbols=copySymbols$1;function arrayPush$3(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}var _arrayPush=arrayPush$3,overArg=_overArg,getPrototype$3=_overArg(Object.getPrototypeOf,Object),_getPrototype=getPrototype$3,arrayPush$2=_arrayPush,getPrototype$2=_getPrototype,getSymbols$1=_getSymbols,stubArray=stubArray_1,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols?function(e){for(var t=[];e;)arrayPush$2(t,getSymbols$1(e)),e=getPrototype$2(e);return t}:stubArray,_getSymbolsIn=getSymbolsIn$2,copyObject$1=_copyObject,getSymbolsIn$1=getSymbolsIn$2;function copySymbolsIn$1(e,t){return copyObject$1(e,getSymbolsIn$1(e),t)}var _copySymbolsIn=copySymbolsIn$1,arrayPush$1=_arrayPush,isArray$3=isArray_1;function baseGetAllKeys$2(e,t,n){t=t(e);return isArray$3(e)?t:arrayPush$1(t,n(e))}var _baseGetAllKeys=baseGetAllKeys$2,baseGetAllKeys$1=baseGetAllKeys$2,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(e){return baseGetAllKeys$1(e,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,baseGetAllKeys=baseGetAllKeys$2,getSymbolsIn=getSymbolsIn$2,keysIn$1=keysIn_1;function getAllKeysIn$2(e){return baseGetAllKeys(e,keysIn$1,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$2,getNative$5=_getNative,root$4=_root,DataView$2=_getNative(_root,"DataView"),_DataView=DataView$2,getNative$4=_getNative,root$3=_root,Promise$2=_getNative(_root,"Promise"),_Promise=Promise$2,getNative$3=_getNative,root$2=_root,Set$2=_getNative(_root,"Set"),_Set=Set$2,getNative$2=_getNative,root$1=_root,WeakMap$2=_getNative(_root,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=WeakMap$2,baseGetTag$1=_baseGetTag,toSource=_toSource,mapTag$3="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$3="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$2="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$3=baseGetTag$1,_getTag=getTag$3=DataView$1&&getTag$3(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$2||Map$1&&getTag$3(new Map$1)!=mapTag$3||Promise$1&&getTag$3(Promise$1.resolve())!=promiseTag||Set$1&&getTag$3(new Set$1)!=setTag$3||WeakMap$1&&getTag$3(new WeakMap$1)!=weakMapTag$1?function(e){var t=baseGetTag$1(e),e=t==objectTag$2?e.constructor:undefined,e=e?toSource(e):"";if(e)switch(e){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$3;case promiseCtorString:return promiseTag;case setCtorString:return setTag$3;case weakMapCtorString:return weakMapTag$1}return t}:getTag$3,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function initCloneArray$1(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&hasOwnProperty$1.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var _initCloneArray=initCloneArray$1,root=_root,Uint8Array$2=_root.Uint8Array,_Uint8Array=Uint8Array$2,Uint8Array$1=Uint8Array$2;function cloneArrayBuffer$3(e){var t=new e.constructor(e.byteLength);return new Uint8Array$1(t).set(new Uint8Array$1(e)),t}var _cloneArrayBuffer=cloneArrayBuffer$3,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneDataView$1(e,t){t=t?cloneArrayBuffer$2(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(e){var t=new e.constructor(e.source,reFlags.exec(e));return t.lastIndex=e.lastIndex,t}var _cloneRegExp=cloneRegExp$1,Symbol$2=_Symbol,symbolProto=_Symbol?_Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined;function cloneSymbol$1(e){return symbolValueOf?Object(symbolValueOf.call(e)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer$1=_cloneArrayBuffer;function cloneTypedArray$1(e,t){t=t?cloneArrayBuffer$1(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var _cloneTypedArray=cloneTypedArray$1,cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=cloneSymbol$1,cloneTypedArray=cloneTypedArray$1,boolTag$1="[object Boolean]",dateTag$1="[object Date]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag$1(e,t,n){var i=e.constructor;switch(t){case arrayBufferTag$1:return cloneArrayBuffer(e);case boolTag$1:case dateTag$1:return new i(+e);case dataViewTag$1:return cloneDataView(e,n);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(e,n);case mapTag$2:return new i;case numberTag$1:case stringTag$1:return new i(e);case regexpTag$1:return cloneRegExp(e);case setTag$2:return new i;case symbolTag$1:return cloneSymbol(e)}}var _initCloneByTag=initCloneByTag$1,isObject$1=isObject_1,objectCreate=Object.create,baseCreate$1=function(){function t(){}return function(e){if(!isObject$1(e))return{};if(objectCreate)return objectCreate(e);t.prototype=e;e=new t;return t.prototype=undefined,e}}(),_baseCreate=baseCreate$1,baseCreate=baseCreate$1,getPrototype$1=_getPrototype,isPrototype=_isPrototype;function initCloneObject$1(e){return"function"!=typeof e.constructor||isPrototype(e)?{}:baseCreate(getPrototype$1(e))}var _initCloneObject=initCloneObject$1,getTag$2=_getTag,isObjectLike$2=isObjectLike_1,mapTag$1="[object Map]";function baseIsMap$1(e){return isObjectLike$2(e)&&getTag$2(e)==mapTag$1}var _baseIsMap=baseIsMap$1,baseIsMap=baseIsMap$1,baseUnary$1=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsMap=_nodeUtilExports&&_nodeUtilExports.isMap,isMap$1=nodeIsMap?baseUnary$1(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$1=_getTag,isObjectLike$1=isObjectLike_1,setTag$1="[object Set]";function baseIsSet$1(e){return isObjectLike$1(e)&&getTag$1(e)==setTag$1}var _baseIsSet=baseIsSet$1,baseIsSet=baseIsSet$1,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsSet=_nodeUtilExports&&_nodeUtilExports.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack=_Stack,arrayEach$1=_arrayEach,assignValue=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer=_cloneBufferExports,copyArray=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys=_getAllKeys,getAllKeysIn$1=_getAllKeysIn,getTag=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject=_initCloneObject,isArray$2=isArray_1,isBuffer=isBufferExports,isMap=isMap_1,isObject=isObject_1,isSet=isSet$1,keys$1=keys_1,keysIn=keysIn_1,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$1=4,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag$1="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};function baseClone$1(n,i,r,e,t,o){var a,s=i&CLONE_DEEP_FLAG$1,d=i&CLONE_FLAT_FLAG$1,u=i&CLONE_SYMBOLS_FLAG$1;if((a=r?t?r(n,e,t,o):r(n):a)===undefined){if(!isObject(n))return n;e=isArray$2(n);if(e){if(a=initCloneArray(n),!s)return copyArray(n,a)}else{var c=getTag(n),l=c==funcTag||c==genTag;if(isBuffer(n))return cloneBuffer(n,s);if(c==objectTag$1||c==argsTag||l&&!t){if(a=d||l?{}:initCloneObject(n),!s)return d?copySymbolsIn(n,baseAssignIn(a,n)):copySymbols(n,baseAssign(a,n))}else{if(!cloneableTags[c])return t?n:{};a=initCloneByTag(n,c,s)}}l=(o=o||new Stack).get(n);if(l)return l;o.set(n,a),isSet(n)?n.forEach(function(e){a.add(baseClone$1(e,i,r,e,n,o))}):isMap(n)&&n.forEach(function(e,t){a.set(t,baseClone$1(e,i,r,t,n,o))});var p=e?undefined:(u?d?getAllKeysIn$1:getAllKeys:d?keysIn:keys$1)(n);arrayEach$1(p||n,function(e,t){p&&(e=n[t=e]),assignValue(a,t,baseClone$1(e,i,r,t,n,o))})}return a}cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag$1]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;var _baseClone=baseClone$1;function last$1(e){var t=null==e?0:e.length;return t?e[t-1]:undefined}var last_1=last$1;function baseSlice$1(e,t,n){for(var i=-1,r=e.length,o=((n=r<n?r:n)<0&&(n+=r),r=n<(t=t<0?r<-t?0:r+t:t)?0:n-t>>>0,t>>>=0,Array(r));++i<r;)o[i]=e[i+t];return o}var _baseSlice=baseSlice$1,baseGet=_baseGet,baseSlice=baseSlice$1;function parent$1(e,t){return t.length<2?e:baseGet(e,baseSlice(t,0,-1))}var _parent=parent$1,castPath$1=_castPath,last=last$1,parent=parent$1,toKey=_toKey;function baseUnset$1(e,t){return t=castPath$1(t,e),null==(e=parent(e,t))||delete e[toKey(last(t))]}var _baseUnset=baseUnset$1,baseGetTag=_baseGetTag,getPrototype=_getPrototype,isObjectLike=isObjectLike_1,objectTag="[object Object]",funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$1(e){return!(!isObjectLike(e)||baseGetTag(e)!=objectTag)&&(null===(e=getPrototype(e))||"function"==typeof(e=hasOwnProperty.call(e,"constructor")&&e.constructor)&&e instanceof e&&funcToString.call(e)==objectCtorString)}var isPlainObject_1=isPlainObject$1,isPlainObject=isPlainObject$1;function customOmitClone$1(e){return isPlainObject(e)?undefined:e}var _customOmitClone=customOmitClone$1,Symbol$1=_Symbol,isArguments=isArguments_1,isArray$1=isArray_1,spreadableSymbol=_Symbol?_Symbol.isConcatSpreadable:undefined;function isFlattenable$1(e){return isArray$1(e)||isArguments(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush=_arrayPush,isFlattenable=isFlattenable$1;function baseFlatten$1(e,t,n,i,r){var o=-1,a=e.length;for(n=n||isFlattenable,r=r||[];++o<a;){var s=e[o];0<t&&n(s)?1<t?baseFlatten$1(s,t-1,n,i,r):arrayPush(r,s):i||(r[r.length]=s)}return r}var _baseFlatten=baseFlatten$1,baseFlatten=baseFlatten$1;function flatten$1(e){return(null==e?0:e.length)?baseFlatten(e,1):[]}var flatten_1=flatten$1;function apply$1(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var _apply=apply$1,apply=apply$1,nativeMax=Math.max;function overRest$1(o,a,s){return a=nativeMax(a===undefined?o.length-1:a,0),function(){for(var e=arguments,t=-1,n=nativeMax(e.length-a,0),i=Array(n);++t<n;)i[t]=e[a+t];for(var t=-1,r=Array(a+1);++t<a;)r[t]=e[t];return r[a]=s(i),apply(o,this,r)}}var _overRest=overRest$1;function constant$1(e){return function(){return e}}var constant_1=constant$1;function identity$2(e){return e}var identity_1=identity$2,constant=constant$1,defineProperty=_defineProperty,identity$1=identity_1,baseSetToString$1=defineProperty?function(e,t){return defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity_1,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut$1(n){var i=0,r=0;return function(){var e=nativeNow(),t=HOT_SPAN-(e-r);if(r=e,0<t){if(++i>=HOT_COUNT)return arguments[0]}else i=0;return n.apply(undefined,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=shortOut$1,setToString$1=shortOut$1(_baseSetToString),_setToString=setToString$1,flatten=flatten_1,overRest=_overRest,setToString=setToString$1;function flatRest$1(e){return setToString(overRest(e,undefined,flatten),e+"")}var _flatRest=flatRest$1,arrayMap=_arrayMap,baseClone=_baseClone,baseUnset=_baseUnset,castPath=_castPath,copyObject=_copyObject,customOmitClone=_customOmitClone,flatRest=flatRest$1,getAllKeysIn=_getAllKeysIn,CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,omit=flatRest$1(function(t,e){var n={};if(null!=t)for(var i=!1,r=(e=arrayMap(e,function(e){return e=castPath(e,t),i=i||1<e.length,e}),copyObject(t,getAllKeysIn(t),n),i&&(n=baseClone(n,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone)),e.length);r--;)baseUnset(n,e[r]);return n}),omit_1=omit,omit$1=getDefaultExportFromCjs(omit);function doesExist(e){return!(null==e)}const MESSAGE_PROMISE="promise";function Message(e,t,n){this.name=e,this.type=t,this.data=n}Message.prototype.toString=function(){return`Message.${this.type} - `+this.name};const createMessage=(e,t,n)=>{e=new Message(e,t,n);return t===MESSAGE_PROMISE&&(e.requestId=uniqueId$1()),e},fromEvent=e=>{try{var{name:t,type:n,isResponse:i,data:r,requestId:o,sender:a}=e.data||{},s=new Message(t,n,doesExist(r)?JSON.parse(r):undefined);return s.requestId=o,s.sender=a,s.destination=e.source,s.isResponse=i,s}catch(d){return!1}},serialize=e=>{var t=omit$1(e,["destination","toString","data"]);return t.data=JSON.stringify(e.data,(e,t)=>"function"==typeof t||t instanceof RegExp?t.toString?t.toString():undefined:t),t},asResponse=e=>(e.isResponse=!0,e),pipe=(...e)=>r=>{return[].concat(e).reduce((e,t,n,i)=>{e=t(e,r);return e||i.splice(n,i.length-n),e},r)},tap=n=>(e,...t)=>(n(e,...t),e);function createBaseFor$1(d){return function(e,t,n){for(var i=-1,r=Object(e),o=n(e),a=o.length;a--;){var s=o[d?a:++i];if(!1===t(r[s],s,r))break}return e}}var _createBaseFor=createBaseFor$1,createBaseFor=createBaseFor$1,baseFor$1=createBaseFor$1(),_baseFor=baseFor$1,baseFor=baseFor$1,keys=keys_1;function baseForOwn$1(e,t){return e&&baseFor(e,t,keys)}var _baseForOwn=baseForOwn$1,isArrayLike=isArrayLike_1;function createBaseEach$1(o,a){return function(e,t){if(null!=e){if(!isArrayLike(e))return o(e,t);for(var n=e.length,i=a?n:-1,r=Object(e);(a?i--:++i<n)&&!1!==t(r[i],i,r););}return e}}var _createBaseEach=createBaseEach$1,baseForOwn=baseForOwn$1,createBaseEach=createBaseEach$1,baseEach$1=createBaseEach$1(baseForOwn$1),_baseEach=baseEach$1,identity=identity_1;function castFunction$1(e){return"function"==typeof e?e:identity}var _castFunction=castFunction$1,arrayEach=_arrayEach,baseEach=baseEach$1,castFunction=castFunction$1,isArray=isArray_1;function forEach(e,t){return(isArray(e)?arrayEach:baseEach)(e,castFunction(t))}var forEach_1=forEach,each=forEach,each$1=getDefaultExportFromCjs(forEach);const dead="dead_connection",disconnected="disconnected",connected="connected",isConnected=e=>e<1e4,isDisconnected=e=>1e4<e,isDead=e=>3e4<e,state$1={lastMessageReceivedAt:0,currentConnectionQuality:disconnected,changeCallbacks:{},evalCallbacks:{}},triggerConnectionStatusChanged=()=>{each$1(state$1.changeCallbacks,e=>{e(state$1.currentConnectionQuality)})},triggerEval=()=>{each$1(state$1.evalCallbacks,e=>{e(state$1.currentConnectionQuality)})},setConnectionStatus=e=>{e!==state$1.currentConnectionQuality&&(state$1.currentConnectionQuality=e,triggerConnectionStatusChanged())},evaluateConnectionQuality=()=>{var e;0===state$1.lastMessageReceivedAt?setConnectionStatus(disconnected):(e=Date.now()-state$1.lastMessageReceivedAt,isConnected(e)?setConnectionStatus(connected):isDisconnected(e)&&(isDead(e)?setConnectionStatus(dead):setConnectionStatus(disconnected)),triggerEval())};let stopFn;const start=(e=0)=>{const t=setInterval(evaluateConnectionQuality,100);stopFn=()=>clearInterval(t)},stop=()=>{stopFn&&stopFn(),resetMonitor()};let _listenerId=0;const onStatusEval=e=>{if(isFunction$3(e)){const t=_listenerId++;return state$1.evalCallbacks[t]=e,()=>{delete state$1.evalCallbacks[t]}}},markTime=(e=Date.now())=>{state$1.lastMessageReceivedAt=e},resetMonitor=()=>{state$1.currentConnectionQuality=disconnected,state$1.lastMessageReceivedAt=0},state={appName:undefined,connectionName:undefined,frameId:undefined,pendingRequests:{},topics:{},senderIds:{},originProvider:undefined,destinationProvider:undefined},getListener=()=>""+state.appName+state.connectionName+`(${state.frameId})`,_send=e=>{e.sender||(e.sender=getListener());var t=e.destination||state.destinationProvider(),n=serialize(e),i=getPortForSender(e.sender),r=hasSenderTriedToUpgradeToMessageChannel(e.sender);i||r?i?i.postMessage(n):t.postMessage(n,state.originProvider()):(r=new MessageChannel,addPort(r.port1,e.sender),t.postMessage(n,state.originProvider(),[r.port2]))},promise=(r,o,a=1e3)=>new Promise$4((e,t)=>{const n=createMessage(r,MESSAGE_PROMISE,o),i=setTimeout$1(()=>{t(r+" timeout"),clearPendingRequest(n),downgradeToPostMessage(n)},a);addPendingRequest(n,()=>clearTimeout(i),e,t),_send(n)}),addSenderId=e=>{state.senderIds[e]||(state.senderIds[e]={port:undefined,hasTriedToUpgradeToMessageChannel:!1})},getSenderInfo=e=>(state.senderIds[e]||addSenderId(e),state.senderIds[e]),getPortForSender=e=>getSenderInfo(e).port,hasSenderTriedToUpgradeToMessageChannel=e=>getSenderInfo(e).hasTriedToUpgradeToMessageChannel,addPendingRequest=(e,t,n,i)=>{state.pendingRequests[e.requestId]={message:e,clearTimeoutfn:t,resolve:n,reject:i}},resolveRequest=e=>{var t=state.pendingRequests[e.requestId];return t&&(t.resolve(e.data),clearPendingRequest(e)),e},clearPendingRequest=e=>{var t=e["requestId"];return state.pendingRequests[t].clearTimeoutfn(),delete state.pendingRequests[t],e},updateSubscriptions=t=>{var e=state.topics[t.name];return e&&e.forEach(e=>e(t.data)),t},PING_MSG="message::ping",sendPing=()=>{promise(PING_MSG)["catch"](()=>{console.log("message::ping timedout")})},dispatchMessage=t=>{var e;return t&&!t.isResponse&&(t.name===PING_MSG?_send(asResponse(t)):(e=state.routeHandlerLookup(t.name))?e(t,e=>{t.data=e,_send(asResponse(t))}):console.log(getListener(),"No route handler for "+t.name,t)),t},commonFns=pipe(resolveRequest,updateSubscriptions,dispatchMessage,tap(()=>{markTime()})),filterWrongOrigin=e=>("*"===state.originProvider()||e.origin===state.originProvider())&&e,filterWrongSender=e=>{var t=get$1(e,"data.sender");return!(!t||"string"!=typeof t||!t.includes(state.appName))&&e},addPort=(e,t)=>{t=getSenderInfo(t);t.port=e,t.hasTriedToUpgradeToMessageChannel=!0,t.port.onmessage=pipe(fromEvent,commonFns)},removePort=e=>{e=getSenderInfo(e);e.port=undefined,e.hasTriedToUpgradeToMessageChannel=!1},upgradeToChannel=(e,t)=>{return!getSenderInfo(e.sender).hasTriedToUpgradeToMessageChannel&&t.ports&&t.ports[0]&&addPort(t.ports[0],e.sender),e},downgradeToPostMessage=e=>{removePort(e.sender)};let _stopListening=()=>{};const stopListening=()=>{_stopListening(),_stopListening=()=>{},stop()},notConnectedListener=throttle$2(e=>{"connected"!==e&&state.usePingAutoReconnect&&sendPing()},1e3),startListening=(e,t,n,i,r,o=!1,a)=>{if(window.addEventListener){state.appName=e,state.frameId=t,state.routeHandlerLookup=n,state.usePingAutoReconnect=o,state.connectionName=a||"",state.originProvider=i||(()=>window.location.origin||"*"),state.destinationProvider=r||(()=>window.parent||window.top),start(),onStatusEval(notConnectedListener);const s=pipe(filterWrongOrigin,filterWrongSender,fromEvent,upgradeToChannel,commonFns);window.addEventListener("message",s),_stopListening=()=>window.removeEventListener("message",s)}};var VocPortal=function(){var r,h;return{name:"VocPortal",initialize:function(e,t){r=e;e=(h=t).EventTracer.addTracerIds({}).frameId;this.removeResizeEvent=r.attachEvent(window,"resize",f),startListening("VocPortal",e,n,function(){return"*"})},routeHandlerLookup:n,queryMessageHandler:t,resizeMessageHandler:i,teardown:function(){this.removeResizeEvent&&this.removeResizeEvent();stopListening()}};function n(e){switch(e){case"pendo-voc::query":return t;case"pendo-voc::resize":return i;default:return undefined}}function f(){var e=document.getElementById("pendo-resource-center-container"),e=r.dom(e);h.sizeElements(e)}function t(e,t){var n=r.getSerializedMetadata(),i=!!r.designer||h.store.getters["preview/isInPreviewMode"]();t({apiKey:r.apiKey,url:r.url.externalizeURL(),visitor:n.visitor,account:n.account,parentAccount:n.parentAccount,sandboxMode:i})}function i(e){try{var t,n,i,r=e.data.width,o=r.value,a=r.unit,s=r.isImportant,d=e.data.height,u=d.value,c=d.unit,l=d.isImportant;"number"==typeof o&&"number"==typeof u&&((t=["px","%","vh","vw"]).includes(a)&&t.includes(c))&&(n="".concat(o).concat(a).concat(s?" !important":""),i="".concat(u).concat(c).concat(l?" !important":""),document.getElementById("pendo-resource-center-container").appendChild(document.createElement("style")).innerHTML='#pendo-resource-center-container:has(iframe[src*="portal"][src*="mode=rc"]) {\n width: '.concat(n,";\n height: ").concat(i,";\n ._pendo-step-container-size {\n width: ").concat(n,";\n height: ").concat(i,";\n }\n }"),f())}catch(p){h.log.error("Error while adjusting RC module",p)}}}();function isFeedbackOn(e){return e.ConfigReader.get("pendoFeedback")}function isUnsupportedIE(e){return!e.sniffer.isMinimumIEVersion(10)}var Feedback=function(){var a,s,i="feedback_notification_count",d="",u="",c="",r="",o=!1,l="",p=!1,h="feedback_ping_sent",G=36e5,f={feedbackIframe:"feedback-widget_iframe",feedbackTrigger:"feedback-trigger",feedbackWidget:"feedback-widget",feedbackOverlay:"feedback-overlay",feedbackTriggerButton:"feedback-trigger-button",feedbackStyles:"pendo-feedback-styles",feedbackFrameStyles:"pendo-feedback-visible-buttons-styles"};return{name:"Feedback",initialize:function(e,t){s=t;var n={ping:I,init:F,initialized:j,loginAndRedirect:A,openFeedback:k,initializeFeedbackOnce:S,isFeedbackLoaded:$,convertPendoToFeedbackOptions:P,isUnsupportedIE:(a=e)._.partial(isUnsupportedIE,t),removeFeedbackWidget:z};return e.feedback=n,e.getFeedbackSettings=Z,t.Events.identify.on(m),t.Events.metadata.on(m),t.Events.ready.on(v),t.agentStorage.registry.addLocal(i),t.agentStorage.registry.addLocal(h),{validate:g}},teardown:function(){z(),s.Events.identify.off(m),s.Events.metadata.off(m),s.Events.ready.off(v),delete a.feedback,delete a.getFeedbackSettings},validate:g};function g(e,t){t=isFeedbackOn(t);return t&&isUnsupportedIE(e)?(console.warn("The current version of IE is not supported by Pendo Feedback"),!1):t}function t(){var e=L();p?I(P(e)):!isFeedbackOn(s)||s.ConfigReader.get("disableFeedbackAutoInit")||s.ConfigReader.get("disableFeedback",!1)||a._.isEmpty(e)||F(e,s.ConfigReader.get("feedbackSettings"))["catch"](a._.noop)}function m(e){e=a._.get(e,"data.0.visitor_id")||a._.get(e,"data.0.options.visitor.id");a.isAnonymousVisitor(e)||t()}function v(){t()}function y(){return c+"/html/widget/notLoaded.html"}function n(e){return e=e||P(L()),s.agentStorage.read(h)===b(e)}function b(e){return JSON.stringify(e)}function I(e){if(!n(e)){s.agentStorage.write(h,b(e),G);e=w(e);if(e.data&&"{}"!==e.data&&"null"!==e.data)return a.ajax.postJSON(d+"/widget/pendo_ping",e).then(function(e){e=e.data.notifications;s.agentStorage.write(i,e),C()})["catch"](function(){s.agentStorage.clear(h)})}return s.q.resolve()}function w(e){return e=e||P(L()),{data:JSON.stringify(e)}}function C(){var e,t=a.dom("#feedback-trigger-notification");0!==t.length&&(e=s.agentStorage.read(i)||0,0<parseInt(e,10)?a._.each(t,function(e){a.dom(e).css({visibility:"visible"})}):a._.each(t,function(e){a.dom(e).css({visibility:"hidden"})}))}function S(){return p&&n()?s.q.resolve():F(L(),s.ConfigReader.get("feedbackSettings"))}function A(e){return S().then(function(){if(a._.isUndefined(e)&&(e={}),"A"===a._.get(e,"anchor.nodeName","").toUpperCase())return t=window.open(y(),Math.random().toString(36).substring(7)),T().then(function(e){t.location=e}),!1;var t;T().then(function(e){window.location.href=e})},function(){})}function E(e){var t=document.createElement("a");return t.href=e,t.host}function T(){var e=w();if(e.data&&"{}"!==e.data&&"null"!==e.data)return a.ajax.postJSON(d+"/widget/token",e).then(function(e){var t;return t=e.data.login_url,r=E(t),e.data.login_url})}function _(){return document.getElementById(f.feedbackWidget)}function x(){return document.getElementById(f.feedbackIframe)}function R(){var e=x();return e||(W(),e=x()),e}function k(e){var t,n;U()&&(e&&e.preventDefault&&e.preventDefault(),(t=R()).src&&t.src!==y()||T().then(function(e){t.src=e+"&inWidget=true"}),(e=a.dom("#".concat(f.feedbackWidget)))&&((n=a.dom(document.createElement("div"))).attr("id","feedback-overlay"),n.css({position:"fixed",top:"0",right:"0",bottom:"0",left:"0",background:"rgba(0, 0, 0, 0.4)","z-index":"9000",opacity:"0",animation:"pendoFeedbackFadeIn 0.5s 0s 1 alternate both","-webkit-animation":"pendoFeedbackFadeIn 0.5s 0s 1 alternate both"}),n.appendTo(e.getParent())),a.dom.addClass(_(),"visible"),N("user.widget.opened"))}function O(){var e,t;e=document.getElementById(f.feedbackWidget),t=document.getElementById(f.feedbackOverlay),e&&t&&(e=document.getElementById(f.feedbackOverlay)).parentNode.removeChild(e),a.dom.removeClass(_(),"visible"),N("user.widget.closed")}function N(e){var t=w();t.event=e,a.ajax.postJSON(d+"/analytics",t)}function D(){window.addEventListener("message",function(e){var t=e.origin||e.originalEvent.origin;if(t=t,r?E(t)===r:E(t)===E(c)){var t=e.data.message,n=e.data.data;switch(t){case"close-receptive-widget":O();break;case"open-receptive":A();break;case"update-receptive-notification-count":s.agentStorage.write(i,n.count),C();break;case"handle-logout":R().src=y(),O();break;case"loaded-receptive-widget":o=!0}}},!1)}function M(e,t){var n;a.dom("#".concat(e))[0]||((n=a.dom(document.createElement("style"))).attr("id",e),n.html(t),n.appendTo(document.head))}function B(e){var t,n,i=a._.extend(e,{triggerColor:"#"+e.triggerColor,triggerPosition:e.triggerPosition.toLowerCase()}),r=("undefined"!=typeof Turbolinks&&document.addEventListener("turbolinks:before-visit",function(e){var t=document.getElementById(f.feedbackIframe);t&&(t.src=y())}),function(e){e=e.triggerPosition.split("_");return{horizontalPosition:e[1],verticalPosition:e[0]}}(i));M(f.feedbackStyles,(n="left"===(n=r.horizontalPosition)?(t="@-webkit-keyframes pendoFeedbackSlideFrom-left{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}@keyframes pendoFeedbackSlideFrom-left{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}","@media only screen and (max-width:470px){#feedback-widget.buttonIs-left.visible{width:100%}}"):(t="@-webkit-keyframes pendoFeedbackSlideFrom-right{from{transform:translate(-460px,0)}to{transform:translate(0,0)}}@keyframes pendoFeedbackSlideFrom-right{from{opacity:0;transform:translate(460px,0)}to{opacity:1;transform:translate(0,0)}}","@media only screen and (max-width:470px){#feedback-widget.buttonIs-right.visible{width:100%;right:2%}}"),"@media only screen and (max-device-width:1112px){#feedback-widget{overflow-y:scroll}}@-webkit-keyframes pendoFeedbackSlideIn{from{opacity:0;transform:translate(145px,0) rotate(270deg) translateY(-50%)}to{opacity:1;transform:translate(50%,0) rotate(270deg) translateY(-50%)}}@keyframes pendoFeedbackSlideIn{from{opacity:0;transform:translate(145px,0) rotate(270deg) translateY(-50%)}to{opacity:1;transform:translate(50%,0) rotate(270deg) translateY(-50%)}}@-webkit-keyframes pendoFeedbackSlideIn-left{from{opacity:0;transform:rotate(270deg) translateX(-55%) translateY(-55%)}to{opacity:1;transform:rotate(270deg) translateX(-55%) translateY(0)}}@keyframes pendoFeedbackSlideIn-left{from{opacity:0;transform:rotate(270deg) translateX(-55%) translateY(-55%)}to{opacity:1;transform:rotate(270deg) translateX(-55%) translateY(0)}}"+t+"@-webkit-keyframes pendoFeedbackPulse{from{-webkit-transform:scale(1,1);transform:scale(1,1)}50%{-webkit-transform:scale(1.15,1.15);transform:scale(1.15,1.15)}to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@keyframes pendoFeedbackPulse{from{-webkit-transform:scale(1,1);transform:scale(1,1)}50%{-webkit-transform:scale(1.15,1.15);transform:scale(1.15,1.15)}to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@-webkit-keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}@keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}"+n+"#feedback-trigger button:focus,#feedback-trigger button:hover{box-shadow:0 -5px 20px rgba(0,0,0,.19);outline:0;background:#3e566f}")),e.customTrigger||(t=i,n=r,M("pendo-feedback-trigger-styles","\n #feedback-trigger button:hover {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n #feedback-trigger button:focus {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n "),e=function(e){var t=function(e){return"left"===e.horizontalPosition?{"transform-origin":"center left",left:"23px",animation:"pendoFeedbackSlideIn-left 0.2s 0s 1 alternate forwards","-webkit-animation":"pendoFeedbackSlideIn-left 0.2s 0s 1 alternate forwards"}:{right:"0px",animation:"pendoFeedbackSlideIn 0.2s 0s 1 alternate forwards","-webkit-animation":"pendoFeedbackSlideIn 0.2s 0s 1 alternate forwards"}}(e),e=function(e){switch(e.verticalPosition){case"top":return{top:" 10%"};case"middle":return{top:" 45%"};case"bottom":return{bottom:" 20%"}}}(e),t=a._.extend({position:"fixed",height:"43px",opacity:"1 !important","z-index":"9001"},t,e),e=a.dom(document.createElement("div"));return e.attr("id",f.feedbackTrigger),e.css(t),e.attr("data-turbolinks-permanent",""),e}(n),i=function(){var e=a.dom(document.createElement("span"));return e.attr("id","feedback-trigger-notification"),e.css({"background-color":"#D85039",color:"#fff","border-radius":"50%",height:"17px",width:"17px",position:"absolute",right:"-6px",top:"-8px",visibility:"hidden","z-index":"1",animation:"pendoFeedbackPulse","animation-fill-mode":"both","animation-duration":"1s","animation-delay":"1s","animation-iteration-count":"1"}),e}(),t=function(e,t){t="left"===t.horizontalPosition?"0 0 5px 5px":"3px 3px 0 0";var t={border:"none",padding:"11px 18px 14px 18px","background-color":e.triggerColor,"border-radius":t,"font-size":"15px",color:"#fff","box-shadow":"0 -5px 9px rgba(0,0,0,.16)",cursor:"pointer","text-align":"left"},n=a.dom(document.createElement("button"));return n.attr("id",f.feedbackTriggerButton),n.css(t),n.text(e.triggerText),n}(t,n),e.append(i),e.append(t),e.appendTo(a.dom.getBody()),s.attachEvent(t[0],"click",k)),W(r.horizontalPosition)}function W(e){t="\n .buttonIs-".concat(t="left"===(t=e)?"left":"right",".visible {\n ").concat(t,": 0 !important;\n width: 470px !important;\n animation-direction: alternate-reverse !important;\n animation: pendoFeedbackSlideFrom-").concat(t," 0.5s 0s 1 alternate both !important;\n -webkit-animation: pendoFeedbackSlideFrom-").concat(t," 0.5s 0s 1 alternate both !important;\n z-index: 9002 !important;\n }\n "),M(f.feedbackFrameStyles,t),t=e,(e=a.dom(document.createElement("div"))).css({height:"100%",position:"fixed",right:"0",top:"0",width:"0","background-color":"#f7f7f7",transition:"animation 0.4s ease-in-out","box-shadow":"0 5px 40px rgba(0,0,0,.46)",display:"block !important","-webkit-overflow-scrolling":"touch","overflow-y":"hidden"}),e.attr("id",f.feedbackWidget),e.attr("data-turbolinks-permanent","true"),e.addClass("buttonIs-".concat(t));var t=e;t.append(((e=a.dom(document.createElement("iframe"))).css({width:"100%",height:"99.6%",border:"0 none"}),e.attr("id",f.feedbackIframe),e.attr("title","Feedback"),e.attr("src",y()),e)),t.appendTo(a.dom.getBody()),D()}function $(){return o}function L(){var e=s.ConfigReader.getLocalConfig();return a._.isObject(e)||(e={}),a._.isObject(e.visitor)||(e.visitor={}),a._.isObject(e.account)||(e.account={}),e}function U(e){e=e||L();if(!isUnsupportedIE(a)&&u&&d&&c&&l)if(a._.get(e.visitor,"id")){if(!a.isAnonymousVisitor(e.visitor.id)){if(a._.get(e.account,"id"))return 1;a.log("The current visitor is not associated with an account.")}}else a.log("Not valid visitor id")}function F(e,t){if(u=t.vendorId,d=t.apiUrl,c=t.siteUrl,l=t.productId,p)return s.q.reject();if(!U(e))return s.q.reject();var n,i,e=P(e);try{n=a.url.get(),i="fdbkDst";var r=null!=(i=new RegExp("[?&]"+i+"=([^&#]*)").exec(n))&&decodeURI(i[1])||null;if(r&&r.startsWith("case"))return p=!0,void T().then(function(e){window.location.href=e+"&fdbkDst="+r})}catch(o){p=!1,a.log(o,"unhandled error while checking feedback destination")}try{return p=!0,"WIDGET"===t.type&&B(t),C(),I(e)}catch(o){return p=!1,a.log(o,"unhandled error while initializing feedback"),s.q.reject(o)}}function P(e){var t,n,i=s.agent.getJwtInfoCopy();return a._.isEmpty(i)?((t={}).user=a._.pick(e.visitor,"id","full_name","firstName","lastName","email","tags","custom_allowed_products"),a._.extend(t.user,{allowed_products:[{id:l}]}),t.account=a._.pick(e.account,"id","name","monthly_value","is_paying","tags"),a._.extend(t,{vendor:{id:u}}),a._.isUndefined(t.account.is_paying)&&(t.account.is_paying=!0),null!=t.user.email&&""!=t.user.email||(t.user.email=(e=t,a._.isUndefined(e.user)||a._.isUndefined(e.user.id)?"noemail+"+a.randomString(32)+"@pendo.io":"noemail+"+e.user.id+"@pendo.io")),null!=t.user.full_name&&""!=t.user.full_name||(t.user.full_name=(e=t,a._.isUndefined(e.user.firstName)&&a._.isUndefined(e.user.lastName)?a._.isUndefined(e.user)||a._.isUndefined(e.user.id)?"No Name Provided"+a.randomString(32):"No Name Provided"+e.user.id:(n=[],a._.isUndefined(e.user.firstName)||n.push(e.user.firstName),a._.isUndefined(e.user.lastName)||n.push(e.user.lastName),n.join(" ")))),t):(e=JSON.parse(JSON.stringify(i)),a._.extend(e,{vendor:{id:u}}),a._.extend(e,{allowed_products:[{id:l}]}),e)}function j(){return p}function z(){a._.each(a._.values(f),function(e){a.dom("#"+e).remove()}),l=r=c=u=d="",p=o=!1}function Z(){return JSON.parse(JSON.stringify(s.ConfigReader.get("feedbackSettings",{})))}}();function URLPolyfillFactory(n){return function URL(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}}var _a,URL$1=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(URLPolyfillFactory),__defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__defProp$1=Object.defineProperty,__defNormalProp$1=(e,t,n)=>t in e?__defProp$1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField$1=(e,t,n)=>__defNormalProp$1(e,"symbol"!=typeof t?t+"":t,n),NodeType$3=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(NodeType$3||{});const testableAccessors$1={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods$1={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype$1={};function angularZoneUnpatchedAlternative$1(e){var t,n=null==(t=null==(n=null==globalThis?void 0:globalThis.Zone)?void 0:n.__symbol__)?void 0:t.call(n,e);if(n&&globalThis[n])return globalThis[n]}function getUntaintedPrototype$1(e){if(untaintedBasePrototype$1[e])return untaintedBasePrototype$1[e];var t=angularZoneUnpatchedAlternative$1(e)||globalThis[e];const n=t.prototype;var i=e in testableAccessors$1?testableAccessors$1[e]:void 0,i=Boolean(i&&i.every(e=>{return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),r=e in testableMethods$1?testableMethods$1[e]:void 0,r=Boolean(r&&r.every(e=>{return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(i&&r)return untaintedBasePrototype$1[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?untaintedBasePrototype$1[e]=o:n):t.prototype}catch{return n}}const untaintedAccessorCache$1={};function getUntaintedAccessor$1(e,t,n){var i=e+"."+String(n);return untaintedAccessorCache$1[i]?untaintedAccessorCache$1[i].call(t):(e=getUntaintedPrototype$1(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(untaintedAccessorCache$1[i]=e).call(t):t[n])}const untaintedMethodCache$1={};function getUntaintedMethod$1(e,t,n){var i=e+"."+String(n);return untaintedMethodCache$1[i]?untaintedMethodCache$1[i].bind(t):"function"!=typeof(e=getUntaintedPrototype$1(e)[n])?t[n]:(untaintedMethodCache$1[i]=e).bind(t)}function childNodes$1(e){return getUntaintedAccessor$1("Node",e,"childNodes")}function parentNode$1(e){return getUntaintedAccessor$1("Node",e,"parentNode")}function parentElement$1(e){return getUntaintedAccessor$1("Node",e,"parentElement")}function textContent$1(e){return getUntaintedAccessor$1("Node",e,"textContent")}function contains$1(e,t){return getUntaintedMethod$1("Node",e,"contains")(t)}function getRootNode$1(e){return getUntaintedMethod$1("Node",e,"getRootNode")()}function host$1(e){return e&&"host"in e?getUntaintedAccessor$1("ShadowRoot",e,"host"):null}function styleSheets$1(e){return e.styleSheets}function shadowRoot$1(e){return e&&"shadowRoot"in e?getUntaintedAccessor$1("Element",e,"shadowRoot"):null}function querySelector$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelector")(t)}function querySelectorAll$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelectorAll")(t)}function mutationObserverCtor$1(){return getUntaintedPrototype$1("MutationObserver").constructor}function patch$1(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}const index$1={childNodes:childNodes$1,parentNode:parentNode$1,parentElement:parentElement$1,textContent:textContent$1,contains:contains$1,getRootNode:getRootNode$1,host:host$1,styleSheets:styleSheets$1,shadowRoot:shadowRoot$1,querySelector:querySelector$1,querySelectorAll:querySelectorAll$1,mutationObserver:mutationObserverCtor$1,patch:patch$1};function isElement(e){return e.nodeType===e.ELEMENT_NODE}function isShadowRoot(e){var t=e&&"host"in e&&"mode"in e&&index$1.host(e)||null;return Boolean(t&&"shadowRoot"in t&&index$1.shadowRoot(t)===e)}function isNativeShadowDom(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function getNative$1(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}const nativeSetTimeout="undefined"!=typeof window?getNative$1("setTimeout").bind(window):global.setTimeout;function fixBrowserCompatibilityIssuesInCSS(e){return e=e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")?e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):e}function escapeImportStatement(e){var t=e["cssText"];return t.split('"').length<3?t:(t=["@import",`url(${JSON.stringify(e.href)})`],""===e.layerName?t.push("layer"):e.layerName&&t.push(`layer(${e.layerName})`),e.supportsText&&t.push(`supports(${e.supportsText})`),e.media.length&&t.push(e.media.mediaText),t.join(" ")+";")}function stringifyStylesheet(e){try{var n=e.rules||e.cssRules;if(!n)return null;let t=e.href;return!t&&e.ownerNode&&e.ownerNode.ownerDocument&&(t=e.ownerNode.ownerDocument.location.href),fixBrowserCompatibilityIssuesInCSS(Array.from(n,e=>stringifyRule(e,t)).join(""))}catch(t){return null}}function stringifyRule(t,n){var i;if(isCSSImportRule(t)){let e;try{e=stringifyStylesheet(t.styleSheet)||escapeImportStatement(t)}catch(r){e=t.cssText}return null!=(i=null==t?void 0:t.styleSheet)&&i.href?absolutifyURLs(e,t.styleSheet.href):e}{let e=t.cssText;return isCSSStyleRule(t)&&(e=replaceChromeGridTemplateAreas(t),t.selectorText.includes(":"))&&(e=fixSafariColons(e)),n?absolutifyURLs(e,n):e}}function replaceChromeGridTemplateAreas(t){var e=t.cssText.includes("grid-template:"),n=""!==t.style.getPropertyValue("grid-template-areas"),i=t.cssText.includes("grid-template-areas:");if(e&&n&&!i){var r=[];for(let e=0;e<t.style.length;e++){var o=t.style[e],a=t.style.getPropertyValue(o);r.push(o+": "+a)}return`${t.selectorText} { ${r.join("; ")}; }`}return t.cssText}function fixSafariColons(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function isCSSImportRule(e){return"styleSheet"in e}function isCSSStyleRule(e){return"selectorText"in e}class Mirror{constructor(){__publicField$1(this,"idNodeMap",new Map),__publicField$1(this,"nodeMetaMap",new WeakMap)}getId(e){return e?(null==(e=this.getMeta(e))?void 0:e.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){var t=this.getId(e);this.idNodeMap["delete"](t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){var n=this.getNode(e);n&&(n=this.nodeMetaMap.get(n))&&this.nodeMetaMap.set(t,n),this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function createMirror$2(){return new Mirror}function maskInputValue({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o,needsMask:a}){let s=r||"";r=i&&toLowerCase(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function toLowerCase(e){return e.toLowerCase()}const ORIGINAL_ATTRIBUTE_NAME="__rrweb_original__";function is2DCanvasBlank(n){var i=n.getContext("2d");if(i)for(let t=0;t<n.width;t+=50)for(let e=0;e<n.height;e+=50){var r=i.getImageData,r=ORIGINAL_ATTRIBUTE_NAME in r?r[ORIGINAL_ATTRIBUTE_NAME]:r;if(new Uint32Array(r.call(i,t,e,Math.min(50,n.width-t),Math.min(50,n.height-e)).data.buffer).some(e=>0!==e))return!1}return!0}function getInputType(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?toLowerCase(t):null}function extractFileExtension(e,t){let n;try{n=new URL$1(e,t??window.location.href)}catch(i){return null}e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==e?void 0:e[1])??null}function extractOrigin(e){let t="";return t=(t=-1<e.indexOf("//")?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}const URL_IN_CSS_REF=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,URL_PROTOCOL_MATCH=/^(?:[a-z+]+:)?\/\//i,URL_WWW_MATCH=/^www\..*/i,DATA_URI=/^(data:)([^,]*),(.*)/i;function absolutifyURLs(e,d){return(e||"").replace(URL_IN_CSS_REF,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(URL_PROTOCOL_MATCH.test(n)||URL_WWW_MATCH.test(n))return`url(${r}${n}${r})`;if(DATA_URI.test(n))return`url(${r}${n}${r})`;if("/"===n[0])return`url(${r}${extractOrigin(d)+n}${r})`;var a=d.split("/"),o=n.split("/");a.pop();for(const s of o)"."!==s&&(".."===s?a.pop():a.push(s));return`url(${r}${a.join("/")}${r})`})}function normalizeCssString(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function splitCssText(a,e,s=!1){var d=Array.from(e.childNodes),u=[];let c=0;if(1<d.length&&a&&"string"==typeof a){let o=normalizeCssString(a,s);var l=o.length/a.length;for(let r=1;r<d.length;r++)if(d[r].textContent&&"string"==typeof d[r].textContent){var p,h=normalizeCssString(d[r].textContent,s);let i=3;for(;i<h.length&&(h[i].match(/[a-zA-Z0-9]/)||-1!==h.indexOf(h.substring(0,i),1));i++);for(;i<h.length;i++){let e=h.substring(0,i),t=o.split(e),n=-1;if(2===t.length)n=t[0].length;else if(2<t.length&&""===t[0]&&""!==d[r-1].textContent)n=o.indexOf(e,1);else if(1===t.length){if(e=e.substring(0,e.length-1),(t=o.split(e)).length<=1)return u.push(a),u;i=101}else i===h.length-1&&(n=o.indexOf(e));if(-1!==(n=2<=t.length&&100<i&&((p=d[r-1].textContent)&&"string"==typeof p&&(p=normalizeCssString(p).length,n=o.indexOf(e,p)),-1===n)?t[0].length:n)){let e=Math.floor(n/l);for(;0<e&&e<a.length;){if((c+=1)>50*d.length)return u.push(a),u;var f=normalizeCssString(a.substring(0,e),s);if(f.length===n){u.push(a.substring(0,e)),a=a.substring(e),o=o.substring(n);break}f.length<n?e+=Math.max(1,Math.floor((n-f.length)/l)):e-=Math.max(1,Math.floor((f.length-n)*l))}break}}}}return u.push(a),u}function markCssSplits(e,t){return splitCssText(e,t).join("/* rr_split */")}let _id=1;const tagNameRegex=new RegExp("[^a-z0-9-_:]"),IGNORED_NODE=-2;function genId(){return _id++}function getValidTagName$1(e){return e instanceof HTMLFormElement?"form":(e=toLowerCase(e.tagName),tagNameRegex.test(e)?"div":e)}let canvasService,canvasCtx;const SRCSET_NOT_SPACES=/^[^ \t\n\r\u000c]+/,SRCSET_COMMAS_OR_SPACES=/^[, \t\n\r\u000c]+/;function getAbsoluteSrcsetString(i,r){if(""===r.trim())return r;let o=0;function e(e){var e=e.exec(r.substring(o));return e?(e=e[0],o+=e.length,e):""}for(var a=[];e(SRCSET_COMMAS_OR_SPACES),!(o>=r.length);){let n=e(SRCSET_NOT_SPACES);if(","===n.slice(-1))n=absoluteToDoc(i,n.substring(0,n.length-1)),a.push(n);else{let e="",t=(n=absoluteToDoc(i,n),!1);for(;;){var s=r.charAt(o);if(""===s){a.push((n+e).trim());break}if(t)")"===s&&(t=!1);else{if(","===s){o+=1,a.push((n+e).trim());break}"("===s&&(t=!0)}e+=s,o+=1}}}return a.join(", ")}const cachedDocument=new WeakMap;function absoluteToDoc(e,t){return t&&""!==t.trim()?getHref(e,t):t}function isSVGElement(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function getHref(e,t){let n=cachedDocument.get(e);if(n||(n=e.createElement("a"),cachedDocument.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function transformAttribute(e,t,n,i){return i&&("src"!==n&&("href"!==n||"use"===t&&"#"===i[0])&&("xlink:href"!==n||"#"===i[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?getAbsoluteSrcsetString(e,i):"style"===n?absolutifyURLs(i,getHref(e)):"object"===t&&"data"===n?absoluteToDoc(e,i):i:absoluteToDoc(e,i))}function ignoreAttribute(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function _isBlockedElement(t,n,e){try{if("string"==typeof n){if(t.classList.contains(n))return!0}else if(n)for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}if(e)return t.matches(e)}catch(r){}return!1}function classMatchesRegex(t,n,e){if(!t)return!1;if(!n)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&classMatchesRegex(index$1.parentNode(t),n,e);for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}return!!e&&classMatchesRegex(index$1.parentNode(t),n,e)}function needMaskingText(e,t,n,i){let r;if(isElement(e)){if(r=e,"*"===n)return!0;if(!index$1.childNodes(r).length)return!1}else{if(null===index$1.parentElement(e))return!1;r=index$1.parentElement(e)}try{if("string"==typeof t){if(i){if(r.closest("."+t))return!0}else if(r.classList.contains(t))return!0}else if(classMatchesRegex(r,t,i))return!0;if(n)if(i){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(o){}return!1}function onceIframeLoaded(n,i,r){var o=n.contentWindow;if(o){let e=!1,t;try{t=o.document.readyState}catch(a){return}if("complete"!==t){const s=nativeSetTimeout(()=>{e||(i(),e=!0)},r);void n.addEventListener("load",()=>{clearTimeout(s),e=!0,i()})}else{r="about:blank";if((n.src===r||n.src!==r&&o.location.href!==r)&&"complete"===t)return nativeSetTimeout(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}function onceStylesheetLoaded(e,t,n){let i=!1,r;try{r=e.sheet}catch(o){return}if(!r){const a=nativeSetTimeout(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}}function serializeNode(e,t){var{doc:n,mirror:t,blockClass:i,blockSelector:r,needsMask:o,inlineStylesheet:a,maskInputOptions:s={},maskTextFn:d,maskInputFn:u,dataURLOptions:c={},inlineImages:l,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,cssCaptured:g=!1}=t,m=getRootId(n,t);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:NodeType$3.Document,childNodes:[],compatMode:e.compatMode}:{type:NodeType$3.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:NodeType$3.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:m};case e.ELEMENT_NODE:return serializeElementNode(e,{doc:n,blockClass:i,blockSelector:r,inlineStylesheet:a,maskInputOptions:s,maskInputFn:u,dataURLOptions:c,inlineImages:l,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f,rootId:m,needsMask:o});case e.TEXT_NODE:return serializeTextNode(e,{doc:n,needsMask:o,maskTextFn:d,maskInputOptions:s,maskInputFn:u,rootId:m,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:NodeType$3.CDATA,textContent:"",rootId:m};case e.COMMENT_NODE:return{type:NodeType$3.Comment,textContent:index$1.textContent(e)||"",rootId:m};default:return!1}}function getRootId(e,t){return!t.hasNode(e)||1===(e=t.getId(e))?void 0:e}function serializeTextNode(e,t){var n,{needsMask:i,maskTextFn:r,maskInputOptions:o,maskInputFn:a,rootId:s,cssCaptured:d}=t,u=e.parentNode&&e.parentNode.tagName;let c="";var l="STYLE"===u||void 0,p="SCRIPT"===u||void 0,u="TEXTAREA"===u||void 0;if(l&&c){try{e.nextSibling||e.previousSibling||null!=(n=e.parentNode.sheet)&&n.cssRules&&(c=stringifyStylesheet(e.parentNode.sheet))}catch(h){console.warn("Cannot get CSS styles from text's parentNode. Error: "+h,e)}c=absolutifyURLs(c,getHref(t.doc))}return p?c="SCRIPT_PLACEHOLDER":d||(c=index$1.textContent(e),l&&(c=c&&absolutifyURLs(c,getHref(t.doc)))),!l&&!p&&c&&i&&(c=r?r(c,index$1.parentElement(e)):c.replace(/[\S]/g,"*")),u&&c&&o.textarea&&(c=a?a(c,e.parentNode):c.replace(/[\S]/g,"*")),{type:NodeType$3.Text,textContent:c||"",rootId:s}}function serializeElementNode(t,e){const{doc:n,blockClass:i,blockSelector:r,inlineStylesheet:o,maskInputOptions:a={},maskInputFn:s,dataURLOptions:d={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:l,newlyAddedElement:p=!1,rootId:h,needsMask:f}=e;var e=_isBlockedElement(t,i,r),g=getValidTagName$1(t);let m={};var v,y=t.attributes.length;for(let e=0;e<y;e++){var b=t.attributes[e];ignoreAttribute(g,b.name,b.value)||(m[b.name]=transformAttribute(n,g,toLowerCase(b.name),b.value))}if("link"===g&&o){var I=Array.from(n.styleSheets).find(e=>e.href===t.href);let e=null;(e=I?stringifyStylesheet(I):e)&&(delete m.rel,delete m.href,m._cssText=e)}if("style"===g&&t.sheet){let e=stringifyStylesheet(t.sheet);e&&(1<t.childNodes.length&&(e=markCssSplits(e,t)),m._cssText=e)}if("input"!==g&&"textarea"!==g&&"select"!==g||(I=t.value,v=t.checked,"radio"!==m.type&&"checkbox"!==m.type&&"submit"!==m.type&&"button"!==m.type&&I?m.value=maskInputValue({element:t,type:getInputType(t),tagName:g,value:I,maskInputOptions:a,maskInputFn:s,needsMask:f}):v&&(m.checked=v)),"option"===g&&(t.selected&&!a.select?m.selected=!0:delete m.selected),"dialog"===g&&t.open&&(m.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),"canvas"===g&&c&&("2d"===t.__context?is2DCanvasBlank(t)||(m.rr_dataURL=t.toDataURL(d.type,d.quality)):"__context"in t||(I=t.toDataURL(d.type,d.quality),(v=n.createElement("canvas")).width=t.width,v.height=t.height,I!==v.toDataURL(d.type,d.quality)&&(m.rr_dataURL=I))),"img"===g&&u){canvasService||(canvasService=n.createElement("canvas"),canvasCtx=canvasService.getContext("2d"));const S=t,A=S.currentSrc||S.getAttribute("src")||"<unknown-src>",E=S.crossOrigin,T=()=>{S.removeEventListener("load",T);try{canvasService.width=S.naturalWidth,canvasService.height=S.naturalHeight,canvasCtx.drawImage(S,0,0),m.rr_dataURL=canvasService.toDataURL(d.type,d.quality)}catch(e){if("anonymous"!==S.crossOrigin)return S.crossOrigin="anonymous",void(S.complete&&0!==S.naturalWidth?T():S.addEventListener("load",T));console.warn(`Cannot inline img src=${A}! Error: `+e)}"anonymous"===S.crossOrigin&&(E?m.crossOrigin=E:S.removeAttribute("crossorigin"))};S.complete&&0!==S.naturalWidth?T():S.addEventListener("load",T)}"audio"!==g&&"video"!==g||((v=m).rr_mediaState=t.paused?"paused":"played",v.rr_mediaCurrentTime=t.currentTime,v.rr_mediaPlaybackRate=t.playbackRate,v.rr_mediaMuted=t.muted,v.rr_mediaLoop=t.loop,v.rr_mediaVolume=t.volume),p||(t.scrollLeft&&(m.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(m.rr_scrollTop=t.scrollTop)),e&&({width:I,height:v}=t.getBoundingClientRect(),m={"class":m["class"],rr_width:I+"px",rr_height:v+"px"}),"iframe"!==g||l(m.src)||(t.contentDocument||(m.rr_src=m.src),delete m.src);let w;try{customElements.get(g)&&(w=!0)}catch(C){}return{type:NodeType$3.Element,tagName:g,attributes:m,childNodes:[],isSVG:isSVGElement(t)||void 0,needBlock:e,rootId:h,isCustom:w}}function lowerIfExists(e){return null==e?"":e.toLowerCase()}function slimDOMExcluded(e,t){if(t.comment&&e.type===NodeType$3.Comment)return!0;if(e.type===NodeType$3.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===extractFileExtension(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(lowerIfExists(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===lowerIfExists(e.attributes.name)||"icon"===lowerIfExists(e.attributes.rel)||"apple-touch-icon"===lowerIfExists(e.attributes.rel)||"shortcut icon"===lowerIfExists(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&lowerIfExists(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(lowerIfExists(e.attributes.property).match(/^(og|twitter|fb):/)||lowerIfExists(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===lowerIfExists(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===lowerIfExists(e.attributes.name)||"googlebot"===lowerIfExists(e.attributes.name)||"bingbot"===lowerIfExists(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===lowerIfExists(e.attributes.name)||"generator"===lowerIfExists(e.attributes.name)||"framework"===lowerIfExists(e.attributes.name)||"publisher"===lowerIfExists(e.attributes.name)||"progid"===lowerIfExists(e.attributes.name)||lowerIfExists(e.attributes.property).match(/^article:/)||lowerIfExists(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===lowerIfExists(e.attributes.name)||"yandex-verification"===lowerIfExists(e.attributes.name)||"csrf-token"===lowerIfExists(e.attributes.name)||"p:domain_verify"===lowerIfExists(e.attributes.name)||"verify-v1"===lowerIfExists(e.attributes.name)||"verification"===lowerIfExists(e.attributes.name)||"shopify-checkout-api-token"===lowerIfExists(e.attributes.name)))return!0}}return!1}function serializeNodeWithId(t,e){const{doc:n,mirror:i,blockClass:r,blockSelector:o,maskTextClass:a,maskTextSelector:s,skipChild:d=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f={},inlineImages:g=!1,recordCanvas:m=!1,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b=5e3,onStylesheetLoad:I,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:S=!1,cssCaptured:A=!1}=e;let E=e["needsMask"],{preserveWhiteSpace:T=!0}=e;E||(e=void 0===E,E=needMaskingText(t,a,s,e));e=serializeNode(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:E,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,dataURLOptions:f,inlineImages:g,recordCanvas:m,keepIframeSrcFn:C,newlyAddedElement:S,cssCaptured:A});if(!e)return console.warn(t,"not serialized"),null;let _;_=i.hasNode(t)?i.getId(t):slimDOMExcluded(e,h)||!T&&e.type===NodeType$3.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?IGNORED_NODE:genId();var x=Object.assign(e,{id:_});if(i.add(t,x),_===IGNORED_NODE)return null;v&&v(t);let R=!d;if(x.type===NodeType$3.Element&&(R=R&&!x.needBlock,delete x.needBlock,e=index$1.shadowRoot(t))&&isNativeShadowDom(e)&&(x.isShadowHost=!0),(x.type===NodeType$3.Document||x.type===NodeType$3.Element)&&R){h.headWhitespace&&x.type===NodeType$3.Element&&"head"===x.tagName&&(T=!1);var k={doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:E,maskTextClass:a,maskTextSelector:s,skipChild:d,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C,cssCaptured:!1};if(x.type!==NodeType$3.Element||"textarea"!==x.tagName||void 0===x.attributes.value){x.type===NodeType$3.Element&&void 0!==x.attributes._cssText&&"string"==typeof x.attributes._cssText&&(k.cssCaptured=!0);for(const M of Array.from(index$1.childNodes(t))){var O=serializeNodeWithId(M,k);O&&x.childNodes.push(O)}}let e=null;if(isElement(t)&&(e=index$1.shadowRoot(t)))for(const L of Array.from(index$1.childNodes(e))){var N=serializeNodeWithId(L,k);N&&(isNativeShadowDom(e)&&(N.isShadow=!0),x.childNodes.push(N))}}e=index$1.parentNode(t);return e&&isShadowRoot(e)&&isNativeShadowDom(e)&&(x.isShadow=!0),x.type===NodeType$3.Element&&"iframe"===x.tagName&&onceIframeLoaded(t,()=>{var e=t.contentDocument;e&&y&&(e=serializeNodeWithId(e,{doc:e,mirror:i,blockClass:r,blockSelector:o,needsMask:E,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C}))&&y(t,e)},b),x.type===NodeType$3.Element&&"link"===x.tagName&&"string"==typeof x.attributes.rel&&("stylesheet"===x.attributes.rel||"preload"===x.attributes.rel&&"string"==typeof x.attributes.href&&"css"===extractFileExtension(x.attributes.href))&&onceStylesheetLoaded(t,()=>{var e;I&&(e=serializeNodeWithId(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:E,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C}))&&I(t,e)},w),x}function snapshot(e,t){var{mirror:t=new Mirror,blockClass:n="rr-block",blockSelector:i=null,maskTextClass:r="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:s=!1,recordCanvas:d=!1,maskAllInputs:u=!1,maskTextFn:c,maskInputFn:l,slimDOM:p=!1,dataURLOptions:h,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:I=()=>!1}=t||{};return serializeNodeWithId(e,{doc:e,mirror:t,blockClass:n,blockSelector:i,maskTextClass:r,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===u?{password:!0}:u,maskTextFn:c,maskInputFn:l,slimDOMOptions:!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===p,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===p?{}:p,dataURLOptions:h,inlineImages:s,recordCanvas:d,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:I,newlyAddedElement:!1})}var __defProp2=Object.defineProperty,__defNormalProp2=(e,t,n)=>t in e?__defProp2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField2=(e,t,n)=>__defNormalProp2(e,"symbol"!=typeof t?t+"":t,n);function getNative(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}"undefined"!=typeof window?getNative("setTimeout").bind(window):global.setTimeout;class BaseRRNode{constructor(){__publicField2(this,"parentElement",null),__publicField2(this,"parentNode",null),__publicField2(this,"ownerDocument"),__publicField2(this,"firstChild",null),__publicField2(this,"lastChild",null),__publicField2(this,"previousSibling",null),__publicField2(this,"nextSibling",null),__publicField2(this,"ELEMENT_NODE",1),__publicField2(this,"TEXT_NODE",3),__publicField2(this,"nodeType"),__publicField2(this,"nodeName"),__publicField2(this,"RRNodeType")}get childNodes(){var e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof BaseRRNode&&e.ownerDocument===this.ownerDocument){if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const testableAccessors={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype={};function angularZoneUnpatchedAlternative(e){var t,n=null==(t=null==(n=null==globalThis?void 0:globalThis.Zone)?void 0:n.__symbol__)?void 0:t.call(n,e);if(n&&globalThis[n])return globalThis[n]}function getUntaintedPrototype(e){if(untaintedBasePrototype[e])return untaintedBasePrototype[e];var t=angularZoneUnpatchedAlternative(e)||globalThis[e];const n=t.prototype;var i=e in testableAccessors?testableAccessors[e]:void 0,i=Boolean(i&&i.every(e=>{return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),r=e in testableMethods?testableMethods[e]:void 0,r=Boolean(r&&r.every(e=>{return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(i&&r)return untaintedBasePrototype[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?untaintedBasePrototype[e]=o:n):t.prototype}catch{return n}}const untaintedAccessorCache={};function getUntaintedAccessor(e,t,n){var i=e+"."+String(n);return untaintedAccessorCache[i]?untaintedAccessorCache[i].call(t):(e=getUntaintedPrototype(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(untaintedAccessorCache[i]=e).call(t):t[n])}const untaintedMethodCache={};function getUntaintedMethod(e,t,n){var i=e+"."+String(n);return untaintedMethodCache[i]?untaintedMethodCache[i].bind(t):"function"!=typeof(e=getUntaintedPrototype(e)[n])?t[n]:(untaintedMethodCache[i]=e).bind(t)}function childNodes(e){return getUntaintedAccessor("Node",e,"childNodes")}function parentNode(e){return getUntaintedAccessor("Node",e,"parentNode")}function parentElement(e){return getUntaintedAccessor("Node",e,"parentElement")}function textContent(e){return getUntaintedAccessor("Node",e,"textContent")}function contains(e,t){return getUntaintedMethod("Node",e,"contains")(t)}function getRootNode(e){return getUntaintedMethod("Node",e,"getRootNode")()}function host(e){return e&&"host"in e?getUntaintedAccessor("ShadowRoot",e,"host"):null}function styleSheets(e){return e.styleSheets}function shadowRoot(e){return e&&"shadowRoot"in e?getUntaintedAccessor("Element",e,"shadowRoot"):null}function querySelector(e,t){return getUntaintedAccessor("Element",e,"querySelector")(t)}function querySelectorAll(e,t){return getUntaintedAccessor("Element",e,"querySelectorAll")(t)}function mutationObserverCtor(){return getUntaintedPrototype("MutationObserver").constructor}function patch(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}const index={childNodes:childNodes,parentNode:parentNode,parentElement:parentElement,textContent:textContent,contains:contains,getRootNode:getRootNode,host:host,styleSheets:styleSheets,shadowRoot:shadowRoot,querySelector:querySelector,querySelectorAll:querySelectorAll,mutationObserver:mutationObserverCtor,patch:patch};function getWindow(e){var t=e.defaultView;return t||e}function on(e,t,n=document){var i=getWindow(n),r=getNative$1("addEventListener",i);const o=getNative$1("removeEventListener",i),a={capture:!0,passive:!0};return r.call(n,e,t,a),()=>o.call(n,e,t,a)}const DEPARTED_MIRROR_ACCESS_WARNING="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let _mirror={map:{},getId(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),-1},getNode(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),null},removeNodeFromMap(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)},has(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),!1},reset(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)}};function throttle(r,o,a={}){let s=null,d=0;return function(...e){var t=Date.now(),n=(d||!1!==a.leading||(d=t),o-(t-d));const i=this;n<=0||o<n?(s&&(clearTimeout(s),s=null),d=t,r.apply(i,e)):s||!1===a.trailing||(s=nativeSetTimeout(()=>{d=!1===a.leading?0:Date.now(),s=null,r.apply(i,e)},n))}}function hookSetter(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){nativeSetTimeout(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>hookSetter(e,t,o||{},!0)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(_mirror=new Proxy(_mirror,{get(e,t,n){return"map"===t&&console.error(DEPARTED_MIRROR_ACCESS_WARNING),Reflect.get(e,t,n)}}));let nowTimestamp=Date.now;function getWindowScroll(e){var t,n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(t=index.parentElement(n.body))?void 0:t.scrollLeft)||(null==(t=null==n?void 0:n.body)?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(t=index.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function getWindowHeight(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function getWindowWidth(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function closestElementOfNode(e){return e?e.nodeType===e.ELEMENT_NODE?e:index.parentElement(e):null}function isBlocked(e,t,n,i){if(e){e=closestElementOfNode(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return!0;if(i&&null!==e.closest("."+t))return!0}else if(classMatchesRegex(e,t,i))return!0}catch(r){}if(n){if(e.matches(n))return!0;if(i&&null!==e.closest(n))return!0}}}return!1}function isSerialized(e,t){return-1!==t.getId(e)}function isIgnored(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||t.getId(e)===IGNORED_NODE}function isAncestorRemoved(e,t){var n;return!isShadowRoot(e)&&(n=t.getId(e),!t.has(n)||(!(n=index.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||isAncestorRemoved(n,t)))}function legacy_isTouchEvent(e){return Boolean(e.changedTouches)}function polyfill$1(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function isSerializedIframe(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function isSerializedStylesheet(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function hasShadowRoot(e){return!!e&&(e instanceof BaseRRNode&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(index.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(nowTimestamp=()=>(new Date).getTime());class StyleSheetMirror{constructor(){__publicField(this,"id",1),__publicField(this,"styleIDMap",new WeakMap),__publicField(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function getShadowHost(e){var t;let n=null;return n="getRootNode"in e&&(null==(t=index.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&index.host(index.getRootNode(e))?index.host(index.getRootNode(e)):n}function getRootShadowHost(e){let t=e;for(var n;n=getShadowHost(t);)t=n;return t}function shadowHostInDom(e){var t=e.ownerDocument;return!!t&&(e=getRootShadowHost(e),index.contains(t,e))}function inDom(e){var t=e.ownerDocument;return!!t&&(index.contains(t,e)||shadowHostInDom(e))}var EventType=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(EventType||{}),IncrementalSource=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(IncrementalSource||{}),MouseInteractions=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(MouseInteractions||{}),PointerTypes=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(PointerTypes||{}),CanvasContext=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(CanvasContext||{}),MediaInteractions=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(MediaInteractions||{}),NodeType=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(NodeType||{});function isNodeInLinkedList(e){return"__ln"in e}class DoubleLinkedList{constructor(){__publicField(this,"length",0),__publicField(this,"head",null),__publicField(this,"tail",null),__publicField(this,"reordered",!1)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let e=0;e<t;e++)n=(null==n?void 0:n.next)||null;return n}addNode(e){var t,n={value:e,previous:null,next:null};e.__ln=n,e.previousSibling&&isNodeInLinkedList(e.previousSibling)?(t=e.previousSibling.__ln.next,n.next=t,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,t&&(t.previous=n)):e.nextSibling&&isNodeInLinkedList(e.nextSibling)&&e.nextSibling.__ln.previous?(t=e.nextSibling.__ln.previous,n.previous=t,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,t&&(t.next=n)):(this.head&&(this.head.previous=n),n.next=this.head,this.head=n),null===n.next&&(this.tail=n),this.length++}removeNode(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}needsReorder(e){return!(this.reordered||!e.value.previousSibling||!isNodeInLinkedList(e.value.previousSibling)||!e.previous||e.previous.value===e.value.previousSibling)}reorder(){if(this.reordered)return!1;let e=this.tail;for(var t=this.head;e;){var n=e.previous;if(this.removeNode(e.value),this.addNode(e.value),e===t)break;e=n}return this.reordered=!0}}const moveKey=(e,t)=>e+"@"+t;class MutationBuffer{constructor(){__publicField(this,"frozen",!1),__publicField(this,"locked",!1),__publicField(this,"texts",[]),__publicField(this,"attributes",[]),__publicField(this,"attributeMap",new WeakMap),__publicField(this,"removes",[]),__publicField(this,"mapRemoves",[]),__publicField(this,"movedMap",{}),__publicField(this,"addedSet",new Set),__publicField(this,"movedSet",new Set),__publicField(this,"droppedSet",new Set),__publicField(this,"removesSubTreeCache",new Set),__publicField(this,"mutationCb"),__publicField(this,"blockClass"),__publicField(this,"blockSelector"),__publicField(this,"maskTextClass"),__publicField(this,"maskTextSelector"),__publicField(this,"inlineStylesheet"),__publicField(this,"maskInputOptions"),__publicField(this,"maskTextFn"),__publicField(this,"maskInputFn"),__publicField(this,"keepIframeSrcFn"),__publicField(this,"recordCanvas"),__publicField(this,"inlineImages"),__publicField(this,"slimDOMOptions"),__publicField(this,"dataURLOptions"),__publicField(this,"doc"),__publicField(this,"mirror"),__publicField(this,"iframeManager"),__publicField(this,"stylesheetManager"),__publicField(this,"shadowDomManager"),__publicField(this,"canvasManager"),__publicField(this,"processedNodeManager"),__publicField(this,"unattachedDoc"),__publicField(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),__publicField(this,"emit",()=>{if(!this.frozen&&!this.locked){const d=[],u=new Set,c=new DoubleLinkedList,l=e=>{let t=e,n=IGNORED_NODE;for(;n===IGNORED_NODE;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n};for(var n,i,r=t=>{var n=index.parentNode(t);if(n&&inDom(t)){let e=!1;if(t.nodeType===Node.TEXT_NODE){var i=n.tagName;if("TEXTAREA"===i)return;"STYLE"===i&&this.addedSet.has(n)&&(e=!0)}i=isShadowRoot(n)?this.mirror.getId(getShadowHost(t)):this.mirror.getId(n),n=l(t);if(-1===i||-1===n)return c.addNode(t);var r=serializeNodeWithId(t,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{isSerializedIframe(e,this.mirror)&&this.iframeManager.addIframe(e),isSerializedStylesheet(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),hasShadowRoot(t)&&this.shadowDomManager.addShadowRoot(index.shadowRoot(t),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:e});r&&(d.push({parentId:i,nextId:n,node:r}),u.add(r.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const p of this.movedSet){var t=index.parentNode(p);isParentRemoved(this.removesSubTreeCache,p,this.mirror)&&!this.movedSet.has(t)&&!this.addedSet.has(t)||r(p)}for(const h of this.addedSet)!isAncestorInSet(this.droppedSet,h)&&!isParentRemoved(this.removesSubTreeCache,h,this.mirror)||isAncestorInSet(this.movedSet,h)?r(h):this.droppedSet.add(h);let e=null;for(;c.length;){let t=null;if(!(t=e&&(n=this.mirror.getId(index.parentNode(e.value)),i=l(e.value),-1!==n)&&-1!==i?e:t)){let e=c.tail;for(;e;){var o=e;if(e=e.previous,o){var a=this.mirror.getId(index.parentNode(o.value));if(-1===l(o.value))c.needsReorder(o)&&c.reorder()&&(e=c.tail);else{if(-1!==a){t=o;break}a=o.value,a=index.parentNode(a);if(a&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){a=index.host(a);if(-1!==this.mirror.getId(a)){t=o;break}}}}}}if(!t){for(;c.head;)c.removeNode(c.head.value);break}e=t.previous,c.removeNode(t.value),r(t.value)}var s={texts:this.texts.map(e=>{var t=e.node,n=index.parentNode(t);return n&&"TEXTAREA"===n.tagName&&this.genTextAreaValueMutation(n),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!u.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{var t,n,i=e["attributes"];return"string"==typeof i.style&&(t=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles),t.length<i.style.length)&&(t+n).split("var(").length===i.style.split("var(").length&&(i.style=e.styleDiff),{id:this.mirror.getId(e.node),attributes:i}}).filter(e=>!u.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:d};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(s))}}),__publicField(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));var n=Array.from(index.childNodes(e),e=>index.textContent(e)||"").join("");t.attributes.value=maskInputValue({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:getInputType(e),value:n,maskInputFn:this.maskInputFn})}),__publicField(this,"processMutation",i=>{if(!isIgnored(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=index.textContent(i.target);isBlocked(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:needMaskingText(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,closestElementOfNode(i.target)):r.replace(/[\S]/g,"*"):r,node:i.target});break;case"attributes":{var o,a=i.target;let e=i.attributeName,t=i.target.getAttribute(e);if("value"===e&&(r=getInputType(a),o=needMaskingText(i.target,this.maskTextClass,this.maskTextSelector,!0),t=maskInputValue({element:a,maskInputOptions:this.maskInputOptions,tagName:a.tagName,type:r,value:t,maskInputFn:this.maskInputFn,needsMask:o})),isBlocked(i.target,this.blockClass,this.blockSelector,!1)||t===i.oldValue)return;let n=this.attributeMap.get(i.target);if("IFRAME"===a.tagName&&"src"===e&&!this.keepIframeSrcFn(t)){if(a.contentDocument)return;e="rr_src"}if(n||(n={node:i.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(i.target,n)),"type"===e&&"INPUT"===a.tagName&&"password"===(i.oldValue||"").toLowerCase()&&a.setAttribute("data-rr-is-password","true"),!ignoreAttribute(a.tagName,e))if(n.attributes[e]=transformAttribute(this.doc,toLowerCase(a.tagName),toLowerCase(e),t),"style"===e){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(c){this.unattachedDoc=this.doc}var s=this.unattachedDoc.createElement("span");i.oldValue&&(s.style.cssText=i.oldValue);for(const l of Array.from(a.style)){var d=a.style.getPropertyValue(l),u=a.style.getPropertyPriority(l);d!==s.style.getPropertyValue(l)||u!==s.style.getPropertyPriority(l)?n.styleDiff[l]=""===u?d:[d,u]:n._unchangedStyles[l]=[d,u]}for(const p of Array.from(s.style))""===a.style.getPropertyValue(p)&&(n.styleDiff[p]=!1)}else"open"===e&&"DIALOG"===a.tagName&&(a.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":isBlocked(i.target,this.blockClass,this.blockSelector,!0)||("TEXTAREA"!==i.target.tagName?(i.addedNodes.forEach(e=>this.genAdds(e,i.target)),i.removedNodes.forEach(e=>{var t=this.mirror.getId(e),n=isShadowRoot(i.target)?this.mirror.getId(index.host(i.target)):this.mirror.getId(i.target);isBlocked(i.target,this.blockClass,this.blockSelector,!1)||isIgnored(e,this.mirror,this.slimDOMOptions)||!isSerialized(e,this.mirror)||(this.addedSet.has(e)?(deepDelete(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(i.target)&&-1===t||isAncestorRemoved(i.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[moveKey(t,n)]?deepDelete(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!isShadowRoot(i.target)||!isNativeShadowDom(i.target))||void 0}),processRemoves(e,this.removesSubTreeCache))),this.mapRemoves.push(e))})):this.genTextAreaValueMutation(i.target))}}),__publicField(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(isIgnored(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let e=null;(e=n&&this.mirror.hasNode(n)?this.mirror.getId(n):e)&&-1!==e&&(this.movedMap[moveKey(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);isBlocked(t,this.blockClass,this.blockSelector,!1)||(index.childNodes(t).forEach(e=>this.genAdds(e)),hasShadowRoot(t)&&index.childNodes(index.shadowRoot(t)).forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(e=>{this[e]=t[e]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function deepDelete(t,e){t["delete"](e),index.childNodes(e).forEach(e=>deepDelete(t,e))}function processRemoves(e,t){const n=[e];for(;n.length;){var i=n.pop();t.has(i)||(t.add(i),index.childNodes(i).forEach(e=>n.push(e)))}}function isParentRemoved(e,t,n){return 0!==e.size&&_isParentRemoved(e,t)}function _isParentRemoved(e,t,n){t=index.parentNode(t);return!!t&&e.has(t)}function isAncestorInSet(e,t){return 0!==e.size&&_isAncestorInSet(e,t)}function _isAncestorInSet(e,t){t=index.parentNode(t);return!!t&&(!!e.has(t)||_isAncestorInSet(e,t))}let errorHandler;function registerErrorHandler(e){errorHandler=e}function unregisterErrorHandler(){errorHandler=void 0}const callbackWrapper=n=>{return errorHandler?(...e)=>{try{return n(...e)}catch(t){if(!errorHandler||!0!==errorHandler(t))throw t}}:n},mutationBuffers=[];function getEventTarget(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function initMutationObserver(e,t){var n=new MutationBuffer,e=(mutationBuffers.push(n),n.init(e),new(mutationObserverCtor())(callbackWrapper(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function initMoveObserver({mousemoveCb:n,sampling:e,doc:t,mirror:r}){if(!1===e.mousemove)return()=>{};var i="number"==typeof e.mousemove?e.mousemove:50,e="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let o=[],a;const s=throttle(callbackWrapper(e=>{const t=Date.now()-a;n(o.map(e=>(e.timeOffset-=t,e)),e),o=[],a=null}),e);e=callbackWrapper(throttle(callbackWrapper(e=>{var t=getEventTarget(e),{clientX:n,clientY:i}=legacy_isTouchEvent(e)?e.changedTouches[0]:e;a=a||nowTimestamp(),o.push({x:n,y:i,id:r.getId(t),timeOffset:nowTimestamp()-a}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?IncrementalSource.Drag:e instanceof MouseEvent?IncrementalSource.MouseMove:IncrementalSource.TouchMove)}),i,{trailing:!1}));const d=[on("mousemove",e,t),on("touchmove",e,t),on("drag",e,t)];return callbackWrapper(()=>{d.forEach(e=>e())})}function initMouseInteractionObserver({mouseInteractionCb:a,doc:i,mirror:s,blockClass:d,blockSelector:u,sampling:e}){if(!1===e.mouseInteraction)return()=>{};const t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,r=[];let c=null;return Object.keys(MouseInteractions).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]).forEach(e=>{let t=toLowerCase(e);o=e;var o,n=n=>{var i=getEventTarget(n);if(!isBlocked(i,d,u,!0)){let e=null,t=o;if("pointerType"in n){switch(n.pointerType){case"mouse":e=PointerTypes.Mouse;break;case"touch":e=PointerTypes.Touch;break;case"pen":e=PointerTypes.Pen}e===PointerTypes.Touch?MouseInteractions[o]===MouseInteractions.MouseDown?t="TouchStart":MouseInteractions[o]===MouseInteractions.MouseUp&&(t="TouchEnd"):(e,PointerTypes.Pen)}else legacy_isTouchEvent(n)&&(e=PointerTypes.Touch);null!==e?(c=e,(t.startsWith("Touch")&&e===PointerTypes.Touch||t.startsWith("Mouse")&&e===PointerTypes.Mouse)&&(e=null)):MouseInteractions[o]===MouseInteractions.Click&&(e=c,c=null);var r,n=legacy_isTouchEvent(n)?n.changedTouches[0]:n;n&&(i=s.getId(i),{clientX:n,clientY:r}=n,callbackWrapper(a)({type:MouseInteractions[t],id:i,x:n,y:r,...null!==e&&{pointerType:e}}))}};if(window.PointerEvent)switch(MouseInteractions[e]){case MouseInteractions.MouseDown:case MouseInteractions.MouseUp:t=t.replace("mouse","pointer");break;case MouseInteractions.TouchStart:case MouseInteractions.TouchEnd:return}r.push(on(t,n,i))}),callbackWrapper(()=>{r.forEach(e=>e())})}function initScrollObserver({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return on("scroll",callbackWrapper(throttle(callbackWrapper(e=>{var t,n,e=getEventTarget(e);e&&!isBlocked(e,a,s,!0)&&(t=o.getId(e),e===r&&r.defaultView?(n=getWindowScroll(r.defaultView),i({id:t,x:n.left,y:n.top})):i({id:t,x:e.scrollLeft,y:e.scrollTop}))}),e.scroll||100)),r)}function initViewportResizeObserver({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return on("resize",callbackWrapper(throttle(callbackWrapper(()=>{var e=getWindowHeight(),t=getWindowWidth();i===e&&r===t||(n({width:Number(t),height:Number(e)}),i=e,r=t)}),200)),e)}const INPUT_TAGS=["INPUT","TEXTAREA","SELECT"],lastInputValueMap=new WeakMap;function initInputObserver({inputCb:i,doc:s,mirror:r,blockClass:e,blockSelector:n,ignoreClass:d,ignoreSelector:u,maskInputOptions:c,maskInputFn:l,sampling:t,userTriggeredOnInput:p,maskTextClass:h,maskTextSelector:f}){function o(t){let i=getEventTarget(t);var t=t.isTrusted,r=i&&i.tagName;if((i=i&&"OPTION"===r?index.parentElement(i):i)&&r&&!(INPUT_TAGS.indexOf(r)<0)&&!isBlocked(i,e,n,!0)&&!(i.classList.contains(d)||u&&i.matches(u))){let e=i.value,n=!1;var o=getInputType(i)||"",a=needMaskingText(i,h,f,!0),r=("radio"===o||"checkbox"===o?n=i.checked:(c[r.toLowerCase()]||c[o]||a)&&(e=maskInputValue({element:i,maskInputOptions:c,tagName:r,type:o,value:e,maskInputFn:l,needsMask:a})),g(i,p?{text:e,isChecked:n,userTriggered:t}:{text:e,isChecked:n}),i.name);"radio"===o&&r&&n&&s.querySelectorAll(`input[type="radio"][name="${r}"]`).forEach(e=>{var t;e!==i&&(t=e.value,g(e,p?{text:t,isChecked:!n,userTriggered:!1}:{text:t,isChecked:!n}))})}}function g(e,t){var n=lastInputValueMap.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(lastInputValueMap.set(e,t),n=r.getId(e),callbackWrapper(i)({...t,id:n}))}var a;const m=("last"===t.input?["change"]:["input","change"]).map(e=>on(e,callbackWrapper(o),s)),v=s.defaultView;return v?(t=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),a=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]],t&&t.set&&m.push(...a.map(e=>hookSetter(e[0],e[1],{set(){callbackWrapper(o)({target:this,isTrusted:!1})}},!1,v))),callbackWrapper(()=>{m.forEach(e=>e())})):()=>{m.forEach(e=>e())}}function getNestedCSSRulePositions(e){var t,n;return e=e,t=[],hasNestedCSSRule("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||hasNestedCSSRule("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||hasNestedCSSRule("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||hasNestedCSSRule("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n)):e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t}function getIdAndStyleId(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function initStyleSheetObserver({styleSheetRuleCb:s,mirror:d,stylesheetManager:u},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const e=i.CSSStyleSheet.prototype.insertRule,t=(i.CSSStyleSheet.prototype.insertRule=new Proxy(e,{apply:callbackWrapper((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=getIdAndStyleId(t,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:r}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.addRule=function(e,t,n=this.cssRules.length){return i.CSSStyleSheet.prototype.insertRule.apply(this,[e+` { ${t} }`,n])},i.CSSStyleSheet.prototype.deleteRule);i.CSSStyleSheet.prototype.deleteRule=new Proxy(t,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:i}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])};let n;i.CSSStyleSheet.prototype.replace&&(n=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replace:i}),e.apply(t,n)})}));let r;i.CSSStyleSheet.prototype.replaceSync&&(r=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(r,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replaceSync:i}),e.apply(t,n)})}));const o={},a=(canMonkeyPatchNestedCSSRule("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(canMonkeyPatchNestedCSSRule("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),canMonkeyPatchNestedCSSRule("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),canMonkeyPatchNestedCSSRule("CSSSupportsRule")&&(o.CSSSupportsRule=i.CSSSupportsRule)),{});return Object.entries(o).forEach(([e,t])=>{a[e]={insertRule:t.prototype.insertRule,deleteRule:t.prototype.deleteRule},t.prototype.insertRule=new Proxy(a[e].insertRule,{apply:callbackWrapper((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=getIdAndStyleId(t.parentStyleSheet,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...getNestedCSSRulePositions(t),r||0]}]}),e.apply(t,n)})}),t.prototype.deleteRule=new Proxy(a[e].deleteRule,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t.parentStyleSheet,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...getNestedCSSRulePositions(t),i]}]}),e.apply(t,n)})})}),callbackWrapper(()=>{i.CSSStyleSheet.prototype.insertRule=e,i.CSSStyleSheet.prototype.deleteRule=t,n&&(i.CSSStyleSheet.prototype.replace=n),r&&(i.CSSStyleSheet.prototype.replaceSync=r),Object.entries(o).forEach(([e,t])=>{t.prototype.insertRule=a[e].insertRule,t.prototype.deleteRule=a[e].deleteRule})})}function initAdoptedStyleSheetObserver({mirror:e,stylesheetManager:i},t){let r=null;r="#document"===t.nodeName?e.getId(t):e.getId(index.host(t));e="#document"===t.nodeName?null==(e=t.defaultView)?void 0:e.Document:null==(e=null==(e=t.ownerDocument)?void 0:e.defaultView)?void 0:e.ShadowRoot;const o=null!=e&&e.prototype?Object.getOwnPropertyDescriptor(null==e?void 0:e.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&e&&o?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){var e;return null==(e=o.get)?void 0:e.call(this)},set(e){var t=null==(t=o.set)?void 0:t.call(this,e);if(null!==r&&-1!==r)try{i.adoptStyleSheets(e,r)}catch(n){}return t}}),callbackWrapper(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function initStyleDeclarationObserver({styleDeclarationCb:d,mirror:u,ignoreCSSAttributes:c,stylesheetManager:l},{win:e}){const p=e.CSSStyleDeclaration.prototype.setProperty,a=(e.CSSStyleDeclaration.prototype.setProperty=new Proxy(p,{apply:callbackWrapper((e,t,n)=>{var i,r,[o,a,s]=n;return c.has(o)?p.apply(t,[o,a,s]):({id:i,styleId:r}=getIdAndStyleId(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,set:{property:o,value:a,priority:s},index:getNestedCSSRulePositions(t.parentRule)}),e.apply(t,n))})}),e.CSSStyleDeclaration.prototype.removeProperty);return e.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:callbackWrapper((e,t,n)=>{var i,r,[o]=n;return c.has(o)?a.apply(t,[o]):({id:i,styleId:r}=getIdAndStyleId(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,remove:{property:o},index:getNestedCSSRulePositions(t.parentRule)}),e.apply(t,n))})}),callbackWrapper(()=>{e.CSSStyleDeclaration.prototype.setProperty=p,e.CSSStyleDeclaration.prototype.removeProperty=a})}function initMediaInteractionObserver({mediaInteractionCb:s,blockClass:d,blockSelector:u,mirror:c,sampling:e,doc:t}){var n=callbackWrapper(a=>throttle(callbackWrapper(e=>{var t,n,i,r,o,e=getEventTarget(e);e&&!isBlocked(e,d,u,!0)&&({currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}=e,s({type:a,id:c.getId(e),currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}))}),e.media||500));const i=[on("play",n(MediaInteractions.Play),t),on("pause",n(MediaInteractions.Pause),t),on("seeked",n(MediaInteractions.Seeked),t),on("volumechange",n(MediaInteractions.VolumeChange),t),on("ratechange",n(MediaInteractions.RateChange),t)];return callbackWrapper(()=>{i.forEach(e=>e())})}function initFontObserver({fontCb:n,doc:e}){const t=e.defaultView;if(!t)return()=>{};const i=[],r=new WeakMap,o=t.FontFace;t.FontFace=function(e,t,n){var i=new o(e,t,n);return r.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};e=patch(e.fonts,"add",function(e){return function(t){return nativeSetTimeout(callbackWrapper(()=>{var e=r.get(t);e&&(n(e),r["delete"](t))}),0),e.apply(this,[t])}});return i.push(()=>{t.FontFace=o}),i.push(e),callbackWrapper(()=>{i.forEach(e=>e())})}function initSelectionObserver(e){const{doc:d,mirror:u,blockClass:c,blockSelector:l,selectionCb:p}=e;let h=!0;e=callbackWrapper(()=>{var t=d.getSelection();if(!(!t||h&&null!=t&&t.isCollapsed)){h=t.isCollapsed||!1;var n=[],i=t.rangeCount||0;for(let e=0;e<i;e++){var{startContainer:r,startOffset:o,endContainer:a,endOffset:s}=t.getRangeAt(e);isBlocked(r,c,l,!0)||isBlocked(a,c,l,!0)||n.push({start:u.getId(r),startOffset:o,end:u.getId(a),endOffset:s})}p({ranges:n})}});return e(),on("selectionchange",e)}function initCustomElementObserver({doc:e,customElementCb:o}){e=e.defaultView;return e&&e.customElements?patch(e.customElements,"define",function(r){return function(e,t,n){try{o({define:{name:e}})}catch(i){console.warn("Custom element callback failed for "+e)}return r.apply(this,[e,t,n])}}):()=>{}}function mergeHooks(e,t){const{mutationCb:n,mousemoveCb:i,mouseInteractionCb:r,scrollCb:o,viewportResizeCb:a,inputCb:s,mediaInteractionCb:d,styleSheetRuleCb:u,styleDeclarationCb:c,canvasMutationCb:l,fontCb:p,selectionCb:h,customElementCb:f}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),r(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),a(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),s(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),d(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),u(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),c(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),l(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),h(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}function initObservers(e,t={}){var n=e.doc.defaultView;if(!n)return()=>{};mergeHooks(e,t);let i;e.recordDOM&&(i=initMutationObserver(e,e.doc));const r=initMoveObserver(e),o=initMouseInteractionObserver(e),a=initScrollObserver(e),s=initViewportResizeObserver(e,{win:n}),d=initInputObserver(e),u=initMediaInteractionObserver(e);let c=()=>{},l=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(c=initStyleSheetObserver(e,{win:n}),l=initAdoptedStyleSheetObserver(e,e.doc),p=initStyleDeclarationObserver(e,{win:n}),e.collectFonts)&&(h=initFontObserver(e));const f=initSelectionObserver(e),g=initCustomElementObserver(e),m=[];for(const v of e.plugins)m.push(v.observer(v.callback,n,v.options));return callbackWrapper(()=>{mutationBuffers.forEach(e=>e.reset()),null!=i&&i.disconnect(),r(),o(),a(),s(),d(),u(),c(),l(),p(),h(),f(),g(),m.forEach(e=>e())})}function hasNestedCSSRule(e){return"undefined"!=typeof window[e]}function canMonkeyPatchNestedCSSRule(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class CrossOriginIframeMirror{constructor(e){__publicField(this,"iframeIdToRemoteIdMap",new WeakMap),__publicField(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,i){n=n||this.getIdToRemoteIdMap(e),i=i||this.getRemoteIdToIdMap(e);let r=n.get(t);return r||(r=this.generateIdFn(),n.set(t,r),i.set(r,t)),r}getIds(t,e){const n=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,n,i))}getRemoteId(e,t,n){n=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,n))}reset(e){e?(this.iframeIdToRemoteIdMap["delete"](e),this.iframeRemoteIdToIdMap["delete"](e)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class IframeManager{constructor(e){__publicField(this,"iframes",new WeakMap),__publicField(this,"crossOriginIframeMap",new WeakMap),__publicField(this,"crossOriginIframeMirror",new CrossOriginIframeMirror(genId)),__publicField(this,"crossOriginIframeStyleMirror"),__publicField(this,"crossOriginIframeRootIdMap",new WeakMap),__publicField(this,"mirror"),__publicField(this,"mutationCb"),__publicField(this,"wrappedEmit"),__publicField(this,"takeFullSnapshot"),__publicField(this,"loadListener"),__publicField(this,"stylesheetManager"),__publicField(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.takeFullSnapshot=e.takeFullSnapshot,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new CrossOriginIframeMirror(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}setTakeFullSnapshot(e){this.takeFullSnapshot=e}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e),!e.contentDocument&&e.contentWindow&&e.contentWindow.postMessage({type:"rrweb",origin:window.location.origin,snapshot:!0},"*")}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&null!=(t=e.contentWindow)&&t.addEventListener("message",this.handleMessage.bind(this)),null!=(t=this.loadListener)&&t.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&0<e.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){var t,n=e;"rrweb"===n.data.type&&n.origin===n.data.origin&&(t=e.source)&&(t==window.parent&&window!=window.parent&&e.data.snapshot?this.takeFullSnapshot():(t=this.crossOriginIframeMap.get(e.source))&&(e=this.transformCrossOriginEvent(t,n.data.event))&&this.wrappedEmit(e,n.data.isCheckout))}transformCrossOriginEvent(n,e){var t;switch(e.type){case EventType.FullSnapshot:this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(e.data.node,n);var i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(n,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case EventType.Meta:case EventType.Load:case EventType.DomContentLoaded:return!1;case EventType.Plugin:return e;case EventType.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case EventType.IncrementalSnapshot:switch(e.data.source){case IncrementalSource.Mutation:return e.data.adds.forEach(e=>{this.replaceIds(e,n,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,n);var t=this.crossOriginIframeRootIdMap.get(n);t&&this.patchRootIdOnNode(e.node,t)}),e.data.removes.forEach(e=>{this.replaceIds(e,n,["parentId","id"])}),e.data.attributes.forEach(e=>{this.replaceIds(e,n,["id"])}),e.data.texts.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case IncrementalSource.Drag:case IncrementalSource.TouchMove:case IncrementalSource.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case IncrementalSource.ViewportResize:return!1;case IncrementalSource.MediaInteraction:case IncrementalSource.MouseInteraction:case IncrementalSource.Scroll:case IncrementalSource.CanvasMutation:case IncrementalSource.Input:return this.replaceIds(e.data,n,["id"]),e;case IncrementalSource.StyleSheetRule:case IncrementalSource.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case IncrementalSource.Font:return e;case IncrementalSource.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,n,["start","end"])}),e;case IncrementalSource.AdoptedStyleSheet:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleIds"]),null!=(t=e.data.styles)&&t.forEach(e=>{this.replaceStyleIds(e,n,["styleId"])}),e}}return!1}replace(e,t,n,i){for(const r of i)!Array.isArray(t[r])&&"number"!=typeof t[r]||(Array.isArray(t[r])?t[r]=e.getIds(n,t[r]):t[r]=e.getId(n,t[r]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===NodeType.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ShadowDomManager{constructor(e){__publicField(this,"shadowDoms",new WeakSet),__publicField(this,"mutationCb"),__publicField(this,"scrollCb"),__publicField(this,"bypassOptions"),__publicField(this,"mirror"),__publicField(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(isNativeShadowDom(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const n=initMutationObserver({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(initScrollObserver({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),nativeSetTimeout(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(index.host(e))),this.restoreHandlers.push(initAdoptedStyleSheetObserver({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,i){const r=this;this.restoreHandlers.push(patch(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=index.shadowRoot(this);return t&&inDom(this)&&r.addShadowRoot(t,i),e}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i$1=0;i$1<chars.length;i$1++)lookup[chars.charCodeAt(i$1)]=i$1;var n,encode=function(e){for(var t=new Uint8Array(e),n=t.length,i="",r=0;r<n;r+=3)i=(i=(i=(i+=chars[t[r]>>2])+chars[(3&t[r])<<4|t[r+1]>>4])+chars[(15&t[r+1])<<2|t[r+2]>>6])+chars[63&t[r+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i};const canvasVarMap=new Map;function variableListFor$1(e,t){let n=canvasVarMap.get(e);return n||(n=new Map,canvasVarMap.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const saveWebGLVar=(t,n,i)=>{if(t&&(isInstanceOfWebGLObject(t,n)||"object"==typeof t)){n=variableListFor$1(i,t.constructor.name);let e=n.indexOf(t);return-1===e&&(e=n.length,n.push(t)),e}};function serializeArg(e,t,n){var i;return e instanceof Array?e.map(e=>serializeArg(e,t,n)):null===e?e:e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray?{rr_type:e.constructor.name,args:[Object.values(e)]}:e instanceof ArrayBuffer?{rr_type:e.constructor.name,base64:encode(e)}:e instanceof DataView?{rr_type:e.constructor.name,args:[serializeArg(e.buffer,t,n),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?(i=e["src"],{rr_type:e.constructor.name,src:i}):e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[serializeArg(e.data,t,n),e.width,e.height]}:isInstanceOfWebGLObject(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:saveWebGLVar(e,t,n)}:e}const serializeArgs=(e,t,n)=>e.map(e=>serializeArg(e,t,n)),isInstanceOfWebGLObject=(t,n)=>{var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof n[e]);return Boolean(e.find(e=>t instanceof n[e]))};function initCanvas2DMutationObserver(n,i,r,o){const e=[];var t;for(const s of Object.getOwnPropertyNames(i.CanvasRenderingContext2D.prototype))try{"function"==typeof i.CanvasRenderingContext2D.prototype[s]&&(t=patch(i.CanvasRenderingContext2D.prototype,s,function(e){return function(...t){return isBlocked(this.canvas,r,o,!0)||nativeSetTimeout(()=>{var e=serializeArgs(t,i,this);n(this.canvas,{type:CanvasContext["2D"],property:s,args:e})},0),e.apply(this,t)}}),e.push(t))}catch{var a=hookSetter(i.CanvasRenderingContext2D.prototype,s,{set(e){n(this.canvas,{type:CanvasContext["2D"],property:s,args:[e],setter:!0})}});e.push(a)}return()=>{e.forEach(e=>e())}}function getNormalizedContextName(e){return"experimental-webgl"===e?"webgl":e}function initCanvasContextObserver(e,r,o,a){const t=[];try{var n=patch(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(e,...t){var n;return isBlocked(this,r,o,!0)||(n=getNormalizedContextName(e),"__context"in this||(this.__context=n),a&&["webgl","webgl2"].includes(n)&&(t[0]&&"object"==typeof t[0]?(n=t[0]).preserveDrawingBuffer||(n.preserveDrawingBuffer=!0):t.splice(0,1,{preserveDrawingBuffer:!0}))),i.apply(this,[e,...t])}});t.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{t.forEach(e=>e())}}function patchGLPrototype(e,i,r,o,a,s){var t,n=[];for(const u of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{"function"==typeof e[u]&&(t=patch(e,u,function(n){return function(...e){var t=n.apply(this,e);return saveWebGLVar(t,s,this),"tagName"in this.canvas&&!isBlocked(this.canvas,o,a,!0)&&(e=serializeArgs(e,s,this),e={type:i,property:u,args:e},r(this.canvas,e)),t}}),n.push(t))}catch{var d=hookSetter(e,u,{set(e){r(this.canvas,{type:i,property:u,args:[e],setter:!0})}});n.push(d)}return n}function initCanvasWebGLMutationObserver(e,t,n,i){const r=[];return r.push(...patchGLPrototype(t.WebGLRenderingContext.prototype,CanvasContext.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...patchGLPrototype(t.WebGL2RenderingContext.prototype,CanvasContext.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}const encodedJs="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",decodeBase64$1=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0)),blob="undefined"!=typeof window&&window.Blob&&new Blob([decodeBase64$1(encodedJs)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper(e){let t;try{var n;if(t=blob&&(window.URL||window.webkitURL).createObjectURL(blob))return(n=new Worker(t,{name:null==e?void 0:e.name})).addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),n;throw""}catch(i){return new Worker("data:text/javascript;base64,"+encodedJs,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class CanvasManager{constructor(e){__publicField(this,"pendingCanvasMutations",new Map),__publicField(this,"rafStamps",{latestId:0,invokeId:null}),__publicField(this,"mirror"),__publicField(this,"mutationCb"),__publicField(this,"resetObservers"),__publicField(this,"frozen",!1),__publicField(this,"locked",!1),__publicField(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});var{sampling:t="all",win:n,blockClass:i,blockSelector:r,recordCanvas:o,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,r,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,n,i,r,o){const t=initCanvasContextObserver(n,i,r,!0),a=new Map,s=new WorkerWrapper,d=(s.onmessage=e=>{var t,n,i,r=e.data["id"];a.set(r,!1),"base64"in e.data&&({base64:e,type:t,width:n,height:i}=e.data,this.mutationCb({id:r,type:CanvasContext["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:e}],type:t}]},0,0]}]}))},1e3/e);let u=0,c;const l=()=>{const t=[];return n.document.querySelectorAll("canvas").forEach(e=>{isBlocked(e,i,r,!0)||t.push(e)}),t},p=e=>{c=(u&&e-u<d||(u=e,l().forEach(async e=>{var t,n,i=this.mirror.getId(e);a.get(i)||0!==e.width&&0!==e.height&&(a.set(i,!0),["webgl","webgl2"].includes(e.__context)&&!1===(null==(n=null==(t=e.getContext(e.__context))?void 0:t.getContextAttributes())?void 0:n.preserveDrawingBuffer)&&t.clear(t.COLOR_BUFFER_BIT),n=await createImageBitmap(e),s.postMessage({id:i,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n]))})),requestAnimationFrame(p))};c=requestAnimationFrame(p),this.resetObservers=()=>{t(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=initCanvasContextObserver(e,t,n,!1),r=initCanvas2DMutationObserver(this.processMutation.bind(this),e,t,n),o=initCanvasWebGLMutationObserver(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{i(),r(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{var n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){var n,i;this.frozen||this.locked||(i=this.pendingCanvasMutations.get(e))&&-1!==t&&(n=i.map(e=>{const{type:t,...n}=e;return n}),i=i[0]["type"],this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations["delete"](e))}}class StylesheetManager{constructor(e){__publicField(this,"trackedLinkElements",new WeakSet),__publicField(this,"mutationCb"),__publicField(this,"adoptedStyleSheetCb"),__publicField(this,"styleMirror",new StyleSheetMirror),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0!==e.length){var n={id:t,styleIds:[]},i=[];for(const o of e){let e;if(this.styleMirror.has(o))e=this.styleMirror.getId(o);else{e=this.styleMirror.add(o);var r=[];for(let e=0;e<o.rules.length;++e)r.push({rule:stringifyRule(o.rules[e],o.href),index:e});i.push({styleId:e,rules:Array.from(o.rules||CSSRule,(e,t)=>({rule:stringifyRule(e,o.href),index:t}))})}n.styleIds.push(e)}0<i.length&&(n.styles=i),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ProcessedNodeManager{constructor(){__publicField(this,"nodeMap",new WeakMap),__publicField(this,"active",!1)}inOtherBuffer(e,t){e=this.nodeMap.get(e);return e&&Array.from(e).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let wrappedEmit,takeFullSnapshot$1=()=>{},canvasManager,recording=!1;try{if(2!==Array.from([1],e=>2*e)[0]){const WQb=document.createElement("iframe");document.body.appendChild(WQb),Array.from=(null==(_a=WQb.contentWindow)?void 0:_a.Array.from)||Array.from,document.body.removeChild(WQb)}}catch(err){console.debug("Unable to override Array.from",err)}const mirror=createMirror$2();function record(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:P="rr-ignore",ignoreSelector:G=null,maskTextClass:s="rr-mask",maskTextSelector:d=null,inlineStylesheet:u=!0,maskAllInputs:D,maskInputOptions:t,slimDOMOptions:c,maskInputFn:l,maskTextFn:p,hooks:B,packFn:h,sampling:f={},dataURLOptions:g={},mousemoveWait:m,recordDOM:W=!0,recordCanvas:v=!1,recordCrossOriginIframes:$=!1,recordAfter:U="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:j=!1,collectFonts:z=!1,inlineImages:y=!1,plugins:b,keepIframeSrcFn:I=()=>!1,ignoreCSSAttributes:Z=new Set([]),errorHandler:V}=e,w=(registerErrorHandler(V),!$||window.parent===window);let C=!1;if(!w)try{window.parent.document&&(C=!1)}catch(J){C=!0}if(w&&!i)throw new Error("emit function is required");if(!w&&!C)return()=>{};void 0!==m&&void 0===f.mousemove&&(f.mousemove=m),mirror.reset();const S=!0===D?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==t?t:{password:!0},A=!0===c||"all"===c?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===c,headMetaDescKeywords:"all"===c,headTitleMutations:"all"===c}:c||{};polyfill$1();let Y,E=0;const H=e=>{for(const t of b||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=h&&!C?h(e):e},T=(wrappedEmit=(e,t)=>{var n;e.timestamp=nowTimestamp(),null==(n=mutationBuffers[0])||!n.isFrozen()||e.type===EventType.FullSnapshot||e.type===EventType.IncrementalSnapshot&&e.data.source===IncrementalSource.Mutation||mutationBuffers.forEach(e=>e.unfreeze()),w?null!=i&&i(H(e),t):C&&(n={type:"rrweb",event:H(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===EventType.FullSnapshot?(Y=e,E=0):e.type!==EventType.IncrementalSnapshot||e.data.source===IncrementalSource.Mutation&&e.data.isAttachIframe||(E++,t=o&&E>=o,n=r&&e.timestamp-Y.timestamp>r,(t||n)&&takeFullSnapshot$1(!0))},e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,...e}})}),K=e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Scroll,...e}}),X=e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CanvasMutation,...e}});const _=new StylesheetManager({mutationCb:T,adoptedStyleSheetCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.AdoptedStyleSheet,...e}})}),x=new IframeManager({mirror:mirror,mutationCb:T,stylesheetManager:_,recordCrossOriginIframes:$,wrappedEmit:wrappedEmit,takeFullSnapshot:takeFullSnapshot$1});for(const N of b||[])N.getMirror&&N.getMirror({nodeMirror:mirror,crossOriginIframeMirror:x.crossOriginIframeMirror,crossOriginIframeStyleMirror:x.crossOriginIframeStyleMirror});const R=new ProcessedNodeManager,k=(canvasManager=new CanvasManager({recordCanvas:v,mutationCb:X,win:window,blockClass:n,blockSelector:a,mirror:mirror,sampling:f.canvas,dataURLOptions:g}),new ShadowDomManager({mutationCb:T,scrollCb:K,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskInputOptions:S,dataURLOptions:g,maskTextFn:p,maskInputFn:l,recordCanvas:v,inlineImages:y,sampling:f,slimDOMOptions:A,iframeManager:x,stylesheetManager:_,canvasManager:canvasManager,keepIframeSrcFn:I,processedNodeManager:R},mirror:mirror}));takeFullSnapshot$1=(e=!1)=>{if(W){wrappedEmit({type:EventType.Meta,data:{href:window.location.href,width:getWindowWidth(),height:getWindowHeight()}},e),_.reset(),k.init(),mutationBuffers.forEach(e=>e.lock());var t=snapshot(document,{mirror:mirror,blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskAllInputs:S,maskTextFn:p,maskInputFn:l,slimDOM:A,dataURLOptions:g,recordCanvas:v,inlineImages:y,onSerialize:e=>{isSerializedIframe(e,mirror)&&x.addIframe(e),isSerializedStylesheet(e,mirror)&&_.trackLinkElement(e),hasShadowRoot(e)&&k.addShadowRoot(index.shadowRoot(e),document)},onIframeLoad:(e,t)=>{x.attachIframe(e,t),k.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{_.attachLinkElement(e,t)},keepIframeSrcFn:I});if(!t)return console.warn("Failed to snapshot the document");wrappedEmit({type:EventType.FullSnapshot,data:{node:t,initialOffset:getWindowScroll(window)}},e),mutationBuffers.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&_.adoptStyleSheets(document.adoptedStyleSheets,mirror.getId(document))}},x.setTakeFullSnapshot(takeFullSnapshot$1);try{const M=[],L=e=>{return callbackWrapper(initObservers)({mutationCb:T,mousemoveCb:(e,t)=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.ViewportResize,...e}}),inputCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Input,...e}}),mediaInteractionCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MediaInteraction,...e}}),styleSheetRuleCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleSheetRule,...e}}),styleDeclarationCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Font,...e}}),selectionCb:e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Selection,...e}})},customElementCb:e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CustomElement,...e}})},blockClass:n,ignoreClass:P,ignoreSelector:G,maskTextClass:s,maskTextSelector:d,maskInputOptions:S,inlineStylesheet:u,sampling:f,recordDOM:W,recordCanvas:v,inlineImages:y,userTriggeredOnInput:j,collectFonts:z,doc:e,maskInputFn:l,maskTextFn:p,keepIframeSrcFn:I,blockSelector:a,slimDOMOptions:A,dataURLOptions:g,mirror:mirror,iframeManager:x,stylesheetManager:_,shadowDomManager:k,processedNodeManager:R,canvasManager:canvasManager,ignoreCSSAttributes:Z,plugins:(null==(e=null==b?void 0:b.filter(e=>e.observer))?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>wrappedEmit({type:EventType.Plugin,data:{plugin:t.name,payload:e}})})))||[]},B)},F=(x.addLoadListener(e=>{try{M.push(L(e.contentDocument))}catch(t){console.warn(t)}}),()=>{takeFullSnapshot$1(),M.push(L(document)),recording=!0});return"interactive"===document.readyState||"complete"===document.readyState?F():(M.push(on("DOMContentLoaded",()=>{wrappedEmit({type:EventType.DomContentLoaded,data:{}}),"DOMContentLoaded"===U&&F()})),M.push(on("load",()=>{wrappedEmit({type:EventType.Load,data:{}}),"load"===U&&F()},window))),()=>{M.forEach(e=>e()),R.destroy(),recording=!1,unregisterErrorHandler()}}catch(O){console.warn(O)}}record.addCustomEvent=(e,t)=>{if(!recording)throw new Error("please add custom event after start recording");wrappedEmit({type:EventType.Custom,data:{tag:e,payload:t}})},record.freezePage=()=>{mutationBuffers.forEach(e=>e.freeze())},record.takeFullSnapshot=e=>{if(!recording)throw new Error("please take full snapshot after start recording");takeFullSnapshot$1(e)},record.mirror=mirror,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(n=n||{});var __assign=function(){return(__assign=Object.assign||function __assign(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},SessionRecorderBuffer=function(){function e(e,t){void 0===t&&(t=Infinity),this.data=[],this.sequenceNumber=0,this.interval=e,this.maxCount=t,this.doubledMaxCount=2*t}return e.prototype.isEmpty=function(){return 0===this.data.length},e.prototype.count=function(){return this.data.length},e.prototype.clear=function(){this.data.length=0},e.prototype.clearSequence=function(){this.sequenceNumber=0},e.prototype.push=function(e){this.data.push(e),this.checkRateLimit()},e.prototype.pack=function(e,n){var t=this.data.splice(0,this.maxCount);return e.recordingPayload=t,e.sequence=this.sequenceNumber,e.recordingPayloadCount=t.length,t.length&&(e.browserTime=t[0].timestamp),e.recordingPayloadMetadata=n.map(t,function(e){var t=n.pick(e,"type","timestamp");return e.data&&(t.data=n.pick(e.data,"source","type","x","y","id","height","width","href")),t}),this.sequenceNumber+=t.length,e},e.prototype.checkRateLimit=function(){var e=this.data.length;e>=this.doubledMaxCount&&e%this.maxCount==0&&this.data[e-1].timestamp-this.data[e-this.doubledMaxCount].timestamp<=this.interval&&this.onRateLimit&&this.onRateLimit()},e}(),MAX_BACKOFF=6,MAX_FAILURES=100,SendQueue=function(){function e(e,t){void 0===t&&(t=MAX_FAILURES),this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}return e.prototype.isEmpty=function(){return this.queue.length<=0},e.prototype.stop=function(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer},e.prototype.start=function(){this.stopped=!1},e.prototype.push=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.queue).push.apply(e,t),this.next()},e.prototype.next=function(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)},e.prototype.incrementFailure=function(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t},e.prototype.pass=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()},e.prototype.fail=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,MAX_BACKOFF))))},e.prototype.retryLater=function(e){var t=this;this.timer=setTimeout$1(function(){delete t.timer,t.next()},e)},e.prototype.failed=function(){return 0<this.failures.get(this.queue[0])&&null!=this.timer},e.prototype.send=function(e,t,n){var i=this;return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(function(){return i.pass(e,n)},function(){return i.fail(e,n)})},e.prototype.drain=function(e,t){var n;if(void 0===t&&(t=!0),(n=this.queue).push.apply(n,e),this.failed())return Promise$4.reject();for(var i=[],r=0,o=this.queue;r<o.length;r++){var a=o[r];this.pending.has(a)?this.retryPending&&t&&!this.unloads.has(a)&&(this.incrementFailure(a),i.push(this.send(a,t,!1))):i.push(this.send(a,t,!1))}return Promise$4.all(i)},e}(),RECORDING_CONFIG_WORKERURL$1="recording.workerUrl",MAX_SIZE=1e6,RESOURCE_CACHING$1="resourceCaching",Transport=function(){function e(e,t,n){this.WorkerClass=e,this.pendo=t,this.api=n,this.maxSize=MAX_SIZE,this.isResourceCachingEnabled=this.api.ConfigReader.get(RESOURCE_CACHING$1)}return e.prototype.start=function(e){if(!e.disableWorker&&!this.worker)try{var t;e.workerOverride?this.worker=e.workerOverride:(t=this.api.ConfigReader.get(RECORDING_CONFIG_WORKERURL$1),this.usesSelfHostedWorker=null!=t,this.worker=t?new Worker(t):new this.WorkerClass),this.worker.onmessage=this.pendo._.bind(this._onMessage,this),this.worker.onerror=this.pendo._.bind(this._onError,this)}catch(n){this.worker=null}},e.prototype.stop=function(){this.worker&&(this.worker.terminate(),delete this.worker)},e.prototype.send=function(e,t,n){var i,r=e.url,o=e.payload;if(0<(n=void 0===n?0:n)&&(r="".concat(r,"&rt=").concat(n)),this.worker&&!t&&o)return(i={}).promise=new Promise$4(function(e,t){i.resolve=e,i.reject=t}),this.workerResponse=i,this.worker.postMessage({url:r,payload:o,shouldCacheResources:this.isResourceCachingEnabled}),i.promise;if(!e.body){n=JSON.stringify(o);if(n.length>this.maxSize)throw(o=new Error("maximum recording payload size exceeded")).reason="HEAVY_EVENT",o;e.body=this.pendo.compress(n,"binary"),delete e.payload}return r="".concat(r,"&ct=").concat((new Date).getTime()),this.post(r,{keepalive:t,body:e.body})},e.prototype.post=function(e,t){return t.method="POST",t.keepalive&&this.api.transmit.fetchKeepalive.supported()?this.api.transmit.fetchKeepalive(e,t):t.keepalive&&this.api.transmit.sendBeacon.supported()?this.api.transmit.sendBeacon(e,new Blob([t.body]))?Promise$4.resolve():Promise$4.reject(new Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)},e.prototype._onMessage=function(e){e.data&&e.data.type?this.onWorkerMessage(e.data):(e.data&&e.data.error&&((e.data.status&&e.data.status<500||null==e.data.sequence)&&this.api.log.critical("Failed to send recording data from web worker",{error:e.data.error}),this.workerResponse)&&(this.workerResponse.reject(),this.workerResponse=null),this.workerResponse&&(this.workerResponse.resolve(),this.workerResponse=null))},e.prototype._onError=function(){this.onError&&this.onError()},e}(),ELEMENT_NODE=1,INPUT_MASK="*".repeat(10);function isElementNode(e){return!!e&&e.nodeType===ELEMENT_NODE}function distanceToMatch(e,t,n,i){return void 0===n&&(n=Infinity),void 0===i&&(i=0),!isElementNode(e)||n<i?-1:e.matches(t)?i:distanceToMatch(e.parentNode,t,n,i+1)}function shouldMask(e,t){var n=t.maskAllText,i=t.maskTextSelector,t=t.unmaskTextSelector;try{var r=isElementNode(e)?e:e.parentElement;if(null===r)return!1;var o=-1,a=-1;if(n){if((a=distanceToMatch(r,t))<0)return!0;o=distanceToMatch(r,i,0<=a?a:Infinity)}else{if((o=distanceToMatch(r,i))<0)return!1;a=distanceToMatch(r,t,0<=o?o:Infinity)}return 0<=o?!(0<=a)||o<=a:!(0<=a||!n)}catch(s){}return!!n}function shouldMaskInput(e,t){if(t&&isElementNode(e)){var n=(e.tagName||"").toLowerCase(),e=(e.type||"").toLowerCase();if(t[n]||t[e])return!0}return!1}function maskInput(e,t,n){return shouldMaskInput(n,e.maskInputOptions)||shouldMask(n,e)?t?INPUT_MASK:"":t}function maskText(e,t,n){return shouldMask(n,e)?t?t.replace(/[\S]/g,"*"):"":t}function SessionRecorder(e,t){this.record=e,this.lastKeyFrameTime=0,this.eventsSinceLastKeyFrame=0,this.currentRecordingSize=0,this.WorkerClass=t}SessionRecorder.FULL_SNAPSHOT=2,SessionRecorder.META=4,SessionRecorder.INCREMENTAL_SNAPSHOT=3,SessionRecorder.INCREMENTAL_SOURCE_MUTATION=0,SessionRecorder.INCREMENTAL_SOURCE_INPUT=5,SessionRecorder.SEND_INTERVAL=5e3,SessionRecorder.MAX_SEND_COUNT=2e4;var RECORDING_CONFIG="recording",RECORDING_CONFIG_ENABLED="recording.enabled",RECORDING_CONFIG_AUTO_START="recording.autoStart",RECORDING_CONFIG_WORKERURL="recording.workerUrl",RECORDING_CONFIG_ON_RECORDING_START="recording.onRecordingStart",RECORDING_CONFIG_ON_RECORDING_STOP="recording.onRecordingStop",RECORDING_CONFIG_WORKER_OVERRIDE="recording.workerOverride",RESOURCE_CACHING="resourceCaching",ONE_DAY_IN_MILLISECONDS=864e5,THIRTY_MINUTES=18e5,ONE_HUNDRED_MB_IN_BYTES=104857600,SESSION_RECORDING_ID="pendo_srId",SESSION_RECORDING_LAST_USER_INTERACTION_EVENT="pendo_srLastUserInteractionEvent";function wrapMethodWithCatch(t){return function(){try{return t.apply(this,arguments)}catch(e){this.api&&this.api.log&&this.api.log.critical("session recording error",{error:e})}}}function errorLogger(e){if("undefined"!=typeof Object&&"function"==typeof Object.getOwnPropertyNames&&e.constructor&&e.constructor.prototype)for(var t=0,n=Object.getOwnPropertyNames(e.constructor.prototype);t<n.length;t++){var i=n[t];"constructor"!==i&&(e[i]=wrapMethodWithCatch(e[i]))}return e}function decodeBase64(e,t){var n=atob(e);if(t){for(var i=new Uint8Array(n.length),r=0,o=n.length;r<o;++r)i[r]=n.charCodeAt(r);return new TextDecoder("utf-16le").decode(new Uint16Array(i.buffer))}return n}function createURL(e,t,n){t=t===undefined?null:t,e=decodeBase64(e,n!==undefined&&n),n=e.indexOf("\n",10)+1,n=e.substring(n)+(t?"//# sourceMappingURL="+t:""),e=new Blob([n],{type:"application/javascript"});return URL.createObjectURL(e)}function createBase64WorkerFactory(t,n,i){var r;return function WorkerFactory(e){return r=r||createURL(t,n,i),new Worker(r,e)}}SessionRecorder.prototype.addConfigOptions=function(){var e=this.api.ConfigReader;e.addOption(RECORDING_CONFIG,[e.sources.PENDO_CONFIG_SRC],{}),e.addOption(RECORDING_CONFIG_AUTO_START,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ENABLED,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_START,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_STOP,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKERURL,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKER_OVERRIDE,[e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RESOURCE_CACHING,[e.sources.PENDO_CONFIG_SRC],undefined)},SessionRecorder.prototype.name="Replay",SessionRecorder.prototype.initialize=function(e,t){this.pendo=e,this.api=t;var n=this.pendo._.bind,i=this.api.ConfigReader,r=(this.buffer=new SessionRecorderBuffer(SessionRecorder.SEND_INTERVAL,SessionRecorder.MAX_SEND_COUNT),this.buffer.onRateLimit=n(this.rateLimitExceeded,this),this.transport=new Transport(this.WorkerClass,e,t),this.transport.onError=n(this.sendFailure,this,"WORKER_ERROR"),this.transport.onWorkerMessage=n(this.onWorkerMessage,this),this.sendQueue=new SendQueue(n(this.transport.send,this.transport)),this.sendQueue.onTimeout=n(this.sendFailure,this,"SEND_TIMEOUT"),this.isNewSession=!1,this.addConfigOptions(),this.config=i.get(RECORDING_CONFIG),this.onRecordingStart=e._.isFunction(i.get(RECORDING_CONFIG_ON_RECORDING_START))?i.get(RECORDING_CONFIG_ON_RECORDING_START):function(){},this.onRecordingStop=e._.isFunction(i.get(RECORDING_CONFIG_ON_RECORDING_STOP))?i.get(RECORDING_CONFIG_ON_RECORDING_STOP):function(){},!1),o=i.get(RECORDING_CONFIG_ENABLED);e._.isBoolean(o)?(r=o)||this.api.log.info("Session Replay disabled via the snippet config"):r=this.config.enabled,r&&(i.get("excludeNonGuideAnalytics")?this.api.log.info("Session Replay is disabled because excludeNonGuideAnalytics is enabled"):(o=this.sessionIdKey="".concat(SESSION_RECORDING_ID,".").concat(e.apiKey),e.recording={start:n(this.start,this),stop:n(this.stop,this)},this.subscriptions=[t.attachEvent(t.Events,"appHidden",n(this.handleHidden,this)),t.attachEvent(t.Events,"appUnloaded",n(this.handleUnload,this)),t.attachEvent(t.Events,"identify",n(this.changeIdentity,this)),t.attachEvent(t.Events,"metadata",n(this.changeMetadata,this)),t.attachEvent(t.Events,"eventCaptured",n(this.addRecordingId,this)),t.attachEvent(t.Events,"transmit:locked",n(this.stop,this)),t.attachEvent(t.Events,"transmit:unlocked",n(this._start,this)),t.attachEvent(t.frames.getChannel(),"message",n(this._frameMessage,this)),t.attachEvent(t.Events,"tabIdChanged:self",n(this.handleTabIdChange,this))],t.store.getters["frames/isReady"]()?this.ready():this.subscriptions.push(t.attachEvent(t.Events,"ready",n(this.ready,this))),t.agentStorage.registry.addSession(o),t.agentStorage.registry.addSession(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)))},SessionRecorder.prototype.teardown=function(){delete this.pendo.recording,delete this.allowStart,this.pendo._.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0,this.stop(),this.transport.stop()},SessionRecorder.prototype.ready=function(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()},SessionRecorder.prototype.changeIdentity=function(e){var t=this;this.allowStart&&(clearTimeout(this._changeIdentityTimer),this.isRecording()&&this.stop(),this.visitorId=e.data[0].visitor_id,this.accountId=e.data[0].account_id,this._changeIdentityTimer=setTimeout$1(function(){t._start()},500))},SessionRecorder.prototype.changeMetadata=function(e){var t=this,e=e.data[0],n=e.hashChanged,e=e.options;if(this.allowStart&&n)return clearTimeout(this._changeIdentityTimer),this.visitorId=e.visitor.id,this.accountId=e.account.id,this.fetchVisitorConfig().then(function(e){e&&e.enable||!t.isRecording()?e&&e.enable&&!t.isRecording()&&t._startRecordingForVisitor(e):t.stop()})["catch"](function(e){t.api.log.critical("Failed to re-fetch recording config",{error:e}),t.logStopReason("VISITOR_CONFIG_ERROR")})},SessionRecorder.prototype.snapshot=function(){this.isRecording()&&(this.send(),this.record.takeFullSnapshot())},SessionRecorder.prototype.isRecording=function(){return null!=this.interval},SessionRecorder.prototype.recordingConfig=function(e){var e=this.pendo._.extend({},this.config.options,e),t={maskAllText:null==e.privateByDefault||e.privateByDefault,maskTextSelector:[".pendo-sr-mask"].concat(e.maskedSelectors||[]).join(","),unmaskTextSelector:[".pendo-sr-unmask"].concat(e.unmaskedSelectors||[]).join(","),maskInputOptions:{}};return this.pendo._.isObject(e.maskInputOptions)&&(t.maskInputOptions=e.maskInputOptions),t.maskInputOptions=this.pendo._.extend(t.maskInputOptions,{email:!0,password:!0,tel:!0}),{maskInputFn:this.pendo._.partial(maskInput,t),maskTextFn:this.pendo._.partial(maskText,t),maskTextSelector:"*",maskTextClass:null,maskInputOptions:t.maskInputOptions,blockClass:null,blockSelector:[".pendo-ignore",".pendo-sr-ignore"].concat(e.blockedSelectors||[]).join(","),recordCrossOriginIframes:null==e.recordCrossOriginIframes||e.recordCrossOriginIframes}},SessionRecorder.prototype.start=function(){this._restartPtm=this.api.analytics.ptm().pause(),this.allowStart=!0,this.visitorId=this.pendo.get_visitor_id(),this.accountId=this.pendo.get_account_id(),this._start()},SessionRecorder.prototype._markEvents=function(e){if(this.recordingId)for(var t=0,n=e;t<n.length;t++){var i=n[t];i.visitor_id===this.visitorId&&"identify"!==i.type&&(i.recordingId=this.recordingId,i.recordingSessionId=this.sessionId(this.recordingId))}},SessionRecorder.prototype.restartPtm=function(){if(this.pendo._.isFunction(this._restartPtm)){this._markEvents(this.pendo.buffers.events);for(var e=0,t=this.pendo.buffers.silos;e<t.length;e++){var n=t[e];this._markEvents(n)}this._restartPtm(),this._restartPtm=null}},SessionRecorder.prototype._start=function(){var t=this;if(!this.isRecording()&&this.pendo.isSendingEvents()&&this.allowStart)return this.fetchVisitorConfig().then(function(e){t.allowStart&&(e&&e.enable?t._startRecordingForVisitor(e):(t.restartPtm(),t.logStopReason("VISITOR_DISABLED")))})["catch"](function(e){t.restartPtm(),t.api.log.critical("Failed to fetch recording config",{error:e}),t.logStopReason("VISITOR_CONFIG_ERROR")})},SessionRecorder.prototype._startRecordingForVisitor=function(e){var t=this;if(this.transport.start(this.config),this.pendo._.get(this.config,"disableFallback",!0)&&!this.transport.worker)this.restartPtm(),this.pendo.log("Worker failed to start and main thread fallback is disabled. Recording prevented from starting."),this.logStopReason("WORKER_ERROR");else try{var n=this.pendo._.bind,i=(this.visitorConfig=e,this.clearOldSessionId(),this.sendQueue.start(),this.interval=setInterval(function(){t.sendQueue.failed()||t.send()},SessionRecorder.SEND_INTERVAL),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:n(this.emit,this)},i)),this._refreshIds(),this.onRecordingStart()}catch(r){this.restartPtm(),this.logStopReason("RECORDING_ERROR")}},SessionRecorder.prototype._sendIds=function(){window==window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:id",recordingId:this.recordingId,_sessionId:this._sessionId,topId:this.api.store.state.frames.topId})},SessionRecorder.prototype._refreshIds=function(e){window!=window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:refresh"})},SessionRecorder.prototype._frameMessage=function(e){e=e.data;"pendo:sr:id"===e.type?this.api.EventTracer.getTabId()==e.tabId&&this.api.store.state.frames.topId!=e.topId||(this.recordingId=e.recordingId,this._sessionId=e._sessionId,this.restartPtm()):"pendo:sr:refresh"===e.type&&window==window.top&&this._sendIds()},SessionRecorder.prototype.clearSessionId=function(){delete this._sessionId,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID),this.api.sessionStorage.removeItem(this.sessionIdKey)},SessionRecorder.prototype.sessionId=function(e){var t,n;return void 0===e&&(e=this.pendo.randomString(16)),this._sessionId||((t=this.api.sessionStorage.getItem(this.sessionIdKey))||((n=this.api.sessionStorage.getItem(SESSION_RECORDING_ID))?(t=n,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID)):t=e,this.api.sessionStorage.setItem(this.sessionIdKey,t)),this._sessionId=t),this._sessionId},SessionRecorder.prototype.clearOldSessionId=function(){var e=this.getLastUserInteractionEventInformation();if(e){var t=e.timestamp,e=e.visitorId===this.visitorId&&e.accountId===this.accountId,t=t>Date.now()-this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);if(e&&t)return}this.clearSessionInfo(),this.isNewSession=!0},SessionRecorder.prototype.clearSessionInfo=function(){this.currentRecordingSize=0,this.clearSessionId(),this.clearLastUserInteractionEventInformation()},SessionRecorder.prototype.isUserInteraction=function(e){return e.type===SessionRecorder.INCREMENTAL_SNAPSHOT&&e.data.source>SessionRecorder.INCREMENTAL_SOURCE_MUTATION&&e.data.source<=SessionRecorder.INCREMENTAL_SOURCE_INPUT},SessionRecorder.prototype.storeLastUserInteractionEventInformation=function(e,t,n,i){(this.isUserInteraction(e)||i)&&(this.lastUserInteractionEventInfo={timestamp:e.timestamp,visitorId:t,accountId:n},this.api.sessionStorage.setItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT,JSON.stringify(this.lastUserInteractionEventInfo)))},SessionRecorder.prototype.clearLastUserInteractionEventInformation=function(){delete this.lastUserInteractionEventInfo,this.api.sessionStorage.removeItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)},SessionRecorder.prototype.getLastUserInteractionEventInformation=function(){if(this.lastUserInteractionEventInfo)return this.lastUserInteractionEventInfo;try{return this.lastUserInteractionEventInfo=JSON.parse(this.api.sessionStorage.getItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)),this.lastUserInteractionEventInfo}catch(e){return null}},SessionRecorder.prototype.emit=function(e){e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var t=e.type===SessionRecorder.META,n=e.type===SessionRecorder.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp"),r=!i&&t?!0:!1,r=(this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,r),this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES));i&&e.timestamp-i>r&&!n&&!t?(this.send(),this.clearSessionInfo(),this.snapshot()):(t&&this.send(),this.buffer.push(e),n?(this.lastKeyFrameTime=e.timestamp,this.eventsSinceLastKeyFrame=0,this.recordingId=this.pendo.randomString(16),this.buffer.clearSequence(),this.sessionId(this.recordingId),this.restartPtm(),this._sendIds(),this.send({keyframe:!0})):!t&&(this.eventsSinceLastKeyFrame+=1,i=e.timestamp-this.lastKeyFrameTime,r=ONE_DAY_IN_MILLISECONDS<=i,n=i>=this.pendo._.get(this.visitorConfig,"keyframeTimeFrequency",30645047),t=this.eventsSinceLastKeyFrame>=this.pendo._.get(this.visitorConfig,"keyframeEventFrequency",4548),e=this.currentRecordingSize>=this.pendo._.get(this.visitorConfig,"recordingSizeLimit",ONE_HUNDRED_MB_IN_BYTES),r||n&&t||e)&&(this.currentRecordingSize=0,this.snapshot()))},SessionRecorder.prototype.updateCurrentRecordingSize=function(e){this.currentRecordingSize+=e},SessionRecorder.prototype.onWorkerMessage=function(e){switch(e.type){case"recordingPayloadSize":var t=e.recordingPayloadSize,n=e.exceedsPayloadSizeLimit;if(!t)return;if(n)return this.stop(),void this.logStopReason("BIG_PAYLOAD",t);this.updateCurrentRecordingSize(t);break;case"hostedResources":n=e.hostedResourcesEvent;n&&this.sendHostedResources(n)}},SessionRecorder.prototype.addRecordingId=function(e){this.recordingId&&e&&e.data&&e.data.length&&"recording"!==(e=e.data[0]).type&&"identify"!==e.type&&(e.visitor_id!==this.visitorId?(this.api.log.warn("Visitor id has diverged from agent"),this.stop()):this._markEvents([e]))},SessionRecorder.prototype.stop=function(){this._stop&&this._stop(),this.send(),this.sendQueue.stop(),this.recordingId=null,clearInterval(this.interval),this.interval=null,this._stop=null,this.visitorConfig=null,this.visitorId=null,this.accountId=null,this.clearSessionInfo(),this.onRecordingStop()},SessionRecorder.prototype.handleHidden=function(){this.send({hidden:!0})},SessionRecorder.prototype.handleUnload=function(){this.send({unload:!0})},SessionRecorder.prototype.buildRequestUrl=function(e,t){t=this.pendo._.extend({},this.api.agent.getJwtInfoCopy(),t),t=this.pendo._.map(t,function(e,t){return"".concat(t,"=").concat(e)}).join("&");return t.length?"".concat(e,"?").concat(t):e},SessionRecorder.prototype.sendFailure=function(e){this.stop(),this.logStopReason(e)},SessionRecorder.prototype.rateLimitExceeded=function(){this.send(),this.stop(),this.logStopReason("DATA_OVERLOAD")},SessionRecorder.prototype.send=function(e){var e=void 0===e?{}:e,t=e.unload,t=void 0!==t&&t,n=e.keyframe,n=void 0!==n&&n,e=e.hidden,e=void 0!==e&&e;if(this.isRecording()&&this.buffer&&this.recordingId&&!this.buffer.isEmpty())if(this.pendo.isSendingEvents()){var i=this.api.EventTracer.addTracerIds({}),n=this.pendo._.extend({type:"recording",visitorId:this.visitorId,accountId:this.accountId,keyFrame:!!n,lastKeyFrame:this.lastKeyFrameTime,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get()},i),i=(this.transport.usesSelfHostedWorker&&(n.usesSelfHostedWorker=!0),this.api.Events.eventCaptured.trigger(n),{v:this.pendo.VERSION,recordingId:this.recordingId}),i=(n.keyFrame&&(i.kf=1),this.isNewSession&&(this.isNewSession=!(i.ns=1)),this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),i)),n=this.buffer.pack(n,this.pendo._);if(t||e)try{this.sendQueue.drain([{url:i,payload:n}],t)}catch(r){r.reason&&this.logStopReason(r.reason)}else this.sendQueue.push({url:i,payload:n});this.buffer.isEmpty()||this.send({unload:t})}else this.buffer.clear()},SessionRecorder.prototype.fetchVisitorConfig=function(){var e=this.pendo.compress({url:this.pendo.url.get(),metadata:this.pendo.getSerializedMetadata(),visitorId:this.visitorId,accountId:this.accountId}),e=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/recordingconf/").concat(this.pendo.apiKey),{jzb:e,ct:(new Date).getTime(),v:this.pendo.VERSION});return fetch(e,{method:"GET"}).then(function(e){return e.json()})},SessionRecorder.prototype.logStopReason=function(e,t){var n=this,i=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend({type:"recording",visitorId:this.visitorId||this.pendo.get_visitor_id(),accountId:this.accountId||this.pendo.get_account_id(),browserTime:(new Date).getTime(),keyFrame:!1,lastKeyFrame:0,recordingId:"log",recordingSessionId:"log",url:this.pendo.url.get(),subType:"log",recordingPayload:[],sequence:0,recordingPayloadCount:0,props:__assign({reason:e},t&&{error:t})},i),t=this.pendo.compress(e),i=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),{jzb:t,ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),t=this.pendo.compress(e,"binary");return this.transport.post(i,{body:t,keepalive:!0})["catch"](function(e){n.api.log.critical("Failed to send reason for stopping recording",{error:e})})},SessionRecorder.prototype.sendHostedResources=function(e){var t=this,n=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend(__assign(__assign({},e),{browserTime:(new Date).getTime()}),n),n=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),{ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),e=this.pendo.compress(e,"binary");return this.transport.post(n,{body:e,keepalive:!0})["catch"](function(e){t.api.log.critical("Failed to send hosted resources for recording event",{error:e})})};var WorkerFactory=createBase64WorkerFactory("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwp2YXIgd29ya2VyX2NvZGUgPSAoZnVuY3Rpb24gKGV4cG9ydHMpIHsKICAgICd1c2Ugc3RyaWN0JzsKCiAgICB2YXIgYjY0ID0gKGZ1bmN0aW9uKCkgewoKICAgICAgICB2YXIgbG9va3VwID0gJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5LV8nLnNwbGl0KCcnKTsKCiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgJ3VpbnQ4VG9CYXNlNjQnOiB1aW50OFRvQmFzZTY0CiAgICAgICAgfTsKCiAgICAgICAgZnVuY3Rpb24gdWludDhUb0Jhc2U2NCh1aW50OCkgewogICAgICAgICAgICB2YXIgaSwKICAgICAgICAgICAgICAgIGV4dHJhQnl0ZXMgPSB1aW50OC5sZW5ndGggJSAzLCAvLyBpZiB3ZSBoYXZlIDEgYnl0ZSBsZWZ0LCBwYWQgMiBieXRlcwogICAgICAgICAgICAgICAgb3V0cHV0ID0gJycsCiAgICAgICAgICAgICAgICB0ZW1wLCBsZW5ndGg7CgogICAgICAgICAgICBmdW5jdGlvbiB0cmlwbGV0VG9CYXNlNjQobnVtKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gbG9va3VwW251bSA+PiAxOCAmIDB4M0ZdICsgbG9va3VwW251bSA+PiAxMiAmIDB4M0ZdICsgbG9va3VwW251bSA+PiA2ICYgMHgzRl0gKyBsb29rdXBbbnVtICYgMHgzRl07CiAgICAgICAgICAgIH0KCiAgICAJCS8vIGdvIHRocm91Z2ggdGhlIGFycmF5IGV2ZXJ5IHRocmVlIGJ5dGVzLCB3ZSdsbCBkZWFsIHdpdGggdHJhaWxpbmcgc3R1ZmYgbGF0ZXIKICAgICAgICAgICAgZm9yIChpID0gMCwgbGVuZ3RoID0gdWludDgubGVuZ3RoIC0gZXh0cmFCeXRlczsgaSA8IGxlbmd0aDsgaSArPSAzKSB7CiAgICAgICAgICAgICAgICB0ZW1wID0gKHVpbnQ4W2ldIDw8IDE2KSArICh1aW50OFtpICsgMV0gPDwgOCkgKyAodWludDhbaSArIDJdKTsKICAgICAgICAgICAgICAgIG91dHB1dCArPSB0cmlwbGV0VG9CYXNlNjQodGVtcCk7CiAgICAgICAgICAgIH0KCiAgICAJCS8vIHBhZCB0aGUgZW5kIHdpdGggemVyb3MsIGJ1dCBtYWtlIHN1cmUgdG8gbm90IGZvcmdldCB0aGUgZXh0cmEgYnl0ZXMKICAgICAgICAgICAgLy9lc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgZGVmYXVsdC1jYXNlCiAgICAgICAgICAgIHN3aXRjaCAoZXh0cmFCeXRlcykgewogICAgICAgICAgICBjYXNlIDE6CiAgICAgICAgICAgICAgICB0ZW1wID0gdWludDhbdWludDgubGVuZ3RoIC0gMV07CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwW3RlbXAgPj4gMl07CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwWyh0ZW1wIDw8IDQpICYgMHgzRl07CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgY2FzZSAyOgogICAgICAgICAgICAgICAgdGVtcCA9ICh1aW50OFt1aW50OC5sZW5ndGggLSAyXSA8PCA4KSArICh1aW50OFt1aW50OC5sZW5ndGggLSAxXSk7CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwW3RlbXAgPj4gMTBdOwogICAgICAgICAgICAgICAgb3V0cHV0ICs9IGxvb2t1cFsodGVtcCA+PiA0KSAmIDB4M0ZdOwogICAgICAgICAgICAgICAgb3V0cHV0ICs9IGxvb2t1cFsodGVtcCA8PCAyKSAmIDB4M0ZdOwogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiBvdXRwdXQ7CiAgICAgICAgfQogICAgfSkoKTsKCiAgICBmdW5jdGlvbiBnZXREZWZhdWx0RXhwb3J0RnJvbUNqcyAoeCkgewogICAgCXJldHVybiB4ICYmIHguX19lc01vZHVsZSAmJiBPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoeCwgJ2RlZmF1bHQnKSA/IHhbJ2RlZmF1bHQnXSA6IHg7CiAgICB9CgogICAgdmFyIGRlZmxhdGVfbWluID0ge2V4cG9ydHM6IHt9fTsKCiAgICAvKgogICAgICogQGxpY2Vuc2UgemxpYi5qcyAyMDEyIC0gaW1heWEgWyBodHRwczovL2dpdGh1Yi5jb20vaW1heWEvemxpYi5qcyBdIFRoZSBNSVQgTGljZW5zZQogICAgICovCgogICAgKGZ1bmN0aW9uIChtb2R1bGUpIHsKICAgIAkoZnVuY3Rpb24oKSB7dmFyIG49dm9pZCAwLHc9ITAsYWE9dGhpcztmdW5jdGlvbiBiYShmLGQpe3ZhciBjPWYuc3BsaXQoIi4iKSxlPWFhOyEoY1swXWluIGUpJiZlLmV4ZWNTY3JpcHQmJmUuZXhlY1NjcmlwdCgidmFyICIrY1swXSk7Zm9yKHZhciBiO2MubGVuZ3RoJiYoYj1jLnNoaWZ0KCkpOykhYy5sZW5ndGgmJmQhPT1uP2VbYl09ZDplPWVbYl0/ZVtiXTplW2JdPXt9O312YXIgQz0idW5kZWZpbmVkIiE9PXR5cGVvZiBVaW50OEFycmF5JiYidW5kZWZpbmVkIiE9PXR5cGVvZiBVaW50MTZBcnJheSYmInVuZGVmaW5lZCIhPT10eXBlb2YgVWludDMyQXJyYXk7ZnVuY3Rpb24gSyhmLGQpe3RoaXMuaW5kZXg9Im51bWJlciI9PT10eXBlb2YgZD9kOjA7dGhpcy5lPTA7dGhpcy5idWZmZXI9ZiBpbnN0YW5jZW9mKEM/VWludDhBcnJheTpBcnJheSk/ZjpuZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpO2lmKDIqdGhpcy5idWZmZXIubGVuZ3RoPD10aGlzLmluZGV4KXRocm93IEVycm9yKCJpbnZhbGlkIGluZGV4Iik7dGhpcy5idWZmZXIubGVuZ3RoPD10aGlzLmluZGV4JiZjYSh0aGlzKTt9ZnVuY3Rpb24gY2EoZil7dmFyIGQ9Zi5idWZmZXIsYyxlPWQubGVuZ3RoLGI9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGU8PDEpO2lmKEMpYi5zZXQoZCk7ZWxzZSBmb3IoYz0wO2M8ZTsrK2MpYltjXT1kW2NdO3JldHVybiBmLmJ1ZmZlcj1ifQogICAgCUsucHJvdG90eXBlLmI9ZnVuY3Rpb24oZixkLGMpe3ZhciBlPXRoaXMuYnVmZmVyLGI9dGhpcy5pbmRleCxhPXRoaXMuZSxnPWVbYl0sbTtjJiYxPGQmJihmPTg8ZD8oTFtmJjI1NV08PDI0fExbZj4+PjgmMjU1XTw8MTZ8TFtmPj4+MTYmMjU1XTw8OHxMW2Y+Pj4yNCYyNTVdKT4+MzItZDpMW2ZdPj44LWQpO2lmKDg+ZCthKWc9Zzw8ZHxmLGErPWQ7ZWxzZSBmb3IobT0wO208ZDsrK20pZz1nPDwxfGY+PmQtbS0xJjEsOD09PSsrYSYmKGE9MCxlW2IrK109TFtnXSxnPTAsYj09PWUubGVuZ3RoJiYoZT1jYSh0aGlzKSkpO2VbYl09Zzt0aGlzLmJ1ZmZlcj1lO3RoaXMuZT1hO3RoaXMuaW5kZXg9Yjt9O0sucHJvdG90eXBlLmZpbmlzaD1mdW5jdGlvbigpe3ZhciBmPXRoaXMuYnVmZmVyLGQ9dGhpcy5pbmRleCxjOzA8dGhpcy5lJiYoZltkXTw8PTgtdGhpcy5lLGZbZF09TFtmW2RdXSxkKyspO0M/Yz1mLnN1YmFycmF5KDAsZCk6KGYubGVuZ3RoPWQsYz1mKTtyZXR1cm4gY307CiAgICAJdmFyIGRhPW5ldyAoQz9VaW50OEFycmF5OkFycmF5KSgyNTYpLE07Zm9yKE09MDsyNTY+TTsrK00pe2Zvcih2YXIgTj1NLFM9TixlYT03LE49Tj4+PjE7TjtOPj4+PTEpUzw8PTEsU3w9TiYxLC0tZWE7ZGFbTV09KFM8PGVhJjI1NSk+Pj4wO312YXIgTD1kYTtmdW5jdGlvbiBpYShmKXt0aGlzLmJ1ZmZlcj1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKDIqZik7dGhpcy5sZW5ndGg9MDt9aWEucHJvdG90eXBlLmdldFBhcmVudD1mdW5jdGlvbihmKXtyZXR1cm4gMiooKGYtMikvNHwwKX07aWEucHJvdG90eXBlLnB1c2g9ZnVuY3Rpb24oZixkKXt2YXIgYyxlLGI9dGhpcy5idWZmZXIsYTtjPXRoaXMubGVuZ3RoO2JbdGhpcy5sZW5ndGgrK109ZDtmb3IoYlt0aGlzLmxlbmd0aCsrXT1mOzA8YzspaWYoZT10aGlzLmdldFBhcmVudChjKSxiW2NdPmJbZV0pYT1iW2NdLGJbY109YltlXSxiW2VdPWEsYT1iW2MrMV0sYltjKzFdPWJbZSsxXSxiW2UrMV09YSxjPWU7ZWxzZSBicmVhaztyZXR1cm4gdGhpcy5sZW5ndGh9OwogICAgCWlhLnByb3RvdHlwZS5wb3A9ZnVuY3Rpb24oKXt2YXIgZixkLGM9dGhpcy5idWZmZXIsZSxiLGE7ZD1jWzBdO2Y9Y1sxXTt0aGlzLmxlbmd0aC09MjtjWzBdPWNbdGhpcy5sZW5ndGhdO2NbMV09Y1t0aGlzLmxlbmd0aCsxXTtmb3IoYT0wOzspe2I9MiphKzI7aWYoYj49dGhpcy5sZW5ndGgpYnJlYWs7YisyPHRoaXMubGVuZ3RoJiZjW2IrMl0+Y1tiXSYmKGIrPTIpO2lmKGNbYl0+Y1thXSllPWNbYV0sY1thXT1jW2JdLGNbYl09ZSxlPWNbYSsxXSxjW2ErMV09Y1tiKzFdLGNbYisxXT1lO2Vsc2UgYnJlYWs7YT1iO31yZXR1cm4ge2luZGV4OmYsdmFsdWU6ZCxsZW5ndGg6dGhpcy5sZW5ndGh9fTtmdW5jdGlvbiBrYShmLGQpe3RoaXMuZD1sYTt0aGlzLmk9MDt0aGlzLmlucHV0PUMmJmYgaW5zdGFuY2VvZiBBcnJheT9uZXcgVWludDhBcnJheShmKTpmO3RoaXMuYz0wO2QmJihkLmxhenkmJih0aGlzLmk9ZC5sYXp5KSwibnVtYmVyIj09PXR5cGVvZiBkLmNvbXByZXNzaW9uVHlwZSYmKHRoaXMuZD1kLmNvbXByZXNzaW9uVHlwZSksZC5vdXRwdXRCdWZmZXImJih0aGlzLmE9QyYmZC5vdXRwdXRCdWZmZXIgaW5zdGFuY2VvZiBBcnJheT9uZXcgVWludDhBcnJheShkLm91dHB1dEJ1ZmZlcik6ZC5vdXRwdXRCdWZmZXIpLCJudW1iZXIiPT09dHlwZW9mIGQub3V0cHV0SW5kZXgmJih0aGlzLmM9ZC5vdXRwdXRJbmRleCkpO3RoaXMuYXx8KHRoaXMuYT1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpKTt9dmFyIGxhPTIsbmE9e05PTkU6MCxoOjEsZzpsYSxuOjN9LFQ9W10sVTsKICAgIAlmb3IoVT0wOzI4OD5VO1UrKylzd2l0Y2godyl7Y2FzZSAxNDM+PVU6VC5wdXNoKFtVKzQ4LDhdKTticmVhaztjYXNlIDI1NT49VTpULnB1c2goW1UtMTQ0KzQwMCw5XSk7YnJlYWs7Y2FzZSAyNzk+PVU6VC5wdXNoKFtVLTI1NiswLDddKTticmVhaztjYXNlIDI4Nz49VTpULnB1c2goW1UtMjgwKzE5Miw4XSk7YnJlYWs7ZGVmYXVsdDp0aHJvdyAiaW52YWxpZCBsaXRlcmFsOiAiK1U7fQogICAgCWthLnByb3RvdHlwZS5mPWZ1bmN0aW9uKCl7dmFyIGYsZCxjLGUsYj10aGlzLmlucHV0O3N3aXRjaCh0aGlzLmQpe2Nhc2UgMDpjPTA7Zm9yKGU9Yi5sZW5ndGg7YzxlOyl7ZD1DP2Iuc3ViYXJyYXkoYyxjKzY1NTM1KTpiLnNsaWNlKGMsYys2NTUzNSk7Yys9ZC5sZW5ndGg7dmFyIGE9ZCxnPWM9PT1lLG09bixrPW4scD1uLHQ9bix1PW4sbD10aGlzLmEsaD10aGlzLmM7aWYoQyl7Zm9yKGw9bmV3IFVpbnQ4QXJyYXkodGhpcy5hLmJ1ZmZlcik7bC5sZW5ndGg8PWgrYS5sZW5ndGgrNTspbD1uZXcgVWludDhBcnJheShsLmxlbmd0aDw8MSk7bC5zZXQodGhpcy5hKTt9bT1nPzE6MDtsW2grK109bXwwO2s9YS5sZW5ndGg7cD1+ays2NTUzNiY2NTUzNTtsW2grK109ayYyNTU7bFtoKytdPWs+Pj44JjI1NTtsW2grK109cCYyNTU7bFtoKytdPXA+Pj44JjI1NTtpZihDKWwuc2V0KGEsaCksaCs9YS5sZW5ndGgsbD1sLnN1YmFycmF5KDAsaCk7ZWxzZSB7dD0wO2Zvcih1PWEubGVuZ3RoO3Q8dTsrK3QpbFtoKytdPQogICAgCWFbdF07bC5sZW5ndGg9aDt9dGhpcy5jPWg7dGhpcy5hPWw7fWJyZWFrO2Nhc2UgMTp2YXIgcT1uZXcgSyhDP25ldyBVaW50OEFycmF5KHRoaXMuYS5idWZmZXIpOnRoaXMuYSx0aGlzLmMpO3EuYigxLDEsdyk7cS5iKDEsMix3KTt2YXIgcz1vYSh0aGlzLGIpLHgsZmEsejt4PTA7Zm9yKGZhPXMubGVuZ3RoO3g8ZmE7eCsrKWlmKHo9c1t4XSxLLnByb3RvdHlwZS5iLmFwcGx5KHEsVFt6XSksMjU2PHopcS5iKHNbKyt4XSxzWysreF0sdykscS5iKHNbKyt4XSw1KSxxLmIoc1srK3hdLHNbKyt4XSx3KTtlbHNlIGlmKDI1Nj09PXopYnJlYWs7dGhpcy5hPXEuZmluaXNoKCk7dGhpcy5jPXRoaXMuYS5sZW5ndGg7YnJlYWs7Y2FzZSBsYTp2YXIgQj1uZXcgSyhDP25ldyBVaW50OEFycmF5KHRoaXMuYS5idWZmZXIpOnRoaXMuYSx0aGlzLmMpLHRhLEosTyxQLFEsTGE9WzE2LDE3LDE4LDAsOCw3LDksNiwxMCw1LDExLDQsMTIsMywxMywyLDE0LDEsMTVdLFgsdWEsWSx2YSxnYSxqYT1BcnJheSgxOSksCiAgICAJd2EsUixoYSx5LHhhO3RhPWxhO0IuYigxLDEsdyk7Qi5iKHRhLDIsdyk7Sj1vYSh0aGlzLGIpO1g9cGEodGhpcy5tLDE1KTt1YT1xYShYKTtZPXBhKHRoaXMubCw3KTt2YT1xYShZKTtmb3IoTz0yODY7MjU3PE8mJjA9PT1YW08tMV07Ty0tKTtmb3IoUD0zMDsxPFAmJjA9PT1ZW1AtMV07UC0tKTt2YXIgeWE9Tyx6YT1QLEY9bmV3IChDP1VpbnQzMkFycmF5OkFycmF5KSh5YSt6YSkscixHLHYsWixFPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMzE2KSxELEEsSD1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMTkpO2ZvcihyPUc9MDtyPHlhO3IrKylGW0crK109WFtyXTtmb3Iocj0wO3I8emE7cisrKUZbRysrXT1ZW3JdO2lmKCFDKXtyPTA7Zm9yKFo9SC5sZW5ndGg7cjxaOysrcilIW3JdPTA7fXI9RD0wO2ZvcihaPUYubGVuZ3RoO3I8WjtyKz1HKXtmb3IoRz0xO3IrRzxaJiZGW3IrR109PT1GW3JdOysrRyk7dj1HO2lmKDA9PT1GW3JdKWlmKDM+dilmb3IoOzA8di0tOylFW0QrK109MCwKICAgIAlIWzBdKys7ZWxzZSBmb3IoOzA8djspQT0xMzg+dj92OjEzOCxBPnYtMyYmQTx2JiYoQT12LTMpLDEwPj1BPyhFW0QrK109MTcsRVtEKytdPUEtMyxIWzE3XSsrKTooRVtEKytdPTE4LEVbRCsrXT1BLTExLEhbMThdKyspLHYtPUE7ZWxzZSBpZihFW0QrK109RltyXSxIW0Zbcl1dKyssdi0tLDM+dilmb3IoOzA8di0tOylFW0QrK109RltyXSxIW0Zbcl1dKys7ZWxzZSBmb3IoOzA8djspQT02PnY/djo2LEE+di0zJiZBPHYmJihBPXYtMyksRVtEKytdPTE2LEVbRCsrXT1BLTMsSFsxNl0rKyx2LT1BO31mPUM/RS5zdWJhcnJheSgwLEQpOkUuc2xpY2UoMCxEKTtnYT1wYShILDcpO2Zvcih5PTA7MTk+eTt5KyspamFbeV09Z2FbTGFbeV1dO2ZvcihRPTE5OzQ8USYmMD09PWphW1EtMV07US0tKTt3YT1xYShnYSk7Qi5iKE8tMjU3LDUsdyk7Qi5iKFAtMSw1LHcpO0IuYihRLTQsNCx3KTtmb3IoeT0wO3k8UTt5KyspQi5iKGphW3ldLDMsdyk7eT0wO2Zvcih4YT1mLmxlbmd0aDt5PHhhO3krKylpZihSPQogICAgCWZbeV0sQi5iKHdhW1JdLGdhW1JdLHcpLDE2PD1SKXt5Kys7c3dpdGNoKFIpe2Nhc2UgMTY6aGE9MjticmVhaztjYXNlIDE3OmhhPTM7YnJlYWs7Y2FzZSAxODpoYT03O2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgY29kZTogIitSO31CLmIoZlt5XSxoYSx3KTt9dmFyIEFhPVt1YSxYXSxCYT1bdmEsWV0sSSxDYSwkLG1hLERhLEVhLEZhLEdhO0RhPUFhWzBdO0VhPUFhWzFdO0ZhPUJhWzBdO0dhPUJhWzFdO0k9MDtmb3IoQ2E9Si5sZW5ndGg7STxDYTsrK0kpaWYoJD1KW0ldLEIuYihEYVskXSxFYVskXSx3KSwyNTY8JClCLmIoSlsrK0ldLEpbKytJXSx3KSxtYT1KWysrSV0sQi5iKEZhW21hXSxHYVttYV0sdyksQi5iKEpbKytJXSxKWysrSV0sdyk7ZWxzZSBpZigyNTY9PT0kKWJyZWFrO3RoaXMuYT1CLmZpbmlzaCgpO3RoaXMuYz10aGlzLmEubGVuZ3RoO2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgY29tcHJlc3Npb24gdHlwZSI7fXJldHVybiB0aGlzLmF9OwogICAgCWZ1bmN0aW9uIHJhKGYsZCl7dGhpcy5sZW5ndGg9Zjt0aGlzLms9ZDt9CiAgICAJdmFyIHNhPWZ1bmN0aW9uKCl7ZnVuY3Rpb24gZihiKXtzd2l0Y2godyl7Y2FzZSAzPT09YjpyZXR1cm4gWzI1NyxiLTMsMF07Y2FzZSA0PT09YjpyZXR1cm4gWzI1OCxiLTQsMF07Y2FzZSA1PT09YjpyZXR1cm4gWzI1OSxiLTUsMF07Y2FzZSA2PT09YjpyZXR1cm4gWzI2MCxiLTYsMF07Y2FzZSA3PT09YjpyZXR1cm4gWzI2MSxiLTcsMF07Y2FzZSA4PT09YjpyZXR1cm4gWzI2MixiLTgsMF07Y2FzZSA5PT09YjpyZXR1cm4gWzI2MyxiLTksMF07Y2FzZSAxMD09PWI6cmV0dXJuIFsyNjQsYi0xMCwwXTtjYXNlIDEyPj1iOnJldHVybiBbMjY1LGItMTEsMV07Y2FzZSAxND49YjpyZXR1cm4gWzI2NixiLTEzLDFdO2Nhc2UgMTY+PWI6cmV0dXJuIFsyNjcsYi0xNSwxXTtjYXNlIDE4Pj1iOnJldHVybiBbMjY4LGItMTcsMV07Y2FzZSAyMj49YjpyZXR1cm4gWzI2OSxiLTE5LDJdO2Nhc2UgMjY+PWI6cmV0dXJuIFsyNzAsYi0yMywyXTtjYXNlIDMwPj1iOnJldHVybiBbMjcxLGItMjcsMl07Y2FzZSAzND49YjpyZXR1cm4gWzI3MiwKICAgIAliLTMxLDJdO2Nhc2UgNDI+PWI6cmV0dXJuIFsyNzMsYi0zNSwzXTtjYXNlIDUwPj1iOnJldHVybiBbMjc0LGItNDMsM107Y2FzZSA1OD49YjpyZXR1cm4gWzI3NSxiLTUxLDNdO2Nhc2UgNjY+PWI6cmV0dXJuIFsyNzYsYi01OSwzXTtjYXNlIDgyPj1iOnJldHVybiBbMjc3LGItNjcsNF07Y2FzZSA5OD49YjpyZXR1cm4gWzI3OCxiLTgzLDRdO2Nhc2UgMTE0Pj1iOnJldHVybiBbMjc5LGItOTksNF07Y2FzZSAxMzA+PWI6cmV0dXJuIFsyODAsYi0xMTUsNF07Y2FzZSAxNjI+PWI6cmV0dXJuIFsyODEsYi0xMzEsNV07Y2FzZSAxOTQ+PWI6cmV0dXJuIFsyODIsYi0xNjMsNV07Y2FzZSAyMjY+PWI6cmV0dXJuIFsyODMsYi0xOTUsNV07Y2FzZSAyNTc+PWI6cmV0dXJuIFsyODQsYi0yMjcsNV07Y2FzZSAyNTg9PT1iOnJldHVybiBbMjg1LGItMjU4LDBdO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgbGVuZ3RoOiAiK2I7fX12YXIgZD1bXSxjLGU7Zm9yKGM9MzsyNTg+PWM7YysrKWU9ZihjKSxkW2NdPWVbMl08PDI0fAogICAgCWVbMV08PDE2fGVbMF07cmV0dXJuIGR9KCksSGE9Qz9uZXcgVWludDMyQXJyYXkoc2EpOnNhOwogICAgCWZ1bmN0aW9uIG9hKGYsZCl7ZnVuY3Rpb24gYyhiLGMpe3ZhciBhPWIuayxkPVtdLGU9MCxmO2Y9SGFbYi5sZW5ndGhdO2RbZSsrXT1mJjY1NTM1O2RbZSsrXT1mPj4xNiYyNTU7ZFtlKytdPWY+PjI0O3ZhciBnO3N3aXRjaCh3KXtjYXNlIDE9PT1hOmc9WzAsYS0xLDBdO2JyZWFrO2Nhc2UgMj09PWE6Zz1bMSxhLTIsMF07YnJlYWs7Y2FzZSAzPT09YTpnPVsyLGEtMywwXTticmVhaztjYXNlIDQ9PT1hOmc9WzMsYS00LDBdO2JyZWFrO2Nhc2UgNj49YTpnPVs0LGEtNSwxXTticmVhaztjYXNlIDg+PWE6Zz1bNSxhLTcsMV07YnJlYWs7Y2FzZSAxMj49YTpnPVs2LGEtOSwyXTticmVhaztjYXNlIDE2Pj1hOmc9WzcsYS0xMywyXTticmVhaztjYXNlIDI0Pj1hOmc9WzgsYS0xNywzXTticmVhaztjYXNlIDMyPj1hOmc9WzksYS0yNSwzXTticmVhaztjYXNlIDQ4Pj1hOmc9WzEwLGEtMzMsNF07YnJlYWs7Y2FzZSA2ND49YTpnPVsxMSxhLTQ5LDRdO2JyZWFrO2Nhc2UgOTY+PWE6Zz1bMTIsYS0KICAgIAk2NSw1XTticmVhaztjYXNlIDEyOD49YTpnPVsxMyxhLTk3LDVdO2JyZWFrO2Nhc2UgMTkyPj1hOmc9WzE0LGEtMTI5LDZdO2JyZWFrO2Nhc2UgMjU2Pj1hOmc9WzE1LGEtMTkzLDZdO2JyZWFrO2Nhc2UgMzg0Pj1hOmc9WzE2LGEtMjU3LDddO2JyZWFrO2Nhc2UgNTEyPj1hOmc9WzE3LGEtMzg1LDddO2JyZWFrO2Nhc2UgNzY4Pj1hOmc9WzE4LGEtNTEzLDhdO2JyZWFrO2Nhc2UgMTAyND49YTpnPVsxOSxhLTc2OSw4XTticmVhaztjYXNlIDE1MzY+PWE6Zz1bMjAsYS0xMDI1LDldO2JyZWFrO2Nhc2UgMjA0OD49YTpnPVsyMSxhLTE1MzcsOV07YnJlYWs7Y2FzZSAzMDcyPj1hOmc9WzIyLGEtMjA0OSwxMF07YnJlYWs7Y2FzZSA0MDk2Pj1hOmc9WzIzLGEtMzA3MywxMF07YnJlYWs7Y2FzZSA2MTQ0Pj1hOmc9WzI0LGEtNDA5NywxMV07YnJlYWs7Y2FzZSA4MTkyPj1hOmc9WzI1LGEtNjE0NSwxMV07YnJlYWs7Y2FzZSAxMjI4OD49YTpnPVsyNixhLTgxOTMsMTJdO2JyZWFrO2Nhc2UgMTYzODQ+PQogICAgCWE6Zz1bMjcsYS0xMjI4OSwxMl07YnJlYWs7Y2FzZSAyNDU3Nj49YTpnPVsyOCxhLTE2Mzg1LDEzXTticmVhaztjYXNlIDMyNzY4Pj1hOmc9WzI5LGEtMjQ1NzcsMTNdO2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgZGlzdGFuY2UiO31mPWc7ZFtlKytdPWZbMF07ZFtlKytdPWZbMV07ZFtlKytdPWZbMl07dmFyIGssbTtrPTA7Zm9yKG09ZC5sZW5ndGg7azxtOysraylsW2grK109ZFtrXTtzW2RbMF1dKys7eFtkWzNdXSsrO3E9Yi5sZW5ndGgrYy0xO3U9bnVsbDt9dmFyIGUsYixhLGcsbSxrPXt9LHAsdCx1LGw9Qz9uZXcgVWludDE2QXJyYXkoMipkLmxlbmd0aCk6W10saD0wLHE9MCxzPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMjg2KSx4PW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMzApLGZhPWYuaSx6O2lmKCFDKXtmb3IoYT0wOzI4NT49YTspc1thKytdPTA7Zm9yKGE9MDsyOT49YTspeFthKytdPTA7fXNbMjU2XT0xO2U9MDtmb3IoYj1kLmxlbmd0aDtlPGI7KytlKXthPQogICAgCW09MDtmb3IoZz0zO2E8ZyYmZSthIT09YjsrK2EpbT1tPDw4fGRbZSthXTtrW21dPT09biYmKGtbbV09W10pO3A9a1ttXTtpZighKDA8cS0tKSl7Zm9yKDswPHAubGVuZ3RoJiYzMjc2ODxlLXBbMF07KXAuc2hpZnQoKTtpZihlKzM+PWIpe3UmJmModSwtMSk7YT0wO2ZvcihnPWItZTthPGc7KythKXo9ZFtlK2FdLGxbaCsrXT16LCsrc1t6XTticmVha30wPHAubGVuZ3RoPyh0PUlhKGQsZSxwKSx1P3UubGVuZ3RoPHQubGVuZ3RoPyh6PWRbZS0xXSxsW2grK109eiwrK3Nbel0sYyh0LDApKTpjKHUsLTEpOnQubGVuZ3RoPGZhP3U9dDpjKHQsMCkpOnU/Yyh1LC0xKTooej1kW2VdLGxbaCsrXT16LCsrc1t6XSk7fXAucHVzaChlKTt9bFtoKytdPTI1NjtzWzI1Nl0rKztmLm09cztmLmw9eDtyZXR1cm4gQz9sLnN1YmFycmF5KDAsaCk6bH0KICAgIAlmdW5jdGlvbiBJYShmLGQsYyl7dmFyIGUsYixhPTAsZyxtLGsscCx0PWYubGVuZ3RoO209MDtwPWMubGVuZ3RoO2E6Zm9yKDttPHA7bSsrKXtlPWNbcC1tLTFdO2c9MztpZigzPGEpe2ZvcihrPWE7MzxrO2stLSlpZihmW2Uray0xXSE9PWZbZCtrLTFdKWNvbnRpbnVlIGE7Zz1hO31mb3IoOzI1OD5nJiZkK2c8dCYmZltlK2ddPT09ZltkK2ddOykrK2c7Zz5hJiYoYj1lLGE9Zyk7aWYoMjU4PT09ZylicmVha31yZXR1cm4gbmV3IHJhKGEsZC1iKX0KICAgIAlmdW5jdGlvbiBwYShmLGQpe3ZhciBjPWYubGVuZ3RoLGU9bmV3IGlhKDU3MiksYj1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoYyksYSxnLG0sayxwO2lmKCFDKWZvcihrPTA7azxjO2srKyliW2tdPTA7Zm9yKGs9MDtrPGM7KytrKTA8ZltrXSYmZS5wdXNoKGssZltrXSk7YT1BcnJheShlLmxlbmd0aC8yKTtnPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoZS5sZW5ndGgvMik7aWYoMT09PWEubGVuZ3RoKXJldHVybiBiW2UucG9wKCkuaW5kZXhdPTEsYjtrPTA7Zm9yKHA9ZS5sZW5ndGgvMjtrPHA7KytrKWFba109ZS5wb3AoKSxnW2tdPWFba10udmFsdWU7bT1KYShnLGcubGVuZ3RoLGQpO2s9MDtmb3IocD1hLmxlbmd0aDtrPHA7KytrKWJbYVtrXS5pbmRleF09bVtrXTtyZXR1cm4gYn0KICAgIAlmdW5jdGlvbiBKYShmLGQsYyl7ZnVuY3Rpb24gZShhKXt2YXIgYj1rW2FdW3BbYV1dO2I9PT1kPyhlKGErMSksZShhKzEpKTotLWdbYl07KytwW2FdO312YXIgYj1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKGMpLGE9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGMpLGc9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGQpLG09QXJyYXkoYyksaz1BcnJheShjKSxwPUFycmF5KGMpLHQ9KDE8PGMpLWQsdT0xPDxjLTEsbCxoLHEscyx4O2JbYy0xXT1kO2ZvcihoPTA7aDxjOysraCl0PHU/YVtoXT0wOihhW2hdPTEsdC09dSksdDw8PTEsYltjLTItaF09KGJbYy0xLWhdLzJ8MCkrZDtiWzBdPWFbMF07bVswXT1BcnJheShiWzBdKTtrWzBdPUFycmF5KGJbMF0pO2ZvcihoPTE7aDxjOysraCliW2hdPjIqYltoLTFdK2FbaF0mJihiW2hdPTIqYltoLTFdK2FbaF0pLG1baF09QXJyYXkoYltoXSksa1toXT1BcnJheShiW2hdKTtmb3IobD0wO2w8ZDsrK2wpZ1tsXT1jO2ZvcihxPTA7cTxiW2MtMV07KytxKW1bYy0KICAgIAkxXVtxXT1mW3FdLGtbYy0xXVtxXT1xO2ZvcihsPTA7bDxjOysrbClwW2xdPTA7MT09PWFbYy0xXSYmKC0tZ1swXSwrK3BbYy0xXSk7Zm9yKGg9Yy0yOzA8PWg7LS1oKXtzPWw9MDt4PXBbaCsxXTtmb3IocT0wO3E8YltoXTtxKyspcz1tW2grMV1beF0rbVtoKzFdW3grMV0scz5mW2xdPyhtW2hdW3FdPXMsa1toXVtxXT1kLHgrPTIpOihtW2hdW3FdPWZbbF0sa1toXVtxXT1sLCsrbCk7cFtoXT0wOzE9PT1hW2hdJiZlKGgpO31yZXR1cm4gZ30KICAgIAlmdW5jdGlvbiBxYShmKXt2YXIgZD1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKGYubGVuZ3RoKSxjPVtdLGU9W10sYj0wLGEsZyxtLGs7YT0wO2ZvcihnPWYubGVuZ3RoO2E8ZzthKyspY1tmW2FdXT0oY1tmW2FdXXwwKSsxO2E9MTtmb3IoZz0xNjthPD1nO2ErKyllW2FdPWIsYis9Y1thXXwwLGI8PD0xO2E9MDtmb3IoZz1mLmxlbmd0aDthPGc7YSsrKXtiPWVbZlthXV07ZVtmW2FdXSs9MTttPWRbYV09MDtmb3Ioaz1mW2FdO208azttKyspZFthXT1kW2FdPDwxfGImMSxiPj4+PTE7fXJldHVybiBkfWZ1bmN0aW9uIEthKGYsZCl7dGhpcy5pbnB1dD1mO3RoaXMuYT1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpO3RoaXMuZD1WLmc7dmFyIGM9e30sZTtpZigoZHx8IShkPXt9KSkmJiJudW1iZXIiPT09dHlwZW9mIGQuY29tcHJlc3Npb25UeXBlKXRoaXMuZD1kLmNvbXByZXNzaW9uVHlwZTtmb3IoZSBpbiBkKWNbZV09ZFtlXTtjLm91dHB1dEJ1ZmZlcj10aGlzLmE7dGhpcy5qPW5ldyBrYSh0aGlzLmlucHV0LGMpO312YXIgVj1uYTsKICAgIAlLYS5wcm90b3R5cGUuZj1mdW5jdGlvbigpe3ZhciBmLGQsYyxlLGIsYSxnPTA7YT10aGlzLmE7c3dpdGNoKDgpe2Nhc2UgODpmPU1hdGguTE9HMkUqTWF0aC5sb2coMzI3NjgpLTg7YnJlYWs7ZGVmYXVsdDp0aHJvdyBFcnJvcigiaW52YWxpZCBjb21wcmVzc2lvbiBtZXRob2QiKTt9ZD1mPDw0fDg7YVtnKytdPWQ7c3dpdGNoKDgpe2Nhc2UgODpzd2l0Y2godGhpcy5kKXtjYXNlIFYuTk9ORTplPTA7YnJlYWs7Y2FzZSBWLmg6ZT0xO2JyZWFrO2Nhc2UgVi5nOmU9MjticmVhaztkZWZhdWx0OnRocm93IEVycm9yKCJ1bnN1cHBvcnRlZCBjb21wcmVzc2lvbiB0eXBlIik7fWJyZWFrO2RlZmF1bHQ6dGhyb3cgRXJyb3IoImludmFsaWQgY29tcHJlc3Npb24gbWV0aG9kIik7fWM9ZTw8NnwwO2FbZysrXT1jfDMxLSgyNTYqZCtjKSUzMTt2YXIgbT10aGlzLmlucHV0O2lmKCJzdHJpbmciPT09dHlwZW9mIG0pe3ZhciBrPW0uc3BsaXQoIiIpLHAsdDtwPTA7Zm9yKHQ9ay5sZW5ndGg7cDx0O3ArKylrW3BdPQogICAgCShrW3BdLmNoYXJDb2RlQXQoMCkmMjU1KT4+PjA7bT1rO31mb3IodmFyIHU9MSxsPTAsaD1tLmxlbmd0aCxxLHM9MDswPGg7KXtxPTEwMjQ8aD8xMDI0Omg7aC09cTtkbyB1Kz1tW3MrK10sbCs9dTt3aGlsZSgtLXEpO3UlPTY1NTIxO2wlPTY1NTIxO31iPShsPDwxNnx1KT4+PjA7dGhpcy5qLmM9ZzthPXRoaXMuai5mKCk7Zz1hLmxlbmd0aDtDJiYoYT1uZXcgVWludDhBcnJheShhLmJ1ZmZlciksYS5sZW5ndGg8PWcrNCYmKHRoaXMuYT1uZXcgVWludDhBcnJheShhLmxlbmd0aCs0KSx0aGlzLmEuc2V0KGEpLGE9dGhpcy5hKSxhPWEuc3ViYXJyYXkoMCxnKzQpKTthW2crK109Yj4+MjQmMjU1O2FbZysrXT1iPj4xNiYyNTU7YVtnKytdPWI+PjgmMjU1O2FbZysrXT1iJjI1NTtyZXR1cm4gYX07YmEoIlpsaWIuRGVmbGF0ZSIsS2EpO2JhKCJabGliLkRlZmxhdGUuY29tcHJlc3MiLGZ1bmN0aW9uKGYsZCl7cmV0dXJuIChuZXcgS2EoZixkKSkuZigpfSk7YmEoIlpsaWIuRGVmbGF0ZS5wcm90b3R5cGUuY29tcHJlc3MiLEthLnByb3RvdHlwZS5mKTt2YXIgTWE9e05PTkU6Vi5OT05FLEZJWEVEOlYuaCxEWU5BTUlDOlYuZ30sTmEsT2EsVyxQYTtpZihPYmplY3Qua2V5cylOYT1PYmplY3Qua2V5cyhNYSk7ZWxzZSBmb3IoT2EgaW4gTmE9W10sVz0wLE1hKU5hW1crK109T2E7Vz0wO2ZvcihQYT1OYS5sZW5ndGg7VzxQYTsrK1cpT2E9TmFbV10sYmEoIlpsaWIuRGVmbGF0ZS5Db21wcmVzc2lvblR5cGUuIitPYSxNYVtPYV0pO30pLmNhbGwobW9kdWxlLmV4cG9ydHMpOyAKICAgIH0gKGRlZmxhdGVfbWluKSk7CgogICAgdmFyIGRlZmxhdGVfbWluRXhwb3J0cyA9IGRlZmxhdGVfbWluLmV4cG9ydHM7CiAgICB2YXIgWkxpYkRlZmxhdGUgPSAvKkBfX1BVUkVfXyovZ2V0RGVmYXVsdEV4cG9ydEZyb21DanMoZGVmbGF0ZV9taW5FeHBvcnRzKTsKCiAgICBmdW5jdGlvbiB0b1VURjhBcnJheShzdHIpIHsKICAgICAgICB2YXIgdXRmOCA9IFtdOwogICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgc3RyLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIHZhciBjaGFyY29kZSA9IHN0ci5jaGFyQ29kZUF0KGkpOwogICAgICAgICAgICBpZiAoY2hhcmNvZGUgPCAweDgwKQogICAgICAgICAgICAgICAgdXRmOC5wdXNoKGNoYXJjb2RlKTsKICAgICAgICAgICAgZWxzZSBpZiAoY2hhcmNvZGUgPCAweDgwMCkgewogICAgICAgICAgICAgICAgdXRmOC5wdXNoKDB4YzAgfCAoY2hhcmNvZGUgPj4gNiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSBpZiAoY2hhcmNvZGUgPCAweGQ4MDAgfHwgY2hhcmNvZGUgPj0gMHhlMDAwKSB7CiAgICAgICAgICAgICAgICB1dGY4LnB1c2goMHhlMCB8IChjaGFyY29kZSA+PiAxMiksIDB4ODAgfCAoKGNoYXJjb2RlID4+IDYpICYgMHgzZiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSB7CiAgICAgICAgICAgICAgICAvLyBzdXJyb2dhdGUgcGFpcgogICAgICAgICAgICAgICAgaSsrOwogICAgICAgICAgICAgICAgLy8gVVRGLTE2IGVuY29kZXMgMHgxMDAwMC0weDEwRkZGRiBieQogICAgICAgICAgICAgICAgLy8gc3VidHJhY3RpbmcgMHgxMDAwMCBhbmQgc3BsaXR0aW5nIHRoZQogICAgICAgICAgICAgICAgLy8gMjAgYml0cyBvZiAweDAtMHhGRkZGRiBpbnRvIHR3byBoYWx2ZXMKICAgICAgICAgICAgICAgIGNoYXJjb2RlID0gMHgxMDAwMCArICgoKGNoYXJjb2RlICYgMHgzZmYpIDw8IDEwKSB8CiAgICAgICAgICAgICAgICAgICAgKHN0ci5jaGFyQ29kZUF0KGkpICYgMHgzZmYpKTsKICAgICAgICAgICAgICAgIHV0ZjgucHVzaCgweGYwIHwgKGNoYXJjb2RlID4+IDE4KSwgMHg4MCB8ICgoY2hhcmNvZGUgPj4gMTIpICYgMHgzZiksIDB4ODAgfCAoKGNoYXJjb2RlID4+IDYpICYgMHgzZiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIHV0Zjg7CiAgICB9CgogICAgdmFyIFpsaWIgPSB7CiAgICAgICAgJ0RlZmxhdGUnOiBaTGliRGVmbGF0ZS5abGliLkRlZmxhdGUKICAgIH07CiAgICB2YXIgRW5jb2RpbmcgPSB7CiAgICAgICAgJ2Jhc2U2NFVybCc6ICdiYXNlNjR1cmwnLAogICAgICAgICdiaW5hcnknOiAnYmluYXJ5JwogICAgfTsKICAgIGZ1bmN0aW9uIGNvbXByZXNzKGpzb25fb2JqLCBlbmNvZGluZykgewogICAgICAgIGlmICghZW5jb2RpbmcpIHsKICAgICAgICAgICAgZW5jb2RpbmcgPSBFbmNvZGluZy5iYXNlNjRVcmw7CiAgICAgICAgfQogICAgICAgIC8qIC0tIFRoaXMgaXMgWkxJQiAqLwogICAgICAgIHZhciBjb21wcmVzc0RhdGEgPSB0b1VURjhBcnJheSh0eXBlb2YganNvbl9vYmogPT09ICdzdHJpbmcnID8ganNvbl9vYmogOiBKU09OLnN0cmluZ2lmeShqc29uX29iaikpOwogICAgICAgIHZhciBkZWZsYXRlID0gbmV3IFpsaWIuRGVmbGF0ZShjb21wcmVzc0RhdGEpOwogICAgICAgIHZhciBjb21wcmVzc2VkQnl0ZXMgPSBkZWZsYXRlLmNvbXByZXNzKCk7CiAgICAgICAgaWYgKGVuY29kaW5nID09PSBFbmNvZGluZy5iYXNlNjRVcmwpIHsKICAgICAgICAgICAgcmV0dXJuIGI2NC51aW50OFRvQmFzZTY0KGNvbXByZXNzZWRCeXRlcyk7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICByZXR1cm4gY29tcHJlc3NlZEJ5dGVzOwogICAgICAgIH0KICAgIH0KCiAgICB2YXIgT05FX0hVTkRSRURfTUJfSU5fQllURVMgPSAxMDAgKiAxMDI0ICogMTAyNDsKICAgIGZ1bmN0aW9uIG1hdGNoSG9zdGVkUmVzb3VyY2VzKHJlY29yZGluZ0V2ZW50LCBzdHJpbmdpZmllZFJlY29yZGluZ1BheWxvYWQpIHsKICAgICAgICB2YXIgZm9udFVSTFJlZ2V4ID0gL2h0dHBzOlwvXC9bXlxzXSs/XC4od29mZnx3b2ZmMnx0dGZ8b3RmfGVvdClcYi9nOwogICAgICAgIHZhciBob3N0ZWRSZXNvdXJjZXMgPSBzdHJpbmdpZmllZFJlY29yZGluZ1BheWxvYWQubWF0Y2goZm9udFVSTFJlZ2V4KTsKICAgICAgICByZXR1cm4gewogICAgICAgICAgICAndHlwZSc6ICdyZWNvcmRpbmcnLAogICAgICAgICAgICAndmlzaXRvcklkJzogcmVjb3JkaW5nRXZlbnQudmlzaXRvcklkLAogICAgICAgICAgICAnYWNjb3VudElkJzogcmVjb3JkaW5nRXZlbnQuYWNjb3VudElkLAogICAgICAgICAgICAna2V5RnJhbWUnOiBmYWxzZSwKICAgICAgICAgICAgJ2xhc3RLZXlGcmFtZSc6IHJlY29yZGluZ0V2ZW50Lmxhc3RLZXlGcmFtZSwKICAgICAgICAgICAgJ3JlY29yZGluZ0lkJzogcmVjb3JkaW5nRXZlbnQucmVjb3JkaW5nSWQsCiAgICAgICAgICAgICdyZWNvcmRpbmdTZXNzaW9uSWQnOiByZWNvcmRpbmdFdmVudC5yZWNvcmRpbmdTZXNzaW9uSWQsCiAgICAgICAgICAgICd1cmwnOiByZWNvcmRpbmdFdmVudC51cmwsCiAgICAgICAgICAgICdzdWJUeXBlJzogJ2hvc3RlZFJlc291cmNlcycsCiAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkJzogW10sCiAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkTWV0YWRhdGEnOiBbXSwKICAgICAgICAgICAgJ3NlcXVlbmNlJzogMCwKICAgICAgICAgICAgJ3JlY29yZGluZ1BheWxvYWRDb3VudCc6IDAsCiAgICAgICAgICAgICdob3N0ZWRSZXNvdXJjZXMnOiBob3N0ZWRSZXNvdXJjZXMgfHwgW10KICAgICAgICB9OwogICAgfQogICAgLy8ga2VlcCBpbiBtaW5kIGNoYW5nZXMgaGVyZSBtYXkgbmVlZCBhZGRyZXNzaW5nIGluIHRoZSBleHRlbnNpb24gd29ya2VyIHByb3h5IGFzIHdlbGwKICAgIHNlbGYub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBpZiAoZS5kYXRhLnVybCAmJiBlLmRhdGEucGF5bG9hZCkgewogICAgICAgICAgICAgICAgdmFyIF9hID0gZS5kYXRhLCB1cmwgPSBfYS51cmwsIHBheWxvYWQgPSBfYS5wYXlsb2FkLCBzaG91bGRDYWNoZVJlc291cmNlcyA9IF9hLnNob3VsZENhY2hlUmVzb3VyY2VzOwogICAgICAgICAgICAgICAgdmFyIHNlcXVlbmNlXzEgPSBwYXlsb2FkLnNlcXVlbmNlOwogICAgICAgICAgICAgICAgdmFyIHN0cmluZ2lmaWVkUmVjb3JkaW5nUGF5bG9hZCA9IEpTT04uc3RyaW5naWZ5KHBheWxvYWQucmVjb3JkaW5nUGF5bG9hZCk7CiAgICAgICAgICAgICAgICAvLyBjYWxjdWxhdGUgYW5kIHBvc3QgYmFjayB0aGUgcmVjb3JkaW5nIHBheWxvYWQgc2l6ZSBiZWZvcmUgdGhlIHBheWxvYWQgaXMgY29tcHJlc3NlZAogICAgICAgICAgICAgICAgdmFyIHJlY29yZGluZ1BheWxvYWRTaXplID0gbmV3IFRleHRFbmNvZGVyKCkuZW5jb2RlKHN0cmluZ2lmaWVkUmVjb3JkaW5nUGF5bG9hZCkubGVuZ3RoOwogICAgICAgICAgICAgICAgdmFyIGV4Y2VlZHNQYXlsb2FkU2l6ZUxpbWl0ID0gcmVjb3JkaW5nUGF5bG9hZFNpemUgPj0gT05FX0hVTkRSRURfTUJfSU5fQllURVM7CiAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgJ3R5cGUnOiAncmVjb3JkaW5nUGF5bG9hZFNpemUnLAogICAgICAgICAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkU2l6ZSc6IHJlY29yZGluZ1BheWxvYWRTaXplLAogICAgICAgICAgICAgICAgICAgICdleGNlZWRzUGF5bG9hZFNpemVMaW1pdCc6IGV4Y2VlZHNQYXlsb2FkU2l6ZUxpbWl0CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIC8vIGRvbid0IGF0dGVtcHQgdG8gc2VuZCB0aGUgcGF5bG9hZCBpZiBpdCBleGNlZWRzIHRoZSBhbGxvd2VkIGxpbWl0CiAgICAgICAgICAgICAgICBpZiAoZXhjZWVkc1BheWxvYWRTaXplTGltaXQpCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgaWYgKHNob3VsZENhY2hlUmVzb3VyY2VzKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGhvc3RlZFJlc291cmNlc0V2ZW50ID0gbWF0Y2hIb3N0ZWRSZXNvdXJjZXMocGF5bG9hZCwgc3RyaW5naWZpZWRSZWNvcmRpbmdQYXlsb2FkKTsKICAgICAgICAgICAgICAgICAgICBpZiAoaG9zdGVkUmVzb3VyY2VzRXZlbnQuaG9zdGVkUmVzb3VyY2VzLmxlbmd0aCkgewogICAgICAgICAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAndHlwZSc6ICdob3N0ZWRSZXNvdXJjZXMnLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2hvc3RlZFJlc291cmNlc0V2ZW50JzogaG9zdGVkUmVzb3VyY2VzRXZlbnQKICAgICAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgcGF5bG9hZC5yZWNvcmRpbmdTaXplID0gcmVjb3JkaW5nUGF5bG9hZFNpemU7CiAgICAgICAgICAgICAgICB2YXIgYm9keSA9IGNvbXByZXNzKHBheWxvYWQsICdiaW5hcnknKTsKICAgICAgICAgICAgICAgIC8vIHdlIHdhbnQgdG8gY2FsY3VsYXRlIGN0IChjdXJyZW50IHRpbWUpIGFzIGNsb3NlIGFzIHdlIGNhbiB0byB0aGUgYWN0dWFsIFBPU1QgcmVxdWVzdAogICAgICAgICAgICAgICAgLy8gc28gdGhhdCBpdCdzIGFzIGFjY3VyYXRlIGFzIHBvc3NpYmxlCiAgICAgICAgICAgICAgICB1cmwgPSAiIi5jb25jYXQodXJsLCAiJmN0PSIpLmNvbmNhdChuZXcgRGF0ZSgpLmdldFRpbWUoKSk7CiAgICAgICAgICAgICAgICBmZXRjaCh1cmwsIHsKICAgICAgICAgICAgICAgICAgICAnbWV0aG9kJzogJ1BPU1QnLAogICAgICAgICAgICAgICAgICAgICdib2R5JzogYm9keQogICAgICAgICAgICAgICAgfSkudGhlbihmdW5jdGlvbiAocmVzcG9uc2UpIHsKICAgICAgICAgICAgICAgICAgICBpZiAocmVzcG9uc2Uuc3RhdHVzIDwgMjAwIHx8IHJlc3BvbnNlLnN0YXR1cyA+PSAzMDApIHsKICAgICAgICAgICAgICAgICAgICAgICAgcG9zdE1lc3NhZ2UoewogICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2Vycm9yJzogbmV3IEVycm9yKCJyZWNlaXZlZCBzdGF0dXMgY29kZSAiLmNvbmNhdChyZXNwb25zZS5zdGF0dXMsICI6ICIpLmNvbmNhdChyZXNwb25zZS5zdGF0dXNUZXh0KSksCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnc3RhdHVzJzogcmVzcG9uc2Uuc3RhdHVzLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VxdWVuY2U6IHNlcXVlbmNlXzEKICAgICAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXF1ZW5jZTogc2VxdWVuY2VfMQogICAgICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KVsnY2F0Y2gnXShmdW5jdGlvbiAoZSkgewogICAgICAgICAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgICAgICAgICAgJ2Vycm9yJzogZSwKICAgICAgICAgICAgICAgICAgICAgICAgc2VxdWVuY2U6IHNlcXVlbmNlXzEKICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGNhdGNoIChlKSB7CiAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgICdlcnJvcic6IGUKICAgICAgICAgICAgfSk7CiAgICAgICAgfQogICAgfTsKCiAgICBleHBvcnRzLm1hdGNoSG9zdGVkUmVzb3VyY2VzID0gbWF0Y2hIb3N0ZWRSZXNvdXJjZXM7CgogICAgcmV0dXJuIGV4cG9ydHM7Cgp9KSh7fSk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPXdvcmtlci5qcy5tYXAKCg==",null,!(SessionRecorder.prototype.handleTabIdChange=function(){this.send(),this.clearSessionInfo(),this.snapshot()}));function createReplayPlugin(){return errorLogger(new SessionRecorder(record,WorkerFactory))}export{Feedback,GuideMarkdown,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};
|
|
4
|
+
function loadAgent(h){P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("");var P,G={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 P[e>>18&63]+P[e>>12&63]+P[e>>6&63]+P[63&e]}(n);switch(r){case 1:n=e[e.length-1],o=(o+=P[n>>2])+P[n<<4&63];break;case 2:n=(e[e.length-2]<<8)+e[e.length-1],o=(o=(o+=P[n>>10])+P[n>>4&63])+P[n<<2&63]}return o}},Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function D(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var B,o,W,$,U,j,z,e={exports:{}};function Z(e){e?(j[0]=j[16]=j[1]=j[2]=j[3]=j[4]=j[5]=j[6]=j[7]=j[8]=j[9]=j[10]=j[11]=j[12]=j[13]=j[14]=j[15]=0,this.blocks=j):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}dt=e,B="object"==typeof window?window:{},i=!B.JS_SHA1_NO_COMMON_JS&&dt.exports,o="0123456789abcdef".split(""),W=[-2147483648,8388608,32768,128],$=[24,16,8,0],U=["hex","array","digest","arrayBuffer"],j=[],z=function(t){return function(e){return new Z(!0).update(e)[t]()}},Z.prototype.update=function(e){if(!this.finalized){for(var t,n,i="string"!=typeof e,r=0,o=(e=i&&e.constructor===B.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]<<$[3&n++];else for(n=this.start;r<o&&n<64;++r)(t=e.charCodeAt(r))<128?a[n>>2]|=t<<$[3&n++]:(t<2048?a[n>>2]|=(192|t>>6)<<$[3&n++]:(t<55296||57344<=t?a[n>>2]|=(224|t>>12)<<$[3&n++]:(t=65536+((1023&t)<<10|1023&e.charCodeAt(++r)),a[n>>2]|=(240|t>>18)<<$[3&n++],a[n>>2]|=(128|t>>12&63)<<$[3&n++]),a[n>>2]|=(128|t>>6&63)<<$[3&n++]),a[n>>2]|=(128|63&t)<<$[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}},Z.prototype.finalize=function(){var e,t;this.finalized||(this.finalized=!0,e=this.blocks,t=this.lastByteIndex,e[16]=this.block,e[t>>2]|=W[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())},Z.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},Z.prototype.toString=Z.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]},Z.prototype.array=Z.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]},Z.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},Qe=function(){var t=z("hex");t.create=function(){return new Z},t.update=function(e){return t.create().update(e)};for(var e=0;e<U.length;++e){var n=U[e];t[n]=z(n)}return t}(),i?dt.exports=Qe:B.sha1=Qe;var V,Y=D(e.exports),H={createScriptURL:function(e){return e},createHTML:function(e){return e}};function K(e){return V||(V=e.trustedTypesPolicy||(window.trustedTypes&&"function"==typeof window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("pendo",H):H),e.trustedTypesPolicy=V),V}var v,X="stagingServerHashes",J={};function q(e){return e.loadAsModule}function Q(e){return"staging"===e.environmentName}function ee(e){return"extension"===e.installType}function te(e,t){void 0===e&&(e=[]);for(var n=/^https:\/\/[\w\-.]*cdn[\w\-.]*\.(pendo-dev\.com|pendo\.io)\/agent\/static\/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12}|PENDO_API_KEY)\/pendo\.js$/g,i=0;i<e.length;i++){var r=e[i];if(n.test(r.src)||r.id==="pendo-".concat(t))return r}}function ne(e,t,n){e=function(e){if(e=te(e=void 0===e?[]:e))return e.src.replace(/\.js$/,"-staging.js")}(document.getElementsByTagName("script"))||e.stagingAgentUrl;return n&&(n="unminified.js",t&&(n="staging-"+n),e=e&&e.replace(/staging\.js$/,n)),e}function ie(e,t){if(Q(e=e||J))return!0;if(t=t||window.location,(o=e)&&o.stagingAgentUrl&&o[X]){o=t.host;for(var n=G.uint8ToBase64(Y.create().update(o).digest()),i=0,r=e[X].length;i<r;++i)if(e[X][i]===n)return!0}var o;if((o=e)&&o.stagingAgentUrl&&o.stagingServers)for(var a=0,s=e.stagingServers.length;a<s;++a){var d=e.stagingServers[a];if((d="string"==typeof d?new RegExp("^"+d+"$"):d)instanceof RegExp&&d.test(t.host))return!0}return!1}var re=["initialize","identify","updateOptions","pageLoad","track","clearSession"];function oe(e,t,n){(e._q=e._q||[])["initialize"===t?"unshift":"push"]([].concat.apply([t],n))}function ae(e){if(!e._q)for(var t=re,n=0,i=t.length;n<i;++n)!function(e,t){t[e]=t[e]||function(){oe(t,e,arguments)}}(t[n],e)}function se(e,t,n){if(!ee(i=e)&&!Q(i)&&ie(i)){i=ne(e,!0,n);if(i)return ae(t),ue(i,t),!0}var i;return!1}function de(e,t,n){if(r=n,!ee(i=e)&&!i.unminified&&r){i=ne(e,!1,n);if(i)return ae(t),ue(i,t),!0}var i,r;return!1}function ue(e,t){var n=document.createElement("script"),t=(n["async"]=!0,n.src=K(t).createScriptURL(e),document.getElementsByTagName("script")[0]);t&&t.parentNode?t.parentNode.insertBefore(n,t):(document.head||document.body).appendChild(n)}function ce(e){J=e}function le(){return void 0===h?{}:h}function pe(e){return J[e]}he(window.setTimeout,window);function he(e,t){return"function"==typeof e.bind?e.bind(t):e}var fe,Dt=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 he(e[t],e)}(window),y=D(function(){var e="object"==typeof self&&self.self===self&&self||"object"==typeof Bt&&Bt.global===Bt&&Bt||Function("return this")()||{},i=Array.prototype,P=Object.prototype,G="undefined"!=typeof Symbol?Symbol.prototype:null,D=i.push,d=i.slice,l=P.toString,B=P.hasOwnProperty,t="undefined"!=typeof ArrayBuffer,n="undefined"!=typeof DataView&&/\[native code\]/.test(String(DataView)),W=Array.isArray,$=Object.keys,U=Object.create,j=t&&ArrayBuffer.isView,z=isNaN,Z=isFinite,V=!{toString:null}.propertyIsEnumerable("toString"),Y=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],H=Math.pow(2,53)-1;function c(r,o){return o=null==o?r.length-1:+o,function(){for(var e=Math.max(arguments.length-o,0),t=Array(e),n=0;n<e;n++)t[n]=arguments[n+o];switch(o){case 0:return r.call(this,t);case 1:return r.call(this,arguments[0],t);case 2:return r.call(this,arguments[0],arguments[1],t)}for(var i=Array(o+1),n=0;n<o;n++)i[n]=arguments[n];return i[o]=t,r.apply(this,i)}}function o(e){var t=typeof e;return"function"==t||"object"==t&&!!e}function K(e){return void 0===e}function X(e){return!0===e||!1===e||"[object Boolean]"===l.call(e)}function r(e){var t="[object "+e+"]";return function(e){return l.call(e)===t}}var J=r("String"),q=r("Number"),Q=r("Date"),ee=r("RegExp"),te=r("Error"),ne=r("Symbol"),ie=r("ArrayBuffer"),a=r("Function"),e=e.document&&e.document.childNodes,p=a="function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof e?function(e){return"function"==typeof e||!1}:a,e=r("Object"),re=n&&e(new DataView(new ArrayBuffer(8))),a="undefined"!=typeof Map&&e(new Map),n=r("DataView");var h=re?function(e){return null!=e&&p(e.getInt8)&&ie(e.buffer)}:n,f=W||r("Array");function g(e,t){return null!=e&&B.call(e,t)}var oe=r("Arguments"),ae=(!function(){oe(arguments)||(oe=function(e){return g(e,"callee")})}(),oe);function se(e){return q(e)&&z(e)}function de(e){return function(){return e}}function ue(t){return function(e){e=t(e);return"number"==typeof e&&0<=e&&e<=H}}function ce(t){return function(e){return null==e?void 0:e[t]}}var m=ce("byteLength"),le=ue(m),pe=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var he=t?function(e){return j?j(e)&&!h(e):le(e)&&pe.test(l.call(e))}:de(!1),v=ce("length");function fe(e,t){t=function(t){for(var n={},e=t.length,i=0;i<e;++i)n[t[i]]=!0;return{contains:function(e){return!0===n[e]},push:function(e){return n[e]=!0,t.push(e)}}}(t);var n=Y.length,i=e.constructor,r=p(i)&&i.prototype||P,o="constructor";for(g(e,o)&&!t.contains(o)&&t.push(o);n--;)(o=Y[n])in e&&e[o]!==r[o]&&!t.contains(o)&&t.push(o)}function y(e){if(!o(e))return[];if($)return $(e);var t,n=[];for(t in e)g(e,t)&&n.push(t);return V&&fe(e,n),n}function ge(e,t){var n=y(t),i=n.length;if(null==e)return!i;for(var r=Object(e),o=0;o<i;o++){var a=n[o];if(t[a]!==r[a]||!(a in r))return!1}return!0}function b(e){return e instanceof b?e:this instanceof b?void(this._wrapped=e):new b(e)}function me(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,m(e))}b.VERSION="1.13.6",b.prototype.valueOf=b.prototype.toJSON=b.prototype.value=function(){return this._wrapped},b.prototype.toString=function(){return String(this._wrapped)};var ve="[object DataView]";function ye(e,t,n,i){var r;return e===t?0!==e||1/e==1/t:null!=e&&null!=t&&(e!=e?t!=t:("function"==(r=typeof e)||"object"==r||"object"==typeof t)&&function c(e,t,n,i){e instanceof b&&(e=e._wrapped);t instanceof b&&(t=t._wrapped);var r=l.call(e);if(r!==l.call(t))return!1;if(re&&"[object Object]"==r&&h(e)){if(!h(t))return!1;r=ve}switch(r){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return G.valueOf.call(e)===G.valueOf.call(t);case"[object ArrayBuffer]":case ve:return c(me(e),me(t),n,i)}r="[object Array]"===r;if(!r&&he(e)){var o=m(e);if(o!==m(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var o=e.constructor,a=t.constructor;if(o!==a&&!(p(o)&&o instanceof o&&p(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[];i=i||[];var s=n.length;for(;s--;)if(n[s]===e)return i[s]===t;n.push(e);i.push(t);if(r){if((s=e.length)!==t.length)return!1;for(;s--;)if(!ye(e[s],t[s],n,i))return!1}else{var d,u=y(e);if(s=u.length,y(t).length!==s)return!1;for(;s--;)if(d=u[s],!g(t,d)||!ye(e[d],t[d],n,i))return!1}n.pop();i.pop();return!0}(e,t,n,i))}function u(e){if(!o(e))return[];var t,n=[];for(t in e)n.push(t);return V&&fe(e,n),n}function be(i){var r=v(i);return function(e){if(null==e)return!1;var t=u(e);if(v(t))return!1;for(var n=0;n<r;n++)if(!p(e[i[n]]))return!1;return i!==we||!p(e[Ie])}}var Ie="forEach",e=["clear","delete"],n=["get","has","set"],W=e.concat(Ie,n),we=e.concat(n),t=["add"].concat(e,Ie,"has"),n=a?be(W):r("Map"),e=a?be(we):r("WeakMap"),W=a?be(t):r("Set"),a=r("WeakSet");function I(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=e[t[r]];return i}function Ce(e){for(var t={},n=y(e),i=0,r=n.length;i<r;i++)t[e[n[i]]]=n[i];return t}function Se(e){var t,n=[];for(t in e)p(e[t])&&n.push(t);return n.sort()}function Ae(d,u){return function(e){var t=arguments.length;if(u&&(e=Object(e)),!(t<2||null==e))for(var n=1;n<t;n++)for(var i=arguments[n],r=d(i),o=r.length,a=0;a<o;a++){var s=r[a];u&&void 0!==e[s]||(e[s]=i[s])}return e}}var Ee=Ae(u),s=Ae(y),Te=Ae(u,!0);function _e(e){var t;return o(e)?U?U(e):((t=function(){}).prototype=e,e=new t,t.prototype=null,e):{}}function xe(e){return f(e)?e:[e]}function w(e){return b.toPath(e)}function Re(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function ke(e,t,n){e=Re(e,w(t));return K(e)?n:e}function Oe(e){return e}function C(t){return t=s({},t),function(e){return ge(e,t)}}function Ne(t){return t=w(t),function(e){return Re(e,t)}}function S(r,o,e){if(void 0===o)return r;switch(null==e?3:e){case 1:return function(e){return r.call(o,e)};case 3:return function(e,t,n){return r.call(o,e,t,n)};case 4:return function(e,t,n,i){return r.call(o,e,t,n,i)}}return function(){return r.apply(o,arguments)}}function Me(e,t,n){return null==e?Oe:p(e)?S(e,t,n):(o(e)&&!f(e)?C:Ne)(e)}function Le(e,t){return Me(e,t,Infinity)}function A(e,t,n){return b.iteratee!==Le?b.iteratee(e,t):Me(e,t,n)}function Fe(){}function Pe(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}b.toPath=xe,b.iteratee=Le;var E=Date.now||function(){return(new Date).getTime()};function Ge(t){var n=function(e){return t[e]},e="(?:"+y(t).join("|")+")",i=RegExp(e),r=RegExp(e,"g");return function(e){return i.test(e=null==e?"":""+e)?e.replace(r,n):e}}var t={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},De=Ge(t),t=Ge(Ce(t)),Be=b.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},We=/(.)^/,$e={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Ue=/\\|'|\r|\n|\u2028|\u2029/g;function je(e){return"\\"+$e[e]}var ze=/^\s*(\w|\$)+\s*$/;var Ze=0;function Ve(e,t,n,i,r){return i instanceof t?(i=_e(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}),Ye=(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")})),_=ue(v);function x(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=Infinity;for(var r=i.length,o=0,a=v(e);o<a;o++){var s=e[o];if(_(s)&&(f(s)||ae(s)))if(1<t)x(s,t-1,n,i),r=i.length;else for(var d=0,u=s.length;d<u;)i[r++]=s[d++];else n||(i[r++]=s)}return i}var He=c(function(e,t){var n=(t=x(t,!1,!1)).length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=Ye(e[i],e)}return e});var Ke=c(function(e,t,n){return Dt(function(){return e.apply(null,n)},t)}),Xe=T(Ke,b,1);function Je(e){return function(){return!e.apply(this,arguments)}}function qe(e,t){var n;return function(){return 0<--e&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var Qe=T(qe,2);function et(e,t,n){t=A(t,n);for(var i,r=y(e),o=0,a=r.length;o<a;o++)if(t(e[i=r[o]],i,e))return i}function tt(o){return function(e,t,n){t=A(t,n);for(var i=v(e),r=0<o?0:i-1;0<=r&&r<i;r+=o)if(t(e[r],r,e))return r;return-1}}var nt=tt(1),it=tt(-1);function rt(e,t,n,i){for(var r=(n=A(n,i,1))(t),o=0,a=v(e);o<a;){var s=Math.floor((o+a)/2);n(e[s])<r?o=s+1:a=s}return o}function ot(o,a,s){return function(e,t,n){var i=0,r=v(e);if("number"==typeof n)0<o?i=0<=n?n:Math.max(n+r,i):r=0<=n?Math.min(n+1,r):n+r+1;else if(s&&n&&r)return e[n=s(e,t)]===t?n:-1;if(t!=t)return 0<=(n=a(d.call(e,i,r),se))?n+i:-1;for(n=0<o?i:r-1;0<=n&&n<r;n+=o)if(e[n]===t)return n;return-1}}var at=ot(1,nt,rt),st=ot(-1,it);function dt(e,t,n){t=(_(e)?nt:et)(e,t,n);if(void 0!==t&&-1!==t)return e[t]}function R(e,t,n){if(t=S(t,n),_(e))for(r=0,o=e.length;r<o;r++)t(e[r],r,e);else for(var i=y(e),r=0,o=i.length;r<o;r++)t(e[i[r]],i[r],e);return e}function k(e,t,n){t=A(t,n);for(var i=!_(e)&&y(e),r=(i||e).length,o=Array(r),a=0;a<r;a++){var s=i?i[a]:a;o[a]=t(e[s],s,e)}return o}function ut(p){return function(e,t,n,i){var r=3<=arguments.length,o=e,a=S(t,i,4),s=n,d=!_(o)&&y(o),u=(d||o).length,c=0<p?0:u-1;for(r||(s=o[d?d[c]:c],c+=p);0<=c&&c<u;c+=p){var l=d?d[c]:c;s=a(s,o[l],l,o)}return s}}var ct=ut(1),lt=ut(-1);function O(e,i,t){var r=[];return i=A(i,t),R(e,function(e,t,n){i(e,t,n)&&r.push(e)}),r}function pt(e,t,n){t=A(t,n);for(var i=!_(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(!t(e[a],a,e))return!1}return!0}function ht(e,t,n){t=A(t,n);for(var i=!_(e)&&y(e),r=(i||e).length,o=0;o<r;o++){var a=i?i[o]:o;if(t(e[a],a,e))return!0}return!1}function N(e,t,n,i){return _(e)||(e=I(e)),0<=at(e,t,n="number"==typeof n&&!i?n:0)}var ft=c(function(e,n,i){var r,o;return p(n)?o=n:(n=w(n),r=n.slice(0,-1),n=n[n.length-1]),k(e,function(e){var t=o;if(!t){if(null==(e=r&&r.length?Re(e,r):e))return;t=e[n]}return null==t?t:t.apply(e,i)})});function gt(e,t){return k(e,Ne(t))}function mt(e,i,t){var n,r,o=-Infinity,a=-Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=_(e)?e:I(e)).length;s<d;s++)null!=(n=e[s])&&o<n&&(o=n);else i=A(i,t),R(e,function(e,t,n){r=i(e,t,n),(a<r||r===-Infinity&&o===-Infinity)&&(o=e,a=r)});return o}var vt=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function yt(e){return e?f(e)?d.call(e):J(e)?e.match(vt):_(e)?k(e,Oe):I(e):[]}function bt(e,t,n){if(null==t||n)return(e=_(e)?e:I(e))[Pe(e.length-1)];for(var i=yt(e),n=v(i),r=(t=Math.max(Math.min(t,n),0),n-1),o=0;o<t;o++){var a=Pe(o,r),s=i[o];i[o]=i[a],i[a]=s}return i.slice(0,t)}function M(o,t){return function(n,i,e){var r=t?[[],[]]:{};return i=A(i,e),R(n,function(e,t){t=i(e,t,n);o(r,e,t)}),r}}var It=M(function(e,t,n){g(e,n)?e[n].push(t):e[n]=[t]}),wt=M(function(e,t,n){e[n]=t}),Ct=M(function(e,t,n){g(e,n)?e[n]++:e[n]=1}),St=M(function(e,t,n){e[n?0:1].push(t)},!0);function At(e,t,n){return t in n}var Et=c(function(e,t){var n={},i=t[0];if(null!=e){p(i)?(1<t.length&&(i=S(i,t[1])),t=u(e)):(i=At,t=x(t,!1,!1),e=Object(e));for(var r=0,o=t.length;r<o;r++){var a=t[r],s=e[a];i(s,a,e)&&(n[a]=s)}}return n}),Tt=c(function(e,n){var t,i=n[0];return p(i)?(i=Je(i),1<n.length&&(t=n[1])):(n=k(x(n,!1,!1),String),i=function(e,t){return!N(n,t)}),Et(e,i,t)});function _t(e,t,n){return d.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function xt(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:_t(e,e.length-t)}function L(e,t,n){return d.call(e,null==t||n?1:t)}var Rt=c(function(e,t){return t=x(t,!0,!0),O(e,function(e){return!N(t,e)})}),kt=c(function(e,t){return Rt(e,t)});function Ot(e,t,n,i){X(t)||(i=n,n=t,t=!1),null!=n&&(n=A(n,i));for(var r=[],o=[],a=0,s=v(e);a<s;a++){var d=e[a],u=n?n(d,a,e):d;t&&!n?(a&&o===u||r.push(d),o=u):n?N(o,u)||(o.push(u),r.push(d)):N(r,d)||r.push(d)}return r}var Nt=c(function(e){return Ot(x(e,!0,!0))});function Mt(e){for(var t=e&&mt(e,v).length||0,n=Array(t),i=0;i<t;i++)n[i]=gt(e,i);return n}var Lt=c(Mt);function Ft(e,t){return e._chain?b(t).chain():t}function Pt(n){return R(Se(n),function(e){var t=b[e]=n[e];b.prototype[e]=function(){var e=[this._wrapped];return D.apply(e,arguments),Ft(this,t.apply(b,e))}}),b}R(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var n=i[t];b.prototype[t]=function(){var e=this._wrapped;return null!=e&&(n.apply(e,arguments),"shift"!==t&&"splice"!==t||0!==e.length||delete e[0]),Ft(this,e)}}),R(["concat","join","slice"],function(e){var t=i[e];b.prototype[e]=function(){var e=this._wrapped;return Ft(this,e=null!=e?t.apply(e,arguments):e)}});var F=Pt({__proto__:null,VERSION:"1.13.6",restArguments:c,isObject:o,isNull:function(e){return null===e},isUndefined:K,isBoolean:X,isElement:function(e){return!(!e||1!==e.nodeType)},isString:J,isNumber:q,isDate:Q,isRegExp:ee,isError:te,isSymbol:ne,isArrayBuffer:ie,isDataView:h,isArray:f,isFunction:p,isArguments:ae,isFinite:function(e){return!ne(e)&&Z(e)&&!isNaN(parseFloat(e))},isNaN:se,isTypedArray:he,isEmpty:function(e){var t;return null==e||("number"==typeof(t=v(e))&&(f(e)||J(e)||ae(e))?0===t:0===v(y(e)))},isMatch:ge,isEqual:function(e,t){return ye(e,t)},isMap:n,isWeakMap:e,isSet:W,isWeakSet:a,keys:y,allKeys:u,values:I,pairs:function(e){for(var t=y(e),n=t.length,i=Array(n),r=0;r<n;r++)i[r]=[t[r],e[t[r]]];return i},invert:Ce,functions:Se,methods:Se,extend:Ee,extendOwn:s,assign:s,defaults:Te,create:function(e,t){return e=_e(e),t&&s(e,t),e},clone:function(e){return o(e)?f(e)?e.slice():Ee({},e):e},tap:function(e,t){return t(e),e},get:ke,has:function(e,t){for(var n=(t=w(t)).length,i=0;i<n;i++){var r=t[i];if(!g(e,r))return!1;e=e[r]}return!!n},mapObject:function(e,t,n){t=A(t,n);for(var i=y(e),r=i.length,o={},a=0;a<r;a++){var s=i[a];o[s]=t(e[s],s,e)}return o},identity:Oe,constant:de,noop:Fe,toPath:xe,property:Ne,propertyOf:function(t){return null==t?Fe:function(e){return ke(t,e)}},matcher:C,matches:C,times:function(e,t,n){var i=Array(Math.max(0,e));t=S(t,n,1);for(var r=0;r<e;r++)i[r]=t(r);return i},random:Pe,now:E,escape:De,unescape:t,templateSettings:Be,template:function(o,e,t){e=Te({},e=!e&&t?t:e,b.templateSettings);var t=RegExp([(e.escape||We).source,(e.interpolate||We).source,(e.evaluate||We).source].join("|")+"|$","g"),a=0,s="__p+='";if(o.replace(t,function(e,t,n,i,r){return s+=o.slice(a,r).replace(Ue,je),a=r+e.length,t?s+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),e}),s+="';\n",t=e.variable){if(!ze.test(t))throw new Error("variable is not a bare identifier: "+t)}else s="with(obj||{}){\n"+s+"}\n",t="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{throw new Error("Function constructor not supported")}catch(n){throw n.source=s,n}return(e=function(e){return(void 0).call(this,e,b)}).source="function("+t+"){\n"+s+"}",e},result:function(e,t,n){var i=(t=w(t)).length;if(!i)return p(n)?n.call(e):n;for(var r=0;r<i;r++){var o=null==e?void 0:e[t[r]];void 0===o&&(o=n,r=i),e=p(o)?o.call(e):o}return e},uniqueId:function(e){var t=++Ze+"";return e?e+t:t},chain:function(e){return(e=b(e))._chain=!0,e},iteratee:Le,partial:T,bind:Ye,bindAll:He,memoize:function(i,r){var o=function(e){var t=o.cache,n=""+(r?r.apply(this,arguments):e);return g(t,n)||(t[n]=i.apply(this,arguments)),t[n]};return o.cache={},o},delay:Ke,defer:Xe,throttle:function(n,i,r){var o,a,s,d,u=0,c=(r=r||{},function(){u=!1===r.leading?0:E(),o=null,d=n.apply(a,s),o||(a=s=null)}),e=function(){var e=E(),t=(u||!1!==r.leading||(u=e),i-(e-u));return a=this,s=arguments,t<=0||i<t?(o&&(clearTimeout(o),o=null),u=e,d=n.apply(a,s),o||(a=s=null)):o||!1===r.trailing||(o=Dt(c,t)),d};return e.cancel=function(){clearTimeout(o),u=0,o=a=s=null},e},debounce:function(t,n,i){var r,o,a,s,d,u=function(){var e=E()-o;e<n?r=Dt(u,n-e):(r=null,i||(s=t.apply(d,a)),r||(a=d=null))},e=c(function(e){return d=this,a=e,o=E(),r||(r=Dt(u,n),i&&(s=t.apply(d,a))),s});return e.cancel=function(){clearTimeout(r),r=a=d=null},e},wrap:function(e,t){return T(t,e)},negate:Je,compose:function(){var n=arguments,i=n.length-1;return function(){for(var e=i,t=n[i].apply(this,arguments);e--;)t=n[e].call(this,t);return t}},after:function(e,t){return function(){if(--e<1)return t.apply(this,arguments)}},before:qe,once:Qe,findKey:et,findIndex:nt,findLastIndex:it,sortedIndex:rt,indexOf:at,lastIndexOf:st,find:dt,detect:dt,findWhere:function(e,t){return dt(e,C(t))},each:R,forEach:R,map:k,collect:k,reduce:ct,foldl:ct,inject:ct,reduceRight:lt,foldr:lt,filter:O,select:O,reject:function(e,t,n){return O(e,Je(A(t)),n)},every:pt,all:pt,some:ht,any:ht,contains:N,includes:N,include:N,invoke:ft,pluck:gt,where:function(e,t){return O(e,C(t))},max:mt,min:function(e,i,t){var n,r,o=Infinity,a=Infinity;if(null==i||"number"==typeof i&&"object"!=typeof e[0]&&null!=e)for(var s=0,d=(e=_(e)?e:I(e)).length;s<d;s++)null!=(n=e[s])&&n<o&&(o=n);else i=A(i,t),R(e,function(e,t,n){((r=i(e,t,n))<a||r===Infinity&&o===Infinity)&&(o=e,a=r)});return o},shuffle:function(e){return bt(e,Infinity)},sample:bt,sortBy:function(e,i,t){var r=0;return i=A(i,t),gt(k(e,function(e,t,n){return{value:e,index:r++,criteria:i(e,t,n)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")},groupBy:It,indexBy:wt,countBy:Ct,partition:St,toArray:yt,size:function(e){return null==e?0:(_(e)?e:y(e)).length},pick:Et,omit:Tt,first:xt,head:xt,take:xt,initial:_t,last:function(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:L(e,Math.max(0,e.length-t))},rest:L,tail:L,drop:L,compact:function(e){return O(e,Boolean)},flatten:function(e,t){return x(e,t,!1)},without:kt,uniq:Ot,unique:Ot,union:Nt,intersection:function(e){for(var t=[],n=arguments.length,i=0,r=v(e);i<r;i++){var o=e[i];if(!N(t,o)){for(var a=1;a<n&&N(arguments[a],o);a++);a===n&&t.push(o)}}return t},difference:Rt,unzip:Mt,transpose:Mt,zip:Lt,object:function(e,t){for(var n={},i=0,r=v(e);i<r;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n},range:function(e,t,n){null==t&&(t=e||0,e=0),n=n||(t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),r=Array(i),o=0;o<i;o++,e+=n)r[o]=e;return r},chunk:function(e,t){if(null==t||t<1)return[];for(var n=[],i=0,r=e.length;i<r;)n.push(d.call(e,i,i+=t));return n},mixin:Pt,"default":b}),Gt=F.toPath;return F.mixin({toPath:function(e){return F.isString(e)?e.split("."):Gt(e)}}),F._=F}());function ge(e){return!(null==e)}function me(e){return y.isFunction(e)||y.isRegExp(e)?e:y.isArray(e)?y.map(e,me):y.isObject(e)?y.reduce(e,function(e,t,n){return e[n]=me(t),e},{}):e}ve=y.all,ye=y.each,be=y.filter,Ie=y.first,we=y.find,Ce=y.map,Se=y.pluck,Ae="global",Ee="default",Te={},t("additionalApiKeys",[r="pendoconfig",n="snippet"]),t("allowedOriginServers"),t("allowMixedApiKeyFrames",[n,r],!0),t("annotateUrl",[n]),t("apiKey",[r,n]),t("assetHost",[n,r]),t("autoFrameInstall",[n,r],!1),t("blockAgentMetadata",[r],!1),t("contentHost",[n,r]),t("cookieDomain",[n,r]),t("dataHost",[n,r]),t("disableAutoInitialize"),t("disableCookies",[n,r]),t("disablePendo",[n,r],!1),t("disablePersistence",[n,r]),t("enableSignedMetadata",[r],!1),t("frameIdentitySync",[n,r],!1),t("frameIdentityTopDownOnly",[n,r],!0),t("forceAnonymous",[n,r],!1),t("identityStorageLifetime",[n,r]),t("identityStorageSuffix",[n,r]),t("ignoreHashRouting",[n,r]),t("initializeImmediately",[n,r],!1),t("installType"),t("localStorageOnly",[n,r]),t("location.pushState",[n,r],!0),t("maxCookieTTLDays",[n,r],Infinity),t("observeShadowRoots",[n,r],!1),t("pendoCore",[r],!0),t("pendoGlobalKey",[r]),t("preferBroadcastChannel",[n,r],!1),t("preferMutationObserver",[n,r],!1),t("preventCookieRefresh"),t("preventUnloadListener",[n,r],!1),t("promotedAgentMetadataConfigurations",[r]),t("queryStringWhitelist",[n]),t("requireSignedMetadata",[r],!1),t("sanitizeUrl",[n]),t("selfHosted"),t("selfHostedAgentUrl",[n,r]),t("sendEventsWithPostOnly",[n,r],!1),t("siblingSelectors"),t("dropAnonymous"),t("allowedText",[n,r],[]),t("analytics.excludeEvents",[n,r],[]),t("enableDebugEvents",[n,r]),t("freeNPSData"),t("eventPropertyConfigurations"),t("eventPropertyMatchParents",[n,r],!0),t("excludeAllText",[r,n],!1,!0),t("excludeNonGuideAnalytics",[n,r],!1),t("htmlAttributeBlacklist"),t("htmlAttributes"),t("interceptElementRemoval",[n,r],!1),t("interceptPreventDefault",[n,r],!0),t("interceptStopPropagation",[n,r],!0),t("syntheticClicks.elementRemoval",[n,r],!1),t("syntheticClicks.targetChanged",[n,r],!0),t("xhrWhitelist"),t("appAutoOrdering",[n,r]),t("cacheGuides",[n,r],!1),t("cacheGuidesTimeout",[r],6e5),t("delayGuides",[n]),t("disableDesigner",[r,n],!1),t("disableDesignerKeyboardShortcut",[r],!1),t("disableGlobalCSS",[n,r],!1),t("disableGuidePseudoStyles",[n,r],!1),t("disableGuides",[n]),t("disablePrefetch",[n,r]),t("enableDesignerKeyboardShortcut",[n]),t("enableGuideTimeout",[r,n],!1),t("guideCssAssetPath"),t("guideSeenTimeoutLength",[r,n],1e4),t("guideTimeout",[n]),t("guideValidation",[n,r],!1),t("guides.attachPoint",[n]),t("guides.delay",[n]),t("guides.disabled",[n]),t("guides.ejectOnTimeout",[n,r],!1),t("guides.globalScripts",[n,r],[]),t("guides.timeout",[n]),t("guides.tooltip.arrowSize",[n]),t("inlineStyleNonce",[n]),t("leaderKey",[n,r],[]),t("preventCodeInjection",[r,n,Ae],!1),t("previewModeAssetPath"),t("storage.allowKeys",[n],"*"),t("disableFeedback",[n]),t("disableFeedbackAutoInit"),t("feedbackSettings",[r],{}),t("pendoFeedback",[r],!1),t("crossAppGuideStorageSuffix",[n,r]),t("enableCrossOriginIsolation",[n,r],!1),t("adoptHost"),t("adoptAnalyticsForwarding"),t("agentDebuggerPluginLoader"),t("allowPartnerAnalyticsForwarding",[n],!1),t("adoptPrioritizeAdoptGuides",[r],!1),t("designerAgentPluginsLoader",[r,n]),t("trainingPartner"),t("errorClickLogging",[r],!1),t("forceParentDesigner",[n]),t("enableAllEmbeddedGuideEvents",[r],!1),t("formValidation",[r],!1),(_e={})[n]=function(){return{lookup:fe||window.pendo_options,name:n}},_e[r]=function(){return{lookup:J,name:r}},_e[Ae]=function(){return{lookup:v,name:Ae}},Me.prototype.toString=function(){return"Config option `"+this.name+"` with value `"+this.value+"` from source `"+this.source+"`"};var ve,ye,be,Ie,we,Ce,Se,n,r,Ae,Ee,Te,_e,m={audit:Le,get:function(e,t){return Ne(e,t).value},getLocalConfig:function(e,t){return arguments.length?Ne(e,t,[n]).value:me(fe)},getHostedConfig:function(e,t){return Ne(e,t,[r]).value},addOption:t,setLocalConfig:function(e){fe=e},options:function(){return Se(Te,"name")},sources:{SNIPPET_SRC:n,PENDO_CONFIG_SRC:r,GLOBAL_SRC:Ae,DEFAULT_SRC:Ee},validate:function(t){t.groupCollapsed("Validate Config options"),ye(Le(),function(e){t.log(String(e.active)),0<e.conflicts.length&&(t.warn("Multiple sources found with values for "+e.name),ye(e.conflicts,function(e){t.warn(String(e))}))}),t.groupEnd()}};function t(e,t,n,i){void 0===t&&(t=[r]),e&&!Te[e]&&(n={name:e,defaultValue:n,supportedSources:t},null!=i&&(n.useAnySource=i),Te[e]=n)}function xe(e){return Te[e]||{name:e}}function Re(e,t){if(t)return t=t(),ge(e=y.get(t.lookup,(t=e,y.get(t,"key")||y.get(t,"name"))))?e:undefined}function ke(e,t){var n=Re(e,_e[t]);return new Me(e.name,n,t)}function Oe(e,t){return t=t||y.get(e,"supportedSources",[n,r,Ae]),be(Ce(t,y.partial(ke,e)),function(e){return ge(e.value)})}function Ne(e,t,n){var i=xe(e),e=new Me(e,t=t||y.get(i,"defaultValue",null),Ee),n=Oe(i,n);return i.useAnySource&&ge(t)?we(n,function(e){return e.value!==t})||e:Ie(n)||e}function Me(e,t,n){this.name=e,this.value=t,this.source=n}function Le(){var n=[];return ye(Te,function(e){var t;n.push({name:e.name,active:Ne(e.name),conflicts:(e=xe(e=e.name),(t=be(Oe(e),function(e){return e.source!==Ee})).length<2||ve(Se(t,"value"),function(e){return e===t[0].value})?[]:t)})}),n}var Fe="prod",Pe="extension",Ge="native";function De(){return m.get("installType")||Ge}function Be(e){var t;return e===Fe?"pendo-io-static":"prod-jp"===e?"pendo-jp-prod-static":"pendo-"+((t=/^prod-(.+)$/.exec(e))&&1<t.length?t[1]:e)+"-static"}var We,$e=function(e,t){return e=e||10,(t=!isNaN(Ve)&&(!t||Ve<t))&&We<e};function Ue(e){return parseInt(e,10)}var je=function(e){return y.isString(e)?e.toLowerCase():e};function ze(){return(window.navigator||{}).userAgent}i=ze(),dt=Ue((/msie (\d+)/.exec(je(i))||[])[1]),We=dt=isNaN(dt)?Ue((/trident\/.*; rv:(\d+)/.exec(je(i))||[])[1]):dt;var Ze,Ve=function(e,t){e=Ue((/trident\/(\d+)/.exec(je(e))||[])[1]);return e=isNaN(e)&&7==t?3:e}(ze(),We),Ye={},He=Ue((/android (\d+)/.exec(je(ze()))||[])[1]),Ke=/Boxee/i.test(ze()),Xe=window.document||{},Je=Xe.documentMode,qe=/^(Moz|webkit|O|ms)(?=[A-Z])/,Qe=Xe.body&&Xe.body.style,e=!1,i=!1;if(Qe){for(var et in Qe)if(et=qe.exec(et)){Ze=(Ze=et[0]).substr(0,1).toUpperCase()+Ze.substr(1);break}Ze=Ze||"WebkitOpacity"in Qe&&"webkit",e=!!("transition"in Qe||Ze+"Transition"in Qe),i=!!("animation"in Qe||Ze+"Animation"in Qe),!He||e&&i||(e=y.isString(Xe.body.style.webkitTransition),i=y.isString(Xe.body.style.webkitAnimation))}var tt={supportsHistoryApi:y.memoize(function(){var e=window.history&&window.history.pushState&&window.history.replaceState,t=window.history&&y.isFunction(Object.isFrozen)&&Object.isFrozen(window.history),n=window.history&&y.isFunction(Object.getOwnPropertyDescriptors)&&Object.getOwnPropertyDescriptors(window.history),n=n&&y.get(n,"pushState.writable",!0)&&y.get(n,"replaceState.writable",!0),i=!(He<4),r=De()===Pe;return!(!e||t||!n||!i||Ke||r)}),supportsHashChange:function(){var e="onhashchange"in window,t=!Je||7<Je,n=De()===Pe;return!(!e||!t||n)},hasEvent:function(e){var t;return("input"!=e||9!=We)&&(y.isUndefined(Ye[e])&&(t=Xe.createElement("div"),Ye[e]="on"+e in t),Ye[e])},vendorPrefix:Ze,transitions:e,animations:i,android:He,msie:We,msieDocumentMode:Je,safari:/apple/i.test(navigator.vendor),sri:"integrity"in document.createElement("script"),addEventListener:y.isFunction(window.addEventListener),MutationObserver:/native/.test(window.MutationObserver),isMinimumIEVersion:function(e){return!(!isNaN(this.msie)&&null!=this.msie)||this.msie>=e},isMobileUserAgent:y.memoize(function(){return/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(ze())})},nt=function(){return!isNaN(We)&&11!=We&&"CSS1Compat"!==document.compatMode},it=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,We<=9&&(e.arrow.top=6)):"bottom"==e.arrowPosition&&(e.top=t.top-(i+v.TOOLTIP_ARROW_SIZE),e.arrow.top=i-v.TOOLTIP_ARROW_SIZE,10==We?e.arrow.top--:We<=9&&(e.arrow.top+=4),n=1),"left"==e.arrow.hbias?(e.left=t.left+t.width/2-(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=10+v.TOOLTIP_ARROW_SIZE):"right"==e.arrow.hbias?(e.left=t.left-r+t.width/2+(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=r-3*v.TOOLTIP_ARROW_SIZE-10):(e.left=t.left+t.width/2-r/2,e.arrow.left=r/2-v.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-v.TOOLTIP_ARROW_SIZE),e.arrow.left=r-v.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-v.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e},rt="",ot="",at="",st="",dt="",ut="2.278.1_",Qe="2.278.1",ct="xhr",lt=function(){return nt()?ut+"+quirksmode":ut};function pt(){return(pe("installType")||le().installType)===Pe}function ht(){return-1!==rt.indexOf("prod")}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,"")},e={exports:{}};!function(){var q=void 0,Q=!0,o=this;function e(e,t){var n,i=e.split("."),r=o;i[0]in r||!r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||t===q?r=r[n]||(r[n]={}):r[n]=t}var ee="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array;function te(e,t){if(this.index="number"==typeof t?t:0,this.e=0,this.buffer=e instanceof(ee?Uint8Array:Array)?e:new(ee?Uint8Array:Array)(32768),2*this.buffer.length<=this.index)throw Error("invalid index");this.buffer.length<=this.index&&d(this)}function d(e){var t,n=e.buffer,i=n.length,r=new(ee?Uint8Array:Array)(i<<1);if(ee)r.set(n);else for(t=0;t<i;++t)r[t]=n[t];return e.buffer=r}te.prototype.b=function(e,t,n){var i,r=this.buffer,o=this.index,a=this.e,s=r[o];if(n&&1<t&&(e=8<t?(u[255&e]<<24|u[e>>>8&255]<<16|u[e>>>16&255]<<8|u[e>>>24&255])>>32-t:u[e]>>8-t),t+a<8)s=s<<t|e,a+=t;else for(i=0;i<t;++i)s=s<<1|e>>t-i-1&1,8==++a&&(a=0,r[o++]=u[s],s=0,o===r.length)&&(r=d(this));r[o]=s,this.buffer=r,this.e=a,this.index=o},te.prototype.finish=function(){var e=this.buffer,t=this.index;return 0<this.e&&(e[t]<<=8-this.e,e[t]=u[e[t]],t++),ee?e.subarray(0,t):(e.length=t,e)};for(var t=new(ee?Uint8Array:Array)(256),n=0;n<256;++n){for(var i=a=n,r=7,a=a>>>1;a;a>>>=1)i=i<<1|1&a,--r;t[n]=(i<<r&255)>>>0}var u=t;function c(e){this.buffer=new(ee?Uint16Array:Array)(2*e),this.length=0}function s(e,t){this.d=ne,this.i=0,this.input=ee&&e instanceof Array?new Uint8Array(e):e,this.c=0,t&&(t.lazy&&(this.i=t.lazy),"number"==typeof t.compressionType&&(this.d=t.compressionType),t.outputBuffer&&(this.a=ee&&t.outputBuffer instanceof Array?new Uint8Array(t.outputBuffer):t.outputBuffer),"number"==typeof t.outputIndex)&&(this.c=t.outputIndex),this.a||(this.a=new(ee?Uint8Array:Array)(32768))}c.prototype.getParent=function(e){return 2*((e-2)/4|0)},c.prototype.push=function(e,t){var n,i,r=this.buffer,o=this.length;for(r[this.length++]=t,r[this.length++]=e;0<o&&(n=this.getParent(o),r[o]>r[n]);)i=r[o],r[o]=r[n],r[n]=i,i=r[o+1],r[o+1]=r[n+1],r[n+1]=i,o=n;return this.length},c.prototype.pop=function(){var e,t,n,i=this.buffer,r=i[0],o=i[1];for(this.length-=2,i[0]=i[this.length],i[1]=i[this.length+1],n=0;!((t=2*n+2)>=this.length)&&(t+2<this.length&&i[t+2]>i[t]&&(t+=2),i[t]>i[n]);)e=i[n],i[n]=i[t],i[t]=e,e=i[n+1],i[n+1]=i[t+1],i[t+1]=e,n=t;return{index:o,value:r,length:this.length}};for(var ne=2,l={NONE:0,h:1,g:ne,n:3},ie=[],p=0;p<288;p++)switch(Q){case p<=143:ie.push([p+48,8]);break;case p<=255:ie.push([p-144+400,9]);break;case p<=279:ie.push([p-256,7]);break;case p<=287:ie.push([p-280+192,8]);break;default:throw"invalid literal: "+p}function b(e,t){this.length=e,this.k=t}s.prototype.f=function(){var e,t,P,n=this.input;switch(this.d){case 0:for(t=0,P=n.length;t<P;){var G,D,i=r=ee?n.subarray(t,t+65535):n.slice(t,t+65535),r=(t+=r.length)===P,o=q,a=this.a,s=this.c;if(ee){for(a=new Uint8Array(this.a.buffer);a.length<=s+i.length+5;)a=new Uint8Array(a.length<<1);a.set(this.a)}if(a[s++]=0|(r?1:0),G=65536+~(r=i.length)&65535,a[s++]=255&r,a[s++]=r>>>8&255,a[s++]=255&G,a[s++]=G>>>8&255,ee)a.set(i,s),s+=i.length,a=a.subarray(0,s);else{for(o=0,D=i.length;o<D;++o)a[s++]=i[o];a.length=s}this.c=s,this.a=a}break;case 1:for(var d,u=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),c=(u.b(1,1,Q),u.b(1,2,Q),re(this,n)),l=0,B=c.length;l<B;l++)if(d=c[l],te.prototype.b.apply(u,ie[d]),256<d)u.b(c[++l],c[++l],Q),u.b(c[++l],5),u.b(c[++l],c[++l],Q);else if(256===d)break;this.a=u.finish(),this.c=this.a.length;break;case ne:var p,h,f,g,m,v,y,W,b,I,w,$,C=new te(ee?new Uint8Array(this.a.buffer):this.a,this.c),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=Array(19),S=ne;for(C.b(1,1,Q),C.b(S,2,Q),p=re(this,n),S=ae(m=oe(this.m,15)),L=ae(v=oe(this.l,7)),h=286;257<h&&0===m[h-1];h--);for(f=30;1<f&&0===v[f-1];f--);for(var A,E,T,_,x,z=h,Z=f,R=new(ee?Uint32Array:Array)(z+Z),k=new(ee?Uint32Array:Array)(316),O=new(ee?Uint8Array:Array)(19),N=A=0;N<z;N++)R[A++]=m[N];for(N=0;N<Z;N++)R[A++]=v[N];if(!ee)for(N=0,T=O.length;N<T;++N)O[N]=0;for(N=_=0,T=R.length;N<T;N+=A){for(A=1;N+A<T&&R[N+A]===R[N];++A);if(E=A,0===R[N])if(E<3)for(;0<E--;)O[k[_++]=0]++;else for(;0<E;)(x=E-3<(x=E<138?E:138)&&x<E?E-3:x)<=10?(k[_++]=17,k[_++]=x-3,O[17]++):(k[_++]=18,k[_++]=x-11,O[18]++),E-=x;else if(k[_++]=R[N],O[R[N]]++,--E<3)for(;0<E--;)k[_++]=R[N],O[R[N]]++;else for(;0<E;)E-3<(x=E<6?E:6)&&x<E&&(x=E-3),k[_++]=16,k[_++]=x-3,O[16]++,E-=x}for(e=ee?k.subarray(0,_):k.slice(0,_),y=oe(O,7),w=0;w<19;w++)j[w]=y[U[w]];for(g=19;4<g&&0===j[g-1];g--);for(W=ae(y),C.b(h-257,5,Q),C.b(f-1,5,Q),C.b(g-4,4,Q),w=0;w<g;w++)C.b(j[w],3,Q);for(w=0,$=e.length;w<$;w++)if(b=e[w],C.b(W[b],y[b],Q),16<=b){switch(w++,b){case 16:I=2;break;case 17:I=3;break;case 18:I=7;break;default:throw"invalid code: "+b}C.b(e[w],I,Q)}for(var M,V,S=[S,m],L=[L,v],Y=S[0],H=S[1],K=L[0],X=L[1],F=0,J=p.length;F<J;++F)if(M=p[F],C.b(Y[M],H[M],Q),256<M)C.b(p[++F],p[++F],Q),V=p[++F],C.b(K[V],X[V],Q),C.b(p[++F],p[++F],Q);else if(256===M)break;this.a=C.finish(),this.c=this.a.length;break;default:throw"invalid compression type"}return this.a};var h=function(){for(var e,t=[],n=3;n<=258;n++)e=function(e){switch(Q){case 3===e:return[257,e-3,0];case 4===e:return[258,e-4,0];case 5===e:return[259,e-5,0];case 6===e:return[260,e-6,0];case 7===e:return[261,e-7,0];case 8===e:return[262,e-8,0];case 9===e:return[263,e-9,0];case 10===e:return[264,e-10,0];case e<=12:return[265,e-11,1];case e<=14:return[266,e-13,1];case e<=16:return[267,e-15,1];case e<=18:return[268,e-17,1];case e<=22:return[269,e-19,2];case e<=26:return[270,e-23,2];case e<=30:return[271,e-27,2];case e<=34:return[272,e-31,2];case e<=42:return[273,e-35,3];case e<=50:return[274,e-43,3];case e<=58:return[275,e-51,3];case e<=66:return[276,e-59,3];case e<=82:return[277,e-67,4];case e<=98:return[278,e-83,4];case e<=114:return[279,e-99,4];case e<=130:return[280,e-115,4];case e<=162:return[281,e-131,5];case e<=194:return[282,e-163,5];case e<=226:return[283,e-195,5];case e<=257:return[284,e-227,5];case 258===e:return[285,e-258,0];default:throw"invalid length: "+e}}(n),t[n]=e[2]<<24|e[1]<<16|e[0];return t}(),I=ee?new Uint32Array(h):h;function re(e,t){function n(e,t){var n,i,r,o=e.k,a=[],s=0,d=I[e.length];switch(a[s++]=65535&d,a[s++]=d>>16&255,a[s++]=d>>24,Q){case 1===o:n=[0,o-1,0];break;case 2===o:n=[1,o-2,0];break;case 3===o:n=[2,o-3,0];break;case 4===o:n=[3,o-4,0];break;case o<=6:n=[4,o-5,1];break;case o<=8:n=[5,o-7,1];break;case o<=12:n=[6,o-9,2];break;case o<=16:n=[7,o-13,2];break;case o<=24:n=[8,o-17,3];break;case o<=32:n=[9,o-25,3];break;case o<=48:n=[10,o-33,4];break;case o<=64:n=[11,o-49,4];break;case o<=96:n=[12,o-65,5];break;case o<=128:n=[13,o-97,5];break;case o<=192:n=[14,o-129,6];break;case o<=256:n=[15,o-193,6];break;case o<=384:n=[16,o-257,7];break;case o<=512:n=[17,o-385,7];break;case o<=768:n=[18,o-513,8];break;case o<=1024:n=[19,o-769,8];break;case o<=1536:n=[20,o-1025,9];break;case o<=2048:n=[21,o-1537,9];break;case o<=3072:n=[22,o-2049,10];break;case o<=4096:n=[23,o-3073,10];break;case o<=6144:n=[24,o-4097,11];break;case o<=8192:n=[25,o-6145,11];break;case o<=12288:n=[26,o-8193,12];break;case o<=16384:n=[27,o-12289,12];break;case o<=24576:n=[28,o-16385,13];break;case o<=32768:n=[29,o-24577,13];break;default:throw"invalid distance"}for(d=n,a[s++]=d[0],a[+s]=d[1],a[5]=d[2],i=0,r=a.length;i<r;++i)h[f++]=a[i];m[a[0]]++,v[a[3]]++,g=e.length+t-1,c=null}var i,r,o,a,s,d,u,c,l,p={},h=ee?new Uint16Array(2*t.length):[],f=0,g=0,m=new(ee?Uint32Array:Array)(286),v=new(ee?Uint32Array:Array)(30),y=e.i;if(!ee){for(o=0;o<=285;)m[o++]=0;for(o=0;o<=29;)v[o++]=0}for(m[256]=1,i=0,r=t.length;i<r;++i){for(o=s=0,a=3;o<a&&i+o!==r;++o)s=s<<8|t[i+o];if(p[s]===q&&(p[s]=[]),d=p[s],!(0<g--)){for(;0<d.length&&32768<i-d[0];)d.shift();if(r<=i+3){for(c&&n(c,-1),o=0,a=r-i;o<a;++o)l=t[i+o],h[f++]=l,++m[l];break}0<d.length?(u=function(e,t,n){var i,r,o,a,s,d,u=0,c=e.length;a=0,d=n.length;e:for(;a<d;a++){if(i=n[d-a-1],(o=3)<u){for(s=u;3<s;s--)if(e[i+s-1]!==e[t+s-1])continue e;o=u}for(;o<258&&t+o<c&&e[i+o]===e[t+o];)++o;if(u<o&&(r=i,u=o),258===o)break}return new b(u,t-r)}(t,i,d),c?c.length<u.length?(l=t[i-1],h[f++]=l,++m[l],n(u,0)):n(c,-1):u.length<y?c=u:n(u,0)):c?n(c,-1):(l=t[i],h[f++]=l,++m[l])}d.push(i)}return h[f++]=256,m[256]++,e.m=m,e.l=v,ee?h.subarray(0,f):h}function oe(e,t){var n,i,r,o,a,s=e.length,d=new c(572),u=new(ee?Uint8Array:Array)(s);if(!ee)for(o=0;o<s;o++)u[o]=0;for(o=0;o<s;++o)0<e[o]&&d.push(o,e[o]);if(n=Array(d.length/2),i=new(ee?Uint32Array:Array)(d.length/2),1===n.length)u[d.pop().index]=1;else{for(o=0,a=d.length/2;o<a;++o)n[o]=d.pop(),i[o]=n[o].value;for(r=function(e,n,t){var i,r,o,a,s,d=new(ee?Uint16Array:Array)(t),u=new(ee?Uint8Array:Array)(t),c=new(ee?Uint8Array:Array)(n),l=Array(t),p=Array(t),h=Array(t),f=(1<<t)-n,g=1<<t-1;for(d[t-1]=n,r=0;r<t;++r)f<g?u[r]=0:(u[r]=1,f-=g),f<<=1,d[t-2-r]=(d[t-1-r]/2|0)+n;for(d[0]=u[0],l[0]=Array(d[0]),p[0]=Array(d[0]),r=1;r<t;++r)d[r]>2*d[r-1]+u[r]&&(d[r]=2*d[r-1]+u[r]),l[r]=Array(d[r]),p[r]=Array(d[r]);for(i=0;i<n;++i)c[i]=t;for(o=0;o<d[t-1];++o)l[t-1][o]=e[o],p[t-1][o]=o;for(i=0;i<t;++i)h[i]=0;for(1===u[t-1]&&(--c[0],++h[t-1]),r=t-2;0<=r;--r){for(a=i=0,s=h[r+1],o=0;o<d[r];o++)(a=l[r+1][s]+l[r+1][s+1])>e[i]?(l[r][o]=a,p[r][o]=n,s+=2):(l[r][o]=e[i],p[r][o]=i,++i);h[r]=0,1===u[r]&&function m(e){var t=p[e][h[e]];t===n?(m(e+1),m(e+1)):--c[t],++h[e]}(r)}return c}(i,i.length,t),o=0,a=n.length;o<a;++o)u[n[o].index]=r[o]}return u}function ae(e){for(var t,n,i=new(ee?Uint16Array:Array)(e.length),r=[],o=[],a=0,s=0,d=e.length;s<d;s++)r[e[s]]=1+(0|r[e[s]]);for(s=1,d=16;s<=d;s++)a=(o[s]=a)+(0|r[s])<<1;for(s=0,d=e.length;s<d;s++)for(a=o[e[s]],o[e[s]]+=1,t=i[s]=0,n=e[s];t<n;t++)i[s]=i[s]<<1|1&a,a>>>=1;return i}function f(e,t){this.input=e,this.a=new(ee?Uint8Array:Array)(32768),this.d=w.g;var n,i={};for(n in(t?"number"==typeof t.compressionType:(t={},0))&&(this.d=t.compressionType),t)i[n]=t[n];i.outputBuffer=this.a,this.j=new s(this.input,i)}var g,m,v,y,w=l,C=(f.prototype.f=function(){var e,t,n=0,i=this.a,r=Math.LOG2E*Math.log(32768)-8<<4|8;switch(i[n++]=r,8,this.d){case w.NONE:t=0;break;case w.h:t=1;break;case w.g:t=2;break;default:throw Error("unsupported compression type")}i[+n]=(e=t<<6|0)|31-(256*r+e)%31;var o=this.input;if("string"==typeof o){for(var a=o.split(""),s=0,d=a.length;s<d;s++)a[s]=(255&a[s].charCodeAt(0))>>>0;o=a}for(var u,c=1,l=0,p=o.length,h=0;0<p;){for(p-=u=1024<p?1024:p;l+=c+=o[h++],--u;);c%=65521,l%=65521}return r=(l<<16|c)>>>0,this.j.c=2,n=(i=this.j.f()).length,ee&&((i=new Uint8Array(i.buffer)).length<=n+4&&(this.a=new Uint8Array(i.length+4),this.a.set(i),i=this.a),i=i.subarray(0,n+4)),i[n++]=r>>24&255,i[n++]=r>>16&255,i[n++]=r>>8&255,i[+n]=255&r,i},e("Zlib.Deflate",f),e("Zlib.Deflate.compress",function(e,t){return new f(e,t).f()}),e("Zlib.Deflate.prototype.compress",f.prototype.f),{NONE:w.NONE,FIXED:w.h,DYNAMIC:w.g});if(Object.keys)g=Object.keys(C);else for(m in g=[],v=0,C)g[v++]=m;for(v=0,y=g.length;v<y;++v)e("Zlib.Deflate.CompressionType."+(m=g[v]),C[m])}.call(e.exports);var vt={Deflate:D(e.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?G.uint8ToBase64(e):e}i={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(i.exports);var It={CRC32:D(i.exports).Zlib.CRC32},wt=function(e,n){var i;return 200<=(n=n||0)?e:y.isArray(e)?y.map(e,function(e){return wt(e,n+1)}):!y.isObject(e)||y.isDate(e)||y.isRegExp(e)||y.isElement(e)?y.isString(e)?y.escape(e):e:(i={},y.each(e,function(e,t){i[t]=wt(e,n+1)}),i)},Ct=function(e){e=gt(e);return G.uint8ToBase64(e)},St=function(e){if(void 0!==e)return e=gt(e=y.isString(e)?e:JSON.stringify(e)),It.CRC32.calc(e,0,e.length)};function At(e){return e[Math.floor(Math.random()*e.length)]}function Et(e){for(var t="abcdefghijklmnopqrstuvwxyz",n="",i=(t+t.toUpperCase()+"1234567890").split(""),r=0;r<e;r++)n+=At(i);return n}var Tt=function(e,t,n){return!(!ge(e)||!ge(t))&&(n&&(e=e.toLowerCase(),t=t.toLowerCase()),-1<e.indexOf(t))};function b(){return(new Date).getTime()}function _t(){return"undefined"!=typeof $A&&y.isFunction($A.get)&&y.isString($A.get("$Browser.formFactor"))}function xt(e,t){void 0===t&&(t=window);var n="__symbol__";if("undefined"!=typeof Zone&&y.isFunction(Zone[n])){n=t[Zone[n](e)];if(y.isFunction(n))return n}return t[e]}e=window;var Rt=y.isFunction(e.isFinite)?e.isFinite:e.Number&&y.isFunction(e.Number.isFinite)?e.Number.isFinite:function(e){return e!=Infinity&&e!=-Infinity&&!isNaN(e)};function kt(e){return"number"==typeof e&&Rt(e)&&Math.floor(e)===e}function Ot(e,t,n,i){(t=t||{}).maxRetries=kt(t.maxRetries)?t.maxRetries:10,t.delay=kt(t.delay)?t.delay:50,t.exponentialBackoff=t.exponentialBackoff||!1;var r=function(e){return e&&"[object Function]"==={}.toString.call(e)},o=r(n)?n:function(){},a=r(i)?i:function(){},n=e();n?o(n):0<t.maxRetries?Dt(function(){t.maxRetries=--t.maxRetries,t.delay=t.exponentialBackoff?2*t.delay:t.delay,Ot(e,t,o,a)},t.delay):(a||function(){})()}var Nt=function(e){e=e.match(/-?[\d,]+\.?([\d,]+)*/);return e?parseFloat(e[0].replace(/,/g,"")):null};function Mt(e){return y.isObject(e)&&y.isFunction(e.then)}var Lt=y.isFunction(window.decodeURIComponent)?window.decodeURIComponent:y.identity,Ft=y.isFunction(window.encodeURIComponent)?window.encodeURIComponent:y.identity,Pt=(window.Promise,i=function(){var t=Dt;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a},"function"==typeof(e=window.Promise)&&/native/.test(e)?e:i()),Gt=function(e,t){return(Gt=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};var Wt=function(){return(Wt=Object.assign||function Wt(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function $t(e,t,s,d){return new(s=s||Pt)(function(n,i){function r(e){try{a(d.next(e))}catch(t){i(t)}}function o(e){try{a(d["throw"](e))}catch(t){i(t)}}function a(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(r,o)}a((d=d.apply(e,t||[])).next())})}function Ut(n,i){var r,o,a,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]},d=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return d.next=e(0),d["throw"]=e(1),d["return"]=e(2),"function"==typeof Symbol&&(d[Symbol.iterator]=function(){return this}),d;function e(t){return function(e){return u([t,e])}}function u(e){if(r)throw new TypeError("Generator is already executing.");for(;s=d&&e[d=0]?0:s;)try{if(r=1,o&&(a=2&e[0]?o["return"]:e[0]?o["throw"]||((a=o["return"])&&a.call(o),0):o.next)&&!(a=a.call(o,e[1])).done)return a;switch(o=0,(e=a?[2&e[0],a.value]:e)[0]){case 0:case 1:a=e;break;case 4:return s.label++,{value:e[1],done:!1};case 5:s.label++,o=e[1],e=[0];continue;case 7:e=s.ops.pop(),s.trys.pop();continue;default:if(!(a=0<(a=s.trys).length&&a[a.length-1])&&(6===e[0]||2===e[0])){s=0;continue}if(3===e[0]&&(!a||e[1]>a[0]&&e[1]<a[3]))s.label=e[1];else if(6===e[0]&&s.label<a[1])s.label=a[1],a=e;else{if(!(a&&s.label<a[2])){a[2]&&s.ops.pop(),s.trys.pop();continue}s.label=a[2],s.ops.push(e)}}e=i.call(n,s)}catch(t){e=[6,t],o=0}finally{r=a=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}function jt(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||((i=i||Array.prototype.slice.call(t,0,r))[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}zt.prototype.addEventListener=function(e,t){var n=this.listeners[e];n||(this.listeners[e]=n=[]),y.findIndex(n,function(e){return t===e})<0&&n.push(t)},zt.prototype.removeEventListener=function(e,t){var n,i=this.listeners[e];i&&0<=(n=y.findIndex(i,function(e){return t===e}))&&(i.splice(n,1),i.length||delete this.listeners[e])},zt.prototype.dispatchEvent=function(t){var e=this.listeners[t.type];e&&y.each(e,function(e){e(t)})};e=zt;function zt(){this.listeners={}}Yt.prototype.toString=function(){var e=this.message;return this.error&&e!==this.error.message&&(e="".concat(e,":").concat(this.error.message)),this.attributes&&(e+=": ".concat(y.map(this.attributes,function(e,t){return"".concat(t,"=").concat(e)}))),e},Yt.prototype.hashCode=function(){return this.toString()};var Zt,Vt=Yt;function Yt(e,t,n){this.type="log",this.logged=!1,this.level=e,this.message=t,this.attributes=n}(i=Zt=Zt||{}).Debug="debug",i.Info="info",i.Warn="warn",i.Error="error",i.Critical="critical";var I=new(function(e){var t=r,n=e;if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}function r(){return null!==e&&e.apply(this,arguments)||this}return Gt(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i),r.prototype.write=function(e,t,n){this.dispatchEvent(new Vt(t,e,n))},r.prototype.writeError=function(e,t,n){y.isString(e)?r={message:i=e}:i=(r=e).message,n&&n.error&&(r=n.error,delete n.error);var i,r,e=new Vt(t,i,n);e.error=r,this.dispatchEvent(e)},r.prototype.debug=function(e,t){this.write(e,Zt.Debug,t)},r.prototype.info=function(e,t){this.write(e,Zt.Info,t)},r.prototype.warn=function(e,t){this.writeError(e,Zt.Warn,t)},r.prototype.error=function(e,t){this.writeError(e,Zt.Error,t)},r.prototype.critical=function(e,t){this.writeError(e,Zt.Critical,t)},r}(e));function Ht(e){if(e)return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var Kt=function(){var e=m.get("storage.allowKeys")||"*";return y.isArray(e)?y.indexBy(e):e};function Xt(t,n,i){return function(){try{return n.apply(t,arguments)}catch(e){return i}}}function Jt(n){y.forEach(y.keys(n),function(e){try{/^_?pendo_/.test(e)&&n.removeItem(e)}catch(t){}})}function qt(e){var t=y.noop,t={getItem:function(){return null},setItem:t,removeItem:t,clearPendo:t};try{var n=e();return n?{getItem:Xt(n,n.getItem,null),setItem:Xt(n,n.setItem),removeItem:Xt(n,n.removeItem),clearPendo:y.partial(Jt,n)}:t}catch(i){return t}}var Qt,i=qt(function(){return window.localStorage}),e=qt(function(){return window.sessionStorage}),en={},tn=!0,nn=function(){return m.get("localStorageOnly")},rn=function(){return!!m.get("disableCookies")};function on(e){tn=e}var an=function(e){var t=rn()||nn()?en[e]:document.cookie;return(e=new RegExp("(^|; )"+e+"=([^;]*)").exec(t))?Lt(e[2]):null},sn=function(e,t,n,i){var r,o;!tn||m.get("preventCookieRefresh")&&an(e)===t||(o=hn(n),(r=new Date).setTime(r.getTime()+o),o=e+"="+Ft(t)+(n?";expires="+r.toUTCString():"")+"; path=/"+("https:"===document.location.protocol||i?";secure":"")+"; SameSite=Strict",Qt&&(o+=";domain="+Qt),rn()||nn()?en[e]=o:document.cookie=o)};function dn(e){Qt?sn(e,""):document.cookie=e+"=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT"}var un=function(e,t){return"_pendo_".concat(e,".").concat(t||v.apiKey)},cn=function(e,t){return an(un(e,t))},ln=864e5,pn=100*ln,hn=function(e){void 0===e&&(e=pn);var t=m.get("maxCookieTTLDays"),t=t<Infinity?t*ln:Infinity;return Math.min(e,t)},fn=function(e,t,n,i,r){n=n||pn,sn(un(e,r),t,n,i)};function gn(){this.keys={}}gn.prototype.addLocal=function(e){this._add(e,"local")},gn.prototype.addSession=function(e){this._add(e,"session")},gn.prototype.hasLocal=function(e){return this._has(e,"local")},gn.prototype.hasSession=function(e){return this._has(e,"session")},gn.prototype._add=function(e,t){this.keys[e]||(this.keys[e]=t)},gn.prototype._has=function(e,t){return this.keys[e]===t};mn=new gn,vn=y.memoize(function(e){try{var t=window[e],n="__storage_test__";return t.setItem(n,n),t.removeItem(n),!0}catch(i){return i instanceof DOMException&&(22===i.code||1014===i.code||"QuotaExceededError"===i.name||"NS_ERROR_DOM_QUOTA_REACHED"===i.name)&&t&&0!==t.length}}),(yn=y.extend({},e)).setItem=In(yn.setItem,"hasSession"),(bn=y.extend({},i)).setItem=In(bn.setItem,"hasLocal");var mn,vn,yn,bn,w={read:function(e,t,n){var i;return wn()?(i=t?e:un(e,n),null===(i=function(e){if(null===e)return null;try{var t=JSON.parse(e);return t.ttl?t.ttl<(new Date).getTime()?null:String(t.value||t):e}catch(n){return e}}(localStorage.getItem(i)))&&Sn(e,t,n),i):t?an(e):cn(e,n)},write:In(function(e,t,n,i,r,o){if(Cn(vn),wn())try{var a=i?e:un(e,o);return localStorage.setItem(a,function(e,t){if(null===t)return e;t=(new Date).getTime()+hn(t);return JSON.stringify({ttl:t,value:e})}(t,n)),void Cn(vn)}catch(s){}if(!i)return fn(e,t,n,r,o);sn(e,t,n,r)},"hasLocal"),clear:Sn,registry:mn,getLocal:function(){return bn},getSession:function(){return yn}};function In(i,r){return function(e){var t,n;if(t=e,"*"===(n=Kt())||n[t])return mn[r](e)||I.warn("storage key ".concat(e," is not registered")),i.apply(this,arguments);I.debug("writing storage key ".concat(e," is not allowed"))}}function wn(){return!rn()&&!Qt&&vn("localStorage")}function Cn(e){e.cache&&(e.cache={})}function Sn(e,t,n){t=t?e:un(e,n);if(wn())return localStorage.removeItem(t);dn(t)}En=function(){var t=!1;return function(e){return function(){t||(t=!0,e.apply(null,arguments))}}},Tn=function(n,i){var r=An.defer(),o=function(n,i){Dt(function(){var e;try{e=n(i)}catch(t){return void r.reject(t)}e===r.promise?r.reject(new TypeError("Cannot resolve promise with itself")):r.resolve(e)},1)};return{promise:r.promise,handle:function(e,t){e===_n?(e=t,n&&n.call?o(n,e):r.resolve(e)):(e=t,i&&i.call?o(i,e):r.reject(e))}}},_n=1,(An={}).defer=function(){var n,i=0,r=[],t=function(e,t){i=e,n=t,y.each(r,function(e){e.handle(i,n)}),r=null},o=function(e){t(_n,e)},a=function(e){t(2,e)},s=function(e,t){e=Tn(e,t);return 0===i?r.push(e):e.handle(i,n),e.promise},d=function(e){var t=En();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=En();return{resolve:e(u),reject:e(a),promise:{then:s,"catch":function(e){return s(null,e)}}}};var An,En,Tn,_n,C,e=An;function xn(e){var n,i=C.defer(),r=y.isArray(e)?[]:{},o=y.size(e);return o?(n=!1,y.each(e,function(e,t){C.resolve(e).then(function(e){r[t]=e,0!=--o||n||i.resolve(r)},function(e){n||(n=!0,i.reject(e))})}),i.promise):C.resolve(e)}!pt()&&tt.isMinimumIEVersion(11)?C={all:function(e){return y.isArray(e)?Pt.all.apply(Pt,arguments):xn(e)},reject:function(){return Pt.reject.apply(Pt,arguments)},resolve:function(){return Pt.resolve.apply(Pt,arguments)},defer:function(){var n={};return n.promise=new Pt(function(e,t){n.resolve=e,n.reject=t}),n}}:((C=e).all=xn,C.reject=function(e){var t=C.defer();return t.reject(e),t.promise},C.resolve=function(e){var t=C.defer();return t.resolve(e),t.promise});var Rn=w.getSession(),kn="pendo_tabId",On="pendo_parentTabId";Nn=window,i=y.partial,Mn=y.extend,Ln=y.omit,Fn={data:{},getItem:function(e){return Fn.data[e]},setItem:function(e,t){Fn.data[e]=t},removeItem:function(e){Fn.data[e]=null,delete Fn.data[e]}},Pn=i($n,kn,Un),Gn=i($n,"pendo_frameId",Fn);var Nn,Mn,Ln,Fn,Pn,Gn,Dn={addTracerIds:function(e){return Ln(Mn(e,{parentTabId:Bn(On,Un),tabId:Pn(),frameId:Gn()}),function(e){return e===undefined})},setParentTabId:function(e){Wn(On,e,Un)},newTabId:function(){var e=Et(16);return Wn(kn,e,Un),e},getTabId:Pn,getFrameId:Gn,tabIdChanged:function(t){var e;if(tt.addEventListener)return Nn.addEventListener("storage",e=function(e){e.key===kn&&(Fn.removeItem(kn),t())}),function(){Nn.removeEventListener("storage",e)}}};function Bn(e,t){return(y.isFunction(t)?t():t).getItem(e)}function Wn(e,t,n){(y.isFunction(n)?n():n).setItem(e,t)}function $n(e,t){var n=Bn(e,t);return n||Wn(e,n=Et(16),t),n}function Un(){return n=Fn,i=Rn,{getItem:function(e){var t=n.getItem(e);return t===undefined&&(t=i.getItem(e),n.setItem(e,t)),t},setItem:function(e,t){n.setItem(e,t),i.setItem(e,t)},removeItem:function(e){n.removeItem(e),i.removeItem(e)}};var n,i}function jn(){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(y.isString(e)||y.isFunction(t))&&(n=(n=i[e])||(i[e]=[]),y.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 y.isFunction(t)?(n=y.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=y.toArray(arguments).slice(1);return y.map(t,function(e){return e.apply(v,n)})},this.triggerCancelable=function(e,t){e=i[e]?i[e].slice():[];return y.map(e,function(e){if(!t.cancel)return e.apply(v,[t])})},this.triggerAsync=function(){var e=y.map(this.trigger.apply(this,arguments),function(e){return!1===e?C.reject():e});return C.all(e)},this}jn.clear=function(t){t&&y.each(y.keys(t._handlers),function(e){t.off(e),delete t._handlers[e]})};or={DEBUG:e="debug",FRAMES:i="frames",LIFECYCLE:s="lifecycle",RUNTIME:pr="runtime"},zn=[new a("ready",[e,s]),new a("deliverablesLoaded",[e,s]),new a("guidesFailed",[e,s]),new a("guidesLoaded",[e,s]),new a("guideListChanged",[e,s]),new a("guideSeen",[e,s]),new a("guideNotSeen",[e,s]),new a("guideAdvanced",[e,s]),new a("guideDismissed",[e,s]),new a("guideSnoozed",[e,s]),new a("beforeGuideShow",[s]),new a("beforeMount",[pr]),new a("beforeAdvance",[pr]),new a("beforePrevious",[pr]),new a("beforeSnooze",[pr]),new a("beforeDismiss",[pr]),new a("beforeUnmount",[pr]),new a("unmounted",[pr]),new a("beforeUpdate",[pr]),new a("updated",[pr]),new a("guideSnoozeCancelled",[e,s]),new a("guideTimeout",[e,s]),new a("guideLoopStopped",[e,s]),new a("guideUpdateComplete",[s]),new a("designerLaunched",[e,s]),new a("debuggerLaunched",[e,s]),new a("stepEligibility",[e]),new a("identify",[e,s]),new a("metadata",[e,s]),new a("appUnloaded",[e,s]),new a("appHidden",[e,s]),new a("startPreview",[e]),new a("resourceFetchFail",[e]),new a("contentVerificationFail",[e]),new a("contentValidationFail",[e]),new a("renderFail",[e]),new a("appUsage",[s]),new a("eventCaptured",[e]),new a("error",[e,s]),new a("onClickCaptured",[e]),new a("urlChanged",[s]),new a("leaderChanged",[s,i]),new a("transmit:locked",[s]),new a("transmit:unlocked",[s]),new a("sessionChanged",[s]),new a("childFrameJoined",[i]),new a("tabIdChanged:self",[e,s])],Zn=jn.call({}),Vn={debug:function(){return Dn.addTracerIds(Hn.apply(null,arguments))},lifecycle:Hn,runtime:Hn,frames:Hn},Yn=Zn.trigger,Zn.trigger=Kn,y.each(y.values(or),function(e){Zn[e]={on:y.partial(Zn.on,e),one:y.partial(Zn.one,e),off:y.partial(Zn.off,e)}}),y.each(zn,function(e){e=e.name,Zn[e]={on:y.partial(Zn.on,e),one:y.partial(Zn.one,e),off:y.partial(Zn.off,e),trigger:y.partial(Kn,e)}});var zn,Zn,Vn,Yn,S=Zn;function a(e,t){this.name=e,this.groups=t||[]}function Hn(e,t){e={type:e,ts:b()};return ge(t)&&y.isObject(t)&&(e.data=t),e}function Kn(t){var e=y.findWhere(zn,{name:t}),n=y.toArray(arguments).slice(1),i={};return y.each(e.groups,function(e){i.cancel||(i=Vn[e](t,n),Yn.apply(Zn,[e].concat(i)))}),i.cancel||(i=Hn(t,n),Yn.apply(Zn,[t].concat(i))),i}function Xn(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),y.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),y.each(r,function(e){e({type:t,payload:n},s.state)}),e;throw new Error("action "+t+" not found")},subscribe:y.partial(t,i),subscribeAction:y.partial(t,r),registerModule:function h(n,e){y.isString(n)&&(n=[n]);var t=u(s.state,e,n);y.extend(s.getters,p(e,t,s,n));y.extend(o,c(e,t,n));y.extend(a,l(e,t,s,n));y.each(e.modules,function(e,t){h(n.concat([t]),e)})},getters:{}};return e&&s.registerModule([],e),s;function t(e,t){return y.isFunction(t)?(e.push(t),n=e,i=t,function(){var e=n.indexOf(i);0<=e&&n.splice(e,1)}):y.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 y.each(n,function(e){i[e]||(i[e]={}),i=i[e]}),y.extend(i,me(t.state||{}))}function c(e,n,i){var r={};return y.each(e.mutations,function(e,t){r[d(i,t)]=y.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 y.reduce(e,function(e,t,n){return 0===n.indexOf(i)&&(e[n.replace(i,"")]=t),e},{})}(i.getters,r),rootGetters:i.getters};return y.each(e.actions,function(e,t){n[d(r,t)]=y.partial(e,o)}),n}function p(e,n,i,r){var o={},a={};return y.each(e.getters,function(e,t){a[t]=o[d(r,t)]=function(){return e(n,a,i.state,i.getters)}}),o}}var A=Xn(),Jn=(A.subscribe(function(e,t){}),"_PENDO_T_"),qn=11,Qn="visitorId",ei="oldVisitorId",ti="accountId",ni=function(e){return(e=void 0===e?"":e)+Et(qn)};var ii=function(e){return ge(e)&&""!==e&&e!==ui&&"boolean"!=typeof e&&"object"!=typeof e&&!((e=e)&&"string"==typeof e&&0===mt.call(e).length)},ri=function(e){return!(!e||"number"==typeof e)&&e.substring(0,Jn.length)===Jn},oi=function(){return!m.get("disablePersistence")},ai=function(e){e=e||[Qn,ti,ei];var t=m.get("identityStorageSuffix")||v.apiKey;y.each(e,function(e){dn(un(e,t)),w.clear(e,!1,t)})},si="VISITOR-UNIQUE-ID",di=function(e){return si===e},ui="::",ci=function(e){return new RegExp(ui).test(e)};function li(e){return e.old_visitor_id!==e.visitor_id}var pi,hi=function(e,t){var n,i={old_visitor_id:E(),old_account_id:vi()};ii(e)?(ii(n=e)?gi(""+n):I.info("Invalid visitor id "+n),n=t,y.isUndefined(n)?I.info("No account id provided"):ii(n)?(v.accountId=""+n,oi()&&yi(ti,v.accountId)):(delete v.accountId,delete(t=m.getLocalConfig()).account,m.setLocalConfig(t),A.commit("metadata/clearAccount"),oi()&&w.clear(ti),I.info("Invalid account id: "+n+". Account cleared")),i.visitor_id=E({generate:!0}),i.account_id=vi(),!li(t=i)&&t.old_account_id===t.account_id||(li(i)&&(n=i.old_visitor_id)&&yi(ei,pi=n),S.identify.trigger(i))):I.info("Invalid visitor id "+e)};function fi(){return ni(Jn)}function gi(e){v.visitorId!==e&&(oi()&&yi(Qn,e),v.visitorId=e)}function E(e){void 0===e&&(e={});var t=function(){if(ii(v.visitorId))return v.visitorId;var e=m.get("forceAnonymous");if(oi()){var t=bi(Qn);if(ii(t)&&(!e||ri(t)))return t}return undefined}();return gi(t=!t&&e.generate?fi():t),t}function mi(){return E()||fi()}var vi=function(){var e=m.get("forceAnonymous");return ii(v.accountId)||!oi()||e||(e=bi(ti),v.accountId=e),v.accountId};function yi(e,t){var n=m.get("identityStorageLifetime")||pn,i=m.get("identityStorageSuffix")||v.apiKey;w.write(e,t,n,!1,!0,i)}function bi(e){var t=m.get("identityStorageSuffix"),n=t||v.apiKey,n=w.read(e,!1,n)||w.read(e,!1,v.apiKey);return t&&w.clear(e,!1,v.apiKey),n}function Ii(){var e={old_visitor_id:E({generate:!1}),old_account_id:vi(),wasCleared:!0};ai(),delete v.visitorId,delete v.accountId,E({generate:!0}),y.extend(e,{visitor_id:E(),account_id:vi()}),S.identify.trigger(e)}function wi(e){e=e.data[0];return y.get(e,"wasCleared")}var Ci=function(t,n){return n=!!n,function(){try{return t.apply(this,arguments)}catch(e){n||I.critical(e)}}};pr=function(n){return function Si(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}};var Si="function"==typeof(i=window.URL)&&/native/.test(i)?i:pr(document);function Ai(e){if((t=e)&&y.isFunction(t.composedPath))try{return e.composedPath()}catch(n){return e.path}var t;return null}function Ei(e){return e.shadowRoot}function Ti(e,t){return"undefined"!=typeof(t=t||window).ShadowRoot&&e instanceof t.ShadowRoot&&e.host}function _i(e,t){return Ti(e,t)?e.host:e.parentNode}var xi={PSEUDO_ELEMENT:"::shadow",PSEUDO_SAFE:":shadow",PSEUDO_REGEX:/::shadow/g,getComposedPath:Ai,getShadowRoot:Ei,isElementShadowRoot:Ti,getParent:_i,isShadowSelector:Ri,wrapSizzle:function(i){i.intercept(function(a,e,n,i,r){var t,o;return Ri(e)?y.isFunction(document.documentElement.attachShadow)?(o=a,t=(t=e).replace(xi.PSEUDO_REGEX,xi.PSEUDO_SAFE),t=y.map(o.tokenize(t),ki),y.reduce(t,function(e,t){return e.concat(s(t,n,i,r))},[])):a(e.replace(xi.PSEUDO_REGEX,""),n,i,r):a(e,n,i,r);function s(e,t,n,i){var r,o;return Ri(e)?(o=s((r={baseCss:(o=(o=e).split(xi.PSEUDO_ELEMENT)).splice(0,1)[0],shadowCss:o.join(xi.PSEUDO_ELEMENT)}).baseCss,t),y.reduce(o,function(e,t){return xi.getShadowRoot(t)?e.concat(s(r.shadowCss,xi.getShadowRoot(t),n,i)):e},[])):a(e,t,n,i)}}),i.intercept(function(e,t,n){return!xi.isElementShadowRoot(t)&&(Ri(n)?0<i(n,document,null,[t]).length:e(t,n))},"matchesSelector")}};function Ri(e){return!!e&&-1<e.indexOf(xi.PSEUDO_ELEMENT)}function ki(e){return y.reduce(e,function(e,t){return t.value===xi.PSEUDO_SAFE?e+xi.PSEUDO_ELEMENT:e+t.value},"")}var Oi,Ni,T,Mi,Li,Fi,Pi,Gi,Di,Bi,Wi,$i,_,Ui,ji,zi,Zi,Vi,Yi,e={exports:{}},s=e,Hi=window,Ki="sizzle"+ +new Date,Xi=Hi.document,Ji=0,qi=0,Qi=Lr(),er=Lr(),tr=Lr(),nr=Lr(),ir=function(e,t){return e===t&&(Wi=!0),0},rr={}.hasOwnProperty,or=[],ar=or.pop,sr=or.push,dr=or.push,ur=or.slice,cr=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},lr="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",d="[\\x20\\t\\r\\n\\f]",i="(?:\\\\[\\da-fA-F]{1,6}"+d+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",pr="\\["+d+"*("+i+")(?:"+d+"*([*^$|!~]?=)"+d+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+i+"))|)"+d+"*\\]",hr=":("+i+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+pr+")*)|.*)\\)|)",fr=new RegExp(d+"+","g"),gr=new RegExp("^"+d+"+|((?:^|[^\\\\])(?:\\\\.)*)"+d+"+$","g"),mr=new RegExp("^"+d+"*,"+d+"*"),vr=new RegExp("^"+d+"*([>+~]|"+d+")"+d+"*"),yr=new RegExp(d+"|>"),br=new RegExp(hr),Ir=new RegExp("^"+i+"$"),wr={ID:new RegExp("^#("+i+")"),CLASS:new RegExp("^\\.("+i+")"),TAG:new RegExp("^("+i+"|[*])"),ATTR:new RegExp("^"+pr),PSEUDO:new RegExp("^"+hr),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+d+"*(even|odd|(([+-]|)(\\d*)n|)"+d+"*(?:([+-]|)"+d+"*(\\d+)|))"+d+"*\\)|)","i"),bool:new RegExp("^(?:"+lr+")$","i"),needsContext:new RegExp("^"+d+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+d+"*((?:-\\d)?\\d*)"+d+"*\\)|)(?=[^-]|$)","i")},Cr=/HTML$/i,Sr=/^(?:input|select|textarea|button)$/i,Ar=/^h\d$/i,Er=/^[^{]+\{\s*\[native \w/,Tr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_r=/[+~]/,xr=new RegExp("\\\\[\\da-fA-F]{1,6}"+d+"?|\\\\([^\\r\\n\\f])","g"),Rr=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))},kr=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,Or=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},Nr=function(){$i()},Mr=zr(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{dr.apply(or=ur.call(Xi.childNodes),Xi.childNodes),or[Xi.childNodes.length].nodeType}catch(aA){dr={apply:or.length?function(e,t){sr.apply(e,ur.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function x(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&&($i(t),t=t||_,ji)){if(11!==l&&(s=Tr.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))&&Yi(t,u)&&u.id===r)return n.push(u),n}else{if(s[2])return dr.apply(n,t.getElementsByTagName(e)),n;if((r=s[3])&&Ni.getElementsByClassName&&t.getElementsByClassName)return dr.apply(n,t.getElementsByClassName(r)),n}if(Ni.qsa&&!nr[e+" "]&&(!zi||!zi.test(e))&&(1!==l||"object"!==t.nodeName.toLowerCase())){if(u=e,c=t,1===l&&(yr.test(e)||vr.test(e))){for((c=_r.test(e)&&$r(t.parentNode)||t)===t&&Ni.scope||((a=t.getAttribute("id"))?a=a.replace(kr,Or):t.setAttribute("id",a=Ki)),o=(d=Fi(e)).length;o--;)d[o]=(a?"#"+a:":scope")+" "+jr(d[o]);u=d.join(",")}try{return dr.apply(n,c.querySelectorAll(u)),n}catch(p){nr(e,!0)}finally{a===Ki&&t.removeAttribute("id")}}}return Gi(e.replace(gr,"$1"),t,n,i)}function Lr(){var n=[];function i(e,t){return n.push(e+" ")>T.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function Fr(e){return e[Ki]=!0,e}function Pr(e){var t=_.createElement("fieldset");try{return!!e(t)}catch(aA){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function Gr(e,t){for(var n=e.split("|"),i=n.length;i--;)T.attrHandle[n[i]]=t}function Dr(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 Br(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&&Mr(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function Wr(a){return Fr(function(o){return o=+o,Fr(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 $r(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(Oi in Ni=x.support={},Li=x.isXML=function(e){var t=e.namespaceURI,e=(e.ownerDocument||e).documentElement;return!Cr.test(t||e&&e.nodeName||"HTML")},$i=x.setDocument=function(e){var e=e?e.ownerDocument||e:Xi;return e!=_&&9===e.nodeType&&e.documentElement&&(Ui=(_=e).documentElement,ji=!Li(_),Xi!=_&&(e=_.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",Nr,!1):e.attachEvent&&e.attachEvent("onunload",Nr)),Ni.scope=Pr(function(e){return Ui.appendChild(e).appendChild(_.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),Ni.attributes=Pr(function(e){return e.className="i",!e.getAttribute("className")}),Ni.getElementsByTagName=Pr(function(e){return e.appendChild(_.createComment("")),!e.getElementsByTagName("*").length}),Ni.getElementsByClassName=!!_.getElementsByClassName,Ni.getById=Pr(function(e){return Ui.appendChild(e).id=Ki,!_.getElementsByName||!_.getElementsByName(Ki).length}),Ni.getById?(T.filter.ID=function(e){var t=e.replace(xr,Rr);return function(e){return e.getAttribute("id")===t}},T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&ji)return(e=t.getElementById(e))?[e]:[]}):(T.filter.ID=function(e){var t=e.replace(xr,Rr);return function(e){e="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&ji){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[]}}),T.find.TAG=Ni.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):Ni.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},T.find.CLASS=Ni.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&ji?t.getElementsByClassName(e):Ni.qsa&&ji?t.querySelectorAll("."+e):void 0},Zi=[],zi=[],(Ni.qsa=!!_.querySelectorAll)&&(Pr(function(e){var t;Ui.appendChild(e).innerHTML=K().createHTML("<a id='"+Ki+"'></a><select id='"+Ki+"-\r\\' msallowcapture=''><option selected=''></option></select>"),e.querySelectorAll("[msallowcapture^='']").length&&zi.push("[*^$]="+d+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||zi.push("\\["+d+"*(?:value|"+lr+")"),e.querySelectorAll("[id~="+Ki+"-]").length||zi.push("~="),(t=_.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||zi.push("\\["+d+"*name"+d+"*="+d+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||zi.push(":checked"),e.querySelectorAll("a#"+Ki+"+*").length||zi.push(".#.+[+~]"),e.querySelectorAll("\\\f"),zi.push("[\\r\\n\\f]")}),Pr(function(e){e.innerHTML=K().createHTML("<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>");var t=_.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&zi.push("name"+d+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&zi.push(":enabled",":disabled"),Ui.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&zi.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),zi.push(",.*:")})),(Ni.matchesSelector=Er.test(Vi=Ui.matches||Ui.webkitMatchesSelector||Ui.mozMatchesSelector||Ui.oMatchesSelector||Ui.msMatchesSelector))&&Pr(function(e){Ni.disconnectedMatch=Vi.call(e,"*"),Vi.call(e,"[s!='']:x"),Zi.push("!=",hr)}),zi=zi.length&&new RegExp(zi.join("|")),Zi=Zi.length&&new RegExp(Zi.join("|")),e=!!Ui.compareDocumentPosition,Yi=e||Ui.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},ir=e?function(e,t){var n;return e===t?(Wi=!0,0):(n=!e.compareDocumentPosition-!t.compareDocumentPosition)||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!Ni.sortDetached&&t.compareDocumentPosition(e)===n?e==_||e.ownerDocument==Xi&&Yi(Xi,e)?-1:t==_||t.ownerDocument==Xi&&Yi(Xi,t)?1:Bi?cr(Bi,e)-cr(Bi,t):0:4&n?-1:1)}:function(e,t){if(e===t)return Wi=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e==_?-1:t==_?1:r?-1:o?1:Bi?cr(Bi,e)-cr(Bi,t):0;if(r===o)return Dr(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?Dr(a[i],s[i]):a[i]==Xi?-1:s[i]==Xi?1:0}),_},x.matches=function(e,t){return x(e,null,null,t)},x.matchesSelector=function(e,t){if($i(e),Ni.matchesSelector&&ji&&!nr[t+" "]&&(!Zi||!Zi.test(t))&&(!zi||!zi.test(t)))try{var n=Vi.call(e,t);if(n||Ni.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(aA){nr(t,!0)}return 0<x(t,_,null,[e]).length},x.contains=function(e,t){return(e.ownerDocument||e)!=_&&$i(e),Yi(e,t)},x.attr=function(e,t){(e.ownerDocument||e)!=_&&$i(e);var n=T.attrHandle[t.toLowerCase()],n=n&&rr.call(T.attrHandle,t.toLowerCase())?n(e,t,!ji):undefined;return n!==undefined?n:Ni.attributes||!ji?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},x.escape=function(e){return(e+"").replace(kr,Or)},x.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],i=0,r=0;if(Wi=!Ni.detectDuplicates,Bi=!Ni.sortStable&&e.slice(0),e.sort(ir),Wi){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return Bi=null,e},Mi=x.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+=Mi(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=Mi(t);return n},(T=x.selectors={cacheLength:50,createPseudo:Fr,match:wr,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(xr,Rr),e[3]=(e[3]||e[4]||e[5]||"").replace(xr,Rr),"~="===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]||x.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]&&x.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return wr.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&br.test(n)&&(t=(t=Fi(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(xr,Rr).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=Qi[e+" "];return t||(t=new RegExp("(^|"+d+")"+e+"("+d+"|$)"))&&Qi(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=x.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(fr," ")+" ").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)[Ki]||(a[Ki]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Ji&&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]=[Ji,s,h];break}}else if(!1===(h=p?s=(i=(r=(o=(a=e)[Ki]||(a[Ki]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===Ji&&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[Ki]||(a[Ki]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[Ji,h]),a!==e)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(e,o){var t,a=T.pseudos[e]||T.setFilters[e.toLowerCase()]||x.error("unsupported pseudo: "+e);return a[Ki]?a(o):1<a.length?(t=[e,e,"",o],T.setFilters.hasOwnProperty(e.toLowerCase())?Fr(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=cr(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:Fr(function(e){var i=[],r=[],s=Pi(e.replace(gr,"$1"));return s[Ki]?Fr(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:Fr(function(t){return function(e){return 0<x(t,e).length}}),contains:Fr(function(t){return t=t.replace(xr,Rr),function(e){return-1<(e.textContent||Mi(e)).indexOf(t)}}),lang:Fr(function(n){return Ir.test(n||"")||x.error("unsupported lang: "+n),n=n.replace(xr,Rr).toLowerCase(),function(e){var t;do{if(t=ji?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=Hi.location&&Hi.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===Ui},focus:function(e){return e===_.activeElement&&(!_.hasFocus||_.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:Br(!1),disabled:Br(!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!T.pseudos.empty(e)},header:function(e){return Ar.test(e.nodeName)},input:function(e){return Sr.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:Wr(function(){return[0]}),last:Wr(function(e,t){return[t-1]}),eq:Wr(function(e,t,n){return[n<0?n+t:n]}),even:Wr(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:Wr(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:Wr(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:Wr(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=T.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[Oi]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(Oi);for(Oi in{submit:!0,reset:!0})T.pseudos[Oi]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(Oi);function Ur(){}function jr(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function zr(a,e,t){var s=e.dir,d=e.next,u=d||s,c=t&&"parentNode"===u,l=qi++;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=[Ji,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[Ki]||(e[Ki]={}))[e.uniqueID]||(r[e.uniqueID]={}),d&&d===e.nodeName.toLowerCase())e=e[s]||e;else{if((i=r[u])&&i[0]===Ji&&i[1]===l)return o[2]=i[2];if((r[u]=o)[2]=a(e,t,n))return!0}return!1}}function Zr(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 Vr(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 Yr(h,f,g,m,v,e){return m&&!m[Ki]&&(m=Yr(m)),v&&!v[Ki]&&(v=Yr(v,e)),Fr(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++)x(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),l=!h||!e&&f?c:Vr(c,s,h,n,i),p=g?v||(e?h:u||m)?[]:t:l;if(g&&g(l,p,n,i),m)for(r=Vr(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?cr(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=Vr(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):dr.apply(t,p)})}Ur.prototype=T.filters=T.pseudos,T.setFilters=new Ur,Fi=x.tokenize=function(e,t){var n,i,r,o,a,s,d,u=er[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],d=T.preFilter;a;){for(o in n&&!(i=mr.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=vr.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(gr," ")}),a=a.slice(n.length)),T.filter)T.filter.hasOwnProperty(o)&&(i=wr[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?x.error(e):er(e,s).slice(0)},Pi=x.compile=function(e,t){var n,m,v,y,b,i,r=[],o=[],a=tr[e+" "];if(!a){for(n=(t=t||Fi(e)).length;n--;)((a=function l(e){for(var i,t,n,r=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,d=zr(function(e){return e===i},a,!0),u=zr(function(e){return-1<cr(i,e)},a,!0),c=[function(e,t,n){return e=!o&&(n||t!==Di)||((i=t).nodeType?d:u)(e,t,n),i=null,e}];s<r;s++)if(t=T.relative[e[s].type])c=[zr(Zr(c),t)];else{if((t=T.filter[e[s].type].apply(null,e[s].matches))[Ki]){for(n=++s;n<r&&!T.relative[e[n].type];n++);return Yr(1<s&&Zr(c),1<s&&jr(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(gr,"$1"),t,s<n&&l(e.slice(s,n)),n<r&&l(e=e.slice(n)),n<r&&jr(e))}c.push(t)}return Zr(c)}(t[n]))[Ki]?r:o).push(a);(a=tr(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=Di,h=e||b&&T.find.TAG("*",r),f=Ji+=null==p?1:Math.random()||.1,g=h.length;for(r&&(Di=t==_||t||r);u!==g&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument==_||($i(o),n=!ji);s=m[a++];)if(s(o,t||_,n)){i.push(o);break}r&&(Ji=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]=ar.call(i));l=Vr(l)}dr.apply(i,l),r&&!e&&0<l.length&&1<d+v.length&&x.uniqueSort(i)}return r&&(Ji=f,Di=p),c},y?Fr(i):i))).selector=e}return a},Gi=x.select=function(e,t,n,i){var r,o,a,s,d,u="function"==typeof e&&e,c=!i&&Fi(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&&ji&&T.relative[o[1].type]){if(!(t=(T.find.ID(a.matches[0].replace(xr,Rr),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=wr.needsContext.test(e)?0:o.length;r--&&(a=o[r],!T.relative[s=a.type]);)if((d=T.find[s])&&(i=d(a.matches[0].replace(xr,Rr),_r.test(o[0].type)&&$r(t.parentNode)||t))){if(o.splice(r,1),e=i.length&&jr(o))break;return dr.apply(n,i),n}}return(u||Pi(e,c))(i,t,!ji,n,!t||_r.test(e)&&$r(t.parentNode)||t),n},Ni.sortStable=Ki.split("").sort(ir).join("")===Ki,Ni.detectDuplicates=!!Wi,$i(),Ni.sortDetached=Pr(function(e){return 1&e.compareDocumentPosition(_.createElement("fieldset"))}),Pr(function(e){return e.innerHTML=K().createHTML("<a href='#'></a>"),"#"===e.firstChild.getAttribute("href")})||Gr("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),Ni.attributes&&Pr(function(e){return e.innerHTML=K().createHTML("<input/>"),e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||Gr("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),Pr(function(e){return null==e.getAttribute("disabled")})||Gr(lr,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null});var Hr=Hi.Sizzle;x.noConflict=function(){return Hi.Sizzle===x&&(Hi.Sizzle=Hr),x},s.exports?s.exports=x:Hi.Sizzle=x;Kr=D(e.exports),(Xr=y.extend(function(){return Xr.Sizzle.apply(this,arguments)},Kr)).reset=function(){Xr.Sizzle=Kr,Xr.matchesSelector=Kr.matchesSelector,Xr.matches=Kr.matches},Xr.intercept=function(e,t){Xr[t=void 0===t?"Sizzle":t]=y.wrap(Xr[t],e)},Xr.reset();var Kr,Xr,Jr=Xr;function R(e,t){var n,i=this;if(e&&e instanceof R)return e;if(!(i instanceof R))return new R(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=y.toArray(r.childNodes)}else if(y.isString(e)){t instanceof R&&(t=0<t.length?t[0]:null);try{n=Jr(e,t)}catch(o){n=[]}}else n=[e];else n=[];return y.each(n,function(e,t){i[t]=e}),i.context=t,i.length=n.length,i}function qr(){this.ownerKey="_pendo_"+Et(8)}y.extend(qr.prototype,{cache:function(e){var t;return y.isObject(e)?((t=e[this.ownerKey])||(e[this.ownerKey]=t={}),t):{}},set:function(e,t,n){e=this.cache(e);return e[t]=n,e},get:function(e,t){return t===undefined?this.cache(e):e[this.ownerKey]&&e[this.ownerKey][t]},remove:function(e,t){var n=this.cache(e);delete n[t],t!==undefined&&!y.isEmpty(n)||(e[this.ownerKey]=undefined)}});var Qr=new qr,eo=1;function to(e){return y.isNumber(e.eventPhase)&&e.eventPhase===eo}function no(e,t,n,i){return e&&t&&n?(i=i||!1,e.addEventListener?xt("addEventListener",e).call(e,t,n,i):e.attachEvent&&e.attachEvent("on"+t,n),function(){io(e,t,n,i)}):y.noop}function io(e,t,n,i){e&&t&&n&&(i=i||!1,e.removeEventListener?xt("removeEventListener",e).call(e,t,n,i):e.detachEvent&&e.detachEvent("on"+t,n))}var ro=function(e){var t=xi.getComposedPath(e);return t&&0<t.length?t[0]:e.target||e.srcElement},oo={add:function(t,e){var n=Qr.get(t),i=(n.handle||(n.handle=function(e){oo.dispatch(t,e)}),e.id=y.uniqueId(),e.capture?"captureEvents":"bubbleEvents"),i=n[i]=n[i]||{},i=i[e.type]=i[e.type]||[];return i.length||no(t,e.type,n.handle,e.capture),i.push(e),function(){R.event.remove(t,e.type,e.handler,e.capture)}},dispatch:function(r,o){var e,t,a;r&&(e=(Qr.get(r,"captureEvents")||{})[o.type]||[],t=(Qr.get(r,"bubbleEvents")||{})[o.type]||[],(t=e.concat(t)).length)&&!(a=Qr.get(o)).ignore&&(a.handled=a.handled||{},y.each(t.slice(),function(e){var t=!!e.capture===to(o),n=(n=o,y.isNumber(n.eventPhase)&&2===n.eventPhase),t=!t&&!n;if(!(ro(o)!==r&&t||a.handled[e.id])){a.handled[e.id]=!0;try{(!ge(e.selector)||0<R(ro(o)).closest(e.selector).length)&&e.handler.call(r,o)}catch(i){I.error(i)}}}))},remove:function(e,t,n,i){var r=Qr.get(e);if(r){if(y.isFunction(n)){var o=i?r.captureEvents:r.bubbleEvents;if(!o)return;var a=o[t];if(!a)return;var s=y.findIndex(a,function(e){return e.handler===n});0<=s&&a.splice(s,1),a.length||(delete o[t],io(e,t,r.handle,i))}else n===undefined&&(r.captureEvents&&r.captureEvents[t]&&(delete r.captureEvents[t],io(e,t,r.handle,!0)),r.bubbleEvents)&&r.bubbleEvents[t]&&(delete r.bubbleEvents[t],io(e,t,r.handle));y.isEmpty(r.captureEvents)&&y.isEmpty(r.bubbleEvents)&&(Qr.remove(e,"captureEvents"),Qr.remove(e,"bubbleEvents"),Qr.remove(e,"handle"))}},trigger:function(e){var t=Qr.get(e);if(!t.pendoStopped)if(e.bubbles){var n=ro(e);if(n){for(var i,r=n,o=[];r;)o.unshift(r),r=xi.isElementShadowRoot(r)?r.host:r.parentNode;if(o.unshift(window),to(e)){for(i=0;i<o.length-1&&!t.pendoStopped;++i)oo.dispatch(o[i],e);(e=oo.clone(e)).eventPhase=2}for(2!==e.eventPhase||t.pendoStopped||(oo.dispatch(n,e),(e=oo.clone(e)).eventPhase=3),i=o.length-(null==e.eventPhase?1:2);0<=i&&!t.pendoStopped;--i)oo.dispatch(o[i],e)}}else oo.dispatch(ro(e),e)},clone:function(e){var t=y.pick(e,["type","target","srcElement","altKey","ctrlKey","shiftKey","metaKey","button","which","eventPhase","bubbles",Qr.ownerKey]),e=xi.getComposedPath(e);return e&&(t.composedPath=y.constant(e)),t},$:{on:function(e,n,i,r){return y.isFunction(n)&&(r=i,i=n,n=null),e=e.split(" "),this.each(function(t){y.each(e,function(e){oo.add(t,{type:e,selector:n,handler:i,capture:r})})})}}},ao=y.extend(uo,{get:function(e,t){return uo({method:"GET",url:e,headers:t})},post:co,postJSON:function(e,t,n){return(n=n||{})["content-type"]="application/json",co(e,t=JSON.stringify(t),n)},urlFor:function(e,t,n){if(y.isArray(t))i=t;else{if(!y.isObject(t))return e||"";i=y.keys(t)}var i=y.map(i,function(e){return y.isArray(t)?Ft(e):Ft(e)+"="+Ft(t[e])}).join("&"),r=(e=e.split("#",2))[0],o=y.contains(r,"?");return[r,i?(o?"&":"?")+i:"",(n=void 0!==n?n:e[1])?"#"+n:""].join("")},supported:function(){return void 0!==so()}});function so(){return window.XMLHttpRequest||ActiveXObject}function uo(e){var t=C.defer(),n=new(so())("MSXML2.XMLHTTP.3.0");return n.open(e.method||"GET",e.url,!e.sync),y.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 co(e,t,n){return uo({method:"POST",url:e,data:t,headers:n})}var lo,po=function(){return window&&window.process&&window.process.versions&&window.process.versions.electron},ho=function(){return m.get("annotateUrl")||yo()||m.get("sanitizeUrl")||m.get(To)||m.get("xhrWhitelist")},fo=function(){return yo()?{href:vo(location.href),origin:location.origin}:{href:location.href,origin:location.origin}},go=function(){return new Si(window.location.href)},mo=function(){var e,t,n,i;return ho()?(e=go(),yo()&&(e.href=vo(e.href)),po()?(t=Fo.electronResourcesPath(),n=Fo.electronUserDirectory(),i=Fo.electronAppName(),("https://"+e.href.replace(t,i)).replace(e.origin+n,i).replace(Fo.electronUserHomeDirectory(),"").replace("file:///","")):xo(e.href)):A.getters["location/href"]()},vo=function(e){return e.match(/(.+?)(?:#|$)/)[1]},yo=function(){return!0===m.get("ignoreHashRouting")},bo=500;function Io(){return y.isUndefined(lo)&&function e(){Eo(),lo=Dt(e,bo)}(),function(){clearTimeout(lo)}}var wo=function(e){var t;try{t=mo()}catch(n){}return t},Co=[],So=!1,Ao=null;function Eo(){var t=fo().href;Ao!=t&&(Ao=t,y.map(Co,function(e){e(t)}))}var To="queryStringWhitelist";function _o(e){var t=m.get("sanitizeUrl");return y.isFunction(t)?t(e):e}function xo(e){e=e||fo().href;var t=m.get("annotateUrl");if(t)if(y.isFunction(t))try{var n,i,r,o=t();return o&&(y.isObject(o)||y.isArray(o))?(n=o.exclude,i=o.include,r=o.fragment,delete o.fragment,(n&&y.isArray(n)||i&&(y.isArray(i)||y.isObject(i)))&&(n&&(e=ko(e,null,n,!0)),o=i||{}),ao.urlFor(e,o,r)):e}catch(a){I.error("customer-provided `annotateUrl` function threw an exception",{error:a})}else I.error("customer-provided `annotateUrl` must be of type: function");return e}function Ro(e){var t,n;return!e||(t=e.indexOf("?"))<0?"":(n=e.indexOf("#"))<0?e.substring(t):n<t?"":e.substring(t,n)}function ko(e,t,n,i){e=e||wo(),t=t||Ro(e).substring(1),o=(r=e.indexOf(t))+t.length;var r=e.substring(0,r),o=e.substring(o);return(r=(t=y.isArray(n)?No(t,n,i):t).length||"?"!==r.charAt(r.length-1)?r:r.substr(0,r.length-1))+t+o}var Oo,No=function(e,t,n){return n&&y.contains(t,"*")?"":(e=Mo(e),e=n?y.omit(e,t):y.pick(e,t),Lo(e))},Mo=function(e){e=e.split("&");return y.reduce(e,function(e,t){return(t=t.split("="))[0]&&(e[t[0]]=t[1]&&Lt(t[1])),e},{})},Lo=function(e){return y.reduce(e,function(e,t,n){return t&&(n+="="+t),e&&(e+="&"),e+n},"")},Fo={watch:function(e){var n,i=[],t=(I.info("Initializing Pendo URL Watcher"),m.get("location.pushState")&&tt.supportsHistoryApi());return So||(t&&(n=window.history,y.each(["pushState","replaceState"],function(e){var t=n[e];n[e]=y.wrap(n[e],function(e){var t=e.apply(n,y.toArray(arguments).slice(1));return Dt(Eo,0),t}),i.push(function(){n[e]=t})}),i.push(no(window,"popstate",Eo))),tt.supportsHashChange()&&i.push(no(window,"hashchange",Eo)),!1!==t&&tt.supportsHashChange()||i.push(Io()),So=!0),Co.push(e),function(){y.each(i,function(e){e()}),Co.length=0,So=!1}},get:wo,externalizeURL:function(e,t,n){n=n||m.get(To);return _o(ko(e,t,n=y.isFunction(n)?n():n,!1))},startPoller:Io,getWindowLocation:fo,clear:function(){Co=[]},isElectron:po,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 Po(){var e=m.getLocalConfig("dataHost");return e||((e=m.getHostedConfig("dataHost"))?-1===e.indexOf("://")?"https://"+e:e:ot)}function Go(){Oo=Po()}function Do(){var e=m.get("contentHost")||m.get("assetHost")||at;return e=e&&-1===e.indexOf("://")?"https://"+e:e}function Bo(e){return"".concat(Do(),"/").concat(st?st+"/":"").concat(e)}function Wo(){var e=m.get("allowPartnerAnalyticsForwarding",!1)&&m.get("adoptAnalyticsForwarding",!1);return m.get("trainingPartner",!1)||e}var $o=3,Uo=1,jo=9,zo=11,Zo=4;function f(e){var t;if((t=e)&&t.nodeType===Uo)try{return window.getComputedStyle?getComputedStyle(e):e.currentStyle||void 0}catch(n){}}function Vo(e,t){var n;return!(!e||!y.isFunction(e.getPropertyValue))&&(n=[e.getPropertyValue("transform")],void 0!==t&&y.isString(t)&&n.push(e.getPropertyValue("-"+t.toLowerCase()+"-transform")),y.any(n,function(e){return e&&"none"!==e}))}function Yo(e){var t=(e=e||window).document.documentElement;return e.pageYOffset||t.scrollTop}function Ho(e){var t=(e=e||window).document.documentElement;return e.pageXOffset||t.scrollLeft}function Ko(e){return y.isNumber(e)?e:0}function Xo(e,t){e=e.offsetParent;return t=t||window,e=e&&e.parentElement===t.document.documentElement&&!qo(e)?null:e}function Jo(e){return Vo(f(e),Ze)&&isNaN(We)}function qo(e){if(e)return(e=f(e))&&(y.contains(["relative","absolute","fixed"],e.position)||Vo(e,Ze))}function Qo(e,t,n){if(!e)return{width:0,height:0};n=n||window;var t=qo(t)?t:Xo(t,n),i=t?ea(t):{top:0,left:0},e=ea(e),i={top:e.top-i.top,left:e.left-i.left,width:e.width,height:e.height};return t?(t!==n.document.scrollingElement&&(i.top+=Ko(t.scrollTop),i.left+=Ko(t.scrollLeft)),i.top-=Ko(t.clientTop),i.left-=Ko(t.clientLeft)):(i.top+=Yo(n),i.left+=Ho(n)),i.bottom=i.top+i.height,i.right=i.left+i.width,i}function ea(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}}var ta=void 0===(i=m.get("pendoCore"))||i,na=function(e,t,n){e=Oo+"/data/"+e+"/"+t,t=y.map(n,function(e,t){return t+"="+e});return 0<t.length&&(e+="?"+t.join("&")),e};function ia(){return y.compact([v.apiKey].concat(v.additionalApiKeys))}var ra=function(e){return e+="v"+ut,aa(na("log.gif",v.apiKey,{msg:e,version:ut}))};function oa(e){try{var t=Oo+"/data/errorlog?apiKey="+v.apiKey,n={error:e,version:"v"+ut,visitorId:E()},i=sa.supported()?fetch(t,{method:"POST",keepalive:!0,body:JSON.stringify(n),headers:{"Content-Type":"application/json"}}):ao.postJSON(t,n);return i.then(function(){I.info("successfully wrote error")},function(e){I.info("error writing error:"+e)})}catch(r){return I.info("Failed to write error to server using POST endpoint: "+r),ra("Failed to write error to server using POST endpoint: "+r)}}function aa(e){var t,n;return la()?(t=C.defer(),no(n=new Image,"load",t.resolve),no(n,"error",t.reject),n.src=e,t.promise):C.resolve()}function sa(e,t){t=y.extend({},{method:"GET",keepalive:!0},t=void 0===t?{}:t);return fetch(e,t)}function da(e,t){return navigator.sendBeacon(e,t)}sa.supported=function(){try{return y.isFunction(window.fetch)&&"undefined"!=typeof Request&&"keepalive"in new Request("")}catch(e){return!1}};var ua=!(da.supported=function(){return y.isFunction(navigator.sendBeacon)}),ca=function(){var e=la();return ua=!0,e&&S["transmit:locked"].trigger(),"Pendo Agent locked. No more events will be written."},la=function(){return!ua&&ta},pa=function(e,t){try{return new RegExp("(\\s|^)"+t+"(\\s|$)").test(ma(e))}catch(n){return!1}},ha=function(e,t){try{var n;pa(e,t)||(n=mt.call(ma(e))+" "+t,ga(e,n))}catch(i){}},fa=function(e,t){try{var n,i;pa(e,t)&&(n=new RegExp("(\\s|^)"+t+"(\\s|$)"),i=ma(e).replace(n," "),ga(e,i))}catch(r){}},ga=function(e,t){y.isString(e.className)?e.className=t:e.setAttribute("class",t)},ma=function(e){try{var t=e.className;return(y.isString(t)||!ge(t)?t:e.getAttribute("class"))||""}catch(n){return""}},va=function(e){e=e.replace(/-([a-z])/gi,function(e,t){return t.toUpperCase()});return e=e.substr(0,1).toLowerCase()+e.substr(1)},ya={columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},ba=function(e,t){t=function(e){if(y.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);Ia(e,t)},Ia=function(a,e){y.each(e,function(e,t){if(""!==(t=mt.call(t))){var n=va(t),i=(!y.isNumber(e)||isNaN(e)||ya[n]?y.isString(e)||(e=""+e):e+="px",e.indexOf("!important"));if(-1!==i)try{var r=mt.call(r.substring(0,i));a.style.setProperty(t,r,"important")}catch(o){a.style.cssText+=";"+t+":"+e}else try{a.style[n]=mt.call(e)}catch(o){I.info("failed to set style: "+t+" with value "+e)}}})},wa=function(){return nt()?{width:document.documentElement.offsetWidth||0,height:document.documentElement.offsetHeight||0}:{width:window.innerWidth||document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}},Ca=function(e){var t=wa(),n=Yo(),i=Ho();return e.top>=n&&e.left>=i&&e.top+e.height<=n+t.height&&e.left+e.width<=i+t.width};function Sa(t){return y.each(["left","top","width","height"],function(e){t[e]=Math.round(t[e])}),t}function Aa(e,t){var n;return void 0===t&&(t=window),function(e){var t,n=e;for(;n;){if(!(t=f(n)))return;if("fixed"===t.position)return!isNaN(We)||!Ma(n);n=n.parentNode}return}(e)?((n=ea(e)).fixed=!0,Sa(n)):Sa(Qo(e,xa(t.document),t))}var Ea=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},Ta=y.compose(function(e){return Array.prototype.slice.call(e)},function(e,t){try{return Jr(e,t)}catch(n){return ra("error using sizzle: "+n),t.getElementsByTagName(e)}}),_a=function(e,t){try{return t.children.length+t.offsetHeight+t.offsetWidth-(e.children.length+e.offsetHeight+e.offsetWidth)}catch(n){return I.info("error interrogating body elements: "+n),ra("error picking best body:"+n),0}},xa=function(e){e=e||document;try{var t=Ta("body",e);return t&&1<t.length?(t.sort(_a),t[0]||e.body):e.body&&e.body.tagName&&"body"!==e.body.tagName.toLowerCase()?e.documentElement:e.body}catch(n){return ra("Error getting body element: "+n),e.body}};function Ra(e){if(e&&e.parentNode){var t=e.parentNode,n=e;if(!t)return[];var i=[];if(t.childNodes)for(var r=0;r<t.childNodes.length;r++){var o=t.childNodes[r];1===o.nodeType&&o!==n&&i.push(o)}return i}return[]}function ka(e){if(Jr.contains(document,e))return!0;for(;e&&e.parentNode||xi.isElementShadowRoot(e);)e=xi.getParent(e);return e===document}var Oa=function(e){var t=xa();if(null!==e)return e===document||e===window?((t={left:window.pageXOffset||t.scrollLeft,top:window.pageYOffset||t.scrollTop,width:window.innerWidth,height:window.innerHeight}).right=t.left+t.width,t.bottom=t.top+t.height,t):((t=Aa(e)).right=t.left+t.width,t.bottom=t.top+t.height,t)},Na=function(e,t){return!(e.top>=t.bottom||e.bottom<=t.top||e.left>=t.right||e.right<=t.left)};function Ma(e){for(var t=e&&e.parentNode;t;){if(Vo(f(t),Ze))return 1;t=t.parentNode}}var La=function(e,t,n){t=t||/(auto|scroll|hidden)/;var i,r=(n=n||window).document.documentElement;if(ka(e))for(i=e;i;)if(xi.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))&&!y.contains([o.overflow,o.overflowY,o.overflowX],"visible")?i:null;if("absolute"===a||"fixed"===a&&Ma(i))i=Xo(i);else{if("fixed"===a)return null;i=i.assignedSlot||i.parentNode}}return null};function Fa(e,t){e=f(e);return t=t||/(auto|scroll|hidden)/,!e||"inline"===e.display?Pa.NONE:t.test(e.overflowY)&&t.test(e.overflowX)?Pa.BOTH:t.test(e.overflowY)?Pa.Y:t.test(e.overflowX)?Pa.X:t.test(e.overflow)?Pa.BOTH:Pa.NONE}var Pa={X:"x",Y:"y",BOTH:"both",NONE:"none"};function Ga(e){return e&&e.nodeName&&"body"===e.nodeName.toLowerCase()&&ka(e)}function Da(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 Ba(e){if(e){if(y.isFunction(e.getRootNode))return e.getRootNode();if(null!=e.ownerDocument)return e.ownerDocument}return document}function Wa(e,t,n){for(var i=[],r=Ba(document.documentElement),o=Ba(La(t)),a=0;o!==r&&a<20;)i.push(e(o,"scroll",n,!0)),o=Ba(La(o)),a++;return function(){y.each(y.compact(i),function(e){e()}),i.length=0}}var $a=['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 Ua(e,t,n){var i=Oa(t),t=Fa(t,n);if(t!==Pa.BOTH||Na(e,i)){if(t===Pa.Y){if(e.top>=i.bottom)return;if(e.bottom<=i.top)return}if(t===Pa.X){if(e.left>=i.right)return;if(e.right<=i.left)return}return 1}}function ja(e){if(e){if(Ga(e))return 1;var t=Oa(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 za(e,t){if(!ja(e))return!1;if(!Ga(e)){for(var n=Oa(e),i=La(e,t=t||/hidden/),r=null;i&&i!==document&&i!==r;){if(!Ua(n,i,t))return!1;i=La(r=i,t)}if(e.getBoundingClientRect){var e=e.getBoundingClientRect(),o=e.right,e=e.bottom;if(n.fixed||(o+=Ho(),e+=Yo()),o<=0||e<=0)return!1}}return!0}function Za(e){var t,n,i,r,o,a=/(auto|scroll)/,s=/(auto|scroll|hidden)/,d=Oa(e),u=La(e,s);if(!ja(e))return!1;for(;u;){if(t=Oa(u),(o=Fa(u,a))!==Pa.NONE&&(i=n=0,o!==Pa.Y&&o!==Pa.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!==Pa.X&&o!==Pa.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))),!Ua(d,u,s))return!1;u=La(u,s)}return!0}function Va(e){for(var t,n,i,r,o,a=/(auto|scroll)/,s=xa(),d=La(e,a);d&&d!==s;)t=Oa(e),n=Oa(d),r=i=0,t.bottom>n.bottom&&(i+=t.bottom-n.bottom,t.top-=i,t.bottom-=i),t.top<n.top&&(i-=o=n.top-t.top,t.top+=o,t.bottom+=o),t.right>n.right&&(r+=t.right-n.right,t.left-=r,t.right-=r),t.left<n.left&&(r-=o=n.left-t.left,t.left+=o,t.right+=o),y.isFunction(d.scrollBy)?d.scrollBy(r,i):(d.scrollTop+=i,d.scrollLeft+=r),d=La(d,a)}pr={$:{findOrCreate:function(e){return 0<this.length?this:R(e)},find:function(e){var t=R();return t.context=this.context,this.each(function(){R(e,this).each(function(){t[t.length++]=this})}),t},each:function(e){for(var t=0,n=this.length;t<n;++t)e.call(this[t],this[t],t);return this},html:function(e){return e===undefined?this.length?this[0].innerHTML:this:this.each(function(){this.innerHTML=e})},text:function(e){var t="innerText"in document.body;return e===undefined?t?this.length?this[0].innerText:this:this.length?this[0].textContent:this:this.each(function(){ba(this,{"white-space":"pre-wrap"}),t?this.innerText=e:this.textContent=e})},addClass:function(e){return e=e.split(/\s+/),this.each(function(t){y.each(e,function(e){ha(t,e)})})},removeClass:function(e){return e=e.split(/\s+/),this.each(function(t){y.each(e,function(e){fa(t,e)})})},hasClass:function(e){e=e.split(/\s+/);var n=!0;return 0!==this.length&&(this.each(function(t){y.each(e,function(e){n=n&&pa(t,e)})}),n)},toggleClass:function(e){return e=e.split(/\s+/),this.each(function(t){y.each(e,function(e){(pa(t,e)?fa:ha)(t,e)})})},css:function(e){return this.each(function(){ba(this,e)}),this},appendTo:function(e){return R(e).append(this),this},append:function(e){var t=this;return R(e).each(function(){t.length&&t[0].appendChild(this),ka(this)&&y.each(Jr("script",this),Da)}),t},prependTo:function(e){return R(e).prepend(this),this},prepend:function(e){var t,n;return this.length&&(t=this[0],n=t.childNodes[0],R(e).each(function(){n?R(this).insertBefore(n):R(this).appendTo(t)})),this},getParent:function(){var e=R(this)[0];if(e&&e.parentNode)return R(e.parentNode)},insertBefore:function(e){e=R(e)[0];e&&e.parentNode&&(e.parentNode.insertBefore(this[0],e),ka(document))&&y.each(Jr("script",this[0]),Da)},remove:function(){return this.each(function(){this.parentNode&&this.parentNode.removeChild(this)}),this},attr:function(e,t){return y.isObject(e)?(this.each(function(){y.each(e,function(e,t){this.setAttribute(t,e)},this)}),this):t!==undefined?(this.each(function(){this.setAttribute(e,t)}),this):0<this.length?this[0].getAttribute(e):void 0},closest:function(e,t){for(var n=this[0];n&&!Jr.matchesSelector(n,e);)if((n=_i(n))===document||t&&Jr.matchesSelector(n,t))return R();return R(n)},eq:function(e){return R(this[e])},height:function(e){if(this.length)return e===undefined?this[0].offsetHeight:(this[0].style.height=e+"px",this)},width:function(e){if(this.length)return e===undefined?this[0].offsetWidth:(this[0].style.width=e+"px",this)},focus:function(){return this.each(function(){y.isFunction(this.focus)&&this.focus()})}}},Ya.prototype.signal=function(){y.each(this.listeners,function(e){e.get()})},Ya.prototype.addObservers=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.listeners=[].concat(this.listeners,e)},Ya.prototype.teardown=function(){this._teardown()},or=Ya;function Ya(e,t){void 0===e&&(e=xa()),void 0===t&&(t={attributes:!0,childList:!0,subtree:!0});var n,i,r=this;this.listeners=[],this._teardown=function(){},tt.MutationObserver?((n=new(xt("MutationObserver"))(function(e,t){r.signal()})).observe(e,t),this._teardown=function(){return n.disconnect}):(i=Dt(function(){r.signal()},500),this._teardown=function(){clearTimeout(i)})}s=function(){function e(e){this._object=e}return e.prototype.deref=function(){return this._object},e};var Ha="function"==typeof(e=window.WeakRef)&&/native/.test(e)?e:s();function Ka(e,t){var n,i;return e.tagName&&-1<["textarea","input"].indexOf(e.tagName.toLowerCase())?(n=e.value,i=t,n.length<=i?n:Qa(n.substring(0,i))):Xa(e,t)}function Xa(e,t){void 0===t&&(t=128);var n,i="",r=e.nodeType;if(r===$o||r===Zo)return e.nodeValue;if((n=e).tagName&&"textarea"!=n.tagName.toLowerCase()&&(r===Uo||r===jo||r===zo)){if(!e.childNodes)return i;for(var o,a=0;a<e.childNodes.length;++a){if(t<=(i+(o=Xa(e.childNodes[a],t-i.length))).length)return i+Qa(o.substring(0,t-i.length));i+=o}}return i}function Ja(e){return 55296<=e&&e<=56319}function qa(e){return 56320<=e&&e<=57343}function Qa(e){if(!(e.length<1)){var t=e.slice(-1).charCodeAt(0);if(Ja(t)||qa(t)){if(1===e.length)return e.slice(0,-1);if(Ja(t))return e.slice(0,-1);if(qa(t))if(!Ja(e.slice(-2).charCodeAt(0)))return e.slice(0,-1)}}return e}function es(e){this.listeners={},this.events=[],this.cssSelector=e}function ts(t){if(!t)return!1;if(t===window.location.origin)return!0;if(t===Po())return!0;if(t===Do())return!0;var e=[/^https:\/\/(app|via|adopt)(\.eu|\.us|\.gov|\.jpn|\.hsbc|\.au)?\.pendo\.io$/,/^https:\/\/((adopt\.)?us1\.)?(app|via|adopt)\.pendo\.io$/,/^https:\/\/([0-9]{8}t[0-9]{4}-dot-)pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/hotfix-(ops|app)-([0-9]+-dot-)pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)\.appspot\.com$/,/^https:\/\/pendo-(io|eu|us1|govramp|jp-prod|hsbc|au)-static\.storage\.googleapis\.com$/,/^https:\/\/(us1\.)?cdn(\.eu|\.jpn|\.gov|\.hsbc|\.au)?\.pendo\.io$/],n=(ht()||(e=e.concat([/^https:\/\/([a-zA-Z0-9-]+\.)*pendo-dev\.com$/,/^https:\/\/([a-zA-Z0-9-]+-dot-)?pendo-(dev|test|io|us1|govramp|jp-prod|hsbc|au|batman|magic|atlas|wildlings|ionchef|mobile-guides|mobile-hummus|mobile-fbi|mobile-plat|eu|eu-dev|apollo|security|perfserf|freeze|armada|voc|mcfly|calypso|dap|scrum-ops|ml|helix|uat)\.appspot\.com$/,/^https:\/\/via\.pendo\.local:\d{4}$/,/^https:\/\/adopt\.pendo\.local:\d{4}$/,/^https:\/\/local\.pendo\.io:\d{4}$/,new RegExp("^https://pendo-"+rt+"-static\\.storage\\.googleapis\\.com$")])),m.get("adoptHost"));if(n&&t==="https://"+n)return!0;return!!y.contains(m.get("allowedOriginServers",[]),t)||y.any(e,function(e){return e.test(t)})}function ns(e){var t;if(y.isString(e))return t=(t=Ro(e).substring(1))&&t.length?Mo(t):{},e=y.last(y.first(e.split("?")).split("/")).split("."),{filename:y.first(e),extension:e.slice(1).join("."),query:t}}function is(e,t){var n;m.get("guideValidation")&&tt.sri&&(n=ns(t),t=y.find(["sha512","sha384","sha256"],function(e){return!!n.query[e]}))&&(e.integrity=t+"-"+(t=n.query[t],y.isString?t.replace(/-/g,"+").replace(/_/g,"/"):t),e.setAttribute("crossorigin","anonymous"))}es.prototype.get=function(){var t=this,n=this.elRef&&this.elRef.deref(),e=ka(n);if(!n||!e){if(n&&!e)return undefined;if(!(n=R(this.cssSelector)[0]))return undefined;y.each(this.events,function(e){n.addEventListener(e,function(e){return t.onEvent(e)})}),this.elRef=new Ha(n)}return n},es.prototype.getText=function(e){return void 0===e&&(e=1024),Ka(this.get(),e)},es.prototype.addEventListener=function(e,t){var n=this,i=this.get();this.events.indexOf(e)<0&&(this.events.push(e),i)&&i.addEventListener(e,function(e){return n.onEvent(e)}),this.listeners[e]=this.listeners[e]?this.listeners[e].push(t):[].concat(t)},es.prototype.onEvent=function(t){var e=t.type;y.each(this.listeners[e],function(e){return e(t)})},es.prototype.teardown=function(){var t=this,n=this.get();n&&y.each(this.events,function(e){return n.removeEventListener(e,t.onEvent)})},y.extend(R,{data:Qr,event:oo,removeNode:Ea,getClass:ma,hasClass:pa,addClass:function(e,t){var n;"string"==typeof e?(n=R(e),y.map(n,function(e){ha(e,t)})):ha(e,t)},removeClass:function(e,t){var n;"string"==typeof e?(n=R(e),y.map(n,function(e){fa(e,t)})):fa(e,t)},getBody:xa,getComputedStyle:f,getClientRect:Oa,intersectRect:Na,getScrollParent:La,isElementVisible:za,Observer:or,Element:es,scrollIntoView:Va,getRootNode:Ba}),y.extend(R.prototype,oo.$,pr.$);var rs,os=function(e){var t=0===m.get("allowedOriginServers",[]).length,n=Wo();return!(!t&&!n&&(t=rt,n=J,!/prod/.test(t)||ie(n)))||ts(e)},as=function(e,t,n){void 0===n&&(n=!1);try{var i,r="text/css",o="text/javascript";if(y.isString(e)&&(e={url:e}),!os((u=e.url,new Si(u).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];if(e.type===r){var d=document.createElement("link");d.type=r,d.rel="stylesheet",d.href=e.url,is(d,e.url),a=d}else{if(_t())return(i=document.createElement("script")).addEventListener("load",function(){t(),Ea(i)}),i.type=o,i.src=K(v).createScriptURL(e.url),is(i,e.url),document.body.appendChild(i),{};(i=document.createElement("script")).type=o,i["async"]=!0,i.src=K(v).createScriptURL(e.url),is(i,e.url),a=i,t=y.wrap(t,function(e,t){R.removeNode(i),t?n&&e(t):e.apply(this,y.toArray(arguments).slice(1))})}return s.appendChild(a),ss(a,e.url,t),a}catch(c){return{}}var u},ss=function(e,t,n){var i=!1;ge(n)&&(e.onload=function(){!0!==i&&(i=!0,n(null,t))},e.onerror=function(){!0!==i&&(i=!0,n(new Error("Failed to load script"),t))},e.onreadystatechange=function(){i||e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(i=!0,n(null,t))},"link"===e.tagName.toLowerCase())&&(Dt(function(){var e;i||((e=new Image).onload=e.onerror=function(){!0!==i&&(i=!0,n(null,t))},e.src=t)},500),Dt(function(){i||ra("Failed to load "+t+" within 10 seconds")},1e4))},ds=function(e){var t=JSON.parse(e.data),n=e.origin;I.debug(v.app_name+": Message: "+JSON.stringify(t)+" from "+n),Ss(e.source,{status:"success",msg:"ack",originator:"messageLogger"},n)},us=function(e){ls(gs)(cs(e))},cs=function(e){if(e.data)try{var t="string"==typeof e.data?JSON.parse(e.data):e.data,n=e.origin,i=e.source;if(!t.action&&!t.mutation){if(t.type&&"string"==typeof t.type)return{data:t,origin:n,source:i};I.debug("Invalid Message: Missing 'type' in data format")}}catch(r){}};function ls(t){return function(e){if(e&&ts(e.origin))return t.apply(this,arguments)}}var ps={disconnect:function(e){},module:function(e){Cs(e.moduleURL)},debug:function(e){Ts(ds)}},hs=function(e,t){ps[e]=t},fs=function(e){delete ps[e]},gs=function(e){var t;e&&(t=e.data)&&ge(ps[t.type])&&ps[t.type](t,e)},ms={},vs=function(e){if(ms[e]={},"undefined"!=typeof CKEDITOR)try{CKEDITOR.config.customConfig=""}catch(t){}},ys=function(e){return ge(ms[e])},bs=function(e){if(ms)for(var t in ms)if(0<=t.indexOf(e))return t;return null},Is=[],ws=function(){var e;Is.length<1||(e=Is.shift(),ys(e))||as(e,function(){vs(e),ws()})};var Cs=function(e){!function(e){var t={"/js/lib/ckeditor/ckeditor.js":1};y.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 Si(e);return ts(n.origin)&&t[n.pathname]}catch(i){I.debug("Invalid module URL: "+e)}}(e)||(Is.push(e),1<Is.length)||ws()},Ss=function(e,t,n){var i,r=y.uniqueId("pendo-");try{void 0===t&&void 0===n&&(t=e,e=rs||Es(),n="*"),t.guid=r,e&&y.isFunction(e.postMessage)&&(i=JSON.stringify(t),e.postMessage(i,n))}catch(o){t=o&&o.message||"";I.info("Failed to postMessage: "+t)}return r},As=function(){return window!=window.top},Es=function(){var e=new RegExp("^"+Ht(Oo).replace(/^https?:/,"https?:")),t=m.get("forceParentDesigner");return!ht()&&t||e.test(location.href)?window.parent:window.top},Ts=function(e){var t;return ge(window.addEventListener)&&y.isFunction(window.addEventListener)&&(t=ls(e),window.addEventListener("message",t,!1)),function(){ge(window.removeEventListener)&&y.isFunction(window.removeEventListener)&&t&&window.removeEventListener("message",t,!1)}},_s=y.memoize(function(){return m.get("restrictP1Access")}),xs=[],Rs=[],ks=12e4,Os=16,Ns=1900,Ms=65536,Ls=function(e){return!(!e||""===e)},Fs=function(){return Fo.get()},Ps={flush:y.noop,flushBy:y.noop,flushEvents:Ws,flushTrackEvents:Ws,flushSilos:Ws,flushTrackEventSilos:Ws,flushBeacons:Ws,flushNow:Ws,flushLater:$s,flushEvery:Us,flushStop:js,beacons:[],silos:[],trackEventSilos:[],lock:ca,unlock:function(){if(!la())return zs(),function(){var e=!la();return ua=!1,e&&S["transmit:unlocked"].trigger(),"Pendo Agent unlocked. Events will be written."}()}},Gs=[];function Ds(e){Gs.push(e)}function Bs(e){e=Gs.indexOf(e);0<=e&&Gs.splice(e,1)}function Ws(e,t){try{y.each(Gs,function(e){e.flush&&e.flush(t)})}catch(n){I.critical("unhandled error while flushing event cache",{error:n})}}function $s(e){return t=y.partial(Ws,!0),n=e,n=parseInt(n,10)||0,t[n]||(i=Dt(function(){t(),t[n]()},n),t[n]=function(){window.clearTimeout(i),delete t[n]});var t,n,i}function Us(e){var t;if(e=parseInt(e,10)||0,y.isObject(Us.intervals)||(Us.intervals={}),!Us.intervals[e])return t=window.setInterval(Ws,e),Us.intervals[e]=function(){clearInterval(t),delete Us.intervals[e]}}function js(){var e=y.values(Us.intervals).concat([Ws]);y.map(e,function(e){y.isFunction(e)&&e()})}function zs(){y.each(Gs,function(e){e.clear&&e.clear()}),js()}function Zs(e){try{return window.TextDecoder?JSON.parse((new TextDecoder).decode((t=e.split(".")[1],t=atob(t),Uint8Array.from(t,function(e){return e.codePointAt(0)})))):JSON.parse(atob(e.split(".")[1]))}catch(n){return null}var t}function Vs(e,t){return t=t?t+": ":"",e.jwt||e.signingKeyName?e.jwt&&!e.signingKeyName?(I.debug(t+"The jwt is supplied but missing signingKeyName."),!1):e.signingKeyName&&!e.jwt?(I.debug(t+"The signingKeyName is supplied but missing jwt."),!1):(e=e.jwt,!(!y.isString(e)||!/^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/.test(e))||(I.debug(t+"The jwt is invalid."),!1)):(I.debug(t+"Missing jwt and signingKeyName."),!1)}Ys=null;var Ys,Hs={set:function(e){Ys=JSON.parse(JSON.stringify(e||{}))},get:function(){return null!==Ys?Ys:{}},getJwtOptions:function(e,t){var n;return t=t||"",!!m.get("enableSignedMetadata")&&(n=Vs(e,t),m.get("requireSignedMetadata")&&!n?(I.debug("Pendo will not "+t+"."),!1):n?Zs(e.jwt):void I.debug("JWT is enabled but not being used, falling back to unsigned metadata."))}},Ks=100,Xs=(Js.prototype.isEmpty=function(){return this.queue.length<=0},Js.prototype.stop=function(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer},Js.prototype.start=function(){this.stopped=!1},Js.prototype.push=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.queue).push.apply(e,t),this.next()},Js.prototype.next=function(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)},Js.prototype.incrementFailure=function(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t},Js.prototype.pass=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()},Js.prototype.fail=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,6))))},Js.prototype.retryLater=function(e){var t=this;this.timer=Dt(function(){delete t.timer,t.next()},e)},Js.prototype.failed=function(){return 0<this.failures.get(this.queue[0])&&null!=this.timer},Js.prototype.send=function(e,t,n){var i=this;return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(function(){return i.pass(e,n)},function(){return i.fail(e,n)})},Js.prototype.drain=function(e,t){var n;if(void 0===t&&(t=!0),(n=this.queue).push.apply(n,e),this.failed())return Pt.reject();for(var i=[],r=0,o=this.queue;r<o.length;r++){var a=o[r];this.pending.has(a)?this.retryPending&&t&&!this.unloads.has(a)&&(this.incrementFailure(a),i.push(this.send(a,t,!1))):i.push(this.send(a,t,!1))}return Pt.all(i)},Js);function Js(e,t){void 0===t&&(t=Ks),this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}var qs="_PENDO_UNNAMED_",Qs=5;function ed(e,t,n,i,r,o){var a,s;a=m.get("dropAnonymous"),s=ri(E()),!ta||a&&s||(a=t,s=n,t=i,n=r,i=o,s={type:r=e,browser_time:b(),visitor_id:E({generate:!0}),account_id:vi(),url:Fo.externalizeURL(s),props:a||{},eventProperties:n},s=Dn.addTracerIds(s),"track"===r&&(s.track_event_name=t||qs),S.eventCaptured.trigger(s,i),Ls((o=s).url)&&function(e){if(m.get("freeNPSData"))return y.contains(td,e.type);return 1}(o)&&("track"===e?Fd.push(o):Ld.push(function(e,t){try{if(!e.getters["monitoring/shouldFlush"]())return t;var n=e.getters["monitoring/payload"]();e.dispatch("monitoring/flush"),y.isEmpty(n)||(t.ops=n)}catch(i){}return t}(A,o))))}var td=["load","meta","identify"];function nd(){var r=y.toArray(arguments);return function(e,t){var n=r.concat([t]);!function i(t,e){t<n.length&&n[t](e,function(e){i(t+1,e)})}(0,e)}}var id=0;function rd(e,t){e.sequence=id++,t(e)}function od(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 ad(e,t){return Wo()?sd("account_id")(e,t):t(e)}function sd(s){return function(e,t){if(!e.length)return t(e);for(var n=y.get(e[0],s),i=!0,r=1;r<e.length;r++)if(n!==y.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 dd(e){return null==e.bytes&&(e.bytes=JSON.stringify(e).length),e}function ud(e,t,n){t=n[t-1]||y.last(n);return Math.ceil(e/t)}function cd(e,t){for(var n,i=0,r=(y.isFunction(t.overhead)?t.overhead:y.constant(0))(),o=0;o<e.length;++o){if(ud(n=dd(e[o]).bytes,1,t.compressionRatio)+r<=t.lower){if(0<o)return o;break}if(ud(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(ud(i+(n=dd(e[o]).bytes),o+1,t.compressionRatio)+r>t.lower)return o;i+=n}return-1}function ld(){var e=Hs.get();return y.isEmpty(e)?0:e.jwt.length+e.signingKeyName.length}function pd(e,t){var n;if(0!==e.length)return e.JZB||(e.JZB=v.squeezeAndCompress(e.slice()),e.JZB.length<=Ms)||1===e.length?t(e):(n=e.length/2,pd(e.slice(0,n),t),void pd(e.slice(n),t))}function hd(e,t){la()&&t(e)}function fd(){return function(e,t){1===e.length&&e.JZB.length>Ms?(I.debug("Couldn't write event"),ra("Single item is: "+e.JZB.length+". Dropping."),oa(e.JZB)):t(e)}}function gd(e,t){return na(t.beacon+".gif",e,y.extend({v:ut,ct:b(),jzb:t.JZB},t.params,t.auth))}function md(e,t){return na(t.beacon+".gif",e,y.extend({v:ut,ct:b(),s:t.JZB.length},t.params))}function vd(i){return function(e,t){e.params=y.extend({},e.params,i.params),e.beacon=i.beacon,e.eventLength=e.JZB.length;var n=Hs.get();y.isEmpty(n)||(e.auth=n,e.eventLength+=n.jwt.length,e.eventLength+=n.signingKeyName.length),t(e)}}function yd(e,t){var n=Wo(),i=y.first(e),i=y.get(i,"account_id");n&&i&&(e.params=y.extend({},e.params,{acc:Ct(i)})),t(e)}function bd(e,t){var n=y.first(e),n=y.get(n,"props.source");n&&(e.params=y.extend({},e.params,{source:n})),t(e)}function Id(e){return JSON.stringify(y.extend({events:e.JZB},e.auth))}function wd(e){return e.status<200||300<=e.status?C.reject(new Error("received status code ".concat(e.status,": ").concat(e.statusText))):C.resolve()}function Cd(e,t){return sa(gd(e,t)).then(wd)}function Sd(e,t){return fetch(md(e,t),{method:"POST",keepalive:!0,body:Id(t),headers:{"Content-Type":"application/json"}}).then(wd)}function Ad(e,t){var n=Id(t);return da(md(e,t),n)?C.resolve():C.reject()}function Ed(n){return function(e,t){return t.JZB?t.eventLength<=Ns&&!m.get("sendEventsWithPostOnly")?n.preferFetch&&!t.auth&&sa.supported()?Cd(e,t):t.auth?ao({method:"GET",url:gd(e,t)}):aa(gd(e,t)):n.allowPost&&t.eventLength<=Ms?sa.supported()?Sd(e,t):da.supported()?Ad(e,t):ao({method:"POST",url:md(e,e=t),data:Id(e),headers:{"Content-Type":"application/json"}}):C.resolve():C.resolve()}}function Td(n){return function(e,t){if(t.JZB){if(t.eventLength<=Ns&&!m.get("sendEventsWithPostOnly",!1)){if(!t.auth&&sa.supported())return Cd(e,t);if(tt.msie<=11)return ao({method:"GET",url:gd(e,t),sync:!0})}if(t.eventLength<=Ms&&n.allowPost){if(sa.supported())return Sd(e,t);if(da.supported())return Ad(e,t);if(tt.msie<=11)return ao({method:"POST",url:md(e,e=t),data:Id(e),sync:!0,headers:{"Content-Type":"application/json"}})}}return C.resolve()}}function _d(e){return nd(hd,ad,pd,(t=e.shorten,t=y.defaults(t||{},{fields:[],siloMaxLength:Ms}),function(n,e){var i;1===n.length&&n.JZB.length>t.siloMaxLength&&(i=n[0],I.debug("Max length exceeded for an event"),y.each(t.fields,function(e){var t=i[e];t&&2e3<t.length&&(I.debug("shortening "+t+" and retrying"),i[e]=t.substring(0,2e3),delete n.JZB)})),e(n)}),pd,fd(),vd(e),yd,bd);var t}Rd.prototype.isEmpty=function(){return y.all(this.queues,function(e){return e.isEmpty()})},Rd.prototype.stop=function(){y.each(this.queues,function(e){return e.stop()})},Rd.prototype.push=function(){var t=y.toArray(arguments);y.each(this.queues,function(e){return e.push.apply(e,t)})},Rd.prototype.drain=function(){var t=y.toArray(arguments);return C.all(y.map(this.queues,function(e){return e.drain.apply(e,t)}))};var xd=Rd;function Rd(e){this.queues=e}function kd(t,r,o){r=r||Ed(t),o=o||Td(t);e=t;var e=y.isFunction(e.apiKey)?[].concat(e.apiKey()):[].concat(e.apiKey),e=y.map(e,function(i){var e=new Xs(function(e,t,n){return n&&(e.params=y.extend({},e.params,{rt:n})),(t?o:r)(i,e)});return e.onTimeout=function(){A.commit("monitoring/incrementCounter",t.beacon+"GifFailures")},e.retryPending=!0,e});return new xd(e)}function Od(e,t){var n=m.get("analytics.excludeEvents");0<=y.indexOf(n,e.type)||t(e)}Gd.prototype.pause=function(e){var t=this,n=(void 0===e&&(e=1e4),y.uniqueId()),i=this.locks,r=(i[n]=1,function(){i[n]&&(clearTimeout(o),delete i[n],t.flush())}),o=Dt(r,e);return r},Gd.prototype.push=function(e){var t=this;this.packageSilos(e,function(e){t.silos.push(e)})},Gd.prototype.clear=function(){this.cache.length=0,this.silos.length=0,this.sendQueue.stop()},Gd.prototype.flush=function(e){var t,e=void 0===e?{}:e,n=e.unload,n=void 0!==n&&n,e=e.hidden,e=void 0!==e&&e,i=this.cache,r=this.silos;0===i.length&&0===r.length&&this.sendQueue.isEmpty()||y.isEmpty(this.locks)&&(r.push(i.slice()),i.length=0,i=r.slice(),r.length=0,t=[],y.each(i,function(e){this.processSilos(e,function(e){t.push(e)})},this),n||e?this.sendQueue.drain(t,n):(r=this.sendQueue).push.apply(r,t))};var Nd,Md,Ld,Fd,Pd=Gd;function Gd(e){this.locks={},this.cache=e.cache||[],this.silos=e.silos||[],this.packageSilos=e.packageSilos,this.processSilos=e.processSilos,this.sendQueue=kd(e)}function Dd(e){var i,r,t=_d(e),n=nd((r=e.beacon,function(e,t){var n=m.get("excludeNonGuideAnalytics");"ptm"===r&&n||t(e)}),Od,rd,od(e.cache),(i={overhead:ld,lower:m.get("sendEventsWithPostOnly")?Ms:Ns,upper:Ms,compressionRatio:[.5*Qs,.75*Qs,Qs]},function(e,t){for(var n=cd(e,i);0<=n;)t(e.splice(0,Math.max(n,1))),n=cd(e,i)}));return new Pd(y.extend({processSilos:t,packageSilos:n},e))}var Bd=Ci(function(e){var t,n,i;if((e=e||Fo.get())&&e!==Bd.lastUrl)return Bd.lastUrl=e,t=-1,_s()||As()&&(i=Es(),Ss(i,{type:"load",url:location.toString()},"*")),I.debug("sending load event for url "+e),t={load_time:t="undefined"!=typeof performance&&y.isFunction(performance.getEntriesByType)&&!y.isEmpty(performance.getEntriesByType("navigation"))?(i=performance.getEntriesByType("navigation")[0]).loadEventStart-i.fetchStart:t},As()&&(t.is_frame=!0),"*"!==(n=Kt())&&(t.allowed_storage_keys=y.keys(n)),ed("load",t,e),$s(),S.urlChanged.trigger(),!0});function Wd(e){return"hidden"===e.visibilityState}Bd.reset=function(){Bd.lastUrl=null};var $d="visibilitychange",Ud="pagehide",jd="unload";function zd(){this.serializers=y.toArray(arguments)}function Zd(e,t){return e.tag=xi.isElementShadowRoot(t)?"#shadow-root":t.nodeName||"",e}function Vd(e){return ge(e)?""+e:""}function Yd(e,t){return e.id=Vd(t.id),e}function Hd(e,t){return e.cls=Vd(R.getClass(t)),e}y.extend(zd.prototype,{add:function(e){this.serializers.push(e)},remove:function(e){e=y.indexOf(this.serializers,e);0<=e&&this.serializers.splice(e,1)},serialize:function(n,i){return n?(i=i||n,y.reduce(this.serializers,function(e,t){return t.call(this,e,n,i)},{},this)):{}}});var Kd=256,Xd=64,Jd={a:{events:["click"],attr:["href"]},button:{events:["click"],attr:["value","name"]},img:{events:["click"],attr:["src","alt"]},select:{events:["mouseup"],attr:["name","type","selectedIndex"]},textarea:{events:["mouseup"],attr:["name"]},'input[type="submit"]':{events:["click"],attr:["name","type","value"]},'input[type="button"]':{events:["click"],attr:["name","type","value"]},'input[type="radio"]':{events:["click"],attr:["name","type"]},'input[type="checkbox"]':{events:["click"],attr:["name","type"]},'input[type="password"]':{events:["click"],attr:["name","type"]},'input[type="text"]':{events:["click"],attr:["name","type"]}};var qd=function(e,t,n){var i;return e&&e.nodeName?"img"==(i=e.nodeName.toLowerCase())&&"src"==t||"a"==i&&"href"==t?(i=e.getAttribute(t),_o((i=i)&&0===i.indexOf("data:")?(I.debug("Embedded data provided in URI."),i.substring(0,i.indexOf(","))):i+"")):(i=t,e=(t=e).getAttribute?t.getAttribute(i):t[i],(!n||typeof e===n)&&e?y.isString(e)?mt.call(e).substring(0,Kd):e:null):null};function Qd(t){var e,n,i;return y.isRegExp(t)&&y.isFunction(t.test)?function(e){return t.test(e)}:y.isArray(t)?(e=y.map(y.filter(t,y.isObject),function(e){var t;return e.regexp?(t=(t=/\/([a-z]*)$/.exec(e.value))&&t[1]||"",new RegExp(e.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),t)):new RegExp("^"+e.value+"$","i")}),function(t){return y.any(e,function(e){return e.test(t)})}):y.isObject(t)&&t.regexp?(n=(n=/\/([a-z]*)$/.exec(t.value))&&n[1]||"",i=new RegExp(t.value.replace(/^\//,"").replace(/\/[a-z]*$/,""),n),function(e){return i.test(e)}):y.constant(!1)}function eu(e,t,n,i){try{var r,o=y.indexBy(t),a=y.filter(y.filter(e,function(e){return n(e.nodeName)||o[e.nodeName]}),function(e){return!i(e.nodeName)});return a.length<=Xd?y.pluck(a,"nodeName"):(r=y.groupBy(e,function(e){return o[e.nodeName]?"defaults":y.isString(e.value)&&e.value.length>Kd?"large":"small"}),y.pluck([].concat(y.sortBy(r.defaults,"nodeName")).concat(y.sortBy(r.small,"nodeName")).concat(y.sortBy(r.large,"nodeName")).slice(0,Xd),"nodeName"))}catch(s){return I.error("Error collecting DOM Node attributes: ".concat(s)),[]}}function tu(t,n){var e=Qd(m.get("htmlAttributes")),i=Qd(m.get("htmlAttributeBlacklist")),r=(i("title")||(t.title=qd(n,"title","string")),(t.tag||"").toLowerCase()),r=("input"===r&&(r+='[type="'+n.type+'"]'),t.attrs={},eu(n.attributes,Jd[r]&&Jd[r].attr,e,i));return y.each(r,function(e){t.attrs[e.toLowerCase()]=qd(n,e)}),t}function nu(e,t){var n;return t.parentNode&&t.parentNode.childNodes&&(n=y.chain(t.parentNode.childNodes),e.myIndex=n.indexOf(t).value(),e.childIndex=n.filter(function(e){return e.nodeType==Uo}).indexOf(t).value()),e}function iu(i,e){var r;return m.get("siblingSelectors")&&e.previousElementSibling&&(r="_pendo_sibling_",this.remove(iu),e=this.serialize(e.previousElementSibling),this.add(iu),i.attrs=i.attrs||{},y.each(e,function(e,t){var n={cls:"class",txt:"pendo_text"}[t]||t;y.isEmpty(e)||(y.isObject(e)?y.each(e,function(e,t){e&&!y.isEmpty(e)&&(i.attrs[r+n+"_"+t]=e)}):i.attrs[r+n]=e)})),i}var ru=new zd(Zd,Yd,Hd,tu,nu,iu),ou=function(e){return"BODY"===e.nodeName&&e===xa()||null===e.parentNode&&!xi.isElementShadowRoot(e)},au="pendo-ignore",su="pendo-analytics-ignore",du=function(e){var t={},n=t,i=e,r=!1;if(!e)return t;do{var o=i,a=ru.serialize(o,e)}while(r||!Tt(a.cls,au)&&!Tt(a.cls,su)||(r=!0),n.parentElem=a,n=a,(i=xi.getParent(o))&&!ou(o));return r&&(t.parentElem.ignore=!0),t.parentElem},uu=["","left","right","middle"],i=function(e){return e},e=function(e,t){return e[t]},cu=[["button",function(e){return e.which||e.button},function(){return!0},function(e,t){return uu[t]}],["altKey",e,i,i],["ctrlKey",e,i,i],["metaKey",e,i,i],["shiftKey",e,i,i]],lu={click:function(e,t){for(var n=[],i=0;i<cu.length;i++){var r=cu[i],o=r[0],a=r[1],s=r[2],r=r[3],a=a(e,o);s(a)&&n.push(r(o,a))}return t.flags=n,t}},pu=function(e){try{var t,n,i,r,o,a;R.data.get(e,"counted")||(R.data.set(e,"counted",!0),t=ro(e),n=e.type,i={},(r=lu[n])&&(i=r(e,i)),R.data.get(e,"stopped")&&(i.stopped=!0),e.from&&y.isString(e.from)&&(i.from=e.from),(t=(s=t).nodeType===$o?s.parentNode:s.nodeType===Zo?null:s.correspondingUseElement||s)?(o=du(t),y.extend(o,i),Bd()&&Fo.startPoller(),o.ignore||(a=void 0,"click"===n&&(a=function(e){e=function(e){var n={};return{getEventProperties:function(){return n},addEventProperty:function(e,t){y.isString(e)&&!y.isUndefined(t)?n[e]=t:I.error("Failed to add click event property")},target:e}}(e),S.onClickCaptured.trigger(e),e=e.getEventProperties();if(!y.isEmpty(e))return e}(t)),ed(n,{target:o},undefined,undefined,a,e),S.trigger("appUsage",o,e))):I.info("Invalid HTML target",{contexts:["event","dom","processing"]}))}catch(d){I.critical("pendo.io while handling event",{error:d})}var s};var hu=y.debounce(pu,5e3,!0),fu=function(e){var t,n,i,r=[],o=(y.contains(e=e||["click","focus","submit","change"],"change")&&(e=y.without(e,"change"),r.push(function(){hu.cancel()}),r.push(no(document,"change",hu,!0))),m.get("interceptElementRemoval")||m.get("syntheticClicks.elementRemoval")),a=m.get("syntheticClicks.targetChanged"),a=(r.push(function(t,e,n,i){var r,o,a=[],s=tt.hasEvent("pointerdown"),d=s?"pointerdown":"mousedown",s=s?"pointerup":"mouseup",u=[],c={cloneEvent:function(e){e=R.event.clone(e);return e.type="click",e.from=d,e.bubbles=!0,e},down:function(e){o=!1,e&&(r=c.cloneEvent(e),n)&&c.intercept(e)},up:function(e){o=!1,e&&r&&i&&ro(r)!==ro(e)&&(o=!0,t(r))},click:function(e){r=null,o&&R.data.set(e,"ignore",!0),o=!1,n&&c.unwrap()},intercept:function(e){e=function(e){var t=[];for(;e&&!ou(e);)t.push(e),e=e.parentNode;return t}(ro(e));y.each(e,function(e){e=gu(e,c.remove);a.push(e)})},remove:function(){r&&(t(r),r=null),c.unwrap()},unwrap:function(){0<a.length&&(y.each(a,function(e){e()}),a=[])},teardown:function Ey(){c.unwrap(),y.each(u,function(e){e()})}};e&&(u.push(no(document,d,c.down,!0)),u.push(no(document,s,c.up,!0)),u.push(no(document,"click",c.click,!0)));return c}(R.event.trigger,tt.addEventListener,o,a).teardown),r.push((o=e,t=y.map(o,function(e){return l(document,e,pu,!0)}),function(){y.each(t,function(e){e()})})),r.push((n=function(e,t){t&&S.appUnloaded.trigger(),e&&S.appHidden.trigger()},m.get("preventUnloadListener")?((i=[]).push(no(document,$d,function(){Wd(document)&&n(!0,!1)})),i.push(no(window,Ud,y.partial(n,!1,!0))),function(){return y.each(i,function(e){e()})}):no(window,jd,y.partial(n,!0,!0)))),S.appHidden.on(function(){Ws(0,{hidden:!0})}),S.appUnloaded.on(function(){Ws(0,{unload:!0})}),m.get("interceptStopPropagation",!0)),o=m.get("interceptPreventDefault",!0);return a&&r.push(mu(window.Event,e)),o&&r.push(vu(window.Event,["touchend"])),function(){y.each(r,function(e){e()})}};function gu(n,i){var e=["remove","removeChild"];try{if(!n)return y.noop;y.each(e,function(e){var t=n[e];if(!t)return y.noop;n[e]=y.wrap(t,function(e){return i&&i(),e.apply(this,y.toArray(arguments).slice(1))}),n[e]._pendoUnwrap=function(){if(!n)return y.noop;n[e]=t,delete n[e]._pendoUnwrap}})}catch(t){I.critical("ERROR in interceptRemove",{error:t})}return function(){y.each(e,function(e){if(!n[e])return y.noop;e=n[e]._pendoUnwrap;y.isFunction(e)&&e()})}}function mu(n,e){var t=["stopPropagation","stopImmediatePropagation"];try{if(!n||!n.prototype)return y.noop;var i=y.indexBy(e);y.each(t,function(e){var t=n.prototype[e];t&&(n.prototype[e]=y.wrap(t,function(e){var t=e.apply(this,arguments);return i[this.type]&&(R.data.set(this,"stopped",!0),R.event.trigger(this)),t}),n.prototype[e]._pendoUnwrap=function(){n.prototype[e]=t,delete n.prototype[e]._pendoUnwrap})})}catch(r){I.critical("ERROR in interceptStopPropagation",{error:r})}return function(){y.each(t,function(e){e=n.prototype[e]._pendoUnwrap;y.isFunction(e)&&e()})}}function vu(t,e){try{if(!t||!t.prototype)return y.noop;var i=y.indexBy(e),n=t.prototype.preventDefault;if(!n)return y.noop;t.prototype.preventDefault=y.wrap(n,function(e){var t,n=e.apply(this,arguments);return i[this.type]&&((t=R.event.clone(this)).type="click",t.from=this.type,t.bubbles=!0,t.eventPhase=eo,R.event.trigger(t)),n}),t.prototype.preventDefault._pendoUnwrap=function(){t.prototype.preventDefault=n,delete t.prototype.preventDefault._pendoUnwrap}}catch(r){I.critical("ERROR in interceptPreventDefault",{error:r})}return function(){var e=t.prototype.preventDefault._pendoUnwrap;y.isFunction(e)&&e()}}function l(e,t,n,i){return e&&t&&n?(i&&!tt.addEventListener&&(i=!1),R.event.add(e,{type:t,handler:n,capture:i})):y.noop}function yu(e,t,n,i){e&&t&&n&&(i&&!tt.addEventListener&&(i=!1),R.event.remove(e,t,n,i))}var bu=function(e){R.data.set(e,"pendoStopped",!0),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,e.preventDefault?e.preventDefault():e.returnValue=!1},Iu=function(e,t){return"complete"!==(t=t||window).document.readyState?no(t,"load",e):(e(),y.noop)},k=[],wu=[],Cu={},Su={};function Au(){return k}function Eu(){return Tu(k)}function Tu(e){return y.filter(e,function(e){return!e.isFrameProxy})}function _u(e){y.isArray(e)?(k=e,S.guideListChanged.trigger({guideIds:y.pluck(e,"id")})):I.info("bad guide array input to `setActiveGuides`")}xu=[];var xu,Ru={addGuide:function(e){var t;y.isEmpty(e)||(xu=xu.concat(e),y.each(xu,function(e){return e.hide&&e.hide()}),e=k,(t=y.difference(e,xu)).length<e.length&&(_u(t),A.dispatch("frames/changeGuideList",t)))}};function ku(t,n){return y.find(Lu(),function(e){return y.get(e,t)===n})||null}function Ou(e){return ku("id",e)}function Nu(e){return ku("name",e)}function Mu(e,t){return e&&e.id?(e=Ou(e.id)).findStepById(t):null}function Lu(){var e=y.values(Su);return e.length?k.concat(y.flatten(e)):k}var Fu="_pendo-guide-tt_",Pu="_pendo-guide-mobile-tt_",Gu=function(e){return e&&e.launchMethod&&0<=e.launchMethod.indexOf("badge")},Du=function(e){return e&&e.isMultiStep&&!(e.attributes&&"group"===e.attributes.type)},Bu=function(e){return!!y.get(e,"attributes.form")};function Wu(){return"undefined"!=typeof selmo&&selmo.isPreviewing}function $u(){return!!(Wu()&&wa().width<=320)||tt.isMobileUserAgent()}function Uu(){var e=Uu.attachPoint;if(null==e){var t=m.get("guides.attachPoint");if(y.isString(t)){try{e=Jr(t)[0]}catch(n){I.info('Error finding guide attach point "'+t+'"')}e=e||document.createElement("div")}else e=!!y.isFunction(t)&&t();Uu.attachPoint=e}return e||xa()}var ju=function(e){var t=Cu[e.guideId];if(t){t=t.element();if(ka(t)&&t.id==="_pendo-badge_"+e.id)return t}},zu=function(e){var t;return e?(t=e.getGuide(),t="building-block"===y.get(t,"attributes.type")||!Du(t),!e.overrideElement&&t&&(e.overrideElement=ju(e)),e.targetElement=Zu(e),e.overrideElement||e.targetElement):(I.info("Can't get element for null step"),null)},Zu=function(e){e=e.elementPathRule||null,e=e?Jr(e):[xa()];return 0===e.length?null:y.first(e)};function Vu(e){var t=y.get(e,"attributes.activation.selector");return t||e.steps[0].elementPathRule}function Yu(e,t,n){var i,r,o,e=Aa(e),t=Aa(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!==Ca(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),y.contains([Pa.X,Pa.BOTH],i)&&(r.x=0);y.contains([Pa.Y,Pa.BOTH],i)&&(r.y=0);return r}(a,wa(),n,Fa(xa(),/hidden/)),window.scrollTo({left:o.x,top:o.y,behavior:"instant"}))}function Hu(e,t,n,i,r){var o,a=y.toArray(arguments).slice(1),s=e.apply(this,a);return n||Ba(o=Uu())!==document&&(a[1]=o,s=s.concat(e.apply(this,a))),s}function Ku(){return A.getters["frames/isLeader"]()}function Xu(e){return A.dispatch("frames/updateFrameVisibility",{visibility:e})}Ju=jn.call({}),qu={validateGuide:1,validateLauncher:1,validateGlobalScript:1},Qu={ready:1,deliverablesLoaded:1,guidesFailed:1,guidesLoaded:1,onClickCaptured:1},y.each(["ready","onClickCaptured","deliverablesLoaded","guidesFailed","guidesLoaded","validateGuide","validateLauncher","validateGlobalScript"],function(t){Qu[t]&&S[t].on(function(e){return ec[t].apply(ec[t],e.data)}),Ju[t]=function(e){return y.isFunction(e)?Ju.on(t,e):Ju[qu[t]?"triggerAsync":"trigger"].apply(Ju,[t].concat(y.toArray(arguments)))}});var Ju,qu,Qu,ec=Ju;var tc={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:function(e,t,n){return t.ajax.get(e).then(function(e){t.guidesPayload(e.data),n()})},endpoint:function(){return"guide.json"},usesXhr:function(){return!0}};function nc(e){e=ns(e);if(e){e=e.filename;if(e)return 54<e.length?e.substring(28,55):e}}rc=dc={failed:{},verified:{}},ac=oa,sc=function(e){try{var t=[];return!tc.usesXhr()&&e.domJsonpUrl?t.push(lc(e,"domJsonpUrl")):tc.usesXhr()&&e.domUrl&&t.push(cc(e,"domUrl")),e.contentUrlJs?t.push(lc(e,"contentUrlJs")):e.contentUrl&&t.push(lc(e,"contentUrl")),C.all(t)}catch(n){throw S.contentVerificationFail.trigger(e,n),n}},oc=function(e){return sc(e).then(y.noop,function(e){return/verify/.test(e)&&ac(e),C.reject(e)})},ic=function(t){return rc.failed[t.id]?C.reject():rc.verified[t.id]?C.resolve():oc(t).then(function(){rc.verified[t.id]=!0},function(e){return rc.failed[t.id]=!0,C.reject(e)})};var ic,rc,oc,ac,sc,dc,uc={verify:function(e){return m.get("guideValidation")?ic(e):C.resolve()},reset:function(){dc.failed={},dc.verified={}}};function cc(e,t){var n,i=e[t];return y.isString(i)?(n=(e=e)[{domUrl:"domHash",domJsonpUrl:"domJsonpHash",contentUrl:"contentHash",contentUrlJs:"contentJsHash"}[t=t]]||nc(e[t]),ao.get(i).then(function(e){var t;if("object"==typeof(e=e.data)&&(e=JSON.stringify(e)),(t=Y.create()).update(e),G.uint8ToBase64(t.digest())!==n)return C.reject('Unable to verify content at "'+i+'"')})):C.reject('unable to parse "'+i+'"')}function lc(e,t){var n=e[t];return tt.sri&&/[?&]sha(256|384|512)=/.test(n)?C.resolve():cc(e,t)}pc="allow",hc="deny",fc="pending",mc=function(){return 0<y.size(ec._handlers.validateGuide)},vc=function(e,n){var i=[];return y.each(e,function(e,t){n&&(t=n+"."+t),y.isObject(e)?y.each(vc(e,t),function(e){i.push(e)}):i.push([t,e])}),i};var pc,hc,fc,gc,mc,vc,yc={state:gc={},Step:function(e){var n=this;function i(e){return y.filter([["content",nc(e.contentUrl)],["contentCss",nc(e.contentUrlCss)],["contentJs",nc(e.contentUrlJs)],["dom",nc(e.domUrl)],["domJsonp",nc(e.domJsonpUrl)]],function(e){return e[1]})}return this.signature=function(){var e,t;return this.domUrl?this.guide.authoredLanguage===this.language?i(this):i({contentUrl:n.contentUrl,contentUrlCss:n.contentUrlCss,contentUrlJs:n.contentUrlJs,domUrl:n.domUrl,domJsonpUrl:n.domJsonpUrl}):(e=[["content",this.content]],(t=this.attributes&&this.attributes.variables)&&(t=vc(t)).length&&(t=y.sortBy(t,function(e){return e[0]}),e.push(["variables",t])),e)},n},Guide:function(){return this.signature=function(){return y.map(this.steps,function(e){return e.signature()})},this},Launcher:function(){var n=this,i=!1,r=function(){return 0<y.size(ec._handlers.validateLauncher)&&n.data.template};return n.before("update",function(){if(r()&&i)return!1}),n.before("render",function(){var e,t;if(r())return!i&&(t="launcher-"+St(n.signature()),(t=gc[t])!==hc)&&(t!==pc?(i=!0,t=JSON.stringify(n.signature()),e="launcher-"+St(t),ec.validateLauncher(t).then(function(){gc[e]=pc},function(){gc[e]=hc}).then(function(){i=!1,n.render(),n.update(k)},function(){i=!1}),!1):void 0)}),n.signature=function(){var e=[],t=vc(this.data);return t.length&&(t=y.chain(t).filter(function(e){return!/^contentUrl/.test(e[0])}).sortBy(function(e){return e[0]}).value(),e.push(["variables",t])),e},n},validate:function(e){if(!mc())return C.resolve();try{return y.get(e,"attributes.resourceCenter.isTopLevel",!1)?(t=e,n=N.findResourceCenterModules(t,k),t=[t].concat(n),C.all(y.map(t,bc))):bc(e)}catch(i){throw S.contentValidationFail.trigger(e,i),i}var t,n},valid:function(e){return!mc()||!!(e=gc[e.guideId])&&e.status===pc},invalid:function(e){return!!mc()&&!!(e=gc[e.guideId])&&e.status===hc},reset:function(){gc={}}};function bc(i){var r=gc[i.id];return r||(r={},gc[i.id]=r),r.contentPromise||(r.contentPromise=i.fetchContent()),r.contentPromise.then(function(){var e=JSON.stringify(i.signature()),t=i.id+"-"+St(e),n=(r[t]||(r[t]={status:fc},r.status=fc),r[t].promise);return n||(n=ec.validateGuide(e,i).then(function(){r[t].status=pc,r.status=pc},function(e){return r[t].status=hc,r.status=hc,C.reject(e)}),r[t].promise=n),n})}function Ic(e,t){var n=y.toArray(arguments).slice(2);return y.reduce(e,function(e,t){return t.apply(e,n)},t)}function wc(e){return y.isFunction(e.before)?e:Ic(wc.behaviors,e)}function Cc(e,t){return Ic(Cc.behaviors,e,t)}function Sc(e){var t,n,i=m.getLocalConfig("contentHost");return i&&e?(t=new RegExp("(https:)?\\/\\/"+((t=rt)===Fe?"pendo-static":Be(t))+"-\\d+\\.storage\\.googleapis\\.com","g"),n=new RegExp("(https:)?\\/\\/"+Be(rt)+"\\.storage\\.googleapis\\.com","g"),e.replace(t,i).replace(n,i).replace(new RegExp("(https:)?\\/\\/"+Ht(at),"g"),i)):e}function Ac(e){return m.getLocalConfig("contentHost")?JSON.parse(Sc(JSON.stringify(e))):e}wc.behaviors=[],Cc.behaviors=[];Ec={},Tc=y.compose(function(e){var t=function(){var e=Ht(m.getHostedConfig("contentHost"));if(e)return e+"*"}();return t&&!new RegExp(t).test(e)&&I.debug("Failed to verify URL: "+e+" vs "+t),e},Sc),_c=[function(e,t,n){return t="var guide = pendo.findGuideById('".concat(t,"');\nvar step = guide && guide.findStepById('").concat(n,"');"),e.replace("<% if (typeof guide !== 'undefined') { %>\nvar guide = pendo.findGuideById('<%= guide.id %>');\nvar step = guide && guide.findStepById('<%= step.id %>');\n<% } %>",t)}];var Ec,Tc,_c,xc={load:function(t){try{var e=Ec[t.id];if(e&&e.language!==t.language&&delete Ec[t.id],!Ec[t.id]){var n,i=[],r={deferred:{},language:t.language},o=!1;if(Ec[t.id]=r,tc.usesXhr()&&t.domUrl?(r.deferred.domJson=C.defer(),ao.get(Tc(t.domUrl)).then(function(e){r.domJson=Ac(e.data);var e=e.data;e=e,y.isObject(e)&&e.hasOwnProperty("type")&&e.hasOwnProperty("children")&&e.hasOwnProperty("props")?r.deferred.domJson.resolve():(I.critical(new Error("Response from the guide was not in proper JSON format")),r.deferred.domJson.reject())})["catch"](function(e){I.critical(e),S.resourceFetchFail.trigger(t,e),r.deferred.domJson.reject("Failed to load content")}),i.push(r.deferred.domJson.promise),o=!0):t.domJsonpUrl&&(r.deferred.domJson=C.defer(),n=as(Tc(t.domJsonpUrl),function(e){R.removeNode(n),e&&S.resourceFetchFail.trigger(t,e)},!0),i.push(r.deferred.domJson.promise),o=!0),t.contentUrlJs&&!m.get("preventCodeInjection")){r.deferred.content=C.defer();var a=as(Tc(function(e){if(_t()){var t=e.replace(/^https?:\/\/[^/]+\/guide-content\//,"").split("/"),n=t[0],n=$A.get("$Resource.pendoGuide"+function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",n=e.length,i=0,r=0,o="",a=0;a<n;a++)for(r=r<<8|e[a],i+=8;5<=i;)o+=t[r>>>i-5&31],i-=5;return 0<i&&(o+=t[r<<5-i&31]),o}(gt(n)));if(y.isString(n))return n+"/"+t.join("/")}return e}(t.contentUrlJs)),function(e){R.removeNode(a),e&&S.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise),t.contentUrlCss&&(r.deferred.css=C.defer(),as({url:Tc(t.contentUrlCss),type:"text/css"},function(){r.deferred.css.resolve()}),i.push(r.deferred.css.promise))}else if(t.contentUrl&&!m.get("preventCodeInjection")){r.deferred.content=C.defer();var s=as(function(e,t){if(!y.isString(e))return e;var n=y.indexOf(e,"?");return n<0?e+t:e.substring(0,n)+t+e.substring(n)}(Tc(t.contentUrl),".js"),function(e){R.removeNode(s),e&&S.resourceFetchFail.trigger(t,e)},!0);i.push(r.deferred.content.promise)}else if(!o)return C.reject("fetchedDomContent is still false");r.deferred.promise=C.all(i).then(function(){return y.omit(r,"deferred")})}return Ec[t.id].deferred.promise}catch(d){throw S.resourceFetchFail.trigger(t,d),d}},reset:function(){Ec={}},guideContent:function(e,t,n,i,r){var o,a,s;y.isString(n)&&(o=n,a=e,s=t,n=y.reduce(_c,function(e,t){return t(e,a,s)},o),y.isFunction(i)||(o=n,i=/<%/.test(o)&&/%>/.test(o)?y.template(n):y.constant(n)),o=Ec[e+t])&&o.deferred.content&&(o.content=n,o.template=i,o.script=r,o.deferred.content.resolve())},receiveDomStructureJson:function(e,t,n){(e=Ec[e+t])&&e.deferred.domJson&&(e.domJson=Ac(n),e.deferred.domJson.resolve())}},Rc=(kc.state={},kc.queue=[],kc.pending=function(){return y.reduce(kc.state,function(e,t){return e+(t.loaded?0:1)},0)},kc.reset=function(){xc.reset(),kc.state={},kc.queue=[]},kc.prefetch=function(e){var t;return kc.hasContent(e)?y.get(kc.state[Oc(e)],"promise"):(t=C.defer(),kc.queue.push([t,e]),t.promise)},kc.processPrefetch=function(e){return void 0===e&&(e=10),kc.queue.length?(e=kc.queue.splice(0,Math.max(e-kc.pending(),0)),C.all(y.map(e,function(t){return kc.fetchContent(t[1]).then(function(e){t[0].resolve(e)})["catch"](function(e){t[0].reject(e)})}))):C.resolve()},kc.fetchContent=function(t){var e=Oc(t);if(!(i=kc.state[e])){var n,i={},r=t.getGuide();if(r.control)return C.resolve();r&&r.language&&(n=r.language);var r=t.guideId+t.id,o=y.extend({id:r,language:n,guideId:t.guideId},y.pick(t,"contentUrl","contentUrlCss","contentUrlJs","domJsonpUrl","domUrl","domHash","contentHash","contentJsHash"));i.promise=uc.verify(o).then(function(){return i.verified=!0,xc.load(o)}).then(function(e){return i.loaded=!0,e}),kc.state[e]=i}return i.promise.then(function(e){y.extend(t,e)})},kc.hasContent=function(e){return ge(e.content)||ge(e.domJson)},kc);function kc(n){var i=this,t=1;return(i.contentUrl||i.domJsonpUrl)&&(y.extend(i,{fetchContent:function(e){void 0===e&&(e=!1);return e?kc.prefetch(i):kc.fetchContent(i)}}),i.after("render",function(e){!function(e){var t=y.indexOf(n.steps,i);y.chain(n.steps).rest(t+1).first(e).each(function(e){y.isFunction(e.fetchContent)&&e.fetchContent()}).value()}(t)})),i}function Oc(e){var t=e.getGuide(),t=t&&t.language?t.language:"default";return e.id+"."+t}s=S.runtime,Nc=[],Mc=jn.call({}),Lc={beforeUnmount:{type:"trigger",fromUnmount:!1},beforeUpdate:{type:"trigger",fromUnmount:!1},updated:{type:"trigger",fromUnmount:!1},unmounted:{type:"trigger",fromUnmount:!0},advanced:{type:"trigger",fromUnmount:!0},dismissed:{type:"trigger",fromUnmount:!0},snoozed:{type:"trigger",fromUnmount:!0},hidden:{type:"trigger",fromUnmount:!0},beforeMount:{type:"triggerCancelable",fromUnmount:!1},beforeAdvance:{type:"triggerCancelable",fromUnmount:!1},beforePrevious:{type:"triggerCancelable",fromUnmount:!1},beforeDismiss:{type:"triggerCancelable",fromUnmount:!1},beforeSnooze:{type:"triggerCancelable",fromUnmount:!1}},s.on(function(e){var t,n=e.data[0];if(e.step=n,delete e.data,Bc(e.type))return-1<y.indexOf(["beforeUnmount","unmounted"],e.type)&&(t="active"===(t=n).seenState?"hidden":t.seenState,e.reason=t,"unmounted"===e.type)&&Mc.trigger(t,e),t=Lc[e.type].type,Mc[t](e.type,e),"unmounted"===e.type?Mc.trigger("afterUnmounted",e):"beforeMount"===e.type&&Dc(this,e,n),"triggerCancelable"!==t&&e.cancel&&delete e.cancel,e}),Wc.prototype.on=function(e,t){var n,i;Bc(e)?(Lc[e].fromUnmount&&(t=y.once(t)),n=this.step,i=t,t=Ci(t=function(e){if(e.step.id===n.id)return i(e);I.debug("called guide runtime callback on wrong step")}),Mc.on(e,t),this.purge=y.compose(this.purge,y.partial(Mc.off,e,t))):I.info("GUIDE-RUNTIME: Warning! Unregisterable event type "+e)};var Nc,Mc,Lc,Fc={initialize:function(){var e=m.get("guides.globalScripts");y.each(e,Fc.addGlobalScript)},teardown:function(){y.each(Nc,Fc.removeGlobalScript)},addGlobalScript:function(e){var t,n,i,r;t=e,(i=y.without(y.keys(t),"script","test","regex","beforeMount")).length&&(n=t.script,t.script=function(){if(y.each(i,function(e){Bc(e)&&this.on(e,t[e])},this),y.isFunction(n))return n.apply(this,arguments)}),r=e=t,!y.isFunction(r.script)&&!y.isFunction(r.beforeMount)||r.test&&!y.isFunction(r.test)||r.regex&&!y.isRegExp(r.regex)?I.critical("Error adding invalid GlobalScript via API"):Nc.push(e)},removeGlobalScript:function(e){0<=(e=y.indexOf(Nc,e))&&Nc.splice(e,1)},getContext:function(e){return new Wc(e)},runCustomScripts:function(i,r){y.each(Gc(i,r),function(e){try{var t=Fc.getContext(i);e.call(t,i,r,v)}catch(n){I.critical("Exception thrown running code block for: "+JSON.stringify({guideId:r.id,stepId:i.id}),{error:n})}})}};function Pc(e,n,i,r){return y.filter(e,function(e){if(y.isFunction(e[r])){if(y.isFunction(e.test))try{return e.test(n,i,v)}catch(t){return I.critical("Error in global script test code block",{error:t}),!1}return y.isRegExp(e.regex)?e.regex.test(i.name)||e.regex.test(n.name):!0}})}function Gc(e,t,n){var i=[];return"script"===(n=void 0===n?"script":n)&&y.isFunction(e.script)&&i.push(e.script),y.size(Nc)&&(e=Pc(Nc,e,t,n),y.each(e,function(e){i.push(e[n])})),i}function Dc(n,i,r){var o=r.guide;o&&y.all(Gc(r,o,"beforeMount"),function(e){try{return e.call(n,i),!i.cancel}catch(t){return I.critical("Exception thrown running beforeMount for: "+JSON.stringify({guideId:o.id,stepId:r.id}),{error:t}),!1}})}function Bc(e){return Lc[e]}function Wc(n){this.step=n,y.each(["read","write","clear"],function(t){this[t]=w[t],this[t+"ByGuide"]=function(){var e=y.first(arguments)+":"+y.get(n,"guide.id");return w[t].apply(this,[e].concat(y.rest(arguments)))}},this);var e=y.bind(function(e){this.step.id!==e.step.id?I.debug("aborting afterUnmounted b/c step ids don't match"):this.purge()},this);this.purge=y.partial(Mc.off,"afterUnmounted",e),Mc.on("afterUnmounted",e)}function $c(e){return e.props&&e.props.id&&0===e.props.id.indexOf("pendo-g-")?e:e.children?y.find(e.children,$c):void 0}function Uc(e,t){if(t(e))return e;if(e.children)for(var n=0;n<e.children.length;n++){var i=Uc(e.children[n],t);if(i)return i}return!1}function jc(e,t){if(t.props&&t.props.id===e)return t;if(t.children)for(var n=0;n<t.children.length;n++){var i=jc(e,t.children[n]);if(i)return i}}var zc={buildNodesFromTemplate:function(e,t,n,i,r){var o=i||k,a=r||v.BuildingBlockGuides.buildNodeFromJSON;switch(e){case"pendo_resource_center_module_list_item":return function(p,h,f,g){var e=p.templateChildren;return y.reduce(e,function(e,t,n){var i=N.findResourceCenterHomeView(f),r=y.find(f,function(e){return e.id===t.id});if(v.designer)r=t,i=y.find(f,function(e){return y.get(e,"attributes.resourceCenter.isTopLevel")});else{if(!r)return e;if(!r.hasResourceCenterContent)return y.each(r.children,function(e){e=Ou(e);e&&e.control&&e.steps[0].onControlGuide("control")}),e}var o,a,s,d=JSON.parse(JSON.stringify(p)),u=(delete d.templateChildren,d.props.id=d.props.id+"-"+n,d.props["data-pendo-module-guide-id"]=r.id,d.actions||(d.actions=[]),{action:"renderResourceCenterModule",source:d.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id}],uiMetadata:{},eventType:"click"}),u=(d.props["data-localization-direction"]&&u.parameters.push({name:"transitionDirection",type:"string",value:d.props["data-localization-direction"]}),v.designer||d.actions.push(u),y.get(i,"attributes.notificationBubble")),c=y.get(i,"attributes.notifications"),u=(u&&c&&("AnnouncementsModule"===y.get(r,"attributes.resourceCenter.moduleId")&&(o=r.id),o="chat"===y.get(r,"attributes.resourceCenter.integrationName")?"chat":o)&&(d.props["data-pendo-notification-id"]=o,c=d,r=u,u=o,o=(i=i).attributes.notifications.individualCounts[o],c=Uc(c,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-row")}))&&(s=y.find(c.children,function(e){return e&&e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-text")}))&&s.props&&s.props.style&&(l=parseInt(s.props.style.width,10))&&!isNaN(l)&&(a=c.children.indexOf(s),l=l-40+"px","100%"!==s.props.style.width&&(s.props.style.width=l),(l="rtl"===s.props.dir)?s.props.style["padding-left"]="40px":s.props.style["padding-right"]="40px",s.props.style["box-sizing"]="content-box",s={type:"div",children:[{type:"div",content:String(i.attributes.notifications.individualCounts[u]),props:{style:{position:"relative",top:"50%","font-weight":r["font-weight"],"font-family":r["font-family"],color:r.color}}}],props:{id:"pendo-home-view-bubble","class":"_pendo-home-view-bubble",style:Wt(Wt(Wt({position:"absolute","border-radius":"20px",height:"26px","line-height":"0px",padding:"0px 10px"},!l&&{right:"20px"}),l&&{left:"20px"}),{top:"50%","margin-top":"-14px","box-sizing":"content-box","background-color":r["background-color"],display:o?"block":"none"}),"aria-hidden":!0}},c.children.splice(a+1,0,s)),Uc(d=Vc(d,t,d.props.id,n),function(e){e=y.get(e,"props.class");return e&&0<=e.indexOf("_pendo-resource-center-module-list-item-text-container")})),i=Uc(d,function(e){e=y.get(e,"props.id");return e&&0<=e.indexOf("pendo-right-caret")}),l=Uc(d,function(e){e=y.get(e,"props.id");return e&&0<=e.indexOf("pendo-home-view-bubble-".concat(n))});return u&&(u.props["aria-hidden"]=!0,i)&&(i.props["aria-labelledby"]="".concat(u.props.id," ").concat(l&&l.props.id)),e.concat(g(d,h,f))},[])}(t,n,o,a);case"pendo_resource_center_guide_list_item":return function(o,a,s,d){var e=o.templateChildren;return y.reduce(e,function(e,t,n){var i,r=Yc(s,t);return r?(i=JSON.parse(JSON.stringify(o)),t.keywords&&(i.props["data-_pendo-text-list-item-1"]=t.keywords),delete i.templateChildren,i.props.id=i.props.id+"-"+n,i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:r.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},v.designer||i.actions.push(r),i=Vc(i,t,i.props.id,n),e.concat(d(i,a,s))):e},[])}(t,n,o,a);case"pendo_task_list":return function(e,t,n,i){var r=e.templateChildren;y.filter(r,function(e){return Yc(n,e)}).length?(e.children=y.filter(e.children,function(e){return"pendo_task_list_fallback_text"!==e.templateName}),function o(e,t){e.templateName&&(e.templateChildren=t);if(!e.children||!e.children.length)return;for(var n=0;n<e.children.length;n++)o(e.children[n],t)}(e,r)):e.children=y.filter(e.children,function(e){return"pendo_task_list_item"!==e.templateName&&"pendo_task_list_progress_bar"!==e.templateName});return N.updatePseudoStyleSelectors(e),[i(e,t,n)]}(t,n,o,a);case"pendo_resource_center_onboarding_item":case"pendo_task_list_item":return function(s,d,u,c){var e=s.templateChildren;return y.reduce(e,function(e,t,n){var i,r,o,a=Yc(u,t);return a?(delete(i=JSON.parse(JSON.stringify(s))).templateChildren,i.props.id=i.props.id+"-"+n,i.props["data-pendo-show-guide-id"]=a.id,i.props["class"]+=" pendo-task-list-item",i.actions||(i.actions=[]),r={action:"showGuide",source:i.props.id,destination:"EventRouter",parameters:[{name:"guideId",type:"string",value:a.id},{name:"reason",type:"string",value:"launcher"}],uiMetadata:{},eventType:"click"},v.designer||i.actions.push(r),r=a.getTotalSteps(),o=a.getSeenSteps(),a.isComplete()&&(o=r),a=parseInt(o/r*100,10),Uc(i,function(e){return e.svgWidgetId}).svgAttributes.fillCircle.percentComplete=a,t.hasOwnProperty("subtitle")?t.stepProgress=Zc(t.subtitle,{currentStep:o,totalSteps:r}):t.stepProgress="Step "+o+" of "+r,i=Vc(i,t,i.props.id,n),e.concat(c(i,d,u))):e},[])}(t,n,o,a);case"pendo_resource_center_onboarding_progress_bar":case"pendo_task_list_progress_bar":return function(e,t,n,i){var r=e.templateChildren||t.getGuide().attributes.resourceCenter.children,o=0,a=0,r=(y.forEach(r,function(e){e=Yc(n,e);e&&(e.isComplete()?(o+=e.getTotalSteps(),a+=e.getTotalSteps()):(o+=e.getTotalSteps(),a+=e.getSeenSteps()))}),parseInt(a/o*100,10));isNaN(r)&&(r=0);r={totalPercentComplete:r+"%"};return Uc(e=Vc(e=JSON.parse(JSON.stringify(e)),r),function(e){return e.props&&e.props.id&&-1!==e.props.id.indexOf("pendo-progress-bar-fill")}).props.style.width=r.totalPercentComplete,[i(e,t,n)]}(t,n,o,a);case"pendo_task_list_fallback_text":return[a(t,n,o)];case"pendo_resource_center_announcement_item":return function(l,e,n,p){e=e.getGuide().attributes.resourceCenter.children,e=y.reduce(e,function(e,t){t=Yc(n,t);return t&&t.steps&&t.steps.length?e.concat(t):e},[]);if(!y.every(e,function(e){e=e.steps[0];return!!Rc.hasContent(e)}))return[];var t=N.getResourceCenter(),h=y.get(t,"attributes.notificationBubble");h&&(delete h.dir,"rtl"===l.props["data-localization-direction"])&&(h.dir="rtl");return y.map(e,function(e,t){var n,i,r,o,a,s,d,u="whatsnew"===y.get(e,"attributes.type"),c=JSON.parse(JSON.stringify(l));return c.props.id=c.props.id+"-"+t,c.props["data-pendo-announcement-guide-id"]=e.id,c.props["data-pendo-announcement-send-seen-event"]=!0,u?(t=c,u=h,s=p,n=wc(r=e),(d=n.steps[0]).render(),Fc.runCustomScripts(d,n),i="#"+(n=d.guideElement)[0].id+" h1::after { display:none; }",n[0].appendChild(document.createElement("style")).innerHTML=i,u&&((o=Hc(u)).props.style.top="20px"),!N.hasAnnouncementBeenSeen(r)&&o&&(t.props["class"]+=" pendo-unseen-announcement",t.children=[o]),i=s(t,d),n.appendTo(i),i):(u=c,r=h,o=p,d=wc(t=e),s=t.steps[0],Fc.runCustomScripts(s,d),d=JSON.parse(JSON.stringify(s.domJson)),u.children=[d],r&&(a=Hc(r),d=Uc(u,function(e){return"pendo-guide-container"===e.props.id}),r=parseInt(u.props.style["padding-top"],10),d=parseInt(d.props.style["padding-top"],10),a.props.style.top=d+r+5+"px"),!N.hasAnnouncementBeenSeen(t)&&a&&(u.props["class"]+=" pendo-unseen-announcement",u.children.unshift(a)),delete u.templateName,(d=jc("pendo-guide-container",u))&&(d.props.id=d.props.id+"-"+s.id),o(u,s))})}(t,n,o,a);case"pendo_guide_data_text_block":return function(e,t,n,i){var r=t.getGuide?t.getGuide():y.find(n,function(e){return e.id===t.guideId}),o=y.get(r,"attributes.dates."+r.language,!1);o=o?{showsAfter:o}:(o=y.get(r,"currentFirstEligibleToBeSeenAt")||y.get(r,"showsAfter")||y.get(r,"publishedAt"),o=o?new Date(o):new Date,r=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"][o.getMonth()]+" "+o.getDate()+", "+o.getFullYear(),{showsAfter:r});return r=Vc(r=JSON.parse(JSON.stringify(e)),o),[i(r,t,n)]}(t,n,o,a);default:return[]}},generateUnreadAnnouncementMiniBubble:Hc,getGuidesInResourceCenterModule:function(e,i){e=e.attributes.resourceCenter.children;return y.reduce(e,function(e,t,n){t=Yc(i,t);return t&&e.push(t),e},[])}};function Zc(e,n){return e.replace(/<%=\s*([A-Za-z_0-9$]+)\s*%>/gi,function(e,t){return y.isNull(n[t])||y.isUndefined(n[t])?e:n[t]})}function Vc(e,t,n,i){if(e.content&&(e.content=Zc(e.content,t)),e.props&&(e.props["aria-label"]&&(e.props["aria-label"]=t.ariaLabel?Zc(e.props["aria-label"],t):""),e.props.id)&&i!==undefined&&e.props.id!==n&&(e.props.id=e.props.id+"-"+i),e.children)for(var r=0;r<e.children.length;r++)Vc(e.children[r],t,n,i);return e}function Yc(e,t){e=y.find(e,function(e){return e.id===(t.id||t)});if(v.designer)return t;if(e){if(!e.ineligibleForRC)return e;e.control&&e.steps[0].onControlGuide("control")}}function Hc(e){var t={left:"0px"};return"rtl"===e.dir&&(t={right:"0px"}),{type:"div",children:[],props:{"class":"pendo-unread-announcement-mini-bubble",style:Wt(Wt({position:"absolute","border-radius":"5px",height:"10px",width:"10px","line-height":"0px"},t),{top:"30px","box-sizing":"content-box","background-color":e["background-color"],"z-index":"10"})}}}var Kc={buildSvgNode:function(e,t){switch(e){case"onboardingProgressCircle":case"taskListProgressCircle":return Xc(t)}},createProgressCircleSvg:Xc};function Xc(e){var t,n,i,r,o,a,s;return $e(9)?(n=(t=(t=e).svgAttributes).fillCircle.stroke,i=t.backgroundCircle.stroke,t=100<=(t.fillCircle.percentComplete||0),r=R(K(v).createHTML('<div aria-hidden="true" focusable="false" class="pendo-progress-circle-ie"><div class="pendo-progress-circle-fill"></div></div>')),o=r.find(".pendo-progress-circle-fill"),t?o.css({border:"3px solid "+n,height:"10px",width:"10px"}):o.css({border:"3px solid "+i,height:"10px",width:"10px"}),r):100<=((t=e.svgAttributes).fillCircle.percentComplete||0)?(n=(n=t).fillCircle.stroke,(i=R(K(v).createHTML('<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" class="pendo-progress-circle-fill" viewBox="0 0 24 24" fill="none" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg>')))[0].setAttributeNS(null,"stroke",n),i):(r=(o=t).fillCircle.stroke,e=o.backgroundCircle.stroke,o=o.fillCircle.percentComplete||0,a='<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" version="1.1" viewBox="0 0 40 40" preserveAspectRatio="xMidYMid"><circle class="pendo-progress-circle-background" cx="20" cy="20" r="'+(a=100/(2*Math.PI))+'" stroke-width="6px" stroke-linecap="round" fill="none"></circle><circle class="pendo-progress-circle-fill" cx="20" cy="20" r="'+a+'" stroke-width="6px" stroke-linecap="round" transform="rotate(-90 20 20)" fill="none"></circle></svg>',s=(a=R(K(v).createHTML(a))).find(".pendo-progress-circle-fill")[0],a.find(".pendo-progress-circle-background")[0].setAttributeNS(null,"stroke",e),o<=0?s.setAttributeNS(null,"stroke-width","0px"):(s.setAttributeNS(null,"stroke",r),s.setAttributeNS(null,"stroke-dasharray",o+", 100")),a)}var Jc=function(e,t){return e<t},qc=y.negate(Jc);function Qc(){var e=xa();return Jo(e)?Oa(e):((e=wa()).left=0,e.top=0,e.right=e.width,e.bottom=e.height,e)}function el(e,t,n){var i={},r=t.top-e.top,e=t.left-e.left;return i.top=r-n.top,i.left=e-n.left,i.height=t.height+n.top+n.bottom,i.width=t.width+n.left+n.right,i.bottom=i.top+i.height,i.right=i.left+i.width,{top:{top:0,height:Math.max(i.top,0),left:i.left,width:i.width},left:{top:0,bottom:0,left:0,width:i.left},bottom:{top:i.bottom,width:i.width,bottom:0,left:i.left},right:{top:0,bottom:0,left:i.right,right:0}}}function tl(e){var t;if(e&&e.length)return t=Jo(xa())?Oa:ea,(e=y.reduce(e,function(n,e){var i;return za(e)?(i=t(e))?(y.each([["top",Jc],["right",qc],["bottom",qc],["left",Jc]],function(e){var t=e[0],e=e[1];n[t]&&!e(i[t],n[t])||(n[t]=i[t])}),n):void 0:n},{})).height=e.bottom-e.top,e.width=e.right-e.left,e}function nl(e,t){var n=Qc(),e=tl(e)||{top:0,left:0,right:n.width,bottom:n.height,width:0,height:0};return{viewport:n,box:e,overlays:el(n,e,t)}}function il(e){var t=[],n=y.get(e,"attributes.blockOutUI",{});if(n.additionalElements=n.additionalElements||"",n.enabled&&e.element!==xa()){t.push(e.element);for(var i=n.additionalElements.replace(/\s/g,"").split(","),r=0;r<n.additionalElements.length;r++)try{var o=R(i[r]);o&&y.each(o,function(e){t.push(e)})}catch(a){I.info("Additional element for blockOutUI is invalid selector",{contexts:["error"]})}}return t}var rl=null,ol=function(e){var t=!y.isEqual(e,rl);return rl=e,t},al=null,sl=function(e){var t=!y.isEqual(e,al);return al=e,t},dl=null,ul=function(e){var t=!y.isEqual(e,dl);return dl=e,t},cl=function(e){return sl(e.viewport)||ol(e.box)||ul(e.overlays)};function ll(e){try{var t=nl(il(e),y.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0}));cl(t)&&y.each(e.backdrop.children,function(n){var e=n.getAttribute("pendo-region"),e=t.overlays[e];y.each(e,function(e,t){n.style[t]=e+"px"})})}catch(n){I.info("Failed to update BlockOut ui",{contexts:["error"]})}}function pl(e){try{var t,n,i,r;if(!(0<R("._pendo-guide-backdrop_").length))return t=nl(il(e),y.get(e,"attributes.blockOutUI.padding",{left:0,right:0,top:0,bottom:0})),cl(t),n={"z-index":1e4,position:"fixed"},i=[],y.each(t.overlays,function(e,t){t=function(e,t){var n=R("div.pendo-backdrop-region-"+e);n.length||(n=R(document.createElement("div")).addClass("pendo-backdrop-region-"+e));return R(n).css(t).attr("pendo-region",e),n}(t,y.extend({},e,n));i.push(t)}),o=i,a=jc("pendo-backdrop",e.domJson),y.each(["left","right","width","height","bottom","top"],function(e){delete a.props.style[e]}),s=R(document.createElement("div")).attr("id","pendo-backdrop").addClass("_pendo-guide-backdrop_"),y.each(a.props,function(n,i){y.each(o,function(e,t){"style"===i?e.css(a.props.style):"class"===i?e.addClass(n):"id"===i?e.attr(i,n+"-"+t):e.attr(i,n),s.append(e)})}),r=s,e.backdrop=r[0],r}catch(d){I.info("Failed to add BlockOut ui",{contexts:["error"]})}var o,a,s}var hl="top",fl="bottom",gl="left",ml="right",vl="center";function yl(e,t,n){return n===ml||n===gl?n:(n=e.left,(t=(e=t.width)/3)<n&&n<2*t?vl:n<e/2?ml:gl)}var bl={createBBTooltip:Il,getBBTooltipDimensions:Al,determineBBHorizontalBias:yl,determineTooltipPosition:El,positionBBTooltipWithBias:Tl,calculateToolTipPositionForTopBottom:_l,calculateToolTipPositionForLeftRight:xl,buildTooltipCaret:Rl,styleTopOrBottomCaret:Ol,styleLeftOrRightCaret:Nl,buildBorderCaret:Ml,determineBorderCaretColor:Fl,placeBBTooltip:function(e,t){var n,i,r,o,a,t=t||function(e){var t,n;if(e.guideElement)return t="pendo-resource-center-container"===e.guideElement.attr("id"),n=$c(e.domJson),(t?e.guideElement:e.guideElement.find("#"+n.props.id))[0]}(e);t&&(i=e.element||zu(e),n=Aa(i),"none"!==f(e.elements[0]).display)&&(i=ea(i),a=e.attributes.layoutDir,e=e.guideElement,r=R(t).find("#pendo-guide-container"),o=r[0].style,t=f(t),t={height:parseInt(t.height,10),width:parseInt(t.width,10)},r={height:parseInt(r[0].getAttribute("data-caret-height"),10)||0,width:parseInt(r[0].getAttribute("data-caret-width"),10)||0,backgroundColor:r[0].style["background-color"],offset:10,borderColor:o.borderColor,borderWidth:parseInt(o.borderWidth,10)},o=this.getBBTooltipDimensions(n,t,r,a,i),r.height&&r.width&&(t=e.find(".pendo-tooltip-caret")[0],a=e.find(".pendo-tooltip-caret-border")[0],t&&kl(t,o,r),a)&&Ll(a,r,o.layoutDir,t),e.css({top:o.top,left:o.left,position:n.fixed?"fixed":"absolute"}))},attachBBAdvanceActions:Sl,attachScrollHandlers:wl,isBuildingBlockGuideRelativeToElement:function(e){return!(!e.domJson||!y.isObject(e.domJson)||!(e=$c(e.domJson))||"Relative to Element"!==e.props["data-vertical-alignment"])},positionStepForTooltip:function(e,t,n){Il(t,e.element,e,n),e.hasBeenScrolledTo||(Va(e.element),Yu(e.element,n,e.attributes.layoutDir),e.hasBeenScrolledTo=!0)}};function Il(e,t,n,i){var r,o,a,s,d,u;if(n.guideElement)return(r=n.guideElement).addClass($u()?Pu:Fu),0===(o=Aa(t)).height&&0===o.width?null:(t=ea(t),(e=Uc(e,function(e){return"pendo-guide-container"===e.props.id}))?(u=n.attributes.layoutDir,d={height:i.offsetHeight,width:i.offsetWidth},a={height:parseInt(e.props["data-caret-height"],10)||0,width:parseInt(e.props["data-caret-width"],10)||0,backgroundColor:e.props.style["background-color"],offset:10},Sl(n),e.props.style.border&&(e=e.props.style.border.split(" "),a.borderColor=e[2],a.borderWidth=parseInt(e[0],10)),e=Al(o,d,a,u,t),n&&(n.dim=e),n&&y.isFunction(n.getGuide)&&(s=n.getGuide()),d=y.get(s,"attributes.resourceCenter"),o.fixed?(r.css({position:"fixed"}),i.style.position="absolute"):n&&d||(i.style.position="absolute"),a.height&&a.width&&Rl(r,e,a),u="300000",i&&i.style&&i.style["z-index"]&&(u=i.style["z-index"]),r.css({"z-index":u}),d||r.css({height:"auto",width:"auto",overflow:"visible"}),n.elementPathRule&&r.css({left:e.left,top:e.top,position:o.fixed?"fixed":"absolute"}),"top"===e.layoutDir&&e.hbias===gl&&r.find("#pendo-watermark").css({top:"auto",bottom:"100%"}),wl(n,Pl),r[0]):void 0)}function wl(e,t){e&&y.isFunction(e.attachEvent)&&(Wu()&&e.element===R.getBody()||(t=y.throttle(y.bind(t,e,e),10),e.attachEvent(window,"scroll",t,!0),Wa(y.bind(e.attachEvent,e),e.targetElement,t)))}function Cl(t,n){var e=R(n.elementPathRule)[0];n.attachEvent(e,t,function(e){R.data.set(e,"advanced",!0),Im(t,n)})}function Sl(e){e.attributes&&e.attributes.advanceActions&&e.elementPathRule&&(e.attributes.advanceActions.elementHover?Cl("mouseover",e):e.attributes.advanceActions.elementClick&&Cl("click",e))}function Al(e,t,n,i,r){var o,a,s=wa(),i=i||"auto",t={width:Math.min(t.width,s.width),height:t.height},d=(t.layoutDir=i,t.hbias=yl(e,s,i),t.vbias=(o=e,d=s,(a=i)===hl||a===fl?a:(a=o.top,(d=(o=d.height)/3)<a&&a<2*d?vl:a<o/2?fl:hl)),t.layoutDir=El(t,s,r,i),Tl(t,e,s));return t.top=d.top,t.left=d.left,"top"===t.layoutDir?t.top-=n.height:"bottom"===t.layoutDir?t.top+=n.height:"right"===t.layoutDir?t.left+=n.height:"left"===t.layoutDir&&(t.left-=n.height),t}function El(e,t,n,i){var r,o,a,s,d,u,c;return i&&"auto"!==i?i:(i=n.top,o=(r=n.left)+n.width,a=n.top-e.height<0,s=n.top+n.height+e.height>t.height,d=n.left-e.width<0,u=n.left+n.width+e.width>t.width,!(s&&a&&d&&u)&&(i<t.height/3&&(c="bottom"),(i>2*t.height/3||e.hbias===vl)&&(c="top"),"top"===(c=r<e.width&&t.width-o<e.width?"bottom":c)&&n.top-e.height<0&&(c="bottom"),s&&a&&(e.hbias!==vl&&(c=e.hbias),d&&u||(u||(c="right"),d)||(c="left")),(c=c&&"bottom"!==c||!s||a?c:"top")||e.hbias)||"bottom")}function Tl(e,t,n){return"top"===e.layoutDir||"bottom"===e.layoutDir?_l(e,n,t,e.layoutDir,e.hbias):xl(e,n,t,e.vbias)}function _l(e,t,n,i,r){var o=e.height,a=e.width,s={top:null,left:null};return"bottom"===i?s.top=n.top+n.height:"top"===i&&(s.top=n.top-o),"right"===r?((i=n.left+n.width/2)+e.width>t.width&&(i-=i+e.width-t.width),s.left=i):s.left="left"===r?n.left-a+n.width/2:n.left+n.width/2-a/2,s}function xl(e,t,n,i){var r=e.height,o=e.width,a={top:null,left:null};return"right"===e.layoutDir?a.left=n.left+n.width:"left"===e.layoutDir&&(a.left=Math.max(0,n.left-o)),"bottom"===i?((o=n.top+n.height/2)+e.height>t.height&&(o-=o+e.height-t.height),a.top=o):a.top="top"===i?n.top-r+n.height/2:n.top-r/2+n.height/2,a}function Rl(e,t,n){var i=document.createElement("div"),e=(i.setAttribute("class","pendo-tooltip-caret pendo-tooltip-caret--"+t.layoutDir),i.style.position="absolute",i.style.zIndex=11,kl(i,t,n),e.find("#pendo-guide-container")[0].parentNode);e.appendChild(i),n.borderWidth&&(i=Ml(i,n,t.layoutDir),e.appendChild(i))}function kl(e,t,n){"top"!==t.layoutDir&&"bottom"!==t.layoutDir||Ol(e,t,n),"left"!==t.layoutDir&&"right"!==t.layoutDir||Nl(e,t,n)}function Ol(e,t,n){var i,r=wa();return e.style["border-left"]=n.width+"px solid transparent",e.style["border-right"]=n.width+"px solid transparent",e.style.right="",t.hbias===gl?(i=t.width-2*n.width-n.offset-n.borderWidth,e.style.left=i+"px",t.left+=n.offset+n.width+n.borderWidth):t.hbias===ml?(e.style.left=n.offset+n.borderWidth+"px",t.left-=n.offset+n.width+n.borderWidth,t.left+t.width>r.width&&(t.left=t.left-(t.left+t.width-r.width)),t.left=Math.max(0,t.left)):e.style.left=t.width/2-n.width+"px","bottom"===t.layoutDir&&(e.style["border-bottom"]=n.height+"px solid "+n.backgroundColor,e.style["border-top"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.top=i+"px",e.style.bottom=""),"top"===t.layoutDir&&(e.style["border-top"]=n.height+"px solid "+n.backgroundColor,e.style["border-bottom"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.bottom=r+"px",e.style.top=""),e}function Nl(e,t,n){var i,r=wa();return e.style["border-top"]=n.width+"px solid transparent",e.style["border-bottom"]=n.width+"px solid transparent",e.style.bottom="",t.vbias===hl?(i=t.height-2*n.width-n.offset-n.borderWidth,e.style.top=i+"px",t.top+=n.offset+n.width+n.borderWidth):t.vbias===fl?(e.style.top=n.offset+n.borderWidth+"px",t.top-=n.offset+n.width+n.borderWidth,t.top+t.height>r.height&&(t.top=t.top-(t.top+t.height-r.height)),t.top=Math.max(0,t.top)):e.style.top=t.height/2-n.width+"px","left"===t.layoutDir&&(e.style["border-left"]=n.height+"px solid "+n.backgroundColor,e.style["border-right"]="",i=-1*n.height,n.borderWidth&&(i+=n.borderWidth),e.style.right=i+"px",e.style.left=""),"right"===t.layoutDir&&(e.style["border-right"]=n.height+"px solid "+n.backgroundColor,e.style["border-left"]="",r=-1*n.height,n.borderWidth&&(r+=n.borderWidth),e.style.left=r+"px",e.style.right=""),e}function Ml(e,t,n){var i=e.cloneNode();return i.setAttribute("class","pendo-tooltip-caret-border"),i.style.zIndex=10,Ll(i,t,n,e),i}function Ll(e,t,n,i){for(var r={top:"",right:"",bottom:"",left:""},o=["Top","Right","Bottom","Left"],a=0;a<o.length;a++){var s="border"+o[a]+"Width",d="border"+o[a]+"Color",u="border"+o[a]+"Style";i.style[s]?(r[s]=parseInt(i.style[s],10)+t.borderWidth+"px",r[d]=Fl(i.style[d],t.borderColor),r[u]="solid"):(r[s]="",r[d]="",r[u]="")}"top"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.bottom=parseInt(i.style.bottom,10)-t.borderWidth+"px"),"bottom"===n&&(r.left=parseInt(i.style.left,10)-t.borderWidth+"px",r.top=parseInt(i.style.top,10)-t.borderWidth+"px"),"right"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.left=parseInt(i.style.left,10)-t.borderWidth+"px"),"left"===n&&(r.top=parseInt(i.style.top,10)-t.borderWidth+"px",r.right=parseInt(i.style.right,10)-t.borderWidth+"px"),y.extend(e.style,r)}function Fl(e,t){return"transparent"===e?e:t}function Pl(e){za(e.element)?(bl.placeBBTooltip(e),R(e.elements[0]).css({display:"block"})):R(e.elements[0]).css({display:"none"})}function Gl(i){var e=i.find('[data-pendo-grow-height="true"]');if(e.length)for(var r=Object.entries(e),o=[],t=0;t<r.length;t++)!function(e){if(Number.isInteger(Number.parseInt(r[e][0],10))){var t=r[e][1];if(y.some(o,function(e){return e.parentNode===t.parentNode}))return;var e=i[0],n=t.parentNode.closest('[data-pendo-grow-height="true"]');if(n){if(!o.includes(n))return;e=n}Dl(t,e),o.push(t)}}(t)}function Dl(e,t){for(var n=0,i=e.parentNode.children,r=0;r<i.length;r++){var o,a=i[r];a!==e&&(o=f(a),o=parseInt(o.marginTop,10)+parseInt(o.marginBottom,10),n+=a.offsetHeight+o)}var s=t.offsetHeight,t=f(t),t=parseInt(t.paddingTop,10)+parseInt(t.paddingBottom,10),d=f(e),d=parseInt(d.marginTop,10)+parseInt(d.marginBottom,10),s=Math.max(s-t-n-d,0);0<s&&(e.style.height=s+"px")}function Bl(e,t){var n,i,r,o,a,s,d,u,c,e=R("#"+e,t)[0];e&&(t=R(e),n=R(t.find("#pendo-guide-container")[0]),r="%"===(i=e.style.height)[i.length-1]?"%":"px",o=parseInt(i,10),a=e.getAttribute("data-pendo-static-height"),t.css({height:"auto"}),a||n.css({"max-height":"none"}),s=parseInt(f(e).height,10),d=wa().height,u=parseInt(e.style.top,10),u=isNaN(u)?0:u,c=parseInt(e.style.bottom,10),(d=d-u-(c=isNaN(c)?0:c))<s&&(n.css({"max-height":d+"px",overflow:"auto"}),s=d),s!==o?(t.css({height:(u=a&&o?o:s)+r}),"Centered"!==(c=e.getAttribute("data-vertical-alignment"))&&"Left Aligned"!==c&&"Right Aligned"!==c||t.css({"margin-top":"-"+(d<s?d:u)/2+"px"})):t.css({height:i}))}function Wl(e,t){e=R("#"+e,t)[0];if(e){t=e.getAttribute("data-pendo-mobile-layout");if(!t){var n=R(e),t=R(n.find("#pendo-guide-container")[0]),i=parseInt(e.style.width,10),r=(t.css({"max-width":"none"}),n.css({"margin-right":"0px"}),parseInt(f(e).width,10)),o=wa().width-parseInt(e.style.left||0,10)-parseInt(e.style.right||0,10);if(o<r&&(t.css({"max-width":o+"px"}),r=o),!isNaN(i))switch(e.getAttribute("data-vertical-alignment")){case"Centered":case"Top Aligned":case"Bottom Aligned":var a=r/2;parseInt(n.css("margin-left"),10)!==a&&n.css({"margin-left":"-"+a+"px"});break;case"Right Aligned":case"Top Right Aligned":case"Bottom Right Aligned":a=i-r;parseInt(n.css("margin-right"),10)!==a&&n.css({"margin-right":"-"+a+"px"})}}}}function $l(e,i){var e=y.isArray(e)?e:[e],e=y.reduce(e,function(e,t){var t=R("#"+t,i),n=t[0];return n&&!n.getAttribute("data-pendo-mobile-layout")&&(n=t.find("#pendo-guide-container")[0],e.push(n)),e},[]),t=e;(t=y.reduce(t,function(e,t){return e.concat(y.toArray(R(['[class*="_pendo-text-"]:not([class*="_pendo-resource-center-"])','.pendo-mock-flexbox-element > [class*="_pendo-button-"]',"._pendo-multi-choice-poll-select"].join(","),t)))},[]))&&t.length&&Ul(y.reduce(t,function(e,t){var n,t=R(t),i=Zl(t[0]),i=i.marginLeft+i.marginRight,r=zl(t);return r&&(n=r.paddingLeft+r.paddingRight,r=r.width-i-n,e.push({$blockElement:t,availableSpace:r})),e},[])),y.each(e,function(e){var t=e,t=((t=R("._pendo-open-text-poll-input",t))&&t.length&&y.each(t,function(e){var t,n=R(e),i=n.attr("data-_pendo-open-text-poll-resize-base-width"),e=(i||(i=e.style.width,n.attr("data-_pendo-open-text-poll-resize-base-width",i)),Zl(n[0])),r=e.marginLeft+e.marginRight,o=zl(n);o&&(t=o.paddingLeft+o.paddingRight,o=o.width-r-t,-1!==i.indexOf("%")&&jl(n,e.width,i,o),-1===i.indexOf("%")&&(i=parseInt(i,10))<o&&n.css({width:i}),Ul({$blockElement:n,availableSpace:o}))}),e);(t=R(["._pendo-video","._pendo-image"].join(","),t))&&t.length&&y.each(t,function(e){var t=R(e),n=Zl(t[0]),i=n.width,n=n.marginLeft+n.marginRight,r=t.attr("data-_pendo-media-resize-base-width"),e=(r||(r=e.style.width,t.attr("data-_pendo-media-resize-base-width",r)),-1!==r.indexOf("%"));if(t.hasClass("_pendo-image")){var o=e&&100<parseInt(r,10),a=t.attr("data-pendo-accessible-element");if(o||!a)return void t.css({width:i});t.css({height:"auto"})}o=zl(t);o&&(a=o.width-(o.paddingLeft+o.paddingRight)-n,e&&jl(t,i,r,a),Ul({$blockElement:t,availableSpace:a}))})})}function Ul(e){y.isArray(e)||(e=[e]),y.each(e,function(e){e.$blockElement.css({"max-width":"none"})});var n=y.map(e,function(e){return Zl(e.$blockElement[0]).width});y.each(e,function(e,t){n[t]>=e.availableSpace&&e.$blockElement.css({"max-width":e.availableSpace})})}function jl(e,t,n,i){var r=-1!==e[0].style.width.indexOf("%"),i=i*(parseInt(n,10)/100);(r||t<i)&&e.css({width:i<0?0:i})}function zl(e){e=e.closest("._pendo-row");if(e){e=f(e[0]);if(e)return{width:parseFloat(e.width),paddingLeft:parseInt(e.paddingLeft,10),paddingRight:parseInt(e.paddingRight,10)}}}function Zl(e){e=f(e);return{width:parseFloat(e.width),marginLeft:parseInt(e.marginLeft||0,10),marginRight:parseInt(e.marginRight||0,10)}}var Vl,g={calculateTotalOffsetWidth:Kl,center:function(e,t){for(var n=t/2,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=Kl(e,r);e[r].style.left=n+o+"px"}1<e.length&&(i.style.right=n+"px");t.style.left=n+"px"},createFlexContainer:function(e,t){var n=document.createElement("div");n.style.display="inline-block",e||t||(n.style.position="absolute");return n.style["vertical-align"]="top",n.setAttribute("class","pendo-mock-flexbox-element"),n},createFlexRow:function(){var e=document.createElement("div");return e.setAttribute("class","pendo-mock-flexbox-row"),e.style.display="block",e.style.position="relative",e.style.width="100%",e},findMaxChildHeight:function(e,t){for(var n=[],i=0;i<e.length;i++){var r;t&&-1!==(e[i].children[0].children[0].getAttribute("class")||"").indexOf("pendo-block-wrapper")&&(r=e[i].children[0].offsetHeight+"px",e[i].style.height=r),n.push(e[i].offsetHeight)}return y.reduce(n,function(e,t){return Math.max(e,t)},20)},flexEnd:function(e,t){for(var n=t,t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=Kl(e,r);e[r].style.left=n+o+"px"}1<e.length&&(t.style.left=n+"px");i.style.right="0px"},flexStart:function(e){e[0].style.left="0px";for(var t=1;t<e.length;t++){var n=Kl(e,t);e[t].style.left=n+"px"}},getPendoInlineUIElements:function(e){return y.filter(e,Hl)},getPendoVisualElements:function(e){return y.filter(e,function(e){return!Hl(e)})},initializeFlexElements:function(e){var t=e.cloneNode(),n=Yl(e),i=g.getPendoInlineUIElements(e.children);if(1===n.length&&0===n[0].id.indexOf("pendo-text"))return e;for(;t.childNodes.length;)t.removeChild(t.childNodes[0]);for(var r=0;r<n.length;r++)Jl(n[r])?t.appendChild(n[r]):t.appendChild(g.wrapElementInMockFlexboxContainer(n[r],e,t));for(var o=0;o<i.length;o++)t.appendChild(i[o]);return e.parentNode.replaceChild(t,e),t},isPendoInlineUIElement:Hl,setElementHorizontalAlignment:function(e,t,n){if(!(e.length<1))switch(n){case"space-between":g.spaceBetween(e,t);break;case"space-around":g.spaceAround(e,t);break;case"space-evenly":g.spaceEvenly(e,t);break;case"center":g.center(e,t);break;case"flex-start":g.flexStart(e);break;case"flex-end":g.flexEnd(e,t)}},setElementVerticalAlignment:function(e,t,n){switch(n){case"top":g.topAlignment(e);break;case"center":g.centerAlignment(e,t);break;case"bottom":g.bottomAlignment(e)}},spaceAround:function(e,t){for(var n=t/(2*e.length),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=Kl(e,r);e[r].style.left=2*n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},spaceBetween:function(e,t){for(var n=t/Math.max(e.length-1,1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=Kl(e,r);e[r].style.left=r*n+o+"px"}t.style.left="0px",i.style.right="0px"},spaceEvenly:function(e,t){for(var n=t/(e.length+1),t=e[0],i=e[e.length-1],r=1;r<e.length-1;r++){var o=Kl(e,r);e[r].style.left=n+o+"px"}t.style.left=n+"px",i.style.right=n+"px"},topAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.top="0px"},centerAlignment:function(e,t){for(var n=0;n<e.length;n++){var i=e[n],r=i.offsetHeight,o=t/2,o=Math.round(o-r/2);i.style.top=o+"px"}},bottomAlignment:function(e){for(var t=0;t<e.length;t++)e[t].style.bottom="0px"},wrapElementInMockFlexboxContainer:function(e,t,n){var i=e.getAttribute("class")||"",r=-1!==i.indexOf("pendo-block-wrapper"),o=e.style&&"absolute"===e.style.position,a=y.get(e.style,"width",""),s=f(e).width,d=-1!==i.indexOf("_pendo-open-text-poll-wrapper")||-1!==i.indexOf("_pendo-image-wrapper")||-1!==i.indexOf("pendo-video-wrapper")||-1!==i.indexOf("_pendo-number-scale-poll-wrapper");r&&!d&&(a=(a?s:null)||f(e.children[0]).width);(0<=i.indexOf("_pendo-resource-center-onboarding-module-guide-complete-circle-container")||0<=i.indexOf("pendo-task-list-progress-circle"))&&(s=parseInt(f(t).width,10),u=parseInt(f(e).width,10)+parseInt(e.style.marginRight||0,10)+parseInt(e.style.marginLeft||0,10),t=(R(t).find("._pendo-simple-text").getParent()||R(n).find("._pendo-simple-text").getParent())[0],n=s-u,"border-box"!==y.get(t,"style.boxSizing")&&(n=n-parseInt(t.style.paddingLeft||0,10)-parseInt(t.style.paddingRight||0,10)),t.style.width=n.toString()+"px",t.style.maxWidth=n.toString()+"px");{var u;if(!i||i.indexOf("pendo-mock-flexbox-element")<0)return(s=g.createFlexContainer(o)).appendChild(e),-1<e.id.indexOf("pendo-text")&&"rtl"===e.dir&&(s.style.right="0px"),u=y.get(e,"children")[0],r&&u&&-1!==(u.getAttribute("class")||"").indexOf("image-preview-placeholder")&&(s.children[0].style.width=a),!r||d||e.style.width||(s.children[0].children[0].style.width=a),s}return e},getVisualElementsWrappedInFlexElements:Yl,initializeFlexRows:function(e,t,n,i){void 0===i&&(i=!1);{var r;i?(e.style.display="flex",e.style.flexWrap="wrap",e.style.justifyContent=t,e.style.alignItems={top:"flex-start",center:"center",bottom:"flex-end"}[n]||"flex-start"):0!==(i=function(e){return y.filter(e,function(e){e=e.getAttribute("class")||"";return e&&-1<e.indexOf("pendo-mock-flexbox-element")})}(e.children)).length&&(r=g.getRowWidth(e),i=g.wrapFlexElementsInFlexRows(i,e,r),g.formatFlexRows(i,e,t,n,r))}},getRowWidth:Xl,wrapFlexElementsInFlexRows:function(e,t,n){for(var i=n||Xl(t),r=g.createFlexRow(),o={row:r,rowWidthUsed:0},a=[o],s=0;s<e.length;s++){var d=e[s],u=ea(d).width,u=parseInt(u,10);o.rowWidthUsed+=u,o.rowWidthUsed>i&&0!==y.indexOf(e,d)&&(o.rowWidthUsed-=u,(r=g.createFlexRow()).appendChild(d),a.push(o={row:r,rowWidthUsed:u})),o.row.appendChild(d)}return a},formatFlexRows:function(e,t,n,i,r){for(var o=r||Xl(t),a=0;a<e.length;a++){var s=e[a],d=(t.appendChild(s.row),g.findMaxChildHeight(s.row.children,!1)),u=(s.row.style["min-height"]=d+"px",o-parseInt(s.rowWidthUsed,10));g.setElementHorizontalAlignment(s.row.children,u,n),g.setElementVerticalAlignment(s.row.children,d,i)}},isElementHiddenInGuide:Jl,flexAllThings:function(e,t){var n=null==(n=null==t?void 0:t.attributes)?void 0:n.useFlexbox,t=(null==t?void 0:t.guideElement)||document,e=R("#"+e,t)[0];e&&(Ql(e),g.flexElement(e,n))},flexElement:function(e,i){e=R("[data-pendo-display-flex]",e);y.each(e,function(e){var t=i?e:g.initializeFlexElements(e),n=e.getAttribute("data-pendo-justify-content"),e=e.getAttribute("data-row-vertical-alignment");g.initializeFlexRows(t,n,e,i)})},maintainAspectRatios:Ql};function Yl(e){return R(["._pendo-button",".pendo-block-wrapper","._pendo-multi-choice-poll-select-border","._pendo-text-subTitle","._pendo-text-paragraph","._pendo-text-title","._pendo-text-custom","._pendo-close-guide","> ._pendo-simple-text","div._pendo-resource-center-module-list-item-text-container","._pendo-resource-center-right-caret",'[id^="pendo-onboarding-guide-progress-circle"]','[id^="pendo-task-list-progress-circle"]','[id^="pendo-a11y-list-item-button-block"]',"._pendo-resource-center-onboarding-module-listed-guide-link","._pendo-home-view-bubble"].join(","),e)}function Hl(e){e=e.getAttribute("class");return!!(e&&-1<e.indexOf("pendo-inline-ui"))}function Kl(e,t){for(var n=(e=Array.prototype.slice.call(e)).slice(0,t),i=0,r=0;r<n.length;r++)i+=n[r].offsetWidth;return i}function Xl(e){var t=ea(e).width,e=f(e);return parseInt(t,10)-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)}function Jl(e){ql(e);var t=Oa(e);if(0===t.width||0===t.height)return!0;if(!e.style||"visible"!==e.style.visibility)for(var n=e,i=e.id||"",r=0;0!==i.indexOf("pendo-g-")&&(ql(n),i=(n=n.parentNode).id||"",!(10<++r)););return!1}function ql(e){e.style&&"none"===e.style.display||e.style&&"0"===e.style.opacity||e.style&&e.style.visibility}function Ql(e){var n="data-aspect-ratio",e=R("["+n+"]",e);y.each(e,function(e){var t=e.getAttribute(n).split(":"),t=1<t.length?parseInt(t[0],10)/parseInt(t[1],10):parseFloat(t[0]);isNaN(t)||(e.style.height=e.offsetWidth/t+"px")})}function ep(){return!v.designer&&m.get("disableGuidePseudoStyles")}function tp(e,t,n){return e&&e.templateName?zc.buildNodesFromTemplate(e.templateName,e,t,n,rp):"style"===e.type&&ep()?[]:[rp(e,t,n)]}function np(e,t,n,i){e='illegal building block key "'+e+'" found on guide "'+t+'" step "'+n+'"';throw i&&(e+=' for node type "'+i+'"'),I.info(e),new Error(e)}function ip(n,i,r,o){var a={allow:!0,allowfullscreen:!0,alt:!0,"alt-text":!0,autofocus:!0,"class":!0,cols:!0,contenteditable:!0,dir:!0,"for":!0,frameborder:!0,href:!0,id:!0,loading:!0,name:!0,placeholder:!0,placement:!0,rows:!0,role:!0,sandbox:!0,scoped:!0,src:!0,start:!0,style:!0,tabindex:!0,target:!0,title:!0,type:!0,value:!0},s={embed:{src:!0}},d=/^data-/,u=/^aria-/,e=y.keys(n);return y.reduce(e,function(e,t){return s[o]&&s[o][t]&&np(t,r,i,o),a[t]||d.test(t)||u.test(t)||np(t,r,i),e[t]=n[t],e},{})}function rp(n,i,e){i=i||{id:"unknown",guideId:"unknown"},n.props=ip(n.props,i.id,i.guideId,n.type);var t,r=R(document.createElement(n.type));if(document.createElement("div").appendChild(r[0]),"script"===r[0].tagName.toLowerCase())return R(document.createElement("noscript"));if("pendo-backdrop"===(n.props&&n.props.id))return i.attributes&&i.attributes.blockOutUI&&i.attributes.blockOutUI.enabled&&bl.attachScrollHandlers(i,ll),pl(i);if(y.each(n.props,function(e,t){"style"===t?r.css(n.props.style):"data-pendo-code-block"!==t||!0!==e||m.get("preventCodeInjection")?r.attr(t,e):(t=i.getContent(),0!==mt.call(t).length&&r.addClass("pendo-code-block").html(t))}),n.content&&r.text(n.content),"style"===n.type&&(v.designer||(n.css=function(e){for(var t=["button:focus"],n=[],i=0;i<e.length;i++)y.contains(t,e[i].selector)||n.push(e[i]);return n}(n.css)),(t=m.get("inlineStyleNonce"))&&r.attr("nonce",t),r.styleSheet?r.styleSheet.cssText=dp(n.css):r.text(dp(n.css))),n.svgWidgetId&&Kc.buildSvgNode(n.svgWidgetId,n).appendTo(r),n.actions&&n.actions.length)for(var o,a=0;a<n.actions.length;a++)sp(r,n.actions[a],i),"renderGuidesListItem"===n.actions[a].action&&((o=Ou(n.actions[a].parameters[0]))?r.text(o.name):r.attr("style","display: none;"));if(y.find(n.actions,function(e){return"dismissGuide"===e.action})&&!i.hasEscapeListener&&(i.hasEscapeListener=!0,i.attachEvent(window,"keyup",function(e){27===e.keyCode&&i.eventRouter.eventable.trigger("pendoEvent",{step:i,action:"dismissGuide"})},!0)),n.children)for(var s=Ba(Uu()),d=s!==document,u=0;u<n.children.length;u++){var c=tp(n.children[u],i,e);y.each(c,function(e){var t;e&&("STYLE"!==e[0].tagName?e.appendTo(r):d?((t=new CSSStyleSheet).replaceSync(e[0].innerHTML),(s.hasOwnProperty("wrappedJSObject")?s.wrappedJSObject:s).adoptedStyleSheets.push(t)):(R.addClass(e[0],"pendo-style-".concat(i.isBadge?i.guideId:i.id)),e.appendTo(document.head)))})}return r.hasClass("pendo-code-block")?r.find("img").each(function(e){op(e,i)}):op(r[0],i),r}function op(e,t){var n=e.id&&-1!==e.id.indexOf("badge"),i=!!e.getAttribute("src"),r=e.className&&0<=e.className.indexOf("bb-control"),o=e.tagName&&e.tagName.toLowerCase(),a=e.className&&0<=e.className.indexOf("_pendo-video");("img"===o&&i&&!n&&!r||"iframe"===o&&t&&!a)&&"lazy"!==e.getAttribute("loading")&&(t.attributes&&!t.attributes.imgCount?t.attributes.imgCount=1:t.attributes&&t.attributes.imgCount&&t.attributes.imgCount++,ap(R(e),t))}function ap(e,i){e.on("load",function(){var e,t={},t=(!i.containerId&&i.domJson&&(t=$c(i.domJson)),i.containerId||t.props&&t.props.id||""),n=t&&R("#"+t,i.guideElement)[0];i&&i.attributes&&i.attributes.imgCount&&(i.attributes.imgCount--,n)&&i.attributes.imgCount<=0&&(Wl(t,i.guideElement),$l(t,i.guideElement),g.flexAllThings(t,i),e=i.getGuide(),y.get(e,"attributes.isAnnouncement")||"AnnouncementsModule"===y.get(e,"attributes.resourceCenter.moduleId")||(Bl(t,i.guideElement),(e=n.children.item("pendo-guide-container"))&&e.style&&"auto"===e.style.overflow&&($l(t,i.guideElement),g.flexAllThings(i.containerId,i))),"tooltip"===i.attributes.calculatedType&&bl.positionStepForTooltip(i,i.domJson,n),n.style.visibility="visible",n.parentNode.style.visibility="visible",R.event.dispatch(n,{type:"imagesLoaded"}))}),e.on("error",function(){var e=R("#"+i.containerId,i.guideElement)[0];e?("tooltip"===i.attributes.calculatedType&&bl.positionStepForTooltip(i,i.domJson,e),e.style.visibility="visible",e.parentNode.style.visibility="visible",g.flexAllThings(i.containerId,i)):I.info("Failed to find guideContainer for id: "+i.containerId)})}function sp(n,i,r){n.on(i.eventType,function(e){var t;i.designerAction?v.designerv2&&v.designerv2.designerActions&&v.designerv2.designerActions[i.action](n,i.parameters):(t={action:i.action,params:i.parameters,step:r,ignore:!!i.ignore,srcElement:e.srcElement},("showElements"!==i.action&&"hideElements"!==i.action||e.srcElement&&e.srcElement.getAttribute("id")===i.source||e.target&&e.target.getAttribute("id")===i.source)&&r.eventRouter.eventable.trigger("pendoEvent",t))})}function dp(n){for(var i="",r=0;r<n.length;r++)i+=n[r].selector+"{",n[r].styles instanceof Array?i+=dp(n[r].styles):y.each(n[r].styles,function(e,t){i+=t+":"+e,n[r].selector.match(/\d+%/)||(i+="!important;")}),i+="}";return i}function up(t){y.each(document.head.childNodes,function(e){e&&R.hasClass(e,"pendo-style-".concat(t))&&Ea(e)})}var cp=function(){var e=window.navigator;return((y.isArray(e.languages)?e.languages[0]:e.language||e.browserLanguage||e.systemLanguage||e.userLanguage)||"").split("-").join("_")},lp="meta",pp=y.compose(JSON.parse,JSON.stringify),hp=function(){var e=new Date,t=e.getDate(),n=e.getMonth()+1;return e=(t=t<10?"0"+t:t)+"/"+(n=n<10?"0"+n:n)+"/"+e.getFullYear()},fp=function(e){(e=y.isObject(e=void 0===e?{}:e)?e:{}).jwt&&e.signingKeyName&&(t=Hs.getJwtOptions(e,"updateOptions"))&&(Hs.set(y.pick(e,"jwt","signingKeyName")),e=t),t=e,n=y.extend({},t.visitor),i=y.extend({},t.account),t=y.extend({},t.parentAccount),n.id===si&&(I.info("Missing visitor id."),delete n.id),ii(i.id)&&ii(t.id)&&(ci(i.id)?t.id=i.id.split(ui)[0]:i.id=""+t.id+ui+i.id),ii(i.id)&&(i.id=""+i.id),ii(n.id)?n.id=""+n.id:n.id=E({generate:!0}),n.language=cp(),e={visitor:pp(n),account:pp(i),parentAccount:pp(t),date:hp(),version:v.VERSION},A.getters["metadata/selfHosted"]()&&(e.selfHosted=!0);var t,n=y.clone(bp()),i=(m.setLocalConfig(y.extend({},m.getLocalConfig(),e)),A.commit("metadata/setMetadata",e),bp()),r=(ii(e.visitor.id)&&(v.identify(e.visitor.id,e.account.id),e.visitor.id=E(),e.account.id=vi()),St(e)),o=(void 0!==(o="object"==typeof(o=r)?St(o):o)&&o.toString&&(o=o.toString()),""+(y.isNumber(Vl)?Vl:bi(lp))!==o);return Vl=r,o&&yi(lp,r),{options:e,hashChanged:o,storeChanged:!y.isEqual(n,i)}},gp=Ci(function(e){e=fp(e);S.metadata.trigger(e)}),mp=Ci(function(e,t){y.isObject(e)?gp(e):hi(e,t)}),vp=function(){var t,e=R("script");return e=e,t=new RegExp("/agent/static/"+v.apiKey+"/pendo\\.js$"),!y.any(e,function(e){return t.test(e.src)})&&"extension"!==De()},yp=function(){var e=m.get("blockAgentMetadata");return e!==undefined&&e};function bp(){return A.getters["metadata/metadata"]()}function Ip(){return JSON.parse(JSON.stringify(bp()))}S.identify.on(function(e){var t=e.data[0],n=m.getLocalConfig()||{};wi(e)?(ai([lp]),A.commit("metadata/reset",t)):(n.visitor=y.extend({},n.visitor,{id:t.visitor_id}),n.account=y.extend({},n.account,{id:t.account_id}),m.setLocalConfig(n),A.commit("metadata/setMetadata",n))});var wp={Launcher:{addBehavior:y.noop},Metadata:{getMetadata:bp},Util:{documentScrollTop:Yo,documentScrollLeft:Ho,getOffsetPosition:Aa},Events:S,JWT:{getJWT:Hs.get}};var Cp,Sp,Ap,Ep,Tp={},_p=(Sp=[],Ap=[],Ep={},(Cp=Tp).tagExtension=function(e,t){e=Cp.findExtensionByName(e);e.tags=[].concat(e.tags||[],t)},Cp.findExtensionByTag=function(t){return y.find(Ap,function(e){return y.contains(e.tags,t)})},Cp.findExtensionByName=function(e){return y.findWhere(Ap,{name:e})},Cp.filterExtensionsByUse=function(t){return y.filter(Ap,function(e){return e.use===t})},Cp.findExtensionByNameAndProvider=function(t,n){return y.find(Ap,function(e){e=e.data;return!!e&&e.name===t&&e.provider&&e.provider.name===n})},Cp.registerExtensionsByUse=function(e,t,n){n=n?[].concat(n):[],Ep[e]={handler:t,validators:n}},Cp.getExtensionFrames=function(){return y.reduce(Ap,function(e,t){return t.frame&&t.frame[0]&&e.push(t.frame[0]),e},[])},function(e){e=[].concat(e),(e=y.filter(e,xp)).length&&(Sp=function n(e){if(!e.length)return e;var t=y.filter(e,Rp);if(t.length)return n(y.difference(e,t));return e}(Sp.concat(e)))});function xp(t){var e;return!!y.every(["name","version","use","type","uri"],y.partial(y.has,t))&&(e=t.use,e=Ep[e]?Ep[e].validators:[],y.every(y.map(e,function(e){return e(t)})))}function Rp(e){var t;return"behavior"===e.use?!!e.uri(Cp,wp)&&(Ap.push(e),!0):(t=e.use,!!(t=Ep[t]?Ep[t].handler||y.identity:null)&&((e=t(e))&&Ap.push(e),!!e))}var O,kp,Op,Np,Mp,Lp,N={initializeResourceCenter:function(r){if(!(O=Pp(r)))return C.resolve();if(A.getters["frames/isShownInAnotherFrame"]()(O.steps[0]))return C.resolve();if(N.isFullyCustom(O))return O.hasResourceCenterContent=!0,C.resolve();var e=Gp(O,r),t=y.reduce(e,function(e,t){return Fp(t)?e.concat(t.steps[0].fetchContent()):e},[]);return t.push(yc.validate(O).then(y.noop,function(){O.launchMethod="api"})),O.attributes.notifications={totalUnseenCount:0,individualCounts:{chat:0}},y.forEach(jp(),function(e){var t=Tp.findExtensionByNameAndProvider("chat",e),t=(t&&Yp(e,t),Tp.findExtensionByNameAndProvider("helpcenter",e));t&&Yp(e,t)}),y.forEach(e,function(t){var e=t.attributes.resourceCenter,n=e.children,i=e.moduleId,e=("IframeModule"===i&&(t.hasResourceCenterContent=!0),"SandboxModule"===i&&(t.hasResourceCenterContent=!0),"IntegrationModule"===i&&(t.integrationConfig=$p(e.integrationName,e.integrationProvider),t.hasResourceCenterContent=!!t.integrationConfig,t.integrationConfig)&&"chat"===t.integrationConfig.name&&Up(e.integrationName,e.integrationProvider),y.reduce(n,function(e,t){var n=y.find(r,function(e){return e.id===t});return n?e.concat(n):e},[]));"AnnouncementsModule"===i&&(O.attributes.notifications.individualCounts[t.id]=0,y.forEach(e,function(e){bh(e)||e.isControlGroup()||O.attributes.notifications.individualCounts[t.id]++}));-1<y.indexOf(["GuideListModule","OnboardingModule","AnnouncementsModule"],i)&&y.filter(e,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):!(e.ineligibleForRC=!0)}).length&&(t.hasResourceCenterContent=!0),t.guidesInModule=e}),O.modules=e,O.badgeHidden=!0,C.all(t)["catch"](function(){return O=null,I.error("Failed to load one or more Resource Center modules"),C.resolve()})},findResourceCenterHomeView:Pp,findResourceCenterModules:Gp,replaceResourceCenterContent:Dp,renderResourceCenterModule:function(e,t){Dp(e.id,undefined,!0,t)},showHomeViewOrEmptyState:function(e){R("#pendo-resource-center-container._pendo-guide-walkthrough_").remove(),delete e.activeModule,e.hasResourceCenterContent&&e.skipResourceCenterHomeView?N.replaceResourceCenterContent(e.moduleIdToReplaceHomeViewWith,[{value:"none"},{value:"left"}]):e.showEmptyState&&(N.showResourceCenterEmptyState(),y.each(e.controlGuidesInAllModules,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}))},showResourceCenterEmptyState:function(){var e=R("#pendo-resource-center-empty-state-container");e&&e.length&&R(e[0]).css({display:"block"})},launchIntegrationByNameAndProvider:function(e,t,n){var e=Tp.findExtensionByNameAndProvider(e,t);return e?(n=R(n))?((e=e.getFrame()).appendTo(n),void e.css({display:"block"})):I.info("could not find target element for "+t+" integration"):I.info(t+" integration has not been loaded into the agent")},appendIntegrationToBodyByNameAndProvider:Up,attemptToPreserveIntegrationIframes:function(e){e.step&&(e=e.step.getGuide()).attributes&&e.attributes.resourceCenter&&(e=N.getResourceCenterContainer())&&(e=R(e).find('iframe[id^="_pendo-launcher-ext-frame-chat"]'))&&e.length&&e.each(function(e){e=R(e);e.css({display:"none"}),e.appendTo(Uu())})},getResourceCenter:eh,getResourceCenterContainer:th,getResourceCenterBadge:nh,addNotificationBubbleToResourceCenterBadge:lh,addNotificationBubbleToTargetElement:ph,updateNotificationBubbles:function(){var e=O,t=y.get(e,"attributes.notifications");if(t){var n=ah(t.individualCounts);if(n<=0)n!==t.totalUnseenCount&&vh(),t.totalUnseenCount=n;else{sh();var i=n!==t.totalUnseenCount;if(i||!rh(Np)){if("badge"===e.launchMethod){i=nh();if(!i)return;lh(i.element(),e.attributes.notificationBubble,n)}if("dom"===e.launchMethod&&y.get(e,"attributes.activation.selector")){i=R(e.attributes.activation.selector);if(!i.length)return;ph(i[0],e.attributes.notificationBubble,n),no(window,"resize",y.debounce(oh,50))}t.totalUnseenCount=n}}}},removeNotificationBubble:vh,updateNotificationBubbleCount:yh,updateNotificationBubbleOnHomeView:dh,updateOrCreateNotificationBubble:hh,hexToRgb:ih,doesIntegrationExist:$p,calculateTotalNotificationCount:ah,updateNotificationBubblesOnHomeView:sh,createNotification:gh,appendNotificationBubble:mh,hasAnnouncementBeenSeen:bh,clearAnnouncementUnseenInterval:Bp,createAnnouncementUnseenInterval:Wp,findShownResourceCenterModule:function(){var e=N.getResourceCenterContainer();if(e){e=R(e).find('[id^="pendo-g-"]');if(e){var t=e.attr("data-pendo-guide-id"),e=y.find(Eu(),function(e){return e.id===t});if(y.get(e,"attributes.resourceCenter.isModule",!1))return e}}},dismissResourceCenter:Ih,repositionResourceCenter:function(){var e=N.getResourceCenterContainer();{var t,n,i;e&&(i=N.findResourceCenterHomeView(Eu()).steps[0],t=y.get(i,"domJson.props.style.height"),t=parseInt(t,10),t=isNaN(t)?0:t,n=parseInt(y.get(i,"domJson.props.style.bottom",0),10),i=parseInt(y.get(i,"domJson.props.style.top",0),10),n=isNaN(n)?0:n,i=isNaN(i)?0:i,(n=wa().height-n-i)<=t&&(e.style.height=(n-10).toString()+"px"),i=parseInt(e.style.height,10),i=isNaN(i)?0:i,t<n)&&t!==i&&(e.style.height=t.toString()+"px")}Gl(R(e))},repositionDoubleResourceCenterBadge:function(){var e,t,n;A.getters["frames/isLeader"]()&&1<(e=y.unique(y.compact([].concat(y.toArray(R("._pendo-resource-center-badge-container"))).concat(y.toArray(R("._pendo-resource-center-badge-container")))))).length&&function(e){var t=Oa(e[0]),e=Oa(e[1]);return Na(t,e)}(e)&&(t=Aa(e[0]).width+5,n=Aa(e[1]).left-t<0?"":"-",e[1].style.transform="translateX("+n+t+"px)")},resourceCenterIgnoreRtl:function(){return y.get(this.getResourceCenterBadge(),"ignoreRTL",!1)},adjustResourceCenterWidth:function(e){var t=th();if(t){o=wa().width,r=R(t),e=R(e),r.css({"max-width":"none"}),e.css({"max-width":"none"}),i=parseInt(f(r[0]).width,10),o<i&&(i=parseInt(t.style.left,10),i=isNaN(i)?0:i,t=parseInt(t.style.right,10),t=isNaN(t)?0:t,o=o-t-i,r.css({"max-width":o+"px"}),e.css({"max-width":o+"px"}));var t=e,n=R('button[id^="pendo-a11y-list-item-button-block"]');if(n&&n.length)for(var i=R(t.find("ol._pendo-text-list-ordered"))[0],r=0,o=0,i=(i&&(i=f(i),o=parseInt(i.paddingLeft,10),r=parseInt(i.paddingRight,10)),R('[id^="pendo-onboarding-guide-progress-circle"]')[0]),e=0,a=0,s=0,d=(i&&(i=f(i),e=parseInt(i.width,10),a=parseInt(i.marginRight,10),s=parseInt(i.marginLeft,10)),o+r+e+s+a),u=parseInt(f(t[0]).width,10),c=0;c<n.length;c++){var l=n[c],p=R(l),l=(p.css({"max-width":"none"}),f(l)),h=parseInt(l.width,10),l=u-d-(parseInt(l.paddingLeft,10)+parseInt(l.paddingRight,10));l<=h&&p.css({"max-width":l})}}},setNativeIntegrationDefaults:Yp,renderNativeIntegration:qp,isSupportedNativeIntegration:zp,handleNativeIntegrationContinuation:Qp,isProviderInstalled:Zp,adjustNotificationBubbleForResize:oh,getNotificationBubbleDefaultCss:fh,getModuleId:wh,isIframeModule:function(e){return"IframeModule"===wh(e)&&e.hasResourceCenterContent},isSandboxModule:function(e){return"SandboxModule"===wh(e)&&e.hasResourceCenterContent},isIntegrationModule:function(e){return"IntegrationModule"===wh(e)&&e.hasResourceCenterContent},isFullyCustom:function(e){return"FullyCustomModule"===wh(e)},integrationModuleHasContent:function(e){e=e.attributes.resourceCenter;return!N.isSupportedNativeIntegration(e.integrationProvider)||N.isProviderInstalled(e.integrationProvider)},fetchAnnouncementGuidesContent:function(e,t){var n=Pp(e);if(!n)return C.resolve();if(t.getters["frames/isShownInAnotherFrame"]()(n.steps[0]))return C.resolve();if(N.isFullyCustom(n))return C.resolve();var t=Gp(n,e),i=[],r=y.indexBy(e,"id");return y.each(t,function(e){var e=e.attributes.resourceCenter;"AnnouncementsModule"===e.moduleId&&(e=e.children,e=y.reduce(e,function(e,t){t=r[t];return t?e.concat(t):e},[]),y.each(e,function(e){Fp(e)&&i.push(e.steps[0].fetchContent(!0))}))}),C.all(i)},setFocusForResourceCenterModule:function(e,t){var n;"HomeViewModule"===e[0].getAttribute("data-layout")?t&&(e=R('[data-pendo-module-guide-id="'+t+'"]'),n=e.find('button[id^="pendo-right-caret-"]')[0]):(t=R('[id="pendo-resource-center-module-title-container"]'),n=t.find('button[id^="pendo-left-caret-"')[0]);n&&n.focus()},revertRtlChanges:function(e,t){var n="rtl"===y.get(t,"data-localization-direction",!1),e=y.get(e,"attributes.badge.ignoreRTL",!1);n&&e&&!t["data-direction-changed"]&&(n=y.get(t,"style.left",!1),e=y.get(t,"style.right",!1),n)&&e&&(t.style.left=e,t.style.right=n,t["data-direction-changed"]=!0)},stashBadgeAriaLabel:uh,resetBadgeAriaLabel:function(){var e=N.getResourceCenterBadge();{var t;e&&(e=e.element(),t=e.getAttribute("data-pendo-stashed-aria-label"))&&e.setAttribute("aria-label",t)}},getNotificationBubbleAriaLabelAttribute:ch,updatePseudoStyleSelectors:Ch,hideRCBadge:Sh};function Fp(e){return e.steps&&e.steps.length&&y.isFunction(e.steps[0].fetchContent)}function Pp(e){var e=y.filter(e,function(e){return y.get(e,"attributes.resourceCenter.isTopLevel")&&!e.isFrameProxy}),t=y.find(e,function(e){return"staged"===e.state});return t||e[0]}function Gp(t,e){return y.filter(e,function(e){return e&&!e.isFrameProxy&&y.get(e,"attributes.resourceCenter.isModule",!1)&&e.state===t.state})}function Dp(t,e,n,i){if(void 0===i&&(i=!0),!Op){var r="left 200ms",o="left",e=(e&&2<=e.length&&(r=e[0].value,o=e[1].value),th());if(e){var a=R(e).find('[id^="pendo-g-"]')[0];if(a){var s,d=a.getAttribute("data-pendo-guide-id"),u=y.find(Eu(),function(e){return e.id===t}),c=(t!==O.id?(up(y.get(O.activeModule||O,"steps.0.id")),O.activeModule=u):(s=O.activeModule,up(y.get(s,"steps.0.id")),delete O.activeModule),y.get(u,"attributes.resourceCenter.integrationProvider")),l=(zp(c)&&qp(c),u.steps[0]),c=Ch(l.domJson),c=(c.props["data-pendo-guide-id"]=u.id,rp(c,l)),p=c[0],r=(-1===p.id.indexOf("pendo-g-")&&(p=c.find('[id^="pendo-g-"]')[0]),n||(p.style.transition=r,a.style.transition=r,"left"===o?p.style.left=e.offsetWidth+"px":"right"===o&&(p.style.left=-1*e.offsetWidth+"px")),n&&(R(a).remove(),s)&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),R(e).find('[id^="pendo-end-focus-bumper-"]')[0]);if(r?R(p).insertBefore(r):R(p).appendTo(e),l.guideElement=R(e),l.elements.push(l.guideElement[0]),N.adjustResourceCenterWidth(p),"AnnouncementsModule"===wh(u)&&l.guide.guidesInModule?($l(r=y.reduce(l.guide.guidesInModule,function(e,t){var n;return y.isUndefined(t.steps[0].attributes.imgCount)&&(n=t.steps[0].id,n=R(p).find("#pendo-g-"+n)[0]?n:t.id,e.push("pendo-g-"+n)),e},[]),l.guideElement),y.each(r,function(e){g.flexAllThings(e,l)})):g.flexAllThings("pendo-resource-center-container"),Gl(R(e)),p.style.left="0px",!n){Op=!0;try{"left"===o?a.style.left=-1*e.offsetWidth+"px":"right"===o&&(a.style.left=e.offsetWidth+"px"),Dt(function(){R(a).remove(),s&&s.steps&&s.steps.length&&(s.steps[0].elements.length=0),Op=!1},200)}catch(h){throw Op=!1,h}}return"AnnouncementsModule"===wh(u)&&(Wp(),r=zc.getGuidesInResourceCenterModule(u,Eu()),(n=y.reduce(r,function(e,t){return t.steps&&t.steps.length&&Rc.hasContent(t.steps[0])||e.push(t.fetchContent()),e},[])).length)&&((o=function(){var i,e,t;if(y.isFunction(document.createElementNS))return i="http://www.w3.org/2000/svg",e=function(e,t){var n=R(document.createElementNS(i,"circle")).attr({cx:e,cy:t,fill:"#9a9ca5",r:5});return y.each(y.toArray(arguments).slice(2),function(e){n.append(e)}),n},t=function(e){return R(document.createElementNS(i,"animate")).attr({attributeName:"fill-opacity",values:"0;1;0;0",keyTimes:"0;0.4;0.8;1",dur:"1.4s",repeatCount:"indefinite",calcMode:"spline",keySplines:"0 0 0.58 1; 0 0 0.58 1; 0 0 0.58 1",begin:e})},t=R(document.createElementNS(i,"svg")).attr({viewBox:"0 0 70 20",xmlns:"http://www.w3.org/2000/svg",width:"70",height:"20"}).append(e(21,10,t("-0.32s"))).append(e(35,10,t("-0.16s"))).append(e(49,10,t("0s"))),R(document.createElement("li")).css({padding:"5px 20px","list-style-type":"none","list-style-position":"inside",position:"relative","margin-left":"0em","border-width":"0px","border-style":"solid","border-color":"rgb(255, 255, 255)","float":"none","vertical-align":"baseline","text-align":"center"}).append(t)}())&&c.find("ol").append(o),C.all(n).then(function(){var e=C.defer();return Dt(e.resolve,500),e.promise}).then(function(){O.activeModule===u&&N.renderResourceCenterModule(u,i)})),N.setFocusForResourceCenterModule(c,d),i&&l.onShown("launcher"),c}}}}function Bp(){window.clearInterval(kp),kp=null}function Wp(){kp=kp||window.setInterval(function(){var e=th();if(!e)return Bp();e=R(e).find('[data-layout="AnnouncementsModule"]');if(!e.length)return Bp();var t=R(e).find('ol[id^="pendo-list"]');if(!t.length)return Bp();var n=Oa(t[0]),i=R(t).find("li");if(!i.length)return Bp();for(var r=e.attr("data-pendo-guide-id"),o=O.attributes.notifications.individualCounts[r],a=n.height/3,s=Oa(i[i.length-1]).bottom-30<n.top+n.height,d=0;d<i.length;d++){var u=R(i[d]),c=u.hasClass("pendo-unseen-announcement"),l=u.attr("data-pendo-announcement-send-seen-event");if(c||l){if(Oa(i[d]).top-n.top>n.height-a&&!s)break;var p=u.attr("data-pendo-announcement-guide-id"),l=y.find(Eu(),function(e){return e.id===p});if(!l)break;c&&(u.removeClass("pendo-unseen-announcement"),c=u.find(".pendo-unread-announcement-mini-bubble"),$e(10)?u.find(".pendo-unread-announcement-mini-bubble").remove():(c[0].style.visibility="hidden",c[0].style.opacity="0",c[0].style.transition="visibility 0s 2s, opacity 2s linear"),bh(l)||o--,yh(o,r)),l.steps[0].seenState="advanced",Pm(l.id,l.steps[0].id,E(),"whatsnew",l.language,{last_updated_at:l.steps[0].lastUpdatedAt}),u[0].removeAttribute("data-pendo-announcement-send-seen-event"),Dm(l.id,l.steps[0].id,E(),"advanced",l.language)}}},500)}function $p(e,t){return Tp.findExtensionByNameAndProvider(e,t)}function Up(e,t){e=Tp.findExtensionByNameAndProvider(e,t);if(!e)return I.info(t+" integration has not been loaded into the agent");zp(t)&&Zp(t)?O.hasEligibleNativeIntegrationModule=!0:(ka((t=e.getFrame())[0])||t.appendTo(Uu()),t.css({display:"none"}))}function jp(){return["drift-native-chat","intercom-chat","zendesk-chat","zendesk-native-kb","zendesk-messaging"]}function zp(e){return!!e&&0<=jp().indexOf(e)}function Zp(e){return!!e&&null!==(e=Vp(e))&&y.isFunction(window[e])}function Vp(e){if(!e)return null;switch(e){case"zendesk-chat":case"zendesk-messaging":case"zendesk-native-kb":return"zE";case"intercom-chat":return"Intercom";case"drift-native-chat":return"drift";default:return null}}function Yp(e,t){var n,i,r;e&&(Zp(e)?Hp(e,t):(e=e,t=t,"function"==typeof Object.defineProperty&&null!==(i=Vp(e))&&(Mp&&Mp[i]?Mp[i][e]||(Mp[i][e]={installed:!1,integrationObj:t}):((Mp=Mp||{})[i]=((n={})[e]={installed:!1,integrationObj:t},n),Object.defineProperty(window,i,{get:function(){return r},set:function(e){r=e,y.forEach(Mp[i],function(e,t){var n=e.integrationObj;!e.installed&&Zp(t)&&(e.installed=!0,Hp(t,n),Up(n.name,t),y.forEach(O.modules,function(e){e.integrationConfig&&e.integrationConfig.data.name===n.name&&e.integrationConfig.data.provider.name===t&&(e.hasResourceCenterContent=!0)}))})},configurable:!0,enumerable:!0})))))}function Hp(e,t){switch(e){case"zendesk-chat":case"zendesk-native-kb":var n=(i=t).data.provider.name,i=Xp(i);Kp(n,"webWidget","hide"),Kp(n,"webWidget","updateSettings",{webWidget:{navigation:{popoutButton:{enabled:!1}},position:{vertical:i?i[0]:"bottom",horizontal:i?i[1]:"right"}}}),Kp(n,"webWidget:on","close",function(){Kp(n,"webWidget","hide"),Jp()}),O.isInProgress()&&Qp(O.activeModule),Kp(n,"webWidget:on","chat:unreadMessages",function(e){yh(e,"chat")});break;case"zendesk-messaging":i=t;Kp(i=i.data.provider.name,"messenger","hide"),Kp(i,"messenger:on","close",function(){Jp()}),Kp(i,"messenger:on","unreadMessages",function(e){yh(e,"chat")});break;case"intercom-chat":var r=t;r=Xp(r),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.hide_default_launcher=!0,window.intercomSettings.alignment=r?r[1]:"right",window.Intercom("update",{hide_default_launcher:!0,alignment:r?r[1]:"right"}),window.Intercom("onHide",function(){Jp()});break;case"drift-native-chat":window.drift.on("ready",function(e){window.drift.hide();var t=bp();window.drift.identify(t.visitor.id,function o(e){var t={};for(var n in e)if("object"!=typeof e[n]||Array.isArray(e[n]))t[n]=e[n];else{var i,r=o(e[n]);for(i in r)r[i]&&(t[n+"."+i]=r[i])}return t}(t)),window.drift.on("message",function(e){if(!O.isNativeModuleActive)return yh(1,"chat")})}),window.drift.on("chatClose",function(e){yh(0,"chat"),window.drift.hide(),Jp()})}}function Kp(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];try{Lp&&Lp[e]||window.zE.apply(null,n)}catch(r){Lp?Lp[e]=!0:((t={})[e]=!0,Lp=t)}}function Xp(e){e=y.get(e,"data.options.labels.position");return e=e&&e.split("-")}function Jp(){Ih(O.activeModule),delete O.activeModule,O.continueToNativeModule=!1}function qp(e,t){if(e){var n=bp();if(O.isShown()&&O.hide(),Lp&&Lp[e])I.info(e+" integration failed to communicate with API, closing"),N.replaceResourceCenterContent(O.id,undefined,!0),Jp();else{var i=nh();switch(i&&Sh(i,O),e){case"zendesk-messaging":Kp(e,"messenger","show"),Kp(e,"messenger","open");break;case"zendesk-native-kb":Kp(e,"webWidget","updateSettings",{webWidget:{helpCenter:{suppress:!1},chat:{suppress:!0}}}),Kp(e,"webWidget","show"),Kp(e,"webWidget","open");break;case"zendesk-chat":Kp(e,"webWidget","updateSettings",{webWidget:{chat:{suppress:!1},helpCenter:{suppress:!0}}}),window.$zopim.livechat.window.show(),n&&n.visitor&&n.visitor.email&&Kp(e,"webWidget","prefill",{email:{value:n.visitor.email}});break;case"intercom-chat":window.Intercom("show"),n&&n.visitor&&n.visitor.email&&window.Intercom("update",{email:n.visitor.email});break;case"drift-native-chat":window.drift.api.openChat(),n&&n.visitor&&n.visitor.email&&window.drift.config({email:n.visitor.email})}yh(0,"chat"),!O.activeModule&&t&&(O.activeModule=t).steps[0].onShown("launcher")}}}function Qp(e){e&&!e.isTopLevel&&(qp(y.get(e,"attributes.resourceCenter.integrationProvider")),O.activeModule||(O.activeModule=e),e.steps[0].onShown("continue"),e.attributes.doNotResume=!0)}function eh(){return O}function th(){return y.get(O,"steps.0.guideElement.0")}function nh(){if(O&&O.id)return Cu[O.id]}function ih(e){e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function rh(e){return e&&y.all(e,function(e){return ka(e&&e.length?e[0]:e)})}function oh(){var e,t=N.getResourceCenter(),n=y.get(t,"attributes.notifications");n&&(n=N.calculateTotalNotificationCount(n.individualCounts),"dom"===t.launchMethod)&&y.get(t,"attributes.activation.selector")&&(e=R(t.attributes.activation.selector)).length&&N.addNotificationBubbleToTargetElement(e[0],t.attributes.notificationBubble,n)}function ah(e){return y.reduce(e,function(e,t){return e+t},0)}function sh(){var e,t=O;t&&(t=y.get(t,"attributes.notifications"))&&(e=th())&&R(e).find("._pendo-resource-center-home-list").length&&y.each(t.individualCounts,function(e,t){dh(e,t)})}function dh(e,t){var n=N.getResourceCenterContainer();n&&(n=R(n).find('[data-pendo-notification-id="'+t+'"]')).length&&(t=R(n[0]).find("._pendo-home-view-bubble"),n=R(t[0].children[0]),e!==parseInt(n.text(),10))&&(0<e?(n.text(e),R(t[0]).css({display:"block","margin-right":"0"})):(n.text(""),R(t[0]).css({display:"none"})))}function uh(e){var t;e.getAttribute("data-pendo-stashed-aria-label")||(t=e.getAttribute("aria-label"),e.setAttribute("data-pendo-stashed-aria-label",t))}function ch(e){return 1!==e?"data-pendo-aria-label-alert-plural":"data-pendo-aria-label-alert-singular"}function lh(e,t,n){var i=ch(n),i=e.getAttribute(i),i=(i&&(uh(e),i=i.replace("{UNSEEN_COUNT}",n),e.setAttribute("aria-label",i)),y.get(t,"position","top-left")),r=f(e),r=(parseInt(r.width,10)||56)/2,o=r/Math.sqrt(2),r=Math.round(r-o)-10,a=r-10,o=Math.round(2*o),r={"top-left":{top:r+"px",left:a+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"top-right":{top:r+"px",left:a+o+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-left":{top:r+o,left:a+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"},"bottom-right":{top:r+o,left:a+o+10+"px",padding:"0px 10px","margin-left":"0px","margin-top":"0px"}},a=e.attributes["data-localization-direction"]||!1,o=N.resourceCenterIgnoreRtl();hh(e,t,n,r[i=a&&!o?{"top-left":"top-right","top-right":"top-left","bottom-left":"bottom-right","bottom-right":"bottom-left"}[i]:i])}function ph(e,t,n){var i=Qo(e,e),r=Qo(e,xa());hh(e,t,n,{width:"28px",top:i.top-Math.min(r.top,14)+"px",left:i.left-Math.min(r.left,14)+"px",position:"absolute"},{width:"28px","font-size":"16px","text-align":"center",position:"absolute",right:"0px"})}function hh(e,t,n,i,r){var o,a;rh(Np)?(a=(o=fh(t)).defaultBubbleCss,o=o.defaultUnseenCountCss,a=y.extend(a,i),o=y.extend(o,r),Np.bubbleEle.css(a),Np.unseenCountEle.css(o),Np.unseenCountEle.text()!=""+n&&Np.unseenCountEle.text(n)):(a=R(e).find(".pendo-resource-center-badge-notification-bubble")).length?a[0].getElementsByClassName("pendo-notification-bubble-unread-count")[0].textContent=n:n&&mh(Np=gh(t,n,i,r),e)}function fh(e){return{defaultBubbleCss:{position:"absolute","border-radius":"20px","line-height":"0px",height:"26px","box-sizing":"content-box","background-color":e["background-color"]},defaultUnseenCountCss:{"font-weight":e["font-weight"],"font-family":e["font-family"],height:"100%",position:"relative",top:"50%",color:e.color}}}function gh(e,t,n,i){var r,o=fh(e),a=o.defaultBubbleCss,o=o.defaultUnseenCountCss,s=(t=t||0,R(document.createElement("div")).addClass("pendo-resource-center-badge-notification-bubble")),d=R(document.createElement("div")).addClass("pendo-notification-bubble-unread-count"),a=y.extend(a,n),n=y.extend(o,i);return s.css(a),d.css(n),$e(10)||ep()||(r=R(document.createElement("style")).attr("id","pendo-resource-center-bubble-animation"),i="@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6) } } "+('.pendo-resource-center-badge-notification-bubble::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: '+("rgb("+(o=ih(e["background-color"])).r+", "+o.g+", "+o.b+")")+"; border-radius: 100%; z-index: -1; animation: pulse 2s infinite; will-change: transform; }"),r.styleSheet?r.styleSheet.cssText=i:r[0].innerHTML=i),d.text(t),{bubbleEle:s,unseenCountEle:d,styleEle:r}}function mh(e,t){e.styleEle&&e.styleEle.appendTo(t),e.unseenCountEle.appendTo(e.bubbleEle),e.bubbleEle.appendTo(t)}function vh(){var n=Np?Np.bubbleEle:R(".pendo-resource-center-badge-notification-bubble"),i=Np?Np.styleEle:R("#pendo-resource-center-bubble-animation");n&&y.each(n,function(e,t){n[t]&&(t=n[t])&&t.parentNode&&t.parentNode.removeChild(t)}),i&&y.each(i,function(e,t){i[t]&&(t=i[t])&&t.parentNode&&t.parentNode.removeChild(t)}),Np=null,N.resetBadgeAriaLabel()}function yh(e,t){var n=O;n&&(n=y.get(n,"attributes.notifications"))&&n.individualCounts[t]!==e&&(n.individualCounts[t]=e,N.updateNotificationBubbles())}function bh(e){return!(!y.isFunction(e.hasBeenSeen)||!e.hasBeenSeen())||"active"===e.steps[0].seenState}function Ih(e){var t=y.get(e,"attributes.resourceCenter.isModule",!1)?e:N.findShownResourceCenterModule();t&&(t=y.first(t.steps),vm(t));t=(y.get(e,"attributes.resourceCenter.isTopLevel",!1)?e:N.findResourceCenterHomeView(Eu())).steps[0];return vm(t)}function wh(e){return y.get(e,"attributes.resourceCenter.moduleId")}function Ch(e){var t=["pendo-a11y-list-item-button-block","pendo-link-","pendo-right-caret-","pendo-row-","pendo-text-"].join("|"),n=new RegExp("#((".concat(t,")[^:]*)")),t=function i(e,t){var n=[];return t(e)&&n.push(e),e.children?n.concat.apply(n,y.map(e.children,function(e){return i(e,t)})):n}(e,function(e){return e.css&&e.css.length});return y.forEach(t,function(e){y.forEach(e.css,function(e){e.selector=e.selector.replace(n,"[id^='$1']")})}),e}function Sh(e,t){e.hide(),t&&t.id&&(t.steps&&t.steps.length&&(t.steps[0].overrideElement=undefined),delete Cu[t.id])}var Ah=1e4,Eh="lastStepAdvanced";function Th(e){A.dispatch("guideState/updateLastGuideStepSeen",e),A.dispatch("guideState/write"),A.dispatch("frames/changeLastGuideStepSeen",e)}function _h(){A.dispatch("guideState/regainFocus")}function xh(){return A.state.guideState.lastGuideStepSeen}var or={actions:{init:function(e){e.getters.storage().registry.addLocal(Eh),e.commit("setScopedStorageKey",un(e.state.storageKey)),S.identify.on(function(e){wi(e)&&ai([Eh])})},load:function(t,e){if(e){var n;try{n=JSON.parse(e)}catch(i){}n&&y.each([].concat(n),function(e){t.commit("setStepState",e)})}},forceExpire:function(n){y.each(n.state.steps,function(e,t){n.commit("expireStepState",t)})},expire:function(n){var i=n.getters.now();y.each(n.state.steps,function(e,t){i-e.time>n.state.ttl&&n.commit("expireStepState",t)})},apply:function(o){var a,s=y.indexBy(o.getters.guideList(),"id");o.dispatch("expire"),y.each(o.state.steps,function(e){var t,n,i=e.guideId,r=e.guideStepId;e.visitorId&&e.visitorId!==o.getters.visitorId()||((!a||e.time>a.time)&&(a=e),(i=s[i])&&(t=y.findWhere(i.steps,{id:r}))&&(n=o.state.storageKey,t.seenState!=e.state&&(I.info("making sure that seenState = '"+e.state+"' for "+n+": "+r),t.seenState=e.state),t.snoozeEndTime!=e.snoozeEndTime&&(I.info("making sure that snoozeEndTime = '"+e.snoozeEndTime+"' for "+n+": "+r),t.snoozeEndTime=e.snoozeEndTime),t.seenReason!=e.seenReason&&(I.info("making sure that seenReason = '"+e.reason+"' for "+n+": "+r),t.seenReason=e.seenReason),e.dismissCount!==undefined&&t.dismissCount!=e.dismissCount&&(t.dismissCount===undefined?t.dismissCount=e.dismissCount:t.dismissCount=Math.max(e.dismissCount,t.dismissCount),I.info("making sure that dismissCount = '"+t.dismissCount+"' for "+n+": "+r)),e=y.indexOf(i.steps,t),y.each(i.steps.slice(0,e),function(e){y.contains(["advanced","dismissed"],e.seenState)||(e.seenState="advanced")})))}),a&&o.dispatch("updateLastGuideStepSeen",y.extend({},o.state.lastGuideStepSeen,a))},receiveLastGuideStepSeen:function(e,t){e.commit("setReceivedLastGuideStepSeen",t),e.commit("setLastGuideStepSeen",t)},updateLastGuideStepSeen:function(e,t){var n;t.visitorId&&t.visitorId!==e.getters.visitorId()||(n=y.some(e.getters.guideList(),function(e){return e.id===t.guideId}),t.guideStepId&&e.commit("setStepState",t),n&&(e.commit("setLastGuideStepSeen",t),v.lastGuideStepSeen=t))},updateThrottlingState:function(e,t){e.commit("setThrottlingState",t)},write:function(e){e.dispatch("expire");var t=e.rootState.frames.tabId,n=e.state.storageKey,i=e.getters.cookieSuffix(),r=e.state.ttl,o=e.getters.storage(),a=JSON.stringify(y.map(e.state.steps,function(e){return y.extend({tabId:t},e)}));I.info("writing "+a+" to a cookie named "+n+" for "+r+" and cookieSuffix "+i),o.write(n,a,r,!1,!1,i),e.dispatch("preview/update",e.state.lastGuideStepSeen,{root:!0})},storageChanged:function(e,t){if(t.key===e.state.scopedStorageKey){try{var n=e.getters.storage(),i=e.getters.cookieSuffix(),r=n.read(e.state.storageKey,!1,i),o=[].concat(JSON.parse(r))}catch(a){}e.getters.storageChangedInOtherTab()(o)&&(Wh(),e.dispatch("load",r),e.dispatch("apply"),e.state.receivedStateChangeAt||e.commit("setReceivedStateChange",e.getters.now()))}},regainFocus:function(e){var t=e.getters.tabLostFocus(),n=e.getters.isGuideRequestStale();t&&(e.commit("setReceivedStateChange",null),n||($h(),Uh())),n&&$v()}},mutations:{expireStepState:function(e,t){e.expired[t]=e.steps[t],delete e.steps[t]},setStepState:function(e,t){e.steps[t.guideStepId]=t},setScopedStorageKey:function(e,t){e.scopedStorageKey=t},setLastGuideStepSeen:function(e,t){e.lastGuideStepSeen=t},setReceivedLastGuideStepSeen:function(e,t){e.receivedLastGuideStepSeen=t},setReceivedStateChange:function(e,t){e.receivedStateChangeAt=t},setLastGuideRequestAt:function(e,t){e.lastGuideRequestAt=t},setThrottlingState:function(e,t){e[t.name]=t.value}},state:{steps:{},expired:{},ttl:Ah,storageKey:Eh,guideRequestExpiration:36e5,scopedStorageKey:null,receivedStateChangeAt:null,receivedLastGuideStepSeen:null,lastGuideStepSeen:null,lastGuideRequestAt:null,latestDismissedAutoAt:null,latestSnoozedAutoAt:null,finalAdvancedAutoAt:null},getters:{now:b,storage:function(){return w},guideList:function(){return k},tabLostFocus:function(e){return!!e.receivedStateChangeAt},isGuideRequestStale:function(e,t){return null!=e.lastGuideRequestAt&&t.now()-e.lastGuideRequestAt>e.guideRequestExpiration},storageChangedInOtherTab:function(n,e,i){return function(e){var t=y.get(i,"frames.tabId");return!!e&&!!((e=y.max(y.compact(e),"time"))&&e.tabId&&t&&e.tabId!==t)&&(!n.lastGuideStepSeen||!n.lastGuideStepSeen.time||e.time>n.lastGuideStepSeen.time)}},cookieSuffix:function(){return m.get("crossAppGuideStorageSuffix")},visitorId:function(){return E()}}},Rh={canDisplay:function(e,t,n){if(n&&n.enabled&&y.isFinite(t)){t=Nh(t,n);if(y.isNumber(t)&&!isNaN(t))return t<=e}return!0},lastDismissedTime:function(e){return Math.max(e.latestDismissedAutoAt||-Infinity,e.finalAdvancedAutoAt||-Infinity,e.latestSnoozedAutoAt||-Infinity)},sortAndFilter:function(e,t){var n=m.get("appAutoOrdering")||[].concat(m.get("leaderKey"));{var i;n.length&&(i=A.getters["frames/autoOrdering"](),n=y.reduce(n,function(e,t){return e.concat(i[t]||[])},[]),t=y.uniq(n.concat(t)))}var r,o,n=function(e){e=y.defaults(y.groupBy(e,function(e){return Oh(e)?"override":"auto"}),{override:[],auto:[]});return e.override.concat(e.auto)}(function(e,t){var n;return y.isArray(t)&&t.length?(n=y.indexBy(e,"id"),t=y.reduce(t,i,[]),y.chain(e).pluck("id").reduce(i,t).value()):e;function i(e,t){return n[t]&&(e.push(n[t]),delete n[t]),e}}(y.filter(e,kh),t));return y.find(e,function(e){return e.isTraining})?(t=m.get("adoptPrioritizeAdoptGuides"),e=t,r=[],o=[],y.each(n,function(e){(e.isTraining?r:o).push(e)}),e?r.concat(o):o.concat(r)):n},tryDisplayGuide:function(e,t){var n=Rh.lastDismissedTime(t),n=Rh.canDisplay(b(),n,t.throttling);if((Oh(e)||n)&&e.shouldAutoDisplay())return e.autoDisplay()},getNextAutoDisplayTime:Nh};function kh(e){return e&&/auto/.test(e.launchMethod)}function Oh(e){return(t=e).attributes&&t.attributes.overrideAutoThrottling||y.isFunction(e.shouldShowSnoozedGuide)&&e.shouldShowSnoozedGuide();var t}function Nh(e,t){var n=t.interval,t=(t.unit||"").toLowerCase();return y.isNumber(n)&&Rt(e)?"minute"===t?6e4*n+e+1:"hour"===t?36e5*n+e+1:"day"===t?(t=e,e=n,(t=new Date(Math.max(t,0))).setHours(0,0,0,0),t.setDate(t.getDate()+e),t.getTime()):void 0:y.isNumber(n)?(new Date).getTime():void 0}function Mh(t){return S.guideSeen.on(function(e){var e=e.data[0].props||{};"permalink"===e.reason&&(e=t(e.guide_id))&&(e.shownFromPermalink=!0)}),{tryDisplay:function(){var t=r(window.location.href),e=this.getGuideFromUrl(t);{var n,i;if(e&&this.shouldShowPermalinkGuide(e))return n=this.getStepFromUrl(t,e),i=t.pendo_once,this.showPermalinkGuide(e,n).then(function(e){return e&&i&&(delete t.pendo_once,delete t.pendo,delete t.step,delete t.c__pendo,window.history.replaceState({},document.title,window.location.pathname+"?"+Lo(t))),e})}},getQueryString:r,getGuideFromUrl:function(e){e=e.pendo||e.c__pendo;return e?t(e):null},getStepFromUrl:function(e,t){e=e.step;return e?function(e,t){return y.find(e.steps,function(e){return e.id===t})}(t,e):null},showPermalinkGuide:function(e,t){return(t||e).show("permalink")},shouldShowPermalinkGuide:function(e){return!e.shownFromPermalink}};function r(e){var t=Ro(e).substring(1),t=Mo(t),n=e.indexOf("#");return!t.pendo&&0<=n&&(n=Ro(e.substring(n+1)).substring(1),y.extend(t,Mo(n))),t}}var Lh=y.memoize(function(){return Mh(Ou)});function Fh(e,t){var e=y.find(e,function(e){return e.isContinuation(t)}),n=e&&e.attributes&&e.attributes.doNotResume;if(e&&!n)return e}Ph.prototype.markDirty=function(){var e;Ku()&&(this.queue.push("permalink","continuation"),(e=this.queue).push.apply(e,Rh.sortAndFilter(k,v.autoOrdering)))},Ph.prototype.process=function(e){if(nm())this.cancel();else{var t=this.queue.shift();if("permalink"===t)return Lh().tryDisplay(v);if("continuation"===t){var n=Fh(k,xh());if(n)return e.saveContext(n),n.show("continue")}else if(t){if(!Fh(k,xh()))return e.saveContext(t),Rh.tryDisplayGuide(t,v);this.cancel()}}},Ph.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();e&&I.warn("Auto display ("+e.id+") timeout exceeded")},Ph.prototype.cancel=function(){this.queue.length=0},Ph.prototype.isComplete=function(){return!this.queue.length};pr=Ph;function Ph(){this.name="autoDisplay",this.queue=[]}var Gh=null,Dh=500,Bh=function(e){Gh=y.delay(function(){Gh=null,Uh()},e=e||Dh),v.guidesProcessingThreadHandle=Gh},Wh=function(){Gh&&(clearTimeout(Gh),Gh=null,v.guidesProcessingThreadHandle=Gh),A.dispatch("guideUpdate/stopScheduledUpdate")},$h=function(){sm(),ef.cancel();for(var e=0;e<wu.length;e++){var t=wu[e];t.parentNode.removeChild(t)}wu.length=0,A.dispatch("guideUpdate/stopObserver"),S.guideLoopStopped.trigger()},Uh=function(){if(Wh(),Wv.pending||Qm&&v.id&&v.id!==Qm.id)I.info("guides are loading.",{contexts:["guides","loading"]});else if(Rv())I.info("guides are disabled.",{contexts:["guides","disabled"]});else if(kv())I.info("guides are delayed.",{contexts:["guides","delayed"]});else if(!A.getters["guideState/tabLostFocus"]())try{var e=Lu();e&&0!==e.length&&(A.dispatch("guideUpdate/startObserverIfNeeded"),ef.isComplete()&&ef.markDirty(),A.getters["frames/leaderExists"]())&&ef.process()}catch(t){ef.cancel(),I.critical("ERROR in guide-loop",{error:t})}finally{ef.paused||(ef.isComplete()?(A.state.guideUpdate.useObserver&&!A.state.guideUpdate.needsUpdate||Bh(),S.guideUpdateComplete.trigger()):Bh(50))}};var jh=function(){var e=m.getLocalConfig();m.get("delayGuides")&&(delete e.delayGuides,m.setLocalConfig(e)),m.get("guides.delay")&&(delete e.guides.delay,m.setLocalConfig(e)),Uh()},zh=function(){Rv()||Nv(!0),$h(),ev()},Zh=(Vh.prototype.markDirty=function(){this.dirty=!0},Vh.prototype.process=function(){this.processFn(),this.dirty=!1},Vh.prototype.cancel=function(){this.dirty=!1},Vh.prototype.isComplete=function(){return!this.dirty},Vh);function Vh(e,t){this.dirty=!1,this.name=e,this.processFn=y.isFunction(t)?t:y.noop}Yh.prototype.markDirty=function(){this.queue.push.apply(this.queue,y.filter(Tu(k),Gu))},Yh.prototype.process=function(e){var t=this.queue.shift();e.saveContext(t),t&&t.placeBadge()},Yh.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();I.warn("Badge ("+e.id+") timeout exceeded")},Yh.prototype.cancel=function(){this.queue.length=0},Yh.prototype.isComplete=function(){return!this.queue.length};e=Yh;function Yh(){this.name="badge",this.queue=[]}function Hh(i,e){var r,o,t,n,a;N.isFullyCustom(i)||(r=!1,o=[],t=y.filter(i.modules,function(e){var t,n;return!!e&&(!!N.isIframeModule(e)||!!N.isSandboxModule(e)||(N.isIntegrationModule(e)?!!N.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1):(t=(n=y.filter(e.guidesInModule,function(e){return e.shouldBeAddedToResourceCenter()?!(e.ineligibleForRC=!1):(e.ineligibleForRC=!0,e.control&&o.push(e),!1)})).length,e.hasResourceCenterContent=!!t,i.activeModule&&e.id===i.activeModule.id&&(n=St(y.map(n,function(e){var t=e.isAnnouncement()||e.isWhatsNew()?null:y.pluck(e.steps,"seenState");return{id:e.id,seenState:t}})),e.eligibleGuidesInModuleHash&&n!==e.eligibleGuidesInModuleHash&&(r=!0),e.eligibleGuidesInModuleHash=n),t)))}),n=!1,i.activeModule||(a=St(y.map(t,function(e){return{id:e.id}})),i.eligibleModulesHash&&i.eligibleModulesHash!==a&&(n=!0,N.replaceResourceCenterContent(i.id,undefined,!0)),i.eligibleModulesHash=a),e(i,t,o),1===t.length&&(i.skipResourceCenterHomeView=!0,i.moduleIdToReplaceHomeViewWith=t[0].id,a=!i.activeModule&&n,e=i.activeModule&&i.activeModule.id!==t[0].id,a||e||r)&&N.replaceResourceCenterContent(i.moduleIdToReplaceHomeViewWith,undefined,!0),t&&(n=y.find(t,function(e){return e.isContinuation(xh())}),a=y.get(n,"attributes.doNotResume"),e=y.get(n,"attributes.resourceCenter.integrationProvider"),N.isSupportedNativeIntegration(e))&&!a&&i&&(i.continueToNativeModule=!0,n.continueToNativeModule=!0),i.activeModule&&((e=y.find(t,function(e){return e.id===i.activeModule.id}))&&r&&N.replaceResourceCenterContent(i.activeModule.id,undefined,!0),e||N.replaceResourceCenterContent(i.id)),N.repositionResourceCenter())}function Kh(e,t,n){var i,r,o=Cu[e.id];t&&t.length||(t=-1!==e.launchMethod.indexOf("badge"),i=-1!==e.launchMethod.indexOf("dom"),r=-1!==e.launchMethod.indexOf("extensionIcon"),e.hasResourceCenterContent=!1,t?(e.isShown()&&e.hide(),o&&N.hideRCBadge(o,e),y.each(n,function(e){e.hasGuideBeenControlled()||e.steps[0].onControlGuide("control")}),e.badgeHidden=!0,delete e.activeModule):(i||r)&&(e.showEmptyState=!0,e.controlGuidesInAllModules=n)),e.badgeHidden&&e.hasResourceCenterContent&&!e.isNativeModuleActive&&(o||(y.isFunction(e.placeBadge)&&e.placeBadge(),o=Cu[e.id]),o&&o.show(),e.badgeHidden=!1)}function Xh(e){var t,n,i,r,o,a;e&&e.launchMethod&&(e.skipResourceCenterHomeView=!1,e.hasResourceCenterContent=!0,delete e.moduleIdToReplaceHomeViewWith,t=e.activeModule,n=y.get(t,"attributes.resourceCenter.integrationProvider"),e.isNativeModuleActive=t&&N.isSupportedNativeIntegration(n),N.isFullyCustom(e)?e.hasResourceCenterContent=!0:(e.isShown()||!A.getters["frames/isLeader"]()?Hh(e,Kh):(t=e,n=Kh,N.isFullyCustom(t)||(i=[],o=[],(r=y.find(t.modules,function(e){return!!N.isIframeModule(e)||!!N.isSandboxModule(e)||!!N.isIntegrationModule(e)&&(!!N.integrationModuleHasContent(e)||(e.hasResourceCenterContent=!1))}))&&i.push(r),r=y.flatten(y.pluck(t.modules,"guidesInModule")),o=y.filter(y.compact(r),function(e){return e.control}),!i.length&&(a=y.reduce(t.modules,function(t,n){return y.each(n.guidesInModule,function(e){t[e.id]=n}),t},{}),r=y.filter(r,function(e){return e&&e.steps&&e.steps.length}),r=y.sortBy(r,function(e){return e.steps[0].elementPathRule?1:0}),r=a[(r=y.find(r,function(e){return e.shouldBeAddedToResourceCenter()}))&&r.id])&&i.push(r),n(t,i,o))),e.isNativeModuleActive&&(e.isShown()&&e.hide(),a=Cu[e.id])&&N.hideRCBadge(a,e),"dom"===e.launchMethod&&(N.updateNotificationBubbles(),N.adjustNotificationBubbleForResize())))}qh.prototype.start=function(){this.context=null,this.startTime=b()},qh.prototype.isTimeExceeded=function(){return b()-this.startTime>this.timeLimit},qh.prototype.saveContext=function(e){this.context=e},qh.prototype.getContext=function(){return this.context};var Jh=qh;function qh(e){void 0===e&&(e=50),this.startTime=-1,this.timeLimit=e,this.context=null}function Qh(e){this.phases=e,this.queue=[],this.paused=!1}Qh.prototype.markDirty=function(){for(var e=0,t=this.phases;e<t.length;e++)t[e].markDirty();this.queue=this.phases.slice()},Qh.prototype.runGuidePhase=function(){for(var e,t,n,i=this.queue[0],r=new Jh(50);!this.timedOut()&&!i.isComplete()&&!e;)r.start(),!(e=i.process(r))&&r.isTimeExceeded()&&(i.handleProcessTimeExceeded&&i.handleProcessTimeExceeded(r),this.ejectGuide(r.getContext()));Mt(e)?(t=this.updateId,n=y.bind(function(){this.updateId===t&&(this.paused=!1,Uh())},this),this.paused=!0,e.then(n)["catch"](n)):i.isComplete()&&this.queue.shift()},Qh.prototype.addPhase=function(e,t){t=t||e.name||this.phases.length,y.isFunction(e)&&(e=new Zh(t,e)),this.phases.push(e)},Qh.prototype.removePhase=function(t){var e=y.findIndex(this.phases,function(e){return e.name===t});0<=e&&this.phases.splice(e,1)},Qh.prototype.timedOut=function(){return!!this.iterationStartTime&&b()-this.iterationStartTime>A.state.guideUpdate.iterationTimeLimit},Qh.prototype.ejectGuide=function(e){this.ejectOnTimeout===undefined&&(this.ejectOnTimeout=m.get("guides.ejectOnTimeout")),this.ejectOnTimeout&&e&&!e.isShown()&&Ru.addGuide(e)},Qh.prototype.process=function(){var e=b();for(this.updateId||(this.updateId=e,this.updateTotalTime=0,A.commit("guideUpdate/startUpdate",e)),this.iterationStartTime=e;!this.paused&&this.queue.length&&!this.timedOut();)this.runGuidePhase();e=b(),this.updateTotalTime+=e-this.iterationStartTime,this.isComplete()&&this.complete(e)},Qh.prototype.complete=function(e){A.commit("monitoring/setTimer",{name:"guideUpdateTimeMS",time:this.updateTotalTime}),A.commit("guideUpdate/completeUpdate",e),this.cancel()},Qh.prototype.cancel=function(){this.updateId=null,this.paused=!1;for(var e=this.queue.length=0,t=this.phases;e<t.length;e++){var n=t[e];y.isFunction(n.cancel)&&n.cancel()}},Qh.prototype.isComplete=function(){return!this.queue.length};var ef=new Qh([new e,new Zh("resourceCenter",function(){Xh(N.getResourceCenter())}),new Zh("frameVisibility",function(){A.dispatch("frames/checkFrameVisibility")}),new Zh("guideShowing",function(){var a=jv();a&&(y.each(a.steps,function(e){var t,n,i,r,o;a.guide,(e=e).isLocked()||A.getters["frames/isShownInAnotherFrame"]()(e)||(t=e.element,n=e.targetElement,r=e.guideElement,i=R("."+qg),(r=r.find("#pendo-guide-container")[0])&&r.textContent&&(r=f(r).fontSize,e.attributes.currentTextZoomFontSize!==r)&&(e.attributes.currentTextZoomFontSize&&e.redraw(),e.attributes.currentTextZoomFontSize=r),e.elementPathRule&&n&&!Jr.matchesSelector(n,e.elementPathRule)?e.hide():(r=za(t),o=!0,n&&r&&e.elementContainsRulesList&&(o=_m(n,e.elementContainsRulesList),r=o),t&&(r||i.hasClass("mouseover"))?e.checkPlacement():("tooltip"===e.type||"tooltip"===e.attributes.calculatedType)&&Za(t)&&o||e.hide()))}),a.guide.checkForHiddenGroupSteps())}),new pr]);function tf(){ef.addPhase.apply(ef,arguments)}function nf(){ef.removePhase.apply(ef,arguments)}function rf(){var s={};return y.each(["after","before"],function(i){this[i]=function(e,t){var n,r,o,a;this[e]&&((n=s[e])||(n=s[e]={before:[],after:[]},this[e]=(r=this[e],o=n.before,a=n.after,function(){for(var e=y.toArray(arguments),t=0,n=o.length;t<n;++t)if(!1===o[t].apply(this,e))return;var i=r.apply(this,e);for(t=0,n=a.length;t<n&&!1!==a[t].apply(this,e);++t);return i})),n[i].push(t))}},this),this}var of="debug-enabled";function af(){try{return JSON.parse(w.read(of,!0)||an(of))||{}}catch(e){return{}}}function sf(e){var t;return void 0===e&&(e=!0),t=A&&A.getters&&A.getters["debugger/debuggingEnabled"]?A.getters["debugger/debuggingEnabled"]():!0===af().enabled,e?t:t?"Yes":"No"}df.prototype.test=function(e){return this.identificationFn(e)};i=df;function df(e,t){this.type=t,this.identificationFn=e}uf={},cf=function(e){var e=e.data,t=e[0];e[1];var n=Ou(t.guideId),e=(y.find(uf,function(e){return e.GuideType.test(n)})||{}).handler;e&&e(n,"resourceFetchFail")};var uf,cf,lf={run:function(){S.resourceFetchFail.on(cf)},stop:function(){S.resourceFetchFail.off(cf)},addTypeHandler:function(e,t){y.isFunction(t)?uf[e.type]={GuideType:e,handler:t}:I.error("Invalid Handler function provided for type ".concat(e.type))}},pf=(lf.addTypeHandler(new i(Gu,"badge"),function(e,t){Ru.addGuide(e)}),"_pendo-badge_");function hf(e){var t;return e&&((t=(t=e.props=e.props||{}).style=t.style||{}).cursor=t.cursor||"pointer"),e}function ff(t,n){var e,i,r,o,a,s=Zu(n),d=!(null==(d=null==t?void 0:t.attributes)||!d.resourceCenter),u=!1;return d&&(u=null==(e=null==(e=null==t?void 0:t.attributes)?void 0:e.badge)?void 0:e.ignoreRTL),"building-block"===t.attributes.type?(e=y.reduce([(o=t.language,a=d?["he","ar"]:[],function(e){return y.contains(a,o)&&(e.props["data-localization-direction"]=!0),e}),(r=u,function(e){var t,n;return y.get(e,"props.data-localization-direction",!1)&&!r&&(t=y.get(e,"props.style.left","auto"),n=y.get(e,"props.style.right","auto"),t)&&n&&(e.props.style.left=n,e.props.style.right=t),e}),hf,Ac,function(e){return rp(e,{id:n.id,guideId:t.id,isBadge:!0})}],function(e,t){return t(e)},this.domJson)[0],i=e,R.removeNode(e),-1===i.className.indexOf("_pendo-badge_")&&(i.className+=" _pendo-badge_"),this.isP2Badge=!0):((i=document.createElement("img")).src=Sc(this.imageUrl),i.className="_pendo-badge "+pf,d=this.width||13,u=this.height||13,ba(i,"width:"+d+"px;height:"+u+"px;")),i.id="_pendo-badge_"+n.id,this.activate=function(){var e=y.isFunction(n.getGuide)&&n.getGuide(),t=Nm(e);!e.isShown()||A.getters["frames/isShownInAnotherFrame"]()(n)?Lm(n,"badge"):t?n.eventRouter.eventable.trigger("pendoEvent",{step:n,action:"dismissGuide"}):(t=y.find(e.steps,function(e){return e.isShown()}),vm(t))},this.shouldShow=function(){return t.canBadgeBeShown()||!1},this.show=function(){if(y.isFunction(this.shouldShow))return this.shouldShow()},this.hide=function(){R.removeNode(i),up(t.id),y.isFunction(this.removeScrollHandlers)&&(this.removeScrollHandlers(),this.removeScrollHandlers=null),n.overrideElement=undefined},Nm(t)&&(this.toggleAriaExpanded=function(){var e=!!R("#pendo-resource-center-container")[0],t=R("button._pendo-resource-center-badge-container")[0]||R('._pendo-resource-center-badge-container [id^="pendo-image-badge-"]')[0];t&&t.setAttribute("aria-expanded",e)},i.checkAriaExpanded=this.toggleAriaExpanded),this.step=y.constant(n),this.target=y.constant(s),this.element=y.constant(i),this}ff.create=function(n){var i=ff.findStep(n);if(i)return y.reduce(ff.behaviors,function(e,t){return t.call(e,n,i)},n.attributes.badge)},ff.findStep=function(e){var t=y.find(e.steps,function(e){return!!e.elementPathRule});if(t&&e.attributes&&e.attributes.badge)return t},ff.behaviors=[rf,ff,function(){"inline"!==this.position&&"inline-right"!==this.position&&"inline-left"!==this.position||this.before("show",function(){var e,t=this.target(),n=this.element();this.isP2Badge&&ba(n,"display:inline-block;vertical-align:text-bottom;"),this.css&&ba(n,this.css),t&&t.tagName&&(e=t.tagName.toLowerCase(),/br|input|img|select|textarea/.test(e)?n.parentNode!==t.parentNode&&t.parentNode.insertBefore(n,t.nextSibling):n.parentNode!==t&&("inline"===this.position||"inline-right"===this.position?t.appendChild(n):"inline-left"===this.position&&t.prepend(n)))});return this},function(s){this.position&&"top-right"!==this.position&&"top-left"!==this.position||this.before("show",function(){var e,t=this.element(),n=Aa(this.target()),i=0,r=0,o=0;if(this.offsets&&(i=this.offsets.top||0,r=this.offsets.right||0,o=this.offsets.left||0),!y.get(s,"attributes.resourceCenter",!1)){var a="position:"+(n.fixed?"fixed":"absolute")+";top:"+(n.top+i)+"px;";switch(this.position){case"top-right":a+="left:"+(n.left+n.width-r)+"px";break;case"top-left":a+="left:"+(n.left+o)+"px"}ba(t,a)}t.parentNode||(Uu().appendChild(t),e=Wa(no,this.target(),bf),this.removeScrollHandlers=function(){bf.cancel(),e()})});return this},function(){"over"===this.position&&this.before("show",function(){var e,t=this.element(),n=Aa(this.target()),i="position:absolute;top:"+n.top+"px;left:"+n.left+"px;";i+="height:"+n.height+"px;width:"+n.width+"px;",ba(t,i+="background-color:transparent;"),t.parentNode||(Uu().appendChild(t),e=Wa(bf,t,this.target()),this.removeScrollHandlers=function(){bf.cancel(),e()})});return this},function(){var t=this,e=t.element(),n=!1,i=function(e){t.activate(),t.toggleAriaExpanded&&t.toggleAriaExpanded(),bu(e)};return t.after("show",function(){n||(l(e,"click",i),n=!0)}),t.after("hide",function(){yu(e,"click",i),n=!1}),t},function(){var t=this.element(),n=this.step(),e=!1;{var i,r,o;"yes"!==this.useHover&&!this.showGuideOnBadgeHover||(i=y.throttle(function(e){ro(e)===t||function(e){for(;e;){if(/_pendo-guide_|_pendo-guide-tt_|_pendo-backdrop|_pendo-badge_/.test(e.className))return!0;if(/pendo-guide-container/.test(e.id))return!0;e=e.parentNode}return!1}(ro(e))||o()},50,{trailing:!1}),r=function(e){n.isShown()||Lm(n,"badge"),l(document,"mousemove",i),bu(e)},o=function(e){yu(document,"mousemove",i),Wu()||vm(n)},this.after("show",function(){e||(l(t,"mouseover",r),e=!0)}),this.after("hide",function(){yu(t,"mouseover",r),yu(document,"mousemove",i),e=!1}))}return this},function(){var s=this.element(),d=this.target(),e=!1;{var t,n,i,r,u;!this.showBadgeOnlyOnElementHover&&!/hover/.test(this.showOnEvent)||Wu()||(t="inline"===this.position?"visibility:visible;":"display:inline;",n="inline"===this.position?"visibility:hidden;":"display:none;",i=y.throttle(function(e){var t,n,i,r,o,a;ro(e)===d||ro(e)===s||pa(s,"triggered")||(t=e.clientX,e=e.clientY,n=Oa(d),i=Oa(s),r=Math.min(n.left,i.left),o=Math.min(n.top,i.top),a=Math.max(n.right,i.right),n=Math.max(n.bottom,i.bottom),i=e+document.documentElement.scrollTop,r<=t&&t<=a&&o<=i&&i<=n)||u()},50,{trailing:!1}),r=function(){ba(s,t),l(document,"mousemove",i)},u=function(){yu(document,"mousemove",i),ba(s,n)},this.after("show",function(){e||(l(d,"mouseover",r),e=!0,u())}),this.after("hide",function(){e&&(yu(d,"mouseover",r),e=!1),u()}))}return this}];var gf=function(e,t){var n,i,r=(t=t||Cu)[e.id],o=r?r.step():ff.findStep(e);o&&(i=r?r.target():Zu(o),(n=y.get(e,"attributes.resourceCenter"))&&!A.getters["frames/canShowRCBadge"]()?r&&y.isFunction(r.hide)&&(t[e.id]=undefined,r.hide()):n&&!e.hasResourceCenterContent||(N.updateNotificationBubbles(),n=!0,o.elementContainsRulesList&&(n=i&&_m(i,o.elementContainsRulesList)),(i=o.elementPathRule&&za(i)&&Jr.matchesSelector(i,o.elementPathRule)&&n)?((r=r||ff.create(e)).show(),t[e.id]=r):r&&!o.isShown()&&(t[e.id]=undefined,r.hide()),sf()&&S.stepEligibility.trigger({stepId:o.id,guideId:e.id,eligible:i,reason:"target_element_badge"}),N.repositionDoubleResourceCenterBadge()))},mf=function(){y.map(Cu,vf),Cu={}},vf=function(e,t){e&&(y.isFunction(e.hide)&&e.hide(),y.isFunction(e.shouldShow))&&!e.shouldShow()&&t&&delete Cu[t.id]},yf=function(e){var t=Cu[e.id];t&&vf(t,e)};var bf=y.throttle(function(){y.map(Cu,function(e){e&&e.show&&e.show()})},10);var M,If=w.getLocal(),wf="pendo-preview",Cf="current-guide-preview";function Sf(e){return A.dispatch("preview/load"),Af(e)}function Af(t){var e=Bf();if(e)return Tf(t),A.dispatch("preview/start",y.extend(e)),w.clear(Eh),on(!1),Ps.lock(),rv=jf,S.startPreview.trigger(),S.leaderChanged.on(function(e){A.dispatch("preview/write"),e.oldLeaderId||$v(),A.getters["frames/isLeader"]()||(R(M).remove(),M=null,t.removeEventListener("message",xf))}),tf(Ef),!0}function Ef(){if(!A.getters["frames/isFollower"]()){var t,n,i,r,o,e,a=document,s=Lu(),d=xh();if(Rf()&&(t=Bf())&&M&&M.contentWindow)if(s&&s.length){M.contentWindow.postMessage({mutation:"preview/setGuideLoaded",payload:{guideLoaded:!0}},location.origin),n=y.find(s,function(e){return e.id===t.guideId}),i=0,r=n.steps.length,o=d||{},y.find(n.steps,function(e,t){return o.guideStepId===e.id&&("dismissed"===o.state||"active"===o.state?i=t:"advanced"===o.state&&o.destinationStepId?i=y.indexOf(n.steps,y.find(n.steps,function(e){return e.id===o.destinationStepId})):"advanced"===o.state&&t===r-1&&(i=r),!0)}),s="dismissed"===o.state,d=r-1<=i,s=s||d,d=d?r-1:i,e=n.steps[d],h=e.isShown(),M.contentWindow.postMessage({mutation:"preview/setHostname",payload:{hostname:ot}},location.origin),M.contentWindow.postMessage({mutation:"preview/setGuidePages",payload:{guidePages:n.previewPages}},location.origin),M.contentWindow.postMessage({mutation:"preview/setGuideProgress",payload:{guideName:n.name,guideAttributes:JSON.stringify(n.attributes),guideLaunchMethod:n.launchMethod,guideActivationSelector:Vu(n),isAdoptGuide:n.isTraining,isResourceCenter:t.isResourceCenter,stepId:e&&e.id,currentStepIndex:d,stepCount:r,elementPathRule:e.elementPathRule,elementContainsRulesList:e.elementContainsRulesList,triggerElementPathRule:e.triggerElementPathRule,isShown:h,pageId:e.pageId,completed:s,languageOptions:y.get(t,"languageOptions",[]),currentLanguage:t.language}},location.origin);var u=e,c=d,l=M;if(u&&l&&l.contentWindow){var p=u.getGuide().id,h=y.filter(A.state.frames.frames,function(e){return"hidden"!==e.visibility&&e.guides&&e.guides[p]});if(h.length)h=y.map(h,function(e){return L.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:e.id,stepId:u.id,guideId:p,currentStepIndex:c})}),C.all(h).then(function(e){for(var t={},n=-1,i=0;i<e.length;i++){var r=JSON.parse(e[i]).errors;if(!r.GUIDE){var o=y.keys(r).length;if(!o){t={};break}-1===n?(t=r,n=o):u.regexUrlRule?!r.PAGE&&o<=n&&(t=r,n=o):o<n&&(t=r,n=o)}}l.contentWindow.postMessage({mutation:"preview/setErrors",payload:{errors:t}},location.origin)})["catch"](y.noop)}}else Ff(0,{status:404,data:"Guide not found"})}return!0}function Tf(e){if(A.getters["frames/leaderExists"]()){if(!A.getters["frames/isFollower"]()){if(M)return!0;var t,n;y.isFunction(e.addEventListener)&&e.addEventListener("message",xf),(t=document.createElement("iframe")).id=wf,Ia(t,{border:"none",display:"block !important",height:n="70px !important","min-height":n,left:0,position:"fixed",right:0,top:0,visibility:"visible !important",width:"100% !important","z-index":4e5}),t.onload=function(){m.get("inlineStyleNonce")&&(o=t.contentDocument.createElement.bind(t.contentDocument),t.contentDocument.createElement=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i,r=o.apply(void 0,jt([e],t,!1));return"style"===e&&(i=m.get("inlineStyleNonce"))&&r.setAttribute("nonce",i),r});var o,e=document.createElement("script");e.src=m.get("previewModeAssetPath")||Bo("pendo.preview.min.js"),t.contentDocument.body.appendChild(e),t.contentWindow.ignoreIframeMonitor=!0},M=t,xa().appendChild(M)}}else S.one("leaderChanged",y.partial(Tf,e))}function _f(e,t,n){sm(),A.commit("healthCheck/resetStepStatus",null,{root:!0}),Rc.reset(),$v();var i=e[0],i=(i&&y.each(i.steps,function(e){e.seenState=null}),w.clear(Eh),A.dispatch("preview/update",null),Bf());return i&&(i=y.findWhere(e,{id:i.guideId}))&&(i={stepId:i.steps[0].id},n&&(i.language=n),A.dispatch("preview/restart",i)),Lf(e,t)}function xf(e){var t,n;e.origin===location.origin&&(t=e.data.type,n=!!e.data.preventWindowClose,t===wf+"::exit"?(Pf({preventWindowClose:n}),A.dispatch("frames/stopPreview",{preventWindowClose:n})):t===wf+"::restart"?(n=_f(Lu(),xh(),e.data.language),A.dispatch("guideState/forceExpire"),A.dispatch("guideState/updateLastGuideStepSeen",n),A.dispatch("frames/restartPreview")):t===wf+"::resize"?(n=e.data.height,M&&M.style&&(M.style.height=n)):t===wf+"::request-preview-mode-type"&&(e=Wf(),M)&&M.contentWindow&&e&&M.contentWindow.postMessage({mutation:"preview/setPreviewModeType",payload:{previewModeType:e.previewModeType||"NEW_TAB"}},location.origin))}function Rf(){return A.getters["preview/isInPreviewMode"]()}function kf(){return A.getters["preview/isInDesignerPreviewMode"]()}function Of(e){var t,n,i,r,o,a=Bf();return a?a.isResourceCenter?(i=e,t=a,n=N.findResourceCenterHomeView(i),i=y.filter(i,function(e){return e.id!==n.id}),Mf(n,t.stepId),t=y.map(i,function(e){return e.launchMethod="launcher",e}),[n].concat(t)):(i=e,r=a,y.each(i,function(e){e.id===r.guideId?o=e:((e=e).launchMethod="api",(e=e.steps[0])&&(e.seenState="advanced"))}),Nf(o),o.showsAfter=null,o.expiresAfter=null,Mf(o,r.stepId),i):e}function Nf(e){"launcher"===e.launchMethod?e.launchMethod="auto-launcher":"api"===e.launchMethod&&(e.launchMethod="auto")}function Mf(e,t){for(var n=y.find(e.steps,function(e){return e.id===t}),i=n?e.steps.indexOf(n):0,r=0;r<e.steps.length;r++)r<i?(e.steps[r].seenState="advanced",e.steps[r].seenReason="continue"):(e.steps[r].seenState=null,e.steps[r].seenReason=null)}function Lf(e,t){null==t&&(t={});var n=Bf();if(!n)return t;e=y.findWhere(e,{id:n.guideId});if(!e)return t;if(n.state)return n.state;Nf(e);t=-1<e.launchMethod.indexOf("auto");return n.stepId!==e.steps[0].id||t?{guideId:n.guideId,guideStepId:n.stepId,state:"active"}:{}}function Ff(e,t){M&&M.contentWindow&&M.contentWindow.postMessage({mutation:"preview/setGuideLoadError",payload:{guideLoadError:t}},location.origin)}function Pf(e){var t=Wf(),n=!1,i=(t&&(n="SAME_TAB"===t.previewModeType),If.getItem("pendo-navigation-state"));if(A.dispatch("preview/exit"),sm({stayHidden:!0}),w.clear(Eh),Ps.unlock(),R(M).remove(),rv=tc,nf(Ef),on(!0),n&&i){If.setItem(Cf,JSON.stringify(y.extend(t,{isExitBackToDesigner:!0})));try{var r=JSON.parse(i),o={target:r.baseUrl,gcsBucket:r.gcsBucket,preloader:!0,DADesigner:r.isDADesigner,host:r.host,forceNativeDesigner:"web"===t.guide.appPlatform};A.dispatch("preview/launchInAppDesigner",o)}catch(a){A.dispatch("preview/exitDesignerPreview")}}else e&&!e.preventWindowClose&&window.close(),$v()}function Gf(e,t){e=y.get(e(),t);if(e)return JSON.parse(JSON.stringify(e))}function Df(){return A}var Bf=y.partial(Gf,Df,"state.preview.preview"),Wf=y.partial(Gf,Df,"state.preview.designerPreview");function $f(e){var t;if(e.subscriptionId&&e.guideId)return t=e.isResourceCenter?"/resourcecenter/":"/guide/","/api/s/"+Ft(e.subscriptionId)+t+Ft(e.guideId)+"/preview"}var Uf=function(e){var t;return ts(e.origin)?(t=$f(e))?(t={url:e.origin+t+"?url="+Ft(Fo.externalizeURL())+"&apiKey="+v.apiKey,withCredentials:!0},e.headers&&(t.headers=e.headers),ao(t).then(function(e){return e.data.guide})):(I.info("Invalid guide url, exiting preview"),C.reject("invalid guide url")):(I.info("Invalid origin, exiting preview"),C.reject("invalid origin"))},jf={load:function(e,t,n){return Zf(e,n)},post:function(e,t,n,i){return Zf(e,i)},endpoint:function(){return""},usesXhr:function(){return!0}};function zf(n,t){var e,i;return ts(n.origin)?(e=$f(n))?A.getters["frames/leaderExists"]()&&n.apiKey===v.apiKey?(e="".concat(n.origin).concat(e,"?url=").concat(Ft(Fo.externalizeURL()),"&apiKey=").concat(v.apiKey),n.childGuides&&n.childGuides.length&&(e+="&childGuides="+n.childGuides.toString()),kf()&&(e+="&ignoreGuide=true"),e={url:e,withCredentials:!0},n.headers&&(e.headers=n.headers),i=[],ao(e).then(function(e){var t,c,e=e.data;return kf()?(t=Wf(),i=t?kf()?(y.each(t.guide.steps,function(t){var e=["domJsonpUrl","domUrl"];t.domUrl&&0===t.domUrl.indexOf("data:")&&(e=["domJson","contentJs","contentCss","content"]),y.each(e,function(e){delete t[e]})}),t.guide.showsAfter=null,t.guide.expiresAfter=null,[t.guide]):void 0:[],e.guide=i[0]):i=n.isResourceCenter?e.guide:(e.guide.previewPages=e.pages,[e.guide]),e.children&&(i=i.concat(e.children)),n.language&&n.language!==y.get(i,"[0].authoredLanguage")&&(t=i,c=n.language.value,y.forEach(t,function(u){y.forEach(u.steps,function(e){var t=y.get(u,"translationStates."+c+".stepTranslations."+e.id,{}),n=t.domHash,i=t.domJsonpHash,r=t.translationHash,o=t.originalDomJsonHash,a=t.originalDomJsonpHash,s=t.originalBuildingBlockHash,d=t.domHash256,t=t.domJsonpHash256;e.domUrl=Vf(o,e.domUrl,".dom.json",d),e.domJsonpUrl=Vf(a,e.domJsonpUrl,".dom.jsonp",t),e.buildingBlocksUrl=Vf(s,e.buildingBlocksUrl,".buildingBlocks.json"),n&&i&&r&&(e.domUrl=e.domUrl.replace(".dom.json","-"+n+"-"+c+".dom.json"),e.domJsonpUrl=e.domJsonpUrl.replace(".dom.jsonp","-"+i+"-"+c+".dom.jsonp"),e.buildingBlocksUrl=e.buildingBlocksUrl.replace(".buildingBlocks.json","-"+r+"-"+c+".buildingBlocks.json"))})})),n.watermarkConfig&&(e.guide.isTraining=!0),v.guideWidget={enabled:!1,data:{guideCssUrl:e.guideCssUrl}},v.guideCssUrl=e.guideCssUrl,v.normalizedUrl=e.normalizedUrl,v.throttling=undefined,e.guide}).then(function(e){var t;return n.watermarkConfig?(t=JSON.parse(JSON.stringify(n)),t=Object.assign(t,n.watermarkConfig),Uf(t)):e}).then(function(e){e&&e.attributes&&e.attributes.isWatermark&&i.push(e),v.guidesPayload({id:t,lastGuideStepSeen:Lf(i,v.lastGuideStepSeen),guides:Of(i)})})["catch"](function(e){return Ff(document,e),C.reject(e)})):(v.guidesPayload({id:t,lastGuideStepSeen:{},guides:[]}),C.resolve()):(I.info("Invalid guide url, exiting preview"),C.reject("invalid guide url")):(I.info("Invalid origin, exiting preview"),C.reject("invalid origin"))}function Zf(e,t){var n=Bf();return!n||!$f(n)||!(e=/[?&]id=(\d+)/.exec(e))||e.length<1?C.reject():zf(n,e[1]).then(t)}function Vf(e,t,n,i){var r,o;if(t)return o=r=(t=t.split("/"))[t.length-1],e&&(o="".concat(e).concat(r.slice(r.indexOf(n)))),i&&-1<(e=o.indexOf("sha256="))&&(o="".concat(o.slice(0,e)).concat("sha256=").concat(i)),t[t.length-1]=o,t.join("/")}Yf=null,Hf=[],Kf=function(e){v.apiKey=e+="",Yf=e};var Yf,Hf,Kf,Xf,Jf,qf,Qf={getApiKey:function(){return v.apiKey},discoverKeys:function(e){var t=e.apiKey,e=e.additionalApiKeys,e=void 0===e?[]:e;Yf=null,Hf=[],t=t,(t=m.get("apiKey",t))&&Kf(t),t=e,t=m.get("additionalApiKeys",t),Hf=y.reduce(t,function(e,t){return t&&e.push(t+""),e},[]),Hf=[].concat(t),v.additionalApiKeys=Hf,!Yf&&Hf&&Hf.length&&Kf(Hf[0])},getAdditionalApiKeys:function(){return v.additionalApiKeys},tamperedWith:function(){return v.apiKey!==Yf||v.additionalApiKeys!==Hf}},eg=w.getLocal(),tg=(Xf=ot,Jf="in-app-designer",qf="latest","local"===dt&&(Xf="https://local.pendo.io:8080"),S.leaderChanged.on(function(){ng({ignoreLocalStorageNavigation:/pendo-/.test(window.name)||kf()})}),{launchDesigner:function(e){var t,n="latest",i="designer";lg("designer-styles","@keyframes pendoExtensionSlideIn{from{transform:translate3d(-300px,0,0)}to{transform:translate3d(0,0,0);}}#pendo-draggable-handle{z-index:11;line-height: 15px;text-align:center;font-size:20px;letter-spacing:1.5px;position:absolute;width:100%;height:65px;font-size:16px;background-color:transparent;color:#ABE7DB;user-select:none;cursor: move;cursor: grab;cursor: -moz-grab;cursor: -webkit-grab;}#pendo-draggable-handle:active{cursor: grabbing;cursor: -moz-grabbing;cursor: -webkit-grabbing !important;}#pendo-draggable-handle.hidden{display:none;}#pendo-draggable-handle:hover{color:#2EA2A0;}#pendo-designer-container{animation-duration:375ms;animation-name:pendoExtensionSlideIn;animation-timing-function:cubic-bezier(0.4,0.0,0.2,1); box-shadow: 0px 2px 10px rgba(0,0,0,0.15);height:100vh;width:400px;position:fixed;top:0;left:0;overflow:hidden;border-radius:3px;z-index:1000000;}#pendo-mousemove-cover{position:absolute;height:100%;width:100%;top:0;left:0;z-index:9999999999;display:none;}#pendo-designer-container.fullscreen{width:100%;opacity:0.98;}#pendo-designer-container.closed{left:-400px;}#pendo-designer-iframe{background:#3a3c45;border:0px;height:100%;left:0;z-index:10;top:0;width:100%;}"),pg("designer-shims",Xf+"/"+i+"/"+n+"/plugin.js"),v.DESIGNER_VERSION?ug(n,i):t=window.setInterval(function(){v.DESIGNER_VERSION&&(ug(n,i),clearInterval(t))},100)},launchInAppDesigner:dg,localStorageNavigation:ng,launchOnToken:function(e){if(!hg(window.name)){var t=/pendo-designer=([A-Za-z0-9-]+)/;if(t.test(e)){var n,e=t.exec(e);if(e)return t=function(e){try{return JSON.parse(atob(Lt(e)))||{}}catch(t){return{}}}(e[1]),e=rg(t),n=sg(t),window.localStorage.removeItem("pendo-navigation-state"),window.localStorage.removeItem("pendo-designer-mode"),dg({target:n,host:e,preloader:!1,sidebarDesigner:!!t.sidebarDesigner}),!0}}},sendMessageToLocalStorage:function(e){var t=document.getElementById("pendo-designer-communication-iframe");t&&t.contentWindow.postMessage(e.data,tg.hostConfig.host)},isValidDesignerHost:ig,isValidTarget:ag,addCommunicationIframe:function(e,t){e=e||{};y.isFunction(t)||(t=y.noop);var n=sg(e),e=og(e),i=(new Date).getTime(),r=(tg.windowCommunicationId=i,"pendo-designer-communication-iframe");if(document.getElementById(r))return t(),document.getElementById(r);var o="pendo-designer-communication-embedded";o+="__"+i;i=cg(r,Xf+"/"+e+"/"+n+"/communication.html","border-width:0;height:0;width:0;");return i.setAttribute("name",o),i.onload=t,document.body.appendChild(i),i},addStylesToPage:lg,hostConfig:{host:Xf},isDesignerFrame:hg,addScriptToPage:pg});function ng(e){if(!e.ignoreLocalStorageNavigation){var t,e=eg.getItem("pendo-navigation-state");if(e&&A.getters["frames/isLeader"]()){try{t=JSON.parse(e)}catch(n){return}if(!t.apiKey||t.apiKey===Qf.getApiKey())if(t.apiKey||!t.agentInstallType||t.agentInstallType===De())return e=t.isDADesigner?"da-designer":"in-app-designer",e={target:t.baseUrl,preloader:!0,host:t.host,gcsBucket:t.gcsBucket||e,DADesigner:t.isDADesigner,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},tg.launchInAppDesigner(e),!0}}}function ig(e){return!!e&&ts(e)}function rg(e){var e=(e=e||{}).host||Xf,t=ig(e),e=t?e:ot;return t||I.info("Invalid host, falling back to "+ot),e}function og(e){var e=(e=e||{}).gcsBucket||Jf,t="in-app-designer"===(t=e)||"da-designer"===t||"adopt-studio"===t,e=t?e:Jf;return t||I.info("Invalid bucket, falling back to "+Jf),e}function ag(e){return"latest"===e||"strict"===e||"beta"===e||"via"===e||"mobile"===e||new RegExp("^[0-9]+.[0-9]+.[0-9]+(-[a-z0-9-]+[a-z0-9]+)?$").test(e)}function sg(e){e=e||{};var t=m.get("enableCrossOriginIsolation")?"strict":qf,e=e.target||e.baseFolder||t,t=ag(e),e=t?e:qf;return t||I.info("Invalid target, falling back to "+qf),e}function dg(e){if(!hg(window.name)&&!v.designerLaunched)if(m.get("disableDesigner"))I.info("Unable to launch the Visual Design Studio, set to disabled in configuration.");else{var t,n,i,r,o,a=!1;try{a=!!window.top.pendo}catch(s){}tg.crossFrameChannel===undefined&&(tg.crossFrameChannel=L,tg.useCrossFrameChannel=!0),As()&&a&&!e.allowChildFrame&&!e.selectionOnly?I.info("skipping designer launch from a child frame. pass `allowChildFrame: true` to override"):v.isReady()?(v.designerLaunchTime=(new Date).getTime(),a=rg(e=e||{}),i=og(e),r=sg(e),n=e.preloader?"preloader.js":"plugin.js",t=e.preloader?"preloader-shims":"designer-shims",n=a+"/"+i+"/"+r+"/"+n,tg.hostConfig={gcsBucket:i,baseFolder:r,uniqueWindowId:e.uniqueWindowId,host:a,adoptv2:e.adoptv2,DADesigner:e.DADesigner,agentInstallType:De(),forceNativeDesigner:!!e.forceNativeDesigner,sidebarDesigner:!!e.sidebarDesigner,apiKey:Qf.getApiKey()},i={},e.selectionOnly&&(i["selection-only"]=!0),m.get("pendoGlobalKey")&&(i["data-pendo-global-key"]=m.get("pendoGlobalKey")),r=m.get("designerAgentPluginsLoader"),a=window.__pendoExtensions&&e.forceNativeDesigner,o=!window.__pendoExtensions&&!y.isFunction(r),(a||o)&&(tg.addScriptToPage(t,n,i),v.designerLaunched=!0),!e.forceNativeDesigner&&y.isFunction(r)&&(r(t,n,i),v.designerLaunched=!0)):I.error("Unable to launch the designer, the agent has not been initialized. Please use `pendo.initialize` prior to launching the designer")}}function ug(e,t){window.postMessage({type:"connect",source:"pendo-designer-content-script",destination:"pendo-designer-agent"},location.origin);var n;document.getElementById("pendo-designer-container")||(n="pendo-designer-embedded",n+="__"+tg.windowCommunicationId,(t=cg("pendo-designer-iframe",Xf+"/"+t+"/"+e+"/designer.html")).setAttribute("name",n),e=function(e){var t=document.createElement("div");return t.setAttribute("id","pendo-designer-container"),t.appendChild(e),t}(t),document.body.appendChild(e))}function cg(e,t,n){var i=document.createElement("iframe");return i.setAttribute("id",e),n&&ba(i,n),i.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation allow-forms allow-pointer-lock allow-popups allow-storage-access-by-user-activation"),i.src=t,i}function lg(e,t){var n;document.getElementById(e)||((n=document.createElement("style")).setAttribute("id",e),n.type="text/css",e=document.createTextNode(t),n.appendChild(e),document.getElementsByTagName("head")[0].appendChild(n))}function pg(e,t,n){var i;document.getElementById(e)||((i=document.createElement("script")).setAttribute("charset","utf-8"),i.setAttribute("id",e),i.src=K(v).createScriptURL(t),n&&y.forEach(n,function(e,t){i.setAttribute(t,e)}),document.body.appendChild(i))}function hg(e){try{var t=JSON.parse(e);return/^pendo-/.test(t.frameName)||/^pendo-/.test(t.frame)}catch(n){return!1}}fg={body:"pendo-launch-modal-body",closeButton:"pendo-launch-modal-close-button",container:"pendo-launch-modal",footer:"pendo-launch-modal-footer",header:"pendo-launch-modal-header",launchButton:"pendo-launch-modal-launch-button",title:"pendo-launch-modal-title",logoContainer:"pendo-launch-modal-logo-container",style:"pendo-launch-modal-style",commIframeId:"pendo-designer-communication-iframe"},gg={GRAY_LIGHTER_6:"#EAECF1",GRAY_PRIMARY:"#2A2C35",PENDO_PINK:"#FF4876",TEAL_DARKER:"#036463",TEAL_PRIMARY:"#008180",WHITE:"#FFFFFF"},(mg={BUTTON_HEIGHT:35,HEADER_HEIGHT:60,MODAL_HEIGHT:235,MODAL_TOP_OFFSET:150,MODAL_WIDTH:370}).FOOTER_HEIGHT=1.25*mg.HEADER_HEIGHT,mg.BODY_HEIGHT="calc(100% - "+mg.HEADER_HEIGHT+"px - "+mg.FOOTER_HEIGHT+"px)",vg='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 164.12 164.12"><defs><style>.cls-1{fill:#fff;}</style></defs><title>chevron</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><polygon class="cls-1" points="82.06 0 0 82.06 82.06 82.06 82.06 164.13 164.13 82.06 164.13 0 82.06 0"/></g></g></svg>',(yg={})["#"+fg.closeButton+":hover"]={"background-color":gg.GRAY_LIGHTER_6},yg["#"+fg.launchButton+":hover"]={"background-color":gg.TEAL_DARKER+" !important"},bg={PRIMARY_FONT:"Helvetica Neue"};var fg,gg,mg,vg,yg,bg,Ig={listen:function(){return y.isFunction(document.addEventListener)?(document.addEventListener("keyup",wg,!1),function(){document.removeEventListener("keyup",wg,!1)}):function(){}},launchOnLocalStorageToken:xg,ids:fg,removeElement:Eg,attemptToLaunch:Ag,loadPluginJs:function(){var t;v.designerLaunched||(t=y.once(function(e){xg(e,!0)}),Ts(function(e){"pendo-designer-launch-modal"===e.data.destination&&e.data.token&&t(e.data.token)}))}};function wg(e){e.shiftKey&&e.altKey&&"Digit7"===e.code&&Ag(!0),e.shiftKey&&e.altKey&&"Digit8"===e.code&&Ag(!1,!0)}function Cg(e,t){var n,i,r,o={"background-color":gg.WHITE,height:mg.MODAL_HEIGHT+"px","min-height":mg.MODAL_HEIGHT+"px",width:mg.MODAL_WIDTH+"px",position:"fixed",top:mg.MODAL_TOP_OFFSET+"px",left:"50%","margin-left":-mg.MODAL_WIDTH/2+"px","border-radius":"4px","box-shadow":"0px 13px 28px rgba(0, 0, 0, 0.17)",overflow:"hidden","z-index":"300000","box-sizing":"border-box"},o=Sg("div",fg.container,o);o.appendChild(((i=document.createElement("style")).setAttribute("id",fg.style),i.type="text/css",r=document.createTextNode(function(e){return y.reduce(y.pairs(e),function(e,t){var n=t[0],t=t[1];return e+n+"{"+y.reduce(y.pairs(t),function(e,t){return e+t[0]+":"+t[1]+";"},"")+"} "},"")}(yg)),i.appendChild(r),i)),o.appendChild((r=t,i=Sg("div",fg.header,{"background-color":gg.GRAY_PRIMARY,height:mg.HEADER_HEIGHT+"px","min-height":mg.HEADER_HEIGHT+"px",width:"100%",padding:"10px 20px",display:"flex","align-items":"center","box-sizing":"border-box"}),(t=Sg("div",fg.logoContainer,{height:"38px",width:"44px","background-color":gg.PENDO_PINK,padding:"8px","border-radius":"3px","box-sizing":"border-box"})).innerHTML=K(v).createHTML(vg),i.appendChild(t),(t=Sg("div",fg.title,{width:"100%",display:"flex","align-items":"center","font-family":bg.PRIMARY_FONT,"font-size":"18px",color:gg.WHITE,"margin-left":"10px","box-sizing":"border-box"})).innerText=r?"VIA Designer":"Pendo Designer",i.appendChild(t),i)),o.appendChild(((r=Sg("div",fg.body,{height:mg.BODY_HEIGHT,"min-height":mg.BODY_HEIGHT,width:"100%",display:"flex",padding:"32px 20px","font-family":bg.PRIMARY_FONT,"font-size":"14px","box-sizing":"border-box"})).innerText="Thanks for letting us know you're here. We're ready to try this again. Launch Designer below to begin.",r)),o.appendChild((n=e,t=Sg("div",fg.footer,{"align-items":"center","border-top":"1px solid"+gg.GRAY_LIGHTER_6,display:"flex",height:mg.FOOTER_HEIGHT+"px","justify-content":"flex-end","min-height":mg.FOOTER_HEIGHT+"px",padding:"10px",width:"100%","box-sizing":"border-box"}),(i=Sg("button",fg.closeButton,{"border-radius":"3px",border:"none",height:mg.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":bg.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","margin-right":"10px","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Close",i.onclick=function(){Eg(fg.container),Eg(fg.commIframeId)},(r=Sg("button",fg.launchButton,{"background-color":gg.TEAL_PRIMARY,"border-radius":"3px",color:gg.WHITE,border:"none",height:mg.BUTTON_HEIGHT+"px","padding-right":"10px","padding-left":"10px","font-family":bg.PRIMARY_FONT,"font-size":"14px",display:"flex","line-height":"120%","min-width":"90px","justify-content":"center","box-sizing":"border-box"})).textContent="Launch Designer",r.onclick=function(){xg(n)},t.appendChild(i),t.appendChild(r),t)),document.body.appendChild(o)}function Sg(e,t,n){e=document.createElement(e);return e.setAttribute("id",t),y.extend(e.style,n),e}function Ag(t,n){var i,r,o;v.designerLaunched||(o=y.once(function(e){t||!n?xg(e):Cg(e,t),Tg()}),Ts(function(e){"pendo-designer-launch-modal"===e.data.destination&&(clearInterval(i),e.data.viaconfirmed?clearInterval(r):e.data.token?(o(e.data.token),e=JSON.parse(e.data.token),y.contains(e.host,"via")&&!e.visitorId&&(r=r||setInterval(function(){document.getElementById(fg.commIframeId)&&_g()},100))):Tg())}),tg.addCommunicationIframe({defaultBucket:"in-app-designer"},function(){_g(),i=window.setInterval(_g,50)}))}function Eg(e){document.getElementById(e)&&document.getElementById(e).remove()}function Tg(){var e=document.querySelector("#"+fg.commIframeId+'[src*="pendo"]');e&&e.remove()}function _g(){var e=document.getElementById(fg.commIframeId);e&&e.contentWindow&&y.isFunction(e.contentWindow.postMessage)&&e.contentWindow.postMessage({destination:"pendo-designer-ls",source:"pendo-designer-launch-modal",visitorId:v.visitorId},y.get(v,"designerv2.hostConfig.host",ot))}function xg(e,t){var n={},e=JSON.parse(e);n.target=e.target||"latest",e.host&&(n.host=e.host),e.lookaside&&(n.lookaside=e.lookaside),t&&(n.selectionOnly=t),e.forceNativeDesigner&&(n.forceNativeDesigner=e.forceNativeDesigner),e.sidebarDesigner&&(n.sidebarDesigner=e.sidebarDesigner),Eg(fg.container),tg.launchInAppDesigner(n)}var Rg=y.wrap(y.wrap(y.once(y.wrap(function(e){var t=C.defer();return as(e,function(){t.resolve()}),t.promise},function(e,t){return 0<y.size(ec._handlers.validateGlobalScript)?ao.get(t).then(function(e){return ec.validateGlobalScript(e.data)}).then(function(){return e(t)}):e(t)})),function(e,t){return t?e(t):C.resolve()}),function(e,t){return m.get("preventCodeInjection")?C.resolve():e(t)}),kg={initializeWatermark:function(e){e=y.filter(e,function(e){return e&&e.attributes&&e.attributes.isWatermark}),kg.watermarkGuides=e,e=y.map(e,function(e){return e.fetchContent()});return C.all(e)},buildWatermark:function(e,t){if((e=e||{}).isTraining){var n=e.targetAccount?function(t){return y.find(kg.watermarkGuides,function(e){return t===e.targetAccount})}(e.targetAccount):function(t){return y.find(kg.watermarkGuides,function(e){return t===e.appId})}(e.appId);if(n&&n.steps){var i,n=n.steps[0];if(n&&n.domJson)return i=n.domJson,(i=t(i,n)).css({position:"absolute",left:"auto",top:e.isBottomAligned?"auto":"100%",bottom:e.isBottomAligned?"100%":"auto",right:"0"}),i}}}},Og=1e4;function Ng(n,i){var r=!1,o=[];return n.addEventListener("message",function(e){d(e.data),i.state.guideUpdate.useObserver&&i.dispatch("guideUpdate/documentChanged")}),{postMessage:a,postMessageAsPromise:s,postMessageOrTimeout:function(e,t){void 0===t&&(t=Og);var n=C.defer(),i=Et(32),r=(e=y.extend(e,{promiseId:i}),Dt(function(){o[i]&&(n.reject(JSON.stringify({message:"request timed out"})),delete o[i])},t));return s(e).then(function(e){clearTimeout(r),n.resolve(e)}),n.promise},close:function(){r=!0,y.isFunction(n.close)&&n.close()}};function a(e){var t;r||(t=y.extend({apiKey:v.apiKey,allowMixedApiKeyFrames:m.get("allowMixedApiKeyFrames"),agentInstallType:De()},e),n.postMessage(t),Dt(function(){d(t)},0))}function s(e){e.promiseId||(t=Et(32),e=y.extend(e,{promiseId:t}));var t=C.defer();return o[e.promiseId]=t,a(y.extend(e,{sourceFrame:i.state.frames.frameId})),t.promise}function d(e){try{var t;r||e.apiKey!==v.apiKey&&(!1===e.allowMixedApiKeyFrames||!1===m.get("allowMixedApiKeyFrames"))||e.targetFrame&&e.targetFrame!==i.state.frames.frameId||(e.resolveId?(t=o[e.resolveId])&&(delete o[e.resolveId],t.resolve(JSON.stringify(e))):/^frames\/|^debugger\//.test(e.action)&&i.dispatch(e.action,e))}catch(n){I.critical("ERROR in cross frame channel",{error:n})}}}var Mg="frames/removeFrame";function Lg(e,t,n){return new Fg(e,t,n,(e=t,t=n,new(y.isFunction(e.MessageChannel)?Pg:Gg)(e,t)))}function Fg(e,t,n,i){this.init(e,t,n,i)}y.extend(Fg.prototype,{init:function(e,t,n,i){this._store=e,this._window=t,this._singletonMessageHandler=n,this._listeners=[],this._targetOrigin=n.targetOrigin(),this._impl=i,this._impl.onconnect=y.bind(this._frameConnectHandler,this),this._impl.onmessage=y.bind(this._fireMessageListeners,this),this._impl.onrelay=y.bind(this._topMessageHandler,this),this._connectToTop(10,0,function(){this._addControlMessageHandler(),this._connectToTop(250,21,function(){this.close(),this._store.commit("frames/setConnectFailed")})})},_fireMessageListeners:function(t){y.each(this._listeners,function(e){e(t)})},_controlMessageHandler:function(e){e=this._impl._parseMessage(e);e.data&&("pendo::connect"===e.data.action&&this._impl.frameConnect(e),e.data.action===Mg)&&this._topMessageHandler(e)},_topMessageHandler:function(e){!e.data||/^pendo::/.test(e.data.action)||this._closed||(e.data.action===Mg&&this._impl.frameDisconnect(e),this._impl.broadcast(e))},_connectToTop:function(e,t,n){this._impl.connectToTop({action:"pendo::connect",frameId:this._store.state.frames.frameId},this._targetOrigin),Dt(y.bind(function(){this._connected||(0===t?y.isFunction(n)&&n.call(this):0<t&&this._connectToTop(Math.min(2*e,1e4),t-1,n))},this),e)},_addControlMessageHandler:function(){this._singletonMessageHandler.addEventListener(y.bind(this._controlMessageHandler,this))},_frameConnectHandler:function(e){e.data&&"pendo::connectSuccess"===e.data.action&&(this._connected=!0,this._impl.connectSuccess(e),this._store.dispatch("frames/join"))},addEventListener:function(e,t){"message"===e&&this._listeners.push(t)},postMessage:function(e){this._closed||this._impl.postMessage(e)},close:function(){this._closed=!0,this._listeners.length=0,this._impl.close()}});s={_frameConnectHandler:function(e){y.isFunction(this.onconnect)&&this.onconnect(this._parseMessage(e))},_messageReceived:function(e){y.isFunction(this.onmessage)&&this.onmessage(this._parseMessage(e))},_relayMessage:function(e){y.isFunction(this.onrelay)&&this.onrelay(this._parseMessage(e))},_parseMessage:function(e){var t;return y.isString(e.data)?((t=y.pick(e,"type","origin","source","ports","lastEventId","target")).data=function(e){if(!y.isString(e))return e;try{return JSON.parse(e)}catch(t){return e}}(e.data),t):e}};function Pg(e,t){this._window=e,this._ports={},this._singletonMessageHandler=t,this._targetOrigin=t.targetOrigin()}function Gg(e,t){this._window=e,this._frames={},this._isTop=e==e.top,this._singletonMessageHandler=t,this._boundMessageReceived=y.bind(this._messageReceived,this),this._isTop||(this._boundFrameConnectHandler=y.bind(this._frameConnectHandler,this),t.addEventListener(this._boundFrameConnectHandler))}y.extend(Pg.prototype,s,{connectToTop:function(e,t){this._closeChannel(),this._openChannel();var n=[];this._channel.port2&&n.push(this._channel.port2),this._window.top.postMessage(e,t,n)},frameConnect:function(e){var t,n=e.ports[0];(t=n)&&y.all(["addEventListener","start"],function(e){return y.isFunction(t[e])})&&((this._ports[e.data.frameId]=n).addEventListener("message",y.bind(this._relayMessage,this)),n.start(),n.postMessage({action:"pendo::connectSuccess"}),n.postMessage({action:"frames/receiveFrame",frame:A.state.frames.frames[A.state.frames.frameId],"pendo-preview":A.state.preview.preview}))},frameDisconnect:function(e){delete this._ports[e.data.frameId]},connectSuccess:function(){this._port.removeEventListener("message",this._boundFrameConnectHandler),this._port.addEventListener("message",y.bind(this._messageReceived,this))},broadcast:function(t){y.each(this._ports,function(e){t.target!==e&&e.postMessage(t.data)})},postMessage:function(e){this._port&&this._port.postMessage(e),e.action===Mg&&this._window.top.postMessage(e,this._targetOrigin)},close:function(){y.each(this._ports,function(e){e.close()}),this._ports={},this._closeChannel()},_openChannel:function(){this._channel=new this._window.MessageChannel,this._port=this._channel.port1,this._boundFrameConnectHandler=y.bind(this._frameConnectHandler,this),this._port.addEventListener("message",this._boundFrameConnectHandler),this._port.start()},_closeChannel:function(){this._port&&y.isFunction(this._port.close)&&(this._port.close(),this._port=null,this._channel=null)}}),y.extend(Gg.prototype,s,{connectToTop:function(e,t){this._isTop||this._window.top.postMessage(JSON.stringify(e),t)},frameConnect:function(e){this._frames[e.data.frameId]=e.source,this._relayHandlerAdded||(this._relayHandlerAdded=!0,this._boundRelayMessage=y.bind(this._relayMessage,this),this._singletonMessageHandler.addEventListener(this._boundRelayMessage)),e.source.postMessage(JSON.stringify({action:"pendo::connectSuccess"}))},frameDisconnect:function(e){delete this._frames[e.data.frameId]},connectSuccess:function(){this._singletonMessageHandler.removeEventListener(this._boundFrameConnectHandler),this._singletonMessageHandler.addEventListener(this._boundMessageReceived)},broadcast:function(t){var n=this._singletonMessageHandler.targetOrigin();y.each(this._frames,function(e){t.source!=e&&e.postMessage(JSON.stringify(t.data),n)}),t.source!=this._window&&this._messageReceived(t)},postMessage:function(e){this._isTop?this._relayMessage({data:e,source:this._window}):this._window.top.postMessage(JSON.stringify(e),this._singletonMessageHandler.targetOrigin())},close:function(){var e=this._singletonMessageHandler;e.removeEventListener(this._boundFrameConnectHandler),e.removeEventListener(this._boundMessageReceived),e.removeEventListener(this._boundRelayMessage)}});Dg=window,Bg=ts,$g=!(Wg=[]);var Dg,Bg,Wg,$g,Ug={targetOrigin:function(){return $g?location.origin:"*"},secure:function(e){$g=e},addEventListener:function(e){0===Wg.length&&Dg.addEventListener("message",jg),Wg.push(e)},removeEventListener:function(e){e=Wg.indexOf(e);0<=e&&Wg.splice(e,1),0===Wg.length&&Dg.removeEventListener("message",jg)},close:function(){Dg.removeEventListener("message",jg),Wg.length=0}};function jg(t){$g&&!Bg(t.origin)||y.each(Wg,function(e){y.isFunction(e)&&e(t)})}function zg(e){if(!tt.addEventListener)return{addEventListener:y.noop,postMessage:y.noop,close:y.noop};var o,a,t=!!window.__pendoExtensions;if(m.get("preferBroadcastChannel")&&!t&&y.isFunction(window.BroadcastChannel)){e.commit("frames/setChannelType","BroadcastChannel");t=new BroadcastChannel("pendo"),o=Dn,a=[],t.removeEventListener=y.wrap(t.removeEventListener,function(e,t,n){var i,r=y.toArray(arguments).slice(1);return"message"===t&&0<=(i=y.findIndex(a,function(e){return e[0]===n}))&&(r[1]=a[i][1],a.splice(i,1)),e.apply(this,r)}),t.addEventListener=y.wrap(t.addEventListener,function(e,t,n){var i,r=y.toArray(arguments).slice(1);return"message"===t&&(r[1]=i=function(e){if(e.data.tabId===o.getTabId())return n.apply(this,arguments)},a.push([n,i])),e.apply(this,r)}),t.postMessage=y.wrap(t.postMessage,function(e,t){return t.tabId=o.getTabId(),e.apply(this,y.toArray(arguments).slice(1))});if(t&&y.isFunction(t.postMessage))return t}return e.commit("frames/setChannelType","TopFrameRelay"),Lg(e,window,Ug)}var Zg="guides_blocked",Vg="Guides disabled: unreachable endpoint guide.gif";var Yg=w.getLocal(),Hg=[],Kg="Guide was not shown because this visitor is in a control group of an active experiment for the guide",Xg=[];function Jg(){var e=m.get("guideCssAssetPath");return e||Bo("guide.css")}var qg="_pendo-guide_",Qg="_pendo_g_",em=0;function tm(e){em=e}var nm=function(){return y.any(k,function(e){return e.isShown()})},im=function(e,t){var n=R("._pendo-close-guide_",e);return n.length||(n=R(document.createElement("button")).attr("id","_pendo-close-guide_").attr("aria-label","close").addClass("_pendo-close-guide_").text("\xd7"),nt()?9<We&&n.css({top:3}):8===We?n.css({top:9,right:2}):9===We?n.css({right:2,top:3}):9<We&&n.css({top:3}),e=R("._pendo-guide-container_",e)[0]||e,n.appendTo(e),n[0].onclick=function(){t()}),n[0]},rm=function(n){return y.reduce(k,function(e,t){return n(t)&&e.push(t),e},[])},om=function(e,t,n,i,r){e=Mu(Ou(e),t);e&&(e.seenState=n,e.lastSeenAt=i,r!==undefined)&&(e.dismissCount=r)},am=function(e){for(var t=new RegExp("^"+Qg);e;){if(y.isString(e.id)&&t.test(e.id))return e.id.replace(t,"");e=e.parentNode}return null};function sm(t){y.each(k,function(e){y.isFunction(e.isShown)&&e.isShown()&&e.hide(t)})}var dm=function(e){return e&&e.guideId};var um=function(e,t){var n,i;return dm(e)&&(t=e,e=null),(n=t)&&y.isFunction(n.render)?t:t?(n=Ou(t.guideId))&&n.findStepById(t.id):(n=y.find(k,function(e){return e.isShown()}))?((i=e?am(e.target||e.srcElement||e):i)?(t=n.findStepById(i))||ra("findStepForGuideEvent: step with id "+i):(t=y.find(n.steps,function(e){return e.isShown()}))||ra("findStepForGuideEvent: no step shown"),t):void 0},cm=function(e){var t="element"===e.advanceMethod?"click":"mouseover",n=zu(e);"tooltip"===e.type&&y.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):yu(n,t,Im,!0)};function lm(e){return e.isLocked()&&(!e.elements||!e.elements.length||void oa('guide "'+e.guideId+'", step "'+e.id+'" locked and rendered'))}var pm=function(e){var e=R("#_pendo-badge_"+e.id),t=e.find("input"),t=0<t.length?t:e;t.length<1||t[0].focus()},hm=function(e){e=y.get(e,"attributes.activation.selector",""),e=Jr(e);e.length<1||e[0].focus()},fm=function(){var e=N.getResourceCenterBadge();e?e.element().focus():(e=N.getResourceCenter(),hm(e))},gm=function(e){if(!v.designer&&e&&"building-block"===y.get(e,"attributes.type","")){var t=e.steps[0],n=t.seenReason,i=y.get(e,"launchMethod","").split("-"),r=y.contains(i,"dom"),o=y.contains(i,"badge"),i=Nm(e);if(y.get(t,"attributes.isAutoFocus")||i)switch(n){case"badge":o&&pm(t);break;case"dom":r&&hm(e);break;case"launcher":fm();break;default:return}}};function mm(e,t){return!e.isMultiApp&&("auto"===t||"repeatGuide"===t)}var vm=function(e,t){var n,i,r,o,a,s=null;e&&e instanceof Object&&e.until&&(s=e.until),(t=um(e,t))&&t.id?lm(t)||("dismissed"===t.seenState?I.info("step already dismissed. can't dismiss again",{contexts:["guides","error"]}):(I.info("onGuideDismissed called",{contexts:["guides"]}),S.beforeDismiss.trigger(t).cancel?I.info("Guide dismiss canceled during runtime in step: "+t.id):s?t.hide({stayHidden:!0}):(cm(t),e=t.id,n=Ou(s=t.guideId),i=(i=y.first(n&&n.steps))&&i.seenReason,o=n&&n.language,r=y.get(t,"dismissCount",0)+1,Gm(s,e,E(),i,o),o=b(),om(s,e,"dismissed",o,r),(a=y.isFunction(t.getGuide)&&t.getGuide())&&a.attributes&&a.attributes.doNotResume||Th({guideId:s,guideStepId:e,time:o,state:"dismissed",seenReason:i,visitorId:E(),dismissCount:r}),mm(n,i)&&Wm(o,Bm.DISMISSED),t.hide(),gm(a),nm()||($h(),Uh())))):$h()},ym=function(e,t,n){var i,r,o,a,s,d,u,c;I.info("onGuideSnoozed called",{contexts:["guides"]}),(t=um(e,t))?"snoozed"===t.seenState?I.info("step already snoozed. can't snooze again",{contexts:["guides","error"]}):S.beforeSnooze.trigger(t).cancel?I.info("Guide snooze canceled during runtime in step: "+t.id):(n||(n=864e5,I.info("no snooze duration provided, defaulting to 1 day")),lm(t)||(cm(t),e=t.id,i=t.guideId,r=E(),o=Ou(i),a=o&&o.language,s=y.first(o&&o.steps),s=s&&s.seenReason,d=b(),I.info("snoozing guide for "+n+" ms"),u=d+n,t.snoozeEndTime=u,c=Um({type:"guideSnoozed",guideId:c=i,stepId:e,visitorId:r,seen_reason:s,language:a,snooze_duration:n}),Zm(c),S.guideSnoozed.trigger(c),om(i,e,"snoozed",d),o&&o.attributes&&o.attributes.doNotResume||Th({guideId:i,guideStepId:e,time:d,state:"snoozed",seenReason:s,visitorId:E(),snoozeEndTime:u}),mm(o,s)&&Wm(d,Bm.SNOOZED),t.hide(),gm(o),nm())||($h(),Uh())):(I.info("missing step. can't snooze",{contexts:["guides","error"]}),$h(),ra("onGuideSnoozed: missing step"))},bm=function(e){var t,n,i,r=(r=e&&e.step)||um(e);r?(i=e&&e.params,i=y.find(i,function(e){return"goToStepId"===e.name}),t=i&&i.value,(t=e&&e.destinationStepId?e.destinationStepId:t)?t===r.id?I.info("[goToStep] step id matches the current step",{contexts:["guides","error"]}):(i=Ou(r.guideId),(n=y.find(i.steps,function(e){return e.id===t}))?(n=y.indexOf(i.steps,n),i=y.indexOf(i.steps,r),e.steps=Math.abs(n-i),e.action=e.action||"goToStep",e.destinationStepId=t,i<n?Im(e,r,!1):wm(e,r)):I.info("[goToStep] guide has no step matching the step id",{contexts:["guides","error"]})):I.info("[goToStep] missing step id to go to",{contexts:["guides","error"]})):I.info("[goToStep] missing current step",{contexts:["guides","error"]})},Im=function(e,t,n){if((s=jv())&&y.each(s.steps,function(e){var t="element"==e.advanceMethod?"click":"mouseover",n=zu(e);"tooltip"===e.type&&y.isFunction(e.teardownElementEvent)?e.teardownElementEvent(n,t):yu(n,t,Im,!0)}),1===arguments.length&&dm(e)&&(s=ku(e.guideId),i=um(),s)&&i&&y.first(s.steps).id===i.id&&y.last(s.steps).id===e.id&&(I.info("Cannot skip to last step from first step"),e=null),I.info("onGuideAdvanced called",{contexts:["guides"]}),(t=um(e,t))===e&&(e=null),t){if(!lm(t))if("advanced"!==t.seenState||n)if(S.beforeAdvance.trigger(t).cancel)I.info("Guide advance canceled during runtime in step: "+t.id);else{var i=e&&e.action&&"goToStep"===e.action||!1,r=Ou(t.guideId),o=r&&r.language,a=r&&r.steps&&y.findIndex(r.steps,function(e){return t.id==e.id});if(e&&y.isNumber(e.steps)&&1<e.steps&&!i){var s=a+(e.steps-1),d=s=s>=r.steps.length?r.steps.length-1:s;!0===e.skip&&(d=a+1);for(var u=a;u<d;++u){t=r.steps[u],Dm(r.id,t.id,E(),t.seenReason,o,u!==a);var c=b();Th({guideId:t.guideId,guideStepId:t.id,time:c,state:"advanced",seenReason:t.seenReason,visitorId:E()}),om(r.id,t.id,"advanced",c)}return Im(r.steps[s],t,!0)}var l,i=t.id,s=t.guideId,p=y.first(r&&r.steps),p=p&&p.seenReason,h=e&&e.destinationStepId,f=(h||(f=e&&y.isNumber(e.steps)&&1<e.steps?e.steps:1,h=(f=y.isNumber(a)&&r&&r.steps&&r.steps[a+f])&&f.id||null),h||I.info("missing destination step id"),I.info("advancing guide"),Dm(s,i,E(),p,o,n,h),I.info("update guide status"),r&&y.last(r.steps).id===i&&(l=y.get(t,"dismissCount",0)+1),(new Date).getTime()),g=(om(s,i,"advanced",f,l),y.isFunction(t.getGuide)&&t.getGuide());g&&g.attributes&&g.attributes.doNotResume||Th({guideId:s,guideStepId:i,time:f,state:"advanced",seenReason:p,visitorId:E(),destinationStepId:h,dismissCount:l}),mm(r,p)&&Wm(f,Bm.ADVANCED),I.info("stop guide"),$h(),I.info("start guides"),Uh()}else I.info("step already advanced. can't advance again",{contexts:["guides","error"]})}else I.info("missing step. can't advance",{contexts:["guides","error"]}),$h(),ra("onGuideAdvanced: missing step")},wm=function(e,t){var n,i,r,o,a,s;I.info("onGuidePrevious called",{contexts:["guides"]}),(t=um(e,t))?"advanced"===t.seenState?I.info("step already advanced. can't go to previous again",{contexts:["guides","error"]}):S.beforePrevious.trigger(t).cancel?I.info("Guide previous canceled during runtime in step: "+t.id):(o=Ou(n=t.guideId),s=e&&e.action&&"goToStep"===e.action||!1,0!==(i=y.indexOf(o.steps,t))&&(r="element"==t.advanceMethod?"click":"mouseover",a=zu(t),"tooltip"===t.type&&y.isFunction(t.teardownElementEvent)?t.teardownElementEvent(a,r):yu(a,r,Im,!0),a=e&&y.isNumber(e.steps)?e.steps:1,r=y.first(o&&o.steps),a=0<=(i=i-a)?o.steps[i]:r,i=r&&r.seenReason,r=o&&o.language,o=a.id,(o=s&&e&&e.destinationStepId?e.destinationStepId:o)||I.info("missing destination step id"),I.info("advancing guide"),Dm(n,t.id,E(),i,r,!1,o),I.info("update guide status"),a=(new Date).getTime(),om(t.guideId,t.id,"advanced",a),(s=y.isFunction(t.getGuide)&&t.getGuide())&&s.attributes&&s.attributes.doNotResume||Th({guideId:t.guideId,guideStepId:t.id,time:a,state:"advanced",seenReason:i,visitorId:E(),destinationStepId:o}),$h(),Uh())):($h(),ra("onGuidePrevious: missing step"))},Cm=function(e){var t;R("._pendo-credits_",e).length||((t=document.createElement("img")).setAttribute("src",Do()+"/img/tiny-logo.png"),t=R(document.createElement("div")).addClass("_pendo-credits_").css({bottom:0,right:v.TOOLTIP_ARROW_SIZE}).append(t),wu.push(t[0]),t.appendTo(e))};function Sm(e){return e&&e.attributes&&e.attributes.stayHidden}var Am=function(e,t,n){var i;return sf()&&(i=e.id,e=e.guideId,S.stepEligibility.trigger({stepId:i,guideId:e,eligible:t,reason:n})),t},Em=function(e){var t,n,i=y.partial(Am,e);return Sm(e)?i(!1,"dismissed"):e.elementPathRule||"lightbox"!==e.type&&"whatsnew"!==e.type?e.triggerElementPathRule&&!za(Jr(e.triggerElementPathRule)[0])?i(!1,"trigger_element"):(t=zu(e),(n=e.targetElement)&&e.elementContainsRulesList&&!_m(n,e.elementContainsRulesList)?i(!1,"contains_rules"):(n="tooltip"===e.type||bl.isBuildingBlockGuideRelativeToElement(e),e=za(t),n?e?i(e,"target_element_tooltip"):i(Za(t),"target_element_tooltip_scroll"):i(e,"target_element"))):i(!0,"")};function Tm(e){var t=(R(e).text()||"").trim().toLowerCase(),e=e.value;return t||e}function _m(e,t){for(var n=Tm(e),i=0;i<t.length;i++)if(!xm(n,t[i]))return!1;return!0}function xm(e,t){var n=t.matchType,i=t.matchValue,t=t.dataType,e=e||"";if("number"===t){var r=Nt(e);if(null==r)return!1;e=parseFloat(r),i=parseFloat(i);if(isNaN(e)||isNaN(i))return!1}else"string"===t&&(e=e.toLowerCase(),i=i.toLowerCase());return"equal"===n?e===i:"notEqual"===n?e!==i:"contains"===n?-1<String(e).indexOf(i):"notContains"===n?-1===String(e).indexOf(i):"greaterThan"===n?i<e:"lessThan"===n&&e<i}var Rm=function(e){return Qg+e.id},km=function(e){var t=e.element,n=y.first(R("#"+Rm(e)));t&&n?za(t)||R.hasClass(n,"mouseover")?Dt(function(){km(e)},Dh):e.hide&&(e.hide(),nm())||($h(),Uh()):t||!n||e.hide&&(e.hide(),nm())||($h(),Uh())},Om=function(){return!1},Nm=y.partial(y.get,y,"attributes.resourceCenter"),Mm=function(t){var e;nm()&&(e=um(),cm(e),Nm(t)?(e=rm(Nm),(e=y.filter(e,function(e){return e.id!==t.id})).length&&A.dispatch("frames/hideGuides",y.pluck(e,"id"))):(sm(),A.dispatch("frames/hideGuides")))},Lm=function(e,t){return!(!e||!e.guideId||!(e=Ou(e.guideId)))&&(Mm(e),e.launch(t),e.isShown())},Fm=function(e,t,n,i,r,o){e=Um({type:"guideNotSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r});o&&y.extend(e.props,{step_poll_types:o}),Zm(e),S.guideNotSeen.trigger(e)};var Pm=function(e,t,n,i,r,o){i||(I.critical("pendo.io guideSeen exception",{guideId:e,stepId:t,error:new Error("seenGuide called without seen reason")}),a=Ou(e),s="auto",i=a&&(a=(a.launchMethod||s).split("-"),!y.contains(a,s))&&a.length?y.first(a):s);var a=Um({type:"guideSeen",guideId:e,stepId:t,visitorId:n,reason:i,language:r}),s=(y.extend(a.props,o),Zm(a),b());Th({guideId:e,guideStepId:t,time:s,state:"active",seenReason:i,visitorId:E()}),om(e,t,"active",s),S.guideSeen.trigger(a)};function Gm(e,t,n,i,r){e=Um({type:"guideDismissed",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r});Zm(e),S.guideDismissed.trigger(e)}function Dm(e,t,n,i,r,o,a){e={type:"guideAdvanced",guideId:e,stepId:t,visitorId:n,seen_reason:i,language:r},a&&(e.destination_step_id=a),t=Um(e);Zm(t,null,o),S.guideAdvanced.trigger(t)}var Bm={DISMISSED:"latestDismissedAutoAt",SNOOZED:"latestSnoozedAutoAt",ADVANCED:"finalAdvancedAutoAt"};function Wm(e,t){$m(e,t);var n={};n[t]=e,A.dispatch("frames/changeThrottlingState",n)}function $m(e,t){y.contains(y.values(Bm),t)&&(y.isFunction(e.getTime)&&(e=e.getTime()),v[t]=e,w.write(t,e,Ah),A.dispatch("guideState/updateThrottlingState",{name:t,value:e}))}function Um(e,t,n,i,r,o){var a=e,e=("object"!=typeof a&&(a={type:e,guideId:t,stepId:n,visitorId:i,language:o}),r&&(a.reason=r),y.isString(a.language)||delete a.language,y.extend({guide_id:a.guideId,guide_step_id:a.stepId},y.omit(a,"type","guideId","stepId","visitorId"))),t=Dn.addTracerIds({type:a.type,visitor_id:a.visitorId,account_id:vi(),browser_time:(new Date).getTime(),url:Fo.externalizeURL(),props:e});return S.eventCaptured.trigger(t),t}var jm=null,zm=function(e){window.clearTimeout(jm),jm=Dt(wv,e)},Zm=function(e,t,n){t=t||500,e.props.duration=n?0:(new Date).getTime()-em,Tv(),bv.push(e),zm(t)},Vm=function(e,t){return"dismissed"===e.state?null:Ou(e.guideId).nextStep(e,t||Ym())},Ym=function(){return v.normalizedUrl||Hm(Fo.externalizeURL())},Hm=function(e){try{var t=new Si(e),n=y.tail(t.search).join("").split("&");return t.search=n.sort().join("&"),t.href}catch(i){return I.error("Invalid URL provided to normalize"),e}},Km=function(e,t){return!ge(e)||new RegExp(e).test(t)},Xm=function(e,t){e=Nu(e);return!!e&&(!(t=Lm(y.first(e.steps),t||"api"))&&e.control&&I.info(Kg),t)},Jm=function(e,t){e=Ou(e);return!!e&&(!(t=Lm(y.first(e.steps),t||"api"))&&e.control&&I.info(Kg),t)};function qm(e,t){return t=parseInt(t,10),isNaN(t)||!y.isNumber(t)||!(y.isNumber(e)&&e<t)&&y.isNumber(e)?e:t}var Qm,ev=function(){$h(),Wh(),N.removeNotificationBubble(),mf(),$s()};function tv(){$h(),ca(),v.segmentFlags=[],v.doNotProcess=!0,A.commit("debugger/doNotProcess",!0),I.info("not tracking visitor due to 451 response")}function nv(e){var t;Qm&&(451===e.statusCode&&(tv(),Qm.deferred.reject(e)),y.isString(e.id)&&e.id!==Qm.id||(t=y.indexBy(v.guides,"id"),y.extend(v,e),v.guides=y.map(v.guides,function(e){return 1==y.keys(e).length&&e.id?t[e.id]:e}),Qm.deferred&&Qm.deferred.resolve(),Qm=null))}var iv=function(e,t){var n=Wo(),i=y.uniqueId(),r=C.defer(),o=(Qm={id:i,deferred:r},yp()||((o=bp())?(I.info("sending metadata: "+JSON.stringify(o),{contexts:["guides","metadata"]}),t.metadata=o):I.info("no metadata to send",{contexts:["guides","metadata"]})),bt(t)),i={id:i,jzb:o,v:ut,ct:(new Date).getTime()},n=(n&&t.accountId&&"ACCOUNT-UNIQUE-ID"!==t.accountId&&(i.acc=Ct(t.accountId)),sf()&&(i.debug=!0),na(rv.endpoint(),e,i)),t=Hs.get();return o=2e3<n.length||!y.isEmpty(t)?(delete i.jzb,n=na("guide.json",e,i),i=y.extend({events:o},t),rv.post(n,i,v,y.noop)):rv.load(n,v,y.noop),C.all([o["catch"](function(e){return 451===e.status&&tv(),C.reject(e)}),r.promise,(t=rv,i=e,"1"===(n=w.read(Zg))?(I.info(Vg),C.resolve({success:!1,cached:!0})):"0"===n?C.resolve({success:!0,cached:!0}):(n=na("guide.gif",i,{jzb:"eJwFwIEIAAAAwDDQd3-N1QABFQC5",ct:b(),v:ut}),(t.usesXhr()?ao.get(n):aa(n)).then(function(){return{success:!0}},function(e){return e&&e.status?{success:!0}:{success:!1}})))]).then(function(e){var t,e=e[2];if((t=e).cached||(t.success?w.write(Zg,"0",144e5):(I.info(Vg),w.write(Zg,"1",18e5))),!e.success)return C.reject()})},rv=tc;function ov(e){e=y.find(e.steps,function(e){return e.pageId&&!e.regexUrlRule});return!e||(I.critical("pendo.io guide validation exception",{guideId:e.guideId,stepId:e.id,error:new Error("missing regexUrlRule for page "+e.pageId+'"')}),!1)}function av(n){return y.every(Xg,function(e){try{return e(n)}catch(t){return console.debug("Error in guide processor",e,n.id),!1}})}function sv(e,t){return e.attributes||(e.attributes={}),!isNaN(e.attributes.priority)&&y.isNumber(e.attributes.priority)||(e.attributes.priority=t),-e.attributes.priority}var dv,uv=function(){return!m.get("disableGlobalCSS")};function cv(e,t){var n=m.get("dropAnonymous");if(ri(e)&&n)I.info("loading guides blocked for anonymous visitors due to dropAnonymous config setting being set to true"),y.isFunction(t)&&t("error: guides are blocked");else if("1"===w.read(Zg))I.info("guide events are blocked, load guides cancelled"),y.isFunction(t)&&t("error: guides are blocked");else{if(Ls(Fs()))return 1;I.info("bad url: probably local file system",{contexts:["guides","error"]}),y.isFunction(t)&&t("error: invalid url")}}var lv=function(e,o,a,s){var t,d,n,i,r,u,c,l,p,h,f=C.defer(),g=!1;return e=e||v.apiKey,cv(o=o||E(),s)?(I.info("loading guides for "+a+"...",{context:["guides"]}),a=Fo.externalizeURL(a),t=lv.lastVisitorId!==o,d=t?y.noop:(r=k,(i=y.find(r,function(e){return y.isFunction(e.isRendered)&&e.isRendered()&&!e.isTopLevel}))?(n=y.chain(i.steps).filter(function(e){return e.isRendered()}).indexBy("id").value(),function(e){e=y.findWhere(e,{id:i.id});e&&!y.get(e,"attributes.doNotResume")&&y.each(e.steps,function(e){var t=n[e.id];!t||e.seenState&&"active"!==e.seenState||e.show(t.seenReason)})}):function(){}),r=(lv.lastVisitorId=o,Wh(),A.commit("guideState/setLastGuideRequestAt",b()),{visitorId:o,accountId:vi(),url:a,oldVisitorId:pi=pi===undefined&&oi()?bi(ei):pi}),u=v,h=lv,void 0===c&&(c=b()),l=[],m.get("cacheGuides")&&!(l=c-(h.lastUncached||0)<m.get("cacheGuidesTimeout")?y.map(u.guides,function(e){return y.pick(e,"id","lastUpdatedAt")}):l).length&&(h.lastUncached=c),p=((u=l).length&&!t&&(r.cachedGuides=u),y.uniqueId()),h=(lv.reqId=p,iv(e,r).then(function(){var e,t,n,i,r;g||v.designer||(lv.reqId!==p?f.resolve():(S.deliverablesLoaded.trigger(),I.info("successfully loaded guides for "+a,{contexts:["guides"]}),v.designerEnabled&&"true"!==Yg.getItem("pendo-designer-mode")&&Ig.loadPluginJs(),ev(),(r=v.lastGuideStepSeen)?(A.dispatch("guideState/receiveLastGuideStepSeen",r),r.visitorId=o,A.dispatch("guideState/updateLastGuideStepSeen",r),A.commit("guideState/setLastGuideRequestAt",b()),Su={},r=v.guides,_u(r=y.chain(r).map(wc).filter(ov).filter(av).sortBy(sv).value()),e=Lu(),A.dispatch("guideState/load",(n=Eh,i=m.get("crossAppGuideStorageSuffix"),w.read(n,!1,i))),A.dispatch("guideState/apply"),v.latestDismissedAutoAt=qm(v.latestDismissedAutoAt,w.read("latestDismissedAutoAt")),A.dispatch("guideState/updateThrottlingState",{name:"latestDismissedAutoAt",value:v.latestDismissedAutoAt}),v.finalAdvancedAutoAt=qm(v.finalAdvancedAutoAt,w.read("finalAdvancedAutoAt")),A.dispatch("guideState/updateThrottlingState",{name:"finalAdvancedAutoAt",value:v.finalAdvancedAutoAt}),v.latestSnoozedAutoAt=qm(v.latestSnoozedAutoAt,w.read("latestSnoozedAutoAt")),A.dispatch("guideState/updateThrottlingState",{name:"latestSnoozedAutoAt",value:v.latestSnoozedAutoAt}),A.dispatch("healthCheck/init",r),A.dispatch("frames/changeGuideList",e),v.eventProperties=Mv(v.features),n=C.resolve(),v.globalJsUrl&&(n=Rg(Sc(v.globalJsUrl))["catch"](function(e){I.error("Error loading global script: ",e)})),e.length?C.all([yv(),n,Av(r),kg.initializeWatermark(r),fv(5e3)].concat((t=r,y.map(pv,function(e){return e(t)})))).then(function(){lv.reqId===p&&(A.getters["frames/isLeader"]()&&d(k),S.guidesLoaded.trigger(),Uh(),clearTimeout(dv)),y.isFunction(s)&&s(),f.resolve()},function(e){I.error("Post loadGuide request failed: ",e),S.guidesFailed.trigger(),f.reject()}):(S.guidesLoaded.trigger(),f.resolve())):I.info("lastGuideStepSeen is not set, shutting down guides")))})["catch"](function(e){S.guidesFailed.trigger(),f.reject(e)}),m.get("guideTimeout")||m.get("guides.timeout")),y.isNumber(h)&&(clearTimeout(dv),dv=Dt(function(){var e;e=f,ev(),e.reject(),g=!0},h))):f.reject(),f.promise};var pv=[];function hv(e,t){var n,i=document.getElementById(e);return i&&i.href&&0<=i.href.indexOf(t)?C.resolve():(n=C.defer(),R(i).remove(),v.loadResource(t,function(){n.resolve()}).id=e,n.promise)}var fv=y.memoize(function(t,n,e){if(!uv()||!gv(k))return C.resolve();n=n||b,e=e||"_pendo-hidden_";var i=R(document.createElement("div")).addClass(e).css({position:"absolute",bottom:"0px",right:"0px",width:"0px",height:"0px",visibility:"hidden"}).appendTo(R.getBody()),r=n(),o=C.defer();return function s(e){Dt(function(){a(i[0])?(i.remove(),o.resolve()):n()-r>t?(i.remove(),o.reject("Unable to find global css after delay")):s(100)},e)}(0),o.promise;function a(e){e=f(e);if(e)return"none"===e.display}});function gv(e,t){return t&&t.designer||y.any(e,function(e){return!Bu(e)&&y.any(e.steps,function(e){return!(e.domUrl||e.domJsonpUrl||e.domJson)})})}var mv="_pendo-default-css_",vv="_pendo-css_";function yv(){var e=[];if(!uv())return C.resolve();gv(k,v)&&e.push(hv(mv,Jg()));var t=((v.guideWidget||{}).data||{}).guideCssUrl;return t?e.push(hv(vv,Sc(t))):R("#"+vv).remove(),C.all(e)}var bv,Iv,wv=function(e){bv&&bv.flush(e)},Cv=function(){return Hg};function Sv(e){var t=nd(hd,sd("visitor_id"),sd("props.guide_id"),sd("props.source"),pd,fd(),vd(e),yd,bd),n=nd(rd,od(e.cache),y.noop);return new Pd(y.extend({processSilos:t,packageSilos:n},e))}var Av=function(e){return N.initializeResourceCenter(e)},L={postMessage:y.noop,close:y.noop},Ev=L;function Tv(){return bv=bv||Sv({cache:Hg,apiKey:function(){return v.apiKey},beacon:"guide",allowPost:!0,preferFetch:tt.safari}),Iv=Iv||Sv({cache:[],apiKey:function(){return v.apiKey},beacon:"poll",allowPost:!0,preferFetch:tt.safari}),function(){bv.clear(),Iv.clear()}}function _v(e){var e=e.blockedURI;e&&-1!==e.indexOf("/data/guide.json")&&m.get("cacheGuides")&&((e=m.getLocalConfig()).cacheGuides=!1,m.setLocalConfig(e),io(window,"securitypolicyviolation",_v),$v())}var xv=function(){var e,t,n,i,r,o,a,s,d,u=[],c=(u.push(Tv()),lf.run(),u.push(lf.stop),S.appHidden.on(function(){wv({hidden:!0})}),S.appUnloaded.on(function(){wv({unload:!0}),A.dispatch("frames/leave")}),S.metadata.on(function(e){e.data[0].storeChanged&&!yp()&&Wv()}),S.identify.on(function(){Wv()}),S.urlChanged.on(function(){Wv(Fo.get())}),S.guideUpdateComplete.on(function(){var e,t,n;e=y.filter(k,function(e){return y.isFunction(e.outsideTimebox)&&e.outsideTimebox()}),Ru.addGuide(e),Rc.processPrefetch(),e=k,t=Cu,m.get("disablePrefetch")||(t=y.keys(t)).length&&(n=y.indexBy(e,"id"),y.each(t,function(e){var e=n[e];e&&(e=y.first(e.steps))&&y.isFunction(e.fetchContent)&&e.fetchContent(!0)}))}),S.guidesLoaded.on(function(){N.fetchAnnouncementGuidesContent(k,A)}),S.guideListChanged.on(function(e){var n,e=e.data[0].guideIds;(e=e)&&e.length&&(n=y.indexBy(e),y.each(Cu,function(e,t){n[t]||(e.hide(),delete Cu[t])}))}),u.push((e=document,t=function(){Fo.get()===Bv.lastUrl&&$v()},n=function(){ev()},c=window.Turbolinks,a=window.Turbo,c&&(i=c.EVENTS&&c.EVENTS.LOAD),(i=a&&a.visit?"turbo:load":i)?(r=no(e,i,t),o=no(e,"turbo:before-cache",n),function(){r(),o()}):function(){})),m.get("guides.tooltip.arrowSize"));return y.isNumber(c)&&(v.TOOLTIP_ARROW_SIZE=c),Ev=zg(A),L=Ng(Ev,A),u.push(function(){return L.close()}),u.push(Dn.tabIdChanged(function(){var e=Dn.getTabId();A.commit("frames/setTabId",e),A.dispatch("frames/join")})),A.dispatch("frames/init"),A.dispatch("frames/join"),u.push((s=[],A.dispatch("guideState/init"),s.push(no(window,"focus",_h)),s.push(no(window,"storage",function(e){A.dispatch("guideState/storageChanged",e)})),function(){return y.each(s,function(e){e()})})),u.push(function(){Pv.cancel(),bf.cancel()}),u.push(no(window,"resize",Pv)),u.push(no(window,"scroll",bf,!0)),u.push(no(window,"gestureend",Gv,!0)),u.push(no(window,"securitypolicyviolation",_v)),u.push(function(){for(var e=["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],t=[],n=0;n<e.length;n++)t.push(no(document,e[n],Dv));return function(){y.each(t,function(e){e()})}}()),m.get("preferMutationObserver")&&tt.MutationObserver&&(d=y.debounce(function(e){A.dispatch("guideUpdate/documentChanged")},50),u.push(function(){d.cancel()}),u.push(l(window,"animationend",d)),u.push(l(window,"transitionend",d)),u.push(l(window,"mouseover",d)),A.commit("guideUpdate/setUseObserver"),m.get("observeShadowRoots")&&A.commit("guideUpdate/setObserveShadowRoots"),u.push(function(){return A.dispatch("guideUpdate/stopObserver")})),w.registry.addLocal(Bm.ADVANCED),w.registry.addLocal(Bm.DISMISSED),w.registry.addLocal(Bm.SNOOZED),w.registry.addLocal(Zg),Fc.initialize(),function(){Bv.reset(),ev(),Wv.reset(),lv.reqId=null,y.each(u,function(e){e()}),R("#"+mv).remove(),R("#"+vv).remove(),Fc.teardown()}},Rv=function(){return m.get("guides.disabled",!1)||m.get("disableGuides",!1)||!ta},kv=function(){return m.get("guides.delay",!1)||m.get("delayGuides",!1)},Ov=function(e){var t=m.getLocalConfig();t.disableGuides=e,m.setLocalConfig(t)},Nv=function(e){var t=m.getLocalConfig();t.delayGuides=e,m.setLocalConfig(t)},Mv=Ci(function(e){if(e&&e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n].featureRule,r=y.map(e[n].eventProperties,function(e){return e.selector?e:JSON&&JSON.parse&&e.rule?JSON.parse(e.rule):void 0});t.push({featureRules:i,eventPropertyRules:r,featureId:e[n].featureId})}return t}}),Lv=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement},Fv=function(){I.debug("adjustActiveGuideOnResize firing");var e=jv();e&&e.step&&!v.ignoreResize&&e.step.redraw()},Pv=y.debounce(function(){var e;-1<y.get(document,"activeElement.id","").indexOf("pendo-video-")?(!(e=Lv())||e.id.indexOf("pendo-video-")<0)&&Dt(function(){Fv()},150):Fv(),bf()},50),Gv=function(e){1!==e.scale&&Pv()},Dv=function(e){var t=y.get(document,"activeElement.id",""),e=y.get(e,"target.id","");y.filter([t,e],function(e){return-1<e.indexOf("pendo-video-")}).length&&(Lv()?v.ignoreResize=!0:Dt(function(){v.ignoreResize=!1},1e3))};function Bv(e){var t,n,i,r,o=E(),a=vi();e=e||Fo.get(),n=o,i=a,r=Vl,!(t=e)||!v.apiKey||Rv()&&"true"!==Yg.getItem("pendo-designer-mode")||t===Bv.lastUrl&&n===Bv.lastVisitorId&&i===Bv.lastAccountId&&r===Bv.lastMetadataHash||(Bv.lastUrl=e,Bv.lastVisitorId=o,Bv.lastAccountId=a,Bv.lastMetadataHash=Vl,lv(v.apiKey,o,e)["catch"](y.noop))}Bv.reset=function(){y.each(["lastUrl","lastVisitorId","lastAccountId","lastMetadataHash"],function(e){Bv[e]=null})};var Wv=function(e){ta&&(Wv.reset(),Wv.pending=Dt(function(){delete Wv.pending,Bv(e)},0))};function $v(){Bv.lastUrl=null,Wv()}function Uv(e){e=Xg.indexOf(e);-1!==e&&Xg.splice(e,1)}function jv(){var e,n,t=y.find(k,function(e){return e.isShown()});return!t||y.get(t,"attributes.resourceCenter.isModule")&&!(t=N.getResourceCenter())?null:(e=y.find(t.steps,function(e,t){return n=t,e.isShown()}),{guide:t,steps:y.filter(t.steps,function(e,t){return e.isShown()}),step:e,stepIndex:n})}function zv(e){var t,n=y.get(e,"value","");-1!==y.get(e,"parentElement.className","").indexOf("_pendo-nps-poll-"+n+"-wrapper")&&(e=R("._pendo-nps-open-text-poll-question"),t=R("._pendo-nps-open-text-poll-input")[0],y.forEach(e,function(e){"none"!==y.get(e,"style.display","none")&&t&&t.setAttribute("aria-labelledby",e.id)}))}Wv.reset=function(){Wv.pending&&clearTimeout(Wv.pending)};var Zv,Vv,Yv,Hv,Kv,Xv=function(){var n=this,o=(this.eventable=jn.call({}),this.eventable.on("pendoEvent",function(e){try{n.eventHandler(e)}catch(t){e=e&&e.action||"NO ACTION DEFINED";I.critical("Error in Action "+e,{error:t})}}),this.eventHandler=function(e){if(!e.ignore&&!v.designer){var t=e.step.guideElement;switch(e.action){case o.advanceGuide:Im(e,e.step);break;case o.previousStep:wm(e,e.step);break;case o.goToStep:bm(e);break;case o.submitPoll:this.submitPoll(e);break;case o.guideSnoozed:var n=e&&e.params&&e.params[0]&&e.params[0].value;ym(e,e.step,n);break;case o.dismissGuide:N.attemptToPreserveIntegrationIframes(e),!function(e){if(!e||!e.step)return vm();var t=e.step.getGuide();if(t&&t.attributes&&t.attributes.resourceCenter)return N.dismissResourceCenter(t);vm(e,e.step)}(e);break;case o.showElements:this.setElementDisplay(e,"block"),e.srcElement&&zv(e.srcElement),Wl((i=$c(e.step.domJson)).props.id,t),$l(i.props.id,t),g.flexAllThings(i.props.id,e.step),Bl(i.props.id,t);break;case o.hideElements:this.setElementDisplay(e,"none"),Wl((i=$c(e.step.domJson)).props.id,t),$l(i.props.id,t),g.flexAllThings(i.props.id,e.step),Bl(i.props.id,t);break;case o.slideElement:this.setElementAnimation(e);break;case o.showGuide:n=y.find(e.params,function(e){return"reason"===e.name});Jm(e.params[0].value,n&&n.value);break;case o.launchGuide:this.launchGuide(e);break;case o.renderResourceCenterModule:var i=a(e);N.replaceResourceCenterContent(e.params[0].value,i);break;case o.returnToResourceCenterHome:n=N.findResourceCenterHomeView(Eu());if(!n)return;N.attemptToPreserveIntegrationIframes(e),N.replaceResourceCenterContent(n.id,e.params);break;case o.openLink:this.openLink(e);break;case o.searchGuides:this.searchGuides(e);break;case o.submitPollAndGoToStep:this.submitPoll(e),bm(e);break;case o.confirmation:this.confirmGuide(e)}var r=Xv.prototype.registeredActions,r=r&&r[e.action];"function"==typeof r&&r(e)}},this.submitPoll=function(e){var t=e&&e.action,i=e.step,n=[];e.srcElement&&e.srcElement.getAttribute("data-pendo-poll-type")&&"yesNo"===e.srcElement.getAttribute("data-pendo-poll-type")&&(r=e.srcElement.getAttribute("data-pendo-poll-id"),e=e.srcElement.value,n.push({pollId:r,value:parseInt(e,10)}));var r=R("[data-pendo-poll-id]",i.guideElement[0]);n=n.concat(y.map(r,function(e){var t,n=R("textarea,input:text,select,input:radio:checked",e);if(n&&n.length&&n[0].value)return t=e.getAttribute("data-pendo-poll-id"),e=y.find(i.guide.polls,function(e){return e.id===t}),n=n[0].value,e&&e.numericResponses&&(n=parseInt(n,10)),{pollId:t,value:n}})),i.response&&n?i.response(y.compact(n)):I.info("[Agent] Error! Trying to submit a poll response but step does not have response function!");t!==o.submitPollAndGoToStep&&i.advance()},this.setElementDisplay=function(e,t){var n=e.step,e=R(y.find(e.params,function(e){return"selectors"===e.name}).value,n.guideElement[0]);y.each(e,function(e){e.style.display=t})},this.setElementAnimation=function(e){var t=R(y.find(e.params,function(e){return"selector"===e.name}).value,e.step.guideElement[0])[0],n=y.find(e.params,function(e){return"transition"===e.name}).value,e=y.find(e.params,function(e){return"left"===e.name}).value;t.style.transition=n,t.style.left=e},this.openLink=function(e){var t=y.find(e.params,function(e){return"url"===e.name}).value,e=y.find(e.params,function(e){return"target"===e.name}).value;"_self"===e&&As()&&(e="_top");window.open(t,e)},this.goToStep=bm,this.searchGuides=function(e){var t="",n=e.srcElement.value,e=R("#pendo-resource-center-container"),i=e.find('[id^="pendo-list-item-"]'),r=e.find('[id^="pendo-results-count-container"]'),e=e.find('[id^="pendo-no-matches-container"]'),o=[],a=!0,s=0;if(i)for(var d in i){var u;d&&i[d]&&(u=!1,R(i[d]).text()&&(-1!==R(i[d]).text().toLowerCase().indexOf(n.toLowerCase())?(R(i[d]).css({display:"list-item"}),u=!(a=!1)):R(i[d]).css({display:"none"})),y.isFunction(i[d].getAttribute)&&(t=i[d].getAttribute("data-_pendo-text-list-item-1").split(","),y.forEach(t,function(e){y.contains(o,e)||o.push(e)})),this.searchAllTerms(o,t,n)&&i[d]&&(R(i[d]).css({display:"list-item"}),u=!(a=!1)),t="",u)&&s++}a?R(e[0]).css({display:"block"}):R(e[0]).css({display:"none"});{var c;r&&r.length&&(r[0].innerHTML="",n)&&(c="",0===s?(c=e[0].innerText,this.debounceAnnounceResults(r[0],c)):(e=1===s?"data-pendo-aria-label-alert-singular":"data-pendo-aria-label-alert-plural",(c=r[0].getAttribute(e))&&(c=c.replace("{RESULT_COUNT}",s),this.debounceAnnounceResults(r[0],c))))}},this.searchAllTerms=function(t,e,n){return!!e&&e.some(function(e){return y.contains(t,e)&&e===n})},this.confirmGuide=function(e){var e=e.step,t=function(e){if(e.confirmationElementPathRule)return Jr(e.confirmationElementPathRule)[0]}(e);e.advance(),t?t.click():I.critical("pendo.io confirmationElement exception",{stepId:e.id,confirmationElementPathRule:e.confirmationElementPathRule,error:new Error("confirmation action called but confirmationElement was not found")})},this.getTransitionParams=a,this.launchGuide=function(e){y.get(e,"params.2.value.doNotDismiss")||vm(e,e.step);var t=e&&e.params&&e.params[0]&&e.params[0].value,n=e&&e.params&&e.params[1]&&e.params[1].value;{var i,r;t&&n?(n=Ou(e.params[0].value),i=e.params[1].value,r=(r=y.find(n.steps,function(e){return e.id===i}))||n.steps[0],Mm(n),r.show("api")):t&&Jm(e.params[0].value)}},this.debounceAnnounceResults=y.debounce(function(e,t){e.innerHTML=t},300),{advanceGuide:"advanceGuide",previousStep:"previousStep",goToStep:"goToStep",submitPoll:"submitPoll",guideSnoozed:"guideSnoozed",dismissGuide:"dismissGuide",showElements:"showElements",hideElements:"hideElements",slideElement:"slideElement",showGuide:"showGuide",launchGuide:"launchGuide",renderResourceCenterModule:"renderResourceCenterModule",returnToResourceCenterHome:"returnToResourceCenterHome",openLink:"openLink",searchGuides:"searchGuides",submitPollAndGoToStep:"submitPollAndGoToStep",confirmation:"confirmation"});function a(e){return e.params.find(function(e){return"transitionDirection"===e.name})?[{name:"transitionCss",type:"string",value:"left 200ms"},{name:"transitionDirection",type:"string",value:"right"}]:[]}return this},Jv=(Xv.registerAction=function(e,t){e&&"string"==typeof e&&t&&"function"==typeof t&&((Xv.prototype.registeredActions=Xv.prototype.registeredActions?Xv.prototype.registeredActions:{})[e]=t)},Xv.deregisterAction=function(e){e&&"string"==typeof e&&delete(Xv.prototype.registeredActions=Xv.prototype.registeredActions?Xv.prototype.registeredActions:{})[e]},Zv="guideActivity",Vv=function(){return(new Date).getTime()-em},Yv=y.isObject,Hv=y.findWhere,{type:Zv,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,Yv(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if(y.isString(e.id)&&0===e.id.indexOf("pendo-base"))return!0;if(Yv(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return qv(e)}(t)||function(e){return ey(e)}(t)||function(e){return Qv(e)}(t))&&(e=function(e){var t=function(e){for(var t=0,n=Kv;t<n.length;t++){var i=(0,n[t])(e);if(i)return i}return jv()}(e);if(t&&(!function(e){e=e.guide.activeModule;return e&&e.attributes&&e.attributes.resourceCenter&&"AnnouncementsModule"===e.attributes.resourceCenter.moduleId}(t)||(t=function(e){var t=R("#"+e).closest("[data-pendo-announcement-guide-id]").attr("data-pendo-announcement-guide-id"),e=y.find(Eu(),function(e){return e.id===t});return e?{guide:e,step:e.steps[0]}:undefined}(e.id)))&&t.step&&t.step.domJson){var n,i,r,e=ey(e)||qv(e)||Qv(e)||{type:e.tag,id:e.id},o=function a(e,t){if(t.props&&t.props.id&&t.props.id===e)return t;if(t.children!==undefined)for(var n=0;n<t.children.length;n++){var i=a(e,t.children[n]);if(i!==undefined)return i}return undefined}(e.id,t.step.domJson);if(o)return n=e.id,o=function(e,t){if(e!==undefined){if("a"===e.type)return[{action:"openLink",url:_o(e.props.href),target:e.props.target}];if(e.actions!==undefined)return y.map(e.actions,function(e){switch(e.action){case"automation":var t=Hv(e.parameters,{name:"automationIds"});return{action:e.action,automationIds:t};case"openLink":var t=Hv(e.parameters,{name:"url"}),n=Hv(e.parameters,{name:"target"});return{action:e.action,url:_o(t.value),target:n.value};case"submitPollAndGoToStep":case"goToStep":t=Hv(e.parameters,{name:"goToStepId"});return{action:e.action,guideStepId:t.value};case"guideSnoozed":n=Hv(e.parameters,{name:"snooze_duration"}),t=Hv(e.parameters,{name:"time_unit"});return{action:e.action,duration:n.value,timeUnit:t.value};case"showGuide":case"launchGuide":n=e.parameters[0],t=e.parameters[1]||{};return{action:e.action,guideId:n.value,stepId:t.value};case"advanceGuide":case"previousStep":case"submitPoll":case"dismissGuide":case"confirmation":return{action:e.action};default:return{}}});if("pendo_task_list_item"===t.templateName&&y.isArray(e.templateChildren)&&e.templateChildren[t.templateChildIndex])return[{action:"showGuide",guideId:e.templateChildren[t.templateChildIndex].id}]}return[]}(o,e),r=o[0],i=(r=void 0===r?{}:r).action,r=r.guideId,"showGuide"===i&&r&&(n+="-"+r),Um({type:Zv,visitorId:E(),ui_element_id:n,ui_element_type:e.type,ui_element_actions:o,guideId:t.guide.id,stepId:t.step.id,duration:Vv(),language:t.guide.language})}}(n))&&Zm(e)},registerGuideResolver:function(e){Kv.push(e)},removeGuideResolver:function(e){e=Kv.indexOf(e);-1!==e&&Kv.splice(e,1)}});function qv(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-button/.test(e.id))?{type:e.tag,id:e.id}:ty(e)||!Yv(e.parentElem)?null:qv(e.parentElem)}function Qv(e){var t,n;if("LI"===e.tag&&/pendo-task-list-item/.test(e.cls))return t=(n=e.id.split("-")).pop(),n=n.join("-"),{type:e.tag,id:n,templateName:"pendo_task_list_item",templateChildIndex:t};return ty(e)||!Yv(e.parentElem)?null:Qv(e.parentElem)}function ey(e){return"A"===e.tag?{type:e.tag,id:e.id}:ty(e)||!Yv(e.parentElem)?null:ey(e.parentElem)}function ty(e){return y.isString(e.id)&&0===e.id.indexOf("pendo-guide-container")}var ny=[],iy=!(Kv=[]),ry={agent:{getJwtInfoCopy:Hs.get,treatAsAdoptPartner:Wo},agentStorage:w,analytics:{ptm:function(){return Ld},collectEvent:ed},attachEvent:l,ConfigReader:m,Events:S,EventTracer:Dn,EventRouter:Xv,Extensions:{API:{addTopic:function(e,t){var n=wp[e]||{};y.extend(n,t),wp[e]=n}}},frames:{getChannel:function(){return Ev}},getAssetUrl:Bo,getEventable:function(){return jn.call({})},GlobalRuntime:{addGlobalScript:Fc.addGlobalScript,removeGlobalScript:Fc.removeGlobalScript},GuideActivity:Jv,GuideLoop:{addUpdatePhase:tf,removeUpdatePhase:nf},guides:{addProcessor:function(e){return Xg.push(e),y.partial(Uv,e)},removeProcessor:Uv,registerDisplayableGuides:function(e,t){y.isArray(t)&&(Su[e]=t)},removeDisplayableGuides:function(e){delete Su[e]}},hosts:{SERVER:ot},NodeSerializer:ru,q:C,sessionStorage:w.getSession(),sizeElements:Gl,store:A,Tombstone:Ru,transmit:{buildBaseDataUrl:na,fetchKeepalive:sa,sendBeacon:da},log:I,util:{trim:mt,base64EncodeString:Ct,parseUrl:ns},constants:{URL_MAX_LENGTH:2e3}};function oy(t){y.find(ny,function(e){return e.name===t.name})?I.warn("Plugin with name ".concat(t.name," already exists. Skipping registration.")):(ny.push(t),iy&&t.initialize(v,ry))}function ay(){y.each(ny,function(e){y.isFunction(e.teardown)&&e.teardown(v,ry)}),iy=!1}Tp.registerExtensionsByUse("plugin",function(e){return y.extend(e.uri,y.pick(e,"name")),oy(e.uri),e},function(e){return!!e.uri.initialize&&!!e.uri.teardown});var sy=!1;function dy(){sy||(S.identify.on(function(e){var t,n,e=e.data[0];n=(t=e).old_visitor_id,t=t.visitor_id,(ri(n)?ii(t)?ri(t)?(I.info("Visitor is anonymous: "+t),1):di(t)?(I.info("Visitor id is the default: "+t),1):(I.info("Re-mapping visitor identity from "+n+" to "+t),0):(I.info("Not valid visitor id: "+t),1):(I.info("Visitor is already identified: "+n),1))&&(n=(t=e).old_account_id,t=t.account_id,ii(t)?n===t||(I.info("Re-mapping account identity from "+n+" to "+t),0):(I.info("Not valid account id: "+t),1))||(ed("identify",e),$s())}),S.metadata.on(function(e){var t;yp()||(t=(e=e.data[0]).options,e.hashChanged&&(ed("meta",t),$s()))}),sy=!0)}uy="guideActivity",cy=function(){return(new Date).getTime()-em},ly=y.isObject;var uy,cy,ly,py={type:uy,handler:function(e){var t,n=e.data[0],e=e.data[1];e=e,ly(t=n)&&function(e){return e&&"click"===e.type}(e)&&function i(e){if("pendo-resource-center-container"==e.id)return!0;if(ly(e.parentElem))return i(e.parentElem);return!1}(t)&&(function(e){return gy(e)}(t)||function(e){return hy(e)}(t)||function(e){return fy(e)}(t))&&(e=function(e){var t=N.getResourceCenter();if(t){var n=t.activeModule,i=gy(e);if(i?(i={elementId:i.id},/^pendo-close-guide/.test(i.id)?i.actions=[{action:"dismissGuide"}]:/^pendo-left-caret/.test(i.id)&&(i.actions=[{action:"showGuide",guideId:t.id}])):i=hy(e)||fy(e),i)return i.guideId||(i.guideId=(n||t).id),i.stepId||(i.stepId=(n||t).steps[0].id),i.actions||(i.actions=[{action:"showGuide",guideId:i.elementId}]),i.language||(i.language=(n||t).language),Um({type:uy,visitorId:E(),ui_element_id:i.elementId,ui_element_type:i.type,ui_element_actions:i.actions,guideId:i.guideId,stepId:i.stepId,duration:cy(),language:i.language})}}(n))&&Zm(e)}};function hy(e){return-1!==e.cls.split(" ").indexOf("_pendo-resource-center-module-list-item")?{type:"BUTTON",elementId:R("#"+e.id).closest("[data-pendo-module-guide-id]").attr("data-pendo-module-guide-id")}:"pendo-resource-center-container"!==e.id&&ly(e.parentElem)?hy(e.parentElem):null}function fy(e){var t=e.cls.split(" ");if(-1===t.indexOf("_pendo-resource-center-guidelist-module-listed-guide")&&-1===t.indexOf("_pendo-resource-center-onboarding-module-listed-guide"))return"pendo-resource-center-container"!==e.id&&ly(e.parentElem)?fy(e.parentElem):null;t=N.getResourceCenter();if(t){e=e.id.split("-").pop(),t=t.activeModule;if(t&&t.attributes&&t.attributes.resourceCenter)return{type:"BUTTON",elementId:t.attributes.resourceCenter.children[e]}}return null}function gy(e){return"BUTTON"===e.tag&&(/^pendo-close-guide/.test(e.id)||/^pendo-left-caret/.test(e.id))?{type:e.tag,id:e.id}:"pendo-guide-container"!==e.id&&ly(e.parentElem)?gy(e.parentElem):null}var my=function(e){return(e=e||v).doesExist(e.apiKey)};var vy=0,yy="initializeImmediately",by=[],Iy=Ci(function(e){if("complete"===document.readyState||y.get(e,yy)||m.get(yy))if(I.info("pendo.initialize called with "+JSON.stringify(e)),v.apiKey)1==vy++&&I.info(["pendo.initialize only needs to be called once",_t()?" per namespace":"",". Use pendo.updateOptions to update metadata after the agent has initialized."].join(""));else{if(e=e||{},y.isEmpty(Hs.get())&&(r=Hs.getJwtOptions(e,"initialize"))&&(Hs.set(y.pick(e,"jwt","signingKeyName")),y.extend(e,r,{forceAnonymous:!0})),y.isString(e))return ao.get(e).then(function(e){return ce(h=e.data),Iy()});A.dispatch("location/init",e.location||{}),m.setLocalConfig(e),Go(),v.HOST=Oo;var t,n,i,r=m.get("cookieDomain");r&&(r=r,t=location.host,r?y.isString(r)&&(t=t.replace(/:\d+$/,""),r=r.replace(/^\./,""),n=new RegExp("\\."+Ht(r)+"$"),i=new RegExp("^"+Ht(r)+"$"),n.test(t)||i.test(t))&&(Qt="."+r):Qt=r),Qf.discoverKeys(e),Qf.getApiKey()?(A.commit("metadata/setMetadata",{selfHosted:vp()}),e.logStackTraces&&(v.logStackTraces=e.logStackTraces),m.get("preferBroadcastChannel")&&Ug.secure(!0),by.push((Nd=Ps.events=xs,Md=Ps.trackEvents=Rs,Ld=Dd({cache:Nd,silos:Ps.silos,apiKey:ia,beacon:"ptm",allowPost:!0}),Fd=Dd({cache:Md,silos:Ps.trackEventSilos,apiKey:ia,beacon:"ptm",allowPost:!0,params:{type:"track"}}),Ds(Ld),Ds(Fd),function(){zs(),Bs(Ld),Bs(Fd)})),ta&&(w.registry.addLocal(Qn),w.registry.addLocal(ei),w.registry.addLocal(ti),w.registry.addLocal(lp),w.registry.addLocal(of),v.disableGuideCenterContentSearch=e.disableGuideCenterContentSearch,n=(n=e).events,y.each(void 0===n?[]:n,function(e,t){ec[t]&&ec[t](e)}),by.push(xv()),dy(),by.push(fu()),by.push((y.each(ny,function(e){e.initialize(v,ry)}),iy=!0,ay)),by.push((t=e,w.registry.addLocal(wf),w.registry.addLocal(Cf),y.find([y.partial(tg.launchOnToken,window.location),y.partial(Sf,window),y.partial(tg.localStorageNavigation,t)],function(e){return e()}),t.enableDesignerKeyboardShortcut||!m.get("disableDesignerKeyboardShortcut")?Ig.listen():function(){})),S.appUsage.on(Jv.handler),S.appUsage.on(py.handler),by.push(Us(ks))),oi()||ai(),v.updateOptions(e),e.visitorId&&e.visitorId!=si&&v.identify(e.visitorId),by.push(Fo.watch(function(){v.pageLoad()})),ta&&S.ready.trigger(),Bd(Fo.get()),vy++,window.parent&&window.parent.postMessage&&"function"==typeof window.parent.postMessage&&((i=Ug.targetOrigin())?window.parent.postMessage({type:"announce-frame-initialized",destination:"pendo-designer-agent",source:"pendo-designer-agent",localStorageRouter:!0},i):I.warn("Unable to announce frame to designer plugin, targetOrigin is not set. Check if broadcastChannel is enabled and cross origin frames are allowed.")),Sy()):I.debug("API key is not set, Pendo will not initialize.")}else oe(v,"initialize",arguments)});function wy(e){return!y.isArray(e)||y.isEmpty(e)}function Cy(e){if(!wy(e))return y.find(e,function(e){return"initialize"===e[0]})}function Sy(i){var e;return!wy((i=i||v)._q)&&(e=!!Cy(i._q),my(i)||e)?(e=i._q.splice(0,i._q.length),y.reduce(e,function(e,t){var n;return y.isArray(t)&&(n=i[t.shift()],y.isFunction(n))?e.then(function(){return n.apply(i,t)}):e},C.resolve()).then(Sy)):C.resolve()}function Ay(){my()?I.info("already running"):(window.pendo_options&&Iy(window.pendo_options),Sy())}function Ey(){S.appHidden.trigger(),S.appUnloaded.trigger(),y.each(by,function(e){e()}),Bd.reset(),by.length=0,Ug.close(),jn.clear(S),jn.clear(ec),delete v.apiKey,vy=0}var Ty,_y,xy={getActiveGuide:jv,smartNextStep:function(e){var t,n=jv();n&&(t=n.guide.steps[n.stepIndex+1],Dt(function(){var e=Jr(t.elementPathRule);0!==e.length&&y.some(e,za)?Im(n.step):Im(t)},e=e||0))},smartFirstStep:function(){R("._pendo-guide_").css("display:none;");var t=Ym(),e=jv().guide.steps,n=y.filter(y.rest(e),function(e){return!!e.pageId}),n=y.indexOf(e,y.find(n,function(e){return Km(e.regexUrlRule,t)}));I.info("startingPoint is "+n),-1==n?R("._pendo-guide_").css("display:block;"):(n=e[Math.max(0,n-1)],I.info("found starting step to be "+n.id),Im(n))},advanceOn:function(e,t){var n=jv(),i=R(t=t||n.step.elementPathRule)[0],r=function(){Im(),yu(i,e,r,!0)};l(i,e,r,!0)},renderStepPosition:function(e,t,n){if(t)n||(i=[].concat(t.steps).reverse(),n=y.findWhere(i,{seenState:"active"}));else{var i=jv();if(!i)return;t=i.guide,n=i.step}return(e=y.template(e=e||"Step <%= currPos %> of <%= total %>"))({currPos:t.getPositionOfStep(n),total:t.getTotalSteps()})}},F={renderGuideFromJSON:function(e,n,t,i){var r=n.getGuide(),o=$c(e),a=y.get(r,"attributes.resourceCenter");a&&(N.revertRtlChanges(r,e.props),e=N.updatePseudoStyleSelectors(e));var s=a&&N.isFullyCustom(r),d="AnnouncementsModule"===y.get(r,"attributes.resourceCenter.moduleId"),o=(n.hasEscapeListener=!1,n.containerId=o&&o.props&&o.props.id,n.element=zu(n),F.buildNodeFromJSON(e,n,t)),t=(n.guideElement=o).find("#"+n.containerId),u="data-vertical-alignment",c="Relative to Element"===t.attr(u);c&&!a&&R(n.guideElement).css({overflow:"hidden",height:"0",width:"0"});t.css({visibility:"hidden"}),o.css({visibility:"hidden"});u=kg.buildWatermark({appId:r.appId,targetAccount:r.targetAccount,isTraining:r.isTraining,isBottomAligned:"Bottom Aligned"===t.attr(u)},F.buildNodeFromJSON);u&&t.append(u);var u=n&&n.attributes&&n.attributes.imgCount,l=Uu(),p=y.get(r,"attributes.embedConfig",null);{var h,f;p?(f="pendo-guide-container",g=o[0],h=g.querySelector("#".concat(f)),h&&(h.id="".concat(f,"-").concat(n.id),g.id="".concat("pendo-base","-").concat(n.id)),h=p.selector,f=p.method,l=R(h)[0],"replace"===f&&l?(l.innerHTML="",o.appendTo(l)):"prepend"===f?o.prependTo(l):o.appendTo(l)):o.appendTo(l)}(function(e,t,n){var i,r,t=R.getRootNode(t),e=R.getRootNode(e);e!==t&&(e!==document?e.hasOwnProperty("wrappedJSObject")?(i=e.wrappedJSObject.adoptedStyleSheets,(r=t.wrappedJSObject.adoptedStyleSheets).push.apply(r,i)):(i=e.adoptedStyleSheets,(r=t.adoptedStyleSheets).push.apply(r,i)):(r=R(".pendo-style-".concat(n),e)).length&&(r.remove(),r.appendTo(t)))})(Uu(),o[0],n.id),Gl(o),s||d||(F.recalculateGuideWidth(n.containerId,n.guideElement),F.adjustGuideContentWidth(n.containerId,n.guideElement));u||a||F.flexAllThings(n.containerId,n);s||F.recalculateGuideHeight(n.containerId,n.guideElement);c?n.attributes.calculatedType="tooltip":bl.attachBBAdvanceActions(n);c&&!u&&bl.positionStepForTooltip(n,e,t[0]);{var g;a&&(N.showHomeViewOrEmptyState(r),g=[],d?g=[r.attributes.resourceCenter]:F.flexAllThings(n.containerId,n),g.length)&&y.forEach(g,function(e){e=y.get(e,"children",[]);y.forEach(e,function(e){var t;e&&(t=e.steps[0],y.isUndefined(t.attributes.imgCount))&&(t=y.get(t,"id",n.id),e=y.get(e,"id",r.id),t=R("#pendo-g-"+t).length?t:e,F.flexAllThings("pendo-g-"+t,n))})})}{var m;u?(m=C.defer(),o.rendered=m.promise,t.on("imagesLoaded",function(){m.resolve()})):(t.css({visibility:"visible"}),o.rendered=C.resolve())}o.css({visibility:"visible"}),n.elements.push(n.guideElement[0]),v.designer||(y.get(n,"attributes.isAutoFocus")&&(F.autofocusStep(n,t),F.trapFocusStep(n,t),n.hiddenElements=F.addAriaHiddenOutsideGuide(o[0])),a&&(F.attachRCFocusHandlers(),r.skipResourceCenterHomeView?(p=r.activeModule.steps[0],F.autofocusStep(p,p.guideElement)):F.autofocusStep(n,t)));return R(".pendo-video-wrapper",o).each(function(t){R("iframe",t).each(function(e){t.setAttribute("data-pendo-video-loading",""),F.addVideoLoadListener(t,e)})}),o},autofocusStep:function(e,o){var n="autofocus for guide id: "+e.getGuide().id+" step id: "+e.id+" ",i={maxRetries:100,delay:50,exponentialBackoff:!1};Ot(function(){var e,t,n,i,r=R(o).find("#pendo-guide-container");return(r=r[0]||r)&&za(r)&&(n=ea(n=r),i=wa(),y.extend(i,{top:0,left:0,bottom:i.height,right:i.width}),Na(i,n))&&(i=r,n=y.contains(["A","INPUT","LABEL","SELECT","TEXTAREA","BUTTON","FIELDSET","LEGEND","DATALIST","OUTPUT","OPTION","OPTGROUP"],i.nodeName),e=!!i.tabIndex,t=!i.hidden,i=!i.disabled,(n||e)&&t&&i)?r:null},i,function(t){Ot(function(){return!!(e=t)&&(e.focus(),e===R.getRootNode(e).activeElement);var e},i,function(){},function(){I.warn(n+"#pendo-guide-container is available on page but could not capture focus")})},function(){I.warn(n+"#pendo-guide-container did not render or become visible in time to focus")})},trapFocusStep:function(e,t){!function(e){var o,a,s,t,d,u,n,c=e[0];c&&(t=["a[href]:not([disabled])","button:not([disabled])","textarea:not([disabled])",'input[type="text"]:not([disabled])','input[type="radio"]:not([disabled])','input[type="checkbox"]:not([disabled])',"select:not([disabled])","[tabindex]","iframe"].join(", "),(o=y.toArray(e.find(t))).length)&&(a=o[0],s=o[o.length-1],t=Ny(e),d=t[0],u=t[1],n=function(e){var t,n,i=Ry(e),r=e.shiftKey;i&&(t=(i=R.getRootNode(c).activeElement)===c,n=document.activeElement===document.body,r?(i===d||t||n)&&(Oy(o,s).focus(),e.preventDefault()):(t||i===u||n)&&(Oy(o,a).focus(),e.preventDefault()))},l(document,"keyup",n),l(document,"keydown",n),S.one("unmounted",function(){yu(document,"keyup",n),yu(document,"keydown",n)}))}(t.find("#pendo-guide-container"))},attachRCFocusHandlers:function(){var e,t,s,d,n,i,r,u=N.getResourceCenter(),c=N.getResourceCenterContainer();"dom"===u.launchMethod&&c&&(e=R(u.attributes.activation.selector)[0])&&(t=Ny(R(c)),s=t[0],d=t[1],n=function(e){var t,n,i,r=Ry(e),o=e.shiftKey;function a(t){return Object.values(i).findIndex(function(e){return e===t})}r&&(r=R.getRootNode(c).activeElement,t=R(u.attributes.activation.selector)[0])&&(n=r===s,r=r===d,i=R($a),o?n?(t.focus(),e.preventDefault()):r&&ky(0===(o=a(s))?i.length-1:o-1,i,e):r?ky(a(t)+1,i,e):n&&ky((o=a(d))>=i.length-1?0:o+1,i,e))},i=function(e){var t=Ry(e),n=e.shiftKey;t&&!n&&ky(0,R('[id^="pendo-g-"]').find($a),e)},r=function(e){var t=e.target,n=e.relatedTarget,t=t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING;n!=s&&t&&ky((n=R('[id^="pendo-g-"]').find($a)).length-1,n,e)},l(document,"keyup",n),l(document,"keydown",n),l(e,"keydown",i),l(e,"focus",r),S.one("unmounted",function(){yu(document,"keyup",n),yu(document,"keydown",n),yu(e,"keydown",i),yu(e,"focus",r)}))},addAriaHiddenOutsideGuide:function sA(e,n){void 0===n&&(n=[]);if(!e||e===xa())return n;var t=Ra(e);y.each(t,function(e){var t;-1===n.indexOf(e)&&"true"!==e.getAttribute("aria-hidden")&&"script"!==(t=e.tagName.toLowerCase())&&"style"!==t&&(e.setAttribute("aria-hidden","true"),n.push(e))});e.parentNode&&sA(e.parentNode,n);return n},renderResourceCenterModule:N.renderResourceCenterModule,buildNodeFromJSON:rp,attachImgLoadHandlers:op,recalculateGuideHeightOnImgLoad:ap,buildStyleString:function(e){var n="";return y.each(e,function(e,t){n=n+t+":"+e+";"}),n},buildStyleTagContent:dp,bindActionToNode:sp,recalculateGuideHeight:Bl,recalculateGuideWidth:Wl,adjustGuideContentWidth:$l,findDomBlockInDomJson:Uc,isElementHiddenInGuide:g.isElementHiddenInGuide,positionStepForTooltip:bl.positionStepForTooltip,flexAllThings:g.flexAllThings,flexElement:g.flexElement,findTopLevelContainer:function(t){for(var e=["pendo-base","pendo-resource-center-container"],n=0;n<20;n++){if(y.find(e,function(e){return t.id===e}))return t;if(t===document.body)return document.body;t.parentNode&&(t=t.parentNode)}return document.body},updateBackdrop:ll,buildNodesFromJSON:tp,findGuideContainerJSON:$c,maintainAspectRatios:g.maintainAspectRatios,sizeElement:Dl,sizeElements:Gl,getAllowedAttributes:ip,repositionFlexElementsInFullWidthGuides:function(){},isBuildingBlockGuideRelativeToElement:bl.isBuildingBlockGuideRelativeToElement,updateAriaLabelledbyForActiveFollowupQuestion:zv,addVideoLoadListener:function(e,t){l(t,"load",function(){e.removeAttribute("data-pendo-video-loading")})}};function Ry(e){return"Tab"===e.key||9===e.keyCode}function ky(e,t,n){e=t[e];e&&(e.focus(),n.preventDefault())}function Oy(e,t){var n,i;return"radio"===t.getAttribute("type")&&(n=t.getAttribute("data-pendo-poll-id"),i=y.find(e,function(e){var t=e.getAttribute("data-pendo-poll-id");return n===t&&e.checked})),i||t}function Ny(e){var t={margin:0,padding:0,outline:"none",border:"none","box-shadow":"none",shadow:"none"},t={type:"style",props:{type:"text/css",scoped:"scoped",id:"pendo-focus-bumper-styles"+Date.now()},css:[{selector:".pendo-start-focus-bumper",styles:y.extend({},t,{tabIndex:0})},{selector:".pendo-start-focus-bumper:hover",styles:t},{selector:".pendo-start-focus-bumper:focus",styles:t},{selector:".pendo-end-focus-bumper",styles:y.extend({},t,{tabIndex:0})},{selector:".pendo-end-focus-bumper:hover",styles:t},{selector:".pendo-end-focus-bumper:focus",styles:t}]},t=F.buildNodeFromJSON(t),t=(e.prepend(t),document.createElement("div")),n=(t.setAttribute("id","pendo-start-focus-bumper-"+Date.now()),t.setAttribute("class","pendo-start-focus-bumper"),t.setAttribute("tabIndex",0),e.prepend(t),document.createElement("div"));return n.setAttribute("id","pendo-end-focus-bumper-"+Date.now()),n.setAttribute("class","pendo-end-focus-bumper"),n.setAttribute("tabIndex",0),e.append(n),[t,n]}var My=100,Ly=[],Fy=[],Py="log-enabled",Gy="active-contexts",Dy=function(){return $y()?_y?"logging already enabled":(w.write(Py,"true",null,!0),_y=!0,"logging enabled"):"logging unavailable"},By=function(){return _y?(w.write(Py,"false",null,!0),_y=!1,"logging disabled"):"logging already disabled"};var Wy=function(e,t){return y.compact([].concat(e,t))},$y=function(e){return e=e||"log","undefined"!=typeof console&&y.isFunction(console[e])},Uy=function(e){return e=Wy(e),0<Ty.length?0<y.intersection(Ty,e).length:!!_y||!!sf()},jy=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];I.info(e,{contexts:t})};function zy(e){var t;e.level!==Zt.Debug&&e.level!==Zt.Info||(t=e.attributes?Wy(e.attributes.contexts):[],$y()&&Uy(t)&&Xy(e.message),Vy(Ly,e.message,t))}function Zy(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];$y("error")&&console.error.apply(console,e),Vy(Fy,e.join(" "))}var Vy=function(e,t,n){y.contains(n,"debug")||(e.length==My&&e.shift(),e.push([t,n]))},Yy=function(t){t=Wy(t),y.each(y.map(y.filter(Ly,function(e){return 0===t.length||0<y.intersection(t,e[1]).length}),function(e){return e[0]}),function(e){Xy(e,"[Pendo-History] ")})},Hy=function(){return y.union.apply(y,y.map(Ly,function(e){return e[1]}))},Ky=function(e){Ty=Wy(e),w.write(Gy,Ty.join(","),null,!0)},Xy=function(e,t){var n;$y()&&(t=t||"[Agent] ",e&&e.length?((n=1e3<e.length?e.length-1e3:0)&&(t+="..."),console.log(t+e.substring(n))):console.log(t+e))};function Jy(e,t){var n;e&&y.isString(e)?(y.isObject(n=t)||(n={__err__:t}),t=Fo.get(),ed("track",n,t,e)):I.error("Must provide valid name string for event tracking")}jy.init=function(){var e,t;e=w.read(Gy,!0),Ty=e?e.split(","):[],e=rt,t=w.read(Py,!0),_y=null!==t?"true"==t:!y.contains(["prod","prod-eu","prod-us1","prod-jp","prod-hsbc","prod-au","prod-gov","rc"],e),I.addEventListener("log",zy),w.registry.addLocal(Py),w.registry.addLocal(Gy)},jy.enableLogging=Dy,jy.disableLogging=By,jy.getActiveContexts=function(){return Ty},jy.setActiveContexts=Ky,jy.showLogHistory=Yy,jy.getLoggedContexts=Hy;var qy=function qy(r){var o=[];function a(e,t,n,i){r?o.push({type:n,message:t,value:i}):ge(i)?console[e](t,i):console[e](t)}if("undefined"==typeof console||!console.group)return"Please run this test in the latest version of Chrome, Firefox, Safari, or Internet Explorer";r||console.group("Pendo Install Validation"),v.apiKey||a("error","No Pendo API key configured. Make sure to call pendo.initialize() with a valid Pendo API key.","apiKey");var e=E(),e=(ri(e)&&a("warn",'The current visitor is not identified and will be treated as "anonymous". Is this expected? (You might have used "VISITOR-UNIQUE-ID" as the visitor ID)',"isAnonymousVisitor"),di(e)&&a("error","The current visitor ID matches the example visitor ID from the Pendo installation instructions.","isDefaultVisitor"),vi()),t=(e||a("warn","The current visitor is not associated with an account. Is this expected?","noVisitorInAccount"),"ACCOUNT-UNIQUE-ID"===e&&a("error","The current account ID matches the example account ID from the Pendo installation instructions.","exampleAccountId"),m.get("disableCookies")&&a("warn","Cookies are disabled in Pendo config. Is this expected?","disableCookies"),bp());if(y.each(["visitor","account","parentAccount"],function(n){var i=t&&t[n],e=y.chain(i).keys().value();0<e.length?(r||console.group(n+" metadata (does this look right?):"),0<(e=y.chain(e).map(function(e){return e.toLowerCase()}).countBy().pick(function(e){return 1<e}).keys().value()).length&&y.each(e,function(e){a("warn","Keys will be lowercased and any duplicates overwritten. Please choose unique key names for:",n+"MetadataConflict",e)}),y.each(y.keys(i),function(e){var t=i[e];y.isObject(t)&&!y.isArray(t)?a("warn",e+" is an object and will be ignored.",n+"Metadata",t):y.isArray(t)&&y.any(t,y.isObject)?a("warn",e+" contains object values. The objects will be ignored.",n+"Metadata",t):a("log",e+":",n+"Metadata",t)}),r||console.groupEnd()):"parentAccount"!==n&&a("warn","No "+n+" metadata found. Learn more about metadata here: http://help.pendo.io/resources/support-library/installation/metadata.html",n+"MetaData")}),r)return o;console.groupEnd()},Qy=function(n){var e=[{nativeType:Object.prototype,displayName:"Object | Prototype "},{nativeType:Object,displayName:"Object ",propsToCheck:["create","getOwnPropertyNames"]},{nativeType:Number.prototype,displayName:"Number | Prototype"},{nativeType:String.prototype,displayName:"String | Prototype"},{nativeType:Function.prototype,displayName:"Function | Prototype"},{nativeType:Boolean.prototype,displayName:"Boolean | Prototype"},{nativeType:Array.prototype,displayName:"Array | Prototype"},{nativeType:Date.prototype,displayName:"Date | Prototype"},{nativeType:RegExp.prototype,displayName:"RegExp | Prototype"},{nativeType:JSON,displayName:"JSON ",propsToCheck:["parse","stringify"]},{nativeType:Math,displayName:"Math "},{nativeType:Pt.prototype,displayName:"Promise | Prototype"},{nativeType:window,displayName:"Window ",propsToCheck:["alert","asap","atob","btoa","cancelAnimationFrame","clearImmediate","clearInterval","clearTimeout","close","confirm","getComputedStyle","getSelection","open","postMessage","prompt","requestAnimationFrame","scroll","scrollBy","scrollTo","setImmediate","setInterval","setTimeout","stop","XMLHttpRequest","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent"]}],r=!1,i=(y.each(e,function(e){var n=e.nativeType,i=[],t=e.propsToCheck||Object.getOwnPropertyNames(n);y.each(t,function(e){try{e&&n[e]&&"function"==typeof n[e]&&(n[e].toString().includes("[native code]")||i.push(e))}catch(t){}}),i.length&&(e.nonNativeImplementations=i,r=!0)}),{hasNonNativeMethods:r,implementations:[]});return n||console.group("Native javascript method check:"),r?(n||console.warn("Pendo has detected that your application may be changing native javascript functionality. We suggest consulting an engineer or your CSM to better understand if these changes will negatively impact Pendo's ability to function properly"),y.each(e,function(e){var t;e.nonNativeImplementations&&(t=e.displayName.trim(),n?i.implementations.push({nativeType:t,nonNativeImplementations:e.nonNativeImplementations}):console.warn(t+" | Contains the following non-native implementations:",e.nonNativeImplementations.sort().join(", ")))}),n?i:void console.groupEnd()):n?i:(console.log("Environment uses native javascript implementations"),console.groupEnd())},eb=function(e){var t=[];if(y.isNumber(window.frames.length)&&y.isFinite(window.frames.length)&&R("iframe").length+R("frame").length===window.frames.length||t.push("Pendo has detected that window.frames.length has been modified"),window.Event&&window.Event.prototype||t.push("Pendo has detected that window.Event has been modified"),t.length){if(e)return t;console.group("Global variables:"),y.each(t,function(e){console.warn(e)}),console.groupEnd()}},tb=function(e){var t,n=window.location.href,i=[];try{(t=mo())!==n&&i.push({type:"customizedUrl",msg:"URL has been customized. This will affect data collection, guide requests, and reload tests.",value:t})}catch(o){i.push({method:"error",msg:"Error getting Custom URL",value:o})}try{var r=Fo.externalizeURL();r!==t&&i.push({type:"sanitizedUrl",msg:"URL has been sanitized. This will affect sending data and guides requests.",value:r})}catch(o){i.push({method:"error",msg:"Error getting Externalized URL",value:o})}if(e)return i;console.group("URL Validation"),console.log("Browser URL:",n),y.each(i,function(e){e.method?console[e.method](e.msg+"\n"+e.value):console.warn(e.msg+"\n"+e.value)}),console.groupEnd()},nb=function(e){if(0<Fy.length){var t=[].concat(Fy);if(e)return t;console.group("Agent Error History"),y.each(t,function(e,t){console.log("Error History ",t,e)}),console.groupEnd()}},ib=function(e){t=e;var t,n=y.map(ny,function(e){return e.validate&&!t&&e.validate(v,ry),e.name});if(e)return n;console.group("Active Plugins"),y.each(n,function(e){return console.log(e)}),console.groupEnd()},rb=function(e){var t={install:qy(e),plugins:ib(e),globals:eb(e),url:tb(e),errors:nb(e)};if(e)return t.methods=Qy(e),t;m.validate(console)},ob={BuildingBlockGuides:F,BuildingBlockResourceCenter:N,BuildingBlockTemplates:zc,BuildingBlockTooltips:bl,BuildingBlockSvgs:Kc};function ab(e,t){this.state={duration:e,isStopped:!0,handle:null,cb:t,hasRun:!1,errors:[],options:{}},this.shouldJobRun=function(){return!(!this.state.hasRun&&this.state.options.skipFirstRun||this.state.isStopped)},this.doJob=function(e){if(e)try{this.state.cb(this)}catch(t){this.state.errors.push(t)}},this.afterJobRun=function(){this.state.hasRun=!0,this.state.handle=Dt(this.run,this.state.duration)},this.run=y.compose(y.bind(this.afterJobRun,this),y.bind(this.doJob,this),y.bind(this.shouldJobRun,this))}ab.prototype.start=function(e){this.state.isStopped&&(this.state.isStopped=!1,this.state.options.skipFirstRun=e,this.run())},ab.prototype.stop=function(){clearTimeout(this.state.handle),this.state.isStopped=!0,this.state.hasRun=!1};var sb=ao.urlFor;function db(e,t,n){var i={search:["AllowOnlyKeys","ExcludeKeys","AddTo","Replace","Clear"],hash:["Replace","Clear"],pathname:["Replace"],hostname:["Replace"],href:["Replace","ForceSecure"],protocol:["ForceSecure"]};if(y.isObject(e)&&(t=e.action,n=e.data,e=e.attr),!i[e])throw new Error("Invalid URL attribute type: "+e);if(!y.contains(i[e],t))throw new Error("Invalid transform ("+t+") for attribute ("+e+")");this.attr=e,this.action=t,this.data=n}function ub(e){return e instanceof Si||e instanceof HTMLAnchorElement}db.prototype.applyToURL=function(e){return{AllowOnlyKeys:function(e,t,n){y.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Si(ko(t,null,n,!1))},ExcludeKeys:function(e,t,n){y.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Si(ko(t,null,n,!0))},AddTo:function(e,t,n){y.isFunction(n)&&(n=n(e[t],e));t=e.href;return new Si(sb(t,n))},Clear:function(e,t){return e[t]="",e},Replace:function(e,t,n){return y.isFunction(n)&&(n=n(e[t],e)),"href"===t?new Si(n):(e[t]=n,e)},ForceSecure:function(e,t){return"protocol"===t?e.protocol="https":e.href=e.href.replace(/^(.*:\/\/\/)/,"https://"),e}}[this.action](e,this.attr,this.data)},db.prototype.toString=function(){return this.attr+" - "+this.action+" - "+JSON.stringify(this.data)},db.fromJSON=function(e){return e instanceof db?e:new db(e.attr,e.action,e.data)};cb=function(t,n,i,r){return[new db("pathname","Replace",function(e){e=e.replace(n,t);return e=(e=e.replace(i,t)).replace(r,"")}),new db("href","ForceSecure")]},e={transforms:[],internalTransforms:[],electronTransforms:[],currentSrcFn:lb=function(){var e=go(),t=Fo.isElectron()?cb(Fo.electronAppName(),Fo.electronResourcesPath(),Fo.electronUserDirectory(),Fo.electronUserHomeDirectory()):[];return gb([].concat(t),e)}},pb=new ab(500,function(e){!my()||Wd(document)||Bd()}),hb=function(e){if("string"==typeof e)return new Si(e);if(ub(e))return e;throw new Error("Invalid type from custom URL source. Must be either an URL or a String of a valid url.")},fb=function(e){return e||window.location},gb=function(e,t){return y.reduce(e,function(e,t){return t.applyToURL(e)},t)};var cb,lb,pb,hb,fb,gb,mb,pr={state:e,actions:{init:function(e,t){e.commit("clearTransforms"),e.commit("clearInternalTransforms"),e.commit("changeUrlSource"),t.transforms&&e.dispatch("addTransforms",t.transforms),t.setUrl&&e.commit("changeUrlSource",t.setUrl)},addTransforms:function(t,e){y.each(e,function(e){t.commit("addTransform",db.fromJSON(e))})},addInternalTransforms:function(t,e){y.each(e,function(e){t.commit("addInternalTransform",db.fromJSON(e))})},removeInternalTransforms:function(t,e){y.each(e,function(e){t.commit("removeInternalTransform",db.fromJSON(e))})},startPolling:function(e){pb.start()},stopPolling:function(e){e.state.currentSrcFn===lb&&pb.stop()}},mutations:{addTransform:function(e,t){e.transforms.push(t)},addInternalTransform:function(e,t){e.internalTransforms.push(t)},removeInternalTransform:function(e,t){t=y.indexOf(e.internalTransforms,t);0<=t&&e.internalTransforms.splice(t,1)},clearTransforms:function(e){e.transforms=[]},clearInternalTransforms:function(e){e.internalTransforms=[]},changeUrlSource:function(e,t){if(t){if("string"==typeof t)var n=new Si(t),n=y.partial(y.identity,n);else if(ub(t))n=y.partial(y.identity,t);else{if("function"!=typeof t)throw new Error("URL Source must be either a Function that returns a URL or String that is a valid URL. Or, it may be a static URL or String.");n=t}e.currentSrcFn=n,pb.start(!my())}else e.currentSrcFn=lb,pb.stop()}},getters:{url:mb=function(e){try{var t=function(e){return n=e},n=y.reduce([e.currentSrcFn,hb,t,y.partial(gb,e.transforms),hb,t,y.partial(gb,e.internalTransforms),hb],function(e,t){return t(e)},null)}catch(i){I.critical(i),n=fb(n)}return n},href:function(e){return mb(e).href}}};function vb(e){var t;if("function"==typeof vb[e])return t=y.toArray(arguments).slice(1),vb[e].apply(vb,t)}y.extend(vb,{getHref:function(){return A.getters["location/href"]()},clearTransforms:function(){A.commit("location/clearTransforms"),Bd()},addTransforms:function(e){A.dispatch("location/addTransforms",e),Bd()},setUrl:function(e){A.commit("location/changeUrlSource",e)},useBrowserUrl:function(){A.commit("location/changeUrlSource"),Bd()}});function yb(){return m.get("guideSeenTimeoutLength")||1e4}bb=[];var bb,Ib={name:"StepTimeoutMonitor",initialize:function(){this._beforeGuideShow=y.bind(Ib.beforeGuideShow,Ib),this._stop=y.bind(Ib.stop,Ib),S.beforeGuideShow.on(this._beforeGuideShow),S.guideSeen.on(this._stop),S.guideNotSeen.on(this._stop)},teardown:function(){Ib.stop(),S.beforeGuideShow.off(this._beforeGuideShow),S.guideSeen.off(this._stop),S.guideNotSeen.off(this._stop)},beforeGuideShow:function(e){var t=e.data[0],e=e.data[1],n=t.guide;m.get("enableGuideTimeout")&&(e=-1<y.indexOf(["dom","launcher","badge","api"],e),"active"===t.seenState||t.hasBeenControlled()||t.isTimedOut()||(n=n&&n.steps)&&(0!==y.indexOf(n,t)||e)&&Ib.start(t))},start:function(e){var d,t,n=bb[0];n&&n===e.id||(n&&n!==e.id&&(n=bb[1],y.isFunction(n))&&n(),e.shouldStartTimer()&&(d=yb(),n=y.partial(function(e,t){var n,i,r,o,a,s=Ou(t);s&&(n=s.findStepById(e))&&!s.isShown()&&(a=n.canShowOnPage(Ym())?Em(n)?"other":"element":"page",i=t,r=e,o=E(),a=a,s=s.language,i=Um({type:"guideTimeout",guideId:i,stepId:r,visitorId:o,seen_reason:a,language:s,guideSeenTimeoutLength:d}),Zm(i),S.guideTimeout.trigger(i),I.info("Guide "+t+" timed out showing Step "+e),n.timeout()),Ib.stop()},e.id,e.guide.id),t=Dt(n,d),bb=[e.id,n,t]))},stop:function(){var e=bb[2];e&&clearTimeout(e),bb=[]},getGuideSeenTimeoutLength:yb};function wb(){console.warn("This functionality is not supported by your subscription.")}function u(e){return ta?e:wb}var Cb="is going away",Sb="is gone",Ab=y.memoize(function(e,t){e=(e=e||"Function")+" deprecated"+(t=t?" and "+t:"");return I.info(e),e});function Eb(e,t,n){return function(){return Ab("pendo."+t,n),(e||y.noop).apply(null,arguments)}}function Tb(e){return e&&1===e.length?e[0]:y.any(e,Mt)?C.all(e).then(function(e){return y.any(e)}):void 0}function _b(){var e,t=this,n=(this.elements=[],this.attributes=this.attributes||{},this.attributes.device&&this.attributes.device.type?"all"==this.attributes.device.type?this.attributes.device={desktop:!0,mobile:!0}:(e=this.attributes.device.type,this.attributes.device={mobile:!1,desktop:!1},this.attributes.device[e]=!0):this.attributes.device=this.attributes.device||{},y.each(this.steps,function(e){"mobile-lightbox"===e.type&&(this.attributes.device.desktop=!1,this.attributes.device.mobile=!0),Cc(e,this)},this),this.isActivatedByEvent=function(e){return!!(this.hasLaunchMethod("dom")&&this.attributes&&this.attributes.activation&&y.contains(this.attributes.activation.event,e)&&this.canEventActivatedGuideBeShown())},this.isContinuation=function(e){return!1},this.isGuideWidget=function(){return this.attributes&&"launcher"===this.attributes.type},this.isOnboarding=function(){return this.attributes&&!!this.attributes.isOnboarding},this.isWhatsNew=function(){var e=y.first(this.steps);return e&&"whatsnew"===e.type},this.isAnnouncement=function(){return y.get(this,"attributes.isAnnouncement")},this.isHelpGuide=function(){return!this.isOnboarding()&&!this.isWhatsNew()&&!this.isGuideWidget()},this.nextStep=function(e){return null},this.hasLaunchMethod=function(e){return this.launchMethod&&0<=this.launchMethod.indexOf(e)},this.shouldAutoDisplay=function(){return!this.outsideTimebox()&&this.hasLaunchMethod("auto")&&y.any(this.steps,function(e){return e.shouldAutoDisplay()})},this.autoDisplay=function(){if(this.shouldAutoDisplay())return Tb(y.map(this.steps,function(e){return e.autoDisplay()}))},this.isRendered=function(){return y.any(this.steps,function(e){return e.isRendered()})},this.isShown=function(){return y.any(this.steps,function(e){return e.isShown()})},this.canShowOnDevice=function(){if(!Wu()){var e=$u(),t=this.attributes&&this.attributes.device||{};if(!e&&!1===t.desktop)return!1;if(e&&!0!==t.mobile)return!1}return!0},this.canShow=function(){return this.canShowOnDevice()&&y.any(this.steps,function(e){return e.canShow()})},this.launch=function(e){var t;return this.hasGuideBeenControlled()||(t=this.show(e)),this.isShown()?y.each(this.steps,function(e){e.seenState="active"}):!this.isShown()&&this.isControlGroup()&&y.each(this.steps,function(e){e.seenState="notSeen"}),t},this.show=function(t){return Tb(y.map(this.steps,function(e){return e.show(t)}))},this.checkForHiddenGroupSteps=function(){},this.hide=function(t){y.each(this.steps,function(e){e.hide(t)})},this.hasBeenSeen=function(){return y.all(this.steps,function(e){return e.hasBeenSeen()})},this.canBadgeBeShown=function(){var e=this.attributes.badge;return!(e&&e.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.placeBadge=function(){var e;this.canShowOnDevice()&&this.hasLaunchMethod("badge")&&this.canBadgeBeShown()&&!this.outsideTimebox()?(e=y.get(this,"attributes.resourceCenter"),this.isControlGroup()&&!e?this.hasGuideBeenControlled()||this.steps[0].onControlGuide("control"):(e=y.first(this.steps))&&y.isFunction(e.canShowOnPage)&&e.canShowOnPage(Ym())&&gf(this)):yf(this)},this.findStepById=function(t){return y.find(this.steps,function(e){return e.id===t})},this.isPoweredByEnabled=function(){return!!y.find(this.steps,function(e){return e.isPoweredByEnabled()})},this.searchFor=function(t){var e,n,i=null;return Tt(this.name,t,!0)?i="name":(e=!(n=[]),(e=0<(n=this.attributes&&this.attributes.launcher&&this.attributes.launcher.keywords?this.attributes.launcher.keywords:n).length?y.find(n,function(e){return Tt(e.text,t,!0)}):e)?i="tag":(n=y.map(this.steps,function(e){return e.searchFor(t)}),0<y.compact(n).length&&(i="content"))),!!i&&{guide:this,field:i}},this.shouldBeAddedToResourceCenter=function(){var e,t=this;return!(!t.steps||!t.steps.length||t.control||!t.eligibleInFrame&&(!t.steps[0].content&&!y.isFunction(t.steps[0].fetchContent)||(e=t.steps[0],!t.hasLaunchMethod("launcher")&&!t.isWhatsNew())||!e.canShowOnPage(Ym())||!t.canShowOnDevice()||!Em(e)||t.outsideTimebox()))},this.shouldBeAddedToLauncher=function(){var e;return!(!this.steps||!this.steps.length||(e=this.steps[0],!this.hasLaunchMethod("launcher")&&!this.isWhatsNew())||!e.canShowOnPage(Ym())||!this.canShowOnDevice()||!Em(e)||this.outsideTimebox())},"PENDO_HELPER_STEP");return this.getPositionOfStep=function(e){var t=y.reject(this.steps,function(e){return Tt(e.content,n)});return y.indexOf(t,e)+1},this.getTotalSteps=function(){return y.reject(this.steps,function(e){return Tt(e.content,n)}).length},this.getSeenSteps=function(){return y.size(y.filter(this.steps,function(e){return e.hasBeenSeen()}))},this.isComplete=function(){var t=["advanced","dismissed"];return y.all(this.steps,function(e){return y.contains(t,e.seenState)})},this.isInProgress=function(){var t=["active","advanced","dismissed"];return!this.isComplete()&&y.any(this.steps,function(e){return y.contains(t,e.seenState)})},this.isNotStarted=function(){return!this.isInProgress()&&!this.isComplete()},this.fetchContent=function(){return C.all(y.map(this.steps,function(e){if(y.isFunction(e.fetchContent))return e.fetchContent()}))},this.canEventActivatedGuideBeShown=function(){return!(this.attributes.dom&&this.attributes.dom.isOnlyShowOnce&&this.steps[0].hasBeenSeen())},this.isGuideSnoozed=function(){return y.any(this.steps,function(e){return e.isSnoozed()})},this.hasGuideBeenControlled=function(){return y.any(this.steps,function(e){return e.hasBeenControlled()})},this.isControlGroup=function(){return this.control},this.shouldShowSnoozedGuide=function(){var t=!1;return!this.outsideTimebox()&&y.any(this.steps,function(e){return!(t="dismissed"===e.seenState?!0:t)&&"snoozed"===e.seenState&&e.snoozeEndTime&&(new Date).getTime()>e.snoozeEndTime})},this.shouldRepeatGuide=function(){var t;return!(!this.redisplay||this.outsideTimebox()||this.isGuideSnoozed()||this.hasReachedMaxDismissals()||(t=0,y.forEach(this.steps,function(e){t=Math.max(t,e.lastSeenAt||0)}),!t))&&b()-t>=this.redisplay.interval},this.isExpired=function(){return!!this.expiresAfter&&b()>this.expiresAfter},this.isBeforeStartTime=function(){return!!t.showsAfter&&b()<t.showsAfter},this.outsideTimebox=function(){return t.isExpired()||t.isBeforeStartTime()},this.calculateDismissCountFromSteps=function(){var t=0;return y.forEach(this.steps,function(e){e.dismissCount&&(t+=e.dismissCount)}),t},this.hasReachedMaxDismissals=function(){return this.redisplay&&0!==this.redisplay.maxDismissals&&this.calculateDismissCountFromSteps()>=this.redisplay.maxDismissals},this}function xb(){var e=this;return e.attributes&&"group"==e.attributes.type&&(e.checkForHiddenGroupSteps=function(){y.each(e.steps,function(e){e.isShown()||e.autoDisplay()})}),e}var Rb=function(e){return e&&e.attributes&&!!e.attributes.isOnboarding};function kb(){var r,o=!1;return(this.isMultiStep||this.isModule||this.isTopLevel)&&(y.each(this.steps,function(e){e.after("render",function(){y.each(e.elements,function(e){R(e).addClass("_pendo-guide-walkthrough_")})})}),r=null,this.sections=y.reduce(this.steps,function(e,t){var n,i;return i=t,!(n=r)||(n=y.last(n)).attributes.isRequired!=i.attributes.isRequired&&n.attributes.isRequired?(e.push(r),r=[t]):r.push(t),e},[]),this.sections=y.compact(this.sections.concat([r])),this.findSectionForStep=function(t){return y.find(this.sections,function(e){return y.contains(e,t)})},this.getSubSection=function(e,t){t=y.indexOf(e,t);return e.slice(t+1)},this.isContinuation=function(e){var t=this.isTopLevel||this.isModule,n=this.hasResourceCenterContent;return(!t||n)&&!!this.nextStep(e)},this.nextStep=function(t){var e=null;if(this.isGuideSnoozed())return null;t=t||{};for(var n,i,r=0;r<this.steps.length;r++)if(this.steps[r].id===t.guideStepId){if("dismissed"===t.state)break;if("active"===t.state||"snoozed"===t.state){e=this.steps[r];break}if("advanced"===t.state&&t.destinationStepId){e=y.find(this.steps,function(e){return e.id===t.destinationStepId});break}if(r+1<this.steps.length){e=this.steps[r+1];break}}return e?(n=(new Date).getTime(),(i=t.time)&&432e5<n-i&&!Rb(this)?(o||(I.info("Multi-step continuation has expired",{contexts:["guides","info"]}),o=!0),null):e):null},this.shouldAutoDisplay=function(){return this.hasLaunchMethod("auto")&&(this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||y.all(this.steps,function(e){return e.shouldAutoDisplay()}))},this.autoDisplay=function(){var e,t,n;if(this.shouldAutoDisplay())return e=this.shouldRepeatGuide(),t=y.first(this.steps),n=this.nextStep(xh())||t,this.shouldShowSnoozedGuide()||e?n.show(e?"repeatGuide":"auto"):t.autoDisplay()},this.launch=function(e){return y.first(this.steps).show(e)},this.show=function(e){var t=xh(),n=y.first(this.steps),t=this.nextStep(t)||n;return t.show("continue"===e&&t===n&&"auto"===n.seenReason?"auto":e)},this.isComplete=function(){var e=y.last(this.steps);return!!e&&y.contains(["advanced","dismissed"],e.seenState)},this.activeStep=function(){var e=[].concat(this.steps).reverse();return y.findWhere(e,{seenState:"active"})}),this}function Ob(){var a=this;function t(r){var o=[];return function(e){try{return e.apply(a,y.toArray(arguments).slice(1))}catch(i){var t,n="ERROR in guide "+r+' (ID="'+a.id+'")';throw o.push(b()),5<=o.length&&(t=0<(t=y.last(o)-y.first(o))?(o.length-1)/(t/6e4):Infinity,Ob.MAX_ERRORS_PER_MINUTE<=t&&(n="Exceeded error rate limit, dropping guide.\n"+n,Ru.addGuide(a),S.trigger("renderFail",a)),o.shift()),I.critical(n,{error:i}),i}}}return y.each(["canShow","placeBadge","show"],function(e){a[e]=y.wrap(a[e],t(e))}),a}function Nb(){return y.isFunction(this.isAnnouncement)&&this.isAnnouncement()||(this.shouldBeAddedToLauncher=y.wrap(this.shouldBeAddedToLauncher,function(e){return A.getters["frames/hasFrames"]()?!(!A.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!A.getters["frames/isGuideInDifferentFrame"]()(this)&&A.getters["frames/shouldBeAddedToLauncher"]()(this):e.apply(this,arguments)}),this.shouldBeAddedToResourceCenter=y.wrap(this.shouldBeAddedToResourceCenter,function(e){return A.getters["frames/hasFrames"]()?!(!A.getters["frames/isGuideInThisFrame"]()(this)||!e.apply(this,arguments))||!!A.getters["frames/isGuideInDifferentFrame"]()(this)&&A.getters["frames/shouldBeAddedToResourceCenter"]()(this):e.apply(this,arguments)})),this}function Mb(e){var t=this;return"whatsnew"===t.type||y.isFunction(e.isAnnouncement)&&e.isAnnouncement()||(t.isShown=y.wrap(t.isShown,function(e){return e.apply(this,arguments)||A.getters["frames/isShownInAnotherFrame"]()(t)})),t}function Lb(o){var a,t,i,s,r,n,d,u=this;return u.pollIds&&u.pollIds.length&&(a="_pendo-poll-selected_",t=y.indexBy(o.polls,"id"),i=y.map(u.pollIds,function(e){return t[e]}),r=function(e,t){if(e&&t!==undefined)return e.numericResponses?parseInt(t,10):t},n=function(){var e=o.id,t=u.id,n=b();Dm(e,t,E(),u.seenReason,o.language),om(e,t,"advanced",n),Th({guideId:e,guideStepId:t,time:n,state:"advanced"})},d=function(){var e=R("._pendo-poll_"),t=R("._pendo-poll-message_");t.length?(e.addClass("_pendo-poll-submitted_"),t.css("margin-top:-"+t.height()/2+"px"),n()):u.advance()},u.after("render",function(){var n=R("._pendo-poll_")[0],e=R("._pendo-poll-submit_",n)[0];e?u.attachEvent(e,"click",function(e){var t=R("._pendo-poll-question_",n),t=y.map(t,function(e,t){e=R("textarea,input:text,select,input:radio:checked",e);if(e&&e.length&&e[0].value)return{pollId:(t=i[t]).id,value:r(t,e[0].value)}});u.response(y.compact(t)),d()}):u.attachEvent(n,"click",function(e){var t,e=R(ro(e)).closest("._pendo-poll-question_ :button,._pendo-poll-question_ :radio");e.length&&(t=i[0],e=r(t,e.attr("data-pendo-poll-value")||e.attr("value")),u.response([{pollId:t.id,value:e}]),d())})}),u.after("render",function(){var i=R("._pendo-poll_ ._pendo-poll-npsrating_")[0],r=R("._pendo-poll_ ._pendo-poll-submit_"),o="_pendo-poll-npsrating-selected_";i&&(r.css({display:"none"}),u.attachEvent(i,"click",function(e){var t=R(":radio:checked",i)[0],n=R("._pendo-poll_");R("label",i).removeClass(a),n.removeClass(o),t&&(R('label[for="'+t.id+'"]').addClass(a),n.addClass(o),r.css({display:""})),y.isFunction(u.resize)&&u.resize()}))}),u.after("show",function(){s=(new Date).getTime()}),u.response=function(e,r){e&&e.length&&(Tv(),y.each(e,function(e,t){var n=function(t,e){if(e&&e.polls&&e.polls.length)return y.find(e.polls,function(e){return e.id===t})}(e.pollId,o),i=Um("pollResponse",u.guideId,u.id,E(),undefined,o.language);y.extend(i.props,{poll_id:e.pollId,poll_response:e.value,duration:(new Date).getTime()-s},r),n&&n.attributes&&n.attributes.type&&y.extend(i.props,{poll_type:n.attributes.type}),Iv.push(i)}),Iv.flush())}),u}Ob.MAX_ERRORS_PER_MINUTE=30;var Fb={show:function(t,n){if(Wu()&&y.isFunction(t._show))return t._show(n),t.isShown();var e=t.getGuide();if("whatsnew"===t.type)return Pb(t,n);if(!A.getters["frames/hasFrames"]()||A.getters["frames/isGuideInThisFrame"]()(e)){e=function(e,t){if(e.getGuide().isModule){e=N.getResourceCenter();if(e)return Pb(e.steps[0],t)}}(t,n);if(Mt(e))return e.then(function(){return Pb(t,n)}).then(function(e){return!!e||Gb(t,n)});e=Pb(t,n);if(Mt(e))return e.then(function(e){return!!e||Gb(t,n)});if(e)return!0}return Gb(t,n)},showLocal:Pb};function Pb(e,t){return Rc.hasContent(e)&&yc.valid(e)?(e._show(t),e.isShown()):!(Rc.hasContent(e)&&yc.invalid(e)||!e.getGuide().canShowOnDevice()||!e.canShowOnPage(Ym()))&&(e.lock(),Rc.fetchContent(e).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&yc.validate(e.getGuide())}).then(function(){return!("whatsnew"!==e.type&&!e.isShown())&&(e.unlock(),e._show(t),e.isShown())}))}function Gb(t,e){var n=t.getGuide();return!(!A.getters["frames/hasFrames"]()||!A.getters["frames/isGuideInDifferentFrame"]()(n))&&(t.lock(),A.dispatch("frames/showGuideStep",{guideId:t.guideId,stepId:t.id,reason:e}).then(function(e){return t.unlock(),e.isShown},function(){return t.unlock(),!1}).then(function(e){return e&&(clearInterval(t.timeoutTimer),delete t.timeoutTimer),e}))}function Db(d){var e=!1,t=!1;return this.guide=d,this.elements=[],this.handlers=[],this.attributes=this.attributes||{},(this.domUrl||this.domJson)&&(this.eventRouter=new Xv),this.getGuide=function(){return this.guide},this.getContent=function(){var e=this.getGuide(),t=e&&e.steps||[],n=y.indexOf(t,this),i=bp();try{var r=this.attributes.variables||{},o={step:{id:this.id,isFirst:0===n,isLast:n===t.length-1,index:n,number:n+1},guide:{id:e.id,name:e.name,publishedAt:e.publishedAt,showsAfter:e.showsAfter,percentComplete:t.length?Math.round((n+1)/t.length*100):0,stepCount:t.length},metadata:wt(i),template:r};return this.template||(this.template=y.template(this.content||"")),Sc(this.template(o).replace(/#_pendo_g_undefined/g,"#_pendo_g_"+this.id).replace(/pendo-src="([^"]+)"/g,function(e,t){return/<%=[^>]+>/.test(t)?e:'src="'+t+'"'}))}catch(a){return this.content}},this.isLocked=function(){return e},this.lock=function(){e=!0},this.unlock=function(){e=!1},this.isTimedOut=function(){return t},this.timeout=function(){t=!0},this.isRendered=function(){return this.elements&&0<this.elements.length},this.isShown=function(){return this.isRendered()||this.isLocked()},this.canShow=function(){return!y.get(this,"guide.attributes.isAnnouncement")&&!!d.canShowOnDevice()&&!this.isShown()&&!y.get(this,"stepIneligibleForApp")&&this.canShowOnPage(Ym())&&Em(this)},this.canShowOnPage=function(e){e=Km(this.regexUrlRule,e);return sf()&&S.stepEligibility.trigger({stepId:this.id,guideId:this.guideId,eligible:e,reason:"page_match"}),e},this.shouldAutoDisplay=function(){return this.shouldRepeat()||!this.hasBeenControlled()&&!this.isSnoozed()&&!y.contains(["dismissed","advanced"],this.seenState)},this.autoDisplay=function(){var e;if(this.shouldAutoDisplay())return e=this.shouldRepeat()?"repeatGuide":"auto",this.show(e)},this._preRenderHealthCheck=function(){var e,t;return!(!(v.designer||Wu()||Rf())&&(e=Ym(),t={guideId:this.guideId,stepId:this.id},this.regexUrlRule&&!Km(this.regexUrlRule,e)?(Ru.addGuide(d),t.error=new Error('attempted display on page "'+e+'"'),I.critical("pendo.io page rule exception",t),1):A.getters["healthCheck/isMissingPageRule"]()(this)?(Ru.addGuide(d),t.error=new Error('missing regexUrlRule"'),I.critical("pendo.io page rule exception",t),1):this.pageId&&!this.regexUrlRule&&(Ru.addGuide(d),t.error=new Error("missing regexUrlRule for page "+this.pageId+'"'),I.critical("pendo.io page rule exception",t),1)))},this.render=function(){var e=this;if(this._preRenderHealthCheck()){if(e.domJson)return d.skipResourceCenterHomeView&&d.moduleIdToReplaceHomeViewWith&&d.hasEligibleNativeIntegrationModule?(t=y.find(Eu(),function(e){return e.id===d.moduleIdToReplaceHomeViewWith}),n=y.get(t,"attributes.resourceCenter.integrationProvider"),N.renderNativeIntegration(n,t)):d.continueToNativeModule?N.handleNativeIntegrationContinuation(d):(y.get(d,"attributes.resourceCenter")&&Hh(N.getResourceCenter(),Kh),d.isModule?F.renderResourceCenterModule(d,!1):(n=F.renderGuideFromJSON(e.domJson,e),y.get(d,"attributes.resourceCenter")&&(t=d.activeModule?d.activeModule.activeStep().domJson.props.id:e.containerId,t=e.guideElement.find("#"+t),N.adjustResourceCenterWidth(t)),n));var t=e.attributes.width,n=e.attributes.height,i=v.TOOLTIP_ARROW_SIZE,r="_pendo-group-id-"+d.id+"_",r=R(document.createElement("div")).attr("id",Rm(e)).addClass(qg+" "+r),o=R(document.createElement("div")).addClass("_pendo-guide-content_").html(e.getContent()),a=R(document.createElement("div")).addClass("_pendo-guide-container_"),s=R(document.createElement("div")).addClass("_pendo-backdrop_");r.width(t),r.height(n),a.css({left:i,top:i}),e.isEditable&&o.attr("contenteditable","true"),o.appendTo(a),a.appendTo(r),d&&y.isFunction(d.isOnboarding)&&d.isOnboarding()&&r.addClass("_pendo-onboarding_"),e.overlayDiv=s,e.guideElement=r}},this.teardown=function(){I.info("guide step teardown",{contexts:["guide","render"]}),y.each(this.handlers,function(e){yu(e.element,e.type,e.fn,!0)}),this.hasBeenScrolledTo=!1,this.handlers.length=0,y.has(this.attributes,"imgCount")&&(this.attributes.imgCount=0),this.hiddenElements&&(y.each(this.hiddenElements,function(e){try{e&&"function"==typeof e.removeAttribute&&e.removeAttribute("aria-hidden")}catch(t){I.error("unable to remove aria-hidden from element",{error:t})}}),this.hiddenElements.length=0,this.hiddenElements=null),up(this.id)},this.show=function(e){var t;if(!y.contains(["auto","continue"],e)||!A.getters["healthCheck/isRedisplay"]()(this))return(t=Fb.show(this,e))&&t["catch"]&&t["catch"](y.noop),t;A.dispatch("healthCheck/fixSeenStateAndLogError",{step:this,reason:e})},this.redraw=function(){var e,t,n,i,r,o=this;o.guideElement&&!v.designer&&(t=(e=y.get(d,"attributes.resourceCenter"))&&N.isFullyCustom(d),n=d.activeModule?d.activeModule.activeStep().domJson.props.id:o.containerId,i=o.guideElement.find("#"+n),r=d.activeModule&&"AnnouncementsModule"===y.get(d.activeModule,"attributes.resourceCenter.moduleId"),S.beforeUpdate.trigger(o),t||r||(F.recalculateGuideWidth(n,o.guideElement),F.adjustGuideContentWidth(n,o.guideElement)),e?(N.adjustResourceCenterWidth(i),r&&d.activeModule.guidesInModule?y.forEach(d.activeModule.guidesInModule,function(e){var t;!y.isUndefined(e.steps[0].attributes.imgCount)&&0!==y.get(e.steps[0],"attributes.imgCount")||(t=e.steps[0].id,t=R(i).find("#pendo-g-"+t)[0]?t:e.id,F.adjustGuideContentWidth("pendo-g-"+t,o.guideElement),F.flexAllThings("pendo-g-"+t,o))}):F.flexAllThings("pendo-resource-center-container")):F.flexAllThings(n,o),t||F.recalculateGuideHeight(n,o.guideElement),S.updated.trigger(o))},this._show=function(e){S.beforeGuideShow.trigger(this,e),this.canShow()&&(!Wu()&&d.control?this.hasBeenControlled()||this.onControlGuide("control"):S.beforeMount.trigger(this).cancel||(this.render(),this.isShown()&&this.onShown(e)))},this.shouldStartTimer=function(){return d.canShowOnDevice()&&!d.attributes.isAnnouncement&&!Sm(this)},this.getStepPollTypes=function(n,e){var i;if(e.pollIds&&e.pollIds.length)return i=[],y.forEach(e.pollIds,function(t){var e=y.find(n.polls,function(e){return e.id===t});e&&e.attributes&&e.attributes.type&&i.push(e.attributes.type)}),i},this.onControlGuide=function(e){var t;Wu()||(this.seenReason=e,tm(b()),t=this.getStepPollTypes(d,this),this.hasBeenControlled())||(Fm(this.guideId,this.id,E(),e,d.language,t),y.each(d.steps,function(e){e.seenState="notSeen"}))},this.onShown=function(r,e){void 0===e&&(e=!0);var t,n,i=this;i.overrideElement&&(R.addClass(i.overrideElement,"triggered"),i.overrideElement.checkAriaExpanded)&&i.overrideElement.checkAriaExpanded(),Wu()||(i.seenReason=r,i.seenState="active",tm(b()),t={last_updated_at:i.lastUpdatedAt},(n=this.getStepPollTypes(d,i))&&(t.step_poll_types=n),e&&Pm(i.guideId,i.id,E(),r,d.language,t),A.dispatch("guideState/updateLastGuideStepSeen",{guideId:d.id,guideStepId:i.id,time:em,state:i.seenState,seenReason:r,visitorId:E()}),y.each(d.steps,function(e){var t,n,i;"snoozed"===e.seenState&&(e.snoozeEndTime=0,t=d.id,e=e.id,n=E(),i=d.language,t=Um({type:"guideSnoozeCanceled",guideId:t,stepId:e,visitorId:n,seen_reason:r,language:i}),Zm(t,null,!0),S.guideSnoozeCancelled.trigger(t))}),Fc.runCustomScripts(i,d)),A.dispatch("frames/guideStepShownInFrame",{guideId:d.id,stepId:i.id,isShown:i.isShown()}),i.guideElement&&i.guideElement[0]&&i.attachEvent(i.guideElement[0],"focusin",function(e){"TEXTAREA"!==e.target.tagName&&"INPUT"!==e.target.tagName||(v.ignoreResize=!0,Dt(function(){v.ignoreResize=!1},1e3))})},this.hide=function(e){var t=this;t.unlock(),S.beforeUnmount.trigger(t),t.teardown(),y.each(t.elements,function(e){Ea(e)}),S.unmounted.trigger(t),t.attributes&&e&&e.stayHidden&&(t.attributes.stayHidden=e.stayHidden),t.elements.length=0,t.element=null,t.guideElement=null,t.overrideElement&&(R.removeClass(t.overrideElement,"triggered"),t.overrideElement.checkAriaExpanded)&&t.overrideElement.checkAriaExpanded(),A.dispatch("frames/guideStepHiddenInFrame",{guideId:d.id,stepId:t.id})},this.advance=function(){"advanced"===this.seenState&&!this.isRendered()||Im(this)},this.dismiss=function(){"dismissed"===this.seenState&&!this.isRendered()||vm(this)},this.isPoweredByEnabled=function(){return!0!==this.hideCredits},this.isSnoozed=function(){var e="snoozed"===this.seenState,t=!this.snoozeEndTime||(new Date).getTime()>this.snoozeEndTime;return e&&!t},this.shouldRepeat=function(){return!!this.lastSeenAt&&d.redisplay&&!d.outsideTimebox()&&!this.isSnoozed()&&b()-this.lastSeenAt>=d.redisplay.interval&&!d.hasReachedMaxDismissals()},this.hasBeenControlled=function(){return d.isControlGroup()&&"notSeen"===this.seenState},this.attachEvent=function(e,t,n){var i={element:e,type:t,fn:n};l(e,t,n,!0),this.handlers.push(i)},this.searchFor=function(e){return!(e.length<3)&&Tt(this.content,e,!0)},this.hasBeenSeen=function(){return"advanced"==this.seenState||"dismissed"==this.seenState},this.reposition=function(){},this.checkPlacement=function(){"tooltip"===this.getType()&&bl.placeBBTooltip(this),this.attributes.blockOutUI&&this.attributes.blockOutUI.enabled&&ll(this)},this.getType=function(){return this.domJson?y.get(this,"attributes.calculatedType"):this.type},this}function Bb(){return this.after("render",function(){var e,t;M&&M.contentWindow&&M.style&&(e=y.first(R('#pendo-resource-center-container, [id^="pendo-g-"]')))&&(e=f(e))&&(t={mutation:"preview/setIsPreviewBarTop",payload:{isPreviewBarTop:!1}},"0px"===e.top?(M.style.top="auto",M.style.bottom="0px",M.contentWindow.postMessage(t,location.origin)):"0px"!==e.bottom&&M.style.top||(M.style.top="0px",M.style.bottom="auto",t.payload.isPreviewBarTop=!0,M.contentWindow.postMessage(t,location.origin)))}),this}Db.isGuideStep=function(e){return!!e&&y.isFunction(e.render)};var i={state:{errorCount:0,errors:{}},actions:{write:function(e,t){var n=t.error;if(n&&!t.logged){var i=e.getters.hasLogged()(t);if(e.dispatch("update",t),!i){try{t.logged=!0}catch(r){}e="[".concat(t,"]");t.level===Zt.Critical?(i=window.pendo_options||{},Zy(e),!1!==v.logStackTraces&&!1!==i.logStackTraces&&n.stack?oa("".concat(e,"\n").concat(n.stack)):ra(e)):t.level===Zt.Error?Zy(e):t.level===Zt.Warn&&function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];$y("warn")&&console.warn.apply(console,e)}(e)}}},update:function(e,t){t&&(e.getters.hasLogged()(t)||e.commit("addError",t),e.commit("incrementError",t))}},mutations:{addError:function(e,t){var n=t.message,i=t.level,r=t.hashCode();e.errors[r]={count:0,stack:t.error.stack,message:n,level:i,hash:r}},incrementError:function(e,t){e.errors[t.hashCode()].count++,e.errorCount++}},getters:{hasLogged:function(t){return function(e){return!!t.errors[e.hashCode()]}}}},Wb=w.getSession(),$b="pendo_cd";function Ub(){this.name="CloneDetection"}Ub.prototype.initialize=function(){if(y.isFunction(window.BroadcastChannel))return w.registry.addSession($b),this.tabId=Dn.getTabId(),this.id=Et(16),this.channel=new BroadcastChannel("pendo-clone-detection-".concat(v.apiKey)),this.channel.addEventListener("message",y.bind(this.onmessage,this)),this.detectClonedSession(this.id),y.bind(this.teardown,this)},Ub.prototype.teardown=function(){this.stopCloneDetectionTimer(),this.channel.removeEventListener("message",this.onmessage),this.channel.close(),this.channel=null},Ub.prototype.onmessage=function(e){var t=y.get(e,"data.type"),n=y.get(e,"data.tabId"),i=y.get(e,"data.id");if(n===this.tabId)switch(t){case"pendo-clone-test":i!==this.id&&this.isClonedSession(i)&&this.sendMessage("pendo-change-tab-id",{tabId:n,id:i});break;case"pendo-change-tab-id":i===this.id&&this.clearClonedStorage()}},Ub.prototype.detectClonedSession=function(e){var t=Wb.getItem($b)||"";-1===t.indexOf(e)&&(t+="-"+e),Wb.setItem($b,t),this.sendMessage("pendo-clone-test",{tabId:this.tabId,id:this.id}),this.startCloneDetectionTimer()},Ub.prototype.isClonedSession=function(e){return this.startCloneDetectionTimer(),-1===(Wb.getItem($b)||"").indexOf(e)},Ub.prototype.clearCloneDetectionValue=function(){Wb.removeItem($b),this.cloneDetectionTimer=null},Ub.prototype.startCloneDetectionTimer=function(){this.stopCloneDetectionTimer(),this.cloneDetectionTimer=Dt(y.bind(this.clearCloneDetectionValue,this),1e4)},Ub.prototype.stopCloneDetectionTimer=function(){this.cloneDetectionTimer&&(clearTimeout(this.cloneDetectionTimer),this.cloneDetectionTimer=null)},Ub.prototype.clearClonedStorage=function(){Wb.clearPendo(),Dn.setParentTabId(this.tabId),this.tabId=Dn.newTabId(),S.trigger("tabIdChanged:self"),A.dispatch("frames/setTabId",this.tabId)},Ub.prototype.sendMessage=function(e,t){this.channel.postMessage(Wt({type:e},t))};var jb=new Ub;function zb(e){A.dispatch("frames/setReady",{isReady:!0})}var Zb=["unknown","hidden","visible"];function Vb(e){return"visible"===e.visibility||"unknown"===e.visibility}Yb={};var Yb,s={actions:{init:function(e){var t,n,i=e.state;i.initialized||(w.registry.addSession(kn),w.registry.addSession(On),t=Dn.addTracerIds({}),n=De(),e.commit("setFrameId",t.frameId),e.commit("setTabId",t.tabId),e.commit("setAgentInstallType",n),e.commit("setLeadershipMode",n),S.ready.on(zb),S.guideSeen.on(function(e){e=e.data[0];e&&e.frameId===i.frameId&&L.postMessage({action:"frames/receiveGuideSeen",frameId:i.frameId,guideSeen:e})}),jb.initialize(),e.commit("setInitialized",!0))},changeGuideList:function(e,t){e=e.state,t=Kb(t);L.postMessage({action:"frames/receiveGuideList",frameId:e.frameId,guides:t,autoOrdering:v.autoOrdering||[]})},receiveGuideList:function(e,t){e.commit("setGuideList",t),t.frameId===e.state.frameId&&e.commit("setGuidesLoaded"),Xb(e.state)},join:function(e){var t,n,i,r;e.state.disabled||($h(),t=e.state,n=window.top==window,i=t.frames[t.frameId],e.commit("removeFrame",t.frameId),e.commit("setGuideList",{frameId:t.frameId,guides:Kb(Lu())}),(r=[].concat(m.get("leaderKey"))).length||t.agentInstallType!==Pe||(r=[v.apiKey]),e.dispatch("receiveFrame",{frame:y.extend({agentInstallType:t.agentInstallType,id:t.frameId,joinedAt:b(),isTop:n,visibility:n?"visible":"unknown",apiKey:v.apiKey,leaderKey:r},i)}))},receiveFrame:function(e,t){var n,i=e.state;if(v.designerv2.launched&&(n=Object.assign({},tg.hostConfig,{selectionOnly:!0}),L.postMessage({action:"frames/addSelectionModeToFrames",options:n})),!i.frames[t.frame.id]||!i.frames[t.frame.id].id){if(e.commit("addFrame",t.frame),e.commit("setGuideList",{frameId:t.frame.id,guides:y.toArray(y.get(t,"frame.guides",[]))}),t.frame.isTop){for(var r=e.getters.leaderKeyPreference(),o=y.filter(i.frames,function(e){return e.isTop});r.length;){var a=r.shift(),s=y.filter(o,function(e){return e.apiKey===a});if(s.length){o=s;break}}e.commit("setTopId",o[0].id)}e.commit("setLeadershipMode",t.frame.agentInstallType),t[wf]&&e.dispatch("receiveStartPreview",t),L.postMessage({action:"frames/receiveFrame",frame:i.frames[i.frameId],"pendo-preview":e.rootState.preview.preview}),e.dispatch("waitThenElectLeader")}},leave:function(t){var e=t.state;L.postMessage({action:"frames/removeFrame",frameId:e.frameId}),y.each(e.frames,function(e){t.commit("removeFrame",e.id)}),L.close()},removeFrame:function(e,n){e.getters.hasFrame()(n.frameId)&&(e.commit("removeFrame",n.frameId),y.each(Yb,function(e,t){0===t.indexOf(n.frameId+"/")&&(e.reject(),delete Yb[t])}),e.dispatch("electLeader"))},waitThenElectLeader:y.debounce(function(e){e.dispatch("electLeader")},50),electLeader:function(e){var t=e.state,n=t.frames,i=e.getters.leaderKeyPreference();if(i.length)for(;i.length;){var r=i.shift(),o=y.filter(t.frames,function(e){return e.apiKey===r});if(o.length){n=o;break}}var a=y.find(n,function(e){return e.isTop});a?e.dispatch("followLeader",{leaderId:a.id}):(a=y.min(n,"joinedAt"),e.dispatch("followLeader",{leaderId:a.id})),Xb(e.state),e.getters.isLeader()&&S.childFrameJoined.trigger()},followLeader:function(e,t){var n=e.state,i=n.leaderId,r=t.leaderId;e.commit("setLeaderId",t.leaderId),i!==r&&S.leaderChanged.trigger({frameId:n.frameId,oldLeaderId:i,newLeaderId:r})},showGuideStep:function(t,n){var i=y.filter(t.state.frames,function(e){return e.id!==t.state.frameId&&"hidden"!==e.visibility&&e.guides&&e.guides[n.guideId]});return function r(){var e=i.shift();return e?t.dispatch("requestShowGuideStepInFrame",y.extend({frameId:e.id},n)).then(function(e){return e.error?C.reject(e.error):e.isShown?e:r()}):C.resolve({isShown:!1})}()},requestShowGuideStepInFrame:function(e,t){var n=t.frameId+"/"+Et(32),i=C.defer();return Yb[n]=i,L.postMessage(y.extend({action:"frames/showGuideStepInFrame",requestId:n},t)),i.promise},showGuideStepInFrame:function(t,n){var e;function i(e){t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:e})}t.state.frameId===n.frameId&&((e=(e=Ou(n.guideId))&&e.findStepById(n.stepId))?Mt(e=Fb.showLocal(e,n.reason))?e.then(i)["catch"](y.noop):i(e):t.dispatch("guideStepShownInFrame",{action:"frames/receiveGuideStepShownInFrame",requestId:n.requestId,guideId:n.guideId,stepId:n.stepId,isShown:!1}))},guideStepShownInFrame:function(e,t){e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:t.isShown}),L.postMessage(y.extend({action:"frames/receiveGuideStepShownInFrame",frameId:e.state.frameId},t))},receiveGuideStepShownInFrame:function(e,t){var n=Yb[t.requestId];n&&(n.resolve(t),delete Yb[t.requestId]),e.getters.isShownInFrame()(t.frameId,{id:t.stepId})!==t.isShown&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:t.isShown})},hideGuides:function(e,t){t=y.isArray(t)?t:[],L.postMessage({action:"frames/receiveHideGuides",frameId:e.state.frameId,guideIds:t}),e.commit("hideGuides")},receiveHideGuides:function(e,t){e.state.frameId!==t.frameId&&(t.guideIds.length?y.each(y.compact(y.map(t.guideIds,Ou)),function(e){e.hide()}):sm(),e.commit("hideGuides"))},guideStepHiddenInFrame:function(e,t){var n=e.getters.isShownInFrame()(e.state.frameId,{id:t.stepId});e.commit("setStepShown",{frameId:e.state.frameId,stepId:t.stepId,shown:!1}),L.postMessage(y.extend({action:"frames/receiveGuideStepHiddenInFrame",frameId:e.state.frameId},t)),n&&e.dispatch("fixDoubleDisplay",t)},receiveGuideStepHiddenInFrame:function(e,t){e.state.frameId!==t.frameId&&e.getters.isShownInFrame()(t.frameId,{id:t.stepId})&&e.commit("setStepShown",{frameId:t.frameId,stepId:t.stepId,shown:!1})},fixDoubleDisplay:function(n,i){y.each(n.state.frames,function(e,t){t!==n.state.frameId&&n.getters.isShownInFrame()(t,{id:i.stepId})&&L.postMessage(y.extend({action:"frames/receiveHideGuideInFrame",frameId:t,guideId:i.guideId,stepId:i.stepId},i))})},receiveHideGuideInFrame:function(e,t){e.state.frameId===t.frameId&&(t=(e=Ou(t.guideId))&&e.findStepById(t.stepId))&&t.hide()},changeLastGuideStepSeen:function(e,t){L.postMessage({action:"frames/receiveLastGuideStepSeen",frameId:e.state.frameId,lastGuideStepSeen:t}),e.commit("updateLastGuideStepSeen",t),e.commit("healthCheck/updateStepState",{id:t.guideStepId,seenState:t.state},{root:!0})},receiveLastGuideStepSeen:function(e,t){var n;t.frameId!==e.state.frameId&&(n=e.state.frames[t.frameId],(n=y.get(n,"agentInstallType"))&&n!==e.state.agentInstallType&&delete t.lastGuideStepSeen.visitorId,e.dispatch("guideState/updateLastGuideStepSeen",t.lastGuideStepSeen,{root:!0}),e.dispatch("guideState/write",null,{root:!0}),t=(t=Ou((n=t.lastGuideStepSeen).guideId))&&t.findStepById(n.guideStepId))&&(t.seenState=n.state,t.seenReason=n.seenReason,t.lastSeenAt=n.time,n.dismissCount&&(t.dismissCount=n.dismissCount),n.snoozeEndTime&&(t.snoozeEndTime=n.snoozeEndTime),e.commit("updateLastGuideStepSeen",n),e.commit("healthCheck/updateStepState",t,{root:!0}))},changeThrottlingState:function(e,t){L.postMessage(y.extend({action:"frames/receiveThrottlingState",frameId:e.state.frameId},t))},receiveThrottlingState:function(e,t){t.frameId!==e.state.frameId&&y.each(Bm,function(e){t[e]&&$m(t[e],e)})},startPreview:function(e){L.postMessage({action:"frames/receiveStartPreview","pendo-preview":e.rootState.preview.preview})},restartPreview:function(e){L.postMessage({action:"frames/receiveRestartPreview","pendo-preview":e.rootState.preview.preview})},stopPreview:function(e,t){L.postMessage(y.extend({action:"frames/receiveStopPreview"},t))},receiveStartPreview:function(e,t){e.dispatch("preview/start",t[wf],{root:!0}),Af(window),$v()},receiveRestartPreview:function(e){var t=_f(k,xh());e.dispatch("guideState/updateLastGuideStepSeen",t,{root:!0})},receiveStopPreview:function(e,t){Pf({preventWindowClose:!!t.preventWindowClose})},checkFrameVisibility:function(e,t){if(!e.getters.isTop()&&!e.state.disableFrameVisibilityCheck)try{var n="unknown",i=(t=null==t?window:t).frameElement;i?(n=za(i)?"visible":"hidden",e.dispatch("updateFrameVisibility",{visibility:n})):e.commit("disableFrameVisibilityCheck")}catch(r){e.commit("disableFrameVisibilityCheck")}},updateFrameVisibility:function(e,t){var n;!y.find(Zb,function(e){return e===t.visibility})||(n=t.visibility,e.getters.frameVisibility()===n)||(e.commit("setFrameVisibility",{frameId:e.state.frameId,visibility:n}),L.postMessage({action:"frames/receiveFrameVisibility",frameId:e.state.frameId,visibility:n}))},receiveFrameVisibility:function(e,t){e.commit("setFrameVisibility",t)},addSelectionModeToFrames:function(e,t){t=t.options;tg.launchInAppDesigner(t)},syncOptions:function(e,t){t.options&&L.postMessage({action:"frames/receiveOptions",frameId:e.state.frameId,options:t.options})},receiveOptions:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&t.options&&fp(t.options)},syncIdentity:function(e,t){var n;(t.visitorId||t.accountId)&&(n=t.visitorId,t=t.accountId,L.postMessage({action:"frames/receiveIdentity",frameId:e.state.frameId,visitorId:n,accountId:t}))},receiveIdentity:function(e,t){e.getters.getMyApiKey()===t.apiKey&&e.state.frameId!==t.frameId&&(t.visitorId||t.accountId)&&hi(t.visitorId,t.accountId)},setReady:function(e,t){e.commit("setReady",t.isReady)},receiveGuideSeen:function(e,t){t.frameId!==e.state.frameId&&S.guideSeen.trigger(t.guideSeen)},checkGuideEligibility:function(e,t){var n=t.guideId,i=t.stepId,r=t.currentStepIndex,o=t.sourceFrame,t=t.promiseId,n=Ou(n),i=n&&n.findStepById(i),a={};return n&&i?(0===r&&(r=Vu(n))&&((r=y.first(Jr(r)))?za(r)||(a.ACTIVATION="notVisible"):a.ACTIVATION="notFound"),y.isFunction(i.canShowOnPage)&&!i.canShowOnPage(Ym())&&(a.PAGE="mismatch"),i.elementPathRule&&((r=y.first(Jr(i.elementPathRule)))?za(r)?i.elementContainsRulesList&&!_m(r,i.elementContainsRulesList)&&(a.ELEMENT="containsRuleMismatch"):a.ELEMENT="notVisible":a.ELEMENT="notFound"),i.triggerElementPathRule&&((r=y.first(Jr(i.triggerElementPathRule)))?za(r)||(a.TRIGGER_ELEMENT="notVisible"):a.TRIGGER_ELEMENT="notFound"),y.get(n,"attributes.embedConfig")&&(i=y.get(n,"attributes.embedConfig.selector"),(r=y.first(Jr(i)))?za(r)||(a.EMBED_CONTAINER="notVisible"):a.EMBED_CONTAINER="notFound")):a.GUIDE="notFound",t&&o&&L.postMessage({errors:a,action:"frameEligibilityResponse",targetFrame:o,resolveId:t}),a},setTabId:function(e,t){e.commit("setTabId",t)}},mutations:{addFrame:function(e,t){var n=t.id;e.frames[n]=y.extend({},e.frames[n],t)},removeFrame:function(e,t){delete e.frames[t]},setGuideList:function(e,t){var n=t.frameId;e.frames[n]=y.extend({},e.frames[n],{guides:y.indexBy(Kb(t.guides),"id"),autoOrdering:t.autoOrdering})},setStepShown:function(e,t){var n=t.frameId,n=e.frames[n]=y.extend({},e.frames[n]);n.shown=y.extend({},n.shown),n.shown[t.stepId]=t.shown},setInitialized:function(e,t){e.initialized=t},setLeaderId:function(e,t){e.leaderId=t},setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setTopId:function(e,t){e.topId=t},setAgentInstallType:function(e,t){e.agentInstallType=t},setLeadershipMode:function(e,t){e.leadershipMode!==Pe&&(e.leadershipMode=t)},setFrameVisibility:function(e,t){var n=t.frameId;e.frames[n]=y.extend({},e.frames[n],{visibility:t.visibility})},setReady:function(e,t){e.isReady=t},disableFrameVisibilityCheck:function(e){e.disableFrameVisibilityCheck=!0},hideGuides:function(e){y.each(e.frames,function(n){y.each(n.shown,function(e,t){n.shown[t]=!1})})},setChannelType:function(e,t){e.channelType=t},setGuidesLoaded:function(e){e.guidesLoaded=!0},setConnectFailed:function(e){e.connectFailed=!0},updateLastGuideStepSeen:function(e,t){t&&y.each(e.frames,function(e){e.guides&&(e=e.guides[t.guideId])&&(e=y.findWhere(e.steps,{id:t.guideStepId}))&&(e.seenState=t.state,e.lastSeenAt=t.time,e.seenReason=t.seenReason,t.dismissCount&&(e.dismissCount=t.dismissCount),t.snoozeEndTime)&&(e.snoozeEndTime=t.snoozeEndTime)})}},getters:{allFrames:function(e){return e.frames},autoOrdering:function(e){return y.reduce(e.frames,function(e,t){return e[t.apiKey]=t.autoOrdering,e},{})},leaderExists:function(e){return!!e.leaderId},isLeader:function(e){return e.leaderId===e.frameId},leaderKey:function(e,t){if(t.leaderExists()){t=e.frames[e.leaderId];if(t)return t.apiKey}},isFollower:function(e){return!!e.leaderId&&e.leaderId!==e.frameId},isTop:function(e,t){t=t.window();return e.topId===e.frameId||t==t.top},frameVisibility:function(e){return(e.frames?e.frames[e.frameId]:{}).visibility||"unknown"},isGuideInThisFrame:function(n){return function(e){var t=n.frames&&n.frames[n.frameId];return!!(t&&t.guides||{})[e.id]}},isGuideInDifferentFrame:function(i){return function(n){return y.any(i.frames,function(e,t){return t!==i.frameId&&e.guides&&e.guides[n.id]})}},isReady:function(e){return e.isReady},isShownInAnotherFrame:function(i){return function(n){return y.any(i.frames,function(e,t){return t!==i.frameId&&e.shown&&e.shown[n.id]})}},isShownInFrame:function(n){return function(e,t){e=n.frames&&n.frames[e],e=e&&e.shown||{};return!(!e||!e[t.id])}},hasFrame:function(t){return function(e){return t.frames&&t.frames[e]}},hasFrames:function(e){return 1<y.size(e.frames)},shouldBeAddedToLauncher:function(i,e){return function(n){return e.canShowRCBadge()&&y.any(i.frames,function(e,t){return t!==i.frameId&&!!Vb(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToLauncher})}},shouldBeAddedToResourceCenter:function(i,e){return function(n){return e.canShowRCBadge()&&y.any(i.frames,function(e,t){return t!==i.frameId&&e.apiKey===v.apiKey&&!!Vb(e)&&(t=e.guides&&e.guides[n.id])&&t._shouldBeAddedToResourceCenter})}},isBroadcastChannel:function(e){return"BroadcastChannel"===e.channelType},channelType:function(e){return e.channelType},canShowRCBadge:function(e,t){var n,i;return t.leaderKey()!==v.apiKey?(n=y.filter(e.frames,function(e){return e.apiKey===v.apiKey}),(i=y.find(n,function(e){return e.isTop}))?e.frameId===i.id:(i=y.min(n,function(e){return e.joinedAt}),e.frameId===i.id)):y.any(e.frames,function(e){return e.isTop})?t.isTop():t.isLeader()},leaderKeyPreference:function(e){e=y.filter(e.frames,function(e){return e.leaderKey&&e.leaderKey.length});return 1===y.unique(y.map(e,function(e){return e.leaderKey.join(",")})).length?[].concat(e[0].leaderKey):[]},getMyApiKey:function(e,t){return t.getMyFrame().apiKey},getMyFrame:function(e){return e.frames[e.frameId]},window:function(){return window}},state:{initialized:!1,frameId:null,leaderId:null,tabId:null,agentInstallType:null,leadershipMode:null,topId:null,frames:{},guidesLoaded:!1,channelType:null,ready:!1},requests:Yb};function Hb(e){var t=y.pick(e,"id","name","launchMethod","isMultiStep","steps","control","lastUpdatedAt","language","state","polls","redisplay");return t.attributes=y.pick(e.attributes,"overrideAutoThrottling","priority","isAnnouncement","resourceCenter","device","sharedServiceVersion","embedConfig"),t._shouldBeAddedToLauncher=y.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e._shouldBeAddedToLauncher||!1,t._shouldBeAddedToResourceCenter=y.isFunction(e.shouldBeAddedToResourceCenter)?e.shouldBeAddedToResourceCenter():e._shouldBeAddedToResourceCenter||!1,t.steps=y.map(e.steps,function(e){return y.pick(e,"id","guideId","type","seenReason","seenState","lastSeenAt","lastUpdatedAt","dismissCount","snoozeEndTime","regexUrlRule","pageId","elementPathRule","triggerElementPathRule","elementContainsRulesList")}),t}function Kb(e){return y.map(e,Hb)}function Xb(t){var n=y.indexBy(y.filter(Lu(),function(e){return!e.isFrameProxy}),"id"),e=y.chain(t.frames).filter(function(e){return e.id!==t.frameId}).map(function(e){return y.toArray(y.get(e,"guides",[]))}).flatten(!0).unique("id").filter(function(e){return!n[e.id]}).map(function(e){return y.extend(JSON.parse(JSON.stringify(e)),{isFrameProxy:!0})}).map(wc).value(),e=y.toArray(n).concat(e).filter(av);y.sortBy(e,sv),Av(e),_u(e),t.guidesLoaded&&0===y.size(y.get(t,"frames."+t.frameId+".guides",[]))&&Uh()}function Jb(e,t){new(xt("MutationObserver"))(t).observe(e,{subtree:!0,attributes:!0,childList:!0,characterData:!0})}var qb,Qb={startObserver:function(t){var n,i,r,o,a;n=t,i=Element.prototype.attachShadow,Element.prototype.attachShadow=function(e){e=i.call(this,e);return this.shadowRoot&&Jb(this.shadowRoot,n),e},Element.prototype.attachShadow.toString=function(){return i.toString()},y.isFunction(document.createNodeIterator)&&(r=0,o=[xa()],function s(e){do{if(!(e=e||document.createNodeIterator(o.pop(),NodeFilter.SHOW_ELEMENT))||!e.nextNode)break;for(;(a=e.nextNode())&&(r++,a&&a.shadowRoot&&(Jb(a.shadowRoot,t),o.push(a.shadowRoot),Qb.foundShadowRoots=!0),r%5e3!=0););}while(!a&&(e=null,o.length));a&&Qb.foundShadowRoots&&Dt(function(){s(e)},50),5e3!==r||Qb.foundShadowRoots||(Qb.stoppedSearchEarly=!0)}())},foundShadowRoots:!1,stoppedSearchEarly:!1},e={actions:{documentChanged:function(e){var t;e.state.updateId?e.commit("setNeedsUpdate"):e.state.scheduledUpdate||(t=e.getters.now()-e.state.updateCompleteTime,t=Math.min(Math.max(0,Dh-t),Dh),t=Dt(t0,t),e.commit("setScheduledUpdate",t))},handleScheduledUpdate:function(e){e.dispatch("stopScheduledUpdate"),Uh()},stopScheduledUpdate:function(e){e.state.scheduledUpdate&&(clearTimeout(e.state.scheduledUpdate),e.commit("setScheduledUpdate",null))},startObserverIfNeeded:function(e,t){var n;e.state.useObserver&&((n=e.getters.observer())||(n=new(t||xt("MutationObserver"))(e0),qb=n),e.state.observing||(n.observe(document.documentElement,{subtree:!0,attributes:!0,childList:!0,characterData:!0}),e.state.observeShadowRoots&&Qb.startObserver(e0),e.commit("setObserving",!0)))},stopObserver:function(e){var t=e.getters.observer();t&&y.isFunction(t.disconnect)&&t.disconnect(),e.commit("setObserving",!1),e.dispatch("stopScheduledUpdate")}},mutations:{setUseObserver:function(e){e.useObserver=!0},setObserveShadowRoots:function(e){e.observeShadowRoots=!0},setObserving:function(e,t){e.observing=t},setNeedsUpdate:function(e){e.needsUpdate=!0},setScheduledUpdate:function(e,t){e.scheduledUpdate=t},startUpdate:function(e,t){e.needsUpdate=!1,e.updateId=t},completeUpdate:function(e,t){e.updateId=null,e.updateCompleteTime=t}},getters:{now:b,observer:function(){return qb}},state:{useObserver:!1,observeShadowRoots:!1,observing:!1,needsUpdate:!1,scheduledUpdate:null,updateId:null,updateCompleteTime:0,iterationTimeLimit:50}};function e0(){A.dispatch("guideUpdate/documentChanged")}function t0(){A.dispatch("guideUpdate/handleScheduledUpdate")}n0=["advanced","dismissed","snoozed"];var n0,i0,r0,o0,a0,s0,d0,u0,c0,l0={actions:{init:function(t,e){y.each(e,function(e){y.each(e.steps,function(e){t.commit("updateStepState",e)})})},fixSeenStateAndLogError:function(e,t){var n,i,r=t.step,t=t.reason;e.state.exceptions[r.id]||(n=r.seenState,(i=e.state.steps[r.id])&&i.seenState&&(r.seenState=i.seenState),e.state.exceptions[r.id]=!0,e.dispatch("logRedisplayError",{id:r.id,guideId:r.guideId,reason:t,seenState:i.seenState,previousSeenState:n}))},logRedisplayError:function(e,t){oa(['Attempted redisplay of guide="',t.guideId,'" step="',t.id,'" reason="',t.reason,'" seenState="',t.seenState,'" previousSeenState="',t.previousSeenState,'"'].join())}},mutations:{updateStepState:function(e,t){var n=b();e.steps[t.id]=y.extend({},e.steps[t.id],{pageId:t.pageId,regexUrlRule:t.regexUrlRule,seenState:t.seenState,updatedAt:n,allowedAt:n+6e4})},resetStepStatus:function(e){e.steps={}}},getters:{isRedisplay:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(e.resetAt>t.updatedAt)&&!(b()>=t.allowedAt)&&y.contains(n0,t.seenState)&&!y.contains(n0,e.seenState)}},isMissingPageRule:function(n){return function(e){var t=n.steps[e.id];return!!t&&!(!t.regexUrlRule||e.regexUrlRule)}}},state:{steps:{},exceptions:{}}},p0={state:{lastFlush:b(),flushInterval:3e5,counters:{ptmGifFailures:0,guideGifFailures:0},timers:{}},actions:{flush:function(n){y.each(n.state.counters,function(e,t){n.commit("resetCounter",t)}),y.each(n.state.timers,function(e,t){n.commit("resetTimer",t)}),n.commit("setLastFlush",n.getters.now())}},mutations:{setLastFlush:function(e,t){e.lastFlush=t},incrementCounter:function(e,t){e.counters[t]!==undefined&&e.counters[t]++},resetCounter:function(e,t){e.counters[t]!==undefined&&(e.counters[t]=0)},setTimer:function(e,t){var t=void 0===t?{}:t,n=t.name,t=t.time;n&&null!=t&&(e.timers[n]=t)},resetTimer:function(e,t){delete e.timers[t]}},getters:{shouldFlush:function(e,t){return t.now()-e.lastFlush>=e.flushInterval},payload:function(e){var t=y.reduce(e.counters,function(e,t,n){return 0<t&&(e[n]=t),e},{});return y.extend({},t,e.timers)},now:b}},h0={state:{visitor:{},account:{},parentAccount:{},date:null,version:null,selfHosted:null},actions:{},mutations:{setMetadata:function(e,t){t&&(t.visitor&&(e.visitor=t.visitor),t.account&&(e.account=t.account),t.parentAccount&&(e.parentAccount=t.parentAccount),t.date&&(e.date=t.date),t.version&&(e.version=t.version),null!==t.selfHosted)&&(e.selfHosted=t.selfHosted)},clearAccount:function(e){e.account={}},reset:function(e,t){e.visitor={id:t.visitor_id},e.account={},e.parentAccount={},e.date=null,e.version=null,e.selfHosted=null}},getters:{metadata:function(e){return e},selfHosted:function(e){return e.selfHosted}}},f0=w.getLocal(),g0="pendo-preview",m0="current-guide-preview",v0={state:{preview:null,designerPreview:null},actions:{start:function(e,t){e.commit("setPreview",t),e.dispatch("write")},restart:function(e,t){e.commit("updatePreview",{state:null}),e.commit("updatePreview",t)},update:function(e,t){e.commit("updatePreview",{state:t}),e.dispatch("write")},load:function(e){try{var t=e.getters.storage(),n=JSON.parse(t.getItem(g0)),i=(n.apiKey===v.apiKey&&e.commit("setPreview",n),t.getItem(m0));i&&e.commit("setDesignerPreview",JSON.parse(i))}catch(r){}},write:function(e){try{var t=e.getters.storage();e.state.preview?t.setItem(g0,JSON.stringify(e.state.preview)):t.removeItem(g0)}catch(n){}},exit:function(e){e.commit("setPreview",null),e.dispatch("write")},exitDesignerPreview:function(e){e.commit("setDesignerPreview",null),e.getters.storage().removeItem(m0)},launchInAppDesigner:function(e,t){tg.launchInAppDesigner(t)}},mutations:{updatePreview:function(e,t){e.preview&&y.extend(e.preview,t)},setPreview:function(e,t){e.preview=t},setDesignerPreview:function(e,t){e.designerPreview=t}},getters:{isInPreviewMode:function(e){return!!e.preview},isInDesignerPreviewMode:function(e,t){return!!e.designerPreview&&t.isInPreviewMode()},storage:function(){return f0}}},y0=(i0={isTop:undefined,isLeader:undefined,frameId:null,tabId:null,frames:{},autoOrdering:[],excludedGuides:[],throttling:{},enableEventLogging:!1,eventsCaptured:[],cspErrors:[],installType:null,doNotProcess:!1},a0={debuggingEnabled:{type:r0="top-down",defaultValue:!(o0="bottom-up")},guideLoopRunning:{type:o0,defaultValue:!1},stepEligibilitySet:{type:o0,defaultValue:{}},identity:{type:o0,defaultValue:{}},location:{type:o0,defaultValue:{}}},y0={init:function(e){e.commit("setFrameId",Dn.getFrameId()),e.commit("setTabId",Dn.getTabId()),e.commit("setInstallType",De());var t=Ku()&&window.top===window;i0.isTop,e.commit("setIsTop",t),e.commit("isLeader",Ku()),t?(t=af(),e.commit("debuggingEnabled",!0===t.enabled),t.enableEventLogging&&e.commit("enableEventLogging",!0)):L.postMessage({action:"debugger/join",frameId:e.state.frameId})},join:function(n,e){n.state.frameId!==e.frameId&&y.each(a0,function(e,t){e.type===r0&&L.postMessage({action:"debugger/sync",frameId:n.state.frameId,fields:((e={})[t]=n.state[t],e)})})},sync:function(i,e){var r;i.state.frameId!==e.frameId&&(r=e.frameId,e=e.fields,y.each(e,function(e,t){var n;!a0[t]||(n=a0[t].type)===r0&&i.state.isTop||n===o0&&!i.state.isTop||i.commit("_sync_".concat(t),{value:e,frameId:r})}))},enableEventLogging:function(e,t){e.commit("enableEventLogging",t)},eventCaptured:function(e,t){e.state.isTop?e.commit("eventsCaptured",t):L.postMessage({action:"debugger/receiveEventCaptured",frameId:e.state.frameId,event:t})},receiveEventCaptured:function(e,t){e.state.isTop&&e.commit("eventsCaptured",t.event)},clearEventsCaptured:function(e){e.commit("eventsCaptured",[])},onCspError:function(e,t){e.state.isTop?e.commit("cspError",t):L.postMessage({action:"debugger/recieveCspError",frameId:e.state.frameId,data:t})},recieveCspError:function(e,t){e.state.isTop&&e.commit("cspError",t.data)},checkGuideEligibility:function(e,t){var i=t.guideId,n=t.response,t=y.filter(A.state.frames.frames,function(e){return e.guides&&e.guides[i]});t.length&&(t=y.map(t,function(n){var e=y.map(n.guides[i].steps,function(e,t){return L.postMessageOrTimeout({action:"frames/checkGuideEligibility",targetFrame:n.id,stepId:e.id,currentStepIndex:t,guideId:i})});return C.all(e).then(function(e){return{frameId:n.id,frameVisibility:n.visibility,errors:y.map(e,function(e){return JSON.parse(e).errors})}})}),C.all(t).then(function(e){return e}).then(function(e){return n(e)})["catch"](function(e){return n({error:e})}))}},s0={},d0={setFrameId:function(e,t){e.frameId=t},setTabId:function(e,t){e.tabId=t},setIsTop:function(e,t){e.isTop=t},isLeader:function(e,t){e.isLeader=t},setInstallType:function(e,t){e.installType=t},stepEligibilitySet:function(e,t){var n=t.stepId;e.stepEligibilitySet[n]=t},guideLoopRunning:function(e,t){e.guideLoopRunning!==t&&(e.guideLoopRunning=t)},identity:function(e,t){e.identity=t},location:function(e,t){e.location=t},debuggingEnabled:function(e,t){e.debuggingEnabled=t,t=t,e=e.isTop,i0.debuggingEnabled!==t&&(t?(C0(),S0(),S.on("stepEligibility",b0),S.on("guideUpdateComplete",u0),S.on("guideLoopStopped",c0),S.on("eventCaptured",w0),S.on("identify",C0),S.on("urlChanged",S0),e&&(I0(),S.on("guidesLoaded",I0))):(S.off("stepEligibility",b0),S.off("guideUpdateComplete",u0),S.off("guideLoopStopped",c0),S.off("eventCaptured",w0),S.off("identify",C0),S.off("urlChanged",S0),e&&S.off("guidesLoaded",I0)))},excludedGuides:function(e,t){e.excludedGuides=t},autoOrdering:function(e,t){e.autoOrdering=t},throttling:function(e,t){e.throttling=t},eventsCaptured:function(e,t){y.isArray(t)&&0===t.length?e.eventsCaptured=[]:e.debuggingEnabled&&e.enableEventLogging&&e.eventsCaptured.unshift(t)},enableEventLogging:function(e,t){e.enableEventLogging=t},cspError:function(e,t){e.cspErrors.unshift(t),10<e.cspErrors.length&&e.cspErrors.pop()},doNotProcess:function(e,t){e.doNotProcess=t}},u0=y.partial(A0,!0),c0=y.partial(A0,!1),y.each(a0,function(e,i){var r=e.type,e=e.defaultValue,o=(i0[i]=e,s0[i]=function(e){return e[i]},d0[i]||function(e,t){e[i]=t});d0[i]=y.wrap(o,function(e,t,n){!t.isTop&&r===r0||(e(t,n),t.isTop&&r===o0)||L.postMessage({action:"debugger/sync",frameId:t.frameId,fields:((e={})[i]=n,e)})}),o=d0["_sync_".concat(i)]||o,d0["_sync_".concat(i)]=function(e,t){var n=t.value,t=t.frameId;e.frames[t]||(e.frames[t]={}),e.frames[t][i]||(e.frames[t][i]=a0[i].defaultValue),o(e.frames[t],n),e.isTop||r!==r0||o(e,n)}}),{state:i0,actions:y0,getters:s0,mutations:d0});function b0(e){e=e.data[0];A.commit("debugger/stepEligibilitySet",e)}function I0(e){var t=y.map(Rh.sortAndFilter(k,v.autoOrdering),function(e){return e.id});A.commit("debugger/autoOrdering",t||[]),A.commit("debugger/excludedGuides",v.excludedGuides||[]),A.commit("debugger/throttling",v.throttling||{})}function w0(e){A.dispatch("debugger/eventCaptured",e.data[0])}function C0(e){A.commit("debugger/identity",{visitorId:y.get(e,"data.0.visitor_id")||v.get_visitor_id(),accountId:y.get(e,"data.0.account_id")||v.get_account_id(),apiKey:v.apiKey})}function S0(){A.commit("debugger/location",{href:mo(),browserUrl:window.location.href})}function A0(e){A.commit("debugger/guideLoopRunning",e)}x0="pendo-loader";var E0,T0,_0,x0,R0={name:"IFrameMonitor",initialize:function(e,t){E0=e,T0=t,function(){T0.ConfigReader.get("autoFrameInstall")&&T0.Events.ready.on(P0);T0.ConfigReader.get("frameIdentitySync")&&(T0.Events.metadata.on(D0),T0.Events.identify.on(B0),T0.Events.childFrameJoined.on(k0))}(),_0=T0.ConfigReader.get("frameIdentityTopDownOnly")},teardown:function(){T0.Events.ready.off(P0),T0.Events.metadata.off(D0),T0.Events.identify.off(B0),T0.Events.childFrameJoined.off(k0)}};function k0(){W0()}function O0(e){return e.ignoreIframeMonitor||e.pendo&&(e.pendo.initialize||e.pendo.iframeWaiting)||!!e.document.getElementById(x0)}function N0(e,t){var n;O0(e)||((n=T0.ConfigReader.getLocalConfig()).apiKey||(n.apiKey=E0.apiKey),e.pendo={_q:[["initialize",n]]},(n=e.document.createElement("script")).src=t,n["async"]=!0,n.id=x0,(t=e.document.getElementsByTagName("script")[0])&&t.parentNode?t.parentNode.insertBefore(n,t):(e.document.head||e.document.body).appendChild(n))}function M0(e,t){e.pendo.iframeWaiting=!1,N0(e,t)}function L0(e){try{if(O0(e))return}catch(i){return}var t,n=(n=T0.ConfigReader.get("selfHostedAgentUrl"))||(n=E0.dom("script"),t=/\/pendo(\.\w+)?\.js$/,(n=E0._.find(n,function(e){return t.test(e.src)}))&&n.src);n?"complete"===e.document.readyState?N0(e,n):(e.pendo={iframeWaiting:!0},e.document.addEventListener("DOMContentLoaded",E0._.partial(M0,e,n))):E0.log("Unable to find agent url to install agent in frames","debug")}function F0(){for(var e=E0.dom("iframe").length,t=0;t<e;t++)L0(window.frames[t]);Dt(F0,250)}function P0(){F0()}function G0(){return!_0||T0.store.getters["frames/isLeader"]()}function D0(e){G0()&&(e=null==(e=e.data)?void 0:e[0]).storeChanged&&T0.store.dispatch("frames/syncOptions",{options:e.options})}function B0(e){var t;W0(null==(t=e.data)?void 0:t[0].visitor_id,null==(t=e.data)?void 0:t[0].account_id)}function W0(e,t){void 0===e&&(e=E()),void 0===t&&(t=vi()),G0()&&T0.store.dispatch("frames/syncIdentity",{visitorId:e,accountId:t})}U0.prototype.markDirty=function(){this.queue.push.apply(this.queue,this.domActivation.guides)},U0.prototype.process=function(e){var t,n,i=this.queue.shift();if(i){e.saveContext(i);try{t=Jr(i.selector)}catch(r){t=[]}t.length>this.maxTargets&&(t.length=this.maxTargets),e=t,n=i.targets,e.length==n.length&&y.all(e,function(e,t){return e===n[t]})||(i.targets=t,this.domActivation.detach(i,this.domActivation.targets),y.each(t,function(e){this.domActivation.attach(e,i,this.domActivation.targets)},this))}},U0.prototype.handleProcessTimeExceeded=function(e){e=e.getContext();e&&I.warn("Element activated guide ("+e.id+") timeout exceeded")},U0.prototype.cancel=function(){this.queue.length=0},U0.prototype.isComplete=function(){return!this.queue.length};var $0=U0;function U0(e){this.maxTargets=50,this.domActivation=e,this.name="dom",this.queue=[]}var j0,z0,Z0,V0,Y0,H0,K0={name:"DOMActivation",key:Z0="pendoTargetId",guides:V0=[],targets:Y0={},reset:eI,init:nI,attach:function(n,i,e){var t=n[Z0],r=t?e[t]:null;r||(t=t||"target"+y.uniqueId(),r={target:n,events:{}},e[t]=r,n[Z0]=t);var o=e[i.id]||[];o.push(t),e[i.id]=o,y.each(i.events,function(e){var t=r.events[e];t||((t={guideIds:{}}).fn=y.partial(Q0,y,t.guideIds),l(n,e="mouseover"===e?"mouseenter":e,t.fn),r.events[e]=t),t.guideIds[i.id]=1})},detach:q0,handler:Q0,activates:tI,prefetch:iI,initialize:function(e,t){(j0=t).Events.on("deliverablesLoaded",eI),t.Events.on("guideListChanged",X0),t.Events.on("guidesLoaded",J0),tf(z0=new $0(K0))},teardown:function(){nf(z0),j0.Events.off("deliverablesLoaded",eI),j0.Events.off("guideListChanged",X0),j0.Events.off("guidesLoaded",J0)}};function X0(){eI(),nI(Eu())}function J0(){iI(Eu())}function q0(i,t){y.each(t[i.id],function(e){var n=e?t[e]:null;n&&(y.each(n.events,function(e,t){e&&e.guideIds&&(delete e.guideIds[i.id],y.size(e.guideIds)<=0)&&(yu(n.target,t="mouseover"===t?"mouseenter":t,e.fn),delete n.events[t])}),y.size(n.events)<=0)&&(delete n.target[Z0],n.target=null,delete t[e])}),delete t[i.id]}function Q0(e,t){var n;!e.pendoActivatedGuide&&!R.data.get(e,"advanced")&&(n=m.get("adoptPrioritizeAdoptGuides"),t=y.compact(y.map(y.keys(t),Ou)),t=y.filter(t,function(e){return!(!e.steps||!e.steps.length||y.get(e,"attributes.dom.isOnlyShowOnce")&&e.steps[0].hasBeenSeen())}),t=y(t).chain().sortBy(function(e){return"staged"===e.state?0:1}).sortBy(function(e){e=e.isTraining;return n?e?0:1:e?1:0}).value(),t=y.find(t,function(e){var t=y.first(e.steps);return y.get(e,"attributes.resourceCenter",!1)&&e.isShown()?N.dismissResourceCenter():!!t.canShow()&&(!!e.isShown()||Lm(t,"dom"))}))&&(e.pendoActivatedGuide=t.id)}function eI(){y.each(V0,function(e){q0(e,Y0),e.targets=[]}),V0.length=0}function tI(e){if(e.id&&e.steps&&e.steps.length&&e.hasLaunchMethod("dom")&&e.steps[0].canShowOnPage(Ym())){var t=y.get(e,"attributes.activation.event",[]);if(t&&t.length){var n=Vu(e);if(n)return{id:e.id,events:t,selector:n,targets:[]}}}}function nI(e){y.each(e,function(e){e=tI(e);e&&V0.push(e)})}function iI(e){m.get("disablePrefetch")||y.each(e,function(e){y.isFunction(e.hasLaunchMethod)&&e.hasLaunchMethod("dom")&&e.steps&&e.steps.length&&y.isFunction(e.steps[0].fetchContent)&&e.steps[0].fetchContent(!0)})}var rI,oI,aI,sI,dI=function(){(H0=H0||{dom:R,placeBadge:gf,showPreview:Om,stopGuides:$h,removeAllBadges:mf,_:y,sizzle:Jr,tellMaster:Ss,tell:Ss,log:jy,attachEvent:l,createLauncher:y.constant({}),removeLauncher:y.noop,addGuideToLauncher:y.noop,updateLauncherContent:y.noop,DEFAULT_TIMER_LENGTH:Dh,getOffsetPosition:Aa,getScreenDimensions:wa,registerMessageHandler:hs,whenLoadedCall:Iu,loadResource:as,loadGuideCss:yv,GuideFactory:wc,GuideStep:Cc,extractElementTreeContext:du,previewGuideFromJSON:F.previewGuideFromJSON,hidePreviewedGuide:F.hidePreviewedGuide,shadowAPI:xi,getTarget:ro,pullContentsFromTargetElement:Tm,doesElementMatchContainsRules:_m,doesElementContentMatchRule:xm,getGuideAttachPoint:Uu}).areGuidesEnabled=!Rv(),v.designer||(v.designer=H0)},uI={name:"DesignerConnect",initialize:function(e,t){rI=e,oI=t,_s()||hs("connect",cI);hs("pendo-designer-launch::launch",hI),hs("pendo-preview::launch",fI),e.app_name=document.title,(As()||window.opener)&&window.addEventListener&&(rI.log(e.app_name+": listening to messages"),window.addEventListener("message",us,!1));window.opener&&rI._.isFunction(window.opener.postMessage)&&window.opener.postMessage({type:"pendo::ready"},"*");rI.onConnectMessage=cI},teardown:function(){window.removeEventListener&&window.removeEventListener("message",us,!1),lI(),fs("connect"),fs("pendo-designer-launch::launch"),fs("pendo-preview::launch"),sI&&(oI.Events.appUnloaded.off(sI),sI=undefined);aI=aI&&undefined},onConnectMessage:cI,disconnectDesigner:lI,launchDesignerListener:hI,launchPreviewListener:fI,sendToken:pI};function cI(e,t){var n,i;rI.isSendingEvents()&&(n=t.origin,rI.stopGuides(),rI.buffers.lock(),i=t.source,rs=i,rI.designerv2.hostConfig||(oI.store.dispatch("frames/leave"),sI=rI._.partial(lI,i,n),oI.Events.appUnloaded.on(sI)),dI(),Ss(t.source,{status:"success",type:"connect"},n),bs("selection.js")&&(rI.log("Designer Modules already loaded."),Ss({type:"ready"},n)),oI.Events.designerLaunched.trigger())}function lI(e,t){rI.buffers.unlock(),v.designer&&(v.designer=null,delete v.designer),e&&Ss(e,{type:"unload"},t)}function pI(e,t){var n;aI&&(n={token:aI,type:"pendo-designer-launch::set-token"},t.source.postMessage(n,t.origin),aI=undefined)}function hI(e,t){var n,t=t.data.token;t&&(aI=t,hs("pendo-designer-launch::get-token",pI),n=t.DADesigner?"da-designer":"in-app-designer",n={lookaside:t.baseUrl,host:t.host,target:t.target||"latest",DADesigner:!!t.DADesigner,gcsBucket:t.gcsBucket||n,forceNativeDesigner:!!t.forceNativeDesigner,sidebarDesigner:!!t.sidebarDesigner},rI.designerv2.launchInAppDesigner(n))}function fI(e,t){var n=t.data.config.preferredAgentInstallType;n&&n!==De()?rI.log("Skipping preview launch due to agent install type mismatch."):(n=rI._.extend({},t.data.config,{origin:t.origin}),Wo()&&(n.apiKey=rI.apiKey),oI.store.dispatch("preview/exitDesignerPreview"),oI.store.dispatch("preview/start",n),Af(window)&&(t.source.postMessage({type:"pendo-preview::ready",apiKey:rI.apiKey,accountId:rI.accountId},t.origin),$v(),oI.store.dispatch("frames/startPreview")))}var gI,mI,vI,yI,bI,II="__sg__",wI=(mI="promotedAgentMetadataConfigurations",vI=[],yI={},bI={},{name:"PromoteMetadata",initialize:function(e,t){if(vI=(gI=t).ConfigReader.get(mI),bI={},gI.agentStorage.registry.addLocal(II),oi())try{yI=JSON.parse(gI.agentStorage.read(II))||{}}catch(n){_I()}vI&&vI.length&&(gI.Events.on("metadata",AI),gI.Events.on("eventCaptured",RI),gI.Events.on("identify",EI))},teardown:function(){gI.Events.off("metadata",AI),gI.Events.off("eventCaptured",RI),gI.Events.off("identify",EI)},getPromotedMetadata:function(){return vI},hasPromotedMetadataKind:CI,setSchemaGroup:AI,getSchemaGroup:SI,resetSchemaGroup:TI,resetCachedSchemaGroup:_I});function CI(t){return y.some(vI,function(e){return e.kind===t})}function SI(){return bI}function AI(e){var t;e?(e=e.data[0].options)&&(t=e):t=bp(),bI=function(r){oi()&&(yI=function(e){return y.mapObject(e,function(t,e){var n={};return Object.keys(t).forEach(function(e){n[e.replace("agent__","")]=t[e]}),n})}(yI=JSON.parse(gI.agentStorage.read(II))||{}));var o=bI;y.each(["visitor","account","parentAccount"],function(e){var t=CI(e),n=!y.isEmpty(r[e]),i=e.toLowerCase()+"metadata";t&&(!y.isEmpty(yI)&&y.isEmpty(Hs.get())&&(o[i]=xI(yI[i],e)),n)&&(t=xI(r[e],e),y.isEmpty(t)||(o[i]=Wt(Wt({},o[i]),t)))}),oi()&&gI.agentStorage.write(II,JSON.stringify(o),undefined,!1,!0);return o}(t)}function EI(e){e=e.data[0];y.get(e,"wasCleared")&&(gI.agentStorage.clear(II),TI())}function TI(){bI={}}function _I(){yI={}}function xI(e,i){var r={};return e&&y.each(e,function(e,t){var n=t.toLowerCase();Boolean(y.find(vI,function(e){return e.fieldName===n&&e.kind===i}))&&(r["agent__"+n]=e)}),r}function RI(e){e=e.data[0];e&&(y.isEmpty(bI)&&AI(),y.isEmpty(bI)||("track"===e.type?e.props.__sg__=bI:(e.hasOwnProperty("eventProperties")||(e.eventProperties={}),e.eventProperties.__sg__=bI)))}function kI(e,t,n){this.element=e,this.method="element"==t?"click":"hover"==t?"mouseover":t,this.step=n,this.guide=n.getGuide()}kI.prototype.add=function(){0===y.indexOf(this.guide.steps,this.step)&&!kI.shouldAttachHandler(this.guide,this.method)||Gu(this.guide)&&!Du(this.guide)||this.setupElementEvent(this.element,this.method)},kI.prototype.remove=function(){this.teardownElementEvent(this.element,this.method)},kI.prototype.setupElementEvent=function(e,t){this.advanceFn||(this.advanceFn=y.compose(y.bind(this.teardownElementEvent,this,e,t),y.bind(this.step.advance,this.step))),kI.attach(this.step,e,t,this.advanceFn)},kI.prototype.teardownElementEvent=function(e,t){I.info("detach onGuideAdvanced",{contexts:["guide"]}),yu(e,t,this.advanceFn,!0),this.step.removeTrigger(this)},kI.shouldAttachHandler=function(e,t){return!e.isActivatedByEvent(t)||K0.activates(e)||e.attributes.activation.selector!==e.steps[0].elementPathRule&&!!e.attributes.activation.selector};var OI=null,NI=function(){return $u()?Pu:Fu},MI=function(e){return"#_pendo_g_"+e.id},LI=function(e,t){OI=null;var n,i,r,o,e=Aa(e);return 0===e.height&&0===e.width?null:(n=t.guideElement,o=t.attributes.height,i=t.attributes.width,r=t.attributes.layoutDir,n.addClass(NI()),o=zI(e,o,i,r),t&&(t.dim=o),n.css({width:o.width,height:o.height,left:o.left,top:o.top}),e.fixed&&n.css({position:"fixed"}),R("._pendo-guide-container_",n).addClass(o.arrowPosition).css({top:o.content.top,left:o.content.left,width:o.content.width,height:o.content.height}),FI(n[0],o),n[0])},FI=function(e,t){var n=["top","right","bottom","left"],i="_pendo-guide-arrow-",r=i+"border-",o=t.arrowPosition,a=y.chain(n).filter(function(e){return e!==o}).map(function(e){return"border-"+e+"-width:"+v.TOOLTIP_ARROW_SIZE+"px;"}).value().join(""),s=R("div._pendo-guide-arrow_",e).remove().findOrCreate("<div class='_pendo-guide-arrow_'></div>"),d=R("div._pendo-guide-arrow-border_ ",e).remove().findOrCreate("<div class='_pendo-guide-arrow-border_'></div>");y.each(n,function(e){s.removeClass(i+e+"_").removeClass(e),d.removeClass(r+e+"_").removeClass(e)}),s.addClass(i+o+"_").addClass(o).css(a+"top:"+t.arrow.top+"px;left:"+t.arrow.left+"px;"),d.addClass(r+o+"_").addClass(o).css(a+"top:"+t.arrow.border.top+"px;left:"+t.arrow.border.left+"px;"),R(e).append(s).append(d)},PI=function(e,t){t===undefined&&(t=wu),e.element=zu(e);var n=e.element;if(!n)return I.info("No element found for step: "+e.id),null;Va(n);var i=LI(n,e);return null===i?null:(i.id=v.getTooltipDivId(e),R(i).appendTo(Uu()),t.push(i),l(i,"mouseover",y.partial(R.addClass,i,"mouseover")),l(i,"mouseout",y.partial(R.removeClass,i,"mouseover")),Yu(n,i),$I(e),n)},GI=null,DI=null;var BI=null,WI={top:"north",left:"east",bottom:"south",right:"west"},$I=function(e){try{var t,n,i,r,o,a,s,d;e.attributes&&e.attributes.blockOutUI&&e.attributes.blockOutUI.enabled&&(t=e.attributes.blockOutUI,(n=[]).push(e.element),i=tl(n=n.concat(y.compact(y.flatten(y.map(t.additionalElements,function(e){return y.toArray(R(e))}))))),o={top:r=t.padding||0,left:r,bottom:r,right:r},s=el(a=Qc(),i,o),h=i,f=!y.isEqual(h,GI),GI=h,f||(l=a,p=!y.isEqual(l,DI),DI=l,p)||(u=s,c=!y.isEqual(u,BI),BI=u,c))&&(d={"z-index":t.zindex||1e4,position:"fixed"},t.bgColor&&(d["background-color"]=t.bgColor),t.opacity&&(d.opacity=t.opacity),y.each(s,function(e,t){t=WI[t],e=y.extend({},e,d),t=R("div._pendo-guide-tt-region-block_._pendo-region-"+t+"_")[0]||UI(t),R(t).css(e)}))}catch(g){I.info("Failed to add BlockOut ui",{contexts:["error"]})}var u,c,l,p,h,f},UI=function(e){e=R(document.createElement("div")).addClass("_pendo-guide-tt-region-block_").addClass("_pendo-region-"+e+"_");R("body").append(e)},jI=function(e){var t=y.isEqual(e,OI);return OI=e,!t},zI=function(e,t,n,i){var r=v.TOOLTIP_ARROW_SIZE,o={arrow:{border:{}},content:{top:r,left:r}},a=wa();return o.width=Math.min(n,a.width),o.height=t,o.content.width=o.width-2*r,o.content.height=o.height-2*r,o=ZI(o,e,a,i=i||"auto"),o=VI(o,e,a,i),o=YI(o,e,a)},ZI=function(e,t,n,i){return e.arrow.hbias=yl(t,n,i),e},VI=function(e,t,n,i){var r;return i&&"DEFAULT"!=i&&"auto"!=i&&(e.arrowPosition=i),e.arrowPosition||(i=t.top-Yo(),t=(r=t.left-Ho())+t.width,i<n.height/3?e.arrowPosition="top":i>2*n.height/3||"center"==e.arrow.hbias?e.arrowPosition="bottom":r<e.width&&n.width-t<e.width?e.arrowPosition="top":e.arrowPosition=e.arrow.hbias),e},YI=function(e,t,n){var i,r,o,a=e.height,s=e.width;return nt()?it(e,t):("top"==e.arrowPosition||"bottom"==e.arrowPosition?(i=0,"top"==e.arrowPosition?(e.top=t.top+t.height,e.arrow.top=$e(9,6)?6:2,i=-1):"bottom"==e.arrowPosition&&(e.top=t.top-a,e.arrow.top=a-v.TOOLTIP_ARROW_SIZE-1,e.arrow.top+=$e(9,6)?6:0,e.arrow.top+=8==We?-1:0,i=1),r=10+v.TOOLTIP_ARROW_SIZE,o=s-3*v.TOOLTIP_ARROW_SIZE-10,e.arrow.hbias==gl?(e.left=t.left+t.width/2-(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=r):e.arrow.hbias==ml?(e.left=t.left-s+t.width/2+(10+2*v.TOOLTIP_ARROW_SIZE),e.arrow.left=o):(e.left=t.left+t.width/2-s/2,e.arrow.left=s/2-v.TOOLTIP_ARROW_SIZE),!1!==e.arrow.floating&&(n=e.left+s-n.width,0<(n-=Math.max(0,e.arrow.left+n-o))&&(e.left-=n,e.arrow.left+=n),o=-e.left,0<(o-=Math.max(0,r-(e.arrow.left-o))))&&(e.left+=o,e.arrow.left-=o),e.arrow.border.top=e.arrow.top+i,e.arrow.border.left=e.arrow.left):(e.arrow.hbias==gl?(e.left=t.left+t.width,e.arrow.left=1,e.arrow.left+=$e(10,6)?5:0,e.arrow.border.left=e.arrow.left-1):e.arrow.hbias==ml&&(e.left=Math.max(0,t.left-s),e.arrow.left=s-v.TOOLTIP_ARROW_SIZE-1,e.arrow.left+=$e(10,6)?5:0,e.arrow.left+=7==We&&6<=Ve?1:0,e.arrow.border.left=e.arrow.left+1),e.top=t.top-a/2+t.height/2,e.arrow.top=a/2-v.TOOLTIP_ARROW_SIZE,e.arrow.border.top=e.arrow.top),e)},HI=430,KI=200,XI=15;function JI(e){var t;return"tooltip"===this.type&&((t=this).attributes.height=t.attributes.height||v.TOOLTIP_DEFAULT_HEIGHT,t.attributes.width=t.attributes.width||v.TOOLTIP_DEFAULT_WIDTH,t.attributes.layoutDir=t.attributes.layoutDir||"DEFAULT",this.getTriggers=function(e){var t=this,n=t.element||zu(t);return!n&&e?[]:(e=(t.advanceMethod||"").split(","),this.triggers=y.map(e,function(e){return new kI(n,e,t)}),this.triggers)},this.removeTrigger=function(e){this.triggers=y.without(this.triggers,e),0===this.triggers.length&&(this.triggers=null)},this.canShow=function(){return!Sm(t)&&!!e.canShowOnDevice()&&!t.isShown()&&t.canShowOnPage(Ym())&&Em(t)},this.after("render",function(){PI(this,this.elements)&&(y.each(this.getTriggers(),function(e){e.add()}),bl.attachScrollHandlers(this,this.onscroll))}),this.reposition=function(){var e=this.attributes.width,t=this.attributes.height,n=this.attributes.layoutDir,i=this.guideElement,r=R("._pendo-guide-container_",i),o=Aa(this.element),t=zI(o,t,e,n);r.removeClass("top right bottom left").removeClass("_pendo-guide-container-top_ _pendo-guide-container-right_ _pendo-guide-container-bottom_ _pendo-guide-container-left_").addClass(t.arrowPosition).addClass("_pendo-guide-container-"+t.arrowPosition+"_"),R("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),FI(i,t),i.css({top:t.top,left:t.left,height:t.height,width:t.width,position:o.fixed?"fixed":""}),this.dim=t,$I(this)},this.onscroll=function(e){za(e.element)?(e.reposition(),ba(e.elements[0],"display:block")):ba(e.elements[0],"display:none")},this.teardownElementEvent=function(){y.each(this.triggers,function(e){e.remove()})},this.after("hide",function(){R("._pendo-guide-tt-region-block_").remove(),BI=DI=GI=null})),this}var qI=function(e,t){var n=!!R("._pendo-backdrop_")[0];return y.get(t,"overlayDiv[0]")||(t.overlayDiv=R(document.createElement("div")).addClass("_pendo-backdrop_")),!1==n&&(t.elements.push(t.overlayDiv[0]),t.overlayDiv.appendTo(Uu())),nt()&&t.overlayDiv.css({height:"100%",width:"100%",position:"absolute"}),e&&R(t.overlayDiv).addClass("_pendo-onboarding_"),t.overlayDiv},QI=function(e){var t=e.guideElement,n=v.TOOLTIP_ARROW_SIZE,i=e.attributes.height,e=e.attributes.width,e=Math.floor(e/2),i=Math.floor(i/2);t.addClass("_pendo-guide-lb_").css({top:"50%",left:"50%","margin-top":-i,"margin-left":-e}),R("._pendo-guide-container_",t).css({bottom:n,right:n}),nt()&&t.css({position:"absolute"})},e1=function(e,t){t===undefined&&(t=wu),e.element=zu(e),QI(e);var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=(qI(n,e),e.guideElement);t.push(n[0]),n.appendTo(Uu())},t1=function(e,t){t===undefined&&(t=wu),e.element=zu(e),e.guideElement.addClass("_pendo-guide-mobile-lb_");var n=!!e.getGuide()&&e.getGuide().isOnboarding(),n=qI(n,e),e=e.guideElement,i=v.TOOLTIP_ARROW_SIZE,i=(e.css({width:"",height:""}),R("._pendo-guide-container_",e).css({bottom:i,right:i}));function r(e){e.preventDefault()}R("._pendo-close-guide_",e).remove().prependTo(i),e.appendTo(Uu()),t.push(e[0]),l(n[0],"touchmove",r),l(e[0],"touchmove",r)};function n1(){var e=this;return/lightbox/i.test(e.type)&&(e.attributes.height=e.attributes.height||v.LB_DEFAULT_HEIGHT,e.attributes.width=e.attributes.width||v.LB_DEFAULT_WIDTH,e.after("render",function(){($u()?t1:e1)(e,e.elements)}),e.reposition=function(){$u()||e.guideElement.css({"margin-left":-Math.floor(e.attributes.width/2),"margin-top":-Math.floor(e.attributes.height/2)})}),e}var i1=500,r1="_pendo-guide-banner_";function o1(){var n=this;return"banner"===n.type&&(n.attributes.height=n.attributes.height||i1,n.attributes.position=n.attributes.position||"top",n.after("render",function(){var e=n.guideElement,t=v.TOOLTIP_ARROW_SIZE;e.css({width:""}).addClass(r1).addClass("_pendo-guide-banner-"+n.attributes.position+"_"),Wu()||e.addClass("_pendo-in_"),R("._pendo-guide-container_",e).css({bottom:t,right:t}),n.element=zu(n),n.elements.push(e[0]),e.appendTo(Uu())})),n}function a1(t){var n=this,e="whatsnew",i="_pendo-guide-whatsnew-seen_",r="active",o=1e3;return n.type===e&&(y.extend(n,{isShown:y.constant(!1),launch:d,onShown:d,render:function(){var e=n.guideElement,t=n.attributes.height;e&&e.html()||(e=R(document.createElement("div")).attr("id",Rm(n)).addClass("_pendo-guide-whatsnew_").html(n.getContent()),y.isNumber(t)&&!n.attributes.autoHeight&&e.height(t),n.seenState===r&&e.addClass(i),n.guideElement=e)},seen:s}),y.extend(t,{addToLauncher:function(){var e=n.guideElement;e&&!ka(e[0])&&(R("._pendo-launcher_ #launcher-"+n.guideId).html("").append(e),Fc.runCustomScripts(n,t))},isReady:a}),n.after("show",s)),n;function a(){return!!n.guideElement}function s(){Wu()||a()&&n.seenState!==r&&function(e){{var t,n;if(za(e,/(auto|scroll|hidden)/))return(t=La(e))?(t=Oa(t),e=Oa(e),n=t.top+Math.floor(t.height/3),e.bottom<=t.bottom||e.top<=n):1}}(n.guideElement[0])&&(Pm(n.guideId,n.id,E(),e,t.language,{last_updated_at:n.lastUpdatedAt}),n.seenState=r,y.delay(function(){n.guideElement.addClass(i+" out")},y.isNumber(n.attributes.seenDelay)?n.attributes.seenDelay:o))}function d(){}}var s1="_pendo-launcher-searching_",d1="._pendo-launcher-search-box_ input";var u1,c1=function(e){return e&&y.isFunction(e.shouldBeAddedToLauncher)?e.shouldBeAddedToLauncher():e&&e.launchMethod&&0<=e.launchMethod.indexOf("launcher")};function l1(){var e;return function(){var e;if(v.guideWidget)return(e=v.guideWidget.data)&&e.enableSearch}()&&(e=R(d1)[0])&&0<(e=e.value).length?(e=mt.call(e),[].concat(y.compact(e.split(" ")))):[]}function p1(e){if(!m.get("disablePrefetch"))return C.all(y.map(e,function(e){return e.fetchContent()}))}function h1(e,t){return I.info("doing search on "+t,{contexts:["launcher","search","guides"]}),e=e||k,t&&0!==t.length?y.chain(e).filter(c1).map(function(e){return e.searchFor(t)}).compact().sortBy(function(e){return y.indexOf(["tag","name","content"],e.field)}).pluck("guide").value():e}var f1=function(){var e=Lu();if(Ku()){if(v.guideWidget&&v.guideWidget.enabled){var t=S1(e),n=!0;if(v.guideWidget&&y.isFunction(v.guideWidget.update))v.guideWidget.update(t,n)}}else{M1();t=Tu(e),n=A1(S1(t));n!==u1&&A.dispatch("frames/changeGuideList",t),u1=n}},g1="launcher-closed",m1=null,v1=null,y1=!(kI.attach=function(e,t,n,i){if(e){for(var r=kI.handlers=kI.handlers||{},o=r[e.id]=r[e.id]||[],a=0;a<o.length;++a){var s=o[a];t===s[0]&&n===s[1]&&(yu(t,n,s[2],!0),o.splice(y.indexOf(o,s),1),a--)}o.push([t,n,i]),yu(t,n,i,!0),l(t,n,i,!0)}}),b1="_pendo-launcher-active_",I1=null,w1=function(){return""};function C1(e,t){w1=t}function S1(e){var t,e=y.filter(e||k,c1);return e=e,0===(t=l1()).length?e:(t=y.map(t,y.partial(h1,e)),y.union.apply(y,t))}function A1(e){return St(y.map(e,function(e){var t=e.isWhatsNew()?[]:y.pluck(e.steps,"seenState");return{id:e.id,seenState:t}}))}function E1(e){var n=this,t=e.launchType||"badge",i=(y.extend(n,{show:function(){"badge"===t&&R(n.element).css("display: ;")},hide:function(){R(n.element).css("display: none;")},wrap:function(){var e=n.element;{var t;e&&/^img$/i.test(e.nodeName)&&(t=R(document.createElement("div")).addClass(e.className).append(e).appendTo(Uu()),e.className="",n.element=t[0])}},dispose:function(){R.removeNode(n.element)},setActive:function(e){e?R(n.element).addClass(b1):R(n.element).removeClass(b1)}}),e),e=i.position||"bottom-right",r=document.createElement("img");R(n.element=r).addClass("_pendo-launcher-badge_").addClass("_pendo-launcher-badge-"+e+"_"),i.launcherBadgeUrl&&(r.src=Sc(i.launcherBadgeUrl)),r.onerror=function(e){I.info("[Agent] Error! Unable to load guide center image "+i.launcherBadgeUrl),I.critical("ERROR in when attempting to render guide center badge image",{imgSrc:i.launcherBadgeUrl})},nt()&&(l(r,"mouseover",function(e){R(r).addClass("_pendo-launcher-badge-active_")}),l(r,"mouseout",function(e){R(r).removeClass("_pendo-launcher-badge-active_")}),R(r).css({position:"absolute"})),Uu().appendChild(r)}function T1(e){function n(){return"element"===e.launchType&&e.launchElement?e.launchElement:"._pendo-launcher-badge_"}function t(e){var e=ro(e),t=n();R(e).closest(t).length&&(D1()?w.write(g1,"yes",864e6):v.guideWidget.position(e),U1())}v.guideWidget.removeCountBadge=function(){R("._pendo-launcher-whatsnew-count_").remove()},e&&e.elementMatch&&(e.launchElement=e.elementMatch.selection),y.extend(this,{getLauncherTarget:function(){return R(n())[0]},dispose:function(){yu(document,"click",t),e&&e.whatsnew&&e.whatsnew.enabled&&R("._pendo-launcher-whatsnew-count_").remove()}}),l(document,"click",t)}function _1(){var n,s="bottom-right",d="bottom-left";return this.update=function(e,t){t=t?e:S1(e),e=A1(t)+St(l1());return e!==n&&(n=e,this.updateLauncherContent(t)),O1(),0<t.length},this.updateLauncherContent=P1,this.guideStatus=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":"not-started"},this.render=function(){var e=this.data||{},t=(m1=new E1(e),e.height||310),n=(e.enableSearch&&(t+=nt()?50:39),this&&!this.hidePoweredBy&&(t+=40),e.addHeight&&(t+=e.addHeight),this.height=t,e.width||330),i=(e.addWidth&&(n+=e.addWidth),this.width=n,R(document.createElement("div")).addClass("_pendo-launcher_")),r=(v1=i[0],Aa(m1.element)),r=zI(r,t,n),o=(i.css({width:n,height:t}),v.TOOLTIP_ARROW_SIZE),n=R(document.createElement("div")).addClass("_pendo-guide-container_ "+r.arrowPosition).addClass("_pendo-guide-container-"+r.arrowPosition+"_").css({top:o,left:o,width:n-2*o,height:t-2*o}).appendTo(i),t=F1(),o=Sc(x1(this.template(t))),t=R(document.createElement("div")).addClass("_pendo-guide-content_").html(o).appendTo(n);e.addUISection&&e.addUISection(i[0]),im(i[0],function(){W1(),w.write(g1,"yes",288e5)}),t.on("click",function(e){var t=R(ro(e)).closest("._pendo-launcher-item_");t&&t.length&&(t=Ou((t=/^launcher-(.+)$/.exec(mt.call(t.attr("id"))))&&t[1]))&&!t.isWhatsNew()&&(Lm(t.steps[0],"launcher"),W1(),bu(e))}),nt()&&(R("._pendo-launcher-header_",i).css({padding:"10px","margin-right":"10px","margin-left":"10px"}),R("._pendo-launcher-footer_",i).css({"border-top":"1px solid #bbb"}),i.css({position:"absolute"})),i.find("[pendo-style]").each(function(){var e=this.getAttribute("pendo-style");R(this).css(e)}),i.appendTo(Uu()),y.isFunction(this.script)&&this.script(this),e.autoHeight&&e.autoHeight.enabled&&!$e(9,6)&&(o=e.autoHeight.offset||100,i.css({height:"calc(100% - "+o+"px)",maxHeight:e.height,minHeight:e.height/2}),R("._pendo-guide-container_."+r.arrowPosition).css({maxHeight:e.height-30,minHeight:e.height/2-30,height:"calc(100% - 30px)"}))},this.position=function(e){var t,n,i,r,o,a;e&&(t=this.data,e=Aa(e),n=zI(e,this.height,this.width),i=R(v1),"badge"===(r=t.launchType||"badge")?(o=t.position,y.indexOf(a=[s,d,"top-left","top-right"],t.position)<0&&(o=s),y.each(a,function(e){i.removeClass("_pendo-launcher-"+e+"_")}),i.addClass("_pendo-launcher-"+o+"_"),n.arrow=n.arrow||{},n.arrowPosition=y.contains([s,d],o)?"bottom":"top",n.arrow.hbias=y.contains([d,"top-left"],o)?"left":"right",n.arrow.floating=!1):"element"===r&&i.css({top:n.top,left:n.left,height:n.height,width:n.width,position:e.fixed?"fixed":"absolute"}),R("._pendo-guide-arrow_,._pendo-guide-arrow-border_",i).remove(),YI(n,e,{width:Infinity,height:Infinity}),FI(i[0],n),i.find("._pendo-guide-container_").removeClass("top left bottom right").addClass(n.arrowPosition))},this.toggle=U1,this}function x1(e){return e=y.isString(e)?e.replace(/\s+(style)=/gi," pendo-style="):e}function R1(e,t){e.contentHostUrl&&(e.contentHostUrl=(n=e.contentHostUrl,i=location,(r=m.getLocalConfig("contentHost"))&&(n=(n=n.replace(/^pendo-static-\d+\.storage\.googleapis\.com$/,r).replace(/^pendo-\w+-static\.storage\.googleapis\.com$/,r).replace(/^cdn\.pendo\.io$/,r)).replace(/^https?:/,"").replace(/^\/\//,""),!/\./.test(n))&&!/^localhost/.test(n)&&/^\//.test(n)?i.host+n:n)),I1=new T1(e);var n,i,r=_1.create(v.guideWidget);return y.isFunction(r.template)||(r.template=e.template?y.template(e.template):w1),r.render(),r.position(I1.getLauncherTarget()),t&&r.toggle(),r}_1.create=function(e){return y.reduce(_1.behaviors,function(e,t){return t.call(e)},e)},_1.behaviors=[rf,_1,yc.Launcher,function(){var t={text:"",highlight:function(e){return t.text?(e||"").replace(new RegExp(t.text,"gi"),"<strong>$&</strong>"):e},clear:function(){R(d1).each(function(){this.value=""})}};return this.data&&this.data.enableSearch&&this.data.enableSearch&&(this.data.search=t,v.disableGuideCenterContentSearch||this.before("update",p1),this.before("update",function(){t.text=l1().join(" ");var e=R("._pendo-launcher_");t.text?e.addClass(s1):e.removeClass(s1)})),this},function(){var n=this;{var i;n.data&&n.data.onboarding&&(i=n.onboarding=n.onboarding||{},n.before("update",function(e){var e=y.filter(e,Rb),t=y.filter(e,function(e){return"complete"==n.guideStatus(e)}),e=i.total=e.length,t=(i.percentComplete=0<e?Math.round(t.length/e*100):0,R("._pendo-launcher_,._pendo-launcher-badge_"));e?(t.addClass("onboarding"),t.addClass("_pendo-launcher-onboarding_")):(t.removeClass("onboarding"),t.removeClass("_pendo-launcher-onboarding_"))}),n.getOnboardingState=function(e){return e.isComplete()?"complete":e.isInProgress()?"in-progress":e.isNotStarted()?"not-started":null})}return n},function(){var n=this,i=R(document.createElement("div")).addClass("_pendo-launcher-whatsnew-count_");n.data&&n.data.whatsnew&&n.data.whatsnew.enabled&&(n.before("updateLauncherContent",function(e){e=y.filter(e,function(e){return e.isWhatsNew()});e.sort(t),n.data.whatsnew.total=e.length,n.data.whatsnew.guides=e}),n.after("update",function(e){var t=n.data.whatsnew.guides,t=(y.each(t,function(e){e.show()}),y.find(t,function(e){if(!e.isReady())return!0;e.addToLauncher()}),y.filter(t,function(e){return"active"!==e.steps[0].seenState}).length);t!==n.data.whatsnew.unseenCount&&(i.html(t).css({display:t?"":"none"}),n.data.whatsnew.unseenCount=t,R("span._pendo-launcher-whatsnew-count_").text(n.data.whatsnew.unseenCount))}),n.after("render",function(){L1()?i.appendTo(this.data.launchElement):(m1.wrap(),i.appendTo(m1.element))}));return n;function t(e,t){var n=function(e,t){e=e.showsAfter||e.publishedAt||0;return(t.showsAfter||t.publishedAt||0)-e}(e,t);return 0===n?(t=t,e=(e=e).name.toLowerCase(),(t=t.name.toLowerCase())<e?1:e<t?-1:0):n}}];var k1=function(){v1&&(R.removeNode(v1),v1=null),I1&&(I1.dispose(),I1=null),m1&&(m1.dispose(),m1=null)},O1=function(){(!L1()&&(B1()||0<l1().length)?N1:M1)()},N1=function(){m1&&m1.show()},M1=function(){L1()||W1(),m1&&m1.hide()},L1=function(){return!(!v.guideWidget||!v.guideWidget.data||"element"!==v.guideWidget.data.launchType)},F1=function(e){var t=bp(),t=y.extend({hidePoweredBy:!1,guides:[],guide:{},step:{},metadata:wt(t)},v.guideWidget);return t.data=y.extend({},t.data),e&&(t.guides=e),t};function P1(e){var t=v.guideWidget.template||w1,e=F1(e),e=R(document.createElement("div")).html(x1(t(e))),n=e.find("._pendo-launcher-guide-listing_"),t=e.find("._pendo-launcher-footer_").html(),e=e.find("._pendo-launcher-search-results_").html();R("._pendo-launcher_ ._pendo-launcher-guide-listing_").each(function(e,t){R(e).html(n.eq(t).html())}),R("._pendo-launcher_ ._pendo-launcher-footer_").html(t),R("._pendo-launcher_ ._pendo-launcher-search-results_").html(e)}var G1=y.compose(O1,function(e,t){var n,i,r,o;c1(e)&&(n=R("._pendo-launcher_ ._pendo-launcher-guide-listing_")[0])&&(e=(o=R("#launcher-"+e.id)).length?o[0]:(e=e,R(i=document.createElement("div")).addClass("_pendo-launcher-item_"),R(i).attr("id","launcher-"+e.id),(r=document.createElement("a")).href="#",r.innerHTML=e.name,i.appendChild(r),i),o=0<o.length,y.isNumber(t)&&(r=R("._pendo-launcher-item_"))[t]?e.id!=r[t].id&&n.insertBefore(e,r[t]):n.appendChild(e))}),D1=function(){return R(v1).hasClass(b1)},B1=function(){return 0<R("._pendo-launcher-item_").length},W1=function(){var e;v1&&(e=R(v1))&&e.hasClass(b1)&&(e.removeClass(b1),m1)&&m1.setActive(!1)},$1=function(){var e;v1&&(e=R(v1))&&!e.hasClass(b1)&&(e.addClass(b1),m1)&&m1.setActive(!0)},U1=function(){v1&&!y1&&(D1()?W1:$1)()};var j1=function(){try{var e=v.guideWidget||{},t=e.data||{},n=t.device||{desktop:!0,mobile:!1,iframe:!1};k1(),!$u()&&!n.desktop||$u()&&!n.mobile||As()&&!n.iframe||e.enabled&&(R1(t),M1())}catch(i){I.critical("ERROR while initializing launcher",{error:i})}},z1=function(e){e.defaultLauncher=C1,e.toggleLauncher=U1,e.showLauncher=$1,e.hideLauncher=W1,e.removeLauncher=k1,e.initLauncher=j1,e.createLauncher=R1,e._addGuideToLauncher=G1,e.launcherToolTipDiv=v1},Z1=function(){j1()},V1=function(){var e;(e=v).designer&&(e.designer.createLauncher=R1,e.designer.removeLauncher=k1,e.designer.addGuideToLauncher=G1,e.designer.updateLauncherContent=P1)},Y1=function(){var e;(e=v).debugging&&(e.debugging.getLauncherGuides=S1)},H1=function(e){return i=v.guideWidget,e=e,r=i&&i.data,e=y.filter(e,function(e){e=y.first(e.steps);return e&&"launcher"===e.type}),(e=y.first(y.sortBy(e,function(e){return-e.lastUpdatedAt})))&&r&&(e=y.first(e.steps),y.extend(r,y.pick(e,"contentUrl","contentUrlCss","contentUrlJs"),e.attributes),y.defaults(r,{whatsnew:{},knowledgebase:{}}),r.id=e.guideId+e.id),n=(t=i)&&t.data||{},!0!==m.get("preventCodeInjection")&&(n.contentUrlJs||n.contentUrl)?uc.verify(n).then(function(){return xc.load(n)}).then(function(e){return n.template=e.content,y.extend(t,e)}):C.resolve();var t,n,i,r},K1=function(e,t){z1(e),t.Events.on("guidesLoaded",Z1),t.Events.on("designerLaunched",V1),t.Events.on("debuggerLaunched",Y1),t.GuideLoop.addUpdatePhase(f1),pv.push(H1),t.agentStorage.registry.addLocal(g1)},X1=function(e,t){var n;n=H1,0<=(n=y.indexOf(pv,n))&&pv.splice(n,1),t.GuideLoop.removeUpdatePhase(f1),t.Events.off("guidesLoaded",Z1),t.Events.off("designerLaunched",V1),t.Events.off("debuggerLaunched",Y1)};ry.Extensions.API.addTopic("Launcher",{addBehavior:function(e){_1.behaviors.push(e)}});var J1,q1,Q1,ew={name:"P1Guides",initialize:function(e,t){var n;q1=t,J1=e.dom,Q1=[JI,n1,o1,a1,iw,rw,nw,tw],-1<y.indexOf(Cc.behaviors,JI)||(n=y.indexOf(Cc.behaviors,Lb),Cc.behaviors.splice.apply(Cc.behaviors,[n,0].concat(Q1)),t.Events.guideLoopStopped.on(M1),e.TOOLTIP_DEFAULT_WIDTH=HI,e.TOOLTIP_DEFAULT_HEIGHT=KI,e.TOOLTIP_ARROW_SIZE=XI,e._showElementGuide=PI,e._createTooltip=LI,e._get_tooltip_dimensions=zI,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e._showLightboxGuide=e1,K1(e,t))},teardown:function(){X1(0,q1),q1.Events.guideLoopStopped.off(M1),Q1.forEach(function(e){e=y.indexOf(Cc.behaviors,e);0<=e&&Cc.behaviors.splice(e,1)}),Q1=[]}};function tw(){var o=this;return"tooltip"!==o.type||o.domJson||(o.checkPlacement=function(){var e,t,n,i,r;r=Aa((e=o).element||zu(e)),$I(e),jI(r)&&(n=e.attributes.height,i=e.attributes.width,t=e.attributes.layoutDir,n=zI(r,n,i,t),(i=R(MI(e))).css({top:n.top,left:n.left,position:r.fixed?"fixed":""}),FI(i,n))}),o}function nw(){var i=this;return i.attributes&&i.attributes.autoHeight&&(i.after("render",function(){i.guideElement&&i.guideElement.length&&(i.resize(),i.attachEvent(i.guideElement[0],"load",function(){i.resize()}))}),i.resize=function(){var e,t=v.TOOLTIP_ARROW_SIZE,n=i.guideElement;n&&(e=J1("._pendo-guide-container_",n),"tooltip"==i.type||nt()&&"lightbox"==i.type?e.css({width:i.attributes.width-2*t,height:""}):e.css({right:t,bottom:""}),i.attributes.height=e.height()+2*t,n.height(i.attributes.height),i.reposition())}),i}function iw(e){var t=this;return t.domJson||t.domJsonpUrl||t.after("render",function(){t.guideElement&&t.guideElement.length&&im(t.guideElement[0],function(){e.isOnboarding()&&!confirm("Are you sure you want to stop this tutorial?")||vm(t)})}),t}function rw(){var e=this;return e.hideCredits||e.domJson||e.domJsonpUrl||Bu(e.guide)||e.after("render",function(){Cm(e.guideElement[0])}),e}var ow,aw,sw={name:"Branding",initialize:function(e,t){ow=e,(aw=t).ConfigReader.get("isPendoFree")&&aw.Events.on("guideSeen",dw)},teardown:function(){aw.Events.off("guideSeen",dw)},addBranding:uw};function dw(e){uw(ow,e)}function uw(e,t){var n,i,r,t=t.data[0].props;t.step_poll_types&&-1<t.step_poll_types.indexOf("NPSRating")&&(e=-1<(t=e.findGuideById(t.guide_id).steps[0].guideElement[0].lastElementChild).dataset.verticalAlignment.indexOf("Bottom"),n=""!==t.style.width,(i=document.createElement("a")).href="https://www.pendo.io/pendo-free/nps?utm_source=pendo_app&utm_medium=branded-nps&utm_campaign=free-branded-nps",i.target="_blank",(r=document.createElement("img")).setAttribute("src",aw.getAssetUrl("img/nps-branding.png")),i.appendChild(r),i.style.display="inline-block",(r=document.createElement("div")).style.lineHeight=0,r.style.padding="8px",e&&(r.style.position="absolute",r.style.bottom="100%"),n&&(r.style.paddingLeft=0),r.append(i),t.append(r))}fw="automation",gw=250,mw=500,yw=10;var cw,lw,pw,hw,fw,gw,mw,vw,yw,bw={name:"ActionAutomation",automationQueue:void(vw=0),initialize:function(e,t){pw=t,cw=(lw=e)._,this.automationQueue=[],t.EventRouter.registerAction(fw,e._.bind(Iw,this))},teardown:function(){pw.EventRouter.deregisterAction(fw),this.automationQueue=[]},guideActivity:Iw,getAutomationFromGuide:function(i,e){return cw.reduce(e,function(e,t){var n=cw.find(i,function(e){return e.id===t});return n?e.push(n):lw.log("could not find automation for "+t,"debug"),e},[])},getAutomationConfigs:function(e){if(!e||e.length<=0)return[];if(!hw)return[];var t=hw.guide,n=hw.step;if(!t||!n)return[];n=t.automations;if(!n||!n.length)return[];n=this.getAutomationFromGuide(n,e),e=n[n.length-1];if(this.isAutomationInQueue(e))return lw.log("Automation is already in queue autoId: "+e.id+", guideId: "+t.id,"debug"),[];return n},getTarget:function(e){e=e.target.elementPathRules,e=lw.Sizzle(e,document);return e&&e[0]},getElement:function(n,i){void 0===i&&(i=yw);return new Pt(cw.bind(function(t){return Dt(cw.bind(function(){var e=this.getTarget(n);e&&!e.disabled||i<1?t(e):this.getElement(n,i-1).then(function(e){t(e)})},this),gw)},this))},getValue:function(e){return e.value},injectText:function(e,t){"INPUT"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"value"));"TEXTAREA"===e.tagName&&(n=Object.getOwnPropertyDescriptor(window.HTMLTextAreaElement.prototype,"value"));n&&"function"==typeof n.set?n.set.call(e,t):e.value=t;var n=new InputEvent("input",{bubbles:!0,data:t[t.length-1]}),t=(n.simulated=!0,e.dispatchEvent(n),new InputEvent("change",{bubbles:!0}));t.simulated=!0,e.dispatchEvent(t)},simulateClick:function(e){e.dispatchEvent(new MouseEvent("pointerdown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mousedown",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("pointerup",{bubbles:!0,cancelable:!0})),e.dispatchEvent(new MouseEvent("mouseup",{bubbles:!0,cancelable:!0})),e.click()},isAutomationInQueue:function(t){return!!cw.find(this.automationQueue,function(e){return t.id===e.id})},popQueue:function(){var e=vw,n=this.automationQueue[0];"autoclick"===n.type&&(e=mw);return Dt(cw.bind(function(){return this.getElement(n,yw).then(cw.bind(function(e){if(e)if(e.disabled)this.automationQueue=[],lw.log("automation target found but disabled. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug");else{switch(n.type){case"autofill":var t=this.getValue(n);this.injectText(e,t);break;case"autoclick":this.simulateClick(e)}this.automationQueue.shift(),this.automationQueue.length&&this.popQueue()}else this.automationQueue=[],lw.log("automation target element not found. id: "+n.id+", pathRule: "+n.target.elementPathRules,"debug")},this))},this),e)},setActive:function(e){hw=e}};function Iw(e){var t;e.step&&(this.setActive({guide:e.step.guide,step:e.step}),e.params)&&((e=cw.find(e.params,function(e){return"automationIds"===e.name&&cw.isArray(e.value)&&e.value.length}))?(e=this.getAutomationConfigs(e.value),t=!this.automationQueue.length,this.automationQueue=this.automationQueue.concat(e),t&&this.popQueue()):lw.log("no automation ids were found","debug"))}function ww(e,i){return"undefined"!=typeof Proxy&&y.isFunction(i)?new Proxy(e,{get:function(e,t){if("textContent"===t)return i(e);if("parentNode"===t){var n=e[t];if(e.ownerDocument!==n)return ww(e[t],i)}return y.isFunction(e[t])?function(){return e[t].apply(e,arguments)}:e[t]}}):e}_w=Ci(function(n){{var e;Aw.eventProperties&&Aw.eventProperties.length&&(e=function c(i){var r=Ew.ConfigReader.get("eventPropertyMatchParents");var e=b();var t={};var n;for(var o=0;o<Aw.eventProperties.length&&b()-e<50;o++){n=Aw.eventProperties[o];var a=Aw._.any(n.featureRules,function(e){try{var t=Ow(r,Sw);return t(i,e)}catch(n){return!1}});if(a)for(var s=0;s<n.eventPropertyRules.length&&b()-e<50;s++){var d=n.eventPropertyRules[s];if(!d.name)return;t[d.name]=Fw(d,i)}}var u=b()-e;if(50<u){if(r&&Sw===Aw._.identity&&Aw._.isFunction(Aw.getText))return Aw.log("switching event property collection to fast text implementation"),Sw=function(e){return ww(e,function(e){return Aw.getText(e,128)})},c(i);Lw(50,n)}return t}(n.target),Aw._.pairs(e).forEach(function(e){var t=e[0],e=e[1];n.addEventProperty(t,e)}))}}),xw=Ci(function(){var e={};if(Cw)return{};var t=Ew.ConfigReader.get("eventPropertyConfigurations");if(!t||Aw._.isEmpty(t))return{};if(e=function(e){for(var t,n=b(),i={},r=0;r<e.length&&b()-n<50;r++){if(!(t=e[r]).name)return;var o=Fw(t);o&&(i["_pendo_"+t.name]=o)}50<b()-n&&Lw(50,t);return i}(t),Aw._.isEmpty(e))return{};return e});var Cw,Sw,Aw,Ew,Tw,_w,xw,Rw,kw={name:"EventProperties",initialize:function(e,t){Ew=t,Sw=(Aw=e)._.identity,Cw=!1,Aw.getEventPropertyTarget=Pw,Aw.previewEventProperty=Fw,Ew.Events.onClickCaptured.off(Nw),Ew.Events.onClickCaptured.on(Nw),Ew.Events.ready.on(Mw)},teardown:function(){Ew.Events.onClickCaptured.off(Nw),Ew.Events.ready.off(Mw),Ew.store.dispatch("location/removeInternalTransforms",Tw),Tw=[],Ew.store.dispatch("location/stopPolling")},collectClickEventProperties:_w,collectEventProperty:Fw,collectPageEventProperties:xw,getEventPropertyTarget:Pw,addPageEventProperties:Mw};function Ow(e,n){return e?function(e,t){return 0<Aw.dom(n(e)).closest(t).length}:function(e,t){return Aw.Sizzle.matchesSelector(e,t)}}function Nw(e){_w(e.data[0])}function Mw(){var e;e=Ew.ConfigReader.get("eventPropertyConfigurations"),Tw=e&&!Aw._.isEmpty(e)?[new db("search","AddTo",function(){return xw()})]:[],Ew.store.dispatch("location/addInternalTransforms",Tw),0<Tw.length&&Ew.store.dispatch("location/startPolling")}function Lw(e,t){Aw.log("event property collection disabled; collection took greater than "+e+" milliseconds.");e="ERROR event property collection exceeded time limit.";t.featureId?e+="\n For feature with id: "+t.featureId:e+="\n For page event with name: "+t.name,Ew.log.critical(e),t.featureId?Aw.eventProperties=[]:Cw=!0}function Fw(e,t){if(e.path)return t=Pw(e,t),Aw._.get(t,e.path,undefined)}function Pw(e,t){e=e.source||e.selector;if(e&&t){for(var n,i=e,r=t;!n&&r;){try{if((n=Aw.Sizzle.matchesSelector(r,i)?r:Aw.Sizzle(i,r)[0])&&("password"===n.type||"hidden"===n.type))return}catch(o){return}r=xi.getParent(r)}return n}return e?!(t=Aw.Sizzle(e)[0])||"password"!==t.type&&"hidden"!==t.type?t:void 0:window}function Gw(){var e;af().enabled&&(A.commit("debugger/debuggingEnabled",!0),Dw(),R("#pendo-client-debugger").length||(e=m.get("agentDebuggerPluginLoader"),ry.restartDebugger?ry.restartDebugger():"function"==typeof e?e():((e=document.createElement("script")).src=K(v).createScriptURL(Bo("debugger-plugin.min.js")),e.setAttribute("id","pendo-debugger-plugin"),m.get("pendoGlobalKey")&&e.setAttribute("data-pendo-global-key",m.get("pendoGlobalKey")),R.getBody().appendChild(e)),S.debuggerLaunched.trigger()))}function Dw(){Rw=Rw||{store:A,ConfigReader:m,getState:function(){return JSON.stringify(A.state)},getEventCache:function(){return[].concat(xs)},getAllGuides:function(){return[].concat(k)},getAutoGuides:function(){return Rh.sortAndFilter(k,v.autoOrdering)},getBadgeGuides:function(){return y.filter(k,Gu)},getLauncherGuides:function(){return[]},getEventHistory:function(){return[]},getAllFrames:function(){return A.getters["frames/allFrames"]()},getChannelType:function(){return A.getters["frames/channelType"]()},isStepShownInFrame:function(e,t){return A.getters["frames/isShownInFrame"]()(e,t)},setActiveGuides:_u,getBody:R.getBody,isMobileUserAgent:tt.isMobileUserAgent,areGuidesDelayed:kv,doesElementMatchContainsRules:_m,getMetadata:bp,isStagingServer:ie,AutoDisplay:Rh,isLeader:Ku,Events:S},v.debugging=Rw}function Bw(e){var t;return sf()?e?t:"debugging already enabled":Ku()?((t=af()).enabled=!0,w.write(of,JSON.stringify(t),null,!0),Gw(),e?t:"debugging enabled"):void 0}function Ww(){if(!sf())return"debugging already disabled";A.commit("debugger/debuggingEnabled",!1);var e=af();return e.enabled=!1,w.write(of,JSON.stringify(e),null,!0),v.debugging=null,delete v.debugging,R("#pendo-client-debugger").remove(),"debugging disabled"}y.extend(function(e){I.debug(e,{contexts:["debug"]})},Rw);var $w,Uw,jw=function(e,t,n){var i;return t.getters["frames/leaderExists"]()?n.resolve():(i=n.defer(),e.on("leaderChanged",function(){i.resolve()}),i.promise)},zw={name:"DebuggerLauncher",initialize:function(n,e){var i=e.Events,r=e.q;Uw=e.store,jw(i,Uw,r).then(function(){Uw.dispatch("debugger/init"),Uw.getters["frames/isLeader"]()&&Gw()}),hs("pendo-debugger::launch",function(e,t){e.config.apiKey===n.apiKey&&jw(i,Uw,r).then(function(){t.source.postMessage({type:"pendo-debugger::ready",apiKey:n.apiKey},t.origin),!sf()&&Uw.getters["frames/isLeader"]()&&Bw(!1)})}),window.addEventListener&&window.addEventListener("securitypolicyviolation",Zw);($w=n).isDebuggingEnabled=function(e){return sf(e=void 0===e?!1:e)},n.enableDebugging=Bw,n.disableDebugging=Ww,n.addDebuggingFunctions=Dw},teardown:function(){fs("pendo-debugger::launch"),window.removeEventListener("securitypolicyviolation",Zw),$w.debugging&&$w.debugging.teardown&&$w.debugging.teardown();Ww()}};function Zw(e){var t=e.blockedURI,n=e.documentURI,i=e.originalPolicy,e=e.violatedDirective;t&&-1!==t.indexOf("pendo")&&Uw.dispatch("debugger/onCspError",{blockedURI:t,documentURI:n,originalPolicy:i,violatedDirective:e})}iC=[],rC=100,oC=9,aC=4,sC=500,dC=["TEXTAREA","INPUT"],uC=!(nC=0),cC={},lC="previous_page_loads",pC="errorClickLogging",fC=!(hC=1500);var Vw,Yw,Hw,Kw,Xw,Jw,qw,Qw,eC,tC,nC,iC,rC,oC,aC,sC,dC,uC,cC,lC,pC,hC,fC,gC={name:"FrustrationEvent",initialize:function(e,t){Xw=(tC=e)._,nC=0,iC=[],Jw=[],cC={},fC=(Vw=t).ConfigReader.get(pC),this.detachErrorEvent=Vw.attachEvent(window,"error",TC,!0),this.detachDocumentEvents=function(){for(var e=jt(jt([],["fullscreenchange","webkitfullscreenchange","MSFullscreenChange"],!0),["visibilitychange","selectionchange","scroll"],!1),t=[],n=0;n<e.length;n++)switch(e[n]){case"selectionchange":t.push(Vw.attachEvent(window,e[n],yC,!0));break;case"visibilitychange":t.push(Vw.attachEvent(window,e[n],function(){vC(250)},!0));break;default:t.push(Vw.attachEvent(window,e[n],vC,!0))}return t}(),Vw.Events.on("eventCaptured",xC),Vw.agentStorage.registry.addSession(lC),tC.sniffer.MutationObserver&&(e=xt("MutationObserver"),(qw=new e(bC)).observe(tC.dom.getBody(),{childList:!0,attributes:!0,subtree:!0}))},teardown:function(){Vw.Events.off("eventCaptured",xC),this.detachErrorEvent&&(this.detachErrorEvent(),this.detachErrorEvent=null);if(this.detachDocumentEvents){for(var e=0;e<this.detachDocumentEvents.length;e++)this.detachDocumentEvents[e]();this.detachDocumentEvents=null}qw&&qw.disconnect()},addErrorClickLog:SC,getErrorEventTarget:EC,checkErrorEvent:TC,observeDOMMutation:bC,checkFrustrationEvent:xC};function mC(t){void 0===t&&(t="undefined"==typeof performance||"function"!=typeof performance.now?Infinity:performance.now()),(iC=Xw.filter(iC,function(e){return t-e.timestamp<=rC})).length&&Dt(mC,rC)}function vC(e){void 0===e&&(e=sC),uC=!1,Xw.each(cC,function(e){clearTimeout(e)}),cC={},Dt(function(){uC=!0},e)}function yC(){var e=document.getSelection().toString();(Qw||e.length)&&(vC(),Qw=!!e.length)}function bC(e){e.length&&vC()}function IC(e){return e&&!(e instanceof HTMLScriptElement&&e instanceof HTMLLinkElement&&e instanceof HTMLBodyElement)}function wC(e){return e&&IC(e.element)}function CC(e,t){var n=e.frustrationTypes,n=void 0===n?[]:n;Xw.contains(n,t)||(n.push(t),e.frustrationTypes=n)}function SC(e,t){var n=t.detail,n=void 0===n?{}:n,n=(wC(n)&&n.error?n.error:t).message;n&&n.length>hC&&(n=n.substring(0,hC)),e.errorClickLog=n}function AC(e,t){var n,i,r=t.target&&"A"===t.target.tagName&&t.target.hasAttribute("href"),o=t.target&&!Xw.contains(dC,t.target.tagName);uC&&!Qw&&o&&!r&&(n=e,i=Dt(function(){delete cC[i],CC(n,"deadClick")},sC),cC[i]=i),iC.length>oC&&iC.pop(),iC.unshift({target:t.target,activeElement:document.activeElement,browser_time:e.browser_time,timestamp:t.timeStamp}),Dt(mC,rC),Xw.each(Jw,function(e){TC(e)}),Yw?(o=t,e.browser_time-Yw<=1e3&&Math.abs(Hw-o.x)<=30&&Math.abs(Kw-o.y)<=30?nC++:(nC=1,Hw=t.x,Kw=t.y),Yw=e.browser_time,4===nC&&(Yw=null,CC(e,"rageClick"))):(Yw=e.browser_time,Hw=t.x,Kw=t.y,nC=1)}function EC(e){if(IC(e.target))return wC(e=void 0===(e=e.detail)?{}:e)?e.element:IC(document.activeElement)?document.activeElement:void 0}function TC(t){var n,i,e,r=EC(t);r&&((n=Xw.find(iC,function(e){return(e.target===r||e.activeElement===r)&&t.timeStamp-e.timestamp<rC}))?(e=Xw.find(tC.buffers.events,i=function(e){return e.browser_time===n.browser_time&&"click"===e.type})||Xw.find(tC.buffers.silos,function(e){return Xw.find(e,i)}))&&(CC(e,"errorClick"),fC)&&SC(e,t):(Xw.contains(Jw,t)||Jw.push(t),Jw.length>aC&&Jw.pop()))}function _C(e){var t;null!=(t=Vw.sessionStorage.getItem(lC))&&0<t.length&&(t=JSON.parse(t)),eC=Xw.isArray(t)?t:[],function(e){var t,n;if(!(eC.length<2))return t=eC[0],n=eC[1],t&&n&&t.url&&n.url&&t.browser_time&&n.browser_time?t.url===e.url&&e.browser_time-n.browser_time<=7e3&&n.url!==e.url:void 0}(e)&&CC(e,"uTurn"),2===eC.length&&eC.shift(),eC.push({url:e.url,browser_time:e.browser_time}),t=eC,Vw.sessionStorage.setItem(lC,JSON.stringify(t))}function xC(e){var t=e.data[0],e=e.data[1],e=("click"===t.type&&e&&AC(t,e),"load"===t.type&&_C(t),"submit"!==t.type&&"change"!==t.type||vC(),Xw.has(e,"target")&&Xw.contains(dC,e.target.tagName));"focus"===t.type&&e&&vC()}LC=[];var RC,kC,OC,NC,MC,LC,FC={name:"EmbeddedGuides",activeEmbeddedGuides:MC=[],initialize:function(e,t){RC=t,NC=(kC=e)._,function(e){e.getEmbeddedGuides=jC,e.getActiveEmbeddedGuides=zC}(e),OC=function(e){var r=e.store,o=e.globalPendo,a=o._;return{show:function(e){var t=a.first(this.steps),n=a.map(this.steps,function(e){return e.id}),n=a.pick(r.state.guideState.steps,n),i=null;return a.isEmpty(n)||(i=a.max(n,function(e){return e.time||0})),(this.nextStep(i)||t).show(e)},isShownInThisFrame:function(){return a.any(this.steps,function(e){return e.isRendered()||e.isLocked()})},getActiveStep:function(){return this?a.find(this.steps,function(e){return e.isShown()}):null},handleShow:function(){var e,t=null,n=a.get(this,"attributes.embedConfig.selector"),i=a.get(this,"attributes.embedConfig.method"),n=a.first(o.Sizzle(n)),r=this.isShownInThisFrame();n&&r&&(e="#pendo-guide-container-".concat(a.get(this.getActiveStep(),"id")),t=!!o.Sizzle(e,n).length),!r&&n&&this.shouldAutoDisplay()?"replace"===i&&o.Sizzle('[id^="pendo-guide-container"]',n).length||this.show("embed"):!r||n&&t||this.hide()},shouldAutoDisplay:function(){return this.shouldShowSnoozedGuide()||this.shouldRepeatGuide()||a.all(this.steps,function(e){return e.shouldRepeat()||!e.isSnoozed()&&"dismissed"!==e.seenState})}}}({store:RC.store,globalPendo:kC}),RC.Events.on("deliverablesLoaded",DC),RC.Events.on("guideLoopStopped",GC),RC.Events.on("guideListChanged",UC),RC.GuideLoop.addUpdatePhase(PC),RC.guides.addProcessor(BC),RC.GuideActivity.registerGuideResolver($C),this.removeResizeEvent=e.attachEvent(window,"resize",WC)},teardown:function(){DC(),RC.Events.off("deliverablesLoaded",DC),RC.Events.off("guideLoopStopped",GC),RC.Events.off("guideListChanged",UC),RC.GuideLoop.removeUpdatePhase(PC),RC.guides.removeProcessor(BC),RC.GuideActivity.removeGuideResolver($C),this.removeResizeEvent&&this.removeResizeEvent();LC.length=0}};function PC(){NC.forEach(MC,function(e){e.handleShow()})}function GC(){NC.forEach(MC,function(e){e.isShownInThisFrame()&&e.hide()})}function DC(){LC=NC.toArray(MC),RC.guides.removeDisplayableGuides("embeddedGuides"),MC.length=0}function BC(t){var e;return!(e=t)||!e.launchMethod||"embed"!==e.launchMethod||(NC.some(MC,function(e){return e.id===t.id})||MC.push(t),!1)}function WC(){NC.forEach(MC,function(e){e=e.getActiveStep();e&&!kC.ignoreResize&&e.redraw()})}function $C(e){if(MC.length){var t,n="pendo-base-";if(NC.isString(e.id)&&0===e.id.indexOf(n)){var i=e.id.substring(n.length);return(n=NC.find(MC,function(e){t=NC.find(e.steps,function(e){if(e.id===i)return e});return!!t}))&&t?{guide:n,step:t}:null;return}else return NC.isObject(e.parentElem)?$C(e.parentElem):null}return null}function UC(){NC.each(LC,function(t){var e=NC.findIndex(MC,function(e){return e.id===t.id});-1===e&&t.isShownInThisFrame()?t.hide():t.isFrameProxy||(MC[e]=t)}),LC.length=0,RC.guides.registerDisplayableGuides("embeddedGuides",MC),NC.map(MC,function(e){Object.assign(e,OC),NC.map(e.steps,function(e){var t=function(e){var n=e.pluginApi;e._;return this._onShown||Object.defineProperty(this,"_onShown",{value:this.onShown,writable:!1,configurable:!1}),this._onShown?{onShown:function(e){var t=!this.lastSeenAt||!!n.ConfigReader.get("enableAllEmbeddedGuideEvents");return this._onShown(e,t)}}:null}.call(e,{pluginApi:RC,_:NC});Object.assign(e,t)})})}function jC(){return FC.activeEmbeddedGuides}function zC(){return FC.activeEmbeddedGuides.filter(function(e){return e.isShown()})}var ZC="sessionId";function VC(){this.name="SessionManager"}VC.prototype.initialize=function(e,t){this.api=t,this.pendo=e,this.subscriptions=[this.api.attachEvent(this.api.Events,"ready",y.bind(this.ready,this)),this.api.attachEvent(this.api.Events,"eventCaptured",y.bind(this.eventCaptured,this))],this.inactivityDuration=this.api.ConfigReader.get("inactivityDuration",18e5),this.api.agentStorage.registry.addLocal(ZC),this.api.agentStorage.registry.addLocal("sessionLastUserInteractionEvent"),this.api.store.getters["frames/isReady"]()&&this.ready()},VC.prototype.teardown=function(){y.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0},VC.prototype.ready=function(){this.isReady||(this.sessionId(),this.isReady=!0)},VC.prototype.isExpired=function(e){var t=y.get(this._sessionInfo,"timestamp");return!!(t&&e-t>this.inactivityDuration)},VC.prototype.eventCaptured=function(e){var t;e&&e.data&&e.data.length&&(e=e.data[0],this.ready(),t=e.browser_time||(new Date).getTime(),this.isExpired(t)&&(this.clearSessionInfo(),this.api.Events.sessionChanged.trigger()),this.storeLastInteractionEventInformation(t),e.sessionId=this.sessionId())},VC.prototype.sessionId=function(e){var t;return void 0===e&&(e=this.pendo.randomString(16)),this._sessionInfo||((t=this.api.agentStorage.read(ZC))||(t=JSON.stringify({sessionId:e,timestamp:(new Date).getTime()}),this.api.agentStorage.write(ZC,t)),this._sessionInfo=JSON.parse(t)),this._sessionInfo.sessionId},VC.prototype.clearSessionInfo=function(){var e=this.api.agentStorage.read(ZC);e&&JSON.parse(e).sessionId===this._sessionInfo.sessionId&&this.api.agentStorage.clear(ZC),delete this._sessionInfo,this.sessionId()},VC.prototype.storeLastInteractionEventInformation=function(e){this._sessionInfo.timestamp=e,this.api.agentStorage.write(ZC,JSON.stringify(this._sessionInfo))};var YC=new VC;function HC(){this.name="SegmentFlags"}HC.prototype.initialize=function(e,t){var n="requestSegmentFlags",e=(this.pendo=e,(this.api=t).ConfigReader);e.addOption(n,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],!1),this.segmentFlagsEnabled=e.get(n),this.segmentFlagsEnabled&&(this.mostRecentSegmentsRequest=null,this.pendo.segmentsPayload=this.pendo._.bind(this.segmentsPayload,this),this.handleMetadataChange=this.pendo._.debounce(this.pendo._.bind(this.requestSegmentFlags,this),50),this.handleReadyBound=this.pendo._.bind(this.handleReady,this),this.api.Events.ready.on(this.handleReadyBound),this.api.Events.metadata.on(this.handleMetadataChange),this.api.Events.identify.on(this.handleMetadataChange))},HC.prototype.teardown=function(){this.segmentFlagsEnabled&&(this.pendo.segmentsPayload=this.pendo._.noop,this.handleMetadataChange.cancel(),this.api.Events.ready.off(this.handleReadyBound),this.api.Events.metadata.off(this.handleMetadataChange),this.api.Events.identify.off(this.handleMetadataChange))},HC.prototype.handleReady=function(){this.ready=!0,this.requestSegmentFlags()},HC.prototype.requestSegmentFlags=function(){if(this.ready){var e,t=this.pendo._.uniqueId(),n=(this.mostRecentSegmentsRequest=t,{visitorId:this.pendo.get_visitor_id(),accountId:this.pendo.get_account_id(),metadata:this.pendo.getSerializedMetadata(),url:this.pendo.url.get()}),i=this.pendo.compress(n),t={id:t,jzb:i,v:this.pendo.VERSION,ct:(new Date).getTime()},n=(this.api.agent.treatAsAdoptPartner()&&n.accountId&&"ACCOUNT-UNIQUE-ID"!==n.accountId&&(t.acc=this.api.util.base64EncodeString(n.accountId)),"script"===this.pendo.LOADER?"segmentflag.js":"segmentflag.json"),n=this.api.transmit.buildBaseDataUrl(n,this.pendo.apiKey,t),r=this.api.agent.getJwtInfoCopy();try{n.length>this.api.constants.URL_MAX_LENGTH||!this.pendo._.isEmpty(r)?(delete t.jzb,n=this.api.transmit.buildBaseDataUrl("segmentflag.json",this.pendo.apiKey,t),e=this.pendo._.extend({events:i},r),this.postLoad(n,e)):"script"===this.pendo.LOADER?this.scriptLoad(n):this.getLoad(n)}catch(o){this.api.log.error("Failed to load segment flags",{error:o})}}},HC.prototype.segmentsPayload=function(e){!this.mostRecentSegmentsRequest||this.pendo._.isString(e.id)&&e.id!==this.mostRecentSegmentsRequest||(this.pendo.segmentFlags=e.segmentFlags,this.api.log.info("successfully loaded segment flags"),this.mostRecentSegmentsRequest=null)},HC.prototype.scriptLoad=function(e){this.pendo.loadResource(e,this.pendo._.noop)},HC.prototype.getLoad=function(n){return $t(this,void 0,void 0,function(){var t;return Ut(this,function(e){switch(e.label){case 0:return[4,this.pendo.ajax.get(n)];case 1:return t=e.sent(),this.segmentsPayload(t.data),[2]}})})},HC.prototype.postLoad=function(n,i){return $t(this,void 0,void 0,function(){var t;return Ut(this,function(e){switch(e.label){case 0:return[4,this.pendo.ajax.postJSON(n,i)];case 1:return t=e.sent(),this.segmentsPayload(t.data),[2]}})})};var KC=new HC,XC=["google","bing","yahoo","duckduckgo","baidu","yandex","aol","ask","excite","lycos","webcrawler","infoseek","dogpile","altavista","netscape","hotbot","looksmart","gigablast","teoma","alltheweb","search.com","mamma","metacrawler","ixquick","searchy","searchalot","searchengine","searchenginez","searchengineland","searchenginewatch","searchengineworld","searchenginejournal","searchengineguide","searchengineforums"],JC=new RegExp("(".concat(XC.join("|"),")"),"i"),qC=["facebook","twitter","linkedin","instagram","pinterest","tiktok","snapchat"],QC=new RegExp("(".concat(qC.join("|"),")"),"i"),eS=["youtube","vimeo","dailymotion","twitch","bilibili","youku","tencent","iqiyi","peertube","rutube","metacafe","veoh","break","vidyard","wistia","brightcove","jwplayer","kaltura","sproutvideo"],tS=new RegExp("(".concat(eS.join("|"),")"),"i"),nS=new RegExp("(".concat(["amazon","ebay","walmart","etsy","shopify","shop","target","bestbuy","costco"].join("|"),")"),"i"),iS=new RegExp("(".concat(["google performance max","microsoft audience network","facebook audience network"].join("|"),")"),"i");function rS(e,t){return"self"!==t&&"direct"!==t&&null!==t.match(e)}var oS=new RegExp("^(.*cp.*|ppc|retargeting)$"),aS=new RegExp("(.*email.*|.*e_mail.*|.*e mail.*|.*e-mail.*)","i"),sS=[["Email",function(e){var t=e.source,n=e.medium;return"direct"===e.referrer&&(null!==n.match(aS)||null!==t.match(aS)||"newsletter"===n)}],["Paid Search",function(e){var t=e.source,n=e.medium,i=e.gclid,e=e._;return i||"paid-search"===n||n.match(oS)&&e.contains(XC,t)}],["Organic Search",function(e){var t=e.source,n=e.medium,i=e.referrer,e=e._;return"organic"===n&&e.contains(XC,t)||!n&&rS(JC,i)}],["Display",function(e){var t=e.medium;return e._.contains(["display","cpm","banner","interstitial","expandable","programmatic"],t)}],["Paid Social",function(e){var t=e.source,n=e.medium,i=e.fbclid,e=e._;return i||"paid-social"===n||n.match(oS)&&e.contains(qC,t)}],["Organic Social",function(e){var t=e.source,n=e.medium,i=e.referrer,e=e._;return!n&&rS(QC,i)||"social"===n||e.contains(qC,t)}],["Paid Shopping",function(e){e=e.medium;return"shopping"==e||"paid-shopping"==e}],["Organic Shopping",function(e){var t=e.medium,e=e.referrer;return"organic-shopping"===t||!t&&rS(nS,e)}],["Paid Video",function(e){var t=e.medium,n=e.source,e=e._;return"paid-video"==t||!t.match(oS)&&e.contains(eS,n)}],["Organic Video",function(e){var t=e.medium,e=e.referrer;return"video"===t||!t&&rS(tS,e)}],["Affiliates",function(e){e=e.medium;return"affiliate"===e||"partner"===e}],["Audio",function(e){e=e.medium;return"podcast"===e||"audio"===e}],["Cross-network",function(e){var t=e.source;return"cross-network"===e.medium||t.match(iS)}],["Other Advertising",function(e){e=e.medium;return"cpv"===e||"cpa"===e}],["SMS",function(e){var t=e.source,e=e.medium;return"sms"===t||"sms"===e}],["Mobile Push Notifications",function(e){var t=e.source,e=e.medium;return e.endsWith("push")||0<=e.indexOf("mobile")||0<=e.indexOf("notification")||"firebase"===t}],["Referral",function(e){var t=e.medium,e=e.referrer;return"referral"===t||!!e&&"self"!==e&&"direct"!==e}],["Paid Other",function(e){var t=e.medium;return e.source,e._,"paid-other"==t||t.match(oS)}],["Other",function(e){return!!e.medium}],["Direct",function(e){var t=e.source;return!e.medium&&!t}]],dS="utm",uS="enableFullUtmReferrer";function cS(){this.name="WebAnalytics"}cS.prototype.initialize=function(e,t){this.pendo=e;var n=(this.api=t).ConfigReader,n=(n.addOption(uS,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),e._.bind),n=(this.subscriptions=[t.attachEvent(t.Events,"eventCaptured",n(this.addUtmToEvent,this)),t.attachEvent(t.Events,"sessionChanged",n(this.sessionChanged,this))],this.loadParameters(t.agentStorage));n&&!e._.isEmpty(n)||(n=this.extractParameters(window.location.href,document.referrer)),this.api.agentStorage.registry.addLocal(dS),this.storeParameters(n,t.agentStorage)},cS.prototype.extractParameters=function(e,t){var n=new Si(e).hostname,n=(i=(n={referrer:t,currentHost:n}).referrer,n=n.currentHost,i&&""!==i?(r="self",(i=new Si(i).hostname)!==n?null==i?void 0:i.toLowerCase():r):"direct");if("self"!==n){var i=this.api.util.parseUrl(e);if(!i)return{};var r=i.query,e=r.utm_source,i=r.utm_medium,o=r.utm_campaign,a=r.utm_term,s=r.utm_content,d=r.gclid,u=r.fbclid;if(this.pendo._.compact([e,i,o,a,s,d]).length)return(e={source:e,medium:i,campaign:o,term:a,content:s}).channel=this.calculateUtmChannel({referrerValue:n,utm:e,gclid:d,fbclid:u}),t&&this.api.ConfigReader.get(uS)?e.referrer=t:"direct"!==n&&(e.referrer=n),e}return{}},cS.prototype.calculateUtmChannel=function(e){var t=e.referrerValue,n=e.utm,i=e.gclid,e=e.fbclid,r=(null==(r=n.medium)?void 0:r.toLowerCase())||"",n=(null==(n=n.source)?void 0:n.toLowerCase())||"",o={_:this.pendo._,referrer:t,source:n,medium:r,gclid:i,fbclid:e},t=this.pendo._.find(sS,function(e){return e[1](o)});return t?t[0]:"Direct"},cS.prototype.storeParameters=function(e,t){0<this.pendo._.size(e)&&(this.utm=e,t.write(dS,JSON.stringify(e)))},cS.prototype.loadParameters=function(e){e=e.read(dS);return e?JSON.parse(e):null},cS.prototype.teardown=function(){for(var e=0,t=this.subscriptions;e<t.length;e++)(0,t[e])();this.subscriptions.length=0,this.utm=null},cS.prototype.addUtmToEvent=function(e){this.utm&&(e.data[0].utm=this.utm)},cS.prototype.sessionChanged=function(){this.utm=null;var e=this.api.agentStorage,t=(e.clear(dS),this.extractParameters(window.location.href,document.referrer));this.storeParameters(t,e)};var lS=new cS,pS={children:[],props:{"class":"_pendo-step-container","data-layout":"tooltipBlank",id:"pendo-base"},type:"div"},hS={css:[],props:{scoped:"scoped",type:"text/css"},type:"style"},fS={children:[],props:{"class":"_pendo-step-container-size","data-relative-alignment":!0,"data-vertical-alignment":"Relative to Element",id:"pendo-g-validation-tooltip-container",style:{display:"block",width:"300px","z-index":3e5}},type:"div"},gS={children:[],props:{"class":"_pendo-step-container-styles",id:"pendo-guide-container",role:"dialog","data-caret-enabled":!0,"data-caret-height":"15px","data-caret-width":"15px",style:{"background-color":"rgba(255, 255, 255, 1)",border:"1px solid #BBBBBB","border-radius":"5px",padding:"8px 12px","box-shadow":"0px 0px 10px 0px rgba(190, 190, 190, 0.5)"},tabindex:-1},type:"div"},mS={children:[],props:{"class":"_pendo-text-paragraph",style:{}},type:"div"};function vS(e,t){return{content:t,props:{id:"text-".concat(e),"class":"_pendo-text-plain",style:{color:"gray",margin:0}},type:"p"}}function yS(e){var e=(new DOMParser).parseFromString(e,"image/svg+xml").documentElement,t=document.createElement("div");return t.style.marginRight="5px",t.appendChild(e),t}var bS='\n<svg xmlns="http://www.w3.org/2000/svg" \n width="10" height="10" fill="none"\n stroke="gray" stroke-linecap="round" stroke-linejoin="round" \n stroke-width="2" viewBox="0 0 10 10">\n <line x1="2" y1="5" x2="8" y2="5"/>\n</svg>\n',IS='\n<svg xmlns="http://www.w3.org/2000/svg" \n width="10" height="10" viewBox="0 0 10 10" \n fill="none" stroke="green" stroke-width="2" \n stroke-linecap="round" stroke-linejoin="round" \n class="feather feather-check">\n <polyline points="2 5 4 7 8 2"></polyline>\n</svg>\n',wS='\n<svg xmlns="http://www.w3.org/2000/svg" \n width="10" height="10" viewBox="0 0 10 10" \n fill="none" stroke="red" stroke-width="2" \n stroke-linecap="round" stroke-linejoin="round" \n class="feather feather-x">\n <line x1="2" y1="2" x2="8" y2="8"/>\n <line x1="8" y1="2" x2="2" y2="8"/>\n</svg>\n',CS={emailRegex:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,phoneRegex:/^(\+\d{1,2}\s?)?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$/,urlRegex:/^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/},SS={"MM-DD-YYYY":/^(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])-(19|20)\d\d$/,"DD-MM-YYYY":/^(0[1-9]|[12][0-9]|3[01])-(0[1-9]|1[0-2])-(19|20)\d\d$/,"MM/DD/YYYY":/^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/(19|20)\d\d$/,"DD/MM/YYYY":/^(0[1-9]|[12][0-9]|3[01])\/(0[1-9]|1[0-2])\/(19|20)\d\d$/,"YYYY-MM-DD":/^(19|20)\d\d-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/},AS={email:function(e){return CS.emailRegex.test(e)},phone:function(e){return CS.phoneRegex.test(e)},date:function(e,t){return(SS[(t=void 0===t?{}:t).format]||SS["MM/DD/YYYY"]).test(e)},url:function(e){return CS.urlRegex.test(e)},number:function(e,t){var n,i,r,o;return""!==e&&(n=(t=void 0===t?{}:t).min,i=t.max,t=t.allowDecimal,r=ES(n),o=ES(i),r&&(n=Number(n)),o&&(i=Number(i)),e=Number(e),!isNaN(e))&&!(r&&e<n||o&&i<e||!t&&e%1!=0)},characterLength:function(e,t){var n=(t=void 0===t?{}:t).min,t=t.max,i=ES(n),r=ES(t);return i&&(n=Number(n)),r&&(t=Number(t)),!(i&&e.length<n||r&&e.length>t)}};function ES(e){return e!==undefined&&null!==e&&""!==e}OS=null;var TS,_S,xS,c,p,RS,kS,OS,NS={name:"FormValidation",validationGuides:kS=[],debouncedValidate:xS,initialize:function(e,t){var n;t.ConfigReader.get("formValidation")&&(TS=e,_S=t,xS=y.debounce(zS,100),_S.Events.on("deliverablesLoaded",LS),_S.Events.on("guideLoopStopped",FS),_S.Events.on("guideListChanged",PS),_S.GuideLoop.addUpdatePhase(DS),_S.guides.addProcessor(BS),n=!(null==TS||!TS.designer),RS=setInterval(function(){n&&(MS(),clearInterval(RS),RS=null)},1e3),e.attachEvent(document,"focusin",$S),e.attachEvent(document,"focusout",US),e.attachEvent(document,"input",xS))},teardown:MS,appendValidationStyles:WS,getActiveStep:function(){return c},setActiveStep:function(e){c=e},setActiveField:function(e){p=e},getActiveField:function(){return p},getActiveFieldIsValid:function(){return OS},setActiveFieldIsValid:function(e){OS=e},getValidationGuides:function(){return kS},setValidationGuides:function(e){kS=e},initializeFormValidation:PS,clearAllValidationGuides:LS,extractValidationGuides:BS,applyFormBehaviors:GS,checkValidationFieldVisibility:DS,hideValidationTooltip:FS,focusField:$S,blurField:US,findFieldByElement:jS,validateInput:zS,validateField:ZS,getRuleText:VS,setValidationStyle:YS};function MS(){_S&&(RS&&(clearInterval(RS),RS=null),_S.Events.off("deliverablesLoaded",LS),_S.Events.off("guideLoopStopped",FS),_S.Events.off("guideListChanged",PS),_S.GuideLoop.removeUpdatePhase(DS),_S.guides.removeProcessor(BS),TS.detachEvent(document,"focusin",$S),TS.detachEvent(document,"focusout",US),TS.detachEvent(document,"input",xS),xS.cancel(),kS=[],OS=p=c=null)}function LS(){_S.guides.removeDisplayableGuides("validationGuides"),kS=[]}function FS(){TS.detachEvent(document,"focusin",$S),p&&(OS=p=null),c&&(c.hide({validationHidden:!0}),c=null)}function PS(){WS(),_S.guides.registerDisplayableGuides("validationGuides",kS),GS()}function GS(){y.map(kS,function(e){y.map(e.steps,function(e){var t=function(){var t,n,i;return this.attributes?(n=(t=this).show,i=t.hide,{show:function(e){return!t.attributes.validationHidden&&n.call(t,e)},hide:function(e){return e&&e.validationHidden&&(t.attributes.validationHidden=!0),i.call(t,e)}}):(I.info("buildFormStepBehaviors called with invalid context"),{})}.call(e);Object.assign(e,t)})})}function DS(){var e;!p||(e=TS.Sizzle(c.elementPathRule)[0])&&TS.isElementVisible(e)||(OS=p=null,c.hide({validationHidden:!0}),c=null),((null==(e=Qr.get(document).bubbleEvents)?void 0:e.focusin)||[]).some(function(e){return e.handler===$S})||TS.attachEvent(document,"focusin",$S)}function BS(t){return"form"!==t.launchMethod||y.some(kS,function(e){return e.id===t.id})||kS.push(t),!0}function WS(){var e=document.createElement("style");e.innerHTML='\n input[data-pendo-field-valid="false"] {\n border-color: red !important;\n outline-color: red !important;\n }\n ',document.head.appendChild(e)}function $S(e){var t,n,i,r,o,a,s,e=e.target;"INPUT"===e.tagName&&(t=jS(e))&&c&&(c.attributes.validationHidden=!1,c.domJson||(a=p.rules[0],s=vS("context-".concat(p.id),p.context),a=null!=a&&a.type?function(e,t){return t=vS(e,t),{props:{id:"rule-".concat(e),"class":"text-row",style:{display:"flex","align-items":"center"}},children:[t],type:"div"}}(a.id,a.ruleText):null,0!==(s=[s,a].filter(Boolean)).length&&(a=me(pS),n=me(hS),i=me(fS),r=me(gS),o=me(mS),a.children.push(n,i),i.children.push(r),r.children.push(o),o.children=s,c.domJson=a)),c.show("api"),(i=document.getElementById("rule-".concat(null==(n=null==p?void 0:p.rules[0])?void 0:n.id)))&&null!=(r=null==p?void 0:p.rules[0])&&r.type&&(o=null===p.isValid?yS(bS):yS(OS?IS:wS),i.insertBefore(o,i.firstChild)),""!==t.value)&&ZS(e)}function US(e){e=e.target;p&&c&&(TS.Sizzle.matchesSelector(e,null==c?void 0:c.elementPathRule)&&YS(e,OS),c.hide({validationHidden:!0}),null===p.isValid&&!1===OS&&(VS().props.style.color="red"),p.isValid=OS,OS=c=p=null)}function jS(t){c&&c.hide({validationHidden:!0}),OS=p=c=null;for(var e=0,n=kS;e<n.length;e++){var i=n[e],i=y.find(i.steps,function(e){return TS.Sizzle.matchesSelector(t,e.elementPathRule)});if(i)return p=null==(i=(c=i).attributes)?void 0:i.field,OS=p.isValid,p}return null}function zS(e){var t,e=e.target;TS.Sizzle.matchesSelector(e,null==c?void 0:c.elementPathRule)?ZS(e):(t=jS(e))&&(OS=t.isValid,ZS(e))}function ZS(e){var t,n,i=null==p?void 0:p.rules[0];i&&(n=AS[i.type])&&(i=n(e.value,i.options),OS=!!i,n=VS(),null===p.isValid?(n.props.style.color=i?"green":"gray",t=yS(i?IS:bS)):(n.props.style.color=i?"green":"red",t=yS(i?IS:wS),YS(e,i)),c.hide({stepHidden:!0}),c.show("api"),n=document.getElementById("rule-".concat(p.rules[0].id)))&&n.insertBefore(t,n.firstChild)}function VS(){var e=p.rules[0].id;return jc("text-".concat(e),c.domJson)}function YS(e,t){!1===t?e.setAttribute("data-pendo-field-valid",!1):e.removeAttribute("data-pendo-field-valid")}KS.prototype.waitThenCheckForSubmit=function(){var e=this,t=this.q.defer();return Dt(function(){t.resolve(""===e.getPromptValue())},100),t.promise},KS.prototype.submit=function(t){t&&(this._.each(this.listeners,function(e){return e(t)}),this.latestPromptValue="")},KS.prototype.capturePromptValue=function(e){void 0===e&&(e=!1);var t=this.getPromptValue();!t&&e||(this.latestPromptValue=t)},KS.prototype.getPromptValue=function(){return this.inputEl.getText()},KS.prototype.onSubmit=function(e){this.listeners.push(e)},KS.prototype.teardown=function(){this.promptContainer.teardown(),this.inputEl.teardown(),this.submitEl.teardown()};var HS=KS;function KS(e,t,n,i,r){var o=this;this.listeners=[],this.latestPromptValue="",this.dom=e.dom,this._=e._,this.q=t.q,this.inputEl=new this.dom.Element(n),this.submitEl=new this.dom.Element(i),this.inputEl.addEventListener("change",function(e){o.capturePromptValue()},!0),this.inputEl.addEventListener("keydown",function(e){e="Enter"===e.code;o.capturePromptValue(e),e&&o.waitThenCheckForSubmit().then(function(e){e&&o.submit(o.latestPromptValue)})},!0),this.submitEl.addEventListener("click",function(){o.waitThenCheckForSubmit().then(function(e){e&&o.submit(o.latestPromptValue)})},!0),this.promptContainer=new this.dom.Observer,this.promptContainer.addObservers(this.inputEl,this.submitEl)}function XS(){this.name="PromptAnalytics",this.configName="aiAgents",this.prompts=[]}XS.prototype.initialize=function(e,t){var n=this;this.pendo=e,this.api=t,this._=this.pendo._,this.api.ConfigReader.addOption(this.configName,["pendoconfig","snippet"]),this.loadConfig(this.configName).then(function(e){return n.onConfigLoaded(e)})["catch"](function(){})},XS.prototype.loadConfig=function(e){var t=this.api,n=t.q,t=t.ConfigReader,n=n.defer(),e=t.get(e);return n.resolve(e),n.promise},XS.prototype.onConfigLoaded=function(e){var t=this;(e=void 0===e?[]:e)&&this._.isArray(e)&&0!==e.length&&this._.each(e,function(e){t.observePrompt(e)})},XS.prototype.observePrompt=function(e){var t=this,n=e.id,i=(e.containerCssSelector,e.cssSelectors),e=e.privacyFilters,i=(this.setFilters(e),this.agentId=n,e=this.parseCssSelector("input",i),n=this.parseCssSelector("submit",i),new HS(this.pendo,this.api,e,n));i.onSubmit(function(e){t.sendEvent(e)}),this.prompts.push(i)},XS.prototype.parseCssSelector=function(t,e){return this._.find(e,function(e){return e.type===t}).cssSelector},XS.prototype.setFilters=function(e){if(!e)return this.privacyFilters=null;try{this.privacyFilters=new RegExp(e,"gmi")}catch(t){this.privacyFilters=null,this.api.log.error(t)}return this.privacyFilters},XS.prototype.sendEvent=function(e){var t=this.applyPrivacyFilter(e);this.api.analytics.collectEvent("prompt",{prompt:t,agentId:this.agentId,promptType:"request",privacyFilterApplied:e!==t})},XS.prototype.applyPrivacyFilter=function(e){return this.privacyFilters&&this._.isRegExp(this.privacyFilters)?e.replace(this.privacyFilters,"redacted"):e},XS.prototype.teardown=function(){this._.each(this.prompts,function(e){return e.teardown()})};var JS=new XS;function qS(i){var e,t;(e=i).getVersion=lt,e.isReady=my,e.pageLoad=Bd,e.getVisitorId=mi,e.getAccountId=vi,e.clearSession=Ii,e.VERSION=ut,e.LOADER=ct,e.flushNow=u(function(e){return Ws(0,e)}),e.teardown=Ci(Ey),e.initGuides=u(xv),e.loadGuides=u(lv),e.findGuideByName=u(Nu),e.hideGuides=u(sm),e.onGuideDismissed=u(vm),e.goToStep=bm,e.onGuideAdvanced=u(Im),e.onGuidePrevious=u(wm),e.onGuideSnoozed=ym,e.startGuides=u(jh),e.stopGuides=u(zh),e.defaultCssUrl=u(Jg()),e.getActiveGuides=Au,e.getActiveGuide=jv,e.guideSeenTimeoutLength=Ib.getGuideSeenTimeoutLength(),e.guidesPayload=nv,e.areGuidesDisabled=u(Rv),e.setGuidesDisabled=u(Ov),e.buildNodeFromJSON=F.buildNodeFromJSON,e.flexElement=u(F.flexElement),e.GuideFactory=u(wc),e.dom=R,e.getText=Xa,e.attachEvent=u(l),e.detactEvent=u(yu),e.frames={setFrameVisibility:Xu},e.log=jy,e.enableLogging=Dy,e.disableLogging=By,e.setActiveContexts=Ky,e.showLogHistory=Yy,e.getLoggedContexts=Hy,e.isDebuggingEnabled=y.noop,e.enableDebugging=y.noop,e.disableDebugging=y.noop,e.addDebuggingFunctions=y.noop,e.stopSendingEvents=u(Ps.lock),e.startSendingEvents=u(Ps.unlock),e.isSendingEvents=u(la),e.fromByteArray=G.uint8ToBase64,e.events=u(ec),e.track=u(Jy),e.validateInstall=qy,e.validateNativeMethods=Qy,e.validateBuiltInGlobals=eb,e.validateUrl=tb,e.validateEnvironment=rb,e.doesExist=ge,e.generate_unique_id=ni,e.TEMP_PREFIX=Jn,e.SIZE_UNIQUE_ID=qn,e.defaultLauncher=y.noop,e.toggleLauncher=y.noop,e.showLauncher=y.noop,e.hideLauncher=y.noop,e.removeLauncher=y.noop,e.identify=mp,e.get_visitor_id=mi,e.set_visitor_id=function(e){mp(e)},e.get_account_id=vi,e.set_account_id=function(e){mp(E(),e)},e.getSerializedMetadata=Ip,e.compress=bt,e.squeezeAndCompress=bt,e.randomElement=At,e.randomString=Et,e.toUTF8Array=gt,e.getNumberFromText=Nt,e._addCredits=u(Cm),e.getCurrentUrl=Ym,e.getNormalizedUrl=Ym,e.testUrlForStep=u(Km),e.showGuideByName=u(Xm),e.showGuideById=u(Jm),e.designerv2=tg,e.P2AutoLaunch=u(Ig),e.BuildingBlocks=u(ob),e.onConnectMessage=y.noop,e.buffers=Ps,e.guideDev=u(xy),e.badgesShown=u(Cu),e.get_pendo_cookie=cn,e.DEFAULT_EXPIRE_LEN=pn,e.set_pendo_cookie=fn,e.loadResource=as,e.loadWatcher=ss,e.messageLogger=ds,e.messageReceiver=us,e.messageValidator=cs,e.MESSAGE_TYPES=ps,e.messageDispatcher=gs,e.moduleRegistry=ms,e.addModule=vs,e.hasModule=u(ys),e.findModuleByName=u(bs),e.modulesWaiting=Is,e.loadModules=ws,e.moduleLoader=Cs,e.TOOLTIP_DEFAULT_WIDTH=430,e.TOOLTIP_DEFAULT_HEIGHT=200,e.TOOLTIP_ARROW_SIZE=15,e.LB_DEFAULT_WIDTH=500,e.LB_DEFAULT_HEIGHT=500,e.sniffer=tt,e.url=Fo,e.location=vb,e.Sizzle=Jr,e._=y,e.ajax=ao,e.Zlib=It,e.guideContent=u(xc.guideContent),e.receiveDomStructureJson=u(xc.receiveDomStructureJson),e.addExtension=_p,(t=i).SHADOW_STYLE="",y.extend(t,{_showElementGuide:y.noop,flushEventCache:Eb(null,"flushEventCache",Sb),HOST:Oo,MAX_LENGTH:Ns,MAX_NUM_EVENTS:Os,_createToolTip:y.noop,_get_tooltip_dimensions:y.noop,_isOldIE:u(Eb($e,"_isOldIE",Cb)),_logMessage:Eb(ra,"_logMessage",Cb),_sendEvent:Eb(null,"_sendEvent",Sb),_sendGuideEvent:Eb(null,"_sendGuideEvent",Sb),_stopEvents:!1,_storeInCache:Eb(null,"_storeInCache",Sb),_writeEventImgTag:Eb(null,"_writeEventImgTag",Sb),_writeImgTag:u(Eb(aa,"_writeImgTag",Cb)),getUA:Eb(ze,"getUA",Cb),ifDebugThen:Eb(null,"ifDebugThen",Sb),send_event:u(Eb(ed,"send_event","has changed to pendo.cache.createEvent")),wire_page:Eb(fu,"wire_page",Cb),messageOriginTester:Eb(null,"messageOriginTester",Sb),findGuideBy:u(ku),findGuideById:u(Ou),findStepInGuide:u(Mu),_updateGuideStepStatus:u(om),_addCloseButton:u(im),initialize:Iy,getEventCache:u(Cv),processEventCache:u(wv),isGuideShown:u(nm),_getNextStepInMultistep:u(Vm),attachEvent:l,detachEvent:yu,updateOptions:gp,createLauncher:y.constant({}),initLauncher:y.noop,_addGuideToLauncher:y.noop,launcherToolTipDiv:null,isAnonymousVisitor:function(e){return void 0===e&&(e=t.get_visitor_id()),ri(e)},DEFAULT_VISITOR_ID:si,shouldIdentityChange:y.constant(!1),read:w.read,write:w.write,_delete_cookie:w.clear,_set_cookie:sn,_get_cookie:an,get_cookie_key:un,ENV:rt,eventCache:u(xs),_getOpacityStyles:Eb(null,"_getOpacityStyles",Cb),setStyle:ba,_createGuideEvent:u(Um),seenGuide:u(Pm),dismissedGuide:u(Gm),advancedGuide:u(Dm),seenTime:0,placeBadge:u(gf),isBadge:u(Gu),showPreview:u(Eb(Om,"showPreview",Cb)),removeAllBadges:u(mf),tellMaster:Ss,DEFAULT_TIMER_LENGTH:Dh,registerMessageHandler:hs,_get_offset:u(Aa),_shouldAutoDisplayGuide:y.constant(!1),removeBadge:vf,_showLightboxGuide:y.noop,_showGuide:u(Lm),getElementForGuideStep:u(zu),isElementVisible:za,getTooltipDivId:u(Rm),setupWatchOnTooltip:u(km),letters:"",charset:"",detectMaster:As,listenToMaster:Eb(null,"listenToMaster",Sb),start:Iu,SEND_INTERVAL:ks,stageGuideEvent:u(Zm),startStagedTimer:zm,isURLValid:Ls,getURL:Fs,_get_screen_dim:u(wa),_isInViewport:u(Ca),_getCss3Prop:va,waitThenStartGuides:u(Bh),guidesProcessingThreadHandle:Gh,getMode:y.constant("default")}),y.each(["identify","updateOptions","pageLoad","track"],function(t){var n=i[t];i[t]=function(){try{my()?n.apply(this,arguments):oe(i,t,arguments)}catch(e){I.critical(e)}}})}var QS,eA,tA,nA,iA,rA=le(),oA=(iA=q(QS=rA)?{}:window,oA=te(document.getElementsByTagName("script"),QS.apiKey),eA=QS.pendoGlobalKey||"pendo",oA&&(eA=oA.getAttribute("data-pendo-global-key")||eA,QS.pendoGlobalKey=eA),v=iA[eA]=iA[eA]||{});return QS=oA,ce(eA=rA),rt=pe("env")||rt,ot=pe("server")||ot,at=pe("assetHost")||at,st=pe("assetPath")||st,dt=pe("designerEnv")||dt,iA=pt()?rt+"_ext":rt,ut=Qe+"_"+iA,!q(eA)&&(iA=eA,eA=QS,nA=sf(),se(iA,eA,nA)||de(iA,eA,nA))||QS&&QS.VERSION||(m.get("disablePendo")?(tA=QS,y.each(["initialize","identify","updateOptions","pageLoad","track"],function(e){tA[e]=function(){console.log("Pendo is currently disabled.")}})):((iA=A).registerModule("debugger",y0),iA.registerModule("errorLog",i),iA.registerModule("frames",s),iA.registerModule("guideUpdate",e),iA.registerModule("guideState",or),iA.registerModule("healthCheck",l0),iA.registerModule("location",pr),iA.registerModule("monitoring",p0),iA.registerModule("metadata",h0),iA.registerModule("preview",v0),Go(),wc.behaviors=[rf,_b,yc.Guide,xb,kb,Ob,Nb],Cc.behaviors=[rf,Db,Mb,Rc,yc.Step,Lb,Bb],Rc.reset(),A.dispatch("frames/init"),jy.init(),xi.wrapSizzle(Jr),Jr.intercept(Hu),qS(QS),I.addEventListener("log",y.partial(A.dispatch,"errorLog/write")),oy(R0),oy(K0),oy(uI),oy(wI),oy(ew),oy(sw),oy(bw),oy(kw),oy(Ib),oy(zw),oy(gC),oy(FC),oy(YC),oy(KC),oy(lS),oy(NS),oy(JS),eA=QS._q,nA=Ay,iA=Iu,m.get("disableAutoInitialize")||(eA=(eA=Cy(eA))&&1<eA.length?eA[1]:{},y.get(eA,yy)||m.get(yy)?nA():by.push(iA(nA))))),oA}var TextCapture=function(){var i,r,n,o={};return{name:"TextCapture",initialize:function(e,t){r=t,(i=e).excludeAllText=r.ConfigReader.get("excludeAllText");t=r.ConfigReader.get("allowedText");o=i._.reduce(t,function(e,t){return i._.isString(t)&&(e[t]=!0),e},{}),r.NodeSerializer.add(a),n=i._.partial(s,e),r.Events.on("eventCaptured",n)},teardown:function(){r.NodeSerializer.remove(a),r.Events.off("eventCaptured",n)},isEnabled:d,isTextCapturable:function(e){var t=r.util.trim.call(e);return d()||i._.has(o,t)||i._.has(o,e)},hasWhitelist:function(){return 0<i._.size(o)},serializer:a,guideActivity:s};function a(e,t,n){return t===n&&(TextCapture.isEnabled()||!TextCapture.isEnabled()&&TextCapture.hasWhitelist())&&(t=i.getText(n,128),TextCapture.isTextCapturable(t))&&(e.txt=TextCapture.hasWhitelist()?r.util.trim.call(t):t),e}function s(e,t){var n;d()&&(n=t.data[0])&&"guideActivity"===n.type&&(t=e.getActiveGuide())&&(e=(0,e.BuildingBlocks.BuildingBlockGuides.findDomBlockInDomJson)(t.step.domJson,function(e){return e.props&&e.props.id&&e.props.id===n.props.ui_element_id}))&&(n.props.ui_element_text=e.content)}function d(){return!i.excludeAllText}}(),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}var substitutionRegex="\\{(?:\\s?)([^.\\s]?visitor|account|parentAccount)\\.([^|\\s/]*)(?:\\s?\\|\\s?([^}]+|[\\/s]+))?(?:\\s?\\/\\s?){1}\\}",skipStepString="{skipStep:* *(auto|\\d+)\\/}",goToMiddleString="(?!0)(\\d+)",goToString="({goto-".concat(goToMiddleString,"\\/})");function lookupGuideButtons(e,t){return void 0===t&&(t=[]),"button"===e.type&&e.actions&&t.push(e),e.children&&e.children.forEach(function(e){lookupGuideButtons(e,t)}),t}function removeMarkdownSyntax(e,t,n,i){var r;i.dom(e).hasClass("_pendo-nps-open-text-poll-question")&&(e.innerHTML=null==(r=e.innerHTML)?void 0:r.replace(t,n)),"div"===e.localName||("button"!==e.localName&&"label"!==e.localName&&"a"!==e.localName||(e.textContent=e.textContent.replace(t,n)),0<e.children.length)||(i.dom(e).hasClass("_pendo-simple-text")||i.dom(e).hasClass("_pendo-text-plain")||i.dom(e).hasClass("_pendo-text-list-item")||i.dom(e).hasClass("_pendo-text-link"))&&(e.textContent=e.textContent.replace(t,n))}var guideMarkdownUtil={substitutionRegex:substitutionRegex,skipStepString:skipStepString,goToString:goToString,lookupGuideButtons:lookupGuideButtons,removeMarkdownSyntax:removeMarkdownSyntax},goToRegex=new RegExp(guideMarkdownUtil.goToString),PollBranching={name:"PollBranching",script:function(r,o,a){var s=!1,e=initialBranchingSetup(r,a);!e||1<a._.size(e)||this.on("beforeAdvance",function(e){var t,n=0===r.guideElement.find("[branching] .pendo-radio:checked").length,i=r.guideElement.find("[branching] .pendo-radio:checked + label")[0];i&&(t=a._.isNull(i.getAttribute("goToStep"))),s||n||t||(s=!0,branchingGoToStep(e,r,o,a))})},test:function(e,t,n){e=null==(e=e.guideElement)?void 0:e.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return!n._.isUndefined(e)&&n._.size(e)},designerListener:function(i){var e=i.dom.getBody();function r(e,t){return'<svg id="pendo-ps-branching-svg" viewBox="0 0 24 24" fill="none"\n style="margin-left: 5px;\n height:'.concat(t,"; width:").concat(t,'; display:inline; vertical-align:middle;" xmlns="http://www.w3.org/2000/svg">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"></g>\n <g> <circle cx="4" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="7" r="2" stroke="').concat(e,'"\n stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></circle>\n <circle cx="20" cy="17" r="2" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></circle>\n <path d="M18 7H6" stroke="').concat(e,'" stroke-width="2"\n stroke-linecap="round" stroke-linejoin="round"></path>\n <path d="M7 7V7C8.65685 7 10 8.34315 10 10V15C10 16.1046 10.8954 17 12 17H18"\n stroke="').concat(e,'" stroke-width="2" stroke-linecap="round"\n stroke-linejoin="round"></path> </g></svg>')}new MutationObserver(function(e){e.forEach(function(e){var t=i._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelector);e.addedNodes.length&&t&&e.addedNodes[0].querySelector("._pendo-multi-choice-poll-select-border")&&i._.size(i.dom('._pendo-multi-choice-poll-question:contains("{branching/}")'))&&i.dom('._pendo-multi-choice-poll-question:contains("{branching/}")').each(function(e,t){i._.each(i.dom("#".concat(e.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","",i)}),i.dom("#".concat(e.id," p")).css({display:"inline-block !important"}).append(r("#999","20px")).attr({title:"Custom Branching Added"});var n=e.getAttribute("data-pendo-poll-id"),n=(i.dom("._pendo-multi-choice-poll-question[data-pendo-poll-id=".concat(n,"]"))[0]&&i.dom("._pendo-multi-choice-poll-question[data-pendo-poll-id=".concat(n,"]"))[0].textContent.trim(),i.dom("label[for*=".concat(n,"]")));i._.size(n)&&i._.forEach(n,function(e){var t;goToRegex.test(e.textContent)&&(t=goToRegex.exec(e.textContent)[2],guideMarkdownUtil.removeMarkdownSyntax(e,goToRegex,"",i),i.dom(e).append(r("#999","14px")).attr({title:"Branching to step ".concat(t)}))}),0<t&&(i.dom(e).append('<div style="text-align:lrft; font-size: 14px; color: red;\n font-style: italic; margin-top: 0px;" class="branching-wrapper"\n name="'.concat(e.dataset.pendoPollId,'">\n * Branching Error: Multiple branching polls not supported</div>')),i.dom("#".concat(e.id," #pendo-ps-branching-svg")).remove(),i.dom("#".concat(e.id," p")).css({display:"inline-block !important"}).append(r("red","20px")).attr({title:"Unsupported Branching configuration"}))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function initialBranchingSetup(n,i){var e=n.guideElement.find('._pendo-multi-choice-poll-question:contains("{branching/}")');return i._.forEach(e,function(e){var t=e.getAttribute("data-pendo-poll-id"),e=(i._.each(n.guideElement.find("#".concat(e.id," *")),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{branching/}","",i)}),n.guideElement.find("label[for*=".concat(t,"]"))),e=(i._.forEach(e,function(e){var t,n;i._.isNull(goToRegex.exec(e.textContent))||(t=goToRegex.exec(e.textContent)[1],n=goToRegex.exec(e.textContent)[2],e.setAttribute("goToStep",n),guideMarkdownUtil.removeMarkdownSyntax(e,t,"",i))}),n.guideElement.find("[data-pendo-poll-id=".concat(t,"]._pendo-multi-choice-poll-select-border")));e&&e.length&&e[0].setAttribute("branching","")}),e}function branchingGoToStep(e,t,n,i){var r=null==(r=t.guideElement.find("[branching] input.pendo-radio[data-pendo-poll-id]:checked")[0])?void 0:r.id,r=t.guideElement.find('label[for="'.concat(r,'"]'))[0],t=(null==r?void 0:r.getAttribute("goToStep"))-1;t<0||(r={destinationStepId:n.steps[t].id},i.goToStep(r),e.cancel=!0)}var containerSelector='[id^="pendo-guide-container"]',MetadataSubstitution={name:"MetadataSubstitution",script:function(e,t,n){var i=findSubstitutableElements(n);e.domJson&&findSubstitutableUrlsInJson(e.domJson,i,n),n._.size(i)&&(n._.each(i,function(e){processPlaceholder(e,n)}),updateGuideContainer("pendo-g-".concat(e.id),e.guideElement,n))},designerListener:function(i){var e=i.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t,n;e.addedNodes.length&&document.querySelector(containerSelector)&&(e=findSubstitutableElements(i),t=null==(t=i.designerv2.currentlyPreviewedGuide)?void 0:t.steps[0])&&(n=t.buildingBlocks,i._.isUndefined(n)||findSubstitutableUrlsInJson(n,e,i),i._.size(e))&&(i._.each(e,function(e){i._.isUndefined(e)||processPlaceholder(e,i)}),updateGuideContainer("pendo-g-".concat(t.id),t.guideElement,i))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}};function processPlaceholder(e,t){for(var n=e.data,i=e.target,r=new RegExp(guideMarkdownUtil.substitutionRegex);o=matchPlaceholder(e,r);){var o=r.exec(o);substituteMetadataByTarget(n,i,getSubstituteValue(o,t),o)}}function matchPlaceholder(e,t){return("textContent"===e.target?e.data[e.target]:decodeURI(e.data[e.target])).match(t)}function getSubstituteValue(e,t){if(!t._.isUndefined(e[1])&&!t._.isUndefined(e[2])){var n=e[1],i=e[2],e=e[3];if(!t._.isUndefined(n)&&!t._.isUndefined(i))return t._.get(t.getSerializedMetadata(),"".concat(n,".").concat(i))||e||""}}function substituteMetadataByTarget(e,t,n,i){e[t]="href"===t||"value"===t?decodeURI(e[t]).replace(i[0],window.encodeURI(n)):e[t].replace(i[0],n)}function updateGuideContainer(e,t,n){n.designer&&!n._.size(n.dom("#pendo-ps-substitution-icon"))&&n.dom(containerSelector).append(substitutionIcon("#999","30px")),n.flexElement(n.dom(containerSelector)),n.BuildingBlocks.BuildingBlockGuides.recalculateGuideHeight(e,t)}function findSubstitutableUrlsInJson(e,t,n){void 0===t&&(t=[]);var i=new RegExp(guideMarkdownUtil.substitutionRegex);return"url"!==e.name&&"href"!==e.name||!e.value||i.test(e.value)&&t.push({data:e,target:"value"}),e.properties&&"href_link_block"===e.id&&n._.each(e.properties,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.views&&n._.each(e.views,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.parameters&&n._.each(e.parameters,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.actions&&n._.each(e.actions,function(e){findSubstitutableUrlsInJson(e,t,n)}),e.children&&n._.each(e.children,function(e){findSubstitutableUrlsInJson(e,t,n)}),t}function findSubstitutableElements(n){var e=n.dom("".concat(containerSelector," *:not(.pendo-inline-ui)"));return n._.chain(e).filter(function(e){var t=new RegExp(guideMarkdownUtil.substitutionRegex);return"a"===e.localName?t.test(decodeURI(e.href))||t.test(e.textContent):"div"!==e.localName?"button"===e.localName||"label"===e.localName?t.test(e.textContent):0<e.children.length?void 0:n.dom(e).hasClass("_pendo-simple-text")||n.dom(e).hasClass("_pendo-text-plain")||n.dom(e).hasClass("_pendo-text-list-item")||n.dom(e).hasClass("_pendo-text-link")?t.test(e.textContent):t.test(e.textContent)||t.test(decodeURI(e.href)):void 0}).map(function(e){return"a"===e.localName&&n.dom(e).hasClass("_pendo-text-link")?[{data:e,target:"href"},{data:e,target:"textContent"}]:"a"===e.localName?{data:e,target:"href"}:"button"===e.localName||n.dom(e).hasClass("_pendo-simple-text")||n.dom(e).hasClass("_pendo-text-plain")||n.dom(e).hasClass("_pendo-text-list-item")||n.dom(e).hasClass("_pendo-text-link")?{data:e,target:"textContent"}:void 0}).flatten().value()}function substitutionIcon(e,t){return'<div title="Metadata Substitution added">\n <svg id="pendo-ps-substitution-icon" viewBox="0 0 24 24"\n preserveAspectRatio="xMidYMid meet"\n height='.concat(t," width=").concat(t,' title="Metadata Substitution"\n style="bottom:5px; right:10px; position: absolute;"\n fill="none" xmlns="http://www.w3.org/2000/svg" stroke="').concat(e,'"\n transform="matrix(1, 0, 0, 1, 0, 0)rotate(0)">\n <g stroke-width="0"></g>\n <g stroke-linecap="round" stroke-linejoin="round"\n stroke="').concat(e,'" stroke-width="0.528"></g>\n <g><path fill-rule="evenodd" clip-rule="evenodd"\n d="M5 5.5C4.17157 5.5 3.5 6.17157 3.5 7V10C3.5 10.8284\n 4.17157 11.5 5 11.5H8C8.82843 11.5 9.5 10.8284 9.5\n 10V9H17V11C17 11.2761 17.2239 11.5 17.5 11.5C17.7761\n 11.5 18 11.2761 18 11V8.5C18 8.22386 17.7761 8 17.5\n 8H9.5V7C9.5 6.17157 8.82843 5.5 8 5.5H5ZM8.5 7C8.5\n 6.72386 8.27614 6.5 8 6.5H5C4.72386 6.5 4.5 6.72386\n 4.5 7V10C4.5 10.2761 4.72386 10.5 5 10.5H8C8.27614\n 10.5 8.5 10.2761 8.5 10V7Z" fill="').concat(e,'"></path>\n <path fill-rule="evenodd" clip-rule="evenodd"\n d="M7 13C7 12.7239 6.77614 12.5 6.5 12.5C6.22386 12.5\n 6 12.7239 6 13V15.5C6 15.7761 6.22386 16 6.5\n 16H14.5V17C14.5 17.8284 15.1716 18.5 16 18.5H19C19.8284\n 18.5 20.5 17.8284 20.5 17V14C20.5 13.1716 19.8284 12.5\n 19 12.5H16C15.1716 12.5 14.5 13.1716 14.5\n 14V15H7V13ZM15.5 17C15.5 17.2761 15.7239 17.5 16\n 17.5H19C19.2761 17.5 19.5 17.2761 19.5 17V14C19.5\n 13.7239 19.2761 13.5 19 13.5H16C15.7239 13.5 15.5\n 13.7239 15.5 14V17Z" fill="').concat(e,'"></path> </g></svg></div>')}var requiredElement='<span class="_pendo-required-indicator" style="color:red; font-style:italic;" title="Question is required"> *</span>',RequiredQuestions={name:"RequiredQuestions",script:function(i,e,r){var t,n=[],o=null==(t=guideMarkdownUtil.lookupGuideButtons(i.domJson))?void 0:t.filter(function(e){return e.actions.find(function(e){return"submitPoll"===e.action||"submitPollAndGoToStep"===e.action})}),a=function(){var e=i.guideElement.find("[class*=-poll-question]:contains({required/})");e&&r._.forEach(e,function(e){var t=e.getAttribute("data-pendo-poll-id");n.push(t),r._.each(i.guideElement.find("#".concat(e.id," *, #").concat(e.id)),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","",r)}),i.guideElement.find("#".concat(e.id," p")).append(requiredElement)});r._.size(n)&&(0===r.dom("#_pendo-guide-required-disabled").length&&r.dom("head").append("<style type=text/css\n id=_pendo-guide-required-disabled>\n ._pendo-button:disabled, ._pendo-buttons[disabled] {\n border: 1px solid #999999 !important;\n background-color: #cccccc !important;\n color: #666666 !important;\n pointer-events: none !important;\n }\n </style>"),d(o));return e}();function s(e){var t,n;0!==e.length&&(t=!0,(t=(n=(n=[]).concat(r._.map(e,function(e){e=e.getAttribute("data-pendo-poll-id"),e=i.guideElement.find("\n [data-pendo-poll-id=".concat(e,"] textarea,\n [data-pendo-poll-id=").concat(e,"] input:text,\n [data-pendo-poll-id=").concat(e,"] select,\n [data-pendo-poll-id=").concat(e,"] input:radio:checked"));if(e&&e.length&&e[0].value)return e[0].value}))).includes(undefined)||r._.isEmpty(n)?!1:t)?o.forEach(function(e){i.guideElement.find("#".concat(e.props.id))[0]&&(i.guideElement.find("#".concat(e.props.id))[0].disabled=!1,i.guideElement.find("#".concat(e.props.id))[0].parentElement.title="")}):d(o))}function d(e){e.forEach(function(e){i.guideElement.find("#".concat(e.props.id))[0]&&(i.guideElement.find("#".concat(e.props.id))[0].disabled=!0,i.guideElement.find("#".concat(e.props.id))[0].parentElement.title="Please complete all required questions.")})}a&&(r._.forEach(a,function(e){e.classList.contains("_pendo-open-text-poll-question")&&(e=e.dataset.pendoPollId,i.attachEvent(i.guideElement.find("[data-pendo-poll-id=".concat(e,"]._pendo-open-text-poll-input"))[0],"input",function(){s(a)}))}),i.attachEvent(i.guideElement.find("#pendo-guide-container")[0],"click",function(e){e.target.classList.contains("_pendo-button")||s(a)}))},test:function(e,t,n){e=null==(e=e.guideElement)?void 0:e.find("[class*=-poll-question]:contains({required/})");return!n._.isUndefined(e)&&n._.size(e)},designerListener:function(n){var e=n.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=n._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(t=e.addedNodes[0].querySelectorAll("[class*=-poll-wrapper], [class*=-poll-select-border]"))&&t.forEach(function(e){var t,e=e.classList.contains("_pendo-open-text-poll-wrapper")||e.classList.contains("_pendo-number-scale-poll-wrapper")?e.getAttribute("name"):e.getAttribute("data-pendo-poll-id");(t=n.dom('[class*="-poll-question"][data-pendo-poll-id='.concat(e,"]"))[0]?n.dom('[class*="-poll-question"][data-pendo-poll-id='.concat(e,"]"))[0].textContent:t).includes("{required/}")&&(n._.each(n.dom("[data-pendo-poll-id=".concat(e,"]:not(.pendo-radio)")),function(e){n._.each(n.dom("#".concat(e.id,' *:not(".pendo-radio"), #').concat(e.id,':not(".pendo-radio")')),function(e){guideMarkdownUtil.removeMarkdownSyntax(e,"{required/}","",n)})}),(0!==n.dom(".bb-text[data-pendo-poll-id=".concat(e,"] p")).length||0!==n.dom(".bb-text[data-pendo-poll-id=".concat(e,"] li")).length?(n.dom(".bb-text[data-pendo-poll-id=".concat(e,"] p")).append(requiredElement),n.dom(".bb-text[data-pendo-poll-id=".concat(e,"] li"))):n.dom(".bb-text[data-pendo-poll-id=".concat(e,"]"))).append(requiredElement))})})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},skipStepRegex=new RegExp(guideMarkdownUtil.skipStepString),SkipToEligibleStep={script:function(i,r,o){var n=!1,a=!1,e=i.guideElement.find("#pendo-guide-container"),t=e.attr("aria-label"),s=skipStepRegex.exec(t)[1];function d(e,t){var n=u(r.getPositionOfStep(i),"next",e),e=u(r.getPositionOfStep(i)-2,"previous",e);return n&&"next"==t&&o.goToStep({destinationStepId:n}),e&&"previous"==t&&o.goToStep({destinationStepId:e}),"next"===t?n:e}function u(e,t,n){var i;if(!o._.isNaN(e))return(i=r.steps[e])&&!i.canShow()?"auto"!==n?r.steps[n-1]:"next"===t?u(e+1,"next",n):u(e-1,"previous",n):i}e&&e.attr({"aria-label":e.attr("aria-label").replace(skipStepRegex,"")}),this.on("beforeAdvance",function(e){var t;r.getPositionOfStep(i)===r.steps.length||o._.isUndefined(s)||(t=d(s,"next"),!n&&s&&(n=!0,o.goToStep({destinationStepId:t.id}),e.cancel=!0))}),this.on("beforePrevious",function(e){var t;o._.isUndefined(s)||(t=d(s,"previous"),!a&&s&&(a=!0,o.goToStep({destinationStepId:t.id}),e.cancel=!0))})},test:function(e,t,n){e=null==(e=e.guideElement)?void 0:e.find("#pendo-guide-container").attr("aria-label");return!n._.isUndefined(e)&&(null==e?void 0:e.includes("{skipStep"))},designerListener:function(n){var e=n.dom.getBody();new MutationObserver(function(e){e.forEach(function(e){var t=n._.isFunction(null==(t=e.addedNodes[0])?void 0:t.querySelectorAll);e.addedNodes.length&&t&&(e=null==(t=e.addedNodes[0].querySelectorAll("#pendo-guide-container")[0])?void 0:t.getAttribute("aria-label"))&&e.match(skipStepRegex)&&(t=e.match(skipStepRegex)[0],e.replace(t,""),n.dom("#_pendoSkipIcon").length||n.dom("#pendo-guide-container").append((t="#999",'<div title="Skip step added"><svg id="_pendoSkipIcon" version="1.0" xmlns="http://www.w3.org/2000/svg"\n width="'.concat(e="30px",'" height="').concat(e,'" viewBox="0 0 512.000000 512.000000"\n preserveAspectRatio="xMidYMid meet" style="bottom:5px; right:10px; position: absolute;">\n <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)"\n fill="').concat(t,'" stroke="none">\n <path d="M2185 4469 c-363 -38 -739 -186 -1034 -407 -95 -71 -273 -243 -357\n -343 -205 -246 -364 -577 -429 -897 -25 -121 -45 -288 -45 -373 l0 -49 160 0\n 160 0 0 48 c0 26 5 88 10 137 68 593 417 1103 940 1374 1100 570 2418 -137\n 2560 -1374 5 -49 10 -111 10 -137 l0 -47 -155 -3 -155 -3 235 -235 235 -236\n 235 236 235 235 -155 3 -155 3 0 48 c0 27 -5 95 -10 152 -100 989 -878 1767\n -1869 1868 -117 12 -298 12 -416 0z"/>\n <path d="M320 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M960 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M1600 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2240 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M2880 1440 l0 -160 160 0 160 0 0 160 0 160 -160 0 -160 0 0 -160z"/>\n <path d="M3840 1440 l0 -160 480 0 480 0 0 160 0 160 -480 0 -480 0 0 -160z"/>\n </g></svg></div>\n ').trim())))})}).observe(e,{attributeFilter:["data-layout"],attributes:!0,childList:!0,characterData:!0,subtree:!1})}},GuideMarkdown=function(){var r,o,a;return{name:"GuideMarkdown",initialize:function(e,t){a=e;var n=(o=t).ConfigReader,i="guideMarkdown";n.addOption(i,[n.sources.SNIPPET_SRC,n.sources.PENDO_CONFIG_SRC],!1),n.get(i)&&(r=[PollBranching,MetadataSubstitution,RequiredQuestions,SkipToEligibleStep],e.designer||r.forEach(function(e){t.GlobalRuntime.addGlobalScript(e)}),t.Events.on("designerLaunched",s))},teardown:function(){o.Events.off("designerLaunched",s),r.forEach(function(e){o.GlobalRuntime.removeGlobalScript(e)})}};function s(){r.forEach(function(e){e.designerListener&&e.designerListener(a,o)})}}(),setTimeout=safeBind(window.setTimeout,window);function safeBind(e,t){return"function"==typeof e.bind?e.bind(t):e}var setTimeout$1=setTimeout=function(e){var t="setTimeout",n="__symbol__";if("undefined"!=typeof Zone&&Zone[n]instanceof Function){n=e[Zone[n](t)];if(n instanceof Function)return n}return safeBind(e[t],e)}(window),Promise$3=window.Promise,Promise$4=Promise$3=function(e){var t=window.Promise;return"function"==typeof t&&/native/.test(t)?t:e()}(function(){var t=setTimeout$1;function u(e){return Boolean(e&&"undefined"!=typeof e.length)}function i(){}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=undefined,this._deferreds=[],l(e,this)}function r(i,r){for(;3===i._state;)i=i._value;0===i._state?i._deferreds.push(r):(i._handled=!0,a._immediateFn(function(){var e,t=1===i._state?r.onFulfilled:r.onRejected;if(null===t)(1===i._state?o:s)(r.promise,i._value);else{try{e=t(i._value)}catch(n){return void s(r.promise,n)}o(r.promise,e)}}))}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void d(e);if("function"==typeof n)return void l((i=n,r=t,function(){i.apply(r,arguments)}),e)}e._state=1,e._value=t,d(e)}catch(o){s(e,o)}var i,r}function s(e,t){e._state=2,e._value=t,d(e)}function d(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)r(e,e._deferreds[t]);e._deferreds=null}function c(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,s(t,e))})}catch(i){n||(n=!0,s(t,i))}}return a.prototype["catch"]=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(i);return r(this,new c(e,t,n)),n},a.prototype["finally"]=function(t){var n=this.constructor;return this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){return n.reject(e)})})},a.all=function(t){return new a(function(r,o){if(!u(t))return o(new TypeError("Promise.all accepts an array"));var a=Array.prototype.slice.call(t);if(0===a.length)return r([]);var s=a.length;function d(t,e){try{if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){d(t,e)},o)}a[t]=e,0==--s&&r(a)}catch(i){o(i)}}for(var e=0;e<a.length;e++)d(e,a[e])})},a.allSettled=function(n){return new this(function(i,e){if(!n||"undefined"==typeof n.length)return e(new TypeError(typeof n+" "+n+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(n);if(0===r.length)return i([]);var o=r.length;for(var t=0;t<r.length;t++)!function a(t,e){if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void n.call(e,function(e){a(t,e)},function(e){r[t]={status:"rejected",reason:e},0==--o&&i(r)})}r[t]={status:"fulfilled",value:e},0==--o&&i(r)}(t,r[t])})},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a(function(e){e(t)})},a.reject=function(n){return new a(function(e,t){t(n)})},a.race=function(r){return new a(function(e,t){if(!u(r))return t(new TypeError("Promise.race accepts an array"));for(var n=0,i=r.length;n<i;n++)a.resolve(r[n]).then(e,t)})},a._immediateFn="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){t(e,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},a});function isObject$8(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$8,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,now$1=function(){return root$8.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=trimmedEndIndex$1,reTrimStart=/^\s+/;function baseTrim$1(e){return e&&e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,"")}var _baseTrim=baseTrim$1,root$7=_root,Symbol$6=_root.Symbol,_Symbol=Symbol$6,Symbol$5=_Symbol,objectProto$d=Object.prototype,hasOwnProperty$a=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$5?Symbol$5.toStringTag:undefined;function getRawTag$1(e){var t=hasOwnProperty$a.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=undefined;var i=!0}catch(o){}var r=nativeObjectToString$1.call(e);return i&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),r}var _getRawTag=getRawTag$1,objectProto$c=Object.prototype,nativeObjectToString=objectProto$c.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$4=_Symbol,getRawTag=_getRawTag,objectToString=objectToString$1,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol?_Symbol.toStringTag:undefined;function baseGetTag$6(e){return null==e?e===undefined?undefinedTag:nullTag:(symToStringTag&&symToStringTag in Object(e)?getRawTag:objectToString)(e)}var _baseGetTag=baseGetTag$6;function isObjectLike$7(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike$7,baseGetTag$5=_baseGetTag,isObjectLike$6=isObjectLike_1,symbolTag$2="[object Symbol]";function isSymbol$4(e){return"symbol"==typeof e||isObjectLike$6(e)&&baseGetTag$5(e)==symbolTag$2}var isSymbol_1=isSymbol$4,baseTrim=_baseTrim,isObject$7=isObject_1,isSymbol$3=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(e){if("number"==typeof e)return e;if(isSymbol$3(e))return NAN;if(isObject$7(e)&&(t="function"==typeof e.valueOf?e.valueOf():e,e=isObject$7(t)?t+"":t),"string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var t=reIsBinary.test(e);return t||reIsOctal.test(e)?freeParseInt(e.slice(2),t?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$1,isObject$6=isObject_1,now=now_1,toNumber=toNumber$1,FUNC_ERROR_TEXT$2="Expected a function",nativeMax$1=Math.max,nativeMin=Math.min;function debounce$1(i,n,e){var r,o,a,s,d,u,c=0,l=!1,p=!1,t=!0;if("function"!=typeof i)throw new TypeError(FUNC_ERROR_TEXT$2);function h(e){var t=r,n=o;return r=o=undefined,c=e,s=i.apply(n,t)}function f(e){var t=e-u;return u===undefined||n<=t||t<0||p&&a<=e-c}function g(){var e,t=now();if(f(t))return m(t);d=setTimeout$1(g,(e=n-((t=t)-u),p?nativeMin(e,a-(t-c)):e))}function m(e){return d=undefined,t&&r?h(e):(r=o=undefined,s)}function v(){var e=now(),t=f(e);if(r=arguments,o=this,u=e,t){if(d===undefined)return c=e=u,d=setTimeout$1(g,n),l?h(e):s;if(p)return clearTimeout(d),d=setTimeout$1(g,n),h(u)}return d===undefined&&(d=setTimeout$1(g,n)),s}return n=toNumber(n)||0,isObject$6(e)&&(l=!!e.leading,p="maxWait"in e,a=p?nativeMax$1(toNumber(e.maxWait)||0,n):a,t="trailing"in e?!!e.trailing:t),v.cancel=function(){d!==undefined&&clearTimeout(d),c=0,r=u=o=d=undefined},v.flush=function(){return d===undefined?s:m(now())},v}var debounce_1=debounce$1,debounce=debounce$1,isObject$5=isObject_1,FUNC_ERROR_TEXT$1="Expected a function";function throttle$1(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1);return isObject$5(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),debounce(e,t,{leading:i,maxWait:t,trailing:r})}var throttle_1=throttle$1,throttle$2=getDefaultExportFromCjs(throttle$1),isArray$8=Array.isArray,isArray_1=isArray$8,isArray$7=isArray_1,isSymbol$2=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$1(e,t){var n;return!isArray$7(e)&&(!("number"!=(n=typeof e)&&"symbol"!=n&&"boolean"!=n&&null!=e&&!isSymbol$2(e))||reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey$1,baseGetTag$4=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){return!!isObject$4(e)&&((e=baseGetTag$4(e))==funcTag$2||e==genTag$1||e==asyncTag||e==proxyTag)}var isFunction_1=isFunction$2,isFunction$3=getDefaultExportFromCjs(isFunction_1),root$6=_root,coreJsData$1=_root["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=coreJsData$1,maskSrcKey=function(){var e=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource$2(e){if(null!=e){try{return funcToString$2.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$b=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$9=objectProto$b.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$9).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){return!(!isObject$3(e)||isMasked(e))&&(isFunction$1(e)?reIsNative:reIsHostCtor).test(toSource$1(e))}var _baseIsNative=baseIsNative$1;function getValue$1(e,t){return null==e?undefined:e[t]}var _getValue=getValue$1,baseIsNative=baseIsNative$1,getValue=getValue$1;function getNative$9(e,t){e=getValue(e,t);return baseIsNative(e)?e:undefined}var _getNative=getNative$9,getNative$8=_getNative,nativeCreate$4=_getNative(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){e=this.has(e)&&delete this.__data__[e];return this.size-=e?1:0,e}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__",objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty;function hashGet$1(e){var t,n=this.__data__;return nativeCreate$2?(t=n[e])===HASH_UNDEFINED$1?undefined:t:hasOwnProperty$8.call(n,e)?n[e]:undefined}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$9=Object.prototype,hasOwnProperty$7=objectProto$9.hasOwnProperty;function hashHas$1(e){var t=this.__data__;return nativeCreate$1?t[e]!==undefined:hasOwnProperty$7.call(t,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet$1(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nativeCreate&&t===undefined?HASH_UNDEFINED:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=hashHas$1,hashSet=hashSet$1;function Hash$1(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype["delete"]=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(e,t){return e===t||e!=e&&t!=t}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(e,t){for(var n=e.length;n--;)if(eq$1(e[n][0],t))return n;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var t=this.__data__,e=assocIndexOf$3(t,e);return!(e<0||(e==t.length-1?t.pop():splice.call(t,e,1),--this.size,0))}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var t=this.__data__,e=assocIndexOf$2(t,e);return e<0?undefined:t[e][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return-1<assocIndexOf$1(this.__data__,e)}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,t){var n=this.__data__,i=assocIndexOf(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=listCacheDelete$1,listCacheGet=listCacheGet$1,listCacheHas=listCacheHas$1,listCacheSet=listCacheSet$1;function ListCache$4(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype["delete"]=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$7=_getNative,root$5=_root,Map$4=_getNative(_root,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var _isKeyable=isKeyable$1,isKeyable=isKeyable$1;function getMapData$4(e,t){e=e.__data__;return isKeyable(t)?e["string"==typeof t?"string":"hash"]:e.map}var _getMapData=getMapData$4,getMapData$3=getMapData$4;function mapCacheDelete$1(e){e=getMapData$3(this,e)["delete"](e);return this.size-=e?1:0,e}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=getMapData$4;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=getMapData$4;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=getMapData$4;function mapCacheSet$1(e,t){var n=getMapData(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=mapCacheClear$1,mapCacheDelete=mapCacheDelete$1,mapCacheGet=mapCacheGet$1,mapCacheHas=mapCacheHas$1,mapCacheSet=mapCacheSet$1;function MapCache$2(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}MapCache$2.prototype.clear=mapCacheClear,MapCache$2.prototype["delete"]=mapCacheDelete,MapCache$2.prototype.get=mapCacheGet,MapCache$2.prototype.has=mapCacheHas,MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,MapCache$1=_MapCache,FUNC_ERROR_TEXT="Expected a function";function memoize$1(i,r){if("function"!=typeof i||null!=r&&"function"!=typeof r)throw new TypeError(FUNC_ERROR_TEXT);var o=function(){var e=arguments,t=r?r.apply(this,e):e[0],n=o.cache;return n.has(t)?n.get(t):(e=i.apply(this,e),o.cache=n.set(t,e)||n,e)};return o.cache=new(memoize$1.Cache||MapCache$1),o}memoize$1.Cache=MapCache$1;var memoize_1=memoize$1,memoize=memoize$1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(e){var e=memoize(e,function(e){return t.size===MAX_MEMOIZE_SIZE&&t.clear(),e}),t=e.cache;return e}var _memoizeCapped=memoizeCapped$1,memoizeCapped=memoizeCapped$1,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped$1(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(rePropName,function(e,t,n,i){r.push(n?i.replace(reEscapeChar,"$1"):t||e)}),r}),_stringToPath=stringToPath$1;function arrayMap$2(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}var _arrayMap=arrayMap$2,Symbol$3=_Symbol,arrayMap$1=_arrayMap,isArray$6=isArray_1,isSymbol$1=isSymbol_1,INFINITY$1=1/0,symbolProto$1=_Symbol?_Symbol.prototype:undefined,symbolToString=symbolProto$1?symbolProto$1.toString:undefined;function baseToString$1(e){var t;return"string"==typeof e?e:isArray$6(e)?arrayMap$1(e,baseToString$1)+"":isSymbol$1(e)?symbolToString?symbolToString.call(e):"":"0"==(t=e+"")&&1/e==-INFINITY$1?"-0":t}var _baseToString=baseToString$1,baseToString=baseToString$1;function toString$2(e){return null==e?"":baseToString(e)}var toString_1=toString$2,isArray$5=isArray_1,isKey=_isKey,stringToPath=_stringToPath,toString$1=toString$2;function castPath$3(e,t){return isArray$5(e)?e:isKey(e,t)?[e]:stringToPath(toString$1(e))}var _castPath=castPath$3,isSymbol=isSymbol_1,INFINITY=1/0;function toKey$2(e){var t;return"string"==typeof e||isSymbol(e)?e:"0"==(t=e+"")&&1/e==-INFINITY?"-0":t}var _toKey=toKey$2,castPath$2=_castPath,toKey$1=_toKey;function baseGet$2(e,t){for(var n=0,i=(t=castPath$2(t,e)).length;null!=e&&n<i;)e=e[toKey$1(t[n++])];return n&&n==i?e:undefined}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get(e,t,n){e=null==e?undefined:baseGet$1(e,t);return e===undefined?n:e}var get_1=get,get$1=getDefaultExportFromCjs(get),toString=toString$2,idCounter=0;function uniqueId(e){var t=++idCounter;return toString(e)+t}var uniqueId_1=uniqueId,uniqueId$1=getDefaultExportFromCjs(uniqueId),ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(e){var t=this.__data__,e=t["delete"](e);return this.size=t.size,e}var _stackDelete=stackDelete$1;function stackGet$1(e){return this.__data__.get(e)}var _stackGet=stackGet$1;function stackHas$1(e){return this.__data__.has(e)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(e,t){var n=this.__data__;if(n instanceof ListCache$1){var i=n.__data__;if(!Map$2||i.length<LARGE_ARRAY_SIZE-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new MapCache(i)}return n.set(e,t),this.size=n.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=stackClear$1,stackDelete=stackDelete$1,stackGet=stackGet$1,stackHas=stackHas$1,stackSet=stackSet$1;function Stack$1(e){e=this.__data__=new ListCache(e);this.size=e.size}Stack$1.prototype.clear=stackClear,Stack$1.prototype["delete"]=stackDelete,Stack$1.prototype.get=stackGet,Stack$1.prototype.has=stackHas,Stack$1.prototype.set=stackSet;var _Stack=Stack$1;function arrayEach$2(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}var _arrayEach=arrayEach$2,getNative$6=_getNative,defineProperty$2=function(){try{var e=getNative$6(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),_defineProperty=defineProperty$2,defineProperty$1=_defineProperty;function baseAssignValue$2(e,t,n){"__proto__"==t&&defineProperty$1?defineProperty$1(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var _baseAssignValue=baseAssignValue$2,baseAssignValue$1=_baseAssignValue,eq=eq_1,objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty;function assignValue$2(e,t,n){var i=e[t];hasOwnProperty$6.call(e,t)&&eq(i,n)&&(n!==undefined||t in e)||baseAssignValue$1(e,t,n)}var _assignValue=assignValue$2,assignValue$1=_assignValue,baseAssignValue=_baseAssignValue;function copyObject$5(e,t,n,i){for(var r=!n,o=(n=n||{},-1),a=t.length;++o<a;){var s=t[o],d=i?i(n[s],e[s],s,n,e):undefined;d===undefined&&(d=e[s]),(r?baseAssignValue:assignValue$1)(n,s,d)}return n}var _copyObject=copyObject$5;function baseTimes$1(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}var _baseTimes=baseTimes$1,baseGetTag$3=_baseGetTag,isObjectLike$5=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(e){return isObjectLike$5(e)&&baseGetTag$3(e)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=baseIsArguments$1,isObjectLike$4=isObjectLike_1,objectProto$7=Object.prototype,hasOwnProperty$5=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments$2=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike$4(e)&&hasOwnProperty$5.call(e,"callee")&&!propertyIsEnumerable$1.call(e,"callee")},isArguments_1=isArguments$2,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse,isBufferExports=(isBuffer$2.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?_root.Buffer:undefined,t=n?n.isBuffer:undefined;e.exports=t||stubFalse_1}(isBuffer$2,isBuffer$2.exports),isBuffer$2.exports),MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$1(e,t){var n=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==n||"symbol"!=n&&reIsUint.test(e))&&-1<e&&e%1==0&&e<t}var _isIndex=isIndex$1,MAX_SAFE_INTEGER=9007199254740991;function isLength$2(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$2=_baseGetTag,isLength$1=isLength_1,isObjectLike$3=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$3="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray$1(e){return isObjectLike$3(e)&&isLength$1(e.length)&&!!typedArrayTags[baseGetTag$2(e)]}typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(t){return function(e){return t(e)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}},_nodeUtilExports=(_nodeUtil.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,i=n&&n.exports===t&&_freeGlobal.process,t=function(){try{var e=n&&n.require&&n.require("util").types;return e?e:i&&i.binding&&i.binding("util")}catch(t){}}();e.exports=t}(_nodeUtil,_nodeUtil.exports),_nodeUtil.exports),baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=_nodeUtilExports&&_nodeUtilExports.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$1,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$4=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray=isTypedArray$1,objectProto$6=Object.prototype,hasOwnProperty$4=objectProto$6.hasOwnProperty;function arrayLikeKeys$2(e,t){var n,i=isArray$4(e),r=!i&&isArguments$1(e),o=!i&&!r&&isBuffer$1(e),a=!i&&!r&&!o&&isTypedArray(e),s=i||r||o||a,d=s?baseTimes(e.length,String):[],u=d.length;for(n in e)!t&&!hasOwnProperty$4.call(e,n)||s&&("length"==n||o&&("offset"==n||"parent"==n)||a&&("buffer"==n||"byteLength"==n||"byteOffset"==n)||isIndex(n,u))||d.push(n);return d}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$5=Object.prototype;function isPrototype$3(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$5)}var _isPrototype=isPrototype$3;function overArg$2(t,n){return function(e){return t(n(e))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=_overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=nativeKeys$1,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function baseKeys$1(e){if(!isPrototype$2(e))return nativeKeys(e);var t,n=[];for(t in Object(e))hasOwnProperty$3.call(e,t)&&"constructor"!=t&&n.push(t);return n}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength=isLength_1;function isArrayLike$3(e){return null!=e&&isLength(e.length)&&!isFunction(e)}var isArrayLike_1=isArrayLike$3,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=baseKeys$1,isArrayLike$2=isArrayLike_1;function keys$4(e){return(isArrayLike$2(e)?arrayLikeKeys$1:baseKeys)(e)}var keys_1=keys$4,copyObject$4=_copyObject,keys$3=keys_1;function baseAssign$1(e,t){return e&©Object$4(t,keys$3(t),e)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}var _nativeKeysIn=nativeKeysIn$1,isObject$2=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=nativeKeysIn$1,objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function baseKeysIn$1(e){if(!isObject$2(e))return nativeKeysIn(e);var t,n=isPrototype$1(e),i=[];for(t in e)("constructor"!=t||!n&&hasOwnProperty$2.call(e,t))&&i.push(t);return i}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=baseKeysIn$1,isArrayLike$1=isArrayLike_1;function keysIn$3(e){return isArrayLike$1(e)?arrayLikeKeys(e,!0):baseKeysIn(e)}var keysIn_1=keysIn$3,copyObject$3=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(e,t){return e&©Object$3(t,keysIn$2(t),e)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}},_cloneBufferExports=(_cloneBuffer.exports,!function(e,t){var t=t&&!t.nodeType&&t,n=t&&e&&!e.nodeType&&e,n=n&&n.exports===t?_root.Buffer:undefined,i=n?n.allocUnsafe:undefined;e.exports=function(e,t){return t?e.slice():(t=e.length,t=i?i(t):new e.constructor(t),e.copy(t),t)}}(_cloneBuffer,_cloneBuffer.exports),_cloneBuffer.exports);function copyArray$1(e,t){var n=-1,i=e.length;for(t=t||Array(i);++n<i;)t[n]=e[n];return t}var _copyArray=copyArray$1;function arrayFilter$1(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o}var _arrayFilter=arrayFilter$1;function stubArray$2(){return[]}var stubArray_1=stubArray$2,arrayFilter=arrayFilter$1,stubArray$1=stubArray_1,objectProto$2=Object.prototype,propertyIsEnumerable=objectProto$2.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols$3=nativeGetSymbols$1?function(t){return null==t?[]:(t=Object(t),arrayFilter(nativeGetSymbols$1(t),function(e){return propertyIsEnumerable.call(t,e)}))}:stubArray$1,_getSymbols=getSymbols$3,copyObject$2=_copyObject,getSymbols$2=_getSymbols;function copySymbols$1(e,t){return copyObject$2(e,getSymbols$2(e),t)}var _copySymbols=copySymbols$1;function arrayPush$3(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}var _arrayPush=arrayPush$3,overArg=_overArg,getPrototype$3=_overArg(Object.getPrototypeOf,Object),_getPrototype=getPrototype$3,arrayPush$2=_arrayPush,getPrototype$2=_getPrototype,getSymbols$1=_getSymbols,stubArray=stubArray_1,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols?function(e){for(var t=[];e;)arrayPush$2(t,getSymbols$1(e)),e=getPrototype$2(e);return t}:stubArray,_getSymbolsIn=getSymbolsIn$2,copyObject$1=_copyObject,getSymbolsIn$1=getSymbolsIn$2;function copySymbolsIn$1(e,t){return copyObject$1(e,getSymbolsIn$1(e),t)}var _copySymbolsIn=copySymbolsIn$1,arrayPush$1=_arrayPush,isArray$3=isArray_1;function baseGetAllKeys$2(e,t,n){t=t(e);return isArray$3(e)?t:arrayPush$1(t,n(e))}var _baseGetAllKeys=baseGetAllKeys$2,baseGetAllKeys$1=baseGetAllKeys$2,getSymbols=_getSymbols,keys$2=keys_1;function getAllKeys$1(e){return baseGetAllKeys$1(e,keys$2,getSymbols)}var _getAllKeys=getAllKeys$1,baseGetAllKeys=baseGetAllKeys$2,getSymbolsIn=getSymbolsIn$2,keysIn$1=keysIn_1;function getAllKeysIn$2(e){return baseGetAllKeys(e,keysIn$1,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$2,getNative$5=_getNative,root$4=_root,DataView$2=_getNative(_root,"DataView"),_DataView=DataView$2,getNative$4=_getNative,root$3=_root,Promise$2=_getNative(_root,"Promise"),_Promise=Promise$2,getNative$3=_getNative,root$2=_root,Set$2=_getNative(_root,"Set"),_Set=Set$2,getNative$2=_getNative,root$1=_root,WeakMap$2=_getNative(_root,"WeakMap"),_WeakMap=WeakMap$2,DataView$1=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=WeakMap$2,baseGetTag$1=_baseGetTag,toSource=_toSource,mapTag$3="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$3="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$2="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$3=baseGetTag$1,_getTag=getTag$3=DataView$1&&getTag$3(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$2||Map$1&&getTag$3(new Map$1)!=mapTag$3||Promise$1&&getTag$3(Promise$1.resolve())!=promiseTag||Set$1&&getTag$3(new Set$1)!=setTag$3||WeakMap$1&&getTag$3(new WeakMap$1)!=weakMapTag$1?function(e){var t=baseGetTag$1(e),e=t==objectTag$2?e.constructor:undefined,e=e?toSource(e):"";if(e)switch(e){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$3;case promiseCtorString:return promiseTag;case setCtorString:return setTag$3;case weakMapCtorString:return weakMapTag$1}return t}:getTag$3,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function initCloneArray$1(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&hasOwnProperty$1.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var _initCloneArray=initCloneArray$1,root=_root,Uint8Array$2=_root.Uint8Array,_Uint8Array=Uint8Array$2,Uint8Array$1=Uint8Array$2;function cloneArrayBuffer$3(e){var t=new e.constructor(e.byteLength);return new Uint8Array$1(t).set(new Uint8Array$1(e)),t}var _cloneArrayBuffer=cloneArrayBuffer$3,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneDataView$1(e,t){t=t?cloneArrayBuffer$2(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(e){var t=new e.constructor(e.source,reFlags.exec(e));return t.lastIndex=e.lastIndex,t}var _cloneRegExp=cloneRegExp$1,Symbol$2=_Symbol,symbolProto=_Symbol?_Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined;function cloneSymbol$1(e){return symbolValueOf?Object(symbolValueOf.call(e)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer$1=_cloneArrayBuffer;function cloneTypedArray$1(e,t){t=t?cloneArrayBuffer$1(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}var _cloneTypedArray=cloneTypedArray$1,cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=cloneSymbol$1,cloneTypedArray=cloneTypedArray$1,boolTag$1="[object Boolean]",dateTag$1="[object Date]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag$1(e,t,n){var i=e.constructor;switch(t){case arrayBufferTag$1:return cloneArrayBuffer(e);case boolTag$1:case dateTag$1:return new i(+e);case dataViewTag$1:return cloneDataView(e,n);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(e,n);case mapTag$2:return new i;case numberTag$1:case stringTag$1:return new i(e);case regexpTag$1:return cloneRegExp(e);case setTag$2:return new i;case symbolTag$1:return cloneSymbol(e)}}var _initCloneByTag=initCloneByTag$1,isObject$1=isObject_1,objectCreate=Object.create,baseCreate$1=function(){function t(){}return function(e){if(!isObject$1(e))return{};if(objectCreate)return objectCreate(e);t.prototype=e;e=new t;return t.prototype=undefined,e}}(),_baseCreate=baseCreate$1,baseCreate=baseCreate$1,getPrototype$1=_getPrototype,isPrototype=_isPrototype;function initCloneObject$1(e){return"function"!=typeof e.constructor||isPrototype(e)?{}:baseCreate(getPrototype$1(e))}var _initCloneObject=initCloneObject$1,getTag$2=_getTag,isObjectLike$2=isObjectLike_1,mapTag$1="[object Map]";function baseIsMap$1(e){return isObjectLike$2(e)&&getTag$2(e)==mapTag$1}var _baseIsMap=baseIsMap$1,baseIsMap=baseIsMap$1,baseUnary$1=_baseUnary,nodeUtil$1=_nodeUtilExports,nodeIsMap=_nodeUtilExports&&_nodeUtilExports.isMap,isMap$1=nodeIsMap?baseUnary$1(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$1=_getTag,isObjectLike$1=isObjectLike_1,setTag$1="[object Set]";function baseIsSet$1(e){return isObjectLike$1(e)&&getTag$1(e)==setTag$1}var _baseIsSet=baseIsSet$1,baseIsSet=baseIsSet$1,baseUnary=_baseUnary,nodeUtil=_nodeUtilExports,nodeIsSet=_nodeUtilExports&&_nodeUtilExports.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack=_Stack,arrayEach$1=_arrayEach,assignValue=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer=_cloneBufferExports,copyArray=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys=_getAllKeys,getAllKeysIn$1=_getAllKeysIn,getTag=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject=_initCloneObject,isArray$2=isArray_1,isBuffer=isBufferExports,isMap=isMap_1,isObject=isObject_1,isSet=isSet$1,keys$1=keys_1,keysIn=keysIn_1,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$1=4,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag$1="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};function baseClone$1(n,i,r,e,t,o){var a,s=i&CLONE_DEEP_FLAG$1,d=i&CLONE_FLAT_FLAG$1,u=i&CLONE_SYMBOLS_FLAG$1;if((a=r?t?r(n,e,t,o):r(n):a)===undefined){if(!isObject(n))return n;e=isArray$2(n);if(e){if(a=initCloneArray(n),!s)return copyArray(n,a)}else{var c=getTag(n),l=c==funcTag||c==genTag;if(isBuffer(n))return cloneBuffer(n,s);if(c==objectTag$1||c==argsTag||l&&!t){if(a=d||l?{}:initCloneObject(n),!s)return d?copySymbolsIn(n,baseAssignIn(a,n)):copySymbols(n,baseAssign(a,n))}else{if(!cloneableTags[c])return t?n:{};a=initCloneByTag(n,c,s)}}l=(o=o||new Stack).get(n);if(l)return l;o.set(n,a),isSet(n)?n.forEach(function(e){a.add(baseClone$1(e,i,r,e,n,o))}):isMap(n)&&n.forEach(function(e,t){a.set(t,baseClone$1(e,i,r,t,n,o))});var p=e?undefined:(u?d?getAllKeysIn$1:getAllKeys:d?keysIn:keys$1)(n);arrayEach$1(p||n,function(e,t){p&&(e=n[t=e]),assignValue(a,t,baseClone$1(e,i,r,t,n,o))})}return a}cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag$1]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0,cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;var _baseClone=baseClone$1;function last$1(e){var t=null==e?0:e.length;return t?e[t-1]:undefined}var last_1=last$1;function baseSlice$1(e,t,n){for(var i=-1,r=e.length,o=((n=r<n?r:n)<0&&(n+=r),r=n<(t=t<0?r<-t?0:r+t:t)?0:n-t>>>0,t>>>=0,Array(r));++i<r;)o[i]=e[i+t];return o}var _baseSlice=baseSlice$1,baseGet=_baseGet,baseSlice=baseSlice$1;function parent$1(e,t){return t.length<2?e:baseGet(e,baseSlice(t,0,-1))}var _parent=parent$1,castPath$1=_castPath,last=last$1,parent=parent$1,toKey=_toKey;function baseUnset$1(e,t){return t=castPath$1(t,e),null==(e=parent(e,t))||delete e[toKey(last(t))]}var _baseUnset=baseUnset$1,baseGetTag=_baseGetTag,getPrototype=_getPrototype,isObjectLike=isObjectLike_1,objectTag="[object Object]",funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$1(e){return!(!isObjectLike(e)||baseGetTag(e)!=objectTag)&&(null===(e=getPrototype(e))||"function"==typeof(e=hasOwnProperty.call(e,"constructor")&&e.constructor)&&e instanceof e&&funcToString.call(e)==objectCtorString)}var isPlainObject_1=isPlainObject$1,isPlainObject=isPlainObject$1;function customOmitClone$1(e){return isPlainObject(e)?undefined:e}var _customOmitClone=customOmitClone$1,Symbol$1=_Symbol,isArguments=isArguments_1,isArray$1=isArray_1,spreadableSymbol=_Symbol?_Symbol.isConcatSpreadable:undefined;function isFlattenable$1(e){return isArray$1(e)||isArguments(e)||!!(spreadableSymbol&&e&&e[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush=_arrayPush,isFlattenable=isFlattenable$1;function baseFlatten$1(e,t,n,i,r){var o=-1,a=e.length;for(n=n||isFlattenable,r=r||[];++o<a;){var s=e[o];0<t&&n(s)?1<t?baseFlatten$1(s,t-1,n,i,r):arrayPush(r,s):i||(r[r.length]=s)}return r}var _baseFlatten=baseFlatten$1,baseFlatten=baseFlatten$1;function flatten$1(e){return(null==e?0:e.length)?baseFlatten(e,1):[]}var flatten_1=flatten$1;function apply$1(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var _apply=apply$1,apply=apply$1,nativeMax=Math.max;function overRest$1(o,a,s){return a=nativeMax(a===undefined?o.length-1:a,0),function(){for(var e=arguments,t=-1,n=nativeMax(e.length-a,0),i=Array(n);++t<n;)i[t]=e[a+t];for(var t=-1,r=Array(a+1);++t<a;)r[t]=e[t];return r[a]=s(i),apply(o,this,r)}}var _overRest=overRest$1;function constant$1(e){return function(){return e}}var constant_1=constant$1;function identity$2(e){return e}var identity_1=identity$2,constant=constant$1,defineProperty=_defineProperty,identity$1=identity_1,baseSetToString$1=defineProperty?function(e,t){return defineProperty(e,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity_1,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut$1(n){var i=0,r=0;return function(){var e=nativeNow(),t=HOT_SPAN-(e-r);if(r=e,0<t){if(++i>=HOT_COUNT)return arguments[0]}else i=0;return n.apply(undefined,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=shortOut$1,setToString$1=shortOut$1(_baseSetToString),_setToString=setToString$1,flatten=flatten_1,overRest=_overRest,setToString=setToString$1;function flatRest$1(e){return setToString(overRest(e,undefined,flatten),e+"")}var _flatRest=flatRest$1,arrayMap=_arrayMap,baseClone=_baseClone,baseUnset=_baseUnset,castPath=_castPath,copyObject=_copyObject,customOmitClone=_customOmitClone,flatRest=flatRest$1,getAllKeysIn=_getAllKeysIn,CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,omit=flatRest$1(function(t,e){var n={};if(null!=t)for(var i=!1,r=(e=arrayMap(e,function(e){return e=castPath(e,t),i=i||1<e.length,e}),copyObject(t,getAllKeysIn(t),n),i&&(n=baseClone(n,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone)),e.length);r--;)baseUnset(n,e[r]);return n}),omit_1=omit,omit$1=getDefaultExportFromCjs(omit);function doesExist(e){return!(null==e)}const MESSAGE_PROMISE="promise";function Message(e,t,n){this.name=e,this.type=t,this.data=n}Message.prototype.toString=function(){return`Message.${this.type} - `+this.name};const createMessage=(e,t,n)=>{e=new Message(e,t,n);return t===MESSAGE_PROMISE&&(e.requestId=uniqueId$1()),e},fromEvent=e=>{try{var{name:t,type:n,isResponse:i,data:r,requestId:o,sender:a}=e.data||{},s=new Message(t,n,doesExist(r)?JSON.parse(r):undefined);return s.requestId=o,s.sender=a,s.destination=e.source,s.isResponse=i,s}catch(d){return!1}},serialize=e=>{var t=omit$1(e,["destination","toString","data"]);return t.data=JSON.stringify(e.data,(e,t)=>"function"==typeof t||t instanceof RegExp?t.toString?t.toString():undefined:t),t},asResponse=e=>(e.isResponse=!0,e),pipe=(...e)=>r=>{return[].concat(e).reduce((e,t,n,i)=>{e=t(e,r);return e||i.splice(n,i.length-n),e},r)},tap=n=>(e,...t)=>(n(e,...t),e);function createBaseFor$1(d){return function(e,t,n){for(var i=-1,r=Object(e),o=n(e),a=o.length;a--;){var s=o[d?a:++i];if(!1===t(r[s],s,r))break}return e}}var _createBaseFor=createBaseFor$1,createBaseFor=createBaseFor$1,baseFor$1=createBaseFor$1(),_baseFor=baseFor$1,baseFor=baseFor$1,keys=keys_1;function baseForOwn$1(e,t){return e&&baseFor(e,t,keys)}var _baseForOwn=baseForOwn$1,isArrayLike=isArrayLike_1;function createBaseEach$1(o,a){return function(e,t){if(null!=e){if(!isArrayLike(e))return o(e,t);for(var n=e.length,i=a?n:-1,r=Object(e);(a?i--:++i<n)&&!1!==t(r[i],i,r););}return e}}var _createBaseEach=createBaseEach$1,baseForOwn=baseForOwn$1,createBaseEach=createBaseEach$1,baseEach$1=createBaseEach$1(baseForOwn$1),_baseEach=baseEach$1,identity=identity_1;function castFunction$1(e){return"function"==typeof e?e:identity}var _castFunction=castFunction$1,arrayEach=_arrayEach,baseEach=baseEach$1,castFunction=castFunction$1,isArray=isArray_1;function forEach(e,t){return(isArray(e)?arrayEach:baseEach)(e,castFunction(t))}var forEach_1=forEach,each=forEach,each$1=getDefaultExportFromCjs(forEach);const dead="dead_connection",disconnected="disconnected",connected="connected",isConnected=e=>e<1e4,isDisconnected=e=>1e4<e,isDead=e=>3e4<e,state$1={lastMessageReceivedAt:0,currentConnectionQuality:disconnected,changeCallbacks:{},evalCallbacks:{}},triggerConnectionStatusChanged=()=>{each$1(state$1.changeCallbacks,e=>{e(state$1.currentConnectionQuality)})},triggerEval=()=>{each$1(state$1.evalCallbacks,e=>{e(state$1.currentConnectionQuality)})},setConnectionStatus=e=>{e!==state$1.currentConnectionQuality&&(state$1.currentConnectionQuality=e,triggerConnectionStatusChanged())},evaluateConnectionQuality=()=>{var e;0===state$1.lastMessageReceivedAt?setConnectionStatus(disconnected):(e=Date.now()-state$1.lastMessageReceivedAt,isConnected(e)?setConnectionStatus(connected):isDisconnected(e)&&(isDead(e)?setConnectionStatus(dead):setConnectionStatus(disconnected)),triggerEval())};let stopFn;const start=(e=0)=>{const t=setInterval(evaluateConnectionQuality,100);stopFn=()=>clearInterval(t)},stop=()=>{stopFn&&stopFn(),resetMonitor()};let _listenerId=0;const onStatusEval=e=>{if(isFunction$3(e)){const t=_listenerId++;return state$1.evalCallbacks[t]=e,()=>{delete state$1.evalCallbacks[t]}}},markTime=(e=Date.now())=>{state$1.lastMessageReceivedAt=e},resetMonitor=()=>{state$1.currentConnectionQuality=disconnected,state$1.lastMessageReceivedAt=0},state={appName:undefined,connectionName:undefined,frameId:undefined,pendingRequests:{},topics:{},senderIds:{},originProvider:undefined,destinationProvider:undefined},getListener=()=>""+state.appName+state.connectionName+`(${state.frameId})`,_send=e=>{e.sender||(e.sender=getListener());var t=e.destination||state.destinationProvider(),n=serialize(e),i=getPortForSender(e.sender),r=hasSenderTriedToUpgradeToMessageChannel(e.sender);i||r?i?i.postMessage(n):t.postMessage(n,state.originProvider()):(r=new MessageChannel,addPort(r.port1,e.sender),t.postMessage(n,state.originProvider(),[r.port2]))},promise=(r,o,a=1e3)=>new Promise$4((e,t)=>{const n=createMessage(r,MESSAGE_PROMISE,o),i=setTimeout$1(()=>{t(r+" timeout"),clearPendingRequest(n),downgradeToPostMessage(n)},a);addPendingRequest(n,()=>clearTimeout(i),e,t),_send(n)}),addSenderId=e=>{state.senderIds[e]||(state.senderIds[e]={port:undefined,hasTriedToUpgradeToMessageChannel:!1})},getSenderInfo=e=>(state.senderIds[e]||addSenderId(e),state.senderIds[e]),getPortForSender=e=>getSenderInfo(e).port,hasSenderTriedToUpgradeToMessageChannel=e=>getSenderInfo(e).hasTriedToUpgradeToMessageChannel,addPendingRequest=(e,t,n,i)=>{state.pendingRequests[e.requestId]={message:e,clearTimeoutfn:t,resolve:n,reject:i}},resolveRequest=e=>{var t=state.pendingRequests[e.requestId];return t&&(t.resolve(e.data),clearPendingRequest(e)),e},clearPendingRequest=e=>{var t=e["requestId"];return state.pendingRequests[t].clearTimeoutfn(),delete state.pendingRequests[t],e},updateSubscriptions=t=>{var e=state.topics[t.name];return e&&e.forEach(e=>e(t.data)),t},PING_MSG="message::ping",sendPing=()=>{promise(PING_MSG)["catch"](()=>{console.log("message::ping timedout")})},dispatchMessage=t=>{var e;return t&&!t.isResponse&&(t.name===PING_MSG?_send(asResponse(t)):(e=state.routeHandlerLookup(t.name))?e(t,e=>{t.data=e,_send(asResponse(t))}):console.log(getListener(),"No route handler for "+t.name,t)),t},commonFns=pipe(resolveRequest,updateSubscriptions,dispatchMessage,tap(()=>{markTime()})),filterWrongOrigin=e=>("*"===state.originProvider()||e.origin===state.originProvider())&&e,filterWrongSender=e=>{var t=get$1(e,"data.sender");return!(!t||"string"!=typeof t||!t.includes(state.appName))&&e},addPort=(e,t)=>{t=getSenderInfo(t);t.port=e,t.hasTriedToUpgradeToMessageChannel=!0,t.port.onmessage=pipe(fromEvent,commonFns)},removePort=e=>{e=getSenderInfo(e);e.port=undefined,e.hasTriedToUpgradeToMessageChannel=!1},upgradeToChannel=(e,t)=>{return!getSenderInfo(e.sender).hasTriedToUpgradeToMessageChannel&&t.ports&&t.ports[0]&&addPort(t.ports[0],e.sender),e},downgradeToPostMessage=e=>{removePort(e.sender)};let _stopListening=()=>{};const stopListening=()=>{_stopListening(),_stopListening=()=>{},stop()},notConnectedListener=throttle$2(e=>{"connected"!==e&&state.usePingAutoReconnect&&sendPing()},1e3),startListening=(e,t,n,i,r,o=!1,a)=>{if(window.addEventListener){state.appName=e,state.frameId=t,state.routeHandlerLookup=n,state.usePingAutoReconnect=o,state.connectionName=a||"",state.originProvider=i||(()=>window.location.origin||"*"),state.destinationProvider=r||(()=>window.parent||window.top),start(),onStatusEval(notConnectedListener);const s=pipe(filterWrongOrigin,filterWrongSender,fromEvent,upgradeToChannel,commonFns);window.addEventListener("message",s),_stopListening=()=>window.removeEventListener("message",s)}};var VocPortal=function(){var r,h;return{name:"VocPortal",initialize:function(e,t){r=e;e=(h=t).EventTracer.addTracerIds({}).frameId;this.removeResizeEvent=r.attachEvent(window,"resize",f),startListening("VocPortal",e,n,function(){return"*"})},routeHandlerLookup:n,queryMessageHandler:t,resizeMessageHandler:i,teardown:function(){this.removeResizeEvent&&this.removeResizeEvent();stopListening()}};function n(e){switch(e){case"pendo-voc::query":return t;case"pendo-voc::resize":return i;default:return undefined}}function f(){var e=document.getElementById("pendo-resource-center-container"),e=r.dom(e);h.sizeElements(e)}function t(e,t){var n=r.getSerializedMetadata(),i=!!r.designer||h.store.getters["preview/isInPreviewMode"]();t({apiKey:r.apiKey,url:r.url.externalizeURL(),visitor:n.visitor,account:n.account,parentAccount:n.parentAccount,sandboxMode:i})}function i(e){try{var t,n,i,r=e.data.width,o=r.value,a=r.unit,s=r.isImportant,d=e.data.height,u=d.value,c=d.unit,l=d.isImportant;"number"==typeof o&&"number"==typeof u&&((t=["px","%","vh","vw"]).includes(a)&&t.includes(c))&&(n="".concat(o).concat(a).concat(s?" !important":""),i="".concat(u).concat(c).concat(l?" !important":""),document.getElementById("pendo-resource-center-container").appendChild(document.createElement("style")).innerHTML='#pendo-resource-center-container:has(iframe[src*="portal"][src*="mode=rc"]) {\n width: '.concat(n,";\n height: ").concat(i,";\n ._pendo-step-container-size {\n width: ").concat(n,";\n height: ").concat(i,";\n }\n }"),f())}catch(p){h.log.error("Error while adjusting RC module",p)}}}();function isFeedbackOn(e){return e.ConfigReader.get("pendoFeedback")}function isUnsupportedIE(e){return!e.sniffer.isMinimumIEVersion(10)}var Feedback=function(){var a,s,i="feedback_notification_count",d="",u="",c="",r="",o=!1,l="",p=!1,h="feedback_ping_sent",G=36e5,f={feedbackIframe:"feedback-widget_iframe",feedbackTrigger:"feedback-trigger",feedbackWidget:"feedback-widget",feedbackOverlay:"feedback-overlay",feedbackTriggerButton:"feedback-trigger-button",feedbackStyles:"pendo-feedback-styles",feedbackFrameStyles:"pendo-feedback-visible-buttons-styles"};return{name:"Feedback",initialize:function(e,t){s=t;var n={ping:I,init:F,initialized:j,loginAndRedirect:A,openFeedback:k,initializeFeedbackOnce:S,isFeedbackLoaded:$,convertPendoToFeedbackOptions:P,isUnsupportedIE:(a=e)._.partial(isUnsupportedIE,t),removeFeedbackWidget:z};return e.feedback=n,e.getFeedbackSettings=Z,t.Events.identify.on(m),t.Events.metadata.on(m),t.Events.ready.on(v),t.agentStorage.registry.addLocal(i),t.agentStorage.registry.addLocal(h),{validate:g}},teardown:function(){z(),s.Events.identify.off(m),s.Events.metadata.off(m),s.Events.ready.off(v),delete a.feedback,delete a.getFeedbackSettings},validate:g};function g(e,t){t=isFeedbackOn(t);return t&&isUnsupportedIE(e)?(console.warn("The current version of IE is not supported by Pendo Feedback"),!1):t}function t(){var e=L();p?I(P(e)):!isFeedbackOn(s)||s.ConfigReader.get("disableFeedbackAutoInit")||s.ConfigReader.get("disableFeedback",!1)||a._.isEmpty(e)||F(e,s.ConfigReader.get("feedbackSettings"))["catch"](a._.noop)}function m(e){e=a._.get(e,"data.0.visitor_id")||a._.get(e,"data.0.options.visitor.id");a.isAnonymousVisitor(e)||t()}function v(){t()}function y(){return c+"/html/widget/notLoaded.html"}function n(e){return e=e||P(L()),s.agentStorage.read(h)===b(e)}function b(e){return JSON.stringify(e)}function I(e){if(!n(e)){s.agentStorage.write(h,b(e),G);e=w(e);if(e.data&&"{}"!==e.data&&"null"!==e.data)return a.ajax.postJSON(d+"/widget/pendo_ping",e).then(function(e){e=e.data.notifications;s.agentStorage.write(i,e),C()})["catch"](function(){s.agentStorage.clear(h)})}return s.q.resolve()}function w(e){return e=e||P(L()),{data:JSON.stringify(e)}}function C(){var e,t=a.dom("#feedback-trigger-notification");0!==t.length&&(e=s.agentStorage.read(i)||0,0<parseInt(e,10)?a._.each(t,function(e){a.dom(e).css({visibility:"visible"})}):a._.each(t,function(e){a.dom(e).css({visibility:"hidden"})}))}function S(){return p&&n()?s.q.resolve():F(L(),s.ConfigReader.get("feedbackSettings"))}function A(e){return S().then(function(){if(a._.isUndefined(e)&&(e={}),"A"===a._.get(e,"anchor.nodeName","").toUpperCase())return t=window.open(y(),Math.random().toString(36).substring(7)),T().then(function(e){t.location=e}),!1;var t;T().then(function(e){window.location.href=e})},function(){})}function E(e){var t=document.createElement("a");return t.href=e,t.host}function T(){var e=w();if(e.data&&"{}"!==e.data&&"null"!==e.data)return a.ajax.postJSON(d+"/widget/token",e).then(function(e){var t;return t=e.data.login_url,r=E(t),e.data.login_url})}function _(){return document.getElementById(f.feedbackWidget)}function x(){return document.getElementById(f.feedbackIframe)}function R(){var e=x();return e||(W(),e=x()),e}function k(e){var t,n;U()&&(e&&e.preventDefault&&e.preventDefault(),(t=R()).src&&t.src!==y()||T().then(function(e){t.src=e+"&inWidget=true"}),(e=a.dom("#".concat(f.feedbackWidget)))&&((n=a.dom(document.createElement("div"))).attr("id","feedback-overlay"),n.css({position:"fixed",top:"0",right:"0",bottom:"0",left:"0",background:"rgba(0, 0, 0, 0.4)","z-index":"9000",opacity:"0",animation:"pendoFeedbackFadeIn 0.5s 0s 1 alternate both","-webkit-animation":"pendoFeedbackFadeIn 0.5s 0s 1 alternate both"}),n.appendTo(e.getParent())),a.dom.addClass(_(),"visible"),N("user.widget.opened"))}function O(){var e,t;e=document.getElementById(f.feedbackWidget),t=document.getElementById(f.feedbackOverlay),e&&t&&(e=document.getElementById(f.feedbackOverlay)).parentNode.removeChild(e),a.dom.removeClass(_(),"visible"),N("user.widget.closed")}function N(e){var t=w();t.event=e,a.ajax.postJSON(d+"/analytics",t)}function D(){window.addEventListener("message",function(e){var t=e.origin||e.originalEvent.origin;if(t=t,r?E(t)===r:E(t)===E(c)){var t=e.data.message,n=e.data.data;switch(t){case"close-receptive-widget":O();break;case"open-receptive":A();break;case"update-receptive-notification-count":s.agentStorage.write(i,n.count),C();break;case"handle-logout":R().src=y(),O();break;case"loaded-receptive-widget":o=!0}}},!1)}function M(e,t){var n;a.dom("#".concat(e))[0]||((n=a.dom(document.createElement("style"))).attr("id",e),n.html(t),n.appendTo(document.head))}function B(e){var t,n,i=a._.extend(e,{triggerColor:"#"+e.triggerColor,triggerPosition:e.triggerPosition.toLowerCase()}),r=("undefined"!=typeof Turbolinks&&document.addEventListener("turbolinks:before-visit",function(e){var t=document.getElementById(f.feedbackIframe);t&&(t.src=y())}),function(e){e=e.triggerPosition.split("_");return{horizontalPosition:e[1],verticalPosition:e[0]}}(i));M(f.feedbackStyles,(n="left"===(n=r.horizontalPosition)?(t="@-webkit-keyframes pendoFeedbackSlideFrom-left{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}@keyframes pendoFeedbackSlideFrom-left{from{opacity:0;transform:translate(-460px,0)}to{opacity:1;transform:translate(0,0)}}","@media only screen and (max-width:470px){#feedback-widget.buttonIs-left.visible{width:100%}}"):(t="@-webkit-keyframes pendoFeedbackSlideFrom-right{from{transform:translate(-460px,0)}to{transform:translate(0,0)}}@keyframes pendoFeedbackSlideFrom-right{from{opacity:0;transform:translate(460px,0)}to{opacity:1;transform:translate(0,0)}}","@media only screen and (max-width:470px){#feedback-widget.buttonIs-right.visible{width:100%;right:2%}}"),"@media only screen and (max-device-width:1112px){#feedback-widget{overflow-y:scroll}}@-webkit-keyframes pendoFeedbackSlideIn{from{opacity:0;transform:translate(145px,0) rotate(270deg) translateY(-50%)}to{opacity:1;transform:translate(50%,0) rotate(270deg) translateY(-50%)}}@keyframes pendoFeedbackSlideIn{from{opacity:0;transform:translate(145px,0) rotate(270deg) translateY(-50%)}to{opacity:1;transform:translate(50%,0) rotate(270deg) translateY(-50%)}}@-webkit-keyframes pendoFeedbackSlideIn-left{from{opacity:0;transform:rotate(270deg) translateX(-55%) translateY(-55%)}to{opacity:1;transform:rotate(270deg) translateX(-55%) translateY(0)}}@keyframes pendoFeedbackSlideIn-left{from{opacity:0;transform:rotate(270deg) translateX(-55%) translateY(-55%)}to{opacity:1;transform:rotate(270deg) translateX(-55%) translateY(0)}}"+t+"@-webkit-keyframes pendoFeedbackPulse{from{-webkit-transform:scale(1,1);transform:scale(1,1)}50%{-webkit-transform:scale(1.15,1.15);transform:scale(1.15,1.15)}to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@keyframes pendoFeedbackPulse{from{-webkit-transform:scale(1,1);transform:scale(1,1)}50%{-webkit-transform:scale(1.15,1.15);transform:scale(1.15,1.15)}to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@-webkit-keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}@keyframes pendoFeedbackFadeIn{from{opacity:0}to{opacity:1}}"+n+"#feedback-trigger button:focus,#feedback-trigger button:hover{box-shadow:0 -5px 20px rgba(0,0,0,.19);outline:0;background:#3e566f}")),e.customTrigger||(t=i,n=r,M("pendo-feedback-trigger-styles","\n #feedback-trigger button:hover {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n #feedback-trigger button:focus {\n box-shadow: 0 -5px 20px rgba(0,0,0,.19) !important;\n outline: none !important;\n background: #3e566f !important;\n }\n "),e=function(e){var t=function(e){return"left"===e.horizontalPosition?{"transform-origin":"center left",left:"23px",animation:"pendoFeedbackSlideIn-left 0.2s 0s 1 alternate forwards","-webkit-animation":"pendoFeedbackSlideIn-left 0.2s 0s 1 alternate forwards"}:{right:"0px",animation:"pendoFeedbackSlideIn 0.2s 0s 1 alternate forwards","-webkit-animation":"pendoFeedbackSlideIn 0.2s 0s 1 alternate forwards"}}(e),e=function(e){switch(e.verticalPosition){case"top":return{top:" 10%"};case"middle":return{top:" 45%"};case"bottom":return{bottom:" 20%"}}}(e),t=a._.extend({position:"fixed",height:"43px",opacity:"1 !important","z-index":"9001"},t,e),e=a.dom(document.createElement("div"));return e.attr("id",f.feedbackTrigger),e.css(t),e.attr("data-turbolinks-permanent",""),e}(n),i=function(){var e=a.dom(document.createElement("span"));return e.attr("id","feedback-trigger-notification"),e.css({"background-color":"#D85039",color:"#fff","border-radius":"50%",height:"17px",width:"17px",position:"absolute",right:"-6px",top:"-8px",visibility:"hidden","z-index":"1",animation:"pendoFeedbackPulse","animation-fill-mode":"both","animation-duration":"1s","animation-delay":"1s","animation-iteration-count":"1"}),e}(),t=function(e,t){t="left"===t.horizontalPosition?"0 0 5px 5px":"3px 3px 0 0";var t={border:"none",padding:"11px 18px 14px 18px","background-color":e.triggerColor,"border-radius":t,"font-size":"15px",color:"#fff","box-shadow":"0 -5px 9px rgba(0,0,0,.16)",cursor:"pointer","text-align":"left"},n=a.dom(document.createElement("button"));return n.attr("id",f.feedbackTriggerButton),n.css(t),n.text(e.triggerText),n}(t,n),e.append(i),e.append(t),e.appendTo(a.dom.getBody()),s.attachEvent(t[0],"click",k)),W(r.horizontalPosition)}function W(e){t="\n .buttonIs-".concat(t="left"===(t=e)?"left":"right",".visible {\n ").concat(t,": 0 !important;\n width: 470px !important;\n animation-direction: alternate-reverse !important;\n animation: pendoFeedbackSlideFrom-").concat(t," 0.5s 0s 1 alternate both !important;\n -webkit-animation: pendoFeedbackSlideFrom-").concat(t," 0.5s 0s 1 alternate both !important;\n z-index: 9002 !important;\n }\n "),M(f.feedbackFrameStyles,t),t=e,(e=a.dom(document.createElement("div"))).css({height:"100%",position:"fixed",right:"0",top:"0",width:"0","background-color":"#f7f7f7",transition:"animation 0.4s ease-in-out","box-shadow":"0 5px 40px rgba(0,0,0,.46)",display:"block !important","-webkit-overflow-scrolling":"touch","overflow-y":"hidden"}),e.attr("id",f.feedbackWidget),e.attr("data-turbolinks-permanent","true"),e.addClass("buttonIs-".concat(t));var t=e;t.append(((e=a.dom(document.createElement("iframe"))).css({width:"100%",height:"99.6%",border:"0 none"}),e.attr("id",f.feedbackIframe),e.attr("title","Feedback"),e.attr("src",y()),e)),t.appendTo(a.dom.getBody()),D()}function $(){return o}function L(){var e=s.ConfigReader.getLocalConfig();return a._.isObject(e)||(e={}),a._.isObject(e.visitor)||(e.visitor={}),a._.isObject(e.account)||(e.account={}),e}function U(e){e=e||L();if(!isUnsupportedIE(a)&&u&&d&&c&&l)if(a._.get(e.visitor,"id")){if(!a.isAnonymousVisitor(e.visitor.id)){if(a._.get(e.account,"id"))return 1;a.log("The current visitor is not associated with an account.")}}else a.log("Not valid visitor id")}function F(e,t){if(u=t.vendorId,d=t.apiUrl,c=t.siteUrl,l=t.productId,p)return s.q.reject();if(!U(e))return s.q.reject();var n,i,e=P(e);try{n=a.url.get(),i="fdbkDst";var r=null!=(i=new RegExp("[?&]"+i+"=([^&#]*)").exec(n))&&decodeURI(i[1])||null;if(r&&r.startsWith("case"))return p=!0,void T().then(function(e){window.location.href=e+"&fdbkDst="+r})}catch(o){p=!1,a.log(o,"unhandled error while checking feedback destination")}try{return p=!0,"WIDGET"===t.type&&B(t),C(),I(e)}catch(o){return p=!1,a.log(o,"unhandled error while initializing feedback"),s.q.reject(o)}}function P(e){var t,n,i=s.agent.getJwtInfoCopy();return a._.isEmpty(i)?((t={}).user=a._.pick(e.visitor,"id","full_name","firstName","lastName","email","tags","custom_allowed_products"),a._.extend(t.user,{allowed_products:[{id:l}]}),t.account=a._.pick(e.account,"id","name","monthly_value","is_paying","tags"),a._.extend(t,{vendor:{id:u}}),a._.isUndefined(t.account.is_paying)&&(t.account.is_paying=!0),null!=t.user.email&&""!=t.user.email||(t.user.email=(e=t,a._.isUndefined(e.user)||a._.isUndefined(e.user.id)?"noemail+"+a.randomString(32)+"@pendo.io":"noemail+"+e.user.id+"@pendo.io")),null!=t.user.full_name&&""!=t.user.full_name||(t.user.full_name=(e=t,a._.isUndefined(e.user.firstName)&&a._.isUndefined(e.user.lastName)?a._.isUndefined(e.user)||a._.isUndefined(e.user.id)?"No Name Provided"+a.randomString(32):"No Name Provided"+e.user.id:(n=[],a._.isUndefined(e.user.firstName)||n.push(e.user.firstName),a._.isUndefined(e.user.lastName)||n.push(e.user.lastName),n.join(" ")))),t):(e=JSON.parse(JSON.stringify(i)),a._.extend(e,{vendor:{id:u}}),a._.extend(e,{allowed_products:[{id:l}]}),e)}function j(){return p}function z(){a._.each(a._.values(f),function(e){a.dom("#"+e).remove()}),l=r=c=u=d="",p=o=!1}function Z(){return JSON.parse(JSON.stringify(s.ConfigReader.get("feedbackSettings",{})))}}();function URLPolyfillFactory(n){return function URL(e){var t=n.createElement("a");if(t.href=e,":"===t.protocol)throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");if(t.href!==e&&t.href!==encodeURI(e))throw new Error("Uncaught TypeError: Failed to construct 'URL': Invalid URL");return t.toString||(t.toString=function(){return t.href}),null==t.origin&&(t.origin=t.protocol+"//"+t.hostname,"80"!==t.port)&&"443"!==t.port&&(t.origin+=":"+t.port),t}}var _a,URL$1=function(e){var t=window.URL;return"function"==typeof t&&/native/.test(t)?t:e(document)}(URLPolyfillFactory),__defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__defProp$1=Object.defineProperty,__defNormalProp$1=(e,t,n)=>t in e?__defProp$1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField$1=(e,t,n)=>__defNormalProp$1(e,"symbol"!=typeof t?t+"":t,n),NodeType$3=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(NodeType$3||{});const testableAccessors$1={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods$1={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype$1={};function angularZoneUnpatchedAlternative$1(e){var t,n=null==(t=null==(n=null==globalThis?void 0:globalThis.Zone)?void 0:n.__symbol__)?void 0:t.call(n,e);if(n&&globalThis[n])return globalThis[n]}function getUntaintedPrototype$1(e){if(untaintedBasePrototype$1[e])return untaintedBasePrototype$1[e];var t=angularZoneUnpatchedAlternative$1(e)||globalThis[e];const n=t.prototype;var i=e in testableAccessors$1?testableAccessors$1[e]:void 0,i=Boolean(i&&i.every(e=>{return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),r=e in testableMethods$1?testableMethods$1[e]:void 0,r=Boolean(r&&r.every(e=>{return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(i&&r)return untaintedBasePrototype$1[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?untaintedBasePrototype$1[e]=o:n):t.prototype}catch{return n}}const untaintedAccessorCache$1={};function getUntaintedAccessor$1(e,t,n){var i=e+"."+String(n);return untaintedAccessorCache$1[i]?untaintedAccessorCache$1[i].call(t):(e=getUntaintedPrototype$1(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(untaintedAccessorCache$1[i]=e).call(t):t[n])}const untaintedMethodCache$1={};function getUntaintedMethod$1(e,t,n){var i=e+"."+String(n);return untaintedMethodCache$1[i]?untaintedMethodCache$1[i].bind(t):"function"!=typeof(e=getUntaintedPrototype$1(e)[n])?t[n]:(untaintedMethodCache$1[i]=e).bind(t)}function childNodes$1(e){return getUntaintedAccessor$1("Node",e,"childNodes")}function parentNode$1(e){return getUntaintedAccessor$1("Node",e,"parentNode")}function parentElement$1(e){return getUntaintedAccessor$1("Node",e,"parentElement")}function textContent$1(e){return getUntaintedAccessor$1("Node",e,"textContent")}function contains$1(e,t){return getUntaintedMethod$1("Node",e,"contains")(t)}function getRootNode$1(e){return getUntaintedMethod$1("Node",e,"getRootNode")()}function host$1(e){return e&&"host"in e?getUntaintedAccessor$1("ShadowRoot",e,"host"):null}function styleSheets$1(e){return e.styleSheets}function shadowRoot$1(e){return e&&"shadowRoot"in e?getUntaintedAccessor$1("Element",e,"shadowRoot"):null}function querySelector$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelector")(t)}function querySelectorAll$1(e,t){return getUntaintedAccessor$1("Element",e,"querySelectorAll")(t)}function mutationObserverCtor$1(){return getUntaintedPrototype$1("MutationObserver").constructor}function patch$1(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}const index$1={childNodes:childNodes$1,parentNode:parentNode$1,parentElement:parentElement$1,textContent:textContent$1,contains:contains$1,getRootNode:getRootNode$1,host:host$1,styleSheets:styleSheets$1,shadowRoot:shadowRoot$1,querySelector:querySelector$1,querySelectorAll:querySelectorAll$1,mutationObserver:mutationObserverCtor$1,patch:patch$1};function isElement(e){return e.nodeType===e.ELEMENT_NODE}function isShadowRoot(e){var t=e&&"host"in e&&"mode"in e&&index$1.host(e)||null;return Boolean(t&&"shadowRoot"in t&&index$1.shadowRoot(t)===e)}function isNativeShadowDom(e){return"[object ShadowRoot]"===Object.prototype.toString.call(e)}function getNative$1(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}const nativeSetTimeout="undefined"!=typeof window?getNative$1("setTimeout").bind(window):global.setTimeout;function fixBrowserCompatibilityIssuesInCSS(e){return e=e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")?e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"):e}function escapeImportStatement(e){var t=e["cssText"];return t.split('"').length<3?t:(t=["@import",`url(${JSON.stringify(e.href)})`],""===e.layerName?t.push("layer"):e.layerName&&t.push(`layer(${e.layerName})`),e.supportsText&&t.push(`supports(${e.supportsText})`),e.media.length&&t.push(e.media.mediaText),t.join(" ")+";")}function stringifyStylesheet(e){try{var n=e.rules||e.cssRules;if(!n)return null;let t=e.href;return!t&&e.ownerNode&&e.ownerNode.ownerDocument&&(t=e.ownerNode.ownerDocument.location.href),fixBrowserCompatibilityIssuesInCSS(Array.from(n,e=>stringifyRule(e,t)).join(""))}catch(t){return null}}function stringifyRule(t,n){var i;if(isCSSImportRule(t)){let e;try{e=stringifyStylesheet(t.styleSheet)||escapeImportStatement(t)}catch(r){e=t.cssText}return null!=(i=null==t?void 0:t.styleSheet)&&i.href?absolutifyURLs(e,t.styleSheet.href):e}{let e=t.cssText;return isCSSStyleRule(t)&&(e=replaceChromeGridTemplateAreas(t),t.selectorText.includes(":"))&&(e=fixSafariColons(e)),n?absolutifyURLs(e,n):e}}function replaceChromeGridTemplateAreas(t){var e=t.cssText.includes("grid-template:"),n=""!==t.style.getPropertyValue("grid-template-areas"),i=t.cssText.includes("grid-template-areas:");if(e&&n&&!i){var r=[];for(let e=0;e<t.style.length;e++){var o=t.style[e],a=t.style.getPropertyValue(o);r.push(o+": "+a)}return`${t.selectorText} { ${r.join("; ")}; }`}return t.cssText}function fixSafariColons(e){return e.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2")}function isCSSImportRule(e){return"styleSheet"in e}function isCSSStyleRule(e){return"selectorText"in e}class Mirror{constructor(){__publicField$1(this,"idNodeMap",new Map),__publicField$1(this,"nodeMetaMap",new WeakMap)}getId(e){return e?(null==(e=this.getMeta(e))?void 0:e.id)??-1:-1}getNode(e){return this.idNodeMap.get(e)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(e){return this.nodeMetaMap.get(e)||null}removeNodeFromMap(e){var t=this.getId(e);this.idNodeMap["delete"](t),e.childNodes&&e.childNodes.forEach(e=>this.removeNodeFromMap(e))}has(e){return this.idNodeMap.has(e)}hasNode(e){return this.nodeMetaMap.has(e)}add(e,t){var n=t.id;this.idNodeMap.set(n,e),this.nodeMetaMap.set(e,t)}replace(e,t){var n=this.getNode(e);n&&(n=this.nodeMetaMap.get(n))&&this.nodeMetaMap.set(t,n),this.idNodeMap.set(e,t)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function createMirror$2(){return new Mirror}function maskInputValue({element:e,maskInputOptions:t,tagName:n,type:i,value:r,maskInputFn:o,needsMask:a}){let s=r||"";r=i&&toLowerCase(i);return s=t[n.toLowerCase()]||r&&t[r]||a?o?o(s,e):"*".repeat(s.length):s}function toLowerCase(e){return e.toLowerCase()}const ORIGINAL_ATTRIBUTE_NAME="__rrweb_original__";function is2DCanvasBlank(n){var i=n.getContext("2d");if(i)for(let t=0;t<n.width;t+=50)for(let e=0;e<n.height;e+=50){var r=i.getImageData,r=ORIGINAL_ATTRIBUTE_NAME in r?r[ORIGINAL_ATTRIBUTE_NAME]:r;if(new Uint32Array(r.call(i,t,e,Math.min(50,n.width-t),Math.min(50,n.height-e)).data.buffer).some(e=>0!==e))return!1}return!0}function getInputType(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?toLowerCase(t):null}function extractFileExtension(e,t){let n;try{n=new URL$1(e,t??window.location.href)}catch(i){return null}e=n.pathname.match(/\.([0-9a-z]+)(?:$)/i);return(null==e?void 0:e[1])??null}function extractOrigin(e){let t="";return t=(t=-1<e.indexOf("//")?e.split("/").slice(0,3).join("/"):e.split("/")[0]).split("?")[0]}const URL_IN_CSS_REF=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,URL_PROTOCOL_MATCH=/^(?:[a-z+]+:)?\/\//i,URL_WWW_MATCH=/^www\..*/i,DATA_URI=/^(data:)([^,]*),(.*)/i;function absolutifyURLs(e,d){return(e||"").replace(URL_IN_CSS_REF,(e,t,n,i,r,o)=>{n=n||r||o,r=t||i||"";if(!n)return e;if(URL_PROTOCOL_MATCH.test(n)||URL_WWW_MATCH.test(n))return`url(${r}${n}${r})`;if(DATA_URI.test(n))return`url(${r}${n}${r})`;if("/"===n[0])return`url(${r}${extractOrigin(d)+n}${r})`;var a=d.split("/"),o=n.split("/");a.pop();for(const s of o)"."!==s&&(".."===s?a.pop():a.push(s));return`url(${r}${a.join("/")}${r})`})}function normalizeCssString(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function splitCssText(a,e,s=!1){var d=Array.from(e.childNodes),u=[];let c=0;if(1<d.length&&a&&"string"==typeof a){let o=normalizeCssString(a,s);var l=o.length/a.length;for(let r=1;r<d.length;r++)if(d[r].textContent&&"string"==typeof d[r].textContent){var p,h=normalizeCssString(d[r].textContent,s);let i=3;for(;i<h.length&&(h[i].match(/[a-zA-Z0-9]/)||-1!==h.indexOf(h.substring(0,i),1));i++);for(;i<h.length;i++){let e=h.substring(0,i),t=o.split(e),n=-1;if(2===t.length)n=t[0].length;else if(2<t.length&&""===t[0]&&""!==d[r-1].textContent)n=o.indexOf(e,1);else if(1===t.length){if(e=e.substring(0,e.length-1),(t=o.split(e)).length<=1)return u.push(a),u;i=101}else i===h.length-1&&(n=o.indexOf(e));if(-1!==(n=2<=t.length&&100<i&&((p=d[r-1].textContent)&&"string"==typeof p&&(p=normalizeCssString(p).length,n=o.indexOf(e,p)),-1===n)?t[0].length:n)){let e=Math.floor(n/l);for(;0<e&&e<a.length;){if((c+=1)>50*d.length)return u.push(a),u;var f=normalizeCssString(a.substring(0,e),s);if(f.length===n){u.push(a.substring(0,e)),a=a.substring(e),o=o.substring(n);break}f.length<n?e+=Math.max(1,Math.floor((n-f.length)/l)):e-=Math.max(1,Math.floor((f.length-n)*l))}break}}}}return u.push(a),u}function markCssSplits(e,t){return splitCssText(e,t).join("/* rr_split */")}let _id=1;const tagNameRegex=new RegExp("[^a-z0-9-_:]"),IGNORED_NODE=-2;function genId(){return _id++}function getValidTagName$1(e){return e instanceof HTMLFormElement?"form":(e=toLowerCase(e.tagName),tagNameRegex.test(e)?"div":e)}let canvasService,canvasCtx;const SRCSET_NOT_SPACES=/^[^ \t\n\r\u000c]+/,SRCSET_COMMAS_OR_SPACES=/^[, \t\n\r\u000c]+/;function getAbsoluteSrcsetString(i,r){if(""===r.trim())return r;let o=0;function e(e){var e=e.exec(r.substring(o));return e?(e=e[0],o+=e.length,e):""}for(var a=[];e(SRCSET_COMMAS_OR_SPACES),!(o>=r.length);){let n=e(SRCSET_NOT_SPACES);if(","===n.slice(-1))n=absoluteToDoc(i,n.substring(0,n.length-1)),a.push(n);else{let e="",t=(n=absoluteToDoc(i,n),!1);for(;;){var s=r.charAt(o);if(""===s){a.push((n+e).trim());break}if(t)")"===s&&(t=!1);else{if(","===s){o+=1,a.push((n+e).trim());break}"("===s&&(t=!0)}e+=s,o+=1}}}return a.join(", ")}const cachedDocument=new WeakMap;function absoluteToDoc(e,t){return t&&""!==t.trim()?getHref(e,t):t}function isSVGElement(e){return Boolean("svg"===e.tagName||e.ownerSVGElement)}function getHref(e,t){let n=cachedDocument.get(e);if(n||(n=e.createElement("a"),cachedDocument.set(e,n)),t){if(t.startsWith("blob:")||t.startsWith("data:"))return t}else t="";return n.setAttribute("href",t),n.href}function transformAttribute(e,t,n,i){return i&&("src"!==n&&("href"!==n||"use"===t&&"#"===i[0])&&("xlink:href"!==n||"#"===i[0])&&("background"!==n||"table"!==t&&"td"!==t&&"th"!==t)?"srcset"===n?getAbsoluteSrcsetString(e,i):"style"===n?absolutifyURLs(i,getHref(e)):"object"===t&&"data"===n?absoluteToDoc(e,i):i:absoluteToDoc(e,i))}function ignoreAttribute(e,t,n){return("video"===e||"audio"===e)&&"autoplay"===t}function _isBlockedElement(t,n,e){try{if("string"==typeof n){if(t.classList.contains(n))return!0}else if(n)for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}if(e)return t.matches(e)}catch(r){}return!1}function classMatchesRegex(t,n,e){if(!t)return!1;if(!n)return!1;if(t.nodeType!==t.ELEMENT_NODE)return!!e&&classMatchesRegex(index$1.parentNode(t),n,e);for(let e=t.classList.length;e--;){var i=t.classList[e];if(n.test(i))return!0}return!!e&&classMatchesRegex(index$1.parentNode(t),n,e)}function needMaskingText(e,t,n,i){let r;if(isElement(e)){if(r=e,"*"===n)return!0;if(!index$1.childNodes(r).length)return!1}else{if(null===index$1.parentElement(e))return!1;r=index$1.parentElement(e)}try{if("string"==typeof t){if(i){if(r.closest("."+t))return!0}else if(r.classList.contains(t))return!0}else if(classMatchesRegex(r,t,i))return!0;if(n)if(i){if(r.closest(n))return!0}else if(r.matches(n))return!0}catch(o){}return!1}function onceIframeLoaded(n,i,r){var o=n.contentWindow;if(o){let e=!1,t;try{t=o.document.readyState}catch(a){return}if("complete"!==t){const s=nativeSetTimeout(()=>{e||(i(),e=!0)},r);void n.addEventListener("load",()=>{clearTimeout(s),e=!0,i()})}else{r="about:blank";if((n.src===r||n.src!==r&&o.location.href!==r)&&"complete"===t)return nativeSetTimeout(i,0),n.addEventListener("load",i);n.addEventListener("load",i)}}}function onceStylesheetLoaded(e,t,n){let i=!1,r;try{r=e.sheet}catch(o){return}if(!r){const a=nativeSetTimeout(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{clearTimeout(a),i=!0,t()})}}function serializeNode(e,t){var{doc:n,mirror:t,blockClass:i,blockSelector:r,needsMask:o,inlineStylesheet:a,maskInputOptions:s={},maskTextFn:d,maskInputFn:u,dataURLOptions:c={},inlineImages:l,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f=!1,cssCaptured:g=!1}=t,m=getRootId(n,t);switch(e.nodeType){case e.DOCUMENT_NODE:return"CSS1Compat"!==e.compatMode?{type:NodeType$3.Document,childNodes:[],compatMode:e.compatMode}:{type:NodeType$3.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:NodeType$3.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:m};case e.ELEMENT_NODE:return serializeElementNode(e,{doc:n,blockClass:i,blockSelector:r,inlineStylesheet:a,maskInputOptions:s,maskInputFn:u,dataURLOptions:c,inlineImages:l,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:f,rootId:m,needsMask:o});case e.TEXT_NODE:return serializeTextNode(e,{doc:n,needsMask:o,maskTextFn:d,maskInputOptions:s,maskInputFn:u,rootId:m,cssCaptured:g});case e.CDATA_SECTION_NODE:return{type:NodeType$3.CDATA,textContent:"",rootId:m};case e.COMMENT_NODE:return{type:NodeType$3.Comment,textContent:index$1.textContent(e)||"",rootId:m};default:return!1}}function getRootId(e,t){return!t.hasNode(e)||1===(e=t.getId(e))?void 0:e}function serializeTextNode(e,t){var n,{needsMask:i,maskTextFn:r,maskInputOptions:o,maskInputFn:a,rootId:s,cssCaptured:d}=t,u=e.parentNode&&e.parentNode.tagName;let c="";var l="STYLE"===u||void 0,p="SCRIPT"===u||void 0,u="TEXTAREA"===u||void 0;if(l&&c){try{e.nextSibling||e.previousSibling||null!=(n=e.parentNode.sheet)&&n.cssRules&&(c=stringifyStylesheet(e.parentNode.sheet))}catch(h){console.warn("Cannot get CSS styles from text's parentNode. Error: "+h,e)}c=absolutifyURLs(c,getHref(t.doc))}return p?c="SCRIPT_PLACEHOLDER":d||(c=index$1.textContent(e),l&&(c=c&&absolutifyURLs(c,getHref(t.doc)))),!l&&!p&&c&&i&&(c=r?r(c,index$1.parentElement(e)):c.replace(/[\S]/g,"*")),u&&c&&o.textarea&&(c=a?a(c,e.parentNode):c.replace(/[\S]/g,"*")),{type:NodeType$3.Text,textContent:c||"",rootId:s}}function serializeElementNode(t,e){const{doc:n,blockClass:i,blockSelector:r,inlineStylesheet:o,maskInputOptions:a={},maskInputFn:s,dataURLOptions:d={},inlineImages:u,recordCanvas:c,keepIframeSrcFn:l,newlyAddedElement:p=!1,rootId:h,needsMask:f}=e;var e=_isBlockedElement(t,i,r),g=getValidTagName$1(t);let m={};var v,y=t.attributes.length;for(let e=0;e<y;e++){var b=t.attributes[e];ignoreAttribute(g,b.name,b.value)||(m[b.name]=transformAttribute(n,g,toLowerCase(b.name),b.value))}if("link"===g&&o){var I=Array.from(n.styleSheets).find(e=>e.href===t.href);let e=null;(e=I?stringifyStylesheet(I):e)&&(delete m.rel,delete m.href,m._cssText=e)}if("style"===g&&t.sheet){let e=stringifyStylesheet(t.sheet);e&&(1<t.childNodes.length&&(e=markCssSplits(e,t)),m._cssText=e)}if("input"!==g&&"textarea"!==g&&"select"!==g||(I=t.value,v=t.checked,"radio"!==m.type&&"checkbox"!==m.type&&"submit"!==m.type&&"button"!==m.type&&I?m.value=maskInputValue({element:t,type:getInputType(t),tagName:g,value:I,maskInputOptions:a,maskInputFn:s,needsMask:f}):v&&(m.checked=v)),"option"===g&&(t.selected&&!a.select?m.selected=!0:delete m.selected),"dialog"===g&&t.open&&(m.rr_open_mode=t.matches("dialog:modal")?"modal":"non-modal"),"canvas"===g&&c&&("2d"===t.__context?is2DCanvasBlank(t)||(m.rr_dataURL=t.toDataURL(d.type,d.quality)):"__context"in t||(I=t.toDataURL(d.type,d.quality),(v=n.createElement("canvas")).width=t.width,v.height=t.height,I!==v.toDataURL(d.type,d.quality)&&(m.rr_dataURL=I))),"img"===g&&u){canvasService||(canvasService=n.createElement("canvas"),canvasCtx=canvasService.getContext("2d"));const S=t,A=S.currentSrc||S.getAttribute("src")||"<unknown-src>",E=S.crossOrigin,T=()=>{S.removeEventListener("load",T);try{canvasService.width=S.naturalWidth,canvasService.height=S.naturalHeight,canvasCtx.drawImage(S,0,0),m.rr_dataURL=canvasService.toDataURL(d.type,d.quality)}catch(e){if("anonymous"!==S.crossOrigin)return S.crossOrigin="anonymous",void(S.complete&&0!==S.naturalWidth?T():S.addEventListener("load",T));console.warn(`Cannot inline img src=${A}! Error: `+e)}"anonymous"===S.crossOrigin&&(E?m.crossOrigin=E:S.removeAttribute("crossorigin"))};S.complete&&0!==S.naturalWidth?T():S.addEventListener("load",T)}"audio"!==g&&"video"!==g||((v=m).rr_mediaState=t.paused?"paused":"played",v.rr_mediaCurrentTime=t.currentTime,v.rr_mediaPlaybackRate=t.playbackRate,v.rr_mediaMuted=t.muted,v.rr_mediaLoop=t.loop,v.rr_mediaVolume=t.volume),p||(t.scrollLeft&&(m.rr_scrollLeft=t.scrollLeft),t.scrollTop&&(m.rr_scrollTop=t.scrollTop)),e&&({width:I,height:v}=t.getBoundingClientRect(),m={"class":m["class"],rr_width:I+"px",rr_height:v+"px"}),"iframe"!==g||l(m.src)||(t.contentDocument||(m.rr_src=m.src),delete m.src);let w;try{customElements.get(g)&&(w=!0)}catch(C){}return{type:NodeType$3.Element,tagName:g,attributes:m,childNodes:[],isSVG:isSVGElement(t)||void 0,needBlock:e,rootId:h,isCustom:w}}function lowerIfExists(e){return null==e?"":e.toLowerCase()}function slimDOMExcluded(e,t){if(t.comment&&e.type===NodeType$3.Comment)return!0;if(e.type===NodeType$3.Element){if(t.script&&("script"===e.tagName||"link"===e.tagName&&("preload"===e.attributes.rel&&"script"===e.attributes.as||"modulepreload"===e.attributes.rel)||"link"===e.tagName&&"prefetch"===e.attributes.rel&&"string"==typeof e.attributes.href&&"js"===extractFileExtension(e.attributes.href)))return!0;if(t.headFavicon&&("link"===e.tagName&&"shortcut icon"===e.attributes.rel||"meta"===e.tagName&&(lowerIfExists(e.attributes.name).match(/^msapplication-tile(image|color)$/)||"application-name"===lowerIfExists(e.attributes.name)||"icon"===lowerIfExists(e.attributes.rel)||"apple-touch-icon"===lowerIfExists(e.attributes.rel)||"shortcut icon"===lowerIfExists(e.attributes.rel))))return!0;if("meta"===e.tagName){if(t.headMetaDescKeywords&&lowerIfExists(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(lowerIfExists(e.attributes.property).match(/^(og|twitter|fb):/)||lowerIfExists(e.attributes.name).match(/^(og|twitter):/)||"pinterest"===lowerIfExists(e.attributes.name)))return!0;if(t.headMetaRobots&&("robots"===lowerIfExists(e.attributes.name)||"googlebot"===lowerIfExists(e.attributes.name)||"bingbot"===lowerIfExists(e.attributes.name)))return!0;if(t.headMetaHttpEquiv&&void 0!==e.attributes["http-equiv"])return!0;if(t.headMetaAuthorship&&("author"===lowerIfExists(e.attributes.name)||"generator"===lowerIfExists(e.attributes.name)||"framework"===lowerIfExists(e.attributes.name)||"publisher"===lowerIfExists(e.attributes.name)||"progid"===lowerIfExists(e.attributes.name)||lowerIfExists(e.attributes.property).match(/^article:/)||lowerIfExists(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&("google-site-verification"===lowerIfExists(e.attributes.name)||"yandex-verification"===lowerIfExists(e.attributes.name)||"csrf-token"===lowerIfExists(e.attributes.name)||"p:domain_verify"===lowerIfExists(e.attributes.name)||"verify-v1"===lowerIfExists(e.attributes.name)||"verification"===lowerIfExists(e.attributes.name)||"shopify-checkout-api-token"===lowerIfExists(e.attributes.name)))return!0}}return!1}function serializeNodeWithId(t,e){const{doc:n,mirror:i,blockClass:r,blockSelector:o,maskTextClass:a,maskTextSelector:s,skipChild:d=!1,inlineStylesheet:u=!0,maskInputOptions:c={},maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f={},inlineImages:g=!1,recordCanvas:m=!1,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b=5e3,onStylesheetLoad:I,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:C=()=>!1,newlyAddedElement:S=!1,cssCaptured:A=!1}=e;let E=e["needsMask"],{preserveWhiteSpace:T=!0}=e;E||(e=void 0===E,E=needMaskingText(t,a,s,e));e=serializeNode(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:E,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,dataURLOptions:f,inlineImages:g,recordCanvas:m,keepIframeSrcFn:C,newlyAddedElement:S,cssCaptured:A});if(!e)return console.warn(t,"not serialized"),null;let _;_=i.hasNode(t)?i.getId(t):slimDOMExcluded(e,h)||!T&&e.type===NodeType$3.Text&&!e.textContent.replace(/^\s+|\s+$/gm,"").length?IGNORED_NODE:genId();var x=Object.assign(e,{id:_});if(i.add(t,x),_===IGNORED_NODE)return null;v&&v(t);let R=!d;if(x.type===NodeType$3.Element&&(R=R&&!x.needBlock,delete x.needBlock,e=index$1.shadowRoot(t))&&isNativeShadowDom(e)&&(x.isShadowHost=!0),(x.type===NodeType$3.Document||x.type===NodeType$3.Element)&&R){h.headWhitespace&&x.type===NodeType$3.Element&&"head"===x.tagName&&(T=!1);var k={doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:E,maskTextClass:a,maskTextSelector:s,skipChild:d,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C,cssCaptured:!1};if(x.type!==NodeType$3.Element||"textarea"!==x.tagName||void 0===x.attributes.value){x.type===NodeType$3.Element&&void 0!==x.attributes._cssText&&"string"==typeof x.attributes._cssText&&(k.cssCaptured=!0);for(const M of Array.from(index$1.childNodes(t))){var O=serializeNodeWithId(M,k);O&&x.childNodes.push(O)}}let e=null;if(isElement(t)&&(e=index$1.shadowRoot(t)))for(const L of Array.from(index$1.childNodes(e))){var N=serializeNodeWithId(L,k);N&&(isNativeShadowDom(e)&&(N.isShadow=!0),x.childNodes.push(N))}}e=index$1.parentNode(t);return e&&isShadowRoot(e)&&isNativeShadowDom(e)&&(x.isShadow=!0),x.type===NodeType$3.Element&&"iframe"===x.tagName&&onceIframeLoaded(t,()=>{var e=t.contentDocument;e&&y&&(e=serializeNodeWithId(e,{doc:e,mirror:i,blockClass:r,blockSelector:o,needsMask:E,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C}))&&y(t,e)},b),x.type===NodeType$3.Element&&"link"===x.tagName&&"string"==typeof x.attributes.rel&&("stylesheet"===x.attributes.rel||"preload"===x.attributes.rel&&"string"==typeof x.attributes.href&&"css"===extractFileExtension(x.attributes.href))&&onceStylesheetLoaded(t,()=>{var e;I&&(e=serializeNodeWithId(t,{doc:n,mirror:i,blockClass:r,blockSelector:o,needsMask:E,maskTextClass:a,maskTextSelector:s,skipChild:!1,inlineStylesheet:u,maskInputOptions:c,maskTextFn:l,maskInputFn:p,slimDOMOptions:h,dataURLOptions:f,inlineImages:g,recordCanvas:m,preserveWhiteSpace:T,onSerialize:v,onIframeLoad:y,iframeLoadTimeout:b,onStylesheetLoad:I,stylesheetLoadTimeout:w,keepIframeSrcFn:C}))&&I(t,e)},w),x}function snapshot(e,t){var{mirror:t=new Mirror,blockClass:n="rr-block",blockSelector:i=null,maskTextClass:r="rr-mask",maskTextSelector:o=null,inlineStylesheet:a=!0,inlineImages:s=!1,recordCanvas:d=!1,maskAllInputs:u=!1,maskTextFn:c,maskInputFn:l,slimDOM:p=!1,dataURLOptions:h,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:I=()=>!1}=t||{};return serializeNodeWithId(e,{doc:e,mirror:t,blockClass:n,blockSelector:i,maskTextClass:r,maskTextSelector:o,skipChild:!1,inlineStylesheet:a,maskInputOptions:!0===u?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:!1===u?{password:!0}:u,maskTextFn:c,maskInputFn:l,slimDOMOptions:!0===p||"all"===p?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:"all"===p,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:!1===p?{}:p,dataURLOptions:h,inlineImages:s,recordCanvas:d,preserveWhiteSpace:f,onSerialize:g,onIframeLoad:m,iframeLoadTimeout:v,onStylesheetLoad:y,stylesheetLoadTimeout:b,keepIframeSrcFn:I,newlyAddedElement:!1})}var __defProp2=Object.defineProperty,__defNormalProp2=(e,t,n)=>t in e?__defProp2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField2=(e,t,n)=>__defNormalProp2(e,"symbol"!=typeof t?t+"":t,n);function getNative(e,t=window){var n=null==(i=null==(n=null==t?void 0:t.Zone)?void 0:n.__symbol__)?void 0:i.call(n,e);if(n){var i=t[n];if(i)return i}return t[e]}"undefined"!=typeof window?getNative("setTimeout").bind(window):global.setTimeout;class BaseRRNode{constructor(){__publicField2(this,"parentElement",null),__publicField2(this,"parentNode",null),__publicField2(this,"ownerDocument"),__publicField2(this,"firstChild",null),__publicField2(this,"lastChild",null),__publicField2(this,"previousSibling",null),__publicField2(this,"nextSibling",null),__publicField2(this,"ELEMENT_NODE",1),__publicField2(this,"TEXT_NODE",3),__publicField2(this,"nodeType"),__publicField2(this,"nodeName"),__publicField2(this,"RRNodeType")}get childNodes(){var e=[];let t=this.firstChild;for(;t;)e.push(t),t=t.nextSibling;return e}contains(e){if(e instanceof BaseRRNode&&e.ownerDocument===this.ownerDocument){if(e===this)return!0;for(;e.parentNode;){if(e.parentNode===this)return!0;e=e.parentNode}}return!1}appendChild(e){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(e,t){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(e){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}}const testableAccessors={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},testableMethods={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},untaintedBasePrototype={};function angularZoneUnpatchedAlternative(e){var t,n=null==(t=null==(n=null==globalThis?void 0:globalThis.Zone)?void 0:n.__symbol__)?void 0:t.call(n,e);if(n&&globalThis[n])return globalThis[n]}function getUntaintedPrototype(e){if(untaintedBasePrototype[e])return untaintedBasePrototype[e];var t=angularZoneUnpatchedAlternative(e)||globalThis[e];const n=t.prototype;var i=e in testableAccessors?testableAccessors[e]:void 0,i=Boolean(i&&i.every(e=>{return Boolean(null==(e=null==(e=Object.getOwnPropertyDescriptor(n,e))?void 0:e.get)?void 0:e.toString().includes("[native code]"))})),r=e in testableMethods?testableMethods[e]:void 0,r=Boolean(r&&r.every(e=>{return"function"==typeof n[e]&&(null==(e=n[e])?void 0:e.toString().includes("[native code]"))}));if(i&&r)return untaintedBasePrototype[e]=t.prototype,t.prototype;try{var o,a=document.createElement("iframe"),s=(document.body.appendChild(a),a.contentWindow);return s?(o=s[e].prototype,document.body.removeChild(a),o?untaintedBasePrototype[e]=o:n):t.prototype}catch{return n}}const untaintedAccessorCache={};function getUntaintedAccessor(e,t,n){var i=e+"."+String(n);return untaintedAccessorCache[i]?untaintedAccessorCache[i].call(t):(e=getUntaintedPrototype(e),(e=null==(e=Object.getOwnPropertyDescriptor(e,n))?void 0:e.get)?(untaintedAccessorCache[i]=e).call(t):t[n])}const untaintedMethodCache={};function getUntaintedMethod(e,t,n){var i=e+"."+String(n);return untaintedMethodCache[i]?untaintedMethodCache[i].bind(t):"function"!=typeof(e=getUntaintedPrototype(e)[n])?t[n]:(untaintedMethodCache[i]=e).bind(t)}function childNodes(e){return getUntaintedAccessor("Node",e,"childNodes")}function parentNode(e){return getUntaintedAccessor("Node",e,"parentNode")}function parentElement(e){return getUntaintedAccessor("Node",e,"parentElement")}function textContent(e){return getUntaintedAccessor("Node",e,"textContent")}function contains(e,t){return getUntaintedMethod("Node",e,"contains")(t)}function getRootNode(e){return getUntaintedMethod("Node",e,"getRootNode")()}function host(e){return e&&"host"in e?getUntaintedAccessor("ShadowRoot",e,"host"):null}function styleSheets(e){return e.styleSheets}function shadowRoot(e){return e&&"shadowRoot"in e?getUntaintedAccessor("Element",e,"shadowRoot"):null}function querySelector(e,t){return getUntaintedAccessor("Element",e,"querySelector")(t)}function querySelectorAll(e,t){return getUntaintedAccessor("Element",e,"querySelectorAll")(t)}function mutationObserverCtor(){return getUntaintedPrototype("MutationObserver").constructor}function patch(e,t,n){try{if(!(t in e))return()=>{};const r=e[t];var i=n(r);return"function"==typeof i&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}const index={childNodes:childNodes,parentNode:parentNode,parentElement:parentElement,textContent:textContent,contains:contains,getRootNode:getRootNode,host:host,styleSheets:styleSheets,shadowRoot:shadowRoot,querySelector:querySelector,querySelectorAll:querySelectorAll,mutationObserver:mutationObserverCtor,patch:patch};function getWindow(e){var t=e.defaultView;return t||e}function on(e,t,n=document){var i=getWindow(n),r=getNative$1("addEventListener",i);const o=getNative$1("removeEventListener",i),a={capture:!0,passive:!0};return r.call(n,e,t,a),()=>o.call(n,e,t,a)}const DEPARTED_MIRROR_ACCESS_WARNING="Please stop import mirror directly. Instead of that,\r\nnow you can use replayer.getMirror() to access the mirror instance of a replayer,\r\nor you can use record.mirror to access the mirror instance during recording.";let _mirror={map:{},getId(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),-1},getNode(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),null},removeNodeFromMap(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)},has(){return console.error(DEPARTED_MIRROR_ACCESS_WARNING),!1},reset(){console.error(DEPARTED_MIRROR_ACCESS_WARNING)}};function throttle(r,o,a={}){let s=null,d=0;return function(...e){var t=Date.now(),n=(d||!1!==a.leading||(d=t),o-(t-d));const i=this;n<=0||o<n?(s&&(clearTimeout(s),s=null),d=t,r.apply(i,e)):s||!1===a.trailing||(s=nativeSetTimeout(()=>{d=!1===a.leading?0:Date.now(),s=null,r.apply(i,e)},n))}}function hookSetter(e,t,n,i,r=window){const o=r.Object.getOwnPropertyDescriptor(e,t);return r.Object.defineProperty(e,t,i?n:{set(e){nativeSetTimeout(()=>{n.set.call(this,e)},0),o&&o.set&&o.set.call(this,e)}}),()=>hookSetter(e,t,o||{},!0)}"undefined"!=typeof window&&window.Proxy&&window.Reflect&&(_mirror=new Proxy(_mirror,{get(e,t,n){return"map"===t&&console.error(DEPARTED_MIRROR_ACCESS_WARNING),Reflect.get(e,t,n)}}));let nowTimestamp=Date.now;function getWindowScroll(e){var t,n=e.document;return{left:n.scrollingElement?n.scrollingElement.scrollLeft:void 0!==e.pageXOffset?e.pageXOffset:n.documentElement.scrollLeft||(null==n?void 0:n.body)&&(null==(t=index.parentElement(n.body))?void 0:t.scrollLeft)||(null==(t=null==n?void 0:n.body)?void 0:t.scrollLeft)||0,top:n.scrollingElement?n.scrollingElement.scrollTop:void 0!==e.pageYOffset?e.pageYOffset:(null==n?void 0:n.documentElement.scrollTop)||(null==n?void 0:n.body)&&(null==(t=index.parentElement(n.body))?void 0:t.scrollTop)||(null==(e=null==n?void 0:n.body)?void 0:e.scrollTop)||0}}function getWindowHeight(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function getWindowWidth(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function closestElementOfNode(e){return e?e.nodeType===e.ELEMENT_NODE?e:index.parentElement(e):null}function isBlocked(e,t,n,i){if(e){e=closestElementOfNode(e);if(e){try{if("string"==typeof t){if(e.classList.contains(t))return!0;if(i&&null!==e.closest("."+t))return!0}else if(classMatchesRegex(e,t,i))return!0}catch(r){}if(n){if(e.matches(n))return!0;if(i&&null!==e.closest(n))return!0}}}return!1}function isSerialized(e,t){return-1!==t.getId(e)}function isIgnored(e,t,n){return!("TITLE"!==e.tagName||!n.headTitleMutations)||t.getId(e)===IGNORED_NODE}function isAncestorRemoved(e,t){var n;return!isShadowRoot(e)&&(n=t.getId(e),!t.has(n)||(!(n=index.parentNode(e))||n.nodeType!==e.DOCUMENT_NODE)&&(!n||isAncestorRemoved(n,t)))}function legacy_isTouchEvent(e){return Boolean(e.changedTouches)}function polyfill$1(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function isSerializedIframe(e,t){return Boolean("IFRAME"===e.nodeName&&t.getMeta(e))}function isSerializedStylesheet(e,t){return Boolean("LINK"===e.nodeName&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&"stylesheet"===e.getAttribute("rel")&&t.getMeta(e))}function hasShadowRoot(e){return!!e&&(e instanceof BaseRRNode&&"shadowRoot"in e?Boolean(e.shadowRoot):Boolean(index.shadowRoot(e)))}/[1-9][0-9]{12}/.test(Date.now().toString())||(nowTimestamp=()=>(new Date).getTime());class StyleSheetMirror{constructor(){__publicField(this,"id",1),__publicField(this,"styleIDMap",new WeakMap),__publicField(this,"idStyleMap",new Map)}getId(e){return this.styleIDMap.get(e)??-1}has(e){return this.styleIDMap.has(e)}add(e,t){if(this.has(e))return this.getId(e);let n;return n=void 0===t?this.id++:t,this.styleIDMap.set(e,n),this.idStyleMap.set(n,e),n}getStyle(e){return this.idStyleMap.get(e)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function getShadowHost(e){var t;let n=null;return n="getRootNode"in e&&(null==(t=index.getRootNode(e))?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&index.host(index.getRootNode(e))?index.host(index.getRootNode(e)):n}function getRootShadowHost(e){let t=e;for(var n;n=getShadowHost(t);)t=n;return t}function shadowHostInDom(e){var t=e.ownerDocument;return!!t&&(e=getRootShadowHost(e),index.contains(t,e))}function inDom(e){var t=e.ownerDocument;return!!t&&(index.contains(t,e)||shadowHostInDom(e))}var EventType=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(EventType||{}),IncrementalSource=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(IncrementalSource||{}),MouseInteractions=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(MouseInteractions||{}),PointerTypes=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(PointerTypes||{}),CanvasContext=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(CanvasContext||{}),MediaInteractions=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(MediaInteractions||{}),NodeType=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(NodeType||{});function isNodeInLinkedList(e){return"__ln"in e}class DoubleLinkedList{constructor(){__publicField(this,"length",0),__publicField(this,"head",null),__publicField(this,"tail",null),__publicField(this,"reordered",!1)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let e=0;e<t;e++)n=(null==n?void 0:n.next)||null;return n}addNode(e){var t,n={value:e,previous:null,next:null};e.__ln=n,e.previousSibling&&isNodeInLinkedList(e.previousSibling)?(t=e.previousSibling.__ln.next,n.next=t,n.previous=e.previousSibling.__ln,e.previousSibling.__ln.next=n,t&&(t.previous=n)):e.nextSibling&&isNodeInLinkedList(e.nextSibling)&&e.nextSibling.__ln.previous?(t=e.nextSibling.__ln.previous,n.previous=t,n.next=e.nextSibling.__ln,e.nextSibling.__ln.previous=n,t&&(t.next=n)):(this.head&&(this.head.previous=n),n.next=this.head,this.head=n),null===n.next&&(this.tail=n),this.length++}removeNode(e){var t=e.__ln;this.head&&(t.previous?(t.previous.next=t.next,t.next?t.next.previous=t.previous:this.tail=t.previous):(this.head=t.next,this.head?this.head.previous=null:this.tail=null),e.__ln&&delete e.__ln,this.length--)}needsReorder(e){return!(this.reordered||!e.value.previousSibling||!isNodeInLinkedList(e.value.previousSibling)||!e.previous||e.previous.value===e.value.previousSibling)}reorder(){if(this.reordered)return!1;let e=this.tail;for(var t=this.head;e;){var n=e.previous;if(this.removeNode(e.value),this.addNode(e.value),e===t)break;e=n}return this.reordered=!0}}const moveKey=(e,t)=>e+"@"+t;class MutationBuffer{constructor(){__publicField(this,"frozen",!1),__publicField(this,"locked",!1),__publicField(this,"texts",[]),__publicField(this,"attributes",[]),__publicField(this,"attributeMap",new WeakMap),__publicField(this,"removes",[]),__publicField(this,"mapRemoves",[]),__publicField(this,"movedMap",{}),__publicField(this,"addedSet",new Set),__publicField(this,"movedSet",new Set),__publicField(this,"droppedSet",new Set),__publicField(this,"removesSubTreeCache",new Set),__publicField(this,"mutationCb"),__publicField(this,"blockClass"),__publicField(this,"blockSelector"),__publicField(this,"maskTextClass"),__publicField(this,"maskTextSelector"),__publicField(this,"inlineStylesheet"),__publicField(this,"maskInputOptions"),__publicField(this,"maskTextFn"),__publicField(this,"maskInputFn"),__publicField(this,"keepIframeSrcFn"),__publicField(this,"recordCanvas"),__publicField(this,"inlineImages"),__publicField(this,"slimDOMOptions"),__publicField(this,"dataURLOptions"),__publicField(this,"doc"),__publicField(this,"mirror"),__publicField(this,"iframeManager"),__publicField(this,"stylesheetManager"),__publicField(this,"shadowDomManager"),__publicField(this,"canvasManager"),__publicField(this,"processedNodeManager"),__publicField(this,"unattachedDoc"),__publicField(this,"processMutations",e=>{e.forEach(this.processMutation),this.emit()}),__publicField(this,"emit",()=>{if(!this.frozen&&!this.locked){const d=[],u=new Set,c=new DoubleLinkedList,l=e=>{let t=e,n=IGNORED_NODE;for(;n===IGNORED_NODE;)t=t&&t.nextSibling,n=t&&this.mirror.getId(t);return n};for(var n,i,r=t=>{var n=index.parentNode(t);if(n&&inDom(t)){let e=!1;if(t.nodeType===Node.TEXT_NODE){var i=n.tagName;if("TEXTAREA"===i)return;"STYLE"===i&&this.addedSet.has(n)&&(e=!0)}i=isShadowRoot(n)?this.mirror.getId(getShadowHost(t)):this.mirror.getId(n),n=l(t);if(-1===i||-1===n)return c.addNode(t);var r=serializeNodeWithId(t,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:e=>{isSerializedIframe(e,this.mirror)&&this.iframeManager.addIframe(e),isSerializedStylesheet(e,this.mirror)&&this.stylesheetManager.trackLinkElement(e),hasShadowRoot(t)&&this.shadowDomManager.addShadowRoot(index.shadowRoot(t),this.doc)},onIframeLoad:(e,t)=>{this.iframeManager.attachIframe(e,t),this.shadowDomManager.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{this.stylesheetManager.attachLinkElement(e,t)},cssCaptured:e});r&&(d.push({parentId:i,nextId:n,node:r}),u.add(r.id))}};this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const p of this.movedSet){var t=index.parentNode(p);isParentRemoved(this.removesSubTreeCache,p,this.mirror)&&!this.movedSet.has(t)&&!this.addedSet.has(t)||r(p)}for(const h of this.addedSet)!isAncestorInSet(this.droppedSet,h)&&!isParentRemoved(this.removesSubTreeCache,h,this.mirror)||isAncestorInSet(this.movedSet,h)?r(h):this.droppedSet.add(h);let e=null;for(;c.length;){let t=null;if(!(t=e&&(n=this.mirror.getId(index.parentNode(e.value)),i=l(e.value),-1!==n)&&-1!==i?e:t)){let e=c.tail;for(;e;){var o=e;if(e=e.previous,o){var a=this.mirror.getId(index.parentNode(o.value));if(-1===l(o.value))c.needsReorder(o)&&c.reorder()&&(e=c.tail);else{if(-1!==a){t=o;break}a=o.value,a=index.parentNode(a);if(a&&a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){a=index.host(a);if(-1!==this.mirror.getId(a)){t=o;break}}}}}}if(!t){for(;c.head;)c.removeNode(c.head.value);break}e=t.previous,c.removeNode(t.value),r(t.value)}var s={texts:this.texts.map(e=>{var t=e.node,n=index.parentNode(t);return n&&"TEXTAREA"===n.tagName&&this.genTextAreaValueMutation(n),{id:this.mirror.getId(t),value:e.value}}).filter(e=>!u.has(e.id)).filter(e=>this.mirror.has(e.id)),attributes:this.attributes.map(e=>{var t,n,i=e["attributes"];return"string"==typeof i.style&&(t=JSON.stringify(e.styleDiff),n=JSON.stringify(e._unchangedStyles),t.length<i.style.length)&&(t+n).split("var(").length===i.style.split("var(").length&&(i.style=e.styleDiff),{id:this.mirror.getId(e.node),attributes:i}}).filter(e=>!u.has(e.id)).filter(e=>this.mirror.has(e.id)),removes:this.removes,adds:d};(s.texts.length||s.attributes.length||s.removes.length||s.adds.length)&&(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(s))}}),__publicField(this,"genTextAreaValueMutation",e=>{let t=this.attributeMap.get(e);t||(t={node:e,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(t),this.attributeMap.set(e,t));var n=Array.from(index.childNodes(e),e=>index.textContent(e)||"").join("");t.attributes.value=maskInputValue({element:e,maskInputOptions:this.maskInputOptions,tagName:e.tagName,type:getInputType(e),value:n,maskInputFn:this.maskInputFn})}),__publicField(this,"processMutation",i=>{if(!isIgnored(i.target,this.mirror,this.slimDOMOptions))switch(i.type){case"characterData":var r=index.textContent(i.target);isBlocked(i.target,this.blockClass,this.blockSelector,!1)||r===i.oldValue||this.texts.push({value:needMaskingText(i.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,closestElementOfNode(i.target)):r.replace(/[\S]/g,"*"):r,node:i.target});break;case"attributes":{var o,a=i.target;let e=i.attributeName,t=i.target.getAttribute(e);if("value"===e&&(r=getInputType(a),o=needMaskingText(i.target,this.maskTextClass,this.maskTextSelector,!0),t=maskInputValue({element:a,maskInputOptions:this.maskInputOptions,tagName:a.tagName,type:r,value:t,maskInputFn:this.maskInputFn,needsMask:o})),isBlocked(i.target,this.blockClass,this.blockSelector,!1)||t===i.oldValue)return;let n=this.attributeMap.get(i.target);if("IFRAME"===a.tagName&&"src"===e&&!this.keepIframeSrcFn(t)){if(a.contentDocument)return;e="rr_src"}if(n||(n={node:i.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(n),this.attributeMap.set(i.target,n)),"type"===e&&"INPUT"===a.tagName&&"password"===(i.oldValue||"").toLowerCase()&&a.setAttribute("data-rr-is-password","true"),!ignoreAttribute(a.tagName,e))if(n.attributes[e]=transformAttribute(this.doc,toLowerCase(a.tagName),toLowerCase(e),t),"style"===e){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch(c){this.unattachedDoc=this.doc}var s=this.unattachedDoc.createElement("span");i.oldValue&&(s.style.cssText=i.oldValue);for(const l of Array.from(a.style)){var d=a.style.getPropertyValue(l),u=a.style.getPropertyPriority(l);d!==s.style.getPropertyValue(l)||u!==s.style.getPropertyPriority(l)?n.styleDiff[l]=""===u?d:[d,u]:n._unchangedStyles[l]=[d,u]}for(const p of Array.from(s.style))""===a.style.getPropertyValue(p)&&(n.styleDiff[p]=!1)}else"open"===e&&"DIALOG"===a.tagName&&(a.matches("dialog:modal")?n.attributes.rr_open_mode="modal":n.attributes.rr_open_mode="non-modal");break}case"childList":isBlocked(i.target,this.blockClass,this.blockSelector,!0)||("TEXTAREA"!==i.target.tagName?(i.addedNodes.forEach(e=>this.genAdds(e,i.target)),i.removedNodes.forEach(e=>{var t=this.mirror.getId(e),n=isShadowRoot(i.target)?this.mirror.getId(index.host(i.target)):this.mirror.getId(i.target);isBlocked(i.target,this.blockClass,this.blockSelector,!1)||isIgnored(e,this.mirror,this.slimDOMOptions)||!isSerialized(e,this.mirror)||(this.addedSet.has(e)?(deepDelete(this.addedSet,e),this.droppedSet.add(e)):this.addedSet.has(i.target)&&-1===t||isAncestorRemoved(i.target,this.mirror)||(this.movedSet.has(e)&&this.movedMap[moveKey(t,n)]?deepDelete(this.movedSet,e):(this.removes.push({parentId:n,id:t,isShadow:!(!isShadowRoot(i.target)||!isNativeShadowDom(i.target))||void 0}),processRemoves(e,this.removesSubTreeCache))),this.mapRemoves.push(e))})):this.genTextAreaValueMutation(i.target))}}),__publicField(this,"genAdds",(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!this.addedSet.has(t)&&!this.movedSet.has(t)){if(this.mirror.hasNode(t)){if(isIgnored(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let e=null;(e=n&&this.mirror.hasNode(n)?this.mirror.getId(n):e)&&-1!==e&&(this.movedMap[moveKey(this.mirror.getId(t),e)]=!0)}else this.addedSet.add(t),this.droppedSet["delete"](t);isBlocked(t,this.blockClass,this.blockSelector,!1)||(index.childNodes(t).forEach(e=>this.genAdds(e)),hasShadowRoot(t)&&index.childNodes(index.shadowRoot(t)).forEach(e=>{this.processedNodeManager.add(e,this),this.genAdds(e,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(e=>{this[e]=t[e]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function deepDelete(t,e){t["delete"](e),index.childNodes(e).forEach(e=>deepDelete(t,e))}function processRemoves(e,t){const n=[e];for(;n.length;){var i=n.pop();t.has(i)||(t.add(i),index.childNodes(i).forEach(e=>n.push(e)))}}function isParentRemoved(e,t,n){return 0!==e.size&&_isParentRemoved(e,t)}function _isParentRemoved(e,t,n){t=index.parentNode(t);return!!t&&e.has(t)}function isAncestorInSet(e,t){return 0!==e.size&&_isAncestorInSet(e,t)}function _isAncestorInSet(e,t){t=index.parentNode(t);return!!t&&(!!e.has(t)||_isAncestorInSet(e,t))}let errorHandler;function registerErrorHandler(e){errorHandler=e}function unregisterErrorHandler(){errorHandler=void 0}const callbackWrapper=n=>{return errorHandler?(...e)=>{try{return n(...e)}catch(t){if(!errorHandler||!0!==errorHandler(t))throw t}}:n},mutationBuffers=[];function getEventTarget(e){try{if("composedPath"in e){var t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function initMutationObserver(e,t){var n=new MutationBuffer,e=(mutationBuffers.push(n),n.init(e),new(mutationObserverCtor())(callbackWrapper(n.processMutations.bind(n))));return e.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),e}function initMoveObserver({mousemoveCb:n,sampling:e,doc:t,mirror:r}){if(!1===e.mousemove)return()=>{};var i="number"==typeof e.mousemove?e.mousemove:50,e="number"==typeof e.mousemoveCallback?e.mousemoveCallback:500;let o=[],a;const s=throttle(callbackWrapper(e=>{const t=Date.now()-a;n(o.map(e=>(e.timeOffset-=t,e)),e),o=[],a=null}),e);e=callbackWrapper(throttle(callbackWrapper(e=>{var t=getEventTarget(e),{clientX:n,clientY:i}=legacy_isTouchEvent(e)?e.changedTouches[0]:e;a=a||nowTimestamp(),o.push({x:n,y:i,id:r.getId(t),timeOffset:nowTimestamp()-a}),s("undefined"!=typeof DragEvent&&e instanceof DragEvent?IncrementalSource.Drag:e instanceof MouseEvent?IncrementalSource.MouseMove:IncrementalSource.TouchMove)}),i,{trailing:!1}));const d=[on("mousemove",e,t),on("touchmove",e,t),on("drag",e,t)];return callbackWrapper(()=>{d.forEach(e=>e())})}function initMouseInteractionObserver({mouseInteractionCb:a,doc:i,mirror:s,blockClass:d,blockSelector:u,sampling:e}){if(!1===e.mouseInteraction)return()=>{};const t=!0===e.mouseInteraction||void 0===e.mouseInteraction?{}:e.mouseInteraction,r=[];let c=null;return Object.keys(MouseInteractions).filter(e=>Number.isNaN(Number(e))&&!e.endsWith("_Departed")&&!1!==t[e]).forEach(e=>{let t=toLowerCase(e);o=e;var o,n=n=>{var i=getEventTarget(n);if(!isBlocked(i,d,u,!0)){let e=null,t=o;if("pointerType"in n){switch(n.pointerType){case"mouse":e=PointerTypes.Mouse;break;case"touch":e=PointerTypes.Touch;break;case"pen":e=PointerTypes.Pen}e===PointerTypes.Touch?MouseInteractions[o]===MouseInteractions.MouseDown?t="TouchStart":MouseInteractions[o]===MouseInteractions.MouseUp&&(t="TouchEnd"):(e,PointerTypes.Pen)}else legacy_isTouchEvent(n)&&(e=PointerTypes.Touch);null!==e?(c=e,(t.startsWith("Touch")&&e===PointerTypes.Touch||t.startsWith("Mouse")&&e===PointerTypes.Mouse)&&(e=null)):MouseInteractions[o]===MouseInteractions.Click&&(e=c,c=null);var r,n=legacy_isTouchEvent(n)?n.changedTouches[0]:n;n&&(i=s.getId(i),{clientX:n,clientY:r}=n,callbackWrapper(a)({type:MouseInteractions[t],id:i,x:n,y:r,...null!==e&&{pointerType:e}}))}};if(window.PointerEvent)switch(MouseInteractions[e]){case MouseInteractions.MouseDown:case MouseInteractions.MouseUp:t=t.replace("mouse","pointer");break;case MouseInteractions.TouchStart:case MouseInteractions.TouchEnd:return}r.push(on(t,n,i))}),callbackWrapper(()=>{r.forEach(e=>e())})}function initScrollObserver({scrollCb:i,doc:r,mirror:o,blockClass:a,blockSelector:s,sampling:e}){return on("scroll",callbackWrapper(throttle(callbackWrapper(e=>{var t,n,e=getEventTarget(e);e&&!isBlocked(e,a,s,!0)&&(t=o.getId(e),e===r&&r.defaultView?(n=getWindowScroll(r.defaultView),i({id:t,x:n.left,y:n.top})):i({id:t,x:e.scrollLeft,y:e.scrollTop}))}),e.scroll||100)),r)}function initViewportResizeObserver({viewportResizeCb:n},{win:e}){let i=-1,r=-1;return on("resize",callbackWrapper(throttle(callbackWrapper(()=>{var e=getWindowHeight(),t=getWindowWidth();i===e&&r===t||(n({width:Number(t),height:Number(e)}),i=e,r=t)}),200)),e)}const INPUT_TAGS=["INPUT","TEXTAREA","SELECT"],lastInputValueMap=new WeakMap;function initInputObserver({inputCb:i,doc:s,mirror:r,blockClass:e,blockSelector:n,ignoreClass:d,ignoreSelector:u,maskInputOptions:c,maskInputFn:l,sampling:t,userTriggeredOnInput:p,maskTextClass:h,maskTextSelector:f}){function o(t){let i=getEventTarget(t);var t=t.isTrusted,r=i&&i.tagName;if((i=i&&"OPTION"===r?index.parentElement(i):i)&&r&&!(INPUT_TAGS.indexOf(r)<0)&&!isBlocked(i,e,n,!0)&&!(i.classList.contains(d)||u&&i.matches(u))){let e=i.value,n=!1;var o=getInputType(i)||"",a=needMaskingText(i,h,f,!0),r=("radio"===o||"checkbox"===o?n=i.checked:(c[r.toLowerCase()]||c[o]||a)&&(e=maskInputValue({element:i,maskInputOptions:c,tagName:r,type:o,value:e,maskInputFn:l,needsMask:a})),g(i,p?{text:e,isChecked:n,userTriggered:t}:{text:e,isChecked:n}),i.name);"radio"===o&&r&&n&&s.querySelectorAll(`input[type="radio"][name="${r}"]`).forEach(e=>{var t;e!==i&&(t=e.value,g(e,p?{text:t,isChecked:!n,userTriggered:!1}:{text:t,isChecked:!n}))})}}function g(e,t){var n=lastInputValueMap.get(e);n&&n.text===t.text&&n.isChecked===t.isChecked||(lastInputValueMap.set(e,t),n=r.getId(e),callbackWrapper(i)({...t,id:n}))}var a;const m=("last"===t.input?["change"]:["input","change"]).map(e=>on(e,callbackWrapper(o),s)),v=s.defaultView;return v?(t=v.Object.getOwnPropertyDescriptor(v.HTMLInputElement.prototype,"value"),a=[[v.HTMLInputElement.prototype,"value"],[v.HTMLInputElement.prototype,"checked"],[v.HTMLSelectElement.prototype,"value"],[v.HTMLTextAreaElement.prototype,"value"],[v.HTMLSelectElement.prototype,"selectedIndex"],[v.HTMLOptionElement.prototype,"selected"]],t&&t.set&&m.push(...a.map(e=>hookSetter(e[0],e[1],{set(){callbackWrapper(o)({target:this,isTrusted:!1})}},!1,v))),callbackWrapper(()=>{m.forEach(e=>e())})):()=>{m.forEach(e=>e())}}function getNestedCSSRulePositions(e){var t,n;return e=e,t=[],hasNestedCSSRule("CSSGroupingRule")&&e.parentRule instanceof CSSGroupingRule||hasNestedCSSRule("CSSMediaRule")&&e.parentRule instanceof CSSMediaRule||hasNestedCSSRule("CSSSupportsRule")&&e.parentRule instanceof CSSSupportsRule||hasNestedCSSRule("CSSConditionRule")&&e.parentRule instanceof CSSConditionRule?(n=Array.from(e.parentRule.cssRules).indexOf(e),t.unshift(n)):e.parentStyleSheet&&(n=Array.from(e.parentStyleSheet.cssRules).indexOf(e),t.unshift(n)),t}function getIdAndStyleId(e,t,n){let i,r;return e?(e.ownerNode?i=t.getId(e.ownerNode):r=n.getId(e),{styleId:r,id:i}):{}}function initStyleSheetObserver({styleSheetRuleCb:s,mirror:d,stylesheetManager:u},{win:i}){if(!i.CSSStyleSheet||!i.CSSStyleSheet.prototype)return()=>{};const e=i.CSSStyleSheet.prototype.insertRule,t=(i.CSSStyleSheet.prototype.insertRule=new Proxy(e,{apply:callbackWrapper((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=getIdAndStyleId(t,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:r}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.addRule=function(e,t,n=this.cssRules.length){return i.CSSStyleSheet.prototype.insertRule.apply(this,[e+` { ${t} }`,n])},i.CSSStyleSheet.prototype.deleteRule);i.CSSStyleSheet.prototype.deleteRule=new Proxy(t,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:i}]}),e.apply(t,n)})}),i.CSSStyleSheet.prototype.removeRule=function(e){return i.CSSStyleSheet.prototype.deleteRule.apply(this,[e])};let n;i.CSSStyleSheet.prototype.replace&&(n=i.CSSStyleSheet.prototype.replace,i.CSSStyleSheet.prototype.replace=new Proxy(n,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replace:i}),e.apply(t,n)})}));let r;i.CSSStyleSheet.prototype.replaceSync&&(r=i.CSSStyleSheet.prototype.replaceSync,i.CSSStyleSheet.prototype.replaceSync=new Proxy(r,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,replaceSync:i}),e.apply(t,n)})}));const o={},a=(canMonkeyPatchNestedCSSRule("CSSGroupingRule")?o.CSSGroupingRule=i.CSSGroupingRule:(canMonkeyPatchNestedCSSRule("CSSMediaRule")&&(o.CSSMediaRule=i.CSSMediaRule),canMonkeyPatchNestedCSSRule("CSSConditionRule")&&(o.CSSConditionRule=i.CSSConditionRule),canMonkeyPatchNestedCSSRule("CSSSupportsRule")&&(o.CSSSupportsRule=i.CSSSupportsRule)),{});return Object.entries(o).forEach(([e,t])=>{a[e]={insertRule:t.prototype.insertRule,deleteRule:t.prototype.deleteRule},t.prototype.insertRule=new Proxy(a[e].insertRule,{apply:callbackWrapper((e,t,n)=>{var[i,r]=n,{id:o,styleId:a}=getIdAndStyleId(t.parentStyleSheet,d,u.styleMirror);return(o&&-1!==o||a&&-1!==a)&&s({id:o,styleId:a,adds:[{rule:i,index:[...getNestedCSSRulePositions(t),r||0]}]}),e.apply(t,n)})}),t.prototype.deleteRule=new Proxy(a[e].deleteRule,{apply:callbackWrapper((e,t,n)=>{var[i]=n,{id:r,styleId:o}=getIdAndStyleId(t.parentStyleSheet,d,u.styleMirror);return(r&&-1!==r||o&&-1!==o)&&s({id:r,styleId:o,removes:[{index:[...getNestedCSSRulePositions(t),i]}]}),e.apply(t,n)})})}),callbackWrapper(()=>{i.CSSStyleSheet.prototype.insertRule=e,i.CSSStyleSheet.prototype.deleteRule=t,n&&(i.CSSStyleSheet.prototype.replace=n),r&&(i.CSSStyleSheet.prototype.replaceSync=r),Object.entries(o).forEach(([e,t])=>{t.prototype.insertRule=a[e].insertRule,t.prototype.deleteRule=a[e].deleteRule})})}function initAdoptedStyleSheetObserver({mirror:e,stylesheetManager:i},t){let r=null;r="#document"===t.nodeName?e.getId(t):e.getId(index.host(t));e="#document"===t.nodeName?null==(e=t.defaultView)?void 0:e.Document:null==(e=null==(e=t.ownerDocument)?void 0:e.defaultView)?void 0:e.ShadowRoot;const o=null!=e&&e.prototype?Object.getOwnPropertyDescriptor(null==e?void 0:e.prototype,"adoptedStyleSheets"):void 0;return null!==r&&-1!==r&&e&&o?(Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){var e;return null==(e=o.get)?void 0:e.call(this)},set(e){var t=null==(t=o.set)?void 0:t.call(this,e);if(null!==r&&-1!==r)try{i.adoptStyleSheets(e,r)}catch(n){}return t}}),callbackWrapper(()=>{Object.defineProperty(t,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})})):()=>{}}function initStyleDeclarationObserver({styleDeclarationCb:d,mirror:u,ignoreCSSAttributes:c,stylesheetManager:l},{win:e}){const p=e.CSSStyleDeclaration.prototype.setProperty,a=(e.CSSStyleDeclaration.prototype.setProperty=new Proxy(p,{apply:callbackWrapper((e,t,n)=>{var i,r,[o,a,s]=n;return c.has(o)?p.apply(t,[o,a,s]):({id:i,styleId:r}=getIdAndStyleId(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,set:{property:o,value:a,priority:s},index:getNestedCSSRulePositions(t.parentRule)}),e.apply(t,n))})}),e.CSSStyleDeclaration.prototype.removeProperty);return e.CSSStyleDeclaration.prototype.removeProperty=new Proxy(a,{apply:callbackWrapper((e,t,n)=>{var i,r,[o]=n;return c.has(o)?a.apply(t,[o]):({id:i,styleId:r}=getIdAndStyleId(null==(i=t.parentRule)?void 0:i.parentStyleSheet,u,l.styleMirror),(i&&-1!==i||r&&-1!==r)&&d({id:i,styleId:r,remove:{property:o},index:getNestedCSSRulePositions(t.parentRule)}),e.apply(t,n))})}),callbackWrapper(()=>{e.CSSStyleDeclaration.prototype.setProperty=p,e.CSSStyleDeclaration.prototype.removeProperty=a})}function initMediaInteractionObserver({mediaInteractionCb:s,blockClass:d,blockSelector:u,mirror:c,sampling:e,doc:t}){var n=callbackWrapper(a=>throttle(callbackWrapper(e=>{var t,n,i,r,o,e=getEventTarget(e);e&&!isBlocked(e,d,u,!0)&&({currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}=e,s({type:a,id:c.getId(e),currentTime:t,volume:n,muted:i,playbackRate:r,loop:o}))}),e.media||500));const i=[on("play",n(MediaInteractions.Play),t),on("pause",n(MediaInteractions.Pause),t),on("seeked",n(MediaInteractions.Seeked),t),on("volumechange",n(MediaInteractions.VolumeChange),t),on("ratechange",n(MediaInteractions.RateChange),t)];return callbackWrapper(()=>{i.forEach(e=>e())})}function initFontObserver({fontCb:n,doc:e}){const t=e.defaultView;if(!t)return()=>{};const i=[],r=new WeakMap,o=t.FontFace;t.FontFace=function(e,t,n){var i=new o(e,t,n);return r.set(i,{family:e,buffer:"string"!=typeof t,descriptors:n,fontSource:"string"==typeof t?t:JSON.stringify(Array.from(new Uint8Array(t)))}),i};e=patch(e.fonts,"add",function(e){return function(t){return nativeSetTimeout(callbackWrapper(()=>{var e=r.get(t);e&&(n(e),r["delete"](t))}),0),e.apply(this,[t])}});return i.push(()=>{t.FontFace=o}),i.push(e),callbackWrapper(()=>{i.forEach(e=>e())})}function initSelectionObserver(e){const{doc:d,mirror:u,blockClass:c,blockSelector:l,selectionCb:p}=e;let h=!0;e=callbackWrapper(()=>{var t=d.getSelection();if(!(!t||h&&null!=t&&t.isCollapsed)){h=t.isCollapsed||!1;var n=[],i=t.rangeCount||0;for(let e=0;e<i;e++){var{startContainer:r,startOffset:o,endContainer:a,endOffset:s}=t.getRangeAt(e);isBlocked(r,c,l,!0)||isBlocked(a,c,l,!0)||n.push({start:u.getId(r),startOffset:o,end:u.getId(a),endOffset:s})}p({ranges:n})}});return e(),on("selectionchange",e)}function initCustomElementObserver({doc:e,customElementCb:o}){e=e.defaultView;return e&&e.customElements?patch(e.customElements,"define",function(r){return function(e,t,n){try{o({define:{name:e}})}catch(i){console.warn("Custom element callback failed for "+e)}return r.apply(this,[e,t,n])}}):()=>{}}function mergeHooks(e,t){const{mutationCb:n,mousemoveCb:i,mouseInteractionCb:r,scrollCb:o,viewportResizeCb:a,inputCb:s,mediaInteractionCb:d,styleSheetRuleCb:u,styleDeclarationCb:c,canvasMutationCb:l,fontCb:p,selectionCb:h,customElementCb:f}=e;e.mutationCb=(...e)=>{t.mutation&&t.mutation(...e),n(...e)},e.mousemoveCb=(...e)=>{t.mousemove&&t.mousemove(...e),i(...e)},e.mouseInteractionCb=(...e)=>{t.mouseInteraction&&t.mouseInteraction(...e),r(...e)},e.scrollCb=(...e)=>{t.scroll&&t.scroll(...e),o(...e)},e.viewportResizeCb=(...e)=>{t.viewportResize&&t.viewportResize(...e),a(...e)},e.inputCb=(...e)=>{t.input&&t.input(...e),s(...e)},e.mediaInteractionCb=(...e)=>{t.mediaInteaction&&t.mediaInteaction(...e),d(...e)},e.styleSheetRuleCb=(...e)=>{t.styleSheetRule&&t.styleSheetRule(...e),u(...e)},e.styleDeclarationCb=(...e)=>{t.styleDeclaration&&t.styleDeclaration(...e),c(...e)},e.canvasMutationCb=(...e)=>{t.canvasMutation&&t.canvasMutation(...e),l(...e)},e.fontCb=(...e)=>{t.font&&t.font(...e),p(...e)},e.selectionCb=(...e)=>{t.selection&&t.selection(...e),h(...e)},e.customElementCb=(...e)=>{t.customElement&&t.customElement(...e),f(...e)}}function initObservers(e,t={}){var n=e.doc.defaultView;if(!n)return()=>{};mergeHooks(e,t);let i;e.recordDOM&&(i=initMutationObserver(e,e.doc));const r=initMoveObserver(e),o=initMouseInteractionObserver(e),a=initScrollObserver(e),s=initViewportResizeObserver(e,{win:n}),d=initInputObserver(e),u=initMediaInteractionObserver(e);let c=()=>{},l=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(c=initStyleSheetObserver(e,{win:n}),l=initAdoptedStyleSheetObserver(e,e.doc),p=initStyleDeclarationObserver(e,{win:n}),e.collectFonts)&&(h=initFontObserver(e));const f=initSelectionObserver(e),g=initCustomElementObserver(e),m=[];for(const v of e.plugins)m.push(v.observer(v.callback,n,v.options));return callbackWrapper(()=>{mutationBuffers.forEach(e=>e.reset()),null!=i&&i.disconnect(),r(),o(),a(),s(),d(),u(),c(),l(),p(),h(),f(),g(),m.forEach(e=>e())})}function hasNestedCSSRule(e){return"undefined"!=typeof window[e]}function canMonkeyPatchNestedCSSRule(e){return Boolean("undefined"!=typeof window[e]&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class CrossOriginIframeMirror{constructor(e){__publicField(this,"iframeIdToRemoteIdMap",new WeakMap),__publicField(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=e}getId(e,t,n,i){n=n||this.getIdToRemoteIdMap(e),i=i||this.getRemoteIdToIdMap(e);let r=n.get(t);return r||(r=this.generateIdFn(),n.set(t,r),i.set(r,t)),r}getIds(t,e){const n=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return e.map(e=>this.getId(t,e,n,i))}getRemoteId(e,t,n){n=n||this.getRemoteIdToIdMap(e);return"number"!=typeof t?t:n.get(t)||-1}getRemoteIds(t,e){const n=this.getRemoteIdToIdMap(t);return e.map(e=>this.getRemoteId(t,e,n))}reset(e){e?(this.iframeIdToRemoteIdMap["delete"](e),this.iframeRemoteIdToIdMap["delete"](e)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)}getIdToRemoteIdMap(e){let t=this.iframeIdToRemoteIdMap.get(e);return t||(t=new Map,this.iframeIdToRemoteIdMap.set(e,t)),t}getRemoteIdToIdMap(e){let t=this.iframeRemoteIdToIdMap.get(e);return t||(t=new Map,this.iframeRemoteIdToIdMap.set(e,t)),t}}class IframeManager{constructor(e){__publicField(this,"iframes",new WeakMap),__publicField(this,"crossOriginIframeMap",new WeakMap),__publicField(this,"crossOriginIframeMirror",new CrossOriginIframeMirror(genId)),__publicField(this,"crossOriginIframeStyleMirror"),__publicField(this,"crossOriginIframeRootIdMap",new WeakMap),__publicField(this,"mirror"),__publicField(this,"mutationCb"),__publicField(this,"wrappedEmit"),__publicField(this,"takeFullSnapshot"),__publicField(this,"loadListener"),__publicField(this,"stylesheetManager"),__publicField(this,"recordCrossOriginIframes"),this.mutationCb=e.mutationCb,this.wrappedEmit=e.wrappedEmit,this.takeFullSnapshot=e.takeFullSnapshot,this.stylesheetManager=e.stylesheetManager,this.recordCrossOriginIframes=e.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new CrossOriginIframeMirror(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=e.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}setTakeFullSnapshot(e){this.takeFullSnapshot=e}addIframe(e){this.iframes.set(e,!0),e.contentWindow&&this.crossOriginIframeMap.set(e.contentWindow,e),!e.contentDocument&&e.contentWindow&&e.contentWindow.postMessage({type:"rrweb",origin:window.location.origin,snapshot:!0},"*")}addLoadListener(e){this.loadListener=e}attachIframe(e,t){this.mutationCb({adds:[{parentId:this.mirror.getId(e),nextId:null,node:t}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&null!=(t=e.contentWindow)&&t.addEventListener("message",this.handleMessage.bind(this)),null!=(t=this.loadListener)&&t.call(this,e),e.contentDocument&&e.contentDocument.adoptedStyleSheets&&0<e.contentDocument.adoptedStyleSheets.length&&this.stylesheetManager.adoptStyleSheets(e.contentDocument.adoptedStyleSheets,this.mirror.getId(e.contentDocument))}handleMessage(e){var t,n=e;"rrweb"===n.data.type&&n.origin===n.data.origin&&(t=e.source)&&(t==window.parent&&window!=window.parent&&e.data.snapshot?this.takeFullSnapshot():(t=this.crossOriginIframeMap.get(e.source))&&(e=this.transformCrossOriginEvent(t,n.data.event))&&this.wrappedEmit(e,n.data.isCheckout))}transformCrossOriginEvent(n,e){var t;switch(e.type){case EventType.FullSnapshot:this.crossOriginIframeMirror.reset(n),this.crossOriginIframeStyleMirror.reset(n),this.replaceIdOnNode(e.data.node,n);var i=e.data.node.id;return this.crossOriginIframeRootIdMap.set(n,i),this.patchRootIdOnNode(e.data.node,i),{timestamp:e.timestamp,type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,adds:[{parentId:this.mirror.getId(n),nextId:null,node:e.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case EventType.Meta:case EventType.Load:case EventType.DomContentLoaded:return!1;case EventType.Plugin:return e;case EventType.Custom:return this.replaceIds(e.data.payload,n,["id","parentId","previousId","nextId"]),e;case EventType.IncrementalSnapshot:switch(e.data.source){case IncrementalSource.Mutation:return e.data.adds.forEach(e=>{this.replaceIds(e,n,["parentId","nextId","previousId"]),this.replaceIdOnNode(e.node,n);var t=this.crossOriginIframeRootIdMap.get(n);t&&this.patchRootIdOnNode(e.node,t)}),e.data.removes.forEach(e=>{this.replaceIds(e,n,["parentId","id"])}),e.data.attributes.forEach(e=>{this.replaceIds(e,n,["id"])}),e.data.texts.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case IncrementalSource.Drag:case IncrementalSource.TouchMove:case IncrementalSource.MouseMove:return e.data.positions.forEach(e=>{this.replaceIds(e,n,["id"])}),e;case IncrementalSource.ViewportResize:return!1;case IncrementalSource.MediaInteraction:case IncrementalSource.MouseInteraction:case IncrementalSource.Scroll:case IncrementalSource.CanvasMutation:case IncrementalSource.Input:return this.replaceIds(e.data,n,["id"]),e;case IncrementalSource.StyleSheetRule:case IncrementalSource.StyleDeclaration:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleId"]),e;case IncrementalSource.Font:return e;case IncrementalSource.Selection:return e.data.ranges.forEach(e=>{this.replaceIds(e,n,["start","end"])}),e;case IncrementalSource.AdoptedStyleSheet:return this.replaceIds(e.data,n,["id"]),this.replaceStyleIds(e.data,n,["styleIds"]),null!=(t=e.data.styles)&&t.forEach(e=>{this.replaceStyleIds(e,n,["styleId"])}),e}}return!1}replace(e,t,n,i){for(const r of i)!Array.isArray(t[r])&&"number"!=typeof t[r]||(Array.isArray(t[r])?t[r]=e.getIds(n,t[r]):t[r]=e.getId(n,t[r]));return t}replaceIds(e,t,n){return this.replace(this.crossOriginIframeMirror,e,t,n)}replaceStyleIds(e,t,n){return this.replace(this.crossOriginIframeStyleMirror,e,t,n)}replaceIdOnNode(e,t){this.replaceIds(e,t,["id","rootId"]),"childNodes"in e&&e.childNodes.forEach(e=>{this.replaceIdOnNode(e,t)})}patchRootIdOnNode(e,t){e.type===NodeType.Document||e.rootId||(e.rootId=t),"childNodes"in e&&e.childNodes.forEach(e=>{this.patchRootIdOnNode(e,t)})}}class ShadowDomManager{constructor(e){__publicField(this,"shadowDoms",new WeakSet),__publicField(this,"mutationCb"),__publicField(this,"scrollCb"),__publicField(this,"bypassOptions"),__publicField(this,"mirror"),__publicField(this,"restoreHandlers",[]),this.mutationCb=e.mutationCb,this.scrollCb=e.scrollCb,this.bypassOptions=e.bypassOptions,this.mirror=e.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(e,t){if(isNativeShadowDom(e)&&!this.shadowDoms.has(e)){this.shadowDoms.add(e);const n=initMutationObserver({...this.bypassOptions,doc:t,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},e);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(initScrollObserver({...this.bypassOptions,scrollCb:this.scrollCb,doc:e,mirror:this.mirror})),nativeSetTimeout(()=>{e.adoptedStyleSheets&&0<e.adoptedStyleSheets.length&&this.bypassOptions.stylesheetManager.adoptStyleSheets(e.adoptedStyleSheets,this.mirror.getId(index.host(e))),this.restoreHandlers.push(initAdoptedStyleSheetObserver({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},e))},0)}}observeAttachShadow(e){e.contentWindow&&e.contentDocument&&this.patchAttachShadow(e.contentWindow.Element,e.contentDocument)}patchAttachShadow(e,i){const r=this;this.restoreHandlers.push(patch(e.prototype,"attachShadow",function(n){return function(e){var e=n.call(this,e),t=index.shadowRoot(this);return t&&inDom(this)&&r.addShadowRoot(t,i),e}}))}reset(){this.restoreHandlers.forEach(e=>{try{e()}catch(t){}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}}for(var chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup="undefined"==typeof Uint8Array?[]:new Uint8Array(256),i$1=0;i$1<chars.length;i$1++)lookup[chars.charCodeAt(i$1)]=i$1;var n,encode=function(e){for(var t=new Uint8Array(e),n=t.length,i="",r=0;r<n;r+=3)i=(i=(i=(i+=chars[t[r]>>2])+chars[(3&t[r])<<4|t[r+1]>>4])+chars[(15&t[r+1])<<2|t[r+2]>>6])+chars[63&t[r+2]];return n%3==2?i=i.substring(0,i.length-1)+"=":n%3==1&&(i=i.substring(0,i.length-2)+"=="),i};const canvasVarMap=new Map;function variableListFor$1(e,t){let n=canvasVarMap.get(e);return n||(n=new Map,canvasVarMap.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const saveWebGLVar=(t,n,i)=>{if(t&&(isInstanceOfWebGLObject(t,n)||"object"==typeof t)){n=variableListFor$1(i,t.constructor.name);let e=n.indexOf(t);return-1===e&&(e=n.length,n.push(t)),e}};function serializeArg(e,t,n){var i;return e instanceof Array?e.map(e=>serializeArg(e,t,n)):null===e?e:e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray?{rr_type:e.constructor.name,args:[Object.values(e)]}:e instanceof ArrayBuffer?{rr_type:e.constructor.name,base64:encode(e)}:e instanceof DataView?{rr_type:e.constructor.name,args:[serializeArg(e.buffer,t,n),e.byteOffset,e.byteLength]}:e instanceof HTMLImageElement?(i=e["src"],{rr_type:e.constructor.name,src:i}):e instanceof HTMLCanvasElement?{rr_type:"HTMLImageElement",src:e.toDataURL()}:e instanceof ImageData?{rr_type:e.constructor.name,args:[serializeArg(e.data,t,n),e.width,e.height]}:isInstanceOfWebGLObject(e,t)||"object"==typeof e?{rr_type:e.constructor.name,index:saveWebGLVar(e,t,n)}:e}const serializeArgs=(e,t,n)=>e.map(e=>serializeArg(e,t,n)),isInstanceOfWebGLObject=(t,n)=>{var e=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(e=>"function"==typeof n[e]);return Boolean(e.find(e=>t instanceof n[e]))};function initCanvas2DMutationObserver(n,i,r,o){const e=[];var t;for(const s of Object.getOwnPropertyNames(i.CanvasRenderingContext2D.prototype))try{"function"==typeof i.CanvasRenderingContext2D.prototype[s]&&(t=patch(i.CanvasRenderingContext2D.prototype,s,function(e){return function(...t){return isBlocked(this.canvas,r,o,!0)||nativeSetTimeout(()=>{var e=serializeArgs(t,i,this);n(this.canvas,{type:CanvasContext["2D"],property:s,args:e})},0),e.apply(this,t)}}),e.push(t))}catch{var a=hookSetter(i.CanvasRenderingContext2D.prototype,s,{set(e){n(this.canvas,{type:CanvasContext["2D"],property:s,args:[e],setter:!0})}});e.push(a)}return()=>{e.forEach(e=>e())}}function getNormalizedContextName(e){return"experimental-webgl"===e?"webgl":e}function initCanvasContextObserver(e,r,o,a){const t=[];try{var n=patch(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(e,...t){var n;return isBlocked(this,r,o,!0)||(n=getNormalizedContextName(e),"__context"in this||(this.__context=n),a&&["webgl","webgl2"].includes(n)&&(t[0]&&"object"==typeof t[0]?(n=t[0]).preserveDrawingBuffer||(n.preserveDrawingBuffer=!0):t.splice(0,1,{preserveDrawingBuffer:!0}))),i.apply(this,[e,...t])}});t.push(n)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{t.forEach(e=>e())}}function patchGLPrototype(e,i,r,o,a,s){var t,n=[];for(const u of Object.getOwnPropertyNames(e))if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(u))try{"function"==typeof e[u]&&(t=patch(e,u,function(n){return function(...e){var t=n.apply(this,e);return saveWebGLVar(t,s,this),"tagName"in this.canvas&&!isBlocked(this.canvas,o,a,!0)&&(e=serializeArgs(e,s,this),e={type:i,property:u,args:e},r(this.canvas,e)),t}}),n.push(t))}catch{var d=hookSetter(e,u,{set(e){r(this.canvas,{type:i,property:u,args:[e],setter:!0})}});n.push(d)}return n}function initCanvasWebGLMutationObserver(e,t,n,i){const r=[];return r.push(...patchGLPrototype(t.WebGLRenderingContext.prototype,CanvasContext.WebGL,e,n,i,t)),"undefined"!=typeof t.WebGL2RenderingContext&&r.push(...patchGLPrototype(t.WebGL2RenderingContext.prototype,CanvasContext.WebGL2,e,n,i,t)),()=>{r.forEach(e=>e())}}const encodedJs="KGZ1bmN0aW9uKCkgewogICJ1c2Ugc3RyaWN0IjsKICB2YXIgY2hhcnMgPSAiQUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVphYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5ejAxMjM0NTY3ODkrLyI7CiAgdmFyIGxvb2t1cCA9IHR5cGVvZiBVaW50OEFycmF5ID09PSAidW5kZWZpbmVkIiA/IFtdIDogbmV3IFVpbnQ4QXJyYXkoMjU2KTsKICBmb3IgKHZhciBpID0gMDsgaSA8IGNoYXJzLmxlbmd0aDsgaSsrKSB7CiAgICBsb29rdXBbY2hhcnMuY2hhckNvZGVBdChpKV0gPSBpOwogIH0KICB2YXIgZW5jb2RlID0gZnVuY3Rpb24oYXJyYXlidWZmZXIpIHsKICAgIHZhciBieXRlcyA9IG5ldyBVaW50OEFycmF5KGFycmF5YnVmZmVyKSwgaTIsIGxlbiA9IGJ5dGVzLmxlbmd0aCwgYmFzZTY0ID0gIiI7CiAgICBmb3IgKGkyID0gMDsgaTIgPCBsZW47IGkyICs9IDMpIHsKICAgICAgYmFzZTY0ICs9IGNoYXJzW2J5dGVzW2kyXSA+PiAyXTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMl0gJiAzKSA8PCA0IHwgYnl0ZXNbaTIgKyAxXSA+PiA0XTsKICAgICAgYmFzZTY0ICs9IGNoYXJzWyhieXRlc1tpMiArIDFdICYgMTUpIDw8IDIgfCBieXRlc1tpMiArIDJdID4+IDZdOwogICAgICBiYXNlNjQgKz0gY2hhcnNbYnl0ZXNbaTIgKyAyXSAmIDYzXTsKICAgIH0KICAgIGlmIChsZW4gJSAzID09PSAyKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDEpICsgIj0iOwogICAgfSBlbHNlIGlmIChsZW4gJSAzID09PSAxKSB7CiAgICAgIGJhc2U2NCA9IGJhc2U2NC5zdWJzdHJpbmcoMCwgYmFzZTY0Lmxlbmd0aCAtIDIpICsgIj09IjsKICAgIH0KICAgIHJldHVybiBiYXNlNjQ7CiAgfTsKICBjb25zdCBsYXN0QmxvYk1hcCA9IC8qIEBfX1BVUkVfXyAqLyBuZXcgTWFwKCk7CiAgY29uc3QgdHJhbnNwYXJlbnRCbG9iTWFwID0gLyogQF9fUFVSRV9fICovIG5ldyBNYXAoKTsKICBhc3luYyBmdW5jdGlvbiBnZXRUcmFuc3BhcmVudEJsb2JGb3Iod2lkdGgsIGhlaWdodCwgZGF0YVVSTE9wdGlvbnMpIHsKICAgIGNvbnN0IGlkID0gYCR7d2lkdGh9LSR7aGVpZ2h0fWA7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBpZiAodHJhbnNwYXJlbnRCbG9iTWFwLmhhcyhpZCkpIHJldHVybiB0cmFuc3BhcmVudEJsb2JNYXAuZ2V0KGlkKTsKICAgICAgY29uc3Qgb2Zmc2NyZWVuID0gbmV3IE9mZnNjcmVlbkNhbnZhcyh3aWR0aCwgaGVpZ2h0KTsKICAgICAgb2Zmc2NyZWVuLmdldENvbnRleHQoIjJkIik7CiAgICAgIGNvbnN0IGJsb2IgPSBhd2FpdCBvZmZzY3JlZW4uY29udmVydFRvQmxvYihkYXRhVVJMT3B0aW9ucyk7CiAgICAgIGNvbnN0IGFycmF5QnVmZmVyID0gYXdhaXQgYmxvYi5hcnJheUJ1ZmZlcigpOwogICAgICBjb25zdCBiYXNlNjQgPSBlbmNvZGUoYXJyYXlCdWZmZXIpOwogICAgICB0cmFuc3BhcmVudEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICByZXR1cm4gYmFzZTY0OwogICAgfSBlbHNlIHsKICAgICAgcmV0dXJuICIiOwogICAgfQogIH0KICBjb25zdCB3b3JrZXIgPSBzZWxmOwogIHdvcmtlci5vbm1lc3NhZ2UgPSBhc3luYyBmdW5jdGlvbihlKSB7CiAgICBpZiAoIk9mZnNjcmVlbkNhbnZhcyIgaW4gZ2xvYmFsVGhpcykgewogICAgICBjb25zdCB7IGlkLCBiaXRtYXAsIHdpZHRoLCBoZWlnaHQsIGRhdGFVUkxPcHRpb25zIH0gPSBlLmRhdGE7CiAgICAgIGNvbnN0IHRyYW5zcGFyZW50QmFzZTY0ID0gZ2V0VHJhbnNwYXJlbnRCbG9iRm9yKAogICAgICAgIHdpZHRoLAogICAgICAgIGhlaWdodCwKICAgICAgICBkYXRhVVJMT3B0aW9ucwogICAgICApOwogICAgICBjb25zdCBvZmZzY3JlZW4gPSBuZXcgT2Zmc2NyZWVuQ2FudmFzKHdpZHRoLCBoZWlnaHQpOwogICAgICBjb25zdCBjdHggPSBvZmZzY3JlZW4uZ2V0Q29udGV4dCgiMmQiKTsKICAgICAgY3R4LmRyYXdJbWFnZShiaXRtYXAsIDAsIDApOwogICAgICBiaXRtYXAuY2xvc2UoKTsKICAgICAgY29uc3QgYmxvYiA9IGF3YWl0IG9mZnNjcmVlbi5jb252ZXJ0VG9CbG9iKGRhdGFVUkxPcHRpb25zKTsKICAgICAgY29uc3QgdHlwZSA9IGJsb2IudHlwZTsKICAgICAgY29uc3QgYXJyYXlCdWZmZXIgPSBhd2FpdCBibG9iLmFycmF5QnVmZmVyKCk7CiAgICAgIGNvbnN0IGJhc2U2NCA9IGVuY29kZShhcnJheUJ1ZmZlcik7CiAgICAgIGlmICghbGFzdEJsb2JNYXAuaGFzKGlkKSAmJiBhd2FpdCB0cmFuc3BhcmVudEJhc2U2NCA9PT0gYmFzZTY0KSB7CiAgICAgICAgbGFzdEJsb2JNYXAuc2V0KGlkLCBiYXNlNjQpOwogICAgICAgIHJldHVybiB3b3JrZXIucG9zdE1lc3NhZ2UoeyBpZCB9KTsKICAgICAgfQogICAgICBpZiAobGFzdEJsb2JNYXAuZ2V0KGlkKSA9PT0gYmFzZTY0KSByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQgfSk7CiAgICAgIHdvcmtlci5wb3N0TWVzc2FnZSh7CiAgICAgICAgaWQsCiAgICAgICAgdHlwZSwKICAgICAgICBiYXNlNjQsCiAgICAgICAgd2lkdGgsCiAgICAgICAgaGVpZ2h0CiAgICAgIH0pOwogICAgICBsYXN0QmxvYk1hcC5zZXQoaWQsIGJhc2U2NCk7CiAgICB9IGVsc2UgewogICAgICByZXR1cm4gd29ya2VyLnBvc3RNZXNzYWdlKHsgaWQ6IGUuZGF0YS5pZCB9KTsKICAgIH0KICB9Owp9KSgpOwovLyMgc291cmNlTWFwcGluZ1VSTD1pbWFnZS1iaXRtYXAtZGF0YS11cmwtd29ya2VyLUlKcEM3Z19iLmpzLm1hcAo=",decodeBase64$1=e=>Uint8Array.from(atob(e),e=>e.charCodeAt(0)),blob="undefined"!=typeof window&&window.Blob&&new Blob([decodeBase64$1(encodedJs)],{type:"text/javascript;charset=utf-8"});function WorkerWrapper(e){let t;try{var n;if(t=blob&&(window.URL||window.webkitURL).createObjectURL(blob))return(n=new Worker(t,{name:null==e?void 0:e.name})).addEventListener("error",()=>{(window.URL||window.webkitURL).revokeObjectURL(t)}),n;throw""}catch(i){return new Worker("data:text/javascript;base64,"+encodedJs,{name:null==e?void 0:e.name})}finally{t&&(window.URL||window.webkitURL).revokeObjectURL(t)}}class CanvasManager{constructor(e){__publicField(this,"pendingCanvasMutations",new Map),__publicField(this,"rafStamps",{latestId:0,invokeId:null}),__publicField(this,"mirror"),__publicField(this,"mutationCb"),__publicField(this,"resetObservers"),__publicField(this,"frozen",!1),__publicField(this,"locked",!1),__publicField(this,"processMutation",(e,t)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(e)||this.pendingCanvasMutations.set(e,[]),this.pendingCanvasMutations.get(e).push(t)});var{sampling:t="all",win:n,blockClass:i,blockSelector:r,recordCanvas:o,dataURLOptions:a}=e;this.mutationCb=e.mutationCb,this.mirror=e.mirror,o&&"all"===t&&this.initCanvasMutationObserver(n,i,r),o&&"number"==typeof t&&this.initCanvasFPSObserver(t,n,i,r,{dataURLOptions:a})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(e,n,i,r,o){const t=initCanvasContextObserver(n,i,r,!0),a=new Map,s=new WorkerWrapper,d=(s.onmessage=e=>{var t,n,i,r=e.data["id"];a.set(r,!1),"base64"in e.data&&({base64:e,type:t,width:n,height:i}=e.data,this.mutationCb({id:r,type:CanvasContext["2D"],commands:[{property:"clearRect",args:[0,0,n,i]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:e}],type:t}]},0,0]}]}))},1e3/e);let u=0,c;const l=()=>{const t=[];return n.document.querySelectorAll("canvas").forEach(e=>{isBlocked(e,i,r,!0)||t.push(e)}),t},p=e=>{c=(u&&e-u<d||(u=e,l().forEach(async e=>{var t,n,i=this.mirror.getId(e);a.get(i)||0!==e.width&&0!==e.height&&(a.set(i,!0),["webgl","webgl2"].includes(e.__context)&&!1===(null==(n=null==(t=e.getContext(e.__context))?void 0:t.getContextAttributes())?void 0:n.preserveDrawingBuffer)&&t.clear(t.COLOR_BUFFER_BIT),n=await createImageBitmap(e),s.postMessage({id:i,bitmap:n,width:e.width,height:e.height,dataURLOptions:o.dataURLOptions},[n]))})),requestAnimationFrame(p))};c=requestAnimationFrame(p),this.resetObservers=()=>{t(),cancelAnimationFrame(c)}}initCanvasMutationObserver(e,t,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();const i=initCanvasContextObserver(e,t,n,!1),r=initCanvas2DMutationObserver(this.processMutation.bind(this),e,t,n),o=initCanvasWebGLMutationObserver(this.processMutation.bind(this),e,t,n);this.resetObservers=()=>{i(),r(),o()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=e=>{this.rafStamps.latestId=e,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((e,t)=>{var n=this.mirror.getId(t);this.flushPendingCanvasMutationFor(t,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(e,t){var n,i;this.frozen||this.locked||(i=this.pendingCanvasMutations.get(e))&&-1!==t&&(n=i.map(e=>{const{type:t,...n}=e;return n}),i=i[0]["type"],this.mutationCb({id:t,type:i,commands:n}),this.pendingCanvasMutations["delete"](e))}}class StylesheetManager{constructor(e){__publicField(this,"trackedLinkElements",new WeakSet),__publicField(this,"mutationCb"),__publicField(this,"adoptedStyleSheetCb"),__publicField(this,"styleMirror",new StyleSheetMirror),this.mutationCb=e.mutationCb,this.adoptedStyleSheetCb=e.adoptedStyleSheetCb}attachLinkElement(e,t){"_cssText"in t.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:t.id,attributes:t.attributes}]}),this.trackLinkElement(e)}trackLinkElement(e){this.trackedLinkElements.has(e)||(this.trackedLinkElements.add(e),this.trackStylesheetInLinkElement(e))}adoptStyleSheets(e,t){if(0!==e.length){var n={id:t,styleIds:[]},i=[];for(const o of e){let e;if(this.styleMirror.has(o))e=this.styleMirror.getId(o);else{e=this.styleMirror.add(o);var r=[];for(let e=0;e<o.rules.length;++e)r.push({rule:stringifyRule(o.rules[e],o.href),index:e});i.push({styleId:e,rules:Array.from(o.rules||CSSRule,(e,t)=>({rule:stringifyRule(e,o.href),index:t}))})}n.styleIds.push(e)}0<i.length&&(n.styles=i),this.adoptedStyleSheetCb(n)}}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(e){}}class ProcessedNodeManager{constructor(){__publicField(this,"nodeMap",new WeakMap),__publicField(this,"active",!1)}inOtherBuffer(e,t){e=this.nodeMap.get(e);return e&&Array.from(e).some(e=>e!==t)}add(e,t){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(e,(this.nodeMap.get(e)||new Set).add(t))}destroy(){}}let wrappedEmit,takeFullSnapshot$1=()=>{},canvasManager,recording=!1;try{if(2!==Array.from([1],e=>2*e)[0]){const fRb=document.createElement("iframe");document.body.appendChild(fRb),Array.from=(null==(_a=fRb.contentWindow)?void 0:_a.Array.from)||Array.from,document.body.removeChild(fRb)}}catch(err){console.debug("Unable to override Array.from",err)}const mirror=createMirror$2();function record(e={}){const{emit:i,checkoutEveryNms:r,checkoutEveryNth:o,blockClass:n="rr-block",blockSelector:a=null,ignoreClass:P="rr-ignore",ignoreSelector:G=null,maskTextClass:s="rr-mask",maskTextSelector:d=null,inlineStylesheet:u=!0,maskAllInputs:D,maskInputOptions:t,slimDOMOptions:c,maskInputFn:l,maskTextFn:p,hooks:B,packFn:h,sampling:f={},dataURLOptions:g={},mousemoveWait:m,recordDOM:W=!0,recordCanvas:v=!1,recordCrossOriginIframes:$=!1,recordAfter:U="DOMContentLoaded"===e.recordAfter?e.recordAfter:"load",userTriggeredOnInput:j=!1,collectFonts:z=!1,inlineImages:y=!1,plugins:b,keepIframeSrcFn:I=()=>!1,ignoreCSSAttributes:Z=new Set([]),errorHandler:V}=e,w=(registerErrorHandler(V),!$||window.parent===window);let C=!1;if(!w)try{window.parent.document&&(C=!1)}catch(J){C=!0}if(w&&!i)throw new Error("emit function is required");if(!w&&!C)return()=>{};void 0!==m&&void 0===f.mousemove&&(f.mousemove=m),mirror.reset();const S=!0===D?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:void 0!==t?t:{password:!0},A=!0===c||"all"===c?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:"all"===c,headMetaDescKeywords:"all"===c,headTitleMutations:"all"===c}:c||{};polyfill$1();let Y,E=0;const H=e=>{for(const t of b||[])t.eventProcessor&&(e=t.eventProcessor(e));return e=h&&!C?h(e):e},T=(wrappedEmit=(e,t)=>{var n;e.timestamp=nowTimestamp(),null==(n=mutationBuffers[0])||!n.isFrozen()||e.type===EventType.FullSnapshot||e.type===EventType.IncrementalSnapshot&&e.data.source===IncrementalSource.Mutation||mutationBuffers.forEach(e=>e.unfreeze()),w?null!=i&&i(H(e),t):C&&(n={type:"rrweb",event:H(e),origin:window.location.origin,isCheckout:t},window.parent.postMessage(n,"*")),e.type===EventType.FullSnapshot?(Y=e,E=0):e.type!==EventType.IncrementalSnapshot||e.data.source===IncrementalSource.Mutation&&e.data.isAttachIframe||(E++,t=o&&E>=o,n=r&&e.timestamp-Y.timestamp>r,(t||n)&&takeFullSnapshot$1(!0))},e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Mutation,...e}})}),K=e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Scroll,...e}}),X=e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CanvasMutation,...e}});const _=new StylesheetManager({mutationCb:T,adoptedStyleSheetCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.AdoptedStyleSheet,...e}})}),x=new IframeManager({mirror:mirror,mutationCb:T,stylesheetManager:_,recordCrossOriginIframes:$,wrappedEmit:wrappedEmit,takeFullSnapshot:takeFullSnapshot$1});for(const N of b||[])N.getMirror&&N.getMirror({nodeMirror:mirror,crossOriginIframeMirror:x.crossOriginIframeMirror,crossOriginIframeStyleMirror:x.crossOriginIframeStyleMirror});const R=new ProcessedNodeManager,k=(canvasManager=new CanvasManager({recordCanvas:v,mutationCb:X,win:window,blockClass:n,blockSelector:a,mirror:mirror,sampling:f.canvas,dataURLOptions:g}),new ShadowDomManager({mutationCb:T,scrollCb:K,bypassOptions:{blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskInputOptions:S,dataURLOptions:g,maskTextFn:p,maskInputFn:l,recordCanvas:v,inlineImages:y,sampling:f,slimDOMOptions:A,iframeManager:x,stylesheetManager:_,canvasManager:canvasManager,keepIframeSrcFn:I,processedNodeManager:R},mirror:mirror}));takeFullSnapshot$1=(e=!1)=>{if(W){wrappedEmit({type:EventType.Meta,data:{href:window.location.href,width:getWindowWidth(),height:getWindowHeight()}},e),_.reset(),k.init(),mutationBuffers.forEach(e=>e.lock());var t=snapshot(document,{mirror:mirror,blockClass:n,blockSelector:a,maskTextClass:s,maskTextSelector:d,inlineStylesheet:u,maskAllInputs:S,maskTextFn:p,maskInputFn:l,slimDOM:A,dataURLOptions:g,recordCanvas:v,inlineImages:y,onSerialize:e=>{isSerializedIframe(e,mirror)&&x.addIframe(e),isSerializedStylesheet(e,mirror)&&_.trackLinkElement(e),hasShadowRoot(e)&&k.addShadowRoot(index.shadowRoot(e),document)},onIframeLoad:(e,t)=>{x.attachIframe(e,t),k.observeAttachShadow(e)},onStylesheetLoad:(e,t)=>{_.attachLinkElement(e,t)},keepIframeSrcFn:I});if(!t)return console.warn("Failed to snapshot the document");wrappedEmit({type:EventType.FullSnapshot,data:{node:t,initialOffset:getWindowScroll(window)}},e),mutationBuffers.forEach(e=>e.unlock()),document.adoptedStyleSheets&&0<document.adoptedStyleSheets.length&&_.adoptStyleSheets(document.adoptedStyleSheets,mirror.getId(document))}},x.setTakeFullSnapshot(takeFullSnapshot$1);try{const M=[],L=e=>{return callbackWrapper(initObservers)({mutationCb:T,mousemoveCb:(e,t)=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:t,positions:e}}),mouseInteractionCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MouseInteraction,...e}}),scrollCb:K,viewportResizeCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.ViewportResize,...e}}),inputCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Input,...e}}),mediaInteractionCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.MediaInteraction,...e}}),styleSheetRuleCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleSheetRule,...e}}),styleDeclarationCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.StyleDeclaration,...e}}),canvasMutationCb:X,fontCb:e=>wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Font,...e}}),selectionCb:e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.Selection,...e}})},customElementCb:e=>{wrappedEmit({type:EventType.IncrementalSnapshot,data:{source:IncrementalSource.CustomElement,...e}})},blockClass:n,ignoreClass:P,ignoreSelector:G,maskTextClass:s,maskTextSelector:d,maskInputOptions:S,inlineStylesheet:u,sampling:f,recordDOM:W,recordCanvas:v,inlineImages:y,userTriggeredOnInput:j,collectFonts:z,doc:e,maskInputFn:l,maskTextFn:p,keepIframeSrcFn:I,blockSelector:a,slimDOMOptions:A,dataURLOptions:g,mirror:mirror,iframeManager:x,stylesheetManager:_,shadowDomManager:k,processedNodeManager:R,canvasManager:canvasManager,ignoreCSSAttributes:Z,plugins:(null==(e=null==b?void 0:b.filter(e=>e.observer))?void 0:e.map(t=>({observer:t.observer,options:t.options,callback:e=>wrappedEmit({type:EventType.Plugin,data:{plugin:t.name,payload:e}})})))||[]},B)},F=(x.addLoadListener(e=>{try{M.push(L(e.contentDocument))}catch(t){console.warn(t)}}),()=>{takeFullSnapshot$1(),M.push(L(document)),recording=!0});return"interactive"===document.readyState||"complete"===document.readyState?F():(M.push(on("DOMContentLoaded",()=>{wrappedEmit({type:EventType.DomContentLoaded,data:{}}),"DOMContentLoaded"===U&&F()})),M.push(on("load",()=>{wrappedEmit({type:EventType.Load,data:{}}),"load"===U&&F()},window))),()=>{M.forEach(e=>e()),R.destroy(),recording=!1,unregisterErrorHandler()}}catch(O){console.warn(O)}}record.addCustomEvent=(e,t)=>{if(!recording)throw new Error("please add custom event after start recording");wrappedEmit({type:EventType.Custom,data:{tag:e,payload:t}})},record.freezePage=()=>{mutationBuffers.forEach(e=>e.freeze())},record.takeFullSnapshot=e=>{if(!recording)throw new Error("please take full snapshot after start recording");takeFullSnapshot$1(e)},record.mirror=mirror,function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"}(n=n||{});var __assign=function(){return(__assign=Object.assign||function __assign(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},SessionRecorderBuffer=function(){function e(e,t){void 0===t&&(t=Infinity),this.data=[],this.sequenceNumber=0,this.interval=e,this.maxCount=t,this.doubledMaxCount=2*t}return e.prototype.isEmpty=function(){return 0===this.data.length},e.prototype.count=function(){return this.data.length},e.prototype.clear=function(){this.data.length=0},e.prototype.clearSequence=function(){this.sequenceNumber=0},e.prototype.push=function(e){this.data.push(e),this.checkRateLimit()},e.prototype.pack=function(e,n){var t=this.data.splice(0,this.maxCount);return e.recordingPayload=t,e.sequence=this.sequenceNumber,e.recordingPayloadCount=t.length,t.length&&(e.browserTime=t[0].timestamp),e.recordingPayloadMetadata=n.map(t,function(e){var t=n.pick(e,"type","timestamp");return e.data&&(t.data=n.pick(e.data,"source","type","x","y","id","height","width","href")),t}),this.sequenceNumber+=t.length,e},e.prototype.checkRateLimit=function(){var e=this.data.length;e>=this.doubledMaxCount&&e%this.maxCount==0&&this.data[e-1].timestamp-this.data[e-this.doubledMaxCount].timestamp<=this.interval&&this.onRateLimit&&this.onRateLimit()},e}(),MAX_BACKOFF=6,MAX_FAILURES=100,SendQueue=function(){function e(e,t){void 0===t&&(t=MAX_FAILURES),this.queue=[],this.unloads=new Set,this.pending=new Set,this.failures=new Map,this.sendFn=e,this.maxFailures=t}return e.prototype.isEmpty=function(){return this.queue.length<=0},e.prototype.stop=function(){this.queue.length=0,this.unloads.clear(),this.pending.clear(),this.failures.clear(),this.stopped=!0,clearTimeout(this.timer),delete this.timer},e.prototype.start=function(){this.stopped=!1},e.prototype.push=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];(e=this.queue).push.apply(e,t),this.next()},e.prototype.next=function(){var e;if(this.queue.length&&this.pending.size<1)return e=this.queue[0],this.send(e,!1,!0)},e.prototype.incrementFailure=function(e){var t=(this.failures.get(e)||0)+1;return this.failures.set(e,t),t},e.prototype.pass=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e),this.failures.clear();e=this.queue.indexOf(e);0<=e&&this.queue.splice(e,1),!this.stopped&&t&&this.next()},e.prototype.fail=function(e,t){void 0===t&&(t=!0),this.unloads["delete"](e),this.pending["delete"](e);var n=this.incrementFailure(e);!this.stopped&&t&&(n>=this.maxFailures&&(this.onTimeout&&this.onTimeout(),this.pass(e,!1)),this.retryLater(1e3*Math.pow(2,Math.min(n-1,MAX_BACKOFF))))},e.prototype.retryLater=function(e){var t=this;this.timer=setTimeout$1(function(){delete t.timer,t.next()},e)},e.prototype.failed=function(){return 0<this.failures.get(this.queue[0])&&null!=this.timer},e.prototype.send=function(e,t,n){var i=this;return this.pending.add(e),t&&this.unloads.add(e),this.sendFn(e,t,this.failures.get(e)||0).then(function(){return i.pass(e,n)},function(){return i.fail(e,n)})},e.prototype.drain=function(e,t){var n;if(void 0===t&&(t=!0),(n=this.queue).push.apply(n,e),this.failed())return Promise$4.reject();for(var i=[],r=0,o=this.queue;r<o.length;r++){var a=o[r];this.pending.has(a)?this.retryPending&&t&&!this.unloads.has(a)&&(this.incrementFailure(a),i.push(this.send(a,t,!1))):i.push(this.send(a,t,!1))}return Promise$4.all(i)},e}(),RECORDING_CONFIG_WORKERURL$1="recording.workerUrl",MAX_SIZE=1e6,RESOURCE_CACHING$1="resourceCaching",Transport=function(){function e(e,t,n){this.WorkerClass=e,this.pendo=t,this.api=n,this.maxSize=MAX_SIZE,this.isResourceCachingEnabled=this.api.ConfigReader.get(RESOURCE_CACHING$1)}return e.prototype.start=function(e){if(!e.disableWorker&&!this.worker)try{var t;e.workerOverride?this.worker=e.workerOverride:(t=this.api.ConfigReader.get(RECORDING_CONFIG_WORKERURL$1),this.usesSelfHostedWorker=null!=t,this.worker=t?new Worker(t):new this.WorkerClass),this.worker.onmessage=this.pendo._.bind(this._onMessage,this),this.worker.onerror=this.pendo._.bind(this._onError,this)}catch(n){this.worker=null}},e.prototype.stop=function(){this.worker&&(this.worker.terminate(),delete this.worker)},e.prototype.send=function(e,t,n){var i,r=e.url,o=e.payload;if(0<(n=void 0===n?0:n)&&(r="".concat(r,"&rt=").concat(n)),this.worker&&!t&&o)return(i={}).promise=new Promise$4(function(e,t){i.resolve=e,i.reject=t}),this.workerResponse=i,this.worker.postMessage({url:r,payload:o,shouldCacheResources:this.isResourceCachingEnabled}),i.promise;if(!e.body){n=JSON.stringify(o);if(n.length>this.maxSize)throw(o=new Error("maximum recording payload size exceeded")).reason="HEAVY_EVENT",o;e.body=this.pendo.compress(n,"binary"),delete e.payload}return r="".concat(r,"&ct=").concat((new Date).getTime()),this.post(r,{keepalive:t,body:e.body})},e.prototype.post=function(e,t){return t.method="POST",t.keepalive&&this.api.transmit.fetchKeepalive.supported()?this.api.transmit.fetchKeepalive(e,t):t.keepalive&&this.api.transmit.sendBeacon.supported()?this.api.transmit.sendBeacon(e,new Blob([t.body]))?Promise$4.resolve():Promise$4.reject(new Error("sendBeacon failed to send recording data")):this.pendo.ajax.post(e,t.body)},e.prototype._onMessage=function(e){e.data&&e.data.type?this.onWorkerMessage(e.data):(e.data&&e.data.error&&((e.data.status&&e.data.status<500||null==e.data.sequence)&&this.api.log.critical("Failed to send recording data from web worker",{error:e.data.error}),this.workerResponse)&&(this.workerResponse.reject(),this.workerResponse=null),this.workerResponse&&(this.workerResponse.resolve(),this.workerResponse=null))},e.prototype._onError=function(){this.onError&&this.onError()},e}(),ELEMENT_NODE=1,INPUT_MASK="*".repeat(10);function isElementNode(e){return!!e&&e.nodeType===ELEMENT_NODE}function distanceToMatch(e,t,n,i){return void 0===n&&(n=Infinity),void 0===i&&(i=0),!isElementNode(e)||n<i?-1:e.matches(t)?i:distanceToMatch(e.parentNode,t,n,i+1)}function shouldMask(e,t){var n=t.maskAllText,i=t.maskTextSelector,t=t.unmaskTextSelector;try{var r=isElementNode(e)?e:e.parentElement;if(null===r)return!1;var o=-1,a=-1;if(n){if((a=distanceToMatch(r,t))<0)return!0;o=distanceToMatch(r,i,0<=a?a:Infinity)}else{if((o=distanceToMatch(r,i))<0)return!1;a=distanceToMatch(r,t,0<=o?o:Infinity)}return 0<=o?!(0<=a)||o<=a:!(0<=a||!n)}catch(s){}return!!n}function shouldMaskInput(e,t){if(t&&isElementNode(e)){var n=(e.tagName||"").toLowerCase(),e=(e.type||"").toLowerCase();if(t[n]||t[e])return!0}return!1}function maskInput(e,t,n){return shouldMaskInput(n,e.maskInputOptions)||shouldMask(n,e)?t?INPUT_MASK:"":t}function maskText(e,t,n){return shouldMask(n,e)?t?t.replace(/[\S]/g,"*"):"":t}function SessionRecorder(e,t){this.record=e,this.lastKeyFrameTime=0,this.eventsSinceLastKeyFrame=0,this.currentRecordingSize=0,this.WorkerClass=t}SessionRecorder.FULL_SNAPSHOT=2,SessionRecorder.META=4,SessionRecorder.INCREMENTAL_SNAPSHOT=3,SessionRecorder.INCREMENTAL_SOURCE_MUTATION=0,SessionRecorder.INCREMENTAL_SOURCE_INPUT=5,SessionRecorder.SEND_INTERVAL=5e3,SessionRecorder.MAX_SEND_COUNT=2e4;var RECORDING_CONFIG="recording",RECORDING_CONFIG_ENABLED="recording.enabled",RECORDING_CONFIG_AUTO_START="recording.autoStart",RECORDING_CONFIG_WORKERURL="recording.workerUrl",RECORDING_CONFIG_ON_RECORDING_START="recording.onRecordingStart",RECORDING_CONFIG_ON_RECORDING_STOP="recording.onRecordingStop",RECORDING_CONFIG_WORKER_OVERRIDE="recording.workerOverride",RESOURCE_CACHING="resourceCaching",ONE_DAY_IN_MILLISECONDS=864e5,THIRTY_MINUTES=18e5,ONE_HUNDRED_MB_IN_BYTES=104857600,SESSION_RECORDING_ID="pendo_srId",SESSION_RECORDING_LAST_USER_INTERACTION_EVENT="pendo_srLastUserInteractionEvent";function wrapMethodWithCatch(t){return function(){try{return t.apply(this,arguments)}catch(e){this.api&&this.api.log&&this.api.log.critical("session recording error",{error:e})}}}function errorLogger(e){if("undefined"!=typeof Object&&"function"==typeof Object.getOwnPropertyNames&&e.constructor&&e.constructor.prototype)for(var t=0,n=Object.getOwnPropertyNames(e.constructor.prototype);t<n.length;t++){var i=n[t];"constructor"!==i&&(e[i]=wrapMethodWithCatch(e[i]))}return e}function decodeBase64(e,t){var n=atob(e);if(t){for(var i=new Uint8Array(n.length),r=0,o=n.length;r<o;++r)i[r]=n.charCodeAt(r);return new TextDecoder("utf-16le").decode(new Uint16Array(i.buffer))}return n}function createURL(e,t,n){t=t===undefined?null:t,e=decodeBase64(e,n!==undefined&&n),n=e.indexOf("\n",10)+1,n=e.substring(n)+(t?"//# sourceMappingURL="+t:""),e=new Blob([n],{type:"application/javascript"});return URL.createObjectURL(e)}function createBase64WorkerFactory(t,n,i){var r;return function WorkerFactory(e){return r=r||createURL(t,n,i),new Worker(r,e)}}SessionRecorder.prototype.addConfigOptions=function(){var e=this.api.ConfigReader;e.addOption(RECORDING_CONFIG,[e.sources.PENDO_CONFIG_SRC],{}),e.addOption(RECORDING_CONFIG_AUTO_START,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ENABLED,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_START,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_ON_RECORDING_STOP,[e.sources.SNIPPET_SRC,e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKERURL,[e.sources.SNIPPET_SRC],undefined),e.addOption(RECORDING_CONFIG_WORKER_OVERRIDE,[e.sources.PENDO_CONFIG_SRC],undefined),e.addOption(RESOURCE_CACHING,[e.sources.PENDO_CONFIG_SRC],undefined)},SessionRecorder.prototype.name="Replay",SessionRecorder.prototype.initialize=function(e,t){this.pendo=e,this.api=t;var n=this.pendo._.bind,i=this.api.ConfigReader,r=(this.buffer=new SessionRecorderBuffer(SessionRecorder.SEND_INTERVAL,SessionRecorder.MAX_SEND_COUNT),this.buffer.onRateLimit=n(this.rateLimitExceeded,this),this.transport=new Transport(this.WorkerClass,e,t),this.transport.onError=n(this.sendFailure,this,"WORKER_ERROR"),this.transport.onWorkerMessage=n(this.onWorkerMessage,this),this.sendQueue=new SendQueue(n(this.transport.send,this.transport)),this.sendQueue.onTimeout=n(this.sendFailure,this,"SEND_TIMEOUT"),this.isNewSession=!1,this.addConfigOptions(),this.config=i.get(RECORDING_CONFIG),this.onRecordingStart=e._.isFunction(i.get(RECORDING_CONFIG_ON_RECORDING_START))?i.get(RECORDING_CONFIG_ON_RECORDING_START):function(){},this.onRecordingStop=e._.isFunction(i.get(RECORDING_CONFIG_ON_RECORDING_STOP))?i.get(RECORDING_CONFIG_ON_RECORDING_STOP):function(){},!1),o=i.get(RECORDING_CONFIG_ENABLED);e._.isBoolean(o)?(r=o)||this.api.log.info("Session Replay disabled via the snippet config"):r=this.config.enabled,r&&(i.get("excludeNonGuideAnalytics")?this.api.log.info("Session Replay is disabled because excludeNonGuideAnalytics is enabled"):(o=this.sessionIdKey="".concat(SESSION_RECORDING_ID,".").concat(e.apiKey),e.recording={start:n(this.start,this),stop:n(this.stop,this)},this.subscriptions=[t.attachEvent(t.Events,"appHidden",n(this.handleHidden,this)),t.attachEvent(t.Events,"appUnloaded",n(this.handleUnload,this)),t.attachEvent(t.Events,"identify",n(this.changeIdentity,this)),t.attachEvent(t.Events,"metadata",n(this.changeMetadata,this)),t.attachEvent(t.Events,"eventCaptured",n(this.addRecordingId,this)),t.attachEvent(t.Events,"transmit:locked",n(this.stop,this)),t.attachEvent(t.Events,"transmit:unlocked",n(this._start,this)),t.attachEvent(t.frames.getChannel(),"message",n(this._frameMessage,this)),t.attachEvent(t.Events,"tabIdChanged:self",n(this.handleTabIdChange,this))],t.store.getters["frames/isReady"]()?this.ready():this.subscriptions.push(t.attachEvent(t.Events,"ready",n(this.ready,this))),t.agentStorage.registry.addSession(o),t.agentStorage.registry.addSession(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)))},SessionRecorder.prototype.teardown=function(){delete this.pendo.recording,delete this.allowStart,this.pendo._.each(this.subscriptions,function(e){e()}),this.subscriptions.length=0,this.stop(),this.transport.stop()},SessionRecorder.prototype.ready=function(){!1!==this.api.ConfigReader.get(RECORDING_CONFIG_AUTO_START)&&this.start()},SessionRecorder.prototype.changeIdentity=function(e){var t=this;this.allowStart&&(clearTimeout(this._changeIdentityTimer),this.isRecording()&&this.stop(),this.visitorId=e.data[0].visitor_id,this.accountId=e.data[0].account_id,this._changeIdentityTimer=setTimeout$1(function(){t._start()},500))},SessionRecorder.prototype.changeMetadata=function(e){var t=this,e=e.data[0],n=e.hashChanged,e=e.options;if(this.allowStart&&n)return clearTimeout(this._changeIdentityTimer),this.visitorId=e.visitor.id,this.accountId=e.account.id,this.fetchVisitorConfig().then(function(e){e&&e.enable||!t.isRecording()?e&&e.enable&&!t.isRecording()&&t._startRecordingForVisitor(e):t.stop()})["catch"](function(e){t.api.log.critical("Failed to re-fetch recording config",{error:e}),t.logStopReason("VISITOR_CONFIG_ERROR")})},SessionRecorder.prototype.snapshot=function(){this.isRecording()&&(this.send(),this.record.takeFullSnapshot())},SessionRecorder.prototype.isRecording=function(){return null!=this.interval},SessionRecorder.prototype.recordingConfig=function(e){var e=this.pendo._.extend({},this.config.options,e),t={maskAllText:null==e.privateByDefault||e.privateByDefault,maskTextSelector:[".pendo-sr-mask"].concat(e.maskedSelectors||[]).join(","),unmaskTextSelector:[".pendo-sr-unmask"].concat(e.unmaskedSelectors||[]).join(","),maskInputOptions:{}};return this.pendo._.isObject(e.maskInputOptions)&&(t.maskInputOptions=e.maskInputOptions),t.maskInputOptions=this.pendo._.extend(t.maskInputOptions,{email:!0,password:!0,tel:!0}),{maskInputFn:this.pendo._.partial(maskInput,t),maskTextFn:this.pendo._.partial(maskText,t),maskTextSelector:"*",maskTextClass:null,maskInputOptions:t.maskInputOptions,blockClass:null,blockSelector:[".pendo-ignore",".pendo-sr-ignore"].concat(e.blockedSelectors||[]).join(","),recordCrossOriginIframes:null==e.recordCrossOriginIframes||e.recordCrossOriginIframes}},SessionRecorder.prototype.start=function(){this._restartPtm=this.api.analytics.ptm().pause(),this.allowStart=!0,this.visitorId=this.pendo.get_visitor_id(),this.accountId=this.pendo.get_account_id(),this._start()},SessionRecorder.prototype._markEvents=function(e){if(this.recordingId)for(var t=0,n=e;t<n.length;t++){var i=n[t];i.visitor_id===this.visitorId&&"identify"!==i.type&&(i.recordingId=this.recordingId,i.recordingSessionId=this.sessionId(this.recordingId))}},SessionRecorder.prototype.restartPtm=function(){if(this.pendo._.isFunction(this._restartPtm)){this._markEvents(this.pendo.buffers.events);for(var e=0,t=this.pendo.buffers.silos;e<t.length;e++){var n=t[e];this._markEvents(n)}this._restartPtm(),this._restartPtm=null}},SessionRecorder.prototype._start=function(){var t=this;if(!this.isRecording()&&this.pendo.isSendingEvents()&&this.allowStart)return this.fetchVisitorConfig().then(function(e){t.allowStart&&(e&&e.enable?t._startRecordingForVisitor(e):(t.restartPtm(),t.logStopReason("VISITOR_DISABLED")))})["catch"](function(e){t.restartPtm(),t.api.log.critical("Failed to fetch recording config",{error:e}),t.logStopReason("VISITOR_CONFIG_ERROR")})},SessionRecorder.prototype._startRecordingForVisitor=function(e){var t=this;if(this.transport.start(this.config),this.pendo._.get(this.config,"disableFallback",!0)&&!this.transport.worker)this.restartPtm(),this.pendo.log("Worker failed to start and main thread fallback is disabled. Recording prevented from starting."),this.logStopReason("WORKER_ERROR");else try{var n=this.pendo._.bind,i=(this.visitorConfig=e,this.clearOldSessionId(),this.sendQueue.start(),this.interval=setInterval(function(){t.sendQueue.failed()||t.send()},SessionRecorder.SEND_INTERVAL),this.recordingConfig(e));this._stop=this.record(this.pendo._.extend({emit:n(this.emit,this)},i)),this._refreshIds(),this.onRecordingStart()}catch(r){this.restartPtm(),this.logStopReason("RECORDING_ERROR")}},SessionRecorder.prototype._sendIds=function(){window==window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:id",recordingId:this.recordingId,_sessionId:this._sessionId,topId:this.api.store.state.frames.topId})},SessionRecorder.prototype._refreshIds=function(e){window!=window.top&&this.api.frames.getChannel().postMessage({type:"pendo:sr:refresh"})},SessionRecorder.prototype._frameMessage=function(e){e=e.data;"pendo:sr:id"===e.type?this.api.EventTracer.getTabId()==e.tabId&&this.api.store.state.frames.topId!=e.topId||(this.recordingId=e.recordingId,this._sessionId=e._sessionId,this.restartPtm()):"pendo:sr:refresh"===e.type&&window==window.top&&this._sendIds()},SessionRecorder.prototype.clearSessionId=function(){delete this._sessionId,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID),this.api.sessionStorage.removeItem(this.sessionIdKey)},SessionRecorder.prototype.sessionId=function(e){var t,n;return void 0===e&&(e=this.pendo.randomString(16)),this._sessionId||((t=this.api.sessionStorage.getItem(this.sessionIdKey))||((n=this.api.sessionStorage.getItem(SESSION_RECORDING_ID))?(t=n,this.api.sessionStorage.removeItem(SESSION_RECORDING_ID)):t=e,this.api.sessionStorage.setItem(this.sessionIdKey,t)),this._sessionId=t),this._sessionId},SessionRecorder.prototype.clearOldSessionId=function(){var e=this.getLastUserInteractionEventInformation();if(e){var t=e.timestamp,e=e.visitorId===this.visitorId&&e.accountId===this.accountId,t=t>Date.now()-this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES);if(e&&t)return}this.clearSessionInfo(),this.isNewSession=!0},SessionRecorder.prototype.clearSessionInfo=function(){this.currentRecordingSize=0,this.clearSessionId(),this.clearLastUserInteractionEventInformation()},SessionRecorder.prototype.isUserInteraction=function(e){return e.type===SessionRecorder.INCREMENTAL_SNAPSHOT&&e.data.source>SessionRecorder.INCREMENTAL_SOURCE_MUTATION&&e.data.source<=SessionRecorder.INCREMENTAL_SOURCE_INPUT},SessionRecorder.prototype.storeLastUserInteractionEventInformation=function(e,t,n,i){(this.isUserInteraction(e)||i)&&(this.lastUserInteractionEventInfo={timestamp:e.timestamp,visitorId:t,accountId:n},this.api.sessionStorage.setItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT,JSON.stringify(this.lastUserInteractionEventInfo)))},SessionRecorder.prototype.clearLastUserInteractionEventInformation=function(){delete this.lastUserInteractionEventInfo,this.api.sessionStorage.removeItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)},SessionRecorder.prototype.getLastUserInteractionEventInformation=function(){if(this.lastUserInteractionEventInfo)return this.lastUserInteractionEventInfo;try{return this.lastUserInteractionEventInfo=JSON.parse(this.api.sessionStorage.getItem(SESSION_RECORDING_LAST_USER_INTERACTION_EVENT)),this.lastUserInteractionEventInfo}catch(e){return null}},SessionRecorder.prototype.emit=function(e){e.timestamp&&e.timestamp.getTime&&(e.timestamp=e.timestamp.getTime()),e.timestamp||(e.timestamp=(new Date).getTime());var t=e.type===SessionRecorder.META,n=e.type===SessionRecorder.FULL_SNAPSHOT,i=this.pendo._.get(this.getLastUserInteractionEventInformation(),"timestamp"),r=!i&&t?!0:!1,r=(this.storeLastUserInteractionEventInformation(e,this.visitorId,this.accountId,r),this.pendo._.get(this.visitorConfig,"inactivityDuration",THIRTY_MINUTES));i&&e.timestamp-i>r&&!n&&!t?(this.send(),this.clearSessionInfo(),this.snapshot()):(t&&this.send(),this.buffer.push(e),n?(this.lastKeyFrameTime=e.timestamp,this.eventsSinceLastKeyFrame=0,this.recordingId=this.pendo.randomString(16),this.buffer.clearSequence(),this.sessionId(this.recordingId),this.restartPtm(),this._sendIds(),this.send({keyframe:!0})):!t&&(this.eventsSinceLastKeyFrame+=1,i=e.timestamp-this.lastKeyFrameTime,r=ONE_DAY_IN_MILLISECONDS<=i,n=i>=this.pendo._.get(this.visitorConfig,"keyframeTimeFrequency",30645047),t=this.eventsSinceLastKeyFrame>=this.pendo._.get(this.visitorConfig,"keyframeEventFrequency",4548),e=this.currentRecordingSize>=this.pendo._.get(this.visitorConfig,"recordingSizeLimit",ONE_HUNDRED_MB_IN_BYTES),r||n&&t||e)&&(this.currentRecordingSize=0,this.snapshot()))},SessionRecorder.prototype.updateCurrentRecordingSize=function(e){this.currentRecordingSize+=e},SessionRecorder.prototype.onWorkerMessage=function(e){switch(e.type){case"recordingPayloadSize":var t=e.recordingPayloadSize,n=e.exceedsPayloadSizeLimit;if(!t)return;if(n)return this.stop(),void this.logStopReason("BIG_PAYLOAD",t);this.updateCurrentRecordingSize(t);break;case"hostedResources":n=e.hostedResourcesEvent;n&&this.sendHostedResources(n)}},SessionRecorder.prototype.addRecordingId=function(e){this.recordingId&&e&&e.data&&e.data.length&&"recording"!==(e=e.data[0]).type&&"identify"!==e.type&&(e.visitor_id!==this.visitorId?(this.api.log.warn("Visitor id has diverged from agent"),this.stop()):this._markEvents([e]))},SessionRecorder.prototype.stop=function(){this._stop&&this._stop(),this.send(),this.sendQueue.stop(),this.recordingId=null,clearInterval(this.interval),this.interval=null,this._stop=null,this.visitorConfig=null,this.visitorId=null,this.accountId=null,this.clearSessionInfo(),this.onRecordingStop()},SessionRecorder.prototype.handleHidden=function(){this.send({hidden:!0})},SessionRecorder.prototype.handleUnload=function(){this.send({unload:!0})},SessionRecorder.prototype.buildRequestUrl=function(e,t){t=this.pendo._.extend({},this.api.agent.getJwtInfoCopy(),t),t=this.pendo._.map(t,function(e,t){return"".concat(t,"=").concat(e)}).join("&");return t.length?"".concat(e,"?").concat(t):e},SessionRecorder.prototype.sendFailure=function(e){this.stop(),this.logStopReason(e)},SessionRecorder.prototype.rateLimitExceeded=function(){this.send(),this.stop(),this.logStopReason("DATA_OVERLOAD")},SessionRecorder.prototype.send=function(e){var e=void 0===e?{}:e,t=e.unload,t=void 0!==t&&t,n=e.keyframe,n=void 0!==n&&n,e=e.hidden,e=void 0!==e&&e;if(this.isRecording()&&this.buffer&&this.recordingId&&!this.buffer.isEmpty())if(this.pendo.isSendingEvents()){var i=this.api.EventTracer.addTracerIds({}),n=this.pendo._.extend({type:"recording",visitorId:this.visitorId,accountId:this.accountId,keyFrame:!!n,lastKeyFrame:this.lastKeyFrameTime,recordingId:this.recordingId,recordingSessionId:this.sessionId(this.recordingId),url:this.pendo.url.get()},i),i=(this.transport.usesSelfHostedWorker&&(n.usesSelfHostedWorker=!0),this.api.Events.eventCaptured.trigger(n),{v:this.pendo.VERSION,recordingId:this.recordingId}),i=(n.keyFrame&&(i.kf=1),this.isNewSession&&(this.isNewSession=!(i.ns=1)),this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),i)),n=this.buffer.pack(n,this.pendo._);if(t||e)try{this.sendQueue.drain([{url:i,payload:n}],t)}catch(r){r.reason&&this.logStopReason(r.reason)}else this.sendQueue.push({url:i,payload:n});this.buffer.isEmpty()||this.send({unload:t})}else this.buffer.clear()},SessionRecorder.prototype.fetchVisitorConfig=function(){var e=this.pendo.compress({url:this.pendo.url.get(),metadata:this.pendo.getSerializedMetadata(),visitorId:this.visitorId,accountId:this.accountId}),e=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/recordingconf/").concat(this.pendo.apiKey),{jzb:e,ct:(new Date).getTime(),v:this.pendo.VERSION});return fetch(e,{method:"GET"}).then(function(e){return e.json()})},SessionRecorder.prototype.logStopReason=function(e,t){var n=this,i=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend({type:"recording",visitorId:this.visitorId||this.pendo.get_visitor_id(),accountId:this.accountId||this.pendo.get_account_id(),browserTime:(new Date).getTime(),keyFrame:!1,lastKeyFrame:0,recordingId:"log",recordingSessionId:"log",url:this.pendo.url.get(),subType:"log",recordingPayload:[],sequence:0,recordingPayloadCount:0,props:__assign({reason:e},t&&{error:t})},i),t=this.pendo.compress(e),i=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),{jzb:t,ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),t=this.pendo.compress(e,"binary");return this.transport.post(i,{body:t,keepalive:!0})["catch"](function(e){n.api.log.critical("Failed to send reason for stopping recording",{error:e})})},SessionRecorder.prototype.sendHostedResources=function(e){var t=this,n=this.api.EventTracer.addTracerIds({}),e=this.pendo._.extend(__assign(__assign({},e),{browserTime:(new Date).getTime()}),n),n=this.buildRequestUrl("".concat(this.pendo.HOST,"/data/rec/").concat(this.pendo.apiKey),{ct:(new Date).getTime(),v:this.pendo.VERSION,recordingId:e.recordingId}),e=this.pendo.compress(e,"binary");return this.transport.post(n,{body:e,keepalive:!0})["catch"](function(e){t.api.log.critical("Failed to send hosted resources for recording event",{error:e})})};var WorkerFactory=createBase64WorkerFactory("Lyogcm9sbHVwLXBsdWdpbi13ZWItd29ya2VyLWxvYWRlciAqLwp2YXIgd29ya2VyX2NvZGUgPSAoZnVuY3Rpb24gKGV4cG9ydHMpIHsKICAgICd1c2Ugc3RyaWN0JzsKCiAgICB2YXIgYjY0ID0gKGZ1bmN0aW9uKCkgewoKICAgICAgICB2YXIgbG9va3VwID0gJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXowMTIzNDU2Nzg5LV8nLnNwbGl0KCcnKTsKCiAgICAgICAgcmV0dXJuIHsKICAgICAgICAgICAgJ3VpbnQ4VG9CYXNlNjQnOiB1aW50OFRvQmFzZTY0CiAgICAgICAgfTsKCiAgICAgICAgZnVuY3Rpb24gdWludDhUb0Jhc2U2NCh1aW50OCkgewogICAgICAgICAgICB2YXIgaSwKICAgICAgICAgICAgICAgIGV4dHJhQnl0ZXMgPSB1aW50OC5sZW5ndGggJSAzLCAvLyBpZiB3ZSBoYXZlIDEgYnl0ZSBsZWZ0LCBwYWQgMiBieXRlcwogICAgICAgICAgICAgICAgb3V0cHV0ID0gJycsCiAgICAgICAgICAgICAgICB0ZW1wLCBsZW5ndGg7CgogICAgICAgICAgICBmdW5jdGlvbiB0cmlwbGV0VG9CYXNlNjQobnVtKSB7CiAgICAgICAgICAgICAgICByZXR1cm4gbG9va3VwW251bSA+PiAxOCAmIDB4M0ZdICsgbG9va3VwW251bSA+PiAxMiAmIDB4M0ZdICsgbG9va3VwW251bSA+PiA2ICYgMHgzRl0gKyBsb29rdXBbbnVtICYgMHgzRl07CiAgICAgICAgICAgIH0KCiAgICAJCS8vIGdvIHRocm91Z2ggdGhlIGFycmF5IGV2ZXJ5IHRocmVlIGJ5dGVzLCB3ZSdsbCBkZWFsIHdpdGggdHJhaWxpbmcgc3R1ZmYgbGF0ZXIKICAgICAgICAgICAgZm9yIChpID0gMCwgbGVuZ3RoID0gdWludDgubGVuZ3RoIC0gZXh0cmFCeXRlczsgaSA8IGxlbmd0aDsgaSArPSAzKSB7CiAgICAgICAgICAgICAgICB0ZW1wID0gKHVpbnQ4W2ldIDw8IDE2KSArICh1aW50OFtpICsgMV0gPDwgOCkgKyAodWludDhbaSArIDJdKTsKICAgICAgICAgICAgICAgIG91dHB1dCArPSB0cmlwbGV0VG9CYXNlNjQodGVtcCk7CiAgICAgICAgICAgIH0KCiAgICAJCS8vIHBhZCB0aGUgZW5kIHdpdGggemVyb3MsIGJ1dCBtYWtlIHN1cmUgdG8gbm90IGZvcmdldCB0aGUgZXh0cmEgYnl0ZXMKICAgICAgICAgICAgLy9lc2xpbnQtZGlzYWJsZS1uZXh0LWxpbmUgZGVmYXVsdC1jYXNlCiAgICAgICAgICAgIHN3aXRjaCAoZXh0cmFCeXRlcykgewogICAgICAgICAgICBjYXNlIDE6CiAgICAgICAgICAgICAgICB0ZW1wID0gdWludDhbdWludDgubGVuZ3RoIC0gMV07CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwW3RlbXAgPj4gMl07CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwWyh0ZW1wIDw8IDQpICYgMHgzRl07CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgY2FzZSAyOgogICAgICAgICAgICAgICAgdGVtcCA9ICh1aW50OFt1aW50OC5sZW5ndGggLSAyXSA8PCA4KSArICh1aW50OFt1aW50OC5sZW5ndGggLSAxXSk7CiAgICAgICAgICAgICAgICBvdXRwdXQgKz0gbG9va3VwW3RlbXAgPj4gMTBdOwogICAgICAgICAgICAgICAgb3V0cHV0ICs9IGxvb2t1cFsodGVtcCA+PiA0KSAmIDB4M0ZdOwogICAgICAgICAgICAgICAgb3V0cHV0ICs9IGxvb2t1cFsodGVtcCA8PCAyKSAmIDB4M0ZdOwogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIH0KCiAgICAgICAgICAgIHJldHVybiBvdXRwdXQ7CiAgICAgICAgfQogICAgfSkoKTsKCiAgICBmdW5jdGlvbiBnZXREZWZhdWx0RXhwb3J0RnJvbUNqcyAoeCkgewogICAgCXJldHVybiB4ICYmIHguX19lc01vZHVsZSAmJiBPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoeCwgJ2RlZmF1bHQnKSA/IHhbJ2RlZmF1bHQnXSA6IHg7CiAgICB9CgogICAgdmFyIGRlZmxhdGVfbWluID0ge2V4cG9ydHM6IHt9fTsKCiAgICAvKgogICAgICogQGxpY2Vuc2UgemxpYi5qcyAyMDEyIC0gaW1heWEgWyBodHRwczovL2dpdGh1Yi5jb20vaW1heWEvemxpYi5qcyBdIFRoZSBNSVQgTGljZW5zZQogICAgICovCgogICAgKGZ1bmN0aW9uIChtb2R1bGUpIHsKICAgIAkoZnVuY3Rpb24oKSB7dmFyIG49dm9pZCAwLHc9ITAsYWE9dGhpcztmdW5jdGlvbiBiYShmLGQpe3ZhciBjPWYuc3BsaXQoIi4iKSxlPWFhOyEoY1swXWluIGUpJiZlLmV4ZWNTY3JpcHQmJmUuZXhlY1NjcmlwdCgidmFyICIrY1swXSk7Zm9yKHZhciBiO2MubGVuZ3RoJiYoYj1jLnNoaWZ0KCkpOykhYy5sZW5ndGgmJmQhPT1uP2VbYl09ZDplPWVbYl0/ZVtiXTplW2JdPXt9O312YXIgQz0idW5kZWZpbmVkIiE9PXR5cGVvZiBVaW50OEFycmF5JiYidW5kZWZpbmVkIiE9PXR5cGVvZiBVaW50MTZBcnJheSYmInVuZGVmaW5lZCIhPT10eXBlb2YgVWludDMyQXJyYXk7ZnVuY3Rpb24gSyhmLGQpe3RoaXMuaW5kZXg9Im51bWJlciI9PT10eXBlb2YgZD9kOjA7dGhpcy5lPTA7dGhpcy5idWZmZXI9ZiBpbnN0YW5jZW9mKEM/VWludDhBcnJheTpBcnJheSk/ZjpuZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpO2lmKDIqdGhpcy5idWZmZXIubGVuZ3RoPD10aGlzLmluZGV4KXRocm93IEVycm9yKCJpbnZhbGlkIGluZGV4Iik7dGhpcy5idWZmZXIubGVuZ3RoPD10aGlzLmluZGV4JiZjYSh0aGlzKTt9ZnVuY3Rpb24gY2EoZil7dmFyIGQ9Zi5idWZmZXIsYyxlPWQubGVuZ3RoLGI9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGU8PDEpO2lmKEMpYi5zZXQoZCk7ZWxzZSBmb3IoYz0wO2M8ZTsrK2MpYltjXT1kW2NdO3JldHVybiBmLmJ1ZmZlcj1ifQogICAgCUsucHJvdG90eXBlLmI9ZnVuY3Rpb24oZixkLGMpe3ZhciBlPXRoaXMuYnVmZmVyLGI9dGhpcy5pbmRleCxhPXRoaXMuZSxnPWVbYl0sbTtjJiYxPGQmJihmPTg8ZD8oTFtmJjI1NV08PDI0fExbZj4+PjgmMjU1XTw8MTZ8TFtmPj4+MTYmMjU1XTw8OHxMW2Y+Pj4yNCYyNTVdKT4+MzItZDpMW2ZdPj44LWQpO2lmKDg+ZCthKWc9Zzw8ZHxmLGErPWQ7ZWxzZSBmb3IobT0wO208ZDsrK20pZz1nPDwxfGY+PmQtbS0xJjEsOD09PSsrYSYmKGE9MCxlW2IrK109TFtnXSxnPTAsYj09PWUubGVuZ3RoJiYoZT1jYSh0aGlzKSkpO2VbYl09Zzt0aGlzLmJ1ZmZlcj1lO3RoaXMuZT1hO3RoaXMuaW5kZXg9Yjt9O0sucHJvdG90eXBlLmZpbmlzaD1mdW5jdGlvbigpe3ZhciBmPXRoaXMuYnVmZmVyLGQ9dGhpcy5pbmRleCxjOzA8dGhpcy5lJiYoZltkXTw8PTgtdGhpcy5lLGZbZF09TFtmW2RdXSxkKyspO0M/Yz1mLnN1YmFycmF5KDAsZCk6KGYubGVuZ3RoPWQsYz1mKTtyZXR1cm4gY307CiAgICAJdmFyIGRhPW5ldyAoQz9VaW50OEFycmF5OkFycmF5KSgyNTYpLE07Zm9yKE09MDsyNTY+TTsrK00pe2Zvcih2YXIgTj1NLFM9TixlYT03LE49Tj4+PjE7TjtOPj4+PTEpUzw8PTEsU3w9TiYxLC0tZWE7ZGFbTV09KFM8PGVhJjI1NSk+Pj4wO312YXIgTD1kYTtmdW5jdGlvbiBpYShmKXt0aGlzLmJ1ZmZlcj1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKDIqZik7dGhpcy5sZW5ndGg9MDt9aWEucHJvdG90eXBlLmdldFBhcmVudD1mdW5jdGlvbihmKXtyZXR1cm4gMiooKGYtMikvNHwwKX07aWEucHJvdG90eXBlLnB1c2g9ZnVuY3Rpb24oZixkKXt2YXIgYyxlLGI9dGhpcy5idWZmZXIsYTtjPXRoaXMubGVuZ3RoO2JbdGhpcy5sZW5ndGgrK109ZDtmb3IoYlt0aGlzLmxlbmd0aCsrXT1mOzA8YzspaWYoZT10aGlzLmdldFBhcmVudChjKSxiW2NdPmJbZV0pYT1iW2NdLGJbY109YltlXSxiW2VdPWEsYT1iW2MrMV0sYltjKzFdPWJbZSsxXSxiW2UrMV09YSxjPWU7ZWxzZSBicmVhaztyZXR1cm4gdGhpcy5sZW5ndGh9OwogICAgCWlhLnByb3RvdHlwZS5wb3A9ZnVuY3Rpb24oKXt2YXIgZixkLGM9dGhpcy5idWZmZXIsZSxiLGE7ZD1jWzBdO2Y9Y1sxXTt0aGlzLmxlbmd0aC09MjtjWzBdPWNbdGhpcy5sZW5ndGhdO2NbMV09Y1t0aGlzLmxlbmd0aCsxXTtmb3IoYT0wOzspe2I9MiphKzI7aWYoYj49dGhpcy5sZW5ndGgpYnJlYWs7YisyPHRoaXMubGVuZ3RoJiZjW2IrMl0+Y1tiXSYmKGIrPTIpO2lmKGNbYl0+Y1thXSllPWNbYV0sY1thXT1jW2JdLGNbYl09ZSxlPWNbYSsxXSxjW2ErMV09Y1tiKzFdLGNbYisxXT1lO2Vsc2UgYnJlYWs7YT1iO31yZXR1cm4ge2luZGV4OmYsdmFsdWU6ZCxsZW5ndGg6dGhpcy5sZW5ndGh9fTtmdW5jdGlvbiBrYShmLGQpe3RoaXMuZD1sYTt0aGlzLmk9MDt0aGlzLmlucHV0PUMmJmYgaW5zdGFuY2VvZiBBcnJheT9uZXcgVWludDhBcnJheShmKTpmO3RoaXMuYz0wO2QmJihkLmxhenkmJih0aGlzLmk9ZC5sYXp5KSwibnVtYmVyIj09PXR5cGVvZiBkLmNvbXByZXNzaW9uVHlwZSYmKHRoaXMuZD1kLmNvbXByZXNzaW9uVHlwZSksZC5vdXRwdXRCdWZmZXImJih0aGlzLmE9QyYmZC5vdXRwdXRCdWZmZXIgaW5zdGFuY2VvZiBBcnJheT9uZXcgVWludDhBcnJheShkLm91dHB1dEJ1ZmZlcik6ZC5vdXRwdXRCdWZmZXIpLCJudW1iZXIiPT09dHlwZW9mIGQub3V0cHV0SW5kZXgmJih0aGlzLmM9ZC5vdXRwdXRJbmRleCkpO3RoaXMuYXx8KHRoaXMuYT1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpKTt9dmFyIGxhPTIsbmE9e05PTkU6MCxoOjEsZzpsYSxuOjN9LFQ9W10sVTsKICAgIAlmb3IoVT0wOzI4OD5VO1UrKylzd2l0Y2godyl7Y2FzZSAxNDM+PVU6VC5wdXNoKFtVKzQ4LDhdKTticmVhaztjYXNlIDI1NT49VTpULnB1c2goW1UtMTQ0KzQwMCw5XSk7YnJlYWs7Y2FzZSAyNzk+PVU6VC5wdXNoKFtVLTI1NiswLDddKTticmVhaztjYXNlIDI4Nz49VTpULnB1c2goW1UtMjgwKzE5Miw4XSk7YnJlYWs7ZGVmYXVsdDp0aHJvdyAiaW52YWxpZCBsaXRlcmFsOiAiK1U7fQogICAgCWthLnByb3RvdHlwZS5mPWZ1bmN0aW9uKCl7dmFyIGYsZCxjLGUsYj10aGlzLmlucHV0O3N3aXRjaCh0aGlzLmQpe2Nhc2UgMDpjPTA7Zm9yKGU9Yi5sZW5ndGg7YzxlOyl7ZD1DP2Iuc3ViYXJyYXkoYyxjKzY1NTM1KTpiLnNsaWNlKGMsYys2NTUzNSk7Yys9ZC5sZW5ndGg7dmFyIGE9ZCxnPWM9PT1lLG09bixrPW4scD1uLHQ9bix1PW4sbD10aGlzLmEsaD10aGlzLmM7aWYoQyl7Zm9yKGw9bmV3IFVpbnQ4QXJyYXkodGhpcy5hLmJ1ZmZlcik7bC5sZW5ndGg8PWgrYS5sZW5ndGgrNTspbD1uZXcgVWludDhBcnJheShsLmxlbmd0aDw8MSk7bC5zZXQodGhpcy5hKTt9bT1nPzE6MDtsW2grK109bXwwO2s9YS5sZW5ndGg7cD1+ays2NTUzNiY2NTUzNTtsW2grK109ayYyNTU7bFtoKytdPWs+Pj44JjI1NTtsW2grK109cCYyNTU7bFtoKytdPXA+Pj44JjI1NTtpZihDKWwuc2V0KGEsaCksaCs9YS5sZW5ndGgsbD1sLnN1YmFycmF5KDAsaCk7ZWxzZSB7dD0wO2Zvcih1PWEubGVuZ3RoO3Q8dTsrK3QpbFtoKytdPQogICAgCWFbdF07bC5sZW5ndGg9aDt9dGhpcy5jPWg7dGhpcy5hPWw7fWJyZWFrO2Nhc2UgMTp2YXIgcT1uZXcgSyhDP25ldyBVaW50OEFycmF5KHRoaXMuYS5idWZmZXIpOnRoaXMuYSx0aGlzLmMpO3EuYigxLDEsdyk7cS5iKDEsMix3KTt2YXIgcz1vYSh0aGlzLGIpLHgsZmEsejt4PTA7Zm9yKGZhPXMubGVuZ3RoO3g8ZmE7eCsrKWlmKHo9c1t4XSxLLnByb3RvdHlwZS5iLmFwcGx5KHEsVFt6XSksMjU2PHopcS5iKHNbKyt4XSxzWysreF0sdykscS5iKHNbKyt4XSw1KSxxLmIoc1srK3hdLHNbKyt4XSx3KTtlbHNlIGlmKDI1Nj09PXopYnJlYWs7dGhpcy5hPXEuZmluaXNoKCk7dGhpcy5jPXRoaXMuYS5sZW5ndGg7YnJlYWs7Y2FzZSBsYTp2YXIgQj1uZXcgSyhDP25ldyBVaW50OEFycmF5KHRoaXMuYS5idWZmZXIpOnRoaXMuYSx0aGlzLmMpLHRhLEosTyxQLFEsTGE9WzE2LDE3LDE4LDAsOCw3LDksNiwxMCw1LDExLDQsMTIsMywxMywyLDE0LDEsMTVdLFgsdWEsWSx2YSxnYSxqYT1BcnJheSgxOSksCiAgICAJd2EsUixoYSx5LHhhO3RhPWxhO0IuYigxLDEsdyk7Qi5iKHRhLDIsdyk7Sj1vYSh0aGlzLGIpO1g9cGEodGhpcy5tLDE1KTt1YT1xYShYKTtZPXBhKHRoaXMubCw3KTt2YT1xYShZKTtmb3IoTz0yODY7MjU3PE8mJjA9PT1YW08tMV07Ty0tKTtmb3IoUD0zMDsxPFAmJjA9PT1ZW1AtMV07UC0tKTt2YXIgeWE9Tyx6YT1QLEY9bmV3IChDP1VpbnQzMkFycmF5OkFycmF5KSh5YSt6YSkscixHLHYsWixFPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMzE2KSxELEEsSD1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMTkpO2ZvcihyPUc9MDtyPHlhO3IrKylGW0crK109WFtyXTtmb3Iocj0wO3I8emE7cisrKUZbRysrXT1ZW3JdO2lmKCFDKXtyPTA7Zm9yKFo9SC5sZW5ndGg7cjxaOysrcilIW3JdPTA7fXI9RD0wO2ZvcihaPUYubGVuZ3RoO3I8WjtyKz1HKXtmb3IoRz0xO3IrRzxaJiZGW3IrR109PT1GW3JdOysrRyk7dj1HO2lmKDA9PT1GW3JdKWlmKDM+dilmb3IoOzA8di0tOylFW0QrK109MCwKICAgIAlIWzBdKys7ZWxzZSBmb3IoOzA8djspQT0xMzg+dj92OjEzOCxBPnYtMyYmQTx2JiYoQT12LTMpLDEwPj1BPyhFW0QrK109MTcsRVtEKytdPUEtMyxIWzE3XSsrKTooRVtEKytdPTE4LEVbRCsrXT1BLTExLEhbMThdKyspLHYtPUE7ZWxzZSBpZihFW0QrK109RltyXSxIW0Zbcl1dKyssdi0tLDM+dilmb3IoOzA8di0tOylFW0QrK109RltyXSxIW0Zbcl1dKys7ZWxzZSBmb3IoOzA8djspQT02PnY/djo2LEE+di0zJiZBPHYmJihBPXYtMyksRVtEKytdPTE2LEVbRCsrXT1BLTMsSFsxNl0rKyx2LT1BO31mPUM/RS5zdWJhcnJheSgwLEQpOkUuc2xpY2UoMCxEKTtnYT1wYShILDcpO2Zvcih5PTA7MTk+eTt5KyspamFbeV09Z2FbTGFbeV1dO2ZvcihRPTE5OzQ8USYmMD09PWphW1EtMV07US0tKTt3YT1xYShnYSk7Qi5iKE8tMjU3LDUsdyk7Qi5iKFAtMSw1LHcpO0IuYihRLTQsNCx3KTtmb3IoeT0wO3k8UTt5KyspQi5iKGphW3ldLDMsdyk7eT0wO2Zvcih4YT1mLmxlbmd0aDt5PHhhO3krKylpZihSPQogICAgCWZbeV0sQi5iKHdhW1JdLGdhW1JdLHcpLDE2PD1SKXt5Kys7c3dpdGNoKFIpe2Nhc2UgMTY6aGE9MjticmVhaztjYXNlIDE3OmhhPTM7YnJlYWs7Y2FzZSAxODpoYT03O2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgY29kZTogIitSO31CLmIoZlt5XSxoYSx3KTt9dmFyIEFhPVt1YSxYXSxCYT1bdmEsWV0sSSxDYSwkLG1hLERhLEVhLEZhLEdhO0RhPUFhWzBdO0VhPUFhWzFdO0ZhPUJhWzBdO0dhPUJhWzFdO0k9MDtmb3IoQ2E9Si5sZW5ndGg7STxDYTsrK0kpaWYoJD1KW0ldLEIuYihEYVskXSxFYVskXSx3KSwyNTY8JClCLmIoSlsrK0ldLEpbKytJXSx3KSxtYT1KWysrSV0sQi5iKEZhW21hXSxHYVttYV0sdyksQi5iKEpbKytJXSxKWysrSV0sdyk7ZWxzZSBpZigyNTY9PT0kKWJyZWFrO3RoaXMuYT1CLmZpbmlzaCgpO3RoaXMuYz10aGlzLmEubGVuZ3RoO2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgY29tcHJlc3Npb24gdHlwZSI7fXJldHVybiB0aGlzLmF9OwogICAgCWZ1bmN0aW9uIHJhKGYsZCl7dGhpcy5sZW5ndGg9Zjt0aGlzLms9ZDt9CiAgICAJdmFyIHNhPWZ1bmN0aW9uKCl7ZnVuY3Rpb24gZihiKXtzd2l0Y2godyl7Y2FzZSAzPT09YjpyZXR1cm4gWzI1NyxiLTMsMF07Y2FzZSA0PT09YjpyZXR1cm4gWzI1OCxiLTQsMF07Y2FzZSA1PT09YjpyZXR1cm4gWzI1OSxiLTUsMF07Y2FzZSA2PT09YjpyZXR1cm4gWzI2MCxiLTYsMF07Y2FzZSA3PT09YjpyZXR1cm4gWzI2MSxiLTcsMF07Y2FzZSA4PT09YjpyZXR1cm4gWzI2MixiLTgsMF07Y2FzZSA5PT09YjpyZXR1cm4gWzI2MyxiLTksMF07Y2FzZSAxMD09PWI6cmV0dXJuIFsyNjQsYi0xMCwwXTtjYXNlIDEyPj1iOnJldHVybiBbMjY1LGItMTEsMV07Y2FzZSAxND49YjpyZXR1cm4gWzI2NixiLTEzLDFdO2Nhc2UgMTY+PWI6cmV0dXJuIFsyNjcsYi0xNSwxXTtjYXNlIDE4Pj1iOnJldHVybiBbMjY4LGItMTcsMV07Y2FzZSAyMj49YjpyZXR1cm4gWzI2OSxiLTE5LDJdO2Nhc2UgMjY+PWI6cmV0dXJuIFsyNzAsYi0yMywyXTtjYXNlIDMwPj1iOnJldHVybiBbMjcxLGItMjcsMl07Y2FzZSAzND49YjpyZXR1cm4gWzI3MiwKICAgIAliLTMxLDJdO2Nhc2UgNDI+PWI6cmV0dXJuIFsyNzMsYi0zNSwzXTtjYXNlIDUwPj1iOnJldHVybiBbMjc0LGItNDMsM107Y2FzZSA1OD49YjpyZXR1cm4gWzI3NSxiLTUxLDNdO2Nhc2UgNjY+PWI6cmV0dXJuIFsyNzYsYi01OSwzXTtjYXNlIDgyPj1iOnJldHVybiBbMjc3LGItNjcsNF07Y2FzZSA5OD49YjpyZXR1cm4gWzI3OCxiLTgzLDRdO2Nhc2UgMTE0Pj1iOnJldHVybiBbMjc5LGItOTksNF07Y2FzZSAxMzA+PWI6cmV0dXJuIFsyODAsYi0xMTUsNF07Y2FzZSAxNjI+PWI6cmV0dXJuIFsyODEsYi0xMzEsNV07Y2FzZSAxOTQ+PWI6cmV0dXJuIFsyODIsYi0xNjMsNV07Y2FzZSAyMjY+PWI6cmV0dXJuIFsyODMsYi0xOTUsNV07Y2FzZSAyNTc+PWI6cmV0dXJuIFsyODQsYi0yMjcsNV07Y2FzZSAyNTg9PT1iOnJldHVybiBbMjg1LGItMjU4LDBdO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgbGVuZ3RoOiAiK2I7fX12YXIgZD1bXSxjLGU7Zm9yKGM9MzsyNTg+PWM7YysrKWU9ZihjKSxkW2NdPWVbMl08PDI0fAogICAgCWVbMV08PDE2fGVbMF07cmV0dXJuIGR9KCksSGE9Qz9uZXcgVWludDMyQXJyYXkoc2EpOnNhOwogICAgCWZ1bmN0aW9uIG9hKGYsZCl7ZnVuY3Rpb24gYyhiLGMpe3ZhciBhPWIuayxkPVtdLGU9MCxmO2Y9SGFbYi5sZW5ndGhdO2RbZSsrXT1mJjY1NTM1O2RbZSsrXT1mPj4xNiYyNTU7ZFtlKytdPWY+PjI0O3ZhciBnO3N3aXRjaCh3KXtjYXNlIDE9PT1hOmc9WzAsYS0xLDBdO2JyZWFrO2Nhc2UgMj09PWE6Zz1bMSxhLTIsMF07YnJlYWs7Y2FzZSAzPT09YTpnPVsyLGEtMywwXTticmVhaztjYXNlIDQ9PT1hOmc9WzMsYS00LDBdO2JyZWFrO2Nhc2UgNj49YTpnPVs0LGEtNSwxXTticmVhaztjYXNlIDg+PWE6Zz1bNSxhLTcsMV07YnJlYWs7Y2FzZSAxMj49YTpnPVs2LGEtOSwyXTticmVhaztjYXNlIDE2Pj1hOmc9WzcsYS0xMywyXTticmVhaztjYXNlIDI0Pj1hOmc9WzgsYS0xNywzXTticmVhaztjYXNlIDMyPj1hOmc9WzksYS0yNSwzXTticmVhaztjYXNlIDQ4Pj1hOmc9WzEwLGEtMzMsNF07YnJlYWs7Y2FzZSA2ND49YTpnPVsxMSxhLTQ5LDRdO2JyZWFrO2Nhc2UgOTY+PWE6Zz1bMTIsYS0KICAgIAk2NSw1XTticmVhaztjYXNlIDEyOD49YTpnPVsxMyxhLTk3LDVdO2JyZWFrO2Nhc2UgMTkyPj1hOmc9WzE0LGEtMTI5LDZdO2JyZWFrO2Nhc2UgMjU2Pj1hOmc9WzE1LGEtMTkzLDZdO2JyZWFrO2Nhc2UgMzg0Pj1hOmc9WzE2LGEtMjU3LDddO2JyZWFrO2Nhc2UgNTEyPj1hOmc9WzE3LGEtMzg1LDddO2JyZWFrO2Nhc2UgNzY4Pj1hOmc9WzE4LGEtNTEzLDhdO2JyZWFrO2Nhc2UgMTAyND49YTpnPVsxOSxhLTc2OSw4XTticmVhaztjYXNlIDE1MzY+PWE6Zz1bMjAsYS0xMDI1LDldO2JyZWFrO2Nhc2UgMjA0OD49YTpnPVsyMSxhLTE1MzcsOV07YnJlYWs7Y2FzZSAzMDcyPj1hOmc9WzIyLGEtMjA0OSwxMF07YnJlYWs7Y2FzZSA0MDk2Pj1hOmc9WzIzLGEtMzA3MywxMF07YnJlYWs7Y2FzZSA2MTQ0Pj1hOmc9WzI0LGEtNDA5NywxMV07YnJlYWs7Y2FzZSA4MTkyPj1hOmc9WzI1LGEtNjE0NSwxMV07YnJlYWs7Y2FzZSAxMjI4OD49YTpnPVsyNixhLTgxOTMsMTJdO2JyZWFrO2Nhc2UgMTYzODQ+PQogICAgCWE6Zz1bMjcsYS0xMjI4OSwxMl07YnJlYWs7Y2FzZSAyNDU3Nj49YTpnPVsyOCxhLTE2Mzg1LDEzXTticmVhaztjYXNlIDMyNzY4Pj1hOmc9WzI5LGEtMjQ1NzcsMTNdO2JyZWFrO2RlZmF1bHQ6dGhyb3cgImludmFsaWQgZGlzdGFuY2UiO31mPWc7ZFtlKytdPWZbMF07ZFtlKytdPWZbMV07ZFtlKytdPWZbMl07dmFyIGssbTtrPTA7Zm9yKG09ZC5sZW5ndGg7azxtOysraylsW2grK109ZFtrXTtzW2RbMF1dKys7eFtkWzNdXSsrO3E9Yi5sZW5ndGgrYy0xO3U9bnVsbDt9dmFyIGUsYixhLGcsbSxrPXt9LHAsdCx1LGw9Qz9uZXcgVWludDE2QXJyYXkoMipkLmxlbmd0aCk6W10saD0wLHE9MCxzPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMjg2KSx4PW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoMzApLGZhPWYuaSx6O2lmKCFDKXtmb3IoYT0wOzI4NT49YTspc1thKytdPTA7Zm9yKGE9MDsyOT49YTspeFthKytdPTA7fXNbMjU2XT0xO2U9MDtmb3IoYj1kLmxlbmd0aDtlPGI7KytlKXthPQogICAgCW09MDtmb3IoZz0zO2E8ZyYmZSthIT09YjsrK2EpbT1tPDw4fGRbZSthXTtrW21dPT09biYmKGtbbV09W10pO3A9a1ttXTtpZighKDA8cS0tKSl7Zm9yKDswPHAubGVuZ3RoJiYzMjc2ODxlLXBbMF07KXAuc2hpZnQoKTtpZihlKzM+PWIpe3UmJmModSwtMSk7YT0wO2ZvcihnPWItZTthPGc7KythKXo9ZFtlK2FdLGxbaCsrXT16LCsrc1t6XTticmVha30wPHAubGVuZ3RoPyh0PUlhKGQsZSxwKSx1P3UubGVuZ3RoPHQubGVuZ3RoPyh6PWRbZS0xXSxsW2grK109eiwrK3Nbel0sYyh0LDApKTpjKHUsLTEpOnQubGVuZ3RoPGZhP3U9dDpjKHQsMCkpOnU/Yyh1LC0xKTooej1kW2VdLGxbaCsrXT16LCsrc1t6XSk7fXAucHVzaChlKTt9bFtoKytdPTI1NjtzWzI1Nl0rKztmLm09cztmLmw9eDtyZXR1cm4gQz9sLnN1YmFycmF5KDAsaCk6bH0KICAgIAlmdW5jdGlvbiBJYShmLGQsYyl7dmFyIGUsYixhPTAsZyxtLGsscCx0PWYubGVuZ3RoO209MDtwPWMubGVuZ3RoO2E6Zm9yKDttPHA7bSsrKXtlPWNbcC1tLTFdO2c9MztpZigzPGEpe2ZvcihrPWE7MzxrO2stLSlpZihmW2Uray0xXSE9PWZbZCtrLTFdKWNvbnRpbnVlIGE7Zz1hO31mb3IoOzI1OD5nJiZkK2c8dCYmZltlK2ddPT09ZltkK2ddOykrK2c7Zz5hJiYoYj1lLGE9Zyk7aWYoMjU4PT09ZylicmVha31yZXR1cm4gbmV3IHJhKGEsZC1iKX0KICAgIAlmdW5jdGlvbiBwYShmLGQpe3ZhciBjPWYubGVuZ3RoLGU9bmV3IGlhKDU3MiksYj1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoYyksYSxnLG0sayxwO2lmKCFDKWZvcihrPTA7azxjO2srKyliW2tdPTA7Zm9yKGs9MDtrPGM7KytrKTA8ZltrXSYmZS5wdXNoKGssZltrXSk7YT1BcnJheShlLmxlbmd0aC8yKTtnPW5ldyAoQz9VaW50MzJBcnJheTpBcnJheSkoZS5sZW5ndGgvMik7aWYoMT09PWEubGVuZ3RoKXJldHVybiBiW2UucG9wKCkuaW5kZXhdPTEsYjtrPTA7Zm9yKHA9ZS5sZW5ndGgvMjtrPHA7KytrKWFba109ZS5wb3AoKSxnW2tdPWFba10udmFsdWU7bT1KYShnLGcubGVuZ3RoLGQpO2s9MDtmb3IocD1hLmxlbmd0aDtrPHA7KytrKWJbYVtrXS5pbmRleF09bVtrXTtyZXR1cm4gYn0KICAgIAlmdW5jdGlvbiBKYShmLGQsYyl7ZnVuY3Rpb24gZShhKXt2YXIgYj1rW2FdW3BbYV1dO2I9PT1kPyhlKGErMSksZShhKzEpKTotLWdbYl07KytwW2FdO312YXIgYj1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKGMpLGE9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGMpLGc9bmV3IChDP1VpbnQ4QXJyYXk6QXJyYXkpKGQpLG09QXJyYXkoYyksaz1BcnJheShjKSxwPUFycmF5KGMpLHQ9KDE8PGMpLWQsdT0xPDxjLTEsbCxoLHEscyx4O2JbYy0xXT1kO2ZvcihoPTA7aDxjOysraCl0PHU/YVtoXT0wOihhW2hdPTEsdC09dSksdDw8PTEsYltjLTItaF09KGJbYy0xLWhdLzJ8MCkrZDtiWzBdPWFbMF07bVswXT1BcnJheShiWzBdKTtrWzBdPUFycmF5KGJbMF0pO2ZvcihoPTE7aDxjOysraCliW2hdPjIqYltoLTFdK2FbaF0mJihiW2hdPTIqYltoLTFdK2FbaF0pLG1baF09QXJyYXkoYltoXSksa1toXT1BcnJheShiW2hdKTtmb3IobD0wO2w8ZDsrK2wpZ1tsXT1jO2ZvcihxPTA7cTxiW2MtMV07KytxKW1bYy0KICAgIAkxXVtxXT1mW3FdLGtbYy0xXVtxXT1xO2ZvcihsPTA7bDxjOysrbClwW2xdPTA7MT09PWFbYy0xXSYmKC0tZ1swXSwrK3BbYy0xXSk7Zm9yKGg9Yy0yOzA8PWg7LS1oKXtzPWw9MDt4PXBbaCsxXTtmb3IocT0wO3E8YltoXTtxKyspcz1tW2grMV1beF0rbVtoKzFdW3grMV0scz5mW2xdPyhtW2hdW3FdPXMsa1toXVtxXT1kLHgrPTIpOihtW2hdW3FdPWZbbF0sa1toXVtxXT1sLCsrbCk7cFtoXT0wOzE9PT1hW2hdJiZlKGgpO31yZXR1cm4gZ30KICAgIAlmdW5jdGlvbiBxYShmKXt2YXIgZD1uZXcgKEM/VWludDE2QXJyYXk6QXJyYXkpKGYubGVuZ3RoKSxjPVtdLGU9W10sYj0wLGEsZyxtLGs7YT0wO2ZvcihnPWYubGVuZ3RoO2E8ZzthKyspY1tmW2FdXT0oY1tmW2FdXXwwKSsxO2E9MTtmb3IoZz0xNjthPD1nO2ErKyllW2FdPWIsYis9Y1thXXwwLGI8PD0xO2E9MDtmb3IoZz1mLmxlbmd0aDthPGc7YSsrKXtiPWVbZlthXV07ZVtmW2FdXSs9MTttPWRbYV09MDtmb3Ioaz1mW2FdO208azttKyspZFthXT1kW2FdPDwxfGImMSxiPj4+PTE7fXJldHVybiBkfWZ1bmN0aW9uIEthKGYsZCl7dGhpcy5pbnB1dD1mO3RoaXMuYT1uZXcgKEM/VWludDhBcnJheTpBcnJheSkoMzI3NjgpO3RoaXMuZD1WLmc7dmFyIGM9e30sZTtpZigoZHx8IShkPXt9KSkmJiJudW1iZXIiPT09dHlwZW9mIGQuY29tcHJlc3Npb25UeXBlKXRoaXMuZD1kLmNvbXByZXNzaW9uVHlwZTtmb3IoZSBpbiBkKWNbZV09ZFtlXTtjLm91dHB1dEJ1ZmZlcj10aGlzLmE7dGhpcy5qPW5ldyBrYSh0aGlzLmlucHV0LGMpO312YXIgVj1uYTsKICAgIAlLYS5wcm90b3R5cGUuZj1mdW5jdGlvbigpe3ZhciBmLGQsYyxlLGIsYSxnPTA7YT10aGlzLmE7c3dpdGNoKDgpe2Nhc2UgODpmPU1hdGguTE9HMkUqTWF0aC5sb2coMzI3NjgpLTg7YnJlYWs7ZGVmYXVsdDp0aHJvdyBFcnJvcigiaW52YWxpZCBjb21wcmVzc2lvbiBtZXRob2QiKTt9ZD1mPDw0fDg7YVtnKytdPWQ7c3dpdGNoKDgpe2Nhc2UgODpzd2l0Y2godGhpcy5kKXtjYXNlIFYuTk9ORTplPTA7YnJlYWs7Y2FzZSBWLmg6ZT0xO2JyZWFrO2Nhc2UgVi5nOmU9MjticmVhaztkZWZhdWx0OnRocm93IEVycm9yKCJ1bnN1cHBvcnRlZCBjb21wcmVzc2lvbiB0eXBlIik7fWJyZWFrO2RlZmF1bHQ6dGhyb3cgRXJyb3IoImludmFsaWQgY29tcHJlc3Npb24gbWV0aG9kIik7fWM9ZTw8NnwwO2FbZysrXT1jfDMxLSgyNTYqZCtjKSUzMTt2YXIgbT10aGlzLmlucHV0O2lmKCJzdHJpbmciPT09dHlwZW9mIG0pe3ZhciBrPW0uc3BsaXQoIiIpLHAsdDtwPTA7Zm9yKHQ9ay5sZW5ndGg7cDx0O3ArKylrW3BdPQogICAgCShrW3BdLmNoYXJDb2RlQXQoMCkmMjU1KT4+PjA7bT1rO31mb3IodmFyIHU9MSxsPTAsaD1tLmxlbmd0aCxxLHM9MDswPGg7KXtxPTEwMjQ8aD8xMDI0Omg7aC09cTtkbyB1Kz1tW3MrK10sbCs9dTt3aGlsZSgtLXEpO3UlPTY1NTIxO2wlPTY1NTIxO31iPShsPDwxNnx1KT4+PjA7dGhpcy5qLmM9ZzthPXRoaXMuai5mKCk7Zz1hLmxlbmd0aDtDJiYoYT1uZXcgVWludDhBcnJheShhLmJ1ZmZlciksYS5sZW5ndGg8PWcrNCYmKHRoaXMuYT1uZXcgVWludDhBcnJheShhLmxlbmd0aCs0KSx0aGlzLmEuc2V0KGEpLGE9dGhpcy5hKSxhPWEuc3ViYXJyYXkoMCxnKzQpKTthW2crK109Yj4+MjQmMjU1O2FbZysrXT1iPj4xNiYyNTU7YVtnKytdPWI+PjgmMjU1O2FbZysrXT1iJjI1NTtyZXR1cm4gYX07YmEoIlpsaWIuRGVmbGF0ZSIsS2EpO2JhKCJabGliLkRlZmxhdGUuY29tcHJlc3MiLGZ1bmN0aW9uKGYsZCl7cmV0dXJuIChuZXcgS2EoZixkKSkuZigpfSk7YmEoIlpsaWIuRGVmbGF0ZS5wcm90b3R5cGUuY29tcHJlc3MiLEthLnByb3RvdHlwZS5mKTt2YXIgTWE9e05PTkU6Vi5OT05FLEZJWEVEOlYuaCxEWU5BTUlDOlYuZ30sTmEsT2EsVyxQYTtpZihPYmplY3Qua2V5cylOYT1PYmplY3Qua2V5cyhNYSk7ZWxzZSBmb3IoT2EgaW4gTmE9W10sVz0wLE1hKU5hW1crK109T2E7Vz0wO2ZvcihQYT1OYS5sZW5ndGg7VzxQYTsrK1cpT2E9TmFbV10sYmEoIlpsaWIuRGVmbGF0ZS5Db21wcmVzc2lvblR5cGUuIitPYSxNYVtPYV0pO30pLmNhbGwobW9kdWxlLmV4cG9ydHMpOyAKICAgIH0gKGRlZmxhdGVfbWluKSk7CgogICAgdmFyIGRlZmxhdGVfbWluRXhwb3J0cyA9IGRlZmxhdGVfbWluLmV4cG9ydHM7CiAgICB2YXIgWkxpYkRlZmxhdGUgPSAvKkBfX1BVUkVfXyovZ2V0RGVmYXVsdEV4cG9ydEZyb21DanMoZGVmbGF0ZV9taW5FeHBvcnRzKTsKCiAgICBmdW5jdGlvbiB0b1VURjhBcnJheShzdHIpIHsKICAgICAgICB2YXIgdXRmOCA9IFtdOwogICAgICAgIGZvciAodmFyIGkgPSAwOyBpIDwgc3RyLmxlbmd0aDsgaSsrKSB7CiAgICAgICAgICAgIHZhciBjaGFyY29kZSA9IHN0ci5jaGFyQ29kZUF0KGkpOwogICAgICAgICAgICBpZiAoY2hhcmNvZGUgPCAweDgwKQogICAgICAgICAgICAgICAgdXRmOC5wdXNoKGNoYXJjb2RlKTsKICAgICAgICAgICAgZWxzZSBpZiAoY2hhcmNvZGUgPCAweDgwMCkgewogICAgICAgICAgICAgICAgdXRmOC5wdXNoKDB4YzAgfCAoY2hhcmNvZGUgPj4gNiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSBpZiAoY2hhcmNvZGUgPCAweGQ4MDAgfHwgY2hhcmNvZGUgPj0gMHhlMDAwKSB7CiAgICAgICAgICAgICAgICB1dGY4LnB1c2goMHhlMCB8IChjaGFyY29kZSA+PiAxMiksIDB4ODAgfCAoKGNoYXJjb2RlID4+IDYpICYgMHgzZiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWxzZSB7CiAgICAgICAgICAgICAgICAvLyBzdXJyb2dhdGUgcGFpcgogICAgICAgICAgICAgICAgaSsrOwogICAgICAgICAgICAgICAgLy8gVVRGLTE2IGVuY29kZXMgMHgxMDAwMC0weDEwRkZGRiBieQogICAgICAgICAgICAgICAgLy8gc3VidHJhY3RpbmcgMHgxMDAwMCBhbmQgc3BsaXR0aW5nIHRoZQogICAgICAgICAgICAgICAgLy8gMjAgYml0cyBvZiAweDAtMHhGRkZGRiBpbnRvIHR3byBoYWx2ZXMKICAgICAgICAgICAgICAgIGNoYXJjb2RlID0gMHgxMDAwMCArICgoKGNoYXJjb2RlICYgMHgzZmYpIDw8IDEwKSB8CiAgICAgICAgICAgICAgICAgICAgKHN0ci5jaGFyQ29kZUF0KGkpICYgMHgzZmYpKTsKICAgICAgICAgICAgICAgIHV0ZjgucHVzaCgweGYwIHwgKGNoYXJjb2RlID4+IDE4KSwgMHg4MCB8ICgoY2hhcmNvZGUgPj4gMTIpICYgMHgzZiksIDB4ODAgfCAoKGNoYXJjb2RlID4+IDYpICYgMHgzZiksIDB4ODAgfCAoY2hhcmNvZGUgJiAweDNmKSk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgcmV0dXJuIHV0Zjg7CiAgICB9CgogICAgdmFyIFpsaWIgPSB7CiAgICAgICAgJ0RlZmxhdGUnOiBaTGliRGVmbGF0ZS5abGliLkRlZmxhdGUKICAgIH07CiAgICB2YXIgRW5jb2RpbmcgPSB7CiAgICAgICAgJ2Jhc2U2NFVybCc6ICdiYXNlNjR1cmwnLAogICAgICAgICdiaW5hcnknOiAnYmluYXJ5JwogICAgfTsKICAgIGZ1bmN0aW9uIGNvbXByZXNzKGpzb25fb2JqLCBlbmNvZGluZykgewogICAgICAgIGlmICghZW5jb2RpbmcpIHsKICAgICAgICAgICAgZW5jb2RpbmcgPSBFbmNvZGluZy5iYXNlNjRVcmw7CiAgICAgICAgfQogICAgICAgIC8qIC0tIFRoaXMgaXMgWkxJQiAqLwogICAgICAgIHZhciBjb21wcmVzc0RhdGEgPSB0b1VURjhBcnJheSh0eXBlb2YganNvbl9vYmogPT09ICdzdHJpbmcnID8ganNvbl9vYmogOiBKU09OLnN0cmluZ2lmeShqc29uX29iaikpOwogICAgICAgIHZhciBkZWZsYXRlID0gbmV3IFpsaWIuRGVmbGF0ZShjb21wcmVzc0RhdGEpOwogICAgICAgIHZhciBjb21wcmVzc2VkQnl0ZXMgPSBkZWZsYXRlLmNvbXByZXNzKCk7CiAgICAgICAgaWYgKGVuY29kaW5nID09PSBFbmNvZGluZy5iYXNlNjRVcmwpIHsKICAgICAgICAgICAgcmV0dXJuIGI2NC51aW50OFRvQmFzZTY0KGNvbXByZXNzZWRCeXRlcyk7CiAgICAgICAgfQogICAgICAgIGVsc2UgewogICAgICAgICAgICByZXR1cm4gY29tcHJlc3NlZEJ5dGVzOwogICAgICAgIH0KICAgIH0KCiAgICB2YXIgT05FX0hVTkRSRURfTUJfSU5fQllURVMgPSAxMDAgKiAxMDI0ICogMTAyNDsKICAgIGZ1bmN0aW9uIG1hdGNoSG9zdGVkUmVzb3VyY2VzKHJlY29yZGluZ0V2ZW50LCBzdHJpbmdpZmllZFJlY29yZGluZ1BheWxvYWQpIHsKICAgICAgICB2YXIgZm9udFVSTFJlZ2V4ID0gL2h0dHBzOlwvXC9bXlxzXSs/XC4od29mZnx3b2ZmMnx0dGZ8b3RmfGVvdClcYi9nOwogICAgICAgIHZhciBob3N0ZWRSZXNvdXJjZXMgPSBzdHJpbmdpZmllZFJlY29yZGluZ1BheWxvYWQubWF0Y2goZm9udFVSTFJlZ2V4KTsKICAgICAgICByZXR1cm4gewogICAgICAgICAgICAndHlwZSc6ICdyZWNvcmRpbmcnLAogICAgICAgICAgICAndmlzaXRvcklkJzogcmVjb3JkaW5nRXZlbnQudmlzaXRvcklkLAogICAgICAgICAgICAnYWNjb3VudElkJzogcmVjb3JkaW5nRXZlbnQuYWNjb3VudElkLAogICAgICAgICAgICAna2V5RnJhbWUnOiBmYWxzZSwKICAgICAgICAgICAgJ2xhc3RLZXlGcmFtZSc6IHJlY29yZGluZ0V2ZW50Lmxhc3RLZXlGcmFtZSwKICAgICAgICAgICAgJ3JlY29yZGluZ0lkJzogcmVjb3JkaW5nRXZlbnQucmVjb3JkaW5nSWQsCiAgICAgICAgICAgICdyZWNvcmRpbmdTZXNzaW9uSWQnOiByZWNvcmRpbmdFdmVudC5yZWNvcmRpbmdTZXNzaW9uSWQsCiAgICAgICAgICAgICd1cmwnOiByZWNvcmRpbmdFdmVudC51cmwsCiAgICAgICAgICAgICdzdWJUeXBlJzogJ2hvc3RlZFJlc291cmNlcycsCiAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkJzogW10sCiAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkTWV0YWRhdGEnOiBbXSwKICAgICAgICAgICAgJ3NlcXVlbmNlJzogMCwKICAgICAgICAgICAgJ3JlY29yZGluZ1BheWxvYWRDb3VudCc6IDAsCiAgICAgICAgICAgICdob3N0ZWRSZXNvdXJjZXMnOiBob3N0ZWRSZXNvdXJjZXMgfHwgW10KICAgICAgICB9OwogICAgfQogICAgLy8ga2VlcCBpbiBtaW5kIGNoYW5nZXMgaGVyZSBtYXkgbmVlZCBhZGRyZXNzaW5nIGluIHRoZSBleHRlbnNpb24gd29ya2VyIHByb3h5IGFzIHdlbGwKICAgIHNlbGYub25tZXNzYWdlID0gZnVuY3Rpb24gKGUpIHsKICAgICAgICB0cnkgewogICAgICAgICAgICBpZiAoZS5kYXRhLnVybCAmJiBlLmRhdGEucGF5bG9hZCkgewogICAgICAgICAgICAgICAgdmFyIF9hID0gZS5kYXRhLCB1cmwgPSBfYS51cmwsIHBheWxvYWQgPSBfYS5wYXlsb2FkLCBzaG91bGRDYWNoZVJlc291cmNlcyA9IF9hLnNob3VsZENhY2hlUmVzb3VyY2VzOwogICAgICAgICAgICAgICAgdmFyIHNlcXVlbmNlXzEgPSBwYXlsb2FkLnNlcXVlbmNlOwogICAgICAgICAgICAgICAgdmFyIHN0cmluZ2lmaWVkUmVjb3JkaW5nUGF5bG9hZCA9IEpTT04uc3RyaW5naWZ5KHBheWxvYWQucmVjb3JkaW5nUGF5bG9hZCk7CiAgICAgICAgICAgICAgICAvLyBjYWxjdWxhdGUgYW5kIHBvc3QgYmFjayB0aGUgcmVjb3JkaW5nIHBheWxvYWQgc2l6ZSBiZWZvcmUgdGhlIHBheWxvYWQgaXMgY29tcHJlc3NlZAogICAgICAgICAgICAgICAgdmFyIHJlY29yZGluZ1BheWxvYWRTaXplID0gbmV3IFRleHRFbmNvZGVyKCkuZW5jb2RlKHN0cmluZ2lmaWVkUmVjb3JkaW5nUGF5bG9hZCkubGVuZ3RoOwogICAgICAgICAgICAgICAgdmFyIGV4Y2VlZHNQYXlsb2FkU2l6ZUxpbWl0ID0gcmVjb3JkaW5nUGF5bG9hZFNpemUgPj0gT05FX0hVTkRSRURfTUJfSU5fQllURVM7CiAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgJ3R5cGUnOiAncmVjb3JkaW5nUGF5bG9hZFNpemUnLAogICAgICAgICAgICAgICAgICAgICdyZWNvcmRpbmdQYXlsb2FkU2l6ZSc6IHJlY29yZGluZ1BheWxvYWRTaXplLAogICAgICAgICAgICAgICAgICAgICdleGNlZWRzUGF5bG9hZFNpemVMaW1pdCc6IGV4Y2VlZHNQYXlsb2FkU2l6ZUxpbWl0CiAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIC8vIGRvbid0IGF0dGVtcHQgdG8gc2VuZCB0aGUgcGF5bG9hZCBpZiBpdCBleGNlZWRzIHRoZSBhbGxvd2VkIGxpbWl0CiAgICAgICAgICAgICAgICBpZiAoZXhjZWVkc1BheWxvYWRTaXplTGltaXQpCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuOwogICAgICAgICAgICAgICAgaWYgKHNob3VsZENhY2hlUmVzb3VyY2VzKSB7CiAgICAgICAgICAgICAgICAgICAgdmFyIGhvc3RlZFJlc291cmNlc0V2ZW50ID0gbWF0Y2hIb3N0ZWRSZXNvdXJjZXMocGF5bG9hZCwgc3RyaW5naWZpZWRSZWNvcmRpbmdQYXlsb2FkKTsKICAgICAgICAgICAgICAgICAgICBpZiAoaG9zdGVkUmVzb3VyY2VzRXZlbnQuaG9zdGVkUmVzb3VyY2VzLmxlbmd0aCkgewogICAgICAgICAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAndHlwZSc6ICdob3N0ZWRSZXNvdXJjZXMnLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2hvc3RlZFJlc291cmNlc0V2ZW50JzogaG9zdGVkUmVzb3VyY2VzRXZlbnQKICAgICAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgcGF5bG9hZC5yZWNvcmRpbmdTaXplID0gcmVjb3JkaW5nUGF5bG9hZFNpemU7CiAgICAgICAgICAgICAgICB2YXIgYm9keSA9IGNvbXByZXNzKHBheWxvYWQsICdiaW5hcnknKTsKICAgICAgICAgICAgICAgIC8vIHdlIHdhbnQgdG8gY2FsY3VsYXRlIGN0IChjdXJyZW50IHRpbWUpIGFzIGNsb3NlIGFzIHdlIGNhbiB0byB0aGUgYWN0dWFsIFBPU1QgcmVxdWVzdAogICAgICAgICAgICAgICAgLy8gc28gdGhhdCBpdCdzIGFzIGFjY3VyYXRlIGFzIHBvc3NpYmxlCiAgICAgICAgICAgICAgICB1cmwgPSAiIi5jb25jYXQodXJsLCAiJmN0PSIpLmNvbmNhdChuZXcgRGF0ZSgpLmdldFRpbWUoKSk7CiAgICAgICAgICAgICAgICBmZXRjaCh1cmwsIHsKICAgICAgICAgICAgICAgICAgICAnbWV0aG9kJzogJ1BPU1QnLAogICAgICAgICAgICAgICAgICAgICdib2R5JzogYm9keQogICAgICAgICAgICAgICAgfSkudGhlbihmdW5jdGlvbiAocmVzcG9uc2UpIHsKICAgICAgICAgICAgICAgICAgICBpZiAocmVzcG9uc2Uuc3RhdHVzIDwgMjAwIHx8IHJlc3BvbnNlLnN0YXR1cyA+PSAzMDApIHsKICAgICAgICAgICAgICAgICAgICAgICAgcG9zdE1lc3NhZ2UoewogICAgICAgICAgICAgICAgICAgICAgICAgICAgJ2Vycm9yJzogbmV3IEVycm9yKCJyZWNlaXZlZCBzdGF0dXMgY29kZSAiLmNvbmNhdChyZXNwb25zZS5zdGF0dXMsICI6ICIpLmNvbmNhdChyZXNwb25zZS5zdGF0dXNUZXh0KSksCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAnc3RhdHVzJzogcmVzcG9uc2Uuc3RhdHVzLAogICAgICAgICAgICAgICAgICAgICAgICAgICAgc2VxdWVuY2U6IHNlcXVlbmNlXzEKICAgICAgICAgICAgICAgICAgICAgICAgfSk7CiAgICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICAgIGVsc2UgewogICAgICAgICAgICAgICAgICAgICAgICBwb3N0TWVzc2FnZSh7CiAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXF1ZW5jZTogc2VxdWVuY2VfMQogICAgICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICB9KVsnY2F0Y2gnXShmdW5jdGlvbiAoZSkgewogICAgICAgICAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgICAgICAgICAgJ2Vycm9yJzogZSwKICAgICAgICAgICAgICAgICAgICAgICAgc2VxdWVuY2U6IHNlcXVlbmNlXzEKICAgICAgICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgICAgIH0pOwogICAgICAgICAgICB9CiAgICAgICAgfQogICAgICAgIGNhdGNoIChlKSB7CiAgICAgICAgICAgIHBvc3RNZXNzYWdlKHsKICAgICAgICAgICAgICAgICdlcnJvcic6IGUKICAgICAgICAgICAgfSk7CiAgICAgICAgfQogICAgfTsKCiAgICBleHBvcnRzLm1hdGNoSG9zdGVkUmVzb3VyY2VzID0gbWF0Y2hIb3N0ZWRSZXNvdXJjZXM7CgogICAgcmV0dXJuIGV4cG9ydHM7Cgp9KSh7fSk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPXdvcmtlci5qcy5tYXAKCg==",null,!(SessionRecorder.prototype.handleTabIdChange=function(){this.send(),this.clearSessionInfo(),this.snapshot()}));function createReplayPlugin(){return errorLogger(new SessionRecorder(record,WorkerFactory))}export{Feedback,GuideMarkdown,createReplayPlugin as Replay,TextCapture,VocPortal,loadAgent};
|