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 i=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 i=this,r=function n(){i.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 i,r,o;if(!t&&!e&&!n)return this._events={},this;for(var t in this._events)if(this._events.hasOwnProperty(t)&&(o=this._events[t])){if(this._events[t]=i=[],e||n)for(var a=0,s=o.length;a0},o.prototype.has=function(t){return this.structure.hasOwnProperty(t)},o.prototype.loaded=function(t){return!1===this._loading[t]},o.prototype.getExports=function(t){return this._exports[t]},o.prototype.loading=function(t){return!0===this._loading[t]},o._loadExternalUrl=function(t,e,n){e=e||function(){},n=n||function(){};var i=r();i.open("GET",t,!0),i.onerror=function(){console.error("Error loading "+t),n(i.status)},null===i.onreadystatechange?i.onreadystatechange=function(){4===i.readyState&&(200===i.status?e(i):n(i.status))}:i.onload=function(){e(i)},i.send(null)},o.loadText=function(t,e,n){e=e||function(){},n=n||function(){},o._loadExternalUrl(t,function(t){e(t.responseText)},function(t){n(t)})},o.loadJSON=function(t,e,n){e=e||function(){},n=n||function(){},o.loadText(t,function(t){e(JSON.parse(t))},function(t){n(t)})},o.loadScript=function(e,n,i){n=n||function(){};var r=t.document.getElementsByTagName("head")[0],o=t.document.createElement("script");o.type="text/javascript",o.src=e,i&&o.setAttribute("crossOrigin",i),o.readyState?o.onreadystatechange=function(){"loaded"!==o.readyState&&"complete"!==o.readyState||(o.onreadystatechange=null,n())}:o.onload=function(){n()},r.appendChild(o)},o.superLoad=function(t,e){function n(){0===--r&&e(a)}function i(t){return function(e){e&&(t.result=e,t.name&&(a[t.name]=e)),n()}}for(var r=t.length,a={},s=0;s=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()}i.prototype=new n,i.prototype.constructor=i,i.prototype.getFirstPage=function(){return this.options.firstPage},i.prototype.getCurrentPage=function(){return this.options.currentPage||this.getPathInfo().page};var r=/^([^\?]*)(\?.*)/;i.prototype.getPathInfo=function(){if(!t.location)return null;var e=t.location.href.replace(this.options.baseUrl,"");e=e.replace(t.location.hash,""),e=e.replace(this.options.index,"");var n=null,i=e.split("?")[0].split("/");i[1]&&""!==i[1]?n=i[1]:i[0]&&""!==i[0]&&(n=i[0]);var o,a={};o="#"===t.location.hash.substr(0,1)?t.location.hash.substr(1):t.location.hash;for(var s,l={},p=o.split("&"),c=0;c1?decodeURIComponent(s[0]):"page"]=s.length>1?decodeURIComponent(s[1]):s[0];var u=new RegExp("^[\\w-]+.(html|htm|aspx|asp|jsp|php|xhtml)$","i");l.page?a.page=l.page:l.p?a.page=l.p:n&&null!==n&&!u.test(n)?a.page=n:a.page=this.options.firstPage,a.page&&(a.page=a.page.replace(r,"$1"));var h=(l.zoom||l.z||"").replace(r,"$1");return a.zoom="z"===h,a},i.prototype.getBaseUrl=function(t){return t?this.baseUrl+("/"===this.baseUrl[this.baseUrl.length-1]?"":"/"):this.baseUrl},i.prototype.setPath=function(e){var n=this.getPath(e);null!==n&&(!n.hash&&n.historyApiEnabled?t.history.pushState(e,null,n.url):t.location&&(n.historyApiEnabled&&t.location.href.indexOf(n.url)<0&&t.history.pushState(e,null,n.url),t.location.hash!=="#"+n.hash&&(t.location.hash="#"+n.hash)))},i.prototype.getPath=function(e){if(this.options.editorMode)return null;var n={info:e,historyApiEnabled:t.history&&t.history.pushState&&!this.options.hashMode},i=this._getUrlParams(e,n.historyApiEnabled);return n.url=this.getBaseUrl(i.url||!this.isIndexAvailableAsDefault)+i.url+(this.isIndexAvailableAsDefault?"":this.options.index),n.historyApiEnabled?i.params&&(n.hash=i.params):(i=this._getUrlParams(e),n.hash=i.params),n},i.prototype.getShareUrl=function(t,e,n){var i=this.getPathInfo(),r=this._getUrlParams(i,!1===this.options.hashMode&&!n),o=this.getBaseUrl(t&&i.page||!this.isIndexAvailableAsDefault);return t&&i.page&&(o+=r.url),o+=this.isIndexAvailableAsDefault?"":this.options.index,e&&(o+=(o.indexOf("?")>0?"&":"?")+"utm_source="+e),t&&i.page&&r.params&&(o+="#"+r.params),o},i.prototype.getEmbedPrefix=function(){return this.options.embedPrefix},i.prototype._getUrlParams=function(t,e){var n=[],i="",r="";return t.zoom&&n.push("zoom=z"),t.page&&(e?(r=this.options.firstPage===t.page.toString()?"":t.page+"/",n.length>0&&(i+="")):(i=this.options.firstPage===t.page.toString()?"":"page="+t.page,i.length>0&&n.length>0&&(i+="&"))),i+=n.join("&"),{url:r,params:i}},i.prototype._urlChanged=function(){if(t.location){var e=this.getPathInfo();e&&this.callback&&this.callback(e)}},i.prototype._mergeObjects=function(t,e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);for(var i in e)e.hasOwnProperty(i)&&(n[i]=e[i]);return n},i.prototype.getCrossOrigin=function(){return this.options.crossOrigin},i.prototype.translatePath=function(){var t=n.prototype.translatePath.apply(this,arguments);return t+=(-1===t.indexOf("?")?"?uni=":"&uni=")+this.options.uni},e.HistoryApiAdapter=i},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,e=[];if(this.userAgentInfo.browser.ie&&(t=(this.userAgentInfo.browser.version||"7.0").split(".")[0]),this.userAgentInfo.device.desktop)this.userAgentInfo.browser.ie?t>10&&e.push("html"):e.push("html");else{var n=this.userAgentInfo.os.ios,i=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);(n||i)&&e.push("mobile")}return(!this.userAgentInfo.browser.ie||t>=10)&&e.push("basic"),e},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!0},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||(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]||""},i=/CrOS/.test(e),r=n(/edge\/(\d+(\.\d+)?)/i),o=n(/version\/(\d+(\.\d+)?)/i),a=!1;return/opera|opr/i.test(e)?t={name:"Opera",opera:!0,version:o||n(/(?:opera|opr)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(e)?t={name:"Yandex Browser",yandexbrowser:!0,version:o||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)}:i?{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:o}:{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&&o&&(t.version=o)),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 i=new t.ActiveXObject("ShockwaveFlash.ShockwaveFlash");i&&(n=i.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},i=e(/(ipod|iphone|ipad)/i).toLowerCase(),r=/like android/i.test(t),o=!r&&/android/i.test(t),a=e(/version\/(\d+(\.\d+)?)/i);return i?n={name:"iOS",version:e(/os\s(\d+_*\d*_*\d*)/).split("_").join("."),ios:!0}:o?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:a||e(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:/(web|hpw)os/i.test(t)?(n={name:"WebOS",webos:!0,version:a||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)||a}:/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),i=!n&&/android/i.test(t),r=/cros/.test(t);return e.name=t.match(/ipad/)?"ipad":t.match(/ipod/)?"ipod":t.match(/iphone/)?"iphone":i?"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 o(e,i,r,o){var a={backgroundColor:"#0b97c4",titleColor:"#fff",titleText:"",coverSrc:"",logoLink:{image:"",url:""}},s=this;this.browser=o,this.adapter=i,this.options=n.mergeObjects(a,r),this.preloader=t.document.createElement("div"),this.preloader.id="preloader",this.preloader.style.width="100%",this.preloader.style.height="100%",this.preloader.style.lineHeight=window.innerHeight+"px",this.preloader.style.position="absolute",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._resize=function(){s.preloader.style.lineHeight=window.innerHeight+"px",s._setCoverSize()},t.addEventListener("resize",this._resize),e.appendChild(this.preloader),""!==this.options.coverSrc&&this.options.coverSrc?this._renderCoverPreloader():this._renderNewPreloader()}o.prototype._renderCoverPreloader=function(){var e,i;this.preloader.style.textAlign="center",this._applyCoverStyles(),e=t.document.createElement("div"),e.className="preloader-container",i=t.document.createElement("h3"),i.className="preloader-title",i.innerText=n.decodeHtml(this.options.titleText),e.appendChild(i),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)},o.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():i()?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 o=this;this.browser.publisher||setTimeout(function(){o.preloader.className="show-on"},10)},o.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)},o.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)},o.prototype._resize=function(){},o.prototype._applyCoverStyles=function(){var e,n,i=t.document.createElement("style");e=void 0!==this.options.logoLink&&this.options.logoLink.image?this.adapter.translatePath(this.options.logoLink.image):"none";var r;n=this.adapter.translatePath(this.options.coverSrc),r="\n\t\t\t\t.preloader-container{\n\t\t\t\t\tline-height: 1;\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}\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\tline-height: 1.2;\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('"+n+"');\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\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\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",i.appendChild(t.document.createTextNode(r)),document.getElementsByTagName("head")[0].appendChild(i)},o.prototype._applyNewStyles=function(){var e,n,i=t.document.createElement("style");e=void 0!==this.options.logoLink&&this.options.logoLink.image?this.adapter.translatePath(this.options.logoLink.image):"none" ;n="\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 background-image: url('"+e+"');\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 ",i.appendChild(t.document.createTextNode(n)),document.getElementsByTagName("head")[0].appendChild(i)},o.prototype._apply3dBookStyles=function(){var e,n=t.document.createElement("style"),i=r(this.options.backgroundColor);"#000000"===this.options.backgroundColor&&(i.r=35,i.g=35,i.b=35),i.r=(.85*i.r).toFixed(0),i.g=(.85*i.g).toFixed(0),i.b=(.85*i.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("+i.r+", "+i.g+", "+i.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)),document.getElementsByTagName("head")[0].appendChild(n)},o.prototype._applyFallbackStyles=function(){var e,n=t.document.createElement("style"),i=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('+i.r+", "+i.g+", "+i.b+", 0), rgba("+i.r+", "+i.g+", "+i.b+", 0.5) 90%);\n background-image: -moz-linear-gradient(top, rgba("+i.r+", "+i.g+", "+i.b+", 0), rgba("+i.r+", "+i.g+", "+i.b+", 0.5) 90%);\n background-image: linear-gradient(to bottom, rgba("+i.r+", "+i.g+", "+i.b+", 0), rgba("+i.r+", "+i.g+", "+i.b+", 0.5) 90%);\n }\n #preloader .inner:after {\n background-image: -webkit-linear-gradient(top, rgba("+i.r+", "+i.g+", "+i.b+", 1), rgba("+i.r+", "+i.g+", "+i.b+", 0.5) 90%);\n background-image: -moz-linear-gradient(top, rgba("+i.r+", "+i.g+", "+i.b+", 1), rgba("+i.r+", "+i.g+", "+i.b+", 0.5) 90%);\n background-image: linear-gradient(to bottom, rgba("+i.r+", "+i.g+", "+i.b+", 1), rgba("+i.r+", "+i.g+", "+i.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)),document.getElementsByTagName("head")[0].appendChild(n)},o.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},o.prototype._tuneLogoSize=function(){if(void 0!==this.options.logoLink&&this.options.logoLink.image){var t,e=this,n=e.logoContainer,i=new Image,r=function(){t=e.logoContainer.getBoundingClientRect(),e.logoIMGRect.widthe?(n=i.width/this.coverIMG.naturalWidth,this.coverIMG.style.left="0px",this.coverIMG.style.height=this.coverIMG.naturalHeight*n+"px",this.coverIMG.style.width=i.width+"px",this.coverIMG.style.top=(i.height-this.coverIMG.height)/2+"px"):(n=i.height/this.coverIMG.naturalHeight,this.coverIMG.style.top="0px",this.coverIMG.style.width=this.coverIMG.naturalWidth*n+"px",this.coverIMG.style.height=i.height+"px",this.coverIMG.style.left=(i.width-this.coverIMG.width)/2+"px")}},o.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)"}},o.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.parentNode&&n.preloader.parentNode.removeChild(n.preloader),delete n.preloader,e()},800)},1e3)},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,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 i(){this.states={}}i.prototype.constructor=i,i.prototype.on=function(t,e){this._setState(t,n.READY),e(this.getInfo(t))},i.prototype.off=function(){},i.prototype._setState=function(t,e){this.states[t]=e},i.prototype._getState=function(t){return this.states.hasOwnProperty(t)?this.states[t]:n.UNREADY},i.prototype.getInfo=function(t){return{id:t,state:this._getState(t),pageInfo:{}}},e.ResourceStateProvider=i},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 i(){}i.prototype=new n,i.prototype.constructor=i,i.prototype.methods=[],i.prototype.addMethod=function(t,e){i.prototype[t]=e,i.prototype.methods.push(t)},e.Api=i},this),function(t,e){"use strict";if("undefined"!=typeof exports){var n=require("./ua-detector").UserAgentDetector,i=require("./publication-detector").PublicationDetector,r=require("./adapters/local-hash").LocalHashAdapter,o=require("./preloader").Preloader,a=require("./fb-utils"),s=require("./events").BaseEvents,l=require("./api").Api,p=require("../src/modules/library-manager");t(global,exports,n,i,r,o,a,s,l,p)}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,i,r,o,a,s,l,p){"use strict";function c(t){return"function"==typeof t||!1}function u(e){var o={container:t.document.getElementsByTagName("body")[0],callback:function(){},onPublicationLoad:function(){},navigator:t.navigator};if(this.options=a.mergeObjects(o,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),this.options.overrideVersion)this._renderVersion(this.options.overrideVersion);else{this.detector=new i(this.userAgentInfo,this.options.versions);var s,c=this.detector.getSupportedVersions();this.options.versions&&this.options.versions.length?c&&c.length&&(s=this.detector.mainVersion()):s=this.options.callback(c),s?this._renderVersion(s):void 0===s&&this._renderBlank()}}u.prototype=new s,u.prototype.constructor=u,u.prototype.destructor=function(){this.app&&c(this.app.destructor)&&this.app.destructor()},u.prototype.goToPage=function(t){this._app&&c(this._app.goToPage)&&this._app.goToPage(t)},u.prototype._renderBlank=function(){var t,e,n=this;t=function(t,n){for(var i in n)if(n.hasOwnProperty(i))if("style"===i)for(var r in n[i])n[i].hasOwnProperty(r)&&(t.style[r]=n[i][r]);else e(i,n[i],t)},e=function(e,n,i){var r=document.createElement(e);return t(r,n),i&&(i.appendChild(r),i[e]=r),r},p.loadJSON(this.options.adapter.translatePath("static/blank/blank.json"),function(e){n.options.container.innerHTML="",t(n.options.container,e.container);var i=n.userAgentInfo.locale;e.localization.hasOwnProperty(i)||(i="en"),n.options.container.span.innerHTML=e.localization[i].MOBILE_AND_OLD_BROWSERS},function(){n.options.container.innerHTML="The author of this publication restricted it from viewing on mobile devices and older browsers. To view the content, please open it in the latest version of Google Chrome, Mozilla Firefox, Safari or Microsoft Edge."})},u.prototype._renderVersion=function(e){this.container=this.options.container,this.options.container.innerHTML="",this.options.container.setAttribute("class","");var n=this;if("basic"!==e){var i=new o(this.container,this.options.adapter,this.options.preloader,this.userAgentInfo.browser),r=this.options.onPublicationLoad,a=function(t){function e(){clearInterval(n.progressInterval),c(n.app.onReady)?i.remove(function(){n.app.onReady(),n.api.trigger("preloader-off")}):i.remove(function(){n.api.trigger("preloader-off")})}t&&(n.app=t),n.publication?(n.publication.style.transition="opacity 0.25s ease-in-out",n.publication.addEventListener("transitionend",e,!1),n.publication.style.opacity=1,n.userAgentInfo.browser.firefox&&(n.publication.style.visibility="visible")):e(),r(t)};this.options.onPublicationLoad=function(t){n._isLoaded=!0,n._app=t,n._hasProgress&&a(t)},this.options.onProgress=function(t){i.progress(t)},this.options.onInit=function(t,e){if(n._isLoaded=!1,n._hasProgress=!1,n.publication=t,!0!==e){var r=0,o=function(){i.progress(r++),n._isLoaded&&(clearInterval(n.progressInterval),a(n._app)),r>100&&(r=0)};i.progress(100),setTimeout(function(){n._isLoaded?a(n._app):n.progressInterval=setInterval(o,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 s=t.document.createElement("div");s.id="publication",this.container.appendChild(s),this.options.container=s,this.options.fullscreenContainer=this.container,this.options.preloader.loop?this.options.onInit(void 0,!1):p.loadScript(this.options.adapter.translatePath("static/"+e+"/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())},u.prototype.getState=function(){var t={};return this._app&&c(this._app.getState)&&(t=this._app.getState()),t},e.Publication=u},this),function(){function t(t){function e(e,n,i,r,o,a){for(;o>=0&&a>o;o+=t){var s=r?r[o]:o;i=n(i,e[s],s,e)}return i}return function(n,i,r,o){i=b(i,o,4);var a=!A(n)&&y.keys(n),s=(a||n).length,l=t>0?0:s-1;return arguments.length<3&&(r=n[a?a[l]:l],l+=t),e(n,i,r,a,l,s)}}function e(t){return function(e,n,i){n=x(n,i);for(var r=S(e),o=t>0?0:r-1;o>=0&&r>o;o+=t)if(n(e[o],o,e))return o;return-1}}function n(t,e,n){return function(i,r,o){var a=0,s=S(i);if("number"==typeof o)t>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return o=n(i,r),i[o]===r?o:-1;if(r!==r)return o=e(c.call(i,a,s),y.isNaN),o>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&s>o;o+=t)if(i[o]===r)return o;return-1}}function i(t,e){var n=M.length,i=t.constructor,r=y.isFunction(i)&&i.prototype||s,o="constructor";for(y.has(t,o)&&!y.contains(e,o)&&e.push(o);n--;)(o=M[n])in t&&t[o]!==r[o]&&!y.contains(e,o)&&e.push(o)}var r=this,o=r._,a=Array.prototype,s=Object.prototype,l=Function.prototype,p=a.push,c=a.slice,u=s.toString,h=s.hasOwnProperty,d=Array.isArray,f=Object.keys,g=l.bind,v=Object.create,m=function(){},y=function(t){return t instanceof y?t:this instanceof y?void(this._wrapped=t):new y(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=y),exports._=y):r._=y,y.VERSION="1.8.3";var b=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 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)};case 4:return function(n,i,r,o){return t.call(e,n,i,r,o)}}return function(){return t.apply(e,arguments)}},x=function(t,e,n){return null==t?y.identity:y.isFunction(t)?b(t,e,n):y.isObject(t)?y.matcher(t):y.property(t)};y.iteratee=function(t,e){return x(t,e,1/0)};var w=function(t,e){return function(n){var i=arguments.length;if(2>i||null==n)return n;for(var r=1;i>r;r++)for(var o=arguments[r],a=t(o),s=a.length,l=0;s>l;l++){var p=a[l];e&&void 0!==n[p]||(n[p]=o[p])}return n}},k=function(t){if(!y.isObject(t))return{};if(v)return v(t);m.prototype=t;var e=new m;return m.prototype=null,e},_=function(t){return function(e){return null==e?void 0:e[t]}},P=Math.pow(2,53)-1,S=_("length"),A=function(t){var e=S(t);return"number"==typeof e&&e>=0&&P>=e};y.each=y.forEach=function(t,e,n){e=b(e,n);var i,r;if(A(t))for(i=0,r=t.length;r>i;i++)e(t[i],i,t);else{var o=y.keys(t);for(i=0,r=o.length;r>i;i++)e(t[o[i]],o[i],t)}return t},y.map=y.collect=function(t,e,n){e=x(e,n);for(var i=!A(t)&&y.keys(t),r=(i||t).length,o=Array(r),a=0;r>a;a++){var s=i?i[a]:a;o[a]=e(t[s],s,t)}return o},y.reduce=y.foldl=y.inject=t(1),y.reduceRight=y.foldr=t(-1),y.find=y.detect=function(t,e,n){var i;return i=A(t)?y.findIndex(t,e,n):y.findKey(t,e,n),void 0!==i&&-1!==i?t[i]:void 0},y.filter=y.select=function(t,e,n){var i=[];return e=x(e,n),y.each(t,function(t,n,r){e(t,n,r)&&i.push(t)}),i},y.reject=function(t,e,n){return y.filter(t,y.negate(x(e)),n)},y.every=y.all=function(t,e,n){e=x(e,n);for(var i=!A(t)&&y.keys(t),r=(i||t).length,o=0;r>o;o++){var a=i?i[o]:o;if(!e(t[a],a,t))return!1}return!0},y.some=y.any=function(t,e,n){e=x(e,n);for(var i=!A(t)&&y.keys(t),r=(i||t).length,o=0;r>o;o++){var a=i?i[o]:o;if(e(t[a],a,t))return!0}return!1},y.contains=y.includes=y.include=function(t,e,n,i){return A(t)||(t=y.values(t)),("number"!=typeof n||i)&&(n=0),y.indexOf(t,e,n)>=0},y.invoke=function(t,e){var n=c.call(arguments,2),i=y.isFunction(e);return y.map(t,function(t){var r=i?e:t[e];return null==r?r:r.apply(t,n)})},y.pluck=function(t,e){return y.map(t,y.property(e))},y.where=function(t,e){return y.filter(t,y.matcher(e))},y.findWhere=function(t,e){return y.find(t,y.matcher(e))},y.max=function(t,e,n){var i,r,o=-1/0,a=-1/0;if(null==e&&null!=t){t=A(t)?t:y.values(t);for(var s=0,l=t.length;l>s;s++)(i=t[s])>o&&(o=i)}else e=x(e,n),y.each(t,function(t,n,i){((r=e(t,n,i))>a||r===-1/0&&o===-1/0)&&(o=t,a=r)});return o},y.min=function(t,e,n){var i,r,o=1/0,a=1/0;if(null==e&&null!=t){t=A(t)?t:y.values(t);for(var s=0,l=t.length;l>s;s++)i=t[s],o>i&&(o=i)}else e=x(e,n),y.each(t,function(t,n,i){r=e(t,n,i),(a>r||1/0===r&&1/0===o)&&(o=t,a=r)});return o},y.shuffle=function(t){for(var e,n=A(t)?t:y.values(t),i=n.length,r=Array(i),o=0;i>o;o++)e=y.random(0,o),e!==o&&(r[o]=r[e]),r[e]=n[o];return r},y.sample=function(t,e,n){return null==e||n?(A(t)||(t=y.values(t)),t[y.random(t.length-1)]):y.shuffle(t).slice(0,Math.max(0,e))},y.sortBy=function(t,e,n){return e=x(e,n),y.pluck(y.map(t,function(t,n,i){return{value:t,index:n,criteria:e(t,n,i)}}).sort(function(t,e){var n=t.criteria,i=e.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(i>n||void 0===i)return-1}return t.index-e.index}),"value")};var I=function(t){return function(e,n,i){var r={};return n=x(n,i),y.each(e,function(i,o){var a=n(i,o,e);t(r,i,a)}),r}};y.groupBy=I(function(t,e,n){y.has(t,n)?t[n].push(e):t[n]=[e]}),y.indexBy=I(function(t,e,n){t[n]=e}),y.countBy=I(function(t,e,n){y.has(t,n)?t[n]++:t[n]=1}),y.toArray=function(t){return t?y.isArray(t)?c.call(t):A(t)?y.map(t,y.identity):y.values(t):[]},y.size=function(t){return null==t?0:A(t)?t.length:y.keys(t).length},y.partition=function(t,e,n){e=x(e,n);var i=[],r=[];return y.each(t,function(t,n,o){(e(t,n,o)?i:r).push(t)}),[i,r]},y.first=y.head=y.take=function(t,e,n){return null==t?void 0:null==e||n?t[0]:y.initial(t,t.length-e)},y.initial=function(t,e,n){return c.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},y.last=function(t,e,n){return null==t?void 0:null==e||n?t[t.length-1]:y.rest(t,Math.max(0,t.length-e))},y.rest=y.tail=y.drop=function(t,e,n){return c.call(t,null==e||n?1:e)},y.compact=function(t){return y.filter(t,y.identity)};var E=function(t,e,n,i){for(var r=[],o=0,a=i||0,s=S(t);s>a;a++){var l=t[a];if(A(l)&&(y.isArray(l)||y.isArguments(l))){e||(l=E(l,e,n));var p=0,c=l.length;for(r.length+=c;c>p;)r[o++]=l[p++]}else n||(r[o++]=l)}return r};y.flatten=function(t,e){return E(t,e,!1)},y.without=function(t){return y.difference(t,c.call(arguments,1))},y.uniq=y.unique=function(t,e,n,i){y.isBoolean(e)||(i=n,n=e,e=!1),null!=n&&(n=x(n,i));for(var r=[],o=[],a=0,s=S(t);s>a;a++){var l=t[a],p=n?n(l,a,t):l;e?(a&&o===p||r.push(l),o=p):n?y.contains(o,p)||(o.push(p),r.push(l)):y.contains(r,l)||r.push(l)}return r},y.union=function(){return y.uniq(E(arguments,!0,!0))},y.intersection=function(t){for(var e=[],n=arguments.length,i=0,r=S(t);r>i;i++){var o=t[i];if(!y.contains(e,o)){for(var a=1;n>a&&y.contains(arguments[a],o);a++);a===n&&e.push(o)}}return e},y.difference=function(t){var e=E(arguments,!0,!0,1);return y.filter(t,function(t){return!y.contains(e,t)})},y.zip=function(){return y.unzip(arguments)},y.unzip=function(t){for(var e=t&&y.max(t,S).length||0,n=Array(e),i=0;e>i;i++)n[i]=y.pluck(t,i);return n},y.object=function(t,e){for(var n={},i=0,r=S(t);r>i;i++)e?n[t[i]]=e[i]:n[t[i][0]]=t[i][1];return n},y.findIndex=e(1),y.findLastIndex=e(-1),y.sortedIndex=function(t,e,n,i){n=x(n,i,1);for(var r=n(e),o=0,a=S(t);a>o;){var s=Math.floor((o+a)/2);n(t[s])o;o++,t+=n)r[o]=t;return r};var O=function(t,e,n,i,r){if(!(i instanceof e))return t.apply(n,r);var o=k(t.prototype),a=t.apply(o,r);return y.isObject(a)?a:o};y.bind=function(t,e){if(g&&t.bind===g)return g.apply(t,c.call(arguments,1));if(!y.isFunction(t))throw new TypeError("Bind must be called on a function");var n=c.call(arguments,2),i=function(){return O(t,i,e,this,n.concat(c.call(arguments)))};return i},y.partial=function(t){var e=c.call(arguments,1),n=function(){for(var i=0,r=e.length,o=Array(r),a=0;r>a;a++)o[a]=e[a]===y?arguments[i++]:e[a];for(;i=i)throw new Error("bindAll must be passed function names");for(e=1;i>e;e++)n=arguments[e],t[n]=y.bind(t[n],t);return t},y.memoize=function(t,e){var n=function(i){var r=n.cache,o=""+(e?e.apply(this,arguments):i);return y.has(r,o)||(r[o]=t.apply(this,arguments)),r[o]};return n.cache={},n},y.delay=function(t,e){var n=c.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},y.defer=y.partial(y.delay,y,1),y.throttle=function(t,e,n){var i,r,o,a=null,s=0;n||(n={});var l=function(){s=!1===n.leading?0:y.now(),a=null,o=t.apply(i,r),a||(i=r=null)};return function(){var p=y.now();s||!1!==n.leading||(s=p);var c=e-(p-s);return i=this,r=arguments,0>=c||c>e?(a&&(clearTimeout(a),a=null),s=p,o=t.apply(i,r),a||(i=r=null)):a||!1===n.trailing||(a=setTimeout(l,c)),o}},y.debounce=function(t,e,n){var i,r,o,a,s,l=function(){var p=y.now()-a;e>p&&p>=0?i=setTimeout(l,e-p):(i=null,n||(s=t.apply(o,r),i||(o=r=null)))};return function(){o=this,r=arguments,a=y.now();var p=n&&!i;return i||(i=setTimeout(l,e)),p&&(s=t.apply(o,r),o=r=null),s}},y.wrap=function(t,e){return y.partial(e,t)},y.negate=function(t){return function(){return!t.apply(this,arguments)}},y.compose=function(){var t=arguments,e=t.length-1;return function(){ for(var n=e,i=t[e].apply(this,arguments);n--;)i=t[n].call(this,i);return i}},y.after=function(t,e){return function(){return--t<1?e.apply(this,arguments):void 0}},y.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),1>=t&&(e=null),n}},y.once=y.partial(y.before,2);var C=!{toString:null}.propertyIsEnumerable("toString"),M=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];y.keys=function(t){if(!y.isObject(t))return[];if(f)return f(t);var e=[];for(var n in t)y.has(t,n)&&e.push(n);return C&&i(t,e),e},y.allKeys=function(t){if(!y.isObject(t))return[];var e=[];for(var n in t)e.push(n);return C&&i(t,e),e},y.values=function(t){for(var e=y.keys(t),n=e.length,i=Array(n),r=0;n>r;r++)i[r]=t[e[r]];return i},y.mapObject=function(t,e,n){e=x(e,n);for(var i,r=y.keys(t),o=r.length,a={},s=0;o>s;s++)i=r[s],a[i]=e(t[i],i,t);return a},y.pairs=function(t){for(var e=y.keys(t),n=e.length,i=Array(n),r=0;n>r;r++)i[r]=[e[r],t[e[r]]];return i},y.invert=function(t){for(var e={},n=y.keys(t),i=0,r=n.length;r>i;i++)e[t[n[i]]]=n[i];return e},y.functions=y.methods=function(t){var e=[];for(var n in t)y.isFunction(t[n])&&e.push(n);return e.sort()},y.extend=w(y.allKeys),y.extendOwn=y.assign=w(y.keys),y.findKey=function(t,e,n){e=x(e,n);for(var i,r=y.keys(t),o=0,a=r.length;a>o;o++)if(i=r[o],e(t[i],i,t))return i},y.pick=function(t,e,n){var i,r,o={},a=t;if(null==a)return o;y.isFunction(e)?(r=y.allKeys(a),i=b(e,n)):(r=E(arguments,!1,!1,1),i=function(t,e,n){return e in n},a=Object(a));for(var s=0,l=r.length;l>s;s++){var p=r[s],c=a[p];i(c,p,a)&&(o[p]=c)}return o},y.omit=function(t,e,n){if(y.isFunction(e))e=y.negate(e);else{var i=y.map(E(arguments,!1,!1,1),String);e=function(t,e){return!y.contains(i,e)}}return y.pick(t,e,n)},y.defaults=w(y.allKeys,!0),y.create=function(t,e){var n=k(t);return e&&y.extendOwn(n,e),n},y.clone=function(t){return y.isObject(t)?y.isArray(t)?t.slice():y.extend({},t):t},y.tap=function(t,e){return e(t),t},y.isMatch=function(t,e){var n=y.keys(e),i=n.length;if(null==t)return!i;for(var r=Object(t),o=0;i>o;o++){var a=n[o];if(e[a]!==r[a]||!(a in r))return!1}return!0};var T=function(t,e,n,i){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof y&&(t=t._wrapped),e instanceof y&&(e=e._wrapped);var r=u.call(t);if(r!==u.call(e))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}var o="[object Array]"===r;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(y.isFunction(a)&&a instanceof a&&y.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[],i=i||[];for(var l=n.length;l--;)if(n[l]===t)return i[l]===e;if(n.push(t),i.push(e),o){if((l=t.length)!==e.length)return!1;for(;l--;)if(!T(t[l],e[l],n,i))return!1}else{var p,c=y.keys(t);if(l=c.length,y.keys(e).length!==l)return!1;for(;l--;)if(p=c[l],!y.has(e,p)||!T(t[p],e[p],n,i))return!1}return n.pop(),i.pop(),!0};y.isEqual=function(t,e){return T(t,e)},y.isEmpty=function(t){return null==t||(A(t)&&(y.isArray(t)||y.isString(t)||y.isArguments(t))?0===t.length:0===y.keys(t).length)},y.isElement=function(t){return!(!t||1!==t.nodeType)},y.isArray=d||function(t){return"[object Array]"===u.call(t)},y.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},y.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){y["is"+t]=function(e){return u.call(e)==="[object "+t+"]"}}),y.isArguments(arguments)||(y.isArguments=function(t){return y.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(y.isFunction=function(t){return"function"==typeof t||!1}),y.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},y.isNaN=function(t){return y.isNumber(t)&&t!==+t},y.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===u.call(t)},y.isNull=function(t){return null===t},y.isUndefined=function(t){return void 0===t},y.has=function(t,e){return null!=t&&h.call(t,e)},y.noConflict=function(){return r._=o,this},y.identity=function(t){return t},y.constant=function(t){return function(){return t}},y.noop=function(){},y.property=_,y.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},y.matcher=y.matches=function(t){return t=y.extendOwn({},t),function(e){return y.isMatch(e,t)}},y.times=function(t,e,n){var i=Array(Math.max(0,t));e=b(e,n,1);for(var r=0;t>r;r++)i[r]=e(r);return i},y.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},y.now=Date.now||function(){return(new Date).getTime()};var B={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},L=y.invert(B),z=function(t){var e=function(e){return t[e]},n="(?:"+y.keys(t).join("|")+")",i=RegExp(n),r=RegExp(n,"g");return function(t){return t=null==t?"":""+t,i.test(t)?t.replace(r,e):t}};y.escape=z(B),y.unescape=z(L),y.result=function(t,e,n){var i=null==t?void 0:t[e];return void 0===i&&(i=n),y.isFunction(i)?i.call(t):i};var j=0;y.uniqueId=function(t){var e=++j+"";return t?t+e:e},y.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var U=/(.)^/,F={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},N=/\\|'|\r|\n|\u2028|\u2029/g,R=function(t){return"\\"+F[t]};y.template=function(t,e,n){!e&&n&&(e=n),e=y.defaults({},e,y.templateSettings);var i=RegExp([(e.escape||U).source,(e.interpolate||U).source,(e.evaluate||U).source].join("|")+"|$","g"),r=0,o="__p+='";t.replace(i,function(e,n,i,a,s){return o+=t.slice(r,s).replace(N,R),r=s+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?o+="'+\n((__t=("+i+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var a=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var s=function(t){return a.call(this,t,y)};return s.source="function("+(e.variable||"obj")+"){\n"+o+"}",s},y.chain=function(t){var e=y(t);return e._chain=!0,e};var G=function(t,e){return t._chain?y(e).chain():e};y.mixin=function(t){y.each(y.functions(t),function(e){var n=y[e]=t[e];y.prototype[e]=function(){var t=[this._wrapped];return p.apply(t,arguments),G(this,n.apply(y,t))}})},y.mixin(y),y.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=a[t];y.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],G(this,n)}}),y.each(["concat","join","slice"],function(t){var e=a[t];y.prototype[t]=function(){return G(this,e.apply(this._wrapped,arguments))}}),y.prototype.value=function(){return this._wrapped},y.prototype.valueOf=y.prototype.toJSON=y.prototype.value,y.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return y})}.call(this),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","goToFirstPage","goToLastPage","zoomed","unzoomed","slideshow","link","image","video","sound","window","share","print","download","fullscreen","search","develop","contextMenu","highlight","note"]}function i(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,i=setTimeout(function e(){t.universalAnalytics?(n.analytics=t.universalAnalytics,n._apiSubscribe()):i=setTimeout(e,200)},200)},n.prototype._apiSubscribe=function(){if(this.analytics&&this.evt&&i(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){this.oldState=this.state||t,this.state=t,this.state.leftPageUrl===this.state.rightPageUrl&&(this.state.rightPageUrl=void 0),this.state.isZoomed?this.analytics.openInSlide(void 0,this.state.leftPageUrl||this.state.rightPageUrl):this.analytics.openInSpread(void 0,this.state.leftPageUrl,this.state.rightPageUrl)},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){this.analytics.zoomIn(void 0,t.leftPageUrl||t.rightPageUrl)},n.prototype.unzoomed=function(){this.analytics.zoomOut(void 0,this.oldState.leftPageUrl||this.oldState.rightPageUrl)},n.prototype.slideshow=function(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.number)},n.prototype.download=function(t){this.analytics.download(t.url,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)},e.UniversalAnalytics=n},this);