1(self.webpackChunkbezlimit=self.webpackChunkbezlimit||[]).push([[6494],{19784:function(G,Y,X){"use strict";var Q,en,er=X(86096),eo=(Q=X(73884),en=Object.create(null),Q&&Object.keys(Q).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(Q,G);Object.defineProperty(en,G,Y.get?Y:{enumerable:!0,get:function(){return Q[G]}})}}),en.default=Q,Object.freeze(en)),a=function(G){var Y=G.files,X=eo.useRef(),Q=eo.useContext(er.LocalizationContext).l10n,en=eo.useContext(er.ThemeContext).direction===er.TextDirection.RightToLeft,ea=eo.useRef([]),ei=Q&&Q.attachment?Q.attachment.clickToDownload:"Click to download",l=function(G){var Y=X.current,Q=[].slice.call(Y.getElementsByClassName("rpv-attachment__item"));if(0!==Q.length){Q.forEach(function(G){return G.setAttribute("tabindex","-1")});var en=document.activeElement,er=Q[Math.min(Q.length-1,Math.max(0,G(Q,en)))];er.setAttribute("tabindex","0"),er.focus()}};return er.useIsomorphicLayoutEffect(function(){var G=X.current;if(G){var Y=[].slice.call(G.getElementsByClassName("rpv-attachment__item"));if(ea.current=Y,Y.length>0){var Q=Y[0];Q.focus(),Q.setAttribute("tabindex","0")}}},[]),eo.createElement("div",{"data-testid":"attachment__list",className:er.classNames({"rpv-attachment__list":!0,"rpv-attachment__list--rtl":en}),ref:X,tabIndex:-1,onKeyDown:function(G){switch(G.key){case"ArrowDown":G.preventDefault(),l(function(G,Y){return G.indexOf(Y)+1});break;case"ArrowUp":G.preventDefault(),l(function(G,Y){return G.indexOf(Y)-1});break;case"End":G.preventDefault(),l(function(G,Y){return G.length-1});break;case"Home":G.preventDefault(),l(function(G,Y){return 0})}}},Y.map(function(G){return eo.createElement("button",{className:"rpv-attachment__item",key:G.fileName,tabIndex:-1,title:ei,type:"button",onClick:function(){var Y,X,Q,en,er;return Y=G.fileName,Q="string"==typeof(X=G.data)?"":URL.createObjectURL(new Blob([X],{type:""})),(en=document.createElement("a")).style.display="none",en.href=Q||Y,en.setAttribute("download",(er=Y.split("/").pop())?er.split("#")[0].split("?")[0]:Y),document.body.appendChild(en),en.click(),document.body.removeChild(en),void(Q&&URL.revokeObjectURL(Q))}},G.fileName)}))},r=function(G){var Y=G.doc,X=eo.useContext(er.LocalizationContext).l10n,Q=eo.useContext(er.ThemeContext).direction===er.TextDirection.RightToLeft,en=X&&X.attachment?X.attachment.noAttachment:"There is no attachment",ea=eo.useState({files:[],isLoaded:!1}),ei=ea[0],ec=ea[1];return eo.useEffect(function(){Y.getAttachments().then(function(G){ec({files:G?Object.keys(G).map(function(Y){return{data:G[Y].content,fileName:G[Y].filename}}):[],isLoaded:!0})})},[Y]),ei.isLoaded?0===ei.files.length?eo.createElement("div",{"data-testid":"attachment__empty",className:er.classNames({"rpv-attachment__empty":!0,"rpv-attachment__empty--rtl":Q})},en):eo.createElement(a,{files:ei.files}):eo.createElement(er.Spinner,null)},c=function(G){var Y=G.store,X=eo.useState(Y.get("doc")),Q=X[0],en=X[1],u=function(G){en(G)};return eo.useEffect(function(){return Y.subscribe("doc",u),function(){Y.unsubscribe("doc",u)}},[]),Q?eo.createElement(r,{doc:Q}):eo.createElement("div",{className:"rpv-attachment__loader"},eo.createElement(er.Spinner,null))};Y.attachmentPlugin=function(){var G=eo.useMemo(function(){return er.createStore({})},[]);return{onDocumentLoad:function(Y){G.update("doc",Y.doc)},Attachments:function(){return eo.createElement(c,{store:G})}}}},67306:function(G,Y,X){"use strict";G.exports=X(19784)},95914:function(G,Y,X){"use strict";var Q,en,er,eo,ea=X(86096),ei=(en=X(73884),er=Object.create(null),en&&Object.keys(en).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(en,G);Object.defineProperty(er,G,Y.get?Y:{enumerable:!0,get:function(){return en[G]}})}}),er.default=en,Object.freeze(er)),n=function(){return(n=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)},a=function(){return ei.createElement(ea.Icon,{size:16},ei.createElement("path",{d:"M6.427,8.245A.5.5,0,0,1,6.862,7.5H17.138a.5.5,0,0,1,.435.749l-5.139,9a.5.5,0,0,1-.868,0Z"}))},i=function(){return ei.createElement(ea.Icon,{size:16},ei.createElement("path",{d:"M9.248,17.572a.5.5,0,0,1-.748-.434V6.862a.5.5,0,0,1,.748-.434l8.992,5.138a.5.5,0,0,1,0,.868Z"}))},c=function(G){var Y=G.bookmark,X=G.depth,Q=G.doc,en=G.index,er=G.isBookmarkExpanded,eo=G.numberOfSiblings,ec=G.pathFromRoot,el=G.renderBookmarkItem,eu=G.store,es=ec?"".concat(ec,".").concat(en):"".concat(en),ef=ei.useMemo(function(){return function(G){var Y=G.count,X=G.items;if(Y>=0)return!1;var Q=X.length;if(0===Q)return!1;for(var en=X.concat([]);en.length>0;){var er=en.shift(),eo=er.items;er.count&&eo&&er.count>0&&eo.length>0&&(Q+=eo.length,en=en.concat(eo))}return Math.abs(Y)===Q}(Y)},[Y]),ed=eu.get("bookmarkExpandedMap"),ep=er?er({bookmark:Y,doc:Q,depth:X,index:en}):ed.has(es)?ed.get(es):!ef,em=ei.useState(ep),eh=em[0],eg=em[1],ev=Y.items&&Y.items.length>0,I=function(){var G=!eh;eu.updateCurrentValue("bookmarkExpandedMap",function(Y){return Y.set(es,G)}),eg(G)},y=function(){var G=Y.dest,X=eu.get("jumpToDestination");ea.getDestination(Q,G).then(function(G){X&&X(n({label:Y.title},G))})},w=function(){ev&&Y.dest&&y()},C=function(){!ev&&Y.dest&&y()},D=function(G,Y){return ei.createElement("div",{className:"rpv-bookmark__item",style:{paddingLeft:"".concat(1.25*X,"rem")},onClick:G},Y)}
1,N=function(G,Y){return ev?ei.createElement("span",{className:"rpv-bookmark__toggle","data-testid":"bookmark__toggle-".concat(X,"-").concat(en),onClick:I},eh?G:Y):ei.createElement("span",{className:"rpv-bookmark__toggle"})},R=function(G){return Y.url?ei.createElement("a",{className:"rpv-bookmark__title",href:Y.url,rel:"noopener noreferrer nofollow",target:Y.newWindow?"_blank":""},Y.title):ei.createElement("div",{className:"rpv-bookmark__title","aria-label":Y.title,onClick:G},Y.title)};return ei.createElement("li",{"aria-expanded":eh?"true":"false","aria-label":Y.title,"aria-level":X+1,"aria-posinset":en+1,"aria-setsize":eo,role:"treeitem",tabIndex:-1},el?el({bookmark:Y,depth:X,hasSubItems:ev,index:en,isExpanded:eh,path:es,defaultRenderItem:D,defaultRenderTitle:R,defaultRenderToggle:N,onClickItem:C,onClickTitle:w,onToggleSubItems:I}):D(C,ei.createElement(ei.Fragment,null,N(ei.createElement(a,null),ei.createElement(i,null)),R(w))),ev&&eh&&ei.createElement(m,{bookmarks:Y.items,depth:X+1,doc:Q,isBookmarkExpanded:er,isRoot:!1,pathFromRoot:es,renderBookmarkItem:el,store:eu}))},m=function(G){var Y=G.bookmarks,X=G.depth,Q=void 0===X?0:X,en=G.doc,er=G.isBookmarkExpanded,eo=G.isRoot,ea=G.pathFromRoot,ec=G.renderBookmarkItem,el=G.store;return ei.createElement("ul",{className:"rpv-bookmark__list",role:eo?"tree":"group",tabIndex:-1},Y.map(function(G,X){return ei.createElement(c,{bookmark:G,depth:Q,doc:en,index:X,isBookmarkExpanded:er,key:X,numberOfSiblings:Y.length,pathFromRoot:ea,renderBookmarkItem:ec,store:el})}))};(Q=eo||(eo={}))[Q.Collapse=0]="Collapse",Q[Q.Expand=1]="Expand";var l=function(G){var Y=G.bookmarks,X=G.doc,Q=G.isBookmarkExpanded,en=G.renderBookmarkItem,er=G.store,ea=ei.useRef(),s=function(G){var Y=ea.current;if(Y&&G.target instanceof HTMLElement&&Y.contains(G.target))switch(G.key){case"ArrowDown":G.preventDefault(),k(function(G,Y){return G.indexOf(Y)+1});break;case"ArrowLeft":G.preventDefault(),d(eo.Collapse);break;case"ArrowRight":G.preventDefault(),d(eo.Expand);break;case"ArrowUp":G.preventDefault,k(function(G,Y){return G.indexOf(Y)-1});break;case"End":G.preventDefault(),k(function(G,Y){return G.length-1});break;case" ":case"Enter":case"Space":G.preventDefault(),u();break;case"Home":G.preventDefault(),k(function(G,Y){return 0})}},u=function(){var G=document.activeElement.closest(".rpv-bookmark__item").querySelector(".rpv-bookmark__title");G&&G.click()},k=function(G){var Y=ea.current,X=[].slice.call(Y.getElementsByClassName("rpv-bookmark__item"));if(0!==X.length){var Q=document.activeElement,en=X[Math.min(X.length-1,Math.max(0,G(X,Q)))];Q.setAttribute("tabindex","-1"),en.setAttribute("tabindex","0"),en.focus()}},d=function(G){var Y=ea.current;if(0!==[].slice.call(Y.getElementsByClassName("rpv-bookmark__item")).length){var X=document.activeElement.closest(".rpv-bookmark__item"),Q=G===eo.Collapse?"true":"false";if(X&&X.parentElement.getAttribute("aria-expanded")===Q){var en=X.querySelector(".rpv-bookmark__toggle");en&&en.click()}}};return ei.useEffect(function(){return document.addEventListener("keydown",s),function(){document.removeEventListener("keydown",s)}},[]),ei.useEffect(function(){var G=ea.current;if(G){var Y=[].slice.call(G.getElementsByClassName("rpv-bookmark__item"));Y.length>0&&(Y[0].focus(),Y[0].setAttribute("tabindex","0"))}},[]),ei.createElement("div",{ref:ea},ei.createElement(m,{bookmarks:Y,depth:0,doc:X,isBookmarkExpanded:Q,isRoot:!0,pathFromRoot:"",renderBookmarkItem:en,store:er}))},s=function(G){var Y=G.doc,X=G.isBookmarkExpanded,Q=G.renderBookmarkItem,en=G.store,er=ei.useContext(ea.LocalizationContext).l10n,eo=ei.useContext(ea.ThemeContext).direction===ea.TextDirection.RightToLeft,ec=ei.useState({isLoaded:!1,items:[]}),el=ec[0],eu=ec[1];return ei.useEffect(function(){eu({isLoaded:!1,items:[]}),Y.getOutline().then(function(G){eu({isLoaded:!0,items:G||[]})})},[Y]),el.isLoaded?0===el.items.length?ei.createElement("div",{"data-testid":"bookmark__empty",className:ea.classNames({"rpv-bookmark__empty":!0,"rpv-bookmark__empty--rtl":eo})},er&&er.bookmark?er.bookmark.noBookmark:"There is no bookmark"):ei.createElement("div",{"data-testid":"bookmark__container",className:ea.
1classNames({"rpv-bookmark__container":!0,"rpv-bookmark__container--rtl":eo})},ei.createElement(l,{bookmarks:el.items,doc:Y,isBookmarkExpanded:X,renderBookmarkItem:Q,store:en})):ei.createElement("div",{className:"rpv-bookmark__loader"},ei.createElement(ea.Spinner,null))},u=function(G){var Y=G.isBookmarkExpanded,X=G.renderBookmarkItem,Q=G.store,en=ei.useState(Q.get("doc")),er=en[0],eo=en[1],l=function(G){eo(G)};return ei.useEffect(function(){return Q.subscribe("doc",l),function(){Q.unsubscribe("doc",l)}},[]),er?ei.createElement(s,{doc:er,isBookmarkExpanded:Y,renderBookmarkItem:X,store:Q}):ei.createElement("div",{className:"rpv-bookmark__loader"},ei.createElement(ea.Spinner,null))};Y.DownArrowIcon=a,Y.RightArrowIcon=i,Y.bookmarkPlugin=function(){var G=ei.useMemo(function(){return ea.createStore({bookmarkExpandedMap:new Map})},[]);return{install:function(Y){G.update("jumpToDestination",Y.jumpToDestination)},onDocumentLoad:function(Y){G.update("doc",Y.doc)},Bookmarks:function(Y){return ei.createElement(u,{isBookmarkExpanded:null==Y?void 0:Y.isBookmarkExpanded,renderBookmarkItem:null==Y?void 0:Y.renderBookmarkItem,store:G})}}}},52199:function(G,Y,X){"use strict";G.exports=X(95914)},49048:function(G,Y,X){"use strict";var Q,en=X(73884),er=X(80748);function n(G){var Y=Object.create(null);return G&&Object.keys(G).forEach(function(X){if("default"!==X){var Q=Object.getOwnPropertyDescriptor(G,X);Object.defineProperty(Y,X,Q.get?Q:{enumerable:!0,get:function(){return G[X]}})}}),Y.default=G,Object.freeze(Y)}var eo,ea=n(en),ei=n(er);Y.AnnotationType=void 0,(eo=Y.AnnotationType||(Y.AnnotationType={}))[eo.Text=1]="Text",eo[eo.Link=2]="Link",eo[eo.FreeText=3]="FreeText",eo[eo.Line=4]="Line",eo[eo.Square=5]="Square",eo[eo.Circle=6]="Circle",eo[eo.Polygon=7]="Polygon",eo[eo.Polyline=8]="Polyline",eo[eo.Highlight=9]="Highlight",eo[eo.Underline=10]="Underline",eo[eo.Squiggly=11]="Squiggly",eo[eo.StrikeOut=12]="StrikeOut",eo[eo.Stamp=13]="Stamp",eo[eo.Caret=14]="Caret",eo[eo.Ink=15]="Ink",eo[eo.Popup=16]="Popup",eo[eo.FileAttachment=17]="FileAttachment";var i=function(G,Y){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(G,Y){G.__proto__=Y}||function(G,Y){for(var X in Y)Object.prototype.hasOwnProperty.call(Y,X)&&(G[X]=Y[X])})(G,Y)};function c(G,Y){if("function"!=typeof Y&&null!==Y)throw TypeError("Class extends value "+String(Y)+" is not a constructor or null");function n(){this.constructor=G}i(G,Y),G.prototype=null===Y?Object.create(Y):(n.prototype=Y.prototype,new n)}var ec,l=function(){return(l=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)};Y.TextDirection=void 0,(ec=Y.TextDirection||(Y.TextDirection={})).RightToLeft="RTL",ec.LeftToRight="LTR";var el,eu=ea.createContext({currentTheme:"light",direction:Y.TextDirection.LeftToRight,setCurrentTheme:function(){}}),d=function(G){var Y=[];return Object.keys(G).forEach(function(X){X&&G[X]&&Y.push(X)}),Y.join(" ")},es="undefined"!=typeof window?ea.useLayoutEffect:ea.useEffect,g=function(G){var Y=ea.useRef(null),X=G.once,Q=G.threshold,en=G.onVisibilityChanged;return es(function(){var G=Y.current;if(G){var er=new IntersectionObserver(function(Y){Y.forEach(function(Y){var Q=Y.isIntersecting;en({isVisible:Q,ratio:Y.intersectionRatio}),Q&&X&&(er.unobserve(G),er.disconnect())})},{threshold:Q||0});return er.observe(G),function(){er.unobserve(G),er.disconnect()}}},[]),Y},v=function(G){var X=G.children,Q=G.ignoreDirection,en=G.size,er=ea.useContext(eu).direction,eo=!(void 0!==Q&&Q)&&er===Y.TextDirection.RightToLeft,ei="".concat((void 0===en?24:en)||24,"px");return ea.createElement("svg",{"aria-hidden":"true",className:d({"rpv-core__icon":!0,"rpv-core__icon--rtl":eo}),focusable:"false",height:ei,viewBox:"0 0 24 24",width:ei},X)},h=function(){return ea.createElement(v,{size:16},ea.createElement("path",{d:"M23.5,0.499l-16.5,23l-6.5-6.5"}))},m=function(G){var X=G.children,Q=G.testId,en=G.onClick,er=ea.useContext(eu).direction===Y.TextDirection.RightToLeft,eo=Q?{"data-testid":Q}:{};return ea.createElement("button",l({className:d({"rpv-core__primary-button":!0,"rpv-core__primary-button--rtl":er}),type:"button",onClick:en},eo),X)},x=function(G){var Y=G.size,X=void 0===Y?"4rem":Y,Q=G.testId,en=ea.useState(!1),er=en[0],eo=en[1],ei=Q?{"data-testid":Q}:{},ec=g({onVisibilityChanged:function(G){eo(G.isVisible)}});return ea.createElement("div",l({},ei,{className:d({"rpv-core__spinner":!0,"rpv-core__spinner--animating":er}),ref:ec,style:{height:X,width:X}}
1))},w=function(G){var X=G.ariaLabel,Q=G.autoFocus,en=void 0!==Q&&Q,er=G.placeholder,eo=G.testId,ei=G.type,ec=G.value,el=G.onChange,ef=G.onKeyDown,ed=ea.useContext(eu).direction,ep=ea.useRef(),em={ref:ep,"data-testid":"","aria-label":void 0===X?"":X,className:d({"rpv-core__textbox":!0,"rpv-core__textbox--rtl":ed===Y.TextDirection.RightToLeft}),placeholder:void 0===er?"":er,value:void 0===ec?"":ec,onChange:function(G){return el(G.target.value)},onKeyDown:void 0===ef?function(){}:ef};return eo&&(em["data-testid"]=eo),es(function(){if(en){var G=ep.current;if(G){var Y=window.scrollX,X=window.scrollY;G.focus(),window.scrollTo(Y,X)}}},[]),"text"===(void 0===ei?"text":ei)?ea.createElement("input",l({type:"text"},em)):ea.createElement("input",l({type:"password"},em))};(ef=el||(el={}))[ef.ExitFullScreen=0]="ExitFullScreen",ef[ef.FullScreenChange=1]="FullScreenChange",ef[ef.FullScreenElement=2]="FullScreenElement",ef[ef.FullScreenEnabled=3]="FullScreenEnabled",ef[ef.RequestFullScreen=4]="RequestFullScreen";var ef,ed,ep={ExitFullScreen:"exitFullscreen",FullScreenChange:"fullscreenchange",FullScreenElement:"fullscreenElement",FullScreenEnabled:"fullscreenEnabled",RequestFullScreen:"requestFullscreen"},em={ExitFullScreen:"webkitExitFullscreen",FullScreenChange:"webkitfullscreenchange",FullScreenElement:"webkitFullscreenElement",FullScreenEnabled:"webkitFullscreenEnabled",RequestFullScreen:"webkitRequestFullscreen"},eh={ExitFullScreen:"msExitFullscreen",FullScreenChange:"msFullscreenChange",FullScreenElement:"msFullscreenElement",FullScreenEnabled:"msFullscreenEnabled",RequestFullScreen:"msRequestFullscreen"},eg="undefined"!=typeof window,ev=eg&&(el.FullScreenEnabled in document&&ep||em.FullScreenEnabled in document&&em||eh.FullScreenEnabled in document&&eh)||ep,R=function(){return eg&&ev.FullScreenEnabled in document&&!0===document[ev.FullScreenEnabled]},M=function(G){return eg?G[ev.ExitFullScreen]():Promise.resolve({})},k=function(){return eg?document[ev.FullScreenElement]:null},C=function(G,Y){var X=ea.useRef(),r=function(){X.current&&clearTimeout(X.current)};return ea.useEffect(function(){return function(){return r()}},[]),ea.useCallback(function(){for(var Q=[],en=0;en<arguments.length;en++)Q[en]=arguments[en];r(),X.current=setTimeout(function(){G.apply(void 0,Q)},Y)},[G,Y])},T=function(){var G=ea.useRef(!1);return ea.useEffect(function(){return G.current=!0,function(){G.current=!1}},[]),G},L=function(G){var Y=ea.useRef(G);return ea.useEffect(function(){Y.current=G},[G]),Y.current};(eb=ed||(ed={})).NotRenderedYet="NotRenderedYet",eb.Rendering="Rendering",eb.Rendered="Rendered";var eb,eE,D=function(G){var Y=G.doc,X=Y.numPages,Q=Y.loadingTask.docId,en=ea.useMemo(function(){return Array(X).fill(null).map(function(G,Y){return{pageIndex:Y,renderStatus:ed.NotRenderedYet,visibility:-9999}})},[Q]),er=ea.useRef({currentRenderingPage:-1,startRange:0,endRange:X-1,visibilities:en}),c=function(G,Y){er.current.visibilities[G].visibility=Y};return{getHighestPriorityPage:function(){var G=er.current.visibilities.slice(er.current.startRange,er.current.endRange+1).filter(function(G){return G.visibility>-9999});if(!G.length)return -1;for(var Y=G[0].pageIndex,Q=G[G.length-1].pageIndex,en=G.length,eo=0;eo<en;eo++){if(G[eo].renderStatus===ed.Rendering)return -1;if(G[eo].renderStatus===ed.NotRenderedYet)return G[eo].pageIndex}return Q+1<X&&er.current.visibilities[Q+1].renderStatus!==ed.Rendered?Q+1:Y-1>=0&&er.current.visibilities[Y-1].renderStatus!==ed.Rendered?Y-1:-1},isInRange:function(G){return G>=er.current.startRange&&G<=er.current.endRange},markNotRendered:function(){for(var G=0;G<X;G++)er.current.visibilities[G].renderStatus=ed.NotRenderedYet},markRendered:function(G){er.current.visibilities[G].renderStatus=ed.Rendered},markRendering:function(G){-1!==er.current.currentRenderingPage&&er.current.currentRenderingPage!==G&&er.current.visibilities[er.current.currentRenderingPage].renderStatus===ed.Rendering&&(er.current.visibilities[er.current.currentRenderingPage].renderStatus=ed.NotRenderedYet),er.current.visibilities[G].renderStatus=ed.Rendering,er.current.currentRenderingPage=G},setOutOfRange:function(G){c(G,-9999)},setRange:function(G,Y){er.current.startRange=G,er.current.endRange=Y;for(var Q=0;Q<X;Q++)(Q<G||Q>Y)&&(er.current.visibilities[Q].visibility=-9999,er.current.visibilities[Q].renderStatus=ed.NotRenderedYet)},setVisibility:c}
1},ey={core:{askingPassword:{requirePasswordToOpen:"This document requires a password to open",submit:"Submit"},wrongPassword:{tryAgain:"The password is wrong. Please try again"},pageLabel:"Page {{pageIndex}}"}},ew=ea.createContext({l10n:ey,setL10n:function(){}}),e_=0,N=function(){return e_++},V=function(G,Y,X){var r=function(G){var Q=Y.current;if(Q){var en=G.target;if(en instanceof Element&&en.shadowRoot){var er=G.composedPath();er.length>0&&!Q.contains(er[0])&&X()}else Q.contains(en)||X()}};ea.useEffect(function(){if(G){var Y={capture:!0};return document.addEventListener("click",r,Y),function(){document.removeEventListener("click",r,Y)}}},[])},z=function(G){var t=function(Y){"Escape"===Y.key&&G()};ea.useEffect(function(){return document.addEventListener("keyup",t),function(){document.removeEventListener("keyup",t)}},[])},B=function(G){var X=G.ariaControlsSuffix,Q=G.children,en=G.closeOnClickOutside,er=G.closeOnEscape,eo=G.onToggle,ei=ea.useRef(),ec=ea.useContext(eu).direction===Y.TextDirection.RightToLeft;return ea.useEffect(function(){var G=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=G}},[]),z(function(){ei.current&&er&&eo()}),V(en,ei,eo),es(function(){var G=ei.current;if(G){var Y=.75*document.body.clientHeight;G.getBoundingClientRect().height>=Y&&(G.style.overflow="auto",G.style.maxHeight="".concat(Y,"px"))}},[]),ea.createElement("div",{"aria-modal":"true",className:d({"rpv-core__modal-body":!0,"rpv-core__modal-body--rtl":ec}),id:"rpv-core__modal-body-".concat(X),ref:ei,role:"dialog",tabIndex:-1},Q)},W=function(G){var Y=G.children;return ea.createElement("div",{className:"rpv-core__modal-overlay"},Y)};Y.ToggleStatus=void 0,(eE=Y.ToggleStatus||(Y.ToggleStatus={})).Close="Close",eE.Open="Open",eE.Toggle="Toggle";var ek,q=function(G){var X=ea.useState(G),Q=X[0],en=X[1];return{opened:Q,toggle:function(G){switch(G){case Y.ToggleStatus.Close:en(!1);break;case Y.ToggleStatus.Open:en(!0);break;case Y.ToggleStatus.Toggle:default:en(function(G){return!G})}}}},U=function(G){var Y=G.content,X=G.isOpened,Q=G.target,en=q(void 0!==X&&X),er=en.opened,eo=en.toggle;return ea.createElement(ea.Fragment,null,Q&&Q(eo,er),er&&Y(eo))};Y.Position=void 0,(ek=Y.Position||(Y.Position={})).TopLeft="TOP_LEFT",ek.TopCenter="TOP_CENTER",ek.TopRight="TOP_RIGHT",ek.RightTop="RIGHT_TOP",ek.RightCenter="RIGHT_CENTER",ek.RightBottom="RIGHT_BOTTOM",ek.BottomLeft="BOTTOM_LEFT",ek.BottomCenter="BOTTOM_CENTER",ek.BottomRight="BOTTOM_RIGHT",ek.LeftTop="LEFT_TOP",ek.LeftCenter="LEFT_CENTER",ek.LeftBottom="LEFT_BOTTOM";var eS,eC,eP,eM,ex,eI,eR,eL,ee=function(G,X,Q,en,er){es(function(){var eo=X.current,ea=G.current,ei=Q.current;if(ea&&eo&&ei){var ec=ei.getBoundingClientRect(),el=function(G,X,Q,en){var er=X.getBoundingClientRect(),eo=G.getBoundingClientRect(),ea=eo.height,ei=eo.width,ec=0,el=0;switch(Q){case Y.Position.TopLeft:ec=er.top-ea,el=er.left;break;case Y.Position.TopCenter:ec=er.top-ea,el=er.left+er.width/2-ei/2;break;case Y.Position.TopRight:ec=er.top-ea,el=er.left+er.width-ei;break;case Y.Position.RightTop:ec=er.top,el=er.left+er.width;break;case Y.Position.RightCenter:ec=er.top+er.height/2-ea/2,el=er.left+er.width;break;case Y.Position.RightBottom:ec=er.top+er.height-ea,el=er.left+er.width;break;case Y.Position.BottomLeft:ec=er.top+er.height,el=er.left;break;case Y.Position.BottomCenter:ec=er.top+er.height,el=er.left+er.width/2-ei/2;break;case Y.Position.BottomRight:ec=er.top+er.height,el=er.left+er.width-ei;break;case Y.Position.LeftTop:ec=er.top,el=er.left-ei;break;case Y.Position.LeftCenter:ec=er.top+er.height/2-ea/2,el=er.left-ei;break;case Y.Position.LeftBottom:ec=er.top+er.height-ea,el=er.left-ei}return{left:el+(en.left||0),top:ec+(en.top||0)}}(ea,eo,en,er),eu=el.top,es=el.left;ea.style.top="".concat(eu-ec.top,"px"),ea.style.left="".concat(es-ec.left,"px")}},[])},te=function(G){var X,Q=G.customClassName,en=G.position;return ea.createElement("div",{className:d(((X={"rpv-core__arrow":!0,"rpv-core__arrow--tl":en===Y.Position.TopLeft,"rpv-core__arrow--tc":en===Y.Position.TopCenter,"rpv-core__arrow--tr":en===Y.Position.TopRight,"rpv-core__arrow--rt":en===Y.Position.RightTop,"rpv-core__arrow--rc":en===Y.Position.RightCenter,"rpv-core__arrow--rb":en===Y.Position.RightBottom,"rpv-core__arrow--bl":en===Y.Position.BottomLeft,"rpv-core__arrow--bc":en===Y.Position.BottomCenter,"rpv-core__arrow--br":en===Y.Position.BottomRight,"rpv-core__arrow--lt":en===Y.Position.LeftTop,"rpv-core__arrow--lc":en===Y.Position.LeftCenter,"rpv-core__arrow--lb":en===Y.Position.LeftBottom})["".concat(Q)]=""!==Q,X))})}
1,ne=function(G){var X=G.ariaControlsSuffix,Q=G.children,en=G.closeOnClickOutside,er=G.offset,eo=G.position,ei=G.targetRef,ec=G.onClose,el=ea.useRef(),ef=ea.useRef(),ed=ea.useRef(),ep=ea.useContext(eu).direction===Y.TextDirection.RightToLeft;V(en,el,ec),ee(el,ei,ed,eo,er),es(function(){var G=ef.current;if(G){var Y=.75*document.body.clientHeight;G.getBoundingClientRect().height>=Y&&(G.style.overflow="auto",G.style.maxHeight="".concat(Y,"px"))}},[]);var em="rpv-core__popover-body-inner-".concat(X);return ea.createElement(ea.Fragment,null,ea.createElement("div",{ref:ed,style:{left:0,position:"absolute",top:0}}),ea.createElement("div",{"aria-describedby":em,className:d({"rpv-core__popover-body":!0,"rpv-core__popover-body--rtl":ep}),id:"rpv-core__popover-body-".concat(X),ref:el,role:"dialog",tabIndex:-1},ea.createElement(te,{customClassName:"rpv-core__popover-body-arrow",position:eo}),ea.createElement("div",{id:em,ref:ef},Q)))},re=function(G){var Y=G.closeOnEscape,X=G.onClose,Q=ea.useRef();return z(function(){Q.current&&Y&&X()}),ea.createElement("div",{className:"rpv-core__popover-overlay",ref:Q})},oe=function(G){var X=G.ariaControlsSuffix,Q=G.children,en=G.contentRef,er=G.offset,eo=G.position,ei=G.targetRef,ec=ea.useRef(),el=ea.useContext(eu).direction===Y.TextDirection.RightToLeft;return ee(en,ei,ec,eo,er),ea.createElement(ea.Fragment,null,ea.createElement("div",{ref:ec,style:{left:0,position:"absolute",top:0}}),ea.createElement("div",{className:d({"rpv-core__tooltip-body":!0,"rpv-core__tooltip-body--rtl":el}),id:"rpv-core__tooltip-body-".concat(X),ref:en,role:"tooltip"},ea.createElement(te,{customClassName:"rpv-core__tooltip-body-arrow",position:eo}),ea.createElement("div",{className:"rpv-core__tooltip-body-content"},Q)))};Y.FullScreenMode=void 0,(eS=Y.FullScreenMode||(Y.FullScreenMode={})).Normal="Normal",eS.Entering="Entering",eS.Entered="Entered",eS.EnteredCompletely="EnteredCompletely",eS.Exitting="Exitting",eS.Exited="Exited",Y.LayerRenderStatus=void 0,(eC=Y.LayerRenderStatus||(Y.LayerRenderStatus={}))[eC.PreRender=0]="PreRender",eC[eC.DidRender=1]="DidRender",Y.PageMode=void 0,(eP=Y.PageMode||(Y.PageMode={})).Attachments="UseAttachments",eP.Bookmarks="UseOutlines",eP.ContentGroup="UseOC",eP.Default="UserNone",eP.FullScreen="FullScreen",eP.Thumbnails="UseThumbs",Y.PasswordStatus=void 0,(eM=Y.PasswordStatus||(Y.PasswordStatus={})).RequiredPassword="RequiredPassword",eM.WrongPassword="WrongPassword",Y.RotateDirection=void 0,(ex=Y.RotateDirection||(Y.RotateDirection={})).Backward="Backward",ex.Forward="Forward",Y.ScrollMode=void 0,(eI=Y.ScrollMode||(Y.ScrollMode={})).Page="Page",eI.Horizontal="Horizontal",eI.Vertical="Vertical",eI.Wrapped="Wrapped",Y.SpecialZoomLevel=void 0,(eR=Y.SpecialZoomLevel||(Y.SpecialZoomLevel={})).ActualSize="ActualSize",eR.PageFit="PageFit",eR.PageWidth="PageWidth",Y.ViewMode=void 0,(eL=Y.ViewMode||(Y.ViewMode={})).DualPage="DualPage",eL.DualPageWithCover="DualPageWithCover",eL.SinglePage="SinglePage";var eT,ie=function(G,Y){return G.reduce(function(G,X,Q){return Q%Y?G[G.length-1].push(X):G.push([X]),G},[])},ce=function(G,X){switch(X[1].name){case"XYZ":return{bottomOffset:function(G,Y){return null===X[3]?Y:X[3]},leftOffset:function(G,Y){return null===X[2]?0:X[2]},pageIndex:G,scaleTo:X[4]};case"Fit":case"FitB":return{bottomOffset:0,leftOffset:0,pageIndex:G,scaleTo:Y.SpecialZoomLevel.PageFit};case"FitH":case"FitBH":return{bottomOffset:X[2],leftOffset:0,pageIndex:G,scaleTo:Y.SpecialZoomLevel.PageWidth};default:return{bottomOffset:0,leftOffset:0,pageIndex:G,scaleTo:1}}},eB=new Map,eO=new Map,ue=function(G,Y){return"".concat(G.loadingTask.docId,"___").concat(Y.num,"R").concat(0===Y.gen?"":Y.gen)},pe=function(G,Y,X){eB.set(ue(G,Y),X)},de=function(G,Y){if(!G)return Promise.reject("The document is not loaded yet");var X="".concat(G.loadingTask.docId,"___").concat(Y),Q=eO.get(X);return Q?Promise.resolve(Q):new Promise(function(Q,en){G.getPage(Y+1).then(function(en){eO.set(X,en),en.ref&&pe(G,en.ref,Y),Q(en)})})},fe=function(G,Y){return new Promise(function(X){new Promise(function(X){"string"==typeof Y?G.getDestination(Y).then(function(G){X(G)}):X(Y)}).then(function(Q){if("object"==typeof Q[0]&&null!==Q[0]){var en,er=Q[0],eo=(en=ue(G,er),eB.has(en)?eB.get(en):null);null===eo?G.getPageIndex(er).then(function(Q){pe(G,er,Q),fe(G,Y).then(function(G){return X(G)})}):X(ce(eo,Q))}else X(ce(Q[0],Q))})})};(eD=eT||(eT={}))[eD.Solid=1]="Solid",eD[eD.Dashed=2]="Dashed",eD[eD.Beveled=3]="Beveled",eD[eD.Inset=4]="Inset",eD[eD.Underline=5]="Underline";var eD,eN,eF=RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"),he=function(G,Y,X,Q){var en=parseInt(G,10);return en>=Y&&en<=X?en:Q},me=function(G){return G.contentsObj?G.contentsObj.str:G.contents||""},xe=function(G){return G.titleObj?G.titleObj.str:G.title||""},we=function(G){var X=G.annotation,Q=ea.useContext(eu).direction,en=xe(X),er=me(X),eo=Q===Y.TextDirection.RightToLeft,ei=ea.useRef(),ec="";if(X.modificationDate){var el=function(G){var Y=eF.exec(G);if(!Y)return null;var X=parseInt(Y[1],10),Q=he(Y[2],1,12,1)-1,en=he(Y[3],1,31,1),er=he(Y[4],0,23,0),eo=he(Y[5],0,59,0),ea=he(Y[6],0,59,0),ei=Y[7]||"Z",ec=he(Y[8],0,23,0),el=he(Y[9],0,59,0);switch(ei){case"-":er+=ec,eo+=el;break;case"+":er-=ec,eo-=el}return new Date(Date.UTC(X,Q,en,er,eo,ea))}(X.modificationDate);ec=el?"".concat(el.toLocaleDateString(),", ").concat(el.toLocaleTimeString()):""}return ea.useLayoutEffect(function(){if(ei.current){var G=document.querySelector('[data-annotation-id="'.concat(X.id,'"]'));if(G)return G.style.zIndex+=1,function(){G.style.zIndex="".concat(parseInt(G.style.zIndex,10)-1)}}},[]),ea.createElement("div",{ref:ei,className:d({"rpv-core__annotation-popup-wrapper":!0,"rpv-core__annotation-popup-wrapper--rtl":eo}
1),style:{top:X.annotationType===Y.AnnotationType.Popup?"":"100%"}},en&&ea.createElement(ea.Fragment,null,ea.createElement("div",{className:d({"rpv-core__annotation-popup-title":!0,"rpv-core__annotation-popup-title--ltr":!eo,"rpv-core__annotation-popup-title--rtl":eo})},en),ea.createElement("div",{className:"rpv-core__annotation-popup-date"},ec)),er&&ea.createElement("div",{className:"rpv-core__annotation-popup-content"},er.split("\n").map(function(G,Y){return ea.createElement(ea.Fragment,{key:Y},G,ea.createElement("br",null))})))};(ez=eN||(eN={})).Click="Click",ez.Hover="Hover";var ez,eA,be=function(G){var X,Q,en,er,eo,ei,ec,el=G.annotation,eu=G.children,es=G.ignoreBorder,ef=G.hasPopup,ed=G.isRenderable,ep=G.page,em=G.viewport,eh=el.rect,eg=(Q=(X=q(!1)).opened,en=X.toggle,eo=(er=ea.useState(eN.Hover))[0],ei=er[1],{opened:Q,closeOnHover:function(){eo===eN.Hover&&en(Y.ToggleStatus.Close)},openOnHover:function(){eo===eN.Hover&&en(Y.ToggleStatus.Open)},toggleOnClick:function(){switch(eo){case eN.Click:Q&&ei(eN.Hover),en(Y.ToggleStatus.Toggle);break;case eN.Hover:ei(eN.Click),en(Y.ToggleStatus.Open)}}}),ev=eg.closeOnHover,eb=eg.opened,eE=eg.openOnHover,ey=eg.toggleOnClick,ew=[Math.min((ec=[eh[0],ep.view[3]+ep.view[1]-eh[1],eh[2],ep.view[3]+ep.view[1]-eh[3]])[0],ec[2]),Math.min(ec[1],ec[3]),Math.max(ec[0],ec[2]),Math.max(ec[1],ec[3])],e_=eh[2]-eh[0],ek=eh[3]-eh[1],eS={borderColor:"",borderRadius:"",borderStyle:"",borderWidth:""};if(!es&&el.borderStyle.width>0){switch(el.borderStyle.style){case eT.Dashed:eS.borderStyle="dashed";break;case eT.Solid:eS.borderStyle="solid";break;case eT.Underline:eS=Object.assign({borderBottomStyle:"solid"},eS);case eT.Beveled:case eT.Inset:}var eC=el.borderStyle.width;eS.borderWidth="".concat(eC,"px"),el.borderStyle.style!==eT.Underline&&(e_-=2*eC,ek-=2*eC);var eP=el.borderStyle,eM=eP.horizontalCornerRadius,ex=eP.verticalCornerRadius;(eM>0||ex>0)&&(eS.borderRadius="".concat(eM,"px / ").concat(ex,"px")),el.color?eS.borderColor="rgb(".concat(0|el.color[0],", ").concat(0|el.color[1],", ").concat(0|el.color[2],")"):eS.borderWidth="0"}return ea.createElement(ea.Fragment,null,ed&&eu({popup:{opened:eb,closeOnHover:ev,openOnHover:eE,toggleOnClick:ey}
1,slot:{attrs:{style:Object.assign({height:"".concat(ek,"px"),left:"".concat(ew[0],"px"),top:"".concat(ew[1],"px"),transform:"matrix(".concat(em.transform.join(","),")"),transformOrigin:"-".concat(ew[0],"px -").concat(ew[1],"px"),width:"".concat(e_,"px")},eS)},children:ea.createElement(ea.Fragment,null,ef&&eb&&ea.createElement(we,{annotation:el}))}}))},ye=function(G){var Y=G.annotation,X=G.page,Q=G.viewport,en=!1===Y.hasPopup,er=xe(Y),eo=me(Y),ei=!!(Y.hasPopup||er||eo);return ea.createElement(be,{annotation:Y,hasPopup:en,ignoreBorder:!0,isRenderable:ei,page:X,viewport:Q},function(G){return ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--caret","data-annotation-id":Y.id,onClick:G.popup.toggleOnClick,onMouseEnter:G.popup.openOnHover,onMouseLeave:G.popup.closeOnHover}),G.slot.children)})},Se=function(G){var Y=G.annotation,X=G.page,Q=G.viewport,en=!1===Y.hasPopup,er=xe(Y),eo=me(Y),ei=!!(Y.hasPopup||er||eo),ec=Y.rect,el=ec[2]-ec[0],eu=ec[3]-ec[1],es=Y.borderStyle.width;return ea.createElement(be,{annotation:Y,hasPopup:en,ignoreBorder:!0,isRenderable:ei,page:X,viewport:Q},function(G){return ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--circle","data-annotation-id":Y.id,onClick:G.popup.toggleOnClick,onMouseEnter:G.popup.openOnHover,onMouseLeave:G.popup.closeOnHover}),ea.createElement("svg",{height:"".concat(eu,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(el," ").concat(eu),width:"".concat(el,"px")},ea.createElement("circle",{cy:eu/2,fill:"none",rx:el/2-es/2,ry:eu/2-es/2,stroke:"transparent",strokeWidth:es||1})),G.slot.children)})},_e=function(G){var Y=G.annotation,X=G.page,Q=G.viewport,en=xe(Y),er=me(Y),eo=!(!1!==Y.hasPopup||!en&&!er),s=function(){var G,X,Q,en,er,eo=Y.file;eo&&(X=eo.filename,en="string"==typeof(Q=eo.content)?"":URL.createObjectURL(new Blob([Q],{type:""})),(er=document.createElement("a")).style.display="none",er.href=en||X,er.setAttribute("download",(G=X.split("/").pop())?G.split("#")[0].split("?")[0]:X),document.body.appendChild(er),er.click(),document.body.removeChild(er),en&&URL.revokeObjectURL(en))};return ea.createElement(be,{annotation:Y,hasPopup:eo,ignoreBorder:!0,isRenderable:!0,page:X,viewport:Q},function(G){return ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--file-attachment","data-annotation-id":Y.id,onClick:G.popup.toggleOnClick,onDoubleClick:s,onMouseEnter:G.popup.openOnHover,onMouseLeave:G.popup.closeOnHover}),G.slot.children)})},Pe=function(G){var Y=G.annotation,X=G.page,Q=G.viewport,en=!1===Y.hasPopup,er=xe(Y),eo=me(Y),ei=!!(Y.hasPopup||er||eo);return ea.createElement(be,{annotation:Y,hasPopup:en,ignoreBorder:!0,isRenderable:ei,page:X,viewport:Q},function(G){return ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--free-text","data-annotation-id":Y.id,onClick:G.popup.toggleOnClick,onMouseEnter:G.popup.openOnHover,onMouseLeave:G.popup.closeOnHover}),G.slot.children)})},Re=function(G){var Y=G.annotation,X=G.page,Q=G.viewport,en=xe(Y),er=me(Y),eo=!Y.parentType||-1!==["Circle","Ink","Line","Polygon","PolyLine","Square"].indexOf(Y.parentType);return es(function(){if(Y.parentId){var G=document.querySelector('[data-annotation-id="'.concat(Y.parentId,'"]')),X=document.querySelector('[data-annotation-id="'.concat(Y.id,'"]'));if(G&&X){var Q=parseFloat(G.style.left),en=parseFloat(G.style.top)+parseFloat(G.style.height);X.style.left="".concat(Q,"px"),X.style.top="".concat(en,"px"),X.style.transformOrigin="-".concat(Q,"px -").concat(en,"px")}}},[]),ea.createElement(be,{annotation:Y,hasPopup:eo,ignoreBorder:!1,isRenderable:!(!en&&!er),page:X,viewport:Q},function(G){return ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--popup","data-annotation-id":Y.id}),ea.createElement(we,{annotation:Y}))})},Me=function(G){var X=G.annotation,Q=G.childAnnotation,en=G.page,er=G.viewport,eo=!1===X.hasPopup,ei=xe(X),ec=me(X),el=!!(X.hasPopup||ei||ec);if(X.quadPoints&&X.quadPoints.length>0){var eu=X.quadPoints.map(function(G){return Object.assign({}
1,X,{rect:[G[2].x,G[2].y,G[1].x,G[1].y],quadPoints:[]})});return ea.createElement(ea.Fragment,null,eu.map(function(G,Y){return ea.createElement(Me,{key:Y,annotation:G,childAnnotation:Q,page:en,viewport:er})}))}return ea.createElement(be,{annotation:X,hasPopup:eo,ignoreBorder:!0,isRenderable:el,page:en,viewport:er},function(G){return ea.createElement(ea.Fragment,null,ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--highlight","data-annotation-id":X.id,onClick:G.popup.toggleOnClick,onMouseEnter:G.popup.openOnHover,onMouseLeave:G.popup.closeOnHover}),G.slot.children),Q&&Q.annotationType===Y.AnnotationType.Popup&&G.popup.opened&&ea.createElement(Re,{annotation:Q,page:en,viewport:er}))})},ke=function(G){var Y=G.annotation,X=G.page,Q=G.viewport,en=!1===Y.hasPopup,er=xe(Y),eo=me(Y),ei=!!(Y.hasPopup||er||eo),ec=Y.rect,el=ec[2]-ec[0],eu=ec[3]-ec[1],es=Y.borderStyle.width;return ea.createElement(be,{annotation:Y,hasPopup:en,ignoreBorder:!0,isRenderable:ei,page:X,viewport:Q},function(G){return ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--ink","data-annotation-id":Y.id,onClick:G.popup.toggleOnClick,onMouseEnter:G.popup.openOnHover,onMouseLeave:G.popup.closeOnHover}),Y.inkLists&&Y.inkLists.length&&ea.createElement("svg",{height:"".concat(eu,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(el," ").concat(eu),width:"".concat(el,"px")},Y.inkLists.map(function(G,Y){return ea.createElement("polyline",{key:Y,fill:"none",stroke:"transparent",strokeWidth:es||1,points:G.map(function(G){return"".concat(G.x-ec[0],",").concat(ec[3]-G.y)}).join(" ")})})),G.slot.children)})},Ce=function(G){var Y=G.annotation,X=G.page,Q=G.viewport,en=!1===Y.hasPopup,er=xe(Y),eo=me(Y),ei=!!(Y.hasPopup||er||eo),ec=Y.rect,el=ec[2]-ec[0],eu=ec[3]-ec[1],es=Y.borderStyle.width;return ea.createElement(be,{annotation:Y,hasPopup:en,ignoreBorder:!0,isRenderable:ei,page:X,viewport:Q},function(G){return ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--line","data-annotation-id":Y.id,onClick:G.popup.toggleOnClick,onMouseEnter:G.popup.openOnHover,onMouseLeave:G.popup.closeOnHover}),ea.createElement("svg",{height:"".concat(eu,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(el," ").concat(eu),width:"".concat(el,"px")},ea.createElement("line",{stroke:"transparent",strokeWidth:es||1,x1:ec[2]-Y.lineCoordinates[0],x2:ec[2]-Y.lineCoordinates[2],y1:ec[3]-Y.lineCoordinates[1],y2:ec[3]-Y.lineCoordinates[3]})),G.slot.children)})},ej=/^([^\w]*)(javascript|data|vbscript)/im,eV=/&#(\w+)(^\w|;)?/g,eH=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,eU=/^([^:]+):/gm,De=function(G,Y){void 0===Y&&(Y="about:blank");var X=(G||"").replace(eV,function(G,Y){return String.fromCharCode(Y)}).replace(eH,"").trim();if(!X)return Y;var Q=X[0];if("."===Q||"/"===Q)return X;var en=X.match(eU);if(!en)return X;var er=en[0];return ej.test(er)?Y:X},Ie=function(G){var Y,X=G.annotation,Q=G.annotationContainerRef,en=G.doc,er=G.outlines,eo=G.page,ei=G.pageIndex,ec=G.scale,el=G.viewport,eu=G.onExecuteNamedAction,es=G.onJumpFromLinkAnnotation,ef=G.onJumpToDest,ed=ea.useRef(),ep=er&&er.length&&X.dest&&"string"==typeof X.dest?null===(Y=er.find(function(G){return G.dest===X.dest}))||void 0===Y?void 0:Y.title:"",em=!!(X.url||X.dest||X.action||X.unsafeUrl),eh={};if(X.url||X.unsafeUrl){var eg=De(X.url||X.unsafeUrl,"");eg?eh={"data-target":"external",href:eg,rel:"noopener noreferrer nofollow",target:X.newWindow?"_blank":"",title:eg}:em=!1}else eh={href:"","data-annotation-link":X.id,onClick:function(G){G.preventDefault(),X.action?eu(X.action):fe(en,X.dest).then(function(G){var Y=ed.current,X=Q.current;if(Y&&X){var en=Y.getBoundingClientRect();X.style.setProperty("height","100%"),X.style.setProperty("width","100%");var er=X.getBoundingClientRect();X.style.removeProperty("height"),X.style.removeProperty("width");var eo=(en.left-er.left)/ec;es({bottomOffset:(er.bottom-en.bottom+en.height)/ec,label:ep,leftOffset:eo,pageIndex:ei})}ef(G)})}};return ep&&(eh=Object.assign({},eh,{title:ep,"aria-label":ep})),ea.createElement(be,{annotation:X,hasPopup:!1,ignoreBorder:!1,isRenderable:em,page:eo,viewport:el},function(G){return ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--link","data-annotation-id":X.id,"data-testid":"core__annotation--link-".concat(X.id)}),ea.createElement("a",l({ref:ed},eh)))})},Ae=function(G){var Y=G.annotation,X=G.page,Q=G.viewport,en=!1===Y.hasPopup,er=xe(Y),eo=me(Y),ei=!!(Y.hasPopup||er||eo),ec=Y.rect,el=ec[2]-ec[0],eu=ec[3]-ec[1],es=Y.borderStyle.width;return ea.createElement(be,{annotation:Y,hasPopup:en,ignoreBorder:!0,isRenderable:ei,page:X,viewport:Q},function(G){return ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--polygon","data-annotation-id":Y.id,onClick:G.popup.toggleOnClick,onMouseEnter:G.popup.openOnHover,onMouseLeave:G.popup.closeOnHover}),Y.vertices&&Y.vertices.length&&ea.createElement("svg",{height:"".concat(eu,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(el," ").concat(eu),width:"".concat(el,"px")},ea.createElement("polygon",{fill:"none",stroke:"transparent",strokeWidth:es||1,points:Y.vertices.map(function(G){return"".concat(G.x-ec[0],",").concat(ec[3]-G.y)}).join(" ")})),G.slot.children)})},He=function(G){var Y=G.annotation,X=G.page,Q=G.viewport,en=!1===Y.hasPopup,er=xe(Y),eo=me(Y),ei=!!(Y.hasPopup||er||eo),ec=Y.rect,el=ec[2]-ec[0],eu=ec[3]-ec[1],es=Y.borderStyle.width;return ea.createElement(be,{annotation:Y,hasPopup:en,ignoreBorder:!0,isRenderable:ei,page:X,viewport:Q},function(G){return ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--polyline","data-annotation-id":Y.id,onClick:G.popup.toggleOnClick,onMouseEnter:G.popup.openOnHover,onMouseLeave:G.popup.closeOnHover}),Y.vertices&&Y.vertices.length&&ea.createElement("svg",{height:"".concat(eu,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(el," ").concat(eu),width:"".concat(el,"px")},ea.createElement("polyline",{fill:"none",stroke:"transparent",strokeWidth:es||1,points:Y.vertices.map(function(G){return"".concat(G.x-ec[0],",").concat(ec[3]-G.y)}).join(" ")})),G.slot.children)})},Ne=function(G){var Y=G.annotation,X=G.page,Q=G.viewport,en=!1===Y.hasPopup,er=xe(Y),eo=me(Y),ei=!!(Y.hasPopup||er||eo),ec=Y.rect,el=ec[2]-ec[0],eu=ec[3]-ec[1],es=Y.borderStyle.width;return ea.createElement(be,{annotation:Y,hasPopup:en,ignoreBorder:!0,isRenderable:ei,page:X,viewport:Q},function(G){return ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--square","data-annotation-id":Y.id,onClick:G.popup.toggleOnClick,onMouseEnter:G.popup.openOnHover,onMouseLeave:G.popup.closeOnHover}),ea.createElement("svg",{height:"".concat(eu,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(el," ").concat(eu),width:"".concat(el,"px")},ea.createElement("rect",{height:eu-es,fill:"none",stroke:"transparent",strokeWidth:es||1,x:es/2,y:es/2,width:el-es})),G.slot.children)})},Ve=function(G){var Y=G.annotation,X=G.page,Q=G.viewport,en=!1===Y.hasPopup,er=xe(Y),eo=me(Y),ei=!!(Y.hasPopup||er||eo);return ea.createElement(be,{annotation:Y,hasPopup:en,ignoreBorder:!0,isRenderable:ei,page:X,viewport:Q},function(G){return ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--squiggly","data-annotation-id":Y.id,onClick:G.popup.toggleOnClick,onMouseEnter:G.popup.openOnHover,onMouseLeave:G.popup.closeOnHover}),G.slot.children)})},ze=function(G){var Y=G.annotation,X=G.page,Q=G.viewport,en=!1===Y.hasPopup,er=xe(Y),eo=me(Y),ei=!!(Y.hasPopup||er||eo);return ea.createElement(be,{annotation:Y,hasPopup:en,ignoreBorder:!0,isRenderable:ei,page:X,viewport:Q},function(G){return ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--stamp","data-annotation-id":Y.id,onClick:G.popup.toggleOnClick,onMouseEnter:G.popup.openOnHover,onMouseLeave:G.popup.closeOnHover}),G.slot.children)})},Be=function(G){var Y=G.annotation,X=G.page,Q=G.viewport,en=!1===Y.hasPopup,er=xe(Y),eo=me(Y),ei=!!(Y.hasPopup||er||eo);return ea.createElement(be,{annotation:Y,hasPopup:en,ignoreBorder:!0,isRenderable:ei,page:X,viewport:Q},function(G){return ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--strike-out","data-annotation-id":Y.id,onClick:G.popup.toggleOnClick,onMouseEnter:G.popup.openOnHover,onMouseLeave:G.popup.closeOnHover}),G.slot.children)})},We=function(){return ea.createElement(v,{size:16},ea.createElement("path",{d:"M.5,16.5a1,1,0,0,0,1,1h2v4l4-4h15a1,1,0,0,0,1-1V3.5a1,1,0,0,0-1-1H1.5a1,1,0,0,0-1,1Z"}),ea.createElement("path",{d:"M7.25,9.75A.25.25,0,1,1,7,10a.25.25,0,0,1,.25-.25"}),ea.createElement("path",{d:"M12,9.75a.25.25,0,1,1-.25.25A.25.25,0,0,1,12,9.75"}),ea.createElement("path",{d:"M16.75,9.75a.25.25,0,1,1-.25.25.25.25,0,0,1,.25-.25"}))},je=function(){return ea.createElement(v,{size:16},ea.createElement("path",{d:"M0.500 12.001 A11.500 11.500 0 1 0 23.500 12.001 A11.500 11.500 0 1 0 0.500 12.001 Z"}),ea.createElement("path",{d:"M6.000 12.001 A6.000 6.000 0 1 0 18.000 12.001 A6.000 6.000 0 1 0 6.000 12.001 Z"}),ea.createElement("path",{d:"M21.423 5.406L17.415 9.414"}),ea.createElement("path",{d:"M14.587 6.585L18.607 2.565"}),ea.createElement("path",{d:"M5.405 21.424L9.413 17.416"}),ea.createElement("path",{d:"M6.585 14.588L2.577 18.596"}),ea.createElement("path",{d:"M18.602 21.419L14.595 17.412"}),ea.createElement("path",{d:"M17.419 14.58L21.428 18.589"}),ea.createElement("path",{d:"M2.582 5.399L6.588 9.406"}),ea.createElement("path",{d:"M9.421 6.581L5.412 2.572"}))},qe=function(){return ea.createElement(v,{size:16},ea.createElement("path",{d:"M4.000 18.500 A1.500 1.500 0 1 0 7.000 18.500 A1.500 1.500 0 1 0 4.000 18.500 Z"}),ea.createElement("path",{d:"M20.5.5l-9.782,9.783a7,7,0,1,0,3,3L17,10h1.5V8.5L19,8h1.5V6.5L21,6h1.5V4.5l1-1V.5Z"}))},Ue=function(){return ea.createElement(v,{size:16},ea.createElement("path",{d:"M2.000 2.500 L22.000 2.500 L22.000 23.500 L2.000 23.500 Z"}),ea.createElement("path",{d:"M6 4.5L6 0.5"}),ea.createElement("path",{d:"M18 4.5L18 0.5"}),ea.createElement("path",{d:"M10 4.5L10 0.5"}),ea.createElement("path",{d:"M14 4.5L14 0.5"}))},Ze=function(){return ea.createElement(v,{size:16},ea.createElement("path",{d:"M17.5 0.498L17.5 23.498"}),ea.createElement("path",{d:"M10.5 0.498L10.5 23.498"}),ea.createElement("path",{d:"M23.5.5H6.5a6,6,0,0,0,0,12h4"}))},Je=function(){return ea.createElement(v,{size:16},ea.createElement("path",{d:"M2.5 22.995L12 6.005 21.5 22.995 2.5 22.995z"}))},Ge=function(G){var X=G.annotation,Q=G.childAnnotation,en=G.page,er=G.viewport,eo=!1===X.hasPopup,ei=xe(X),ec=me(X),el=!!(X.hasPopup||ei||ec),eu=X.name?X.name.toLowerCase():"";return ea.createElement(be,{annotation:X,hasPopup:eo,ignoreBorder:!1,isRenderable:el,page:en,viewport:er},function(G){return ea.createElement(ea.Fragment,null,ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--text","data-annotation-id":X.id,onClick:G.popup.toggleOnClick,onMouseEnter:G.popup.openOnHover,onMouseLeave:G.popup.closeOnHover}),eu&&ea.createElement("div",{className:"rpv-core__annotation-text-icon"},"check"===eu&&ea.createElement(h,null),"comment"===eu&&ea.createElement(We,null),"help"===eu&&ea.createElement(je,null),"insert"===eu&&ea.createElement(Je,null),"key"===eu&&ea.createElement(qe,null),"note"===eu&&ea.createElement(Ue,null),("newparagraph"===eu||"paragraph"===eu)&&ea.createElement(Ze,null)),G.slot.children),Q&&Q.annotationType===Y.AnnotationType.Popup&&G.popup.opened&&ea.createElement(Re,{annotation:Q,page:en,viewport:er}))})},Ye=function(G){var Y=G.annotation,X=G.page,Q=G.viewport,en=!1===Y.hasPopup,er=xe(Y),eo=me(Y),ei=!!(Y.hasPopup||er||eo);return ea.createElement(be,{annotation:Y,hasPopup:en,ignoreBorder:!0,isRenderable:ei,page:X,viewport:Q},function(G){return ea.createElement("div",l({},G.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--underline","data-annotation-id":Y.id,onClick:G.popup.toggleOnClick,onMouseEnter:G.popup.openOnHover,onMouseLeave:G.popup.closeOnHover}),G.slot.children)})},Ke=function(G){var X=G.annotations,Q=G.doc,en=G.outlines,er=G.page,eo=G.pageIndex,ei=G.plugins,ec=G.rotation,el=G.scale,eu=G.onExecuteNamedAction,ef=G.onJumpFromLinkAnnotation,ed=G.onJumpToDest,ep=ea.useRef(),em=er.getViewport({rotation:ec,scale:el}).clone({dontFlip:!0}),eh=X.filter(function(G){return!G.parentId});return es(function(){var G=ep.current;
1G&&ei.forEach(function(Y){Y.onAnnotationLayerRender&&Y.onAnnotationLayerRender({annotations:eh,container:G,pageIndex:eo,rotation:ec,scale:el})})},[]),ea.createElement("div",{ref:ep,className:"rpv-core__annotation-layer","data-testid":"core__annotation-layer-".concat(eo)},eh.map(function(G){var ei=X.find(function(Y){return Y.parentId===G.id});switch(G.annotationType){case Y.AnnotationType.Caret:return ea.createElement(ye,{key:G.id,annotation:G,page:er,viewport:em});case Y.AnnotationType.Circle:return ea.createElement(Se,{key:G.id,annotation:G,page:er,viewport:em});case Y.AnnotationType.FileAttachment:return ea.createElement(_e,{key:G.id,annotation:G,page:er,viewport:em});case Y.AnnotationType.FreeText:return ea.createElement(Pe,{key:G.id,annotation:G,page:er,viewport:em});case Y.AnnotationType.Highlight:return ea.createElement(Me,{key:G.id,annotation:G,childAnnotation:ei,page:er,viewport:em});case Y.AnnotationType.Ink:return ea.createElement(ke,{key:G.id,annotation:G,page:er,viewport:em});case Y.AnnotationType.Line:return ea.createElement(Ce,{key:G.id,annotation:G,page:er,viewport:em});case Y.AnnotationType.Link:return ea.createElement(Ie,{key:G.id,annotation:G,annotationContainerRef:ep,doc:Q,outlines:en,page:er,pageIndex:eo,scale:el,viewport:em,onExecuteNamedAction:eu,onJumpFromLinkAnnotation:ef,onJumpToDest:ed});case Y.AnnotationType.Polygon:return ea.createElement(Ae,{key:G.id,annotation:G,page:er,viewport:em});case Y.AnnotationType.Polyline:return ea.createElement(He,{key:G.id,annotation:G,page:er,viewport:em});case Y.AnnotationType.Popup:return ea.createElement(Re,{key:G.id,annotation:G,page:er,viewport:em});case Y.AnnotationType.Square:return ea.createElement(Ne,{key:G.id,annotation:G,page:er,viewport:em});case Y.AnnotationType.Squiggly:return ea.createElement(Ve,{key:G.id,annotation:G,page:er,viewport:em});case Y.AnnotationType.Stamp:return ea.createElement(ze,{key:G.id,annotation:G,page:er,viewport:em});case Y.AnnotationType.StrikeOut:return ea.createElement(Be,{key:G.id,annotation:G,page:er,viewport:em});case Y.AnnotationType.Text:return ea.createElement(Ge,{key:G.id,annotation:G,childAnnotation:ei,page:er,viewport:em});case Y.AnnotationType.Underline:return ea.createElement(Ye,{key:G.id,annotation:G,page:er,viewport:em});default:return ea.createElement(ea.Fragment,{key:G.id})}}))},Xe=function(G){var Y=G.page,X=G.renderAnnotations,Q=T(),en=ea.useState({loading:!0,annotations:[]}),er=en[0],eo=en[1];return ea.useEffect(function(){Y.getAnnotations({intent:"display"}).then(function(G){Q.current&&eo({loading:!1,annotations:G})})},[]),er.loading?ea.createElement(ea.Fragment,null):X(er.annotations)},Qe=function(G){var Y=G.doc,X=G.outlines,Q=G.page,en=G.pageIndex,er=G.plugins,eo=G.rotation,ei=G.scale,ec=G.onExecuteNamedAction,el=G.onJumpFromLinkAnnotation,eu=G.onJumpToDest;return ea.createElement(Xe,{page:Q,renderAnnotations:function(G){return ea.createElement(Ke,{annotations:G,doc:Y,outlines:X,page:Q,pageIndex:en,plugins:er,rotation:eo,scale:ei,onExecuteNamedAction:ec,onJumpFromLinkAnnotation:el,onJumpToDest:eu})}})},$e=function(G,Y){var X=G%Y;return 0===X?G:Math.floor(G-X)},et=function(G){var X=G.canvasLayerRef,Q=G.height,en=G.page,er=G.pageIndex,eo=G.plugins,ei=G.rotation,ec=G.scale,el=G.width,eu=G.onRenderCanvasCompleted,ef=ea.useRef();return es(function(){var G=ef.current;G&&G.cancel();var Q=X.current;Q.removeAttribute("data-testid"),eo.forEach(function(G){G.onCanvasLayerRender&&G.onCanvasLayerRender({ele:Q,pageIndex:er,rotation:ei,scale:ec,status:Y.LayerRenderStatus.PreRender})});var ea=en.getViewport({rotation:ei,scale:ec}),el=window.devicePixelRatio||1,es=Math.sqrt(16777216/(ea.width*ea.height)),ed=el>es;ed?Q.style.transform="scale(1, 1)":Q.style.removeProperty("transform");var ep=Math.min(es,el),em=function(G,Y){if(Math.floor(G)===G)return[G,1];var X,Q,en=1/G;if(en>Y)return[1,Y];if(Math.floor(en)===en)return[1,en];for(var er=G>1?en:G,eo=0,ea=1,ei=1,ec=1;;){var el=eo+ei,eu=ea+ec;if(eu>Y)break;er<=el/eu?(ei=(X=[el,eu])[0],ec=X[1]):(eo=(Q=[el,eu])[0],ea=Q[1])}return er<(eo/ea+ei/ec)/2?er===G?[eo,ea]:[ea,eo]:er===G?[ei,ec]:[ec,ei]}(ep,8),eh=em[0],eg=em[1];Q.width=$e(ea.width*ep,eh),Q.height=$e(ea.height*ep,eh),Q.style.width="".concat($e(ea.width,eg),"px"),Q.style.height="".concat($e(ea.height,eg),"px"),Q.hidden=!0;var ev=Q.getContext("2d",{alpha:!1}),eb=ed||1!==el?[ep,0,0,ep,0,0]:null;return ef.current=en.render({canvasContext:ev,transform:eb,viewport:ea}),ef.current.promise.then(function(){Q.hidden=!1,Q.setAttribute("data-testid","core__canvas-layer-".concat(er)),eo.forEach(function(G){G.onCanvasLayerRender&&G.onCanvasLayerRender({ele:Q,pageIndex:er,rotation:ei,scale:ec,status:Y.LayerRenderStatus.DidRender})}),eu()},function(){eu()}),function(){Q&&(Q.width=0,Q.height=0)}}
1,[]),ea.createElement("div",{className:"rpv-core__canvas-layer",style:{height:"".concat(Q,"px"),width:"".concat(el,"px")}},ea.createElement("canvas",{ref:X}))},tt=function(G){var Y=G.height,X=G.page,Q=G.rotation,en=G.scale,er=G.width,eo=ea.useRef();return es(function(){var G=eo.current,ea=X.getViewport({rotation:Q,scale:en});X.getOperatorList().then(function(Q){var en;(en=eo.current)&&(en.innerHTML=""),new ei.SVGGraphics(X.commonObjs,X.objs).getSVG(Q,ea).then(function(X){X.style.height="".concat(Y,"px"),X.style.width="".concat(er,"px"),G.appendChild(X)})})},[]),ea.createElement("div",{className:"rpv-core__svg-layer",ref:eo})},nt=function(G){var X=G.containerRef,Q=G.page,en=G.pageIndex,er=G.plugins,eo=G.rotation,ec=G.scale,el=G.onRenderTextCompleted,eu=ea.useRef(),p=function(){var G=X.current;G&&([].slice.call(G.querySelectorAll(".rpv-core__text-layer-text")).forEach(function(Y){return G.removeChild(Y)}),[].slice.call(G.querySelectorAll('br[role="presentation"]')).forEach(function(Y){return G.removeChild(Y)}))};return es(function(){var G=eu.current;G&&G.cancel();var ea=X.current;if(ea){ea.removeAttribute("data-testid");var es=Q.getViewport({rotation:eo,scale:ec});return er.forEach(function(G){G.onTextLayerRender&&G.onTextLayerRender({ele:ea,pageIndex:en,scale:ec,status:Y.LayerRenderStatus.PreRender})}),Q.getTextContent().then(function(G){p(),eu.current=ei.renderTextLayer({container:ea,textContent:G,textContentSource:G,viewport:es}),eu.current.promise.then(function(){ea.setAttribute("data-testid","core__text-layer-".concat(en)),[].slice.call(ea.children).forEach(function(G){G.classList.contains("rpv-core__text-layer-text--not")||G.classList.add("rpv-core__text-layer-text")}),er.forEach(function(G){G.onTextLayerRender&&G.onTextLayerRender({ele:ea,pageIndex:en,scale:ec,status:Y.LayerRenderStatus.DidRender})}),el()},function(){ea.removeAttribute("data-testid"),el()})}),function(){var G;p(),null===(G=eu.current)||void 0===G||G.cancel()}}},[]),ea.createElement("div",{className:"rpv-core__text-layer",ref:X})},rt=function(G){var X=G.doc,Q=G.measureRef,en=G.outlines,er=G.pageIndex,eo=G.pageRotation,ei=G.pageSize,ec=G.plugins,el=G.renderPage,eu=G.renderQueueKey,es=G.rotation,ef=G.scale,ed=G.shouldRender,ep=G.viewMode,em=G.onExecuteNamedAction,eh=G.onJumpFromLinkAnnotation,eg=G.onJumpToDest,ev=G.onRenderCompleted,eb=G.onRotatePage,eE=T(),ey=ea.useState(null),ew=ey[0],e_=ey[1],ek=ea.useState(!1),eS=ek[0],eC=ek[1],eP=ea.useState(!1),eM=eP[0],ex=eP[1],eI=ea.useRef(),eR=ea.useRef(),eL=Math.abs(es+eo)%180==0,eT=ei.pageWidth*ef,eB=ei.pageHeight*ef,eO=eL?eT:eB,eD=eL?eB:eT,eN=(ei.rotation+es+eo)%360,eF=ea.useRef(0),ez=el||function(G){return ea.createElement(ea.Fragment,null,G.canvasLayer.children,G.textLayer.children,G.annotationLayer.children)};return ea.useEffect(function(){e_(null),eC(!1),ex(!1)},[eo,es,ef]),ea.useEffect(function(){ed&&eE.current&&!ew&&de(X,er).then(function(G){eE.current&&(eF.current=eu,e_(G))})},[ed,ew]),ea.useEffect(function(){eS&&eM&&(eu!==eF.current?(e_(null),eC(!1),ex(!1)):ev(er))},[eS,eM]),ea.createElement("div",{className:d({"rpv-core__page-layer":!0,"rpv-core__page-layer--dual":ep===Y.ViewMode.DualPage,"rpv-core__page-layer--dual-cover":ep===Y.ViewMode.DualPageWithCover,"rpv-core__page-layer--single":ep===Y.ViewMode.SinglePage}),"data-testid":"core__page-layer-".concat(er),ref:Q,style:{height:"".concat(eD,"px"),width:"".concat(eO,"px")}},ew?ea.createElement(ea.Fragment,null,ez({annotationLayer:{attrs:{},children:ea.createElement(Qe,{doc:X,outlines:en,page:ew,pageIndex:er,plugins:ec,rotation:eN,scale:ef,onExecuteNamedAction:em,onJumpFromLinkAnnotation:eh,onJumpToDest:eg})},canvasLayer:{attrs:{},children:ea.createElement(et,{canvasLayerRef:eI,height:eD,page:ew,pageIndex:er,plugins:ec,rotation:eN,scale:ef,width:eO,onRenderCanvasCompleted:function(){eE.current&&eC(!0)}})},canvasLayerRendered:eS,doc:X,height:eD,pageIndex:er,rotation:eN,scale:ef,svgLayer:{attrs:{},children:ea.createElement(tt,{height:eD,page:ew,rotation:eN,scale:ef,width:eO})},textLayer:{attrs:{},children:ea.createElement(nt,{containerRef:eR,page:ew,pageIndex:er,plugins:ec,rotation:eN,scale:ef,onRenderTextCompleted:function(){eE.current&&ex(!0)}})},textLayerRendered:eM,width:eO,markRendered:ev,onRotatePage:function(G){return eb(er,G)}}),ec.map(function(G,Y){return G.renderPageLayer?ea.createElement(ea.Fragment,{key:Y},G.renderPageLayer({canvasLayerRef:eI,canvasLayerRendered:eS,doc:X,height:eD,pageIndex:er,rotation:eN,scale:ef,textLayerRef:eR,textLayerRendered:eM,width:eO})):ea.createElement(ea.Fragment,{key:Y})})):ea.createElement(x,{testId:"core__page-layer-loading-".concat(er)}))},ot=function(G,Y){var X=Y.rect;return G.height!==X.height||G.width!==X.width?X:G};(Q=eA||(eA={}
1)).Horizontal="Horizontal",Q.Vertical="Vertical",Q.Both="Both";var at=function(G){return 1-Math.pow(1-G,4)},eW={left:0,top:0},eK={capture:!1,passive:!0},lt=function(G){var Y=G.elementRef,X=G.enableSmoothScroll,Q=G.isRtl,en=G.scrollDirection,er=G.onSmoothScroll,eo=ea.useState(eW),ei=eo[0],ec=eo[1],el=ea.useState(Y.current),eu=el[0],ef=el[1],ed=Q?-1:1,ep=ea.useRef(en);ep.current=en;var em=ea.useRef(eW),eh=ea.useRef(!0),eg=ea.useCallback(function(){eh.current=!0,X&&ec(em.current),er(!1)},[]),ev=ea.useCallback(function(){if(eu){switch(ep.current){case eA.Horizontal:em.current={left:ed*eu.scrollLeft,top:0};break;case eA.Both:em.current={left:ed*eu.scrollLeft,top:eu.scrollTop};break;case eA.Vertical:default:em.current={left:0,top:eu.scrollTop}}X&&!eh.current||ec(em.current)}},[eu]);return es(function(){ef(Y.current)}),es(function(){if(eu)return eu.addEventListener("scroll",ev,eK),function(){eu.removeEventListener("scroll",ev,eK)}},[eu]),{scrollOffset:ei,scrollTo:ea.useCallback(function(G,X){var Q=Y.current;if(!Q)return Promise.resolve();var en={left:0,top:0};switch(ep.current){case eA.Horizontal:en.left=ed*G.left;break;case eA.Both:en.left=ed*G.left,en.top=G.top;break;case eA.Vertical:default:en.top=G.top}return X?(eh.current=!1,er(!0),new Promise(function(G,Y){!function(G,Y,X,Q,en,er){void 0===en&&(en=function(G){return G}),void 0===er&&(er=function(){});var eo=0,ea=0,ei=!1;switch(Y){case eA.Horizontal:ea=G.scrollLeft,eo=0;case eA.Both:ea=G.scrollLeft,eo=G.scrollTop;break;case eA.Vertical:default:ea=0,eo=G.scrollTop}var l=function(){ei||(ei=!0,G.scrollLeft=X.left,G.scrollTop=X.top,er())};if(1e-4>=Math.abs(eo-X.top)&&Y===eA.Vertical)l();else if(1e-4>=Math.abs(ea-X.left)&&Y===eA.Horizontal)l();else{var ec,el=-1,eu=ea-X.left,es=eo-X.top,g=function(er){-1===el&&(el=er);var ef=er-el,ed=en(Math.min(ef/Q,1)),ep={left:ea-eu*ed,top:eo-es*ed};switch(Y){case eA.Horizontal:G.scrollLeft=ep.left;break;case eA.Both:G.scrollLeft=ep.left,G.scrollTop=ep.top;break;case eA.Vertical:default:G.scrollTop=ep.top}1e-4>=Math.abs(ep.top-X.top)&&1e-4>=Math.abs(ep.left-X.left)&&!ei&&(window.cancelAnimationFrame(ec),l()),ef<Q?ec=window.requestAnimationFrame(g):window.cancelAnimationFrame(ec)};ec=window.requestAnimationFrame(g)}}(Q,ep.current,en,400,at,function(){eg(),G()})})):new Promise(function(G,Y){switch(ep.current){case eA.Horizontal:Q.scrollLeft=en.left;break;case eA.Both:Q.scrollLeft=en.left,Q.scrollTop=en.top;break;case eA.Vertical:default:Q.scrollTop=en.top}G()})},[Y])}},ut=function(G,Y,X){return Math.max(G,Math.min(X,Y))},pt=function(G,X){if(X!==Y.ViewMode.DualPageWithCover)return 0;if(!function(G){var Y=G.length;if(1===Y)return!1;for(var X=1;X<Y;X++)if(G[X].height!==G[0].height||G[X].width!==G[0].width)return!0;return!1}(G))return 2*G[0].width;var Q=ie(G.slice(1),2).map(function(G){return 2===G.length?G[0].width+G[1].width:G[0].width}),en=[G[0].width].concat(Q);return Math.max.apply(Math,en)},eZ={left:0,top:0},eq={left:0,top:0},eG={left:0,top:0},e$={left:0,top:0},eJ={height:0,width:0},eY={left:0,top:0},eX="data-virtual-index",eQ=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1],Et=function(G){var X,Q,en,er,eo,ei,ec,el=G.enableSmoothScroll,eu=G.isRtl,ef=G.numberOfItems,ed=G.parentRef,ep=G.setRenderRange,em=G.sizes,eh=G.scrollMode,eg=G.viewMode,ev=ea.useState(!1),eb=ev[0],eE=ev[1],ey=ea.useCallback(function(G){return eE(G)},[]),ew=ea.useRef(eh);ew.current=eh;var e_=ea.useRef(eg);e_.current=eg;var ek=eh===Y.ScrollMode.Wrapped||eg===Y.ViewMode.DualPageWithCover||eg===Y.ViewMode.DualPage?eA.Both:eh===Y.ScrollMode.Horizontal?eA.Horizontal:eA.Vertical,eS=lt({elementRef:ed,enableSmoothScroll:el,isRtl:eu,scrollDirection:ek,onSmoothScroll:ey}),eC=eS.scrollOffset,eP=eS.scrollTo,eM=(Q=(X=ea.useState(ed.current))[0],en=X[1],er=ea.useRef(!1),ei=(eo=ea.useReducer(ot,{height:0,width:0}))[0],ec=eo[1],es(function(){ed.current!==Q&&en(ed.current)}),es(function(){if(Q&&!er.current){er.current=!0;var G=Q.getBoundingClientRect();ec({rect:{height:G.height,width:G.width}})}},[Q]),ea.useEffect(function(){if(Q){var G=new ResizeObserver(function(G,Y){G.forEach(function(G){if(G.target===Q){var Y=G.contentRect;ec({rect:{height:Y.height,width:Y.width}})}})});return G.observe(Q),function(){G.unobserve(Q)}}},[Q]),ei),ex=ea.useRef({scrollOffset:eY,measurements:[]});ex.current.scrollOffset=eC;var eI=ea.useMemo(function(){return Array(ef).fill(-1)},[]),eR=ea.useState(eI),eL=eR[0],eT=eR[1],eB=ea.useMemo(function(){return new IntersectionObserver(function(G){G.forEach(function(G){var Y=G.isIntersecting?G.intersectionRatio:-1,X=G.target.getAttribute(eX);if(X){var Q=parseInt(X,10);0<=Q&&Q<ef&&eT(function(G){return G[Q]=Y,function(G,Y,X){if(X||2==arguments.length)for(var Q,en=0,er=Y.length;en<er;en++)!Q&&en in Y||(Q||(Q=Array.prototype.slice.call(Y,0,en)),Q[en]=Y[en]);return G.concat(Q||Array.prototype.slice.call(Y))}([],G,!0)})}})},{threshold:eQ})},[]),eO=ea.useMemo(function(){return eh===Y.ScrollMode.Page&&eg===Y.ViewMode.SinglePage?function(G,Y,X){for(var Q=[],en=0;en<G;en++){var er={height:Math.max(Y.height,X[en].height),width:Math.max(Y.width,X[en].width)},eo=0===en?e$:Q[en-1].end,ea={left:eo.left+er.width,top:eo.top+er.height};Q[en]={index:en,start:eo,size:er,end:ea,visibility:-1}}return Q}(ef,eM,em):eg===Y.ViewMode.DualPageWithCover?function(G,X,Q,en){for(var er=[],eo=0,ea=0,ei=eG,ec=0;ec<G;ec++){var el=0===ec?{height:en===Y.ScrollMode.Page?Math.max(X.height,Q[ec].height):Q[ec].height,width:en===Y.ScrollMode.Page?Math.max(X.width,Q[ec].width):Q[ec].width}:{height:en===Y.ScrollMode.Page?Math.max(X.height,Q[ec].height):Q[ec].height,width:Math.max(X.width/2,Q[ec].width)};en===Y.ScrollMode.Page?ei=0===ec?eG:{left:ec%2==0?el.width:0,top:Math.floor((ec-1)/2)*el.height+er[0].end.top}:0===ec?(ei=eG,eo=Q[0].height,ea=0):ec%2==1?(ei={left:0,top:eo+=ea},ea=ec===G-1?Q[ec].height:Math.max(Q[ec].height,Q[ec+1].height)):ei={left:er[ec-1].end.left,top:eo};var eu={left:ei.left+el.width,top:ei.top+el.height};er[ec]={index:ec,start:ei,size:el,end:eu,visibility:-1}}return er}(ef,eM,em,eh):eg===Y.ViewMode.DualPage?function(G,X,Q,en){for(var er=[],eo=0,ea=0,ei=eq,ec=0;ec<G;ec++){var el={height:en===Y.ScrollMode.Page?Math.max(X.height,Q[ec].height):Q[ec].height,width:Math.max(X.width/2,Q[ec].width)};en===Y.ScrollMode.Page?ei={left:ec%2==0?0:el.width,top:Math.floor(ec/2)*el.height}:ec%2==0?(ei={left:0,top:eo+=ea},ea=ec===G-1?Q[ec].height:Math.max(Q[ec].height,Q[ec+1].height)):ei={left:er[ec-1].end.left,top:eo};var eu={left:ei.left+el.width,top:ei.top+el.height};er[ec]={index:ec,start:ei,size:el,end:eu,visibility:-1}}return er}(ef,eM,em,eh):function(G,X,Q,en){for(var er=[],eo=0,ea={left:0,top:0},ei=0,ec=eZ,el=0;el<G;el++){var eu=Q[el];if(0===el)eo=eu.width,ea={left:0,top:0},ei=eu.height;else switch(en){case Y.ScrollMode.Wrapped:(eo+=eu.width)<X.width?(ec={left:er[el-1].end.left,top:ea.top},ei=Math.max(ei,eu.height)):(eo=eu.width,ea={left:(ec={left:ea.left,top:ea.top+ei}).left,top:ec.top},ei=eu.height);break;case Y.ScrollMode.Horizontal:case Y.ScrollMode.Vertical:default:ec=er[el-1].end}var es={left:ec.left+eu.width,top:ec.top+eu.height};er[el]={index:el,start:ec,size:eu,end:es,visibility:-1}}return er}(ef,eM,em,eh)},[eh,em,eg,eM]),eD=eO[ef-1]?{height:eO[ef-1].end.top,width:eO[ef-1].end.left}:eJ;ex.current.measurements=eO;var eN=ea.useMemo(function(){var G=function(G,Y,X,Q){var en=0;switch(G){case eA.Horizontal:en=Q.left;break;
1case eA.Vertical:default:en=Q.top}var er=Y.length-1,eo=function(G,Y,X,Q){for(;G<=Y;){var en=(G+Y)/2|0,er=Q(en);if(er<X)G=en+1;else{if(!(er>X))return en;Y=en-1}}return G>0?G-1:0}(0,er,en,function(X){switch(G){case eA.Horizontal:return Y[X].start.left;case eA.Both:case eA.Vertical:default:return Y[X].start.top}});if(G===eA.Both)for(var ea=Y[eo].start.top;eo-1>=0&&Y[eo-1].start.top===ea&&Y[eo-1].start.left>=Q.left;)eo--;for(var ei=eo;ei<=er;){var ec={top:Y[ei].start.top-Q.top,left:Y[ei].start.left-Q.left},el={height:X.height-ec.top,width:X.width-ec.left};if(G===eA.Horizontal&&el.width<0||G===eA.Vertical&&el.height<0||G===eA.Both&&(el.width<0||el.height<0))break;ei++}return{start:eo,end:ei}}(ek,eO,eM,eC),X=G.start,Q=G.end,en=eL.slice(ut(0,ef,X),ut(0,ef,Q)),er=X+en.reduce(function(G,Y,X,Q){return Y>Q[G]?X:G},0),eo=er=ut(0,ef-1,er),ea=ep({endPage:Q,numPages:ef,startPage:X}),ei=ea.startPage,ec=ea.endPage;switch(ei=Math.max(ei,0),ec=Math.min(ec,ef-1),eg){case Y.ViewMode.DualPageWithCover:er>0&&(eo=er%2==1?er:er-1),ei=0===ei?0:ei%2==1?ei:ei-1,ef-(ec=ec%2==1?ec-1:ec)<=2&&(ec=ef-1);break;case Y.ViewMode.DualPage:eo=er%2==0?er:er-1,ei=ei%2==0?ei:ei-1,ec=ec%2==1?ec:ec-1;break;case Y.ViewMode.SinglePage:default:eo=er}return{startPage:ei,endPage:ec,maxVisbilityIndex:eo}},[eO,eM,eC,eg,eL]),eF=eN.startPage,ez=eN.endPage,ej=eN.maxVisbilityIndex,eV=ea.useMemo(function(){for(var G=[],t=function(Y){var X=eO[Y],Q=l(l({},X),{visibility:void 0!==eL[Y]?eL[Y]:-1,measureRef:function(G){G&&(G.setAttribute(eX,"".concat(Y)),eB.observe(G))}});G.push(Q)},Y=eF;Y<=ez;Y++)t(Y);return G},[eF,ez,eL,eO]),eH=ea.useCallback(function(G,X){var Q=ex.current.measurements[ut(0,ef-1,G)],en=ew.current===Y.ScrollMode.Page?eY:X;return Q?eP({left:en.left+Q.start.left,top:en.top+Q.start.top},el):Promise.resolve()},[eP,el]),eU=ea.useCallback(function(G,X){var Q=ex.current.measurements,en=Q[G].start,er=Q.find(function(G){return G.start.top-en.top>1e-12});if(!er)return Promise.resolve();var eo=er.index;switch(e_.current){case Y.ViewMode.DualPage:eo=eo%2==0?eo:eo+1;break;case Y.ViewMode.DualPageWithCover:eo=eo%2==1?eo:eo+1}return eH(eo,X)},[]),eW=ea.useCallback(function(G,X){for(var Q=ex.current.measurements,en=Q[G].start,er=G,eo=!1,ea=ef-1;ea>=0;ea--)if(en.top-Q[ea].start.top>1e-12){eo=!0,er=Q[ea].index;break}if(!eo)return Promise.resolve();switch(e_.current){case Y.ViewMode.DualPage:er=er%2==0?er:er-1;break;case Y.ViewMode.DualPageWithCover:er=er%2==0?er-1:er}return er===G&&(er=G-1),eH(er,X)},[]),eK=ea.useCallback(function(G,X){if(e_.current===Y.ViewMode.DualPageWithCover||e_.current===Y.ViewMode.DualPage)return eU(G,X);switch(ew.current){case Y.ScrollMode.Wrapped:return eU(G,X);case Y.ScrollMode.Horizontal:case Y.ScrollMode.Vertical:default:return eH(G+1,X)}},[]),e0=ea.useCallback(function(G,X){if(e_.current===Y.ViewMode.DualPageWithCover||e_.current===Y.ViewMode.DualPage)return eW(G,X);switch(ew.current){case Y.ScrollMode.Wrapped:return eW(G,X);case Y.ScrollMode.Horizontal:case Y.ScrollMode.Vertical:default:return eH(G-1,X)}},[]),e1=ea.useCallback(function(){return function(G,X){switch(X){case Y.ScrollMode.Horizontal:return{position:"relative",height:"100%",width:"".concat(G.width,"px")};case Y.ScrollMode.Vertical:default:return{position:"relative",height:"".concat(G.height,"px"),width:"100%"}}}(eD,ew.current)},[eD]),e2=ea.useCallback(function(G){return ew.current!==Y.ScrollMode.Page?{}:{height:"".concat(eM.height,"px"),width:"100%",position:"absolute",top:0,transform:"translateY(".concat(G.start.top,"px)")}},[eM]),e5=ea.useCallback(function(G){return function(G,X,Q,en,er){var eo,ea,ei,ec,el,eu,es,ef=X?"right":"left",ed=Q.length,ep=G.start.left*(X?-1:1),em=G.size,eh=em.height,eg=em.width;if(en===Y.ViewMode.DualPageWithCover){var ev=er===Y.ScrollMode.Page?0:G.start.top;return 0===G.index||ed%2==0&&G.index===ed-1?((eo={height:"".concat(eh,"px"),minWidth:"".concat(pt(Q,en),"px"),width:"100%"})[ef]=0,eo.position="absolute",eo.top=0,eo.transform="translate(".concat(ep,"px, ").concat(ev,"px)"),eo):((ea={height:"".concat(eh,"px"),width:"".concat(eg,"px")})[ef]=0,ea.position="absolute",ea.top=0,ea.transform="translate(".concat(ep,"px, ").concat(ev,"px)"),ea)}if(en===Y.ViewMode.DualPage)return(ei={height:"".concat(eh,"px"),width:"".concat(eg,"px")})[ef]=0,ei.position="absolute",ei.top=0,ei.transform="translate(".concat(ep,"px, ").concat(er===Y.ScrollMode.Page?0:G.start.top,"px)"),ei;switch(er){case Y.ScrollMode.Horizontal:return(ec={height:"100%",width:"".concat(eg,"px")})[ef]=0,ec.position="absolute",ec.top=0,ec.transform="translateX(".concat(ep,"px)"),ec;case Y.ScrollMode.Page:return(el={height:"".concat(eh,"px"),width:"".concat(eg,"px")}
1)[ef]=0,el.position="absolute",el.top=0,el;case Y.ScrollMode.Wrapped:return(eu={height:"".concat(eh,"px"),width:"".concat(eg,"px")})[ef]=0,eu.position="absolute",eu.top=0,eu.transform="translate(".concat(ep,"px, ").concat(G.start.top,"px)"),eu;case Y.ScrollMode.Vertical:default:return(es={height:"".concat(eh,"px"),width:"100%"})[ef]=0,es.position="absolute",es.top=0,es.transform="translateY(".concat(G.start.top,"px)"),es}}(G,eu,em,e_.current,ew.current)},[eu,em]),e4=ea.useCallback(function(G,X){var Q=ex.current,en=Q.measurements,er=Q.scrollOffset,eo=en[ut(0,ef-1,X)];return eo?eP(ew.current===Y.ScrollMode.Page?{left:eo.start.left,top:eo.start.top}:{left:er.left*G,top:er.top*G},!1):Promise.resolve()},[]);return ea.useEffect(function(){return function(){eB.disconnect()}},[]),{boundingClientRect:eM,isSmoothScrolling:eb,startPage:eF,endPage:ez,maxVisbilityIndex:ej,virtualItems:eV,getContainerStyles:e1,getItemContainerStyles:e2,getItemStyles:e5,scrollToItem:eH,scrollToNextItem:eK,scrollToPreviousItem:e0,zoom:e4}},bt=function(G,X,Q,en,er,eo){var ea=Q;switch(!0){case er===Y.ViewMode.DualPageWithCover&&eo>=3:case er===Y.ViewMode.DualPage&&eo>=3:ea=2*Q;break;default:ea=Q}switch(en){case Y.SpecialZoomLevel.ActualSize:return 1;case Y.SpecialZoomLevel.PageFit:return Math.min((G.clientWidth-17)/ea,(G.clientHeight-16)/X);case Y.SpecialZoomLevel.PageWidth:return(G.clientWidth-17)/ea}},yt=function(G){var Y,X,Q=G.getCurrentPage,en=(X=ea.useRef([]),ea.useEffect(function(){return function(){X.current=[]}},[]),{push:function(G){var Y=X.current;Y.length+1>50&&Y.shift(),Y.push(G),X.current=Y},map:function(G){return X.current.map(function(Y){return G(Y)})},pop:function(){var G=X.current;if(0===G.length)return null;var Y=G.pop();return X.current=G,Y}}),er=(Y=ea.useRef([]),ea.useEffect(function(){return function(){Y.current=[]}},[]),{dequeue:function(){var G=Y.current;if(0===G.length)return null;var X=G.shift();return Y.current=G,X||null},enqueue:function(G){var X=Y.current;X.length+1>50&&X.pop(),Y.current=[G].concat(X)},map:function(G){return Y.current.map(function(Y){return G(Y)})}}),c=function(){var G=er.dequeue();return G&&en.push(G),G&&G.pageIndex===Q()?c():G},s=function(){var G=en.pop();return G&&er.enqueue(G),G&&G.pageIndex===Q()?s():G};return{getNextDestination:c,getPreviousDestination:s,markVisitedDestination:ea.useCallback(function(G){en.push(G)},[])}},St=function(G){var Y=[];return G.map(function(G){var X;Y=Y.concat(G).concat((X=[],G.items&&G.items.length>0&&(X=X.concat(St(G.items))),X))}),Y},e0={capture:!1,passive:!0},e1={height:0,width:0},e2={height:0,width:0},Mt=function(G){var X,Q,en,er,eo=G.getCurrentPage,ei=G.getCurrentScrollMode,ec=G.jumpToPage,el=G.targetRef,eu=ea.useState(Y.FullScreenMode.Normal),ef=eu[0],ed=eu[1],ep=(Q=(X=ea.useState(e1))[0],en=X[1],er=C(function(){en({height:window.innerHeight,width:window.innerWidth})},100),es(function(){return window.addEventListener("resize",er,e0),function(){window.removeEventListener("resize",er,e0)}},[]),Q),em=ea.useState(e2),eh=em[0],eb=em[1],eE=ea.useRef(e2),ey=ea.useRef(eo()),ew=ea.useRef(e2),e_=ea.useState(el.current),ek=e_[0],eS=e_[1],eC=ea.useRef();es(function(){el.current!==ek&&eS(el.current)},[]),es(function(){if(ek){var G=new ResizeObserver(function(G){G.forEach(function(G){var Y=G.target.getBoundingClientRect();eb({height:Y.height,width:Y.width})})});return G.observe(ek),function(){G.unobserve(ek),G.disconnect()}}},[ek]);var eP=ea.useCallback(function(G){var X=k();return X&&X!==G?(ed(Y.FullScreenMode.Normal),M(X)):Promise.resolve()},[]),eM=ea.useCallback(function(G){G&&R()&&(eS(G),eP(G).then(function(){eC.current=G,ed(Y.FullScreenMode.Entering),eg&&G[ev.RequestFullScreen]()}))},[]),ex=ea.useCallback(function(){k()&&(ed(Y.FullScreenMode.Exitting),M(document))},[]),eI=ea.useCallback(function(){ek&&k()!==ek&&ed(Y.FullScreenMode.Exitting)},[ek]);return ea.useEffect(function(){switch(ef){case Y.FullScreenMode.Entering:eC.current&&(eC.current.style.backgroundColor="var(--rpv-core__full-screen-target-background-color)"),ey.current=eo(),eE.current={height:window.innerHeight,width:window.innerWidth};break;case Y.FullScreenMode.Entered:ei()===Y.ScrollMode.Page?ec(ey.current).then(function(){ed(Y.FullScreenMode.EnteredCompletely)}):ed(Y.FullScreenMode.EnteredCompletely);break;case Y.FullScreenMode.Exitting:eC.current&&(eC.current.style.backgroundColor="",eC.current=null),ey.current=eo();break;case Y.FullScreenMode.Exited:ed(Y.FullScreenMode.Normal),ei()===Y.ScrollMode.Page&&ec(ey.current)}},[ef]),ea.useEffect(function(){if(ef!==Y.FullScreenMode.Normal)return ef===Y.FullScreenMode.Entering&&ep.height===eh.height&&ep.width===eh.width&&ep.height>0&&ep.width>0&&(0===ew.current.height||ep.height==ew.current.height)?(ew.current={height:window.innerHeight,width:window.innerWidth},void ed(Y.FullScreenMode.Entered)):void(ef===Y.FullScreenMode.Exitting&&eE.current.height===ep.height&&eE.current.width===ep.width&&ep.height>0&&ep.width>0&&ed(Y.FullScreenMode.Exited))},[ef,ep,eh]),ea.useEffect(function(){return eg&&document.addEventListener(ev.FullScreenChange,eI),function(){eg&&document.removeEventListener(ev.FullScreenChange,eI)}},[ek]),{enterFullScreenMode:eM,exitFullScreenMode:ex,fullScreenMode:ef}},e5={buildPageStyles:function(){return{}},transformSize:function(G){return G.size}},e4={left:0,top:0},Tt=function(G){var X=G.currentFile,Q=G.defaultScale,en=G.doc,er=G.enableSmoothScroll,eo=G.initialPage,ei=G.initialRotation,ec=G.initialScale,el=G.pageLayout,ef=G.pageSizes,ed=G.plugins,ep=G.renderPage,em=G.scrollMode,eh=G.setRenderRange,eg=G.viewMode,ev=G.viewerState,eb=G.onDocumentLoad,eE=G.onOpenFile,ey=G.onPageChange,e_=G.onRotate,ek=G.onRotatePage,eS=G.onZoom,eC=en.numPages,eP=en.loadingTask.docId,eM=ea.useContext(ew).l10n,ex=ea.useContext(eu),eI=ex.direction===Y.TextDirection.RightToLeft,eR=ea.useRef(),eL=ea.useRef(),eT=ea.useState(eo),eD=eT[0],eN=eT[1],eF=ea.useRef(null),ez=yt({getCurrentPage:function(){return tn.current.pageIndex}}),eA=ea.useState(ei),ej=eA[0],eV=eA[1],eH=L(ej),eU=ea.useState(!1),eW=eU[0],eK=eU[
11],eZ=ea.useState(new Map),eq=eZ[0],eG=eZ[1],e$=ea.useState(em),eJ=e$[0],eY=e$[1],eX=L(eJ),eQ=ea.useState(eg),e0=eQ[0],e1=eQ[1],e2=L(e0),e8=(tO=T(),tN=(tD=ea.useState([]))[0],tF=tD[1],ea.useEffect(function(){en.getOutline().then(function(G){tO.current&&null!==G&&tF(St(G))})},[]),tN),e6=ea.useState(ec),e3=e6[0],e9=e6[1],e7=L(e3),tn=ea.useRef(ev),tr=ea.useRef("string"==typeof Q?Q:null),to=ea.useRef(-1),ta=ea.useRef(-1),ti=ea.useRef(eo),tc=Mt({getCurrentPage:function(){return tn.current.pageIndex},getCurrentScrollMode:function(){return tn.current.scrollMode},jumpToPage:function(G){return tS(G)},targetRef:eL}),tl=ea.useState(-1),tu=tl[0],ts=tl[1],tf=ea.useState(0),td=tf[0],tp=tf[1],tm=D({doc:en});ea.useEffect(function(){return function(){eB.clear(),eO.clear()}},[eP]);var th=ea.useMemo(function(){return Object.assign({},e5,el)},[]),tg=ea.useMemo(function(){return Array(eC).fill(0).map(function(G,Y){var X=[ef[Y].pageHeight,ef[Y].pageWidth],Q=Math.abs(ej)%180==0?{height:X[0],width:X[1]}:{height:X[1],width:X[0]},en={height:Q.height*e3,width:Q.width*e3};return th.transformSize({numPages:eC,pageIndex:Y,size:en})})},[ej,e3]),tv=Et({enableSmoothScroll:er,isRtl:eI,numberOfItems:eC,parentRef:eL,scrollMode:eJ,setRenderRange:eh,sizes:tg,viewMode:e0});tA=(tz={targetRef:eL,onResize:C(function(){!tr.current||tn.current.fullScreenMode!==Y.FullScreenMode.Normal||eo>0&&ti.current===eo||tL(tr.current)},200)}).targetRef,tj=tz.onResize,es(function(){var G=new ResizeObserver(function(G){G.forEach(function(G){tj(G.target)})}),Y=tA.current;if(Y)return G.observe(Y),function(){G.unobserve(Y)}},[]);var De=function(G){var Y=G;ed.forEach(function(G){G.onViewerStateChange&&(Y=G.onViewerStateChange(Y))}),tn.current=Y},Ie=function(){return eL.current},Ae=function(){return tn.current},tb=ea.useCallback(function(G){ez.markVisitedDestination(G)},[]),tE=ea.useCallback(function(G){var X=G.pageIndex,Q=G.bottomOffset,er=G.leftOffset,eo=G.scaleTo,ea=eL.current,ei=tn.current;return ea&&ei?new Promise(function(G,ec){de(en,X).then(function(en){var ec=en.getViewport({scale:1}),el=0,eu=("function"==typeof Q?Q(ec.width,ec.height):Q)||0,es=("function"==typeof er?er(ec.width,ec.height):er)||0,ed=ei.scale;switch(eo){case Y.SpecialZoomLevel.PageFit:el=0,es=0,tL(Y.SpecialZoomLevel.PageFit);break;case Y.SpecialZoomLevel.PageWidth:ed=bt(ea,ef[X].pageHeight,ef[X].pageWidth,Y.SpecialZoomLevel.PageWidth,eg,eC),el=(ec.height-eu)*ed,es*=ed,tL(ed);break;default:el=(ec.height-eu)*ed,es*=ed}switch(ei.scrollMode){case Y.ScrollMode.Horizontal:tv.scrollToItem(X,{left:es,top:0}).then(function(){G()});break;case Y.ScrollMode.Vertical:default:tv.scrollToItem(X,{left:0,top:el}).then(function(){G()})}})}):Promise.resolve()},[]),ty=ea.useCallback(function(G){return ez.markVisitedDestination(G),tE(G)},[]),tw=ea.useCallback(function(){var G=ez.getNextDestination();return G?tE(G):Promise.resolve()},[]),t_=ea.useCallback(function(){var G=ez.getPreviousDestination();return G?tE(G):Promise.resolve()},[]),tk=ea.useCallback(function(){return tv.scrollToNextItem(tn.current.pageIndex,e4)},[]),tS=ea.useCallback(function(G){return 0<=G&&G<eC?tv.scrollToItem(G,e4):Promise.resolve()},[]),tC=ea.useCallback(function(){return tv.scrollToPreviousItem(tn.current.pageIndex,e4)},[]),tP=ea.useCallback(function(G){var Y;"pdf"===((Y=G.name.split(/\./).pop())?Y.toLowerCase():"").toLowerCase()&&new Promise(function(Y){var X=new FileReader;X.readAsArrayBuffer(G),X.onload=function(){Y(new Uint8Array(X.result))}}).then(function(Y){eE(G.name,Y)})},[eE]),tM=ea.useCallback(function(G){var X=G===Y.RotateDirection.Backward?-90:90,Q=tn.current.rotation,er=360===Q||-360===Q?X:Q+X;tm.markNotRendered(),eV(er),De(l(l({},tn.current),{rotation:er})),e_({direction:G,doc:en,rotation:er})},[]),tx=ea.useCallback(function(G,X){var Q=X===Y.RotateDirection.Backward?-90:90,er=tn.current.pagesRotation,eo=(er.has(G)?er.get(G):ei)+Q,ea=er.set(G,eo);eG(ea),eK(function(G){return!G}),De(l(l({},tn.current),{pagesRotation:ea,rotatedPage:G})),ek({direction:X,doc:en,pageIndex:G,rotation:eo}),tm.markRendering(G),ts(G)},[]),tI=ea.useCallback(function(G){De(l(l({},tn.current),{scrollMode:G})),eY(G)},[]),tR=ea.useCallback(function(G){De(l(l({},tn.current),{viewMode:G})),e1(G)},[]),tL=ea.useCallback(function(G){var Y=eL.current,X=tn.current.pageIndex;if(!(X<0||X>=eC)){var Q=ef[X].pageHeight,er=ef[X].pageWidth,eo=Y?"string"==typeof G?bt(Y,Q,er,G,tn.current.viewMode,eC):G:1;tr.current="string"==typeof G?G:null,eo!==tn.current.scale&&(tp(function(G){return G+1}),tm.markNotRendered(),e9(eo),eS({doc:en,scale:eo}),De(l(l({},tn.current),{scale:eo})))}},[]),tT=ea.useCallback(function(G){tc.enterFullScreenMode(G)},[]),tB=ea.useCallback(function(){tc.exitFullScreenMode()},[]);ea.useEffect(function(){De(l(l({},tn.current),{fullScreenMode:tc.fullScreenMode}))},[tc.fullScreenMode]),ea.useEffect(function(){var G={enterFullScreenMode:tT,exitFullScreenMode:tB,getPagesContainer:Ie,getViewerState:Ae,jumpToDestination:ty,jumpToNextDestination:tw,jumpToPreviousDestination:t_,jumpToNextPage:tk,jumpToPreviousPage:tC,jumpToPage:tS,openFile:tP,rotate:tM,rotatePage:tx,setViewerState:De,switchScrollMode:tI,switchViewMode:tR,zoom:tL};return ed.forEach(function(Y){Y.install&&Y.install(G)}),function(){ed.forEach(function(Y){Y.uninstall&&Y.uninstall(G)})}},[eP]),ea.useEffect(function(){eb({doc:en,file:X}),ed.forEach(function(G){G.onDocumentLoad&&G.onDocumentLoad({doc:en,file:X})})},[eP]);var tO,tD,tN,tF,tz,tA,tj,tV,tH,tU,tW=tv.boundingClientRect;tV=function(){eo&&tS(eo)},tH=tW.height>0&&tW.width>0,tU=ea.useRef(!1),es(function(){tH&&!tU.current&&(tU.current=!0,tV())},[tV,tH]),es(function(){var G=tn.current.pageIndex;G>-1&&eX!==eJ&&tv.scrollToItem(G,e4).then(function(){tc.fullScreenMode===Y.FullScreenMode.EnteredCompletely&&(er||tm.markNotRendered(),to.current=-1)})},[eJ]),es(function(){var G=tn.current.pageIndex;G>
1-1&&eH!==ej&&tv.scrollToItem(G,e4)},[ej]),es(function(){0!=e7&&e7!=tn.current.scale&&tv.zoom(tn.current.scale/e7,tn.current.pageIndex).then(function(){tc.fullScreenMode===Y.FullScreenMode.EnteredCompletely&&(ta.current=-1)})},[e3]),es(function(){if(e2!==tn.current.viewMode){var G=tv.startPage,Y=tv.endPage,X=tv.virtualItems;tm.markNotRendered(),tm.setRange(G,Y);for(var r=function(G){var Y=X.find(function(Y){return Y.index===G});Y&&tm.setVisibility(G,Y.visibility)},Q=G;Q<=Y;Q++)r(Q);at()}},[e0]),es(function(){var G=tn.current.pageIndex;G>-1&&e2!==e0&&tv.scrollToItem(G,e4)},[e0]),es(function(){var G=tn.current.pageIndex;G>0&&G===eo&&ti.current===eo&&tr.current&&(ti.current=-1,tL(tr.current))},[eD]),ea.useEffect(function(){tv.isSmoothScrolling||null!==eF.current&&eF.current===eD||(eF.current=eD,ey({currentPage:eD,doc:en}))},[eD,tv.isSmoothScrolling]),ea.useEffect(function(){tc.fullScreenMode===Y.FullScreenMode.Entering&&tn.current.scrollMode===Y.ScrollMode.Page&&(to.current=tn.current.pageIndex),tc.fullScreenMode===Y.FullScreenMode.EnteredCompletely&&tn.current.scrollMode===Y.ScrollMode.Page&&er&&(to.current=-1),tc.fullScreenMode===Y.FullScreenMode.EnteredCompletely&&tr.current&&(ta.current=tn.current.pageIndex,tL(tr.current))},[tc.fullScreenMode]),ea.useEffect(function(){if(tc.fullScreenMode!==Y.FullScreenMode.Entering&&tc.fullScreenMode!==Y.FullScreenMode.Exitting&&!tv.isSmoothScrolling){var G=tv.startPage,X=tv.endPage,Q=tv.maxVisbilityIndex,en=tv.virtualItems,er=tc.fullScreenMode===Y.FullScreenMode.Entered||tc.fullScreenMode===Y.FullScreenMode.EnteredCompletely;if(!(er&&Q!==to.current&&to.current>-1||er&&Q!==ta.current&&ta.current>-1)){eN(Q),De(l(l({},tn.current),{pageIndex:Q})),tm.setRange(G,X);for(var i=function(G){var Y=en.find(function(Y){return Y.index===G});Y&&tm.setVisibility(G,Y.visibility)},eo=G;eo<=X;eo++)i(eo);at()}}},[tv.startPage,tv.endPage,tv.isSmoothScrolling,tv.maxVisbilityIndex,tc.fullScreenMode,eW,ej,e3]);var tK=ea.useCallback(function(G){tm.markRendered(G),at()},[td]),at=function(){var G=tm.getHighestPriorityPage();G>-1&&tm.isInRange(G)&&(tm.markRendering(G),ts(G))},it=function(G){var Y=eD-1,X=eD+1;switch(G){case"FirstPage":tS(0);break;case"LastPage":tS(eC-1);break;case"NextPage":X<eC&&tS(X);break;case"PrevPage":Y>=0&&tS(Y)}},tZ=ea.useCallback(function(){var G=tv.virtualItems,X=[];switch(e0){case Y.ViewMode.DualPage:X=ie(G,2);break;case Y.ViewMode.DualPageWithCover:G.length&&(X=0===G[0].index?[[G[0]]].concat(ie(G.slice(1),2)):ie(G,2));break;case Y.ViewMode.SinglePage:default:X=ie(G,1)}var Q=eM&&eM.core?eM.core.pageLabel:"Page {{pageIndex}}",er={attrs:{className:"rpv-core__inner-container","data-testid":"core__inner-container",ref:eR,style:{height:"100%"}},children:ea.createElement(ea.Fragment,null),subSlot:{attrs:{"data-testid":"core__inner-pages",className:d({"rpv-core__inner-pages":!0,"rpv-core__inner-pages--horizontal":eJ===Y.ScrollMode.Horizontal,"rpv-core__inner-pages--rtl":eI,"rpv-core__inner-pages--single":eJ===Y.ScrollMode.Page,"rpv-core__inner-pages--vertical":eJ===Y.ScrollMode.Vertical,"rpv-core__inner-pages--wrapped":eJ===Y.ScrollMode.Wrapped}),ref:eL,style:{height:"100%",position:"relative"}},children:ea.createElement("div",{"data-testid":"core__inner-current-page-".concat(eD),style:Object.assign({"--scale-factor":e3},tv.getContainerStyles())},X.map(function(G){return ea.createElement("div",{className:d({"rpv-core__inner-page-container":!0,"rpv-core__inner-page-container--single":eJ===Y.ScrollMode.Page}),style:tv.getItemContainerStyles(G[0]),key:"".concat(G[0].index,"-").concat(e0)},G.map(function(G){var X=e0===Y.ViewMode.DualPageWithCover&&(0===G.index||eC%2==0&&G.index===eC-1);return ea.createElement("div",{"aria-label":Q.replace("{{pageIndex}}","".concat(G.index+1)),className:d({"rpv-core__inner-page":!0,"rpv-core__inner-page--dual-even":e0===Y.ViewMode.DualPage&&G.index%2==0,"rpv-core__inner-page--dual-odd":e0===Y.ViewMode.DualPage&&G.index%2==1,"rpv-core__inner-page--dual-cover":X,"rpv-core__inner-page--dual-cover-even":e0===Y.ViewMode.DualPageWithCover&&!X&&G.index%2==0,"rpv-core__inner-page--dual-cover-odd":e0===Y.ViewMode.DualPageWithCover&&!X&&G.index%2==1,"rpv-core__inner-page--single":e0===Y.ViewMode.SinglePage&&eJ===Y.ScrollMode.Page}),role:"region",key:"".concat(G.index,"-").concat(e0),style:Object.assign({},tv.getItemStyles(G),th.buildPageStyles({numPages:eC,pageIndex:G.index,scrollMode:eJ,viewMode:e0}))}
1,ea.createElement(rt,{doc:en,measureRef:G.measureRef,outlines:e8,pageIndex:G.index,pageRotation:eq.has(G.index)?eq.get(G.index):0,pageSize:ef[G.index],plugins:ed,renderPage:ep,renderQueueKey:td,rotation:ej,scale:e3,shouldRender:tu===G.index,viewMode:e0,onExecuteNamedAction:it,onJumpFromLinkAnnotation:tb,onJumpToDest:ty,onRenderCompleted:tK,onRotatePage:tx}))}))}))}};return ed.forEach(function(G){G.renderViewer&&(er=G.renderViewer({containerRef:eR,doc:en,pagesContainerRef:eL,pagesRotation:eq,pageSizes:ef,rotation:ej,slot:er,themeContext:ex,jumpToPage:tS,openFile:tP,rotate:tM,rotatePage:tx,switchScrollMode:tI,switchViewMode:tR,zoom:tL}))}),er},[ed,tv]),tq=ea.useCallback(function(G){return ea.createElement("div",l({},G.attrs,{style:G.attrs&&G.attrs.style?G.attrs.style:{}}),G.children,G.subSlot&&tq(G.subSlot))},[]);return tq(tZ())},e8=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.3,1.5,1.7,1.9,2.1,2.4,2.7,3,3.3,3.7,4.1,4.6,5.1,5.7,6.3,7,7.7,8.5,9.4,10],Ot=function(G){var X=G.defaultScale,Q=G.doc,en=G.render,er=G.scrollMode,eo=G.viewMode,ei=ea.useRef(),ec=ea.useState({pageSizes:[],scale:0}),el=ec[0],eu=ec[1];return ea.useLayoutEffect(function(){Promise.all(Array(Q.numPages).fill(0).map(function(G,Y){return new Promise(function(G,X){de(Q,Y).then(function(Y){var X=Y.getViewport({scale:1});G({pageHeight:X.height,pageWidth:X.width,rotation:X.rotation})})})})).then(function(G){var en=ei.current;if(en&&0!==G.length){var ea,ec,el=G[0].pageWidth,es=G[0].pageHeight,ef=en.parentElement,ed=(ef.clientWidth-45)/el,ep=(ef.clientHeight-45)/es,em=ed;switch(er){case Y.ScrollMode.Horizontal:em=Math.min(ed,ep);break;case Y.ScrollMode.Vertical:default:em=ed}eu({pageSizes:G,scale:X?"string"==typeof X?bt(ef,es,el,X,eo,Q.numPages):X:(ea=em,-1===(ec=e8.findIndex(function(G){return G>=ea}))||0===ec?ea:e8[ec-1])})}})},[Q.loadingTask.docId]),0===el.pageSizes.length||0===el.scale?ea.createElement("div",{className:"rpv-core__page-size-calculator","data-testid":"core__page-size-calculating",ref:ei},ea.createElement(x,null)):en(el.pageSizes,el.scale)},Ft=function(){},e6=function(G){function t(Y,X){var Q=G.call(this)||this;return Q.verifyPassword=Y,Q.passwordStatus=X,Q}return c(t,G),t}(Ft),It=function(G){var X=G.passwordStatus,Q=G.renderProtectedView,en=G.verifyPassword,er=G.onDocumentAskPassword,eo=ea.useContext(ew).l10n,ei=ea.useState(""),ec=ei[0],el=ei[1],es=ea.useContext(eu).direction===Y.TextDirection.RightToLeft,f=function(){return en(ec)};return ea.useEffect(function(){er&&er({verifyPassword:en})},[]),Q?Q({passwordStatus:X,verifyPassword:en}):ea.createElement("div",{className:"rpv-core__asking-password-wrapper"},ea.createElement("div",{className:d({"rpv-core__asking-password":!0,"rpv-core__asking-password--rtl":es})},ea.createElement("div",{className:"rpv-core__asking-password-message"},X===Y.PasswordStatus.RequiredPassword&&eo.core.askingPassword.requirePasswordToOpen,X===Y.PasswordStatus.WrongPassword&&eo.core.wrongPassword.tryAgain),ea.createElement("div",{className:"rpv-core__asking-password-body"},ea.createElement("div",{className:d({"rpv-core__asking-password-input":!0,"rpv-core__asking-password-input--ltr":!es,"rpv-core__asking-password-input--rtl":es})},ea.createElement(w,{testId:"core__asking-password-input",type:"password",value:ec,onChange:el,onKeyDown:function(G){"Enter"===G.key&&f()}})),ea.createElement(m,{onClick:f},eo.core.askingPassword.submit))))},e3=function(G){function t(Y){var X=G.call(this)||this;return X.doc=Y,X}return c(t,G),t}(Ft),e9=function(G){function t(Y){var X=G.call(this)||this;return X.error=Y,X}return c(t,G),t}(Ft),e7=function(G){function t(Y){var X=G.call(this)||this;return X.percentages=Y,X}return c(t,G),t}(Ft),Vt=function(G){var X=G.characterMap,Q=G.file,en=G.httpHeaders,er=G.render,eo=G.renderError,ec=G.renderLoader,el=G.renderProtectedView,es=G.transformGetDocumentParams,ef=G.withCredentials,ed=G.onDocumentAskPassword,ep=ea.useContext(eu).direction===Y.TextDirection.RightToLeft,em=ea.useState(new e7(0)),eh=em[0],eg=em[1],ev=ea.useRef(""),eb=T();return ea.useEffect(function(){ev.current="",eg(new e7(0));var G=new ei.PDFWorker({name:"PDFWorker_".concat(Date.now())}),er=Object.assign({httpHeaders:en,withCredentials:ef,worker:G},"string"==typeof Q?{url:Q}:{data:Q},X?{cMapUrl:X.url,cMapPacked:X.isCompressed}:{}),eo=es?es(er):er,ea=ei.getDocument(eo);return ea.onPassword=function(G,X){switch(X){case ei.PasswordResponses.NEED_PASSWORD:eb.current&&eg(new e6(G,Y.PasswordStatus.RequiredPassword));break;case ei.PasswordResponses.INCORRECT_PASSWORD:eb.current&&eg(new e6(G,Y.PasswordStatus.WrongPassword))}},ea.onProgress=function(G){var Y=G.total>0?Math.min(100,100*G.loaded/G.total):100;eb.current&&""===ev.current&&eg(new e7(Y))},ea.promise.then(function(G){ev.current=G.loadingTask.docId,eb.current&&eg(new e3(G))}
1,function(Y){return eb.current&&!G.destroyed&&eg(new e9({message:Y.message||"Cannot load document",name:Y.name}))}),function(){ea.destroy(),G.destroy()}},[Q]),eh instanceof e6?ea.createElement(It,{passwordStatus:eh.passwordStatus,renderProtectedView:el,verifyPassword:eh.verifyPassword,onDocumentAskPassword:ed}):eh instanceof e3?er(eh.doc):eh instanceof e9?eo?eo(eh.error):ea.createElement("div",{className:d({"rpv-core__doc-error":!0,"rpv-core__doc-error--rtl":ep})},ea.createElement("div",{className:"rpv-core__doc-error-text"},eh.error.message)):ea.createElement("div",{"data-testid":"core__doc-loading",className:d({"rpv-core__doc-loading":!0,"rpv-core__doc-loading--rtl":ep})},ec?ec(eh.percentages):ea.createElement(x,null))},zt=function(G,Y){var X=ea.useMemo(function(){return"auto"===G?"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":G},[]),Q=ea.useState(X),en=Q[0],er=Q[1],eo=L(en);return ea.useEffect(function(){if("auto"===G){var Y=window.matchMedia("(prefers-color-scheme: dark)"),n=function(G){er(G.matches?"dark":"light")};return Y.addEventListener("change",n),function(){return Y.removeEventListener("change",n)}}},[]),ea.useEffect(function(){en!==eo&&Y&&Y(en)},[en]),ea.useEffect(function(){G!==en&&er(G)},[G]),{currentTheme:en,setCurrentTheme:er}},Bt=function(G){return{startPage:G.startPage-3,endPage:G.endPage+3}};Y.Button=function(G){var X=G.children,Q=G.testId,en=G.onClick,er=ea.useContext(eu).direction===Y.TextDirection.RightToLeft,eo=Q?{"data-testid":Q}:{};return ea.createElement("button",l({className:d({"rpv-core__button":!0,"rpv-core__button--rtl":er}),type:"button",onClick:en},eo),X)},Y.Icon=v,Y.LazyRender=function(G){var Y=G.attrs,X=G.children,Q=G.testId,en=ea.useState(!1),er=en[0],eo=en[1],ei=Q?l(l({},Y),{"data-testid":Q}):Y,ec=g({once:!0,onVisibilityChanged:function(G){G.isVisible&&eo(!0)}});return ea.createElement("div",l({ref:ec},ei),er&&X)},Y.LocalizationContext=ew,Y.Menu=function(G){var X=G.children,Q=ea.useRef(),en=ea.useRef([]),er=ea.useContext(eu).direction===Y.TextDirection.RightToLeft,i=function(G){if(Q.current)switch(G.key){case"Tab":G.preventDefault();break;case"ArrowDown":G.preventDefault(),c(function(G,Y){return Y+1});break;case"ArrowUp":G.preventDefault(),c(function(G,Y){return Y-1}
1);break;case"End":G.preventDefault(),c(function(G,Y){return G.length-1});break;case"Home":G.preventDefault(),c(function(G,Y){return 0})}},c=function(G){if(Q.current){var Y=en.current,X=Y.findIndex(function(G){return"0"===G.getAttribute("tabindex")}),er=Math.min(Y.length-1,Math.max(0,G(Y,X)));X>=0&&X<=Y.length-1&&Y[X].setAttribute("tabindex","-1"),Y[er].setAttribute("tabindex","0"),Y[er].focus()}};return es(function(){var G=Q.current;if(G){var Y,X=(Y=[],G.querySelectorAll('.rpv-core__menu-item[role="menuitem"]').forEach(function(X){if(X instanceof HTMLElement){var Q=X.parentElement;(Q===G||"none"!==window.getComputedStyle(Q).display)&&Y.push(X)}}),Y);en.current=X}},[]),es(function(){return document.addEventListener("keydown",i),function(){document.removeEventListener("keydown",i)}},[]),ea.createElement("div",{ref:Q,"aria-orientation":"vertical",className:d({"rpv-core__menu":!0,"rpv-core__menu--rtl":er}),role:"menu",tabIndex:0},X)},Y.MenuDivider=function(){return ea.createElement("div",{"aria-orientation":"horizontal",className:"rpv-core__menu-divider",role:"separator"})},Y.MenuItem=function(G){var X=G.checked,Q=void 0!==X&&X,en=G.children,er=G.icon,eo=void 0===er?null:er,ei=G.isDisabled,ec=G.testId,el=G.onClick,es=ea.useContext(eu).direction===Y.TextDirection.RightToLeft,ef=ec?{"data-testid":ec}:{};return ea.createElement("button",l({className:d({"rpv-core__menu-item":!0,"rpv-core__menu-item--disabled":void 0!==ei&&ei,"rpv-core__menu-item--ltr":!es,"rpv-core__menu-item--rtl":es}),role:"menuitem",tabIndex:-1,type:"button",onClick:el},ef),ea.createElement("div",{className:d({"rpv-core__menu-item-icon":!0,"rpv-core__menu-item-icon--ltr":!es,"rpv-core__menu-item-icon--rtl":es})},eo),ea.createElement("div",{className:d({"rpv-core__menu-item-label":!0,"rpv-core__menu-item-label--ltr":!es,"rpv-core__menu-item-label--rtl":es})},en),ea.createElement("div",{className:d({"rpv-core__menu-item-check":!0,"rpv-core__menu-item-check--ltr":!es,"rpv-core__menu-item-check--rtl":es})},Q&&ea.createElement(h,null)))},Y.MinimalButton=function(G){var X=G.ariaLabel,Q=G.ariaKeyShortcuts,en=void 0===Q?"":Q,er=G.children,eo=G.isDisabled,ei=void 0!==eo&&eo,ec=G.isSelected,el=G.testId,es=G.onClick,ef=ea.useContext(eu).direction===Y.TextDirection.RightToLeft,ed=el?{"data-testid":el}:{};return ea.createElement("button",l({"aria-label":void 0===X?"":X},en&&{"aria-keyshortcuts":en},ei&&{"aria-disabled":!0},{className:d({"rpv-core__minimal-button":!0,"rpv-core__minimal-button--disabled":ei,"rpv-core__minimal-button--rtl":ef,"rpv-core__minimal-button--selected":void 0!==ec&&ec}),type:"button",onClick:es},ed),er)},Y.Modal=function(G){var Y=G.ariaControlsSuffix,X=G.closeOnClickOutside,Q=G.closeOnEscape,en=G.content,er=G.isOpened,eo=G.target,ei=Y||"".concat(N());return ea.createElement(U,{target:eo?function(G,Y){return ea.createElement("div",{"aria-expanded":Y?"true":"false","aria-haspopup":"dialog","aria-controls":"rpv-core__modal-body-".concat(ei)},eo(G,Y))}:null,content:function(G){return ea.createElement(W,null,ea.createElement(B,{ariaControlsSuffix:ei,closeOnClickOutside:X,closeOnEscape:Q,onToggle:G},en(G)))},isOpened:void 0!==er&&er})},Y.Popover=function(G){var Y=G.ariaHasPopup,X=G.ariaControlsSuffix,Q=G.closeOnClickOutside,en=G.closeOnEscape,er=G.content,eo=G.lockScroll,ei=void 0===eo||eo,ec=G.offset,el=G.position,eu=G.target,es=q(!1),ef=es.opened,ed=es.toggle,ep=ea.useRef(),em=ea.useMemo(function(){return X||"".concat(N())},[]);return ea.createElement("div",{ref:ep,"aria-expanded":ef?"true":"false","aria-haspopup":void 0===Y?"dialog":Y,"aria-controls":"rpv-core__popver-body-".concat(em)},eu(ed,ef),ef&&ea.createElement(ea.Fragment,null,ei&&ea.createElement(re,{closeOnEscape:en,onClose:ed}),ea.createElement(ne,{ariaControlsSuffix:em,closeOnClickOutside:Q,offset:ec,position:el,targetRef:ep,onClose:ed},er(ed))))},Y.PrimaryButton=m,Y.ProgressBar=function(G){var X=G.progress,Q=ea.useContext(eu).direction===Y.TextDirection.RightToLeft;return ea.createElement("div",{className:d({"rpv-core__progress-bar":!0,"rpv-core__progress-bar--rtl":Q})},ea.createElement("div",{className:"rpv-core__progress-bar-progress",style:{width:"".concat(X,"%")}},X,"%"))},Y.Separator=function(){return ea.createElement("div",{className:"rpv-core__separator"})},Y.Spinner=x,Y.Splitter=function(G){var X=G.constrain,Q=ea.useContext(eu).direction===Y.TextDirection.RightToLeft,en=ea.useRef(),er=ea.useRef(),eo=ea.useRef(),ei=ea.useRef(0),ec=ea.useRef(0),el=ea.useRef(0),es=ea.useRef(0),ef={capture:!0},f=function(G){var Y=en.current,ea=er.current,ec=eo.current;
1if(Y&&ea&&ec){var eu=es.current,ef=G.clientX-ei.current,ed=el.current+(Q?-ef:ef),ep=Y.parentElement.getBoundingClientRect().width,em=100*ed/ep;if(Y.classList.add("rpv-core__splitter--resizing"),X){var eh=ep-ed-eu;if(!X({firstHalfPercentage:em,firstHalfSize:ed,secondHalfPercentage:100*eh/ep,secondHalfSize:eh}))return}ea.style.width="".concat(em,"%"),document.body.classList.add("rpv-core__splitter-body--resizing"),ea.classList.add("rpv-core__splitter-sibling--resizing"),ec.classList.add("rpv-core__splitter-sibling--resizing")}},g=function(G){var Y=en.current,X=er.current,Q=eo.current;Y&&X&&Q&&(document.body.classList.remove("rpv-core__splitter-body--resizing"),Y.classList.remove("rpv-core__splitter--resizing"),X.classList.remove("rpv-core__splitter-sibling--resizing"),Q.classList.remove("rpv-core__splitter-sibling--resizing"),document.removeEventListener("mousemove",f,ef),document.removeEventListener("mouseup",g,ef))};return ea.useEffect(function(){var G=en.current;G&&(es.current=G.getBoundingClientRect().width,er.current=G.previousElementSibling,eo.current=G.nextElementSibling)},[]),ea.createElement("div",{ref:en,className:"rpv-core__splitter",onMouseDown:function(G){var Y=er.current;Y&&(ei.current=G.clientX,ec.current=G.clientY,el.current=Y.getBoundingClientRect().width,document.addEventListener("mousemove",f,ef),document.addEventListener("mouseup",g,ef))}})},Y.TextBox=w,Y.ThemeContext=eu,Y.Tooltip=function(G){var X=G.ariaControlsSuffix,Q=G.content,en=G.offset,er=G.position,eo=G.target,ei=q(!1),ec=ei.opened,el=ei.toggle,eu=ea.useRef(),es=ea.useRef(),ef=ea.useMemo(function(){return X||"".concat(N())},[]);z(function(){eu.current&&document.activeElement&&eu.current.contains(document.activeElement)&&g()});var f=function(){el(Y.ToggleStatus.Open)},g=function(){el(Y.ToggleStatus.Close)};return ea.createElement(ea.Fragment,null,ea.createElement("div",{ref:eu,"aria-describedby":"rpv-core__tooltip-body-".concat(ef),onBlur:function(G){G.relatedTarget instanceof HTMLElement&&G.currentTarget.parentElement&&G.currentTarget.parentElement.contains(G.relatedTarget)?es.current&&(es.current.style.display="none"):g()},onFocus:f,onMouseEnter:f,onMouseLeave:g},eo),ec&&ea.createElement(oe,{ariaControlsSuffix:ef,contentRef:es,offset:en,position:er,targetRef:eu},Q()))},Y.Viewer=function(G){var X=G.characterMap,Q=G.defaultScale,en=G.enableSmoothScroll,er=void 0===en||en,eo=G.fileUrl,ei=G.httpHeaders,ec=G.initialPage,el=void 0===ec?0:ec,es=G.pageLayout,ef=G.initialRotation,ed=void 0===ef?0:ef,ep=G.localization,em=G.plugins,eh=void 0===em?[]:em,eg=G.renderError,ev=G.renderLoader,eb=G.renderPage,eE=G.renderProtectedView,e_=G.scrollMode,ek=void 0===e_?Y.ScrollMode.Vertical:e_,eS=G.setRenderRange,eC=void 0===eS?Bt:eS,eP=G.transformGetDocumentParams,eM=G.theme,ex=void 0===eM?{direction:Y.TextDirection.LeftToRight,theme:"light"}:eM,eI=G.viewMode,eR=void 0===eI?Y.ViewMode.SinglePage:eI,eL=G.withCredentials,eT=G.onDocumentAskPassword,eB=G.onDocumentLoad,eO=void 0===eB?function(){}:eB,eD=G.onPageChange,eN=void 0===eD?function(){}:eD,eF=G.onRotate,ez=void 0===eF?function(){}:eF,eA=G.onRotatePage,ej=void 0===eA?function(){}:eA,eV=G.onSwitchTheme,eH=void 0===eV?function(){}:eV,eU=G.onZoom,eW=void 0===eU?function(){}:eU,eK=ea.useState({data:eo,name:"string"==typeof eo?eo:"",shouldLoad:!1}),eZ=eK[0],eq=eK[1],$=function(G,Y){eq({data:Y,name:G,shouldLoad:!0})},eG=ea.useState(!1),e$=eG[0],eJ=eG[1],eY=L(eZ);ea.useEffect(function(){var G,Y,X;G=eY.data,X=typeof eo,"string"==(Y=typeof G)&&"string"===X&&G===eo||"object"===Y&&"object"===X&&G.length===eo.length&&G.every(function(G,Y){return G===eo[Y]})||eq({data:eo,name:"string"==typeof eo?eo:"",shouldLoad:e$})},[eo,e$]);var eX=g({onVisibilityChanged:function(G){eJ(G.isVisible),G.isVisible&&eq(function(G){return Object.assign({},G,{shouldLoad:!0})})}}),eQ="string"==typeof ex?{direction:Y.TextDirection.LeftToRight,theme:ex}:ex,e0=ea.useState(ep||ey),e1=e0[0],e2=e0[1],e5=Object.assign({},{direction:eQ.direction},zt(eQ.theme||"light",eH));return ea.useEffect(function(){ep&&e2(ep)}
1,[ep]),ea.createElement(ew.Provider,{value:{l10n:e1,setL10n:e2}},ea.createElement(eu.Provider,{value:e5},ea.createElement("div",{ref:eX,className:"rpv-core__viewer rpv-core__viewer--".concat(e5.currentTheme),"data-testid":"core__viewer",style:{height:"100%",width:"100%"}},eZ.shouldLoad&&ea.createElement(Vt,{characterMap:X,file:eZ.data,httpHeaders:void 0===ei?{}:ei,render:function(G){return ea.createElement(Ot,{defaultScale:Q,doc:G,render:function(X,en){return ea.createElement(Tt,{currentFile:{data:eZ.data,name:eZ.name},defaultScale:Q,doc:G,enableSmoothScroll:er,initialPage:el,initialRotation:ed,initialScale:en,pageLayout:es,pageSizes:X,plugins:eh,renderPage:eb,scrollMode:ek,setRenderRange:eC,viewMode:eR,viewerState:{file:eZ,fullScreenMode:Y.FullScreenMode.Normal,pageIndex:-1,pageHeight:X[0].pageHeight,pageWidth:X[0].pageWidth,pagesRotation:new Map,rotation:ed,scale:en,scrollMode:ek,viewMode:eR},onDocumentLoad:eO,onOpenFile:$,onPageChange:eN,onRotate:ez,onRotatePage:ej,onZoom:eW})},scrollMode:ek,viewMode:eR})},renderError:eg,renderLoader:ev,renderProtectedView:eE,transformGetDocumentParams:eP,withCredentials:void 0!==eL&&eL,onDocumentAskPassword:eT}))))},Y.Worker=function(G){var Y=G.children,X=G.workerUrl;return ei.GlobalWorkerOptions.workerSrc=X,ea.createElement(ea.Fragment,null,Y)},Y.chunk=ie,Y.classNames=d,Y.createStore=function(G){var Y=G||{},X={},r=function(G,Q){var en;Y=l(l({},Y),((en={})[G]=Q,en)),(X[G]||[]).forEach(function(X){return X(Y[G])})},o=function(G){return Y[G]};return{subscribe:function(G,Y){X[G]=(X[G]||[]).concat(Y)},unsubscribe:function(G,Y){X[G]=(X[G]||[]).filter(function(G){return G!==Y})},update:function(G,Y){r(G,Y)},updateCurrentValue:function(G,Y){var X=o(G);void 0!==X&&r(G,Y(X))},get:function(G){return o(G)}}},Y.getDestination=fe,Y.getPage=de,Y.isFullScreenEnabled=R,Y.isMac=function(){return"undefined"!=typeof window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)},Y.useDebounceCallback=C,Y.useIntersectionObserver=g,Y.useIsMounted=T,Y.useIsomorphicLayoutEffect=es,Y.usePrevious=L,Y.useRenderQueue=D},86096:function(G,Y,X){"use strict";G.exports=X(49048)},97486:function(G,Y,X){"use strict";var Q,en=X(86096),er=X(73884),eo=X(67306),ea=X(52199),ei=X(11261),ec=X(50566),el=(Q=Object.create(null),er&&Object.keys(er).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(er,G);Object.defineProperty(Q,G,Y.get?Y:{enumerable:!0,get:function(){return er[G]}})}}),Q.default=er,Object.freeze(Q)),c=function(){return el.createElement(en.Icon,{size:16},el.createElement("path",{d:"M11.5,1.5h11c0.552,0,1,0.448,1,1v20c0,0.552-0.448,1-1,1h-21c-0.552,0-1-0.448-1-1v-20c0-0.552,0.448-1,1-1h3\n M11.5,10.5c0,0.55-0.3,0.661-0.659,0.248L8,7.5l-2.844,3.246c-0.363,0.414-0.659,0.3-0.659-0.247v-9c0-0.552,0.448-1,1-1h5\n c0.552,0,1,0.448,1,1L11.5,10.5z\n M14.5,6.499h6\n M14.5,10.499h6\n M3.5,14.499h17\n M3.5,18.499h16.497"}))},i=function(){return(i=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)},s=function(){return el.createElement(en.Icon,{size:16},el.createElement("path",{d:"M7.618,15.345l8.666-8.666c0.78-0.812,2.071-0.838,2.883-0.058s0.838,2.071,0.058,2.883\n c-0.019,0.02-0.038,0.039-0.058,0.058L7.461,21.305c-1.593,1.593-4.175,1.592-5.767,0s-1.592-4.175,0-5.767c0,0,0,0,0,0\n L13.928,3.305c2.189-2.19,5.739-2.19,7.929-0.001s2.19,5.739,0,7.929l0,0L13.192,19.9"}))},d=function(){return el.createElement(en.Icon,{size:16},el.createElement("path",{d:"M10.5,9.5c0,0.552-0.448,1-1,1h-8c-0.552,0-1-0.448-1-1v-8c0-0.552,0.448-1,1-1h8c0.552,0,1,0.448,1,1V9.5z\n M23.5,9.5c0,0.552-0.448,1-1,1h-8c-0.552,0-1-0.448-1-1v-8c0-0.552,0.448-1,1-1h8c0.552,0,1,0.448,1,1V9.5z\n M10.5,22.5 c0,0.552-0.448,1-1,1h-8c-0.552,0-1-0.448-1-1v-8c0-0.552,0.448-1,1-1h8c0.552,0,1,0.448,1,1V22.5z\n M23.5,22.5c0,0.552-0.448,1-1,1 h-8c-0.552,0-1-0.448-1-1v-8c0-0.552,0.448-1,1-1h8c0.552,0,1,0.448,1,1V22.5z"}))},eu={left:8,top:0},es={left:-8,top:0},m=function(G){var Y=G.attachmentTabContent,X=G.bookmarkTabContent,Q=G.store,er=G.thumbnailTabContent,eo=G.tabs,ea=el.useRef(),ei=el.useContext(en.LocalizationContext).l10n,ec=el.useState(Q.get("isCurrentTabOpened")||!1),ef=ec[0],ed=ec[1],ep=el.useState(Math.max(Q.get("currentTab")||0,0)),em=ep[0],eh=ep[1],eg=el.useContext(en.ThemeContext).direction===en.TextDirection.RightToLeft,ev=[{content:er,icon:el.createElement(d,null),title:ei&&ei.defaultLayout?ei.defaultLayout.thumbnail:"Thumbn
1ail"},{content:X,icon:el.createElement(c,null),title:ei&&ei.defaultLayout?ei.defaultLayout.bookmark:"Bookmark"},{content:Y,icon:el.createElement(s,null),title:ei&&ei.defaultLayout?ei.defaultLayout.attachment:"Attachment"}],eb=eo?eo(ev):ev,k=function(G){G>=0&&G<=eb.length-1&&(Q.update("isCurrentTabOpened",!0),eh(G))},C=function(G){ed(G)};return el.useEffect(function(){return Q.subscribe("currentTab",k),Q.subscribe("isCurrentTabOpened",C),function(){Q.unsubscribe("currentTab",k),Q.unsubscribe("isCurrentTabOpened",C)}},[]),0===eb.length?el.createElement(el.Fragment,null):el.createElement(el.Fragment,null,el.createElement("div",{"data-testid":"default-layout__sidebar",className:en.classNames({"rpv-default-layout__sidebar":!0,"rpv-default-layout__sidebar--opened":ef,"rpv-default-layout__sidebar--ltr":!eg,"rpv-default-layout__sidebar--rtl":eg}),ref:ea},el.createElement("div",{className:"rpv-default-layout__sidebar-tabs"},el.createElement("div",{className:"rpv-default-layout__sidebar-headers",role:"tablist","aria-orientation":"vertical"},eb.map(function(G,Y){return el.createElement("div",{"aria-controls":"rpv-default-layout__sidebar-content","aria-selected":em===Y,key:Y,className:"rpv-default-layout__sidebar-header",id:"rpv-default-layout__sidebar-tab-".concat(Y),role:"tab"},el.createElement(en.Tooltip,{ariaControlsSuffix:"default-layout-sidebar-tab-".concat(Y),position:eg?en.Position.LeftCenter:en.Position.RightCenter,target:el.createElement(en.MinimalButton,{ariaLabel:G.title,isSelected:em===Y,onClick:function(){return function(G){if(em===G){Q.update("isCurrentTabOpened",!Q.get("isCurrentTabOpened"));var Y=ea.current;Y&&Y.style.width&&Y.style.removeProperty("width")}else Q.update("currentTab",G)}(Y)}},G.icon),content:function(){return G.title},offset:eg?es:eu}))})),el.createElement("div",{"aria-labelledby":"rpv-default-layout__sidebar-tab-".concat(em),id:"rpv-default-layout__sidebar-content",className:en.classNames({"rpv-default-layout__sidebar-content":!0,"rpv-default-layout__sidebar-content--opened":ef,"rpv-default-layout__sidebar-content--ltr":!eg,"rpv-default-layout__sidebar-content--rtl":eg}),role:"tabpanel",tabIndex:-1},eb[em].content))),ef&&el.createElement(en.Splitter,{constrain:function(G){return G.firstHalfPercentage>=20&&G.firstHalfPercentage<=80}}))};Y.defaultLayoutPlugin=function(G){var Y=el.useMemo(function(){return en.createStore({isCurrentTabOpened:!1,currentTab:0})},[]),X=eo.attachmentPlugin(),Q=ea.bookmarkPlugin(),er=ei.thumbnailPlugin(G?G.thumbnailPlugin:{}),eu=ec.toolbarPlugin(G?G.toolbarPlugin:{}),es=X.Attachments,ef=Q.Bookmarks,ed=er.Thumbnails,ep=eu.Toolbar,em=G?G.sidebarTabs:function(G){return G},eh=[X,Q,er,eu];return{attachmentPluginInstance:X,bookmarkPluginInstance:Q,thumbnailPluginInstance:er,toolbarPluginInstance:eu,activateTab:function(G){Y.update("currentTab",G)},toggleTab:function(G){var X=Y.get("currentTab");Y.update("isCurrentTabOpened",!Y.get("isCurrentTabOpened")),X!==G&&Y.update("currentTab",G)},install:function(G){eh.forEach(function(Y){Y.install&&Y.install(G)})},renderPageLayer:function(G){return el.createElement(el.Fragment,null,eh.map(function(Y,X){return Y.renderPageLayer?el.createElement(el.Fragment,{key:X},Y.renderPageLayer(G)):el.createElement(el.Fragment,{key:X},el.createElement(el.Fragment,null))}))},renderViewer:function(X){var Q=X.slot;eh.forEach(function(G){G.renderViewer&&(Q=G.renderViewer(i(i({},X),{slot:Q})))});var er=Q.subSlot&&Q.subSlot.attrs?{className:Q.subSlot.attrs.className,"data-testid":Q.subSlot.attrs["data-testid"],ref:Q.subSlot.attrs.ref,style:Q.subSlot.attrs.style}:{};return Q.children=el.createElement("div",{className:"rpv-default-layout__container"},el.createElement("div",{"data-testid":"default-layout__main",className:en.classNames({"rpv-default-layout__main":!0,"rpv-default-layout__main--rtl":X.themeContext.direction===en.TextDirection.RightToLeft})},el.createElement(m,{attachmentTabContent:el.createElement(es,null),bookmarkTabContent:el.createElement(ef,null),store:Y,thumbnailTabContent:el.createElement(ed,null),tabs:em}),el.createElement("div",{className:"rpv-default-layout__body","data-testid":"default-layout__body"},el.createElement("div",{className:"rpv-default-layout__toolbar"},G&&G.renderToolbar?G.renderToolbar(ep):el.createElement(ep,null)),el.createElement("div",i({}
1,er),Q.subSlot.children))),Q.children),Q.subSlot.attrs={},Q.subSlot.children=el.createElement(el.Fragment,null),Q},uninstall:function(G){eh.forEach(function(Y){Y.uninstall&&Y.uninstall(G)})},onDocumentLoad:function(X){eh.forEach(function(G){G.onDocumentLoad&&G.onDocumentLoad(X)}),G&&G.setInitialTab&&G.setInitialTab(X.doc).then(function(G){Y.update("currentTab",G),Y.update("isCurrentTabOpened",!0)})},onAnnotationLayerRender:function(G){eh.forEach(function(Y){Y.onAnnotationLayerRender&&Y.onAnnotationLayerRender(G)})},onTextLayerRender:function(G){eh.forEach(function(Y){Y.onTextLayerRender&&Y.onTextLayerRender(G)})},onViewerStateChange:function(G){var Y=G;return eh.forEach(function(G){G.onViewerStateChange&&(Y=G.onViewerStateChange(Y))}),Y}}}},4917:function(G,Y,X){"use strict";G.exports=X(97486)},59734:function(G,Y,X){"use strict";var Q,en,er=X(86096),eo=(Q=X(73884),en=Object.create(null),Q&&Object.keys(Q).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(Q,G);Object.defineProperty(en,G,Y.get?Y:{enumerable:!0,get:function(){return Q[G]}})}}),en.default=Q,Object.freeze(en)),r=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M11.5 23.499L11.5 14.499"}),eo.createElement("path",{d:"M7.5 18.499L11.5 14.499 15.5 18.499"}),eo.createElement("path",{d:"M11.5 1.499L11.5 10.499"}),eo.createElement("path",{d:"M7.5 6.499L11.5 10.499 15.5 6.499"}),eo.createElement("path",{d:"M20.5 12.499L1.5 12.499"}))},l=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M0.5 12L23.5 12"}),eo.createElement("path",{d:"M11.5 1L11.5 23"}),eo.createElement("path",{d:"M8.5 4L11.5 1 14.5 4"}),eo.createElement("path",{d:"M20.5 9L23.5 12 20.5 15"}),eo.createElement("path",{d:"M3.5 15L0.5 12 3.5 9"}),eo.createElement("path",{d:"M14.5 20L11.5 23 8.5 20"}))},c=function(){return(c=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)},ea={left:0,top:8},o=function(G){var Y=G.enableShortcuts,X=G.onClick,Q=eo.useContext(er.LocalizationContext).l10n,en=Q&&Q.fullScreen?Q.fullScreen.enterFullScreen:"Full screen",ei=Y?er.isMac()?"Meta+Ctrl+F":"F11":"";return eo.createElement(er.Tooltip,{ariaControlsSuffix:"full-screen-enter",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaKeyShortcuts:ei,ariaLabel:en,isDisabled:!er.isFullScreenEnabled(),testId:"full-screen__enter-button",onClick:X},eo.createElement(l,null)),content:function(){return en},offset:ea})},ei={left:0,top:8},a=function(G){var Y=G.onClick,X=eo.useContext(er.LocalizationContext).l10n,Q=X&&X.fullScreen?X.fullScreen.exitFullScreen:"Exit full screen";return eo.createElement(er.Tooltip,{ariaControlsSuffix:"full-screen-exit",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaKeyShortcuts:"Esc",ariaLabel:Q,testId:"full-screen__exit-button-with-tooltip",onClick:Y},eo.createElement(r,null)),content:function(){return Q},offset:ei})},f=function(G,Y){var X=eo.useState(Y.get("fullScreenMode")),Q=X[0],en=X[1],ea=eo.useCallback(function(G){en(G)},[]);return eo.useEffect(function(){return Y.subscribe("fullScreenMode",ea),function(){Y.unsubscribe("fullScreenMode",ea)}},[]),{enterFullScreen:function(){var X=Y.get("getPagesContainer");if(X){var Q=G(X());Y.get("enterFullScreenMode")(Q)}},exitFullScreen:function(){Y.get("exitFullScreenMode")()},isFullScreen:Q===er.FullScreenMode.Entering||Q===er.FullScreenMode.EnteredCompletely}},s=function(G){var Y=G.children,X=G.enableShortcuts,Q=f(G.getFullScreenTarget,G.store),en=Q.enterFullScreen,er=Q.exitFullScreen,ea=Q.isFullScreen;return(Y||function(G){return ea?eo.createElement(a,{onClick:G.onClick}):eo.createElement(o,{enableShortcuts:X,onClick:G.onClick})})({onClick:ea?er:en})},S=function(G){var Y=G.onClick,X=eo.useContext(er.LocalizationContext).l10n,Q=X&&X.fullScreen?X.fullScreen.enterFullScreen:"Full screen";return eo.createElement(er.MenuItem,{icon:eo.createElement(l,null),isDisabled:!er.isFullScreenEnabled(),testId:"full-screen__enter-menu",onClick:Y},Q)},d=function(G){var Y=G.onClick,X=eo.useContext(er.LocalizationContext).l10n,Q=eo.useContext(er.ThemeContext).direction===er.TextDirection.RightToLeft,en=X&&X.fullScreen?X.fullScreen.exitFullScreen:"Exit full screen";return eo.createElement("div",{className:er.classNames({"rpv-full-screen__exit-button":!0,"rpv-full-screen__exit-button--ltr":!Q,"rpv-full-screen__exit-button--rtl":Q})},eo.createElement(er.MinimalButton,{ariaLabel:en,testId:"full-screen__exit-button",onClick:Y}
1,eo.createElement(r,null)))},m=function(G){var Y=G.children,X=f(G.getFullScreenTarget,G.store),Q=X.enterFullScreen,en=X.exitFullScreen,er=X.isFullScreen;return er&&(Y||function(G){return eo.createElement(d,{onClick:G.onClick})})({onClick:er?en:Q})},E=function(G){var Y=G.store,X=G.onEnterFullScreen,Q=G.onExitFullScreen,en=eo.useState(Y.get("fullScreenMode")),ea=en[0],ei=en[1],ec=eo.useCallback(function(G){ei(G)},[]);return eo.useEffect(function(){switch(ea){case er.FullScreenMode.EnteredCompletely:X(Y.get("zoom"));break;case er.FullScreenMode.Exited:Q(Y.get("zoom"))}},[ea]),eo.useEffect(function(){return Y.subscribe("fullScreenMode",ec),function(){Y.unsubscribe("fullScreenMode",ec)}},[]),(ea===er.FullScreenMode.Entering||ea===er.FullScreenMode.Entered)&&eo.createElement("div",{className:"rpv-full-screen__overlay"},eo.createElement(er.Spinner,null))},F=function(G){var Y=G.containerRef,X=f(G.getFullScreenTarget,G.store).enterFullScreen,o=function(G){if(!G.shiftKey&&!G.altKey&&(er.isMac()?G.metaKey&&G.ctrlKey&&"f"===G.key:"F11"===G.key)){var Q=Y.current;Q&&document.activeElement&&Q.contains(document.activeElement)&&(G.preventDefault(),X())}};return eo.useEffect(function(){if(Y.current)return document.addEventListener("keydown",o),function(){document.removeEventListener("keydown",o)}},[Y.current]),eo.createElement(eo.Fragment,null)};Y.ExitFullScreenIcon=r,Y.FullScreenIcon=l,Y.fullScreenPlugin=function(G){var Y=(null==G?void 0:G.getFullScreenTarget)||function(G){return G},X=eo.useMemo(function(){return Object.assign({},{enableShortcuts:!0,onEnterFullScreen:function(){},onExitFullScreen:function(){}},G)},[]),Q=eo.useMemo(function(){return er.createStore({enterFullScreenMode:function(){},exitFullScreenMode:function(){},fullScreenMode:er.FullScreenMode.Normal,zoom:function(){}})},[]),i=function(G){return eo.createElement(s,c({},G,{enableShortcuts:X.enableShortcuts,getFullScreenTarget:Y,store:Q}))},a=function(){return eo.createElement(m,{getFullScreenTarget:Y,store:Q},null==G?void 0:G.renderExitFullScreenButton)};return{install:function(G){Q.update("enterFullScreenMode",G.enterFullScreenMode),Q.update("exitFullScreenMode",G.exitFullScreenMode),Q.update("getPagesContainer",G.getPagesContainer),Q.update("zoom",G.zoom)},onViewerStateChange:function(G){return Q.update("fullScreenMode",G.fullScreenMode),G},renderViewer:function(G){var en=G.slot;return en.subSlot&&(en.subSlot.children=eo.createElement(eo.Fragment,null,X.enableShortcuts&&eo.createElement(F,{containerRef:G.containerRef,getFullScreenTarget:Y,store:Q}),eo.createElement(E,{store:Q,onEnterFullScreen:X.onEnterFullScreen,onExitFullScreen:X.onExitFullScreen}),eo.createElement(a,null),en.subSlot.children)),en},EnterFullScreen:i,EnterFullScreenButton:function(){return eo.createElement(i,null,function(G){return eo.createElement(o,c({enableShortcuts:X.enableShortcuts},G))})},EnterFullScreenMenuItem:function(G){return eo.createElement(i,null,function(Y){return eo.createElement(S,{onClick:function(){Y.onClick(),G.onClick()}})})}}}},83145:function(G,Y,X){"use strict";G.exports=X(59734)},56008:function(G,Y,X){"use strict";var Q,en,er=X(86096),eo=(Q=X(73884),en=Object.create(null),Q&&Object.keys(Q).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(Q,G);Object.defineProperty(en,G,Y.get?Y:{enumerable:!0,get:function(){return Q[G]}})}}),en.default=Q,Object.freeze(en)),o=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M5.5,11.5c-.275,0-.341.159-.146.354l6.292,6.293a.5.5,0,0,0,.709,0l6.311-6.275c.2-.193.13-.353-.145-.355L15.5,11.5V1.5a1,1,0,0,0-1-1h-5a1,1,0,0,0-1,1V11a.5.5,0,0,1-.5.5Z"}),eo.createElement("path",{d:"M23.5,18.5v4a1,1,0,0,1-1,1H1.5a1,1,0,0,1-1-1v-4"}))},r=function(){return(r=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)},ea={left:0,top:8},a=function(G){var Y=G.onClick,X=eo.useContext(er.LocalizationContext).l10n,Q=X&&X.download?X.download.download:"Download";
1return eo.createElement(er.Tooltip,{ariaControlsSuffix:"get-file",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaLabel:Q,testId:"get-file__download-button",onClick:Y},eo.createElement(o,null)),content:function(){return Q},offset:ea})},c=function(G,Y){var X=document.createElement("a");X.style.display="none",X.href=G,X.setAttribute("download",Y),document.body.appendChild(X),X.click(),document.body.removeChild(X)},l=function(G,Y,X){var Q=URL.createObjectURL(new Blob([G],{type:X}));c(Q,Y),Q&&URL.revokeObjectURL(Q)},u=function(G,Y){G.getData().then(function(G){/iphone|ipod|ipad/i.test(navigator.userAgent)&&!/CriOS/i.test(navigator.userAgent)?l(G,Y,"application/octet-stream"):/iphone|ipod|ipad/i.test(navigator.userAgent)&&/CriOS/i.test(navigator.userAgent)?c("data:application/pdf;base64,".concat(btoa(Array(G.length).fill("").map(function(Y,X){return String.fromCharCode(G[X])}).join(""))),Y):l(G,Y,"application/pdf")})},f=function(G){var Y=G.children,X=G.fileNameGenerator,Q=G.store,en=eo.useState(Q.get("file")),er=en[0],ea=en[1],ei=eo.useState(Q.get("doc")),ec=ei[0],el=ei[1],p=function(G){el(G)},m=function(G){ea(G)};return eo.useEffect(function(){return Q.subscribe("doc",p),Q.subscribe("file",m),function(){Q.subscribe("doc",p),Q.unsubscribe("file",m)}},[]),(Y||function(G){return eo.createElement(a,{onClick:G.onClick})})({onClick:function(){ec&&er&&u(ec,X(er))}})},d=function(G){var Y=G.onClick,X=eo.useContext(er.LocalizationContext).l10n,Q=X&&X.download?X.download.download:"Download";return eo.createElement(er.MenuItem,{icon:eo.createElement(o,null),testId:"get-file__download-menu",onClick:Y},Q)};Y.DownloadIcon=o,Y.getFilePlugin=function(G){var Y=eo.useMemo(function(){return er.createStore({})},[]),i=function(G){var Y,X;return G.name?(X=(Y=G.name).split("/").pop())?X.split("#")[0].split("?")[0]:Y:"document.pdf"},c=function(X){return eo.createElement(f,r({},X,{fileNameGenerator:G&&G.fileNameGenerator||i,store:Y}))};return{onDocumentLoad:function(G){Y.update("doc",G.doc),Y.update("file",G.file)},Download:c,DownloadButton:function(){return eo.createElement(c,null,function(G){return eo.createElement(a,r({},G))})},DownloadMenuItem:function(G){return eo.createElement(c,null,function(Y){return eo.createElement(d,{onClick:function(){Y.onClick(),G.onClick()}})})}}}},77410:function(G,Y,X){"use strict";G.exports=X(56008)},21162:function(G,Y,X){"use strict";var Q,en,er=X(86096),eo=(Q=X(73884),en=Object.create(null),Q&&Object.keys(Q).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(Q,G);Object.defineProperty(en,G,Y.get?Y:{enumerable:!0,get:function(){return Q[G]}})}}),en.default=Q,Object.freeze(en)),r=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M18.5,7.5c.275,0,.341-.159.146-.354L12.354.854a.5.5,0,0,0-.708,0L5.354,7.147c-.2.195-.129.354.146.354h3v10a1,1,0,0,0,1,1h5a1,1,0,0,0,1-1V7.5Z"}),eo.createElement("path",{d:"M23.5,18.5v4a1,1,0,0,1-1,1H1.5a1,1,0,0,1-1-1v-4"}))},o=function(){return(o=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)},i=function(G){var Y=eo.useRef(),r=function(){var X=Y.current;X&&(X.click(),G.get("triggerOpenFile")&&G.update("triggerOpenFile",!1))},o=function(G){G&&r()};return eo.useEffect(function(){return G.subscribe("triggerOpenFile",o),function(){G.unsubscribe("triggerOpenFile",o)}},[]),{inputRef:Y,openFile:r}},ea={left:0,top:8},u=function(G){var Y=G.enableShortcuts,X=G.store,Q=G.onClick,en=eo.useContext(er.LocalizationContext).l10n,ei=en&&en.open?en.open.openFile:"Open file",ec=i(X),el=ec.inputRef,eu=ec.openFile,es=Y?er.isMac()?"Meta+O":"Ctrl+O":"";return eo.createElement(er.Tooltip,{ariaControlsSuffix:"open",position:er.Position.BottomCenter,target:eo.createElement("div",{className:"rpv-open__input-wrapper"},eo.createElement("input",{accept:".pdf",ref:el,className:"rpv-open__input",multiple:!1,tabIndex:-1,title:"",type:"file",onChange:Q}),eo.createElement(er.MinimalButton,{ariaKeyShortcuts:es,ariaLabel:ei,testId:"open__button",onClick:eu}
1,eo.createElement(r,null))),content:function(){return ei},offset:ea})},a=function(G){var Y=G.children,X=G.enableShortcuts,Q=G.store;return(Y||function(G){return eo.createElement(u,{enableShortcuts:X,store:Q,onClick:G.onClick})})({onClick:function(G){var Y=G.target.files;if(Y&&Y.length){var X=Q.get("openFile");X&&X(Y[0])}}})},l=function(G){var Y=G.store,X=G.onClick,Q=eo.useContext(er.LocalizationContext).l10n,en=Q&&Q.open?Q.open.openFile:"Open file",ea=i(Y),ei=ea.inputRef,ec=ea.openFile;return eo.createElement(er.MenuItem,{icon:eo.createElement(r,null),testId:"open__menu",onClick:ec},eo.createElement("div",{className:"rpv-open__input-wrapper"},eo.createElement("input",{accept:".pdf",ref:ei,className:"rpv-open__input",multiple:!1,tabIndex:-1,title:"",type:"file",onChange:X}),en))},p=function(G){var Y=G.containerRef,X=G.store,i=function(G){if(!G.shiftKey&&!G.altKey&&"o"===G.key&&(er.isMac()?G.metaKey:G.ctrlKey)){var Q=Y.current;Q&&document.activeElement&&Q.contains(document.activeElement)&&(G.preventDefault(),X.update("triggerOpenFile",!0))}};return eo.useEffect(function(){if(Y.current)return document.addEventListener("keydown",i),function(){document.removeEventListener("keydown",i)}},[Y.current]),eo.createElement(eo.Fragment,null)};Y.OpenFileIcon=r,Y.openPlugin=function(G){var Y=eo.useMemo(function(){return Object.assign({},{enableShortcuts:!0},G)},[]),X=eo.useMemo(function(){return er.createStore({})},[]),c=function(G){return eo.createElement(a,o({enableShortcuts:Y.enableShortcuts},G,{store:X}))};return{install:function(G){X.update("openFile",G.openFile)},renderViewer:function(G){var Q=G.slot,en={children:eo.createElement(eo.Fragment,null,Y.enableShortcuts&&eo.createElement(p,{containerRef:G.containerRef,store:X}),Q.children)};return o(o({},Q),en)},Open:c,OpenButton:function(){return eo.createElement(c,null)},OpenMenuItem:function(){return eo.createElement(c,null,function(G){return eo.createElement(l,{store:X,onClick:G.onClick})})}}}},20887:function(G,Y,X){"use strict";G.exports=X(21162)},1738:function(G,Y,X){"use strict";var Q,en,er=X(86096),eo=(Q=X(73884),en=Object.create(null),Q&&Object.keys(Q).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(Q,G);Object.defineProperty(en,G,Y.get?Y:{enumerable:!0,get:function(){return Q[G]}})}}),en.default=Q,Object.freeze(en)),a=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M2.32,2.966h19.452c0.552,0.001,1,0.449,0.999,1.001c0,0.182-0.05,0.36-0.144,0.516L12.9,20.552\n c-0.286,0.472-0.901,0.624-1.373,0.338c-0.138-0.084-0.254-0.2-0.338-0.338L1.465,4.483C1.179,4.01,1.331,3.396,1.804,3.11\n C1.96,3.016,2.138,2.966,2.32,2.966z"}))},r=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M0.541,5.627L11.666,18.2c0.183,0.207,0.499,0.226,0.706,0.043c0.015-0.014,0.03-0.028,0.043-0.043\n L23.541,5.627"}))},o=function(){return(o=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)},i=function(G){var Y=eo.useState(G.get("currentPage")||0),X=Y[0],Q=Y[1],i=function(G){Q(G)};return er.useIsomorphicLayoutEffect(function(){return G.subscribe("currentPage",i),function(){G.unsubscribe("currentPage",i)}},[]),{currentPage:X}},u=function(G){var Y=eo.useState(G.get("numberOfPages")||0),X=Y[0],Q=Y[1],o=function(G){Q(G)};return eo.useEffect(function(){return G.subscribe("numberOfPages",o),function(){G.unsubscribe("numberOfPages",o)}},[]),{numberOfPages:X}},c=function(G){var Y=G.store,X=eo.useContext(er.LocalizationContext).l10n,Q=eo.useState("1"),en=Q[0],ea=Q[1],ei=i(Y).currentPage,ec=u(Y).numberOfPages;eo.useEffect(function(){return ea("".concat(ei+1))},[ei]);var f=function(G){var X=Y.get("jumpToPage");X&&X(G)},el=X&&X.pageNavigation?X.pageNavigation.enterPageNumber:"Enter a page number";return eo.createElement("span",{className:"rpv-page-navigation__current-page-input"},eo.createElement(er.TextBox,{ariaLabel:el,testId:"page-navigation__current-page-input",type:"text",value:en,onChange:ea,onKeyDown:function(G){var Y,X,Q;switch(G.key){case"ArrowUp":(Q=ei-1)>=0&&(ea("".concat(Q+1)),f(Q));break;case"ArrowDown":(X=ei+1)<ec&&(ea("".concat(X+1)),f(X));break;case"Enter":Y=parseInt(en,10),""===en||Y<1||Y>ec?ea("".concat(ei+1)):f(Y-1)}}}))},l=function(G){var Y=G.children,X=G.doc,Q=er.useIsMounted(),en=eo.useState({loading:!0,labels:[]}),ea=en[0],ei=en[1];return eo.useEffect(function(){X.getPageLabels().then(function(G){Q.current&&ei({loading:!1,labels:G||[]})})},[X.loadingTask.docId]),ea.loading?eo.createElement(eo.Fragment,null):Y(ea.labels)},s=function(G){var Y,X,Q,en,er=G.children,ea=G.store,ei=(X=(Y=eo.useState(ea.get("doc")))[0],Q=Y[1],en=function(G){Q(G)},eo.useEffect(function(){return ea.subscribe("doc",en),function(){ea.unsubscribe("doc",en)}},[]),X),ec=i(ea).currentPage,el=u(ea).numberOfPages,eu=er||function(G){return eo.createElement(eo.Fragment,null,G.currentPage+1)};return ei?eo.createElement(l,{doc:ei},function(G){var Y=G.length===el&&el>0?G[ec]:"";return eu({currentPage:ec,numberOfPages:el,pageLabel:Y})}):eo.createElement(eo.Fragment,null)},g=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M21.783,21.034H2.332c-0.552,0-1-0.448-1-1c0-0.182,0.05-0.361,0.144-0.517L11.2,3.448\n c0.286-0.472,0.901-0.624,1.373-0.338c0.138,0.084,0.254,0.2,0.338,0.338l9.726,16.069c0.28
16,0.473,0.134,1.087-0.339,1.373\n C22.143,20.984,21.965,21.034,21.783,21.034z"}))},ea={left:0,top:8},m=function(G){var Y=G.isDisabled,X=G.onClick,Q=eo.useContext(er.LocalizationContext).l10n,en=Q&&Q.pageNavigation?Q.pageNavigation.goToFirstPage:"First page";return eo.createElement(er.Tooltip,{ariaControlsSuffix:"page-navigation-first",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaLabel:en,isDisabled:Y,testId:"page-navigation__first-button",onClick:X},eo.createElement(g,null)),content:function(){return en},offset:ea})},p=function(G){var Y=G.children,X=G.store;return(Y||function(G){return eo.createElement(m,{isDisabled:G.isDisabled,onClick:G.onClick})})({isDisabled:0===i(X).currentPage,onClick:function(){var G=X.get("jumpToPage");G&&G(0)}})},v=function(G){var Y=G.isDisabled,X=G.onClick,Q=eo.useContext(er.LocalizationContext).l10n,en=Q&&Q.pageNavigation?Q.pageNavigation.goToFirstPage:"First page";return eo.createElement(er.MenuItem,{icon:eo.createElement(g,null),isDisabled:Y,testId:"page-navigation__first-menu",onClick:X},en)},ei={left:0,top:8},P=function(G){var Y=G.isDisabled,X=G.onClick,Q=eo.useContext(er.LocalizationContext).l10n,en=Q&&Q.pageNavigation?Q.pageNavigation.goToLastPage:"Last page";return eo.createElement(er.Tooltip,{ariaControlsSuffix:"page-navigation-last",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaLabel:en,isDisabled:Y,testId:"page-navigation__last-button",onClick:X},eo.createElement(a,null)),content:function(){return en},offset:ei})},b=function(G){var Y=G.children,X=G.store,Q=i(X).currentPage,en=u(X).numberOfPages;return(Y||function(G){return eo.createElement(P,{isDisabled:G.isDisabled,onClick:G.onClick})})({isDisabled:Q+1>=en,onClick:function(){var G=X.get("jumpToPage");G&&G(en-1)}})},E=function(G){var Y=G.isDisabled,X=G.onClick,Q=eo.useContext(er.LocalizationContext).l10n,en=Q&&Q.pageNavigation?Q.pageNavigation.goToLastPage:"Last page";return eo.createElement(er.MenuItem,{icon:eo.createElement(a,null),isDisabled:Y,testId:"page-navigation__last-menu",onClick:X},en)},ec={left:0,top:8},D=function(G){var Y=G.isDisabled,X=G.onClick,Q=eo.useContext(er.LocalizationContext).l10n,en=Q&&Q.pageNavigation?Q.pageNavigation.goToNextPage:"Next page";return eo.createElement(er.Tooltip,{ariaControlsSuffix:"page-navigation-next",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaLabel:en,isDisabled:Y,testId:"page-navigation__next-button",onClick:X},eo.createElement(r,null)),content:function(){return en},offset:ec})},k=function(G){var Y=G.children,X=G.store;return(Y||function(G){return eo.createElement(D,{onClick:G.onClick,isDisabled:G.isDisabled})})({isDisabled:i(X).currentPage+1>=u(X).numberOfPages,onClick:function(){var G=X.get("jumpToNextPage");G&&G()}})},T=function(G){var Y=G.isDisabled,X=G.onClick,Q=eo.useContext(er.LocalizationContext).l10n,en=Q&&Q.pageNavigation?Q.pageNavigation.goToNextPage:"Next page";return eo.createElement(er.MenuItem,{icon:eo.createElement(r,null),isDisabled:Y,testId:"page-navigation__next-menu",onClick:X},en)},x=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M23.535,18.373L12.409,5.8c-0.183-0.207-0.499-0.226-0.706-0.043C11.688,5.77,11.674,5.785,11.66,5.8\n L0.535,18.373"}))},el={left:0,top:8},N=function(G){var Y=G.isDisabled,X=G.onClick,Q=eo.useContext(er.LocalizationContext).l10n,en=Q&&Q.pageNavigation?Q.pageNavigation.goToPreviousPage:"Previous page";return eo.createElement(er.Tooltip,{ariaControlsSuffix:"page-navigation-previous",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaLabel:en,isDisabled:Y,testId:"page-navigation__previous-button",onClick:X},eo.createElement(x,null)),content:function(){return en},offset:el})},j=function(G){var Y=G.store;return(G.children||function(G){return eo.createElement(N,{isDisabled:G.isDisabled,onClick:G.onClick})})({isDisabled:i(Y).currentPage<=0,onClick:function(){var G=Y.get("jumpToPreviousPage");G&&G()}})},I=function(G){var Y=G.isDisabled,X=G.onClick,Q=eo.useContext(er.LocalizationContext).l10n,en=Q&&Q.pageNavigation?Q.pageNavigation.goToPreviousPage:"Previous page";return eo.createElement(er.MenuItem,{icon:eo.createElement(x,null),isDisabled:Y,testId:"page-navigation__previous-menu",onClick:X},en)},h=function(G){var Y=G.children,X=u(G.store).numberOfPages;return Y?Y({numberOfPages:X}):eo.createElement(eo.Fragment,null,X)},y=function(G){var Y=G.containerRef,X=G.numPages,Q=G.store,en=i(Q).currentPage,ea=eo.useRef(en);ea.current=en;var ei=eo.useRef(!1),s=function(){ei.current=!0},g=function(){ei.current=!1},f=function(G){var en=Y.current,eo=ei.current||document.activeElement&&en.contains(document.activeElement);if(en&&eo){var ec,el,eu,es,ef,ed,ep=G.altKey&&"ArrowDown"===G.key||!G.shiftKey&&!G.altKey&&"PageDown"===G.key,em=G.altKey&&"ArrowUp"===G.key||!G.shiftKey&&!G.altKey&&"PageUp"===G.key;if(ep)return G.preventDefault(),ef=Q.get("jumpToPage"),ed=ea.current+1,void(ef&&ed<X&&ef(ed));if(em)return G.preventDefault(),void(ec=Q.get("jumpToPage"),el=ea.current-1,ec&&el>=0&&ec(el));if(er.isMac()?G.metaKey&&!G.ctrlKey:G.altKey)switch(G.key){case"ArrowLeft":G.preventDefault(),(eu=Q.get("jumpToPreviousDestination"))&&eu();break;case"ArrowRight":G.preventDefault(),(es=Q.get("jumpToNextDestination"))&&es()}}};return eo.useEffect(function(){var G=Y.current;if(G)return document.addEventListener("keydown",f),G.addEventListener("mouseenter",s),G.addEventListener("mouseleave",g),function(){document.removeEventListener("keydown",f),G.removeEventListener("mouseenter",s),G.removeEventListener("mouseleave",g)}},[Y.current]),eo.createElement(eo.Fragment,null)};Y.DownArrowIcon=a,Y.NextIcon=r,Y.PreviousIcon=x,Y.UpArrowIcon=g,Y.pageNavigationPlugin=function(G){var Y=eo.useMemo(function(){return Object.assign({},{enableShortcuts:!0},G)}
1,[]),X=eo.useMemo(function(){return er.createStore()},[]),i=function(G){return eo.createElement(p,o({},G,{store:X}))},u=function(G){return eo.createElement(b,o({},G,{store:X}))},l=function(G){return eo.createElement(k,o({},G,{store:X}))},g=function(G){return eo.createElement(j,o({},G,{store:X}))};return{install:function(G){X.update("jumpToDestination",G.jumpToDestination),X.update("jumpToNextDestination",G.jumpToNextDestination),X.update("jumpToNextPage",G.jumpToNextPage),X.update("jumpToPage",G.jumpToPage),X.update("jumpToPreviousDestination",G.jumpToPreviousDestination),X.update("jumpToPreviousPage",G.jumpToPreviousPage)},renderViewer:function(G){var Q=G.slot;if(!Y.enableShortcuts)return Q;var en={children:eo.createElement(eo.Fragment,null,eo.createElement(y,{containerRef:G.containerRef,numPages:G.doc.numPages,store:X}),Q.children)};return o(o({},Q),en)},onDocumentLoad:function(G){X.update("doc",G.doc),X.update("numberOfPages",G.doc.numPages)},onViewerStateChange:function(G){return X.update("currentPage",G.pageIndex),G},jumpToNextPage:function(){var G=X.get("jumpToNextPage");G&&G()},jumpToPage:function(G){var Y=X.get("jumpToPage");Y&&Y(G)},jumpToPreviousPage:function(){var G=X.get("jumpToPreviousPage");G&&G()},CurrentPageInput:function(){return eo.createElement(c,{store:X})},CurrentPageLabel:function(G){return eo.createElement(s,o({},G,{store:X}))},GoToFirstPage:i,GoToFirstPageButton:function(){return eo.createElement(i,null,function(G){return eo.createElement(m,o({},G))})},GoToFirstPageMenuItem:function(G){return eo.createElement(i,null,function(Y){return eo.createElement(v,{isDisabled:Y.isDisabled,onClick:function(){Y.onClick(),G.onClick()}})})},GoToLastPage:u,GoToLastPageButton:function(){return eo.createElement(u,null,function(G){return eo.createElement(P,o({},G))})},GoToLastPageMenuItem:function(G){return eo.createElement(u,null,function(Y){return eo.createElement(E,{isDisabled:Y.isDisabled,onClick:function(){Y.onClick(),G.onClick()}})})},GoToNextPage:l,GoToNextPageButton:function(){return eo.createElement(l,null,function(G){return eo.createElement(D,o({},G))})},GoToNextPageMenuItem:function(G){return eo.createElement(l,null,function(Y){return eo.createElement(T,{isDisabled:Y.isDisabled,onClick:function(){Y.onClick(),G.onClick()}})})},GoToPreviousPage:g,GoToPreviousPageButton:function(){return eo.createElement(g,null,function(G){return eo.createElement(N,o({},G))})},GoToPreviousPageMenuItem:function(G){return eo.createElement(g,null,function(Y){return eo.createElement(I,{isDisabled:Y.isDisabled,onClick:function(){Y.onClick(),G.onClick()}})})},NumberOfPages:function(G){return eo.createElement(h,o({},G,{store:X}))}}}},55541:function(G,Y,X){"use strict";G.exports=X(1738)},42138:function(G,Y,X){"use strict";var Q,en,er,eo=X(77836),ea=X(86096),ei=X(73884),ec=X(10486),el=(en=Object.create(null),ei&&Object.keys(ei).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(ei,G);Object.defineProperty(en,G,Y.get?Y:{enumerable:!0,get:function(){return ei[G]}})}}),en.default=ei,Object.freeze(en)),i=function(){return el.createElement(ea.Icon,{size:16},el.createElement("path",{d:"M7.5,19.499h9 M7.5,16.499h9 M5.5,16.5h-3c-1.103-0.003-1.997-0.897-2-2v-6c0.003-1.103,0.897-1.997,2-2h19\n c1.103,0.003,1.997,0.897,2,2v6c-0.003,1.103-0.897,1.997-2,2h-3\n M5.5,4.5v-4h9.586c0.265,0,0.52,0.105,0.707,0.293l2.414,2.414\n C18.395,3.394,18.5,3.649,18.5,3.914V4.5\n M18.5,22.5c0,0.552-0.448,1-1,1h-11c-0.552,0-1-0.448-1-1v-9h13V22.5z\n M3.5,8.499\n c0.552,0,1,0.448,1,1s-0.448,1-1,1s-1-0.448-1-1S2.948,8.499,3.5,8.499z\n M14.5,0.499v4h4"}))},c=function(){return(c=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)},eu={left:0,top:8},s=function(G){var Y=G.enableShortcuts,X=G.onClick,Q=el.useContext(ea.LocalizationContext).l10n,en=Q&&Q.print?Q.print.print:"Print",er=Y?ea.isMac()?"Meta+P":"Ctrl+P":"";
1return el.createElement(ea.Tooltip,{ariaControlsSuffix:"print",position:ea.Position.BottomCenter,target:el.createElement(ea.MinimalButton,{ariaKeyShortcuts:er,ariaLabel:en,testId:"print__button",onClick:X},el.createElement(i,null)),content:function(){return en},offset:eu})};(Q=er||(er={})).CheckingPermission="CheckingPermission",Q.Inactive="Inactive",Q.Preparing="Preparing",Q.Cancelled="Cancelled",Q.Ready="Ready";var l=function(G){var Y=G.children,X=G.enableShortcuts,Q=G.store;return(Y||s)({enableShortcuts:X,onClick:function(){Q.update("printStatus",er.CheckingPermission)}})},p=function(G){var Y=G.doc,X=G.store,Q=el.useContext(ea.LocalizationContext).l10n,en=el.useState(!0),eo=en[0],ei=en[1];return el.useEffect(function(){Y.getPermissions().then(function(G){null===G||G.includes(4)||G.includes(2048)?X.update("printStatus",er.Preparing):ei(!1)})},[]),eo?el.createElement(el.Fragment,null):el.createElement(ea.Modal,{ariaControlsSuffix:"print-permission",closeOnClickOutside:!1,closeOnEscape:!1,content:function(G){return el.createElement(el.Fragment,null,el.createElement("div",{className:"rpv-print__permission-body"},Q&&Q.print?Q.print.disallowPrint:"The document does not allow to print"),el.createElement("div",{className:"rpv-print__permission-footer"},el.createElement(ea.Button,{onClick:function(){G(),X.update("printStatus",er.Cancelled)}},Q&&Q.print?Q.print.close:"Close")))},isOpened:!0})},m=function(G){var Y=G.numLoadedPages,X=G.numPages,Q=G.onCancel,en=el.useContext(ea.LocalizationContext).l10n,er=el.useContext(ea.ThemeContext).direction===ea.TextDirection.RightToLeft,eo=Math.floor(100*Y/X);return el.createElement("div",{className:"rpv-print__progress"},el.createElement("div",{className:ea.classNames({"rpv-print__progress-body":!0,"rpv-print__progress-body--rtl":er})},el.createElement("div",{className:"rpv-print__progress-message"},en&&en.print?en.print.preparingDocument:"Preparing document ..."),el.createElement("div",{className:"rpv-print__progress-bar"},el.createElement(ea.ProgressBar,{progress:eo})),el.createElement(ea.Button,{onClick:Q},en&&en.print?en.print.cancel:"Cancel")))},d=function(G){var Y=G.canvas,X=G.page,Q=G.pageHeight,en=G.pageIndex,er=G.pageWidth,ei=G.rotation,ec=G.onLoad,eu=ea.useIsMounted(),es=el.useRef(),ef=el.useState(""),ed=ef[0],ep=ef[1],em=el.useMemo(function(){return void 0!==eo&&void 0!==eo.env.JEST_WORKER_ID},[]);return el.useEffect(function(){var G=es.current;G&&G.cancel();var en=150/72;Y.height=Math.floor(Q*en),Y.width=Math.floor(er*en);var eo=Y.getContext("2d");eo.save(),eo.fillStyle="rgb(255, 255, 255)",eo.fillRect(0,0,Y.width,Y.height),eo.restore();var ea=X.getViewport({rotation:ei,scale:1});es.current=X.render({canvasContext:eo,intent:"print",transform:[en,0,0,en,0,0],viewport:ea}),es.current.promise.then(function(){"toBlob"in Y&&"createObjectURL"in URL?Y.toBlob(function(G){eu.current&&ep(URL.createObjectURL(G)),em&&ec()}):(eu.current&&ep(Y.toDataURL()),em&&ec())},function(){})},[]),ed&&el.createElement("div",{className:"rpv-print__page"},el.createElement("img",{"data-testid":"print__thumbnail-".concat(en),src:ed,onLoad:function(){em||ec()}}))},f=function(G){var Y=G.canvas,X=G.doc,Q=G.pageIndex,en=G.pageRotation,er=G.pageSize,eo=G.rotation,ei=G.shouldRender,ec=G.onLoad,eu=ea.useIsMounted(),es=el.useState(null),ef=es[0],ed=es[1],ep=Math.abs(eo+en)%180==0;el.useEffect(function(){ei&&ea.getPage(X,Q).then(function(G){eu.current&&ed(G)})},[ei]);var em=(er.rotation+eo+en)%360;return ef&&el.createElement(d,{canvas:Y,page:ef,pageHeight:ep?er.pageHeight:er.pageWidth,pageIndex:Q,pageWidth:ep?er.pageWidth:er.pageHeight,rotation:em,onLoad:ec})},g=function(G){var Y=G.doc,X=G.numLoadedPages,Q=G.pagesRotation,en=G.pageSizes,eo=G.printPages,ea=G.printStatus,ei=G.rotation,eu=G.onCancel,es=G.onLoad,ef=el.useMemo(function(){return document.createElement("canvas")},[]),ed=el.useMemo(function(){var G=document.querySelector(".rpv-print__zone");if(G)return G;var Y=document.createElement("div");return Y.classList.add("rpv-print__zone"),Y.setAttribute("data-testid","print__zone"),document.body.appendChild(Y),Y},[]);el.useEffect(function(){ea===er.Ready&&(document.documentElement.classList.add("rpv-print__html-printing"),document.body.classList.add("rpv-print__body-printing"),window.print());var e=function(){if(ea===er.Ready){document.documentElement.classList.remove("rpv-print__html-printing"),document.body.classList.remove("rpv-print__body-printing");var G=document.querySelectorAll(".rpv-print__zone");G&&G.forEach(function(G){G.parentElement.removeChild(G)}),ef.height=0,ef.width=0,document.removeEventListener("mousemove",e),eu()}};return document.addEventListener("mousemove",e),function(){return document.removeEventListener("mousemove",e)}},[ea]);var ep=en[0].pageHeight,em=en[0].pageWidth;return ec.createPortal(el.createElement(el.Fragment,null,eo.map(function(G,er){return el.createElement(f,{key:G,canvas:ef,doc:Y,pageIndex:G,pageRotation:Q.has(G)?Q.get(G):0,pageSize:en[G],rotation:ei,shouldRender:er===X,onLoad:es})}),el.createElement("style",{dangerouslySetInnerHTML:{__html:"@page { size: ".concat(em,"pt ").concat(ep,"pt }")}})),ed)}
1,v=function(G){var Y=G.doc,X=G.pagesRotation,Q=G.pageSizes,en=G.renderProgressBar,eo=G.rotation,ea=G.setPages,ei=G.store,ec=el.useState(er.Inactive),eu=ec[0],es=ec[1],ef=el.useState(0),ed=ef[0],ep=ef[1],em=el.useMemo(function(){var G=Y.numPages;return ea(Y).filter(function(Y){return Y>=0&&Y<G})},[Y,ea]),eh=em.length,b=function(){ep(0),es(er.Inactive)},_=function(G){return es(G)};return el.useEffect(function(){return ei.subscribe("printStatus",_),function(){ei.unsubscribe("printStatus",_)}},[]),el.createElement(el.Fragment,null,eu===er.CheckingPermission&&el.createElement(p,{doc:Y,store:ei}),eu===er.Preparing&&(en?en(ed,eh,b):el.createElement(m,{numLoadedPages:ed,numPages:eh,onCancel:b})),(eu===er.Preparing||eu===er.Ready)&&ed<=eh&&el.createElement(g,{doc:Y,numLoadedPages:ed,pagesRotation:X,pageSizes:Q,printPages:em,printStatus:eu,rotation:eo,onCancel:b,onLoad:function(){var G=ed+1;G<=eh&&(ep(G),G===eh&&es(er.Ready))}}))},h=function(G){var Y=G.onClick,X=el.useContext(ea.LocalizationContext).l10n,Q=X&&X.print?X.print.print:"Print";return el.createElement(ea.MenuItem,{icon:el.createElement(i,null),testId:"print__menu",onClick:Y},Q)},E=function(G){var Y=G.containerRef,X=G.store,i=function(G){if(!G.shiftKey&&!G.altKey&&"p"===G.key&&(ea.isMac()?G.metaKey:G.ctrlKey)){var Q=Y.current;Q&&document.activeElement&&Q.contains(document.activeElement)&&(G.preventDefault(),X.update("printStatus",er.Preparing))}};return el.useEffect(function(){if(Y.current)return document.addEventListener("keydown",i),function(){document.removeEventListener("keydown",i)}},[Y.current]),el.createElement(el.Fragment,null)};Y.PrintIcon=i,Y.getAllPagesNumbers=function(G){return Array(G.numPages).fill(0).map(function(G,Y){return Y})},Y.getCustomPagesNumbers=function(G){return function(Y){var X=[];return G.replace(/\s+/g,"").split(",").forEach(function(G){var Y,Q=G.split("-").map(function(G){return parseInt(G,10)}).filter(function(G){return Number.isInteger(G)});1===Q.length?X.push(Q[0]-1):2===Q.length&&X.push.apply(X,(Y=Q[0]-1,Array(Q[1]-1-Y+1).fill(0).map(function(G,X){return Y+X})))}),X.filter(function(G){return X.indexOf(G)===X.lastIndexOf(G)}).filter(function(G){return G>=0&&G<Y.numPages})}},Y.getEvenPagesNumbers=function(G){return Array(G.numPages).fill(0).map(function(G,Y){return Y}).filter(function(G){return(G+1)%2==0})},Y.getOddPagesNumbers=function(G){return Array(G.numPages).fill(0).map(function(G,Y){return Y}).filter(function(G){return(G+1)%2==1})},Y.printPlugin=function(G){var Y=el.useMemo(function(){return Object.assign({},{enableShortcuts:!0,setPages:function(G){return Array(G.numPages).fill(0).map(function(G,Y){return Y})}},G)},[]),X=el.useMemo(function(){return ea.createStore({printStatus:er.Inactive})},[]),i=function(G){return el.createElement(l,c({enableShortcuts:Y.enableShortcuts},G,{store:X}))};return{print:function(){X.update("printStatus",er.CheckingPermission)},renderViewer:function(Q){var en=Q.slot,er={children:el.createElement(el.Fragment,null,Y.enableShortcuts&&el.createElement(E,{containerRef:Q.containerRef,store:X}),el.createElement(v,{doc:Q.doc,pagesRotation:Q.pagesRotation,pageSizes:Q.pageSizes,renderProgressBar:null==G?void 0:G.renderProgressBar,rotation:Q.rotation,setPages:Y.setPages,store:X}),en.children)};return c(c({},en),er)},Print:i,PrintButton:function(){return el.createElement(i,null,function(G){return el.createElement(s,c({},G))})},PrintMenuItem:function(G){return el.createElement(i,null,function(Y){return el.createElement(h,{onClick:function(){Y.onClick(),G.onClick()}})})},setPages:function(G){Y.setPages=G}}}},76774:function(G,Y,X){"use strict";G.exports=X(42138)},21140:function(G,Y,X){"use strict";var Q,en,er=X(86096),eo=(Q=X(73884),en=Object.create(null),Q&&Object.keys(Q).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(Q,G);Object.defineProperty(en,G,Y.get?Y:{enumerable:!0,get:function(){return Q[G]}})}}),en.default=Q,Object.freeze(en)),n=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M12,1.001c6.075,0,11,4.925,11,11s-4.925,11-11,11s-11-4.925-11-11S5.925,1.001,12,1.001z\n M14.5,17.005H13\n c-0.552,0-1-0.448-1-1v-6.5c0-0.276-0.224-0.5-0.5-0.5H10\n M11.745,6.504L11.745,6.504\n M11.745,6.5c-0.138,0-0.25,0.112-0.25,0.25\n S11.607,7,11.745,7s0.25-0.112,0.25-0.25S11.883,6.5,11.745,6.5"}))},o=function(){return(o=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)},a=function(G){var Y=G.doc,X=G.render,Q=eo.useState(),en=Q[0],ea=Q[1];return eo.useEffect(function(){Y.getMetadata().then(function(G){return Promise.resolve(G)}).then(function(G){return Y.getDownloadInfo().then(function(Y){return Promise.resolve({fileName:G.contentDispositionFilename||"",info:G.info,length:Y.length})})}).then(function(G){ea(G)})},[]),en?X(en):eo.createElement("div",{className:"rpv-properties__loader"},eo.createElement(er.Spinner,null))},i=function(G){var Y=G.label,X=G.value,Q=eo.useContext(er.ThemeContext).direction===er.TextDirection.RightToLeft;return eo.createElement("dl",{className:er.classNames({"rpv-properties__item":!0,"rpv-properties__item--rtl":Q})},eo.createElement("dt",{className:"rpv-properties__item-label"},Y,":"),eo.createElement("dd",{className:"rpv-properties__item-value"},X||"-"))},ea=RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"),c=function(G,Y,X,Q){var en=parseInt(G,10);return en>=Y&&en<=X?en:Q},p=function(G){var Y=G.doc,X=G.fileName,Q=G.onToggle,en=eo.useContext(er.LocalizationContext).l10n,u=function(G){var Y=function(G){var Y=ea.exec(G);if(!Y)return null;var X=parseInt(Y[1],10),Q=c(Y[2],1,12,1)-1,en=c(Y[3],1,31,1),er=c(Y[4],0,23,0),eo=c(Y[5],0,59,0),ei=c(Y[6],0,59,0),ec=Y[7]||"Z",el=c(Y[8],0,23,0),eu=c(Y[9],0,59,0);switch(ec){case"-":er+=el,eo+=eu;break;case"+":er-=el,eo-=eu}return new Date(Date.UTC(X,Q,en,er,eo,ei))}(G);return Y?"".concat(Y.toLocaleDateString(),", ").concat(Y.toLocaleTimeString()):""};return eo.createElement("div",{className:"rpv-properties__modal"},eo.createElement(a,{doc:Y,render:function(G){var Q,ea,ei;return eo.createElement(eo.Fragment,null,eo.createElement("div",{className:"rpv-properties__modal-section"},eo.createElement(i,{label:en&&en.properties?en.properties.fileName:"File name",value:G.fileName||((ei=X.split("/").pop())?ei.split("#")[0].split("?")[0]:X)}),eo.createElement(i,{label:en&&en.properties?en.properties.fileSize:"File size",value:(ea=Math.floor(Math.log(Q=G.length)/Math.log(1024)),"".concat((Q/Math.pow(1024,ea)).toFixed(2)," ").concat(["B","kB","MB","GB","TB"][ea]))})),eo.createElement(er.Separator,null),eo.createElement("div",{className:"rpv-properties__modal-section"},eo.createElement(i,{label:en&&en.properties?en.properties.title:"Title",value:G.info.Title}),eo.createElement(i,{label:en&&en.properties?en.properties.author:"Author",value:G.info.Author}),eo.createElement(i,{label:en&&en.properties?en.properties.subject:"Subject",value:G.info.Subject}),eo.createElement(i,{label:en&&en.properties?en.properties.keywords:"Keywords",value:G.info.Keywords}),eo.createElement(i,{label:en&&en.properties?en.properties.creator:"Creator",value:G.info.Creator}),eo.createElement(i,{label:en&&en.properties?en.properties.creationDate:"Creation date",value:u(G.info.CreationDate)}),eo.createElement(i,{label:en&&en.properties?en.properties.modificationDate:"Modification date",value:u(G.info.ModDate)})),eo.createElement(er.Separator,null),eo.createElement("div",{className:"rpv-properties__modal-section"},eo.createElement(i,{label:en&&en.properties?en.properties.pdfProducer:"PDF producer",value:G.info.Producer}),eo.createElement(i,{label:en&&en.properties?en.properties.pdfVersion:"PDF version",value:G.info.PDFFormatVersion}),eo.createElement(i,{label:en&&en.properties?en.properties.pageCount:"Page count",value:"".concat(Y.numPages)})))}}),eo.createElement("div",{className:"rpv-properties__modal-footer"},eo.createElement(er.Button,{onClick:Q},en&&en.properties?en.properties.close:"Close")))},ei={left:0,top:8},u=function(G){var Y=G.onClick,X=eo.useContext(er.LocalizationContext).l10n,Q=X&&X.properties?X.properties.showProperties:"Show properties";
1return eo.createElement(er.Tooltip,{ariaControlsSuffix:"properties",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaLabel:Q,testId:"properties__button",onClick:Y},eo.createElement(n,null)),content:function(){return Q},offset:ei})},m=function(G){var Y,X,Q,en,ea=G.children,ei=G.store,ec=(X=(Y=eo.useState(ei.get("doc")))[0],Q=Y[1],en=function(G){Q(G)},eo.useEffect(function(){return ei.subscribe("doc",en),function(){ei.unsubscribe("doc",en)}},[]),{currentDoc:X}).currentDoc,el=ei.get("fileName")||"",eu=ea||function(G){return eo.createElement(u,o({},G))};return ec?eo.createElement(er.Modal,{ariaControlsSuffix:"properties",target:function(G){return eu({onClick:G})},content:function(G){return eo.createElement(p,{doc:ec,fileName:el,onToggle:G})},closeOnClickOutside:!0,closeOnEscape:!0}):eo.createElement(eo.Fragment,null)},f=function(G){var Y=G.onClick,X=eo.useContext(er.LocalizationContext).l10n,Q=X&&X.properties?X.properties.showProperties:"Show properties";return eo.createElement(er.MenuItem,{icon:eo.createElement(n,null),testId:"properties__menu",onClick:Y},Q)};Y.InfoIcon=n,Y.propertiesPlugin=function(){var G=eo.useMemo(function(){return er.createStore({fileName:""})},[]),n=function(Y){return eo.createElement(m,o({},Y,{store:G}))};return{onDocumentLoad:function(Y){G.update("doc",Y.doc)},onViewerStateChange:function(Y){return G.update("fileName",Y.file.name),Y},ShowProperties:n,ShowPropertiesButton:function(){return eo.createElement(m,{store:G})},ShowPropertiesMenuItem:function(G){return eo.createElement(n,null,function(G){return eo.createElement(f,o({},G))})}}}},32062:function(G,Y,X){"use strict";G.exports=X(21140)},11020:function(G,Y,X){"use strict";var Q,en,er=X(86096),eo=(Q=X(73884),en=Object.create(null),Q&&Object.keys(Q).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(Q,G);Object.defineProperty(en,G,Y.get?Y:{enumerable:!0,get:function(){return Q[G]}})}}),en.default=Q,Object.freeze(en)),n=function(){return eo.createElement(er.Icon,{ignoreDirection:!0,size:16},eo.createElement("path",{d:"M3.434,10.537c0.141-0.438,0.316-0.864,0.523-1.274\n M3.069,14.425C3.023,14.053,3,13.679,3,13.305 c0-0.291,0.014-0.579,0.041-0.863\n M4.389,18.111c-0.341-0.539-0.623-1.112-0.843-1.711\n M7.163,20.9 c-0.543-0.345-1.048-0.747-1.506-1.2\n M10.98,22.248c-0.65-0.074-1.29-0.218-1.909-0.431\n M10,4.25h2 c4.987,0.015,9.017,4.069,9.003,9.055c-0.013,4.581-3.456,8.426-8.008,8.945\n M13.5,1.75L10,4.25l3.5,2.5"}))},o=function(){return eo.createElement(er.Icon,{ignoreDirection:!0,size:16},eo.createElement("path",{d:"M20.566,10.537c-0.141-0.438-0.316-0.864-0.523-1.274\n M20.931,14.425C20.977,14.053,21,13.679,21,13.305 c0-0.291-0.014-0.579-0.041-0.863\n M19.611,18.111c0.341-0.539,0.624-1.114,0.843-1.713\n M16.837,20.9 c0.543-0.345,1.048-0.747,1.506-1.2\n M13.02,22.248c0.65-0.074,1.29-0.218,1.909-0.431\n M14,4.25h-2 c-4.987,0.015-9.017,4.069-9.003,9.055c0.013,4.581,3.456,8.426,8.008,8.945\n M10.5,1.75l3.5,2.5l-3.5,2.5"}))},c=function(){return(c=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)},ea={left:0,top:8},i=function(G){var Y=G.direction,X=G.onClick,Q=eo.useContext(er.LocalizationContext).l10n,en=Q&&Q.rotate?Q.rotate.rotateBackward:"Rotate counterclockwise",ei=Q&&Q.rotate?Q.rotate.rotateForward:"Rotate clockwise",ec=Y===er.RotateDirection.Backward?en:ei,el=Y===er.RotateDirection.Backward?eo.createElement(n,null):eo.createElement(o,null);return eo.createElement(er.Tooltip,{ariaControlsSuffix:"rotate",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaLabel:ec,testId:Y===er.RotateDirection.Backward?"rotate__backward-button":"rotate__forward-button",onClick:X},el),content:function(){return ec},offset:ea})},u=function(G){var Y=G.children,X=G.direction,Q=G.store;return(Y||function(G){return eo.createElement(i,{direction:G.direction,onClick:G.onClick})})({direction:X,onClick:function(){var G=Q.get("rotate");G&&G(X)}})},l=function(G){var Y=G.direction,X=G.onClick,Q=eo.useContext(er.LocalizationContext).l10n,en=Q&&Q.rotate?Q.rotate.rotateBackward:"Rotate counterclockwise",ea=Q&&Q.rotate?Q.rotate.rotateForward:"Rotate clockwise",ei=Y===er.RotateDirection.Backward?en:ea,ec=Y===er.RotateDirection.Backward?eo.createElement(n,null):eo.createElement(o,null);return eo.createElement(er.MenuItem,{icon:ec,testId:Y===er.RotateDirection.Backward?"rotate__backward-menu":"rotate__forward-menu",onClick:X},ei)},d=function(G){var Y=G.children,X=G.store;return Y({onRotatePage:function(G,Y){var Q=X.get("rotatePage");Q&&Q(G,Y)}})};Y.RotateBackwardIcon=n,Y.RotateForwardIcon=o,Y.rotatePlugin=function(){var G=eo.useMemo(function(){return er.createStore(
1)},[]),n=function(Y){return eo.createElement(u,c({},Y,{store:G}))};return{install:function(Y){G.update("rotate",Y.rotate),G.update("rotatePage",Y.rotatePage)},Rotate:n,RotateBackwardButton:function(){return eo.createElement(n,{direction:er.RotateDirection.Backward},function(G){return eo.createElement(i,c({},G))})},RotateBackwardMenuItem:function(G){return eo.createElement(n,{direction:er.RotateDirection.Backward},function(Y){return eo.createElement(l,{direction:Y.direction,onClick:function(){Y.onClick(),G.onClick()}})})},RotateForwardButton:function(){return eo.createElement(n,{direction:er.RotateDirection.Forward},function(G){return eo.createElement(i,c({},G))})},RotateForwardMenuItem:function(G){return eo.createElement(n,{direction:er.RotateDirection.Forward},function(Y){return eo.createElement(l,{direction:Y.direction,onClick:function(){Y.onClick(),G.onClick()}})})},RotatePage:function(Y){return eo.createElement(d,c({},Y,{store:G}))}}}},48808:function(G,Y,X){"use strict";G.exports=X(11020)},61834:function(G,Y,X){"use strict";var Q,en,er=X(86096),eo=(Q=X(73884),en=Object.create(null),Q&&Object.keys(Q).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(Q,G);Object.defineProperty(en,G,Y.get?Y:{enumerable:!0,get:function(){return Q[G]}})}}),en.default=Q,Object.freeze(en)),l=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("rect",{x:"0.5",y:"0.497",width:"22",height:"22",rx:"1",ry:"1"}),eo.createElement("line",{x1:"0.5",y1:"6.497",x2:"22.5",y2:"6.497"}),eo.createElement("line",{x1:"11.5",y1:"6.497",x2:"11.5",y2:"22.497"}))},c=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("rect",{x:"0.5",y:"0.497",width:"22",height:"22",rx:"1",ry:"1"}),eo.createElement("line",{x1:"11.5",y1:"0.497",x2:"11.5",y2:"22.497"}))},n=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M6.5,21.5c0,0.552-0.448,1-1,1h-4c-0.552,0-1-0.448-1-1v-20c0-0.552,0.448-1,1-1h4c0.552,0,1,0.448,1,1V21.5z\n M14.5,21.5c0,0.552-0.448,1-1,1h-4c-0.552,0-1-0.448-1-1v-20c0-0.552,0.448-1,1-1h4c0.552,0,1,0.448,1,1V21.5z\n M22.5,21.5 c0,0.552-0.448,1-1,1h-4c-0.552,0-1-0.448-1-1v-20c0-0.552,0.448-1,1-1h4c0.552,0,1,0.448,1,1V21.5z"}))},r=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("rect",{x:"0.5",y:"0.497",width:"22",height:"22",rx:"1",ry:"1"}))},i=function(){return(i=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)},a=function(G,Y){G.get("switchScrollMode")(Y);var X=G.get("viewMode");Y!==er.ScrollMode.Horizontal&&Y!==er.ScrollMode.Wrapped||X===er.ViewMode.SinglePage||G.get("switchViewMode")(er.ViewMode.SinglePage)},d=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M23.5,5.5c0,0.552-0.448,1-1,1h-21c-0.552,0-1-0.448-1-1v-3c0-0.552,0.448-1,1-1h21c0.552,0,1,0.448,1,1V5.5z\n M23.5,13.5c0,0.552-0.448,1-1,1h-21c-0.552,0-1-0.448-1-1v-3c0-0.552,0.448-1,1-1h21c0.552,0,1,0.448,1,1V13.5z\n M23.5,21.5 c0,0.552-0.448,1-1,1h-21c-0.552,0-1-0.448-1-1v-3c0-0.552,0.448-1,1-1h21c0.552,0,1,0.448,1,1V21.5z"}))},s=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M10.5,9.5c0,0.552-0.448,1-1,1h-8c-0.552,0-1-0.448-1-1v-8c0-0.552,0.448-1,1-1h8c0.552,0,1,0.448,1,1V9.5z\n M23.5,9.5c0,0.552-0.448,1-1,1h-8c-0.552,0-1-0.448-1-1v-8c0-0.552,0.448-1,1-1h8c0.552,0,1,0.448,1,1V9.5z\n M10.5,22.5 c0,0.552-0.448,1-1,1h-8c-0.552,0-1-0.448-1-1v-8c0-0.552,0.448-1,1-1h8c0.552,0,1,0.448,1,1V22.5z\n M23.5,22.5c0,0.552-0.448,1-1,1 h-8c-0.552,0-1-0.448-1-1v-8c0-0.552,0.448-1,1-1h8c0.552,0,1,0.448,1,1V22.5z"}))},u=function(G){var Y=G.children,X=G.mode,Q=G.onClick,en=eo.useContext(er.LocalizationContext).l10n,ea="",ei=eo.createElement(d,null);switch(X){case er.ScrollMode.Horizontal:ea=en&&en.scrollMode?en.scrollMode.horizontalScrolling:"Horizontal scrolling",ei=eo.createElement(n,null);break;case er.ScrollMode.Page:ea=en&&en.scrollMode?en.scrollMode.pageScrolling:"Page scrolling",ei=eo.createElement(r,
1null);break;case er.ScrollMode.Wrapped:ea=en&&en.scrollMode?en.scrollMode.wrappedScrolling:"Wrapped scrolling",ei=eo.createElement(s,null);break;case er.ScrollMode.Vertical:default:ea=en&&en.scrollMode?en.scrollMode.verticalScrolling:"Vertical scrolling",ei=eo.createElement(d,null)}return Y({icon:ei,label:ea,onClick:Q})},ea={left:0,top:8},M=function(G){var Y=G.isDisabled,X=G.isSelected,Q=G.mode,en=G.onClick,ei="";switch(Q){case er.ScrollMode.Horizontal:ei="scroll-mode__horizontal-button";break;case er.ScrollMode.Page:ei="scroll-mode__page-button";break;case er.ScrollMode.Wrapped:ei="scroll-mode__wrapped-button";break;case er.ScrollMode.Vertical:default:ei="scroll-mode__vertical-button"}return eo.createElement(u,{mode:Q,onClick:en},function(G){return eo.createElement(er.Tooltip,{ariaControlsSuffix:"scroll-mode-switch",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaLabel:G.label,isDisabled:Y,isSelected:X,testId:ei,onClick:G.onClick},G.icon),content:function(){return G.label},offset:ea})})},f=function(G){var Y=eo.useState(G.get("scrollMode")||er.ScrollMode.Vertical),X=Y[0],Q=Y[1],r=function(G){Q(G)};return eo.useEffect(function(){return G.subscribe("scrollMode",r),function(){G.unsubscribe("scrollMode",r)}},[]),{scrollMode:X}},w=function(G){var Y=eo.useState(G.get("viewMode")||er.ViewMode.SinglePage),X=Y[0],Q=Y[1],r=function(G){Q(G)};return eo.useEffect(function(){return G.subscribe("viewMode",r),function(){G.unsubscribe("viewMode",r)}},[]),{viewMode:X}},S=function(G){var Y=G.children,X=G.mode,Q=G.store,en=w(Q).viewMode,ea=f(Q).scrollMode===X,ei=(X===er.ScrollMode.Horizontal||X===er.ScrollMode.Wrapped)&&en!==er.ViewMode.SinglePage;return(Y||function(G){return eo.createElement(M,{isDisabled:ei,isSelected:ea,mode:G.mode,onClick:G.onClick})})({isDisabled:ei,isSelected:ea,mode:X,onClick:function(){a(Q,X)}})},g=function(G){var Y=G.isDisabled,X=G.isSelected,Q=G.mode,en=G.onClick,ea="";switch(Q){case er.ScrollMode.Horizontal:ea="scroll-mode__horizontal-menu";break;case er.ScrollMode.Page:ea="scroll-mode__page-menu";break;case er.ScrollMode.Wrapped:ea="scroll-mode__wrapped-menu";break;case er.ScrollMode.Vertical:default:ea="scroll-mode__vertical-menu"}return eo.createElement(u,{mode:Q,onClick:en},function(G){return eo.createElement(er.MenuItem,{checked:X,icon:G.icon,isDisabled:Y,testId:ea,onClick:G.onClick},G.label)})},h=function(G,Y){G.get("switchViewMode")(Y);var X=G.get("scrollMode");X!==er.ScrollMode.Horizontal&&X!==er.ScrollMode.Wrapped||Y===er.ViewMode.SinglePage||G.get("switchScrollMode")(er.ScrollMode.Vertical)},b=function(G){var Y=G.children,X=G.mode,Q=G.onClick,en=eo.useContext(er.LocalizationContext).l10n,ea="",ei=eo.createElement(r,null);switch(X){case er.ViewMode.DualPage:ea=en&&en.scrollMode?en.scrollMode.dualPage:"Dual page",ei=eo.createElement(c,null);break;case er.ViewMode.DualPageWithCover:ea=en&&en.scrollMode?en.scrollMode.dualPageCover:"Dual page with cover",ei=eo.createElement(l,null);break;case er.ViewMode.SinglePage:default:ea=en&&en.scrollMode?en.scrollMode.singlePage:"Single page",ei=eo.createElement(r,null)}return Y({icon:ei,label:ea,onClick:Q})},ei={left:0,top:8},v=function(G){var Y=G.isDisabled,X=G.isSelected,Q=G.mode,en=G.onClick,ea="";switch(Q){case er.ViewMode.DualPage:ea="view-mode__dual-button";break;case er.ViewMode.DualPageWithCover:ea="view-mode__dual-cover-button";break;case er.ViewMode.SinglePage:default:ea="view-mode__single-button"}return eo.createElement(b,{mode:Q,onClick:en},function(G){return eo.createElement(er.Tooltip,{ariaControlsSuffix:"view-mode-switch",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaLabel:G.label,isDisabled:Y,isSelected:X,testId:ea,onClick:G.onClick},G.icon),content:function(){return G.label},offset:ei})})},k=function(G){var Y=G.children,X=G.mode,Q=G.store,en=w(Q).viewMode,ea=f(Q).scrollMode,ei=en===X,ec=(ea===er.ScrollMode.Horizontal||ea===er.ScrollMode.Wrapped)&&X!==er.ViewMode.SinglePage;return(Y||function(G){return eo.createElement(v,{isDisabled:ec,isSelected:ei,mode:G.mode,onClick:G.onClick})})({isDisabled:ec,isSelected:ei,mode:X,onClick:function(){h(Q,X)}})},C=function(G){var Y=G.isDisabled,X=G.isSelected,Q=G.mode,en=G.onClick,ea="";switch(Q){case er.ViewMode.DualPage:ea="view-mode__dual-menu";break;case er.ViewMode.DualPageWithCover:ea="view-mode__dual-cover-menu";break;case er.ViewMode.SinglePage:default:ea="view-mode__single-menu"}return eo.createElement(b,{mode:Q,onClick:en},function(G){return eo.createElement(er.MenuItem,{checked:X,icon:G.icon,isDisabled:Y,testId:ea,onClick:G.onClick},G.label)})};Y.DualPageCoverViewModeIcon=l,Y.DualPageViewModeIcon=c,Y.HorizontalScrollingIcon=n,Y.PageScrollingIcon=r,Y.VerticalScrollingIcon=d,Y.WrappedScrollingIcon=s,Y.scrollModePlugin=function(){var G=eo.useMemo(function(){return er.createStore({scrollMode:er.ScrollMode.Vertical,viewM
1ode:er.ViewMode.SinglePage,switchScrollMode:function(){},switchViewMode:function(){}})},[]),l=function(Y){return eo.createElement(S,i({},Y,{store:G}))},c=function(Y){return eo.createElement(k,i({},Y,{store:G}))};return{install:function(Y){G.update("switchScrollMode",Y.switchScrollMode),G.update("switchViewMode",Y.switchViewMode)},onViewerStateChange:function(Y){return G.update("scrollMode",Y.scrollMode),G.update("viewMode",Y.viewMode),Y},switchScrollMode:function(Y){a(G,Y)},switchViewMode:function(Y){h(G,Y)},SwitchScrollMode:l,SwitchScrollModeButton:function(G){return eo.createElement(l,{mode:G.mode},function(G){return eo.createElement(M,{isDisabled:G.isDisabled,isSelected:G.isSelected,mode:G.mode,onClick:function(){G.onClick()}})})},SwitchScrollModeMenuItem:function(G){return eo.createElement(l,{mode:G.mode},function(Y){return eo.createElement(g,{isDisabled:Y.isDisabled,isSelected:Y.isSelected,mode:Y.mode,onClick:function(){Y.onClick(),G.onClick()}})})},SwitchViewMode:c,SwitchViewModeButton:function(G){return eo.createElement(c,{mode:G.mode},function(G){return eo.createElement(v,{isDisabled:G.isDisabled,isSelected:G.isSelected,mode:G.mode,onClick:function(){G.onClick()}})})},SwitchViewModeMenuItem:function(G){return eo.createElement(c,{mode:G.mode},function(Y){return eo.createElement(C,{isDisabled:Y.isDisabled,isSelected:Y.isSelected,mode:Y.mode,onClick:function(){Y.onClick(),G.onClick()}})})}}}},80454:function(G,Y,X){"use strict";G.exports=X(61834)},23746:function(G,Y,X){"use strict";var Q,en,er=X(86096),eo=(Q=X(73884),en=Object.create(null),Q&&Object.keys(Q).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(Q,G);Object.defineProperty(en,G,Y.get?Y:{enumerable:!0,get:function(){return Q[G]}})}}),en.default=Q,Object.freeze(en)),n=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M0.541,5.627L11.666,18.2c0.183,0.207,0.499,0.226,0.706,0.043c0.015-0.014,0.03-0.028,0.043-0.043\n L23.541,5.627"}))},o=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M23.535,18.373L12.409,5.8c-0.183-0.207-0.499-0.226-0.706-0.043C11.688,5.77,11.674,5.785,11.66,5.8\n L0.535,18.373"}))},a=function(){return eo.createElement(er.Icon,{ignoreDirection:!0,size:16},eo.createElement("path",{d:"M10.5,0.5c5.523,0,10,4.477,10,10s-4.477,10-10,10s-10-4.477-10-10S4.977,0.5,10.5,0.5z\n M23.5,23.5\n l-5.929-5.929"}))},c=function(){return(c=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)},ea={keyword:"",regExp:RegExp(" "),wholeWords:!1},i=function(G){return{left:"".concat(G.left,"%"),top:"".concat(G.top,"%"),height:"".concat(G.height,"%"),width:"".concat(G.width,"%")}},s=function(G){var Y=G.index,X=G.area,Q=G.onHighlightKeyword,en=eo.useRef();return er.useIsomorphicLayoutEffect(function(){var G=en.current;Q&&G&&Q({highlightEle:G,keyword:X.keyword})},[]),eo.createElement("div",{className:"rpv-search__highlight","data-index":Y,ref:en,style:i(X),title:X.keywordStr.trim()})},l=function(G){var Y=G.parentNode;Y&&Y.removeChild(G)},h=function(G){var Y=G.parentNode;if(Y){var X,Q,en=document.createRange();en.selectNodeContents(G),l(X=en.extractContents()),(Q=G.parentNode)&&Q.insertBefore(X,G),l(G),Y.normalize()}},d=function(G,Y){return G.top<Y.top?-1:G.top>Y.top?1:G.left<Y.left?-1:G.left>Y.left?1:0},f=function(G){var Y=G.numPages,X=G.pageIndex,Q=G.renderHighlights,en=G.store,ei=G.onHighlightKeyword,ec=eo.useRef(),el=eo.useCallback(function(G){return eo.createElement(eo.Fragment,null,G.highlightAreas.map(function(G,Y){return eo.createElement(s,{index:Y,key:Y,area:G,onHighlightKeyword:ei})}))},[]),eu=Q||el,es=eo.useState(en.get("matchPosition")),ef=es[0],ed=es[1],ep=eo.useState(en.get("keyword")||[ea]),em=ep[0],eh=ep[1],eg=eo.useState({pageIndex:X,scale:1,status:er.LayerRenderStatus.PreRender}),ev=eg[0],eb=eg[1],eE=eo.useRef(null),ey=eo.useRef([]),ew=eo.useState([]),e_=ew[0],ek=ew[1],M=function(){return!0},eS=eo.useCallback(function(){return en.get("targetPageFilter")||M},[en.get("targetPageFilter")]),L=function(G){var Q=ey.current;if(0===Q.length)return[];var en=[],er=[].slice.call(G.querySelectorAll(".rpv-core__text-layer-text")),eo=Q.map(function(G){return G.char}).join("");return em.forEach(function(ea){var ei=ea.keyword;if(ei.trim()){for(var ec,el=-1===ea.regExp.flags.indexOf("g")?new RegExp(ea.regExp,"".concat(ea.regExp.flags,"g")):ea.regExp,eu=[];null!==(ec=el.exec(eo));)eu.push({keyword:el,startIndex:ec.index,endIndex:el.lastIndex});eu.map(function(G){return{keyword:G.keyword,indexes:Q.slice(G.startIndex,G.endIndex)}}
1).forEach(function(Q){Object.values(Q.indexes.reduce(function(G,Y){return G[Y.spanIndex]=(G[Y.spanIndex]||[]).concat([Y]),G},{})).forEach(function(eo){if(1!==eo.length||""!==eo[0].char.trim()){var ec=ea.wholeWords?eo.slice(1,-1):eo,el=function(G,Q,en,er,eo){var ea=document.createRange(),ei=er.firstChild;if(!ei||ei.nodeType!==Node.TEXT_NODE)return null;var ec=ei.textContent.length,el=eo[0].charIndexInSpan,eu=1===eo.length?el:eo[eo.length-1].charIndexInSpan;if(el>ec||eu+1>ec)return null;ea.setStart(ei,el),ea.setEnd(ei,eu+1);var es=document.createElement("span");ea.surroundContents(es);var ef=es.getBoundingClientRect(),ed=en.getBoundingClientRect(),ep=ed.height,em=ed.width,eh=100*(ef.left-ed.left)/em,eg=100*(ef.top-ed.top)/ep,ev=100*ef.height/ep,eb=100*ef.width/em;return h(es),{keyword:Q,keywordStr:G,numPages:Y,pageIndex:X,left:eh,top:eg,height:ev,width:eb,pageHeight:ep,pageWidth:em}}(ei,Q.keyword,G,er[ec[0].spanIndex],ec);el&&en.push(el)}})})}}),en.sort(d)},j=function(G){G&&G.length>0&&eh(G)},N=function(G){return ed(G)},K=function(G){if(G.has(X)){var Y=G.get(X);Y&&eb({ele:Y.ele,pageIndex:X,scale:Y.scale,status:Y.status})}},O=function(){return 0===em.length||1===em.length&&""===em[0].keyword.trim()};return eo.useEffect(function(){if(!O()&&ev.status===er.LayerRenderStatus.DidRender&&!ey.current.length){var G=ev.ele,Y=[].slice.call(G.querySelectorAll(".rpv-core__text-layer-text")).map(function(G){return G.textContent}).reduce(function(G,Y,X){return G.concat(Y.split("").map(function(G,Y){return{char:G,charIndexInSpan:Y,spanIndex:X}}))},[{char:"",charIndexInSpan:0,spanIndex:0}]).slice(1);ey.current=Y}},[em,ev.status]),eo.useEffect(function(){!O()&&ev.ele&&ev.status===er.LayerRenderStatus.DidRender&&eS()({pageIndex:X,numPages:Y})&&ek(L(ev.ele))},[em,ef,ev.status,ey.current]),eo.useEffect(function(){O()&&ev.ele&&ev.status===er.LayerRenderStatus.DidRender&&ek([])},[em,ev.status]),eo.useEffect(function(){if(0!==e_.length){var G=ec.current;if(ef.pageIndex===X&&G&&ev.status===er.LayerRenderStatus.DidRender){var Y=G.querySelector('.rpv-search__highlight[data-index="'.concat(ef.matchIndex,'"]'));if(Y){var Q=function(G,Y){for(var X=G.offsetTop,Q=G.offsetLeft,en=G.parentElement;en&&en!==Y;)X+=en.offsetTop,Q+=en.offsetLeft,en=en.parentElement;return{left:Q,top:X}}(Y,G),eo=Q.left,ea=Q.top,ei=en.get("jumpToDestination");ei&&(ei({pageIndex:X,bottomOffset:(G.getBoundingClientRect().height-ea)/ev.scale,leftOffset:eo/ev.scale,scaleTo:ev.scale}),eE.current&&eE.current.classList.remove("rpv-search__highlight--current"),eE.current=Y,Y.classList.add("rpv-search__highlight--current"))}}}},[e_,ef]),eo.useEffect(function(){return en.subscribe("keyword",j),en.subscribe("matchPosition",N),en.subscribe("renderStatus",K),function(){en.unsubscribe("keyword",j),en.unsubscribe("matchPosition",N),en.unsubscribe("renderStatus",K)}},[]),eo.createElement("div",{className:"rpv-search__highlights","data-testid":"search__highlights-".concat(X),ref:ec},eu({getCssProperties:i,highlightAreas:e_}))},p=function(G){var Y=G.wholeWords?" ".concat(G.keyword," "):G.keyword,X=G.matchCase?"g":"gi";return{keyword:G.keyword,regExp:new RegExp(Y.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),X),wholeWords:G.wholeWords||!1}},g=function(G,Y,X){return G instanceof RegExp?{keyword:G.source,regExp:G,wholeWords:X||!1}:"string"==typeof G?""===G?ea:p({keyword:G,matchCase:Y||!1,wholeWords:X||!1}):(void 0!==Y&&(G.matchCase=Y),void 0!==X&&(G.wholeWords=X),p(G))},m=function(G){var Y,X,Q,en=G.get("initialKeyword"),ei=eo.useMemo(function(){if(en&&1===en.length){var G=g(en[0]);return{matchCase:-1===G.regExp.flags.indexOf("i"),wholeWords:G.wholeWords}}return{matchCase:!1,wholeWords:!1}},[]),ec=(Y=eo.useRef(G.get("doc")),X=function(G){Y.current=G},eo.useEffect(function(){return G.subscribe("doc",X),function(){G.unsubscribe("doc",X)}},[]),Y),el=eo.useState(en),eu=el[0],es=el[1],ef=eo.useState([]),ed=ef[0],ep=ef[1],em=eo.useState(0),eh=em[0],eg=em[1],ev=eo.useState(ei.matchCase),eb=ev[0],eE=ev[1],ey=eo.useRef([]),ew=eo.useState(ei.wholeWords),e_=ew[0],ek=ew[1],C=function(){return!0},eS=eo.useCallback(function(){return G.get("targetPageFilter")||C},[G.get("targetPageFilter")]),_=function(G){var Y=ed.length;if(0===eu.length||0===Y)return null;var X=G===Y+1?1:Math.max(1,Math.min(Y,G));return eg(X),T(ed[X-1])},I=function(G){return es(""===G?[]:[G])},T=function(Y){var X=G.get("jumpToPage");return X&&X(Y.pageIndex),G.update("matchPosition",{matchIndex:Y.matchIndex,pageIndex:Y.pageIndex}),Y},M=function(Y,X,Q){var en=ec.current;if(!en)return Promise.resolve([]);var eo=en.numPages,ea=Y.map(function(G){return g(G,X,Q)});return G.update("keyword",ea),eg(0),ep([]),new Promise(function(G,Y){var X;(0===ey.current.length?((X=ec.current)?Promise.all(Array(X.numPages).fill(0).map(function(G,Y){return er.getPage(X,Y).then(function(G){return G.getTextContent()}).then(function(G){return Promise.resolve({pageContent:G.items.map(function(G){return G.str||""}).join(""),pageIndex:Y})})})).then(function(G){return G.sort(function(G,Y){return G.pageIndex-Y.pageIndex}),Promise.resolve(G.map(function(G){return G.pageContent}))}):Promise.resolve([])).then(function(G){return ey.current=G,Promise.resolve(G)}):Promise.resolve(ey.current)).then(function(Y){var X=[];Y.forEach(function(G,Y){eS()({pageIndex:Y,numPages:eo})&&ea.forEach(function(Q){for(var en,er=0;null!==(en=Q.regExp.exec(G));)X.push({keyword:Q.regExp,matchIndex:er,pageIndex:Y,pageText:G,startIndex:en.index,endIndex:Q.regExp.lastIndex}),er++})}),ep(X),X.length>0&&(eg(1),T(X[0])),G(X)})})};return eo.useEffect(function(){ey.current=[]},[ec.current]),{clearKeyword:function(){G.update("keyword",[ea]),I(""),eg(0),ep([]),eE(!1),ek(!1)},changeMatchCase:function(G){eE(G),eu.length>0&&M(eu,G,e_)},changeWholeWords:function(G){ek(G),eu.length>0&&M(eu,eb,G)},currentMatch:eh,jumpToMatch:_,jumpToNextMatch:function(){return _(eh+1)},jumpToPreviousMatch:function(){return _(eh-1)},keywords:eu,matchCase:eb,numberOfMatches:ed.length,wholeWords:e_,search:function(){return M(eu,eb,e_)}
1,searchFor:M,setKeywords:es,keyword:0===eu.length?"":(Q=eu[0])instanceof RegExp?Q.source:"string"==typeof Q?Q:Q.keyword,setKeyword:I,setTargetPages:function(Y){G.update("targetPageFilter",Y)}}},v=function(G){var Y=G.children,X=G.store,Q=m(X),en=eo.useState(!1),er=en[0],ea=en[1],s=function(G){return ea(!0)};return eo.useEffect(function(){return X.subscribe("doc",s),function(){X.unsubscribe("doc",s)}},[]),Y(c(c({},Q),{isDocumentLoaded:er}))},x=function(G){var Y=G.containerRef,X=G.store,Q=eo.useRef(!1),c=function(){Q.current=!0},u=function(){Q.current=!1},i=function(G){var en=Y.current;en&&(G.shiftKey||G.altKey||"f"!==G.key||(er.isMac()?G.metaKey&&!G.ctrlKey:G.ctrlKey)&&(Q.current||document.activeElement&&en.contains(document.activeElement))&&(G.preventDefault(),X.update("areShortcutsPressed",!0)))};return eo.useEffect(function(){var G=Y.current;if(G)return document.addEventListener("keydown",i),G.addEventListener("mouseenter",c),G.addEventListener("mouseleave",u),function(){document.removeEventListener("keydown",i),G.removeEventListener("mouseenter",c),G.removeEventListener("mouseleave",u)}},[Y.current]),eo.createElement(eo.Fragment,null)},ei={left:0,top:8},E=function(G){var Y=G.store,X=G.onToggle,Q=eo.useContext(er.LocalizationContext).l10n,en=eo.useContext(er.ThemeContext).direction,ea=eo.useState(!1),ec=ea[0],el=ea[1],eu=eo.useState(!1),es=eu[0],ef=eu[1],ed=en===er.TextDirection.RightToLeft,ep=m(Y),em=ep.clearKeyword,eh=ep.changeMatchCase,eg=ep.changeWholeWords,ev=ep.currentMatch,eb=ep.jumpToNextMatch,eE=ep.jumpToPreviousMatch,ey=ep.keyword,ew=ep.matchCase,e_=ep.numberOfMatches,ek=ep.wholeWords,eS=ep.search,eC=ep.setKeyword,R=function(G){el(!0),eS().then(function(Y){el(!1),ef(!0),G&&G()})};eo.useEffect(function(){var G=Y.get("initialKeyword");G&&1===G.length&&ey&&R(function(){Y.update("initialKeyword",[])})},[]);var eP=Q&&Q.search?Q.search.enterToSearch:"Enter to search",eM=Q&&Q.search?Q.search.previousMatch:"Previous match",ex=Q&&Q.search?Q.search.nextMatch:"Next match",eI=Q&&Q.search?Q.search.close:"Close";return eo.createElement("div",{className:"rpv-search__popover"},eo.createElement("div",{className:"rpv-search__popover-input-counter"},eo.createElement(er.TextBox,{ariaLabel:eP,autoFocus:!0,placeholder:eP,type:"text",value:ey,onChange:function(G){ef(!1),eC(G)},onKeyDown:function(G){"Enter"===G.key&&ey&&(es?eb():R())}}),eo.createElement("div",{className:er.classNames({"rpv-search__popover-counter":!0,"rpv-search__popover-counter--ltr":!ed,"rpv-search__popover-counter--rtl":ed})},ec&&eo.createElement(er.Spinner,{testId:"search__popover-searching",size:"1rem"}),!ec&&eo.createElement("span",{"data-testid":"search__popover-num-matches"},ev,"/",e_))),eo.createElement("label",{className:"rpv-search__popover-label"},eo.createElement("input",{className:"rpv-search__popover-label-checkbox","data-testid":"search__popover-match-case",checked:ew,type:"checkbox",onChange:function(G){ef(!1),eh(G.target.checked)}})," ",Q&&Q.search?Q.search.matchCase:"Match case"),eo.createElement("label",{className:"rpv-search__popover-label"},eo.createElement("input",{className:"rpv-search__popover-label-checkbox",checked:ek,"data-testid":"search__popover-whole-words",type:"checkbox",onChange:function(G){ef(!1),eg(G.target.checked)}})," ",Q&&Q.search?Q.search.wholeWords:"Whole words"),eo.createElement("div",{className:"rpv-search__popover-footer"},eo.createElement("div",{className:"rpv-search__popover-footer-item"},eo.createElement(er.Tooltip,{ariaControlsSuffix:"search-previous-match",position:ed?er.Position.BottomRight:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaLabel:eM,isDisabled:ev<=1,onClick:eE},eo.createElement(o,null)),content:function(){return eM},offset:ei})),eo.createElement("div",{className:"rpv-search__popover-footer-item"},eo.createElement(er.Tooltip,{ariaControlsSuffix:"search-next-match",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaLabel:ex,isDisabled:ev>e_-1,onClick:eb},eo.createElement(n,null)),content:function(){return ex},offset:ei})),eo.createElement("div",{className:er.classNames({"rpv-search__popover-footer-button":!0,"rpv-search__popover-footer-button--ltr":!ed,"rpv-search__popover-footer-button--rtl":ed})},eo.createElement(er.Button,{onClick:function(){X(),em()}},eI))))},w=function(G){var Y=G.children,X=G.onClick,Q=eo.useContext(er.LocalizationContext).l10n,en=Q&&Q.search?Q.search.search:"Search";return Y({icon:eo.createElement(a,null),label:en,onClick:X})},ec={left:0,top:8},k=function(G){var Y=G.enableShortcuts,X=G.store,Q=G.onClick,en=Y?er.isMac()?"Meta+F":"Ctrl+F":"",u=function(G){G&&Q()};return eo.useEffect(function(){return X.subscribe("areShortcutsPressed",u),function(){X.unsubscribe("areShortcutsPressed",u)}},[]),eo.createElement(w,{onClick:Q}
1,function(G){return eo.createElement(er.Tooltip,{ariaControlsSuffix:"search-popover",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaKeyShortcuts:en,ariaLabel:G.label,testId:"search__popover-button",onClick:Q},G.icon),content:function(){return G.label},offset:ec})})},el={left:0,top:8},C=function(G){var Y=G.children,X=G.enableShortcuts,Q=G.store,en=eo.useContext(er.ThemeContext).direction===er.TextDirection.RightToLeft?er.Position.BottomRight:er.Position.BottomLeft,ea=Y||function(G){return eo.createElement(k,c({enableShortcuts:X,store:Q},G))};return eo.createElement(er.Popover,{ariaControlsSuffix:"search",lockScroll:!1,position:en,target:function(G){return ea({onClick:G})},content:function(G){return eo.createElement(E,{store:Q,onToggle:G})},offset:el,closeOnClickOutside:!1,closeOnEscape:!0})},P=function(G){return Array.isArray(G)?G.map(function(G){return g(G)}):[g(G)]};Y.NextIcon=n,Y.PreviousIcon=o,Y.SearchIcon=a,Y.searchPlugin=function(G){var Y=eo.useMemo(function(){return Object.assign({},{enableShortcuts:!0,onHighlightKeyword:function(){}},G)},[]),X=eo.useMemo(function(){return er.createStore({initialKeyword:G&&G.keyword?Array.isArray(G.keyword)?G.keyword:[G.keyword]:[],keyword:G&&G.keyword?P(G.keyword):[ea],matchPosition:{matchIndex:-1,pageIndex:-1},renderStatus:new Map})},[]),Q=m(X),en=Q.clearKeyword,ei=Q.jumpToMatch,ec=Q.jumpToNextMatch,el=Q.jumpToPreviousMatch,eu=Q.searchFor,es=Q.setKeywords,ef=Q.setTargetPages,y=function(G){return eo.createElement(C,c({enableShortcuts:Y.enableShortcuts},G,{store:X}))};return{install:function(Y){var Q=G&&G.keyword?Array.isArray(G.keyword)?G.keyword:[G.keyword]:[],en=G&&G.keyword?P(G.keyword):[ea];X.update("initialKeyword",Q),X.update("jumpToDestination",Y.jumpToDestination),X.update("jumpToPage",Y.jumpToPage),X.update("keyword",en)},renderPageLayer:function(Q){return eo.createElement(f,{key:Q.pageIndex,numPages:Q.doc.numPages,pageIndex:Q.pageIndex,renderHighlights:null==G?void 0:G.renderHighlights,store:X,onHighlightKeyword:Y.onHighlightKeyword})},renderViewer:function(G){var Q=G.slot;return Q.subSlot&&(Q.subSlot.children=eo.createElement(eo.Fragment,null,Y.enableShortcuts&&eo.createElement(x,{containerRef:G.containerRef,store:X}),Q.subSlot.children)),Q},uninstall:function(G){var Y=X.get("renderStatus");Y&&Y.clear()},onDocumentLoad:function(G){X.update("doc",G.doc)},onTextLayerRender:function(G){var Y=X.get("renderStatus");Y&&(Y=Y.set(G.pageIndex,G),X.update("renderStatus",Y))},Search:function(G){return eo.createElement(v,c({},G,{store:X}))},ShowSearchPopover:y,ShowSearchPopoverButton:function(){return eo.createElement(y,null,function(G){return eo.createElement(k,c({enableShortcuts:Y.enableShortcuts,store:X},G))})},clearHighlights:function(){en()},highlight:function(G){var Y=Array.isArray(G)?G:[G];return es(Y),eu(Y)},jumpToMatch:ei,jumpToNextMatch:ec,jumpToPreviousMatch:el,setTargetPages:ef}}},5099:function(G,Y,X){"use strict";G.exports=X(23746)},79162:function(G,Y,X){"use strict";var Q,en,er,eo=X(86096),ea=(Q=X(73884),en=Object.create(null),Q&&Object.keys(Q).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(Q,G);Object.defineProperty(en,G,Y.get?Y:{enumerable:!0,get:function(){return Q[G]}})}}),en.default=Q,Object.freeze(en)),c=function(){return ea.createElement(eo.Icon,{size:16},ea.createElement("path",{d:"M11.5,5.5v-2C11.5,2.672,12.172,2,13,2s1.5,0.672,1.5,1.5v2 M14.5,11.5v-6C14.5,4.672,15.172,4,16,4\n c0.828,0,1.5,0.672,1.5,1.5v3 M17.5,13V8.5C17.5,7.672,18.172,7,19,7s1.5,0.672,1.5,1.5v10c0,2.761-2.239,5-5,5h-3.335\n c-1.712-0.001-3.305-0.876-4.223-2.321C6.22,18.467,4.083,14,4.083,14c-0.378-0.545-0.242-1.292,0.303-1.67\n c0.446-0.309,1.044-0.281,1.458,0.07L8.5,15.5v-10C8.5,4.672,9.172,4,10,4s1.5,0.672,1.5,1.5v6"}))},r=function(){return(r=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)};Y.SelectionMode=void 0,(er=Y.SelectionMode||(Y.SelectionMode={})).Hand="Hand",er.Text="Text";var i=function(){return ea.createElement(eo.Icon,{size:16},ea.createElement("path",{d:"M13.675,11.671l2.941-2.941c0.195-0.196,0.195-0.512-0.001-0.707C16.563,7.971,16.5,7.931,16.43,7.906\n L4.168,3.527C3.908,3.434,3.622,3.57,3.529,3.83c-0.039,0.109-0.039,0.228,0,0.336l4.379,12.262\n c0.
1093,0.26,0.379,0.396,0.639,0.303c0.07-0.025,0.133-0.065,0.185-0.117l2.943-2.943l6.146,6.146c0.195,0.195,0.512,0.195,0.707,0\n l1.293-1.293c0.195-0.195,0.195-0.512,0-0.707L13.675,11.671z"}))},l=function(G){var X=G.children,Q=G.mode,en=G.onClick,er=ea.useContext(eo.LocalizationContext).l10n,ei="",ec=ea.createElement(i,null);switch(Q){case Y.SelectionMode.Hand:ei=er&&er.selectionMode?er.selectionMode.handTool:"Hand tool",ec=ea.createElement(c,null);break;case Y.SelectionMode.Text:default:ei=er&&er.selectionMode?er.selectionMode.textSelectionTool:"Text selection tool",ec=ea.createElement(i,null)}return X({icon:ec,label:ei,onClick:en})},ei={left:0,top:8},u=function(G){var X=G.isSelected,Q=G.mode,en=G.onClick,er="";switch(Q){case Y.SelectionMode.Hand:er="selection-mode__hand-button";break;case Y.SelectionMode.Text:default:er="selection-mode__text-button"}return ea.createElement(l,{mode:Q,onClick:en},function(G){return ea.createElement(eo.Tooltip,{ariaControlsSuffix:"selection-mode-switch",position:eo.Position.BottomCenter,target:ea.createElement(eo.MinimalButton,{ariaLabel:G.label,isSelected:X,testId:er,onClick:G.onClick},G.icon),content:function(){return G.label},offset:ei})})},a=function(G){var Y=G.children,X=G.mode,Q=G.store,en=X===Q.get("selectionMode");return(Y||function(G){return ea.createElement(u,{isSelected:en,mode:G.mode,onClick:G.onClick})})({isSelected:en,mode:X,onClick:function(){return Q.update("selectionMode",X)}})},d=function(G){var X=G.isSelected,Q=G.mode,en=G.onClick,er="";switch(Q){case Y.SelectionMode.Hand:er="selection-mode__hand-menu";break;case Y.SelectionMode.Text:default:er="selection-mode__text-menu"}return ea.createElement(l,{mode:Q,onClick:en},function(G){return ea.createElement(eo.MenuItem,{checked:X,icon:G.icon,testId:er,onClick:G.onClick},G.label)})},m=function(G){var X=G.store,Q=ea.useRef(null),en=ea.useState(Y.SelectionMode.Text),er=en[0],eo=en[1],ei=ea.useRef({top:0,left:0,x:0,y:0}),s=function(G){var Y=Q.current;Y&&(Y.scrollTop=ei.current.top-(G.clientY-ei.current.y),Y.scrollLeft=ei.current.left-(G.clientX-ei.current.x))},u=function(){var G=Q.current;G&&(G.classList.add("rpv-selection-mode__grab"),G.classList.remove("rpv-selection-mode__grabbing"),document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",u))},a=function(G){var X=Q.current;X&&er!==Y.SelectionMode.Text&&(X.classList.remove("rpv-selection-mode__grab"),X.classList.add("rpv-selection-mode__grabbing"),G.preventDefault(),G.stopPropagation(),ei.current={left:X.scrollLeft,top:X.scrollTop,x:G.clientX,y:G.clientY},document.addEventListener("mousemove",s),document.addEventListener("mouseup",u))},d=function(G){Q.current=G()},m=function(G){eo(G)};return ea.useEffect(function(){var G=Q.current;if(G)return er===Y.SelectionMode.Hand?G.classList.add("rpv-selection-mode__grab"):G.classList.remove("rpv-selection-mode__grab"),G.addEventListener("mousedown",a),function(){G.removeEventListener("mousedown",a)}},[er]),ea.useEffect(function(){return X.subscribe("getPagesContainer",d),X.subscribe("selectionMode",m),function(){X.unsubscribe("getPagesContainer",d),X.unsubscribe("selectionMode",m)}},[]),ea.createElement(ea.Fragment,null)};Y.HandToolIcon=c,Y.TextSelectionIcon=i,Y.selectionModePlugin=function(G){var X=ea.useMemo(function(){return eo.createStore()},[]),c=function(G){return ea.createElement(a,r({},G,{store:X}))};return{install:function(Q){X.update("selectionMode",G&&G.selectionMode?G.selectionMode:Y.SelectionMode.Text),X.update("getPagesContainer",Q.getPagesContainer)},renderViewer:function(G){var Y=G.slot;return Y.subSlot&&Y.subSlot.children&&(Y.subSlot.children=ea.createElement(ea.Fragment,null,ea.createElement(m,{store:X}),Y.subSlot.children)),Y},SwitchSelectionMode:c,SwitchSelectionModeButton:function(G){return ea.createElement(c,{mode:G.mode},function(G){return ea.createElement(u,{isSelected:G.isSelected,mode:G.mode,onClick:function(){G.onClick()}})})},SwitchSelectionModeMenuItem:function(G){return ea.createElement(c,{mode:G.mode},function(Y){return ea.createElement(d,{isSelected:Y.isSelected,mode:Y.mode,onClick:function(){Y.onClick(),G.onClick()}})})}}}},74145:function(G,Y,X){"use strict";
1G.exports=X(79162)},42030:function(G,Y,X){"use strict";var Q,en,er=X(86096),eo=(Q=X(73884),en=Object.create(null),Q&&Object.keys(Q).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(Q,G);Object.defineProperty(en,G,Y.get?Y:{enumerable:!0,get:function(){return Q[G]}})}}),en.default=Q,Object.freeze(en)),r=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M19.5,15.106l2.4-2.4a1,1,0,0,0,0-1.414l-2.4-2.4V5.5a1,1,0,0,0-1-1H15.106l-2.4-2.4a1,1,0,0,0-1.414,0l-2.4,2.4H5.5a1,1,0,0,0-1,1V8.894l-2.4,2.4a1,1,0,0,0,0,1.414l2.4,2.4V18.5a1,1,0,0,0,1,1H8.894l2.4,2.4a1,1,0,0,0,1.414,0l2.4-2.4H18.5a1,1,0,0,0,1-1Z"}),eo.createElement("path",{d:"M10,6.349a6,6,0,0,1,0,11.3,6,6,0,1,0,0-11.3Z"}))},c=function(){return eo.createElement(er.Icon,{size:16},eo.createElement("path",{d:"M19.491,15.106l2.4-2.4a1,1,0,0,0,0-1.414l-2.4-2.4V5.5a1,1,0,0,0-1-1H15.1L12.7,2.1a1,1,0,0,0-1.414,0l-2.4,2.4H5.491a1,1,0,0,0-1,1V8.894l-2.4,2.4a1,1,0,0,0,0,1.414l2.4,2.4V18.5a1,1,0,0,0,1,1H8.885l2.4,2.4a1,1,0,0,0,1.414,0l2.4-2.4h3.394a1,1,0,0,0,1-1Z"}),eo.createElement("path",{d:"M11.491,6c4,0,6,2.686,6,6s-2,6-6,6Z"}))},o=function(){return(o=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)},ea={left:0,top:8},i=function(G){var Y=G.onClick,X=eo.useContext(er.ThemeContext),Q=eo.useContext(er.LocalizationContext).l10n,en="dark"===X.currentTheme,ei=Q&&Q.theme?en?Q.theme.switchLightTheme:Q.theme.switchDarkTheme:en?"Switch to the light theme":"Switch to the dark theme";return eo.createElement(er.Tooltip,{ariaControlsSuffix:"theme-switch",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaLabel:ei,testId:"theme__switch-button",onClick:Y},en?eo.createElement(c,null):eo.createElement(r,null)),content:function(){return ei},offset:ea})},l=function(G){var Y=G.children,X=eo.useContext(er.ThemeContext);return(Y||function(G){return eo.createElement(i,{onClick:G.onClick})})({onClick:function(){return X.setCurrentTheme("dark"===X.currentTheme?"light":"dark")}})},u=function(G){var Y=G.onClick,X=eo.useContext(er.ThemeContext),Q=eo.useContext(er.LocalizationContext).l10n,en="dark"===X.currentTheme,ea=Q&&Q.theme?en?Q.theme.switchLightTheme:Q.theme.switchDarkTheme:en?"Switch to the light theme":"Switch to the dark theme";return eo.createElement(er.MenuItem,{icon:en?eo.createElement(c,null):eo.createElement(r,null),testId:"theme__switch-menu",onClick:Y},ea)};Y.DarkIcon=r,Y.LightIcon=c,Y.themePlugin=function(){var e=function(G){return eo.createElement(l,o({},G))};return{SwitchTheme:e,SwitchThemeButton:function(){return eo.createElement(e,null,function(G){return eo.createElement(i,o({},G))})},SwitchThemeMenuItem:function(G){return eo.createElement(e,null,function(Y){return eo.createElement(u,{onClick:function(){Y.onClick(),G.onClick()}})})}}}},81692:function(G,Y,X){"use strict";G.exports=X(42030)},3146:function(G,Y,X){"use strict";var Q,en,er,eo=X(86096),ea=(Q=X(73884),en=Object.create(null),Q&&Object.keys(Q).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(Q,G);Object.defineProperty(en,G,Y.get?Y:{enumerable:!0,get:function(){return Q[G]}})}}),en.default=Q,Object.freeze(en));Y.ThumbnailDirection=void 0,(er=Y.ThumbnailDirection||(Y.ThumbnailDirection={})).Horizontal="Horizontal",er.Vertical="Vertical";var i=function(){return(i=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)},r=function(G){var Y=G.doc,X=G.getPageIndex,Q=G.renderSpinner,en=G.store,er=G.width,ei=Y.numPages,ec=Math.max(0,Math.min(X?X({numPages:ei}):0,ei-1)),el=en.get("pagesRotation")||new Map,eu=el.has(ec)?el.get(ec):0,es=ea.useState(""),ef=es[0],ed=es[1],ep=eo.useIsMounted(),em=ea.useRef(),eh=ea.useState(en.get("rotation")||0),eg=eh[0],ev=eh[1],eb=ea.useState(eu),eE=eb[0],ey=eb[1],ew=ea.useState(!1),e_=ew[0],ek=ew[1],M=function(G){ey(G.has(ec)?G.get(ec):0)},I=function(G){ev(G)},eS=eo.useIntersectionObserver({onVisibilityChanged:function(G){ek(G.isVisible)}});return ea.useEffect(function(){if(e_){var G=eS.current;G&&(ed(""),eo.getPage(Y,ec).then(function(Y){var X=Y.getViewport({scale:1}),Q=(X.rotation+eg+eE)%360,en=Math.abs(eg+eE)%180==0,eo=en?X.width:X.height,ea=en?X.height:X.width,ei=document.createElement("canvas"),ec=ei.getContext("2d",{alpha:!1}),el=G.clientWidth,eu=G.clientHeight,es=er?er/eo:Math.min(el/eo,eu/ea);ei.height=es*ea,ei.width=es*eo,ei.style.opacity="0";var ef=Y.getViewport({rotation:Q,scale:es});em.current=Y.render({canvasContext:ec,viewport:ef}),em.current.promise.then(function(){ep.current&&ed(ei.toDataURL()),ei.width=0,ei.height=0},function(){})}))}},[eE,e_]),ea.useEffect(function(){return en.subscribe("pagesRotation",M),en.subscribe("rotation",I),function(){en.unsubscribe("pagesRotation",M),en.unsubscribe("rotation",I)}},[]),ea.useEffect(function(){return function(){var G;null===(G=em.current)||void 0===G||G.cancel()}},[]),ea.createElement("div",{ref:eS,className:"rpv-thumbnail__cover-inner","data-testid":"thumbnail__cover-inner"},ef?ea.createElement("img",{className:"rpv-thumbnail__cover-image","data-testid":"thumbnail__cover-image",src:ef}):ea.createElement("div",{className:"rpv-thumbnail__cover-loader","data-testid":"thumbnail__cover-loader"},Q?Q():ea.createElement(eo.Spinner,null)))}
1,o=function(G){var Y=G.getPageIndex,X=G.renderSpinner,Q=G.store,en=G.width,er=ea.useState(Q.get("doc")),ei=er[0],ec=er[1],d=function(G){ec(G)};return ea.useEffect(function(){return Q.subscribe("doc",d),function(){Q.unsubscribe("doc",d)}},[]),ea.createElement("div",{className:"rpv-thumbnail__cover"},ei?ea.createElement(r,{doc:ei,getPageIndex:Y,renderSpinner:X,store:Q,width:en}):ea.createElement("div",{className:"rpv-thumbnail__cover-loader"},X?X():ea.createElement(eo.Spinner,null)))},u=function(){return ea.createElement(eo.Spinner,null)},ei=ea.createContext({renderSpinner:u}),l=function(G){var Y=G.children,X=G.doc,Q=eo.useIsMounted(),en=ea.useState({loading:!0,labels:[]}),er=en[0],ei=en[1];return ea.useEffect(function(){X.getPageLabels().then(function(G){Q.current&&ei({loading:!1,labels:G||[]})})},[X.loadingTask.docId]),er.loading?ea.createElement(ea.Fragment,null):Y(er.labels)},s=function(G){var Y=G.page,X=G.pageHeight,Q=G.pageIndex,en=G.pageWidth,er=G.rotation,ec=G.thumbnailHeight,el=G.thumbnailWidth,eu=G.onRenderCompleted,es=ea.useContext(eo.LocalizationContext).l10n,ef=ea.useRef(),ed=ea.useState(""),ep=ed[0],em=ed[1],eh=es&&es.thumbnail?es.thumbnail.thumbnailLabel:"Thumbnail of page {{pageIndex}}";return ea.useEffect(function(){var G=ef.current;G&&G.cancel();var eo=document.createElement("canvas"),ea=eo.getContext("2d",{alpha:!1}),ei=el/(en/X),ec=el/en;eo.height=ei,eo.width=el,eo.style.height="".concat(ei,"px"),eo.style.width="".concat(el,"px");var es=Y.getViewport({rotation:er,scale:ec});return ef.current=Y.render({canvasContext:ea,viewport:es}),ef.current.promise.then(function(){em(eo.toDataURL()),eu(Q)},function(){eu(Q)}),function(){var G;null===(G=ef.current)||void 0===G||G.cancel()}},[er]),ep?ea.createElement("img",{"aria-label":eh.replace("{{pageIndex}}","".concat(Q+1)),src:ep,height:"".concat(ec,"px"),width:"".concat(el,"px")}):ea.useContext(ei).renderSpinner()},d=function(G){var Y=G.doc,X=G.pageHeight,Q=G.pageIndex,en=G.pageRotation,er=G.pageWidth,ec=G.rotation,el=G.shouldRender,eu=G.thumbnailWidth,es=G.onRenderCompleted,ef=G.onVisibilityChanged,ed=eo.useIsMounted(),ep=ea.useState({height:X,page:null,viewportRotation:0,width:er}),em=ep[0],eh=ep[1],eg=em.page,ev=em.height,eb=em.width,eE=eb/ev,ey=Math.abs(ec+en)%180==0,ew=ey?eu:eu/eE,e_=ey?eu/eE:eu;ea.useEffect(function(){el&&eo.getPage(Y,Q).then(function(G){var Y=G.getViewport({scale:1});ed.current&&eh({height:Y.height,page:G,viewportRotation:Y.rotation,width:Y.width})})},[el]);var ek=(em.viewportRotation+ec+en)%360,eS=eo.useIntersectionObserver({onVisibilityChanged:function(G){ef(Q,G)}});return ea.createElement("div",{className:"rpv-thumbnail__container","data-testid":"thumbnail__container-".concat(Q),ref:eS,style:{height:"".concat(e_,"px"),width:"".concat(ew,"px")}},eg?ea.createElement(s,{page:eg,pageHeight:ey?ev:eb,pageIndex:Q,pageWidth:ey?eb:ev,rotation:ek,thumbnailHeight:e_,thumbnailWidth:ew,onRenderCompleted:es}):ea.useContext(ei).renderSpinner())},g=function(G){var X=G.currentPage,Q=G.doc,en=G.labels,er=G.pagesRotation,ei=G.pageHeight,ec=G.pageWidth,el=G.renderCurrentPageLabel,eu=G.renderThumbnailItem,es=G.rotatedPage,ef=G.rotation,ed=G.thumbnailDirection,ep=G.thumbnailWidth,em=G.viewMode,eh=G.onJumpToPage,eg=G.onRotatePage,ev=Q.numPages,eb=Q.loadingTask.docId,eE=ea.useRef(null),ey=ea.useRef([]),ew=ea.useState(X),e_=ew[0],ek=ew[1],eS=ea.useContext(eo.ThemeContext).direction===eo.TextDirection.RightToLeft,eC=ea.useState(-1),eP=eC[0],eM=eC[1],ex=eo.useIsMounted(),eI=eo.usePrevious(em),eR=ea.useRef(!1),eL=eo.useRenderQueue({doc:Q}),eT=ea.useMemo(function(){return Array(ev).fill(0).map(function(G,Y){return Y})},[eb]),eB=ea.useMemo(function(){switch(em){case eo.ViewMode.DualPage:return eo.chunk(eT,2);case eo.ViewMode.DualPageWithCover:return[[eT[0]]].concat(eo.chunk(eT.slice(1),2));case eo.ViewMode.SinglePage:default:return eo.chunk(eT,1)}},[eb,em]),H=function(){if(eE.current){var G=ey.current,Y=e_+1;Y<G.length&&(e_>=0&&G[e_].setAttribute("tabindex","-1"),ek(Y))}},N=function(){if(eE.current){var G=ey.current,Y=e_-1;Y>=0&&(e_>=0&&G[e_].setAttribute("tabindex","-1"),ek(Y))}},O=function(){e_>=0&&e_<ev&&eh(e_)};eo.useIsomorphicLayoutEffect(function(){var G=eE.current;G&&(ey.current=Array.from(G.querySelectorAll(".rpv-thumbnail__item")))},[em]),ea.useEffect(function(){var G=ey.current;if(!(0===G.length||e_<0||e_>G.length)){var Y=G[e_];Y.setAttribute("tabindex","0"),Y.focus()}},[e_]),eo.useIsomorphicLayoutEffect(function(){var G=eE.current,Q=ey.current;if(!(!G||0===Q.length||X<0||X>Q.length)){var en,er,eo,ea,ei,ec,el=Q[X].closest(".rpv-thumbnail__items");el&&(ed===Y.ThumbnailDirection.Vertical?(en=el.getBoundingClientRect().top-G.getBoundingClientRect().top,er=el.clientHeight,eo=G.clientHeight,en<0?G.scrollTop+=en:en+er<=eo||(G.scrollTop+=en+er-eo)):(ea=el.getBoundingClientRect().left-G.getBoundingClientRect().left,ei=el.clientWidth,ec=G.clientWidth,ea<0?G.scrollLeft+=ea:ea+ei<=ec||(G.scrollLeft+=ea+ei-ec)))}},[X,ed]);var eO=ea.useCallback(function(G){ex.current&&(eL.markRendered(G),eR.current=!1,eN())},[eb]),eD=ea.useCallback(function(G,Y){Y.isVisible?eL.setVisibility(G,Y.ratio):eL.setOutOfRange(G),eN()},[eb]),eN=ea.useCallback(function(){if(!eR.current){var G=eL.getHighestPriorityPage();G>-1&&(eL.markRendering(G),eR.current=!0,eM(G))}},[eb]);return ea.useEffect(function(){es>=0&&(eL.markRendering(es),eR.current=!0,eM(es))},[eb,es]),eo.useIsomorphicLayoutEffect(function(){eI!==em&&(eL.markNotRendered(),eN())},[em]),ea.createElement("div",{ref:eE,"data-testid":"thumbnail__list",className:eo.classNames({"rpv-thumbnail__list":!0,"rpv-thumbnail__list--horizontal":ed===Y.ThumbnailDirection.Horizontal,"rpv-thumbnail__list--rtl":eS,"rpv-thumbnail__list--vertical":ed===Y.ThumbnailDirection.Vertical}),onKeyDown:function(G){switch(G.key){case"ArrowDown":H();break;case"ArrowUp":N();break;case"Enter":O()}}},eB.map(function(G,Y){var es=!1;switch(em){case eo.ViewMode.DualPage:es=X===2*Y||X===2*Y+1;break;case eo.ViewMode.DualPageWithCover:es=0===X&&0===Y||Y>0&&X===2*Y-1||Y>0&&X===2*Y;break;case eo.ViewMode.SinglePage:default:es=X===Y}return ea.createElement("div",{className:eo.classNames({"rpv-thumbnail__items":!0,"rpv-thumbnail__items--dual":em===eo.ViewMode.DualPage,"rpv-thumbnail__items--dual-cover":em===eo.ViewMode.DualPageWithCover,"rpv-thumbnail__items--single":em===eo.ViewMode.SinglePage,"rpv-thumbnail__items--selected":es}),key:"".concat(Y,"___").concat(em)},G.map(function(G){var Y,es,ed,eb,eE,ey;return Y=em===eo.ViewMode.DualPageWithCover&&(0===G||ev%2==0&&G===ev-1),es="".concat(Q.loadingTask.docId,"___").concat(G),ed=en.length===ev?en[G]:"".concat(G+1),eb=el?el({currentPage:X,pageIndex:G,numPages:ev,pageLabel:ed}):ed,eE=er.has(G)?er.get(G):0,ey=ea.createElement(d,{doc:Q,pageHeight:ei,pageIndex:G,pageRotation:eE,pageWidth:ec,rotation:ef,shouldRender:eP===G,thumbnailWidth:ep,onRenderCompleted:eO,onVisibilityChanged:eD}),eu?eu({currentPage:X,key:es,numPages:ev,pageIndex:G,renderPageLabel:ea.createElement(ea.Fragment,null,eb),renderPageThumbnail:ey,onJumpToPage:function(){return eh(G)},onRotatePage:function(Y){return eg(G,Y)}}):ea.createElement("div",{key:es},ea.createElement("div",{className:eo.classNames({"rpv-thumbnail__item":!0,"rpv-thumbnail__item--dual-even":em===eo.ViewMode.DualPage&&G%2==0,"rpv-thumbnail__item--dual-odd":em===eo.ViewMode.DualPage&&G%2==1,"rpv-thumbnail__item--dual-cover":Y,"rpv-thumbnail__item--dual-cover-even":em===eo.ViewMode.DualPageWithCover&&!Y&&G%2==0,"rpv-thumbnail__item--dual-cover-odd":em===eo.ViewMode.DualPageWithCover&&!Y&&G%2==1,"rpv-thumbnail__item--single":em===eo.ViewMode.SinglePage,"rpv-thumbnail__item--selected":X===G}),role:"button",tabIndex:X===G?0:-1,onClick:function(){return eh(G)}},ey),ea.createElement("div",{"data-testid":"thumbnail__label-".concat(G),className:"rpv-thumbnail__label"},eb))}))}))},h=function(G){var Y=G.renderCurrentPageLabel,X=G.renderThumbnailItem,Q=G.store,en=G.thumbnailDirection,er=G.thumbnailWidth,ec=ea.useState(Q.get("doc")),el=ec[0],eu=ec[1],es=ea.useState(Q.get("currentPage")||0),ef=es[0],ed=es[1],ep=ea.useState(Q.get("pageHeight")||0),em=ep[0],eh=ep[1],eg=ea.useState(Q.get("pageWidth")||0),ev=eg[0],eb=eg[1],eE=ea.useState(Q.get("rotation")||0),ey=eE[0],ew=eE[1],e_=ea.useState(Q.get("pagesRotation")||new Map),ek=e_[0],eS=e_[1],eC=ea.useState(Q.get("rotatedPage")||-1),eP=eC[0],eM=eC[1],ex=ea.useState(Q.get("viewMode")),eI=ex[0],eR=ex[1],L=function(G){ed(G)},H=function(G){eu(G)},N=function(G){eh(G)},O=function(G){eb(G)},j=function(G){ew(G)},A=function(G){eS(G)},z=function(G){eM(G)},B=function(G){eR(G)},q=function(G){var Y=Q.get("jumpToPage");Y&&Y(G)},J=function(G,Y){Q.get("rotatePage")(G,Y)};return ea.useEffect(function(){return Q.subscribe("doc",H),Q.subscribe("pageHeight",N),Q.subscribe("pageWidth",O),Q.subscribe("rotatedPage",z),Q.subscribe("rotation",j),Q.subscribe("pagesRotation",A),Q.subscribe("viewMode",B),function(){Q.unsubscribe("doc",H),Q.unsubscribe("pageHeight",N),Q.unsubscribe("pageWidth",O),Q.unsubscribe("rotatedPage",z),Q.unsubscribe("rotation",j),Q.unsubscribe("pagesRotation",A),Q.unsubscribe("viewMode",B)}},[]),eo.useIsomorphicLayoutEffect(function(){return Q.subscribe("currentPage",L),function(){Q.unsubscribe("currentPage",L)}},[]),el?ea.createElement(eo.LazyRender,{testId:"thumbnail__list-container",attrs:{className:"rpv-thumbnail__list-container"}},ea.createElement(l,{doc:el},function(G){return ea.createElement(g,{currentPage:ef,doc:el,labels:G,pagesR
1otation:ek,pageHeight:em,pageWidth:ev,renderCurrentPageLabel:Y,renderThumbnailItem:X,rotatedPage:eP,rotation:ey,thumbnailDirection:en,thumbnailWidth:er,viewMode:eI,onJumpToPage:q,onRotatePage:J})})):ea.createElement("div",{"data-testid":"thumbnail-list__loader",className:"rpv-thumbnail__loader"},ea.useContext(ei).renderSpinner())};Y.thumbnailPlugin=function(G){var X=ea.useMemo(function(){return eo.createStore({rotatePage:function(){},viewMode:eo.ViewMode.SinglePage})},[]),Q=ea.useState(""),en=Q[0],er=Q[1];return{install:function(G){X.update("jumpToPage",G.jumpToPage),X.update("rotatePage",G.rotatePage)},onDocumentLoad:function(G){er(G.doc.loadingTask.docId),X.update("doc",G.doc)},onViewerStateChange:function(G){return X.update("currentPage",G.pageIndex),X.update("pagesRotation",G.pagesRotation),X.update("pageHeight",G.pageHeight),X.update("pageWidth",G.pageWidth),X.update("rotation",G.rotation),X.update("rotatedPage",G.rotatedPage),X.update("viewMode",G.viewMode),G},Cover:function(Y){return ea.createElement(o,i({},Y,{renderSpinner:null==G?void 0:G.renderSpinner,store:X}))},Thumbnails:ea.useCallback(function(Q){return ea.createElement(ei.Provider,{value:{renderSpinner:(null==G?void 0:G.renderSpinner)||u}},ea.createElement(h,{renderCurrentPageLabel:null==G?void 0:G.renderCurrentPageLabel,renderThumbnailItem:null==Q?void 0:Q.renderThumbnailItem,store:X,thumbnailDirection:(null==Q?void 0:Q.thumbnailDirection)||Y.ThumbnailDirection.Vertical,thumbnailWidth:(null==G?void 0:G.thumbnailWidth)||100}))},[en])}}},11261:function(G,Y,X){"use strict";G.exports=X(3146)},62814:function(G,Y,X){"use strict";var Q,en=X(86096),er=X(74145),eo=X(73884),ea=X(83145),ei=X(77410),ec=X(20887),el=X(55541),eu=X(76774),es=X(32062),ef=X(48808),ed=X(80454),ep=X(5099),em=X(81692),eh=X(56092),eg=(Q=Object.create(null),eo&&Object.keys(eo).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(eo,G);Object.defineProperty(Q,G,Y.get?Y:{enumerable:!0,get:function(){return eo[G]}})}}),Q.default=eo,Object.freeze(Q)),E=function(){return eg.createElement(en.Icon,{size:16},eg.createElement("path",{d:"M12,0.5c1.381,0,2.5,1.119,2.5,2.5S13.381,5.5,12,5.5S9.5,4.381,9.5,3S10.619,0.5,12,0.5z\n M12,9.5\n c1.381,0,2.5,1.119,2.5,2.5s-1.119,2.5-2.5,2.5S9.5,13.381,9.5,12S10.619,9.5,12,9.5z\n M12,18.5c1.381,0,2.5,1.119,2.5,2.5\n s-1.119,2.5-2.5,2.5S9.5,22.381,9.5,21S10.619,18.5,12,18.5z"}))},ev={left:0,top:8},P=function(G){var Y=G.toolbarSlot,X=eg.useContext(en.LocalizationContext).l10n,Q=eg.useContext(en.ThemeContext).direction===en.TextDirection.RightToLeft?en.Position.BottomLeft:en.Position.BottomRight,eo=Y.DownloadMenuItem,ea=Y.EnterFullScreenMenuItem,ei=Y.GoToFirstPageMenuItem,ec=Y.GoToLastPageMenuItem,el=Y.GoToNextPageMenuItem,eu=Y.GoToPreviousPageMenuItem,es=Y.OpenMenuItem,ef=Y.PrintMenuItem,ed=Y.RotateBackwardMenuItem,ep=Y.RotateForwardMenuItem,em=Y.ShowPropertiesMenuItem,eh=Y.SwitchScrollModeMenuItem,eb=Y.SwitchSelectionModeMenuItem,eE=Y.SwitchViewModeMenuItem,ey=Y.SwitchThemeMenuItem;return eg.createElement(en.Popover,{ariaControlsSuffix:"toolbar-more-actions",ariaHasPopup:"menu",position:Q,target:function(G,Y){var er=X&&X.toolbar?X.toolbar.moreActions:"More actions";return eg.createElement(en.Tooltip,{ariaControlsSuffix:"toolbar-more-actions",position:Q,target:eg.createElement(en.MinimalButton,{ariaLabel:er,isSelected:Y,testId:"toolbar__more-actions-popover-target",onClick:G},eg.createElement(E,null)),content:function(){return er},offset:ev})},content:function(G){return eg.createElement(en.Menu,null,eg.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},eg.createElement(ey,{onClick:G})),eg.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},eg.createElement(ea,{onClick:G})),eg.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},eg.createElement(es,null)),eg.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},eg.createElement(ef,{onClick:G})),eg.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},eg.createElement(eo,{onClick:G})),eg.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},eg.createElement(en.MenuDivider,null)),eg.createElement(ei,{onClick:G}),eg.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},eg.createElement(eu,{onClick:G})),eg.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},eg.createElement(el,{onClick:G})),eg.createElement(ec,{onClick:G}),eg.createElement(en.MenuDivider,null),eg.createElement(ep,{onClick:G}),eg.createElement(ed,{onClick:G}),eg.createElement(en.MenuDivider,null),eg.createElement(eb,{mode:er.SelectionMode.Text,onClick:G}),eg.createElement(eb,{mode:er.SelectionMode.Hand,onClick:G}),eg.createElement(en.MenuDivider,null),eg.createElement(eh,{mode:en.ScrollMode.Page,onClick:G}),eg.createElement(eh,{mode:en.ScrollMode.Vertical,onClick:G}),eg.createElement(eh,{mode:en.ScrollMode.Horizontal,onClick:G}),eg.createElement(eh,{mode:en.ScrollMode.Wrapped,onClick:G}),eg.createElement(en.MenuDivider,null),eg.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},eg.createElement(eE,{mode:en.ViewMode.SinglePage,onClick:G})),eg.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},eg.createElement(eE,{mode:en.ViewMode.DualPage,onClick:G})),eg.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},eg.createElement(eE,{mode:en.ViewMode.DualPageWithCover,onClick:G})),eg.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},eg.createElement(en.MenuDivider,null)),eg.createElement(em,{onClick:G}))},offset:ev,closeOnClickOutside:!0,closeOnEscape:!0})},M=function(){return(M=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)},h=function(G){return function(Y){var X=eg.useMemo(function(){return G(Y)},[]),Q=eg.useContext(en.ThemeContext).direction===en.TextDirection.RightToLeft,er=X.CurrentPageInput,eo=X.Download,ea=X.EnterFullScreen,ei=X.GoToNextPage,ec=X.GoToPreviousPage,el=X.NumberOfPages,eu=X.Open,es=X.Print,ef=X.ShowSearchPopover,ed=X.SwitchTheme,ep=X.Zoom,em=X.ZoomIn,eh=X.ZoomOut;return eg.createElement("div",{"data-testid":"toolbar",className:en.classNames({"rpv-toolbar":!0,"rpv-toolbar--rtl":Q}),role:"toolbar","aria-orientation":"horizontal"},eg.createElement("div",{className:"rpv-toolbar__left"},eg.createElement("div",{className:"rpv-toolbar__item"},eg.createElement(ef,null)),eg.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},eg.createElement("div",{className:"rpv-toolbar__item"},eg.createElement(ec,null))),eg.createElement("div",{className:"rpv-toolbar__item"},eg.createElement(er,null),eg.createElement("span",{className:"rpv-toolbar__label"},eg.createElement(el,null))),eg.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},eg.createElement("div",{className:"rpv-toolbar__item"},eg.createElement(ei,null)))),eg.createElement("div",{className:"rpv-toolbar__center"},eg.createElement("div",{className:"rpv-toolbar__item"},eg.createElement(eh,null)),eg.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},eg.createElement("div",{className:"rpv-toolbar__item"},eg.createElement(ep,null))),eg.createElement("div",{className:"rpv-toolbar__item"},eg.createElement(em,null))),eg.createElement("div",{className:"rpv-toolbar__right"},eg.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-medium"},eg.createElement("div",{className:"rpv-toolbar__item"},eg.createElement(ed,null))),eg.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-medium"},eg.createElement("div",{className:"rpv-toolbar__item"},eg.createElement(ea,null))),eg.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-medium"},eg.createElement("div",{className:"rpv-toolbar__item"},eg.createElement(eu,null))),eg.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-medium"},eg.createElement("div",{className:"rpv-toolbar__item"},eg.createElement(eo,null))),eg.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-medium"},eg.createElement("div",{className:"rpv-toolbar__item"},eg.createElement(es,null))),eg.createElement("div",{className:"rpv-toolbar__item"},eg.createElement(P,{toolbarSlot:X}))))}},f=function(G){var Y=G.NumberOfPages;return Object.assign({},G,{NumberOfPages:function(){return eg.createElement(eg.Fragment,null,"/ ",eg.createElement(Y,null))}})},I=function(G){return(G.children||function(G){return h(f)(G)})(G.slot)};
1Y.MoreActionsPopover=P,Y.MoreIcon=E,Y.toolbarPlugin=function(G){var Y=ea.fullScreenPlugin(G?G.fullScreenPlugin:{}),X=ei.getFilePlugin(G?G.getFilePlugin:{}),Q=ec.openPlugin(G?G.openPlugin:{}),en=el.pageNavigationPlugin(G?G.pageNavigationPlugin:{}),eo=eu.printPlugin(G?G.printPlugin:{}),ev=es.propertiesPlugin(),eb=ef.rotatePlugin(),eE=ed.scrollModePlugin(),ey=ep.searchPlugin(G?G.searchPlugin:{}),ew=er.selectionModePlugin(G?G.selectionModePlugin:{}),e_=em.themePlugin(),ek=eh.zoomPlugin(G?G.zoomPlugin:{}),eS=[Y,X,Q,en,eo,ev,eb,eE,ey,ew,e_,ek],eC=eg.useCallback(function(G){var er=Y.EnterFullScreen,ea=Y.EnterFullScreenMenuItem,ei=X.Download,ec=X.DownloadMenuItem,el=Q.Open,eu=Q.OpenMenuItem,es=en.CurrentPageInput,ef=en.CurrentPageLabel,ed=en.GoToFirstPage,ep=en.GoToFirstPageMenuItem,em=en.GoToLastPage,eh=en.GoToLastPageMenuItem,eS=en.GoToNextPage,eC=en.GoToNextPageMenuItem,eP=en.GoToPreviousPage,eM=en.GoToPreviousPageMenuItem,ex=en.NumberOfPages,eI=eo.Print,eR=eo.PrintMenuItem,eL=ev.ShowProperties,eT=ev.ShowPropertiesMenuItem,eB=eb.Rotate,eO=eb.RotateBackwardMenuItem,eD=eb.RotateForwardMenuItem,eN=eE.SwitchScrollMode,eF=eE.SwitchScrollModeMenuItem,ez=eE.SwitchViewMode,eA=eE.SwitchViewModeMenuItem,ej=ey.Search,eV=ey.ShowSearchPopover,eH=ew.SwitchSelectionMode,eU=ew.SwitchSelectionModeMenuItem,eW=e_.SwitchTheme,eK=e_.SwitchThemeMenuItem,eZ=ek.CurrentScale,eq=ek.Zoom,eG=ek.ZoomIn,e$=ek.ZoomInMenuItem,eJ=ek.ZoomOut,eY=ek.ZoomOutMenuItem;return eg.createElement(I,M({},G,{slot:{CurrentPageInput:es,CurrentPageLabel:ef,CurrentScale:eZ,Download:ei,DownloadMenuItem:ec,EnterFullScreen:er,EnterFullScreenMenuItem:ea,GoToFirstPage:ed,GoToFirstPageMenuItem:ep,GoToLastPage:em,GoToLastPageMenuItem:eh,GoToNextPage:eS,GoToNextPageMenuItem:eC,GoToPreviousPage:eP,GoToPreviousPageMenuItem:eM,NumberOfPages:ex,Open:el,OpenMenuItem:eu,Print:eI,PrintMenuItem:eR,Rotate:eB,RotateBackwardMenuItem:eO,RotateForwardMenuItem:eD,Search:ej,ShowProperties:eL,ShowPropertiesMenuItem:eT,ShowSearchPopover:eV,SwitchScrollMode:eN,SwitchScrollModeMenuItem:eF,SwitchSelectionMode:eH,SwitchSelectionModeMenuItem:eU,SwitchViewMode:ez,SwitchViewModeMenuItem:eA,SwitchTheme:eW,SwitchThemeMenuItem:eK,Zoom:eq,ZoomIn:eG,ZoomInMenuItem:e$,ZoomOut:eJ,ZoomOutMenuItem:eY}}))},[]);return{fullScreenPluginInstance:Y,getFilePluginInstance:X,openPluginInstance:Q,pageNavigationPluginInstance:en,printPluginInstance:eo,propertiesPluginInstance:ev,rotatePluginInstance:eb,scrollModePluginInstance:eE,searchPluginInstance:ey,selectionModePluginInstance:ew,themePluginInstance:e_,zoomPluginInstance:ek,install:function(G){eS.forEac
1h(function(Y){Y.install&&Y.install(G)})},renderPageLayer:function(G){return eg.createElement(eg.Fragment,null,eS.map(function(Y,X){return Y.renderPageLayer?eg.createElement(eg.Fragment,{key:X},Y.renderPageLayer(G)):eg.createElement(eg.Fragment,{key:X})}))},renderViewer:function(G){var Y=G.slot;return eS.forEach(function(X){X.renderViewer&&(Y=X.renderViewer(M(M({},G),{slot:Y})))}),Y},uninstall:function(G){eS.forEach(function(Y){Y.uninstall&&Y.uninstall(G)})},onDocumentLoad:function(G){eS.forEach(function(Y){Y.onDocumentLoad&&Y.onDocumentLoad(G)})},onAnnotationLayerRender:function(G){eS.forEach(function(Y){Y.onAnnotationLayerRender&&Y.onAnnotationLayerRender(G)})},onTextLayerRender:function(G){eS.forEach(function(Y){Y.onTextLayerRender&&Y.onTextLayerRender(G)})},onViewerStateChange:function(G){var Y=G;return eS.forEach(function(G){G.onViewerStateChange&&(Y=G.onViewerStateChange(Y))}),Y},renderDefaultToolbar:h,Toolbar:eC}}},50566:function(G,Y,X){"use strict";G.exports=X(62814)},19064:function(G,Y,X){"use strict";var Q,en,er=X(86096),eo=(Q=X(73884),en=Object.create(null),Q&&Object.keys(Q).forEach(function(G){if("default"!==G){var Y=Object.getOwnPropertyDescriptor(Q,G);Object.defineProperty(en,G,Y.get?Y:{enumerable:!0,get:function(){return Q[G]}})}}),en.default=Q,Object.freeze(en)),o=function(){return eo.createElement(er.Icon,{ignoreDirection:!0,size:16},eo.createElement("path",{d:"M10.5,0.499c5.523,0,10,4.477,10,10s-4.477,10-10,10s-10-4.477-10-10S4.977,0.499,10.5,0.499z\n M23.5,23.499\n l-5.929-5.929\n M5.5,10.499h10\n M10.5,5.499v10"}))},r=function(){return eo.createElement(er.Icon,{ignoreDirection:!0,size:16},eo.createElement("path",{d:"M10.5,0.499c5.523,0,10,4.477,10,10s-4.477,10-10,10s-10-4.477-10-10S4.977,0.499,10.5,0.499z\n M23.5,23.499\n l-5.929-5.929\n M5.5,10.499h10"}))},c=function(){return(c=Object.assign||function(G){for(var Y,X=1,Q=arguments.length;X<Q;X++)for(var en in Y=arguments[X])Object.prototype.hasOwnProperty.call(Y,en)&&(G[en]=Y[en]);return G}).apply(this,arguments)},a=function(G){var Y=eo.useState(G.get("scale")||0),X=Y[0],Q=Y[1],c=function(G){Q(G)};return eo.useEffect(function(){return G.subscribe("scale",c),function(){G.unsubscribe("scale",c)}},[]),{scale:X}},u=function(G){return(G.children||function(G){return eo.createElement(eo.Fragment,null,"".concat(Math.round(100*G.scale),"%"))})({scale:a(G.store).scale})},ea={passive:!1},ei=null,s=function(G){var Y=G.pagesContainerRef,X=G.store,Q=er.useDebounceCallback(function(G){var Y=X.get("zoom");Y&&Y(G)},40),a=function(G){if(G.ctrlKey){G.preventDefault();var Y=G.target.getBoundingClientRect(),en=1-G.deltaY/100,er=G.clientX-Y.left,eo=G.clientY-Y.top,ea=X.get("scale");Q((ei||(ei=document.createElementNS("http://www.w3.org/2000/svg","svg"))).createSVGMatrix().translate(er,eo).scale(en).translate(-er,-eo).scale(ea).a)}};return er.useIsomorphicLayoutEffect(function(){var G=Y.current;if(G)return G.addEventListener("wheel",a,ea),function(){G.removeEventListener("wheel",a)}},[]),eo.createElement(eo.Fragment,null)},ec=[.1,.2,.3,.4,.5,.6,.7,.8,.9,1,1.1,1.3,1.5,1.7,1.9,2.1,2.4,2.7,3,3.3,3.7,4.1,4.6,5.1,5.7,6.3,7,7.7,8.5,9.4,10],f=function(G){return ec.find(function(Y){return Y>G})||G},v=function(G){var Y=ec.findIndex(function(Y){return Y>=G});return -1===Y||0===Y?G:ec[Y-1]},p=function(G){var Y=G.containerRef,X=G.store,c=function(G){if(!G.shiftKey&&!G.altKey&&(er.isMac()?G.metaKey:G.ctrlKey)){var Q=Y.current;if(Q&&document.activeElement&&Q.contains(document.activeElement)){var en=X.get("zoom");if(en){var eo=X.get("scale")||1,ea=1;switch(G.key){case"-":ea=v(eo);break;case"=":ea=f(eo);break;case"0":ea=1;break;default:ea=eo}ea!==eo&&(G.preventDefault(),en(ea))}}}};return eo.useEffect(function(){if(Y.current)return document.addEventListener("keydown",c),function(){document.removeEventListener("keydown",c)}},[Y.current]),eo.createElement(eo.Fragment,null)},el=[.5,.75,1,1.25,1.5,2,3,4],eu={left:0,top:8},d=function(G){var Y=G.levels,X=void 0===Y?el:Y,Q=G.scale,en=G.onZoom,ea=eo.useContext(er.LocalizationContext).l10n,ei=eo.useContext(er.ThemeContext).direction===er.TextDirection.RightToLeft,ec=ea&&ea.zoom?ea.zoom.zoomDocument:"Zoom document";
1return eo.createElement(er.Popover,{ariaControlsSuffix:"zoom",ariaHasPopup:"menu",position:er.Position.BottomCenter,target:function(G){return eo.createElement(er.MinimalButton,{ariaLabel:ec,testId:"zoom__popover-target",onClick:function(){G()}},eo.createElement("span",{className:"rpv-zoom__popover-target"},eo.createElement("span",{"data-testid":"zoom__popover-target-scale",className:er.classNames({"rpv-zoom__popover-target-scale":!0,"rpv-zoom__popover-target-scale--ltr":!ei,"rpv-zoom__popover-target-scale--rtl":ei})},Math.round(100*Q),"%"),eo.createElement("span",{className:"rpv-zoom__popover-target-arrow"})))},content:function(G){return eo.createElement(er.Menu,null,Object.keys(er.SpecialZoomLevel).map(function(Y){return eo.createElement(er.MenuItem,{key:Y,onClick:function(){G(),en(Y)}},function(G){switch(G){case er.SpecialZoomLevel.ActualSize:return ea&&ea.zoom?ea.zoom.actualSize:"Actual size";case er.SpecialZoomLevel.PageFit:return ea&&ea.zoom?ea.zoom.pageFit:"Page fit";case er.SpecialZoomLevel.PageWidth:return ea&&ea.zoom?ea.zoom.pageWidth:"Page width"}}(Y))}),eo.createElement(er.MenuDivider,null),X.map(function(Y){return eo.createElement(er.MenuItem,{key:Y,onClick:function(){G(),en(Y)}},"".concat(Math.round(100*Y),"%"))}))},offset:eu,closeOnClickOutside:!0,closeOnEscape:!0})},g=function(G){var Y=G.children,X=G.levels,Q=G.store;return(Y||function(G){return eo.createElement(d,{levels:X,scale:G.scale,onZoom:G.onZoom})})({scale:a(Q).scale,onZoom:function(G){var Y=Q.get("zoom");Y&&Y(G)}})},es={left:0,top:8},h=function(G){var Y=G.enableShortcuts,X=G.onClick,Q=eo.useContext(er.LocalizationContext).l10n,en=Q&&Q.zoom?Q.zoom.zoomIn:"Zoom in",ea=Y?er.isMac()?"Meta+=":"Ctrl+=":"";return eo.createElement(er.Tooltip,{ariaControlsSuffix:"zoom-in",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaKeyShortcuts:ea,ariaLabel:en,testId:"zoom__in-button",onClick:X},eo.createElement(o,null)),content:function(){return en},offset:es})},b=function(G){var Y=G.children,X=G.enableShortcuts,Q=G.store,en=a(Q).scale;return(Y||h)({enableShortcuts:X,onClick:function(){var G=Q.get("zoom");G&&G(f(en))}})},k=function(G){var Y=G.onClick,X=eo.useContext(er.LocalizationContext).l10n,Q=X&&X.zoom?X.zoom.zoomIn:"Zoom in";return eo.createElement(er.MenuItem,{icon:eo.createElement(o,null),testId:"zoom__in-menu",onClick:Y},Q)},ef={left:0,top:8},M=function(G){var Y=G.enableShortcuts,X=G.onClick,Q=eo.useContext(er.LocalizationContext).l10n,en=Q&&Q.zoom?Q.zoom.zoomOut:"Zoom out",ea=Y?er.isMac()?"Meta+-":"Ctrl+-":"";return eo.createElement(er.Tooltip,{ariaControlsSuffix:"zoom-out",position:er.Position.BottomCenter,target:eo.createElement(er.MinimalButton,{ariaKeyShortcuts:ea,ariaLabel:en,testId:"zoom__out-button",onClick:X},eo.createElement(r,null)),content:function(){return en},offset:ef})},I=function(G){var Y=G.children,X=G.enableShortcuts,Q=G.store,en=a(Q).scale;return(Y||M)({enableShortcuts:X,onClick:function(){var G=Q.get("zoom");G&&G(v(en))}})},Z=function(G){var Y=G.onClick,X=eo.useContext(er.LocalizationContext).l10n,Q=X&&X.zoom?X.zoom.zoomOut:"Zoom out";return eo.createElement(er.MenuItem,{icon:eo.createElement(r,null),testId:"zoom__out-menu",onClick:Y},Q)};Y.ZoomInIcon=o,Y.ZoomOutIcon=r,Y.zoomPlugin=function(G){var Y=eo.useMemo(function(){return Object.assign({},{enableShortcuts:!0},G)},[]),X=eo.useMemo(function(){return er.createStore({})},[]),a=function(G){return eo.createElement(b,c({enableShortcuts:Y.enableShortcuts},G,{store:X}))},l=function(G){return eo.createElement(I,c({enableShortcuts:Y.enableShortcuts},G,{store:X}))},i=function(G){return eo.createElement(g,c({},G,{store:X}))};return{renderViewer:function(G){var Q=G.slot;if(!Y.enableShortcuts)return Q;var en={children:eo.createElement(eo.Fragment,null,eo.createElement(p,{containerRef:G.containerRef,store:X}),eo.createElement(s,{pagesContainerRef:G.pagesContainerRef,store:X}),Q.children)};return c(c({},Q),en)},install:function(G){X.update("zoom",G.zoom)},onViewerStateChange:function(G){return X.update("scale",G.scale),G},zoomTo:function(G){var Y=X.get("zoom");Y&&Y(G)},CurrentScale:function(G){return eo.createElement(u,c({},G,{store:X}))},ZoomIn:a,ZoomInButton:function(){return eo.createElement(a,null,function(G){return eo.createElement(h,c({},G))})},ZoomInMenuItem:function(G){return eo.createElement(a,null,function(Y){return eo.createElement(k,{onClick:function(){Y.onClick(),G.onClick()}})})},ZoomOut:l,ZoomOutButton:function(){return eo.createElement(l,null,function(G){return eo.createElement(M,c({},G))})},ZoomOutMenuItem:function(G){return eo.createElement(l,null,function(Y){return eo.createElement(Z,{onClick:function(){Y.onClick(),G.onClick()}})})},Zoom:i,ZoomPopover:function(G){return eo.createElement(i,null,function(Y){return eo.createElement(d,c({levels:null==G?void 0:G.levels},Y))})}}}},56092:function(G,Y,X){"use strict";
1G.exports=X(19064)},67526:function(G,Y){"use strict";Y.byteLength=function(G){var Y=getLens(G),X=Y[0],Q=Y[1];return(X+Q)*3/4-Q},Y.toByteArray=function(G){var Y,X,er=getLens(G),eo=er[0],ea=er[1],ei=new en((eo+ea)*3/4-ea),ec=0,el=ea>0?eo-4:eo;for(X=0;X<el;X+=4)Y=Q[G.charCodeAt(X)]<<18|Q[G.charCodeAt(X+1)]<<12|Q[G.charCodeAt(X+2)]<<6|Q[G.charCodeAt(X+3)],ei[ec++]=Y>>16&255,ei[ec++]=Y>>8&255,ei[ec++]=255&Y;return 2===ea&&(Y=Q[G.charCodeAt(X)]<<2|Q[G.charCodeAt(X+1)]>>4,ei[ec++]=255&Y),1===ea&&(Y=Q[G.charCodeAt(X)]<<10|Q[G.charCodeAt(X+1)]<<4|Q[G.charCodeAt(X+2)]>>2,ei[ec++]=Y>>8&255,ei[ec++]=255&Y),ei},Y.fromByteArray=function(G){for(var Y,Q=G.length,en=Q%3,er=[],eo=0,ea=Q-en;eo<ea;eo+=16383)er.push(function(G,Y,Q){for(var en,er=[],eo=Y;eo<Q;eo+=3)er.push(X[(en=(G[eo]<<16&16711680)+(G[eo+1]<<8&65280)+(255&G[eo+2]))>>18&63]+X[en>>12&63]+X[en>>6&63]+X[63&en]);return er.join("")}(G,eo,eo+16383>ea?ea:eo+16383));return 1===en?er.push(X[(Y=G[Q-1])>>2]+X[Y<<4&63]+"=="):2===en&&er.push(X[(Y=(G[Q-2]<<8)+G[Q-1])>>10]+X[Y>>4&63]+X[Y<<2&63]+"="),er.join("")};for(var X=[],Q=[],en="undefined"!=typeof Uint8Array?Uint8Array:Array,er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",eo=0,ea=er.length;eo<ea;++eo)X[eo]=er[eo],Q[er.charCodeAt(eo)]=eo;function getLens(G){var Y=G.length;if(Y%4>0)throw Error("Invalid string. Length must be a multiple of 4");var X=G.indexOf("=");-1===X&&(X=Y);var Q=X===Y?0:4-X%4;return[X,Q]}Q["-".charCodeAt(0)]=62,Q["_".charCodeAt(0)]=63},48287:function(G,Y,X){"use strict";/*! 2 * The buffer module from node.js, for the browser. 3 * 4 * @author Feross Aboukhadijeh <https://feross.org> 5 * @license MIT 6 */let Q=X(67526),en=X(251),er="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function createBuffer(G){if(G>2147483647)throw RangeError('The value "'+G+'" is invalid for option "size"');let Y=new Uint8Array(G);return Object.setPrototypeOf(Y,Buffer.prototype),Y}function Buffer(G,Y,X){if("number"==typeof G){if("string"==typeof Y)throw TypeError('The "string" argument must be of type string. Received type number');return allocUnsafe(G)}return from(G,Y,X)}function from(G,Y,X){if("string"==typeof G)return function(G,Y){if(("string"!=typeof Y||""===Y)&&(Y="utf8"),!Buffer.isEncoding(Y))throw TypeError("Unknown encoding: "+Y);let X=0|byteLength(G,Y),Q=createBuffer(X),en=Q.write(G,Y);return en!==X&&(Q=Q.slice(0,en)),Q}(G,Y);if(ArrayBuffer.isView(G))return function(G){if(isInstance(G,Uint8Array)){let Y=new Uint8Array(G);return fromArrayBuffer(Y.buffer,Y.byteOffset,Y.byteLength)}return fromArrayLike(G)}(G);if(null==G)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G);if(isInstance(G,ArrayBuffer)||G&&isInstance(G.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(isInstance(G,SharedArrayBuffer)||G&&isInstance(G.buffer,SharedArrayBuffer)))return fromArrayBuffer(G,Y,X);if("number"==typeof G)throw TypeError('The "value" argument must not be of type number. Received type number');let Q=G.valueOf&&G.valueOf();if(null!=Q&&Q!==G)return Buffer.from(Q,Y,X);let en=function(G){var Y;if(Buffer.isBuffer(G)){let Y=0|checked(G.length),X=createBuffer(Y);return 0===X.length||G.copy(X,0,0,Y),X}return void 0!==G.length?"number"!=typeof G.length||(Y=G.length)!=Y?createBuffer(0):fromArrayLike(G):"Buffer"===G.type&&Array.isArray(G.data)?fromArrayLike(G.data):void 0}(G);if(en)return en;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof G[Symbol.toPrimitive])return Buffer.from(G[Symbol.toPrimitive]("string"),Y,X);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof G)}function assertSize(G){if("number"!=typeof G)throw TypeError('"size" argument must be of type number');if(G<0)throw RangeError('The value "'+G+'" is invalid for option "size"')}function allocUnsafe(G){return assertSize(G),createBuffer(G<0?0:0|checked(G))}function fromArrayLike(G){let Y=G.length<0?0:0|checked(G.length),X=createBuffer(Y);for(let Q=0;Q<Y;Q+=1)X[Q]=255&G[Q];return X}function fromArrayBuffer(G,Y,X){let Q;if(Y<0||G.byteLength<Y)throw RangeError('"offset" is outside of buffer bounds');if(G.byteLength<Y+(X||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(Q=void 0===Y&&void 0===X?new Uint8Array(G):void 0===X?new Uint8Array(G,Y):new Uint8Array(G,Y,X),Buffer.prototype),Q}function checked(G){if(G>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|G}function byteLength(G,Y){if(Buffer.isBuffer(G))return G.length;if(ArrayBuffer.isView(G)||isInstance(G,ArrayBuffer))return G.byteLength;if("string"!=typeof G)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof G);let X=G.length,Q=arguments.length>2&&!0===arguments[2];if(!Q&&0===X)return 0;let en=!1;for(;;)switch(Y){case"ascii":case"latin1":case"binary":return X;case"utf8":case"utf-8":return utf8ToBytes(G).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*X;case"hex":return X>>>1;case"base64":return base64ToBytes(G).length;default:if(en)return Q?-1:utf8ToBytes(G).length;Y=(""+Y).toLowerCase(),en=!0}}function slowToString(G,Y,X){let en=!1;if((void 0===Y||Y<0)&&(Y=0),Y>this.length||((void 0===X||X>this.length)&&(X=this.length),X<=0||(X>>>=0)<=(Y>>>=0)))return"";for(G||(G="utf8");;)switch(G){case"hex":return function(G,Y,X){let Q=G.length;(!Y||Y<0)&&(Y=0),(!X||X<0||X>Q)&&(X=Q);let en="";for(let Q=Y;Q<X;++Q)en+=ei[G[Q]];return en}(this,Y,X);case"utf8":case"utf-8":return utf8Slice(this,Y,X);case"ascii":return function(G,Y,X){let Q="";X=Math.min(G.length,X);for(let en=Y;en<X;++en)Q+=String.fromCharCode(127&G[en]);return Q}(this,Y,X);case"latin1":case"binary":return function(G,Y,X){let Q="";X=Math.min(G.length,X);for(let en=Y;en<X;++en)Q+=String.fromCharCode(G[en]);return Q}(this,Y,X);case"base64":var er,eo;return er=Y,eo=X,0===er&&eo===this.length?Q.fromByteArray(this):Q.fromByteArray(this.slice(er,eo));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(G,Y,X){let Q=G.slice(Y,X),en="";for(let G=0;G<Q.length-1;G+=2)en+=String.fromCharCode(Q[G]+256*Q[G+1]);return en}(this,Y,X);default:if(en)throw TypeError("Unknown encoding: "+G);G=(G+"").toLowerCase(),en=!0}}function swap(G,Y,X){let Q=G[Y];G[Y]=G[X],G[X]=Q}function bidirectionalIndexOf(G,Y,X,Q,en){var er;if(0===G.length)return -1;if("string"==typeof X?(Q=X,X=0):X>2147483647?X=2147483647:X<-2147483648&&(X=-2147483648),(er=X=+X)!=er&&(X=en?0:G.length-1),X<0&&(X=G.length+X),X>=G.length){if(en)return -1;X=G.length-1}else if(X<0){if(!en)return -1;X=0}if("string"==typeof Y&&(Y=Buffer.from(Y,Q)),Buffer.isBuffer(Y))return 0===Y.length?-1:arrayIndexOf(G,Y,X,Q,en);if("number"==typeof Y)return(Y&=255,"function"==typeof Uint8Array.prototype.indexOf)?en?Uint8Array.prototype.indexOf.call(G,Y,X):Uint8Array.prototype.lastIndexOf.call(G,Y,X):arrayIndexOf(G,[Y],X,Q,en);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(G,Y,X,Q,en){let er,eo=1,ea=G.length,ei=Y.length;if(void 0!==Q&&("ucs2"===(Q=String(Q).toLowerCase())||"ucs-2"===Q||"utf16le"===Q||"utf-16le"===Q)){if(G.length<2||Y.length<2)return -1;eo=2,ea/=2,ei/=2,X/=2}function read(G,Y){return 1===eo?G[Y]:G.readUInt16BE(Y*eo)}if(en){let Q=-1;for(er=X;er<ea;er++)if(read(G,er)===read(Y,-1===Q?0:er-Q)){if(-1===Q&&(Q=er),er-Q+1===ei)return Q*eo}else -1!==Q&&(er-=er-Q),Q=-1}else for(X+ei>ea&&(X=ea-ei),er=X;er>=0;er--){let X=!0;for(let Q=0;Q<ei;Q++)if(read(G,er+Q)!==read(Y,Q)){X=!1;break}if(X)return er}return -1}function utf8Slice(G,Y,X){X=Math.min(G.length,X);let Q=[],en=Y;for(;en<X;){let Y=G[en],er=null,eo=Y>239?4:Y>223?3:Y>191?2:1;if(en+eo<=X){let X,Q,ea,ei;switch(eo){case 1:Y<128&&(er=Y);break;case 2:(192&(X=G[en+1]))==128&&(ei=(31&Y)<<6|63&X)>127&&(er=ei);break;case 3:X=G[en+1],Q=G[en+2],(192&X)==128&&(192&Q)==128&&(ei=(15&Y)<<12|(63&X)<<6|63&Q)>2047&&(ei<55296||ei>57343)&&(er=ei);break;case 4:X=G[en+1],Q=G[en+2],ea=G[en+3],(192&X)==128&&(192&Q)==128&&(192&ea)==128&&(ei=(15&Y)<<18|(63&X)<<12|(63&Q)<<6|63&ea)>65535&&ei<1114112&&(er=ei)}}null===er?(er=65533,eo=1):er>65535&&(er-=65536,Q.push(er>>>10&1023|55296),er=56320|1023&er),Q.push(er),en+=eo}return function(G){let Y=G.length;if(Y<=4096)return String.fromCharCode.apply(String,G);let X="",Q=0;for(;Q<Y;)X+=String.fromCharCode.apply(String,G.slice(Q,Q+=4096));return X}
vendor: 16,722 bytes, line 6
6(Q)}function checkOffset(G,Y,X){if(G%1!=0||G<0)throw RangeError("offset is not uint");if(G+Y>X)throw RangeError("Trying to access beyond buffer length")}function checkInt(G,Y,X,Q,en,er){if(!Buffer.isBuffer(G))throw TypeError('"buffer" argument must be a Buffer instance');if(Y>en||Y<er)throw RangeError('"value" argument is out of bounds');if(X+Q>G.length)throw RangeError("Index out of range")}function wrtBigUInt64LE(G,Y,X,Q,en){checkIntBI(Y,Q,en,G,X,7);let er=Number(Y&BigInt(4294967295));G[X++]=er,er>>=8,G[X++]=er,er>>=8,G[X++]=er,er>>=8,G[X++]=er;let eo=Number(Y>>BigInt(32)&BigInt(4294967295));return G[X++]=eo,eo>>=8,G[X++]=eo,eo>>=8,G[X++]=eo,eo>>=8,G[X++]=eo,X}function wrtBigUInt64BE(G,Y,X,Q,en){checkIntBI(Y,Q,en,G,X,7);let er=Number(Y&BigInt(4294967295));G[X+7]=er,er>>=8,G[X+6]=er,er>>=8,G[X+5]=er,er>>=8,G[X+4]=er;let eo=Number(Y>>BigInt(32)&BigInt(4294967295));return G[X+3]=eo,eo>>=8,G[X+2]=eo,eo>>=8,G[X+1]=eo,eo>>=8,G[X]=eo,X+8}function checkIEEE754(G,Y,X,Q,en,er){if(X+Q>G.length||X<0)throw RangeError("Index out of range")}function writeFloat(G,Y,X,Q,er){return Y=+Y,X>>>=0,er||checkIEEE754(G,Y,X,4,34028234663852886e22,-34028234663852886e22),en.write(G,Y,X,Q,23,4),X+4}function writeDouble(G,Y,X,Q,er){return Y=+Y,X>>>=0,er||checkIEEE754(G,Y,X,8,17976931348623157e292,-17976931348623157e292),en.write(G,Y,X,Q,52,8),X+8}Y.hp=Buffer,Y.IS=50,Buffer.TYPED_ARRAY_SUPPORT=function(){try{let G=new Uint8Array(1),Y={foo:function(){return 42}};return Object.setPrototypeOf(Y,Uint8Array.prototype),Object.setPrototypeOf(G,Y),42===G.foo()}catch(G){return!1}}(),Buffer.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(Buffer.prototype,"parent",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.buffer}}),Object.defineProperty(Buffer.prototype,"offset",{enumerable:!0,get:function(){if(Buffer.isBuffer(this))return this.byteOffset}}),Buffer.poolSize=8192,Buffer.from=function(G,Y,X){return from(G,Y,X)},Object.setPrototypeOf(Buffer.prototype,Uint8Array.prototype),Object.setPrototypeOf(Buffer,Uint8Array),Buffer.alloc=function(G,Y,X){return(assertSize(G),G<=0)?createBuffer(G):void 0!==Y?"string"==typeof X?createBuffer(G).fill(Y,X):createBuffer(G).fill(Y):createBuffer(G)},Buffer.allocUnsafe=function(G){return allocUnsafe(G)},Buffer.allocUnsafeSlow=function(G){return allocUnsafe(G)},Buffer.isBuffer=function(G){return null!=G&&!0===G._isBuffer&&G!==Buffer.prototype},Buffer.compare=function(G,Y){if(isInstance(G,Uint8Array)&&(G=Buffer.from(G,G.offset,G.byteLength)),isInstance(Y,Uint8Array)&&(Y=Buffer.from(Y,Y.offset,Y.byteLength)),!Buffer.isBuffer(G)||!Buffer.isBuffer(Y))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(G===Y)return 0;let X=G.length,Q=Y.length;for(let en=0,er=Math.min(X,Q);en<er;++en)if(G[en]!==Y[en]){X=G[en],Q=Y[en];break}return X<Q?-1:Q<X?1:0},Buffer.isEncoding=function(G){switch(String(G).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(G,Y){let X;if(!Array.isArray(G))throw TypeError('"list" argument must be an Array of Buffers');if(0===G.length)return Buffer.alloc(0);if(void 0===Y)for(X=0,Y=0;X<G.length;++X)Y+=G[X].length;let Q=Buffer.allocUnsafe(Y),en=0;for(X=0;X<G.length;++X){let Y=G[X];if(isInstance(Y,Uint8Array))en+Y.length>Q.length?(Buffer.isBuffer(Y)||(Y=Buffer.from(Y)),Y.copy(Q,en)):Uint8Array.prototype.set.call(Q,Y,en);else if(Buffer.isBuffer(Y))Y.copy(Q,en);else throw TypeError('"list" argument must be an Array of Buffers');en+=Y.length}return Q},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){let G=this.length;if(G%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let Y=0;Y<G;Y+=2)swap(this,Y,Y+1);return this},Buffer.prototype.swap32=function(){let G=this.length;if(G%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let Y=0;Y<G;Y+=4)swap(this,Y,Y+3),swap(this,Y+1,Y+2);return this},Buffer.prototype.swap64=function(){let G=this.length;if(G%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let Y=0;Y<G;Y+=8)swap(this,Y,Y+7),swap(this,Y+1,Y+6),swap(this,Y+2,Y+5),swap(this,Y+3,Y+4);return this},Buffer.prototype.toString=function(){let G=this.length;return 0===G?"":0==arguments.length?utf8Slice(this,0,G):slowToString.apply(this,arguments)},Buffer.prototype.toLocaleString=Buffer.prototype.toString,Buffer.prototype.equals=function(G){if(!Buffer.isBuffer(G))throw TypeError("Argument must be a Buffer");return this===G||0===Buffer.compare(this,G)},Buffer.prototype.inspect=function(){let G="",X=Y.IS;return G=this.toString("hex",0,X).replace(/(.{2})/g,"$1 ").trim(),this.length>X&&(G+=" ... "),"<Buffer "+G+">"},er&&(Buffer.prototype[er]=Buffer.prototype.inspect),Buffer.prototype.compare=function(G,Y,X,Q,en){if(isInstance(G,Uint8Array)&&(G=Buffer.from(G,G.offset,G.byteLength)),!Buffer.isBuffer(G))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof G);if(void 0===Y&&(Y=0),void 0===X&&(X=G?G.length:0),void 0===Q&&(Q=0),void 0===en&&(en=this.length),Y<0||X>G.length||Q<0||en>this.length)throw RangeError("out of range index");if(Q>=en&&Y>=X)return 0;if(Q>=en)return -1;if(Y>=X)return 1;if(Y>>>=0,X>>>=0,Q>>>=0,en>>>=0,this===G)return 0;let er=en-Q,eo=X-Y,ea=Math.min(er,eo),ei=this.slice(Q,en),ec=G.slice(Y,X);for(let G=0;G<ea;++G)if(ei[G]!==ec[G]){er=ei[G],eo=ec[G];break}return er<eo?-1:eo<er?1:0},Buffer.prototype.includes=function(G,Y,X){return -1!==this.indexOf(G,Y,X)},Buffer.prototype.indexOf=function(G,Y,X){return bidirectionalIndexOf(this,G,Y,X,!0)},Buffer.prototype.lastIndexOf=function(G,Y,X){return bidirectionalIndexOf(this,G,Y,X,!1)},Buffer.prototype.write=function(G,Y,X,Q){var en,er,eo,ea,ei,ec,el,eu;if(void 0===Y)Q="utf8",X=this.length,Y=0;else if(void 0===X&&"string"==typeof Y)Q=Y,X=this.length,Y=0;else if(isFinite(Y))Y>>>=0,isFinite(X)?(X>>>=0,void 0===Q&&(Q="utf8")):(Q=X,X=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let es=this.length-Y;if((void 0===X||X>es)&&(X=es),G.length>0&&(X<0||Y<0)||Y>this.length)throw RangeError("Attempt to write outside buffer bounds");Q||(Q="utf8");let ef=!1;for(;;)switch(Q){case"hex":return function(G,Y,X,Q){let en;X=Number(X)||0;let er=G.length-X;Q?(Q=Number(Q))>er&&(Q=er):Q=er;let eo=Y.length;for(Q>eo/2&&(Q=eo/2),en=0;en<Q;++en){let Q=parseInt(Y.substr(2*en,2),16);if(Q!=Q)break;G[X+en]=Q}return en}(this,G,Y,X);case"utf8":case"utf-8":return en=Y,er=X,blitBuffer(utf8ToBytes(G,this.length-en),this,en,er);case"ascii":case"latin1":case"binary":return eo=Y,ea=X,blitBuffer(function(G){let Y=[];for(let X=0;X<G.length;++X)Y.push(255&G.charCodeAt(X));return Y}(G),this,eo,ea);case"base64":return ei=Y,ec=X,blitBuffer(base64ToBytes(G),this,ei,ec);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return el=Y,eu=X,blitBuffer(function(G,Y){let X,Q;let en=[];for(let er=0;er<G.length&&!((Y-=2)<0);++er)Q=(X=G.charCodeAt(er))>>8,en.push(X%256),en.push(Q);return en}(G,this.length-el),this,el,eu);default:if(ef)throw TypeError("Unknown encoding: "+Q);Q=(""+Q).toLowerCase(),ef=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(G,Y){let X=this.length;G=~~G,Y=void 0===Y?X:~~Y,G<0?(G+=X)<0&&(G=0):G>X&&(G=X),Y<0?(Y+=X)<0&&(Y=0):Y>X&&(Y=X),Y<G&&(Y=G);let Q=this.subarray(G,Y);return Object.setPrototypeOf(Q,Buffer.prototype),Q},Buffer.prototype.readUintLE=Buffer.prototype.readUIntLE=function(G,Y,X){G>>>=0,Y>>>=0,X||checkOffset(G,Y,this.length);let Q=this[G],en=1,er=0;for(;++er<Y&&(en*=256);)Q+=this[G+er]*en;return Q},Buffer.prototype.readUintBE=Buffer.prototype.readUIntBE=function(G,Y,X){G>>>=0,Y>>>=0,X||checkOffset(G,Y,this.length);let Q=this[G+--Y],en=1;for(;Y>0&&(en*=256);)Q+=this[G+--Y]*en;return Q},Buffer.prototype.readUint8=Buffer.prototype.readUInt8=function(G,Y){return G>>>=0,Y||checkOffset(G,1,this.length),this[G]},Buffer.prototype.readUint16LE=Buffer.prototype.readUInt16LE=function(G,Y){return G>>>=0,Y||checkOffset(G,2,this.length),this[G]|this[G+1]<<8},Buffer.prototype.readUint16BE=Buffer.prototype.readUInt16BE=function(G,Y){return G>>>=0,Y||checkOffset(G,2,this.length),this[G]<<8|this[G+1]},Buffer.prototype.readUint32LE=Buffer.prototype.readUInt32LE=function(G,Y){return G>>>=0,Y||checkOffset(G,4,this.length),(this[G]|this[G+1]<<8|this[G+2]<<16)+16777216*this[G+3]},Buffer.prototype.readUint32BE=Buffer.prototype.readUInt32BE=function(G,Y){return G>>>=0,Y||checkOffset(G,4,this.length),16777216*this[G]+(this[G+1]<<16|this[G+2]<<8|this[G+3])},Buffer.prototype.readBigUInt64LE=defineBigIntMethod(function(G){validateNumber(G>>>=0,"offset");let Y=this[G],X=this[G+7];(void 0===Y||void 0===X)&&boundsError(G,this.length-8);let Q=Y+256*this[++G]+65536*this[++G]+16777216*this[++G],en=this[++G]+256*this[++G]+65536*this[++G]+16777216*X;return BigInt(Q)+(BigInt(en)<<BigInt(32))}),Buffer.prototype.readBigUInt64BE=defineBigIntMethod(function(G){validateNumber(G>>>=0,"offset");let Y=this[G],X=this[G+7];(void 0===Y||void 0===X)&&boundsError(G,this.length-8);let Q=16777216*Y+65536*this[++G]+256*this[++G]+this[++G],en=16777216*this[++G]+65536*this[++G]+256*this[++G]+X;return(BigInt(Q)<<BigInt(32))+BigInt(en)}),Buffer.prototype.readIntLE=function(G,Y,X){G>>>=0,Y>>>=0,X||checkOffset(G,Y,this.length);let Q=this[G],en=1,er=0;for(;++er<Y&&(en*=256);)Q+=this[G+er]*en;return Q>=(en*=128)&&(Q-=Math.pow(2,8*Y)),Q},Buffer.prototype.readIntBE=function(G,Y,X){G>>>=0,Y>>>=0,X||checkOffset(G,Y,this.length);let Q=Y,en=1,er=this[G+--Q];for(;Q>0&&(en*=256);)er+=this[G+--Q]*en;return er>=(en*=128)&&(er-=Math.pow(2,8*Y)),er},Buffer.prototype.readInt8=function(G,Y){return(G>>>=0,Y||checkOffset(G,1,this.length),128&this[G])?-((255-this[G]+1)*1):this[G]},Buffer.prototype.readInt16LE=function(G,Y){G>>>=0,Y||checkOffset(G,2,this.length);let X=this[G]|this[G+1]<<8;return 32768&X?4294901760|X:X},Buffer.prototype.readInt16BE=function(G,Y){G>>>=0,Y||checkOffset(G,2,this.length);let X=this[G+1]|this[G]<<8;return 32768&X?4294901760|X:X},Buffer.prototype.readInt32LE=function(G,Y){return G>>>=0,Y||checkOffset(G,4,this.length),this[G]|this[G+1]<<8|this[G+2]<<16|this[G+3]<<24},Buffer.prototype.readInt32BE=function(G,Y){return G>>>=0,Y||checkOffset(G,4,this.length),this[G]<<24|this[G+1]<<16|this[G+2]<<8|this[G+3]},Buffer.prototype.readBigInt64LE=defineBigIntMethod(function(G){validateNumber(G>>>=0,"offset");let Y=this[G],X=this[G+7];(void 0===Y||void 0===X)&&boundsError(G,this.length-8);let Q=this[G+4]+256*this[G+5]+65536*this[G+6]+(X<<24);return(BigInt(Q)<<BigInt(32))+BigInt(Y+256*this[++G]+65536*this[++G]+16777216*this[++G])}),Buffer.prototype.readBigInt64BE=defineBigIntMethod(function(G){validateNumber(G>>>=0,"offset");let Y=this[G],X=this[G+7];(void 0===Y||void 0===X)&&boundsError(G,this.length-8);let Q=(Y<<24)+65536*this[++G]+256*this[++G]+this[++G];return(BigInt(Q)<<BigInt(32))+BigInt(16777216*this[++G]+65536*this[++G]+256*this[++G]+X)}),Buffer.prototype.readFloatLE=function(G,Y){return G>>>=0,Y||checkOffset(G,4,this.length),en.read(this,G,!0,23,4)},Buffer.prototype.readFloatBE=function(G,Y){return G>>>=0,Y||checkOffset(G,4,this.length),en.read(this,G,!1,23,4)},Buffer.prototype.readDoubleLE=function(G,Y){return G>>>=0,Y||checkOffset(G,8,this.length),en.read(this,G,!0,52,8)},Buffer.prototype.readDoubleBE=function(G,Y){return G>>>=0,Y||checkOffset(G,8,this.length),en.read(this,G,!1,52,8)},Buffer.prototype.writeUintLE=Buffer.prototype.writeUIntLE=function(G,Y,X,Q){if(G=+G,Y>>>=0,X>>>=0,!Q){let Q=Math.pow(2,8*X)-1;checkInt(this,G,Y,X,Q,0)}let en=1,er=0;for(this[Y]=255&G;++er<X&&(en*=256);)this[Y+er]=G/en&255;return Y+X},Buffer.prototype.writeUintBE=Buffer.prototype.writeUIntBE=function(G,Y,X,Q){if(G=+G,Y>>>=0,X>>>=0,!Q){let Q=Math.pow(2,8*X)-1;checkInt(this,G,Y,X,Q,0)}let en=X-1,er=1;for(this[Y+en]=255&G;--en>=0&&(er*=256);)this[Y+en]=G/er&255;return Y+X},Buffer.prototype.writeUint8=Buffer.prototype.writeUInt8=function(G,Y,X){return G=+G,Y>>>=0,X||checkInt(this,G,Y,1,255,0),this[Y]=255&G,Y+1},Buffer.prototype.writeUint16LE=Buffer.prototype.writeUInt16LE=function(G,Y,X){return G=+G,Y>>>=0,X||checkInt(this,G,Y,2,65535,0),this[Y]=255&G,this[Y+1]=G>>>8,Y+2},Buffer.prototype.writeUint16BE=Buffer.prototype.writeUInt16BE=function(G,Y,X){return G=+G,Y>>>=0,X||checkInt(this,G,Y,2,65535,0),this[Y]=G>>>8,this[Y+1]=255&G,Y+2},Buffer.prototype.writeUint32LE=Buffer.prototype.writeUInt32LE=function(G,Y,X){return G=+G,Y>>>=0,X||checkInt(this,G,Y,4,4294967295,0),this[Y+3]=G>>>24,this[Y+2]=G>>>16,this[Y+1]=G>>>8,this[Y]=255&G,Y+4},Buffer.prototype.writeUint32BE=Buffer.prototype.writeUInt32BE=function(G,Y,X){return G=+G,Y>>>=0,X||checkInt(this,G,Y,4,4294967295,0),this[Y]=G>>>24,this[Y+1]=G>>>16,this[Y+2]=G>>>8,this[Y+3]=255&G,Y+4},Buffer.prototype.writeBigUInt64LE=defineBigIntMethod(function(G,Y=0){return wrtBigUInt64LE(this,G,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),Buffer.prototype.writeBigUInt64BE=defineBigIntMethod(function(G,Y=0){return wrtBigUInt64BE(this,G,Y,BigInt(0),BigInt("0xffffffffffffffff"))}),Buffer.prototype.writeIntLE=function(G,Y,X,Q){if(G=+G,Y>>>=0,!Q){let Q=Math.pow(2,8*X-1);checkInt(this,G,Y,X,Q-1,-Q)}let en=0,er=1,eo=0;for(this[Y]=255&G;++en<X&&(er*=256);)G<0&&0===eo&&0!==this[Y+en-1]&&(eo=1),this[Y+en]=(G/er>>0)-eo&255;return Y+X},Buffer.prototype.writeIntBE=function(G,Y,X,Q){if(G=+G,Y>>>=0,!Q){let Q=Math.pow(2,8*X-1);checkInt(this,G,Y,X,Q-1,-Q)}let en=X-1,er=1,eo=0;for(this[Y+en]=255&G;--en>=0&&(er*=256);)G<0&&0===eo&&0!==this[Y+en+1]&&(eo=1),this[Y+en]=(G/er>>0)-eo&255;return Y+X},Buffer.prototype.writeInt8=function(G,Y,X){return G=+G,Y>>>=0,X||checkInt(this,G,Y,1,127,-128),G<0&&(G=255+G+1),this[Y]=255&G,Y+1},Buffer.prototype.writeInt16LE=function(G,Y,X){return G=+G,Y>>>=0,X||checkInt(this,G,Y,2,32767,-32768),this[Y]=255&G,this[Y+1]=G>>>8,Y+2},Buffer.prototype.writeInt16BE=function(G,Y,X){return G=+G,Y>>>=0,X||checkInt(this,G,Y,2,32767,-32768),this[Y]=G>>>8,this[Y+1]=255&G,Y+2},Buffer.prototype.writeInt32LE=function(G,Y,X){return G=+G,Y>>>=0,X||checkInt(this,G,Y,4,2147483647,-2147483648),this[Y]=255&G,this[Y+1]=G>>>8,this[Y+2]=G>>>16,this[Y+3]=G>>>24,Y+4},Buffer.prototype.writeInt32BE=function(G,Y,X){return G=+G,Y>>>=0,X||checkInt(this,G,Y,4,2147483647,-2147483648),G<0&&(G=4294967295+G+1),this[Y]=G>>>24,this[Y+1]=G>>>16,this[Y+2]=G>>>8,this[Y+3]=255&G,Y+4},Buffer.prototype.writeBigInt64LE=defineBigIntMethod(function(G,Y=0){return wrtBigUInt64LE(this,G,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),Buffer.prototype.writeBigInt64BE=defineBigIntMethod(function(G,Y=0){return wrtBigUInt64BE(this,G,Y,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),Buffer.prototype.writeFloatLE=function(G,Y,X){return writeFloat(this,G,Y,!0,X)},Buffer.prototype.writeFloatBE=function(G,Y,X){return writeFloat(this,G,Y,!1,X)},Buffer.prototype.writeDoubleLE=function(G,Y,X){return writeDouble(this,G,Y,!0,X)},Buffer.prototype.writeDoubleBE=function(G,Y,X){return writeDouble(this,G,Y,!1,X)},Buffer.prototype.copy=function(G,Y,X,Q){if(!Buffer.isBuffer(G))throw TypeError("argument should be a Buffer");if(X||(X=0),Q||0===Q||(Q=this.length),Y>=G.length&&(Y=G.length),Y||(Y=0),Q>0&&Q<X&&(Q=X),Q===X||0===G.length||0===this.length)return 0;if(Y<0)throw RangeError("targetStart out of bounds");if(X<0||X>=this.length)throw RangeError("Index out of range");if(Q<0)throw RangeError("sourceEnd out of bounds");Q>this.length&&(Q=this.length),G.length-Y<Q-X&&(Q=G.length-Y+X);let en=Q-X;return this===G&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(Y,X,Q):Uint8Array.prototype.set.call(G,this.subarray(X,Q),Y),en},Buffer.prototype.fill=function(G,Y,X,Q){let en;if("string"==typeof G){if("string"==typeof Y?(Q=Y,Y=0,X=this.length):"string"==typeof X&&(Q=X,X=this.length),void 0!==Q&&"string"!=typeof Q)throw TypeError("encoding must be a string");if("string"==typeof Q&&!Buffer.isEncoding(Q))throw TypeError("Unknown encoding: "+Q);if(1===G.length){let Y=G.charCodeAt(0);("utf8"===Q&&Y<128||"latin1"===Q)&&(G=Y)}}else"number"==typeof G?G&=255:"boolean"==typeof G&&(G=Number(G));if(Y<0||this.length<Y||this.length<X)throw RangeError("Out of range index");if(X<=Y)return this;if(Y>>>=0,X=void 0===X?this.length:X>>>0,G||(G=0),"number"==typeof G)for(en=Y;en<X;++en)this[en]=G;else{let er=Buffer.isBuffer(G)?G:Buffer.from(G,Q),eo=er.length;
vendor: 4,357 bytes, line 6
6if(0===eo)throw TypeError('The value "'+G+'" is invalid for argument "value"');for(en=0;en<X-Y;++en)this[en+Y]=er[en%eo]}return this};let eo={};function E(G,Y,X){eo[G]=class extends X{constructor(){super(),Object.defineProperty(this,"message",{value:Y.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${G}]`,this.stack,delete this.name}get code(){return G}set code(G){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:G,writable:!0})}toString(){return`${this.name} [${G}]: ${this.message}`}}}function addNumericalSeparator(G){let Y="",X=G.length,Q="-"===G[0]?1:0;for(;X>=Q+4;X-=3)Y=`_${G.slice(X-3,X)}${Y}`;return`${G.slice(0,X)}${Y}`}function checkIntBI(G,Y,X,Q,en,er){if(G>X||G<Y){let Q;let en="bigint"==typeof Y?"n":"";throw Q=er>3?0===Y||Y===BigInt(0)?`>= 0${en} and < 2${en} ** ${(er+1)*8}${en}`:`>= -(2${en} ** ${(er+1)*8-1}${en}) and < 2 ** ${(er+1)*8-1}${en}`:`>= ${Y}${en} and <= ${X}${en}`,new eo.ERR_OUT_OF_RANGE("value",Q,G)}validateNumber(en,"offset"),(void 0===Q[en]||void 0===Q[en+er])&&boundsError(en,Q.length-(er+1))}function validateNumber(G,Y){if("number"!=typeof G)throw new eo.ERR_INVALID_ARG_TYPE(Y,"number",G)}function boundsError(G,Y,X){if(Math.floor(G)!==G)throw validateNumber(G,X),new eo.ERR_OUT_OF_RANGE(X||"offset","an integer",G);if(Y<0)throw new eo.ERR_BUFFER_OUT_OF_BOUNDS;throw new eo.ERR_OUT_OF_RANGE(X||"offset",`>= ${X?1:0} and <= ${Y}`,G)}E("ERR_BUFFER_OUT_OF_BOUNDS",function(G){return G?`${G} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),E("ERR_INVALID_ARG_TYPE",function(G,Y){return`The "${G}" argument must be of type number. Received type ${typeof Y}`},TypeError),E("ERR_OUT_OF_RANGE",function(G,Y,X){let Q=`The value of "${G}" is out of range.`,en=X;return Number.isInteger(X)&&Math.abs(X)>4294967296?en=addNumericalSeparator(String(X)):"bigint"==typeof X&&(en=String(X),(X>BigInt(2)**BigInt(32)||X<-(BigInt(2)**BigInt(32)))&&(en=addNumericalSeparator(en)),en+="n"),Q+=` It must be ${Y}. Received ${en}`},RangeError);let ea=/[^+/0-9A-Za-z-_]/g;function utf8ToBytes(G,Y){let X;Y=Y||1/0;let Q=G.length,en=null,er=[];for(let eo=0;eo<Q;++eo){if((X=G.charCodeAt(eo))>55295&&X<57344){if(!en){if(X>56319||eo+1===Q){(Y-=3)>-1&&er.push(239,191,189);continue}en=X;continue}if(X<56320){(Y-=3)>-1&&er.push(239,191,189),en=X;continue}X=(en-55296<<10|X-56320)+65536}else en&&(Y-=3)>-1&&er.push(239,191,189);if(en=null,X<128){if((Y-=1)<0)break;er.push(X)}else if(X<2048){if((Y-=2)<0)break;er.push(X>>6|192,63&X|128)}else if(X<65536){if((Y-=3)<0)break;er.push(X>>12|224,X>>6&63|128,63&X|128)}else if(X<1114112){if((Y-=4)<0)break;er.push(X>>18|240,X>>12&63|128,X>>6&63|128,63&X|128)}else throw Error("Invalid code point")}return er}function base64ToBytes(G){return Q.toByteArray(function(G){if((G=(G=G.split("=")[0]).trim().replace(ea,"")).length<2)return"";for(;G.length%4!=0;)G+="=";return G}(G))}function blitBuffer(G,Y,X,Q){let en;for(en=0;en<Q&&!(en+X>=Y.length)&&!(en>=G.length);++en)Y[en+X]=G[en];return en}function isInstance(G,Y){return G instanceof Y||null!=G&&null!=G.constructor&&null!=G.constructor.name&&G.constructor.name===Y.name}let ei=function(){let G="0123456789abcdef",Y=Array(256);for(let X=0;X<16;++X){let Q=16*X;for(let en=0;en<16;++en)Y[Q+en]=G[X]+G[en]}return Y}();function defineBigIntMethod(G){return"undefined"==typeof BigInt?BufferBigIntNotDefined:G}function BufferBigIntNotDefined(){throw Error("BigInt not supported")}},251:function(G,Y){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Y.read=function(G,Y,X,Q,en){var er,eo,ea=8*en-Q-1,ei=(1<<ea)-1,ec=ei>>1,el=-7,eu=X?en-1:0,es=X?-1:1,ef=G[Y+eu];for(eu+=es,er=ef&(1<<-el)-1,ef>>=-el,el+=ea;el>0;er=256*er+G[Y+eu],eu+=es,el-=8);for(eo=er&(1<<-el)-1,er>>=-el,el+=Q;el>0;eo=256*eo+G[Y+eu],eu+=es,el-=8);if(0===er)er=1-ec;else{if(er===ei)return eo?NaN:(ef?-1:1)*(1/0);eo+=Math.pow(2,Q),er-=ec}return(ef?-1:1)*eo*Math.pow(2,er-Q)},Y.write=function(G,Y,X,Q,en,er){var eo,ea,ei,ec=8*er-en-1,el=(1<<ec)-1,eu=el>>1,es=23===en?5960464477539062e-23:0,ef=Q?0:er-1,ed=Q?1:-1,ep=Y<0||0===Y&&1/Y<0?1:0;for(isNaN(Y=Math.abs(Y))||Y===1/0?(ea=isNaN(Y)?1:0,eo=el):(eo=Math.floor(Math.log(Y)/Math.LN2),Y*(ei=Math.pow(2,-eo))<1&&(eo--,ei*=2),eo+eu>=1?Y+=es/ei:Y+=es*Math.pow(2,1-eu),Y*ei>=2&&(eo++,ei/=2),eo+eu>=el?(ea=0,eo=el):eo+eu>
6=1?(ea=(Y*ei-1)*Math.pow(2,en),eo+=eu):(ea=Y*Math.pow(2,eu-1)*Math.pow(2,en),eo=0));en>=8;G[X+ef]=255&ea,ef+=ed,ea/=256,en-=8);for(eo=eo<<en|ea,ec+=en;ec>0;G[X+ef]=255&eo,ef+=ed,eo/=256,ec-=8);G[X+ef-ed]|=128*ep}},16529:function(){},96636:function(){},48797:function(G,Y,X){!function(){var Y={452:function(G){"use strict";G.exports=X(76271)}},Q={};function __nccwpck_require__(G){var X=Q[G];if(void 0!==X)return X.exports;var en=Q[G]={exports:{}},er=!0;try{Y[G](en,en.exports,__nccwpck_require__),er=!1}finally{er&&delete Q[G]}return en.exports}__nccwpck_require__.ab="//";var en={};!function(){var G,Y=(G=__nccwpck_require__(452))&&"object"==typeof G&&"default"in G?G.default:G,X=/https?|ftp|gopher|file/;function r(G){"string"==typeof G&&(G=d(G));var Q,en,er,eo,ea,ei,ec,el,eu,es=(en=(Q=G).auth,er=Q.hostname,eo=Q.protocol||"",ea=Q.pathname||"",ei=Q.hash||"",ec=Q.query||"",el=!1,en=en?encodeURIComponent(en).replace(/%3A/i,":")+"@":"",Q.host?el=en+Q.host:er&&(el=en+(~er.indexOf(":")?"["+er+"]":er),Q.port&&(el+=":"+Q.port)),ec&&"object"==typeof ec&&(ec=Y.encode(ec)),eu=Q.search||ec&&"?"+ec||"",eo&&":"!==eo.substr(-1)&&(eo+=":"),Q.slashes||(!eo||X.test(eo))&&!1!==el?(el="//"+(el||""),ea&&"/"!==ea[0]&&(ea="/"+ea)):el||(el=""),ei&&"#"!==ei[0]&&(ei="#"+ei),eu&&"?"!==eu[0]&&(eu="?"+eu),{protocol:eo,host:el,pathname:ea=ea.replace(/[?#]/g,encodeURIComponent),search:eu=eu.replace("#","%23"),hash:ei});return""+es.protocol+es.host+es.pathname+es.search+es.hash}var Q="http://",er=Q+"w.w",eo=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,ea=/https?|ftp|gopher|file/;function h(G,Y){var X="string"==typeof G?d(G):G;G="object"==typeof G?r(G):G;var en=d(Y),ei="";X.protocol&&!X.slashes&&(ei=X.protocol,G=G.replace(X.protocol,""),ei+="/"===Y[0]||"/"===G[0]?"/":""),ei&&en.protocol&&(ei="",en.slashes||(ei=en.protocol,Y=Y.replace(en.protocol,"")));var ec=G.match(eo);ec&&!en.protocol&&(G=G.substr((ei=ec[1]+(ec[2]||"")).length),/^\/\/[^/]/.test(Y)&&(ei=ei.slice(0,-1)));var el=new URL(G,er+"/"),eu=new URL(Y,el).toString().replace(er,""),es=en.protocol||X.protocol;return es+=X.slashes||en.slashes?"//":"",!ei&&es?eu=eu.replace(Q,es):ei&&(eu=eu.replace(Q,"")),ea.test(eu)||~Y.indexOf(".")||"/"===G.slice(-1)||"/"===Y.slice(-1)||"/"!==eu.slice(-1)||(eu=eu.slice(0,-1)),ei&&(eu=ei+("/"===eu[0]?eu.substr(1):eu)),eu}function l(){}l.prototype.parse=d,l.prototype.format=r,l.prototype.resolve=h,l.prototype.resolveObject=h;var ei=/^https?|ftp|gopher|file/,ec=/^(.*?)([#?].*)/,el=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,eu=/^([a-z0-9.+-]*:)?\/\/\/*/i,es=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function d(G,X,Q){if(void 0===X&&(X=!1),void 0===Q&&(Q=!1),G&&"object"==typeof G&&G instanceof l)return G;var en=(G=G.trim()).match(ec);G=en?en[1].replace(/\\/g,"/")+en[2]:G.replace(/\\/g,"/"),es.test(G)&&"/"!==G.slice(-1)&&(G+="/");var eo=!/(^javascript)/.test(G)&&G.match(el),ea=eu.test(G),ef="";eo&&(ei.test(eo[1])||(ef=eo[1].toLowerCase(),G=""+eo[2]+eo[3]),eo[2]||(ea=!1,ei.test(eo[1])?(ef=eo[1],G=""+eo[3]):G="//"+eo[3]),3!==eo[2].length&&1!==eo[2].length||(ef=eo[1],G="/"+eo[3]));var ed,ep=(en?en[1]:G).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),em=ep&&ep[1],eh=new l,eg="",ev="";try{ed=new URL(G)}catch(Y){eg=Y,ef||Q||!/^\/\//.test(G)||/^\/\/.+[@.]/.test(G)||(ev="/",G=G.substr(1));try{ed=new URL(G,er)}catch(G){return eh.protocol=ef,eh.href=ef,eh}}eh.slashes=ea&&!ev,eh.host="w.w"===ed.host?"":ed.host,eh.hostname="w.w"===ed.hostname?"":ed.hostname.replace(/(\[|\])/g,""),eh.protocol=eg?ef||null:ed.protocol,eh.search=ed.search.replace(/\\/g,"%5C"),eh.hash=ed.hash.replace(/\\/g,"%5C");var eb=G.split("#");!eh.search&&~eb[0].indexOf("?")&&(eh.search="?"),eh.hash||""!==eb[1]||(eh.hash="#"),eh.query=X?Y.decode(ed.search.substr(1)):eh.search.substr(1),eh.pathname=ev+(eo?ed.pathname.replace(/['^|`]/g,function(G){return"%"+G.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(G,Y){try{return decodeURIComponent(Y).split("").map(function(G){var Y=G.charCodeAt();return Y>256||/^[a-z0-9]$/i.test(G)?G:"%"+Y.toString(16).toUpperCase()}).join("")}catch(G){return Y}}):ed.pathname),"about:"===eh.protocol&&"blank"===eh.pathname&&(eh.protocol="",eh.pathname=""),eg&&"/"!==G[0]&&(eh.pathname=eh.pathname.substr(1)),ef&&!ei.test(ef)&&"/"!==G.slice(-1)&&"/"===eh.pathname&&(eh.pathname=""),eh.path=eh.pathname+eh.search,eh.auth=[ed.username,ed.password].map(decodeURIComponent).filter(
6Boolean).join(":"),eh.port=ed.port,em&&!eh.host.endsWith(em)&&(eh.host+=em,eh.port=em.slice(1)),eh.href=ev?""+eh.pathname+eh.search+eh.hash:r(eh);var eE=/^(file)/.test(eh.href)?["host","hostname"]:[];return Object.keys(eh).forEach(function(G){~eE.indexOf(G)||(eh[G]=eh[G]||null)}),eh}en.parse=d,en.format=r,en.resolve=h,en.resolveObject=function(G,Y){return d(h(G,Y))},en.Url=l}(),G.exports=en}()},76271:function(G){!function(){"use strict";var Y={815:function(G){G.exports=function(G,X,Q,en){X=X||"&",Q=Q||"=";var er={};if("string"!=typeof G||0===G.length)return er;var eo=/\+/g;G=G.split(X);var ea=1e3;en&&"number"==typeof en.maxKeys&&(ea=en.maxKeys);var ei=G.length;ea>0&&ei>ea&&(ei=ea);for(var ec=0;ec<ei;++ec){var el,eu,es,ef,ed=G[ec].replace(eo,"%20"),ep=ed.indexOf(Q);(ep>=0?(el=ed.substr(0,ep),eu=ed.substr(ep+1)):(el=ed,eu=""),es=decodeURIComponent(el),ef=decodeURIComponent(eu),Object.prototype.hasOwnProperty.call(er,es))?Y(er[es])?er[es].push(ef):er[es]=[er[es],ef]:er[es]=ef}return er};var Y=Array.isArray||function(G){return"[object Array]"===Object.prototype.toString.call(G)}},577:function(G){var stringifyPrimitive=function(G){switch(typeof G){case"string":return G;case"boolean":return G?"true":"false";case"number":return isFinite(G)?G:"";default:return""}};G.exports=function(G,Q,en,er){return(Q=Q||"&",en=en||"=",null===G&&(G=void 0),"object"==typeof G)?map(X(G),function(X){var er=encodeURIComponent(stringifyPrimitive(X))+en;return Y(G[X])?map(G[X],function(G){return er+encodeURIComponent(stringifyPrimitive(G))}).join(Q):er+encodeURIComponent(stringifyPrimitive(G[X]))}).join(Q):er?encodeURIComponent(stringifyPrimitive(er))+en+encodeURIComponent(stringifyPrimitive(G)):""};var Y=Array.isArray||function(G){return"[object Array]"===Object.prototype.toString.call(G)};function map(G,Y){if(G.map)return G.map(Y);for(var X=[],Q=0;Q<G.length;Q++)X.push(Y(G[Q],Q));return X}var X=Object.keys||function(G){var Y=[];for(var X in G)Object.prototype.hasOwnProperty.call(G,X)&&Y.push(X);return Y}}},X={};function __nccwpck_require__(G){var Q=X[G];if(void 0!==Q)return Q.exports;var en=X[G]={exports:{}},er=!0;try{Y[G](en,en.exports,__nccwpck_require__),er=!1}finally{er&&delete X[G]}return en.exports}__nccwpck_require__.ab="//";var Q={};Q.decode=Q.parse=__nccwpck_require__(815),Q.encode=Q.stringify=__nccwpck_require__(577),G.exports=Q}()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.