@microsoft/applicationinsights-clickanalytics-js 2.7.5-nightly.2202-11 → 2.7.5-nightly.2203-01
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/{ai.clck.2.7.5-nightly.2202-11.cjs.js → ai.clck.2.7.5-nightly.2203-01.cjs.js} +3 -3
- package/browser/{ai.clck.2.7.5-nightly.2202-11.cjs.js.map → ai.clck.2.7.5-nightly.2203-01.cjs.js.map} +1 -1
- package/browser/{ai.clck.2.7.5-nightly.2202-11.cjs.min.js → ai.clck.2.7.5-nightly.2203-01.cjs.min.js} +3 -3
- package/browser/{ai.clck.2.7.5-nightly.2202-11.cjs.min.js.map → ai.clck.2.7.5-nightly.2203-01.cjs.min.js.map} +1 -1
- package/browser/{ai.clck.2.7.5-nightly.2202-11.gbl.js → ai.clck.2.7.5-nightly.2203-01.gbl.js} +3 -3
- package/browser/{ai.clck.2.7.5-nightly.2202-11.gbl.js.map → ai.clck.2.7.5-nightly.2203-01.gbl.js.map} +1 -1
- package/browser/{ai.clck.2.7.5-nightly.2202-11.gbl.min.js → ai.clck.2.7.5-nightly.2203-01.gbl.min.js} +3 -3
- package/browser/{ai.clck.2.7.5-nightly.2202-11.gbl.min.js.map → ai.clck.2.7.5-nightly.2203-01.gbl.min.js.map} +1 -1
- package/browser/ai.clck.2.7.5-nightly.2203-01.integrity.json +66 -0
- package/browser/{ai.clck.2.7.5-nightly.2202-11.js → ai.clck.2.7.5-nightly.2203-01.js} +3 -3
- package/browser/{ai.clck.2.7.5-nightly.2202-11.js.map → ai.clck.2.7.5-nightly.2203-01.js.map} +1 -1
- package/browser/{ai.clck.2.7.5-nightly.2202-11.min.js → ai.clck.2.7.5-nightly.2203-01.min.js} +3 -3
- package/browser/{ai.clck.2.7.5-nightly.2202-11.min.js.map → ai.clck.2.7.5-nightly.2203-01.min.js.map} +1 -1
- package/browser/ai.clck.2.cjs.js +2 -2
- package/browser/ai.clck.2.cjs.js.map +1 -1
- package/browser/ai.clck.2.cjs.min.js +2 -2
- package/browser/ai.clck.2.cjs.min.js.map +1 -1
- package/browser/ai.clck.2.gbl.js +2 -2
- package/browser/ai.clck.2.gbl.js.map +1 -1
- package/browser/ai.clck.2.gbl.min.js +2 -2
- package/browser/ai.clck.2.gbl.min.js.map +1 -1
- package/browser/ai.clck.2.js +2 -2
- package/browser/ai.clck.2.js.map +1 -1
- package/browser/ai.clck.2.min.js +2 -2
- package/browser/ai.clck.2.min.js.map +1 -1
- package/dist/applicationinsights-clickanalytics-js.d.ts +1 -1
- package/dist/applicationinsights-clickanalytics-js.js +2 -2
- package/dist/applicationinsights-clickanalytics-js.js.map +1 -1
- package/dist/applicationinsights-clickanalytics-js.min.js +2 -2
- package/dist/applicationinsights-clickanalytics-js.min.js.map +1 -1
- package/dist/applicationinsights-clickanalytics-js.rollup.d.ts +1 -1
- package/dist-esm/Behaviours.js +1 -1
- package/dist-esm/ClickAnalyticsPlugin.js +2 -2
- package/dist-esm/ClickAnalyticsPlugin.js.map +1 -1
- package/dist-esm/DataCollector.js +1 -1
- package/dist-esm/Enums.js +1 -1
- package/dist-esm/Interfaces/Datamodel.js +1 -1
- package/dist-esm/applicationinsights-clickanalytics-js.js +1 -1
- package/dist-esm/common/Utils.js +1 -1
- package/dist-esm/events/PageAction.js +1 -1
- package/dist-esm/events/WebEvent.js +1 -1
- package/dist-esm/handlers/AutoCaptureHandler.js +1 -1
- package/dist-esm/handlers/DomContentHandler.js +1 -1
- package/package.json +4 -4
- package/src/ClickAnalyticsPlugin.ts +1 -1
- package/browser/ai.clck.2.7.5-nightly.2202-11.integrity.json +0 -66
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Click Analytics, 2.7.5-nightly.
|
|
2
|
+
* Application Insights JavaScript SDK - Click Analytics, 2.7.5-nightly.2203-01
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
|
-
var t=this,e=function(t){"use strict";var F="function",a="object",i="undefined",r="prototype",B="hasOwnProperty",n=Object,R=n[r],e=n.assign,U=n.create,o=n.defineProperty,V=R[B],s=null;function j(t){return void 0===t&&(t=!0),s&&t||(typeof globalThis!==i&&globalThis&&(s=globalThis),typeof self!==i&&self&&(s=self),typeof window!==i&&window&&(s=window),typeof global!==i&&global&&(s=global)),s}function H(t){throw new TypeError(t)}(j()||{}).Symbol,(j()||{}).Reflect;var e=e||function(t){for(var e,n=1,a=arguments.length;n<a;n++)for(var i in e=arguments[n])R[B].call(e,i)&&(t[i]=e[i]);return t},K=function(t,e){return(K=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e[B](n)&&(t[n]=e[n])})(t,e)};function q(t,e){function n(){this.constructor=t}typeof e!==F&&null!==e&&H("Class extends value "+e+" is not a constructor or null"),K(t,e),t[r]=null===e?function(t){if(U)return U(t);if(null==t)return{};var e=typeof t;function n(){}return e!==a&&e!==F&&H("Object prototype may only be an Object:"+t),n[r]=t,new n}(e):(n[r]=e[r],new n)}var c="constructor",d="prototype",h="function",v="_dynInstFuncs",z="_isDynProxy",m="_dynClass",W="_dynInstChk",T=W,G="_dfOpts",J="_unknown_",X="__proto__",Y="useBaseInst",$="setInstFuncs",l=Object,C=l.getPrototypeOf,Q=0;function y(t,e){return t&&l[d].hasOwnProperty.call(t,e)}function Z(t){return t&&(t===l[d]||t===Array[d])}function tt(t){return Z(t)||t===Function[d]}function _(t){if(t){if(C)return C(t);t=t[X]||t[d]||(t[c]?t[c][d]:null);if(t)return t}return null}function I(t,e){var n=[],a=l.getOwnPropertyNames;if(a)n=a(t);else for(var i in t)"string"==typeof i&&y(t,i)&&n.push(i);if(n&&0<n.length)for(var r=0;r<n.length;r++)e(n[r])}function et(t,e,n){return e!==c&&typeof t[e]===h&&(n||y(t,e))}function b(t){throw new TypeError("DynamicProto: "+t)}function nt(t,e){for(var n=t.length-1;0<=n;n--)if(t[n]===e)return 1}function at(t,e){return y(t,d)?t.name||e||J:((t||{})[c]||{}).name||e||J}function it(t,a,e,n){y(t,d)||b("theClass is an invalid class definition.");var i,r,o,s,c,l,u=t[d],f=(function(t){if(C)for(var e=[],n=_(a);n&&!tt(n)&&!nt(e,n);){if(n===t)return 1;e.push(n),n=_(n)}}(u)||b("["+at(t)+"] is not in class hierarchy of ["+at(a)+"]"),null),t=(y(u,m)?f=u[m]:(f="_dynCls$"+at(t,"_")+"$"+Q,Q++,u[m]=f),it[G]),g=!!t[Y],p=(g&&n&&n[Y]!==undefined&&(g=!!n[Y]),r={},I(i=a,function(t){!r[t]&&et(i,t,!1)&&(r[t]=i[t])}),r),g=(e(a,function(t,e,n,r){function a(t,e,n){var a,i=e[n];return i[z]&&r&&!1!==(a=t[v]||{})[T]&&(i=(a[e[m]]||{})[n]||i),function(){return i.apply(t,arguments)}}for(var i={},o=(I(n,function(t){i[t]=a(e,n,t)}),_(t)),s=[];o&&!tt(o)&&!nt(s,o);)I(o,function(t){!i[t]&&et(o,t,!C)&&(i[t]=a(e,o,t))}),s.push(o),o=_(o);return i}(u,a,p,g)),!!C&&!!t[$]);o=u,e=f,s=a,c=p,t=!1!==(g=g&&n?!!n[$]:g),Z(o)||(u=s[v]=s[v]||{},l=u[e]=u[e]||{},!1!==u[T]&&(u[T]=!!t),I(s,function(t){var n,a,i;et(s,t,!1)&&s[t]!==c[t]&&(l[t]=s[t],delete s[t],y(o,t)&&(!o[t]||o[t][z])||(o[t]=(n=o,a=t,(i=function(){var t,e;return(function(t,e,n,a){var i=null;if(t&&y(n,m)){var r=t[v]||{};if((i=(r[n[m]]||{})[e])||b("Missing ["+e+"] "+h),!i[W]&&!1!==r[T]){for(var o=!y(t,e),s=_(t),c=[];o&&s&&!tt(s)&&!nt(c,s);){var l=s[e];if(l){o=l===a;break}c.push(s),s=_(s)}try{o&&(t[e]=i),i[W]=1}catch(u){r[T]=!1}}}return i}(this,a,n,i)||(typeof(e=(e=n[t=a])===i?_(n)[t]:e)!==h&&b("["+t+"] is not a "+h),e)).apply(this,arguments)})[z]=1,i)))}))}it[G]={setInstFuncs:!0,useBaseInst:!0};var u={CRITICAL:1,1:"CRITICAL",WARNING:2,2:"WARNING"},rt={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},ot="attachEvent",st="addEventListener",f="toString",ct=o,o=Array.isArray,lt=R[f];function ut(t){return t===undefined||typeof t===i}function g(t){return null===t||ut(t)}function p(t){return!(!t||typeof t!==F)}function x(t,e,n,a){if(void 0===a&&(a=!1),!g(t))try{g(t[st])?g(t[ot])||t[ot]("on"+e,n):t[st](e,n,a)}catch(i){}}V[f].call(n);var ft=o||function(t){return!(!t||"[object Array]"!==lt.call(t))};function gt(t,e,n){var a=t.length;try{for(var i=0;i<a&&!(i in t&&-1===e.call(n||t,t[i],i,t));i++);}catch(r){}}function pt(){var t=Date;return t.now?t.now():(new t).getTime()}var dt="window",ht="JSON";function A(t){var e=j();return e&&e[t]?e[t]:t===dt&&vt()?window:null}function vt(){return!(typeof window!==a||!window)}function mt(){return vt()?window:A(dt)}function Tt(){return typeof document===a&&document?document:A("document")}function Ct(){return typeof location===a&&location?location:A("location")}function yt(){return typeof JSON===a&&JSON||null!==A(ht)}function _t(){return yt()?JSON||A(ht):null}function It(t){var e=Object[r].toString.call(t),n="";return"[object Error]"===e?n="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'":yt()&&(n=_t().stringify(t)),e+n}var P=null;function bt(t){return t?'"'+t.replace(/\"/g,"")+'"':""}function xt(t,e){var n,a=typeof console!==i?console:A("console");a&&(n="log",p(a[n=a[t]?t:n])&&a[n](e))}Pt.dataType="MessageData";var At=Pt;function Pt(t,e,n,a){void 0===n&&(n=!1),this.messageId=t,this.message=(n?"AI: ":"AI (Internal): ")+t;n="",yt()&&(n=_t().stringify(a)),t=(e?" message:"+bt(e):"")+(a?" props:"+bt(n):"");this.message+=t}var Nt=function Jt(i){this.identifier="DiagnosticLogger",this.queue=[];var s=0,c={};it(Jt,this,function(r){function t(t,e){t=i[t];return g(t)?e:t}function o(t,e){var n,a=(n=(n=P)||!0===i.disableDbgExt?n:P||(a=A("Microsoft"),P=a?a.ApplicationInsights:P))?n.ChromeDbgExt:null;a&&a.diagLog&&a.diagLog(t,e)}g(i)&&(i={}),r.consoleLoggingLevel=function(){return t("loggingLevelConsole",0)},r.telemetryLoggingLevel=function(){return t("loggingLevelTelemetry",1)},r.maxInternalMessageLimit=function(){return t("maxMessageLimit",25)},r.enableDebugExceptions=function(){return t("enableDebugExceptions",!1)},r.throwInternal=function(t,e,n,a,i){e=new At(e,n,i=void 0!==i&&i,a);if(r.enableDebugExceptions())throw e;n=t===u.CRITICAL?"errorToConsole":"warnToConsole";ut(e.message)?o("throw"+(t===u.CRITICAL?"Critical":"Warning"),e):(a=r.consoleLoggingLevel(),i?(i=+e.messageId,!c[i]&&t<=a&&(r[n](e.message),c[i]=!0)):t<=a&&r[n](e.message),r.logInternalMessage(t,e))},r.warnToConsole=function(t){xt("warn",t),o("warning",t)},r.errorToConsole=function(t){xt("error",t),o("error",t)},r.resetInternalMessageCount=function(){s=0,c={}},r.logInternalMessage=function(t,e){var n,a;s>=r.maxInternalMessageLimit()||(a=!0,n="AITR_"+e.messageId,c[n]?a=!1:c[n]=!0,a&&(t<=r.telemetryLoggingLevel()&&(r.queue.push(e),s++,o(t===u.CRITICAL?"error":"warn",e)),s===r.maxInternalMessageLimit()&&(a=new At(rt.MessageLimitPerPVExceeded,n="Internal events throttle limit per PageView reached for this app.",!1),r.queue.push(a),t===u.CRITICAL?r.errorToConsole(n):r.warnToConsole(n))))}})},Dt=(N.ParentContextKey="parent",N.ChildrenContextKey="childEvts",N);function N(t,i,e){var a,r=this,o=!1;r.start=pt(),r.name=t,r.isAsync=e,r.isChildEvt=function(){return!1},p(i)&&(o=function(t){if(ct)try{var e={enumerable:!0,configurable:!0,get:function(){return!a&&p(i)&&(a=i(),i=null),a}};return ct(t,"payload",e),!0}catch(n){}return!1}(r)),r.getCtx=function(t){return t?(t===N.ParentContextKey||t===N.ChildrenContextKey?r:r.ctx||{})[t]:null},r.setCtx=function(t,e){t&&(t===N.ParentContextKey?(r[t]||(r.isChildEvt=function(){return!0}),r[t]=e):t===N.ChildrenContextKey?r[t]=e:(r.ctx=r.ctx||{})[t]=e)},r.complete=function(){var t=0,e=r.getCtx(N.ChildrenContextKey);if(ft(e))for(var n=0;n<e.length;n++){var a=e[n];a&&(t+=a.time)}r.time=pt()-r.start,r.exTime=r.time-t,r.complete=function(){},!o&&p(i)&&(r.payload=i())}}var Et="CoreUtils.doPerf";function kt(t,e,n,a,i){if(t)if(t=p(t.getPerfMgr)?t.getPerfMgr():t){var r,o=void 0,s=t.getCtx(Et);try{if(o=t.create(e(),a,i))return s&&o.setCtx&&(o.setCtx(Dt.ParentContextKey,s),s.getCtx&&s.setCtx&&((r=s.getCtx(Dt.ChildrenContextKey))||(r=[],s.setCtx(Dt.ChildrenContextKey,r)),r.push(o))),t.setCtx(Et,o),n(o)}catch(c){o&&o.setCtx&&o.setCtx("exception",c)}finally{o&&t.fire(o),t.setCtx(Et,s)}}n()}var wt=function(i,e){var r=this,o=null,s=p(i.processTelemetry),c=p(i.setNextPlugin);r._hasRun=!1,r.getPlugin=function(){return i},r.getNext=function(){return o},r.setNext=function(t){o=t},r.processTelemetry=function(n,a){a=a||e;var t=i?i.identifier:"TelemetryPluginChain";kt(a?a.core():null,function(){return t+":processTelemetry"},function(){if(i&&s){r._hasRun=!0;try{a.setNext(o),c&&i.setNextPlugin(o),o&&(o._hasRun=!1),i.processTelemetry(n,a)}catch(e){var t=o&&o._hasRun;o&&t||a.diagLog().throwInternal(u.CRITICAL,rt.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+It(e)),o&&!t&&o.processTelemetry(n,a)}}else o&&(r._hasRun=!0,o.processTelemetry(n,a))},function(){return{item:n}},!n.sync)}};function St(t,e){var n=[];if(t&&0<t.length)for(var a=null,i=0;i<t.length;i++){var r=t[i];r&&p(r.processTelemetry)&&(r=new wt(r,e),n.push(r),a&&a.setNext(r),a=r)}return 0<n.length?n[0]:null}var Mt=function Xt(t,i,n,e){var a,r,o,s,c=this,l=null;null!==e&&(t&&p(t.getPlugin)?l=function(t,e,n){var a=[],i=!n;if(t)for(;t;){var r=t.getPlugin();!i&&r!==n||(i=!0,a.push(r)),t=t.getNext()}return i||a.push(n),St(a,e)}(t,c,e||t.getPlugin()):e?(a=c,o=t,s=!1,(r=e)&&t&&(o=[],gt(t,function(t){!s&&t!==r||(s=!0,o.push(t))})),r&&!s&&(o=o||[]).push(r),l=St(o,a)):ut(e)&&(l=St(t,c))),c.core=function(){return n},c.diagLog=function(){return(n||{}).logger||new Nt(i)},c.getCfg=function(){return i},c.getExtCfg=function(t,e){var n,a;return void 0===e&&(e={}),(n=i&&(a=i.extensionConfig)&&t?a[t]:n)||e},c.getConfig=function(t,e,n){void 0===n&&(n=!1);var a,t=c.getExtCfg(t,null);return t&&!g(t[e])?a=t[e]:i&&!g(i[e])&&(a=i[e]),g(a)?n:a},c.hasNext=function(){return null!=l},c.getNext=function(){return l},c.setNext=function(t){l=t},c.processNext=function(t){var e=l;e&&(l=e.getNext(),e.processTelemetry(t,c))},c.createNew=function(t,e){return new Xt((t=void 0===t?null:t)||l,i,n,e)}},D="getPlugin",f=(Lt.prototype.initialize=function(t,e,n,a){this._baseTelInit(t,e,n,a)},Lt);function Lt(){var s=this,c=!1,l=null,u=null;s.core=null,s.diagLog=function(t){return s._getTelCtx(t).diagLog()},s.isInitialized=function(){return c},s.setInitialized=function(t){c=t},s.setNextPlugin=function(t){u=t},s.processNext=function(t,e){e?e.processNext(t):u&&p(u.processTelemetry)&&u.processTelemetry(t,null)},s._getTelCtx=function(t){var e,t=t=void 0===t?null:t;return t||(e=l||new Mt(null,{},s.core),t=u&&u[D]?e.createNew(null,u[D]):e.createNew(null,u)),t},s._baseTelInit=function(t,e,n,a){t&&(o="extensionConfig",r=i=[],t&&(r=t[o])!==i&&g(r)&&(t[o]=r=i)),!a&&e&&(a=e.getProcessTelContext().getNext());var i,r,o=u;u&&u[D]&&(o=u[D]()),s.core=e,l=new Mt(a,t,e,o),c=!0}}var Ot="not_specified",E=e(e({},rt),{CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103});function Ft(t){for(var e in t)k(t[e])&&("{}"!==JSON.stringify(t[e])||"callback"===e)||delete t[e]}function k(t){return!(g(t)||""===t)}function Bt(t,e){return k(t.getAttribute(e))}function Rt(t,e,n){var a=t;if(a){for(;!e(a,n);)if(!(a=a.parentNode)||!a.getAttribute)return null;return a}}function Ut(t){return"A"===t.nodeName}function w(){var t={},e=!1,n=0,a=arguments.length,i=Object.prototype,r=arguments;for("[object Boolean]"===i.toString.call(r[0])&&(e=r[0],n++);n<a;n++){o=void 0;var o,s,c,l=r[n];for(o in l)c=o,(s=l)&&V.call(s,c)&&(e&&"[object Object]"===i.toString.call(l[o])?t[o]=w(!0,t[o],l[o]):t[o]=l[o])}return t}var Vt={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};function S(t,e,n,a,i,r){this._clickAnalyticsPlugin=t,this._config=e,this._contentHandler=n,this._pageTagsCallback=a,this._metaTags=i,this._traceLogger=r,this._pageTags={}}S.prototype.setBasicProperties=function(t,e){var n;k(t.name)||(t.pageName=(n=this._config,e&&e.pageName?e.pageName:n.callback&&p(n.callback.pageName)?n.callback.pageName():n.coreData&&n.coreData.pageName?n.coreData.pageName:(e=Tt())&&e.title||"")),!k(t.uri)&&vt&&(t.uri=(n=this._config,e=Ct(),n.coreData&&n.coreData.requestUri&&""!==n.coreData.requestUri?n.coreData.requestUri:e?e.protocol+"//"+(e.hostname||e.host)+(k(e.port)?":"+e.port:"")+e.pathname:null))},S.prototype.setCommonProperties=function(t,e){this.setBasicProperties(t,e),this._setPageTags(t,e),this._pageTypeMetaTag=this._getMetaData(this._metaTags,this._config.coreData,"pageType"),this._behaviorMetaTag=this._getMetaData(this._metaTags,this._config.coreData,"behavior"),k(e.pageType)&&(t.pageType=e.pageType),k(this._pageTypeMetaTag)&&!k(t.pageType)&&(t.pageType=this._pageTypeMetaTag)},S.prototype._setPageTags=function(t,e){if(this._pageTagsCallback&&(this._pageTags=w(!0,this._pageTags,this._pageTagsCallback())),k(e.pageTags)&&(this._pageTags=w(!0,this._pageTags,e.pageTags)),this._metaTags)for(var n in this._pageTags.metaTags={},this._metaTags)"behavior"!=n&&"market"!=n&&"pageType"!=n&&(this._pageTags.metaTags[n]=this._metaTags[n]);t.properties=t.properties||{},t.properties.pageTags=this._pageTags},S.prototype._getBehavior=function(t){var e;return t&&k(t.behavior)?e=t.behavior:k(this._behaviorMetaTag)&&(e=this._behaviorMetaTag),this._getValidBehavior(e)},S.prototype._getValidBehavior=function(t){return this._config.behaviorValidator(t)},S.prototype._getMetaData=function(t,e,n){return e&&e[n]?e[n]:t?t[n]:""},q(M,jt=S),M.prototype.trackPageAction=function(t,e){var n,a=this,i={name:"Microsoft.ApplicationInsights.{0}.Event",baseType:"EventData",ext:{web:{}},data:{},baseData:{}};if(this._populateEventDataIfPresent(i.baseData,"name",t.name),this._populateEventDataIfPresent(i.data,"baseTypeSource","ClickEvent"),this._populateEventDataIfPresent(i.data,"uri",t.uri),this._populateEventDataIfPresent(i.data,"pageType",t.pageType),this._populateEventDataIfPresent(i.data,"properties",t.properties),this._populateEventDataIfPresent(i.data,"actionType",t.actionType),this._populateEventDataIfPresent(i.data,"behavior",t.behavior),this._populateEventDataIfPresent(i.data,"clickCoordinates",t.clickCoordinates),this._populateEventDataIfPresent(i.data,"content",t.content),this._populateEventDataIfPresent(i.data,"targetUri",t.targetUri),this._populateEventDataIfPresent(i.data,"timeToAction",t.timeToAction),this._populateEventDataIfPresent(i.data,"refUri",t.refUri),this._populateEventDataIfPresent(i.data,"pageName",t.pageName),this._populateEventDataIfPresent(i.data,"parentId",t.parentId),e){var r=e;if(r)for(var o in r)V.call(r,o)&&(n=o,o=r[o],i.data[n]||a._populateEventDataIfPresent(i.data,n,o))}this._clickAnalyticsPlugin.core.track(i)},M.prototype.capturePageAction=function(t,e,n,a){e=k(e)?e:{};var i,r={name:""},n=k(n)?n:{},o=(this.setCommonProperties(r,e),r.behavior=this._getBehavior(e),{});a&&(r.behavior=this._config.defaultRightClickBhvr),t&&(r.targetUri=function(e){var t="";switch(e.tagName){case"A":case"AREA":t=e.href||"";break;case"IMG":t=function(){if(e){var t=Rt(e,Ut);if(1===t.length){t=t[0];if(t.href)return t.href;if(t.src)return t.src}}return""}();break;case"INPUT":var n=e.type;n&&Vt[n.toUpperCase()]&&(n=Ct()||{},t=e.form?e.form.action||n.pathname||"":n.pathname||"")}return t}(t),(o=this._contentHandler.getElementContent(t)).bhvr&&!k(e.behavior)&&(a="bhvr",(t=o)&&t[a]&&(i=t[a],delete t[a]),a=i,r.behavior=this._getValidBehavior(a)),k(o.id)||k(o.contentName)||this._traceLogger.throwInternal(u.WARNING,E.InvalidContentBlob,"Missing attributes id or contentName in click event. Click event information will still be collected!")),r.name=o.id||o.contentName||Ot,r.parentId=o.parentid||o.parentName||Ot,k(e.actionType)&&(r.actionType=e.actionType),k(e.clickCoordinateX)&&k(e.clickCoordinateY)&&(r.clickCoordinates=e.clickCoordinateX+"X"+e.clickCoordinateY),this._sanitizePageActionEventContent(o),r.content="["+JSON.stringify(w(o,e&&e.contentTags?e.contentTags:{}))+"]",r.timeToAction=this._getTimeToClick(),r.refUri=k(e.refUri)?e.refUri:this._config.coreData.referrerUri,this._isUndefinedEvent(r)||this.trackPageAction(r,n)},M.prototype._getTimeToClick=function(){var t=A("performance");if(t&&t.timing){t=t.timing.navigationStart;if(t&&0!==t)return(new Date).getTime()-t}return-1},M.prototype._populateEventDataIfPresent=function(t,e,n){k(n)&&(t[e]=n)},M.prototype._sanitizePageActionEventContent=function(t){t&&(delete t.id,delete t.parentid,delete t.parentname,this._config&&this._config.dataTags&&k(this._config.dataTags.parentDataTag)&&delete t[this._config.dataTags.parentDataTag])},M.prototype._isUndefinedEvent=function(t){return!(!this._config.dropInvalidEvents||t.name!==Ot||t.parentId!==Ot||"[{}]"!==t.content)};var jt,Ht=M;function M(){return null!==jt&&jt.apply(this,arguments)||this}var Kt={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},qt=(zt.prototype.click=function(){var e=this,t=mt(),n=Tt();t?(x(t,~navigator.appVersion.indexOf("MSIE")?"click":"mousedown",function(t){e._processClick(t)}),x(t,"keyup",function(t){e._processClick(t)})):n&&(x(n,"click",function(t){e._processClick(t)}),x(n,"keyup",function(t){e._processClick(t)}))},zt.prototype.capturePageAction=function(t,e,n,a){k(Rt(t,Bt,this._config.dataTags.customDataPrefix+this._config.dataTags.dntDataTag))||this._pageAction.capturePageAction(t,e,n,a)},zt.prototype._processClick=function(t){var e={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},n=mt();if(t=g(t)&&n?n.event:t){var a=t.srcElement||t.target,i={clickCoordinateX:t.pageX,clickCoordinateY:t.pageY},r=function(t){try{if("which"in t)return 3===t.which;if("button"in t)return 2===t.button}catch(e){}}(t);if(r)i.actionType="CR";else if(function(t){try{if("which"in t)return 1===t.which;if("button"in t)return 1===t.button}catch(e){}}(t))i.actionType="CL";else if(function(t){try{if("keyCode"in t)return 13===t.keyCode}catch(e){}}(t))i.actionType="KE";else if(function(t){try{if("keyCode"in t)return 32===t.keyCode}catch(e){}}(t))i.actionType="KS";else{if(!function(t){try{if("which"in t)return 2===t.which;if("button"in t)return 4===t.button}catch(e){}}(t))return;i.actionType="CM"}for(;a&&a.tagName;){var o=(a=a.control&&e[a.control.tagName.toUpperCase()]?a.control:a).tagName.toUpperCase();if(e[o]){"INPUT"==o&&!Kt[a.type.toUpperCase()]||this.capturePageAction(a,i,{},r);break}a=a.parentElement||a.parentNode}}},zt);function zt(t,e,n,a){this._analyticsPlugin=t,this._config=e,this._pageAction=n,this._traceLogger=a}L.prototype.getMetadata=function(){return k(this._config.dataTags.metaDataPrefix)?this._getMetaDataFromDOM(this._config.dataTags.captureAllMetaDataContent,this._config.dataTags.metaDataPrefix,!1):this._getMetaDataFromDOM(this._config.dataTags.captureAllMetaDataContent,"",!1)},L.prototype.getElementContent=function(t){if(!t)return{};var e,n,a={},i=this._config.dataTags.customDataPrefix,r=i+this._config.dataTags.aiBlobAttributeTag;if(k(this._config.dataTags.parentDataTag)&&(n=i+this._config.dataTags.parentDataTag),this._isTracked(t,i,r))a=w(a,this._populateElementContentwithDataTag(t,i,n,r));else if(e=t.getAttribute(r))try{a=JSON.parse(e)}catch(o){this._traceLogger.throwInternal(u.CRITICAL,E.CannotParseAiBlobValue,"Can not parse "+e)}else a=w(a,this._populateElementContent(t,i,n,r));return Ft(a),n?w(a,this._getParentDetails(t,a,i,r)):a},L.prototype._captureElementContentWithDataTag=function(t,e,n){for(var a,i=0;i<t.attributes.length;i++)(a=t.attributes[i]).name.indexOf(n)||(e[a.name.replace(n,"")]=a.value)},L.prototype._walkUpDomChainCaptureData=function(t,e,n,a,i){for(var r=t,o=!1,s=!1;!g(r)&&!g(r.attributes);){for(var c=r.attributes,l=0;l<c.length;l++){var u,f=c[l];f.name.indexOf(n)||(f.name.indexOf(a)||(o=!0),f.name.indexOf(i)&&(u=f.name.replace(n,""),s&&"id"===u||k(e[u])||(e[u]=f.value)))}if(o)break;s=!0,r=r.parentNode}},L.prototype._populateElementContent=function(t,e,n,a){var i={};if(!t)return i;var r=this._getHtmlIdAndContentName(t),i={id:r.id||"",contentName:r.contentName||""};return k(n)&&this._walkUpDomChainCaptureData(t,i,e,n,a),i.id||i.contentName||this._traceLogger.throwInternal(u.WARNING,E.InvalidContentBlob,"Invalid content blob. Missing required attributes (id, contentName. Content information will still be collected!"),i},L.prototype._populateElementContentwithDataTag=function(t,e,n,a){var i={};if(!t)return i;var r=this._getHtmlIdAndContentName(t);return k(n)?this._walkUpDomChainCaptureData(t,i,e,n,a):this._captureElementContentWithDataTag(t,i,e),this._config.dataTags.useDefaultContentNameOrId&&(k(i.id)||(i.id=r.id||""),i.contentName=r.contentName||""),i.id||i.contentName||this._traceLogger.throwInternal(u.WARNING,E.InvalidContentBlob,"Invalid content blob. Missing required attributes (id, contentName. Content information will still be collected!"),i},L.prototype._getMetaDataFromDOM=function(t,e,n){for(var a={},i=document.querySelectorAll("meta"),r=0;r<i.length;r++){var o=i[r];!o.name||!t&&o.name.indexOf(e)||(a[n?o.name.replace(e,""):o.name]=o.content)}return a},L.prototype._getDefaultContentName=function(t,e){if(!1===e||!t.tagName)return"";var n,a=Tt()||{};switch(t.tagName){case"A":n=a.all?t.innerText||t.innerHTML:t.text||t.innerHTML;break;case"IMG":case"AREA":n=t.alt;break;default:n=t.value||t.name||t.alt||t.innerText||t.id}return n.substring(0,200)},L.prototype._isTracked=function(t,e,n){for(var a=t.attributes,i=!1,r=0;r<a.length;r++){var o=a[r].name;if(o===n)return!1;o.indexOf(e)||(i=!0)}return i},L.prototype._getHtmlIdAndContentName=function(t){var e,n,a={};return t&&this._config.dataTags.useDefaultContentNameOrId&&(e=this._config.callback.contentName?this._config.callback.contentName(t,this._config.dataTags.useDefaultContentNameOrId):"",n=this._getDefaultContentName(t,this._config.dataTags.useDefaultContentNameOrId),a={id:t.id,contentName:e||n||t.getAttribute("alt")}),a},L.prototype._getParentDetails=function(t,e,n,a){var i=e.parentid,e=e.parentname;return i||e||!t?{}:this._populateParentInfo(t,n,a)},L.prototype._populateParentInfo=function(t,e,n){var a,i={},r=Rt(t.parentElement,this._isTracked,e);if(r){var n=r.getAttribute(n)||t[n];if(n){try{var o=JSON.parse(n)}catch(s){this._traceLogger.throwInternal(u.CRITICAL,E.CannotParseAiBlobValue,"Can not parse "+n)}o&&(a=o.id)}else a=r.getAttribute(e+"id")}return a?i.parentid=a:(n=this._getHtmlIdAndContentName(t.parentElement),i.parentid=n.id,i.parentname=n.contentName),i};var Wt=L;function L(t,e){this._config=t,this._traceLogger=e}q(O,Gt=f),O.prototype.initialize=function(t,e,n,a){if(g(e))throw Error("Error initializing");t.extensionConfig=t.extensionConfig||[],t.extensionConfig[this.identifier]=t.extensionConfig[this.identifier]||{},this._config=function(t){var e,n,a={autoCapture:!0,callback:{pageActionPageTags:null},pageTags:{},coreData:{referrerUri:document.referrer,requestUri:"",pageName:"",pageType:""},dataTags:{useDefaultContentNameOrId:!1,aiBlobAttributeTag:"ai-blob",customDataPrefix:"data-",captureAllMetaDataContent:!1,dntDataTag:"ai-dnt"},behaviorValidator:function(t){return t||""},defaultRightClickBhvr:"",dropInvalidEvents:!1},i=[];for(e in a)"object"==typeof a[e]&&i.push(e);if(t){var r,o,s=t,c=i;for(r in Ft(s),c)c.hasOwnProperty(r)&&("object"==typeof s[o=c[r]]?Ft(s[o]):delete s[o]);return k(t.dataTags)&&(t.dataTags.customDataPrefix=k((n=t).dataTags.customDataPrefix)&&!n.dataTags.customDataPrefix.indexOf("data-")?t.dataTags.customDataPrefix:"data-"),w(!0,a,t)}}(t.extensionConfig[this.identifier]),Gt.prototype.initialize.call(this,t,e,n,a),this._contentHandler=this._contentHandler||new Wt(this._config,this.diagLog());var i,t=this._contentHandler.getMetadata();this.pageAction=new Ht(this,this._config,this._contentHandler,this._config.callback.pageActionPageTags,t,this.diagLog()),this._autoCaptureHandler=this._autoCaptureHandler||new qt(this,this._config,this.pageAction,this.diagLog()),this._config.autoCapture&&this._autoCaptureHandler.click(),gt(n,function(t){"AppInsightsPropertiesPlugin"===t.identifier&&(i=t)}),i&&i.context&&i.context.internal&&i.context.internal.sdkVersion&&(i.context.internal.sdkVersion+="_ClickPlugin"+O.Version)},O.prototype.processTelemetry=function(t,e){this.processNext(t,e)},O.prototype.trackPageAction=function(t,e){try{this.pageAction.trackPageAction(t,e)}catch(n){this.diagLog().throwInternal(u.CRITICAL,E.TrackPageActionEventFailed,"trackPageAction failed, page action event will not be collected: "+((t=n)&&"[object Error]"===lt.call(t)?t.name:""),{exception:It(n)})}},O.Version="2.7.5-nightly.2202-11";var Gt,o=O;function O(){var t=null!==Gt&&Gt.apply(this,arguments)||this;return t.identifier="ClickAnalyticsPlugin",t.priority=181,t}t.BehaviorEnumValidator=function(e){return function(t){return e[t]||""}},t.BehaviorMapValidator=function(e){return function(t){return e[t]||""}},t.BehaviorValueValidator=function(t){return function(e){var n;return gt(t,function(t){if(t===e)return n=t,-1}),n||""}},t.ClickAnalyticsPlugin=o;e=t,f="__esModule",o={value:!0},t=Object.defineProperty;if(t)try{return void t(e,f,o)}catch(Yt){}typeof o.value!==undefined&&(e[f]=o.value)};"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).Microsoft=t.Microsoft||{},t.Microsoft.ApplicationInsights=t.Microsoft.ApplicationInsights||{}));
|
|
5
|
+
var t=this,e=function(t){"use strict";var F="function",a="object",i="undefined",r="prototype",B="hasOwnProperty",n=Object,R=n[r],e=n.assign,U=n.create,o=n.defineProperty,V=R[B],s=null;function j(t){return void 0===t&&(t=!0),s&&t||(typeof globalThis!==i&&globalThis&&(s=globalThis),typeof self!==i&&self&&(s=self),typeof window!==i&&window&&(s=window),typeof global!==i&&global&&(s=global)),s}function H(t){throw new TypeError(t)}(j()||{}).Symbol,(j()||{}).Reflect;var e=e||function(t){for(var e,n=1,a=arguments.length;n<a;n++)for(var i in e=arguments[n])R[B].call(e,i)&&(t[i]=e[i]);return t},K=function(t,e){return(K=n.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e[B](n)&&(t[n]=e[n])})(t,e)};function q(t,e){function n(){this.constructor=t}typeof e!==F&&null!==e&&H("Class extends value "+e+" is not a constructor or null"),K(t,e),t[r]=null===e?function(t){if(U)return U(t);if(null==t)return{};var e=typeof t;function n(){}return e!==a&&e!==F&&H("Object prototype may only be an Object:"+t),n[r]=t,new n}(e):(n[r]=e[r],new n)}var c="constructor",d="prototype",h="function",v="_dynInstFuncs",z="_isDynProxy",m="_dynClass",W="_dynInstChk",T=W,G="_dfOpts",J="_unknown_",X="__proto__",Y="useBaseInst",$="setInstFuncs",l=Object,C=l.getPrototypeOf,Q=0;function y(t,e){return t&&l[d].hasOwnProperty.call(t,e)}function Z(t){return t&&(t===l[d]||t===Array[d])}function tt(t){return Z(t)||t===Function[d]}function _(t){if(t){if(C)return C(t);t=t[X]||t[d]||(t[c]?t[c][d]:null);if(t)return t}return null}function I(t,e){var n=[],a=l.getOwnPropertyNames;if(a)n=a(t);else for(var i in t)"string"==typeof i&&y(t,i)&&n.push(i);if(n&&0<n.length)for(var r=0;r<n.length;r++)e(n[r])}function et(t,e,n){return e!==c&&typeof t[e]===h&&(n||y(t,e))}function b(t){throw new TypeError("DynamicProto: "+t)}function nt(t,e){for(var n=t.length-1;0<=n;n--)if(t[n]===e)return 1}function at(t,e){return y(t,d)?t.name||e||J:((t||{})[c]||{}).name||e||J}function it(t,a,e,n){y(t,d)||b("theClass is an invalid class definition.");var i,r,o,s,c,l,u=t[d],f=(function(t){if(C)for(var e=[],n=_(a);n&&!tt(n)&&!nt(e,n);){if(n===t)return 1;e.push(n),n=_(n)}}(u)||b("["+at(t)+"] is not in class hierarchy of ["+at(a)+"]"),null),t=(y(u,m)?f=u[m]:(f="_dynCls$"+at(t,"_")+"$"+Q,Q++,u[m]=f),it[G]),g=!!t[Y],p=(g&&n&&n[Y]!==undefined&&(g=!!n[Y]),r={},I(i=a,function(t){!r[t]&&et(i,t,!1)&&(r[t]=i[t])}),r),g=(e(a,function(t,e,n,r){function a(t,e,n){var a,i=e[n];return i[z]&&r&&!1!==(a=t[v]||{})[T]&&(i=(a[e[m]]||{})[n]||i),function(){return i.apply(t,arguments)}}for(var i={},o=(I(n,function(t){i[t]=a(e,n,t)}),_(t)),s=[];o&&!tt(o)&&!nt(s,o);)I(o,function(t){!i[t]&&et(o,t,!C)&&(i[t]=a(e,o,t))}),s.push(o),o=_(o);return i}(u,a,p,g)),!!C&&!!t[$]);o=u,e=f,s=a,c=p,t=!1!==(g=g&&n?!!n[$]:g),Z(o)||(u=s[v]=s[v]||{},l=u[e]=u[e]||{},!1!==u[T]&&(u[T]=!!t),I(s,function(t){var n,a,i;et(s,t,!1)&&s[t]!==c[t]&&(l[t]=s[t],delete s[t],y(o,t)&&(!o[t]||o[t][z])||(o[t]=(n=o,a=t,(i=function(){var t,e;return(function(t,e,n,a){var i=null;if(t&&y(n,m)){var r=t[v]||{};if((i=(r[n[m]]||{})[e])||b("Missing ["+e+"] "+h),!i[W]&&!1!==r[T]){for(var o=!y(t,e),s=_(t),c=[];o&&s&&!tt(s)&&!nt(c,s);){var l=s[e];if(l){o=l===a;break}c.push(s),s=_(s)}try{o&&(t[e]=i),i[W]=1}catch(u){r[T]=!1}}}return i}(this,a,n,i)||(typeof(e=(e=n[t=a])===i?_(n)[t]:e)!==h&&b("["+t+"] is not a "+h),e)).apply(this,arguments)})[z]=1,i)))}))}it[G]={setInstFuncs:!0,useBaseInst:!0};var u={CRITICAL:1,1:"CRITICAL",WARNING:2,2:"WARNING"},rt={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105},ot="attachEvent",st="addEventListener",f="toString",ct=o,o=Array.isArray,lt=R[f];function ut(t){return t===undefined||typeof t===i}function g(t){return null===t||ut(t)}function p(t){return!(!t||typeof t!==F)}function x(t,e,n,a){if(void 0===a&&(a=!1),!g(t))try{g(t[st])?g(t[ot])||t[ot]("on"+e,n):t[st](e,n,a)}catch(i){}}V[f].call(n);var ft=o||function(t){return!(!t||"[object Array]"!==lt.call(t))};function gt(t,e,n){var a=t.length;try{for(var i=0;i<a&&!(i in t&&-1===e.call(n||t,t[i],i,t));i++);}catch(r){}}function pt(){var t=Date;return t.now?t.now():(new t).getTime()}var dt="window",ht="JSON";function A(t){var e=j();return e&&e[t]?e[t]:t===dt&&vt()?window:null}function vt(){return!(typeof window!==a||!window)}function mt(){return vt()?window:A(dt)}function Tt(){return typeof document===a&&document?document:A("document")}function Ct(){return typeof location===a&&location?location:A("location")}function yt(){return typeof JSON===a&&JSON||null!==A(ht)}function _t(){return yt()?JSON||A(ht):null}function It(t){var e=Object[r].toString.call(t),n="";return"[object Error]"===e?n="{ stack: '"+t.stack+"', message: '"+t.message+"', name: '"+t.name+"'":yt()&&(n=_t().stringify(t)),e+n}var P=null;function bt(t){return t?'"'+t.replace(/\"/g,"")+'"':""}function xt(t,e){var n,a=typeof console!==i?console:A("console");a&&(n="log",p(a[n=a[t]?t:n])&&a[n](e))}Pt.dataType="MessageData";var At=Pt;function Pt(t,e,n,a){void 0===n&&(n=!1),this.messageId=t,this.message=(n?"AI: ":"AI (Internal): ")+t;n="",yt()&&(n=_t().stringify(a)),t=(e?" message:"+bt(e):"")+(a?" props:"+bt(n):"");this.message+=t}var Nt=function Jt(i){this.identifier="DiagnosticLogger",this.queue=[];var s=0,c={};it(Jt,this,function(r){function t(t,e){t=i[t];return g(t)?e:t}function o(t,e){var n,a=(n=(n=P)||!0===i.disableDbgExt?n:P||(a=A("Microsoft"),P=a?a.ApplicationInsights:P))?n.ChromeDbgExt:null;a&&a.diagLog&&a.diagLog(t,e)}g(i)&&(i={}),r.consoleLoggingLevel=function(){return t("loggingLevelConsole",0)},r.telemetryLoggingLevel=function(){return t("loggingLevelTelemetry",1)},r.maxInternalMessageLimit=function(){return t("maxMessageLimit",25)},r.enableDebugExceptions=function(){return t("enableDebugExceptions",!1)},r.throwInternal=function(t,e,n,a,i){e=new At(e,n,i=void 0!==i&&i,a);if(r.enableDebugExceptions())throw e;n=t===u.CRITICAL?"errorToConsole":"warnToConsole";ut(e.message)?o("throw"+(t===u.CRITICAL?"Critical":"Warning"),e):(a=r.consoleLoggingLevel(),i?(i=+e.messageId,!c[i]&&t<=a&&(r[n](e.message),c[i]=!0)):t<=a&&r[n](e.message),r.logInternalMessage(t,e))},r.warnToConsole=function(t){xt("warn",t),o("warning",t)},r.errorToConsole=function(t){xt("error",t),o("error",t)},r.resetInternalMessageCount=function(){s=0,c={}},r.logInternalMessage=function(t,e){var n,a;s>=r.maxInternalMessageLimit()||(a=!0,n="AITR_"+e.messageId,c[n]?a=!1:c[n]=!0,a&&(t<=r.telemetryLoggingLevel()&&(r.queue.push(e),s++,o(t===u.CRITICAL?"error":"warn",e)),s===r.maxInternalMessageLimit()&&(a=new At(rt.MessageLimitPerPVExceeded,n="Internal events throttle limit per PageView reached for this app.",!1),r.queue.push(a),t===u.CRITICAL?r.errorToConsole(n):r.warnToConsole(n))))}})},Dt=(N.ParentContextKey="parent",N.ChildrenContextKey="childEvts",N);function N(t,i,e){var a,r=this,o=!1;r.start=pt(),r.name=t,r.isAsync=e,r.isChildEvt=function(){return!1},p(i)&&(o=function(t){if(ct)try{var e={enumerable:!0,configurable:!0,get:function(){return!a&&p(i)&&(a=i(),i=null),a}};return ct(t,"payload",e),!0}catch(n){}return!1}(r)),r.getCtx=function(t){return t?(t===N.ParentContextKey||t===N.ChildrenContextKey?r:r.ctx||{})[t]:null},r.setCtx=function(t,e){t&&(t===N.ParentContextKey?(r[t]||(r.isChildEvt=function(){return!0}),r[t]=e):t===N.ChildrenContextKey?r[t]=e:(r.ctx=r.ctx||{})[t]=e)},r.complete=function(){var t=0,e=r.getCtx(N.ChildrenContextKey);if(ft(e))for(var n=0;n<e.length;n++){var a=e[n];a&&(t+=a.time)}r.time=pt()-r.start,r.exTime=r.time-t,r.complete=function(){},!o&&p(i)&&(r.payload=i())}}var Et="CoreUtils.doPerf";function kt(t,e,n,a,i){if(t)if(t=p(t.getPerfMgr)?t.getPerfMgr():t){var r,o=void 0,s=t.getCtx(Et);try{if(o=t.create(e(),a,i))return s&&o.setCtx&&(o.setCtx(Dt.ParentContextKey,s),s.getCtx&&s.setCtx&&((r=s.getCtx(Dt.ChildrenContextKey))||(r=[],s.setCtx(Dt.ChildrenContextKey,r)),r.push(o))),t.setCtx(Et,o),n(o)}catch(c){o&&o.setCtx&&o.setCtx("exception",c)}finally{o&&t.fire(o),t.setCtx(Et,s)}}n()}var wt=function(i,e){var r=this,o=null,s=p(i.processTelemetry),c=p(i.setNextPlugin);r._hasRun=!1,r.getPlugin=function(){return i},r.getNext=function(){return o},r.setNext=function(t){o=t},r.processTelemetry=function(n,a){a=a||e;var t=i?i.identifier:"TelemetryPluginChain";kt(a?a.core():null,function(){return t+":processTelemetry"},function(){if(i&&s){r._hasRun=!0;try{a.setNext(o),c&&i.setNextPlugin(o),o&&(o._hasRun=!1),i.processTelemetry(n,a)}catch(e){var t=o&&o._hasRun;o&&t||a.diagLog().throwInternal(u.CRITICAL,rt.PluginException,"Plugin ["+i.identifier+"] failed during processTelemetry - "+It(e)),o&&!t&&o.processTelemetry(n,a)}}else o&&(r._hasRun=!0,o.processTelemetry(n,a))},function(){return{item:n}},!n.sync)}};function St(t,e){var n=[];if(t&&0<t.length)for(var a=null,i=0;i<t.length;i++){var r=t[i];r&&p(r.processTelemetry)&&(r=new wt(r,e),n.push(r),a&&a.setNext(r),a=r)}return 0<n.length?n[0]:null}var Mt=function Xt(t,i,n,e){var a,r,o,s,c=this,l=null;null!==e&&(t&&p(t.getPlugin)?l=function(t,e,n){var a=[],i=!n;if(t)for(;t;){var r=t.getPlugin();!i&&r!==n||(i=!0,a.push(r)),t=t.getNext()}return i||a.push(n),St(a,e)}(t,c,e||t.getPlugin()):e?(a=c,o=t,s=!1,(r=e)&&t&&(o=[],gt(t,function(t){!s&&t!==r||(s=!0,o.push(t))})),r&&!s&&(o=o||[]).push(r),l=St(o,a)):ut(e)&&(l=St(t,c))),c.core=function(){return n},c.diagLog=function(){return(n||{}).logger||new Nt(i)},c.getCfg=function(){return i},c.getExtCfg=function(t,e){var n,a;return void 0===e&&(e={}),(n=i&&(a=i.extensionConfig)&&t?a[t]:n)||e},c.getConfig=function(t,e,n){void 0===n&&(n=!1);var a,t=c.getExtCfg(t,null);return t&&!g(t[e])?a=t[e]:i&&!g(i[e])&&(a=i[e]),g(a)?n:a},c.hasNext=function(){return null!=l},c.getNext=function(){return l},c.setNext=function(t){l=t},c.processNext=function(t){var e=l;e&&(l=e.getNext(),e.processTelemetry(t,c))},c.createNew=function(t,e){return new Xt((t=void 0===t?null:t)||l,i,n,e)}},D="getPlugin",f=(Lt.prototype.initialize=function(t,e,n,a){this._baseTelInit(t,e,n,a)},Lt);function Lt(){var s=this,c=!1,l=null,u=null;s.core=null,s.diagLog=function(t){return s._getTelCtx(t).diagLog()},s.isInitialized=function(){return c},s.setInitialized=function(t){c=t},s.setNextPlugin=function(t){u=t},s.processNext=function(t,e){e?e.processNext(t):u&&p(u.processTelemetry)&&u.processTelemetry(t,null)},s._getTelCtx=function(t){var e,t=t=void 0===t?null:t;return t||(e=l||new Mt(null,{},s.core),t=u&&u[D]?e.createNew(null,u[D]):e.createNew(null,u)),t},s._baseTelInit=function(t,e,n,a){t&&(o="extensionConfig",r=i=[],t&&(r=t[o])!==i&&g(r)&&(t[o]=r=i)),!a&&e&&(a=e.getProcessTelContext().getNext());var i,r,o=u;u&&u[D]&&(o=u[D]()),s.core=e,l=new Mt(a,t,e,o),c=!0}}var Ot="not_specified",E=e(e({},rt),{CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103});function Ft(t){for(var e in t)k(t[e])&&("{}"!==JSON.stringify(t[e])||"callback"===e)||delete t[e]}function k(t){return!(g(t)||""===t)}function Bt(t,e){return k(t.getAttribute(e))}function Rt(t,e,n){var a=t;if(a){for(;!e(a,n);)if(!(a=a.parentNode)||!a.getAttribute)return null;return a}}function Ut(t){return"A"===t.nodeName}function w(){var t={},e=!1,n=0,a=arguments.length,i=Object.prototype,r=arguments;for("[object Boolean]"===i.toString.call(r[0])&&(e=r[0],n++);n<a;n++){o=void 0;var o,s,c,l=r[n];for(o in l)c=o,(s=l)&&V.call(s,c)&&(e&&"[object Object]"===i.toString.call(l[o])?t[o]=w(!0,t[o],l[o]):t[o]=l[o])}return t}var Vt={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};function S(t,e,n,a,i,r){this._clickAnalyticsPlugin=t,this._config=e,this._contentHandler=n,this._pageTagsCallback=a,this._metaTags=i,this._traceLogger=r,this._pageTags={}}S.prototype.setBasicProperties=function(t,e){var n;k(t.name)||(t.pageName=(n=this._config,e&&e.pageName?e.pageName:n.callback&&p(n.callback.pageName)?n.callback.pageName():n.coreData&&n.coreData.pageName?n.coreData.pageName:(e=Tt())&&e.title||"")),!k(t.uri)&&vt&&(t.uri=(n=this._config,e=Ct(),n.coreData&&n.coreData.requestUri&&""!==n.coreData.requestUri?n.coreData.requestUri:e?e.protocol+"//"+(e.hostname||e.host)+(k(e.port)?":"+e.port:"")+e.pathname:null))},S.prototype.setCommonProperties=function(t,e){this.setBasicProperties(t,e),this._setPageTags(t,e),this._pageTypeMetaTag=this._getMetaData(this._metaTags,this._config.coreData,"pageType"),this._behaviorMetaTag=this._getMetaData(this._metaTags,this._config.coreData,"behavior"),k(e.pageType)&&(t.pageType=e.pageType),k(this._pageTypeMetaTag)&&!k(t.pageType)&&(t.pageType=this._pageTypeMetaTag)},S.prototype._setPageTags=function(t,e){if(this._pageTagsCallback&&(this._pageTags=w(!0,this._pageTags,this._pageTagsCallback())),k(e.pageTags)&&(this._pageTags=w(!0,this._pageTags,e.pageTags)),this._metaTags)for(var n in this._pageTags.metaTags={},this._metaTags)"behavior"!=n&&"market"!=n&&"pageType"!=n&&(this._pageTags.metaTags[n]=this._metaTags[n]);t.properties=t.properties||{},t.properties.pageTags=this._pageTags},S.prototype._getBehavior=function(t){var e;return t&&k(t.behavior)?e=t.behavior:k(this._behaviorMetaTag)&&(e=this._behaviorMetaTag),this._getValidBehavior(e)},S.prototype._getValidBehavior=function(t){return this._config.behaviorValidator(t)},S.prototype._getMetaData=function(t,e,n){return e&&e[n]?e[n]:t?t[n]:""},q(M,jt=S),M.prototype.trackPageAction=function(t,e){var n,a=this,i={name:"Microsoft.ApplicationInsights.{0}.Event",baseType:"EventData",ext:{web:{}},data:{},baseData:{}};if(this._populateEventDataIfPresent(i.baseData,"name",t.name),this._populateEventDataIfPresent(i.data,"baseTypeSource","ClickEvent"),this._populateEventDataIfPresent(i.data,"uri",t.uri),this._populateEventDataIfPresent(i.data,"pageType",t.pageType),this._populateEventDataIfPresent(i.data,"properties",t.properties),this._populateEventDataIfPresent(i.data,"actionType",t.actionType),this._populateEventDataIfPresent(i.data,"behavior",t.behavior),this._populateEventDataIfPresent(i.data,"clickCoordinates",t.clickCoordinates),this._populateEventDataIfPresent(i.data,"content",t.content),this._populateEventDataIfPresent(i.data,"targetUri",t.targetUri),this._populateEventDataIfPresent(i.data,"timeToAction",t.timeToAction),this._populateEventDataIfPresent(i.data,"refUri",t.refUri),this._populateEventDataIfPresent(i.data,"pageName",t.pageName),this._populateEventDataIfPresent(i.data,"parentId",t.parentId),e){var r=e;if(r)for(var o in r)V.call(r,o)&&(n=o,o=r[o],i.data[n]||a._populateEventDataIfPresent(i.data,n,o))}this._clickAnalyticsPlugin.core.track(i)},M.prototype.capturePageAction=function(t,e,n,a){e=k(e)?e:{};var i,r={name:""},n=k(n)?n:{},o=(this.setCommonProperties(r,e),r.behavior=this._getBehavior(e),{});a&&(r.behavior=this._config.defaultRightClickBhvr),t&&(r.targetUri=function(e){var t="";switch(e.tagName){case"A":case"AREA":t=e.href||"";break;case"IMG":t=function(){if(e){var t=Rt(e,Ut);if(1===t.length){t=t[0];if(t.href)return t.href;if(t.src)return t.src}}return""}();break;case"INPUT":var n=e.type;n&&Vt[n.toUpperCase()]&&(n=Ct()||{},t=e.form?e.form.action||n.pathname||"":n.pathname||"")}return t}(t),(o=this._contentHandler.getElementContent(t)).bhvr&&!k(e.behavior)&&(a="bhvr",(t=o)&&t[a]&&(i=t[a],delete t[a]),a=i,r.behavior=this._getValidBehavior(a)),k(o.id)||k(o.contentName)||this._traceLogger.throwInternal(u.WARNING,E.InvalidContentBlob,"Missing attributes id or contentName in click event. Click event information will still be collected!")),r.name=o.id||o.contentName||Ot,r.parentId=o.parentid||o.parentName||Ot,k(e.actionType)&&(r.actionType=e.actionType),k(e.clickCoordinateX)&&k(e.clickCoordinateY)&&(r.clickCoordinates=e.clickCoordinateX+"X"+e.clickCoordinateY),this._sanitizePageActionEventContent(o),r.content="["+JSON.stringify(w(o,e&&e.contentTags?e.contentTags:{}))+"]",r.timeToAction=this._getTimeToClick(),r.refUri=k(e.refUri)?e.refUri:this._config.coreData.referrerUri,this._isUndefinedEvent(r)||this.trackPageAction(r,n)},M.prototype._getTimeToClick=function(){var t=A("performance");if(t&&t.timing){t=t.timing.navigationStart;if(t&&0!==t)return(new Date).getTime()-t}return-1},M.prototype._populateEventDataIfPresent=function(t,e,n){k(n)&&(t[e]=n)},M.prototype._sanitizePageActionEventContent=function(t){t&&(delete t.id,delete t.parentid,delete t.parentname,this._config&&this._config.dataTags&&k(this._config.dataTags.parentDataTag)&&delete t[this._config.dataTags.parentDataTag])},M.prototype._isUndefinedEvent=function(t){return!(!this._config.dropInvalidEvents||t.name!==Ot||t.parentId!==Ot||"[{}]"!==t.content)};var jt,Ht=M;function M(){return null!==jt&&jt.apply(this,arguments)||this}var Kt={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},qt=(zt.prototype.click=function(){var e=this,t=mt(),n=Tt();t?(x(t,~navigator.appVersion.indexOf("MSIE")?"click":"mousedown",function(t){e._processClick(t)}),x(t,"keyup",function(t){e._processClick(t)})):n&&(x(n,"click",function(t){e._processClick(t)}),x(n,"keyup",function(t){e._processClick(t)}))},zt.prototype.capturePageAction=function(t,e,n,a){k(Rt(t,Bt,this._config.dataTags.customDataPrefix+this._config.dataTags.dntDataTag))||this._pageAction.capturePageAction(t,e,n,a)},zt.prototype._processClick=function(t){var e={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},n=mt();if(t=g(t)&&n?n.event:t){var a=t.srcElement||t.target,i={clickCoordinateX:t.pageX,clickCoordinateY:t.pageY},r=function(t){try{if("which"in t)return 3===t.which;if("button"in t)return 2===t.button}catch(e){}}(t);if(r)i.actionType="CR";else if(function(t){try{if("which"in t)return 1===t.which;if("button"in t)return 1===t.button}catch(e){}}(t))i.actionType="CL";else if(function(t){try{if("keyCode"in t)return 13===t.keyCode}catch(e){}}(t))i.actionType="KE";else if(function(t){try{if("keyCode"in t)return 32===t.keyCode}catch(e){}}(t))i.actionType="KS";else{if(!function(t){try{if("which"in t)return 2===t.which;if("button"in t)return 4===t.button}catch(e){}}(t))return;i.actionType="CM"}for(;a&&a.tagName;){var o=(a=a.control&&e[a.control.tagName.toUpperCase()]?a.control:a).tagName.toUpperCase();if(e[o]){"INPUT"==o&&!Kt[a.type.toUpperCase()]||this.capturePageAction(a,i,{},r);break}a=a.parentElement||a.parentNode}}},zt);function zt(t,e,n,a){this._analyticsPlugin=t,this._config=e,this._pageAction=n,this._traceLogger=a}L.prototype.getMetadata=function(){return k(this._config.dataTags.metaDataPrefix)?this._getMetaDataFromDOM(this._config.dataTags.captureAllMetaDataContent,this._config.dataTags.metaDataPrefix,!1):this._getMetaDataFromDOM(this._config.dataTags.captureAllMetaDataContent,"",!1)},L.prototype.getElementContent=function(t){if(!t)return{};var e,n,a={},i=this._config.dataTags.customDataPrefix,r=i+this._config.dataTags.aiBlobAttributeTag;if(k(this._config.dataTags.parentDataTag)&&(n=i+this._config.dataTags.parentDataTag),this._isTracked(t,i,r))a=w(a,this._populateElementContentwithDataTag(t,i,n,r));else if(e=t.getAttribute(r))try{a=JSON.parse(e)}catch(o){this._traceLogger.throwInternal(u.CRITICAL,E.CannotParseAiBlobValue,"Can not parse "+e)}else a=w(a,this._populateElementContent(t,i,n,r));return Ft(a),n?w(a,this._getParentDetails(t,a,i,r)):a},L.prototype._captureElementContentWithDataTag=function(t,e,n){for(var a,i=0;i<t.attributes.length;i++)(a=t.attributes[i]).name.indexOf(n)||(e[a.name.replace(n,"")]=a.value)},L.prototype._walkUpDomChainCaptureData=function(t,e,n,a,i){for(var r=t,o=!1,s=!1;!g(r)&&!g(r.attributes);){for(var c=r.attributes,l=0;l<c.length;l++){var u,f=c[l];f.name.indexOf(n)||(f.name.indexOf(a)||(o=!0),f.name.indexOf(i)&&(u=f.name.replace(n,""),s&&"id"===u||k(e[u])||(e[u]=f.value)))}if(o)break;s=!0,r=r.parentNode}},L.prototype._populateElementContent=function(t,e,n,a){var i={};if(!t)return i;var r=this._getHtmlIdAndContentName(t),i={id:r.id||"",contentName:r.contentName||""};return k(n)&&this._walkUpDomChainCaptureData(t,i,e,n,a),i.id||i.contentName||this._traceLogger.throwInternal(u.WARNING,E.InvalidContentBlob,"Invalid content blob. Missing required attributes (id, contentName. Content information will still be collected!"),i},L.prototype._populateElementContentwithDataTag=function(t,e,n,a){var i={};if(!t)return i;var r=this._getHtmlIdAndContentName(t);return k(n)?this._walkUpDomChainCaptureData(t,i,e,n,a):this._captureElementContentWithDataTag(t,i,e),this._config.dataTags.useDefaultContentNameOrId&&(k(i.id)||(i.id=r.id||""),i.contentName=r.contentName||""),i.id||i.contentName||this._traceLogger.throwInternal(u.WARNING,E.InvalidContentBlob,"Invalid content blob. Missing required attributes (id, contentName. Content information will still be collected!"),i},L.prototype._getMetaDataFromDOM=function(t,e,n){for(var a={},i=document.querySelectorAll("meta"),r=0;r<i.length;r++){var o=i[r];!o.name||!t&&o.name.indexOf(e)||(a[n?o.name.replace(e,""):o.name]=o.content)}return a},L.prototype._getDefaultContentName=function(t,e){if(!1===e||!t.tagName)return"";var n,a=Tt()||{};switch(t.tagName){case"A":n=a.all?t.innerText||t.innerHTML:t.text||t.innerHTML;break;case"IMG":case"AREA":n=t.alt;break;default:n=t.value||t.name||t.alt||t.innerText||t.id}return n.substring(0,200)},L.prototype._isTracked=function(t,e,n){for(var a=t.attributes,i=!1,r=0;r<a.length;r++){var o=a[r].name;if(o===n)return!1;o.indexOf(e)||(i=!0)}return i},L.prototype._getHtmlIdAndContentName=function(t){var e,n,a={};return t&&this._config.dataTags.useDefaultContentNameOrId&&(e=this._config.callback.contentName?this._config.callback.contentName(t,this._config.dataTags.useDefaultContentNameOrId):"",n=this._getDefaultContentName(t,this._config.dataTags.useDefaultContentNameOrId),a={id:t.id,contentName:e||n||t.getAttribute("alt")}),a},L.prototype._getParentDetails=function(t,e,n,a){var i=e.parentid,e=e.parentname;return i||e||!t?{}:this._populateParentInfo(t,n,a)},L.prototype._populateParentInfo=function(t,e,n){var a,i={},r=Rt(t.parentElement,this._isTracked,e);if(r){var n=r.getAttribute(n)||t[n];if(n){try{var o=JSON.parse(n)}catch(s){this._traceLogger.throwInternal(u.CRITICAL,E.CannotParseAiBlobValue,"Can not parse "+n)}o&&(a=o.id)}else a=r.getAttribute(e+"id")}return a?i.parentid=a:(n=this._getHtmlIdAndContentName(t.parentElement),i.parentid=n.id,i.parentname=n.contentName),i};var Wt=L;function L(t,e){this._config=t,this._traceLogger=e}q(O,Gt=f),O.prototype.initialize=function(t,e,n,a){if(g(e))throw Error("Error initializing");t.extensionConfig=t.extensionConfig||[],t.extensionConfig[this.identifier]=t.extensionConfig[this.identifier]||{},this._config=function(t){var e,n,a={autoCapture:!0,callback:{pageActionPageTags:null},pageTags:{},coreData:{referrerUri:document.referrer,requestUri:"",pageName:"",pageType:""},dataTags:{useDefaultContentNameOrId:!1,aiBlobAttributeTag:"ai-blob",customDataPrefix:"data-",captureAllMetaDataContent:!1,dntDataTag:"ai-dnt"},behaviorValidator:function(t){return t||""},defaultRightClickBhvr:"",dropInvalidEvents:!1},i=[];for(e in a)"object"==typeof a[e]&&i.push(e);if(t){var r,o,s=t,c=i;for(r in Ft(s),c)c.hasOwnProperty(r)&&("object"==typeof s[o=c[r]]?Ft(s[o]):delete s[o]);return k(t.dataTags)&&(t.dataTags.customDataPrefix=k((n=t).dataTags.customDataPrefix)&&!n.dataTags.customDataPrefix.indexOf("data-")?t.dataTags.customDataPrefix:"data-"),w(!0,a,t)}}(t.extensionConfig[this.identifier]),Gt.prototype.initialize.call(this,t,e,n,a),this._contentHandler=this._contentHandler||new Wt(this._config,this.diagLog());var i,t=this._contentHandler.getMetadata();this.pageAction=new Ht(this,this._config,this._contentHandler,this._config.callback.pageActionPageTags,t,this.diagLog()),this._autoCaptureHandler=this._autoCaptureHandler||new qt(this,this._config,this.pageAction,this.diagLog()),this._config.autoCapture&&this._autoCaptureHandler.click(),gt(n,function(t){"AppInsightsPropertiesPlugin"===t.identifier&&(i=t)}),i&&i.context&&i.context.internal&&i.context.internal.sdkVersion&&(i.context.internal.sdkVersion+="_ClickPlugin"+O.Version)},O.prototype.processTelemetry=function(t,e){this.processNext(t,e)},O.prototype.trackPageAction=function(t,e){try{this.pageAction.trackPageAction(t,e)}catch(n){this.diagLog().throwInternal(u.CRITICAL,E.TrackPageActionEventFailed,"trackPageAction failed, page action event will not be collected: "+((t=n)&&"[object Error]"===lt.call(t)?t.name:""),{exception:It(n)})}},O.Version="2.7.5-nightly.2203-01";var Gt,o=O;function O(){var t=null!==Gt&&Gt.apply(this,arguments)||this;return t.identifier="ClickAnalyticsPlugin",t.priority=181,t}t.BehaviorEnumValidator=function(e){return function(t){return e[t]||""}},t.BehaviorMapValidator=function(e){return function(t){return e[t]||""}},t.BehaviorValueValidator=function(t){return function(e){var n;return gt(t,function(t){if(t===e)return n=t,-1}),n||""}},t.ClickAnalyticsPlugin=o;e=t,f="__esModule",o={value:!0},t=Object.defineProperty;if(t)try{return void t(e,f,o)}catch(Yt){}typeof o.value!==undefined&&(e[f]=o.value)};"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).Microsoft=t.Microsoft||{},t.Microsoft.ApplicationInsights=t.Microsoft.ApplicationInsights||{}));
|
|
6
6
|
//# sourceMappingURL=applicationinsights-clickanalytics-js.min.js.map
|