var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(t,e){"use strict";"undefined"!=typeof exports?t(global,exports):t(window,e)}(function(t,e){"use strict";function n(){}var o=Array.prototype.slice;n.prototype.on=function(t,e,n){this._events=this._events||{};var o=this._events[t]||(this._events[t]=[]);return o.push({callback:e,context:n||this}),this},n.prototype.once=function(t,e,n){var o=this,i=function r(){o.off(t,r),e.apply(this,arguments)};return i._callback=e,this.on(t,i,n)},n.prototype.off=function(t,e,n){n=n||this;var o,i,r;if(!t&&!e&&!n)return this._events={},this;for(var t in this._events)if(this._events.hasOwnProperty(t)&&(r=this._events[t])){if(this._events[t]=o=[],e||n)for(var s=0,a=r.length;s0},r.prototype.has=function(t){return this.structure.hasOwnProperty(t)},r.prototype.loaded=function(t){return this._loading[t]===!1},r.prototype.getExports=function(t){return this._exports[t]},r.prototype.loading=function(t){return this._loading[t]===!0},r._loadExternalUrl=function(t,e,n){e=e||function(){},n=n||function(){};var o=i();o.open("GET",t,!0),o.onerror=function(){console.error("Error loading "+t),n(o.status)},null===o.onreadystatechange?o.onreadystatechange=function(){4===o.readyState&&(200===o.status?e(o):n(o.status))}:o.onload=function(){e(o)},o.send(null)},r.loadText=function(t,e,n){e=e||function(){},n=n||function(){},r._loadExternalUrl(t,function(t){e(t.responseText)},function(t){n(t)})},r.loadJSON=function(t,e,n){e=e||function(){},n=n||function(){},r.loadText(t,function(t){e(JSON.parse(t))},function(t){n(t)})},r.loadScript=function(e,n){n=n||function(){};var o=t.document.getElementsByTagName("head")[0],i=t.document.createElement("script");i.type="text/javascript",i.src=e,i.readyState?i.onreadystatechange=function(){"loaded"!==i.readyState&&"complete"!==i.readyState||(i.onreadystatechange=null,n())}:i.onload=function(){n()},o.appendChild(i)},r.superLoad=function(t,e){function n(){i--,0===i&&e(s)}function o(t){return function(e){e&&(t.result=e,t.name&&(s[t.name]=e)),n()}}for(var i=t.length,s={},a=0;a1?decodeURIComponent(a[0]):"page"]=a.length>1?decodeURIComponent(a[1]):a[0];var d=new RegExp("^[\\w-]+.(html|htm|aspx|asp|jsp|php|xhtml)$","i");p.page?s.page=p.page:p.p?s.page=p.p:n&&null!==n&&!d.test(n)?s.page=n:s.page=this.options.firstPage,s.page&&(s.page=s.page.replace(i,"$1"));var c=(p.zoom||p.z||"").replace(i,"$1");return s.zoom="z"===c,s},o.prototype.getBaseUrl=function(t){return t?this.baseUrl+("/"===this.baseUrl[this.baseUrl.length-1]?"":"/"):this.baseUrl},o.prototype.setPath=function(e){if(!this.options.editorMode){var n;if(t.history&&t.history.pushState&&!this.options.hashMode){n=this._getUrlParams(e,!0);var o=this.getBaseUrl(n)+n;t.history.pushState(e,null,o)}else{n=this._getUrlParams(e);var i="#"+n;t.location&&t.location.hash!==i&&(t.location.hash=i)}}},o.prototype.getShareUrl=function(e){var n=this.getPathInfo(),o=this._getUrlParams(n,this.options.hashMode===!1),i=this.options.hashMode?t.location.origin+t.location.pathname:this.getBaseUrl(e&&n.page);return e&&n.page&&(this.options.hashMode&&(i+="#"),i+=o),i},o.prototype.getEmbedPrefix=function(){return this.options.embedPrefix},o.prototype._getUrlParams=function(t,e){var n,o=[];return t.zoom&&o.push("zoom=z"),t.page&&(e?(n=this.options.firstPage===t.page.toString()?"":t.page+"/",o.length>0&&(n+="#")):(n="page="+t.page,o.length>0&&(n+="&"))),n+=o.join("&")},o.prototype._urlChanged=function(){if(t.location){var e=this.getPathInfo();e&&this.callback&&this.callback(e)}},o.prototype._mergeObjects=function(t,e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);return n},e.HistoryApiAdapter=o},this),function(t,e){"use strict";"undefined"!=typeof exports?t(global,exports):t(e,e)}(function(t,e){"use strict";function n(t,e){this.userAgentInfo=t,this.priorities=e}n.prototype.constructor=n,n.prototype.getSupportedVersions=function(){var t=[];if(this.userAgentInfo.device.desktop){var e=this.userAgentInfo.os.mac&&this.userAgentInfo.browser.safari?[19,0]:[10,3],n=this.userAgentInfo.flash;if(n&&(n[0]>e[0]||n[0]===e[0]&&n[1]>=e[1])&&t.push("flash"),this.userAgentInfo.browser.ie){var o=(this.userAgentInfo.browser.version||"7.0").split(".")[0];o>10&&t.push("html")}else t.push("html")}else{var i=this.userAgentInfo.os.ios,r=this.userAgentInfo.os.android&&(parseInt(this.userAgentInfo.os.version.split(".")[0],10)>4||4===parseInt(this.userAgentInfo.os.version.split(".")[0],10)&&parseInt(this.userAgentInfo.os.version.split(".")[1],10)>=1);(i||r)&&t.push("mobile")}return t.push("basic"),t},n.prototype.mainVersion=function(){var t=this.getSupportedVersions();if(this.priorities){for(var e=0;e0)return t[0];return null},n.prototype.isRenderable=function(){return null!==this.mainVersion()},e.PublicationDetector=n},this),function(t,e){"use strict";"undefined"!=typeof exports?t(global,exports):t(e,e)}(function(t,e){"use strict";function n(e){this._navigator=e?e:t.navigator?t.navigator:window?window.navigator:void 0,this.browser=this._getBrowser(),this.flash=this._getFlash(),this.os=this._getOS(),this.device=this._getDevice(),this.locales=this._getLocales(),this.locale=this.locales?this.locales[0]:void 0}n.prototype.constructor=n,n.prototype._getBrowser=function(){var t,e="undefined"!=typeof this._navigator?this._navigator.userAgent.toLowerCase():"",n=function(t){var n=e.match(t);return n&&n.length>1&&n[1]||""},o=/CrOS/.test(e),i=n(/edge\/(\d+(\.\d+)?)/i),r=n(/version\/(\d+(\.\d+)?)/i),s=!1;return/opera|opr/i.test(e)?t={name:"Opera",opera:!0,version:r||n(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(e)?t={name:"Yandex Browser",yandexbrowser:!0,version:r||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/windows phone/i.test(e)?(s=!0,t={name:"Windows Phone IE",ie:!0},i?(t.msedge=!0,t.version=i):(t.msie=!0,t.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(e)?(t={name:"Internet Explorer",msie:!0,ie:!0,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)},/trident/i.test(e)&&("7.0"===t.version&&"4.0"===n(/(?:trident\/)(\d+(\.\d+)?)/i)&&(t.version="8.0"),"7.0"===t.version&&"5.0"===n(/(?:trident\/)(\d+(\.\d+)?)/i)&&(t.version="9.0"))):t=/silk/i.test(e)?{name:"Amazon Silk",silk:!0,version:n(/silk\/(\d+(\.\d+)?)/i)}:o?{name:"Chrome",chrome:!0,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/chrome.+? edge/i.test(e)?{name:"Microsoft Edge",ie:!0,msedge:!0,version:i}:/chrome|crios|crmo/i.test(e)?{name:"Chrome",chrome:!0,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(e)?{name:"SeaMonkey",seamonkey:!0,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(e)?{name:"Firefox",firefox:!0,version:n(/(?:firefox|iceweasel)[ \/](\d+(\.\d+)?)/i)}:/phantom/i.test(e)?{name:"PhantomJS",phantom:!0,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/safari/i.test(e)?{name:"Safari",safari:!0,version:r}:{other:!0},s||t.msie||t.msedge||!/(apple)?webkit/i.test(e)?!t.opera&&/gecko\//i.test(e)&&(t.name=t.name||"Gecko",t.gecko=!0,t.version=t.version||n(/gecko\/(\d+(\.\d+)?)/i)):(t.name=t.name||"Webkit",t.webkit=!0,!t.version&&r&&(t.version=r)),t.name||(t.name="Other"),t},n.prototype._getFlash=function(){var e="undefined",n="object",o="Shockwave Flash",i="ShockwaveFlash.ShockwaveFlash",r="application/x-shockwave-flash",s=null;if(_typeof(this._navigator.plugins)!==e&&_typeof(this._navigator.plugins[o])===n){var a=this._navigator.plugins[o].description;if(a&&(_typeof(this._navigator.mimeTypes)===e||!this._navigator.mimeTypes[r]||this._navigator.mimeTypes[r].enabledPlugin)){var p=!1;a=a.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),s=[parseInt(a.replace(/^(.*)\..*$/,"$1"),10),parseInt(a.replace(/^.*\.(.*)\s.*$/,"$1"),10),/[a-zA-Z]/.test(a)?parseInt(a.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0]}}else if(_typeof(t.ActiveXObject)!==e)try{var l=new t.ActiveXObject(i);l&&(a=l.GetVariable("$version"),a&&(p=!0,a=a.split(" ")[1].split(","),s=[parseInt(a[0],10),parseInt(a[1],10),parseInt(a[2],10)]))}catch(h){}return s},n.prototype._getOS=function(){var t="undefined"!=typeof this._navigator?this._navigator.userAgent.toLowerCase():"",e=function(e){var n=t.match(e);return n&&n.length>1&&n[1]||""},n={name:"Other",other:!0},o=e(/(ipod|iphone|ipad)/i).toLowerCase(),i=/like android/i.test(t),r=!i&&/android/i.test(t),s=e(/version\/(\d+(\.\d+)?)/i);return o?n={name:"iOS",version:e(/os\s(\d+_*\d*_*\d*)/).split("_").join("."),ios:!0}:r?n={name:"Android",version:e(/android\s(\d+\.*\d*\.*\d*)/),android:!0}:/mac os/.test(t)?n={name:"Mac OS",mac:!0}:/windows/i.test(t)?n={name:"Windows",windows:!0}:/playbook|blackberry|\bbb\d+/i.test(t)||/rim\stablet/i.test(t)?n={name:"Blackberry",blackberry:!0,version:s||e(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:/(web|hpw)os/i.test(t)?(n={name:"WebOS",webos:!0,version:s||e(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(t)&&(n.touchpad=!0)):/bada/i.test(t)?n={name:"Bada",bada:!0,version:e(/dolfin\/(\d+(\.\d+)?)/i)}:/tizen/i.test(t)?n={name:"Tizen",tizen:!0,version:e(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||s}:/sailfish/i.test(t)?n={name:"Sailfish",sailfish:!0,version:e(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel/i.test(t)&&/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(t)&&(n={name:"Firefox OS",firefoxos:!0}),n},n.prototype._getDevice=function(){var t="undefined"!=typeof this._navigator?this._navigator.userAgent.toLowerCase():"",e={},n=/like android/i.test(t),o=!n&&/android/i.test(t),i=/cros/.test(t);return e.name=t.match(/ipad/)?"ipad":t.match(/ipod/)?"ipod":t.match(/iphone/)?"iphone":o?"android":t.match(/windows phone/)?"wphone":t.match(/mobile/)?"mobile":t.match(/mac|win|linux/)||i?"desktop":"other",e[e.name]=!0,e},n.prototype._getLocales=function(){if("undefined"!=typeof this._navigator){if(this._navigator.languages&&this._navigator.languages.length>0){for(var t,e=[],n=0;ne?(n=o.width/this.coverIMG.naturalWidth,this.coverIMG.style.left="0px",this.coverIMG.style.height=this.coverIMG.naturalHeight*n+"px",this.coverIMG.style.width=o.width+"px",this.coverIMG.style.top=(o.height-this.coverIMG.height)/2+"px"):(n=o.height/this.coverIMG.naturalHeight,this.coverIMG.style.top="0px",this.coverIMG.style.width=this.coverIMG.naturalWidth*n+"px",this.coverIMG.style.height=o.height+"px",this.coverIMG.style.left=(o.width-this.coverIMG.width)/2+"px")},o.prototype.progress=function(t){var e=this.coverIMG.width*t/100;this.coverIMG.style.clip="rect(auto, "+e+"px, auto, auto)"},o.prototype.remove=function(){t.removeEventListener("resize",this._resize),this.preloader.parentNode.removeChild(this.preloader),delete this.preloader},e.Preloader=o},this),function(t,e){"use strict";"undefined"!=typeof exports?t(global,exports):t(window,e)}(function(t,e){"use strict";e.PageResourceType={PAGE_TEXT:0,PAGE_SUBSTRATE:1,THUMBNAIL:2,ZOOM_PAGE_TEXT:10,ZOOM_PAGE_SUBSTRATE:11},e.PageResourceState={READY:1,ERROR:-1,UNREADY:0}},this.FBPublication||(this.FBPublication={})),function(t,e){"use strict";if("undefined"!=typeof exports){var n=require("./page-resource-enums").PageResourceState;t(global,exports,n)}else t(e,e,e.PageResourceState)}(function(t,e,n){"use strict";function o(){this.states={}}o.prototype.constructor=o,o.prototype.on=function(t,e){this._setState(t,n.READY),e(this.getInfo(t))},o.prototype.off=function(){},o.prototype._setState=function(t,e){this.states[t]=e},o.prototype._getState=function(t){return this.states.hasOwnProperty(t)?this.states[t]:n.UNREADY},o.prototype.getInfo=function(t){return{id:t,state:this._getState(t),pageInfo:{}}},e.ResourceStateProvider=o},this.FBPublication||(this.FBPublication={})),function(t,e){"use strict";if("undefined"!=typeof exports){var n=require("./events").BaseEvents;t(global,exports,n)}else t(e,e,e.FBPublication.BaseEvents)}(function(t,e,n){"use strict";function o(){}o.prototype=new n,o.prototype.constructor=o,o.prototype.methods=[],o.prototype.addMethod=function(t,e){o.prototype[t]=e,o.prototype.methods.push(t)},e.Api=o},this),function(t,e){"use strict";if("undefined"!=typeof exports){var n=require("./ua-detector").UserAgentDetector,o=require("./publication-detector").PublicationDetector,i=require("./adapters/local-hash").LocalHashAdapter,r=require("./preloader").Preloader,s=require("./fb-utils"),a=require("./events").BaseEvents,p=require("./api").Api,l=require("../src/modules/library-manager");t(global,exports,n,o,i,r,s,a,p,l)}else t(e,e,e.UserAgentDetector,e.PublicationDetector,e.LocalHashAdapter,e.Preloader,e.fbUtils,e.FBPublication.BaseEvents,e.Api,e.FBPublication.LibraryManager)}(function(t,e,n,o,i,r,s,a,p,l){"use strict";function h(t){return"function"==typeof t||!1}function d(e){var r={container:t.document.getElementsByTagName("body")[0],callback:function(){},onPublicationLoad:function(){},navigator:t.navigator};if(this.options=s.mergeObjects(r,e),this.options.api=this.api=this.options.api||new p,this.options.adapter||(this.options.adapter=new i),this.options.libraryManager=this.options.libraryManager||new l(this.options.adapter.translatePath("modules/")),this.userAgentInfo=new n(this.options.navigator),this.options.overrideVersion)this._renderVersion(this.options.overrideVersion);else{this.detector=new o(this.userAgentInfo,this.options.versions);var a=this.detector.getSupportedVersions();if(a&&a.length){var h=this.detector.mainVersion();h=h||this.options.callback(a),h?this._renderVersion(h):void 0===h&&this._renderVersion(a[0])}}}d.prototype=new a,d.prototype.constructor=d,d.prototype.goToPage=function(t){this._app&&h(this._app.goToPage)&&this._app.goToPage(t)},d.prototype._renderVersion=function(e){function n(e,n){var o=t.document.getElementsByTagName("head")[0],i=t.document.createElement("script");i.type="text/javascript",i.charset="UTF-8",i.async=!1,i.src=e;var r=function s(t,e){"loaded"===t.readyState||"complete"===t.readyState?e():setTimeout(function(){s(t,e)},100)};"function"==typeof n&&("undefined"!=typeof i.addEventListener?i.addEventListener("load",n,!1):i.onreadystatechange=function(){i.onreadystatechange=null,r(i,n)}),o.appendChild(i)}this.container=this.options.container,this.options.container.innerHTML="",this.options.container.setAttribute("class","");var o=this;if("basic"!==e){var i=new r(this.container,this.options.adapter,this.options.preloader),s=this.options.onPublicationLoad,a=function(t){function e(){clearInterval(o.progressInterval),i.remove(),h(o.app.onReady)&&o.app.onReady()}o.publication?(o.publication.style.transition="opacity 0.25s ease-in-out",o.publication.addEventListener("transitionend",e,!1),o.publication.style.opacity=1,o.userAgentInfo.browser.firefox&&(o.publication.style.visibility="visible")):(i.preloader.style.transition="opacity 0.25s ease-in-out",i.preloader.addEventListener("transitionend",e,!1),i.preloader.style.opacity=0),t&&(o.app=t),s(t)};this.options.onPublicationLoad=function(t){o._isLoaded=!0,o._app=t,o._hasProgress&&a(t)},this.options.onProgress=function(t){i.progress(t)},this.options.onInit=function(t,e){if(o._isLoaded=!1,o._hasProgress=!1,o.publication=t,e!==!0){var n=0,r=function(){i.progress(n++),o._isLoaded&&(clearInterval(o.progressInterval),a(o._app)),n>100&&(n=0)};i.progress(100),setTimeout(function(){o._isLoaded?a(o._app):o.progressInterval=setInterval(r,o.options.preloader&&o.options.preloader.progressSpeed||10)},500)}else o._hasProgress=!0;void 0!==o.publication&&(t.style.opacity=0,o.userAgentInfo.browser.firefox&&(o.publication.style.visibility="hidden"))}}this.options.userAgentInfo=this.userAgentInfo;var p=t.document.createElement("div");p.id="publication",this.container.appendChild(p),this.options.container=p,this.options.fullscreenContainer=this.container,n(this.options.adapter.translatePath("static/"+e+"/init.js"),function(){t.FBPublicationVersion(o.options)})},d.prototype.getState=function(){var t={};return this._app&&h(this._app.getState)&&(t=this._app.getState()),t},e.Publication=d},this);; (function (global) { 'use strict'; window.FBPublication = window.FBPublication || {}; var FBInit = window.FBPublication.Initial = window.FBPublication.Initial || {}; window.PUBLICATION_NAME = FBInit.TITLE; var main = function (container) { if (FBInit.queryString.v === 'text') { if (FBInit.isFunction(global.document.getElementsByClassName)) { var urls = global.document.getElementsByClassName('internalLink'); for (var i = 0, l = urls.length; i < l; i++) { var currentUrl = urls[i]; currentUrl.href = currentUrl.href + '?v=text'; } } return; } var config = { versions: FBInit.Versions }; function start() { window.publication = new Publication(config); var api = window.publication.api; if (FBInit.analytics) { var UAProvider = new UniversalAnalytics(); UAProvider.subscribe(api); } } var useHashNavigation = FBInit.USE_HASH_NAVIGATION === true; function PublisherAdapter(options) { HistoryApiAdapter.call(this, options); } PublisherAdapter.prototype = Object.create(HistoryApiAdapter.prototype); PublisherAdapter.constructor = PublisherAdapter; PublisherAdapter.prototype.translatePath = function(url) { url = HistoryApiAdapter.prototype.translatePath.call(this, url); return url.replace('.json', '.js'); }; PublisherAdapter.prototype.getEmbedPrefix = function() { return 'fbp'; } if ((new RegExp('\/javascript:|{|}|;|%7B|%7D|%3B\/', 'i').test(window.location.href))) { throw new Error('Code injection detected'); } var baseUrl = window.location.href.split('#')[0]; baseUrl = baseUrl.split('?')[0]; if (useHashNavigation) { if (baseUrl[baseUrl.length - 1] !== '/') { var lastUrlPart = window.location.pathname.split('/').pop(); var regex = new RegExp('^[\\w-]+\.(html|htm|aspx|asp|jsp|php|xhtml)$', 'i'); if (regex.test(lastUrlPart)) { baseUrl = baseUrl.split(lastUrlPart)[0]; } else { baseUrl += '/'; } } } else { if (baseUrl.length > 0 && baseUrl[baseUrl.length - 1] === '/') { baseUrl = baseUrl.slice(0, -1); } baseUrl = baseUrl.split('index.html')[0]; if (FBInit.BASIC_FIRST_PAGE !== FBInit.CURRENT_PAGE && baseUrl.length >= FBInit.CURRENT_PAGE.length && baseUrl.slice(-FBInit.CURRENT_PAGE.length) === FBInit.CURRENT_PAGE) { baseUrl = baseUrl.slice(0, -FBInit.CURRENT_PAGE.length); } if (FBInit.isString(baseUrl) && (baseUrl.length === 0 || baseUrl[baseUrl.length - 1] !== '/')) { baseUrl += '/'; } } if (FBInit.queryString.v) { config.overrideVersion = FBInit.queryString.v; } config.adapter = new PublisherAdapter({ firstPage: FBInit.BASIC_FIRST_PAGE, currentPage: FBInit.CURRENT_PAGE, hashMode: useHashNavigation, mappings: { 'skins/current/': baseUrl + FBInit.DYNAMIC_FOLDER + 'html/skin/', 'assets/common/search/searchtext.js': baseUrl + FBInit.DYNAMIC_FOLDER + 'mobile/search/searchtext.js', 'assets/mobile/search/searchtext.js': baseUrl + FBInit.DYNAMIC_FOLDER + 'mobile/search/searchtext.js', 'assets/common/embed/page.html': baseUrl + FBInit.DYNAMIC_FOLDER + 'flash/page.html', 'assets/common/sound/flip/': baseUrl + FBInit.STATIC_FOLDER + 'html/static/static/sound/', 'assets/common/pages/text/': baseUrl + FBInit.DYNAMIC_FOLDER + 'common/page-textlayers/', 'assets/common/pages/substrates/': baseUrl + FBInit.DYNAMIC_FOLDER + 'common/page-html5-substrates/', 'assets/flash/search/': baseUrl + FBInit.DYNAMIC_FOLDER + 'mobile/search/', 'static/html/embed.js': baseUrl + FBInit.STATIC_FOLDER + 'html/static/embed.js', 'modules/': baseUrl + FBInit.STATIC_FOLDER + 'html/static/js/', 'static/analytics.js': baseUrl + FBInit.STATIC_FOLDER + 'html/static/analytics.js', 'static/html/': baseUrl + FBInit.STATIC_FOLDER + 'html/static/', 'static/basic/': baseUrl + FBInit.STATIC_FOLDER + 'basic/', 'static/mobile/': baseUrl + FBInit.STATIC_FOLDER + 'mobile/', 'assets/': baseUrl + FBInit.DYNAMIC_FOLDER + '', 'locales/': baseUrl + FBInit.DYNAMIC_FOLDER + 'html/locale/' }, baseUrl: baseUrl }); config.preloader = { backgroundColor: FBInit.BGCOLOR, titleColor: FBInit.textColor, titleText: FBInit.TITLE, logoLink: { image: FBInit.LOGO_PATH, url: FBInit.LOGO_URL } }; if (FBInit.analytics) { config.enabled = false; config.dispatcher = new window.FBPublication.BaseEvents(); window.FBPublication.LibraryManager.loadScript(config.adapter.translatePath('static/analytics.js'), function () { config.enabled = true; [].map || (Array.prototype.map = function (a, t) { for (var c = this, b = c.length, d = [], e = 0; e < b;) e in c && (d[e] = a.call(t, c[e], e++, c)); d.length = b; return d }); var startDate = new Date().getTime(); universalAnalytics.init(FBInit.isArray(FBInit.analytics.our) ? FBInit.analytics.our.map(function (m) { return m.id; }) : [], FBInit.isArray(FBInit.analytics.user) ? FBInit.analytics.user.map(function (m) { return m.id; }) : [], 'auto', 'FBP', startDate, '1', FBInit.analytics.isAnonymized); config.dispatcher.trigger("enabled"); }); } else { config.enabled = true; } function initConfig() { if (config.enabled !== false) { start(); } else { config.dispatcher.once('enabled', function () { start(); }); } } initConfig(); return true; }; var onDomLoaded = function () { main(document.body); }; if (window.addEventListener) { window.addEventListener('DOMContentLoaded', onDomLoaded, false); } else { window.attachEvent("onload", onDomLoaded); } })(this);