1 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8ad51fdc-a87e-53c0-971c-90ee0fc38318")}catch(e){}}(); 3import{l as P}from"./logger-B2euJylT.js";var C=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.wnd,i=n===void 0?window:n;(function(a,d,_,y,h,w,c,E){var q=(function(s){return s in a?(a.console&&a.console.log&&a.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].'),!1):!0})(_);if(!q)return;function I(p){var s=[],u;function g(){u&&(s.forEach(function(r){var o;try{o=r[u[0]]&&r[u[0]](u[1])}catch(l){r[3]&&r[3](l);return}o&&o.then?o.then(r[2],r[3]):r[2]&&r[2](o)}),s.length=0)}function f(r){return function(o){u||(u=[r,o],g())}}p(f(0),f(1));function v(r,o){return I(function(l,S){s.push([r,o,l,S]),g()})}return{then:v}}c=a[_]=(function(){var s=function(f,v,r,o){o=o||2;function l(z,A){u(f,v,r,z,A,o)}var S=/Async$/;if(S.test(f))return f=f.replace(S,""),typeof Promise=="function"?new Promise(l):I(l);var V;return u(f,v,r,V,V,o)};function u(g,f,v,r,o,l){return s._api?s._api(g,f,v,r,o,l):(s.q&&s.q.push([g,f,v,r,o,l]),null)}return s.q=[],s})(),E=(function(){return function(s){function u(v){typeof v[4]=="function"&&v[4](new Error(s))}var g=c.q;if(g){for(var f=0;f<g.length;f++)u(g[f]);g.length=0,g.push=u}}})(),(function(){w=d.createElement(y),w.async=!0,w.crossOrigin="anonymous",w.src="https://"+h,w.onerror=function(){E("Error loading "+h)};var s=d.getElementsByTagName(y)[0];s.parentNode.insertBefore(w,s)})(),(function(){function s(){}function u(r,o,l){c(r,o,l,1)}function g(r,o,l){u("setProperties",{type:r,properties:o},l)}function f(r,o){g("user",r,o)}function v(r,o,l){f({uid:r},l),o&&f(o,l)}c.identify=v,c.setUserVars=f,c.identifyAccount=s,c.clearUserCookie=s,c.setVars=g,c.event=function(r,o,l){u("trackEvent",{name:r,properties:o},l)},c.anonymize=function(){v(!1)},c.shutdown=function(){u("shutdown")},c.restart=function(){u("restart")},c.log=function(r,o){u("log",{level:r,msg:o})},c.consent=function(r){u("setIdentity",{consent:!arguments.length||r})}})(),(function(){var s="fetch",u="XMLHttpRequest";c._w={},c._w[u]=a[u],c._w[s]=a[s],a[s]&&(a[s]=function(){return c._w[s].apply(this,arguments)})})(),c._v="2.0.0"})(i,i.document,i._fs_namespace,"script",i._fs_script)},M=function(t){return t==="window"?"document":"".concat(t,".document")},T=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.shouldInsertScript,i=n===void 0?!0:n,a=t.globalVar,d=a===void 0?"window":a,_=t.apiVersion,y=_===void 0?"1.3.0":_;return`(function(m,n,e,t,l,o,g,y){ 4 if (e in m) {if(m.console && m.console.log) { m.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].');} return;} 5 g=m[e]=function(a,b,s){g.q?g.q.push([a,b,s]):g._api(a,b,s);};g.q=[];`.concat(i?` 6 o=n.createElement(t);o.async=1;o.crossOrigin='anonymous';o.src='https://'+_fs_script; 7 y=n.getElementsByTagName(t)[0];y.parentNode.insertBefore(o,y);`:"",` 8 g.identify=function(i,v,s){g(l,{uid:i},s);if(v)g(l,v,s)};g.setUserVars=function(v,s){g(l,v,s)};g.event=function(i,v,s){g('event',{n:i,p:v},s)}; 9 g.anonymize=function(){g.identify(!!0)}; 10 g.shutdown=function(){g("rec",!1)};g.restart=function(){g("rec",!0)}; 11 g.log = function(a,b){g("log",[a,b])}; 12 g.consent=function(a){g("consent",!arguments.length||a)}; 13 g.identifyAccount=function(i,v){o='account';v=v||{};v.acctId=i;g(o,v)}; 14 g.clearUserCookie=function(){}; 15 g.setVars=function(n, p){g('setVars',[n,p]);}; 16 g._w={};y='XMLHttpRequest';g._w[y]=m[y];y='fetch';g._w[y]=m[y]; 17 if(m[y])m[y]=function(){return g._w[y].apply(this,arguments)}; 18 g._v="`).concat(y,`"; 19})(`).concat(d,",").concat(M(d),",").concat(d,"['_fs_namespace'],'script','user');")},U=function(t){var n=t.orgId,i=t.namespace,a=i===void 0?"FS":i,d=t.host,_=d===void 0?"fullstory.com":d,y=t.script,h=y===void 0?"edge.fullstory.com/s/fs.js":y;if(!n)throw new Error("FullStory orgId is a required parameter");window._fs_host=_,window._fs_script=h,window._fs_org=n,window._fs_namespace=a,C()};T();var b=function(){return b=Object.assign||function(t){for(var n,i=1,a=arguments.length;i<a;i++){n=arguments[i];for(var d in n)Object.prototype.hasOwnProperty.call(n,d)&&(t[d]=n[d])}return t},b.apply(this,arguments)},F=function(){if(window._fs_namespace)return window[window._fs_namespace]},R=function(){var e=F();if(!e)throw Error("FullStory is not loaded, please ensure the init function is invoked before calling FullStory API functions");return e},D=function(e,t){var n=b({},e);if(F()){console.warn("The FullStory snippet has already been defined elsewhere (likely in the <head> element)");return}n.recordCrossDomainIFrames&&(window._fs_run_in_iframe=!0),n.appHost&&(window._fs_app_host=n.appHost),n.assetMapId&&(window._fs_asset_map_id=n.assetMapId),n.startCaptureManually&&(window._fs_capture_on_startup=!1),n.recordOnlyThisIFrame&&(window._fs_is_outer_script=!0),n.cookieDomain&&(window._fs_cookie_domain=n.cookieDomain),n.debug===!0&&(n.script?console.warn("Ignoring `debug = true` because `script` is set"):n.script="edge.fullstory.com/s/fs-debug.js"),U(n);var i=F();if(!i){console.warn("Failed to initialize FS snippet");return}if(t&&i("observe",{type:"start",callback:t}),n.devMode===!0){var a="FullStory was initialized in devMode and will stop recording";i("trackEvent",{name:"FullStory Dev Mode",properties:{message:a}}),i("shutdown"),window._fs_dev_mode=!0,console.warn(a)}},O=function(e){return function(t,n){if(window._fs_initialized){console.warn(e);return}D(t,n),window._fs_initialized=!0}},X=O("FullStory init has already been called once, additional invocations are ignored"),k=function(){return!!window._fs_initialized},$=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=R();return e.every(function(i){return n[i]})},m=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(window._fs_dev_mode){var i="FullStory is in dev mode and is not capturing: ".concat(e," method not executed");return console.warn(i),i}var a=F();return $(e)&&a?a[e].apply(a,t):(console.warn("FS.".concat(e," not ready")),null)}},x=function(){var e=function(t,n,i){var a=R();if(window._fs_dev_mode){var d="FullStory is in dev mode and is not capturing: ".concat(t," not executed");console.warn(d);return}return a(t,n,i)};return e.anonymize=m("anonymize"),e.consent=m("consent"),e.disableConsole=m("disableConsole"),e.enableConsole=m("enableConsole"),e.event=m("event"),e.getCurrentSessionURL=m("getCurrentSessionURL"),e.identify=m("identify"),e.log=m("log"),e.restart=m("restart"),e.setUserVars=m("setUserVars"),e.setVars=m("setVars"),e.shutdown=m("shutdown"),e},L=x();const H=5,N=1e3;function j(e,t){try{const n=t?{...t}:{};L("trackEvent",{name:e,properties:{...n}})}catch(n){P.log("Error calling Fullstory event",n)}}async function G(e,t){let n=0;for(;!k()&&n<H;)n++,await new Promise(i=>setTimeout(i,N));k()?j(e,t):P.warn(`FullStory failed to initialize after ${n} attempts. Event '${e}' dropped.`)}export{L as F,X as a,G as f,k as i}; 20//# sourceMappingURL=fullstory-event-DY6iD3-u.js.map 21 22//# debugId=8ad51fdc-a87e-53c0-971c-90ee0fc38318
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.