· 4 years ago · May 13, 2021, 01:20 PM
1// ==UserScript==
2// @name Original Cottages
3// @namespace https://www.originalcottages.co.uk/
4// @version 0.1
5// @description try to take over the world!
6// @author You
7// @match https://www.originalcottages.co.uk/*
8// @grant none
9// ==/UserScript==
10/*
11 * Version: 6.3.122B148
12 * Copyright (c) 17-03-2021 GlassBox http://www.glassboxdigital.com
13 */
14
15if(typeof _cls_config === "undefined") _cls_config = {};
16
17 /* BEGIN ajax */
18
19_cls_config.reportURI = "https://report.cottages.gbqofs.io/reporting/b74d94ca-b8a7-434b-bc61-236d8c900e30/cls_report";
20_cls_config.captureGlobalObjects = ["dataLayer.0.entityId"];
21_cls_config.captureGlobalObjectsOnSegmentChange = true;
22_cls_config.captureGlobalObjectsEmptyStrings = true;
23 _cls_config.ajaxRecordMetadata = "never";
24 _cls_config.ajaxRecordRequestBody = "never";
25 _cls_config.ajaxRecordRequestHeaders = "tld";
26 _cls_config.ajaxRecordResponseBody = "never";
27 _cls_config.ajaxRecordResponseHeaders = "tld";
28 _cls_config.interceptAjax = true;
29 _cls_config.ajaxRecordStats = "always";
30 /* END ajax */
31/*Value Masking (INPUT)*/
32 _cls_config.valueMaskingMode = "blacklist";
33 _cls_config.maskBlacklistValueById =[
34 "edit-title",
35 "edit-firstname",
36 "edit-surname",
37 "edit-email",
38 "edit-phone-number",
39 "edit-line1*",
40 "edit-line2*",
41 "edit-town*",
42 "edit-county*",
43 "edit-postcode*",
44 "edit-countryalpha2code*",
45 "edit-selected-address*",
46 "edit-bookingnote",
47 "card_number",
48 "expiry_month",
49 "expiry_year",
50 "cvv",
51 "root_email",
52 "namedetails*",
53 "addressdetails_*",
54 "*_subscribernumber",
55 "edit-name*",
56 "edit-email-address-mail*",
57 "edit-phone-number",
58 "edit-your-enquiry",
59 "form-card_details*",
60 "addressdetails_line1",
61 "addressdetails_line2",
62 "addressdetails_town",
63 "addressdetails_county",
64 "addressdetails_postcode",
65 "addressdetails_countryname",
66 "addressdetails_postcode",
67 "edit-promocode",
68 "edit-name-title",
69 "edit-guestagerange",
70 "edit-email-address",
71 "root_firstname",
72 "root_surname"
73];
74 _cls_config.valueBlacklistMaskSimpleSelector =[];
75 _cls_config.maskBlacklistValueByClass =[
76 "sessioncamexclude"
77];
78 _cls_config.domBlacklistMaskSimpleSelector = [
79 "#customerarea > div.tocc__customerarea__details.tocc__hide__on__small > div.row > div > div.tocc__customerarea__details__top > div.tocc__customerarea__details__top__box.tocc__customerarea__details__top__box--1 > div:nth-child(2)",
80 "#customerarea .row > .small-12.medium-7.c--bc1.large-8.columns",
81 ".js-form-item--postcode > input",
82 "#edit-notes > div",
83 "#root > div:nth-child(2) > div > input[type=password]",
84 ".tocc__customerarea__details__top__box.tocc__customerarea__details__top__box--1",
85 "#customerarea > .row > .columns > .oc-title",
86 ".oc-figure__caption.oc-figure__caption--inverse",
87 ".tocc__overlay--background > div > div:nth-child(7) > p:nth-child(3) > strong",
88 ".tocc__overlay--background > div > div.oc-content > div.oc-callout > p:nth-child(3) > strong:nth-child(2)",
89 ".tocc__customerarea__details__top__box.tocc__customerarea__details__top__box--2",
90 ".tocc__overlay.tocc__customerarea__modal",
91 ".tocc__overlay.tocc__customerarea__modal",
92 "#customerarea > div.row > div > h2",
93 "#edit-name-title",
94 "#edit-title",
95 "#edit-guestagerange",
96 "#block-originalcottages-mainpagecontent > div.row.large-collapse.tocc__columns > main > h3",
97 "#block-originalcottages-mainpagecontent > div.row.large-collapse.tocc__columns > aside > div > div > figure > figcaption",
98 ".customerarea__form > .form-group > #root > div:nth-child(1)",
99 "#customer_status_messages > div"
100];
101 _cls_config.domBlacklistMaskContentByClass = [
102 "tocc__customerarea__modal__content",
103 "tocc__customerarea__modal",
104 "tocc__customerarea__primaryemail",
105 "tocc__customerarea__details__modal",
106 "form-item-selected-address",
107 "js-form-item-countryalpha2code",
108 "form-item-promocode",
109 "sessioncamhidetext"
110];
111 /*END MASKING*/
112/* START Blocking rules */
113 _cls_config.iframesAutoInject = true;
114 _cls_config.recordMouseMoves = true;
115 _cls_config.recordScrolls = true;
116 _cls_config.recordHovers = true;
117 _cls_config.clientAttributesEnabled = true;
118 _cls_config.clientAttributeMaxLength = 500;
119 _cls_config.collectStruggles = true;
120 /* END Blocking rules */
121
122!function(){var i,n=self;n.Function.prototype.gbBind=n.Function.prototype.bind,/{s+[native code]/.test(Function.prototype.toString.call(n.Function.prototype.bind))&&(i=Array.prototype.slice,n.Function.prototype.gbBind=function(){var e=this,t=arguments[0],r=i.call(arguments,1);if("function"!=typeof e)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");return function(){var n=r.concat(i.call(arguments));return e.apply(t,n)}})}(),function(i,n,e,j,t,U){var M,r,o,H,E,a,u,logger,c,s,f,d,V,q,m,l,g,h,v,p,y,w,b,C,T,S,k,I,z,x,R,A,N,D,O,_,W,L,F,P,B,X,G,J,K,Q,Y,$,Z,nn,en,tn,rn,on,an,un,cn,sn,fn,dn,ln,hn,vn,mn,gn,pn,yn,wn,bn,En,Cn,Tn,Sn,kn,In,xn,Mn,Rn,An,Nn,Dn,On,_n,Ln,Fn,Pn,Bn,jn,Un,Hn,Vn,qn,zn,Wn,Xn,Gn,Jn,Kn,Qn,iframeHelper,Yn,$n,Zn,ne,ee,te,re,ie,oe,ae,ue,ce,se,fe,de,le,he,ve,me,ge,pe,ye,we,be,Ee,Ce,Te,Se,ke,Ie,xe,Me,Re,Ae,Ne,De;function Oe(n){n.debugMode=!1,n.traceMode=!1,n.suppressMouseMovesDebug=!0,n.reportByPost=!1,n.reportPreferSendBeaconAPI=!1,n.reportDisableCors=!1,n.timingMode=!1,n.useIdSelectors=!0,n.noIdSelectorsForClassNames=["skull_list"],n.noIdSelectorsForIDs=[],n.noIdSelectorsForAttrs=[],n.noMetaTagInSelector=!0,n.useNameInFormSelectors=!1,n.preferNamesInFormSelectors=!1,n.reportValidationErrors=!0,n.supportNativeAutoComplete=!1,n.recordEnterForInputs=!0,n.recordTypingAll=!1,n.recordTypingForAttrs=["bs-typeahead"],n.recordTypingForClasses=["tt-input"],n.recordTypingForIDs=[],n.ignorableElementIds=["cls_logger","cls_logger_tab"],n.idleEventTimeInterval=-1,n.maxTimeForIdleEvent=42e4,n.validationValueForRenderTime=2e4,n.titleCharsLimit=150,n.recordAjaxCallsAnyway=!1,n.ajaxDebug=!1,n.recordSpaLoadTime=!0,n.ajaxHashRecurrentUrls=!0,n.reportVisualNames=!0,n.visualNameDebug=!1,n.visualName={maxLimit:160,maxParentLevel:3,CLS_NAME_ATTR:"cls_vname",filterNamingByTagName:["script","style"],maxDistance:20,eventsToCalcDistance:["mousedown"],by:{title:!0,alt:!0,ariaLabel:!0,labelTag:!0,inlineText:!0,placeholder:!0,inputConsts:!0,inputButtonsValue:!0,name:!0,id:!0,parent:!0,child:!0},elementListToCheckParent:["img","span","div"],elementListToCheckChild:["button"],filterInlineTextByClassName:[],wrapperElementList:["BUTTON","A"]},n.visualNameLimit=60,n.valueEncryptionMode=M.censorMode.BlackList,n.valueEncryptById=[],n.valueEncryptByClass=[],n.valueMaskingMode=U,n.maskWhitelistValueById=[],n.maskBlacklistValueById=[],n.maskWhitelistValueByClass=[],n.maskBlacklistValueByClass=[],n.valueWhitelistMaskSimpleSelector=[],n.valueBlacklistMaskSimpleSelector=[],n.valueMaskIgnoreAttribute="",n.ajaxMaskRequestBody=[],n.ajaxMaskResponseBody=[],n.ajaxStatsQueryParams=[],n.ajaxCaptureRequestCookie=!1,n.maskCookies=[],n.maskQueryParameters=[],n.maskUrlPath=[],n.ccAutoMask=!0,n.ccAutoMaskByContent=!0,n.ccAutoMaskKeepLastDigits=-1,n.ccForceMaskContainer=!0,n.valueMaskByCategories=[],n.valueMaskingCharNumeric="#",n.valueMaskingCharNumericLike="#",n.maskTitle=!1,n.cookieAssignFQDN=!1,n.cookieTLDSegmentCount=-1,n.enableSecureCookie=!0,n.recordErrors=!0,n.recordConsoleErrors=!0,n.maxRecordedCountPerError=2,n.minDragPixels=10,n.botDetection=!1,n.devToolsDetectionEnabled=!0,n.devToolsDetectionMessage="",n.struggleCaptureHorizontalScrollbar=!0,n.struggleCaptureBlankPage=!0,n.struggleCaptureDeadClick=!0,n.struggleDeadClickInterval=1e3,n.struggleCaptureErrorClick=!0,n.struggleErrorClickInterval=1e3,n.reportDebugInfo=!0,n.DOMBeaconImg=!1,n.truncateEventsWithUnload=!0,n.recordScrolls=!1,n.recordScrollReach=!1,n.minStallingScrollTime=3e3,n.scrollDebug=!1,n.recordMouseMoves=!1,n.mmRecordTimes=!1,n.mmDiluteMinPixels=20,n.mmMaxMovesWithUnload=100,n.mmMaxMovesInEventNoTimes=180,n.mmMaxMovesInEventWithTimes=130,n.mmMinStallingMoveTime=1e4,n.mmMaxInMemoryMoves=600,n.mmDebug=!1,n.SCIntegration=!1,n.SCIntegrationURLsContainList=[],n.SCIntegrationKeyList=["pageName","v25","v11","v39"],n.interceptThirdPartyAttributes=!0,n.interceptABTesting=!0,n.abTestingGlobalObject="",n.enableOptimizelyIntegration=!0,n.optimizelyCheckOnSegmentLoad=!1,n.optimizelyUrl="https://logx.optimizely.com/v1/events",n.enableAdobeAnalyticsIntegration=!1,n.adobeRsid="",n.adobeEVarNumber="",n.externalIdAttr="id",n.recordHovers=!1,n.mhDeepLevel=2,n.mhMaxListSize=10,n.mhMaxInMemeoryHovers=100,n.mhDebug=!1,n.reportHybrid=!1,n.domRecordEnabled=!1,n.reportAllResourcesLoad=!1,n.ignoreReportResourcesByTagNames=[],n.reportExternalResources=!1,n.reportMaxConcurrency=-1,n.reportTimingBetweenBeacons=-1,n.externalReporterObject="",n.clsDebug=!0,n.clsDebugCharsLimit=1e3,n.clsDebugMaxReports=5,n.reportEncoding="formUrl",n.reportCompress=!1,n.cordovaSdkReporting=!1,n.reportAddUriParams=["clsjsv","_cls_s","_cls_v","sn","cfg","pv","cls_e"],n.reportAddUriParamAPI=!1,n.reportStorageBackedForUA=[".*"],n.reportViaTopWindow=!1,n.duplicateIdCheck=!1,n.blackoutWhenLocationContains=[],n.reportCorsForceSafelistedHeaders=!0,n.reportCorsTakeNativeCookies=[],n.resetCorsOnNativeCookieChange=!1,n.clsByNativeCookie="",n.visitorDaysToExpiration=1825,n.reportIncludeReferrer=!0,n.reportCreateSubSessionCookie=!1,n.sessionIdByQueryParam="_cls_s",n.visitorIdByQueryParam="_cls_v",n.sendStateInfo=!0,n.debounceScrolls=500,n.encryptionKeyId="key1",n.encryptionTimeout=600,n.captureGlobalObjectsEmptyStrings=!1,n.captureGlobalObjectsOnSegmentChange=!1,n.segmentationTriggerBySimpleSelector=[],n.segmentationLabelBySimpleSelector=[],n.segmentationLabelByAttribute="",n.segmentationTitleByAttribute="",n.segmentationPrefix="_logical_",n.segmentationParallelMechanism=!1,n.segmentationInitialLabelSelector="",n.useExtension=!0,n.ajaxRecordSessionLimit=-1,n.pageNameResolvingEnabled=!0,n.pageNameResolvingByElements=[],n.gbconsoledomain="",n.decodUri=!0,n.collectVoc=!0,n.collectUsabillaVoc=!1,n.waitForUsabillaObj=!0,n.interceptUsabillaUrl="https://w.usabilla.com"}function _e(n){n.maxReportSize=1900,n.reportInterval=3e3,n.reportByPost=!0,n.maxPostReportSize=15e4,n.reportPostInterval=1e4,n.reportPostRetry=!0,n.reportMaxRetries=2,n.reportAbortAfter=-1,n.reportAddUriParams=["clsjsv","_cls_s","_cls_v","pid","sn","cfg","pv","cls_e"],n.reportUseWorker=!1,n.interceptAjax=!0,n.ajaxHashRecurrentUrls=!1,n.ajaxRecordMetadata="always",n.domNewPageTriggers=[],n.domNewPageAjaxTriggers=[],n.domStartAfter=1e4,n.snapshotImmediatePages=[],n.domExpireSnapshotAfter=114e4,n.domUpdateEveryWsMsgIn=-1,n.domForceUpdateOnClick=!1,n.domCompress=!0,n.domRecordCssRules=!0,n.domCompressRepetitiveElements=[],n.recordAnimation=!1,n.domRecordEnabled=!0,n.recordShadowDom=!1,n.resourcesRecordEnabled=!1,n.resourceRecordCssOnly=!0,n.resourcesRecordCount=1,n.resourcesRecordChance=.5,n.electResourcesOnClear=!0,n.resourcesRecordAllowCors=!1,n.resourceIgnoreWhenUrlContains=[],n.resourceTimingRecordEnabled=!1,n.resourceTimingRecordEnabledByChance=.01,n.resourceTimingRecordAjax=!0,n.resourceBufferCheckTime=5e3,n.maxResourcesBeforeFlush=140,n.resourceBufferIncreaseBy=100,n.isCheckResourceBuffer=!0,n.webVitalsRecordEnabled=!1,n.clientAttributesEnabled=!1,n.clientAttributeMaxLength=30,n.semiDomEnabled=!0,n.domIgnoredFormElements=["__VIEWSTATE"],n.domIncludeSelectorOnUpdate=!0,n.domWhitelistMaskContentById=[],n.domBlacklistMaskContentById=[],n.domOmitByClass=[],n.domOmitById=["gb-main-overlay","gbOverlay"],n.domOmitObjectElementsByType=[],n.tagsToCheckLength=[],n.tagMaxLength=-1,n.domWhitelistMaskContentByClass=[],n.domBlacklistMaskContentByClass=[],n.domMaskedAttributes=[],n.domMaskAttributesByTag=[],n.domMaskIgnoreAttribute="",n.domWhitelistMaskSimpleSelector=[],n.domBlacklistMaskSimpleSelector=[],n.domMaskingMode=M.censorMode.BlackList,n.domEncryptById=[],n.domEncryptByClass=[],n.domPartialWhenLocationContains=[],n.domFilterAttributes=[],n.cordovaSdkReporting=!1,n.domKeepComments=!1,n.domOmitAfterUnload=!1,n.domIE11ForceMutationObserver=!1,n.iframesRecordEnabled=!0,n.framesetRecordEnabled=!1,n.iframesDebugEnabled=!1,n.iframesAutoInject=!1,n.iframesAutoInjectMode=M.iframesAutoInjectMode.BlackList,n.blackoutIdleReporting=!1,n.domTamperingDetectionEnabled=!1,n.domTamperingIgnorePages=[],n.domTamperingIgnorableTags=["TITLE","STYLE","SCRIPT"],n.domTamperingGraceTime=2e3,n.iframesHandshakeTimeout=2e3,n.iframesSkipHidden=!0,n.domFormValidationTracking=!0,n.domFormValidationIgnorableText=["characters left","characters remaining"],n.domFormValidationIgnorableTags=[],n.domFormValidationIgnorePagesPredicates=[],n.domFormValidationCheckUrls=[],n.domFormValidationTitlesToCheck=[],n.domThrottleChanges=!1,n.domThrottleChangesIE11Only=!0,n.domPreciseStyleSheetCloning=!1,n.collectStruggles=!0,n.collectFormStruggles=!0,n.struggleMaxLongFocusTime=3e4,n.struggleRageClickInterval=3e3,n.struggleRageClickMinCount=5,n.struggleRageClickIgnoreBySelector=[],n.struggleDeadClickIgnoreBySelector=[],n.struggleDeadClickIgnoreByTagNames=[],n.struggleCaptureAjaxErrors=!0,n.forceRenderingFixForUA=U,n.domFuseDuration=-1,n.domFuseElementCount=-1,n.domFuseDurationIE=800,n.domFuseElementCountIE=-1,n.domFormValidationAdditionalTagNames=[],n.removeBase64ImageDataTagNames=[],n.delayDomMutationEvent=-1,n.enableAdoptedCss=!1,n.checkForHtmlOnly=!0,n.allowWaitForElementsUrls=[],n.snapshotWaitForElement=[],n.snapshotWaitForElementMustShown=!0,n.delaySnapshotAfterElementFound=-1,n.waitForElementTime=1e3,n.minAreaTocountElementAsShown=200,n.checkVisibility=!0,n.reTakeSnapshotAfterTime=5e3,n.isDetectorDom=!0}function Le(n){return function(){return Array.prototype[n].apply(arguments[0],Array.prototype.slice.call(arguments,1))}}function Fe(u){var r;function t(n){return null!==n&&E.isNumber(n.width)&&E.isNumber(n.height)?n.width+"x"+n.height:"x"}function i(n){return n?"1":"0"}function o(n){return q.Base64.encode(n)}function c(n){if(E.isNumber(n))return q.encodeAsBase(n,M.encoding.numberBase)}function a(n){if(E.isString(n))return c(q.hashcode(n))}function e(n){if(!E.isNumber(n.x)||!E.isNumber(n.y))return n.x,void n.y;var e=Math.round(n.x),n=Math.round(n.y);return c(e)+"_"+c(n)}function s(n,e,t,r){E.isString(t)&&(r?n.push(q.Base64.encode(e)+"_"+q.Base64.encode(t)):n.push(e+"_"+t))}function f(n,e,t){E.isNumber(t)&&n.push(e+"_"+c(t))}function d(n,e){var t,r=[];for(t in e)void 0!==M.dictionary.performanceTimingEvents[t]&&f(r,M.dictionary.encodePerformanceTimingMeasurement(t),e[t]);return r.join(n)}return{setBeaconEncoder:function(n){r=n},encodePageDetails:function(n){var e=[];return n.frame&&s(e,"t",n.frame?"f":"p"),s(e,"u",a(n.urlWithoutHash)),n.hash&&s(e,"h",q.Base64.encode(n.hash)),n.windowSize&&s(e,"s",t(n.windowSize)),n.screenSize&&s(e,"sc",t(n.screenSize)),n.referrerWithoutHash&&s(e,"r",a(n.referrerWithoutHash)),M.reportBase64URLs&&s(e,"ub",q.Base64.encode(n.url)),e.join("*")},encodePageSnapshotData:function(n){var e="h",t=r.encodeSnapshotHtml(n.html);return t.compressed?e="hh":t.plain&&(e="p"),["sn_"+n.seq,"r_"+q.Base64.encode(n.referrer),"c_"+q.Base64.encode(n.cookie),"ch_"+n.charset,e+"_"+t.encoded].join("*")},encodeResize:function(n){var e=[];return s(e,"ws",t(n.window)),s(e,"sc",t(n.screen)),e.join("*")},encodeScrollReach:function(n){if(!E.isNumber(n.top)||!E.isNumber(n.height)||"boolean"!=typeof n.isInfinite)return n.top,void n.height;var e=Math.round(n.top),t=Math.round(n.height);return c(e)+"_"+c(t)+"_"+i(n.isInfinite)},encodeTimings:function(n){return E.reduce(n,function(n,e,t){t="u_"+t+"*t_"+e.total;return E.isNumber(e.rendering)&&(t+="*r_"+e.rendering),E.isNumber(e.dns)&&(t+="*d_"+e.dns),E.isNumber(e.timeToFirstBuffer)&&(t+="*f_"+e.timeToFirstBuffer),E.isNumber(e.downloadTime)&&(t+="*w_"+e.downloadTime),E.isNumber(e.originalRenderTime)&&(t+="*o_"+e.originalRenderTime),E.isString(n)&&0<n.length?n+"**"+t:t},"")},encodeThirdPartyAttributes:function(n){for(var e,t="",r=[],i=0;i<n.length;i++){for(e in t+=q.Base64.encode(n[i].urlMatcher),n[i].valueMap)n[i].valueMap.hasOwnProperty(e)&&(t+="_"+q.Base64.encode(e)+"_"+q.Base64.encode(n[i].valueMap[e]));r.push(t),t=""}return r.join("*")},encodeABTesting:function(n){for(var e=[],t=0;t<n.length;t++)e.push("vi_"+q.Base64.encode(n[t].variantId)+"_vn_"+q.Base64.encode(n[t].variantName)+"_ei_"+q.Base64.encode(n[t].experimentId)+"_en_"+q.Base64.encode(n[t].experimentName));return e.join("*")},encodeJson:function(n){n=JSON.stringify(n),n=q.pako.gzip(n);return q.Base64.bytesToBase64(n)},encodeStruggles:function(n){n=JSON.stringify(n);return q.Base64.encode(n)},encodePerformanceTimings:function(n){var e=n.perf.timing,t=n.perf.navigation,n=n.browserTime,e=[d("*",e)];return t&&E.isNumber(t.type)&&f(e,"nt",t.type),t&&E.isNumber(t.redirectCount)&&f(e,"rc",t.redirectCount),n&&f(e,"bt",n),e.join("*")},encodeAjaxRequest:function(n){var e,t,r=[];return s(r,"sn",c(n.sn||0)),n.method&&s(r,"m",n.method),u.ajaxHashRecurrentUrls&&"function"==typeof n.ajaxUrls.get?(e=a(n.url),t=n.ajaxUrls.get(e),E.isUndefined(t)&&(n.ajaxUrls.set(e,n.url),s(r,"u",q.Base64.encode(n.url))),s(r,"uh",e)):s(r,"u",q.Base64.encode(n.url)),n.downTime?s(r,"d",c(n.downTime)):n.startedAt&&n.endedAt&&s(r,"d",c(n.endedAt-n.startedAt)),s(r,"s",c(n.status)),n.statusText&&s(r,"st",q.Base64.encode(n.statusText)),n.requestHeaders&&s(r,"rqh",q.Base64.encode(n.requestHeaders)),n.requestContent&&s(r,"rqc",q.Base64.encode(n.requestContent)),n.responseHeaders&&s(r,"rh",q.Base64.encode(n.responseHeaders)),n.responseContent&&s(r,"rc",(n.responseCompressed?q.Base64.bytesToBase64:q.Base64.encode)(n.responseContent)),n.resContentType&&s(r,"rct",q.Base64.encode(n.resContentType)),n.reqContentType&&s(r,"rqct",q.Base64.encode(n.reqContentType)),n.contentLength&&s(r,"rcl",c(parseInt(n.contentLength))),n.requestLength&&s(r,"rqcl",c(parseInt(n.requestLength))),n.ttfb&&s(r,"ttfb",c(n.ttfb)),n.downTime&&s(r,"dt",c(n.downTime)),s(r,"a",i(n.aborted)),s(r,"api",n.api),r.join("*")},encodeResourceContent:function(n){var e=[];if(!E.isUndefined(n.url))return s(e,"u",q.Base64.encode(n.url)),n.type&&0<n.type.length&&s(e,"t",q.Base64.encode(n.type)),n.content&&0<n.content.length&&s(e,"dd",q.Base64.bytesToBase64(n.content)),n.error&&0<n.error.length&&s(e,"er",q.Base64.encode(n.error)),e.join("*")},encodeKeyValue:function(n){var e=[];return s(e,"n",q.Base64.encode(n.name)),s(e,"v",q.Base64.encode(""+n.val)),e.join("*")},encodeSegmentChanged:function(n){var e=[];return n.type&&e.push("t_"+n.type),n.current&&e.push("c_"+q.Base64.encode(n.current)),n.hint&&e.push("h_"+n.hint),n.last&&e.push("l_"+q.Base64.encode(n.last)),n.lastDwell&&e.push("ld_"+c(n.lastDwell)),!n.lastLoadTime&&0!==n.lastLoadTime||e.push("ll_"+c(n.lastLoadTime)),e.join("*")},encodeKeyEvent:function(n){var e="";return n.unicode&&(e+=n.unicode),E.isUndefined(n.content)||(e+="_"+q.Base64.encode(n.content)),e},encodeClickDetails:function(n){return e(n.start)+"*"+e(n.end)+"*"+c(n.duration)},encodeMouseMove:function(n){u.mmDebug&&(n.length,JSON.stringify(n));for(var e,t,r,i,o=[],a=0;a<n.length;a++)i=n[a],e=o,t=i.x,r=i.y,i=(i=i.t)||0,i=u.mmRecordTimes?"_"+c(i):"",t=Math.round(t),r=Math.round(r),e.push(c(t)+"_"+c(r)+i);return o.join("*")},encodeHoverEvent:function(n){var e=n.join(" ");return u.mhDebug&&n.length,e},encodeKVMap:function(n){var e,t=[];for(e in n)n.hasOwnProperty(e)&&s(t,e,n[e],!0);return t.join("*")},encodeNameKVMap:function(n){var e=n.val;if(!e||0===Object.keys(e).length)return"";var t,r,n=[q.Base64.encode(n.name)],i=[];for(t in e)e.hasOwnProperty(t)&&(r=e[t],i.push(q.Base64.encode(t)+"_"+o(r.toString())));return n.push(i.join("*")),n.join("**")},encodeNumber:c,encodeBoolean:i,encodeString:o,encodeCoordinate:function(n){if(!E.isNumber(n.x)||!E.isNumber(n.y))return n.x,void n.y;var e=Math.round(n.x),n=Math.round(n.y);return c(e)+"_"+c(n)},encodeCoordinate64:function(n){return q.Base64.encode(e(n))},encodeHashCode:a,encodeNavigationTiming:d}}function Pe(){}function Be(n,e){if(!n)return n;if("object"!=typeof n)return n;var t,r,i={};for(t in n)n.hasOwnProperty(t)&&"function"!=(r=typeof n[t])&&("object"!=r?i[t]=n[t]:null!==n[t]&&(n[t].addEventListener||n[t].attachEvent||n[t].hasOwnProperty&&(Array.isArray(n[t])?i[t]=n[t].map(Be):i[t]=Be(n[t],e))));return i}function je(n,e,t,r){Pe.call(this),this.pageId=r,this.timestamp=e,this.type=n,this.element=t,this.report=!0,this.shouldEncodeValue=!0,this.subPage=q.decodeUri(H.decodUri,window.location.hash),this.referrer=q.stripHash(q.decodeUri(H.decodUri,window.location.href)),this.id=je.prototype.nextId++,this.extraInfo={eventId:this.id}}function Ue(n,e){Pe.call(this),this.id=n,this.metadata=e,this.events=[]}function He(t,e){function r(n,e){return(n?"1":"0")+(e?"1":"0")}var i=He.INITIAL_COMPRESSION_FACTOR,o=(e=e||{compress:!0,forceBase64:!0}).compress||e.forceBase64?1.33:1,a=1;this.newPayload=function(){return new Ve},this.encode=e.compress?function(n){if(0===n._updates.length)return"";var e=q.arrayToJsonSafe(n._updates),n=q.Base64.bytesToBase64(t.compress(e));return e=n.length/e.length,i=Math.max(e,He.MINIMAL_COMPRESSION_FACTOR),"11"+n}:function(n){if(0===n._updates.length)return"";n=q.arrayToJsonSafe(n._updates);return r(!1,e.forceBase64)+(e.forceBase64?q.Base64.toBase64(n):n)},this.refForEvent=function(n){return""+a+++q.hashcode(n.type+n.timestamp)},this.estimatedDomUpdateSize=function(n){return(n?JSON.stringify(n).length:0)*o*(e.compress?i:1)}}function Ve(){this._updates=[]}function qe(r){return{compress:function(n){return q.pako.gzip(n)},encodeTimestamp:function(n){n=n.timestamp;return E.isNumber(n)||(n=q.currentTimestamp()),r.encodeNumber(n)},encodeEventType:function(n){return M.encodeEventTypes?M.dictionary.encodeEventType(n):n},encodeExtraInfo:function(n){var e=n.extraInfo;if(E.isUndefined(e))return"";for(var t,r,i,o,a=[],u=je.prototype.extraInfoAttrs,c=0;c<u.length;c++){var s=u[c],f=e[s.name];E.isUndefined(f)||(t=a,r=s.encodeName,i=s.encodeFunc(f),o=s.encodeCode,E.isString(i)&&t.push(r+"."+o+"_"+i))}return a.join("*")},encodeDebugInfo:function(n){var e=n.debugInfo;if(E.isUndefined(e))return"-";function t(n,e,t){E.isUndefined(t)||n.push(e+"_"+t)}n=[];return t(n,"s",e.severity),t(n,"c",e.code),t(n,"i",e.count),e.msg&&e.count<=3&&t(n,"m",r.encodeString(e.msg)),n.join("*")}}}function ze(c,s,f,d,l,h){var u=(h=h||{}).base64UriEncoder||encodeURIComponent,v=new He(d,{forceBase64:!0,compress:h.domCompress});this.name="FORM-URL",this.supportsCompression=!1,this.isCompressing=function(){return!1},this.visitXhr=function(n){n.setRequestHeader("Content-Type","application/x-www-form-urlencoded")},this.getContentType=function(){return"application/x-www-form-urlencoded"},this.encodeSnapshotHtml=function(n){return h.domCompress?{encoded:f.Base64.bytesToBase64(d.compress(n)),plain:!1,compressed:!0}:{encoded:f.Base64.encode(n),plain:!1,compressed:!1}},this.estimateBeaconSize=function(n){return n},this.encodeEvent=function(n,e){var t,r=s.encoding.delimiters.eventParts,i=d.encodeTimestamp(n),o=d.encodeEventType(n.type),a=m[g[n.type]],a=a?a(n.value):n.value,e=i+r+o+r+(e=void 0===e?c.isUndefined(n.selectorExpression)||null==n.selectorExpression?s.encoding.rootSelector:n.selectorExpression:e);c.isString(a)?(l.stringIsEncrypted(a)?n.shouldEncodeValue=!1:t=n.shouldEncodeValue?s.encoding.valueEncodedPrefix:s.encoding.valueNotEncodedPrefix,u=n.shouldEncodeValue?f.Base64.encode(a):a,e+=t?r+t+u:r+u):e+=r+"-",c.isUndefined(n.extraInfo)?e+=r+"-":e+=r+d.encodeExtraInfo(n),h.reportDebugInfo&&!c.isUndefined(n.debugInfo)?e+=r+d.encodeDebugInfo(n):e+=r+"-";var u="";n.domSnapshot&&(u=v.refForEvent(n),e+=r+s.encoding.domSnapshotRefPrefix+u),n.type,c.contains(["webSocketFrame","resourceContent","pageSnapshot"],n.type),0<n.subPage.length&&n.subPage;u={event:encodeURIComponent(e),domUpdate:n.domSnapshot,domUpdateRef:u};return u.length=u.event.length+v.estimatedDomUpdateSize(n.domSnapshot),u},this.encodeBeacon=function(n,e,t,r){for(var i=[],o=v.newPayload(),a=0;a<t.length;a++)i.push(t[a].event),t[a].domUpdate&&o.add(t[a].domUpdate,t[a].domUpdateRef);r="v="+n+(void 0!==e.referrer?"&r="+encodeURIComponent(e.referrer):"")+"&sn="+r+"&p="+e.pageId+(void 0!==e.segment?"&seg="+encodeURIComponent(e.segment):"")+(void 0!==e.subPage?"&sp="+encodeURIComponent(e.subPage):"")+(void 0!==e.pssn?"&pssn="+e.pssn:"")+"&e="+i.join(s.encoding.delimiters.events)+"&dom="+u(v.encode(o)),e=l.getKeyInfo();return e&&(r+="&key="+encodeURIComponent(e)),r}}function We(i,o,a,u,c,s){var f=.25,d=new He(u,{forceBase64:!1,compress:!(s=s||{}).compress&&s.domCompress});this.name="JSON",this.supportsCompression=!0,this.isCompressing=function(){return!0},this.visitXhr=function(n){s.corsSafelisted?n.setRequestHeader("Content-Type","text/plain"+(s.compress?"; charset="+We.COMPRESSED_INDICATION_CHARSET:"")):(n.setRequestHeader("Content-Type","application/json"),s.compress&&n.setRequestHeader("Content-Encoding","gzip"))},this.getContentType=function(){return"application/json"},this.encodeSnapshotHtml=function(n){return!s.compress&&s.domCompress?{encoded:a.Base64.bytesToBase64(u.compress(n)),plain:!1,compressed:!0}:{encoded:n,plain:!0,compressed:!1}},this.estimateBeaconSize=function(n){return s.compress?n*f:n},this.encodeEvent=function(n,e){var t,r={timestamp:u.encodeTimestamp(n),type:""+u.encodeEventType(n.type)};void 0===e&&(e=i.isUndefined(n.selectorExpression)||null==n.selectorExpression?o.encoding.rootSelector:n.selectorExpression),r.selector=e;e=m[g[n.type]],e=e?e(n.value):n.value;i.isString(e)?(c.stringIsEncrypted(e)?n.shouldEncodeValue=!1:t=n.shouldEncodeValue?o.encoding.valueEncodedPrefix:o.encoding.valueNotEncodedPrefix,e=n.shouldEncodeValue?a.Base64.encode(e):e,r.value=t?t+e:e):r.value="-",i.isUndefined(n.extraInfo)?r.extraInfo="-":r.extraInfo=u.encodeExtraInfo(n),s.reportDebugInfo&&!i.isUndefined(n.debugInfo)?r.debugInfo=u.encodeDebugInfo(n):r.debugInfo="-";e="";return n.domSnapshot?(e=d.refForEvent(n),r.domSnapshot=o.encoding.domSnapshotRefPrefix+e):r.domSnapshot="-",n.type,r.timestamp,r.type,0<n.subPage.length&&n.subPage,function(n){var e,t=0;for(e in n.event)"string"==typeof n.event[e]&&(t+=e.length+n.event[e].length+6);return n.length=t+2+d.estimatedDomUpdateSize(n.domUpdate),n}({event:r,domUpdate:n.domSnapshot,domUpdateRef:e})},this.encodeBeacon=function(n,e,t,r){for(var i=[],o=d.newPayload(),a=0;a<t.length;a++)i.push(t[a].event),t[a].domUpdate&&o.add(t[a].domUpdate,t[a].domUpdateRef);n={ver:n,sn:r,pageId:e.pageId,segment:e.segment,events:i,dom:d.encode(o)},r=c.getKeyInfo();r&&(n.key=r),e.referrer&&(n.referrer=e.referrer),void 0!==e.subPage&&0<e.subPage.length&&(n.subPage=e.subPage),void 0!==e.pssn&&(n.pssn=e.pssn);e=JSON.stringify(n);if(s.compress){n=u.compress(e);return f=Math.max(n.length/e.length,We.MINIMAL_COMPRESSION_FACTOR),e.length,n.length,n}return e}}function Xe(n,e,t,r,i){var o,a=qe(n);function u(n){return"%"+n.charCodeAt(0).toString(16).toUpperCase()}return o="json"===i.reportEncoding?new We(E,M,q,a,t,{reportDebugInfo:i.reportDebugInfo,compress:i.reportCompress,domCompress:i.domCompress,corsSafelisted:r&&i.reportCorsForceSafelistedHeaders}):(o=/SamsungBrowser\/7/gi.test(e.userAgent),new ze(E,M,q,a,t,{reportDebugInfo:i.reportDebugInfo,domCompress:i.domCompress,base64UriEncoder:o?function(n){return n.replace(/\+|=|\//gi,u)}:encodeURIComponent})),n.setBeaconEncoder(o),o}function Ge(){var a=[];this.add=function(n,e,t,r,i,o){this[i.toLowerCase()]={type:n,nullable:e,parser:t,name:i,required:o,validator:r},o&&a.push(i)},this.requiredFieldsMask=function(){for(var n={},e=0;e<a.length;e++)n[a[e]]=!0;return n}}function Je(){this.errors=[],this.warnings=[]}function Ke(n,e,t){if(void 0!==n){var r,i=e.get(t+".bychance.enabled");return null===(i=e.get(t+".bychance.prev_th")!==""+n?null:i)?(r=Math.random()<n,e.set(t+".bychance.enabled",r),e.set(t+".bychance.prev_th",n)):r="true"===i,r}}function Qe(n,e,t){var r,i;for(r in t=t||function(n,e,t){return{key:n,value:e}},e)e.hasOwnProperty(r)&&(n[(i=t(r,e[r],n)).key]=i.value)}function Ye(){for(var n=0;n<arguments.length;n++)if(arguments[n]&&arguments[n].length)return 1}function $e(){return{validateSelector:function(e){try{return j.querySelector(e),!0}catch(n){return this.printErrorMsg("selector not valid"),void 0!==Mn&&setTimeout(function(){Mn.saveClsDebugErrorEvent("maskingConfiguration",U,e)},0),!1}},printErrorMsg:function(n){console.error("[EyeView-403]: Error while processing configuration. Error cause: "+n)}}}function Ze(n){var e=n.msCrypto,o=n.msCrypto.subtle;this.executeEncryptionFlow=function(n,e,t,r){var i,n=o.importKey("spki",n,{name:"RSA-OAEP",hash:{name:"SHA-1"}},!1,["encrypt"]);n.onerror=function(n){r(n.message)},n.oncomplete=function(n){(i=o.encrypt({name:"RSA-OAEP",hash:{name:"SHA-1"}},n.target.result,e)).onerror=function(n){r(n.message)},i.oncomplete=function(n){n=n.target.result;t(n)}}},this.getRandomValues=function(n){return e.getRandomValues(n)}}function nt(n){var e=n.crypto,i=e.subtle||e.webkitSubtle;this.executeEncryptionFlow=function(n,e,t,r){i.importKey("spki",n,{name:"RSA-OAEP",hash:"SHA-1"},!1,["encrypt"]).then(function(n){i.encrypt({name:"RSA-OAEP",hash:"SHA-1"},n,e).then(function(n){t(n)}).catch(function(n){r(n.message)})}).catch(function(n){r(n.message)})},this.getRandomValues=function(n){return e.getRandomValues(n)}}function et(r){function n(n,e){var e=(n?"\\"+n.split("").join("\\"):"")+(e?"\\s":""),t=new RegExp("^["+e+"]*\\d[\\d*"+e+"]*$","mi");return function(n){return t.test(n)}}r=q.optionsWithDefaults(r,{valueMaskByCategories:[],valueMaskingCharNumeric:"#",valueMaskingCharNumericLike:"#"});var i={numeric:{type:"numeric",test:n(!1,!1),maskingChar:r.valueMaskingCharNumeric||"#",byAttTest:{autocomplete:q.immutableSet("tel-extension","tel-local","tel-area-code","tel-national","tel-country-code","bday-year","bday-month","bday-day","transaction-amount","postal-code","country","cc-exp-month","cc-exp-year"),type:q.immutableSet("number","range")}},numericlike:{type:"numericLike",test:n("=-\\()/%$_#.",!0),maskingChar:r.valueMaskingCharNumericLike||"#",byAttTest:{autocomplete:q.immutableSet("tel","bday","cc-exp"),type:q.immutableSet("time","tel","month")}},badConfiguration:{type:"bad_Configuration",test:function(){return!0},maskingChar:"#",byAttTest:{autocomplete:null,type:null}}};return function(){for(var n=[],e=0;e<r.valueMaskByCategories.length;++e){var t=r.valueMaskByCategories[e].toLowerCase();i[t]?n.push(i[t]):n.push(i.badConfiguration)}return n}()}function tt(r){var i={doMask:!1};return function(n){for(var e=0;e<r.length;++e){var t=r[e];if(function(n,e){if(e.byAttTest)for(var t in e.byAttTest)if(e.byAttTest.hasOwnProperty(t)&&e.byAttTest[t][n.getAttribute(t)])return 1}(n,t)||t.test(n.value))return{doMask:!0,cause:t.type,maskingChar:t.maskingChar||"*"}}return i}}function rt(n){var r=!1,t={INPUT:!0,SELECT:!0,TEXTAREA:!0};function i(n){for(;n.parentNode;)if("FORM"===(n=n.parentNode).tagName)return n;return n}return n.on("domMutation",function(n){var e=!1;"childList"===n.type&&r&&E.forEach(n.addedNodes,function(n){t[n.tagName]&&(e||i(n)._gbForceMasking)&&(e=!0,n._gbForceMasking=!0)})}),{markOwnerAndInputs:function(n){r=!0;var t=i(n);t._gbForceMasking=!0,function(){for(var n=t.querySelectorAll("input, select, textarea"),e=0;e<n.length;++e)n[e]._gbForceMasking=!0}()}}}function it(n,e,t){this.maskingUtils=n,this.bundles=e,this.cb=t}function ot(n){for(var e,t=0;t<this.bundles.length;t++)if((e=this.bundles[t](n)).doMask)return e;return{}}function at(n,e,t,r,i,a){function o(n,e,t){for(var r,i=[],o=0;o<n.length;o++)if(1===(i=n[o].split("*")).length)e.push(n[o]);else if(2===i.length)try{r=new RegExp("(^|\\s)"+i.join(".*")+"($|\\s)"),t.push(r)}catch(n){a.printErrorMsg("exception when creating a regular expression")}else a.printErrorMsg("more than one wildcard in string")}this.bus=n,this.maskedElementsAlreadyLogged={},this._censorValueOf=e.censorValueOf,this._isAvailable=e.isAvailable,this._envCensorMode=t,this._censorAttribute=r,this._valueCensorIdsWithoutwildcards=[],this._valueCensorClassesWithoutwildcards=[],this._regexpValueCensorIds=[],this._regexpValueCensorClasses=[],this._valueCensorSelectorsWithoutwildcards=[],this._options=i||{},this._options.valueCensorIds&&o(this._options.valueCensorIds,this._valueCensorIdsWithoutwildcards,this._regexpValueCensorIds),this._options.valueCensorClasses&&o(this._options.valueCensorClasses,this._valueCensorClassesWithoutwildcards,this._regexpValueCensorClasses),this._options.valueCensorSimpleSelectors&&function(n,e){var t;for(t=0;t<n.length;++t)a.validateSelector(n[t])&&e.push(n[t])}(this._options.valueCensorSimpleSelectors,this._valueCensorSelectorsWithoutwildcards),this._options.autoCensorPredicate=this._options.autoCensorPredicate||function(){return!1}}function ut(n){var e=n[P];return e||(e=B(),n[P]=e),e}function ct(n,e,t){for(var r,i=[],o=0;o<n.length;o++)if(1===(i=n[o].split("*")).length)e.push(n[o]);else if(2===i.length)try{r=new RegExp("(^|\\s)"+i.join(".*")+"($|\\s)"),t.push(r)}catch(n){$e.printErrorMsg("exception when creating a regular expression")}else $e.printErrorMsg("more than one wildcard in string")}function st(){this.readyState=XMLHttpRequest.UNSENT,this.status=U,this._url=U,this._contentType=U,this.cls_own=!0,this.report_api="send_beacon"}function ft(){this.readyState=XMLHttpRequest.UNSENT,this.status=U,this.xdr=new XDomainRequest,this.xdr.onprogress=function(){},this.xdr.ontimeout=function(){};var n=this;this.xdr.onload=function(){n.status=200,n.readyState=XMLHttpRequest.DONE,n.onreadystatechange&&n.onreadystatechange()},this.xdr.onerror=function(){n.status=400,n.readyState=XMLHttpRequest.DONE,n.onreadystatechange&&n.onreadystatechange()}}function dt(n,i,o,e){var t,r,a=!0,u=[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}];void 0!==n.XDomainRequest&&/(msie 8\.0|msie 9\.0)/i.test(n.navigator.userAgent)&&u.unshift(function(){return new ft}),"undefined"!=typeof CordovaRequestAdapter&&e&&(t=new CordovaCookieAdapter(R),r=new CordovaContext(j,t),u.unshift(function(){return new CordovaRequestAdapter(r,t)}));function c(n){return(n=n()).cls_own=!0,n}var s=null;return{createXMLHTTPObject:function(n,e){if(!n&&i&&e&&st.isSupported()&&st.canSend(e))return a&&o?(a=!1,new XMLHttpRequest):new st;if(s)return c(s);for(var t,r=0;r<u.length;r++)try{return t=c(u[r]),s=u[r],t}catch(n){}return t}}}function lt(n){this.size=0,this.limit=n,this._keymap={}}function ht(e,u,t){var c=[],s=[];var n,f=(n=e.location||e.document.location,function(){return n.href});function r(){var n=f()||"",e=c.length;if(0!==e){if(c[e-1]!==n){var t=c[c.length-1],r=d(t),i=d(n),o=ht.UrlType.FUlL_URL;2===r.length&&2===i.length&&r[0]===i[0]&&(o=ht.UrlType.HASH_ONLY);var a=null;2<=e&&c[e-2]===n?(c.pop(),s.push(t),a=ht.DirectionType.BACK):0<s.length&&s[s.length-1]===n?(s.pop(),c.push(n),a=ht.DirectionType.FORWARD):(c.push(n),s=[]);i=o===ht.UrlType.FUlL_URL?n:i[1],r=o===ht.UrlType.FUlL_URL?t:r[1];return a=a,o=o,r=r,i=i,u.emit("navigation",{direction:a,urlType:o,fromUrl:r,toUrl:i}),1}}else c.push(n)}function d(n){n=(n||"").split("#");return[n[0],n[1]||""]}function i(e){var n;"function"==typeof t[e]&&(n=t[e],t[e]=function(){try{3<=arguments.length&&setTimeout(function(){r()},0)}catch(n){logger.error("error while intercepting history."+e+" method. error:"+n)}return n.apply(t,[].slice.call(arguments))})}try{i("pushState"),i("replaceState")}catch(n){logger.error("failed hooking native history manipulation methods.",n)}u.on("init:loaded",function(){var n=void 0!==e.onpopstate?"popstate":"hashchange";q.addEventHandler(e,n,function(){r()}),"hashchange"!=n&&q.isIE(e.navigator.userAgent)&&q.addEventHandler(e,"hashchange",function(){r()}),r()}),this.printHistory=function(){for(var n=0;n<c.length;n++)console.log(" - "+n+" : "+c[n])}}function vt(n,t,r){var i=r?function(n){for(var e=0;e<r.length;e++)if(-1!==n.indexOf(r[e]))return!0;return!1}:vt.ALWAYS_FALSE,o=!1;function a(n,e){t.emit(n?vt.EVENTS.BlackoutEnter:vt.EVENTS.BlackoutLeave,e)}function e(n){var e;i(n)!==o&&(a(e=!o,n),o=e)}function u(){a(!0,n.top.location.href),o=!0}function c(){a(o=!1,n.top.location.href)}this.isUnderBlackout=function(){return o},t.on("init:loaded",function(){e(n.location.href)}),t.on("navigation",function(){e(n.location.href)}),t.on("local:forceBlackoutEnter",u),t.on("local:forceBlackoutLeave",c),this.forceBlackoutEnter=function(){u()},this.forceBlackoutLeave=function(){c()}}function mt(n,e,t,r){this.severity=n,this.code=e,this.count=t,r&&(this.msg=r)}function gt(s){var e={tilda:"_clstil",asterisks:"_clsast",space:"_clsspc"};function u(n){return!!s.noMetaTagInSelector&&-1<n.parentNode.nodeName.indexOf("META")}function f(n,e){if(h(n)&&!u(n))return e?M.encoding.rootSelector:n.nodeName;var t=c(n.nodeName,e),r=function(n){if(!n.parentNode)return null;var e=n.parentNode.childNodes;if(e.length<2)return null;for(var t=n.nodeName,r=[],i=0;i<e.length;i+=1)e[i].nodeName===t&&r.push(e[i]);if(r.length<2)return null;for(var o=0;o<r.length;o+=1)if(r[o]===n)return o;return null}(n);if(null!==r)return function(n,e,t){t||(n+=":eq");return n+"("+e+")"}(t,r,e);if(M.useClassesInSelectors){var i=q.getClassList(n);if(0<i.length){for(var o=t,a=0;a<i.length;a++)o+="."+i[a];return o}}return t}function d(n,e,t){var r=q.getElementId(n);return(r&&-1!==r.indexOf("~")||-1!==r.indexOf("*")||-1!==r.indexOf(" "))&&(r=i(r)),e?c(n.nodeName,t)+"#"+r:"#"+r}function l(n,e){var t=typeof e;"string"!=t&&"number"!=t||n.unshift(e)}function c(n,e){return e?M.dictionary.encodeNodeName(n):n}function h(n){var e=n.nodeName;return"HTML"===e||"BODY"===e||u(n)}function i(n){return n.replace(/~/g,e.tilda).replace(/\*/g,e.asterisks).replace(/ /g,e.space)}function v(n){for(var e=n.parentNode;null!==e;){if(void 0===e&&console.log("hasFormAncestor undefined node: ",n),"FORM"===e.nodeName)return 1;e=e.parentNode}}function m(n,e,t){e="["+e+"='"+n.getAttribute(e)+"']";return-1===e.indexOf("~")&&-1===e.indexOf("*")&&-1===e.indexOf(" ")||(e=i(e)),c(n.nodeName,t)+e}function g(n,e){if(0===s.noIdSelectorsForClassNames.length&&0===s.noIdSelectorsForIDs.length&&0===s.noIdSelectorsForAttrs.length)return 1;for(var t=q.getClassList(n),r=0;r<s.noIdSelectorsForClassNames.length;r++)if(0<=E.indexOf(t,s.noIdSelectorsForClassNames[r]))return;for(r=0;r<s.noIdSelectorsForAttrs.length;r++)if(n.hasAttribute(s.noIdSelectorsForAttrs[r]))return;for(r=0;r<s.noIdSelectorsForIDs.length;r++){var i=s.noIdSelectorsForIDs[r];if(i&&0<=e.indexOf(i))return}return 1}this.getSelectorInfo=function(n,e,t){e=void 0!==e?e:M.encodeSelectors,t=t||{useId:!0};var r=s.useIdSelectors&&t.useId;if(null===n||E.isUndefined(n)||!q.isElement(n))return{selector:M.encoding.rootSelector};if(n.name&&s.preferNamesInFormSelectors&&v(n))return{selector:m(n,"name",e)};if(r){var i=q.getElementId(n);if(i&&!q.isDuplicateElementId(i)&&g(n,i))return{selector:d(n,!0,e)}}if(n.name&&s.useNameInFormSelectors&&v(n))return{selector:m(n,"name",e)};if(t.identifyingAttribute&&n.hasAttribute(t.identifyingAttribute))return{selector:m(n,t.identifyingAttribute,e)};for(var o=[f(n,e)],a=n,u=e?"*":">";a.parentNode&&!h(a);)if(1===(a=a.parentNode).nodeType){var c=q.getElementId(a);if(c&&r&&!q.isDuplicateElementId(c)&&g(a,c))return l(o,d(a,!1)),{selector:o.join(u)};if(l(o,f(a,e)),a===parent)return{selector:o.join(u)}}return{selector:o.join(u)}}}function pt(n){var o,r=n.createElement("div"),c=Element.prototype.matches||Element.prototype.msMatchesSelector||function(){return!1},a=(o=/([^>]*):eq\((\d+)\)/gi,function(n){for(var e,t=[],r=0,i=o.exec(n);null!==i;)i.index&&(e=u(n.substring(r,i.index)))&&t.push({selector:e,eqIndex:-1}),t.push({selector:u(i[1]),eqIndex:parseInt(i[2])}),r=i.index+i[0].length,i=o.exec(n);return r<n.length&&(e=u(n.substring(r)))&&t.push({selector:e,eqIndex:-1}),t});function u(n){return n.replace(/^[\s>]*|[\s>]*$/gi,"")}function f(n,e,t,r,i){if("function"!=typeof n.querySelector)return[];if(-1!==e.eqIndex){if(1===r){r=n.querySelectorAll(e.selector);return r[e.eqIndex]?[r[e.eqIndex]]:[]}for(var o=0,a=n&&n.nodeType===Node.DOCUMENT_NODE?[n.documentElement]:n.children,u=0;u<a.length;u++)if(c.call(a[u],e.selector)&&o++===e.eqIndex)return[a[u]];return[]}if(i&&t){t=n.querySelector(e.selector);return t?[t]:[]}return Array.prototype.slice.call(n.querySelectorAll(e.selector))}function s(n,e,t){for(var r,i,o,a,u=(e=e.slice()).length,c=[],s=[n];0<e.length;){for(r=e.shift(),o=[],i=0;i<s.length;i++){if(a=f(s[i],r,t,u,0===e.length),t&&0===r.length&&0<a.length)return[a[0]];o.push.apply(o,a)}c=s=o}return c}function d(n,e){return s(n,e,!1)}return{querySelector:function(n,e){var t,r,i=a(e);return t=e,r=i,(e=n)&&e.nodeType!==Node.ELEMENT_NODE||(1===r.length&&-1===r[0].eqIndex?!c.call(e,t):-1===d(q.getRootNode(e),r).indexOf(e))?s(n,i,!0)[0]||null:n},matches:function(n,e){var t=a(e);return 1===t.length&&-1===t[0].eqIndex?c.call(n,e):-1!==d(n.ownerDocument,t).indexOf(n)},isValidSelector:function(n){if(!n)return!1;try{for(var e=a(n),t=0;t<e.length;t++)f(r,e[0],!0,e.length,!0);return 0<e.length}catch(n){return!1}}}}function yt(n,u,e,c){var s,f,d,l=q.immutableSet.apply(null,e);function h(n,e,t,r){t?l[e]&&n.push(e+"="+t):r&&l[e]&&n.push(e)}u=encodeURIComponent(u),n.on("updateSafariQueryString",function(n){s=n}),n.on("newRemoteConfig",function(n){f=n.hash}),n.on("remoteClseConf",function(n){d=n}),n.on("invalidateSession",function(){d=U}),this.apply=function(n,e,t,r){var i,o=[];if(h(o,"clsjsv",u),e&&(h(o,"_cls_s",e.sessionId),h(o,"_cls_v",e.visitorId),l.ref&&o.push("ref="+encodeURIComponent(e.referrer)),h(o,"_cls_subs",e.subSessionId),h(o,"pid",e.pageId)),h(o,"sn",t),c&&h(o,"cfg",f,!0),h(o,"pv","2"),c&&h(o,"cls_e",d,!0),r)for(i in r)r.hasOwnProperty(i)&&o.push(i+"="+r[i]);if(s&&s.length)for(var a=0;a<s.length;a++)o.push(s[a].key+"="+s[a].value);return o.length?n+(-1!==n.indexOf("?")?"&":"?")+o.join("&"):n},this.updateNativeCookies=function(n){s=n},this.setConfigurationHash=function(n){f=n},this.setClse=function(n){d=n}}function wt(t,e){function r(n){return e.keysPrefix+n}t=t||{},this.get=function(n){try{return t[r(n)]}catch(n){return U}},this.set=function(n,e){try{return t[r(n)]=e}catch(n){return V.emit("clsDebug","error writing to local storage, in StorageAccessor. Exception message: "+n.message),U}},this.remove=function(n){try{return delete t[r(n)]}catch(n){return U}}}function bt(r,i){r=r||{};var n,o=i.keysPrefix+"sid",a=function(){return n=n||i.sessionIdFunc()};function u(n){return i.keysPrefix+n}this.get=function(n){var e=a();if(!e)return U;try{if(e===r[o])return r[u(n)]}catch(n){}return U},this.set=function(n,e){var t=a();if(!t)return U;try{return t!==r[o]&&function(){for(var n in r)0===n.indexOf(i.keysPrefix)&&delete r[n]}(),r[o]=t,r[u(n)]=e}catch(n){V.emit("clsDebug","error writing to storage, in BoundStorageAccessor. Exception message: "+n.message)}return U},this.remove=function(n){var e=a();if(!e)return!0;try{if(e===r[o])return delete r[u(n)]}catch(n){}return!0}}function Et(u,c){c=q.optionsWithDefaults(c,{domainBy:"tld",tldSegmentCount:-1,enableSecureCookie:!0});var s,f={},r=!0;function d(n,e,t,r){e=encodeURIComponent(n)+"="+(e+"").replace(/[^!#-+\--:<-\[\]-~]/g,encodeURIComponent);return e+=";path=/",e+=t,c.enableSecureCookie&&q.isHTTPS(c.reportURI)&&(e+=";Secure",e+=";SameSite=None"),e+=r?";expires="+r.toUTCString():""}this.isSessionSet=function(){return r},this.get=function(n){var e,t=f[n];return void 0===t&&(e=n,t=(e=new RegExp("[,; ]"+e+"=([^\\s,;]*)","gi").exec(";"+u.cookie))&&e[1]||null,f[n]=t),n===M.cookies.session&&null===t&&r&&(r=!1),null===t?U:t},this.set=function(n,e,t){if(f[n]=e,void 0!==s)u.cookie=d(n,e,s,t);else{for(var r,i=!1,o=function(){if("fqdn"===c.domainBy)return[""];var n,e=[],t=u.location.host.split(":")[0]||"",r=t.split(".");if(r.length<2)return[""];if(2===r.length)return[t];if(2<=c.tldSegmentCount&&c.tldSegmentCount<=r.length)return["."+r.slice(-c.tldSegmentCount).join(".")];for(n=2;n<r.length;n++)e.push("."+r.slice(-n).join("."));return e}(),a=0;a<o.length;a++)if(r=o[a]?";domain="+o[a]:"",u.cookie=d(n,e,r,t),-1!==u.cookie.indexOf(n)&&-1!==u.cookie.indexOf(e)){s=r,o[a],i=!0;break}i||(s="")}}}function Ct(o,a,n,e,u){n=n||{},u=E.isNumber(u)&&0<u?u:1825;var c="cls_v_expr";var t={};e||(h=function(n){var e=n,t=!1,r=!1,i=!1;if(e)e!==a.get(M.cookies.visitor)&&(i=r=!0);else if(e=a.get(M.cookies.visitor)){if(!(n=(n=o.get(c))&&parseInt(n))||n!==u){r=i=!0;try{o.set(c,u)}catch(n){logger.error("Error while setting _cls_v expiration date. Exception: "+n.message,n)}}}else r=t=!0,e=q.uuid();return r&&a.set(M.cookies.visitor,e,q.dateFromNow(24*u*60*60*1e3)),{isNew:t,visitorId:e,valueChanged:i}}(n.visitorId),t.visitorId=h.visitorId,t.changed=h.valueChanged);var r,i,s,f,d,l,h=(r=e,i=n.sessionId,s=h&&h.isNew,l=d=!1,r?(f=q.uuid()+":"+(s?"0":"1"),l=d=!0):(f=i)?f!==a.get(M.cookies.session)&&(l=d=!0):(f=a.get(M.cookies.session))||(f=q.uuid()+":"+(s?"0":"1"),d=!0),d&&a.set(M.cookies.session,f),{sessionId:f,valueChanged:l});return t.sessionId=h.sessionId,t.changed=t.changed||h.valueChanged,t}function Tt(n,e,t){var r=E.isNumber(n)&&E.isNumber(e);return r||xn.setErrorOnEvent(state.currentlyEncodedPageEvent,xn.types.WINDOW_SIZE_NOT_VALID_ERR,"Non valid values for window size for "+t+": x="+n+" y="+e),r?{width:n,height:e}:null}function St(n){var e=q.getClassList(n);if(e)for(var t=0;t<e.length;t++)if(q.startsWith(e[t],Nn.byClassPrefix))return"."+e[t];return U}function kt(n,e,t){this.url=e,this.timestamp=t,this.type=n}function It(n,e){this.x=n,this.y=e}function xt(n){if("object"==typeof console)for(var e in n)!function(n,e){var t;"function"==typeof console[n]&&(t=console[n],console[n]=function(){var n=Array.prototype.slice.call(arguments);t.apply(console,n),e(n)})}(e,n[e])}function Mt(r){var i=null;this.setNext=function(n){i=n},this.handle=function(n,e,t){r&&t&&(n.events=Dn.truncateEventsForUnload(n.events)),i.handle(n,e,t)}}function Rt(i){var t=null;this.setNext=function(n){t=n},this.handle=function(n,e,r){!function(n){if(r&&i)for(var e=n.events,t=0;t<e.length;t++)e[t].domSnapshot&&delete e[t].domSnapshot}(n),t.handle(n,e,r)}}function At(c){c=c||5e4;var r=null,s={},f={};this.setNext=function(n){r=n},this.handle=function(n,e,t){!function(n,e){var t,r,i,o,a=n.encodedEvents,u=n.metadata.pageId;for(s[u]=s[u]||1,t=0;t<a.length;t++)o=(r=a[t]).length+M.encoding.delimiters.events.length,(!i||i.estimatedEncodedLength+o>c)&&(i&&(i.endIndex=t),i={startIndex:t,metadata:n.metadata,encodedEvents:[],eventSetId:n.id,estimatedEncodedLength:0,sn:s[u]},f[u]&&(i.storage=!0),s[u]++,e.push(i)),i.encodedEvents.push(r),i.estimatedEncodedLength+=o;i&&(i.endIndex=t)}(n,e),r.handle(n,e,t)},this.onRestoreState=function(n,e){q.assign(s,n),q.assign(f,e)}}function Nt(i,o){var t=null;this.setNext=function(n){t=n},this.handle=function(r,n,e){!function(n){for(var e=r.metadata.pageId,t=0;t<n.length;t++)i[e]=i[e]||{},i[e][n[t].sn]={startIndex:n[t].startIndex,endIndex:n[t].endIndex,eventSetId:n[t].eventSetId,sn:n[t].sn}}(n),t.handle(r,n,e)},this.onReporterMessage=function(n,e,t,r){t?t&&i[e]&&i[e][n]&&(o(e,i[e][n],t),delete i[e][n]):o(e,i[e][n],t,r)}}function Dt(u,c){var s,f=null;this.setNext=function(n){f=n},this.handle=function(n,e,t){for(var r,i,o=[],a=0;a<n.events.length;a++)r=(i=n.events[a]).selectorExpression||M.encoding.rootSelector,(s=function(e,n){try{return u.encodeEvent(e,n)}catch(n){logger.error("ERROR: while encoding event: "+e.type+" . Exception: ",n.stack||n.message),c&&(c.encodingErrors=c.encodingErrors||[],c.encodingErrors.length<100&&c.encodingErrors.push(n.message))}}(i,r))&&o.push(s);n.encodedEvents=o,f.handle(n,e,t)}}function Ot(n,e,t,r,i){for(var o=new At(n.config.maxReportSize),a=[new Mt(i.truncateEventsWithUnload),new Rt(i.domOmitAfterUnload),new Dt(t,r),o,e,new Lt],u=0;u<a.length;u++)a[u].setNext(a[u+1]);this.handle=function(n,e){for(var t=[],r=0;r<n.length;r++)a[0].handle(n[r],t,e);return t},this.restoreState=function(n,e){o.onRestoreState(n,e)}}function _t(t,r){var i=null;this.setNext=function(n){i=n},this.handle=function(n,e){r&&r.extensionInspectMode||(t.emit("extensionEvent",n.event),i.handle(n,e))},this.onPipelineTick=function(){}}function Lt(){this.setNext=function(){},this.handle=function(){},this.onPipelineTick=function(){}}function Ft(n){var r=null,i=U,e=0,o=[];function t(){i=U,o=[]}function a(n){return new Ue(++e,n)}n.on("recordingStopped",function(){t()}),this.setNext=function(n){r=n},this.handle=function(n,e){var t;E.contains(M.nobelEventTypes,n.event.type)?((t=a(n.metadata)).events.push(n.event),o.push(t),i=U):(i&&i.metadata===n.metadata||(i=a(n.metadata),o.push(i)),i.events.push(n.event)),r.handle(n,e)},this.pull=function(){var n=o;return t(),n},this.onPipelineTick=function(){}}function Pt(n,t){var r,e,i,o=null;function a(){q.currentTimestamp()-e<H.maxTimeForIdleEvent&&n.emit("reporter:idle",{idleBaseTime:e,latestEventTime:r})}e=r=q.currentTimestamp(),-1!==t&&(i=setInterval(a,t)),this.setNext=function(n){o=n},this.handle=function(n,e){-1!==t&&(clearInterval(i),i=setInterval(a,t),r=q.currentTimestamp()),o.handle(n,e)},this.onPipelineTick=function(){}}function Bt(n,e){var r,i={},o=!1;function a(){return{sessionId:i.sessionId,subSessionId:i.subSessionId,visitorId:i.visitorId,pageId:i.pageId,pssn:i.pssn,referrer:i.referrer,subPage:i.subPage,segment:i.segment,reportURI:e}}n.on("init:preloaded",function(n){(i={}).sessionId=n.sessionId,i.visitorId=n.visitorId,i.pageId=n.pageId}),n.on("session:new",function(n){(i={}).sessionId=n.sessionId,i.visitorId=n.visitorId,i.pageId=n.pageId}),n.on("session:newSubSessionId",function(n){(i=a()).pssn=n.pageSnapshotSN,i.subSessionId=n.subSessionId}),n.on("pageSnapshot:report",function(n){(i=a()).pssn=n.seq}),this.setNext=function(n){r=n},this.handle=function(n,e){var t=E.contains(M.nobelEventTypes,n.event.type);(o||t||i.referrer!==n.event.referrer||i.subPage!==n.event.subPage||i.segment!==n.event.segment)&&(o=t?!0:o&&!1,(i=a()).referrer=n.event.referrer,i.subPage=n.event.subPage,i.segment=n.event.segment),n.metadata=i,r&&r.handle(n,e)},this.onPipelineTick=function(){}}function jt(r){var i,o,a=null,u=!1,c=q.immutableSet("mousemove","resize","scroll");this.setNext=function(n){a=n},this.handle=function(n,e){var t=r(o,i,n.event);o=i,i=n.event,!t||n.event.domSnapshot&&n.event.domSnapshot.domChanges?(o&&c[o.type]&&u&&(u=!1,a.handle({event:o},e)),a.handle(n,e)):u=!0},this.onPipelineTick=function(n){u&&100<q.currentTimestamp()-i.timestamp&&(u=!1,a.handle({event:i},n),i=o=U)}}function Ut(n,e,t){var r,o,a,u,c,s,f,d,l,h,i,v,m,g,p,y,w,b,E=null,C=q.compositeFunctionBuilder().add(t.domRecordEnabled?(m=Mn,g=t,p=!1,y=-1,w=q.immutableSet.apply(null,M.snapshotApplicableEventType),b=q.immutableSet("pageUpdate","mousedown","touchstart","drag","keydown","unload"),function(n){return-1!==g.domExpireSnapshotAfter&&"pageSnapshot"!==n.type&&-1!==y&&n.timestamp-y>g.domExpireSnapshotAfter&&(S().reset(),m.useCurrentTimeForPagesnapshot=!0),(p=p||b[n.type])&&(w[n.type]||"keydown"===n.type&&(13===n.value.unicode||9===n.value.unicode))&&(n.domSnapshot=S().getDomSnapshot()),"pageSnapshot"!==n.type&&(y=n.timestamp),!("pageUpdate"===n.type&&!n.domSnapshot)&&!S().getDomMasker().isDomMasked(n.element,Gn.SELF_OR_ANY_PARENT,Jn.OMIT)}):U).add((i=je.prototype.SELECTOR_ACTION_COUNT,v={},function(n){var e;return n.selectorExpression&&(void 0===v[n.selectorExpression]&&(v[n.selectorExpression]=0),e=++v[n.selectorExpression],n.setExtraInfo(i,e)),!0})).add((a={},u={},c={},s={},h=l=d=!(f={}),(e=e).on("beacon:sending",function(n){a[n]=!0}),e.on("beacon:sent",function(n){delete a[n]}),e.on("beacon:storageAdded",function(n){u[n]=!0}),e.on("beacon:storageRemoved",function(n){delete u[n]}),e.on("beacon:failed",function(n){f[n.sn]=n.status}),e.on("beacon:storageFlushFail",function(n){c[n]=!0}),e.on("beacon:sizeExceed",function(n){s[n]=!0}),e.on("beacon:sendingFromStorage",function(){d=!0}),e.on("beacon:failedSendingFromStorage",function(){l=!0}),e.on("devToolsVisibilityChanged",function(n){o=n.size}),e.on("worker:init",function(n){h=!!n}),function(n){var e,t,r,i;return"unload"===n.type&&(T(n,a,je.prototype.DEBUG_UNCONFIRMED_BEACONS),T(n,u,je.prototype.DEBUG_STORAGE_PENDING),T(n,c,je.prototype.FAILED_STORAGE_FLUSH_BEACONS),T(n,s,je.prototype.STORAGE_SIZE_EXCEED),e=n,t=f,r=je.prototype.RETRIED,(i=Object.keys(t)).length&&(function(n,e){var t;for(t=0;t<n.length;t++)n[t]="sn_"+n[t]+"_status_"+e[n[t]]}(i,t),e.setExtraInfo(r,i.join(","))),d&&n.setExtraInfo(je.prototype.FAILED_SEND_FROM_STORAGE,!0),l&&n.setExtraInfo(je.prototype.SENDING_FROM_STORAGE,!0),o&&n.setExtraInfo(je.prototype.DEVTOOLS_VALUES,o),n.setExtraInfo(je.prototype.USING_WORKER,h)),!0})).add((r=Mn.logicalSegmentTracker,function(){return r.onBeforeEmittingPageEvent(),!0})).buildBooleanAnd();function T(n,e,t){e=Object.keys(e);e.length&&n.setExtraInfo(t,e.join(","))}function S(){return m.plugins.domRecordingPlugin}this.setNext=function(n){E=n},this.handle=function(n,e){C(n.event)&&E.handle(n,e)},this.onPipelineTick=function(){}}function Ht(n,t,e,r,i){for(var o={stats:r},a=[new jt(Dn.diluteEvents.gbBind(Dn)),new Ut(0,t,i),new Bt(t,i.reportURI),new _t(t,Mn),new Pt(t,i.idleEventTimeInterval),e,new Lt],u=0;u<a.length;u++)a[u].setNext(a[u+1]);setInterval(function(){for(var n=0;n<a.length;n++)a[n].onPipelineTick(o)},5e3),t.on("saveEvent",function(n){var e={event:n};try{a[0].handle(e,o),"mousedown"===e.event.type&&i.domForceUpdateOnClick&&setTimeout(function(){t.emit("pageUpdate")},100)}catch(n){logger.error("Failed handling page event'. Error: "+n.message,n)}})}function Vt(i,o,a,u,c,n,s,f,d){var l,h=[];function v(n){var e,t,r=(new Date).getTime();-1!==d&&l&&r-l<d?(t=n,e=d-((e=r)-l),setTimeout(g.bind(null,h.shift(),t),e),l+=d):(l=r,g(h.shift(),n))}function m(){h.length?v():f++}function g(n,e){var t,r;n&&(t=n.beacon,r=n.queryParams,t.storage&&(r.storage=!0),n=o.encodeBeacon(M.beaconVersion,t.metadata,t.encodedEvents,t.sn),e&&f--,i.emit("beacon:sending",t.sn),a.dispatch(n,t.metadata,t.sn,r,m),s(t.sn,n.length),t.sn,t.metadata.pageId,t.encodedEvents.length)}-1===f&&(f=1e3),i.on("removeFromStorage",n.untrack),this.restoreState=function(n,e){u.restoreState(n,e)},this.encodeAndDispatch=function(n,e,t){try{var r,i,o=c?{aid:e}:{},o=function(n,e){for(var t=[],r=0;r<n.length;r++)n[r].encodedEvents.length&&t.push({beacon:n[r],queryParams:e});return t}(u.handle(n,t),o);for(o.length&&(h=h.concat(o)),i=Math.min(h.length,f),r=0;r<i;r++)v(!0),i=Math.min(h.length,f)}catch(n){logger.error("Error while flushing beacons. message:",n.message)}}}function qt(t,r){this.set=function(n,e){try{t[n]=r.encode(e)}catch(n){logger.error("error: failed writing to storage. message:",n.message),V.emit("clsDebug","error writing to storage, in StorageWriter. Exception message: "+n.message)}},this.getAndClear=function(n){try{var e=t[n];if(t.removeItem(n),e)return r.decode(e)}catch(n){logger.error("error: failed reading from storage: "+n.message,n)}return U}}function zt(t,e,r,i,o,a,u,c,s){var f,d,n=!1,l=!1,h="",v=-1,m=!(s.reportPreferSendBeaconAPI&&st.isSupported()),g={};function p(){return n&&l&&d}function y(n,e){v=Math.max(v,n),c.count++,c.flushedBytes+=e}function w(){if(p())try{var n=o.pull();n.length&&(b(n),Dn.notifyEventsFlush())}catch(n){logger.error("ERROR: while flushing pending events. Exception: ",n.stack||n.message)}}function b(n){i.track(n),d.encodeAndDispatch(n,h)}function E(){try{var n=u.getAndClear(qt.KEY_NAME_SN),e=u.getAndClear(qt.KEY_NAME_EST);n&&e&&e.length&&(d.restoreState(n,function(n){for(var e={},t=0;t<n.length;t++)e[n[t].metadata.pageId]=!0;return e}(e)),t.emit("beacon:sendingFromStorage"),b(e))}catch(n){t.emit("beacon:failedSendingFromStorage"),logger.error("error: could not send pending storage reports. message:",n.message)}}function C(){var n;E(),(n=s.reportByPost?s.reportPostInterval:s.reportInterval)&&!f&&(f=setInterval(w,n))}function T(n){try{g[n.data.pageId].postMessage({messageId:n.data.messageId,type:"eventSet"}),p()?b(n.data.eventSets):(logger.error("Cannot flush event sets of a child iframe as the Flusher is not ready."),t.emit("clsDebug","cannot flush child iframe's events: dispatcher not set (waiting for worker?)."))}catch(n){logger.error("ERROR: while flushing event sets of a child iframe. Exception: ",n.stack||n.message)}}t.on("worker:init",function(n){d=n?new Xt(n,i,y,t):new Vt(t,e,r,a,m,i,y,s.reportMaxConcurrency,s.reportTimingBetweenBeacons),p()&&C()}),t.on("corsReady",function(){l=!0,p()&&C()}),t.on("corsReset",function(){l=!1}),t.on("encryptionReady",function(){n=!0,p()&&C()}),t.on("sendStoragePendingReports",E),t.on("event:unload",function(){try{var n,e,t,r=o.pull();s.storageBackedReporting?(n=i.packageEventSets(),t=[],Array.prototype.push.apply(t,n.eventSets),Array.prototype.push.apply(t,r),n.sn[r[0].metadata.pageId]=n.sn[r[0].metadata.pageId]||1,n.eventSets=Ue.reduceByMetadata(t),e=u.getAndClear(qt.KEY_NAME_EST),(t=u.getAndClear(qt.KEY_NAME_SN))&&q.assign(n.sn,t),e&&Array.prototype.push.apply(n.eventSets,e),u.set(qt.KEY_NAME_EST,n.eventSets),u.set(qt.KEY_NAME_SN,n.sn)):r.length&&p()&&b(r)}catch(n){logger.error("Flusher error: handling 'unload' event raised an error.",n.message)}},U,1e3),t.on("forceFlush",w),t.on("analyzerId",function(n){h=n}),t.on("iframePortReceived",function(n){p()&&E(),g[n.pageId]=n.port,n.port.onmessage=T}),this.flush=function(){w()}}function Wt(e,r,i,t,o,a){var u,c=1,s={};function f(n){try{var e=t.pull();e.length&&(d(e,n),Dn.notifyEventsFlush())}catch(n){logger.error("ERROR: while flushing pending events. Exception: ",n.stack||n.message)}}function d(n,e){try{var t;s[c]=n,!e||e&&!a.storageBackedReporting?(i.send({eventSets:n,messageId:c,pageId:r().page.id}),c++):(t=(o.getAndClear(qt.KEY_NAME_EST)||[]).concat(function(n){var e,t=[];for(e in n)n.hasOwnProperty(e)&&(t=t.concat(n[e]));return t}(s)),o.set(qt.KEY_NAME_EST,t),s={})}catch(n){logger.error("Exception while flushing events. message:",n.message)}}function l(n){var e;"ack"===n.data.type?(f(),(e=a.reportByPost?a.reportPostInterval:a.reportInterval)&&!u&&(u=setInterval(f,e))):delete s[n.data.messageId]}e.on("init:loaded",function(){var n=i.initPorts(l);e.emit("frame:port",{args:{pageId:r().page.id},transferable:n})}),e.on("event:unload",f.gbBind(null,!0)),e.on("forceFlush",f),e.on("sendStoragePendingReports",function(){try{var n=o.getAndClear(qt.KEY_NAME_EST);n&&n.length&&(e.emit("beacon:sendingFromStorage"),d(n,!1))}catch(n){e.emit("beacon:failedSendingFromStorage"),logger.error("error: could not send pending storage reports. message:",n.message)}}),this.flush=function(){u&&f()}}function Xt(r,e,t,i){r.addEventListener("message",function(n){n=n.data;"beaconSent"===n.type?t(n.sn,n.encodedLength):"onBeaconResponse"===n.type?n.success?(e.untrack({pageId:n.pageId,beaconData:n.beaconData}),i.emit("beacon:sent",n.sn)):i.emit("beacon:failed",{sn:n.sn,status:n.requestStatus}):"newConfig"===n.type&&i.emit("handleGatewayResponse",n.config)}),i.on("updateSafariQueryString",function(n){r.postMessage({type:"updateQueryString",args:[n]})}),i.on("confHashChange",function(n){r.postMessage({type:"confHashChange",args:[n]})}),this.restoreState=function(n,e){r.postMessage({type:"restoreState",args:[n,e]})},this.encodeAndDispatch=function(n,e,t){n=n.map(function(n){return n.toJSON?n.toJSON():n});r.postMessage({type:"encodeAndDispatch",args:[n,e,t]})}}function Gt(i,o,a,logger,c,u){function s(n,e,t){for(var r=n,i=0;i<e.length;i++)if(!(r=r[e[i]]))return null;return function(n,e){var t,r,i,o,a=[];for(n instanceof Array||(n=[n]),t=0;t<n.length;t++)if(i=n[t][e])for(r=0;r<i.length;r++){var u=i[r].responseTokens;(o=u)&&o["experience.id"]&&o["experience.name"]&&o["activity.id"]&&o["activity.name"]?a.push({variantId:u["experience.id"],variantName:u["experience.name"],experimentId:u["activity.id"],experimentName:u["activity.name"]}):c.abTesting.missingFields++}return a}(r,t)}(c=c||{}).abTesting={missingFields:0,success:0},function(){try{var n=i[u];if(n&&n.length){for(var e=[],t=0;t<n.length;t++){var r=n[t];r&&r.RecipeId&&r.RecipeName&&r.CampaignId&&r.CampaignName&&e.push({variantId:r.RecipeId,variantName:r.RecipeName,experimentId:r.CampaignId,experimentName:r.CampaignName})}e.length&&o.emit("abTesting",{provider:"adobe",offers:e})}}catch(n){logger.error("error during abTesting data extraction from global object. message:",n.message),o.emit("clsDebug","error during abTesting data extraction from global object. message:"+n.message)}}(),o.on("ajax:end",function(n){try{if(200<=n.status&&n.status<=202&&n.resContentType&&-1<n.resContentType.indexOf("application/json")){var e,t,r,i;if(n.responseType&&"text"!==n.responseType){if("json"!==n.responseType)return;r=n.response}else r=JSON.parse(n.responseText);for(e=0;e<a.length;e++)if(t=new RegExp(a[e].urlMatcher,"i"),t.test(n.url)&&(i=s(r,a[e].path,a[e].tokenContainer))&&i.length){o.emit("abTesting",{provider:"adobe",offers:i}),c.abTesting.success++;break}}}catch(n){}})}function Jt(f,d,logger,e){var l;function t(){if(f.optimizely&&f.optimizely.get&&!l){var n=f.optimizely.get("state"),e=n.getActiveExperimentIds();if(e&&e.length){var t,r=[],i=n.getVariationMap(),o=n.getExperimentStates();for(l=!0,t=0;t<e.length;t++){var a,u,c,s=e[t];i[s]&&(a=i[s].id,u=i[s].name),o[s]&&(c=o[s].experimentName),a&&s&&(r.push({variantId:a,variantName:u||a,experimentId:s,experimentName:c||s}),JSON.stringify({variantId:a,variantName:u||a,experimentId:s,experimentName:c||s}))}r.length&&d.emit("abTesting",{provider:"optimizely",offers:r})}}}q.waitForObjDefined(f,"optimizely",t),e.optimizelyCheckOnSegmentLoad&&d.on("segmentChanged",function(){l=!1}),d.on("ajax:end",function(n){e.optimizelyUrl&&-1<n.url.indexOf(e.optimizelyUrl)&&n.status<400&&0<n.status&&setTimeout(t,10)})}function Kt(e,n,logger,t){var r,i=t.adobeRsid,o=t.adobeEVarNumber,a=!1;function u(){var n;e.AppMeasurement?e.s_gi&&i?(n=e.s_gi(i))&&o&&r?(n["eVar"+o]=r,n.t?n.t():logger.error("## AdobeAnalyticsInterceptor -> callAppMeasurementAPI() -> t function not exist")):logger.error("## AdobeAnalyticsInterceptor -> callAppMeasurementAPI() -> trackerObj not exist"):logger.error("## AdobeAnalyticsInterceptor -> callAppMeasurementAPI() -> s_gi function not exist"):q.waitForObjDefined(e,"AppMeasurement",u)}n.on("invalidateSession",function(){a=!1}),n.on("remoteClseConf",function(n){n&&!a&&(a=!0,r=n,u())})}function Qt(e,a,t){var r,u,n=!1,i="setEventCallback";function o(){n||(n=!0,r=e.usabilla_live,e.usabilla_live(i,c),e.usabilla_live=function(n,e){if(n!==i)return r.apply(null,arguments);u=e})}function c(n,e,t,r,i){try{var o;"Campaign:Page Switch"!==e&&"Feedback:Success"!==e||(o={source:"usabilla"},"Feedback:Success"===e?o.userData=i||{}:"Campaign:Page Switch"===e&&(o.userData=i.data||{},o.userData.id=t),o.userData.action=e,a.emit("vocGetData",o)),u&&u.apply(null,arguments)}catch(n){logger.error("something went wrong while tried to parse usabilla event")}}e.usabilla_live?o():(t.waitForUsabillaObj&&q.waitForObjDefined(e,"usabilla_live",o),t.interceptUsabillaUrl&&a.on("ajax:end",function(n){-1<n.url.indexOf(t.interceptUsabillaUrl)&&n.status<400&&0<n.status&&setTimeout(function(){e.usabilla_live&&o()},100)}))}function Yt(e){var t=Yt.extractTLD(e);function o(n){throw new SyntaxError("Illegal ajax predicate syntax: "+n)}var a={always:function(){return function(){return!0}},never:function(){return function(){return!1}},fqdn:function(){return function(n){n=q.extractHostname(n.url);return!n||n===e}},tld:function(){return function(n){n=q.extractHostname(n.url);return!n||Yt.extractTLD(n)===t}},statusgte:function(n){n||o("Missing required argument 'status'.");var e=parseInt(n);return function(n){return n.status>=e}},urimatches:function(n){n||o("Missing required argument 'pattern'.");var e=new RegExp(n);return function(n){return!1!==e.test(n.url)}},hostmatches:function(n){n||o("Missing required argument 'pattern'.");var t=new RegExp(n),r=window.location.hostname;return function(n){var e=q.extractHostname(n.url),n=j.querySelector("base"),n=n?q.extractHostname(n.href):null,e=e||n||r;return!1!==t.test(e)}},not:function(n){n||o("Missing required arguments.");var e=r(n);return 1!==e.length&&o("Expecting single argument."),function(n){return!e[0](n)}},and:function(n){n||o("Missing required arguments.");var t=r(n);return function(n){for(var e=0;e<t.length;e++)if(!t[e](n))return!1;return!0}},or:function(n){n||o("Missing required arguments.");var t=r(n);return function(n){for(var e=0;e<t.length;e++)if(t[e](n))return!0;return!1}}};function u(n){var e=n.indexOf("(");if(-1<e){for(var t=-1,r=1,i=e+1;i<n.length;i++)if("("===n.charAt(i)&&r++,")"===n.charAt(i)&&0==--r){t=i;break}return-1===t&&o("Missing closing ')'."),[q.trim(n.substring(0,e).toLowerCase()),q.trim(n.substring(e+1,t))]}return[n.toLowerCase()]}function r(n){for(var e,t=[],r=(n||"").split(","),i=0;i<r.length;i++)e=u(q.trim(r[i])),a[e[0]]||o("Unsupported predicate type '"+e[0]+"'."),t.push(a[e[0]](e[1]));return t}a.true=a.always,a.false=a.never,this.create=function(n){if(!n)return a.never();n=u(n);return a[n[0]]||o("Unsupported predicate type '"+n[0]+"'."),a[n[0]](n[1])}}function $t(u,n,e,c){var s={},f=Yt.extractTLD(e),d=function(){return!1},l=u.location.pathname;function h(n){return s[$t.getEntryKey(n)]}return n.on("segmentChanged",function(n){l=n.current}),n.on("event:unload",function(){q.isEmpty(s)||n.emit("ajax:reportStats",function(n){var e,t=[];for(e in n)n.hasOwnProperty(e)&&t.push(n[e]);return t}(s))}),{initConfig:function(n){try{if(c.ajaxRecordStats)return d=n.create(c.ajaxRecordStats),!0}catch(n){logger.error("Error while parsing Ajax predicates from configuration. interception disabled. error:"+n)}return!1},onSend:function(n){var e,t,r,i,o,a;d(n)&&(e={},a=c.ajaxStatsQueryParams&&q.parseQuery(n.url.split("?")[1]),n.queryHash=function(e,t){if(!e)return 0;var r=0;return c.ajaxStatsQueryParams.forEach(function(n){e[n]&&(t[n]=e[n],r=31*(r=31*r+q.hashcode(n))+q.hashcode(e[n]))}),r}(a,e),n.segment=l,(o=h(n))||(t=u.location.href,r=q.extractHostname(n.url)||u.location.hostname,i=q.extractPath(n.url.split("?")[0]),o={fields:{segment:l,sameTLD:0===(a=r).indexOf("/")||f===Yt.extractTLD(a),method:n.method,hostname:r,path:i,refHost:q.extractHostname(t),refPath:q.extractPath(t.split("?")[0]),api:n.api},counters:{},queryParams:e},n=n,o=o,s[$t.getEntryKey(n)]=o))},onLoadEnd:function(n){var e,t,r,i,o,a,u,c,s=h(n);s&&(e=n.resContentType,t=n.reqContentType,0===(c=n.status)&&(c=n.aborted?1:c),r=n,i=s.counters,o=c,a=r.duration,u=parseInt(r.contentLength),n=r.requestLength||0,++(c=(c=i[o])||{count:0,sumDuration:0,sumResponseBytes:0,sumRequestBytes:0,sumTtfb:0,sumDownloadTime:0}).count,c.sumDuration=c.sumDuration+a,c.sumResponseBytes=c.sumResponseBytes+(u||0),c.sumRequestBytes=c.sumRequestBytes+(n||0),c.sumTtfb=c.sumTtfb+(r.ttfb||0),c.sumDownloadTime=c.sumDownloadTime+(r.downloadTime||0),i[o]=c,s=s,t=t,(e=e)&&(s.fields.responseContentType=e),t&&(s.fields.requestContentType=t))}}}function Zt(u,c,s,f,t,r){var d={},l=r.ajaxCaptureRequestCookie||!1;s.on("event:unload",function(){for(var n in d)d.hasOwnProperty(n)&&(d[n].status=0,e(d[n]))},null,-1);function n(){return!1}var h=n,v=n,m=n,g=n,p=n;function y(n,e,t,r,i,o){var a={};return a.startedAt=n.startTime,a.endedAt=n.endTime,a.url=ir.safeEncodeURI(n.url),a.method=n.method,a.requestContent=null,t&&(a.requestContent="string"==typeof n.requestContent?n.requestContent:null),a.requestHeaders=null,e&&(a.requestHeaders=function(n){var e=n.requestHeaders||[];if(l&&(f.extractHostname(n.url)===u.location.host||f.isHostRelativeUrl(n.url)))try{var t=c.cookie;t&&e.push("cookie: "+t)}catch(n){}n.masking&&n.masking.request&&e.push("X-Glassbox-JSMasking: "+n.masking.request);return e.join("\r\n")}(n)||(n.requestContent?"Content-Type: text/plain;charset=utf-8":null)),a.responseHeaders=r,a.responseContent=i,a.responseCompressed=o,a.api=n.api,a.sn=n.sn,a}function e(n){if(delete d[n.uuid],!n.recordingLimitExceeded){var e=m(n),t=e||v(n),r=p(n),i=r||g(n);if(!(i||t||h(n)))return!1;var o=e&&n.hasGzipContentEncoding(),a=e?n.captureContent():null;o&&(a=(e=a)?f.pako.gzip(e):null);var u=y(n,i,r,t?n.fixHeaders():null,a,o);u.lastFocusedSelectorInfo=n.lastFocusedSelectorInfo,u.status=n.status,u.statusText=n.statusText,u.aborted=n.aborted,u.resContentType=n.resContentType,u.reqContentType=n.reqContentType||"text/plain;charset=utf-8",u.requestLength=n.requestLength,u.contentLength=n.contentLength,u.ttfb=n.ttfb,u.downTime=n.downloadTime,i||r||t||a||(u.containOnlyMetaData=!0),setTimeout(function(){s.emit("ajax:loadend",u)},0)}}return{initConfig:function(n){var e=!1;return r.ajaxRecordMetadata&&(h=n.create(r.ajaxRecordMetadata),e=!0),r.ajaxRecordResponseHeaders&&(v=n.create(r.ajaxRecordResponseHeaders),e=!0),r.ajaxRecordResponseBody&&(m=n.create(r.ajaxRecordResponseBody),e=!0),r.ajaxRecordRequestHeaders&&(g=n.create(r.ajaxRecordRequestHeaders),e=!0),r.ajaxRecordRequestBody&&(p=n.create(r.ajaxRecordRequestBody),e=!0),e},onLoad:function(n){n.recordingLimitExceeded||s.emit("ajax:load",y(n))},onError:function(n){n.recordingLimitExceeded||s.emit("ajax:error",y(n))},onSend:function(n){var e;t.allow()?(e=y(d[n.uuid]=n,n.requestHeaders,n.requestContent),n.requestContent&&(e.data=n.requestContent)):n.recordingLimitExceeded=!0},onLoadEnd:e}}function nr(n,e,t,r,i){for(var o in this.api="fetch",this.url=n,this.startTime=r,this.lastFocusedSelectorInfo=i,this.uuid=t,this.init=e||{},this.method=e.method,this.requestHeaders=[],this.masking={},this.sn=ir.nextSn(),e.headers)e.headers.hasOwnProperty(o)&&(this.requestHeaders.push(o+": "+e.headers[o]),"content-type"===o.toLowerCase()&&(this.reqContentType=e.headers[o]))}function er(n,e,t,r,i,o){this.xhr=n,this.uuid=i,this.requestHeaders=[],this.method=t,this.url=e,this.async=r,this.api="xhr",this.ajaxMasker=o,this.masking={},this.sn=ir.nextSn()}function tr(o,a,u,c,s,f,d){if(!o.fetch)return!1;function l(n){return!n||n.includes("json")||n.includes("text")}function h(n){f.getPerformanceResourceEntry(n.url,n),a("onLoadEnd",n)}var e=o.fetch;o.fetch=function(){var n=!1;1<arguments.length&&arguments[1]&&arguments[1].cls_own&&(n=arguments[1].cls_own,delete arguments[1],arguments.length=1);var i=function(n,e){try{var t="object"==typeof n[0]?n[0].url||""+n[0]:n[0],r="object"==typeof n[1]?n[1]:"object"==typeof n[0]?n[0]:{};if(s(t,e)){var i=o.document.activeElement?u.getSelectorInfo(o.document.activeElement):null,i=new nr(c.mask(t),r,f.uuid(),f.currentTimestamp(),i);return r.body&&l(i.reqContentType)&&(i.reqContentType&&i.reqContentType.includes("json")?i.requestContent=d.getJsonContent(i,"request",r.body):i.requestContent=d.maskText(i,"request",r.body),i.requestLength=i.requestContent.length),a("onSend",i),a("onLoadStart",i),i}}catch(n){logger.error("Error while processing fetch request. Error: "+n.message,n)}}(arguments,n);return i?Promise.resolve(e.apply(o,arguments).then(function(n){try{var e;n.bodyUsed||(e=n.clone(),r=e,(t=i).resHeaders=r.headers,t.endTime=f.currentTimestamp(),t.duration=t.endTime-t.startTime,t.status=r.status,t.statusText=r.statusText,t.resContentType=r.headers.get("Content-Type"),t.contentLength=r.headers.get("Content-Length"),t.responseText=null,l(t=e.headers.get("Content-Type"))&&e.ok?(t&&t.includes("json")?e.json().then(function(n){i.responseText=d.getJsonContent(i,"response",n),h(i)}):e.text().then(function(n){i.responseText=d.maskText(i,"response",n),h(i)})).catch(function(){h(i)}):h(i))}catch(n){logger.error("Error while processing fetch request.",n)}var t,r;return n}).catch(function(n){var e,t;return t=n,(e=i).status=0,e.statusText=t.stack,e.duration=f.currentTimestamp()-e.startTime,e.endTime=f.currentTimestamp(),h(e),Promise.reject(n)})):e.apply(o,arguments)}}function rr(n,e,t,r,i,o,a,u){a=a.hookProto(XMLHttpRequest.prototype);function c(n){n.adapter.consumed||(n.adapter.onCompleted(),o.getPerformanceResourceEntry(n.adapter.url,n.adapter),e("onLoadEnd",n.adapter))}function s(){e("onLoad",this.adapter)}function f(){e("onError",this.adapter)}function d(){this.adapter.startTime=o.currentTimestamp(),this.adapter.lastFocusedSelectorInfo=n.document.activeElement?t.getSelectorInfo(n.document.activeElement):null,e("onLoadStart",this.adapter)}function l(){this.adapter&&c(this)}return"onloadend"in new XMLHttpRequest&&(!!(a.setHookBefore("open",function(){var n="object"==typeof arguments[1]?arguments[1].toString():arguments[1];i(n,this.cls_own)&&(n=r.mask(n),this.adapter=new er(this,n,arguments[0],arguments[2],o.uuid(),u),this.addEventListener("load",s,!1),this.addEventListener("error",f,!1),this.addEventListener("loadstart",d,!1),this.addEventListener("loadend",l,!1))})&&a.setHookBefore("send",function(){var n;this.adapter&&(arguments[0]&&("string"==typeof arguments[0]||0<arguments.length&&(!(n=this.adapter.reqContentType)||0<=n.indexOf("json")||0<=n.indexOf("text")))&&(n=arguments[0],n=this.adapter.reqContentType&&0<=this.adapter.reqContentType.indexOf("json")?u.getJsonContent(this.adapter,"request",n):u.maskText(this.adapter,"request",n),this.adapter.requestContent=n,this.adapter.requestLength=n.length),e("onSend",this.adapter))})&&a.setHookBefore("abort",function(){this.adapter&&(this.adapter.aborted=!0,this.status?c(this):(this.adapter.aborted=!0,e("onAbort",this.adapter)))})&&a.setHookBefore("setRequestHeader",function(){this.adapter&&arguments[1]&&(this.adapter.requestHeaders.push(arguments[0]+": "+arguments[1]),"Content-Type"===arguments[0]&&(this.adapter.reqContentType=arguments[1]))}))||(a.revert(),!1))}function ir(i,o,n,a,e,u,c,s,f,d){var t,r,l=[Zt(i,i.document,n,q,e,f),$t(i,n,c,f),(t=n,r=f,{initConfig:function(){return r.interceptThirdPartyAttributes||r.struggleCaptureAjaxErrors||r.recordSpaLoadTime||r.interceptABTesting||r.struggleCaptureDeadClick||r.enableOptimizelyIntegration},onSend:function(n){t.emit("ajax:send",n)},onLoadEnd:function(n){t.emit("ajax:end",n)},onError:function(n){t.emit("ajax:loadError",n)}})],h=[];function v(n,e){for(var t=0;t<h.length;++t)h[t][n]&&h[t][n](e)}function m(n,e){if(!n)return!1;if(e)return!1;if(q.startsWith(n,"data:"))return!1;if(0<=n.indexOf(f.reportURI))return!1;for(var t=n.toLowerCase(),r=0;r<d.length;r++)if(0<=t.indexOf(d[r]))return!1;return!0}this.initialize=function(){try{var n,e=new Yt(c);for(u.init(e),n=0;n<l.length;++n)l[n].initConfig(e)&&h.push(l[n])}catch(n){return logger.error("Error while parsing Ajax predicates from configuration. interception disabled. error:"+n),!1}return t=tr(i,v,a,s,m,q,u),r=rr(i,v,a,s,m,q,o,u),!(!t&&!r);var t,r}}function or(){return parseInt(Pn.get("xhr.cnt")||"0")}function ar(r,i,o){var a=0,u={};this.untrack=function(n){try{var e,t;u[n.pageId]=Math.max(u[n.pageId]||1,n.beaconData.sn),i[n.pageId]&&(e=n.beaconData.eventSetId,(t=i[n.pageId][e].events).length&&(a-=n.beaconData.endIndex-n.beaconData.startIndex,t.splice(n.beaconData.startIndex,n.beaconData.endIndex-n.beaconData.startIndex),r.emit("beacon:storageRemoved",n.beaconData.sn),t.length||delete i[n.pageId][e]))}catch(n){logger.error("Failed removing form memory. Exception message:"+n.message,n)}},this.track=function(n){for(var e,t,r=0;r<n.length;r++)0<(e=o-a)&&(t=n[r],i[t.metadata.pageId]=i[t.metadata.pageId]||{},(i[t.metadata.pageId][t.id]=t).events.length<=e?a+=t.events.length:(a=o,t.events.splice(e)))},this.packageEventSets=function(){var n=function(){var n,e,t={sn:{},eventSets:[]};for(n in i)if(i.hasOwnProperty(n))for(e in t.sn[n]=u[n]!==U?u[n]+1:1,i[n])i[n].hasOwnProperty(e)&&t.eventSets.push(i[n][e]);return t}();return i={},n}}function ur(f,d,l,logger,h,v,m,g){function p(n,e,t,r,i,o){var a,u=!1;n=n||"";var c=l.createXMLHTTPObject(!1,n);if(!c)return logger.error("Failed creating an XMLHttpRequest object"),u=!0,void o();function s(){m.reportPostRetry&&r?(r--,h(e,i,!1,c.status),c.status,c.statusText,p(n,e,t,r,i,o)):(c.abort(),g.emit("clsDebug",function(){var n="Failed POST data for Beacon, sn:"+e+", status:"+c.status;c.statusText&&(n+=", statusText:"+c.statusText);c.requestData&&(n+=", ContentLength:"+c.requestData.length);return n}()),u=!0,o())}m.reportAddUriParamAPI&&(t.extraInfo=t.extraInfo||{},t.extraInfo.api=c.report_api||"xhr"),a=d.apply(t.metadata.reportURI,t.metadata,t.sn,t.extraInfo),r===U&&(r=m.reportMaxRetries),c.onreadystatechange=function(){4===c.readyState?(200===c.status?function(){h(e,i,!0);var n=c.getResponseHeader("Content-Type");n&&-1!==n.indexOf("application/json")&&v(c.response),u=!0,o()}:s)():0===c.readyState&&(m.reportPostRetry&&r?p(n,e,t,--r,i,o):(c.abort(),u=!0,o()))};try{c.open("POST",a,!0),c.onprogress=function(){},c.ontimeout=function(){},c.onerror=function(){},c.withCredentials=!0,f.visitXhr(c),setTimeout(function(){-1!==m.reportAbortAfter&&setTimeout(function(){4!==c.readyState&&(c.abort(),u||o())},m.reportAbortAfter);try{c.send(n)}catch(n){logger.error("Failed sending (in) POST request ("+e+") to url "+a+": "+n.message,n)}},0)}catch(n){logger.error("Failed sending POST request ("+e+") to url "+a+": "+n.message,n),u=!0,o()}}this.name="POST",this.config={maxReportSize:m.maxPostReportSize},this.dispatch=function(n,e,t,r,i){p(n,t,{metadata:e,sn:t,extraInfo:r},U,e.pageId,i)}}function cr(t){var r;this.send=function(n){try{var e=n.eventSets.map(function(n){return n.toJSON?n.toJSON():n});n.eventSets=e,r.postMessage(n)}catch(n){logger.error("error: could not send via port. message:",n.message)}},this.initPorts=function(n){var e=new t.MessageChannel;return(r=e.port1).onmessage=n,e.port2}}function sr(n){!function(n){"use strict";function u(n){return{name:n,value:1<arguments.length&&void 0!==arguments[1]?arguments[1]:-1,delta:0,entries:[],id:"".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),isFinal:!1}}function c(n,e){try{if(PerformanceObserver.supportedEntryTypes.includes(n)){var t=new PerformanceObserver(function(n){return n.getEntries().map(e)});return t.observe({type:n,buffered:!0}),t}}catch(n){}}function t(n){r=!n.persisted}function s(e){var n=1<arguments.length&&void 0!==arguments[1]&&arguments[1];i||(addEventListener("pagehide",t),addEventListener("beforeunload",function(){}),i=!0),addEventListener("visibilitychange",function(n){n=n.timeStamp;"hidden"===j.visibilityState&&e({timeStamp:n,isUnloading:r})},{capture:!0,once:n})}function f(n,e,t,r){var i;return function(){t&&e.isFinal&&t.disconnect(),0<=e.value&&(r||e.isFinal||"hidden"===j.visibilityState)&&(e.delta=e.value-(i||0),(e.delta||e.isFinal||void 0===i)&&(n(e),i=e.value))}}function d(){return void 0===e&&(e="hidden"===j.visibilityState?0:1/0,s(function(n){n=n.timeStamp;return e=n},!0)),{get timeStamp(){return e}}}var e,l,r=!1,i=!1;n.getCLS=function(n){function e(n){n.hadRecentInput||(i.value+=n.value,i.entries.push(n),t())}var t,r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=u("CLS",0),o=c("layout-shift",e);o&&(t=f(n,i,o,r),s(function(n){n=n.isUnloading;o.takeRecords().map(e),n&&(i.isFinal=!0),t()}))},n.getFCP=function(n){var e,t=u("FCP"),r=d(),i=c("paint",function(n){"first-contentful-paint"===n.name&&n.startTime<r.timeStamp&&(t.value=n.startTime,t.isFinal=!0,t.entries.push(n),e())});i&&(e=f(n,t,i))},n.getFID=function(n){function e(n){n.startTime<r.timeStamp&&(t.value=n.processingStart-n.startTime,t.entries.push(n),t.isFinal=!0,o())}var t=u("FID"),r=d(),i=c("first-input",e),o=f(n,t,i);i?s(function(){i.takeRecords().map(e),i.disconnect()},!0):window.perfMetrics&&window.perfMetrics.onFirstInputDelay&&window.perfMetrics.onFirstInputDelay(function(n,e){e.timeStamp<r.timeStamp&&(t.value=n,t.isFinal=!0,t.entries=[{entryType:"first-input",name:e.type,target:e.target,cancelable:e.cancelable,startTime:e.timeStamp,processingStart:e.timeStamp+n}],o())})},n.getLCP=function(n){function e(n){var e=n.startTime;e<o.timeStamp?(i.value=e,i.entries.push(n)):i.isFinal=!0,t()}var t,r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=u("LCP"),o=d(),a=c("largest-contentful-paint",e);a&&(t=f(n,i,a,r),r=function(){i.isFinal||(a.takeRecords().map(e),i.isFinal=!0,t())},(l=l||new Promise(function(e){return["scroll","keydown","pointerdown"].map(function(n){addEventListener(n,e,{once:!0,passive:!0,capture:!0})})})).then(r),s(r,!0))},n.getTTFB=function(e){var t=u("TTFB"),n=function(){try{var n=performance.getEntriesByType("navigation")[0]||function(){var n,e=performance.timing,t={entryType:"navigation",startTime:0};for(n in e)"navigationStart"!==n&&"toJSON"!==n&&(t[n]=Math.max(e[n]-e.navigationStart,0));return t}();t.value=t.delta=n.responseStart,t.entries=[n],t.isFinal=!0,e(t)}catch(n){}};"complete"===j.readyState?setTimeout(n,0):addEventListener("pageshow",n)},Object.defineProperty(n,"__esModule",{value:!0})}(n.webVitals={})}function fr(n){if(n)for(var e in n)"hash"!==e&&(Wn[e]=n[e])}function dr(e){this.encode=function(n){return n.constructor===Array?e.encode(q.arrayToJsonSafe(n)):e.encode(JSON.stringify(n))},this.decode=function(n){return JSON.parse(e.decode(n))}}function lr(n,f){var e=(n=n||{}).domMaskingMode===M.censorMode.WhiteList,t=n.valueMaskingMode===M.censorMode.WhiteList;function r(n,e,t,r,i,o){var a,u,c=[],s=[];if(t)for(a=0;a<t.length;a++)s.push(t[a]);if(n)for(a=0;a<n.length;a++)1===(c=(u=CSS.escape(n[a])).split("\\*")).length?s.push("#"+u):2===c.length?s.push(lr.prepareWildCardSelector(c,"id")):f.printErrorMsg("more than one wildcard in id list");if(e)for(a=0;a<e.length;a++)1===(c=(u=CSS.escape(e[a])).split("\\*")).length?s.push("."+u):2===c.length?s.push(lr.prepareWildCardSelector(c,"class")):f.printErrorMsg("more than one wildcard in class list");if(0===s.length)return o&&i?(s.push("["+i+"]"),s):null;if(r)return s.map(function(n){var e=n.split("][");return 2===e.length?":not("+e[0]+"]):not(["+e[1]+")":":not("+n+")"}).join("");o=i?hr(s,i,o):s.join(",");return f.validateSelector(o)?o:null}this._domMaskingMode=n.domMaskingMode,this._maskedAttributes=q.immutableSet.apply(null,n.domMaskedAttributes),this._maskedAttributesTags=q.immutableSet.apply(null,(n.domMaskAttributesTags||[]).map(function(n){return n.toUpperCase()})),this._ignoreMaskByAttribute=n.domMaskIgnoreAttribute,this._selectorsByMaskingType={},this._selectorsByMaskingType[Jn.TEXT]={selector:r(n.domMaskIds,n.domMaskClasses,n.domMaskSimpleSelector,!1,n.domMaskIgnoreAttribute,e),doInvert:this._domMaskingMode===M.censorMode.WhiteList},this._selectorsByMaskingType[Jn.OMIT]={selector:r(n.domOmitIds,n.domOmitClasses),doInvert:!1},this._selectorsByMaskingType[Jn.VALUE_ATTRIBUTE]={selector:"input"+r(n.valueMaskIds,["cls_mask"].concat(n.valueMaskClasses||[]),!1,t,n.valueMaskIgnoreAttribute,e),doInvert:!1},this._selectorsByMaskingType[Jn.ATTRIBUTE]={selector:function(n,e,t){if(0===n.length||0===e.length)return null;var r,i,o=[];for(r=0;r<e.length;r++)for(i=0;i<n.length;i++)o.push(e[r]+"["+n[i]+"]");return t?hr(o,t,!1):o.join(",")}(n.domMaskedAttributes||[],n.domMaskAttributesTags||[],n.domMaskIgnoreAttribute),doInvert:!1},this._unmaskableTags=q.immutableSet("TITLE","SCRIPT")}function hr(n,e,t){e=1===n.length?t?(n.push("["+e+"]"),n.join(",")):(n[0]=n[0]+":not(["+e+"])",n):t?n.push("["+e+"]").join(","):n.join(":not(["+e+"]),");return e}function vr(){var n=H.valueMaskingMode===M.censorMode.WhiteList,e=H.domMaskingMode===M.censorMode.WhiteList;return new lr({valueMaskingMode:H.valueMaskingMode,valueMaskIds:n?H.maskWhitelistValueById:H.maskBlacklistValueById,valueMaskClasses:n?H.maskWhitelistValueByClass:H.maskBlacklistValueByClass,valueMaskIgnoreAttribute:H.valueMaskIgnoreAttribute,domMaskingMode:H.domMaskingMode,domMaskIds:e?H.domWhitelistMaskContentById:H.domBlacklistMaskContentById,domMaskClasses:e?H.domWhitelistMaskContentByClass:H.domBlacklistMaskContentByClass,domOmitIds:H.domMaskOmitById||H.domOmitById,domOmitClasses:H.domMaskOmitByClass||H.domOmitByClass,domMaskedAttributes:H.domMaskedAttributes,domMaskAttributesTags:H.domMaskAttributesByTag,domMaskIgnoreAttribute:H.domMaskIgnoreAttribute,domMaskSimpleSelector:e?H.domWhitelistMaskSimpleSelector:H.domBlacklistMaskSimpleSelector},$e())}function mr(n){this._cookieMaskSet=n&&n.cookieMask?q.immutableSet.apply(null,n.cookieMask):null}function gr(n,e,t,o,r){r=r||{},this._encryptionSelector=function(n,e){var t,r=[];if(n)for(t=0;t<n.length;t++)r.push("#"+n[t]);if(e)for(t=0;t<e.length;t++)r.push("."+e[t]);if(0===r.length)return null;var i=r.join(",");return o.validateSelector(i)?i:null}(r.domEncryptIds,r.domEncryptClasses),this._unEncryptableTags=q.immutableSet("TITLE","SCRIPT"),this._encryptionUtils=e,this._maskingUtils=t,this._events=n,this._shouldFallback=!1}function pr(i){var o,a=i.length;this.onStart=function(n,e){for(o=0;o<a;o++)i[o].onStart(n,e)},this.onEnterElement=function(n,e){var t,r;for(o=0;o<a;o++)r=i[o].onEnterElement(n,e),t=t||r;return t},this.onLeaveElement=function(n,e){for(o=0;o<a;o++)i[o].onLeaveElement(n,e)},this.onEnd=function(){for(o=0;o<a;o++)i[o].onEnd()}}function yr(n,e){this._node=n,this._predicate=e,this._childIndex=-1}function wr(m,t,g,r,p,i,y,w,b,E,o,C){var T=!!m.ShadowRoot;this.clone=function(n,u,c,s){var f={},d=0,l=g.clonerDoc.createElement("gb-root"),h=r.createFuse(),v=!C||s||s===U;if(i.visit(n,function(n,e){if(h.blown)return!0;!v&&(n&&n.nodeType===Node.TEXT_NODE||C&&!s&&q.isVisible(n))&&(v=!0);var t,r=!0,i=p.idOf(n);if(T&&n instanceof m.ShadowRoot?t=g.clonerDoc.createElement("gb-shadow"):(t=u&&u(n,e)||y&&y(n,e))?r=!1:t=g.cloneNode(n),t){if(c&&c(t,n),w&&w(t,n),b&&n&&n.getRootNode&&n.nodeType!==Node.DOCUMENT_NODE){var o=function(r,i,o,a){var u=[];{var n,c;r.getRootNode().adoptedStyleSheets&&(r===r.getRootNode()||r.adoptedStyleSheets||"HEAD"===r.nodeName)&&(n=r.adoptedStyleSheets||r.getRootNode().adoptedStyleSheets,c=r===r.getRootNode()?i:o.idOf(r),n&&n.length&&n.forEach(function(n){var e=q.createAssociatedCss(n,i,c),t=o.idOf(e);n._gbRemoveId&&e.setAttribute("gbRemoveId",n._gbRemoveId),n.gbRealId=c,n._gbRemoveId=t,e.setAttribute("gbid",n._gbRemoveId),n.gbAssociateIds&&!n.gbAssociateIds[i]?n.gbAssociateIds[i]=!0:n.gbAssociateIds||(n.gbAssociateIds={},n.gbAssociateIds[i]=!0),a[i]=r.getRootNode(),u.push(e)}))}return u}(n,i,p,E);if(o.length)for(var a=0;a<o.length;++a)t.appendChild(o[a])}(n.shadowRoot||n.childNodes&&n.childNodes.length)&&(f[i]=t);i=n.parentNode||n.host;(i&&f[p.idOf(i)]||l).appendChild(t)}return n&&n.nodeType===Node.ELEMENT_NODE&&d++%100==0&&h.onElementsCloned(d),r&&!h.blown}),1<l.childNodes.length&&(t.emit("clsDebug","Error: NodeCloner, cloneRoot.childNodes have more then one child"),o))for(var e=0;e<l.childNodes.length;++e)if("HTML"===l.childNodes[e].nodeName)return l.childNodes[e];return v?l.lastChild:{error:"page is empty or not visible"}}}function br(c,s,f){f=q.optionsWithDefaults(f,{crossShadow:!1}),this.visit=function(n,e,t){var r,i=t?"children":"childNodes",o=n,a=[o],u={};for(s.onStart(n,u);a.length;)if((o=a.pop()).isParentMarker)s.onLeaveElement(o.parent,u);else if(c(o)&&!1!==e(o,u)){if(o[i]&&o[i].length)for(s.onEnterElement(o,u)&&a.push({parent:o,isParentMarker:!0}),r=o[i].length-1;0<=r;r--)a.push(o[i][r]);f.crossShadow&&o.shadowRoot&&a.push(o.shadowRoot)}s.onEnd()}}function Er(r,n,i){i=q.optionsWithDefaults(i,{expireAfter:100,byCtor:[]});var o={};n.on("domTrackingStarted",function(){setTimeout(function(){o={}},i.expireAfter)}),this.clonerHook=function(n,e){for(var t=0;t<i.byCtor.length;t++)if(e instanceof r[i.byCtor[t]]){o[i.byCtor[t]]||(o[i.byCtor[t]]=[]),o[i.byCtor[t]].push(e);break}},this.consumeByCtor=function(n){var e=o[n];return delete o[n],e||[]}}function Cr(n,e){n.rules&&0<n.rules.length&&(q.ensureProperty(e,"cssRuleChanges").rules=n.rules)}function Tr(n,e){n.rules&&0<n.rules.length&&(q.ensureProperty(e,"animationApply").rules=n.rules)}function Sr(n,e,t,r,i){if(void 0!==r.characterDataChild){var o=function(n,e){for(var t,r=-1,i={nodeIndex:-1,hasElements:!1,mergedTextContent:""};t=n.next();)r++,t.nodeType!==Node.TEXT_NODE?i.hasElements=!0:i.mergedTextContent+=t.textContent,t===e&&(i.nodeIndex=r);return i}(n(r.element),r.characterDataChild);if(0<=o.nodeIndex){n=o.hasElements?r.characterDataChild.textContent:o.mergedTextContent;e&&e.isDomMasked(r.element,Gn.SELF_OR_ANY_PARENT,Jn.TEXT)?n=z.censorValueOf(n):t&&t.isDomEncrypted(r.element,Gn.SELF_OR_ANY_PARENT)&&(n=t.encrypt(n));r=q.ensureProperty(i,"domChanges",r.id);return r.characterData={value:n,child:o.hasElements?o.nodeIndex:0},r}}}function kr(u,n){n=n||{};var c=q.immutableSet("checkbox","radio"),s=q.immutableSet.apply(null,n.ignoredFormElement||[]);var f={INPUT:"inputs",SELECT:"selects",TEXTAREA:"textareas"};return function(n,e){var t;if((i=n.element,!s[q.getElementId(i)])&&(n.properties&&0<n.properties.length)){var r,i=f[n.element.tagName];if(i){for(var o=q.ensureProperty(e,i,n.id),a=0;a<n.properties.length;a++)r=n.element,t=n.properties[a],o[r="SELECT"===r.tagName?"selectedIndex":"INPUT"===r.tagName&&c[r.getAttribute("type")||""]?"checked":t]=(t=n.element,r=r,u&&"value"===r?u.censor(t):t[r]);return o}}}}function Ir(n,r){var i,e;n.WebSocket&&(i=n.WebSocket,((e=function(n,e){var t=e?new i(n,e):new i(n);try{t.addEventListener("message",r)}catch(n){logger.error("failed intercepting WebSocket constructor: "+n.message,n)}return t}).prototype=i.prototype).constructor=i,e.CONNECTING=0,e.OPEN=1,e.CLOSING=2,e.CLOSED=3,n.WebSocket=e)}function xr(t,r,i,o,a,u){var n,e=!1,c=null;function s(n){for(var e=0;e<n.length;e++)if(a(n[e]))return;return 1}void 0!==t.MutationObserver?c=t.MutationObserver:void 0!==t.WebKitMutationObserver&&(c=t.WebKitMutationObserver);function f(n){var e=n.target;if(a(e)&&q.isAttachedToDOM(e)){if("characterData"===n.type&&e instanceof CharacterData&&(e=e.parentNode||e),"childList"===n.type){if(s(n.addedNodes)&&s(n.removedNodes))return;var t=function(n){for(var e=[],t=0;t<n.length;t++)q.isAttachedToDOM(n[t])&&e.push(n[t]);return e.length===n.length?U:e}(n.addedNodes);if(t){if(!t.length&&!n.removedNodes.length)return;n={type:n.type,target:n.target,actualTarget:n.actualTarget,addedNodes:t,removedNodes:n.removedNodes}}}n.actualTarget=e,i.throttle(n)||"attributes"===n.type&&"class"===n.attributeName&&n.target.classList&&n.target.classList.value===n.oldValue||(0<=u.delayDomMutationEvent?setTimeout(function(){r.emit("domMutation",n)},u.delayDomMutationEvent):r.emit("domMutation",n))}}var d={attributes:!0,childList:!0,characterData:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:u.domTamperingDetectionEnabled||!1};u.domFilterAttributes&&u.domFilterAttributes.length&&(d.attributeFilter=u.domFilterAttributes),this.getName=function(){return"MutationObserver based"},this.supported=function(){return null!==c},this.start=function(){if(!e){if(!n){if(!c)throw new Error("cannot start DomObserver: native interface not supported by the browser.");n=new c(function(n){n.forEach(f)})}n.observe(o,d),e=!0}},this.stop=function(){n.disconnect()},this.n=function(){if(c&&t.navigator.userAgent.match(/Trident\/(\d+)/)){var n=new c(function(n){});n.observe(o,{childList:!0,subtree:!0});var e=(new DOMParser).parseFromString("<?xml version='1.0' encoding='UTF-8'?><test><![CDATA[-5153879911146088898:4982669000430465522]]></test>","text/xml");return n.disconnect(),1<e.firstChild.childNodes.length}return!1}}function Mr(u,c,e,s){var t=!1,r=function(n){var e,t,r,i=[],o=[],a=n.type;if("DOMNodeInserted"===n.type){if(e="childList",t=n.target.parentNode,t&&(i.push(n.target),!s(n.target)))return}else if("DOMNodeRemoved"===n.type){if(e="childList",t=n.target.parentNode,t&&(o.push(n.target),!s(n.target)))return}else if("DOMCharacterDataModified"===n.type)e="characterData",t=n.target.parentNode;else{if("DOMAttrModified"!==n.type)return;e="attributes",t=n.target,r=n.attrName}s(t)&&t&&(o={origType:a,type:e,target:n.target,actualTarget:t,attributeName:r,addedNodes:i,removedNodes:o},c.throttle(o)||u.emit("domMutation",o))};this.getName=function(){return"DOM events based"},this.supported=function(){return"undefined"!=typeof MutationEvent},this.start=function(){var n;t||(n=e,q.addEventHandler(n,"DOMNodeInserted",r,!1),q.addEventHandler(n,"DOMCharacterDataModified",r,!1),q.addEventHandler(n,"DOMNodeRemoved",r,!1),q.addEventHandler(n,"DOMAttrModified",r,!1),t=!0)},this.stop=function(){e.removeEventListener("DOMNodeInserted",r,!1),e.removeEventListener("DOMCharacterDataModified",r,!1),e.removeEventListener("DOMNodeRemoved",r,!1),e.removeEventListener("DOMAttrModified",r,!1)},this.isActive=function(){return t}}function Rr(e,t,r){var i;t.on("init:loaded",function(){i=r.maskTitle?q.transformTextSegments(e.title,z.censorValueOf):e.title}),t.on("domMutation",function(){var n;n=!i||i===e.title||r.maskTitle&&q.transformTextSegments(e.title,z.censorValueOf)===i,i=r.maskTitle?q.transformTextSegments(e.title,z.censorValueOf):e.title,n||setTimeout(function(){t.emit("titleChanged")},0)})}function Ar(n,i,o,a,u,c,s){var f="page is empty or not visible",d=i.doctype?(i.doctype,(n.XMLSerializer?(new XMLSerializer).serializeToString(i.doctype):"<!DOCTYPE html>")+"\n"):"";this.take=function(n,e){if(null===i.body)return U;q.currentTimestamp();try{var t=o.cloneNode(i.documentElement,s,c,e);if(t.error===f)return{error:this.lastError=f};var r=d+t.outerHTML,t=a?a.maskCookie(i.cookie):i.cookie;return new Nr(r,u.mask(i.referrer),n,t,i.characterSet)}catch(n){return logger.error("could not obtain page snapshot. error: "+n),this.lastError=n,U}finally{q.currentTimestamp()}}}function Nr(n,e,t,r,i){this.html=n,this.referrer=e,this.seq=t,this.charset=i,this.cookie=r}function Dr(c,s,f){f=f||{},c=c||[];var d=0;this.getSnapshot=function(){for(var n,e,t,r,i,o={timestamp:d++,propertiesMode:"modifiedOnly",version:f.tokenizationVersion},a=0,u=0;u<c.length;u++){for(n in i=0,e=(r=c[u]).tracker.track())t=e[n],function(n,e,t){if(!e.removed){for(var r,i=!1,o=0;o<n.length;o++)(r=n[o](e,t))&&!i&&(r.selector=s.getSelectorInfo(e.element,!1).selector,i=!0);return 1}}(r.providers,t,o)&&i++;a+=i}return o=0===a?U:o},this.start=function(){for(var n=0;n<c.length;n++)c[n].tracker.start()},this.addBundle=function(n){c.push(n)},this.removeBundle=function(n){for(var e=c.length-1;0<=e;e--)if(c[e].tracker.getTarget()===n){c.splice(e,1);break}}}function Or(n,e,t){this.element=n,this.id=e,this.addedNodes={},this.adoptedStyles=[],this._nodeCache=t}function _r(n,o){var r={},a={},u=0;function c(n){var e=o.idOf(n),t=r[e];return t||(t=new Or(n,e,o),r[e]=t),t}function e(n){var e=u++,t=c(n.actualTarget);if("characterData"===n.type)t.characterDataChild=n.target;else if("childList"===n.type){if(t.childListOrdinal=e,n.addedNodes.length)for(var r,i=0;i<n.addedNodes.length;i++)r=o.idOf(n.addedNodes[i]),a[r]=!0,t.onNodeAdded(r),n.adoptedStyle&&t.adoptedStyles.push(n.addedNodes[i])}else"attributes"===n.type&&(t.attributes||(t.attributes={}),t.attributes[n.attributeName]=e)}n.on("shadow:rootAttached",function(n){var e=o.idOf(n),n=c(n.host);n.childListOrdinal=u++,a[e]=!0,n.onNodeAdded(e)}),this.start=function(){n.on("domMutation",e)},this.track=function(){var n=r;return function(){var n,e,t;for(n in r)if(r.hasOwnProperty(n)&&!(t=r[n]).removed){for(e=t.element;e.parentNode;){if(a[o.idOf(e)]){t.removed=!0;break}e=e.parentNode}t.removed||e.nodeType===Node.DOCUMENT_FRAGMENT_NODE||e.nodeType===Node.DOCUMENT_NODE||(t.removed=!0,0)}}(),u=0,r={},a={},n},this.getTarget=function(){return!1}}function Lr(l,h,v){var m=!0,g={};v=q.immutableSet.apply(null,v||[]);this.start=function(){},this.track=function(){for(var n,e,t,r,i,o,a,u,c={},s={},f=l.querySelectorAll("input,select,textarea"),d=0;d<f.length;d++)(a=f[d]).id&&v[a.id]||"hidden"===a.getAttribute("type")||(n=h.idOf(f[d]),e=f[d],t=n,r=c,a=o=i=void 0,(a=Lr.propertyForElement(e))&&(i=(g[t]||{})[a],o=e[a],(m?o!==Lr.defaultValue(e,a):i!==o)&&(r[t]||(r[t]=new Or(e,t,h),r[t].properties=[]),r[t].properties.push(a)),(r={})[a]=o,g[t]=r),s[n]=!0);for(u in g)s[u]||delete g[u];return m=!1,c},this.getTarget=function(){return l}}function Fr(n,r){var e,i,t,o,a=[];e=n.CSSStyleSheet.prototype,i=e.insertRule,e.insertRule=function(){var n=i.apply(this,arguments);try{var e=arguments[0];this.gb_css_rules?this.gb_css_rules+=e:this.gb_css_rules=e;var t=r.idOf(this.ownerNode);a.push({selector:""+t,type:"added",rule:e,index:n})}catch(n){logger.error("Exception occurred during CSS insertRule interception. Error: "+n.message,n)}return n},t=n.CSSStyleSheet.prototype,o=t.deleteRule,t.deleteRule=function(){try{var n,e=arguments[0];this.cssRules[e]!==U&&(n=r.idOf(this.ownerNode),a.push({selector:""+n,type:"deleted",index:e}))}catch(n){logger.error("Exception occurred during CSS deleteRule interception. Error: "+n.message,n)}return o.apply(this,arguments)},this.start=function(){},this.track=function(){var n={};return a.length&&(n.cssRules={rules:a}),a=[],n},this.getTarget=function(){return!1}}function Pr(n,t){var e,r,i,o,a=[],u={};n.Animation&&(i=n.Animation.prototype,(o=i.play)&&(i.play=function(){var n,e=o.apply(this,arguments);try{this.effect&&(n=t.idOf(this.effect.target),u[n]&&a.push({selector:""+n,type:"animate",rule:[u[n],this.effect.getTiming()]}))}catch(n){logger.error("Exception occurred during animation interception. Error: "+n.message,n)}return e}),e=HTMLElement.prototype,r=e.animate,e.animate=function(){var n=r.apply(this,arguments);try{var e=t.idOf(this);u[e]=arguments[0]}catch(n){logger.error("Exception occurred during animation interception. Error: "+n.message,n)}return n}),this.start=function(){},this.track=function(){var n={};return a.length&&(n.cssRules={rules:a}),a=[],n},this.getTarget=function(){return!1}}function Br(n,o,c){var s={},f={},d={throttledMutations:0,throttledAddedNodes:0};function l(n){var e=c.idOf(n);if(s[e]){delete s[e];for(var t=[],r=n.childNodes||[],i=0;i<r.length;i++)r[i]._gbPending&&(delete r[i]._gbPending,t.push(r[i]));o.emit("domMutation",{origType:"childList",type:"childList",target:n,actualTarget:n,addedNodes:t,removedNodes:[]})}}this.throttle=function(n){var e,t,r,i=c.idOf(n.actualTarget),o=q.isVisible(n.actualTarget);if("childList"!==n.type||(e=n.actualTarget,t=n.addedNodes,r=n.removedNodes,e.ownerDocument.head.contains(e)||a(t||[])||a(r||[]))||o)return f[i]&&o&&function(n,e){for(var t,r,i=[n];i.length;)if(e(n=i.shift()),r=c.idOf(n),n.children&&f[r])for(delete f[r],t=0;t<n.children.length;t++)i.push(n.children[t])}(n.actualTarget,l),!1;function a(n){for(var e=0;e<n.length;e++)if("STYLE"===n[e].tagName)return 1}for(var u=0;u<n.addedNodes.length;u++)n.addedNodes[u]._gbPending=!0;return s[i]=!0,d.throttledAddedNodes+=n.addedNodes.length,d.throttledMutations++,function(n){for(;n;)f[c.idOf(n)]=!0,n=n.parentNode}(n.actualTarget),!0}}function jr(n){if("LINK"===n.tagName&&"import"===n.getAttribute("rel")){for(var e,t,r,i,o=n.import,a=[],u="",c={};o;){if((r=o.querySelectorAll("style")).length)for(e=0;e<r.length;e++)u+=r[e].textContent;for(i=o.querySelectorAll("link[rel='import']"),t=0;t<i.length;t++)i[t].import&&!c[i[t].href]&&(a.push(i[t].import),c[i[t].href]=!0);o=a.pop()}if(u){var s=n.ownerDocument.createElement("style");return s.textContent=u,s.setAttribute("gb-imported-from",n.href),s}}}function Ur(n){if("STYLE"===n.tagName&&n.ownerDocument){var e=n.ownerDocument.createElement("style");if(n.sheet){var t,r=n.sheet.cssRules,i="";if(r&&r.length)for(t=0;t<r.length;t++)"string"==typeof r[t].cssText&&(i+=r[t].cssText);e.textContent=i}return e}}function Hr(n){if("STYLE"===n.tagName){var e=n.ownerDocument.createElement("style");if(e.textContent=(n.textContent||"")+(n.gb_css_rules||""),!e.textContent&&n.sheet){var t,r=n.sheet.cssRules;if(r&&r.length)for(t=0;t<r.length;t++)"string"==typeof r[t].cssText&&(e.textContent+=r[t].cssText)}return e}}function Vr(i){i=i||{};var o=/(url\()?"?data:image\/(png|jpe?g);[a-zA-Z0-9\D]*;?base64/,a=/(background-image:)( *)(url\()?(")?"?data:image\/(png|jpe?g);[a-zA-Z0-9\D]*;?(base64,).*(\s)*?(?=\))\)*;*/;return function(n,e,t){if(i[n.tagName]){if("IMG"===n.tagName&&n.src)return o.test(n.src)?t?"":(n.src="",void n.setAttribute("gb-dataremoved","")):n.src;if("STYLE"===n.tagName&&o.test(n.innerText))return t?n.innerText.replace(a,"").replace(/(\r\n|\n|\r)/gm,""):(n.innerText=n.innerText.replace(a,"").replace(/(\r\n|\n|\r)/gm,""),void n.setAttribute("gb-dataremoved",""));var r=n.getAttribute("style");return r?a.test(r)?t?r.replace(a,""):(n.style.backgroundImage="",void n.setAttribute("gb-dataremoved","")):r:void 0}}}function qr(n,e){var t,r;"SELECT"===n.tagName&&(t=e.selectedIndex,(r=n.getElementsByTagName("option")).length?r[t]&&r[t].setAttribute("selected",""):(r=e.getElementsByTagName("option"))[t]&&(r[t]._gbselected=!0)),"OPTION"===n.tagName&&e._gbselected&&n.setAttribute("selected","")}function zr(e){return{tokenForClonedNode:function(n){return(n&&n.nodeType===Node.TEXT_NODE?"text:":"el:")+(n=n,q.DOMElement2Str(n))},tokenForNode:function(n){return n&&n.nodeType===Node.TEXT_NODE?"text-ref:"+q.hashcode(n.textContent):"id:"+e.idOf(n)}}}function Wr(n,e,t,r,i){var o=(i=i||{}).domThrottle||i.domThrottleIEOnly&&n.MSInputMethodContext&&n.document.documentMode?new Br(0,e,_):{throttle:function(){return!1}},a=new xr(n,e,o,t,r,{domTamperingDetectionEnabled:i.domTamperingDetectionEnabled,delayDomMutationEvent:i.delayDomMutationEvent,domFilterAttributes:i.domFilterAttributes});return a.supported()?!i.domIE11ForceMutationObserver&&a.n()&&(a=new Mr(e,t,r)):a=i.semiDomEnabled?U:new Mr(e,o,t,r),a}function Xr(t){var r=[];return{name:"postMessage",sendMessageWithTransferable:function(n,e,t){var r=e.value.transferable;return delete e.value.transferable,n.postMessage(e,t,[r])},sendMessage:function(n,e,t){return n.postMessage(e,t)},onMessage:function(e){function n(n){e(n)&&n.stopImmediatePropagation()}return r.push(n),q.addEventHandler(t,"message",n)},close:function(){for(var n=0;n<r.length;n++)t.removeEventListener("message",r[n]);r=[]}}}function Gr(r,n,i){var t=[],o=r.location.origin||q.extractOrigin(r.location.href);return n.triggerMessage=function(n){for(var e=0;e<t.length;e++)t[e](n)},{name:"direct",sendMessage:function(n,e){var t;!function(n){try{return void n.location.href}catch(n){return 1}}(n)?(t=n[i])&&t.triggerMessage?setTimeout(function(){t.triggerMessage({source:r,data:e,origin:o})},0):iframeHelper.logError("failed sending message over direct channel: remote facade is invalid."):iframeHelper.logError("failed sending message over direct channel: cross origin.")},onMessage:function(n){t.push(n)},close:function(){t=[]}}}function Jr(r,e,i,o){var a={};function u(n){return!iframeHelper.isCrossOriginFrame(n,e.location.origin)&&function(n){try{return n.contentWindow.location.href,!0}catch(n){return!1}}(n)}function t(n){n.contentWindow.addEventListener("unload",function(){i.emit("frame:unload",{sameOrigin:u(n),frame:n})})}function c(n){var e=u(n.target);e&&t(n.target),i.emit("frame:load",{sameOrigin:e,frame:n.target})}function s(n,e){a[o.idOf(n)]={visible:"none"!==r.getComputedStyle(n).display,sameOrigin:e}}i.on("frame:domChange",function(n){var e,t;"style"===n.attributeName&&(e="none"!==r.getComputedStyle(n.target).display,t=o.idOf(n.target),a[t]||s(n.target,u(n.target)),a[t].visible!==e&&i.emit("frame:visibilityChange",{visible:e,frame:n.target,sameOrigin:a[t].sameOrigin}),a[t].visible=e)}),this.wireFrame=function(n){var e=u(n);return n._gbWired||(n.addEventListener("load",c),s(n,e),e&&t(n),n._gbWired=!0,i.emit("frame:wired",{sameOrigin:e,frame:n})),e}}function Kr(e,n,t,r,i){i=q.optionsWithDefaults(i,{skipHidden:!0,forceDirectChannel:!1,skipWhenLocationContains:[],injectionMode:M.iframesAutoInjectMode.BlackList});var o,a,u,c,s=(o=t.getAttribute("id"),a=q.toAbsoluteUrl(t.getAttribute("src")),function(n){n=n.createElement("script");return n.setAttribute("type","text/javascript"),o&&n.setAttribute("id",o),n.setAttribute("src",a),n.setAttribute("data-clsautoinjected","true"),n}),f=(u=n,function(){var n=q.shallowExtend({},u);return n.storageBackedReporting=!0,n.iframesParentOrigin=e.location.origin||q.extractOrigin(e.location.href),i.forceDirectChannel&&(n.iframesDirectChannel=!0),n.idleEventTimeInterval=-1,n});function d(n){return(!i.skipHidden||!ne.hidden(n))&&(!(!n.contentDocument||!n.contentDocument.body.hasChildNodes())&&("about:blank"!==n.contentWindow.location.href&&(function(n,e){for(var t=e===M.iframesAutoInjectMode.BlackList,r=0;r<i.skipWhenLocationContains.length;r++)if(0<=n.indexOf(i.skipWhenLocationContains[r]))return t;return!t}(n.contentWindow.location.href,i.injectionMode)?(n.contentWindow.location.href,!1):"complete"===n.contentDocument.readyState)))}function l(e){try{return d(e)&&(!(t=(n=e).contentWindow)[r]&&(t._cls_config_forced=f(),t.document.head.appendChild(s(t.document)),n._gbInjected=!0,c&&setTimeout(c.gbBind(null,n,!0),0),!0))}catch(n){return iframeHelper.logError("failed injecting frame window. error:"+n),c&&c(e,!1),!1}var n,t}this.inject=l,this.setInjectionCallback=function(n){c=n}}function Qr(n,e){var r,i={};e.onMessage(function(e){var n=e.data.message,t=i[n];if(t){try{r=e.ports&&e.ports[0],t(e.source,e.data.value,e.origin,r)}catch(n){iframeHelper.logError("message (origin:"+e.origin+") handler raised an error.",n)}return!0}return!1}),this.onMessage=function(n,e){i[n]=e}}function Yr(n,o,a){a=a||"*";var u=q.immutableSet("javascript:","data:");this.send=function(n,e,t,r){var i;r=(i=r)&&!u[i]?r:a,t.transferable?o.sendMessageWithTransferable(n,{message:e,value:t},r):o.sendMessage(n,{message:e,value:t},r)}}function $r(i,r,n,o,a){a=q.optionsWithDefaults(a,{mscThrottle:300,disabled:!1});var u=!1,c={},s=a.framesetRecordEnabled?"iframe,frame":"iframe";function f(n,e,t){n&&i!==n&&r.send(n,"frame:notification",e,t)}function d(n,e){if(e.propagate)for(var t=i.document.querySelectorAll(s),r=0;r<t.length;r++)n!==t[r].contentWindow&&t[r]._gbHandshakeCompleted&&f(t[r].contentWindow,{type:e.type,args:e.args,propagate:!0});e.bubble&&u&&f(i.parent,{type:e.type,args:e.args,bubble:!0,propagate:!0})}n.onMessage("frame:notification",function(n,e,t,r){e.type,!function(n){if("onFramePort"!==n){var e=q.currentTimestamp(),t=c[n];if(t&&e-t<a.mscThrottle)return 1;c[n]=e}}(e.type)?(r&&(r.postMessage({type:"ack"}),e.args&&(e.args.port=r)),o[e.type]&&o[e.type](e.args),d(n,e)):(e.type,i.location.href)}),this.onParentHandshake=function(){u=!0},this.notify=function(n,e,t){a.disabled||f(n,{type:e.type,args:e.args,transferable:e.transferable},t)},this.notifyAll=function(n){a.disabled||d(U,{type:n.type,args:n.args,propagate:!0,bubble:!0})}}function Zr(n,e,t,r,i,o,a){this.domTrackingStarted=function(){e().ensureStarted()},this.pageUpdate=function(){t()},this.forceFlush=function(){n.emit("forceFlush")},this.onPossibleBlackoutEnter=i.onPossibleBlackoutEnter,this.onPossibleBlackoutLeave=i.onPossibleBlackoutLeave,this.forceBlackoutEnter=r.forceBlackoutEnter,this.forceBlackoutLeave=r.forceBlackoutLeave,this.queryParamUpdate=o,this.onFramePort=a}function ni(t,o,n){var a={IFRAME:!0,FRAME:!!n},u=n?"iframe,frame":"iframe";function c(n){o.emit("frame:detected",n)}function r(n){if("childList"===n.type){for(var e=[],t=0;t<n.addedNodes.length;t++)a[n.addedNodes[t].tagName]?e.push(n.addedNodes[t]):"function"==typeof n.addedNodes[t].getElementsByTagName&&Array.prototype.push.apply(e,n.addedNodes[t].querySelectorAll(u));for(t=0;t<e.length;t++)c(e[t]);e.length&&e.length}else"attributes"===n.type&&a[n.actualTarget.tagName]&&(a[n.actualTarget.tagName]||"function"==typeof n.actualTarget.getElementsByTagName&&0<n.actualTarget.querySelectorAll(u).length)&&(r=n.actualTarget,i=n.attributeName,o.emit("frame:domChange",{target:r,attributeName:i}));var r,i}this.start=function(){for(var n=t.querySelectorAll(u),e=0;e<n.length;e++)c(n[e]);n.length,o.on("domMutation",r)}}function ei(u,c,s,f,n,d,l,r){var i,h,o,v=(r=r||{containerIdAttribute:"gb_cid",mscTimeout:r.mscTimeout||2e3}).framesetRecordEnabled?"iframe,frame":"iframe";this.perform=function(n,e,t){i=e,f.send(n,"child:hello",{pageId:c.id}),-1!==r.mscTimeout&&(o=setTimeout(t,r.mscTimeout))},this.setParentCallback=function(n){h=n},n.onMessage("child:hello",function(n,e,t){for(var r,i=u.querySelectorAll(v),o=0;o<i.length;o++)if(n===i[o].contentWindow){r=i[o];break}if(!r)return e.pageId,void(h&&h());var a=d(r);h&&h(a,e.pageId),r._gbHandshakeCompleted=!0,f.send(r.contentWindow,"parent:hello",{sessionId:l.sessionId,visitorId:l.visitorId,containerId:a,parentPageId:c.id,parentPageName:c.name,parentUnderBlackout:s.isUnderBlackout()},t)}),n.onMessage("parent:hello",function(n,e,t){o&&clearTimeout(o),e.containerId,e.parentPageId,(!!e.parentUnderBlackout).toString(),i&&i(e,t),i=U})}function ti(e,t,r){r=q.optionsWithDefaults(r,{suspendReportingWhenLocationContains:[]});var n,i=(n=0,{increase:function(){return++n},decrease:function(){return--n}});function o(n){for(var e=0;e<r.suspendReportingWhenLocationContains.length;e++)if(0<=n.indexOf(r.suspendReportingWhenLocationContains[e]))return 1}function a(n){!0===n.visible&&t.isUnderBlackout()||n.sameOrigin&&o(n.frame.contentWindow.location.href)&&1===i.increase()&&e.emit("frame:blackoutEnter",n.frame)}function u(n){(!1!==n.visible||t.isUnderBlackout())&&n.sameOrigin&&o(n.frame.contentWindow.location.href)&&0===i.decrease()&&e.emit("frame:blackoutLeave",n.frame)}e.on("frame:wired",a),e.on("frame:load",a),e.on("frame:unload",u),e.on("frame:visibilityChange",function(n){(n.visible?a:u)(n)})}function ri(n){var e,t=(e=0,{increase:function(){return++e},decrease:function(){return--e}});this.onPossibleBlackoutEnter=function(){1===t.increase()&&n.emit("notifyAll:blackoutEnter")},this.onPossibleBlackoutLeave=function(){0===t.decrease()&&n.emit("notifyAll:blackoutLeave")}}function ii(e,t,n,r,i,o,a,u,c,s,f,d,l){l=l||{};var h,v,m={detected:0,injected:0,injectionFailed:0,handshakesWithChildren:{success:0,error:0},handshakeWithParent:{startedAt:-1,completedAt:-1,timeout:!1}},g=e.top!==e;function p(){v&&a.notifyAll({type:"pageUpdate"})}function y(n,e){(h=n).origin=e,t.emit("parentWindowInfo",h),n.parentUnderBlackout&&u.forceBlackoutEnter(),m.handshakeWithParent.completedAt=q.currentTimestamp(),m.handshakeWithParent.info=h,a.onParentHandshake(),d(n.parentPageId,n.containerId),h.containerId,h.parentPageId,h.sessionId}function w(){t.emit("clsDebug","handshake timeout"),m.handshakeWithParent.timeout=!0,d()}o&&o.setInjectionCallback(function(n,e){e?m.injected++:m.injectionFailed++}),c.setParentCallback(function(n,e){m.handshakesWithChildren.success+=n?1:0,m.handshakesWithChildren.error+=n?0:1,v&&t.emit("pageUpdate")}),this.initialize=function(){g||d()},this.stats=function(){return m},o&&l.skipHidden&&t.on("frame:visibilityChange",function(n){l.autoInject&&!n.frame._gbInjected&&n.visible&&o.inject(n.frame)}),t.on("saveEvent",function(n){v&&"pageUpdate"!==n.type&&-1!==M.snapshotApplicableEventType.indexOf(n.type)&&p()}),t.on("frame:detected",function(n){f(n);var e=i.wireFrame(n);l.autoInject&&o&&e&&o.inject(n),m.detected++}),t.on("frame:domChange",function(){t.emit("pageUpdate"),p()}),t.on("init:loaded",function(){r.start(),g&&(m.handshakeWithParent.startedAt=q.currentTimestamp(),c.perform(e.parent,y,w))}),t.on("domTrackingStarted",function(){v=!0,h&&a.notify(e.parent,{type:"domTrackingStarted"},h.origin)}),t.on("frame:unload",function(n){n.frame._gbInjected=!1,setTimeout(function(){t.emit("sendStoragePendingReports")},1e3)}),t.on("frame:load",function(n){var e=n.frame;o&&l.autoInject&&n.sameOrigin&&!o.inject(e)||e.src}),t.on("frame:blackoutEnter",function(){e===e.top?n.onPossibleBlackoutEnter():a.notify(e.top,{type:"onPossibleBlackoutEnter"})}),t.on("frame:blackoutLeave",function(){e===e.top?n.onPossibleBlackoutLeave():a.notify(e.top,{type:"onPossibleBlackoutLeave"})}),t.on("frame:port",function(n){a.notify(e.top,{type:"onFramePort",args:n.args,transferable:n.transferable})}),t.on("notifyAll:blackoutEnter",function(){t.emit("local:forceBlackoutEnter"),a.notifyAll({type:"forceBlackoutEnter"})}),t.on("notifyAll:blackoutLeave",function(){t.emit("local:forceBlackoutLeave"),a.notifyAll({type:"forceBlackoutLeave"})}),t.on("iFramesForceFlush",function(){a.notifyAll({type:"forceFlush"})}),t.on("session:new",function(n){a.notifyAll({type:"queryParamUpdate",args:n})})}function oi(u,r,c,i,n){var o,a={},s={},f=null,d=null,l=null,t={},h=n.maxFocusTime||3e4;function v(n){for(;n;){if("FORM"===n.tagName)return q.isVisible(n)?n:null;n=n.parentNode||n.host}return null}return{handleSubmit:function(n){var e=v(n.element),t=r.idOf(e);e&&s[t]&&delete s[t],a[t]?(a[t].count=++a[t].count,a[t].endEventId=n.id,a[t].relatedEvent=n):a[t]={count:1,startEventId:n.id,relatedEvent:n},1<a[t].count&&c({element:e,dataToEncode:{type:"formResubmitted",count:a[t].count,startEventRelatedId:a[t].startEventId,endEventRelatedId:a[t].endEventId},relatedEvent:a[t].relatedEvent})},handleKeyup:function(n){var e;"INPUT"!==n.element.tagName&&"TEXTAREA"!==n.element.tagName||((n=(e=n).element)._gbMaxChars&&!t[r.idOf(n)]&&(t[r.idOf(n)]=!0,c({element:n,dataToEncode:{type:"inputCharsExceeded",eventRelatedId:e.id},relatedEvent:e})),e=parseInt(n.getAttribute("maxLength")),n._gbMaxChars=e<=n.value.length)},handleFocus:function(n){var e,t=v(n.element);t&&(e=r.idOf(t),s[e]||(s[e]={selector:i.getSelectorInfo(t),eventId:n.id,relatedEvent:n})),function(n,e){var t,r,i,o,a=n.element;if("radio"===a.type){if(a.name===l)return;l=a.name}else l=null;f&&e===d&&(f&&a.getAttribute("tabindex")&&f.getAttribute("tabindex")&&a.getAttribute("tabindex")<f.getAttribute("tabindex")?c({element:a,dataToEncode:{type:"formZigzag",reason:"tabindex",eventRelatedId:n.id},relatedEvent:n}):(t=a.getBoundingClientRect(),r=f&&f.getBoundingClientRect(),i=t.top-r.top==0,t.top-r.top<0?c({element:a,dataToEncode:{type:"formZigzag",reason:"vertical",eventRelatedId:n.id},relatedEvent:n}):(o="rtl"===u.getComputedStyle(a).getPropertyValue("direction")||"rtl"===u.getComputedStyle(j.body).getPropertyValue("direction"),i&&!o&&t.left-r.left<0?c({element:a,dataToEncode:{type:"formZigzag",reason:"horizontal",eventRelatedId:n.id},relatedEvent:n}):i&&o&&0<t.right-r.right&&c({element:a,dataToEncode:{type:"formZigzag",reason:"horizontal-rtl",eventRelatedId:n.id},relatedEvent:n})))),d=e,f=a}(n,t);t=n.extraInfo&&Math.floor(n.extraInfo.focusTime||0);h<t&&c({element:f,dataToEncode:{type:"longFocusTime",duration:t,eventRelatedId:n.id},relatedEvent:o}),o=n},handleUnload:function(){!function(){for(var n in s)s.hasOwnProperty(n)&&c({elementSelector:s[n].selector,dataToEncode:{type:"uncompletedForm",eventRelatedId:s[n].eventId},relatedEvent:s[n].relatedEvent})}()}}}function ai(t,r,n,i){i=q.optionsWithDefaults(i,{horizontalScrollbar:!0,blankPage:!0});var o=0,a=!0;function u(n,e){e.struggleHorizScrollCount=e.struggleHorizScrollCount||0,e.struggleHorizScrollCount<3&&o<5&&n&&n.nodeType===Node.ELEMENT_NODE&&n.firstElementChild&&function(n){if(n.scrollWidth>n.clientWidth){n=t.getComputedStyle(n);return"scroll"===n.overflow||"scroll"===n.overflowX||"auto"===n.overflow||"auto"===n.overflowX}}(n)&&q.isVisible(n)&&q.isInPageView(n)&&(e.struggleHorizScrollCount++,o++,r({element:n,dataToEncode:{type:"horizontalScrollbar"}}))}return n.on("pageSnapshot:report",function(){a&&i.blankPage&&r({dataToEncode:{type:"blankPage"}})}),{handleNode:function(n,e){i.horizontalScrollbar&&u(n,e),i.blankPage&&(e=n,a&&e&&e.nodeType===Node.TEXT_NODE&&((n=e.textContent)&&n.trim()&&q.isVisible(e.parentNode)&&(a=!1)))}}}function ui(n,e,t,r,i){var o=[],a=pt(i.document);r.domRecordEnabled&&r.interceptAjax&&r.struggleCaptureDeadClick&&(i=function(o,n,r,i,a){var u,e,c=a.deadClickTimeout,s={INPUT:!0,SELECT:!0,TEXTAREA:!0,HTML:!0};if(a.additionalTagNamesToIgnore&&a.additionalTagNamesToIgnore.length)for(e=0;e<a.additionalTagNamesToIgnore.length;++e)s[a.additionalTagNamesToIgnore[e]]=!0;function t(){clearTimeout(u)}return n.on("domMutation",t),n.on("segmentChanged",t),n.on("event:change",t),n.on("ajax:send",t),n.on("pageError",t),n.on("event:unload",t),{handleClick:function(n){var e,t;clearTimeout(u),s[n.element.tagName]||function(n){var e=o.getComputedStyle(n.element).overflow;if("scroll"!==(e=e&&e.toLowerCase())&&"auto"!==e)return!1;try{var t=n.element.getBoundingClientRect(),r=t.right-t.width,i=o.getComputedStyle(n.element).direction;if("ltr"===i){if(n.value.coordinate.x>r+n.element.clientWidth)return!0}else if("rtl"===i&&n.value.coordinate.x<r+t.width-n.element.clientWidth)return!0;t=t.bottom-t.height;if(n.value.coordinate.y>t+n.element.clientHeight)return!0}catch(n){logger.error("Error while intercepting dead click. Error: "+n.message,n)}return!1}(n)||(e=n.id,t=n,u=setTimeout(function(){!function(n){var e,t=a.elementsToIgnoreBySelector;if(t&&t.length)for(e=0;e<t.length;++e)if(i.matches(n,t[e]))return!0;return!1}(n.element)&&r({element:n.element,dataToEncode:{type:"deadClick",eventRelatedId:e},relatedEvent:t})},c))}}}(i,e,t,a,{deadClickTimeout:r.struggleDeadClickInterval||1e3,elementsToIgnoreBySelector:r.struggleDeadClickIgnoreBySelector||[],additionalTagNamesToIgnore:r.struggleDeadClickIgnoreByTagNames||[]}),o.push(i.handleClick.gbBind(i)));var u,c,s,f,d,l,h,v,m,g,p,y,w,b,a=(u=n,c=t,s=a,a={timeBetweenClicks:r.struggleRageClickInterval,minimumClicksToRage:r.struggleRageClickMinCount,elementsToIgnoreBySelector:r.struggleRageClickIgnoreBySelector},d=a.timeBetweenClicks||3e3,l=a.minimumClicksToRage||5,h=a.elementsToIgnoreBySelector||[],v={},m=1,{handleClick:function(e){if(0<h.length)for(var n=0;n<h.length;n++)if(s.matches(e.element,h[n]))return;var t=u.idOf(e.element);v[t]?(v[t].times.push({time:e.timestamp,eventId:e.id}),v[t].times.length>=l&&(v[t].times=v[t].times.filter(function(n){return e.timestamp-n.time<d})),v[t].times.length>=l?(e.indexInRage=l+v[t].count,e.rageSequence=m,v[t].isRage||c({element:e.element,dataToEncode:{type:"rageClick",startEventRelatedId:v[t].times[0].eventId,endEventRelatedId:e.id,rageSequence:m},relatedEvent:e}),v[t].isRage=!0,v[t].count=v[t].count+1):v[t].isRage&&((v={})[t]={},v[t].times=[],v[t].times.push({time:e.timestamp,eventId:e.id}),v[t].count=0,++m)):(v[t]={},v[t].times=[],v[t].times.push({time:e.timestamp,eventId:e.id}),v[t].count=0),f&&v[f]&&v[f].isRage&&!v[t].isRage&&(v[f].isRage=!1,v[f].count=0,++m),f=t}});return o.push(a.handleClick.gbBind(a)),r.struggleCaptureErrorClick&&(e=e,g=t,r={errorClickTimeout:r.struggleErrorClickInterval||1e3},w=[],b=r.errorClickTimeout,e.on("pageError",function(n){p&&(n.eventLimitExceeded=!1,w.push(n.error),y=!0)},U,-1),e={handleClick:function(n){clearTimeout(p);var e=n.id,t=n;p=setTimeout(function(){y&&(y=!1,g({element:n.element,dataToEncode:{eventRelatedId:e,type:"errorClick"},errors:w,relatedEvent:t}),w=[])},b)}},o.push(e.handleClick.gbBind(e))),{handleClick:function(e){o.forEach(function(n){n(e)})}}}function ci(t,r,i){return{handlePageLoad:function(){!function(){var n=t.performance.getEntriesByType?t.performance.getEntriesByType("navigation"):[];if(0<n.length)for(var e=0;e<n.length;e++){if("reload"===n[e].type)return r({element:j,dataToEncode:{type:"reload"}});if("back_forward"===n[e].type&&i.isSessionSet())return r({element:j,dataToEncode:{type:"backForward"}})}t.performance.navigation&&t.PerformanceNavigation&&(t.performance.navigation.type===t.PerformanceNavigation.TYPE_RELOAD&&r({element:j,dataToEncode:{type:"reload"}}),t.performance.navigation.type===t.PerformanceNavigation.TYPE_BACK_FORWARD&&i.isSessionSet()&&r({element:j,dataToEncode:{type:"backForward"}}))}()}}}function si(n){le?ie.emit("reportStruggle",n):setTimeout(function(){ie.emit("reportStruggle",n)},0)}function fi(){me.handlePageLoad()}function di(n){he.handleSubmit(n)}function li(n){he.handleKeyup(n)}function hi(n){he.handleFocus(n)}function vi(){le=!0,he.handleUnload()}function mi(n){ve.handleClick(n)}function gi(n){ge.checkXhr(n)}function pi(o){this.getSelectorInfo=function(n,e,t){if(!n||"function"!=typeof n.getRootNode)return{selector:o.getSelectorInfo(n,e,t).selector};for(var r=[];n;)r.unshift(o.getSelectorInfo(n,e,t).selector),n=(n.getRootNode()||{}).host;var i={selector:r.splice(r.length-1)[0]};return r.length&&(i.hostSelectorPath=r.join(",")),i}}function yi(t,r,i){var o="_gbHasShadow",a="_gbHasObserver",u={initialShadowRootCount:0,hookInvocationsCount:0,totalShadowRootCount:0,totalShadowRootRemoved:0};function c(n){for(;n&&!n[o];)n[o]=!0,n=n.parentNode||n.host}function e(n){var e=t.Element.prototype[n];e&&(t.Element.prototype[n]=function(){var n=e.apply(this,arguments);try{q.isAttachedToDOM(this)&&r.emit("shadow:rootAttached",n),r.emit("shadow:rootDetected",n),this[a]=!0,c(this),u.hookInvocationsCount++,u.totalShadowRootCount++}catch(n){n.message}return n})}r.on("domMutation",function(n){if("childList"===n.type){for(var e=0;e<n.addedNodes.length;e++)n.addedNodes[e][o]&&i.visit(n.addedNodes[e],function(n){n.shadowRoot&&!n[a]&&r.emit("shadow:rootDetected",n.shadowRoot)},br.SHOW_ELEMENTS);for(e=0;e<n.removedNodes.length;e++)n.removedNodes[e][o]&&i.visit(n.removedNodes[e],function(n){n.shadowRoot&&(r.emit("shadow:rootRemoved",n.shadowRoot),u.totalShadowRootCount--,u.totalShadowRootRemoved++)},br.SHOW_ELEMENTS)}}),this.startObservingShadowRoots=function(n){!function(n){for(var e=0;e<n.length;e++)c(n[e]),r.emit("shadow:rootDetected",n[e]),u.initialShadowRootCount++,u.totalShadowRootCount++}(n||[]),["attachShadow","createShadowRoot"].forEach(e),u.initialShadowRootCount},this.stats=function(){return u}}function wi(e,t,r){var i={url:e};if(window.fetch)return fetch(e,{cls_own:!0}).then(function(n){n.ok?(i.type=n.headers.get("Content-Type"),n.arrayBuffer().then(function(n){i.content=q.pako.gzip(n),t(i)}).catch(function(n){logger.error("Failed getting resource data by fetch for url : "+e+" error:"+n.message),i.error="status:"+n.message,t(i)})):(logger.error("Failed getting resource data by fetch for url : "+e+" status:"+n.status+" "+n.statusText),i.error="status:"+n.status+" "+n.statusText,t(i))}).catch(function(n){logger.error("Failed getting resource data by fetch for url : "+e+" error:"+n.message),i.error="status: "+n.message,t(i)}),!0;try{var o=new XMLHttpRequest;return o?(o.onreadystatechange=function(){var n;4===o.readyState&&(200===o.status?(n=o.getResponseHeader("Content-Type"),i.type=n,i.content=q.pako.gzip(o.response),t(i)):0===o.status?r(i.url):(logger.error("Failed getting resource data by Ajax for url : "+e+" status:"+o.status+" "+o.statusText),i.error="status: "+o.statusText+" ("+o.status+")",t(i)))},o.cls_own=!0,o.open("GET",e,!0),o.responseType="arraybuffer",o.send(),!0):!1}catch(n){return logger.error(c+n.message,n),console.log("Failed getting resource data by Ajax for url: "+e+": "+n.message,n),!1}}function bi(u,c,t,e,s,f,d,r){var n,l,i;function h(){var n,e=c.get("res.pending");if(c.remove("res.pending"),e)try{n=s.decode(e)}catch(n){logger.error("Failed parsing JSON for pending resources: "+n.message,n)}return n}function o(n){r.countRecorded++,e.emit("saveResourceEvent",n)}function a(n){r.countCorsDenied++,e.emit("saveCorsDeniedEvent",n)}function v(){var n,e=d.electAmount,t=d.maxPendingResources;if(c.get("res.all")&&(n=!0,e=Number.MAX_VALUE,t=Number.MAX_VALUE),n=n||Math.random()<d.electProbability){for(var r,i=function(n){for(var e=[],t=0;t<n.length;t++){var r=n[t];f(r.name)||(l[n[t].initiatorType]||!d.resourceRecordCssOnly&&"xmlhttprequest"===n[t].initiatorType&&-1<n[t].name.indexOf(".svg"))&&e.push(r)}return e}(i=u.performance.getEntriesByType("resource")),o=h()||[],a=0;a<e&&0<i.length&&!(o.length>=t);a++)r=Math.floor(Math.random()*i.length),o.push(i[r].name),i.splice(r,1);c.set("res.pending",s.encode(o))}}(n=r||{}).countRecorded=0,n.countCorsDenied=0,n.recordingAll=!!c.get("res.all"),r=n,l=d.resourceRecordCssOnly?q.immutableSet("link","css"):q.immutableSet("link","css","font","img","input"),d.electResourcesOnClear&&(u.Performance.prototype.clearResourceTimings?(i=u.Performance.prototype.clearResourceTimings,u.Performance.prototype.clearResourceTimings=function(){try{v()}catch(n){logger.error("faild to run hook on Performance.clearResourceTimings: "+n)}i.apply(this,arguments)}):u.Performance.prototype.webkitClearResourceTimings&&(i=u.Performance.prototype.webkitClearResourceTimings,u.Performance.prototype.webkitClearResourceTimings=function(){try{v()}catch(n){logger.error("faild to run hook on Performance.webkitClearResourceTimings: "+n)}i.apply(this,arguments)})),this.fetchResources=function(){var n=h();if(n)for(var e=0;e<n.length;e++)if(!t(n[e],o,a)){logger.error("Failed executing an XHR request for fetching a resource. Breaking the fetch loop.");break}},this.electResources=v,this.recordAllResources=function(){c.set("res.all","true")},this.stopRecordAllResources=function(){c.remove("res.all")}}function Ei(l,i,o,t){var a,u,h={},v={},r="media",c="img",s="font",m="css",f="js",d="ajax",g="other",p=q.immutableSet("png","gif","jpg","jpeg","svg","tif","tiff","bmp","webp"),y=q.immutableSet("woff","woff2","ttf","otf","eot"),w=q.immutableSet("xmlhttprequest","fetch","beacon"),b=q.immutableSet("css");function E(n,e){n=n.split("."),n=n[n.length-1].toLowerCase();return-1<n.indexOf("?")&&(n=n.split("?")[0]),"script"===e?f:"video"===e||"audio"===e?r:"img"===e||"svg"===e?c:w[e]?d:"link"===e||"css"===e||"other"!==e?p[n=n]?c:y[n]?s:b[n]?m:g:g}function C(n){var e;n.hostname=q.extractHostname(n.name),n.path=q.extractPath(n.name),e=n.path.split("/"),n.fileName=e[e.length-1]}function T(n,e,t){for(var r,i={},o=0;o<e.length;o++)n[e[o]]!==U&&(i[e[o]]=n[e[o]]);return"resource"===t&&"document"!==i.name&&((r=i).name&&(r.resourceType||(t=E(r.name,r.initiatorType))&&(r.resourceType=t.toLowerCase()),C(r),r.isSameTLD=Yt.extractTLD(l.location.host)===Yt.extractTLD(r.hostname)),r.nextHopProtocol&&(r.protocol=r.nextHopProtocol),delete r.nextHopProtocol,r.isFromCache=0===r.transferSize),delete(r=n).loadMode,delete r.isSuccessful,delete r.resourceType,i}function S(n){if(n){var e=n.name;return-1===e.indexOf(t)&&(!h[e]||h[e].startTime!==n.startTime)}}function k(n,e,t,r,i){var o,a,u=[],c=l.performance.getEntriesByType(e),u=r&&i?c.filter(function(n){return i[n[r]]!==U}):c;if("resource"===e){var s=function(){for(var n={},e=l.document.querySelectorAll('script[src][async],script[src][defer],link[rel="preload"],img[loading]'),t=0;t<e.length;t++)switch(e[t].tagName){case"SCRIPT":n[e[t].src]=e[t].async?"async":e[t].defer?"defer":"sync";break;case"LINK":n[e[t].href]="preload";break;case"IMG":n[e[t].src]="lazy"}return n}();for(!function(){for(var n,e=l.document.querySelectorAll('link[rel="stylesheet"]'),t=0;t<e.length;t++)n=e[t].href||e[t].name,v[n]=!0}(),"function"==typeof l.performance.getEntriesByType&&l.performance.getEntriesByType("navigation")[0]?u.push(l.performance.getEntriesByType("navigation")[0]):q.isSafari(l.navigator.userAgent)&&u.push({startTime:0,connectEnd:(c=l.performance.timing).connectEnd,connectStart:c.connectStart,domainLookupEnd:c.domainLookupEnd,domainLookupStart:c.domainLookupStart,entryType:"navigation",fetchStart:c.fetchStart,initiatorType:"navigation",name:l.location.href,redirectEnd:c.redirectEnd,redirectStart:c.redirectStart,requestStart:c.requestStart,responseEnd:c.responseEnd,responseStart:c.responseStart,secureConnectionStart:c.secureConnectionStart}),o=0;o<u.length;o++)S(u[o])&&("script"===(a=u[o]).initiatorType?a.loadMode=s[a.name]||"sync":"link"!==a.initiatorType&&"img"!==a.initiatorType||(s[a.name]&&(a.loadMode=s[a.name]),"link"===a.initiatorType&&v[a.name]&&(a.resourceType=m)),a.isSuccessful=!(0<a.transferSize&&0===a.duration));v={}}for(n[e]=[],o=0;o<u.length;o++){var f,d=u[o];S(d)&&(f=T(d,t,e),h[d.name]={startTime:d.startTime},"navigation"!==f.initiatorType&&"navigation"!==f.entryType||((d=f).initiatorType=d.initiatorType||d.entryType,d.isSuccessful=!0,d.isSameTLD=!0,d.resourceType="other",d.duration=d.duration||d.responseEnd-d.redirectStart,"document"===d.name&&(d.name=l.location.href||d.name,C(d))),n[e].push(f))}}l.navigator.connection&&(a=l.navigator.connection.effectiveType,u=l.navigator.connection.rtt),this.reportMeasurements=function(n,e){try{var t={};0;for(var r=0;r<o.length;r++)k(t,o[r].type,o[r].properties,o[r].filterBy,o[r].validFilterValues);n&&(h={}),a&&(t.ect=a),u&&(t.rtt=u),t.pagePerformance=l.performance.timing,t.version=1,t.causedBy=e,i.emit("resourcesWaterfall",t)}catch(n){logger.error("Exception while trying to report resources waterfall. Error: "+n.message,n),i.emit("clsDebug","error trying to report resources waterfall. Exception message: "+n.message)}}}function Ci(n,e){var t,r,i={},o=0,a=0;n.navigator.connection&&(t=n.navigator.connection.effectiveType,r=n.navigator.connection.rtt),this.track=function(){try{this.webVitals.getCLS(function(n){o++,n.value!==U&&(i[n.name]=n.value)},!0)}catch(n){logger.error("failed getting CLS. Is browser supported by lib? "+n.message,n)}try{this.webVitals.getFCP(function(n){n.value!==U&&(i[n.name]=n.value)})}catch(n){logger.error("failed getting FCP. Is browser supported by lib? "+n.message,n)}try{this.webVitals.getFID(function(n){n.value!==U&&(i[n.name]=n.value)})}catch(n){logger.error("failed getting FID. Is browser supported by lib? "+n.message,n)}try{this.webVitals.getLCP(function(n){a++,0<n.value&&n.value!==U&&(i[n.name]=n.value)},!0)}catch(n){logger.error("failed getting LCP. Is browser supported by lib? "+n.message,n)}try{this.webVitals.getTTFB(function(n){n.value!==U&&(i[n.name]=n.value)})}catch(n){logger.error("failed getting TTFB. Is browser supported by lib? "+n.message,n)}},this.report=function(){var n={};i.NCLS=o,i.NLCP=a,t&&(n.ect=t),r&&(n.rtt=r),n.webVitals=JSON.stringify(i),e.emit("webVitals",n)}}function Ti(r,t,i,s,e,f){var o=function(n){for(var e=[],t=0;t<n.length;t++)e.push(n[t].toLowerCase());return e}((f=i.optionsWithDefaults(f,{redComponentMin:120,redComponentDelta:80,minTextLen:10,submitIds:[],ignoreNodesVisibility:!1,allowFormLevel:!0,considerBG:!0,additionalTagNames:[],ignorableText:["characters left","characters remaining"],urlsRegexToCheck:[],titleRegexStringToCheck:[]})).ignorableText),a=i.immutableSet.apply(null,f.submitIds),u=i.immutableSet.apply(null,f.additionalTagNames),c=i.immutableSet.apply(null,f.ignorableTags),d=i.immutableSet("INPUT","SELECT","TEXTAREA"),l='input:not([type="hidden"]),select,textarea',h=2,v=!1,m={},g={};function p(n){for(;n;){if("FORM"===n.tagName||u[n.tagName])return i.isVisible(n)?n:null;n=n.parentNode||n.host}return null}function y(n,e){setTimeout(function(){t.emit("formValidationError",{element:n,message:e})},0)}function w(n,t){e.visit(n,function(n){if(n)if(n.nodeType===Node.TEXT_NODE&&(e=n,!m[s.idOf(e)]&&function(n){return!function(n){var e;for(n=n.replace(/\s+/g," ").toLowerCase(),e=0;e<o.length;e++)if(-1!==n.indexOf(o[e]))return!0;return!1}(n.textContent)&&n.textContent.trim().length>f.minTextLen}(e)&&function(n){if(c[n.parentNode.tagName])return!1;function e(n){n=n.match(/\d+/g);return n&&parseInt(n[0])>f.redComponentMin&&n[0]>Math.max(parseInt(n[1]),parseInt(n[2]))+f.redComponentDelta}n=r.getComputedStyle(n.parentNode);return e(n.color)||f.considerBG&&e(n.backgroundColor)}(e)))t.push(n);else if(n.nodeType===Node.ELEMENT_NODE&&!f.ignoreNodesVisibility&&(n=n,!i.isVisible(n)||"hidden"===r.getComputedStyle(n).visibility))return!1;var e},br.SHOW_ALL)}t.on("domMutation",function(n){if(v){var e=p(n.actualTarget);if(e){for(var t,r,i,o,a="childList"===(n=n).type?n.addedNodes:"attributes"===n.type?[n.actualTarget]:[],u=[],c=0;c<a.length;c++)w(a[c],u);for(c=0;c<u.length;c++)t=function(n,e){for(var t=(n=n.parentNode).previousElementSibling;t;){if(d[t.tagName])return t;t=t.previousElementSibling}for(var r,i=h,o=n.parentElement;o&&i--;){if(1===(r=o.querySelectorAll(l)).length)return r[0];if(1<r.length)break;if(o===e)break;o=o.parentNode}return e}(u[c],e),!f.allowFormLevel&&t===e||d[t.tagName]&&(r=t,o=i=void 0,i=s.idOf(r),o=void 0===g[i]||g[i]!==r.value,g[i]=r.value,!o)||(m[s.idOf(u[c])]=!0,y(t,u[c].textContent.trim()))}}}),this.intercept=function(n){(v=a[n.id]||!!p(n))&&(m={})},this.onLoadCheck=function(){var n;if(f.urlsRegexToCheck.length)for(n=0;n<f.urlsRegexToCheck.length;++n)if(i.isStringMatch(f.urlsRegexToCheck[n],r.location.href))return void y(j.body,"url contain form validation signs: "+f.urlsRegexToCheck[n]);if(f.titleRegexStringToCheck.length)for(n=0;n<f.titleRegexStringToCheck.length;++n)if(i.isStringMatch(f.titleRegexStringToCheck[n],r.document.title))return void y(j.body,"title contain form validation signs: "+f.titleRegexStringToCheck[n])}}function Si(u){var c=1;this.showErrorsLRU=new lt(20),this.intercept=function(){var a=jQuery.validator.prototype.showErrors;jQuery.validator.prototype.showErrors=function(n){try{if(this.errorList&&0<this.errorList.length)for(var e=0;e<this.errorList.length;e++){var t=this.errorList[e].element,r=this.errorList[e].message,i="SAME - NOT REPORTING";t.gbLocalId||(t.gbLocalId=c,c++);var o=this.showErrorsLRU.set(t.gbLocalId,r);null===o||E.isUndefined(o)?i="NEW":o!==r?i="UPDATE":o!==r||(o=this.errorsFor(t))&&0<o.length&&!E.isUndefined(o[0].innerHTML)&&(o[0].innerHTML===r&&jQuery(o[0]).is(":visible")||(i="SHOW")),"NEW"!==i&&"UPDATE"!==i&&"SHOW"!==i||u.emit("formValidationError",{element:t,message:0<r.length?r:"NONE"})}}catch(n){logger.error("Failed intercepting showErrors for validation error report. "+n.message,n)}a.call(this,n)}}}function ki(){return!("value"!==this.accessor||!we.isDomMasked(this.elem,Gn.SELF,Jn.VALUE_ATTRIBUTE))||(!!we.isDomMasked(this.elem,Gn.SELF_OR_ANY_PARENT,Jn.OMIT)||!(!Te[this.accessor]||!Se[this.elem.tagName.toLowerCase()]||this.elem.hasAttribute&&this.elem.hasAttribute(ke)))}function Ii(){if(we.isDomMasked(this.elem,Gn.SELF_OR_ANY_PARENT,Jn.OMIT))return!0;if(Ee&&"value"===this.accessor){if(Ce.valueMaskIgnoreAttribute&&this.elem&&this.elem.nodeType===Node.ELEMENT_NODE&&this.elem.hasAttribute(Ce.valueMaskIgnoreAttribute))return!1;if(Ee.isCensored(this.elem))return!0}return("innerText"!==this.accessor&&"textContent"!==this.accessor&&"innerHTML"!==this.accessor&&"outerHTML"!==this.accessor||!ke||!function(n){for(;n;){if(n.nodeType===Node.ELEMENT_NODE&&n.hasAttribute(ke))return 1;n=n.parentNode}}(this.elem))&&(!("innerText"!==this.accessor&&"textContent"!==this.accessor||!(we.isDomMasked(this.elem,Gn.SELF_OR_ANY_CHILD,Jn.TEXT)||we.isDomMasked(this.elem,Gn.SELF_OR_ANY_PARENT,Jn.TEXT)||be.isDomEncrypted(this.elem,Gn.SELF_OR_ANY_CHILD)||be.isDomEncrypted(this.elem,Gn.SELF_OR_ANY_PARENT)))||(!("innerHTML"!==this.accessor||!(we.isDomMasked(this.elem,Gn.SELF_OR_ANY_CHILD,Jn.TEXT,Jn.ATTRIBUTE)||we.isDomMasked(this.elem,Gn.SELF_OR_ANY_PARENT,Jn.TEXT,Jn.ATTRIBUTE)||be.isDomEncrypted(this.elem,Gn.SELF_OR_ANY_CHILD)||be.isDomEncrypted(this.elem,Gn.SELF_OR_ANY_PARENT)))||!("outerHTML"!==this.accessor||!(we.isDomMasked(this.elem,Gn.SELF_OR_ANY_CHILD,Jn.TEXT,Jn.ATTRIBUTE)||we.isDomMasked(this.elem,Gn.SELF_OR_ANY_PARENT,Jn.TEXT,Jn.ATTRIBUTE)||be.isDomEncrypted(this.elem,Gn.SELF_OR_ANY_CHILD)||be.isDomEncrypted(this.elem,Gn.SELF_OR_ANY_PARENT)))))}function xi(){return!!we.isDomMasked(this.elem,Gn.SELF_OR_ANY_PARENT,Jn.OMIT)}function Mi(n,e,t,r){this._elementResolver=e,this._accessors=t,this._rule=n,this._urlRegexp=r,this._isHierarchical=-1!==n.selector.indexOf(">")}function Ri(t,n){var r;t.on("init:loaded",function(){(r=n[Ri.KEY_NAME])&&t.emit("analyzerId",r)},U,-1),t.on("event:unload",function(){try{r&&(n[Ri.KEY_NAME]=r)}catch(n){logger.error("error: could not set aid to storage. "+n.message)}}),this.handle=function(n,e){n&&(r=n,t.emit("analyzerId",r))}}function Ai(n){for(var e=0;e<Ne.length;e++)xe.hasOwnProperty(Ne[e])&&(n[Ne[e]]=xe[Ne[e]]);return n}!e&&function(n,e){if(void 0===n[e])return void 0===n.NodeFilter;void 0!==n.console&&"function"==typeof n.console.log&&console.log("WARNING[EyeView-1301]: detector script has been loaded more than once. Please fix to have a single detector loading. (Extra script loading will be ignored)");return!0}(n,i)||(r=self,o=j,(K={beaconVersion:"2"}).detectorVersion=t,K.mouseEvents=r&&r.PointerEvent?{down:"pointerdown",up:"pointerup"}:{down:"mousedown",up:"mouseup"},K.eventTypes=[K.mouseEvents.down,K.mouseEvents.up,"touchstart","touchend","scroll","change","blur","focusout","keydown","keyup","submit","reset","load","unload","ajaxComplete","hashchange","navigation","popstate","focus","focusin","mouseenter","mousemove","error","beforeunload","resize","pagehide","dragstart","dragend"],K.snapshotApplicableEventType=["pageUpdate","change","mousedown","scroll","touchstart","touchend","blur","submit","drag","dragstart","dragend","formValidationError","navigation","unload","beforeunload","segmentChanged","domTampered"],K.reportBase64URLs=!1,K.nobelEventTypes=["pageSnapshot"],K.socialNobelEventTypes=["resourceContent"],K.encryptionPrefix="__ENC_",K.encodeSelectors=!0,K.encodeEventTypes=!0,K.useClassesInSelectors=!1,K.encoding={numberBase:36,rootSelector:"-",delimiters:{versionPayload:";",pages:"~~~",events:"~~",eventParts:"~",pageIdEvents:"_"},domSnapshotPrefix:"D",domSnapshotRefPrefix:"r",domSnapshotCompressedPrefix:"d",domSnapshotPlainPrefix:"P",valueEncodedPrefix:"E",valueNotEncodedPrefix:"N"},K.cookies={session:"_cls_s",visitor:"_cls_v",sub_session:"_cls_subs",supportMode:"_cls_sm"},K.censorMode={BlackList:"blacklist",WhiteList:"whitelist"},K.iframesAutoInjectMode={BlackList:"blacklist",WhiteList:"whitelist"},K.Storage={BoundKeyPrefix:"gb.",UnboundKeyPrefix:"gb_unbound."},K.detectorScript=o?function(n,e){if(n)return!n.hasAttribute(e)&&o.querySelector("["+e+"]")||n;e=o.querySelector("["+e+"]");return e=(e=r&&!e&&r._cls_config&&r._cls_config.detectorTagId?o.getElementById(r._cls_config.detectorTagId):e)||o.getElementById("_cls_detector")}(o.currentScript,"data-clsconfig"):U,M=K,void 0!==(H={})&&Oe(H),M.setup="dom",void 0!==H&&_e(H),M.dictionary={eventTypes:{change:0,document:2,mousedown:3,touchstart:4,touchend:5,focusout:6,blur:7,unload:9,submit:10,reset:11,mouseup:12,drag:13,scroll:14,popstate:15,keydown:16,keyup:17,keypress:18,scrollReach:19,timing:20,idle:21,ajaxRequest:22,formValidationError:23,hashchange:25,botDetection:26,mouseenter:27,navigation:28,mousemove:29,error:30,thirdparty:31,custom:32,hover:33,thirdpartymap:34,performance:35,resource:36,clsdebug:37,resize:38,thirdPartyAttribute:39,ajaxStats:40,ajaxLimitReached:41,pageSnapshot:91,pageUpdate:92,resourceContent:93,corsDeniedResource:94,blackout:101,segmentChanged:102,titleChanged:103,devToolsVisibilityChanged:104,domTampered:105,webStruggle:106,voc:107,clientAttribute:110,waterfall:111,lastSegment:112,webVitals:113,resourcesWaterfall:114,abTesting:120,customMap:121},elements:{DIV:0,SPAN:1,INPUT:2,FORM:3,SELECT:4,TEXTAREA:5,TABLE:6,TR:7,TD:8,IFRAME:9,TBODY:10,THEAD:11,LABEL:12},encodingTypes:{cd_number:0,cd_boolean:1,cd_string:2,cd_coordinate:3,cd_navtiming:4},performanceTimingEvents:{navigationStart:1,redirectStart:2,fetchStart:4,domainLookupStart:5,connectStart:7,secureConnectionStart:8,requestStart:10,responseStart:13,domLoading:15,domContentLoadedEventStart:17,domComplete:19,loadEventStart:20,loadEventEnd:21},encode:function(n,e){e=e[n];return e!==U?e:n},encodeEventType:function(n){return M.dictionary.encode(n,M.dictionary.eventTypes)},encodeNodeName:function(n){return M.dictionary.encode(n,M.dictionary.elements)},encodeEncodingType:function(n){return M.dictionary.encode(n,M.dictionary.encodingTypes)},encodePerformanceTimingMeasurement:function(n){return M.dictionary.encode(n,M.dictionary.performanceTimingEvents)}},function(n){return n.CSS&&n.CSS.escape?n.CSS.escape:(n.CSS||(n.CSS={}),n.CSS.escape=e);function e(n){if(0===arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var e,t=String(n),r=t.length,i=-1,o="",a=t.charCodeAt(0);++i<r;)0!=(e=t.charCodeAt(i))?o+=1<=e&&e<=31||127==e||0==i&&48<=e&&e<=57||1==i&&48<=e&&e<=57&&45==a?"\\"+e.toString(16)+" ":(0!=i||1!=r||45!=e)&&(128<=e||45==e||95==e||48<=e&&e<=57||65<=e&&e<=90||97<=e&&e<=122)?t.charAt(i):"\\"+t.charAt(i):o+="�";return o}}(self),a=Object.prototype.toString,E={isFunction:function(n){return"function"==typeof n},isNumber:function(n){return"number"==typeof n||"[object Number]"===a.call(n)},isBoolean:function(n){return"boolean"==typeof n||"[object Boolean]"==a.call(n)},isString:function(n){return"string"==typeof n||"[object String]"===a.call(n)},isUndefined:function(n){return void 0===n},last:function(n){return n&&n[n.length-1]},forOwn:function(n,e){for(var t in n)n.hasOwnProperty(t)&&e(n[t],t)},indexOf:u=Le("indexOf"),pluck:function(n,e){return n?n.map(function(n){return n[e]}):[]},reduce:Le("reduce"),contains:"function"==typeof Array.prototype.includes?Le("includes"):function(n,e,t){return-1<u(n,e,t)},forEach:Le("forEach")},s=E,f=self,d=(d=void 0!==H?H:{})||{},logger={isConsoleSupported:function(){return!s.isUndefined(f.console)&&s.isFunction(f.console.log)},error:function(){this.log.apply(this,arguments)},log:function(){var n;!s.isUndefined(d.debugMode)&&d.debugMode&&((n=Array.prototype.slice.call(arguments,0)).unshift(q.currentTimestamp()),Mn&&Mn.page&&Mn.page.frame&&n.push(" (in frame "+Mn.page.id+")"),this.isConsoleSupported()?console.log.apply(console,n):s.isUndefined(f.console.log)||(n=n.join(" "),console.log(n)))},trace:function(){d.traceMode&&this.log.apply(this,arguments)}},c="error was detected ",V=new function(n){var o={},a=[];function i(n,e){return n[2]<e[2]?-1:n[2]>e[2]?1:0}(n=n||this).on=function(n,e,t,r){r===U&&(r=0),(o[n]=o[n]||[]).push([e,t,r]),o[n].sort(i)},n.off=function(n,e){for(var t=(o=!n?{}:o)[n]||a,r=t.length=e?t.length:0;r--;)e==t[r][0]&&t.splice(r,1)},n.emit=function(n){for(var e,t=o[n]||a,r=0<t.length?t.slice(0,t.length):t,i=0;e=r[i++];)e[0].apply(e[1],a.slice.call(arguments,1))}},q=function(r,i,u,a){a=a||{};var e,o={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",unload:"img",abort:"img",readystatechange:"XMLHttpRequest"},c="function"==typeof Object.assign?Object.assign:function(){var n=arguments[0];if(null===n||n===U)throw new TypeError("Cannot convert undefined or null to object");for(var e,t,r=Object(n),i=1;i<arguments.length;i++)if(null!==(e=arguments[i])&&e!==U)for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r},t={INPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,BUTTON:!0,A:!0},s=u&&u.createElement("a"),f=i&&i.console&&i.console.time&&i.console.timeEnd&&i.console.timeStamp,d=r.isFunction(i.String.prototype.startsWith),l=i&&u&&function(){if(i.Event&&i.Event.prototype&&i.Event.prototype.composedPath)return function(n){return n.composedPath()[0]};var e,t,r=!1;try{var n=i.navigator.userAgent;!1===/Trident|MSIE/i.test(n)&&!function n(){u.body?(e=u.createElement("iframe"),u.body.appendChild(e),r=!0,t=e.contentWindow.Event.prototype.composedPath,u.body.removeChild(e)):u.addEventListener("DOMContentLoaded",function(){n()})}()}catch(n){r&&(u.body.removeChild(e),r=!1)}return function(n){return t?t.call(n)[0]:n.target}}(),h=i.Node&&i.Node.prototype.hasOwnProperty("isConnected");return{currentTimestamp:r.isFunction(Date.now)&&r.isNumber(Date.now())?Date.now:function(){return(new Date).getTime()},isElement:function(n){return"hasAttribute"in n},isDOMElement:function(n){return"object"==typeof HTMLElement?n instanceof HTMLElement:n&&"object"==typeof n&&null!==n&&1===n.nodeType&&"string"==typeof n.nodeName},isEditableInput:function(n){if(!n)return!1;if("INPUT"!==n.tagName)return!0;n=(n.getAttribute("type")||"").toLowerCase();return"button"!==n&&"submit"!==n&&"reset"!==n},isOldIE:function(){return!u.addEventListener},hasTouch:function(){return"ontouchstart"in i},isMobile:function(){var n=navigator.userAgent;return/Android|webOS|iPhone|iPad|iPod|Windows Phone|IEMobile|Opera Mini|Mobile|mobile|Tablet|CriOS/i.test(n)},isChromeDesktop:function(){var n=navigator.userAgent,n=/Chrome/i.test(n);return!this.isMobile()&&n},isSafari:function(n){var e=n||navigator.userAgent,n=/Safari/i.test(e),e=/Chrome/i.test(e);return n&&!e},isIE:function(n){n=n||navigator.userAgent;return/Trident|MSIE/i.test(n)},isChromeOnIos:function(n){n=n||navigator.userAgent;return/CriOS/i.test(n)},getChromeVersion:function(n){try{var e=(n||navigator.userAgent).match(/Chrom(e|ium)\/([0-9]+)\./);return!!e&&parseInt(e[2],10)}catch(n){return!1}},getAttributeForElement:function(n,e){return n&&this.isElement(n)?(n.hasAttribute(e.toLocaleLowerCase())?t=n.getAttribute(e.toLocaleLowerCase()):n.hasAttribute(e.toLocaleUpperCase())&&(t=n.getAttribute(e.toLocaleUpperCase())),(t=t&&this.trim(t))||null):null;var t},getElementId:function(n){return n&&n.id?r.isString(n.id)||"function"!=typeof n.getAttribute?n.id:n.getAttribute("id"):null},isDuplicateElementId:function(n){if(!a.duplicateIdCheck)return!1;try{return"querySelectorAll"in u?1<u.querySelectorAll("[id='"+n+"']").length:!1}catch(n){return!1}},getMouseEnterTarget:function(){return"onmouseenter"in u?u:"onmouseenter"in i?i:u.body},hasTimingAPI:function(){return!r.isUndefined(i.performance)&&!r.isUndefined(i.performance.timing)},startsWith:function(n,e){return!(!r.isString(n)||!r.isString(e))&&(d?n.startsWith(e):n.slice(0,e.length)===e)},truncateStr:function(n,e,t){var r=n;return n&&n.length>e&&(r=n.substr(0,e),t&&(r=r.concat("..."))),r},getCoordinate:function(n){var e=n.changedTouches||n.touches,t=e&&0<e.length?e[0]:n,e=this.extractElementFromEvent(n);return this.isHybrid()||"HTML"===e.nodeName.toUpperCase()?new It(t.clientX,t.clientY):r.isUndefined(t.pageX)||r.isUndefined(t.pageY)?new It(n.clientX+u.body.scrollLeft+u.documentElement.scrollLeft,n.clientY+u.body.scrollTop+u.documentElement.scrollTop):new It(t.pageX,t.pageY)},getScrollTopLeft:function(){try{var n=null!==i.top&&i.top!==i.self?i.top:i;return{top:void 0!==n.pageYOffset?n.pageYOffset:(n.document.documentElement||n.document.body.parentNode||n.document.body).scrollTop,left:void 0!==n.pageXOffset?n.pageXOffset:(n.document.documentElement||n.document.body.parentNode||n.document.body).scrollLeft}}catch(n){return logger.error("Failed getting scroll values: "+n.message,n),{top:0,left:0}}},getElementXYCoordinates:function(n){if(!n)return null;if(!("getBoundingClientRect"in n))return null;var e=n.getBoundingClientRect(),n=this.getScrollTopLeft();return new It(Math.round(e.left+n.left),Math.round(e.top+n.top))},isSameCoordinates:function(n,e){return n.x===e.x&&n.y===e.y},isCoordinatesDistLargerThan:function(n,e,t){return Math.abs(n.x-e.x)>t||Math.abs(n.y-e.y)>t},getCurrentScrollReach:function(){try{var n=null!==i.top&&i.top!==i.self?i.top:i;return(void 0!==n.pageYOffset?n.pageYOffset:(n.document.documentElement||n.document.body.parentNode||n.document.body).scrollTop)+(n.innerHeight||n.document.documentElement.clientHeight||n.document.body.clientHeight)}catch(n){return 0}},getWindowSize:function(){return r.isNumber(i.innerWidth)&&r.isNumber(i.innerHeight)?this.validateSize(i.innerWidth,i.innerHeight):!r.isUndefined(u.body)&&r.isNumber(u.body.offsetWidth)&&r.isNumber(u.body.offsetHeight)?this.validateSize(u.body.offsetWidth,u.body.offsetHeight):null},getScreenSize:function(){return this.validateSize(screen.width,screen.height)},validateSize:function(n,e){return r.isNumber(n)&&r.isNumber(e)?{width:n,height:e}:null},indexOfNode:function(n,e,t){for(var r=t||0;r<n.length;r++)if(n[r]===e)return r;return-1},getLocationUrlSplitByHash:function(n){var e=q.decodeUri(n,i.location.href),n=e.indexOf("#");return-1===n?{url:e,withoutHash:e,hash:null}:{url:e,withoutHash:e.slice(0,n),hash:e.slice(n+1,e.length)}},getHashFromUrl:function(n){var e=n.indexOf("#");return-1===e?"":n.slice(e+1,n.length)},stripHash:function(n){var e=n.indexOf("#");return-1===e?n:n.slice(0,e)},getReferrerUrlWithoutHash:function(){var n=i.document.referrer;if(!n||0===n.length)return null;var e=n.indexOf("#");return-1!==e?n.slice(0,e):n},decodeUri:function(n,e){if(n){n=decodeURIComponent(e);return n=n!==decodeURIComponent(n)?q.decodeUri(!0,n):n}return e},encodeAsBase:function(n,e){return n.toString(e)},uuid:function(){var t=(new Date).getTime(),r=i.performance&&i.performance.now&&1e3*i.performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var e=16*Math.random();return 0<t?(e=(t+e)%16|0,t=Math.floor(t/16)):(e=(r+e)%16|0,r=Math.floor(r/16)),("x"===n?e:3&e|8).toString(16)})},addEventHandler:function(n,e,t,r){n.addEventListener?n.addEventListener(e,t,r):n.attachEvent&&n.attachEvent("on"+e,t)},removeEventHandler:function(n,e,t){r.isUndefined(n.removeEventListener)?r.isUndefined(n.detachEvent)||n.detachEvent("on"+e,t):n.removeEventListener(e,t,!0)},extractElementFromEvent:function(n){n=((n=void 0===n?i.event:n).target.shadowRoot?l(n):n.target)||n.srcElement;return null==n?null:3===n.nodeType?n.parentNode:n},isEventSupported:function(n){var e="on"+n;if(e in i||e in i.document)return!0;var t=u.createElement(o[e]||"div"),n=e in t;return n||(t.setAttribute(e,"return;"),n=r.isFunction(t[e])),t=null,n},isConsoleSupported:function(){return!r.isUndefined(i.console)&&r.isFunction(i.console.log)},getReason:function(n){return r.isString(n)?"("+n+")":"(not specified)"},hashcode:function(n){var e=0;if(0===n.length)return e;for(var t=0;t<n.length;t++){e=(e<<5)-e+n.charCodeAt(t);e&=e}return e},trim:function(n){return"function"!=typeof String.prototype.trim?n.replace(/^\s+|\s+$/g,""):n.trim()},time:function(n){a.timingMode&&f&&i.console.time(n)},timeEnd:function(n){a.timingMode&&f&&i.console.timeEnd(n)},timeStamp:function(n){a.timingMode&&f&&i.console.timeStamp(n)},hasOneOfClassNames:function(n,e){for(var t=" "+this.getClass(n)+" ",r=0;r<e.length;r++)if(-1<t.indexOf(" "+e[r]+" "))return!0;return!1},getMatchingClassName:function(n,e){for(var t=" "+q.getClass(n)+" ",r=0;r<e.length;r++)if(-1<t.indexOf(" "+e[r]+" "))return e[r]},getClass:function(n){return n.getAttribute&&n.getAttribute("class")||""},getClassList:function(n){if(n.classList)return n.classList;n=this.getClass(n);return n?n.split(" "):[]},hasClassName:function(n,e){return-1<(" "+this.getClass(n)+" ").indexOf(" "+e+" ")},getHybridType:function(){return"undefined"==typeof eyeViewHybridBridge?null:eyeViewHybridBridge.getHybridType()},isHybrid:function(){return"undefined"!=typeof eyeViewHybridBridge},isHybridAndroid:function(){return this.isHybrid()&&this.getHybridType()===eyeViewHybridBridge.HYBRID_ANDROID},isHybridIOS:function(){return this.isHybrid()&&this.getHybridType()===eyeViewHybridBridge.HYBRID_IOS},immutableSet:function(){for(var n={},e=0;e<arguments.length;e++)n[arguments[e]]=!0;return n},DOMElement2Str:function(n){return n instanceof CharacterData?n.textContent:n.outerHTML},dateFromNow:function(n){return new Date(this.currentTimestamp()+n)},getRootNode:function(n){if(!n)return n;if(n.getRootNode)return n.getRootNode();var e=n;for(n=n.parentNode;n;)n=(e=n).parentNode;return e||n},isAttachedToDOM:function(n){if(!n)return!1;if(h)return n.isConnected;var e=n.ownerDocument;if(n.getRootNode)return e===n.getRootNode({composed:!0});for(;n;){if(n===e)return!0;n=n.parentNode||n.host}return!1},isVisible:function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects&&n.getClientRects().length)},isInPageView:function(n){n=n.getBoundingClientRect();return-10<=n.top&&-10<=n.left},ensureProperty:function(n){for(var e=Array.prototype.slice.call(arguments,1),t=n,r=0;r<e.length;r++)t.hasOwnProperty(e[r])||(t[e[r]]={}),t=t[e[r]];return t},shallowExtend:function(n,e){if(!n)return n;for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},isEmpty:function(n){for(var e in n)if(n.hasOwnProperty(e))return!1;return!0},assign:function(n,e,t,r){return c.call(null,n,e,t,r)},getPerformanceResourceEntry:function(n,e){i.performance&&i.performance.getEntriesByName&&((n=performance.getEntriesByName(q.toAbsoluteUrl(n)))&&n.length&&(n.sort(function(n,e){return n.startTime-e.startTime}),(n=n[n.length-1])&&(e.downloadTime=n.duration?Math.floor(n.duration):U,e.ttfb=n.responseStart?Math.floor(n.responseStart-n.startTime):U)))},extractHostname:function(n){if(!n)return"";var e=n.indexOf("//");if(-1===e)return"";var t=n.indexOf("/",e+2);return n.substring(e+2,-1!==t?t:U)},isHTTPS:function(n){if(!n)return!1;var e=n.indexOf("://");return-1!==e&&"https"===n.substring(0,e).toLowerCase()},isHostRelativeUrl:function(n){return!n||!("//"===n.substring(0,2)||-1<n.indexOf("://"))},extractPath:function(n){if(!n)return"";s.href=n;n=s.pathname;return n="/"!==n.charAt(0)?"/"+n:n},joinPath:function(n,e){var t="/"===n.charAt(n.length-1),r="/"===e.charAt(0);return t&&r?n+e.substring(1):t||r?n+e:n+"/"+e},extractOrigin:function(n){if(!n)return"";if(s.href=n,s.origin)return s.origin;var e=n.indexOf("://"),e=-1!==e&&-1!==n.indexOf(":",e+3);return s.hostname?s.protocol+"//"+s.hostname+(e&&s.port?":"+s.port:""):""},toAbsoluteUrl:function(n){return s.href=n,s.href},arrayToJsonSafe:function(n){return(e=e||("function"==typeof Array.prototype.toJSON?function(n){var e=Array.prototype.toJSON;delete Array.prototype.toJSON;n=JSON.stringify(n);return Array.prototype.toJSON=e,n}:JSON.stringify))(n)},parseQuery:function(n){var e={};if(n)for(var t,r=n.split("&"),i=0;i<r.length;i++)if((t=r[i].split("="))[0])try{e[t[0]]=t[1]?decodeURIComponent(t[1]):""}catch(n){}return e},optionsWithDefaults:function(n,e){for(var t in n=n||{},e=e||{})e.hasOwnProperty(t)&&(n[t]=(void 0!==n[t]?n:e)[t]);return n},strToBytes:function(n){for(var e=new ArrayBuffer(n.length),t=new Uint8Array(e),r=0;r<n.length;r++)t[r]=n.charCodeAt(r);return e},strToUTF8Bytes:function(n){for(var e=[],t=0,r=0;r<n.length;r++){var i=n.charCodeAt(r);i<128?e[t++]=i:(i<2048?e[t++]=i>>6|192:(55296==(64512&i)&&r+1<n.length&&56320==(64512&n.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&n.charCodeAt(++r)),e[t++]=i>>18|240,e[t++]=i>>12&63|128):e[t++]=i>>12|224,e[t++]=i>>6&63|128),e[t++]=63&i|128)}return e},compositeFunctionBuilder:function(t){var r=[];return{add:function(n){return"function"==typeof n&&r.push(n),this},build:function(){return r.length?function(){for(var n,e=0;e<r.length;e++)if(n=r[e].apply(null,arguments),t&&n)return n}:U},buildBooleanAnd:function(){return r.length?function(){for(var n=!0,e=0;e<r.length;e++)n=n&&r[e].apply(null,arguments);return n}:function(){return!0}}}},transformTextSegments:function(n,e){for(var t,r=0,i="",o=/\s+/gi;t=o.exec(n);)i+=e(n.substring(r,t.index)),i+=t[0],r=t.index+t[0].length;return i+=e(n.substring(r))},waitForObjDefined:function(n,e,t,r){var i=!1;n[e]?t():Object.defineProperty(n,e,{configurable:!0,enumerable:!0,writeable:!0,get:function(){return this["_"+e]},set:function(n){this["_"+e]=n,i||(r&&(i=!0),t())}})},elementMatches:function(){if(!i.Element)return function(){return!1};var n=i.Element.prototype;return n.matches||(n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector||function(n){for(var e=(this.document||this.ownerDocument).querySelectorAll(n),t=e.length;0<=--t&&e.item(t)!==this;);return-1<t}),function(n,e){return n.matches(e)}}(),createAssociatedCss:function(n,e,t){var r=u.createElement("gb_adoptedStyle");r.setAttribute("gbrealid",t),r.setAttribute("gbAssociateId",e),r.setAttribute("gb-ignore",""),r.setAttribute("style","display: none");for(var i=n.cssRules,o="",a=0;a<i.length;a++)"string"==typeof i[a].cssText&&(o+=i[a].cssText);return r.textContent=o,r},arrayToLowerCase:function(n){return(n||[]).map(function(n){return n.toLowerCase()})},isElementShown:function(n){var e=getComputedStyle(n),t=n.getBoundingClientRect();return!("none"===e.display||"visible"!==e.visibility||e.opacity<.5||n.offsetWidth*n.offsetHeight+t.height*t.width<a.minAreaTocountElementAsShown)},waitForElementsOnPage:function(n,i,o){n.some(function(n){var e=u.querySelectorAll(n),t=!1;if(e.length){if(o)for(var r=0;r<e.length;++r)q.isElementShown(e[r])&&(t=!0);o&&!t||setTimeout(function(){i(e[0])},1)}return!(!e.length||o&&!t)})||setTimeout(q.waitForElementsOnPage.bind(null,n,i,o),a.waitForElementTime||1e3)},isStringMatch:function(n,e){var t;try{n=n.replace(/[-\/\\^$+?()|[\]{}]/g,"\\$&"),t=new RegExp("^"+n.split("*").join(".*")+"$")}catch(n){return logger.error("Exception occurred during parsing regular expression. Error: "+n.message,n),!1}if(t)return t.test(e)},isClickable:function(n){return!(!n||!n.tagName)&&(!!function(n){for(var e=11;e&&n;){if("BODY"===n.tagName||"HTML"===n.tagName)return;if(t[n.tagName])return 1;n=n.parentNode||n.host,e--}}(n)||("function"==typeof n.getAttribute&&!!n.getAttribute("onclick")||"function"==typeof n.onclick||!!n.getAttribute("href")))}}}(E,self,j,void 0!==H?H:{}),function(){(("undefined"!==typeof q?q:{})||window||this).pako=function r(i,o,a){function u(t,n){if(!o[t]){if(!i[t]){var e="function"==typeof require&&require;if(!n&&e)return e(t,!0);if(c)return c(t,!0);e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e=o[t]={exports:{}};i[t][0].call(e.exports,function(n){var e=i[t][1][n];return u(e||n)},e,e.exports,r,i,o,a)}return o[t].exports}for(var c="function"==typeof require&&require,n=0;n<a.length;n++)u(a[n]);return u}({1:[function(n,e,t){"use strict";var a=n("./zlib/deflate"),u=n("./utils/common"),c=n("./utils/strings"),r=n("./zlib/messages"),i=n("./zlib/zstream"),s=Object.prototype.toString,f=0,o=-1,d=0,l=8;function h(n){if(!(this instanceof h))return new h(n);this.options=u.assign({level:o,method:l,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},n||{});var e=this.options;if(e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0,(n=a.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy))!==f)throw new Error(r[n]);if(e.header&&a.deflateSetHeader(this.strm,e.header),e.dictionary){e="string"==typeof e.dictionary?c.string2buf(e.dictionary):"[object ArrayBuffer]"===s.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary;if((n=a.deflateSetDictionary(this.strm,e))!==f)throw new Error(r[n]);this._dict_set=!0}}function v(n,e){e=new h(e);if(e.push(n,!0),e.err)throw e.msg||r[e.err];return e.result}h.prototype.push=function(n,e){var t,r,i=this.strm,o=this.options.chunkSize;if(this.ended)return!1;r=e===~~e?e:!0===e?4:0,"string"==typeof n?i.input=c.string2buf(n):"[object ArrayBuffer]"===s.call(n)?i.input=new Uint8Array(n):i.input=n,i.next_in=0,i.avail_in=i.input.length;do{if(0===i.avail_out&&(i.output=new u.Buf8(o),i.next_out=0,i.avail_out=o),1!==(t=a.deflate(i,r))&&t!==f)return this.onEnd(t),!(this.ended=!0)}while(0!==i.avail_out&&(0!==i.avail_in||4!==r&&2!==r)||("string"===this.options.to?this.onData(c.buf2binstring(u.shrinkBuf(i.output,i.next_out))):this.onData(u.shrinkBuf(i.output,i.next_out))),(0<i.avail_in||0===i.avail_out)&&1!==t);return 4===r?(t=a.deflateEnd(this.strm),this.onEnd(t),this.ended=!0,t===f):2!==r||(this.onEnd(f),!(i.avail_out=0))},h.prototype.onData=function(n){this.chunks.push(n)},h.prototype.onEnd=function(n){n===f&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=u.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg},t.Deflate=h,t.deflate=v,t.deflateRaw=function(n,e){return(e=e||{}).raw=!0,v(n,e)},t.gzip=function(n,e){return(e=e||{}).gzip=!0,v(n,e)}},{"./utils/common":2,"./utils/strings":3,"./zlib/deflate":6,"./zlib/messages":7,"./zlib/zstream":9}],2:[function(n,e,t){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;t.assign=function(n){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var t=e.shift();if(t){if("object"!=typeof t)throw new TypeError(t+"must be non-object");for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])}}return n},t.shrinkBuf=function(n,e){return n.length===e?n:n.subarray?n.subarray(0,e):(n.length=e,n)};var i={arraySet:function(n,e,t,r,i){if(e.subarray&&n.subarray)n.set(e.subarray(t,t+r),i);else for(var o=0;o<r;o++)n[i+o]=e[t+o]},flattenChunks:function(n){for(var e,t,r,i=0,o=0,a=n.length;o<a;o++)i+=n[o].length;for(r=new Uint8Array(i),o=e=0,a=n.length;o<a;o++)t=n[o],r.set(t,e),e+=t.length;return r}},o={arraySet:function(n,e,t,r,i){for(var o=0;o<r;o++)n[i+o]=e[t+o]},flattenChunks:function(n){return[].concat.apply([],n)}};t.setTyped=function(n){n?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,i)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,o))},t.setTyped(r)},{}],3:[function(n,e,t){"use strict";var c=n("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(n){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(n){o=!1}for(var s=new c.Buf8(256),r=0;r<256;r++)s[r]=252<=r?6:248<=r?5:240<=r?4:224<=r?3:192<=r?2:1;function f(n,e){if(e<65537&&(n.subarray&&o||!n.subarray&&i))return String.fromCharCode.apply(null,c.shrinkBuf(n,e));for(var t="",r=0;r<e;r++)t+=String.fromCharCode(n[r]);return t}s[254]=s[254]=1,t.string2buf=function(n){for(var e,t,r,i,o=n.length,a=0,u=0;u<o;u++)55296==(64512&(t=n.charCodeAt(u)))&&u+1<o&&56320==(64512&(r=n.charCodeAt(u+1)))&&(t=65536+(t-55296<<10)+(r-56320),u++),a+=t<128?1:t<2048?2:t<65536?3:4;for(e=new c.Buf8(a),u=i=0;i<a;u++)55296==(64512&(t=n.charCodeAt(u)))&&u+1<o&&56320==(64512&(r=n.charCodeAt(u+1)))&&(t=65536+(t-55296<<10)+(r-56320),u++),t<128?e[i++]=t:(t<2048?e[i++]=192|t>>>6:(t<65536?e[i++]=224|t>>>12:(e[i++]=240|t>>>18,e[i++]=128|t>>>12&63),e[i++]=128|t>>>6&63),e[i++]=128|63&t);return e},t.buf2binstring=function(n){return f(n,n.length)},t.binstring2buf=function(n){for(var e=new c.Buf8(n.length),t=0,r=e.length;t<r;t++)e[t]=n.charCodeAt(t);return e},t.buf2string=function(n,e){for(var t,r,i=e||n.length,o=new Array(2*i),a=0,u=0;u<i;)if((t=n[u++])<128)o[a++]=t;else if(4<(r=s[t]))o[a++]=65533,u+=r-1;else{for(t&=2===r?31:3===r?15:7;1<r&&u<i;)t=t<<6|63&n[u++],r--;1<r?o[a++]=65533:t<65536?o[a++]=t:(t-=65536,o[a++]=55296|t>>10&1023,o[a++]=56320|1023&t)}return f(o,a)},t.utf8border=function(n,e){for(var t=(e=(e=e||n.length)>n.length?n.length:e)-1;0<=t&&128==(192&n[t]);)t--;return!(t<0)&&0!==t&&t+s[n[t]]>e?t:e}},{"./common":2}],4:[function(n,e,t){"use strict";e.exports=function(n,e,t,r){for(var i=65535&n|0,o=n>>>16&65535|0,a=0;0!==t;){for(a=2e3<t?2e3:t,t-=a;o=o+(i=i+e[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16|0}},{}],5:[function(n,e,t){"use strict";var u=function(){for(var n,e=[],t=0;t<256;t++){n=t;for(var r=0;r<8;r++)n=1&n?3988292384^n>>>1:n>>>1;e[t]=n}return e}();e.exports=function(n,e,t,r){var i=u,o=r+t;n^=-1;for(var a=r;a<o;a++)n=n>>>8^i[255&(n^e[a])];return-1^n}},{}],6:[function(n,e,t){"use strict";var u,d=n("../utils/common"),c=n("./trees"),l=n("./adler32"),h=n("./crc32"),r=n("./messages"),s=0,f=4,v=0,m=-2,g=-1,p=4,i=2,y=8,w=9,o=286,a=30,b=19,E=2*o+1,C=15,T=3,S=258,k=S+T+1,I=42,x=113,M=1,R=2,A=3,N=4;function D(n,e){return n.msg=r[e],e}function O(n){return(n<<1)-(4<n?9:0)}function _(n){for(var e=n.length;0<=--e;)n[e]=0}function L(n){var e=n.state,t=e.pending;0!==(t=t>n.avail_out?n.avail_out:t)&&(d.arraySet(n.output,e.pending_buf,e.pending_out,t,n.next_out),n.next_out+=t,e.pending_out+=t,n.total_out+=t,n.avail_out-=t,e.pending-=t,0===e.pending&&(e.pending_out=0))}function F(n,e){c._tr_flush_block(n,0<=n.block_start?n.block_start:-1,n.strstart-n.block_start,e),n.block_start=n.strstart,L(n.strm)}function P(n,e){n.pending_buf[n.pending++]=e}function B(n,e){n.pending_buf[n.pending++]=e>>>8&255,n.pending_buf[n.pending++]=255&e}function j(n,e){var t,r,i=n.max_chain_length,o=n.strstart,a=n.prev_length,u=n.nice_match,c=n.strstart>n.w_size-k?n.strstart-(n.w_size-k):0,s=n.window,f=n.w_mask,d=n.prev,l=n.strstart+S,h=s[o+a-1],v=s[o+a];n.prev_length>=n.good_match&&(i>>=2),u>n.lookahead&&(u=n.lookahead);do{if(s[(t=e)+a]===v&&s[t+a-1]===h&&s[t]===s[o]&&s[++t]===s[o+1]){for(o+=2,t++;s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&s[++o]===s[++t]&&o<l;);if(r=S-(l-o),o=l-S,a<r){if(n.match_start=e,u<=(a=r))break;h=s[o+a-1],v=s[o+a]}}}while((e=d[e&f])>c&&0!=--i);return a<=n.lookahead?a:n.lookahead}function U(n){var e,t,r,i,o,a,u,c,s,f=n.w_size;do{if(s=n.window_size-n.lookahead-n.strstart,n.strstart>=f+(f-k)){for(d.arraySet(n.window,n.window,f,f,0),n.match_start-=f,n.strstart-=f,n.block_start-=f,t=n.hash_size,e=t;r=n.head[--e],n.head[e]=f<=r?r-f:0,--t;);for(t=f,e=t;r=n.prev[--e],n.prev[e]=f<=r?r-f:0,--t;);s+=f}if(0===n.strm.avail_in)break;if(o=n.strm,a=n.window,u=n.strstart+n.lookahead,c=s,s=void 0,s=o.avail_in,t=0===(s=c<s?c:s)?0:(o.avail_in-=s,d.arraySet(a,o.input,o.next_in,s,u),1===o.state.wrap?o.adler=l(o.adler,a,s,u):2===o.state.wrap&&(o.adler=h(o.adler,a,s,u)),o.next_in+=s,o.total_in+=s,s),n.lookahead+=t,n.lookahead+n.insert>=T)for(i=n.strstart-n.insert,n.ins_h=n.window[i],n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+1])&n.hash_mask;n.insert&&(n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+T-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,n.insert--,!(n.lookahead+n.insert<T)););}while(n.lookahead<k&&0!==n.strm.avail_in)}function H(n,e){for(var t,r;;){if(n.lookahead<k){if(U(n),n.lookahead<k&&e===s)return M;if(0===n.lookahead)break}if(t=0,n.lookahead>=T&&(n.ins_h=(n.ins_h<<n.hash_shift^n.window[n.strstart+T-1])&n.hash_mask,t=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),0!==t&&n.strstart-t<=n.w_size-k&&(n.match_length=j(n,t)),n.match_length>=T)if(r=c._tr_tally(n,n.strstart-n.match_start,n.match_length-T),n.lookahead-=n.match_length,n.match_length<=n.max_lazy_match&&n.lookahead>=T){for(n.match_length--;n.strstart++,n.ins_h=(n.ins_h<<n.hash_shift^n.window[n.strstart+T-1])&n.hash_mask,t=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart,0!=--n.match_length;);n.strstart++}else n.strstart+=n.match_length,n.match_length=0,n.ins_h=n.window[n.strstart],n.ins_h=(n.ins_h<<n.hash_shift^n.window[n.strstart+1])&n.hash_mask;else r=c._tr_tally(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++;if(r&&(F(n,!1),0===n.strm.avail_out))return M}return n.insert=n.strstart<T-1?n.strstart:T-1,e===f?(F(n,!0),0===n.strm.avail_out?A:N):n.last_lit&&(F(n,!1),0===n.strm.avail_out)?M:R}function V(n,e){for(var t,r,i;;){if(n.lookahead<k){if(U(n),n.lookahead<k&&e===s)return M;if(0===n.lookahead)break}if(t=0,n.lookahead>=T&&(n.ins_h=(n.ins_h<<n.hash_shift^n.window[n.strstart+T-1])&n.hash_mask,t=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),n.prev_length=n.match_length,n.prev_match=n.match_start,n.match_length=T-1,0!==t&&n.prev_length<n.max_lazy_match&&n.strstart-t<=n.w_size-k&&(n.match_length=j(n,t),n.match_length<=5&&(1===n.strategy||n.match_length===T&&4096<n.strstart-n.match_start)&&(n.match_length=T-1)),n.prev_length>=T&&n.match_length<=n.prev_length){for(i=n.strstart+n.lookahead-T,r=c._tr_tally(n,n.strstart-1-n.prev_match,n.prev_length-T),n.lookahead-=n.prev_length-1,n.prev_length-=2;++n.strstart<=i&&(n.ins_h=(n.ins_h<<n.hash_shift^n.window[n.strstart+T-1])&n.hash_mask,t=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),0!=--n.prev_length;);if(n.match_available=0,n.match_length=T-1,n.strstart++,r&&(F(n,!1),0===n.strm.avail_out))return M}else if(n.match_available){if((r=c._tr_tally(n,0,n.window[n.strstart-1]))&&F(n,!1),n.strstart++,n.lookahead--,0===n.strm.avail_out)return M}else n.match_available=1,n.strstart++,n.lookahead--}return n.match_available&&(r=c._tr_tally(n,0,n.window[n.strstart-1]),n.match_available=0),n.insert=n.strstart<T-1?n.strstart:T-1,e===f?(F(n,!0),0===n.strm.avail_out?A:N):n.last_lit&&(F(n,!1),0===n.strm.avail_out)?M:R}function q(n,e,t,r,i){this.good_length=n,this.max_lazy=e,this.nice_length=t,this.max_chain=r,this.func=i}function z(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new d.Buf16(2*E),this.dyn_dtree=new d.Buf16(2*(2*a+1)),this.bl_tree=new d.Buf16(2*(2*b+1)),_(this.dyn_ltree),_(this.dyn_dtree),_(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new d.Buf16(C+1),this.heap=new d.Buf16(2*o+1),_(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new d.Buf16(2*o+1),_(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function W(n){var e;return n&&n.state?(n.total_in=n.total_out=0,n.data_type=i,(e=n.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?I:x,n.adler=2===e.wrap?0:1,e.last_flush=s,c._tr_init(e),v):D(n,m)}function X(n){var e=W(n);return e===v&&((n=n.state).window_size=2*n.w_size,_(n.head),n.max_lazy_match=u[n.level].max_lazy,n.good_match=u[n.level].good_length,n.nice_match=u[n.level].nice_length,n.max_chain_length=u[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=T-1,n.match_available=0,n.ins_h=0),e}function G(n,e,t,r,i,o){if(!n)return m;var a=1;if(e===g&&(e=6),r<0?(a=0,r=-r):15<r&&(a=2,r-=16),i<1||w<i||t!==y||r<8||15<r||e<0||9<e||o<0||p<o)return D(n,m);8===r&&(r=9);var u=new z;return(n.state=u).strm=n,u.wrap=a,u.gzhead=null,u.w_bits=r,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=i+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+T-1)/T),u.window=new d.Buf8(2*u.w_size),u.head=new d.Buf16(u.hash_size),u.prev=new d.Buf16(u.w_size),u.lit_bufsize=1<<i+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new d.Buf8(u.pending_buf_size),u.d_buf=+u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=o,u.method=t,X(n)}u=[new q(0,0,0,0,function(n,e){var t=65535;for(t>n.pending_buf_size-5&&(t=n.pending_buf_size-5);;){if(n.lookahead<=1){if(U(n),0===n.lookahead&&e===s)return M;if(0===n.lookahead)break}n.strstart+=n.lookahead,n.lookahead=0;var r=n.block_start+t;if((0===n.strstart||n.strstart>=r)&&(n.lookahead=n.strstart-r,n.strstart=r,F(n,!1),0===n.strm.avail_out))return M;if(n.strstart-n.block_start>=n.w_size-k&&(F(n,!1),0===n.strm.avail_out))return M}return n.insert=0,e===f?(F(n,!0),0===n.strm.avail_out?A:N):(n.strstart>n.block_start&&(F(n,!1),n.strm.avail_out),M)}),new q(4,4,8,4,H),new q(4,5,16,8,H),new q(4,6,32,32,H),new q(4,4,16,16,V),new q(8,16,32,32,V),new q(8,16,128,128,V),new q(8,32,128,256,V),new q(32,128,258,1024,V),new q(32,258,258,4096,V)],t.deflateInit=function(n,e){return G(n,e,y,15,8,0)},t.deflateInit2=G,t.deflateReset=X,t.deflateResetKeep=W,t.deflateSetHeader=function(n,e){return!n||!n.state||2!==n.state.wrap?m:(n.state.gzhead=e,v)},t.deflate=function(n,e){var t,r,i,o;if(!n||!n.state||5<e||e<0)return n?D(n,m):m;if(t=n.state,!n.output||!n.input&&0!==n.avail_in||666===t.status&&e!==f)return D(n,0===n.avail_out?-5:m);if(t.strm=n,a=t.last_flush,t.last_flush=e,t.status===I&&(2===t.wrap?(n.adler=0,P(t,31),P(t,139),P(t,8),t.gzhead?(P(t,(t.gzhead.text?1:0)+(t.gzhead.hcrc?2:0)+(t.gzhead.extra?4:0)+(t.gzhead.name?8:0)+(t.gzhead.comment?16:0)),P(t,255&t.gzhead.time),P(t,t.gzhead.time>>8&255),P(t,t.gzhead.time>>16&255),P(t,t.gzhead.time>>24&255),P(t,9===t.level?2:2<=t.strategy||t.level<2?4:0),P(t,255&t.gzhead.os),t.gzhead.extra&&t.gzhead.extra.length&&(P(t,255&t.gzhead.extra.length),P(t,t.gzhead.extra.length>>8&255)),t.gzhead.hcrc&&(n.adler=h(n.adler,t.pending_buf,t.pending,0)),t.gzindex=0,t.status=69):(P(t,0),P(t,0),P(t,0),P(t,0),P(t,0),P(t,9===t.level?2:2<=t.strategy||t.level<2?4:0),P(t,3),t.status=x)):(o=y+(t.w_bits-8<<4)<<8,o|=(2<=t.strategy||t.level<2?0:t.level<6?1:6===t.level?2:3)<<6,0!==t.strstart&&(o|=32),o+=31-o%31,t.status=x,B(t,o),0!==t.strstart&&(B(t,n.adler>>>16),B(t,65535&n.adler)),n.adler=1)),69===t.status)if(t.gzhead.extra){for(r=t.pending;t.gzindex<(65535&t.gzhead.extra.length)&&(t.pending!==t.pending_buf_size||(t.gzhead.hcrc&&t.pending>r&&(n.adler=h(n.adler,t.pending_buf,t.pending-r,r)),L(n),r=t.pending,t.pending!==t.pending_buf_size));)P(t,255&t.gzhead.extra[t.gzindex]),t.gzindex++;t.gzhead.hcrc&&t.pending>r&&(n.adler=h(n.adler,t.pending_buf,t.pending-r,r)),t.gzindex===t.gzhead.extra.length&&(t.gzindex=0,t.status=73)}else t.status=73;if(73===t.status)if(t.gzhead.name){r=t.pending;do{if(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>r&&(n.adler=h(n.adler,t.pending_buf,t.pending-r,r)),L(n),r=t.pending,t.pending===t.pending_buf_size)){i=1;break}}while(i=t.gzindex<t.gzhead.name.length?255&t.gzhead.name.charCodeAt(t.gzindex++):0,P(t,i),0!==i);t.gzhead.hcrc&&t.pending>r&&(n.adler=h(n.adler,t.pending_buf,t.pending-r,r)),0===i&&(t.gzindex=0,t.status=91)}else t.status=91;if(91===t.status)if(t.gzhead.comment){r=t.pending;do{if(t.pending===t.pending_buf_size&&(t.gzhead.hcrc&&t.pending>r&&(n.adler=h(n.adler,t.pending_buf,t.pending-r,r)),L(n),r=t.pending,t.pending===t.pending_buf_size)){i=1;break}}while(i=t.gzindex<t.gzhead.comment.length?255&t.gzhead.comment.charCodeAt(t.gzindex++):0,P(t,i),0!==i);t.gzhead.hcrc&&t.pending>r&&(n.adler=h(n.adler,t.pending_buf,t.pending-r,r)),0===i&&(t.status=103)}else t.status=103;if(103===t.status&&(t.gzhead.hcrc?(t.pending+2>t.pending_buf_size&&L(n),t.pending+2<=t.pending_buf_size&&(P(t,255&n.adler),P(t,n.adler>>8&255),n.adler=0,t.status=x)):t.status=x),0!==t.pending){if(L(n),0===n.avail_out)return t.last_flush=-1,v}else if(0===n.avail_in&&O(e)<=O(a)&&e!==f)return D(n,-5);if(666===t.status&&0!==n.avail_in)return D(n,-5);if(0!==n.avail_in||0!==t.lookahead||e!==s&&666!==t.status){var a=2===t.strategy?function(n,e){for(var t;;){if(0===n.lookahead&&(U(n),0===n.lookahead)){if(e===s)return M;break}if(n.match_length=0,t=c._tr_tally(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++,t&&(F(n,!1),0===n.strm.avail_out))return M}return n.insert=0,e===f?(F(n,!0),0===n.strm.avail_out?A:N):n.last_lit&&(F(n,!1),0===n.strm.avail_out)?M:R}(t,e):3===t.strategy?function(n,e){for(var t,r,i,o,a=n.window;;){if(n.lookahead<=S){if(U(n),n.lookahead<=S&&e===s)return M;if(0===n.lookahead)break}if(n.match_length=0,n.lookahead>=T&&0<n.strstart&&(r=a[i=n.strstart-1])===a[++i]&&r===a[++i]&&r===a[++i]){for(o=n.strstart+S;r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&r===a[++i]&&i<o;);n.match_length=S-(o-i),n.match_length>n.lookahead&&(n.match_length=n.lookahead)}if(n.match_length>=T?(t=c._tr_tally(n,1,n.match_length-T),n.lookahead-=n.match_length,n.strstart+=n.match_length,n.match_length=0):(t=c._tr_tally(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++),t&&(F(n,!1),0===n.strm.avail_out))return M}return n.insert=0,e===f?(F(n,!0),0===n.strm.avail_out?A:N):n.last_lit&&(F(n,!1),0===n.strm.avail_out)?M:R}(t,e):u[t.level].func(t,e);if(a!==A&&a!==N||(t.status=666),a===M||a===A)return 0===n.avail_out&&(t.last_flush=-1),v;if(a===R&&(1===e?c._tr_align(t):5!==e&&(c._tr_stored_block(t,0,0,!1),3===e&&(_(t.head),0===t.lookahead&&(t.strstart=0,t.block_start=0,t.insert=0))),L(n),0===n.avail_out))return t.last_flush=-1,v}return e!==f?v:t.wrap<=0?1:(2===t.wrap?(P(t,255&n.adler),P(t,n.adler>>8&255),P(t,n.adler>>16&255),P(t,n.adler>>24&255),P(t,255&n.total_in),P(t,n.total_in>>8&255),P(t,n.total_in>>16&255),P(t,n.total_in>>24&255)):(B(t,n.adler>>>16),B(t,65535&n.adler)),L(n),0<t.wrap&&(t.wrap=-t.wrap),0!==t.pending?v:1)},t.deflateEnd=function(n){var e;return n&&n.state?(e=n.state.status)!==I&&69!==e&&73!==e&&91!==e&&103!==e&&e!==x&&666!==e?D(n,m):(n.state=null,e===x?D(n,-3):v):m},t.deflateSetDictionary=function(n,e){var t,r,i,o,a,u,c,s=e.length;if(!n||!n.state)return m;if(2===(o=(t=n.state).wrap)||1===o&&t.status!==I||t.lookahead)return m;for(1===o&&(n.adler=l(n.adler,e,s,0)),t.wrap=0,s>=t.w_size&&(0===o&&(_(t.head),t.strstart=0,t.block_start=0,t.insert=0),c=new d.Buf8(t.w_size),d.arraySet(c,e,s-t.w_size,t.w_size,0),e=c,s=t.w_size),a=n.avail_in,u=n.next_in,c=n.input,n.avail_in=s,n.next_in=0,n.input=e,U(t);t.lookahead>=T;){for(r=t.strstart,i=t.lookahead-(T-1);t.ins_h=(t.ins_h<<t.hash_shift^t.window[r+T-1])&t.hash_mask,t.prev[r&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=r,r++,--i;);t.strstart=r,t.lookahead=T-1,U(t)}return t.strstart+=t.lookahead,t.block_start=t.strstart,t.insert=t.lookahead,t.lookahead=0,t.match_length=t.prev_length=T-1,t.match_available=0,n.next_in=u,n.input=c,n.avail_in=a,t.wrap=o,v},t.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":2,"./adler32":4,"./crc32":5,"./messages":7,"./trees":8}],7:[function(n,e,t){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],8:[function(n,e,t){"use strict";var i=n("../utils/common"),u=0,c=1;function r(n){for(var e=n.length;0<=--e;)n[e]=0}var o=0,a=29,s=256,f=s+1+a,d=30,l=19,g=2*f+1,p=15,h=16,v=7,m=256,y=16,w=17,b=18,E=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],T=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],k=new Array(2*(f+2));r(k);var I=new Array(2*d);r(I);var x=new Array(512);r(x);var M=new Array(256);r(M);var R=new Array(a);r(R);var A,N,D,O=new Array(d);function _(n,e,t,r,i){this.static_tree=n,this.extra_bits=e,this.extra_base=t,this.elems=r,this.max_length=i,this.has_stree=n&&n.length}function L(n,e){this.dyn_tree=n,this.max_code=0,this.stat_desc=e}function F(n){return n<256?x[n]:x[256+(n>>>7)]}function P(n,e){n.pending_buf[n.pending++]=255&e,n.pending_buf[n.pending++]=e>>>8&255}function B(n,e,t){n.bi_valid>h-t?(n.bi_buf|=e<<n.bi_valid&65535,P(n,n.bi_buf),n.bi_buf=e>>h-n.bi_valid,n.bi_valid+=t-h):(n.bi_buf|=e<<n.bi_valid&65535,n.bi_valid+=t)}function j(n,e,t){B(n,t[2*e],t[2*e+1])}function U(n,e){for(var t=0;t|=1&n,n>>>=1,t<<=1,0<--e;);return t>>>1}function H(n,e,t){for(var r,i=new Array(p+1),o=0,a=1;a<=p;a++)i[a]=o=o+t[a-1]<<1;for(r=0;r<=e;r++){var u=n[2*r+1];0!==u&&(n[2*r]=U(i[u]++,u))}}function V(n){for(var e=0;e<f;e++)n.dyn_ltree[2*e]=0;for(e=0;e<d;e++)n.dyn_dtree[2*e]=0;for(e=0;e<l;e++)n.bl_tree[2*e]=0;n.dyn_ltree[2*m]=1,n.opt_len=n.static_len=0,n.last_lit=n.matches=0}function q(n){8<n.bi_valid?P(n,n.bi_buf):0<n.bi_valid&&(n.pending_buf[n.pending++]=n.bi_buf),n.bi_buf=0,n.bi_valid=0}function z(n,e,t,r){var i=2*e,o=2*t;return n[i]<n[o]||n[i]===n[o]&&r[e]<=r[t]}function W(n,e,t){for(var r=n.heap[t],i=t<<1;i<=n.heap_len&&(i<n.heap_len&&z(e,n.heap[i+1],n.heap[i],n.depth)&&i++,!z(e,r,n.heap[i],n.depth));)n.heap[t]=n.heap[i],t=i,i<<=1;n.heap[t]=r}function X(n,e,t){var r,i,o,a,u=0;if(0!==n.last_lit)for(;r=n.pending_buf[n.d_buf+2*u]<<8|n.pending_buf[n.d_buf+2*u+1],i=n.pending_buf[n.l_buf+u],u++,0==r?j(n,i,e):(j(n,(o=M[i])+s+1,e),0!==(a=E[o])&&B(n,i-=R[o],a),j(n,o=F(--r),t),0!==(a=C[o])&&B(n,r-=O[o],a)),u<n.last_lit;);j(n,m,e)}function G(n,m){var e,t,r,i=m.dyn_tree,o=m.stat_desc.static_tree,a=m.stat_desc.has_stree,u=m.stat_desc.elems,c=-1;for(n.heap_len=0,n.heap_max=g,e=0;e<u;e++)0!==i[2*e]?(n.heap[++n.heap_len]=c=e,n.depth[e]=0):i[2*e+1]=0;for(;n.heap_len<2;)i[2*(r=n.heap[++n.heap_len]=c<2?++c:0)]=1,n.depth[r]=0,n.opt_len--,a&&(n.static_len-=o[2*r+1]);for(m.max_code=c,e=n.heap_len>>1;1<=e;e--)W(n,i,e);for(r=u;e=n.heap[1],n.heap[1]=n.heap[n.heap_len--],W(n,i,1),t=n.heap[1],n.heap[--n.heap_max]=e,n.heap[--n.heap_max]=t,i[2*r]=i[2*e]+i[2*t],n.depth[r]=(n.depth[e]>=n.depth[t]?n.depth[e]:n.depth[t])+1,i[2*e+1]=i[2*t+1]=r,n.heap[1]=r++,W(n,i,1),2<=n.heap_len;);n.heap[--n.heap_max]=n.heap[1],function(n){for(var e,t,r,i,o,a=m.dyn_tree,u=m.max_code,c=m.stat_desc.static_tree,s=m.stat_desc.has_stree,f=m.stat_desc.extra_bits,d=m.stat_desc.extra_base,l=m.stat_desc.max_length,h=0,v=0;v<=p;v++)n.bl_count[v]=0;for(a[2*n.heap[n.heap_max]+1]=0,e=n.heap_max+1;e<g;e++)l<(v=a[2*a[2*(t=n.heap[e])+1]+1]+1)&&(v=l,h++),a[2*t+1]=v,u<t||(n.bl_count[v]++,i=0,d<=t&&(i=f[t-d]),o=a[2*t],n.opt_len+=o*(v+i),s&&(n.static_len+=o*(c[2*t+1]+i)));if(0!==h){do{for(v=l-1;0===n.bl_count[v];)v--}while(n.bl_count[v]--,n.bl_count[v+1]+=2,n.bl_count[l]--,0<(h-=2));for(v=l;0!==v;v--)for(t=n.bl_count[v];0!==t;)u<(r=n.heap[--e])||(a[2*r+1]!==v&&(n.opt_len+=(v-a[2*r+1])*a[2*r],a[2*r+1]=v),t--)}}(n),H(i,c,n.bl_count)}function J(n,e,t){var r,i,o=-1,a=e[1],u=0,c=7,s=4;for(0===a&&(c=138,s=3),e[2*(t+1)+1]=65535,r=0;r<=t;r++)i=a,a=e[2*(r+1)+1],++u<c&&i===a||(u<s?n.bl_tree[2*i]+=u:0!==i?(i!==o&&n.bl_tree[2*i]++,n.bl_tree[2*y]++):u<=10?n.bl_tree[2*w]++:n.bl_tree[2*b]++,o=i,s=(u=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4))}function K(n,e,t){var r,i,o=-1,a=e[1],u=0,c=7,s=4;for(0===a&&(c=138,s=3),r=0;r<=t;r++)if(i=a,a=e[2*(r+1)+1],!(++u<c&&i===a)){if(u<s)for(;j(n,i,n.bl_tree),0!=--u;);else 0!==i?(i!==o&&(j(n,i,n.bl_tree),u--),j(n,y,n.bl_tree),B(n,u-3,2)):u<=10?(j(n,w,n.bl_tree),B(n,u-3,3)):(j(n,b,n.bl_tree),B(n,u-11,7));o=i,s=(u=0)===a?(c=138,3):i===a?(c=6,3):(c=7,4)}}r(O);var Q=!1;function Y(n,e,t,r){B(n,(o<<1)+(r?1:0),3),r=e,e=t,t=!0,q(n=n),t&&(P(n,e),P(n,~e)),i.arraySet(n.pending_buf,n.window,r,e,n.pending),n.pending+=e}t._tr_init=function(n){Q||(function(){for(var n,e,t,r=new Array(p+1),i=0,o=0;o<a-1;o++)for(R[o]=i,n=0;n<1<<E[o];n++)M[i++]=o;for(M[i-1]=o,o=t=0;o<16;o++)for(O[o]=t,n=0;n<1<<C[o];n++)x[t++]=o;for(t>>=7;o<d;o++)for(O[o]=t<<7,n=0;n<1<<C[o]-7;n++)x[256+t++]=o;for(e=0;e<=p;e++)r[e]=0;for(n=0;n<=143;)k[2*n+1]=8,n++,r[8]++;for(;n<=255;)k[2*n+1]=9,n++,r[9]++;for(;n<=279;)k[2*n+1]=7,n++,r[7]++;for(;n<=287;)k[2*n+1]=8,n++,r[8]++;for(H(k,f+1,r),n=0;n<d;n++)I[2*n+1]=5,I[2*n]=U(n,5);A=new _(k,E,s+1,f,p),N=new _(I,C,0,d,p),D=new _(new Array(0),T,0,l,v)}(),Q=!0),n.l_desc=new L(n.dyn_ltree,A),n.d_desc=new L(n.dyn_dtree,N),n.bl_desc=new L(n.bl_tree,D),n.bi_buf=0,n.bi_valid=0,V(n)},t._tr_stored_block=Y,t._tr_flush_block=function(n,e,t,r){var i,o,a=0;0<n.level?(2===n.strm.data_type&&(n.strm.data_type=function(n){for(var e=4093624447,t=0;t<=31;t++,e>>>=1)if(1&e&&0!==n.dyn_ltree[2*t])return u;if(0!==n.dyn_ltree[18]||0!==n.dyn_ltree[20]||0!==n.dyn_ltree[26])return c;for(t=32;t<s;t++)if(0!==n.dyn_ltree[2*t])return c;return u}(n)),G(n,n.l_desc),G(n,n.d_desc),a=function(n){var e;for(J(n,n.dyn_ltree,n.l_desc.max_code),J(n,n.dyn_dtree,n.d_desc.max_code),G(n,n.bl_desc),e=l-1;3<=e&&0===n.bl_tree[2*S[e]+1];e--);return n.opt_len+=3*(e+1)+5+5+4,e}(n),i=n.opt_len+3+7>>>3,(o=n.static_len+3+7>>>3)<=i&&(i=o)):i=o=t+5,t+4<=i&&-1!==e?Y(n,e,t,r):4===n.strategy||o===i?(B(n,2+(r?1:0),3),X(n,k,I)):(B(n,4+(r?1:0),3),function(n,e,t,r){var i;for(B(n,e-257,5),B(n,t-1,5),B(n,r-4,4),i=0;i<r;i++)B(n,n.bl_tree[2*S[i]+1],3);K(n,n.dyn_ltree,e-1),K(n,n.dyn_dtree,t-1)}(n,n.l_desc.max_code+1,n.d_desc.max_code+1,a+1),X(n,n.dyn_ltree,n.dyn_dtree)),V(n),r&&q(n)},t._tr_tally=function(n,e,t){return n.pending_buf[n.d_buf+2*n.last_lit]=e>>>8&255,n.pending_buf[n.d_buf+2*n.last_lit+1]=255&e,n.pending_buf[n.l_buf+n.last_lit]=255&t,n.last_lit++,0===e?n.dyn_ltree[2*t]++:(n.matches++,e--,n.dyn_ltree[2*(M[t]+s+1)]++,n.dyn_dtree[2*F(e)]++),n.last_lit===n.lit_bufsize-1},t._tr_align=function(n){B(n,2,3),j(n,m,k),16===(n=n).bi_valid?(P(n,n.bi_buf),n.bi_buf=0,n.bi_valid=0):8<=n.bi_valid&&(n.pending_buf[n.pending++]=255&n.bi_buf,n.bi_buf>>=8,n.bi_valid-=8)}},{"../utils/common":2}],9:[function(n,e,t){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}]},{},[1])(1)}(),function(e,n){"use strict";function t(n){var e=n.charCodeAt(0);return e<128?n:e<2048?l(192|e>>>6)+l(128|63&e):l(224|e>>>12&15)+l(128|e>>>6&63)+l(128|63&e)}function r(n){return n.replace(/[^\x00-\x7F]/g,t)}function i(n){var e=[0,2,1][n.length%3],n=n.charCodeAt(0)<<16|(1<n.length?n.charCodeAt(1):0)<<8|(2<n.length?n.charCodeAt(2):0);return[f.charAt(n>>>18),f.charAt(n>>>12&63),2<=e?"=":f.charAt(n>>>6&63),1<=e?"=":f.charAt(63&n)].join("")}function o(n){return h(r(n))}function a(n,e){return e?o(n).replace(/[+\/]/g,function(n){return"+"==n?"-":"_"}):o(n)}function u(n){return l(n.length<3?(31&n.charCodeAt(0))<<6|63&n.charCodeAt(1):(15&n.charCodeAt(0))<<12|(63&n.charCodeAt(1))<<6|63&n.charCodeAt(2))}function c(n){return n.replace(m,u)}function s(n){return n=n.replace(/[-_]/g,function(n){return"-"==n?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""),c(v(n))}var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=function(n){for(var e={},t=0,r=n.length;t<r;t++)e[n.charAt(t)]=t;return e}(f),l=String.fromCharCode,h="function"==typeof e.btoa?function(n){return e.btoa(n)}:function(n){return n.replace(/[\s\S]{1,3}/g,i)},v="function"==typeof e.atob?function(n){return e.atob(n)}:function(n){return n.replace(/[\s\S]{1,4}/g,g)},m=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}/g,g=function(n){var e=n.length,t=e%4,n=(0<e?d[n.charAt(0)]<<18:0)|(1<e?d[n.charAt(1)]<<12:0)|(2<e?d[n.charAt(2)]<<6:0)|(3<e?d[n.charAt(3)]:0),n=[l(n>>>16),l(n>>>8&255),l(255&n)];return n.length-=[0,0,2,1][t],n.join("")};n.Base64={atob:v,btoa:h,fromBase64:s,toBase64:a,bytesToBase64:function(n){for(var e,t="",r=0;r<n.length;r+=3)e=(252&n[r])>>2,t+=f.charAt(e),e=(3&n[r])<<4,r+1<n.length?(e|=(240&n[r+1])>>4,t+=f.charAt(e),e=(15&n[r+1])<<2,r+2<n.length?(e|=(192&n[r+2])>>6,t+=f.charAt(e),e=63&n[r+2],t+=f.charAt(e)):(t+=f.charAt(e),t+="=")):(t+=f.charAt(e),t+="==");return t},utob:r,encode:a,encodeURI:function(n){return a(n,!0)},btou:c,decode:s}}(self,void 0!==q?q:{}),void 0!==n&&(m=Fe(H)),Pe.prototype={toJSON:function(){if(!(this instanceof Pe))throw new Error("Illegal invocation");return Be(this,this)}},je.prototype=(mn=Object.create(Pe.prototype),je.prototype.constructor=je,mn.toString=function(){return this.type},mn.setExtraInfo=function(n,e){E.isUndefined(e)||(this.extraInfo[n]=e)},mn.getExtraInfo=function(n){if(E.isUndefined(this.extraInfo))return null;n=this.extraInfo[n];return void 0===n?null:n},mn.setDebugInfo=function(n){E.isUndefined(this.debugInfo)&&(this.debugInfo={}),this.debugInfo=n},mn.getDebugInfo=function(){return this.debugInfo},mn.getSubPage=function(){return this.subPage},mn.addHybridActionDataItem=function(n,e){E.isUndefined(e)?logger.error("Failed setting value for hybrid action data item: "+n+". Value is undefined"):(E.isUndefined(this.hybridActionData)&&(this.hybridActionData={}),this.hybridActionData[n]=e)},mn.getdHybridActionData=function(){return this.hybridActionData},mn.nextId=1,mn),je.fromJSON=function(n){return n.constructor=je,Object.setPrototypeOf(n,je.prototype),n},je.prototype.FOCUS_TIME_ATTR="focusTime",je.prototype.AUTO_COMPLETE_ATTR="autoComplete",je.prototype.VISUAL_NAME="visualName",je.prototype.PAGE_NAME="pageName",je.prototype.WINDOW_DEPTH="windowDepth",je.prototype.CONTAINER_ID="containerId",je.prototype.PARENT_PAGE_ID="parentPageId",je.prototype.HISTORY_LENGTH="historyLen",je.prototype.TIME_SINCE_LAST_EVENT="timeSinceLastIdle",je.prototype.COORDINATE_ATTR="coordinate",je.prototype.SCROLL_REACH="scrollReach",je.prototype.MOVES_TRUNCATED="truncated",je.prototype.LOST_EVENTS_NUM="lostEvents",je.prototype.TP_INTEGRATION_TYPE="tpIntegrationType",je.prototype.EXTERNAL_ID="externalId",je.prototype.SYNC_COORDINATE="syncCoordinates",je.prototype.RAGE_SEQUENCE="rageSequence",je.prototype.INDEX_IN_RAGE="indexInRage",je.prototype.ZOOM="zoom",je.prototype.MOBILE_HYBRID_ID="mobileHybridId",je.prototype.DETECTOR_CONFIG_ID="detectorCfg",je.prototype.AUTO_MASKING="autoMasking",je.prototype.SCROLL_DEBOUNCED="scrollDebounced",je.prototype.HOST_SELECTOR_PATH="hostSelectorPath",je.prototype.SNAPSHOT_FUSE="snapshotFuse",je.prototype.EFFECTIVE_CONNECTION_TYPE="ect",je.prototype.RTT="rtt",je.prototype.PROVIDER_NAME="providerName",je.prototype.METADATA_ONLY="MetaDataOnly",je.prototype.IS_FIRST_CLICK="isFirstClick",je.prototype.IS_CLICKABLE="isClickable",je.prototype.SELECTOR_ACTION_COUNT="selectorActionCount",je.prototype.EVENT_ID="eventId",je.prototype.DEBUG_UNCONFIRMED_BEACONS="unconfirmedBeacons",je.prototype.FINAL_CANCELLATION="finalCancellation",je.prototype.ABORT_ON_TIMEOUT="abortOnTimeout",je.prototype.DEBUG_STORAGE_PENDING="storagePendingBeacons",je.prototype.FAIL_REQUEST_STATUS="failedWithStatus",je.prototype.FAILED_STORAGE_FLUSH_BEACONS="failedStorageFlushBeacons",je.prototype.STORAGE_SIZE_EXCEED="storageSizeExceed",je.prototype.FAILED_SEND_FROM_STORAGE="failedSendFromStorage",je.prototype.SENDING_FROM_STORAGE="sendingFromStorage",je.prototype.RETRIED="failed",je.prototype.DEVTOOLS_VALUES="devToolsValues",je.prototype.DEBUG_PAGE_SN="pageSn",je.prototype.DEBUG_BROWSER_TAB_ID="browserTabId",je.prototype.USING_WORKER="usingWorker",je.prototype.NAVIGATION_TIMING="navigationTiming",je.prototype.CURRENT_VALUE="currentValue",je.prototype.OLD_VALUE="oldValue",je.prototype.ERROR_DATA="errorData",void 0!==m&&(je.prototype.extraInfoAttrs=[{name:je.prototype.FOCUS_TIME_ATTR,encodeName:"ft",encodeFunc:m.encodeNumber,encodeCode:M.dictionary.encodeEncodingType("cd_number")},{name:je.prototype.AUTO_COMPLETE_ATTR,encodeName:"ac",encodeFunc:m.encodeBoolean,encodeCode:M.dictionary.encodeEncodingType("cd_boolean")},{name:je.prototype.VISUAL_NAME,encodeName:"vn",encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.PAGE_NAME,encodeName:je.prototype.PAGE_NAME,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.WINDOW_DEPTH,encodeName:je.prototype.WINDOW_DEPTH,encodeFunc:m.encodeNumber,encodeCode:M.dictionary.encodeEncodingType("cd_number")},{name:je.prototype.CONTAINER_ID,encodeName:je.prototype.CONTAINER_ID,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.PARENT_PAGE_ID,encodeName:je.prototype.PARENT_PAGE_ID,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.HISTORY_LENGTH,encodeName:je.prototype.HISTORY_LENGTH,encodeFunc:m.encodeNumber,encodeCode:M.dictionary.encodeEncodingType("cd_number")},{name:je.prototype.TIME_SINCE_LAST_EVENT,encodeName:"tl",encodeFunc:m.encodeNumber,encodeCode:M.dictionary.encodeEncodingType("cd_number")},{name:je.prototype.COORDINATE_ATTR,encodeName:"co",encodeFunc:m.encodeCoordinate64,encodeCode:M.dictionary.encodeEncodingType("cd_coordinate")},{name:je.prototype.SCROLL_REACH,encodeName:"sr",encodeFunc:m.encodeNumber,encodeCode:M.dictionary.encodeEncodingType("cd_number")},{name:je.prototype.MOVES_TRUNCATED,encodeName:"tr",encodeFunc:m.encodeBoolean,encodeCode:M.dictionary.encodeEncodingType("cd_boolean")},{name:je.prototype.LOST_EVENTS_NUM,encodeName:"le",encodeFunc:m.encodeNumber,encodeCode:M.dictionary.encodeEncodingType("cd_number")},{name:je.prototype.TP_INTEGRATION_TYPE,encodeName:"tp",encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.EXTERNAL_ID,encodeName:"ei",encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.SYNC_COORDINATE,encodeName:"sy",encodeFunc:m.encodeCoordinate64,encodeCode:M.dictionary.encodeEncodingType("cd_coordinate")},{name:je.prototype.RAGE_SEQUENCE,encodeName:je.prototype.RAGE_SEQUENCE,encodeFunc:m.encodeNumber,encodeCode:M.dictionary.encodeEncodingType("cd_number")},{name:je.prototype.INDEX_IN_RAGE,encodeName:je.prototype.INDEX_IN_RAGE,encodeFunc:m.encodeNumber,encodeCode:M.dictionary.encodeEncodingType("cd_number")},{name:je.prototype.ZOOM,encodeName:"zo",encodeFunc:m.encodeNumber,encodeCode:M.dictionary.encodeEncodingType("cd_number")},{name:je.prototype.MOBILE_HYBRID_ID,encodeName:je.prototype.MOBILE_HYBRID_ID,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.DETECTOR_CONFIG_ID,encodeName:je.prototype.DETECTOR_CONFIG_ID,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.AUTO_MASKING,encodeName:je.prototype.AUTO_MASKING,encodeFunc:m.encodeBoolean,encodeCode:M.dictionary.encodeEncodingType("cd_boolean")},{name:je.prototype.SCROLL_DEBOUNCED,encodeName:je.prototype.SCROLL_DEBOUNCED,encodeFunc:m.encodeBoolean,encodeCode:M.dictionary.encodeEncodingType("cd_boolean")},{name:je.prototype.HOST_SELECTOR_PATH,encodeName:je.prototype.HOST_SELECTOR_PATH,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.SELECTOR_ACTION_COUNT,encodeName:je.prototype.SELECTOR_ACTION_COUNT,encodeFunc:m.encodeNumber,encodeCode:M.dictionary.encodeEncodingType("cd_number")},{name:je.prototype.EVENT_ID,encodeName:je.prototype.EVENT_ID,encodeFunc:m.encodeNumber,encodeCode:M.dictionary.encodeEncodingType("cd_number")},{name:je.prototype.DEBUG_UNCONFIRMED_BEACONS,encodeName:je.prototype.DEBUG_UNCONFIRMED_BEACONS,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.FINAL_CANCELLATION,encodeName:je.prototype.FINAL_CANCELLATION,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.ABORT_ON_TIMEOUT,encodeName:je.prototype.ABORT_ON_TIMEOUT,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.DEBUG_STORAGE_PENDING,encodeName:je.prototype.DEBUG_STORAGE_PENDING,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.FAIL_REQUEST_STATUS,encodeName:je.prototype.FAIL_REQUEST_STATUS,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.FAILED_STORAGE_FLUSH_BEACONS,encodeName:je.prototype.FAILED_STORAGE_FLUSH_BEACONS,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.STORAGE_SIZE_EXCEED,encodeName:je.prototype.STORAGE_SIZE_EXCEED,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.FAILED_SEND_FROM_STORAGE,encodeName:je.prototype.FAILED_SEND_FROM_STORAGE,encodeFunc:m.encodeBoolean,encodeCode:M.dictionary.encodeEncodingType("cd_boolean")},{name:je.prototype.SENDING_FROM_STORAGE,encodeName:je.prototype.SENDING_FROM_STORAGE,encodeFunc:m.encodeBoolean,encodeCode:M.dictionary.encodeEncodingType("cd_boolean")},{name:je.prototype.RETRIED,encodeName:je.prototype.RETRIED,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.DEVTOOLS_VALUES,encodeName:je.prototype.DEVTOOLS_VALUES,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.DEBUG_PAGE_SN,encodeName:je.prototype.DEBUG_PAGE_SN,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.DEBUG_BROWSER_TAB_ID,encodeName:je.prototype.DEBUG_BROWSER_TAB_ID,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.USING_WORKER,encodeName:je.prototype.USING_WORKER,encodeFunc:m.encodeBoolean,encodeCode:M.dictionary.encodeEncodingType("cd_boolean")},{name:je.prototype.NAVIGATION_TIMING,encodeName:je.prototype.NAVIGATION_TIMING,encodeFunc:m.encodeNavigationTiming.gbBind(null,"_"),encodeCode:M.dictionary.encodeEncodingType("cd_navtiming")},{name:je.prototype.OLD_VALUE,encodeName:je.prototype.OLD_VALUE,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.CURRENT_VALUE,encodeName:je.prototype.CURRENT_VALUE,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.SNAPSHOT_FUSE,encodeName:je.prototype.SNAPSHOT_FUSE,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.EFFECTIVE_CONNECTION_TYPE,encodeName:je.prototype.EFFECTIVE_CONNECTION_TYPE,encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.RTT,encodeName:je.prototype.RTT,encodeFunc:m.encodeNumber,encodeCode:M.dictionary.encodeEncodingType("cd_number")},{name:je.prototype.PROVIDER_NAME,encodeName:"pn",encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.ERROR_DATA,encodeName:"ed",encodeFunc:m.encodeString,encodeCode:M.dictionary.encodeEncodingType("cd_string")},{name:je.prototype.METADATA_ONLY,encodeName:je.prototype.METADATA_ONLY,encodeFunc:m.encodeBoolean,encodeCode:M.dictionary.encodeEncodingType("cd_boolean")},{name:je.prototype.IS_FIRST_CLICK,encodeName:je.prototype.IS_FIRST_CLICK,encodeFunc:m.encodeBoolean,encodeCode:M.dictionary.encodeEncodingType("cd_boolean")},{name:je.prototype.IS_CLICKABLE,encodeName:je.prototype.IS_CLICKABLE,encodeFunc:m.encodeBoolean,encodeCode:M.dictionary.encodeEncodingType("cd_boolean")}]),Ue.prototype=(mn=Object.create(Pe.prototype),Ue.prototype.constructor=Ue,mn.toString=function(){return"EventSet {id:"+this.id+" Events:"+this.events.length+"}"},mn),Ue.fromJSON=function(n){return n.constructor=Ue,Object.setPrototypeOf(n,Ue.prototype),n.events.forEach(function(n){je.fromJSON(n)}),n},Ue.reduceByMetadata=function(n){for(var e,t=1,r={},i=0;i<n.length;i++)n[i].metadata._id=n[i].metadata._id||t++,r[e=n[i].metadata._id]?Array.prototype.push.apply(r[e].events,n[i].events):r[e]=n[i];var o=[];for(e in r)r.hasOwnProperty(e)&&o.push(r[e]);return o},void 0!==n&&(l=function(n,o){var e,t="object"==typeof n.glassboxMobileBridge&&"function"==typeof n.glassboxMobileBridge.getContext?n.glassboxMobileBridge.getContext():U;if("string"==typeof t)try{e=JSON.parse(t)}catch(n){}return{sessionId:(e=e||{}).sessionId,config:e.config||{},override:function(n,e,t){var r=n,i=e,e="reportURI";return"mobileReportURI"!==n&&e!==n||(t=t[e])!==U&&(r=e,e=o.extractOrigin(t),t=0===i.indexOf("http")?o.extractPath(i):i,i=e.concat(t)),{key:r,value:i}}}}(n,q)),Ve.prototype.add=function(n,e){return this._updates.push({ref:e,update:n}),this},He.INITIAL_COMPRESSION_FACTOR=.25,He.MINIMAL_COMPRESSION_FACTOR=.05,(g={idle:"encodeNumber",document:"encodePageDetails",segmentChanged:"encodeSegmentChanged",lastSegment:"encodeSegmentChanged",pageSnapshot:"encodePageSnapshotData",devToolsVisibilityChanged:"encodeBoolean",webStruggle:"encodeStruggles",ajaxRequest:"encodeAjaxRequest",ajaxStats:"encodeJson",hover:"encodeHoverEvent",custom:"encodeKeyValue",customMap:"encodeNameKVMap",thirdpartymap:"encodeKVMap",thirdPartyAttribute:"encodeThirdPartyAttributes",abTesting:"encodeABTesting",resourceContent:"encodeResourceContent",clientAttribute:"encodeKeyValue",resourcesWaterfall:"encodeJson",performance:"encodePerformanceTimings",webVitals:"encodeString",timing:"encodeTimings",resize:"encodeResize",submit:"encodeHashCode",touchmove:"encodeClickDetails",touchend:"encodeClickDetails",drag:"encodeClickDetails",mousemove:"encodeMouseMove",mouseover:"encodeHoverEvent",scroll:"encodeCoordinate",scrollReach:"encodeScrollReach",keydown:"encodeKeyEvent",keypress:"encodeKeyEvent",voc:"encodeJson"})[M.mouseEvents.up]="encodeClickDetails",We.COMPRESSED_INDICATION_CHARSET="ISO-8859-15",We.MINIMAL_COMPRESSION_FACTOR=.05,e?function(s,f){var d={incomingEventMessages:0};s[f]={state:"INIT",stats:d};var i,t,l={onBeaconDispatched:function(n,e){i.postMessage({type:"beaconSent",sn:n,encodedLength:e.length})},onBeaconResponse:function(n,e,t,r){i.postMessage({type:"onBeaconResponse",pageId:n,beaconData:e,success:t,requestStatus:r})},onWorkerReady:function(){i.postMessage({type:"ready"})},onNewConfig:function(n){i.postMessage({type:"newConfig",config:n})}},h=(t={},(i=s).addEventListener("message",function(n){var e=n.data,n=t[e.type];n&&n.apply(null,e.args)},!1),{on:function(n,e){t[n]=e}});h.on("init",function(n,e,t){m=Fe(n);var r={getKeyInfo:function(){return t},stringIsEncrypted:function(n){return q.startsWith(n,M.encryptionPrefix)}},i={on:function(){},off:function(){},emit:function(){}},o=new yt({on:function(){}},M.detectorVersion,n.reportAddUriParams,n.reportByPost),a=dt(self,!1,!1,!1),r=Xe(m,s.navigator,r,e,n),e=new Nt({},l.onBeaconResponse),a=new ur(r,o,a,logger,e.onReporterMessage.gbBind(e),l.onNewConfig,n,i),u=new Ot(a,e,r,s[f].stats,n),c=new Vt(i,r,a,u,!0,{track:function(){},untrack:function(){},packageEventSets:function(){}},l.onBeaconDispatched,n.reportMaxConcurrency,n.reportTimingBetweenBeacons);h.on("encodeAndDispatch",function(n,e,t){d.incomingEventMessages++;n=n.map(function(n){return Ue.fromJSON(n)});c.encodeAndDispatch(n,e,t)}),h.on("restoreState",function(n,e){d.incomingEventMessages++,u.restoreState(n,e)}),h.on("updateQueryString",function(n){o.updateNativeCookies(n)}),h.on("confHashChange",function(n){o.setConfigurationHash(n)}),h.on("clseChange",function(n){o.setClse(n)}),s[f].state="READY",l.onWorkerReady()})}(n,i):(h=",",void 0!==M&&M.detectorScript&&(h=M.detectorScript.getAttribute("data-clsarraydelim")||h),v=function(n,e){if("TRUE"===n.toUpperCase())return!0;if("FALSE"===n.toUpperCase())return!1;throw"cannot parse boolean from '"+n+"'"},p=function(n){var e=(-1===n.indexOf(".")?parseInt:parseFloat)(n);if(isNaN(e))throw"cannot parse number from '"+n+"'";return e},y=function(n){return n},w=function(n){return null==n?[]:n.split(h)},b=function(n){return(Array.isArray?Array.isArray(n):n instanceof Array)?null:"array is expected"},C=function(n,e){for(var t=0;t<e.length;t++)if(typeof e[t]!==n)return"array element type mismatch. expected:"+n+" actual:"+typeof e[t];return null},T=function(){var r=arguments;return function(n){for(var e=0;e<r.length;e++){var t=r[e](n);if(null!=t)return t}return null}},Ge.prototype.ignore=function(n){this[n.toLowerCase()]={name:n,ignore:!0}},S={options:{caseSensitive:!0,errorOnUnknown:!(Ge.newBuilder=function(){var t=new Ge;return{bool:function(n,e){return t.add("boolean",!1,v,null,n,e),this},num:function(n,e){return t.add("number",!1,p,null,n,e),this},str:function(n,e){return t.add("string",!0,y,null,n,e),this},strarray:function(n,e){return t.add("object",!0,w,T(b,function(n){return C("string",n)}),n,e),this},objarray:function(n,e){return t.add("object",!0,w,T(b,function(n){return C("object",n)}),n,e),this},ignore:function(n){return t.ignore(n),this},build:function(){return t}}})},validate:function(n,e){var t=new Je;if(this.parsingError)return t.addError(S.parsingError),t;e=e||{};var r,i,o,a,u=n.requiredFieldsMask();for(r in e)e.hasOwnProperty(r)&&((i=n[r.toLowerCase()])?i.ignore||(i.name!==r&&S.options.caseSensitive?(t.addError("unknown configuration field (did you mean '"+i.name+"'?).",r),delete u[i.name]):null!==(o=e[r])&&o!==U?typeof o===i.type?(i.required&&delete u[i.name],!i.validator||(a=i.validator(o))&&t.addError("value violation, "+a,r)):t.addError("value type mismatch. expected:"+i.type+" actual:"+typeof o,r):i.nullable||t.addError("value cannot be null, value of "+i.type+" type is expected.",r)):(S.options.errorOnUnknown?t.addError:t.addWarning).call(t,"unknown configuration field",r));for(r in u)u.hasOwnProperty(r)&&t.addError("missing required field",r);return t},onParsingError:function(n){S.parsingError=n}},Je.prototype.addError=function(n,e){this.errors.push({field:e,reason:n})},Je.prototype.addWarning=function(n,e){this.warnings.push({field:e,reason:n})},Je.prototype.toString=function(){function n(n){var e="",t=0;return t<n.length?e+("\n"+(n[t].field?"'"+n[t].field+"': ":"")+n[t].reason):e}var e="\n"+this.errors.length+" error(s):";return e+=n(this.errors),e+="\n"+this.warnings.length+" warning(s):",e+=n(this.warnings)},e=function(n,e,t,r,i){function o(n){return"function"!=typeof String.prototype.trim?n.replace(/^\s+|\s+$/g,""):n.trim()}n=n||{};for(var a=null!=t?t.split(e):[],u=0;u<a.length;u++){var c=a[u].split("=");if(2===c.length){var s,f=o(c[0]),d=o(c[1]),c=n[f.toLowerCase()];(!c||void 0===(s=c.parser))&&(s=y);try{r[f]=s(d)}catch(n){i&&i("'"+f+"': "+n)}}}},k=Ge.newBuilder().ignore("injectionTime").ignore("visualName").ignore("detectionScriptURI").str("reportURI",!0).str("configPath",!1).bool("recordMouseMoves",!1).bool("recordScrolls",!1).bool("recordScrollReach",!1).bool("recordErrors",!1).bool("reportValidationErrors",!1).bool("domFormValidationTracking",!1).num("domFormValidationRedComponentMin",!1).num("domFormValidationRedComponentDelta",!1).strarray("domFormValidationSubmissionIds",!1).strarray("domFormValidationIgnorableText",!1).strarray("domFormValidationAdditionalTagNames",!1).strarray("domFormValidationIgnorableTags",!1).strarray("domFormValidationIgnorePagesPredicates",!1).strarray("domFormValidationCheckUrls",!1).strarray("domFormValidationTitlesToCheck",!1).num("idleEventTimeInterval",!1).bool("botDetection",!1).bool("recordHovers",!1).bool("reportByPost",!1).num("maxPostReportSize",!1).num("reportPostInterval",!1).bool("reportPostRetry",!1).num("reportMaxRetries",!1).num("reportAbortAfter",!1).bool("reportUseWorker",!1).bool("DOMBeaconImg",!1).num("reportInterval",!1).num("maxReportSize",!1).strarray("maskList",!1).strarray("maskWhitelistValueById",!1).strarray("maskBlacklistValueById",!1).strarray("maskClassList",!1).strarray("maskWhitelistValueByClass",!1).strarray("maskBlacklistValueByClass",!1).strarray("valueWhitelistMaskSimpleSelector",!1).strarray("valueBlacklistMaskSimpleSelector",!1).str("valueMaskIgnoreAttribute",!1).bool("maskTitle",!1).strarray("encryptionList",!1).strarray("encryptionClassList",!1).strarray("valueEncryptById",!1).strarray("valueEncryptByClass",!1).str("externalIdAttr",!1).str("valueMaskingCharNumericLike",!1).str("valueMaskingCharNumeric",!1).strarray("valueMaskByCategories",!1).bool("useIdSelectors",!1).bool("useNameInFormSelectors",!1).bool("preferNamesInFormSelectors",!1).strarray("noIdSelectorsForClassNames",!1).strarray("noIdSelectorsForIDs",!1).strarray("noIdSelectorsForAttrs",!1).bool("noMetaTagInSelector",!1).bool("SCIntegration",!1).strarray("SCIntegrationURLsContainList",!1).strarray("SCIntegrationKeyList",!1).bool("interceptThirdPartyAttributes",!1).bool("interceptABTesting",!1).str("abTestingGlobalObject",!1).bool("enableOptimizelyIntegration",!1).bool("optimizelyCheckOnSegmentLoad",!1).str("optimizelyUrl",!1).bool("enableAdobeAnalyticsIntegration",!1).str("adobeRsid",!1).str("adobeEVarNumber",!1).bool("reportAllResourcesLoad",!1).bool("reportExternalResources",!1).strarray("ignoreReportResourcesByTagNames",!1).num("reportMaxConcurrency",!1).num("reportTimingBetweenBeacons",!1).str("externalReporterObject",!1).bool("debugMode",!1).bool("traceMode",!1).bool("suppressMouseMovesDebug",!1).bool("visualNameDebug",!1).bool("timingMode",!1).num("minDragPixels",!1).bool("reportVisualNames",!1).num("titleCharsLimit",!1).num("maxTimeForIdleEvent",!1).num("validationValueForRenderTime",!1).bool("reportDebugInfo",!1).str("externalIdByClassesOnPrefix",!1).bool("supportNativeAutoComplete",!1).bool("recordEnterForInputs",!1).bool("recordTypingAll",!1).strarray("recordTypingForAttrs",!1).strarray("recordTypingForClasses",!1).strarray("recordTypingForIDs",!1).num("mmMaxMovesWithUnload",!1).num("mmMaxMovesInEventNoTimes",!1).num("mmMaxMovesInEventWithTimes",!1).num("mmMinStallingMoveTime",!1).num("mmMaxInMemoryMoves",!1).bool("mmDebug",!1).num("mhDeepLevel",!1).num("mhMaxListSize",!1).num("mhMaxInMemeoryHovers",!1).bool("mhDebug",!1).num("minStallingScrollTime",!1).bool("scrollDebug",!1).bool("clsDebug",!1).num("clsDebugCharsLimit",!1).num("clsDebugMaxReports",!1).bool("domRecordEnabled",!1).bool("recordShadowDom",!1).strarray("domNewPageTriggers",!1).strarray("pageSnapshotTriggers",!1).num("domStartAfter",!1).strarray("snapshotImmediatePages",!1).num("domUpdateEveryWsMsgIn",!1).bool("domForceUpdateOnClick",!1).num("domRecordEnabledByChance",!1).str("domReportURI",!1).bool("domCompress",!1).strarray("domNewPageAjaxTriggers",!1).strarray("domIgnoredFormElements",!1).bool("domIncludeSelectorOnUpdate",!1).bool("semiDomEnabled",!1).bool("domRecordCssRules",!1).strarray("domCompressRepetitiveElements",!1).bool("recordAnimation",!1).bool("domPreciseStyleSheetCloning",!1).bool("domThrottleChanges",!1).strarray("ignorableElementIds",!1).bool("recordAjaxCallsAnyway",!1).bool("truncateEventsWithUnload",!1).bool("mmRecordTimes",!1).num("mmDiluteMinPixels",!1).bool("reportHybrid",!1).str("customTLD",!1).num("enabledByChance",!1).strarray("domCloningBannedIds",!1).strarray("domCloningBannedClasses",!1).str("reportEncoding",!1).bool("reportCompress",!1).bool("cordovaSdkReporting",!1).str("maskingMode",!1).str("valueMaskingMode",!1).str("domMaskingMode",!1).str("encryptionMode",!1).str("valueEncryptionMode",!1).strarray("reportAddUriParams",!1).bool("recordConsoleErrors",!1).strarray("domMaskContentById",!1).strarray("domBlacklistMaskContentById",!1).strarray("domWhitelistMaskContentById",!1).strarray("domMaskContentByClass",!1).strarray("domBlacklistMaskContentByClass",!1).strarray("domWhitelistMaskContentByClass",!1).strarray("domOmitById",!1).strarray("domOmitByClass",!1).strarray("domOmitObjectElementsByType",!1).strarray("domMaskOmitById",!1).strarray("domMaskOmitByClass",!1).strarray("domMaskedAttributes",!1).strarray("domMaskAttributesByTag",!1).str("domMaskIgnoreAttribute",!1).strarray("domMaskSimpleSelector",!1).strarray("domBlacklistMaskSimpleSelector",!1).strarray("domWhitelistMaskSimpleSelector",!1).strarray("tagsToCheckLength",!1).num("tagMaxLength",!1).strarray("domEncryptById",!1).strarray("domEncryptByClass",!1).str("encryptionPublicKey",!1).str("encryptionKeyId",!1).num("encryptionTimeout",!1).bool("reportPreferSendBeaconAPI",!1).bool("domKeepComments",!1).str("domKeepScriptMatching",!1).num("domExpireSnapshotAfter",!1).bool("reportCorsForceSafelistedHeaders",!1).bool("reportDisableCors",!1).strarray("reportCorsTakeNativeCookies",!1).str("clsByNativeCookie",!1).num("visitorDaysToExpiration",!1).bool("resetCorsOnNativeCookieChange",!1).strarray("maskCookies",!1).strarray("maskQueryParameters",!1).strarray("maskUrlPath",!1).strarray("reportStorageBackedForUA",!1).bool("reportViaTopWindow",!1).bool("reportAddUriParamAPI",!1).bool("storageBackedReporting",!1).bool("externalReporting",!1).bool("domOmitAfterUnload",!1).bool("duplicateIdCheck",!1).strarray("domPartialWhenLocationContains",!1).strarray("domFilterAttributes",!1).strarray("blackoutWhenLocationContains",!1).bool("iframesAutoInject",!1).str("iframesAutoInjectMode",!1).bool("iframesRecordEnabled",!1).bool("framesetRecordEnabled",!1).str("iframesParentOrigin",!1).num("iframesHandshakeTimeout",!1).bool("iframesDebugEnabled",!1).bool("iframesSkipHidden",!1).bool("iframesDisableNotifications",!1).bool("iframesDirectChannel",!1).strarray("iframesDirectChannelWhenUriContains",!1).strarray("iframesSkipWhenLocationContains",!1).strarray("iframesBlackoutWhenLocationContains",!1).bool("blackoutIdleReporting",!1).bool("reportIncludeReferrer",!1).str("mobileHybridId",!1).bool("interceptAjax",!1).bool("ajaxDebug",!1).bool("ajaxHashRecurrentUrls",!1).str("ajaxRecordMetadata",!1).str("ajaxRecordResponseBody",!1).str("ajaxRecordResponseHeaders",!1).str("ajaxRecordRequestBody",!1).str("ajaxRecordRequestHeaders",!1).str("ajaxRecordStats",!1).strarray("ajaxStatsQueryParams",!1).num("ajaxRecordSessionLimit",!1).bool("ajaxCaptureRequestCookie",!1).objarray("ajaxMaskRequestBody",!1).objarray("ajaxMaskResponseBody",!1).bool("reportCreateSubSessionCookie",!1).bool("resourcesRecordEnabled",!1).bool("resourceRecordCssOnly",!1).bool("resourcesRecordAllowCors",!1).num("resourcesRecordCount",!1).num("resourcesRecordChance",!1).bool("electResourcesOnClear",!1).strarray("resourceIgnoreWhenUrlContains",!1).bool("resourceTimingRecordEnabled",!1).num("resourceTimingRecordEnabledByChance",!1).bool("webVitalsRecordEnabled",!1).bool("resourceTimingRecordAjax",!1).num("resourceBufferCheckTime",!1).num("maxResourcesBeforeFlush",!1).num("resourceBufferIncreaseBy",!1).bool("isCheckResourceBuffer",!1).bool("clientAttributesEnabled",!1).num("clientAttributeMaxLength",!1).bool("domIE11ForceMutationObserver",!1).str("detectorTagId",!1).bool("cookieAssignFQDN",!1).num("cookieTLDSegmentCount",!1).bool("enableSecureCookie",!1).str("sessionIdByQueryParam",!1).str("visitorIdByQueryParam",!1).str("domIdentifyingAttribute",!1).bool("sendStateInfo",!1).num("debounceScrolls",!1).bool("domHashTokens",!1).bool("ccAutoMask",!1).bool("ccAutoMaskByContent",!1).strarray("ccAutoMaskFields",!1).num("ccAutoMaskKeepLastDigits",!1).bool("ccForceMaskContainer",!1).str("domTokenizationVersion",!1).strarray("captureGlobalObjects",!1).bool("captureGlobalObjectsEmptyStrings",!1).bool("captureGlobalObjectsOnSegmentChange",!1).bool("domIEForceStyleCopyByRules",!1).bool("domFormValidationAllowFormLevel",!1).strarray("segmentationTriggerBySimpleSelector",!1).strarray("segmentationLabelBySimpleSelector",!1).str("segmentationLabelByAttribute",!1).str("segmentationTitleByAttribute",!1).str("segmentationPrefix",!1).str("segmentationIgnoreWhenLocationContains",!1).bool("segmentationParallelMechanism",!1).str("segmentationInitialLabelSelector",!1).bool("recordSpaLoadTime",!1).bool("collectStruggles",!1).bool("collectFormStruggles",!1).num("struggleMaxLongFocusTime",!1).num("struggleRageClickInterval",!1).num("struggleRageClickMinCount",!1).strarray("struggleRageClickIgnoreBySelector",!1).strarray("struggleDeadClickIgnoreBySelector",!1).strarray("struggleDeadClickIgnoreByTagNames",!1).bool("struggleCaptureDeadClick",!1).num("struggleDeadClickInterval",!1).bool("struggleCaptureErrorClick",!1).num("struggleErrorClickInterval",!1).bool("struggleCaptureAjaxErrors",!1).bool("struggleCaptureHorizontalScrollbar",!1).bool("struggleCaptureBlankPage",!1).bool("domTamperingDetectionEnabled",!1).num("domTamperingGraceTime",!1).strarray("domTamperingIgnorePages",!1).strarray("domTamperingIgnorableTags",!1).bool("devToolsDetectionEnabled",!1).str("devToolsDetectionMessage",!1).bool("domThrottleChanges",!1).bool("domThrottleChangesIE11Only",!1).num("visualNameLimit",!1).num("maxRecordedCountPerError",!1).bool("useExtension",!1).str("forceRenderingFixForUA",!1).bool("pageNameResolvingEnabled",!1).strarray("pageNameResolvingByElements",!1).num("domFuseDuration",!1).num("domFuseElementCount",!1).num("domFuseDurationIE",!1).num("domFuseElementCountIE",!1).strarray("removeBase64ImageDataTagNames",!1).num("delayDomMutationEvent",!1).bool("enableAdoptedCss",!1).bool("checkForHtmlOnly",!1).strarray("snapshotWaitForElement",!1).bool("snapshotWaitForElementMustShown",!1).strarray("allowWaitForElementsUrls",!1).num("delaySnapshotAfterElementFound",!1).num("waitForElementTime",!1).num("minAreaTocountElementAsShown",!1).bool("checkVisibility",!1).num("reTakeSnapshotAfterTime",!1).str("gbconsoledomain",!1).bool("collectVoc",!1).ignore("vocObjectMap").bool("collectUsabillaVoc",!1).bool("waitForUsabillaObj",!1).str("interceptUsabillaUrl",!1).bool("decodUri",!1).bool("isDetectorDom",!1).build(),M.detectorScript&&(Kn=M.detectorScript.getAttribute("data-clsdelim")||";",(se=M.detectorScript.getAttribute("data-clsconfig"))&&e(k,Kn,se,H,S.onParsingError)),Kn=window._cls_config||window._config||{},Qe(H,Kn),Qe(H,window._cls_config_forced),(H.maskingMode||Ye(H.domMaskContentById,H.domMaskContentByClass,H.domMaskSimpleSelector,H.maskList,H.maskClassList))&&(Ye(H.domBlacklistMaskContentById,H.domWhitelistMaskContentById,H.domBlacklistMaskContentByClass,H.domWhitelistMaskContentByClass,H.domBlacklistMaskSimpleSelector,H.domWhitelistMaskSimpleSelector,H.maskBlacklistValueById,H.maskWhitelistValueById,H.maskBlacklistValueByClass,H.maskWhitelistValueByClass)&&(q.isIE()?console.log("Bad mixed configuration combination, old and new masking configuration!"):console.log("%c Bad mixed configuration combination, old and new masking configuration!","color: white; background: red"),H.isMixMasking=!0),H.valueMaskingMode=H.maskingMode||H.valueMaskingMode||M.censorMode.BlackList,H.domBlacklistMaskContentById=H.domMaskContentById||[],H.domWhitelistMaskContentById=H.domMaskContentById||[],H.domBlacklistMaskContentByClass=H.domMaskContentByClass||[],H.domWhitelistMaskContentByClass=H.domMaskContentByClass||[],H.domBlacklistMaskSimpleSelector=H.domMaskSimpleSelector||[],H.domWhitelistMaskSimpleSelector=H.domMaskSimpleSelector||[],H.maskBlacklistValueById=H.maskList||[],H.maskWhitelistValueById=H.maskList||[],H.maskBlacklistValueByClass=H.maskClassList||[],H.maskWhitelistValueByClass=H.maskClassList||[]),H.valueMaskingMode=H.valueMaskingMode||M.censorMode.WhiteList,H.domPreciseStyleSheetCloning=H.domPreciseStyleSheetCloning||!!H.domIEForceStyleCopyByRules,H.reportPostRetry=H.reportPostRetry||!!H.postRetry,(H.encryptionMode||Ye(H.encryptionList,H.encryptionClassList))&&(H.valueEncryptionMode=H.encryptionMode||H.valueEncryptionMode||M.censorMode.BlackList,H.valueEncryptById=H.encryptionList||[],H.valueEncryptByClass=H.encryptionClassList||[]),H.reportAddUriParamAPI&&(H.reportAddUriParams=H.reportAddUriParams||[],H.reportAddUriParams.push("api")),H.visualName&&H.visualName.eventsToCalcDistance&&H.visualName.eventsToCalcDistance.length&&(H.visualName.eventsToCalcDistance=q.immutableSet.apply(null,H.visualName.eventsToCalcDistance)),function(n){var e=H.reportToStorageAfterUnload,t=H.reportPreferSendBeaconAPI&&"function"!=typeof navigator.sendBeacon;if(!e&&H.reportStorageBackedForUA&&!t)for(var r=0;r<H.reportStorageBackedForUA.length;r++)try{if(new RegExp(H.reportStorageBackedForUA[r],"gi").exec(n.navigator.userAgent)){e=!0;break}}catch(n){}e&&(H.storageBackedReporting=!0)}(window),se=window,H.externalReporterObject&&se[H.externalReporterObject]&&(H.externalReporting=!0,H.reportDisableCors=!0,H.reportUseWorker&&(H.reportUseWorker=!1)),Qe(H,l.config,l.override),H.domRecordEnabled&&void 0!==H.domRecordEnabledByChance&&(I=new Et(j,U),Ae=new bt(window.localStorage,{keysPrefix:M.Storage.BoundKeyPrefix,sessionIdFunc:function(){return I.get(M.cookies.session)}}),Ke(H.domRecordEnabledByChance,Ae,"dom")?(H.domRecordEnabled=!0,H.domReportURI&&(H.reportURI=H.domReportURI)):H.domRecordEnabled=!1,H.domRecordEnabledByChance),z={MASKING_CHAR:"*",censorValueOf:function(n,e,t){return n=""+(n||""),0<(e||0)?(e=Math.min(n.length,e),new Array(n.length-e+1).join(t||z.MASKING_CHAR)+n.substring(n.length-e)):new Array(n.length+1).join(t||z.MASKING_CHAR)},isAvailable:function(){return!0}},it.prototype={isCensored:function(n){return!!ot.call(this,n).doMask},censor:function(n){var e=ot.call(this,n);return e.doMask?(this.cb&&this.cb(n,e.cause),this.maskingUtils.censorValueOf(n.value,e.keepLastDigits,e.maskingChar)):n.value},isAvailable:function(){return!0}},at.getMatchingAttributeFromRegexpArray=function(n,e){for(var t=0;t<e.length;t++)if(e[t].test(n))return e[t]},at.checkSelector=function(n,e){for(var t=0;t<e.length;++t)if(n&&n.nodeType===Node.ELEMENT_NODE&&q.elementMatches(n,e[t]))return e[t]},at.prototype.isCensored=function(n,e){var t,r="",i=e?n.parentElement:n;if(!q.isEditableInput(i))return!1;if(i.hasAttribute(this._options.valueCensorIgnoreAttribute))return!1;e=this._options.valueCensorshipMode===this._envCensorMode.WhiteList;return e&&(r="whitelist"),i.hasAttribute(this._censorAttribute)?(e=!0)&&(r="censor attribute "+this._censorAttribute):q.hasClassName(i,this._censorAttribute)?(e=!0)&&(r="class with censor attribute "+this._censorAttribute):this._valueCensorIdsWithoutwildcards.length&&E.contains(this._valueCensorIdsWithoutwildcards,q.getElementId(i))?(t=this._valueCensorIdsWithoutwildcards.indexOf(q.getElementId(i)),(e=!e)&&(r="id matches "+this._valueCensorIdsWithoutwildcards[t])):this._valueCensorClassesWithoutwildcards.length&&q.hasOneOfClassNames(i,this._valueCensorClassesWithoutwildcards)?(e=!e)&&(r="class matches "+q.getMatchingClassName(i,this._valueCensorClassesWithoutwildcards)):this._valueCensorSelectorsWithoutwildcards.length?(t=at.checkSelector(i,this._valueCensorSelectorsWithoutwildcards))&&(e=!e)&&(r="selector matches "+t):this._regexpValueCensorIds.length?(t=at.getMatchingAttributeFromRegexpArray(q.getElementId(i),this._regexpValueCensorIds))&&(e=!e)&&(r="id matches "+t):this._regexpValueCensorClasses.length&&(t=at.getMatchingAttributeFromRegexpArray(q.getClass(i),this._regexpValueCensorClasses))&&(e=!e)&&(r="class matches "+t),!e||(n=n.getAttribute("gbid")||n._gbid)&&!this.maskedElementsAlreadyLogged[n]&&(this.bus.emit("clsDebug","element with gbid "+n+": value masking reason - "+r),this.maskedElementsAlreadyLogged[n]=!0),e},at.prototype.censor=function(n,e){return this.isCensored(n,e)?this._censorValueOf(n.value):n.value},at.prototype.isAvailable=function(){return this._isAvailable()},x=new function(o,a,u){var n=function(){if(-1===(a||"").indexOf("://"))return!1;var n=o.createElement("a");if(n.href=a,(/:\d+/gi.test(a)?n.port:"")!==o.location.port)return!0;if(u)return n.hostname!==o.location.hostname;for(var e=o.location.hostname.split("."),t=n.hostname.split("."),r=e.length<=2,i=!1;e.length&&t.length&&!i;)i=e.pop()!==t.pop();n=(i?1:0)+Math.max(e.length,t.length);return r?0!==n:1<n}();this.isCorsReporting=function(){return n}}(j,H.reportURI,H.cookieAssignFQDN),R=new Et(j,{domainBy:H.cookieAssignFQDN?"fqdn":"tld",tldSegmentCount:H.cookieTLDSegmentCount,reportURI:H.reportURI,enableSecureCookie:H.enableSecureCookie}),A=new bt(window.localStorage,{keysPrefix:M.Storage.BoundKeyPrefix,sessionIdFunc:function(){return R.get(M.cookies.session)}}),yn=window,N=(wn=H).recordShadowDom&&yn.ShadowRoot&&void 0!==pi?new pi(new gt(wn)):new gt(wn),D=new function(t,e,n,r,i,o){o=o||{};var a,u,c,s,f,d,l=0<(i.valueEncryptById||[]).length||0<(i.valueEncryptByClass||[]).length||0<(i.domEncryptById||[]).length||0<(i.domEncryptByClass||[]).length||i.valueEncryptionMode===M.censorMode.WhiteList,i=l&&!(!o.publicKey||!o.keyId),h=!1,v=!1,m=!1,g=[];function p(n){b(u=q.Base64.bytesToBase64(new Uint8Array(n))),!m&&v&&w()}function y(n){g.push(n),b(),v&&g.length&&e.emit("clsDebug","Error: "+g.join(". Error: "))}function w(){n.set("hybrid.key",u),n.set("symmetric.key",q.Base64.bytesToBase64(new Uint8Array(a))),n.set("public.key.hash",q.hashcode(o.publicKey)),m=!0}function b(n){h||(q.currentTimestamp(),h=!0,(u=n)&&(c=o.keyId+"_"+u),setTimeout(function(){e.emit("encryptionReady")},0))}if(i)try{q.currentTimestamp(),s=n.get("symmetric.key"),f=n.get("hybrid.key"),d=""+q.hashcode(o.publicKey)===n.get("public.key.hash"),s&&f&&d?(a=new Uint8Array(q.strToBytes(q.Base64.atob(s))),b(f)):(e.on("init:loaded",function(){v=!0,!m&&a&&u&&w(),g.length&&e.emit("clsDebug","Error: "+g.join(". Error: "))}),function(){var n=r(t);if(n){var e=q.strToBytes(q.Base64.atob(o.publicKey));return a=new Uint8Array(16),n.getRandomValues(a),n.executeEncryptionFlow(e,a,p,y),1}y("Current browser does not support crypto interface.")}()&&setTimeout(function(){b()},o.timeout))}catch(n){y(n.message||"unknown exception during encryption")}else l?(y("encryption is not well configured"),console.error("[EyeView-403]: Encryption configuration error: missing encryption key settings. Sensitive data might be recorded.")):b();this.isEncryptionConfigured=function(){return!!l},this.canUseEncryption=function(){return!!c&&!!(t.crypto&&(t.crypto.subtle||t.crypto.webkitSubtle)||t.msCrypto&&t.msCrypto.subtle)},this.getEncryptionKey=function(){return c?a:U},this.getKeyInfo=function(){return c||U},this.stringIsEncrypted=function(n){return q.startsWith(n,M.encryptionPrefix)}}(window,V,A,function(n){return n.crypto&&(n.crypto.subtle||n.crypto.webkitSubtle)?new nt(n):n.msCrypto&&n.msCrypto.subtle?new Ze(n):null},H,{publicKey:H.encryptionPublicKey,keyId:H.encryptionKeyId,timeout:H.encryptionTimeout}),window,pn=D,Kn={censorValueOf:function(n){var e=pn.getEncryptionKey(),e=pn.AES_CBC.encrypt(new Uint8Array(q.strToUTF8Bytes(n)),e,!0);return M.encryptionPrefix+q.Base64.bytesToBase64(e,!0)+"_"},isAvailable:function(){return pn.canUseEncryption()}},O=new function(n,e){var o=e.handlers;function a(n){return o[n]=e.fallbackHandlers[n]||o[n],o[n]}this.censor=function(e,t){for(var n,r=e.value,i=0;i<o.length;i++){(n=o[i]).isAvailable()||(n=a(i));try{r=n.censor(e,t)}catch(n){logger.error("failed censoring value, switching to fallback: "+n.message,n),r=a(i).censor(e,t)}if(r!==e.value)return r}return r},this.isCensored=function(n,e){for(var t=0;t<o.length;t++)if(o[t].isCensored(n,e))return!0;return!1}}(window,(X=D,G=Kn,J=V,vn=$e(),mn=(K=H).valueMaskingMode===M.censorMode.WhiteList,gn=K.ccForceMaskContainer?rt(J):{markOwnerAndInputs:function(){}},e=[],(yn=[]).push(new it(z,[function(n){return{doMask:"INPUT"===n.tagName&&"password"===n.type,cause:"password"}},(Q={enabled:K.ccAutoMask,byContent:K.ccAutoMaskByContent,byAttributes:K.ccAutoMaskFields,keepLastDigits:K.ccAutoMaskKeepLastDigits},$=0<(Q=q.optionsWithDefaults(Q,{enabled:!0,byContent:!0,byAttributes:["cc-number","cc-csc"],byCommonProps:["class","id","name"]})).keepLastDigits?Q.keepLastDigits:U,Z=q.immutableSet.apply(null,Q.byAttributes),nn={doMask:!1},en=/[\s\d]+/gi,tn=/\d{12,19}/g,rn=/(credit.*card)|((credit|card|cc).*num)/gi,Y=[0,2,4,6,8,1,3,5,7,9],on=function(n){for(var e,t=n.length,r=1,i=0;t;)e=parseInt(n.charAt(--t),10),i+=(r^=1)?Y[e]:e;return i&&i%10==0},function(e){if(!Q.enabled)return nn;var n=e.getAttribute("autocomplete")||e.getAttribute("x-autocompletetype")||"";if(Z[n])return{doMask:!0,keepLastDigits:"cc-number"===n?$:U,cause:"cc"};if(Q.byContent){n=e.value||"";if(n.match(en)&&(n=n.trim().split(/\s+/).join(""))&&n.match(tn)&&on(n))return{doMask:!0,keepLastDigits:$,cause:"cc"}}return Q.byCommonProps&&Q.byCommonProps.some(function(n){return(e.getAttribute(n)||"").match(rn)})?{doMask:!0,keepLastDigits:$,cause:"cc"}:nn}),tt(et({valueMaskByCategories:K.valueMaskByCategories,valueMaskingCharNumeric:K.valueMaskingCharNumeric,valueMaskingCharNumericLike:K.valueMaskingCharNumericLike}))],function(n,e){"cc"===e&&gn.markOwnerAndInputs(n),Mn.onAutoMaskingApplied(n,e)})),e.push(U),yn.push((an=J,un=z,wn={valueCensorIds:mn?K.maskWhitelistValueById:[],valueCensorClasses:mn?K.maskWhitelistValueByClass:[],valueCensorSimpleSelector:mn?K.valueWhitelistMaskSimpleSelector:[],valueCensorIgnoreAttribute:K.valueMaskIgnoreAttribute},cn={},sn=[],fn=[],dn=[],ln=[],(hn=wn||{}).valueCensorIds&&ct(hn.valueCensorIds,sn,dn),hn.valueCensorClasses&&ct(hn.valueCensorClasses,fn,ln),{isCensored:function(n,e){var t=e?n.parentElement:n,e=!!t._gbForceMasking;return!(e=t.hasAttribute(hn.valueCensorIgnoreAttribute)||sn.length&&E.contains(sn,q.getElementId(t))||fn.length&&q.hasOneOfClassNames(t,fn)||dn.length&&at.getMatchingAttributeFromRegexpArray(q.getElementId(t),dn)||ln.length&&at.getMatchingAttributeFromRegexpArray(q.getClass(t),ln)?!1:e)||(n=n._gbid||n.getAttribute("gbid"))&&!cn[n]&&(an.emit("clsDebug","element with gbid "+n+": value masking reason - forcedMaskingHandler"),cn[n]=!0),e},censor:function(n,e){return this.isCensored(n,e)?un.censorValueOf(n.value):n.value},isAvailable:function(){return!0}})),e.push(U),X.isEncryptionConfigured()&&(yn.push(new at(J,G,M.censorMode,"cls_encrypt",{name:"encryption",valueCensorshipMode:K.valueEncryptionMode,valueCensorIds:K.valueEncryptById,valueCensorClasses:K.valueEncryptByClass,autoCensorPredicate:U},vn)),e.push(new at(J,z,M.censorMode,"cls_encrypt",{name:"masking_fallback",valueCensorshipMode:K.valueEncryptionMode,valueCensorIds:K.valueEncryptById,valueCensorClasses:K.valueEncryptByClass,valueCensorIgnoreAttribute:K.valueMaskIgnoreAttribute},vn))),yn.push(new at(J,z,M.censorMode,"cls_mask",{name:"masking",valueCensorshipMode:K.valueMaskingMode,valueCensorIds:mn?K.maskWhitelistValueById:K.maskBlacklistValueById,valueCensorClasses:mn?K.maskWhitelistValueByClass:K.maskBlacklistValueByClass,valueCensorSimpleSelectors:mn?K.valueWhitelistMaskSimpleSelector:K.valueBlacklistMaskSimpleSelector,valueCensorIgnoreAttribute:K.valueMaskIgnoreAttribute},vn)),e.push(U),{handlers:yn,fallbackHandlers:e})),F=0,B=function(){return++F},_={idOf:function(n,e){return e?n[P]:ut(n)},selectorFor:function(n){return{selector:""+ut(n)}},GB_ID_FIELD_NAME:P="_gbid"},W=function(c,s){c&&c.length&&(c=q.arrayToLowerCase(c)),s&&s.length&&(s=q.arrayToLowerCase(s));var f=q.immutableSet.apply(null,c),d=q.immutableSet.apply(null,s);function e(n){if(!c.length&&!s.length||!n)return n;var e=n.split("?");if(e[0]&&0<Object.keys(d).length){for(var t=e[0].split("/"),r=1;r<t.length;r++)d[t[r]]&&t[r+1]&&(t[r+1]=z.censorValueOf(t[r+1]));e[0]=t.join("/")}if(!e[1])return e[0]+(n.indexOf("?")===n.length-1?"?":"");var i,o,a=[],u=e[1].split("&");for(r=0;r<u.length;r++)1<(o=u[r].split("=")).length?(i=o[0],o=f[i.toLowerCase()]?z.censorValueOf(o[1]):o[1],a.push(i+"="+o)):a.push(u[r]);return e[0]+"?"+a.join("&")}return{mask:function(n){n=n.split("#");return e(n[0])+(1<n.length?"#"+e(n[1]):"")}}}(H.maskQueryParameters,H.maskUrlPath),se={setListener:function(n){L=n},clonerHook:function(n,e){L&&L(n,e)}},bn={hookProto:function(i){var o={};return{setHookBefore:function(e,n){var t=i[e];return!!t&&(i[e]=function(){try{n.apply(this,arguments)}catch(n){logger.error("error during method '"+e+"' hook invocation. error: "+n.message,n)}return t.apply(this,arguments)},o[e]=t,!0)},setHookAfter:function(e,t){var r=i[e];return!!r&&(i[e]=function(){var n=r.apply(this,arguments);try{t.apply(this,arguments)}catch(n){logger.error("error during method '"+e+"' hook invocation. error: "+n.message,n)}return n},o[e]=r,!0)},hookSetPropertyAfter:function(e,t){var r=Object.getOwnPropertyDescriptor(i,e)?Object.getOwnPropertyDescriptor(i,e).set:null;return!!r&&(Object.defineProperty(i,e,{set:function(){var n=r.apply(this,arguments);try{t.apply(this,arguments)}catch(n){logger.error("error during method '"+e+"' hook invocation. error: "+n.message,n)}return n}}),o[e]=r,!0)},revert:function(){for(var n in o)o.hasOwnProperty(n)&&(i[n]=o[n])}}}},Cn=j,Tn=void 0!==H&&H.scrollDebug,En={scroll:function(n,e){function r(){s&&(d++,s(),s=null,u&&console.log("SCROLL DEBUG: bounced invocation #"+d))}var i,o,a,u,c,s,f,d;return i=Cn,o=e,a=n,u=Tn,d=f=0,Sn={debouncedHandler:function(n){var e,t;clearTimeout(c),s=a.gbBind(this,n),t=n.target,(e=t===i?i.documentElement:t)._gb_scrollInfo||(e._gb_scrollInfo={lastScrollTop:e.scrollTop,lastVDelta:0}),t=(n=e).scrollTop-n._gb_scrollInfo.lastScrollTop,e=t*n._gb_scrollInfo.lastVDelta<0,n._gb_scrollInfo.lastVDelta=t,n._gb_scrollInfo.lastScrollTop=n.scrollTop,e?r():(c=setTimeout(r,o),f++,u&&f%20==0&&console.log("SCROLL DEBUG: de-bouncer - called:",d," of total:",f))},bounce:r}},bounceAll:function(n){Sn&&"scroll"!==n&&Sn.bounce()}},st.prototype.open=function(n,e){this._url=e,this.readyState=XMLHttpRequest.OPENED,this.onreadystatechange&&this.onreadystatechange()},st.prototype.send=function(n){var e;this.readyState=XMLHttpRequest.LOADING,n=this._contentType?(e={type:this._contentType},new Blob([n],e)):n,this.status=navigator.sendBeacon(this._url,n)?200:st.BEACON_ERROR_STATUS,200!==this.status&&logger.error("failed posting new beacon using sendBeacon API. payload: contentType:"+this._contentType),this.readyState=XMLHttpRequest.DONE,this.onreadystatechange&&this.onreadystatechange()},st.prototype.setRequestHeader=function(n,e){"Content-Type"===n&&(this._contentType=e)},st.prototype.getResponseHeader=function(){return null},st.canSend=(kn=/chrome/.test(navigator.userAgent.toLowerCase()),function(n){return!(kn&&n&&n.length>st.CHROME_PAYLOAD_LIMIT)}),st.isSupported=function(){return"function"==typeof navigator.sendBeacon},st.CHROME_PAYLOAD_LIMIT=61440,st.BEACON_ERROR_STATUS=400,ft.prototype.open=function(n,e){-1===e.indexOf("://")&&(e=location.protocol+"//"+location.hostname+(e.startsWith("/")?"":"/")+e),this.xdr.open(n,e),this.readyState=XMLHttpRequest.OPENED,this.onreadystatechange&&this.onreadystatechange()},ft.prototype.send=function(n){this.xdr.send(n),this.readyState=XMLHttpRequest.LOADING,this.onreadystatechange&&this.onreadystatechange()},ft.prototype.setRequestHeader=function(){},ft.prototype.getResponseHeader=function(){return null},In=dt(self,H.reportPreferSendBeaconAPI,H.clientAttributesEnabled||H.interceptThirdPartyAttributes,H.cordovaSdkReporting),function(n){var r,i,e=this&&this.__extends||(r=function(n,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,e){n.__proto__=e}||function(n,e){for(var t in e)e.hasOwnProperty(t)&&(n[t]=e[t])})(n,e)},function(n,e){function t(){this.constructor=n}r(n,e),n.prototype=null===e?Object.create(e):(t.prototype=e.prototype,new t)}),f=(i=Error,e(t,i),t);function t(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=i.apply(this,n)||this;return Object.create(Error.prototype,{name:{value:"IllegalArgumentError"}}),t}var y=function(){"use strict";var o,a,i=!1;function u(n,e){var t=o[(a[n]+a[e])%255];return t=0===n||0===e?0:t}var m,c,s,f,d=!1;function r(){function n(n){var e,t,r,i;for(n=o[255-a[i=n]],t=r=n=0===i?0:n,e=0;e<4;e++)r^=t=255&(t<<1|t>>>7);return r^=99}i||function(){o=[],a=[];for(var n,e=1,t=0;t<255;t++)n=128&(o[t]=e),e<<=1,e&=255,128==n&&(e^=27),e^=o[t],a[o[t]]=t;o[255]=o[0],a[0]=0,i=!0}(),m=[],c=[],s=[[],[],[],[]],f=[[],[],[],[]];for(var e=0;e<256;e++){var t=n(e);m[e]=t,c[t]=e,s[0][e]=u(2,t)<<24|t<<16|t<<8|u(3,t),f[0][t]=u(14,e)<<24|u(9,e)<<16|u(13,e)<<8|u(11,e);for(var r=1;r<4;r++)s[r][e]=s[r-1][e]>>>8|s[r-1][e]<<24,f[r][t]=f[r-1][t]>>>8|f[r-1][t]<<24}d=!0}function n(n,e){d||r();var h=new Uint32Array(e);h.set(m,512),h.set(c,768);for(var t=0;t<4;t++)h.set(s[t],4096+1024*t>>2),h.set(f[t],8192+1024*t>>2);var v=function(n,e){"use asm";var g=0,p=0,y=0,w=0,v=0,m=0,b=0,E=0,i=0,o=0,a=0,u=0,c=0,s=0,f=0,d=0,C=0,T=0,S=0,k=0,l=0;var I=new n.Uint32Array(e),h=new n.Uint8Array(e);function x(n,e,t,r,i,o,a,u){n=n|0;e=e|0;t=t|0;r=r|0;i=i|0;o=o|0;a=a|0;u=u|0;var c=0,s=0,f=0,d=0,l=0,h=0,v=0,m=0;c=t|0x400,s=t|0x800,f=t|0xc00;i=i^I[(n|0)>>2],o=o^I[(n|4)>>2],a=a^I[(n|8)>>2],u=u^I[(n|12)>>2];for(m=16;(m|0)<=r<<4;m=m+16|0){d=I[(t|i>>22&1020)>>2]^I[(c|o>>14&1020)>>2]^I[(s|a>>6&1020)>>2]^I[(f|u<<2&1020)>>2]^I[(n|m|0)>>2],l=I[(t|o>>22&1020)>>2]^I[(c|a>>14&1020)>>2]^I[(s|u>>6&1020)>>2]^I[(f|i<<2&1020)>>2]^I[(n|m|4)>>2],h=I[(t|a>>22&1020)>>2]^I[(c|u>>14&1020)>>2]^I[(s|i>>6&1020)>>2]^I[(f|o<<2&1020)>>2]^I[(n|m|8)>>2],v=I[(t|u>>22&1020)>>2]^I[(c|i>>14&1020)>>2]^I[(s|o>>6&1020)>>2]^I[(f|a<<2&1020)>>2]^I[(n|m|12)>>2];i=d,o=l,a=h,u=v}g=I[(e|i>>22&1020)>>2]<<24^I[(e|o>>14&1020)>>2]<<16^I[(e|a>>6&1020)>>2]<<8^I[(e|u<<2&1020)>>2]^I[(n|m|0)>>2],p=I[(e|o>>22&1020)>>2]<<24^I[(e|a>>14&1020)>>2]<<16^I[(e|u>>6&1020)>>2]<<8^I[(e|i<<2&1020)>>2]^I[(n|m|4)>>2],y=I[(e|a>>22&1020)>>2]<<24^I[(e|u>>14&1020)>>2]<<16^I[(e|i>>6&1020)>>2]<<8^I[(e|o<<2&1020)>>2]^I[(n|m|8)>>2],w=I[(e|u>>22&1020)>>2]<<24^I[(e|i>>14&1020)>>2]<<16^I[(e|o>>6&1020)>>2]<<8^I[(e|a<<2&1020)>>2]^I[(n|m|12)>>2]}function M(n,e,t,r){n=n|0;e=e|0;t=t|0;r=r|0;x(0x0000,0x0800,0x1000,l,n,e,t,r)}function R(n,e,t,r){n=n|0;e=e|0;t=t|0;r=r|0;var i=0;x(0x0400,0x0c00,0x2000,l,n,r,t,e);i=p,p=w,w=i}function A(n,e,t,r){n=n|0;e=e|0;t=t|0;r=r|0;x(0x0000,0x0800,0x1000,l,v^n,m^e,b^t,E^r);v=g,m=p,b=y,E=w}function N(n,e,t,r){n=n|0;e=e|0;t=t|0;r=r|0;var i=0;x(0x0400,0x0c00,0x2000,l,n,r,t,e);i=p,p=w,w=i;g=g^v,p=p^m,y=y^b,w=w^E;v=n,m=e,b=t,E=r}function D(n,e,t,r){n=n|0;e=e|0;t=t|0;r=r|0;x(0x0000,0x0800,0x1000,l,v,m,b,E);v=g=g^n,m=p=p^e,b=y=y^t,E=w=w^r}function O(n,e,t,r){n=n|0;e=e|0;t=t|0;r=r|0;x(0x0000,0x0800,0x1000,l,v,m,b,E);g=g^n,p=p^e,y=y^t,w=w^r;v=n,m=e,b=t,E=r}function _(n,e,t,r){n=n|0;e=e|0;t=t|0;r=r|0;x(0x0000,0x0800,0x1000,l,v,m,b,E);v=g,m=p,b=y,E=w;g=g^n,p=p^e,y=y^t,w=w^r}function L(n,e,t,r){n=n|0;e=e|0;t=t|0;r=r|0;x(0x0000,0x0800,0x1000,l,i,o,a,u);u=~d&u|d&u+1;a=~f&a|f&a+((u|0)==0);o=~s&o|s&o+((a|0)==0);i=~c&i|c&i+((o|0)==0);g=g^n;p=p^e;y=y^t;w=w^r}function F(n,e,t,r){n=n|0;e=e|0;t=t|0;r=r|0;var i=0,o=0,a=0,u=0,c=0,s=0,f=0,d=0,l=0,h=0;n=n^v,e=e^m,t=t^b,r=r^E;i=C|0,o=T|0,a=S|0,u=k|0;for(;(l|0)<128;l=l+1|0){if(i>>>31)c=c^n,s=s^e,f=f^t,d=d^r;i=i<<1|o>>>31,o=o<<1|a>>>31,a=a<<1|u>>>31,u=u<<1;h=r&1;r=r>>>1|t<<31,t=t>>>1|e<<31,e=e>>>1|n<<31,n=n>>>1;if(h)n=n^0xe1000000}v=c,m=s,b=f,E=d}function t(n){n=n|0;l=n}function P(n,e,t,r){n=n|0;e=e|0;t=t|0;r=r|0;g=n,p=e,y=t,w=r}function B(n,e,t,r){n=n|0;e=e|0;t=t|0;r=r|0;v=n,m=e,b=t,E=r}function j(n,e,t,r){n=n|0;e=e|0;t=t|0;r=r|0;i=n,o=e,a=t,u=r}function U(n,e,t,r){n=n|0;e=e|0;t=t|0;r=r|0;c=n,s=e,f=t,d=r}function H(n,e,t,r){n=n|0;e=e|0;t=t|0;r=r|0;u=~d&u|d&r,a=~f&a|f&t,o=~s&o|s&e,i=~c&i|c&n}function r(n){n=n|0;if(n&15)return-1;h[n|0]=g>>>24,h[n|1]=g>>>16&255,h[n|2]=g>>>8&255,h[n|3]=g&255,h[n|4]=p>>>24,h[n|5]=p>>>16&255,h[n|6]=p>>>8&255,h[n|7]=p&255,h[n|8]=y>>>24,h[n|9]=y>>>16&255,h[n|10]=y>>>8&255,h[n|11]=y&255,h[n|12]=w>>>24,h[n|13]=w>>>16&255,h[n|14]=w>>>8&255,h[n|15]=w&255;return 16}function V(n){n=n|0;if(n&15)return-1;h[n|0]=v>>>24,h[n|1]=v>>>16&255,h[n|2]=v>>>8&255,h[n|3]=v&255,h[n|4]=m>>>24,h[n|5]=m>>>16&255,h[n|6]=m>>>8&255,h[n|7]=m&255,h[n|8]=b>>>24,h[n|9]=b>>>16&255,h[n|10]=b>>>8&255,h[n|11]=b&255,h[n|12]=E>>>24,h[n|13]=E>>>16&255,h[n|14]=E>>>8&255,h[n|15]=E&255;return 16}function q(){M(0,0,0,0);C=g,T=p,S=y,k=w}function z(n,e,t){n=n|0;e=e|0;t=t|0;var r=0;if(e&15)return-1;while((t|0)>=16){X[n&7](h[e|0]<<24|h[e|1]<<16|h[e|2]<<8|h[e|3],h[e|4]<<24|h[e|5]<<16|h[e|6]<<8|h[e|7],h[e|8]<<24|h[e|9]<<16|h[e|10]<<8|h[e|11],h[e|12]<<24|h[e|13]<<16|h[e|14]<<8|h[e|15]);h[e|0]=g>>>24,h[e|1]=g>>>16&255,h[e|2]=g>>>8&255,h[e|3]=g&255,h[e|4]=p>>>24,h[e|5]=p>>>16&255,h[e|6]=p>>>8&255,h[e|7]=p&255,h[e|8]=y>>>24,h[e|9]=y>>>16&255,h[e|10]=y>>>8&255,h[e|11]=y&255,h[e|12]=w>>>24,h[e|13]=w>>>16&255,h[e|14]=w>>>8&255,h[e|15]=w&255;r=r+16|0,e=e+16|0,t=t-16|0}return r|0}function W(n,e,t){n=n|0;e=e|0;t=t|0;var r=0;if(e&15)return-1;while((t|0)>=16){G[n&1](h[e|0]<<24|h[e|1]<<16|h[e|2]<<8|h[e|3],h[e|4]<<24|h[e|5]<<16|h[e|6]<<8|h[e|7],h[e|8]<<24|h[e|9]<<16|h[e|10]<<8|h[e|11],h[e|12]<<24|h[e|13]<<16|h[e|14]<<8|h[e|15]);r=r+16|0,e=e+16|0,t=t-16|0}return r|0}var X=[M,R,A,N,D,O,_,L];var G=[A,F];return{set_rounds:t,set_state:P,set_iv:B,set_nonce:j,set_mask:U,set_counter:H,get_state:r,get_iv:V,gcm_init:q,cipher:z,mac:W}}({Uint8Array:Uint8Array,Uint32Array:Uint32Array},e);return v.set_key=function(n,e,t,r,i,o,a,u,c){var s=h.subarray(0,60);h.subarray(256,316),s.set([e,t,r,i,o,a,u,c]);for(var f=n,d=1;f<4*n+28;f++){var l=s[f-1];(f%n==0||8===n&&f%n==4)&&(l=m[l>>>24]<<24^m[l>>>16&255]<<16^m[l>>>8&255]<<8^m[255&l]),f%n==0&&(l=l<<8^l>>>24^d<<24,d=d<<1^(128&d?27:0)),s[f]=s[f-n]^l}v.set_rounds(n+5)},v}return n.ENC={ECB:0,CBC:2,CFB:4,OFB:6,CTR:7},n.MAC={CBC:0,GCM:1},n.HEAP_DATA=16384,n}(),o=(a.prototype.AES_Encrypt_process=function(n){if(!(n instanceof Uint8Array))throw new TypeError("data isn't of expected type");for(var e,t,r,i,o,a,u=this.asm,c=this.heap,s=y.ENC[this.mode],f=y.HEAP_DATA,d=this.pos,l=this.len,h=0,v=n.length||0,m=0,g=0,p=new Uint8Array(l+v&-16);0<v;)t=d+l,r=n,i=h,o=v,a=void 0,a=(e=c).length-t,o=a<o?a:o,e.set(r.subarray(i,i+o),t),l+=g=o,h+=g,v-=g,(g=u.cipher(s,f+d,l))&&p.set(c.subarray(d,d+g),m),m+=g,g<l?(d+=g,l-=g):l=d=0;return this.pos=d,this.len=l,p},a.prototype.AES_Encrypt_finish=function(){var n=this.asm,e=this.heap,t=y.ENC[this.mode],r=y.HEAP_DATA,i=this.pos,o=this.len,a=16-o%16,u=o;if(this.hasOwnProperty("padding")){if(this.padding){for(var c=0;c<a;++c)e[i+o+c]=a;u=o+=a}else if(o%16)throw new f("data length must be a multiple of the block size")}else o+=a;var s=new Uint8Array(u);return o&&n.cipher(t,r+i,o),u&&s.set(e.subarray(i,i+u)),this.pos=0,this.len=0,s},a);function a(n,e,t,r,i,o){void 0===t&&(t=!0),this.pos=0,this.len=0,this.mode=r,this.heap=i||function(n,e){if(4095&(e=n?n.byteLength:e||65536)||e<=0)throw new Error("heap size must be a positive integer and a multiple of 4096");return n=n||new Uint8Array(new ArrayBuffer(e))}().subarray(y.HEAP_DATA),this.asm=o||new y(null,this.heap.buffer),this.pos=0,this.len=0;o=n.length;if(16!==o&&24!==o&&32!==o)throw new f("illegal key size");n=new DataView(n.buffer,n.byteOffset,n.byteLength);if(this.asm.set_key(o>>2,n.getUint32(0),n.getUint32(4),n.getUint32(8),n.getUint32(12),16<o?n.getUint32(16):0,16<o?n.getUint32(20):0,24<o?n.getUint32(24):0,24<o?n.getUint32(28):0),e!==U){if(16!==e.length)throw new f("illegal iv size");e=new DataView(e.buffer,e.byteOffset,e.byteLength);this.asm.set_iv(e.getUint32(0),e.getUint32(4),e.getUint32(8),e.getUint32(12))}else this.asm.set_iv(0,0,0,0);this.padding=t}function u(n,e,t,r){void 0===t&&(t=!0),this.aes=r||new o(n,e,t,"CBC")}n.AES_CBC=(u.encrypt=function(n,e,t,r){return new u(e,r,t=void 0===t?!0:t).encrypt(n)},u.prototype.encrypt=function(n){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=n.reduce(function(n,e){return n+e.length},0),r=new Uint8Array(t),i=0,o=0;o<n.length;o++)r.set(n[o],i),i+=n[o].length;return r}(this.aes.AES_Encrypt_process(n),this.aes.AES_Encrypt_finish())},u)}(D),lt.prototype.put=function(n,e){e={key:n,value:e};if(this._keymap[n]=e,this.tail?(this.tail.newer=e).older=this.tail:this.head=e,this.tail=e,this.size===this.limit)return this.shift();this.size++},lt.prototype.shift=function(){var n=this.head;return n&&(this.head.newer?(this.head=this.head.newer,this.head.older=U):this.head=U,n.newer=n.older=U,delete this._keymap[n.key]),n},lt.prototype.get=function(n,e){n=this._keymap[n];if(n!==U)return n===this.tail||(n.newer&&(n===this.head&&(this.head=n.newer),n.newer.older=n.older),n.older&&(n.older.newer=n.newer),n.newer=U,n.older=this.tail,this.tail&&(this.tail.newer=n),this.tail=n),e?n:n.value},lt.prototype.find=function(n){return this._keymap[n]},lt.prototype.set=function(n,e){var t,r=this.get(n,!0);return r?(t=r.value,r.value=e):t=(t=this.put(n,e))&&t.value,t},lt.prototype.toString=function(){for(var n="",e=this.head;e;)n+=String(e.key)+":"+e.value,(e=e.newer)&&(n+=" < ");return n},ht.MAX_ENTRIES=150,ht.DirectionType={BACK:1,FORWARD:2},ht.UrlType={FUlL_URL:1,HASH_ONLY:2},vt.EVENTS={BlackoutEnter:"BlackoutEnter",BlackoutLeave:"BlackoutLeave"},vt.ALWAYS_FALSE=function(){return!1},xn={severity:{ERROR:0,WARN:1,INFO:2,DEBUG:3},types:{GENERAL_ERR:{code:100,count:0},INVALID_TIMING_ERR:{code:101,count:0},TOP_WINDOW_SIZE_ERR:{code:102,count:0},WINDOW_SIZE_NOT_VALID_ERR:{code:103,count:0},KEREN_ERR:{code:104,count:0}},currentDebugInfo:null,registerError:function(n,e){xn.registerDebugInfo(xn.severity.ERROR,n,e)},registerErrorAndLog:function(n,e){xn.registerDebugInfoAndLog(xn.severity.ERROR,n,e)},registerDebugInfoAndLog:function(n,e,t){xn.registerDebugInfo(n,e,t)},registerDebugInfo:function(n,e,t){e.count++,null===xn.currentDebugInfo&&(xn.currentDebugInfo=new mt(n,e.code,e.count,t))},getRegisteredDebugInfo:function(n){var e=xn.currentDebugInfo;return null===e||E.isUndefined(e)?null:(n&&xn.clearDebugInfo(),e)},clearDebugInfo:function(){xn.currentDebugInfo=null},setRegisteredDebugInfoOnEvent:function(n){var e;null!==n.getDebugInfo()&&!E.isUndefined(n.getDebugInfo())||null!=(e=xn.getRegisteredDebugInfo(!0))&&n.setDebugInfo(e)},setErrorOnEvent:function(n,e,t){xn.setDebugInfoOnEvent(n,xn.severity.ERROR,e,t)},setErrorOnEventAndLog:function(n,e,t,r){xn.setDebugInfoOnEvent(n,xn.severity.ERROR,e,t)},setWarnOnEvent:function(n,e,t){xn.setDebugInfoOnEvent(n,xn.severity.WARN,e,t)},setDebugInfoOnEvent:function(n,e,t,r){null===n||E.isUndefined(n)?logger.error("Failed setting debug on non-existing event"):(r=new mt(e,t.code,t.count,r),n.setDebugInfo(r))}},Mn={env:M,config:H,utils:q,_:E,sessionId:U,visitorId:U,externalIdResolver:(Nn=(Nn={byAttribute:H.externalIdAttr,byClassPrefix:H.externalIdByClassesOnPrefix})||{},{resolve:function(n){if(n.getAttribute){if(Nn.byClassPrefix){var e=St(n);if(e)return function(n,e){for(var t=n.parentElement,r=[e];t;)(e=St(t))&&r.unshift(e),t=t.parentElement;return r.join(" ")}(n,e)}if(Nn.byAttribute){n=n.getAttribute(Nn.byAttribute);if(n)return n}}return null}}),uaUtils:{captureWindowSize:function(){return E.isNumber(window.innerWidth)&&E.isNumber(window.innerHeight)?Tt(window.innerWidth,window.innerHeight,"[inner]"):!E.isUndefined(j.body)&&E.isNumber(j.body.offsetWidth)&&E.isNumber(j.body.offsetHeight)?Tt(j.body.offsetWidth,j.body.offsetHeight,"[offset]"):null},captureScreenSize:function(){return Tt(window.screen.width,window.screen.height,"[screen]")}},debugHelper:(Rn=H,{visitLoadEvent:function(n){var e;Rn.sendStateInfo&&(Oe(e={}),_e(e),e={ver:An,config:function(n){var e,t,r={};for(e in Rn)Rn.hasOwnProperty(e)&&("object"==typeof Rn[e]?0<(Rn[e].length||0)&&(r[e]=Rn[e]):(t=""+Rn[e],""+n[e]!==t&&(100<t.length&&(t="[trimmed] "+t.substring(0,100)),r[e]=t)));return r}(e)},n.setExtraInfo(je.prototype.DETECTOR_CONFIG_ID,JSON.stringify(e)))},visitUnloadEvent:function(n){}}),page:{snapshotEmitted:!(An=t),snapshotFuseData:U,timing:{}},encryptionPendingEvents:[],bindings:{registered:[],unsupportedEventTypes:[]},plugins:{},reports:{events:[],resources:[]},state:{loaded:!1,handshakeDone:!1,encryptionReady:!1,stopped:!1,clickStart:U,clickStartType:U,scrolling:{},unloading:!1,maxScrollReach:0,typableElementsLRUMap:new lt(20),lastFocusData:{},mouseEnterReported:!1,hover:{hoverStartTimestamp:0,hoverElementList:[]},clsDebugCounter:0,dpr:window.devicePixelRatio},scrollReach:{top:0,height:null,isInfinite:!1},touchDetected:!1,firstClickFired:!1,ajaxUrls:new lt(20),historyManager:new ht(window,V,window.history),blackoutManager:new vt(window,V,H.blackoutWhenLocationContains),debugInfoHandler:xn,zoomType:{IN:1,OUT:2},version:M.detectorVersion,logicalSegmentTracker:new function(o,a,e,u){var t,r,c,i,s,f=!1;function d(n){n=n.join(",");return e.validateSelector(n)?n:null}function l(n,e,t){var r;if(n){if((r=n.getAttribute(u.labelByAttribute))&&r!==i)return i=r,u.parallelMechanism&&(s=!1===t?0:t++),e&&(f=!1,o.emit("logicalSegmentEntered",u.segmentationPrefix+r),(n=n.getAttribute(u.titleByAttribute))&&o.emit("titleChanged",n)),1;e&&(f=!0)}else e&&(f=!0)}function h(n,e,t){try{if(t&&u.initialLabelSelector)return void l(a.querySelector(u.initialLabelSelector),n,e);var r=a.querySelectorAll(c);if(!1!==e)l(r[e],n,e);else for(var i=0;i<r.length&&!l(r[i],n);i++);}catch(n){logger.error("Exception while trying to enter a new logical segment. Error: "+n.message,n),f=!1,o.emit("clsDebug","error trying to enter a new logical segment. Exception message: "+n.message)}}function v(n){setTimeout(h.gbBind(null,!0,n),0)}function n(){if(u.parallelMechanism&&!u.initialLabelSelector)return console.log('%c Must define "initialLabelSelector" in parallel mode! disabling Logical Segmentation.',"color: white; background: red"),void o.emit("clsDebug",'Missing "initialLabelSelector". Disabling Logical Segmentation.');var n,e;if(r=d(u.triggerBySimpleSelector),c=d(u.labelBySimpleSelector),r&&c){for(n=0;n<u.triggerBySimpleSelector.length;n++)for(t=a.querySelectorAll(u.triggerBySimpleSelector[n]),e=0;e<t.length;e++)q.addEventHandler(t[e],"click",v.bind(null,!!u.parallelMechanism&&n),!0);h(!1,!1,!0)}}this.init=function(){n()},this.onBeforeEmittingPageEvent=function(){f&&h(!(f=!1),!!u.parallelMechanism&&s)}}(V,j,$e(),{triggerBySimpleSelector:H.segmentationTriggerBySimpleSelector,labelBySimpleSelector:H.segmentationLabelBySimpleSelector,labelByAttribute:H.segmentationLabelByAttribute,titleByAttribute:H.segmentationTitleByAttribute,segmentationPrefix:H.segmentationPrefix,parallelMechanism:H.segmentationParallelMechanism,initialLabelSelector:H.segmentationInitialLabelSelector}),segmentManager:new function(t,a,u,r,c){c=c||{ignoreWhenLocationContains:U};var s=!1,e="",i=r.mask(q.stripHash(q.decodeUri(c.decodUri,t.location.href))),f={startedAt:q.currentTimestamp(),value:q.decodeUri(c.decodUri,t.location.pathname),type:"path"};function o(n){e=r.mask(q.decodeUri(c.decodUri,t.location.hash)),d()||l("hash",n,e)}function d(){return c.ignoreWhenLocationContains&&0<=q.decodeUri(c.decodUri,t.location.href).indexOf(c.ignoreWhenLocationContains)}function l(n,e,t){var r=q.currentTimestamp(),i=f.value,o=u.segmentChange(r),i={type:n,hint:e,current:q.decodeUri(c.decodUri,t),last:i,lastDwell:r-f.startedAt};-1!==o&&(i.lastLoadTime=o),f.startedAt=r,f.type=n,f.value=t,s=!0,a.emit("segmentChanged",i)}a.on("init:loaded",function(){i=r.mask(q.stripHash(q.decodeUri(c.decodUri,t.location.href))),t.location.hash&&o("load")}),a.on("navigation",function(n){var e;n.direction===ht.DirectionType.BACK?e="back":n.direction===ht.DirectionType.FORWARD&&(e="forward"),n.urlType===ht.UrlType.HASH_ONLY?o(e):(e=e,i=r.mask(q.stripHash(q.decodeUri(c.decodUri,t.location.href))),d()||l("path",e,r.mask(q.decodeUri(c.decodUri,t.location.pathname))))}),a.on("logicalSegmentEntered",function(n){var e=r.mask(q.joinPath(q.decodeUri(c.decodUri,t.location.pathname),n));i=r.mask(q.joinPath(q.decodeUri(c.decodUri,t.location.pathname),n)),l("path","logical",e)}),this.onUnload=function(){s&&a.emit("lastSegment",{last:f.value,lastDwell:q.currentTimestamp()-f.startedAt,lastLoadTime:f.lastLoadTime})},this.visitEvent=function(n){n.referrer=i,n.segment=f.value,n.subPage=e}}(j,V,new function(e,t,r){var i=50,o={pendingEvents:{},totalLoadTime:0,startTime:0,keepListen:!1},a=null,u=null,c=function(s,f,d,l){var h={IFRAME:!0,FRAME:!!l};function v(e){var n,t,r,i,o,a,u=!1,c=e.nodeName.toUpperCase();if(c.match(/^(IMG|IFRAME|IMAGE)$/)||l&&c.match(/^(FRAME)$/)||"LINK"===c&&e.rel&&e.rel.match(/\bstylesheet\b/i)){if(("LINK"!==c||!e.rel||!e.sheet)&&((n=d(e))&&e.src!==n.url&&(u=!0),(o=e.src||"function"==typeof e.getAttribute&&e.getAttribute("xlink:href")||e.href)&&!o.match(/^(about:|javascript:|data:)/i))){if(n&&n.url!==o&&(u=!0),"IMG"===c){if(e.naturalWidth&&!u||""!==e.getAttribute("src")&&e.complete)return;if("function"==typeof e.getAttribute&&""===e.getAttribute("src"))return}h[c]&&u||(n||s(e,o),a=function(n){f(n.target),q.removeEventHandler(e,"load",a),q.removeEventHandler(e,"error",a)},q.addEventHandler(e,"load",a),q.addEventHandler(e,"error",a))}}else e&&e.nodeType===Node.ELEMENT_NODE&&["IMAGE","IMG"].forEach(function(n){if((t=e.getElementsByTagName(n)).length)for(r=0,i=t.length;r<i;r++)v(t[r])},this)}return{checkMutation:function(n){var e,t,r;if("attributes"===n.type)v(n.target);else if("childList"===n.type){for(t=n.addedNodes.length,e=0;e<t;e++)v(n.addedNodes[e]);for(t=n.removedNodes.length,e=0;e<t;e++)r=n.removedNodes[e],h[r.nodeName.toUpperCase()]&&d(r)&&f(r)}}}}(function(n,e){o.pendingEvents[t.idOf(n)]={url:e}},function(n){h(t.idOf(n))},function(n){return o.pendingEvents[t.idOf(n)]},r.framesetRecordEnabled);function s(n){o.isRoutingStart&&(u=o.totalLoadTime),o.keepListen=!0,o.pendingEvents={},o.totalLoadTime=0,o.startTime=n,o.isRoutingStart||(e.on("ajax:send",d),e.on("ajax:end",l),e.on("ajax:loadError",l),e.on("domMutation",v),o.isRoutingStart=!0)}function f(){q.isEmpty(o.pendingEvents)&&(u=o.totalLoadTime,o.keepListen=!1)}function d(n){o.keepListen&&(o.pendingEvents[n.uuid]={url:n.url})}function l(n){o.keepListen&&h(n.uuid)}function h(n){o.pendingEvents[n]&&(o.totalLoadTime=q.currentTimestamp()-o.startTime,delete o.pendingEvents[n],q.isEmpty(o.pendingEvents)&&(n=i,a&&clearTimeout(a),a=setTimeout(f,n)))}function v(n){o.keepListen&&c.checkMutation(n)}this.segmentChange=function(n){return r.recordSpaLoadTime&&r.interceptAjax?(s(n),18e4<(u=null===u?window.performance.timing.domContentLoadedEventEnd-window.performance.timing.navigationStart:u)&&e.emit("clsDebug","Error: SPA load time exceed 180000 milliseconds, SPA load time:"+u),u):-1}}(V,_,{recordSpaLoadTime:H.recordSpaLoadTime,interceptAjax:H.interceptAjax,framesetRecordEnabled:H.framesetRecordEnabled}),W,{ignoreWhenLocationContains:H.segmentationIgnoreWhenLocationContains,decodUri:H.decodUri}),botDetector:new function(t,e,r){var i="bot.nh",o="bot.d",a={CLICKS_WITH_NO_MOUSE_MOVES:{code:"1",active:!0},NOT_TRUSTED_MOUSEEVENT:{code:"3",active:!0},INVALID_NAVIGATION_API_VALUES:{code:"4",active:!0},MOVE_AND_CLICK_SAME_COORDINATES_AND_TIMES:{code:"5",active:!0}},u={MANY_MOUSE_MOVES_BETWEEN_CLICKS:{code:"-1",active:!0}},c=!1,s=!1,f=null,d=null,l=0,h=100,v=0,m={robot:!1,human:!1},g=!1;function p(){n("mousemove",y),n("click",w),g=!1}function y(n){return c||(d=q.getCoordinate(n),l=q.currentTimestamp()),s&&v++,c=!0}function w(n){var e,t;return n.type!==M.mouseEvents.down||(e=n).type===M.mouseEvents.down&&(s=!0,t=q.getCoordinate(e),null!==f?u.MANY_MOUSE_MOVES_BETWEEN_CLICKS.active&&!q.isSameCoordinates(t,f)?10<=v&&function(n){n.code,m.human=!0,r.set(o,n.code),p()}(u.MANY_MOUSE_MOVES_BETWEEN_CLICKS):a.CLICKS_WITH_NO_MOUSE_MOVES.active&&q.isCoordinatesDistLargerThan(t,f,10)&&0===v&&b(a.CLICKS_WITH_NO_MOUSE_MOVES):c&&function(n){a.MOVE_AND_CLICK_SAME_COORDINATES_AND_TIMES.active&&(n=q.getCoordinate(n),null!==d&&q.isSameCoordinates(n,d)&&q.currentTimestamp()-l<h&&(n=r.get(i),E.isUndefined(n)?r.set(i,1):(n=parseInt(n),isNaN(n)&&(n=1),n++,r.set(i,n),b(a.MOVE_AND_CLICK_SAME_COORDINATES_AND_TIMES),a.MOVE_AND_CLICK_SAME_COORDINATES_AND_TIMES.active=!1)))}(e),v=0,f=t),n=n,a.NOT_TRUSTED_MOUSEEVENT.active&&"isTrusted"in n&&!1===n.isTrusted&&b(a.NOT_TRUSTED_MOUSEEVENT),!0}function n(e,n){try{q.removeEventHandler(t.body,e,n)}catch(n){logger.error("BotDetector failed to remove "+e+" listener. "+n.message(),n)}}function b(n){g&&(n.code,n.active=!1,r.set(o,n.code),m.robot=!0,p(),e.emit("botDetection",n.code))}this.init=function(){var n=r.get(o);n||(g=!0,q.addEventHandler(t.body,"mousemove",y,!0),q.addEventHandler(t.body,"click",w,!0))},this.isActive=function(){return g},this.notifyMouseAction=w}(j,V,A),pageInfo:function(n,e,t){var r,i,o,a;if(!t||e)return U;n.on("event:unload",function(){t["gb.unloaded"]=!0});try{r=function(){var e=t["gb.psn"]||"0";try{e=parseInt(e)+1}catch(n){e=1}return t["gb.psn"]=e}(),o=t["gb.btabid"],a=t["gb.unloaded"],void 0!==o&&void 0!==a||(o=q.uuid(),t["gb.btabid"]=o),delete t["gb.unloaded"],i=o}catch(n){}return{pageSn:r,browserTabId:i}}((window,V),window.top!==window,window.sessionStorage),ect:null,initialize:function(){var n,e;if(M.setup,Mn.version,Mn.setClientCookies(((H.visitorIdByQueryParam||H.sessionIdByQueryParam)&&(n=(e=q.parseQuery(j.location.search.substring(1)))[H.sessionIdByQueryParam],e=e[H.visitorIdByQueryParam]),l.sessionId&&(l.sessionId,n=l.sessionId),{sessionId:n=H.clsByNativeCookie?R.get(H.clsByNativeCookie):n,visitorId:e})),void 0!==H.enabledByChance&&!Ke(H.enabledByChance,A,"recording"))return M.disabled=!0,void H.enabledByChance;window.navigator.connection&&(Mn.ect=window.navigator.connection.effectiveType);try{if(void 0!==k){var t=S.validate(k,H);if(0<t.errors.length)return void console.error("[EyeView-1401]: Detector configuration validation failure. validation report:"+t)}}catch(n){return void console.error("[EyeView-1402]: Error while validating Detector configuration:"+n+". Detector is DISABLED.")}try{Mn.checkSupportModeSession(),Mn.initializePageDetails(),Mn.registerPlugins(),V.on("clsDebug",Mn.saveClsDebugErrorEvent),V.on(vt.EVENTS.BlackoutEnter,Mn.onBlackoutEnter),V.on(vt.EVENTS.BlackoutLeave,Mn.onBlackoutLeave),this.asStoppable().isStopped(!0),Mn.updateScrollReach(),Mn.registerPreLoadEvents(),Mn.addDomReadyEventHandler(),V.on("3rdpartymap:scReport",Mn.saveThirdPartyMapEvent),V.on("3rdPartyAttribute",Mn.saveThirdPartyAttributeEvent),V.on("abTesting",Mn.saveABTesting),V.on("pageNameResolved",Mn.onPageNameResolved),V.on("encryptionReady",Mn.onEncryptionReady),V.on("dom:fuseBlown",Mn.onDomFuseBlown),V.emit("init:preloaded",{sessionId:Mn.sessionId,visitorId:Mn.visitorId,pageId:Mn.page.id}),Mn.saveDocumentLoadEvent(Mn.page.initializationTimestamp),Mn.page.id,Mn.page.urlWithoutHash;var r=window.document.readyState;j.body&&"complete"===r?Mn.onLoad():q.addEventHandler(window,"load",Mn.onLoad,!1)}catch(n){logger.error("ERROR: while initializing detector. Exception: ",n.stack||n.message),console.log("WARNING[EyeView-1302]: Failed initializing detector script - "+n.message),Mn.saveClsDebugErrorEvent("initialize",n)}H.reportValidationErrors&&V.on("formValidationError",Mn.saveValidationError),H.isMixMasking&&Mn.saveClsDebugErrorEvent("maskingConfiguration",{name:"masking configuration error",message:"mixed masking configuration"})},onEncryptionReady:function(){var n;for(Mn.state.encryptionReady=!0,n=0;n<Mn.encryptionPendingEvents.length;n++)V.emit("saveEvent",Mn.encryptionPendingEvents[n]);Mn.encryptionPendingEvents=[]},onBlackoutEnter:function(n){var e;window===window.top&&((e=Mn.createEventObject("blackout",q.currentTimestamp(),null)).value=n,Mn.saveEvent(e))},onBlackoutLeave:function(){Mn.savePageUpdate()},onLoad:function(){window.location.href;var n=q.currentTimestamp();Mn.state.loaded||(q.time("onLoadInitialization"),Mn.documentEvent&&0<j.title.length&&(void 0===Mn.page.title||0===Mn.page.title.length)&&(Mn.page.title=Mn.getPageTitle(),Mn.documentEvent.setExtraInfo(je.prototype.VISUAL_NAME,Mn.page.title)),!q.getLocationUrlSplitByHash(window.location.href).hash&&0<H.segmentationTriggerBySimpleSelector.length&&0<H.segmentationLabelBySimpleSelector.length&&""!==H.segmentationLabelByAttribute&&""!==H.segmentationTitleByAttribute&&Mn.logicalSegmentTracker.init(),H.botDetection&&!q.hasTouch()&&Mn.botDetector.init(),Mn.state.loaded=!0,Mn.page.loadTimestamp=n,Mn.trySendPerformanceEvent(),V.emit("init:loaded"),Mn.registerPostLoadEvents(),Mn.plugins.domRecordingPlugin&&Rr(j,V,H),V.emit("init:post_binding"),q.timeEnd("onLoadInitialization"),window.location.href)},registerPlugins:function(){var t=this;E.forOwn(Mn.plugins,function(n,e){n.initialize(V,t)})},registerPreLoadEvents:function(){var n=function(){return Mn.state.unloading},e=[{type:"beforeunload",interception:Mn.interceptUnload,target:window,logicalName:"unload",filter:n},{type:"pagehide",interception:Mn.interceptUnload,target:window,logicalName:"unload",filter:n},{type:"resize",internallyDispatchAs:"window",filter:Mn.filterResize,interception:Mn.interceptResize,target:window},{type:Mn.getChangeEventType(),valueExtraction:Mn.extractElementValue,interception:Mn.interceptFocusLost,filter:Mn.filterNonChangableEventsElements,logicalName:"change",target:j},{type:"reset",target:j},{type:"submit",valueExtraction:Mn.extractElementSource,target:j},{type:"keyup",target:j,internalOnly:!0},{type:Mn.getFocusInEventType(),internallyDispatchAs:"element",valueExtraction:Mn.extractElementValue,interception:Mn.interceptFocusIn,filter:Mn.filterNonTypableElements,target:j}];Mn.page.hasTouch?(e.push({type:"touchstart",interception:Mn.interceptTouchStart,target:j}),e.push({type:q.isHybridAndroid()?"touchmove":"touchend",interception:Mn.interceptClickEnd,target:j})):(e.push({type:M.mouseEvents.down,interception:Mn.interceptClickStart,target:j,logicalName:"mousedown"}),e.push({type:M.mouseEvents.up,interception:Mn.interceptClickEnd,target:j})),q.isMobile()||(e.push({type:"dragstart",interception:Mn.interceptDragStart,target:j}),e.push({type:"dragend",interception:Mn.interceptDragEnd,target:j})),"blur"!==Mn.getChangeEventType()&&e.push({preload:!0,type:"blur",valueExtraction:Mn.extractElementValue,interception:Mn.interceptBlur,filter:Mn.filterNonTypableElements,logicalName:"change",target:j}),H.recordMouseMoves&&e.push({type:"mousemove",valueExtraction:Mn.extractMouseMoveValue,encodeValue:!1,interception:Mn.interceptMouseMove,dontSendElement:!0,target:j}),H.recordHovers&&e.push({type:"mouseover",encodeValue:!1,filter:Mn.filterHovers,interception:Mn.interceptMouseOver,target:j}),H.recordScrolls&&e.push({type:"scroll",debounceBy:H.debounceScrolls,valueExtraction:Mn.extractScrollValue,filter:Mn.filterScrollElements,interception:Mn.interceptScroll,target:j}),H.recordScrollReach&&e.push({type:"scroll",logicalName:"scrollReach",debounceBy:H.debounceScrolls,valueExtraction:Mn.extractScrollReach,filter:Mn.filterScrollElements,interception:Mn.interceptScrollReach,target:j});n=q.getMouseEnterTarget();n!==j&&n!==window||e.push({type:"mouseenter",interception:Mn.interceptMouseEnter,target:n}),Mn.shouldListenToKeyEvents()&&(e.push({type:"keydown",interception:Mn.interceptKeyboard,target:j}),e.push({type:"keypress",interception:Mn.interceptKeyboard,target:j})),H.domRecordEnabled&&(V.on("pageSnapshot:save",Mn.savePageSnapshotEvent),V.on("pageUpdate",Mn.savePageUpdate)),H.resourcesRecordEnabled&&V.on("saveResourceEvent",Mn.saveResourceDataEvent),H.resourcesRecordAllowCors&&V.on("saveCorsDeniedEvent",Mn.saveCorsDeniedDataEvent),H.clientAttributesEnabled&&V.on("clientAttribute",Mn.saveClientAttributeEvent),H.resourceTimingRecordEnabled&&Ke(H.resourceTimingRecordEnabledByChance,A,"performanceRecord")&&V.on("resourcesWaterfall",Mn.savePerformanceDataEvent),H.webVitalsRecordEnabled&&V.on("webVitals",Mn.saveWebVitalsEvent),Mn.page.hasTimingAPI&&!H.recordAjaxCallsAnyway||(V.on("ajax:load",Mn.recordAjaxResource),V.on("ajax:error",Mn.recordAjaxResource)),-1!==H.ajaxRecordSessionLimit&&V.on("ajax:limitReached",Mn.ajaxLimitReached),V.on("devToolsVisibilityChanged",Mn.saveDevToolsChangeEvent),V.on("domTampered",Mn.saveDomTamperedEvent),V.on("ajax:loadend",Mn.saveAjaxRequestEvent),V.on("ajax:reportStats",Mn.saveAjaxStatsEvent),V.on("segmentChanged",Mn.saveSegmentChangedEvent),V.on("lastSegment",Mn.saveLastSegmentEvent),V.on("titleChanged",Mn.saveTitleChanged),V.on("botDetection",Mn.saveBotDetectionEvent),V.on("reporter:idle",Mn.saveIdleEvent),V.on("customEvent",Mn.saveCustomEvent),V.on("customMapEvent",Mn.saveCustomMapEvent),V.on("pageError",Mn.onPageError),V.on("parentWindowInfo",Mn.setClientCookies),V.on("reportStruggle",Mn.saveStruggle),V.on("reportVoC",Mn.saveVoc),V.on("invalidateSession",Mn.onInvalidateSession),Mn.bindPageEvents(e)},saveIdleEvent:function(n){var e=q.currentTimestamp(),t=Mn.createEventObject("idle",e,null);t.value=e-n.idleBaseTime,t.setExtraInfo(je.prototype.TIME_SINCE_LAST_EVENT,e-n.latestEventTime),Mn.saveEvent(t)},saveBotDetectionEvent:function(n){var e=Mn.createEventObject("botDetection",q.currentTimestamp(),null);e.value=n,e.shouldEncodeValue=!1,Mn.saveEvent(e)},registerPostLoadEvents:function(){var n=[];Mn.state.mouseEnterReported||q.getMouseEnterTarget()!==j.body||n.push({type:"mouseenter",interception:Mn.interceptMouseEnter,target:j.body}),0<n.length&&Mn.bindPageEvents(n)},bindPageEvents:function(n){q.time("bindPageEvents"),E.forEach(n,function(n){Mn.registerEventBinding(n)}),Mn.bindings.registered.length,E.pluck(Mn.bindings.registered,"type"),Mn.bindings.unsupportedEventTypes.length&&Mn.bindings.unsupportedEventTypes.join(", "),q.timeEnd("bindPageEvents")},registerEventBinding:function(e){var n=e.target||window.document.body;if(E.isUndefined(n)||null==n)e.type;else try{Mn.handleElementsEvents(n,e)}catch(n){logger.error("Failed binding '"+e.type+"'. Error: "+n.message,n),window.console&&console.error(n)}},handleElementsEvents:function(n,e){var t=e.type;E.contains(M.eventTypes,t)&&(q.isEventSupported(t)?(e=Mn.createHandler(e),q.addEventHandler(n,t,e,!0),Mn.bindings.registered.push({type:t,el:n,handler:e})):Mn.bindings.unsupportedEventTypes.push(t))},createHandler:function(e){var n,t=function(n){if(En.bounceAll(n.type),Mn.handleDOMEvent(n,e),"beforeunload"!==n.type)return!0};return 0<(e.debounceBy||0)&&((n=En[e.type])?t=n(t,e.debounceBy).debouncedHandler:e.type),t},handleDOMEvent:function(e,n){try{if(e=e||window.event,!(E.isUndefined(e._cls_handled)||!0!==e._cls_handled||n&&"scrollReach"===n.logicalName))return;e._cls_handled=!0,q.time("handleDOMEvent_"+e.type);var t=q.extractElementFromEvent(e),r=q.getElementId(t);H.ignorableElementIds&&E.contains(H.ignorableElementIds,r)||Mn.handleEvent(e,t,n),q.timeEnd("handleDOMEvent_"+e.type)}catch(n){logger.error("ERROR: while handling "+e.type+" DOM event ",e," Exception: ",n.stack||n.message),Mn.saveClsDebugErrorEvent("handleDOMEvent",n,"event type="+e.type)}},assignSelectorInfo:function(n,e){n=N.getSelectorInfo(n);e.selectorExpression=n.selector||M.encoding.rootSelector,n.hostSelectorPath&&e.setExtraInfo(je.prototype.HOST_SELECTOR_PATH,n.hostSelectorPath)},handleEvent:function(n,e,t){var r,i,o;t.internallyDispatchAs&&V.emit(t.internallyDispatchAs+":"+t.type,e),E.isFunction(t.filter)&&t.filter(e,n)||(i=q.currentTimestamp(),r=n.type,q.time("handleEvent_"+r),(i=Mn.createEventObject(r,i,e)).domEvent=n,n=!E.isUndefined(t.dontSendElement)&&!0===t.dontSendElement,Mn.assignSelectorInfo(e,i),i.selectorExpression=n?M.encoding.rootSelector:i.selectorExpression,i.binding=t,E.isUndefined(t.encodeValue)||!1!==t.encodeValue||(i.shouldEncodeValue=!1),Mn.extractValue(i,t),Mn.extractExternalId(i,e),Mn.interceptReport(i,t),H.reportVisualNames&&i.report&&!n&&(o=H.visualName&&H.visualName.eventsToCalcDistance[i.type]?(o=i.getExtraInfo(je.prototype.COORDINATE_ATTR),Mn.extractVisualName(e,o.x,o.y)):Mn.extractVisualName(e))&&i.setExtraInfo(je.prototype.VISUAL_NAME,o),Mn.autoMaskingSignaled&&(i.setExtraInfo(je.prototype.AUTO_MASKING,Mn.autoMaskingSignaled),Mn.autoMaskingSignaled=null),t.internalOnly||Mn.saveEvent(i),V.emit("event:"+i.type,i),q.timeEnd("handleEvent"+r))},createEventObject:function(n,e,t){t=new je(n,e,t,Mn.page.id);return Mn.segmentManager.visitEvent(t),t},onDomReady:function(){Mn.page.timing.contentInteractiveTime=performance.now(),V.emit("init:domready")},onAutoMaskingApplied:function(n,e){var t=n._gbid||"function"==typeof n.getAttribute&&n.getAttribute("gbid");n.tagName,n.id,Mn.autoMaskingSignaled=e,V.emit("clsDebug","auto masking for element with gbid: "+t+". reason: "+e)},addDomReadyEventHandler:function(){"interactive"===j.readyState||"complete"===j.readyState?Mn.onDomReady():q.addEventHandler(window,"DOMContentLoaded",Mn.onDomReady,!0)},extractValue:function(e,n){try{var t;E.isUndefined(n.valueExtraction)||(t=n.valueExtraction(e.domEvent,e.element),E.isUndefined(t)||null==t||(e.value=t))}catch(n){logger.error("Failed extracting value for event "+e.type+" - "+n.name+": "+n.message,n),"clsdebug"!==e.type&&Mn.saveClsDebugErrorEvent("extractValue",n,"event type="+e.type)}},extractExternalId:function(n,e){e&&q.isElement(e)&&((e=this.externalIdResolver.resolve(e))&&n.setExtraInfo(je.prototype.EXTERNAL_ID,e))},interceptReport:function(e,n){if(!E.isUndefined(n.interception))try{e.report=n.interception(e)}catch(n){logger.error("Failed intercepting "+e.type+" event: "+n.message,n,e),"clsdebug"!==e.type&&Mn.saveClsDebugErrorEvent("interceptReport",n,"event type="+e.type)}},addEvent:function(n){Mn.config.debugMode&&Mn.reports.events.push(n)},getFocusInEventType:function(){return q.isOldIE()?"focusin":"focus"},getChangeEventType:function(){return q.isOldIE()?"onfocusout"in j?"focusout":"blur":"change"},startFocusTiming:function(n){var e=q.currentTimestamp(),t=Mn.state.lastFocusData.startTime;Mn.state.lastFocusData={element:n,startTime:e,prevFocusStartTime:t}},endFocusTiming:function(n){Mn.state.lastFocusData.element===n&&(n=q.currentTimestamp(),Mn.state.lastFocusData.focusTime=n-Mn.state.lastFocusData.startTime)},filterNonTypableElements:function(n,e){return null===n||(Mn.isChangebleElement(n)&&("focus"===e.type||"focusin"===e.type?Mn.startFocusTiming(n):"blur"===e.type&&Mn.endFocusTiming(n)),!Mn.isTypableElement(n))},filterNonChangableEventsElements:function(n,e){return null===n||null===e||(Mn.isChangebleElement(n)&&Mn.endFocusTiming(n),"change"!==e.type&&!Mn.isChangebleElement(n))},interceptFocusIn:function(n){return Mn.checkTypedContentHasChangedAndUpdate(n),!1},interceptFocusLost:function(n){return null!==n&&null!==n.element&&(Mn.state.lastFocusData.focusTime&&n.setExtraInfo(n.FOCUS_TIME_ATTR,Mn.state.lastFocusData.focusTime),V.emit("event:elementChange",n),!!Mn.isSelectableElement(n.element)||Mn.checkTypedContentHasChangedAndUpdate(n))},interceptBlur:function(n){return Mn.state.lastFocusData.focusTime&&n.setExtraInfo(n.FOCUS_TIME_ATTR,Mn.state.lastFocusData.focusTime),V.emit("event:elementChange",n),Mn.checkTypedContentHasChangedAndUpdate(n)},checkTypedContentHasChangedAndUpdate:function(n){var e="focus"===n.type||"focusin"===n.type,t="blur"===n.type||"focusout"===n.type,r=n.selectorExpression,i=n.value;if(null===i||E.isUndefined(i))return!1;var o={text:i,markAutoComplete:!1},a=Mn.state.typableElementsLRUMap.set(r,o),r=E.isUndefined(a);if(r&&t)return!1;if(e&&!r&&a.text!==i&&0<=i.toLocaleLowerCase().indexOf(a.text.toLocaleLowerCase())&&(o.markAutoComplete=!0),t&&!r&&a.markAutoComplete){t=Mn.state.lastFocusData.prevFocusStartTime;return!E.isUndefined(t)&&E.isNumber(t)&&Mn.state.lastFocusData.element===n.element?(t=q.currentTimestamp()-t,n.setExtraInfo(n.FOCUS_TIME_ATTR,t)):n.setExtraInfo(n.FOCUS_TIME_ATTR,-1),n.setExtraInfo(n.AUTO_COMPLETE_ATTR,!0),!0}return r||a.text!==i},isMouseEvent:function(n){return n===M.mouseEvents.down||n===M.mouseEvents.up},isTouchEvent:function(n){return"touchstart"===n||"touchend"===n||"touchmove"===n},interceptMouseEnter:function(n){if(Mn.state.mouseEnterReported)return!1;var e=q.getCoordinate(n.domEvent);return n.setExtraInfo(je.prototype.COORDINATE_ATTR,e),Mn.removeEventBinding("mouseenter"),Mn.state.mouseEnterReported=!0,Mn.page.hasTouch&&!Mn.touchDetected&&q.isChromeDesktop()&&(Mn.switchTouchToMouse(),Mn.page.hasTouch=!1),!0},switchTouchToMouse:function(){Mn.removeEventBinding("touchstart"),q.isHybridAndroid()?Mn.removeEventBinding("touchmove"):Mn.removeEventBinding("touchend");var n=[{type:M.mouseEvents.down,interception:Mn.interceptClickStart,target:j,logicalName:"mousedown"},{type:M.mouseEvents.up,interception:Mn.interceptClickEnd,target:j,logicalName:"mouseup"}];Mn.bindPageEvents(n)},filterHovers:function(e){try{if("undefined"==typeof jQuery||E.isUndefined(jQuery)||E.isUndefined(jQuery._data))return!0;for(var n=e,t=1,r=E.isNumber(H.mhDeepLevel)?H.mhDeepLevel:1;null!==n&&n!==j.body&&t<=r;){var i=jQuery._data(n,"events");if(i&&i.mouseover&&0<i.mouseover.length)return H.mhDebug&&n.id,Mn.addHoverElement(n),!0;t++,n=n.parentElement}}catch(n){logger.error("Exception while extracting hover information for element : ",e,n.message,n),Mn.saveClsDebugErrorEvent("filterHovers",n,"element="+(e?e.nodeName:"null"))}return!0},addHoverElement:function(n){Mn.state.hover.hoverElementList.length<H.mhMaxInMemeoryHovers&&(Mn.state.hover.hoverElementList.push(n),Mn.state.hover.hoverStartTimestamp=q.currentTimestamp())},cleanHoverElements:function(){H.mhDebug,Mn.state.hover.hoverElementList=[],Mn.state.hover.hoverStartTimestamp=0},filterResize:function(){return q.isOldIE()},interceptResize:function(n){var e=q.getWindowSize(),t=q.getScreenSize(),r=!1;return null===e||null===Mn.page.windowSize||Mn.page.windowSize.width===e.width&&Mn.page.windowSize.height===e.height||(Mn.page.windowSize=e,r=!0),null===t||null===Mn.page.screenSize||Mn.page.screenSize.width===t.width&&Mn.page.screenSize.height===t.height||(Mn.page.screenSize=t,r=!0),window.devicePixelRatio!==Mn.state.dpr&&(window.devicePixelRatio>Mn.state.dpr?n.setExtraInfo(n.ZOOM,Mn.zoomType.IN):n.setExtraInfo(n.ZOOM,Mn.zoomType.OUT),Mn.state.dpr=window.devicePixelRatio),n.value={},n.value.dpr=Mn.state.dpr,n.value.window=Mn.page.windowSize,n.value.screen=Mn.page.screenSize,r},interceptMouseOver:function(){return!1},interceptClickStart:function(n){return Mn.botDetector.isActive()&&Mn.isMouseEvent(n.type)&&Mn.botDetector.notifyMouseAction(n.domEvent),H.recordHovers&&Mn.saveHoverEvent(),Mn.state.clickStart=Mn.createClickDetailsObject(n),!(Mn.state.clickStartType="mousedown")},interceptTouchStart:function(n){return Mn.touchDetected=!0,Mn.state.clickStartType="touchstart",Mn.state.clickStart=Mn.createClickDetailsObject(n),!1},interceptClickEnd:function(n){Mn.botDetector.isActive()&&Mn.isMouseEvent(n.type)&&Mn.botDetector.notifyMouseAction(n.domEvent);var e=!1,t=Mn.state.clickStart,r=Mn.createClickDetailsObject(n);if("touchend"===n.type&&t&&r.elPosition&&r.elPosition.left&&Math.abs(parseInt(r.elPosition.left,10)-(parseInt(t.elPosition.left,10)||0))>H.minDragPixels||r.elPosition&&r.elPosition.right&&Math.abs(parseInt(r.elPosition.right,10)-(parseInt(t.elPosition.right,10)||0))>H.minDragPixels||r.elPosition&&r.elPosition.top&&Math.abs(parseInt(r.elPosition.top,10)-(parseInt(t.elPosition.top,10)||0))>H.minDragPixels||r.elPosition&&r.elPosition.bottom&&Math.abs(parseInt(r.elPosition.bottom,10)-(parseInt(t.elPosition.bottom,10)||0))>H.minDragPixels)Mn.handleDrag(n,t,r),e=!0;else if(t){if(q.isMobile())if(t&&(Math.abs(r.coordinate.x-t.coordinate.x)>H.minDragPixels||Math.abs(r.coordinate.y-t.coordinate.y)>H.minDragPixels))return!1;n.type=Mn.state.clickStartType,n.value=t,n.timestamp=t.timestamp,n.setExtraInfo(je.prototype.COORDINATE_ATTR,Mn.state.clickStart.coordinate),n.setExtraInfo(je.prototype.IS_FIRST_CLICK,!Mn.firstClickFired),Mn.firstClickFired||(Mn.firstClickFired=!0),n.setExtraInfo(je.prototype.IS_CLICKABLE,q.isClickable(n.element)),E.isUndefined(n.element)||(t=q.getElementXYCoordinates(n.element))&&n.setExtraInfo(je.prototype.SYNC_COORDINATE,t),q.isHybrid()&&n.addHybridActionDataItem("start",{x:Mn.state.clickStart.coordinate.x,y:Mn.state.clickStart.coordinate.y}),V.emit("event:click",n),n.rageSequence&&n.indexInRage&&(n.setExtraInfo(je.prototype.RAGE_SEQUENCE,n.rageSequence),n.setExtraInfo(je.prototype.INDEX_IN_RAGE,n.indexInRage)),e=!0}return Mn.state.clickStart=U,Mn.state.clickStartType=U,e},interceptDragStart:function(n){return Mn.state.clickStart=Mn.createClickDetailsObject(n),!(Mn.state.clickStartType="mousedown")},interceptDragEnd:function(n){var e=Mn.state.clickStart,t=Mn.createClickDetailsObject(n);return Mn.handleDrag(n,e,t),!0},handleDrag:function(n,e,t){var r={duration:e.timestamp?t.timestamp-e.timestamp:-1,start:e.coordinate,end:t.coordinate};n.type="drag",n.value=r,E.isUndefined(n.element)||(r=q.getElementXYCoordinates(e.el))&&n.setExtraInfo(je.prototype.SYNC_COORDINATE,r),q.isHybrid()&&(n.addHybridActionDataItem("start",{x:e.coordinate.x,y:e.coordinate.y}),n.addHybridActionDataItem("end",{x:t.coordinate.x,y:t.coordinate.y}))},interceptUnload:function(n){q.time("unload");var e=performance.now()-Mn.page.timing.contentInteractiveTime;Mn.page.timing.contentInteractiveTime&&e<5e3&&Mn.saveClsDebugErrorEvent("detector.js",{name:"fast unload",message:"Unload happened at "+e/1e3+" second"},""),Mn.state.unloading=!0,Mn.segmentManager.onUnload();var t=q.currentTimestamp();Mn.page.hasTimingAPI||(sessionStorage["gb.lastReferrer"]=m.encodeNumber(t)+"_"+q.Base64.encode(Mn.page.urlWithoutHash));e=t-Mn.page.initializationTimestamp;return n.setExtraInfo(n.FOCUS_TIME_ATTR,e),n.setExtraInfo(n.SCROLL_REACH,Math.round(Mn.state.maxScrollReach)),Mn.debugHelper.visitUnloadEvent(n),q.timeEnd("unload"),n.timestamp=t,!0},updateScrollReach:function(){Mn.state.maxScrollReach=Math.max(Mn.state.maxScrollReach,q.getCurrentScrollReach())},interceptScroll:function(n){return"#document"===n.element.nodeName&&Mn.updateScrollReach(),!0},updateScrollReachValues:function(n){n.value&&(Mn.scrollReach.height=n.value.height,Mn.scrollReach.top=Math.max(Mn.scrollReach.top,n.value.top))},shouldReportScrollReach:function(n){return(Mn.scrollReach.height!==n.value.height||Mn.scrollReach.top<n.value.top)&&(Mn.updateScrollReachValues(n),!0)},interceptScrollReach:function(n){var e=!1;return n.value&&"#document"===n.element.nodeName&&(!Mn.scrollReach.isInfinite&&0<Mn.scrollReach.height&&n.value.height!==Mn.scrollReach.height?(Mn.scrollReach.isInfinite=!0,Mn.updateScrollReachValues(n),e=!0):Mn.shouldReportScrollReach(n)&&(e=!0),n.value.isInfinite=Mn.scrollReach.isInfinite),e},filterScrollElements:function(n){return!(null!=n&&"MARQUEE"!==n.nodeName)},interceptMouseMove:function(n){return n.lastSingleMoveTimestamp=n.timestamp,n.setExtraInfo(n.FOCUS_TIME_ATTR,0),!0},createClickDetailsObject:function(n){var e={coordinate:q.getCoordinate(n.domEvent),el:n.element,selector:n.selectorExpression,timestamp:n.timestamp};return q.isMobile()&&(e.elPosition={left:n.element.style?n.element.style.left:"",right:n.element.style?n.element.style.right:"",top:n.element.style?n.element.style.top:"",bottom:n.element.style?n.element.style.bottom:""}),e},shouldListenToKeyEvents:function(){return H.recordEnterForInputs||Mn.recordAutoCompleteRelatedChars()},recordAutoCompleteRelatedChars:function(){return void 0===Mn.acCharsSupport&&(Mn.acCharsSupport=H.recordTypingAll||H.supportNativeAutoComplete||H.recordTypingForAttrs&&0<H.recordTypingForAttrs.length||H.recordTypingForClasses&&0<H.recordTypingForClasses.length||H.recordTypingForIDs&&0<H.recordTypingForIDs.length),Mn.acCharsSupport},resolveKeyData:function(n){var e=n.domEvent,t=n.element.value,r=n.element,i=e.keyCode||e.charCode;n.value={unicode:i};r=O.isCensored(r);return"keypress"===n.type?13!==i&&8!==i&&9!==i&&("0"!==e.charCode&&(r?n.value={unicode:42}:E.isUndefined(t)||null===t||(n.value.content=t+String.fromCharCode(i)),!0)):"keydown"===n.type&&(38===i||40===i||13===i||9===i?(r||(n.value.content=n.element.value),!0):8===i&&!E.isUndefined(t)&&null!==t&&!r&&(n.value.content=0<t.length?t.substring(0,t.length-1):"",!0))},interceptKeyboard:function(n){var e=n.element;if(!(e&&("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName||"BUTTON"===e.nodeName||"SELECT"===e.nodeName)))return!1;var t,r=n.domEvent.keyCode||n.domEvent.charCode,r=13===r||9===r;if(n.shouldEncodeValue=!1,r&&H.recordEnterForInputs)return Mn.resolveKeyData(n);if(H.supportNativeAutoComplete&&(e.hasAttribute("autocomplete")||e.hasAttribute("aria-autocomplete")&&"none"!==e.getAttribute("aria-autocomplete")||e.hasAttribute("class")&&E.contains(e.getAttribute("class"),"autocomplete")))return Mn.resolveKeyData(n);if(H.recordTypingAll)return Mn.resolveKeyData(n);if(H.recordTypingForAttrs&&0<H.recordTypingForAttrs.length)for(t=0;t<H.recordTypingForAttrs.length;t++)if(e.hasAttribute(H.recordTypingForAttrs[t]))return Mn.resolveKeyData(n);if(e.hasAttribute("class")&&H.recordTypingForClasses&&0<H.recordTypingForClasses.length)for(t=0;t<H.recordTypingForClasses.length;t++)if(E.contains(e.getAttribute("class"),H.recordTypingForClasses[t]))return Mn.resolveKeyData(n);var i=q.getElementId(e);if(i&&H.recordTypingForIDs&&0<H.recordTypingForIDs.length)for(t=0;t<H.recordTypingForIDs.length;t++)if(i===H.recordTypingForIDs[t])return Mn.resolveKeyData(n);return!1},recordAjaxResource:function(n){Mn.addResource("ajax",n.url,n.timestamp)},addResource:function(n,e,t){t=new kt(n,e,t);return Mn.reports.resources.push(t),V.emit("timingResource",t),t},saveEvent:function(n){var e;Mn.blackoutManager.isUnderBlackout()&&("idle"!==n.type||"idle"===n.type&&!H.blackoutIdleReporting)||this.state.stopped||(e=Mn.renameEventType(n),Mn.addEvent(n),xn.setRegisteredDebugInfoOnEvent(n),H.debugMode&&(n.report||H.traceMode)&&Mn.shouldLog(n.type)&&Mn.logEvent(n,e),n.report&&(Mn.state.encryptionReady?V.emit("saveEvent",n):Mn.encryptionPendingEvents.push(n)))},shouldLog:function(n){return"mousemove"===n?!H.suppressMouseMovesDebug||H.mmDebug:"scroll"!==n||H.scrollDebug},renameEventType:function(n){var e=n.type;return E.isUndefined(n.binding)||E.isUndefined(n.binding.logicalName)||"drag"===n.type||(n.type=n.binding.logicalName),e},logEvent:function(n,e){H.debugMode&&((e=["saving event: "+(n.type===e?n.type:n.type+"("+e+")")+" selector: "+(n.selectorExpression||"")]).push("{value="),e.push(n.value||"NONE"),n.extraInfo&&(e.push("{ extraInfo="),e.push(n.extraInfo)),e.push("}"))},saveDocumentLoadEvent:function(n){n=Mn.createEventObject("document",n,null);Mn.page.url=W.mask(Mn.page.url),Mn.page.urlWithoutHash=W.mask(Mn.page.urlWithoutHash),n.value=Mn.page,n.shouldEncodeValue=!1,Mn.page.screenSize=Mn.uaUtils.captureScreenSize(),Mn.page.windowSize=Mn.uaUtils.captureWindowSize(),Mn.page.title=Mn.getPageTitle(),Mn.page.title&&n.setExtraInfo(je.prototype.VISUAL_NAME,Mn.page.title),void 0!==iframeHelper&&n.setExtraInfo(je.prototype.WINDOW_DEPTH,iframeHelper.tryGetCurrentDepth(window)),n.setExtraInfo(je.prototype.HISTORY_LENGTH,window.history.length),Mn.pageInfo&&(n.setExtraInfo(je.prototype.DEBUG_PAGE_SN,""+Mn.pageInfo.pageSn),n.setExtraInfo(je.prototype.DEBUG_BROWSER_TAB_ID,""+Mn.pageInfo.browserTabId)),H.mobileHybridId&&n.setExtraInfo(je.prototype.MOBILE_HYBRID_ID,H.mobileHybridId),H.debounceScrolls&&n.setExtraInfo(je.prototype.SCROLL_DEBOUNCED,!0),Mn.ect&&n.setExtraInfo(je.prototype.EFFECTIVE_CONNECTION_TYPE,Mn.ect),Mn.documentEvent=n,this.debugHelper.visitLoadEvent(n),Mn.documentEventHook?Mn.documentEventHook(n,Mn.onParentHandshakeDone):Mn.onParentHandshakeDone()},trySendPerformanceEvent:function(){Mn.state.loaded&&Mn.state.handshakeDone&&Mn.resolvePageLoadTime(Mn.page)},onParentHandshakeDone:function(){Mn.state.handshakeDone=!0,Mn.documentEvent&&(Mn.saveEvent(Mn.documentEvent),V.emit("event:document")),Mn.trySendPerformanceEvent()},savePageUpdate:function(){var n=Mn.createEventObject("pageUpdate",q.currentTimestamp(),null);Mn.saveEvent(n)},onPageError:function(n){var e;n.eventLimitExceeded||((e=Mn.createEventObject("error",q.currentTimestamp(),null)).value=n.error,e.shouldEncodeValue=!0,Mn.saveEvent(e))},saveTitleChanged:function(n){var e=Mn.createEventObject("titleChanged",q.currentTimestamp(),null);e.value=Mn.getPageTitle(n),e.shouldEncodeValue=!0,Mn.saveEvent(e)},saveSegmentChangedEvent:function(n){var e=Mn.createEventObject("segmentChanged",q.currentTimestamp(),null);e.value=n,e.shouldEncodeValue=!1,Mn.saveEvent(e),Mn.plugins.domRecordingPlugin&&Mn.plugins.domRecordingPlugin.isStarted()&&setTimeout(function(){Mn.savePageUpdate()},0)},saveLastSegmentEvent:function(n){var e=Mn.createEventObject("lastSegment",q.currentTimestamp(),null);e.value=n,e.shouldEncodeValue=!1,Mn.saveEvent(e)},savePageSnapshotEvent:function(n){var e=Mn.useCurrentTimeForPagesnapshot?q.currentTimestamp():Mn.page.initializationTimestamp,e=Mn.createEventObject("pageSnapshot",e,null);e.value=n,e.shouldEncodeValue=!1;n=window.performance&&window.performance.timing;n&&e.setExtraInfo(je.prototype.NAVIGATION_TIMING,JSON.parse(JSON.stringify(n))),Mn.autoMaskingSignaled&&(e.setExtraInfo(je.prototype.AUTO_MASKING,Mn.autoMaskingSignaled),Mn.autoMaskingSignaled=null),Mn.page.snapshotFuseData&&e.setExtraInfo(je.prototype.SNAPSHOT_FUSE,JSON.stringify(Mn.page.snapshotFuseData)),Mn.saveEvent(e)},saveDevToolsChangeEvent:function(n){var e=Mn.createEventObject("devToolsVisibilityChanged",q.currentTimestamp(),null);e.value=n.value,Mn.saveEvent(e)},saveDomTamperedEvent:function(n){var e=Mn.createEventObject("domTampered",q.currentTimestamp(),null);e.element=n.element,void 0!==n.newText&&e.setExtraInfo(je.prototype.CURRENT_VALUE,n.newText),void 0!==n.prevText&&e.setExtraInfo(je.prototype.OLD_VALUE,n.prevText),Mn.assignSelectorInfo(n.element,e),Mn.saveEvent(e)},saveStruggle:function(n){var e,t,r=Mn.createEventObject("webStruggle",q.currentTimestamp(),null);n.errors&&(e=n.errors.join(";"),r.setExtraInfo(je.prototype.ERROR_DATA,e)),n.elementSelector?(r.selectorExpression=n.elementSelector.selector||M.encoding.rootSelector,n.elementSelector.hostSelectorPath&&r.setExtraInfo(je.prototype.HOST_SELECTOR_PATH,n.elementSelector.hostSelectorPath)):(r.element=n.element,Mn.assignSelectorInfo(n.element,r),H.reportVisualNames&&n.relatedEvent&&(t=H.visualName&&H.visualName.eventsToCalcDistance[n.relatedEvent.type]?(t=n.relatedEvent.getExtraInfo(je.prototype.COORDINATE_ATTR),Mn.extractVisualName(n.element,t.x,t.y)):Mn.extractVisualName(n.element))&&r.setExtraInfo(je.prototype.VISUAL_NAME,t)),r.value=n.dataToEncode,r.shouldEncodeValue=!1,Mn.saveEvent(r)},saveVoc:function(n){var e=Mn.createEventObject("voc",q.currentTimestamp(),null);e.value=n,Mn.saveEvent(e)},saveAjaxRequestEvent:function(n){var e=Mn.createEventObject("ajaxRequest",n.startedAt||q.currentTimestamp(),null);n.ajaxUrls=Mn.ajaxUrls,e.value=n,e.selectorExpression=n.lastFocusedSelectorInfo?n.lastFocusedSelectorInfo.selector:M.encoding.rootSelector,n.lastFocusedSelectorInfo&&n.lastFocusedSelectorInfo.hostSelectorPath&&e.setExtraInfo(je.prototype.HOST_SELECTOR_PATH,n.lastFocusedSelectorInfo.hostSelectorPath),n.containOnlyMetaData&&e.setExtraInfo(je.prototype.METADATA_ONLY,!0),e.shouldEncodeValue=!1,Mn.saveEvent(e)},ajaxLimitReached:function(){var n=Mn.createEventObject("ajaxLimitReached",q.currentTimestamp(),null);Mn.saveEvent(n)},saveAjaxStatsEvent:function(n){var e=Mn.createEventObject("ajaxStats",q.currentTimestamp(),null);e.value=n,e.shouldEncodeValue=!1,Mn.saveEvent(e)},saveClsDebugErrorEvent:function(n,e,t){e=Mn.formatClsDebugMessage(n,e,t);0!==e.length&&((t=Mn.createEventObject("clsdebug",q.currentTimestamp(),null)).value=e,Mn.saveEvent(t))},formatClsDebugMessage:function(n,e,t){if(Mn.state.clsDebugCounter>=H.clsDebugMaxReports)return"";Mn.state.clsDebugCounter++;e=e?e.stack||e.name+": "+e.message:"";return"CLS Error in "+n+" "+(t?"{"+t+"} ":"")+(0<(e=q.truncateStr(e,H.clsDebugCharsLimit,!0)).length?": "+e:"")},saveValidationError:function(n){var e=Mn.createEventObject("formValidationError",q.currentTimestamp(),null);e.element=n.element,e.value=n.message,Mn.assignSelectorInfo(n.element,e),Mn.saveEvent(e)},saveHoverEvent:function(){var n=Mn.createEventObject("hover",Mn.state.hover.hoverStartTimestamp,null);if(0!==Mn.state.hover.hoverElementList.length){H.mhDebug&&Mn.state.hover.hoverElementList.length;var e=Mn.state.hover.hoverElementList;Mn.cleanHoverElements();for(var t,r={},i=[],o=e.length-1;0<=o;o--)if(t=e[o],r[t=N.getSelectorInfo(t).selector||M.encoding.rootSelector])H.mhDebug;else if(r[t]=!0,i.push(t),i.length>=H.mhMaxListSize){H.mhDebug;break}n.value=e,n.shouldEncodeValue=!1,Mn.saveEvent(n)}else H.mhDebug},saveCustomEvent:function(n){Mn.handleCustomEvent("custom",n)},saveCustomMapEvent:function(n){Mn.handleCustomEvent("customMap",n)},handleCustomEvent:function(n,e){n=Mn.createEventObject(n,q.currentTimestamp(),null);n.value=e,!E.isUndefined(e.domEl)&&q.isDOMElement(e.domEl)&&(n.element=e.domEl,Mn.assignSelectorInfo(e.domEl,n)),n.shouldEncodeValue=!1,Mn.saveEvent(n)},saveThirdPartyMapEvent:function(n){var e=Mn.createEventObject("thirdpartymap",q.currentTimestamp(),null);e.value=n.value,n.type&&e.setExtraInfo(je.prototype.TP_INTEGRATION_TYPE,n.type),n.element&&(e.element=n.element,Mn.assignSelectorInfo(n.element,e)),e.shouldEncodeValue=!1,Mn.saveEvent(e)},saveThirdPartyAttributeEvent:function(n){var e=Mn.createEventObject("thirdPartyAttribute",q.currentTimestamp(),null);e.value=n,e.shouldEncodeValue=!1,Mn.saveEvent(e)},onDomFuseBlown:function(n){Mn.page.snapshotEmitted||(Mn.page.snapshotFuseData=n)},onPageNameResolved:function(n){Mn.page.name=n},saveABTesting:function(n){var e=Mn.createEventObject("abTesting",q.currentTimestamp(),null);e.setExtraInfo(je.prototype.PROVIDER_NAME,n.provider),e.value=n.offers,e.shouldEncodeValue=!1,Mn.saveEvent(e)},saveResourceDataEvent:function(n){var e=Mn.createEventObject("resourceContent",q.currentTimestamp(),null);e.value=n,e.shouldEncodeValue=!1,Mn.saveEvent(e)},saveCorsDeniedDataEvent:function(n){var e=Mn.createEventObject("corsDeniedResource",q.currentTimestamp(),null);e.value=n,Mn.saveEvent(e)},saveClientAttributeEvent:function(n){var e=Mn.createEventObject("clientAttribute",q.currentTimestamp(),null);e.value=n,e.shouldEncodeValue=!1,Mn.saveEvent(e)},saveWebVitalsEvent:function(n){var e=Mn.createEventObject("webVitals",q.currentTimestamp(),null);e.value=n.webVitals,e.setExtraInfo(je.prototype.EFFECTIVE_CONNECTION_TYPE,n.ect),e.setExtraInfo(je.prototype.RTT,n.rtt),e.shouldEncodeValue=!1,Mn.saveEvent(e)},savePerformanceDataEvent:function(n){var e=Mn.createEventObject("resourcesWaterfall",q.currentTimestamp(),null);e.value={version:n.version,causedBy:n.causedBy,performance:n.pagePerformance,resources:n.resource},e.setExtraInfo(je.prototype.EFFECTIVE_CONNECTION_TYPE,n.ect),e.setExtraInfo(je.prototype.RTT,n.rtt),e.shouldEncodeValue=!1,Mn.saveEvent(e)},initializePageDetails:function(){q.time("initializePageDetails");var n=Mn.page;n.initializationTimestamp=q.currentTimestamp(),n.id=q.uuid(),n.frame=window.self!==top,n.frame&&(n.referrerWithoutHash=q.getReferrerUrlWithoutHash());var e=q.getLocationUrlSplitByHash(H.decodUri);n.url=e.url,n.urlWithoutHash=e.withoutHash,n.hash=e.hash,n.hasTouch=q.hasTouch(),n.hasTimingAPI=q.hasTimingAPI(),n.title=Mn.getPageTitle(),q.timeEnd("initializePageDetails")},getPageTitle:function(n){n=q.truncateStr(n||j.title,H.titleCharsLimit,!0);return n=H.maskTitle?q.transformTextSegments(n,z.censorValueOf):n},resolvePageLoadTime:function(n){var e,t;n.hasTimingAPI?Mn.acquirePerformanceTiming():(t=sessionStorage["gb.lastReferrer"])&&(e=j.referrer.replace(/#.*/,""),t=t.split("_"),e===q.Base64.decode(t[1])&&(t=parseInt(t[0],36),n.timing.total=n.loadTimestamp-t,Mn.saveTimingEvent({page:n.timing})))},saveTimingEvent:function(n){var e=Mn.createEventObject("timing",q.currentTimestamp(),window.document);e.value=n,Mn.page.title&&e.setExtraInfo(je.prototype.VISUAL_NAME,Mn.page.title),Mn.saveEvent(e)},savePerformanceEvent:function(n){var e=Mn.createEventObject("performance",q.currentTimestamp(),window.document);window.performance&&window.performance.timing&&(e.value={perf:{timing:JSON.parse(JSON.stringify(window.performance.timing))},browserTime:n},window.performance.navigation&&(e.value.perf.navigation={redirectCount:window.performance.navigation.redirectCount,type:window.performance.navigation.type}),Mn.page.title&&e.setExtraInfo(je.prototype.VISUAL_NAME,Mn.page.title),Mn.page.name&&e.setExtraInfo(je.prototype.PAGE_NAME,Mn.page.name),Mn.ect&&e.setExtraInfo(je.prototype.EFFECTIVE_CONNECTION_TYPE,Mn.ect),e.shouldEncodeValue=!1,Mn.saveEvent(e))},acquirePerformanceTiming:function(){var n;0===window.performance.timing.loadEventEnd?window.setTimeout(Mn.acquirePerformanceTiming,300):(n=q.currentTimestamp()-Mn.page.initializationTimestamp,Mn.savePerformanceEvent(n))},setClientCookies:function(n,e){n=Ct(new wt(window.localStorage,{keysPrefix:M.Storage.UnboundKeyPrefix}),R,n,e,H.visitorDaysToExpiration);x.isCorsReporting()&&n.changed&&((e=Mn.plugins.cors)&&e.onCookieChanged()),n.visitorId&&(this.visitorId=n.visitorId),this.sessionId=n.sessionId},onInvalidateSession:function(){V.emit("forceFlush"),Mn.setClientCookies(U,!0),Mn.sessionId,Mn.page.id=q.uuid(),Mn.page.snapshotEmitted=!1,Mn.page.snapshotFuseData=U,V.emit("session:new",{sessionId:Mn.sessionId,visitorId:Mn.visitorId,pageId:Mn.page.id,pageName:Mn.page.name})},registerPlugin:function(n,e){Mn.plugins[n]=e},removeEventBinding:function(n){for(var e=-1,t=0;t<Mn.bindings.registered.length;t++){var r=Mn.bindings.registered[t];r.type===n&&(q.removeEventHandler(r.el,n,r.handler),e=t)}0<=e&&Mn.bindings.registered.splice(e,1)},removeBindings:function(){E.forEach(Mn.bindings.registered,function(n){q.removeEventHandler(n.el,n.type,n.handler)}),Mn.bindings.registered=[],Mn.bindings.unsupportedEventTypes=[]},getEncoder:function(){return m},supportModeOn:function(n){n=n||!1,Mn.applySupportMode(),n&&A.set("supportMode",!0)},isSupportModeSession:function(){return void 0!==R.get(M.cookies.supportMode)||A.get("supportMode")},checkSupportModeSession:function(){Mn.isSupportModeSession()&&Mn.applySupportMode()},applySupportMode:function(){},asStoppable:function(){var e=this;return{isStopped:function(n){return n&&(e.state.stopped="true"===A.get("stopped")),e.state.stopped},start:function(){return!!e.state.stopped&&(e.state.stopped=!1,A.remove("stopped"),!0)},stop:function(){return!e.state.stopped&&(e.state.stopped=!0,V.emit("recordingStopped"),A.set("stopped","true"),!0)}}}},kt.prototype.toString=function(){return this.url},It.prototype.toString=function(){return"("+this.x+","+this.y+")"},Dn={inMemoryMovesCounter:0,notifyEventsFlush:function(){Dn.inMemoryMovesCounter=0},diluteEvents:function(n,e,t){if(e){if("resize"===t.type)return!0;if("scroll"===t.type)return"scroll"===e.type||Mn.page.hasTouch&&"drag"===e.type?!(t.timestamp-e.timestamp>H.minStallingScrollTime)&&(t.selectorExpression=e.selectorExpression,H.scrollDebug&&e.type,!0):!("mousemove"!==e.type||1!==e.value.length||!n||"scroll"!==n.type)&&(!(t.timestamp-n.timestamp>H.minStallingScrollTime)&&(H.scrollDebug,!0));if("mousemove"===t.type&&"mousemove"!==e.type)return!0;if("mousemove"===t.type&&"mousemove"===e.type){var r=H.reportByPost?3e3:H.mmMaxMovesInEventWithTimes,n=H.reportByPost?3e3:H.mmMaxMovesInEventNoTimes;return H.mmRecordTimes&&e.value.length>=r||!H.mmRecordTimes&&e.value.length>=n?(H.mmDebug&&e.value.length,Dn.inMemoryMovesCounter++,!1):!E.isUndefined(H.mmMinStallingMoveTime)&&t.timestamp-e.lastSingleMoveTimestamp>H.mmMinStallingMoveTime?(H.mmDebug&&(t.timestamp,e.lastSingleMoveTimestamp),Dn.inMemoryMovesCounter++,!1):(Dn.checkExceededInMemoryMoves()?H.mmDebug&&H.mmMaxInMemoryMoves:Dn.diluteMoveEvents(e,t)&&Dn.inMemoryMovesCounter++,!0)}}return"mousemove"===t.type&&(Dn.inMemoryMovesCounter++,!0)},checkExceededInMemoryMoves:function(){var n=H.reportByPost?3e3:H.mmMaxInMemoryMoves;return Dn.inMemoryMovesCounter>=n},diluteMoveEvents:function(n,e){var t=E.last(n.value),r=e.value[0],i=e.timestamp-n.lastSingleMoveTimestamp,o=n.getExtraInfo(n.FOCUS_TIME_ATTR);return Math.abs(t.x-r.x)>H.mmDiluteMinPixels||Math.abs(t.y-r.y)>H.mmDiluteMinPixels?(o+=r.t=i,e.setExtraInfo(e.FOCUS_TIME_ATTR,o),e.timestamp=n.timestamp,n.value.push(r),e.value=n.value,H.mmDebug&&e.value,!0):(e.setExtraInfo(e.FOCUS_TIME_ATTR,o),e.timestamp=n.timestamp,e.value=n.value,e.lastSingleMoveTimestamp=n.lastSingleMoveTimestamp,H.mmDebug&&H.mmDiluteMinPixels,!1)},truncateEventsForUnload:function(n){for(var e=[],t=H.mmMaxMovesWithUnload,r=0,i=!1,o=0;o<n.length;o++){var a=n[o];if("mousemove"===a.type){if(r>=H.mmMaxMovesWithUnload){H.mmMaxMovesWithUnload,i=!0;continue}var u=a.value.length,c=Dn.truncateMouseMoveEvent(a,t-r);r+=c,c<u&&(i=!0)}"unload"===a.type&&i&&a.event.setExtraInfo(a.MOVES_TRUNCATED,!0),e.push(a)}return e},truncateMouseMoveEvent:function(n,e){var t=n.value.length;return t<e?t:(n.value=n.value.slice(0,e),e)}},Mn.checkElementChangebility=function(n){var e=n.nodeName,t=n.type,r=!1,i=!1;switch(e){case"SELECT":i=!0;break;case"TEXTAREA":r=!0;break;case"INPUT":if(null===t)break;switch(t){case"checkbox":case"radio":i=!0;break;case"text":case"password":case"number":case"file":case"url":case"search":case"email":case"date":case"time":case"tel":case"range":case"month":case"week":case"datetime":case"datetime-local":case"color":r=!0}}return{isTypable:r,isSelectable:i}},Mn.isTypableElement=function(n){return Mn.checkElementChangebility(n).isTypable},Mn.isSelectableElement=function(n){return Mn.checkElementChangebility(n).isSelectable},Mn.isChangebleElement=function(n){return Mn.isTypableElement(n)||Mn.isSelectableElement(n)},void 0!==Mn&&function(n,i){n=n||{};var o=q.immutableSet("password","text","number","file","url","search","email","date","time","tel","range","month","week","datetime","datetime-local","color","radio");n.extractElementValue=function(n,e){var t=e.nodeName;if("INPUT"===t){var r=e.type;if(o[r])return i.censor(e);if("checkbox"===r)return e.checked?"true":"false"}else{if("TEXTAREA"===t)return i.censor(e);if("SELECT"===t){t=e.options;if(!E.isUndefined(t)&&"number"==typeof t.length&&0<t.length){if(!E.isUndefined(e.multiple)&&e.multiple)return"["+function(n){for(var e=[],t=0;t<n.length;t++){var r=n[t];r.selected&&e.push(i.censor(r,!0))}return e}(t).join(",")+"]";if(!E.isUndefined(e.selectedIndex)&&!E.isUndefined(t[e.selectedIndex]))return i.censor(t[e.selectedIndex],!0)}}}},n.extractElementSource=function(n,e){e=e.src||e.href;return E.isUndefined(e)||null==e?void 0:e},n.extractLocationHash=function(n,e){return q.getLocationUrlSplitByHash().hash},n.extractScrollValue=function(n,e){if("#document"!==e.nodeName)return new It(e.scrollLeft,e.scrollTop);e=q.getScrollTopLeft();return new It(e.left,e.top)},n.extractScrollReach=function(n,e){if("#document"===e.nodeName)return{top:j.documentElement.scrollTop,height:j.documentElement.scrollHeight}},n.extractMouseMoveValue=function(n,e){return[q.getCoordinate(n)]}}(Mn,O),void 0!==Mn&&H.useExtension&&q.isChromeDesktop()&&Mn.registerPlugin("extensionManager",new function(t,n,e,r,i){var o={};function a(n){n.data&&o[n.data.name]&&o[n.data.name](n.data.data)}function u(n,e){o[n]=e}function c(n,e){t.postMessage({name:n,data:e||{}})}function s(n){c("GBX_EventLog",n.toJSON())}t.addEventListener("message",a,!1),u("GBX_Inspection",function(){n.extensionInspectMode=!0}),u("GBX_StopInspection",function(){n.extensionInspectMode=!1}),this.initialize=function(){j.querySelector("meta[name='gb-extension']")&&(e.on("extensionEvent",s,null,-1),c("GBD_initData",{detectorConfig:i,version:n.version}))},this.removeListener=function(){t.removeEventListener("message",a,!1)}}(window,Mn,V,0,H)),qt.KEY_NAME_EST=M.Storage.BoundKeyPrefix+"est",qt.KEY_NAME_SN=M.Storage.BoundKeyPrefix+"sn",On={uriContainsAnyOf:function(n,e){if(!n)return!1;for(var t=0;t<e.length;t++)if(0<=n.indexOf(e[t]))return!0;return!1},tryParseValueMap:function(n,e){for(var t,r,i={},o=n.split("&"),a=!1,u=0;u<o.length;u++)if(2===(t=o[u].split("=")).length)try{if(!e[r=decodeURIComponent(t[0])])continue;i[r]=decodeURIComponent(t[1]),a=!0}catch(n){logger.error("error was detected: "+n)}return a?i:U}},void 0!==Mn&&(Un=[],H.interceptThirdPartyAttributes&&Un.push(new function(o){var a=[];function t(e,n){for(var t,r=[],i=0;i<a.length;i++)try{On.uriContainsAnyOf(e,[a[i].rule.urlMatcher])&&(t=On.tryParseValueMap(n,a[i].keySet))&&r.push({urlMatcher:a[i].rule.urlMatcher,valueMap:t})}catch(n){logger.error("Error while parsing request for "+e+" for third party integration: "+n.message,n)}r.length&&o.emit("3rdPartyAttribute",r)}o.on("newRemoteConfig",function(n){if(n.thirdPartyAttributeRules)for(var e=0;e<n.thirdPartyAttributeRules.length;e++)(t=n.thirdPartyAttributeRules[e]).urlMatcher&&t.attributes&&t.attributes.length&&a.push({rule:n.thirdPartyAttributeRules[e],keySet:q.immutableSet.apply(null,n.thirdPartyAttributeRules[e].attributes||[])});var t}),o.on("ajax:send",function(n){"POST"===n.method&&"string"==typeof n.requestContent&&t(n.url,n.requestContent)}),this.intercept=function(n){var e=(n.src||"").split("?")[1];e&&t(n.src,e)}}(V)),H.SCIntegration&&(H.SCIntegrationURLsContainList||[]).length&&(H.SCIntegrationKeyList||[]).length&&Un.push(new function(r,i){i=i||{};var o=q.immutableSet.apply(null,i.keys||[]);this.intercept=function(e){var n,t=(e.src||"").split("?")[1];if(t)try{!On.uriContainsAnyOf(e.src,i.urlTokens)||(n=On.tryParseValueMap(t,o))&&r.emit("3rdpartymap:scReport",{value:n})}catch(n){logger.error("Error while checking image "+e.src+" for third party integration: "+n.message,n)}}}(V,{urlTokens:H.SCIntegrationURLsContainList,keys:H.SCIntegrationKeyList})),Mn.registerPlugin("SCIntegration",new function(o,n,a,e){var t={};function r(){!function(){for(var n,e=o.document.querySelectorAll("script, img"),t=0;t<e.length;t++)for(n=0;n<a.length;n++)a[n].intercept.call(a[n],e[t])}(),function(){var i=o.Image;o.Image=function(n,e){for(var t=new i(n,e),r=0;r<a.length;r++)try{q.addEventHandler(t,"load",a[r].intercept.gbBind(a[r],t))}catch(n){logger.error("failed intercepting Image report via constructor. "+n.message,n)}return t};var r=o.document.createElement;o.document.createElement=function(){var n=r.apply(o.document,[].slice.call(arguments));if("string"==typeof arguments[0]){var e=arguments[0].toLowerCase();if("img"===e||"script"===e)for(var t=0;t<a.length;t++)try{q.addEventHandler(n,"load",a[t].intercept.gbBind(a[t],n))}catch(n){logger.error("failed intercepting native createElement method. "+n.message,n)}return n}}}()}this.initialize=function(){H.interceptABTesting&&H.interceptAjax&&Gt(o,V,[{urlMatcher:"global-mbox",path:[],tokenContainer:"offers"},{urlMatcher:"tt.omtrdc",path:["execute","pageLoad"],tokenContainer:"options"},{urlMatcher:"tt.omtrdc",path:["execute","mboxes"],tokenContainer:"options"}],logger,t,e.abTestingGlobalObject),e.enableOptimizelyIntegration&&H.interceptAjax&&Jt(o,V,0,e),e.enableAdobeAnalyticsIntegration&&Kt(o,V,logger,e),n.on("init:preloaded",r,U,10)},this.stats=function(){return t}}(window,V,Un,{enableOptimizelyIntegration:H.enableOptimizelyIntegration,optimizelyCheckOnSegmentLoad:H.optimizelyCheckOnSegmentLoad,optimizelyUrl:H.optimizelyUrl,abTestingGlobalObject:H.abTestingGlobalObject,enableAdobeAnalyticsIntegration:H.enableAdobeAnalyticsIntegration,adobeRsid:H.adobeRsid,adobeEVarNumber:H.adobeEVarNumber}))),void 0!==Mn&&(Vn=[H.domRecordEnabled?"domTrackingStarted":"init:loaded"],H.captureGlobalObjectsOnSegmentChange&&Vn.push("segmentChanged"),Mn.registerPlugin("ObjectCapture",new function(e,t,n,r,i){r=r||[];var o=n({emptyStrings:(i=i||{paths:[],captureEmptyStrings:!1}).captureEmptyStrings}),a={captured:[]};function u(n){n&&(t.emit("3rdpartymap:scReport",{value:n}),a.captured.push(n))}i.paths.length&&r.forEach(function(n){t.on(n,function(){u(o.capture(e,i.paths))})}),t.on("api:captureObject",function(n){u(o.toFlatMap(n))}),this.initialize=function(){return!0},this.stats=function(){return a}}(window,V,function(f){f=f||{emptyStrings:!1};var d=q.immutableSet("number","string","boolean"),l={},i={};function h(n){return Array.isArray(n)&&d[typeof n[0]]}function v(n,e,t,r){if(t[e]||i[e]){if(l[r])return t[r]=""+n,t[e]&&(t[i[e]]=t[e],delete t[e]),1}else i[e]=r}function o(){l={},i={}}return{capture:function(n,e){var t,r,i={};for(o(),t=0;t<e.length;t++)(r=function(n,e){for(var t=n,r=e.split("."),i=0;i<r.length;i++){if((t=t[r[i]])===U||!f.emptyStrings&&"string"==typeof t&&!t)return null;if(Array.isArray(t)&&isNaN(parseInt(r[i+1]))&&i<r.length-1)return{array:t,arrayName:r[i],segments:r.slice(i+1,r.length)}}return l[r.join("_")]=!0,{object:t,name:r[r.length-1],fullSegments:r.join("_")}}(n,e[t]))&&(r.array?function(n,e,t,r){for(var i=0;i<n.length;++i){for(var o=e+"_"+i+"_"+t.join("_"),a=n[i],u=0;u<t.length&&a;++u)a=a[t[u]];a&&(d[typeof a]?r[o]=""+a:h(a)&&(r[o]=a.join(",")))}}(r.array,r.arrayName,r.segments,i):function n(e,t,r,i,o){var a,u,c=typeof e;if(d[c])(e||"string"!=c||f.emptyStrings)&&(v(e,t,r,o)||(r[t]=""+e));else if(h(e)){var s=e.join(",");v(s,t,r,o)||(r[t]=s)}else if(i&&"object"==c)for(a in e)e.hasOwnProperty(a)&&(l[u=(o||"")+"_"+a]=!0,n(e[a],a,r,!1,u))}(r.object,r.name,i,!0,r.fullSegments));return Object.keys(i).length?i:null},toFlatMap:function(n){if(!n||"object"!=typeof n)return null;o();var e={};return function n(e,t,r){var i,o=typeof e;if(d[o])(e||"string"!=o||f.emptyStrings)&&(v(e,t,r,t)||(r[t]=""+e));else if(h(e)){var a=e.join(",");v(a,t,r,t)||(r[t]=a)}else if("object"==o)for(i in t=t.length?t+".":t,e)e.hasOwnProperty(i)&&n(e[i],t+i,r)}(n,"",e),Object.keys(e).length?e:null}}},Vn,{paths:H.captureGlobalObjects||[],captureEmptyStrings:H.captureGlobalObjectsEmptyStrings}))),void 0!==Mn&&H.collectVoc&&Mn.registerPlugin("VoCIntegration",new function(n,c,e){var s=e.vocObjectMap,t=[];function r(n){if(!s&&n.vocConfig&&(s=n.vocConfig,t.length))for(var e=0;e<t.length;++e)i(t[e])}function i(n){if(n&&n.source&&s[n.source]){var e,t,r,i,o={source:n.source,userData:{}},a=!1,u=s[n.source];for(e in n.userData)u[e]&&(t=o.userData,r=n.userData[e],"int"===(i=u[e]).type?t[i.name]=parseInt(r):"bool"===i.type?t[i.name]="boolean"==typeof r?r:"true"===r:t[i.name]=""+r,a=!0);a&&c.emit("reportVoC",o)}}function o(n){s?i(n):t.push(n)}this.initialize=function(){c.on("newRemoteConfig",r),c.on("vocGetData",o),e.collectUsabillaVoc&&Qt(n,c,e)}}(window,V,{vocObjectMap:H.vocObjectMap,collectUsabillaVoc:H.collectUsabillaVoc,waitForUsabillaObj:H.waitForUsabillaObj,interceptUsabillaUrl:H.interceptUsabillaUrl})),void 0!==Mn&&function(n,c,e){n=n||{};var s=(e=e||{}).visualName,i=e.visualNameDebug||!1,o=0<e.visualNameLimit?Math.min(e.visualNameLimit,e.visualName.maxLimit):e.visualName.maxLimit,f=q.immutableSet.apply(null,s.wrapperElementList||[]);function d(n,e,t){if(0<s.maxDistance){var r=n.getClientRects();if(r.length)for(var i=0;i<r.length;i++)if(r[i].left-e<s.maxDistance&&e-r[i].right<s.maxDistance&&t-r[i].bottom<s.maxDistance&&r[i].top-t<s.maxDistance)return}return 1}var a,u,l,h=(a=e.noIdSelectorsForClassNames||[],u=e.noIdSelectorsForIDs||[],l=e.noIdSelectorsForAttrs||[],function(n){if(0===a.length&&0===u.length&&0===l.length)return!0;var e=n.getAttribute("id");if(e)for(i=0;i<u.length;i++){var t=u[i];if(t&&0<=e.indexOf(t))return!1}for(var r=q.getClassList(n),i=0;i<a.length;i++)if(0<=E.indexOf(r,a[i]))return!1;for(i=0;i<l;i++)if(n.hasAttribute(l[i]))return!1;return!0});function v(n,e,t){var r=n.tagName;if("TD"===r)return null;if("TEXTAREA"!==r){var i=q.getAttributeForElement(n,"class");if(i&&E.contains(s.filterInlineTextByClassName,i))return null;var o,a=null;if(s.by.labelTag&&"LABEL"===n.tagName&&(a=n),"SPAN"!==r&&"DIV"!==r||1===n.childElementCount&&(o=n.firstElementChild)&&"A"===o.tagName&&0===o.childElementCount&&(a=o),(a=!(a=a||function(n){for(var e=s.maxParentLevel+1;n&&e--;){if(f[n.tagName])return n;n=n.parentNode}return null}(n))&&0===n.childElementCount?n:a)||1===n.childElementCount&&(0!==(o=n.firstElementChild).childElementCount||e&&t&&d(o,e,t)||(a=n)),a)try{var u=c(),u=(u?u.cloneNode(a):a).innerText;return q.trim(u)}catch(n){}return null}}n.extractVisualName=function(n,e,t){var r=null;if(!n||!q.isElement(n))return r;if(E.contains(s.filterNamingByTagName,n.tagName.toLocaleLowerCase()))return r;return(r=q.getAttributeForElement(n,s.CLS_NAME_ATTR))&&0,!r&&s.by.title&&(r=q.getAttributeForElement(n,"title"))&&0,!r&&s.by.alt&&(r=q.getAttributeForElement(n,"alt"))&&0,!r&&s.by.ariaLabel&&(r=q.getAttributeForElement(n,"aria-label"))&&0,r||!s.by.inputConsts&&!s.by.inputButtonsValue||(r=function(n){var e;if("INPUT"===n.tagName){var t=n.type.toLocaleLowerCase();if("button"!==t&&"submit"!==t&&"reset"!==t||!s.by.inputButtonsValue||(e=n.value),!e&&s.by.inputConsts)switch(t){case"password":e="Password";break;case"button":case"submit":case"image":e="Submit";break;case"file":e="Choose File";break;case"reset":e="Reset"}}return(e=e&&q.trim(e))||null}(n))&&0,!r&&s.by.name&&(r=q.getAttributeForElement(n,"name"))&&0,!r&&s.by.inlineText&&(r=v(n,e,t))&&0,!r&&s.by.id&&h(n)&&(r=q.getAttributeForElement(n,"id"))&&0,!r&&s.by.placeholder&&(r=q.getAttributeForElement(n,"placeholder"))&&0,!r&&s.by.parent&&(r=function(n){if(!E.contains(s.elementListToCheckParent,n.tagName.toLocaleLowerCase()))return null;var e=null,n=n.parentElement;return(e=n&&("a"===n.tagName.toLocaleLowerCase()||"button"===n.tagName.toLocaleLowerCase())?q.getAttributeForElement(n,"title")||q.getAttributeForElement(n,"alt")||q.getAttributeForElement(n,"aria-label")||q.getAttributeForElement(n,"name")||q.getAttributeForElement(n,"id"):e)||null}(n))&&0,!r&&s.by.child&&(r=function(n,e,t){if(!E.contains(s.elementListToCheckChild,n.tagName.toLocaleLowerCase()))return null;if(1===n.childElementCount){var r=n.firstElementChild;if(e&&t&&d(r,e,t))return null;r=q.getAttributeForElement(r,"title")||q.getAttributeForElement(r,"alt")||q.getAttributeForElement(r,"aria-label")||q.getAttributeForElement(r,"name")||q.getAttributeForElement(r,"id")}return r||null}(n,e,t))&&0,r&&r.length>o&&(r=r.substr(0,o).concat("...")),i&&(n.tagName,n.type),r}}(Mn,function(){return _n=_n||function(){if(!H.isDetectorDom)return null;var e=vr();return{cloneNode:function(n){return e.isDomMasked(n,Gn.SELF_OR_ANY_PARENT,Jn.TEXT)?{innerText:z.censorValueOf(n.innerText)}:{innerText:n.innerText}}}}(),Mn.plugins.domRecordingPlugin?Mn.plugins.domRecordingPlugin.getNodeCloner():_n},H),void 0!==Mn&&Mn.registerPlugin("workerLoader",new function(e,t,r){var i,o,a=!1,u=!1,c=!1,s={state:"init"};function f(n){"ready"===n.data.type?(u=!0,clearTimeout(o),c&&d("ready")):t.emit(n.data)}function d(n){a||(a=!0,s.state=n,t.emit("worker:init",i))}function l(){try{var n=x.isCorsReporting()&&!r.reportDisableCors;(i=new Worker(M.detectorScript.src+"?worker")).addEventListener("message",f),i.postMessage({type:"init",args:[r,n,D.getKeyInfo()]}),s.state="started"}catch(n){s.error=n.message,logger.error("Failed starting web worker. "+n.message)}}function h(){c=!0,u?d("ready"):setTimeout(d.gbBind(null,"timeout"),1e3)}this.initialize=function(){var n=!1;r.reportUseWorker&&!r.reportPreferSendBeaconAPI||(s.waivingReason="disabled",n=!0),!n&&e!==e.top&&r.reportViaTopWindow&&(s.waivingReason="non-top-window",n=!0),n||e.Worker||(s.waivingReason="not-supported",n=!0),n||M.detectorScript||(s.waivingReason="no-script",n=!0),n?t.emit("worker:init",U):(t.on("init:preloaded",l),t.on("init:loaded",h))},this.stats=function(){return s}}(self,V,H)),Yt.extractTLD=function(n){var e=n.split(".");return e.shift(),0<e.length?e.join("."):n},$t.getEntryKey=function(n){return n.url.split("?")[0]+"_"+n.method+"_"+n.segment+"_"+n.queryHash},nr.prototype.hasGzipContentEncoding=function(){if(this.resHeaders)for(var n=this.resHeaders.entries(),e=n.next();!e.done;){if("content-encoding"===e.value[0].toLowerCase()&&"gzip"===e.value[1].toLowerCase())return!0;e=n.next()}return!1},nr.prototype.captureContent=function(){return this.responseText},nr.prototype.fixHeaders=function(){if(!this.resHeaders||!this.resHeaders.forEach)return"";var t="";return this.resHeaders.forEach(function(n,e){"transfer-encoding"===e.toLowerCase()&&"chunked"===n.toLowerCase()||(t="content-length"===e.toLowerCase()?t+"X-Glassbox-Orig-Content-Length: "+n+"\r\n":t+e+": "+n+"\r\n")}),this.masking.response&&(t+="X-Glassbox-JSMasking: "+this.masking.response+"\r\n"),t},er.prototype.hasGzipContentEncoding=function(){return null!==/content-encoding:\sgzip/gi.exec(this.resHeaders||"")},er.prototype.captureContent=function(){return"json"===this.xhr.responseType||this.resContentType&&-1!==this.resContentType.indexOf("json")?this.ajaxMasker.getJsonContent(this,"response",this.xhr.response):"string"==typeof this.xhr.response?this.ajaxMasker.maskText(this,"response",this.xhr.response):null},er.prototype.fixHeaders=function(){var n=(n=(this.resHeaders||"").replace(/transfer-encoding:\schunked/gi,"X-Glassbox-Orig-Transfer-Encoding: chunked")).replace(/content-length:/gi,"X-Glassbox-Orig-Content-Length:");return this.masking.response&&(n=n.trim(),n+="\r\nX-Glassbox-JSMasking: "+this.masking.response+"\r\n"),n},er.prototype.onCompleted=function(){var n=q.currentTimestamp();this.consumed=!0,this.status=this.xhr.status,this.statusText=this.xhr.statusText,this.resHeaders=this.xhr.getAllResponseHeaders(),this.resContentType=this.xhr.getResponseHeader("Content-Type"),this.contentLength=this.xhr.getResponseHeader("Content-Length"),this.duration=n-this.startTime,this.endTime=n,this.responseType=this.xhr.responseType,this.response=this.xhr.response,this.responseText=this.xhr.responseType&&"text"!==this.xhr.responseType?U:this.xhr.responseText},ir.safeEncodeURI=function(e){try{return e===decodeURI(e)?encodeURI(e):e.replace(/\s/g,"%20")}catch(n){return encodeURI(e)}},ir.nextSn=(Ln=0,function(){return Ln++}),void 0!==Mn&&void 0!==H&&H.interceptAjax&&(Un={allow:function(){return!0}},-1!==H.ajaxRecordSessionLimit&&(window,Fn=V,Pn=A,Bn=H.ajaxRecordSessionLimit,jn=Bn<=or(),Un={allow:function(){var n=or(),e=++n<=Bn;return e||jn||(Fn.emit("ajax:limitReached"),jn=!0),Pn.set("xhr.cnt",n),e}}),Vn=new function(r,t){var c="MASKING ERROR";t=q.optionsWithDefaults(t,{requestRules:[],responseRules:[]});var s=!0,i=[],o={request:[],response:[]};function f(n){for(var e=0;e<i.length;++e)if(i[e](n))return 1}function d(n,e){for(var t=[],r=0;r<o[e].length;++r)o[e][r].predicate(n)&&t.push(o[e][r].transformations);return t}function a(n,e,t){try{n.push({predicate:e,transformations:{jsonField:r.jsonField(t),pattern:r.pattern(t)}})}catch(n){logger.error("Error while processing AJAX masking rule. Please check rules transformation configuration.",n),i.push(e)}}function l(n,e,t){n.masking&&(n.masking[e]=t)}this.init=function(n){try{for(var e=0;e<t.responseRules.length;++e)a(o.response,n.create(t.responseRules[e].predicate),t.responseRules[e].transformations);for(e=0;e<t.requestRules.length;++e)a(o.request,n.create(t.requestRules[e].predicate),t.requestRules[e].transformations)}catch(n){s=!1,logger.error("Error while initializing AJAX masking settings. Please check rules predicates configuration.",n)}},this.maskText=function(e,t,n){if(!n)return"";try{if(!s||f(e))return l(e,t,"bad-config"),c;var r=d(e,t);if(r.length){for(var i={},o=0;o<r.length;++o)n=r[o].pattern(n,i);i.masked&&l(e,t,"masked")}return n}catch(n){return l(e,t,"error"),logger.error("Error during textual ajax content masking.",n),c}},this.getJsonContent=function(e,t,n){if(!n)return"";try{if(!s||f(e))return e.masking&&l(e,t,"bad-config"),c;var r="string"==typeof n,i={},o=d(e,t);if(!o.length)return r?n:JSON.stringify(n);r=r?JSON.parse(n):n,o=JSON.stringify(r,(a=i,u=o,function(n,e){for(var t=e,r=0;r<u.length;++r)t=u[r].jsonField(n,t,a);return t}));return i.masked&&l(e,t,"masked"),o}catch(n){return l(e,t,"error"),logger.error("Error during json ajax content masking.",n),c}var a,u}}(new function(){function i(n){return new RegExp(n,"g")}function o(n,e){return z.censorValueOf(e,0,n)}function e(n,e){for(var t=[],r=0;r<n.length;++r)n[r].type.toLowerCase()===e&&(n[r].replace?t.push({search:i(n[r].search),replace:n[r].replace}):t.push({search:i(n[r].search),replaceChar:n[r].replaceChar||"*"}));return t}this.jsonField=function(n){var o=e(n,"jsonfield");return function(n,e,t){for(var r=0;r<o.length;++r)if(o[r].search.test(n)){var i=e+"";return t&&(t.masked=!0),o[r].replace||z.censorValueOf(i,0,o[r].replaceChar)}return e}},this.pattern=function(n){var r=e(n,"pattern");return function(n,e){for(var t=0;t<r.length;++t)n=r[t].replace?n.replace(r[t].search,r[t].replace):n.replace(r[t].search,o.gbBind(null,r[t].replaceChar||"*")),e&&(e.masked=!0);return n}}},{requestRules:H.ajaxMaskRequestBody,responseRules:H.ajaxMaskResponseBody}),Mn.registerPlugin("ajaxInterceptor",new ir(window,bn,V,N,Un,Vn,j.location.host,W,H,["adrum","dynatrace","appdynamics.com","tealeaf","/retail/discountinternet/portal/coex.asmx/keepalive","oauth/cc"]))),void 0!==Mn&&Mn.registerPlugin("errors",new function(n,t,e){var r=(e=e||{}).maxRecordedCountPerError||-1,i={interceptedErrors:0,interceptedConsoleErrors:0,limitExceededErrors:0,emittedPageEvents:0},o={},a=-1===r?function(){return!0}:function(n){n=n.substring(0,30);return o[n]=(o[n]||0)+1,o[n]<=r};function u(n){var e=!a(n);t.emit("pageError",{error:n,eventLimitExceeded:e}),e?i.emittedPageEvents++:i.limitExceededErrors++}function c(n){var e="";"string"==typeof n.message&&(e+=n.message),"string"==typeof n.url?e+="; URL: "+n.url:"string"==typeof n.filename&&(e+="; FILE: "+n.filename),"number"==typeof n.lineno&&(e+="; L: "+n.lineno),"number"==typeof n.colno&&(e+="; C: "+n.colno),e&&(i.interceptedErrors++,u(e))}function s(n){i.interceptedConsoleErrors++,u((n||[]).join(" "))}this.initialize=function(){e.recordErrors&&q.addEventHandler(n,"error",c),e.recordConsoleErrors&&xt({error:s})},this.stats=function(){return i}}(window,V,H)),void 0!==Mn&&Mn.registerPlugin("cors",new function(t,o,r,n,a,u,i){i=i||{};var c={INIT:0,HELPING:1,READY:2},s=5e3,f="cors_ready",d=[M.cookies.session,M.cookies.visitor],l=i.reportCorsTakeNativeCookies||[],h="prev_native_cookies",e=!0,v=c.INIT,m=-1,g=-1;function p(n,e){for(var t,r=0;r<n.length;r++)(t=u.get(n[r]))&&e.push(n[r]+"="+encodeURIComponent(t))}function y(){var n=[];if(p(d,n),p(l,n),0!==n.length){var e=o.currentTimestamp();v=c.HELPING;var n=i.reportURI+"?"+n.join("&"),t=r();return t.onreadystatechange=function(){4===t.readyState?(m=o.currentTimestamp()-e,g=t.status,200===t.status?a.set(f,!0):t.status,b()):0===t.readyState&&b()},t.open("GET",n,!0),t.withCredentials=!0,t.setTimeout=s,t.send(),1}}function w(){if(!e)return b();if(l.length)if(o.isSafari(window.navigator.userAgent))!function(){try{for(var n=0,e=[],n=0;n<l.length;n++)e.push({key:l[n],value:u.get(l[n])});t.emit("updateSafariQueryString",e)}catch(n){logger.error("Failed handling Safari native cookies. Exception message:"+n.message,n)}}();else if(i.resetCorsOnNativeCookieChange&&function(){var n,e,t,r=!1,i=[];try{for(t=(t=a.get(h))?JSON.parse(t):[],n=0;n<l.length;n++)e=u.get(l[n]),i.push(e),e!==t[n]&&(r=!0);r&&a.set(h,o.arrayToJsonSafe(i))}catch(n){return void logger.error("Failed detecting native cookies change. Exception message:"+n.message,n)}return r}())return E();return!a.get(f)&&y()?void 0:b()}function b(){v=c.READY,t.emit("corsReady")}function E(){e&&(t.emit("corsReset"),a.set(f,""),v=c.INIT,g=m=-1,y())}this.initialize=function(){e=n.isCorsReporting()&&!i.reportDisableCors,t.on("init:loaded",w)},this.onCookieChanged=function(){E()},this.stats=function(){return{enabled:e,state:v,requestDuration:m,requestStatus:g}}}(V,q,In.createXMLHTTPObject,x,A,R,H)),void 0!==Mn&&Mn.registerPlugin("naming",new function(n,e,t){t=q.optionsWithDefaults(t,{pageNameEnabled:!1});var r,i,o,a,u,c={};function s(){var n=i.resolve();n&&(r=n,c.pageNameCurrent=r,e.emit("pageNameResolved",r))}t.pageNameEnabled?(c.pageName="enabled",o=n,t={selectors:t.pageNameByElements},a=(t=t||{}).selectors||[],u=q.immutableSet.apply(null,a),i={resolve:function(){for(var n,e=0;e<a.length;e++)if(u[a[e]])try{if(n=o.querySelector(a[e]))return n.textContent}catch(n){u[a[e]]=!1}}},e.on("init:loaded",s),e.on("frame:load",s),e.on("parentWindowInfo",function(n){n.parentPageName&&(r=n.parentPageName,c.pageNameCurrent=r,e.emit("pageNameResolved",r))})):c.pageName="disabled",this.initialize=function(){return!0},this.stats=function(){return c}}(j,V,{pageNameEnabled:H.pageNameResolvingEnabled,pageNameByElements:H.pageNameResolvingByElements||[]})),Un=M,Hn=new wt(window.localStorage,{keysPrefix:M.Storage.UnboundKeyPrefix}),Vn=function(e,t,r){try{var i=In.createXMLHTTPObject(!0);i||r("Failed creating XHR object for fetching external configuration"),i.onreadystatechange=function(){var n;4===i.readyState&&(200===i.status?(n=i.getResponseHeader("Content-Type"))&&-1!==n.indexOf("application/json")&&t(i.response):(n="Failed getting external configuration for url : "+e+" status:"+i.status+" "+i.statusText,r(n)))},i.open("GET",e,!0),i.onprogress=function(){},i.ontimeout=function(){},i.onerror=function(){},setTimeout(function(){try{i.send()}catch(n){logger.error("Failed sending request to url "+e+": "+n.message,n)}},0)}catch(n){logger.error(c+n.message,n),console.log("Failed getting external configuration for url: "+e+": "+n.message,n),r(n.message)}},qn=new dr(q.Base64),zn=V,Wn=H,Un.detectorScript&&Un.detectorScript.src&&Wn.configPath&&(function(){var n,e=Hn.get("js.conf");if(e)try{n=qn.decode(e),Xn=n.hash,fr(n)}catch(n){logger.error("failed parsing JSON of external configuration: "+n.message,n)}}(),Un=q.extractOrigin(Un.detectorScript.src),Vn(q.joinPath(Un,Wn.configPath),function(n){var e;try{e=JSON.parse(n)}catch(n){return void logger.error("Failed parsing external configuration JSON: "+n.message,n)}void 0!==Xn&&void 0!==e.hash&&Xn===e.hash||(Hn.set("js.conf",qn.encode(e)),fr(e),Xn=e.hash)},function(n){zn.emit("clsDebug",n)})),Gn={SELF:{follow:function(n,e){return n&&n.nodeType===Node.ELEMENT_NODE&&q.elementMatches(n,e)}},SELF_OR_ANY_PARENT:{follow:function(n,e){for(var t=n;t;){if(t.nodeType===Node.ELEMENT_NODE&&q.elementMatches(t,e))return!0;t=t.parentNode}return!1}},SELF_OR_ANY_CHILD:{follow:function(n,e){if(n){if(n.nodeType===Node.ELEMENT_NODE&&q.elementMatches(n,e))return!0;if("function"==typeof n.querySelector)return!!n.querySelector(e)}return!1}}},lr.prototype.isAttributeMasked=function(n,e){return!(!this._maskedAttributesTags[n.tagName]||!this._maskedAttributes[e]||n.hasAttribute&&n.hasAttribute(this._ignoreMaskByAttribute))},lr.prototype.isDomMasked=function(n,e){for(var t,r,i=Array.prototype.slice.call(arguments,2),o=0;o<i.length;o++){if(t=!!(t=this._selectorsByMaskingType[i[o]].selector)&&e.follow(n,t),r=this._selectorsByMaskingType[i[o]].doInvert,t)return!r;if(r)return!0}return!!r},lr.prototype.createContextUpdater=function(i){var o=this,a=this._domMaskingMode===M.censorMode.WhiteList,u={},c=[];function s(n,e){c.push(n),e.maskText=n}return{onStart:function(n,e){if(s(!o._unmaskableTags[n.tagName]&&o.isDomMasked(n,Gn.SELF_OR_ANY_PARENT,Jn.TEXT),e),n.querySelectorAll){e=o._selectorsByMaskingType[Jn.TEXT].selector;if(e)for(var t=n.querySelectorAll(e),r=0;r<t.length;r++)u[i.idOf(t[r])]=!0}},onEnterElement:function(n,e){var t=c[c.length-1],r=i.idOf(n);if(u[r]){r=!a&&!o._unmaskableTags[n.tagName];if(r!==t)return s(r,e),!0}return!!(t&&o._unmaskableTags[n.tagName]||t&&n.hasAttribute&&n.hasAttribute(o._ignoreMaskByAttribute))&&(s(!1,e),!0)},onLeaveElement:function(n,e){c.pop(),e.maskText=c[c.length-1]},onEnd:function(){u={},c=[]}}},Jn={TEXT:"TEXT",ATTRIBUTE:"ATTRIBUTE",VALUE_ATTRIBUTE:"VALUE_ATTRIBUTE",OMIT:"OMIT"},lr.prepareWildCardSelector=function(n,e){n=""===n[0]?"["+e+"$='"+n[1]+"']":""===n[1]?"["+e+"^='"+n[0]+"']":"["+e+"^='"+n[0]+"']["+e+"$='"+n[1]+"']";return n},mr.prototype.maskCookie=function(n){if(!n||!this._cookieMaskSet)return n;for(var e,t,r,i=n.split(";"),o=[],a=0;a<i.length;a++)-1!==(r=(e=i[a]).indexOf("="))?(t=e.substring(0,r).trim(),r=e.substring(r+1),o.push(t+"="+(r&&this._cookieMaskSet.hasOwnProperty(t)?z.censorValueOf(r):r))):o.push(e);return o.join("; ")},gr.prototype.isDomEncrypted=function(n,e){return e.follow(n,this._encryptionSelector)},gr.prototype.encrypt=function(e){if(this._shouldFallback)return q.transformTextSegments(e,this._maskingUtils.censorValueOf);if(!this._encryptionUtils.isAvailable())return this._shouldFallback=!0,logger.error("encryption not available, switching to fallback."),this._events.emit("clsDebug","encryption not available, switching to fallback"),q.transformTextSegments(e,this._maskingUtils.censorValueOf);try{return this._encryptionUtils.censorValueOf(e)}catch(n){return logger.error("failed encrypting text, switching to fallback: "+n.message,n),this._events.emit("clsDebug","Error: failed encrypting text. Switching to fallback"),this._shouldFallback=!0,q.transformTextSegments(e,this._maskingUtils.censorValueOf)}},gr.prototype.createContextUpdater=function(i){var o=this,a={},u=[];function c(n,e){u.push(n),e.encryptText=n}return{onStart:function(n,e){if(c(!o._unEncryptableTags[n.tagName]&&o.isDomEncrypted(n,Gn.SELF_OR_ANY_PARENT),e),n.querySelectorAll){e=o._encryptionSelector;if(e)for(var t=n.querySelectorAll(e),r=0;r<t.length;r++)a[i.idOf(t[r])]=!0}},onEnterElement:function(n,e){var t=u[u.length-1],r=i.idOf(n);if(a[r]){r=!o._unEncryptableTags[n.tagName];if(r!==t)return c(r,e),!0}return!(!t||!o._unEncryptableTags[n.tagName])&&(c(!1,e),!0)},onLeaveElement:function(n,e){u.pop(),e.encryptText=u[u.length-1]},onEnd:function(){a={},u=[]}}},yr.prototype={next:function(){for(var n=this._node.childNodes[++this._childIndex];n&&!this._predicate(n);)n=this._node.childNodes[++this._childIndex];return n}},br.SHOW_ALL=0,br.SHOW_ELEMENTS=1,Nr.prototype.toString=function(){return"seq:"+this.seq+"referrer"+this.referrer+"charset:"+this.charset+"cookie-len"+(this.cookie?this.cookie.length:0)+(20<this.html.length?"html length: "+this.html.length:"html: "+this.html)},Or.prototype.onNodeAdded=function(n){this.addedNodes[n]=!0},Lr.propertyForElement=function(n){if("SELECT"===n.tagName)return"selectedIndex";if("TEXTAREA"===n.tagName)return"value";if("INPUT"!==n.tagName)return U;n=n.getAttribute("type")&&n.getAttribute("type").toLowerCase();return!n||"checkbox"!==n&&"radio"!==n?"value":"checked"},Lr.defaultValue=function(n,e){if("checked"===e)return n.hasAttribute("checked");if("selectedIndex"===e){var t=n.querySelector("option[selected]");return t?t.index:null!==n.querySelector("option")?0:-1}n=n.getAttribute(e);return n||"value"!==e?n:""},void 0!==Mn&&H.domRecordEnabled&&(H.valueMaskingMode,M.censorMode.WhiteList,H.domMaskingMode,M.censorMode.WhiteList,Qn={},ye=vr(),Ie=new gr(V,Kn,z,$e(),{domEncryptIds:H.domEncryptById,domEncryptClasses:H.domEncryptByClass}),ae=new function(n,e,t,r,i,o,a,u,c){var s=function(t){t=q.optionsWithDefaults(t,{denyTagNames:[],acceptIfTextContentMatches:{},denyIdsByTagName:{},denyComments:!0,denyHeadTagNames:[],denyIds:[],denyClasses:[],denyObjectElementsByType:[],tagsToCheckLength:[],maxTextLength:-1});var r,i,o,a,u,c,s,n=function(){var n,e={};for(n in t.denyIdsByTagName)e[n]=q.immutableSet.apply(null,t.denyIdsByTagName[n]);return e}(),e=function(){var n,e={};for(n in t.acceptIfTextContentMatches)e[n]=new RegExp(t.acceptIfTextContentMatches[n]);return e}(),f=q.immutableSet.apply(null,t.denyTagNames),d=q.immutableSet.apply(null,t.denyHeadTagNames),l=q.immutableSet.apply(null,t.denyIds),h=q.immutableSet.apply(null,t.denyObjectElementsByType),v=q.immutableSet.apply(null,t.tagsToCheckLength);return r=f,i=d,o=n,a=e,u=l,c=t.denyClasses,s=h,function(n){if(t.maxTextLength&&-1<t.maxTextLength&&v[n.tagName]&&n.innerHTML.length>t.maxTextLength)return!1;if(n.parentNode&&"HEAD"===n.parentNode.tagName&&i[n.tagName])return!1;if(u[n.id]||"OBJECT"===n.tagName&&s[n.getAttribute("type")]||q.hasOneOfClassNames(n,c))return!1;if(r[n.tagName]){var e=a[n.tagName];if(!e||!e.exec(n.textContent))return!1}return(!n||n.nodeType!==Node.COMMENT_NODE||!t.denyComments)&&(!o[n.tagName]||"undefined"===n.id||!o[n.tagName][n.id])}}({denyComments:!c.domKeepComments,denyTagNames:["SCRIPT","NOSCRIPT","DOM-IF"],denyIdsByTagName:c.domIgnoredFormElements?{INPUT:c.domIgnoredFormElements}:{},acceptIfTextContentMatches:c.domKeepScriptMatching?{SCRIPT:c.domKeepScriptMatching}:{},denyHeadTagNames:["IFRAME","FRAME","FRAMESET"],denyIds:c.domMaskOmitById||c.domOmitById,denyClasses:c.domMaskOmitByClass||c.domOmitByClass,denyObjectElementsByType:c.domOmitObjectElementsByType,tagsToCheckLength:c.tagsToCheckLength,maxTextLength:c.tagMaxLength});(h=[]).push(o.createContextUpdater(t)),h.push(a.createContextUpdater(t));var f,d,l,o=new br(s,new pr(h),{crossShadow:c.recordShadowDom}),h=q.compositeFunctionBuilder(!0);c.domCompressRepetitiveElements.length&&h.add(function(u,n){var c=1,s={};n=n.map(function(n){return n.toUpperCase()});var f=q.immutableSet.apply(null,n);return function(n){var e;if(n.tagName&&(e=n.tagName.toUpperCase()),f[e])try{var t,r,i=n.outerHTML,o=s[i];if(o)(r=n.ownerDocument.createElement(e)).setAttribute("gb-clone",o);else{for(s[i]=c,(r=n.ownerDocument.createElement(e)).innerHTML=n.innerHTML,t=0;t<n.attributes.length;t++){var a=n.attributes[t];r.setAttribute(a.name,a.value)}r.setAttribute("gb-proto",c.toString()),c++}return r}catch(n){logger.error("Error while handling repetitive element: "+n.message,n),u.emit("clsDebug","error while handling repetitive element. Exception message: "+n.message)}}}(e,c.domCompressRepetitiveElements)),h.add(jr),h.add(Hr),(c.struggleCaptureHorizontalScrollbar||c.struggleCaptureBlankPage)&&h.add(i.clonerHook),h.add((f=z,d=a,function(n,e){if(n){if(n.nodeType===Node.TEXT_NODE&&e&&e.maskText)return n.ownerDocument.createTextNode(q.transformTextSegments(n.textContent,f.censorValueOf));if(n.nodeType===Node.TEXT_NODE&&e&&e.encryptText){e=d.encrypt(n.textContent);return n.ownerDocument.createTextNode(e)}}})),c.maskTitle&&h.add((l=z,function(n){if("TITLE"===n.nodeName){var e=n.ownerDocument.createElement("title");return e.textContent=q.transformTextSegments(n.textContent,l.censorValueOf),e}}));var v,m,g,p,y,w,b,a=q.compositeFunctionBuilder(!0).add(function(n,e,t,r){t&&t.nodeType===Node.ELEMENT_NODE&&t.setAttribute(n,r[e])}.gbBind(null,"gbid",_.GB_ID_FIELD_NAME));(c.valueMaskingMode===M.censorMode.WhiteList||c.maskBlacklistValueByClass.length||c.maskBlacklistValueById.length||c.valueMaskByCategories.length||c.valueBlacklistMaskSimpleSelector.length||(c.valueEncryptionMode===M.censorMode.WhiteList||c.valueEncryptById.length||c.valueEncryptByClass.length))&&(a.add((m=r,function(n){"INPUT"===n.tagName&&n.getAttribute("value")&&n.setAttribute("value",m.censor(n))})),h.add((v=r,function(n){if("TEXTAREA"===n.tagName&&n.firstChild){var e,t=n.firstChild.textContent;if(t&&(e=v.censor(n))!==n.firstChild.textContent){n=n.cloneNode(!0);return n.firstChild.textContent=e,n.maskContent=!0,n}}}))),c.domMaskAttributesByTag.length&&c.domMaskedAttributes.length&&a.add((g=z,k={domMaskedAttributes:c.domMaskedAttributes,domMaskAttributesTags:c.domMaskAttributesByTag,domMaskIgnoreAttribute:c.domMaskIgnoreAttribute},p={IMG:"data:image/gif;base64,"},y=q.immutableSet.apply(null,k.domMaskedAttributes),w=q.immutableSet.apply(null,(k.domMaskAttributesTags||[]).map(function(n){return n.toUpperCase()})),b=k.domMaskIgnoreAttribute,function(n){var e,t;if(w[n.tagName]&&"function"==typeof n.getAttribute&&!n.hasAttribute(b))for(e in y)!y.hasOwnProperty(e)||(t=n.getAttribute(e))&&(p[n.tagName]&&"src"===e?n.setAttribute(e,p[n.tagName]):n.setAttribute(e,g.censorValueOf(t)))})),c.removeBase64ImageDataTagNames&&0<c.removeBase64ImageDataTagNames.length&&a.add(Vr(q.immutableSet.apply(null,c.removeBase64ImageDataTagNames)));var E,C,T,S,k=q.isIE(n.navigator.userAgent),k=(E=e,C={maxElements:k?c.domFuseElementCountIE:c.domFuseElementCount,maxDuration:k?c.domFuseDurationIE:c.domFuseDuration},T=0<((C=C||{}).maxElements||0),S=0<(C.maxDuration||0),{createFuse:function(){return{blown:!1,createdAt:new Date,elementCount:-1,duration:-1,onElementsCloned:x}}});function I(n,e){var t;n.blown||(t=-1!==n.duration?n.duration:new Date-n.createdAt,n.elementCount,n.blown=!0,E.emit("dom:fuseBlown",{reason:e,duration:t,elements:n.elementCount,maxDuration:C.maxDuration||-1,maxElements:C.maxElements||-1}),E.emit("clsDebug","DOM cloning fuse blown. reason:"+e+" elements:"+n.elementCount+" duration:"+t))}function x(n){this.blown||(this.elementCount=n,S&&(this.duration=new Date-this.createdAt,this.duration>=C.maxDuration)?I(this,"duration"):T&&this.elementCount>=C.maxElements&&I(this,"elementCount"))}u=new wr(n,e,function(n,t,e,r){var i,o,a=U;try{a=r?new RegExp(r,"i"):U}catch(n){}return n=a&&a.test(n.navigator.userAgent)||e.isSafari(n.navigator.userAgent)||e.isChromeOnIos(n.navigator.userAgent)?(i=n.document.implementation.createHTMLDocument("cloner-doc"),o=j.documentElement.namespaceURI,function(n){var e;return n&&n.nodeType===Node.ELEMENT_NODE?(e=n.namespaceURI!==o?i.createElementNS(n.namespaceURI,n.tagName.toLowerCase()):i.createElement(n.tagName),Array.prototype.slice.call(n.attributes).forEach(function(n){try{e.setAttribute(n.name,n.value)}catch(n){}})):e=i.importNode(n,!1),e}):e.isIE(n.navigator.userAgent)?(i=n.document,function(e){try{return e.cloneNode(!1)}catch(n){t.emit("clsDebug","failed to clone node "+e.nodeName)}}):(i=n.document.implementation.createHTMLDocument("cloner-doc"),function(n){return i.importNode(n,!1)}),{clonerDoc:i,cloneNode:n}}(n,e,q,c.forceRenderingFixForUA),k,t,o,h.build(),a.build(),c.enableAdoptedCss,u,c.checkForHtmlOnly,c.checkVisibility),this.isNodeAccepted=s,this.createChildNodesIterator=function(n){return new yr(n,s)},this.visit=o.visit.gbBind(o),this.cloneNode=u.clone.gbBind(u)}(window,V,_,O,se,ye,Ie,Qn,H),Kn=Wr(window,V,j,ae.isNodeAccepted,{semiDomEnabled:H.semiDomEnabled,domIE11ForceMutationObserver:H.domIE11ForceMutationObserver,domTamperingDetectionEnabled:H.domTamperingDetectionEnabled,domThrottle:H.domThrottleChanges,domThrottleIEOnly:H.domThrottleChangesIE11Only,delayDomMutationEvent:H.delayDomMutationEvent,domFilterAttributes:H.domFilterAttributes}),ue=function(n,e){for(var t=0;t<e.length;t++)if(-1!==n.indexOf(e[t]))return!0;return!1}(j.location.href,H.domPartialWhenLocationContains||[]),Mn.registerPlugin("domRecordingPlugin",new function(f,r,i,n,d,e,t,o,a,u,c,l,h){var s,v,m=new Dr((g=zr(d),g=[{name:"DOM-mutations",tracker:new _r(V,d),providers:[Sr.gbBind(null,n.createChildNodesIterator,e,t),function(n,e,t,r,i){var o=r.attributes?Object.keys(r.attributes):[];if(o&&0<o.length){var a,u,c,s={};for(t&&t.removeBase64ImageDataTagNames&&0<t.removeBase64ImageDataTagNames.length&&(c=Vr(q.immutableSet.apply(null,t.removeBase64ImageDataTagNames))),a=0;a<o.length;a++)u=r.element.getAttribute(o[a]),"INPUT"===r.element.tagName&&"value"===o[a]?u="password"===r.element.getAttribute("type")?z.censorValueOf(u):n.censor(r.element):e.isAttributeMasked(r.element,o[a])?u=z.censorValueOf(u):"style"!==o[a]&&"src"!==o[a]||!c||""===(u=c(r.element,null,!0))&&"src"===o[a]&&(s["gb-dataremoved"]={value:"",ordinal:o.length+1}),s[o[a]]={value:u,ordinal:r.attributes[o[a]]};i=q.ensureProperty(i,"domChanges",r.id);return i.attributes=s,i}}.gbBind(null,a,e,{removeBase64ImageDataTagNames:h.removeBase64ImageDataTagNames}),function(n,e,t,r,i,o,a){if(void 0!==o.childListOrdinal&&!i.isDomMasked(o.element,Gn.SELF_OR_ANY_PARENT,Jn.OMIT)){for(var u,c,s=[],f=r(o.element);u=f.next();)c=e.idOf(u),o.addedNodes&&o.addedNodes[c]?(c=n.cloneNode(u),s.push(t.tokenForClonedNode(c))):s.push(t.tokenForNode(u));r=o.element.shadowRoot;r&&o.addedNodes[e.idOf(r)]&&s.push(t.tokenForClonedNode(n.cloneNode(r))),!r&&o.adoptedStyles&&o.adoptedStyles.length&&o.adoptedStyles.forEach(function(n){s.push(t.tokenForClonedNode(n))});a=q.ensureProperty(a,"domChanges",o.id);return a.children={ordinal:o.childListOrdinal,childList:s},a}}.gbBind(null,n,d,g,n.createChildNodesIterator,e)]},{name:"property",tracker:new Lr(j,d,h.ignoredFormElements),providers:[kr(a,{ignoredFormElement:h.ignoredFormElements})]}],h.recordCssRules&&g.push({name:"css",tracker:new Fr(f,d),providers:[Cr]}),h.recordAnimation&&g.push({name:"animate",tracker:new Pr(f,d),providers:[Tr]}),g),h.includeSelectorOnUpdate?new gt(H):{getSelectorInfo:function(){return{}}},{tokenizationVersion:"2"}),g=q.compositeFunctionBuilder().add(function(n,e){"INPUT"===n.tagName&&(e.value&&n.setAttribute("value",e.value),e.checked&&n.setAttribute("checked",""))}.gbBind(null)).add((s=z,function(n,e){"TEXTAREA"===n.tagName&&e.firstChild&&e.value!==e.firstChild.textContent&&(n.maskContent?n.firstChild.textContent=s.censorValueOf(e.value):n.firstChild.textContent=e.value)})).add(qr);f.ShadowRoot&&h.recordShadowDom&&(v=new Er(f,r,{byCtor:["ShadowRoot"]}),g.add(v.clonerHook.gbBind(v)));var p=new Ar(f,j,n,new mr({cookieMask:h.maskCookies}),W,g.build(),h.preciseStyleSheetCloning?Ur:Hr),y={snapshotDuration:-1,domUpdateDuration:-1,domUpdateCount:0,domObserver:i?i.getName():"NONE"},w=!!i;function b(){_=0,O=N=A=!1}function E(){b(),B(O=!0)}function C(n){var e=!1;O=!(D=!1),h.delaySnapshotAfterElementFound&&-1<h.delaySnapshotAfterElementFound&&setTimeout(function(){e||(e=!0,B())},h.delaySnapshotAfterElementFound),h.delaySnapshotAfterElementFound&&-1!==h.delaySnapshotAfterElementFound||B(!0)}function T(n){if(!R)return U;for(var e=0;e<h.ajaxTriggers.length;e++)if(-1!==n.url.indexOf(h.ajaxTriggers[e]))return n.url,void E()}function S(n){if(!R)return U;-1!==h.triggers.indexOf(n.selectorExpression)&&(n.selectorExpression,E())}function k(){w&&(i.start(),!R||A||N||void 0===h.onLoadTimeoutReport||-1===h.onLoadTimeoutReport||setTimeout(B,h.onLoadTimeoutReport))}function I(){if(!R)return U;if(h.snapshotImmediatePages&&h.snapshotImmediatePages.length)for(var n=f.location.href,e=0;e<h.snapshotImmediatePages.length;++e)if(q.isStringMatch(h.snapshotImmediatePages[e],n)){B(O=!0);break}}function x(){++F%h.updateOnWsCount==0&&r.emit("pageUpdate")}h=h||{},c=c||function(){};var M,R=!1,A=!1,N=!1,D=!1,O=!1,_=0,L=0,F=0,P=(M=null,function(){if(h.allowWaitForElementsUrls&&h.allowWaitForElementsUrls.length&&null===M)for(var n=0;n<h.allowWaitForElementsUrls.length;++n)if(q.isStringMatch(h.allowWaitForElementsUrls[n],f.location.href)){M=!0;break}return M=!!M}),B=function(n){if(!N&&!A&&!D)try{if(h.snapshotWaitForElement&&h.snapshotWaitForElement.length&&!O&&P())return q.waitForElementsOnPage(h.snapshotWaitForElement,C,h.elMustBeShown),!(D=!0);w&&i.start();e=(e=n,t=new Date,(e=p.take(L,!!e))&&!e.error&&(y.snapshotDuration=new Date-t,L++,r.emit("pageSnapshot:report",e),r.emit("pageSnapshot:save",e)),e);e&&!e.error?("hidden"===j.visibilityState&&r.emit("clsDebug","Error: snapshot was taken while document was hidden"),r.emit("domTrackingStarted"),m.start(),A=!0):(c("pageSnapshotError("+ ++_+")",p.lastError),3<=_?(e.error&&B(!0),N=!0):h.reTakeSnapshotAfterTime&&0<h.reTakeSnapshotAfterTime&&setTimeout(B,h.reTakeSnapshotAfterTime))}catch(n){c("startingError",n),logger.error("error during DOM recording plugin starting. error: "+n)}var e,t;return A};this.initialize=function(n){function e(n,e){var t,r,i,o;n&&e&&e[0]&&e[0].length&&(t=e[0],r=[],e=n.nodeType===Node.DOCUMENT_NODE?n.getElementsByTagName("HEAD")[0]:n,i=u.idOf(e),o=n===e?i:u.idOf(n),t.forEach(function(n){var e=q.createAssociatedCss(n,i,o),t=u.idOf(e);n._gbRemoveId&&e.setAttribute("gbRemoveId",n._gbRemoveId),n.gbRealId=o,n._gbRemoveId=t,e.setAttribute("gbid",n._gbRemoveId),n.gbAssociateIds&&!n.gbAssociateIds[i]?n.gbAssociateIds[i]=!0:n.gbAssociateIds||(n.gbAssociateIds={},n.gbAssociateIds[i]=!0),r.push(e)}),c[i]=e,a.emit("domMutation",{type:"childList",target:e,actualTarget:e,addedNodes:r,removedNodes:[],adoptedStyle:!0}))}var a,u,c,r,t,i,o,s;return n.on("event:mousedown",S),n.on("ajax:send",T),n.on("init:loaded",k),n.on("session:new",E),n.on("init:domready",I),-1!==h.updateOnWsCount&&Ir(f,x),h.compressionEnabled,h.enableAdoptedCss&&f.ShadowRoot&&(a=n,u=d,c=l,window.CSSStyleSheet&&(i=window.Document.prototype,n=window.ShadowRoot.prototype,o=Object.getOwnPropertyDescriptor(i,"adoptedStyleSheets")&&Object.getOwnPropertyDescriptor(i,"adoptedStyleSheets").set,s=Object.getOwnPropertyDescriptor(n,"adoptedStyleSheets")&&Object.getOwnPropertyDescriptor(n,"adoptedStyleSheets").set,o&&Object.defineProperty(i,"adoptedStyleSheets",{set:function(){var n=o.apply(this,arguments);try{e(this,arguments)}catch(n){logger.error("error during method 'adoptedStyleSheets' hook invocation. error: "+n.message,n)}return n}}),s&&Object.defineProperty(n,"adoptedStyleSheets",{set:function(){var n=s.apply(this,arguments);try{e(this,arguments)}catch(n){logger.error("error during method 'adoptedStyleSheets' hook invocation. error: "+n.message,n)}return n}}),(r=window.CSSStyleSheet.prototype.replaceSync)&&(window.CSSStyleSheet.prototype.replaceSync=function(){var n=r.apply(this,arguments);try{if(arguments){var e,t=this.gbAssociateIds;if(t)for(id in t)c[id]&&((e=q.createAssociatedCss(this,id,this.gbRealId)).setAttribute("gbremoveid",this._gbRemoveId),this._gbRemoveId=u.idOf(e),e.setAttribute("gbid",this._gbRemoveId),a.emit("domMutation",{type:"childList",actualTarget:c[id],addedNodes:[e],removedNodes:[],adoptedStyle:!0}))}}catch(n){logger.error("error during method 'CSSStyleSheet.replaceSync' hook invocation. error: "+n.message,n)}return n}),(t=window.CSSStyleSheet.prototype.replace)&&(window.CSSStyleSheet.prototype.replace=function(){return Promise.resolve(t.apply(this,arguments).then(function(n){var e,t=n.gbAssociateIds;if(t)for(id in t)c[id]&&((e=q.createAssociatedCss(n,id,n.gbRealId)).setAttribute("gbremoveid",n._gbRemoveId),n._gbRemoveId=u.idOf(e),e.setAttribute("gbid",n._gbRemoveId),a.emit("domMutation",{type:"childList",actualTarget:c[id],addedNodes:[e],removedNodes:[],adoptedStyle:!0}))}).catch(function(n){return logger.error("error during method 'CSSStyleSheet.replace' hook invocation. error: "+n),Promise.reject(n)}))}))),R=!0},this.stats=function(){return y},this.getDomSnapshot=function(){if(!R)return U;if(N)return U;if(!B())return U;if(!w)return U;var n=new Date,e=m.getSnapshot();return y.domUpdateDuration+=new Date-n,y.domUpdateCount++,e},this.ensureStarted=B,this.isSemiDomActivated=function(){return!w},this.isStarted=function(){return A},this.reset=b,this.getNodeCloner=function(){return n},this.getDomMasker=function(){return e},this.getDomEncryptor=function(){return t},this.getNodeVisitor=function(){return n},this.consumeCapturedNodes=function(n){return v?v.consumeByCtor(n):[]},this.nodeAcceptancePredicate=n.isNodeAccepted.gbBind(n),this.getSnapshotAccumulator=function(){return m}}(window,V,Kn,ae,_,ye,Ie,0,O,0,function(n,e){Mn.saveClsDebugErrorEvent("domPlugin",{name:e,message:n})},Qn,{triggers:H.domNewPageTriggers,ajaxTriggers:H.domNewPageAjaxTriggers,onLoadTimeoutReport:H.domStartAfter,updateOnWsCount:H.domUpdateEveryWsMsgIn,compressionEnabled:H.domCompress,ignoredFormElements:H.domIgnoredFormElements,recordCssRules:H.domRecordCssRules,maskCookies:H.maskCookies,recordShadowDom:H.recordShadowDom,preciseStyleSheetCloning:H.domPreciseStyleSheetCloning,includeSelectorOnUpdate:H.domIncludeSelectorOnUpdate,removeBase64ImageDataTagNames:H.removeBase64ImageDataTagNames,recordAnimation:H.recordAnimation,enableAdoptedCss:H.enableAdoptedCss,snapshotImmediatePages:H.snapshotImmediatePages,snapshotWaitForElement:H.snapshotWaitForElement,delaySnapshotAfterElementFound:H.delaySnapshotAfterElementFound,checkVisibility:H.checkVisibility,reTakeSnapshotAfterTime:H.reTakeSnapshotAfterTime,elMustBeShown:H.snapshotWaitForElementMustShown,allowWaitForElementsUrls:H.allowWaitForElementsUrls}))),void 0!==Mn&&(ae=new Nt({},function(n,e,t,r){t?(V.emit("removeFromStorage",{pageId:n,beaconData:e}),V.emit("beacon:sent",e.sn)):V.emit("beacon:failed",{sn:e.sn,status:r})}),ue=function(n){V.emit("handleGatewayResponse",n)},Qn=Xe(m,navigator,D,x.isCorsReporting(),H),ue=H.externalReporting?new function(c,o,s,logger,f,d,l,h){var v=0;function m(n,e,t,r,i,o){try{var a=!1;if(3===v)return l.stop(),void logger.error("Stopped recording after exceeding errors limit");n=n||"";var u=s.createRequest(t);if(!u)return logger.error("Failed creating request object"),v++,a=!0,void o();r===U&&(r=h.reportMaxRetries),u.onreadystatechange=function(){2===u.readyState?u.success?function(){f(e,i,!0);var n=u.responseContentType;n&&-1!==n.indexOf("application/json")&&d(u.response),a=!0,o()}():h.reportPostRetry&&r?(r--,f(e,i,!1,u.status),m(n,e,t,r,i,o)):(a=!0,o()):3===u.readyState&&(h.reportPostRetry&&r?m(n,e,t,--r,i,o):(a=!0,o()))},-1!==h.reportAbortAfter&&setTimeout(function(){2!==u.readyState&&(u.abort(),a||o())},h.reportAbortAfter),u.send(n,c.getContentType(),h.reportCompress)}catch(n){v++,logger.error("Failed creating or handling request with beacon ("+e+") to url "+t+": "+n.message,n),a=!0,o()}}this.name="ExternalReporter",this.config={maxReportSize:h.maxPostReportSize},this.dispatch=function(n,e,t,r,i){m(n,t,o.apply(e.reportURI,e,t,r),U,e.pageId,i)}}(Qn,new yt(V,M.detectorVersion,H.reportAddUriParams,!0),window[H.externalReporterObject],logger,ae.onReporterMessage.gbBind(ae),ue,Mn.asStoppable(),H):H.reportByPost||H.domRecordEnabled||"undefined"==typeof createHttpGetReporter?new ur(Qn,new yt(V,M.detectorVersion,H.reportAddUriParams,!0),In,logger,ae.onReporterMessage.gbBind(ae),ue,H,V):createHttpGetReporter(),Mn.registerPlugin("reporter",new function(t,r,n,e,i){var o,a={count:0,flushedBytes:0,encodingErrors:[]},u=new Ft(t);function c(n){var e;o.flush(),i.reportCreateSubSessionCookie&&(e=q.uuid(),R.set(M.cookies.sub_session,e),n.cookie=j.cookie,t.emit("session:newSubSessionId",{pageSnapshotSN:n.seq,subSessionId:e}))}Ht(window,t,u,a,i),o=window!==window.top&&window.MessageChannel&&i.reportViaTopWindow?new Wt(t,function(){return Mn},new cr(window),u,new qt(window.sessionStorage,new dr(q.Base64)),i):new zt(t,r,e,new ar(V,{},1e3),u,new Ot(e,n,r,a,i),new qt(window.sessionStorage,new dr(q.Base64)),a,i),this.initialize=function(n,e){if(!E.isUndefined(i.reportURI)&&0!==i.reportURI.length)return i.reportByPost,r.name,i.reportCompress,r.supportsCompression,t.on("pageSnapshot:report",c),!0;console.log("ERROR[EyeView-1401]: Detector script is missing configuration for 'reportURI'. Please add it.")},this.stats=function(){return a}}(V,Qn,ae,ue,H))),void 0===Mn||void 0===H||q.isMobile()||!H.domTamperingDetectionEnabled||"undefined"==typeof MutationObserver&&"undefined"==typeof WebKitMutationObserver||Mn.registerPlugin("domTamperingPlugin",new function(u,c,s,r){var t,r=q.optionsWithDefaults(r,{graceTime:2e3,ignorableTags:["TITLE","STYLE","SCRIPT"]}),i=q.immutableSet.apply(null,r.ignorableTags),f={},d=5,l=0,o=!1,a=!1;function h(){t=q.currentTimestamp()}var v=!1;function m(n){var e;!n.target||"characterData"!==n.type||(e=n.target).nodeType===Node.TEXT_NODE&&i[e.parentNode.nodeName]||((e=function(){var n=!1,e=j.querySelector("title");(j.documentElement.className.match("translated-rtl")||j.documentElement.className.match("translated-ltr"))&&(n=!0);e&&e.getAttribute&&e.getAttribute("_msthash")&&e.getAttribute("_msttexthash")&&e.getAttribute("_msthidden")&&(n=!0);return n}())===!!n.target.gbTranslated||n.target.gbCheckedTrans?e===n.target.gbTranslated&&(n.target.gbCheckedTrans=U):(n.target.gbTranslated=e,n.target.gbCheckedTrans=!0),e=n.target.data,o=o||(t=t||q.currentTimestamp(),q.currentTimestamp()-t>=r.graceTime),!n.target.gbCheckedTrans&&(a||v)&&o&&l<d&&f[s.idOf(n.target)]!==e&&n.oldValue.replace(/\s/g,"")!==e.replace(/\s/g,"")&&(++l,c.emit("domTampered",{element:n.target.parentNode,newText:e,prevText:n.oldValue})),a=!0)}function g(e){var t,n=j.implementation.createHTMLDocument("test");(t=new MutationObserver(function(n){t&&t.disconnect(),"characterData"!==n[0].type&&e()})).observe(n,{attributes:!1,childList:!0,characterData:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1}),n.body.innerText="text1"}c.on("devToolsVisibilityChanged",function(n){v=n.value}),this.initialize=function(){if(r.domTamperingIgnorePages&&r.domTamperingIgnorePages.length)for(var n=0;n<r.domTamperingIgnorePages.length;++n)if(q.isStringMatch(r.domTamperingIgnorePages[n],u.location.href))return;var e=!(!q.isChromeDesktop()&&!q.isChromeOnIos()||u.opr);function t(){function n(){l<d&&(f[s.idOf(this)]=this.data)}function e(){this&&this.nodeType===Node.TEXT_NODE&&l<d&&(f[s.idOf(this)]=this.data)}function t(){1===this.childNodes.length&&this.childNodes[0].nodeType===Node.TEXT_NODE&&(f[s.idOf(this.childNodes[0])]=this.childNodes[0].data)}var r,i,o,a;r=bn.hookProto(u.CharacterData.prototype),i=bn.hookProto(u.Text.prototype),o=bn.hookProto(u.Node.prototype),a=bn.hookProto(u.HTMLElement.prototype),r.setHookAfter("replaceData",n),r.setHookAfter("appendData",n),r.setHookAfter("insertData",n),r.setHookAfter("deleteData",n),r.hookSetPropertyAfter("data",n),i.setHookAfter("splitText",n),o.hookSetPropertyAfter("textContent",e),o.hookSetPropertyAfter("nodeValue",e),i.setHookAfter("replaceWholeText",n),q.isIE()&&(a.hookSetPropertyAfter("innerText",t),a.hookSetPropertyAfter("innerHTML",t)),c.on("domMutation",m)}c.on("init:domready",h),e?(e=q.getChromeVersion())&&e<70||g(t):t()}}(window,V,_,{graceTime:H.domTamperingGraceTime,domTamperingIgnorePages:H.domTamperingIgnorePages,ignorableTags:H.domTamperingIgnorableTags})),Yn=window,$n=void 0!==H&&H.iframesDebugEnabled,Zn=Yn.top!==Yn,iframeHelper={MAX_DEPTH_THRESHOLD:20,tryGetCurrentDepth:function(n){var e=0,t=n;try{for(;t.parent!=t&&e<=this.MAX_DEPTH_THRESHOLD;)t=t.parent,e++}catch(n){return logger.error("could not retrieve current window's depth (a CORS issue?). error:"+n),-1}return e>this.MAX_DEPTH_THRESHOLD?(this.MAX_DEPTH_THRESHOLD,-1):e},isCrossOriginFrame:function(n,e){try{if(!n.contentWindow)return!0;var t=n.getAttribute("src");if("about:blank"===t)return!1;if(!t)return!1;t=q.extractOrigin(t);return t?e!==t:!1}catch(n){return!0}},isEmpty:function(n){return!(n.contentDocument&&n.contentDocument.body.hasChildNodes())},logError:function(){var n=Array.prototype.slice.call(arguments);return"string"==typeof n[0]&&(n[0]="[frame.debug] "+(Zn?"FRAME ("+Yn.location.href+")":"TOP")+" "+n[0]),$n?console.log.apply(console,n):logger.error(n)},logDebug:function(){var n=Array.prototype.slice.call(arguments);return"string"==typeof n[0]&&(n[0]="[frame.debug] "+(Zn?"FRAME ("+Yn.location.href+")":"TOP")+" "+n[0]),$n&&logger.log(n)}},ne={hidden:function(n){return!(!n||!n.style||"none"!==n.style.display)}},void 0!==Mn&&H.iframesRecordEnabled&&(ee=function(n){return""+_.idOf(n)},te=function(n,e,t,r){if((r=r||{}).directChannel)return Gr(n,e,t);if(r.directChannelWhenUriContainer)for(var i=0;i<r.directChannelWhenUriContainer.length;i++)if(0<=n.location.href.indexOf(r.directChannelWhenUriContainer[i]))return Gr(n,e,t);return Xr(n)}(window,Mn,i,{directChannel:H.iframesDirectChannel,directChannelWhenUriContainer:H.iframesDirectChannelWhenUriContains}),Mn.registerPlugin("iframes",function(){ti(V,Mn.blackoutManager,{suspendReportingWhenLocationContains:H.iframesBlackoutWhenLocationContains});var n=new ri(V),e=new Yr(window,te,H.iframesParentOrigin),t=new Qr(window,te),r=new Zr(V,function(){return Mn.plugins.domRecordingPlugin},Mn.savePageUpdate.gbBind(Mn),Mn.blackoutManager,n,function(n){V.emit("parentWindowInfo",n)},function(n){V.emit("iframePortReceived",n)});return new ii(window,V,n,new ni(j,V,H.framesetRecordEnabled),new Jr(window,j,V,_),M.detectorScript?new Kr(j,H,M.detectorScript,i,{skipHidden:H.iframesSkipHidden,forceDirectChannel:"direct"===te.name,skipWhenLocationContains:H.iframesSkipWhenLocationContains,injectionMode:H.iframesAutoInjectMode}):U,new $r(window,e,t,r,{disabled:H.iframesDisableNotifications,framesetRecordEnabled:H.framesetRecordEnabled}),Mn.blackoutManager,new ei(j,Mn.page,Mn.blackoutManager,e,t,ee,Mn,{mscTimeout:H.iframesHandshakeTimeout,framesetRecordEnabled:H.framesetRecordEnabled}),0,ee,function(n,e,t){t=t||{containerIdKey:"containerId",parentPageIdKey:"pageId"};var r,i,o,a=!1;function u(){a||(o[t.containerIdKey]&&r.setExtraInfo(t.containerIdKey,o[t.containerIdKey]),o[t.parentPageIdKey]&&r.setExtraInfo(t.parentPageIdKey,o[t.parentPageIdKey]),i(),a=!0)}return n.on("event:unload",function(){r&&(o={},u())},U,-100),e.documentEventHook=function(n,e){r=n,i=e,o&&u()},function(n,e){o={parentPageId:n,containerId:e},r&&i&&u()}}(V,Mn,{parentPageIdKey:je.prototype.PARENT_PAGE_ID,containerIdKey:je.prototype.CONTAINER_ID}),{skipHidden:H.iframesSkipHidden,autoInject:H.iframesAutoInject})}())),void 0!==Mn&&void 0!==H&&H.collectStruggles&&Mn.registerPlugin("strugglesPlugin",(re=window,ie=V,oe=_,ae=se,ue=R,ce=N,se=window!==window.top,he={},ve=ui(oe,ie,si,fe=H,re),me=ci(re,si,ue),ge={checkXhr:function(n){(0===n.status&&!n.aborted||400<=n.status)&&de({elementSelector:n.lastFocusedSelectorInfo,dataToEncode:{type:"ajaxError",xhrStatus:n.status,url:n.url,sn:n.sn}})}},se=ai(re,de=si,ie,{horizontalScrollbar:fe.struggleCaptureHorizontalScrollbar,blankPage:!se&&fe.struggleCaptureBlankPage}),ae.setListener(se.handleNode),{initialize:function(){ie.on("init:loaded",fi),ie.on("event:click",mi),ie.on("ajax:end",gi),fe.collectFormStruggles&&(he=oi(re,oe,si,ce,{maxFocusTime:fe.struggleMaxLongFocusTime}),ie.on("event:submit",di),ie.on("event:keyup",li),ie.on("event:elementChange",hi),ie.on("event:unload",vi))}})),void 0!==Mn&&window===window.top&&H.devToolsDetectionEnabled&&!q.isMobile()&&(pe=/firefox/i.test(navigator.userAgent)?new function(n,e){var t=!1,r=n.outerHeight,i=n.innerHeight,o=n.outerWidth,a=n.innerWidth;function u(){t||(n.outerHeight===r&&150<n.Math.abs(n.innerHeight-i)?(e.emit("devToolsVisibilityChanged",{value:!0,size:"oh_"+n.outerHeight+"_ih_"+n.innerHeight}),t=!0):n.outerWidth===o&&150<n.Math.abs(n.innerWidth-a)?(e.emit("devToolsVisibilityChanged",{value:!0,size:"ow_"+n.outerWidth+"_iw_"+n.innerWidth}),t=!0):n.outerHeight!==r?(r=n.outerHeight,i=n.innerHeight):(o=n.outerWidth,a=n.innerWidth))}this.startDetecting=function(){e.on("window:resize",u)}}(window,V):new function(e,n,t){t=t||{consoleMessage:""};var r=!1,i=e.document.createElement("div"),o=e.outerHeight,a=e.outerWidth;function u(n){r||n&&(e.outerHeight!==o?(o=e.outerHeight,1):e.outerWidth!==a&&(a=e.outerWidth,1))||e.console.log(i)}i.textContent=t.consoleMessage,Object.defineProperty(i,"id",{get:function(){r||(r=!0,n.emit("devToolsVisibilityChanged",{value:!0,size:"oh_"+e.outerHeight+"_ih_"+e.innerHeight+"_ow_"+e.outerWidth+"_iw_"+e.innerWidth}))}}),this.startDetecting=function(){n.on("event:unload",u.gbBind(null,!1)),n.on("init:preloaded",u.gbBind(null,!1)),n.on("window:resize",u.gbBind(null,!0))}}(window,V,{consoleMessage:H.devToolsDetectionMessage}),Mn.registerPlugin("devToolsTrackingPlugin",new function(n){n.startDetecting(),this.initialize=function(){}}(pe))),H.recordShadowDom&&H.domRecordEnabled&&window.ShadowRoot&&(pe=new gt(H),Mn.registerPlugin("shadowDomPlugin",new function(t,n,r,i,o,a,u){var c={},s=_,e=new yi(t,r,o.getNodeVisitor());r.on("shadow:rootDetected",function(n){var e=Wr(t,r,n,o.nodeAcceptancePredicate,{semiDomEnabled:u.semiDomEnabled,domIE11ForceMutationObserver:u.domIE11ForceMutationObserver,domTamperingDetectionEnabled:u.domTamperingDetectionEnabled,domFilterAttributes:u.domFilterAttributes});c[s.idOf(n)]=e,o.getSnapshotAccumulator().addBundle({name:"property",tracker:new Lr(n,s,a,u.domIgnoredFormElements),providers:[kr(i,{ignoredFormElement:u.domIgnoredFormElements})]}),e.start()}),r.on("shadow:rootRemoved",function(n){var e=s.idOf(n);c[e]&&(c[e].stop(),delete c[e]),o.getSnapshotAccumulator().removeBundle(n)}),r.on("domTrackingStarted",function(){e.startObservingShadowRoots(o.consumeCapturedNodes("ShadowRoot"))}),this.initialize=function(){},this.stats=function(){return e.stats()}}(window,0,V,O,Mn.plugins.domRecordingPlugin,pe,{semiDomEnabled:H.semiDomEnabled,domIgnoredFormElements:H.domIgnoredFormElements,domIE11ForceMutationObserver:H.domIE11ForceMutationObserver}))),void 0!==Mn&&window.performance&&void 0!==window.performance.getEntriesByType&&void 0!==window.MutationObserver&&Mn.registerPlugin("resourceRecorderPlugin",new function(n,e,t){var r,i,o,a,u,c,s={};H.resourcesRecordEnabled&&void 0!==n.XMLHttpRequest&&(i=new bi(n,new wt(n.localStorage,{keysPrefix:M.Storage.UnboundKeyPrefix}),wi,e,t,(o=H.resourcesRecordAllowCors,a=H.resourceIgnoreWhenUrlContains,function(n){if(!q.startsWith(n,"http")||!o&&q.extractOrigin(n)!==window.location.origin)return!0;for(var e=0;e<a.length;e++)if(-1!==n.indexOf(a[e]))return!0;return!1}),{electProbability:H.resourcesRecordChance,electAmount:H.resourcesRecordCount,maxPendingResources:5,resourceRecordCssOnly:H.resourceRecordCssOnly},s),e.on("init:loaded",function(){setTimeout(i.fetchResources.gbBind(i),5e3)}),e.on("event:unload",i.electResources.gbBind(i))),H.resourceTimingRecordEnabled&&Ke(H.resourceTimingRecordEnabledByChance,A,"performanceRecord")&&(r=new Ei(n,V,[{type:"resource",properties:["name","startTime","requestStart","responseStart","responseEnd","duration","decodedBodySize","loadMode","nextHopProtocol","initiatorType","transferSize","redirectStart","fetchStart","domainLookupStart","domainLookupEnd","redirectEnd","connectStart","resourceType","entryType","connectEnd","secureConnectionStart","isSuccessful"],filterBy:"initiatorType",validFilterValues:H.resourceTimingRecordAjax?q.immutableSet("link","css","font","img","input","body","script","xmlhttprequest","fetch","beacon"):q.immutableSet("link","css","font","img","input","body","script")}],H.reportURI),e.on("init:loaded",r.reportMeasurements.gbBind(r,!1,"pageload")),e.on("segmentChanged",r.reportMeasurements.gbBind(r,!1,"segment")),e.on("event:unload",r.reportMeasurements.gbBind(r,!1,"unload"))),(r||i)&&(H.electResourcesOnClear&&(n.Performance.prototype.clearResourceTimings?(u=n.Performance.prototype.clearResourceTimings,n.Performance.prototype.clearResourceTimings=function(){try{r&&r.reportMeasurements(!0,"clearResources"),i&&i.electResources()}catch(n){logger.error("faild to run hook on Performance.clearResourceTimings: "+n)}u.apply(this,arguments)}):n.Performance.prototype.webkitClearResourceTimings&&(c=n.Performance.prototype.webkitClearResourceTimings,n.Performance.prototype.webkitClearResourceTimings=function(){try{r&&r.reportMeasurements(!0,"clearResources"),i&&i.electResources()}catch(n){logger.error("failed to run hook on Performance.webkitClearResourceTimings: "+n)}c.apply(this,arguments)})),H.isCheckResourceBuffer&&function(e,t){t=q.optionsWithDefaults(t,{resourceBufferCheckTime:5e3,maxPerformanceBuffer:140,resourceBufferIncreaseBy:100});var r=150,i=t.maxResourcesBeforeFlush;function n(){var n=e.performance.getEntriesByType("resource");n&&n.length>=i&&o()}function o(){var n;t.resourceBufferIncreaseBy&&0<t.resourceBufferIncreaseBy&&e.performance.setResourceTimingBufferSize?(n=e.performance.getEntriesByType("resource").length,r<n&&(r=n),r+=t.resourceBufferIncreaseBy,i+=t.resourceBufferIncreaseBy,e.performance.setResourceTimingBufferSize(r)):e.performance.clearResourceTimings()}e.performance&&(Object.getOwnPropertyDescriptor(e.Performance.prototype,"onresourcetimingbufferfull")?e.performance.onresourcetimingbufferfull=o:e.PerformanceObserver?new e.PerformanceObserver(n).observe({entryTypes:["resource"]}):setInterval(n,t.resourceBufferCheckTime))}(n,{resourceBufferCheckTime:H.resourceBufferCheckTime,maxResourcesBeforeFlush:H.maxResourcesBeforeFlush,resourceBufferIncreaseBy:H.resourceBufferIncreaseBy})),this.initialize=function(){},this.startRecordingAll=function(){i?(console.log("Entering full resources recording mode."),i.recordAllResources()):console.log("Please allow resource recording first.")},this.stopRecordingAll=function(){i?(console.log("Exiting full resources recording mode."),i.stopRecordAllResources()):console.log("Please allow resource recording first.")},this.stats=function(){return s}}(window,V,new dr(q.Base64))),void 0!==Mn&&H.webVitalsRecordEnabled&&Mn.registerPlugin("webVitalsPlugin",new function(n){var e=new Ci(window,n);sr(e),n.on("init:loaded",e.track.bind(e)),n.on("event:unload",e.report.bind(e)),this.initialize=function(){}}(V)),H.reportValidationErrors&&Mn.plugins.domRecordingPlugin&&Mn.registerPlugin("formValidationPlugin",new function(r,n,e,t,i){var o,a=["always","never","fqdn","tld","statusGte"];n.on("init:loaded",function(){o&&o.onLoadCheck(),"undefined"!=typeof jQuery&&void 0!==jQuery.validator&&new Si(n).intercept()}),n.on("init:preloaded",function(){i.domFormValidationTracking&&function(){var n=i.ignorablePages.filter(function(n){for(var e=0;e<a.length;++e)if(-1!==n.indexOf(a[e]))return!1;return!0});if(n&&n.length)for(var e=new Yt(r.location.hostname),t=0;t<n.length;++t)if(e.create(n[t])({url:r.location.href}))return;return 1}()&&(o=new Ti(r,n,q,e,t,{redComponentMin:i.redComponentMin,redComponentDelta:i.redComponentDelta,submitIds:i.submitIds,allowFormLevel:i.allowFormLevel,considerBG:i.considerBG,additionalTagNames:i.additionalTagNames,ignorableText:i.ignorableText,ignorableTags:i.ignorableTags,urlsRegexToCheck:i.urlsRegexToCheck,titleRegexStringToCheck:i.titleRegexStringToCheck}),n.on("event:mousedown",function(n){o.intercept(n.element)}),n.on("element:focus",function(n){o.intercept(n)}))}),this.initialize=function(){}}(window,V,_,Mn.plugins.domRecordingPlugin.getNodeVisitor(),{domFormValidationTracking:H.domFormValidationTracking,redComponentMin:H.domFormValidationRedComponentMin,redComponentDelta:H.domFormValidationRedComponentDelta,submitIds:H.domFormValidationSubmissionIds,allowFormLevel:H.domFormViolationsAllowFormLevel,considerBG:H.domFormValidationConsiderBG,additionalTagNames:H.domFormValidationAdditionalTagNames,ignorableText:H.domFormValidationIgnorableText,ignorableTags:H.domFormValidationIgnorableTags,ignorablePages:H.domFormValidationIgnorePagesPredicates,urlsRegexToCheck:H.domFormValidationCheckUrls,titleRegexStringToCheck:H.domFormValidationTitlesToCheck})),H.clientAttributesEnabled&&void 0!==Mn&&(ye=(ye=Mn.plugins.domRecordingPlugin&&Mn.plugins.domRecordingPlugin.getDomMasker())||{isDomMasked:function(){return!1}},Ie=(Ie=Mn.plugins.domRecordingPlugin&&Mn.plugins.domRecordingPlugin.getDomEncryptor())||{isDomEncrypted:function(){return!1}},Mn.registerPlugin("attributePlugin",new function(n,e){n.on("newRemoteConfig",function(n){n.attributeRules&&e.processRules(n.attributeRules)}),this.initialize=function(){},this.stats=function(){return e.getStats()},this.evaluateAttributes=function(){e.evaluateAttributes()}}(V,new function(c,s,i,o,a,f){var d={},l=[],u=["name","pageUrl","selector","accessorMethod","accessor"],e=!1,h={masked:0,reported:0,configured:0,configurationLastUpdatedAt:0,badRules:0,evalRoundsCount:0,evalDurationTotalMsc:0,evalDurationAverageMsc:0,reportsByRule:{},rulesList:[]};function t(n){for(var e,t=0;t<n.length;t++)(e=function(n){for(var e=0;e<u.length;e++)if(!n[u[e]])return;if(a[n.accessorMethod]&&o.isValidSelector(n.selector)){var t,r=n.pageUrl;n.pageHash&&(r+=("#"===n.pageHash.charAt(0)?"":"#")+n.pageHash);try{t=new RegExp("^"+r.split("*").join(".*")+"$")}catch(n){return void logger.error("Exception occurred during parsing regular expression. Error: "+n.message,n)}return n.selector=n.selector.replace(/\s*>\s*/g,">"),new i(n,o,a,t)}}(n[t]))&&l.push(e);h.configured=n.length,h.badRules=n.length-l.length}function v(n,e){try{for(var t=c.location.href,r={},i=0;i<l.length;i++){var o=Date.now(),a=l[i].evaluate(n,t,e,r,function(n){var e;return function(){return e=e||N.getSelectorInfo(n,!1).selector}}(n)),u=Date.now();h.evalDurationTotalMsc+=u-o,h.evalRoundsCount++,h.evalDurationAverageMsc=h.evalDurationTotalMsc/h.evalRoundsCount,u=l[i].getRuleName(),a&&a.val&&d[u]!==a.val&&(a.isMasked()?h.masked++:(o=l[i].getRuleMaxLength()||f.clientAttributeMaxLength,s.emit("clientAttribute",{name:u,val:a.val.substring(0,o)}),h.reportsByRule[u]=(h.reportsByRule[u]||0)+1,h.reported++),d[u]=a.val)}}catch(n){logger.error("Exception occurred during rule evaluation. Error: "+n.message,n)}}s.on("domMutation",function(n){var e="characterData"===n.type,t=!e&&"attributes"===n.type,r=e?n.target.parentNode:n.target;e||"childList"!==n.type||(e=1===n.addedNodes.length&&n.addedNodes[0].nodeType===Node.TEXT_NODE),r&&v(r,e||t)}),s.on("init:loaded",function(){v(c.document,!1),e=!0}),this.processRules=function(n){d={},h.configurationLastUpdatedAt=q.currentTimestamp(),q.assign(h.rulesList,n),t(n),e&&v(c.document,!1)},this.getStats=function(){return h},this.evaluateAttributes=function(){v(c.document,!1)}}(window,V,Mi,pt(window.document),(we=ye,be=Ie,Ee=O,Ce={domMaskedAttributes:H.domMaskedAttributes,domMaskAttributesByTag:H.domMaskAttributesByTag,domMaskIgnoreAttribute:H.domMaskIgnoreAttribute,valueMaskIgnoreAttribute:H.valueMaskIgnoreAttribute},Te=q.immutableSet.apply(null,Ce.domMaskedAttributes),Se=q.immutableSet.apply(null,Ce.domMaskAttributesByTag),ke=Ce.domMaskIgnoreAttribute,{attribute:function(n,e){return{accessor:e,elem:n,val:n.getAttribute&&n.getAttribute(e),isMasked:ki}},property:function(n,e){return{accessor:e,elem:n,val:""+(n[e]||""),isMasked:Ii}},constant:function(n,e){return{elem:n,val:e,isMasked:xi}}}),{clientAttributeMaxLength:H.clientAttributeMaxLength})))),Mi.prototype.matchPattern=function(n){return this._urlRegexp.test(n)},Mi.prototype.getRuleName=function(){return this._rule.name},Mi.prototype.getRuleMaxLength=function(){return this._rule.maxLength},Mi.prototype.evaluate=function(n,e,t,r,i){if(this.matchPattern(e)){var o=r[this._rule.selector];if(o||(t?this._elementResolver.matches(n,this._rule.selector)&&(o=n):o=this._elementResolver.querySelector(n,this._rule.selector)),!o&&this._isHierarchical){i=i();if(q.startsWith(this._rule.selector,i)){var a=this._rule.selector.substring(i.length+1);if(a)try{t?this._elementResolver.matches(n,a)&&(o=n):o=this._elementResolver.querySelector(n,a)}catch(n){}}}if(o)return r[this._rule.selector]=o,this._accessors[this._rule.accessorMethod](o,this._rule.accessor)}},Ri.KEY_NAME=M.Storage.BoundKeyPrefix+"aid",void 0!==Mn&&(Ae=new wt(window.localStorage,{keysPrefix:M.Storage.UnboundKeyPrefix}),Ie=new dr(q.Base64),Mn.registerPlugin("gatewayPlugin",new function(n,o){n.on("handleGatewayResponse",function(n){var e;try{e=JSON.parse(n)}catch(n){return void logger.error("Failed parsing JSON of response: "+n.message,n)}var t,r=e.conf||e,i=r.appId;for(t in r)r.hasOwnProperty(t)&&o[t]&&o[t].handle(r[t],i);e.clse&&o.clse.handle(e.clse)}),this.initialize=function(){}}(V,{configuration:new function(t,r,i){var o;t.on("init:preloaded",function(){(o=function(){var n,e=i.get("app.conf");if(e)try{n=r.decode(e)}catch(n){logger.error("Failed parsing JSON for configuration: "+n.message,n)}return n}()||{}).configuration&&t.emit("newRemoteConfig",o.configuration)}),t.on("worker:init",function(){o&&o.configuration&&t.emit("confHashChange",o.configuration.hash)}),this.handle=function(n,e){o&&(o.configuration&&o.configuration.hash!==n.hash||o.appId!==e)&&(i.set("app.conf",r.encode({configuration:n,appId:e})),o.configuration=n,o.appId=e,n&&t.emit("newRemoteConfig",n),t.emit("confHashChange",n.hash))}}(V,Ie,Ae),aid:H.reportPreferSendBeaconAPI&&st.isSupported()?{handle:function(){}}:new Ri(V,window.sessionStorage),commands:new function(){this.handle=function(n,e){}},clse:new function(e,t,r){var i;e.on("init:preloaded",function(){(i=function(){var n,e=r.get("app.clse");if(e)try{n=t.decode(e)}catch(n){logger.error("Failed parsing JSON for configuration: "+n.message,n)}return n}()||{}).clse&&e.emit("remoteClseConf",i.clse)}),e.on("worker:init",function(){i&&i.clse&&e.emit("clseChange",i.clse)}),this.handle=function(n){!n||!n.clse||i.clse&&i.clse===n.clse||(r.set("app.clse",t.encode({clse:n.clse})),e.emit("remoteClseConf",n.clse))}}(V,Ie,Ae)}))),n[i]=(Me=(xe=Mn).asStoppable(),Re=V,Ae=H.debugMode,Ne=["config","page","plugins","blackoutManager","version","triggerMessage","sessionId","visitorId"],De=q.shallowExtend(Ae?xe:{},{triggerCustomEvent:function(n,e,t){n&&"string"==typeof n&&Re.emit("customEvent",{name:""+n,val:""+e,domEl:t})},triggerCustomEventMap:function(n,e,t){n&&"string"==typeof n&&e&&"object"==typeof e&&0!==Object.keys(e).length&&Re.emit("customMapEvent",{name:""+n,val:e,domEl:t})},trigger3rdPartyMap:function(n){Re.emit("api:captureObject",n)},isRecording:function(){return!(Me&&Me.isStopped())},startRecording:function(){Me&&Me.start()},stopRecording:function(){Me&&Me.stop()},invalidateSession:function(){Re.emit("invalidateSession"),Ai(De)},flush:function(){Re.emit("forceFlush"),Re.emit("iFramesForceFlush")},triggerABTestingEvent:function(n,e,t,r,i){n&&r&&i&&e&&t?"string"==typeof n&&"string"==typeof r&&"string"==typeof i&&"string"==typeof e&&"string"==typeof t?Re.emit("abTesting",{provider:n,offers:[{variantId:r,variantName:i,experimentId:e,experimentName:t}]}):console.log("Type mismatch - should be String."):console.log("Missing one or more arguments. Expected format: provider, experimentId, experimentName, variantId, variantName")},waitForObjectOnPage:function(n,e,t){try{q.waitForObjDefined(n,e,function(){try{t()}catch(n){Re.emit("clsDebug","callback function bad implementation in waitForObjectOnPage API: "+n.message)}})}catch(n){Re.emit("clsDebug","bad implementation for waitForObjectOnPage API: "+n.message)}},getSessionReplayLink:function(n){return n||H.gbconsoledomain?"https://"+(n||H.gbconsoledomain)+"/webinterface/webui/#/sessions/cls_s:"+xe.sessionId+"/replay?from="+(Date.now()-792e5)+"&till="+(Date.now()+792e5):"glassbox console domain was not configured or passed via call to getSessionReplayLink"},sendVocData:function(n){V.emit("vocGetData",n)}}),Re.on("init:loaded",Ai.gbBind(null,De)),Ai(De)),(n.Zone&&n.Zone.root&&"function"==typeof n.Zone.root.wrap?n.Zone.root.wrap(Mn.initialize):Mn.initialize).call(Mn)))}("_detector","undefined"!=typeof window?window:self,"undefined"==typeof window,"undefined"!=typeof document?document:void 0,"6.3.122B148");