diff --git a/CHANGELOG.md b/CHANGELOG.md index 86d1712..39916df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ +## [0.3.9](https://github.com/bloomscorp/bloomsight.js/compare/v0.3.8...v0.3.9) (2024-05-08) + + +### Bug Fixes + +* update load to DOMContentLoaded event for page view ([178fe3a](https://github.com/bloomscorp/bloomsight.js/commit/178fe3ab1d8d32530b85a02621a6c66c306c0c66)) + ## [0.3.8](https://github.com/bloomscorp/bloomsight.js/compare/v0.3.7...v0.3.8) (2024-05-03) diff --git a/package-lock.json b/package-lock.json index 79eb87f..54abbdf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@bloomscorp/bloomsight.js", - "version": "0.3.8", + "version": "0.3.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@bloomscorp/bloomsight.js", - "version": "0.3.8", + "version": "0.3.9", "license": "MIT", "dependencies": { "bmx-pastebox": "^1.0.14" diff --git a/package.json b/package.json index 83530e7..612cc40 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bloomscorp/bloomsight.js", - "version": "0.3.8", + "version": "0.3.9", "description": "A client side javascript library to work with bloomsight.io", "main": "dist/index.js", "module": "dist/index.mjs", diff --git a/umd/production.js b/umd/production.js index 125b134..b757ebb 100644 --- a/umd/production.js +++ b/umd/production.js @@ -1 +1 @@ -(()=>{"use strict";var e={45:(e,o,t)=>{function r(e){return!(null==e)}function n(e){return r(e)&&e.length>0}function s(e){return!n(e)}function i(e){return r(e)&&(""===e.trim()||0===e.trim().length)}function a(e,o){return n(e)&&e.length===o}function l(e,o,t=!1){return!(!r(e)||!r(o))&&(t?e.toLowerCase()===o.toLowerCase():e===o)}function c(e){return JSON.parse(JSON.stringify(e))}function d(e){return 0===Object.keys(e).length}t.r(o),t.d(o,{areStringsEqual:()=>l,arrayDeepCopy:()=>c,arrayEmpty:()=>s,arrayLength:()=>a,arrayNotEmpty:()=>n,isEmptyObject:()=>d,isEmptyString:()=>i,valueExists:()=>r})},502:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.isDevelopmentMode=o.resolvePropertyToken=o.isConfiguredProperly=o.initConfig=o.config=void 0,o.config=null;const t={stopSimpleEvent:!1,stopDataEvent:!1,stopPageViewEvent:!1,stopAll:!1,logOnly:!1,observePageViaWebAPI:!0};function r(){return o.config?o.config.propertyToken:""}function n(){return!!o.config&&o.config.isDevelopmentMode}o.initConfig=function(e){o.config={...t,...e},n()&&console.log("configuration: ",o.config)},o.isConfiguredProperly=function(){return!!r()},o.resolvePropertyToken=r,o.isDevelopmentMode=n},318:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.sendEmail=void 0;const r=t(374),n=t(454),s=t(502),i=t(51),a=t(694);o.sendEmail=function(e,o,t,l,c,d){let u=new FormData;u.append("engineId",e),u.append("userId",t),u.append("templateId",o),u.append("senderInfo[deviceType]",(0,r.resolveDevice)()),u.append("senderInfo[osName]",(0,r.resolveOS)()),u.append("senderInfo[browserName]",(0,r.resolveBrowser)()),u.append("senderInfo[ipAddress]",(0,n.resolveIPAddress)()),u.append("senderInfo[countryCode]",(0,n.resolveCountry)()),u.append("senderInfo[region]",(0,n.resolveRegion)()),u.append("senderInfo[city]",(0,n.resolveCity)()),u.append("senderInfo[url]",(0,a.resolveActiveUrl)()),l.forEach(((e,o)=>{u.append(`metadata[${o}]`,e)})),(0,s.isDevelopmentMode)()&&console.log("email data: ",u),(0,i.transferEmail)(u,(()=>{}),(e=>{}),(e=>{(0,s.isDevelopmentMode)()&&console.log("email sent successfully"),c()}),(e=>{(0,s.isDevelopmentMode)()&&console.log(`email sending error: ${e}`),d()}),(()=>{}))}},857:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolveDataEvent=void 0;const r=t(647),n=t(502),s=t(454),i=t(374),a=t(494),l=t(270),c=t(358),d=t(694);o.resolveDataEvent=function(e,o,t=""){if((0,r.isBot)()&&(n.config.stopAll=!0),n.config?.stopAll||n.config?.stopDataEvent)return;const u={property:(0,n.resolvePropertyToken)(),dataEventToken:e,eventLogData:o,userId:(0,l.resolveUserId)(),ipAddress:(0,s.resolveIPAddress)(),city:(0,s.resolveCity)(),countryCode:(0,s.resolveCountry)(),region:(0,s.resolveRegion)(),browserName:(0,i.resolveBrowser)(),osName:(0,i.resolveOS)(),deviceType:(0,i.resolveDevice)(),url:(0,d.resolveActiveUrl)()||""},v=(0,c.retrieveEventList)();v&&v.includes(e)||(l.isNewUser?u.newUser=!0:u.returningUser=!0,u.newSession=!0,(0,c.storeEventList)([...v,e])),(0,n.isDevelopmentMode)()&&console.log("data event data: ",u),(0,a.logDataEvent)(u,(()=>{}),(e=>{}),(o=>{(0,n.isDevelopmentMode)()&&console.log(`event ${e} logged successfully`)}),(e=>{(0,n.isDevelopmentMode)()&&console.log(`event log error: ${e}`)}),(()=>{}))}},358:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.retrieveEventList=o.storeEventList=void 0;const r=t(720),n="eventList";o.storeEventList=function(e){(0,r.store)(n,JSON.stringify(e))},o.retrieveEventList=function(){return JSON.parse((0,r.retrieve)(n))}},848:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolvePageViewEvent=o.pageViewObserver=o.initPageViewEventHandler=void 0;const r=t(502),n=t(454),s=t(374),i=t(610),a=t(407),l=t(838),c=t(647),d=t(270),u=t(358),v=t(694),p="startUrl",f="SITE_VISITED";let g=!1,m=!1;function y(){g?E(!1,(0,l.resolveUTMData)((0,v.resolveActiveUrl)())):(E(!0,(0,l.resolveUTMData)((0,v.resolveActiveUrl)())),g=!0)}function w(e){return e?(0,v.resolveDocumentReferrer)():(0,a.retrieve)(p)}function E(e,o){if((0,c.isBot)()&&(r.config.stopAll=!0),r.config?.stopAll||r.config?.stopPageViewEvent)return;const t={property:(0,r.resolvePropertyToken)(),userId:(0,d.resolveUserId)(),referredUrl:w(e),ipAddress:(0,n.resolveIPAddress)(),city:(0,n.resolveCity)(),countryCode:(0,n.resolveCountry)(),region:(0,n.resolveRegion)(),browserName:(0,s.resolveBrowser)(),osName:(0,s.resolveOS)(),deviceType:(0,s.resolveDevice)(),url:(0,v.resolveActiveUrl)()||"",title:(0,v.resolveDocumentTitle)()||"",utmCampaign:o.utmCampaign,utmContent:o.utmContent,utmMedium:o.utmMedium,utmSource:o.utmSource,utmTerm:o.utmTerm},l=(0,u.retrieveEventList)();l&&l.includes(f)||(d.isNewUser?t.newUser=!0:t.returningUser=!0,t.newSession=!0,(0,u.storeEventList)([...l,f])),e||m||(m=!0,t.debounce=!0),(0,r.isDevelopmentMode)()&&console.log("page view data: ",t),r.config?.logOnly&&(0,a.store)("startUrl",(0,v.resolveActiveUrl)()),(0,i.logPageViewEvent)(t,(()=>{}),(e=>{}),(e=>{(0,r.isDevelopmentMode)()&&console.log("page view event logged successfully")}),(e=>{(0,r.isDevelopmentMode)()&&console.log(`event log error: ${e}`)}),(()=>{(0,a.store)("startUrl",(0,v.resolveActiveUrl)())}))}o.initPageViewEventHandler=function(){(0,v.resolveWindow)()?.addEventListener("load",(()=>y()))},o.pageViewObserver=y,o.resolvePageViewEvent=E},971:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolveSimpleEvent=void 0;const r=t(374),n=t(502),s=t(454),i=t(48),a=t(647),l=t(270),c=t(358),d=t(694);o.resolveSimpleEvent=function(e,o=""){if((0,a.isBot)()&&(n.config.stopAll=!0),n.config?.stopAll||n.config?.stopSimpleEvent)return;const t={property:(0,n.resolvePropertyToken)(),simpleEventToken:e,userId:(0,l.resolveUserId)(),ipAddress:(0,s.resolveIPAddress)(),city:(0,s.resolveCity)(),countryCode:(0,s.resolveCountry)(),region:(0,s.resolveRegion)(),browserName:(0,r.resolveBrowser)(),osName:(0,r.resolveOS)(),deviceType:(0,r.resolveDevice)(),url:(0,d.resolveActiveUrl)()||""},u=(0,c.retrieveEventList)();u&&u.includes(e)||(l.isNewUser?t.newUser=!0:t.returningUser=!0,t.newSession=!0,(0,c.storeEventList)([...u,e])),(0,n.isDevelopmentMode)()&&console.log("simple event data: ",t),(0,i.logSimpleEvent)(t,(()=>{}),(e=>{}),(o=>{(0,n.isDevelopmentMode)()&&console.log(`event ${e} logged successfully`)}),(e=>{(0,n.isDevelopmentMode)()&&console.log(`event log error: ${e}`)}),(()=>{}))}},454:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolveCity=o.resolveRegion=o.resolveCountry=o.resolveIPAddress=o.initLocation=void 0;const r=t(407),n=t(502),s=t(340),i="city",a="region",l="country";o.initLocation=function(e){(0,s.resolveLocation)((()=>{}),(e=>{}),(e=>{var o;o=e,(0,r.store)("ip",o.ip),(0,r.store)(i,o.city),(0,r.store)(a,o.region),(0,r.store)(l,o.country),(0,n.isDevelopmentMode)()&&(console.log(`ip: ${o.ip}`),console.log(`city: ${o.city}`),console.log(`region: ${o.region}`),console.log(`country: ${o.country}`))}),(e=>{(0,n.isDevelopmentMode)()&&console.log(`failed to resolve location: ${e}`)}),(()=>{e()}))},o.resolveIPAddress=function(){return(0,r.retrieve)("ip")},o.resolveCountry=function(){return(0,r.retrieve)(l)},o.resolveRegion=function(){return(0,r.retrieve)(a)},o.resolveCity=function(){return(0,r.retrieve)(i)}},830:(e,o)=>{var t;Object.defineProperty(o,"__esModule",{value:!0}),o.IBrowser=void 0,function(e){e.Unknown="Unknown",e.Chrome="Google Chrome",e.Firefox="Mozilla Firefox",e.Safari="Apple Safari",e.ME_Legacy="Microsoft Edge (Legacy)",e.ME_Chromium="Microsoft Edge (Chromium)",e.IE="Microsoft Internet Explorer",e.Opera="Opera",e.Opera_Next="Opera Next"}(t||(o.IBrowser=t={}))},650:(e,o)=>{var t;Object.defineProperty(o,"__esModule",{value:!0}),o.IDevice=void 0,function(e){e.Unknown="Unknown",e.Tablet="Tablet",e.Mobile="Mobile",e.Desktop="Desktop"}(t||(o.IDevice=t={}))},583:(e,o)=>{var t;Object.defineProperty(o,"__esModule",{value:!0}),o.IOperatingSystem=void 0,function(e){e.Unknown="Unknown",e.MacOS="MacOS",e.Linux="Linux",e.Windows="Windows",e.Android="Android",e.iOS="iOS"}(t||(o.IOperatingSystem=t={}))},374:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolveDevice=o.resolveOS=o.resolveBrowserVersion=o.resolveBrowser=o.initPlatform=void 0;const r=t(830),n=t(583),s=t(650),i=t(502),a=(0,t(694).resolveUserAgent)();function l(){let e=0,o=0;switch(!0){case-1!==a.indexOf("Opera"):return r.IBrowser.Opera;case-1!==a.indexOf("OPR"):return r.IBrowser.Opera_Next;case-1!==a.indexOf("Edge"):return r.IBrowser.ME_Legacy;case-1!==a.indexOf("Edg"):return r.IBrowser.ME_Chromium;case-1!==a.indexOf("Chrome"):return r.IBrowser.Chrome;case-1!==a.indexOf("Safari"):return r.IBrowser.Safari;case-1!==a.indexOf("Firefox"):return r.IBrowser.Firefox;case-1!==a.indexOf("MSIE"):case-1!==a.indexOf("Trident"):return r.IBrowser.IE;case(e=a.lastIndexOf(" ")+1)<(o=a.lastIndexOf("/")):return a.substring(e,o);default:return r.IBrowser.Unknown}}function c(){switch(!0){case-1!==a.indexOf("Windows"):return n.IOperatingSystem.Windows;case-1!==a.indexOf("Mac OS"):return n.IOperatingSystem.MacOS;case-1!==a.indexOf("Linux"):return n.IOperatingSystem.Linux;case-1!==a.indexOf("Android"):return n.IOperatingSystem.Android;case-1!==a.indexOf("iOS"):return n.IOperatingSystem.iOS;default:return n.IOperatingSystem.Unknown}}function d(){return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(a)?s.IDevice.Tablet:/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|webOS)/i.test(a)?s.IDevice.Mobile:s.IDevice.Desktop}o.initPlatform=function(){const e=l(),o=c(),t=d();(0,i.isDevelopmentMode)()&&(console.log(`browser: ${e}`),console.log(`os: ${o}`),console.log(`device: ${t}`))},o.resolveBrowser=l,o.resolveBrowserVersion=function(){const e=a.match(/(Chrome|Firefox|Safari|Edge|IE|Opera|Trident)[\/\s](\d+(\.\d+)*)/);return e&&e[2]?e[2]:"Unknown"},o.resolveOS=c,o.resolveDevice=d},382:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.validateProperty=void 0;const r=t(230);o.validateProperty=function(e,o){return new Promise(((t,n)=>{(0,r.resolvePropertyMetadata)(e,(()=>{}),(()=>{}),(e=>{t(e.name===o)}),(e=>{n("unable to validate bloomsight property token!")}),(()=>{}))}))}},914:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.initSession=void 0;const r=t(720),n=t(358),s=t(270),i=t(407),a=t(694),l="sessionEnd",c=30;let d=Date.now();function u(){d+6e4-Date.now()<0&&(function(){const e=p();Date.now()>e?((0,s.setUserStatus)(!1),v(!0)):v(!1)}(),d=Date.now())}function v(e){(0,i.store)(l,JSON.stringify(Date.now()+60*c*1e3)),e&&(0,n.storeEventList)([])}function p(){return+(0,r.retrieve)(l)}o.initSession=function(){const e=p();e?Date.now()>e?((0,s.setUserStatus)((0,s.hasUserReturnedBeyondNewUserTenureLimit)(e)),v(!0)):(0,s.setUserStatus)(!0):((0,s.setUserStatus)(!0),v(!0)),(0,a.isBrowser)()&&(window.addEventListener("keydown",(()=>u())),window.addEventListener("mousemove",(()=>u())),window.addEventListener("click",(()=>u())),window.addEventListener("scroll",(()=>u())),window.addEventListener("wheel",(()=>u())))}},846:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.RESOURCE_VALIDATION_ERROR=void 0,o.RESOURCE_VALIDATION_ERROR="We could not validate your authority to access resources"},912:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.HTTP_HEADERS=o.EMAIL_TRANSFER_API=o.ADD_PAGE_VIEW_EVENT_API=o.ADD_DATA_EVENT_API=o.ADD_SIMPLE_EVENT_API=o.GET_PROPERTY_API=o.LOCATION_API=void 0;const t="https://api.bloomsight.io/api/v1";o.LOCATION_API="https://api.bloomsight.io/service/get-my-ip",o.GET_PROPERTY_API=t+"/property/get/{propertyToken}",o.ADD_SIMPLE_EVENT_API=t+"/simple-event-data/add",o.ADD_DATA_EVENT_API=t+"/data-event-data/add",o.ADD_PAGE_VIEW_EVENT_API=t+"/page-view-data/add",o.EMAIL_TRANSFER_API=t+"/email-notifier/gmail/send",o.HTTP_HEADERS=new Headers({"Content-Type":"application/json"})},494:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.logDataEvent=void 0;const r=t(304),n=t(912),s=t(502);o.logDataEvent=function(e,o,t,i,a,l){s.config?.logOnly||(0,r.executePostPayload)(n.ADD_DATA_EVENT_API,e,n.HTTP_HEADERS,o,t,i,a,l)}},51:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.transferEmail=void 0;const r=t(304),n=t(912),s=t(502);o.transferEmail=function(e,o,t,i,a,l){s.config?.logOnly||(0,r.executePostPayload)(n.EMAIL_TRANSFER_API,e,void 0,o,t,i,a,l)}},340:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolveLocation=void 0;const r=t(304),n=t(912);o.resolveLocation=function(e,o,t,s,i){(0,r.executeGetPayload)(n.LOCATION_API,n.HTTP_HEADERS,e,o,t,s,i,"information")}},610:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.logPageViewEvent=void 0;const r=t(304),n=t(912),s=t(502);o.logPageViewEvent=function(e,o,t,i,a,l){s.config?.logOnly||(0,r.executePostPayload)(n.ADD_PAGE_VIEW_EVENT_API,e,n.HTTP_HEADERS,o,t,i,a,l)}},230:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolvePropertyMetadata=void 0;const r=t(304),n=t(912);o.resolvePropertyMetadata=function(e,o,t,s,i,a){(0,r.executeGetPayload)(n.GET_PROPERTY_API.replace("{propertyToken}",e),n.HTTP_HEADERS,o,t,s,i,a,"property")}},48:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.logSimpleEvent=void 0;const r=t(304),n=t(912),s=t(502);o.logSimpleEvent=function(e,o,t,i,a,l){s.config?.logOnly||(0,r.executePostPayload)(n.ADD_SIMPLE_EVENT_API,e,n.HTTP_HEADERS,o,t,i,a,l)}},304:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.executePostPayload=o.executeGetPayload=o.executeBasicGet=void 0;const r=t(45),n=t(846),s=t(694);o.executeBasicGet=function(e,o,t,r,i,a,l){(0,s.isBrowser)()&&(t(),fetch(e,{method:"GET",headers:o}).then((e=>e.json())).then((e=>{r(e.message),e.success?i(e.message):a(n.RESOURCE_VALIDATION_ERROR)})).catch((e=>a(e.toString()))).finally((()=>l())))},o.executeGetPayload=function(e,o,t,i,a,l,c,d){(0,s.isBrowser)()&&(t(),fetch(e,{method:"GET",headers:o}).then((e=>e.json())).then((e=>{i(e[d]),e.success?a(e[d]):l((0,r.isEmptyString)(e.message)?n.RESOURCE_VALIDATION_ERROR:e.message)})).catch((e=>l(e.toString()))).finally((()=>c())))},o.executePostPayload=function(e,o,t,i,a,l,c,d){if(!(0,s.isBrowser)())return;i();const u={method:"POST",headers:t};o instanceof FormData?u.body=o:(u.body=JSON.stringify(o),u.headers={...u.headers,"Content-Type":"application/json"}),fetch(e,u).then((e=>e.json())).then((e=>{a(e),e.success?l(e):c((0,r.isEmptyString)(e.message)?n.RESOURCE_VALIDATION_ERROR:e.message)})).catch((e=>c(e.toString()))).finally((()=>d()))}},270:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.setUserStatus=o.hasUserReturnedBeyondNewUserTenureLimit=o.resolveUserId=o.initUser=o.isNewUser=void 0;const r=t(720),n=t(171),s=t(502),i="userId";o.isNewUser=!1;let a="";o.initUser=function(){var e;(0,r.retrieve)(i)?a=(0,r.retrieve)(i):(a=(0,n.generateUserId)(),e=a,(0,r.store)(i,e)),(0,s.isDevelopmentMode)()&&console.log(`active user id: ${a}`)},o.resolveUserId=function(){return a||(0,r.retrieve)(i)},o.hasUserReturnedBeyondNewUserTenureLimit=function(e){return Date.now()-e>3888e6},o.setUserStatus=function(e){o.isNewUser=e}},647:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.isBot=void 0;const r=t(694),n=[" daum[ /]"," deusu/"," yadirectfetcher","(?:^|[^g])news","(?{function t(){return"undefined"!=typeof window&&"undefined"!=typeof document}Object.defineProperty(o,"__esModule",{value:!0}),o.resolveDocumentTitle=o.resolveDocumentReferrer=o.resolveUserAgent=o.resolveActiveUrl=o.resolveHost=o.resolveWindow=o.isBrowser=void 0,o.isBrowser=t,o.resolveWindow=function(){return t()?window:null},o.resolveHost=function(){return t()?window.location.host:""},o.resolveActiveUrl=function(){return t()?window.location.href:""},o.resolveUserAgent=function(){return t()?window.navigator.userAgent:""},o.resolveDocumentReferrer=function(){return t()?document.referrer:""},o.resolveDocumentTitle=function(){return t()?document.title:""}},171:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.generateUserId=void 0,o.generateUserId=function(){return(Date.now()+Math.random()).toString(36)}},720:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.clear=o.retrieve=o.store=void 0;const r=t(694);o.store=function(e,o){(0,r.isBrowser)()&&localStorage.setItem(e,o)},o.retrieve=function(e){if(!(0,r.isBrowser)())return"";const o=localStorage.getItem(e);return null===o?"":o},o.clear=function(){(0,r.isBrowser)()&&localStorage.clear()}},407:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.clear=o.retrieve=o.store=void 0;const r=t(694);o.store=function(e,o){(0,r.isBrowser)()&&sessionStorage.setItem(e,o)},o.retrieve=function(e){if(!(0,r.isBrowser)())return"";const o=sessionStorage.getItem(e);return null===o?"":o},o.clear=function(){(0,r.isBrowser)()&&sessionStorage.clear()}},838:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolveUTMData=void 0,o.resolveUTMData=function(e){const o=new URLSearchParams(e);return{utmCampaign:o.get("utm_campaign")||"",utmContent:o.get("utm_content")||"",utmMedium:o.get("utm_medium")||"",utmSource:o.get("utm_source")||"",utmTerm:o.get("utm_term")||""}}}},o={};function t(r){var n=o[r];if(void 0!==n)return n.exports;var s=o[r]={exports:{}};return e[r](s,s.exports,t),s.exports}t.d=(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e=t(374),o=t(454),r=t(270),n=t(914),s=t(848),i=t(502),a=t(971),l=t(857),c=t(318),d=t(382),u=t(694);(0,u.isBrowser)()&&(window.init=function(t){(0,i.initConfig)(t),(0,d.validateProperty)(t.propertyToken,(0,u.resolveHost)()).then((i=>{i?t.stopAll=!1:(console.error(`propertyToken is not valid for ${(0,u.resolveHost)()}`),t.stopAll=!0),(0,o.initLocation)((()=>{(0,e.initPlatform)(),(0,r.initUser)(),(0,n.initSession)(),t.observePageViaWebAPI&&(0,s.initPageViewEventHandler)()}))})).catch((e=>{console.error(e)}))},window.resolveSimpleEvent=a.resolveSimpleEvent,window.resolveDataEvent=l.resolveDataEvent,window.pageViewObserver=s.pageViewObserver,window.sendEmail=c.sendEmail)})()})(); \ No newline at end of file +(()=>{"use strict";var e={45:(e,o,t)=>{function r(e){return!(null==e)}function n(e){return r(e)&&e.length>0}function s(e){return!n(e)}function i(e){return r(e)&&(""===e.trim()||0===e.trim().length)}function a(e,o){return n(e)&&e.length===o}function l(e,o,t=!1){return!(!r(e)||!r(o))&&(t?e.toLowerCase()===o.toLowerCase():e===o)}function c(e){return JSON.parse(JSON.stringify(e))}function d(e){return 0===Object.keys(e).length}t.r(o),t.d(o,{areStringsEqual:()=>l,arrayDeepCopy:()=>c,arrayEmpty:()=>s,arrayLength:()=>a,arrayNotEmpty:()=>n,isEmptyObject:()=>d,isEmptyString:()=>i,valueExists:()=>r})},502:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.isDevelopmentMode=o.resolvePropertyToken=o.isConfiguredProperly=o.initConfig=o.config=void 0,o.config=null;const t={stopSimpleEvent:!1,stopDataEvent:!1,stopPageViewEvent:!1,stopAll:!1,logOnly:!1,observePageViaWebAPI:!0};function r(){return o.config?o.config.propertyToken:""}function n(){return!!o.config&&o.config.isDevelopmentMode}o.initConfig=function(e){o.config={...t,...e},n()&&console.log("configuration: ",o.config)},o.isConfiguredProperly=function(){return!!r()},o.resolvePropertyToken=r,o.isDevelopmentMode=n},318:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.sendEmail=void 0;const r=t(374),n=t(454),s=t(502),i=t(51),a=t(694);o.sendEmail=function(e,o,t,l,c,d){let u=new FormData;u.append("engineId",e),u.append("userId",t),u.append("templateId",o),u.append("senderInfo[deviceType]",(0,r.resolveDevice)()),u.append("senderInfo[osName]",(0,r.resolveOS)()),u.append("senderInfo[browserName]",(0,r.resolveBrowser)()),u.append("senderInfo[ipAddress]",(0,n.resolveIPAddress)()),u.append("senderInfo[countryCode]",(0,n.resolveCountry)()),u.append("senderInfo[region]",(0,n.resolveRegion)()),u.append("senderInfo[city]",(0,n.resolveCity)()),u.append("senderInfo[url]",(0,a.resolveActiveUrl)()),l.forEach(((e,o)=>{u.append(`metadata[${o}]`,e)})),(0,s.isDevelopmentMode)()&&console.log("email data: ",u),(0,i.transferEmail)(u,(()=>{}),(e=>{}),(e=>{(0,s.isDevelopmentMode)()&&console.log("email sent successfully"),c()}),(e=>{(0,s.isDevelopmentMode)()&&console.log(`email sending error: ${e}`),d()}),(()=>{}))}},857:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolveDataEvent=void 0;const r=t(647),n=t(502),s=t(454),i=t(374),a=t(494),l=t(270),c=t(358),d=t(694);o.resolveDataEvent=function(e,o,t=""){if((0,r.isBot)()&&(n.config.stopAll=!0),n.config?.stopAll||n.config?.stopDataEvent)return;const u={property:(0,n.resolvePropertyToken)(),dataEventToken:e,eventLogData:o,userId:(0,l.resolveUserId)(),ipAddress:(0,s.resolveIPAddress)(),city:(0,s.resolveCity)(),countryCode:(0,s.resolveCountry)(),region:(0,s.resolveRegion)(),browserName:(0,i.resolveBrowser)(),osName:(0,i.resolveOS)(),deviceType:(0,i.resolveDevice)(),url:(0,d.resolveActiveUrl)()||""},v=(0,c.retrieveEventList)();v&&v.includes(e)||(l.isNewUser?u.newUser=!0:u.returningUser=!0,u.newSession=!0,(0,c.storeEventList)([...v,e])),(0,n.isDevelopmentMode)()&&console.log("data event data: ",u),(0,a.logDataEvent)(u,(()=>{}),(e=>{}),(o=>{(0,n.isDevelopmentMode)()&&console.log(`event ${e} logged successfully`)}),(e=>{(0,n.isDevelopmentMode)()&&console.log(`event log error: ${e}`)}),(()=>{}))}},358:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.retrieveEventList=o.storeEventList=void 0;const r=t(720),n="eventList";o.storeEventList=function(e){(0,r.store)(n,JSON.stringify(e))},o.retrieveEventList=function(){return JSON.parse((0,r.retrieve)(n))}},848:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolvePageViewEvent=o.pageViewObserver=o.initPageViewEventHandler=void 0;const r=t(502),n=t(454),s=t(374),i=t(610),a=t(407),l=t(838),c=t(647),d=t(270),u=t(358),v=t(694),p="startUrl",f="SITE_VISITED";let g=!1,m=!1;function y(){g?E(!1,(0,l.resolveUTMData)((0,v.resolveActiveUrl)())):(E(!0,(0,l.resolveUTMData)((0,v.resolveActiveUrl)())),g=!0)}function w(e){return e?(0,v.resolveDocumentReferrer)():(0,a.retrieve)(p)}function E(e,o){if((0,c.isBot)()&&(r.config.stopAll=!0),r.config?.stopAll||r.config?.stopPageViewEvent)return;const t={property:(0,r.resolvePropertyToken)(),userId:(0,d.resolveUserId)(),referredUrl:w(e),ipAddress:(0,n.resolveIPAddress)(),city:(0,n.resolveCity)(),countryCode:(0,n.resolveCountry)(),region:(0,n.resolveRegion)(),browserName:(0,s.resolveBrowser)(),osName:(0,s.resolveOS)(),deviceType:(0,s.resolveDevice)(),url:(0,v.resolveActiveUrl)()||"",title:(0,v.resolveDocumentTitle)()||"",utmCampaign:o.utmCampaign,utmContent:o.utmContent,utmMedium:o.utmMedium,utmSource:o.utmSource,utmTerm:o.utmTerm},l=(0,u.retrieveEventList)();l&&l.includes(f)||(d.isNewUser?t.newUser=!0:t.returningUser=!0,t.newSession=!0,(0,u.storeEventList)([...l,f])),e||m||(m=!0,t.debounce=!0),(0,r.isDevelopmentMode)()&&console.log("page view data: ",t),r.config?.logOnly&&(0,a.store)("startUrl",(0,v.resolveActiveUrl)()),(0,i.logPageViewEvent)(t,(()=>{}),(e=>{}),(e=>{(0,r.isDevelopmentMode)()&&console.log("page view event logged successfully")}),(e=>{(0,r.isDevelopmentMode)()&&console.log(`event log error: ${e}`)}),(()=>{(0,a.store)("startUrl",(0,v.resolveActiveUrl)())}))}o.initPageViewEventHandler=function(){(0,v.resolveWindow)()?.addEventListener("DOMContentLoaded",(()=>y()))},o.pageViewObserver=y,o.resolvePageViewEvent=E},971:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolveSimpleEvent=void 0;const r=t(374),n=t(502),s=t(454),i=t(48),a=t(647),l=t(270),c=t(358),d=t(694);o.resolveSimpleEvent=function(e,o=""){if((0,a.isBot)()&&(n.config.stopAll=!0),n.config?.stopAll||n.config?.stopSimpleEvent)return;const t={property:(0,n.resolvePropertyToken)(),simpleEventToken:e,userId:(0,l.resolveUserId)(),ipAddress:(0,s.resolveIPAddress)(),city:(0,s.resolveCity)(),countryCode:(0,s.resolveCountry)(),region:(0,s.resolveRegion)(),browserName:(0,r.resolveBrowser)(),osName:(0,r.resolveOS)(),deviceType:(0,r.resolveDevice)(),url:(0,d.resolveActiveUrl)()||""},u=(0,c.retrieveEventList)();u&&u.includes(e)||(l.isNewUser?t.newUser=!0:t.returningUser=!0,t.newSession=!0,(0,c.storeEventList)([...u,e])),(0,n.isDevelopmentMode)()&&console.log("simple event data: ",t),(0,i.logSimpleEvent)(t,(()=>{}),(e=>{}),(o=>{(0,n.isDevelopmentMode)()&&console.log(`event ${e} logged successfully`)}),(e=>{(0,n.isDevelopmentMode)()&&console.log(`event log error: ${e}`)}),(()=>{}))}},454:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolveCity=o.resolveRegion=o.resolveCountry=o.resolveIPAddress=o.initLocation=void 0;const r=t(407),n=t(502),s=t(340),i="city",a="region",l="country";o.initLocation=function(e){(0,s.resolveLocation)((()=>{}),(e=>{}),(e=>{var o;o=e,(0,r.store)("ip",o.ip),(0,r.store)(i,o.city),(0,r.store)(a,o.region),(0,r.store)(l,o.country),(0,n.isDevelopmentMode)()&&(console.log(`ip: ${o.ip}`),console.log(`city: ${o.city}`),console.log(`region: ${o.region}`),console.log(`country: ${o.country}`))}),(e=>{(0,n.isDevelopmentMode)()&&console.log(`failed to resolve location: ${e}`)}),(()=>{e()}))},o.resolveIPAddress=function(){return(0,r.retrieve)("ip")},o.resolveCountry=function(){return(0,r.retrieve)(l)},o.resolveRegion=function(){return(0,r.retrieve)(a)},o.resolveCity=function(){return(0,r.retrieve)(i)}},830:(e,o)=>{var t;Object.defineProperty(o,"__esModule",{value:!0}),o.IBrowser=void 0,function(e){e.Unknown="Unknown",e.Chrome="Google Chrome",e.Firefox="Mozilla Firefox",e.Safari="Apple Safari",e.ME_Legacy="Microsoft Edge (Legacy)",e.ME_Chromium="Microsoft Edge (Chromium)",e.IE="Microsoft Internet Explorer",e.Opera="Opera",e.Opera_Next="Opera Next"}(t||(o.IBrowser=t={}))},650:(e,o)=>{var t;Object.defineProperty(o,"__esModule",{value:!0}),o.IDevice=void 0,function(e){e.Unknown="Unknown",e.Tablet="Tablet",e.Mobile="Mobile",e.Desktop="Desktop"}(t||(o.IDevice=t={}))},583:(e,o)=>{var t;Object.defineProperty(o,"__esModule",{value:!0}),o.IOperatingSystem=void 0,function(e){e.Unknown="Unknown",e.MacOS="MacOS",e.Linux="Linux",e.Windows="Windows",e.Android="Android",e.iOS="iOS"}(t||(o.IOperatingSystem=t={}))},374:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolveDevice=o.resolveOS=o.resolveBrowserVersion=o.resolveBrowser=o.initPlatform=void 0;const r=t(830),n=t(583),s=t(650),i=t(502),a=(0,t(694).resolveUserAgent)();function l(){let e=0,o=0;switch(!0){case-1!==a.indexOf("Opera"):return r.IBrowser.Opera;case-1!==a.indexOf("OPR"):return r.IBrowser.Opera_Next;case-1!==a.indexOf("Edge"):return r.IBrowser.ME_Legacy;case-1!==a.indexOf("Edg"):return r.IBrowser.ME_Chromium;case-1!==a.indexOf("Chrome"):return r.IBrowser.Chrome;case-1!==a.indexOf("Safari"):return r.IBrowser.Safari;case-1!==a.indexOf("Firefox"):return r.IBrowser.Firefox;case-1!==a.indexOf("MSIE"):case-1!==a.indexOf("Trident"):return r.IBrowser.IE;case(e=a.lastIndexOf(" ")+1)<(o=a.lastIndexOf("/")):return a.substring(e,o);default:return r.IBrowser.Unknown}}function c(){switch(!0){case-1!==a.indexOf("Windows"):return n.IOperatingSystem.Windows;case-1!==a.indexOf("Mac OS"):return n.IOperatingSystem.MacOS;case-1!==a.indexOf("Linux"):return n.IOperatingSystem.Linux;case-1!==a.indexOf("Android"):return n.IOperatingSystem.Android;case-1!==a.indexOf("iOS"):return n.IOperatingSystem.iOS;default:return n.IOperatingSystem.Unknown}}function d(){return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(a)?s.IDevice.Tablet:/Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Kindle|NetFront|Silk-Accelerated|(hpw|webOS)/i.test(a)?s.IDevice.Mobile:s.IDevice.Desktop}o.initPlatform=function(){const e=l(),o=c(),t=d();(0,i.isDevelopmentMode)()&&(console.log(`browser: ${e}`),console.log(`os: ${o}`),console.log(`device: ${t}`))},o.resolveBrowser=l,o.resolveBrowserVersion=function(){const e=a.match(/(Chrome|Firefox|Safari|Edge|IE|Opera|Trident)[\/\s](\d+(\.\d+)*)/);return e&&e[2]?e[2]:"Unknown"},o.resolveOS=c,o.resolveDevice=d},382:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.validateProperty=void 0;const r=t(230);o.validateProperty=function(e,o){return new Promise(((t,n)=>{(0,r.resolvePropertyMetadata)(e,(()=>{}),(()=>{}),(e=>{t(e.name===o)}),(e=>{n("unable to validate bloomsight property token!")}),(()=>{}))}))}},914:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.initSession=void 0;const r=t(720),n=t(358),s=t(270),i=t(407),a=t(694),l="sessionEnd",c=30;let d=Date.now();function u(){d+6e4-Date.now()<0&&(function(){const e=p();Date.now()>e?((0,s.setUserStatus)(!1),v(!0)):v(!1)}(),d=Date.now())}function v(e){(0,i.store)(l,JSON.stringify(Date.now()+60*c*1e3)),e&&(0,n.storeEventList)([])}function p(){return+(0,r.retrieve)(l)}o.initSession=function(){const e=p();e?Date.now()>e?((0,s.setUserStatus)((0,s.hasUserReturnedBeyondNewUserTenureLimit)(e)),v(!0)):(0,s.setUserStatus)(!0):((0,s.setUserStatus)(!0),v(!0)),(0,a.isBrowser)()&&(window.addEventListener("keydown",(()=>u())),window.addEventListener("mousemove",(()=>u())),window.addEventListener("click",(()=>u())),window.addEventListener("scroll",(()=>u())),window.addEventListener("wheel",(()=>u())))}},846:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.RESOURCE_VALIDATION_ERROR=void 0,o.RESOURCE_VALIDATION_ERROR="We could not validate your authority to access resources"},912:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.HTTP_HEADERS=o.EMAIL_TRANSFER_API=o.ADD_PAGE_VIEW_EVENT_API=o.ADD_DATA_EVENT_API=o.ADD_SIMPLE_EVENT_API=o.GET_PROPERTY_API=o.LOCATION_API=void 0;const t="https://api.bloomsight.io/api/v1";o.LOCATION_API="https://api.bloomsight.io/service/get-my-ip",o.GET_PROPERTY_API=t+"/property/get/{propertyToken}",o.ADD_SIMPLE_EVENT_API=t+"/simple-event-data/add",o.ADD_DATA_EVENT_API=t+"/data-event-data/add",o.ADD_PAGE_VIEW_EVENT_API=t+"/page-view-data/add",o.EMAIL_TRANSFER_API=t+"/email-notifier/gmail/send",o.HTTP_HEADERS=new Headers({"Content-Type":"application/json"})},494:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.logDataEvent=void 0;const r=t(304),n=t(912),s=t(502);o.logDataEvent=function(e,o,t,i,a,l){s.config?.logOnly||(0,r.executePostPayload)(n.ADD_DATA_EVENT_API,e,n.HTTP_HEADERS,o,t,i,a,l)}},51:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.transferEmail=void 0;const r=t(304),n=t(912),s=t(502);o.transferEmail=function(e,o,t,i,a,l){s.config?.logOnly||(0,r.executePostPayload)(n.EMAIL_TRANSFER_API,e,void 0,o,t,i,a,l)}},340:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolveLocation=void 0;const r=t(304),n=t(912);o.resolveLocation=function(e,o,t,s,i){(0,r.executeGetPayload)(n.LOCATION_API,n.HTTP_HEADERS,e,o,t,s,i,"information")}},610:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.logPageViewEvent=void 0;const r=t(304),n=t(912),s=t(502);o.logPageViewEvent=function(e,o,t,i,a,l){s.config?.logOnly||(0,r.executePostPayload)(n.ADD_PAGE_VIEW_EVENT_API,e,n.HTTP_HEADERS,o,t,i,a,l)}},230:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolvePropertyMetadata=void 0;const r=t(304),n=t(912);o.resolvePropertyMetadata=function(e,o,t,s,i,a){(0,r.executeGetPayload)(n.GET_PROPERTY_API.replace("{propertyToken}",e),n.HTTP_HEADERS,o,t,s,i,a,"property")}},48:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.logSimpleEvent=void 0;const r=t(304),n=t(912),s=t(502);o.logSimpleEvent=function(e,o,t,i,a,l){s.config?.logOnly||(0,r.executePostPayload)(n.ADD_SIMPLE_EVENT_API,e,n.HTTP_HEADERS,o,t,i,a,l)}},304:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.executePostPayload=o.executeGetPayload=o.executeBasicGet=void 0;const r=t(45),n=t(846),s=t(694);o.executeBasicGet=function(e,o,t,r,i,a,l){(0,s.isBrowser)()&&(t(),fetch(e,{method:"GET",headers:o}).then((e=>e.json())).then((e=>{r(e.message),e.success?i(e.message):a(n.RESOURCE_VALIDATION_ERROR)})).catch((e=>a(e.toString()))).finally((()=>l())))},o.executeGetPayload=function(e,o,t,i,a,l,c,d){(0,s.isBrowser)()&&(t(),fetch(e,{method:"GET",headers:o}).then((e=>e.json())).then((e=>{i(e[d]),e.success?a(e[d]):l((0,r.isEmptyString)(e.message)?n.RESOURCE_VALIDATION_ERROR:e.message)})).catch((e=>l(e.toString()))).finally((()=>c())))},o.executePostPayload=function(e,o,t,i,a,l,c,d){if(!(0,s.isBrowser)())return;i();const u={method:"POST",headers:t};o instanceof FormData?u.body=o:(u.body=JSON.stringify(o),u.headers={...u.headers,"Content-Type":"application/json"}),fetch(e,u).then((e=>e.json())).then((e=>{a(e),e.success?l(e):c((0,r.isEmptyString)(e.message)?n.RESOURCE_VALIDATION_ERROR:e.message)})).catch((e=>c(e.toString()))).finally((()=>d()))}},270:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.setUserStatus=o.hasUserReturnedBeyondNewUserTenureLimit=o.resolveUserId=o.initUser=o.isNewUser=void 0;const r=t(720),n=t(171),s=t(502),i="userId";o.isNewUser=!1;let a="";o.initUser=function(){var e;(0,r.retrieve)(i)?a=(0,r.retrieve)(i):(a=(0,n.generateUserId)(),e=a,(0,r.store)(i,e)),(0,s.isDevelopmentMode)()&&console.log(`active user id: ${a}`)},o.resolveUserId=function(){return a||(0,r.retrieve)(i)},o.hasUserReturnedBeyondNewUserTenureLimit=function(e){return Date.now()-e>3888e6},o.setUserStatus=function(e){o.isNewUser=e}},647:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.isBot=void 0;const r=t(694),n=[" daum[ /]"," deusu/"," yadirectfetcher","(?:^|[^g])news","(?{function t(){return"undefined"!=typeof window&&"undefined"!=typeof document}Object.defineProperty(o,"__esModule",{value:!0}),o.resolveDocumentTitle=o.resolveDocumentReferrer=o.resolveUserAgent=o.resolveActiveUrl=o.resolveHost=o.resolveWindow=o.isBrowser=void 0,o.isBrowser=t,o.resolveWindow=function(){return t()?window:null},o.resolveHost=function(){return t()?window.location.host:""},o.resolveActiveUrl=function(){return t()?window.location.href:""},o.resolveUserAgent=function(){return t()?window.navigator.userAgent:""},o.resolveDocumentReferrer=function(){return t()?document.referrer:""},o.resolveDocumentTitle=function(){return t()?document.title:""}},171:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.generateUserId=void 0,o.generateUserId=function(){return(Date.now()+Math.random()).toString(36)}},720:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.clear=o.retrieve=o.store=void 0;const r=t(694);o.store=function(e,o){(0,r.isBrowser)()&&localStorage.setItem(e,o)},o.retrieve=function(e){if(!(0,r.isBrowser)())return"";const o=localStorage.getItem(e);return null===o?"":o},o.clear=function(){(0,r.isBrowser)()&&localStorage.clear()}},407:(e,o,t)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.clear=o.retrieve=o.store=void 0;const r=t(694);o.store=function(e,o){(0,r.isBrowser)()&&sessionStorage.setItem(e,o)},o.retrieve=function(e){if(!(0,r.isBrowser)())return"";const o=sessionStorage.getItem(e);return null===o?"":o},o.clear=function(){(0,r.isBrowser)()&&sessionStorage.clear()}},838:(e,o)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.resolveUTMData=void 0,o.resolveUTMData=function(e){const o=new URLSearchParams(e);return{utmCampaign:o.get("utm_campaign")||"",utmContent:o.get("utm_content")||"",utmMedium:o.get("utm_medium")||"",utmSource:o.get("utm_source")||"",utmTerm:o.get("utm_term")||""}}}},o={};function t(r){var n=o[r];if(void 0!==n)return n.exports;var s=o[r]={exports:{}};return e[r](s,s.exports,t),s.exports}t.d=(e,o)=>{for(var r in o)t.o(o,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:o[r]})},t.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{const e=t(374),o=t(454),r=t(270),n=t(914),s=t(848),i=t(502),a=t(971),l=t(857),c=t(318),d=t(382),u=t(694);(0,u.isBrowser)()&&(window.init=function(t){(0,i.initConfig)(t),(0,d.validateProperty)(t.propertyToken,(0,u.resolveHost)()).then((i=>{i?t.stopAll=!1:(console.error(`propertyToken is not valid for ${(0,u.resolveHost)()}`),t.stopAll=!0),(0,o.initLocation)((()=>{(0,e.initPlatform)(),(0,r.initUser)(),(0,n.initSession)(),t.observePageViaWebAPI&&(0,s.initPageViewEventHandler)()}))})).catch((e=>{console.error(e)}))},window.resolveSimpleEvent=a.resolveSimpleEvent,window.resolveDataEvent=l.resolveDataEvent,window.pageViewObserver=s.pageViewObserver,window.sendEmail=c.sendEmail)})()})(); \ No newline at end of file