/** * Copyright (c) 2017-present, Facebook, Inc. All rights reserved. * * You are hereby granted a non-exclusive, worldwide, royalty-free license to use, * copy, modify, and distribute this software in source code or binary form for use * in connection with the web services and APIs provided by Facebook. * * As with any software that integrates with the Facebook platform, your use of * this software is subject to the Facebook Platform Policy * [http://developers.facebook.com/policy/]. This copyright notice shall be * included in all copies or substantial portions of the software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ (function(e,t,n,r){var o={exports:{}},a=o.exports;(function(){var a=e.fbq;if(a.execStart=e.performance&&e.performance.now&&e.performance.now(),!(function(){var t=e.postMessage||function(){};return a?!0:(t({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*"),"error"in console,!1)})())return;function i(e){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof(typeof Symbol=="function"?Symbol.iterator:"@@iterator")=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==(typeof Symbol=="function"?Symbol.prototype:"@@prototype")?"symbol":typeof e},i(e)}function l(e,t,n){return t=d(t),s(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function s(e,t){if(t&&(i(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u(e)}function u(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function m(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);ne.length)&&(t=e.length);for(var n=0,r=Array(t);n0)try{var a=new URL(t);a.searchParams.forEach(function(e,t){o.push([t,e])})}catch(e){}return{cd:n,url:o}}function E(e,t){u(e,function(e){return e===t})||e.push(t)}function k(e,t,n,r){var o=L(n,r),a=o.cd,i=o.url,u=[],c=[],d=[],m=!1,p=S(t);return s(e,function(e){var n=R(e);if(n!=null){var r=n.keyRe,o=n.keyNegativeRe,_=n.valueRe;if(e.place===y){if(p)return;r!=null&&r.test(t)&&(m=!0,E(d,"1"));return}if(e.place===h){var f=function(t,n){var e=l(t,2),a=e[0],i=e[1],s=r==null||r.test(a),u=o!=null&&o.test(a),c=s&&!u,d=_==null||_.test(String(i));c&&d&&(m=!0,E(n,a))};s(a,function(e){return f(e,u)}),s(i,function(e){return f(e,c)})}}}),{matched:m,cdKeys:u,urlKeys:c,evNames:d}}function I(e){if(e==null||e.length===0)return e;try{return new URL(e).origin}catch(t){return e}}o.exports=new t(function(t,n){p.listen(function(t){var o=f(t.id,g.fbid());if(o!=null&&n.optIns.isOptedIn(o,"VVPClientSide")){var a=c.get(o,"vvp");if(!(a==null||!a.enabled)){var l=a.rules;if(!(l==null||l.length===0)){var d=a.inScopeEventNames;if(!(d!=null&&d.length>0&&!u(d,function(e){return e===t.eventName})))try{var p,_=k(l,t.eventName,t.customData,t.documentLink);if(!_.matched)return;var h=a.isShadowEnabled!==!1;if(!h){t.documentLink=I(t.documentLink),t.referrerLink=I(t.referrerLink);var y=t.customData,v=a.standardParams;if(y!=null&&v!=null&&r(v).length>0&&s(r(y),function(e){e in v||(u(C,function(t){return t===e})?y[e]=b:delete y[e])}),y!=null&&y.contents!=null)try{var S=y.contents,R=S,L=!1;if(typeof S=="string"){L=!0;try{R=JSON.parse(S)}catch(e){R=null}}if(Array.isArray(R)){var E=!1,T=[];s(R,function(e){if(e!=null&&i(e)==="object"&&!Array.isArray(e)){var t={},n=!1;s(r(e),function(r){r==="id"?(n=!0,t[r]=b):t[r]=e[r]}),n&&(E=!0),T.push(t)}else T.push(e)}),E&&(y.contents=L?JSON.stringify(T):T)}}catch(e){}}var D=(p=t.customParams)!==null&&p!==void 0?p:new e;if(t.customParams=D,D.append("vvp","1"),_.cdKeys.length>0||_.urlKeys.length>0||_.evNames.length>0){var x={};_.cdKeys.length>0&&(x.vp_rp=_.cdKeys),_.urlKeys.length>0&&(x.vp_rp_url=_.urlKeys),_.evNames.length>0&&(x.vp_rp_ev=_.evNames),D.append("vvp_md",JSON.stringify(x))}}catch(e){var $=e!=null&&e.message!=null?"[VVP]: ".concat(e.message):"[VVP]";m(new Error($),"pixel","vvp")}}}}})})})(),o.exports})(e,t,n,r)}),o.exports=a.getFbeventsModules("SignalsFBEvents.plugins.vvp"),a.registerPlugin&&a.registerPlugin("fbevents.plugins.vvp",o.exports) ,a.ensureModuleRegistered("fbevents.plugins.vvp",function(){ return o.exports})})()})(window,document,location,history); (function(e,t,n,r){var o={exports:{}},a=o.exports;(function(){var a=e.fbq;if(a.execStart=e.performance&&e.performance.now&&e.performance.now(),!(function(){var t=e.postMessage||function(){};return a?!0:(t({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*"),"error"in console,!1)})())return;function i(e,t){var n=typeof Symbol!="undefined"&&e[typeof Symbol=="function"?Symbol.iterator:"@@iterator"]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(t){s=!0,a=t},f:function(){try{i||n.return==null||n.return()}finally{if(s)throw a}}}}function l(e,t){if(e){if(typeof e=="string")return s(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}function s(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(t){l=!0,a=t},f:function(){try{i||n.return==null||n.return()}finally{if(l)throw a}}}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(t){l=!0,a=t},f:function(){try{i||n.return==null||n.return()}finally{if(l)throw a}}}}function s(e,t){if(e){if(typeof e=="string")return u(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(t){l=!0,a=t},f:function(){try{i||n.return==null||n.return()}finally{if(l)throw a}}}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(t){l=!0,a=t},f:function(){try{i||n.return==null||n.return()}finally{if(l)throw a}}}}function c(e,t){if(e){if(typeof e=="string")return d(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n