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){return this._events=this._events||{},(this._events[t]||(this._events[t]=[])).push({callback:e,context:n||this}),this},n.prototype.once=function(t,e,n){var o=this,r=function n(){o.off(t,n),e.apply(this,arguments)};return r._callback=e,this.on(t,r,n)},n.prototype.off=function(t,e,n){n=n||this;var o,r,i;if(!t&&!e&&!n)return this._events={},this;for(var t in this._events)if(this._events.hasOwnProperty(t)&&(i=this._events[t])){if(this._events[t]=o=[],e||n)for(var a=0,s=i.length;a0},i.prototype.has=function(t){return this.structure.hasOwnProperty(t)},i.prototype.loaded=function(t){return!1===this._loading[t]},i.prototype.getExports=function(t){return this._exports[t]},i.prototype.loading=function(t){return!0===this._loading[t]},i._loadExternalUrl=function(t,e,n){e=e||function(){},n=n||function(){};var o=r();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)},i.loadText=function(t,e,n){e=e||function(){},n=n||function(){},i._loadExternalUrl(t,function(t){e(t.responseText)},function(t){n(t)})},i.loadJSON=function(t,e,n){e=e||function(){},n=n||function(){},i.loadText(t,function(t){e(JSON.parse(t))},function(t){n(t)})},i.loadScript=function(e,n,o){n=n||function(){};var r=t.document.getElementsByTagName("head")[0],i=t.document.createElement("script");i.type="text/javascript",i.src=e,o&&i.setAttribute("crossOrigin",o),i.readyState?i.onreadystatechange=function(){"loaded"!==i.readyState&&"complete"!==i.readyState||(i.onreadystatechange=null,n())}:i.onload=function(){n()},r.appendChild(i)},i.superLoad=function(t,e,n){function o(){0===--a&&e(s)}function r(t){return function(e){e&&(t.result=e,t.name&&(s[t.name]=e)),o()}}for(var a=t.length,s={},l=0;l16&&(n=A(n,8*t.length));for(var o=Array(16),r=Array(16),i=0;i<16;i++)o[i]=909522486^n[i],r[i]=1549556828^n[i];var a=A(o.concat(f(e)),512+8*e.length);return g(A(r.concat(a),768))}function c(t){for(var e,n=E?"0123456789ABCDEF":"0123456789abcdef",o="",r=0;r>>4&15)+n.charAt(15&e);return o}function u(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n="",o=t.length,r=0;r8*t.length?n+=P:n+=e.charAt(i>>>6*(3-a)&63);return n}function d(t,e){var n,o,r,i,a=e.length,s=Array(),l=Array(Math.ceil(t.length/2));for(n=0;n0;){for(i=Array(),r=0,n=0;n0||o>0)&&(i[i.length]=o);s[s.length]=r,l=i}var p="";for(n=s.length-1;n>=0;n--)p+=e.charAt(s[n]);var c=Math.ceil(8*t.length/(Math.log(e.length)/Math.log(2)));for(n=p.length;n>>6&31,128|63&e):e<=65535?o+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(o+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return o}function f(t){for(var e=Array(t.length>>2),n=0;n>5]|=(255&t.charCodeAt(n/8))<<24-n%32;return e}function g(t){for(var e="",n=0;n<32*t.length;n+=8)e+=String.fromCharCode(t[n>>5]>>>24-n%32&255);return e}function m(t,e){return t>>>e|t<<32-e}function v(t,e){return t>>>e}function y(t,e,n){return t&e^~t&n}function b(t,e,n){return t&e^t&n^e&n}function x(t){return m(t,2)^m(t,13)^m(t,22)}function w(t){return m(t,6)^m(t,11)^m(t,25)}function k(t){return m(t,7)^m(t,18)^v(t,3)}function _(t){return m(t,17)^m(t,19)^v(t,10)}function A(t,e){var n,o,r,i,a,s,l,p,c,u,d,h,f=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),g=new Array(64);for(t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e,c=0;c>16)+(e>>16)+(n>>16)<<16|65535&n}var E=0,P="",I=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998),C={};C.hex_sha256=n,C.b64_sha256=o,C.any_sha256=r,C.hex_hmac_sha256=i,C.b64_hmac_sha256=a,C.any_hmac_sha256=s,e.SHA=C},this),function(t,e){"use strict";"undefined"!=typeof exports?t(global,exports):t(e,e)}(function(t,e){"use strict";function n(t,e){var n=new DataView(t);if(255!==n.getUint8(0)||216!==n.getUint8(1))return!1;for(var r=2,i=t.byteLength;r4?p:e+8,a(t,i,l-1))}function a(t,e,n){for(var o="",r=e;r=0)},function(){s(!1)})}else this.isIndexAvailableAsDefault=!function(){var e=t.location.href.replace(r.options.baseUrl,"");return e=e.replace(t.location.hash,""),e=e.split("?")[0],(e=e.replace(r.options.currentPage+"/",""))===r.options.index}(),r.ready()}o.prototype=new n,o.prototype.constructor=o,o.prototype.getFirstPage=function(){return this.options.firstPage},o.prototype.getCurrentPage=function(){return this.options.currentPage||this.getPathInfo().page};var r=/^([^\?]*)(\?.*)/;o.prototype.getPathInfo=function(){if(!t.location)return null;var e=t.location.href,n=this.options.baseUrl;"/"===n[n.length-1]&&"/"!==e[e.length-1]&&(e+="/");var o=e.replace(n,"");o=o.replace(t.location.hash,""),o=o.replace(this.options.index,"");var i=null,a=o.split("?")[0].split("/");a[1]&&""!==a[1]?i=a[1]:a[0]&&""!==a[0]&&(i=a[0]);var s,l={};s="#"===t.location.hash.substr(0,1)?t.location.hash.substr(1):t.location.hash;for(var p,c={},u=s.split("&"),d=0;d1?decodeURIComponent(p[0]):"page"]=p.length>1?decodeURIComponent(p[1]):p[0];var h=new RegExp("^[\\w-]+.(html|htm|aspx|asp|jsp|php|xhtml)$","i");c.page?l.page=c.page:c.p?l.page=c.p:i&&null!==i&&!h.test(i)?l.page=i:l.page=this.options.firstPage,l.page&&(l.page=l.page.replace(r,"$1")),c.embed&&(l.embed=c.embed);var f=(c.zoom||c.z||"").replace(r,"$1");return l.zoom="z"===f,l},o.prototype.getBaseUrl=function(t){return t?this.baseUrl+("/"===this.baseUrl[this.baseUrl.length-1]?"":"/"):this.baseUrl},o.prototype.setPath=function(e){var n=this.getPath(e);null!==n&&(!n.hash&&n.historyApiEnabled?t.history.state&&t.history.state.page===e.page&&t.history.state.zoom===e.zoom||(t.location!==t.parent.location?t.history.replaceState(e,null,n.url):t.history.pushState(e,null,n.url)):t.location&&(n.historyApiEnabled&&t.location.href.indexOf(n.url)<0&&(!t.history.state||t.history.state.page!==e.page||t.history.state.zoom!==e.zoom)&&(t.location!==t.parent.location?t.history.replaceState(e,null,n.url):t.history.pushState(e,null,n.url)),t.location.hash!=="#"+n.hash&&(t.location.hash="#"+n.hash)))},o.prototype.getPath=function(e){if(this.options.editorMode)return null;var n={info:e,historyApiEnabled:t.history&&t.history.pushState&&!this.options.hashMode},o=this._getUrlParams(e,n.historyApiEnabled);return n.url=this.getBaseUrl(o.url||!this.isIndexAvailableAsDefault)+o.url+(this.isIndexAvailableAsDefault?"":this.options.index),n.historyApiEnabled?o.params&&(n.hash=o.params):(o=this._getUrlParams(e),n.hash=o.params),n},o.prototype.getShareUrl=function(t,e,n){var o=this.getPathInfo(),r=this._getUrlParams(o,!1===this.options.hashMode&&!n),i=this.getBaseUrl(t&&o.page||!this.isIndexAvailableAsDefault);return t&&o.page&&(i+=r.url),i+=this.isIndexAvailableAsDefault?"":this.options.index,e&&(i+=(i.indexOf("?")>0?"&":"?")+"utm_source="+e),t&&o.page&&r.params&&(i+="#"+r.params),i},o.prototype.getEmbedPrefix=function(){return this.options.embedPrefix},o.prototype.getLocalStorage=function(){return this._checkStorage("localStorage")?window.localStorage:this._storageStub},o.prototype.getSessionStorage=function(){return this._checkStorage("sessionStorage")?window.sessionStorage:this._storageStub},o.prototype._checkStorage=function(t){try{return window[t].setItem("test","test"),window[t].removeItem("test"),!0}catch(t){return!1}},o.prototype._storageStub={length:0,isStub:!0,key:function(){},getItem:function(){},setItem:function(){},removeItem:function(){},clear:function(){}},o.prototype._getUrlParams=function(t,e){var n=[],o="",r="";return t.zoom&&n.push("zoom=z"),t.page&&(e?(r=this.options.firstPage===t.page.toString()?"":t.page+"/",n.length>0&&(o+="")):(o=this.options.firstPage===t.page.toString()?"":"page="+t.page,o.length>0&&n.length>0&&(o+="&"))),o+=n.join("&"),{url:r,params:o}},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},o.prototype.getCrossOrigin=function(){return this.options.crossOrigin},o.prototype.translatePath=function(t,e){var t=n.prototype.translatePath.call(this,t);return e||(t+=(-1===t.indexOf("?")?"?uni=":"&uni=")+this.options.uni),t},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){function n(t){return/^\d+$/.test(t)}var o=t.split("."),r=e.split(".");if(!o.every(n)||!r.every(n))return NaN;o=o.map(Number),r=r.map(Number);for(var i=0;ir[i]?1:-1}return o.length!==r.length?-1:0}function o(t,e){this.userAgentInfo=t,this.priorities=e.versions}o.prototype.constructor=o,o.prototype.getSupportedVersions=function(){var t,e=[];if(this.userAgentInfo.browser.ie&&(t=(this.userAgentInfo.browser.version||"7.0").split(".")[0]),this.userAgentInfo.device.desktop)if(this.userAgentInfo.browser.ie)t>10&&e.push("html");else if(this.userAgentInfo.browser.safari){var o=parseInt(this.userAgentInfo.browser.version.split(".")[0],10);o>9&&e.push("html")}else e.push("html");else{var r=this.userAgentInfo.os.ios,i=this.userAgentInfo.os.ipados,a=this.userAgentInfo.os.android&&n(this.userAgentInfo.os.version,"4.1")>=0;if(r||i||a)if(i||(r&&parseInt(this.userAgentInfo.os.version.split(".")[0],10)>=10||a&&parseInt(this.userAgentInfo.os.version.split(".")[0],10)>=6)&&!this.userAgentInfo.browser.firefox)e.push("mobile");else{var s=navigator.userAgent.indexOf("Mozilla/5.0")>-1&&navigator.userAgent.indexOf("Android ")>-1&&navigator.userAgent.indexOf("AppleWebKit")>-1&&-1===navigator.userAgent.indexOf("Chrome");(r&&n(this.userAgentInfo.os.version,"8")>=0||a&&1===n(this.userAgentInfo.os.version,"4.2")&&!s)&&e.push("mobile-old")}}return(!this.userAgentInfo.browser.ie||t>=10)&&e.push("basic"),e},o.prototype.mainVersion=function(){var t=this.getSupportedVersions();if(this.priorities){for(var e=0;e0)return t[0];return null},o.prototype.isRenderable=function(){return!0},e.PublicationDetector=o},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||(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=void 0!==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),r=n(/edge\/(\d+(\.\d+)?)/i),i=n(/version\/(\d+(\.\d+)?)/i),a=!1;return/opera|opr/i.test(e)?t={name:"Opera",opera:!0,version:i||n(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(e)?t={name:"Yandex Browser",yandexbrowser:!0,version:i||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/windows phone/i.test(e)?(a=!0,t={name:"Windows Phone IE",ie:!0},r?(t.msedge=!0,t.version=r):(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:r}:/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:i}:{other:!0},a||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&&i&&(t.version=i)),t.name||(t.name="Other"),-1!==e.toLowerCase().indexOf("publisher")&&(t.publisher=!0),t},n.prototype._getFlash=function(){var e=null;if("undefined"!==_typeof(this._navigator.plugins)&&"object"===_typeof(this._navigator.plugins["Shockwave Flash"])){var n=this._navigator.plugins["Shockwave Flash"].description;if(n&&("undefined"===_typeof(this._navigator.mimeTypes)||!this._navigator.mimeTypes["application/x-shockwave-flash"]||this._navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)){n=n.replace(/^.*\s+(\S+\s+\S+$)/,"$1"),e=[parseInt(n.replace(/^(.*)\..*$/,"$1"),10),parseInt(n.replace(/^.*\.(.*)\s.*$/,"$1"),10),/[a-zA-Z]/.test(n)?parseInt(n.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0]}}else if("undefined"!==_typeof(t.ActiveXObject))try{var o=new t.ActiveXObject("ShockwaveFlash.ShockwaveFlash");o&&(n=o.GetVariable("$version"))&&(!0,n=n.split(" ")[1].split(","),e=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)])}catch(t){}return e},n.prototype._getOS=function(){var t=void 0!==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(),r="undefined"!=typeof document&&("ontouchstart"in document.documentElement&&/macintosh/i.test(t)),i=/like android/i.test(t),a=!i&&/android/i.test(t),s=e(/version\/(\d+(\.\d+)?)/i);return o&&!r?n={name:"iOS",version:e(/os\s(\d+_*\d*_*\d*)/).split("_").join("."),ios:!0}:r?n={name:"iPadOS",version:e(/version\/(\d+.?\d*.?\d*)\s/i),ios:!0,ipados:!0}:a?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=void 0!==this._navigator?this._navigator.userAgent.toLowerCase():"",e={},n=/like android/i.test(t),o=!n&&/android/i.test(t),r=/cros/.test(t);return e.name=t.match(/ipad/)||this.os.ipados?"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/)||r?"desktop":"other",e[e.name]=!0,e},n.prototype._getLocales=function(){if(void 0!==this._navigator){if(this._navigator.languages&&this._navigator.languages.length>0){for(var t,e=[],n=0;n0&&"none"!==t}function r(t){var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:null}function i(e,o,r,i,a){var s={backgroundColor:"#0b97c4",titleColor:"#fff",titleText:"",coverSrc:"",logoLink:{image:"",url:""}},l=this,p="mobile"===a?"fixed":"absolute";this.browser=i,this.adapter=o,this.options=n.mergeObjects(s,r),this.preloader=t.document.createElement("div"),this.preloader.id="preloader",this.preloader.style.width="100%",this.preloader.style.height="100%",this.preloader.style.position=p,this.preloader.style.top="0px",this.preloader.style.left="0px",this.preloader.style.right="0px",this.preloader.style.bottom="0px",this.browser.publisher&&(this.preloader.className="no-fade-in"),this.preloader.style.backgroundColor=this.options.backgroundColor,this.preloader.style.zIndex=1e6,this._styleTags=[],this._resize=function(){l._setCoverSize()},t.addEventListener("resize",this._resize),this._preventZoom=function(t){t.preventDefault()},window.location===window.parent.location&&this.preloader.addEventListener("touchstart",this._preventZoom,!0),e.appendChild(this.preloader),""!==this.options.coverSrc&&this.options.coverSrc?this._renderCoverPreloader():this._renderNewPreloader(),setTimeout(function(){l._resize()},10)}i.prototype._renderCoverPreloader=function(){var e,o;this.preloader.style.textAlign="center",this._applyCoverStyles(),e=t.document.createElement("div"),e.className="preloader-container",o=t.document.createElement("h3"),o.className="preloader-title",o.innerText=n.decodeHtml(this.options.titleText),e.appendChild(o),this.coverContainer=t.document.createElement("div"),this.coverContainer.className="preloader-cover",e.appendChild(this.coverContainer),void 0!==this.options.logoLink&&this.options.logoLink.image&&(this.logoContainer=t.document.createElement("a"),this.options.logoLink.url&&(this.logoContainer.href=this.options.logoLink.url,this.logoContainer.target=this.options.logoLink.target||"_blank"),this.logoContainer.className="preloader-logo",e.appendChild(this.logoContainer),this._tuneLogoSize()),this._injectImage(),this.preloader.appendChild(e)},i.prototype._renderNewPreloader=function(){this._applyNewStyles();var e=t.document.createElement("div");e.className="preloader-title-container";var r=t.document.createElement("h3");r.className="preloader-title",r.innerText=n.decodeHtml(this.options.titleText),e.appendChild(r),this.preloader.appendChild(e),this.browser.msie?this._renderFallbackPreloader():o()?this._render3dPreloader():this._renderFallbackPreloader(),void 0!==this.options.logoLink&&this.options.logoLink.image&&(this.logoContainer=t.document.createElement("a"),this.options.logoLink.url&&(this.logoContainer.href=this.options.logoLink.url,this.logoContainer.target=this.options.logoLink.target||"_blank"),this.logoContainer.className="preloader-logo",this.preloader.appendChild(this.logoContainer),this._tuneLogoSize());var i=this;this.browser.publisher||setTimeout(function(){i.preloader.className="show-on"},10)},i.prototype._render3dPreloader=function(){this._apply3dBookStyles();var e=t.document.createElement("div"),n=t.document.createElement("div");n.className="book-preloader",n.innerHTML='\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
',e.appendChild(n),e.className="book-preloader-shell",this.preloader.appendChild(e),setTimeout(function(){n.className="book-preloader animation",this.bookInt=setInterval(function(){n.className="book-preloader",setTimeout(function(){n.className="book-preloader animation"},100)},3300)},400)},i.prototype._renderFallbackPreloader=function(){this._applyFallbackStyles();var e=t.document.createElement("div");e.className="loading";var n=t.document.createElement("div");n.className="inner",e.appendChild(n),this.preloader.appendChild(e)},i.prototype._resize=function(){},i.prototype._preventZoom=function(){},i.prototype._applyCoverStyles=function(){var e,n,o=t.document.createElement("style");e=this.adapter.translatePath(this.options.coverSrc), n="\n\t\t\t\t.preloader-container{\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t\ttext-align: center;\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tvertical-align: middle;\n\t\t\t\t\twidth: 500px;\n\t\t\t\t\tposition: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%)\n\t\t\t\t}\n\t\t\n\t\t\t\t.preloader-title{\n\t\t\t\t\tmax-height: 55px;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t\tfont-family: Arial, sans-serif;\n\t\t\t\t\tfont-weight: bold;\n\t\t\t\t\tfont-size: 24px;\n\t\t\t\t\tmargin: 0;\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tcolor: "+this.options.titleColor+";\n\t\t\t\t}\n\t\t\n\t\t\t\t.preloader-cover{\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tmargin: 70px 0;\n\t\t\t\t\twidth: 300px;\n\t\t\t\t\theight: 300px;\n\t\t\t\t\tposition: relative;\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t}\n\t\t\n\t\t\t\t.preloader-cover img{\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\tclip: rect(auto, 0px, auto, auto);\n\t\t\t\t}\n\t\t\n\t\t\t\t.preloader-cover:after{\n\t\t\t\t\tcontent: '';\n\t\t\t\t\ttop: 0;\n\t\t\t\t\tleft: 0;\n\t\t\t\t\twidth: 100%;\n\t\t\t\t\theight: 100%;\n\t\t\t\t\tbackground-image: url('"+e+"');\n\t\t\t\t\tbackground-position: 50% 50%;\n\t\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t\tbackground-size: contain;\n\t\t\t\t\tposition: absolute;\n\t\t\t\t\topacity: 0.4;\n\t\t\t\t}\n\t\t\n\t\t\t\t.preloader-logo{\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\twidth: 250px;\n\t\t\t\t\theight: 190px;\n\t\t\t\t\t\n\t\t\t\t\tbackground-position: 50% 50%;\n\t\t\t\t\tbackground-repeat: no-repeat;\n\t\t\t\t\tbackground-size: contain;\n\t\t\t\t\tmargin: 0 100px;\n\t\t\t\t\tbox-sizing: content-box;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@media all and (max-width: 1300px), all and (max-height: 768px){\n\t\t\t\t\t.preloader-container{\n\t\t\t\t\t\twidth: 500px;\n\t\t\t\t\t}\n\t\t\t\t\t.preloader-title{\n\t\t\t\t\t\twidth: 500px;\n\t\t\t\t\t\tmax-height: 55px;\n\t\t\t\t\t}\n\t\t\t\t\t.preloader-cover{\n\t\t\t\t\t\twidth: 240px;\n\t\t\t\t\t\theight: 240px;\n\t\t\t\t\t\tmargin: 50px 0;\n\t\t\t\t\t}\n\t\t\t\t\t.preloader-logo{\n\t\t\t\t\t\twidth: 240px;\n\t\t\t\t\t\theight: 90px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t@media all and (max-width: 600px), all and (max-height: 600px){\n\t\t\t\t\t.preloader-container{\n\t\t\t\t\t\twidth: 500px;\n\t\t\t\t\t}\n\t\t\t\t\t.preloader-title{\n\t\t\t\t\t\twidth: 500px;\n\t\t\t\t\t\tmax-height: 55px;\n\t\t\t\t\t}\n\t\t\t\t\t.preloader-cover{\n\t\t\t\t\t\twidth: 200px;\n\t\t\t\t\t\theight: 200px;\n\t\t\t\t\t\tmargin: 20px 0 30px 0;\n\t\t\t\t\t}\n\t\t\t\t\t.preloader-logo{\n\t\t\t\t\t\twidth: 200px;\n\t\t\t\t\t\theight: 85px;\n\t\t\t\t\t\tmargin: 0 100px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t@media all and (max-width: 550px), all and (max-height: 450px){\n\t\t\t\t\t.preloader-container{\n\t\t\t\t\t\twidth: 350px;\n\t\t\t\t\t}\n\t\t\t\t\t.preloader-title{\n\t\t\t\t\t\twidth: 350px;\n\t\t\t\t\t\tmax-height: 40px;\n\t\t\t\t\t\tfont-size: 18px;\n\t\t\t\t\t}\n\t\t\t\t\t.preloader-cover{\n\t\t\t\t\t\twidth: 160px;\n\t\t\t\t\t\theight: 160px;\n\t\t\t\t\t\tmargin: 10px 0;\n\t\t\t\t\t}\n\t\t\t\t\t.preloader-logo{\n\t\t\t\t\t\twidth: 160px;\n\t\t\t\t\t\theight: 40px;\n\t\t\t\t\t\tmargin: 0 80px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t@media all and (max-width: 400px), all and (max-height: 300px){\n\t\t\t\t\t.preloader-container{\n\t\t\t\t\t\twidth: 190px;\n\t\t\t\t\t}\n\t\t\t\t\t.preloader-title{\n\t\t\t\t\t\twidth: 190px;\n\t\t\t\t\t\tmax-height: 40px;\n\t\t\t\t\t\tfont-size: 16px;\n\t\t\t\t\t}\n\t\t\t\t\t.preloader-cover{\n\t\t\t\t\t\twidth: 100px;\n\t\t\t\t\t\theight: 100px;\n\t\t\t\t\t\tmargin: 10px 0;\n\t\t\t\t\t}\n\t\t\t\t\t.preloader-logo{\n\t\t\t\t\t\twidth: 100px;\n\t\t\t\t\t\theight: 34px;\n\t\t\t\t\t\tmargin: 0 40px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@media all and (max-width: 242px), all and (max-height: 212px){\n\t\t\t\t\t\n\t\t\t\t\t.preloader-title{\n\t\t\t\t\t\tdisplay: none;\n\t\t\t\t\t}\n\t\t\t\t\t.preloader-cover{\n\t\t\t\t\t\twidth: 100px;\n\t\t\t\t\t\theight: 100px;\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t}\n\t\t\t\t\t.preloader-logo{\n\t\t\t\t\t\tdisplay: none;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t",o.appendChild(t.document.createTextNode(n)),o.id="preloader-cover-styles",this._styleTags.push(o),document.getElementsByTagName("head")[0].appendChild(o)},i.prototype._applyNewStyles=function(){var e,n=t.document.createElement("style");e="\n .preloader-title-container {\n height: 68px;\n width: 584px;\n top: 50%;\n left: 50%;\n margin: -180px 0 0 -292px;\n position: absolute;\n }\n \n .preloader-title {\n width: 100%;\n max-height: 68px;\n overflow: hidden;\n font-family: Helvetica, Arial, sans serif;\n \n font-size: 28px;\n line-height: 1.2;\n display: inline-block;\n color: "+this.options.titleColor+";\n position: absolute;\n bottom: 0;\n text-align: center;\n }\n \n .preloader-logo {\n position: absolute;\n left: 50%;\n bottom: 54px;\n margin-left: -75px;\n display: inline-block;\n width: 150px;\n height: 124px;\n \n background-position: 50% 100%;\n background-repeat: no-repeat;\n background-size: contain;\n box-sizing: content-box;\n }\n \n .preloader-title-container {\n height: 81.6px;\n width: 700.8px;\n margin: "+-216+"px 0 0 -350.4px;\n }\n \n .preloader-title {\n max-height: 81.6px;\n font-size: 33.6px;\n }\n \n .preloader-logo {\n bottom: 70.2px;\n margin-left: "+-97.5+"px;\n width: 195px;\n height: "+124*1.3+"px;\n }\n \n #preloader > div, #preloader > a{\n opacity: 0;\n transition: opacity 1s;\n }\n #preloader.show-on > div, #preloader.show-on > a, #preloader.no-fade-in > div, #preloader.no-fade-in > a{\n opacity: 1;\n }\n \n #preloader.show-off > div, #preloader.show-off > a{\n transition: opacity 0.2s;\n }\n #preloader.show-off, #preloader.show-off{\n \n transition: opacity 0.4s ease-out 0.2s;\n opacity: 0;\n }\n \n @media all and (max-width: 1300px), all and (max-height: 768px) {\n .preloader-title-container {\n height: 68px;\n width: 584px;\n margin: -180px 0 0 -292px;\n }\n \n .preloader-title {\n max-height: 68px;\n font-size: 28px;\n }\n \n .preloader-logo {\n bottom: 54px;\n margin-left: -75px;\n width: 150px;\n height: 124px;\n }\n }\n \n @media all and (max-width: 600px), all and (max-height: 600px) {\n .preloader-title-container {\n height: "+68*.8+"px;\n width: "+.8*584+"px;\n margin: "+-144+"px 0 0 -"+292*.8+"px;\n }\n \n .preloader-title {\n max-height: "+68*.8+"px;\n font-size: "+28*.8+"px;\n }\n \n .preloader-logo {\n bottom: 43.2px;\n margin-left: "+-60+"px;\n width: 120px;\n height: 99.2px;\n }\n }\n \n @media all and (max-width: 550px), all and (max-height: 450px) {\n .preloader-title-container {\n height: "+68*.7+"px;\n width: "+.7*584+"px;\n margin: "+-144+"px 0 0 -"+292*.7+"px;\n }\n \n .preloader-title {\n max-height: "+68*.7+"px;\n font-size: "+28*.7+"px;\n }\n \n .preloader-logo {\n bottom: 32.4px;\n margin-left: "+-45+"px;\n width: 90px;\n height: "+124*.6+"px;\n }\n }\n \n @media all and (max-width: 400px), all and (max-height: 300px) {\n .preloader-title-container {\n height: 40.8px;\n width: 350.4px;\n margin: "+.7*-180+"px 0 0 "+-175.2+"px;\n }\n \n .preloader-title {\n max-height: 40.8px;\n font-size: 16.8px;\n }\n \n .preloader-logo {\n bottom: 21.6px;\n margin-left: "+-30+"px;\n width: 60px;\n height: 49.6px;\n }\n }\n \n @media all and (max-width: 242px), all and (max-height: 212px) {\n .preloader-title-container{\n display: none;\n }\n .preloader-logo{\n display: none;\n }\n }\n ",n.appendChild(t.document.createTextNode(e)),n.id="preloader-new-styles",this._styleTags.push(n),document.getElementsByTagName("head")[0].appendChild(n)},i.prototype._apply3dBookStyles=function(){var e,n=t.document.createElement("style"),o=r(this.options.backgroundColor);"#000000"===this.options.backgroundColor&&(o.r=35,o.g=35,o.b=35),o.r=(.85*o.r).toFixed(0),o.g=(.85*o.g).toFixed(0),o.b=(.85*o.b).toFixed(0),e="\n .preloader{\n will-change: opacity;\n }\n .book-preloader-shell {\n border: none;\n width: 60px;\n height: 45px;\n position: absolute;\n top: 50%;\n left: 50%;\n margin-top: -45px;\n margin-left: -30px;\n background-color: "+this.options.backgroundColor+";\n box-sizing: border-box;\n }\n .book-preloader {\n width: 100%;\n height: 100%;\n perspective: "+60*(this.browser.chrome?3:1.5)+"px;\n perspective-origin: 50% 50%;\n transform-style: preserve-3d;\n }\n \n .animation {\n animation-name: book;\n }\n \n .sec-page-root, .first-page-root, .page1, .page2, .page3, .page4, .page5, .page6, .page7, .page8, .page9, .page10 {\n border: 2px solid "+this.options.titleColor+";\n border-left: 0px solid rgba(255, 255, 255, 0.6);\n box-sizing: border-box;\n width: 30px;\n height: 45px;\n position: absolute;\n left: 28px;\n top: 0;\n border-radius: 0 6px 6px 0;\n animation-name: inherit;\n animation-duration: 1.1s;\n transform-origin: 0 50%;\n animation-iteration-count: 1;\n will-change: transform;\n transform-style: preserve-3d;\n background-color: "+this.options.backgroundColor+";\n }\n \n .first-page-root{\n animation-name: none;\n transform: rotateY("+-160+"deg);\n display: block;\n }\n .sec-page-root{\n animation-name: none;\n transform: rotateY("+-20+"deg);\n display: block;\n }\n \n .page1 {\n animation-delay: 0s;\n z-index: 1;\n }\n \n .page2 {\n animation-delay: 0.7s;\n }\n \n .page3 {\n animation-delay: 0.8s;\n }\n \n .page4 {\n animation-delay: 0.9s;\n }\n \n .page5 {\n animation-delay: 1.6s;\n }\n \n .page6 {\n animation-delay: 1.7s;\n }\n \n .page7 {\n animation-delay: 1.8s;\n }\n \n .page8 {\n animation-delay: 1.9s;\n }\n \n .page9 {\n animation-delay: 2.0s;\n }\n \n .page10 {\n animation-delay: 2.10s;\n }\n \n @keyframes book {\n 0% {\n transform: rotateY(1deg);\n }\n 35% {\n background-color: rgb("+o.r+", "+o.g+", "+o.b+");\n }\n 85% {\n background-color: "+this.options.backgroundColor+";\n }\n 100% {\n transform: rotateY("+-182+"deg);\n }\n }\n ",n.appendChild(t.document.createTextNode(e)),n.id="preloader-3dbook-styles",this._styleTags.push(n),document.getElementsByTagName("head")[0].appendChild(n)},i.prototype._applyFallbackStyles=function(){var e,n=t.document.createElement("style"),o=r(this.options.titleColor);e='\n #preloader .loading {\n position: absolute;\n width: 50px; /* diameter */\n height: 50px; /* diameter */\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n }\n #preloader .inner, .loading:after {\n position: absolute;\n left: 0;\n top: 0;\n right: 0;\n bottom: 0;\n }\n /* Mask */\n #preloader .loading:after {\n content:" ";\n margin: 15%; /* stroke width */\n border-radius: 100%;\n background: '+this.options.backgroundColor+'; /* container background */\n }\n /* Spinning gradients */\n #preloader .inner {\n animation-duration: 2s; /* speed */\n -webkit-animation-duration: 2s; /* speed */\n animation-iteration-count: infinite;\n -webkit-animation-iteration-count: infinite;\n animation-timing-function: linear;\n -webkit-animation-timing-function: linear;\n }\n #preloader .inner {\n animation-name: rotate-inner;\n -webkit-animation-name: rotate-inner;\n }\n /* Halfs */\n #preloader .inner:before, .inner:after {\n position: absolute;\n top: 0;\n bottom: 0;\n content:" ";\n }\n /* Left half */\n #preloader .inner:before {\n left: 0;\n right: 50%;\n border-radius: 50px 0 0 50px; /* diameter */\n }\n /* Right half */\n #preloader .inner:after {\n left: 50%;\n right: 0;\n border-radius: 0 50px 50px 0; /* diameter */\n }\n /* Half gradients */\n #preloader .inner:before {\n background-image: -webkit-linear-gradient(top, rgba('+o.r+", "+o.g+", "+o.b+", 0), rgba("+o.r+", "+o.g+", "+o.b+", 0.5) 90%);\n background-image: -moz-linear-gradient(top, rgba("+o.r+", "+o.g+", "+o.b+", 0), rgba("+o.r+", "+o.g+", "+o.b+", 0.5) 90%);\n background-image: linear-gradient(to bottom, rgba("+o.r+", "+o.g+", "+o.b+", 0), rgba("+o.r+", "+o.g+", "+o.b+", 0.5) 90%);\n }\n #preloader .inner:after {\n background-image: -webkit-linear-gradient(top, rgba("+o.r+", "+o.g+", "+o.b+", 1), rgba("+o.r+", "+o.g+", "+o.b+", 0.5) 90%);\n background-image: -moz-linear-gradient(top, rgba("+o.r+", "+o.g+", "+o.b+", 1), rgba("+o.r+", "+o.g+", "+o.b+", 0.5) 90%);\n background-image: linear-gradient(to bottom, rgba("+o.r+", "+o.g+", "+o.b+", 1), rgba("+o.r+", "+o.g+", "+o.b+", 0.5) 90%);\n }\n /* Spinning animations */\n @keyframes rotate-inner {\n 0% {\n transform: rotate(0deg);\n -moz-transform: rotate(0deg);\n -webkit-transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n -moz-transform: rotate(360deg);\n -webkit-transform: rotate(360deg);\n }\n }\n @-webkit-keyframes rotate-inner {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n }\n }\n ",n.appendChild(t.document.createTextNode(e)),n.id="preloader-fallback-styles",this._styleTags.push(n),document.getElementsByTagName("head")[0].appendChild(n)},i.prototype._injectImage=function(){var t=this,e=this.adapter.translatePath(this.options.coverSrc);this.coverIMG=new Image,this.coverIMG.onload=function(){t.coverContainer.appendChild(t.coverIMG),t._setCoverSize(),t.progress(100)},this.coverIMG.src=e},i.prototype._tuneLogoSize=function(){if(void 0!==this.options.logoLink&&this.options.logoLink.image){var t,e=this,n=e.logoContainer,o=document.createElement("canvas"),r=o.getContext("2d"),i=new Image,a=function(){t=e.logoContainer.getBoundingClientRect(),e.logoIMGRect.widthe?(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")}},i.prototype.progress=function(t){if(""!==this.options.coverSrc&&this.options.coverSrc){var e=this.coverIMG.width*t/100;this.coverIMG.style.clip="rect(auto, "+e+"px, auto, auto)"}},i.prototype.remove=function(e){e=e||function(){};var n=this;setTimeout(function(){n.preloader.className="show-off",setTimeout(function(){n.bookInt&&clearInterval(n.bookInt),t.removeEventListener("resize",n._resize),n.preloader.removeEventListener("touchstart",n._preventZoom,!0),n.preloader.parentNode&&n.preloader.parentNode.removeChild(n.preloader),delete n.preloader,n._styleTags.forEach(function(t){t.parentNode.removeChild(t)}),e()},800)},1e3)},e.Preloader=i},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,SVG:12},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,r=require("./adapters/local-hash").LocalHashAdapter,i=require("./preloader").Preloader,a=require("./fb-utils"),s=require("./events").BaseEvents,l=require("./api").Api,p=require("../src/modules/library-manager"),c=require("./sha-256").SHA,u=require("./fixe").FIXE;t(global,exports,n,o,r,i,a,s,l,p,c,u)}else t(e,e,e.UserAgentDetector,e.PublicationDetector,e.LocalHashAdapter,e.Preloader,e.fbUtils,e.FBPublication.BaseEvents,e.Api,e.FBPublication.LibraryManager,e.SHA,e.FIXE)}(function(t,e,n,o,r,i,a,s,l,p,c,u){"use strict";function d(t){return"function"==typeof t||!1}function h(){return"%password-protection%"}function f(){return"%domain-protection%"}function g(e){if(!/bot|bingbot|googlebot|google-structured-data-testing-tool|linkedinbot|mediapartners-google/i.test(t.navigator.userAgent)){var o=this,i={container:t.document.getElementsByTagName("body")[0],callback:function(){},onPublicationLoad:function(){},navigator:t.navigator};this.options=a.mergeObjects(i,e),this.options.api=this.api=this.options.api||new l,this.options.adapter||(this.options.adapter=new r),this.options.libraryManager=this.options.libraryManager||new p(this.options.adapter.translatePath("modules/")),this.userAgentInfo=new n(this.options.navigator),"fghjk"===f()?this._checkDomain(function(t){t?"rtyu"===h()?o._checkPassword(function(t){t&&o._render()}):o._render():o._renderDomainFail()}):"rtyu"===h()?o._checkPassword(function(t){t&&o._render()}):o._render()}}var m=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};g.prototype=new s,g.prototype.constructor=g,g.prototype.destructor=function(){this.app&&d(this.app.destructor)&&this.app.destructor()},g.prototype.goToPage=function(t){this._app&&d(this._app.goToPage)&&this._app.goToPage(t)},g.prototype._checkDomain=function(t){function e(t){return/\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\b/gm.test(t)}function n(t){var e=t.match(/^https?\:\/\/([^\/:?#]+)(?:[\/:?#]|$)/i);return e&&e[1]}function o(t){var e=t.split("."),n=[];if(1===e.length)return n.push(e[0]),n;if(n.push(e[e.length-2]+"."+e[e.length-1]),e.length>2)for(var o=e.length-3;o>=0;o--)n.push(e[o]+"."+n[n.length-1]);return n}function r(r){var a=u.findInBin(r,33432),s=u.findInBin(r,33423),l=a.split(",");i.embed.salt=s,i.hosting.salt=s;for(var p=0,d=l.length;p0){var f=!1;window.addEventListener("message",function(r){if(r.source===h){f=!0;var a=n(r.origin),s=!1;if(e(a)){var l=c.hex_sha256(c.hex_sha256(a)+i.embed.salt);s=-1!==i.embed.hashes.indexOf(l)}else for(var p=o(a),u=0;u0){var g=!1,m=window.location.hostname;if(e(m)){var v=c.hex_sha256(c.hex_sha256(m)+i.hosting.salt);-1!==i.hosting.hashes.indexOf(v)&&(g=!0)}else for(var y=o(m),b=0;b1)&&t.preventDefault()},{passive:!1}) ;var l='

'+r.LoginWindow.SECURITY_PAS_TITLE+'

'+r.LoginWindow.SECURITY_PAS_SUBMIT_BUTTON+'
';if(document.getElementsByTagName("body")[0].innerHTML=l,o){var p=document.getElementsByClassName("close-button")[0];p.style.opacity=1,p.onclick=function(){window.history.go(-1)}}"ar"!==i&&"he"!==i||(document.getElementsByClassName("security-container")[0].setAttribute("dir","rtl"),document.getElementsByClassName("close-button")[0].setAttribute("dir","rtl")),window.FBInit&&window.FBInit.PRELOADER&&(document.getElementsByTagName("body")[0].style.backgroundColor=window.FBInit.PRELOADER.backgroundColor,document.getElementsByClassName("password-title")[0].style.color=window.FBInit.PRELOADER.titleColor,document.getElementsByClassName("close-button")[0].style.fill=window.FBInit.PRELOADER.titleColor),e(r.LoginWindow.SECURITY_PAS_WRONG)})})},g.prototype._renderDomainFail=function(){var e=this;p.superLoad([{url:this.options.adapter.translatePath("assets/html/workspace.json"),type:"json",name:"workspace"}],function(n){var o=e.userAgentInfo.locale;e.options.extensions&&e.options.extensions.workspaceProps&&(n.workspace=a.deepExtend(n.workspace,e.options.extensions.workspaceProps)),n.workspace.locales||(n.workspace.locales=["en","ar","de","es","fi","fr","he","it","ja","nl","no","pl","pt","ru","sv","tr","zh"]),-1===n.workspace.locales.indexOf(o)&&(o=n.workspace.locales[0]||"en"),p.loadJSON(e.options.adapter.translatePath("locales/"+o+".json"),function(n){e._resetViewport();var r,i=t.document.createElement("style");r=" \n .security-container{\n overflow: hidden;\n text-align: center;\n display: inline-block;\n vertical-align: middle;\n width: 100%;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%)\n }\n .security-container svg{\n width: 200px;\n }\n .password-title{\n width: 90%;\n overflow: hidden;\n font-family: Arial, sans-serif;\n font-weight: bold;\n font-size: 24px;\n color: #737b7d;\n margin: 0 0 40px 0;\n display: inline-block;\n }\n ",i.appendChild(t.document.createTextNode(r)),document.getElementsByTagName("head")[0].appendChild(i);var a='

'+n.LoginWindow.DOMAIN_ERROR+'

';document.getElementsByTagName("body")[0].innerHTML=a,"ar"!==o&&"he"!==o||(document.getElementsByClassName("security-container")[0].setAttribute("dir","rtl"),document.getElementsByTagName("svg")[0].style.transform="scaleX(-1)"),window.FBInit&&window.FBInit.PRELOADER&&(document.getElementsByTagName("body")[0].style.backgroundColor=window.FBInit.PRELOADER.backgroundColor,document.getElementsByClassName("password-title")[0].style.color=window.FBInit.PRELOADER.titleColor)})})},g.prototype._render=function(){if(this.options.overrideVersion)this._renderVersion(this.options.overrideVersion);else{this.detector=new o(this.userAgentInfo,this.options);var t,e=this.detector.getSupportedVersions();this.options.versions&&this.options.versions.length?e&&e.length&&(t=this.detector.mainVersion()):t=this.options.callback(e);var n=!1,r=/embed=([^&]+)/.exec(window.location.href);m(r)&&(n=r[1]),this.options.embed=!!n;var i=!1,a=/post=([^&]+)/.exec(window.location.href);m(a)&&(i=a[1]),this.options.usePostMsg=!!i;var s=!1,l=/lightbox=([^&]+)/.exec(window.location.href);m(l)&&(s=l[1]),this.options.lightbox=!!s;var p=!1,c=/protected=([^&]+)/.exec(window.location.href);m(c)&&(p=c[1]),this.options.isProtected=!!p,t?this._renderVersion(t):this._renderMessage("version")}},g.prototype._resetViewport=function(){for(var t=document.getElementsByTagName("meta"),e=document.head&&document.head.removeChild?document.head:document.getElementsByTagName("head")[0],n=0;n100&&(o=0)};a.progress(100),setTimeout(function(){n._isLoaded?l(n._app):n.progressInterval=setInterval(r,n.options.preloader&&n.options.preloader.progressSpeed||10)},500)}else n._hasProgress=!0;void 0!==n.publication&&(t.style.opacity=0,n.userAgentInfo.browser.firefox&&(n.publication.style.visibility="hidden"))}}this.options.userAgentInfo=this.userAgentInfo;var c=t.document.createElement("div");if(c.id="publication",this.container.appendChild(c),this.options.container=c,this.options.fullscreenContainer=this.container,this.options.preloader.loop)this.options.onInit(void 0,!1);else{var u=e.split("-")[0];p.loadScript(this.options.adapter.translatePath("static/"+u+"/init.js"),function(){var e=function(){t.FBPublicationVersion(n.options)};!1===n.options.adapter.isReady?n.options.adapter.on("ready",e):e()},this.options.adapter.getCrossOrigin())}},g.prototype.getState=function(){var t={};return this._app&&d(this._app.getState)&&(t=this._app.getState()),t},e.Publication=g},this),function(){var t="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||this||{},e=t._,n=Array.prototype,o=Object.prototype,r="undefined"!=typeof Symbol?Symbol.prototype:null,i=n.push,a=n.slice,s=o.toString,l=o.hasOwnProperty,p=Array.isArray,c=Object.keys,u=Object.create,d=function(){},h=function(t){return t instanceof h?t:this instanceof h?void(this._wrapped=t):new h(t)};"undefined"==typeof exports||exports.nodeType?t._=h:("undefined"!=typeof module&&!module.nodeType&&module.exports&&(exports=module.exports=h),exports._=h),h.VERSION="1.9.2";var f,g=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,o,r){return t.call(e,n,o,r)};case 4:return function(n,o,r,i){return t.call(e,n,o,r,i)}}return function(){return t.apply(e,arguments)}},m=function(t,e,n){return h.iteratee!==f?h.iteratee(t,e):null==t?h.identity:h.isFunction(t)?g(t,e,n):h.isObject(t)&&!h.isArray(t)?h.matcher(t):h.property(t)};h.iteratee=f=function(t,e){return m(t,e,1/0)};var v=function(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),o=Array(n),r=0;r":">",'"':""","'":"'","`":"`"},D=h.invert(R),G=function(t){var e=function(e){return t[e]},n="(?:"+h.keys(t).join("|")+")",o=RegExp(n),r=RegExp(n,"g");return function(t){return t=null==t?"":""+t,o.test(t)?t.replace(r,e):t}};h.escape=G(R),h.unescape=G(D),h.result=function(t,e,n){h.isArray(e)||(e=[e]);var o=e.length;if(!o)return h.isFunction(n)?n.call(t):n;for(var r=0;r/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var q=/(.)^/,V={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},W=/\\|'|\r|\n|\u2028|\u2029/g,$=function(t){return"\\"+V[t]};h.template=function(t,e,n){!e&&n&&(e=n),e=h.defaults({},e,h.templateSettings);var o,r=RegExp([(e.escape||q).source,(e.interpolate||q).source,(e.evaluate||q).source].join("|")+"|$","g"),i=0,a="__p+='";t.replace(r,function(e,n,o,r,s){return a+=t.slice(i,s).replace(W,$),i=s+e.length,n?a+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":o?a+="'+\n((__t=("+o+"))==null?'':__t)+\n'":r&&(a+="';\n"+r+"\n__p+='"),e}),a+="';\n",e.variable||(a="with(obj||{}){\n"+a+"}\n"),a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{o=new Function(e.variable||"obj","_",a)}catch(e){throw e.source=a,e}var s=function(t){return o.call(this,t,h)};return s.source="function("+(e.variable||"obj")+"){\n"+a+"}",s},h.chain=function(t){var e=h(t);return e._chain=!0,e};var X=function(t,e){return t._chain?h(e).chain():e};h.mixin=function(t){return h.each(h.functions(t),function(e){var n=h[e]=t[e];h.prototype[e]=function(){var t=[this._wrapped];return i.apply(t,arguments),X(this,n.apply(h,t))}}),h},h.mixin(h),h.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=n[t];h.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],X(this,n)}}),h.each(["concat","join","slice"],function(t){var e=n[t];h.prototype[t]=function(){return X(this,e.apply(this._wrapped,arguments))}}),h.prototype.value=function(){return this._wrapped},h.prototype.valueOf=h.prototype.toJSON=h.prototype.value,h.prototype.toString=function(){return String(this._wrapped)},"function"==typeof define&&define.amd&&define("underscore",[],function(){return h})}(),function(t,e){"use strict";"undefined"!=typeof exports?t(global,exports):t(e,e)}(function(t,e){"use strict";function n(){this.handlers=["init","bookStateChanged","turned","goToFirstPage","goToLastPage","zoomed","unzoomed","slideshow","link","image","video","sound","window","share","print","download","fullscreen","search","develop","contextMenu","highlight","note","orientation"]}function o(t){return"function"==typeof t||!1}function r(t){return t.charAt(0).toUpperCase()+t.slice(1)}n.prototype.subscribe=function(e){if(this.evt=e,t.universalAnalytics)this.analytics=t.universalAnalytics,this._apiSubscribe();else var n=this,o=setTimeout(function e(){t.universalAnalytics?(n.analytics=t.universalAnalytics,n._apiSubscribe()):o=setTimeout(e,200)},200)},n.prototype._apiSubscribe=function(){if(this.analytics&&this.evt&&o(this.evt.on))for(var t in this.handlers)if(this.handlers.hasOwnProperty(t)){var e=this.handlers[t];this.evt.on(e,this[e],this)}},n.prototype.init=function(t){this.state=t,this.oldState=t,this.develop({ action:"version",data:t.version}),this.analytics.publicationOpened()},n.prototype.bookStateChanged=function(t,e){this.oldState=this.state||t,this.state=t,this.state.leftPageUrl!==this.state.rightPageUrl||this.state.isSingle||(this.state.rightPageUrl=void 0),this.state.isZoomed?this.analytics.openInSlide(e,this.state.leftPageUrl||this.state.rightPageUrl):this.state.isSingle?this.analytics.openInSpread(e,this.state.rightPageUrl):this.analytics.openInSpread(e,this.state.leftPageUrl,this.state.rightPageUrl)},n.prototype.turned=function(t,e,n){var o=t.pageIndex+1;this.analytics.turned(o,e,n)},n.prototype.develop=function(t){this.analytics.develop(t.action,t.data)},n.prototype.goToFirstPage=function(){this.analytics.flipToFirstPage(void 0)},n.prototype.goToLastPage=function(){this.analytics.flipToLastPage(void 0)},n.prototype.zoomed=function(t){t.isSingle?this.analytics.zoomIn(void 0,t.rightPageUrl):this.analytics.zoomIn(void 0,t.leftPageUrl||t.rightPageUrl)},n.prototype.unzoomed=function(t){t&&t.isSingle?this.analytics.zoomOut(void 0,t.rightPageUrl):this.oldState.isZoomed?this.analytics.zoomOut(void 0,this.oldState.leftPageUrl||this.oldState.rightPageUrl):this.analytics.zoomOut(void 0,t.leftPageUrl||t.rightPageUrl)},n.prototype.slideshow=function(t){t&&"start"===t.action?this.analytics.slideshowStart():"stop"===t.action&&this.analytics.slideshowStop()},n.prototype.link=function(t){"internal"===t.type&&"page"===t.source?this.analytics.internalLink(t.pageToUrl,t.pageUrl):"external"===t.type&&this.analytics.externalLink(t.url,t.pageUrl,t.target)},n.prototype.image=function(t){"loaded"===t.action?this.analytics.imageLoaded(t.url):"click"===t.action&&this.analytics.clickImage(t.url)},n.prototype.video=function(t){"play"===t.action?this.analytics.videoPlay(t.url,t.time):"pause"===t.action?this.analytics.videoPause(t.url,t.time):"stop"===t.action?this.analytics.videoStop(t.url,t.time):"seekTo"===t.action&&this.analytics.videoSeekTo(t.url,t.time)},n.prototype.sound=function(t){"on"===t.action?this.analytics.soundOn():"off"===t.action&&this.analytics.soundOff()},n.prototype.window=function(t){var e={Toc:"TOC",Social:"Share"},n=r(t.component);void 0!==e[n]&&(n=e[n]),"open"===t.action?this.analytics.openWindow(n):"close"===t.action&&this.analytics.closeWindow(n)},n.prototype.share=function(t){"facebook"===t.service?this.analytics.shareByFacebook(t.url):"twitter"===t.service?this.analytics.tweet(t.url):"linkedIn"===t.service?this.analytics.shareByLinkedin(t.url):"tumblr"===t.service?this.analytics.shareByTumblr(t.url):"google+"===t.service?this.analytics.shareByGooglePlus(t.url):"email"===t.service?this.analytics.shareByEmail(t.url):"vk"===t.service?this.analytics.shareByVK(t.url):"clipboard"===t.service&&this.analytics.shareByClipboard(t.url)},n.prototype.print=function(t){this.analytics.print(t.fileName,r(t.option),t.printPage)},n.prototype.download=function(t){this.analytics.download(t.fileName,r(t.option))},n.prototype.contextMenu=function(t){if("open"===t.action){var e=t.page+","+t.elementType+","+t.x+","+t.y;this.analytics.contextMenu("Open",e)}else"select"===t.action&&this.analytics.contextMenu("Select",t.selectedItem)},n.prototype.highlight=function(t){"on"===t.action?this.analytics.highlight("On",t.page):"off"===t.action&&this.analytics.highlight("Off",t.page)},n.prototype.fullscreen=function(t){"on"===t.action?this.analytics.fullscreenOn():"off"===t.action&&this.analytics.fullscreenOff()},n.prototype.search=function(t){this.analytics.search(t.query)},n.prototype.note=function(t){this.analytics.note(t.action,t.initiator)},n.prototype.orientation=function(t){var e=t.state.rightPageUrl||t.state.leftPageUrl;this.analytics.orientation(e,t.value,t.action)},e.UniversalAnalytics=n},this);