/*! For license information please see 1.js.LICENSE.txt */
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],Array(21).concat([function(t,e,i){"use strict";i.r(e);var s=i(710),r=i(134),o=(i(711),i(1)),n=Object(o.default)(r.default,s.render,s.staticRenderFns,!1,null,null,null);n.options.__file="src/components/common/spinner/index.vue",e.default=n.exports},,,,,,function(t,e,i){"use strict";i.r(e);var s=i(120);e.default={methods:{movePagerLeft:function(t){var e=t.target;Object(s.movePagerLeft)(this.$store,{target:e})},movePagerRight:function(t){var e=t.target;Object(s.movePagerRight)(this.$store,{target:e})},movePagerLeftmost:function(t){var e=t.target,i=void 0===e?null:e,r=t.navTarget,o=void 0!==r&&r;Object(s.movePagerLeftmost)(this.$store,{target:i,navTarget:o})},movePagerRightmost:function(t){var e=t.target,i=void 0===e?null:e,r=t.navTarget,o=void 0!==r&&r;Object(s.movePagerRightmost)(this.$store,{target:i,navTarget:o})}}}},function(t,e,i){"use strict";i.r(e);var s=Object.freeze({TAB:9,RETURN:13,ALT:18,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,F1:112,SLASH:191,A:65,C:67,F:70,I:73,M:77,P:80,W:87});e.default=s},,,,,,function(t,e,i){"use strict";i.r(e);var s=i(3),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,s=0;s'}})},function(t,e,i){i(0).register({"book-first":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({"book-last":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({search:{width:24,height:24,viewBox:"0 0 24 24",data:''}})},,,function(t,e,i){i(0).register({"arrow-down":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(98);e.default=s.default},function(t,e,i){"use strict";i.r(e),e.default={name:"FlashMessage",mounted:function(){var t=this;null!==this.$store.getters["workspace/flashMessage"]&&setTimeout((function(){t.$store.dispatch("workspace/setFlashMessage",null)}),this.delay)},computed:{messageData:function(){return this.$store.getters["workspace/flashMessage"]},delay:function(){return this.messageData&&this.messageData.delay?this.messageData.delay:900}}}},function(t,e,i){},,,,,,,,,,,,function(t,e,i){i(0).register({accessibility:{width:36,height:36,viewBox:"0 0 24 24",data:''}})},,function(t,e,i){"use strict";i.r(e);var s=i(114);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(692),r=i(769),o=i(772),n=i(16),a=i(775),h=i(778),l=i(781),c=i(27),d=i(417);i(60);function u(){return(u=Object.assign||function(t){for(var e=1;e0}},methods:{fitBook:function(t,e){var i=u({},e),s=this.$store.state.book.bookSize,r=this.bookScaleSize,o=this.pagesCount,a=Object(n.fit)({width:2*s.width,height:s.height},i),h=Object(d.default)(o,o,a,.1*a.width),l=(r||100)/100,c=28,p=34,f=this.isSingleMode?2*p:2*c,g=10;"desktop"===this.layout?(this.hasThickness&&(i.width-=h),i.width-=f):"mobile"===this.layout&&(!this.isSingleMode&&this.hasThickness&&(i.width-=h),i.height-=g);var m=Object(n.fit)(t,i);this.isHardcover&&(m.width=m.width/(this.isSingleMode?1.065:1.03),m.height=m.height/(this.isSingleMode?1.065:1.03));var v=m.height/m.width;return m.width=Math.floor(m.width*l),m.width=m.width%2==0?m.width:m.width+1,m.height=Math.floor(v*m.width),{width:m.width,height:m.height}},resize:function(){var t=window.getComputedStyle(this.$el),e={left:1*t.getPropertyValue("margin-left").split("px")[0],right:1*t.getPropertyValue("margin-right").split("px")[0],top:1*t.getPropertyValue("margin-top").split("px")[0],bottom:1*t.getPropertyValue("margin-bottom").split("px")[0]};this.containerSize={width:this.size.width-e.left-e.right,height:this.size.height-e.top-e.bottom,top:this.size.top+e.top,left:this.size.left+e.left},this.$store.dispatch("workspace/setContainerSize",this.containerSize);var i=this.fitBook(this.originalBookSize,this.containerSize),s=Math.round(i.width/(this.isSingleMode?1:2)),r=Math.round(i.height);r=r%2==0?r:r+1,this.bookSize={width:s,height:r,zoomFactor:this.originalBookSize.zoomFactor}},goToRightPage:function(){var t=this;this.$store.state.pager.freezed||setTimeout((function(){t.movePagerRight({target:"free-space-tap"})}),0)},goToLeftPage:function(){var t=this;this.$store.state.pager.freezed||setTimeout((function(){t.movePagerLeft({target:"free-space-tap"})}),0)},arrowHover:function(t,e){this.$refs.bookComponent&&"function"==typeof this.$refs.bookComponent.arrowHover&&this.$refs.bookComponent.arrowHover(t,e)},setSubstrateStyleHeightTop:function(t,e){this.substrateStyle={height:t,top:e,display:"block"}},afterFade:function(){this.ctrFade="no-fade"}},beforeMount:function(){this.$store.dispatch("workspace/setBookComponent",this.bookComponent),this.$root.$on("forceBookResize",this.resize)},mounted:function(){this.resize(),this.hasPages||this.$root.onPublicationLoad({})},beforeDestroy:function(){this.$root.$off("forceBookResize",this.resize)},watch:{size:"resize",bookScaleSize:function(){this.resize()},originalBookSize:function(){this.resize()},hasThickness:function(){this.resize()},bookComponent:function(t){this.$store.dispatch("pager/setForceRerender",{forceRerender:!1}),this.$store.dispatch("workspace/setBookComponent",t)},pagerState:function(t,e){var i=this;!this.miniState||this.miniFullScreen||t.isEqualState(e)||(this.ctrFade="ctr-fade",this.$nextTick((function(){i.miniFullScreen=!0})))}}}},function(t,e,i){"use strict";i.r(e);var s=i(116);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(117),r=i(713),o=i(418),n=i(420),a=i(422),h=i(426),l=i(428),c=i(430),d=i(434),u=i(436),p=i(437),f=i(27),g=i(438),m=i(8),v=i(15),b=i(3),S=(i(176),i(766),i(767),i(61),i(62),i(36)),w=i.n(S),y={"content-block":o.default,"content-link":n.default,"content-image":a.default,"content-gallery":h.default,"content-gif":l.default,"content-video":c.default};e.default={name:"FlipBook",mixins:[u.default,p.default,f.default],props:{containerSize:{type:Object,required:!0},pageSize:{type:Object,required:!0},substrateStyles:{type:Function,default:function(){}}},components:{page:s.default,selectTextPanel:d.default},data:function(){return{status:"ready",zoomFactor:1,scaleFactor:1,scaleOrigin:{x:0,y:0},holderScrollTop:0,holderScrollLeft:0,holderScrollY:0,holderScrollX:0,zoomTimeout:0,addNoteTimeout:0,hideLeftArrow:!1,hideRightArrow:!1,visiblePages:"right",animation:!1,lastWheelTime:0,dragActive:!0,stripesWidth:0,dragging:!1,lastZoomFactor:null,overriddenPagerState:null}},beforeMount:function(){this.visiblePages=this.getVisiblePages(),this.lastZoomFactor=this.defaultZoomFactor,this.setPageSize(this.pageSize)},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 r.default({bookSize:this.bookSize,state:this.$store,container:this.bookHolderElement,parentVm:this,contentCreator:this.contentCreator,initDomEvents:!this.isEmbed,version:this.version}),this.toggleBlockOnFlip(),this.flipAdapter.on("render:start",this.onRenderStart,this),this.flipAdapter.on("render:finish",this.onRenderFinish,this),this.flipAdapter.on("flip:finished",this.onFlipFinished,this),this.$root.$on("contextMenu:zoomIn",this.zoomByTap),this.$root.$on("contextMenu:zoomOut",this.zoomOut),this.$root.$on("bottomMenu:zoomIn",this.zoomByTap),this.$root.$on("bottomMenu:zoomOut",this.zoomOut),this.$root.$on("zoomPanel",this.changeZoom),this.$root.$on("zoomMove",this.zoomMove),this.$root.$on("wheel",this.onWheel)},beforeDestroy:function(){this.$root.$off("contextMenu:zoomIn",this.zoomByTap),this.$root.$off("contextMenu:zoomOut",this.zoomOut),this.$root.$off("bottomMenu:zoomIn",this.zoomByTap),this.$root.$off("bottomMenu:zoomOut",this.zoomOut),this.$root.$off("zoomPanel",this.changeZoom),this.$root.$off("zoomMove",this.zoomMove),this.$root.$off("wheel",this.onWheel),this.flipAdapter.off("render:start",this.onRenderStart,this),this.flipAdapter.off("render:finish",this.onRenderFinish,this),this.flipAdapter.off("flip:finished",this.onFlipFinished,this),this.flipAdapter.destructor()},watch:{forceRerender:function(){this.forceRerender&&(this.$store.dispatch("pager/setForceRerender",{forceRerender:!1}),this.flipAdapter.resetBook())},pageSize:function(t){this.setPageSize(t)},zoomFactor:function(t,e){var i=this;this.toggleBlockOnFlip();var s={width:this.pageSize.width,height:this.pageSize.height};if(s.width=s.width*t,s.height=s.height*t,s.zoomFactor=t,this.$store.dispatch("pages/changePageSize",s),t>1&&1===e){var r=this.$store.getters["pager/currentPages"].some((function(t){return i.$store.getters["pages/pageProp"](t,"textBlocks")}),this);this.selectTextEnabled&&r&&this.showSelectTextTip()}},zoomPanel:function(){this.toggleBlockOnFlip()},status:function(t){"ready"!==t?(this.$store.dispatch("pager/freeze",{target:"flip-book-zoom"}),this.$store.dispatch("workspace/setAnimationProgress",{animationType:this.scaleFactor>1&&1===this.zoomFactor?"initialZoom":null})):(this.$store.dispatch("pager/unfreeze",{target:"flip-book-zoom"}),this.$store.dispatch("workspace/unsetAnimationProgress",{animationType:null})),this.toggleBlockOnFlip(),this.refreshScroll(),this.$store.dispatch("workspace/setStatus",t)},bookSize:function(t){this.flipAdapter.resizeBook(t)},singleMode:function(t){this.zoomOut(!0),this.flipAdapter.setSingleMode(t)},currentPages:function(t,e){var i=this;if((t.mode===e.mode||t.zoomMode===e.zoomMode)&&!t.isEqualState(e)){var s=function(){t.mode===e.mode&&i.$store.dispatch("sound/playFlipSound",{hardcover:e.hardcover||t.hardcover});var s=i.$store.getters["pager/getDeltaTurns"](e,t);if(1===Math.abs(s)){var r=s>0?"toLeft":"toRight",o=s>0?!t.rightPage||t.isLastSpread:!t.leftPage||t.isFirstSpread;"flipComponent"!==t.target&&"orientation"!==t.target&&o&&i.$store.dispatch("pager/setForceFlip",{forceFlip:!0}),i.flipAdapter.updateState(r,t.target)}else Math.abs(s)>1&&i.flipAdapter.updateState("toPage",t.target)};1!==this.zoomFactor?(this.overriddenPagerState=e,this.zoomOut(!1),this.$once("transition:end",(function(){i.overriddenPagerState=null,setTimeout(s,0)}))):s()}},isWorkspaceFrozen:function(t){t?this.flipAdapter.block(!1):this.flipAdapter.unblock()},workspaceSize:function(t,e){if(1!==this.zoomFactor&&t.width!==e.width&&0!==t.width&&0!==e.width&&null!==t.width&&null!==e.width){var i=e.width/t.width,s=Math.max(this.minZoom,Math.min(this.maxZoom,this.zoomFactor*i));this.setZoom(s,!0)}},isRTLBook:function(t){this.flipAdapter.setRtl(t)},isHardcover:function(t){this.zoomOut(!0),this.flipAdapter.setHardcover(t),this.$root.$emit("forceBookResize")},hardcoverColor:function(t){this.flipAdapter.setHardcoverColor(t)},hasThickness:function(t){this.flipAdapter.setThickness(t)},isOnlyRightPage:function(){var t=this.getVisiblePages();t!==this.visiblePages&&(this.visiblePages=t)},isOnlyLeftPage:function(){var t=this.getVisiblePages();t!==this.visiblePages&&(this.visiblePages=t)},dragActive:function(t){t?this.$refs.bookHolder.$el.classList.remove("nodrag"):this.$refs.bookHolder.$el.classList.add("nodrag")},isMini:function(){this.zoomOut(!0)},workspaceBookSize:function(){this.zoomOut(!0)}},computed:{bookSize:function(){var t,e=this.$store.state;return t=e.book.rightToLeft?"left"===this.visiblePages?-e.pages.size.width:0:this.singleMode||"right"===this.visiblePages?-e.pages.size.width:0,{width:2*this.$store.state.pages.size.width,height:this.$store.state.pages.size.height,top:this.containerSize.top+(this.containerSize.height-e.pages.size.height)/2,left:t}},isOnlyRightPage:function(){var t,e=null!==(t=this.overriddenPagerState)&&void 0!==t?t:this.$store.getters["pager/state"];return e.spreadMode&&null===e.leftPage},isOnlyLeftPage:function(){var t,e=null!==(t=this.overriddenPagerState)&&void 0!==t?t:this.$store.getters["pager/state"];return e.spreadMode&&null===e.rightPage},bookHolderSize:function(){var t,e,i="both"!==this.visiblePages,s=this.$store.getters["pages/size"],r=this.singleMode,o=this.isHardcover,n=this.containerSize.width,a=this.containerSize.height,h=this.holderScrollLeft,l=this.holderScrollTop,c=this.stripesWidth||0,d=24,u=i||r?s.width:2*s.width;return 1===this.zoomFactor?(t=(n-u)/2,e=(a-s.height)/2):(t=h,e=l),this.$store.dispatch("workspace/setHolderSize",{width:u*(o?1.03:1)+2*c+2*d,height:s.height*(o?1.03:1),left:1===this.zoomFactor?t:0,top:1===this.zoomFactor?e:0}),{width:u,height:s.height,top:e,left:t}},bookHolderStyle:function(){var t=this.bookHolderSize,e=this.containerSize,i=this.zoomFactor,s=this.scaleOrigin,r=this.holderScrollLeft,o=this.holderScrollTop,n=this.scaleFactor,a=this.status,h=this.fastAnimation,l=this.animationSpeed,c=e.height>=t.height?Math.round(t.top)+"px":"0",d=e.width>=t.width?Math.round(t.left)+"px":"0",u={width:t.width+"px",height:t.height+"px",top:1===i?t.top+"px":c,left:1===i?t.left+"px":d};if("animating"===a||"pinch"===a||"scale"===a){u.transformOrigin=s.x+"px "+s.y+"px";var p="translate("+(e.width=.9?t.square=!0:e>1.1?t.portrait=!0:t.landscape=!0),t["drag-active"]=this.dragging,t["single-page"]=this.pageCount<=2,t["single-mode"]=this.singleMode,t},pageCount:function(){return this.$store.getters["pages/pagesCount"]},currentPages:function(){var t=this.$store.getters["pager/state"],e=this.$store.getters["pages/isFirstPage"](t.currentPage),i=t.spreadMode&&!this.$store.state.pager.spread_rightPage,s=this.isHardcover&&(e||i);return Object(v.default)(t,{hardcover:s})},singleMode:function(){return this.$store.state.pager.singleMode},forceRerender:function(){return this.$store.state.pager.forceRerender},holderOriginalWidth:function(){return"both"!==this.visiblePages||this.singleMode?this.pageSize.width:2*this.pageSize.width},isWorkspaceFrozen:function(){return this.$store.state.workspace.freezed},frozenBy:function(){return this.$store.state.workspace.frozenBy?this.$store.state.workspace.frozenBy:null},zoomPanel:function(){return this.$store.state.workspace.zoomPanel},wheelScroll:function(){return this.$store.state.workspace.wheelScroll},workspaceSize:function(){return this.$store.state.workspace.containerSize},workspaceBookSize:function(){return this.$store.state.workspace.bookSize},minZoom:function(){var t=this.isHardcover&&(this.isFirstPage||this.isLastPage)?1.03:1;return Math.min(this.$store.state.workspace.containerSize.height/(this.$store.state.pages.size.height*t/this.$store.state.pages.size.zoomFactor),this.$store.state.workspace.containerSize.width/(this.$store.state.pages.size.width*t*2/this.$store.state.pages.size.zoomFactor))},maxZoom:function(){return this.$store.state.workspace.maxZoom},animationSpeed:function(){return this.isFirefox?1e3:this.scaleFactor<1?400:600},isMini:function(){return this.$store.state.workspace.mini},isEmbed:function(){return this.$store.state.workspace.isEmbed},version:function(){return this.$store.getters["info/version"]},isMobile:function(){return"mobile"===this.$store.state.workspace.layout},isFirefox:function(){return!0===this.$store.state.workspace.userAgentInfo.browser.firefox},isIE:function(){return!0===this.$store.state.workspace.userAgentInfo.browser.msie},isMac:function(){return!0===this.$store.state.workspace.userAgentInfo.os.mac},isRTLBook:function(){return this.$store.state.book.rightToLeft},isLocaleRtl:function(){return this.$store.getters["i18n/isLocaleRtl"]},isHardcover:function(){return this.$store.getters["book/hasHardcover"]},hardcoverColor:function(){return this.$store.state.book.hardcoverColor},hasThickness:function(){return this.$store.state.book.thickness},isFirstPage:function(){var t=this.$store.getters["pager/isFirstSpread"],e=this.$store.getters["pager/isLastSpread"];return this.isRTLBook?e:t},isLastPage:function(){var t=this.$store.getters["pager/isLastSpread"],e=this.$store.getters["pager/isFirstSpread"];return this.isRTLBook?e:t},isSecondPage:function(){var t=this.$store.getters["pager/prevPageId"];return this.$store.getters["pages/isFirstPage"](t)},isSecondToLastPage:function(){var t=this.$store.getters["pager/nextPageId"];return this.$store.getters["pages/isLastPage"](t)},showLeftButtons:function(){var t=!(1!==this.zoomFactor||1!==this.scaleFactor||"html"!==this.version||this.isFirstPage||this.hideLeftArrow&&(this.isRTLBook?this.isSecondToLastPage:this.isSecondPage));return t||this.switchFocus("left","right"),t},showRightButtons:function(){var t=!(1!==this.zoomFactor||1!==this.scaleFactor||"html"!==this.version||this.isLastPage||this.hideRightArrow&&(this.isRTLBook?this.isSecondPage:this.isSecondToLastPage));return t||this.switchFocus("right","left"),t},notesEnabled:function(){return this.$store.state.workspace.components.notes&&!this.isMini},showRightAddNote:function(){return(this.showRightButtons||this.hideRightArrow)&&(!this.isLocaleRtl||this.isFirstPage)},addNoteTitleText:function(){return this.$t("NotesToolWindow.ADD_NOTE")},leftArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.NEXT_PAGE_TIP"):this.$t("NavigationPanel.PREV_PAGE_TIP")},rightArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.PREV_PAGE_TIP"):this.$t("NavigationPanel.NEXT_PAGE_TIP")},leftMostArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.LAST_PAGE_TIP"):this.$t("NavigationPanel.FIRST_PAGE_TIP")},rightMostArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.FIRST_PAGE_TIP"):this.$t("NavigationPanel.LAST_PAGE_TIP")},bookState:function(){return this.flipAdapter},selectTextEnabled:function(){return!this.isMobile&&!this.isIE&&this.$store.state.workspace.components.textSelection},arrowAttract:function(){var t=this.$store.getters["workspace/callToNavigation"];return"arrow"===t.type&&t.side},eventHandlers:function(){var t=this.isEmbed?{}:{doubletap:this.zoomByTap,pinchstart:this.zoomByPinchStart,pinchmove:this.zoomByPinchMove,pinchend:this.zoomByPinchFinish,pinchcancel:this.zoomByPinchFinish};return t.tap=this.isHardcover?this.clickOnCover:function(){},t}},methods:{setPageSize:function(t){var e={width:t.width*this.zoomFactor,height:t.height*this.zoomFactor,zoomFactor:this.zoomFactor};this.$store.dispatch("pages/changePageSize",e)},clickOnCover:function(t){for(var e=Object(m.composedPath)(t.target),i=0,s=e.length;i1||this.scaleFactor>1)return;this.$store.state.notes.opened&&this.$store.dispatch("notes/setOpenedId",{id:null}),t.deltaY>0?this.$store.dispatch("pager/goForward",{target:"wheel"}):t.deltaY<0&&this.$store.dispatch("pager/goBackward",{target:"wheel"})}this.lastWheelTime=Date.now()}},zoomMove:function(t){if(t&&t.direction)if("ready"===this.status){var e;switch(t.direction){case"left":case"right":e=this.getScrollAmount(t,this.iscroll.x,0,this.containerSize,this.bookHolderSize),this.iscroll.scrollBy(e,0);break;case"up":case"down":e=this.getScrollAmount(t,0,this.iscroll.y,this.containerSize,this.bookHolderSize),this.iscroll.scrollBy(0,e);break;case"drag":this.dragActive=t.active,this.iScrollInit(this.dragActive)}this.iscroll&&(this.holderScrollX=this.iscroll.x,this.holderScrollY=this.iscroll.y,this.$store.dispatch("text/setHolderScroll",{x:this.holderScrollX,y:this.holderScrollY}))}else"drag"===t.direction&&(this.dragActive=t.active)},getVisiblePages:function(){return this.isOnlyRightPage?"right":this.isOnlyLeftPage?"left":"both"},toggleBlockOnFlip:function(){var t=this;1!==this.zoomFactor||this.zoomPanel||"ready"!==this.status?this.flipAdapter.block(!0):setTimeout((function(){t.flipAdapter.unblock()}),20)},refreshScroll:function(){var t=this;this.cancelDragging(),this.$nextTick((function(){t.zoomFactor>1&&"ready"===t.status?t.iScrollInit(t.dragActive):t.iscroll&&(t.holderScrollX=0,t.holderScrollY=0,t.$store.dispatch("text/setHolderScroll",{x:t.holderScrollX,y:t.holderScrollY}),t.iscroll.destroy(),delete t.iscroll)}))},onScrollEnd:function(){this.cancelDragging(),this.holderScrollX=this.iscroll.x,this.holderScrollY=this.iscroll.y,this.$store.dispatch("text/setHolderScroll",{x:this.holderScrollX,y:this.holderScrollY})},onScrollBegin:function(){this.holderScrollX=this.iscroll.x,this.holderScrollY=this.iscroll.y,this.$store.dispatch("text/setHolderScroll",{x:this.holderScrollX,y:this.holderScrollY})},setDragging:function(){1!==this.zoomFactor&&(this.dragging=!0)},cancelDragging:function(){this.dragging=!1},zoomOut:function(t){if(1!==this.zoomFactor){if(this.lastZoomFactor=Math.max(this.zoomFactor,this.defaultZoomFactor),t)return this.status="calculating",this.zoomFactor=1,this.scaleFactor=1,this.refreshScroll(),this.holderScrollLeft=0,this.holderScrollTop=0,this.status="ready",void this.$root.$emit("unzoomed");this.zoomByTap({center:{x:0,y:0}})}},zoomByTap:function(t){if(!(this.zoomTimeout>Date.now()||this.isWorkspaceFrozen||"ready"!==this.status||"pending"!==this.$store.state.pager.flipState||this.isMini)){t||(t={center:{x:this.isRTLBook?this.workspaceSize.width:0,y:0},target:null});var e=["next-button","previous-button","icon-book-next","icon-book-prev","reflex-container"];if(!t.target||!(e.indexOf(t.target.className)>=0||t.target.classList.contains("stripe")||t.target.classList.contains("page-stripe")||Object(b.isString)(t.target.className)&&t.target.className.indexOf("stripe-block")>=0||"0-0"===t.target.dataset.page||"textarea"===t.target.tagName.toLowerCase())){this.status="calculating";var i,s=!1,r=this.getTappedZoomBlock(t);if("mobile"===this.version&&r.id){s=this.lastZoomBlockID!==r.id;var o=this.bookHolderElement.getBoundingClientRect();i=this.getBlockRect(r.rect,o)}if(this.lastZoomBlockID=s?r.id:null,s){this.updateHolderScroll(!0);var n=1*(.96*this.containerSize.width/i.width).toFixed(2);this.scaleFactor=this.checkScaleFactorForZoom(n,this.zoomFactor,this.maxZoom)}else this.scaleFactor=1!==this.zoomFactor||this.zoomPanel?this.holderOriginalWidth/this.bookHolderSize.width:this.lastZoomFactor;var a={x:t.center.x-this.bookHolderSize.left,y:t.center.y-this.bookHolderSize.top},h=Object(g.getNewCenteredBounds)(this.containerSize,this.bookHolderSize,this.scaleFactor,a);if(s){var l=i.left*this.scaleFactor,c=i.width*this.scaleFactor;h.left=-l+(this.containerSize.width-c)/2}h=Object(g.normalizeBounds)(h,this.containerSize),this.status="animating",this.scaleOrigin=Object(g.getOrigin)(this.bookHolderSize,h,this.scaleFactor),this.newBounds=h,this.refreshScroll(),this.flipAdapter.setZoom(this.scaleFactor*this.zoomFactor>1),this.scaleFactor>1?this.$root.$emit("zoomed"):(this.scaleFactor<1||this.zoomPanel&&1===this.scaleFactor)&&this.$root.$emit("unzoomed"),this.$store.dispatch("workspace/setHighlightTimeout",Date.now()+1e3)}}},zoomByPinchStart:function(t){this.isWorkspaceFrozen||"ready"!==this.status||"inProgress"===this.$store.state.pager.flipState||this.isMini||(this.minScale=this.holderOriginalWidth/this.bookHolderSize.width,this.scaleFactor=1,this.updateHolderScroll(!0),this.scaleOrigin={x:t.center.x-this.bookHolderSize.left,y:t.center.y-this.bookHolderSize.top},this.status="pinch")},zoomByPinchMove:function(t){if("pinch"===this.status){var e=Math.max(t.scale,this.minScale);this.scaleFactor=this.checkScaleFactorForZoom(e,this.zoomFactor,this.maxZoom)}},zoomByPinchFinish:function(t){if("pinch"===this.status){var e=Object(g.getNewBounds)(this.bookHolderSize,this.scaleFactor,{x:this.scaleOrigin.x,y:this.scaleOrigin.y});e=Object(g.normalizeBounds)(e,this.containerSize),this.zoomFactor=1*(this.zoomFactor*this.scaleFactor).toFixed(2),this.holderScrollLeft=1===this.zoomFactor?0:e.left,this.holderScrollTop=1===this.zoomFactor?0:e.top,this.status="ready",this.scaleFactor>1?this.$root.$emit("zoomed"):this.scaleFactor<1&&this.$root.$emit("unzoomed"),this.scaleFactor=1}},setZoom:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2?arguments[2]:void 0;if(!this.isWorkspaceFrozen&&"ready"===this.status){this.scaleFactor=t/this.zoomFactor,this.updateHolderScroll(!1);var s=i||{x:this.workspaceSize.width/2,y:this.workspaceSize.height/2},r={x:s.x-this.bookHolderSize.left,y:s.y-this.bookHolderSize.top},o=Object(g.getNewBounds)(this.bookHolderSize,this.scaleFactor,r);o=Object(g.normalizeBounds)(o,this.containerSize),this.scaleOrigin=Object(g.getOrigin)(this.bookHolderSize,o,this.scaleFactor),this.newBounds=o,this.flipAdapter.setZoom(this.scaleFactor*this.zoomFactor>1),this.fastAnimation=e,this.status="animating",this.refreshScroll()}},setScaleStart:function(){this.minScale=Math.max(this.minZoom/this.zoomFactor,this.holderOriginalWidth/this.bookHolderSize.width),this.maxScale=this.maxZoom/this.zoomFactor,this.scaleFactor=1,this.updateHolderScroll(!1),this.scaleOrigin={x:this.workspaceSize.width/2-this.holderScrollLeft,y:this.workspaceSize.height/2-this.holderScrollTop},this.status="scale"},setScale:function(t){if("scale"===this.status){var e=this.minScale+(this.maxScale-this.minScale)*t,i=Object(g.getNewBounds)(this.bookHolderSize,e,{x:this.workspaceSize.width/2-this.holderScrollLeft,y:this.workspaceSize.height/2-this.holderScrollTop});i=Object(g.normalizeBounds)(i,this.containerSize),this.scaleOrigin=Object(g.getOrigin)(this.bookHolderSize,i,e);var s=Math.min(this.maxScale,Math.max(this.minScale,e));this.scaleFactor=this.checkScaleFactorForZoom(s,this.zoomFactor,this.maxZoom)}},setScaleFinish:function(){if("scale"===this.status){var t=Object(g.getNewBounds)(this.bookHolderSize,this.scaleFactor,this.scaleOrigin);t=Object(g.normalizeBounds)(t,this.containerSize),this.zoomFactor=1*(this.zoomFactor*this.scaleFactor).toFixed(2),this.scaleFactor=1,this.holderScrollLeft=1!==this.zoomFactor?t.left:0,this.holderScrollTop=1!==this.zoomFactor?t.top:0,this.status="ready"}},changeZoom:function(t){switch(t.action){case"setZoom":this.setZoom(t.zoomFactor,t.fast);break;case"startScale":this.setScaleStart();break;case"changeScale":this.setScale(t.scalePosition);break;case"endScale":this.setScaleFinish();break;case"zoomIn":this.zoomByTap();break;case"zoomOut":this.dragActive=!0,this.zoomOut()}},transitionEnd:function(t){t&&"transform"===t.propertyName&&t.target===this.bookHolderElement&&"animating"===this.status&&(this.fastAnimation=!1,this.lastZoomFactor=Math.max(this.zoomFactor,this.defaultZoomFactor),this.zoomFactor=1*(this.zoomFactor*this.scaleFactor).toFixed(2),this.scaleFactor=1,this.holderScrollLeft=1===this.zoomFactor?0:this.newBounds.left,this.holderScrollTop=1===this.zoomFactor?0:this.newBounds.top,this.status="ready",this.$emit("transition:end"))},updateHolderScroll:function(t){t&&1===this.zoomFactor||(this.containerSize.widthDate.now()||this.$store.state.pager.freezed||(this.zoomTimeout=Date.now()+500,setTimeout((function(){t.movePagerRight({target:"nav-arrow-tap"})}),0))},leftPage:function(){var t=this;this.addNoteTimeout>Date.now()||this.$store.state.pager.freezed||(this.zoomTimeout=Date.now()+500,setTimeout((function(){t.movePagerLeft({target:"nav-arrow-tap"})}),0))},rightmostPage:function(){var t=this;this.zoomTimeout=Date.now()+500,setTimeout((function(){t.movePagerRightmost({navTarget:!0})}),0)},leftmostPage:function(){var t=this;this.zoomTimeout=Date.now()+500,setTimeout((function(){t.movePagerLeftmost({navTarget:!0})}),0)},arrowHover:function(t,e){e?this.$el.classList.add(t+"-highlighted"):this.$el.classList.remove(t+"-highlighted")},btnAddNote:function(t){var e,i,s;this.zoomTimeout=Date.now()+500,this.addNoteTimeout=Date.now()+500,this.currentPages.singleMode?(e=this.currentPages.currentPage,i=this.currentPages.widePageSecondHalf,s=this.isRTLBook&&this.$store.getters["pages/pageProp"](e,"wide")&&!i):(e="left"===t&&!this.isRTLBook||"right"===t&&this.isRTLBook?this.currentPages.leftPage:this.currentPages.rightPage,i="right"===t&&this.currentPages.wide),this.$store.dispatch("notes/addNote",{pageId:e,wideRight:i,wideOpposite:s})},iScrollInit:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];1!==this.zoomFactor&&(this.iscroll?(this.holderScrollX=this.iscroll.x,this.holderScrollY=this.iscroll.y,this.iscroll.off("beforeScrollStart",this.setDragging),this.iscroll.off("scrollCancel",this.cancelDragging),this.iscroll.off("scroll",this.onScrollBegin),this.iscroll.off("scrollEnd",this.onScrollEnd),this.iscroll.destroy(),delete this.iscroll):(this.holderScrollX=this.containerSize.width=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,n=!0,a=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return n=t.done,t},e:function(t){a=!0,o=t},f:function(){try{n||null==i.return||i.return()}finally{if(a)throw o}}}}function f(t,e){if(t){if("string"==typeof t)return g(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i0&&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()},contentFreezed:function(t){this.refreshCache(),t?this.cancelResize("freezed",!0):(this.resizeCancelled=!1,this.updateCanvasDebounced(!1))},preloaderVisible:function(t,e){this.refreshCache(),this.isCurrent&&!t&&e&&this.$root.$emit("pageLoaded")},backgrounds:function(){this.refreshCache()},backgroundsCache:function(){this.updateCanvasDebounced(!0)}},created:function(){var t=this;this.updateCanvasDebounced=Object(o.debounce)((function(e){e&&(t.canvasUpdated=!1),t.updateCanvas()}),1e3),this.isLoading=this.rawIsLoading},mounted:function(){this.refreshCache(),this.$root.$on("zoomMove",this.zoomMove),this.getContent()},beforeUpdate:function(){this.contentItemsReady>this.content.length&&(this.contentItemsReady=this.content.length)},beforeDestroy:function(){this.cancelResize("destroyed",!0),this.updateCanvasDebounced.destroy(),this.$root.$off("zoomMove",this.zoomMove),clearTimeout(this.highlightTimeout),clearTimeout(this.highlightOffTimeout),this.$refs.bgImage.onload=null,this.$refs.bgImage.onerror=null,this.$refs.bgImage.src="",this.$refs.bgSVG&&(this.$refs.bgSVG.src="")},methods:{bgCacheImageLoaded:function(t){this.isZoomed&&t===this.substrateUrl&&this.setCursor("inherit")},getContent:function(){this.pageContent=this.$store.getters["pages/pageContent"](this.pageId)},getProperties:function(){this.isSVGSupported=this.$store.getters["pages/isSVGSupported"](this.pageId),this.thumbnailUrl=this.$store.getters["pages/pageProp"](this.pageId,"thumbnailUrl"),this.textUrl=this.$store.getters["pages/pageProp"](this.pageId,"textUrl"),this.substrateUrl=this.$store.getters["pages/pageProp"](this.pageId,"substrateUrl"),this.isReady=this.$store.getters["pages/pageProp"](this.pageId,"status")===c.default.READY,this.loadPending=this.$store.getters["pages/pageProp"](this.pageId,"loadPending"),this.hasError=this.$store.getters["pages/hasError"](this.pageId)},getAPIProperties:function(){this.isWide=this.$store.getters["pages/pageProp"](this.pageId,"wide"),this.isStub=this.$store.getters["pages/pageProp"](this.pageId,"stub"),this.backgroundColor=this.enforceTransparentBg?null:this.$store.getters["pages/pageProp"](this.pageId,"backgroundColor");var t=this.$store.getters["pages/isLastPage"](this.pageId)&&this.$store.getters["pages/pageIndexById"](this.pageId)%2!=0&&!this.isWide&&!this.$store.state.pager.singleMode;this.isOutsideHardcover="flip-book"===this.bookComponent&&this.$store.getters["book/hasHardcover"]&&(this.$store.getters["pages/isFirstPage"](this.pageId)||t)},refreshCache:function(){var t=this;this.contentFreezed||this.$nextTick((function(){t.preloaderVisibleCache=t.preloaderVisible,t.backgroundsCache=t.backgrounds,t.vectorLayerCache=t.vectorLayer,t.isLoadingCache=t.isLoading,t.updatePendingCache=t.updatePending}))},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/2.95*e.width)&&(this.rightStripeTap(),!0)},onMouseDown:function(){var t;"input"===(null===(t=document.activeElement)||void 0===t?void 0:t.tagName.toLowerCase())&&document.activeElement.blur()},onContentTap:function(t){var e=this;if(!this.isWorkspaceFrozen){var i=null!==this.$store.state.text.selectionRect;i&&this.$store.dispatch("text/reset");var s=t.target.classList;if(s)if(s.contains("link"))this.tapped=!0,Date.now()>this.tapTimeout&&(setTimeout((function(){e.linkTo(t.target)}),this.$store.state.workspace.doubletapInterval+1),this.tapTimeout=Date.now()+this.$store.state.workspace.doubletapInterval),setTimeout((function(){e.tapped=!1}),500);else if("desktop"===this.layout&&!i){var r=Object(o.classPath)(t.target);if(!s.contains("block")&&!s.contains("text-block")&&-1===r.indexOf("content")&&this.checkPageStripes(t))return;(s.contains("content")||s.contains("block")||s.contains("text-block")||s.contains("selecttext")||s.contains("select-text-canvas"))&&setTimeout((function(){if(!(e.$store.state.workspace.highlightTimeout+350>Date.now())){clearTimeout(e.highlightTimeout),clearTimeout(e.highlightOffTimeout);var t=e.getSpreadTwin();null!==t&&(clearTimeout(t.highlightTimeout),clearTimeout(t.highlightOffTimeout),t.isHighlighted=!e.isHighlighted),e.isHighlighted=!e.isHighlighted;var i=e.$store.getters["pages/urlHeaderById"](e.pageId,"both"===e.pageSide,"right"===e.pageSide);e.$root.$emit("highlight",{action:e.isHighlighted?"on":"off",page:i})}}),350)}}},linkTo:function(t){if("ready"===this.bookStatus){var e=t.getAttribute("data-id"),i=t.getAttribute("data-url");if(e&&!i)this.$store.dispatch("pager/goToPageById",{id:e,target:"link"}),this.$emit("link:click",t),this.$root.$emit("link",{type:"internal",source:"page",pageId:this.pageId,pageToId:e});else if(i){var s=!1===this.checkUrl(i);if(this.$root.$emit("link",{type:"external",pageId:this.pageId,url:i,target:t.target,source:null,isBlacklisted:s}),s)return;t.setAttribute("href",i),t.click(),t.removeAttribute("href"),this.$emit("link:click",t)}}},checkUrl:function(t){for(var e=0;e0?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()})):(this.autoHighlight&&this.highlightContent(),this.$emit("highlight"))}},highlightContent:function(){var t=this,e=this.getSpreadTwin(),i=this.$store.state.pager.singleMode;e&&this.isWide&&!i&&"right"===this.pageSide||(this.highlightTimeout=setTimeout((function(){t.isHighlighted=!0,e&&(e.isHighlighted=!0),t.highlightOffTimeout=setTimeout((function(){t.isHighlighted=!1,e&&(e.isHighlighted=!1)}),500)}),500))},contentItemReady:function(t){"link"!==t.data.type&&this.contentItemsReady++},contentError:function(){this.$store.dispatch("pages/setStatus",{value:c.default.ERROR,pageID:this.pageId})},updateCanvas:function(){var t=this,e=this.isZoomed&&this.substrateNum>1;if(!("desktop"!==this.layout||!this.isCurrent||e||this.canvasUpdated||this.contentFreezed||this.devicePixelRatio>1.5)&&(!this.isWide||"right"!==this.pageSide||this.$store.state.pager.singleMode)&&this.backgroundsCache&&this.backgroundsCache[0]){this.cancelResize("new resize",!1),this.resizeCancelled=!1;var i=new Image;this.crossOrigin&&(i.crossOrigin=this.crossOrigin),i.onload=function(){var e=document.createElement("canvas"),s=e.getContext("2d");if(e.style.transform="translateZ(0)",i.onload=null,!t.resizeCancelled)if(t.backgroundsCache.length>1){var r=new Image;t.crossOrigin&&(r.crossOrigin=t.crossOrigin),r.onload=function(){r.onload=null,t.resizeCancelled||(e.width=r.width,e.height=r.height,s.drawImage(i,0,0,r.width,r.height),s.drawImage(r,0,0,r.width,r.height),r.src="",r=null,i=null,t.resizeCanvas(e,t.$refs.bgImage),s=null,e=null)},r.src=t.backgroundsCache[1]}else e.width=i.width,e.height=i.height,s.drawImage(i,0,0,i.width,i.height),i=null,t.resizeCanvas(e,t.$refs.bgImage),s=null,e=null},i.src=this.backgroundsCache[0]}},skipResize:function(){var t=this.$store.state.workspace.userAgentInfo.browser;return t.firefox||t.ie||t.msie||t.msedge},resizeCanvas:function(t,e){var i=this;if(!this.skipResize()&&!this.resizeCancelled){this.cancelResize("new resize",!1);var s=new Date,r=s.getHours()+":"+s.getMinutes()+":"+s.getSeconds()+"."+s.getMilliseconds(),o=this.pageId+"_"+r,n=document.createElement("canvas");this.cancelResize=function(t,e){try{e&&(i.resizeCancelled=!0),o&&i.bookElement.cancelResize&&i.bookElement.cancelResize(o),n=null}catch(s){i.$emit("error",s)}},n.style.transform="translateZ(0)",n.width=this.contentSize.width*(this.isWide&&"both"!==this.pageSide?2:1)*this.devicePixelRatio,n.height=this.contentSize.height*this.devicePixelRatio,n.getContext("2d").drawImage(t,0,0,n.width,n.height);var a={unsharpAmount:80,unsharpRadius:.6,unsharpThreshold:166,quality:3,alpha:!0};if(!this.resizeCancelled&&this.bookElement.resizePage){var h=this;this.bookElement.resizePage(t,n,a,o,(function(i){if(i){var s=i.toDataURL();if(h.setResizedImg(e,h,s),h.isWide){var r=h.getSpreadTwin();null!==r&&h.setResizedImg(r.$refs.bgImage,r,s)}}o=null,t=null,n=null}))}}},setResizedImg:function(t,e,i){if(t){t.onload=function(){t.onload=null,setTimeout((function(){e.resizeCancelled||(e.canvasUpdated=!0)}),500)};var s=window.MSInputMethodContext&&document.documentMode?1e4:6500;i.length>s&&(t.src=i)}},leftStripeTap:function(){this.movePagerLeft({target:"page-edge-tap"})},rightStripeTap:function(){this.movePagerRight({target:"page-edge-tap"})},arrowHover:function(t,e){"function"==typeof this.bookElement.arrowHover&&this.bookElement.arrowHover(t,e)},zoomMove:function(t){"drag"===t.direction&&(this.contentActive=!!t.active)},isPointInSelection:function(t){var e=this.$el.querySelector(".select-text-canvas");if(!e)return!1;var i=e.getBoundingClientRect(),s=t.clientX-i.left,r=t.clientY-i.top,o=e.getContext("2d").getImageData(s,r,1,1).data;return o[0]+o[1]+o[2]+o[3]!==0}},computed:{pageStyle:function(){var t="rgba(39, 47, 55, 0.03)",e=this.contentCrop?this.contentSize.height:this.pageSize.height;return{width:(this.contentCrop?this.contentSize.width:this.pageSize.width)+"px",height:(e%2==0?e:e+1)+"px","background-color":this.bordered?t:this.backgroundColor}},zoomInBlur:function(){return!1},showPreloaderContainer:function(){return!this.isStub&&(this.thDebounced||this.preloaderVisibleCache)},showSpinner:function(){return(this.thDebounced||this.isLoadingCache||this.updatePendingCache)&&!this.contentFreezed&&this.isReady&&!this.hasError},showHighlights:function(){return this.isCurrent&&!this.contentFreezed&&(this.isMobile||this.isSearchOpened)&&!this.showPreloaderContainer},animationInProgress:function(){return this.$store.getters["workspace/animationInProgress"]},isLeftFlipCorner:function(){return"left"===this.$store.getters["workspace/callToNavigation"].side},flipCornerEnabled:function(){if("flip-book"!==this.bookComponent||!this.isCurrent)return!1;var t=this.$store.getters["workspace/callToNavigation"];return"corner"===t.type&&(this.$store.state.pager.singleMode||t.side===this.pageSide)&&!this.contentFreezed},bookStatus:function(){return this.bookElement.status||"ready"},isIE:function(){return!0===this.$store.state.workspace.userAgentInfo.browser.msie},bookComponent:function(){return this.$store.state.workspace.bookComponent},bookElement:function(){return"slide-book"===this.bookComponent?this.$parent.$parent:this.$parent},rawIsLoading:function(){return 0===this.$store.state.pages.size.width||null===this.$store.state.pages.size.width||!(this.isStub||!this.isReady||this.hasError)&&(this.contentItemsReady.5,dark:this.backgroundLuma<=.5,tapped:this.tapped,"left-stripe":"flip-book"===this.bookComponent&&"left"===this.pageSide&&!this.hideLeftStripe,"right-stripe":"flip-book"===this.bookComponent&&"right"===this.pageSide&&!this.hideRightStripe,"last-single-page":this.isLastSinglePage,"selecttext-stripe":"flip-book"===this.bookComponent&&.9*this.pageSize.width<=this.contentSize.width,"content-inactive":!this.contentActive}},isLastSinglePage:function(){return!(!this.$store.state.pager.singleMode||!this.$store.getters["pages/isLastPage"](this.pageId))&&(!this.isWide||!(this.isRTLBook&&"left"!==this.pageSide||!this.isRTLBook&&"right"!==this.pageSide))},preloaderVisible:function(){return!this.isStub&&(this.isLoading||!this.isReady||this.hasError)},vectorLayer:function(){return this.pageId&&this.isReady&&!this.hasError&&this.isSVGSupported?this.textUrl:null},backgrounds:function(){if(!this.pageId||!this.isReady||this.hasError)return[];var t=this.enforceTransparentBg?this.whitePixelUrl:this.stubUrl,e=this.substrateUrl,i=this.textUrl,s=this.isSVGSupported,r=[];if(this.isStub)r.push(t);else{var o=i;e&&r.push(e),o&&!s&&r.push(o)}return r},selectTextEnabled:function(){return!this.isIE&&this.$store.state.workspace.components.textSelection},mobileShowEffectPass:function(){return this.isMobile&&this.$store.state.text.pageID&&this.pageId===this.$store.state.text.pageID&&(this.pageSide===this.$store.state.text.pageSide||this.isCrossWide)},contentPagesArray:function(){return this.$store.getters["content/pagesArray"]},content:function(){if(!this.pageId||!this.isReady||this.hasError||!this.renderContent||this.isStub)return[];var t=this.contentSize.scaleRatio;if(t<=0)return[];var e=this.pageContent;if(!e)return[];for(var i=this.pageId,s=this.pageSide,r=this.isWide,o=[],n=0;n8&&(e=8),t.filter="blur("+e+"px)",t},contentStyle:function(){var t=this.contentSize,e=this.isWide&&"both"!==this.pageSide,i=this.contentCrop?0:(this.pageSize.width-t.width)/(e?1:2),s=this.contentCrop?0:(this.pageSize.height-t.height)/2,r=t.height,o={width:t.width*(e?2:1)+"px",height:(r%2==0?r:r+1)+"px"};return this.zoomInBlur&&(o.filter="blur(2px)"),"right"===this.pageSide&&(o.right="0",i&&(o.marginRight=i.toFixed(0)+"px")),i&&"right"!==this.pageSide&&(o.marginLeft=i.toFixed(0)+"px"),s&&(o.marginTop=s.toFixed(0)+"px"),o},substrateNum:function(){var t=this.$store.getters["pages/currentSize"](this.pageId),e=this.$store.getters["pages/contentSize"]({pageID:this.pageId,pageSize:t});return this.$store.getters["pages/imageSizes"](this.pageId,e).substrate},notesArray:function(){for(var t=[],e=this.$store.state.notes.items,i=0,s=e.length;i0?t.center.y-t.deltaY-this.pageRect.top:t.center.y-this.pageRect.top,left:t.deltaX>0?t.center.x-t.deltaX-this.pageRect.left:t.center.x-this.pageRect.left,width:Math.abs(t.deltaX),height:Math.abs(t.deltaY),offsetX:this.containerSize.offsetX,offsetY:this.containerSize.offsetY,cursorHSide:t.deltaX>0?"right":"left",cursorVSide:t.deltaY>0?"bottom":"top"};if(e.top=e.top/this.containerSize.scaleRatio.h,e.left/=this.containerSize.scaleRatio.w,e.width/=this.containerSize.scaleRatio.w,e.height/=this.containerSize.scaleRatio.h,this.isWide&&!this.isCrossWide){if("right"===e.cursorHSide&&"left"===this.pageSide&&e.left+e.width>this.containerSize.width/this.containerSize.scaleRatio.w)return;if("left"===e.cursorHSide&&"right"===this.pageSide&&e.left0&&(t.$root.$emit("selectText",{action:"select",pageId:t.pageId,text:t.$store.state.text.selectedText}),t.$root.$emit("selectText:showPanel"),t.$el.addEventListener("mousemove",t.checkMousePosition))}),100)},zoomMove:function(t){"drag"===t.direction&&(this.isDragging=t.active)},checkMousePosition:function(t){this.$parent.$parent.isPointInSelection(t)?this.$root.$emit("selectText:showPanel"):this.$root.$emit("selectText:hidePanel",{forceHide:!1})}},watch:{isActive:function(t){this.$store.dispatch("text/setInProgressSelection",t)},pageSize:function(){var t=this;this.$root.$emit("selectText:hidePanel"),this.$nextTick((function(){t.getPageRect()}))},sidebar:function(){var t=this;this.$root.$emit("selectText:hidePanel"),this.$nextTick((function(){t.getPageRect()}))},wsContainerSize:function(){var t=this;this.$root.$emit("selectText:hidePanel"),this.$nextTick((function(){t.getPageRect()}))},scrollPosition:function(){var t=this;this.$nextTick((function(){t.getPageRect()}))},isLoaded:function(t){this.getPageRect()},animationInProgress:function(){this.$store.dispatch("text/reset"),this.$root.$emit("selectText:hidePanel")},pageResize:function(){var t=this;this.$nextTick((function(){t.getPageRect()}))},selectAll:function(t){t&&this.selectAllPageContent()},preliminarySelection:function(t){this.validContainerSize&&t&&this.finalizePreliminarySelection()},containerSize:function(){this.validContainerSize&&this.preliminarySelection&&this.finalizePreliminarySelection()}},computed:{selectAll:function(){return this.$store.state.text.selectAll&&this.pageId===this.$store.state.text.pageID&&this.pageSide===this.$store.state.text.pageSide},preliminarySelection:function(){return this.$store.state.text.preliminarySelection&&this.pageId===this.$store.state.text.pageID&&this.pageSide===this.$store.state.text.pageSide},validContainerSize:function(){var t,e;return(null===(t=this.containerSize)||void 0===t?void 0:t.width)>0&&(null===(e=this.containerSize)||void 0===e?void 0:e.height)>0},textBlockSizes:function(){var t=this;return this.finalTree.map((function(e){return{width:Math.ceil(e.width*t.containerSize.scaleRatio.w),height:Math.ceil(e.height*t.containerSize.scaleRatio.h),left:Math.floor(e.left*t.containerSize.scaleRatio.w),top:Math.floor(e.top*t.containerSize.scaleRatio.h)}}))},pageSize:function(){return this.$store.state.pages.size},sidebar:function(){return this.$store.state.sidebar.opened},wsContainerSize:function(){return this.$store.state.workspace.containerSize},scrollPosition:function(){return this.$store.getters["text/holderScroll"]},isZoomed:function(){return this.$store.state.pages.size.zoomFactor>1},animationInProgress:function(){return this.$store.getters["workspace/animationInProgress"]},pageResize:function(){return this.$store.getters["pages/pageProp"](this.pageId,"pageResize")}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(125);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(409);e.default={name:"select-text-mobile",mixins:[s.default],mounted:function(){var t=this;this.$nextTick((function(){t.getPageRect()})),this.$parent.$parent.$on("highlight",this.highlight)},beforeDestroy:function(){this.resetContext(),this.$parent.$parent.$off("highlight",this.highlight)},methods:{highlight:function(){var t=this;this.effectOn&&(this.showEffect=!0,setTimeout((function(){t.showEffect=!1,t.$store.dispatch("text/setEffect",!1)}),3e3))},reset:function(){this.$store.dispatch("text/reset")}},watch:{containerSize:function(){this.getAndParseXML()},animationInProgress:function(){this.$store.dispatch("text/reset")}},computed:{animationInProgress:function(){return this.$store.getters["workspace/animationInProgress"]}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(128);e.default=s.default},function(t,e,i){"use strict";i.r(e);i(705),i(412);var s=i(8),r=i(34),o=i(26),n=i.n(o);e.default={name:"Note",props:{data:{type:Object,default:function(){return{}}},size:{type:Object,default:function(){return{}}},side:{type:String,default:""},isWide:Boolean,isOutsideHardcover:Boolean},data:function(){return{state:"mini",offsetX:0,offsetY:0,deltaX:0,deltaY:0,minDeltaX:0,minDeltaY:0,maxDeltaX:0,maxDeltaY:0,onMove:!1,position:"absolute",leftOffset:16,rightOffset:16,topOffset:28,bottomOffset:4,ieOffsetX:0,ieOffsetY:0,rectLeft:-115,rectTop:4,rectHeight:0,rectState:"edit",deleteDialog:!1}},computed:{isIE:function(){return!!this.$store.state.workspace.userAgentInfo.browser.msie},showRect:function(){return this.isOpened&&"mini"===this.state},isOpened:function(){return this.$store.state.notes.opened===this.data.id},isFirstPage:function(){return this.$store.getters["pages/isFirstPage"](this.data.page)},isLastPage:function(){return this.$store.getters["pages/isLastPage"](this.data.page)},scale:function(){return{w:this.size.width/this.$store.state.book.bookSize.width/("both"===this.side?2:1),h:this.size.height/this.$store.state.book.bookSize.height}},noteStyle:function(){var t=0,e=0,i=0,s=0;if(this.isWide&&"right"===this.side&&(t=-this.size.width),this.onMove){if("right"===this.side){var r=this.slideMode&&(this.isFirstPage&&!this.rtl||this.isLastPage&&this.rtl);this.isOutsideHardcover||r||(e=this.size.width)}if("left"===this.side)this.slideMode&&(this.isLastPage&&!this.rtl||this.isFirstPage&&this.rtl)||(i=this.size.width);this.slideMode&&(this.pagerSlideMode&&"both"!==this.side||this.pagerSingleMode)&&(e=0,i=this.size.width),this.pagerSingleMode&&(this.isIE?this.isFirstPage||"right"!==this.side||this.isLastPage&&this.$store.getters["pages/pagesCount"]%2==0||(t-=this.size.width):this.rtl&&"right"===this.side?t-=this.size.width:this.rtl||"left"!==this.side||(t+=this.size.width))}this.showRect&&(s=1e4);var o=this.data.pX*this.scale.w+this.deltaX+e+t;o=Math.max(this.leftOffset,Math.min(this.size.width+e+i-this.rightOffset,o));var n=this.data.pY*this.scale.h+this.deltaY;return n=Math.max(this.topOffset,Math.min(this.size.height-this.bottomOffset,n)),{"z-index":this.data.id+1e4+s,position:this.position,top:n+this.ieOffsetY+"px",left:o+this.ieOffsetX+"px"}},rectStyle:function(){var t={top:this.rectTop+"px",left:this.rectLeft+"px"};return this.miniRect&&(t.width=this.size.width-8+"px",t.height=this.rectHeight+"px"),t},rectClass:function(){var t=["note-rect",this.rectState];return this.miniRect&&t.push("mini-rect"),t},miniRect:function(){return this.size.width<238},noteBodyStyle:function(){var t={};return this.miniRect&&(t.width=this.size.width-18+"px",t.height=this.rectHeight-10+"px"),t},iconClass:function(){var t=["note-icon",this.data.color,this.state];return this.isOpened&&t.push("opened"),t},colorSetClass:function(){return["note-color-set",this.data.color]},formattedTime:function(){var t=new Date(Date.now()),e=new Date(this.data.date),i=e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"});return t.getDay()===e.getDay()&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()||(i=e.toLocaleDateString()+", "+i),i},dir:function(){return this.$store.getters["i18n/isLocaleRtl"]?"rtl":"ltr"},rtl:function(){return this.$store.state.book.rightToLeft},placeholderText:function(){return this.$i18n.t("Notes.PLACEHOLDER")},dialogDeleteText:function(){return this.$i18n.t("Notes.DIALOG_DELETE_TEXT")},deleteTip:function(){return this.$i18n.t("Notes.DELETE_TIP")},deleteButton:function(){return this.$i18n.t("AlertWindow.BUTTON_DELETE")},cancelButton:function(){return this.$i18n.t("AlertWindow.BUTTON_CANCEL")},slideMode:function(){return"slide-book"===this.$store.state.workspace.bookComponent},pagerSlideMode:function(){return this.$store.state.pager.slideMode},pagerSingleMode:function(){return this.$store.state.pager.singleMode},currentBookHolder:function(){return this.slideMode?document.querySelector(".slide-wrapper.current .spread-wrapper"):document.getElementById("book-holder")}},watch:{isOpened:function(t){var e=this;t?(this.showEditor(),setTimeout((function(){"edit"===e.rectState&&e.forceFocus()}),100)):this.hideEditor()},state:function(t,e){var i=this;"mini"===t&&"move"===e&&this.$nextTick((function(){i.setTextareaDir()}))}},mounted:function(){this.$refs.icon.addEventListener("mousedown",this.iconMouseDown,!0),this.isOpened&&this.showEditor(),this.data.new&&this.$store.dispatch("notes/setOpenedId",{id:this.data.id}),this.parentEl=this.$el.parentElement},beforeDestroy:function(){this.$refs.icon.removeEventListener("mousedown",this.iconMouseDown,!0),this.removeEditorEventListeners()},methods:{onNoteClick:function(t){var e=this;this.isFrozenOrNotReady||Object(s.composedPath)(t.target).some((function(t){return t===e.$refs.icon}))&&(this.isOpened?this.hideEditor():this.showEditor())},iconMouseDown:function(t){0===t.button&&(t.stopPropagation(),this.offsetX=t.pageX,this.offsetY=t.pageY,this.$store.dispatch("notes/setMoving",!0),document.addEventListener("mousemove",this.iconMouseMove),document.addEventListener("mouseup",this.iconMouseUp))},iconMouseMove:function(t){if(t.stopPropagation(),!this.onMove){if(this.moveElementToSpreadNotes(),this.slideMode&&!this.pagerSingleMode)this.minDeltaX=this.leftOffset-this.data.pX*this.scale.w,this.maxDeltaX=this.size.width-this.data.pX*this.scale.w-this.rightOffset;else if("left"===this.side){this.minDeltaX=this.leftOffset-this.data.pX*this.scale.w;var e=!this.isWide&&(this.isLastPage&&!this.rtl||this.isFirstPage&&this.rtl)?1:2;this.maxDeltaX=this.size.width*e-this.data.pX*this.scale.w-this.rightOffset}else{var i=!this.isWide&&(this.isFirstPage&&!this.rtl||this.isLastPage&&this.rtl)?0:this.size.width;this.minDeltaX=(this.isWide?this.size.width:0)+this.leftOffset-i-this.data.pX*this.scale.w,this.maxDeltaX=this.size.width*(this.isWide?2:1)-this.data.pX*this.scale.w-this.rightOffset}if(!this.pagerSingleMode||this.isFirstPage||this.isLastPage&&this.$store.getters["pages/pagesCount"]%2==0||("left"===this.side?this.maxDeltaX-=this.size.width:"right"===this.side&&(this.minDeltaX+=this.size.width)),this.minDeltaY=this.topOffset-this.data.pY*this.scale.h,this.maxDeltaY=(this.size.height/this.scale.h-this.data.pY)*this.scale.h-this.bottomOffset,!this.isOutsideHardcover){if(this.isIE){var s=this.currentBookHolder.getBoundingClientRect(),r=this.getIEDeltaOffset();this.ieOffsetX=s.left-r,this.ieOffsetY=s.top}this.position="fixed"}this.onMove=!0,this.state="move"}this.deltaX=Math.max(this.minDeltaX,Math.min(t.pageX-this.offsetX,this.maxDeltaX)),this.deltaY=Math.max(this.minDeltaY,Math.min(t.pageY-this.offsetY,this.maxDeltaY))},getIEDeltaOffset:function(){if(this.slideMode&&this.pagerSlideMode)return 0;var t=this.$store.getters["pager/state"];return!this.isWide&&this.isLastPage&&this.rtl&&t.rightPage!==this.data.page||!this.isWide&&this.isFirstPage&&!this.rtl?this.size.width:0},iconMouseUp:function(){var t=this;if(document.removeEventListener("mousemove",this.iconMouseMove),document.removeEventListener("mouseup",this.iconMouseUp),this.$store.dispatch("notes/setMoving",!1),this.moveElementToPageContainer(),this.onMove){this.isIE&&(this.ieOffsetX=0,this.ieOffsetY=0),this.onMove=!1,this.position="absolute";var e=this.data.page,i=this.deltaX/this.scale.w+this.data.pX;this.isWide||("left"===this.side?i>this.size.width/this.scale.w&&(i-=this.size.width/this.scale.w,this.rtl?e--:e++):i<0&&(i+=this.size.width/this.scale.w,this.rtl?e++:e--),ithis.size.width/this.scale.w-this.rightOffset/this.scale.w&&(i=this.size.width/this.scale.w-this.rightOffset/this.scale.w)),this.$store.dispatch("notes/moveNote",{id:this.data.id,page:e.toString(),pX:Math.round(100*i)/100,pY:Math.round(100*(this.deltaY/this.scale.h+this.data.pY))/100}),this.state="mini",this.deltaX=0,this.deltaY=0,this.updateEditorParams(),setTimeout((function(){"edit"===t.rectState&&t.forceFocus()}),100)}},showEditor:function(){var t=this;this.updateEditorParams(),this.$store.dispatch("notes/setOpenedId",{id:this.data.id}),this.$store.dispatch("notes/setActiveItemById",this.data.id),this.$nextTick((function(){t.setTextareaDir()})),document.addEventListener("mousedown",this.hideEditorClick,!0),document.addEventListener("keydown",this.checkKeydown)},hideEditor:function(){document.activeElement===this.$refs.text&&this.$refs.text.blur(),this.saveText(),this.$store.state.notes.opened===this.data.id&&this.$store.dispatch("notes/setOpenedId",{id:null}),this.$store.dispatch("workspace/setHighlightTimeout",Date.now()+300),this.removeEditorEventListeners()},updateEditorParams:function(){this.isWide&&"right"===this.side?this.miniRect||this.data.pX*this.scale.w-this.size.width<119?this.rectLeft=-this.data.pX*this.scale.w+4+this.size.width:2*this.size.width-this.data.pX*this.scale.w<119?this.rectLeft=2*this.size.width-this.data.pX*this.scale.w-234:this.rectLeft=-115:this.miniRect||this.data.pX*this.scale.w<119?this.rectLeft=-this.data.pX*this.scale.w+4:this.size.width-this.data.pX*this.scale.w<119?this.rectLeft=this.size.width-this.data.pX*this.scale.w-234:this.rectLeft=-115,this.size.height-this.data.pY*this.scale.h<133?(this.rectTop=-154,this.miniRect&&(this.size.height-this.data.pY*this.scale.h125&&(this.rectHeight=125),this.rectTop=-this.rectHeight-28):(this.rectHeight=Math.floor(this.size.height-this.data.pY*this.scale.h-8),this.rectTop=4))):(this.miniRect&&(this.rectHeight=125),this.rectTop=4),""===this.data.text?this.rectState="edit":this.rectState="view",this.deleteDialog=!1},hideEditorClick:function(t){for(var e=Object(s.composedPath)(t.target),i=0,r=e.length;i1&&void 0!==arguments[1]?arguments[1]:"editor";""===this.data.text?this.deleteNote(t,e):this.deleteDialog=!0},checkKeydown:function(t){if(27===t.keyCode&&this.hideEditor(),"view"===this.rectState&&t.preventDefault(),8===t.keyCode){if(this.$refs.text===document.activeElement)return;this.deleteNoteCheck(t,"hotkey")}else 46===t.keyCode&&this.deleteNoteCheck(t,"hotkey")},removeEditorEventListeners:function(){document.removeEventListener("mousedown",this.hideEditorClick,!0),document.removeEventListener("keydown",this.checkKeydown)},deleteNote:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.removeEditorEventListeners(),this.$store.dispatch("notes/deleteNote",{id:this.data.id,initiator:e})},deleteDialogCancel:function(){this.deleteDialog=!1},setViewState:function(t){this.rectState="view",t.target.blur()},forceFocus:function(){var t;null===(t=this.$refs.text)||void 0===t||t.focus()},moveElementToSpreadNotes:function(){this.slideMode||this.isOutsideHardcover||(this.spreadNotesEl||(this.spreadNotesEl=this.createSpreadNotesElement()),this.spreadNotesEl.appendChild(this.$el))},moveElementToPageContainer:function(){this.slideMode||this.isOutsideHardcover||this.parentEl.appendChild(this.$el)},createSpreadNotesElement:function(){var t=document.getElementById("spread-notes");if(!t){var e=document.getElementById("book");t=r.default.createElement("div",{id:"spread-notes"},e)}return t},setTextareaDir:function(){if(this.$refs.text)if(this.$refs.text.value){var t=n.a.getDirection(this.$refs.text.value);this.$refs.text.dir=t&&"ltr"!==t?"rtl":"ltr"}else this.$refs.text.dir=this.$store.getters["i18n/isLocaleRtl"]?"rtl":"ltr"}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(131);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s,r,o=i(132),n=i.n(o),a=i(2),h=(s=window.getComputedStyle(document.documentElement,""),r=(Array.prototype.slice.call(s).join("").match(/-(moz|webkit|ms)-/)||""===s.OLink&&["","o"])[1],{dom:"WebKit|Moz|MS|O".match(new RegExp("("+r+")","i"))[1],lowercase:r,css:"-"+r+"-",js:r[0].toUpperCase()+r.substr(1)});e.default={name:"FlipMe",props:{pageId:{type:String,required:!0},isLeft:{type:Boolean,required:!0}},data:function(){return{angle:0,width:0,backfaceParams:null,nextPageParams:null,tween:null,crossOrigin:Object(a.default)().getCrossOrigin()}},created:function(){var t=this.$store.getters["pager/flipState"],e=this.isLeft?t.currentLeft:t.currentRight,i=e+(this.isLeft?-1:1),s=e+(this.isLeft?-2:2);this.backfaceParams=this.$store.getters["pager/flipParams"](i),this.nextPageParams=this.$store.getters["pager/flipParams"](s)},mounted:function(){var t=this,e={angle:19,width:0};this.tween=new n.a.Tween(e).to({angle:19,width:7},800).easing(n.a.Easing.Cubic.InOut).onUpdate((function(){if(t.width=e.width,t.angle=e.angle,0===e.width){var i=5*Math.random()+3,s=11*Math.random()+19;setTimeout((function(){t.tween.to({angle:s,width:i})}),10)}})).yoyo(!0).repeat(1/0).delay(2e3).repeatDelay(200).start(),this.$parent.$once("onContentContainerClick",this.stopAnimation)},beforeDestroy:function(){this.stopAnimation()},computed:{classes:function(){return{"flip-me-container":!0,left:this.isLeft,"translucent-reverse-side":this.singleMode&&this.isTranslucentReverseSide}},singleMode:function(){return this.$store.state.pager.singleMode},isRTLBook:function(){return this.$store.state.book.rightToLeft},isTranslucentReverseSide:function(){return this.$store.state.workspace.components.book.isTranslucentReverseSide},nextBackgrounds:function(){return this.getBackgroundsArray(this.nextPageParams.pageId)},backfaceBackgrounds:function(){return this.getBackgroundsArray(this.backfaceParams.pageId)},pagesSize:function(){return this.$store.getters["pages/size"]},backfaceImgStyle:function(){return this.getImageStyle(this.backfaceParams)},nextImgStyle:function(){return this.getImageStyle(this.nextPageParams)},maskStyle:function(){var t=100-this.width;return{transform:this.isLeft?"rotate3d(0,0,1,-".concat(this.angle,"deg) translate3d(-").concat(t,"%, 0%, 0)"):"rotate3d(0,0,1,".concat(this.angle,"deg) translate3d(").concat(t,"%, 50%, 0)"),transformOrigin:this.isLeft?"".concat(100-t,"% 100%"):"100% 100%"}},nextPageStyle:function(){var t=100-this.width;return{transform:this.isLeft?"rotate3d(0,0,1,".concat(this.angle,"deg)"):"rotate3d(0,0,1,-".concat(this.angle,"deg)"),transformOrigin:this.isLeft?"".concat(100-t,"% 100%"):"100% 100%",backgroundColor:this.$store.getters["pages/pageProp"](this.nextPageParams.pageId,"backgroundColor")}},shiftPageStyle:function(){var t=100-this.width;return{transform:this.isLeft?"translate3d(".concat(t,"%, 0%,0)"):"translate3d(-".concat(t,"%, -50%,0)")}},backfaceStyle:function(){var t,e,i=90-this.angle,s=this.width/Math.sin(i*Math.PI/180);if(this.isLeft){var r=s,o=100-2*s;t="rotate(-".concat(2*this.angle,"deg) translate3d(-").concat(o,"%, 0%,0)"),e="".concat(r,"% 100%")}else{var n=100-s,a=n-s;t="rotate(".concat(2*this.angle,"deg) translate3d(").concat(a,"%, 0%,0)"),e="".concat(n,"% 100%")}return{transform:t,transformOrigin:e,backgroundColor:this.$store.getters["pages/pageProp"](this.backfaceParams.pageId,"backgroundColor")}},nextGradientStyle:function(){return{background:h.css+"linear-gradient(".concat(this.isLeft?"right":"left",", rgba(0, 0, 0, ").concat((65-this.width)/100,") 0px, transparent ").concat(this.width,"%)")}},backGradientStyle:function(){var t=90-this.angle,e=this.width/Math.sin(t*Math.PI/180);return{transform:this.isLeft?"rotate(".concat(this.angle,"deg) translate3d(0, 10%, 1px)"):"rotate(-".concat(this.angle,"deg) translate3d(0, 10%, 1px)"),transformOrigin:"100% 100%",width:e+"%"}}},methods:{stopAnimation:function(){this.tween.delay(0).repeat(1)},getBackgroundsArray:function(t){var e=[];if(t){var i=this.$store.getters["pages/pageProp"](t,"textUrl"),s=this.$store.getters["pages/pageProp"](t,"substrateUrl");e.push(s),i&&e.push(i)}return e},getImageStyle:function(t){var e=t.wide,i="right"===t.pageSide,s=this.$store.state.pages.size.width,r=document.querySelector('.background[data-id="'+t.pageId+'"]');return(r&&r.style?r.style.cssText:"")+(e&&i?" transform: translate3d(-".concat(s,"px,0,0);"):"")}}}},,function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(135);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=function(t){return!isNaN(parseFloat(t))&&isFinite(t)};e.default={props:{size:{default:32},"line-size":{type:Number,default:3},"line-bg-color":{type:String,default:"#eee"},"line-fg-color":{type:String,default:"#2196f3"},speed:{type:Number,default:.8},spacing:{type:Number,default:4},message:{type:String,default:""},"font-size":{type:Number,default:13},"text-fg-color":{type:String,default:"#555"}},computed:{size_px:function(){switch(this.size){case"tiny":return 12;case"small":return 16;case"medium":return 32;case"large":return 48;case"big":return 64;case"huge":return 96;case"massive":return 128}return s(this.size)?this.size:32},line_size_px:function(){switch(this.size){case"tiny":return 1;case"small":return 2;case"medium":case"large":return 3;case"big":case"huge":return 4;case"massive":return 5}return s(this.lineSize)?this.lineSize:4},text_margin_top:function(){switch(this.size){case"tiny":case"small":case"medium":case"large":case"big":case"huge":case"massive":return Math.min(Math.max(Math.ceil(this.size_px/8),3),12)}return s(this.spacing)?this.spacing:4},text_font_size:function(){switch(this.size){case"tiny":case"small":case"medium":case"large":case"big":case"huge":case"massive":return Math.min(Math.max(Math.ceil(.4*this.size_px),11),32)}return s(this.fontSize)?this.fontSize:13},spinner_style:function(){return{margin:"0 auto","border-radius":"100%",border:this.line_size_px+"px solid "+this.lineBgColor,"border-top":this.line_size_px+"px solid "+this.lineFgColor,width:this.size_px+"px",height:this.size_px+"px",animation:"vue-simple-spinner-spin "+this.speed+"s linear infinite"}},text_style:function(){return{"margin-top":this.text_margin_top+"px",color:this.textFgColor,"font-size":this.text_font_size+"px","text-align":"center"}}}}},function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(139);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(407),r=i(14),o=i(719),n=i(2),a=0,h=3;e.default={mixins:[s.default],mounted:function(){this.resizeTimer=null},data:function(){return{pageResize:null,widthCache:0}},watch:{isZoomed:function(t){t||this.setCursor("inherit")},isCurrent:function(t){var e=this;this.lastIsCurrent!==t&&(this.alreadyLoaded&&this.getProperties(),this.lastIsCurrent=t,t&&(a=0,this.shouldRenderCanvas?this.renderCanvas():function t(){a!==h&&(setTimeout((function(){e.shouldRenderCanvas?e.renderCanvas():e.isCurrent&&t()}),200),!e.$store.state.workspace.animationInProgress&&e.thumbnailUrl&&a++)}()))},pageSize:function(){this.rerenderCanvas(!0)},pageResize:function(){this.rerenderCanvas()},backgroundColor:function(){this.rerenderCanvas()}},methods:{renderCanvas:function(){if(!this.$store.state.pager.zoomMode){var t=this.$refs.canvas;if(t){var e=t.getContext("2d"),i=new Image;i.crossOrigin=Object(n.default)().getCrossOrigin();var s=this.pageSize.width;this.widthCache=s;var r=this.pageSize.height,a="right"===this.pageSide&&this.isWide?-this.contentSize.width:this.contentSize.offsetX,h=this.contentSize.offsetY,l=this.contentSize.width*(this.isWide?2:1),c=this.contentSize.height,d=20,u=(c+=d)/this.contentSize.height,p=Math.floor(s*u)-s;l+=p,a-=d/2,h-=Math.floor(p/2),t.height=Math.floor(r*u),t.width=Math.floor(s*u);var f=t.width-s;t.style.top="-".concat(d/2,"px"),"right"===this.pageSide&&this.isWide?t.style.right="".concat(-Math.floor(f/2),"px"):t.style.left="".concat(-Math.floor(f/2),"px"),e.fillStyle=this.backgroundColor,e.fillRect(0,0,s,r),i.onload=function(){e.save(),e.translate(s,0),e.scale(-1,1),e.drawImage(i,a,h,l,c),e.restore(),Object(o.default)(e,0,0,t.width,t.height,2,1),t=null},i.src=this.thumbnailUrl}}},rerenderCanvas:function(){var t=this;arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.widthCache===this.pageSize.width||this.showCanvas&&this.isCurrent&&(null!==this.resizeTimer&&clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((function(){t.renderCanvas(),t.resizeTimer=null}),350))},getProperties:function(){this.thumbnailUrl=this.isStub&&this.enforceTransparentBg?this.whitePixelUrl:this.$store.getters["pages/pageProp"](this.pageId,"thumbnailUrl"),this.isReady=this.$store.getters["pages/pageProp"](this.pageId,"status")===r.default.READY,this.loadPending=this.$store.getters["pages/pageProp"](this.pageId,"loadPending"),this.hasError=this.$store.getters["pages/hasError"](this.pageId)},getAPIProperties:function(){this.isWide=this.$store.getters["pages/pageProp"](this.pageId,"wide"),this.isStub=this.$store.getters["pages/pageProp"](this.pageId,"stub"),this.pageResize=this.$store.getters["pages/pageProp"](this.pageId,"pageResize"),this.isHardcoverFirstPage?this.backgroundColor="rgba(255, 255, 255, .15)":this.backgroundColor=null===this.pageId?this.backgroundColor:this.$store.getters["pages/pageProp"](this.pageId,"backgroundColor")}},computed:{showCanvas:function(){return this.showThumbnail&&!this.isHardcoverFirstPage&&!!this.thumbnailUrl},shouldRenderCanvas:function(){return this.showCanvas&&this.$refs.canvas&&!this.$store.state.workspace.animationInProgress},className:function(){return{page:!0,"page-reverse-side":!0,bordered:this.bordered,unready:!this.isReady&&!this.hasError,error:this.hasError,light:this.backgroundLuma>.5,dark:this.backgroundLuma<=.5}},isHardcoverFirstPage:function(){return this.$store.getters["book/hasHardcover"]&&this.$store.getters["pages/isFirstPage"](this.id)},pageSize:function(){var t=this.isOutsideHardcover&&!this.isHardcoverFirstPage?1.03:1,e=this.size||!1,i=this.pagesSize,s=this.pageWidthMultiplier;return e&&e.width&&e.height?{width:Math.round(e.width*t),height:Math.round(e.height*t)}:{width:Math.round(i.width*s*t),height:Math.round(i.height*t)}},pageStyle:function(){return{width:this.pageSize.width+"px",height:this.pageSize.height+"px","background-color":this.backgroundColor}}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(142);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(35);e.default={extends:s.default,name:"ContentBlock",data:function(){return{itemId:this.data.type+"_"+this.data.itemId}},methods:{zoomToBLock:function(){this.$emit("block:zoomed",this.data.rect)}}}},function(t,e,i){"use strict";i.r(e);var s=i(144);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s,r,o=i(3),n=i(2),a=i(40);e.default={name:"ContentBase",props:{data:{type:Object,required:!0},isCurrent:{type:Boolean,required:!1}},data:function(){return{crossOrigin:Object(n.default)().getCrossOrigin(),crossWideItem:null,isHighlighted:!1,thumbnailBlob:null,blobCache:{}}},computed:{containerRect:function(){return{width:Math.round(this.data.rect[0]*this.data.scaleRatio.w),height:Math.round(this.data.rect[1]*this.data.scaleRatio.h),left:Math.round(this.data.rect[2]*this.data.scaleRatio.w),top:Math.round(this.data.rect[3]*this.data.scaleRatio.h)}},containerStyle:function(){var t={};return this.data.style?t=this.data.style:(t={width:this.containerRect.width+"px",height:this.containerRect.height+"px",left:this.containerRect.left+"px",top:this.containerRect.top+"px"},this.data.zIndex&&(t.zIndex=this.data.zIndex),Object(o.isUndefined)(this.data.angle)||0!==this.data.angle&&(t.transformOrigin="0px 0px 0px",t.transform="rotate("+this.data.angle+"rad)")),t},rawThumbnailUrl:function(){return this.data.previewUrl?/^https?:\/\//.test(this.data.previewUrl)?this.data.previewUrl:"assets/pages/content/"+encodeURIComponent(this.data.previewUrl):null},thumbnailStyle:function(){return this.getThumbnailStyle(this.thumbnailBlob)},playButtonStyle:function(){var t=Math.min(.5*this.data.rect[0]*this.data.scaleRatio.w,.5*this.data.rect[1]*this.data.scaleRatio.h).toFixed(0)+"px";return{maxWidth:t,maxHeight:t}},isCurrentPage:function(){return this.$store.getters["pager/isCurrentPage"]({pageId:this.data.page.id,pageSide:this.data.page.side})},isMobile:function(){return"mobile"===this.$store.state.workspace.layout}},created:function(){var t=this;this.data.crossWide&&"both"!==this.data.page.side&&(this.$on("crossWideRegistered",(function(e){t.crossWideItem=e})),this.$contentRegistry.registerContentItem(this.data.itemId,this.data.page.side,this))},beforeMount:function(){this.rawThumbnailUrl&&this.loadThumbnail()},mounted:function(){var t=this;this.rawThumbnailUrl||this.$emit("ready",this),this.data.crossWide&&(s=function(){t.isHighlighted=!0,t.crossWideItem&&(t.crossWideItem.isHighlighted=!0)},r=function(){t.isHighlighted=!1,t.crossWideItem&&(t.crossWideItem.isHighlighted=!1)},this.$el.addEventListener("mouseover",s),this.$el.addEventListener("mouseout",r))},beforeDestroy:function(){var t=this;this.data.crossWide&&(this.$el.removeEventListener("mouseover",s),this.$el.removeEventListener("mouseout",r),this.$contentRegistry.deregisterContentItem(this.data.itemId,this.data.page.side)),this.thumbnailBlob&&(this.thumbnailBlob=null),this.blobCache&&(Object.keys(this.blobCache).forEach((function(e){return window.URL.revokeObjectURL(t.blobCache[e])})),this.blobCache=null)},watch:{rawThumbnailUrl:function(t){t?this.loadThumbnail():this.thumbnailBlob&&(this.thumbnailBlob=null)},isCurrentPage:function(t){t||(this.isHighlighted=!1,this.crossWideItem&&(this.crossWideItem.isHighlighted=!1))}},methods:{loadThumbnail:function(){var t=this,e=this.blobCache[this.rawThumbnailUrl];e?this.thumbnailBlob=e:Object(a.default)({url:this.rawThumbnailUrl,autofillCrossOrigin:!1,callback:function(e){t.ready||(t.ready=!0,"image"!==t.data.type&&t.$emit("ready",t)),t.thumbnailBlob=e,Object(o.isObject)(t.blobCache)&&(t.blobCache[t.rawThumbnailUrl]=t.thumbnailBlob)},errorback:function(e){t.error=!0,t.$emit("error",t,e)}})},getThumbnailStyle:function(t){var e={};return this.thumbnailBlob&&(e.backgroundImage='url("'+t+'")'),e}}}},function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(148);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(35),r=i(24);function o(){return(o=Object.assign||function(t){for(var e=1;e1)return null;var i=this.getImageInfo(e);return Object(r.default)().getImageFileName(i)},popupFileName:function(){if(!(this.data.name&&this.data.sizes&&this.modalRect.width&&this.modalRect.height))return null;var t=Math.max(this.modalRect.width,this.modalRect.height),e=this.getImageInfo(t);return Object(r.default)().getImageFileName(e)},animationInProgress:function(){return this.$store.getters["workspace/animationInProgress"]}},methods:{onImageClick:function(){this.hasPopup&&!this.animationInProgress&&(Date.now()>this.tapTimeout&&Date.now()>this.closeTimeout&&setTimeout(this.imageClick,this.$store.state.workspace.doubletapInterval+1),this.tapTimeout=Date.now()+this.$store.state.workspace.doubletapInterval)},imageClick:function(){this.isFrozenOrNotReady||this.isEmbed||(this.imageLoad(),this.showModal(),this.$emit("image:click",this),this.$root.$emit("image",{action:"click",url:this.getApiFileName()}))},preventDefault:function(t){t.preventDefault()},showModal:function(){this.isModalShown=!0,this.$nextTick((function(){var t=this;this.$refs.modalWindow.show(),this.$refs.modalWindow.$once("hidden",(function(){t.isModalShown=!1,t.crossWideItem&&(t.isHighlighted=!0,t.crossWideItem.isHighlighted=!0),t.$root.$emit("image",{action:"close",url:t.getApiFileName()}),t.closeTimeout=Date.now()+500}))}))},imageLoad:function(){var t=this;Object(o.default)({url:this.imageUrlRaw,callback:function(e){var i=document.createElement("img");i.onload=function(){t.data.originalSize||(t.width=i.naturalWidth,t.height=i.naturalHeight),t.imageBlobSrc=e,t.$refs.modalWindow.loaded(),t.$emit("image:loaded",t),t.$root.$emit("image",{action:"loaded",url:t.getApiFileName()})},i.onerror=function(e){t.$refs.modalWindow.error(),t.$emit("image:error",t,e)},i.src=e,i.style.width="100%"},errorback:function(e){t.$refs.modalWindow.error(),t.$emit("image:error",t,e)}})},previewLoad:function(t){var e=this;if(t){var i=document.createElement("img");i.onload=function(){e.$emit("ready",e),e.addHiddenThumbnail(t),setTimeout((function(){e.makeThumbnailVisible(t)}),100)},i.onerror=function(t){e.$emit("error",e,t)},i.src=t}},addHiddenThumbnail:function(t){if(!this.cachedThumbnails.some((function(e){return e.id===t}))){var e={visibility:"visible",zIndex:-1},i={id:t,style:h({},this.getThumbnailStyle(t),e)};this.cachedThumbnails.push(i)}},makeThumbnailVisible:function(t){this.cachedThumbnails.forEach((function(e){e.id===t?(e.style.visibility="visible",e.style.zIndex=null):e.style.visibility="hidden"}))},getImageInfo:function(t){window.devicePixelRatio>=1.5&&(t*=1.5);var e=this.data.sizes.reduce((function(e,i){return ee?i:e:i>=t&&i=0||Object(o.classPath)(t.target).indexOf("modal-close")>=0)&&(this.historyEnabled&&0!==window.history.length?window.history.back():this.hide())},loading:function(){this.isLoaded=!1},loaded:function(){this.isLoaded=!0},error:function(){this.hasError=!0},onResize:function(){if(this.isAndroid){var t=document.activeElement;if("input"===t.tagName.toLowerCase()||"textarea"===t.tagName.toLowerCase()){var e=t.getBoundingClientRect();e.top>window.innerHeight/2&&(this.androidKeyboardShift=-e.top/4)}else"iframe"===t.tagName.toLowerCase()?this.heightOverride=window.innerHeight:0!==this.androidKeyboardShift&&(this.androidKeyboardShift=0,this.heightOverride=null)}}},mounted:function(){window.addEventListener("resize",this.onResize),this.$root.$el.appendChild(this.$el)},beforeDestroy:function(){var t=this;window.removeEventListener("resize",this.onResize),this.$store.dispatch("workspace/setModalOpened",!1),setTimeout((function(){var e,i;null===(e=(i=t.$el).remove)||void 0===e||e.call(i)}),this.delay)},components:{spinner:s.default}}},function(t,e,i){i(0).register({"rounded-close":{width:16,height:16,viewBox:"0 0 16 16",data:''}})},function(t,e,i){},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(158);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(35);i(734);e.default={extends:s.default,name:"ContentGallery",props:[]}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(161);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(8),r=i(35),o=i(2),n=i(21);i(737),i(738);e.default={extends:r.default,name:"ContentGif",props:[],data:function(){return{isIdle:!0,isLoading:!1,isPlaying:!1,isLoaded:!1,isEnded:!1,isAutoplay:this.data.autoplay,imgWidth:null,imgHeight:null,imgRatio:null,imageSrcCache:null,preloaderTimeout:null,loopTimeout:null,tapTimeout:0}},computed:{singleMode:function(){return this.$store.state.pager.singleMode},pageWidth:function(){return this.$store.getters["pages/size"].width},crossWideStyles:function(){if(!this.singleMode||!this.data.crossWide)return null;var t;if("left"===this.data.page.side){var e=this.$el&&this.$el.parentNode.style.marginLeft?parseInt(this.$el.parentNode.style.marginLeft,10):0;t=(this.pageWidth-this.containerRect.left-e)/2}else{var i=this.$el&&this.$el.parentNode.style.marginRight?parseInt(this.$el.parentNode.style.marginRight,10):0,s=this.pageWidth-this.containerRect.left-i;t=(this.containerRect.width-s)/2+s}return{left:(t=Math.floor(t))+"px"}},crossWideReplayStyles:function(){if(!this.singleMode||!this.data.crossWide||"right"===this.data.page.side)return null;var t=this.$el&&this.$el.parentNode.style.marginLeft?parseInt(this.$el.parentNode.style.marginLeft,10):0,e=this.pageWidth-this.containerRect.left-t;return{right:this.containerRect.width-e+7+"px"}},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:"";this.$store.state.workspace.policiesUpdated;return/^https?:\/\//.test(this.data.url)?Object(o.default)().translatePath(this.data.url+t):Object(o.default)().translatePath("assets/pages/content/"+encodeURIComponent(this.data.url)+t)},rand:function(){return this.$store.state.content.rands[this.data.itemId]},isFrozenOrNotReady:function(){return this.$store.state.workspace.freezed||"ready"!==this.$store.state.workspace.status||this.$store.state.pager.freezed},isEmbed:function(){return this.$store.state.workspace.isEmbed},animationInProgress:function(){return this.$store.state.workspace.animationInProgress},isLoadedAndVisible:function(){return this.isLoaded&&!this.$store.state.workspace.preloader}},mounted:function(){(!this.data.crossWide&&!this.rand||this.data.crossWide&&!this.crossWideItem&&!1===this.data.loop)&&this.newRand(),this.updateSrcCache(),this.$nextTick(this.checkAutoplay)},watch:{isCurrentPage:"currentPageChanged",isLoadedAndVisible:function(t){t&&(!this.crossWideItem||this.crossWideItem.isLoaded||this.singleMode)&&(this.isLoading=!1,this.playGif(this),this.crossWideItem&&!this.singleMode&&(this.crossWideItem.isLoading=!1,this.playGif(this.crossWideItem)),this.$emit("gif:loaded",this),this.$root.$emit("gif",{action:"loaded",url:this.data.url}))},imageSrc:"updateSrcCache",animationInProgress:function(t){t||this.$emit("pageAnimationEnded")}},methods:{playGif:function(t){t.isPlaying=!0,!1===t.data.loop&&t.data.duration&&(t.loopTimeout=setTimeout((function(){t.isPlaying=!1,t.isEnded=!0}),t.data.duration+300))},onGifClick:function(t){var e=this;Date.now()>this.tapTimeout&&setTimeout((function(){e.gifClick(t)}),this.$store.state.workspace.doubletapInterval+1),this.tapTimeout=Date.now()+this.$store.state.workspace.doubletapInterval},gifClick:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.isFrozenOrNotReady&&!this.isEmbed){if(this.data.url&&this.isIdle&&!this.isLoading)this.$emit("gif:click",this),this.$root.$emit("gif",{action:"click",url:this.data.url}),this.loadGif();else if(!1===this.data.loop&&this.isEnded){var i=this.isMobile&&document.activeElement!==this.$el&&!this.isHighlighted,r=this.isMobile&&this.isHighlighted;if(!e&&!r&&(i||-1===Object(s.classPath)(t.target).indexOf("replay")))return void(i&&(this.isHighlighted=!0,this.crossWideItem&&(this.crossWideItem.isHighlighted=!0)));this.unloadGif(!e),this.$nextTick(this.loadGif),this.isMobile&&this.isHighlighted&&(this.isHighlighted=!1,this.crossWideItem&&(this.crossWideItem.isHighlighted=!1))}else(this.isPlaying||this.isLoading)&&this.unloadGif(!e&&!1===this.data.loop);this.crossWideItem&&!e&&this.crossWideItem.gifClick(null,!0)}},loadGif:function(){var t=this;this.img||(this.img=document.createElement("img")),this.img.onload=function(){clearTimeout(t.preloaderTimeout),t.imgWidth=t.img.naturalWidth,t.imgHeight=t.img.naturalHeight,t.imgRatio=Math.max(t.data.rect[0]/t.imgWidth,t.data.rect[1]/t.imgHeight),t.isLoaded=!0},this.img.onerror=function(e){t.$emit("gif:error",t,e)},this.crossOrigin&&(this.img.crossOrigin=this.crossOrigin),this.img.src=this.imageSrcCache,this.isIdle=!1,this.preloaderTimeout=setTimeout((function(){t.isLoading=!0}),this.data.loop?200:0)},unloadGif:function(t){var e;this.rawThumbnailUrl&&(clearTimeout(this.preloaderTimeout),clearTimeout(this.loopTimeout),this.isLoading=!1,this.isEnded=!1,this.img&&(this.img.onload=null,this.img.onerror=null,this.img.src=""),null===(e=this.$refs.gifImg)||void 0===e||e.removeAttribute("src"),this.isLoaded=!1,this.isPlaying=!1,this.isAutoplay=!1,this.isIdle=!0,t&&this.newRand(),this.$emit("gif:stop",this),this.$root.$emit("gif",{action:"stop",url:this.data.url}))},checkAutoplay:function(){this.data.autoplay&&(this.data.fileSize<1048576||!this.isMobile?this.isCurrentPage&&this.loadGif():this.isAutoplay=!1)},currentPageChanged:function(t){var e=this;t?this.animationInProgress?this.$once("pageAnimationEnded",(function(){e.checkAutoplay()})):this.checkAutoplay():(this.unloadGif(!0),this.data.autoplay&&(this.isAutoplay=!0))},newRand:function(){this.$store.dispatch("content/newRand",{itemId:this.data.itemId})},updateSrcCache:function(){this.imageSrcCache===this.imageSrc||this.isLoaded||(this.imageSrcCache=this.imageSrc)}},components:{spinner:n.default}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(164);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(35),r=i(16),o=i(2),n=i(741),a=i(755),h=i(758),l=i(424),c=(i(760),i(761),i(15));e.default={extends:s.default,name:"ContentVideo",data:function(){var t;return{playerPromise:new Promise((function(e){t=e})),resolvePlayer:t,isModalShown:!1,isPlayerShown:!1,playerLoaded:!1,isPlaying:!1,volumeEnabled:!1,isEnded:!1,isMutedByPlayer:!1,tapTimeout:0,hasError:!1,videoData:null,showPreventer:!0,currentTime:null,lastProgressId:null,originalStartFrom:null}},beforeMount:function(){this.data.originalUrl?this.videoData=this.getVideoInfo(this.data.originalUrl):this.videoData=this.data,this.originalStartFrom=this.videoData.startFrom},beforeDestroy:function(){this.saveTime(this.currentTime),this.unbindEvents()},watch:{isCurrentPage:"currentPageChanged",isPlaying:"setPlayingWithSound",isMutedByPlayer:"setPlayingWithSound",shouldAutoplay:function(t){t&&!this.isPlayerShown&&this.startInline()},data:function(t){t.originalUrl?this.videoData=this.getVideoInfo(t.originalUrl):this.videoData=t},isInline:function(t,e){e&&!t&&this.isPlayerShown&&(this.isPlayerShown=!1,this.playerLoaded=!1)},currentTime:function(t){this.saveTime(t)}},mounted:function(){this.shouldAutoplay&&this.startInline()},computed:{isInline:function(){var t=this.$store.state.workspace.userAgentInfo;return"dialog"!==this.data.mode&&!this.data.crossWide&&!t.browser.safari&&!this.isPublisher&&this.data.rect[0]*this.data.scaleRatio.w>144&&this.data.rect[1]*this.data.scaleRatio.h>100},shouldAutoplay:function(){return!this.isFrozenOrNotReady&&!this.isEmbed&&!this.hasError&&!this.isPublisher&&!this.isMobile&&this.isInline&&(this.$store.state.caniuse.video.inlineMutedAutoplay||this.$store.state.caniuse.video.inlineAutoplay)&&this.data.autoplay},isThumbnailShown:function(){return("dialog"!==this.data.mode||this.data.showImage)&&!this.playerLoaded},isIos:function(){return this.$store.state.workspace.userAgentInfo.os.ios},isModalSmall:function(){return this.modalRect.height<=200},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,this.data.accessKey?t="https://vimeo.com/"+this.data.id+"/"+this.data.accessKey:this.data.originalUrl&&(t=this.data.originalUrl.split("#")[0].split("?")[0]);break;case"wistia":this.data.account?t="https://"+this.data.account+".wistia.com/medias/"+this.data.id:this.data.originalUrl&&(t=this.data.originalUrl.split("#")[0].split("?")[0]);break;default:t=this.data.originalUrl||this.data.id}return t},modalRect:function(){var t=Object(r.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"}},containerClasses:function(){return{highlighted:this.isHighlighted}},isFrozenOrNotReady:function(){return this.$store.state.workspace.freezed||"ready"!==this.$store.state.workspace.status||this.$store.state.pager.freezed},isMuted:function(){return this.$store.state.sound.muteSound||this.isInline&&!this.$store.state.caniuse.video.inlineAutoplay&&this.$store.state.caniuse.video.inlineMutedAutoplay},isEmbed:function(){return this.$store.state.workspace.isEmbed},animationInProgress:function(){return this.$store.getters["workspace/animationInProgress"]},rawThumbnailUrl:function(){return this.data.image?/^https?:\/\//.test(this.data.image)?this.data.image:"assets/pages/content/"+this.data.image:null}},methods:{onVideoClick:function(){this.animationInProgress||(Date.now()>this.tapTimeout&&setTimeout(this.videoClick,this.$store.state.workspace.doubletapInterval+1),this.tapTimeout=Date.now()+this.$store.state.workspace.doubletapInterval)},videoClick:function(){this.isFrozenOrNotReady||this.isEmbed||this.hasError||(this.isPublisher?this.$root.$emit("video",{action:"publisher",url:this.apiVideoUrl}):(this.$emit("video:click",this),this.isInline?this.startInline():this.openinModal()))},startInline:function(){var t,e=this;this.currentTime=this.loadTime(),this.videoData.startFrom=null!==(t=this.currentTime)&&void 0!==t?t:this.originalStartFrom,this.playerPromise.then((function(){"youtube"===e.data.provider&&(e.playerLoaded=!0)})),this.isPlayerShown=!0,this.$nextTick((function(){this.bindEvents()}))},openinModal:function(){var t;this.currentTime=this.loadTime(),this.videoData.startFrom=null!==(t=this.currentTime)&&void 0!==t?t:this.originalStartFrom,this.isModalShown=!0,this.$nextTick((function(){var t=this;this.$refs.modalWindow.show(),this.$nextTick((function(){this.bindEvents()})),this.$refs.modalWindow.$once("hidden",(function(){t.isModalShown=!1,t.isPlaying=!1,t.$emit("video:close",t),t.$root.$emit("video",{action:"close",url:t.apiVideoUrl}),t.unbindEvents()}))}))},playPause:function(t){t.preventDefault(),this.isPlaying?this.$refs.player.pause():this.$refs.player.play()},getVideoInfo:function(t){var e,i=/https?:\/\/(?:www)?(?:player)?\.?(?:vimeo\.com\/)(?:video\/)?(\d*)\/?([a-zA-Z\d]*)?/,s=/https?:\/\/(.*)?(?:\.wistia\.com|fast\.wistia\.net)\/(?:medias|embed\/iframe)\/([^?]*)/,r=/https?:\/\/(?:www\.)?youtu\.?be\/?(?:\.com\/)?(?:embed\/)?(?:watch\?v=)?([a-zA-Z_\-\d]*)(?:\?.*)?/.exec(t);r&&r.length>1&&(e={provider:"youtube",id:r[1]});var o=i.exec(t);o&&o.length>1&&(e={provider:"vimeo",id:o[1],accessKey:o[2]});var n=s.exec(t);return n&&n.length>1&&(e={provider:"wistia",id:n[2]},n[1]&&(e.account=n[1])),Object(c.default)(this.data,e)},currentPageChanged:function(t){t?!this.isMobile&&this.data.autoplay&&this.$emit("play"):this.$emit("pause")},bindEvents:function(){var t=this;this.$refs.player.$on("play",(function(e,i,s){"youtube"!==t.data.provider&&t.isInline&&(t.playerLoaded=!0);var r=0===e||0===(null==e?void 0:e.seconds);t.isEnded&&r&&t.originalStartFrom&&t.$refs.player.setCurrentTime(t.originalStartFrom),t.isMutedByPlayer=s,t.isEnded=!1,t.isPlaying=!0,t.showPreventer=!0,t.$emit("video:play",e,t,i),t.$root.$emit("video",{action:"play",url:t.apiVideoUrl,time:e})})),this.$refs.player.$on("pause",(function(e,i,s){t.isPlaying=!1,t.isMutedByPlayer=s,t.currentTime=e,t.$emit("video:pause",e,t,i),t.$root.$emit("video",{action:"pause",url:t.apiVideoUrl,time:e})}));var e=function(e,i,s){t.isEnded=!0,t.isMutedByPlayer=s,t.isPlaying=!1,t.currentTime=t.originalStartFrom,t.$emit("video:end",e,t,i),t.$root.$emit("video",{action:"stop",url:t.apiVideoUrl,time:e})};this.$refs.player.$on("end",e),this.$refs.player.$on("ended",e);var i=function(e,i,s){t.currentTime=e,t.isMutedByPlayer=s,t.$emit("video:seek",e,t,i),t.$root.$emit("video",{action:"seekTo",url:t.apiVideoUrl,time:e})};this.$refs.player.$on("seek",i),this.$refs.player.$on("seeked",i),this.$refs.player.$on("timeupdate",(function(e,i,s){t.isMutedByPlayer=s,t.currentTime=e})),this.$refs.player.$on("secondchange",(function(e,i,s){"wistia"===t.data.provider&&t.isEnded||(t.currentTime=e),t.isMutedByPlayer=s})),this.$refs.player.$on("error",(function(e,i,s){"PasswordError"!==e.name&&"PrivacyError"!==e.name?(t.$emit("video:error",e,t,i),t.isModalShown=!1,t.isPlayerShown=!1,t.playerLoaded=!1,t.isPlaying=!1,t.hasError=!0,t.isMutedByPlayer=s):t.showPreventer=!1})),this.$refs.player.$on("loaded",(function(e,i,s){t.showPreventer=!0,"youtube"!==t.data.provider&&t.isInline&&(t.playerLoaded=!0),t.isMutedByPlayer=s,t.$emit("video:loaded",e,t,i)})),this.$refs.player.$on("ready",(function(){t.$nextTick((function(){t.resolvePlayer()}))}))},unbindEvents:function(){this.$refs.player&&(this.$refs.player.$off("play"),this.$refs.player.$off("pause"),this.$refs.player.$off("end"),this.$refs.player.$off("ended"),this.$refs.player.$off("seek"),this.$refs.player.$off("seeked"),this.$refs.player.$off("error"),this.$refs.player.$off("loaded"),this.$refs.player.$off("ready"))},setPlayingWithSound:function(){this.$store.state.caniuse.userInteractions.firstClick||this.isMutedByPlayer||this.$store.dispatch("caniuse/setFirstClick"),this.$store.dispatch("content/setVideoPlayingWithSound",{playing:this.isPlaying&&!this.isMutedByPlayer,itemId:this.data.itemId})},getVideoHash:function(t){return[[this.videoData.page.id,this.videoData.page.isWide?"wide":this.videoData.page.side].join("_"),this.videoData.provider,this.videoData.id,t].join("_")},saveTime:function(t){var e=this.getVideoHash("time"),i=this.getVideoHash("id"),s=Object(o.default)().getSessionStorage().getItem(i);this.data.crossWide&&s&&s!=this.lastProgressId||(this.lastProgressId=Date.now(),Object(o.default)().getSessionStorage().setItem(e,t),Object(o.default)().getSessionStorage().setItem(i,this.lastProgressId))},loadTime:function(){var t=this.getVideoHash("time"),e=Object(o.default)().getSessionStorage().getItem(t),i=e?parseInt(e,10):null,s=this.getVideoHash("id");return this.lastProgressId=Object(o.default)().getSessionStorage().getItem(s),null===i||isNaN(i)?null:i}},components:{youtube:n.default,vimeo:a.default,wistia:h.default,"modal-window":l.default}}},function(t,e,i){"use strict";i.r(e);var s=i(166);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s,r=i(743),o=i.n(r);function n(){return(n=Object.assign||function(t){for(var e=1;e.1?t:.3})).catch(this.error),this.player.setMuted(!0).catch(this.error)):(this.player.setMuted(!1).catch(this.error),this.player.setVolume(this.volume).catch(this.error))},setVolume:function(t){this.player.setVolume(t).catch(this.error)},setSize:function(){this.player.element&&(this.player.element.width=this.width,this.player.element.height=this.height)},setCurrentTime:function(t){this.player.setCurrentTime(t)},init:function(){var t=this;this.player.ready().then((function(){t.start&&t.player.setCurrentTime(t.start).then((function(){t.autoplay||t.player.pause()})),t.$emit("ready",t.player),t.setMute(t.mute),a.forEach((function(e){return n.call(t,e)}))})).catch(this.error)},error:function(t){var e=this;if(-1!==t.message.indexOf("is not embeddable")&&this.$el.querySelector("iframe"))return;"PasswordError"!==t.name&&"PrivacyError"!==t.name||this.player.element&&(this.$nextTick((function(){e.player.element.focus()})),setTimeout((function(){e.player.element.focus()}),100)),this.$emit("error",t,this.player)}},mounted:function(){var t={width:this.width,height:this.height,autoplay:this.autoplay&&this.isCurrentPage,muted:this.mute,transparent:!1,playsinline:!0};this.accessKey?t.url="https://www.vimeo.com/"+this.id+"/"+this.accessKey:this.embedUrl?t.url=this.embedUrl:t.id=this.id,this.player=new s.default(this.$el,r(t,this.options)),this.init(),this.$parent.$on("play",this.play),this.$parent.$on("stop",this.stop),this.$parent.$on("pause",this.pause)},beforeDestroy:function(){this.player&&this.player.unload().catch((function(){})),this.$parent.$off("play",this.play),this.$parent.$off("stop",this.stop),this.$parent.$off("pause",this.pause)}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(171);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(50),r=i(12),o=i(2),n=i(3);function a(){return(a=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{forceHide:!0};this.showPanel=!1,t.forceHide&&(this.forceShow=!1)},show:function(){null===this.userRect||this.showPanel||(this.showPanel=!0)},setPosition:function(){var t=this.calculatePanelPosition();this.panelRect.left=t.left,this.panelRect.top=t.top,this.vertical=t.vertical,this.panelStyle={left:this.panelRect.left+"px",top:this.panelRect.top+"px"}},calculatePanelPosition:function(){var t;t=this.cornerSymbols.first.top===this.cornerSymbols.last.top?"left"===this.userRect.cursorHSide?{vertical:"top",horizontal:"first"}:{vertical:"bottom",horizontal:"last"}:"top"===this.userRect.cursorVSide?{vertical:"top",horizontal:"first"}:{vertical:"bottom",horizontal:"last"};var e=this.calculatePanelCoordinates(t);return e.top<50?(t.vertical="bottom",e=this.calculatePanelCoordinates(t)):e.top>this.holderSize.height-50&&(t.vertical="top",e=this.calculatePanelCoordinates(t)),t=Object(s.default)(t,e)},calculatePanelCoordinates:function(t){var e,i,s,r=null!==(e=null===(i=this.userRect)||void 0===i?void 0:i.offsetX)&&void 0!==e?e:0,o=null!==(s=this.userRect.offsetY)&&void 0!==s?s:0,n=this.cornerSymbols[t.horizontal],a="first"===t.horizontal&&n.collisions.left||"last"===t.horizontal&&!n.collisions.right?n.width:0,h="bottom"===t.vertical?n.height:0;return{left:this.pageLeftPadding+this.hardcoverLeftPadding+n.left+a+r,top:this.hardcoverTopPadding+n.top+h+o}},copyText:function(){this.$root.$emit("contextMenu:copyText"),this.hide()},copyTextLink:function(){this.$root.$emit("contextMenu:copyTextLink"),this.hide()},onMouseEnter:function(){this.forceShow=!0},onMouseLeave:function(){this.forceShow=!1}}}},function(t,e,i){},function(t,e,i){i(0).register({"add-note":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(179);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(132),r=i.n(s),o=i(16),n=i(3),a=i(438),h=i(36),l=i.n(h),c=i(117),d=i(418),u=i(420),p=i(422),f=i(426),g=i(428),m=i(430),v=i(434),b=i(436),S=i(437),w=i(27);i(176);function y(t){return z(t)||x(t)||P(t)||k()}function k(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(t,e){if(t){if("string"==typeof t)return $(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?$(t,e):void 0}}function x(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function z(t){if(Array.isArray(t))return $(t)}function $(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i1&&1===e){var r=y(this.slidesCache.current.map((function(t){return t.id}))).filter((function(t){return null!==t})).some((function(t){return i.$store.getters["pages/pageProp"](t,"textBlocks")}),this);this.selectTextEnabled&&r&&this.showSelectTextTip()}this.refreshScroll()},status:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){this.refreshScroll(),this.$store.dispatch("workspace/setStatus",t);var e=["sliding","pan"].indexOf(status)>=0?"inProgress":"pending";this.$store.dispatch("pager/setFlipState",{newState:e}),"ready"===t?this.$store.dispatch("workspace/unsetAnimationProgress"):this.$store.dispatch("workspace/setAnimationProgress"),this.updateNoteIcon()})),slides:function(t,e){var i=this;if(this.scrollLock)this.scrollLock=!1;else{var s=e.current[0].state,r=t.current[0].state;if(s.mode===r.mode){this.isSlideMode||this.isSingleMode||this.updateHorizontalScale(t.current[0],e.current[0]);var o=this.$store.getters["pager/getDeltaTurns"](s,r),n=Math.abs(o)>1;!this.isRtl&&o>0||this.isRtl&&o<0?(n&&this.replaceCachedSlide("right",t.current),this.isZoomed?(this.pendingSlide="right",this.zoomOut()):this.$nextTick((function(){i.animateSlides("right",!1,!0)}))):(!this.isRtl&&o<0||this.isRtl&&o>0)&&(n&&this.replaceCachedSlide("left",t.current),this.isZoomed?(this.pendingSlide="left",this.zoomOut()):this.$nextTick((function(){i.animateSlides("left",!1,!0)})))}}},workspaceSize:function(t,e){!this.isMobile||t.width===e.width&&t.height===e.height||this.zoomOut(!0)},containerSize:function(){1===this.zoomFactor||this.isMobile||this.refreshScroll()},pageSizes:function(t){var e=this,i=this.slidesCache;Object.keys(i).forEach((function(s){for(var r=0;r=this.spreadSizes.current.width?Math.round((this.containerSize.width-this.spreadSizes.current.width)/2)+"px":0:Math.round(this.spreadSizes.current.left)+"px",top:this.isZoomed?this.containerSize.height>=this.spreadSizes.current.height?Math.round((this.containerSize.height-this.spreadSizes.current.height)/2)+"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.fastAnimation?1:this.zoomAnimationSpeed)+"ms cubic-bezier(0.215, 0.61, 0.355, 1)","transform "+(this.fastAnimation?1:this.zoomAnimationSpeed)+"ms cubic-bezier(0.215, 0.61, 0.355, 1)"]:["-webkit-transform 0ms","transform 0ms"]},"pinch"!==this.status&&"scale"!==this.status&&"animating"!==this.status?t.current.transform="":0!==this.slideScrollTop||0!==this.slideScrollLeft?t.current.transform="translate3d("+(this.containerSize.width1?this.$root.$emit("zoomed"):(this.scaleFactor<1||this.zoomPanel&&1===this.scaleFactor)&&this.$root.$emit("unzoomed")}},setZoom:function(t,e){if(!this.isWorkspaceFrozen&&"ready"===this.status){this.scaleFactor=t/this.zoomFactor,this.updateSlideScroll(!1);var i=e||{x:this.workspaceSize.width/2,y:this.workspaceSize.height/2},s={x:i.x-this.spreadSizes.current.left,y:i.y-this.spreadSizes.current.top},r=Object(a.getNewBounds)(this.spreadSizes.current,this.scaleFactor,s);r=Object(a.normalizeBounds)(r,this.containerSize),this.scaleOrigin=Object(a.getOrigin)(this.spreadSizes.current,r,this.scaleFactor),this.newBounds=r,this.fastAnimation=!0,this.status="animating",this.refreshScroll()}},setScaleStart:function(){this.minScale=Math.min(this.containerSize.width/this.spreadSizes.current.width,this.containerSize.height/this.spreadSizes.current.height),this.maxScale=this.maxZoom/this.zoomFactor,this.scaleFactor=1,this.updateSlideScroll(!1),this.scaleOrigin={x:this.workspaceSize.width/2-this.slideScrollLeft,y:this.workspaceSize.height/2-this.slideScrollTop},this.status="scale"},setScale:function(t){if("scale"===this.status){var e=this.minScale+(this.maxScale-this.minScale)*t,i=Object(a.getNewBounds)(this.spreadSizes.current,e,{x:this.workspaceSize.width/2-this.slideScrollLeft,y:this.workspaceSize.height/2-this.slideScrollTop});i=Object(a.normalizeBounds)(i,this.containerSize),this.scaleOrigin=Object(a.getOrigin)(this.spreadSizes.current,i,e);var s=Math.min(this.maxScale,Math.max(this.minScale,e));this.scaleFactor=this.checkScaleFactorForZoom(s,this.zoomFactor,this.maxZoom)}},setScaleFinish:function(){if("scale"===this.status){var t=Object(a.getNewBounds)(this.spreadSizes.current,this.scaleFactor,this.scaleOrigin);t=Object(a.normalizeBounds)(t,this.containerSize),this.zoomFactor=1*(this.zoomFactor*this.scaleFactor).toFixed(2),this.scaleFactor=1,this.slideScrollLeft=this.isZoomed?t.left:0,this.slideScrollTop=this.isZoomed?t.top:0,this.status="ready"}},onTransitionEnd:function(t){t&&"transform"===t.propertyName&&("animating"===this.status&&(this.fastAnimation=!1,this.lastZoomFactor=Math.max(this.zoomFactor,this.defaultZoomFactor),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.isMini||(this.minScale=Math.min(this.containerSize.width/this.spreadSizes.current.width,this.containerSize.height/this.spreadSizes.current.height),this.scaleFactor=1,this.pinchCenter=t.center,this.isZoomed?(this.updateSlideScroll(!1),this.scaleOrigin={x:t.center.x-this.slideScrollLeft,y:t.center.y-this.slideScrollTop}):this.scaleOrigin={x:t.center.x-this.spreadSizes.current.left,y:t.center.y-this.spreadSizes.current.top},this.status="pinch")},onPinchMove:function(t){if("pinch"===this.status){var e=this.minScale1?this.$root.$emit("zoomed"):this.scaleFactor<1&&this.$root.$emit("unzoomed")}},changeZoom:function(t){switch(t.action){case"setZoom":this.setZoom(t.zoomFactor);break;case"startScale":this.setScaleStart();break;case"changeScale":this.setScale(t.scalePosition);break;case"endScale":this.setScaleFinish();break;case"zoomIn":this.onTap();break;case"zoomOut":this.zoomOut()}},onPanStart:function(t){var e,i;if(!(this.blockPan||this.isWorkspaceFrozen||this.isZoomed||"ready"!==this.status||t.srcEvent&&(t.srcEvent.metaKey||t.srcEvent.ctrlKey)||(null==t||null===(e=t.target)||void 0===e||null===(i=e.classList)||void 0===i?void 0:i.contains("note-article")))){var s=document.elementFromPoint(t.center.x-t.deltaX,t.center.y-t.deltaY);s&&"select-text-block"===s.getAttribute("data-set")||(this.status="pan",this.$root.$emit("turnStart"))}},onPanMove:function(t){var e,i,s=this;if(!(this.blockPan||this.isWorkspaceFrozen||"pan"!==this.status||this.isZoomed||(null==t||null===(e=t.target)||void 0===e||null===(i=e.classList)||void 0===i?void 0:i.contains("note-article")))){var r=1;(t.deltaX<0&&this.isRightmostPage||t.deltaX>0&&this.isLeftmostPage)&&(r=.3),window.requestAnimationFrame((function(){s.delta=t.deltaX*r}))}},onPanEnd:function(t){var e,i;if(!this.isWorkspaceFrozen&&"pan"===this.status&&!this.isZoomed&&!(null==t||null===(e=t.target)||void 0===e||null===(i=e.classList)||void 0===i?void 0:i.contains("note-article"))){var s=Math.abs(t.overallVelocityX).toPrecision(2),r=Math.abs(t.deltaX);t.deltaX>0&&!this.isLeftmostPage&&(r>this.maxDelta/3||s>.5)?this.animateSlides("left"):t.deltaX<0&&!this.isRightmostPage&&(r>this.maxDelta/3||s>.5)?this.animateSlides("right"):this.animateSlides("center")}},zoomOut:function(t){if(1!==this.zoomFactor){if(this.lastZoomFactor=Math.max(this.zoomFactor,this.defaultZoomFactor),t)return this.status="calculating",this.zoomFactor=1,this.refreshScroll(),this.slideScrollLeft=0,this.slideScrollTop=0,this.status="ready",void this.$root.$emit("unzoomed");this.onTap({center:{x:0,y:0}})}},goRight:function(){this.scrollLock=!0,this.movePagerRight({target:"slide-swipe"}),this.$root.$emit("render:finish")},goLeft:function(){this.scrollLock=!0,this.movePagerLeft({target:"slide-swipe"}),this.$root.$emit("render:finish")},animateSlides:function(t){var e,i=this,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n={x:this.delta};switch(t){case"left":e={x:this.maxDelta};break;case"right":e={x:-this.maxDelta};break;case"center":e={x:0}}o&&this.$root.$emit("turnStart"),this.status="sliding",this.$store.dispatch("pager/freeze",{target:"slide-book"}),this.tween=new r.a.Tween(n).to(e,s?0:this.slideAnimationSpeed).easing(r.a.Easing.Sinusoidal.Out).onUpdate((function(){i.delta=n.x})).onComplete((function(){i.$root.$emit("turnStop"),i.$store.dispatch("pager/unfreeze",{target:"slide-book"}),o?i.$root.$emit("render:finish"):"left"===t?i.goLeft():"right"===t&&i.goRight(),i.slidesCacheUpdate(),i.status="ready","center"!==t&&i.$root.$emit("turned")})).start()},updateHorizontalScale:function(t,e){var i=0;(e.wide||2===e.length)&&i--,(t.wide||2===t.length)&&i++,this.horizontalScale=i>0?2:i<0?.5:1},convertToOutputSlides:function(t){var e=function(e){return{position:e,pages:t[e]||[]}};return[e("current")].concat([e("left")]).concat([e("right")]).filter((function(t){return t.pages.length>0}))},getSlidesWithAllPages:function(t,e){var i=[].concat.apply([],t.map((function(t){return t.pages}))),s=[].concat.apply([],e.map((function(t){return t.pages}))).filter((function(t){return!i.some((function(e){return e.id===t.id}))}));return t.forEach((function(t){t.pages=t.pages.filter((function(t){return!s.some((function(e){return t.id===e.id}))}))})),s.length>0&&s.forEach((function(e){var i={position:"hidden page_"+e.id,pages:[e]};t=t.concat([i])})),t.sort((function(t,e){return t.pages[0].id-e.pages[0].id}))},getNonHiddenSlides:function(t){return t.filter((function(t){return t.position.indexOf("hidden")<0}))},updateOutputSlides:function(){var t=this,e=this.convertToOutputSlides(this.slidesCache);this.outputSlidesCache=this.getSlidesWithAllPages(e,this.outputSlidesCache),this.$nextTick((function(){t.outputSlidesCache=t.getNonHiddenSlides(t.outputSlidesCache)}))},slidesCacheUpdate:function(){this.slidesCache=this.slides,this.delta=0,this.updateOutputSlides()},updatePendingSlide:function(){this.pendingSlide&&this.replaceCachedSlide(this.pendingSlide,this.slides.current)},replaceCachedSlide:function(t,e){this.slidesCache[t]=e,this.updateOutputSlides()},contentCreator:function(t){return C["content-"+t.type]},refreshScroll:function(){var t=this;this.cancelDragging(),this.$nextTick((function(){t.isZoomed&&"ready"===t.status?(t.iScrollInit(t.dragActive),t.iscroll.refresh()):t.iscroll&&(t.slideScrollX=0,t.slideScrollY=0,t.$store.dispatch("text/setHolderScroll",{x:t.slideScrollX,y:t.slideScrollY}),t.iscroll.refresh(),t.iscroll.destroy(),delete t.iscroll)}))},iScrollInit:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];1!==this.zoomFactor&&(this.iscroll?(this.slideScrollX=this.iscroll.x,this.slideScrollY=this.iscroll.y,this.iscroll.off("beforeScrollStart",this.setDragging),this.iscroll.off("scrollCancel",this.cancelDragging),this.iscroll.off("scroll",this.onScrollBegin),this.iscroll.off("scrollEnd",this.onScrollEnd),this.iscroll.destroy(),delete this.iscroll):(this.slideScrollX=this.containerSize.width1||this.scaleFactor>1)return;this.$store.state.notes.opened&&this.$store.dispatch("notes/setOpenedId",{id:null}),t.deltaY>0&&(this.$store.getters["pager/nextPageId"]||0===this.$store.getters["pager/nextPageId"])?this.$store.dispatch("pager/goForward",{target:"wheel"}):t.deltaY<0&&(this.$store.getters["pager/prevPageId"]||0===this.$store.getters["pager/prevPageId"])&&this.$store.dispatch("pager/goBackward",{target:"wheel"})}this.lastWheelTime=Date.now()}},updateSlideScroll:function(t){t&&!this.isZoomed||(this.containerSize.width0&&e.push("outside")}else{e.push("right");var s=this.spreadSizes.current.left+this.spreadSizes.current.width;t.left=Math.min(s,this.containerSize.width-30)+"px",st.scale?e:t}))},containerClasses:function(){return{overlap:!!this.optimalRect.sizeOverride}},containerStyles:function(){if(!this.optimalRect.scale)return{display:"none"};var t={opacity:this.isReady?1:0,width:this.originalWidth*this.optimalRect.scale+"px",height:this.originalHeight*this.optimalRect.scale+"px"};return t.top=Object(o.isUndefined)(this.optimalRect.top)?null:this.optimalRect.top+"px",t.bottom=Object(o.isUndefined)(this.optimalRect.bottom)?null:this.optimalRect.bottom+"px",t.left=Object(o.isUndefined)(this.optimalRect.left)?null:this.optimalRect.left+"px",t.right=Object(o.isUndefined)(this.optimalRect.right)?null:this.optimalRect.right+"px","0px"!==t.width&&"0px"!==t.height||(t.display="none"),t},imageStyles:function(){return{width:this.originalWidth*this.optimalRect.scale+"px",height:this.originalHeight*this.optimalRect.scale+"px"}},opaqueBottom:function(){return this.$store.state.skin&&this.$store.state.skin.styles&&Object(o.isString)(this.$store.state.skin.styles.classes)?-1!==this.$store.state.skin.styles.classes.indexOf("opaqueBottom"):null}},watch:{bottomMenuEnabled:function(){this.setBottomMenu()},rawCustomLogoUrl:"logoLoad",hasDefaultLogo:"logoLoad",side:"setSvgTransform"},methods:{setBottomMenu:function(){this.bottomMenu=this.bottomMenuEnabled?document.getElementsByClassName("bottom-toolbar")[0]:null},logoLoad:function(){var t=this;this.isReady=!1,!this.hasDefaultLogo&&this.rawCustomLogoUrl?this.preloadImg(this.customLogoUrl):this.hasDefaultLogo&&(this.originalWidth=119,this.originalHeight=30,this.customLogoUrl=null,this.isReady=!0,this.$nextTick((function(){return t.setSvgTransform()})))},preloadImg:function(){var t=this;Object(r.default)({url:this.rawCustomLogoUrl,callback:function(e){var i=document.createElement("img");i.onload=function(){t.originalWidth=i.naturalWidth,t.originalHeight=i.naturalHeight,t.destroyImgBlob(),t.customLogoUrl=e,t.isReady=!0},i.onerror=function(){},i.src=e,i.style.width="100%"}})},destroyImgBlob:function(){this.customLogoUrl&&window.URL.revokeObjectURL(this.customLogoUrl)},calculateScale:function(t){if(0===this.originalWidth||0===this.originalHeight)return 0;if(t.width<0||t.height<0)return 0;var e=1,i=1;return this.originalHeight>t.height&&(e=t.height/this.originalHeight),this.originalWidth>t.width&&(i=t.width/this.originalWidth),Math.min(i,e,1)},applySizeConstraints:function(t){this.hasDefaultLogo?(t.width=t.lockWidth?t.width:this.originalWidth,t.height=t.lockHeight?t.height:this.originalHeight):(!t.lockWidth&&t.width1&&void 0!==arguments[1]&&arguments[1];this.timeout>Date.now()||this.$store.state.pager.freezed||(setTimeout((function(){e.movePagerRight({target:i?"nav-swipe":"nav-tap"})}),0),this.timeout=Date.now()+150)},goLeft:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.timeout>Date.now()||this.$store.state.pager.freezed||(setTimeout((function(){e.movePagerLeft({target:i?"nav-swipe":"nav-tap"})}),0),this.timeout=Date.now()+150)}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(188);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(27);i(443),i(444),i(61),i(62);e.default={mixins:[s.default],props:{show:Boolean},data:function(){return{timeout:0,classes:{"nav-arrows":!0,start:!0}}},mounted:function(){var t=this;setTimeout((function(){t.classes.start=!1}),8e3)},computed:{isRTLBook:function(){return this.$store.state.book.rightToLeft},isFirstPage:function(){var t=null===this.$store.getters["pager/prevNonStubPageId"],e=null===this.$store.getters["pager/nextPageId"];return this.isRTLBook?e:t},isLastPage:function(){var t=null===this.$store.getters["pager/nextPageId"],e=null===this.$store.getters["pager/prevNonStubPageId"];return this.isRTLBook?e:t},isEmbed:function(){return this.$store.state.workspace.isEmbed},leftArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.NEXT_PAGE_TIP"):this.$t("NavigationPanel.PREV_PAGE_TIP")},rightArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.PREV_PAGE_TIP"):this.$t("NavigationPanel.NEXT_PAGE_TIP")},leftMostArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.LAST_PAGE_TIP"):this.$t("NavigationPanel.FIRST_PAGE_TIP")},rightMostArrowTitle:function(){return this.isRTLBook?this.$t("NavigationPanel.FIRST_PAGE_TIP"):this.$t("NavigationPanel.LAST_PAGE_TIP")},animationInProgress:function(){return this.$store.state.workspace.animationInProgress}},watch:{animationInProgress:function(){this.classes.start=!1}},methods:{goRight:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.timeout>Date.now()||(this.movePagerRight({target:e?"nav-swipe":"nav-tap"}),this.timeout=Date.now()+150)},goLeft:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.timeout>Date.now()||(this.movePagerLeft({target:e?"nav-swipe":"nav-tap"}),this.timeout=Date.now()+150)},rightToTheLast:function(){this.timeout>Date.now()||(this.movePagerRightmost({navTarget:!0}),this.timeout=Date.now()+150)},leftToTheLast:function(){this.timeout>Date.now()||(this.movePagerLeftmost({navTarget:!0}),this.timeout=Date.now()+150)}}}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(191);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(3);i(783),i(784);e.default={name:"ZoomPanel",data:function(){return{scalePosition:0,savedScalePosition:null,lineWidth:90,forceOpacity:!1,forceVisibility:!1,opacityTimer:null,isGrabbing:!1}},mounted:function(){window.addEventListener("keydown",this.keyDownHandler),this.$root.$on("unzoomed",this.hide)},beforeDestroy:function(){window.removeEventListener("keydown",this.keyDownHandler),this.$root.$off("unzoomed",this.hide)},watch:{zoomFactor:function(t){t>this.minZoom?this.scalePosition=1*((t-this.minZoom)/(this.maxZoom-this.minZoom)).toFixed(2):this.scalePosition=0},minZoom:function(t){this.zoomFactor>t?this.scalePosition=1*((this.zoomFactor-t)/(this.maxZoom-t)).toFixed(2):this.scalePosition=0},scalePosition:function(){var t=this;this.forceOpacity=!0,clearTimeout(this.opacityTimer),this.opacityTimer=setTimeout((function(){t.forceOpacity=!1}),2e3)},pagerState:function(){this.forceVisibility=!1},visible:function(t){this.$store.dispatch("workspace/setZoomPanel",t)},zoomPanel:function(t){t||(this.forceVisibility=!1)}},computed:{zoomFactor:function(){return this.$store.state.pages.size.zoomFactor},isRtl:function(){return this.$store.getters["i18n/isLocaleRtl"]},dir:function(){return this.isRtl?"rtl":"ltr"},pagerState:function(){return[this.$store.state.pager.currentPage]},visible:function(){return this.zoomFactor>this.minZoom||this.forceVisibility},zoomPanel:function(){return this.$store.state.workspace.zoomPanel},minZoom:function(){if("slide-book"===this.$store.state.workspace.bookComponent||this.$store.state.pager.singleMode)return 1;var t=this.isHardcover&&(this.isFirstPage||this.isLastPage)?1.03:1;return Math.min(this.$store.state.workspace.containerSize.height/(this.$store.state.pages.size.height*t/this.$store.state.pages.size.zoomFactor),this.$store.state.workspace.containerSize.width/(this.$store.state.pages.size.width*t*2/this.$store.state.pages.size.zoomFactor))},isFirstPage:function(){return this.$store.getters["pager/isFirstSpread"]},isLastPage:function(){return this.$store.getters["pager/isLastSpread"]},maxZoom:function(){return this.$store.state.workspace.maxZoom},sliderStyle:function(){var t={},e=6;return this.isRtl?t.right=Math.round((this.lineWidth-e)*this.scalePosition)+"px":t.left=Math.round((this.lineWidth-e)*this.scalePosition)+"px",t},panelClass:function(){return{grabbing:this.isGrabbing}},panelStyle:function(){return{opacity:this.forceOpacity?.9:null,visibility:this.visible?"visible":"hidden"}}},methods:{zoomOut:function(){if(!this.$store.state.workspace.animationInProgress&&(!1!==this.forceVisibility||0!==this.scalePosition)){if(this.scalePosition>.1)this.scalePosition-=.1;else{if(!0===this.forceVisibility&&0===this.scalePosition)return this.forceVisibility=!1,void this.$root.$emit("zoomPanel",{action:"zoomOut"});this.forceVisibility=!0,this.scalePosition=0}this.$root.$emit("zoomPanel",{action:"setZoom",zoomFactor:1*(this.scalePosition*(this.maxZoom-this.minZoom)+this.minZoom).toFixed(2),fast:!0})}},zoomOutFull:function(){this.$store.state.workspace.animationInProgress||(this.forceVisibility=!1,this.$root.$emit("zoomPanel",{action:"zoomOut"}))},zoomIn:function(){this.$store.state.workspace.animationInProgress||(0!==this.scalePosition||this.visible?(this.scalePosition<0&&(this.scalePosition=0),this.scalePosition<.9?this.scalePosition+=.1:this.scalePosition=1,this.$root.$emit("zoomPanel",{action:"setZoom",zoomFactor:1*(this.scalePosition*(this.maxZoom-this.minZoom)+this.minZoom).toFixed(2),fast:!0})):this.$root.$emit("zoomPanel",{action:"zoomIn"}))},lineClick:function(t){var e=this;if(!this.$store.state.workspace.animationInProgress){var i=this.$refs.zoomLine.getBoundingClientRect();this.isRtl?this.scalePosition=(this.lineWidth-t.clientX+i.left)/this.lineWidth:this.scalePosition=(t.clientX-i.left)/this.lineWidth,this.scalePosition<=0&&(this.scalePosition=0),0===this.scalePosition&&(this.forceVisibility=!0),this.$nextTick((function(){e.$root.$emit("zoomPanel",{action:"setZoom",zoomFactor:1*(e.scalePosition*(e.maxZoom-e.minZoom)+e.minZoom).toFixed(2),fast:!1})}))}},onPanStart:function(){this.savedScalePosition=this.scalePosition,this.isGrabbing=!0,this.$root.$emit("zoomPanel",{action:"startScale"})},onPanMove:function(t){var e=1*(this.isRtl?-t.deltaX/this.lineWidth:t.deltaX/this.lineWidth).toFixed(2);this.scalePosition=this.savedScalePosition+e,this.scalePosition>1&&(this.scalePosition=1),this.scalePosition<=0&&(this.scalePosition=0);var i=this.scalePosition/this.savedScalePosition;this.$root.$emit("zoomPanel",{action:"changeScale",scalePosition:this.scalePosition,scaleRatio:i})},onPanEnd:function(t){this.isGrabbing=!1;var e=1*(this.isRtl?-t.deltaX/this.lineWidth:t.deltaX/this.lineWidth).toFixed(2);this.scalePosition+=e,this.scalePosition>1&&(this.scalePosition=1),this.scalePosition<=0&&(this.scalePosition=0),0===this.scalePosition?this.forceVisibility=!0:this.forceVisibility=!1,this.$root.$emit("zoomPanel",{action:"endScale",zoomFactor:this.scalePosition*(this.maxZoom-this.minZoom)+this.minZoom})},keyDownHandler:function(t){if(Object(s.isNull)(t.target)||Object(s.isUndefined)(t.target)||"input"!==t.target.tagName.toLowerCase()&&"textarea"!==t.target.tagName.toLowerCase()&&"select"!==t.target.tagName.toLowerCase()&&"option"!==t.target.tagName.toLowerCase()){var e="+",i="-",r="=",o="_",n="0",a="Add",h="Subtract",l=107,c=109,d=187,u=189,p=48;switch(t.key){case r:case e:case a:(t.metaKey||t.ctrlKey)&&(t.preventDefault(),this.zoomIn());break;case o:case i:case h:(t.metaKey||t.ctrlKey)&&(t.preventDefault(),this.zoomOut());break;case n:(t.metaKey||t.ctrlKey)&&(t.preventDefault(),this.zoomOutFull());break;case"Unidentified":switch(t.keyCode){case d:case l:(t.metaKey||t.ctrlKey)&&(this.zoomIn(),t.preventDefault());break;case u:case c:(t.metaKey||t.ctrlKey)&&(this.zoomOut(),t.preventDefault());break;case p:(t.metaKey||t.ctrlKey)&&(t.preventDefault(),this.zoomOutFull())}}}},hide:function(){this.forceVisibility=!1,this.$store.dispatch("workspace/setZoomPanel",!1)}}}},function(t,e,i){},function(t,e,i){},,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){i(0).register({close:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},,,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(228);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(21),r=i(2),o=i(16);e.default={name:"Thumb",props:{id:{type:[String,Number],required:!0},side:{type:String,required:!1,default:"both",validator:function(t){return-1!==["left","right","both"].indexOf(t)}},size:{type:Object,required:!1,default:null},contentCrop:{type:Boolean,default:!1}},data:function(){return{isReady:!0,pageId:this.id,pageSide:this.side,crossOrigin:Object(r.default)().getCrossOrigin(),isWide:!1,isStub:!1,hasError:!1,backgroundColor:"#ffffff",thumbnailUrl:null,pageResize:null,contentWidth:0,contentHeight:0,whitePixelUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII="}},components:{spinner:s.default},beforeMount:function(){this.getProperties()},watch:{id:function(t){this.pageId=t},side:function(t){this.pageSide=t},changeProperty:function(t){t.pageID===this.pageId&&this.getProperties()},pageId:function(){this.getProperties()}},methods:{getProperties:function(){this.isWide=this.$store.getters["pages/pageProp"](this.pageId,"wide"),this.isStub=this.$store.getters["pages/pageProp"](this.pageId,"stub"),this.hasError=-1===this.$store.getters["pages/pageProp"](this.pageId,"thumbnailUrl"),this.backgroundColor=this.$store.getters["pages/pageProp"](this.pageId,"backgroundColor"),this.thumbnailUrl=this.$store.getters["pages/pageProp"](this.pageId,"thumbnailUrl"),this.pageResize=this.$store.getters["pages/pageProp"](this.pageId,"pageResize"),this.contentWidth=this.$store.getters["pages/pageProp"](this.pageId,"width")/this.contentWidthMultiplier,this.contentHeight=this.$store.getters["pages/pageProp"](this.pageId,"height")}},computed:{imageAlt:function(){return this.$i18n.t("AlertMessage.LINK_PAGE_TIP")+" "+this.pageCaption+" ("+this.$i18n.t("ThumbnailsToolWindow.TITLE")+")"},pageCaption:function(){return this.$store.getters["pages/pageCaptionById"]({id:this.id})},className:function(){return{thumb:!0,double:this.bookMode&&this.isWide&&"both"===this.pageSide,loading:this.isLoading,unready:!this.isReady,error:this.hasError}},preloaderVisible:function(){return!this.isStub&&(this.isLoading||!this.isReady||this.hasError)},rightPreloaderVisible:function(){return this.preloaderVisible&&this.bookMode&&this.isWide&&"both"===this.pageSide},preloaderSize:function(){return 24},preloaderLineSize:function(){return 2},enforceWhiteBg:function(){return this.$store.state.workspace.alteredSVGColors&&this.$store.state.workspace.userAgentInfo.browser.samsung},background:function(){if(!this.pageId||!this.isReady||this.hasError)return null;if(this.isStub){this.$store.state.workspace.policiesUpdated;return this.enforceWhiteBg?this.whitePixelUrl:Object(r.default)().translatePath("assets/pages/pagestub.png")}return this.thumbnailUrl?this.thumbnailUrl:null},isLoading:function(){return!this.thumbnailUrl||(0===this.$store.state.pages.size.width||null===this.$store.state.pages.size.width)},pageWidthMultiplier:function(){return this.isWide&&"both"===this.pageSide?2:1},contentWidthMultiplier:function(){return this.isWide&&"both"!==this.pageSide?"2":"1"},pagesSize:function(){return this.$store.getters["pages/size"]},pageSize:function(){return this.size&&this.size.width&&this.size.height?{width:this.size.width,height:this.size.height}:{width:this.pagesSize.width*this.pageWidthMultiplier,height:1*this.pagesSize.height}},singleMode:function(){return this.$store.state.pager.singleMode},bookMode:function(){return this.$store.state.pager.spreadMode},pageStyle:function(){return{width:(this.contentCrop?this.contentSize.width:this.pageSize.width)+"px",height:(this.contentCrop?this.contentSize.height:this.pageSize.height)+"px","background-color":this.enforceWhiteBg?null:this.backgroundColor}},contentSize:function(){if(this.pageId){var t,e=this.pageResize,i=this.contentWidth,s=this.contentHeight;return t="FIT"===e?Object(o.fit)({width:i,height:s},this.pageSize):Object(o.fill)({width:i,height:s},this.pageSize),{width:Math.ceil(t.width),height:Math.ceil(t.height),scaleRatio:{w:t.width/i,h:t.height/s}}}return{width:0,height:0,scaleRatio:{w:0,h:0}}},contentStyle:function(){var t=this.contentCrop?0:(this.pageSize.width-this.contentSize.width)/(this.isWide&&"both"!==this.pageSide?1:2),e=this.contentCrop?0:(this.pageSize.height-this.contentSize.height)/2,i={width:this.contentSize.width*this.contentWidthMultiplier+"px",height:this.contentSize.height+"px"};return"right"===this.pageSide?(i.right="0",t&&(i.marginRight=t+"px")):(i.left="0",t&&(i.marginLeft=t+"px")),e&&(i.marginTop=e+"px"),i},changeProperty:function(){return this.$store.state.pages.changeInPage}}}},function(t,e,i){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){i(0).register({thumbnails:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},,,,function(t,e,i){"use strict";i.r(e);var s=i(677),r=i(97),o=(i(678),i(1)),n=Object(o.default)(r.default,s.render,s.staticRenderFns,!1,null,"549b1d19",null);n.options.__file="src/components/common/flash-message/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return r}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("transition",{attrs:{name:"fade"}},[i("div",{staticClass:"flash-message",style:t.messageData.style,attrs:{role:"alert","aria-live":"assertive","aria-atomic":"true"}},[t._v("\n "+t._s(t.messageData.text)+"\n ")])])},r=[];s._withStripped=!0},,,,,,function(t,e,i){"use strict";i.r(e);var s=i(691),r=i(113),o=(i(786),i(1)),n=Object(o.default)(r.default,s.render,s.staticRenderFns,!1,null,"1e94cca4",null);n.options.__file="src/components/common/book-container/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return r}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"book-container",class:t.containerClass},[t.hasPages?i(t.bookComponent,{ref:"bookComponent",tag:"component",attrs:{"container-size":t.containerSize,"page-size":t.bookSize,"substrate-styles":t.setSubstrateStyleHeightTop,dir:"ltr"}}):t._e(),t._v(" "),t.showPrevSubstrate?i("div",{staticClass:"book-substrate-prev",style:t.substrateStyle,attrs:{"aria-hidden":"true"},on:{click:t.goToLeftPage,mouseover:function(e){return t.arrowHover("prev",!0)},mouseout:function(e){return t.arrowHover("prev",!1)}}}):t._e(),t._v(" "),t.showNextSubstrate?i("div",{staticClass:"book-substrate-next",style:t.substrateStyle,attrs:{"aria-hidden":"true"},on:{click:t.goToRightPage,mouseover:function(e){return t.arrowHover("next",!0)},mouseout:function(e){return t.arrowHover("next",!1)}}}):t._e(),t._v(" "),i("transition",{attrs:{name:"bars-fade"}},[t.showSimpleArrows?i("nav-buttons",{attrs:{show:!0}}):t._e(),t._v(" "),t.showSmartArrows?i("slide-nav-buttons",{attrs:{show:!0}}):t._e()],1),t._v(" "),"html"===t.version?i("logo"):t._e(),t._v(" "),i("transition",{attrs:{name:"slide-fade"}},["html"===t.version?i("zoom-panel"):t._e()],1),t._v(" "),i("transition",{attrs:{name:t.ctrFade},on:{"after-enter":t.afterFade}},[t.miniState&&!t.miniFullScreen?i("div",{key:"maxi",class:t.clickToReadClass,on:{click:t.wsToggleFullscreen}},[t._v("\n "+t._s(t.clickToReadText)+"\n ")]):t._e(),t._v(" "),t.miniState&&t.miniFullScreen?i("div",{key:"mini",class:t.miniClickToReadClass,attrs:{title:t.$t("BottomMenu.FULLSCREEN_BUTTON_TIP")},on:{click:t.wsToggleFullscreen}},[i("div",{staticClass:"fullscreen-button-mini-holder"},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"fullscreen"}})],1)]):t._e()])],1)},r=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return r}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"flip-book",class:t.flipBookClass},[i("v-touch",t._g({ref:"bookHolder",staticClass:"book-holder",style:[t.bookHolderStyle],attrs:{tag:"div",id:"book-holder","data-frozen-by":t.frozenBy},nativeOn:{transitionend:function(e){return t.transitionEnd(e)}}},t.eventHandlers),[t.selectTextEnabled?i("select-text-panel"):t._e(),t._v(" "),i("transition",{attrs:{name:"bars-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.showLeftButtons,expression:"showLeftButtons"}],staticClass:"previous-button",on:{mouseover:function(e){return t.arrowHover("prev",!0)},mouseout:function(e){return t.arrowHover("prev",!1)}}},[t.notesEnabled&&!t.showRightAddNote?i("button",{staticClass:"icon-add-note left-add-note stripe-btn",attrs:{tabindex:"0","aria-label":t.addNoteTitleText,title:t.addNoteTitleText,"data-nav-name":"notes-left"},on:{click:function(e){return e.stopPropagation(),t.btnAddNote("left")},mousedown:function(t){t.preventDefault()},mouseover:function(e){return e.stopPropagation(),t.arrowHover("prev",!1)}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"add-note"}})],1):t._e(),t._v(" "),i("button",{staticClass:"icon-book-prev stripe-btn",attrs:{tabindex:"0","aria-label":t.leftArrowTitle,title:t.leftArrowTitle,"data-nav-name":"go-left"},on:{click:function(e){return e.stopPropagation(),t.leftPage(e)},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"book-prev"}})],1),t._v(" "),i("button",{staticClass:"icon-book-first stripe-btn",attrs:{tabindex:"0","aria-label":t.leftMostArrowTitle,title:t.leftMostArrowTitle,"data-nav-name":"go-last-left"},on:{click:function(e){return e.stopPropagation(),t.leftmostPage(e)},mouseover:function(e){return e.stopPropagation(),t.arrowHover("prev",!1)},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"book-first"}})],1)])]),t._v(" "),i("transition",{attrs:{name:"bars-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.showRightButtons,expression:"showRightButtons"}],staticClass:"next-button",on:{mouseover:function(e){return t.arrowHover("next",!0)},mouseout:function(e){return t.arrowHover("next",!1)}}},[t.notesEnabled&&t.showRightAddNote?i("button",{staticClass:"icon-add-note right-add-note stripe-btn",attrs:{tabindex:"0","aria-label":t.addNoteTitleText,title:t.addNoteTitleText,"data-nav-name":"notes-right"},on:{click:function(e){return e.stopPropagation(),t.btnAddNote("right")},mouseover:function(e){return e.stopPropagation(),t.arrowHover("next",!1)},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"add-note"}})],1):t._e(),t._v(" "),i("button",{staticClass:"icon-book-next stripe-btn",attrs:{tabindex:"0","aria-label":t.rightArrowTitle,title:t.rightArrowTitle,"data-nav-name":"go-right"},on:{click:function(e){return e.stopPropagation(),t.rightPage(e)},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"book-next"}})],1),t._v(" "),i("button",{staticClass:"icon-book-last stripe-btn",attrs:{tabindex:"0","aria-label":t.rightMostArrowTitle,title:t.rightMostArrowTitle,"data-nav-name":"go-last-right"},on:{click:function(e){return e.stopPropagation(),t.rightmostPage(e)},mouseover:function(e){return e.stopPropagation(),t.arrowHover("next",!1)},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"book-last"}})],1)])])],1)],1)},r=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return r}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.className,style:t.pageStyle,attrs:{"data-page-id":t.pageId,"aria-hidden":!t.isCurrent},on:{mousedown:function(e){return e.preventDefault(),t.onMouseDown(e)}}},[i("transition",{attrs:{name:"page-fade"}},[t.showPreloaderContainer?i("div",{staticClass:"page-preloader",style:{backgroundColor:t.backgroundColor}},[t.isCurrent?i("div",{staticClass:"preloader-container"},[t.showSpinner?i("spinner",{staticClass:"preloader-spinner",attrs:{size:36,"line-size":3,"line-fg-color":"#5692AE","line-bg-color":"#ffffff"}}):t._e(),t._v(" "),i("div",{staticClass:"preloader-bg"}),t._v(" "),i("div",{staticClass:"preloader-header",attrs:{dir:t.dir}},[t._v(t._s(t.preloaderHeader))]),t._v(" "),i("div",{staticClass:"preloader-text",attrs:{dir:t.dir}},[t._v(t._s(t.preloaderText))])],1):t._e(),t._v(" "),t.showThumbnail?i("div",{staticClass:"preloader-th",style:t.thumbnailStyle},[i("img",{attrs:{crossOrigin:t.crossOrigin,src:t.thumbnailUrl}})]):t._e()]):t._e()]),t._v(" "),i("div",{staticClass:"background",style:t.contentStyle,attrs:{"data-id":t.pageId}},[i("img",{ref:"bgImage",staticClass:"bg-layer",attrs:{crossOrigin:t.crossOrigin,src:"","aria-hidden":"true"}}),t._v(" "),t._l(t.backgroundsCache,(function(e,s){return t.canvasUpdated?t._e():i("img",{key:s,attrs:{"data-img":"backgroundsCache",crossOrigin:t.crossOrigin,src:e,"aria-hidden":"true"},on:{load:function(i){return t.bgCacheImageLoaded(e)}}})})),t._v(" "),t.vectorLayerCache?i("img",{ref:"bgSVG",class:"svg-layer"+(t.isCurrent?"":" svg-layer-not-current"),attrs:{crossOrigin:t.crossOrigin,src:t.vectorLayerCache}}):t._e()],2),t._v(" "),t.showHighlights?i("div",{staticClass:"highlights",style:t.contentStyle},[t._l(t.highlights,(function(t){return[i("div",{style:t.style})]}))],2):t._e(),t._v(" "),i("v-touch",{staticClass:"touch-layer",style:t.contentTouchLayerStyle,attrs:{options:{domEvents:!0}},on:{tap:t.onContentTap}},[!t.isMobile&&t.selectTextEnabled?i("select-text",{directives:[{name:"show",rawName:"v-show",value:t.isCurrent&&!t.contentFreezed&&"animating"!==t.bookStatus&&"calculating"!==t.bookStatus,expression:"isCurrent && !contentFreezed &&\n bookStatus !== 'animating' && bookStatus !== 'calculating'"}],attrs:{contStyle:t.contentStyle,"page-side":t.pageSide,"is-wide":t.isWide,"page-id":t.pageId,containerSize:t.contentSize,isCurrent:t.isCurrent,isLoaded:!t.isLoadingCache}}):t._e(),t._v(" "),!t.isLoadingCache&&t.isCurrent&&t.selectTextEnabled&&t.mobileShowEffectPass?i("select-text-mobile",{attrs:{contStyle:t.contentStyle,"page-side":t.pageSide,"is-wide":t.isWide,"page-id":t.pageId,containerSize:t.contentSize,isCurrent:t.isCurrent}}):t._e(),t._v(" "),t.androidIframe||t.showInvisibleContent?i("div",{directives:[{name:"show",rawName:"v-show",value:!t.androidIframe||t.showInvisibleContent,expression:"!androidIframe || showInvisibleContent"}],staticClass:"content inv",style:t.contentStyle},[t._l(t.sortedContent.inv,(function(e){return[i(e.component,{directives:[{name:"show",rawName:"v-show",value:!t.isLoadingCache,expression:"!isLoadingCache"}],key:e.itemId,tag:"component",attrs:{data:e,isCurrent:t.isCurrent},on:{ready:t.contentItemReady,error:t.contentError}})]}))],2):t._e(),t._v(" "),i("div",{staticClass:"content vis",style:t.contentStyle},[t._l(t.sortedContent.visible,(function(e){return[i(e.component,{directives:[{name:"show",rawName:"v-show",value:!t.isLoadingCache,expression:"!isLoadingCache"}],key:e.itemId,tag:"component",attrs:{data:e,isCurrent:t.isCurrent},on:{ready:t.contentItemReady,error:t.contentError}})]}))],2)],1),t._v(" "),t._l(t.notesArray,(function(e,s){return i("note",{key:s,attrs:{data:e,size:t.pageSize,side:t.pageSide,isWide:t.isWide,isOutsideHardcover:t.isOutsideHardcover}})})),t._v(" "),t.flipCornerEnabled?i("flip-me",{attrs:{pageId:t.pageId,isLeft:t.isLeftFlipCorner}}):t._e()],2)},r=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e);var s=i(8),r=i(24),o=i(2);e.default={props:{id:{type:[String,Number],required:!0},side:{type:String,required:!1,default:"both",validator:function(t){return-1!==["left","right","both"].indexOf(t)}},bordered:{type:Boolean,default:!1},size:{type:Object,required:!1,default:null},renderContent:{type:Boolean,default:!0},contentCrop:{type:Boolean,default:!1}},data:function(){return{alreadyLoaded:!1,thDebounced:!0,isCurrent:!1,pageId:this.id,pageSide:this.side,crossOrigin:Object(o.default)().getCrossOrigin(),lastIsCurrent:!1,thumbnailUrl:null,backgroundColor:"#ffffff",isWide:!1,isWideLeft:!1,isStub:!1,isReady:!1,hasError:!1,isOutsideHardcover:!1,propWidth:null,propHeight:null,loadPending:!1,whitePixelUrl:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII="}},watch:{id:function(t){this.pageId=t},pageId:function(t,e){t&&(this.getOnceProperties(),this.getAPIProperties(),this.getProperties()),this.deregisterPage(e),this.registerPage(t)},side:function(t){this.pageSide=t},hasError:function(t){t&&this.isCurrent&&this.$root.$emit("pageLoaded"),t&&this.isZoomed&&this.setCursor("inherit")},isPreloaderShown:function(t){t||this.$emit("preloader:off",this)},changeProperty:function(t){t.pageID===this.pageId&&this.getPropertiesDebounced()},apiChange:function(){this.getAPIProperties()}},created:function(){var t=this;this.getPropertiesDebounced=Object(s.debounce)((function(){t.getProperties()}),100),this.getOnceProperties(),this.getAPIProperties(),this.getProperties(),this.registerPage(),this.loadPending||(this.loadPending=!0,this.alreadyLoaded=!0,this.getPropertiesTimeout=setTimeout((function(){t.getProperties()}),500)),this.$root.$on("render:finish",this.getIsCurrent),this.getIsCurrent();var e=this.$store.getters["pages/isFirstPage"](this.pageId),i=this.$store.getters["pages/isLastPage"](this.pageId);this.hideLeftStripe=this.isRTLBook?i:e,this.hideRightStripe=this.isRTLBook?e:i;var r=this.$store.state.workspace.userAgentInfo;r.browser.facebook&&r.os.android&&(this.noImageCache=!0)},mounted:function(){var t=this;setTimeout((function(){t.isCurrent&&!t.isReady&&t.$root.$emit("pageLoaded")}),1e3)},beforeDestroy:function(){this.getPropertiesDebounced.destroy(),clearTimeout(this.getPropertiesTimeout),this.$root.$off("render:finish",this.getIsCurrent),this.deregisterPage(),this.noImageCache&&this.$store.dispatch("pages/resetPageResources",{pageID:this.pageId})},methods:{setCursor:function(t){this.isMobile||(this.$el.style.cursor=t)},getIsCurrent:function(){this.isCurrent=this.$store.getters["pager/isCurrentPage"]({pageId:this.pageId,pageSide:this.pageSide})},getOnceProperties:function(){this.propWidth=this.$store.getters["pages/pageProp"](this.pageId,"width"),this.propHeight=this.$store.getters["pages/pageProp"](this.pageId,"height")},registerPage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pageId;this.renderContent&&this.$pageRegistry.registerPage(t,this.pageSide,this)},deregisterPage:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.pageId;this.renderContent&&this.$pageRegistry.deregisterPage(t,this.pageSide)},getSpreadTwin:function(){var t=this.$store.getters["pager/state"];return this.isCurrent&&t.spreadMode?this.pageId!==t.leftPage||this.isWide&&"right"===this.pageSide?this.pageId===t.rightPage?this.$pageRegistry.getPageComponent(t.leftPage,"left"):null:this.$pageRegistry.getPageComponent(t.rightPage,"right"):null}},computed:{showThumbnail:function(){return this.isReady&&!this.hasError},isMobile:function(){return"mobile"===this.$store.state.workspace.layout},isRTLBook:function(){return this.$store.state.book.rightToLeft},apiChange:function(){return this.$store.state.pages.apiChange},changeProperty:function(){return this.$store.state.pages.changeInPage},contentFreezed:function(){return"pending"!==this.$store.state.pager.flipState},updatePending:function(){return!this.isMobile&&this.isZoomed&&this.$store.getters["pages/pageProp"](this.pageId,"updatePending")},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")},backgroundLuma:function(){return this.backgroundColor?Object(r.calculateLuma)(Object(r.parseColor)(this.backgroundColor)):1},enforceTransparentBg:function(){return this.$store.state.workspace.alteredSVGColors&&this.$store.state.workspace.userAgentInfo.browser.samsung},isZoomed:function(){return this.$store.state.pages.size.zoomFactor>1},dir:function(){return this.$store.getters["i18n/isLocaleRtl"]?"rtl":"ltr"},isResizing:function(){return this.$store.state.workspace.isResizing},isPreloaderShown:function(){return this.$store.state.workspace.preloader},pageWidthMultiplier:function(){return this.isWide&&"both"===this.pageSide?2:1},pagesSize:function(){return this.$store.getters["pages/size"]},contentSize:function(){if(this.pageId){var t=this.isOutsideHardcover&&parseInt(this.propWidth,10)===parseInt(this.$store.state.book.bookSize.width,10)&&parseInt(this.propHeight,10)===parseInt(this.$store.state.book.bookSize.height,10)?"FILL":null;return this.$store.getters["pages/contentSize"]({pageID:this.pageId,pageSide:this.pageSide,pageSize:this.pageSize,resizeOverride:t})}return{width:0,height:0,offsetX:0,offsetY:0,scaleRatio:{w:0,h:0}}}}}},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return r}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-touch",{class:"selecttext"+(t.showCanvas?" active":""),style:t.contStyle,on:{pan:t.pan,panstart:t.reset,panend:t.panEnd,pancancel:t.panEnd,press:t.test}},[t.showCanvas?i("canvas",{class:t.canvasClass,style:{position:"absolute",right:"right"===t.pageSide&&t.isWide?0:"none"},attrs:{width:t.containerSize.width,height:t.containerSize.height}}):t._e(),t._v(" "),t._l(t.textBlockSizes,(function(e,s){return i("div",{staticClass:"text-block",style:{width:e.width+"px",top:e.top+"px",left:e.left+"px",height:e.height+"px"},attrs:{"data-set":"select-text-block"}},[t.highLightBlocks?i("span",{style:{opacity:.8,textAlign:"right",backgroundColor:"aqua",position:"absolute",top:"0",bottom:"0",left:"0",right:"0"}},[t._v(t._s(s))]):t._e(),t._v(" "),t._l(t.finalTree[s].lines,(function(s,r){return t.highLightBlocks?i("span",{style:{opacity:.5,backgroundColor:"red",position:"absolute",top:s.top*t.containerSize.scaleRatio.h-e.top+"px",left:s.left*t.containerSize.scaleRatio.w-e.left+"px",width:s.width*t.containerSize.scaleRatio.w+"px",height:s.height*t.containerSize.scaleRatio.h+"px"}},[t._v(t._s(r))]):t._e()}))],2)}))],2)},r=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e);var s=i(697),r=i(698),o=i(8);e.default={props:["containerSize","pageId","isWide","pageSide","isLoaded","isCurrent","contStyle"],data:function(){return{finalTree:[],pageRect:null,selectedSymbols:[],showEffect:!1,isCrossWide:!1}},created:function(){var t=this.$store.state.content.hasRtlContent,e=new r.UnicodeBiDi(t);this.updateSelectedTextDebounced=Object(o.debounce)((function(){var i=e.getSelectedText(this.selectedSymbols,t);this.$store.dispatch("text/setSelectedText",i)}),100),this.isCurrent&&this.getAndParseXML()},beforeDestroy:function(){this.updateSelectedTextDebounced.destroy()},methods:{initContext:function(){var t=this.$el.getElementsByTagName("canvas")[0];t&&(this.context=t.getContext("2d"))},resetContext:function(){this.context&&(this.context=null)},getAndParseXML:function(){if(this.$store.getters["search/isSelectTextInfoLoaded"](this.pageId)){var t="slide-book"===this.$store.state.workspace.bookComponent&&this.$store.state.pager.slideMode,e=this.$store.getters["search/getSelectTextInfo"](this.pageId,"right"===this.pageSide,t);this.finalTree=Object.freeze(e.finalTree),this.isCrossWide=e.isCrossWide,this.isRtlSelection=e.isRtlSelection,0!==this.userRect.width&&this.parseRect(this.$store.state.text.selectionRect)}},parseRect:function(t){if(this.isWide&&!this.isCrossWide){var e=this.$store.getters["pages/pageProp"](this.pageId,"width")/2;if("left"===this.pageSide&&t.left>=e||"right"===this.pageSide&&t.left0?this.pageRect=this.$el.getBoundingClientRect():this.pageRect=null},getBorderCollisions:function(t){return this.allowedRect?{left:t.leftthis.allowedRect.left+this.allowedRect.width,top:t.topthis.allowedRect.bottom}:{}},getCornerSymbol:function(t){return{top:Math.round(t.top*this.containerSize.scaleRatio.h),left:Math.round(t.left*this.containerSize.scaleRatio.w),width:Math.round(t.width*this.containerSize.scaleRatio.w),height:Math.round(t.height*this.containerSize.scaleRatio.h),collisions:this.getBorderCollisions(t)}}},watch:{userRect:function(t,e){t.top===e.top&&t.left===e.left&&t.width===e.width&&t.height===e.height||this.parseRect(t)},selectedSymbols:function(t){var e=this;null!==t?(t.length>0?this.$nextTick((function(){e.context||e.initContext(),e.context.clearRect(0,0,e.containerSize.width,e.containerSize.height),e.context.fillStyle="#027bff";for(var i=0,s=t.length;i0},selectTextInfoLoaded:function(){return this.$store.state.search.selectTextInfoLoaded},animationInProgress:function(){return this.$store.getters["workspace/animationInProgress"]}}}},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return r}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-touch",{staticClass:"selecttext",style:t.contStyle,on:{tap:t.reset}},[this.showCanvas?i("canvas",{class:t.canvasClass,style:{position:"absolute",right:"right"===t.pageSide&&t.isWide?0:"none"},attrs:{width:t.containerSize.width,height:t.containerSize.height}}):t._e()])},r=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return r}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-touch",{staticClass:"publication-note",style:t.noteStyle,on:{tap:t.onNoteClick}},[i("div",{ref:"icon",class:t.iconClass},[i("svgicon",{attrs:{focusable:"false",name:"note-content"}})],1),t._v(" "),i("transition",{attrs:{name:"note-fade"}},[t.showRect?i("div",{ref:"rect",class:t.rectClass,style:t.rectStyle,attrs:{role:"dialog"}},[i("div",{staticClass:"note-body",style:t.noteBodyStyle},[i("textarea",{ref:"text",staticClass:"note-article",attrs:{role:"textbox",dir:"ltr",maxlength:"500",placeholder:t.placeholderText,tabindex:"0"},domProps:{value:t.data.text},on:{blur:t.saveText,focus:t.focusTextArea,input:t.setTextareaDir,keydown:function(e){return(e.type.indexOf("key")||13===e.keyCode)&&e.ctrlKey?t.setViewState(e):null}}})]),t._v(" "),t.miniRect?t._e():i("div",{staticClass:"note-footer",attrs:{"aria-hidden":"true"}},[i("div",{class:t.colorSetClass},[i("div",{staticClass:"note-border-color green",on:{click:function(e){return t.setColor("green")}}},[i("div",{staticClass:"note-color"})]),t._v(" "),i("div",{staticClass:"note-border-color blue",on:{click:function(e){return t.setColor("blue")}}},[i("div",{staticClass:"note-color"})]),t._v(" "),i("div",{staticClass:"note-border-color violet",on:{click:function(e){return t.setColor("violet")}}},[i("div",{staticClass:"note-color"})]),t._v(" "),i("div",{staticClass:"note-border-color red",on:{click:function(e){return t.setColor("red")}}},[i("div",{staticClass:"note-color"})]),t._v(" "),i("div",{staticClass:"note-border-color orange",on:{click:function(e){return t.setColor("orange")}}},[i("div",{staticClass:"note-color"})]),t._v(" "),i("div",{staticClass:"note-border-color gray",on:{click:function(e){return t.setColor("gray")}}},[i("div",{staticClass:"note-color"})])]),t._v(" "),i("div",{staticClass:"note-time"},[t._v(t._s(t.formattedTime))]),t._v(" "),i("span",{staticClass:"icon icon-trash-can note-button note-delete-button",attrs:{title:t.deleteTip},on:{click:t.deleteNoteCheck}},[i("svgicon",{attrs:{focusable:"false",name:"trash-can"}})],1)]),t._v(" "),t.deleteDialog?i("div",{staticClass:"note-delete-dialog",attrs:{dir:t.dir,"aria-hidden":"true"}},[i("div",{staticClass:"note-delete-dialog-text"},[i("div",{staticClass:"note-delete-dialog-text-flex"},[i("span",[t._v(t._s(t.dialogDeleteText))])])]),t._v(" "),i("div",{staticClass:"note-delete-dialog-buttons"},[i("span",{staticClass:"note-delete-dialog-cancel",on:{click:t.deleteDialogCancel}},[t._v(t._s(t.cancelButton))]),t._v(" "),i("span",{staticClass:"note-delete-dialog-confirm",on:{click:function(e){return t.deleteNote(e,"editor")}}},[t._v(t._s(t.deleteButton))])])]):t._e()]):t._e()])],1)},r=[];s._withStripped=!0},function(t,e,i){i(0).register({"trash-can":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return r}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.classes},[i("div",{staticClass:"flip-me-backface",style:t.backfaceStyle},[t.isTranslucentReverseSide?t._l(t.backfaceBackgrounds,(function(e,s){return i("img",{key:s,staticClass:"flip-me-image",style:t.backfaceImgStyle,attrs:{crossOrigin:t.crossOrigin,src:e}})})):t._e(),t._v(" "),i("div",{staticClass:"flip-me-gradient2",style:t.backGradientStyle})],2),t._v(" "),i("div",{staticClass:"flip-me-mask",style:t.maskStyle},[i("div",{staticClass:"flip-me-gradient",style:t.nextGradientStyle}),t._v(" "),i("div",{staticClass:"flip-me-shift-page",style:t.shiftPageStyle},[i("div",{staticClass:"flip-me-next-page",style:t.nextPageStyle},t._l(t.nextBackgrounds,(function(e,s){return i("img",{key:s,staticClass:"flip-me-image",style:t.nextImgStyle,attrs:{crossOrigin:t.crossOrigin,src:e}})})),0)])])])},r=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return r}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"vue-simple-spinner",style:t.spinner_style}),t._v(" "),t.message.length>0?i("div",{staticClass:"vue-simple-spinner-text",style:t.text_style},[t._v("\n "+t._s(t.message)+"\n ")]):t._e()])},r=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e);var s=i(117),r=i(9),o=i.n(r),n=i(31),a=i(72),h=i(717);function l(){return(l=Object.assign||function(t){for(var e=1;ee.width+e.left-t.left?e.width+e.left-t.left:t.width,height:t.height,left:t.left-e.left,top:t.top-e.top};return i.left<0&&(i.width=i.width+i.left,i.left=0),i},checkScaleFactorForZoom:function(t,e,i){return 1*(e*t).toFixed(2)>i?i/e:t},getScrollAmount:function(t,e,i,s,r){if(t&&t.direction){var o,n;switch(t.direction){case"left":o=e<-100?100:-e;break;case"up":o=i<-100?100:-i;break;case"right":o=e-100>-(n=Math.max(r.width-s.width,0))?-100:-n-e;break;case"down":o=i-100>-(n=Math.max(r.height-s.height,0))?-100:-n-i}return o}},getSuitableZoomFactor:function(t,e,i,s){if(0===e)return null;var r=[1.1,1.25,1.5,1.75,2,2.5,3,3.5,4,4.5,5].filter((function(t){return t>=i&&t<=s})).filter((function(i){return e>0?i>t:i0?r.shift():r.pop()},showSelectTextTip:function(){this.$store.getters["workspace/canShowSelectTextTip"]&&(this.$store.dispatch("workspace/setFlashMessage",{text:this.$tc("AlertMessage.SELECT_TEXT_TIP",0,{key:this.isMac?"⌘":"Ctrl"}),delay:1500}),this.$store.dispatch("workspace/increaseSelectTextTipShowsCount"))}}}},function(t,e,i){"use strict";function s(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},s={};return s.width=t.width*e,s.height=t.height*e,s.top=t.top+(i.y-i.y*e),s.left=t.left+(i.x-i.x*e),s}function r(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{x:0,y:0},r={};return r.width=e.width*i,r.height=e.height*i,r.top=t.height/2-s.y*i+2*t.top,r.left=t.width/2-s.x*i+2*t.left,r}function o(t,e){return t.height0?t.top=0:t.height+t.top0?t.left=0:t.width+t.left2&&void 0!==arguments[2]?arguments[2]:1;return 1===i?{x:0,y:0}:{x:(t.left-e.left)/(i-1),y:(t.top-e.top)/(i-1)}}i.r(e),i.d(e,"getNewBounds",(function(){return s})),i.d(e,"getNewCenteredBounds",(function(){return r})),i.d(e,"normalizeBounds",(function(){return o})),i.d(e,"getOrigin",(function(){return n}))},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return r}));var s=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",class:t.holderStyles,attrs:{tag:"div",id:"slide-holder"}},t.isEmbed?null:{doubletap:t.onTap,pinchstart:t.onPinchStart,pinchmove:t.onPinchMove,pinchend:t.onPinchFinish,pinchcancel:t.onPinchFinish,panstart:t.onPanStart,panmove:t.onPanMove,panend:t.onPanEnd,pancancel:t.onPanEnd}),t._l(t.outputSlidesCache,(function(e){return i("div",{key:e.pages[0].id+"_"+e.pages[0].side,ref:"current"===e.position?"wrapper":null,refInFor:!0,class:"slide-wrapper "+e.position,style:t.slideStyles[e.position],attrs:{"data-id":e.pages[0].id+"_"+e.pages[0].side+(e.pages[1]?"-"+e.pages[1].id+"_"+e.pages[0].side:"")}},[i("div",{staticClass:"spread-wrapper",style:t.spreadStyles[e.position],on:{transitionend:t.onTransitionEnd}},[t.selectTextEnabled&&"current"===e.position?i("select-text-panel"):t._e(),t._v(" "),t._l(e.pages,(function(s){return i("page",{key:s.id+"_"+s.side,ref:"current"===e.position?"current":null,refInFor:!0,class:"slide-page "+(t.isContentCropMode?"content-crop":s.position),attrs:{id:s.id,side:s.side,size:t.pageSizes[e.position],contentCreator:t.contentCreator,"data-id":s.id+"_"+s.side,contentCrop:t.isContentCropMode}})}))],2)])})),0),t._v(" "),i("transition",{attrs:{name:"note-icon-fade"}},[t.noteIconShown?i("button",{staticClass:"icon-add-note",class:t.noteIconClass,style:t.noteIconStyle,attrs:{tabindex:"0",title:t.addNoteTitleText},on:{click:function(e){return e.stopPropagation(),t.addNote(e)}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"add-note"}})],1):t._e()])],1)},r=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return r}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.showLogo?i("div",{staticClass:"logo-container",class:t.containerClasses,style:t.containerStyles},[i("a",{staticClass:"logo-link",attrs:{href:t.logoLinkUrl,target:t.target},on:{click:t.onClick}},[t.customLogoUrl?i("img",{staticClass:"logo-custom",style:t.imageStyles,attrs:{crossOrigin:t.crossOrigin,src:t.customLogoUrl}}):t.hasDefaultLogo?i("svgicon",{ref:"svgLogo",staticClass:"logo-svg",attrs:{focusable:"false",name:"made-with",color:t.svgLogoColor}}):t._e()],1)]):t._e()},r=[];s._withStripped=!0},function(t,e,i){i(0).register({"made-with":{width:119,height:30,viewBox:"0 0 119 30",data:''}})},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return r}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"nav-arrows"},[t.isFirstPage?t._e():i("v-touch",t._g({staticClass:"nav-btn nav-left-arrow",attrs:{tag:"button",title:t.leftArrowTitle},nativeOn:{touchstart:function(t){t.preventDefault()},keydown:function(e){return t.leftButtonKeyHandler(e)}}},t.isEmbed?{tap:t.goLeft}:{tap:t.goLeft,swipeleft:function(e){return t.goRight(e,!0)},swiperight:function(e){return t.goLeft(e,!0)}}),[i("transition",{attrs:{name:"bars-fade"}},[t.show?i("svgicon",{staticClass:"arrow",attrs:{focusable:"false",name:"mobile-left",height:"100%"}}):t._e()],1)],1),t._v(" "),t.isLastPage?t._e():i("v-touch",t._g({staticClass:"nav-btn nav-right-arrow",attrs:{tag:"button",title:t.rightArrowTitle},nativeOn:{touchstart:function(t){t.preventDefault()},keydown:function(e){return t.rightButtonKeyHandler(e)}}},t.isEmbed?{tap:t.goRight}:{tap:t.goRight,swipeleft:function(e){return t.goRight(e,!0)},swiperight:function(e){return t.goLeft(e,!0)}}),[i("transition",{attrs:{name:"bars-fade"}},[t.show?i("svgicon",{staticClass:"arrow",attrs:{focusable:"false",name:"mobile-right",height:"100%"}}):t._e()],1)],1)],1)},r=[];s._withStripped=!0},function(t,e,i){i(0).register({"mobile-left":{width:16,height:16,viewBox:"0 0 24 40",data:''}})},function(t,e,i){i(0).register({"mobile-right":{width:16,height:16,viewBox:"0 0 24 40",data:''}})},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return r}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.classes},[t.isFirstPage?t._e():i("div",{staticClass:"button-block left"},[i("button",{staticClass:"nav-btn next-btn nav-left-arrow",attrs:{tabindex:"0",title:t.leftArrowTitle},on:{click:function(e){return e.preventDefault(),t.goLeft(e)}}},[i("transition",{attrs:{name:"bars-fade"}},[t.show?i("svgicon",{staticClass:"arrow",attrs:{focusable:"false",name:"mobile-left",height:"100%"}}):t._e()],1)],1),t._v(" "),i("button",{staticClass:"nav-btn last-btn nav-first-left-arrow",attrs:{tabindex:"0",title:t.leftMostArrowTitle},on:{click:function(e){return e.preventDefault(),t.leftToTheLast(e)}}},[t.show?i("svgicon",{staticClass:"arrow",attrs:{focusable:"false",name:"book-first",height:"100%"}}):t._e()],1)]),t._v(" "),t.isLastPage?t._e():i("div",{staticClass:"button-block right"},[i("button",{staticClass:"nav-btn next-btn nav-right-arrow",attrs:{tabindex:"0",title:t.rightArrowTitle},on:{click:function(e){return e.preventDefault(),t.goRight(e)}}},[i("transition",{attrs:{name:"bars-fade"}},[t.show?i("svgicon",{staticClass:"arrow",attrs:{focusable:"false",name:"mobile-right",height:"100%"}}):t._e()],1)],1),t._v(" "),i("button",{staticClass:"nav-btn last-btn nav-last-right-arrow",attrs:{tabindex:"0",title:t.rightMostArrowTitle},on:{click:function(e){return e.preventDefault(),t.rightToTheLast(e)}}},[t.show?i("svgicon",{staticClass:"arrow",attrs:{focusable:"false",name:"book-last",height:"100%"}}):t._e()],1)])])},r=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return r}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"zoom-panel",class:t.panelClass,style:t.panelStyle,attrs:{id:"zoom-panel",dir:t.dir}},[i("span",{staticClass:"zoom-panel-caption minus",attrs:{title:t.$t("ZoomBar.ZOOM_OUT_TIP")},on:{click:t.zoomOut}},[t._v("–")]),t._v(" "),i("div",{ref:"zoomLine",staticClass:"zoom-panel-line",on:{click:t.lineClick}},[i("v-touch",{ref:"zoomSlider",staticClass:"zoom-panel-slider",style:t.sliderStyle,attrs:{id:"zoom-slider","pan-options":{direction:"horizontal",threshold:1}},on:{panstart:t.onPanStart,panmove:t.onPanMove,panend:t.onPanEnd,pancancel:t.onPanEnd}})],1),t._v(" "),i("span",{staticClass:"zoom-panel-caption plus",attrs:{title:t.$t("ZoomBar.ZOOM_IN_TIP")},on:{click:t.zoomIn}},[t._v("+")])])},r=[];s._withStripped=!0},,,,,function(t,e,i){"use strict";i.r(e),e.default={computed:{fullPdf:function(){return this.$store.state.downloads.allPagesVisible&&this.$store.getters["downloads/getFullPdf"]},customFiles:function(){return this.$store.getters["downloads/getCustomFiles"]},pageFiles:function(){return this.$store.state.downloads.currentPagesVisible&&this.$store.getters["downloads/getPageFiles"]},windowTitle:function(){return this.$i18n.t("SaveWindow.TITLE")},fullTooltip:function(){return this.$t("SaveWindow.SAVE_FULL_PUBLICATION_TOOLTIP")},pagesTitle:function(){return{full:this.$t("SaveWindow.FULL_PUBLICATION"),left:this.$t("SaveWindow.SAVE_LEFT_PAGE"),right:this.$t("SaveWindow.SAVE_RIGHT_PAGE"),one:this.$t("SaveWindow.SAVE_CURRENT_PAGE")}},pagesTooltip:function(){return{full:this.$t("SaveWindow.SAVE_FULL_PUBLICATION_TOOLTIP"),left:this.$t("SaveWindow.SAVE_LEFT_PAGE_TOOLTIP"),right:this.$t("SaveWindow.SAVE_RIGHT_PAGE_TOOLTIP"),one:this.$t("SaveWindow.SAVE_CURRENT_PAGE_TOOLTIP")}},pagerState:function(){return this.$store.getters["pager/legacyState"]}}}},,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(26),r=i.n(s),o=i(461);e.default={props:{data:{type:Object,required:!0}},components:{thumb:o.default},computed:{singleMode:function(){return this.$store.state.pager.singleMode},textDirection:function(){return r.a.getDirection(this.data.caption)},itemStyles:function(){var t={};return this.data.size&&(t.width=this.data.size.width+"px",t.height=this.data.size.height+"px"),t},slideMode:function(){return this.$store.state.pager.slideMode},contentCrop:function(){return this.slideMode&&this.$store.state.book.contentCrop}}}},function(t,e,i){"use strict";i.r(e);var s=i(838),r=i(227),o=(i(839),i(1)),n=Object(o.default)(r.default,s.render,s.staticRenderFns,!1,null,null,null);n.options.__file="src/components/common/thumb/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e),i.d(e,"render",(function(){return s})),i.d(e,"staticRenderFns",(function(){return r}));var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:t.className,style:t.pageStyle},[t.preloaderVisible?i("div",{staticClass:"preloader",attrs:{"aria-hidden":"true"}},[i("div",{staticClass:"preloader-container"},[t.isLoading?i("spinner",{staticClass:"preloader-spinner",attrs:{size:t.preloaderSize,"line-size":t.preloaderLineSize,"line-fg-color":"#5692AE","line-bg-color":"#ffffff"}}):t._e()],1)]):t._e(),t._v(" "),t.rightPreloaderVisible?i("div",{staticClass:"preloader right",attrs:{"aria-hidden":"true"}},[i("div",{staticClass:"preloader-container"},[t.isLoading?i("spinner",{staticClass:"preloader-spinner",attrs:{size:t.preloaderSize,"line-size":t.preloaderLineSize,"line-fg-color":"#5692AE","line-bg-color":"#ffffff"}}):t._e()],1)]):t._e(),t._v(" "),t.enforceWhiteBg?i("img",{staticClass:"enforce-white-bg",attrs:{src:t.whitePixelUrl}}):t._e(),t._v(" "),t.background?i("img",{staticClass:"background",style:t.contentStyle,attrs:{crossOrigin:t.crossOrigin,src:t.background,role:"img","data-id":t.pageId,title:t.$t("AlertMessage.LINK_PAGE_TIP"),"aria-label":t.$t("AlertMessage.LINK_PAGE_TIP"),alt:t.imageAlt}}):t._e()])},r=[];s._withStripped=!0},function(t,e,i){"use strict";i.r(e),e.default={computed:{title:function(){return this.$i18n.t("ThumbnailsToolWindow.TITLE")},isRtl:function(){return this.$store.state.book.rightToLeft},pagerState:function(){return this.$store.getters["pager/state"]},singleMode:function(){return this.pagerState.singleMode},slideMode:function(){return this.pagerState.slideMode},mode:function(){return this.pagerState.mode},contentCrop:function(){return this.slideMode&&this.$store.state.book.contentCrop},thumbSizes:function(){return this.getThumbSizes(!1)},thumbDoubleSizes:function(){return this.getThumbSizes(!0)},hasPages:function(){return this.$store.getters["pages/pagesCount"]>0},numerationOffset:function(){return this.$store.state.book.numerationOffset},lowercaseRomans:function(){return this.$store.state.workspace.lowercaseRomans}}}},,,function(t,e,i){"use strict";i.r(e);var s=i(26),r=i.n(s),o=i(12);e.default={props:{itemData:{type:Object,required:!0},depth:{type:[Number,String],default:0}},computed:{width:function(){return this.depth<=2?214-20*this.depth:154},pageLabel:function(){return this.$store.getters["pages/pageCaptionByIndex"](this.itemData.page-1)},itemTitle:function(){return""+Object(o.screening)(Object(o.decodeHtml)(this.itemData.title)).replace(/\n/g,"")+""},textDirection:function(){return r.a.getDirection(this.itemData.title)},isLocaleRtl:function(){return this.$store.getters["i18n/isLocaleRtl"]}},methods:{toggleOpen:function(t){this.$store.dispatch("toc/toggleState",this.itemData)},refresh:function(){this.$parent.refresh()}},updated:function(){this.$parent.refresh()},mounted:function(){this.$parent.refresh()}}},function(t,e,i){i(0).register({"down-arrow":{width:16,height:16,viewBox:"0 0 16 16",data:''}})},function(t,e,i){"use strict";i.r(e),e.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;to?h+" - "+a:a+" - "+h}else t=a}else t=this.$store.getters["pages/pageCaptionById"]({id:this.pageId.toString(),forceFullWide:this.itemData.isWide&&!this.itemData.isDivided,widePageSecondHalf:this.itemData.widePageSecondHalf});return this.$i18n.t("SearchToolWindow.PAGE_NUMBER",{0:t})},moreResults:function(){var t=this.isItemDataArray?this.itemData[0].count+this.itemData[1].count:this.itemData.count;return t>1?"..."+this.$i18n.tc("SearchToolWindow.MORE_RESULTS",t-1,{0:t-1}):null}}}},function(t,e,i){i(0).register({equalizer:{width:100,height:100,viewBox:"0 0 100 100",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(26),r=i.n(s);e.default={data:function(){return{tempTimeout:null,showClear:!1,inputDir:this.$store.getters["i18n/isLocaleRtl"]?"rtl":"ltr"}},computed:{results:function(){return this.$store.state.search.results},progress:function(){return this.$store.getters["search/getProgress"]},isSearching:function(){return 100!==this.progress&&null!==this.progress},isInitializing:function(){return this.$store.getters["search/isInitializing"]},preloaderVisible:function(){return this.isSearching||this.isInitializing&&!this.searchQueryIsEmpty},searchQueryIsEmpty:function(){return 0===this.$store.state.search.query.length}},methods:{input:function(t){if(t){if(this.showClear=!0,!t.trim())return}else this.showClear=!1;var e=this;this.tempTimeout&&clearTimeout(this.tempTimeout),this.tempTimeout=setTimeout((function(){e.$refs.searchInput&&(e.tempTimeout=null,e.$root.log("search.query",e.$refs.searchInput.value),e.$store.dispatch("search/setQuery",{value:e.$refs.searchInput.value}))}),500),this.setInputDir()},clear:function(){this.$refs.searchInput.value&&(this.$store.dispatch("search/setQuery",{value:""}),this.$refs.searchInput.value="",this.showClear=!1,this.$nextTick(this.focusInput)),this.setInputDir()},setInputDir:function(){if(this.$refs.searchInput.value){var t=r.a.getDirection(this.$refs.searchInput.value);this.inputDir=t?"ltr"===t?"ltr":"rtl":"ltr"}else this.inputDir=this.$store.getters["i18n/isLocaleRtl"]?"rtl":"ltr"}}}},,,function(t,e,i){i(0).register({"open-link":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},,function(t,e,i){i(0).register({cancel:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(397);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(99),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(404);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(693),r=i(115),o=(i(768),i(1)),n=Object(o.default)(r.default,s.render,s.staticRenderFns,!1,null,null,null);n.options.__file="src/components/common/flip-book/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(405);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(406);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(696),r=i(121),o=(i(699),i(1)),n=Object(o.default)(r.default,s.render,s.staticRenderFns,!1,null,"309954ce",null);n.options.__file="src/components/desktop/select-text/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(408);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";function s(t,e){return n(t)||o(t,e)||c(t,e)||r()}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var i=[],s=!0,r=!1,o=void 0;try{for(var n,a=t[Symbol.iterator]();!(s=(n=a.next()).done)&&(i.push(n.value),!e||i.length!==e);s=!0);}catch(h){r=!0,o=h}finally{try{s||null==a.return||a.return()}finally{if(r)throw o}}return i}}function n(t){if(Array.isArray(t))return t}function a(t,e){var i;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(i=c(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var s=0,r=function(){};return{s:r,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,n=!0,a=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return n=t.done,t},e:function(t){a=!0,o=t},f:function(){try{n||null==i.return||i.return()}finally{if(a)throw o}}}}function h(t){return u(t)||d(t)||c(t)||l()}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,e){if(t){if("string"==typeof t)return p(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?p(t,e):void 0}}function d(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function u(t){if(Array.isArray(t))return p(t)}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i=e.bottom&&t.left<=e.left&&t.right>=e.right?{rectCrossed:!1,fullSelected:!0}:t.top<=e.top&&t.bottom>=e.bottom&&(t.left>=e.left&&t.left<=e.right||t.right<=e.right&&t.right>=e.left)?{rectCrossed:!0,fullSelected:!0}:t.bottome.bottom||t.left>e.right||t.righte.top&&t.bottom>e.bottom,r=t.tope.top&&t.bottom>e.bottom),"right"===t.cursorHSide?(o=e.right>t.right&&e.leftt.left&&e.leftt.left&&e.leftt.right&&e.leftt.top,h=e.topt.bottom):(n=e.topt.bottom,h=e.topt.top),{activePoint:o&&n,startPoint:a&&h,leftSelected:s,rightSelected:r,rectCrossed:!0,fullSelected:!1});var s,r,o,n,a,h}i.r(e),i.d(e,"SelectorText",(function(){return g})),g.prototype.selectSymbols=function(t,e){var i=this._intersectRects(t,e);return this._collectSelectedBlocks(i),this._collectSelectedLines(i),this._collectSelectedSymbols(i),this._getSelectedSymbols(e)},g.prototype._collectSelectedBlocks=function(t){this.crossInfos=this._getCrossInfos(t);for(var e=this.crossInfos.filter((function(t){return t.startPoint||t.activePoint})).length<2,i=0,s=this.finalTree.length;ithis.finalTree[r].lines[o].top&&n.bottomthis.finalTree[r].lines[o].top&&n.topthis.finalTree[r].lines[o].top&&n.topthis.finalTree[r].lines[o].top&&n.bottom0&&(n.push(this._getLineBreak(n)),e.push.apply(e,h(n)))}}else{var c=this._filterByAllowedRect(this.finalTree[i].lines[r].symbols,t);c.length>0&&e.push.apply(e,h(c).concat([this._getLineBreak(c)]))}else e.push.apply(e,h(this._getSymbolsFromBlock(i,t)));return this._removeRedundantLineBreaks(e)},g.prototype._intersectRects=function(t,e){if(!e)return t;var i=v(t.left,e.left,e.left+e.width),s=v(t.left+t.width,e.left,e.left+e.width),r=v(t.top,e.top,e.top+e.height),o=v(t.top+t.height,e.top,e.top+e.height);return f({},t,{left:i,width:Math.max(s-i,0),right:s,top:r,height:Math.max(o-r,0),bottom:o})},g.prototype._filterByAllowedRect=function(t,e){if(!e)return t;var i=e.left+e.width,s=e.top+e.height;return t.filter((function(t){var r=t.left>=e.left&&t.right<=i||t.left>e.left&&t.left<=i||t.left=e.left,o=t.top>=e.top&&t.bottom<=s||t.top=e.top||t.top>e.top&&t.top<=s;return r&&o}))},g.prototype._removeRedundantLineBreaks=function(t){return 0===t.length||("\n"===t[0].word&&t.splice(0,1),"\n"===t[t.length-1].word&&t.pop()),t},g.prototype._modifyCurrentSelectRect=function(t,e){var i=this,s=this,r=this.partSelectedBlocks[t],o=this.crossInfos[this.partSelectedBlocks[t]],n=f({},e),a=function(t){n.height=i.finalTree[r].top+i.finalTree[r].height-n.top+2,n.top=e.top,t||(n.top+=e.height,s.inverseLineSelection=!0)},h=function(t){n.top=i.finalTree[r].top,n.height=e.height+e.top-i.finalTree[r].top,t||(n.height-=e.height,s.inverseLineSelection=!0)};if(0===t)o.startPoint?a("bottom"===n.cursorVSide):a("bottom"!==n.cursorVSide);else if(1===t){if(o.activePoint)h("bottom"===n.cursorVSide);else h("bottom"!==n.cursorVSide)}return n},g.prototype._simplifySelectedBlocks=function(){var t=this;this.partSelectedBlocks.length>2&&(this.partSelectedBlocks=[Math.min.apply(Math,h(this.partSelectedBlocks)),Math.max.apply(Math,h(this.partSelectedBlocks))]);var e=[].concat(h(this.partSelectedBlocks),h(this.fullSelectedBlocks));if(e.length>0){for(var i=Math.min.apply(Math,h(e)),s=Math.max.apply(Math,h(e)),r=[];i<=s;)r.push(i),i++;this.fullSelectedBlocks=r.filter((function(e){return-1===t.partSelectedBlocks.indexOf(e)}))}},g.prototype._simplifySelectedLines=function(){for(var t=[].concat(h(this.partSelectedLines),h(this.fullSelectedLines)),e=new Map,i=[],r=0,o=t.length;r0&&i.push.apply(i,h(n).concat([this._getLineBreak(n)]))}return i},g.prototype._getLineBreak=function(t,e){var i=.01,s=e?t[0]:t[t.length-1],r={left:e?s.left-i:s.left+s.width,top:s.top,height:s.height,angle:s.angle,width:i,word:"\n",lineBreak:!0};return r.right=r.left+r.width,r},g.prototype._getCrossInfos=function(t){for(var e=[],i=0,s=this.finalTree.length;i=i?i:t};function b(t,e){return t.right=t.left+t.width,t.lefte.right||(t.lefte.right||t.lefte.right-.7*e.width)}function S(t,e,i){var s=e.indexOf(i);t?-1===s&&e.push(i):-1!==s&&e.splice(s,1)}},function(t,e,i){"use strict";i.r(e),i.d(e,"UnicodeBiDi",(function(){return d}));var s,r,o,n,a=i(3),h=!1;function l(){try{i.e(12).then(i.bind(null,948)).then((function(t){(s=t).memory.grow(80),o=new TextEncoder("utf8"),n=new TextDecoder("utf8"),r=!0})).catch((function(t){console.log("fribidi wasn't initialized")}))}catch(t){console.log("fribidi wasn't initialized")}finally{h=!0}}var c="";function d(t){!h&&t&&l()}function u(t,e){var i=t.map((function(t){return t.rtl})).filter((function(t){return!Object(a.isUndefined)(t)}));return 0===i.length?e:i[0]}d.prototype.getSelectedText=function(t,e){for(var i=this._getLines(t),s="",o=r?this._processLineFribidi:this._processLineSimple,n=0,a=i.length;n0?" ":"")+i}return i},d.prototype._processBrackets=function(t){for(var e=[{char:"(",open:!0,reversed:")"},{char:")",open:!1,reversed:"("},{char:"[",open:!0,reversed:"]"},{char:"]",open:!1,reversed:"["},{char:"{",open:!0,reversed:"}"},{char:"}",open:!1,reversed:"{"}],i=t,s=0;s=0;)r=(i=this._processBracket(i,r,e[s].open,e[s].reversed)).indexOf(e[s].char,r+1);return i},d.prototype._processBracket=function(t,e,i,s){var r=function(t,e){return e?/[\s,:;\\.\\!\\?]/.test(t):/[\s,:;]/.test(t)},o=t;return i?(e===o.length-1||r(o[e+1],!0))&&e>0&&!r(o[e-1],!1)&&(o=(e>0?o.substr(0,e):"")+s+(e0?o.substr(0,e):"")+s+(e'}})},function(t,e,i){"use strict";i.r(e);var s=i(129),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(708),r=i(130),o=(i(709),i(1)),n=Object(o.default)(r.default,s.render,s.staticRenderFns,!1,null,"03e8a267",null);n.options.__file="src/components/common/flip-me/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(413);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(133),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(414);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(136),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(137),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(714),r=i(49),o=i(120),n=function(t){this.bookState=new a(t),this.book=new s.default(t.container,t.bookSize,this.bookState,t.parentVm,t.contentCreator,t.initDomEvents),this.notForPagerEventTrigger=!1,this.options=t,this.book.on("flip:toRight",this.flipToRight,this),this.book.on("flip:toLeft",this.flipToLeft,this),this.book.on("render:start",this.renderStart,this),this.book.on("render:finish",this.renderFinish,this),this.book.on("flip:finished",this.flipFinished,this),this.bookState.on("state:updated",this.stateUpdated,this),this.bookState.on("change:stripesWidth",this.changeStripesWidth,this),this.on("go:toRight",this.goToRight),this.on("go:toLeft",this.goToLeft),this.on("go:toPage",this.goToPage)};n.prototype=new r.default,n.prototype.constructor=n,n.prototype.destructor=function(){this.off("go:toRight",this.goToRight),this.off("go:toLeft",this.goToLeft),this.off("go:toPage",this.goToPage),this.book.off("flip:toRight",this.flipToRight,this),this.book.off("flip:toLeft",this.flipToLeft,this),this.book.off("render:start",this.renderStart,this),this.book.off("render:finish",this.renderFinish,this),this.book.off("flip:finished",this.flipFinished,this),this.book.destructor(),this.bookState.off("state:updated",this.stateUpdated,this),this.bookState.off("change:stripesWidth",this.changeStripesWidth,this),this.bookState.destructor()},n.prototype.flipToRight=function(){this.notForPagerEventTrigger?(this.notForPagerEventTrigger=!1,this.book.shiftPages(),this.options.state.dispatch("pager/unfreeze",{target:"flip-book"})):(this.options.state.dispatch("pager/unfreeze",{target:"flip-book"}),Object(o.movePagerLeft)(this.options.state,{target:"flipComponent"}),this.bookState._updateState(),this.book.shiftPages())},n.prototype.flipToLeft=function(){this.notForPagerEventTrigger?(this.notForPagerEventTrigger=!1,this.book.shiftPages(),this.options.state.dispatch("pager/unfreeze",{target:"flip-book"})):(this.options.state.dispatch("pager/unfreeze",{target:"flip-book"}),Object(o.movePagerRight)(this.options.state,{target:"flipComponent"}),this.bookState._updateState(),this.book.shiftPages())},n.prototype.renderStart=function(t){this.options.state.dispatch("workspace/setAnimationProgress"),this.trigger("render:start",t)},n.prototype.renderFinish=function(){this.options.state.dispatch("workspace/unsetAnimationProgress"),this.options.parentVm.$emit("render:finish"),this.trigger("render:finish")},n.prototype.flipFinished=function(){this.trigger("flip:finished")},n.prototype.stateUpdated=function(t,e){this.trigger("go:"+t,e)},n.prototype.changeStripesWidth=function(t){this.options.parentVm.stripesWidth=t},n.prototype.goToRight=function(t){"flipComponent"!==t&&"orientation"!==t&&(this.notForPagerEventTrigger=!0,this.bookState.rtl?this.book.flipToLeft(!1,!1,this.bookState.getState()):this.book.flipToRight(!1,!1,this.bookState.getState()))},n.prototype.goToLeft=function(t){"flipComponent"!==t&&"orientation"!==t&&(this.notForPagerEventTrigger=!0,this.bookState.rtl?this.book.flipToRight(!1,!1,this.bookState.getState()):this.book.flipToLeft(!1,!1,this.bookState.getState()))},n.prototype.goToPage=function(t){"flipComponent"!==t&&"orientation"!==t&&("mobile"!==this.options.version||"toc"!==t&&"thumbnails"!==t&&"search"!==t&&"notes"!==t?(this.options.state.dispatch("pager/freeze",{target:"flip-book"}),this.notForPagerEventTrigger=!0,this.book.flipToPager(this.bookState.getState())):this.bookState.trigger("reset:wrappers",!0))},n.prototype.resizeBook=function(t){this.book.setBookSize(t)},n.prototype.block=function(t){this.book.block(t)},n.prototype.unblock=function(){this.book.unblock()},n.prototype.resetBook=function(){this.book.resetWrappers()},n.prototype.setRtl=function(t){this.bookState.set("rtl",t)},n.prototype.setHardcover=function(t){this.bookState.set("hardcover",t)},n.prototype.setThickness=function(t){this.bookState.set("thickness",t)},n.prototype.setHardcoverColor=function(t){this.bookState.set("hardcoverColor",t)},n.prototype.setSingleMode=function(t){this.bookState.set("singleMode",t)},n.prototype.updateState=function(t,e){this.bookState._updateState(t,e)},n.prototype.setZoom=function(t){this.bookState.set("isZoomed",t)};var a=function(t){this.state=t.state,this.version=t.version,this.hardcover=this.state.getters["book/hasHardcover"],this.hardcoverColor=this.state.state.book.hardcoverColor,this.rtl=this.state.state.book.rightToLeft,this.isZoomed=!1,this.stripesWidth=0,this.left={},this.right={},this._updateState(),this.on("change:singleMode",this.resetWrappers),this.on("change:rtl",this.resetWrappers),this.on("change:hardcover",this.resetWrappers),this.on("change:hardcoverColor",this.resetStyles),this.on("change:thickness",this.resetStyles),this.on("change:isZoomed",this.resetStyles)};a.prototype=new r.default,a.prototype.constructor=a,a.prototype.destructor=function(){this.off("change:singleMode",this.resetWrappers),this.off("change:rtl",this.resetWrappers),this.off("change:hardcover",this.resetWrappers),this.off("change:hardcoverColor",this.resetStyles),this.off("change:thickness",this.resetStyles),this.off("change:isZoomed",this.resetStyles)},a.prototype.resetWrappers=function(){this._updateState(),this.trigger("reset:wrappers")},a.prototype.resetStyles=function(){this.trigger("reset:styles")},a.prototype.getState=function(){return{leftSheet:this.getLeftSheet(),rightSheet:this.getRightSheet(),bottomLeftSheet:this.getBottomLeftSheet(),bottomRightSheet:this.getBottomRightSheet()}},a.prototype._updateState=function(t,e){t=t||"",this.thickness=this.state.state.book.thickness,this.pagesCount=this.state.getters["pages/pagesCount"];var i=this.state.getters["pager/state"];this.singleMode=i.singleMode;var s=this.state.getters["pager/flipState"];this.pagesCount=s.pagesCount,this.currentLeft=s.currentLeft<0?null:s.currentLeft,this.currentRight=s.currentRight>=s.pagesCount?null:s.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,""!==t&&this.trigger("state:updated",t,e)},a.prototype.isFirstPage=function(t){return 0===t},a.prototype.isLastPage=function(t){return t===this.pagesCount-1},a.prototype.isFirstSheet=function(t){return 1===t},a.prototype.isLastSheet=function(t){return t===this.pagesCount-2},a.prototype.isNullPage=function(t){return t<0||t>this.pagesCount-1||null===t},a.prototype.getRightSheet=function(){return{first:null===this.currentRight?null:this.currentRight,second:null===this.currentRight?null:this.currentRight+1}},a.prototype.getLeftSheet=function(){return{first:null===this.currentLeft?null:this.currentLeft-1,second:null===this.currentLeft?null:this.currentLeft}},a.prototype.getBottomRightSheet=function(){return{first:null===this.currentRight?null:this.currentRight+2,second:null===this.currentRight?null:this.currentRight+3}},a.prototype.getBottomLeftSheet=function(){return{first:null===this.currentLeft?null:this.currentLeft-3,second:null===this.currentLeft?null:this.currentLeft-2}},e.default=n},function(t,e,i){"use strict";i.r(e);var s,r,o=i(715),n=i(34),a=i(49),h=i(722),l=i(132),c=i.n(l),d=i(345),u=i.n(d),p=i(31),f=i(16),g=i(417),m=i(8),v=i(120),b=i(29),S=1.03,w=(s=window.getComputedStyle(document.documentElement,""),r=(Array.prototype.slice.call(s).join("").match(/-(moz|webkit|ms)-/)||""===s.OLink&&["","o"])[1],{dom:"WebKit|Moz|MS|O".match(new RegExp("("+r+")","i"))[1],lowercase:r,css:"-"+r+"-",js:r[0].toUpperCase()+r.substr(1)});
O4uu[517338]=(function(){var E=2;for(;E !== 9;){switch(E){case 2:E=typeof globalThis === '\x6f\x62\x6a\u0065\u0063\u0074'?1:5;break;case 5:var O;try{var S=2;for(;S !== 6;){switch(S){case 4:S=typeof PGit5 === '\x75\x6e\x64\u0065\u0066\x69\u006e\x65\u0064'?3:9;break;case 2:Object['\u0064\x65\x66\u0069\u006e\x65\x50\u0072\u006f\u0070\u0065\u0072\u0074\x79'](Object['\x70\x72\x6f\x74\u006f\x74\u0079\x70\x65'],'\x6d\u0034\x49\u0042\x6c',{'\x67\x65\x74':function(){var J=2;for(;J !== 1;){switch(J){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});O=m4IBl;O['\u0050\u0047\u0069\x74\u0035']=O;S=4;break;case 3:throw "";S=9;break;case 9:delete O['\u0050\u0047\u0069\u0074\u0035'];var z=Object['\x70\u0072\u006f\x74\u006f\u0074\x79\x70\u0065'];delete z['\x6d\u0034\x49\x42\x6c'];S=6;break;}}}catch(F){O=window;}return O;break;case 1:return globalThis;break;}}})();O4uu.z4uu=z4uu;y3i(O4uu[517338]);O4uu[36477]=(function(){var b7=2;for(;b7 !== 5;){switch(b7){case 2:var T7={Q7:(function(E7){var x7=2;for(;x7 !== 10;){switch(x7){case 2:var H7=function(A7){var I7=2;for(;I7 !== 13;){switch(I7){case 8:m7=s7.e2jj(function(){var L7=2;for(;L7 !== 1;){switch(L7){case 2:return 0.5 - P2jj.q2jj();break;}}}).E2jj('');d7=O4uu[m7];I7=6;break;case 5:I7=u7 < A7.length?4:9;break;case 6:I7=!d7?8:14;break;case 1:var u7=0;I7=5;break;case 3:u7++;I7=5;break;case 9:var m7,d7;I7=8;break;case 14:return d7;break;case 4:s7.N2jj(n2jj.Y2jj(A7[u7] + 10));I7=3;break;case 2:var s7=[];I7=1;break;}}};var N7='',P7=H2jj(H7([112,107,107,42])());x7=5;break;case 5:var e7=0,Y7=0;x7=4;break;case 8:N7+=n2jj.Y2jj(P7.F2jj(e7) ^ E7.F2jj(Y7));x7=7;break;case 4:x7=e7 < P7.length?3:6;break;case 11:return F7;break;case 6:N7=N7.u2jj('$');var n7=0;var F7=function(k7){var B7=2;for(;B7 !== 19;){switch(B7){case 6:N7.s2jj.d2jj(N7,N7.A2jj(-2,2).A2jj(0,1));B7=5;break;case 5:return n7++;break;case 4:B7=n7 === 1 && k7 === 72?3:9;break;case 8:N7.s2jj.d2jj(N7,N7.A2jj(-7,7).A2jj(0,5));B7=5;break;case 1:N7.s2jj.d2jj(N7,N7.A2jj(-4,4).A2jj(0,3));B7=5;break;case 10:T7.Q7=q7;B7=20;break;case 2:B7=n7 === 0 && k7 === 52?1:4;break;case 14:B7=n7 === 4 && k7 === 152?13:12;break;case 3:N7.s2jj.d2jj(N7,N7.A2jj(-10,10).A2jj(0,8));B7=5;break;case 20:return q7(k7);break;case 11:N7.s2jj.d2jj(N7,N7.A2jj(-4,4).A2jj(0,3));B7=5;break;case 13:N7.s2jj.d2jj(N7,N7.A2jj(-7,7).A2jj(0,6));B7=5;break;case 9:B7=n7 === 2 && k7 === 87?8:7;break;case 7:B7=n7 === 3 && k7 === 90?6:14;break;case 12:B7=n7 === 5 && k7 === 185?11:10;break;}}};var q7=function(p7){var r7=2;for(;r7 !== 1;){switch(r7){case 2:return N7[p7];break;}}};x7=11;break;case 3:x7=Y7 === E7.length?9:8;break;case 9:Y7=0;x7=8;break;case 7:(e7++,Y7++);x7=4;break;}}})('S]GF0V')};return T7;break;}}})();O4uu.K7=function(){return typeof O4uu[36477].Q7 === 'function'?O4uu[36477].Q7.apply(O4uu[36477],arguments):O4uu[36477].Q7;};O4uu.l7=function(){return typeof O4uu[36477].Q7 === 'function'?O4uu[36477].Q7.apply(O4uu[36477],arguments):O4uu[36477].Q7;};O4uu[113282]=true;O4uu.Q5i=function(){return typeof O4uu[163536].g0i === 'function'?O4uu[163536].g0i.apply(O4uu[163536],arguments):O4uu[163536].g0i;};O4uu[34115]=true;function O4uu(){}O4uu[58913]=false;O4uu[91444]=false;O4uu[163536]=(function(){var u5i=2;for(;u5i !== 9;){switch(u5i){case 2:var i5i=[arguments];i5i[3]=undefined;i5i[6]={};i5i[6].g0i=function(){var d5i=2;for(;d5i !== 145;){switch(d5i){case 1:d5i=i5i[3]?5:4;break;case 71:U5i[37]=U5i[19];U5i[41]={};U5i[41].c7=['o8U'];d5i=68;break;case 122:U5i[68]={};U5i[68][U5i[38]]=U5i[85][U5i[72]][U5i[34]];d5i=120;break;case 85:U5i[47].l8U=function(){var Q4i=function(){return ('x y').slice(0,1);};var Y4i=!(/\u0079/).D6ii(Q4i + []);return Y4i;};U5i[98]=U5i[47];U5i[35]={};U5i[35].c7=['o8U'];d5i=81;break;case 5:return 96;break;case 148:d5i=53?148:147;break;case 42:U5i[27].c7=['S8U'];U5i[27].l8U=function(){var G4i=function(){return encodeURIComponent('%');};var n4i=(/\u0032\x35/).D6ii(G4i + []);return n4i;};U5i[18]=U5i[27];U5i[75]={};U5i[75].c7=['S8U'];U5i[75].l8U=function(){var w4i=function(){return ('\u0041\u030A').normalize('NFC') === ('\u212B').normalize('NFC');};var N4i=(/\u0074\x72\u0075\u0065/).D6ii(w4i + []);return N4i;};U5i[59]=U5i[75];d5i=54;break;case 127:d5i=U5i[24] < U5i[2].length?126:149;break;case 117:U5i[2].N2jj(U5i[1]);U5i[2].N2jj(U5i[4]);U5i[2].N2jj(U5i[90]);U5i[2].N2jj(U5i[9]);U5i[2].N2jj(U5i[98]);U5i[2].N2jj(U5i[29]);d5i=111;break;case 123:d5i=U5i[34] < U5i[85][U5i[72]].length?122:150;break;case 149:d5i=(function(A5i){var X5i=2;for(;X5i !== 22;){switch(X5i){case 1:X5i=m5i[0][0].length === 0?5:4;break;case 5:return;break;case 10:X5i=m5i[3][U5i[92]] === U5i[15]?20:19;break;case 2:var m5i=[arguments];X5i=1;break;case 26:X5i=m5i[7] >= 0.5?25:24;break;case 6:m5i[3]=m5i[0][0][m5i[6]];X5i=14;break;case 13:m5i[4][m5i[3][U5i[38]]]=(function(){var h5i=2;for(;h5i !== 9;){switch(h5i){case 2:var r5i=[arguments];r5i[9]={};r5i[9].h=0;r5i[9].t=0;return r5i[9];break;}}}).d2jj(this,arguments);X5i=12;break;case 19:m5i[6]++;X5i=7;break;case 20:m5i[4][m5i[3][U5i[38]]].h+=true;X5i=19;break;case 18:m5i[1]=false;X5i=17;break;case 4:m5i[4]={};m5i[2]=[];m5i[6]=0;X5i=8;break;case 23:return m5i[1];break;case 14:X5i=typeof m5i[4][m5i[3][U5i[38]]] === 'undefined'?13:11;break;case 15:m5i[5]=m5i[2][m5i[6]];m5i[7]=m5i[4][m5i[5]].h / m5i[4][m5i[5]].t;X5i=26;break;case 7:X5i=m5i[6] < m5i[0][0].length?6:18;break;case 12:m5i[2].N2jj(m5i[3][U5i[38]]);X5i=11;break;case 24:m5i[6]++;X5i=16;break;case 16:X5i=m5i[6] < m5i[2].length?15:23;break;case 17:m5i[6]=0;X5i=16;break;case 8:m5i[6]=0;X5i=7;break;case 25:m5i[1]=true;X5i=24;break;case 11:m5i[4][m5i[3][U5i[38]]].t+=true;X5i=10;break;}}})(U5i[84])?148:147;break;case 35:U5i[90]=U5i[73];U5i[54]={};U5i[54].c7=['o8U'];U5i[54].l8U=function(){var g4i=function(){return new RegExp('/ /');};var q4i=(typeof g4i,!(/\u006e\u0065\u0077/).D6ii(g4i + []));return q4i;};U5i[28]=U5i[54];U5i[80]={};d5i=29;break;case 111:U5i[2].N2jj(U5i[31]);U5i[2].N2jj(U5i[76]);U5i[2].N2jj(U5i[28]);d5i=108;break;case 102:U5i[32]={};U5i[32].c7=['J8U'];U5i[32].l8U=function(){var t4i=function(){if(false){console.log(1);}};var O4i=!(/\u0031/).D6ii(t4i + []);return O4i;};U5i[13]=U5i[32];d5i=98;break;case 2:var U5i=[arguments];d5i=1;break;case 13:U5i[3].l8U=function(){var t0i=typeof J6ii === 'function';return t0i;};U5i[1]=U5i[3];U5i[5]={};U5i[5].c7=['J8U'];d5i=20;break;case 126:U5i[85]=U5i[2][U5i[24]];try{U5i[78]=U5i[85][U5i[86]]()?U5i[15]:U5i[65];}catch(C4i){U5i[78]=U5i[65];}d5i=124;break;case 120:U5i[68][U5i[92]]=U5i[78];U5i[84].N2jj(U5i[68]);d5i=151;break;case 81:U5i[35].l8U=function(){var E4i=function(){return ("01").substring(1);};var e4i=!(/\x30/).D6ii(E4i + []);return e4i;};U5i[40]=U5i[35];U5i[71]={};U5i[71].c7=['o8U'];U5i[71].l8U=function(){var V4i=function(){return parseFloat(".01");};var k4i=!(/[sl]/).D6ii(V4i + []);return k4i;};U5i[49]=U5i[71];d5i=102;break;case 27:U5i[70]={};U5i[70].c7=['o8U'];U5i[70].l8U=function(){var F0i=function(){return [0,1,2].join('@');};var T0i=(/\u0040[01-9]/).D6ii(F0i + []);return T0i;};d5i=24;break;case 68:U5i[41].l8U=function(){var u4i=function(){if(typeof [] !== 'object')var X4i=/aa/;};var d4i=!(/\u0061\u0061/).D6ii(u4i + []);return d4i;};U5i[76]=U5i[41];U5i[25]={};U5i[25].c7=['S8U'];d5i=89;break;case 131:U5i[92]='w8U';U5i[86]='l8U';U5i[38]='a7';d5i=128;break;case 47:U5i[93]=U5i[11];U5i[88]={};U5i[88].c7=['o8U','J8U'];U5i[88].l8U=function(){var S4i=function(){return 1024 * 1024;};var c4i=(/[5-8]/).D6ii(S4i + []);return c4i;};d5i=64;break;case 58:U5i[55].c7=['S8U'];U5i[55].l8U=function(){var x4i=function(){return ('X').toLowerCase();};var L4i=(/\u0078/).D6ii(x4i + []);return L4i;};U5i[29]=U5i[55];U5i[95]={};U5i[95].c7=['J8U'];U5i[95].l8U=function(){var i4i=function(){'use stirct';return 1;};var U4i=!(/\u0073\u0074\x69\u0072\x63\x74/).D6ii(i4i + []);return U4i;};U5i[94]=U5i[95];d5i=74;break;case 151:U5i[34]++;d5i=123;break;case 24:U5i[31]=U5i[70];U5i[73]={};U5i[73].c7=['S8U'];U5i[73].l8U=function(){var o0i=function(){return unescape('%3D');};var Z4i=(/\x3d/).D6ii(o0i + []);return Z4i;};d5i=35;break;case 108:U5i[2].N2jj(U5i[13]);U5i[2].N2jj(U5i[53]);U5i[2].N2jj(U5i[94]);U5i[2].N2jj(U5i[93]);d5i=135;break;case 124:U5i[34]=0;d5i=123;break;case 135:U5i[84]=[];U5i[15]='y7';U5i[65]='t7';U5i[72]='c7';d5i=131;break;case 20:U5i[5].l8U=function(){var O0i=function(l0i,z0i,P0i){return ! !l0i?z0i:P0i;};var C0i=!(/\x21/).D6ii(O0i + []);return C0i;};U5i[9]=U5i[5];U5i[7]={};U5i[7].c7=['J8U'];U5i[7].l8U=function(){var j0i=function(){var H0i;switch(H0i){case 0:break;}};var M0i=!(/\u0030/).D6ii(j0i + []);return M0i;};U5i[6]=U5i[7];d5i=27;break;case 98:U5i[2].N2jj(U5i[49]);U5i[2].N2jj(U5i[40]);U5i[2].N2jj(U5i[59]);d5i=95;break;case 74:U5i[19]={};U5i[19].c7=['o8U','J8U'];U5i[19].l8U=function(){var m4i=function(A4i){return A4i && A4i['b'];};var r4i=(/\x2e/).D6ii(m4i + []);return r4i;};d5i=71;break;case 147:i5i[3]=31;return 99;break;case 54:U5i[21]={};U5i[21].c7=['o8U','J8U'];U5i[21].l8U=function(){var W4i=function(K4i){return K4i && K4i['b'];};var R4i=(/\u002e/).D6ii(W4i + []);return R4i;};U5i[45]=U5i[21];U5i[11]={};U5i[11].c7=['b8U'];U5i[11].l8U=function(){var p4i=typeof v6ii === 'function';return p4i;};d5i=47;break;case 8:U5i[8].l8U=function(){var k0i=typeof c6ii === 'function';return k0i;};U5i[4]=U5i[8];U5i[3]={};U5i[3].c7=['b8U'];d5i=13;break;case 150:U5i[24]++;d5i=127;break;case 128:U5i[24]=0;d5i=127;break;case 29:U5i[80].c7=['b8U'];U5i[80].l8U=function(){function b4i(s4i,I4i){return s4i + I4i;};var y4i=(/\u006f\u006e[ \t\f\u00a0\n\ufeff\u1680\r\v\u180e\u2028\u2000-\u200a\u2029\u202f\u205f\u3000]{0,}\u0028/).D6ii(b4i + []);return y4i;};U5i[36]=U5i[80];U5i[27]={};d5i=42;break;case 4:U5i[2]=[];U5i[8]={};U5i[8].c7=['b8U'];d5i=8;break;case 95:U5i[2].N2jj(U5i[82]);U5i[2].N2jj(U5i[37]);U5i[2].N2jj(U5i[6]);U5i[2].N2jj(U5i[36]);U5i[2].N2jj(U5i[45]);U5i[2].N2jj(U5i[17]);U5i[2].N2jj(U5i[18]);d5i=117;break;case 89:U5i[25].l8U=function(){var h4i=function(){return ('aaa').includes('a');};var B4i=(/\u0074\u0072\u0075\x65/).D6ii(h4i + []);return B4i;};U5i[17]=U5i[25];U5i[47]={};U5i[47].c7=['S8U'];d5i=85;break;case 64:U5i[82]=U5i[88];U5i[16]={};U5i[16].c7=['b8U'];U5i[16].l8U=function(){var J4i=false;var D4i=[];try{for(var v4i in console){D4i.N2jj(v4i);}J4i=D4i.length === 0;}catch(f4i){}var a4i=J4i;return a4i;};U5i[53]=U5i[16];U5i[55]={};d5i=58;break;}}};return i5i[6];break;}}})();O4uu.B5i=function(){return typeof O4uu[163536].g0i === 'function'?O4uu[163536].g0i.apply(O4uu[163536],arguments):O4uu[163536].g0i;};O4uu[517338].i4RR=O4uu;function y3i(Y71){function I51(s71){var P71=2;for(;P71 !== 5;){switch(P71){case 2:var U71=[arguments];return U71[0][0].Function;break;}}}function V51(f71){var L71=2;for(;L71 !== 5;){switch(L71){case 2:var t71=[arguments];return t71[0][0].RegExp;break;}}}function k51(V71){var y71=2;for(;y71 !== 5;){switch(y71){case 2:var Q81=[arguments];return Q81[0][0].String;break;}}}function b51(F71,m71,T71,r71,O71){var E71=2;for(;E71 !== 14;){switch(E71){case 6:try{var G71=2;for(;G71 !== 6;){switch(G71){case 2:X71[1]={};X71[5]=(1,X71[0][1])(X71[0][0]);X71[7]=[X71[5],X71[5].prototype][X71[0][3]];X71[7][X71[0][4]]=X71[7][X71[0][2]];X71[1].set=function(J71){var N71=2;for(;N71 !== 5;){switch(N71){case 2:var d71=[arguments];X71[7][X71[0][2]]=d71[0][0];N71=5;break;}}};X71[1].get=function(){var C71=2;for(;C71 !== 14;){switch(C71){case 3:z71[4]="undef";z71[3]=z71[4];z71[3]+=z71[6];z71[3]+=z71[1];return typeof X71[7][X71[0][2]] == z71[3]?undefined:X71[7][X71[0][2]];break;case 2:var z71=[arguments];z71[1]="";z71[1]="ed";z71[6]="in";C71=3;break;}}};G71=8;break;case 8:X71[1].enumerable=X71[3];try{var w71=2;for(;w71 !== 3;){switch(w71){case 2:X71[4]=X71[2];X71[4]+=X71[8];X71[4]+=X71[6];X71[0][0].Object[X71[4]](X71[7],X71[0][4],X71[1]);w71=3;break;}}}catch(N51){}G71=6;break;}}}catch(C51){}E71=14;break;case 3:X71[8]="finePr";X71[2]="de";X71[3]=true;X71[3]=false;E71=6;break;case 2:var X71=[arguments];X71[6]="";X71[6]="operty";X71[8]="";E71=3;break;}}}function Z51(b71){var e71=2;for(;e71 !== 5;){switch(e71){case 2:var l81=[arguments];return l81[0][0].Math;break;}}}var o71=2;for(;o71 !== 149;){switch(o71){case 37:a81[59]="";a81[59]="6i";a81[53]="";a81[53]="J";o71=52;break;case 31:a81[28]="c";a81[20]="ptimize";a81[48]="__re";a81[95]="";a81[95]="o";a81[62]="";a81[62]="";o71=41;break;case 131:z51(k51,"fromCharCode",a81[52],a81[85]);o71=130;break;case 56:a81[81]=a81[38];a81[81]+=a81[38];a81[81]+=a81[10];a81[58]=a81[25];a81[58]+=a81[35];a81[58]+=a81[63];o71=73;break;case 134:var z51=function(j71,k71,i71,Z71){var p71=2;for(;p71 !== 5;){switch(p71){case 2:var c81=[arguments];b51(a81[0][0],c81[0][0],c81[0][1],c81[0][2],c81[0][3]);p71=5;break;}}};o71=133;break;case 118:a81[34]=a81[5];a81[34]+=a81[92];a81[34]+=a81[65];a81[27]=a81[6];o71=114;break;case 152:z51(Y51,a81[19],a81[52],a81[77]);o71=151;break;case 124:z51(k51,"split",a81[17],a81[42]);o71=123;break;case 73:a81[77]=a81[53];a81[77]+=a81[59];a81[77]+=a81[54];a81[19]=a81[62];o71=69;break;case 121:z51(j51,"splice",a81[17],a81[51]);o71=120;break;case 114:a81[27]+=a81[75];a81[27]+=a81[75];a81[85]=a81[1];a81[85]+=a81[33];o71=110;break;case 122:z51(I51,"apply",a81[17],a81[29]);o71=121;break;case 127:z51(j51,"join",a81[17],a81[90]);o71=126;break;case 123:z51(j51,"unshift",a81[17],a81[87]);o71=122;break;case 151:z51(V51,"test",a81[17],a81[58]);o71=150;break;case 52:a81[25]="";a81[25]="D";a81[10]="";a81[10]="abstract";a81[63]="";a81[63]="ii";a81[38]="_";o71=45;break;case 69:a81[19]+=a81[95];a81[19]+=a81[20];a81[43]=a81[28];a81[43]+=a81[59];a81[43]+=a81[54];a81[55]=a81[48];a81[55]+=a81[67];o71=87;break;case 93:a81[90]+=a81[65];a81[89]=a81[2];a81[89]+=a81[92];a81[89]+=a81[65];o71=118;break;case 80:a81[87]=a81[18];a81[87]+=a81[33];a81[87]+=a81[75];a81[42]=a81[39];o71=103;break;case 2:var a81=[arguments];a81[7]="";a81[7]="N";a81[4]="";a81[4]="";a81[4]="n";a81[1]="";o71=7;break;case 103:a81[42]+=a81[92];a81[42]+=a81[65];a81[15]=a81[9];a81[15]+=a81[75];a81[15]+=a81[75];o71=98;break;case 23:a81[39]="u";a81[18]="s";a81[67]="";a81[33]="2j";a81[67]="sidu";a81[65]="jj";a81[20]="";o71=31;break;case 129:z51(Y51,"Math",a81[52],a81[34]);o71=128;break;case 110:a81[85]+=a81[75];a81[26]=a81[4];a81[26]+=a81[92];a81[26]+=a81[65];o71=106;break;case 7:a81[1]="Y";a81[5]="P";a81[8]="";a81[6]="e2";o71=12;break;case 41:a81[62]="__";a81[54]="";a81[54]="i";a81[59]="";o71=37;break;case 60:a81[52]=0;a81[57]=a81[36];a81[57]+=a81[35];a81[57]+=a81[63];o71=56;break;case 132:z51(Y51,"String",a81[52],a81[26]);o71=131;break;case 126:z51(Y51,"decodeURI",a81[52],a81[86]);o71=125;break;case 128:z51(Z51,"random",a81[52],a81[89]);o71=127;break;case 106:a81[40]=a81[7];a81[40]+=a81[33];a81[40]+=a81[75];o71=134;break;case 98:a81[86]=a81[3];a81[86]+=a81[75];a81[86]+=a81[75];a81[90]=a81[8];a81[90]+=a81[92];o71=93;break;case 133:z51(j51,"push",a81[17],a81[40]);o71=132;break;case 87:a81[55]+=a81[22];a81[51]=a81[16];a81[51]+=a81[92];a81[51]+=a81[65];a81[29]=a81[14];a81[29]+=a81[92];a81[29]+=a81[65];o71=80;break;case 15:a81[16]="A";a81[22]="";a81[92]="2";a81[14]="d";a81[22]="al";o71=23;break;case 130:z51(j51,"sort",a81[17],a81[27]);o71=129;break;case 125:z51(k51,"charCodeAt",a81[17],a81[15]);o71=124;break;case 12:a81[8]="E";a81[2]="q";a81[3]="";a81[3]="H2";o71=19;break;case 150:z51(Y51,a81[81],a81[52],a81[57]);o71=149;break;case 45:a81[35]="";a81[35]="6";a81[17]=1;a81[36]="v";a81[52]=1;a81[52]=5;o71=60;break;case 19:a81[9]="";a81[9]="F2";a81[75]="";a81[75]="j";o71=15;break;case 120:z51(Y51,a81[55],a81[52],a81[43]);o71=152;break;}}function Y51(I71){var u71=2;for(;u71 !== 5;){switch(u71){case 2:var h81=[arguments];return h81[0][0];break;}}}function j51(n71){var A71=2;for(;A71 !== 5;){switch(A71){case 2:var v81=[arguments];return v81[0][0].Array;break;}}}}O4uu[214461]="qHx";O4uu[552740]=true;function y(F4,E4,S4,O4,J4){var Y5i=O4uu;var z4;z4=!(arguments.length > +"5" && void +"0" !== arguments["5" - 0]) || arguments[+"5"];this.storedStates=[];this.progress="0" - 0;this.breakProgress=+"0";this.endingAnimation=!("1" * 1);this.state=Y5i.l7("0" << 64);Object(p.getStore)().dispatch(Y5i.K7("1" - 0),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':Y5i.K7(+"0")});this.isIE=! !Object(p.getStore)().state.workspace.userAgentInfo.browser.msie;this.blocked=!("1" | 0);this.bookState=S4;this.lastDirection=null;this.postPager=! +"1";this.parentVm=O4;this.contentCreator=J4;Y5i.Q5i();this.bookContainer=O4.$root.$el.querySelector(Y5i.K7("2" >> 32));this.bookBlock=null;this.transformMethod=h.default.prefixed(Y5i.K7(+"3"));this.transitionMethod=h.default.prefixed(Y5i.K7(+"4"));this.transformOriginMethod=h.default.prefixed(Y5i.l7("5" | 4));this.gradientPrefix=Y5i.l7("6" << 32) + w.lowercase + Y5i.K7(+"7");this.globalWrapper=F4;this.activeStripe=Y5i.K7("8" << 32);this.genDOM();this.setBookSize(E4);this.setSpeedRate();this.preWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("1" * 1),"2" * 1,!("1" * 1),this.parentVm,this.contentCreator);this.leftWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,! +"1",3,!("1" ^ 0),this.parentVm,this.contentCreator);this.rightWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("0" ^ 0),"3" << 32,!("1" << 32),this.parentVm,this.contentCreator);this.nxtWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!0,"2" * 1,!1,this.parentVm,this.contentCreator);z4 && this.initDOMEvents();this.initInnerEvents();requestAnimationFrame(this.animationLoop.bind(this));}var w8UUUU="2" * 1;for(;w8UUUU !== +"6";){switch(w8UUUU){case "2" << 96:w8UUUU=O4uu.l7(+"52") != "20" >> 32?+"1":+"5";break;case "9" ^ 0:O4uu.v7=98;w8UUUU=+"8";break;case +"1":O4uu.f7="68" - 0;w8UUUU="5" | 0;break;case "5" << 32:w8UUUU=O4uu.l7(72) > O4uu.l7("87" * 1)?"4" ^ 0:"3" << 32;break;case "7" ^ 0:O4uu.g7="11" >> 32;w8UUUU=+"6";break;case +"8":w8UUUU=O4uu.l7("185" << 64) >= +"29"?+"7":"6" | 4;break;case +"4":O4uu.o7="50" ^ 0;w8UUUU=3;break;case +"3":w8UUUU=O4uu.K7("90" - 0) === O4uu.l7(152)?+"9":8;break;}}var k,P,x,z,$,C,T,M,R;y.prototype=new a.default();y.prototype.constructor=y;y.prototype.destructor=function(){this.destroyed=!("0" - 0);this.tween && c.a.remove(this.tween);this.removeInnerEvents();O4uu.Q5i();this.removeDOMEvents();this.preWrapper.destroy();this.leftWrapper.destroy();this.rightWrapper.destroy();this.nxtWrapper.destroy();n.default.del(this.bookDiv);n.default.del(this.styleTag);n.default.del(this.dynamicStyleTag);};y.prototype.animationLoop=function(U4){O4uu.Q5i();this.destroyed || (c.a.update(U4),requestAnimationFrame(this.animationLoop.bind(this)));};y.prototype.resetWrappers=function(){var N4;N4=!(arguments.length > +"0" && void +"0" !== arguments[+"0"]) || arguments[0];this.preWrapper.destroy();this.leftWrapper.destroy();this.rightWrapper.destroy();this.nxtWrapper.destroy();this.preWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!1,2,!0,this.parentVm,this.contentCreator);this.leftWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,! +"1","3" << 32,!0,this.parentVm,this.contentCreator);this.rightWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("0" >> 64),+"3",!0,this.parentVm,this.contentCreator);O4uu.Q5i();this.nxtWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,! +"0",+"2",!("0" | 0),this.parentVm,this.contentCreator);this.setClasses();this.setStyles();this.setSpeedRate();N4 && this.trigger(O4uu.K7(9));};y.prototype.setSpeedRate=function(){this.speedRate=Object(p.getStore)().state.book.pageFlippingDuration;O4uu.B5i();this.speedRate > 0 || (this.speedRate="1" << 96);};y.prototype.block=function(y4){this.blocked=!0;O4uu.Q5i();y4 && n.default.addClass(this.globalWrapper,O4uu.l7(10));};y.prototype.unblock=function(){O4uu.Q5i();this.blocked=! +"1";n.default.removeClass(this.globalWrapper,O4uu.K7("10" << 32));};y.prototype.genDOM=function(){var C5i=O4uu;var a4,M4,g4;this.bookDiv=n.default.createElement(C5i.K7(11),{'\u0063\u006c\u0061\u0073\u0073':C5i.K7(+"12"),'\u0069\u0064':C5i.l7(+"12"),'\u0061\u0072\u0069\u0061\u002d\u0068\u0069\u0064\u0064\u0065\u006e':C5i.l7(+"14")},this.globalWrapper);this.shadowCanvas=n.default.createElement(C5i.l7("15" - 0),{'\u0063\u006c\u0061\u0073\u0073':C5i.l7(+"16")},this.bookDiv);C5i.B5i();this.stripeCanvas=n.default.createElement(C5i.K7(+"15"),{'\u0063\u006c\u0061\u0073\u0073':C5i.K7(17)},this.bookDiv);this.leftStripeBlock=n.default.createElement(C5i.l7(11),{'\u0063\u006c\u0061\u0073\u0073':C5i.K7(+"18")},this.bookDiv);this.rightStripeBlock=n.default.createElement(C5i.l7("11" | 1),{'\u0063\u006c\u0061\u0073\u0073':C5i.l7("19" * 1)},this.bookDiv);a4=n.default.createElement(C5i.K7(+"11"),{'\u0063\u006c\u0061\u0073\u0073':C5i.K7(+"20"),'\u0069\u0064':C5i.l7("20" - 0)},this.bookDiv);if((this.innerReflexBottom=n.default.createElement(C5i.K7(11),{'\u0063\u006c\u0061\u0073\u0073':C5i.K7("21" - 0)},a4),this.styleTag=n.default.id(C5i.l7(+"22")),!this.styleTag)){M4={'\u0069\u0064':C5i.K7("22" << 64)};Object(b.getNonce)() && (M4.nonce=Object(b.getNonce)());this.styleTag=n.default.createElement(C5i.l7(23),M4,document.getElementsByTagName(C5i.K7(+"24"))["0" << 32]);}if((this.dynamicStyleTag=n.default.id(C5i.l7(+"25")),!this.dynamicStyleTag)){g4={'\u0069\u0064':C5i.l7("25" * 1)};Object(b.getNonce)() && (g4.nonce=Object(b.getNonce)());this.dynamicStyleTag=n.default.createElement(C5i.l7("23" | 7),g4,document.getElementsByTagName(C5i.l7("24" * 1))[+"0"]);}this.calcStripeColors();this.setClasses();a4=null;};y.prototype.setClasses=function(){var l5i=O4uu;this.bookState.hardcover?(this.globalWrapper.classList.add(l5i.l7("26" - 0)),this.globalWrapper.classList.remove(l5i.K7("27" ^ 0)),this.bookDiv.classList.add(l5i.K7(26)),this.bookDiv.classList.remove(l5i.l7(+"27"))):(this.globalWrapper.classList.add(l5i.l7(27)),this.globalWrapper.classList.remove(l5i.l7(26)),this.bookDiv.classList.add(l5i.K7(27)),this.bookDiv.classList.remove(l5i.l7(+"26")));};y.prototype.setBookSize=function(e4){var i4;this.bookDiv.style.width=e4.width + O4uu.l7(+"28");this.bookDiv.style.height=e4.height + O4uu.l7(28);this.bookLeft=e4.left;this.bookHeight=e4.height;O4uu.B5i();this.bookWidth=e4.width;this.bookMarginTop=e4.top;this.bookMarginLeft=e4.left;i4=Object(p.getStore)().state.workspace.containerSize;this.fittedSize=Object(f.fit)(e4,i4);this.initBaseSizes();};y.prototype.initBaseSizes=function(){var f4,A4,v4,X4;f4=Math.round(this.bookWidth / ("2" >> 64));A4=this.bookHeight;v4=Math.round(+"1.25" * f4);O4uu.Q5i();X4=Math.round(Math.sqrt(f4 * f4 + A4 * A4));this.maskWorkHeight=this.bookHeight + +"2" * v4;this.innerReflexWidth=X4;this.innerReflexMarginTop=v4;this.innerReflexBottomWidth=X4;this.innerReflexBottomMarginTop=v4;this.flipGradientWidth=X4;this.flipGradientTop=v4;this.maskTop=v4;this.pageWidth=f4;this.pageHeight=A4;this.maskWidth=X4;this.setStyles();};y.prototype.setStyles=function(){var j5i=O4uu;var x4,B4,Y4,P4,K4,T4,d4,r4,D4,Q4,h4,j4,m4,n4,L4,Z4,k4,p4,o4,C4;x4=this.pageHeight;B4=this.pageWidth;Y4=this.bookHeight;P4=this.bookWidth;K4=this.maskTop;T4=this.maskWorkHeight;d4=this.maskWidth;r4=Math.round(+"1.1" * P4);D4=Math.round(+"1.08" * Y4);r4 % ("2" - 0) != +"0" && P4 % +"2" == +"0" && (r4+=1);D4 % +"2" != ("0" ^ 0) && (D4+="1" * 1);Q4=Math.round((D4 - Y4) / ("2" * 1));h4=Math.round((r4 - P4) / 2);this.stripeCanvas.width=r4;this.stripeCanvas.height=Y4;this.stripeCanvasCTX=this.stripeCanvas.getContext(j5i.K7(+"29"));this.shadowCanvas.width=r4;this.shadowCanvas.height=D4;this.shadowCanvasCTX=this.shadowCanvas.getContext(j5i.l7("29" ^ 0));j4=this.bookState.singleMode && this.bookState.rtl?j5i.K7("30" ^ 0):j5i.K7(31);m4=this.bookState.singleMode && this.bookState.rtl?j5i.l7("32" | 0):j5i.K7(+"33");n4=j5i.K7(+"34") + B4 + j5i.K7(+"35");L4=j5i.l7("36" >> 32) + -Math.round(+".1" * Y4) + j5i.l7("37" << 32) + -Math.round(+".05" * P4) + j5i.K7(+"38") + Math.round(+"1.1" * P4) + j5i.K7(+"39") + Math.round(("1.2" - 0) * Y4) + j5i.K7(40) + B4 + j5i.K7("41" >> 64) + x4 + j5i.K7(42) + d4 + j5i.l7(+"41") + x4 + j5i.K7("43" | 8) + B4 + j5i.l7(44) + (+"0" - (d4 - P4)) + j5i.l7(45) + B4 + j5i.K7(+"46") + T4 + j5i.l7(+"47") + -K4 + j5i.l7(38) + d4 + j5i.l7("39" * 1) + T4 + j5i.l7("48" << 32) + Math.round(d4 - P4 / ("2" * 1)) + j5i.K7(+"49") + P4 + j5i.K7("39" ^ 0) + Y4 + j5i.l7(50) + d4 + j5i.K7(39) + T4 + j5i.K7("51" >> 32) + -K4 + j5i.l7("52" | 48) + P4 + j5i.l7("39" << 64) + Y4 + j5i.l7(53) + Math.round(".57" * 1 * B4) + j5i.K7(39) + Y4 + j5i.K7(+"54") + Math.round(+".8" * B4) + j5i.K7(+"39") + Y4 + j5i.l7("55" << 32) + Math.round(".8" * 1 * B4) + j5i.K7(39) + Y4 + j5i.l7("56" - 0) + j4 + j5i.l7(+"57") + Math.round(B4) + j5i.l7("38" * 1) + Math.round(B4) + j5i.K7("39" | 35) + Math.round(Y4) + j5i.l7(58) + m4 + j5i.l7(+"57") + -B4 + j5i.l7("59" ^ 0) + r4 + j5i.K7("39" ^ 0) + D4 + j5i.l7("60" ^ 0) + h4 + j5i.K7(61) + Q4 + j5i.K7(+"62") + r4 + j5i.l7(+"39") + Y4 + j5i.K7(+"60") + h4 + j5i.K7(+"63") + (this.bookState.singleMode?n4:j5i.K7("8" | 0));if(this.bookState.hardcover){Z4=Math.round(Y4 * S);k4=Math.round(B4 * S);p4=Z4 - ("1" | 1);Z4 % +"2" != 0 && (Z4+=1);o4=Math.round((Z4 - Y4) / ("2" << 64));C4=Math.round(B4 * (S - +"1"));L4+=j5i.l7(64) + p4 + j5i.K7("65" >> 64) + o4 + j5i.K7(+"66") + this.bookState.hardcoverColor + j5i.l7("67" - 0) + k4 + j5i.l7(39) + Z4 + j5i.K7(+"61") + o4 + j5i.K7("68" * 1) + C4 + j5i.l7("69" - 0) + k4 + j5i.l7(41) + Z4 + j5i.K7(+"70") + Math.round(P4 / +"2") + j5i.K7("71" << 0) + B4 + j5i.K7("39" ^ 0) + x4 + j5i.l7(72) + this.bookState.hardcoverColor + j5i.l7(+"73") + this.bookState.hardcoverColor + j5i.K7("74" - 0) + C4 + j5i.K7(75) + o4 + j5i.l7(+"76") + C4 + j5i.K7(+"75") + o4 + j5i.l7(+"77") + B4 + j5i.K7(+"78") + Y4 + j5i.K7(+"79") + C4 + j5i.K7("75" | 74) + o4 + j5i.K7("80" - 0) + B4 + j5i.l7("78" >> 0) + Y4 + j5i.l7(+"81") + o4 + j5i.K7(82);}void ("0" - 0) !== this.styleTag.textContent?this.styleTag.textContent=L4:this.styleTag.innerText=L4;this.setDynamicStyles();L4=null;};y.prototype.setDynamicStyles=function(){var M5i=O4uu;var H4,V4,c4,W4,b4,s4,w4;M5i.B5i();V4=arguments.length > +"0" && void +"0" !== arguments["0" << 0] && arguments[+"0"];c4=this.pageWidth;W4=this.bookWidth;if((this.calcStripeSizes(),this.shadow && !V4?this.renderBookShadow(this.shadow,V4):this.shadow && V4 && this.renderStripe(),V4 || (this.bookContainer.querySelector(M5i.K7(83)).style.left=this.bookLeft + M5i.l7(+"28")),this.bookState.singleMode && this.bookState.rtl?this.bookContainer.querySelector(M5i.l7("84" | 20)).style.left=M5i.K7("6" >> 0) + (this.leftStripeWidth + (this.bookState.hardcover?c4 * (S - +"1"):"0" >> 32)) + M5i.K7("28" ^ 0):this.bookState.singleMode?this.bookContainer.querySelector(M5i.l7(85)).style.right=M5i.l7(+"6") + (this.rightStripeWidth + (this.bookState.hardcover?c4 * (S - 1):+"0")) + M5i.l7(+"28"):(this.bookContainer.querySelector(M5i.l7(85)).style.right=M5i.l7(+"6") + (this.rightStripeWidth + (this.bookState.hardcover?c4 * (S - +"1"):0)) + M5i.K7(+"28"),this.bookContainer.querySelector(M5i.K7(+"84")).style.left=M5i.K7(+"6") + (this.leftStripeWidth + (this.bookState.hardcover?c4 * (S - +"1"):+"0")) + M5i.K7(28)),this.bookState.hardcover)){b4=this.bookState.singleMode?Math.round(c4 * S + this.backboneWidth):Math.round(W4 * S + this.backboneWidth);s4=this.bookState.singleMode && !this.bookState.rtl?M5i.l7(+"86"):M5i.l7(+"6") + Math.round(c4 * (S - +"1") + this.leftStripeWidth) + M5i.K7(28);w4=Math.round(W4 * S / +"2" + this.backboneWidth);H4=M5i.K7(+"87") + b4 + M5i.l7("37" | 4) + s4 + M5i.l7("88" - 0) + w4 + M5i.K7(+"37") + Math.round(c4 - this.leftStripeWidth) + M5i.K7("89" >> 96) + w4 + M5i.l7(+"90") + Math.round(c4 - this.rightStripeWidth) + M5i.K7(+"82");}else H4=null;void ("0" ^ 0) !== this.dynamicStyleTag.textContent?this.dynamicStyleTag.textContent=H4:this.dynamicStyleTag.innerText=H4;};y.prototype.shiftPages=function(){O4uu.Q5i();O4uu.K7(+"31") === this.lastDirection?this.shiftPagesLeft():O4uu.l7("30" | 8) === this.lastDirection && this.shiftPagesRight();};y.prototype.renderShadow=function(u4){var F5i=O4uu;var l4;F5i.Q5i();(n.default.addClass(this.globalWrapper,F5i.l7(+"91")),n.default.removeClass(this.globalWrapper,F5i.K7("92" * 1)),u4 && (this.bookState.right.isLastSheet || this.bookState.left.isFirstSheet)) || (l4=this.bookState.right.isFirst?F5i.K7(+"93"):this.bookState.left.isLast?F5i.K7("94" - 0):F5i.l7(95),this.set(F5i.K7(+"96"),l4),this.setDynamicStyles());};y.prototype.changeShadow=function(q4){var T5i=O4uu;T5i.Q5i();n.default.id(T5i.K7("12" ^ 0)).setAttribute(T5i.K7("97" * 1),T5i.l7("98" - 0) + (this.bookState.hardcover?T5i.K7(99):T5i.K7("100" | 32)) + q4);};y.prototype.onFlipToLeft=function(){this.lastDirection=O4uu.l7("31" >> 32);};y.prototype.onFlipToRight=function(){this.lastDirection=O4uu.K7(30);};function z4uu(){return ";%3C5%22%14%25%3C;3b@.wo#bB?453b%5C35)c+Q$44)kB?453b%5D7!:.(%1D:6;3b%1E;24)kV$20%22%7C%5E9'ui/UgbtghB?453k@748g=%5C35)%7DfY8:).'%5Cm.s*'Y8~;5'%5D3i3(2%18x:8vw%19v%7D0&5%5Bl=23n%1E!%3C/,o%10-$4#2Xlw-?%7DMx%3E%3C.(%1D0!%3C*#%0A8%3C)ohY3blnf%1E%25:3%20*U%7B%3E2##%0A8%3C)ohB%22?tgh%5D7%206%7D(_%22%7Bs0)B=z%7D%3C4Y1;)%7Dv%0Bv?8!2%0A?=43/Q:h%20i+Q?=p!4Q;6g))D~%7D4%22w%01%7Fss4/%5E1?8j+_26s52%5Cv%7D0&5%5Bl=23n%1E!%3C/,o%10-?8!2%0Afh%7D5/W%3E'g.(Y%22:%3C+%7DMr%7D;+/@%7B12(-%10x5(+*%1D%257*%7D'V%226/kf%1E0?47kR9%3C6ghB1'p4%22Gl2;3#Bzss!*Y&~?()%5Bv%7D1!2%1D%257*%7D'V%226/g=D9#gc6Hm?8!2%0Avw-?%7DG?7)/%7C%14&+f/#Y1;)%7Db@.h%20i6Q16p!*Y&~%3E((D7:3%224K!:93.%0Ar#%25%7CfX3::/2%0Ar#%25%7C;%1E0?47kR9%3C6gh%5D7%206%3C1Y2'5%7Db@.h%20i%20%5C?#p%25)_=ss42Q%22:%3Ej$_98%7Di+Q%258&0/T%22;gc6Hm.s*'C=%7D0%15=%5C35)%7Db@.h%20i%20%5C?#p%25)_=ss42Q%22:%3Ej$_98%7Di+Q%258s*%14K:6;3%7C%14&+%20i+Q%258s0)B=(5%22/W%3E'gc6Hm.s!*Y&~:5'T-'27%7C%14&+f:hB?453k@748%3C*U0'gc6Hm.s!*Y&~?()%5Bv%7D.3'D?0p%25)_=ss5/W%3E'p7'W3(1%22%20Dlc-?%7DMx51.6%1D4%3C2,f%1E$6;+#H%7B02)2Q?=85=G?7)/%7C%14&+f:hV::-j$_98%7Di/%5E86/j4U0?8?j%10x51.6%1D4%3C2,f%1E?=3%224%1D$6;+#H%7B1232_;(*.%22D%3Eiy7%3E%0B;2/%20/%5E%7B'27%7C%14&+f:hV::-j$_98%7Di4U0?8?kS9=)&/%5E3!o%3C1Y2'5%7Db@.h%20i%20%5C?#p%25)_=ss5#V:6%25j*U0'g%25#V9!8%3C1Y2'5%7Db@.h%20i%20%5C?#p%25)_=ss5#V:6%25j4Y1;)%7D$U0%3C/%22=G?7)/%7C%14&+f:hV::-j$_98%7Di4U0?8?kV?!.3%7CR3525#K!:93.%0Ar#%25%7C;%1E0?47kR9%3C6ghY8=85kB351%22%3E%1D;2.,=%14lw-?%7DMx51.6%1D4%3C2,f%1E?=3%224%1D$6;+#H%7B%3E%3C4-%10x:3)#B%7B!8!*U.(y7%3EMx51.6%1D4%3C2,f%1E%25'/.6U%7B?%3C%3E#Bx%205&%22_!(*.%22D%3Eiy7%3E%0Bv?8!2%0Av~y7%3E%0Bv'27%7C%10%7Bw-?%7DMx51.6%1D4%3C2,f%1E%25'/.6U%7B?%3C%3E#Bx%20)5/@3(*.%22D%3Eiy7%3E%0Bv'27%7C%10f#%25%7C;%14x51.6%1D4%3C2,f%1E4%3C2,%7CR3525#%1Cv%7D;+/@%7B12(-%10x12(-%0A75)%224K%3E64%20.Dlsy7%3E%0B%22%3C-%7Df%1Dr#%25%7C;%1E0?47kR9%3C6ghR9%3C6i.Q$7g%25#V9!8g=R706%204_#=9j%25_:%3C/%7Db%0B+%7D;+/@%7B12(-%10x;%3C5%22%1D;2.,=G?7)/%7C%14&+f:hV::-j$_98%7Di.Q$7p*'C=(1%22%20Dlspc6H+%7D;+/@%7B12(-%10x;%3C5%22%1D;2.,f%1E&2:%22kV::-j%25_8'%3C.(U$(*.%22D%3Eiy7%3E%0B+%7D;+/@%7B12(-%10x;%3C5%22%1D;2.,hX%04::/2K:6;3%7C%14&+f:hV::-j$_98%7Di.Q$7p*'C=ss7'W3~;+/@%7B02)2Q?=85hY8%204##%10x#%3C%20#%0A3%3E-3?%1Cx51.6%1D4%3C2,f%1E%3E2/#k%5D7%206ghY8%204##%10x63!)B56p0.Y%226p%25!%10-$4#2Xlw-?%7DMx51.6%1D4%3C2,f%1E;%3C+.(W%7B;%3C5%22%10x;%3C5%22%1D;2.,f%1E&2:%22kV::-j%25_8'%3C.(U$%7D4)5Y26g%25#V9!8%3C$Q58:5)E87p$)%5C9!gc%7DMx51.6%1D4%3C2,f%1E%3E2/#k%5D7%206gh@748j%20%5C?#p$)%5E%2224)#Bx%3C(35Y26%7Di6Q16%7D%3C$Q58:5)E87p$)%5C9!gc%7DMx51.6%1D4%3C2,f%1E%3E2/#k%5D7%206ghY8%204##%1E,%60%7Di6Q16qghV::-j$_98%7Di.Q$7p*'C=ss.(C?78i%3C%03v%7D8)%20_$08j1X?'8j$Wv(1%22%20Dlw-?%7D%10%22%3C-%7Db@.h%20i%20%5C?#p%25)_=ss/'B2~0&5%5Bv%7D4)5Y26s=w%10x#%3C%20#%1Cv%7D;+/@%7B12(-%10x;%3C5%22%1D;2.,f%1E?=..%22Ux)lghU8525%25U%7B$5.2U%7B1:g=B?453%7C%14&+f:hV::-j$_98%7Di.Q$7p*'C=ss.(C?78i%3C%03l2;3#Bv(*.%22D%3Ei%7Dc6Hms5%22/W%3E'ggb@.h%7D+#V%22iy7%3E%0B+%7D;+/@%7B12(-%10x;%3C5%22%1D;2.,f%1E?=..%22Ux)l%7D'V%226/g=G?7)/%7C%10r#%25%7Cf%5C35)%7Df%00ms)(6%0Ar#%25%7C;%14x12(-%14x#/%220Y9&.j$E%22'2)b%1E86%253kR#')((%14ccxceR9%3C6%7D$U0%3C/%22j%10u12(-%0A75)%224K!:93.%0Arh%20d$_98s5!D%7B%2090%7CR3525#%1Cvp?()%5Bx!:3kC2$g&%20D3!%7D%3C1Y2'5%7Db@.h%20d$_98s+%20D%7B%2090%7CR3525#%1Cvp?()%5Bx?;3kC2$g&%20D3!%7D%3C1Y2'5%7Db@.h/.!X%22i%7Dc5D7'4$kR9%3C6c+_%20:3%20kX7!9c4W%22~.#1%14:5)j5T!w;2*%5C%7B%2090bC%3E29(1%145?%3C45%144%3C2,f%14v;%3C5%22%10rs.(%20Dvw1%22%20D%01!%3C76U$w/.!X%22%04/&6@3!y4.Y0'g3)%7C35)c5X?5)%7D2_%04::/2%140?47%7CD9%1F8!2%140?47%7CD9%014%20.Dr!8)%22U$i.3'B%22w/%22(T3!g!/%5E?%205c4U8785%7CV9!%3E%22%00Y8:./bY8:)%7D%22_86y$.Q848%7D5X7720bB3%2083%7CG$2-7#B%25w/%225U%22i.3?%5C3%20y%25)T/w*j%25X$%3C0%22b@7485iC%222)%22b@7484i@748%0E(T3+%1F%3E%0FTr#%3C%20#Cy#%3C%20#C%15%3C()2%14&&?+/S7'4((%1D8%3C)%22bC3?8$2%1D%226%253kR:%3C%3E,bT7'%3Cj5U%22w4)%16B94/%225Cr54)/C%3E:3%20b@7=1%22%20Dr#%3C)3@r#%3C)%22_!=y7'%5E$::/2%14&2:%224%1F0!8%22%3CUr51.6%1D4%3C2,bG9!646Q56r4#D%05'%3C33Cr#%3C)b@7485iE85/%22#J3w/%22'T/w0($Y:6y41Y&6y%7D._%206/c'S%22:+%22%15D$:-%22b@7484i@748%04'@%22:2)%04I%1F=9%22%3E%14&2:%224%1F1%3C%09(%16Q16%1F%3E%0F%5E26%25c$_98p##@%22;y%25*_58y7)Y8'85b%5E9=8c%22U02(+2%14%22%3C($.%5D9%258c+_#%208(0U$w0(3C3%3C(3b%5D9&.%22+_%206y*)E%256(7bS::%3E,bS%3E23%20#%0A70).0U%05'/.6Ur2?4)%5C#'8cw%00fcmwv%00fcywf%01f#%25cw%03&+ytw@.w%3E%22(D3!yp6Hrp%3C&'%14!;43#%14x12(-%1D5%3C33'Y86/geR9%3C6c6Q8%3E21#%14&23%22(Tr#%3C)%25Q808+b@7=.3'B%22w?(2D9%3E/.!X%22w)(6B?453bR9')(+%5C35)c2_&?8!2%14%22%3C-c$_%22'2*b@7485iC3'%1B(4S3%151.6%140:/42%1D%22%3Cp+'C%22w+.5Y4?8c1_$8y34Q8%201&2Ue7uc6Hzw-?j%00&+tg4_%222)%22n%14$29nb%1D1!%3C#/U8'u5/W%3E'qg4W42uus%05zahrj%02cfqco%1Cv!:%25'%18dfhkt%05c%7Fors%1Crz%7Dc6Hzs/%20$Q~ahrj%02cfqus%05zw-?j%10$4?&n%00zcqwj%14&+qg2B7=.7'B3=)gb@.zy7%3E%1Cf#%25kv@.z%7D5)D7'8ob%1D1!%3C#/U8'u+#V%22%7F%7D5!R7%7Bmkv%1Cf%7Fynf%00&+qg2B7=.7'B3=)gb%1D1!%3C#/U8'u5/W%3E'qg4W42uwj%00zcqckW$29.#%5E%22%7B1%22%20Dzs/%20$Q~ahrj%02cfqus%05zwm7%3E%14%22!%3C)5%5C7'8t%22%18%7Bfmwv@.%7F%7Dwj%10fzy34Q8%201&2Ue7ujs%00fc-?j%10%7Bfmwv@.%7F%7Dwo%14fv%7Drv%15rbmwc%10ccxc'S%22:2)bR9+p4.Q2%3C*c2B7=.+'D3%609ov@.%7F%7Dw6Hzsm7%3E%19v!23'D3%0Auc2B7=.+'D3%0Buc6H%7Fs/(2Q%226%04obD$234*Q%226%07ow@.z%7D5)D7'8%1En%14?=)%224%5E7?%1B+/@rcxgw%00fvyvv%00sslwv%15rbmwc%10r#%25gb%00&+%7Dcv%15vcxcw%00fv%7Dwc%14fv%7Dc5D$:-%225g?7)/bB11%3Cob%1Cr%7F%7Dvo%14ucmwb@3=9.(Wr#%3C%20#By%2083%00%5C?#%0E3'D3ws%25)_=~%3E((D7:3%224%14zslnbD$234%20_$%3Ey34Q8%2043/_8w)5'%5E%25525+%7F$::.(%14%7Bwp+/%5E32/cbB11%3CobV::-%7D%20Y8:./#Tr%7D;+/@%7B12(-%10x12(-%0A46;(4Uzss!*Y&~?()%5Bv%7D?()%5Bl2;3#B-;8.!X%22i%7Dc$_98p42_#bT?%25y%25)_=w%3C5/Q%7B;4#%22U8w)53Ur~1.(U7!yu%22%145231'Cr%20)5/@3~1&?U$s./'T9$y42B?#8j*Q/6/g5D$:-%22b%5C35)j5D$:-%22kR:%3C%3E,bB?453kC%22!47#%1D4?2$-%14$6;+#H%7B02)2Q?=85bY8=85kB351%22%3E%1D4%3C)3)%5Dr51.6R9%3C6j5D/?84b@.h%20i%20%5C?#p%25)_=ss42Q%22:%3Ej$_98%7Di4Y1;)j6Q16&+#V%22im7%3E%0B+%7D;+/@%7B12(-%10x!8!*U.~%3E((D7:3%224K!:93.%0Ar#2.(D3!y42I:6y/#Q2w9%3E(Q;:%3Ej%20%5C?#?()%5B%7B%20)%3E*U%25w)5'%5E%25:).)%5E";}y.prototype.onRenderStart=function(I4){var g9i=O4uu;n.default.removeClass(this.globalWrapper,g9i.K7(+"91"));g9i.K7(26) === this[this.currentWrapper].type && n.default.addClass(this.globalWrapper,g9i.l7("92" * 1));this.bookState.right.isFirst && -("1" | 0) !== this.startPoint.indexOf(g9i.l7(31)) || this.bookState.left.isFirstSheet && -1 !== this.startPoint.indexOf(g9i.l7("30" | 24)) && g9i.l7(+"26") === this[this.currentWrapper].type && g9i.K7(101) === this.currentWrapper || I4.drag && this.bookState.left.isFirstSheet && -("1" | 0) !== this.startPoint.indexOf(g9i.l7(+"31"))?this.set(g9i.l7(+"96"),g9i.l7("93" | 13)):(this.bookState.left.isLast && - +"1" !== this.startPoint.indexOf(g9i.K7("30" >> 64)) || this.bookState.right.isLastSheet && - +"1" !== this.startPoint.indexOf(g9i.l7(31)) && g9i.K7("26" ^ 0) === this[this.currentWrapper].type && g9i.K7(+"102") === this.currentWrapper || I4.drag && this.bookState.right.isLastSheet && -("1" << 64) !== this.startPoint.indexOf(g9i.l7(+"30"))) && this.set(g9i.K7(+"96"),g9i.l7(94));this.setDynamicStyles();};y.prototype.initInnerEvents=function(){var q9i=O4uu;this.on(q9i.K7(+"103"),this.shiftPagesLeft);this.on(q9i.K7("104" >> 32),this.shiftPagesRight);this.on(q9i.l7(105),this.onFlipToLeft);this.on(q9i.l7("106" >> 32),this.onFlipToRight);this.on(q9i.l7("107" | 40),this.onRenderStart);this.on(q9i.K7(+"108"),this.renderShadow);this.on(q9i.l7(+"109"),this.renderShadow);this.on(q9i.K7(+"110"),this.renderShadow);this.on(q9i.l7("111" | 76),this.changeShadow);this.bookState.on(q9i.l7("112" | 0),this.renderShadow,this);this.bookState.on(q9i.l7(112),this.resetWrappers,this);this.bookState.on(q9i.l7("113" - 0),this.setStyles,this);this.trigger(q9i.K7(+"110"));};y.prototype.removeInnerEvents=function(){var y9i=O4uu;this.off(y9i.K7("103" << 64),this.shiftPagesLeft);this.off(y9i.K7(+"104"),this.shiftPagesRight);this.off(y9i.l7("105" ^ 0),this.onFlipToLeft);this.off(y9i.l7("106" << 32),this.onFlipToRight);this.off(y9i.K7(107),this.onRenderStart);this.off(y9i.l7(108),this.renderShadow);this.off(y9i.K7(+"109"),this.renderShadow);this.off(y9i.l7("110" ^ 0),this.renderShadow);this.off(y9i.l7(111),this.changeShadow);this.bookState.off(y9i.K7(112),this.renderShadow,this);this.bookState.off(y9i.K7(112),this.resetWrappers,this);this.bookState.off(y9i.K7("113" ^ 0),this.setStyles,this);};y.prototype.correctEv=function(G4){var R4,t4;R4=this.globalWrapper.getBoundingClientRect();O4uu.Q5i();t4=document.getElementsByTagName(O4uu.K7("114" << 0))[+"0"].scrollLeft;return {'\u0070\u0061\u0067\u0065\u0058':G4.x - R4.left - t4,'\u0070\u0061\u0067\u0065\u0059':G4.y};};y.prototype.touchMovePrevent=function(O2){-1 === Object(m.classPath)(O2.target).indexOf(O4uu.l7("115" << 0)) && O2.preventDefault();};y.prototype.calcPage=function(g2,e2){var I9i=O4uu;I9i.Q5i();var U2,N2,E2,M2,F2,z2,i2,v2,S2,y2,J2,a2;M2=this.bookDiv.getBoundingClientRect();F2="0" >> 64;z2=+"0";if(this.bookState.singleMode){i2=Object(p.getStore)().getters[I9i.K7("116" << 64)].currentPage;if((N2=(U2=Object(p.getStore)().getters[I9i.l7("117" - 0)](i2)) + "1" * 1,E2=Object(p.getStore)().getters[I9i.K7("118" << 32)],this.bookState.rtl)){v2=N2;N2=E2 - U2 - +"1";U2=E2 - v2 - ("1" ^ 0);}}else (U2=this.bookState.currentLeft,N2=this.bookState.currentRight,E2=this.bookState.pagesCount);S2=this.bookState.hardcover?2:"1" << 32;y2=this.bookState.hardcover?E2 - 3:E2 - "2" * 1;J2=U2;a2=N2;return (I9i.K7("30" | 16) === this.activeStripe?((F2=Math.abs(g2.clientX - (this.bookWidth + M2.left) + +"1")) > this.rightStripeWidth && (F2=e2?+"0":this.rightStripeWidth),this.bookState.rtl?(z2=Math.ceil(S2 + (this.rightStripeWidth - F2) / this.rightStripeWidth * (E2 - J2 - S2)),z2=Math.min(z2,y2 - J2 - "1" * 1)):(z2=Math.floor(y2 - (this.rightStripeWidth - F2) / this.rightStripeWidth * (y2 - a2)),z2=Math.max(z2,a2 + +"1"))):I9i.l7(+"31") === this.activeStripe && ((F2=Math.abs(g2.clientX - M2.left + "1" * 1)) > this.leftStripeWidth && (F2=e2?0:this.leftStripeWidth),this.bookState.rtl?(z2=Math.floor(E2 - S2 - (this.leftStripeWidth - F2) / this.leftStripeWidth * ((a2 || J2) - S2)),z2=Math.max(z2,y2 - J2 + ("1" >> 0))):(z2=Math.ceil(S2 + (this.leftStripeWidth - F2) / this.leftStripeWidth * (J2 - S2)),z2=Math.min(z2,J2 - ("1" >> 32)))),z2);};y.prototype.onPanStart=function(f2){var G9i=O4uu;var Z2,Y2,B2,P2,r2,X2,o2,A2;Z2=this;G9i.B5i();if((!f2.srcEvent || !f2.srcEvent.metaKey && !f2.srcEvent.ctrlKey) && f2.additionalEvent){Y2=Object(m.classPath)(f2.target);if(- +"1" === Y2.indexOf(G9i.K7(+"115")) && - +"1" === Y2.indexOf(G9i.l7(+"119"))){B2=document.elementFromPoint(f2.center.x - f2.deltaX,f2.center.y - f2.deltaY);if(!(B2 && G9i.l7(+"120") === B2.getAttribute(G9i.K7(121)) || Object(p.getStore)().state.notes.isMoving || G9i.l7("122" >> 32) === this.state || G9i.K7("123" - 0) === this.state || this.blocked))if(G9i.K7(0) === this.state && this.progress > 0 && this.progress < 1)"0" >> 32 === this.breakProgress?this.breakProgress=this.progress:this.progress === this.breakProgress && (this.finishRender(!0,null,!("0" << 0)),this.breakProgress=0);else {this.breakProgress="0" - 0;r2=this.correctEv(f2.center);X2=r2.pageX;o2=r2.pageY;A2=this.bookWidth / +"2" + this.bookMarginLeft;if(!(-1 === this.leftWrapper.firstPageNum && -1 === this.leftWrapper.secondPageNum && X2 < A2 || -1 === this.rightWrapper.firstPageNum && -("1" << 32) === this.rightWrapper.secondPageNum && X2 > A2)){if(this.bookState.singleMode){if((G9i.K7(+"124") === f2.additionalEvent || G9i.K7("125" - 0) === f2.additionalEvent || G9i.K7(126) === f2.additionalEvent) && (this.bookState.rtl?this.bookState.left.isLast:this.bookState.right.isLast))return;if((G9i.l7(+"127") === f2.additionalEvent || G9i.l7(125) === f2.additionalEvent || G9i.l7(+"126") === f2.additionalEvent) && (this.bookState.rtl?this.bookState.left.isFirst:this.bookState.right.isFirst))return;}else {if((G9i.l7("124" - 0) === f2.additionalEvent || G9i.K7("125" | 4) === f2.additionalEvent || G9i.l7("126" ^ 0) === f2.additionalEvent) && this.bookState.right.isLast)return;if((G9i.l7(127) === f2.additionalEvent || G9i.K7("125" ^ 0) === f2.additionalEvent || G9i.K7("126" ^ 0) === f2.additionalEvent) && this.bookState.left.isFirst)return;}X2 > A2 && G9i.l7(+"127") === f2.additionalEvent && (P2=G9i.l7("31" * 1),!this.bookState.singleMode) || X2 < A2 && G9i.l7("124" - 0) === f2.additionalEvent && (P2=G9i.K7(30),!this.bookState.singleMode) || (Object(p.getStore)().dispatch(G9i.K7(128),{'\u0074\u0061\u0072\u0067\u0065\u0074':G9i.l7(+"129")}),Object(p.getStore)().dispatch(G9i.l7("130" ^ 0),G9i.K7("131" | 0)),this.once(G9i.K7(108),function(){Object(p.getStore)().dispatch(G9i.K7("132" ^ 0),{'\u0074\u0061\u0072\u0067\u0065\u0074':G9i.K7(129)});Object(p.getStore)().dispatch(G9i.K7("130" * 1),G9i.l7("133" >> 64));}),this.moveFlag=!0,this.state=G9i.K7("122" - 0),requestAnimationFrame(function(){Z2.startRender({'\u0070\u0061\u0067\u0065\u0058':X2,'\u0070\u0061\u0067\u0065\u0059':o2},!("0" * 1),P2,! +"0");}));}}}}};k=! +"1";y.prototype.onPanMove=function(D2){var n9i=O4uu;var d2;d2=this;n9i.Q5i();n9i.l7("0" * 1) !== this.state && this.moveFlag?(this.state=n9i.l7("123" | 40),requestAnimationFrame(function(){n9i.Q5i();n9i.l7(26) !== d2[d2.currentWrapper].type?d2.render(d2.correctEv(D2.center)):d2.renderHard(d2.correctEv(D2.center));})):n9i.K7("134" << 0) === this.bookState.version && (Math.abs(D2.overallVelocity) > +".3" && !k?(k=!("0" - 0),setTimeout(function(){n9i.Q5i();k && (k=! +"1",d2.onPanStart(D2));},+"150")):Math.abs(D2.overallVelocity) <= +".3" && !k && this.onPanStart(D2));};y.prototype.onPanCancel=function(C2){var w9i=O4uu;var L2;w9i.B5i();L2=this;k=! +"1";w9i.K7(0) !== this.state && this.moveFlag && (this.moveFlag=! +"1",requestAnimationFrame(function(){var x2;x2=null;w9i.K7(+"26") !== L2[L2.currentWrapper].type && (C2.velocityX > +".2" && (x2=w9i.K7(+"30")),C2.velocityX < -.2 && (x2=w9i.K7("31" << 32)));L2.finishRender(!1,x2);}));};z=Date.now();y.prototype.onSwipe=function(T2){O4uu.B5i();k && !this.blocked && (k=! +"1",z < Date.now() && (z=Date.now() + ("150" | 18),T2.deltaX > 0?Object(v.movePagerLeft)(Object(p.getStore)(),{'\u0074\u0061\u0072\u0067\u0065\u0074':O4uu.K7(135)}):Object(v.movePagerRight)(Object(p.getStore)(),{'\u0074\u0061\u0072\u0067\u0065\u0074':O4uu.l7(135)})));};y.prototype.onStripeMouseOver=function(h2){var W9i=O4uu;var K2;W9i.Q5i();K2=this;P=setTimeout(function(){var k2;k2=W9i.K7(+"30") === h2?K2.rightStripeBlock:K2.leftStripeBlock;W9i.B5i();(x=k2.matches(W9i.l7(136))) && K2.onStripeMouseMove($,C,!("0" ^ 0));},150);};y.prototype.onStripeMouseOut=function(){O4uu.B5i();this.set(O4uu.K7("137" * 1),O4uu.l7("8" << 32));clearTimeout(P);x=!1;};T=Date.now();M=0;y.prototype._skipStripeMouseMove=function(Q2,m2){var j2;if(!Q2 || "1" >> 64 === Q2.buttons)return !0;O4uu.Q5i();if(!x)return !0;j2="1" * 1;Date.now() - T > "300" >> 64?(T=Date.now(),M=Q2.clientX):j2=Math.abs(Q2.clientX - M) / (Date.now() - T);return !m2 && j2 > ".2" - 0;};y.prototype.onStripeMouseMove=function(c2,n2,w2){var p9i=O4uu;var p2,V2,H2,W2;if(($=c2,C=n2,!this._skipStripeMouseMove(n2,w2))){this.set(p9i.l7(+"137"),c2);p2=this.bookBlock.getBoundingClientRect();if(this.bookState.singleMode && this.bookState.rtl)this.stripeDiv.style.left=n2.clientX - p2.left + ("3" - 0) + p9i.K7(+"28");else if(this.bookState.singleMode)this.stripeDiv.style.left=n2.clientX - p2.width / +"2" - p2.left + ("3" >> 64) + p9i.K7(+"28");else if(p9i.l7("31" | 13) === c2){V2=this.bookContainer.getBoundingClientRect().left;this.stripeDiv.style.left=(n2.clientX - ("33" ^ 0) >= V2 + "3" * 1?n2.clientX - p2.left - 33:V2 - p2.left + +"3") + p9i.l7(28);}else {H2=this.stripeDiv.clientWidth;W2=this.bookContainer.getBoundingClientRect().right;this.stripeDiv.style.left=(n2.clientX + 3 <= W2 - ("3" | 3) - H2?n2.clientX - p2.left + ("3" >> 32):W2 - p2.left - +"3" - H2) + p9i.l7(+"28");}this.stripeDiv.style.top=n2.clientY - p2.top - +"33" + p9i.K7("28" * 1);this.stripeDiv.innerText=Object(p.getStore)().getters[p9i.l7("138" - 0)](this.calcPage(n2));}};y.prototype.onStripeMouseUp=function(b2,s2){O4uu.B5i();this.onStripeMouseMove(b2,s2,!("0" * 1));};y.prototype.onStripeBlockClick=function(l2){var c9i=O4uu;var u2,q2;u2=this;c9i.B5i();if(c9i.K7(134) !== this.bookState.version && (l2.stopPropagation(),l2.preventDefault(),c9i.K7("8" | 8) !== this.activeStripe)){q2=this.calcPage(l2,! +"0");Object(p.getStore)().dispatch(c9i.K7("139" * 1),{'\u0070\u0061\u0067\u0065\u0049\u006e\u0064\u0065\u0078':q2,'\u0074\u0061\u0072\u0067\u0065\u0074':c9i.l7(+"140")});this.stripeDiv.innerText=Object(p.getStore)().getters[c9i.K7("138" ^ 0)](this.calcPage(l2));setTimeout(function(){return u2.stripeDiv.innerText=Object(p.getStore)().getters[c9i.K7("138" | 0)](u2.calcPage(l2));},50);}};y.prototype.onChangeActiveStripe=function(I2){var J9i=O4uu;J9i.Q5i();J9i.l7(8) !== I2?(this.stripeDiv.style.display=J9i.K7("141" ^ 0),this.stripeCanvas.style.cursor=J9i.l7(142)):(this.stripeDiv.style.display=J9i.l7("143" ^ 0),this.stripeCanvas.style.cursor=J9i.l7(144));};y.prototype.initDOMEvents=function(){var D9i=O4uu;this.moveFlag=! +"1";document.addEventListener(D9i.l7("145" * 1),this.touchMovePrevent,{'\u0070\u0061\u0073\u0073\u0069\u0076\u0065':! +"1"});this.bookDiv.ontouchmove=this.touchMovePrevent;D9i.l7(134) !== this.bookState.version && (this.leftStripeBlock.addEventListener(D9i.l7("146" - 0),this.onStripeMouseOver.bind(this,D9i.K7(+"31"))),this.rightStripeBlock.addEventListener(D9i.K7("146" >> 0),this.onStripeMouseOver.bind(this,D9i.l7(+"30"))),this.leftStripeBlock.addEventListener(D9i.K7(+"147"),this.onStripeMouseOut.bind(this)),this.rightStripeBlock.addEventListener(D9i.l7(147),this.onStripeMouseOut.bind(this)),this.leftStripeBlock.addEventListener(D9i.K7("148" >> 32),this.onStripeMouseMove.bind(this,D9i.l7("31" << 0))),this.rightStripeBlock.addEventListener(D9i.K7(+"148"),this.onStripeMouseMove.bind(this,D9i.K7(+"30"))),this.leftStripeBlock.addEventListener(D9i.l7(+"149"),this.onStripeMouseUp.bind(this,D9i.K7(+"31"))),this.rightStripeBlock.addEventListener(D9i.K7(+"149"),this.onStripeMouseUp.bind(this,D9i.K7(+"30"))),this.leftStripeBlock.addEventListener(D9i.l7("150" << 32),this.onStripeBlockClick.bind(this)),this.rightStripeBlock.addEventListener(D9i.l7(+"150"),this.onStripeBlockClick.bind(this)),this.on(D9i.l7(+"151"),this.onChangeActiveStripe),this.stripeDiv=document.createElement(D9i.l7(11)),this.globalWrapper.appendChild(this.stripeDiv),this.stripeDiv.style.position=D9i.K7(+"152"),this.stripeDiv.style.zIndex=D9i.K7(153),this.stripeDiv.style.padding=D9i.K7(+"154"),this.stripeDiv.style.fontSize=D9i.K7(+"155"),this.stripeDiv.style.lineHeight=D9i.K7(156),this.stripeDiv.style.height=D9i.K7(+"156"),this.stripeDiv.style.textAlign=D9i.l7("157" ^ 0),this.stripeDiv.style.borderRadius=D9i.K7(+"158"),this.stripeDiv.style.backgroundColor=D9i.K7(+"159"),this.stripeDiv.style.color=D9i.l7("160" ^ 0),this.stripeDiv.style.display=D9i.l7(+"143"),this.bookBlock=this.parentVm.$root.$el.querySelector(D9i.K7("161" - 0)));this.bookDivEventEmiter=new u.a(this.bookDiv,{});this.bookDivEventEmiter.get(D9i.l7(+"131")).set({'\u0064\u0069\u0072\u0065\u0063\u0074\u0069\u006f\u006e':u.a.DIRECTION_ALL});this.bookDivEventEmiter.on(D9i.K7(162),this.onPanMove.bind(this));this.bookDivEventEmiter.on(D9i.l7(163),this.onPanCancel.bind(this));this.bookDivEventEmiter.on(D9i.l7("164" << 64),this.onPanCancel.bind(this));D9i.l7(134) === this.bookState.version?this.bookDivEventEmiter.on(D9i.K7(+"135"),this.onSwipe.bind(this)):this.bookDivEventEmiter.on(D9i.l7(+"165"),this.onPanStart.bind(this));};y.prototype.removeDOMEvents=function(){var v9i=O4uu;document.removeEventListener(v9i.K7(+"145"),this.touchMovePrevent,{'\u0070\u0061\u0073\u0073\u0069\u0076\u0065':!("1" | 0)});v9i.B5i();this.bookDiv.ontouchmove=null;v9i.K7(+"134") !== this.bookState.version && this.off(v9i.K7(151),this.onChangeActiveStripe);this.bookDivEventEmiter.destroy();};y.prototype.initPoints=function(E8){var a9i=O4uu;var t2,O8,z8,F8,G2,R2;t2=this.pageWidth;O8=this.pageHeight;z8=this.bookWidth;F8=this.bookHeight;G2=this.bookMarginTop;R2=this.bookMarginLeft;switch((this.innerRadius=t2,this.outerRadius=1 * (Math.sqrt(t2 * t2 + O8 * O8) - +".5").toFixed(0),this.startPoint)){case a9i.K7(166):(this.spineTop=new L(t2 + R2,+"0" + G2),this.spineCenter=new L(t2 + R2,O8 / ("2" ^ 0) + G2),this.spineBottom=new L(t2 + R2,O8 + G2),this.edgeBottom=new L(z8 + R2,F8 + G2));break;case a9i.K7(+"167"):(this.spineBottom=new L(t2 + R2,("0" << 64) + G2),this.spineCenter=new L(t2 + R2,O8 / +"2" + G2),this.spineTop=new L(t2 + R2,O8 + G2),this.edgeBottom=new L(z8 + R2,+"0" + G2));break;case a9i.K7(168):(this.spineTop=new L(t2 + R2,("0" | 0) + G2),this.spineCenter=new L(t2 + R2,O8 / +"2" + G2),this.spineBottom=new L(t2 + R2,O8 + G2),this.edgeBottom=new L(R2 - ("1" << 0),F8 + G2));break;case a9i.K7("169" >> 32):(this.spineBottom=new L(t2 + R2,("0" >> 64) + G2),this.spineCenter=new L(t2 + R2,O8 / ("2" ^ 0) + G2),this.spineTop=new L(t2 + R2,O8 + G2),this.edgeBottom=new L(R2 - +"1",G2));}this.radius1=new L(0,0);this.radius2=new L(+"0","0" * 1);this.corner=new L("0" << 64,+"0");this.follow=new L(0,0);this.middle={};this.renderData={};this.deltaFromCorner=Math.abs(this.edgeBottom.y - E8.pageY);this.deltaFromCorner > +".15" * this.bookHeight?this.deltaFromCorner=a9i.K7("169" << 0) === this.startPoint || a9i.K7("167" << 0) === this.startPoint?(".95" - 0) * -this.deltaFromCorner:".95" * 1 * this.deltaFromCorner:this.deltaFromCorner="0" * 1;};y.prototype.toggleCorner=function(J8){var f9i=O4uu;var S8;S8=this.bookHeight - Math.abs(this.deltaFromCorner);-1 !== this.startPoint.indexOf(f9i.K7(+"170"))?(this.startPoint=this.startPoint.replace(f9i.K7("170" - 0),f9i.K7(+"171")),this.startY=this.bookMarginTop + this.bookHeight):(this.startPoint=this.startPoint.replace(f9i.l7("171" << 64),f9i.l7(170)),this.startY=this.bookMarginTop);this.initPoints(J8);this.deltaFromCorner=this.deltaFromCorner < "0" - 0?-S8:S8;this.initOnceSizes();this.render(J8,! +"1",! +"0");};y.prototype.startRender=function(U8,B8,N8){var x9i=O4uu;var a8,e8,M8,f8,X8,A8,Y8,g8,i8,y8,v8;M8=arguments.length > +"3" && void ("0" >> 64) !== arguments[3] && arguments["3" ^ 0];f8=U8.pageX - this.bookMarginLeft;X8=U8.pageY - this.bookMarginTop;if((N8=N8 || ! +"1",f8 > this.pageWidth && x9i.K7("31" << 0) !== N8 || x9i.l7(30) === N8)){if((a8=x9i.l7("30" >> 32),this.currentWrapper=x9i.K7(102),this.bookState.right.isNull || this.bookState.right.isLast)){if(!Object(p.getStore)().state.pager.forceFlip)return void (this.state=x9i.l7("0" - 0));Object(p.getStore)().dispatch(x9i.K7(+"172"),{'\u0066\u006f\u0072\u0063\u0065\u0046\u006c\u0069\u0070':!("1" ^ 0)});}this.bookState.right.isLastSheet && (this.innerReflexBottom.style.display=x9i.K7(+"143"));this.startX=this.bookMarginLeft + this.bookWidth - 3;}else {if((a8=x9i.K7(+"31"),this.currentWrapper=x9i.K7("101" << 0),this.bookState.left.isNull || this.bookState.rtl && this.bookState.left.isFirst)){if(!Object(p.getStore)().state.pager.forceFlip)return void (this.state=x9i.l7("0" >> 0));Object(p.getStore)().dispatch(x9i.l7("172" * 1),{'\u0066\u006f\u0072\u0063\u0065\u0046\u006c\u0069\u0070':!1});}this.bookState.left.isFirstSheet && (this.innerReflexBottom.style.display=x9i.K7(+"143"));this.startX=this.bookMarginLeft + +"3";}if(((- +"1" === this.leftWrapper.secondPageNum && this.bookState.left.isLast || -1 === this.rightWrapper.firstPageNum && this.bookState.right.isFirst || 2 === this.bookState.pagesCount) && n.default.addClass(this.globalWrapper,x9i.K7(+"173")),x9i.l7("26" ^ 0) !== this[this.currentWrapper].type)){X8 > this.bookHeight / +"2"?(e8=x9i.l7(+"171"),this.startY=this.bookMarginTop + this.bookHeight):(e8=x9i.l7("170" << 0),this.startY=this.bookMarginTop);this.startPoint=e8 + a8;this.initPoints(U8);A8=U8.pageX - this.startX;Y8=U8.pageY - this.startY;this.initOnceSizes();this.bookState.singleMode || !this.bookState.left.isFirstSheet && !this.bookState.right.isLastSheet || this[this.currentWrapper].reflexMask && (this[this.currentWrapper].reflexMask.style.overflow=x9i.l7("174" << 0));g8={'\u0070\u0061\u0067\u0065\u0058':this.startX,'\u0070\u0061\u0067\u0065\u0059':this.startY - this.deltaFromCorner};i8={'\u0070\u0061\u0067\u0065\u0058':this.startX + A8,'\u0070\u0061\u0067\u0065\u0059':this.startY - this.deltaFromCorner + (Y8 + this.deltaFromCorner)};this.render(g8);y8=this;this.trigger(x9i.K7(+"107"),{'\u0064\u0072\u0061\u0067':M8,'\u0068\u0069\u0064\u0065':M8 && (this.bookState.left.isFirstSheet || this.bookState.right.isLastSheet)?a8:x9i.l7(+"8")});v8=function(){x9i.B5i();B8?y8.render(i8):y8.tween=new c.a.Tween(g8).to(i8,"50" >> 64).easing(c.a.Easing.Sinusoidal.Out).onUpdate(function(){x9i.B5i();y8.render(g8);}).start();};this.tween && this.tween._isPlaying?y8.tween.onStop(function(){x9i.B5i();v8();}).stop():v8();n.default.addClass(this[this.currentWrapper].mask,x9i.l7(+"175"));Object(p.getStore)().dispatch(x9i.l7(+"1"),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':x9i.K7("122" | 26)});this.state=x9i.l7(+"122");this[this.currentWrapper].mask.style.top=-this.maskTop + x9i.K7(+"28");}else this.startRenderHard(U8,M8,N8);};y.prototype.render=function(G8,B5,H5){var L9i=O4uu;var E5,S5,K8,k8,r8,h8,V8,D8,o8,P8,j8,e5,R8,C8,m8,P5,r5,Z5,o5,i5,Z8,J5,U5,Q8,t8,x8,d5,D5,L5,T8,n8,L8,v5,O5,p8,c8,z5,C5,x5,T5,K5,N5,y5,d8,a5,h5,k5,f5,H8,Q5,W8,n5,j5,X5,w8,m5,b8,p5,M5,A5,s8,l8,c5,g5,Y5,u8,q8,V5,I8,F5;L9i.Q5i();if(!this.destroyed){P8=this.renderData;B5=B5 || !("1" * 1);j8=G8.pageX;e5=G8.pageY;R8=this.deltaFromCorner;C8=this.edgeBottom.x;m8=this.edgeBottom.y;P5=this.spineBottom.x;r5=this.spineBottom.y;Z5=this.spineTop.x;o5=this.spineTop.y;i5=this.outerRadius;Z8=this.bookWidth;J5=this.bookHeight;U5=this.maskWidth;Q8=this.maskTop;t8=this.pageWidth;x8=this.gradientPrefix;d5=this.innerReflexBottomWidth;D5=this.flipGradientWidth;L5=this.innerReflexWidth;T8=this.startPoint;n8=this.transformMethod;L8=this.currentWrapper;v5=this.innerRadius;if("0" >> 64 !== R8){O5=Math.atan((m8 - R8 - e5) / (C8 - j8));O5 !== +O5 && (O5="0" | 0);E5=j8 + -R8 * Math.sin(("2" >> 64) * O5);S5=e5 + R8 * Math.cos("2" * 1 * O5);}else (E5=j8,S5=e5);p8=P5 - E5;c8=r5 - S5;z5=Math.atan2(c8,p8);C5=P5 - Math.cos(z5) * v5;x5=r5 - Math.sin(z5) * v5;Math.sqrt(c8 * c8 + p8 * p8) > v5?(K8=C5 - .5,k8=x5 - ".5" * 1):(K8=E5,k8=S5);p8=Z5 - K8;c8=o5 - k8;z5=Math.atan2(c8,p8);T5=Z5 - Math.cos(z5) * i5;K5=o5 - Math.sin(z5) * i5;if((Math.sqrt(p8 * p8 + c8 * c8) > i5 && (K8=T5 - ".5" * 1,k8=K5 - (".5" - 0)),+"0" !== R8 && !H5)){if(K8 <= C8 + +"2" && -1 !== T8.indexOf(L9i.l7(31)))return void this.toggleCorner(G8);if(K8 >= C8 - +"2" && - +"1" !== T8.indexOf(L9i.l7("30" ^ 0)))return void this.toggleCorner(G8);}N5=K8 + +".5" * (C8 - K8);y5=k8 + ".5" * 1 * (m8 - k8);Math.abs(y5 - m8) >= +"1" || Math.abs(N5 - C8) >= +"1"?(r8=Math.atan((y5 - m8) / (N5 - C8)),D8=Math.sqrt((C8 - K8) * (C8 - K8) + (m8 - k8) * (m8 - k8)) / +"2",h8=C8 - N5,V8=m8 - y5):(r8="0" >> 32,D8="0" ^ 0,h8=+"0",V8="0" << 0);r8 !== +r8 && (r8="0" ^ 0);d8=Math.abs(h8 / t8);o8=+"0" === d8?"0" - 0:d8 > ".8" * 1?+"5" * (("1" ^ 0) - d8):"1" << 32;r8=n.default.round(r8,+"5");a5=(d8 > +".9"?+".35":-(".35" - 0)) * window.devicePixelRatio;h5=Z8 > +"1300"?+"2" * a5:a5;if((L9i.l7(+"166") === T8 || L9i.K7("167" >> 0) === T8?(P8.reversePageTransform=L9i.K7(+"176") + (U5 - D8 + h5) + L9i.K7(177) + Q8 + L9i.l7("178" | 18) + r8 + L9i.l7(+"179"),P8.maskTransform=L9i.l7("176" | 48) + (-h8 + a5) + L9i.l7("177" << 32) + -V8 + L9i.K7("178" << 64) + r8 + L9i.l7("179" | 2),P8.frontPageTransform=L9i.l7(176) + (U5 - t8 + D8) + L9i.l7(177) + Q8 + L9i.K7("178" - 0) + -r8 + L9i.K7("179" ^ 0)):(P8.reversePageTransform=L9i.l7("176" ^ 0) + (-t8 + D8 - h5) + L9i.l7(+"177") + Q8 + L9i.l7(178) + r8 + L9i.l7("179" * 1),P8.maskTransform=L9i.l7(+"176") + (-h8 - a5) + L9i.K7(177) + -V8 + L9i.l7(178) + r8 + L9i.l7(179),P8.frontPageTransform=L9i.K7(+"176") + -D8 + L9i.l7(177) + Q8 + L9i.K7("178" >> 0) + -r8 + L9i.l7(179)),"0" >> 32 !== o8))if(L9i.l7("166" - 0) === T8){k5=D8 / Math.cos(r8);f5=Math.tan(r8) * J5;H8=f5 < +"0"?k5 - f5:D8;f5 < 0 && (H8=Math.cos(r8) * H8);P8.flipGradientBackground=x8 + L9i.K7(+"180") + .45 * o8 + L9i.K7(+"181") + (".15" - 0) * o8 + L9i.l7("182" >> 64) + +".01" * H8 + L9i.l7(+"183") + (".45" - 0) * o8 + L9i.l7(182) + .055 * H8 + L9i.K7("184" << 32) + +".65" * o8 * (".32" * 1) + L9i.l7(+"182") + (".185" - 0) * H8 + L9i.l7("185" << 32) + H8 + L9i.K7(186);P8.flipGradientTransform=L9i.l7(176) + (k5 - D5) + L9i.l7("187" - 0) + -r8 + L9i.l7("179" >> 32);Q5=Math.tan(r8) * V8;W8=C8 - j8;W8=W8 < ".03" * 1 * Z8?(".03" - 0) * Z8:W8 > +".3" * Z8?(".3" - 0) * Z8:W8;P8.innerReflexBottomBackground=x8 + L9i.l7("188" ^ 0) + (".45" - 0) * o8 + L9i.l7("189" | 17) + W8 + L9i.l7(+"186");P8.innerReflexBottomTransform=L9i.l7(+"176") + (Z8 - h8 - Q5) + L9i.K7("187" >> 0) + r8 + L9i.l7(+"179");n5=W8 * (".45" - 0 + d8 / ("2" | 2));P8.innerReflexBackground=x8 + L9i.K7("190" * 1) + (".1" * 1 + 1.6 * d8 * .4) + L9i.K7(189) + n5 + L9i.K7("186" >> 32);P8.innerReflexTransform=L9i.K7(+"176") + (Z8 - h8 - Q5 - L5) + L9i.l7("187" | 8) + r8 + L9i.K7(179);P8.reflexContainerTransform=L9i.K7("176" * 1) + (U5 - Z8 + D8) + L9i.l7(+"177") + Q8 + L9i.l7(178) + -r8 + L9i.l7(179);}else if(L9i.K7("167" - 0) === T8){j5=D8 / Math.cos(r8);X5=Math.tan(r8) * J5;w8=X5 > +"0"?j5 + X5:D8;X5 > 0 && (w8=Math.cos(r8) * w8);P8.flipGradientBackground=x8 + L9i.l7("180" * 1) + (".45" - 0) * o8 + L9i.l7(+"181") + ".15" * 1 * o8 + L9i.l7("182" << 0) + +".01" * w8 + L9i.l7("183" * 1) + .45 * o8 + L9i.K7("182" * 1) + ".055" * 1 * w8 + L9i.K7(+"184") + ".65" * 1 * o8 * (".32" - 0) + L9i.l7("182" >> 64) + ".185" * 1 * w8 + L9i.K7("185" * 1) + w8 + L9i.l7(+"186");P8.flipGradientTransform=L9i.K7("176" << 64) + (j5 - D5) + L9i.K7("187" * 1) + -r8 + L9i.K7("179" >> 32);m5=Math.tan(r8) * V8;b8=C8 - j8;b8=b8 < (".03" - 0) * Z8?(".03" - 0) * Z8:b8 > (".3" - 0) * Z8?".3" * 1 * Z8:b8;P8.innerReflexBottomBackground=x8 + L9i.K7(+"188") + ".45" * 1 * o8 + L9i.K7(+"189") + b8 + L9i.K7("186" * 1);P8.innerReflexBottomTransform=L9i.K7(+"176") + (Z8 - h8 - m5) + L9i.K7("187" - 0) + r8 + L9i.l7(179);p5=b8 * (".45" * 1 + d8 / ("2" - 0));P8.innerReflexBackground=x8 + L9i.l7("190" ^ 0) + (".1" * 1 + +"1.6" * d8 * (".4" - 0)) + L9i.l7(189) + p5 + L9i.K7(186);P8.innerReflexTransform=L9i.l7("176" << 64) + (Z8 - h8 - L5 - m5) + L9i.K7("187" ^ 0) + r8 + L9i.K7("179" >> 32);P8.reflexContainerTransform=L9i.K7("176" << 32) + (U5 - Z8 + D8) + L9i.K7(+"177") + Q8 + L9i.K7("178" << 64) + -r8 + L9i.l7(179);}else if(L9i.K7(+"168") === T8){M5=D8 / Math.cos(r8);A5=Math.tan(r8) * J5;s8=A5 > +"0"?M5 + A5:D8;A5 > "0" << 32 && (s8=Math.cos(r8) * s8);P8.flipGradientBackground=x8 + L9i.l7(191) + ".45" * 1 * o8 + L9i.l7(181) + (".15" - 0) * o8 + L9i.l7("182" >> 64) + +".01" * s8 + L9i.l7("183" * 1) + .45 * o8 + L9i.K7("182" >> 32) + ".055" * 1 * s8 + L9i.K7(184) + (".65" - 0) * o8 * +".32" + L9i.l7(+"182") + +".185" * s8 + L9i.K7("185" ^ 0) + s8 + L9i.K7(186);P8.flipGradientTransform=L9i.K7("176" >> 32) + (t8 - M5) + L9i.l7("187" - 0) + -r8 + L9i.l7(179);l8=j8 - C8;l8=l8 < +".03" * Z8?".03" * 1 * Z8:l8 > +".3" * Z8?+".3" * Z8:l8;P8.innerReflexBottomBackground=x8 + L9i.l7("190" << 0) + +".45" * o8 + L9i.K7(+"189") + l8 + L9i.l7("186" * 1);P8.innerReflexBottomTransform=L9i.l7(+"176") + (M5 - d5) + L9i.l7(+"187") + r8 + L9i.K7(179);c5=l8 * (+".45" + d8 / +"2");P8.innerReflexBackground=x8 + L9i.l7("188" - 0) + (".1" - 0 + +"1.6" * d8 * (".4" - 0)) + L9i.l7(+"189") + c5 + L9i.K7("186" >> 32);P8.innerReflexTransform=L9i.l7("176" ^ 0) + M5 + L9i.K7("187" << 0) + r8 + L9i.l7(179);P8.reflexContainerTransform=L9i.l7(+"176") + -D8 + L9i.l7(+"177") + Q8 + L9i.K7(+"178") + -r8 + L9i.K7(179);}else {g5=D8 / Math.cos(r8);Y5=Math.tan(r8) * J5;u8=Y5 < ("0" ^ 0)?g5 - Y5:D8;Y5 < "0" << 0 && (u8=Math.cos(r8) * u8);P8.flipGradientBackground=x8 + L9i.K7(191) + .45 * o8 + L9i.K7(+"181") + +".15" * o8 + L9i.K7(+"182") + (".01" - 0) * u8 + L9i.l7(+"183") + +".45" * o8 + L9i.l7(+"182") + ".055" * 1 * u8 + L9i.l7("184" >> 64) + .65 * o8 * +".32" + L9i.l7(+"182") + ".185" * 1 * u8 + L9i.K7(185) + u8 + L9i.K7(186);P8.flipGradientTransform=L9i.l7(+"176") + (t8 - g5) + L9i.K7(+"187") + -r8 + L9i.K7("179" >> 64);q8=j8 - C8;q8=q8 < ".03" * 1 * Z8?".03" * 1 * Z8:q8 > +".3" * Z8?(".3" - 0) * Z8:q8;P8.innerReflexBottomBackground=x8 + L9i.K7(190) + +".45" * o8 + L9i.l7("189" << 64) + q8 + L9i.l7(186);P8.innerReflexBottomTransform=L9i.K7("176" ^ 0) + (g5 - d5) + L9i.K7(+"187") + r8 + L9i.l7(+"179");V5=q8 * (+".45" + d8 / +"2");P8.innerReflexBackground=x8 + L9i.K7(+"188") + (+".1" + ("1.6" - 0) * d8 * +".4") + L9i.l7(+"189") + V5 + L9i.l7("186" - 0);P8.innerReflexTransform=L9i.l7(176) + g5 + L9i.l7(+"187") + r8 + L9i.K7("179" - 0);P8.reflexContainerTransform=L9i.l7(176) + -D8 + L9i.l7(+"177") + Q8 + L9i.K7(178) + -r8 + L9i.l7(179);}if((this[L8].reversePage.style[n8]=P8.reversePageTransform,this[L8].mask.style[n8]=P8.maskTransform,this[L8].frontPage.style[n8]=P8.frontPageTransform,this[L8].flipGradient.style.background=P8.flipGradientBackground,this[L8].flipGradient.style[n8]=P8.flipGradientTransform,B5 || L9i.l7(+"134") === this.bookState.version?this.innerReflexBottom.style.display=L9i.K7("143" * 1):(this.innerReflexBottom.style.background=P8.innerReflexBottomBackground,this.innerReflexBottom.style[n8]=P8.innerReflexBottomTransform,this[L8].innerReflex.style.background=P8.innerReflexBackground,this[L8].innerReflex.style[n8]=P8.innerReflexTransform,this[L8].innerReflex.style.display="0" >> 32 === o8?L9i.K7(+"143"):L9i.l7("8" * 1)),this.bookState.singleMode)){if(-("1" | 1) !== T8.indexOf(this.bookState.rtl?L9i.l7(+"31"):L9i.K7("30" | 12))){I8=d8 < .85?"1" ^ 0:+"1" - Math.pow((d8 - (".85" - 0)) / (".15" - 0),"2" ^ 0);I8=I8 <= "0" << 0?"0" - 0:I8;this[L8].frontPage.style.opacity=I8;this[L8].reversePage.style.opacity=I8;this[L8].innerReflex.style.opacity=I8;this.innerReflexBottom.style.opacity=+"1";}if(-1 !== T8.indexOf(this.bookState.rtl?L9i.K7("30" >> 0):L9i.K7("31" - 0))){F5=d8 > .7?+"1":Math.pow(d8 / (".7" - 0),2);F5=F5 <= 0?"0" >> 96:F5;this[L8].frontPage.style.opacity=d8 > .3?Math.pow((d8 - ".3" * 1) / +".7","2" - 0):0;this[L8].reversePage.style.opacity=F5;this[L8].innerReflex.style.opacity=F5;this.innerReflexBottom.style.opacity=+"0";}}this[L8].reflexContainer.style[n8]=P8.reflexContainerTransform;this.follow=new L(E5,S5);this.corner=new L(K8,k8);this.radius1=new L(C5,x5);this.radius2=new L(T5,K5);this.progress=d8;this.renderData=P8;this.middle={'\u0078':N5,'\u0079':y5,'\u0064\u0069\u0073\u0074':D8,'\u0061\u006c\u0066\u0061':r8,'\u0064\u0069\u0073\u0074\u0058':h8,'\u0064\u0069\u0073\u0074\u0059':V8};(this.bookState.left.isFirstSheet && - +"1" !== T8.indexOf(L9i.K7(+"31")) || this.bookState.left.isLast || this.bookState.right.isFirst || this.bookState.right.isLastSheet && -("1" - 0) !== T8.indexOf(L9i.K7(30)) || G8.fakePointer && this.bookState.left.isFirstSheet || G8.fakePointer && this.bookState.right.isLastSheet) && this.setDynamicStyles(! +"0");}};y.prototype.finishRender=function(w5,q5,s5,I5){var i9i=O4uu;i9i.Q5i();var b5,G5,l5,u5,W5,R5;if((w5=w5 || ! +"1",this.postPager=!("1" >> 64),!this.destroyed))if(i9i.l7(+"26") !== this[this.currentWrapper].type){b5=this.progress < ".5" * 1?this.corner.x - this.startX:i9i.l7(+"166") === this.startPoint || i9i.K7("167" | 1) === this.startPoint?this.corner.x - this.startX + this.bookWidth:this.corner.x - this.startX - this.bookWidth;i9i.K7(30) === q5?(this.progress=".9" - 0,b5=this.corner.x - this.startX - this.bookWidth):i9i.K7("31" >> 0) === q5 && (this.progress=+".9",b5=this.corner.x - this.startX + this.bookWidth);G5=this.corner.y - this.startY;l5=this.corner.x;u5=this.corner.y;W5=this;this.deltaFromCorner=0;R5=function(){var t5,O1;t5={'\u0070\u0061\u0067\u0065\u0058':l5,'\u0070\u0061\u0067\u0065\u0059':u5};O1=function(){W5.render({'\u0070\u0061\u0067\u0065\u0058':l5 - b5,'\u0070\u0061\u0067\u0065\u0059':u5 - G5},!0);W5.destroyed || (W5.progress > ".5" * 1 && (i9i.l7("166" << 0) === W5.startPoint || i9i.K7("167" << 0) === W5.startPoint?W5[W5.currentWrapper].setLeft():W5[W5.currentWrapper].setRight()),n.default.removeClass(W5[W5.currentWrapper].mask,i9i.K7(175)),W5.state=i9i.K7(+"0"),Object(p.getStore)().dispatch(i9i.K7(1),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':i9i.l7(0)}),W5[W5.currentWrapper].mask.style.top=i9i.l7("192" << 0),W5[W5.currentWrapper].mask.style[W5.transformMethod]=i9i.K7(+"8"),W5[W5.currentWrapper].frontPage.style[W5.transformMethod]=i9i.K7("8" >> 0),W5[W5.currentWrapper].reversePage.style[W5.transformMethod]=i9i.l7(+"193"),W5.innerReflexBottom.style[W5.transformMethod]=i9i.K7("194" << 32),W5.innerReflexBottom.style.display=i9i.l7("8" << 32),W5[W5.currentWrapper].reflexMask && (W5[W5.currentWrapper].reflexMask.style.overflow=i9i.K7(+"8")),W5.progress > +".5" && !s5 && (i9i.K7("166" << 64) === W5.startPoint || i9i.K7(+"167") === W5.startPoint?W5.trigger(i9i.l7("105" - 0)):W5.trigger(i9i.K7(106))),s5?W5.trigger(i9i.l7(+"109"),I5):W5.trigger(i9i.l7("108" >> 0),I5),W5.progress > ".5" * 1 && s5 && (i9i.l7("166" >> 64) === W5.startPoint || i9i.l7("167" * 1) === W5.startPoint?W5.trigger(i9i.l7(+"103")):W5.trigger(i9i.K7(+"104"))),n.default.removeClass(W5.globalWrapper,i9i.l7(173)),W5.progress=+"1");};w5?O1():W5.tween=new c.a.Tween(t5).to({'\u0070\u0061\u0067\u0065\u0058':l5 - b5,'\u0070\u0061\u0067\u0065\u0059':u5 - G5},350).easing(c.a.Easing.Sinusoidal.Out).onUpdate(function(){w5 || W5.render(t5);}).onComplete(O1).start();};this.tween && this.tween._isPlaying?this.tween.onStop(function(){R5();}).stop():R5();}else this.finishRenderHard(w5,q5,s5,I5);};y.prototype.startRenderHard=function(E1,S1,F1){var U9i=O4uu;var z1;z1=E1.pageX - this.bookMarginLeft;z1 > this.pageWidth && U9i.l7(+"31") !== F1 || U9i.K7("30" << 64) === F1?(this.startPoint=U9i.K7("167" | 34),this.currentWrapper=U9i.l7(+"102"),this.startX=this.bookMarginLeft + this.bookWidth,this.finishX=this.bookMarginLeft):(this.startPoint=U9i.l7("169" * 1),this.currentWrapper=U9i.l7(+"101"),this.startX=this.bookMarginLeft,this.finishX=this.bookMarginLeft + this.bookWidth);this.isIE && (this[this.currentWrapper].firstPage.style[this.transformOriginMethod]=U9i.l7(+"195"),this[this.currentWrapper].secondPage.style[this.transformOriginMethod]=U9i.K7("196" ^ 0));n.default.addClass(this[this.currentWrapper].mask,U9i.K7(197));this.trigger(U9i.l7(+"107"),{'\u0064\u0072\u0061\u0067':S1,'\u0068\u0069\u0064\u0065':z1 > this.pageWidth?U9i.l7("30" - 0):U9i.l7("31" - 0)});this.state=U9i.l7("122" >> 0);Object(p.getStore)().dispatch(U9i.K7(+"1"),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':U9i.l7("122" * 1)});};y.prototype.renderHard=function(a1){var m9i=O4uu;var J1,U1,M1,N1,y1;if(!this.destroyed){M1=this.pageWidth;if((U1=(U1=(U1=m9i.K7(+"167") === this.startPoint?a1.pageX - (this.bookMarginLeft + this.pageWidth):this.bookMarginLeft + this.pageWidth - a1.pageX) > this.pageWidth?this.pageWidth:U1) < -this.pageWidth?-this.pageWidth:U1,J1=Math.acos(U1 / M1),J1=m9i.K7(+"167") === this.startPoint?-J1:J1,this.progress=1 * Math.abs(J1 / Math.PI).toFixed(+"2"),this.pageX=a1.pageX,this.bookState.singleMode)){if(-1 !== this.startPoint.indexOf(this.bookState.rtl?m9i.K7("31" ^ 0):m9i.K7(+"30"))){N1=this.progress < +".5"?+"1":("1" | 0) - Math.pow((this.progress - +".5") / +".5",2);N1=N1 <= "0" >> 32?0:N1;this[this.currentWrapper].frontPage.style.opacity=N1;this[this.currentWrapper].reversePage.style.opacity=N1;this[this.currentWrapper].mask.style[m9i.l7(+"198")]=this.progress >= ".5" - 0?m9i.l7(+"143"):m9i.l7("8" << 32);}if(-("1" >> 64) !== this.startPoint.indexOf(this.bookState.rtl?m9i.l7(+"30"):m9i.l7("31" | 3))){y1=this.progress > ".5" - 0?+"1":Math.pow(this.progress / (".5" * 1),"2" | 2);y1=y1 <= ("0" | 0)?"0" | 0:y1;this[this.currentWrapper].frontPage.style.opacity=y1;this[this.currentWrapper].reversePage.style.opacity=y1;this[this.currentWrapper].mask.style[m9i.K7("198" << 0)]=this.progress >= ".5" * 1?m9i.l7("8" * 1):m9i.l7(+"143");}}this.isIE?m9i.l7("167" >> 0) === this.startPoint?(this[this.currentWrapper].firstPage.style[this.transformMethod]=m9i.K7("199" ^ 0) + J1 + m9i.l7(+"179"),this[this.currentWrapper].secondPage.style[this.transformMethod]=m9i.K7("200" ^ 0) + -S * this.pageWidth + m9i.l7(201) + (J1 + Math.PI) + m9i.K7(+"179")):(this[this.currentWrapper].firstPage.style[this.transformMethod]=m9i.l7("200" | 72) + S * this.pageWidth + m9i.l7("201" - 0) + (J1 + Math.PI) + m9i.l7(+"179"),this[this.currentWrapper].secondPage.style[this.transformMethod]=m9i.l7(199) + J1 + m9i.K7(+"179")):this[this.currentWrapper].mask.style[this.transformMethod]=m9i.K7(+"202") + J1 + m9i.l7("179" - 0);this.setDynamicStyles();}};O4uu.Q5i();y.prototype.finishRenderHard=function(Y1,i1,v1,B1){var r9i=O4uu;var X1,f1,P1,r1,e1,g1,A1;X1=this.progress;f1={'\u0078':this.progress,'\u0070\u0061\u0067\u0065\u0058':this.pageX};P1=r9i.l7(+"167") === this.startPoint && r9i.K7(+"31") === i1 || r9i.l7(+"169") === this.startPoint && r9i.K7("30" >> 32) === i1;r1=X1 > ".35" - 0 && (r9i.l7(+"167") === this.startPoint && this.bookState.right.isFirst || r9i.l7(169) === this.startPoint && this.bookState.left.isLast);e1=X1 > .5 || r1 || P1;g1=this;A1=function(){var Z1;Z1=function(){r9i.B5i();g1.destroyed || (g1.state=r9i.K7(+"0"),Object(p.getStore)().dispatch(r9i.K7(1),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':r9i.K7(+"0")}),n.default.removeClass(g1[g1.currentWrapper].mask,r9i.K7("197" >> 32)),g1[g1.currentWrapper].mask.style[g1.transitionMethod]=r9i.l7("8" ^ 0),g1.isIE?(g1[g1.currentWrapper].firstPage.style[g1.transformMethod]=r9i.l7("8" >> 32),g1[g1.currentWrapper].secondPage.style[g1.transformMethod]=r9i.l7(+"8"),g1[g1.currentWrapper].firstPage.style[g1.transformOriginMethod]=r9i.l7("8" << 64),g1[g1.currentWrapper].secondPage.style[g1.transformOriginMethod]=r9i.K7(+"8")):g1[g1.currentWrapper].mask.style[g1.transformMethod]=r9i.K7("8" ^ 0),e1 && (r9i.l7(+"167") === g1.startPoint && r9i.l7(30) !== i1?(g1[g1.currentWrapper].setLeft(),v1 || g1.trigger(r9i.l7(+"105"))):r9i.K7(169) === g1.startPoint && r9i.l7(+"31") !== i1 && (g1[g1.currentWrapper].setRight(),v1 || g1.trigger(r9i.K7(+"106")))),v1?g1.trigger(r9i.K7(109),B1):g1.trigger(r9i.l7(+"108"),B1),e1 && v1 && (r9i.K7("166" | 4) === g1.startPoint || r9i.l7("167" << 64) === g1.startPoint?g1.trigger(r9i.K7(103)):g1.trigger(r9i.K7("104" ^ 0))),n.default.removeClass(g1.globalWrapper,r9i.K7(+"173")),Y1 && (g1.setDynamicStyles(),g1.progress="1" - 0));};r9i.Q5i();Y1?Z1():g1.tween=new c.a.Tween(f1).to({'\u0078':e1?+"1":0,'\u0070\u0061\u0067\u0065\u0058':e1?g1.finishX:g1.startX},500).easing(c.a.Easing.Sinusoidal.Out).onUpdate(function(){r9i.B5i();g1.progress=f1.x;g1.renderHard({'\u0070\u0061\u0067\u0065\u0058':f1.pageX});}).onComplete(Z1).start();};this.tween && this.tween._isPlaying?this.tween.onStop(function(){r9i.Q5i();A1();}).stop():A1();};y.prototype.shiftPagesLeft=function(){var o1;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);o1=this.storedStates.length > "0" << 0?this.storedStates.shift():this.bookState.getState();this.nxtWrapper=Object(o.default)(o1,this.bookState,this.bookDiv,! +"0","2" >> 0,!("1" - 0),this.parentVm,this.contentCreator);this.trigger(O4uu.K7("9" >> 64));};y.prototype.shiftPagesRight=function(){var d1;this.nxtWrapper.destroy();O4uu.Q5i();this.nxtWrapper=this.rightWrapper.setLayer(this.rightWrapper.layer - +"1");this.rightWrapper=this.leftWrapper;this.leftWrapper=this.preWrapper.setLayer(this.preWrapper.layer + ("1" << 0));d1=this.storedStates.length > ("0" ^ 0)?this.storedStates.shift():this.bookState.getState();this.preWrapper=Object(o.default)(d1,this.bookState,this.bookDiv,!1,"2" >> 64,! +"0",this.parentVm,this.contentCreator);this.trigger(O4uu.K7("9" ^ 0));};y.prototype.flipToLeft=function(){var D1,C1,x1,T1,L1,K1,h1,k1;D1=this;O4uu.Q5i();C1=arguments.length > 0 && void ("0" - 0) !== arguments[+"0"] && arguments[+"0"];x1=arguments.length > "1" - 0 && void +"0" !== arguments[1] && arguments["1" - 0];T1=arguments.length > 2?arguments[+"2"]:void +"0";if(!this.bookState.left.isLast || Object(p.getStore)().state.pager.forceFlip){L1=this._getBookLeftMargin();K1={'\u0070\u0061\u0067\u0065\u0058':L1 + this.bookWidth - +"1",'\u0070\u0061\u0067\u0065\u0059':this.bookMarginTop};h1={'\u0070\u0061\u0067\u0065\u0058':L1 - +"2"};k1=function(j1,Q1){j1.pageY=D1.bookMarginTop - Math.min(D1.bookWidth,D1.bookHeight) / 10 * (Q1 > ".5" * 1?1 - Q1:Q1);};this._internalFlip(C1,x1,T1,K1,h1,k1);}};y.prototype.flipToRight=function(){var n1,p1,c1,V1,m1,H1,W1,w1;n1=this;p1=arguments.length > 0 && void 0 !== arguments["0" - 0] && arguments[+"0"];c1=arguments.length > ("1" | 1) && void 0 !== arguments[1] && arguments[+"1"];V1=arguments.length > +"2"?arguments[2]:void ("0" - 0);if(!this.bookState.right.isFirst || Object(p.getStore)().state.pager.forceFlip){m1=this._getBookLeftMargin();H1={'\u0070\u0061\u0067\u0065\u0058':m1 + +"1",'\u0070\u0061\u0067\u0065\u0059':this.bookMarginTop};W1={'\u0070\u0061\u0067\u0065\u0058':m1 + this.bookWidth};w1=function(s1,b1){O4uu.Q5i();s1.pageY=Math.round(n1.bookMarginTop - +"100" * (b1 > ".5" - 0?("1" ^ 0) - b1:b1));};this._internalFlip(p1,c1,V1,H1,W1,w1);}};y.prototype._internalFlip=function(){var q1,I1,R1,t1,u1,O3,z3,l1,G1;I1=arguments.length > ("0" | 0) && void ("0" * 1) !== arguments[+"0"] && arguments[0];R1=arguments.length > +"1" && void 0 !== arguments["1" >> 0] && arguments[+"1"];t1=arguments.length > "2" << 0?arguments[2]:void +"0";u1=arguments.length > "3" * 1?arguments[+"3"]:void 0;O3=arguments.length > "4" - 0?arguments[+"4"]:void +"0";z3=arguments.length > +"5"?arguments["5" - 0]:void +"0";this.storedStates.push(t1 || this.bookState.getState());l1=this;G1=function(){var V9i=O4uu;V9i.B5i();l1.destroyed || (Object(p.getStore)().dispatch(V9i.K7(130),V9i.K7(203)),l1.once(V9i.l7(108),function(){V9i.Q5i();Object(p.getStore)().dispatch(V9i.l7(+"130"),V9i.K7("133" - 0));}),l1.startRender(u1,! +"0"),l1.postPager=!("0" * 1),R1?l1.finishRender(!("0" << 64),null,I1):l1.tween=new c.a.Tween(u1).to(O3,("500" | 68) / l1.speedRate).easing(c.a.Easing.Sinusoidal.Out).onUpdate(function(){V9i.Q5i();V9i.l7(+"26") !== l1[l1.currentWrapper].type?(z3(u1,l1.progress),u1.fakePointer=!0,l1.render(u1,!("0" * 1))):l1.renderHard(u1,! +"0");}).onComplete(function(){V9i.B5i();l1.finishRender(!0,null,I1);}).start());};(null === (q1=l1.tween) || void +"0" === q1?void +"0":q1._isPlaying)?l1._stopInternalFlip(G1):G1();};y.prototype._stopInternalFlip=function(S3){var X9i=O4uu;X9i.B5i();var F3,E3;E3=this;(null === (F3=this.tween) || void ("0" ^ 0) === F3?void +"0":F3._isPlaying) && this.tween.onStop(function(){var J3;J3=- +"1" !== E3.startPoint.indexOf(X9i.l7(+"31"))?X9i.l7(+"30"):X9i.l7(+"31");E3.finishRender(!("0" | 0),J3,! +"0",! +"0");X9i.B5i();null == S3 || S3();}).stop();};y.prototype._getBookLeftMargin=function(){var U3,y3,N3;O4uu.Q5i();U3=this.bookMarginLeft;y3=this.bookWidth;if(this.bookState.hardcover && !this.bookState.singleMode){N3=Object(p.getStore)().getters[O4uu.K7("116" | 36)];U3=null === (this.bookState.rtl?N3.rightPage:N3.leftPage)?-y3 / +"2":+"0";}return U3;};y.prototype.flipToPager=function(){var B9i=O4uu;var a3,M3,g3,e3,i3,A3,v3,f3,X3,Y3;a3=this;this._stopInternalFlip();B9i.Q5i();M3=! +"0";if((Object(p.getStore)().dispatch(B9i.l7("172" ^ 0),{'\u0066\u006f\u0072\u0063\u0065\u0046\u006c\u0069\u0070':!("0" - 0)}),Math.max(this.leftWrapper.secondPageNum,this.rightWrapper.firstPageNum) > Math.max(this.bookState.currentLeft,this.bookState.currentRight) && (M3=!("1" >> 32)),M3)){- +"1" === this.leftWrapper.secondPageNum && this.bookState.left.isLast && n.default.addClass(this.globalWrapper,B9i.K7("173" >> 0));e3=null !== (g3=[this.bookState.right,this.bookState.left].filter(function(B3){return !B3.isNull;})[0]) && void +"0" !== g3?g3:this.bookState.right;i3=this.bookState.hardcover && (e3.isLastSheet || e3.isLast);if((this.bookState.left.isLast || i3?(this.nxtWrapper.destroy(),this.nxtWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!0,"2" - 0,! +"1",this.parentVm,this.contentCreator,B9i.l7(+"30"),i3,!("0" | 0))):this.bookState.left.isLast || this.nxtWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':null,'\u0073\u0065\u0063\u006f\u006e\u0064':null}),this.bookState.left.isLast && this.bookState.hardcover)){A3=this.rightWrapper.firstPageNum;this.rightWrapper.destroy();this.rightWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,! +"1","3" ^ 0,! +"1",this.parentVm,this.contentCreator,B9i.l7(+"31"));this.rightWrapper.setRight();this.rightWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':A3});}else this.bookState.singleMode?this.bookState.singleMode && this.bookState.rtl && this.rightWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':null,'\u0073\u0065\u0063\u006f\u006e\u0064':null}):this.rightWrapper.setContent({'\u0073\u0065\u0063\u006f\u006e\u0064':null});this.once(B9i.K7(108),function(){n.default.removeClass(a3.globalWrapper,B9i.l7(+"173"));B9i.Q5i();a3.resetWrappers();},this);this.flipToLeft();}else {- +"1" === this.rightWrapper.firstPageNum && this.bookState.right.isFirst && n.default.addClass(this.globalWrapper,B9i.K7("173" >> 64));f3=null !== (v3=[this.bookState.left,this.bookState.right].filter(function(P3){return !P3.isNull;})[0]) && void 0 !== v3?v3:this.bookState.left;X3=this.bookState.hardcover && (f3.isFirstSheet || f3.isFirst);if((this.bookState.right.isFirst || X3?(this.preWrapper.destroy(),this.preWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("1" | 1),"2" | 2,!("1" - 0),this.parentVm,this.contentCreator,B9i.K7(+"31"),X3)):this.bookState.right.isFirst || this.preWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':null,'\u0073\u0065\u0063\u006f\u006e\u0064':null}),this.bookState.right.isFirst && this.bookState.hardcover)){Y3=this.leftWrapper.secondPageNum;this.leftWrapper.destroy();this.leftWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("0" | 0),+"3",! +"1",this.parentVm,this.contentCreator,B9i.K7("30" * 1));this.leftWrapper.setLeft();this.leftWrapper.setContent({'\u0073\u0065\u0063\u006f\u006e\u0064':Y3});}else this.bookState.singleMode && this.bookState.rtl || this.leftWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':null});this.once(B9i.l7(+"108"),function(){B9i.B5i();n.default.removeClass(a3.globalWrapper,B9i.l7(173));a3.resetWrappers(!("1" ^ 0));},this);this.flipToRight();}};y.prototype.initOnceSizes=function(){var Q9i=O4uu;var r3,D3,T3,L3,Z3,K3,h3,C3,o3,d3,x3;r3=this.bookHeight;D3=this.maskTop;T3=this.flipGradientWidth;L3=this.flipGradientTop;Z3=this.transformOriginMethod;K3=this.innerReflexWidth;h3=this.innerReflexBottomWidth;C3=this.innerReflexBottomMarginTop;o3=this.renderData;d3=this.currentWrapper;x3=this.innerReflexMarginTop;switch(this.startPoint){case Q9i.K7(166):(this.renderData.reversePageOrigin=Q9i.l7("204" ^ 0),this.renderData.frontPageOrigin=Q9i.K7(+"205"),this.renderData.maskOrigin=Q9i.l7(+"206") + (r3 + D3) + Q9i.l7(28),this.renderData.flipGradientOrigin=T3 + Q9i.K7(207) + (r3 + L3) + Q9i.K7("28" * 1),this.renderData.innerReflexBottomOrigin=Q9i.K7("208" >> 32) + (r3 + C3) + Q9i.l7(28),this.renderData.innerReflexOrigin=K3 + Q9i.K7("207" * 1) + (r3 + x3) + Q9i.K7("28" - 0),this.renderData.reflexContainerOrigin=Q9i.K7("205" ^ 0));break;case Q9i.l7(167):(this.renderData.reversePageOrigin=Q9i.l7(+"209"),this.renderData.frontPageOrigin=Q9i.l7("210" - 0),this.renderData.maskOrigin=Q9i.K7(+"206") + D3 + Q9i.l7("28" ^ 0),this.renderData.flipGradientOrigin=T3 + Q9i.K7(+"207") + L3 + Q9i.K7(28),this.renderData.innerReflexBottomOrigin=Q9i.l7("208" >> 64) + C3 + Q9i.K7(+"28"),this.renderData.innerReflexOrigin=K3 + Q9i.K7(+"207") + x3 + Q9i.l7(28),this.renderData.reflexContainerOrigin=Q9i.K7("210" - 0));break;case Q9i.K7(+"168"):(this.renderData.reversePageOrigin=Q9i.l7("205" >> 32),this.renderData.frontPageOrigin=Q9i.l7(+"204"),this.renderData.maskOrigin=Q9i.l7(+"211") + (r3 + D3) + Q9i.K7(+"28"),this.renderData.flipGradientOrigin=Q9i.K7(+"208") + (r3 + L3) + Q9i.l7("28" * 1),this.renderData.innerReflexBottomOrigin=h3 + Q9i.l7(207) + (r3 + C3) + Q9i.l7("28" | 8),this.renderData.innerReflexOrigin=Q9i.K7(+"208") + (r3 + x3) + Q9i.l7("28" ^ 0),this.renderData.reflexContainerOrigin=Q9i.l7("204" >> 32));break;default:(this.renderData.reversePageOrigin=Q9i.K7(+"210"),this.renderData.frontPageOrigin=Q9i.l7("209" ^ 0),this.renderData.maskOrigin=Q9i.K7(211) + D3 + Q9i.l7(28),this.renderData.flipGradientOrigin=Q9i.K7("208" ^ 0) + L3 + Q9i.l7(28),this.renderData.innerReflexBottomOrigin=h3 + Q9i.l7("207" * 1) + C3 + Q9i.K7(+"28"),this.renderData.innerReflexOrigin=Q9i.l7(+"208") + x3 + Q9i.l7(+"28"),this.renderData.reflexContainerOrigin=Q9i.l7(+"209"));}this[d3].reversePage.style[Z3]=o3.reversePageOrigin;this[d3].frontPage.style[Z3]=o3.frontPageOrigin;Q9i.Q5i();this[d3].mask.style[Z3]=o3.maskOrigin;this[d3].flipGradient.style[Z3]=o3.flipGradientOrigin;this.innerReflexBottom.style[Z3]=o3.innerReflexBottomOrigin;this[d3].innerReflex.style[Z3]=o3.innerReflexOrigin;this[d3].reflexContainer.style[Z3]=o3.reflexContainerOrigin;};y.prototype.calcStripeSizes=function(){var Y9i=O4uu;var n3,Q3,k3,H3,W3,w3,p3,j3,c3,V3,m3;if(Math.max(document.documentElement.clientWidth || +"0",window.innerWidth || "0" << 64) <= 480 || !this.bookState.thickness)return (this.leftStripeWidth="0" << 64,this.rightStripeWidth="0" ^ 0,this.backboneWidth="0" * 1,this.leftStripeBlock.style.width="0" | 0,this.rightStripeBlock.style.width=+"0",void this.bookState.set(Y9i.K7("212" * 1),0));if(this.bookState.singleMode){H3=Object(p.getStore)().getters[Y9i.l7(116)].currentPage;if((Q3=(n3=Object(p.getStore)().getters[Y9i.K7(+"117")](H3)) + +"1",k3=Object(p.getStore)().getters[Y9i.l7("118" ^ 0)],this.bookState.rtl)){W3=Q3;Q3=k3 - n3 - ("1" << 0);n3=k3 - W3 - "1" * 1;}}else (n3=this.bookState.currentLeft,Q3=this.bookState.currentRight,k3=this.bookState.pagesCount);c3=n3 / ("2" ^ 0);V3=null === Q3 || this.bookState.right.isLastSheet?0:(k3 - Q3 + ("1" | 0)) / +"2";this.bookState.singleMode && !this.bookState.hardcover?j3="1" << 64:(w3=(Y9i.K7("122" >> 0) === this.state || Y9i.l7(+"123") === this.state) && (this.bookState.left.isFirstSheet || this.bookState.right.isFirst || this.bookState.left.isLast || this.bookState.right.isLastSheet) && !(!this.postPager && this.bookState.left.isFirstSheet && Y9i.K7(+"102") === this.currentWrapper || !this.postPager && this.bookState.right.isLastSheet && Y9i.l7(+"101") === this.currentWrapper) && !(this.postPager && this.bookState.left.isFirstSheet && Y9i.K7("101" ^ 0) === this.currentWrapper || this.postPager && this.bookState.right.isLastSheet && Y9i.K7("102" | 98) === this.currentWrapper),p3=this.progress,((this.bookState.left.isFirstSheet || this.bookState.right.isLastSheet) && !this.postPager || (this.bookState.right.isFirst || this.bookState.left.isLast) && this.postPager) && (p3=1 - p3),j3=w3?p3:(this.bookState.right.isFirst || this.bookState.left.isLast) && Y9i.l7(+"0") === this.state?+"0":+"1");m3=this.stripeCanvas.width - this.bookWidth;this.bookState.singleMode && this.bookState.rtl?(this.rightStripeWidth="0" | 0,this.rightStripeBlock.style.width="0" << 0,this.leftStripeWidth=Math.floor(Object(g.default)(c3,k3,this.fittedSize,m3) * j3),this.leftStripeBlock.style.width=this.leftStripeWidth + Y9i.K7(+"28")):this.bookState.singleMode?(this.leftStripeWidth=+"0",this.leftStripeBlock.style.width="0" | 0,this.rightStripeWidth=Math.floor(Object(g.default)(V3,k3,this.fittedSize,m3) * j3),this.rightStripeBlock.style.width=this.rightStripeWidth + Y9i.l7("28" * 1)):(this.leftStripeWidth=Math.floor(Object(g.default)(c3,k3,this.fittedSize,m3) * j3),this.leftStripeBlock.style.width=this.leftStripeWidth + Y9i.l7(+"28"),this.rightStripeWidth=Math.floor(Object(g.default)(V3,k3,this.fittedSize,m3) * j3),this.rightStripeBlock.style.width=this.rightStripeWidth + Y9i.K7(28));this.backboneWidth=this.leftStripeWidth + this.rightStripeWidth;Y9i.Q5i();this.bookState.set(Y9i.l7(+"212"),Object(g.default)(k3 / ("2" | 0),k3,this.fittedSize,m3));};y.prototype.calcStripeColors=function(){var E9i=O4uu;for(var b3,I3,G3,l3=[],u3=[],R3=this.bookState.pagesCount,s3=[+"200",210,+"220",230,+"240"],t3=function z9(){var F9;F9=Math.min(Math.floor(Math.random() * s3.length),s3.length - +"1");return F9 === b3 || F9 - +"1" === b3 || F9 + ("1" - 0) === b3?z9():F9;},q3=0,O9=R3;q3 < O9;q3++){b3=t3();I3=".2" * 1 * Math.random() + (".2" - 0) + ("1" - 0);G3=E9i.K7(+"213") + s3[b3] + E9i.l7(+"214") + s3[b3] + E9i.K7(+"214") + s3[b3] + E9i.K7(+"215");l3.push(G3);u3.push(I3);}E9i.Q5i();this.stripeColorArray=l3;this.stripeHeightArray=u3;};y.prototype.renderStripe=function(){var J9,U9,y9,a9,M9,f9,g9,e9;J9=this.stripeCanvasCTX;U9=this.stripeCanvas;y9=this.bookWidth;a9=this.bookHeight;M9=Math.round((U9.width - y9) / +"2");f9=U9.width;g9=! +"1";e9=!1;if((J9.clearRect("0" | 0,"0" << 64,f9,U9.height),(+"0" === this.rightWrapper.firstPageNum || ("0" ^ 0) === this.leftWrapper.firstPageNum && this.bookState.rtl) && (g9=!("0" << 32)),(this.leftWrapper.secondPageNum === this.bookState.pagesCount - "1" * 1 || this.rightWrapper.secondPageNum === this.bookState.pagesCount - +"1" && this.bookState.rtl) && (e9=! +"0"),this.leftStripeWidth > 0 && !g9))for(var i9=+"0",E9=this.leftStripeWidth;E9 > "0" << 0;E9--){i9=E9 * this.stripeHeightArray[this.leftStripeWidth - E9];J9.fillStyle=this.stripeColorArray[this.leftStripeWidth - E9];J9.fillRect(M9 - E9 + ("1" >> 32),Math.round(i9 / ("4" ^ 0)),+"1",a9 - E9 / +"2");}if(this.rightStripeWidth > +"0" && !e9)for(var v9="0" ^ 0,S9=+"0",N9=this.rightStripeWidth;S9 < N9;S9++){v9=S9 * this.stripeHeightArray[this.stripeColorArray.length - N9 + S9];J9.fillStyle=this.stripeColorArray[this.stripeColorArray.length - N9 + S9];J9.fillRect(M9 + y9 + S9 - +"1",Math.round(v9 / +"4"),+"1",a9 - S9 / 2);}};R=function(X9,Y9,A9,r9,B9,P9){P9=P9 || +"1";A9+=(".6" - 0) * B9;O4uu.Q5i();X9.beginPath();X9.moveTo(Y9,A9);X9.bezierCurveTo(Y9,A9 - B9,Y9 + .6 * r9,A9 - B9 / ("3.5" - 0),Y9 + r9,A9);X9.shadowColor=O4uu.l7("216" - 0);X9.shadowBlur=P9;X9.shadowOffsetY=.3 * -B9;X9.closePath();X9.fill();};
function L(t,e){this.x=t,this.y=e}y.prototype.renderBookShadow=function(t){var e=this,i=this.shadowCanvasCTX,s=this.shadowCanvas,r=s.width,o=s.height,n=this.bookWidth,a=this.pageWidth,h=this.bookHeight,l=(r-n)/2,c=(o-h)/2,d=this.rightStripeWidth,u=this.leftStripeWidth,p=this.backboneWidth,f=.01*n,g=Math.round(h*S);g%2!=0&&(g+=1);var m,v,b=Math.round(s.height-g)/2,w=this.bookState.singleMode,y=8,k=12,P=(a-4)/a,x=(h-8)/h,z=c+h,$=r/2;i.clearRect(0,0,r,o),i.fillStyle="rgba(0,0,0,0.17)",i.save();var C=function(t){t.addColorStop(0,"rgba(0, 0, 0, 0.1)"),t.addColorStop(.01,"rgba(0, 0, 0, 0)"),t.addColorStop(.05,"rgba(0, 0, 0, 0.05)"),t.addColorStop(.5,"rgba(0, 0, 0, 0)")},T=function(){if(i.shadowColor=null,i.shadowBlur=0,i.shadowOffsetY=0,"rgt-sdw"!==t){var e=$-f-u,s=$-f-u-a,r=i.createLinearGradient(e,0,s,0);C(r),i.fillStyle=r,i.fillRect(e,b,-a,g)}if("lft-sdw"!==t){var o=$+f+d+(w?p:0),n=$+f+d+a,h=i.createLinearGradient(o,0,n,0);C(h),i.fillStyle=h,i.fillRect(o,b,a,g)}},M=function(){var e=s.width/2-u-f,r=p+2*f,o=i.createLinearGradient(e,0,e+r,0);o.addColorStop(0,"rgba(0, 0, 0, 0)"),o.addColorStop(.02,"rgba(0, 0, 0, 0.33)"),o.addColorStop(.5,"rgba(0, 0, 0, 0.20)"),o.addColorStop(.98,"rgba(0, 0, 0, 0.33)"),o.addColorStop(1,"rgba(0, 0, 0, 0)"),i.shadowColor=null,i.shadowBlur=0,i.shadowOffsetY=0,i.fillStyle=o,i.fillRect(e,b,r,g),i.restore(),"rgt-sdw"===t&&i.clearRect(e-2,b-2,f+2,g+4),"lft-sdw"===t&&i.clearRect(e+p+f,b-2,f+2,g+4)},L=function(){w?i.scale(.999,.999):(i.scale(P,x),i.translate(y/2,k/2)),i.shadowColor="#000",i.shadowBlur=7,i.shadowOffsetY=0,i.fillRect(l,c,a,h),i.fillRect($,c,a,h),i.restore(),e.bookState.left.isFirstSheet||(R(i,$,c,-a,.3*c,12),R(i,$,z,-a,.9*-c,18)),e.bookState.right.isLastSheet||(R(i,$,c,a,.2*c,12),R(i,$,z,a,.6*-c,18))},O=function(t){w?i.scale(.999,.999):(i.scale(P,x),i.translate(y/2,k/2)),"right"===t?(v=1,m=$):(v=-1,m=l),i.shadowColor="#000",i.shadowBlur=7,i.shadowOffsetY=1,i.fillRect(m,c,a,h),i.restore(),R(i,$,c,a*v,c*("right"===t?.2:.3),12),R(i,$,z,a*v,-c*("right"===t?.6:.9),18)};"rgt-sdw"===t?O("right"):"lft-sdw"===t?O("left"):L(),this.bookState.hardcover&&n&&(T(),M()),this.renderStripe()},e.default=y},function(t,e,i){"use strict";i.r(e);var s=i(716),r=i(721),o=i(3);function n(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:2,h=arguments.length>5?arguments[5]:void 0,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,d=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]&&arguments[9],p=d?m(d):n&&3===a?t.rightSheet:n&&2===a?t.bottomRightSheet:n||3!==a?n||2!==a?{first:0,second:0}:t.bottomLeftSheet:t.leftSheet,f=p.first,g=p.second;function m(e){switch(e){case"left":return t.leftSheet;case"right":return t.rightSheet;case"bottom-left":return t.bottomLeftSheet;case"bottom-right":return t.bottomRightSheet}}function v(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,r=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,n=arguments.length>6?arguments[6]:void 0;this.bookState=t,this.firstPageNum=o,this.secondPageNum=n,t.isNullPage(o)&&(this.firstPageNum=-1),t.isNullPage(n)&&(this.secondPageNum=-1),this.generateDOM(e,i,s,r,l,c)}return e.hardcover&&(u||e.isFirstPage(f)||e.isLastPage(f)||e.isLastPage(g)||e.isFirstPage(g))?v.prototype=new s.default:v.prototype=new r.default,v.prototype.setContent=function(t){var e=t.first,i=t.second;Object(o.isUndefined)(e)||(this.contentObject1.resetPage(e),this.firstPageNum=e),Object(o.isUndefined)(i)||(this.contentObject2.resetPage(i),this.secondPageNum=i)},new v(e,i,n,a,h,f,g)}e.default=n},function(t,e,i){"use strict";i.r(e);var s=i(415),r=i(34),o=i(31);function n(){this.type="hard"}n.prototype.generateDOM=function(t,e,i,n,a,h){this.mask=r.default.createElement("div",{class:"hard-mask vis"}),this.firstPage=r.default.createElement("div",{},this.mask),this.contentObject1=new s.default(this.firstPage,this.firstPageNum,a,h),this.secondPage=r.default.createElement("div",{},this.mask),this.contentObject2=new s.default(this.secondPage,this.secondPageNum,a,h),this.setLayer(i),this.firstPageGradient="",this.secondPageGradient="",this.bookState.singleMode;var l=0;if(this.contentObject1.data&&!this.contentObject1.data.isReverseSide&&(this.firstPageGradient=Object(o.getStore)().getters["pages/pageGradient"](this.contentObject1.data.id),this.bookState.singleMode&&!this.bookState.isLastPage(this.firstPageNum)&&(l=this.contentObject1.data.isWide&&"left"===this.contentObject1.data.side?0:1,this.secondPageGradient=Object(o.getStore)().getters["pages/pageGradient"](parseInt(this.contentObject1.data.id)+l+""))),this.contentObject2.data&&!this.contentObject2.data.isReverseSide&&(this.secondPageGradient=Object(o.getStore)().getters["pages/pageGradient"](this.contentObject2.data.id),this.bookState.singleMode&&!this.bookState.isFirstPage(this.secondPageNum)&&(l=this.contentObject2.data.isWide&&"right"===this.contentObject2.data.side?0:1,this.firstPageGradient=Object(o.getStore)().getters["pages/pageGradient"](parseInt(this.contentObject2.data.id)+l+""))),!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"),d=c.nextSibling,u=c.parentNode;d?u.insertBefore(this.mask,d):u.appendChild(this.mask),c=null}else t.appendChild(this.mask)},n.prototype.setLeft=function(){r.default.removeClass(this.mask,"hRight");var t="page-flip-container z3 "+this.secondPageGradient;return this.secondPage.className=t+(this.bookState.isNullPage(this.secondPageNum)?" break":this.bookState.isLastPage(this.secondPageNum)?" hard-front outside":" hard-front inside"),t="page-flip-container z1 "+this.firstPageGradient,this.firstPage.className=t+(this.bookState.isNullPage(this.firstPageNum)?" break":this.bookState.isFirstPage(this.firstPageNum)?" hard-back outside":" hard-back inside"),this.frontPage=this.secondPage,this.reversePage=this.firstPage,this},n.prototype.setRight=function(){r.default.addClass(this.mask,"hRight");var t="page-flip-container z3 "+this.secondPageGradient;return this.secondPage.className=t+(this.bookState.isNullPage(this.secondPageNum)?" break":this.bookState.isLastPage(this.secondPageNum)?" hard-back outside":" hard-back inside"),t="page-flip-container z1 "+this.firstPageGradient,this.firstPage.className=t+(this.bookState.isNullPage(this.firstPageNum)?" break":this.bookState.isFirstPage(this.firstPageNum)?" hard-front outside":" hard-front inside"),this.frontPage=this.firstPage,this.reversePage=this.secondPage,this},n.prototype.setLayer=function(t){return r.default.removeClass(this.mask,"layer"+this.layer),this.layer=t,r.default.addClass(this.mask,"layer"+t),this},n.prototype.destroy=function(){void 0!==this.contentObject1.vm&&(this.contentObject1.destroy(),this.contentObject1.vm.$destroy(),this.contentObject1.vm=null,delete this.contentObject1.vm),void 0!==this.contentObject2.vm&&(this.contentObject2.destroy(),this.contentObject2.vm.$destroy(),this.contentObject2.vm=null,delete this.contentObject2.vm),r.default.del(this.mask),delete this.mask,delete this.firstPage,delete this.secondPage,delete this.frontPage,delete this.reversePage},e.default=n},function(t,e,i){"use strict";i.r(e);var s=i(718),r=i(138),o=(i(720),i(1)),n=Object(o.default)(r.default,s.render,s.staticRenderFns,!1,null,null,null);n.options.__file="src/components/common/page-reverse-side/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(416);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=document.createElement("canvas");s.width=screen.width,s.height=screen.height;var r=s.getContext("2d");function o(t,e,i,s){var r,o,n,a,h,l,c,d=.3086*(1-s),u=.6094*(1-s),p=.082*(1-s),f=e<<2;for(n=0;n=i-r;o--)c+=t[h=a+(o<<2)],d+=t[h+1],u+=t[h+2],p+=t[h+3],e[h]=c/(i-o)|0,e[h+1]=d/(i-o)|0,e[h+2]=u/(i-o)|0,e[h+3]=p/(i-o)|0;for(;o>=0;o--)l=(h=a+(o<<2))+f,e[h]=c/r|0,e[h+1]=d/r|0,e[h+2]=u/r|0,e[h+3]=p/r|0,c+=t[h]-t[l],d+=t[h+1]-t[l+1],u+=t[h+2]-t[l+2],p+=t[h+3]-t[l+3]}}function l(t,e,i,s,r){var o,n,a,h,l,c,d,u,p,f=i<<2,g=f*r;for(o=0;o=s-r;n--)c+=t[h=a+n*f],d+=t[h+1],u+=t[h+2],p+=t[h+3],e[h]=c/(s-n)|0,e[h+1]=d/(s-n)|0,e[h+2]=u/(s-n)|0,e[h+3]=p/(s-n)|0;for(;n>=0;n--)l=(h=a+n*f)+g,e[h]=c/r|0,e[h+1]=d/r|0,e[h+2]=u/r|0,e[h+3]=p/r|0,c+=t[h]-t[l],d+=t[h+1]-t[l+1],u+=t[h+2]-t[l+2],p+=t[h+3]-t[l+3]}}function d(t,e,i,o,a,h,l){var c=t.canvas,d=0|o,u=0|a,p=0|e,f=0|i;h=32*(0|h),h=Math.min(Math.max(h,32),256);var g=Math.max(0,Math.log(h)/Math.log(2)-3|0),m=h>>>g,v=c.width>>>g,b=c.height>>>g;r.clearRect(0,0,s.width,s.height),r.drawImage(c,0,0,v,b);var S=r.getImageData(0,0,v,b);return n(S.data,v,b,m,l),r.putImageData(S,0,0),t.clearRect(0,0,d,u),t.drawImage(s,0,0,v,b,p,f,1.01*d,u),t}e.default=d},function(t,e,i){"use strict";i.r(e);var s=i(140),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(415),r=i(34),o=i(31);function n(){this.type="soft"}n.prototype.generateDOM=function(t,e,i,n,a,h){this.mask=r.default.createElement("div",{class:"mask vis","data-page":this.firstPageNum+1+"-"+(this.secondPageNum+1)}),this.firstPage=r.default.createElement("div",{},this.mask),this.contentObject1=new s.default(this.firstPage,this.firstPageNum,a,h),this.reflexContainer=r.default.createElement("div",{class:"reflex-container2 z2"},this.mask),(this.bookState.isFirstPage(this.firstPageNum)||this.bookState.isLastSheet(this.firstPageNum))&&(this.reflexMask=r.default.createElement("div",{class:"inner-reflex-mask"},this.reflexContainer)),this.bookState.singleMode&&(this.reflexMask=r.default.createElement("div",{},this.reflexContainer)),this.innerReflex=r.default.createElement("div",{class:"inner-reflex"},this.reflexMask||this.reflexContainer),this.secondPage=r.default.createElement("div",{},this.mask),this.contentObject2=new s.default(this.secondPage,this.secondPageNum,a,h),this.flipGradientT=r.default.createElement("div",{class:"flip-grad"},this.firstPage),this.flipGradientB=r.default.createElement("div",{class:"flip-grad"},this.secondPage),this.setLayer(i),this.firstPageGradient="",this.secondPageGradient="",this.bookState.singleMode;var l=0;if(this.contentObject1.data&&!this.contentObject1.data.isReverseSide&&(this.firstPageGradient=Object(o.getStore)().getters["pages/pageGradient"](this.contentObject1.data.id),this.bookState.singleMode)){l=this.contentObject1.data.wide&&"left"===this.contentObject1.data.side?0:1;var c=Object(o.getStore)().getters["pages/pageIndexById"](this.contentObject1.data.id)+l,d=Object(o.getStore)().getters["pages/pageIdByIndexWide"](c);this.secondPageGradient=Object(o.getStore)().getters["pages/pageGradient"](d),this.secondPage.style["will-change"]="transform"}if(this.contentObject2.data&&!this.contentObject2.data.isReverseSide&&(this.secondPageGradient=Object(o.getStore)().getters["pages/pageGradient"](this.contentObject2.data.id),this.bookState.singleMode)){l=this.contentObject2.data.wide&&"right"===this.contentObject2.data.side?0:1;var u=Object(o.getStore)().getters["pages/pageIndexById"](this.contentObject2.data.id)+l,p=Object(o.getStore)().getters["pages/pageIdByIndexWide"](u);this.firstPageGradient=Object(o.getStore)().getters["pages/pageGradient"](p),this.firstPage.style["will-change"]="transform"}if(!this.firstPageGradient&&this.secondPageGradient&&(this.firstPageGradient=this.secondPageGradient),!this.secondPageGradient&&this.firstPageGradient&&(this.secondPageGradient=this.firstPageGradient),e?this.setRight():this.setLeft(),n){var f=document.getElementById("reflex-container"),g=f.nextSibling,m=f.parentNode;g?m.insertBefore(this.mask,g):m.appendChild(this.mask),f=null}else t.appendChild(this.mask)},n.prototype.setLeft=function(){r.default.removeClass(this.mask,"mR"),this.bookState.singleMode&&(this.bookState.rtl?r.default.addClass(this.reflexMask,"inner-reflex-mask"):r.default.removeClass(this.reflexMask,"inner-reflex-mask"));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-last":" 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},n.prototype.setRight=function(){r.default.addClass(this.mask,"mR"),this.bookState.singleMode&&(this.bookState.rtl?r.default.removeClass(this.reflexMask,"inner-reflex-mask"):r.default.addClass(this.reflexMask,"inner-reflex-mask"));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-page break":this.bookState.isFirstPage(this.firstPageNum)?" right-page reflex-first":" reflex-right right-page"),this.flipGradient=this.flipGradientB,this.frontPage=this.firstPage,this.reversePage=this.secondPage,this},n.prototype.setLayer=function(t){return r.default.removeClass(this.mask,"layer"+this.layer),this.layer=t,r.default.addClass(this.mask,"layer"+t),this},n.prototype.destroy=function(){this.contentObject1.destroy(),void 0!==this.contentObject1.vm&&(this.contentObject1.vm.$destroy(),this.contentObject1.vm=null,delete this.contentObject1.vm),this.contentObject2.destroy(),void 0!==this.contentObject2.vm&&(this.contentObject2.vm.$destroy(),this.contentObject2.vm=null,delete this.contentObject2.vm),r.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=n},function(t,e,i){"use strict";function s(t){return(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})(t)}i.r(e);var r=[],o=[],n={_version:"3.0.0-alpha.3",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var i=this;setTimeout((function(){e(i[t])}),0)},addTest:function(t,e,i){o.push({name:t,fn:e,options:i})},addAsyncTest:function(t){o.push({name:null,fn:t})}},a=function(){};function h(t,e){return s(t)===e}function l(){var t,e,i,s,n,l;for(var c in o){if(t=[],(e=o[c]).name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(i=0;i',t,""].join(""),l.id=h,(d.fake?d:l).innerHTML+=r,d.appendChild(l),d.fake&&(d.style.background="",d.style.overflow="hidden",a=c.style.overflow,c.style.overflow="hidden",c.appendChild(d)),o=e(l,t),d.fake?(d.parentNode.removeChild(d),c.style.overflow=a,c.offsetHeight):l.parentNode.removeChild(l),!!o}n.testStyles=w;function y(t,e){return!!~(""+t).indexOf(e)}function k(t,e){var i=t.length;if("CSS"in window&&"supports"in window.CSS){for(;i--;)if(window.CSS.supports(p(t[i]),e))return!0;return!1}if("CSSSupportsRule"in window){for(var s=[];i--;)s.push("("+p(t[i])+":"+e+")");return w("@supports ("+(s=s.join(" or "))+") { #modernizr { position: absolute; } }",(function(t){return"absolute"==getComputedStyle(t,null).position}))}}function P(t,e){return function(){return t.apply(e,arguments)}}function x(t,e,i){var s;for(var r in t)if(t[r]in e)return!1===i?t[r]:h(s=e[t[r]],"function")?P(s,i||e):s;return!1}var z={elem:b("modernizr")};a._q.push((function(){delete z.elem}));var $={style:z.elem.style};function C(t,e,i,s){if(s=!h(s,"undefined")&&s,!h(i,"undefined")){var r=k(t,i);if(!h(r,"undefined"))return r}var o,n,a,l,c;function d(){o&&(delete $.style,delete $.modElem)}for($.style||(o=!0,$.modElem=b("modernizr"),$.style=$.modElem.style),a=t.length,n=0;n'}})},function(t,e,i){"use strict";i.r(e);var s=i(156),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(427);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){i(0).register({gallery:{width:51,height:51,viewBox:"0 0 51 51",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(159),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(429);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){i(0).register({gif:{width:51,height:51,viewBox:"0 0 51 51",data:''}})},function(t,e,i){i(0).register({replay:{width:16,height:16,viewBox:"0 0 70 70",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(162),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(431);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(742),r=i(165),o=i(1),n=Object(o.default)(r.default,s.render,s.staticRenderFns,!1,null,null,null);n.options.__file="src/components/content/video/youtube/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(432);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var s,r,o=i(167),n=(i(757),i(1)),a=Object(n.default)(o.default,s,r,!1,null,null,null);a.options.__file="src/components/content/video/vimeo/index.vue",e.default=a.exports},,function(t,e,i){"use strict";i.r(e);var s=i(169),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(759),r=i(170),o=i(1),n=Object(o.default)(r.default,s.render,s.staticRenderFns,!1,null,null,null);n.options.__file="src/components/content/video/wistia/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(433);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){i(0).register({video:{width:50,height:50,viewBox:"0 0 50 50",data:''}})},function(t,e,i){i(0).register({error:{width:16,height:16,viewBox:"0 0 128 128",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(172),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(435);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(175),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},,function(t,e,i){i(0).register({"book-prev":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){i(0).register({"book-next":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(177),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(770),r=i(178),o=(i(771),i(1)),n=Object(o.default)(r.default,s.render,s.staticRenderFns,!1,null,"42dda8e8",null);n.options.__file="src/components/common/slide-book/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(439);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(180),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(773),r=i(181),o=(i(774),i(1)),n=Object(o.default)(r.default,s.render,s.staticRenderFns,!1,null,"3832a65e",null);n.options.__file="src/components/desktop/logo/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(440);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(183),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(776),r=i(184),o=(i(777),i(1)),n=Object(o.default)(r.default,s.render,s.staticRenderFns,!1,null,"54040386",null);n.options.__file="src/components/common/nav-buttons/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(442);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(186),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(779),r=i(187),o=(i(780),i(1)),n=Object(o.default)(r.default,s.render,s.staticRenderFns,!1,null,"6d66682b",null);n.options.__file="src/components/desktop/slide-nav-buttons/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(445);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(189),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(782),r=i(190),o=(i(785),i(1)),n=Object(o.default)(r.default,s.render,s.staticRenderFns,!1,null,"dde720a0",null);n.options.__file="src/components/desktop/zoom-panel/index.vue",e.default=n.exports},function(t,e,i){"use strict";i.r(e);var s=i(446);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){i(0).register({text:{width:16,height:16,viewBox:"0 0 30 30",data:''}})},function(t,e,i){i(0).register({drag:{width:16,height:16,viewBox:"0 0 100 100",data:''}})},function(t,e,i){"use strict";i.r(e);var s=i(192),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},function(t,e,i){"use strict";i.r(e);var s=i(193),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(462);i.d(e,"render",(function(){return s.render})),i.d(e,"staticRenderFns",(function(){return s.staticRenderFns}))},function(t,e,i){"use strict";i.r(e);var s=i(229),r=i.n(s);for(var o in s)"default"!==o&&function(t){i.d(e,t,(function(){return s[t]}))}(o);e.default=r.a}])]);