(window.webpackJsonp=window.webpackJsonp||[]).push([[0],Array(97).concat([function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e){var i=this;a.default.use(f.default),(0,d.isObject)(t.api)&&(0,h.ApiPlugin)((0,o.getStore)(),t.api,e),(0,c.default)().setAdapter(t.adapter);var n=void 0;switch(e){case"mobile":case"mobile-old":default:n=u.default}(0,s.default)((0,o.getStore)(),function(e){i.vm=new a.default({el:t.container,i18n:l.default,api:t.api,store:(0,o.getStore)(),components:{layout:n},mounted:function(){(0,o.getStore)().contentData=e,e=null,t.onPublicationLoad({}),(0,o.getStore)().commit("workspace/INIT"),(0,h.subscribeEvents)((0,o.getStore)(),t.api,this)}})},t,e),(0,c.default)().setCallback(function(t){(0,o.getStore)().dispatch("pager/goToPageByUserInput",{userInput:t.page,type:"url"})})}Object.defineProperty(e,"__esModule",{value:!0}),e.App=void 0;var o=i(104),s=n(i(197)),a=n(i(102)),l=n(i(120)),u=n(i(294)),c=n(i(101)),h=i(457),d=i(100),f=n(i(458));r.prototype.constructor=r,r.prototype.destructor=function(){this.vm.$destroy()},e.App=r},,,function(t,e,i){"use strict";function n(t,e){return null!=t&&hasOwnProperty.call(t,e)}function r(t){return"[object String]"===a.call(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.isRoman=e.isString=e.has=e.isEmpty=e.isArray=e.isFunction=e.isUndefined=e.isNull=e.isObject=void 0;var o="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},s=i(32),a=Object.prototype.toString,l=Math.pow(2,53)-1,u=function(t){return null==t?void 0:t.length},c=function(t){var e=u(t);return"number"==typeof e&&e>=0&&e<=l},h=function(t){return"[object Arguments]"===a.call(t)};!function(){h(arguments)||(h=function(t){return n(t,"callee")})}(),e.isObject=function(t){var e=void 0===t?"undefined":o(t);return"function"===e||"object"===e&&!!t},e.isNull=function(t){return null===t},e.isUndefined=function(t){return void 0===t},e.isFunction=s.isFunction,e.isArray=s.isArray,e.isEmpty=function(t){return null==t||(c(t)&&((0,s.isArray)(t)||r(t)||h(t))?0===t.length:0===Object.keys(t).length)},e.has=n,e.isString=r,e.isRoman=function(t){var e=t.toUpperCase();return e&&/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/.test(e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(100),r=function(){function t(){return e||(this instanceof t?(e=this,void this.setCallback(function(){})):new t)}var e=void 0;return t.prototype.setAdapter=function(t){var e=this;this.adapter&&(this.adapter.setCallback(null),this.adapter=null),this.adapter=t,this.adapter.setCallback(function(t){e.callback(t)})},t.prototype.setCallback=function(t){this.callback=t},t.prototype.getPathInfo=function(){return this.adapter.getPathInfo()},t.prototype.setPath=function(t){this.adapter.setPath(t)},t.prototype.getShareUrl=function(t){return this.adapter.getShareUrl(t)},t.prototype.getEmbedUrl=function(t){return this.adapter.getEmbedUrl(t)},t.prototype.getLocalStorage=function(){return this.adapter.getLocalStorage()},t.prototype.getSessionStorage=function(){return this.adapter.getSessionStorage()},t.prototype.translatePath=function(t){var e=[];if((0,n.isString)(t))return this.adapter.translatePath(t);for(var i=0,r=t.length;ir?(o.width=e.width,o.height=t.height*(e.width/t.width)):(o.width=t.width*(e.height/t.height),o.height=e.height),i&&(o.width>t.width||o.height>t.height)?{width:t.width,height:t.height,top:0,left:0}:(o.top=(e.height-o.height)/2,o.left=(e.width-o.width)/2,o))},r=e.fill=function(t,e){var i={};return t.width/t.height>e.width/e.height?(i.height=e.height,i.width=t.width*(e.height/t.height)):(i.height=t.height*(e.width/t.width),i.width=e.width),i};e.default={fit:n,fill:r}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.NORMALIZE_INITIALIZED="NORMALIZE_INITIALIZED",r=e.INDEX_LOADED="INDEX_LOADED",o=e.CHANGE_QUERY="CHANGE_QUERY",s=e.CHANGE_PROPERTY="CHANGE_PROPERTY",a=e.HIGHLIGHT_LOADED="HIGHLIGHT_LOADED",l=e.INIT="INIT",u=e.SEARCH_OBJECT_CREATED="SEARCH_OBJECT_CREATED",c=e.SEARCH_LIBRARY_INITIALIZED="SEARCH_LIBRARY_INITIALIZED",h=e.CHANGE_STATUS="CHANGE_STATUS",d=e.ADD_CHUNK="ADD_CHUNK",f=e.ADD_RESULT="ADD_RESULT",g=e.ADD_RESULTS="ADD_RESULTS",p=e.CLEAR_RESULTS="CLEAR_RESULTS",m=e.ADD_HIGHLIGHTS="ADD_HIGHLIGHTS",v=e.CLEAR_HIGHLIGHTS="CLEAR_HIGHLIGHTS",b=e.UPDATE_SCROLL="UPDATE_SCROLL";e.default={NORMALIZE_INITIALIZED:n,INDEX_LOADED:r,CHANGE_QUERY:o,HIGHLIGHT_LOADED:a,INIT:l,CHANGE_PROPERTY:s,SEARCH_OBJECT_CREATED:u,SEARCH_LIBRARY_INITIALIZED:c,CHANGE_STATUS:h,ADD_CHUNK:d,ADD_RESULT:f,ADD_RESULTS:g,CLEAR_RESULTS:p,ADD_HIGHLIGHTS:m,CLEAR_HIGHLIGHTS:v,UPDATE_SCROLL:b}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.CHANGE_PAGE="CHANGE_PAGE",r=e.CHANGE_ZOOM_MODE="CHANGE_ZOOM_MODE",o=e.CHANGE_SINGLE_MODE="CHANGE_SINGLE_MODE",s=e.CHANGE_LAST_TARGET="CHANGE_LAST_TARGET",a=e.FREEZE="FREEZE",l=e.UNFREEZE="UNFREEZE",u=e.FROZEN_BY="FROZEN_BY",c=e.DIRECTION_LEFT="DIRECTION_LEFT",h=e.DIRECTION_RIGHT="DIRECTION_RIGHT",d=e.CHANGE_FLIP_STATE="CHANGE_FLIP_STATE",f=e.CHANGE_FORCE_FLIP="CHANGE_FORCE_FLIP",g=e.CHANGE_FORCE_RERENDER="CHANGE_FORCE_RERENDER";e.default={CHANGE_PAGE:n,CHANGE_ZOOM_MODE:r,CHANGE_SINGLE_MODE:o,CHANGE_LAST_TARGET:s,FREEZE:a,UNFREEZE:l,FROZEN_BY:u,DIRECTION_LEFT:c,DIRECTION_RIGHT:h,CHANGE_FLIP_STATE:d,CHANGE_FORCE_FLIP:f,CHANGE_FORCE_RERENDER:g}},function(t,e,i){"use strict";i.r(e);var n=i(125),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(309),a=i(99),l=function(t){i(307)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);e.default=u.exports},,function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0});var i=function(){return t.XDomainRequest&&!/MSIE 1/.test(t.navigator.userAgent)?new t.XDomainRequest:t.XMLHttpRequest?new t.XMLHttpRequest:void 0};e.request=function(t){var e=t.url,n=void 0===e?"":e,r=t.method,o=void 0===r?"GET":r,s=(t.headers,t.responseType),a=void 0===s?"text":s,l=t.callback,u=void 0===l?function(){}:l,c=t.errorback,h=void 0===c?function(){}:c,d=i();d.open(o,n,!0),"blob"===a&&(d.responseType=a),d.onerror=function(){h(d.status)},d.onreadystatechange=function(){if(4===d.readyState)if(200===d.status)switch(a){case"text":u(d.responseText,d.response.length);break;case"json":u(JSON.parse(d.responseText),d.response.length);break;default:u(d,d.response.length)}else h(d.status)},d.send(null)},e.loadScript=function(e,i){i=i||function(){};var n=t.document.getElementsByTagName("head")[0],r=t.document.createElement("script");r.type="text/javascript",r.src=e,n.appendChild(r),r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,i())}:r.onload=function(){i()}}}).call(this,i(21))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=[",",";","."," ","?","!","'",'"',"",String.fromCharCode(10),String.fromCharCode(13),String.fromCharCode(8211),String.fromCharCode(8212),String.fromCharCode(8722),String.fromCharCode(8209),String.fromCharCode(8208)];e.isSplitter=function(t){for(var e=0;e1&&void 0!==arguments[1]&&arguments[1];this.$store.dispatch("workspace/setResizing",!i&&!this.showSidebar),clearTimeout(v),clearTimeout(b),this.scroll(),"search"!==this.activeComponent&&this.closeAll(),v=setTimeout(function(){e.fullscreen||(e.windowWidth=window.innerWidth,e.windowHeight=window.innerHeight,e.$store.dispatch("workspace/setSize",{width:e.windowWidth,height:e.windowHeight})),e.isIphonePlus&&e.scroll(),e.fullscreen||e.modalOpened||e.singleSlideMode||e.$store.dispatch("pager/setSingleMode",{singleMode:e.portrait,target:"orientation"}),e.isResizing&&(b=setTimeout(function(){e.$store.dispatch("workspace/setResizing",!1)},e.isIphonePlus?850:500)),i&&e.$root.$emit("orientation",e.portrait?"portrait":"landscape","load")},i?100:500)},onFullscreenChange:function(){this.fullscreen=!!document.fullscreenElement},onWebkitfullscreenChange:function(){this.fullscreen=!!document.webkitFullscreenElement},scroll:function(){window.requestAnimationFrame(function(){window.scrollTo(0,-1)})},openSidebar:function(t){if(!this.isWorkspaceFrozen&&!this.isEmbed){if(this.showPopup&&this.$store.dispatch("popup/closePopup"),this.showSidebar)return void this.$store.dispatch("sidebar/closeSidebar");this.$store.dispatch("sidebar/openSidebar",t)}},containerTap:function(t){if(this.showSidebar)this.$store.dispatch("sidebar/closeSidebar");else{for(var e=(0,p.composedPath)(t.target),i=!0,n=!1,r=0,o=e.length;r-1){i=!1;break}s.indexOf("book-container")>-1&&(n=!0)}}i&&n&&(Date.now()>this.tapTimeout&&setTimeout(this.toggleBars,251),this.tapTimeout=Date.now()+250)}},titleTap:function(){this.$store.dispatch("pager/goToFirst")},toggleBars:function(){this.isWorkspaceFrozen||this.isEmbed||Date.now()>this.tapTimeout&&(this.showBars=!this.showBars,this.$root.$emit("develop",{action:"showBars",data:this.showBars?"show":"hide"}))},closeAll:function(){this.showPopup&&this.$store.dispatch("popup/closePopup"),this.showSidebar&&this.$store.dispatch("sidebar/closeSidebar")},goLogoLink:function(){this.logoLink&&window.open(this.logoLink,"_blank")},noticeClose:function(){(0,m.default)().getLocalStorage().setItem("fb_cookieNotice_dismissed","true"),this.noticeShown=!1,this.onResize(null,!0)},noticeShouldShow:function(){return!!this.$store.state.workspace.cookieNotice&&this.$store.state.workspace.cookieNotice.enabled&&"true"!==(0,m.default)().getLocalStorage().getItem("fb_cookieNotice_dismissed")},checkPreloader:function(){var t=this;document.getElementById("preloader")?(this.$store.dispatch("workspace/setPreloader",!0),this.$root.$options.api.once&&"function"==typeof this.$root.$options.api.once&&this.$root.$options.api.once("preloader-off",function(){t.$store.dispatch("workspace/setPreloader",!1)})):this.$store.dispatch("workspace/setPreloader",!1)},checkEmbed:function(){var t=window.location!==window.parent.location;return this.$store.dispatch("workspace/setEmbed",t),t},openInNewWindow:function(){window.open(window.location.href,"_blank")}},computed:{containerClasses:function(){var t={"publication-container":!0,"sidebar-left":"toc"===this.$store.state.sidebar.opened,"sidebar-right":"search"===this.$store.state.sidebar.opened,"panel-left":"thumbnails"===this.$store.state.sidebar.opened,"panel-right":!1,portrait:this.portrait,landscape:!this.portrait,"cookie-notice":this.noticeShown,resizing:this.isResizing&&!this.fullscreen&&!this.modalOpened,embed:this.isEmbed};return t[this.layout]=!0,t},containerStyle:function(){return{width:this.containerSize.width+"px",height:this.containerSize.height+"px"}},containerSize:function(){return{width:this.windowWidth,height:this.windowHeight}},bookContainerSize:function(){var t={width:this.windowWidth,height:this.windowHeight};return this.noticeShown&&(t.height-=this.bannerHeight),t},hasPages:function(){return this.$store.getters["pages/pagesCount"]>0},portrait:function(){return this.windowWidth<=this.windowHeight},isAndroid:function(){return this.$store.state.workspace.userAgentInfo.os.android},isIphonePlus:function(){return this.$store.state.workspace.userAgentInfo.os.ios&&(736===window.innerWidth||414===window.innerWidth)},singleSlideMode:function(){return"slide-book"===this.$store.state.workspace.bookComponent&&!("mobile-old"===this.$store.getters["info/version"]&&this.$store.state.workspace.components.book.flip)},isResizing:function(){return this.$store.state.workspace.isResizing},isFlipping:function(){return"inProgress"===this.$store.state.pager.flipState},modalOpened:function(){return this.$store.state.workspace.modalOpened},mainClasses:function(){return{"main-frame":!0}},title:function(){return this.$store.state.workspace.title},showSearchIcon:function(){return this.$store.state.search.enabled},showMenuIcon:function(){var t=this.$store.state.downloads;return this.$store.state.toc.enabled&&this.$store.state.toc.children||t.enabled&&(t.url&&t.allPagesVisible||!(0,g.isEmpty)(t.pageFiles)&&t.currentPagesVisible||!(0,g.isEmpty)(t.customFiles)&&t.customFiles[0].url)},showThumbsIcon:function(){return this.$store.state.workspace.components.thumbnails},showPopup:function(){return null!==this.$store.state.popup.opened},showSidebar:function(){return null!==this.$store.state.sidebar.opened},activeComponent:function(){return this.$store.state.sidebar.opened},totalPagesVisible:function(){return!1!==this.$store.state.workspace.components.paginator.totalPagesVisible},totalPages:function(){var t=this.$store.state.pages.structure.length-1,e=this.$store.getters["pages/pageCaptionByIndex"](t);return this.$store.state.workspace.customTotalPages||e},pagerState:function(){return this.$store.getters["pager/state"]},stateForDisplay:function(){return this.$store.getters["pager/stateForDisplay"]},customLogoUrl:function(){return this.$store.state.logo.image&&(0,g.isString)(this.$store.state.logo.image)?(0,m.default)().translatePath(this.$store.state.logo.image):null},hasDefaultLogo:function(){return!(!this.$store.state.logo.url||!(0,g.isString)(this.$store.state.logo.url)||this.$store.state.logo.image)&&-1!==this.$store.state.logo.url.toLowerCase().indexOf("flippingbook.com")},showLogo:function(){return!(!this.$store.state.logo.useInMobile||!this.customLogoUrl&&!this.hasDefaultLogo)},logoLink:function(){return this.$store.state.logo.url},cookieNoticeEnabled:function(){return this.$store.state.workspace.cookieNotice&&this.$store.state.workspace.cookieNotice.enabled},visible:function(){return this.$store.state.workspace.visible},isWorkspaceFrozen:function(){return this.$store.state.workspace.freezed},isEmbed:function(){return this.$store.state.workspace.isEmbed},clickToReadText:function(){return this.$t("Other.CLICK_TO_READ")},clickToReadClass:function(){return{"fullscreen-button":!0,hidden:"inProgress"===this.$store.state.pager.flipState}}},watch:{cookieNoticeEnabled:function(t){this.noticeShown=t},fullscreen:function(t){var e=this;t||this.$nextTick(function(){e.onResize()})},modalOpened:function(t){t||this.onResize(null,!0)},pagerState:function(){++this.flipCountTrigger>3&&(this.showBars=!1)},showBars:function(t,e){!e&&t&&(this.flipCountTrigger=0)},portrait:function(t){this.$root.$emit("orientation",t?"portrait":"landscape","change")},visible:function(t){t&&(this.onResize(null,!0),this.showBars=!0,this.flipCountTrigger=0)},isWorkspaceFrozen:function(t){t&&(this.showBars=!0,this.closeAll())}},components:{"book-container":s.default,"th-window":a.default,"toc-window":u.default,"search-window":c.default,"banner-notice":h.default,spinner:d.default,svgicon:f,"mobile-nav":l.default}}},,function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(304)),o=n(i(368)),s=n(i(400)),a=i(105);e.default={data:function(){return{containerSize:{width:0,height:0},bookSize:{width:0,height:0}}},props:["portrait","size"],components:{"flat-book":o.default,"flip-book":r.default,"slide-book":s.default},computed:{version:function(){return this.$store.getters["info/version"]},bookScaleSize:function(){return this.$store.state.workspace&&this.$store.state.workspace.bookSize},originalBookSize:function(){return{width:this.$store.state.book.bookSize.width*(this.portrait?1:2),height:1*this.$store.state.book.bookSize.height}},bookComponent:function(){switch(this.version){case"flat":return"flat-book";case"mobile-old":return"slide-book";case"mobile":case"desktop":default:return this.$store.state.workspace.components.book.flip?"flip-book":"slide-book"}},currentBookComponent:function(){return this.$store.state.workspace.bookComponent},hasNavButtons:function(){return"flat"===this.version}},methods:{fitBook:function(t,e){var i=(0,a.fit)(t,e),n=this.bookScaleSize,r=void 0;switch(this.version){case"flat":return{width:Math.floor(i.width)-2,height:Math.floor(i.height)-2};case"mobile":case"desktop":default:r=(n||100)/100;var o=i.height/i.width;return i.width=i.width%2==0?i.width:i.width+1,i.height=o*i.width,{width:Math.floor(i.width*r),height:Math.floor(i.height*r)}}},resize:function(){var t=window.getComputedStyle(this.$el),e=1*t.getPropertyValue("margin-left").split("px")[0],i=1*t.getPropertyValue("margin-right").split("px")[0],n=1*t.getPropertyValue("margin-top").split("px")[0],r=1*t.getPropertyValue("margin-bottom").split("px")[0];this.containerSize={width:this.size.width-(this.hasNavButtons?80:0)-e-i,height:this.size.height-n-r};var o=this.fitBook(this.originalBookSize,this.containerSize);this.bookSize={width:Math.round(o.width/(this.portrait?1:2)),height:Math.round(o.height)}}},beforeMount:function(){this.$store.dispatch("workspace/setBookComponent",this.bookComponent)},mounted:function(){this.resize()},watch:{size:"resize",bookScaleSize:function(){this.resize()},originalBookSize:function(){this.resize()}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(108)),o=n(i(310)),s=n(i(173)),a=n(i(174)),l=n(i(175)),u=n(i(177)),c=n(i(178)),h=n(i(135)),d=n(i(122)),f=n(i(102)),g=n(i(115));d.default.registerCustomEvent("doubletap",{type:"tap",taps:2,posThreshold:50}),f.default.use(d.default,{name:"v-touch"});var p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{x:0,y:0},n={};return n.width=t.width*e,n.height=t.height*e,n.top=t.top+(i.y-i.y*e),n.left=t.left+(i.x-i.x*e),n},m={"content-block":s.default,"content-link":a.default,"content-image":l.default,"content-gallery":u.default,"content-gif":c.default,"content-video":h.default};e.default={name:"flip-book",props:{"container-size":Object,"page-size":Object},components:{page:r.default},data:function(){return{status:"ready",zoomFactor:1,scaleFactor:1,scaleOrigin:{x:0,y:0},holderScrollTop:0,holderScrollLeft:0,holderScrollY:0,holderScrollX:0,maxZoom:5}},mounted:function(){var t={};t.bookWidth=2*this.$store.state.pages.size.width,t.bookHeight=this.$store.state.pages.size.height,this.bookHolderElement=this.$el.querySelector("#book-holder"),this.lastZoomBlockID=null,this.flipAdapter=new o.default({bookSize:this.bookSize,state:this.$store,container:this.bookHolderElement,parentVm:this,contentCreator:this.contentCreator,initDomEvents:!this.isEmbed}),this.toggleBlockOnFlip(),this.flipAdapter.on("render:start",function(){this.$store.dispatch("pager/freeze",{target:"flip-book"})},this),this.flipAdapter.on("render:finish",function(){this.$store.dispatch("pager/unfreeze",{target:"flip-book"})},this),this.flipAdapter.on("flip:finished",function(){this.$emit("flip:finished")},this)},watch:{forceRerender:function(){this.forceRerender&&(this.$store.dispatch("pager/setForceRerender",{forceRerender:!1}),this.flipAdapter.resetBook())},pageSize:function(t){t.width=t.width*this.zoomFactor,t.height=t.height*this.zoomFactor,this.$store.dispatch("pages/changePageSize",t)},zoomFactor:function(t){this.toggleBlockOnFlip();var e={width:this.pageSize.width,height:this.pageSize.height};e.width=e.width*t,e.height=e.height*t,this.$store.dispatch("pages/changePageSize",e)},status:function(){this.toggleBlockOnFlip(),this.refreshScroll()},bookSize:function(t){this.flipAdapter.resizeBook(t)},singleMode:function(){this.zoomFactor>1&&(this.pageSize.width=this.pageSize.width/this.zoomFactor,this.pageSize.height=this.pageSize.height/this.zoomFactor),this.zoomOut(!0)},currentPages:function(t,e){var i=this;if(t.leftPage!==e.leftPage||t.rightPage!==e.rightPage){var n=function(){i.flipAdapter.trigger("pages:change",t.target);var n=void 0,r=e.rightPage?e.rightPage:null,o=t.rightPage?t.rightPage:null,s=i.$store.getters["pages/pageProp"](r,"wide"),a=i.$store.getters["pages/pageProp"](o,"wide"),l=e.leftPage?e.leftPage:null,u=t.leftPage?t.leftPage:null,c=i.$store.getters["pages/pageProp"](l,"wide"),h=i.$store.getters["pages/pageProp"](u,"wide"),d=i.$store.getters["pages/pageIndexById"](r),f=i.$store.getters["pages/pageIndexById"](l),g=i.$store.getters["pages/pageIndexById"](o),p=i.$store.getters["pages/pageIndexById"](u);null===r&&(d=f+1),null===o&&(g=p+1),null===l&&(f=d-1),null===u&&(p=g-1),n=g+p-d-f;var m=i.$store.state.pager.singleMode,v=!1;n>0&&(v=!0),m?v?(s&&r!==l&&n++,c&&r!==l&&n--):(h&&o!==u&&n++,a&&o!==u&&n--):(c&&r===l&&n--,h&&o===u&&n++,n/=2),n>0&&n<=2?("flipComponent"===t.target||"orientation"===t.target||null!==t.rightPage&&!i.$store.getters["pages/isLastPage"](t.rightPage)||i.$store.dispatch("pager/setForceFlip",{forceFlip:!0}),i.flipAdapter.trigger("go:toLeft",t.target)):n<0&&n>=-2?("flipComponent"===t.target||"orientation"===t.target||null!==t.leftPage&&!i.$store.getters["pages/isFirstPage"](t.rightPage)||i.$store.dispatch("pager/setForceFlip",{forceFlip:!0}),i.flipAdapter.trigger("go:toRight",t.target)):(n>2||n<-2||null===t.rightPage&&null===e.leftPage||null===t.leftPage&&null===e.rightPage)&&i.flipAdapter.trigger("go:toPage",t.target)};1!==this.zoomFactor?(this.zoomOut(!1),setTimeout(n,400)):n()}},isWorkspaceFrozen:function(t){t?this.flipAdapter.block():this.flipAdapter.unblock()},workspaceSize:function(t,e){var i=e.height===t.height&&e.width===t.width;this.zoomFactor>1&&!i&&(this.pageSize.width=this.pageSize.width/this.zoomFactor,this.pageSize.height=this.pageSize.height/this.zoomFactor),this.zoomOut(!0)}},computed:{bookSize:function(){var t;return t=this.$store.state.book.rightToLeft?null===this.$store.state.pager.rightPage?-this.$store.state.pages.size.width:0:this.singleMode||null===this.$store.state.pager.leftPage?-this.$store.state.pages.size.width:0,{width:2*this.$store.state.pages.size.width,height:this.$store.state.pages.size.height,top:(this.containerSize.height-this.$store.state.pages.size.height)/2,left:t}},bookHolderSize:function(){var t=null===this.$store.state.pager.leftPage||null===this.$store.state.pager.rightPage||this.singleMode?this.$store.state.pages.size.width:2*this.$store.state.pages.size.width,e=this.$store.state.pages.size.height,i=void 0,n=void 0;return 1===this.zoomFactor?(i=(this.containerSize.width-t)/2,n=(this.containerSize.height-e)/2):(i=this.holderScrollLeft,n=this.holderScrollTop),{width:t,height:e,top:n,left:i}},bookHolderStyle:function(){var t={width:this.bookHolderSize.width+"px",height:this.bookHolderSize.height+"px",top:1===this.zoomFactor?this.bookHolderSize.top+"px":this.containerSize.height>=this.bookHolderSize.height?Math.round(this.bookHolderSize.top)+"px":"0",left:1===this.zoomFactor?this.bookHolderSize.left+"px":this.containerSize.width>=this.bookHolderSize.width?Math.round(this.bookHolderSize.left)+"px":"0"};return"animating"===this.status?(t.transformOrigin=this.scaleOrigin.x+"px "+this.scaleOrigin.y+"px",t.transition="transform 300ms",0!==this.holderScrollTop||0!==this.holderScrollLeft?t.transform="translate("+(this.containerSize.width1&&"ready"===t.status?t.iscroll?t.iscroll.refresh():(t.holderScrollX=t.containerSize.widtho.width+o.left-r.left?o.width+o.left-r.left:r.width,height:r.height,left:r.left-o.left,top:r.top-o.top}).left<0&&(i.width=i.width+i.left,i.left=0)}else this.lastZoomBlockID=null}else this.lastZoomBlockID=null;if(e){var s=1*(.96*this.containerSize.width/i.width).toFixed(2),a=1*(this.zoomFactor*s).toFixed(2);this.scaleFactor=a>2.5?2.5/this.zoomFactor:s}else this.scaleFactor=1!==this.zoomFactor?this.holderOriginalWidth/this.bookHolderSize.width:2;var l=p(this.bookHolderSize,this.scaleFactor,{x:t.center.x-this.bookHolderSize.left,y:t.center.y-this.bookHolderSize.top});if(e){var u=i.left*this.scaleFactor,c=i.width*this.scaleFactor;l.left=-u+(this.containerSize.width-c)/2}l.height0?l.top=0:l.height+l.top0?l.left=0:l.width+l.left2&&void 0!==arguments[2]?arguments[2]:1;return{x:(t.left-e.left)/(i-1),y:(t.top-e.top)/(i-1)}}(this.bookHolderSize,l,this.scaleFactor),this.newBounds=l,this.status="animating",this.refreshScroll(),this.scaleFactor>1?this.$root.$emit("zoomed"):this.scaleFactor<1&&this.$root.$emit("unzoomed")}},zoomByPinchStart:function(t){this.isWorkspaceFrozen||"ready"!==this.status||"inProgress"===this.$store.state.pager.flipState||(this.minScale=this.holderOriginalWidth/this.bookHolderSize.width,this.scaleFactor=1,1!==this.zoomFactor&&(this.containerSize.widththis.maxZoom&&(this.scaleFactor=this.maxZoom/this.zoomFactor))},zoomByPinchFinish:function(t){if("pinch"===this.status){var e=p(this.bookHolderSize,this.scaleFactor,{x:this.scaleOrigin.x,y:this.scaleOrigin.y});e.height0?e.top=0:e.height+e.top0?e.left=0:e.width+e.left1?this.$root.$emit("zoomed"):this.scaleFactor<1&&this.$root.$emit("unzoomed")}},transitionEnd:function(){"animating"===this.status&&(this.zoomFactor=1*(this.zoomFactor*this.scaleFactor).toFixed(2),this.holderScrollLeft=1===this.zoomFactor?0:this.newBounds.left,this.holderScrollTop=1===this.zoomFactor?0:this.newBounds.top,this.status="ready")},contentCreator:function(t){return m["content-"+t.type]}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e0&&this.$emit("content:changed"),this.refreshCache()},isResizing:function(t){this.$emit("resize:"+(t?"start":"end")),this.refreshCache(),t?(clearTimeout(this.highlightTimeout),clearTimeout(this.highlightOffTimeout),this.isHighlighted=!1):this.checkHighlight()},isPreloaderShown:function(t){t||this.$emit("preloader:off",this)},contentFreezed:function(){this.refreshCache()},preloaderVisible:function(){this.refreshCache()},backgrounds:function(){this.refreshCache()}},created:function(){this.registerPage()},mounted:function(){this.$parent.$on("flip:finished",this.checkHighlight),this.autoHighlight&&this.checkHighlight(),this.refreshCache()},beforeUpdate:function(){this.contentItemsReady>this.contentItemsCount&&(this.contentItemsReady=this.contentItemsCount)},beforeDestroy:function(){clearTimeout(this.highlightTimeout),clearTimeout(this.highlightOffTimeout),this.$parent.$off("flip:finished",this.checkHighlight),this.deregisterPage()},methods:{refreshCache:function(){var t=this;this.contentFreezed||this.$nextTick(function(){t.preloaderVisibleCache!==t.preloaderVisible&&!1===t.preloaderVisible&&t.deferPageLoad?setTimeout(function(){t.preloaderVisibleCache=t.preloaderVisible},300):t.preloaderVisibleCache=t.preloaderVisible,t.backgroundsCache=t.backgrounds,t.isLoadingCache=t.isLoading})},isVisible:function(t){if(!1===this.isWide||this.isWide&&"both"===this.pageSide)return!0;var e=this.$store.getters["pages/pageProp"](this.pageId,"width");return this.isWide&&"left"===this.pageSide?e/2>t.rect[2]:this.isWide&&"right"===this.pageSide?e/2t.rect[2]&&e/2this.tapTimeout&&setTimeout(function(){e.linkTo(t.target)},251),this.tapTimeout=Date.now()+250,setTimeout(function(){e.tapped=!1},500))},linkTo:function(t){if(!(Date.now()0?this.highlightContent():this.isLoading&&this.content.length>0?this.$once("loaded",function(){this.checkHighlight()}):this.isPreloaderShown?this.$once("preloader:off",function(){this.checkHighlight()}):0===this.content.length&&this.$once("content:changed",function(){this.checkHighlight()})}},highlightContent:function(){var t=this;this.highlightTimeout=setTimeout(function(){t.isHighlighted=!0,t.highlightOffTimeout=setTimeout(function(){t.isHighlighted=!1},500)},1e3)},contentItemReady:function(t){this.contentItemsReady++,t.data.crossWide&&"both"!==this.pageSide&&(this.$root.pages[this.pageId+"_"+this.pageSide].crossWideItems||(this.$root.pages[this.pageId+"_"+this.pageSide].crossWideItems={}),this.$root.pages[this.pageId+"_"+this.pageSide].crossWideItems[t.data.key]=t,t.getCrossWideReflection())},contentError:function(){this.hasError=!0},registerPage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pageId;!this.isThumb&&this.isWide&&this.renderContent&&("both"!==this.pageSide&&(t=t+"_"+this.pageSide),this.$root.pages||(this.$root.pages={}),this.$root.pages[t]||(this.$root.pages[t]={}),this.$root.pages[t].component=this)},deregisterPage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pageId;!this.isThumb&&this.isWide&&this.renderContent&&("both"!==this.pageSide&&(t=t+"_"+this.pageSide),this.$root.pages&&this.$root.pages[t]&&delete this.$root.pages[t])},getSpreadTwin:function(){var t=this.$store.getters["pager/state"];if(!this.isCurrent||t.singleMode||t.zoomMode)return null;if(this.pageId===t.leftPage){var e=this.isWide?t.rightPage+"_right":t.rightPage;if(this.$root.pages&&this.$root.pages[e])return this.$root.pages[e].component}if(this.pageId===t.rightPage){var i=this.isWide?t.leftPage+"_left":t.leftPage;if(this.$root.pages&&this.$root.pages[i])return this.$root.pages[i].component}return null}},computed:{contentFreezed:function(){return"pending"!==this.$store.state.pager.flipState},className:function(){return{page:!0,bordered:this.bordered,thumb:this.isThumb,loading:this.isLoading,unready:!this.isReady,error:this.hasError,highlighted:this.isHighlighted,light:this.backgroundLuma>.5,dark:this.backgroundLuma<=.5,tapped:this.tapped}},preloaderVisible:function(){return!this.isStub&&(this.isLoading||!this.isReady||this.hasError)},preloaderHeader:function(){return this.hasError?this.$t("Other.PAGE_ERROR_TITLE"):null},preloaderText:function(){return this.hasError?this.$t("Other.PAGE_ERROR_MESSAGE"):this.isReady?null:this.$t("Other.CONVERTING_PAGE")},thumbnailUrl:function(){return this.$store.getters["pages/pageProp"](this.pageId,"thumbnailUrl")},backgrounds:function(){if(!this.pageId||!this.isReady||this.hasError)return[];var t=[];if(this.isStub)t.push(this.$store.getters["pages/stubUrl"]);else{if(this.isThumb){var e=this.$store.getters["pages/pageProp"](this.pageId,"thumbnailUrl");return e&&t.push(e),t}var i=this.$store.getters["pages/pageProp"](this.pageId,"substrateUrl"),n=this.$store.getters["pages/pageProp"](this.pageId,"textUrl");i&&t.push(i),n&&t.push(n)}return t},backgroundColor:function(){return this.pageId?this.$store.getters["pages/pageProp"](this.pageId,"backgroundColor"):"#ffffff"},backgroundLuma:function(){return(0,s.calculateLuma)((0,s.parseColor)(this.backgroundColor))},isWide:function(){return!!this.pageId&&this.$store.getters["pages/pageProp"](this.pageId,"wide")},isStub:function(){return this.$store.getters["pages/pageProp"](this.pageId,"stub")},content:function(){if(!this.pageId||!this.isReady||this.hasError||!this.renderContent||this.isThumb||this.isStub)return this.contentItemsCount=0,[];var t=[],e=this.contentSize.scaleRatio;if(e<=0)return[];var i=this.$store.getters["pages/pageContent"](this.pageId);for(var n in i)if(i.hasOwnProperty(n)){var o=i[n],s=r({},o);s.key=n,s.page={id:this.pageId,side:this.pageSide,isWide:this.isWide},s.scaleRatio=e,s.crossWide=this.isCrossWide(s),s.component=this.contentCreator(s),this.isVisible(s)&&t.push(s)}return this.contentItemsCount=t.length,t},hasError:function(){return-1===this.$store.getters["pages/pageProp"](this.pageId,"thumbnailUrl")||-1===this.$store.getters["pages/pageProp"](this.pageId,"substrateUrl")||-1===this.$store.getters["pages/pageProp"](this.pageId,"textUrl")},isLoading:function(){return!(!this.isThumb||this.$store.getters["pages/pageProp"](this.pageId,"thumbnailUrl"))||0===this.$store.state.pages.size.width||null===this.$store.state.pages.size.width||!(this.isStub||!this.isReady||this.hasError)&&(this.contentItemsReady8&&(e=8),t.filter="blur("+e+"px)",t},contentStyle:function(){var t=(this.pageSize.width-this.contentSize.width)/(this.isWide&&"both"!==this.pageSide?1:2),e=(this.pageSize.height-this.contentSize.height)/2,i={width:this.contentSize.width.toFixed(0)*this.contentWidthMultiplier+"px",height:this.contentSize.height.toFixed(0)+"px"};return"right"===this.pageSide&&(this.isThumb&&this.$store.state.book.rightToLeft?i.left="0":i.right="0",t&&(i.marginRight=t.toFixed(0)+"px")),t&&"right"!==this.pageSide&&(i.marginLeft=t.toFixed(0)+"px"),e&&(i.marginTop=e.toFixed(0)+"px"),i}}}},,function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(100),r={cTest:!1,id:function(t){return document.getElementById(t)},tag:function(t){return document.getElementsByTagName(t)[0]},tags:function(t){return document.getElementsByTagName(t)},byClass:function(t){return document.getElementsByClassName(t)},add:function(t){return document.createElement(t)},round:function(t,e){e=e||0;for(var i=1,n=0;nthis.tapTimeout&&Date.now()>this.closeTimeout&&setTimeout(this.imageClick,251),this.tapTimeout=Date.now()+250},imageClick:function(){this.isWorkspaceFrozen||this.isEmbed||Date.now()=0&&(this.isVisible=!1,this.$store.dispatch("workspace/setModalOpened",!1),setTimeout(function(){e.$emit("hidden")},this.delay))},loaded:function(){this.isLoaded=!0},error:function(){this.hasError=!0}},mounted:function(){this.parent=this.$el.parentNode,this.$root.$el.appendChild(this.$el)},beforeDestroy:function(){this.$store.dispatch("workspace/setModalOpened",!1),this.parent&&"function"==typeof this.parent.appendChild&&this.parent.appendChild(this.$el)},components:{spinner:n.default}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(i(103)),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}(i(98));i(334),e.default={extends:n.default,name:"content-gallery",props:[],components:{svgicon:r}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}(i(98)),o=n(i(103)),s=n(i(101)),a=n(i(109));i(338),i(339),e.default={extends:o.default,name:"content-gif",props:[],data:function(){return{isIdle:!0,isLoading:!1,isPlaying:!1,isEnded:!1,isAutoplay:this.data.autoplay,imgWidth:null,imgHeight:null,imgRatio:null,preloaderTimeout:null,loopTimeout:null,rand:null,tapTimeout:0}},computed:{containerClasses:function(){return{autoplay:this.isAutoplay,loading:this.isLoading,playing:this.isPlaying,ended:this.isEnded,highlighted:this.isHighlighted}},imageStyle:function(){return{width:Math.round(this.imgWidth*this.imgRatio*this.data.scaleRatio.w)+"px",height:Math.round(this.imgHeight*this.imgRatio*this.data.scaleRatio.h)+"px"}},imageSrc:function(){var t=!1===this.data.loop?"?rand="+this.rand:"";return(0,s.default)().translatePath("assets/common/pages-content/"+this.data.url+t)},isCurrentPage:function(){var t=this.$store.getters["pager/state"];return t.singleMode?this.data.page.isWide?this.data.page.id===t.rightPage&&("right"===this.data.page.side&&t.leftPage===t.rightPage||"left"===this.data.page.side&&t.leftPage!==t.rightPage||"both"===this.data.page.side):this.data.page.id===t.rightPage:this.data.page.id===t.leftPage||this.data.page.id===t.rightPage},isWorkspaceFrozen:function(){return this.$store.state.workspace.freezed},isEmbed:function(){return this.$store.state.workspace.isEmbed}},mounted:function(){this.updateRand(),this.checkAutoplay()},watch:{isCurrentPage:"currentPageChanged"},methods:{onGifClick:function(t){Date.now()>this.tapTimeout&&setTimeout(this.gifClick,251),this.tapTimeout=Date.now()+250},gifClick:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.isWorkspaceFrozen||this.isEmbed||Date.now()144&&this.data.rect[1]*this.data.scaleRatio.h>100},isThumbnailShown:function(){return("dialog"!==this.data.mode||this.data.showImage)&&!this.playerLoaded},isCurrentPage:function(){var t=this.$store.getters["pager/state"];return t.singleMode?this.data.page.isWide?this.data.page.id===t.rightPage&&("right"===this.data.page.side&&t.leftPage===t.rightPage||"left"===this.data.page.side&&t.leftPage!==t.rightPage||"both"===this.data.page.side):this.data.page.id===t.rightPage:this.data.page.id===t.leftPage||this.data.page.id===t.rightPage},isMobile:function(){return"mobile"===this.$store.state.workspace.layout},isIos:function(){return this.$store.state.workspace.userAgentInfo.os.ios},isPublisher:function(){return this.$store.state.workspace.userAgentInfo.browser.publisher},apiVideoUrl:function(){var t="";switch(this.data.provider){case"youtube":t="https://www.youtube.com/watch?v="+this.data.id;break;case"vimeo":t="https://vimeo.com/"+this.data.id;break;case"wistia":t="https://"+this.data.account+".wistia.com/medias/"+this.data.id;break;default:t=this.data.id}return t},modalRect:function(){var t=(0,o.fit)({width:this.data.width?this.data.width:this.data.rect[0],height:this.data.height?this.data.height:this.data.rect[1]},{width:.8*this.workspaceSize.width,height:.8*this.workspaceSize.height});return{width:Math.round(t.width),height:Math.round(t.height)}},workspaceSize:function(){return this.$store.getters["workspace/size"]},modalVideoStyle:function(){return"youtube"===this.data.provider?null:{width:this.modalRect.width+"px",height:this.modalRect.height+"px"}},thumbnailUrl:function(){return this.data.image?(0,s.default)().translatePath("assets/common/pages-content/"+this.data.image):null},containerClasses:function(){return{highlighted:this.isHighlighted}},isWorkspaceFrozen:function(){return this.$store.state.workspace.freezed},isEmbed:function(){return this.$store.state.workspace.isEmbed}},methods:{onVideoClick:function(){Date.now()>this.tapTimeout&&setTimeout(this.videoClick,251),this.tapTimeout=Date.now()+250},videoClick:function(){var t=this;if(!(this.isWorkspaceFrozen||this.isEmbed||Date.now()0}},h:{type:Number,default:200,validator:function(t){return t>0}},minw:{type:Number,default:0,validator:function(t){return t>0}},minh:{type:Number,default:0,validator:function(t){return t>0}},x:{type:Number,default:0,validator:function(t){return"number"==typeof t}},y:{type:Number,default:0,validator:function(t){return"number"==typeof t}},parent:{type:Boolean,default:!0},preserveAspectRatio:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1,default:!1}},mounted:function(){this.libInit()},beforeDestroy:function(){this.libDestroy()},data:function(){return{resizing:!1,dragging:!1,minWidth:this.minw,minHeight:this.minh,keepAspectRatio:this.preserveAspectRatio}},computed:{className:function(){return{"vdr-n":!0,active:this.active,resizable:this.resizable,draggable:this.draggable}}},methods:{libInit:function(){var t=this;if(this.draggable&&(this.draggableEl=new r.Draggable(this.$el,{container:this.parent?this.$el.parentNode:void 0,onDragStart:this.dragStartListener,onDragEnd:this.dragEndListener,onMouseDown:this.mouseDownListener,onMouseUp:this.mouseUpListener})),this.resizable){var e=["left","right","top","bottom","topLeft","topRight","bottomRight","bottomLeft"].reduce(function(e,i){return n({},e,function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}({},i,t.$refs["handle-"+i]))},{});this.resizableEl=new r.Resizable(this.$el,{container:this.parent?this.$el.parentNode:void 0,keepAspectRatio:this.keepAspectRatio,minSize:{width:this.minWidth,height:this.minHeight},onResize:this.resizeListener,onResizeStart:this.resizeStartListener,onResizeEnd:this.resizeEndListener,onMouseDown:this.mouseDownListener,onMouseUp:this.mouseUpListener,handles:e})}this.$el.style.zIndex=this.zIndex,this.updateStyle({top:this.y,left:this.x,width:this.w,height:this.h})},libDestroy:function(){this.draggableEl&&this.draggableEl.destroy(),this.resizableEl&&this.resizableEl.destroy()},mouseDownListener:function(){this.$emit("onMouseDown"),this.$el.style.display="none",document.body.style.userSelect="none"},mouseUpListener:function(){this.$emit("onMouseUp")},resizeStartListener:function(){this.$emit("onResizeStart")},resizeListener:function(t){var e=t.ghost,i=t.rect,n=Math.min(.5*i.width,.5*i.height).toFixed(0)+"px",r=e.querySelector(".play-button");r&&(r.style.maxWidth=n,r.style.maxHeight=n);var o=this.$el.querySelector(".play-button");o&&(o.style.maxWidth=n,o.style.maxHeight=n)},resizeEndListener:function(t){var e=t.rect,i=e.top,n=e.left,r=e.width,o=e.height;this.updateStyle({top:i,left:n,width:r,height:o}),this.$el.style.display="",document.body.style.userSelect="",this.$emit("onResizeStop",{top:i,left:n,width:r,height:o})},dragStartListener:function(){this.$emit("onDragStart")},dragEndListener:function(t){var e=t.rect,i=e.top,n=e.left;this.updateStyle({top:i,left:n}),this.$el.style.display="",document.body.style.userSelect="",this.$emit("onDragStop",{top:i,left:n})},updateStyle:function(t){var e=t.top,i=t.left,n=t.width,r=t.height;(0,o.isUndefined)(e)||(this.$el.style.top=Math.round(e)+"px"),(0,o.isUndefined)(i)||(this.$el.style.left=Math.round(i)+"px"),(0,o.isUndefined)(n)||(this.$el.style.width=Math.round(n)+"px"),(0,o.isUndefined)(r)||(this.$el.style.height=Math.round(r)+"px")}},watch:{x:function(t){this.updateStyle({left:t})},y:function(t){this.updateStyle({top:t})},w:function(t){this.updateStyle({width:t})},h:function(t){this.updateStyle({height:t})},minw:function(t){this.minWidth=t,this.libDestroy(),this.libInit()},minh:function(t){this.minHeight=t,this.libDestroy(),this.libInit()},preserveAspectRatio:function(t){this.keepAspectRatio=t,this.libDestroy(),this.libInit()}}}},function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&o--,!this.isSingleMode&&(t.current[0].wide||2===t.current.length)&&o<0&&o++;var s=Math.abs(o)>1;!this.isRtl&&o>0||this.isRtl&&o<0?this.isZoomed?(this.pendingSlide="right",this.zoomOut()):this.$nextTick(function(){i.animateSlides("right",s,!0)}):(!this.isRtl&&o<0||this.isRtl&&o>0)&&(this.isZoomed?(this.pendingSlide="left",this.zoomOut()):this.$nextTick(function(){i.animateSlides("left",s,!0)}))}},workspaceSize:function(){this.zoomOut()}},computed:{isFirstPage:function(){return this.$store.getters["pager/isFirstPage"]},isLastPage:function(){return this.$store.getters["pager/isLastPage"]},isRightmostPage:function(){return this.isFirstPage&&this.isRtl||this.isLastPage&&!this.isRtl},isLeftmostPage:function(){return this.isLastPage&&this.isRtl||this.isFirstPage&&!this.isRtl},isRtl:function(){return this.$store.state.book.rightToLeft},isSingleMode:function(){return this.$store.state.pager.singleMode},isZoomed:function(){return 1!==this.zoomFactor},slides:function(){var t={},e=this.$store.getters["pager/nextPageId"],i=this.$store.getters["pager/prevPageId"],n=this.isRtl?e:i,r=this.isRtl?i:e;if(this.isSingleMode){t.current=[];var o=this.$store.state.pager.rightPage,s=this.$store.getters["pages/pageProp"](o,"wide"),a=s?o===n?"right":"left":"both";if(t.current.push({id:o,side:a,wide:s,position:""}),n){t.left=[];var l=this.$store.getters["pages/pageProp"](n,"wide"),u=l?o===n?"left":"right":"both";t.left.push({id:n,side:u,wide:l,position:""})}if(r){t.right=[];var c=this.$store.getters["pages/pageProp"](r,"wide"),h=c?o===r?"right":"left":"both";t.right.push({id:r,side:h,wide:c,position:""})}}else{t.current=[];var d=this.isRtl?"right":"left",f=this.isRtl?"left":"right",g=this.$store.getters["pager/state"],p=this.$store.getters["pages/pageProp"](g.leftPage||g.rightPage,"wide");if(g.leftPage&&t.current.push({id:g.leftPage,wide:p,side:"both",position:d}),g.rightPage&&g.leftPage!==g.rightPage&&t.current.push({id:g.rightPage,wide:p,side:"both",position:f}),n){t.left=[];var m=this.$store.getters["pager/stateByPageId"](n),v=this.$store.getters["pages/pageProp"](n,"wide");m.leftPage&&t.left.push({id:m.leftPage,wide:v,side:"both",position:d}),m.rightPage&&m.leftPage!==m.rightPage&&t.left.push({id:m.rightPage,wide:v,side:"both",position:f})}if(r){t.right=[];var b=this.$store.getters["pager/stateByPageId"](r),S=this.$store.getters["pages/pageProp"](r,"wide");b.leftPage&&t.right.push({id:b.leftPage,wide:S,side:"both",position:d}),b.rightPage&&b.leftPage!==b.rightPage&&t.right.push({id:b.rightPage,wide:S,side:"both",position:f})}}return t},fitPageSize:function(){return(0,o.fit)(this.pageSize,this.containerSize)},fitDoublePageSize:function(){return(0,o.fit)({width:2*this.pageSize.width,height:this.pageSize.height},this.containerSize)},fitSinglePageSize:function(){return{width:this.fitDoublePageSize.width/2,height:this.fitDoublePageSize.height,top:this.fitDoublePageSize.top,left:(this.containerSize.width-this.fitDoublePageSize.width/2)/2}},pageSizes:function(){var t={},e=this.fitPageSize,i=this.fitDoublePageSize,n=this.fitSinglePageSize,r=this.slidesCache.current[0].wide;if(t.current={width:Math.round((this.isSingleMode?e.width:r?i.width:n.width)*this.zoomFactor),height:Math.round((this.isSingleMode?e.height:r?i.height:n.height)*this.zoomFactor)},this.slidesCache.left){var o=this.slidesCache.left[0].wide;t.left={width:Math.round(this.isSingleMode?e.width:o?i.width:n.width),height:Math.round(this.isSingleMode?e.height:o?i.height:n.height)}}if(this.slidesCache.right){var s=this.slidesCache.right[0].wide;t.right={width:Math.round(this.isSingleMode?e.width:s?i.width:n.width),height:Math.round(this.isSingleMode?e.height:s?i.height:n.height)}}return t},spreadSizes:function(){var t={},e=2===this.slidesCache.current.length||this.slidesCache.current[0].wide;if(t.current={width:this.pageSizes.current.width*this.slidesCache.current.length,height:this.pageSizes.current.height,left:this.isZoomed?this.slideScrollLeft:this.isSingleMode?this.fitPageSize.left:e?this.fitDoublePageSize.left:this.fitSinglePageSize.left,top:this.isZoomed?this.slideScrollTop:this.isSingleMode?this.fitPageSize.top:e?this.fitDoublePageSize.top:this.fitSinglePageSize.top},this.slidesCache.left){var i=2===this.slidesCache.left.length||this.slidesCache.left[0].wide;t.left={width:this.pageSizes.left.width*this.slidesCache.left.length,height:this.pageSizes.left.height,left:this.isSingleMode?this.fitPageSize.left:i?this.fitDoublePageSize.left:this.fitSinglePageSize.left,top:this.isSingleMode?this.fitPageSize.top:i?this.fitDoublePageSize.top:this.fitSinglePageSize.top}}if(this.slidesCache.right){var n=2===this.slidesCache.right.length||this.slidesCache.right[0].wide;t.right={width:this.pageSizes.right.width*this.slidesCache.right.length,height:this.pageSizes.right.height,left:this.isSingleMode?this.fitPageSize.left:n?this.fitDoublePageSize.left:this.fitSinglePageSize.left,top:this.isSingleMode?this.fitPageSize.top:n?this.fitDoublePageSize.top:this.fitSinglePageSize.top}}return t},spreadStyles:function(){var t={};return t.current={width:this.spreadSizes.current.width+"px",height:this.spreadSizes.current.height+"px",left:this.isZoomed?this.containerSize.width>=this.spreadSizes.current.width?Math.round(this.spreadSizes.current.left)+"px":0:Math.round(this.spreadSizes.current.left)+"px",top:this.isZoomed?this.containerSize.height>=this.spreadSizes.current.height?Math.round(this.spreadSizes.current.top)+"px":0:Math.round(this.spreadSizes.current.top)+"px",transformOrigin:Math.round(this.scaleOrigin.x)+"px "+Math.round(this.scaleOrigin.y)+"px",transition:"animating"===this.status?["-webkit-transform "+this.zoomAnimationSpeed+"ms","transform "+this.zoomAnimationSpeed+"ms"]:["-webkit-transform 0ms","transform 0ms"]},"pinch"!==this.status&&"animating"!==this.status?t.current.transform="":0!==this.slideScrollTop||0!==this.slideScrollLeft?t.current.transform="translate3d("+(this.containerSize.widtho.width+o.left-r.left?o.width+o.left-r.left:r.width,height:r.height,left:r.left-o.left,top:r.top-o.top}).left<0&&(i.width=i.width+i.left,i.left=0)}else this.lastZoomBlockID=null}else this.lastZoomBlockID=null;if(e){var s=1*(.96*this.containerSize.width/i.width).toFixed(2);1*(this.zoomFactor*s).toFixed(2)>this.maxZoom?this.scaleFactor=this.maxZoom/this.zoomFactor:this.scaleFactor=s}else this.scaleFactor=1!==this.zoomFactor?Math.min(this.containerSize.width/(this.spreadSizes.current.width*(!this.isFirstPage&&!this.isLastPage||this.isSingleMode?1:2)),this.containerSize.height/this.spreadSizes.current.height):2;var a=this.getNewBounds(this.spreadSizes.current,this.scaleFactor,{x:t.center.x-this.spreadSizes.current.left,y:t.center.y-this.spreadSizes.current.top});if(e){var l=i.left*this.scaleFactor,u=i.width*this.scaleFactor;a.left=-l+(this.containerSize.width-u)/2}a.height0?a.top=0:a.height+a.top0?a.left=0:a.width+a.left1?this.$root.$emit("zoomed"):this.scaleFactor<1&&this.$root.$emit("unzoomed")}},onTransitionEnd:function(){"animating"===this.status&&(this.zoomFactor=1*(this.zoomFactor*this.scaleFactor).toFixed(2),this.slideScrollLeft=this.isZoomed?this.newBounds.left:0,this.slideScrollTop=this.isZoomed?this.newBounds.top:0,this.status="ready"),this.pendingSlide&&(this.updatePendingSlide(),this.animateSlides(this.pendingSlide,!1,!0),this.pendingSlide=null)},onPinchStart:function(t){this.isWorkspaceFrozen||"ready"!==this.status||(this.minScale=Math.min(this.containerSize.width/this.spreadSizes.current.width,this.containerSize.height/this.spreadSizes.current.height),this.scaleFactor=1,this.isZoomed?(this.containerSize.widththis.maxZoom&&(this.scaleFactor=this.maxZoom/this.zoomFactor),this.scaleFactor=1*this.scaleFactor.toFixed(2))},onPinchFinish:function(){if("pinch"===this.status){var t=this.getNewBounds(this.spreadSizes.current,this.scaleFactor,this.scaleOrigin);if(t.height0?t.top=0:t.height+t.top0?t.left=0:t.width+t.left1?this.$root.$emit("zoomed"):this.scaleFactor<1&&this.$root.$emit("unzoomed")}},onPanMove:function(t){var e=this;if(!this.isWorkspaceFrozen&&"ready"===this.status&&!this.isZoomed){var i=1;(t.deltaX<0&&this.isRightmostPage||t.deltaX>0&&this.isLeftmostPage)&&(i=.3),window.requestAnimationFrame(function(){e.delta=t.deltaX*i})}},onPanEnd:function(t){if(!this.isWorkspaceFrozen&&"ready"===this.status&&!this.isZoomed){var e=Math.abs(t.overallVelocityX).toPrecision(2),i=Math.abs(t.deltaX);t.deltaX>0&&!this.isLeftmostPage&&(i>this.maxDelta/3||e>.5)?this.animateSlides("left"):t.deltaX<0&&!this.isRightmostPage&&(i>this.maxDelta/3||e>.5)?this.animateSlides("right"):this.animateSlides("center")}},zoomOut:function(t){if(1!==this.zoomFactor)return t?(this.status="calculating",this.zoomFactor=1,this.refreshScroll(),this.slideScrollLeft=0,this.slideScrollTop=0,this.status="ready",void this.$root.$emit("unzoomed")):void this.onTap({center:{x:0,y:0}})},goRight:function(){this.scrollLock=!0,this.$store.dispatch(this.isRtl?"pager/goBackward":"pager/goForward",{target:"slide-swipe"})},goLeft:function(){this.scrollLock=!0,this.$store.dispatch(this.isRtl?"pager/goForward":"pager/goBackward",{target:"slide-swipe"})},animateSlides:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o={x:this.delta},s=void 0;switch(t){case"left":s={x:this.maxDelta};break;case"right":s={x:-this.maxDelta};break;case"center":s={x:0}}this.status="sliding",this.$store.dispatch("pager/freeze",{target:"slide-book"}),this.tween=new r.default.Tween(o).to(s,i?0:this.slideAnimationSpeed).easing(r.default.Easing.Sinusoidal.Out).onUpdate(function(){e.delta=o.x}).onComplete(function(){e.$store.dispatch("pager/unfreeze",{target:"slide-book"}),n||("left"===t?e.goLeft():"right"===t&&e.goRight()),e.slidesCacheUpdate(),e.status="ready","center"!==t&&e.highlightContent()}).start()},slidesCacheUpdate:function(){this.slidesCache=this.slides,this.delta=0},updatePendingSlide:function(){this.pendingSlide&&(this.slidesCache[this.pendingSlide]=this.slides.current)},contentCreator:function(t){return g["content-"+t.type]},refreshScroll:function(){var t=this;this.$nextTick(function(){t.isZoomed&&"ready"===t.status?t.iscroll?t.iscroll.refresh():(t.slideScrollX=t.containerSize.width1&&void 0!==arguments[1]?arguments[1]:1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{x:0,y:0},n={};return n.width=t.width*e,n.height=t.height*e,n.top=t.top+(i.y-i.y*e),n.left=t.left+(i.x-i.x*e),n},getOrigin:function(t,e,i){return{x:(t.left-e.left)/(i-1),y:(t.top-e.top)/(i-1)}}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e0}},methods:{thumbsArrayData:function(){if(!this.hasPages)return[];var t=[],e=void 0;e=this.singleMode?this.pagerState.rightPage:this.pagerState.leftPage?this.pagerState.leftPage:this.pagerState.rightPage,e=this.$store.getters["pages/pageIndexById"](e);var i=[];if(this.singleMode){i=this.thumbSizes;for(var n=0;n0&&t.push(u)}this.thumbsData=t},getWrapperRect:function(t){return{width:(t?220:110)*this.thScale,height:170*this.thScale}},getThumbSizes:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e={width:this.$store.getters["pages/size"].width*(!this.singleMode&&t?2:1),height:1*this.$store.getters["pages/size"].height},i=(0,a.fit)(e,this.getWrapperRect(!this.singleMode&&t));return{width:Math.round(i.width),height:Math.round(i.height)}},checkScroll:function(){if(!(Date.now()-1){this.$store.dispatch("pager/goToPageById",{id:e[i].getAttribute("data-id"),target:"thumbnails",rightWideHalf:r.indexOf("side-right")>-1}),"mobile"===this.$store.state.workspace.layout&&this.$store.dispatch("sidebar/closeSidebar","thumbnails");break}}}},components:{sidebar:o.default,"th-item":s.default,spinner:l.default},mounted:function(){var t=this;setTimeout(function(){t.thumbsArrayData(),t.$children[0].refresh(),t.$children[0].iScroll.on("scrollEnd",t.onScrollEnd),t.$children[0].iScroll.on("scrollStart",t.onScrollStart),t.$nextTick(function(){var e=t.$el.getElementsByClassName("active")[0];this.$children[0].iScroll.scrollTo(0,1),t.$children[0].scrollToElement({el:e,speed:300}),t.checkScroll()})},100)}}},function(t,e,i){"use strict";i.r(e);var n=i(151),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(410),a=i(99),l=function(t){i(408)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);e.default=u.exports},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(i(115)),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}(i(98));i(181);var o=void 0;e.default={props:["title","icon","footerTitle"],components:{svgicon:r},methods:{close:function(){var t=this,e=0;this.isAndroid&&"search"===this.activeComponent&&(e=1e3,document.activeElement&&"INPUT"===document.activeElement.tagName&&document.activeElement.blur()),setTimeout(function(){t.$store.dispatch("sidebar/closeSidebar")},e)},refresh:function(){this.$nextTick(function(){this.iScroll.refresh()},this)},scrollToElement:function(t){void 0!==t.el&&this.iScroll.scrollToElement(t.el,t.speed,!0,!0)},getScrollPageSize:function(){return this.$refs.scroller.getBoundingClientRect()}},computed:{isAndroid:function(){return this.$store.state.workspace.userAgentInfo.os.android},activeComponent:function(){return this.$store.state.sidebar.opened}},beforeCreate:function(){var t=this;o=function(e){27===e.keyCode&&t.$store.dispatch("sidebar/closeSidebar")},window.addEventListener("keydown",o)},beforeDestroy:function(){window.removeEventListener("keydown",o),o=null},mounted:function(){this.iScroll=new n.default(document.getElementById("scroller"),{mouseWheel:!0,scrollbars:!0,fadeScrollbars:!0,interactiveScrollbars:!0,probeType:0,disablePointer:!0,disableTouch:!1,disableMouse:!1,resizePolling:200,bounce:!1})}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(108)),o=n(i(182));e.default={props:["data"],components:{page:r.default},computed:{wrapperClasses:function(){var t={"th-item-wrapper":!0};return t["p"+this.data.index]=!0,t.wide=!this.data.sm&&!!this.data.wide,t["side-right"]=this.data.sm&&!!this.data.wide&&"right"===this.data.side,t.active=this.data.active,t},thStyles:function(){var t={};return this.data.size&&(t.width=this.data.size.width+"px",t.height=this.data.size.height+"px"),t},textDirection:function(){return o.default.getDirection(this.data.caption)}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}(i(98));i(419),i(420);var o=n(i(102)),s=n(i(122));o.default.use(s.default,{name:"v-touch"}),e.default={props:{show:Boolean},components:{svgicon:r},computed:{isRTLBook:function(){return this.$store.state.book.rightToLeft},isFirstPage:function(){var t=null===this.$store.getters["pager/prevNonStubPageId"],e=this.$store.getters["pager/isLastPage"];return this.isRTLBook?e:t},isLastPage:function(){var t=this.$store.getters["pager/isLastPage"],e=null===this.$store.getters["pager/prevNonStubPageId"];return this.isRTLBook?e:t},isEmbed:function(){return this.$store.state.workspace.isEmbed}},methods:{next:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$store.dispatch(this.isRTLBook?"pager/goBackward":"pager/goForward",{target:e?"nav-swipe":"nav-tap"})},prev:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$store.dispatch(this.isRTLBook?"pager/goForward":"pager/goBackward",{target:e?"nav-swipe":"nav-tap"})}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(425)),o=n(i(150)),s=n(i(429)),a=i(100);e.default={components:{tocItem:r.default,sidebar:o.default,"downloads-window":s.default},computed:{tocItems:function(){return this.$store.state.toc.enabled?this.$store.state.toc.children:[]},level2Items:function(){if(this.$store.state.toc.children)for(var t=0,e=this.$store.state.toc.children.length;t0&&(this.isRetina?t.marginBottom=this.showCustom?0:(e<=3?-90*e:-360)+"px":t.marginBottom=this.showCustom?0:(e<=3?-45*e:-180)+"px"),t}},methods:{download:function(t,e){"full"===t&&this.$refs.linkFull?(this.$refs.linkFull.href=this.fullPdf.url,this.$refs.linkFull.click(),this.$root.$emit("download",{option:"full",url:this.fullPdf.url})):"page"===t&&this.$refs.linkPage&&this.$refs.linkPage[e]?(this.$refs.linkPage[e].href=this.pageFiles[e].url,this.$refs.linkPage[e].click(),this.$root.$emit("download",{option:"page",url:this.pageFiles[e].url})):"custom"===t&&this.$refs.linkCustom&&this.$refs.linkCustom[e]&&(this.$refs.linkCustom[e].href=this.customFiles[e].url,this.$refs.linkCustom[e].click(),this.$root.$emit("download",{option:"custom",url:this.customFiles[e].url}))},toggleShowCustom:function(){var t=this;this.showCustom=!this.showCustom,setTimeout(function(){t.refresh()},300)},refresh:function(){this.$parent.refresh(),this.iScroll.refresh()}}}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(441)),o=n(i(150)),s=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}(i(98));i(183),i(445),e.default={data:function(){return{tempTimeout:null,showClear:!1}},components:{"search-result-item":r.default,sidebar:o.default,svgicon:s},mounted:function(){var t=this;this.$refs.searchInput.value=this.$store.state.search.query,this.$children[0].iScroll.scrollTo(0,this.$store.state.search.scrollY),this.$children[0].iScroll.on("scrollStart",this.blurFocus),this.$store.state.search.query?this.showClear=!0:(this.$nextTick(function(){t.focusInput()}),setTimeout(function(){t.focusInput()},100))},computed:{results:function(){return this.$store.state.search.results},preloaderVisible:function(){return 100!==this.$store.getters["search/getProgress"]&&null!==this.$store.getters["search/getProgress"]},subtitle:function(){var t=this.$store.getters["search/getProgress"];return 0===this.$store.state.search.query.length||null===t?null:this.$store.state.search.query.length=n:o[s].rect[2]'+t+"";return this.$t("Other.CUSTOM_POLICY_TEXT",{0:e})}return null}},methods:{close:function(){this.$emit("close")}},components:{svgicon:n}}},,function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseColor=function(t){var e=void 0;return(e=t.match(/^#([0-9a-f]{3})$/i))?(e=e[1],[17*parseInt(e.charAt(0),16),17*parseInt(e.charAt(1),16),17*parseInt(e.charAt(2),16)]):(e=t.match(/^#([0-9a-f]{6})$/i))?(e=e[1],[parseInt(e.substr(0,2),16),parseInt(e.substr(2,2),16),parseInt(e.substr(4,2),16)]):[0,0,0]},e.calculateLuma=function(t){return(299*t[0]+667*t[1]+114*t[2])/1080/255}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.romanize=function(t){if(!+(t=parseInt(t,10))||t<0)return null;for(var e=String(+t).split(""),i=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"],n="",r=3;r--;)n=(i[+e.pop()+10*r]||"")+n;return Array(+e.join("")+1).join("M")+n},e.deromanize=function(t){var e=/[MDLV]|C[MD]?|X[CL]?|I[XV]?/g,i={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1},n=0,r=void 0;if(!(t=t.toUpperCase())||!/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/.test(t))return null;for(r=e.exec(t);r;)n+=i[r[0]],r=e.exec(t);return n}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.ADD_CONTENT="ADD_CONTENT",r=e.REMOVE_CONTENT="REMOVE_CONTENT",o=e.CHANGE_PAGE_SIZE="CHANGE_PAGE_SIZE",s=e.LOAD_THUMBNAIL="LOAD_THUMBNAIL",a=e.LOAD_SUBSTRATE="LOAD_SUBSTRATE",l=e.LOAD_TEXT_LAYER="LOAD_TEXT_LAYER",u=e.LOAD_VECTOR_LAYER="LOAD_VECTOR_LAYER",c=e.RESET_RESOURCES="RESET_RESOURCES",h=e.RESET_TH_RESOURCES="RESET_TH_RESOURCES",d=e.RESET_RESOURCES_EXCL_TH="RESET_RESOURCES_EXCL_TH",f=e.CHANGE_LOAD_PENDING="CHANGE_LOAD_PENDING",g=e.SET_PAGE_PROPERTY="SET_PAGE_PROPERTY";e.default={ADD_CONTENT:n,REMOVE_CONTENT:r,CHANGE_PAGE_SIZE:o,CHANGE_LOAD_PENDING:f,LOAD_THUMBNAIL:s,LOAD_SUBSTRATE:a,LOAD_TEXT_LAYER:l,LOAD_VECTOR_LAYER:u,RESET_RESOURCES:c,RESET_TH_RESOURCES:h,RESET_RESOURCES_EXCL_TH:d,SET_PAGE_PROPERTY:g}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.ENABLE="ENABLE",r=e.DISABLE="DISABLE",o=e.SET_CHILDREN="SET_CHILDREN",s=e.TOGGLE_STATE="TOGGLE_STATE",a=e.UPDATE_SCROLL="UPDATE_SCROLL";e.default={DISABLE:r,ENABLE:n,SET_CHILDREN:o,TOGGLE_STATE:s,UPDATE_SCROLL:a}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.SET_FULLSCREEN_MODE="SET_FULLSCREEN_MODE",r=e.UNSET_FULLSCREEN_MODE="UNSET_FULLSCREEN_MODE",o=e.MUTE_SOUND="MUTE_SOUND",s=e.UNMUTE_SOUND="UNMUTE_SOUND",a=e.TEXT_SELECTION_OFF="TEXT_SELECTION_OFF",l=e.TEXT_SELECTION_ON="TEXT_SELECTION_ON",u=e.ENABLE="ENABLE",c=e.INIT="INIT",h=e.DISABLE="DISABLE",d=e.FREEZE="FREEZE",f=e.UNFREEZE="UNFREEZE",g=e.FROZEN_BY="FROZEN_BY",p=e.CHANGE_PROPERTY="CHANGE_PROPERTY",m=e.SET_LAYOUT="SET_LAYOUT",v=e.SET_BOOK_COMPONENT="SET_BOOK_COMPONENT",b=e.SET_RESIZING="SET_RESIZING",S=e.SET_MODAL="SET_MODAL",y=e.SET_PRELOADER="SET_PRELOADER",_=e.SET_SIZE="SET_SIZE",w=e.SET_VISIBLE="SET_VISIBLE",P=e.SET_EMBED="SET_EMBED",E=e.CHANGE_TOTAL_PAGE_VISIBLE="CHANGE_TOTAL_PAGE_VISIBLE";e.default={SET_FULLSCREEN_MODE:n,UNSET_FULLSCREEN_MODE:r,MUTE_SOUND:o,UNMUTE_SOUND:s,TEXT_SELECTION_OFF:a,TEXT_SELECTION_ON:l,DISABLE:h,ENABLE:u,INIT:c,FREEZE:d,UNFREEZE:f,FROZEN_BY:g,CHANGE_PROPERTY:p,SET_LAYOUT:m,SET_BOOK_COMPONENT:v,SET_RESIZING:b,SET_MODAL:S,SET_PRELOADER:y,SET_SIZE:_,SET_VISIBLE:w,SET_EMBED:P,CHANGE_TOTAL_PAGE_VISIBLE:E}},function(t,e,i){"use strict";function n(t){return!!(t instanceof Date||t instanceof RegExp)}function r(t){if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}function o(){if(arguments.length<1||"object"!==s(arguments[0]))return!1;if(arguments.length<2)return arguments[0];var t=arguments[0],e=void 0,i=void 0;return Array.prototype.slice.call(arguments,1).forEach(function(a){"object"!==(void 0===a?"undefined":s(a))||Array.isArray(a)||Object.keys(a).forEach(function(l){i=t[l],(e=a[l])===t||("object"!==(void 0===e?"undefined":s(e))||null===e?t[l]=e:Array.isArray(e)?t[l]=function t(e){var i=[];return e.forEach(function(e,a){"object"===(void 0===e?"undefined":s(e))&&null!==e?Array.isArray(e)?i[a]=t(e):n(e)?i[a]=r(e):i[a]=o({},e):i[a]=e}),i}(e):n(e)?t[l]=r(e):"object"!==(void 0===i?"undefined":s(i))||null===i||Array.isArray(i)?t[l]=o({},e):t[l]=o(i,e))})}),t}Object.defineProperty(e,"__esModule",{value:!0});var s="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};e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.MIN_RANGE="MIN_RANGE",r=e.MAX_RANGE="MAX_RANGE",o=e.CHANGE_RANGE="CHANGE_RANGE";e.default={CHANGE_RANGE:o,MIN_RANGE:n,MAX_RANGE:r}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.OPEN_POPUP="OPEN_POPUP",r=e.CLOSE_POPUP="CLOSE_POPUP";e.default={OPEN_POPUP:n,CLOSE_POPUP:r}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.OPEN_SIDEBAR="OPEN_SIDEBAR",r=e.CLOSE_SIDEBAR="CLOSE_SIDEBAR";e.default={OPEN_SIDEBAR:n,CLOSE_SIDEBAR:r}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SELECT="SELECT",e.DESELECT="DESELECT",e.ADD="ADD",e.REMOVE="REMOVE",e.UPDATE="UPDATE",e.REPLACE="REPLACE"},,function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(t,e,i,n){if(-1!==e){this.parentVm=i,this.contentCreator=n,this.store=(0,l.getStore)();var r=document.createElement("div");t.appendChild(r);var c=this._getPageId(e);if(c){var h=a.default.extend(o({store:this.store},s.default));this.vm=new h({i18n:u.default,propsData:c,parent:this.parentVm,_componentTag:"page"}).$mount(r)}}}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e'}})},,function(t,e,i){"use strict";i(98).register({search:{width:18,height:18,viewBox:"0 0 18 18",data:''}})},,,function(t,e,i){"use strict";function n(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,i){return function n(r,o){try{var s=e[r](o),a=s.value}catch(t){return void i(t)}if(!s.done)return Promise.resolve(a).then(function(t){n("next",t)},function(t){n("throw",t)});t(a)}("next")})}}function r(t,e){t.enabled&&!(0,h.isEmpty)(t.query)&&(function(t,e){var r=this;t.normalizeLibraryInitialized||(String.prototype.normalize?e.commit(f+a.NORMALIZE_INITIALIZED):n(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.e(4).then(i.t.bind(null,187,7));case 2:e.commit(f+a.NORMALIZE_INITIALIZED);case 3:case"end":return t.stop()}},t,r)}))())}(t,e),function(t,e){var r=this;t.searchLibraryInitialized||n(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,i.e(5).then(i.t.bind(null,188,7));case 2:return g=t.sent,t.next=5,i.e(6).then(i.t.bind(null,189,7));case 5:p=t.sent,e.commit(f+a.SEARCH_LIBRARY_INITIALIZED);case 7:case"end":return t.stop()}},t,r)}))()}(t,e),function(t,e){function i(t,i){for(;t.length;)e.commit(f+a.ADD_CHUNK,t.splice(0,i));e.commit(f+a.INDEX_LOADED)}(0,h.isEmpty)(t.searchIndex)&&(0,c.request)({url:(0,u.default)().translatePath("assets/common/search/searchtext.js"),responseType:"json",callback:function(e){i(e.pages.page,t.chunkSize)}})}(t,e))}function o(t){t.enabled&&t.searchObjectCreated&&t.normalizeLibraryInitialized&&m.search(t.query)}function s(t){if(t.enabled&&t.searchObjectCreated&&t.normalizeLibraryInitialized&&v&&t.query.length>0)for(var e=(0,d.getStore)().getters["pager/resourcesForLoading"],i=0,n=e.length;i .th-item-wrapper\n{\n outline: 1px solid rgba("+e+", .02);\n}\n\n.publication-container.mobile .onscroll .th-spread-wrapper,\n.publication-container.mobile .onscroll .th-wrapper > .th-item-wrapper\n{\n outline: 1px solid rgba("+e+", .18);\n}\n\n.publication-container.mobile .slide .th-spread-wrapper\n{\n outline: none;\n}\n\n.publication-container.mobile .th-spread-wrapper.active,\n.th-item-wrapper.active .th-img-element\n{\n outline: #4A90E2 4px solid;\n}\n\n.publication-container.mobile .th-item-title\n{\n font-weight: 600;\n}\n\n/* Downloads */\n\n.publication-container.mobile .download-header\n{\n color: "+t["second-text-color"]+";\n border-color: "+n+" !important;\n}\n.publication-container.mobile .downloads {\n background-color: "+t["second-color"]+";\n}\n\n.publication-container.mobile .download-item .download-icon svg,\n.publication-container.mobile .download-header .arrow svg\n{\n fill: "+t["second-text-color"]+";\n}\n\n.publication-container.mobile li.download-item\n{\n border-top: 1px solid rgba("+e+", .4);\n}\n\n.publication-container.mobile li.download-item a\n{\n text-decoration: none;\n color: "+t["second-text-color"]+";\n}\n\n.publication-container.mobile .download-size {\n color: rgba("+e+", .6);\n}\n\n.publication-container.mobile .svg-logo\n{\n fill: "+t["second-text-color"]+";\n}\n\n\n\n.lft-sdw .layer2 .z1\n{\n box-shadow: 0 2px 10px 0 rgba("+i+",0.7)\n}\n\n.rgt-sdw .layer2 .z1\n{\n box-shadow: 0 2px 10px 0 rgba("+i+",0.7)\n}\n\n.full-sdw\n{\n box-shadow: 0 2px 10px 0 rgba("+i+",0.7)\n}\n\n\n",u.textContent=l}Object.defineProperty(e,"__esModule",{value:!0});var r=i(112),o=i(161),s=function(t){return t&&t.__esModule?t:{default:t}}(i(101)),a=i(32),l=null,u=document.createElement("style");u.setAttribute("id","skin-style");e.default=function(t){t.subscribe(function(t,e){switch(t.type){case"skin/"+r.INIT:!function(t,e){t.skin.initialized&&(document.getElementsByTagName("head")[0].appendChild(u),n(t.skin.styles))}(e);break;case"skin/"+r.CHANGE_PARAM:!function(t,e){t.param,t.value,e.skin.initialized&&n(e.skin.styles)}(t.payload,e)}})}},function(t,e,i){"use strict";(function(t){function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(120)),o=i(113),s=n(i(101)),a=i(110),l=n(i(193)),u=function(t){var e=t.workspace.userAgentInfo?t.workspace.userAgentInfo.locales:[],i=t.workspace.locales.length>0?t.workspace.locales:t.i18n.config.locales,n=t.i18n.config.substitutes,r="en";if(i&&i.length>0&&(r=i[0]),e){for(var o in n)if(n.hasOwnProperty(o)){var s=e.indexOf(o);s>=0&&(e[s]=n[o])}for(var a=0;a=0){r=e[a];break}}return r},c=function(t,e,i){t.i18n.strings[i]?(r.default.setLocaleMessage(i,e.getters["i18n/getLocaleStrings"](i)),r.default.locale=i,h(t,e)):function(t,e,i){e.commit("i18n/"+o.LOCALE_LOADED,{value:!1}),(0,a.request)({url:(0,s.default)().translatePath("locales/"+i+".json"),responseType:"json",callback:function(n){var r=JSON.stringify(n).replace(/%\{0\}/g,"{0}");n=JSON.parse(r),r=null,e.dispatch("i18n/setLocale",{locale:i,strings:n}),e.commit("i18n/"+o.LOCALE_LOADED,{value:!0}),c(t,e,i),n=null}})}(t,e,i)},h=function(e,i){var n=i.getters["i18n/getFontConfig"],r=document.getElementsByClassName("publication-container")[0];if(void 0===n)return r.style.fontFamily='"Helvetica Neue", Helvetica, Arial, sans-serif',i.dispatch("i18n/setCurrentFont",{font:"Helvetica Neue"}),void i.commit("i18n/"+o.FONT_LOADED,{value:!0});var s=n["font-family"]+" ("+n.subset+")";if(s!==e.i18n.currentFont){i.commit("i18n/"+o.FONT_LOADED,{value:!1}),r.style.fontFamily=n["font-family"]+", Helvetica, Arial, sans-serif";var a=document.createElement("span");a.className="font-loader",a.styles={"font-weight":n["font-weight-normal"]},a.innerText="ABC 123",r.appendChild(a);var u=document.createElement("span");u.className="font-loader",u.styles={"font-weight":n["font-weight-bold"]},u.innerText="DEF 456",r.appendChild(u),(0,l.default)("https://fonts.googleapis.com/css?family="+encodeURIComponent(n["font-family"]+":"+n["font-weight-normal"]+","+n["font-weight-bold"]+"&subset="+n.subset),function(){if(i.state.skin&&(i.dispatch("skin/setParam",{param:"font-weight-normal",value:n["font-weight-normal"]}),i.dispatch("skin/setParam",{param:"font-weight-bold",value:n["font-weight-bold"]})),i.dispatch("i18n/setCurrentFont",{font:s}),t.navigator&&-1!==t.navigator.userAgent.indexOf("Publisher"))i.commit("i18n/"+o.FONT_LOADED,{value:!0});else if(document.fonts&&document.fonts.check&&navigator.onLine&&(e.workspace.userAgentInfo.browser.chrome||e.workspace.userAgentInfo.browser.firefox)){var r=0;!function t(){setTimeout(function(){try{var e=document.fonts.check(n["font-weight-normal"]+" 16px "+n["font-family"]),s=document.fonts.check(n["font-weight-bold"]+" 16px "+n["font-family"]);e&&s?i.commit("i18n/"+o.FONT_LOADED,{value:!0}):r<=20?t():i.commit("i18n/"+o.FONT_LOADED,{value:!0})}catch(t){console.error("Font error: "+t.message)}},100,r++)}()}else setTimeout(function(){i.commit("i18n/"+o.FONT_LOADED,{value:!0})},1e3)},"fontCss")}};e.default=function(t){t.subscribe(function(e,i){switch(e.type){case"i18n/"+o.INIT:!function(t,e){var i=u(t);e.dispatch("i18n/setCurrentLocale",{locale:i})}(i,t);break;case"i18n/"+o.SET_CURRENT_LOCALE:c(i,t,e.payload.locale)}})}}).call(this,i(21))},,function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,i,r){var o=t.document.styleSheets.length,s=function(e){for(var i=0,r=t.document.styleSheets.length;i=0)return!0;return!1};(0,n.isFunction)(i)&&function(){var n=setInterval(function(){o3&&void 0!==arguments[3]&&arguments[3],o=new r.default(l);i.length>0;){var s=i.shift(),a=e.pages[s],u=t.getters["pages/thumbnailUrl"](s);if(null!==a.thumbnailUrl&&a.thumbnailUrl===u||null!==u&&o.add({id:s,res:"thumbnail",url:u,priority:1,thOnly:n}),!n){var c=t.getters["pages/substrateUrl"](s);null!==a.substrateUrl&&c===a.substrateUrl||null!==c&&(null===a.substrateUrl&&t.dispatch("pages/changeLoadPending",{value:!0,pageID:s}),o.add({id:s,res:"substrate",url:c,priority:3,thOnly:n}));var h,d=t.getters["pages/isSVGSupported"](s);h=d?t.getters["pages/vectorUrl"](s):t.getters["pages/textImageUrl"](s),null!==a.textUrl&&a.textUrl===h||null!==h&&(null===a.textUrl&&t.dispatch("pages/changeLoadPending",{value:!0,pageID:s}),o.add({id:s,res:d?"vector":"text",url:h,priority:3,thOnly:n}))}}return o},c=function t(e){if(s.size<1)a=!1;else{a=!0;var i=s.remove(),n=new Image,r=(0,o.default)().getCrossOrigin();r&&(n.crossOrigin=r),n.onload=function(){e.dispatch("pages/resourceLoad",{resType:i.res,url:i.url,pageID:i.id,thOnly:i.thOnly}),n=null},n.onerror=function(){e.dispatch("pages/resourceLoad",{resType:i.res,url:-1,pageID:i.id})},n.src=i.url,t(e)}};e.default=function(t){t.subscribe(function(e,i){if("pager/CHANGE_PAGE"===e.type||"pages/CHANGE_PAGE_SIZE"===e.type){if(0===t.state.pages.size.width||null===t.state.pages.size.width)return;var n=t.getters["pager/resourcesForLoading"].slice(0);s=u(t,i,n),t.state.content.outsideStorage&&function(t){var e=t.getters["pager/resourcesForLoading"].slice(0),i={},n=[];for(var r in t.state.content.items)t.state.content.items.hasOwnProperty(r)&&(t.contentData[r]=t.state.content.items[r]);e.forEach(function(e){n=n.concat(t.state.pages[e].content)}),n.forEach(function(e){i[e]=t.contentData[e]}),t.dispatch("content/replace",{contentData:i}),i=null,e=null,n=null}(t),a||c(t)}if("thumbnails/MAX_RANGE"===e.type||"thumbnails/MIN_RANGE"===e.type||"thumbnails/CHANGE_RANGE"===e.type){var r=t.getters["thumbnails/pagesRange"];if(!r)return;s=u(t,i,r.slice(0),!0),a||c(t)}})}},function(t,e,i){"use strict";function n(t,e,i){for(var n=t[i];i>0;){var r=Math.floor(i-1),o=t[r];if(!(e(n,o)<0))break;t[i]=o,i=r}return t[i]=n,i}function r(t,e,i){for(var n=t[i],r=t.length;2*i+1e?1:0},e)}},{key:"newNaturalMax",value:function(e){return new t(function(t,e){return te?-1:0},e)}}]),o(t,[{key:"add",value:function(t){return this[s].push(t),n(this[s],this[a],this.size-1),this}},{key:"peek",value:function(){return this[s][0]}},{key:"remove",value:function(){return this[s].shift()}},{key:"delete",value:function(t){for(var e=0;e2097152&&(n=!0,P.content.module.state.outsideStorage=!0);var r=T.contentIdProvider&&(0,l.isFunction)(T.contentIdProvider.nextId)?T.contentIdProvider:new c.IdProvider;for(var o in _.extensions&&_.extensions.pagesProps&&(0,l.isObject)(_.extensions.pagesProps)&&(e=(0,f.default)(e,_.extensions.pagesProps)),P.search.module.state=(0,f.default)(P.search.module.state,e.search),delete e.search,e.pages)!function(t){if(!e.pages.hasOwnProperty(t)||"defaults"===t||"structure"===t)return"continue";var i=e.pages[t],o=[];for(var a in i)!function(a){if(i.hasOwnProperty(a)){var u=i[a];(0,s.isArray)(u)&&(0,l.has)(v,a)&&(u.forEach(function(e){var i=r.nextId();e.type=v[a],e.pageId=t,e.itemId=i,o.push(i),n?m[i]=e:P.content.module.state.items[i]=e}),delete e.pages[t][a])}}(a);e.pages[t]=(0,f.default)(i,p,{content:o})}(o);P.pages.module.state=(0,f.default)(P.pages.module.state,e.pages),delete e.pages,P.book.module.state=(0,f.default)(P.book.module.state,e),e=null,C=!0,"mobile"!==w&&"mobile-old"!==w||(P.pager.module.state.singleMode=window.innerWidth<=window.innerHeight),"flat"===w&&(P.pager.module.state.zoomMode=!0),I(t,y)}function i(){return P.pager||P.pages}function n(){return P.i18n}function b(){return P.skin}function S(){return P.copyright||P.downloads||P.workspace}var y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},_=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},w=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",P=(0,f.default)({},r.default);P.info.module.state.version=w;var E=!1,k=!1,C=!1,O=!1,T=_.providers||{},L=_.getPager;_.modules&&(P=function(t){var e={};for(var i in t){var n=t[i];P.hasOwnProperty(n)&&(e[n]=P[n])}return e}(_.modules)),_.excludeModules&&function(t){for(var e in t){var i=t[e];P.hasOwnProperty(i)&&delete P[i]}}(_.excludeModules),b()&&(0,u.request)({url:(0,o.default)().translatePath("skins/current/config.json"),responseType:"json",callback:function(e){_.extensions&&_.extensions.skinConfig&&(0,l.isObject)(_.extensions.skinConfig)&&(e=(0,f.default)(e,_.extensions.skinConfig)),P.skin.module.state=(0,f.default)(P.skin.module.state,{styles:e}),e=null,E=!0,I(t,y)}}),S()&&(0,u.request)({url:(0,o.default)().translatePath("assets/html/workspace.json"),responseType:"json",callback:function(e){_.extensions&&_.extensions.workspaceProps&&(0,l.isObject)(_.extensions.workspaceProps)&&(e=(0,f.default)(e,_.extensions.workspaceProps)),P.search.module.state=(0,f.default)(P.search.module.state,e.search),delete e.search,P.downloads.module.state=(0,f.default)(P.downloads.module.state,e.downloads),delete e.downloads,e.toc&&e.toc.children?((0,a.addTreeParamByBranch)(e.toc.children,"children","toggle",!1),P.toc.module.state=(0,f.default)(P.toc.module.state,e.toc),delete e.toc):P.toc.module.state.enabled=!1,P.print.module.state=(0,f.default)(P.print.module.state,e.print),delete e.print,P.logo.module.state=(0,f.default)(P.logo.module.state,e.logoLink),delete e.logoLink,P.copyright.module.state=(0,f.default)(P.copyright.module.state,e.components.copyright),delete e.components.copyright,P.info.module.state=(0,f.default)(P.info.module.state,e.publicationInfo),delete e.publicationInfo,e.userAgentInfo=_.userAgentInfo,P.workspace.module.state=(0,f.default)(P.workspace.module.state,e),e=null,k=!0,I(t,y)}}),i()&&((0,l.isFunction)(L)?L().then(e):(0,l.isFunction)(T.pagerJSON)?T.pagerJSON().then(e):(0,u.request)({url:(0,o.default)().translatePath("assets/common/pager.json"),responseType:"json",callback:e})),n()&&(P.i18n.module.state.config=(0,f.default)(P.i18n.module.state.config,g.default),O=!0);var I=function(t,e){if((!i()||C)&&(!n()||O)&&(!b()||E)&&(!S()||k)){for(var r in P)t.registerModule(r,P[r].module);if(b()&&t.commit("skin/"+h.INIT),n()&&t.commit("i18n/"+d.INIT),P.pager){var s=(0,o.default)().getPathInfo();s&&s.page?t.dispatch("pager/goToPageByUserInput",{userInput:s.page,type:"url"}):t.dispatch("pager/goToFirst")}E=!1,k=!1,C=!1,O=!1,e(m),m=null}return!1}};var r=n(i(198)),o=n(i(101)),s=i(32),a=i(114),l=i(100),u=i(110),c=i(292),h=i(112),d=i(113),f=n(i(166)),g=n(i(293)),p={thumbnailUrl:null,substrateUrl:null,textUrl:null,status:"ready",loadPending:!1},m={},v={blocks:"block",links:"link",images:"image",gifs:"gif",galleries:"gallery",videos:"video"}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(199)),o=n(i(205)),s=n(i(210)),a=n(i(216)),l=n(i(221)),u=n(i(227)),c=n(i(232)),h=n(i(237)),d=n(i(242)),f=n(i(247)),g=n(i(252)),p=n(i(257)),m=n(i(262)),v=n(i(267)),b=n(i(272)),S=n(i(277)),y=n(i(282)),_=n(i(287)),w={book:{module:r.default},copyright:{module:o.default},downloads:{module:s.default},info:{module:a.default},logo:{module:l.default},pager:{module:u.default},pages:{module:c.default},print:{module:h.default},search:{module:d.default},skin:{module:f.default},toc:{module:g.default},workspace:{module:p.default},i18n:{module:m.default},popup:{module:S.default},sidebar:{module:y.default},social:{module:v.default},content:{module:_.default},thumbnails:{module:b.default}};e.default=w},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(200)),o=n(i(201)),s=n(i(202)),a=n(i(204));e.default={namespaced:!0,actions:r.default,getters:o.default,mutations:s.default,state:a.default}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}Object.defineProperty(e,"__esModule",{value:!0});var r,o=i(203);e.default=(n(r={},o.SET_LINKS_COLOR,function(t,e){t.links.color=e}),n(r,o.SET_LINKS_TARGET,function(t,e){t.links.target=e}),n(r,o.SET_LINKS_FLIP_HIGHLIGHT,function(t,e){t.links.highlightOnFlip=e}),n(r,o.SET_NUMERATION_OFFSET,function(t,e){t.numerationOffset=e}),n(r,o.SET_BOOK_SIZE_WIDTH,function(t,e){t.bookSize.width=e}),n(r,o.SET_BOOK_SIZE_HEIGHT,function(t,e){t.bookSize.height=e}),r)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.SET_LINKS_COLOR="SET_LINKS_COLOR",r=e.SET_LINKS_TARGET="SET_LINKS_TARGET",o=e.SET_LINKS_FLIP_HIGHLIGHT="SET_LINKS_FLIP_HIGHLIGHT",s=e.SET_NUMERATION_OFFSET="SET_NUMERATION_OFFSET",a=e.SET_BOOK_SIZE_WIDTH="SET_BOOK_SIZE_WIDTH",l=e.SET_BOOK_SIZE_HEIGHT="SET_BOOK_SIZE_HEIGHT";e.default={SET_LINKS_COLOR:n,SET_LINKS_TARGET:r,SET_LINKS_FLIP_HIGHLIGHT:o,SET_NUMERATION_OFFSET:s,SET_BOOK_SIZE_WIDTH:a,SET_BOOK_SIZE_HEIGHT:l}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={links:{color:"#40C6FF",target:"_blank",highlightOnFlip:!0,highlightOnHover:!0},hardcover:!1,hardcoverColor:"#5a5f63",flipCorner:!0,rightToLeft:!1,numerationOffset:0,pageFlippingDuration:.8}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(206)),o=n(i(207)),s=n(i(208)),a=n(i(209));e.default={namespaced:!0,actions:r.default,getters:o.default,mutations:s.default,state:a.default}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={enabled:!1,url:"http://flippingbook.com?src=1",target:"_blank",label:"FlippingBook Demo"}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(211)),o=n(i(212)),s=n(i(213)),a=n(i(215));e.default={namespaced:!0,actions:r.default,getters:o.default,mutations:s.default,state:a.default}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(i(101)),r=i(111),o=i(100);e.default={getFullPdf:function(t){return t.url&&t.allPagesVisible?{size:t.size?(0,r.formatSize)(t.size):"",url:(0,n.default)().translatePath("assets/common/downloads/"+t.url)}:null},getCustomFiles:function(t){if(!t.customFiles||t.customFiles.length<1)return null;var e=[];for(var i in t.customFiles)if(t.customFiles.hasOwnProperty(i)){var s=t.customFiles[i],a=s.url;if((0,o.isString)(a)){var l=a.lastIndexOf("/");l>-1&&(a=a.slice(l+1))}e.push({size:s.size?(0,r.formatSize)(s.size):"",url:(0,n.default)().translatePath("assets/common/downloads/"+s.url),title:a})}return e},getPageFiles:function(t,e,i,o){if(!t.pageFiles||t.pageFiles.length<1||!t.currentPagesVisible)return null;var s=[],a=o["pager/state"],l=a.zoomMode||a.singleMode?1:2;for(var u in t.pageFiles)if(t.pageFiles.hasOwnProperty(u)){var c=t.pageFiles[u];if(a.leftPage!==u||a.singleMode?a.rightPage!==u||a.zoomMode||s.push({size:c.size?(0,r.formatSize)(c.size):"",url:(0,n.default)().translatePath("assets/common/downloads/page"+(0,r.getNum)(u)+".pdf"),side:"right"}):s.push({size:c.size?(0,r.formatSize)(c.size):"",url:(0,n.default)().translatePath("assets/common/downloads/page"+(0,r.getNum)(u)+".pdf"),side:"left"}),s.length===l)break}return s}}},function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}Object.defineProperty(e,"__esModule",{value:!0});var r,o=i(214);e.default=(n(r={},o.CHANGE_PROPERTY,function(t,e){var i=e.key,n=e.value;t[i]=n}),n(r,o.ENABLE,function(t){t.enabled=!0}),n(r,o.DISABLE,function(t){t.enabled=!1}),r)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.ENABLE="ENABLE",r=e.DISABLE="DISABLE",o=e.CHANGE_PROPERTY="CHANGE_PROPERTY";e.default={DISABLE:r,ENABLE:n,CHANGE_PROPERTY:o}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={enabled:!1,allPagesVisible:!0,currentPagesVisible:!1}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(217)),o=n(i(218)),s=n(i(219)),a=n(i(220));e.default={namespaced:!0,actions:r.default,getters:o.default,mutations:s.default,state:a.default}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={version:function(t){return t.version}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={version:""}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(222)),o=n(i(223)),s=n(i(224)),a=n(i(226));e.default={namespaced:!0,actions:r.default,getters:o.default,mutations:s.default,state:a.default}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(225),r=function(t){return t&&t.__esModule?t:{default:t}}(i(102));e.default=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}({},n.CHANGE_PROPERTY,function(t,e){var i=e.key,n=e.value;r.default.set(t,i,n)})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.CHANGE_PROPERTY="CHANGE_PROPERTY";e.default={CHANGE_PROPERTY:n}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={useInMobile:!0}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(228)),o=n(i(229)),s=n(i(230)),a=n(i(231));e.default={namespaced:!0,actions:r.default,getters:o.default,mutations:s.default,state:a.default}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(i(107)),r=i(162);e.default={goToPageById:function(t,e){var i=t.state,r=t.commit,o=t.getters,s=(t.rootGetters,t.rootState,e.id),a=e.target,l=void 0===a?null:a,u=e.rightWideHalf,c=void 0!==u&&u,h=o.stateByPageId(s,c);if(h&&!i.freezed){if(function(t,e){return t.leftPage===e.leftPage&&t.rightPage===e.rightPage&&t.zoomMode===e.zoomMode&&t.singleMode===e.singleMode}(h,i))return!0;r(n.default.CHANGE_LAST_TARGET,{target:l}),r(n.default.CHANGE_PAGE,h)}},goToPageByIndex:function(t,e){var i=t.dispatch,n=t.rootGetters,r=t.rootState,o=e.pageIndex,s=e.target,a=void 0===s?null:s;if(o<0||o>=r.pages.pagesCount)return!1;var l=n["pages/pageIdByIndex"](o),u=!1;if(null===l&&(u=!0,null===(l=n["pages/pageIdByIndex"](o-1))))return!1;i("goToPageById",{id:l,target:a,rightWideHalf:u})},setZoomMode:function(t,e){var i=t.state,r=t.commit,o=t.getters,s=(t.rootState,t.rootGetters),a=e.zoomMode,l=e.isRightPage,u=e.target;if(a===i.zoomMode||0===s["pages/pagesCount"])return!1;var c=l?i.rightPage?i.rightPage:i.leftPage:i.leftPage?i.leftPage:i.rightPage;r(n.default.CHANGE_LAST_TARGET,{target:u}),r(n.default.CHANGE_ZOOM_MODE,{zoomMode:a});var h=o.stateByPageId(c);r(n.default.CHANGE_PAGE,h)},setSingleMode:function(t,e){var i=t.state,r=t.commit,o=t.getters,s=(t.rootState,t.rootGetters),a=e.singleMode,l=e.isRightPage,u=e.target;if(a===i.singleMode||0===s["pages/pagesCount"])return!1;a||(l=!0);var c=l?i.rightPage?i.rightPage:i.leftPage:i.leftPage?i.leftPage:i.rightPage,h=a&&l&&s["pages/pageProp"](c,"wide");r(n.default.CHANGE_LAST_TARGET,{target:u}),r(n.default.CHANGE_SINGLE_MODE,{singleMode:a});var d=o.stateByPageId(c,h);r(n.default.CHANGE_PAGE,d)},goToFirst:function(t){(0,t.dispatch)("goToPageByIndex",{pageIndex:0})},goToLast:function(t){(0,t.dispatch)("goToPageByIndex",{pageIndex:t.rootGetters["pages/pagesCount"]-1})},goBackward:function(t,e){var i=t.dispatch,n=(t.rootState,t.rootGetters),r=t.state,o=e.target,s=void 0===o?null:o,a=n["pager/prevPageId"];a&&i("goToPageById",{id:a,rightWideHalf:r.singleMode&&r.leftPage&&n["pages/pageProp"](r.leftPage,"wide")&&r.leftPage!==r.rightPage,leftWideHalf:r.singleMode&&r.rightPage&&n["pages/pageProp"](r.rightPage,"wide")&&r.leftPage===r.rightPage,target:s})},goForward:function(t,e){var i=t.dispatch,n=(t.rootState,t.rootGetters),r=t.state,o=e.target,s=void 0===o?null:o,a=n["pager/nextPageId"];a&&i("goToPageById",{id:a,rightWideHalf:r.singleMode&&n["pages/pageProp"](r.rightPage,"wide")&&r.leftPage!==r.rightPage,target:s})},goToPageByUserInput:function(t,e){var i=t.dispatch,n=t.rootState,o=t.rootGetters,s=e.userInput,a=e.type;if("url"===a){var l=n.pages.structure.filter(function(t){return t+="",n.pages[t]&&n.pages[t].urlHeader&&n.pages[t].urlHeader===s});if(l.length>0)return void i("goToPageById",{id:l[0]})}if("caption"===a){var u=n.pages.structure.filter(function(t){return t+="",n.pages[t]&&n.pages[t].displayName&&n.pages[t].displayName===s});if(u.length>0)return void i("goToPageById",{id:u[0]})}var c=n.book.numerationOffset;if(s=s.split("-")[0],c>0){var h=(0,r.deromanize)(s);if(null!==h&&h<=c)return void i("goToPageByIndex",{pageIndex:h-1})}var d=parseInt(s,10);!isNaN(d)&&d>0&&d+c<=o["pages/pagesCount"]&&d+c>=0?i("goToPageByIndex",{pageIndex:d+c-1}):i("goToFirst")},freeze:function(t){var e=t.commit,i=t.state,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).target,o=void 0===r?"unknown":r;i.freezed||(e(n.default.FROZEN_BY,{target:o}),e(n.default.FREEZE))},unfreeze:function(t){var e=t.commit,i=t.state,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).target,o=void 0===r?"unknown":r;i.freezed&&i.frozenBy===o&&(e(n.default.FROZEN_BY,{target:null}),e(n.default.UNFREEZE))},setFlipState:function(t,e){var i=t.state,r=t.commit,o=e.newState;if(o===i.flipState)return!1;r(n.default.CHANGE_FLIP_STATE,{flipState:o})},setForceFlip:function(t,e){var i=t.state,r=t.commit,o=e.forceFlip;if(o===i.forceFlip)return!1;r(n.default.CHANGE_FORCE_FLIP,{forceFlip:o})},setForceRerender:function(t,e){var i=t.state,r=t.commit,o=e.forceRerender;if(o===i.forceRerender)return!1;r(n.default.CHANGE_FORCE_RERENDER,{forceRerender:o})}}},function(t,e,i){"use strict";function n(t,e,i,n){this.leftPage=t,this.rightPage=e,this.zoomMode=i,this.singleMode=n}Object.defineProperty(e,"__esModule",{value:!0}),e.default={stateForDisplay:function(t,e,i,n){var r=null,o=null;return 0===n["pages/pagesCount"]?"0":t.singleMode?n["pages/pageCaptionById"](t.rightPage):t.leftPage===t.rightPage?n["pages/pageCaptionById"](t.leftPage):(null!==t.leftPage&&(r=n["pages/pageCaptionById"](t.leftPage)),null!==t.rightPage&&(o=n["pages/pageCaptionById"](t.rightPage)),i.book.rightToLeft?null===o?null===r?"":r:o+(null===r?"":" - "+r):null===r?null===o?"":o:r+(null===o?"":" - "+o))},state:function(t){return{leftPage:t.leftPage,rightPage:t.rightPage,zoomMode:t.zoomMode,singleMode:t.singleMode}},resourcesForLoading:function(t,e,i){var n=[],r=i.pages.structure;if(t.zoomMode){var o=(r=r.filter(function(t){return null!==t})).indexOf(t.leftPage);n.push(r[o]),n.push(r[o+1]||null),n.push(r[o-1]||null)}else if(t.singleMode){var s=(r=r.filter(function(t){return null!==t})).indexOf(t.rightPage);n.push(r[s]),n.push(r[s+1]||null),n.push(r[s-1]||null)}else{var a=i.pages.structure.indexOf(t.leftPage||!1),l=i.pages.structure.indexOf(t.rightPage||!1);a===l&&(l+=1),-1===a&&(a=-10),-1===l&&(l=-10),n.push(r[a]||null),n.push(r[l]||null),n.push(r[l+1]||null),n.push(r[l+2]||null),n.push(r[a-1]||null),n.push(r[a-2]||null)}return n.filter(function(t){return null!==t})},nextPageId:function(t,e,i,n){return function(t){var e=t.rootState,i=(t.rootGetters,t.state),n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.pages.structure.filter(function(t){return null!==t}),o=i.rightPage?i.rightPage:i.leftPage,s=r.indexOf(o);return s1&&void 0!==arguments[1]&&arguments[1],r=e.pages.structure.filter(function(t){return null!==t}),o=i.singleMode&&!n?i.rightPage?i.rightPage:i.leftPage:i.leftPage?i.leftPage:i.rightPage,s=r.indexOf(o);return s>0&&!n?r[s-1]:s>0&&n?r[s]:null}({rootState:i,state:t},t.singleMode&&t.rightPage&&n["pages/pageProp"](t.rightPage,"wide")&&t.leftPage===t.rightPage)},nextNonStubPageId:function(t,e,i,n){return function(t){var e=t.rootState,i=t.state,n=(t.rootGetters,e.pages.structure.filter(function(t){return null!==t})),r=i.rightPage?i.rightPage:i.leftPage,o=n.indexOf(r);if(o<0)return null;for(var s=o+1,a=n.length;s=0;s--)if(n[s]&&!e.pages[n[s]].stub)return n[s];return null}({rootState:i,state:t,rootGetters:n})},isLastPage:function(t,e,i,n){return t.singleMode?null===e.nextNonStubPageId&&!(t.singleMode&&n["pages/pageProp"](t.rightPage,"wide")&&t.leftPage!==t.rightPage):null===e.nextNonStubPageId},isFirstPage:function(t,e){return null===e.prevNonStubPageId},stateByPageId:function(t,e,i,r){return function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(-1===i.pages.structure.indexOf(t+""))return null;if(i.pager.zoomMode)return new n(t,null,!0,!1);if(i.pager.singleMode){var o=r["pages/pageIndexById"](t);return new n(e?t:r["pages/pageIdByIndexWide"](o-1),t,!1,!0)}var s=r["pages/pageIndexById"](t);return s%2!=0?new n(t,r["pages/pageIdByIndexWide"](s+1),!1,!1):new n(r["pages/pageIdByIndexWide"](s-1),t,!1,!1)}}}},function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}Object.defineProperty(e,"__esModule",{value:!0});var r,o=i(107);e.default=(n(r={},o.CHANGE_PAGE,function(t,e){var i=e.leftPage,n=e.rightPage;t.leftPage=i,t.rightPage=n}),n(r,o.CHANGE_ZOOM_MODE,function(t,e){var i=e.zoomMode;t.zoomMode=i}),n(r,o.CHANGE_SINGLE_MODE,function(t,e){var i=e.singleMode;t.singleMode=i}),n(r,o.CHANGE_LAST_TARGET,function(t,e){var i=e.target;t.lastTarget=i}),n(r,o.FREEZE,function(t){t.freezed=!0}),n(r,o.UNFREEZE,function(t){t.freezed=!1}),n(r,o.FROZEN_BY,function(t,e){var i=e.target;t.frozenBy=i}),n(r,o.CHANGE_FLIP_STATE,function(t,e){var i=e.flipState;t.flipState=i}),n(r,o.CHANGE_FORCE_FLIP,function(t,e){var i=e.forceFlip;t.forceFlip=i}),n(r,o.CHANGE_FORCE_RERENDER,function(t,e){var i=e.forceRerender;t.forceRerender=i}),r)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={leftPage:null,rightPage:null,zoomMode:!1,singleMode:!1,lastTarget:null,freezed:!1,flipState:"pending",forceFlip:!1,forceRerender:!1}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(233)),o=n(i(234)),s=n(i(235)),a=n(i(236));e.default={namespaced:!0,actions:r.default,getters:o.default,mutations:s.default,state:a.default}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(i(163));e.default={changePageSize:function(t,e){var i=t.state,r=t.commit,o=e.width,s=e.height;i.size.width===o&&i.size.height===s||r(n.default.CHANGE_PAGE_SIZE,{width:o,height:s})},resourceLoad:function(t,e){var i=(t.state,t.commit),r=t.rootGetters,o=e.resType,s=e.url,a=e.pageID,l=e.thOnly;switch(o){case"thumbnail":i(n.default.LOAD_THUMBNAIL,{url:s,pageID:a});break;case"substrate":i(n.default.LOAD_SUBSTRATE,{url:s,pageID:a});break;case"text":i(n.default.LOAD_TEXT_LAYER,{url:s,pageID:a});break;case"vector":i(n.default.LOAD_VECTOR_LAYER,{url:s,pageID:a})}if(!l){if(!r["pages/pageProp"](a,"substrateUrl"))return;if((r["pages/textImageUrl"](a)||r["pages/vectorUrl"](a))&&!r["pages/pageProp"](a,"textUrl"))return;i(n.default.CHANGE_LOAD_PENDING,{pageID:a,value:!1})}},resetResources:function(t){var e=t.commit,i=t.getters;t.rootGetters["thumbnails/windowIsOpen"]?e(n.default.RESET_RESOURCES_EXCL_TH,{pageIDsArray:i.pagesWithResources}):e(n.default.RESET_RESOURCES,{pageIDsArray:i.pagesWithResources})},addContent:function(t,e){(0,t.commit)(n.default.ADD_CONTENT,e)},removeContent:function(t,e){(0,t.commit)(n.default.REMOVE_CONTENT,e)},changeLoadPending:function(t,e){(0,t.commit)(n.default.CHANGE_LOAD_PENDING,e)}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(162),r=i(100),o=i(111),s=function(t){return t&&t.__esModule?t:{default:t}}(i(101));e.default={pageProp:function(t){return function(e,i){return e&&i?void 0!==t[e][i]?t[e][i]:void 0!==t.defaults[i]?t.defaults[i]:null:null}},pageIdByIndex:function(t,e){return function(i){return i>=e.pagesCount||i<0?null:t.structure[i]}},pageIdByIndexWide:function(t,e){return function(i){return i>=e.pagesCount||i<0?null:t.structure[i]?t.structure[i]:t.structure[i-1]}},pagesCount:function(t){return t.structure.length},pageResourcesCount:function(t){return t.structure.filter(function(t){return null!==t}).length},pageIndexById:function(t){return function(e){return null===e?-1:t.structure.indexOf(e)}},urlHeaderById:function(t,e){return function(i){return t[i]?e.pageProp(i,"urlHeader")||e.calculatedCaptionById(i,"-"):null}},calculatedCaptionById:function(t,e,i){return function(t,r){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=e.pageIndexById(t),a=e.pageProp(t,"wide"),l=i.book.rightToLeft,u=i.book.numerationOffset,c=function(t){return t0&&(!i.pager.singleMode||o)){var h=c(s);return a&&(l?h=c(s+1)+r+h:h+=r+c(s+1)),""+h}return!i.pager.singleMode||o?a?l?(s+2-u).toString()+r+(s+1-u).toString():(s+1-u).toString()+r+(s+2-u).toString():(s+1-u).toString():i.pager.singleMode?a&&i.pager.leftPage===i.pager.rightPage?c(s+1).toString():c(s).toString():(s+1).toString()}},pageCaptionById:function(t,e){return function(i){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t[i]?e.pageProp(i,"displayName")||e.calculatedCaptionById(i," - ",n):null}},pageCaptionByIndex:function(t,e,i){return function(r){r*=1;var o=e.pageIdByIndex(r);if(!o){var s=e.pageIdByIndex(r-1);e.pageProp(s,"wide")&&(o=s)}if(!t[o])return null;var a=e.pageProp(o,"displayName");if(a)return a;var l=i.book.numerationOffset;return l>0?function(t){return t0?Number(o[0])+s:o[0],e.pageIdByIndexWide(l-1))}},isFirstPage:function(t,e){return function(i){return t[i]?0===e.pageIndexById(i):null}},isLastPage:function(t,e){return function(i){return t[i]?e.pageIndexById(i)+(e.pageProp(i,"wide")?2:1)===e.pagesCount:null}},imageSizes:function(t,e,i){return function(n){var r=e.pageProp(n,"substrateSizes"),o=t.size,s={};if(r){var a=parseInt(e.pageProp(n,"substrateSizesReady"),10),l=e.pageProp(n,"customSubstrateSize"),u=e.pageProp(n,"textSizes");0===a&&(a=4);var c=r.slice(0,a);l&&(c=c.slice(0,c.length-1)).push(parseInt(l,10));var h=Math.max(o.width,o.height),d=c.filter(function(t){return t>=h||t===c[c.length-1]})[0],f=u.filter(function(t){return t>=h||t===u[u.length-1]})[0];s.substrate=c.indexOf(d)+1,s.text=u.indexOf(f)+1}else i.pager.zoomMode||i.pager.singleMode?(s.substrate="l",s.text="l1"):(s.substrate="",s.text="c");return s}},isSVGSupported:function(t,e,i){return function(t){var n=i.workspace.userAgentInfo;return!(!e.pageProp(t,"vectorText")||e.pageProp(t,"rasterize")||e.pageProp(t,"rtlContent")&&n.browser.msedge||n.browser.ie&&"11.0"===n.browser.version||n.os.ios&&n.os.version.split(".")[0]<9||n.os.android&&n.os.version.split(".")[0]<5)}},stubUrl:function(){return(0,s.default)().translatePath("assets/common/pages/pagestub.png")},thumbnailUrl:function(t,e){return function(t){if(e.pageProp(t,"stub"))return null;var i=(0,o.getNum)(t),n=e.pageProp(t,"thFormat");return n&&(n="."+n),(0,s.default)().translatePath("assets/common/pages/thumbnails/page"+i+"_s"+n)}},substrateUrl:function(t,e){return function(t){if(e.pageProp(t,"stub"))return null;var i=e.imageSizes(t).substrate,n=function(t){return""===t?"":"."+t}(e.pageProp(t,"substrateFormat")),r=i?"_":"",a=(0,o.getNum)(t);return(0,s.default)().translatePath("assets/common/pages/substrates/page"+a+r+i+n)}},textImageUrl:function(t,e){return function(t){if(e.pageProp(t,"stub"))return null;var i=e.pageProp(t,"textLayer"),n=e.imageSizes(t).text,r=(0,o.getNum)(t);return i?(0,s.default)().translatePath("assets/common/pages/text/page"+r+"_"+n+".png"):null}},vectorUrl:function(t,e){return function(t){if(e.pageProp(t,"stub"))return null;var i=e.isSVGSupported(t),n=(0,o.getNum)(t);return i?(0,s.default)().translatePath("assets/common/pages/vector/"+n+".svg"):null}},pagesWithResources:function(t,e,i,n){var r=[],o=n["pager/resourcesForLoading"];for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];if("size"===s||"defaults"===s||"structure"===s)continue;if(-1!==o.indexOf(s))continue;null===a.substrateUrl&&null===a.textUrl&&null===a.thumbnailUrl||r.push(s)}return r},pageContent:function(t,e,i){return function(e){return t[e].content.map(function(t){return i.content.items[t]})}},contentItems:function(t,e){return function(t){var i=t.pageID,n=t.contentType;return e.pageContent(i).filter(function(t){return t.type===n})}},pageContentGrouppedByType:function(t,e,i,n){return function(t){return e.pageContent(t).reduce(function(t,e){return t[e.type]=[].concat(function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e1&&void 0!==arguments[1]?arguments[1]:{}).target,o=void 0===r?"unknown":r;i.freezed||(e(n.default.FROZEN_BY,{target:o}),e(n.default.FREEZE))},unfreeze:function(t){var e=t.commit,i=t.state,r=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).target,o=void 0===r?"unknown":r;i.freezed&&i.frozenBy===o&&(e(n.default.FROZEN_BY,{target:null}),e(n.default.UNFREEZE))},setLayout:function(t,e){var i=t.commit;t.state,i(n.default.SET_LAYOUT,e)},setBookComponent:function(t,e){var i=t.commit;t.state,i(n.default.SET_BOOK_COMPONENT,e)},setResizing:function(t,e){var i=t.commit;t.state,i(n.default.SET_RESIZING,e)},setModalOpened:function(t,e){var i=t.commit;t.state,i(n.default.SET_MODAL,e)},setPreloader:function(t,e){var i=t.commit;t.state,i(n.default.SET_PRELOADER,e)},setSize:function(t,e){var i=t.commit,r=(t.state,e.width),o=e.height;i(n.default.SET_SIZE,{width:r,height:o})},setVisible:function(t,e){var i=t.commit;t.state,i(n.default.SET_VISIBLE,e)},setEmbed:function(t,e){var i=t.commit;t.state,i(n.default.SET_EMBED,e)}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={fullScreenMode:function(t){return t.fullScreenMode},isInited:function(t){return t.isInited},size:function(t){return t.size}}},function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}Object.defineProperty(e,"__esModule",{value:!0});var r,o=i(165);e.default=(n(r={},o.CHANGE_PROPERTY,function(t,e){var i=e.key,n=e.value;t[i]=n}),n(r,o.SET_FULLSCREEN_MODE,function(t){t.fullScreenMode=!0}),n(r,o.UNSET_FULLSCREEN_MODE,function(t){t.fullScreenMode=!1}),n(r,o.MUTE_SOUND,function(t){t.muteSound=!0}),n(r,o.UNMUTE_SOUND,function(t){t.muteSound=!1}),n(r,o.TEXT_SELECTION_OFF,function(t){t.textSelectionOn=!1}),n(r,o.TEXT_SELECTION_ON,function(t){t.textSelectionOn=!0}),n(r,o.INIT,function(t){t.isInited=!0}),n(r,o.ENABLE,function(t,e){t.components[e]=!0}),n(r,o.DISABLE,function(t,e){t.components[e]=!1}),n(r,o.FREEZE,function(t){t.freezed=!0}),n(r,o.UNFREEZE,function(t){t.freezed=!1}),n(r,o.FROZEN_BY,function(t,e){var i=e.target;t.frozenBy=i}),n(r,o.SET_LAYOUT,function(t,e){t.layout=e}),n(r,o.SET_BOOK_COMPONENT,function(t,e){t.bookComponent=e}),n(r,o.SET_RESIZING,function(t,e){t.isResizing=e}),n(r,o.SET_MODAL,function(t,e){t.modalOpened=e}),n(r,o.SET_PRELOADER,function(t,e){t.preloader=e}),n(r,o.SET_SIZE,function(t,e){var i=e.width,n=e.height;t.size={width:i,height:n}}),n(r,o.SET_VISIBLE,function(t,e){t.visible=e}),n(r,o.SET_EMBED,function(t,e){t.isEmbed=e}),n(r,o.CHANGE_TOTAL_PAGE_VISIBLE,function(t,e){!0===t.components.paginator||!1===t.components.paginator?t.components.paginator={enabled:t.components.paginator,totalPagesVisible:e}:t.components.paginator.totalPagesVisible=e}),r)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={sound:{background:{loop:!0,volume:30},flip:{enabled:!0,volume:25,hard:["blow.mp3"],soft:["flip2.mp3","flip3.mp3","flip4.mp3"]},enabled:!0},bookSize:96,components:{bottomBar:!0,zoom:!0,navigation:!1,topBar:!0,embed:!1,fullscreen:!0,print:!0,thumbnails:!0,share:!0,textSelection:!1,slideshow:!1,paginator:{enabled:!0,totalPagesVisible:!0},book:{flip:!0,slide:!0}},thumbType:"AUTO",locales:[],fullScreenMode:!1,muteSound:!1,textSelectionOn:!1,userAgentInfo:{browser:{}},cookieNotice:{enabled:!1},customTotalPages:null,layout:null,bookComponent:null,isInited:!1,freezed:!1,isResizing:!1,isEmbed:!1,modalOpened:!1,preloader:!1,size:{width:null,heoght:null},visible:!0}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(263)),o=n(i(264)),s=n(i(265)),a=n(i(266));e.default={namespaced:!0,actions:r.default,getters:o.default,mutations:s.default,state:a.default}},function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}Object.defineProperty(e,"__esModule",{value:!0});var r=i(113),o=function(t){return t&&t.__esModule?t:{default:t}}(i(166));e.default={setCurrentLocale:function(t,e){var i=t.commit,n=t.state,o=e.locale;n.currentLocale!==o&&i(r.SET_CURRENT_LOCALE,{locale:o})},setCurrentFont:function(t,e){var i=t.commit,n=t.state,o=e.font;n.currentFont!==o&&i(r.SET_CURRENT_FONT,{font:o})},setStrings:function(t,e){var i=t.commit,n=e.strings;i(r.SET_STRINGS,{strings:n})},setLocale:function(t,e){var i=t.dispatch,s=t.commit,a=t.state,l=e.locale,u=e.strings;void 0!==a.strings[l]?s(r.SET_LOCALE,{locale:l,strings:u}):i("setStrings",{locale:l,strings:(0,o.default)(a.strings,n({},l,u))})},setLocaleString:function(t,e){var i=t.dispatch,s=t.commit,a=t.state,l=e.locale,u=e.name,c=e.value;l=l||a.currentLocale;var h=u.split(".");if(void 0===a.strings[l][h[0]]||void 0===a.strings[l][h[0]][h[1]]){var d=(0,o.default)(a.strings[l],n({},h[0],n({},h[1],c)));i("setLocale",{locale:l,strings:d}),d=null}else s(r.SET_LOCALE_STRING,{locale:l,name:u,value:c})}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={getLocaleStrings:function(t,e){return function(e){return t.strings[e]}},getFontConfig:function(t){var e=t.config.fonts.filter(function(e){return-1!==e.locales.indexOf(t.currentLocale)});if(e.length>0)return e[0]},isLocaleRtl:function(t){return-1!==t.config.rtl.indexOf(t.currentLocale)},getCurrent:function(t){return t.currentLocale}}},function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}Object.defineProperty(e,"__esModule",{value:!0});var r,o=i(113);e.default=(n(r={},o.INIT,function(t){t.initialized=!0}),n(r,o.LOCALE_LOADED,function(t,e){var i=e.value;t.localeLoaded=i}),n(r,o.FONT_LOADED,function(t,e){var i=e.value;t.fontLoaded=i}),n(r,o.SET_CURRENT_LOCALE,function(t,e){var i=e.locale;t.currentLocale=i}),n(r,o.SET_CURRENT_FONT,function(t,e){var i=e.font;t.currentFont=i}),n(r,o.SET_STRINGS,function(t,e){var i=e.strings;t.strings=i}),n(r,o.SET_LOCALE,function(t,e){var i=e.locale,n=e.strings;t.strings[i]=n}),n(r,o.SET_LOCALE_STRING,function(t,e){for(var i=e.locale,n=e.name,r=e.value,o=n.split("."),s=t.strings[i],a=0;a=this.pagesCount?null:this.currentRight,this.right.isFirst=0===this.currentRight,this.right.isLast=this.currentRight===this.pagesCount-1,this.right.isNull=null===this.currentRight,this.right.isLastSheet=this.currentRight===this.pagesCount-2,this.left.isFirst=0===this.currentLeft,this.left.isLast=this.currentLeft===this.pagesCount-1,this.left.isNull=null===this.currentLeft,this.left.isFirstSheet=1===this.currentLeft},l.prototype.isFirstPage=function(t){return 0===t},l.prototype.isLastPage=function(t){return t===this.pagesCount-1},l.prototype.isFirstSheet=function(t){return 1===t},l.prototype.isLastSheet=function(t){return t===this.pagesCount-2},l.prototype.isNullPage=function(t){return t<0||t>this.pagesCount-1||null===t},l.prototype.getRightSheet=function(){return{first:null===this.currentRight?null:this.currentRight,second:null===this.currentRight?null:this.currentRight+1}},l.prototype.getLeftSheet=function(){return{first:null===this.currentLeft?null:this.currentLeft-1,second:null===this.currentLeft?null:this.currentLeft}},l.prototype.getBottomRightSheet=function(){return{first:null===this.currentRight?null:this.currentRight+2,second:null===this.currentRight?null:this.currentRight+3}},l.prototype.getBottomLeftSheet=function(){return{first:null===this.currentLeft?null:this.currentLeft-3,second:null===this.currentLeft?null:this.currentLeft-2}},e.default=a},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(){}function o(t,e,i,n,o){var s=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=r;this.bookSize=e,l.u29(1),this.progress=l.G19(0,"0"),l.A29(1),this.breakProgress=l.L19(0,"0"),this.endingAnimation=!1,this.state=l.e8(45),(0,m.getStore)().dispatch(l.e8(114),{newState:l.e8(45)}),this.blocked=!1,this.bookState=i,this.lastDirection=null,this.parentVm=n,this.contentCreator=o,this.transformMethod=f.default.prefixed(l.F8(32)),this.transitionMethod=f.default.prefixed(l.F8(1)),this.transformOriginMethod=f.default.prefixed(l.F8(123)),this.gradientPrefix=l.e8(0)+a.lowercase+l.F8(21),this.globalWrapper=t,this.genDOM(),this.setBookSize(e),this.preWrapper=(0,c.default)(this.bookState,this.bookDiv,!1,2,!1,this.parentVm,this.contentCreator),this.leftWrapper=(0,c.default)(this.bookState,this.bookDiv,!1,3,!1,this.parentVm,this.contentCreator),this.rightWrapper=(0,c.default)(this.bookState,this.bookDiv,!0,3,!1,this.parentVm,this.contentCreator),this.nxtWrapper=(0,c.default)(this.bookState,this.bookDiv,!0,2,!1,this.parentVm,this.contentCreator),s&&this.initDOMEvents(),this.initInnerEvents()}function s(t,e){this.x=t,this.y=e}Object.defineProperty(e,"__esModule",{value:!0});var a,l="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},u=n(i(312)),c=n(i(313)),h=n(i(127)),d=n(i(33)),f=n(i(316)),g=n(i(126)),p=n(i(171)),m=i(104);r.I19=function(){return"function"==typeof r.D19.I0?r.D19.I0.apply(r.D19,arguments):r.D19.I0},r.G19=function(){return"function"==typeof r.D19.V19?r.D19.V19.apply(r.D19,arguments):r.D19.V19},r.u29=function(){return"function"==typeof r.D19.O19?r.D19.O19.apply(r.D19,arguments):r.D19.O19},r.L19=function(){return"function"==typeof r.D19.V19?r.D19.V19.apply(r.D19,arguments):r.D19.V19},r.A29=function(){return"function"==typeof r.D19.O19?r.D19.O19.apply(r.D19,arguments):r.D19.O19},r.e8=function(){return"function"==typeof r.H8.Q8?r.H8.Q8.apply(r.H8,arguments):r.H8.Q8},r.K0=function(){var t=function(t,e){var i=65535&e;return((e-i)*t|0)+(i*t|0)|0};return{I0:function(e,i,n){for(var r=3432918353,o=461845907,s=n,a=-4&i,l=0;l>>17,o)))<<13|s>>>19)+3864292196|0}switch(u=0,i%4){case 3:u=(255&e.charCodeAt(a+2))<<16;case 2:u|=(255&e.charCodeAt(a+1))<<8;case 1:u|=255&e.charCodeAt(a),u=t(u,r),s^=u=t(u=(131071&u)<<15|u>>>17,o)}return s^=i,s=t(s^=s>>>16,2246822507),(s=t(s^=s>>>13,3266489909))^s>>>16}}}(),r.m8=function(){return"function"==typeof r.H8.I0?r.H8.I0.apply(r.H8,arguments):r.H8.I0},r.H8=function(){for(;;)return{Q8:function(t){for(var e=2;14!==e;)switch(e){case 1:var i=0,n=0;e=5;break;case 2:var r="",o=decodeURI("%07%1F-754Y(-,;4to+%2026O9t#=(Y5c'1%3CE3%3C%3E#3N51%7F%0A5tq)=%0A*K/%3C+0%04N(*58;S%1Fw-5(Nl4$'1Q60!%202%10%1F)=o-C%25--n%04Z9b8%0A,C20'8?t3%3E'5r%1Amiidv%1Ao%60l%0A8E.2e%0A%17n%1Fw(5)Ao.*&1Q)%3C,32%5E%7B%07f%12%1Cl%07%1F%03%0A8E5-*9(C&11%0A.E1%07k26C1t';5Aaw6%20;%5E(:h65E*yk9;Y*%222=%3E%5E)c%1B%06hthyu$%22%06a-754Y18714%5Ea%07h83D$87%0A6O'-%1B$;D%228+7?F%1F+%226;%02quuxh%1Ftuuzc%03%1F)$3?Xn*%20%20%1CE3:%20%126C1%077;.K5%3C%1C%7C%04X$*%20%20%60B(=!14t%20:1=5D%1F=%206/Ml:$:,K2%07,:4O3t71%3CF$!h65%5E56(%0A*Rmy738Kikpav%18tlifo%1Fm%071&;D2?*&7t#6*?wY565$?N%1F)=%7D%04%1Adyuq%04L-05n%3CC/06%3C?N%1Fpe%0A8E%25%20%1B&?D%25%3C7n%3CC/06%3C%04I)8+3?%1021$05%5D%1F)=xjZ9pe&5%5E%20-%20%7C%04i%1F)$:)%5E%20+1%0A(O/=%20&%60Y587%20%04Z$7!=4M%1Fw7==B5%22)1%3C%5E%7B%07!18_&%1A$:,K2%07';.%5E.4%1B=%04%04(7+1(%073%3C#8?Rl4$'1%0Ao0+:?Xl+%2026O9%22(5(M(7h8?L5c%1B03%5C%1F?)=*%1056%17==B5%07lxzX&;$%7Ch%1Ftuwao%06slpx%04X&-h'%3E%5D%1F?)=*%1056%091%3C%5E%1F=%203sto+%2026O9t&;4%5E%200+1(Q60!%202%10%1F*15.C%22t';5A%1Ft%22&;N(%3C+%20rF$?1xzX&;$%7Cj%06quux%04%07&+$03O/-m&3M)-it(M#8mfo%1Fmkpav%18tli%0A*Rz5%202.%10a%07k9;Y*w(%06!F$?1n%04Z9b-13M)-%7F%0A*Rmy1&;D2)$&?D5y%1B$;D-%3C#%20%04%1Aol6%0A2O%20=%1Bz2K3=h9;Y*w7==B5%22)1%3C%5E%7B%075,zt%12%1B%1B%205Z-%3C#%20%04%1Adytdj%0F%1F)=%0AtL-05y8E.2ez)%5E%20-,7wH.6.ttX(%3E-%20!F$?1njZ9b8%0A(C&11%03(K1)%20&%04C%25%07554G./%20%0A%09i%1Fw#83Zl%3E75%3EQ565n%04%7D$;%0E=.V%0C6?(%17y=%16%1Bd%7F%0A%1Fhud%7F%0Aq%7C%1Bej%1Ady%1B65%5E56(8?L5%0771)O5c2&;Z1%3C7'%04X$?)1%22%07%226+%20;C/%3C7%0A/D%25%3C#=4O%25%075,v%0A3%3E'5r%1Amiidvto0+:?Xl+%2026O9uez3D/%3C7y(O'5%20,wH.-1;7Q60!%202%10%1F7*:?t667?%04%04',)8wY%25.%7F5%3C%5E$+iz(M5t60-%10%20?11(%06o5#%20wY%25.%7F5%3C%5E$+%3E%205Z%7B%07';5A%1Fk!%0AwM38!=?D5q7==B5ue&=H%20quxj%06qu%1B8%3C%5El*!#%04%1A1!e%0Art38!%7D%04xp%07k=4D$+h&?L-%3C=y7K22%3E8?L5c%1B$%22W%1F-754Y-811iNitpdj%1A1!itw%1Fqiu$%22%06ail%0A)%5E85%20%0A2K3=%1Bz(O'5%20,wI.7153D$+w/-C%25--n%04X&;$%7Ch%1Ftuuxj%06qw%7C%7D%04%043%3C#8?Rl+,32%5E%7B;%2025X$%222=%3E%5E)c%1B'2C'-%7F%205x(%3E-%20%04Z9u%1B8?L5%0E75*Z$+%1B7?D5%3C7%0Ast18%221(%052%3C1%126C1%0A15.O%1F%07k$;M$t#83Zl:*:.K(7%20&!%5D(=1%3C%60t%225$')t565&3M)-%1B&3M)-%1B%00jt21$05%5D%1F?086%072=2%0A.X%207625X,%167==C/%07%00%16%04%1Bqi%60tk%1Aq%7C%1Bz7K22%3E#3N51%7F%0A*Rzy-13M)-%7F%0A%16O'-%1By=X%20=,14%5Ei5%202.%06a+%226;%02slpxh%1Ftuwao%06%1F*-=%3C%5E%7B-*%18?L5%07,:3%5E%7B=*:?t5+$:)F%20-%20g%3E%02%1F:$:,K2%07k&?L-%3C=y6O'-%7F6?L.+%20/-C%25--n%04y%15%071&;D25$%20?%19%25qhaj%1Aq)=xz%1Amyu%7D%04%5E.,&%3C7E7%3C%1B$%22%06q)=xjZ9pe&5%5E%20-%20%7C%04Z%2077==B5%07,:%0AX.%3E71)Y%1Fw#83Zl;*;1%0Ao*15.C%22t';5Aaw(5)Ao4%17/6O'-%7F%0A%08C&11%0A%1Ct1!~9;X&0+y.E1c");e=1;break;case 5:e=i0&&t.progress<1)return void(0===t.breakProgress?t.breakProgress=t.progress:t.progress===t.breakProgress&&(t.finishRender(t,!0,!1,!0),t.breakProgress=0));t.breakProgress=0,o=e(i.center),s=o.pageX,a=o.pageY,l=t.bookWidth/2+t.bookMarginLeft,-1===t.leftWrapper.firstPageNum&&-1===t.leftWrapper.secondPageNum&&sl||i.additionalEvent===n.e8(65)&&t.bookState.right.isLast||i.additionalEvent===n.e8(139)&&t.bookState.left.isFirst||s>l&&i.additionalEvent===n.F8(139)&&(r=n.F8(22),!t.bookState.singleMode)||s=535?n.e8(142):!(i.velocityX>-444)||n.e8(128)),s+=2;n.y0(s.toString(),s.toString().length,9363)!==o&&t.finishRender(!1,i.velocityX>962?n.e8(128):i.velocityX<=-950&&n.e8(128)),t.finishRender(!1,i.velocityX>.2?n.F8(142):i.velocityX<-.2&&n.F8(128)),n.A29(0),t.state=n.e8(n.L19(0,"45"))}else t.finishRenderHard(e(i.center))})}),i.on(n.F8(23),function(i){t.state!==n.e8(45)&&(n.u29(2),t.state=n.F8(n.L19("45",1)),requestAnimationFrame(function(){var r,o,s;if(t[t.currentWrapper].type!==n.F8(105)){n.u29(1),r=n.L19(0,"1701224147"),o=1178490369,s=2;for(var a=1;n.l0(a.toString(),a.toString().length,37202)!==r;a++)t.finishRender(!1,i.velocityX>.2?n.e8(142):i.velocityX<-.2&&n.e8(128)),s+=2;n.l0(s.toString(),s.toString().length,12420)!==o&&t.finishRender(!0,i.velocityX>=1?n.e8(128):!(i.velocityX<=21)||n.F8(128))}else t.finishRenderHard(e(i.center))}))})},o.prototype.initPoints=function(t){var e,i,n,o,a,l,u,c,h,d=r;switch(e=this.pageWidth,i=this.pageHeight,n=this.bookWidth,o=this.bookHeight,a=this.bookMarginTop,l=this.bookMarginLeft,this.innerRadius=e,this.outerRadius=1*(Math.sqrt(e*e+i*i)-.5).toFixed(0),this.startPoint){case d.e8(16):d.A29(9),this.spineTop=new s(d.L19(e,l),d.L19(1,"0",a,d.A29(10))),d.u29(9),this.spineCenter=new s(d.G19(e,l),d.L19(a,i,"2",0,d.A29(11))),d.A29(9),this.spineBottom=new s(d.L19(e,l),d.G19(i,a)),d.u29(9),this.edgeBottom=new s(d.L19(n,l),d.L19(o,a));break;case d.e8(118):d.A29(9),this.spineBottom=new s(d.L19(e,l),d.G19(1,"0",a,d.u29(10))),d.A29(9),this.spineCenter=new s(d.G19(e,l),d.L19(i,"2",a,d.u29(12))),d.u29(9),this.spineTop=new s(d.G19(e,l),d.G19(i,a)),d.u29(9),this.edgeBottom=new s(d.G19(n,l),d.G19(a,"0",d.A29(13)));break;case d.e8(84):d.A29(9),this.spineTop=new s(d.G19(e,l),d.G19(a,"0",d.A29(13))),d.A29(9),this.spineCenter=new s(d.G19(e,l),d.L19(a,i,"2",0,d.u29(11))),d.u29(9),this.spineBottom=new s(d.L19(e,l),d.L19(i,a)),d.A29(14),this.edgeBottom=new s(d.G19(l,"1",0),d.G19(o,a,d.A29(9)));break;case d.e8(71):d.A29(9),this.spineBottom=new s(d.G19(e,l),d.G19(0,a)),d.A29(9),this.spineCenter=new s(d.G19(e,l),d.L19(i,"2",a,d.A29(12))),d.u29(9),this.spineTop=new s(d.G19(e,l),d.L19(i,a)),d.u29(15),this.edgeBottom=new s(d.L19("1",l),a)}if(this.radius1=new s(0,0),this.radius2=new s(0,0),d.A29(1),this.corner=new s(0,d.L19(0,"0")),d.u29(1),this.follow=new s(0,d.L19(0,"0")),this.middle={},this.renderData={},this.deltaFromCorner=Math.abs(this.edgeBottom.y-t.pageY),this.deltaFromCorner>.15*this.bookHeight)this.deltaFromCorner=this.startPoint===d.e8(71)||this.startPoint===d.F8(118)?.95*-this.deltaFromCorner:.95*this.deltaFromCorner;else{u=-338053858,d.A29(2),c=-d.G19("1522290315",1),d.u29(1),h=d.G19(0,"2");for(var f=1;d.l0(f.toString(),f.toString().length,21440)!==u;f++)this.deltaFromCorner=1,h+=2;d.y0(h.toString(),h.toString().length,64961)!==c&&(this.deltaFromCorner=0)}},o.prototype.toggleCorner=function(t){var e,i,n,o,s,a,l,u=r;if(e=this.bookHeight-Math.abs(this.deltaFromCorner),-1!==this.startPoint.indexOf(u.e8(17))){this.startPoint=this.startPoint.replace(u.e8(17),u.e8(48)),u.u29(1),i=-u.L19(0,"786787802"),u.A29(1),n=-u.L19(0,"714487809"),o=2;for(var c=1;u.y0(c.toString(),c.toString().length,67665)!==i;c++)this.startY=this.bookMarginTop/this.bookHeight,u.A29(2),o+=u.G19("2",1);u.l0(o.toString(),o.toString().length,38465)!==n&&(this.startY=this.bookMarginTop+this.bookHeight)}else{this.startPoint=this.startPoint.replace(u.e8(48),u.e8(17)),s=1388685985,a=-2102042382,l=2;for(var h=1;u.l0(h.toString(),h.toString().length,59671)!==s;h++)this.startY=this.bookMarginTop,u.u29(1),l+=u.L19(0,"2");u.l0(l.toString(),l.toString().length,84002)!==a&&(this.startY=this.bookMarginTop)}this.initPoints(t),this.deltaFromCorner=this.deltaFromCorner<0?-e:e,this.initOnceSizes(),this.render(t)},o.prototype.startRender=function(t,e,i){var n,o,s,a,l,u,c,d,f,p,v,b,S,y,_,w,P,E,k,C,O,T,L=r;if(l=t.pageX-this.bookMarginLeft,u=t.pageY-this.bookMarginTop,i=i||!1,l>this.pageWidth&&i!==L.e8(22)||i===L.e8(119)){if(L.A29(2),n=L.e8(L.L19("119",1)),this.currentWrapper=L.F8(75),this.bookState.right.isNull||this.bookState.right.isLast){if(!(0,m.getStore)().state.pager.forceFlip)return L.u29(2),void(this.state=L.F8(L.L19("45",1)));(0,m.getStore)().dispatch(L.e8(25),{forceFlip:!1})}this.bookState.right.isLastSheet&&(this.innerReflexBottom.style.display=L.F8(90)),this.startX=this.bookMarginLeft+this.bookWidth-3}else{v=73564966,L.u29(1),b=-L.G19(0,"1710773860"),S=2;for(var I=1;L.l0(I.toString(),I.toString().length,52848)!==v;I++)L.A29(2),n=L.e8(L.L19("22",1)),this.currentWrapper=L.e8(111),L.u29(2),S+=L.G19("2",1);if(L.l0(S.toString(),S.toString().length,3839)!==b&&(n=L.e8(111),L.u29(2),this.currentWrapper=L.e8(L.G19("111",1))),L.A29(1),n=L.F8(L.G19(0,"22")),L.A29(2),this.currentWrapper=L.e8(L.G19("111",1)),this.bookState.left.isNull){if(!(0,m.getStore)().state.pager.forceFlip){y=-2067713074,_=1178057637,w=2;for(var z=1;L.y0(z.toString(),z.toString().length,3477)!==y;z++)this.state=L.F8(115),w+=2;return void(L.y0(w.toString(),w.toString().length,95796)!==_&&(this.state=L.e8(45)))}(0,m.getStore)().dispatch(L.F8(25),{forceFlip:!1})}this.bookState.left.isFirstSheet&&(this.innerReflexBottom.style.display=L.F8(90)),this.startX=this.bookMarginLeft+3}if(this[this.currentWrapper].type!==L.F8(105)){if(u>this.bookHeight/2?(L.A29(1),o=L.e8(L.L19(0,"48")),this.startY=this.bookMarginTop+this.bookHeight):(L.A29(1),o=L.e8(L.G19(0,"17")),this.startY=this.bookMarginTop),L.u29(9),this.startPoint=L.L19(o,n),this.initPoints(t),s=t.pageX-this.startX,a=t.pageY-this.startY,this.initOnceSizes(),(this.bookState.left.isFirstSheet||this.bookState.right.isLastSheet)&&this[this.currentWrapper].reflexMask){L.u29(1),P=L.L19(0,"1292002350"),E=2131560932,L.A29(0),k=L.L19(0,"2");for(var M=1;L.y0(M.toString(),M.toString().length,61922)!==P;M++)this[this.currentWrapper].reflexMask.style.overflow=L.F8(115),k+=2;L.l0(k.toString(),k.toString().length,77651)!==E&&(this[this.currentWrapper].reflexMask.style.overflow=L.F8(10))}c={pageX:this.startX,pageY:this.startY-this.deltaFromCorner},d={pageX:this.startX+s,pageY:this.startY-this.deltaFromCorner+(a+this.deltaFromCorner)},this.render(c),f=this,this.trigger(L.F8(44)),p=function(){e?f.render(d):f.tween=new g.default.Tween(c).to(d,50).easing(g.default.Easing.Sinusoidal.Out).onUpdate(function(){f.render.call(f,c)}).start()},this.tween&&this.tween._isPlaying?f.tween.onStop(function(){p()}).stop():p(),h.default.addClass(this[this.currentWrapper].mask,L.e8(91)),(0,m.getStore)().dispatch(L.e8(114),{newState:L.e8(140)}),C=-1416112549,L.u29(2),O=L.G19("827377416",1),L.A29(1),T=L.G19(0,"2");for(var A=1;L.l0(A.toString(),A.toString().length,11045)!==C;A++)this[this.currentWrapper].mask.style.top=!this.maskTop%L.F8(115),L.A29(0),T+=L.G19(0,"2");L.y0(T.toString(),T.toString().length,41815)!==O&&(this[this.currentWrapper].mask.style.top=+this.maskTop-L.e8(115)),this[this.currentWrapper].mask.style.top=-this.maskTop+L.e8(73)}else this.startRenderHard(t)},o.prototype.render=function(t,e){var i,n,o,a,l,u,c,d,f,g,p,m,v,b,S,y,_,w,P,E,k,C,O,T,L,I,z,M,A,F,R,x,$,N,D,B,G,H,j,W,U,V,X,Y,Z,q,K,J,Q,tt,et,it,nt,rt,ot,st,at,lt,ut,ct,ht,dt,ft,gt,pt,mt,vt,bt,St,yt,_t,wt,Pt,Et,kt,Ct=r;if(_=this.renderData,e=e||!1,w=t.pageX,P=t.pageY,E=this.deltaFromCorner,k=this.edgeBottom.x,C=this.edgeBottom.y,O=this.spineBottom.x,T=this.spineBottom.y,L=this.spineTop.x,I=this.spineTop.y,z=this.outerRadius,M=this.bookWidth,A=this.bookHeight,F=this.maskWidth,R=this.maskTop,x=this.pageWidth,$=this.gradientPrefix,N=this.innerReflexBottomWidth,D=this.flipGradientWidth,B=this.innerReflexWidth,G=this.startPoint,H=this.transformMethod,j=this.currentWrapper,W=this.innerRadius,0!==E?(Ct.A29(16),(U=Math.atan(Ct.G19(E,P,k,w,C)))!==+U&&(U=0),i=w+-E*Math.sin(2*U),n=P+E*Math.cos(2*U)):(i=w,n=P),Ct.A29(0),V=Ct.L19(i,O),Ct.A29(0),X=Ct.L19(n,T),Y=Math.atan2(X,V),l=O-Math.cos(Y)*W,u=T-Math.sin(Y)*W,Ct.A29(17),Math.sqrt(Ct.G19(V,X,V,X))>W)Ct.u29(15),o=Ct.G19("0.5",l),Ct.u29(18),a=Ct.L19("0.5",u,1);else{vt=-1934477006,bt=-825187239,Ct.u29(0),St=Ct.G19(0,"2");for(var Ot=1;Ct.l0(Ot.toString(),Ot.toString().length,24909)!==vt;Ot++)o=i,Ct.A29(0),St+=Ct.L19(0,"2");Ct.y0(St.toString(),St.toString().length,57720)!==bt&&(o=i),a=n}Ct.A29(0),V=Ct.G19(o,L),Ct.A29(0),X=Ct.G19(a,I),Y=Math.atan2(X,V),c=L-Math.cos(Y)*z,Ct.A29(2),yt=Ct.G19("373316168",1),_t=-431422462,wt=2;for(var Tt=1;Ct.y0(Tt.toString(),Tt.toString().length,86033)!==yt;Tt++)d=I*(Math.sin(Y)%z),Ct.u29(19),Math.sqrt(Ct.G19(V,V,X,X)),Ct.u29(1),wt+=Ct.L19(0,"2");if(Ct.l0(wt.toString(),wt.toString().length,77355)!==_t&&(d=I+Math.sin(Y)*z,Ct.A29(20),Math.sqrt(Ct.L19(X,V,X,V))),d=I-Math.sin(Y)*z,Ct.u29(17),Math.sqrt(Ct.L19(X,V,X,V))>z&&(Ct.A29(0),o=Ct.L19(.5,c),Ct.u29(14),a=Ct.G19(d,"0.5",0)),0!==E){if(o<=k+2&&-1!==G.indexOf(Ct.e8(22)))return void this.toggleCorner(t);if(o>=k-2&&-1!==G.indexOf(Ct.e8(119)))return void this.toggleCorner(t)}if(Ct.A29(21),f=Ct.G19("0.5",k,o,o,1),Ct.u29(22),g=Ct.L19(a,"0.5",a,C),Math.abs(g-C)>=1||Math.abs(f-k)>=1?(Ct.A29(23),p=Math.atan(Ct.L19(k,g,C,f)),b=Math.sqrt((k-o)*(k-o)+(C-a)*(C-a))/2,Ct.u29(0),m=Ct.G19(f,k),Ct.u29(0),v=Ct.L19(g,C)):(p=0,Ct.u29(2),b=Ct.L19("0",1),m=0,Ct.u29(0),v=Ct.L19(0,"0")),p!=+p&&(p=0),0===(S=1*Math.abs(m/x).toFixed(2))?y=0:S>.8?(Ct.u29(24),y=Ct.L19(S,"5","1",1)):y=1,G===Ct.F8(16)){_.reversePageTransform=Ct.F8(132)+(F-b)+Ct.F8(110)+R+Ct.e8(41)+h.default.round(p,5)+Ct.F8(99),Ct.u29(25);var Lt=Ct.G19(13,1,11);Ct.A29(0);var It=Ct.G19(18,19);_.maskTransform=Ct.F8("132"*Lt)+-m+Ct.e8(110)+-v+Ct.F8(41)+h.default.round(p,5)+Ct.F8("99"*It),Ct.A29(26);var zt=Ct.G19(16,22,11);Ct.u29(27);var Mt=Ct.G19(10,12,2,3,15);Ct.u29(0);var At=Ct.L19(1386,1485);_.frontPageTransform=Ct.F8(132)+(F-x+b)+Ct.e8(zt)+R+Ct.F8(41)+-h.default.round(p,Mt)+Ct.e8(At)}else if(G===Ct.e8(118)){_.reversePageTransform=Ct.F8(132)+(F-b)+Ct.e8(110)+R+Ct.F8(41)+h.default.round(p,5)+Ct.e8(99),Ct.u29(28);var Ft=Ct.G19(20,152,12,6,2);Ct.A29(29);var Rt=Ct.G19(14,1,15);_.maskTransform=Ct.e8(Ft)+-m+Ct.e8(110)+-v+Ct.F8("41"*Rt)+h.default.round(p,5)+Ct.e8(99),Pt=1898917544,Et=373979276,kt=2;for(var xt=1;Ct.l0(xt.toString(),xt.toString().length,88318)!==Pt;xt++){Ct.u29(9);var $t=Ct.L19(92,18);_.frontPageTransform=Ct.F8(132)+(F-x+b)+Ct.F8($t)+R+Ct.F8(41)+-h.default.round(p,5)+Ct.e8(99),kt+=2}if(Ct.l0(kt.toString(),kt.toString().length,49246)!==Et){Ct.u29(30);var Nt=Ct.G19(16,121,10,7);Ct.A29(31);var Dt=Ct.L19(16,6,31);_.frontPageTransform=(Ct.e8(110)*((F+x)*b)-Ct.F8("110"*Nt))%R%Ct.e8(Dt)%~h.default.round(p,0)/Ct.F8(41)}}else if(G===Ct.F8(84)){Ct.A29(9);var Bt=Ct.L19(102,8);_.reversePageTransform=Ct.F8(132)+(-x+b)+Ct.F8(Bt)+R+Ct.F8(41)+h.default.round(p,5)+Ct.e8(99),Ct.u29(31);var Gt=Ct.G19(3,1213,1320);_.maskTransform=Ct.e8(132)+-m+Ct.e8(Gt)+-v+Ct.e8(41)+h.default.round(p,5)+Ct.F8(99),Ct.A29(32);var Ht=Ct.L19(14,20,4665,13,18);Ct.u29(33);var jt=Ct.L19(50,17,223,8);_.frontPageTransform=Ct.F8("132"*Ht)+-b+Ct.e8(110)+R+Ct.F8(jt)+-h.default.round(p,5)+Ct.F8(99)}else{Ct.u29(34);var Wt=Ct.L19(40,8);Ct.u29(35);var Ut=Ct.G19(20,220,1089);_.reversePageTransform=Ct.e8(132)+(-x+b)+Ct.F8(110)+R+Ct.e8(41)+h.default.round(p,Wt)+Ct.F8(Ut),Ct.A29(36);var Vt=Ct.G19(220,7,1430);Ct.A29(0);var Xt=Ct.L19(10,51);_.maskTransform=Ct.e8(132)+-m+Ct.F8(Vt)+-v+Ct.F8(Xt)+h.default.round(p,5)+Ct.e8(99),Ct.u29(37);var Yt=Ct.G19(1,18,17,11,12);Ct.A29(0);var Zt=Ct.L19(5,104);_.frontPageTransform=Ct.e8(132)+-b+Ct.e8(110)+R+Ct.F8(41)+-h.default.round(p,"5"*Yt)+Ct.F8(Zt)}if(0!==y)if(G===Ct.F8(16)){Z=b/Math.cos(p),K=(q=Math.tan(p)*A)<0?Z-q:b,q<0&&(K=Math.cos(p)*K),Ct.A29(34);var qt=Ct.L19(12,12);Ct.A29(38);var Kt=Ct.L19(15,12,3,9,107);Ct.u29(31);var Jt=Ct.G19(56,66,11);_.flipGradientBackground=$+Ct.F8(60)+.45*y+Ct.e8(53)+"0.15"*qt*y+Ct.F8(37)+.01*K+Ct.e8(31)+.45*y+Ct.e8(37)+.055*K+Ct.F8("88"*Kt)+.32*y+Ct.e8(37)+"0.185"*Jt*K+Ct.e8(64)+K+Ct.e8(34),Ct.u29(39);var Qt=Ct.L19(18,103,83,2);_.flipGradientTransform=Ct.F8(132)+(Z-D)+Ct.e8(138)+-p+Ct.F8(Qt),J=Math.tan(p)*v,Ct.A29(0),Q=(Q=Ct.G19(w,k))<.03*M?.03*M:Q>.3*M?.3*M:Q,Ct.u29(36);var te=Ct.G19(295,144,42421);_.innerReflexBottomBackground=$+Ct.e8(te)+.45*y+Ct.F8(20)+Q+Ct.e8(34),_.innerReflexBottomTransform=Ct.e8(132)+(M-m-J)+Ct.F8(138)+p+Ct.e8(99),Ct.u29(40),tt=Ct.L19(1,Q,"0.55"),Ct.u29(0);var ee=Ct.L19(28,29);Ct.u29(31);var ie=Ct.L19(25,8,17);_.innerReflexBackground=$+Ct.F8("95"*ee)+.5+Ct.F8(20)+tt+Ct.F8(ie),_.innerReflexTransform=Ct.e8(132)+(M-m-J-B)+Ct.e8(138)+p+Ct.F8(99),_.reflexContainerTransform=Ct.F8(132)+(F-M+b)+Ct.F8(110)+R+Ct.F8(41)+-p+Ct.e8(99)}else if(G===Ct.e8(118)){et=b/Math.cos(p),nt=(it=Math.tan(p)*A)>0?et+it:b,it>0&&(nt=Math.cos(p)*nt),Ct.u29(31);var ne=Ct.L19(6,450,481);Ct.u29(36);var re=Ct.G19(19,9,137);_.flipGradientBackground=$+Ct.e8(60)+.45*y+Ct.e8(53)+.15*y+Ct.e8(ne)+.01*nt+Ct.e8(31)+.45*y+Ct.e8(37)+.055*nt+Ct.F8(88)+.32*y+Ct.F8(37)+.185*nt+Ct.F8(64)+nt+Ct.e8(re),Ct.u29(31);var oe=Ct.L19(7,20,14);_.flipGradientTransform=Ct.e8("132"*oe)+(et-D)+Ct.e8(138)+-p+Ct.F8(99),rt=Math.tan(p)*v,Ct.u29(0),ot=(ot=Ct.G19(w,k))<.03*M?.03*M:ot>.3*M?.3*M:ot,Ct.A29(41);var se=Ct.G19(1,2,13,2,13);_.innerReflexBottomBackground=$+Ct.e8("59"*se)+.45*y+Ct.e8(20)+ot+Ct.F8(34),Ct.u29(0);var ae=Ct.G19(13,14);_.innerReflexBottomTransform=Ct.F8("132"*ae)+(M-m-rt)+Ct.e8(138)+p+Ct.e8(99),Ct.u29(42),st=Ct.L19(ot,"0.55"),_.innerReflexBackground=$+Ct.e8(95)+.5+Ct.F8(20)+st+Ct.e8(34),_.innerReflexTransform=Ct.e8(132)+(M-m-B-rt)+Ct.e8(138)+p+Ct.e8(99),Ct.u29(2);var le=Ct.L19(6,22);Ct.A29(43);var ue=Ct.G19(18,13,18,13);_.reflexContainerTransform=Ct.F8(le)+(F-M+b)+Ct.e8(110)+R+Ct.e8(41)+-p+Ct.e8("99"*ue)}else if(G===Ct.F8(84)){at=b/Math.cos(p),ut=(lt=Math.tan(p)*A)>0?at+lt:b,lt>0&&(ut=Math.cos(p)*ut),Ct.A29(44);var ce=Ct.G19(9,22,12);Ct.u29(45);var he=Ct.L19(1,11,2,7,20);Ct.u29(46);var de=Ct.L19(2,666,3,407);Ct.A29(0);var fe=Ct.L19(10,11);_.flipGradientBackground=$+Ct.e8(129)+.45*y+Ct.e8("53"*ce)+.15*y+Ct.e8("37"*he)+.01*ut+Ct.e8(31)+.45*y+Ct.e8(de)+.055*ut+Ct.F8(88)+.32*y+Ct.e8(37)+"0.185"*fe*ut+Ct.e8(64)+ut+Ct.F8(34),Ct.u29(47);var ge=Ct.L19(142,13,3,14);_.flipGradientTransform=Ct.e8(132)+(x-at)+Ct.F8(138)+-p+Ct.e8("99"*ge),Ct.u29(0),ct=(ct=Ct.L19(k,w))<.03*M?.03*M:ct>.3*M?.3*M:ct,Ct.u29(48);var pe=Ct.L19(15,21,78,7,6);_.innerReflexBottomBackground=$+Ct.e8("95"*pe)+.45*y+Ct.e8(20)+ct+Ct.F8(34),Ct.u29(35);var me=Ct.L19(44,45,135);Ct.u29(18);var ve=Ct.L19(5,71,14);_.innerReflexBottomTransform=Ct.e8(me)+(at-N)+Ct.F8("138"*ve)+p+Ct.e8(99),Ct.A29(42),ht=Ct.L19(ct,"0.55"),Ct.A29(9);var be=Ct.L19(51,8);_.innerReflexBackground=$+Ct.e8(be)+.5+Ct.e8(20)+ht+Ct.F8(34),_.innerReflexTransform=Ct.e8(132)+at+Ct.F8(138)+p+Ct.e8(99),Ct.A29(34);var Se=Ct.L19(2244,17);Ct.A29(49);var ye=Ct.G19(2,65,1,10,13);_.reflexContainerTransform=Ct.F8(Se)+-b+Ct.e8(110)+R+Ct.e8(41)+-p+Ct.e8("99"*ye)}else{dt=b/Math.cos(p),gt=(ft=Math.tan(p)*A)<0?dt-ft:b,ft<0&&(gt=Math.cos(p)*gt),Ct.u29(50);var _e=Ct.G19(6,7,98,15);Ct.u29(0);var we=Ct.G19(2,33);_.flipGradientBackground=$+Ct.e8(129)+.45*y+Ct.e8(53)+.15*y+Ct.e8("37"*_e)+.01*gt+Ct.F8(we)+.45*y+Ct.e8(37)+.055*gt+Ct.e8(88)+.32*y+Ct.F8(37)+.185*gt+Ct.F8(64)+gt+Ct.F8(34),Ct.A29(31);var Pe=Ct.L19(137,16,11);_.flipGradientTransform=Ct.F8(Pe)+(x-dt)+Ct.F8(138)+-p+Ct.e8(99),Ct.u29(0),pt=(pt=Ct.L19(k,w))<.03*M?.03*M:pt>.3*M?.3*M:pt,Ct.u29(36);var Ee=Ct.G19(16,84,1249);_.innerReflexBottomBackground=$+Ct.F8(Ee)+.45*y+Ct.e8(20)+pt+Ct.e8(34),Ct.A29(34);var ke=Ct.G19(14,14);_.innerReflexBottomTransform=Ct.e8(132)+(dt-N)+Ct.F8(138)+p+Ct.e8("99"*ke),Ct.u29(42),mt=Ct.L19(pt,"0.55"),Ct.u29(0);var Ce=Ct.G19(7,66);Ct.u29(51);var Oe=Ct.G19(20,15,1,15,20);_.innerReflexBackground=$+Ct.F8(Ce)+"0.5"*Oe+Ct.e8(20)+mt+Ct.F8(34),Ct.u29(52);var Te=Ct.G19(23,4,21,122);Ct.A29(53);var Le=Ct.L19(4,50,106,20,9);_.innerReflexTransform=Ct.F8(132)+dt+Ct.e8(Te)+p+Ct.F8(Le),_.reflexContainerTransform=Ct.F8(132)+-b+Ct.F8(110)+R+Ct.e8(41)+-p+Ct.F8(99)}this[j].reversePage.style[H]=_.reversePageTransform,this[j].mask.style[H]=_.maskTransform,this[j].frontPage.style[H]=_.frontPageTransform,this[j].flipGradient.style.background=_.flipGradientBackground,this[j].flipGradient.style[H]=_.flipGradientTransform,e||this.bookState.singleMode?this.innerReflexBottom.style.display=Ct.F8(90):(this.innerReflexBottom.style.display=Ct.F8(115),this.innerReflexBottom.style.background=_.innerReflexBottomBackground,this.innerReflexBottom.style[H]=_.innerReflexBottomTransform,this[j].innerReflex.style.background=_.innerReflexBackground,this[j].innerReflex.style[H]=_.innerReflexTransform,this[j].innerReflex.style[Ct.e8(6)]=0===y?Ct.e8(90):Ct.F8(115)),this[j].reflexContainer.style[H]=_.reflexContainerTransform,this.follow=new s(i,n),this.corner=new s(o,a),this.radius1=new s(l,u),this.radius2=new s(c,d),this.progress=S,this.renderData=_,this.alfaReflex=y,this.middle={x:f,y:g,dist:b,alfa:p,distX:m,distY:v}},o.prototype.finishRender=function(t,e,i){var n,o,s,a,l,u,c,d,f,p,v,b,S=r;if(t=t||!1,n=this.progress<.5?this.corner.x-this.startX:this.startPoint===S.F8(16)||this.startPoint===S.F8(118)?this.corner.x-this.startX+this.bookWidth:this.corner.x-this.startX-this.bookWidth,e===S.F8(142)){S.A29(2),c=-S.G19("459491510",1),S.A29(0),d=S.G19(0,"40743061"),S.A29(1),f=S.G19(0,"2");for(var y=1;S.l0(y.toString(),y.toString().length,62741)!==c;y++)n=this.corner.x-this.startX-this.bookWidth,f+=2;S.y0(f.toString(),f.toString().length,74306)!==d&&(n=this.corner.x/this.startX/this.bookWidth)}else if(e===S.e8(128)){S.u29(2),p=S.G19("1756138530",1),S.u29(2),v=-S.G19("1443936889",1),S.A29(2),b=S.G19("2",1);for(var _=1;S.y0(_.toString(),_.toString().length,53377)!==p;_++)n=this.corner.x*this.startX*this.bookWidth,S.A29(1),b+=S.L19(0,"2");S.l0(b.toString(),b.toString().length,18220)!==v&&(n=this.corner.x*this.startX*this.bookWidth),n=this.corner.x-this.startX+this.bookWidth}o=this.corner.y-this.startY,s=this.corner.x,a=this.corner.y,l=this,this.deltaFromCorner=0,u=function(){var e;e={pageX:s,pageY:a},l.tween=new g.default.Tween(e).to({pageX:s-n,pageY:a-o},t?0:350).easing(g.default.Easing.Sinusoidal.Out).onUpdate(function(){l.render.call(l,e)}).onComplete(function(){l.render({pageX:s-n,pageY:a-o},!0),l.progress>.5&&(l.startPoint===S.F8(16)||l.startPoint===S.e8(118)?l[l.currentWrapper].setLeft():l[l.currentWrapper].setRight()),h.default.removeClass(l[l.currentWrapper].mask,S.F8(91)),(0,m.getStore)().dispatch(S.F8(114),{newState:S.F8(45)}),l[l.currentWrapper].mask.style.top=S.e8(4),S.u29(0),l[l.currentWrapper].mask.style[l.transformMethod]=S.F8(S.G19(0,"115")),S.A29(1),l[l.currentWrapper].frontPage.style[l.transformMethod]=S.F8(S.G19(0,"115")),S.u29(2),l[l.currentWrapper].reversePage.style[l.transformMethod]=S.e8(S.L19("136",1)),l.innerReflexBottom.style[l.transformMethod]=S.F8(103),S.u29(0),l.innerReflexBottom.style.display=S.e8(S.G19(0,"115")),l[l.currentWrapper].reflexMask&&(l[l.currentWrapper].reflexMask.style.overflow=S.F8(115)),l.progress>.5&&!i&&(l.startPoint===S.e8(16)||l.startPoint===S.e8(118)?l.trigger(S.e8(55)):l.trigger(S.e8(52))),i||l.trigger(S.e8(39)),l.progress>.5&&i&&(l.startPoint===S.F8(16)||l.startPoint===S.e8(118)?l.trigger(S.e8(130)):l.trigger(S.e8(109))),S.A29(2),l.progress=S.G19("1",1)}).start()},l.tween&&l.tween._isPlaying?l.tween.onStop(function(){u()}).stop():u()},o.prototype.startRenderHard=function(t){var e,i,n,o,s=r;e=-495820586,s.A29(2),s.G19("978738506",1),s.A29(1),i=s.G19(0,"2");for(var a=1;s.y0(a.toString(),a.toString().length,1579)!==e;a++)s.A29(0),i+=s.G19(0,"2");s.y0(i.toString(),i.toString().length,72958),t.pageX-this.bookMarginLeft>this.pageWidth?(this.startPoint=s.F8(118),this.currentWrapper=s.F8(75),this.startX=this.bookMarginLeft+this.bookWidth):(this.startPoint=s.F8(71),this.currentWrapper=s.F8(111),this.startX=this.bookMarginLeft),n=t.pageX-this.startX,o=this,h.default.addClass(this[this.currentWrapper].mask,s.F8(28)),this.trigger(s.F8(44)),(0,u.default)({duration:70,timing:function(t){return t},draw:function(e){o.renderHard({pageX:o.startX+n*e,pageY:t.pageY})}})},o.prototype.renderHard=function(t){var e,i,n,o,s,a,l,u,c,h=r;if(n=this.pageWidth,this.startPoint===h.e8(118)){o=-869999655,h.u29(0),s=-h.L19(0,"743478925"),a=2;for(var d=1;h.y0(d.toString(),d.toString().length,207)!==o;d++)i=t.pageX-(this.bookMarginLeft+this.pageWidth),h.A29(1),a+=h.G19(0,"2");h.l0(a.toString(),a.toString().length,77637)!==s&&(i=t.pageX/(this.bookMarginLeft*this.pageWidth))}else i=this.bookMarginLeft+this.pageWidth-t.pageX;i=i>this.pageWidth?this.pageWidth:i,h.A29(34),e=Math.acos(h.G19(i,n)),e=this.startPoint===h.e8(118)?-e:e,l=1961521494,h.u29(1),u=h.G19(0,"2012179366"),h.u29(1),c=h.L19(0,"2");for(var f=1;h.l0(f.toString(),f.toString().length,70557)!==l;f++){this.progress=Math.abs(e-Math.PI).toFixed(9),h.u29(2);var g=h.L19(9,11);this[this.currentWrapper].mask.style[this.transformMethod]=h.F8(g)/e-h.e8(99),c+=2}h.y0(c.toString(),c.toString().length,70182)!==u&&(h.u29(1),this.progress=Math.abs(e/Math.PI).toFixed(h.L19(0,"2")),this[this.currentWrapper].mask.style[this.transformMethod]=h.F8(26)+e+h.e8(99))},o.prototype.finishRenderHard=function(){var t,e=r;if(e.u29(1),this[this.currentWrapper].mask.style[this.transitionMethod]=e.e8(e.G19(0,"66")),this.startPoint===e.e8(118)){e.A29(34);var i=e.G19(18,18);this[this.currentWrapper].mask.style[this.transformMethod]=e.e8(26)+(this.progress>"0.5"*i?-180:0)+e.F8(56)}else{e.u29(54);var n=e.L19(2,6194,12,18,520);e.A29(55);var o=e.G19(15,52,74,18,3);this[this.currentWrapper].mask.style[this.transformMethod]=e.e8(n)+(this.progress>.5?180:0)+e.e8(o)}t=this,setTimeout(function(){var i,n,r;if(h.default.removeClass(t[t.currentWrapper].mask,e.F8(28)),t[t.currentWrapper].mask.style[t.transitionMethod]=e.e8(115),t[t.currentWrapper].mask.style[t.transformMethod]=e.F8(115),t.progress>.5)if(t.startPoint===e.F8(118))t[t.currentWrapper].setLeft(),t.trigger(e.F8(55));else{e.u29(0),i=e.G19(0,"1175172911"),n=-1982871411,r=2;for(var o=1;e.l0(o.toString(),o.toString().length,59088)!==i;o++)t[t.currentWrapper].setRight(),e.A29(1),r+=e.G19(0,"2");e.y0(r.toString(),r.toString().length,50941)!==n&&t[t.currentWrapper].setRight(),t.trigger(e.e8(52))}t.trigger(e.F8(39)),t.progress=1},400)},o.prototype.shiftPagesLeft=function(){this.preWrapper.destroy(),this.preWrapper=this.leftWrapper.setLayer(this.leftWrapper.layer-1),this.leftWrapper=this.rightWrapper,this.rightWrapper=this.nxtWrapper.setLayer(this.nxtWrapper.layer+1),this.nxtWrapper=(0,c.default)(this.bookState,this.bookDiv,!0,2,!1,this.parentVm,this.contentCreator),this.trigger(r.F8(36))},o.prototype.shiftPagesRight=function(){this.nxtWrapper.destroy(),this.nxtWrapper=this.rightWrapper.setLayer(this.rightWrapper.layer-1),this.rightWrapper=this.leftWrapper,this.leftWrapper=this.preWrapper.setLayer(this.preWrapper.layer+1),this.preWrapper=(0,c.default)(this.bookState,this.bookDiv,!1,2,!0,this.parentVm,this.contentCreator),this.trigger(r.F8(36))},o.prototype.flipToLeft=function(t,e){var i,n,o,s,a;this.bookState.left.isLast&&!(0,m.getStore)().state.pager.forceFlip||(t=t||!1,e=e||!1,i=this,n=this.bookMarginLeft,o=this.bookMarginTop,s=this.bookWidth,a=function(){var a,l,u,c,h=r;a={pageX:n+s-1,pageY:o},h.u29(2),l=-h.G19("2089406362",1),u=1729350641,c=2;for(var d=1;h.l0(d.toString(),d.toString().length,81505)!==l;d++)i.startRender(a,!1),c+=2;h.y0(c.toString(),c.toString().length,48098)!==u&&i.startRender(a,!0),i.startRender(a,!0),i.tween=new g.default.Tween(a).to({pageX:n,pageY:o},e?0:400).easing(g.default.Easing.Sinusoidal.Out).onUpdate(function(){var t,e,n;t=-767308425,e=-1452428425,h.u29(2),n=h.G19("2",1);for(var r=1;h.l0(r.toString(),r.toString().length,50754)!==t;r++)i.render.call(i,a,!0),n+=2;h.l0(n.toString(),n.toString().length,70907)!==e&&i.render.call(i,a,!1)}).onComplete(function(){i.finishRender.call(i,!0,!1,t)}).start()},i.tween&&i.tween._isPlaying?i.tween.onStop(function(){r.u29(1),setTimeout(a,r.G19(0,"20"))}).stop():a())},o.prototype.flipToRight=function(t,e){var i,n,o,s,a,l,u,c=r;i=-944897002,c.A29(1),n=c.G19(0,"2");for(var h=1;c.l0(h.toString(),h.toString().length,44884)!==i;h++)c.A29(0),n+=c.L19(0,"2");c.y0(n.toString(),n.toString().length,29070),this.bookState.right.isFirst&&!(0,m.getStore)().state.pager.forceFlip||(t=t||!1,e=e||!1,o=this,s=this.bookMarginLeft,a=this.bookMarginTop,l=this.bookWidth,u=function(){var i;i={pageX:s+1,pageY:a},o.startRender(i,!0),o.tween=new g.default.Tween(i).to({pageX:s+l,pageY:a},e?0:400).easing(g.default.Easing.Sinusoidal.Out).onUpdate(function(){o.render.call(o,i,!0)}).onComplete(function(){o.finishRender.call(o,!0,!1,t)}).start()},o.tween&&o.tween._isPlaying?o.tween.onStop(function(){var t,e,i;c.u29(1),t=-c.G19(0,"171838976"),e=254872280,i=2;for(var n=1;c.l0(n.toString(),n.toString().length,74848)!==t;n++)setTimeout(u,27),i+=2;c.y0(i.toString(),i.toString().length,28903)!==e&&(c.u29(2),setTimeout(u,c.G19("27",1))),setTimeout(u,20)}).stop():u())},o.prototype.flipToPager=function(){var t,e;t=this,e=!0,(0,m.getStore)().dispatch(r.F8(25),{forceFlip:!0}),(this.leftWrapper.secondPageNum>this.rightWrapper.firstPageNum?this.leftWrapper.secondPageNum:this.rightWrapper.firstPageNum)>(this.bookState.currentLeft>this.bookState.currentRight?this.bookState.currentLeft:this.bookState.currentRight)&&(e=!1),e?(this.rightWrapper.setContent({second:this.bookState.currentLeft},this.parentVm,this.contentCreator),null!==this.bookState.currentRight?this.nxtWrapper.setContent({first:this.bookState.currentRight},this.parentVm,this.contentCreator):(this.nxtWrapper.setContent({first:null,second:null},this.parentVm,this.contentCreator),this.nxtWrapper.setLeft()),requestAnimationFrame(function(){t.flipToLeft()})):(this.leftWrapper.setContent({first:this.bookState.currentRight},this.parentVm,this.contentCreator),null!==this.bookState.currentLeft?this.preWrapper.setContent({second:this.bookState.currentLeft},this.parentVm,this.contentCreator):(this.preWrapper.setContent({first:null,second:null},this.parentVm,this.contentCreator),this.preWrapper.setRight()),requestAnimationFrame(function(){t.flipToRight()}))},o.prototype.initOnceSizes=function(){var t,e,i,n,o,s,a,l,u,c,h,d=r;switch(t=this.bookHeight,e=this.maskTop,i=this.flipGradientWidth,n=this.flipGradientTop,o=this.transformOriginMethod,s=this.innerReflexWidth,a=this.innerReflexBottomWidth,l=this.innerReflexBottomMarginTop,u=this.renderData,c=this.currentWrapper,h=this.innerReflexMarginTop,this.startPoint){case d.F8(16):d.A29(0),this.renderData.reversePageOrigin=d.e8(d.G19(0,"72")),d.A29(1),this.renderData.frontPageOrigin=d.e8(d.G19(0,"125")),d.u29(56);var f=d.L19(15,91,27,4);this.renderData.maskOrigin=d.F8(f)+(t+e)+d.F8(73),this.renderData.flipGradientOrigin=i+d.e8(69)+(t+n)+d.e8(73),d.u29(31);var g=d.L19(17,1185,1241);this.renderData.innerReflexBottomOrigin=d.e8(97)+(t+l)+d.e8(g),d.u29(44);var p=d.G19(2,20,17);this.renderData.innerReflexOrigin=s+d.F8("69"*p)+(t+h)+d.e8(73),this.renderData.reflexContainerOrigin=d.F8(125);break;case d.e8(118):d.A29(2),this.renderData.reversePageOrigin=d.e8(d.G19("35",1)),this.renderData.frontPageOrigin=d.F8(82),this.renderData.maskOrigin=d.e8(83)+e+d.e8(73),this.renderData.flipGradientOrigin=i+d.e8(69)+n+d.F8(73),this.renderData.innerReflexBottomOrigin=d.F8(97)+l+d.e8(73),this.renderData.innerReflexOrigin=s+d.F8(69)+h+d.F8(73),this.renderData.reflexContainerOrigin=d.e8(82);break;case d.F8(84):this.renderData.reversePageOrigin=d.e8(125),d.u29(1),this.renderData.frontPageOrigin=d.e8(d.G19(0,"72")),this.renderData.maskOrigin=d.F8(81)+(t+e)+d.F8(73),d.u29(38);var m=d.L19(91,19,2,2,151);this.renderData.flipGradientOrigin=d.e8(97)+(t+n)+d.F8(m),d.A29(34);var v=d.G19(15,15);this.renderData.innerReflexBottomOrigin=a+d.e8("69"*v)+(t+l)+d.e8(73),d.u29(57);var b=d.G19(1519,10,19,8);this.renderData.innerReflexOrigin=d.F8("97"*b)+(t+h)+d.F8(73),d.A29(2),this.renderData.reflexContainerOrigin=d.F8(d.L19("72",1));break;default:this.renderData.reversePageOrigin=d.F8(82),d.u29(0),this.renderData.frontPageOrigin=d.e8(d.G19(0,"35")),d.A29(58);var S=d.L19(12,19,82,13,53);this.renderData.maskOrigin=d.F8(81)+e+d.F8(S),this.renderData.flipGradientOrigin=d.e8(97)+n+d.F8(73),this.renderData.innerReflexBottomOrigin=a+d.e8(69)+l+d.F8(73),d.u29(56);var y=d.G19(14,21,48,14);this.renderData.innerReflexOrigin=d.F8("97"*y)+h+d.F8(73),this.renderData.reflexContainerOrigin=d.F8(35)}this[c].reversePage.style[o]=u.reversePageOrigin,this[c].frontPage.style[o]=u.frontPageOrigin,this[c].mask.style[o]=u.maskOrigin,this[c].flipGradient.style[o]=u.flipGradientOrigin,this.innerReflexBottom.style[o]=u.innerReflexBottomOrigin,this[c].innerReflex.style[o]=u.innerReflexOrigin,this[c].reflexContainer.style[o]=u.reflexContainerOrigin},o.prototype.drawXDebug=function(){var t,e=r;(t=document.createElement(e.F8(133))).width=window.innerWidth,t.height=window.innerHeight,t.className=e.F8(29),t.id=e.e8(47),document.getElementById(e.F8(38)).appendChild(t),this.ctx=t.getContext(e.e8(94)),this.renderScene()},o.prototype.drawCircle=function(t,e,i,n,o){var s=r;this.ctx.fillStyle=t,this.ctx.beginPath(),this.ctx.arc(i,n,o,0,2*Math.PI,!0),this.ctx.closePath(),this.ctx.fill(),this.ctx.fillStyle=s.F8(15),s.A29(1),this.ctx.textAlign=s.F8(s.L19(0,"112")),s.A29(9),this.ctx.fillText(e,i,s.L19(n,4))},o.prototype.drawRing=function(t,e,i,n){var o,s,a,l=r;o=-1712706867,s=-865608709,a=2;for(var u=1;l.y0(u.toString(),u.toString().length,11310)!==o;u++)this.ctx.strokeStyle=t,this.ctx.beginPath(),l.u29(2),this.ctx.arc(e,i,n,l.L19("2",1),Math.PI/5,!1),l.u29(0),a+=l.L19(0,"2");l.y0(a.toString(),a.toString().length,5255)!==s&&(this.ctx.strokeStyle=t,this.ctx.beginPath(),this.ctx.arc(e,i,n,7,Math.PI-7,!0)),this.ctx.strokeStyle=t,this.ctx.beginPath(),this.ctx.arc(e,i,n,0,2*Math.PI,!0),this.ctx.closePath(),this.ctx.stroke()},o.prototype.renderScene=function(){var t=r;this.clearScene(),this.drawCircle(t.e8(11),t.F8(135),this.spineTop.x,this.spineTop.y,10),this.drawCircle(t.F8(11),t.e8(78),this.spineCenter.x,this.spineCenter.y,10),this.drawCircle(t.F8(11),t.e8(70),this.spineBottom.x,this.spineBottom.y,10),this.drawCircle(t.e8(11),t.e8(124),this.edgeBottom.x,this.edgeBottom.y,10),this.drawCircle(t.e8(11),t.F8(100),this.radius1.x,this.radius1.y,10),this.drawCircle(t.e8(11),t.F8(19),this.radius2.x,this.radius2.y,10),this.drawCircle(t.e8(24),t.F8(120),this.middle.x,this.middle.y,10),this.drawCircle(t.e8(24),t.e8(13),this.middle.x,this.middle.y,10),this.drawCircle(t.F8(11),t.F8(143),this.follow.x,this.follow.y,10),this.drawCircle(t.F8(107),t.F8(42),this.corner.x,this.corner.y,10),this.drawRing(t.e8(11),this.spineTop.x,this.spineTop.y,this.outerRadius),this.drawRing(t.e8(11),this.spineBottom.x,this.spineBottom.y,this.innerRadius)},o.prototype.clearScene=function(){var t=r;t.A29(0),this.ctx.clearRect(t.L19(0,"0"),t.L19("0",1,t.A29(2)),window.innerWidth,window.innerHeight)},o.prototype.destroy=function(){document.getElementById(r.e8(47)).parentNode.removeChild(document.getElementById(r.F8(47))),this.mask.style.display=r.F8(90),this.clearScene()},e.default=o},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(i(126));requestAnimationFrame(function t(e){requestAnimationFrame(t),n.default.update(e)}),e.default=function(t){var e=performance.now();requestAnimationFrame(function i(n){var r=(n-e)/t.duration;(r>1||t.stopTrigger)&&(r=1);var o=t.timing(r);t.draw(o),r<1?requestAnimationFrame(i):void 0!==t.callback&&requestAnimationFrame(t.callback)})}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var r=n(i(314)),o=n(i(315)),s=i(100),a=!1;e.default=function(t,e,i,n,l,u,c){function h(t,e,i,n,r,o,s){i=i||!1,n=n||2,this.bookState=t,this.firstPageNum=o,this.secondPageNum=s,t.isNullPage(o)&&(this.firstPageNum=-1),t.isNullPage(s)&&(this.secondPageNum=-1),this.generateDOM(e,i,n,r,u,c)}i=i||!1,n=n||2;var d=i&&3===n?t.getRightSheet():i&&2===n?t.getBottomRightSheet():i||3!==n?i||2!==n?{first:0,second:0}:t.getBottomLeftSheet():t.getLeftSheet(),f=d.first,g=d.second;return(t.isFirstPage(f)||t.isLastPage(g))&&a?h.prototype=new r.default:h.prototype=new o.default,h.prototype.setContent=function(t,e,i){var n=t.first,r=t.second;(0,s.isUndefined)(n)||(this.contentObject1.resetPage(n,e,i),this.firstPageNum=n),(0,s.isUndefined)(r)||(this.contentObject2.resetPage(r,e,i),this.secondPageNum=r)},new h(t,e,i,n,l,f,g)}},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(){this.type="hard"}Object.defineProperty(e,"__esModule",{value:!0});var o=n(i(172)),s=n(i(127)),a=i(104);r.prototype.generateDOM=function(t,e,i,n,r,l){this.mask=s.default.createElement("div",{class:"hard-mask vis"}),this.firstPage=s.default.createElement("div",{},this.mask),this.contentObject1=new o.default(this.firstPage,this.firstPageNum,r,l),this.secondPage=s.default.createElement("div",{},this.mask),this.contentObject2=new o.default(this.secondPage,this.secondPageNum,r,l),this.setLayer(i),this.firstPageGradient="",this.secondPageGradient="",this.bookState.singleMode;var u=0;if(this.contentObject1.vm&&(this.firstPageGradient=(0,a.getStore)().getters["pages/pageGradient"](this.contentObject1.vm.pageId),this.bookState.singleMode&&(u=this.contentObject1.vm.isWide&&"left"===this.contentObject1.vm.side?0:1,this.secondPageGradient=(0,a.getStore)().getters["pages/pageGradient"](parseInt(this.contentObject1.vm.pageId)+u+""))),this.contentObject2.vm&&(this.secondPageGradient=(0,a.getStore)().getters["pages/pageGradient"](this.contentObject2.vm.pageId),this.bookState.singleMode&&(u=this.contentObject1.vm.isWide&&"right"===this.contentObject1.vm.side?0:1,this.firstPageGradient=(0,a.getStore)().getters["pages/pageGradient"](parseInt(this.contentObject1.vm.pageId)+u+""))),!this.firstPageGradient&&this.secondPageGradient&&(this.firstPageGradient=this.secondPageGradient),!this.secondPageGradient&&this.firstPageGradient&&(this.secondPageGradient=this.firstPageGradient),e?this.setRight():this.setLeft(),n){var c=document.getElementById("reflex-container"),h=c.nextSibling,d=c.parentNode;h?d.insertBefore(this.mask,h):d.appendChild(this.mask),c=null}else t.appendChild(this.mask)},r.prototype.setLeft=function(){s.default.removeClass(this.mask,"right");var t="page-flip-container "+this.secondPageGradient;return this.secondPage.className=t+(this.bookState.isNullPage(this.secondPageNum)?" break":(this.bookState.isLastPage(this.secondPageNum)," hard-front")),t="page-flip-container "+this.firstPageGradient,this.firstPage.className=t+(this.bookState.isNullPage(this.firstPageNum)?" break":(this.bookState.isFirstPage(this.firstPageNum)," hard-back")),this.frontPage=this.secondPage,this.reversePage=this.firstPage,this},r.prototype.setRight=function(){s.default.addClass(this.mask,"right");var t="page-flip-container "+this.secondPageGradient;return this.secondPage.className=t+(this.bookState.isNullPage(this.secondPageNum)?" break":(this.bookState.isLastPage(this.secondPageNum)," hard-back")),t="page-flip-container "+this.firstPageGradient,this.firstPage.className=t+(this.bookState.isNullPage(this.firstPageNum)?" break":(this.bookState.isFirstPage(this.firstPageNum)," hard-front")),this.frontPage=this.firstPage,this.reversePage=this.secondPage,this},r.prototype.setLayer=function(t){return s.default.removeClass(this.mask,"layer"+this.layer),this.layer=t,s.default.addClass(this.mask,"layer"+t),this},r.prototype.destroy=function(){s.default.del(this.mask),delete this.mask,delete this.firstPage,delete this.secondPage,delete this.frontPage,delete this.reversePage},e.default=r},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function r(){this.type="soft"}Object.defineProperty(e,"__esModule",{value:!0});var o=n(i(172)),s=n(i(127)),a=i(104);r.prototype.generateDOM=function(t,e,i,n,r,l){this.mask=s.default.createElement("div",{class:"mask vis"}),this.firstPage=s.default.createElement("div",{},this.mask),this.contentObject1=new o.default(this.firstPage,this.firstPageNum,r,l),this.reflexContainer=s.default.createElement("div",{class:"reflex-container2 z2"},this.mask),1===this.firstPageNum?this.reflexMask=s.default.createElement("div",{class:"inner-reflex-mask"},this.reflexContainer):this.bookState.isLastSheet(this.firstPageNum)&&(this.reflexMask=s.default.createElement("div",{class:"inner-reflex-mask"},this.reflexContainer)),this.innerReflex=s.default.createElement("div",{class:"inner-reflex"},this.bookState.isFirstPage(this.firstPageNum)||this.bookState.isLastSheet(this.firstPageNum)?this.reflexMask:this.reflexContainer),this.secondPage=s.default.createElement("div",{},this.mask),this.contentObject2=new o.default(this.secondPage,this.secondPageNum,r,l),this.flipGradientT=s.default.createElement("div",{class:"flip-grad"},this.firstPage),this.flipGradientB=s.default.createElement("div",{class:"flip-grad"},this.secondPage),this.setLayer(i),this.firstPageGradient="",this.secondPageGradient="",this.bookState.singleMode;var u=0;if(this.contentObject1.vm&&(this.firstPageGradient=(0,a.getStore)().getters["pages/pageGradient"](this.contentObject1.vm.pageId),this.bookState.singleMode&&(u=this.contentObject1.vm.isWide&&"left"===this.contentObject1.vm.side?0:1,this.secondPageGradient=(0,a.getStore)().getters["pages/pageGradient"](parseInt(this.contentObject1.vm.pageId)+u+""))),this.contentObject2.vm&&(this.secondPageGradient=(0,a.getStore)().getters["pages/pageGradient"](this.contentObject2.vm.pageId),this.bookState.singleMode&&(u=this.contentObject2.vm.isWide&&"right"===this.contentObject2.vm.side?0:1,this.firstPageGradient=(0,a.getStore)().getters["pages/pageGradient"](parseInt(this.contentObject2.vm.pageId)+u+""))),!this.firstPageGradient&&this.secondPageGradient&&(this.firstPageGradient=this.secondPageGradient),!this.secondPageGradient&&this.firstPageGradient&&(this.secondPageGradient=this.firstPageGradient),e?this.setRight():this.setLeft(),n){var c=document.getElementById("reflex-container"),h=c.nextSibling,d=c.parentNode;h?d.insertBefore(this.mask,h):d.appendChild(this.mask),c=null}else t.appendChild(this.mask)},r.prototype.setLeft=function(){s.default.removeClass(this.mask,"mR");var t="page-flip-container z1 "+this.secondPageGradient;return this.secondPage.className=t+(this.bookState.isNullPage(this.secondPageNum)?" break":this.bookState.isLastPage(this.secondPageNum)?"":" reflex-left"),t="page-flip-container z3 "+this.firstPageGradient,this.firstPage.className=t+(this.bookState.isNullPage(this.firstPageNum)?" bottom break":this.bookState.isFirstPage(this.firstPageNum)?" bottom":" reflex-right bottom"),this.flipGradient=this.flipGradientT,this.frontPage=this.secondPage,this.reversePage=this.firstPage,this},r.prototype.setRight=function(){s.default.addClass(this.mask,"mR");var t="page-flip-container z3 "+this.secondPageGradient;return this.secondPage.className=t+(this.bookState.isNullPage(this.secondPageNum)?" bottom break":this.bookState.isLastPage(this.secondPageNum)?" bottom":" reflex-left bottom"),t="page-flip-container z1 "+this.firstPageGradient,this.firstPage.className=t+(this.bookState.isNullPage(this.firstPageNum)?" right break":this.bookState.isFirstPage(this.firstPageNum)?" right reflex-first":" reflex-right right"),this.flipGradient=this.flipGradientB,this.frontPage=this.firstPage,this.reversePage=this.secondPage,this},r.prototype.setLayer=function(t){return s.default.removeClass(this.mask,"layer"+this.layer),this.layer=t,s.default.addClass(this.mask,"layer"+t),this},r.prototype.destroy=function(){void 0!==this.contentObject1.vm&&(this.contentObject1.vm.$destroy(),this.contentObject1.vm=null,delete this.contentObject1.vm),void 0!==this.contentObject2.vm&&(this.contentObject2.vm.$destroy(),this.contentObject2.vm=null,delete this.contentObject2.vm),s.default.del(this.mask),delete this.mask,delete this.firstPage,delete this.reflexContainer,delete this.innerReflex,delete this.secondPage,delete this.flipGradientT,delete this.flipGradientB,delete this.frontPage,delete this.reversePage,delete this.flipGradient},e.default=r},function(t,e,i){"use strict";function n(t,e){return(void 0===t?"undefined":d(t))===e}function r(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,i){return e+i.toUpperCase()}).replace(/^-/,"")}function o(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function s(t,e,i,n){var r,o,s="modernizr",a=void 0,l=void 0,u=_("div"),c=function(){var t=document.body;return t||((t=_("body")).fake=!0),t}();if(parseInt(i,10))for(;i--;)(a=_("div")).id=n?n[i]:s+(i+1),u.appendChild(a);return r=["­",'"].join(""),u.id=s,(c.fake?c:u).innerHTML+=r,c.appendChild(u),c.fake&&(c.style.background="",c.style.overflow="hidden",l=v.style.overflow,v.style.overflow="hidden",v.appendChild(c)),o=e(u,t),c.fake?(c.parentNode.removeChild(c),v.style.overflow=l,v.offsetHeight):u.parentNode.removeChild(u),!!o}function a(t,e){return!!~(""+t).indexOf(e)}function l(t,e){var i=t.length;if("CSS"in window&&"supports"in window.CSS){for(;i--;)if(window.CSS.supports(o(t[i]),e))return!0;return!1}if("CSSSupportsRule"in window){for(var n=[];i--;)n.push("("+o(t[i])+":"+e+")");return s("@supports ("+(n=n.join(" or "))+") { #modernizr { position: absolute; } }",function(t){return"absolute"==getComputedStyle(t,null).position})}}function u(t,e){return function(){return t.apply(e,arguments)}}function c(t,e,i,o){function s(){h&&(delete P.style,delete P.modElem)}if(o=!n(o,"undefined")&&o,!n(i,"undefined")){var u=l(t,i);if(!n(u,"undefined"))return u}var c,h=void 0,d=void 0,f=void 0,g=void 0;for(P.style||(h=!0,P.modElem=_("modernizr"),P.style=P.modElem.style),c=t.length,d=0;d'}})},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-touch",t._g({staticClass:"content-element image",class:t.containerClasses,style:t.containerStyle},t.isEmbed?null:{tap:t.onImageClick,panstart:t.preventDefault}),[i("div",{staticClass:"play-button",style:t.playButtonStyle},[i("svgicon",{attrs:{name:"image",color:"#272F37 white"}})],1),t._v(" "),t.thumbnailUrl?i("div",{staticClass:"thumbnail",style:t.thumbnailStyle}):t._e(),t._v(" "),t.isModalShown?i("modal-window",{ref:"modalWindow",attrs:{width:t.modalRect.width,height:t.modalRect.height,bgColor:"#fff",preloader:!0,delay:500}},[i("img",{style:t.modalImageStyle,attrs:{crossOrigin:t.crossOrigin,src:t.imageSrc}}),t._v(" "),i("v-touch",{ref:"touchPreventer",staticClass:"touch-preventer-full",on:{tap:function(t){t.preventDefault()},doubletap:function(t){t.preventDefault()},pinch:function(t){t.preventDefault()}}})],1):t._e()],1)},r=[]},function(t,e,i){},,function(t,e,i){"use strict";i(98).register({gallery:{width:51,height:51,viewBox:"0 0 51 51",data:''}})},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"gallery",style:t.containerStyle},[i("div",{staticClass:"play-button",style:t.playButtonStyle},[i("svgicon",{attrs:{name:"gallery",color:"#272F37 white"}})],1),t._v(" "),t.thumbnailUrl?i("div",{staticClass:"thumbnail",style:t.thumbnailStyle}):t._e()])},r=[]},function(t,e,i){},,function(t,e,i){"use strict";i(98).register({gif:{width:51,height:51,viewBox:"0 0 51 51",data:''}})},function(t,e,i){"use strict";i(98).register({replay:{width:16,height:16,viewBox:"0 0 70 70",data:''}})},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-touch",{staticClass:"content-element gif",class:t.containerClasses,style:t.containerStyle,on:{tap:t.onGifClick}},[i("div",{staticClass:"play-button",style:t.playButtonStyle},[i("svgicon",{attrs:{name:"gif",color:"#272F37 white"}})],1),t._v(" "),t.thumbnailUrl?i("div",{staticClass:"thumbnail",style:t.thumbnailStyle}):t._e(),t._v(" "),t.isPlaying||t.isEnded?i("div",{staticClass:"image"},[i("img",{style:t.imageStyle,attrs:{crossOrigin:t.crossOrigin,src:t.imageSrc}})]):t._e(),t._v(" "),i("div",{staticClass:"preloader"},[i("spinner",{attrs:{size:18,"line-fg-color":"#5692AE","line-bg-color":"#ffffff"}})],1),t._v(" "),!1===t.data.loop?i("div",{staticClass:"replay"},[i("svgicon",{attrs:{name:"replay",color:"white"}})],1):t._e()])},r=[]},function(t,e,i){},,function(t,e,i){"use strict";i.r(e);var n=i(137),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(356),a=i(99),l=Object(a.a)(r.a,s.a,s.b,!1,null,null,null);e.default=l.exports},,,,,,,,,,,,,function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{ref:"playerMount",staticClass:"youtube-player player",attrs:{id:t.elementId}})])},r=[]},function(t,e,i){"use strict";i.r(e);var n=i(138),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(99),a=function(t){i(358)},l=Object(s.a)(r.a,void 0,void 0,!1,a,null,null);e.default=l.exports},function(t,e,i){},,,function(t,e,i){"use strict";i.r(e);var n=i(139),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(363),a=i(99),l=Object(a.a)(r.a,s.a,s.b,!1,null,null,null);e.default=l.exports},function(t,e,i){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(e,i){i=i||function(){};var n=t.document.getElementsByTagName("head")[0],r=t.document.createElement("script");r.type="text/javascript",r.src=e,n.appendChild(r),r.readyState?r.onreadystatechange=function(){"loaded"!==r.readyState&&"complete"!==r.readyState||(r.onreadystatechange=null,i())}:r.onload=function(){i()}}}).call(this,i(21))},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:"wistia-player player wistia_embed wistia_async_"+t.id,attrs:{id:t.elementId}})},r=[]},function(t,e,i){"use strict";i(98).register({video:{width:50,height:50,viewBox:"0 0 50 50",data:''}})},function(t,e,i){"use strict";i(98).register({error:{width:16,height:16,viewBox:"0 0 128 128",data:''}})},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",t._g({staticClass:"content-element video",class:t.containerClasses,style:t.containerStyle},t.isEmbed?null:{tap:t.onVideoClick}),[i("v-touch",t._g({directives:[{name:"show",rawName:"v-show",value:!t.isPlayerShown&&!t.hasError,expression:"!isPlayerShown && !hasError"}],staticClass:"play-button",style:t.playButtonStyle},t.isEmbed?null:{tap:t.onVideoClick}),[i("svgicon",{attrs:{name:"video",color:"#272F37 white"}})],1),t._v(" "),t.hasError?i("div",{staticClass:"play-button",style:t.playButtonStyle},[i("svgicon",{attrs:{name:"error",color:"white"}})],1):t._e(),t._v(" "),i("v-touch",t._g({directives:[{name:"show",rawName:"v-show",value:t.isThumbnailShown,expression:"isThumbnailShown"}],staticClass:"thumbnail",style:t.thumbnailStyle},t.isEmbed?null:{tap:t.onVideoClick})),t._v(" "),t.isInline&&t.isPlayerShown?i(t.data.provider,{ref:"player",tag:"component",attrs:{id:t.data.id,width:t.containerRect.width,height:t.containerRect.height,autoplay:t.data.autoplay&&!t.isMobile,start:t.data.startFrom,isCurrentPage:t.isCurrentPage,isIos:t.isIos}}):t._e(),t._v(" "),!t.isInline&&t.isModalShown?i("modal-window",{ref:"modalWindow",attrs:{width:t.modalRect.width,height:t.modalRect.height,bgColor:"#000",delay:500}},[t.isIos?i("v-touch",{ref:"touchPreventer",staticClass:"touch-preventer",on:{tap:t.playPause,doubletap:function(t){t.preventDefault()},pinch:function(t){t.preventDefault()}}}):t._e(),t._v(" "),i(t.data.provider,{ref:"player",tag:"component",style:t.modalVideoStyle,attrs:{id:t.data.id,width:t.modalRect.width,height:t.modalRect.height,autoplay:!0,start:t.data.startFrom,isCurrentPage:!0,isIos:t.isIos}})],1):t._e()],1)},r=[]},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flip-book"},[i("v-touch",t._g({staticClass:"book-holder",style:[t.bookHolderStyle],attrs:{tag:"div",id:"book-holder"},nativeOn:{transitionend:function(e){return t.transitionEnd(e)}}},t.isEmbed?null:{doubletap:t.zoomByTap,pinchstart:t.zoomByPinchStart,pinchmove:t.zoomByPinchMove,pinchend:t.zoomByPinchFinish,pinchcancel:t.zoomByPinchFinish}))],1)},r=[]},function(t,e,i){"use strict";i.r(e);var n=i(140),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(399),a=i(99),l=function(t){i(369)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);e.default=u.exports},function(t,e,i){},,function(t,e,i){"use strict";i.r(e);var n=i(141),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(99),a=function(t){i(372)},l=Object(s.a)(r.a,void 0,void 0,!1,a,null,null);e.default=l.exports},function(t,e,i){},,function(t,e,i){},,function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.className},[i("div",{class:t.containerClassName,on:{click:t.onClick}},[i("div",{class:t.arrowClassName,on:{click:t.onArrowClick}},[i("svgicon",{attrs:{name:t.arrowIconName}})],1)])])},r=[]},function(t,e,i){"use strict";i(98).register({"book-prev":{width:1700,height:1700,viewBox:"0 0 1700 1700",data:''}})},function(t,e,i){"use strict";i.r(e);var n=i(143),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(99),a=function(t){i(379)},l=Object(s.a)(r.a,void 0,void 0,!1,a,null,null);e.default=l.exports},function(t,e,i){},,function(t,e,i){"use strict";i(98).register({"book-next":{width:1700,height:1700,viewBox:"0 0 1700 1700",data:''}})},function(t,e,i){"use strict";i.r(e);var n=i(144),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(99),a=Object(s.a)(r.a,void 0,void 0,!1,null,null,null);e.default=a.exports},function(t,e,i){"use strict";i.r(e);var n=i(145),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(398),a=i(99),l=function(t){i(384)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);e.default=u.exports},function(t,e,i){},,function(t,e,i){"use strict";i.r(e);var n=i(146),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(394),a=i(99),l=function(t){i(387)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);e.default=u.exports},function(t,e,i){},,,,,,,function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.className},[t._t("default"),t._v(" "),i("div",{ref:"handle-topLeft",staticClass:"resize-square resize-square-top-left"}),t._v(" "),i("div",{ref:"handle-top",staticClass:"resize-square resize-square-top"}),t._v(" "),i("div",{ref:"handle-topRight",staticClass:"resize-square resize-square-top-right"}),t._v(" "),i("div",{ref:"handle-right",staticClass:"resize-square resize-square-right"}),t._v(" "),i("div",{ref:"handle-bottomRight",staticClass:"resize-square resize-square-bottom-right"}),t._v(" "),i("div",{ref:"handle-bottom",staticClass:"resize-square resize-square-bottom"}),t._v(" "),i("div",{ref:"handle-bottomLeft",staticClass:"resize-square resize-square-bottom-left"}),t._v(" "),i("div",{ref:"handle-left",staticClass:"resize-square resize-square-left"})],2)},r=[]},function(t,e,i){"use strict";i.r(e);var n=i(147),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(99),a=function(t){i(396)},l=Object(s.a)(r.a,void 0,void 0,!1,a,null,null);e.default=l.exports},function(t,e,i){},,function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("vdrn",{style:t.vdrStyle,attrs:{active:t.selected,draggable:!0,resizable:!0,w:t.containerRect.width,h:t.containerRect.height,x:t.containerRect.left,y:t.containerRect.top,minw:t.minDimensions.width,minh:t.minDimensions.height,parent:!0,preserveAspectRatio:t.data.lockAspectRatio,tabindex:"0"},on:{onDragStart:t.onDragStart,onDragStop:t.onDragStop,onResizeStart:t.onResizeStart,onResizeStop:t.onResizeStop,onMouseDown:t.onMouseDown,onMouseUp:t.onMouseUp}},[i("div",{class:t.classes,style:t.containerStyle,on:{onClick:t.onContentClick}},[i("video-placeholder",{attrs:{data:t.data}})],1)])},r=[]},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flat-book",style:t.bookStyle},[t.showLeftButton?i("left-nav-button",{attrs:{onClick:t.onLeftNavButtonClick,onArrowClick:t.onLeftNavButtonArrowClick,backgroundInteractive:t.navBgInteractive}}):t._e(),t._v(" "),t._l(t.currentPages,function(e){return i("page",{key:e.id,attrs:{id:e.id,side:e.side,contentCreator:t.contentCreator,bordered:"",deferPageLoad:!1}})}),t._v(" "),t.showRightButton?i("right-nav-button",{attrs:{onClick:t.onRightNavButtonClick,onArrowClick:t.onRightNavButtonArrowClick,backgroundInteractive:t.navBgInteractive}}):t._e()],2)},r=[]},function(t,e,i){"use strict";i.r(e);var n=i(148),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(403),a=i(99),l=function(t){i(401)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);e.default=u.exports},function(t,e,i){},,function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"slide-book"},[i("v-touch",t._g({ref:"holder",staticClass:"slide-holder",attrs:{tag:"div",id:"slide-holder"}},t.isEmbed?null:{doubletap:t.onTap,pinchstart:t.onPinchStart,pinchmove:t.onPinchMove,pinchend:t.onPinchFinish,pinchcancel:t.onPinchFinish,panmove:t.onPanMove,panend:t.onPanEnd,pancancel:t.onPanEnd}),t._l(t.slidesCache,function(e,n){return i("div",{key:e[0].id+"_"+e[0].side,ref:"current"===n?"wrapper":null,refInFor:!0,class:"slide-wrapper "+n,style:t.slideStyles[n],attrs:{"data-id":e[0].id+"_"+e[0].side+(e[1]?"-"+e[1].id+"_"+e[0].side:"")}},[i("div",{staticClass:"spread-wrapper",style:t.spreadStyles[n],on:{transitionend:t.onTransitionEnd}},t._l(e,function(e){return i("page",{key:e.id+"_"+e.side,ref:"current"===n?"current":null,refInFor:!0,class:"slide-page "+e.position,attrs:{id:e.id,side:e.side,size:t.pageSizes[n],autoHighlight:!1,contentCreator:t.contentCreator,"data-id":e.id+"_"+e.side}})}))])}))],1)},r=[]},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"book-container"},[i(t.bookComponent,{tag:"component",attrs:{"container-size":t.containerSize,"page-size":t.bookSize}})],1)},r=[]},function(t,e,i){"use strict";i.r(e);var n=i(149),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(415),a=i(99),l=function(t){i(406)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);e.default=u.exports},function(t,e,i){},,function(t,e,i){},,function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:"tool-window"},[t._t("preloader"),t._v(" "),i("header",{staticClass:"tool-title-frame"},[i("h3",{class:"tool-title icon "+t.icon},[t._v(t._s(t.title))]),t._v(" "),i("v-touch",{staticClass:"close-button svg-menu-button",attrs:{tag:"span"},on:{tap:t.close}},[i("svgicon",{attrs:{name:"arrow-down",scale:"2"}})],1)],1),t._v(" "),t._t("subheader"),t._v(" "),i("div",{ref:"scroller",staticClass:"scroller",attrs:{id:"scroller"}},[i("div",{staticClass:"cont"},[t._t("default")],2)]),t._v(" "),i("footer",[t.footerTitle?i("h3",{staticClass:"tool-footer-title"},[t._v(t._s(t.footerTitle))]):t._e(),t._v(" "),t._t("footer")],2)],2)},r=[]},function(t,e,i){"use strict";i.r(e);var n=i(152),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(414),a=i(99),l=function(t){i(412)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);e.default=u.exports},function(t,e,i){},,function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.wrapperClasses,style:t.thStyles,attrs:{"data-id":t.data.id}},[i("v-touch",{staticClass:"th-img-element",style:t.thStyles},[t.data.showPage?i("page",{attrs:{id:t.data.id,side:t.data.side,size:t.data.size,isThumb:!0}}):t._e()],1),t._v(" "),i("span",{staticClass:"th-item-title",attrs:{dir:t.textDirection}},[t._v(t._s(t.data.caption))])],1)},r=[]},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("sidebar",{class:t.sidebarClass,attrs:{title:t.title,icon:t.icon}},[t.isPreloader?i("div",{staticClass:"th-preloader",staticStyle:{position:"absolute",top:"0",width:"100%",height:"100%"},attrs:{slot:"preloader"},slot:"preloader"},[i("div",{staticClass:"preloader-container"},[i("spinner",{attrs:{size:36,"line-size":3,"line-fg-color":"#5692AE","line-bg-color":"#ffffff"}})],1)]):t._e(),t._v(" "),t.singleMode?i("v-touch",{class:"th-wrapper "+(t.isRtl?" rtl":""),on:{tap:t.onClick}},t._l(t.thumbsArray,function(t){return i("th-item",{key:t.index,attrs:{data:t}})})):i("v-touch",{class:"th-wrapper "+(t.isRtl?" rtl":""),on:{tap:t.onClick}},t._l(t.thumbsArray,function(e,n){return i("div",{class:"th-spread-wrapper "+(e.isActive?" active":""),style:"margin: "+(1!==e.length||e.isWide?"":"20px "+(t.thumbSizes.width/2+10)+"px")},t._l(e,function(t){return i("th-item",{key:t.index,attrs:{data:t}})}))}))],1)},r=[]},function(t,e,i){"use strict";i.r(e);var n=i(153),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(421),a=i(99),l=function(t){i(417)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);e.default=u.exports},function(t,e,i){},,function(t,e,i){"use strict";i(98).register({"mobile-left":{width:942,height:1696,viewBox:"0 0 942 1696",data:''}})},function(t,e,i){"use strict";i(98).register({"mobile-right":{width:942,height:1696,viewBox:"0 0 942 1696",data:''}})},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.isFirstPage?t._e():i("v-touch",t._g({staticClass:"mobile-left-arrow",attrs:{tag:"div"}},t.isEmbed?{tap:t.prev}:{tap:t.prev,swipeleft:function(e){return t.next(e,!0)},swiperight:function(e){return t.prev(e,!0)}}),[i("transition",{attrs:{name:"bars-fade"}},[t.show?i("svgicon",{attrs:{name:"mobile-left",height:"100%"}}):t._e()],1)],1),t._v(" "),t.isLastPage?t._e():i("v-touch",t._g({staticClass:"mobile-right-arrow",attrs:{tag:"div"}},t.isEmbed?{tap:t.next}:{tap:t.next,swipeleft:function(e){return t.next(e,!0)},swiperight:function(e){return t.prev(e,!0)}}),[i("transition",{attrs:{name:"bars-fade"}},[t.show?i("svgicon",{attrs:{name:"mobile-right",height:"100%"}}):t._e()],1)],1)],1)},r=[]},function(t,e,i){"use strict";i.r(e);var n=i(154),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(437),a=i(99),l=function(t){i(423)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);e.default=u.exports},function(t,e,i){},,function(t,e,i){"use strict";i.r(e);var n=i(155),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(428),a=i(99),l=function(t){i(426)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);e.default=u.exports},function(t,e,i){},,function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("li",{staticClass:"toc-item"},[i("p",{staticClass:"list-item toc-item-p",class:{haschildren:t.itemData.children},style:"padding-left: "+t.paddingLeft+"px;"},[t.openChildIcon||!t.pageLabel?i("v-touch",{class:"icon"+t.openChildIcon,attrs:{tag:"span"},on:{tap:t.toggleOpen}}):t._e(),t._v(" "),i("v-touch",{staticClass:"toc-item-title",attrs:{tag:"span",dir:t.textDirection},on:{tap:function(e){t.goToPage(t.itemData.page)}}},[t._v(t._s(t.itemData.title))]),t._v(" "),t.pageLabel?i("v-touch",{staticClass:"page-label",attrs:{tag:"span"},on:{tap:function(e){t.goToPage(t.itemData.page)}}},[t._v(t._s(t.$t("BookmarksToolWindow.PAGE",[t.pageLabel])))]):t._e()],1),t._v(" "),t.itemData.children&&t.itemData.toggle?i("ul",{staticClass:"toc-sub-item-ul"},t._l(t.itemData.children,function(e,n){return i("toc-item",{key:n,attrs:{"item-data":e,depth:1*t.depth+1}})})):t._e()])},r=[]},function(t,e,i){"use strict";i.r(e);var n=i(156),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(436),a=i(99),l=function(t){i(430)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);e.default=u.exports},function(t,e,i){},,function(t,e,i){"use strict";i(98).register({"download-full":{width:15,height:18,viewBox:"0 0 15 18",data:''}})},function(t,e,i){"use strict";i(98).register({"download-left":{width:14,height:16,viewBox:"0 0 14 16",data:''}})},function(t,e,i){"use strict";i(98).register({"download-right":{width:14,height:16,viewBox:"0 0 14 16",data:''}})},function(t,e,i){"use strict";i(98).register({"download-attach":{width:16,height:16,viewBox:"0 0 16 16",data:''}})},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.mobileLayout?i("div",{staticClass:"downloads",style:t.drawerStyle},[i("v-touch",{staticClass:"download-header",attrs:{tag:"div"},on:{tap:t.toggleShowCustom}},[i("span",[t._v(t._s(t.$t("SaveWindow.TITLE")))]),t._v(" "),t.customFiles||t.pageFiles||t.fullPdf?i("span",{class:"arrow "+(t.showCustom?"open":"closed")},[i("svgicon",{attrs:{name:"arrow-down",scale:"2"}})],1):t._e()]),t._v(" "),i("div",{staticClass:"download-items",attrs:{id:"download-items"}},[i("div",{ref:"scroller",attrs:{id:"download-scroller"}},[i("div",{staticClass:"cont"},[i("ul",[t.fullPdf?i("v-touch",{staticClass:"download-item full",attrs:{tag:"li",title:t.$t("SaveWindow.FULL_PUBLICATION_DESCRIPTION")},on:{tap:function(e){t.download("full")}}},[i("a",{ref:"linkFull",attrs:{target:"_blank",title:t.$t("SaveWindow.FULL_PUBLICATION")}},[i("span",{staticClass:"download-icon"},[i("svgicon",{attrs:{name:"download-full"}})],1),t._v(" "),i("div",{staticClass:"download-title"},[t._v(t._s(t.pagesTitle.full))]),t._v(" "),i("span",{staticClass:"download-size"},[t._v(t._s(t.fullPdf.size))])])]):t._e(),t._v(" "),t._l(t.pageFiles,function(e,n){return i("v-touch",{key:"p"+n,staticClass:"download-item custom",attrs:{tag:"li"},on:{tap:function(e){t.download("page",n)}}},[i("a",{ref:"linkPage",refInFor:!0,attrs:{target:"_blank",title:e.title}},[i("span",{staticClass:"download-icon"},["right"===e.side?i("svgicon",{attrs:{name:"download-right"}}):i("svgicon",{attrs:{name:"download-left"}})],1),t._v(" "),i("div",{staticClass:"download-title"},[t._v(t._s(t.pageFiles.length>1?t.pagesTitle[e.side]:t.pagesTitle.one))]),t._v(" "),i("span",{staticClass:"download-size"},[t._v(t._s(e.size))])])])}),t._v(" "),t._l(t.customFiles,function(e,n){return i("v-touch",{key:"c"+n,staticClass:"download-item custom",attrs:{tag:"li"},on:{tap:function(e){t.download("custom",n)}}},[i("a",{ref:"linkCustom",refInFor:!0,attrs:{target:"_blank",title:e.title}},[i("span",{staticClass:"download-icon"},[i("svgicon",{attrs:{name:"download-attach"}})],1),t._v(" "),i("div",{staticClass:"download-title"},[t._v(t._s(e.title))]),t._v(" "),i("span",{staticClass:"download-size"},[t._v(t._s(e.size))])])])})],2)])])])],1):i("div",[t._v("downloads desktop")])},r=[]},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("sidebar",{class:t.sidebarClass,attrs:{title:t.title,icon:t.icon}},[i("ul",{staticClass:"toc-items",class:{"additional-padding":t.level2Items}},t._l(t.tocItems,function(e,n){return i("toc-item",{key:n,attrs:{"item-data":e,depth:"0"},on:{updateHeight:t.updateHeight}})})),t._v(" "),t.showDownloads?i("downloads-window",{attrs:{slot:"footer"},slot:"footer"}):t._e()],1)},r=[]},function(t,e,i){"use strict";i.r(e);var n=i(157),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(446),a=i(99),l=function(t){i(439)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);e.default=u.exports},function(t,e,i){},,function(t,e,i){"use strict";i.r(e);var n=i(158),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(444),a=i(99),l=function(t){i(442)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);e.default=u.exports},function(t,e,i){},,function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("li",{class:"search-item p"+t.itemData.pageId},[i("v-touch",{staticClass:"list-item search-item-p",attrs:{tag:"p"},on:{tap:function(e){t.onClick()}}},[i("span",{staticClass:"search-item-title"},[t._v(t._s(t.title))]),t._v(" "),i("span",{staticClass:"search-item-result"},[t._v("\n "+t._s(t.itemData.text.pre)),i("b",[t._v(t._s(t.itemData.text.main))]),t._v(t._s(t.itemData.text.post)+"\n ")])])],1)},r=[]},function(t,e,i){"use strict";i(98).register({"rounded-close":{width:16,height:16,viewBox:"0 0 2267.7 2267.7",data:''}})},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("sidebar",{class:t.sidebarClass,attrs:{title:t.title,icon:t.icon}},[i("div",{staticClass:"tool-header",attrs:{slot:"subheader",id:"tool-header"},slot:"subheader"},[i("div",{staticClass:"search-input-block"},[i("label",[i("span",{staticClass:"search-icon"},[i("svgicon",{attrs:{name:"search",scale:"1"}})],1),t._v(" "),t.showClear?i("v-touch",{staticClass:"clear-icon",attrs:{tag:"span"},on:{tap:t.clear}},[i("svgicon",{attrs:{name:"rounded-close",scale:"1"}})],1):t._e(),t._v(" "),i("v-touch",{on:{tap:t.focusInput}},[i("input",{ref:"searchInput",attrs:{placeholder:t.placeholder},on:{input:function(e){t.input(e.target.value)},keyup:function(e){t.keyUp(e)}}})])],1),t._v(" "),i("div",{staticStyle:{clear:"both"}})]),t._v(" "),i("div",{staticClass:"search-sub-header subheader"},[t.subtitle?i("span",{staticClass:"search-results-count"},[t._v("\n "+t._s(t.subtitle)+"\n ")]):t._e(),t._v(" "),t.preloaderVisible?i("div",{staticClass:"search-live-preloader"},[i("div",{staticClass:"dot"})]):t._e()])]),t._v(" "),i("ul",{staticClass:"search-ul"},t._l(t.results,function(t){return i("search-result-item",{key:t.pageId,attrs:{"item-data":t,depth:"0"}})}))])},r=[]},function(t,e,i){"use strict";i.r(e);var n=i(159),r=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,function(){return n[t]})}(o);var s=i(451),a=i(99),l=function(t){i(448)},u=Object(a.a)(r.a,s.a,s.b,!1,l,null,null);e.default=u.exports},function(t,e,i){},,function(t,e,i){"use strict";i(98).register({cancel:{width:16,height:16,viewBox:"0 0 100 100",data:''}})},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"banner-notice"},[i("span",{staticClass:"notice-text",domProps:{innerHTML:t._s(t.noticeText)}}),t._v(" "),i("v-touch",{staticClass:"close-icon",attrs:{tag:"span"},on:{tap:t.close}},[i("svgicon",{attrs:{name:"cancel",scale:"1.5"}})],1)],1)},r=[]},function(t,e,i){"use strict";i(98).register({hamburger:{width:18,height:18,viewBox:"0 0 18 18",data:''}})},function(t,e,i){"use strict";i(98).register({thumbnails:{width:18,height:18,viewBox:"0 0 18 18",data:''}})},function(t,e,i){"use strict";i(98).register({fullscreen:{width:16,height:16,viewBox:"0 0 2267.7 2267.7",data:''}})},function(t,e,i){"use strict";i(98).register({"made-with":{width:119,height:30,viewBox:"0 0 119 30",data:''}})},function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return r});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-touch",{directives:[{name:"show",rawName:"v-show",value:t.visible,expression:"visible"}],class:t.containerClasses,style:t.containerStyle,on:{tap:function(t){t.preventDefault()}}},[i("div",{staticClass:"inner-container"},[i("div",{class:t.mainClasses},[i("transition",{attrs:{name:"bars-fade"}},[t.showBars?i("div",{staticClass:"top-bar-mobile"},[t.showMenuIcon?i("v-touch",{staticClass:"menu-button svg-menu-button",attrs:{tag:"span"},on:{tap:function(e){t.openSidebar("toc",e)}}},[i("svgicon",{attrs:{name:"hamburger",scale:"1"}})],1):i("span",{staticClass:"empty-menu-button svg-menu-button"}),t._v(" "),i("v-touch",{staticClass:"title",attrs:{tag:"span"},on:{tap:t.titleTap}},[t._v(t._s(t.title))]),t._v(" "),t.showSearchIcon?i("v-touch",{staticClass:"search-button svg-menu-button",attrs:{tag:"span"},on:{tap:function(e){t.openSidebar("search",e)}}},[i("svgicon",{attrs:{name:"search",scale:"1"}})],1):i("span",{staticClass:"empty-search-button svg-menu-button"})],1):t._e()]),t._v(" "),t.hasPages?i("v-touch",{on:{tap:t.containerTap}},[i("book-container",{attrs:{portrait:t.portrait,size:t.bookContainerSize}})],1):t._e(),t._v(" "),i("transition",{attrs:{name:"bars-fade"}},[t.showBars?i("div",{staticClass:"bottom-bar-mobile"},[t.showThumbsIcon?i("v-touch",{staticClass:"thumbnails-button svg-menu-button",attrs:{tag:"span"},on:{tap:function(e){t.openSidebar("thumbnails",e)}}},[i("svgicon",{attrs:{name:"thumbnails",scale:"1"}})],1):i("span",{staticClass:"empty-button svg-menu-button"}),t._v(" "),i("div",{staticClass:"pager-mobile"},[i("span",[t._v(t._s(t.stateForDisplay))]),t._v(" "),t.totalPagesVisible?i("span",[t._v("/")]):t._e(),t._v(" "),t.totalPagesVisible?i("span",[t._v(t._s(t.totalPages))]):t._e()]),t._v(" "),t.showLogo?i("v-touch",{staticClass:"logo-touch",on:{tap:function(e){t.goLogoLink()}}},[i("div",{staticClass:"logo-container"},[t.customLogoUrl?i("img",{staticClass:"logo-custom",attrs:{src:t.customLogoUrl}}):t.hasDefaultLogo?i("svgicon",{staticClass:"logo-svg",attrs:{name:"made-with"}}):t._e()],1)]):t._e()],1):t._e()]),t._v(" "),i("mobile-nav",{attrs:{show:!0}})],1),t._v(" "),t.isResizing?i("div",{ref:"rotate-indicator",staticClass:"rotate-indicator"},[i("spinner",{attrs:{size:48,"line-size":4,"line-fg-color":"#5692AE","line-bg-color":"#ffffff"}})],1):t._e(),t._v(" "),t.isEmbed?i("v-touch",{class:t.clickToReadClass,attrs:{tag:"span"},on:{tap:t.openInNewWindow}},[t._v(t._s(t.clickToReadText))]):t._e(),t._v(" "),i("transition",["toc"===t.activeComponent?i("toc-window"):t._e(),t._v(" "),"thumbnails"===t.activeComponent?i("th-window"):t._e(),t._v(" "),"search"===t.activeComponent?i("search-window"):t._e()],1)],1),t._v(" "),t.noticeShown?i("banner-notice",{ref:"noticeBanner",on:{close:t.noticeClose}}):t._e()],1)},r=[]},function(t,e,i){"use strict";function n(){var t={},e=t.ui={};e.toolWindow=m.state.sidebar.opened,e.popup=m.state.popup.opened,e.isFullscreen=m.state.workspace.fullScreenMode,e.searchQuery=m.state.search.query;var i=m.getters["pager/state"];t.isZoomed=i.zoomMode,t.isSingle=i.singleMode;var n=t.isSingle?i.rightPage:i.leftPage||i.rightPage;return t.rightPageId=i.rightPage,t.leftPageId=t.isSingle?null:i.leftPage,i.leftPage&&(t.leftPageUrl=m.getters["pages/urlHeaderById"](i.leftPage)),i.rightPage?t.rightPageUrl=m.getters["pages/urlHeaderById"](i.rightPage):t.rightPageUrl=t.leftPageUrl,i.leftPage||(t.leftPageUrl=t.rightPageUrl),t.version=v,t.isStarted=m.state.workspace.isInited,t.pageIndex=m.getters["pages/pageIndexById"](n),t.isWide=n?m.getters["pages/pageProp"](n,"wide"):void 0,t.locale=m.state.i18n.currentLocale,t}Object.defineProperty(e,"__esModule",{value:!0}),e.subscribeEvents=e.ApiPlugin=void 0;var r=Object.assign||function(t){for(var e=1;e0,quantity:i.length})},2500),S={get skin(){var e=JSON.parse(JSON.stringify(t.state.skin.styles));return e.set=function(e,i){t.dispatch("skin/setParam",{param:e,value:i})},e.getJSON=function(){return JSON.stringify(e)},e},get pages(){var e={block:"blocks",link:"links",image:"images",gif:"gifs",gallery:"galleries",video:"videos"},i=JSON.parse(JSON.stringify(t.state.book)),n=t.state.content.outsideStorage;for(var o in i.search={color:t.state.search.color},i.pages=JSON.parse(JSON.stringify(t.state.pages)),delete i.pages.size,i.pages)if(i.pages.hasOwnProperty(o)&&"defaults"!==o&&"structure"!==o){if(i.pages[o].content.length>0){var s={};for(var a in i.pages[o].content)if(i.pages[o].content.hasOwnProperty(a)){var l=i.pages[o].content[a],u=void 0,c=(u=n?JSON.parse(JSON.stringify(t.contentData[l])):JSON.parse(JSON.stringify(t.state.content.items[l]))).type;delete u.type,delete u.pageId,delete u.itemId,s[e[c]]||(s[e[c]]=[]),s[e[c]].push(u)}i.pages[o]=r(i.pages[o],s)}delete i.pages[o].content,delete i.pages[o].substrateUrl,delete i.pages[o].textUrl,delete i.pages[o].thumbnailUrl,delete i.pages[o].status,delete i.pages[o].loadPending}return i.set=function(e,i){var n=e.split(".");switch(n[0]){case"links":"color"===n[1]&&t.commit("book/SET_LINKS_COLOR",i),"target"===n[1]&&t.commit("book/SET_LINKS_TARGET",i),"highlightOnFlip"===n[1]&&t.commit("book/SET_LINKS_FLIP_HIGHLIGHT",i);break;case"bookSize":"width"===n[1]&&t.commit("book/SET_BOOK_SIZE_WIDTH",i),"height"===n[1]&&t.commit("book/SET_BOOK_SIZE_HEIGHT",i),t.dispatch("sidebar/closeSidebar");break;case"numerationOffset":t.commit("book/SET_NUMERATION_OFFSET",i),t.dispatch("sidebar/closeSidebar");break;case"pages":3===n.length&&(t.commit("pages/SET_PAGE_PROPERTY",{pageID:n[1],property:n[2],value:i}),"shadowDepth"===n[2]&&t.dispatch("pager/setForceRerender",{forceRerender:!0}));break;default:console.error("We've forgotten about this property",e,i)}},i.getJSON=function(){return JSON.stringify(i)},i},get workspace(){var e=JSON.parse(JSON.stringify(t.state.workspace));return delete e.userAgentInfo,delete e.muteSound,delete e.textSelectionOn,delete e.freezed,delete e.fullScreenMode,delete e.isInited,delete e.isResizing,delete e.isEmbed,delete e.layout,delete e.bookComponent,delete e.modalOpened,delete e.preloader,delete e.size,delete e.visible,e.toc=JSON.parse(JSON.stringify(t.state.toc)),(0,s.removeParamFromJSON)(e.toc,"toggle"),delete e.toc.scrollY,e.downloads=JSON.parse(JSON.stringify(t.state.downloads)),e.print=JSON.parse(JSON.stringify(t.state.print)),e.logoLink=JSON.parse(JSON.stringify(t.state.logo)),e.search={enabled:t.state.search.enabled,path:t.state.search.path},e.set=function(e,i){var n=e.split(".");switch(n[0]){case"toc":"enabled"===n[1]&&(i?t.commit("toc/ENABLE"):(t.commit("toc/DISABLE"),t.dispatch("sidebar/closeSidebar"))),"children"===n[1]&&((0,s.addTreeParamByBranch)(i,"children","toggle",!1),t.commit("toc/SET_CHILDREN",{key:"pageFiles",value:i}));break;case"downloads":1===n.length?(0,o.isObject)(i)&&(void 0!==i.enabled&&(i.enabled?t.commit("downloads/ENABLE"):(t.commit("downloads/DISABLE"),t.dispatch("sidebar/closeSidebar"))),void 0!==i.allPagesVisible&&t.commit("downloads/CHANGE_PROPERTY",{key:"allPagesVisible",value:i.allPagesVisible}),void 0!==i.currentPagesVisible&&t.commit("downloads/CHANGE_PROPERTY",{key:"currentPagesVisible",value:i.currentPagesVisible}),void 0!==i.url&&t.commit("downloads/CHANGE_PROPERTY",{key:"url",value:i.url}),void 0!==i.size&&t.commit("downloads/CHANGE_PROPERTY",{key:"size",value:i.size}),void 0!==i.pageFiles&&t.commit("downloads/CHANGE_PROPERTY",{key:"pageFiles",value:i.pageFiles}),void 0!==i.customFiles&&t.commit("downloads/CHANGE_PROPERTY",{key:"customFiles",value:i.customFiles})):"enabled"===n[1]&&(i?t.commit("downloads/ENABLE"):(t.commit("downloads/DISABLE"),t.dispatch("sidebar/closeSidebar")));break;case"sound":case"print":break;case"search":1===n.length?(0,o.isObject)(i):(t.commit("search/CHANGE_PROPERTY",{key:n[1],value:i}),t.dispatch("sidebar/closeSidebar"));break;case"logoLink":2===n.length&&t.commit("logo/CHANGE_PROPERTY",{key:n[1],value:i});break;case"components":3===n.length?"paginator"===n[1]&&"totalPagesVisible"===n[2]&&t.commit("workspace/CHANGE_TOTAL_PAGE_VISIBLE",i):i?t.commit("workspace/ENABLE",n[1]):t.commit("workspace/DISABLE",n[1]);break;case"locales":t.dispatch("i18n/setCurrentLocale",{locale:i[0]});break;case"title":case"bookSize":case"cookieNotice":case"thumbType":t.commit("workspace/CHANGE_PROPERTY",{key:n[0],value:i});break;default:console.error("We've forgotten about this property",e,i)}},e.getJSON=function(){return JSON.stringify(e)},e}};if(e){var y="",_="";t.subscribe(function(i,r){var s=void 0;switch(i.type){case"workspace/INIT":(0,o.isObject)(e)&&(0,o.isFunction)(e.addMethod)&&(e.addMethod(a,function(){return n()}),e.addMethod(l,function(){t.dispatch("pager/freeze",{target:"api"}),t.dispatch("workspace/freeze",{target:"api"})}),e.addMethod(u,function(){t.dispatch("pager/unfreeze",{target:"api"}),t.dispatch("workspace/unfreeze",{target:"api"})}),e.addMethod(c,function(t){if(S[t])return S[t]}),e.addMethod(h,function(e){t.dispatch("pager/goToPageByIndex",{pageIndex:e,target:"api"})}),e.addMethod(d,function(e){e=""+e,t.dispatch("pager/goToPageById",{id:e,target:"api"})}),e.addMethod(f,function(e,i){t.dispatch("i18n/setLocaleString",{name:e,value:i})}),e.addMethod(g,function(){t.dispatch("workspace/setVisible",!1)}),e.addMethod(p,function(){t.dispatch("workspace/setVisible",!0)})),e.trigger("init",n());break;case"pager/CHANGE_PAGE":if(!r.workspace.isInited)return;s=n();var m=r.pager.lastTarget,v=r.workspace.size,w=v.width1?e-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{};n=t},clearBehavior:function(){n={}}}}])]);