PageSourceSearch

https://www.fetch.ai/_next/static/chunks/8855.35b1ead53aef3950.js

js fetch.ai collected 2026-10-01 11:54:12 UTC 247,579 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8855],{1150:e=>{!function(){"use strict";var t={815:function(e){e.exports=function(e,n,r,o){n=n||"&",r=r||"=";var a={};if("string"!=typeof e||0===e.length)return a;var i=/\+/g;e=e.split(n);var c=1e3;o&&"number"==typeof o.maxKeys&&(c=o.maxKeys);var l=e.length;c>0&&l>c&&(l=c);for(var u=0;u<l;++u){var s,d,f,p,m=e[u].replace(i,"%20"),h=m.indexOf(r);(h>=0?(s=m.substr(0,h),d=m.substr(h+1)):(s=m,d=""),f=decodeURIComponent(s),p=decodeURIComponent(d),Object.prototype.hasOwnProperty.call(a,f))?t(a[f])?a[f].push(p):a[f]=[a[f],p]:a[f]=p}return a};var t=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},577:function(e){var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,a,i,c){return(a=a||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e)?r(o(e),function(o){var c=encodeURIComponent(t(o))+i;return n(e[o])?r(e[o],function(e){return c+encodeURIComponent(t(e))}).join(a):c+encodeURIComponent(t(e[o]))}).join(a):c?encodeURIComponent(t(c))+i+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var o=Object.keys||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}},i=!0;try{t[e](a,a.exports,r),i=!1}finally{i&&delete n[e]}return a.exports}r.ab="//";var o={};o.decode=o.parse=r(815),o.encode=o.stringify=r(577),e.exports=o}()},2756:(e,t,n)=>{"use strict";e.exports=n(64786)},13466:(e,t,n)=>{"use strict";var r=n(27788),o=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(n(76196)),a=function(){return o.createElement(r.Icon,{size:16},o.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"}),o.createElement("path",{d:"M10,6.349a6,6,0,0,1,0,11.3,6,6,0,1,0,0-11.3Z"}))},i=function(){return o.createElement(r.Icon,{size:16},o.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"}),o.createElement("path",{d:"M11.491,6c4,0,6,2.686,6,6s-2,6-6,6Z"}))},c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},l={left:0,top:8},u=function(e){var t=e.onClick,n=o.useContext(r.ThemeContext),c=o.useContext(r.LocalizationContext).l10n,u="dark"===n.currentTheme,s=c&&c.theme?u?c.theme.switchLightTheme:c.theme.switchDarkTheme:u?"Switch to the light theme":"Switch to the dark theme";return o.createElement(r.Tooltip,{ariaControlsSuffix:"theme-switch",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaLabel:s,testId:"theme__switch-button",onClick:t},u?o.createElement(i,null):o.createElement(a,null)),content:function(){return s},offset:l})},s=function(e){var t=e.children,n=o.useContext(r.ThemeContext);return(t||function(e){return o.createElement(u,{onClick:e.onClick})})({onClick:function(){return n.setCurrentTheme("dark"===n.currentTheme?"light":"dark")}})},d=function(e){var t=e.onClick,n=o.useContext(r.ThemeContext),c=o.useContext(r.LocalizationContext).l10n,l="dark"===n.currentTheme,u=c&&c.theme?l?c.theme.switchLightTheme:c.theme.switchDarkTheme:l?"Switch to the light theme":"Switch to the dark theme";return o.createElement(r.MenuItem,{icon:l?o.createElement(i,null):o.createElement(a,null),testId:"theme__switch-menu",onClick:t},u)};t.DarkIcon=a,t.LightIcon=i,t.themePlugin=function(){var e=function(e){return o.createElement(s,c({},e))};return{SwitchTheme:e,SwitchThemeButton:function(){return o.createElement(e,null,function(e){return o.createElement(u,c({},e))})},SwitchThemeMenuItem:function(t){return o.createElement(e,null,function(e){return o.createElement(d,{onClick:function(){e.onClick(),t.onClick()}})})}}}},17566:()=>{},18346:(e,t,n)=>{"use strict";e.exports=n(20687)}
1,19964:(e,t,n)=>{"use strict";var r=n(27788),o=n(95290),a=n(76196),i=n(33816),c=n(90396),l=n(18346),u=n(38896),s=n(40108),d=n(50804),f=n(34336),p=n(84568),m=n(65850),h=n(89740),g=n(2756),v=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(a),b=function(){return v.createElement(r.Icon,{size:16},v.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"}))},E={left:0,top:8},y=function(e){var t=e.toolbarSlot,n=v.useContext(r.LocalizationContext).l10n,a=v.useContext(r.ThemeContext).direction===r.TextDirection.RightToLeft?r.Position.BottomLeft:r.Position.BottomRight,i=t.DownloadMenuItem,c=t.EnterFullScreenMenuItem,l=t.GoToFirstPageMenuItem,u=t.GoToLastPageMenuItem,s=t.GoToNextPageMenuItem,d=t.GoToPreviousPageMenuItem,f=t.OpenMenuItem,p=t.PrintMenuItem,m=t.RotateBackwardMenuItem,h=t.RotateForwardMenuItem,g=t.ShowPropertiesMenuItem,y=t.SwitchScrollModeMenuItem,w=t.SwitchSelectionModeMenuItem,S=t.SwitchViewModeMenuItem,_=t.SwitchThemeMenuItem;return v.createElement(r.Popover,{ariaControlsSuffix:"toolbar-more-actions",ariaHasPopup:"menu",position:a,target:function(e,t){var o=n&&n.toolbar?n.toolbar.moreActions:"More actions";return v.createElement(r.Tooltip,{ariaControlsSuffix:"toolbar-more-actions",position:a,target:v.createElement(r.MinimalButton,{ariaLabel:o,isSelected:t,testId:"toolbar__more-actions-popover-target",onClick:e},v.createElement(b,null)),content:function(){return o},offset:E})},content:function(e){return v.createElement(r.Menu,null,v.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},v.createElement(_,{onClick:e})),v.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},v.createElement(c,{onClick:e})),v.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},v.createElement(f,null)),v.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},v.createElement(p,{onClick:e})),v.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},v.createElement(i,{onClick:e})),v.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},v.createElement(r.MenuDivider,null)),v.createElement(l,{onClick:e}),v.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},v.createElement(d,{onClick:e})),v.createElement("div",{className:"rpv-core__display--block rpv-core__display--hidden-medium"},v.createElement(s,{onClick:e})),v.createElement(u,{onClick:e}),v.createElement(r.MenuDivider,null),v.createElement(h,{onClick:e}),v.createElement(m,{onClick:e}),v.createElement(r.MenuDivider,null),v.createElement(w,{mode:o.SelectionMode.Text,onClick:e}),v.createElement(w,{mode:o.SelectionMode.Hand,onClick:e}),v.createElement(r.MenuDivider,null),v.createElement(y,{mode:r.ScrollMode.Page,onClick:e}),v.createElement(y,{mode:r.ScrollMode.Vertical,onClick:e}),v.createElement(y,{mode:r.ScrollMode.Horizontal,onClick:e}),v.createElement(y,{mode:r.ScrollMode.Wrapped,onClick:e}),v.createElement(r.MenuDivider,null),v.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},v.createElement(S,{mode:r.ViewMode.SinglePage,onClick:e})),v.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},v.createElement(S,{mode:r.ViewMode.DualPage,onClick:e})),v.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},v.createElement(S,{mode:r.ViewMode.DualPageWithCover,onClick:e})),v.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},v.createElement(r.MenuDivider,null)),v.createElement(g,{onClick:e}))},offset:E,closeOnClickOutside:!0,closeOnEscape:!0})},w=function(){return(w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},S=function(e){return function(t){var n=v.useMemo(function(){return e(t)},[]),o=v.useContext(r.ThemeContext).direction===r.TextDirection.RightToLeft,a=n.CurrentPageInput,i=n.Download,c=n.EnterFullScreen,l=n.GoToNextPage,u=n.GoToPreviousPage,s=n.NumberOfPages,d=n.Open,f=n.Print,p=n.ShowSearchPopover,m=n.SwitchTheme,h=n.Zoom,g=n.ZoomIn,b=n.ZoomOut;return v.createElement("div",{"data-testid":"toolbar",className:r.classNames({"rpv-toolbar":!0,"rpv-toolbar--rtl":o}),role:"toolbar","aria-orientation":"horizontal"},v.createElement("div",{className:"rpv-toolbar__left"},v.createElement("div",{className:"rpv-toolbar__item"},v.createElement(p,null)),v.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},v.createElement("div",{className:"rpv-toolbar__item"},v.createElement(u,null))),v.createElement("div",{className:"rpv-toolbar__item"},v.createElement(a,null),v.createElement("span",{className:"rpv-toolbar__label"},v.createElement(s,null))),v.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},v.createElement("div",{className:"rpv-toolbar__item"},v.createElement(l,null)))),v.createElement("div",{className:"rpv-toolbar__center"},v.createElement("div",{className:"rpv-toolbar__item"},v.createElement(b,null)),v.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-small"},v.createElement("div",{className:"rpv-toolbar__item"},v.createElement(h,null))),v.createElement("div",{className:"rpv-toolbar__item"},v.createElement(g,null))),v.createElement("div",{className:"rpv-toolbar__right"},v.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-medium"},v.createElement("div",{className:"rpv-toolbar__item"},v.createElement(m,null))),v.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-medium"},v.createElement("div",{className:"rpv-toolbar__item"},v.createElement(c,null))),v.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-medium"},v.createElement("div",{className:"rpv-toolbar__item"},v.createElement(d,null))),v.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-medium"},v.createElement("div",{className:"rpv-toolbar__item"},v.createElement(i,null))),v.createElement("div",{className:"rpv-core__display--hidden rpv-core__display--block-medium"},v.createElement("div",{className:"rpv-toolbar__item"},v.createElement(f,null))),v.createElement("div",{className:"rpv-toolbar__item"},v.createElement(y,{toolbarSlot:n}))))}},_=function(e){var t=e.NumberOfPages;return Object.assign({},e,{NumberOfPages:function(){return v.createElement(v.Fragment,null,"/ ",v.createElement(t,null))}})},k=function(e){return(e.children||function(e){return S(_)(e)})(e.slot)};
1t.MoreActionsPopover=y,t.MoreIcon=b,t.toolbarPlugin=function(e){var t=i.fullScreenPlugin(e?e.fullScreenPlugin:{}),n=c.getFilePlugin(e?e.getFilePlugin:{}),r=l.openPlugin(e?e.openPlugin:{}),a=u.pageNavigationPlugin(e?e.pageNavigationPlugin:{}),b=s.printPlugin(e?e.printPlugin:{}),E=d.propertiesPlugin(),y=f.rotatePlugin(),_=p.scrollModePlugin(),C=m.searchPlugin(e?e.searchPlugin:{}),P=o.selectionModePlugin(e?e.selectionModePlugin:{}),x=h.themePlugin(),M=g.zoomPlugin(e?e.zoomPlugin:{}),R=[t,n,r,a,b,E,y,_,C,P,x,M],T=v.useCallback(function(e){var o=t.EnterFullScreen,i=t.EnterFullScreenMenuItem,c=n.Download,l=n.DownloadMenuItem,u=r.Open,s=r.OpenMenuItem,d=a.CurrentPageInput,f=a.CurrentPageLabel,p=a.GoToFirstPage,m=a.GoToFirstPageMenuItem,h=a.GoToLastPage,g=a.GoToLastPageMenuItem,S=a.GoToNextPage,R=a.GoToNextPageMenuItem,T=a.GoToPreviousPage,L=a.GoToPreviousPageMenuItem,I=a.NumberOfPages,O=b.Print,D=b.PrintMenuItem,N=E.ShowProperties,F=E.ShowPropertiesMenuItem,z=y.Rotate,B=y.RotateBackwardMenuItem,A=y.RotateForwardMenuItem,j=_.SwitchScrollMode,V=_.SwitchScrollModeMenuItem,H=_.SwitchViewMode,W=_.SwitchViewModeMenuItem,U=C.Search,K=C.ShowSearchPopover,Z=P.SwitchSelectionMode,q=P.SwitchSelectionModeMenuItem,G=x.SwitchTheme,Y=x.SwitchThemeMenuItem,J=M.CurrentScale,X=M.Zoom,$=M.ZoomIn,Q=M.ZoomInMenuItem,ee=M.ZoomOut,et=M.ZoomOutMenuItem;return v.createElement(k,w({},e,{slot:{CurrentPageInput:d,CurrentPageLabel:f,CurrentScale:J,Download:c,DownloadMenuItem:l,EnterFullScreen:o,EnterFullScreenMenuItem:i,GoToFirstPage:p,GoToFirstPageMenuItem:m,GoToLastPage:h,GoToLastPageMenuItem:g,GoToNextPage:S,GoToNextPageMenuItem:R,GoToPreviousPage:T,GoToPreviousPageMenuItem:L,NumberOfPages:I,Open:u,OpenMenuItem:s,Print:O,PrintMenuItem:D,Rotate:z,RotateBackwardMenuItem:B,RotateForwardMenuItem:A,Search:U,ShowProperties:N,ShowPropertiesMenuItem:F,ShowSearchPopover:K,SwitchScrollMode:j,SwitchScrollModeMenuItem:V,SwitchSelectionMode:Z,SwitchSelectionModeMenuItem:q,SwitchViewMode:H,SwitchViewModeMenuItem:W,SwitchTheme:G,SwitchThemeMenuItem:Y,Zoom:X,ZoomIn:$,ZoomInMenuItem:Q,ZoomOut:ee,ZoomOutMenuItem:et}}))},[]);return{fullScreenPluginInstance:t,getFilePluginInstance:n,openPluginInstance:r,pageNavigationPluginInstance:a,printPluginInstance:b,propertiesPluginInstance:E,rotatePluginInstance:y,scrollModePluginInstance:_,searchPluginInstance:C,selectionModePluginInstance:P,themePluginInstance:x,zoomPluginInstance:M,install:function(e){R.forEach(function(t){t.install&&t.install(e)})},renderPageLayer:function(e){return v.createElement(v.Fragment,null,R.map(function(t,n){return t.renderPageLayer?v.createElement(v.Fragment,{key:n},t.renderPageLayer(e)):v.createElement(v.Fragment,{key:n})}))},renderViewer:function(e){var t=e.slot;return R.forEach(function(n){n.renderViewer&&(t=n.renderViewer(w(w({},e),{slot:t})))}),t},uninstall:function(e){R.forEach(function(t){t.uninstall&&t.uninstall(e)})},onDocumentLoad:function(e){R.forEach(function(t){t.onDocumentLoad&&t.onDocumentLoad(e)})},onAnnotationLayerRender:function(e){R.forEach(function(t){t.onAnnotationLayerRender&&t.onAnnotationLayerRender(e)})},onTextLayerRender:function(e){R.forEach(function(t){t.onTextLayerRender&&t.onTextLayerRender(e)})},onViewerStateChange:function(e){var t=e;return R.forEach(function(e){e.onViewerStateChange&&(t=e.onViewerStateChange(t))}),t},renderDefaultToolbar:S,Toolbar:T}}},20687:(e,t,n)=>{"use strict";var r=n(27788),o=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(n(76196)),a=function(){return o.createElement(r.Icon,{size:16},o.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"}),o.createElement("path",{d:"M23.5,18.5v4a1,1,0,0,1-1,1H1.5a1,1,0,0,1-1-1v-4"}))},i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},c=function(e){var t=o.useRef(),n=function(){var n=t.current;n&&(n.click(),e.get("triggerOpenFile")&&e.update("triggerOpenFile",!1))},r=function(e){e&&n()};return o.useEffect(function(){return e.subscribe("triggerOpenFile",r),function(){e.unsubscribe("triggerOpenFile",r)}},[]),{inputRef:t,openFile:n}},l={left:0,top:8},u=function(e){var t=e.enableShortcuts,n=e.store,i=e.onClick,u=o.useContext(r.LocalizationContext).l10n,s=u&&u.open?u.open.openFile:"Open file",d=c(n),f=d.inputRef,p=d.openFile,m=t?r.isMac()?"Meta+O":"Ctrl+O":"";
1return o.createElement(r.Tooltip,{ariaControlsSuffix:"open",position:r.Position.BottomCenter,target:o.createElement("div",{className:"rpv-open__input-wrapper"},o.createElement("input",{accept:".pdf",ref:f,className:"rpv-open__input",multiple:!1,tabIndex:-1,title:"",type:"file",onChange:i}),o.createElement(r.MinimalButton,{ariaKeyShortcuts:m,ariaLabel:s,testId:"open__button",onClick:p},o.createElement(a,null))),content:function(){return s},offset:l})},s=function(e){var t=e.children,n=e.enableShortcuts,r=e.store;return(t||function(e){return o.createElement(u,{enableShortcuts:n,store:r,onClick:e.onClick})})({onClick:function(e){var t=e.target.files;if(t&&t.length){var n=r.get("openFile");n&&n(t[0])}}})},d=function(e){var t=e.store,n=e.onClick,i=o.useContext(r.LocalizationContext).l10n,l=i&&i.open?i.open.openFile:"Open file",u=c(t),s=u.inputRef,d=u.openFile;return o.createElement(r.MenuItem,{icon:o.createElement(a,null),testId:"open__menu",onClick:d},o.createElement("div",{className:"rpv-open__input-wrapper"},o.createElement("input",{accept:".pdf",ref:s,className:"rpv-open__input",multiple:!1,tabIndex:-1,title:"",type:"file",onChange:n}),l))},f=function(e){var t=e.containerRef,n=e.store,a=function(e){if(!e.shiftKey&&!e.altKey&&"o"===e.key&&(r.isMac()?e.metaKey:e.ctrlKey)){var o=t.current;o&&document.activeElement&&o.contains(document.activeElement)&&(e.preventDefault(),n.update("triggerOpenFile",!0))}};return o.useEffect(function(){if(t.current)return document.addEventListener("keydown",a),function(){document.removeEventListener("keydown",a)}},[t.current]),o.createElement(o.Fragment,null)};t.OpenFileIcon=a,t.openPlugin=function(e){var t=o.useMemo(function(){return Object.assign({},{enableShortcuts:!0},e)},[]),n=o.useMemo(function(){return r.createStore({})},[]),a=function(e){return o.createElement(s,i({enableShortcuts:t.enableShortcuts},e,{store:n}))};return{install:function(e){n.update("openFile",e.openFile)},renderViewer:function(e){var r=e.slot,a={children:o.createElement(o.Fragment,null,t.enableShortcuts&&o.createElement(f,{containerRef:e.containerRef,store:n}),r.children)};return i(i({},r),a)},Open:a,OpenButton:function(){return o.createElement(a,null)},OpenMenuItem:function(){return o.createElement(a,null,function(e){return o.createElement(d,{store:n,onClick:e.onClick})})}}}},22884:(e,t,n)=>{!function(){var t={452:function(e){"use strict";e.exports=n(1150)}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var a=r[e]={exports:{}},i=!0;try{t[e](a,a.exports,o),i=!1}finally{i&&delete r[e]}return a.exports}o.ab="//";var a={};!function(){var e,t=(e=o(452))&&"object"==typeof e&&"default"in e?e.default:e,n=/https?|ftp|gopher|file/;function r(e){"string"==typeof e&&(e=v(e));var r,o,a,i,c,l,u,s,d,f=(o=(r=e).auth,a=r.hostname,i=r.protocol||"",c=r.pathname||"",l=r.hash||"",u=r.query||"",s=!1,o=o?encodeURIComponent(o).replace(/%3A/i,":")+"@":"",r.host?s=o+r.host:a&&(s=o+(~a.indexOf(":")?"["+a+"]":a),r.port&&(s+=":"+r.port)),u&&"object"==typeof u&&(u=t.encode(u)),d=r.search||u&&"?"+u||"",i&&":"!==i.substr(-1)&&(i+=":"),r.slashes||(!i||n.test(i))&&!1!==s?(s="//"+(s||""),c&&"/"!==c[0]&&(c="/"+c)):s||(s=""),l&&"#"!==l[0]&&(l="#"+l),d&&"?"!==d[0]&&(d="?"+d),{protocol:i,host:s,pathname:c=c.replace(/[?#]/g,encodeURIComponent),search:d=d.replace("#","%23"),hash:l});return""+f.protocol+f.host+f.pathname+f.search+f.hash}var i="http://",c=i+"w.w",l=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,u=/https?|ftp|gopher|file/;function s(e,t){var n="string"==typeof e?v(e):e;e="object"==typeof e?r(e):e;var o=v(t),a="";n.protocol&&!n.slashes&&(a=n.protocol,e=e.replace(n.protocol,""),a+="/"===t[0]||"/"===e[0]?"/":""),a&&o.protocol&&(a="",o.slashes||(a=o.protocol,t=t.replace(o.protocol,"")));var s=e.match(l);s&&!o.protocol&&(e=e.substr((a=s[1]+(s[2]||"")).length),/^\/\/[^/]/.test(t)&&(a=a.slice(0,-1)));var d=new URL(e,c+"/"),f=new URL(t,d).toString().replace(c,""),p=o.protocol||n.protocol;return p+=n.slashes||o.slashes?"//":"",!a&&p?f=f.replace(i,p):a&&(f=f.replace(i,"")),u.test(f)||~t.indexOf(".")||"/"===e.slice(-1)||"/"===t.slice(-1)||"/"!==f.slice(-1)||(f=f.slice(0,-1)),a&&(f=a+("/"===f[0]?f.substr(1):f)),f}function d(){}d.prototype.parse=v,d.prototype.format=r,d.prototype.resolve=s,d.prototype.resolveObject=s;var f=/^https?|ftp|gopher|file/,p=/^(.*?)([#?].*)/,m=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,h=/^([a-z0-9.+-]*:)?\/\/\/*/i,g=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function v(e,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!1),e&&"object"==typeof e&&e instanceof d)return e;var a=(e=e.trim()).match(p);e=a?a[1].replace(/\\/g,"/")+a[2]:e.replace(/\\/g,"/"),g.test(e)&&"/"!==e.slice(-1)&&(e+="/");var i=!/(^javascript)/.test(e)&&e.match(m),l=h.test(e),u="";i&&(f.test(i[1])||(u=i[1].toLowerCase(),e=""+i[2]+i[3]),i[2]||(l=!1,f.test(i[1])?(u=i[1],e=""+i[3]):e="//"+i[3]),3!==i[2].length&&1!==i[2].length||(u=i[1],e="/"+i[3]));var s,v=(a?a[1]:e).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),b=v&&v[1],E=new d,y="",w="";try{s=new URL(e)}catch(t){y=t,u||o||!/^\/\//.test(e)||/^\/\/.+[@.]/.test(e)||(w="/",e=e.substr(1));try{s=new URL(e,c)}catch(e){return E.protocol=u,E.href=u,E}}E.slashes=l&&!w,E.host="w.w"===s.host?"":s.host,E.hostname="w.w"===s.hostname?"":s.hostname.replace(/(\[|\])/g,""),E.protocol=y?u||null:s.protocol,E.search=s.search.replace(/\\/g,"%5C"),E.hash=s.hash.replace(/\\/g,"%5C");var S=e.split("#");!E.search&&~S[0].indexOf("?")&&(E.search="?"),E.hash||""!==S[1]||(E.hash="#"),E.query=n?t.decode(s.search.substr(1)):E.search.substr(1),E.pathname=w+(i?s.pathname.replace(/['^|`]/g,function(e){return"%"+e.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(e,t){try{return decodeURIComponent(t).split("").map(function(e){var t=e.charCodeAt();return t>256||/^[a-z0-9]$/i.test(e)?e:"%"+t.toString(16).toUpperCase()}).join("")}catch(e){return t}}):s.pathname),"about:"===E.protocol&&"blank"===E.pathname&&(E.protocol="",E.pathname=""),y&&"/"!==e[0]&&(E.pathname=E.pathname.substr(1)),u&&!f.test(u)&&"/"!==e.slice(-1)&&"/"===E.pathname&&(E.pathname=""),E.path=E.pathname+E.search,E.auth=[s.username,s.password].map(decodeURIComponent).filter(
1Boolean).join(":"),E.port=s.port,b&&!E.host.endsWith(b)&&(E.host+=b,E.port=b.slice(1)),E.href=w?""+E.pathname+E.search+E.hash:r(E);var _=/^(file)/.test(E.href)?["host","hostname"]:[];return Object.keys(E).forEach(function(e){~_.indexOf(e)||(E[e]=E[e]||null)}),E}a.parse=v,a.format=r,a.resolve=s,a.resolveObject=function(e,t){return v(s(e,t))},a.Url=d}(),e.exports=a}()},26236:(e,t,n)=>{"use strict";var r=n(27788),o=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(n(76196)),a=function(){return o.createElement(r.Icon,{size:16},o.createElement("rect",{x:"0.5",y:"0.497",width:"22",height:"22",rx:"1",ry:"1"}),o.createElement("line",{x1:"0.5",y1:"6.497",x2:"22.5",y2:"6.497"}),o.createElement("line",{x1:"11.5",y1:"6.497",x2:"11.5",y2:"22.497"}))},i=function(){return o.createElement(r.Icon,{size:16},o.createElement("rect",{x:"0.5",y:"0.497",width:"22",height:"22",rx:"1",ry:"1"}),o.createElement("line",{x1:"11.5",y1:"0.497",x2:"11.5",y2:"22.497"}))},c=function(){return o.createElement(r.Icon,{size:16},o.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"}))},l=function(){return o.createElement(r.Icon,{size:16},o.createElement("rect",{x:"0.5",y:"0.497",width:"22",height:"22",rx:"1",ry:"1"}))},u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=function(e,t){e.get("switchScrollMode")(t);var n=e.get("viewMode");t!==r.ScrollMode.Horizontal&&t!==r.ScrollMode.Wrapped||n===r.ViewMode.SinglePage||e.get("switchViewMode")(r.ViewMode.SinglePage)},d=function(){return o.createElement(r.Icon,{size:16},o.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"}))},f=function(){return o.createElement(r.Icon,{size:16},o.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"}))},p=function(e){var t=e.children,n=e.mode,a=e.onClick,i=o.useContext(r.LocalizationContext).l10n,u="",s=o.createElement(d,null);switch(n){case r.ScrollMode.Horizontal:u=i&&i.scrollMode?i.scrollMode.horizontalScrolling:"Horizontal scrolling",s=o.createElement(c,null);break;case r.ScrollMode.Page:u=i&&i.scrollMode?i.scrollMode.pageScrolling:"Page scrolling",s=o.createElement(l,null);break;case r.ScrollMode.Wrapped:u=i&&i.scrollMode?i.scrollMode.wrappedScrolling:"Wrapped scrolling",s=o.createElement(f,null);break;case r.ScrollMode.Vertical:default:u=i&&i.scrollMode?i.scrollMode.verticalScrolling:"Vertical scrolling",s=o.createElement(d,null)}return t({icon:s,label:u,onClick:a})},m={left:0,top:8},h=function(e){var t=e.isDisabled,n=e.isSelected,a=e.mode,i=e.onClick,c="";switch(a){case r.ScrollMode.Horizontal:c="scroll-mode__horizontal-button";break;case r.ScrollMode.Page:c="scroll-mode__page-button";break;case r.ScrollMode.Wrapped:c="scroll-mode__wrapped-button";break;case r.ScrollMode.Vertical:default:c="scroll-mode__vertical-button"}return o.createElement(p,{mode:a,onClick:i}
1,function(e){return o.createElement(r.Tooltip,{ariaControlsSuffix:"scroll-mode-switch",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaLabel:e.label,isDisabled:t,isSelected:n,testId:c,onClick:e.onClick},e.icon),content:function(){return e.label},offset:m})})},g=function(e){var t=o.useState(e.get("scrollMode")||r.ScrollMode.Vertical),n=t[0],a=t[1],i=function(e){a(e)};return o.useEffect(function(){return e.subscribe("scrollMode",i),function(){e.unsubscribe("scrollMode",i)}},[]),{scrollMode:n}},v=function(e){var t=o.useState(e.get("viewMode")||r.ViewMode.SinglePage),n=t[0],a=t[1],i=function(e){a(e)};return o.useEffect(function(){return e.subscribe("viewMode",i),function(){e.unsubscribe("viewMode",i)}},[]),{viewMode:n}},b=function(e){var t=e.children,n=e.mode,a=e.store,i=v(a).viewMode,c=g(a).scrollMode===n,l=(n===r.ScrollMode.Horizontal||n===r.ScrollMode.Wrapped)&&i!==r.ViewMode.SinglePage;return(t||function(e){return o.createElement(h,{isDisabled:l,isSelected:c,mode:e.mode,onClick:e.onClick})})({isDisabled:l,isSelected:c,mode:n,onClick:function(){s(a,n)}})},E=function(e){var t=e.isDisabled,n=e.isSelected,a=e.mode,i=e.onClick,c="";switch(a){case r.ScrollMode.Horizontal:c="scroll-mode__horizontal-menu";break;case r.ScrollMode.Page:c="scroll-mode__page-menu";break;case r.ScrollMode.Wrapped:c="scroll-mode__wrapped-menu";break;case r.ScrollMode.Vertical:default:c="scroll-mode__vertical-menu"}return o.createElement(p,{mode:a,onClick:i},function(e){return o.createElement(r.MenuItem,{checked:n,icon:e.icon,isDisabled:t,testId:c,onClick:e.onClick},e.label)})},y=function(e,t){e.get("switchViewMode")(t);var n=e.get("scrollMode");n!==r.ScrollMode.Horizontal&&n!==r.ScrollMode.Wrapped||t===r.ViewMode.SinglePage||e.get("switchScrollMode")(r.ScrollMode.Vertical)},w=function(e){var t=e.children,n=e.mode,c=e.onClick,u=o.useContext(r.LocalizationContext).l10n,s="",d=o.createElement(l,null);switch(n){case r.ViewMode.DualPage:s=u&&u.scrollMode?u.scrollMode.dualPage:"Dual page",d=o.createElement(i,null);break;case r.ViewMode.DualPageWithCover:s=u&&u.scrollMode?u.scrollMode.dualPageCover:"Dual page with cover",d=o.createElement(a,null);break;case r.ViewMode.SinglePage:default:s=u&&u.scrollMode?u.scrollMode.singlePage:"Single page",d=o.createElement(l,null)}return t({icon:d,label:s,onClick:c})},S={left:0,top:8},_=function(e){var t=e.isDisabled,n=e.isSelected,a=e.mode,i=e.onClick,c="";switch(a){case r.ViewMode.DualPage:c="view-mode__dual-button";break;case r.ViewMode.DualPageWithCover:c="view-mode__dual-cover-button";break;case r.ViewMode.SinglePage:default:c="view-mode__single-button"}return o.createElement(w,{mode:a,onClick:i},function(e){return o.createElement(r.Tooltip,{ariaControlsSuffix:"view-mode-switch",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaLabel:e.label,isDisabled:t,isSelected:n,testId:c,onClick:e.onClick},e.icon),content:function(){return e.label},offset:S})})},k=function(e){var t=e.children,n=e.mode,a=e.store,i=v(a).viewMode,c=g(a).scrollMode,l=i===n,u=(c===r.ScrollMode.Horizontal||c===r.ScrollMode.Wrapped)&&n!==r.ViewMode.SinglePage;return(t||function(e){return o.createElement(_,{isDisabled:u,isSelected:l,mode:e.mode,onClick:e.onClick})})({isDisabled:u,isSelected:l,mode:n,onClick:function(){y(a,n)}})},C=function(e){var t=e.isDisabled,n=e.isSelected,a=e.mode,i=e.onClick,c="";switch(a){case r.ViewMode.DualPage:c="view-mode__dual-menu";break;case r.ViewMode.DualPageWithCover:c="view-mode__dual-cover-menu";break;case r.ViewMode.SinglePage:default:c="view-mode__single-menu"}return o.createElement(w,{mode:a,onClick:i},function(e){return o.createElement(r.MenuItem,{checked:n,icon:e.icon,isDisabled:t,testId:c,onClick:e.onClick},e.label)})};t.DualPageCoverViewModeIcon=a,t.DualPageViewModeIcon=i,t.HorizontalScrollingIcon=c,t.PageScrollingIcon=l,t.VerticalScrollingIcon=d,t.WrappedScrollingIcon=f,t.scrollModePlugin=function(){var e=o.useMemo(function(){return r.createStore({scrollMode:r.ScrollMode.Vertical,viewMode:r.ViewMode.SinglePage,switchScrollMode:function(){},switchViewMode:function(){}})},[]),t=function(t){return o.createElement(b,u({},t,{store:e}))},n=function(t){return o.createElement(k,u({},t,{store:e}))};return{install:function(t){e.update("switchScrollMode",t.switchScrollMode),e.update("switchViewMode",t.switchViewMode)},onViewerStateChange:function(t){return e.update("scrollMode",t.scrollMode),e.update("viewMode",t.viewM
1ode),t},switchScrollMode:function(t){s(e,t)},switchViewMode:function(t){y(e,t)},SwitchScrollMode:t,SwitchScrollModeButton:function(e){return o.createElement(t,{mode:e.mode},function(e){return o.createElement(h,{isDisabled:e.isDisabled,isSelected:e.isSelected,mode:e.mode,onClick:function(){e.onClick()}})})},SwitchScrollModeMenuItem:function(e){return o.createElement(t,{mode:e.mode},function(t){return o.createElement(E,{isDisabled:t.isDisabled,isSelected:t.isSelected,mode:t.mode,onClick:function(){t.onClick(),e.onClick()}})})},SwitchViewMode:n,SwitchViewModeButton:function(e){return o.createElement(n,{mode:e.mode},function(e){return o.createElement(_,{isDisabled:e.isDisabled,isSelected:e.isSelected,mode:e.mode,onClick:function(){e.onClick()}})})},SwitchViewModeMenuItem:function(e){return o.createElement(n,{mode:e.mode},function(t){return o.createElement(C,{isDisabled:t.isDisabled,isSelected:t.isSelected,mode:t.mode,onClick:function(){t.onClick(),e.onClick()}})})}}}},27788:(e,t,n)=>{"use strict";e.exports=n(38110)},30644:(e,t,n)=>{"use strict";var r=n(27788),o=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(n(76196)),a=function(){return o.createElement(r.Icon,{size:16},o.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"}),o.createElement("path",{d:"M23.5,18.5v4a1,1,0,0,1-1,1H1.5a1,1,0,0,1-1-1v-4"}))},i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},c={left:0,top:8},l=function(e){var t=e.onClick,n=o.useContext(r.LocalizationContext).l10n,i=n&&n.download?n.download.download:"Download";return o.createElement(r.Tooltip,{ariaControlsSuffix:"get-file",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaLabel:i,testId:"get-file__download-button",onClick:t},o.createElement(a,null)),content:function(){return i},offset:c})},u=function(e,t){var n=document.createElement("a");n.style.display="none",n.href=e,n.setAttribute("download",t),document.body.appendChild(n),n.click(),document.body.removeChild(n)},s=function(e,t,n){var r=URL.createObjectURL(new Blob([e],{type:n}));u(r,t),r&&URL.revokeObjectURL(r)},d=function(e,t){e.getData().then(function(e){/iphone|ipod|ipad/i.test(navigator.userAgent)&&!/CriOS/i.test(navigator.userAgent)?s(e,t,"application/octet-stream"):/iphone|ipod|ipad/i.test(navigator.userAgent)&&/CriOS/i.test(navigator.userAgent)?u("data:application/pdf;base64,".concat(btoa(Array(e.length).fill("").map(function(t,n){return String.fromCharCode(e[n])}).join(""))),t):s(e,t,"application/pdf")})},f=function(e){var t=e.children,n=e.fileNameGenerator,r=e.store,a=o.useState(r.get("file")),i=a[0],c=a[1],u=o.useState(r.get("doc")),s=u[0],f=u[1],p=function(e){f(e)},m=function(e){c(e)};return o.useEffect(function(){return r.subscribe("doc",p),r.subscribe("file",m),function(){r.subscribe("doc",p),r.unsubscribe("file",m)}},[]),(t||function(e){return o.createElement(l,{onClick:e.onClick})})({onClick:function(){s&&i&&d(s,n(i))}})},p=function(e){var t=e.onClick,n=o.useContext(r.LocalizationContext).l10n,i=n&&n.download?n.download.download:"Download";return o.createElement(r.MenuItem,{icon:o.createElement(a,null),testId:"get-file__download-menu",onClick:t},i)};t.DownloadIcon=a,t.getFilePlugin=function(e){var t=o.useMemo(function(){return r.createStore({})},[]),n=function(e){var t,n;return e.name?(n=(t=e.name).split("/").pop())?n.split("#")[0].split("?")[0]:t:"document.pdf"},a=function(r){return o.createElement(f,i({},r,{fileNameGenerator:e&&e.fileNameGenerator||n,store:t}))};return{onDocumentLoad:function(e){t.update("doc",e.doc),t.update("file",e.file)},Download:a,DownloadButton:function(){return o.createElement(a,null,function(e){return o.createElement(l,i({},e))})},DownloadMenuItem:function(e){return o.createElement(a,null,function(t){return o.createElement(p,{onClick:function(){t.onClick(),e.onClick()}})})}}}}
1,31628:(e,t,n)=>{"use strict";e.exports=n(36619)},33487:(e,t,n)=>{"use strict";var r=n(27788),o=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(n(76196)),a=function(){return o.createElement(r.Icon,{size:16},o.createElement("path",{d:"M11.5 23.499L11.5 14.499"}),o.createElement("path",{d:"M7.5 18.499L11.5 14.499 15.5 18.499"}),o.createElement("path",{d:"M11.5 1.499L11.5 10.499"}),o.createElement("path",{d:"M7.5 6.499L11.5 10.499 15.5 6.499"}),o.createElement("path",{d:"M20.5 12.499L1.5 12.499"}))},i=function(){return o.createElement(r.Icon,{size:16},o.createElement("path",{d:"M0.5 12L23.5 12"}),o.createElement("path",{d:"M11.5 1L11.5 23"}),o.createElement("path",{d:"M8.5 4L11.5 1 14.5 4"}),o.createElement("path",{d:"M20.5 9L23.5 12 20.5 15"}),o.createElement("path",{d:"M3.5 15L0.5 12 3.5 9"}),o.createElement("path",{d:"M14.5 20L11.5 23 8.5 20"}))},c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},l={left:0,top:8},u=function(e){var t=e.enableShortcuts,n=e.onClick,a=o.useContext(r.LocalizationContext).l10n,c=a&&a.fullScreen?a.fullScreen.enterFullScreen:"Full screen",u=t?r.isMac()?"Meta+Ctrl+F":"F11":"";return o.createElement(r.Tooltip,{ariaControlsSuffix:"full-screen-enter",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaKeyShortcuts:u,ariaLabel:c,isDisabled:!r.isFullScreenEnabled(),testId:"full-screen__enter-button",onClick:n},o.createElement(i,null)),content:function(){return c},offset:l})},s={left:0,top:8},d=function(e){var t=e.onClick,n=o.useContext(r.LocalizationContext).l10n,i=n&&n.fullScreen?n.fullScreen.exitFullScreen:"Exit full screen";return o.createElement(r.Tooltip,{ariaControlsSuffix:"full-screen-exit",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaKeyShortcuts:"Esc",ariaLabel:i,testId:"full-screen__exit-button-with-tooltip",onClick:t},o.createElement(a,null)),content:function(){return i},offset:s})},f=function(e,t){var n=o.useState(t.get("fullScreenMode")),a=n[0],i=n[1],c=o.useCallback(function(e){i(e)},[]);return o.useEffect(function(){return t.subscribe("fullScreenMode",c),function(){t.unsubscribe("fullScreenMode",c)}},[]),{enterFullScreen:function(){var n=t.get("getPagesContainer");if(n){var r=e(n());t.get("enterFullScreenMode")(r)}},exitFullScreen:function(){t.get("exitFullScreenMode")()},isFullScreen:a===r.FullScreenMode.Entering||a===r.FullScreenMode.EnteredCompletely}},p=function(e){var t=e.children,n=e.enableShortcuts,r=f(e.getFullScreenTarget,e.store),a=r.enterFullScreen,i=r.exitFullScreen,c=r.isFullScreen;return(t||function(e){return c?o.createElement(d,{onClick:e.onClick}):o.createElement(u,{enableShortcuts:n,onClick:e.onClick})})({onClick:c?i:a})},m=function(e){var t=e.onClick,n=o.useContext(r.LocalizationContext).l10n,a=n&&n.fullScreen?n.fullScreen.enterFullScreen:"Full screen";return o.createElement(r.MenuItem,{icon:o.createElement(i,null),isDisabled:!r.isFullScreenEnabled(),testId:"full-screen__enter-menu",onClick:t},a)},h=function(e){var t=e.onClick,n=o.useContext(r.LocalizationContext).l10n,i=o.useContext(r.ThemeContext).direction===r.TextDirection.RightToLeft,c=n&&n.fullScreen?n.fullScreen.exitFullScreen:"Exit full screen";return o.createElement("div",{className:r.classNames({"rpv-full-screen__exit-button":!0,"rpv-full-screen__exit-button--ltr":!i,"rpv-full-screen__exit-button--rtl":i})},o.createElement(r.MinimalButton,{ariaLabel:c,testId:"full-screen__exit-button",onClick:t},o.createElement(a,null)))},g=function(e){var t=e.children,n=f(e.getFullScreenTarget,e.store),r=n.enterFullScreen,a=n.exitFullScreen,i=n.isFullScreen;return i&&(t||function(e){return o.createElement(h,{onClick:e.onClick})})({onClick:i?a:r})},v=function(e){var t=e.store,n=e.onEnterFullScreen,a=e.onExitFullScreen,i=o.useState(t.get("fullScreenMode")),c=i[0],l=i[1],u=o.useCallback(function(e){l(e)},[]);return o.useEffect(function(){switch(c){case r.FullScreenMode.EnteredCompletely:n(t.get("zoom"));break;case r.FullScreenMode.Exited:a(t.get("zoom"))}},[c]),o.useEffect(function(){return t.subscribe("fullScreenMode",u),function(){t.unsubscribe("fullScreenMode",u)}},[]),(c===r.FullScreenMode.Entering||c===r.FullScreenMode.Entered)&&o.createElement("div",{className:"rpv-full-screen__overlay"},o.createElement(r.Spinner,null))},b=function(e){var t=e.containerRef,n=f(e.getFullScreenTarget,e.store).enterFullScreen,a=function(e){if(!e.shiftKey&&!e.altKey&&
1(r.isMac()?e.metaKey&&e.ctrlKey&&"f"===e.key:"F11"===e.key)){var o=t.current;o&&document.activeElement&&o.contains(document.activeElement)&&(e.preventDefault(),n())}};return o.useEffect(function(){if(t.current)return document.addEventListener("keydown",a),function(){document.removeEventListener("keydown",a)}},[t.current]),o.createElement(o.Fragment,null)};t.ExitFullScreenIcon=a,t.FullScreenIcon=i,t.fullScreenPlugin=function(e){var t=(null==e?void 0:e.getFullScreenTarget)||function(e){return e},n=o.useMemo(function(){return Object.assign({},{enableShortcuts:!0,onEnterFullScreen:function(){},onExitFullScreen:function(){}},e)},[]),a=o.useMemo(function(){return r.createStore({enterFullScreenMode:function(){},exitFullScreenMode:function(){},fullScreenMode:r.FullScreenMode.Normal,zoom:function(){}})},[]),i=function(e){return o.createElement(p,c({},e,{enableShortcuts:n.enableShortcuts,getFullScreenTarget:t,store:a}))},l=function(){return o.createElement(g,{getFullScreenTarget:t,store:a},null==e?void 0:e.renderExitFullScreenButton)};return{install:function(e){a.update("enterFullScreenMode",e.enterFullScreenMode),a.update("exitFullScreenMode",e.exitFullScreenMode),a.update("getPagesContainer",e.getPagesContainer),a.update("zoom",e.zoom)},onViewerStateChange:function(e){return a.update("fullScreenMode",e.fullScreenMode),e},renderViewer:function(e){var r=e.slot;return r.subSlot&&(r.subSlot.children=o.createElement(o.Fragment,null,n.enableShortcuts&&o.createElement(b,{containerRef:e.containerRef,getFullScreenTarget:t,store:a}),o.createElement(v,{store:a,onEnterFullScreen:n.onEnterFullScreen,onExitFullScreen:n.onExitFullScreen}),o.createElement(l,null),r.subSlot.children)),r},EnterFullScreen:i,EnterFullScreenButton:function(){return o.createElement(i,null,function(e){return o.createElement(u,c({enableShortcuts:n.enableShortcuts},e))})},EnterFullScreenMenuItem:function(e){return o.createElement(i,null,function(t){return o.createElement(m,{onClick:function(){t.onClick(),e.onClick()}})})}}}},33816:(e,t,n)=>{"use strict";e.exports=n(33487)},34336:(e,t,n)=>{"use strict";e.exports=n(80510)},36619:(e,t,n)=>{"use strict";var r,o=n(27788),a=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(n(76196));t.ThumbnailDirection=void 0,(r=t.ThumbnailDirection||(t.ThumbnailDirection={})).Horizontal="Horizontal",r.Vertical="Vertical";var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},c=function(e){var t=e.doc,n=e.getPageIndex,r=e.renderSpinner,i=e.store,c=e.width,l=t.numPages,u=Math.max(0,Math.min(n?n({numPages:l}):0,l-1)),s=i.get("pagesRotation")||new Map,d=s.has(u)?s.get(u):0,f=a.useState(""),p=f[0],m=f[1],h=o.useIsMounted(),g=a.useRef(),v=a.useState(i.get("rotation")||0),b=v[0],E=v[1],y=a.useState(d),w=y[0],S=y[1],_=a.useState(!1),k=_[0],C=_[1],P=function(e){S(e.has(u)?e.get(u):0)},x=function(e){E(e)},M=o.useIntersectionObserver({onVisibilityChanged:function(e){C(e.isVisible)}});return a.useEffect(function(){if(k){var e=M.current;e&&(m(""),o.getPage(t,u).then(function(t){var n=t.getViewport({scale:1}),r=(n.rotation+b+w)%360,o=Math.abs(b+w)%180==0,a=o?n.width:n.height,i=o?n.height:n.width,l=document.createElement("canvas"),u=l.getContext("2d",{alpha:!1}),s=e.clientWidth,d=e.clientHeight,f=c?c/a:Math.min(s/a,d/i),p=f*a;l.height=f*i,l.width=p,l.style.opacity="0";var v=t.getViewport({rotation:r,scale:f});g.current=t.render({canvasContext:u,viewport:v}),g.current.promise.then(function(){h.current&&m(l.toDataURL()),l.width=0,l.height=0},function(){})}))}},[w,k]),a.useEffect(function(){return i.subscribe("pagesRotation",P),i.subscribe("rotation",x),function(){i.unsubscribe("pagesRotation",P),i.unsubscribe("rotation",x)}},[]),a.useEffect(function(){return function(){var e;null==(e=g.current)||e.cancel()}},[]),a.createElement("div",{ref:M,className:"rpv-thumbnail__cover-inner","data-testid":"thumbnail__cover-inner"},p?a.createElement("img",{className:"rpv-thumbnail__cover-image","data-testid":"thumbnail__cover-image",src:p}):a.createElement("div",{className:"rpv-thumbnail__cover-loader","data-testid":"thumbnail__cover-loader"},r?r():a.createElement(o.Spinner,null)))},l=function(e){var t=e.getPageIndex,n=e.renderSpinner,r=e.store,i=e.width,l=a.useState(r.get("doc")),u=l[0],s=l[1],d=function(e){s(e)};return a.useEffect(function(){return r.subscribe("doc",d),function(){r.unsubscribe("doc",d)}},[]),a.createElement("div",{className:"rpv-thumbnail__cover"}
1,u?a.createElement(c,{doc:u,getPageIndex:t,renderSpinner:n,store:r,width:i}):a.createElement("div",{className:"rpv-thumbnail__cover-loader"},n?n():a.createElement(o.Spinner,null)))},u=function(){return a.createElement(o.Spinner,null)},s=a.createContext({renderSpinner:u}),d=function(e){var t=e.children,n=e.doc,r=o.useIsMounted(),i=a.useState({loading:!0,labels:[]}),c=i[0],l=i[1];return a.useEffect(function(){n.getPageLabels().then(function(e){r.current&&l({loading:!1,labels:e||[]})})},[n.loadingTask.docId]),c.loading?a.createElement(a.Fragment,null):t(c.labels)},f=function(e){var t=e.page,n=e.pageHeight,r=e.pageIndex,i=e.pageWidth,c=e.rotation,l=e.thumbnailHeight,u=e.thumbnailWidth,d=e.onRenderCompleted,f=a.useContext(o.LocalizationContext).l10n,p=a.useRef(),m=a.useState(""),h=m[0],g=m[1],v=f&&f.thumbnail?f.thumbnail.thumbnailLabel:"Thumbnail of page {{pageIndex}}";return a.useEffect(function(){var e=p.current;e&&e.cancel();var o=document.createElement("canvas"),a=o.getContext("2d",{alpha:!1}),l=u/(i/n);o.height=l,o.width=u,o.style.height="".concat(l,"px"),o.style.width="".concat(u,"px");var s=t.getViewport({rotation:c,scale:u/i});return p.current=t.render({canvasContext:a,viewport:s}),p.current.promise.then(function(){g(o.toDataURL()),d(r)},function(){d(r)}),function(){var e;null==(e=p.current)||e.cancel()}},[c]),h?a.createElement("img",{"aria-label":v.replace("{{pageIndex}}","".concat(r+1)),src:h,height:"".concat(l,"px"),width:"".concat(u,"px")}):a.useContext(s).renderSpinner()},p=function(e){var t=e.doc,n=e.pageHeight,r=e.pageIndex,i=e.pageRotation,c=e.pageWidth,l=e.rotation,u=e.shouldRender,d=e.thumbnailWidth,p=e.onRenderCompleted,m=e.onVisibilityChanged,h=o.useIsMounted(),g=a.useState({height:n,page:null,viewportRotation:0,width:c}),v=g[0],b=g[1],E=v.page,y=v.height,w=v.width,S=w/y,_=Math.abs(l+i)%180==0,k=_?d:d/S,C=_?d/S:d;a.useEffect(function(){u&&o.getPage(t,r).then(function(e){var t=e.getViewport({scale:1});h.current&&b({height:t.height,page:e,viewportRotation:t.rotation,width:t.width})})},[u]);var P=(v.viewportRotation+l+i)%360,x=o.useIntersectionObserver({onVisibilityChanged:function(e){m(r,e)}});return a.createElement("div",{className:"rpv-thumbnail__container","data-testid":"thumbnail__container-".concat(r),ref:x,style:{height:"".concat(C,"px"),width:"".concat(k,"px")}},E?a.createElement(f,{page:E,pageHeight:_?y:w,pageIndex:r,pageWidth:_?w:y,rotation:P,thumbnailHeight:C,thumbnailWidth:k,onRenderCompleted:p}):a.useContext(s).renderSpinner())},m=function(e){var n=e.currentPage,r=e.doc,i=e.labels,c=e.pagesRotation,l=e.pageHeight,u=e.pageWidth,s=e.renderCurrentPageLabel,d=e.renderThumbnailItem,f=e.rotatedPage,m=e.rotation,h=e.thumbnailDirection,g=e.thumbnailWidth,v=e.viewMode,b=e.onJumpToPage,E=e.onRotatePage,y=r.numPages,w=r.loadingTask.docId,S=a.useRef(null),_=a.useRef([]),k=a.useState(n),C=k[0],P=k[1],x=a.useContext(o.ThemeContext).direction===o.TextDirection.RightToLeft,M=a.useState(-1),R=M[0],T=M[1],L=o.useIsMounted(),I=o.usePrevious(v),O=a.useRef(!1),D=o.useRenderQueue({doc:r}),N=a.useMemo(function(){return Array(y).fill(0).map(function(e,t){return t})},[w]),F=a.useMemo(function(){switch(v){case o.ViewMode.DualPage:return o.chunk(N,2);case o.ViewMode.DualPageWithCover:return[[N[0]]].concat(o.chunk(N.slice(1),2));case o.ViewMode.SinglePage:default:return o.chunk(N,1)}},[w,v]),z=function(){if(S.current){var e=_.current,t=C+1;t<e.length&&(C>=0&&e[C].setAttribute("tabindex","-1"),P(t))}},B=function(){if(S.current){var e=_.current,t=C-1;t>=0&&(C>=0&&e[C].setAttribute("tabindex","-1"),P(t))}},A=function(){C>=0&&C<y&&b(C)};o.useIsomorphicLayoutEffect(function(){var e=S.current;e&&(_.current=Array.from(e.querySelectorAll(".rpv-thumbnail__item")))},[v]),a.useEffect(function(){var e=_.current;if(!(0===e.length||C<0||C>e.length)){var t=e[C];t.setAttribute("tabindex","0"),t.focus()}},[C]),o.useIsomorphicLayoutEffect(function(){var e=S.current,r=_.current;if(!(!e||0===r.length||n<0||n>r.length)){var o,a,i,c,l,u,s=r[n].closest(".rpv-thumbnail__items");s&&(h===t.ThumbnailDirection.Vertical?(o=s.getBoundingClientRect().top-e.getBoundingClientRect().top,a=s.clientHeight,i=e.clientHeight,o<0?e.scrollTop+=o:o+a<=i||(e.scrollTop+=o+a-i)):(c=s.getBoundingClientRect().left-e.getBoundingClientRect().left,l=s.clientWidth,u=e.clientWidth,c<0?e.scrollLeft+=c:c+l<=u||(e.scrollLeft+=c+l-u)))}},[n,h]);var j=a.useCallback(function(e){L.current&&(D.markRendered(e),O.current=!1,H())},[w]),V=a.useCallback(function(e,t){t.isVisible?D.setVisibility(e,t.ratio):D.setOutOfRange(e),H()},[w]),H=a.useCallback(function(){if(!O.current){var e=D.getHighestPriorityPage();e>-1&&(D.markRendering(e),O.current=!0,T(e))}},[w]);return a.useEffect(function(){f>=0&&(D.markRendering(f),O.current=!0,T(f))},[w,f]),o.useIsomorphicLayoutEffect(function(){I!==v&&(D.markNotRendered(),H())},[v]),a.createElement("div",{ref:S,"data-testid":"thumbnail__list",className:o.classNames({"rpv-thumbnail__list":!0,"rpv-thumbnail__list--horizontal":h===t.ThumbnailDirection.Horizontal,"rpv-thumbnail__list--rtl":x,"rpv-thumbnail__list--vertical":h===t.ThumbnailDirection.Vertical}),onKeyDown:function(e){switch(e.key){case"ArrowDown":z();break;case"ArrowUp":B();break;case"Enter":A()}}},F.map(function(e,t){var f=!1;switch(v){case o.ViewMode.DualPage:f=n===2*t||n===2*t+1;break;case o.ViewMode.DualPageWithCover:f=0===n&&0===t||t>0&&n===2*t-1||t>0&&n===2*t;break;case o.ViewMode.SinglePage:default:f=n===t}return a.createElement("div",{className:o.classNames({"rpv-thumbnail__items":!0,"rpv-thumbnail__items--dual":v===o.ViewMode.DualPage,"rpv-thumbnail__items--dual-cover":v===o.ViewMode.DualPageWithCover,"rpv-thumbnail__items--single":v===o.ViewMode.SinglePage,"rpv-thumbnail__items--selected":f}),key:"".concat(t,"___").concat(v)},e.map(function(e){var t,f,h,w,S,_;return t=v===o.ViewMode.DualPageWithCover&&(0===e||y%2==0&&e===y-1),f="".concat(r.loadingTask.docId,"___").concat(e),h=i.length===y?i[e]:"".concat(e+1),w=s?s({currentPage:n,pageIndex:e,numPages:y,pageLabel:h}):h,S=c.has(e)?c.get(e):0,_=a.createElement(p,{doc:r,pageHeight:l,pageIndex:e,pageRotation:S,pageWidth:u,rotation:m,shouldRender:R===e,thumbnailWidth:g,onRenderCompleted:j,onVisibilityChanged:V}),d?d({currentPage:n,key:f,numPages:y,pageIndex:e,renderPageLabel:a.createElement(a.Fragment,null,w),renderPageThumbnail:_,onJumpToPage:function(){return b(e)},onRotatePage:function(t){return E(e,t)}}):a.createElement("div",{key:f},a.createElement("div",{className:o.classNames({"rpv-thumbnail__item":!0,"rpv-thumbnail__item--dual-even":v===o.ViewMode.DualPage&&e%2==0,"rpv-thumbnail__item--dual-odd":v===o.ViewMode.DualPage&&e%2==1,"rpv-thumbnail__item--dual-cover":t,"rpv-thumbnail__item--dual-cover-even":v===o.ViewMode.DualPageWithCover&&!t&&e%2==0,"rpv-thumbnail__item--dual-cover-odd":v===o.ViewMode.DualPageWithCover&&!t&&e%2==1,"rpv-thumbnail__item--single":v===o.ViewMode.SinglePage,"rpv-thumbnail__item--selected":n===e}),role:"button",tabIndex:n===e?0:-1,onClick:function(){return b(e)}},_),a.createElement("div",{"data-testid":"thumbnail__label-".concat(e),className:"rpv-thumbnail__label"},w))}))}))},h=function(e){var t=e.renderCurrentPageLabel,n=e.renderThumbnailItem,r=e.store,i=e.thumbnailDirection,c=e.thumbnailWidth,l=a.useState(r.get("doc")),u=l[0],f=l[1],p=a.useState(r.get("currentPage")||0),h=p[0],g=p[1],v=a.useState(r.get("pageHeight")||0),b=v[0],E=v[1],y=a.useState(r.get("pageWidth")||0),w=y[0],S=y[1],_=a.useState(r.get("rotation")||0),k=_[0],C=_[1],P=a.useState(r.get("pagesRotation")||new Map),x=P[0],M=P[1],R=a.useState(r.get("rotatedPage")||-1),T=R[0],L=R[1],I=a.useState(r.get("viewMode")),O=I[0],D=I[1],N=function(e){g(e)},F=function(e){f(e)},z=function(e){E(e)}
1,B=function(e){S(e)},A=function(e){C(e)},j=function(e){M(e)},V=function(e){L(e)},H=function(e){D(e)},W=function(e){var t=r.get("jumpToPage");t&&t(e)},U=function(e,t){r.get("rotatePage")(e,t)};return a.useEffect(function(){return r.subscribe("doc",F),r.subscribe("pageHeight",z),r.subscribe("pageWidth",B),r.subscribe("rotatedPage",V),r.subscribe("rotation",A),r.subscribe("pagesRotation",j),r.subscribe("viewMode",H),function(){r.unsubscribe("doc",F),r.unsubscribe("pageHeight",z),r.unsubscribe("pageWidth",B),r.unsubscribe("rotatedPage",V),r.unsubscribe("rotation",A),r.unsubscribe("pagesRotation",j),r.unsubscribe("viewMode",H)}},[]),o.useIsomorphicLayoutEffect(function(){return r.subscribe("currentPage",N),function(){r.unsubscribe("currentPage",N)}},[]),u?a.createElement(o.LazyRender,{testId:"thumbnail__list-container",attrs:{className:"rpv-thumbnail__list-container"}},a.createElement(d,{doc:u},function(e){return a.createElement(m,{currentPage:h,doc:u,labels:e,pagesRotation:x,pageHeight:b,pageWidth:w,renderCurrentPageLabel:t,renderThumbnailItem:n,rotatedPage:T,rotation:k,thumbnailDirection:i,thumbnailWidth:c,viewMode:O,onJumpToPage:W,onRotatePage:U})})):a.createElement("div",{"data-testid":"thumbnail-list__loader",className:"rpv-thumbnail__loader"},a.useContext(s).renderSpinner())};t.thumbnailPlugin=function(e){var n=a.useMemo(function(){return o.createStore({rotatePage:function(){},viewMode:o.ViewMode.SinglePage})},[]),r=a.useState(""),c=r[0],d=r[1];return{install:function(e){n.update("jumpToPage",e.jumpToPage),n.update("rotatePage",e.rotatePage)},onDocumentLoad:function(e){d(e.doc.loadingTask.docId),n.update("doc",e.doc)},onViewerStateChange:function(e){return n.update("currentPage",e.pageIndex),n.update("pagesRotation",e.pagesRotation),n.update("pageHeight",e.pageHeight),n.update("pageWidth",e.pageWidth),n.update("rotation",e.rotation),n.update("rotatedPage",e.rotatedPage),n.update("viewMode",e.viewMode),e},Cover:function(t){return a.createElement(l,i({},t,{renderSpinner:null==e?void 0:e.renderSpinner,store:n}))},Thumbnails:a.useCallback(function(r){return a.createElement(s.Provider,{value:{renderSpinner:(null==e?void 0:e.renderSpinner)||u}},a.createElement(h,{renderCurrentPageLabel:null==e?void 0:e.renderCurrentPageLabel,renderThumbnailItem:null==r?void 0:r.renderThumbnailItem,store:n,thumbnailDirection:(null==r?void 0:r.thumbnailDirection)||t.ThumbnailDirection.Vertical,thumbnailWidth:(null==e?void 0:e.thumbnailWidth)||100}))},[c])}}},38110:(e,t,n)=>{"use strict";var r=n(76196),o=n(28771);function a(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var i,c=a(r),l=a(o);t.AnnotationType=void 0,(i=t.AnnotationType||(t.AnnotationType={}))[i.Text=1]="Text",i[i.Link=2]="Link",i[i.FreeText=3]="FreeText",i[i.Line=4]="Line",i[i.Square=5]="Square",i[i.Circle=6]="Circle",i[i.Polygon=7]="Polygon",i[i.Polyline=8]="Polyline",i[i.Highlight=9]="Highlight",i[i.Underline=10]="Underline",i[i.Squiggly=11]="Squiggly",i[i.StrikeOut=12]="StrikeOut",i[i.Stamp=13]="Stamp",i[i.Caret=14]="Caret",i[i.Ink=15]="Ink",i[i.Popup=16]="Popup",i[i.FileAttachment=17]="FileAttachment";var u=function(e,t){return(u=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function s(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var d,f=function(){return(f=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};t.TextDirection=void 0,(d=t.TextDirection||(t.TextDirection={})).RightToLeft="RTL",d.LeftToRight="LTR";var p,m=c.createContext({currentTheme:"light",direction:t.TextDirection.LeftToRight,setCurrentTheme:function(){}}),h=function(e){var t=[];return Object.keys(e).forEach(function(n){n&&e[n]&&t.push(n)}),t.join(" ")},g="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,v=function(e){var t=c.useRef(null),n=e.once,r=e.threshold,o=e.onVisibilityChanged;return g(function(){var e=t.current;if(e){var a=new IntersectionObserver(function(t){t.forEach(function(t){var r=t.isIntersecting;o({isVisible:r,ratio:t.intersectionRatio}),r&&n&&(a.unobserve(e),a.disconnect())})},{threshold:r||0});return a.observe(e),function(){a.unobserve(e),a.disconnect()}}},[]),t},b=function(e){var n=e.children,r=e.ignoreDirection,o=e.size,a=c.useContext(m).direction,i=!(void 0!==r&&r)&&a===t.TextDirection.RightToLeft,l="".concat((void 0===o?24:o)||24,"px");return c.createElement("svg",{"aria-hidden":"true",className:h({"rpv-core__icon":!0,"rpv-core__icon--rtl":i}),focusable:"false",height:l,viewBox:"0 0 24 24",width:l},n)},E=function(){return c.createElement(b,{size:16},c.createElement("path",{d:"M23.5,0.499l-16.5,23l-6.5-6.5"}))},y=function(e){var n=e.children,r=e.testId,o=e.onClick,a=c.useContext(m).direction===t.TextDirection.RightToLeft;return c.createElement("button",f({className:h({"rpv-core__primary-button":!0,"rpv-core__primary-button--rtl":a}),type:"button",onClick:o},r?{"data-testid":r}:{}),n)},w=function(e){var t=e.size,n=void 0===t?"4rem":t,r=e.testId,o=c.useState(!1),a=o[0],i=o[1],l=v({onVisibilityChanged:function(e){i(e.isVisible)}});return c.createElement("div",f({},r?{"data-testid":r}:{},{className:h({"rpv-core__spinner":!0,"rpv-core__spinner--animating":a}),ref:l,style:{height:n,width:n}}))},S=function(e){var n=e.ariaLabel,r=e.autoFocus,o=void 0!==r&&r,a=e.placeholder,i=e.testId,l=e.type,u=e.value,s=e.onCh
1ange,d=e.onKeyDown,p=c.useContext(m).direction,v=c.useRef(),b={ref:v,"data-testid":"","aria-label":void 0===n?"":n,className:h({"rpv-core__textbox":!0,"rpv-core__textbox--rtl":p===t.TextDirection.RightToLeft}),placeholder:void 0===a?"":a,value:void 0===u?"":u,onChange:function(e){return s(e.target.value)},onKeyDown:void 0===d?function(){}:d};return i&&(b["data-testid"]=i),g(function(){if(o){var e=v.current;if(e){var t=window.scrollX,n=window.scrollY;e.focus(),window.scrollTo(t,n)}}},[]),"text"===(void 0===l?"text":l)?c.createElement("input",f({type:"text"},b)):c.createElement("input",f({type:"password"},b))};!function(e){e[e.ExitFullScreen=0]="ExitFullScreen",e[e.FullScreenChange=1]="FullScreenChange",e[e.FullScreenElement=2]="FullScreenElement",e[e.FullScreenEnabled=3]="FullScreenEnabled",e[e.RequestFullScreen=4]="RequestFullScreen"}(p||(p={}));var _,k={ExitFullScreen:"exitFullscreen",FullScreenChange:"fullscreenchange",FullScreenElement:"fullscreenElement",FullScreenEnabled:"fullscreenEnabled",RequestFullScreen:"requestFullscreen"},C={ExitFullScreen:"webkitExitFullscreen",FullScreenChange:"webkitfullscreenchange",FullScreenElement:"webkitFullscreenElement",FullScreenEnabled:"webkitFullscreenEnabled",RequestFullScreen:"webkitRequestFullscreen"},P={ExitFullScreen:"msExitFullscreen",FullScreenChange:"msFullscreenChange",FullScreenElement:"msFullscreenElement",FullScreenEnabled:"msFullscreenEnabled",RequestFullScreen:"msRequestFullscreen"},x="undefined"!=typeof window,M=x&&(p.FullScreenEnabled in document&&k||C.FullScreenEnabled in document&&C||P.FullScreenEnabled in document&&P)||k,R=function(){return x&&M.FullScreenEnabled in document&&!0===document[M.FullScreenEnabled]},T=function(e){return x?e[M.ExitFullScreen]():Promise.resolve({})},L=function(){return x?document[M.FullScreenElement]:null},I=function(e,t){var n=c.useRef(),r=function(){n.current&&clearTimeout(n.current)};return c.useEffect(function(){return function(){return r()}},[]),c.useCallback(function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];r(),n.current=setTimeout(function(){e.apply(void 0,o)},t)},[e,t])},O=function(){var e=c.useRef(!1);return c.useEffect(function(){return e.current=!0,function(){e.current=!1}},[]),e},D=function(e){var t=c.useRef(e);return c.useEffect(function(){t.current=e},[e]),t.current};!function(e){e.NotRenderedYet="NotRenderedYet",e.Rendering="Rendering",e.Rendered="Rendered"}(_||(_={}));var N,F=function(e){var t=e.doc,n=t.numPages,r=t.loadingTask.docId,o=c.useMemo(function(){return Array(n).fill(null).map(function(e,t){return{pageIndex:t,renderStatus:_.NotRenderedYet,visibility:-9999}})},[r]),a=c.useRef({currentRenderingPage:-1,startRange:0,endRange:n-1,visibilities:o}),i=function(e,t){a.current.visibilities[e].visibility=t};return{getHighestPriorityPage:function(){var e=a.current.visibilities.slice(a.current.startRange,a.current.endRange+1).filter(function(e){return e.visibility>-9999});if(!e.length)return -1;for(var t=e[0].pageIndex,r=e[e.length-1].pageIndex,o=e.length,i=0;i<o;i++){if(e[i].renderStatus===_.Rendering)return -1;if(e[i].renderStatus===_.NotRenderedYet)return e[i].pageIndex}return r+1<n&&a.current.visibilities[r+1].renderStatus!==_.Rendered?r+1:t-1>=0&&a.current.visibilities[t-1].renderStatus!==_.Rendered?t-1:-1},isInRange:function(e){return e>=a.current.startRange&&e<=a.current.endRange},markNotRendered:function(){for(var e=0;e<n;e++)a.current.visibilities[e].renderStatus=_.NotRenderedYet},markRendered:function(e){a.current.visibilities[e].renderStatus=_.Rendered},markRendering:function(e){-1!==a.current.currentRenderingPage&&a.current.currentRenderingPage!==e&&a.current.visibilities[a.current.currentRenderingPage].renderStatus===_.Rendering&&(a.current.visibilities[a.current.currentRenderingPage].renderStatus=_.NotRenderedYet),a.current.visibilities[e].renderStatus=_.Rendering,a.current.currentRenderingPage=e},setOutOfRange:function(e){i(e,-9999)},setRange:function(e,t){a.current.startRange=e,a.current.endRange=t;for(var r=0;r<n;r++)(r<e||r>t)&&(a.current.visibilities[r].visibility=-9999,a.current.visibilities[r].renderStatus=_.NotRenderedYet)},setVisibility:i}},z={core:{askingPassword:{requirePasswordToOpen:"This document requires a password to open",submit:"Submit"},wrongPassword:{tryAgain:"The password is wrong. Please try again"},pageLabel:"Page {{pageIndex}}"}},B=c.createContext({l10n:z,setL10n:function(){}}),A=0,j=function(){return A++},V=function(e,t,n){var r=function(e){var r=t.current;if(r){var o=e.target;if(o instanceof Element&&o.shadowRoot){var a=e.composedPath();a.length>0&&!r.contains(a[0])&&n()}else r.contains(o)||n()}};c.useEffect(function(){if(e){var t={capture:!0};return document.addEventListener("click",r,t),function(){document.removeEventListener("click",r,t)}}},[])},H=function(e){var t=function(t){"Escape"===t.key&&e()};c.useEffect(function(){return document.addEventListener("keyup",t),function(){document.removeEventListener("keyup",t)}},[])}
1,W=function(e){var n=e.ariaControlsSuffix,r=e.children,o=e.closeOnClickOutside,a=e.closeOnEscape,i=e.onToggle,l=c.useRef(),u=c.useContext(m).direction===t.TextDirection.RightToLeft;return c.useEffect(function(){var e=window.getComputedStyle(document.body).overflow;return document.body.style.overflow="hidden",function(){document.body.style.overflow=e}},[]),H(function(){l.current&&a&&i()}),V(o,l,i),g(function(){var e=l.current;if(e){var t=.75*document.body.clientHeight;e.getBoundingClientRect().height>=t&&(e.style.overflow="auto",e.style.maxHeight="".concat(t,"px"))}},[]),c.createElement("div",{"aria-modal":"true",className:h({"rpv-core__modal-body":!0,"rpv-core__modal-body--rtl":u}),id:"rpv-core__modal-body-".concat(n),ref:l,role:"dialog",tabIndex:-1},r)},U=function(e){var t=e.children;return c.createElement("div",{className:"rpv-core__modal-overlay"},t)};t.ToggleStatus=void 0,(N=t.ToggleStatus||(t.ToggleStatus={})).Close="Close",N.Open="Open",N.Toggle="Toggle";var K,Z=function(e){var n=c.useState(e),r=n[0],o=n[1];return{opened:r,toggle:function(e){switch(e){case t.ToggleStatus.Close:o(!1);break;case t.ToggleStatus.Open:o(!0);break;case t.ToggleStatus.Toggle:default:o(function(e){return!e})}}}},q=function(e){var t=e.content,n=e.isOpened,r=e.target,o=Z(void 0!==n&&n),a=o.opened,i=o.toggle;return c.createElement(c.Fragment,null,r&&r(i,a),a&&t(i))};t.Position=void 0,(K=t.Position||(t.Position={})).TopLeft="TOP_LEFT",K.TopCenter="TOP_CENTER",K.TopRight="TOP_RIGHT",K.RightTop="RIGHT_TOP",K.RightCenter="RIGHT_CENTER",K.RightBottom="RIGHT_BOTTOM",K.BottomLeft="BOTTOM_LEFT",K.BottomCenter="BOTTOM_CENTER",K.BottomRight="BOTTOM_RIGHT",K.LeftTop="LEFT_TOP",K.LeftCenter="LEFT_CENTER",K.LeftBottom="LEFT_BOTTOM";var G,Y,J,X,$,Q,ee,et,en=function(e,n,r,o,a){g(function(){var i=n.current,c=e.current,l=r.current;if(c&&i&&l){var u=l.getBoundingClientRect(),s=function(e,n,r,o){var a=n.getBoundingClientRect(),i=e.getBoundingClientRect(),c=i.height,l=i.width,u=0,s=0;switch(r){case t.Position.TopLeft:u=a.top-c,s=a.left;break;case t.Position.TopCenter:u=a.top-c,s=a.left+a.width/2-l/2;break;case t.Position.TopRight:u=a.top-c,s=a.left+a.width-l;break;case t.Position.RightTop:u=a.top,s=a.left+a.width;break;case t.Position.RightCenter:u=a.top+a.height/2-c/2,s=a.left+a.width;break;case t.Position.RightBottom:u=a.top+a.height-c,s=a.left+a.width;break;case t.Position.BottomLeft:u=a.top+a.height,s=a.left;break;case t.Position.BottomCenter:u=a.top+a.height,s=a.left+a.width/2-l/2;break;case t.Position.BottomRight:u=a.top+a.height,s=a.left+a.width-l;break;case t.Position.LeftTop:u=a.top,s=a.left-l;break;case t.Position.LeftCenter:u=a.top+a.height/2-c/2,s=a.left-l;break;case t.Position.LeftBottom:u=a.top+a.height-c,s=a.left-l}return{left:s+(o.left||0),top:u+(o.top||0)}}(c,i,o,a),d=s.top,f=s.left;c.style.top="".concat(d-u.top,"px"),c.style.left="".concat(f-u.left,"px")}},[])},er=function(e){var n,r=e.customClassName,o=e.position;return c.createElement("div",{className:h(((n={"rpv-core__arrow":!0,"rpv-core__arrow--tl":o===t.Position.TopLeft,"rpv-core__arrow--tc":o===t.Position.TopCenter,"rpv-core__arrow--tr":o===t.Position.TopRight,"rpv-core__arrow--rt":o===t.Position.RightTop,"rpv-core__arrow--rc":o===t.Position.RightCenter,"rpv-core__arrow--rb":o===t.Position.RightBottom,"rpv-core__arrow--bl":o===t.Position.BottomLeft,"rpv-core__arrow--bc":o===t.Position.BottomCenter,"rpv-core__arrow--br":o===t.Position.BottomRight,"rpv-core__arrow--lt":o===t.Position.LeftTop,"rpv-core__arrow--lc":o===t.Position.LeftCenter,"rpv-core__arrow--lb":o===t.Position.LeftBottom})["".concat(r)]=""!==r,n))})},eo=function(e){var n=e.ariaControlsSuffix,r=e.children,o=e.closeOnClickOutside,a=e.offset,i=e.position,l=e.targetRef,u=e.onClose,s=c.useRef(),d=c.useRef(),f=c.useRef(),p=c.useContext(m).direction===t.TextDirection.RightToLeft;V(o,s,u),en(s,l,f,i,a),g(function(){var e=d.current;if(e){var t=.75*document.body.clientHeight;e.getBoundingClientRect().height>=t&&(e.style.overflow="auto",e.style.maxHeight="".concat(t,"px"))}},[]);var v="rpv-core__popover-body-inner-".concat(n);return c.createElement(c.Fragment,null,c.createElement("div",{ref:f,style:{left:0,position:"absolute",top:0}}),c.createElement("div",{"aria-describedby":v,className:h({"rpv-core__popover-body":!0,"rpv-core__popover-body--rtl":p}),id:"rpv-core__popover-body-".concat(n),ref:s,role:"dialog",tabIndex:-1},c.createElement(er,{customClassName:"rpv-core__popover-body-arrow",position:i}),c.createElement("div",{id:v,ref:d},r)))},ea=function(e){var t=e.closeOnEscape,n=e.onClose,r=c.useRef();return H(function(){r.current&&t&&n()}),c.createElement("div",{className:"rpv-core__popover-overlay",ref:r})}
1,ei=function(e){var n=e.ariaControlsSuffix,r=e.children,o=e.contentRef,a=e.offset,i=e.position,l=e.targetRef,u=c.useRef(),s=c.useContext(m).direction===t.TextDirection.RightToLeft;return en(o,l,u,i,a),c.createElement(c.Fragment,null,c.createElement("div",{ref:u,style:{left:0,position:"absolute",top:0}}),c.createElement("div",{className:h({"rpv-core__tooltip-body":!0,"rpv-core__tooltip-body--rtl":s}),id:"rpv-core__tooltip-body-".concat(n),ref:o,role:"tooltip"},c.createElement(er,{customClassName:"rpv-core__tooltip-body-arrow",position:i}),c.createElement("div",{className:"rpv-core__tooltip-body-content"},r)))};t.FullScreenMode=void 0,(G=t.FullScreenMode||(t.FullScreenMode={})).Normal="Normal",G.Entering="Entering",G.Entered="Entered",G.EnteredCompletely="EnteredCompletely",G.Exitting="Exitting",G.Exited="Exited",t.LayerRenderStatus=void 0,(Y=t.LayerRenderStatus||(t.LayerRenderStatus={}))[Y.PreRender=0]="PreRender",Y[Y.DidRender=1]="DidRender",t.PageMode=void 0,(J=t.PageMode||(t.PageMode={})).Attachments="UseAttachments",J.Bookmarks="UseOutlines",J.ContentGroup="UseOC",J.Default="UserNone",J.FullScreen="FullScreen",J.Thumbnails="UseThumbs",t.PasswordStatus=void 0,(X=t.PasswordStatus||(t.PasswordStatus={})).RequiredPassword="RequiredPassword",X.WrongPassword="WrongPassword",t.RotateDirection=void 0,($=t.RotateDirection||(t.RotateDirection={})).Backward="Backward",$.Forward="Forward",t.ScrollMode=void 0,(Q=t.ScrollMode||(t.ScrollMode={})).Page="Page",Q.Horizontal="Horizontal",Q.Vertical="Vertical",Q.Wrapped="Wrapped",t.SpecialZoomLevel=void 0,(ee=t.SpecialZoomLevel||(t.SpecialZoomLevel={})).ActualSize="ActualSize",ee.PageFit="PageFit",ee.PageWidth="PageWidth",t.ViewMode=void 0,(et=t.ViewMode||(t.ViewMode={})).DualPage="DualPage",et.DualPageWithCover="DualPageWithCover",et.SinglePage="SinglePage";var ec,el=function(e,t){return e.reduce(function(e,n,r){return r%t?e[e.length-1].push(n):e.push([n]),e},[])},eu=function(e,n){switch(n[1].name){case"XYZ":return{bottomOffset:function(e,t){return null===n[3]?t:n[3]},leftOffset:function(e,t){return null===n[2]?0:n[2]},pageIndex:e,scaleTo:n[4]};case"Fit":case"FitB":return{bottomOffset:0,leftOffset:0,pageIndex:e,scaleTo:t.SpecialZoomLevel.PageFit};case"FitH":case"FitBH":return{bottomOffset:n[2],leftOffset:0,pageIndex:e,scaleTo:t.SpecialZoomLevel.PageWidth};default:return{bottomOffset:0,leftOffset:0,pageIndex:e,scaleTo:1}}},es=new Map,ed=new Map,ef=function(e,t){return"".concat(e.loadingTask.docId,"___").concat(t.num,"R").concat(0===t.gen?"":t.gen)},ep=function(e,t,n){es.set(ef(e,t),n)},em=function(e,t){if(!e)return Promise.reject("The document is not loaded yet");var n="".concat(e.loadingTask.docId,"___").concat(t),r=ed.get(n);return r?Promise.resolve(r):new Promise(function(r,o){e.getPage(t+1).then(function(o){ed.set(n,o),o.ref&&ep(e,o.ref,t),r(o)})})},eh=function(e,t){return new Promise(function(n){new Promise(function(n){"string"==typeof t?e.getDestination(t).then(function(e){n(e)}):n(t)}).then(function(r){if("object"==typeof r[0]&&null!==r[0]){var o,a=r[0],i=(o=ef(e,a),es.has(o)?es.get(o):null);null===i?e.getPageIndex(a).then(function(r){ep(e,a,r),eh(e,t).then(function(e){return n(e)})}):n(eu(i,r))}else n(eu(r[0],r))})})};!function(e){e[e.Solid=1]="Solid",e[e.Dashed=2]="Dashed",e[e.Beveled=3]="Beveled",e[e.Inset=4]="Inset",e[e.Underline=5]="Underline"}(ec||(ec={}));var eg,ev=RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"),eb=function(e,t,n,r){var o=parseInt(e,10);return o>=t&&o<=n?o:r},eE=function(e){return e.contentsObj?e.contentsObj.str:e.contents||""},ey=function(e){return e.titleObj?e.titleObj.str:e.title||""},ew=function(e){var n=e.annotation,r=c.useContext(m).direction,o=ey(n),a=eE(n),i=r===t.TextDirection.RightToLeft,l=c.useRef(),u="";if(n.modificationDate){var s=function(e){var t=ev.exec(e);if(!t)return null;var n=parseInt(t[1],10),r=eb(t[2],1,12,1)-1,o=eb(t[3],1,31,1),a=eb(t[4],0,23,0),i=eb(t[5],0,59,0),c=eb(t[6],0,59,0),l=t[7]||"Z",u=eb(t[8],0,23,0),s=eb(t[9],0,59,0);switch(l){case"-":a+=u,i+=s;break;case"+":a-=u,i-=s}return new Date(Date.UTC(n,r,o,a,i,c))}(n.modificationDate);u=s?"".concat(s.toLocaleDateString(),", ").concat(s.toLocaleTimeString()):""}return c.useLayoutEffect(function(){if(l.current){var e=document.querySelector('[data-annotation-id="'.concat(n.id,'"]'));if(e)return e.style.zIndex+=1,function(){e.style.zIndex="".concat(parseInt(e.style.zIndex,10)-1)}}},[]),c.createElement("div",{ref:l,className:h({"rpv-core__annotation-popup-wrapper":!0,"rpv-core__annotation-popup-wrapper--rtl":i}
1),style:{top:n.annotationType===t.AnnotationType.Popup?"":"100%"}},o&&c.createElement(c.Fragment,null,c.createElement("div",{className:h({"rpv-core__annotation-popup-title":!0,"rpv-core__annotation-popup-title--ltr":!i,"rpv-core__annotation-popup-title--rtl":i})},o),c.createElement("div",{className:"rpv-core__annotation-popup-date"},u)),a&&c.createElement("div",{className:"rpv-core__annotation-popup-content"},a.split("\n").map(function(e,t){return c.createElement(c.Fragment,{key:t},e,c.createElement("br",null))})))};!function(e){e.Click="Click",e.Hover="Hover"}(eg||(eg={}));var eS,e_=function(e){var n,r,o,a,i,l,u,s=e.annotation,d=e.children,f=e.ignoreBorder,p=e.hasPopup,m=e.isRenderable,h=e.page,g=e.viewport,v=s.rect,b=(r=(n=Z(!1)).opened,o=n.toggle,i=(a=c.useState(eg.Hover))[0],l=a[1],{opened:r,closeOnHover:function(){i===eg.Hover&&o(t.ToggleStatus.Close)},openOnHover:function(){i===eg.Hover&&o(t.ToggleStatus.Open)},toggleOnClick:function(){switch(i){case eg.Click:r&&l(eg.Hover),o(t.ToggleStatus.Toggle);break;case eg.Hover:l(eg.Click),o(t.ToggleStatus.Open)}}}),E=b.closeOnHover,y=b.opened,w=b.openOnHover,S=b.toggleOnClick,_=[Math.min((u=[v[0],h.view[3]+h.view[1]-v[1],v[2],h.view[3]+h.view[1]-v[3]])[0],u[2]),Math.min(u[1],u[3]),Math.max(u[0],u[2]),Math.max(u[1],u[3])],k=v[2]-v[0],C=v[3]-v[1],P={borderColor:"",borderRadius:"",borderStyle:"",borderWidth:""};if(!f&&s.borderStyle.width>0){switch(s.borderStyle.style){case ec.Dashed:P.borderStyle="dashed";break;case ec.Solid:P.borderStyle="solid";break;case ec.Underline:P=Object.assign({borderBottomStyle:"solid"},P);case ec.Beveled:case ec.Inset:}var x=s.borderStyle.width;P.borderWidth="".concat(x,"px"),s.borderStyle.style!==ec.Underline&&(k-=2*x,C-=2*x);var M=s.borderStyle,R=M.horizontalCornerRadius,T=M.verticalCornerRadius;(R>0||T>0)&&(P.borderRadius="".concat(R,"px / ").concat(T,"px")),s.color?P.borderColor="rgb(".concat(0|s.color[0],", ").concat(0|s.color[1],", ").concat(0|s.color[2],")"):P.borderWidth="0"}return c.createElement(c.Fragment,null,m&&d({popup:{opened:y,closeOnHover:E,openOnHover:w,toggleOnClick:S}
1,slot:{attrs:{style:Object.assign({height:"".concat(C,"px"),left:"".concat(_[0],"px"),top:"".concat(_[1],"px"),transform:"matrix(".concat(g.transform.join(","),")"),transformOrigin:"-".concat(_[0],"px -").concat(_[1],"px"),width:"".concat(k,"px")},P)},children:c.createElement(c.Fragment,null,p&&y&&c.createElement(ew,{annotation:s}))}}))},ek=function(e){var t=e.annotation,n=e.page,r=e.viewport,o=!1===t.hasPopup,a=ey(t),i=eE(t),l=!!(t.hasPopup||a||i);return c.createElement(e_,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:n,viewport:r},function(e){return c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--caret","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)})},eC=function(e){var t=e.annotation,n=e.page,r=e.viewport,o=!1===t.hasPopup,a=ey(t),i=eE(t),l=!!(t.hasPopup||a||i),u=t.rect,s=u[2]-u[0],d=u[3]-u[1],p=t.borderStyle.width;return c.createElement(e_,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:n,viewport:r},function(e){return c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--circle","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),c.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(s," ").concat(d),width:"".concat(s,"px")},c.createElement("circle",{cy:d/2,fill:"none",rx:s/2-p/2,ry:d/2-p/2,stroke:"transparent",strokeWidth:p||1})),e.slot.children)})},eP=function(e){var t=e.annotation,n=e.page,r=e.viewport,o=ey(t),a=eE(t),i=!(!1!==t.hasPopup||!o&&!a),l=function(){var e,n,r,o,a,i=t.file;i&&(n=i.filename,o="string"==typeof(r=i.content)?"":URL.createObjectURL(new Blob([r],{type:""})),(a=document.createElement("a")).style.display="none",a.href=o||n,a.setAttribute("download",(e=n.split("/").pop())?e.split("#")[0].split("?")[0]:n),document.body.appendChild(a),a.click(),document.body.removeChild(a),o&&URL.revokeObjectURL(o))};return c.createElement(e_,{annotation:t,hasPopup:i,ignoreBorder:!0,isRenderable:!0,page:n,viewport:r},function(e){return c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--file-attachment","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onDoubleClick:l,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)})},ex=function(e){var t=e.annotation,n=e.page,r=e.viewport,o=!1===t.hasPopup,a=ey(t),i=eE(t),l=!!(t.hasPopup||a||i);return c.createElement(e_,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:n,viewport:r},function(e){return c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--free-text","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)})},eM=function(e){var t=e.annotation,n=e.page,r=e.viewport,o=ey(t),a=eE(t),i=!t.parentType||-1!==["Circle","Ink","Line","Polygon","PolyLine","Square"].indexOf(t.parentType);return g(function(){if(t.parentId){var e=document.querySelector('[data-annotation-id="'.concat(t.parentId,'"]')),n=document.querySelector('[data-annotation-id="'.concat(t.id,'"]'));if(e&&n){var r=parseFloat(e.style.left),o=parseFloat(e.style.top)+parseFloat(e.style.height);n.style.left="".concat(r,"px"),n.style.top="".concat(o,"px"),n.style.transformOrigin="-".concat(r,"px -").concat(o,"px")}}},[]),c.createElement(e_,{annotation:t,hasPopup:i,ignoreBorder:!1,isRenderable:!(!o&&!a),page:n,viewport:r},function(e){return c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--popup","data-annotation-id":t.id}),c.createElement(ew,{annotation:t}))})},eR=function(e){var n=e.annotation,r=e.childAnnotation,o=e.page,a=e.viewport,i=!1===n.hasPopup,l=ey(n),u=eE(n),s=!!(n.hasPopup||l||u);if(n.quadPoints&&n.quadPoints.length>0){var d=n.quadPoints.map(function(e){return Object.assign({},n,{rect:[e[2].x,e[2].y,e[1].x,e[1].y],quadPoints:[]})});return c.createElement(c.Fragment,null,d.map(function(e,t){return c.createElement(eR,{key:t,annotation:e,childAnnotation:r,page:o,viewport:
1a})}))}return c.createElement(e_,{annotation:n,hasPopup:i,ignoreBorder:!0,isRenderable:s,page:o,viewport:a},function(e){return c.createElement(c.Fragment,null,c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--highlight","data-annotation-id":n.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children),r&&r.annotationType===t.AnnotationType.Popup&&e.popup.opened&&c.createElement(eM,{annotation:r,page:o,viewport:a}))})},eT=function(e){var t=e.annotation,n=e.page,r=e.viewport,o=!1===t.hasPopup,a=ey(t),i=eE(t),l=!!(t.hasPopup||a||i),u=t.rect,s=u[2]-u[0],d=u[3]-u[1],p=t.borderStyle.width;return c.createElement(e_,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:n,viewport:r},function(e){return c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--ink","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),t.inkLists&&t.inkLists.length&&c.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(s," ").concat(d),width:"".concat(s,"px")},t.inkLists.map(function(e,t){return c.createElement("polyline",{key:t,fill:"none",stroke:"transparent",strokeWidth:p||1,points:e.map(function(e){return"".concat(e.x-u[0],",").concat(u[3]-e.y)}).join(" ")})})),e.slot.children)})},eL=function(e){var t=e.annotation,n=e.page,r=e.viewport,o=!1===t.hasPopup,a=ey(t),i=eE(t),l=!!(t.hasPopup||a||i),u=t.rect,s=u[2]-u[0],d=u[3]-u[1],p=t.borderStyle.width;return c.createElement(e_,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:n,viewport:r},function(e){return c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--line","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),c.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(s," ").concat(d),width:"".concat(s,"px")},c.createElement("line",{stroke:"transparent",strokeWidth:p||1,x1:u[2]-t.lineCoordinates[0],x2:u[2]-t.lineCoordinates[2],y1:u[3]-t.lineCoordinates[1],y2:u[3]-t.lineCoordinates[3]})),e.slot.children)})},eI=/^([^\w]*)(javascript|data|vbscript)/im,eO=/&#(\w+)(^\w|;)?/g,eD=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,eN=/^([^:]+):/gm,eF=function(e,t){void 0===t&&(t="about:blank");var n=(e||"").replace(eO,function(e,t){return String.fromCharCode(t)}).replace(eD,"").trim();if(!n)return t;var r=n[0];if("."===r||"/"===r)return n;var o=n.match(eN);if(!o)return n;var a=o[0];return eI.test(a)?t:n},ez=function(e){var t,n=e.annotation,r=e.annotationContainerRef,o=e.doc,a=e.outlines,i=e.page,l=e.pageIndex,u=e.scale,s=e.viewport,d=e.onExecuteNamedAction,p=e.onJumpFromLinkAnnotation,m=e.onJumpToDest,h=c.useRef(),g=a&&a.length&&n.dest&&"string"==typeof n.dest?null==(t=a.find(function(e){return e.dest===n.dest}))?void 0:t.title:"",v=!!(n.url||n.dest||n.action||n.unsafeUrl),b={};if(n.url||n.unsafeUrl){var E=eF(n.url||n.unsafeUrl,"");E?b={"data-target":"external",href:E,rel:"noopener noreferrer nofollow",target:n.newWindow?"_blank":"",title:E}:v=!1}else b={href:"","data-annotation-link":n.id,onClick:function(e){e.preventDefault(),n.action?d(n.action):eh(o,n.dest).then(function(e){var t=h.current,n=r.current;if(t&&n){var o=t.getBoundingClientRect();n.style.setProperty("height","100%"),n.style.setProperty("width","100%");var a=n.getBoundingClientRect();n.style.removeProperty("height"),n.style.removeProperty("width");var i=(o.left-a.left)/u;p({bottomOffset:(a.bottom-o.bottom+o.height)/u,label:g,leftOffset:i,pageIndex:l})}m(e)})}};return g&&(b=Object.assign({},b,{title:g,"aria-label":g})),c.createElement(e_,{annotation:n,hasPopup:!1,ignoreBorder:!1,isRenderable:v,page:i,viewport:s},function(e){return c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--link","data-annotation-id":n.id,"data-testid":"core__annotation--link-".concat(n.id)}),c.createElement("a",f({ref:h},b)))})},eB=function(e){var t=e.annotation,n=e.page,r=e.viewport,o=!1===t.hasPopup,a=ey(t),i=eE(t),l=!!(t.hasPopup||a||i),u=t.rect,s=u[2]-u[0],d=u[3]-u[1],p=t.borderStyle.width;return c.createElement(e_,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:n,viewport:r},function(e){return c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--polygon","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),t.vertices&&t.vertices.length&&c.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(s," ").concat(d),width:"".concat(s,"px")},c.createElement("polygon",{fill:"none",stroke:"transparent",strokeWidth:p||1,points:t.vertices.map(function(e){return"".concat(e.x-u[0],",").concat(u[3]-e.y)}).join(" ")})),e.slot.children)})},eA=function(e){var t=e.annotation,n=e.page,r=e.viewport,o=!1===t.hasPopup,a=ey(t),i=eE(t),l=!!(t.hasPopup||a||i),u=t.rect,s=u[2]-u[0],d=u[3]-u[1],p=t.borderStyle.width;return c.createElement(e_,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:n,viewport:r},function(e){return c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--polyline","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),t.vertices&&t.vertices.length&&c.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(s," ").concat(d),width:"".concat(s,"px")},c.createElement("polyline",{fill:"none",stroke:"transparent",strokeWidth:p||1,points:t.vertices.map(function(e){return"".concat(e.x-u[0],",").concat(u[3]-e.y)}).join(" ")})),e.slot.children)})},ej=function(e){var t=e.annotation,n=e.page,r=e.viewport,o=!1===t.hasPopup,a=ey(t),i=eE(t),l=!!(t.hasPopup||a||i),u=t.rect,s=u[2]-u[0],d=u[3]-u[1],p=t.borderStyle.width;return c.createElement(e_,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:n,viewport:r},function(e){return c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--square","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),c.createElement("svg",{height:"".concat(d,"px"),preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 ".concat(s," ").concat(d),width:"".concat(s,"px")},c.createElement("rect",{height:d-p,fill:"none",stroke:"transparent",strokeWidth:p||1,x:p/2,y:p/2,width:s-p})),e.slot.children)})},eV=function(e){var t=e.annotation,n=e.page,r=e.viewport,o=!1===t.hasPopup,a=ey(t),i=eE(t),l=!!(t.hasPopup||a||i);return c.createElement(e_,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:n,viewport:r},function(e){return c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--squiggly","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)})},eH=function(e){var t=e.annotation,n=e.page,r=e.viewport,o=!1===t.hasPopup,a=ey(t),i=eE(t),l=!!(t.hasPopup||a||i);return c.createElement(e_,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:n,viewport:r},function(e){return c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--stamp","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)})},eW=function(e){var t=e.annotation,n=e.page,r=e.viewport,o=!1===t.hasPopup,a=ey(t),i=eE(t),l=!!(t.hasPopup||a||i);return c.createElement(e_,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:n,viewport:r},function(e){return c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--strike-out","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)})},eU=function(){return c.createElement(b,{size:16},c.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"}),c.createElement("path",{d:"M7.25,9.75A.25.25,0,1,1,7,10a.25.25,0,0,1,.25-.25"}),c.createElement("path",{d:"M12,9.75a.25.25,0,1,1-.25.25A.25.25,0,0,1,12,9.75"}),c.createElement("path",{d:"M16.75,9.75a.25.25,0,1,1-.25.25.25.25,0,0,1,.25-.25"}))},eK=function(){return c.createElement(b,{size:16},c.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"}),c.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"}),c.createElement("path",{d:"M21.423 5.406L17.415 9.414"}),c.createElement("path",{d:"M14.587 6.585L18.607 2.565"}),c.createElement("path",{d:"M5.405 21.424L9.413 17.416"}),c.createElement("path",{d:"M6.585 14.588L2.577 18.596"}),c.createElement("path",{d:"M18.602 21.419L14.595 17.412"}),c.createElement("path",{d:"M17.419 14.58L21.428 18.589"}),c.createElement("path",{d:"M2.582 5.399L6.588 9.406"}),c.createElement("path",{d:"M9.421 6.581L5.412 2.572"}))},eZ=function(){return c.createElement(b,{size:16},c.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"}),c.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"}))},eq=function(){return c.createElement(b,{size:16},c.createElement("path",{d:"M2.000 2.500 L22.000 2.500 L22.000 23.500 L2.000 23.500 Z"}),c.createElement("path",{d:"M6 4.5L6 0.5"}),c.createElement("path",{d:"M18 4.5L18 0.5"}),c.createElement("path",{d:"M10 4.5L10 0.5"}),c.createElement("path",{d:"M14 4.5L14 0.5"}))},eG=function(){return c.createElement(b,{size:16},c.createElement("path",{d:"M17.5 0.498L17.5 23.498"}),c.createElement("path",{d:"M10.5 0.498L10.5 23.498"}),c.createElement("path",{d:"M23.5.5H6.5a6,6,0,0,0,0,12h4"}))},eY=function(){return c.createElement(b,{size:16},c.createElement("path",{d:"M2.5 22.995L12 6.005 21.5 22.995 2.5 22.995z"}))},eJ=function(e){var n=e.annotation,r=e.childAnnotation,o=e.page,a=e.viewport,i=!1===n.hasPopup,l=ey(n),u=eE(n),s=!!(n.hasPopup||l||u),d=n.name?n.name.toLowerCase():"";return c.createElement(e_,{annotation:n,hasPopup:i,ignoreBorder:!1,isRenderable:s,page:o,viewport:
1a},function(e){return c.createElement(c.Fragment,null,c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--text","data-annotation-id":n.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),d&&c.createElement("div",{className:"rpv-core__annotation-text-icon"},"check"===d&&c.createElement(E,null),"comment"===d&&c.createElement(eU,null),"help"===d&&c.createElement(eK,null),"insert"===d&&c.createElement(eY,null),"key"===d&&c.createElement(eZ,null),"note"===d&&c.createElement(eq,null),("newparagraph"===d||"paragraph"===d)&&c.createElement(eG,null)),e.slot.children),r&&r.annotationType===t.AnnotationType.Popup&&e.popup.opened&&c.createElement(eM,{annotation:r,page:o,viewport:a}))})},eX=function(e){var t=e.annotation,n=e.page,r=e.viewport,o=!1===t.hasPopup,a=ey(t),i=eE(t),l=!!(t.hasPopup||a||i);return c.createElement(e_,{annotation:t,hasPopup:o,ignoreBorder:!0,isRenderable:l,page:n,viewport:r},function(e){return c.createElement("div",f({},e.slot.attrs,{className:"rpv-core__annotation rpv-core__annotation--underline","data-annotation-id":t.id,onClick:e.popup.toggleOnClick,onMouseEnter:e.popup.openOnHover,onMouseLeave:e.popup.closeOnHover}),e.slot.children)})},e$=function(e){var n=e.annotations,r=e.doc,o=e.outlines,a=e.page,i=e.pageIndex,l=e.plugins,u=e.rotation,s=e.scale,d=e.onExecuteNamedAction,f=e.onJumpFromLinkAnnotation,p=e.onJumpToDest,m=c.useRef(),h=a.getViewport({rotation:u,scale:s}).clone({dontFlip:!0}),v=n.filter(function(e){return!e.parentId});return g(function(){var e=m.current;e&&l.forEach(function(t){t.onAnnotationLayerRender&&t.onAnnotationLayerRender({annotations:v,container:e,pageIndex:i,rotation:u,scale:s})})},[]),c.createElement("div",{ref:m,className:"rpv-core__annotation-layer","data-testid":"core__annotation-layer-".concat(i)},v.map(function(e){var l=n.find(function(t){return t.parentId===e.id});switch(e.annotationType){case t.AnnotationType.Caret:return c.createElement(ek,{key:e.id,annotation:e,page:a,viewport:h});case t.AnnotationType.Circle:return c.createElement(eC,{key:e.id,annotation:e,page:a,viewport:h});case t.AnnotationType.FileAttachment:return c.createElement(eP,{key:e.id,annotation:e,page:a,viewport:h});case t.AnnotationType.FreeText:return c.createElement(ex,{key:e.id,annotation:e,page:a,viewport:h});case t.AnnotationType.Highlight:return c.createElement(eR,{key:e.id,annotation:e,childAnnotation:l,page:a,viewport:h});case t.AnnotationType.Ink:return c.createElement(eT,{key:e.id,annotation:e,page:a,viewport:h});case t.AnnotationType.Line:return c.createElement(eL,{key:e.id,annotation:e,page:a,viewport:h});case t.AnnotationType.Link:return c.createElement(ez,{key:e.id,annotation:e,annotationContainerRef:m,doc:r,outlines:o,page:a,pageIndex:i,scale:s,viewport:h,onExecuteNamedAction:d,onJumpFromLinkAnnotation:f,onJumpToDest:p});case t.AnnotationType.Polygon:return c.createElement(eB,{key:e.id,annotation:e,page:a,viewport:h});case t.AnnotationType.Polyline:return c.createElement(eA,{key:e.id,annotation:e,page:a,viewport:h});case t.AnnotationType.Popup:return c.createElement(eM,{key:e.id,annotation:e,page:a,viewport:h});case t.AnnotationType.Square:return c.createElement(ej,{key:e.id,annotation:e,page:a,viewport:h});case t.AnnotationType.Squiggly:return c.createElement(eV,{key:e.id,annotation:e,page:a,viewport:h});case t.AnnotationType.Stamp:return c.createElement(eH,{key:e.id,annotation:e,page:a,viewport:h});case t.AnnotationType.StrikeOut:return c.createElement(eW,{key:e.id,annotation:e,page:a,viewport:h});case t.AnnotationType.Text:return c.createElement(eJ,{key:e.id,annotation:e,childAnnotation:l,page:a,viewport:h});case t.AnnotationType.Underline:return c.createElement(eX,{key:e.id,annotation:e,page:a,viewport:h});default:return c.createElement(c.Fragment,{key:e.id})}}))},eQ=function(e){var t=e.page,n=e.renderAnnotations,r=O(),o=c.useState({loading:!0,annotations:[]}),a=o[0],i=o[1];return c.useEffect(function(){t.getAnnotations({intent:"display"}).then(function(e){r.current&&i({loading:!1,annotations:e})})},[]),a.loading?c.createElement(c.Fragment,null):n(a.annotations)},e0=function(e){var t=e.doc,n=e.outlines,r=e.page,o=e.pageIndex,a=e.plugins,i=e.rotation,l=e.scale,u=e.onExecuteNamedAction,s=e.onJumpFromLinkAnnotation,d=e.onJumpToDest;return c.createElement(eQ,{page:r,renderAnnotations:function(e){return c.createElement(e$,{annotations:e,doc:t,outlines:n,page:r,pageIndex:o,plugins:a,rotation:i,scale:l,onExecuteNamedAction:u,onJumpFromLinkAnnotation:s,onJumpToDest:d})}})},e1=function(e,t){var n=e%t;return 0===n?e:Math.floor(e-n)},e2=function(e){var n=e.canvasLayerRef,r=e.height,o=e.page,a=e.pageIndex,i=e.plugins,l=e.rotation,u=e.scale,s=e.width,d=e.onRenderCanvasCompleted,f=c.useRef();return g(function(){var e=f.current;e&&e.cancel();var r=n.current;
1r.removeAttribute("data-testid"),i.forEach(function(e){e.onCanvasLayerRender&&e.onCanvasLayerRender({ele:r,pageIndex:a,rotation:l,scale:u,status:t.LayerRenderStatus.PreRender})});var c=o.getViewport({rotation:l,scale:u}),s=window.devicePixelRatio||1,p=Math.sqrt(0x1000000/(c.width*c.height)),m=s>p;m?r.style.transform="scale(1, 1)":r.style.removeProperty("transform");var h=Math.min(p,s),g=function(e,t){if(Math.floor(e)===e)return[e,1];var n,r,o=1/e;if(o>8)return[1,8];if(Math.floor(o)===o)return[1,o];for(var a=e>1?o:e,i=0,c=1,l=1,u=1;;){var s=i+l,d=c+u;if(d>t)break;a<=s/d?(l=(n=[s,d])[0],u=n[1]):(i=(r=[s,d])[0],c=r[1])}return a<(i/c+l/u)/2?a===e?[i,c]:[c,i]:a===e?[l,u]:[u,l]}(h,8),v=g[0],b=g[1];r.width=e1(c.width*h,v),r.height=e1(c.height*h,v),r.style.width="".concat(e1(c.width,b),"px"),r.style.height="".concat(e1(c.height,b),"px"),r.hidden=!0;var E=r.getContext("2d",{alpha:!1}),y=m||1!==s?[h,0,0,h,0,0]:null;return f.current=o.render({canvasContext:E,transform:y,viewport:c}),f.current.promise.then(function(){r.hidden=!1,r.setAttribute("data-testid","core__canvas-layer-".concat(a)),i.forEach(function(e){e.onCanvasLayerRender&&e.onCanvasLayerRender({ele:r,pageIndex:a,rotation:l,scale:u,status:t.LayerRenderStatus.DidRender})}),d()},function(){d()}),function(){r&&(r.width=0,r.height=0)}},[]),c.createElement("div",{className:"rpv-core__canvas-layer",style:{height:"".concat(r,"px"),width:"".concat(s,"px")}},c.createElement("canvas",{ref:n}))},e5=function(e){var t=e.height,n=e.page,r=e.rotation,o=e.scale,a=e.width,i=c.useRef();return g(function(){var e=i.current,c=n.getViewport({rotation:r,scale:o});n.getOperatorList().then(function(r){var o;(o=i.current)&&(o.innerHTML=""),new l.SVGGraphics(n.commonObjs,n.objs).getSVG(r,c).then(function(n){n.style.height="".concat(t,"px"),n.style.width="".concat(a,"px"),e.appendChild(n)})})},[]),c.createElement("div",{className:"rpv-core__svg-layer",ref:i})},e4=function(e){var n=e.containerRef,r=e.page,o=e.pageIndex,a=e.plugins,i=e.rotation,u=e.scale,s=e.onRenderTextCompleted,d=c.useRef(),f=function(){var e=n.current;e&&([].slice.call(e.querySelectorAll(".rpv-core__text-layer-text")).forEach(function(t){return e.removeChild(t)}),[].slice.call(e.querySelectorAll('br[role="presentation"]')).forEach(function(t){return e.removeChild(t)}))};return g(function(){var e=d.current;e&&e.cancel();var c=n.current;if(c){c.removeAttribute("data-testid");var p=r.getViewport({rotation:i,scale:u});return a.forEach(function(e){e.onTextLayerRender&&e.onTextLayerRender({ele:c,pageIndex:o,scale:u,status:t.LayerRenderStatus.PreRender})}),r.getTextContent().then(function(e){f(),d.current=l.renderTextLayer({container:c,textContent:e,textContentSource:e,viewport:p}),d.current.promise.then(function(){c.setAttribute("data-testid","core__text-layer-".concat(o)),[].slice.call(c.children).forEach(function(e){e.classList.contains("rpv-core__text-layer-text--not")||e.classList.add("rpv-core__text-layer-text")}),a.forEach(function(e){e.onTextLayerRender&&e.onTextLayerRender({ele:c,pageIndex:o,scale:u,status:t.LayerRenderStatus.DidRender})}),s()},function(){c.removeAttribute("data-testid"),s()})}),function(){var e;f(),null==(e=d.current)||e.cancel()}}},[]),c.createElement("div",{className:"rpv-core__text-layer",ref:n})},e8=function(e){var n=e.doc,r=e.measureRef,o=e.outlines,a=e.pageIndex,i=e.pageRotation,l=e.pageSize,u=e.plugins,s=e.renderPage,d=e.renderQueueKey,f=e.rotation,p=e.scale,m=e.shouldRender,g=e.viewMode,v=e.onExecuteNamedAction,b=e.onJumpFromLinkAnnotation,E=e.onJumpToDest,y=e.onRenderCompleted,S=e.onRotatePage,_=O(),k=c.useState(null),C=k[0],P=k[1],x=c.useState(!1),M=x[0],R=x[1],T=c.useState(!1),L=T[0],I=T[1],D=c.useRef(),N=c.useRef(),F=Math.abs(f+i)%180==0,z=l.pageWidth*p,B=l.pageHeight*p,A=F?z:B,j=F?B:z,V=(l.rotation+f+i)%360,H=c.useRef(0),W=s||function(e){return c.createElement(c.Fragment,null,e.canvasLayer.children,e.textLayer.children,e.annotationLayer.children)};return c.useEffect(function(){P(null),R(!1),I(!1)},[i,f,p]),c.useEffect(function(){m&&_.current&&!C&&em(n,a).then(function(e){_.current&&(H.current=d,P(e))})},[m,C]),c.useEffect(function(){M&&L&&(d!==H.current?(P(null),R(!1),I(!1)):y(a))},[M,L]),c.createElement("div",{className:h({"rpv-core__page-layer":!0,"rpv-core__page-layer--dual":g===t.ViewMode.DualPage,"rpv-core__page-layer--dual-cover":g===t.ViewMode.DualPageWithCover,"rpv-core__page-layer--single":g===t.ViewMode.SinglePage}
1),"data-testid":"core__page-layer-".concat(a),ref:r,style:{height:"".concat(j,"px"),width:"".concat(A,"px")}},C?c.createElement(c.Fragment,null,W({annotationLayer:{attrs:{},children:c.createElement(e0,{doc:n,outlines:o,page:C,pageIndex:a,plugins:u,rotation:V,scale:p,onExecuteNamedAction:v,onJumpFromLinkAnnotation:b,onJumpToDest:E})},canvasLayer:{attrs:{},children:c.createElement(e2,{canvasLayerRef:D,height:j,page:C,pageIndex:a,plugins:u,rotation:V,scale:p,width:A,onRenderCanvasCompleted:function(){_.current&&R(!0)}})},canvasLayerRendered:M,doc:n,height:j,pageIndex:a,rotation:V,scale:p,svgLayer:{attrs:{},children:c.createElement(e5,{height:j,page:C,rotation:V,scale:p,width:A})},textLayer:{attrs:{},children:c.createElement(e4,{containerRef:N,page:C,pageIndex:a,plugins:u,rotation:V,scale:p,onRenderTextCompleted:function(){_.current&&I(!0)}})},textLayerRendered:L,width:A,markRendered:y,onRotatePage:function(e){return S(a,e)}}),u.map(function(e,t){return e.renderPageLayer?c.createElement(c.Fragment,{key:t},e.renderPageLayer({canvasLayerRef:D,canvasLayerRendered:M,doc:n,height:j,pageIndex:a,rotation:V,scale:p,textLayerRef:N,textLayerRendered:L,width:A})):c.createElement(c.Fragment,{key:t})})):c.createElement(w,{testId:"core__page-layer-loading-".concat(a)}))},e3=function(e,t){var n=t.rect;return e.height!==n.height||e.width!==n.width?n:e};!function(e){e.Horizontal="Horizontal",e.Vertical="Vertical",e.Both="Both"}(eS||(eS={}));var e6=function(e){return 1-Math.pow(1-e,4)},e9={left:0,top:0},e7={capture:!1,passive:!0},te=function(e){var t=e.elementRef,n=e.enableSmoothScroll,r=e.isRtl,o=e.scrollDirection,a=e.onSmoothScroll,i=c.useState(e9),l=i[0],u=i[1],s=c.useState(t.current),d=s[0],f=s[1],p=r?-1:1,m=c.useRef(o);m.current=o;var h=c.useRef(e9),v=c.useRef(!0),b=c.useCallback(function(){v.current=!0,n&&u(h.current),a(!1)},[]),E=c.useCallback(function(){if(d){switch(m.current){case eS.Horizontal:h.current={left:p*d.scrollLeft,top:0};break;case eS.Both:h.current={left:p*d.scrollLeft,top:d.scrollTop};break;case eS.Vertical:default:h.current={left:0,top:d.scrollTop}}n&&!v.current||u(h.current)}},[d]);return g(function(){f(t.current)}),g(function(){if(d)return d.addEventListener("scroll",E,e7),function(){d.removeEventListener("scroll",E,e7)}},[d]),{scrollOffset:l,scrollTo:c.useCallback(function(e,n){var r=t.current;if(!r)return Promise.resolve();var o={left:0,top:0};switch(m.current){case eS.Horizontal:o.left=p*e.left;break;case eS.Both:o.left=p*e.left,o.top=e.top;break;case eS.Vertical:default:o.top=e.top}return n?(v.current=!1,a(!0),new Promise(function(e,t){!function(e,t,n,r,o,a){void 0===o&&(o=function(e){return e}),void 0===a&&(a=function(){});var i=0,c=0,l=!1;switch(t){case eS.Horizontal:c=e.scrollLeft,i=0;case eS.Both:c=e.scrollLeft,i=e.scrollTop;break;case eS.Vertical:default:c=0,i=e.scrollTop}var u=function(){l||(l=!0,e.scrollLeft=n.left,e.scrollTop=n.top,a())};if(1e-4>=Math.abs(i-n.top)&&t===eS.Vertical)u();else if(1e-4>=Math.abs(c-n.left)&&t===eS.Horizontal)u();else{var s,d=-1,f=c-n.left,p=i-n.top,m=function(r){-1===d&&(d=r);var a=r-d,h=o(Math.min(a/400,1)),g={left:c-f*h,top:i-p*h};switch(t){case eS.Horizontal:e.scrollLeft=g.left;break;case eS.Both:e.scrollLeft=g.left,e.scrollTop=g.top;break;case eS.Vertical:default:e.scrollTop=g.top}1e-4>=Math.abs(g.top-n.top)&&1e-4>=Math.abs(g.left-n.left)&&!l&&(window.cancelAnimationFrame(s),u()),a<400?s=window.requestAnimationFrame(m):window.cancelAnimationFrame(s)};s=window.requestAnimationFrame(m)}}(r,m.current,o,400,e6,function(){b(),e()})})):new Promise(function(e,t){switch(m.current){case eS.Horizontal:r.scrollLeft=o.left;break;case eS.Both:r.scrollLeft=o.left,r.scrollTop=o.top;break;case eS.Vertical:default:r.scrollTop=o.top}e()})},[t])}},tt=function(e,t,n){return Math.max(e,Math.min(n,t))},tn=function(e,n){if(n!==t.ViewMode.DualPageWithCover)return 0;if(!function(e){var t=e.length;if(1===t)return!1;for(var n=1;n<t;n++)if(e[n].height!==e[0].height||e[n].width!==e[0].width)return!0;return!1}(e))return 2*e[0].width;var r=el(e.slice(1),2).map(function(e){return 2===e.length?e[0].width+e[1].width:e[0].width}),o=[e[0].width].concat(r);return Math.max.apply(Math,o)},tr={left:0,top:0},to={left:0,top:0},ta={left:0,top:0},ti={left:0,top:0},tc={height:0,width:0},tl={left:0,top:0},tu="data-virtual-index",ts=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1],td=function(e){var n,r,o,a,i,l,u,s=e.enableSmoothScroll,d=e.isRtl,p=e.numberOfItems,m=e.parentRef,h=e.setRenderRange,v=e.sizes,b=e.scrollMode,E=e.viewM
1ode,y=c.useState(!1),w=y[0],S=y[1],_=c.useCallback(function(e){return S(e)},[]),k=c.useRef(b);k.current=b;var C=c.useRef(E);C.current=E;var P=b===t.ScrollMode.Wrapped||E===t.ViewMode.DualPageWithCover||E===t.ViewMode.DualPage?eS.Both:b===t.ScrollMode.Horizontal?eS.Horizontal:eS.Vertical,x=te({elementRef:m,enableSmoothScroll:s,isRtl:d,scrollDirection:P,onSmoothScroll:_}),M=x.scrollOffset,R=x.scrollTo,T=(r=(n=c.useState(m.current))[0],o=n[1],a=c.useRef(!1),l=(i=c.useReducer(e3,{height:0,width:0}))[0],u=i[1],g(function(){m.current!==r&&o(m.current)}),g(function(){if(r&&!a.current){a.current=!0;var e=r.getBoundingClientRect();u({rect:{height:e.height,width:e.width}})}},[r]),c.useEffect(function(){if(r){var e=new ResizeObserver(function(e,t){e.forEach(function(e){if(e.target===r){var t=e.contentRect;u({rect:{height:t.height,width:t.width}})}})});return e.observe(r),function(){e.unobserve(r)}}},[r]),l),L=c.useRef({scrollOffset:tl,measurements:[]});L.current.scrollOffset=M;var I=c.useMemo(function(){return Array(p).fill(-1)},[]),O=c.useState(I),D=O[0],N=O[1],F=c.useMemo(function(){return new IntersectionObserver(function(e){e.forEach(function(e){var t=e.isIntersecting?e.intersectionRatio:-1,n=e.target.getAttribute(tu);if(n){var r=parseInt(n,10);0<=r&&r<p&&N(function(e){return e[r]=t,function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],e,!0)})}})},{threshold:ts})},[]),z=c.useMemo(function(){return b===t.ScrollMode.Page&&E===t.ViewMode.SinglePage?function(e,t,n){for(var r=[],o=0;o<e;o++){var a={height:Math.max(t.height,n[o].height),width:Math.max(t.width,n[o].width)},i=0===o?ti:r[o-1].end,c={left:i.left+a.width,top:i.top+a.height};r[o]={index:o,start:i,size:a,end:c,visibility:-1}}return r}(p,T,v):E===t.ViewMode.DualPageWithCover?function(e,n,r,o){for(var a=[],i=0,c=0,l=ta,u=0;u<e;u++){var s=0===u?{height:o===t.ScrollMode.Page?Math.max(n.height,r[u].height):r[u].height,width:o===t.ScrollMode.Page?Math.max(n.width,r[u].width):r[u].width}:{height:o===t.ScrollMode.Page?Math.max(n.height,r[u].height):r[u].height,width:Math.max(n.width/2,r[u].width)};o===t.ScrollMode.Page?l=0===u?ta:{left:u%2==0?s.width:0,top:Math.floor((u-1)/2)*s.height+a[0].end.top}:0===u?(l=ta,i=r[0].height,c=0):u%2==1?(l={left:0,top:i+=c},c=u===e-1?r[u].height:Math.max(r[u].height,r[u+1].height)):l={left:a[u-1].end.left,top:i};var d={left:l.left+s.width,top:l.top+s.height};a[u]={index:u,start:l,size:s,end:d,visibility:-1}}return a}(p,T,v,b):E===t.ViewMode.DualPage?function(e,n,r,o){for(var a=[],i=0,c=0,l=to,u=0;u<e;u++){var s={height:o===t.ScrollMode.Page?Math.max(n.height,r[u].height):r[u].height,width:Math.max(n.width/2,r[u].width)};o===t.ScrollMode.Page?l={left:u%2==0?0:s.width,top:Math.floor(u/2)*s.height}:u%2==0?(l={left:0,top:i+=c},c=u===e-1?r[u].height:Math.max(r[u].height,r[u+1].height)):l={left:a[u-1].end.left,top:i};var d={left:l.left+s.width,top:l.top+s.height};a[u]={index:u,start:l,size:s,end:d,visibility:-1}}return a}(p,T,v,b):function(e,n,r,o){for(var a=[],i=0,c={left:0,top:0},l=0,u=tr,s=0;s<e;s++){var d=r[s];if(0===s)i=d.width,c={left:0,top:0},l=d.height;else switch(o){case t.ScrollMode.Wrapped:(i+=d.width)<n.width?(u={left:a[s-1].end.left,top:c.top},l=Math.max(l,d.height)):(i=d.width,c={left:(u={left:c.left,top:c.top+l}).left,top:u.top},l=d.height);break;case t.ScrollMode.Horizontal:case t.ScrollMode.Vertical:default:u=a[s-1].end}var f={left:u.left+d.width,top:u.top+d.height};a[s]={index:s,start:u,size:d,end:f,visibility:-1}}return a}(p,T,v,b)},[b,v,E,T]),B=z[p-1]?{height:z[p-1].end.top,width:z[p-1].end.left}:tc;L.current.measurements=z;var A=c.useMemo(function(){var e=function(e,t,n,r){var o=0;switch(e){case eS.Horizontal:o=r.left;break;case eS.Vertical:default:o=r.top}var a=t.length-1,i=function(e,t,n,r){for(;e<=t;){var o=(e+t)/2|0,a=r(o);if(a<n)e=o+1;else{if(!(a>n))return o;t=o-1}}return e>0?e-1:0}(0,a,o,function(n){switch(e){case eS.Horizontal:return t[n].start.left;case eS.Both:case eS.Vertical:default:return t[n].start.top}});if(e===eS.Both)for(var c=t[i].start.top;i-1>=0&&t[i-1].start.top===c&&t[i-1].start.left>=r.left;)i--;for(var l=i;l<=a;
1){var u={top:t[l].start.top-r.top,left:t[l].start.left-r.left},s={height:n.height-u.top,width:n.width-u.left};if(e===eS.Horizontal&&s.width<0||e===eS.Vertical&&s.height<0||e===eS.Both&&(s.width<0||s.height<0))break;l++}return{start:i,end:l}}(P,z,T,M),n=e.start,r=e.end,o=D.slice(tt(0,p,n),tt(0,p,r)),a=n+o.reduce(function(e,t,n,r){return t>r[e]?n:e},0),i=a=tt(0,p-1,a),c=h({endPage:r,numPages:p,startPage:n}),l=c.startPage,u=c.endPage;switch(l=Math.max(l,0),u=Math.min(u,p-1),E){case t.ViewMode.DualPageWithCover:a>0&&(i=a%2==1?a:a-1),l=0===l?0:l%2==1?l:l-1,p-(u=u%2==1?u-1:u)<=2&&(u=p-1);break;case t.ViewMode.DualPage:i=a%2==0?a:a-1,l=l%2==0?l:l-1,u=u%2==1?u:u-1;break;case t.ViewMode.SinglePage:default:i=a}return{startPage:l,endPage:u,maxVisbilityIndex:i}},[z,T,M,E,D]),j=A.startPage,V=A.endPage,H=A.maxVisbilityIndex,W=c.useMemo(function(){for(var e=[],t=function(t){var n=z[t],r=f(f({},n),{visibility:void 0!==D[t]?D[t]:-1,measureRef:function(e){e&&(e.setAttribute(tu,"".concat(t)),F.observe(e))}});e.push(r)},n=j;n<=V;n++)t(n);return e},[j,V,D,z]),U=c.useCallback(function(e,n){var r=L.current.measurements[tt(0,p-1,e)],o=k.current===t.ScrollMode.Page?tl:n;return r?R({left:o.left+r.start.left,top:o.top+r.start.top},s):Promise.resolve()},[R,s]),K=c.useCallback(function(e,n){var r=L.current.measurements,o=r[e].start,a=r.find(function(e){return e.start.top-o.top>1e-12});if(!a)return Promise.resolve();var i=a.index;switch(C.current){case t.ViewMode.DualPage:i=i%2==0?i:i+1;break;case t.ViewMode.DualPageWithCover:i=i%2==1?i:i+1}return U(i,n)},[]),Z=c.useCallback(function(e,n){for(var r=L.current.measurements,o=r[e].start,a=e,i=!1,c=p-1;c>=0;c--)if(o.top-r[c].start.top>1e-12){i=!0,a=r[c].index;break}if(!i)return Promise.resolve();switch(C.current){case t.ViewMode.DualPage:a=a%2==0?a:a-1;break;case t.ViewMode.DualPageWithCover:a=a%2==0?a-1:a}return a===e&&(a=e-1),U(a,n)},[]),q=c.useCallback(function(e,n){if(C.current===t.ViewMode.DualPageWithCover||C.current===t.ViewMode.DualPage)return K(e,n);switch(k.current){case t.ScrollMode.Wrapped:return K(e,n);case t.ScrollMode.Horizontal:case t.ScrollMode.Vertical:default:return U(e+1,n)}},[]),G=c.useCallback(function(e,n){if(C.current===t.ViewMode.DualPageWithCover||C.current===t.ViewMode.DualPage)return Z(e,n);switch(k.current){case t.ScrollMode.Wrapped:return Z(e,n);case t.ScrollMode.Horizontal:case t.ScrollMode.Vertical:default:return U(e-1,n)}},[]),Y=c.useCallback(function(){switch(k.current){case t.ScrollMode.Horizontal:return{position:"relative",height:"100%",width:"".concat(B.width,"px")};case t.ScrollMode.Vertical:default:return{position:"relative",height:"".concat(B.height,"px"),width:"100%"}}},[B]),J=c.useCallback(function(e){return k.current!==t.ScrollMode.Page?{}:{height:"".concat(T.height,"px"),width:"100%",position:"absolute",top:0,transform:"translateY(".concat(e.start.top,"px)")}},[T]),X=c.useCallback(function(e){return function(e,n,r,o,a){var i,c,l,u,s,d,f,p=n?"right":"left",m=r.length,h=e.start.left*(n?-1:1),g=e.size,v=g.height,b=g.width;if(o===t.ViewMode.DualPageWithCover){var E=a===t.ScrollMode.Page?0:e.start.top;return 0===e.index||m%2==0&&e.index===m-1?((i={height:"".concat(v,"px"),minWidth:"".concat(tn(r,o),"px"),width:"100%"})[p]=0,i.position="absolute",i.top=0,i.transform="translate(".concat(h,"px, ").concat(E,"px)"),i):((c={height:"".concat(v,"px"),width:"".concat(b,"px")})[p]=0,c.position="absolute",c.top=0,c.transform="translate(".concat(h,"px, ").concat(E,"px)"),c)}if(o===t.ViewMode.DualPage)return(l={height:"".concat(v,"px"),width:"".concat(b,"px")})[p]=0,l.position="absolute",l.top=0,l.transform="translate(".concat(h,"px, ").concat(a===t.ScrollMode.Page?0:e.start.top,"px)"),l;switch(a){case t.ScrollMode.Horizontal:return(u={height:"100%",width:"".concat(b,"px")})[p]=0,u.position="absolute",u.top=0,u.transform="translateX(".concat(h,"px)"),u;case t.ScrollMode.Page:return(s={height:"".concat(v,"px"),width:"".concat(b,"px")})[p]=0,s.position="absolute",s.top=0,s;case t.ScrollMode.Wrapped:return(d={height:"".concat(v,"px"),width:"".concat(b,"px")})[p]=0,d.position="absolute",d.top=0,d.transform="translate(".concat(h,"px, ").concat(e.start.top,"px)"),d;case t.ScrollMode.Vertical:default:return(f={height:"".concat(v,"px"),width:"100%"})[p]=0,f.position="absolute",f.top=0,f.transform="translateY(".concat(e.start.top,"px)"),f}}(e,d,v,C.current,k.current)},[d,v]),$=c.useCallback(function(e,n){var r=L.current,o=r.measurements,a=r.scrollOffset,i=o[tt(0,p-1,n)];return i?R(k.current===t.ScrollMode.Page?{left:i.start.left,top:i.start.top}:{left:a.left*e,top:a.top*e},!1):Promise.resolve()},[]);return c.useEffect(function(){return function(){F.disconnect()}},[]),{boundingClientRect:T,isSmoothScrolling:w,startPage:j,endPage:V,maxVisbilityIndex:H,virtualItems:W,getContainerStyles:Y,getItemContainerStyles:J,getItemStyles:X,scrollToItem:U,scrollToNextItem:q,scrollToPreviousItem:G,zoom:$}},tf=function(e,n,r,o,a,i){var c=r;switch(!0){case a===t.ViewMode.DualPageWithCover&&i>=3:case a===t.ViewMode.DualPage&&i>=3:c=2*r;break;default:c=r}switch(o){case t.SpecialZoomLevel.ActualSize:return 1;case t.SpecialZoomLevel.PageFit:return Math.min((e.clientWidth-17)/c,(e.clientHeight-16)/n);case t.SpecialZoomLevel.PageWidth:return(e.clientWidth-17)/c}},tp=function(e){var t,n,r=e.getCurrentPage,o=(n=c.useRef([]),c.useEffect(function(){return function(){n.current=[]}},[]),{push:function(e){var t=n.current;t.length+1>50&&t.shift(),t.push(e),n.current=t},map:function(e){return n.current.map(function(t){return e(t)})},pop:function(){var e=n.current;if(0===e.length)return null;var t=e.pop();return n.current=e,t}}),a=(t=c.useRef([]),c.useEffect(function(){return function(){t.current=[]}},[]),{dequeue:function(){var e=t.current;if(0===e.length)return null;var n=e.shift();return t.current=e,n||null},enqueue:function(e){var n=t.current;n.length+1>50&&n.pop(),t.current=[e].concat(n)},map:function(e){return t.current.map(function(t){return e(t)})}}),i=function(){var e=a.dequeue();return e&&o.push(e),e&&e.pageIndex===r()?i():e},l=function(){var e=o.pop();return e&&a.enqueue(e),e&&e.pageIndex===r()?l():e};return{getNextDestination:i,getPreviousDestination:l,markVisitedDestination:c.useCallback(function(e){o.push(e)},[])}},tm=function(e){var t=[];return e.map(function(e){var n;t=t.concat(e).concat((n=[],e.items&&e.items.length>0&&(n=n.concat(tm(e.items))),n))}),t},th={capture:!1,passive:!0},tg={height:0,width:0},tv={height:0,width:0},tb=function(e){var n,r,o,a,i=e.getCurrentPage,l=e.getCurrentScrollMode,u=e.jumpToPage,s=e.targetRef,d=c.useState(t.FullScreenMode.Normal),f=d[0],p=d[1],m=(r=(n=c.useState(tg))[0],o=n[1],a=I(function(){o({height:window.innerHeight,width:window.innerWidth})},100),g(function(){return window.addEventListener("resize",a,th),function(){window.removeEventListener("resize",a,th)}},[]),r),h=c.useState(tv),v=h[0],b=h[1],E=c.useRef(tv),y=c.useRef(i()),w=c.useRef(tv),S=c.useState(s.current),_=S[0],k=S[1],C=c.useRef();g(function(){s.current!==_&&k(s.current)},[]),g(function(){if(_){var e=new ResizeObserver(function(e){e.forEach(function(e){var t=e.target.getBoundingClientRect();b({height:t.height,width:t.width})})});return e.observe(_),function(){e.unobserve(_),e.disconnect()}}},[_]);var P=c.useCallback(function(e){var n=L();return n&&n!==e?(p(t.FullScreenMode.Normal),T(n)):Promise.resolve()},[]),O=c.useCallback(function(e){e&&R()&&(k(e),P(e).then(function(){C.current=e,p(t.FullScreenMode.Entering),x&&e[M.RequestFullScreen]()}))},[]),D=c.useCallback(function(){L()&&(p(t.FullScreenMode.Exitting),T(document))},[]),N=c.useCallback(function(){_&&L()!==_&&p(t.FullScreenMode.Exitting)},[_]);return c.useEffect(function(){switch(f){case t.FullScreenMode.Entering:C.current&&(C.current.style.backgroundColor="var(--rpv-core__full-screen-target-background-color)"),y.current=i(),E.current={height:window.innerHeight,width:window.innerWidth};break;case t.FullScreenMode.Entered:l()===t.ScrollMode.Page?u(y.current).then(function(){p(t.FullScreenMode.EnteredCompletely)}):p(t.FullScreenMode.EnteredCompletely);break;case t.FullScreenMode.Exitting:C.current&&(C.current.style.backgroundColor="",C.current=null),y.current=i();break;case t.FullScreenMode.Exited:p(t.FullScreenMode.Normal),l()===t.ScrollMode.Page&&u(y.current)}},[f]),c.useEffect(function(){if(f!==t.FullScreenMode.Normal)return f===t.FullScreenMode.Entering&&m.height===v.height&&m.width===v.width&&m.height>0&&m.width>0&&(0===w.current.height||m.height==w.current.height)?(w.current={height:window.innerHeight,width:window.innerWidth},void p(t.FullScreenMode.Entered)):void(f===t.FullScreenMode.Exitting&&E.current.height===m.height&&E.current.width===m.width&&m.height>0&&m.width>0&&p(t.FullScreenMode.Exited))},[f,m,v]),c.useEffect(function(){return x&&document.addEventListener(M.FullScreenChange,N),function(){x&&document.removeEventListener(M.FullScreenChange,N)}},[_]),{enterFullScreenMode:O,exitFullScreenMode:D,fullScreenMode:f}},tE={buildPageStyles:function(){return{}},transformSize:function(e){return e.size}},ty={left:0,top:0},tw=function(e){var n=e.currentFile,r=e.defaultScale,o=e.doc,a=e.enableSmoothScroll,i=e.initialPage,l=e.initialRotation,u=e.initialScale,s=e.pageLayout,d=e.pageSizes,p=e.plugins,v=e.renderPage,b=e.scrollMode,E=e.setRenderRange,y=e.viewM
1ode,w=e.viewerState,S=e.onDocumentLoad,_=e.onOpenFile,k=e.onPageChange,C=e.onRotate,P=e.onRotatePage,x=e.onZoom,M=o.numPages,R=o.loadingTask.docId,T=c.useContext(B).l10n,L=c.useContext(m),N=L.direction===t.TextDirection.RightToLeft,z=c.useRef(),A=c.useRef(),j=c.useState(i),V=j[0],H=j[1],W=c.useRef(null),U=tp({getCurrentPage:function(){return eb.current.pageIndex}}),K=c.useState(l),Z=K[0],q=K[1],G=D(Z),Y=c.useState(!1),J=Y[0],X=Y[1],$=c.useState(new Map),Q=$[0],ee=$[1],et=c.useState(b),en=et[0],er=et[1],eo=D(en),ea=c.useState(y),ei=ea[0],ec=ea[1],eu=D(ei),ef=(eQ=O(),e1=(e0=c.useState([]))[0],e2=e0[1],c.useEffect(function(){o.getOutline().then(function(e){eQ.current&&null!==e&&e2(tm(e))})},[]),e1),ep=c.useState(u),eh=ep[0],eg=ep[1],ev=D(eh),eb=c.useRef(w),eE=c.useRef("string"==typeof r?r:null),ey=c.useRef(-1),ew=c.useRef(-1),eS=c.useRef(i),e_=tb({getCurrentPage:function(){return eb.current.pageIndex},getCurrentScrollMode:function(){return eb.current.scrollMode},jumpToPage:function(e){return eW(e)},targetRef:A}),ek=c.useState(-1),eC=ek[0],eP=ek[1],ex=c.useState(0),eM=ex[0],eR=ex[1],eT=F({doc:o});c.useEffect(function(){return function(){es.clear(),ed.clear()}},[R]);var eL=c.useMemo(function(){return Object.assign({},tE,s)},[]),eI=c.useMemo(function(){return Array(M).fill(0).map(function(e,t){var n=[d[t].pageHeight,d[t].pageWidth],r=Math.abs(Z)%180==0?{height:n[0],width:n[1]}:{height:n[1],width:n[0]},o={height:r.height*eh,width:r.width*eh};return eL.transformSize({numPages:M,pageIndex:t,size:o})})},[Z,eh]),eO=td({enableSmoothScroll:a,isRtl:N,numberOfItems:M,parentRef:A,scrollMode:en,setRenderRange:E,sizes:eI,viewMode:ei});e4=(e5={targetRef:A,onResize:I(function(){!eE.current||eb.current.fullScreenMode!==t.FullScreenMode.Normal||i>0&&eS.current===i||eJ(eE.current)},200)}).targetRef,e3=e5.onResize,g(function(){var e=new ResizeObserver(function(e){e.forEach(function(e){e3(e.target)})}),t=e4.current;if(t)return e.observe(t),function(){e.unobserve(t)}},[]);var eD=function(e){var t=e;p.forEach(function(e){e.onViewerStateChange&&(t=e.onViewerStateChange(t))}),eb.current=t},eN=function(){return A.current},eF=function(){return eb.current},ez=c.useCallback(function(e){U.markVisitedDestination(e)},[]),eB=c.useCallback(function(e){var n=e.pageIndex,r=e.bottomOffset,a=e.leftOffset,i=e.scaleTo,c=A.current,l=eb.current;return c&&l?new Promise(function(e,u){em(o,n).then(function(o){var u=o.getViewport({scale:1}),s=0,f=("function"==typeof r?r(u.width,u.height):r)||0,p=("function"==typeof a?a(u.width,u.height):a)||0,m=l.scale;switch(i){case t.SpecialZoomLevel.PageFit:s=0,p=0,eJ(t.SpecialZoomLevel.PageFit);break;case t.SpecialZoomLevel.PageWidth:m=tf(c,d[n].pageHeight,d[n].pageWidth,t.SpecialZoomLevel.PageWidth,y,M),s=(u.height-f)*m,p*=m,eJ(m);break;default:s=(u.height-f)*m,p*=m}switch(l.scrollMode){case t.ScrollMode.Horizontal:eO.scrollToItem(n,{left:p,top:0}).then(function(){e()});break;case t.ScrollMode.Vertical:default:eO.scrollToItem(n,{left:0,top:s}).then(function(){e()})}})}):Promise.resolve()},[]),eA=c.useCallback(function(e){return U.markVisitedDestination(e),eB(e)},[]),ej=c.useCallback(function(){var e=U.getNextDestination();return e?eB(e):Promise.resolve()},[]),eV=c.useCallback(function(){var e=U.getPreviousDestination();return e?eB(e):Promise.resolve()},[]),eH=c.useCallback(function(){return eO.scrollToNextItem(eb.current.pageIndex,ty)},[]),eW=c.useCallback(function(e){return 0<=e&&e<M?eO.scrollToItem(e,ty):Promise.resolve()},[]),eU=c.useCallback(function(){return eO.scrollToPreviousItem(eb.current.pageIndex,ty)},[]),eK=c.useCallback(function(e){var t;"pdf"===((t=e.name.split(/\./).pop())?t.toLowerCase():"").toLowerCase()&&new Promise(function(t){var n=new FileReader;n.readAsArrayBuffer(e),n.onload=function(){t(new Uint8Array(n.result))}}).then(function(t){_(e.name,t)})},[_]),eZ=c.useCallback(function(e){var n=e===t.RotateDirection.Backward?-90:90,r=eb.current.rotation,a=360===r||-360===r?n:r+n;eT.markNotRendered(),q(a),eD(f(f({},eb.current),{rotation:a})),C({direction:e,doc:o,rotation:a})},[]),eq=c.useCallback(function(e,n){var r=n===t.RotateDirection.Backward?-90:90,a=eb.current.pagesR
1otation,i=(a.has(e)?a.get(e):l)+r,c=a.set(e,i);ee(c),X(function(e){return!e}),eD(f(f({},eb.current),{pagesRotation:c,rotatedPage:e})),P({direction:n,doc:o,pageIndex:e,rotation:i}),eT.markRendering(e),eP(e)},[]),eG=c.useCallback(function(e){eD(f(f({},eb.current),{scrollMode:e})),er(e)},[]),eY=c.useCallback(function(e){eD(f(f({},eb.current),{viewMode:e})),ec(e)},[]),eJ=c.useCallback(function(e){var t=A.current,n=eb.current.pageIndex;if(!(n<0||n>=M)){var r=d[n].pageHeight,a=d[n].pageWidth,i=t?"string"==typeof e?tf(t,r,a,e,eb.current.viewMode,M):e:1;eE.current="string"==typeof e?e:null,i!==eb.current.scale&&(eR(function(e){return e+1}),eT.markNotRendered(),eg(i),x({doc:o,scale:i}),eD(f(f({},eb.current),{scale:i})))}},[]),eX=c.useCallback(function(e){e_.enterFullScreenMode(e)},[]),e$=c.useCallback(function(){e_.exitFullScreenMode()},[]);c.useEffect(function(){eD(f(f({},eb.current),{fullScreenMode:e_.fullScreenMode}))},[e_.fullScreenMode]),c.useEffect(function(){var e={enterFullScreenMode:eX,exitFullScreenMode:e$,getPagesContainer:eN,getViewerState:eF,jumpToDestination:eA,jumpToNextDestination:ej,jumpToPreviousDestination:eV,jumpToNextPage:eH,jumpToPreviousPage:eU,jumpToPage:eW,openFile:eK,rotate:eZ,rotatePage:eq,setViewerState:eD,switchScrollMode:eG,switchViewMode:eY,zoom:eJ};return p.forEach(function(t){t.install&&t.install(e)}),function(){p.forEach(function(t){t.uninstall&&t.uninstall(e)})}},[R]),c.useEffect(function(){S({doc:o,file:n}),p.forEach(function(e){e.onDocumentLoad&&e.onDocumentLoad({doc:o,file:n})})},[R]);var eQ,e0,e1,e2,e5,e4,e3,e6,e9,e7,te=eO.boundingClientRect;e6=function(){i&&eW(i)},e9=te.height>0&&te.width>0,e7=c.useRef(!1),g(function(){e9&&!e7.current&&(e7.current=!0,e6())},[e6,e9]),g(function(){var e=eb.current.pageIndex;e>-1&&eo!==en&&eO.scrollToItem(e,ty).then(function(){e_.fullScreenMode===t.FullScreenMode.EnteredCompletely&&(a||eT.markNotRendered(),ey.current=-1)})},[en]),g(function(){var e=eb.current.pageIndex;e>-1&&G!==Z&&eO.scrollToItem(e,ty)},[Z]),g(function(){0!=ev&&ev!=eb.current.scale&&eO.zoom(eb.current.scale/ev,eb.current.pageIndex).then(function(){e_.fullScreenMode===t.FullScreenMode.EnteredCompletely&&(ew.current=-1)})},[eh]),g(function(){if(eu!==eb.current.viewMode){var e=eO.startPage,t=eO.endPage,n=eO.virtualItems;eT.markNotRendered(),eT.setRange(e,t);for(var r=function(e){var t=n.find(function(t){return t.index===e});t&&eT.setVisibility(e,t.visibility)},o=e;o<=t;o++)r(o);tn()}},[ei]),g(function(){var e=eb.current.pageIndex;e>-1&&eu!==ei&&eO.scrollToItem(e,ty)},[ei]),g(function(){var e=eb.current.pageIndex;e>0&&e===i&&eS.current===i&&eE.current&&(eS.current=-1,eJ(eE.current))},[V]),c.useEffect(function(){eO.isSmoothScrolling||null!==W.current&&W.current===V||(W.current=V,k({currentPage:V,doc:o}))},[V,eO.isSmoothScrolling]),c.useEffect(function(){e_.fullScreenMode===t.FullScreenMode.Entering&&eb.current.scrollMode===t.ScrollMode.Page&&(ey.current=eb.current.pageIndex),e_.fullScreenMode===t.FullScreenMode.EnteredCompletely&&eb.current.scrollMode===t.ScrollMode.Page&&a&&(ey.current=-1),e_.fullScreenMode===t.FullScreenMode.EnteredCompletely&&eE.current&&(ew.current=eb.current.pageIndex,eJ(eE.current))},[e_.fullScreenMode]),c.useEffect(function(){if(e_.fullScreenMode!==t.FullScreenMode.Entering&&e_.fullScreenMode!==t.FullScreenMode.Exitting&&!eO.isSmoothScrolling){var e=eO.startPage,n=eO.endPage,r=eO.maxVisbilityIndex,o=eO.virtualItems,a=e_.fullScreenMode===t.FullScreenMode.Entered||e_.fullScreenMode===t.FullScreenMode.EnteredCompletely;if(!(a&&r!==ey.current&&ey.current>-1||a&&r!==ew.current&&ew.current>-1)){H(r),eD(f(f({},eb.current),{pageIndex:r})),eT.setRange(e,n);for(var i=function(e){var t=o.find(function(t){return t.index===e});t&&eT.setVisibility(e,t.visibility)},c=e;c<=n;c++)i(c);tn()}}},[eO.startPage,eO.endPage,eO.isSmoothScrolling,eO.maxVisbilityIndex,e_.fullScreenMode,J,Z,eh]);var tt=c.useCallback(function(e){eT.markRendered(e),tn()},[eM]),tn=function(){var e=eT.getHighestPriorityPage();e>-1&&eT.isInRange(e)&&(eT.markRendering(e),eP(e))},tr=function(e){var t=V-1,n=V+1;switch(e){case"FirstPage":eW(0);break;case"LastPage":eW(M-1);break;case"NextPage":n<M&&eW(n);break;case"PrevPage":t>=0&&eW(t)}},to=c.useCallback(function(){var e=eO.virtualItems,n=[];
1switch(ei){case t.ViewMode.DualPage:n=el(e,2);break;case t.ViewMode.DualPageWithCover:e.length&&(n=0===e[0].index?[[e[0]]].concat(el(e.slice(1),2)):el(e,2));break;case t.ViewMode.SinglePage:default:n=el(e,1)}var r=T&&T.core?T.core.pageLabel:"Page {{pageIndex}}",a={attrs:{className:"rpv-core__inner-container","data-testid":"core__inner-container",ref:z,style:{height:"100%"}},children:c.createElement(c.Fragment,null),subSlot:{attrs:{"data-testid":"core__inner-pages",className:h({"rpv-core__inner-pages":!0,"rpv-core__inner-pages--horizontal":en===t.ScrollMode.Horizontal,"rpv-core__inner-pages--rtl":N,"rpv-core__inner-pages--single":en===t.ScrollMode.Page,"rpv-core__inner-pages--vertical":en===t.ScrollMode.Vertical,"rpv-core__inner-pages--wrapped":en===t.ScrollMode.Wrapped}),ref:A,style:{height:"100%",position:"relative"}},children:c.createElement("div",{"data-testid":"core__inner-current-page-".concat(V),style:Object.assign({"--scale-factor":eh},eO.getContainerStyles())},n.map(function(e){return c.createElement("div",{className:h({"rpv-core__inner-page-container":!0,"rpv-core__inner-page-container--single":en===t.ScrollMode.Page}),style:eO.getItemContainerStyles(e[0]),key:"".concat(e[0].index,"-").concat(ei)},e.map(function(e){var n=ei===t.ViewMode.DualPageWithCover&&(0===e.index||M%2==0&&e.index===M-1);return c.createElement("div",{"aria-label":r.replace("{{pageIndex}}","".concat(e.index+1)),className:h({"rpv-core__inner-page":!0,"rpv-core__inner-page--dual-even":ei===t.ViewMode.DualPage&&e.index%2==0,"rpv-core__inner-page--dual-odd":ei===t.ViewMode.DualPage&&e.index%2==1,"rpv-core__inner-page--dual-cover":n,"rpv-core__inner-page--dual-cover-even":ei===t.ViewMode.DualPageWithCover&&!n&&e.index%2==0,"rpv-core__inner-page--dual-cover-odd":ei===t.ViewMode.DualPageWithCover&&!n&&e.index%2==1,"rpv-core__inner-page--single":ei===t.ViewMode.SinglePage&&en===t.ScrollMode.Page}),role:"region",key:"".concat(e.index,"-").concat(ei),style:Object.assign({},eO.getItemStyles(e),eL.buildPageStyles({numPages:M,pageIndex:e.index,scrollMode:en,viewMode:ei}))},c.createElement(e8,{doc:o,measureRef:e.measureRef,outlines:ef,pageIndex:e.index,pageRotation:Q.has(e.index)?Q.get(e.index):0,pageSize:d[e.index],plugins:p,renderPage:v,renderQueueKey:eM,rotation:Z,scale:eh,shouldRender:eC===e.index,viewMode:ei,onExecuteNamedAction:tr,onJumpFromLinkAnnotation:ez,onJumpToDest:eA,onRenderCompleted:tt,onRotatePage:eq}))}))}))}};return p.forEach(function(e){e.renderViewer&&(a=e.renderViewer({containerRef:z,doc:o,pagesContainerRef:A,pagesRotation:Q,pageSizes:d,rotation:Z,slot:a,themeContext:L,jumpToPage:eW,openFile:eK,rotate:eZ,rotatePage:eq,switchScrollMode:eG,switchViewMode:eY,zoom:eJ}))}),a},[p,eO]),ta=c.useCallback(function(e){return c.createElement("div",f({},e.attrs,{style:e.attrs&&e.attrs.style?e.attrs.style:{}}),e.children,e.subSlot&&ta(e.subSlot))},[]);return ta(to())},tS=[.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],t_=function(e){var n=e.defaultScale,r=e.doc,o=e.render,a=e.scrollMode,i=e.viewMode,l=c.useRef(),u=c.useState({pageSizes:[],scale:0}),s=u[0],d=u[1];return c.useLayoutEffect(function(){Promise.all(Array(r.numPages).fill(0).map(function(e,t){return new Promise(function(e,n){em(r,t).then(function(t){var n=t.getViewport({scale:1});e({pageHeight:n.height,pageWidth:n.width,rotation:n.rotation})})})})).then(function(e){var o=l.current;if(o&&0!==e.length){var c,u,s=e[0].pageWidth,f=e[0].pageHeight,p=o.parentElement,m=(p.clientWidth-45)/s,h=(p.clientHeight-45)/f,g=m;switch(a){case t.ScrollMode.Horizontal:g=Math.min(m,h);break;case t.ScrollMode.Vertical:default:g=m}d({pageSizes:e,scale:n?"string"==typeof n?tf(p,f,s,n,i,r.numPages):n:(c=g,-1===(u=tS.findIndex(function(e){return e>=c}))||0===u?c:tS[u-1])})}})},[r.loadingTask.docId]),0===s.pageSizes.length||0===s.scale?c.createElement("div",{className:"rpv-core__page-size-calculator","data-testid":"core__page-size-calculating",ref:l},c.createElement(w,null)):o(s.pageSizes,s.scale)},tk=function(){},tC=function(e){function t(t,n){var r=e.call(this)||this;return r.verifyPassword=t,r.passwordStatus=n,r}return s(t,e),t}(tk),tP=function(e){var n=e.passwordStatus,r=e.renderProtectedView,o=e.verifyPassword,a=e.onDocumentAskPassword,i=c.useContext(B).l10n,l=c.useState(""),u=l[0],s=l[1],d=c.useContext(m).direction===t.TextDirection.RightToLeft,f=function(){return o(u)};return c.useEffect(function(){a&&a({verifyPassword:o})},[]),r?r({passwordStatus:n,verifyPassword:o}):c.createElement("div",{className:"rpv-core__asking-password-wrapper"},c.createElement("div",{className:h({"rpv-core__asking-password":!0,"rpv-core__asking-password--rtl":d})},c.createElement("div",{className:"rpv-core__asking-password-message"},n===t.PasswordStatus.RequiredPassword&&i.core.askingPassword.requirePasswordToOpen,n===t.PasswordStatus.WrongPassword&&i.core.wrongPassword.tryAgain),c.createElement("div",{className:"rpv-core__asking-password-body"},c.createElement("div",{className:h({"rpv-core__asking-password-input":!0,"rpv-core__asking-password-input--ltr":!d,"rpv-core__asking-password-input--rtl":d})},c.createElement(S,{testId:"core__asking-password-input",type:"password",value:u,onChange:s,onKeyDown:function(e){"Enter"===e.key&&f()}})),c.createElement(y,{onClick:f}
1,i.core.askingPassword.submit))))},tx=function(e){function t(t){var n=e.call(this)||this;return n.doc=t,n}return s(t,e),t}(tk),tM=function(e){function t(t){var n=e.call(this)||this;return n.error=t,n}return s(t,e),t}(tk),tR=function(e){function t(t){var n=e.call(this)||this;return n.percentages=t,n}return s(t,e),t}(tk),tT=function(e){var n=e.characterMap,r=e.file,o=e.httpHeaders,a=e.render,i=e.renderError,u=e.renderLoader,s=e.renderProtectedView,d=e.transformGetDocumentParams,f=e.withCredentials,p=e.onDocumentAskPassword,g=c.useContext(m).direction===t.TextDirection.RightToLeft,v=c.useState(new tR(0)),b=v[0],E=v[1],y=c.useRef(""),S=O();return c.useEffect(function(){y.current="",E(new tR(0));var e=new l.PDFWorker({name:"PDFWorker_".concat(Date.now())}),a=Object.assign({httpHeaders:o,withCredentials:f,worker:e},"string"==typeof r?{url:r}:{data:r},n?{cMapUrl:n.url,cMapPacked:n.isCompressed}:{}),i=d?d(a):a,c=l.getDocument(i);return c.onPassword=function(e,n){switch(n){case l.PasswordResponses.NEED_PASSWORD:S.current&&E(new tC(e,t.PasswordStatus.RequiredPassword));break;case l.PasswordResponses.INCORRECT_PASSWORD:S.current&&E(new tC(e,t.PasswordStatus.WrongPassword))}},c.onProgress=function(e){var t=e.total>0?Math.min(100,100*e.loaded/e.total):100;S.current&&""===y.current&&E(new tR(t))},c.promise.then(function(e){y.current=e.loadingTask.docId,S.current&&E(new tx(e))},function(t){return S.current&&!e.destroyed&&E(new tM({message:t.message||"Cannot load document",name:t.name}))}),function(){c.destroy(),e.destroy()}},[r]),b instanceof tC?c.createElement(tP,{passwordStatus:b.passwordStatus,renderProtectedView:s,verifyPassword:b.verifyPassword,onDocumentAskPassword:p}):b instanceof tx?a(b.doc):b instanceof tM?i?i(b.error):c.createElement("div",{className:h({"rpv-core__doc-error":!0,"rpv-core__doc-error--rtl":g})},c.createElement("div",{className:"rpv-core__doc-error-text"},b.error.message)):c.createElement("div",{"data-testid":"core__doc-loading",className:h({"rpv-core__doc-loading":!0,"rpv-core__doc-loading--rtl":g})},u?u(b.percentages):c.createElement(w,null))},tL=function(e,t){var n=c.useMemo(function(){return"auto"===e?"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e},[]),r=c.useState(n),o=r[0],a=r[1],i=D(o);return c.useEffect(function(){if("auto"===e){var t=window.matchMedia("(prefers-color-scheme: dark)"),n=function(e){a(e.matches?"dark":"light")};return t.addEventListener("change",n),function(){return t.removeEventListener("change",n)}}},[]),c.useEffect(function(){o!==i&&t&&t(o)},[o]),c.useEffect(function(){e!==o&&a(e)},[e]),{currentTheme:o,setCurrentTheme:a}},tI=function(e){return{startPage:e.startPage-3,endPage:e.endPage+3}};t.Button=function(e){var n=e.children,r=e.testId,o=e.onClick,a=c.useContext(m).direction===t.TextDirection.RightToLeft;return c.createElement("button",f({className:h({"rpv-core__button":!0,"rpv-core__button--rtl":a}),type:"button",onClick:o},r?{"data-testid":r}:{}),n)},t.Icon=b,t.LazyRender=function(e){var t=e.attrs,n=e.children,r=e.testId,o=c.useState(!1),a=o[0],i=o[1],l=r?f(f({},t),{"data-testid":r}):t,u=v({once:!0,onVisibilityChanged:function(e){e.isVisible&&i(!0)}});return c.createElement("div",f({ref:u},l),a&&n)},t.LocalizationContext=B,t.Menu=function(e){var n=e.children,r=c.useRef(),o=c.useRef([]),a=c.useContext(m).direction===t.TextDirection.RightToLeft,i=function(e){if(r.current)switch(e.key){case"Tab":e.preventDefault();break;case"ArrowDown":e.preventDefault(),l(function(e,t){return t+1});break;case"ArrowUp":e.preventDefault(),l(function(e,t){return t-1});break;case"End":e.preventDefault(),l(function(e,t){return e.length-1});break;case"Home":e.preventDefault(),l(function(e,t){return 0})}},l=function(e){if(r.current){var t=o.current,n=t.findIndex(function(e){return"0"===e.getAttribute("tabindex")}),a=Math.min(t.length-1,Math.max(0,e(t,n)));n>=0&&n<=t.length-1&&t[n].setAttribute("tabindex","-1"),t[a].setAttribute("tabindex","0"),t[a].focus()}};return g(function(){var e,t=r.current;t&&(e=[],t.querySelectorAll('.rpv-core__menu-item[role="menuitem"]').forEach(function(n){if(n instanceof HTMLElement){var r=n.parentElement;(r===t||"none"!==window.getComputedStyle(r).display)&&e.push(n)}}),o.current=e)},[]),g(function(){return document.addEventListener("keydown",i),function(){document.removeEventListener("keydown",i)}},[]),c.createElement("div",{ref:r,"aria-orientation":"vertical",className:h({"rpv-core__menu":!0,"rpv-core__menu--rtl":a}),role:"menu",tabIndex:0},n)},t.MenuDivider=function(){return c.createElement("div",{"aria-orientation":"horizontal",className:"rpv-core__menu-divider",role:"separator"})},t.MenuItem=function(e){var n=e.checked,r=e.children,o=e.icon,a=e.isDisabled,i=e.testId,l=e.onClick,u=c.useContext(m).direction===t.TextDirection.RightToLeft;return c.createElement("button",f({className:h({"rpv-core__menu-item":!0,"rpv-core__menu-item--disabled":void 0!==a&&a,"rpv-core__menu-item--ltr":!u,"rpv-core__menu-item--rtl":u}),role:"menuitem",tabIndex:-1,type:"button",onClick:l},i?{"data-testid":i}:{}),c.createElement("div",{className:h({"rpv-core__menu-item-icon":!0,"rpv-core__menu-item-icon--ltr":!u,"rpv-core__menu-item-icon--rtl":u})}
1,void 0===o?null:o),c.createElement("div",{className:h({"rpv-core__menu-item-label":!0,"rpv-core__menu-item-label--ltr":!u,"rpv-core__menu-item-label--rtl":u})},r),c.createElement("div",{className:h({"rpv-core__menu-item-check":!0,"rpv-core__menu-item-check--ltr":!u,"rpv-core__menu-item-check--rtl":u})},void 0!==n&&n&&c.createElement(E,null)))},t.MinimalButton=function(e){var n=e.ariaLabel,r=e.ariaKeyShortcuts,o=void 0===r?"":r,a=e.children,i=e.isDisabled,l=void 0!==i&&i,u=e.isSelected,s=e.testId,d=e.onClick,p=c.useContext(m).direction===t.TextDirection.RightToLeft;return c.createElement("button",f({"aria-label":void 0===n?"":n},o&&{"aria-keyshortcuts":o},l&&{"aria-disabled":!0},{className:h({"rpv-core__minimal-button":!0,"rpv-core__minimal-button--disabled":l,"rpv-core__minimal-button--rtl":p,"rpv-core__minimal-button--selected":void 0!==u&&u}),type:"button",onClick:d},s?{"data-testid":s}:{}),a)},t.Modal=function(e){var t=e.ariaControlsSuffix,n=e.closeOnClickOutside,r=e.closeOnEscape,o=e.content,a=e.isOpened,i=e.target,l=t||"".concat(j());return c.createElement(q,{target:i?function(e,t){return c.createElement("div",{"aria-expanded":t?"true":"false","aria-haspopup":"dialog","aria-controls":"rpv-core__modal-body-".concat(l)},i(e,t))}:null,content:function(e){return c.createElement(U,null,c.createElement(W,{ariaControlsSuffix:l,closeOnClickOutside:n,closeOnEscape:r,onToggle:e},o(e)))},isOpened:void 0!==a&&a})},t.Popover=function(e){var t=e.ariaHasPopup,n=e.ariaControlsSuffix,r=e.closeOnClickOutside,o=e.closeOnEscape,a=e.content,i=e.lockScroll,l=e.offset,u=e.position,s=e.target,d=Z(!1),f=d.opened,p=d.toggle,m=c.useRef(),h=c.useMemo(function(){return n||"".concat(j())},[]);return c.createElement("div",{ref:m,"aria-expanded":f?"true":"false","aria-haspopup":void 0===t?"dialog":t,"aria-controls":"rpv-core__popver-body-".concat(h)},s(p,f),f&&c.createElement(c.Fragment,null,(void 0===i||i)&&c.createElement(ea,{closeOnEscape:o,onClose:p}),c.createElement(eo,{ariaControlsSuffix:h,closeOnClickOutside:r,offset:l,position:u,targetRef:m,onClose:p},a(p))))},t.PrimaryButton=y,t.ProgressBar=function(e){var n=e.progress,r=c.useContext(m).direction===t.TextDirection.RightToLeft;return c.createElement("div",{className:h({"rpv-core__progress-bar":!0,"rpv-core__progress-bar--rtl":r})},c.createElement("div",{className:"rpv-core__progress-bar-progress",style:{width:"".concat(n,"%")}},n,"%"))},t.Separator=function(){return c.createElement("div",{className:"rpv-core__separator"})},t.Spinner=w,t.Splitter=function(e){var n=e.constrain,r=c.useContext(m).direction===t.TextDirection.RightToLeft,o=c.useRef(),a=c.useRef(),i=c.useRef(),l=c.useRef(0),u=c.useRef(0),s=c.useRef(0),d=c.useRef(0),f={capture:!0},p=function(e){var t=o.current,c=a.current,u=i.current;if(t&&c&&u){var f=d.current,p=e.clientX-l.current,m=s.current+(r?-p:p),h=t.parentElement.getBoundingClientRect().width,g=100*m/h;if(t.classList.add("rpv-core__splitter--resizing"),n){var v=h-m-f;if(!n({firstHalfPercentage:g,firstHalfSize:m,secondHalfPercentage:100*v/h,secondHalfSize:v}))return}c.style.width="".concat(g,"%"),document.body.classList.add("rpv-core__splitter-body--resizing"),c.classList.add("rpv-core__splitter-sibling--resizing"),u.classList.add("rpv-core__splitter-sibling--resizing")}},h=function(e){var t=o.current,n=a.current,r=i.current;t&&n&&r&&(document.body.classList.remove("rpv-core__splitter-body--resizing"),t.classList.remove("rpv-core__splitter--resizing"),n.classList.remove("rpv-core__splitter-sibling--resizing"),r.classList.remove("rpv-core__splitter-sibling--resizing"),document.removeEventListener("mousemove",p,f),document.removeEventListener("mouseup",h,f))};return c.useEffect(function(){var e=o.current;e&&(d.current=e.getBoundingClientRect().width,a.current=e.previousElementSibling,i.current=e.nextElementSibling)},[]),c.createElement("div",{ref:o,className:"rpv-core__splitter",onMouseDown:function(e){var t=a.current;t&&(l.current=e.clientX,u.current=e.clientY,s.current=t.getBoundingClientRect().width,document.addEventListener("mousemove",p,f),document.addEventListener("mouseup",h,f))}})},t.TextBox=S,t.ThemeContext=m,t.Tooltip=function(e){var n=e.ariaControl
1sSuffix,r=e.content,o=e.offset,a=e.position,i=e.target,l=Z(!1),u=l.opened,s=l.toggle,d=c.useRef(),f=c.useRef(),p=c.useMemo(function(){return n||"".concat(j())},[]);H(function(){d.current&&document.activeElement&&d.current.contains(document.activeElement)&&h()});var m=function(){s(t.ToggleStatus.Open)},h=function(){s(t.ToggleStatus.Close)};return c.createElement(c.Fragment,null,c.createElement("div",{ref:d,"aria-describedby":"rpv-core__tooltip-body-".concat(p),onBlur:function(e){e.relatedTarget instanceof HTMLElement&&e.currentTarget.parentElement&&e.currentTarget.parentElement.contains(e.relatedTarget)?f.current&&(f.current.style.display="none"):h()},onFocus:m,onMouseEnter:m,onMouseLeave:h},i),u&&c.createElement(ei,{ariaControlsSuffix:p,contentRef:f,offset:o,position:a,targetRef:d},r()))},t.Viewer=function(e){var n=e.characterMap,r=e.defaultScale,o=e.enableSmoothScroll,a=void 0===o||o,i=e.fileUrl,l=e.httpHeaders,u=e.initialPage,s=void 0===u?0:u,d=e.pageLayout,f=e.initialRotation,p=void 0===f?0:f,h=e.localization,g=e.plugins,b=void 0===g?[]:g,E=e.renderError,y=e.renderLoader,w=e.renderPage,S=e.renderProtectedView,_=e.scrollMode,k=void 0===_?t.ScrollMode.Vertical:_,C=e.setRenderRange,P=void 0===C?tI:C,x=e.transformGetDocumentParams,M=e.theme,R=void 0===M?{direction:t.TextDirection.LeftToRight,theme:"light"}:M,T=e.viewMode,L=void 0===T?t.ViewMode.SinglePage:T,I=e.withCredentials,O=e.onDocumentAskPassword,N=e.onDocumentLoad,F=void 0===N?function(){}:N,A=e.onPageChange,j=void 0===A?function(){}:A,V=e.onRotate,H=void 0===V?function(){}:V,W=e.onRotatePage,U=void 0===W?function(){}:W,K=e.onSwitchTheme,Z=e.onZoom,q=void 0===Z?function(){}:Z,G=c.useState({data:i,name:"string"==typeof i?i:"",shouldLoad:!1}),Y=G[0],J=G[1],X=function(e,t){J({data:t,name:e,shouldLoad:!0})},$=c.useState(!1),Q=$[0],ee=$[1],et=D(Y);c.useEffect(function(){var e,t,n;e=et.data,n=typeof i,"string"==(t=typeof e)&&"string"===n&&e===i||"object"===t&&"object"===n&&e.length===i.length&&e.every(function(e,t){return e===i[t]})||J({data:i,name:"string"==typeof i?i:"",shouldLoad:Q})},[i,Q]);var en=v({onVisibilityChanged:function(e){ee(e.isVisible),e.isVisible&&J(function(e){return Object.assign({},e,{shouldLoad:!0})})}}),er="string"==typeof R?{direction:t.TextDirection.LeftToRight,theme:R}:R,eo=c.useState(h||z),ea=eo[0],ei=eo[1],ec=Object.assign({},{direction:er.direction},tL(er.theme||"light",void 0===K?function(){}:K));return c.useEffect(function(){h&&ei(h)},[h]),c.createElement(B.Provider,{value:{l10n:ea,setL10n:ei}},c.createElement(m.Provider,{value:ec},c.createElement("div",{ref:en,className:"rpv-core__viewer rpv-core__viewer--".concat(ec.currentTheme),"data-testid":"core__viewer",style:{height:"100%",width:"100%"}},Y.shouldLoad&&c.createElement(tT,{characterMap:n,file:Y.data,httpHeaders:void 0===l?{}:l,render:function(e){return c.createElement(t_,{defaultScale:r,doc:e,render:function(n,o){return c.createElement(tw,{currentFile:{data:Y.data,name:Y.name},defaultScale:r,doc:e,enableSmoothScroll:a,initialPage:s,initialRotation:p,initialScale:o,pageLayout:d,pageSizes:n,plugins:b,renderPage:w,scrollMode:k,setRenderRange:P,viewMode:L,viewerState:{file:Y,fullScreenMode:t.FullScreenMode.Normal,pageIndex:-1,pageHeight:n[0].pageHeight,pageWidth:n[0].pageWidth,pagesRotation:new Map,rotation:p,scale:o,scrollMode:k,viewMode:L},onDocumentLoad:F,onOpenFile:X,onPageChange:j,onRotate:H,onRotatePage:U,onZoom:q})},scrollMode:k,viewMode:L})},renderError:E,renderLoader:y,renderProtectedView:S,transformGetDocumentParams:x,withCredentials:void 0!==I&&I,onDocumentAskPassword:O}))))},t.Worker=function(e){var t=e.children,n=e.workerUrl;return l.GlobalWorkerOptions.workerSrc=n,c.createElement(c.Fragment,null,t)},t.chunk=el,t.classNames=h,t.createStore=function(e){var t=e||{},n={},r=function(e,r){var o;t=f(f({},t),((o={})[e]=r,o)),(n[e]||[]).forEach(function(n){return n(t[e])})},o=function(e){return t[e]};return{subscribe:function(e,t){n[e]=(n[e]||[]).concat(t)},unsubscribe:function(e,t){n[e]=(n[e]||[]).filter(function(e){return e!==t})},update:function(e,t){r(e,t)},updateCurrentValue:function(e,t){var n=o(e);void 0!==n&&r(e,t(n))},get:function(e){return o(e)}}},t.getDestination=eh,t.getPage=em,t.isFullScreenEnabled=R,t.isMac=function(){return"undefined"!=typeof window&&/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)},t.useDebounceCallback=I,t.useIntersectionObserver=v,t.useIsMounted=O,t.useIsomorphicLayoutEffect=g,t.usePrevious=D,t.useRenderQueue=F},38505:(e,t,n)=>{"use strict";var r,o=n(27788),a=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(n(76196)),i=function(){return a.createElement(o.Icon,{size:16},a.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,
111.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"}))},c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};t.SelectionMode=void 0,(r=t.SelectionMode||(t.SelectionMode={})).Hand="Hand",r.Text="Text";var l=function(){return a.createElement(o.Icon,{size:16},a.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.093,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"}))},u=function(e){var n=e.children,r=e.mode,c=e.onClick,u=a.useContext(o.LocalizationContext).l10n,s="",d=a.createElement(l,null);switch(r){case t.SelectionMode.Hand:s=u&&u.selectionMode?u.selectionMode.handTool:"Hand tool",d=a.createElement(i,null);break;case t.SelectionMode.Text:default:s=u&&u.selectionMode?u.selectionMode.textSelectionTool:"Text selection tool",d=a.createElement(l,null)}return n({icon:d,label:s,onClick:c})},s={left:0,top:8},d=function(e){var n=e.isSelected,r=e.mode,i=e.onClick,c="";switch(r){case t.SelectionMode.Hand:c="selection-mode__hand-button";break;case t.SelectionMode.Text:default:c="selection-mode__text-button"}return a.createElement(u,{mode:r,onClick:i},function(e){return a.createElement(o.Tooltip,{ariaControlsSuffix:"selection-mode-switch",position:o.Position.BottomCenter,target:a.createElement(o.MinimalButton,{ariaLabel:e.label,isSelected:n,testId:c,onClick:e.onClick},e.icon),content:function(){return e.label},offset:s})})},f=function(e){var t=e.children,n=e.mode,r=e.store,o=n===r.get("selectionMode");return(t||function(e){return a.createElement(d,{isSelected:o,mode:e.mode,onClick:e.onClick})})({isSelected:o,mode:n,onClick:function(){return r.update("selectionMode",n)}})},p=function(e){var n=e.isSelected,r=e.mode,i=e.onClick,c="";switch(r){case t.SelectionMode.Hand:c="selection-mode__hand-menu";break;case t.SelectionMode.Text:default:c="selection-mode__text-menu"}return a.createElement(u,{mode:r,onClick:i},function(e){return a.createElement(o.MenuItem,{checked:n,icon:e.icon,testId:c,onClick:e.onClick},e.label)})},m=function(e){var n=e.store,r=a.useRef(null),o=a.useState(t.SelectionMode.Text),i=o[0],c=o[1],l=a.useRef({top:0,left:0,x:0,y:0}),u=function(e){var t=r.current;t&&(t.scrollTop=l.current.top-(e.clientY-l.current.y),t.scrollLeft=l.current.left-(e.clientX-l.current.x))},s=function(){var e=r.current;e&&(e.classList.add("rpv-selection-mode__grab"),e.classList.remove("rpv-selection-mode__grabbing"),document.removeEventListener("mousemove",u),document.removeEventListener("mouseup",s))},d=function(e){var n=r.current;n&&i!==t.SelectionMode.Text&&(n.classList.remove("rpv-selection-mode__grab"),n.classList.add("rpv-selection-mode__grabbing"),e.preventDefault(),e.stopPropagation(),l.current={left:n.scrollLeft,top:n.scrollTop,x:e.clientX,y:e.clientY},document.addEventListener("mousemove",u),document.addEventListener("mouseup",s))},f=function(e){r.current=e()},p=function(e){c(e)};return a.useEffect(function(){var e=r.current;if(e)return i===t.SelectionMode.Hand?e.classList.add("rpv-selection-mode__grab"):e.classList.remove("rpv-selection-mode__grab"),e.addEventListener("mousedown",d),function(){e.removeEventListener("mousedown",d)}},[i]),a.useEffect(function(){return n.subscribe("getPagesContainer",f),n.subscribe("selectionMode",p),function(){n.unsubscribe("getPagesContainer",f),n.unsubscribe("selectionMode",p)}},[]),a.createElement(a.Fragment,null)};t.HandToolIcon=i,t.TextSelectionIcon=l,t.selectionModePlugin=function(e){var n=a.useMemo(function(){return o.createStore(
1)},[]),r=function(e){return a.createElement(f,c({},e,{store:n}))};return{install:function(r){n.update("selectionMode",e&&e.selectionMode?e.selectionMode:t.SelectionMode.Text),n.update("getPagesContainer",r.getPagesContainer)},renderViewer:function(e){var t=e.slot;return t.subSlot&&t.subSlot.children&&(t.subSlot.children=a.createElement(a.Fragment,null,a.createElement(m,{store:n}),t.subSlot.children)),t},SwitchSelectionMode:r,SwitchSelectionModeButton:function(e){return a.createElement(r,{mode:e.mode},function(e){return a.createElement(d,{isSelected:e.isSelected,mode:e.mode,onClick:function(){e.onClick()}})})},SwitchSelectionModeMenuItem:function(e){return a.createElement(r,{mode:e.mode},function(t){return a.createElement(p,{isSelected:t.isSelected,mode:t.mode,onClick:function(){t.onClick(),e.onClick()}})})}}}},38896:(e,t,n)=>{"use strict";e.exports=n(95319)},40108:(e,t,n)=>{"use strict";e.exports=n(68692)},40188:()=>{},50804:(e,t,n)=>{"use strict";e.exports=n(89720)},57234:(e,t,n)=>{"use strict";e.exports=n(64183)},60308:(e,t,n)=>{"use strict";var r=n(27788),o=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(n(76196)),a=function(e){var t=e.files,n=o.useRef(),a=o.useContext(r.LocalizationContext).l10n,i=o.useContext(r.ThemeContext).direction===r.TextDirection.RightToLeft,c=o.useRef([]),l=a&&a.attachment?a.attachment.clickToDownload:"Click to download",u=function(e){var t=n.current,r=[].slice.call(t.getElementsByClassName("rpv-attachment__item"));if(0!==r.length){r.forEach(function(e){return e.setAttribute("tabindex","-1")});var o=document.activeElement,a=r[Math.min(r.length-1,Math.max(0,e(r,o)))];a.setAttribute("tabindex","0"),a.focus()}};return r.useIsomorphicLayoutEffect(function(){var e=n.current;if(e){var t=[].slice.call(e.getElementsByClassName("rpv-attachment__item"));if(c.current=t,t.length>0){var r=t[0];r.focus(),r.setAttribute("tabindex","0")}}},[]),o.createElement("div",{"data-testid":"attachment__list",className:r.classNames({"rpv-attachment__list":!0,"rpv-attachment__list--rtl":i}),ref:n,tabIndex:-1,onKeyDown:function(e){switch(e.key){case"ArrowDown":e.preventDefault(),u(function(e,t){return e.indexOf(t)+1});break;case"ArrowUp":e.preventDefault(),u(function(e,t){return e.indexOf(t)-1});break;case"End":e.preventDefault(),u(function(e,t){return e.length-1});break;case"Home":e.preventDefault(),u(function(e,t){return 0})}}},t.map(function(e){return o.createElement("button",{className:"rpv-attachment__item",key:e.fileName,tabIndex:-1,title:l,type:"button",onClick:function(){var t,n,r,o,a;return t=e.fileName,r="string"==typeof(n=e.data)?"":URL.createObjectURL(new Blob([n],{type:""})),(o=document.createElement("a")).style.display="none",o.href=r||t,o.setAttribute("download",(a=t.split("/").pop())?a.split("#")[0].split("?")[0]:t),document.body.appendChild(o),o.click(),document.body.removeChild(o),void(r&&URL.revokeObjectURL(r))}},e.fileName)}))},i=function(e){var t=e.doc,n=o.useContext(r.LocalizationContext).l10n,i=o.useContext(r.ThemeContext).direction===r.TextDirection.RightToLeft,c=n&&n.attachment?n.attachment.noAttachment:"There is no attachment",l=o.useState({files:[],isLoaded:!1}),u=l[0],s=l[1];return o.useEffect(function(){t.getAttachments().then(function(e){s({files:e?Object.keys(e).map(function(t){return{data:e[t].content,fileName:e[t].filename}}):[],isLoaded:!0})})},[t]),u.isLoaded?0===u.files.length?o.createElement("div",{"data-testid":"attachment__empty",className:r.classNames({"rpv-attachment__empty":!0,"rpv-attachment__empty--rtl":i})},c):o.createElement(a,{files:u.files}):o.createElement(r.Spinner,null)},c=function(e){var t=e.store,n=o.useState(t.get("doc")),a=n[0],c=n[1],l=function(e){c(e)};return o.useEffect(function(){return t.subscribe("doc",l),function(){t.unsubscribe("doc",l)}},[]),a?o.createElement(i,{doc:a}):o.createElement("div",{className:"rpv-attachment__loader"},o.createElement(r.Spinner,null))};t.attachmentPlugin=function(){var e=o.useMemo(function(){return r.createStore({})},[]);return{onDocumentLoad:function(t){e.update("doc",t.doc)},Attachments:function(){return o.createElement(c,{store:e})}}}},62891:(e,t,n)=>{"use strict";var r=n(27788),o=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(n(76196)),a=function(){return o.createElement(r.Icon,{size:16},o.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"}))},i=function(){return o.createElement(r.Icon,{size:16},o.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"}))},c=function(){return o.createElement(r.Icon,{ignoreDirection:!0,size:16},o.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"}))},l=function(){return(l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},u={keyword:"",regExp:RegExp(" "),wholeWords:!1},s=function(e){return{left:"".concat(e.left,"%"),top:"".concat(e.top,"%"),height:"".concat(e.height,"%"),width:"".concat(e.width,"%")}},d=function(e){var t=e.index,n=e.area,a=e.onHighlightKeyword,i=o.useRef();return r.useIsomorphicLayoutEffect(function(){var e=i.current;a&&e&&a({highlightEle:e,keyword:n.keyword})},[]),o.createElement("div",{className:"rpv-search__highlight","data-index":t,ref:i,style:s(n),title:n.keywordStr.trim()})},f=function(e){var t=e.parentNode;t&&t.removeChild(e)},p=function(e){var t=e.parentNode;if(t){var n,r,o=document.createRange();o.selectNodeContents(e),n=o.extractContents(),f(n),(r=e.parentNode)&&r.insertBefore(n,e),f(e),t.normalize()}},m=function(e,t){return e.top<t.top?-1:e.top>t.top?1:e.left<t.left?-1:+(e.left>t.left)},h=function(e){var t=e.numPages,n=e.pageIndex,a=e.renderHighlights,i=e.store,c=e.onHighlightKeyword,l=o.useRef(),f=o.useCallback(function(e){return o.createElement(o.Fragment,null,e.highlightAreas.map(function(e,t){return o.createElement(d,{index:t,key:t,area:e,onHighlightKeyword:c})}
1))},[]),h=o.useState(i.get("matchPosition")),g=h[0],v=h[1],b=o.useState(i.get("keyword")||[u]),E=b[0],y=b[1],w=o.useState({pageIndex:n,scale:1,status:r.LayerRenderStatus.PreRender}),S=w[0],_=w[1],k=o.useRef(null),C=o.useRef([]),P=o.useState([]),x=P[0],M=P[1],R=function(){return!0},T=o.useCallback(function(){return i.get("targetPageFilter")||R},[i.get("targetPageFilter")]),L=function(e){var r=C.current;if(0===r.length)return[];var o=[],a=[].slice.call(e.querySelectorAll(".rpv-core__text-layer-text")),i=r.map(function(e){return e.char}).join("");return E.forEach(function(c){var l=c.keyword;if(l.trim()){for(var u,s=-1===c.regExp.flags.indexOf("g")?new RegExp(c.regExp,"".concat(c.regExp.flags,"g")):c.regExp,d=[];null!==(u=s.exec(i));)d.push({keyword:s,startIndex:u.index,endIndex:s.lastIndex});d.map(function(e){return{keyword:e.keyword,indexes:r.slice(e.startIndex,e.endIndex)}}).forEach(function(r){Object.values(r.indexes.reduce(function(e,t){return e[t.spanIndex]=(e[t.spanIndex]||[]).concat([t]),e},{})).forEach(function(i){if(1!==i.length||""!==i[0].char.trim()){var u=c.wholeWords?i.slice(1,-1):i,s=function(e,r,o,a,i){var c=document.createRange(),l=a.firstChild;if(!l||l.nodeType!==Node.TEXT_NODE)return null;var u=l.textContent.length,s=i[0].charIndexInSpan,d=1===i.length?s:i[i.length-1].charIndexInSpan;if(s>u||d+1>u)return null;c.setStart(l,s),c.setEnd(l,d+1);var f=document.createElement("span");c.surroundContents(f);var m=f.getBoundingClientRect(),h=o.getBoundingClientRect(),g=h.height,v=h.width,b=100*(m.left-h.left)/v,E=100*(m.top-h.top)/g,y=100*m.height/g,w=100*m.width/v;return p(f),{keyword:r,keywordStr:e,numPages:t,pageIndex:n,left:b,top:E,height:y,width:w,pageHeight:g,pageWidth:v}}(l,r.keyword,e,a[u[0].spanIndex],u);s&&o.push(s)}})})}}),o.sort(m)},I=function(e){e&&e.length>0&&y(e)},O=function(e){return v(e)},D=function(e){if(e.has(n)){var t=e.get(n);t&&_({ele:t.ele,pageIndex:n,scale:t.scale,status:t.status})}},N=function(){return 0===E.length||1===E.length&&""===E[0].keyword.trim()};return o.useEffect(function(){if(!N()&&S.status===r.LayerRenderStatus.DidRender&&!C.current.length){var e=S.ele;C.current=[].slice.call(e.querySelectorAll(".rpv-core__text-layer-text")).map(function(e){return e.textContent}).reduce(function(e,t,n){return e.concat(t.split("").map(function(e,t){return{char:e,charIndexInSpan:t,spanIndex:n}}))},[{char:"",charIndexInSpan:0,spanIndex:0}]).slice(1)}},[E,S.status]),o.useEffect(function(){!N()&&S.ele&&S.status===r.LayerRenderStatus.DidRender&&T()({pageIndex:n,numPages:t})&&M(L(S.ele))},[E,g,S.status,C.current]),o.useEffect(function(){N()&&S.ele&&S.status===r.LayerRenderStatus.DidRender&&M([])},[E,S.status]),o.useEffect(function(){if(0!==x.length){var e=l.current;if(g.pageIndex===n&&e&&S.status===r.LayerRenderStatus.DidRender){var t=e.querySelector('.rpv-search__highlight[data-index="'.concat(g.matchIndex,'"]'));if(t){var o=function(e,t){for(var n=e.offsetTop,r=e.offsetLeft,o=e.parentElement;o&&o!==t;)n+=o.offsetTop,r+=o.offsetLeft,o=o.parentElement;return{left:r,top:n}}(t,e),a=o.left,c=o.top,u=i.get("jumpToDestination");u&&(u({pageIndex:n,bottomOffset:(e.getBoundingClientRect().height-c)/S.scale,leftOffset:a/S.scale,scaleTo:S.scale}),k.current&&k.current.classList.remove("rpv-search__highlight--current"),k.current=t,t.classList.add("rpv-search__highlight--current"))}}}},[x,g]),o.useEffect(function(){return i.subscribe("keyword",I),i.subscribe("matchPosition",O),i.subscribe("renderStatus",D),function(){i.unsubscribe("keyword",I),i.unsubscribe("matchPosition",O),i.unsubscribe("renderStatus",D)}},[]),o.createElement("div",{className:"rpv-search__highlights","data-testid":"search__highlights-".concat(n),ref:l},(a||f)({getCssProperties:s,highlightAreas:x}))},g=function(e){var t=e.wholeWords?" ".concat(e.keyword," "):e.keyword,n=e.matchCase?"g":"gi";return{keyword:e.keyword,regExp:new RegExp(t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n),wholeWords:e.wholeWords||!1}},v=function(e,t,n){return e instanceof RegExp?{keyword:e.source,regExp:e,wholeWords:n||!1}:"string"==typeof e?""===e?u:g({keyword:e,matchCase:t||!1,wholeWords:n||!1}):(void 0!==t&&(e.matchCase=t),void 0!==n&&(e.wholeWords=n),g(e))}
1,b=function(e){var t,n,a,i=e.get("initialKeyword"),c=o.useMemo(function(){if(i&&1===i.length){var e=v(i[0]);return{matchCase:-1===e.regExp.flags.indexOf("i"),wholeWords:e.wholeWords}}return{matchCase:!1,wholeWords:!1}},[]),l=(t=o.useRef(e.get("doc")),n=function(e){t.current=e},o.useEffect(function(){return e.subscribe("doc",n),function(){e.unsubscribe("doc",n)}},[]),t),s=o.useState(i),d=s[0],f=s[1],p=o.useState([]),m=p[0],h=p[1],g=o.useState(0),b=g[0],E=g[1],y=o.useState(c.matchCase),w=y[0],S=y[1],_=o.useRef([]),k=o.useState(c.wholeWords),C=k[0],P=k[1],x=function(){return!0},M=o.useCallback(function(){return e.get("targetPageFilter")||x},[e.get("targetPageFilter")]),R=function(e){var t=m.length;if(0===d.length||0===t)return null;var n=e===t+1?1:Math.max(1,Math.min(t,e));return E(n),L(m[n-1])},T=function(e){return f(""===e?[]:[e])},L=function(t){var n=e.get("jumpToPage");return n&&n(t.pageIndex),e.update("matchPosition",{matchIndex:t.matchIndex,pageIndex:t.pageIndex}),t},I=function(t,n,o){var a=l.current;if(!a)return Promise.resolve([]);var i=a.numPages,c=t.map(function(e){return v(e,n,o)});return e.update("keyword",c),E(0),h([]),new Promise(function(e,t){var n;(0===_.current.length?(!(n=l.current)?Promise.resolve([]):Promise.all(Array(n.numPages).fill(0).map(function(e,t){return r.getPage(n,t).then(function(e){return e.getTextContent()}).then(function(e){return Promise.resolve({pageContent:e.items.map(function(e){return e.str||""}).join(""),pageIndex:t})})})).then(function(e){return e.sort(function(e,t){return e.pageIndex-t.pageIndex}),Promise.resolve(e.map(function(e){return e.pageContent}))})).then(function(e){return _.current=e,Promise.resolve(e)}):Promise.resolve(_.current)).then(function(t){var n=[];t.forEach(function(e,t){M()({pageIndex:t,numPages:i})&&c.forEach(function(r){for(var o,a=0;null!==(o=r.regExp.exec(e));)n.push({keyword:r.regExp,matchIndex:a,pageIndex:t,pageText:e,startIndex:o.index,endIndex:r.regExp.lastIndex}),a++})}),h(n),n.length>0&&(E(1),L(n[0])),e(n)})})};return o.useEffect(function(){_.current=[]},[l.current]),{clearKeyword:function(){e.update("keyword",[u]),T(""),E(0),h([]),S(!1),P(!1)},changeMatchCase:function(e){S(e),d.length>0&&I(d,e,C)},changeWholeWords:function(e){P(e),d.length>0&&I(d,w,e)},currentMatch:b,jumpToMatch:R,jumpToNextMatch:function(){return R(b+1)},jumpToPreviousMatch:function(){return R(b-1)},keywords:d,matchCase:w,numberOfMatches:m.length,wholeWords:C,search:function(){return I(d,w,C)},searchFor:I,setKeywords:f,keyword:0===d.length?"":(a=d[0])instanceof RegExp?a.source:"string"==typeof a?a:a.keyword,setKeyword:T,setTargetPages:function(t){e.update("targetPageFilter",t)}}},E=function(e){var t=e.children,n=e.store,r=b(n),a=o.useState(!1),i=a[0],c=a[1],u=function(e){return c(!0)};return o.useEffect(function(){return n.subscribe("doc",u),function(){n.unsubscribe("doc",u)}},[]),t(l(l({},r),{isDocumentLoaded:i}))},y=function(e){var t=e.containerRef,n=e.store,a=o.useRef(!1),i=function(){a.current=!0},c=function(){a.current=!1},l=function(e){var o=t.current;o&&(e.shiftKey||e.altKey||"f"!==e.key||(r.isMac()?e.metaKey&&!e.ctrlKey:e.ctrlKey)&&(a.current||document.activeElement&&o.contains(document.activeElement))&&(e.preventDefault(),n.update("areShortcutsPressed",!0)))};return o.useEffect(function(){var e=t.current;if(e)return document.addEventListener("keydown",l),e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",c),function(){document.removeEventListener("keydown",l),e.removeEventListener("mouseenter",i),e.removeEventListener("mouseleave",c)}},[t.current]),o.createElement(o.Fragment,null)},w={left:0,top:8},S=function(e){var t=e.store,n=e.onToggle,c=o.useContext(r.LocalizationContext).l10n,l=o.useContext(r.ThemeContext).direction,u=o.useState(!1),s=u[0],d=u[1],f=o.useState(!1),p=f[0],m=f[1],h=l===r.TextDirection.RightToLeft,g=b
1(t),v=g.clearKeyword,E=g.changeMatchCase,y=g.changeWholeWords,S=g.currentMatch,_=g.jumpToNextMatch,k=g.jumpToPreviousMatch,C=g.keyword,P=g.matchCase,x=g.numberOfMatches,M=g.wholeWords,R=g.search,T=g.setKeyword,L=function(e){d(!0),R().then(function(t){d(!1),m(!0),e&&e()})};o.useEffect(function(){var e=t.get("initialKeyword");e&&1===e.length&&C&&L(function(){t.update("initialKeyword",[])})},[]);var I=c&&c.search?c.search.enterToSearch:"Enter to search",O=c&&c.search?c.search.previousMatch:"Previous match",D=c&&c.search?c.search.nextMatch:"Next match",N=c&&c.search?c.search.close:"Close";return o.createElement("div",{className:"rpv-search__popover"},o.createElement("div",{className:"rpv-search__popover-input-counter"},o.createElement(r.TextBox,{ariaLabel:I,autoFocus:!0,placeholder:I,type:"text",value:C,onChange:function(e){m(!1),T(e)},onKeyDown:function(e){"Enter"===e.key&&C&&(p?_():L())}}),o.createElement("div",{className:r.classNames({"rpv-search__popover-counter":!0,"rpv-search__popover-counter--ltr":!h,"rpv-search__popover-counter--rtl":h})},s&&o.createElement(r.Spinner,{testId:"search__popover-searching",size:"1rem"}),!s&&o.createElement("span",{"data-testid":"search__popover-num-matches"},S,"/",x))),o.createElement("label",{className:"rpv-search__popover-label"},o.createElement("input",{className:"rpv-search__popover-label-checkbox","data-testid":"search__popover-match-case",checked:P,type:"checkbox",onChange:function(e){m(!1),E(e.target.checked)}})," ",c&&c.search?c.search.matchCase:"Match case"),o.createElement("label",{className:"rpv-search__popover-label"},o.createElement("input",{className:"rpv-search__popover-label-checkbox",checked:M,"data-testid":"search__popover-whole-words",type:"checkbox",onChange:function(e){m(!1),y(e.target.checked)}})," ",c&&c.search?c.search.wholeWords:"Whole words"),o.createElement("div",{className:"rpv-search__popover-footer"},o.createElement("div",{className:"rpv-search__popover-footer-item"},o.createElement(r.Tooltip,{ariaControlsSuffix:"search-previous-match",position:h?r.Position.BottomRight:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaLabel:O,isDisabled:S<=1,onClick:k},o.createElement(i,null)),content:function(){return O},offset:w})),o.createElement("div",{className:"rpv-search__popover-footer-item"},o.createElement(r.Tooltip,{ariaControlsSuffix:"search-next-match",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaLabel:D,isDisabled:S>x-1,onClick:_},o.createElement(a,null)),content:function(){return D},offset:w})),o.createElement("div",{className:r.classNames({"rpv-search__popover-footer-button":!0,"rpv-search__popover-footer-button--ltr":!h,"rpv-search__popover-footer-button--rtl":h})},o.createElement(r.Button,{onClick:function(){n(),v()}},N))))},_=function(e){var t=e.children,n=e.onClick,a=o.useContext(r.LocalizationContext).l10n,i=a&&a.search?a.search.search:"Search";return t({icon:o.createElement(c,null),label:i,onClick:n})},k={left:0,top:8},C=function(e){var t=e.enableShortcuts,n=e.store,a=e.onClick,i=t?r.isMac()?"Meta+F":"Ctrl+F":"",c=function(e){e&&a()};return o.useEffect(function(){return n.subscribe("areShortcutsPressed",c),function(){n.unsubscribe("areShortcutsPressed",c)}},[]),o.createElement(_,{onClick:a},function(e){return o.createElement(r.Tooltip,{ariaControlsSuffix:"search-popover",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaKeyShortcuts:i,ariaLabel:e.label,testId:"search__popover-button",onClick:a},e.icon),content:function(){return e.label},offset:k})})},P={left:0,top:8},x=function(e){var t=e.children,n=e.enableShortcuts,a=e.store,i=o.useContext(r.ThemeContext).direction===r.TextDirection.RightToLeft?r.Position.BottomRight:r.Position.BottomLeft,c=t||function(e){return o.createElement(C,l({enableShortcuts:n,store:a},e))};return o.createElement(r.Popover,{ariaControlsSuffix:"search",lockScroll:!1,position:i,target:function(e){return c({onClick:e})},content:function(e){return o.createElement(S,{store:a,onToggle:e})},offset:P,closeOnClickOutside:!1,closeOnEscape:!0})},M=function(e){return Array.isArray(e)?e.map(function(e){return v(e)}):[v(e)]};t.NextIcon=a,t.PreviousIcon=i,t.SearchIcon=c,t.searchPlugin=function(e){var t=o.useMemo(function(){return Object.assign({},{enableShortcuts:!0,onHighlightKeyword:function(){}},e)},[]),n=o.useMemo(function(){return r.createStore({initialKeyword:e&&e.keyword?Array.isArray(e.keyword)?e.keyword:[e.keyword]:[],keyword:e&&e.keyword?M(e.keyword):[u],matchPosition:{matchIndex:-1,pageIndex:-1},renderStatus:new Map})}
1,[]),a=b(n),i=a.clearKeyword,c=a.jumpToMatch,s=a.jumpToNextMatch,d=a.jumpToPreviousMatch,f=a.searchFor,p=a.setKeywords,m=a.setTargetPages,g=function(e){return o.createElement(x,l({enableShortcuts:t.enableShortcuts},e,{store:n}))};return{install:function(t){var r=e&&e.keyword?Array.isArray(e.keyword)?e.keyword:[e.keyword]:[],o=e&&e.keyword?M(e.keyword):[u];n.update("initialKeyword",r),n.update("jumpToDestination",t.jumpToDestination),n.update("jumpToPage",t.jumpToPage),n.update("keyword",o)},renderPageLayer:function(r){return o.createElement(h,{key:r.pageIndex,numPages:r.doc.numPages,pageIndex:r.pageIndex,renderHighlights:null==e?void 0:e.renderHighlights,store:n,onHighlightKeyword:t.onHighlightKeyword})},renderViewer:function(e){var r=e.slot;return r.subSlot&&(r.subSlot.children=o.createElement(o.Fragment,null,t.enableShortcuts&&o.createElement(y,{containerRef:e.containerRef,store:n}),r.subSlot.children)),r},uninstall:function(e){var t=n.get("renderStatus");t&&t.clear()},onDocumentLoad:function(e){n.update("doc",e.doc)},onTextLayerRender:function(e){var t=n.get("renderStatus");t&&(t=t.set(e.pageIndex,e),n.update("renderStatus",t))},Search:function(e){return o.createElement(E,l({},e,{store:n}))},ShowSearchPopover:g,ShowSearchPopoverButton:function(){return o.createElement(g,null,function(e){return o.createElement(C,l({enableShortcuts:t.enableShortcuts,store:n},e))})},clearHighlights:function(){i()},highlight:function(e){var t=Array.isArray(e)?e:[e];return p(t),f(t)},jumpToMatch:c,jumpToNextMatch:s,jumpToPreviousMatch:d,setTargetPages:m}}},64183:(e,t,n)=>{"use strict";var r,o=n(27788),a=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(n(76196)),i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},c=function(){return a.createElement(o.Icon,{size:16},a.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"}))},l=function(){return a.createElement(o.Icon,{size:16},a.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"}))},u=function(e){var t=e.bookmark,n=e.depth,r=e.doc,u=e.index,d=e.isBookmarkExpanded,f=e.numberOfSiblings,p=e.pathFromRoot,m=e.renderBookmarkItem,h=e.store,g=p?"".concat(p,".").concat(u):"".concat(u),v=a.useMemo(function(){return function(e){var t=e.count,n=e.items;if(t>=0)return!1;var r=n.length;if(0===r)return!1;for(var o=n.concat([]);o.length>0;){var a=o.shift(),i=a.items;a.count&&i&&a.count>0&&i.length>0&&(r+=i.length,o=o.concat(i))}return Math.abs(t)===r}(t)},[t]),b=h.get("bookmarkExpandedMap"),E=d?d({bookmark:t,doc:r,depth:n,index:u}):b.has(g)?b.get(g):!v,y=a.useState(E),w=y[0],S=y[1],_=t.items&&t.items.length>0,k=function(){var e=!w;h.updateCurrentValue("bookmarkExpandedMap",function(t){return t.set(g,e)}),S(e)},C=function(){var e=t.dest,n=h.get("jumpToDestination");o.getDestination(r,e).then(function(e){n&&n(i({label:t.title},e))})},P=function(){_&&t.dest&&C()},x=function(){!_&&t.dest&&C()},M=function(e,t){return a.createElement("div",{className:"rpv-bookmark__item",style:{paddingLeft:"".concat(1.25*n,"rem")},onClick:e},t)},R=function(e,t){return _?a.createElement("span",{className:"rpv-bookmark__toggle","data-testid":"bookmark__toggle-".concat(n,"-").concat(u),onClick:k},w?e:t):a.createElement("span",{className:"rpv-bookmark__toggle"})},T=function(e){return t.url?a.createElement("a",{className:"rpv-bookmark__title",href:t.url,rel:"noopener noreferrer nofollow",target:t.newWindow?"_blank":""},t.title):a.createElement("div",{className:"rpv-bookmark__title","aria-label":t.title,onClick:e},t.title)};return a.createElement("li",{"aria-expanded":w?"true":"false","aria-label":t.title,"aria-level":n+1,"aria-posinset":u+1,"aria-setsize":f,role:"treeitem",tabIndex:-1},m?m({bookmark:t,depth:n,hasSubItems:_,index:u,isExpanded:w,path:g,defaultRenderItem:M,defaultRenderTitle:T,defaultRenderToggle:R,onClickItem:x,onClickTitle:P,onToggleSubItems:k}):M(x,a.createElement(a.Fragment,null,R(a.createElement(c,null),a.createElement(l,null)),T(P))),_&&w&&a.createElement(s,{bookmarks:t.items,depth:n+1,doc:r,isBookmarkExpanded:d,isRoot:!1,pathFromRoot:g,renderBookmarkItem:m,store:h}))},s=function(e){var t=e.bookmarks,n=e.depth,r=void 0===n?0:n,o=e.doc,i=e.isBookmarkExpanded,c=e.isRoot,l=e.pathFromRoot,s=e.renderBookmarkItem,d=e.store;return a.createElement("ul",{className:"rpv-bookmark__list",role:c?"tree":"group",tabIndex:-1},t.map(function(e,n){return a.createElement(u,{bookmark:e,depth:r,doc:o,index:n,isBookmarkExpanded:i,key:n,numberOfSiblings:t.length,pathFromRoot:l,renderBookmarkItem:s,store:d})}))};!function(e){e[e.Collapse=0]="Collapse",e[e.Expand=1]="Expand"}(r||(r={}));var d=function(e){var t=e.bookmarks,n=e.doc,o=e.isBookmarkExpanded,i=e.renderBookmarkItem,c=e.store,l=a.useRef(),u=function(e){var t=l.current;if(t&&e.target instanceof HTMLElement&&t.contains(e.target))switch(e.key){case"ArrowDown":e.preventDefault(),f(function(e,t){return e.indexOf(t)+1});break;case"ArrowLeft":e.preventDefault(),p(r.Collapse);break;case"ArrowRight":e.preventDefault(),p(r.Expand);break;case"ArrowUp":e.preventDefault,f(function(e,t){return e.indexOf(t)-1});break;case"End":e.preventDefault(),f(function(e,t){return e.length-1});break;case" ":case"Enter":case"Space":e.preventDefault(),d();break;case"Home":e.preventDefault(),f(function(e,t){return 0})}},d=function(){var e=document.activeElement.closest(".rpv-bookmark__item").querySelector(".rpv-bookmark__title");e&&e.click()},f=function(e){var t=l.current,n=[].slice.call(t.getElementsByClassName("rpv-bookmark__item"));if(0!==n.length){var r=document.activeElement,o=n[Math.min(n.length-1,Math.max(0,e(n,r)))];r.setAttribute("tabindex","-1"),o.setAttribute("tabindex","0"),o.focus()}},p=function(e){var t=l.current;if(0!==[].slice.call(t.getElementsByClassName("rpv-bookmark__item")).length){var n=document.activeElement.closest(".rpv-bookmark__item"),o=e===r.Collapse?"true":"false";if(n&&n.parentElement.getAttribute("aria-expanded")===o){var a=n.querySelector(".rpv-bookmark__toggle");a&&a.click()}}};return a.useEffect(function(){return document.addEventListener("keydown",u),function(){document.removeEventListener("keydown",u)}},[]),a.useEffect(function(){var e=l.current;if(e){var t=[].slice.call(e.getElementsByClassName("rpv-bookmark__item"));t.length>0&&(t[0].focus(),t[0].setAttribute("tabindex","0"))}},[]),a.createElement("div",{ref:l},a.createElement(s,{bookmarks:t,depth:0,doc:n,isBookmarkExpanded:o,isRoot:!0,pathFromRoot:"",renderBookmarkItem:i,store:c}))},f=function(e){var t=e.doc,n=e.isBookmarkExpanded,r=e.renderBookmarkItem,i=e.store,c=a.useContext(o.LocalizationContext).l10n,l=a.useContext(o.ThemeContext).direction===o.TextDirection.RightToLeft,u=a.useState({isLoaded:!1,items:[]}),s=u[0],f=u[1];return a.useEffect(function(){f({isLoaded:!1,items:[]}),t.getOutline().then(function(e){f({isLoaded:!0,items:e||[]})})},[t]),s.isLoaded?0===s.items.length?a.createElement("div",{"data-testid":"bookmark__empty",className:o.classNames({"rpv-bookmark__empty":!0,"rpv-bookmark__empty--rtl":l})},c&&c.bookmark?c.bookmark.noBookmark:"There is no bookmark"):a.createElement("div",{"data-testid":"bookmark__container",className:o.classNames({"rpv-bookmark__container":!0,"rpv-bookmark__container--rtl":l})},a.createElement(d,{bookmarks:s.items,doc:t,isBookmarkExpanded:n,renderBookmarkItem:r,store:i})):a.createElement("div",{className:"rpv-bookmark__loader"},a.createElement(o.Spinner,null))},p=function(e){var t=e.isBookmarkExpanded,n=e.renderBookmarkItem,r=e.store,i=a.use
1State(r.get("doc")),c=i[0],l=i[1],u=function(e){l(e)};return a.useEffect(function(){return r.subscribe("doc",u),function(){r.unsubscribe("doc",u)}},[]),c?a.createElement(f,{doc:c,isBookmarkExpanded:t,renderBookmarkItem:n,store:r}):a.createElement("div",{className:"rpv-bookmark__loader"},a.createElement(o.Spinner,null))};t.DownArrowIcon=c,t.RightArrowIcon=l,t.bookmarkPlugin=function(){var e=a.useMemo(function(){return o.createStore({bookmarkExpandedMap:new Map})},[]);return{install:function(t){e.update("jumpToDestination",t.jumpToDestination)},onDocumentLoad:function(t){e.update("doc",t.doc)},Bookmarks:function(t){return a.createElement(p,{isBookmarkExpanded:null==t?void 0:t.isBookmarkExpanded,renderBookmarkItem:null==t?void 0:t.renderBookmarkItem,store:e})}}}},64786:(e,t,n)=>{"use strict";var r=n(27788),o=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(n(76196)),a=function(){return o.createElement(r.Icon,{ignoreDirection:!0,size:16},o.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"}))},i=function(){return o.createElement(r.Icon,{ignoreDirection:!0,size:16},o.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(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},l=function(e){var t=o.useState(e.get("scale")||0),n=t[0],r=t[1],a=function(e){r(e)};return o.useEffect(function(){return e.subscribe("scale",a),function(){e.unsubscribe("scale",a)}},[]),{scale:n}},u=function(e){return(e.children||function(e){return o.createElement(o.Fragment,null,"".concat(Math.round(100*e.scale),"%"))})({scale:l(e.store).scale})},s={passive:!1},d=null,f=function(e){var t=e.pagesContainerRef,n=e.store,a=r.useDebounceCallback(function(e){var t=n.get("zoom");t&&t(e)},40),i=function(e){if(e.ctrlKey){e.preventDefault();var t=e.target.getBoundingClientRect(),r=1-e.deltaY/100,o=e.clientX-t.left,i=e.clientY-t.top,c=n.get("scale");a((d||(d=document.createElementNS("http://www.w3.org/2000/svg","svg"))).createSVGMatrix().translate(o,i).scale(r).translate(-o,-i).scale(c).a)}};return r.useIsomorphicLayoutEffect(function(){var e=t.current;if(e)return e.addEventListener("wheel",i,s),function(){e.removeEventListener("wheel",i)}},[]),o.createElement(o.Fragment,null)},p=[.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],m=function(e){return p.find(function(t){return t>e})||e},h=function(e){var t=p.findIndex(function(t){return t>=e});return -1===t||0===t?e:p[t-1]},g=function(e){var t=e.containerRef,n=e.store,a=function(e){if(!e.shiftKey&&!e.altKey&&(r.isMac()?e.metaKey:e.ctrlKey)){var o=t.current;if(o&&document.activeElement&&o.contains(document.activeElement)){var a=n.get("zoom");if(a){var i=n.get("scale")||1,c=1;switch(e.key){case"-":c=h(i);break;case"=":c=m(i);break;case"0":c=1;break;default:c=i}c!==i&&(e.preventDefault(),a(c))}}}};return o.useEffect(function(){if(t.current)return document.addEventListener("keydown",a),function(){document.removeEventListener("keydown",a)}},[t.current]),o.createElement(o.Fragment,null)},v=[.5,.75,1,1.25,1.5,2,3,4],b={left:0,top:8},E=function(e){var t=e.levels,n=void 0===t?v:t,a=e.scale,i=e.onZoom,c=o.useContext(r.LocalizationContext).l10n,l=o.useContext(r.ThemeContext).direction===r.TextDirection.RightToLeft,u=c&&c.zoom?c.zoom.zoomDocument:"Zoom document";return o.createElement(r.Popover,{ariaControlsSuffix:"zoom",ariaHasPopup:"menu",position:r.Position.BottomCenter,target:function(e){return o.createElement(r.MinimalButton,{ariaLabel:u,testId:"zoom__popover-target",onClick:function(){e()}},o.createElement("span",{className:"rpv-zoom__popover-target"},o.createElement("span",{"data-testid":"zoom__popover-target-scale",className:r.classNames({"rpv-zoom__popover-target-scale":!0,"rpv-zoom__popover-target-scale--ltr":!l,"rpv-zoom__popover-target-scale--rtl":l})},Math.round(100*a),"%"),o.createElement("span",{className:"rpv-zoom__popover-target-arrow"})))},content:function(e){return o.createElement(r.Menu,null,Object.keys(r.SpecialZoomLevel).map(function(t){return o.createElement(r.MenuItem,{key:t,onClick:function(){e(),i(t)}},function(e){switch(e){case r.SpecialZoomLevel.ActualSize:return c&&c.zoom?c.zoom.actualSize:"Actual size";case r.SpecialZoomLevel.PageFit:return c&&c.zoom?c.zoom.pageFit:"Page fit";case r.SpecialZoomLevel.PageWidth:return c&&c.zoom?c.zoom.pageWidth:"Page width"}}(t))}),o.createElement(r.MenuDivider,null),n.map(function(t){return o.createElement(r.MenuItem,{key:t,onClick:function(){e(),i(t)}},"".concat(Math.round(100*t),"%"))}))},offset:b,closeOnClickOutside:!0,closeOnEscape:!0})},y=function(e){var t=e.children,n=e.levels,r=e.store;return(t||function(e){return o.createElement(E,{levels:n,scale:e.scale,onZoom:e.onZoom})})({scale:l(r).scale,onZoom:function(e){var t=r.get("zoom");t&&t(e)}})},w={left:0,top:8},S=function(e){var t=e.enableShortcuts,n=e.onClick,i=o.useContext(r.LocalizationContext).l10n,c=i&&i.zoom?i.zoom.zoomIn:"Zoom in",l=t?r.isMac()?"Meta+=":"Ctrl+=":"";
1return o.createElement(r.Tooltip,{ariaControlsSuffix:"zoom-in",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaKeyShortcuts:l,ariaLabel:c,testId:"zoom__in-button",onClick:n},o.createElement(a,null)),content:function(){return c},offset:w})},_=function(e){var t=e.children,n=e.enableShortcuts,r=e.store,o=l(r).scale;return(t||S)({enableShortcuts:n,onClick:function(){var e=r.get("zoom");e&&e(m(o))}})},k=function(e){var t=e.onClick,n=o.useContext(r.LocalizationContext).l10n,i=n&&n.zoom?n.zoom.zoomIn:"Zoom in";return o.createElement(r.MenuItem,{icon:o.createElement(a,null),testId:"zoom__in-menu",onClick:t},i)},C={left:0,top:8},P=function(e){var t=e.enableShortcuts,n=e.onClick,a=o.useContext(r.LocalizationContext).l10n,c=a&&a.zoom?a.zoom.zoomOut:"Zoom out",l=t?r.isMac()?"Meta+-":"Ctrl+-":"";return o.createElement(r.Tooltip,{ariaControlsSuffix:"zoom-out",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaKeyShortcuts:l,ariaLabel:c,testId:"zoom__out-button",onClick:n},o.createElement(i,null)),content:function(){return c},offset:C})},x=function(e){var t=e.children,n=e.enableShortcuts,r=e.store,o=l(r).scale;return(t||P)({enableShortcuts:n,onClick:function(){var e=r.get("zoom");e&&e(h(o))}})},M=function(e){var t=e.onClick,n=o.useContext(r.LocalizationContext).l10n,a=n&&n.zoom?n.zoom.zoomOut:"Zoom out";return o.createElement(r.MenuItem,{icon:o.createElement(i,null),testId:"zoom__out-menu",onClick:t},a)};t.ZoomInIcon=a,t.ZoomOutIcon=i,t.zoomPlugin=function(e){var t=o.useMemo(function(){return Object.assign({},{enableShortcuts:!0},e)},[]),n=o.useMemo(function(){return r.createStore({})},[]),a=function(e){return o.createElement(_,c({enableShortcuts:t.enableShortcuts},e,{store:n}))},i=function(e){return o.createElement(x,c({enableShortcuts:t.enableShortcuts},e,{store:n}))},l=function(e){return o.createElement(y,c({},e,{store:n}))};return{renderViewer:function(e){var r=e.slot;if(!t.enableShortcuts)return r;var a={children:o.createElement(o.Fragment,null,o.createElement(g,{containerRef:e.containerRef,store:n}),o.createElement(f,{pagesContainerRef:e.pagesContainerRef,store:n}),r.children)};return c(c({},r),a)},install:function(e){n.update("zoom",e.zoom)},onViewerStateChange:function(e){return n.update("scale",e.scale),e},zoomTo:function(e){var t=n.get("zoom");t&&t(e)},CurrentScale:function(e){return o.createElement(u,c({},e,{store:n}))},ZoomIn:a,ZoomInButton:function(){return o.createElement(a,null,function(e){return o.createElement(S,c({},e))})},ZoomInMenuItem:function(e){return o.createElement(a,null,function(t){return o.createElement(k,{onClick:function(){t.onClick(),e.onClick()}})})},ZoomOut:i,ZoomOutButton:function(){return o.createElement(i,null,function(e){return o.createElement(P,c({},e))})},ZoomOutMenuItem:function(e){return o.createElement(i,null,function(t){return o.createElement(M,{onClick:function(){t.onClick(),e.onClick()}})})},Zoom:l,ZoomPopover:function(e){return o.createElement(l,null,function(t){return o.createElement(E,c({levels:null==e?void 0:e.levels},t))})}}}},65850:(e,t,n)=>{"use strict";e.exports=n(62891)},68692:(e,t,n)=>{"use strict";var r,o=n(99117),a=n(27788),i=n(76196),c=n(36005),l=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(i),u=function(){return l.createElement(a.Icon,{size:16},l.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"}))},s=function(){return(s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},d={left:0,top:8},f=function(e){var t=e.enableShortcuts,n=e.onClick,r=l.useContext(a.LocalizationContext).l10n,o=r&&r.print?r.print.print:"Print",i=t?a.isMac()?"Meta+P":"Ctrl+P":"";
1return l.createElement(a.Tooltip,{ariaControlsSuffix:"print",position:a.Position.BottomCenter,target:l.createElement(a.MinimalButton,{ariaKeyShortcuts:i,ariaLabel:o,testId:"print__button",onClick:n},l.createElement(u,null)),content:function(){return o},offset:d})};!function(e){e.CheckingPermission="CheckingPermission",e.Inactive="Inactive",e.Preparing="Preparing",e.Cancelled="Cancelled",e.Ready="Ready"}(r||(r={}));var p=function(e){var t=e.children,n=e.enableShortcuts,o=e.store;return(t||f)({enableShortcuts:n,onClick:function(){o.update("printStatus",r.CheckingPermission)}})},m=function(e){var t=e.doc,n=e.store,o=l.useContext(a.LocalizationContext).l10n,i=l.useState(!0),c=i[0],u=i[1];return l.useEffect(function(){t.getPermissions().then(function(e){null===e||e.includes(4)||e.includes(2048)?n.update("printStatus",r.Preparing):u(!1)})},[]),c?l.createElement(l.Fragment,null):l.createElement(a.Modal,{ariaControlsSuffix:"print-permission",closeOnClickOutside:!1,closeOnEscape:!1,content:function(e){return l.createElement(l.Fragment,null,l.createElement("div",{className:"rpv-print__permission-body"},o&&o.print?o.print.disallowPrint:"The document does not allow to print"),l.createElement("div",{className:"rpv-print__permission-footer"},l.createElement(a.Button,{onClick:function(){e(),n.update("printStatus",r.Cancelled)}},o&&o.print?o.print.close:"Close")))},isOpened:!0})},h=function(e){var t=e.numLoadedPages,n=e.numPages,r=e.onCancel,o=l.useContext(a.LocalizationContext).l10n,i=l.useContext(a.ThemeContext).direction===a.TextDirection.RightToLeft,c=Math.floor(100*t/n);return l.createElement("div",{className:"rpv-print__progress"},l.createElement("div",{className:a.classNames({"rpv-print__progress-body":!0,"rpv-print__progress-body--rtl":i})},l.createElement("div",{className:"rpv-print__progress-message"},o&&o.print?o.print.preparingDocument:"Preparing document ..."),l.createElement("div",{className:"rpv-print__progress-bar"},l.createElement(a.ProgressBar,{progress:c})),l.createElement(a.Button,{onClick:r},o&&o.print?o.print.cancel:"Cancel")))},g=function(e){var t=e.canvas,n=e.page,r=e.pageHeight,i=e.pageIndex,c=e.pageWidth,u=e.rotation,s=e.onLoad,d=a.useIsMounted(),f=l.useRef(),p=l.useState(""),m=p[0],h=p[1],g=l.useMemo(function(){return void 0!==o&&void 0!==o.env.JEST_WORKER_ID},[]);return l.useEffect(function(){var e=f.current;e&&e.cancel();var o=150/72;t.height=Math.floor(150/72*r),t.width=Math.floor(c*o);var a=t.getContext("2d");a.save(),a.fillStyle="rgb(255, 255, 255)",a.fillRect(0,0,t.width,t.height),a.restore();var i=n.getViewport({rotation:u,scale:1});f.current=n.render({canvasContext:a,intent:"print",transform:[o,0,0,o,0,0],viewport:i}),f.current.promise.then(function(){"toBlob"in t&&"createObjectURL"in URL?t.toBlob(function(e){d.current&&h(URL.createObjectURL(e)),g&&s()}):(d.current&&h(t.toDataURL()),g&&s())},function(){})},[]),m&&l.createElement("div",{className:"rpv-print__page"},l.createElement("img",{"data-testid":"print__thumbnail-".concat(i),src:m,onLoad:function(){g||s()}}))},v=function(e){var t=e.canvas,n=e.doc,r=e.pageIndex,o=e.pageRotation,i=e.pageSize,c=e.rotation,u=e.shouldRender,s=e.onLoad,d=a.useIsMounted(),f=l.useState(null),p=f[0],m=f[1],h=Math.abs(c+o)%180==0;l.useEffect(function(){u&&a.getPage(n,r).then(function(e){d.current&&m(e)})},[u]);var v=(i.rotation+c+o)%360;return p&&l.createElement(g,{canvas:t,page:p,pageHeight:h?i.pageHeight:i.pageWidth,pageIndex:r,pageWidth:h?i.pageWidth:i.pageHeight,rotation:v,onLoad:s})},b=function(e){var t=e.doc,n=e.numLoadedPages,o=e.pagesRotation,a=e.pageSizes,i=e.printPages,u=e.printStatus,s=e.rotation,d=e.onCancel,f=e.onLoad,p=l.useMemo(function(){return document.createElement("canvas")},[]),m=l.useMemo(function(){var e=document.querySelector(".rpv-print__zone");if(e)return e;var t=document.createElement("div");return t.classList.add("rpv-print__zone"),t.setAttribute("data-testid","print__zone"),document.body.appendChild(t),t},[]);l.useEffect(function(){u===r.Ready&&(document.documentElement.classList.add("rpv-print__html-printing"),document.body.classList.add("rpv-print__body-printing"),window.print());var e=function(){if(u===r.Ready){document.documentElement.classList.remove("rpv-print__html-printing"),document.body.classList.remove("rpv-print__body-printing");var t=document.querySelectorAll(".rpv-print__zone");t&&t.forEach(function(e){e.parentElement.removeChild(e)}),p.height=0,p.width=0,document.removeEventListener("mousemove",e),d()}};return document.addEventListener("mousemove",e),function(){return document.removeEventListener("mousemove",e)}},[u]);var h=a[0].pageHeight,g=a[0].pageWidth;return c.createPortal(l.createElement(l.Fragment,null,i.map(function(e,r){return l.createElement(v,{key:e,canvas:p,doc:t,pageIndex:e,pageRotation:o.has(e)?o.get(e):0,pageSize:a[e],rotation:s,shouldRender:r===n,onLoad:f})}),l.createElement("style",{dangerouslySetInnerHTML:{__html:"@page { size: ".concat(g,"pt ").concat(h,"pt }")}})),m)},E=function(e){var t=e.doc,n=e.pagesRotation,o=e.pageSizes,a=e.renderProgressBar,i=e.rotation,c=e.setPages,u=e.store,s=l.useState(r.Inactive),d=s[0],f=s[1],p=l.useState(0),g=p[0],v=p[1],E=l.useMemo(function(){var e=t.numPages;return c(t).filter(function(t){return t>=0&&t<e})},[t,c]),y=E.length,w=function(){v(0),f(r.Inactive)}
1,S=function(e){return f(e)};return l.useEffect(function(){return u.subscribe("printStatus",S),function(){u.unsubscribe("printStatus",S)}},[]),l.createElement(l.Fragment,null,d===r.CheckingPermission&&l.createElement(m,{doc:t,store:u}),d===r.Preparing&&(a?a(g,y,w):l.createElement(h,{numLoadedPages:g,numPages:y,onCancel:w})),(d===r.Preparing||d===r.Ready)&&g<=y&&l.createElement(b,{doc:t,numLoadedPages:g,pagesRotation:n,pageSizes:o,printPages:E,printStatus:d,rotation:i,onCancel:w,onLoad:function(){var e=g+1;e<=y&&(v(e),e===y&&f(r.Ready))}}))},y=function(e){var t=e.onClick,n=l.useContext(a.LocalizationContext).l10n,r=n&&n.print?n.print.print:"Print";return l.createElement(a.MenuItem,{icon:l.createElement(u,null),testId:"print__menu",onClick:t},r)},w=function(e){var t=e.containerRef,n=e.store,o=function(e){if(!e.shiftKey&&!e.altKey&&"p"===e.key&&(a.isMac()?e.metaKey:e.ctrlKey)){var o=t.current;o&&document.activeElement&&o.contains(document.activeElement)&&(e.preventDefault(),n.update("printStatus",r.Preparing))}};return l.useEffect(function(){if(t.current)return document.addEventListener("keydown",o),function(){document.removeEventListener("keydown",o)}},[t.current]),l.createElement(l.Fragment,null)};t.PrintIcon=u,t.getAllPagesNumbers=function(e){return Array(e.numPages).fill(0).map(function(e,t){return t})},t.getCustomPagesNumbers=function(e){return function(t){var n=[];return e.replace(/\s+/g,"").split(",").forEach(function(e){var t,r=e.split("-").map(function(e){return parseInt(e,10)}).filter(function(e){return Number.isInteger(e)});1===r.length?n.push(r[0]-1):2===r.length&&n.push.apply(n,(t=r[0]-1,Array(r[1]-1-t+1).fill(0).map(function(e,n){return t+n})))}),n.filter(function(e){return n.indexOf(e)===n.lastIndexOf(e)}).filter(function(e){return e>=0&&e<t.numPages})}},t.getEvenPagesNumbers=function(e){return Array(e.numPages).fill(0).map(function(e,t){return t}).filter(function(e){return(e+1)%2==0})},t.getOddPagesNumbers=function(e){return Array(e.numPages).fill(0).map(function(e,t){return t}).filter(function(e){return(e+1)%2==1})},t.printPlugin=function(e){var t=l.useMemo(function(){return Object.assign({},{enableShortcuts:!0,setPages:function(e){return Array(e.numPages).fill(0).map(function(e,t){return t})}},e)},[]),n=l.useMemo(function(){return a.createStore({printStatus:r.Inactive})},[]),o=function(e){return l.createElement(p,s({enableShortcuts:t.enableShortcuts},e,{store:n}))};return{print:function(){n.update("printStatus",r.CheckingPermission)},renderViewer:function(r){var o=r.slot,a={children:l.createElement(l.Fragment,null,t.enableShortcuts&&l.createElement(w,{containerRef:r.containerRef,store:n}),l.createElement(E,{doc:r.doc,pagesRotation:r.pagesRotation,pageSizes:r.pageSizes,renderProgressBar:null==e?void 0:e.renderProgressBar,rotation:r.rotation,setPages:t.setPages,store:n}),o.children)};return s(s({},o),a)},Print:o,PrintButton:function(){return l.createElement(o,null,function(e){return l.createElement(f,s({},e))})},PrintMenuItem:function(e){return l.createElement(o,null,function(t){return l.createElement(y,{onClick:function(){t.onClick(),e.onClick()}})})},setPages:function(e){t.setPages=e}}}},69716:(e,t,n)=>{"use strict";e.exports=n(60308)},73821:(e,t,n)=>{"use strict";var r=n(27788),o=n(76196),a=n(69716),i=n(57234),c=n(31628),l=n(94759),u=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(o),s=function(){return u.createElement(r.Icon,{size:16},u.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"}))},d=function(){return(d=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},f=function(){return u.createElement(r.Icon,{size:16},u.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"}))},p=function(){return u.createElement(r.Icon,{size:16},u.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,
10.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"}))},m={left:8,top:0},h={left:-8,top:0},g=function(e){var t=e.attachmentTabContent,n=e.bookmarkTabContent,o=e.store,a=e.thumbnailTabContent,i=e.tabs,c=u.useRef(),l=u.useContext(r.LocalizationContext).l10n,d=u.useState(o.get("isCurrentTabOpened")||!1),g=d[0],v=d[1],b=u.useState(Math.max(o.get("currentTab")||0,0)),E=b[0],y=b[1],w=u.useContext(r.ThemeContext).direction===r.TextDirection.RightToLeft,S=[{content:a,icon:u.createElement(p,null),title:l&&l.defaultLayout?l.defaultLayout.thumbnail:"Thumbnail"},{content:n,icon:u.createElement(s,null),title:l&&l.defaultLayout?l.defaultLayout.bookmark:"Bookmark"},{content:t,icon:u.createElement(f,null),title:l&&l.defaultLayout?l.defaultLayout.attachment:"Attachment"}],_=i?i(S):S,k=function(e){e>=0&&e<=_.length-1&&(o.update("isCurrentTabOpened",!0),y(e))},C=function(e){v(e)};return u.useEffect(function(){return o.subscribe("currentTab",k),o.subscribe("isCurrentTabOpened",C),function(){o.unsubscribe("currentTab",k),o.unsubscribe("isCurrentTabOpened",C)}},[]),0===_.length?u.createElement(u.Fragment,null):u.createElement(u.Fragment,null,u.createElement("div",{"data-testid":"default-layout__sidebar",className:r.classNames({"rpv-default-layout__sidebar":!0,"rpv-default-layout__sidebar--opened":g,"rpv-default-layout__sidebar--ltr":!w,"rpv-default-layout__sidebar--rtl":w}),ref:c},u.createElement("div",{className:"rpv-default-layout__sidebar-tabs"},u.createElement("div",{className:"rpv-default-layout__sidebar-headers",role:"tablist","aria-orientation":"vertical"},_.map(function(e,t){return u.createElement("div",{"aria-controls":"rpv-default-layout__sidebar-content","aria-selected":E===t,key:t,className:"rpv-default-layout__sidebar-header",id:"rpv-default-layout__sidebar-tab-".concat(t),role:"tab"},u.createElement(r.Tooltip,{ariaControlsSuffix:"default-layout-sidebar-tab-".concat(t),position:w?r.Position.LeftCenter:r.Position.RightCenter,target:u.createElement(r.MinimalButton,{ariaLabel:e.title,isSelected:E===t,onClick:function(){if(E===t){o.update("isCurrentTabOpened",!o.get("isCurrentTabOpened"));var e=c.current;e&&e.style.width&&e.style.removeProperty("width")}else o.update("currentTab",t)}},e.icon),content:function(){return e.title},offset:w?h:m}))})),u.createElement("div",{"aria-labelledby":"rpv-default-layout__sidebar-tab-".concat(E),id:"rpv-default-layout__sidebar-content",className:r.classNames({"rpv-default-layout__sidebar-content":!0,"rpv-default-layout__sidebar-content--opened":g,"rpv-default-layout__sidebar-content--ltr":!w,"rpv-default-layout__sidebar-content--rtl":w}),role:"tabpanel",tabIndex:-1},_[E].content))),g&&u.createElement(r.Splitter,{constrain:function(e){return e.firstHalfPercentage>=20&&e.firstHalfPercentage<=80}}))};t.defaultLayoutPlugin=function(e){var t=u.useMemo(function(){return r.createStore({isCurrentTabOpened:!1,currentTab:0})},[]),n=a.attachmentPlugin(),o=i.bookmarkPlugin(),s=c.thumbnailPlugin(e?e.thumbnailPlugin:{}),f=l.toolbarPlugin(e?e.toolbarPlugin:{}),p=n.Attachments,m=o.Bookmarks,h=s.Thumbnails,v=f.Toolbar,b=e?e.sidebarTabs:function(e){return e},E=[n,o,s,f];return{attachmentPluginInstance:n,bookmarkPluginInstance:o,thumbnailPluginInstance:s,toolbarPluginInstance:f,activateTab:function(e){t.update("currentTab",e)},toggleTab:function(e){var n=t.get("currentTab");t.update("isCurrentTabOpened",!t.get("isCurrentTabOpened")),n!==e&&t.update("currentTab",e)},install:function(e){E.forEach(function(t){t.install&&t.install(e)})},renderPageLayer:function(e){return u.createElement(u.Fragment,null,E.map(function(t,n){return t.renderPageLayer?u.createElement(u.Fragment,{key:n},t.renderPageLayer(e)):u.createElement(u.Fragment,{key:n},u.createElement(u.Fragment,null))}))},renderViewer:function(n){var o=n.slot;E.forEach(function(e){e.renderViewer&&(o=e.renderViewer(d(d({},n),{slot:o})))});var a=o.subSlot&&o.subSlot.attrs?{className:o.subSlot.attrs.className,"data-testid":o.subSlot.attrs["data-testid"],ref:o.subSlot.attrs.ref,style:o.subSlot.attrs.style}:{};return o.children=u.createElement("div",{className:"rpv-default-layout__container"},u.createElement("div",{"data-testid":"default-layout__main",className:r.classNames({"rpv-default-layout__main":!0,"rpv-default-layout__main--rtl":n.themeContext.direction===r.TextDirection.RightToLeft})},u.createElement(g,{attachmentTabContent:u.createElement(p,null),bookmarkTabContent:u.createElement(m,null),store:t,thumbnailTabContent:u.createElement(h,null),tabs:b}),u.createElement("div",{className:"rpv-default-layout__body","data-testid":"default-layout__body"},u.createElement("div",{className:"rpv-default-layout__toolbar"},e&&e.renderToolbar?e.renderToolbar(v):u.createElement(v,null)),u.createElement("div",d({},a),o.subSlot.children))),o.children),o.subSlot.attrs={},o.subSlot.children=u.createElement(u.Fragment,null),o}
1,uninstall:function(e){E.forEach(function(t){t.uninstall&&t.uninstall(e)})},onDocumentLoad:function(n){E.forEach(function(e){e.onDocumentLoad&&e.onDocumentLoad(n)}),e&&e.setInitialTab&&e.setInitialTab(n.doc).then(function(e){t.update("currentTab",e),t.update("isCurrentTabOpened",!0)})},onAnnotationLayerRender:function(e){E.forEach(function(t){t.onAnnotationLayerRender&&t.onAnnotationLayerRender(e)})},onTextLayerRender:function(e){E.forEach(function(t){t.onTextLayerRender&&t.onTextLayerRender(e)})},onViewerStateChange:function(e){var t=e;return E.forEach(function(e){e.onViewerStateChange&&(t=e.onViewerStateChange(t))}),t}}}},80510:(e,t,n)=>{"use strict";var r=n(27788),o=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(n(76196)),a=function(){return o.createElement(r.Icon,{ignoreDirection:!0,size:16},o.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"}))},i=function(){return o.createElement(r.Icon,{ignoreDirection:!0,size:16},o.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(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},l={left:0,top:8},u=function(e){var t=e.direction,n=e.onClick,c=o.useContext(r.LocalizationContext).l10n,u=c&&c.rotate?c.rotate.rotateBackward:"Rotate counterclockwise",s=c&&c.rotate?c.rotate.rotateForward:"Rotate clockwise",d=t===r.RotateDirection.Backward?u:s,f=t===r.RotateDirection.Backward?o.createElement(a,null):o.createElement(i,null);return o.createElement(r.Tooltip,{ariaControlsSuffix:"rotate",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaLabel:d,testId:t===r.RotateDirection.Backward?"rotate__backward-button":"rotate__forward-button",onClick:n},f),content:function(){return d},offset:l})},s=function(e){var t=e.children,n=e.direction,r=e.store;return(t||function(e){return o.createElement(u,{direction:e.direction,onClick:e.onClick})})({direction:n,onClick:function(){var e=r.get("rotate");e&&e(n)}})},d=function(e){var t=e.direction,n=e.onClick,c=o.useContext(r.LocalizationContext).l10n,l=c&&c.rotate?c.rotate.rotateBackward:"Rotate counterclockwise",u=c&&c.rotate?c.rotate.rotateForward:"Rotate clockwise",s=t===r.RotateDirection.Backward?l:u,d=t===r.RotateDirection.Backward?o.createElement(a,null):o.createElement(i,null);return o.createElement(r.MenuItem,{icon:d,testId:t===r.RotateDirection.Backward?"rotate__backward-menu":"rotate__forward-menu",onClick:n},s)},f=function(e){var t=e.children,n=e.store;return t({onRotatePage:function(e,t){var r=n.get("rotatePage");r&&r(e,t)}})};t.RotateBackwardIcon=a,t.RotateForwardIcon=i,t.rotatePlugin=function(){var e=o.useMemo(function(){return r.createStore()},[]),t=function(t){return o.createElement(s,c({},t,{store:e}))};return{install:function(t){e.update("rotate",t.rotate),e.update("rotatePage",t.rotatePage)},Rotate:t,RotateBackwardButton:function(){return o.createElement(t,{direction:r.RotateDirection.Backward},function(e){return o.createElement(u,c({},e))})},RotateBackwardMenuItem:function(e){return o.createElement(t,{direction:r.RotateDirection.Backward},function(t){return o.createElement(d,{direction:t.direction,onClick:function(){t.onClick(),e.onClick()}})})},RotateForwardButton:function(){return o.createElement(t,{direction:r.RotateDirection.Forward},function(e){return o.createElement(u,c({},e))})},RotateForwardMenuItem:function(e){return o.createElement(t,{direction:r.RotateDirection.Forward},function(t){return o.createElement(d,{direction:t.direction,onClick:function(){t.onClick(),e.onClick()}})})},RotatePage:function(t){return o.createElement(f,c({},t,{store:e}))}}}},84568:(e,t,n)=>{"use strict";e.exports=n(26236)},85841:e=>{!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,a=l(e),i=a[0],c=a[1],u=new o((i+c)*3/4-c),s=0,d=c>0?i-4:i;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[s++]=t>>16&255,u[s++]=t>>8&255,u[s++]=255&t;return 2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[s++]=255&t),1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[s++]=t>>8&255,u[s++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,a=[],i=0,c=r-o;i<c;i+=16383)a.push(function(e,t,r){for(var o,a=[],i=t;i<r;i+=3)o=(e[i]<<16&0xff0000)+(e[i+1]<<8&65280)+(255&e[i+2]),a.push(n[o>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}(e,i,i+16383>c?c:i+16383));return 1===o?a.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&a.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),a.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",i=0,c=a.length;i<c;++i)n[i]=a[i],r[a.charCodeAt(i)]=i;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r[45]=62,r[95]=63},72:function(e,t,n){"use strict";var r=n(675),o=n(783),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function i(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return s(e)}return l(e,t,n)}function l(e,t,n){if("string"==typeof e){var r=e,o=t;if(("string"!=typeof o||""===o)&&(o="utf8"),!c.isEncoding(o))throw TypeError("Unknown encoding: "+o);var a=0|p(r,o),l=i(a),u=l.write(r,o);return u!==a&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(R(e,ArrayBuffer)||e&&R(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(R(e,SharedArrayBuffer)||e&&R(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),c.prototype),r}(e,t,n);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var s=e.valueOf&&e.valueOf();if(null!=s&&s!==e)return c.from(s,t,n);var m=function(e){if(c.isBuffer(e)){var t=0|f(e.length),n=i(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?i(0):d(e):"Buffer"===e.type&&Array.isArray(e.data)?d(e.data):void 0}(e);if(m)return m;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function s(e){return u(e),i(e<0?0:0|f(e))}function d(e){for(var t=e.length<0?0:0|f(e.length),n=i(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,c.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.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(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return(u(e),e<=0)?i(e):void 0!==t?"string"==typeof n?i(e).fill(t,n):i(e).fill(t):i(e)},c.allocUnsafe=function(e){return s(e)},c.allocUnsafeSlow=function(e){return s(e)};function f(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||R(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return x(e).length;default:if(o)return r?-1:C(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,n){var o,a,i,c=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",a=t;a<n;++a)o+=T[e[a]];return o}(this,t,n);case"utf8":case"utf-8":return b(this,t,n);case"ascii":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}(this,t,n);case"latin1":case"binary":return function(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}(this,t,n);case"base64":return o=this,a=t,i=n,0===a&&i===o.length?r.fromByteArray(o):r.fromByteArray(o.slice(a,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,n){for(var r=e.slice(t,n),o="",a=0;a<r.length;a+=2)o+=String.fromCharCode(r[a]+256*r[a+1]);return o}(this,t,n);default:if(c)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),c=!0}}function h(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,o){var a;if(0===e.length)return -1;if("string"==typeof n?(r=n,n=0):n>0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(a=n*=1)!=a&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(o)return -1;else n=e.length-1;else if(n<0)if(!o)return -1;else n=0;if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(
vendor: 12,881 bytes, line 1
1o)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return v(e,[t],n,r,o)}throw TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var a,i=1,c=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;i=2,c/=2,l/=2,n/=2}function u(e,t){return 1===i?e[t]:e.readUInt16BE(t*i)}if(o){var s=-1;for(a=n;a<c;a++)if(u(e,a)===u(t,-1===s?0:a-s)){if(-1===s&&(s=a),a-s+1===l)return s*i}else -1!==s&&(a-=a-s),s=-1}else for(n+l>c&&(n=c-l),a=n;a>=0;a--){for(var d=!0,f=0;f<l;f++)if(u(e,a+f)!==u(t,f)){d=!1;break}if(d)return a}return -1}c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(R(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),R(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,o=0,a=Math.min(n,r);o<a;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:+(r<n)},c.isEncoding=function(e){switch(String(e).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}},c.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);if(void 0===t)for(n=0,t=0;n<e.length;++n)t+=e[n].length;var n,r=c.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(R(a,Uint8Array)&&(a=c.from(a)),!c.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},c.byteLength=p,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},c.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?b(this,0,e):m.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,o){if(R(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var a=o-r,i=n-t,l=Math.min(a,i),u=this.slice(r,o),s=e.slice(t,n),d=0;d<l;++d)if(u[d]!==s[d]){a=u[d],i=s[d];break}return a<i?-1:+(i<a)},c.prototype.includes=function(e,t,n){return -1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)};function b(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var a,i,c,l,u=e[o],s=null,d=u>239?4:u>223?3:u>191?2:1;if(o+d<=n)switch(d){case 1:u<128&&(s=u);break;case 2:(192&(a=e[o+1]))==128&&(l=(31&u)<<6|63&a)>127&&(s=l);break;case 3:a=e[o+1],i=e[o+2],(192&a)==128&&(192&i)==128&&(l=(15&u)<<12|(63&a)<<6|63&i)>2047&&(l<55296||l>57343)&&(s=l);break;case 4:a=e[o+1],i=e[o+2],c=e[o+3],(192&a)==128&&(192&i)==128&&(192&c)==128&&(l=(15&u)<<18|(63&a)<<12|(63&i)<<6|63&c)>65535&&l<1114112&&(s=l)}null===s?(s=65533,d=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),o+=d}var f=r,p=f.length;if(p<=4096)return String.fromCharCode.apply(String,f);for(var m="",h=0;h<p;)m+=String.fromCharCode.apply(String,f.slice(h,h+=4096));return m}function E(e,t,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>n)throw RangeError("Trying to access beyond buffer length")}function y(e,t,n,r,o,a){if(!c.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<a)throw RangeError('"value" argument is out of bounds');if(n+r>e.length)throw RangeError("Index out of range")}function w(e,t,n,r,o,a){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function S(e,t,n,r,a){return t*=1,n>>>=0,a||w(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function _(e,t,n,r,a){return t*=1,n>>>=0,a||w(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,a,i,c,l,u,s,d,f=this.length-t;if((void 0===n||n>f)&&(n=f),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var p=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var a=t.length;r>a/2&&(r=a/2);for(var i=0;i<r;++i){var c,l=parseInt(t.substr(2*i,2),16);if((c=l)!=c)break;e[n+i]=l}return i}(this,e,t,n);case"utf8":case"utf-8":return o=t,a=n,M(C(e,this.length-o),this,o,a);case"ascii":return i=t,c=n,M(P(e),this,i,c);case"latin1":case"binary":return function(e,t,n,r){return M(P(t),e,n,r)}(this,e,t,n);case"base64":return l=t,u=n,M(x(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s=t,d=n,M(function(e,t){for(var n,r,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o.push(n%256),o.push(r);return o}(e,this.length-s),this,s,d);default:if(p)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),p=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);for(var r=this[e],o=1,a=0;++a<t&&(o*=256);)r+=this[e+a]*o;return r},c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return e>>>=0,t||E(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||E(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);for(var r=this[e],o=1,a=0;++a<t&&(o*=256);)r+=this[e+a]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||E(e,t,this.length);for(var r=t,o=1,a=this[e+--r];r>0&&(o*=256);)a+=this[e+--r]*o;return a>=(o*=128)&&(a-=Math.pow(2,8*t)),a},c.prototype.readInt8=function(e,t){return(e>>>=0,t||E(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||E(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||E(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||E(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||E(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||E(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||E(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;y(this,e,t,n,o,0)}var a=1,i=0;for(this[t]=255&e;++i<n&&(a*=256);)this[t+i]=e/a&255;return t+n},c.prototype.writeUIntBE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;y(this,e,t,n,o,0)}var a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e*=1,t>>>=0,n||y(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e*=1,t>>>=0,n||y(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,n){return e*=1,t>>>=0,n||y(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,n){return e*=1,t>>>=0,n||y(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,n){return e*=1,t>>>=0,n||y(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var o=Math.pow(2,8*n-1);y(this,e,t,n,o-1,-o)}var a=0,i=1,c=0;for(this[t]=255&e;++a<n&&(i*=256);)e<0&&0===c&&0!==this[t+a-1]&&(c=1),this[t+a]=(e/i|0)-c&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var o=Math.pow(2,8*n-1);y(this,e,t,n,o-1,-o)}var a=n-1,i=1,c=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===c&&0!==this[t+a+1]&&(c=1),this[t+a]=(e/i|0)-c&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e*=1,t>>>=0,n||y(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e*=1,t>>>=0,n||y(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e*=1,t>>>=0,n||y(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e*=1,t>>>=0,n||y(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e*=1,t>>>=0,n||y(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,n){return S(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return S(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return _(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return _(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o=r-n;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,n,r);else if(this===e&&n<t&&t<r)for(var a=o-1;a>=0;--a)e[a+t]=this[a+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var o,a=e.charCodeAt(0);("utf8"===r&&a<128||"latin1"===r)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError("Out of range index");if(n<=t)return this;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var i=c.isBuffer(e)?e:c.from(e,r),l=i.length;
1if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%l]}return this};var k=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var n,r=e.length,o=null,a=[],i=0;i<r;++i){if((n=e.charCodeAt(i))>55295&&n<57344){if(!o){if(n>56319||i+1===r){(t-=3)>-1&&a.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&a.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return a}function P(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}function x(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(k,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function M(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length)&&!(o>=e.length);++o)t[o+n]=e[o];return o}function R(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var T=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)t[r+o]=e[n]+e[o];return t}()},783:function(e,t){t.read=function(e,t,n,r,o){var a,i,c=8*o-r-1,l=(1<<c)-1,u=l>>1,s=-7,d=n?o-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-s)-1,p>>=-s,s+=c;s>0;a=256*a+e[t+d],d+=f,s-=8);for(i=a&(1<<-s)-1,a>>=-s,s+=r;s>0;i=256*i+e[t+d],d+=f,s-=8);if(0===a)a=1-u;else{if(a===l)return i?NaN:1/0*(p?-1:1);i+=Math.pow(2,r),a-=u}return(p?-1:1)*i*Math.pow(2,a-r)},t.write=function(e,t,n,r,o,a){var i,c,l,u=8*a-o-1,s=(1<<u)-1,d=s>>1,f=5960464477539062e-23*(23===o),p=r?0:a-1,m=r?1:-1,h=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(c=+!!isNaN(t),i=s):(i=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-i))<1&&(i--,l*=2),i+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(i++,l/=2),i+d>=s?(c=0,i=s):i+d>=1?(c=(t*l-1)*Math.pow(2,o),i+=d):(c=t*Math.pow(2,d-1)*Math.pow(2,o),i=0));o>=8;e[n+p]=255&c,p+=m,c/=256,o-=8);for(i=i<<o|c,u+=o;u>0;e[n+p]=255&i,p+=m,i/=256,u-=8);e[n+p-m]|=128*h}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={exports:{}},i=!0;try{t[e](a,a.exports,r),i=!1}finally{i&&delete n[e]}return a.exports}r.ab="//",e.exports=r(72)}()},87810:(e,t,n)=>{"use strict";e.exports=n(73821)},89720:(e,t,n)=>{"use strict";var r=n(27788),o=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(n(76196)),a=function(){return o.createElement(r.Icon,{size:16},o.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"}))},i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},c=function(e){var t=e.doc,n=e.render,a=o.useState(),i=a[0],c=a[1];return o.useEffect(function(){t.getMetadata().then(function(e){return Promise.resolve(e)}).then(function(e){return t.getDownloadInfo().then(function(t){return Promise.resolve({fileName:e.contentDispositionFilename||"",info:e.info,length:t.length})})}).then(function(e){c(e)})},[]),i?n(i):o.createElement("div",{className:"rpv-properties__loader"},o.createElement(r.Spinner,null))},l=function(e){var t=e.label,n=e.value,a=o.useContext(r.ThemeContext).direction===r.TextDirection.RightToLeft;return o.createElement("dl",{className:r.classNames({"rpv-properties__item":!0,"rpv-properties__item--rtl":a})},o.createElement("dt",{className:"rpv-properties__item-label"},t,":"),o.createElement("dd",{className:"rpv-properties__item-value"},n||"-"))},u=RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"),s=function(e,t,n,r){var o=parseInt(e,10);return o>=t&&o<=n?o:r},d=function(e){var t=e.doc,n=e.fileName,a=e.onToggle,i=o.useContext(r.LocalizationContext).l10n,d=function(e){var t=function(e){var t=u.exec(e);if(!t)return null;var n=parseInt(t[1],10),r=s(t[2],1,12,1)-1,o=s(t[3],1,31,1),a=s(t[4],0,23,0),i=s(t[5],0,59,0),c=s(t[6],0,59,0),l=t[7]||"Z",d=s(t[8],0,23,0),f=s(t[9],0,59,0);switch(l){case"-":a+=d,i+=f;break;case"+":a-=d,i-=f}return new Date(Date.UTC(n,r,o,a,i,c))}(e);return t?"".concat(t.toLocaleDateString(),", ").concat(t.toLocaleTimeString()):""};return o.createElement("div",{className:"rpv-properties__modal"},o.createElement(c,{doc:t,render:function(e){var a,c,u;return o.createElement(o.Fragment,null,o.createElement("div",{className:"rpv-properties__modal-section"},o.createElement(l,{label:i&&i.properties?i.properties.fileName:"File name",value:e.fileName||((u=n.split("/").pop())?u.split("#")[0].split("?")[0]:n)}),o.createElement(l,{label:i&&i.properties?i.properties.fileSize:"File size",value:(c=Math.floor(Math.log(a=e.length)/Math.log(1024)),"".concat((a/Math.pow(1024,c)).toFixed(2)," ").concat(["B","kB","MB","GB","TB"][c]))})),o.createElement(r.Separator,null),o.createElement("div",{className:"rpv-properties__modal-section"},o.createElement(l,{label:i&&i.properties?i.properties.title:"Title",value:e.info.Title}),o.createElement(l,{label:i&&i.properties?i.properties.author:"Author",value:e.info.Author}),o.createElement(l,{label:i&&i.properties?i.properties.subject:"Subject",value:e.info.Subject}),o.createElement(l,{label:i&&i.properties?i.properties.keywords:"Keywords",value:e.info.Keywords}),o.createElement(l,{label:i&&i.properties?i.properties.creator:"Creator",value:e.info.Creator}),o.createElement(l,{label:i&&i.properties?i.properties.creationDate:"Creation date",value:d(e.info.CreationDate)}),o.createElement(l,{label:i&&i.properties?i.properties.modificationDate:"Modification date",value:d(e.info.ModDate)})),o.createElement(r.Separator,null),o.createElement("div",{className:"rpv-properties__modal-section"},o.createElement(l,{label:i&&i.properties?i.properties.pdfProducer:"PDF producer",value:e.info.Producer}),o.createElement(l,{label:i&&i.properties?i.properties.pdfVersion:"PDF version",value:e.info.PDFFormatVersion}),o.createElement(l,{label:i&&i.properties?i.properties.pageCount:"Page count",value:"".concat(t.numPages)})))}}),o.createElement("div",{className:"rpv-properties__modal-footer"},o.createElement(r.Button,{onClick:a},i&&i.properties?i.properties.close:"Close")))},f={left:0,top:8},p=function(e){var t=e.onClick,n=o.useContext(r.LocalizationContext).l10n,i=n&&n.properties?n.properties.showProperties:"Show properties";
1return o.createElement(r.Tooltip,{ariaControlsSuffix:"properties",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaLabel:i,testId:"properties__button",onClick:t},o.createElement(a,null)),content:function(){return i},offset:f})},m=function(e){var t,n,a,c,l=e.children,u=e.store,s=(n=(t=o.useState(u.get("doc")))[0],a=t[1],c=function(e){a(e)},o.useEffect(function(){return u.subscribe("doc",c),function(){u.unsubscribe("doc",c)}},[]),{currentDoc:n}).currentDoc,f=u.get("fileName")||"",m=l||function(e){return o.createElement(p,i({},e))};return s?o.createElement(r.Modal,{ariaControlsSuffix:"properties",target:function(e){return m({onClick:e})},content:function(e){return o.createElement(d,{doc:s,fileName:f,onToggle:e})},closeOnClickOutside:!0,closeOnEscape:!0}):o.createElement(o.Fragment,null)},h=function(e){var t=e.onClick,n=o.useContext(r.LocalizationContext).l10n,i=n&&n.properties?n.properties.showProperties:"Show properties";return o.createElement(r.MenuItem,{icon:o.createElement(a,null),testId:"properties__menu",onClick:t},i)};t.InfoIcon=a,t.propertiesPlugin=function(){var e=o.useMemo(function(){return r.createStore({fileName:""})},[]),t=function(t){return o.createElement(m,i({},t,{store:e}))};return{onDocumentLoad:function(t){e.update("doc",t.doc)},onViewerStateChange:function(t){return e.update("fileName",t.file.name),t},ShowProperties:t,ShowPropertiesButton:function(){return o.createElement(m,{store:e})},ShowPropertiesMenuItem:function(e){return o.createElement(t,null,function(e){return o.createElement(h,i({},e))})}}}},89740:(e,t,n)=>{"use strict";e.exports=n(13466)},90396:(e,t,n)=>{"use strict";e.exports=n(30644)},94759:(e,t,n)=>{"use strict";e.exports=n(19964)},95290:(e,t,n)=>{"use strict";e.exports=n(38505)},95319:(e,t,n)=>{"use strict";var r=n(27788),o=function(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(n(76196)),a=function(){return o.createElement(r.Icon,{size:16},o.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"}))},i=function(){return o.createElement(r.Icon,{size:16},o.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"}))},c=function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},l=function(e){var t=o.useState(e.get("currentPage")||0),n=t[0],a=t[1],i=function(e){a(e)};return r.useIsomorphicLayoutEffect(function(){return e.subscribe("currentPage",i),function(){e.unsubscribe("currentPage",i)}},[]),{currentPage:n}},u=function(e){var t=o.useState(e.get("numberOfPages")||0),n=t[0],r=t[1],a=function(e){r(e)};return o.useEffect(function(){return e.subscribe("numberOfPages",a),function(){e.unsubscribe("numberOfPages",a)}},[]),{numberOfPages:n}},s=function(e){var t=e.store,n=o.useContext(r.LocalizationContext).l10n,a=o.useState("1"),i=a[0],c=a[1],s=l(t).currentPage,d=u(t).numberOfPages;o.useEffect(function(){return c("".concat(s+1))},[s]);var f=function(e){var n=t.get("jumpToPage");n&&n(e)},p=n&&n.pageNavigation?n.pageNavigation.enterPageNumber:"Enter a page number";return o.createElement("span",{className:"rpv-page-navigation__current-page-input"},o.createElement(r.TextBox,{ariaLabel:p,testId:"page-navigation__current-page-input",type:"text",value:i,onChange:c,onKeyDown:function(e){var t,n,r;switch(e.key){case"ArrowUp":(r=s-1)>=0&&(c("".concat(r+1)),f(r));break;case"ArrowDown":(n=s+1)<d&&(c("".concat(n+1)),f(n));break;case"Enter":t=parseInt(i,10),""===i||t<1||t>d?c("".concat(s+1)):f(t-1)}}}))},d=function(e){var t=e.children,n=e.doc,a=r.useIsMounted(),i=o.useState({loading:!0,labels:[]}),c=i[0],l=i[1];return o.useEffect(function(){n.getPageLabels().then(function(e){a.current&&l({loading:!1,labels:e||[]})})},[n.loadingTask.docId]),c.loading?o.createElement(o.Fragment,null):t(c.labels)},f=function(e){var t,n,r,a,i=e.children,c=e.store,s=(n=(t=o.useState(c.get("doc")))[0],r=t[1],a=function(e){r(e)},o.useEffect(function(){return c.subscribe("doc",a),function(){c.unsubscribe("doc",a)}},[]),n),f=l(c).currentPage,p=u(c).numberOfPages,m=i||function(e){return o.createElement(o.Fragment,null,e.currentPage+1)};return s?o.createElement(d,{doc:s},function(e){var t=e.length===p&&p>0?e[f]:"";return m({currentPage:f,numberOfPages:p,pageLabel:t})}):o.createElement(o.Fragment,null)},p=function(){return o.createElement(r.Icon,{size:16},o.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"}))},m={left:0,top:8},h=function(e){var t=e.isDisabled,n=e.onClick,a=o.useContext(r.LocalizationContext).l10n,i=a&&a.pageNavigation?a.pageNavigation.goToFirstPage:"First page";return o.createElement(r.Tooltip,{ariaControlsSuffix:"page-navigation-first",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaLabel:i,isDisabled:t,testId:"page-navigation__first-button",onClick:n},o.createElement(p,null)),content:function(){return i},offset:m})},g=function(e){var t=e.children,n=e.store;return(t||function(e){return o.createElement(h,{isDisabled:e.isDisabled,onClick:e.onClick})})({isDisabled:0===l(n).currentPage,onClick:function(){var e=n.get("jumpToPage");e&&e(0)}})},v=function(e){var t=e.isDisabled,n=e.onClick,a=o.useContext(r.LocalizationContext).l10n,i=a&&a.pageNavigation?a.pageNavigation.goToFirstPage:"First page";return o.createElement(r.MenuItem,{icon:o.createElement(p,null),isDisabled:t,testId:"page-navigation__first-menu",onClick:n},i)},b={left:0,top:8},E=function(e){var t=e.isDisabled,n=e.onClick,i=o.useContext(r.LocalizationContext).l10n,c=i&&i.pageNavigation?i.pageNavigation.goToLastPage:"Last page";return o.createElement(r.Tooltip,{ariaControlsSuffix:"page-navigation-last",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaLabel:c,isDisabled:t,testId:"page-navigation__last-button",onClick:n},o.createElement(a,null)),content:function(){return c},offset:b})},y=function(e){var t=e.children,n=e.store,r=l(n).currentPage,a=u(n).numberOfPages;return(t||function(e){return o.createElement(E,{isDisabled:e.isDisabled,onClick:e.onClick})})({isDisabled:r+1>=a,onClick:function(){var e=n.get("jumpToPage");e&&e(a-1)}})},w=function(e){var t=e.isDisabled,n=e.onClick,i=o.useContext(r.LocalizationContext).l10n,c=i&&i.pageNavigation?i.pageNavigation.goToLastPage:"Last page";return o.createElement(r.MenuItem,{icon:o.createElement(a,null),isDisabled:t,testId:"page-navigation__last-menu",onClick:n},c)},S={left:0,top:8},_=function(e){var t=e.isDisabled,n=e.onClick,a=o.useContext(r.LocalizationContext).l10n,c=a&&a.pageNavigation?a.pageNavigation.goToNextPage:"Next page";return o.createElement(r.Tooltip,{ariaControlsSuffix:"page-navigation-next",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaLabel:c,isDisabled:t,testId:"page-navigation__next-button",onClick:n},o.createElement(i,null)),content:function(){return c},offset:S})},k=function(e){var t=e.children,n=e.store;return(t||function(e){return o.createElement(_,{onClick:e.onClick,isDisabled:e.isDisabled})})({isDisabled:l(n).currentPage+1>=u(n).numberOfPages,onClick:function(){var e=n.get("jumpToNextPage");e&&e()}})},C=function(e){var t=e.isDisabled,n=e.onClick,a=o.useContext(r.LocalizationContext).l10n,c=a&&a.pageNavigation?a.pageNavigation.goToNextPage:"Next page";return o.createElement(r.MenuItem,{icon:o.createElement(i,null),isDisabled:t,testId:"page-navigation__next-menu",onClick:n},c)},P=function(){return o.createElement(r.Icon,{size:16},o.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"}))},x={left:0,top:8},M=function(e){var t=e.isDisabled,n=e.onClick,a=o.useContext(r.LocalizationContext).l10n,i=a&&a.pageNavigation?a.pageNavigation.goToPreviousPage:"Previous page";return o.createElement(r.Tooltip,{ariaControlsSuffix:"page-navigation-previous",position:r.Position.BottomCenter,target:o.createElement(r.MinimalButton,{ariaLabel:i,isDisabled:t,testId:"page-navigation__previous-button",onClick:n},o.createElement(P,null)),content:function(){return i},offset:x})},R=function(e){var t=e.store;return(e.children||function(e){return o.createElement(M,{isDisabled:e.isDisabled,onClick:e.onClick})})({isDisabled:l(t).currentPage<=0,onClick:function(){var e=t.get("jumpToPreviousPage");e&&e()}})},T=function(e){var t=e.isDisabled,n=e.onClick,a=o.useContext(r.LocalizationContext).l10n,i=a&&a.pageNavigation?a.pageNavigation.goToPreviousPage:"Previous page";return o.createElement(r.MenuItem,{icon:o.createElement(P,null),isDisabled:t,testId:"page-navigation__previous-menu",onClick:n},i)},L=function(e){var t=e.children,n=u(e.store).numberOfPages;return t?t({numberOfPages:n}):o.createElement(o.Fragment,null,n)},I=function(e){var t=e.containerRef,n=e.numPages,a=e.store,i=l(a).currentPage,c=o.useRef(i);c.current=i;var u=o.useRef(!1),s=function(){u.current=!0},d=function(){u.current=!1},f=function(e){var o=t.current,i=u.current||document.activeElement&&o.contains(document.activeElement);if(o&&i){var l,s,d,f,p,m,h=e.altKey&&"ArrowDown"===e.key||!e.shiftKey&&!e.altKey&&"PageDown"===e.key,g=e.altKey&&"ArrowUp"===e.key||!e.shiftKey&&!e.altKey&&"PageUp"===e.key;if(h)return e.preventDefault(),p=a.get("jumpToPage"),m=c.current+1,void(p&&m<n&&p(m));if(g)return e.preventDefault(),void(l=a.get("jumpToPage"),s=c.current-1,l&&s>=0&&l(s));if(r.isMac()?e.metaKey&&!e.ctrlKey:e.altKey)switch(e.key){case"ArrowLeft":e.preventDefault(),(d=a.get("jumpToPreviousDestination"))&&d();break;case"ArrowRight":e.preventDefault(),(f=a.get("jumpToNextDestination"))&&f()}}};return o.useEffect(function(){var e=t.current;if(e)return document.addEventListener("keydown",f),e.addEventListener("mouseenter",s),e.addEventListener("mouseleave",d),function(){document.removeEventListener("keydown",f),e.removeEventListener("mouseenter",s),e.removeEventListener("mouseleave",d)}},[t.current]),o.createElement(o.Fragment,null)};t.DownArrowIcon=a,t.NextIcon=i,t.PreviousIcon=P,t.UpArrowIcon=p,t.pageNavigationPlugin=function(e){var t=o.useMemo(function(){return Object.assign({},{enableShortcuts:!0},e)}
1,[]),n=o.useMemo(function(){return r.createStore()},[]),a=function(e){return o.createElement(g,c({},e,{store:n}))},i=function(e){return o.createElement(y,c({},e,{store:n}))},l=function(e){return o.createElement(k,c({},e,{store:n}))},u=function(e){return o.createElement(R,c({},e,{store:n}))};return{install:function(e){n.update("jumpToDestination",e.jumpToDestination),n.update("jumpToNextDestination",e.jumpToNextDestination),n.update("jumpToNextPage",e.jumpToNextPage),n.update("jumpToPage",e.jumpToPage),n.update("jumpToPreviousDestination",e.jumpToPreviousDestination),n.update("jumpToPreviousPage",e.jumpToPreviousPage)},renderViewer:function(e){var r=e.slot;if(!t.enableShortcuts)return r;var a={children:o.createElement(o.Fragment,null,o.createElement(I,{containerRef:e.containerRef,numPages:e.doc.numPages,store:n}),r.children)};return c(c({},r),a)},onDocumentLoad:function(e){n.update("doc",e.doc),n.update("numberOfPages",e.doc.numPages)},onViewerStateChange:function(e){return n.update("currentPage",e.pageIndex),e},jumpToNextPage:function(){var e=n.get("jumpToNextPage");e&&e()},jumpToPage:function(e){var t=n.get("jumpToPage");t&&t(e)},jumpToPreviousPage:function(){var e=n.get("jumpToPreviousPage");e&&e()},CurrentPageInput:function(){return o.createElement(s,{store:n})},CurrentPageLabel:function(e){return o.createElement(f,c({},e,{store:n}))},GoToFirstPage:a,GoToFirstPageButton:function(){return o.createElement(a,null,function(e){return o.createElement(h,c({},e))})},GoToFirstPageMenuItem:function(e){return o.createElement(a,null,function(t){return o.createElement(v,{isDisabled:t.isDisabled,onClick:function(){t.onClick(),e.onClick()}})})},GoToLastPage:i,GoToLastPageButton:function(){return o.createElement(i,null,function(e){return o.createElement(E,c({},e))})},GoToLastPageMenuItem:function(e){return o.createElement(i,null,function(t){return o.createElement(w,{isDisabled:t.isDisabled,onClick:function(){t.onClick(),e.onClick()}})})},GoToNextPage:l,GoToNextPageButton:function(){return o.createElement(l,null,function(e){return o.createElement(_,c({},e))})},GoToNextPageMenuItem:function(e){return o.createElement(l,null,function(t){return o.createElement(C,{isDisabled:t.isDisabled,onClick:function(){t.onClick(),e.onClick()}})})},GoToPreviousPage:u,GoToPreviousPageButton:function(){return o.createElement(u,null,function(e){return o.createElement(M,c({},e))})},GoToPreviousPageMenuItem:function(e){return o.createElement(u,null,function(t){return o.createElement(T,{isDisabled:t.isDisabled,onClick:function(){t.onClick(),e.onClick()}})})},NumberOfPages:function(e){return o.createElement(L,c({},e,{store:n}))}}}}}]);

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.