Satellite Communication Basics


4,i=(15&o)>2,n=(3&r)<<6|(a=this._keyStr.indexOf(e.charAt(l++))),h+=String.fromCharCode(t),64!=r&&(h+=String.fromCharCode(i)),64!=a&&(h+=String.fromCharCode(n));return s._utf8_decode(h)},_utf8_decode:function(e){for(var t="",i=0,n=0,o=0,s=0;i191&&n<224?(o=e.charCodeAt(i+1),t+=String.fromCharCode((31&n)<<6|63&o),i+=2):(o=e.charCodeAt(i+1),s=e.charCodeAt(i+2),t+=String.fromCharCode((15&n)<<12|(63&o)<<6|63&s),i+=3);return t}};function r(e){}function a(e,t){e.prototype.addEvent=r.prototype.addEvent,e.prototype.removeEvent=r.prototype.removeEvent,e.prototype.fireEvent=r.prototype.fireEvent,e.prototype.initEventHelper=r.prototype.initEventHelper,e.prototype.possibleEvents=t}r.prototype.initEventHelper=function(){this.eventListenerEnabled=!0,this.eventListeners={};for(var e=0;e1){n[arguments.length-2]=null;for(var o=1;o-1&&h.search("safari")>-1,g=navigator.userAgent.indexOf(“AppleWebKit/”)>-1;function c(e,t,i,n,o,s){this.id=e,this.shortstyle=t,this.family=i,this.fallback=n,this.weight=o,this.style=s}function p(e,t){this.fonts=[],this.hasWoffsCss=t,this.docManager=e,this._cssRuleQueue=[],this._fontLoadQueue=[]}function f(e,t){this.pages=[],this.loaded=!1,this.fonts={},this.numFonts=0,this.fontLoader=t,this.groupNum=e||0}e=l()?1:2,l()&&(i=5,t=2),c.prototype.getEotFontSrc=function(e){return”src: url(“.concat(e).concat(this.family,”.eot);”)},c.prototype.getTTFFontSrc=function(e){return”src: url(“.concat(e).concat(this.family,”.ttf) format(‘truetype’);”)},c.prototype.getSVGFontSrc=function(e){return”src: url(“.concat(e,”#”).concat(this.family,”) format(‘svg’);”)},c.prototype.getFontFamily=function(){return”font-family: “.concat(this.family,”;”)},c.prototype.getFontWeight=function(){return”font-weight: “.concat(this.weight,”;”)},c.prototype.getFontStyle=function(){return”font-style: “.concat(this.style,”;”)},c.prototype.eotCSSRule=function(e){var t=[this.getEotFontSrc(e),this.getFontFamily(),this.getFontWeight(),this.getFontStyle()].join(” “);return”@font-face { “.concat(t,” }”)},c.prototype.ttfCSSRule=function(e){var t=[this.getTTFFontSrc(e),this.getFontFamily(),this.getFontWeight(),this.getFontStyle()].join(” “);return”@font-face { “.concat(t,” }”)},c.prototype.svgCSSRule=function(e){var t=[this.getSVGFontSrc(e),this.getFontFamily(),this.getFontWeight(),this.getFontStyle()].join(” “);return”@font-face { “.concat(t,” }”)},c.prototype.createPreloadElem=function(){return’scribd.’)},p.prototype._appendNewStyleBlock=function(){var e=document.createElement(“style”);return document.getElementsByTagName(“head”)[0].appendChild(e),e},p.prototype._addCSSRuleToQueue=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._cssRuleQueue.push(e),t&&this._flushCSSRuleQueue()},p.prototype._flushCSSRuleQueue=function(e){if(this._cssRuleQueue.length>0){var t=e&&document.getElementById(e)||this._appendNewStyleBlock(),i=this._cssRuleQueue.join(“n”);l()?t.styleSheet.cssText=i:window.createPopup?t.innerHTML=i:t.appendChild(document.createTextNode(i)),this._cssRuleQueue=[]}},p.prototype.getFontAggregatorHostUrl=function(t){var i=[this.docManager.nextFontAggregatorHost(),this.docManager.assetPrefix,t.join(“,”),12];return 2===e?i.push(“ttfs.css”):3===e&&i.push(“fonts.svg”),i.join(“/”)},p.prototype.getFontAggregatorHostForFonts=function(e){for(var t=[],i=0;i=20&&(0===n&&t>=i+3||t>=15):3===e?this.hasLoaded||o>=5&&t>=i:this.hasLoaded||o>100||o>=20&&(0===n&&t>=i+3||t>=100)},f.prototype.load=function(e){var t=this;if(!this.hasLoaded){this.hasLoaded=!0;var i=function(){for(var e in t.fonts)t.fonts.hasOwnProperty(e)&&t.fontLoader.addFontToQueue(e);t.fontLoader.flushFontQueue()};e?window.setTimeout(i.bind(this),e):i.call(this)}},f.prototype.newNextGroup=function(){return new f(this.groupNum+1,this.fontLoader)};var m=void 0!==document.documentElement.style.transform?3:void 0!==document.documentElement.style.WebkitTransform?4:void 0!==document.documentElement.style.MozTransform?1:void 0!==document.documentElement.style.OTransform?2:5;function y(e){for(var t in this._defaultParams)this._defaultParams.hasOwnProperty(t)&&(this[t]=e[t]||this._defaultParams[t]);var i=this._getMissingRequiredParams();if(i.length)throw”Missing required Page param(s): “+i.join(“, “);if(!this.contentUrl&&!this.innerPageElem)throw”Must initialize a page with either a contentUrl or innerPageElem element”;if(!0===this.containerElem.boundToPageObj)throw”Container Elem is already bound to a page. We shouldn’t get here”;this.containerElem.boundToPageObj=!0,this._targetHeight=null,this._targetMultiplier=null,this._targetWidth=null,this._innerPageVisible=!!this.innerPageElem,this._imagesTurnedOn=!1,this.boundingRect=null,this.isVisible=!1,this.displayDirty=!0,this.displayOn=null,this.loadHasStarted=!!this.innerPageElem}function _(){var e=this;this.initEventHelper(),this.viewRect=null,this.enabled=!1,this._scrollCallback=function(){e._eventHandler(“scroll”)},this._resizeCallback=function(t){e._eventHandler(“resize”)}}function v(){}function w(){this._name=”book”,this.currentPageId=null;var e=this;this._fullscreenResizedCallback=function(t){e._fullscreenResized(t)}}function P(){this._name=”slideshow”,this.currentPageId=null;var e=this;this._fullscreenResizedCallback=function(t){e._fullscreenResized(t)}}function b(){this._name=”scroll”;var e=this;this._verticalPositionChangeCallback=function(){e.checkAndUpdateVisiblePages()},this._fullscreenResizedCallback=function(){e._fullscreenResized()},this.shouldRestorePosition=!0}function M(e,t,i){this.options=i||{},this.options.extrasWidth=this.options.extrasWidth||315,this.defaultViewMode=e||”scroll”,this.mobile=t||!1,this.callbacks_ready=!1,this.callbacks=[],this.initEventHelper(),this.pages={},this._pageWidths=null,this._fontLoader=new p(this,this.options.hasWoffsCss),this.viewManagers={scroll:new b,slideshow:new P,book:new w},this.viewportManager=new _,this._currentFontAggregatorHostIdx=0,this.visiblePages=[],this.firstVisiblePage=null,this.lastVisiblePage=null,this.firstHiddenPageNum=null,this.truncateDocument=window.__truncate_document||!1,this.currentFontGroup=new f(0,this._fontLoader),this.isScrolling=!1,this._scrollingCount=0,”IntersectionObserver”in window&&”IntersectionObserverEntry”in window&&”intersectionRatio”in window.IntersectionObserverEntry.prototype&&”isIntersecting”in window.IntersectionObserverEntry.prototype&&this.setupLazyImageObserver()}function E(e,t,i){return Math.min(i,Math.max(t,e))}return y.prototype._getMissingRequiredParams=function(){for(var e,t=[],i=0;i/g,””);var t=document.createElement(“div”);t.innerHTML=e.trim();var i=t.firstChild;this.containerElem.appendChild(i),this.innerPageElem=i,this.turnOnLinks(),this.fixSVGFonts(),this._fitContentsToWidth(),this.displayDirty=!0,this.displayOn?this.display():this.hide()},y.prototype.fixSVGFonts=function(){!this._svgFontsFixed&&this.innerPageElem&&(u&&(!function e(t){if(t.nodeType==document.TEXT_NODE){var i=t.textContent.search(/[ n][^ n ]/);i>=0&&e(t.splitText(i+1))}else for(var n=t.childNodes,o=0;o‘)},y.prototype.load=function(){var e=this;if(this.currentlyLoading=!0,this.loadHasStarted=!0,this.innerPageElem)throw”We already have loaded this page, but it looks like you called loadPage again”;this.loadFonts();var t=”page”.concat(this.pageNum,”_callback”);if(window[t])try{delete window[t]}catch(e){window[t]=void 0}if(this.docManager.displayType===o)return delete this.currentlyLoading,void this._setContainerContents(this.imagePageContent(this.contentUrl));var i=document.createElement(“script”);window[t]=function(n){document.body.removeChild(i);var o=n[0];delete e.currentlyLoading,e._setContainerContents(o);var s=document.getElementById(e.containerElem.id);if(s&&s.classList.contains(“blurred_page”)&&e.docManager.doDynamicBlurring(e.containerElem.id),e.docManager.fireEvent(“pageLoaded”,e.containerElem),s&&e.docManager.lazyImageObserver){for(var r=s.querySelectorAll(“.absimg”),a=0;ae/t?t=Math.ceil(e/this.origWidth*this.origHeight):e=Math.ceil(t/this.origHeight*this.origWidth),this._targetWidth!==e&&(this.containerElem.style.width=e+”px”,this._targetWidth=e),this._targetHeight!==t&&(this.containerElem.style.height=t+”px”,this._targetHeight=t),this._fitContentsToWidth()},y.prototype.turnOnImages=function(){if(!this.innerPageElem)throw”Can’t turn on images for a page that’s not loaded”;if(this._imagesTurnedOn)throw”Images have already been turned on for this document”;this._imagesTurnedOn=!0;for(var e=this.innerPageElem.getElementsByTagName(“img”),t=0;t-1&&!o.href){var r=o.getAttribute(“orig”);if(r){var a=s.decode(r).replace(/^j[W]*a[W]*v[W]*a[W]*s[W]*c[W]*r[W]*i[W]*p[W]*t[W]*:|^f[W]*i[W]*l[W]*e[W]*:/gi,””);a.search(/^page/)>-1?o.onclick=t(a):(a.search(/^(http|ftp)/)<0&&(a="http://"+a),o.target="_blank",d(o,a),o.rel="nofollow")}}}},a(_,["vertical","horizontal","either","resize"]),_.prototype._makeViewRect=function(){var e=this.container,t=document.documentElement,i=e.scrollTop||e.scrollY||e.pageYOffset||t.scrollTop,n=e.scrollLeft||e.scrollX||e.pageXOffset||t.scrollLeft,o=e.clientWidth||e.innerWidth||t.clientWidth,s=e.clientHeight||e.innerHeight||t.clientHeight,r={top:i,left:n,right:n+o,bottom:i+s,width:o,height:s};if(this.container!==window){var a=this.container.getBoundingClientRect&&this.container.getBoundingClientRect();a&&(r.offsetX=a.left,r.offsetY=a.top)}return r},_.prototype._updateViewRect=function(){var e=this.viewRect;return this.viewRect=this._makeViewRect(),{xChanged:!e||e.left!=this.viewRect.left||e.width!=this.viewRect.width,yChanged:!e||e.top!=this.viewRect.top||e.height!=this.viewRect.height}},_.prototype._eventHandler=function(e){var t=this._updateViewRect();["resize","both"].includes(e)&&(t.xChanged||t.yChanged)&&this.fireEvent("resize",this.viewRect),(t.xChanged||t.yChanged)&&this.fireEvent("either",this.viewRect),t.xChanged&&this.fireEvent("horizontal",this.viewRect),t.yChanged&&this.fireEvent("vertical",this.viewRect)},_.prototype.enable=function(){if(this.enabled)throw"ViewportManager has already been enabled";this.enabled=!0,this.container=M.scrollParent||window,this._eventHandler("both"),this.container.addEventListener("resize",this._resizeCallback,!1),(M.scrollParent?this.container:window.document).addEventListener("scroll",this._scrollCallback,!1)},_.prototype.disable=function(){if(!this.enabled)throw"ViewportManager has already been disabled";this.enabled=!1,window.removeEventListener("resize",this._resizeCallback,!1),this.container.removeEventListener("scroll",this._scrollCallback,!1)},v.prototype.name=function(){return this._name},v.prototype.register=function(e,t){if(this.registered)throw"This ViewManager is already registered";this.registered=!0,this.documentManager=e,this.viewportManager=t,this._currentPageWidth=defaultViewWidth,this._currentZoomMultiplier=1,this._updatePageWidths();var i=this.documentManager.firstVisiblePage;this._register(e,t),i&&this.documentManager.gotoPage(i.pageNum,{}),e.executeCallbacks()},v.prototype._zoomedPageWidth=function(){return this._currentPageWidth*this._currentZoomMultiplier},v.prototype._updatePageWidths=function(){this.documentManager.setPageWidths(this._zoomedPageWidth())},v.prototype.isTopPageInView=function(){return!0},v.prototype._register=function(e,t){},v.prototype.unregister=function(){if(!this.registered)throw"This ViewManager is already unregistered";this.isFullscreen&&this.exitFullscreen(),this._setBodyWidth(),this._unregister(),this.registered=!1,delete this.documentManager,delete this.viewportManager},v.prototype._unregister=function(){},v.prototype._pagingStep=function(){return 1},v.prototype.gotoPage=function(e,t){if(!this.registered)throw"ViewManager must be registerd to call gotoPage";this._gotoPage(e,t)},v.prototype._gotoPage=function(e,t){},v.prototype._fireHideExtras=function(){this.documentManager._fireHideExtras(),this._extrasHidden=!0},v.prototype._fireShowExtras=function(){this.documentManager._fireShowExtras(),this._extrasHidden=!1},v.prototype.enterFullscreen=function(){if(this.isFullscreen)throw"Fullscreen is already set";this._setBodyWidth(),this.viewportManager.addEvent("resize",this._fullscreenResizedCallback),this._fireHideExtras(),this.resetZoom(),this._enterFullscreen(),this._fullscreenResized(this.viewportManager.viewRect),this._currentPageWidth=this.viewportManager.viewRect.width,this.isFullscreen=!0;var e=this.documentManager.firstVisiblePage;e&&this.documentManager.gotoPage(e.pageNum,{}),this.documentManager._fireEnteredFullscreen()},v.prototype.exitFullscreen=function(){if(!this.isFullscreen)throw"Fullscreen is not set";this.viewportManager.removeEvent("resize",this._fullscreenResizedCallback),this._fireShowExtras(),this.resetZoom(),this._exitFullscreen(),this.isFullscreen=!1;var e=this.documentManager.firstVisiblePage;e&&this.documentManager.gotoPage(e.pageNum,{}),this.documentManager._fireExitedFullscreen()},v.prototype._viewBarWidth=function(){return this._extrasHidden?0:this.documentManager.options.extrasWidth},v.prototype._enterFullscreen=function(){},v.prototype._exitFullscreen=function(){},v.prototype._fullscreenResized=function(e){},v.prototype._scrollWithZoom=function(e,t){window.scrollTo(0,e.top*t)},v.prototype.zoom=function(e){var t=this.viewportManager.viewRect;t&&(this._currentZoomMultiplier*=e,this._setBodyWidth(),this._updatePageWidths(),this.documentManager.setIsScrolling(!0),this._scrollWithZoom(t,e),this._zoomed(),this.documentManager.setIsScrolling(!1),this.documentManager._fireZoomed(e))},v.prototype._zoomed=function(){},v.prototype.resetZoom=function(){this._currentZoomMultiplier=1,this._setBodyWidth(),this._updatePageWidths(),this._zoomed()},v.prototype._setBodyWidth=function(e){if(!M.scrollParent&&0!=M.updateBodyWidth){var t=document.documentElement.clientWidth,i=this._zoomedPageWidth()+this._viewBarWidth()+10;globalHeader=document.getElementById("global_header"),i>t?(document.body.style.width=””.concat(i,”px”),globalHeader&&(globalHeader.style.width=””.concat(t,”px”))):(document.body.style.width=”100%”,globalHeader&&(globalHeader.style.width=”100%”))}},w.prototype=new v,w.prototype._register=function(e,t){this._prepareDisplay()},w.prototype._unregister=function(){for(var e in this.documentManager.pages)if(this.documentManager.pages.hasOwnProperty(e)){var t=this.documentManager.pages[e];t.containerElem.classList.remove(“book_view”),t.containerElem.style.display=””}},w.prototype._prepareDisplay=function(){for(var e in this.documentManager.pages)if(this.documentManager.pages.hasOwnProperty(e)){var t=this.documentManager.pages[e];t.containerElem.classList.add(“book_view”),t.containerElem.style.display=”none”,t.hide()}this.documentManager.setPageMissingModulesVisible(!1),this.documentManager.gotoPage(this.documentManager.currentPageNum()||1)},w.prototype._zoomed=function(){this.documentManager.pages[this.currentPageId]},w.prototype._updatePageWidths=function(){this.documentManager.setPageWidths(this._zoomedPageWidth()/2)},w.prototype._pagingStep=function(){return 2},w.prototype._showPage=function(e){var t=this.documentManager.pages[e];t&&(t.isVisible=!0,t.display(!0),t.containerElem.style.display=””)},w.prototype._hidePage=function(e){var t=this.documentManager.pages[e];t&&(t.isVisible=!1,t.containerElem.style.display=”none”,t.hide())},w.prototype._gotoPage=function(e,t){var i,n;(e=parseInt(e,10))%2==1&&(e-=1),”number”==typeof this.currentPageId&&(this._hidePage(this.currentPageId),this._hidePage(this.currentPageId+1)),i=this.documentManager.pages[e],n=this.documentManager.pages[e+1],(i||n)&&(this.currentPageId=e,this.isFullscreen&&this._setPageBounds(this.viewportManager.viewRect),this._showPage(e),this._showPage(e+1),this.documentManager.visiblePagesChanged())},w.prototype._setWidth=function(e){this._currentPageWidth=e,this.documentManager.setPageWidths(e)},w.prototype._fullscreenResized=function(e){this._setWidth(e.width-30)},w.prototype._enterFullscreen=function(){this._previousPageWidth=this._currentPageWidth||defaultViewWidth},w.prototype._exitFullscreen=function(){this._setWidth(defaultViewWidth),this._setBodyWidth()},P.prototype=new v,P.prototype._register=function(e,t){this._prepareDisplay();var i=document.getElementById(“scroll_preventer”);i&&(i.style.overflow=”hidden”,i.style.height=”100%”)},P.prototype._unregister=function(){var e=document.getElementById(“scroll_preventer”);e&&(e.style.overflow=”visible”,e.style.height=”auto”)},P.prototype._prepareDisplay=function(){for(var e in this.documentManager.pages)if(this.documentManager.pages.hasOwnProperty(e)){var t=this.documentManager.pages[e];t.containerElem.style.display=”none”,t.hide()}this.documentManager.setPageMissingModulesVisible(!1),this.documentManager.gotoPage(this.documentManager.currentPageNum()||1)},P.prototype._setPageBounds=function(e){var t=this.documentManager.pages[this.currentPageId];t&&t.setBounds(e.width,e.height)},P.prototype._gotoPage=function(e,t){var i;this.documentManager.pages.hasOwnProperty(e)&&(this.currentPageId&&(i=this.documentManager.pages[this.currentPageId])&&(i.isVisible=!1,i.containerElem.style.display=”none”,i.hide()),this.currentPageId=e,i=this.documentManager.pages[e],this.isFullscreen&&this._setPageBounds(this.viewportManager.viewRect),i.isVisible=!0,i.display(!0),i.containerElem.style.display=””,i._updateBoundingRect(),this.documentManager.visiblePagesChanged())},P.prototype._setWidth=function(e){this._currentPageWidth=e,this.documentManager.setPageWidths(e)},P.prototype._fullscreenResized=function(e){this._setPageBounds(e)},P.prototype._enterFullscreen=function(){this._previousPageWidth=this._currentPageWidth||defaultViewWidth},P.prototype._exitFullscreen=function(){this._setWidth(defaultViewWidth),this._setBodyWidth()},b.prototype=new v,b.prototype._updateInViewport=function(e){var t=this.viewportManager.viewRect,i=e.boundingRect,n=e.isVisible;return e.isVisible=!(!t||!i)&&i.leftt.left&&i.topt.top,this.adjacentVisiblePages=1,n!=e.isVisible},b.prototype.checkAndUpdateVisiblePages=function(){var e=!1;for(var t in this.pages)if(this.pages.hasOwnProperty(t)){var i=this.pages[t],n=this._updateInViewport(i);e=e||n}e?this.documentManager.visiblePagesChanged():this.documentManager.scheduleLogPageView(),this._updateDisplayOnPages()},b.prototype._updateDisplayOnPages=function(){if(this.documentManager.firstVisiblePage&&this.documentManager.lastVisiblePage){var e=this.documentManager.firstVisiblePage.pageNum-this.adjacentVisiblePages,t=this.documentManager.lastVisiblePage.pageNum+this.adjacentVisiblePages;for(var i in this.pages)if(this.pages.hasOwnProperty(i)){var n=this.pages[i];n&&(n.pageNum>=e&&n.pageNume.pageNum||e.boundingRect.top+5>=this.viewportManager.viewRect.top},b.prototype._unregister=function(){this.viewportManager.removeEvent(“vertical”,this._verticalPositionChangeCallback),delete this.pages},b.prototype._gotoPage=function(e,t){if(t=t||{},this.pages.hasOwnProperty(e)){var i=this.documentManager.pages[e];this.documentManager.setIsScrolling(!0);var n=this.documentManager.viewportManager.container;return i._updateBoundingRect(),n==window?scrollTo(i.boundingRect.left,i.boundingRect.top-(t.offset||0)):n.scrollTop=i.boundingRect.top-(t.offset||0),this.documentManager.setIsScrolling(!1),this.documentManager.isScrolling||this.documentManager.visiblePagesChanged(),i.pageNum}},b.prototype._gotoNextPage=function(){this.documentManager.firstVisiblePage&&this.documentManager.gotoPage(this.documentManager.firstVisiblePage.pageNum+1,{direction:1})},b.prototype._gotoPreviousPage=function(){this.documentManager.firstVisiblePage&&this.documentManager.gotoPage(this.documentManager.firstVisiblePage.pageNum-1,{direction:-1})},b.prototype._setWidth=function(e){var t=this.pagePosition();this._currentPageWidth=e,this._updatePageWidths(),this._setBodyWidth(),this.restorePosition(t)},b.prototype._fullscreenResized=function(){this._setWidth((window.innerWidth||document.documentElement.clientWidth)-30)},b.prototype._enterFullscreen=function(){this._previousPageWidth=this._currentWidth||defaultViewWidth},b.prototype._exitFullscreen=function(){this._setWidth(this._previousPageWidth)},b.prototype.pagePosition=function(){var e=this.viewportManager.container,t=this.documentManager.pages[this.documentManager.currentPageNum()||1],i=e.scrollTop,n=e.scrollLeft,o=(i-t.boundingRect.top)/t.boundingRect.height,s=(n-t.boundingRect.left)/t.boundingRect.width;return[t.pageNum,o,s]},b.prototype.restorePosition=function(e){if(!this._disableRestorePosition){var t=this.pages[e[0]].containerElem;if(this._gotoPage(e[0],{offset:-Math.floor(e[1]*t.clientHeight)}),null!==e[2]){var i=this.viewportManager.container,n=e[2];n=Math.floor(n*t.clientWidth);var o=t.clientWidth-i.clientWidth;i.scrollLeft=Math.min(o,n)}}},b.prototype.zoom=function(e){if(this.viewportManager.viewRect){var t=this.pagePosition();this._currentZoomMultiplier*=e,this._setBodyWidth(),this._updatePageWidths(),this.shouldRestorePosition&&this.restorePosition(t),this._zoomed(),this.documentManager._fireZoomed(e)}},a(M,[“expectedFirstPageChanged”,”viewmodeChanged”,”enteredFullscreen”,”exitedFullscreen”,”hideExtras”,”showExtras”,”zoomed”,”pageHide”,”pageLoaded”,”allPagesAdded”,”pageView”,”visiblePagesChanged”,”viewmodeInitialized”]),M.prototype.setupLazyImageObserver=function(){var e=this;this.lazyImageObserver=new IntersectionObserver((function(t,i){t.forEach((function(t){t.isIntersecting&&e.lazyLoad(t.target)}))}))},M.prototype.lazyLoad=function(e){e.className.toLowerCase().search(“absimg”)>-1&&!e.src&&(e.src=this.subImageSrc(e.getAttribute(“orig”)),e.removeAttribute(“orig”),e.style.display=”block”,this.lazyImageObserver&&this.lazyImageObserver.unobserve(e))},M.prototype.observeImages=function(e){if(this.lazyImageObserver&&this.lazyImageObserver.observe)for(var t=e.getElementsByTagName(“img”),i=0;i-1&&this.lazyImageObserver.observe(t[i])},M.prototype.registerCallback=function(e){this.callbacks_ready?e.call(this):this.callbacks.push(e)},M.prototype.executeCallbacks=function(){var e=this;this.callbacks_ready=!0,this.callbacks.forEach((function(t){t.call(e)}))},M.prototype.disableRestorePosition=function(){this.viewManagers.scroll._disableRestorePosition=!0},M.prototype._fireZoomed=function(e){this.fireEvent(“zoomed”,e)},M.prototype.nextFontAggregatorHost=function(){return this._currentFontAggregatorHostIdx=(this._currentFontAggregatorHostIdx+1)%this.fontAggregatorHosts.length,this.fontAggregatorHosts[this._currentFontAggregatorHostIdx]},M.prototype._fireHideExtras=function(){this.fireEvent(“hideExtras”)},M.prototype._fireShowExtras=function(){this.fireEvent(“showExtras”)},M.prototype.currentPageNum=function(){return this._expectedFirstPageNum},M.prototype.setupTestElements=function(){this._fontLoader.setupTestElements()},M.prototype.pageCount=function(){if(this.hasOwnProperty(“_pageCount”))return this._pageCount;var e=0;for(var t in this.pages)this.pages.hasOwnProperty(t)&&e++;return this._pageCount=e,this._pageCount},M.prototype.truncatedPagesString=function(){return””.concat(this.firstHiddenPageNum,”-“).concat(this.originalPageCount)},M.prototype.setupPaidDocument=function(e,t){this.allowedPages=e,this.originalPageCount=t,this._allowedPagesHash=[],this._maximumAllowedPage=Math.max.apply(null,this.allowedPages),this._minimumAllowedPage=Math.min.apply(null,this.allowedPages),this._isPaidDocument=!0,this._pageMissingElements=[];for(var i=0;i0&&e[i]>e[i-1]+1||0===i&&1!=e[i])&&this._pageMissingElements.push(“page_missing_explanation_”+e[i].toString());this._maximumAllowedPage!=this.originalPageCount&&this._pageMissingElements.push(“page_missing_explanation_”+(this.originalPageCount+1).toString())},M.prototype.minimumPageNumber=function(){return”book”===this.viewMode()?0:1},M.prototype.maximumPageNumber=function(){return this.allowedPages?this.originalPageCount:this.pageCount()},M.prototype.getClosestPageNumber=function(e,t){if(!this.allowedPages)return e;if(this._allowedPagesHash[e])return e;if(e>=this._maximumAllowedPage)return this._maximumAllowedPage;if(e<=this._minimumAllowedPage)return this._minimumAllowedPage;for(var i=1;i<=this.originalPageCount;i++){if(t=0&&e+i0?e[e.length-1]:null,this.isScrolling||(this._loadAdjacentFonts(),this._loadAdjacentPages()),(this.firstVisiblePage===n||this.firstVisiblePage&&n)&&this.firstVisiblePage.pageNum==n.pageNum||!this.isScrolling&&this.firstVisiblePage&&this._updateExpectedFirstPage(this.firstVisiblePage.pageNum),this.scheduleLogPageView()}},M.prototype.boundingRatioForPage=function(e){var t=this.viewportManager.viewRect,i=e.boundingRect,n=i.bottom-i.top,o=i.right-i.left;return{left:(t.left-i.left)/o,right:(t.right-i.right)/o+1,top:E((t.top-i.top)/n+e.pageNum,e.pageNum,e.pageNum+1),bottom:E((t.bottom-i.bottom)/n+e.pageNum+1,e.pageNum,e.pageNum+1)}},M.prototype.scheduleLogPageView=function(){var e=this;this.logPageViewTimout&&window.clearTimeout(this.logPageViewTimout),this.logPageViewTimout=window.setTimeout((function(){e.logPageView(),e.logPageViewTimout=null}),1e3)},M.prototype.getVisibleBBox=function(){var e={};if(this.firstVisiblePage){var t=this.boundingRatioForPage(this.firstVisiblePage);e.left=t.left,e.right=t.right,e.top=t.top}if(this.lastVisiblePage){var i=this.boundingRatioForPage(this.lastVisiblePage);e.bottom=i.bottom}return e},M.prototype.logPageView=function(){var e,t=this.getVisibleBBox();for(var i in t)t.hasOwnProperty(i)&&(t[i]=(e=t[i],Math.floor(100*e)/100));var n=window.$rat;return n&&n(“fourgen.viewchange”,”2″==window.RAT_API_VERSION?[[t.left,t.top],[t.right,t.bottom]]:”(“.concat(t.left,” “).concat(t.top,”) (“).concat(t.right,” “).concat(t.bottom,”)”)),this.fireEvent(“pageView”),t},M.prototype._updateExpectedFirstPage=function(e){this._expectedFirstPageNum=e,this.fireEvent(“expectedFirstPageChanged”,this._expectedFirstPageNum)},M.prototype._loadAdjacentFonts=function(){if(this.firstVisiblePage&&this.lastVisiblePage)for(var e=this.firstVisiblePage.pageNum-i,t=this.lastVisiblePage.pageNum+i,n=e;n<=t;n++){var o=this.pages[n];o&&o.loadFonts()}},M.prototype._loadAdjacentPages=function(){if(this.firstVisiblePage&&this.lastVisiblePage){for(var e=this.firstVisiblePage.pageNum-t,i=this.lastVisiblePage.pageNum+t,n=e;n<=i;n++){var o=this.pages[n];o&&!o.loadHasStarted&&(o.load(),this.mobile&&o.setWidth(this._pageWidths))}this.mobile&&this._removeUnusedPages()}},M.prototype._removeUnusedPages=function(){for(var e=this.firstVisiblePage.pageNum-t,i=this.lastVisiblePage.pageNum+t,n=this.pages,o=t+1;n[o];)(oi)&&n[o].remove(),o++},M.prototype._updatePageBoundingRects=function(){for(var e in this.pages)this.pages.hasOwnProperty(e)&&this.pages[e]._updateBoundingRect()},M.prototype.removeInsteadOfBlurring=function(e){return!!(this.truncateDocument&&this.firstHiddenPageNum&&e.pageNum>=this.firstHiddenPageNum)||!!M.disablePageBlur||”undefined”==typeof Scribd},M.prototype.addPage=function(e){if(!this.firstHiddenPageNum&&e.blur&&(this.firstHiddenPageNum=e.pageNum),!this.removeInsteadOfBlurring(e)){if(void 0===e.pageNum)throw”must have pageNum param”;if(e.docManager=this,e.innerPageElem)for(var t=e.innerPageElem.querySelectorAll(“.absimg”),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},t=r(“messages”);t?t.push({message:e,extraInfo:n}):console.error(e,n)}function c(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!(!window.Scribd||!window.Scribd.Sentry.disabled)&&(console.error(e,n),!0)}function a(){return window.Sentry&&window.Sentry.captureException&&window.Sentry.captureMessage&&window.Sentry.configureScope&&window.Sentry.withScope}function s(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!c(e,n))if(a()){var t=Object.keys(n);t.length?window.Sentry.withScope((r=>{t.forEach((e=>{r.setExtra(e,n[e])})),window.Sentry.captureException(e)})):window.Sentry.captureException(e)}else o(e,n)}function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!c(e,n))if(a()){var t=Object.keys(n);t.length?window.Sentry.withScope((r=>{t.forEach((e=>{r.setExtra(e,n[e])})),window.Sentry.captureMessage(e)})):window.Sentry.captureMessage(e)}else i(e,n)}function u(e){a()&&e&&window.Sentry.configureScope((n=>{n.setTag(“page”,e)}))}function w(){r(“errors”).concat(r(“messages”)).forEach((e=>{var n=e.extraInfo;e.message&&d(e.message,n),e.errorObject&&s(e.errorObject,n)}))}t.d(n,”a”,(function(){return s})),t.d(n,”b”,(function(){return d})),t.d(n,”c”,(function(){return u})),t.d(n,”d”,(function(){return w}))},w0yH:function(e,n,t){(function(e){(“undefined”!=typeof window?window:void 0!==e?e:”undefined”!=typeof self?self:{}).SENTRY_RELEASE={id:”a524146e8756f0d59e4be6aef862bbd4d58b3b63″}}).call(this,t(“fRV1”))}},[[3,0]]]); //# sourceMappingURL=https://www.scribd.com/webpack/doc_page/init.d936dff15dcf648c2eee.js.map ]]>

Source