/** * 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){for(var c=0;c=0;g--){var h=a[g],i=h.getAttribute("itemtype");if(typeof i!=="string"||i==="")continue;var k={},l=h.querySelectorAll("[itemprop]");for(var m=0;m=0;i--)if(o[i].scope.contains(l)){o[i].schema.subscopes.push(k);break}else o.pop();o.length===0&&q.push(k);o.push({schema:k,scope:l})}return q}function E(){var a=[],d=b.querySelectorAll('script[type="application/ld+json"]'),e=0;for(var f=0;fz)return[];var h=JSON.parse(g.replace(/[\n\r\t]+/g," ")),i=h["@type"]==="Product"||h["@type"]==="product";(w==null||w===""||i)&&(h["@id"]?w=h["@id"]:h.productID?w=h.productID:h.sku&&(w=h.sku));(x==null||x===""||i)&&h.url&&(x=h.url);(x==null||i)&&h.offers!=null&&Array.isArray(h.offers)&&h.offers.length>0&&l(h.offers,function(a){x==null&&a.url&&(x=a.url)});a.push(h)}catch(a){c.logUserError({jsonLd:g,type:"INVALID_JSON_LD"})}}return a}function F(){var a=new p(["og","product","music","video","article","book","profile","website","twitter"]),c={},d=null,e=null,f=b.querySelectorAll("meta[property]");for(var g=0;g0||i.length>0||o(f).length>0||o(j).length>1||j.title!==""||l.length&&l.length>0){l={DataLayer:l,Meta:j,OpenGraph:f,"Schema.org":k};d&&(l=a({},l,{"JSON-LD":i}));v=t(JSON.stringify(l));v!=null&&(v=v.substring(0,24));if(b)return v;e.trackSingleSystem("automatic",c,"Microdata",l);return v}}e.exports=new d(function(a,b){a=g.performance!=null&&g.performance.timing!=null&&g.performance.timing.loadEventEnd!=null?g.performance.timing.loadEventEnd:Date.now();a!==0?a:Date.now();var c={};r.listen(function(a,c){if(b.disableAutoConfig)return{};if(c!=="PageView"&&c!=="Microdata")return{};c=n(b.getOptedInPixels("Microdata"),function(b){return b.id===a.id});if(!c)return{};c=u.get(a.id,"microdata");if(c!=null&&c.enablePageHash===!0){if(v==null){c=n(b.getOptedInPixels("MicrodataJsonLd"),function(b){return b.id===a.id});v=I({id:a.id,includeJsonLd:c,instance:b,onlyHash:!0})}if(v!=null)return{hmd:v,pid:w,pl:x}}return{}});q.listen(function(a,d){if(b.disableAutoConfig)return;var e=d.get("id");if(e==null||typeof e!=="string"||Object.prototype.hasOwnProperty.call(c,e))return;a=n(b.getOptedInPixels("Microdata"),function(a){return a.id===e});if(a){d=n(b.getOptedInPixels("MicrodataJsonLd"),function(a){return a.id===e});c[e]=!0;a=u.get(e,"microdata");if(a!=null&&a.disableMicrodataEvent===!0)return;try{I({id:e,includeJsonLd:d,instance:b,onlyHash:!1})}catch(b){a="[Microdata]";b!=null&&b.message!=null&&(a+=": "+b.message);s(new Error(a))}}})})})();return e.exports}(a,b,c,d)});e.exports=f.getFbeventsModules("SignalsFBEvents.plugins.microdata");f.registerPlugin&&f.registerPlugin("fbevents.plugins.microdata",e.exports); f.ensureModuleRegistered("fbevents.plugins.microdata",function(){ return e.exports})})()})(window,document,location,history); (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};f.__fbeventsModules||(f.__fbeventsModules={},f.__fbeventsResolvedModules={},f.getFbeventsModules=function(a){f.__fbeventsResolvedModules[a]||(f.__fbeventsResolvedModules[a]=f.__fbeventsModules[a]());return f.__fbeventsResolvedModules[a]},f.fbIsModuleLoaded=function(a){return!!f.__fbeventsModules[a]},f.ensureModuleRegistered=function(b,a){f.fbIsModuleLoaded(b)||(f.__fbeventsModules[b]=a)}); f.ensureModuleRegistered("fbevents.plugins.automaticmatchingforpartnerintegrations",function(){ return e.exports})})()})(window,document,location,history); (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;f.__fbeventsModules||(f.__fbeventsModules={},f.__fbeventsResolvedModules={},f.getFbeventsModules=function(a){f.__fbeventsResolvedModules[a]||(f.__fbeventsResolvedModules[a]=f.__fbeventsModules[a]());return f.__fbeventsResolvedModules[a]},f.fbIsModuleLoaded=function(a){return!!f.__fbeventsModules[a]},f.ensureModuleRegistered=function(b,a){f.fbIsModuleLoaded(b)||(f.__fbeventsModules[b]=a)}); f.ensureModuleRegistered("fbevents.plugins.prohibitedsources",function(){ return e.exports})})()})(window,document,location,history); (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;f.__fbeventsModules||(f.__fbeventsModules={},f.__fbeventsResolvedModules={},f.getFbeventsModules=function(a){f.__fbeventsResolvedModules[a]||(f.__fbeventsResolvedModules[a]=f.__fbeventsModules[a]());return f.__fbeventsResolvedModules[a]},f.fbIsModuleLoaded=function(a){return!!f.__fbeventsModules[a]},f.ensureModuleRegistered=function(b,a){f.fbIsModuleLoaded(b)||(f.__fbeventsModules[b]=a)}); f.ensureModuleRegistered("fbevents.plugins.unwanteddata",function(){ return e.exports})})()})(window,document,location,history); (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;f.__fbeventsModules||(f.__fbeventsModules={},f.__fbeventsResolvedModules={},f.getFbeventsModules=function(a){f.__fbeventsResolvedModules[a]||(f.__fbeventsResolvedModules[a]=f.__fbeventsModules[a]());return f.__fbeventsResolvedModules[a]},f.fbIsModuleLoaded=function(a){return!!f.__fbeventsModules[a]},f.ensureModuleRegistered=function(b,a){f.fbIsModuleLoaded(b)||(f.__fbeventsModules[b]=a)}); f.ensureModuleRegistered("fbevents.plugins.iabpcmaebridge",function(){ return e.exports})})()})(window,document,location,history); (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;function g(a){if(Array.isArray(a)){for(var b=0,c=Array(a.length);b