/** * 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(a,b,c,d){var e={exports:{}};e.exports;(function(){var f=a.fbq;f.execStart=a.performance&&a.performance.now&&a.performance.now();if(!function(){var b=a.postMessage||function(){};if(!f){b({action:"FB_LOG",logType:"Facebook Pixel Error",logMessage:"Pixel code is not installed correctly on this page"},"*");"error"in console&&console.error("Facebook Pixel Error: Pixel code is not installed correctly on this page");return!1}return!0}())return;var g=typeof Symbol==="function"&&typeof (typeof Symbol==="function"?Symbol.iterator:"@@iterator")==="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol==="function"&&a.constructor===Symbol&&a!==(typeof Symbol==="function"?Symbol.prototype:"@@prototype")?"symbol":typeof a},h=function(){function a(a,b){var c=[],d=!0,e=!1,f=void 0;try{for(var a=a[typeof Symbol==="function"?Symbol.iterator:"@@iterator"](),g;!(d=(g=a.next()).done);d=!0){c.push(g.value);if(b&&c.length===b)break}}catch(a){e=!0,f=a}finally{try{!d&&a["return"]&&a["return"]()}finally{if(e)throw f}}return c}return function(b,c){if(Array.isArray(b))return b;else if((typeof Symbol==="function"?Symbol.iterator:"@@iterator")in Object(b))return a(b,c);else throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),i=function(){function a(a,b){for(var c=0;c1)throw new Error("passRate should be between 0 and 1 in "+e.name);if(b>=i&&b>>0;if(typeof b!=="function")throw new TypeError(b+" is not a function");c=new Array(e);d=0;while(d>>0,d=arguments.length>=2?arguments[1]:void 0;for(var e=0;e>>0;if(typeof a!=="function")throw new TypeError();var d=[],e=arguments.length>=2?arguments[1]:void 0;for(var f=0;f2&&arguments[2]!==void 0?arguments[2]:!1;this._append({name:encodeURIComponent(b),value:c},a,d);return this}},{key:"appendHash",value:function(b){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(var d in b)Object.prototype.hasOwnProperty.call(b,d)&&this._append({name:encodeURIComponent(d),value:b[d]},a,c);return this}},{key:"_append",value:function(b,e,f){var g=b.name;b=b.value;d(b)?this._appendPrimitive(g,b,f):e===a?this._appendObject(g,b,f):this._appendPrimitive(g,c(b),f)}},{key:"_translateValue",value:function(a,b,c){if(typeof b==="boolean")return b?"true":"false";if(!c)return""+b;if(!this._piiTranslator)throw new Error();return this._piiTranslator(a,""+b)}},{key:"_appendPrimitive",value:function(a,b,c){if(b!=null){b=this._translateValue(a,b,c);b!=null&&this._params.push({name:a,value:b})}}},{key:"_appendObject",value:function(a,c,d){var e=null;for(var f in c)if(Object.prototype.hasOwnProperty.call(c,f)){var g=a+"["+encodeURIComponent(f)+"]";try{this._append({name:g,value:c[f]},b,d)}catch(a){e==null&&(e=a)}}if(e!=null)throw e}},{key:"each",value:function(a){for(var b=0;b0&&arguments[0]!==void 0?arguments[0]:g.location.href,b=d(a,k);b===null&&(b=d(h.referrer,k));var c=t(l);if(b!=null)if(!c)return x(l,b);else{c.maybeUpdatePayload(b);return w(l,c)}else if(c)return w(l,c);return null}function A(){var a=t(n);if(a){w(n,a);return a}else{a=y();return x(n,a)}}e.exports=new b(function(a,b){function c(){a.on("getCustomParameters",function(c){if(!g.location.protocol.substring(0,4)==="http")return{};if((a._forceFPCookies===null||a._forceFPCookies===!1)&&i(g.location.hostname))return{};if(b.disableFirstPartyCookies)return{};if(b.getOptedInPixels(j).indexOf(c)==-1)return{};c={};var d=z();d&&(c[m]=d.pack());d=A();d&&(c[o]=d.pack());return c})}c()});e.exports.dropOrRefreshClickIDCookie=z;e.exports.dropOrRefreshDomainScopedBrowserIDCookie=A})();return e.exports}(a,b,c,d)});e.exports=f.getFbeventsModules("SignalsFBEvents.plugins.cookie");f.registerPlugin&&f.registerPlugin("fbevents.plugins.cookie",e.exports);f.ensureModuleRegistered("fbevents.plugins.cookie",function(){return e.exports})})()})(window,document,location,history); fbq.registerPlugin("244979436222512", {__fbEventsPlugin: 1, plugin: function(fbq, instance, config) { fbq.loadPlugin("cookie"); instance.optIn("244979436222512", "FirstPartyCookies", true);instance.configLoaded("244979436222512"); }});