/*!
 * bv-analytics.js v3.18.4
 * Bazaarvoice Analytics Client
 * Copyright 2015 Bazaarvoice, Inc.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
!function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return e[o].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}var r=n(2),i=o(r),a=n(7),s=n(20),c="_bvaq",u="_bva";if(a[c]=a[c]||[],!a[u]||a[u]&&s(a[u].version,"3.18.4")<0){var l=a[u],f=a.BV?a.BV.privacy:null;a[u]=new i["default"]({name:"default",privacy:f}),l&&a[u]._setStateFromTracker(l)}a[c].length>0&&a[u].push.apply(a[u],a[c]),a[c]=a[u]},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e,t,n){"object"===("undefined"==typeof t?"undefined":a(t))&&(n=t,t=n.display||""),"object"===("undefined"==typeof e?"undefined":a(e))&&(n=e,t=n.display||"",e=n.client||""),n=n||{},this.trackingEnabled=n.anonymous===!1,this.name=n.name||"",this.cookieConsent=D.BV&&D.BV.cookieConsent?D.BV.cookieConsent:c,"string"==typeof e&&(n.client=e),"string"==typeof t&&(n.display=t),""!==this.name&&C["default"].trackers[this.name]&&A["default"].warn("A tracker with this name already exists: "+this.name),this._settings=l.extend({},this._defaults),this._settings.analyticsUnificationEnabled=n.analyticsUnificationEnabled||!1,this.version="3.18.4",this._shared={loadId:C["default"].loadId,tz:(new Date).getTimezoneOffset(),sourceVersion:this.version,magpieJsVersion:this.version,source:n.source||null,environment:n.environment||null,client:n.client||null,dc:n.display||null,host:m["default"].host},this._optionalConfigs=n.optionalConfigs||null,this._batch=null,this._unloaded=!1;var o=this;g["default"].add(D,"pagehide",function(){o._unload()}),g["default"].add(D,"beforeunload",function(){o._unload()}),this._bvCookiesRequest=N,this._requestQueue=[],this._id=null,this._idQueue=[],C["default"].trackers[this.name]=this,"true"===(0,T.getDoNotTrackCookie)()&&(0,T.removeFirstPartyTrackingCookies)(this.getBrandDomain()),this._handleConsentChange()}var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=n(3),c=r(s),u=n(4),l=r(u),f=n(5),d=o(f),h=n(9),g=o(h),p=n(10),m=o(p),v=n(11),y=o(v),b=n(17),k=o(b),_=n(18),C=o(_),S=n(21),w=o(S),E=n(13),A=o(E),T=n(16),D=n(7),I={enableValidation:function(e){var t=e[e.length-1];return!t||"function"==typeof t||!!C["default"].trackers[t]}},B={"public":1,"private":1,internal:1},N=0,R=1,x=2,O=i.prototype;O.create=function(e){var t=e.name,n=C["default"].trackers[t];return n?(e.source&&n.setSource(e.source),e.environment&&n.setEnvironment(e.environment),e.client&&n.setClient(e.client),e.display&&n.setDisplay(e.display),e.optionalConfigs&&n.setOptionalConfigs(e.optionalConfigs),n):new i(e)},O._defaults={customTrackerHostname:null,customAnonTrackerHostname:null,anonymous:!0,eu:!1,brandDomain:null,timing:!0,staging:!1,eventFilter:null,analyticsUnificationEnabled:!1},O._set=function(e,t){this._settings[e]=t},O._get=function(e){return this._settings[e]},O._filterClass=function(e){var t=this.getEventClassFilter();return t&&!t.exec(e)},O._getProtocol=function(){return"https:"},O._setStateFromTracker=function(e){if("number"!=typeof e.length){for(var t,n=["Client","Source","Display","Staging","Audience","Anonymous","LoadId","BrandDomain","Environment","EventClassFilter","TrackerHostname","AnonTrackerHostname"],o=0;o<n.length;o++)t=n[o],this["set"+t](e["get"+t]());return this}},O._trackerUrl=function(e,t){var n=this._getProtocol()+"//"+this.getTrackerHostname()+"/"+e;return t&&(n+="?_="+l.buster()),n},O._getPixel=function(e){if(this._optionalConfigs&&l.isFunction(this._optionalConfigs))try{var t=this._optionalConfigs();e=l.extend({},e,t)}catch(n){A["default"].warn("Error calling optionalConfigs: "+n.message)}return new y["default"]({validating:this.isValidating(),brandDomain:this.getBrandDomain(),data:l.extend({},this._shared,e)})},O._send=function(e){e.validating||(this.getAnonymous()?this._sendRequest(e.getUrl({anonymous:!0,hostname:this.getTrackerHostname()})):this._sendTrackedRequest(e))},O._sendValidatingRequest=function(e){var t=this._get("validationCallback");d["default"].get(e.getUrl({anonymous:!1,hostname:"schema.mag.bazaarvoice.com"}),function(n){l.isFunction(t)?t(n,e.data):n.error&&A["default"].error("Invalid Magpie event: "+n)})},O._sendRequest=function(e,t){var n;n=new Image(1,1),l.isFunction(t)&&(n.onload=function(){n.onload=null,t()}),n.src=e},O._sendTrackedRequest=function(e){this._bvCookiesRequest===N&&this._setBVCookies(),this._bvCookiesRequest===x?this._sendRequest(e.getUrl({anonymous:this.getAnonymous(),hostname:this.getTrackerHostname()})):this._requestQueue.push(e)},O._setBVCookies=function(){var e=this,t=e._trackerUrl("sid.gif",!0);e._sendRequest(t,function(){e.getID(function(t){t.NoCookie&&(0,T.removeFirstPartyTrackingCookies)(e.getBrandDomain()),e._bvCookiesRequest=x,e._flushRequestQueue()}),e._loadBVID()}),e._bvCookiesRequest=R},O._flushRequestQueue=function(){for(;this._requestQueue.length;)this._send(this._requestQueue.shift())},O._loadBVID=function(){var e=this,t=e._trackerUrl("id.json",!0),n=e.getTrackerHostname();d["default"].get(t,function(t){e._id=t,e._id.hostname=n,e._flushIdQueue()})},O._flushIdQueue=function(){for(var e,t=this._id,n=this._idQueue;n.length;)e=n.shift(),l.isFunction(e)&&e(t)},O._unload=function(){this._unloaded||(this.flushBatch(),this._unloaded=!0)},O._timing=function(){var e,t=D.performance||D.webkitPerformance||D.mozPerformance||D.oPerformance||D.msPerformance||!1;return t!==!1&&t.timing?(e=t.timing,{dns:e.domainLookupEnd-e.domainLookupStart,con:e.connectEnd-e.connectStart,req:e.responseStart-e.connectEnd,res:e.responseEnd-e.responseStart,load:e.loadEventStart-e.responseEnd,tot:e.loadEventEnd-e.navigationStart}):{}},O._isPII=function(e){return e&&"pii"===e.substring(0,3).toLowerCase()},O.setClient=function(e){this._shared.client=e},O.getClient=function(){return this._shared.client},O.setDisplay=function(e){this._shared.dc=e},O.getDisplay=function(){return this._shared.dc},O.setAnonymous=function(e){var t="true"===(0,T.getDoNotTrackCookie)();t?this._set("anonymous",!0):this._set("anonymous",e)},O.getAnonymous=function(){return"true"===(0,T.getDoNotTrackCookie)()||this._get("anonymous")},O.setEU=function(e){this._set("eu",e)},O.getEU=function(){return this._get("eu")},O.setTrackerHostname=function(e){this._set("customTrackerHostname",e),this._id=null,this._bvCookiesRequest=N},O.getTrackerHostname=function(){var e=this._get("customTrackerHostname");if(e)return e;if(this.isValidating())return"schema.mag.bazaarvoice.com";var t="network";return this.getEU()&&(t+="-eu"),this.getStaging()&&(t+="-stg"),this.getAnonymous()&&(t+="-a"),t+=".bazaarvoice.com"},O.setAnonTrackerHostname=function(e){return A["default"].warn('The "setAnonTrackerHostname" function will be deprecated. Please use "setTrackerHostname".'),this.setTrackerHostname(e)},O.getAnonTrackerHostname=function(){return A["default"].warn('The "getAnonTrackerHostname" function will be deprecated. Please use "getTrackerHostname".'),this.getTrackerHostname()},O.setBrandDomain=function(e){l.isString(e)&&e.length>0?(0,T.setBrandCookies)(e):e=null,this._set("brandDomain",e)},O.getBrandDomain=function(){return this._get("brandDomain")},O.enableTiming=function(){this._set("timing",!0)},O.disableTiming=function(){this._set("timing",!1)},O.setSource=function(e){this._shared.source=e},O.getSource=function(){return this._shared.source},O.setEnvironment=function(e){this._shared.environment=e},O.getEnvironment=function(){return this._shared.environment},O.setAudience=function(e){var t=this._shared;B[e]&&("public"===e?delete t.audience:t.audience=e)},O.getAudience=function(){return this._shared.audience||"public"},O.enableValidation=function(e){this._set("validate",!0),l.isFunction(e)&&this._set("validationCallback",e)},O.disableValidation=function(){this._set("validate",!1),this._set("validationCallback",null)},O.isValidating=function(){return!1},O.setStaging=function(e){this._set("staging",!!e),this._id=null,this._bvCookiesRequest=N},O.getStaging=function(){return this._get("staging")},O.getEventClassFilter=function(){return this._get("eventClassFilter")},O.setEventClassFilter=function(e){if(l.isString(e))try{e=new RegExp(e)}catch(t){A["default"].error("Invalid regex passed to event class filter.")}this._set("eventClassFilter",e)},O.setOptionalConfigs=function(e){this._optionalConfigs=e},O.getID=function(e){l.isFunction(e)&&(this._id?e(this._id):this._idQueue.push(e))},O.trackEvent=function(e,t){if(!this._filterClass(e))if(t=t||{},t.cl=e,l.transformData(t,"Brand","brand"),this._isPII(e)){var n=this.getAnonymous();this.setAnonymous(!0);var o=this._getPixel(t);this._sendRequest(o.getUrl({anonymous:!0,hostname:this.getTrackerHostname()})),this.setAnonymous(n);var r={bvProduct:t.bvProduct,cl:t.cl,detail1:t.detail1,name:t.name,productId:t.productId};C["default"].dispatcher.fireCallbacks(e,r,this.name)}else{var i=this._getPixel(t);this._send(i),C["default"].dispatcher.fireCallbacks(e,i.getEvent(),this.name)}},O.trackPageView=function(e){e=e||{},l.extend(e,m["default"]),this._get("timing")&&(e.t=this._timing()),this.trackEvent("PageView",e)},O.trackPageViewWithConsent=function(e){e=e||{},e.bvProduct="bv-analytics",this._fireConsentIdentity(e)},O._fireConsentIdentity=function(e){var t="AnalyticsUnificationEvent";e=e||{},l.extend(e,m["default"]),e.cl=t;var n=this._getPixel(e),o=n.getEvent();C["default"].dispatcher.fireCallbacks(t,o,"bv-loader")},O.trackConversion=function(e){var t=k["default"].create(e);t&&(t.containsPII()&&this.trackEvent(k["default"].PII_EVENT_CLASS,t.getPIIData()),this.trackEvent(k["default"].EVENT_CLASS,t.getAnonymizedData()))},O.trackTransaction=function(e){function t(e){if(e=l.extend({},e||{}),"transaction_id"in e&&(e.orderId=e.transaction_id,delete e.transaction_id),"products"in e&&(e.items=e.products,delete e.products),l.isArray(e.items)){var t,n;for(t=0,n=e.items.length;t<n;t++)e.items[t].orderId=e.orderId,"productId"in e.items[t]&&(e.items[t].sku=e.items[t].productId)}var o={type:"Transaction",label:"TransactionThankYou",value:null};for(var r in o)"undefined"==typeof e[r]&&(e[r]=o[r]);return e}this.trackConversion(t(e))},O.addMeta=function(e,t){this._shared.meta||(this._shared.meta={}),this._shared.meta[e]=t},O.removeMeta=function(e){var t=this._shared.meta;e in t&&t.hasOwnProperty(e)&&delete t[e]},O.addBatch=function(e){this._batch&&this._batch.items.length>0&&this.flushBatch(),this._batch={data:e||{},items:[]}},O.addBatchItem=function(e,t){var n;if(!this._filterClass(e)){if(this._isPII(e))return this.trackEvent(e,t);t=t||{},t.cl=e,l.transformData(t,"Brand","brand"),C["default"].dispatcher.fireCallbacks(e,this._getPixel(t).getEvent(),this.name),this._batch||this.addBatch(),this._batch.items.push(t),n=this._getPixel(this.getBatch());var o=n.getUrl({anonymous:this.getAnonymous(),hostname:this.getTrackerHostname()});n.tooLong&&(this._batch.items.pop(),0===this._batch.items.length?this._sendRequest(o):(this.flushBatch(),this._batch.items.push(t)))}},O.flushBatch=function(){this._batch&&this._batch.items&&this._batch.items.length>0&&(this._send(this._getPixel(this.getBatch())),this._batch.items=[])},O.getBatch=function(){return this._batch?l.extend({batch:this._batch.items},this._batch.data):""},O.push=function(){try{for(var e=0,t=arguments.length;e<t;e++){var n=arguments[e];if(l.isFunction(n))n.call(D);else if(l.isArray(n)){if(0===n.length)continue;var o=n[0];if(!l.isString(o)||"_"===o.charAt(0))continue;if(!l.isFunction(this[o]))continue;var r=n.slice(1),i=r[r.length-1],a=C["default"].trackers[i];if(!a){var s=!I[o]&&this[o].length===r.length||I[o]&&I[o](r);if(!s){A["default"].warn("No tracker was found with the name "+i);var c={name:"Implementation Error",type:"Error",source:"analyticsjs",detail1:"Named tracker was not found",detail2:i,detail3:o};this.trackEvent("Error",c);continue}a=C["default"].trackers["default"]}a[o].apply(a,r)}}}catch(u){A["default"].error(u.stack)}return 1},O.resetLoadId=function(){C["default"].loadId=l.loadId(),this._shared.loadId=C["default"].loadId},O.setLoadId=function(e){C["default"].loadId=e,this._shared.loadId=e},O.getLoadId=function(){return this._shared.loadId},O.configureSCIProvider=function(e,t){this.cookieConsent&&!t.cookieConsent&&(t.cookieConsent=this.cookieConsent);var n=w["default"].create(e,t,this);this.registerListener("*",n,this.name)},O.registerListener=function(e,t,n){return"function"==typeof e&&(n=t,t=e,e="*"),"function"!=typeof t?void A["default"].warn("registerListener arg callback must be a function"):"string"!=typeof n||"undefined"==typeof n?void A["default"].warn("registerListener arg name must be a string."):void C["default"].dispatcher.registerCallback(e,t,n)},O.doNotTrack=function(){var e=this.getBrandDomain();(0,T.setDoNotTrackCookie)(e),(0,T.removeFirstPartyTrackingCookies)(e),this._set("anonymous",!0)},O.startTracking=function(){var e=this.getBrandDomain();(0,T.removeDoNotTrackCookie)(e),this.setBrandDomain(e),this.trackingEnabled&&this._set("anonymous",!1)},O._handleConsentChange=function(){function e(){var e=t.cookieConsent.getConsent("BVBRANDID"),n=t.cookieConsent.getConsent("BVBRANDSID"),o=e&&n;o?t.startTracking():t.doNotTrack(),t._get("analyticsUnificationEnabled")&&"pixel"===t.name&&t.trackPageViewWithConsent()}var t=this,n=l.debounce(e,100);e(),this.cookieConsent.subscribe("BVBRANDID","change",n),this.cookieConsent.subscribe("BVBRANDSID","change",n)},e.exports=i},function(e,t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t,n){p[e]&&p[e][t]&&Object.values(p[e][t]).forEach(function(e){e(n)})}function t(){Object.values(v).length>0&&Object.values(v).forEach(function(e){e(Object.assign({},g))})}function o(t,n){if("boolean"!=typeof n)throw new TypeError("cookieConsent (setConsent): consent values should be of type boolean. Check value for "+t+".");var o=g[t];o!==n&&(g[t]=n,void 0===o&&e(t,"add",n),o===!0?(e(t,"disable",n),e(t,"change",n)):o===!1?(e(t,"enable",n),e(t,"change",n)):e(t,"change",n))}function r(){p[this.consentKey]&&p[this.consentKey][this.eventName]&&delete p[this.consentKey][this.eventName][this.key]}function i(){v[this.key]&&delete v[this.key]}function a(){return h}function s(e,t){if(!d){if(h=!!t)return d=!0,!0;if(!e||Array.isArray(e)||"object"!==("undefined"==typeof e?"undefined":n(e)))throw new TypeError("cookieConsent (init): consent should be an object.");for(var o=Object.keys(e),r=0;r<o.length;r++)if("boolean"!=typeof e[o[r]])throw new TypeError("cookieConsent (init): consent values for "+o[r]+" should be of type boolean.");return g=Object.assign({},e),d=!0,!0}return!1}function c(e){return!!h||g[e]}function u(e){if(d&&!h){if(!e||Array.isArray(e)||"object"!==("undefined"==typeof e?"undefined":n(e)))throw new TypeError("cookieConsent (setConsent): consent should be an object.");for(var r,i=Object.keys(e),a=0;a<i.length;a++)o(i[a],e[i[a]]);var s=Object.assign({},r);return JSON.stringify(s)!==JSON.stringify(r)&&t(),!0}return!1}function l(e,t,n){if("string"!=typeof e)throw new TypeError("cookieConsent (subscribe): consent key should be of type string.");if("string"!=typeof t)throw new TypeError("cookieConsent (subscribe): event name should be of type string.");if(!m.includes(t))throw new TypeError("cookieConsent (subscribe): event name should be one of "+m.join(", ")+".");if("function"!=typeof n)throw new TypeError("cookieConsent (subscribe): callback should be a function.");p[e]||(p[e]={}),p[e][t]||(p[e][t]={});var o=Math.random().toString(36).substr(2,5);return p[e][t][o]=n,{unsubscribe:r.bind({consentKey:e,eventName:t,key:o})}}function f(e){if("function"!=typeof e)throw new TypeError("cookieConsent (subscribeToConsentStore): callback should be a function.");var t=Math.random().toString(36).substr(2,5);return v[t]=e,{unsubscribe:i.bind({key:t})}}var d=!1,h=!0,g={},p={},m=["add","enable","disable","change"],v={};return{initConsent:s,getConsent:c,getConsentDisabled:a,setConsent:u,subscribe:l,subscribeToConsentStore:f}}();e.exports=o},function(e,t){"use strict";function n(e){var t,n,o=[].slice.call(arguments,1);for(var r in o)if(o.hasOwnProperty(r)){t=o[r];for(n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}return e}function o(){return Math.round(2147483647*Math.random()).toString(36)}function r(e){return"[object Array]"===y.call(e)}function i(e){return s(e)&&"[object Function]"===y.call(e)}function a(e){return"string"==typeof e||u(e)&&"[object String]"===y.call(e)}function s(e){var t="undefined"==typeof e?"undefined":v(e);return!!e&&("object"===t||"function"===t)}function c(e){return"number"==typeof e||u(e)&&"[object Number]"===y.call(e)}function u(e){return!!e&&"object"===("undefined"==typeof e?"undefined":v(e))}function l(){for(var e=16,t=20,n=Math.floor(Math.random()*(t-e+1)+e),o="",r=0;r++<n;)o+=(16*Math.random()|0).toString(16);return o}function f(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0,n="x"===e?t:t%4+8;return n.toString(16)})}function d(e,t,n){"undefined"!=typeof e&&null!==e&&t!==n&&e.hasOwnProperty(t)&&(e[n]=e[t],delete e[t])}function h(){if(navigator.cookieEnabled)return function(){for(var e=0,t=document.domain,n=t.split("."),o="_gd"+(new Date).getTime();e<n.length-1&&document.cookie.indexOf(o+"="+o)===-1;)t=n.slice(-1-++e).join("."),document.cookie=o+"="+o+";domain="+t+";";return document.cookie=o+"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;domain="+t+";",t}()}function g(){return"https:"===window.location.protocol}function p(){return"localhost"===document.domain||"127.0.0.1"===document.domain}function m(e,t){if(!i(e))return function(){};t="number"==typeof t?t:0;var n=null;return function(){var o=this,r=arguments;n&&clearTimeout(n),n=setTimeout(function(){e.apply(o,r)},t)}}var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=Object.prototype.toString;e.exports={extend:n,buster:o,isArray:r,isDomainLocalhost:p,isFunction:i,isString:a,isObject:s,isNumber:c,isObjectLike:u,loadId:l,uuid:f,transformData:d,getDomainWithoutSubdomain:h,isProtocolSecure:g,debounce:m}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e,t,n){var o,r=(e||"").indexOf("?")===-1?"?":"&";return s.isFunction(t)&&(o="_bvajsonp"+ ++f,d[o]=function(e){try{delete d[o]}catch(n){d[o]=null}t(e)},u["default"].loadScript(e+r+(n||"callback")+"="+o)),o}var a=n(4),s=r(a),c=n(6),u=o(c),l=n(7),f=0,d=l;e.exports={get:i}},function(e,t,n){"use strict";function o(){return c.getElementsByTagName("script")[0]}function r(e){return!e||"loaded"===e||"complete"===e||"uninitialized"===e}function i(e,t,n){if(!e||"string"!=typeof e)throw new Error("`url` must be a string");if(t.namespaceName&&"string"!=typeof t.namespaceName)throw new Error("`options.namespaceName` must be a string");if(t.forceLoad&&"boolean"!=typeof t.forceLoad)throw new Error("`options.forceLoad` must be a boolean");if("number"!=typeof t.timeout)throw new Error("`options.timeout` must be a number");if(n&&"function"!=typeof n)throw new Error("`callback` must be a function")}var a=n(7),s=n(8),c=a.document,u=1e4,l={};e.exports={_clearLoadedUrls:function(e){if(e){var t=s.namespace(e);t.loadedUrls={}}else l={}},loadScript:function(e,t,n){function a(o){p=!0,clearTimeout(m),g.onload=g.onreadystatechange=g.onerror=null,g&&g.parentNode&&g.parentNode.removeChild(g),o||(d[e]=!0,t.namespaceName?f.loadedUrls=d:l=d),"function"==typeof n&&n(o)}var f,d=l;if("function"==typeof t&&(n=t,t=null),t=t||{},t.timeout=t.timeout||u,i(e,t,n),t.namespaceName&&(f=s.namespace(t.namespaceName),d=f.loadedUrls||{}),!t.forceLoad&&d[e])return void("function"==typeof n&&n());var h,g=c.createElement("script"),p=!1;if(t.attributes)for(h in t.attributes)g.setAttribute(h,t.attributes[h]);g.onreadystatechange=g.onload=function(){!p&&r(g.readyState)&&a()},g.onerror=function(){p||a(new Error("Error: could not load "+e))};var m=setTimeout(function(){p||a(new Error("Error: script timeout "+e))},t.timeout);setTimeout(function(){g.src=e;var t=o();t.parentNode.insertBefore(g,t)},0)},loadStyleSheet:function(e,t,n){function f(o){m=!0,clearTimeout(v),p.onload=p.onreadystatechange=p.onerror=null,o||(h[e]=!0,t.namespaceName?d.loadedUrls=h:l=h),"function"==typeof n&&n(o)}var d,h=l;if("function"==typeof t&&(n=t,t=null),t=t||{},t.timeout=t.timeout||u,i(e,t,n),"injectionNode"in t&&!(t.injectionNode instanceof a.Element))throw new Error("`options.injectionNode` must be a DOM node");if(t.namespaceName&&(d=s.namespace(t.namespaceName),h=d.loadedUrls||{}),!t.forceLoad&&h[e])return void("function"==typeof n&&n());var g,p=c.createElement("link"),m=!1;if(t.attributes)for(g in t.attributes)p.setAttribute(g,t.attributes[g]);p.onreadystatechange=p.onload=function(){!m&&r(p.readyState)&&f()},p.onerror=function(){m||f(new Error("Error: could not load "+e))};var v=setTimeout(p.onerror,t.timeout);setTimeout(function(){p.media="only x",p.rel="stylesheet",p.type="text/css",p.href=e,setTimeout(function(){p.media="all"},0);var n=t.injectionNode||o().parentNode;try{n.appendChild(p)}catch(r){f(new Error("Error: could not append LINK element"))}},0)}}},function(e,t){(function(t){"use strict";var n=function(){var e=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof window)return window;if("undefined"!=typeof self)return self;if("undefined"!=typeof t)return t;throw new Error("unable to locate global object")}();if(e&&e.__esModule&&"undefined"!=typeof window&&e!==window){var n=new Proxy(e,{get:function(e,t){return"default"===t?e:e[t]},set:function(e,t,n){return e[t]=n,!0}});return n}return e};e.exports=n()}).call(t,function(){return this}())},function(e,t,n){"use strict";function o(e){this.name=e}var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=n(7);o.prototype.registerProperty=function(e,t){if(this.hasOwnProperty(e))throw new Error("Cannot register "+e+" because a property with that name already exists on window."+this.name);return this[e]=t,this},e.exports={namespace:function(e){if(void 0===i[e])Object.defineProperty(i,e,{value:new o(e)});else{if("object"!==r(i[e]))throw new Error("Namespace "+e+" cannot be created. A non-object variable is already assigned to window."+e);if(!(i[e]instanceof o)){o.call(i[e],e);for(var t in o.prototype)i[e][t]=o.prototype[t]}}return i[e]}}},function(e,t){"use strict";function n(e,t,n,o){e.addEventListener?e.addEventListener(t,n,!!o):e.attachEvent&&e.attachEvent("on"+t,n)}function o(e,t,n,o){e.removeEventListener?e.removeEventListener(t,n,!!o):e.detachEvent&&e.detachEvent("on"+t,n)}e.exports={add:n,remove:o}},function(e,t,n){"use strict";var o,r,i=n(7),a=i.navigator,s=i.screen,c=document,u=c.getElementsByTagName("link"),l=u.length;for(r=0;r<l;r++)"canonical"===u[r].getAttribute("rel")&&(o=u[r].href);e.exports={host:i.location.host,href:i.location.href,ref:c.referrer,canurl:o,res:s?s.width+"x"+s.height:"-",lang:(a&&(a.language||a.browserLanguage)||"-").toLowerCase(),charset:c.characterSet||c.charset||"-",geo:navigator.geolocation?1:0,cookies:navigator.cookieEnabled?1:0}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function i(e){var t=e.validating,n=e.brandDomain,o=e.data;if(!o)throw new Error("data is required for tracking url");this.brandDomain=n,this.data=this._sanitizeUrlData(o),this.tooLong=!1,this.validating=t}var a=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(c){r=!0,i=c}finally{try{!o&&s["return"]&&s["return"]()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=n(4),c=r(s),u=n(12),l=o(u),f=n(13),d=o(f),h=n(16),g=n(14),p="r_",m=2036,v=g?m:8192,y={PageView:{ref:1}},b={cl:0,loadId:1,type:2},k="https",_=/(\/|.\w*(=|%(25)*3D))([0-9A-F][0-9A-F](%(25)*2C)?)*(7573657269643d|7573657249643d|7573657249443d|5573657269643d|5573657249643d|5573657249443d|5553455249443d)([0-9A-F][0-9A-F](%(25)*2C)?)*|[&|?][\w]+=[^&?]+[@|%40][\w-.]+/gi;i.prototype.getEvent=function(){return this._buildEvent(this.data)},i.prototype.getUrl=function(e){var t=e.anonymous,n=e.hostname;if("undefined"==typeof n)throw new Error("hostname required to build pixel url.");if("undefined"==typeof t)throw new Error("anonymous required to build pixel url.");return this._buildUrl({ev:this._buildEvent(this.data),ignoreTooLong:!1,anonymous:t,hostname:n})},i.prototype._buildEvent=function(e){var t=(0,h.getBrandCookiesAlways)(this.brandDomain),n=c.extend({},t,e);return n._=c.buster(),n},i.prototype._buildUrl=function(e){var t,n,o,r=e.anonymous,i=e.hostname,a=e.ev,s=e.ignoreTooLong;if(t=this.encode(a),!t)return"";var c=(r?"a":"st")+(this.validating?".json":".gif"),u=k+"://"+i+"/"+c;n=u+"?"+t.required;var l=document.createElement("iframe");return l.src=n,n=l.src,o=v-n.length,o<0?(n=s?"":this._urlTooLong({url:n,encoded:t,anonymous:r,hostname:i}),this.tooLong=!0):t.optional.length>0&&(n+=this.addOptional(t.optional,o)),n},i.prototype._urlTooLong=function(e){var t=e.url,n=e.encoded,o=e.anonymous,r=e.hostname,i={cl:"Magpie",type:"LongUrl",length:(t||"").length,maxLength:v,targetCl:this.data.cl?this.data.cl.substr(0,200):null,longestField:n.longestField.substr(0,200)};return this._buildUrl({ev:this._buildEvent(i),ignoreTooLong:!0,anonymous:o,hostname:r})},i.prototype.addOptional=function(e,t){var n,o,r,i,a="";for(e=e||[],i=e.length,n=0;t>0&&n<i;n++)o=e[n]||"",o.length+1>t&&(o=o.substr(0,t-1),o.indexOf("=")===-1)||(r="&"+o,a+=r,t-=r.length);return a},i.prototype.quoteParam=function(e,t){var n=null;if(void 0!==e&&void 0!==t)try{(c.isArray(t)||c.isObject(t))&&(e=p+e,t=l["default"].encode(t)),n=l["default"].quote(e)+"="+l["default"].quote(""+t)}catch(o){d["default"].error(o.stack)}return n},i.prototype.encode=function(e){var t,n,o=y[e.cl]||{},r=0,i=[],a=[],s={optional:[],longestField:null};if(!c.isObject(e))return null;for(t in e)if(e.hasOwnProperty(t)&&null!==e[t]&&e[t]===e[t]&&(n=this.quoteParam(t,e[t]),null!==n))if(o&&t in o)s.optional.push(n);else{if(t in b){var u=b[t];i.length>u?i.splice(u,0,n):i.push(n)}else a.push(n);n.length>r&&(s.longestField=t,r=n.length)}return s.required=i.concat(a).join("&"),s},i.prototype._sanitizeUrlData=function(e){var t=this;if(e instanceof Object==!1)return e;var n=["ref","href","page"];return Object.keys(e).forEach(function(o){n.indexOf(o.toLowerCase())!==-1&&(e[o]=t._removeURLParameters(e[o],_)),"batch"===o&&e[o].forEach(function(e){Object.keys(e).forEach(function(o){n.indexOf(o.toLowerCase())!==-1&&(e[o]=t._removeURLParameters(e[o],_))})})}),e},i.prototype._removeURLParameters=function(e,t){if(!t)return e;var n=e.split("?"),o=a(n,2),r=o[0],i=o[1];if(!i)return e;var s=i.replace(t,"");return"&"===s.charAt(0)&&(s=s.substring(1)),s?r+"?"+s:r},e.exports=i},function(e,t){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o={};o.uri_ok={"~":!0,"!":!0,"*":!0,"(":!0,")":!0,"-":!0,_:!0,".":!0,",":!0,":":!0,"@":!0,$:!0,"'":!0,"/":!0},function(){for(var e=[],t=0;t<16;t++)for(var n=0;n<16;n++)if(t+n!==0){var r=String.fromCharCode(16*t+n);/\w|[\-_.\/~]/.test(r)||e.push("\\u00"+t.toString(16)+n.toString(16))}o.not_idchar=e.join("")}(),o.not_idchar=" \t\r\n\"<>\\[\\]{}'!=:(),*@$;&",o.not_idstart="-0123456789",function(){var e="[^"+o.not_idstart+o.not_idchar+"][^"+o.not_idchar+"]*";o.id_ok=new RegExp("^"+e+"$"),o.next_id=new RegExp(e,"g")}(),o.quote=function(e){var t=o.uri_ok;return/^[A-Za-z0-9_\-]*$/.test(e)?e:(e=e.replace(/([^A-Za-z0-9_\-])/g,function(e,n){var o=t[n];return o?n:encodeURIComponent(n)}),e.replace(/%20/g,"+"))},function(){var e={"'":!0,"!":!0},t={array:function(e){var o,r,i,a,s=["!("],c=e.length;for(i=0;i<c;i+=1)a=e[i],r=t["undefined"==typeof a?"undefined":n(a)],r&&(a=r(a),"string"==typeof a&&(o&&(s[s.length]=","),s[s.length]=a,o=!0));return s[s.length]=")",s.join("")},"boolean":function(e){return e?"!t":"!f"},"null":function(e){return"!n"},number:function(e){return isFinite(e)?String(e).replace(/\+/,""):"!n"},object:function(e){if(e){if(e instanceof Array)return t.array(e);if("object"===n(e.__prototype__)&&"undefined"!=typeof e.__prototype__.encode_rison)return e.encode_rison();var o,r,i,a,s,c=["("],u=[];for(i in e)u[u.length]=i;for(u.sort(),s=0;s<u.length;s++)i=u[s],a=e[i],r=t["undefined"==typeof a?"undefined":n(a)],r&&(a=r(a),"string"==typeof a&&(o&&(c[c.length]=","),c.push(t.string(i),":",a),o=!0));return c[c.length]=")",c.join("")}return"!n"},string:function(t){return""===t?"''":o.id_ok.test(t)?t:(t=t.replace(/(['!])/g,function(t,n){return e[n]?"!"+n:n}),"'"+t+"'")},undefined:function(e){return"!n"}};o.encode=function(e){return t["undefined"==typeof e?"undefined":n(e)](e)}}(),e.exports=o},function(e,t,n){"use strict";function o(e,t){if(s!==h.OFF&&r.console){if(t=[].slice.call(t),"function"==typeof t[0]&&(t=t[0]()),i)return void r.console.log(t);try{(r.console[e]||r.console.log).apply(r.console,t)}catch(n){}}}var r=n(7),i=n(14),a=n(15),s=4,c={},u=a.read("_bvui_debug");if(u)for(var l,f=u.split(","),d=0;d<f.length;d++)l=f[d].split(":"),c[l[0]]=l[1];c.logLevel&&(s=c.logLevel);var h={DEBUG:-1,LOG:0,INFO:1,WARN:2,ERROR:3,OFF:4,getLogLevel:function(){return s},setLogLevel:function(e,t){s=!c.logLevel||t?e||h.LOG:c.logLevel,o("log",["Log level set to",s])},debug:function(){s<=h.DEBUG&&o("log",arguments)},log:function(){s<=h.LOG&&o("log",arguments)},info:function(){s<=h.INFO&&o("info",arguments)},warn:function(){s<=h.WARN&&o("warn",arguments)},error:function(){s<=h.ERROR&&o("error",arguments)},count:function(){s<h.INFO&&o("count",arguments)},time:function(){s<h.WARN&&o("time",arguments)},timeEnd:function(){s<h.WARN&&o("timeEnd",arguments)},group:function(e){var t=Array.prototype.slice.call(arguments,1);s<=e&&(o("group",t),o("time",t))},groupEnd:function(e){var t=Array.prototype.slice.call(arguments,1);s<=e&&(o("groupEnd",t),o("timeEnd",t))},assert:function(e,t){if(s!==h.OFF){if("function"==typeof e)return void h.assert.apply(null,e());if(!e)throw new Error("Assertion failed: "+t)}}};e.exports=h},function(e,t,n){"use strict";var o=n(7).document;e.exports=function(){var e=function(e,t,n){for(var o=t.getElementsByTagName("i");t.innerHTML="<!--[if gt IE "+ ++e+"]><i></i><![endif]-->",o[0];);return e>4?e:n}(3,o.createElement("div"));return e}()},function(e,t,n){"use strict";function o(e,t,n,o,r){var i=new Date;i.setTime(i.getTime()+24*n*60*60*1e3);var s=n?";expires="+i.toGMTString():"",c=encodeURIComponent(e)+"="+encodeURIComponent(t)+s+";path=/"+(o?";domain="+o:"")+(r?";secure":"");a.document.cookie=c}function r(e){var t,n=encodeURIComponent(e)+"=",o=a.document.cookie.split(";");for(t=0;t<o.length;t++){for(var r=o[t];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(n))return decodeURIComponent(r.substring(n.length,r.length));
}return null}function i(e,t){delete c[e],t?o(e,null,-1,t):o(e,"",-1)}var a=n(7),s=n(3),c={};e.exports={create:function(e,t,n,r,a){c[e]=t;var u=s.getConsent(e);u&&o(e,t,n,r,a),s.subscribe(e,"add",function(s){s?o(e,t,n,r,a):i(e,r)}),s.subscribe(e,"enable",function(){o(e,t,n,r,a)}),s.subscribe(e,"disable",function(){i(e,r)})},read:r,remove:i}},function(e,t,n){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function r(){var e=void 0;return v&&(e=b.read(y)),null===e||"false"===e}function i(e){var t=r()&&e&&v;return{BVBRANDID:t?b.read("BVBRANDID"):null,BVBRANDSID:t?b.read("BVBRANDSID"):null,BVCRL8ID:t?b.read("crl8.fpcuid"):null}}function a(e){var t=e&&v;return{BVBRANDID:t?b.read("BVBRANDID"):null,BVBRANDSID:t?b.read("BVBRANDSID"):null,BVCRL8ID:t?b.read("crl8.fpcuid"):null}}function s(e){if(e&&v&&r()){var t=1/48,n=365,o=i(e);o.BVBRANDID||b.create("BVBRANDID",p.uuid(),n,e,p.isProtocolSecure()),o.BVBRANDSID||b.create("BVBRANDSID",p.uuid(),t,e,p.isProtocolSecure())}}function c(){var e=void 0;return v&&(e=b.read(y)),e}function u(e){v&&(e=e||""+(p.isDomainLocalhost()?"":".")+p.getDomainWithoutSubdomain(),b.create(y,!0,k,e))}function l(e){v&&(e=e||""+(p.isDomainLocalhost()?"":".")+p.getDomainWithoutSubdomain(),b.remove(y,e))}function f(e){v&&(e=e||""+(p.isDomainLocalhost()?"":".")+p.getDomainWithoutSubdomain(),b.remove("BVBRANDID",e),b.remove("BVBRANDSID",e))}Object.defineProperty(t,"__esModule",{value:!0}),t.firstPartyTrackingCookiesAllowed=r,t.getBrandCookies=i,t.getBrandCookiesAlways=a,t.setBrandCookies=s,t.getDoNotTrackCookie=c,t.setDoNotTrackCookie=u,t.removeDoNotTrackCookie=l,t.removeFirstPartyTrackingCookies=f;var d=n(15),h=o(d),g=n(4),p=o(g),m=n(7),v=navigator.cookieEnabled,y="NoCookie",b=m.BV&&m.BV.cookie?m.BV.cookie:h,k=7300},function(e,t,n){"use strict";function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function r(e,t){var n=e&&e[t];return null!==n&&void 0!==n}function i(e,t){var n=t.length;if(!c.isObject(e)&&n<0)return!1;for(;n--;)if(!r(e,t[n]))return!1;return!0}function a(e){return i(e,d)}var s=n(4),c=o(s),u="Conversion",l="PII"+u,f={orderId:1,affiliation:1,total:1,tax:1,shipping:1,city:1,state:1,country:1,currency:1,items:1,locale:1,discount:1,type:1,label:1,value:1,proxy:1,partnerSource:1,deploymentZone:1,TestCase:1,TestSession:1},d=["type"],h="public_",g=function(e){var t;this._data=e,this._anonymized={},this._hasPII=!1;for(t in e)e.hasOwnProperty(t)&&(f[t]||0===t.indexOf(h)?this._anonymized[t]=e[t]:this._hasPII=!0);this._hasPII===!0&&(this._anonymized.hadPII=!0)},p=g.prototype;p.containsPII=function(){return this._hasPII},p.getAnonymizedData=function(){return this._anonymized},p.getPIIData=function(){return this._data},e.exports={EVENT_CLASS:u,PII_EVENT_CLASS:l,create:function(e){return a(e)?new g(e):null}}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{"default":e}}var r=n(8),i=o(r),a=n(4),s=n(19),c=o(s),u=n(20),l=i["default"].namespace("BVA");try{l.registerProperty("trackers",{})}catch(f){}try{l.registerProperty("loadId",(0,a.loadId)())}catch(f){}try{l.registerProperty("dispatcher",new c["default"])}catch(f){var d=l.dispatcher.version,h=c["default"].prototype.version;1===u(h,d)&&(l.dispatcher=c["default"].copy(l.dispatcher))}e.exports=l},function(e,t,n){"use strict";function o(){this.callbacks={"default":{"*":[]}}}o.prototype.registerCallback=function(e,t,n){this.callbacks[n]=this.callbacks[n]||{"*":[]},this.callbacks[n][e]=this.callbacks[n][e]||[],this.callbacks[n][e].push(t)},o.prototype.fireCallbacks=function(e,t,n){if("undefined"!=typeof this.callbacks[n]){var o=this.callbacks[n][e];o&&o.forEach(function(e){e(t)}),"*"!==e&&this.callbacks[n]["*"].forEach(function(e){e(t)})}},o.prototype.version="3.18.4",o.copy=function(e){var t=new o;return t.callbacks=e.callbacks,t},e.exports=o},function(e,t){e.exports=function(e,t){for(var n=e.split("."),o=t.split("."),r=0;r<3;r++){var i=Number(n[r]),a=Number(o[r]);if(i>a)return 1;if(a>i)return-1;if(!isNaN(i)&&isNaN(a))return 1;if(isNaN(i)&&!isNaN(a))return-1}return 0}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_logger=__webpack_require__(13),_logger2=_interopRequireDefault(_logger),_cookies=__webpack_require__(16),_util=__webpack_require__(4),global=__webpack_require__(7),vendorMap={ADOBE:"AdobeSiteCatalyst",IBM:"IBMDigitalAnalytics",GOOGLE:"GoogleAnalytics"},eventGroup="Bazaarvoice",delimiter=" : ",trackingMap={Ask:{label:["Button"]},Click:{label:["SecondaryContentLink","ViewProfileButton","Stars","ReadReviewsButton","SummaryStars","WriteReviewLabel","ReviewCount","SummaryQuestionStats","YesHelpfulVote","NoHelpfulVote","ReportLink","UserSubmittedMedia","YesVote","NoVote","Report","UserSubmittedPhoto","Translation"]},Close:{label:["Submission","SecondaryContent","UserSubmittedMedia","Search","UserSubmittedPhoto"]},Filter:{label:["1Star","2Stars","3Stars","4Stars","5Stars","Clear1Star","Clear2Stars","Clear3Stars","Clear4Stars","Clear5Stars","ClearAll"]},Hover:{label:["Histogram","Profile"]},Paginate:{label:["First","Last","Next","Prev"]},Search:{label:["UserGeneratedContent","SearchBarRatingSummary","TopicsAndReviews"]},Share:{label:["Button"]},Sort:{label:["featured","mostRecent","oldest","positive","negative","mostHelpful","mostUnhelpful","relevancy","recentQuestionsFirst","recentQuestionsLast","recentAnswersFirst","recentAnswersLast","mostAnsweredQuestionsFirst","mostAnsweredQuestionsLast","featuredQuestionsFirst","helpfulnessAnswersFirst","helpfulnessAnswersLast"]},Submission:{label:["submissionFormSubmit"]},Write:{label:["Button"]}},getSiteCatalystTracker=function(e){var t=e||"s",n=global[t];return n&&"object"===("undefined"==typeof n?"undefined":_typeof(n))?n:(n=global.s_Obj,n&&"object"===("undefined"==typeof n?"undefined":_typeof(n))?n:void _logger2["default"].warn(t+" bad trackerRef"))},getGoogleAnalyticsTracker=function getGoogleAnalyticsTracker(vendorTracker,method){var trackerRef=vendorTracker,trackerMethod=method,tracker,trackerType="object";if(trackerRef){if(!method)if("pageTracker"===trackerRef)trackerMethod="SYNCHRONOUS";else if("_gaq"===trackerRef)trackerMethod="ASYNCHRONOUS";else if("ga"===trackerRef)trackerMethod="UNIVERSAL";else{if("gtag"!==trackerRef)return void _logger2["default"].warn("getGoogleAnalyticsTracker: could not determine trackerMethod");trackerMethod="GA4"}}else if(trackerMethod&&"SYNCHRONOUS"!==trackerMethod||"object"!==("undefined"==typeof pageTracker?"undefined":_typeof(pageTracker)))if(trackerMethod&&"ASYNCHRONOUS"!==trackerMethod||"object"!==_typeof(global._gaq))if(trackerMethod&&"UNIVERSAL"!==trackerMethod||"function"!=typeof global.ga){if(trackerMethod&&"GA4"!==trackerMethod||"function"!=typeof global.gtag)return void _logger2["default"].warn("getGoogleAnalyticsTracker: could not determine trackerRef");trackerRef="gtag",trackerMethod="GA4"}else trackerRef="ga",trackerMethod="UNIVERSAL";else trackerRef="_gaq",trackerMethod="ASYNCHRONOUS";else trackerRef="pageTracker",trackerMethod="SYNCHRONOUS";if("ga"!==trackerRef&&"UNIVERSAL"!==trackerMethod&&"gtag"!==trackerRef&&"GA4"!==trackerMethod||(trackerType="function"),tracker=global[trackerRef],!tracker||("undefined"==typeof tracker?"undefined":_typeof(tracker))!==trackerType){try{tracker=eval(trackerRef)}catch(e){return}if(!tracker||("undefined"==typeof tracker?"undefined":_typeof(tracker))!==trackerType)return void _logger2["default"].warn(trackerRef+" bad trackerRef")}return"SYNCHRONOUS"===trackerMethod?{trackEvent:function(e,t,n,o,r){tracker._trackEvent(e,t,n,o,r)}}:"ASYNCHRONOUS"===trackerMethod?{trackEvent:function(e,t,n,o,r){tracker.push(["_trackEvent",e,t,n,o,r])}}:"UNIVERSAL"===trackerMethod?{trackEvent:function(e,t,n,o,r){tracker("send","event",e,t,n,o,{nonInteraction:r})}}:"GA4"===trackerMethod?{trackEvent:function(e,t,n,o){try{var r={bv_event_action:t};if(o&&"object"===("undefined"==typeof o?"undefined":_typeof(o)))for(var i in o)o.hasOwnProperty(i)&&null!==o[i]&&(r[i]=o[i]);tracker("event",t,r)}catch(a){_logger2["default"].warn("getGoogleAnalyticsTracker: GA4 trackEvent failed")}}}:void _logger2["default"].warn("getGoogleAnalyticsTracker: trackEvent could not be defined")},callWap=function(e,t){for(var n={},o=[],r=2;r<arguments.length;r++)o.push((arguments[r]||"").toString());var i=o.join("~#~");if(!n[i]){n[i]=!0;try{t.apply(e,[].slice.call(arguments,2))}catch(a){_logger2["default"].error("Error calling WAP: "+a.stack)}}},isEventTracked=function(e,t,n){if("Feature"===e&&t in trackingMap)for(var o=0;o<trackingMap[t].label.length;o++)if(trackingMap[t].label[o]===n||"ANY"===trackingMap[t].label[o])return!0;return!1},adobeSiteCatalystCallback=function(e,t){var n=e||{},o=t,r=getSiteCatalystTracker(n.tracker||null);return r?function(e){if(isEventTracked(e.cl,e.name,e.detail1)){var t=global.event||global,i=n.event,a=n.evar,s=e.detail1.charAt(0).toUpperCase()+e.detail1.slice(1),c=eventGroup+delimiter+e.bvProduct+delimiter+e.name+s;r.linkTrackEvents="event"+i,r.events="event"+i,r["eVar"+a]=c,r.linkTrackVars="events,evar"+a,r.products&&(r.linkTrackVars+=",products",r.products=r.products.replace(/([^,;]*;[^,;]*);[^,]*/g,"$1")),r.linkTrackVars+=",eVar"+a,callWap(r,r.tl,t,"o",c+delimiter+e.productId)}if("AnalyticsUnificationEvent"===e.cl&&e.bvProduct)try{var u=(0,_util.getDomainWithoutSubdomain)(),l=(0,_cookies.getBrandCookiesAlways)(u),f=!1;if(n.cookieConsent&&"function"==typeof n.cookieConsent.getConsent){var d=n.cookieConsent.getConsent("BVBRANDID"),h=n.cookieConsent.getConsent("BVBRANDSID");f=d&&h}else n.cookieConsentOptIn&&(f=!0);var g=o&&"function"==typeof o.getLoadId?o.getLoadId()||"":"",p=l.BVBRANDID&&l.BVBRANDSID&&f,m=p?"v1:bvsc.rr:"+l.BVBRANDID+"|"+l.BVBRANDSID+"|"+g:"v1:bvsc.rr:||"+g,v=global.event||global,y=n.event,b=n.evar;r.linkTrackEvents="event"+y,r.events="event"+y,r["eVar"+b]=m,r.linkTrackVars="events,evar"+b+",eVar"+b,callWap(r,r.tl,v,"o","bvsc.rr")}catch(k){_logger2["default"].warn("Enhanced user tracking for Adobe failed: "+k.message)}}:function(){}},ibmDigitalAnalyticsCallback=function(e){if("object"===_typeof(global.cG7)&&isEventTracked(e.cl,e.name,e.detail1)){var t=global.cG7.cM0[global.cm_ClientID],n=eventGroup+delimiter+e.bvProduct,o=e.detail1.charAt(0).toUpperCase()+e.detail1.slice(1);callWap(global,global.cmCreateElementTag,e.name+o,n),global.cG7.cM0[global.cm_ClientID]=t}},googleAnalyticsCallback=function(e,t){var n=e||{},o=t,r=getGoogleAnalyticsTracker(n.tracker||null,n.method);return r?function(e){var t=eventGroup+delimiter+e.bvProduct+delimiter,i=global.location.pathname;if("AnalyticsUnificationEvent"===e.cl&&"bv-analytics"===e.bvProduct&&"GA4"===n.method)try{var a=(0,_util.getDomainWithoutSubdomain)(),s=(0,_cookies.getBrandCookiesAlways)(a),c=!1;if(n.cookieConsent&&"function"==typeof n.cookieConsent.getConsent){var u=n.cookieConsent.getConsent("BVBRANDID"),l=n.cookieConsent.getConsent("BVBRANDSID");c=u&&l}else n.cookieConsentOptIn&&(c=!0);var f=o&&"function"==typeof o.getLoadId?o.getLoadId()||"":"",d=s.BVBRANDID&&s.BVBRANDSID&&c,h=d?"v1:"+s.BVBRANDID+"|"+s.BVBRANDSID+"|"+f:"v1:||"+f,g={event_category:"Bazaarvoice Content Loaded",event_label:i,bvsc_event_data:h};callWap(r,r.trackEvent,"Bazaarvoice Content Loaded","bvsc.rr",i,g,!0)}catch(p){_logger2["default"].warn("Enhanced user tracking failed: "+p.message)}else if("PageView"===e.cl&&e.bvProduct)callWap(r,r.trackEvent,"Bazaarvoice Content Loaded",t+"Product"+e.cl,i,void 0,!0);else if(isEventTracked(e.cl,e.name,e.detail1)){var m=e.detail1.charAt(0).toUpperCase()+e.detail1.slice(1);callWap(r,r.trackEvent,eventGroup+" "+e.bvProduct,t+e.name+m,i,void 0,!1)}}:function(){}};module.exports={create:function(e,t,n){switch(e){case vendorMap.ADOBE:return adobeSiteCatalystCallback(t,n);case vendorMap.IBM:return ibmDigitalAnalyticsCallback;case vendorMap.GOOGLE:return googleAnalyticsCallback(t,n)}throw _logger2["default"].error("Error creating vendor callback. The named vendor integration was not found."),new Error("The named vendor integration was not found.")},_getSiteCatalystTracker:getSiteCatalystTracker,_getGoogleAnalyticsTracker:getGoogleAnalyticsTracker,_isEventTracked:isEventTracked,_callWap:callWap}}]);