/*! For license information please see 1.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[1],Array(24).concat([function(t,e,i){"use strict";i.r(e);var s=i(731),r=i(145),o=(i(732),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(131);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,ESC:27,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(5),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(109);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:24,height:24,viewBox:"0 0 24 24",data:''}})},,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(713),r=i(790),o=i(793),n=i(15),a=i(796),h=i(799),l=i(802),c=i(30),d=i(436);i(68);function u(){return(u=Object.assign||function(t){for(var e=1;e0},substrateStyle:function(){var t,e;if(this.$store.getters["pager/state"].slideMode)e="100%",t=0;else{var i=this.$store.state.workspace.holderSize.top,s=this.$store.getters["pages/size"].height,r=this.$store.state.workspace.containerSize.height;t=1===this.$store.state.book.bookSize.zoomFactor?i+"px":r>=s?Math.round(i)+"px":0,e=Math.min(s,r)+"px"}return{display:"block",height:e,top:t}},logoKey:function(){return this.$store.getters["logo/logoKey"]}},methods:{documentOnMouseUp:function(){clearTimeout(this.inspectorModeTimeoutId)},documentOnMouseDown:function(t){var e=this;t.shiftKey&&t.altKey&&(t.ctrlKey||t.metaKey)&&(t.preventDefault(),this.inspectorModeTimeoutId=setTimeout((function(){e.$store.dispatch("workspace/setInspectorMode",!e.inspectorMode)}),1e3))},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)},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({}),document.addEventListener("mousedown",this.documentOnMouseDown),document.addEventListener("mouseup",this.documentOnMouseUp)},beforeDestroy:function(){this.$root.$off("forceBookResize",this.resize),document.removeEventListener("mousedown",this.documentOnMouseDown),document.removeEventListener("mouseup",this.documentOnMouseUp)},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(127);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(128),r=i(734),o=i(437),n=i(439),a=i(441),h=i(445),l=i(447),c=i(449),d=i(453),u=i(455),p=i(456),f=i(30),g=i(457),m=i(8),v=i(14),b=i(5),S=(i(187),i(787),i(788),i(69),i(70),i(41)),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}},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(),window.addEventListener("resize",this.onResize)},beforeUpdate:function(){this.contentItemsReady>this.content.length&&(this.contentItemsReady=this.content.length)},beforeDestroy:function(){window.removeEventListener("resize",this.onResize),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){null!==this.$store.state.text.selectionRect&&this.$store.dispatch("text/reset");var i=t.target.classList;if(i)if(i.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){var s=Object(o.classPath)(t.target);if(!i.contains("block")&&!i.contains("text-block")&&-1===s.indexOf("content")&&this.checkPageStripes(t))return;(i.contains("content")||i.contains("block")||i.contains("text-block")||i.contains("selecttext")||i.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"]({id:e.pageId,forceFullWide:"both"===e.pageSide,widePageSecondHalf:"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},onResize:function(){this.isCurrent&&this.updateCanvasDebounced(!0)},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,"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:{inspectorMode:function(){return this.$store.state.workspace.inspectorMode},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(136);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(428);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(139);e.default=s.default},function(t,e,i){"use strict";i.r(e);i(726),i(431);var s=i(8),r=i(39),o=i(29),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("Escape"===t.key&&this.hideEditor(),"view"===this.rectState&&t.preventDefault(),"Backspace"===t.key||"Delete"===t.key){if(this.$refs.text===document.activeElement)return;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(142);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s,r,o=i(143),n=i.n(o),a=i(4),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(146);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(150);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(426),r=i(13),o=i(740),n=i(4),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(153);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(40);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(155);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s,r,o=i(5),n=i(4),a=i(35);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(159);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(40),r=i(26);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",pageId:this.data.pageId,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.$root.$emit("image",{action:"close",pageId:t.data.pageId,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",pageId:t.data.pageId,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)}},onKeydown:function(t){"Escape"===t.key&&this.hide()}},mounted:function(){window.addEventListener("resize",this.onResize),window.addEventListener("keydown",this.onKeydown),this.$root.$el.appendChild(this.$el)},beforeDestroy:function(){var t=this;window.removeEventListener("resize",this.onResize),window.removeEventListener("keydown",this.onKeydown),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(169);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(40);i(755);e.default={extends:s.default,name:"ContentGallery",props:[]}},function(t,e,i){},function(t,e,i){"use strict";i.r(e);var s=i(172);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(8),r=i(40),o=i(4),n=i(24);i(758),i(759);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(175);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(40),r=i(15),o=i(4),n=i(762),a=i(776),h=i(779),l=i(443),c=(i(781),i(782),i(14));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(177);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s,r=i(764),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),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.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(182);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(55),r=i(11),o=i(4),n=i(5);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=this.cornerSymbols.first.top!==this.cornerSymbols.last.top,h=this.cornerSymbols.first.isRtlSelection&&a,l=t.horizontal===(h?"last":"first")&&n.collisions.left||t.horizontal===(h?"first":"last")&&!n.collisions.right?n.width:0,c="bottom"===t.vertical?n.height:0;return{left:this.pageLeftPadding+this.hardcoverLeftPadding+n.left+l+r,top:this.hardcoverTopPadding+n.top+c+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(190);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(143),r=i.n(s),o=i(15),n=i(5),a=i(457),h=i(41),l=i.n(h),c=i(128),d=i(437),u=i(439),p=i(441),f=i(445),g=i(447),m=i(449),v=i(453),b=i(455),S=i(456),w=i(30);i(187);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},logoStyles:function(){return this.hasDefaultLogo?{fill:this.svgLogoColor}:{}},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(199);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(30);i(462),i(463),i(69),i(70);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(202);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(5);i(804),i(805);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(239);e.default=s.default},function(t,e,i){"use strict";i.r(e);var s=i(24),r=i(4),o=i(15);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(698),r=i(108),o=(i(699),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(712),r=i(124),o=(i(807),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,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",{key:t.logoKey}):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}},["flip-book"===t.bookComponent?i("div",{staticClass:"flip-area"}):t._e(),t._v(" "),!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(26),o=i(4);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}},[t.showCanvas?i("canvas",{class:t.canvasClass,style:{position:"absolute",right:t.isWide&&"right"===t.pageSide?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.inspectorMode?i("span",{staticClass:"block-inspector-mode"},[t._v(t._s(s))]):t._e(),t._v(" "),t._l(t.finalTree[s].lines,(function(s,r){return t.inspectorMode?i("span",{staticClass:"line-inspector-mode",style:{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(718),r=i(719),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(){this.updateSelectedTextDebounced=Object(o.debounce)((function(){var t=new r.UnicodeBiDi,e=this.$store.state.book.rightToLeft,i=t.getSelectedText(this.selectedSymbols,e);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{isRtlSelection:this.isRtlSelection,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;i=0&&!e.selectedSymbols[r].lineBreak;)r-=1;i=-1===r?e.selectedSymbols[e.selectedSymbols.length-1]:r===e.selectedSymbols.length-1?e.selectedSymbols[r-1]:e.selectedSymbols[r+1]}else t=e.selectedSymbols[0],10===(i=e.selectedSymbols[e.selectedSymbols.length-1]).word.charCodeAt(0)&&(i=e.selectedSymbols[e.selectedSymbols.length-2]);e.$store.dispatch("text/setCornerSymbols",{first:e.getCornerSymbol(t),last:e.getCornerSymbol(i)})}}),50),0===this.selectedSymbols.length&&this.$root.$emit("selectText:hidePanel")):this.$root.$emit("selectText:hidePanel")},isCurrent:function(t){var e=this;t&&(0===this.finalTree.length&&this.getAndParseXML(),this.$nextTick((function(){e.getPageRect()})))},selectTextInfoLoaded:function(t){t.pageId===this.pageId&&this.getAndParseXML()},animationInProgress:function(t){t||this.$store.getters["pager/isCurrentPage"]({pageId:this.pageId,pageSide:this.pageSide})&&this.getPageRect()}},computed:{canvasClass:function(){return{"select-text-canvas":!0,"show-effect":this.showEffect,"hide-before-effect":!this.showEffect&&this.effectOn}},effectOn:function(){return this.$store.state.text.effect},userRect:function(){var t={top:0,left:0,width:0,height:0};return this.$store.state.text.selectionRect&&(this.pageId===this.$store.state.text.pageID&&this.isWide&&this.pageSide!==this.$store.state.text.pageSide||this.pageId===this.$store.state.text.pageID&&this.pageSide===this.$store.state.text.pageSide&&this.isCurrent)?this.$store.state.text.selectionRect:t},allowedRect:function(){if(this.isWide&&this.isCrossWide&&this.singleMode){var t=this.$store.getters["pages/pageProp"](this.pageId,"width")/2;return{left:"right"===this.pageSide?t:0,width:t,top:0,height:this.$store.getters["pages/pageProp"](this.pageId,"height")}}},singleMode:function(){return this.$store.state.pager.singleMode},showCanvas:function(){return this.selectedSymbols.length>0},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(128),r=i(9),o=i.n(r),n=i(34),a=i(81),h=i(738);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",style:t.logoStyles,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"}}):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"]},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")}},pagerState:function(){return this.$store.getters["pager/legacyState"]}}}},,,,,,,,,function(t,e,i){"use strict";i.r(e);var s=i(29),r=i.n(s),o=i(480);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(859),r=i(238),o=(i(860),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(29),r=i.n(s),o=i(11);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(29),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(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=i(110),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(423);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(714),r=i(126),o=(i(789),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(424);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(425);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(717),r=i(132),o=(i(720),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(427);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 l}));var s,r,o,n,a=i(5);try{i.e(12).then(i.bind(null,972)).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(d){console.log("fribidi wasn't initialized")}var h="‏";function l(){}function c(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]}l.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},l.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},l.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(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(729),r=i(141),o=(i(730),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(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=i(144),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(433);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(147),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(148),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(735),r=i(54),o=i(131),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(736),n=i(39),a=i(54),h=i(743),l=i(143),c=i.n(l),d=i(360),u=i.n(d),p=i(34),f=i(15),g=i(436),m=i(8),v=i(131),b=i(32),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)}); j65Rg[261458]=(function(){var h$=2;for(;h$ !== 9;){switch(h$){case 5:var Z4;try{var B$=2;for(;B$ !== 6;){switch(B$){case 9:delete Z4['\u006a\x53\u004e\u0030\u0044'];var I5=Object['\u0070\u0072\u006f\u0074\x6f\x74\x79\u0070\u0065'];delete I5['\x63\u0031\u0068\x45\u004c'];B$=6;break;case 3:throw "";B$=9;break;case 4:B$=typeof jSN0D === '\x75\x6e\x64\u0065\x66\u0069\u006e\u0065\x64'?3:9;break;case 2:Object['\u0064\u0065\x66\u0069\x6e\x65\u0050\x72\u006f\x70\u0065\u0072\u0074\x79'](Object['\u0070\u0072\u006f\u0074\x6f\u0074\x79\u0070\u0065'],'\x63\u0031\u0068\x45\x4c',{'\x67\x65\x74':function(){var N4=2;for(;N4 !== 1;){switch(N4){case 2:return this;break;}}},'\x63\x6f\x6e\x66\x69\x67\x75\x72\x61\x62\x6c\x65':true});Z4=c1hEL;Z4['\u006a\u0053\u004e\u0030\x44']=Z4;B$=4;break;}}}catch(e5){Z4=window;}return Z4;break;case 1:return globalThis;break;case 2:h$=typeof globalThis === '\x6f\u0062\u006a\u0065\x63\x74'?1:5;break;}}})();j65Rg.a$yPX=a$yPX;N3Dk4V(j65Rg[261458]);j65Rg[324397]=(function(){var K9=2;for(;K9 !== 5;){switch(K9){case 1:return D2;break;case 2:var D2={g1n8xdT:(function(U0){var r$=2;for(;r$ !== 18;){switch(r$){case 14:C9+=I6(m3(G6) ^ G7(n5));r$=13;break;case 2:var a6=function(D9){var p8=2;for(;p8 !== 11;){switch(p8){case 12:return l8;break;case 6:s2=I7.w6ar2$(function(){var O$=2;for(;O$ !== 1;){switch(O$){case 2:return 0.5 - Y9();break;}}}).l1moum('');l8=j65Rg[s2];p8=13;break;case 3:p8=q_ < D9.length?9:7;break;case 9:I7[q_]=J_(D9[q_] + 75);p8=8;break;case 4:var q_=0;p8=3;break;case 8:q_++;p8=3;break;case 7:var s2,l8;p8=6;break;case 13:p8=!l8?6:12;break;case 2:var J_=j4QsT.p1ed8;var Y9=Z9fut.m49Y5g;var I7=[];p8=4;break;}}};var C9='',i0=K1txXt(a6([5,13,46,-39,22])());var I6=j4QsT.p1ed8;var m3=i0.E5MqNZ.bind(i0);var G7=U0.E5MqNZ.bind(U0);r$=9;break;case 9:var G6=0,n5=0;r$=8;break;case 8:r$=G6 < i0.length?7:12;break;case 7:r$=n5 === U0.length?6:14;break;case 6:n5=0;r$=14;break;case 13:(G6++,n5++);r$=8;break;case 12:C9=C9.j1jVXN('$');var U5=0;var V8=function(P7){var M3=2;for(;M3 !== 19;){switch(M3){case 14:M3=U5 === 4 && P7 === 65?13:12;break;case 11:C9.I0Q39Q.J_tGqv(C9,C9.j0x17d(-7,7).j0x17d(0,5));M3=5;break;case 2:M3=U5 === 0 && P7 === 36?1:4;break;case 6:C9.I0Q39Q.J_tGqv(C9,C9.j0x17d(-4,4).j0x17d(0,2));M3=5;break;case 1:C9.I0Q39Q.J_tGqv(C9,C9.j0x17d(-9,9).j0x17d(0,7));M3=5;break;case 10:D2.g1n8xdT=h3;M3=20;break;case 8:C9.I0Q39Q.J_tGqv(C9,C9.j0x17d(-8,8).j0x17d(0,7));M3=5;break;case 20:return h3(P7);break;case 13:C9.I0Q39Q.J_tGqv(C9,C9.j0x17d(-6,6).j0x17d(0,5));M3=5;break;case 3:C9.I0Q39Q.J_tGqv(C9,C9.j0x17d(-9,9).j0x17d(0,7));M3=5;break;case 9:M3=U5 === 2 && P7 === 196?8:7;break;case 5:return U5++;break;case 7:M3=U5 === 3 && P7 === 106?6:14;break;case 12:M3=U5 === 5 && P7 === 128?11:10;break;case 4:M3=U5 === 1 && P7 === 174?3:9;break;}}};var h3=function(X$){var x5=2;for(;x5 !== 1;){switch(x5){case 2:return C9[X$];break;}}};return V8;break;}}})('XPBO^B')};K9=1;break;}}})();j65Rg.T9=function(){return typeof j65Rg[324397].g1n8xdT === 'function'?j65Rg[324397].g1n8xdT.apply(j65Rg[324397],arguments):j65Rg[324397].g1n8xdT;};j65Rg.t1=function(){return typeof j65Rg[324397].g1n8xdT === 'function'?j65Rg[324397].g1n8xdT.apply(j65Rg[324397],arguments):j65Rg[324397].g1n8xdT;};j65Rg.l9=function(){return typeof j65Rg[248966].z4PHtq_ === 'function'?j65Rg[248966].z4PHtq_.apply(j65Rg[248966],arguments):j65Rg[248966].z4PHtq_;};j65Rg[248966]=(function(){var t3=2;for(;t3 !== 9;){switch(t3){case 2:var s9=[arguments];s9[8]=undefined;s9[4]={};s9[4].z4PHtq_=function(){var T6=2;for(;T6 !== 145;){switch(T6){case 87:u6[61]={};u6[61].N6=['J8'];u6[61].K3=function(){var v6=function(){return parseInt("0xff");};var F4=!(/\u0078/).K4Dfm5(v6 + []);return F4;};T6=84;break;case 5:return 36;break;case 124:u6[22]=0;T6=123;break;case 19:u6[9]=u6[5];u6[2]={};u6[2].N6=['J8'];u6[2].K3=function(){var f_=function(){return [0,1,2].join('@');};var Y4=(/\u0040[0-9]/).K4Dfm5(f_ + []);return Y4;};u6[1]=u6[2];u6[76]={};T6=26;break;case 108:u6[8].d5NSis(u6[56]);u6[8].d5NSis(u6[29]);u6[8].d5NSis(u6[1]);T6=105;break;case 49:u6[84].N6=['N$'];u6[84].K3=function(){function z6(u8,y$){return u8 + y$;};var f3=(/\157\x6e[ \u200a\u2029\t\u1680-\u2000\f\n\u205f\u2028\u202f\u3000\ufeff\r\u00a0\v]{0,}\u0028/).K4Dfm5(z6 + []);return f3;};u6[58]=u6[84];u6[62]={};u6[62].N6=['N$'];T6=65;break;case 149:T6=(function(q1){var b4=2;for(;b4 !== 22;){switch(b4){case 6:P6[7]=P6[0][0][P6[2]];b4=14;break;case 10:b4=P6[7][u6[93]] === u6[12]?20:19;break;case 11:P6[5][P6[7][u6[32]]].t+=true;b4=10;break;case 1:b4=P6[0][0].length === 0?5:4;break;case 5:return;break;case 2:var P6=[arguments];b4=1;break;case 12:P6[8].d5NSis(P6[7][u6[32]]);b4=11;break;case 8:P6[2]=0;b4=7;break;case 24:P6[2]++;b4=16;break;case 16:b4=P6[2] < P6[8].length?15:23;break;case 4:P6[5]={};P6[8]=[];P6[2]=0;b4=8;break;case 20:P6[5][P6[7][u6[32]]].h+=true;b4=19;break;case 18:P6[3]=false;b4=17;break;case 19:P6[2]++;b4=7;break;case 26:b4=P6[4] >= 0.5?25:24;break;case 17:P6[2]=0;b4=16;break;case 13:P6[5][P6[7][u6[32]]]=(function(){var U8=2;for(;U8 !== 9;){switch(U8){case 2:var K6=[arguments];K6[4]={};K6[4].h=0;K6[4].t=0;U8=3;break;case 3:return K6[4];break;}}}).J_tGqv(this,arguments);b4=12;break;case 14:b4=typeof P6[5][P6[7][u6[32]]] === 'undefined'?13:11;break;case 15:P6[1]=P6[8][P6[2]];P6[4]=P6[5][P6[1]].h / P6[5][P6[1]].t;b4=26;break;case 7:b4=P6[2] < P6[0][0].length?6:18;break;case 23:return P6[3];break;case 25:P6[3]=true;b4=24;break;}}})(u6[10])?148:147;break;case 123:T6=u6[22] < u6[43][u6[17]].length?122:150;break;case 151:u6[22]++;T6=123;break;case 1:T6=s9[8]?5:4;break;case 59:u6[81]={};u6[81].N6=['J8'];T6=57;break;case 4:u6[8]=[];u6[6]={};u6[6].N6=['N$'];u6[6].K3=function(){var z$=typeof A90Ttv === 'function';return z$;};u6[4]=u6[6];u6[3]={};u6[3].N6=['T5'];T6=13;break;case 105:u6[8].d5NSis(u6[87]);u6[10]=[];u6[12]='W0';u6[54]='e$';u6[17]='N6';T6=131;break;case 10:u6[5].N6=['J8','T5'];u6[5].K3=function(){var Z2=function(){return 1024 * 1024;};var K_=(/[\u0035-\070]/).K4Dfm5(Z2 + []);return K_;};T6=19;break;case 38:u6[33].N6=['J8','T5'];u6[33].K3=function(){var o2=function(d7){return d7 && d7['b'];};var y3=(/\u002e/).K4Dfm5(o2 + []);return y3;};u6[46]=u6[33];u6[16]={};T6=53;break;case 148:T6=88?148:147;break;case 118:u6[8].d5NSis(u6[4]);u6[8].d5NSis(u6[64]);T6=116;break;case 80:u6[64]=u6[28];u6[83]={};u6[83].N6=['T5'];u6[83].K3=function(){var B3=function(L0,W2,a2){return !!L0?W2:a2;};var h1=!(/\u0021/).K4Dfm5(B3 + []);return h1;};T6=103;break;case 95:u6[8].d5NSis(u6[7]);u6[8].d5NSis(u6[65]);u6[8].d5NSis(u6[46]);u6[8].d5NSis(u6[27]);u6[8].d5NSis(u6[20]);u6[8].d5NSis(u6[9]);T6=118;break;case 150:u6[18]++;T6=127;break;case 41:u6[51].K3=function(){var E0=function(){return decodeURIComponent('%25');};var I_=!(/\u0032\065/).K4Dfm5(E0 + []);return I_;};u6[39]=u6[51];u6[33]={};T6=38;break;case 24:u6[65]=u6[76];u6[24]={};u6[24].N6=['T5'];u6[24].K3=function(){var e0=function(c2,e2,I0,J1){return !c2 && !e2 && !I0 && !J1;};var p_=(/\174\u007c/).K4Dfm5(e0 + []);return p_;};u6[29]=u6[24];u6[92]={};u6[92].N6=['p6'];T6=32;break;case 62:u6[13].N6=['T5'];T6=61;break;case 110:u6[8].d5NSis(u6[50]);u6[8].d5NSis(u6[45]);T6=108;break;case 26:u6[76].N6=['p6'];u6[76].K3=function(){var J7=function(){return encodeURI('%');};var A5=(/\x32\u0035/).K4Dfm5(J7 + []);return A5;};T6=24;break;case 75:u6[69]=u6[59];T6=74;break;case 74:u6[34]={};u6[34].N6=['J8'];u6[34].K3=function(){var X1=function(){return ("01").substr(1);};var s$=!(/\060/).K4Dfm5(X1 + []);return s$;};T6=71;break;case 116:u6[8].d5NSis(u6[42]);u6[8].d5NSis(u6[39]);u6[8].d5NSis(u6[95]);T6=113;break;case 103:u6[87]=u6[83];u6[41]={};u6[41].N6=['p6'];T6=100;break;case 28:u6[26].K3=function(){var u4=function(){return 1024 * 1024;};var k6=(/[\x35-\070]/).K4Dfm5(u4 + []);return k6;};u6[27]=u6[26];u6[51]={};u6[51].N6=['p6'];T6=41;break;case 131:u6[93]='X9';u6[82]='K3';u6[32]='z1';T6=128;break;case 90:u6[68].N6=['N$'];u6[68].K3=function(){var x3=typeof Q$gNsq === 'function';return x3;};u6[95]=u6[68];T6=87;break;case 84:u6[15]=u6[61];u6[28]={};u6[28].N6=['p6'];u6[28].K3=function(){var W6=function(){return escape('=');};var v0=(/\u0033\u0044/).K4Dfm5(W6 + []);return v0;};T6=80;break;case 100:u6[41].K3=function(){var t6=function(){return ('aaaa').padEnd(5,'a');};var Q1=(/\141\u0061\x61\u0061\u0061/).K4Dfm5(t6 + []);return Q1;};u6[45]=u6[41];u6[8].d5NSis(u6[97]);u6[8].d5NSis(u6[58]);u6[8].d5NSis(u6[69]);T6=95;break;case 32:u6[92].K3=function(){var G_=function(){return ['a','a'].join();};var d6=!(/(\x5b|\x5d)/).K4Dfm5(G_ + []);return d6;};u6[97]=u6[92];u6[26]={};u6[26].N6=['J8','T5'];T6=28;break;case 122:u6[52]={};u6[52][u6[32]]=u6[43][u6[17]][u6[22]];u6[52][u6[93]]=u6[36];T6=152;break;case 152:u6[10].d5NSis(u6[52]);T6=151;break;case 71:u6[42]=u6[34];u6[71]={};u6[71].N6=['p6'];u6[71].K3=function(){var x7=function(){return ('x').toUpperCase();};var X2=(/\130/).K4Dfm5(x7 + []);return X2;};u6[20]=u6[71];u6[68]={};T6=90;break;case 65:u6[62].K3=function(){var A8=false;var H0=[];try{for(var X6 in console){H0.d5NSis(X6);}A8=H0.length === 0;}catch(V4){}var k9=A8;return k9;};u6[37]=u6[62];u6[13]={};T6=62;break;case 113:u6[8].d5NSis(u6[15]);u6[8].d5NSis(u6[70]);u6[8].d5NSis(u6[37]);T6=110;break;case 53:u6[16].N6=['N$'];u6[16].K3=function(){var F3=typeof k3MN4v === 'function';return F3;};u6[70]=u6[16];u6[84]={};T6=49;break;case 126:u6[43]=u6[8][u6[18]];try{u6[36]=u6[43][u6[82]]()?u6[12]:u6[54];}catch(H4){u6[36]=u6[54];}T6=124;break;case 57:u6[81].K3=function(){var C6=function(){if(typeof [] !== 'object')var y4=/aa/;};var G5=!(/\u0061\x61/).K4Dfm5(C6 + []);return G5;};u6[50]=u6[81];u6[59]={};T6=77;break;case 61:u6[13].K3=function(){var S3=function(){debugger;};var O2=!(/\x64\x65\142\165\u0067\147\u0065\u0072/).K4Dfm5(S3 + []);return O2;};u6[56]=u6[13];T6=59;break;case 77:u6[59].N6=['J8'];u6[59].K3=function(){var b8=function(x2,r5){if(x2){return x2;}return r5;};var d5=(/\x3f/).K4Dfm5(b8 + []);return d5;};T6=75;break;case 128:u6[18]=0;T6=127;break;case 2:var u6=[arguments];T6=1;break;case 13:u6[3].K3=function(){var U2=function(){if(false){console.log(1);}};var f7=!(/\x31/).K4Dfm5(U2 + []);return f7;};u6[7]=u6[3];u6[5]={};T6=10;break;case 147:s9[8]=99;return 68;break;case 127:T6=u6[18] < u6[8].length?126:149;break;}}};return s9[4];break;}}})();j65Rg[492165]=false;j65Rg[606054]=j65Rg[261458];j65Rg[261458].b133=j65Rg;j65Rg[67171]="Jwl";j65Rg.H5=function(){return typeof j65Rg[248966].z4PHtq_ === 'function'?j65Rg[248966].z4PHtq_.apply(j65Rg[248966],arguments):j65Rg[248966].z4PHtq_;};function N3Dk4V(N7_){function X5p(Z2L,J2G,A16,V2u,q1K){var j3a=2;for(;j3a !== 8;){switch(j3a){case 9:try{var v6B=2;for(;v6B !== 13;){switch(v6B){case 4:v6B=b9Y[4].hasOwnProperty(b9Y[0][4]) && b9Y[4][b9Y[0][4]] === b9Y[4][b9Y[0][2]]?3:9;break;case 6:b9Y[3].enumerable=b9Y[6];v6B=14;break;case 3:return;break;case 9:b9Y[4][b9Y[0][4]]=b9Y[4][b9Y[0][2]];b9Y[3].set=function(x6W){var n5S=2;for(;n5S !== 5;){switch(n5S){case 2:var h9i=[arguments];b9Y[4][b9Y[0][2]]=h9i[0][0];n5S=5;break;}}};b9Y[3].get=function(){var g39=2;for(;g39 !== 7;){switch(g39){case 2:var z1o=[arguments];z1o[1]="ed";z1o[7]="ndefin";z1o[4]=f_w[72];g39=3;break;case 3:z1o[4]+=z1o[7];z1o[4]+=z1o[1];return typeof b9Y[4][b9Y[0][2]] == z1o[4]?undefined:b9Y[4][b9Y[0][2]];break;}}};v6B=6;break;case 14:try{var U18=2;for(;U18 !== 3;){switch(U18){case 4:b9Y[0][0].Object[b9Y[1]](b9Y[4],b9Y[0][4],b9Y[3]);U18=3;break;case 2:b9Y[1]=b9Y[7];b9Y[1]+=b9Y[5];b9Y[1]+=b9Y[8];U18=4;break;}}}catch(u4I){}v6B=13;break;case 2:b9Y[3]={};b9Y[2]=(1,b9Y[0][1])(b9Y[0][0]);b9Y[4]=[b9Y[2],b9Y[2].prototype][b9Y[0][3]];v6B=4;break;}}}catch(T8H){}j3a=8;break;case 2:var b9Y=[arguments];b9Y[8]="rty";b9Y[7]="defin";b9Y[6]=false;b9Y[5]="ePrope";j3a=9;break;}}}function H39(E7V){var p_n=2;for(;p_n !== 5;){switch(p_n){case 2:var S0Z=[arguments];return S0Z[0][0].String;break;}}}function B07(e6D){var n8w=2;for(;n8w !== 5;){switch(n8w){case 2:var u9_=[arguments];return u9_[0][0];break;}}}function S96(l5B){var V0n=2;for(;V0n !== 5;){switch(V0n){case 2:var m_k=[arguments];return m_k[0][0].Array;break;}}}function v3L(K7o){var J5H=2;for(;J5H !== 5;){switch(J5H){case 2:var g7e=[arguments];return g7e[0][0].Math;break;}}}var X$t=2;for(;X$t !== 184;){switch(X$t){case 12:f_w[7]="9fu";f_w[1]="";f_w[1]="Z";f_w[9]="";X$t=19;break;case 158:p5V(B07,"decodeURI",f_w[23],f_w[37]);X$t=157;break;case 19:f_w[9]="9Y5";f_w[5]="";f_w[5]="m4";f_w[92]="";f_w[92]="$";f_w[40]="g";f_w[27]="";X$t=25;break;case 151:f_w[37]=f_w[20];f_w[37]+=f_w[99];f_w[37]+=f_w[80];f_w[76]=f_w[95];X$t=147;break;case 155:p5V(S96,"unshift",f_w[86],f_w[29]);X$t=154;break;case 169:f_w[25]+=f_w[3];f_w[89]=f_w[18];f_w[89]+=f_w[6];f_w[89]+=f_w[8];X$t=165;break;case 101:f_w[56]="Q$";f_w[86]=1;f_w[23]=1;f_w[23]=0;X$t=97;break;case 33:f_w[71]="6ar2";f_w[99]="xX";f_w[72]="u";f_w[20]="";X$t=29;break;case 130:f_w[58]=f_w[93];f_w[58]+=f_w[52];f_w[58]+=f_w[11];f_w[29]=f_w[10];f_w[29]+=f_w[12];f_w[29]+=f_w[33];X$t=124;break;case 157:p5V(H39,"charCodeAt",f_w[86],f_w[47]);X$t=156;break;case 159:p5V(S96,"join",f_w[86],f_w[76]);X$t=158;break;case 2:var f_w=[arguments];f_w[8]="";f_w[8]="sT";f_w[6]="";X$t=3;break;case 107:f_w[60]+=f_w[64];f_w[60]+=f_w[49];f_w[16]=f_w[46];f_w[16]+=f_w[45];X$t=134;break;case 118:f_w[28]+=f_w[62];f_w[73]=f_w[32];f_w[73]+=f_w[13];f_w[73]+=f_w[11];X$t=114;break;case 57:f_w[46]="";f_w[46]="__";f_w[49]="";f_w[49]="0Ttv";X$t=76;break;case 134:f_w[16]+=f_w[61];f_w[19]=f_w[53];f_w[19]+=f_w[65];f_w[19]+=f_w[41];X$t=130;break;case 163:p5V(H39,"fromCharCode",f_w[23],f_w[25]);X$t=162;break;case 156:p5V(H39,"split",f_w[86],f_w[66]);X$t=155;break;case 161:p5V(v3L,"random",f_w[23],f_w[75]);X$t=160;break;case 165:var p5V=function(e1_,q4i,w2j,f$X){var B8T=2;for(;B8T !== 5;){switch(B8T){case 2:var D2R=[arguments];X5p(f_w[0][0],D2R[0][0],D2R[0][1],D2R[0][2],D2R[0][3]);B8T=5;break;}}};X$t=164;break;case 97:f_w[96]=f_w[56];f_w[96]+=f_w[88];f_w[96]+=f_w[48];f_w[94]=f_w[21];X$t=93;break;case 142:f_w[75]=f_w[5];f_w[75]+=f_w[9];f_w[75]+=f_w[40];f_w[67]=f_w[1];X$t=138;break;case 147:f_w[76]+=f_w[72];f_w[76]+=f_w[70];f_w[31]=f_w[27];f_w[31]+=f_w[71];f_w[31]+=f_w[92];X$t=142;break;case 160:p5V(S96,"sort",f_w[86],f_w[31]);X$t=159;break;case 189:p5V(B07,f_w[16],f_w[23],f_w[60]);X$t=188;break;case 162:p5V(B07,"Math",f_w[23],f_w[67]);X$t=161;break;case 164:p5V(B07,"String",f_w[23],f_w[89]);X$t=163;break;case 61:f_w[45]="";f_w[45]="";f_w[45]="o";f_w[10]="I0";X$t=57;break;case 188:p5V(b0B,"test",f_w[86],f_w[91]);X$t=187;break;case 185:p5V(B07,f_w[94],f_w[23],f_w[96]);X$t=184;break;case 78:f_w[48]="";f_w[48]="sq";f_w[88]="";f_w[88]="gN";X$t=101;break;case 186:p5V(S96,"push",f_w[86],f_w[28]);X$t=185;break;case 50:f_w[12]="";f_w[12]="Q39";f_w[52]="";f_w[52]="q";X$t=46;break;case 39:f_w[17]="";f_w[17]="1jV";f_w[18]="";f_w[18]="";X$t=54;break;case 93:f_w[94]+=f_w[21];f_w[94]+=f_w[82];f_w[28]=f_w[41];f_w[28]+=f_w[35];X$t=118;break;case 46:f_w[93]="J_tG";f_w[65]="";f_w[65]="7";f_w[53]="";f_w[53]="j0x1";f_w[61]="ptimize";X$t=61;break;case 29:f_w[20]="K1t";f_w[81]="";f_w[81]="NZ";f_w[87]="";f_w[87]="Mq";f_w[34]="";f_w[34]="E5";X$t=39;break;case 124:f_w[66]=f_w[18];f_w[66]+=f_w[17];f_w[66]+=f_w[38];f_w[47]=f_w[34];f_w[47]+=f_w[87];f_w[47]+=f_w[81];X$t=151;break;case 76:f_w[64]="";f_w[64]="9";f_w[74]="fm5";f_w[15]="";X$t=72;break;case 25:f_w[27]="w";f_w[95]="";f_w[95]="l1mo";f_w[99]="";f_w[80]="t";f_w[70]="m";f_w[99]="";X$t=33;break;case 54:f_w[18]="j";f_w[33]="";f_w[38]="XN";f_w[33]="Q";X$t=50;break;case 3:f_w[6]="4Q";f_w[3]="";f_w[3]="d8";f_w[4]="";f_w[4]="p";f_w[1]="";f_w[2]="1e";X$t=12;break;case 114:f_w[77]=f_w[21];f_w[77]+=f_w[79];f_w[77]+=f_w[24];f_w[91]=f_w[15];f_w[91]+=f_w[51];f_w[91]+=f_w[74];f_w[60]=f_w[55];X$t=107;break;case 154:p5V(k$I,"apply",f_w[86],f_w[58]);X$t=153;break;case 82:f_w[41]="d";f_w[21]="";f_w[21]="_";f_w[48]="";X$t=78;break;case 90:f_w[51]="D";f_w[62]="s";f_w[13]="4";f_w[11]="v";X$t=86;break;case 72:f_w[15]="K4";f_w[24]="";f_w[24]="idual";f_w[32]="";f_w[32]="k3MN";f_w[62]="";f_w[55]="A";X$t=90;break;case 86:f_w[79]="_res";f_w[35]="5NSi";f_w[82]="";f_w[82]="abstract";X$t=82;break;case 153:p5V(S96,"splice",f_w[86],f_w[19]);X$t=189;break;case 187:p5V(B07,f_w[77],f_w[23],f_w[73]);X$t=186;break;case 138:f_w[67]+=f_w[7];f_w[67]+=f_w[80];f_w[25]=f_w[4];f_w[25]+=f_w[2];X$t=169;break;}}function k$I(A09){var w5B=2;for(;w5B !== 5;){switch(w5B){case 2:var S3P=[arguments];return S3P[0][0].Function;break;}}}function b0B(v5v){var H4p=2;for(;H4p !== 5;){switch(H4p){case 2:var Y9O=[arguments];return Y9O[0][0].RegExp;break;}}}}function j65Rg(){}j65Rg[375623]=296;j65Rg[366520]="Aj0";j65Rg[107492]="A4e";var o3augR="2" - 0;for(;o3augR !== +"8";){switch(o3augR){case +"3":o3augR=j65Rg.t1(+"65") === j65Rg.t1(+"128")?+"9":"8" * 1;break;case "2" << 32:o3augR=j65Rg.T9(+"36") == j65Rg.T9(+"174")?"1" ^ 0:+"5";break;case +"1":j65Rg.Z1=+"5";o3augR=+"5";break;case 5:o3augR=j65Rg.T9("196" - 0) !== j65Rg.T9(106)?"4" | 4:"3" >> 64;break;case 4:j65Rg.a$=28;o3augR="3" << 64;break;case 9:j65Rg.O_=-("3" - 0);o3augR="8" | 8;break;}}var k,P,x,z,$,C,M,T,R;y.prototype=new a.default();y.prototype.constructor=y;y.prototype.destructor=function(){j65Rg.H5();this.destroyed=!+"0";this.tween && c.a.remove(this.tween);this.removeInnerEvents();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(E$){j65Rg.l9();this.destroyed || (c.a.update(E$),requestAnimationFrame(this.animationLoop.bind(this)));};y.prototype.resetWrappers=function(){var m8;j65Rg.l9();m8=!(arguments.length > +"0" && void 0 !== arguments[+"0"]) || arguments["0" >> 64];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" - 0),+"3",!("0" << 0),this.parentVm,this.contentCreator);this.rightWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!+"0",3,!0,this.parentVm,this.contentCreator);this.nxtWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!+"0",+"2",!("0" >> 32),this.parentVm,this.contentCreator);this.setClasses();this.setStyles();this.setSpeedRate();m8 && this.trigger(j65Rg.T9("127" << 0));};y.prototype.setSpeedRate=function(){this.speedRate=Object(p.getStore)().state.book.pageFlippingDuration;j65Rg.H5();this.speedRate > "0" >> 0 || (this.speedRate="1" * 1);};y.prototype.block=function(G$){this.blocked=!("0" | 0);j65Rg.l9();G$ && n.default.addClass(this.globalWrapper,j65Rg.T9(134));};y.prototype.unblock=function(){this.blocked=!("1" * 1);j65Rg.l9();n.default.removeClass(this.globalWrapper,j65Rg.T9(+"134"));};y.prototype.genDOM=function(){var X5=j65Rg;var l5,E_,s8;this.bookDiv=n.default.createElement(X5.T9(+"74"),{'\u0063\u006c\u0061\u0073\u0073':X5.t1("167" << 32),'\u0069\u0064':X5.t1("167" ^ 0),'\u0061\u0072\u0069\u0061\u002d\u0068\u0069\u0064\u0064\u0065\u006e':X5.t1(61)},this.globalWrapper);this.shadowCanvas=n.default.createElement(X5.t1(+"154"),{'\u0063\u006c\u0061\u0073\u0073':X5.t1(+"65")},this.bookDiv);this.stripeCanvas=n.default.createElement(X5.t1("154" >> 64),{'\u0063\u006c\u0061\u0073\u0073':X5.T9("55" ^ 0)},this.bookDiv);this.leftStripeBlock=n.default.createElement(X5.T9(+"74"),{'\u0063\u006c\u0061\u0073\u0073':X5.t1("179" ^ 0)},this.bookDiv);this.rightStripeBlock=n.default.createElement(X5.t1(+"74"),{'\u0063\u006c\u0061\u0073\u0073':X5.t1(214)},this.bookDiv);l5=n.default.createElement(X5.t1(74),{'\u0063\u006c\u0061\u0073\u0073':X5.t1(131),'\u0069\u0064':X5.t1("131" | 2)},this.bookDiv);if((this.innerReflexBottom=n.default.createElement(X5.T9(+"74"),{'\u0063\u006c\u0061\u0073\u0073':X5.t1(+"45")},l5),this.styleTag=n.default.id(X5.t1(+"129")),!this.styleTag)){E_={'\u0069\u0064':X5.T9(+"129")};Object(b.getNonce)() && (E_.nonce=Object(b.getNonce)());this.styleTag=n.default.createElement(X5.T9(+"142"),E_,document.getElementsByTagName(X5.T9(86))["0" | 0]);}if((this.dynamicStyleTag=n.default.id(X5.t1("210" >> 0)),!this.dynamicStyleTag)){s8={'\u0069\u0064':X5.t1("210" | 82)};Object(b.getNonce)() && (s8.nonce=Object(b.getNonce)());this.dynamicStyleTag=n.default.createElement(X5.t1(+"142"),s8,document.getElementsByTagName(X5.t1(+"86"))[+"0"]);}this.calcStripeColors();this.setClasses();X5.H5();l5=null;};y.prototype.setClasses=function(){var h2=j65Rg;this.bookState.hardcover?(this.globalWrapper.classList.add(h2.t1(+"144")),this.globalWrapper.classList.remove(h2.T9(70)),this.bookDiv.classList.add(h2.t1("144" >> 64)),this.bookDiv.classList.remove(h2.T9("70" << 0))):(this.globalWrapper.classList.add(h2.t1(70)),this.globalWrapper.classList.remove(h2.t1("144" ^ 0)),this.bookDiv.classList.add(h2.T9(70)),this.bookDiv.classList.remove(h2.T9(+"144")));};y.prototype.setBookSize=function(L1){var c3;this.bookDiv.style.width=L1.width + j65Rg.t1(+"186");this.bookDiv.style.height=L1.height + j65Rg.t1(186);this.bookLeft=L1.left;this.bookHeight=L1.height;j65Rg.H5();this.bookWidth=L1.width;this.bookMarginTop=L1.top;this.bookMarginLeft=L1.left;c3=Object(p.getStore)().state.workspace.containerSize;this.fittedSize=Object(f.fit)(L1,c3);this.initBaseSizes();};y.prototype.initBaseSizes=function(){var E4,T8,K8,K$;E4=Math.round(this.bookWidth / +"2");T8=this.bookHeight;K8=Math.round(1.25 * E4);K$=Math.round(Math.sqrt(E4 * E4 + T8 * T8));this.maskWorkHeight=this.bookHeight + ("2" << 0) * K8;this.innerReflexWidth=K$;this.innerReflexMarginTop=K8;this.innerReflexBottomWidth=K$;this.innerReflexBottomMarginTop=K8;this.flipGradientWidth=K$;this.flipGradientTop=K8;this.maskTop=K8;this.pageWidth=E4;this.pageHeight=T8;this.maskWidth=K$;this.setStyles();};y.prototype.setStyles=function(){var o1=j65Rg;o1.H5();var C_,Q_,k5,i$,a9,S2,N0,i4,N2,y_,S1,J9,D$,L8,i8,m4,P3,B_,p9,S_;C_=this.pageHeight;Q_=this.pageWidth;k5=this.bookHeight;i$=this.bookWidth;a9=this.maskTop;S2=this.maskWorkHeight;N0=this.maskWidth;i4=Math.round(+"1.1" * i$);N2=Math.round("1.08" * 1 * k5);i4 % +"2" != "0" >> 32 && i$ % 2 == +"0" && (i4+=1);N2 % 2 != +"0" && (N2+=+"1");y_=Math.round((N2 - k5) / +"2");S1=Math.round((i4 - i$) / ("2" ^ 0));this.stripeCanvas.width=i4;this.stripeCanvas.height=k5;this.stripeCanvasCTX=this.stripeCanvas.getContext(o1.T9("148" | 16));this.shadowCanvas.width=i4;this.shadowCanvas.height=N2;this.shadowCanvasCTX=this.shadowCanvas.getContext(o1.T9(148));J9=this.bookState.singleMode && this.bookState.rtl?o1.T9(+"22"):o1.t1(+"171");D$=this.bookState.singleMode && this.bookState.rtl?o1.T9(122):o1.T9("180" | 20);L8=o1.T9("6" ^ 0) + Q_ + o1.T9("63" | 2);i8=o1.T9(+"79") + -Math.round(.1 * k5) + o1.t1(+"60") + -Math.round(.05 * i$) + o1.t1(+"181") + Math.round(1.1 * i$) + o1.t1(+"11") + Math.round("1.2" * 1 * k5) + o1.t1(+"176") + Q_ + o1.t1(+"32") + C_ + o1.t1("150" << 64) + N0 + o1.t1("32" | 0) + C_ + o1.t1("185" - 0) + Q_ + o1.t1(+"178") + (0 - (N0 - i$)) + o1.T9("29" ^ 0) + Q_ + o1.T9(+"78") + S2 + o1.T9("163" ^ 0) + -a9 + o1.t1("181" << 32) + N0 + o1.T9("11" << 64) + S2 + o1.t1("50" | 2) + Math.round(N0 - i$ / +"2") + o1.t1("173" ^ 0) + i$ + o1.T9("11" << 0) + k5 + o1.t1(156) + N0 + o1.t1(+"11") + S2 + o1.T9(+"81") + -a9 + o1.t1(119) + i$ + o1.T9(11) + k5 + o1.t1(+"162") + Math.round(".57" * 1 * Q_) + o1.T9("11" * 1) + k5 + o1.T9("196" >> 0) + Math.round(".8" * 1 * Q_) + o1.T9("11" ^ 0) + k5 + o1.T9(99) + Math.round(+".8" * Q_) + o1.t1(+"11") + k5 + o1.t1(+"145") + J9 + o1.t1(+"52") + Math.round(Q_) + o1.t1("181" * 1) + Math.round(Q_) + o1.t1(11) + Math.round(k5) + o1.T9(+"139") + D$ + o1.t1(+"52") + -Q_ + o1.T9(+"189") + i4 + o1.T9(+"11") + N2 + o1.T9(69) + S1 + o1.t1(90) + y_ + o1.t1("41" << 0) + i4 + o1.t1("11" - 0) + k5 + o1.t1(69) + S1 + o1.T9(+"204") + (this.bookState.singleMode?L8:o1.T9(187));if(this.bookState.hardcover){m4=Math.round(k5 * S);P3=Math.round(Q_ * S);B_=m4 - +"1";m4 % 2 != +"0" && (m4+=1);p9=Math.round((m4 - k5) / ("2" | 0));S_=Math.round(Q_ * (S - +"1"));i8+=o1.t1(123) + B_ + o1.T9("101" | 36) + p9 + o1.t1("111" << 64) + this.bookState.hardcoverColor + o1.T9("126" - 0) + P3 + o1.t1("11" << 0) + m4 + o1.t1("90" | 18) + p9 + o1.t1(+"18") + S_ + o1.T9(54) + P3 + o1.t1("32" << 0) + m4 + o1.T9(+"203") + Math.round(i$ / +"2") + o1.T9("102" - 0) + Q_ + o1.T9("11" >> 0) + C_ + o1.T9(+"59") + this.bookState.hardcoverColor + o1.t1(138) + this.bookState.hardcoverColor + o1.T9("212" >> 96) + S_ + o1.T9("91" << 0) + p9 + o1.T9("193" << 32) + S_ + o1.T9(91) + p9 + o1.t1(+"107") + Q_ + o1.t1(+"201") + k5 + o1.t1(+"15") + S_ + o1.T9(91) + p9 + o1.T9(+"128") + Q_ + o1.T9(+"201") + k5 + o1.T9("80" * 1) + p9 + o1.T9(40);}void 0 !== this.styleTag.textContent?this.styleTag.textContent=i8:this.styleTag.innerText=i8;this.setDynamicStyles();i8=null;};y.prototype.setDynamicStyles=function(){var Y$=j65Rg;var k8,Z7,U6,O9,q5,W3,b6;Z7=arguments.length > 0 && void ("0" * 1) !== arguments[+"0"] && arguments["0" | 0];U6=this.pageWidth;O9=this.bookWidth;if((this.calcStripeSizes(),this.shadow && !Z7?this.renderBookShadow(this.shadow,Z7):this.shadow && Z7 && this.renderStripe(),Z7 || (this.bookContainer.querySelector(Y$.T9("13" * 1)).style.left=this.bookLeft + Y$.t1(+"186")),this.bookState.singleMode && this.bookState.rtl?this.bookContainer.querySelector(Y$.t1(195)).style.left=Y$.t1(+"44") + (this.leftStripeWidth + (this.bookState.hardcover?U6 * (S - ("1" << 32)):+"0")) + Y$.t1(+"186"):this.bookState.singleMode?this.bookContainer.querySelector(Y$.T9("4" * 1)).style.right=Y$.t1("44" * 1) + (this.rightStripeWidth + (this.bookState.hardcover?U6 * (S - ("1" - 0)):"0" << 0)) + Y$.T9(+"186"):(this.bookContainer.querySelector(Y$.T9(+"4")).style.right=Y$.t1(+"44") + (this.rightStripeWidth + (this.bookState.hardcover?U6 * (S - ("1" << 32)):0)) + Y$.t1(+"186"),this.bookContainer.querySelector(Y$.T9(+"195")).style.left=Y$.t1(+"44") + (this.leftStripeWidth + (this.bookState.hardcover?U6 * (S - +"1"):+"0")) + Y$.t1("186" ^ 0)),this.bookState.hardcover)){q5=this.bookState.singleMode?Math.round(U6 * S + this.backboneWidth):Math.round(O9 * S + this.backboneWidth);W3=this.bookState.singleMode && !this.bookState.rtl?Y$.t1(+"64"):Y$.T9("44" - 0) + Math.round(U6 * (S - ("1" << 32)) + this.leftStripeWidth) + Y$.T9("186" ^ 0);b6=Math.round(O9 * S / +"2" + this.backboneWidth);k8=Y$.t1(157) + q5 + Y$.t1(+"60") + W3 + Y$.T9("95" << 32) + b6 + Y$.T9(+"60") + Math.round(U6 - this.leftStripeWidth) + Y$.t1(+"184") + b6 + Y$.t1(+"116") + Math.round(U6 - this.rightStripeWidth) + Y$.T9("40" * 1);}else k8=null;void ("0" - 0) !== this.dynamicStyleTag.textContent?this.dynamicStyleTag.textContent=k8:this.dynamicStyleTag.innerText=k8;};y.prototype.shiftPages=function(){j65Rg.l9();j65Rg.T9(+"171") === this.lastDirection?this.shiftPagesLeft():j65Rg.T9(+"22") === this.lastDirection && this.shiftPagesRight();};y.prototype.renderShadow=function(W_){var E1=j65Rg;var y1;(n.default.addClass(this.globalWrapper,E1.t1(+"73")),n.default.removeClass(this.globalWrapper,E1.T9("115" - 0)),W_ && (this.bookState.right.isLastSheet || this.bookState.left.isFirstSheet)) || (y1=this.bookState.right.isFirst?E1.t1(+"10"):this.bookState.left.isLast?E1.t1(192):E1.T9("141" | 1),this.set(E1.T9("38" * 1),y1),this.setDynamicStyles());};y.prototype.changeShadow=function(F_){var f6=j65Rg;f6.H5();n.default.id(f6.t1(167)).setAttribute(f6.t1("216" | 24),f6.t1(+"21") + (this.bookState.hardcover?f6.T9(+"0"):f6.t1(+"33")) + F_);};y.prototype.onFlipToLeft=function(){this.lastDirection=j65Rg.T9(+"171");};y.prototype.onFlipToRight=function(){this.lastDirection=j65Rg.t1(22);};y.prototype.onRenderStart=function(h5){var t$=j65Rg;n.default.removeClass(this.globalWrapper,t$.T9(73));t$.T9(144) === this[this.currentWrapper].type && n.default.addClass(this.globalWrapper,t$.t1(115));this.bookState.right.isFirst && -1 !== this.startPoint.indexOf(t$.T9(171)) || this.bookState.left.isFirstSheet && -("1" << 64) !== this.startPoint.indexOf(t$.T9(+"22")) && t$.t1(+"144") === this[this.currentWrapper].type && t$.t1(104) === this.currentWrapper || h5.drag && this.bookState.left.isFirstSheet && -("1" - 0) !== this.startPoint.indexOf(t$.T9(+"171"))?this.set(t$.t1(+"38"),t$.t1(+"10")):(this.bookState.left.isLast && -("1" >> 0) !== this.startPoint.indexOf(t$.T9("22" ^ 0)) || this.bookState.right.isLastSheet && -1 !== this.startPoint.indexOf(t$.t1("171" * 1)) && t$.T9(144) === this[this.currentWrapper].type && t$.T9(206) === this.currentWrapper || h5.drag && this.bookState.right.isLastSheet && -+"1" !== this.startPoint.indexOf(t$.T9(+"22"))) && this.set(t$.T9(+"38"),t$.t1("192" * 1));this.setDynamicStyles();};y.prototype.initInnerEvents=function(){var F9=j65Rg;this.on(F9.t1(92),this.shiftPagesLeft);this.on(F9.t1("106" << 32),this.shiftPagesRight);this.on(F9.t1("51" | 18),this.onFlipToLeft);this.on(F9.T9(+"118"),this.onFlipToRight);this.on(F9.T9(+"124"),this.onRenderStart);this.on(F9.t1(34),this.renderShadow);this.on(F9.t1(+"200"),this.renderShadow);this.on(F9.t1("108" ^ 0),this.renderShadow);this.on(F9.T9("17" << 32),this.changeShadow);this.bookState.on(F9.T9("191" >> 32),this.renderShadow,this);this.bookState.on(F9.T9(191),this.resetWrappers,this);this.bookState.on(F9.T9(3),this.setStyles,this);this.trigger(F9.T9("108" << 0));};y.prototype.removeInnerEvents=function(){var p$=j65Rg;this.off(p$.t1(+"92"),this.shiftPagesLeft);this.off(p$.T9("106" - 0),this.shiftPagesRight);this.off(p$.t1(51),this.onFlipToLeft);this.off(p$.T9(118),this.onFlipToRight);this.off(p$.T9(+"124"),this.onRenderStart);this.off(p$.T9("34" ^ 0),this.renderShadow);this.off(p$.t1(200),this.renderShadow);this.off(p$.T9(+"108"),this.renderShadow);this.off(p$.t1(+"17"),this.changeShadow);this.bookState.off(p$.T9("191" - 0),this.renderShadow,this);this.bookState.off(p$.T9("191" - 0),this.resetWrappers,this);this.bookState.off(p$.T9("3" >> 32),this.setStyles,this);};y.prototype.correctEv=function(e9){var S5,f$;j65Rg.l9();S5=this.globalWrapper.getBoundingClientRect();f$=document.getElementsByTagName(j65Rg.t1(+"159"))["0" << 64].scrollLeft;return {'\u0070\u0061\u0067\u0065\u0058':e9.x - S5.left - f$,'\u0070\u0061\u0067\u0065\u0059':e9.y};};y.prototype.touchMovePrevent=function(V3){-1 === Object(m.classPath)(V3.target).indexOf(j65Rg.T9("112" | 16)) && V3.preventDefault();};y.prototype.calcPage=function(V6,y7){var h4=j65Rg;var E3,l1,f8,G3,R1,Q6,Y_,N7,x1,s3,X_,L$;G3=this.bookDiv.getBoundingClientRect();R1=0;Q6=0;if(this.bookState.singleMode){Y_=Object(p.getStore)().getters[h4.t1("67" << 64)].currentPage;if((l1=(E3=Object(p.getStore)().getters[h4.T9("56" >> 32)](Y_)) + 1,f8=Object(p.getStore)().getters[h4.T9(+"48")],this.bookState.rtl)){N7=l1;l1=f8 - E3 - 1;E3=f8 - N7 - ("1" ^ 0);}}else (E3=this.bookState.currentLeft,l1=this.bookState.currentRight,f8=this.bookState.pagesCount);x1=this.bookState.hardcover?+"2":"1" - 0;s3=this.bookState.hardcover?f8 - 3:f8 - "2" * 1;X_=E3;L$=l1;return (h4.T9(+"22") === this.activeStripe?((R1=Math.abs(V6.clientX - (this.bookWidth + G3.left) + 1)) > this.rightStripeWidth && (R1=y7?+"0":this.rightStripeWidth),this.bookState.rtl?(Q6=Math.ceil(x1 + (this.rightStripeWidth - R1) / this.rightStripeWidth * (f8 - X_ - x1)),Q6=Math.min(Q6,s3 - X_ - 1)):(Q6=Math.floor(s3 - (this.rightStripeWidth - R1) / this.rightStripeWidth * (s3 - L$)),Q6=Math.max(Q6,L$ + "1" * 1))):h4.T9("171" >> 64) === this.activeStripe && ((R1=Math.abs(V6.clientX - G3.left + +"1")) > this.leftStripeWidth && (R1=y7?"0" - 0:this.leftStripeWidth),this.bookState.rtl?(Q6=Math.floor(f8 - x1 - (this.leftStripeWidth - R1) / this.leftStripeWidth * ((L$ || X_) - x1)),Q6=Math.max(Q6,s3 - X_ + +"1")):(Q6=Math.ceil(x1 + (this.leftStripeWidth - R1) / this.leftStripeWidth * (X_ - x1)),Q6=Math.min(Q6,X_ - ("1" | 1)))),Q6);};y.prototype.onPanStart=function(N5){var R0=j65Rg;R0.H5();var h6,g_,Z_,C5,H6,A0,z8,m9;h6=this;if((!N5.srcEvent || !N5.srcEvent.metaKey && !N5.srcEvent.ctrlKey) && N5.additionalEvent){g_=Object(m.classPath)(N5.target);if(-+"1" === g_.indexOf(R0.T9(+"112")) && -1 === g_.indexOf(R0.t1(+"5"))){Z_=document.elementFromPoint(N5.center.x - N5.deltaX,N5.center.y - N5.deltaY);if(!(Z_ && R0.t1("202" | 8) === Z_.getAttribute(R0.T9(169)) || Object(p.getStore)().state.notes.isMoving || R0.T9(+"152") === this.state || R0.T9("208" * 1) === this.state || this.blocked))if(R0.t1(+"46") === this.state && this.progress > 0 && this.progress < "1" - 0)+"0" === this.breakProgress?this.breakProgress=this.progress:this.progress === this.breakProgress && (this.finishRender(!+"0",null,!("0" - 0)),this.breakProgress="0" * 1);else {this.breakProgress=0;H6=this.correctEv(N5.center);A0=H6.pageX;z8=H6.pageY;m9=this.bookWidth / +"2" + this.bookMarginLeft;if(!(-+"1" === this.leftWrapper.firstPageNum && -+"1" === this.leftWrapper.secondPageNum && A0 < m9 || -("1" ^ 0) === this.rightWrapper.firstPageNum && -("1" | 0) === this.rightWrapper.secondPageNum && A0 > m9)){if(this.bookState.singleMode){if((R0.t1("27" << 64) === N5.additionalEvent || R0.t1(+"94") === N5.additionalEvent || R0.t1(117) === N5.additionalEvent) && (this.bookState.rtl?this.bookState.left.isLast:this.bookState.right.isLast))return;if((R0.t1("100" - 0) === N5.additionalEvent || R0.t1("94" << 64) === N5.additionalEvent || R0.T9(+"117") === N5.additionalEvent) && (this.bookState.rtl?this.bookState.left.isFirst:this.bookState.right.isFirst))return;}else {if((R0.T9(27) === N5.additionalEvent || R0.t1(94) === N5.additionalEvent || R0.T9(117) === N5.additionalEvent) && this.bookState.right.isLast)return;if((R0.t1("100" ^ 0) === N5.additionalEvent || R0.t1("94" * 1) === N5.additionalEvent || R0.T9(117) === N5.additionalEvent) && this.bookState.left.isFirst)return;}A0 > m9 && R0.T9(+"100") === N5.additionalEvent && (C5=R0.t1("171" >> 96),!this.bookState.singleMode) || A0 < m9 && R0.t1(+"27") === N5.additionalEvent && (C5=R0.T9(+"22"),!this.bookState.singleMode) || (Object(p.getStore)().dispatch(R0.T9(31),{'\u0074\u0061\u0072\u0067\u0065\u0074':R0.t1("39" << 0)}),Object(p.getStore)().dispatch(R0.t1(182),R0.t1(19)),this.once(R0.T9(34),function(){Object(p.getStore)().dispatch(R0.T9("85" - 0),{'\u0074\u0061\u0072\u0067\u0065\u0074':R0.T9(39)});Object(p.getStore)().dispatch(R0.t1(182),R0.t1("143" << 64));}),this.moveFlag=!+"0",this.state=R0.t1("152" >> 64),requestAnimationFrame(function(){h6.startRender({'\u0070\u0061\u0067\u0065\u0058':A0,'\u0070\u0061\u0067\u0065\u0059':z8},!("0" ^ 0),C5,!0);}));}}}}};k=!+"1";y.prototype.onPanMove=function(B1){var V0=j65Rg;var e3;e3=this;V0.t1(46) !== this.state && this.moveFlag?(this.state=V0.t1(+"208"),requestAnimationFrame(function(){V0.l9();V0.T9("144" | 16) !== e3[e3.currentWrapper].type?e3.render(e3.correctEv(B1.center)):e3.renderHard(e3.correctEv(B1.center));})):V0.t1(+"2") === this.bookState.version && (Math.abs(B1.overallVelocity) > +".3" && !k?(k=!+"0",setTimeout(function(){V0.H5();k && (k=!+"1",e3.onPanStart(B1));},"150" - 0)):Math.abs(B1.overallVelocity) <= +".3" && !k && this.onPanStart(B1));};y.prototype.onPanCancel=function(y9){var g7=j65Rg;var Z0;Z0=this;g7.H5();k=!+"1";g7.t1(+"46") !== this.state && this.moveFlag && (this.moveFlag=!+"1",requestAnimationFrame(function(){g7.H5();var s6;s6=null;g7.T9("144" ^ 0) !== Z0[Z0.currentWrapper].type && (y9.velocityX > +".2" && (s6=g7.T9(+"22")),y9.velocityX < -.2 && (s6=g7.T9(171)));Z0.finishRender(!("1" * 1),s6);}));};function a$yPX(){return "x#-)*b%7C%22'!:'*j$&0++8f&06=%22,.2%04492k*09%3E1&*+7%3Ef-1:u#*.:-/t1'?&7'f)2+(%7D%20%201)%7C%20:t#f((y2p$492b%3C-7;ba-6*92*s.9)'=p1,%22+?;9/9&;6x%7C%20#!-69%226koq((fbz+6%3E'=s0=6.*&o:?6;1/%7C%20'!:+67f?&nx%22%25-?jh%7Crcnn%7C%20#(;1w%20#(;1%1B?7!*f(1%25*-m(1%25*%1D#($+%200%00!%19,+;:%7C%20:t#l*9%25'*o(1%25*%25.=66uz$492u*-%145$;zx%7C%20#!=#63'#z2%20-l)2+(%7D%20%201)x~*.,&u=#%3C5bv%20#(;o%3E%3C+?s!7%3E6.7,=%22987&,8xk-6*92*s.9)'=~1,%22+?;f(1%25*-m(1%25*%17,%3C5:%0D'%0B%3Ct27rb*7%20.vpmen%7Dkwtbwzrf;8#!9'b1!;74=%036=72=t27e?v6.&.o:?-$~l5?4&0%25u8#=:bv8#=:o511$~l(1%25*s$492b=-6$#&0'*~+!-+%3C5x-;$7%22'4%3C#;;%25=1764o,1.7%22xk.:c%3C')*xxt6=+'%7C$0.01416*%06j%7C%20:t#l51+!s$*1/*d,7$ja7'iakop11%3E%25#;o5?&*d,7$ja,64yba3#+;x!16p~5%20,)qp9=7%250$x%7Feb45$;d+696&?.c-l%22?+6%7D$=?/=j,%20*jv9'~okx~1&0%2545o%221&=~0;2bv=#%3C5x6?6gp57%22)f~945$;drcp0&9*,j+!7611.t#fm%60gk-6*92*s.9)'=~101&%20)f(1%25*,m??%16%20%0E#?5%006%17,%3C5:k.#?50%60-69$'kngxt27eb45$;dbut1%2086%7Car%7F%7Bb%7Cyb%7F.:tp6=?,+%20#=;,,pf%3C*#,9!b%3C-7;f+74%7C%7Cf;,#6#..*'k4j%7F.:tpr?&nx%6027wb*?6.*'%01xfb9094+*06p%22+(66tp0(%3C#p%60n%7Frrtt27#l511$p57%22)46'17*;dfv6.&.o:?-$~l%3E%25.#s1%3C'x.86=%22nop$492b%3C-7;ba,%25,%7D1+)x966*,nx~$#72u2-%205bv%3C$;s1%3C'x.86=%22b4*-(jf?&yx%3C')*xx%60yo*-(jf?&y510(7,u$-?df%3E90%3C*o,?o#?1,t!*06=%22flnrht2.9'*%7F7!80=58*z*=1&k*-(ts%7Fngxerjz2%20yb=169$'%16vf((yo*-(jbbz2%20kb;12bt1'7$,j6%20%12'%3E$fa%3C-7;o,1,,1+!;0%7C%20#!+2%7Ck?l%3C-7;l=96u#&8d%20=6-=;nxs%20%201)v%22%25;s1%3C'x.86=%22b4)+%3C$*uz/7%251*14=%22f%7F.:xt6%20..=66k.:c-l)2+(%7D%20%201)x~0*8.=(o)70+$x-;$7%22'4)+%3C$*uz29%3E0&9*,t27e67%20xosf((y2p$492b%3C-7;ba6#*4o%22?13pl??%25=%7D$#72u3-!*#1%3E'=p+6#++;bv%20#(;x==2;'nv6.&.o:?-$~l010+s/9#)op+6#++;bv5,)10;5o86+,5o-9b#'++**bt2.0'64f#;$,%070..2=%22f-16,?/k-*166u*-%0A9%25'*f((y2p$492b%3C-7;ba6#*4o%22?13pl&0114'a$qb1$;;0x+5&:60jbk7,1$x+1,=t2%207,,50k*09%3E1#?6=c&gswh%60r?&nx%7Dw%7Fnr((nonk%7C%20:t#l%3E%3C+?s%207?)op%207?)a6#*4x-;$7%22'o%25%2093)(,--%3E&b=-4?0uz5u3*=1/=t4&-+:%3C'k%3C-7;o+;2,8f%22141%3E%25b6#*4f?&y*9%25'*xxt2.0&7',k8.1%20x;1%1017*;z2%20k?a8.1%20o-1-3pl=;$45:b=-6$#&0'*b987&,8xk%3C-,$-%22,+?86ki2%20t/.,%251%3Eo=7%250$fa8.1%20o-1-3pl-1-3j%20*8-*5nop$492b%3C-7;ba%3C-7;x.86=%229';+?86u~f*5,+;0b#6.,6%7C'-=5fc-l)2+(%7D%20%201)x~*.,&u=#%3C59/9&;6x%7C6.&.x%3E9,&-*=4f?&y%25~$#72u2-%205bv8#=:o511$~l1%3E1&:'v*su?$,50o%255146'db%7C6.&.%207?)b-6!%3C'%3Cz2%20%7Cr?&kx%22-;?6=xf=;$45:b=-6$#&0'*t,%200'%7C$0.01%3E?0%22z%207?)b-67%202*:f%7B1#.z5096*z2%20%7Cb;,#6#2.,'6$bke?v6.&.o:?-$~l010+s/9#)op297'b8.1%20o,1,,1+!;0v?7;-+%3C5ba.#?5b4%3C#;;%25=1764o,1.7%22xk.:c-l)2+(%7D%20%201)x~+!0'*%7D0*8.=(o%22?13pl&0,=%22o=;$45:4zkxt$:2.u#&8z1,).*z0=1&6z*9%22&k.:c-l)2+(%7D%20%201)x~+!0'*%7D0*8.=(o%22?13+f~nr%7Dprjzsh%60r%7Fnrh%60rkl&%7C%7Cb~wf((y2p$492b%3C-7;ba3#+;987&,8xk:'%3E17#*f1%3E%12=1%25*51%3Cz6*1,%3C2#,5%18go2%20yb=169$'%16vf;1,9?1%7C%6027z2%20k?a8.1%20o-1-3pl&0,=%22o=;$45:c~l%3E%3C+?s%207?)op+6%3E'=s0=6.*&o:?6;1/#'++**bta-1-3j%20*8-*5no%7D%207?)u?$,504)+%3C$*uz2%20%7Cr?&nh%20:f~07$#;;j%7C2-+'f(1%25*,m+56%0910;5%04#72%7C%22%25-?j%7C%20:t#l%3E%3C+?s%207?)op0=6.*&o45$;d%20=6-=;9/9&;6x%7C%20:t#l%3E%3C+?s%25*1&4*-(jf;12*9%25'*f921%2027,5fb9094+*06p%22+(66tp0(%3C#pbwzrpmen%7Dkwtt%20%201)%7C%60b~n2%20t&.*#u#';zo?%22#+7'6$j#;$,%7Cb=9%209xpzknjewclwm%7Cf#;$,t%20#1!3t27e?v6.&.o:?-$~l+$#;7!u2-%205bv%22+(66u%20#(;945$;dr((y2p$492b%3C-7;ba,'%3E%3C'7s!7%3E6.7,=%22987&,8xk-6*92*-%15146'zr%7Dprjz2%20k?a.#?5o)2+(%7D!%200699,*,9/9&;6x%7C%20:fz2%20k?a3#+;l%22%0C945$;df45$;s1,%22+?;o:%3C-,5f510(7,u%3C')*f((y87&,8xk)-*;1??!=%7F1**%11,16:-fi%60rj~sh%60gk.:c-a-1-3~.)*o+45u%3C'%3E?0*rb%7B2-%205l466b-&/j#)*'*p987&,8xk.:c-l)2+(%7D%20%201)x~1;?613o-1-3pl%22?13+5&:60jf?&f%7C%7D.&0'9%22f?&?v6.&.o:?-$~l+$0&.'u%3C#6;0v#*.:-/+5&:60jf.=61?,k,'+56u)09%202*,1%7C%3C$;s1%3C'f?&y%25~$#72u2-%205bv8#=:o511$~l1%3E1&:'v*sop297'c~l%3E%3C+?s%207?)op*9%22&b3#+;ba7,+9&*p8ipl*0$7%22!*s5096*s%20?p9=7%250$xk3--#':.fv%200*(+7%251b%3C7,$-!z2%20k?a8.1%20o-1-3pl=;$45:b,+?86u%3C'%3E?0*%255146'df,%22#!-.9$'%7C:juer%7Fn2%20%7Cb%7Frbhyf??,5?4*z/7%251*17,t0*0&=%22x)10;5%04&0++8f?&yx8'&9*,jbk-'45!;s6=(6b%3C.73)k.:c-l)2+(%7D%20%201)x~*.,&u=#%3C5l0%02+(66#%3C')*x%7C%20:t~67%20xon2%20k?kngxar%7F%7Bf*9%25'*%15*12?;0%7C=-:-'5?4*z$1%3E+%3C6+67f,2+;;f+',9=+,s$492-1-3%7D1;'.=#f%7F%7Bbm%60gke?v6.&.o:?-$~l010+s/9#)op+6#++;l%22cba.#?5nop$492b%3C-7;ba6#*4o%22?13pl&0114'a$qx~'!8-*3'b)*1$'b%3C%25x+.*86bto(,#%3C9'!*j45$;rb*7%20.vrt%60n%7Frf*9%25'*o+$0&.'u2.%20=)%7C10&?o09&+;,%7C3..-1%7Cp*.,&xt%20%20*67=.*86%7C=--7.=t0*-',j1;'.=#fa0'%20$o-+6,?,k.:%7C%7D%25=?&15,;v.=66c~0?2#glwm%7Cpzknjewcz2-2.&=#,9-!s,7$'kp/99,b809='u0-,xl&;siyba,+?86b.#?5b42'%3E$xo7,1$+.2y%25~/.7,u60.3'b%3E-;vl15s~wbv=#%3C5x6?6gp57%22)f~9/9&;6x%7C%20:cz6*1,%3C2#,5q+vfka27z0=6.*&o;?,;?+650k,%25,%7D1+)f((y';+?86uz!9%3E4.-f,%22#!-.9$'%17vf(1%25*,m+56%092+(%036.*'%7C~%20%201)%7C~%20%201)u3-!*#1%3E'=~a:?-$z2%20kb#;$,jf?&b%7C3*.0%25=j1'?&7'f?&y%25~$#72u2-%205bv8#=:o511$%25.=66u~o%7C%20:t#l%3E%3C+?s%207?)op1,16&=o:?-$~l511$p/%0A+.*86bt2.0f*1&fz%207?)oz017*;zx0?4*,f,%22#!-$7%22/%00,+?9,k*--3*%2214=t27e?v6.&.o:?-$~l*5$#;:u%22+(66b2')10=+5&:60jfcz#;$+9;%11,%22+?;f(1,#;$,tkc~0?2#glwm%7Cpzknjewcz2%20k?a8.1%20o-1-3pl%3C*#,9!b%3C-7;ba3#+;l%22%0C945$;df+'+?;f(1%25*,m%3E%22'*$'%7C%20:t~*=9%25'*x%7C%20:t#l%3E%3C+?s%207?)op*9%22&b3#+;ba7,+9&*p8ij#)*'*p987&,8xoz.=66b-6*92*s%204?!$";}z=Date.now();y.prototype.onSwipe=function(z_){k && !this.blocked && (k=!+"1",z < Date.now() && (z=Date.now() + +"150",z_.deltaX > +"0"?Object(v.movePagerLeft)(Object(p.getStore)(),{'\u0074\u0061\u0072\u0067\u0065\u0074':j65Rg.T9(30)}):Object(v.movePagerRight)(Object(p.getStore)(),{'\u0074\u0061\u0072\u0067\u0065\u0074':j65Rg.t1("30" << 32)})));};y.prototype.onStripeMouseOver=function(j6){var V9=j65Rg;var K2;K2=this;V9.l9();P=setTimeout(function(){var K1;V9.l9();K1=V9.t1("22" << 32) === j6?K2.rightStripeBlock:K2.leftStripeBlock;(x=K1.matches(V9.t1("23" * 1))) && K2.onStripeMouseMove($,C,!+"0");},150);};y.prototype.onStripeMouseOut=function(){j65Rg.l9();this.set(j65Rg.t1(26),j65Rg.t1("187" << 64));clearTimeout(P);x=!+"1";};function y(G9,G4,c$,h_,s0){var o7=j65Rg;var b9;b9=!(arguments.length > ("5" | 0) && void 0 !== arguments[5]) || arguments[5];this.storedStates=[];this.progress=0;this.breakProgress="0" * 1;this.endingAnimation=!("1" | 1);this.state=o7.T9("46" * 1);Object(p.getStore)().dispatch(o7.T9(12),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':o7.T9(+"46")});this.isIE=!!Object(p.getStore)().state.workspace.userAgentInfo.browser.msie;this.blocked=!("1" - 0);this.bookState=c$;this.lastDirection=null;this.postPager=!("1" | 1);this.parentVm=h_;this.contentCreator=s0;this.bookContainer=h_.$root.$el.querySelector(o7.t1(93));this.bookBlock=null;this.transformMethod=h.default.prefixed(o7.T9("133" - 0));this.transitionMethod=h.default.prefixed(o7.t1("36" << 0));this.transformOriginMethod=h.default.prefixed(o7.T9(+"24"));this.gradientPrefix=o7.T9(+"44") + w.lowercase + o7.T9("188" ^ 0);this.globalWrapper=G9;this.activeStripe=o7.t1(187);this.genDOM();this.setBookSize(G4);this.setSpeedRate();this.preWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!+"1","2" * 1,!+"1",this.parentVm,this.contentCreator);this.leftWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("1" * 1),3,!+"1",this.parentVm,this.contentCreator);this.rightWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("0" * 1),+"3",!("1" * 1),this.parentVm,this.contentCreator);this.nxtWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!+"0","2" * 1,!("1" * 1),this.parentVm,this.contentCreator);b9 && this.initDOMEvents();this.initInnerEvents();requestAnimationFrame(this.animationLoop.bind(this));}M=Date.now();T="0" | 0;y.prototype._skipStripeMouseMove=function(b5,m6){var w_;if(!b5 || ("1" ^ 0) === b5.buttons)return !+"0";if(!x)return !0;w_="1" << 64;Date.now() - M > +"300"?(M=Date.now(),T=b5.clientX):w_=Math.abs(b5.clientX - T) / (Date.now() - M);return !m6 && w_ > .2;};y.prototype.onStripeMouseMove=function(G8,j7,D1){var a4=j65Rg;var O4,r6,c1,n_;if(($=G8,C=j7,!this._skipStripeMouseMove(j7,D1))){this.set(a4.T9("26" << 0),G8);O4=this.bookBlock.getBoundingClientRect();if(this.bookState.singleMode && this.bookState.rtl)this.stripeDiv.style.left=j7.clientX - O4.left + +"3" + a4.T9("186" ^ 0);else if(this.bookState.singleMode)this.stripeDiv.style.left=j7.clientX - O4.width / 2 - O4.left + +"3" + a4.T9(+"186");else if(a4.T9(+"171") === G8){r6=this.bookContainer.getBoundingClientRect().left;this.stripeDiv.style.left=(j7.clientX - +"33" >= r6 + 3?j7.clientX - O4.left - 33:r6 - O4.left + +"3") + a4.T9(+"186");}else {c1=this.stripeDiv.clientWidth;n_=this.bookContainer.getBoundingClientRect().right;this.stripeDiv.style.left=(j7.clientX + +"3" <= n_ - ("3" << 0) - c1?j7.clientX - O4.left + "3" * 1:n_ - O4.left - +"3" - c1) + a4.t1("186" >> 0);}this.stripeDiv.style.top=j7.clientY - O4.top - ("33" ^ 0) + a4.T9("186" - 0);this.stripeDiv.innerText=Object(p.getStore)().getters[a4.T9("49" | 48)](this.calcPage(j7));}};y.prototype.onStripeMouseUp=function(f2,W$){j65Rg.l9();this.onStripeMouseMove(f2,W$,!("0" >> 64));};y.prototype.onStripeBlockClick=function(M1){var r2=j65Rg;var h7,t2;r2.H5();h7=this;if(r2.t1("2" ^ 0) !== this.bookState.version && (M1.stopPropagation(),M1.preventDefault(),r2.t1(+"187") !== this.activeStripe)){t2=this.calcPage(M1,!+"0");Object(p.getStore)().dispatch(r2.t1(+"66"),{'\u0070\u0061\u0067\u0065\u0049\u006e\u0064\u0065\u0078':t2,'\u0074\u0061\u0072\u0067\u0065\u0074':r2.T9("114" * 1)});this.stripeDiv.innerText=Object(p.getStore)().getters[r2.T9(+"49")](this.calcPage(M1));setTimeout(function(){return h7.stripeDiv.innerText=Object(p.getStore)().getters[r2.T9(+"49")](h7.calcPage(M1));},"50" | 2);}};y.prototype.onChangeActiveStripe=function(e4){var g2=j65Rg;g2.H5();g2.t1("187" | 51) !== e4?(this.stripeDiv.style.display=g2.t1("172" * 1),this.stripeCanvas.style.cursor=g2.t1(+"109")):(this.stripeDiv.style.display=g2.t1("132" | 4),this.stripeCanvas.style.cursor=g2.t1(+"151"));};y.prototype.initDOMEvents=function(){var q4=j65Rg;this.moveFlag=!("1" - 0);document.addEventListener(q4.t1(+"25"),this.touchMovePrevent,{'\u0070\u0061\u0073\u0073\u0069\u0076\u0065':!1});this.bookDiv.ontouchmove=this.touchMovePrevent;q4.T9(2) !== this.bookState.version && (this.leftStripeBlock.addEventListener(q4.T9("96" << 0),this.onStripeMouseOver.bind(this,q4.T9(+"171"))),this.rightStripeBlock.addEventListener(q4.t1("96" * 1),this.onStripeMouseOver.bind(this,q4.t1(+"22"))),this.leftStripeBlock.addEventListener(q4.t1("199" >> 0),this.onStripeMouseOut.bind(this)),this.rightStripeBlock.addEventListener(q4.t1(199),this.onStripeMouseOut.bind(this)),this.leftStripeBlock.addEventListener(q4.t1("207" | 69),this.onStripeMouseMove.bind(this,q4.t1(171))),this.rightStripeBlock.addEventListener(q4.t1(+"207"),this.onStripeMouseMove.bind(this,q4.T9(22))),this.leftStripeBlock.addEventListener(q4.T9(+"194"),this.onStripeMouseUp.bind(this,q4.t1(+"171"))),this.rightStripeBlock.addEventListener(q4.t1("194" >> 0),this.onStripeMouseUp.bind(this,q4.T9(+"22"))),this.leftStripeBlock.addEventListener(q4.T9("209" ^ 0),this.onStripeBlockClick.bind(this)),this.rightStripeBlock.addEventListener(q4.T9("209" * 1),this.onStripeBlockClick.bind(this)),this.on(q4.T9("58" * 1),this.onChangeActiveStripe),this.stripeDiv=document.createElement(q4.t1("74" >> 0)),this.globalWrapper.appendChild(this.stripeDiv),this.stripeDiv.style.position=q4.T9(165),this.stripeDiv.style.zIndex=q4.T9(+"147"),this.stripeDiv.style.padding=q4.t1(+"168"),this.stripeDiv.style.fontSize=q4.T9("43" | 9),this.stripeDiv.style.lineHeight=q4.t1("9" >> 64),this.stripeDiv.style.height=q4.T9("9" * 1),this.stripeDiv.style.textAlign=q4.T9(+"83"),this.stripeDiv.style.borderRadius=q4.t1(+"121"),this.stripeDiv.style.backgroundColor=q4.T9(135),this.stripeDiv.style.color=q4.T9("136" ^ 0),this.stripeDiv.style.display=q4.T9("132" * 1),this.bookBlock=this.parentVm.$root.$el.querySelector(q4.t1("14" - 0)));this.bookDivEventEmiter=new u.a(this.bookDiv,{});this.bookDivEventEmiter.get(q4.T9(+"19")).set({'\u0064\u0069\u0072\u0065\u0063\u0074\u0069\u006f\u006e':u.a.DIRECTION_ALL});this.bookDivEventEmiter.on(q4.T9(198),this.onPanMove.bind(this));this.bookDivEventEmiter.on(q4.t1("103" - 0),this.onPanCancel.bind(this));this.bookDivEventEmiter.on(q4.T9(+"53"),this.onPanCancel.bind(this));q4.T9(2) === this.bookState.version?this.bookDivEventEmiter.on(q4.T9("30" * 1),this.onSwipe.bind(this)):this.bookDivEventEmiter.on(q4.T9(+"42"),this.onPanStart.bind(this));};y.prototype.removeDOMEvents=function(){var z2=j65Rg;document.removeEventListener(z2.T9("25" - 0),this.touchMovePrevent,{'\u0070\u0061\u0073\u0073\u0069\u0076\u0065':!("1" >> 0)});this.bookDiv.ontouchmove=null;z2.H5();z2.T9(+"2") !== this.bookState.version && this.off(z2.T9("58" ^ 0),this.onChangeActiveStripe);this.bookDivEventEmiter.destroy();};y.prototype.initPoints=function(N3){var a_=j65Rg;var R8,v8,k2,i6,Q9,J4;R8=this.pageWidth;v8=this.pageHeight;k2=this.bookWidth;i6=this.bookHeight;Q9=this.bookMarginTop;J4=this.bookMarginLeft;switch((this.innerRadius=R8,this.outerRadius=("1" ^ 0) * (Math.sqrt(R8 * R8 + v8 * v8) - .5).toFixed(+"0"),this.startPoint)){case a_.T9(+"120"):(this.spineTop=new O(R8 + J4,0 + Q9),this.spineCenter=new O(R8 + J4,v8 / ("2" * 1) + Q9),this.spineBottom=new O(R8 + J4,v8 + Q9),this.edgeBottom=new O(k2 + J4,i6 + Q9));break;case a_.T9(+"164"):(this.spineBottom=new O(R8 + J4,("0" << 0) + Q9),this.spineCenter=new O(R8 + J4,v8 / +"2" + Q9),this.spineTop=new O(R8 + J4,v8 + Q9),this.edgeBottom=new O(k2 + J4,0 + Q9));break;case a_.t1("1" >> 0):(this.spineTop=new O(R8 + J4,+"0" + Q9),this.spineCenter=new O(R8 + J4,v8 / 2 + Q9),this.spineBottom=new O(R8 + J4,v8 + Q9),this.edgeBottom=new O(J4 - ("1" << 0),i6 + Q9));break;case a_.T9("98" | 32):(this.spineBottom=new O(R8 + J4,+"0" + Q9),this.spineCenter=new O(R8 + J4,v8 / +"2" + Q9),this.spineTop=new O(R8 + J4,v8 + Q9),this.edgeBottom=new O(J4 - ("1" | 1),Q9));}this.radius1=new O(+"0","0" >> 96);this.radius2=new O(+"0",+"0");this.corner=new O("0" << 64,+"0");this.follow=new O("0" * 1,"0" >> 0);this.middle={};this.renderData={};this.deltaFromCorner=Math.abs(this.edgeBottom.y - N3.pageY);this.deltaFromCorner > ".15" * 1 * this.bookHeight?this.deltaFromCorner=a_.T9(+"98") === this.startPoint || a_.T9("164" ^ 0) === this.startPoint?".95" * 1 * -this.deltaFromCorner:".95" * 1 * this.deltaFromCorner:this.deltaFromCorner=+"0";};y.prototype.toggleCorner=function(P9){var l3=j65Rg;var R$;R$=this.bookHeight - Math.abs(this.deltaFromCorner);-("1" * 1) !== this.startPoint.indexOf(l3.t1("87" >> 32))?(this.startPoint=this.startPoint.replace(l3.T9("87" - 0),l3.T9("105" << 64)),this.startY=this.bookMarginTop + this.bookHeight):(this.startPoint=this.startPoint.replace(l3.t1(+"105"),l3.T9(87)),this.startY=this.bookMarginTop);this.initPoints(P9);l3.H5();this.deltaFromCorner=this.deltaFromCorner < "0" << 64?-R$:R$;this.initOnceSizes();this.render(P9,!+"1",!+"0");};y.prototype.startRender=function(t8,H3,A7){var M4=j65Rg;var c8,X7,R2,Y6,V1,C$,l6,D3,L_,H$,w7;R2=arguments.length > 3 && void +"0" !== arguments[+"3"] && arguments[3];Y6=t8.pageX - this.bookMarginLeft;M4.l9();V1=t8.pageY - this.bookMarginTop;if((A7=A7 || !("1" - 0),Y6 > this.pageWidth && M4.T9(+"171") !== A7 || M4.t1("22" - 0) === A7)){if((c8=M4.t1(+"22"),this.currentWrapper=M4.t1(+"206"),this.bookState.right.isNull || this.bookState.right.isLast)){if(!Object(p.getStore)().state.pager.forceFlip)return void (this.state=M4.T9("46" - 0));Object(p.getStore)().dispatch(M4.T9("160" << 0),{'\u0066\u006f\u0072\u0063\u0065\u0046\u006c\u0069\u0070':!("1" * 1)});}this.bookState.right.isLastSheet && (this.innerReflexBottom.style.display=M4.t1(+"132"));this.startX=this.bookMarginLeft + this.bookWidth - ("3" ^ 0);}else {if((c8=M4.T9(+"171"),this.currentWrapper=M4.t1(+"104"),this.bookState.left.isNull || this.bookState.rtl && this.bookState.left.isFirst)){if(!Object(p.getStore)().state.pager.forceFlip)return void (this.state=M4.t1("46" | 6));Object(p.getStore)().dispatch(M4.T9("160" * 1),{'\u0066\u006f\u0072\u0063\u0065\u0046\u006c\u0069\u0070':!1});}this.bookState.left.isFirstSheet && (this.innerReflexBottom.style.display=M4.T9("132" ^ 0));this.startX=this.bookMarginLeft + +"3";}if(((-1 === this.leftWrapper.secondPageNum && this.bookState.left.isLast || -1 === this.rightWrapper.firstPageNum && this.bookState.right.isFirst || ("2" ^ 0) === this.bookState.pagesCount) && n.default.addClass(this.globalWrapper,M4.t1(82)),M4.t1(+"144") !== this[this.currentWrapper].type)){V1 > this.bookHeight / ("2" << 0)?(X7=M4.T9(+"105"),this.startY=this.bookMarginTop + this.bookHeight):(X7=M4.T9(87),this.startY=this.bookMarginTop);this.startPoint=X7 + c8;this.initPoints(t8);C$=t8.pageX - this.startX;l6=t8.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=M4.T9(+"113"));D3={'\u0070\u0061\u0067\u0065\u0058':this.startX,'\u0070\u0061\u0067\u0065\u0059':this.startY - this.deltaFromCorner};L_={'\u0070\u0061\u0067\u0065\u0058':this.startX + C$,'\u0070\u0061\u0067\u0065\u0059':this.startY - this.deltaFromCorner + (l6 + this.deltaFromCorner)};this.render(D3);H$=this;this.trigger(M4.t1("124" * 1),{'\u0064\u0072\u0061\u0067':R2,'\u0068\u0069\u0064\u0065':R2 && (this.bookState.left.isFirstSheet || this.bookState.right.isLastSheet)?c8:M4.T9(+"187")});w7=function(){M4.H5();H3?H$.render(L_):H$.tween=new c.a.Tween(D3).to(L_,"50" ^ 0).easing(c.a.Easing.Sinusoidal.Out).onUpdate(function(){H$.render(D3);}).start();};this.tween && this.tween._isPlaying?H$.tween.onStop(function(){w7();}).stop():w7();n.default.addClass(this[this.currentWrapper].mask,M4.t1("125" - 0));Object(p.getStore)().dispatch(M4.T9(+"12"),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':M4.T9(+"152")});this.state=M4.t1("152" ^ 0);this[this.currentWrapper].mask.style.top=-this.maskTop + M4.T9("186" * 1);}else this.startRenderHard(t8,R2,A7);};y.prototype.render=function(U_,v7,x$){var w8=j65Rg;var t_,M0,j4,k3,p5,W8,J0,g9,u7,V_,B5,z4,v3,m2,q3,E5,g6,w6,y2,A1,P5,C2,p2,w1,b0,p0,H7,i1,c7,Y8,A4,w3,c4,O3,Q3,n3,v2,b7,M7,A_,j9,u3,v9,L5,Q4,E9,C4,H8,G1,l2,j_,Q$,q8,O0,x0,e1,l_,l7,o9,D4,n6,F1,q$,C8,S7,y5,F7,R6,l0,Z3;if(!this.destroyed){V_=this.renderData;v7=v7 || !("1" >> 64);B5=U_.pageX;z4=U_.pageY;v3=this.deltaFromCorner;m2=this.edgeBottom.x;q3=this.edgeBottom.y;E5=this.spineBottom.x;g6=this.spineBottom.y;w6=this.spineTop.x;y2=this.spineTop.y;A1=this.outerRadius;P5=this.bookWidth;C2=this.bookHeight;p2=this.maskWidth;w1=this.maskTop;b0=this.pageWidth;p0=this.gradientPrefix;H7=this.innerReflexBottomWidth;i1=this.flipGradientWidth;c7=this.innerReflexWidth;Y8=this.startPoint;A4=this.transformMethod;w3=this.currentWrapper;c4=this.innerRadius;if(+"0" !== v3){O3=Math.atan((q3 - v3 - z4) / (m2 - B5));O3 !== +O3 && (O3="0" << 96);t_=B5 + -v3 * Math.sin("2" * 1 * O3);M0=z4 + v3 * Math.cos(("2" ^ 0) * O3);}else (t_=B5,M0=z4);Q3=E5 - t_;n3=g6 - M0;v2=Math.atan2(n3,Q3);b7=E5 - Math.cos(v2) * c4;M7=g6 - Math.sin(v2) * c4;Math.sqrt(n3 * n3 + Q3 * Q3) > c4?(j4=b7 - +".5",k3=M7 - +".5"):(j4=t_,k3=M0);Q3=w6 - j4;n3=y2 - k3;v2=Math.atan2(n3,Q3);A_=w6 - Math.cos(v2) * A1;j9=y2 - Math.sin(v2) * A1;if((Math.sqrt(Q3 * Q3 + n3 * n3) > A1 && (j4=A_ - +".5",k3=j9 - +".5"),+"0" !== v3 && !x$)){if(j4 <= m2 + +"2" && -("1" - 0) !== Y8.indexOf(w8.T9(+"171")))return void this.toggleCorner(U_);if(j4 >= m2 - +"2" && -("1" << 0) !== Y8.indexOf(w8.t1("22" << 64)))return void this.toggleCorner(U_);}u3=j4 + (".5" - 0) * (m2 - j4);v9=k3 + .5 * (q3 - k3);Math.abs(v9 - q3) >= +"1" || Math.abs(u3 - m2) >= "1" - 0?(p5=Math.atan((v9 - q3) / (u3 - m2)),g9=Math.sqrt((m2 - j4) * (m2 - j4) + (q3 - k3) * (q3 - k3)) / ("2" - 0),W8=m2 - u3,J0=q3 - v9):(p5="0" >> 32,g9=+"0",W8="0" ^ 0,J0="0" - 0);p5 !== +p5 && (p5=+"0");L5=Math.abs(W8 / b0);u7=0 === L5?+"0":L5 > .8?5 * (1 - L5):"1" >> 64;p5=n.default.round(p5,5);Q4=(L5 > ".9" * 1?+".35":-.35) * window.devicePixelRatio;E9=P5 > +"1300"?("2" ^ 0) * Q4:Q4;if((w8.t1("120" * 1) === Y8 || w8.T9("164" ^ 0) === Y8?(V_.reversePageTransform=w8.T9(8) + (p2 - g9 + E9) + w8.T9(+"7") + w1 + w8.t1(+"130") + p5 + w8.T9(+"20"),V_.maskTransform=w8.t1(+"8") + (-W8 + Q4) + w8.t1(+"7") + -J0 + w8.T9(+"130") + p5 + w8.t1("20" >> 96),V_.frontPageTransform=w8.t1(+"8") + (p2 - b0 + g9) + w8.t1("7" - 0) + w1 + w8.T9(130) + -p5 + w8.t1("20" | 16)):(V_.reversePageTransform=w8.T9(+"8") + (-b0 + g9 - E9) + w8.T9(7) + w1 + w8.t1("130" | 0) + p5 + w8.t1(+"20"),V_.maskTransform=w8.T9(+"8") + (-W8 - Q4) + w8.t1(+"7") + -J0 + w8.T9("130" | 2) + p5 + w8.T9("20" - 0),V_.frontPageTransform=w8.T9(+"8") + -g9 + w8.t1("7" | 5) + w1 + w8.t1(130) + -p5 + w8.t1("20" << 0)),+"0" !== u7))if(w8.t1(+"120") === Y8){C4=g9 / Math.cos(p5);H8=Math.tan(p5) * C2;G1=H8 < +"0"?C4 - H8:g9;H8 < "0" >> 64 && (G1=Math.cos(p5) * G1);V_.flipGradientBackground=p0 + w8.t1("166" - 0) + (".45" - 0) * u7 + w8.T9(+"28") + ".15" * 1 * u7 + w8.T9("140" ^ 0) + (".01" - 0) * G1 + w8.T9(+"57") + +".45" * u7 + w8.t1("140" ^ 0) + ".055" * 1 * G1 + w8.t1(+"47") + .65 * u7 * +".32" + w8.t1(+"140") + .185 * G1 + w8.T9("137" >> 32) + G1 + w8.t1("177" | 49);V_.flipGradientTransform=w8.T9(8) + (C4 - i1) + w8.t1(+"158") + -p5 + w8.T9(+"20");l2=Math.tan(p5) * J0;j_=m2 - B5;j_=j_ < +".03" * P5?(".03" - 0) * P5:j_ > ".3" * 1 * P5?+".3" * P5:j_;V_.innerReflexBottomBackground=p0 + w8.T9(+"213") + +".45" * u7 + w8.t1("72" * 1) + j_ + w8.t1(+"177");V_.innerReflexBottomTransform=w8.t1(+"8") + (P5 - W8 - l2) + w8.T9(+"158") + p5 + w8.T9("20" * 1);Q$=j_ * (".45" - 0 + L5 / +"2");V_.innerReflexBackground=p0 + w8.T9(+"77") + (".1" - 0 + "1.6" * 1 * L5 * (".4" - 0)) + w8.t1("72" * 1) + Q$ + w8.T9(177);V_.innerReflexTransform=w8.T9(+"8") + (P5 - W8 - l2 - c7) + w8.T9(+"158") + p5 + w8.T9("20" | 0);V_.reflexContainerTransform=w8.T9(+"8") + (p2 - P5 + g9) + w8.t1(+"7") + w1 + w8.t1("130" * 1) + -p5 + w8.t1("20" ^ 0);}else if(w8.T9("164" - 0) === Y8){q8=g9 / Math.cos(p5);O0=Math.tan(p5) * C2;x0=O0 > ("0" ^ 0)?q8 + O0:g9;O0 > "0" << 32 && (x0=Math.cos(p5) * x0);V_.flipGradientBackground=p0 + w8.t1(166) + .45 * u7 + w8.T9("28" | 0) + +".15" * u7 + w8.T9("140" - 0) + +".01" * x0 + w8.T9("57" | 8) + ".45" * 1 * u7 + w8.T9(140) + .055 * x0 + w8.t1(+"47") + .65 * u7 * +".32" + w8.t1(+"140") + +".185" * x0 + w8.T9("137" << 0) + x0 + w8.T9(+"177");V_.flipGradientTransform=w8.T9("8" | 8) + (q8 - i1) + w8.T9("158" >> 64) + -p5 + w8.t1(+"20");e1=Math.tan(p5) * J0;l_=m2 - B5;l_=l_ < +".03" * P5?+".03" * P5:l_ > .3 * P5?(".3" - 0) * P5:l_;V_.innerReflexBottomBackground=p0 + w8.t1("213" - 0) + .45 * u7 + w8.T9(+"72") + l_ + w8.t1("177" | 32);V_.innerReflexBottomTransform=w8.T9(8) + (P5 - W8 - e1) + w8.t1(+"158") + p5 + w8.T9("20" | 16);l7=l_ * (+".45" + L5 / ("2" * 1));V_.innerReflexBackground=p0 + w8.t1(+"77") + (".1" - 0 + "1.6" * 1 * L5 * +".4") + w8.t1(+"72") + l7 + w8.t1(177);V_.innerReflexTransform=w8.T9(+"8") + (P5 - W8 - c7 - e1) + w8.t1("158" * 1) + p5 + w8.T9("20" << 32);V_.reflexContainerTransform=w8.T9("8" | 8) + (p2 - P5 + g9) + w8.t1(+"7") + w1 + w8.T9("130" >> 64) + -p5 + w8.T9(+"20");}else if(w8.T9(1) === Y8){o9=g9 / Math.cos(p5);D4=Math.tan(p5) * C2;n6=D4 > +"0"?o9 + D4:g9;D4 > "0" - 0 && (n6=Math.cos(p5) * n6);V_.flipGradientBackground=p0 + w8.t1("170" << 0) + .45 * u7 + w8.T9("28" ^ 0) + (".15" - 0) * u7 + w8.T9(+"140") + ".01" * 1 * n6 + w8.t1("57" << 0) + (".45" - 0) * u7 + w8.T9("140" << 32) + +".055" * n6 + w8.T9("47" | 0) + +".65" * u7 * (".32" - 0) + w8.T9(140) + .185 * n6 + w8.t1(137) + n6 + w8.t1("177" - 0);V_.flipGradientTransform=w8.T9(8) + (b0 - o9) + w8.T9("158" >> 96) + -p5 + w8.T9(20);F1=B5 - m2;F1=F1 < ".03" * 1 * P5?.03 * P5:F1 > +".3" * P5?".3" * 1 * P5:F1;V_.innerReflexBottomBackground=p0 + w8.t1(77) + (".45" - 0) * u7 + w8.T9(+"72") + F1 + w8.T9(177);V_.innerReflexBottomTransform=w8.T9(+"8") + (o9 - H7) + w8.t1(+"158") + p5 + w8.T9(20);q$=F1 * (".45" * 1 + L5 / ("2" - 0));V_.innerReflexBackground=p0 + w8.t1("213" | 4) + (".1" * 1 + 1.6 * L5 * .4) + w8.t1(+"72") + q$ + w8.T9("177" >> 32);V_.innerReflexTransform=w8.t1("8" * 1) + o9 + w8.T9("158" << 0) + p5 + w8.t1("20" * 1);V_.reflexContainerTransform=w8.T9("8" >> 64) + -g9 + w8.t1(7) + w1 + w8.t1(130) + -p5 + w8.t1(20);}else {C8=g9 / Math.cos(p5);S7=Math.tan(p5) * C2;y5=S7 < +"0"?C8 - S7:g9;S7 < +"0" && (y5=Math.cos(p5) * y5);V_.flipGradientBackground=p0 + w8.T9(+"170") + +".45" * u7 + w8.t1("28" * 1) + +".15" * u7 + w8.T9(+"140") + (".01" - 0) * y5 + w8.T9(+"57") + (".45" - 0) * u7 + w8.t1(+"140") + ".055" * 1 * y5 + w8.T9(47) + .65 * u7 * .32 + w8.T9("140" * 1) + .185 * y5 + w8.T9(137) + y5 + w8.t1(+"177");V_.flipGradientTransform=w8.T9(+"8") + (b0 - C8) + w8.T9("158" - 0) + -p5 + w8.T9("20" - 0);F7=B5 - m2;F7=F7 < ".03" * 1 * P5?+".03" * P5:F7 > +".3" * P5?+".3" * P5:F7;V_.innerReflexBottomBackground=p0 + w8.T9(+"77") + (".45" - 0) * u7 + w8.T9(72) + F7 + w8.t1(+"177");V_.innerReflexBottomTransform=w8.T9(8) + (C8 - H7) + w8.T9(+"158") + p5 + w8.T9(+"20");R6=F7 * (".45" * 1 + L5 / 2);V_.innerReflexBackground=p0 + w8.T9(213) + (".1" - 0 + 1.6 * L5 * (".4" - 0)) + w8.t1(72) + R6 + w8.T9(+"177");V_.innerReflexTransform=w8.t1(+"8") + C8 + w8.T9("158" >> 96) + p5 + w8.T9(+"20");V_.reflexContainerTransform=w8.t1(8) + -g9 + w8.T9("7" << 32) + w1 + w8.T9("130" ^ 0) + -p5 + w8.T9("20" >> 32);}if((this[w3].reversePage.style[A4]=V_.reversePageTransform,this[w3].mask.style[A4]=V_.maskTransform,this[w3].frontPage.style[A4]=V_.frontPageTransform,this[w3].flipGradient.style.background=V_.flipGradientBackground,this[w3].flipGradient.style[A4]=V_.flipGradientTransform,v7 || w8.t1(+"2") === this.bookState.version?this.innerReflexBottom.style.display=w8.T9("132" >> 64):(this.innerReflexBottom.style.background=V_.innerReflexBottomBackground,this.innerReflexBottom.style[A4]=V_.innerReflexBottomTransform,this[w3].innerReflex.style.background=V_.innerReflexBackground,this[w3].innerReflex.style[A4]=V_.innerReflexTransform,this[w3].innerReflex.style.display=+"0" === u7?w8.t1("132" << 64):w8.T9(+"187")),this.bookState.singleMode)){if(-("1" - 0) !== Y8.indexOf(this.bookState.rtl?w8.T9("171" | 0):w8.t1("22" >> 32))){l0=L5 < ".85" * 1?"1" | 0:+"1" - Math.pow((L5 - .85) / +".15","2" - 0);l0=l0 <= +"0"?+"0":l0;this[w3].frontPage.style.opacity=l0;this[w3].reversePage.style.opacity=l0;this[w3].innerReflex.style.opacity=l0;this.innerReflexBottom.style.opacity=+"1";}if(-("1" - 0) !== Y8.indexOf(this.bookState.rtl?w8.T9(+"22"):w8.T9(+"171"))){Z3=L5 > +".7"?"1" * 1:Math.pow(L5 / (".7" * 1),+"2");Z3=Z3 <= 0?"0" >> 64:Z3;this[w3].frontPage.style.opacity=L5 > ".3" - 0?Math.pow((L5 - +".3") / (".7" * 1),+"2"):+"0";this[w3].reversePage.style.opacity=Z3;this[w3].innerReflex.style.opacity=Z3;this.innerReflexBottom.style.opacity=+"0";}}this[w3].reflexContainer.style[A4]=V_.reflexContainerTransform;this.follow=new O(t_,M0);this.corner=new O(j4,k3);this.radius1=new O(b7,M7);this.radius2=new O(A_,j9);this.progress=L5;this.renderData=V_;this.middle={'\u0078':u3,'\u0079':v9,'\u0064\u0069\u0073\u0074':g9,'\u0061\u006c\u0066\u0061':p5,'\u0064\u0069\u0073\u0074\u0058':W8,'\u0064\u0069\u0073\u0074\u0059':J0};(this.bookState.left.isFirstSheet && -+"1" !== Y8.indexOf(w8.T9(+"171")) || this.bookState.left.isLast || this.bookState.right.isFirst || this.bookState.right.isLastSheet && -1 !== Y8.indexOf(w8.t1(+"22")) || U_.fakePointer && this.bookState.left.isFirstSheet || U_.fakePointer && this.bookState.right.isLastSheet) && this.setDynamicStyles(!("0" << 32));}};y.prototype.finishRender=function(l4,B2,r9,f0){var n7=j65Rg;var m_,b_,u$,v_,d2,B0;n7.l9();if((l4=l4 || !+"1",this.postPager=!+"1",!this.destroyed))if(n7.t1("144" << 0) !== this[this.currentWrapper].type){m_=this.progress < .5?this.corner.x - this.startX:n7.T9(120) === this.startPoint || n7.t1("164" << 64) === this.startPoint?this.corner.x - this.startX + this.bookWidth:this.corner.x - this.startX - this.bookWidth;n7.T9("22" ^ 0) === B2?(this.progress=+".9",m_=this.corner.x - this.startX - this.bookWidth):n7.t1(+"171") === B2 && (this.progress=".9" * 1,m_=this.corner.x - this.startX + this.bookWidth);b_=this.corner.y - this.startY;u$=this.corner.x;v_=this.corner.y;d2=this;this.deltaFromCorner="0" ^ 0;B0=function(){var g$,w5;g$={'\u0070\u0061\u0067\u0065\u0058':u$,'\u0070\u0061\u0067\u0065\u0059':v_};w5=function(){d2.render({'\u0070\u0061\u0067\u0065\u0058':u$ - m_,'\u0070\u0061\u0067\u0065\u0059':v_ - b_},!+"0");d2.destroyed || (d2.progress > .5 && (n7.T9(+"120") === d2.startPoint || n7.T9("164" << 64) === d2.startPoint?d2[d2.currentWrapper].setLeft():d2[d2.currentWrapper].setRight()),n.default.removeClass(d2[d2.currentWrapper].mask,n7.T9(+"125")),d2.state=n7.T9(+"46"),Object(p.getStore)().dispatch(n7.t1(12),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':n7.t1(+"46")}),d2[d2.currentWrapper].mask.style.top=n7.t1("155" - 0),d2[d2.currentWrapper].mask.style[d2.transformMethod]=n7.t1(+"187"),d2[d2.currentWrapper].frontPage.style[d2.transformMethod]=n7.t1("187" - 0),d2[d2.currentWrapper].reversePage.style[d2.transformMethod]=n7.t1(197),d2.innerReflexBottom.style[d2.transformMethod]=n7.t1("110" | 96),d2.innerReflexBottom.style.display=n7.t1("187" - 0),d2[d2.currentWrapper].reflexMask && (d2[d2.currentWrapper].reflexMask.style.overflow=n7.T9("187" | 3)),d2.progress > .5 && !r9 && (n7.T9(120) === d2.startPoint || n7.T9("164" | 0) === d2.startPoint?d2.trigger(n7.t1("51" - 0)):d2.trigger(n7.T9(+"118"))),r9?d2.trigger(n7.T9(+"200"),f0):d2.trigger(n7.T9("34" | 2),f0),d2.progress > .5 && r9 && (n7.T9(120) === d2.startPoint || n7.T9(+"164") === d2.startPoint?d2.trigger(n7.T9("92" - 0)):d2.trigger(n7.t1(+"106"))),n.default.removeClass(d2.globalWrapper,n7.T9("82" * 1)),d2.progress="1" * 1);};l4?w5():d2.tween=new c.a.Tween(g$).to({'\u0070\u0061\u0067\u0065\u0058':u$ - m_,'\u0070\u0061\u0067\u0065\u0059':v_ - b_},"350" >> 64).easing(c.a.Easing.Sinusoidal.Out).onUpdate(function(){l4 || d2.render(g$);}).onComplete(w5).start();};this.tween && this.tween._isPlaying?this.tween.onStop(function(){n7.H5();B0();}).stop():B0();}else this.finishRenderHard(l4,B2,r9,f0);};y.prototype.startRenderHard=function(j0,s4,f9){var a8=j65Rg;var z9;z9=j0.pageX - this.bookMarginLeft;z9 > this.pageWidth && a8.T9(+"171") !== f9 || a8.T9(+"22") === f9?(this.startPoint=a8.T9("164" * 1),this.currentWrapper=a8.T9(+"206"),this.startX=this.bookMarginLeft + this.bookWidth,this.finishX=this.bookMarginLeft):(this.startPoint=a8.T9("98" << 0),this.currentWrapper=a8.T9(+"104"),this.startX=this.bookMarginLeft,this.finishX=this.bookMarginLeft + this.bookWidth);this.isIE && (this[this.currentWrapper].firstPage.style[this.transformOriginMethod]=a8.t1(+"211"),this[this.currentWrapper].secondPage.style[this.transformOriginMethod]=a8.t1(+"88"));n.default.addClass(this[this.currentWrapper].mask,a8.T9(190));a8.H5();this.trigger(a8.T9(+"124"),{'\u0064\u0072\u0061\u0067':s4,'\u0068\u0069\u0064\u0065':z9 > this.pageWidth?a8.T9(+"22"):a8.t1(+"171")});this.state=a8.t1("152" << 64);Object(p.getStore)().dispatch(a8.T9(+"12"),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':a8.t1("152" - 0)});};y.prototype.renderHard=function(Y0){var D7=j65Rg;var r3,z0,f5,m5,P2;if(!this.destroyed){f5=this.pageWidth;if((z0=(z0=(z0=D7.T9(+"164") === this.startPoint?Y0.pageX - (this.bookMarginLeft + this.pageWidth):this.bookMarginLeft + this.pageWidth - Y0.pageX) > this.pageWidth?this.pageWidth:z0) < -this.pageWidth?-this.pageWidth:z0,r3=Math.acos(z0 / f5),r3=D7.t1(164) === this.startPoint?-r3:r3,this.progress=("1" >> 64) * Math.abs(r3 / Math.PI).toFixed(2),this.pageX=Y0.pageX,this.bookState.singleMode)){if(-1 !== this.startPoint.indexOf(this.bookState.rtl?D7.t1("171" - 0):D7.t1("22" >> 0))){m5=this.progress < +".5"?"1" - 0:("1" ^ 0) - Math.pow((this.progress - +".5") / (".5" * 1),"2" | 0);m5=m5 <= +"0"?"0" | 0:m5;this[this.currentWrapper].frontPage.style.opacity=m5;this[this.currentWrapper].reversePage.style.opacity=m5;this[this.currentWrapper].mask.style[D7.T9(+"37")]=this.progress >= ".5" - 0?D7.T9(+"132"):D7.t1("187" - 0);}if(-("1" ^ 0) !== this.startPoint.indexOf(this.bookState.rtl?D7.t1(+"22"):D7.T9(+"171"))){P2=this.progress > +".5"?+"1":Math.pow(this.progress / .5,+"2");P2=P2 <= +"0"?+"0":P2;this[this.currentWrapper].frontPage.style.opacity=P2;this[this.currentWrapper].reversePage.style.opacity=P2;this[this.currentWrapper].mask.style[D7.t1("37" | 33)]=this.progress >= .5?D7.T9(+"187"):D7.T9(132);}}this.isIE?D7.T9(+"164") === this.startPoint?(this[this.currentWrapper].firstPage.style[this.transformMethod]=D7.T9(+"76") + r3 + D7.t1(+"20"),this[this.currentWrapper].secondPage.style[this.transformMethod]=D7.t1(+"62") + -S * this.pageWidth + D7.T9(+"89") + (r3 + Math.PI) + D7.T9(20)):(this[this.currentWrapper].firstPage.style[this.transformMethod]=D7.t1(+"62") + S * this.pageWidth + D7.T9("89" ^ 0) + (r3 + Math.PI) + D7.T9(+"20"),this[this.currentWrapper].secondPage.style[this.transformMethod]=D7.T9("76" | 4) + r3 + D7.t1(+"20")):this[this.currentWrapper].mask.style[this.transformMethod]=D7.t1("153" >> 0) + r3 + D7.T9("20" << 0);this.setDynamicStyles();}};y.prototype.finishRenderHard=function(N9,a7,g8,b$){var M5=j65Rg;var h0,t7,Y5,g5,m7,F2,Z9;h0=this.progress;t7={'\u0078':this.progress,'\u0070\u0061\u0067\u0065\u0058':this.pageX};Y5=M5.T9(+"164") === this.startPoint && M5.t1(171) === a7 || M5.T9(98) === this.startPoint && M5.t1(22) === a7;g5=h0 > ".35" - 0 && (M5.t1(+"164") === this.startPoint && this.bookState.right.isFirst || M5.t1(+"98") === this.startPoint && this.bookState.left.isLast);m7=h0 > ".5" * 1 || g5 || Y5;F2=this;Z9=function(){var V2;V2=function(){F2.destroyed || (F2.state=M5.t1(+"46"),Object(p.getStore)().dispatch(M5.T9("12" - 0),{'\u006e\u0065\u0077\u0053\u0074\u0061\u0074\u0065':M5.t1(+"46")}),n.default.removeClass(F2[F2.currentWrapper].mask,M5.t1("190" >> 96)),F2[F2.currentWrapper].mask.style[F2.transitionMethod]=M5.T9(187),F2.isIE?(F2[F2.currentWrapper].firstPage.style[F2.transformMethod]=M5.T9(+"187"),F2[F2.currentWrapper].secondPage.style[F2.transformMethod]=M5.t1(+"187"),F2[F2.currentWrapper].firstPage.style[F2.transformOriginMethod]=M5.t1(187),F2[F2.currentWrapper].secondPage.style[F2.transformOriginMethod]=M5.T9("187" >> 0)):F2[F2.currentWrapper].mask.style[F2.transformMethod]=M5.T9(+"187"),m7 && (M5.T9(+"164") === F2.startPoint && M5.t1(+"22") !== a7?(F2[F2.currentWrapper].setLeft(),g8 || F2.trigger(M5.t1("51" >> 0))):M5.t1("98" | 32) === F2.startPoint && M5.t1("171" - 0) !== a7 && (F2[F2.currentWrapper].setRight(),g8 || F2.trigger(M5.T9("118" * 1)))),g8?F2.trigger(M5.T9(+"200"),b$):F2.trigger(M5.T9(34),b$),m7 && g8 && (M5.T9(+"120") === F2.startPoint || M5.T9(164) === F2.startPoint?F2.trigger(M5.T9("92" * 1)):F2.trigger(M5.T9(+"106"))),n.default.removeClass(F2.globalWrapper,M5.T9(+"82")),N9 && (F2.setDynamicStyles(),F2.progress="1" ^ 0));};N9?V2():F2.tween=new c.a.Tween(t7).to({'\u0078':m7?+"1":+"0",'\u0070\u0061\u0067\u0065\u0058':m7?F2.finishX:F2.startX},+"500").easing(c.a.Easing.Sinusoidal.Out).onUpdate(function(){F2.progress=t7.x;F2.renderHard({'\u0070\u0061\u0067\u0065\u0058':t7.pageX});}).onComplete(V2).start();};this.tween && this.tween._isPlaying?this.tween.onStop(function(){M5.l9();Z9();}).stop():Z9();};y.prototype.shiftPagesLeft=function(){var e7;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" << 32));e7=this.storedStates.length > "0" >> 64?this.storedStates.shift():this.bookState.getState();this.nxtWrapper=Object(o.default)(e7,this.bookState,this.bookDiv,!("0" << 64),"2" * 1,!("1" >> 32),this.parentVm,this.contentCreator);this.trigger(j65Rg.t1(127));};y.prototype.shiftPagesRight=function(){var C1;this.nxtWrapper.destroy();j65Rg.H5();this.nxtWrapper=this.rightWrapper.setLayer(this.rightWrapper.layer - +"1");this.rightWrapper=this.leftWrapper;this.leftWrapper=this.preWrapper.setLayer(this.preWrapper.layer + +"1");C1=this.storedStates.length > 0?this.storedStates.shift():this.bookState.getState();this.preWrapper=Object(o.default)(C1,this.bookState,this.bookDiv,!("1" << 0),+"2",!("0" - 0),this.parentVm,this.contentCreator);this.trigger(j65Rg.T9(+"127"));};j65Rg.l9();y.prototype.flipToLeft=function(){var j1,k$,d_,D8,t9,I2,E2,i2;j1=this;k$=arguments.length > "0" * 1 && void +"0" !== arguments[0] && arguments[+"0"];d_=arguments.length > "1" * 1 && void ("0" ^ 0) !== arguments["1" - 0] && arguments[+"1"];D8=arguments.length > "2" * 1?arguments[2]:void +"0";if(!this.bookState.left.isLast || Object(p.getStore)().state.pager.forceFlip){t9=this._getBookLeftMargin();I2={'\u0070\u0061\u0067\u0065\u0058':t9 + this.bookWidth - 1,'\u0070\u0061\u0067\u0065\u0059':this.bookMarginTop};E2={'\u0070\u0061\u0067\u0065\u0058':t9 - ("2" - 0)};i2=function(D0,t5){j65Rg.l9();D0.pageY=j1.bookMarginTop - Math.min(j1.bookWidth,j1.bookHeight) / +"10" * (t5 > ".5" * 1?("1" >> 32) - t5:t5);};this._internalFlip(k$,d_,D8,I2,E2,i2);}};y.prototype.flipToRight=function(){var u1,c_,p7,u0,B9,I1,v1,v4;u1=this;c_=arguments.length > "0" * 1 && void 0 !== arguments[+"0"] && arguments[+"0"];p7=arguments.length > "1" * 1 && void +"0" !== arguments[+"1"] && arguments["1" * 1];u0=arguments.length > "2" - 0?arguments["2" >> 64]:void +"0";if(!this.bookState.right.isFirst || Object(p.getStore)().state.pager.forceFlip){B9=this._getBookLeftMargin();I1={'\u0070\u0061\u0067\u0065\u0058':B9 + ("1" | 0),'\u0070\u0061\u0067\u0065\u0059':this.bookMarginTop};v1={'\u0070\u0061\u0067\u0065\u0058':B9 + this.bookWidth};v4=function(I4,H2){j65Rg.H5();I4.pageY=Math.round(u1.bookMarginTop - ("100" | 36) * (H2 > +".5"?1 - H2:H2));};this._internalFlip(c_,p7,u0,I1,v1,v4);}};y.prototype._internalFlip=function(){var w0=j65Rg;var N8,j2,E6,T7,W5,s5,m0,q6,M9;w0.H5();j2=arguments.length > +"0" && void +"0" !== arguments[0] && arguments["0" - 0];E6=arguments.length > "1" >> 64 && void ("0" * 1) !== arguments[+"1"] && arguments[+"1"];T7=arguments.length > "2" >> 32?arguments[2]:void +"0";W5=arguments.length > +"3"?arguments["3" ^ 0]:void +"0";s5=arguments.length > 4?arguments["4" >> 64]:void 0;m0=arguments.length > "5" >> 0?arguments[5]:void ("0" ^ 0);this.storedStates.push(T7 || this.bookState.getState());q6=this;M9=function(){w0.H5();q6.destroyed || (Object(p.getStore)().dispatch(w0.T9("182" >> 96),w0.t1(35)),q6.once(w0.T9(34),function(){w0.H5();Object(p.getStore)().dispatch(w0.T9(+"182"),w0.T9(143));}),q6.startRender(W5,!("0" << 96)),q6.postPager=!("0" | 0),E6?q6.finishRender(!("0" << 32),null,j2):q6.tween=new c.a.Tween(W5).to(s5,("500" >> 64) / q6.speedRate).easing(c.a.Easing.Sinusoidal.Out).onUpdate(function(){w0.t1(+"144") !== q6[q6.currentWrapper].type?(m0(W5,q6.progress),W5.fakePointer=!("0" ^ 0),q6.render(W5,!+"0")):q6.renderHard(W5,!+"0");}).onComplete(function(){q6.finishRender(!0,null,j2);}).start());};(null === (N8=q6.tween) || void +"0" === N8?void +"0":N8._isPlaying)?q6._stopInternalFlip(M9):M9();};y.prototype._stopInternalFlip=function(F8){var x6,n$;n$=this;(null === (x6=this.tween) || void 0 === x6?void +"0":x6._isPlaying) && this.tween.onStop(function(){var a$L=j65Rg;var Z8;a$L.H5();Z8=-("1" | 1) !== n$.startPoint.indexOf(a$L.t1(+"171"))?a$L.T9("22" ^ 0):a$L.T9(171);n$.finishRender(!+"0",Z8,!0,!0);null == F8 || F8();}).stop();};y.prototype._getBookLeftMargin=function(){var i9,O5,S9;i9=this.bookMarginLeft;O5=this.bookWidth;if(this.bookState.hardcover && !this.bookState.singleMode){S9=Object(p.getStore)().getters[j65Rg.t1("67" << 64)];i9=null === (this.bookState.rtl?S9.rightPage:S9.leftPage)?-O5 / ("2" << 64):0;}return i9;};y.prototype.flipToPager=function(){var o6=j65Rg;var s_,C3,L6,B4,V7,S6,R9,A2,a0,J6;s_=this;o6.l9();this._stopInternalFlip();C3=!+"0";if((Object(p.getStore)().dispatch(o6.t1(160),{'\u0066\u006f\u0072\u0063\u0065\u0046\u006c\u0069\u0070':!0}),Math.max(this.leftWrapper.secondPageNum,this.rightWrapper.firstPageNum) > Math.max(this.bookState.currentLeft,this.bookState.currentRight) && (C3=!1),C3)){-("1" << 0) === this.leftWrapper.secondPageNum && this.bookState.left.isLast && n.default.addClass(this.globalWrapper,o6.T9(82));B4=null !== (L6=[this.bookState.right,this.bookState.left].filter(function(N1){return !N1.isNull;})["0" * 1]) && void ("0" << 64) !== L6?L6:this.bookState.right;V7=this.bookState.hardcover && (B4.isLastSheet || B4.isLast);if((this.bookState.left.isLast || V7?(this.nxtWrapper.destroy(),this.nxtWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("0" * 1),"2" ^ 0,!("1" ^ 0),this.parentVm,this.contentCreator,o6.T9(+"22"),V7,!("0" * 1))):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)){S6=this.rightWrapper.firstPageNum;this.rightWrapper.destroy();this.rightWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("1" << 0),"3" - 0,!("1" ^ 0),this.parentVm,this.contentCreator,o6.T9(+"171"));this.rightWrapper.setRight();this.rightWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':S6});}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(o6.T9(34),function(){n.default.removeClass(s_.globalWrapper,o6.t1("82" | 80));s_.resetWrappers();},this);this.flipToLeft();}else {-+"1" === this.rightWrapper.firstPageNum && this.bookState.right.isFirst && n.default.addClass(this.globalWrapper,o6.T9("82" | 2));A2=null !== (R9=[this.bookState.left,this.bookState.right].filter(function(r0){o6.l9();return !r0.isNull;})[+"0"]) && void +"0" !== R9?R9:this.bookState.left;a0=this.bookState.hardcover && (A2.isFirstSheet || A2.isFirst);if((this.bookState.right.isFirst || a0?(this.preWrapper.destroy(),this.preWrapper=Object(o.default)(this.bookState.getState(),this.bookState,this.bookDiv,!("1" - 0),2,!("1" >> 96),this.parentVm,this.contentCreator,o6.T9(171),a0)):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)){J6=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,o6.T9("22" - 0));this.leftWrapper.setLeft();this.leftWrapper.setContent({'\u0073\u0065\u0063\u006f\u006e\u0064':J6});}else this.bookState.singleMode && this.bookState.rtl || this.leftWrapper.setContent({'\u0066\u0069\u0072\u0073\u0074':null});this.once(o6.t1(+"34"),function(){n.default.removeClass(s_.globalWrapper,o6.t1("82" >> 32));o6.H5();s_.resetWrappers(!+"1");},this);this.flipToRight();}};y.prototype.initOnceSizes=function(){var Q65=j65Rg;var g3,d8,I9,x_,g0,T1,U9,V5,N_,B8,d1;g3=this.bookHeight;d8=this.maskTop;I9=this.flipGradientWidth;x_=this.flipGradientTop;g0=this.transformOriginMethod;T1=this.innerReflexWidth;U9=this.innerReflexBottomWidth;V5=this.innerReflexBottomMarginTop;N_=this.renderData;B8=this.currentWrapper;Q65.H5();d1=this.innerReflexMarginTop;switch(this.startPoint){case Q65.T9(+"120"):(this.renderData.reversePageOrigin=Q65.T9(205),this.renderData.frontPageOrigin=Q65.t1("183" - 0),this.renderData.maskOrigin=Q65.t1(+"71") + (g3 + d8) + Q65.T9(+"186"),this.renderData.flipGradientOrigin=I9 + Q65.T9(16) + (g3 + x_) + Q65.T9(186),this.renderData.innerReflexBottomOrigin=Q65.t1("97" * 1) + (g3 + V5) + Q65.t1(+"186"),this.renderData.innerReflexOrigin=T1 + Q65.t1(16) + (g3 + d1) + Q65.t1("186" | 16),this.renderData.reflexContainerOrigin=Q65.T9(+"183"));break;case Q65.T9(+"164"):(this.renderData.reversePageOrigin=Q65.T9("175" - 0),this.renderData.frontPageOrigin=Q65.t1(+"146"),this.renderData.maskOrigin=Q65.T9(71) + d8 + Q65.T9(186),this.renderData.flipGradientOrigin=I9 + Q65.T9(+"16") + x_ + Q65.T9(186),this.renderData.innerReflexBottomOrigin=Q65.t1(+"97") + V5 + Q65.t1(186),this.renderData.innerReflexOrigin=T1 + Q65.T9(+"16") + d1 + Q65.T9("186" * 1),this.renderData.reflexContainerOrigin=Q65.t1("146" * 1));break;case Q65.t1(1):(this.renderData.reversePageOrigin=Q65.T9("183" << 64),this.renderData.frontPageOrigin=Q65.t1("205" ^ 0),this.renderData.maskOrigin=Q65.t1(+"68") + (g3 + d8) + Q65.T9(186),this.renderData.flipGradientOrigin=Q65.t1(+"97") + (g3 + x_) + Q65.T9(186),this.renderData.innerReflexBottomOrigin=U9 + Q65.t1(+"16") + (g3 + V5) + Q65.t1("186" - 0),this.renderData.innerReflexOrigin=Q65.t1(97) + (g3 + d1) + Q65.t1("186" * 1),this.renderData.reflexContainerOrigin=Q65.t1("205" ^ 0));break;default:(this.renderData.reversePageOrigin=Q65.T9(146),this.renderData.frontPageOrigin=Q65.t1(+"175"),this.renderData.maskOrigin=Q65.t1(68) + d8 + Q65.t1(+"186"),this.renderData.flipGradientOrigin=Q65.t1("97" << 0) + x_ + Q65.T9("186" | 0),this.renderData.innerReflexBottomOrigin=U9 + Q65.t1("16" | 16) + V5 + Q65.t1("186" * 1),this.renderData.innerReflexOrigin=Q65.T9(97) + d1 + Q65.t1(+"186"),this.renderData.reflexContainerOrigin=Q65.T9(175));}this[B8].reversePage.style[g0]=N_.reversePageOrigin;this[B8].frontPage.style[g0]=N_.frontPageOrigin;this[B8].mask.style[g0]=N_.maskOrigin;this[B8].flipGradient.style[g0]=N_.flipGradientOrigin;this.innerReflexBottom.style[g0]=N_.innerReflexBottomOrigin;this[B8].innerReflex.style[g0]=N_.innerReflexOrigin;this[B8].reflexContainer.style[g0]=N_.reflexContainerOrigin;};y.prototype.calcStripeSizes=function(){var u4K=j65Rg;var B6,M8,r4,q7,y8,x9,R7,k7,o_,z5,P0;if(Math.max(document.documentElement.clientWidth || "0" ^ 0,window.innerWidth || +"0") <= +"480" || !this.bookState.thickness)return (this.leftStripeWidth="0" | 0,this.rightStripeWidth=+"0",this.backboneWidth=+"0",this.leftStripeBlock.style.width="0" << 0,this.rightStripeBlock.style.width=+"0",void this.bookState.set(u4K.t1(174),"0" >> 0));if(this.bookState.singleMode){q7=Object(p.getStore)().getters[u4K.t1(67)].currentPage;if((M8=(B6=Object(p.getStore)().getters[u4K.T9(56)](q7)) + ("1" << 64),r4=Object(p.getStore)().getters[u4K.T9(+"48")],this.bookState.rtl)){y8=M8;M8=r4 - B6 - ("1" << 32);B6=r4 - y8 - ("1" << 64);}}else (B6=this.bookState.currentLeft,M8=this.bookState.currentRight,r4=this.bookState.pagesCount);o_=B6 / +"2";z5=null === M8 || this.bookState.right.isLastSheet?0:(r4 - M8 + 1) / +"2";this.bookState.singleMode && !this.bookState.hardcover?k7=1:(x9=(u4K.T9("152" * 1) === this.state || u4K.T9(+"208") === this.state) && (this.bookState.left.isFirstSheet || this.bookState.right.isFirst || this.bookState.left.isLast || this.bookState.right.isLastSheet) && !(!this.postPager && this.bookState.left.isFirstSheet && u4K.T9(206) === this.currentWrapper || !this.postPager && this.bookState.right.isLastSheet && u4K.t1(+"104") === this.currentWrapper) && !(this.postPager && this.bookState.left.isFirstSheet && u4K.T9("104" * 1) === this.currentWrapper || this.postPager && this.bookState.right.isLastSheet && u4K.T9("206" | 76) === this.currentWrapper),R7=this.progress,((this.bookState.left.isFirstSheet || this.bookState.right.isLastSheet) && !this.postPager || (this.bookState.right.isFirst || this.bookState.left.isLast) && this.postPager) && (R7=+"1" - R7),k7=x9?R7:(this.bookState.right.isFirst || this.bookState.left.isLast) && u4K.t1(+"46") === this.state?+"0":"1" * 1);P0=this.stripeCanvas.width - this.bookWidth;this.bookState.singleMode && this.bookState.rtl?(this.rightStripeWidth=+"0",this.rightStripeBlock.style.width="0" ^ 0,this.leftStripeWidth=Math.floor(Object(g.default)(o_,r4,this.fittedSize,P0) * k7),this.leftStripeBlock.style.width=this.leftStripeWidth + u4K.t1("186" ^ 0)):this.bookState.singleMode?(this.leftStripeWidth="0" ^ 0,this.leftStripeBlock.style.width=+"0",this.rightStripeWidth=Math.floor(Object(g.default)(z5,r4,this.fittedSize,P0) * k7),this.rightStripeBlock.style.width=this.rightStripeWidth + u4K.t1("186" | 42)):(this.leftStripeWidth=Math.floor(Object(g.default)(o_,r4,this.fittedSize,P0) * k7),this.leftStripeBlock.style.width=this.leftStripeWidth + u4K.t1("186" << 0),this.rightStripeWidth=Math.floor(Object(g.default)(z5,r4,this.fittedSize,P0) * k7),this.rightStripeBlock.style.width=this.rightStripeWidth + u4K.t1(+"186"));u4K.l9();this.backboneWidth=this.leftStripeWidth + this.rightStripeWidth;this.bookState.set(u4K.T9("174" * 1),Object(g.default)(r4 / ("2" - 0),r4,this.fittedSize,P0));};y.prototype.calcStripeColors=function(){var e2o=j65Rg;e2o.l9();for(var T0,U1,M6,n8=[],D6=[],i7=this.bookState.pagesCount,n1=["200" ^ 0,"210" * 1,"220" | 28,"230" >> 32,+"240"],k0=function L4(){var X8;X8=Math.min(Math.floor(Math.random() * n1.length),n1.length - +"1");return X8 === T0 || X8 - 1 === T0 || X8 + ("1" - 0) === T0?L4():X8;},y0=+"0",x4=i7;y0 < x4;y0++){T0=k0();U1=+".2" * Math.random() + +".2" + 1;M6=e2o.T9(+"161") + n1[T0] + e2o.T9(+"75") + n1[T0] + e2o.T9("75" ^ 0) + n1[T0] + e2o.t1("149" << 64);n8.push(M6);D6.push(U1);}this.stripeColorArray=n8;this.stripeHeightArray=D6;};y.prototype.renderStripe=function(){var A6,V$,Q8,Z$,C7,L9,X0,u2;A6=this.stripeCanvasCTX;V$=this.stripeCanvas;Q8=this.bookWidth;Z$=this.bookHeight;C7=Math.round((V$.width - Q8) / +"2");L9=V$.width;X0=!+"1";u2=!("1" * 1);if((A6.clearRect(+"0","0" * 1,L9,V$.height),(+"0" === this.rightWrapper.firstPageNum || +"0" === this.leftWrapper.firstPageNum && this.bookState.rtl) && (X0=!0),(this.leftWrapper.secondPageNum === this.bookState.pagesCount - +"1" || this.rightWrapper.secondPageNum === this.bookState.pagesCount - ("1" >> 32) && this.bookState.rtl) && (u2=!("0" >> 64)),this.leftStripeWidth > ("0" | 0) && !X0))for(var P1=+"0",k1=this.leftStripeWidth;k1 > +"0";k1--){P1=k1 * this.stripeHeightArray[this.leftStripeWidth - k1];A6.fillStyle=this.stripeColorArray[this.leftStripeWidth - k1];A6.fillRect(C7 - k1 + 1,Math.round(P1 / ("4" << 0)),"1" - 0,Z$ - k1 / ("2" - 0));}if(this.rightStripeWidth > "0" << 32 && !u2)for(var T4=+"0",m$=+"0",f1=this.rightStripeWidth;m$ < f1;m$++){T4=m$ * this.stripeHeightArray[this.stripeColorArray.length - f1 + m$];A6.fillStyle=this.stripeColorArray[this.stripeColorArray.length - f1 + m$];A6.fillRect(C7 + Q8 + m$ - +"1",Math.round(T4 / +"4"),1,Z$ - m$ / ("2" - 0));}};R=function(j5,o4,s7,Q0,E8,w9){w9=w9 || "1" - 0;s7+=+".6" * E8;j65Rg.H5();j5.beginPath();j5.moveTo(o4,s7);j5.bezierCurveTo(o4,s7 - E8,o4 + +".6" * Q0,s7 - E8 / ("3.5" * 1),o4 + Q0,s7);j5.shadowColor=j65Rg.T9("84" ^ 0);j5.shadowBlur=w9;j5.shadowOffsetY=+".3" * -E8;j5.closePath();j5.fill();}; function O(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)")},M=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)}},T=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)},O=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))},L=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?L("right"):"lft-sdw"===t?L("left"):O(),this.bookState.hardcover&&n&&(M(),T()),this.renderStripe()},e.default=y},function(t,e,i){"use strict";i.r(e);var s=i(737),r=i(742),o=i(5);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(434),r=i(39),o=i(34);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(739),r=i(149),o=(i(741),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(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=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(151),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(434),r=i(39),o=i(34);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(167),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(446);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(170),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(448);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(173),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(450);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(763),r=i(176),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(451);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(178),n=(i(778),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(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(780),r=i(181),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(452);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(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(454);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){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(188),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(791),r=i(189),o=(i(792),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(458);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(191),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(794),r=i(192),o=(i(795),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(459);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(194),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(797),r=i(195),o=(i(798),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(461);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(197),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(800),r=i(198),o=(i(801),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(464);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(200),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(803),r=i(201),o=(i(806),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(465);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(203),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(204),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(481);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(240),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}])]);