/*! For license information please see 5.js.LICENSE.txt */ (self.webpackChunkFBPublication=self.webpackChunkFBPublication||[]).push([[5],{7005:function(t,e,i){i(4147).register({clipboard:{width:16,height:16,viewBox:"0 0 100 100",data:''}})},6174:function(t,e,i){i(4147).register({close:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},7388:function(t,e,i){i(4147).register({download:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},7558:function(t,e,i){i(4147).register({"edit-note":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},7046:function(t,e,i){i(4147).register({"file-any-print":{width:21,height:26,viewBox:"0 0 21 26",data:''}})},6092:function(t,e,i){i(4147).register({"file-any":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},7195:function(t,e,i){i(4147).register({"file-doc":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},6009:function(t,e,i){i(4147).register({"file-exe":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},8713:function(t,e,i){i(4147).register({"file-gif":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},3178:function(t,e,i){i(4147).register({"file-html":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},3848:function(t,e,i){i(4147).register({"file-jpg":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},3490:function(t,e,i){i(4147).register({"file-mp3":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},9573:function(t,e,i){i(4147).register({"file-mp4":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},254:function(t,e,i){i(4147).register({"file-pdf":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},5782:function(t,e,i){i(4147).register({"file-png":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},3310:function(t,e,i){i(4147).register({"file-ppt":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},1314:function(t,e,i){i(4147).register({"file-psd":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},2307:function(t,e,i){i(4147).register({"file-rar":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},4309:function(t,e,i){i(4147).register({"file-xls":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},3889:function(t,e,i){i(4147).register({"file-zip":{width:16,height:16,viewBox:"0 0 32 32",data:''}})},7533:function(t,e,i){i(4147).register({font:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},8892:function(t,e,i){i(4147).register({"fullscreen-out":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},8379:function(t,e,i){i(4147).register({help:{width:24,height:24,viewBox:"0 0 24 24",data:''}})},1710:function(t,e,i){i(4147).register({info:{width:16,height:16,viewBox:"0 0 16 16",data:''}})},1702:function(t,e,i){i(4147).register({"left-arrow":{width:16,height:16,viewBox:"0 0 16 16",data:''}})},7328:function(t,e,i){i(4147).register({link:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},7492:function(t,e,i){i(4147).register({mute:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},7056:function(t,e,i){i(4147).register({note:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},1953:function(t,e,i){i(4147).register({print:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},6326:function(t,e,i){i(4147).register({"right-arrow":{width:16,height:16,viewBox:"0 0 16 16",data:''}})},7773:function(t,e,i){i(4147).register({"slideshow-pause":{width:16,height:16,viewBox:"0 0 24 24",data:''}})},5288:function(t,e,i){i(4147).register({slideshow:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},9790:function(t,e,i){i(4147).register({social:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},6405:function(t,e,i){i(4147).register({sound:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},7367:function(t,e,i){i(4147).register({"text-link":{width:16,height:16,viewBox:"0 0 100 100",data:''}})},8346:function(t,e,i){i(4147).register({toc:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},6834:function(t,e,i){i(4147).register({zoomin:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},7244:function(t,e,i){i(4147).register({zoomout:{width:16,height:16,viewBox:"0 0 24 24",data:''}})},5870:function(t,e,i){"use strict";i.r(e),i.d(e,{default:function(){return Lo}});var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",t._g({class:t.publicationClasses,attrs:{dir:t.dir},on:{mouseleave:t.onMouseLeave}},t.embedScript&&!t.embedLightbox?{click:t.onClick}:{click:t.onClick,wheel:t.preventWheel}),[t.noticeShown?i("banner-notice",{ref:"noticeBanner",on:{close:t.noticeClose}}):t._e(),t._v(" "),i("div",{staticClass:"inner-container",style:t.innerContainerStyles,on:{click:t.onInnerContainerClick,contextmenu:t.onContextMenu}},[i("span",{ref:"first-trap",attrs:{tabindex:"0","aria-hidden":"true"}}),t._v(" "),t.showPreloader?i("preloader"):t._e(),t._v(" "),i("div",{class:["main-frame",t.mainClasses],attrs:{"aria-hidden":t.isPopupOpened?"true":"false"},on:{wheel:t.onWheel}},[t.topBarEnabled?i("top-toolbar"):t._e(),t._v(" "),t.bottomBarEnabled?i("bottom-toolbar",{attrs:{"ws-toggle-fullscreen":t.toggleFullscreen}}):t._e(),t._v(" "),i("book-container",{ref:"bookContainer",attrs:{size:t.containerSize,"ws-toggle-fullscreen":t.toggleFullscreen}}),t._v(" "),t.flashMessageVisibility?i("flash-message"):t._e()],1),t._v(" "),i("context-menu",{ref:"contextMenu",attrs:{"toggle-fullscreen":t.toggleFullscreen}}),t._v(" "),"toc"===t.activeSidebarComponent?i("toc-window",{ref:"opened-sidebar-component",attrs:{id:"toc-sidebar"}}):t._e(),t._v(" "),"thumbnails"===t.activeSidebarComponent?i("th-window",{ref:"opened-sidebar-component",attrs:{id:"thumbnails-sidebar"}}):t._e(),t._v(" "),"notes"===t.activeSidebarComponent?i("note-window",{ref:"opened-sidebar-component",attrs:{id:"notes-sidebar"}}):t._e(),t._v(" "),"search"===t.activeSidebarComponent?i("search-window",{ref:"opened-sidebar-component",attrs:{id:"search-sidebar"}}):t._e(),t._v(" "),i("sound"),t._v(" "),i("transition",{attrs:{name:"slide-fade"}},[t.isPopupOpened?i("popup"):t._e()],1),t._v(" "),i("span",{ref:"last-trap",attrs:{tabindex:"0","aria-hidden":"true"}})],1),t._v(" "),i("lightbox")],1)},n=[],s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"bottom-toolbar-frame",attrs:{role:"menubar"}},[i("div",{staticClass:"bottom-toolbar",class:t.toolbarClass,style:t.toolbarStyle},[i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.toc.show?i("button",{class:"svg-button icon group1"+t.tocActive,style:t.iconStyle,attrs:{role:"menuitem","aria-controls":"toc-sidebar","aria-haspopup":"tree","aria-expanded":t.tocActive?"true":"false",title:t.$t("BottomMenu.TOC_TIP"),"aria-label":t.$t("BottomMenu.TOC_TIP"),tabindex:"0"},on:{click:function(e){return t.openSidebar("toc")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"toc"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.thumbnails.show?i("button",{class:"svg-button icon group1"+t.thActive,style:t.iconStyle,attrs:{role:"menuitem","aria-controls":"thumbnails-sidebar","aria-haspopup":"grid","aria-expanded":t.thActive?"true":"false",title:t.$t("BottomMenu.THUMBNAILS_TIP"),"aria-label":t.$t("BottomMenu.THUMBNAILS_TIP"),tabindex:"0"},on:{click:function(e){return t.openSidebar("thumbnails")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"thumbnails"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.notes.show?i("button",{class:"svg-button icon group1"+t.notesActive,style:t.iconStyle,attrs:{role:"menuitem","aria-controls":"notes-sidebar","aria-haspopup":"grid","aria-expanded":t.notesActive?"true":"false",title:t.$t("BottomMenu.NOTES_BUTTON_TIP"),"aria-label":t.$t("BottomMenu.NOTES_BUTTON_TIP"),tabindex:"0"},on:{click:function(e){return t.openSidebar("notes")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"note"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:"fade"}},[t.divider1Visible?i("div",{staticClass:"divider",style:t.dividerStyle,attrs:{role:"separator","aria-hidden":"true"}}):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.share.show?i("button",{class:"svg-button icon group2"+t.socialActive,style:t.iconStyle,attrs:{role:"menuitem","aria-haspopup":"dialog","aria-expanded":"false",title:t.$t("BottomMenu.PERMALINK_TIP"),"aria-label":t.$t("BottomMenu.PERMALINK_TIP"),tabindex:"0"},on:{click:function(e){return t.openPopup("social")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"social"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.print.show?i("button",{class:"svg-button icon group2"+t.printActive,style:t.iconStyle,attrs:{role:"menuitem","aria-haspopup":"dialog","aria-expanded":"false",title:t.$t("BottomMenu.PRINT_TIP"),"aria-label":t.$t("BottomMenu.PRINT_TIP"),tabindex:"0"},on:{click:function(e){return t.openPopup("print")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"print"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.downloads.show?i("button",{class:"svg-button icon group2"+t.downloadActive,style:t.iconStyle,attrs:{role:"menuitem","aria-haspopup":"dialog","aria-expanded":"false",title:t.$t("BottomMenu.SAVE_TIP"),"aria-label":t.$t("BottomMenu.SAVE_TIP"),tabindex:"0"},on:{click:function(e){return t.openPopup("download")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"download"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:"fade"}},[t.divider2Visible?i("div",{staticClass:"divider",style:t.dividerStyle,attrs:{role:"separator","aria-hidden":"true"}}):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.sound.show?i("button",{class:"svg-button icon group3"+t.soundActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t("BottomMenu.SOUND_BUTTON_TIP"),"aria-label":t.$t("BottomMenu.SOUND_BUTTON_TIP"),tabindex:"0"},on:{click:t.toggleMuteSound,mousedown:function(t){t.preventDefault()}}},[" toggled"===t.soundActive?i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"mute"}}):i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"sound"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.zoom.show?i("button",{class:"svg-button icon group3"+t.zoomActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t(t.zoomActive?"BottomMenu.UNZOOM_BUTTON_TIP":"BottomMenu.ZOOM_BUTTON_TIP"),"aria-label":t.$t(t.zoomActive?"BottomMenu.UNZOOM_BUTTON_TIP":"BottomMenu.ZOOM_BUTTON_TIP"),tabindex:"0"},on:{click:t.toggleZoomMode,mousedown:function(t){t.preventDefault()}}},[" toggled"===t.zoomActive?i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"zoomout"}}):i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"zoomin"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.fullscreen.show?i("button",{class:"svg-button icon group3"+t.fullscreenActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t(t.fullscreenActive?"BottomMenu.NORMAL_BUTTON_TIP":"BottomMenu.FULLSCREEN_BUTTON_TIP"),"aria-label":t.$t(t.fullscreenActive?"BottomMenu.NORMAL_BUTTON_TIP":"BottomMenu.FULLSCREEN_BUTTON_TIP"),tabindex:"0"},on:{click:t.toggleFullScreen,mousedown:function(t){t.preventDefault()}}},[" toggled"===t.fullscreenActive?i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"fullscreen-out"}}):i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"fullscreen"}})],1):t._e()]),t._v(" "),i("transition",{attrs:{name:"fade"}},[t.divider3Visible?i("div",{staticClass:"divider",style:t.dividerStyle,attrs:{role:"separator","aria-hidden":"true"}}):t._e()]),t._v(" "),i("transition",{attrs:{name:t.areTransitionsAllowed?"highlight":null},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.slideshowVisible?i("button",{class:"svg-button icon group4"+t.slideshowActive,style:t.iconStyle,attrs:{role:"menuitem",title:t.$t(t.slideshowActive?"NavigationPanel.PAUSE_PAGE_TIP":"NavigationPanel.PLAY_PAGE_TIP"),"aria-label":t.$t(t.slideshowActive?"NavigationPanel.PAUSE_PAGE_TIP":"NavigationPanel.PLAY_PAGE_TIP"),tabindex:"0"},on:{click:t.toggleSlideShow,mousedown:function(t){t.preventDefault()}}},[" toggled"===t.slideshowActive?i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"slideshow-pause"}}):i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"slideshow"}})],1):t._e()])],1)])},r=[],a=(i(7056),i(5606),i(8346),i(9790),i(7533),i(1953),i(7388),i(6405),i(7492),i(5903),i(8892),i(6834),i(7244),i(7773),i(5288),i(464),i(925),i(2567)),c=i(90),l=600,u=100,h=1e3,d=10*28+3*29+22,p={props:{wsToggleFullscreen:{type:Function,default:function(){}}},data:function(){return{toc:{show:null,timeoutId:null},thumbnails:{show:null,timeoutId:null},notes:{show:null,timeoutId:null},share:{show:null,timeoutId:null},print:{show:null,timeoutId:null},downloads:{show:null,timeoutId:null},sound:{show:null,timeoutId:null},zoom:{show:null,timeoutId:null},fullscreen:{show:null,timeoutId:null},areTransitionsAllowed:!1,showPop:null,showBackground:null,timeoutId:null,scale:2,translateY:null}},computed:{attractOnControlsSet:function(){return this.$store.state.workspace.attractOnControlsSet},tocVisible:function(){return this.$store.state.toc&&this.$store.state.toc.enabled},thumbnailsVisible:function(){return this.$store.state.workspace.components.thumbnails},notesVisible:function(){return this.$store.state.workspace.components.notes},shareVisible:function(){return this.$store.state.workspace.components.share},printVisible:function(){return this.$store.state.workspace.components.print},downloadsVisible:function(){return this.$store.state.downloads&&this.$store.state.downloads.enabled},soundVisible:function(){return this.$store.getters["workspace/soundVisible"]},zoomVisible:function(){return this.$store.state.workspace.components.zoom},fullscreenVisible:function(){return this.$store.state.workspace.components.fullscreen},toolbarStyle:function(){return{"background-color":this.showBackground?this.backgroundColor:null,transform:this.showPop?"scale(".concat(this.scale,") translateY(").concat(this.translateY,"px)"):null}},toolbarClass:function(){return{"blink-light":this.blinkLight,"toolbar-animation-pop":this.showPop}},dividerStyle:function(){return{"border-color":this.showBackground?this.iconOverrideColor:null}},iconStyle:function(){return{fill:this.showBackground?this.iconOverrideColor:null}},opaqueBottom:function(){return-1!==this.$store.state.skin.styles.classes.indexOf("opaqueBottom")},backgroundColor:function(){var t=this.opaqueBottom?"main-color":"second-color";return this.$store.state.skin.styles[t]},iconOverrideColor:function(){var t=this.opaqueBottom?"main-icon-color":"second-icon-color";return this.$store.state.skin.styles[t]},blinkLight:function(){return this.showPop||this.opaqueBottom?(0,c.R)((0,c.l)(this.backgroundColor))<.5:(0,c.R)((0,c.l)(this.$store.state.skin.styles["bottom-center-background-color"]))<.5},muteSound:function(){return this.$store.state.sound.muteSound},soundActive:function(){return this.muteSound?" toggled":""},fullscreenActive:function(){return this.$store.state.workspace.fullScreenMode?" toggled":""},slideshowActive:function(){return this.$store.state.workspace.components.slideshow&&this.$store.state.workspace.components.slideshow.active?" toggled":""},isZoomed:function(){return this.$store.state.pages.size.zoomFactor>1},isRTLBook:function(){return this.$store.state.book.rightToLeft},isRTLLocale:function(){return this.$store.getters["i18n/isLocaleRtl"]},isZoomPanelVisible:function(){return this.$store.state.workspace.zoomPanel},zoomActive:function(){return this.isZoomPanelVisible||this.isZoomed?" toggled":""},thActive:function(){return"thumbnails"===this.$store.state.sidebar.opened?" toggled":""},notesActive:function(){return"notes"===this.$store.state.sidebar.opened?" toggled":""},tocActive:function(){return"toc"===this.$store.state.sidebar.opened?" toggled":""},socialActive:function(){return"social"===this.$store.state.popup.opened?" toggled":""},printActive:function(){return"print"===this.$store.state.popup.opened?" toggled":""},downloadActive:function(){return"download"===this.$store.state.popup.opened?" toggled":""},firstGroupVisible:function(){return this.toc.show||this.thumbnails.show||this.notes.show},secondGroupVisible:function(){return this.share.show||this.print.show||this.downloads.show},thirdGroupVisible:function(){return this.fullscreen.show||this.zoom.show||this.sound.show},fourthGroupVisible:function(){return this.slideshowVisible},divider1Visible:function(){return!this.narrowMode&&this.firstGroupVisible&&this.secondGroupVisible},divider2Visible:function(){return!this.narrowMode&&(this.firstGroupVisible||this.secondGroupVisible)&&this.thirdGroupVisible},divider3Visible:function(){return!this.narrowMode&&(this.firstGroupVisible||this.secondGroupVisible||this.thirdGroupVisible)&&this.fourthGroupVisible},slideshowVisible:function(){return this.$store.state.workspace.components.slideshow&&this.$store.state.workspace.components.slideshow.enabled},workspaceSize:function(){return this.$store.getters["workspace/size"]},sidebarOpened:function(){return this.$store.state.sidebar.opened},narrowMode:function(){var t=this.sidebarOpened?this.$store.state.sidebar.width:0;return this.workspaceSize.width<400+t}},watch:{muteSound:function(t){this.$store.dispatch("workspace/setFlashMessage",{text:t?this.$t("AlertMessage.SOUND_DISABLED"):this.$t("AlertMessage.SOUND_ENABLED")})},tocVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("toc",t)}},thumbnailsVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("thumbnails",t)}},notesVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("notes",t)}},shareVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("share",t)}},printVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("print",t)}},downloadsVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("downloads",t)}},soundVisible:{immediate:!1,handler:function(t,e){if(this.$store.state.workspace.bookComponent&&"string"!=typeof e)return void 0===e?null:this.toggle("sound",t)}},zoomVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("zoom",t)}},fullscreenVisible:{immediate:!1,handler:function(t,e){return void 0===e?null:this.toggle("fullscreen",t)}}},mounted:function(){var t=this;this.toc.show=this.tocVisible,this.thumbnails.show=this.thumbnailsVisible,this.notes.show=this.notesVisible,this.share.show=this.shareVisible,this.print.show=this.printVisible,this.downloads.show=this.downloadsVisible,this.sound.show=this.soundVisible,this.zoom.show=this.zoomVisible,this.fullscreen.show=this.fullscreenVisible,this.$nextTick((function(){t.areTransitionsAllowed=!0})),setTimeout(this.onResize,300),window.addEventListener("resize",this.onResize)},methods:{beforeIconAdd:function(t){a.Z.addClass(t.firstChild,"svg-before-enter")},afterIconAdd:function(t){a.Z.removeClass(t.firstChild,"svg-before-enter")},beforeIconRemove:function(t){a.Z.addClass(t.firstChild,"svg-before-leave")},afterIconRemove:function(t){a.Z.removeClass(t.firstChild,"svg-before-leave")},toggle:function(t,e){this.attractOnControlsSet?e?this.addWithPop(t):this.removeWithPop(t):e?this.add(t):this.remove(t)},addWithPop:function(t){var e=this;clearTimeout(this[t].timeoutId),clearTimeout(this.timeoutId),this.showPop=!0,this.showBackground=!0,this[t].timeoutId=setTimeout((function(){e[t].show=!0}),l),this.timeoutId=setTimeout((function(){e.showPop=!1,e.timeoutId=setTimeout((function(){e.showBackground=!1}),l-u)}),l+h+900)},add:function(t){clearTimeout(this[t].timeoutId),this[t].show=!0},removeWithPop:function(t){var e=this;clearTimeout(this[t].timeoutId),clearTimeout(this.timeoutId),this.showPop=!0,this.showBackground=!0;var i=l+300;this[t].timeoutId=setTimeout((function(){e[t].show=!1}),i),this.timeoutId=setTimeout((function(){e.showPop=!1,e.timeoutId=setTimeout((function(){e.showBackground=!1}),l-u)}),i+h+300)},remove:function(t){clearTimeout(this[t].timeoutId),this[t].show=!1},toggleZoomMode:function(){this.isZoomed?this.$root.$emit("bottomMenu:zoomOut",!1,"bottom-toolbar-zoom"):this.isZoomed||this.isZoomPanelVisible?this.$store.dispatch("workspace/setZoomPanel",!1):this.$root.$emit("bottomMenu:zoomIn","bottom-toolbar-zoom")},toggleFullScreen:function(){this.wsToggleFullscreen()},toggleMuteSound:function(){this.$store.dispatch("sound/toggleMuteSound")},openSidebar:function(t,e){null!==this.$store.state.popup.opened&&this.$store.dispatch("popup/closePopup"),this.$store.state.sidebar.opened!==t?this.$store.dispatch("sidebar/openSidebar",{component:t,params:e}):this.$store.dispatch("sidebar/closeSidebar")},openPopup:function(t,e){this.$store.dispatch("popup/openPopup",{component:t,params:e})},toggleSlideShow:function(){this.$store.dispatch("workspace/setSlideshowActive",{value:!this.slideshowActive})},onResize:function(){this.scale=this.$store.state.workspace.size.width/d*.95,this.scale=this.scale>2?2:this.scale,this.translateY=(this.$el.clientHeight-this.$store.state.workspace.size.height)/2/this.scale}},beforeDestroy:function(){window.removeEventListener("resize",this.onResize)}},f=p,v=i(1900),g=(0,v.Z)(f,s,r,!1,null,"201fc451",null).exports,m=i(5343),b=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"top-toolbar",class:t.topBarClasses,attrs:{id:"top"}},[i("h1",{staticClass:"publication-title",attrs:{id:"publication-title",dir:t.titleDirection,role:"heading","aria-level":"1","aria-label":t.title,tabindex:"-1"}},[t._v("\n "+t._s(t.title)+"\n ")]),t._v(" "),i("transition",{attrs:{name:"fade"}},[t.showAccessibilityPDF?i("span",{staticClass:"divider divider1",attrs:{role:"separator","aria-hidden":"true"}}):t._e()]),t._v(" "),i("transition",{attrs:{name:"highlight"},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.showAccessibilityPDF?i("button",{ref:"accessibilityBtn",staticClass:"accessibility-button icon icon-button",attrs:{"aria-haspopup":"dialog","aria-expanded":"false",title:t.$t("Accessibility.WINDOW_TITLE"),"aria-label":t.$t("Accessibility.WINDOW_TITLE"),tabindex:"0"},on:{click:function(e){return t.openPopup("accessibility")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{attrs:{focusable:"false",name:"accessibility"}})],1):t._e()]),t._v(" "),t.displayPages?i("span",{staticClass:"divider divider2",attrs:{role:"separator","aria-hidden":"true"}}):t._e(),t._v(" "),t.displayPages?i("pager",{ref:"pager"}):t._e(),t._v(" "),i("div",{staticClass:"space"}),t._v(" "),i("transition",{attrs:{name:t.veryCompactMode?null:"scale"}},[t.copyrightShown?i("copyright-button",{directives:[{name:"show",rawName:"v-show",value:!t.veryCompactMode,expression:"!veryCompactMode"}]}):t._e()],1),t._v(" "),t.showConfig?i("debug-controls",{attrs:{"aria-hidden":"true"}}):t._e(),t._v(" "),t.showHelpIcon?i("button",{staticClass:"help-button icon icon-button",attrs:{"aria-haspopup":"dialog","aria-expanded":"false",title:t.$t("HelpWindow.TITLE"),"aria-label":t.$t("HelpWindow.TITLE"),tabindex:"0"},on:{click:function(e){return t.openPopup("help")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{attrs:{focusable:"false",name:"help"}})],1):t._e(),t._v(" "),i("transition",{attrs:{name:"highlight"},on:{"before-enter":t.beforeIconAdd,"after-enter":t.afterIconAdd,"before-leave":t.beforeIconRemove,"after-leave":t.afterIconRemove}},[t.hideSearchIcon?t._e():i("button",{class:["search-button icon icon-button",{hidden:t.searchSidebarOpened}],attrs:{"aria-controls":"search-sidebar","aria-haspopup":"grid","aria-expanded":"false",title:t.$t("SearchToolWindow.TITLE"),"aria-label":t.$t("SearchToolWindow.TITLE"),tabindex:"0"},on:{click:function(e){return t.openSidebar("search")},mousedown:function(t){t.preventDefault()}}},[i("svgicon",{attrs:{focusable:"false",name:"search"}})],1)])],1)},w=[],y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("span",{staticClass:"pager"},[i("span",{staticClass:"pager-label",attrs:{id:"pager-label","aria-hidden":"true"}},[t._v(t._s(t.$t("TopMenu.PAGES_LABEL")))]),t._v(" "),i("input",{ref:"input",attrs:{type:"text",size:t.size,dir:"ltr",tabindex:"0","aria-label":t.pagerLabel},domProps:{value:t.stateForDisplay},on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.goTo(e)},blur:t.update,click:t.selectAll}}),t._v(" "),i("span",{staticClass:"status",attrs:{role:"status",tabindex:"-1"}},[t._v(t._s(t.status))]),t._v(" "),t.totalPagesVisible?i("span",{attrs:{role:"separator","aria-hidden":"true"}},[t._v("/")]):t._e(),t._v(" "),t.totalPagesVisible?i("span",{staticClass:"pager-total",attrs:{"aria-hidden":"true"}},[t._v(t._s(t.totalForDisplay))]):t._e()])},k=[],_={computed:{totalPagesVisible:function(){return this.$store.state.workspace.components.paginator&&!1!==this.$store.state.workspace.components.paginator.totalPagesVisible},totalForDisplay:function(){return this.$store.getters["pager/totalForDisplay"]},stateForDisplay:function(){return this.$store.getters["pager/stateForDisplay"]},size:function(){return Math.max(5,this.stateForDisplay.length)},status:function(){return this.$store.state.workspace.preloader?null:this.$store.getters["lightbox/isShown"]?this.$t("Lightbox.LIGHTBOX_STATUS",{0:this.$store.getters["lightbox/currentItemNumber"],1:this.$store.getters["lightbox/itemsCount"]}):this.$t("Other.STATUS",{0:this.stateForDisplay,1:this.totalForDisplay})},pagerLabel:function(){return this.$t("TopMenu.PAGER_LABEL")}},methods:{selectAll:function(t){t.target.select()},goTo:function(t){this.$store.dispatch("pager/goToPageByUserInput",{userInput:t.target.value,type:"caption",target:"paginator"}),t.target.blur()},update:function(t){t.target.value=this.stateForDisplay},setFocus:function(){this.$store.dispatch("workspace/setActiveInteractiveElement",null),this.$refs.input.focus()}}},C=(0,v.Z)(_,y,k,!1,null,"82ffb7c6",null).exports,$=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("span",{staticClass:"copyright-button",attrs:{id:"copyright-button"}},[i("a",{attrs:{target:t.target,dir:t.labelDirection,id:"copyright-link",href:t.url,role:"menuitem","aria-label":t.label,tabindex:"0"},on:{click:t.onClick}},[t._v(t._s(t.label))])])},x=[],T=i(8531),S=i(6382),I=i.n(S),P={computed:{label:function(){return(0,T.m9)(this.$store.state.workspace.components.copyright.label)},labelDirection:function(){return"ltr"===I().getDirection(this.label)?"ltr":"rtl"},url:function(){return this.$store.state.workspace.components.copyright.url||null},target:function(){return this.$store.state.workspace.components.copyright.target||"_blank"}},methods:{onClick:function(){var t=this.$store.state.pager.currentPage;this.$root.$emit("link",{type:"external",source:"copyright",url:this.url,target:this.target,pageId:t})}}},E=(0,v.Z)(P,$,x,!1,null,"0dcd435e",null).exports,A=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"debug-controls",attrs:{"aria-hidden":"true"}},[i("button",{staticClass:"debug icon icon-button",class:{toggled:t.showMenu},attrs:{tabindex:"-1"},on:{click:t.toggleDebugMenu}},[t._v("Debug")]),t._v(" "),i("transition",{attrs:{name:"debug-fade"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.showMenu,expression:"showMenu"}],staticClass:"wrapper",attrs:{dir:"ltr"}},[i("div",{staticClass:"publication-info",on:{click:t.openPublicationInfo}},[t._v("Publication Info")]),t._v(" "),i("ul",[i("li",{staticClass:"toggle",class:{toggled:t.sections.book}},[i("div",{staticClass:"caption",on:{click:function(e){return t.toggleSection("book")}}},[i("span",{staticClass:"section-icon"}),t._v("Book")]),t._v(" "),i("ul",[i("li",[i("label",{attrs:{for:"input-flip"}},[t._v("Flip:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.flip,expression:"flip"}],attrs:{id:"input-flip",type:"checkbox"},domProps:{checked:Array.isArray(t.flip)?t._i(t.flip,null)>-1:t.flip},on:{change:function(e){var i=t.flip,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.flip=i.concat([s])):r>-1&&(t.flip=i.slice(0,r).concat(i.slice(r+1)))}else t.flip=n}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-pager"}},[t._v("Pager mode:")]),t._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:t.pagerMode,expression:"pagerMode"}],attrs:{id:"input-pager"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.pagerMode=e.target.multiple?i:i[0]}}},[i("option",{attrs:{value:"spread"}},[t._v("Spread "+t._s(t.flip?"":"*"))]),t._v(" "),i("option",{attrs:{value:"single"}},[t._v("Single "+t._s(t.flip?"":"*"))]),t._v(" "),t.flip?i("option",{attrs:{value:"auto"}},[t._v("Auto")]):t._e(),t._v(" "),t.flip?t._e():i("option",{attrs:{value:"slide"}},[t._v("Slide")])])]),t._v(" "),!t.flip||"single"!==t.pagerMode&&"auto"!==t.pagerMode?t._e():i("li",[i("label",{attrs:{for:"input-translucent-reverse-side"}},[t._v("Translucent reverse side:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.isTranslucentReverseSide,expression:"isTranslucentReverseSide"}],attrs:{id:"input-translucent-reverse-side",type:"checkbox"},domProps:{checked:Array.isArray(t.isTranslucentReverseSide)?t._i(t.isTranslucentReverseSide,null)>-1:t.isTranslucentReverseSide},on:{change:function(e){var i=t.isTranslucentReverseSide,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.isTranslucentReverseSide=i.concat([s])):r>-1&&(t.isTranslucentReverseSide=i.slice(0,r).concat(i.slice(r+1)))}else t.isTranslucentReverseSide=n}}})]),t._v(" "),t.flip||"slide"!==t.pagerMode?t._e():i("li",[i("label",{attrs:{for:"input-crop"}},[t._v("Content crop:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.cropMode,expression:"cropMode"}],attrs:{id:"input-crop",type:"checkbox",disabled:t.flip},domProps:{checked:Array.isArray(t.cropMode)?t._i(t.cropMode,null)>-1:t.cropMode},on:{change:function(e){var i=t.cropMode,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.cropMode=i.concat([s])):r>-1&&(t.cropMode=i.slice(0,r).concat(i.slice(r+1)))}else t.cropMode=n}}})]),t._v(" "),t.flip?i("li",[i("label",{attrs:{for:"input-thickness"}},[t._v("Thickness:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.thickness,expression:"thickness"}],attrs:{id:"input-thickness",type:"checkbox"},domProps:{checked:Array.isArray(t.thickness)?t._i(t.thickness,null)>-1:t.thickness},on:{change:function(e){var i=t.thickness,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.thickness=i.concat([s])):r>-1&&(t.thickness=i.slice(0,r).concat(i.slice(r+1)))}else t.thickness=n}}})]):t._e(),t._v(" "),t.flip?i("li",[i("label",{attrs:{for:"input-hardcover"}},[t._v("Hardcover:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.hardcover,expression:"hardcover"}],attrs:{id:"input-hardcover",type:"checkbox",disabled:!t.flip},domProps:{checked:Array.isArray(t.hardcover)?t._i(t.hardcover,null)>-1:t.hardcover},on:{change:function(e){var i=t.hardcover,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.hardcover=i.concat([s])):r>-1&&(t.hardcover=i.slice(0,r).concat(i.slice(r+1)))}else t.hardcover=n}}}),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.hardcoverColor,expression:"hardcoverColor"}],staticClass:"hc-color",attrs:{id:"input-hardcover-color",type:"color",disabled:!t.flip},domProps:{value:t.hardcoverColor},on:{input:function(e){e.target.composing||(t.hardcoverColor=e.target.value)}}})]):t._e(),t._v(" "),i("li",[i("label",{attrs:{for:"input-rtl"}},[t._v("RTL Book:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.rtl,expression:"rtl"}],attrs:{id:"input-rtl",type:"checkbox"},domProps:{checked:Array.isArray(t.rtl)?t._i(t.rtl,null)>-1:t.rtl},on:{change:function(e){var i=t.rtl,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.rtl=i.concat([s])):r>-1&&(t.rtl=i.slice(0,r).concat(i.slice(r+1)))}else t.rtl=n}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-num-offset"}},[t._v("Num offset:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.numerationOffset,expression:"numerationOffset"}],staticClass:"num-offset",attrs:{id:"input-num-offset",type:"number",placeholder:"0",size:"3",step:"1"},domProps:{value:t.numerationOffset},on:{input:function(e){e.target.composing||(t.numerationOffset=e.target.value)}}})])])]),t._v(" "),i("li",{staticClass:"toggle",class:{toggled:t.sections.workspace}},[i("div",{staticClass:"caption",on:{click:function(e){return t.toggleSection("workspace")}}},[i("span",{staticClass:"section-icon"}),t._v("Workspace")]),t._v(" "),i("ul",[i("li",[i("label",{attrs:{for:"input-lang"}},[t._v("Language:")]),t._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:t.currentLocale,expression:"currentLocale"}],attrs:{id:"input-lang"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currentLocale=e.target.multiple?i:i[0]}}},t._l(t.availableLocales,(function(e){return i("option",{domProps:{value:e}},[t._v("\n "+t._s(e)+"\n ")])})),0),t._v(" "),i("button",{staticClass:"next-locale",attrs:{title:"Alt + Ctrl + ."},on:{click:t.nextLocale}},[t._v("➡️")])]),t._v(" "),i("li",[i("label",{attrs:{for:"input-book-size"}},[t._v("Book Size:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.bookSize,expression:"bookSize"}],staticClass:"book-size",attrs:{id:"input-book-size",type:"number",placeholder:"95",size:"3",step:"1"},domProps:{value:t.bookSize},on:{input:function(e){e.target.composing||(t.bookSize=e.target.value)}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-select-text"}},[t._v("Text Selection:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.selectText,expression:"selectText"}],attrs:{id:"input-select-text",type:"checkbox"},domProps:{checked:Array.isArray(t.selectText)?t._i(t.selectText,null)>-1:t.selectText},on:{change:function(e){var i=t.selectText,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.selectText=i.concat([s])):r>-1&&(t.selectText=i.slice(0,r).concat(i.slice(r+1)))}else t.selectText=n}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-search"}},[t._v("Search:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],attrs:{id:"input-search",type:"checkbox"},domProps:{checked:Array.isArray(t.search)?t._i(t.search,null)>-1:t.search},on:{change:function(e){var i=t.search,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.search=i.concat([s])):r>-1&&(t.search=i.slice(0,r).concat(i.slice(r+1)))}else t.search=n}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-accessibility"}},[t._v("Accessibility:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.accessibility,expression:"accessibility"}],attrs:{id:"input-accessibility",type:"checkbox"},domProps:{checked:Array.isArray(t.accessibility)?t._i(t.accessibility,null)>-1:t.accessibility},on:{change:function(e){var i=t.accessibility,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.accessibility=i.concat([s])):r>-1&&(t.accessibility=i.slice(0,r).concat(i.slice(r+1)))}else t.accessibility=n}}})])])]),t._v(" "),i("li",{staticClass:"toggle",class:{toggled:t.sections.components}},[i("div",{staticClass:"caption",on:{click:function(e){return t.toggleSection("components")}}},[i("span",{staticClass:"section-icon"}),t._v("Bottom Menu")]),t._v(" "),i("ul",[i("li",[i("label",{attrs:{for:"input-attract"}},[t._v("Raise bar:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.attract,expression:"attract"}],attrs:{id:"input-attract",type:"checkbox"},domProps:{checked:Array.isArray(t.attract)?t._i(t.attract,null)>-1:t.attract},on:{change:function(e){var i=t.attract,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.attract=i.concat([s])):r>-1&&(t.attract=i.slice(0,r).concat(i.slice(r+1)))}else t.attract=n}}})]),t._v(" "),i("li",{staticClass:"divider"}),t._v(" "),i("li",[i("label",{attrs:{for:"input-toc"}},[t._v("TOC:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.toc,expression:"toc"}],attrs:{id:"input-toc",type:"checkbox"},domProps:{checked:Array.isArray(t.toc)?t._i(t.toc,null)>-1:t.toc},on:{change:function(e){var i=t.toc,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.toc=i.concat([s])):r>-1&&(t.toc=i.slice(0,r).concat(i.slice(r+1)))}else t.toc=n}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-thumbnails"}},[t._v("Thumbnails:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.thumbnails,expression:"thumbnails"}],attrs:{id:"input-thumbnails",type:"checkbox"},domProps:{checked:Array.isArray(t.thumbnails)?t._i(t.thumbnails,null)>-1:t.thumbnails},on:{change:function(e){var i=t.thumbnails,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.thumbnails=i.concat([s])):r>-1&&(t.thumbnails=i.slice(0,r).concat(i.slice(r+1)))}else t.thumbnails=n}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-notes"}},[t._v("Notes:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.notes,expression:"notes"}],attrs:{id:"input-notes",type:"checkbox"},domProps:{checked:Array.isArray(t.notes)?t._i(t.notes,null)>-1:t.notes},on:{change:function(e){var i=t.notes,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.notes=i.concat([s])):r>-1&&(t.notes=i.slice(0,r).concat(i.slice(r+1)))}else t.notes=n}}})]),t._v(" "),i("li",{staticClass:"divider"}),t._v(" "),i("li",[i("label",{attrs:{for:"input-share"}},[t._v("Share:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.share,expression:"share"}],attrs:{id:"input-share",type:"checkbox"},domProps:{checked:Array.isArray(t.share)?t._i(t.share,null)>-1:t.share},on:{change:function(e){var i=t.share,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.share=i.concat([s])):r>-1&&(t.share=i.slice(0,r).concat(i.slice(r+1)))}else t.share=n}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-print"}},[t._v("Print:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.print,expression:"print"}],attrs:{id:"input-print",type:"checkbox"},domProps:{checked:Array.isArray(t.print)?t._i(t.print,null)>-1:t.print},on:{change:function(e){var i=t.print,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.print=i.concat([s])):r>-1&&(t.print=i.slice(0,r).concat(i.slice(r+1)))}else t.print=n}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-download"}},[t._v("Download:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.download,expression:"download"}],attrs:{id:"input-download",type:"checkbox"},domProps:{checked:Array.isArray(t.download)?t._i(t.download,null)>-1:t.download},on:{change:function(e){var i=t.download,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.download=i.concat([s])):r>-1&&(t.download=i.slice(0,r).concat(i.slice(r+1)))}else t.download=n}}})]),t._v(" "),i("li",{staticClass:"divider"}),t._v(" "),i("li",[i("label",{attrs:{for:"input-sound"}},[t._v("Sound:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.sound,expression:"sound"}],attrs:{id:"input-sound",type:"checkbox"},domProps:{checked:Array.isArray(t.sound)?t._i(t.sound,null)>-1:t.sound},on:{change:function(e){var i=t.sound,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.sound=i.concat([s])):r>-1&&(t.sound=i.slice(0,r).concat(i.slice(r+1)))}else t.sound=n}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-zoom"}},[t._v("Zoom:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.zoom,expression:"zoom"}],attrs:{id:"input-zoom",type:"checkbox"},domProps:{checked:Array.isArray(t.zoom)?t._i(t.zoom,null)>-1:t.zoom},on:{change:function(e){var i=t.zoom,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.zoom=i.concat([s])):r>-1&&(t.zoom=i.slice(0,r).concat(i.slice(r+1)))}else t.zoom=n}}})]),t._v(" "),i("li",[i("label",{attrs:{for:"input-fullscreen"}},[t._v("Fullscreen:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.fullscreen,expression:"fullscreen"}],attrs:{id:"input-fullscreen",type:"checkbox"},domProps:{checked:Array.isArray(t.fullscreen)?t._i(t.fullscreen,null)>-1:t.fullscreen},on:{change:function(e){var i=t.fullscreen,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.fullscreen=i.concat([s])):r>-1&&(t.fullscreen=i.slice(0,r).concat(i.slice(r+1)))}else t.fullscreen=n}}})]),t._v(" "),i("li",{staticClass:"divider"}),t._v(" "),i("li",[i("label",{attrs:{for:"input-slideshow"}},[t._v("Slideshow:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.slideshow,expression:"slideshow"}],attrs:{id:"input-slideshow",type:"checkbox"},domProps:{checked:Array.isArray(t.slideshow)?t._i(t.slideshow,null)>-1:t.slideshow},on:{change:function(e){var i=t.slideshow,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.slideshow=i.concat([s])):r>-1&&(t.slideshow=i.slice(0,r).concat(i.slice(r+1)))}else t.slideshow=n}}})])])]),t._v(" "),i("li",{staticClass:"toggle",class:{toggled:t.sections.skin}},[i("div",{staticClass:"caption",on:{click:function(e){return t.toggleSection("skin")}}},[i("span",{staticClass:"section-icon"}),t._v("Skin")]),t._v(" "),i("ul",[i("li",[i("label",{attrs:{for:"input-skin"}},[t._v("Skin:")]),t._v(" "),i("select",{directives:[{name:"model",rawName:"v-model",value:t.currentSkin,expression:"currentSkin"}],staticClass:"skin-selector",attrs:{id:"input-skin"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.currentSkin=e.target.multiple?i:i[0]}}},t._l(t.skinList,(function(e){return i("option",{domProps:{value:e}},[t._v("\n "+t._s(e)+"\n ")])})),0),t._v(" "),i("button",{staticClass:"next-skin",attrs:{title:"Alt + Ctrl + /"},on:{click:t.nextSkin}},[t._v("➡️")])]),t._v(" "),i("li",[i("label",{attrs:{for:"input-main-color"}},[t._v("Main color:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.mainSkinColor,expression:"mainSkinColor"}],staticClass:"skin-color",attrs:{id:"input-main-color",type:"color"},domProps:{value:t.mainSkinColor},on:{input:function(e){e.target.composing||(t.mainSkinColor=e.target.value)}}}),i("span",{staticClass:"color-hex"},[t._v(t._s(t.mainSkinColor))])]),t._v(" "),i("li",[i("label",{attrs:{for:"input-second-color"}},[t._v("Second color:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.secondSkinColor,expression:"secondSkinColor"}],staticClass:"skin-color",attrs:{id:"input-second-color",type:"color"},domProps:{value:t.secondSkinColor},on:{input:function(e){e.target.composing||(t.secondSkinColor=e.target.value)}}}),i("span",{staticClass:"color-hex"},[t._v(t._s(t.secondSkinColor))])]),t._v(" "),i("li",[i("label",{attrs:{for:"input-bg-image"}},[t._v("Bg Image:")]),t._v(" "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.bgImageUrl,expression:"bgImageUrl"}],staticClass:"bg-image-input",attrs:{id:"input-bg-image",type:"text"},domProps:{value:t.bgImageUrl},on:{input:function(e){e.target.composing||(t.bgImageUrl=e.target.value)}}})])])]),t._v(" "),t.showConfig?[i("li",{staticClass:"toggle",class:{toggled:t.sections.apiEventsLog}},[i("div",{staticClass:"caption",on:{click:function(e){return t.toggleSection("apiEventsLog")}}},[i("span",{staticClass:"section-icon"}),t._v("api events")]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.sections.apiEventsLog,expression:"sections.apiEventsLog"}],staticClass:"api-log"},t._l(t.apiEventsLog.slice().reverse(),(function(e,o){return i("div",{key:o,staticClass:"api-log-element"},[t._v("\n "+t._s(e)+"\n "),0===o?i("div",{staticClass:"api-log-element-latest-tag"},[t._v("LATEST")]):t._e()])})),0)]),t._v(" "),t.apiUsageLog.length?i("li",{staticClass:"toggle",class:{toggled:t.sections.apiUsageLog}},[i("div",{staticClass:"caption",on:{click:function(e){return t.toggleSection("apiUsageLog")}}},[i("span",{staticClass:"section-icon"}),t._v("api usage\n ")]),t._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:t.sections.apiUsageLog,expression:"sections.apiUsageLog"}],staticClass:"api-log"},t._l(t.apiUsageLog.slice().reverse(),(function(e,o){return i("div",{key:o,staticClass:"api-log-element",attrs:{title:"getProperty('"+e.target+"').set({param: "+e.param+", value: "+e.value+"})"}},[t._v("\n "+t._s(e.target.slice(0,1).toUpperCase())+" "+t._s(e.param)+"\n "),0===o?i("div",{staticClass:"api-log-element-latest-tag"},[t._v("LATEST")]):t._e()])})),0)]):i("li",{staticClass:"section-empty"},[t._v("No api usage yet")])]:t._e()],2)])])],1)},L=[],z=i(5622),M=i(776),O={data:function(){var t=JSON.parse((0,M.Z)().getLocalStorage().getItem("showConfigSections"))||{};return{showMenu:!1,sections:{book:t.book||!1,workspace:t.workspace||!1,components:t.components||!1,skin:t.skin||!1,apiEventsLog:t.apiEventsLog||!1,apiUsageLog:t.apiUsageLog||!1},skinList:["current"],currentSkin:"current",api:this.$root.$options.api}},beforeMount:function(){this.setSkinColorThrottled=(0,z.P2)(this.setSkinColor,200),this.loadSkinList(),i.g.addEventListener("keydown",this.keyDownHandler)},beforeDestroy:function(){i.g.removeEventListener("keydown",this.keyDownHandler)},computed:{layout:function(){return this.$store.state.workspace.layout},availableLocales:function(){var t=this;return Object.keys(this.$store.state.workspace.locales).length>0?this.$store.state.i18n.config.locales.filter((function(e){return-1!==t.$store.state.workspace.locales.indexOf(e)})):this.$store.state.i18n.config.locales},currentLocale:{get:function(){return this.$store.state.i18n.currentLocale},set:function(t){this.setLocale(t)}},thickness:{get:function(){return this.$store.state.book.thickness},set:function(t){this.apiSetPagesValue("thickness",t)}},isTranslucentReverseSide:{get:function(){return this.$store.state.workspace.components.book.isTranslucentReverseSide},set:function(t){this.setWorkspaceBookComponent({isTranslucentReverseSide:t}),this.$store.state.pager.singleMode&&this.$store.dispatch("pager/setForceRerender",{forceRerender:!0})}},hardcover:{get:function(){return this.$store.getters["book/hasHardcover"]},set:function(t){this.apiSetPagesValue("hardcover",t)}},hardcoverColor:{get:function(){return this.$store.state.book.hardcoverColor},set:function(t){this.apiSetPagesValue("hardcoverColor",t)}},numerationOffset:{get:function(){return this.$store.state.book.numerationOffset},set:function(t){var e=parseInt(t,10);isNaN(e)||this.apiSetPagesValue("numerationOffset",e)}},bookSize:{get:function(){return this.$store.state.workspace.bookSize},set:function(t){this.apiSetWorkspaceValue("bookSize",t)}},rtl:{get:function(){return this.$store.state.book.rightToLeft},set:function(t){this.apiSetPagesValue("rightToLeft",t)}},flip:{get:function(){return this.$store.state.workspace.components.book.flip},set:function(t){this.setWorkspaceBookComponent({flip:t})}},cropMode:{get:function(){return this.$store.state.book.contentCrop},set:function(t){this.apiSetPagesValue("contentCrop",t)}},pagerMode:{get:function(){return"auto"===this.$store.state.workspace.components.book.flipbookType?"auto":this.$store.state.pager.mode},set:function(t){this.flip||"slide"===t?this.setWorkspaceBookComponent({flipbookType:t}):this.$store.dispatch("pager/changeMode",{mode:t,target:"debug"})}},attract:{get:function(){return this.$store.state.workspace.attractOnControlsSet},set:function(t){this.apiSetWorkspaceValue("attractOnControlsSet",t)}},toc:{get:function(){return this.$store.state.toc.enabled},set:function(t){this.apiSetWorkspaceValue("toc.enabled",t)}},download:{get:function(){return this.$store.state.downloads.enabled},set:function(t){this.apiSetWorkspaceValue("downloads.enabled",t)}},sound:{get:function(){return this.$store.state.sound.enabled},set:function(t){this.apiSetWorkspaceValue("sound.enabled",t)}},search:{get:function(){return this.$store.state.search.enabled},set:function(t){this.apiSetWorkspaceValue("search.enabled",t)}},accessibility:{get:function(){return this.$store.getters["workspace/accessibilityButtonVisible"]},set:function(t){this.apiSetWorkspaceValue("accessibilityPDF.enabled",t),t&&!this.$store.getters["workspace/accessibilityButtonVisible"]&&this.apiSetWorkspaceValue("accessibilityPDF.useOriginalPdf",!0)}},thumbnails:{get:function(){return this.$store.state.workspace.components.thumbnails},set:function(t){this.apiSetWorkspaceValue("components.thumbnails",t)}},notes:{get:function(){return this.$store.state.workspace.components.notes},set:function(t){this.apiSetWorkspaceValue("components.notes",t)}},share:{get:function(){return this.$store.state.workspace.components.share},set:function(t){this.apiSetWorkspaceValue("components.share",t)}},print:{get:function(){return this.$store.state.workspace.components.print},set:function(t){this.apiSetWorkspaceValue("components.print",t)}},fullscreen:{get:function(){return this.$store.state.workspace.components.fullscreen},set:function(t){this.apiSetWorkspaceValue("components.fullscreen",t)}},zoom:{get:function(){return this.$store.state.workspace.components.zoom},set:function(t){this.apiSetWorkspaceValue("components.zoom",t)}},slideshow:{get:function(){var t;return null===(t=this.$store.state.workspace.components.slideshow)||void 0===t?void 0:t.enabled},set:function(t){this.apiSetWorkspaceValue("components.slideshow.enabled",t)}},selectText:{get:function(){return this.$store.state.workspace.components.textSelection},set:function(t){this.apiSetWorkspaceValue("components.textSelection",t)}},mainSkinColor:{get:function(){return this.$store.state.skin.styles["main-color"]},set:function(t){this.setSkinColorThrottled({mainColor:t})}},secondSkinColor:{get:function(){return this.$store.state.skin.styles["second-color"]},set:function(t){this.setSkinColorThrottled({secondColor:t})}},bgImageUrl:{get:function(){return this.$store.state.skin.styles["background-image"].replace('url("',"").replace('")',"")},set:function(t){this.loadBgImage(t)}},apiEventsLog:function(){return this.$store.state.workspace.apiEventsLog},apiUsageLog:function(){return this.$store.state.workspace.apiUsageLog},showConfig:function(){return this.$store.state.workspace.showConfig}},watch:{currentSkin:"loadSkin"},methods:{openPublicationInfo:function(){this.$store.dispatch("popup/openPopup",{component:"info"})},apiSetWorkspaceValue:function(t,e){this.api.getProperty("workspace").set(t,e)},apiSetPagesValue:function(t,e){this.api.getProperty("pages").set(t,e)},setSkinColor:function(t){var e=t.mainColor,i=void 0===e?null:e,o=t.secondColor,n=void 0===o?null:o,s=t.image,r=void 0===s?null:s,a=new window.ColorsFromImage;i=i||this.$store.state.skin.styles["main-color"],n=n||this.$store.state.skin.styles["second-color"],a.setMainColor(i),a.setSecondColor(n),r&&a.setImage(r);var c=a.getVars();for(var l in c)c.hasOwnProperty(l)&&this.api.getProperty("skin").set(l,c[l])},setWorkspaceBookComponent:function(t){var e=t.flip,i=void 0===e?this.flip:e,o=t.flipbookType,n=void 0===o?this.pagerMode:o,s=t.isTranslucentReverseSide,r=void 0===s?this.isTranslucentReverseSide:s;this.apiSetWorkspaceValue("components.book",{flip:i,flipbookType:n,isTranslucentReverseSide:r})},setLocale:function(t){this.$store.dispatch("i18n/setCurrentLocale",{locale:t})},toggleSection:function(t){this.sections[t]=!this.sections[t],(0,M.Z)().getLocalStorage().setItem("showConfigSections",JSON.stringify(this.sections))},toggleDebugMenu:function(){this.showMenu=!this.showMenu},loadSkinList:function(){var t=["current"];i.g.fetch((0,M.Z)().translatePath("/skins/skins.json")).then((function(t){return t.json()})).then((function(e){e.map((function(e){t.push(e.folder)}))})),this.skinList=t},loadSkin:function(t){var e=this;i.g.fetch((0,M.Z)().translatePath("skins/".concat(t,"/config.json"))).then((function(t){return t.json()})).then((function(i){for(var o in i)i.hasOwnProperty(o)&&("background-image"===o&&(i[o]=i[o].replace("current",t)),e.api.getProperty("skin").set(o,i[o]))}))},loadBgImage:function(t){var e=this;t||(this.setSkinColor({image:null}),this.api.getProperty("skin").set("background-image",""));var i=new Image;i.onload=function(o){e.setSkinColor({image:i}),e.api.getProperty("skin").set("background-image",'url("'.concat(t,'")'))},i.src=(0,M.Z)().translatePath(t)},nextSkin:function(){var t=this.skinList.filter((function(t){return"current"!==t})),e=t.indexOf(this.currentSkin);this.currentSkin=t[e+1]||t[0]},nextLocale:function(){var t=this.availableLocales.indexOf(this.currentLocale);this.setLocale(this.availableLocales[t+1]||this.availableLocales[0])},keyDownHandler:function(t){(t.ctrlKey||t.metaKey)&&t.altKey&&"Slash"===t.code&&this.nextSkin(),(t.ctrlKey||t.metaKey)&&t.altKey&&"Period"===t.code&&this.nextLocale()}}},N=(0,v.Z)(O,A,L,!1,null,"1d38fd5e",null).exports,D=(i(6010),i(1083),i(8379),{computed:{blinkLight:function(){return this.opaqueTop?(0,c.R)((0,c.l)(this.backgroundColor))<.5:(0,c.R)((0,c.l)(this.$store.state.skin.styles["top-right-menu-icon-color"]))>.5},opaqueTop:function(){return-1!==this.$store.state.skin.styles.classes.indexOf("opaqueTop")},backgroundColor:function(){var t=this.opaqueTop?"main-color":"second-color";return this.$store.state.skin.styles[t]},title:function(){return(0,T.m9)(this.$store.state.workspace.title)},titleDirection:function(){return"ltr"===I().getDirection(this.title)?"ltr":"rtl"},hideSearchIcon:function(){return!this.$store.state.search.enabled},showHelpIcon:function(){return this.$store.state.workspace.components.help.enabled&&this.$t("HelpWindow.ABOUT_TEXT")&&this.$store.state.workspace.components.help.toolbarIcon},copyrightShown:function(){return this.$store.state.workspace.components.copyright.enabled&&this.$store.state.workspace.components.copyright.label},displayPages:function(){return!(!1===this.$store.state.workspace.components.paginator||!1===this.$store.state.workspace.components.paginator.enabled)},showConfig:function(){return!!window.FB_PUBL_DEBUG||this.$store.state.workspace.showConfig},showAccessibilityPDF:function(){return this.$store.getters["workspace/accessibilityButtonVisible"]},searchSidebarOpened:function(){return"search"===this.$store.state.sidebar.opened},accessibilityMode:function(){return this.$store.state.workspace.accessibilityMode},topBarClasses:function(){return{"blink-light":this.blinkLight,compact:this.compactMode}},workspaceSize:function(){return this.$store.getters["workspace/size"]},sidebarOpened:function(){return this.$store.state.sidebar.opened},compactMode:function(){var t=this.sidebarOpened?this.$store.state.sidebar.width:0;return this.workspaceSize.width<500+t},veryCompactMode:function(){var t=this.sidebarOpened?this.$store.state.sidebar.width:0;return this.workspaceSize.width<350+t}},components:{pager:C,"copyright-button":E,"debug-controls":N},methods:{openSidebar:function(t){null!==this.$store.state.popup.opened&&this.$store.dispatch("popup/closePopup"),this.$store.dispatch("sidebar/openSidebar",{component:t})},openPopup:function(t){null!==this.$store.state.popup.opened&&this.$store.dispatch("popup/closePopup"),this.$store.dispatch("popup/openPopup",{component:t})},beforeIconAdd:function(t){a.Z.addClass(t.firstChild,"svg-before-enter")},afterIconAdd:function(t){a.Z.removeClass(t.firstChild,"svg-before-enter")},beforeIconRemove:function(t){a.Z.addClass(t.firstChild,"svg-before-leave")},afterIconRemove:function(t){a.Z.removeClass(t.firstChild,"svg-before-leave")}},watch:{accessibilityMode:function(t){t&&(document.activeElement&&null!==document.activeElement.getAttribute("tabindex")||(this.showAccessibilityPDF?this.$refs.accessibilityBtn.focus():this.$refs.pager.setFocus()))}}}),B=D,H=(0,v.Z)(B,b,w,!1,null,"503365c6",null).exports,R=i(8384),F=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"overlay",style:{"background-color":t.config.backgroundColor}},[t.isIE?i("div",{staticClass:"spinner-wrap"},[i("spinner",{attrs:{size:24,"line-size":4,"line-fg-color":t.spinnerFgColor,"line-bg-color":t.spinnerBgColor}})],1):i("div",{staticClass:"book-wrap",style:t.bookWrapStyles},[i("div",{staticClass:"book",style:{perspective:t.width*(t.isChrome?3:1.5)+"px"}},[i("div",{staticClass:"page start-page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page1",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page2",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page3",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page4",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page5",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page6",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page7",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page8",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page9",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{ref:"page10",staticClass:"page",style:t.pageStyles}),t._v(" "),i("div",{staticClass:"page end-page",style:t.pageStyles})])])])},V=[],W=i(2155),U=i(9426),j={backgroundColor:"#ECF0F1",titleColor:"#3E3E43",titleText:null,coverSrc:null,logoLink:{image:null,url:"http://flippingbook.com"}},Z=2,G={components:{spinner:U.Z},data:function(){return{width:60,config:null}},created:function(){this.animatePageTimeoutIds={},this.config=(0,W.Z)(j,this.$store.state.workspace.preloaderConfig),this.pageInShadowColors=(0,c.l)(this.config.backgroundColor),this.pageInShadowColors="#000000"===this.config.backgroundColor?[35,35,35]:this.pageInShadowColors,this.pageInShadowColors=this.pageInShadowColors.map((function(t){return(.85*t).toFixed(0)}))},mounted:function(){this.animate(),this.intervalId=setInterval(this.animate,3200)},computed:{pageStyles:function(){return{"background-color":this.config.backgroundColor,"border-color":this.config.titleColor,"border-width":"".concat(Z,"px"),"border-radius":"0 ".concat(this.width/10,"px ").concat(this.width/10,"px 0"),width:"".concat(this.width/2,"px"),height:"".concat(this.height,"px"),left:"".concat(this.width/2-Z,"px")}},bookWrapStyles:function(){return{width:"".concat(this.width,"px"),height:"".concat(this.height,"px"),"margin-top":"-".concat(this.height,"px"),"margin-left":"".concat(-this.width/2,"px"),"background-color":this.config.backgroundColor}},height:function(){return.75*this.width},isChrome:function(){return this.$store.state.workspace.userAgentInfo.browser.chrome},isIE:function(){return!0===this.$store.state.workspace.userAgentInfo.browser.msie},spinnerBgColor:function(){var t=this.$store.state.skin.styles["main-button-color"];return t?"rgba("+(0,c.l)(t).join(",")+", 0.8)":"#FFFFFF"},spinnerFgColor:function(){var t=this.$store.state.skin.styles["second-text-color"];return t?"rgba("+(0,c.l)(t).join(",")+", 0.8)":"#5692AE"}},methods:{animate:function(){var t=this;this.animatePage("page1"),this.animateTimeoutId=setTimeout((function(){var e=[4,3,2];t.animatePagePile(e),t.animateTimeoutId=setTimeout((function(){var e=[10,9,8,7,6,5];t.animatePagePile(e)}),1100)}),600)},animatePagePile:function(t){var e=this;this.animatePagePileIntervalId=setInterval((function(){if(t.length){var i="page".concat(t.pop());e.animatePage(i)}else clearInterval(e.animatePagePileIntervalId)}),100)},animatePage:function(t){var e=this;this.$refs[t].style.transform="rotateY(-20deg)",this.$refs[t].style.transition="transform 1.1s, background-color .385s",this.$refs[t].style.transform="rotateY(-160deg)",this.$refs[t].style.backgroundColor="rgb(".concat(this.pageInShadowColors.join(","),")");var i=setTimeout((function(){delete e.animatePageTimeoutIds[i],e.$refs[t].style.transition="transform 1.1s, background-color .55s",e.$refs[t].style.backgroundColor=e.config.backgroundColor}),385),o=setTimeout((function(){delete e.animatePageTimeoutIds[o],e.$refs[t].style.transition=null,e.$refs[t].style.transform="rotateY(-20deg)"}),1100);this.animatePageTimeoutIds[i]=!0,this.animatePageTimeoutIds[o]=!0}},beforeDestroy:function(){clearInterval(this.intervalId),clearTimeout(this.animateTimeoutId),clearInterval(this.animatePagePileIntervalId),Object.keys(this.animatePageTimeoutIds).forEach((function(t){clearTimeout(t)}))}},K=(0,v.Z)(G,F,V,!1,null,"746b7c3e",null).exports,Y=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"popup-container"},[i("div",{staticClass:"black-out",on:{click:t.close}}),t._v(" "),i("div",{staticClass:"popup-window",attrs:{role:"dialog","aria-labelledby":"popup-title"}},[i("span",{ref:"first-trap",attrs:{tabindex:"0","aria-hidden":"true"}}),t._v(" "),i("div",{staticClass:"popup-title-frame"},[i("span",{staticClass:"svg-button popup-title-icon"},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:t.icon}})],1),t._v(" "),i("h3",{staticClass:"popup-title",attrs:{id:"popup-title"}},[t._v(t._s(t.title))]),t._v(" "),i("button",{staticClass:"svg-button icon-button close-button",attrs:{tabindex:"0","data-modal-tabIndex":"first","aria-label":t.$t("Accessibility.CLOSE_DIALOG")},on:{click:t.close}},[i("svgicon",{staticClass:"svg-icon",attrs:{focusable:"false",name:"close"}})],1)]),t._v(" "),i("div",{staticClass:"popup-content"},["download"===t.activeComponent?i("downloads-window"):t._e(),t._v(" "),"social"===t.activeComponent?i("social-window"):t._e(),t._v(" "),"print"===t.activeComponent?i("print-window"):t._e(),t._v(" "),"info"===t.activeComponent?i("info-window"):t._e(),t._v(" "),"help"===t.activeComponent?i("help-window"):t._e(),t._v(" "),"accessibility"===t.activeComponent?i("accessibility-window"):t._e()],1),t._v(" "),i("span",{ref:"last-trap",attrs:{tabindex:"0","aria-hidden":"true"}})])])},q=[],X=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"downloads"},[t.saveWithNotesStatus?i("div",{staticClass:"save-with-notes-panel"},["progress"===t.saveWithNotesStatus?[i("div",{staticClass:"progress-background"},[i("div",{staticClass:"progress-bar",style:t.progressBarStyle})]),t._v(" "),i("div",{staticClass:"text-block"},[i("bdi",[t._v(t._s(t.downloaded))])]),t._v(" "),i("div",{staticClass:"cancel-button-block"},[i("button",{staticClass:"popup-button cancel-button",attrs:{tabindex:"0","aria-label":t.pagesTitle.cancel,title:t.pagesTitle.cancel},on:{click:t.onCancel}},[t._v("\n "+t._s(t.pagesTitle.cancel)+"\n ")])])]:"waiting"===t.saveWithNotesStatus?i("div",{staticClass:"message-panel"},[i("div",{staticClass:"spinner-container"},[i("spinner",{attrs:{size:24,"line-size":3,"line-fg-color":t.spinnerFgColor,"line-bg-color":t.spinnerBgColor}})],1),t._v(" "),i("label",{staticClass:"text-block"},[t._v(t._s(t.infoMessages.waiting))])]):i("div",{staticClass:"message-panel"},[i("svgicon",{attrs:{name:"error"}}),t._v(" "),i("label",{staticClass:"text-block"},[t._v(t._s(t.infoMessages.error))])],1)],2):i("div",{staticClass:"options-panel"},[t.hasNotes?i("div",{staticClass:"embed-notes-block"},[i("checkbox",{attrs:{"data-modal-tabIndex":"first-init",value:t.embedNotes,label:t.pagesTitle.withNotes},model:{value:t.embedNotes,callback:function(e){t.embedNotes=e},expression:"embedNotes"}}),t._v(" "),i("div",{ref:"infoButton",staticClass:"embed-notes-info",attrs:{tabindex:"0"}},[i("svgicon",{attrs:{tabindex:"-1",focusable:"false",name:"info"}}),t._v(" "),i("div",{staticClass:"embed-notes-info-panel",style:t.notesInfoPanelStyle,attrs:{tabindex:"-1",dir:t.dir,role:"dialog"}},[t._v("\n "+t._s(t.infoMessages.info)+"\n ")])],1)],1):t._e(),t._v(" "),t.fullPdf?i("a",{staticClass:"download-full-button",attrs:{"data-modal-tabIndex":"first-init",target:"_blank",href:"linkFull",download:t.fullPdf.fileName,role:"button",title:t.fullTooltip,"aria-label":t.fullTooltip,tabindex:"0",disabled:t.editorMode},on:{click:function(e){return t.processDownloadEvent(e,"full",null)},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.onSpaceDown(e)}}},[i("span",{staticClass:"title"},[t._v(t._s(t.pagesTitle.full)+" - "),i("span",{attrs:{dir:"ltr"}},[t._v(t._s(t.fullPdf.size))])]),t._v(" "),i("span",{staticClass:"description"},[t._v(t._s(t.fullDescription))])]):t._e(),t._v(" "),t.filesCount?i("div",{ref:"download-list",staticClass:"download-list",attrs:{id:"download-list"}},[i("ul",[t._l(t.filesArray,(function(e,o){return i("li",{class:"download-item-"+e.type},[i("svgicon",{staticClass:"svg-icon file-icon",attrs:{focusable:"false",name:e.icon}}),t._v(" "),i("a",{attrs:{"data-modal-tabIndex":o===t.filesCount-1?"last":"",target:"_blank",href:"linkPage",download:e.fileName,role:"button",title:e.tooltip,"aria-label":e.tooltip,tabindex:"0",disabled:t.editorMode},on:{click:function(i){return t.processDownloadEvent(i,e.type,o)},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.onSpaceDown(e)}}},[i("bdi",[i("span",{staticClass:"file-name"},[t._v(t._s(e.title))])]),t._v(" "),i("span",{attrs:{dir:"ltr"}},[i("bdi",[t._v("("+t._s(e.size)+")")])])])],1)})),t._v(" "),t.showAccessiblePdf?i("li",[i("svgicon",{staticClass:"svg-icon file-icon",attrs:{focusable:"false",name:"file-pdf"}}),t._v(" "),i("a",{attrs:{disabled:t.editorMode,role:"button",href:"linkFull",target:"_blank",download:t.accessiblePdfFilename,"data-modal-tabIndex":"last",title:t.accessiblePdfTitle,"aria-label":t.accessiblePdfTitle,tabindex:"0"},on:{click:function(e){return t.processAccessiblePdfDownloadEvent(e,"download-from-downloads")},keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:t.onAccessiblePdfButtonSpaceDown(e)}}},[i("bdi",[i("span",{staticClass:"file-name"},[t._v(t._s(t.accessiblePdfTitle))])]),t._v(" "),i("span",{attrs:{dir:"ltr"}},[i("bdi",[t._v("("+t._s(t.accesssiblePdfSize)+")")])])])],1):t._e()],2)]):t._e()])])},J=[],Q=i(462),tt={computed:{accessiblePdf:function(){return this.$store.getters["downloads/getAccessiblePdf"]},accessiblePdfTitle:function(){return this.$t("Accessibility.DOWNLOAD_TITLE")},accesssiblePdfSize:function(){return this.accessiblePdf.size},accessiblePdfFilename:function(){return this.accessiblePdf.fileName},accessiblePdfUrl:function(){return(0,M.Z)().translatePath(this.accessiblePdf.url)}},methods:{processAccessiblePdfDownloadEvent:function(t,e){t.currentTarget.href=this.accessiblePdfUrl,this.$root.$emit("accessibility",{action:e,fileName:this.accessiblePdfFilename})},onAccessiblePdfButtonSpaceDown:function(t){t.currentTarget.click()}}},et=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("label",{staticClass:"checkbox-container",attrs:{id:"checkbox-label"}},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],attrs:{type:"checkbox",role:"checkbox","aria-labelledby":"checkbox-label",tabindex:"0"},domProps:{checked:Array.isArray(t.inputValue)?t._i(t.inputValue,null)>-1:t.inputValue},on:{change:function(e){var i=t.inputValue,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.inputValue=i.concat([s])):r>-1&&(t.inputValue=i.slice(0,r).concat(i.slice(r+1)))}else t.inputValue=n}}}),t._v(" "),i("div",{staticClass:"checkbox-body"}),t._v(" "),i("span",{attrs:{"aria-hidden":"true"}},[t._v(t._s(t.label))])])},it=[],ot={props:{label:{type:String,default:null},value:{type:Boolean,required:!0}},model:{prop:"value",event:"valueChanged"},computed:{inputValue:{get:function(){return this.value},set:function(t){this.$emit("valueChanged",t)}}}},nt=(0,v.Z)(ot,et,it,!1,null,"13605c51",null).exports,st=(i(6092),i(7195),i(6009),i(8713),i(3178),i(3848),i(3490),i(9573),i(254),i(5782),i(3310),i(1314),i(2307),i(4309),i(3889),i(1710),i(6177),i(5109)),rt=i(1976),at=i(3084);function ct(t){return ct="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},ct(t)}function lt(t){return pt(t)||dt(t)||ht(t)||ut()}function ut(){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 ht(t,e){if(t){if("string"==typeof t)return ft(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)?ft(t,e):void 0}}function dt(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function pt(t){if(Array.isArray(t))return ft(t)}function ft(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=new Array(e);i=0;--s){var r=this.tryEntries[s],a=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var c=o.call(r,"catchLoc"),l=o.call(r,"finallyLoc");if(c&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var o=i.completion;if("throw"===o.type){var n=o.arg;P(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,i,o){return this.delegate={iterator:A(e),resultName:i,nextLoc:o},"next"===this.method&&(this.arg=t),g}},e}function gt(t,e,i,o,n,s,r){try{var a=t[s](r),c=a.value}catch(l){return void i(l)}a.done?e(c):Promise.resolve(c).then(o,n)}function mt(t){return function(){var e=this,i=arguments;return new Promise((function(o,n){var s=t.apply(e,i);function r(t){gt(s,o,n,r,a,"next",t)}function a(t){gt(s,o,n,r,a,"throw",t)}r(void 0)}))}}function bt(t){var e,i,o,n=2;for("undefined"!=typeof Symbol&&(i=Symbol.asyncIterator,o=Symbol.iterator);n--;){if(i&&null!=(e=t[i]))return e.call(t);if(o&&null!=(e=t[o]))return new wt(e.call(t));i="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function wt(t){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var e=t.done;return Promise.resolve(t.value).then((function(t){return{value:t,done:e}}))}return wt=function(t){this.s=t,this.n=t.next},wt.prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(t){var i=this.s.return;return void 0===i?Promise.resolve({value:t,done:!0}):e(i.apply(this.s,arguments))},throw:function(t){var i=this.s.return;return void 0===i?Promise.reject(t):e(i.apply(this.s,arguments))}},new wt(t)}var yt,kt=24,_t={"Access-Control-Allow-Origin":"Anonymous"};function Ct(t){return $t.apply(this,arguments)}function $t(){return($t=mt(vt().mark((function t(e){var o,n,s,r,a,c,l,u,h,d,p;return vt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.page,n=e.text,s=void 0===n?"":n,r=e.color,a=e.x,c=e.y,l=e.date,t.next=3,i.e(6).then(i.bind(i,9055));case 3:return u=t.sent,h=u.PDFString,d=u.PDFNumber,p=u.PDFHexString,t.abrupt("return",o.doc.context.register(o.doc.context.obj({Type:"Annot",Subtype:"Text",Rect:[a-kt/2,c,a+kt/2,c+kt],Name:"Comment",Subj:h.of("Sticky Note"),F:d.of(24),C:r,M:h.of(l),Contents:p.fromText(s),Open:!1})));case 8:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function xt(t){var e=t.x,i=t.y,o=t.pageSize,n=t.rotation,s=e,r=i;return 90===n?(s=o.width-i,r=e):180===n?(s=o.width-e,r=o.height-i):270===n&&(s=i,r=o.height-e),{x:s,y:r}}function Tt(t){var e=t.note,i=t.page,o=t.isRtl,n=i.getCropBox(),s=i.getSize(),r=i.getRotation().angle,a=xt({x:e.x,y:e.y,rotation:r,pageSize:s}),c=a.x,l=a.y;return c+=n.x,(l+=n.y)>n.y+n.height&&(l=n.y+n.height-kt),ln.x+n.width||e.isMovedFromStub&&!o)&&(c=n.x+n.width-kt/2),(c=0;--s){var r=this.tryEntries[s],a=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var c=o.call(r,"catchLoc"),l=o.call(r,"finallyLoc");if(c&&l){if(this.prev=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var o=i.completion;if("throw"===o.type){var n=o.arg;P(i)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,i,o){return this.delegate={iterator:A(e),resultName:i,nextLoc:o},"next"===this.method&&(this.arg=t),g}},e}function Rt(t,e,i,o,n,s,r){try{var a=t[s](r),c=a.value}catch(l){return void i(l)}a.done?e(c):Promise.resolve(c).then(o,n)}function Ft(t){return function(){var e=this,i=arguments;return new Promise((function(o,n){var s=t.apply(e,i);function r(t){Rt(s,o,n,r,a,"next",t)}function a(t){Rt(s,o,n,r,a,"throw",t)}r(void 0)}))}}var Vt={mixins:[Q.Z,tt],components:{Checkbox:nt,Spinner:U.Z},name:"DownloadWindow",data:function(){return{embedNotes:"false"!==(0,M.Z)().getLocalStorage().getItem("embedNotes"),saveWithNotesStatus:null,loaded:0,total:0,notesInfoPanelStyle:{width:null,left:null},shouldClose:!1}},mounted:function(){this.filesArray.length>4&&this.initScroll(),this.refreshNotesInfoPanelStyle(),this.params.embedNotes&&(this.saveWithNotesStatus="progress",this.shouldClose=!0,this.getContentedPdf(this.params.pageId||null),this.sendDownloadEvent({target:"noteList"}))},beforeDestroy:function(){yt&&!yt.signal.aborted&&yt.abort()},computed:{editorMode:function(){return!!this.$store.state.workspace.userAgentInfo.browser.publisher},fullDescription:function(){return this.$t("SaveWindow.FULL_PUBLICATION_DESCRIPTION")},hasNotes:function(){return this.$store.getters["notes/hasNotes"]},filesArray:function(){var t=this,e=[];return this.pageFiles&&this.pageFiles.filter((function(t){return t.ready})).forEach((function(i){e.push({title:1===t.pageFiles.length?t.pagesTitle.one:t.pagesTitle[i.side],tooltip:1===t.pageFiles.length?t.pagesTooltip.one:t.pagesTooltip[i.side],url:function(){return(0,M.Z)().translatePath(i.url)},type:"page",size:i.size,icon:"file-pdf",fileName:i.fileName,pageId:i.pageId})})),this.customFiles&&this.customFiles.forEach((function(i){e.push({title:i.title,tooltip:t.windowTitle+" "+i.title,url:function(){return(0,M.Z)().translatePath(i.url)},type:"custom",size:i.size,icon:"file-"+t.getIcon(i.url),fileName:i.fileName})})),e},filesCount:function(){var t=this.filesArray.length;return this.showAccessiblePdf?t+1:t},showAccessiblePdf:function(){return this.$store.getters["workspace/accessibilityButtonVisible"]&&!this.$store.state.downloads.accessibilityPDF.useOriginalPdf},dir:function(){return this.$store.getters["i18n/isLocaleRtl"]?"rtl":"ltr"},progressBarStyle:function(){return{width:0===this.total?"0%":parseInt(this.loaded/this.total*100,10)+"%"}},downloaded:function(){return this.$t("PrintWindow.DOWNLOADING",{0:(0,T.BU)(this.loaded),1:(0,T.BU)(this.total)})},spinnerBgColor:function(){var t=this.$store.state.skin.styles["second-button-color"];return t?"rgba("+(0,c.l)(t).join(",")+", 0.3)":"#FFFFFF"},spinnerFgColor:function(){var t=this.$store.state.skin.styles["second-button-color"];return t?"rgba("+(0,c.l)(t).join(",")+", 0.9)":"#5692AE"},params:function(){return this.$store.state.popup.params}},methods:{getContentedPdf:function(t){var e=this;return Ft(Ht().mark((function i(){var o,n,s;return Ht().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return o=function(t){e.total=t.total,e.loaded=t.transferred,e.total===e.loaded&&(e.saveWithNotesStatus="waiting")},n=function(t){"AbortError"!==t.name&&(e.saveWithNotesStatus="error",e.$root.$emit("download",{action:"noteDownloadError"}))},yt=new AbortController,s=yt.signal,i.next=6,Pt({pageId:t,signal:s,onProgress:o,onError:n});case 6:e.shouldClose&&e.closeDialog();case 7:case"end":return i.stop()}}),i)})))()},processDownloadEvent:function(t,e,i){var o=this;return Ft(Ht().mark((function n(){var s,r,a;return Ht().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!o.editorMode){n.next=3;break}return t.preventDefault(),n.abrupt("return");case 3:if(s={},a=null,"full"===e?r=(0,M.Z)().translatePath(o.fullPdf.url):(s.option=e,s.fileName=o.filesArray[i].fileName,r=o.filesArray[i].url(),"page"===e&&(s.downloadPage=o.$store.getters["pages/urlHeaderById"]({id:o.filesArray[i].pageId}),s.option=o.embedNotes&&o.hasNotes?"pageWithNotes":"page",a=o.filesArray[i].pageId)),!o.embedNotes||!o.hasNotes||"custom"===e){n.next=17;break}return o.saveWithNotesStatus="progress",t.preventDefault(),n.next=11,o.getContentedPdf(a);case 11:o.saveWithNotesStatus=null,o.loaded=0,o.total=0,s.embedNotes=!0,n.next=18;break;case 17:t.currentTarget.href=r;case 18:o.sendDownloadEvent(s);case 19:case"end":return n.stop()}}),n)})))()},sendDownloadEvent:function(t){var e={action:"downloaded",leftPageUrl:this.$store.getters["pages/urlHeaderById"]({id:this.pagerState.leftPage}),rightPageUrl:this.$store.getters["pages/urlHeaderById"]({id:this.pagerState.rightPage}),option:this.embedNotes&&this.hasNotes?"fullWithNotes":"full",fileName:this.fullPdf.fileName,target:"downloadWindow"};this.$root.$emit("download",Ot(Ot({},e),t))},getIcon:function(t){var e=["doc","exe","gif","html","jpg","mp3","mp4","pdf","png","ppt","psd","rar","xls","zip"],i={docx:"doc",pptx:"ppt",xlsx:"xls",htm:"html"},o=t.split(".").pop(),n=e.indexOf(o);return-1!==n?e[n]:i[o]||"any"},initScroll:function(){this.$refs["download-list"]&&(this.scrollComponent=new st.ZP(this.$refs["download-list"],{mouseWheel:!0,scrollbar:{fade:!1,interactive:!0,scrollbarTrackClickable:!0},probeType:0,disablePointer:!0,disableTouch:!1,disableMouse:!1,resizePolling:200,bounce:!1}))},closeDialog:function(){this.$store.dispatch("popup/closePopup")},onSpaceDown:function(t){t.currentTarget.click()},onCancel:function(){yt.abort(),this.params.embedNotes?this.closeDialog():(this.saveWithNotesStatus=null,this.loaded=0,this.total=0)},refreshNotesInfoPanelStyle:function(){if(this.$refs.infoButton){var t=20,e=210,i=this.$refs.infoButton.offsetWidth/2,o="rtl"===this.dir?-(e-i+t):i;this.notesInfoPanelStyle={width:e+"px",left:this.$refs.infoButton.offsetLeft+o+"px"}}}},watch:{filesArray:function(t){var e=this;!this.scrollComponent&&t.length>4?this.initScroll():t.length<=4&&this.scrollComponent&&(this.scrollComponent.destroy(),this.scrollComponent=null),this.scrollComponent&&this.$nextTick((function(){e.scrollComponent.refresh()}))},embedNotes:function(t,e){!t&&e&&this.$root.$emit("download",{action:"downloadUncheckEmbed"}),(0,M.Z)().getLocalStorage().setItem("embedNotes",t?"true":"false")}}},Wt=Vt,Ut=(0,v.Z)(Wt,X,J,!1,null,"3a649b5e",null).exports,jt=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"print-window"},[t.pdfIsAvailable||t.editorMode?i("div",{staticClass:"print-window-container",class:this.status},[i("div",{staticClass:"print-title-frame"},[t.selectedPagesVisible&&t.fullOption?i("button",{staticClass:"print-full-button",attrs:{"data-modal-tabIndex":"first-init",tabindex:"0",title:t.localization.customTip,"aria-label":t.localization.customTip,disabled:t.editorMode},on:{click:function(e){return t.print(t.fullOption)}}},[i("span",{staticClass:"title"},[t._v(t._s(t.fullOption.title))]),t._v(" "),i("span",{staticClass:"description"},[t._v(t._s(t.localization.customRangeDescription))])]):t._e(),t._v(" "),t.partsOptionsArray.length>0?i("div",{staticClass:"print-list"},[i("div",{attrs:{role:t.partsOptionsArray.length>1&&"list"}},t._l(t.partsOptionsArray,(function(e,o){return i("div",{attrs:{role:t.partsOptionsArray.length>1&&"listitem"}},[i("svgicon",{staticClass:"svg-icon file-icon",attrs:{focusable:"false",name:"file-any-print"}}),t._v(" "),i("button",{attrs:{tabindex:"0",title:e.tooltip,"aria-label":e.tooltip,disabled:t.editorMode},on:{click:function(i){return t.print(e)}}},[i("bdi",[i("span",{staticClass:"file-name"},[t._v(t._s(e.title))])])])],1)})),0)]):t._e(),t._v(" "),t.printSupported?t._e():i("span",{staticClass:"text-block print-comment",attrs:{id:"print-comment"}},[t._v(t._s(t.localization.commentCurrent))])]),t._v(" "),i("div",{staticClass:"print-button-bar"},[i("div",{staticClass:"progress"},[i("div",{staticClass:"progress-background"},[i("div",{staticClass:"progress-bar",style:t.progressBarStyle,attrs:{id:"progress-bar"}})]),t._v(" "),i("div",{staticClass:"text-block progress-info",attrs:{id:"progress-info"}},[i("bdi",[t._v(t._s(t.downloaded))])])]),t._v(" "),i("div",{staticClass:"waiting-bar"},[i("div",{staticClass:"spinner-container"},[i("spinner",{attrs:{size:24,"line-size":3,"line-fg-color":t.spinnerFgColor,"line-bg-color":t.spinnerBgColor}})],1),t._v(" "),i("label",{staticClass:"print-window-label"},[t._v(t._s(t.localization.waiting))])]),t._v(" "),i("button",{staticClass:"idle popup-button cancel-button",attrs:{tabindex:"0",id:"cancel-btn","aria-label":t.localization.cancel,title:t.localization.cancel},on:{click:t.cancel}},[t._v("\n "+t._s(t.localization.cancel)+"\n ")])])]):i("div",{staticClass:"print-window"},[t._v(t._s(t.localization.errorMsg))])])},Zt=[];function Gt(t){var e=document.getElementById("pdf-print-iframe");if(e&&e.parentNode.removeChild(e),(e=document.createElement("iframe")).setAttribute("style","visibility: hidden; height: 0; width: 0; position: absolute; border: 0"),e.setAttribute("id","pdf-print-iframe"),t.browser.ie)try{window.open(t.printable,"_blank").focus()}catch(i){t.onError(i)}else qt(t,e)}function Kt(t,e){var i="mouseover";(t.browser.chrome||t.browser.chromiumEdge)&&(i="focus");var o=function o(){t.onPrintDialogClose(),window.removeEventListener(i,o),e.remove()};window.addEventListener(i,o)}function Yt(t,e){try{t.focus(),t.contentWindow.print()}catch(i){e.onError(i)}finally{Kt(e,t)}}function qt(t,e){t.printable=/^(blob|http|\/\/)/i.test(t.printable)?t.printable:window.location.origin+("/"!==t.printable.charAt(0)?"/"+t.printable:t.printable);var i=new window.XMLHttpRequest;i.responseType="arraybuffer",i.addEventListener("error",(function(){Kt(t,e),t.onError(i.statusText,i)})),i.addEventListener("load",(function(){if(-1===[200,201].indexOf(i.status))return Kt(t),void t.onError(i.statusText,i);Xt(t,e,i.response)})),i.open("GET",t.printable,!0),i.send()}function Xt(t,e,i){var o=new window.Blob([i],{type:"application/pdf"});o=window.URL.createObjectURL(o),e.onload=function(){t.browser.firefox||t.browser.safari?setTimeout((function(){Yt(e,t)}),1e3):Yt(e,t)},e.setAttribute("src",o),document.body.appendChild(e)}i(7046);var Jt,Qt={components:{Spinner:U.Z},data:function(){return{selected:0,printSupported:!0,pdfIsAvailable:!0,status:"idle",loaded:0,total:0,xmlHTTP:null}},mounted:function(){var t=this;if(this.checkPrintingSupport(),this.params.pageId){var e,i=null===(e=this.partsOptionsArray.filter((function(e){return e.pageId===t.params.pageId})))||void 0===e?void 0:e[0];i&&this.printSupported&&this.pdfIsAvailable&&this.print(i)}},computed:{isPrintedInSafari15:function(){return this.$store.state.workspace.isPrintedInSafari15},localization:function(){return{cancel:this.$t("PrintWindow.CANCEL_BUTTON"),waiting:this.$t("PrintWindow.WAITING"),commentCurrent:this.$t("PrintWindow.COMMENT_OPEN_CURRENT"),customTip:this.$t("PrintWindow.CUSTOM_RANGE_TIP"),errorMsg:this.$t("PrintWindow.ERROR_MESSAGE"),leftPage:this.$t("PrintWindow.LEFT_PAGE"),rightPage:this.$t("PrintWindow.RIGHT_PAGE"),currentPage:this.$t("PrintWindow.CURRENT_PAGE"),leftPageTip:this.$t("PrintWindow.LEFT_PAGE_TIP"),rightPageTip:this.$t("PrintWindow.RIGHT_PAGE_TIP"),currentPageTip:this.$t("PrintWindow.CURRENT_PAGE_TIP"),customRange:this.$t("PrintWindow.CUSTOM_RANGE"),customRangeDescription:this.$t("PrintWindow.CUSTOM_RANGE_DESCRIPTION")}},params:function(){return this.$store.state.popup.params},downloaded:function(){return this.$t("PrintWindow.DOWNLOADING",{0:(0,T.BU)(this.loaded),1:(0,T.BU)(this.total)})},fullPdf:function(){return this.$store.getters["downloads/getFullPdf"]},pageFiles:function(){return this.$store.getters["downloads/getPageFiles"]},currentPagesVisible:function(){return this.$store.state.print.currentPagesVisible},selectedPagesVisible:function(){return this.$store.state.print.selectedPagesVisible},fullOption:function(){var t=this;return{title:this.localization.customRange,url:function(){return(0,M.Z)().translatePath(t.fullPdf.url)},type:"full",fileName:this.fullPdf.fileName}},partsOptionsArray:function(){var t=this,e=[];return this.pageFiles&&this.currentPagesVisible&&this.pageFiles.filter((function(t){return t.ready})).forEach((function(i){e.push({title:1===t.pageFiles.length?t.localization.currentPage:t.localization[i.side+"Page"],tooltip:1===t.pageFiles.length?t.localization.currentPageTip:t.localization[i.side+"PageTip"],url:function(){return(0,M.Z)().translatePath(i.url)},type:"page",icon:"file-pdf",pageId:i.pageId,fileName:i.fileName})})),e},progressBarStyle:function(){return{width:0===this.total?"0%":parseInt(this.loaded/this.total*100,10)+"%"}},userAgentInfo:function(){return this.$store.state.workspace.userAgentInfo},editorMode:function(){return!!this.userAgentInfo.browser.publisher},spinnerBgColor:function(){var t=this.$store.state.skin.styles["second-button-color"];return t?"rgba("+(0,c.l)(t).join(",")+", 0.3)":"#FFFFFF"},spinnerFgColor:function(){var t=this.$store.state.skin.styles["second-button-color"];return t?"rgba("+(0,c.l)(t).join(",")+", 0.9)":"#5692AE"}},methods:{checkPrintingSupport:function(){var t=this;if(!this.editorMode&&(this.fullPdf&&this.fullPdf.url||this.pageFiles&&this.pageFiles.length>0)){this.url=(0,M.Z)().translatePath(this.fullPdf.url||this.pageFiles[0].url);var e=new XMLHttpRequest;e.open("HEAD",this.url),e.onreadystatechange=function(){if(this.readyState===this.DONE)if(200===this.status){var e;this.getAllResponseHeaders().indexOf("content-disposition")>=0&&(e=this.getResponseHeader("content-disposition"));var i=e&&e.search("attachment")>=0;t.pdfIsAvailable="application/pdf"===this.getResponseHeader("Content-Type")&&!i}else t.pdfIsAvailable=!1,console.error("PDF printing is not available.")},e.send()}else this.pdfIsAvailable=!1;this.printSupported=!this.userAgentInfo.browser.ie&&!this.userAgentInfo.browser.msedge},print:function(t){var e=this;if(!this.editorMode){var i=t.url();if(!this.printSupported||this.isPrintedInSafari15)return window.open(i,"_blank"),void this.onPrintDialogClose();if(this.userAgentInfo.browser.safari)15===+this.userAgentInfo.browser.version.split(".")[0]&&this.$store.dispatch("workspace/setPrintedInSafari15");var o={onPrintDialogClose:this.onPrintDialogClose,browser:this.userAgentInfo.browser,onError:function(t){throw t}};this.xmlHTTP&&this.xmlHTTP.abort(),this.xmlHTTP=new XMLHttpRequest,this.xmlHTTP.open("GET",i),this.xmlHTTP.responseType="arraybuffer","onprogress"in this.xmlHTTP&&(this.xmlHTTP.onprogress=function(t){t.lengthComputable&&(e.loaded=t.loaded,e.total=t.total)}),this.xmlHTTP.onload=function(){var t=new Blob([e.xmlHTTP.response],{type:"application/pdf"});o.printable=window.URL.createObjectURL(t),t=null,e.xmlHTTP=null,e.status="printing",Gt(o)},this.loaded=0,this.total=0,this.status="downloading",this.xmlHTTP.send(),this.sendApiEvent(t)}},sendApiEvent:function(t){var e,i,o=this.$store.getters["pager/legacyState"];o.leftPage&&(e=this.$store.getters["pages/urlHeaderById"]({id:o.leftPage,forceFullWide:!0})),i=o.rightPage?this.$store.getters["pages/urlHeaderById"]({id:o.rightPage,forceFullWide:!0}):e;var n={option:t.type,fileName:t.fileName,leftPageUrl:e,rightPageUrl:i};t.pageId&&(n.printPage=this.$store.getters["pages/urlHeaderById"]({id:t.pageId})),this.$root.$emit("print",n)},cancel:function(){this.xmlHTTP&&this.xmlHTTP.abort(),this.xmlHTTP=null,this.loaded=0,this.total=0,this.status="idle"},onPrintDialogClose:function(){this.$store.dispatch("popup/closePopup")}}},te=Qt,ee=(0,v.Z)(te,jt,Zt,!1,null,"f9ab575e",null).exports,ie=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"socialBody"},[i("div",{staticClass:"window-tabs-head",class:{disabled:!t.tabsEnabled}},[i("span",{class:{active:"share"===t.activeTab},attrs:{id:"share-button-tab"},on:{click:function(e){return t.tabClick("share")}}},[t._v(t._s(t.localization.shareTab))]),t._v(" "),i("span",{class:{active:"embed"===t.activeTab},attrs:{id:"embed-button-tab"},on:{click:function(e){return t.tabClick("embed")}}},[t._v(t._s(t.localization.embedTab))])]),t._v(" "),i("section",{staticClass:"window-tab",class:{active:"share"===t.activeTab},attrs:{id:"share-tab"}},[i("div",{ref:"qr",staticClass:"qr",attrs:{id:"qr","aria-hidden":"true"}}),t._v(" "),i("div",{staticClass:"url-section"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.currentUrl,expression:"currentUrl"}],ref:"shareUrlContainer",staticClass:"url-container tip",attrs:{tabindex:"0",role:"textbox","data-modal-tabIndex":"first-init",id:"share-url-container",dir:"ltr",readonly:""},domProps:{value:t.currentUrl},on:{input:function(e){e.target.composing||(t.currentUrl=e.target.value)}}}),t._v(" "),i("checkbox",{staticClass:"current-page-checkbox",attrs:{value:t.currentPage,label:t.localization.shareCurrent},model:{value:t.currentPage,callback:function(e){t.currentPage=e},expression:"currentPage"}}),t._v(" "),i("button",{ref:"copyUrlButton",staticClass:"popup-button social-button tip",attrs:{id:"copy-button",tabindex:"0","data-clipboard-target":"#share-url-container","aria-label":t.localization.copyButton}},[t._v("\n "+t._s(t.localization.copyButton)+"\n ")])],1),t._v(" "),i("span",{staticClass:"text-block",attrs:{tabindex:"0"}},[t._v(t._s(t.localization.shareText))]),t._v(" "),i("a",{ref:"facebookBtn",staticClass:"social-link facebook-link",attrs:{tabindex:"0",role:"link",id:"facebook-link",target:"_blank",title:t.localization.facebookTitle,"aria-label":t.localization.facebookTitle},on:{click:function(e){return t.sendApiEvent("facebook")}}}),t._v(" "),i("a",{ref:"twitterBtn",staticClass:"social-link twitter-link",attrs:{tabindex:"0",role:"link",id:"twitter-link",target:"_blank",title:t.localization.twitterTitle,"aria-label":t.localization.twitterTitle},on:{click:function(e){return t.sendApiEvent("twitter")}}}),t._v(" "),i("a",{ref:"linkedinBtn",staticClass:"social-link linkedin-link",attrs:{tabindex:"0",role:"link",id:"linkedin-link",target:"_blank",title:t.localization.linkedinTitle,"aria-label":t.localization.linkedinTitle},on:{click:function(e){return t.sendApiEvent("linkedIn")}}}),t._v(" "),i("a",{ref:"mailBtn",staticClass:"social-link mail-link",attrs:{tabindex:"0",role:"link",id:"mail-link",target:"_blank",title:t.localization.mailTitle,"aria-label":t.localization.mailTitle,"data-modal-tabIndex":"last"},on:{click:function(e){return t.sendApiEvent("email")}}})]),t._v(" "),i("section",{staticClass:"window-tab",class:{active:"embed"===t.activeTab},attrs:{id:"embed-tab"}},[i("label",{staticClass:"embed-label"},[t._v(t._s(t.localization.embedType)+"\n "),i("select",{directives:[{name:"model",rawName:"v-model",value:t.embedType,expression:"embedType"}],attrs:{id:"embed-type-select"},on:{change:function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.embedType=e.target.multiple?i:i[0]}}},[i("option",{attrs:{value:"full"}},[t._v(t._s(t.localization.fullPublication))]),t._v(" "),i("option",{attrs:{value:"cover"}},[t._v(t._s(t.localization.linkablePage))])])]),t._v(" "),i("label",{staticClass:"embed-label",attrs:{for:"current-page-embed"}},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.currentPage,expression:"currentPage"}],attrs:{type:"checkbox",id:"current-page-embed"},domProps:{checked:Array.isArray(t.currentPage)?t._i(t.currentPage,null)>-1:t.currentPage},on:{change:function(e){var i=t.currentPage,o=e.target,n=!!o.checked;if(Array.isArray(i)){var s=null,r=t._i(i,s);o.checked?r<0&&(t.currentPage=i.concat([s])):r>-1&&(t.currentPage=i.slice(0,r).concat(i.slice(r+1)))}else t.currentPage=n}}}),t._v(" "+t._s(t.localization.embedCurrent))]),t._v(" "),i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.embedCode,expression:"embedCode"}],staticClass:"embed-text-area",attrs:{id:"embed-text",dir:"ltr",readonly:""},domProps:{value:t.embedCode},on:{input:function(e){e.target.composing||(t.embedCode=e.target.value)}}}),t._v(" "),"full"===t.embedType?i("div",{staticClass:"embed-size-frame",attrs:{id:"embed-size-frame"}},[i("label",{attrs:{for:"embed-width"}},[t._v(t._s(t.localization.width)+": "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.embedWidth,expression:"embedWidth"}],staticClass:"size-inp",attrs:{type:"text",id:"embed-width"},domProps:{value:t.embedWidth},on:{input:function(e){e.target.composing||(t.embedWidth=e.target.value)}}})]),t._v(" "),i("label",{attrs:{for:"embed-height"}},[t._v(t._s(t.localization.height)+": "),i("input",{directives:[{name:"model",rawName:"v-model",value:t.embedHeight,expression:"embedHeight"}],staticClass:"size-inp",attrs:{type:"text",id:"embed-height"},domProps:{value:t.embedHeight},on:{input:function(e){e.target.composing||(t.embedHeight=e.target.value)}}})])]):t._e(),t._v(" "),i("span",{ref:"copyEmbedButton",staticClass:"popup-button social-button embed-copy tip",attrs:{id:"embed-copy-button","data-clipboard-target":"#embed-text"}},[t._v(t._s(t.localization.copyButton))])])])},oe=[];!function(){function t(t){this.mode=i.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,o=this.data.length;e65536?(n[0]=240|(1835008&s)>>>18,n[1]=128|(258048&s)>>>12,n[2]=128|(4032&s)>>>6,n[3]=128|63&s):s>2048?(n[0]=224|(61440&s)>>>12,n[1]=128|(4032&s)>>>6,n[2]=128|63&s):s>128?(n[0]=192|(1984&s)>>>6,n[1]=128|63&s):n[0]=s,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function e(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}t.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,i=this.parsedData.length;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=e.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,i)},setupPositionProbePattern:function(t,e){for(var i=-1;i<=7;i++)if(!(t+i<=-1||this.moduleCount<=t+i))for(var o=-1;o<=7;o++)e+o<=-1||this.moduleCount<=e+o||(this.modules[t+i][e+o]=i>=0&&i<=6&&(0==o||6==o)||o>=0&&o<=6&&(0==i||6==i)||i>=2&&i<=4&&o>=2&&o<=4)},getBestMaskPattern:function(){for(var t=0,e=0,i=0;i<8;i++){this.makeImpl(!0,i);var o=s.getLostPoint(this);(0==i||t>o)&&(t=o,e=i)}return e},createMovieClip:function(t,e,i){var o=t.createEmptyMovieClip(e,i),n=1;this.make();for(var s=0;s>i&1);this.modules[Math.floor(i/3)][i%3+this.moduleCount-8-3]=o}for(i=0;i<18;i++){o=!t&&1==(e>>i&1);this.modules[i%3+this.moduleCount-8-3][Math.floor(i/3)]=o}},setupTypeInfo:function(t,e){for(var i=this.errorCorrectLevel<<3|e,o=s.getBCHTypeInfo(i),n=0;n<15;n++){var r=!t&&1==(o>>n&1);n<6?this.modules[n][8]=r:n<8?this.modules[n+1][8]=r:this.modules[this.moduleCount-15+n][8]=r}for(n=0;n<15;n++){r=!t&&1==(o>>n&1);n<8?this.modules[8][this.moduleCount-n-1]=r:n<9?this.modules[8][15-n-1+1]=r:this.modules[8][15-n-1]=r}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var i=-1,o=this.moduleCount-1,n=7,r=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var c=0;c<2;c++)if(null==this.modules[o][a-c]){var l=!1;r>>n&1)),s.getMask(e,o,a-c)&&(l=!l),this.modules[o][a-c]=l,-1==--n&&(r++,n=7)}if((o+=i)<0||this.moduleCount<=o){o-=i,i=-i;break}}}},e.PAD0=236,e.PAD1=17,e.createData=function(t,i,o){for(var n=l.getRSBlocks(t,i),r=new u,a=0;a8*h)throw new Error("code length overflow. ("+r.getLengthInBits()+">"+8*h+")");for(r.getLengthInBits()+4<=8*h&&r.put(0,4);r.getLengthInBits()%8!=0;)r.putBit(!1);for(;!(r.getLengthInBits()>=8*h||(r.put(e.PAD0,8),r.getLengthInBits()>=8*h));)r.put(e.PAD1,8);return e.createBytes(r,n)},e.createBytes=function(t,e){for(var i=0,o=0,n=0,r=new Array(e.length),a=new Array(e.length),l=0;l=0?f.get(v):0}}var g=0;for(d=0;d=0;)e^=s.G15<=0;)e^=s.G18<>>=1;return e},getPatternPosition:function(t){return s.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,i){switch(t){case n.PATTERN000:return(e+i)%2==0;case n.PATTERN001:return e%2==0;case n.PATTERN010:return i%3==0;case n.PATTERN011:return(e+i)%3==0;case n.PATTERN100:return(Math.floor(e/2)+Math.floor(i/3))%2==0;case n.PATTERN101:return e*i%2+e*i%3==0;case n.PATTERN110:return(e*i%2+e*i%3)%2==0;case n.PATTERN111:return(e*i%3+(e+i)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new c([1],0),i=0;i=1&&e<10)switch(t){case i.MODE_NUMBER:return 10;case i.MODE_ALPHA_NUM:return 9;case i.MODE_8BIT_BYTE:case i.MODE_KANJI:return 8;default:throw new Error("mode:"+t)}else if(e<27)switch(t){case i.MODE_NUMBER:return 12;case i.MODE_ALPHA_NUM:return 11;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 10;default:throw new Error("mode:"+t)}else{if(!(e<41))throw new Error("type:"+e);switch(t){case i.MODE_NUMBER:return 14;case i.MODE_ALPHA_NUM:return 13;case i.MODE_8BIT_BYTE:return 16;case i.MODE_KANJI:return 12;default:throw new Error("mode:"+t)}}},getLostPoint:function(t){for(var e=t.getModuleCount(),i=0,o=0;o5&&(i+=3+s-5)}for(o=0;o=256;)t-=255;return r.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},a=0;a<8;a++)r.EXP_TABLE[a]=1<>>7-t%8&1)},put:function(t,e){for(var i=0;i>>e-i-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var h=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function d(){return"undefined"!=typeof CanvasRenderingContext2D}function p(){var t=!1,e=navigator.userAgent;if(/android/i.test(e)){t=!0;var i=e.toString().match(/android ([0-9]\.[0-9])/i);i&&i[1]&&(t=parseFloat(i[1]))}return t}var f=function(){var t=function(t,e){this._el=t,this._htOption=e};return t.prototype.draw=function(t){var e=this._htOption,i=this._el,o=t.getModuleCount();Math.floor(e.width/o),Math.floor(e.height/o);function n(t,e){var i=document.createElementNS("http://www.w3.org/2000/svg",t);for(var o in e)e.hasOwnProperty(o)&&i.setAttribute(o,e[o]);return i}this.clear();var s=n("svg",{viewBox:"0 0 "+String(o)+" "+String(o),width:"100%",height:"100%",fill:e.colorLight});s.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),i.appendChild(s),s.appendChild(n("rect",{fill:e.colorLight,width:"100%",height:"100%"})),s.appendChild(n("rect",{fill:e.colorDark,width:"1",height:"1",id:"template"}));for(var r=0;r'],a=0;a");for(var c=0;c');r.push("")}r.push(""),i.innerHTML=r.join("");var l=i.childNodes[0],u=(e.width-l.offsetWidth)/2,h=(e.height-l.offsetHeight)/2;u>0&&h>0&&(l.style.margin=h+"px "+u+"px")},t.prototype.clear=function(){this._el.innerHTML=""},t}();function g(t,e){for(var i=1,n=m(t),s=0,r=h.length;s<=r;s++){var a=0;switch(e){case o.L:a=h[s][0];break;case o.M:a=h[s][1];break;case o.Q:a=h[s][2];break;case o.H:a=h[s][3]}if(n<=a)break;i++}if(i>h.length)throw new Error("Too long data");return i}function m(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}Jt=function(t,e){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:o.H},"string"==typeof e&&(e={text:e}),e)for(var i in e)this._htOption[i]=e[i];"string"==typeof t&&(t=document.getElementById(t)),this._htOption.useSVG&&(v=f),this._android=p(),this._el=t,this._oQRCode=null,this._oDrawing=new v(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},Jt.prototype.makeCode=function(t){this._oQRCode=new e(g(t,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(t),this._oQRCode.make(),this._el.title=t,this._oDrawing.draw(this._oQRCode),this.makeImage()},Jt.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},Jt.prototype.clear=function(){this._oDrawing.clear()},Jt.CorrectLevel=o}();var ne=Jt,se=i(2152),re=i.n(se),ae=i(466),ce=i.n(ae),le=JSON.parse('{"X":"{{#legacy}}\\n\\n{{/legacy}}\\n{{^legacy}}\\n{{title}}