1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4516],{20731:(e,t,r)=>{"use strict";function n(e){let t=!1;return{promise:new Promise((r,n)=>{e.then(e=>!t&&r(e)).catch(e=>!t&&n(e))}),cancel(){t=!0}}}r.d(t,{A:()=>n})},28752:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});function n(e,t){if(!e)throw Error("Invariant failed")}},30434:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(37876),o=r(14232),i=r(69241),a=Object.prototype.hasOwnProperty;function u(e,t,r){for(r of e.keys())if(f(r,t))return r}function f(e,t){var r,n,o;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&f(e[n],t[n]););return -1===n}if(r===Set){if(e.size!==t.size)return!1;for(n of e)if((o=n)&&"object"==typeof o&&!(o=u(t,o))||!t.has(o))return!1;return!0}if(r===Map){if(e.size!==t.size)return!1;for(n of e)if((o=n[0])&&"object"==typeof o&&!(o=u(t,o))||!f(n[1],t.get(o)))return!1;return!0}if(r===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(r===DataView){if((n=e.byteLength)===t.byteLength)for(;n--&&e.getInt8(n)===t.getInt8(n););return -1===n}if(ArrayBuffer.isView(e)){if((n=e.byteLength)===t.byteLength)for(;n--&&e[n]===t[n];);return -1===n}if(!r||"object"==typeof e){for(r in n=0,e)if(a.call(e,r)&&++n&&!a.call(t,r)||!(r in t)||!f(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!=e&&t!=t}var s=r(20731),l=r(91348),c=r(53553),h=r(28752),p=r(68547),d=r(45508);class g{constructor(){this.externalLinkEnabled=!0,this.externalLinkRel=void 0,this.externalLinkTarget=void 0,this.isInPresentationMode=!1,this.pdfDocument=void 0,this.pdfViewer=void 0}setDocument(e){this.pdfDocument=e}setViewer(e){this.pdfViewer=e}setExternalLinkRel(e){this.externalLinkRel=e}setExternalLinkTarget(e){this.externalLinkTarget=e}setHash(){}setHistory(){}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return(0,h.A)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber||0}set page(e){(0,h.A)(this.pdfViewer,"PDF viewer is not initialized."),this.pdfViewer.currentPageNumber=e}get rotation(){return 0}set rotation(e){}addLinkAttributes(e,t,r){e.href=t,e.rel=this.externalLinkRel||"noopener noreferrer nofollow",e.target=r?"_blank":this.externalLinkTarget||""}goToDestination(e){return new Promise(t=>{(0,h.A)(this.pdfDocument,"PDF document not loaded."),(0,h.A)(e,"Destination is not specified."),"string"==typeof e?this.pdfDocument.getDestination(e).then(t):Array.isArray(e)?t(e):e.then(t)}).then(e=>{(0,h.A)(Array.isArray(e),`"${e}" is not a valid destination array.`);let t=e[0];new Promise(e=>{(0,h.A)(this.pdfDocument,"PDF document not loaded."),t instanceof Object?this.pdfDocument.getPageIndex(t).then(t=>{e(t)}).catch(()=>{(0,h.A)(!1,`"${t}" is not a valid page reference.`)}):"number"==typeof t?e(t):(0,h.A)(!1,`"${t}" is not a valid destination reference.`)}).then(t=>{let r=t+1;(0,h.A)(this.pdfViewer,"PDF viewer is not initialized."),(0,h.A)(r>=1&&r<=this.pagesCount,`"${r}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({dest:e,pageIndex:t,pageNumber:r})})})}goToPage(e){(0,h.A)(this.pdfViewer,"PDF viewer is not initialized."),(0,h.A)(e>=1&&e<=this.pagesCount,`"${e}" is not a valid page number.`),this.pdfViewer.scrollPageIntoView({pageIndex:e-1,pageNumber:e})}goToXY(){}cachePageRef(){}getDestinationHash(){return"#"}getAnchorUrl(){return"#"}executeNamedAction(){}executeSetOCGState(){}isPageVisible(){return!0}isPageCached(){return!0}navigateTo(e){this.goToDestination(e)}}var y=r(91559);let m={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};var v=r(82856),E=r(92675);let{Tm:w}=c,b=(e,t)=>{switch(t){case m.NEED_PASSWORD:e(prompt("Enter the password to open this PDF file."));break;case m.INCORRECT_PASSWORD:e(prompt("Invalid password. Please try again."))}};function A(e){return"object"==typeof e&&null!==e&&("data"in e||"range"in e||"url"in e)}let x=(0,o.forwardRef)(function({children:e,className:t,error:r="Failed to load PDF file.",externalLinkRel:a,externalLinkTarget:u,file:m,inputRef:x,imageResourcesPath:S,loading:L="Loading PDFâ¦",noData:T="No PDF file specified.",onItemClick:R,onLoadError:C,onLoadProgress:P,onLoadSuccess:B,onPassword:U=b,onSourceError:D,onSourceSuccess:O,options:I,renderMode:k,rotate:M,scale:j,...N},_){let[V,F]=(0,v.A)(),{value:z,error:$}=V,[G,W]=(0,v.A)(),{value:H,error:q}=G,J=(0,o.useRef)(new g),Y=(0,o.useRef)([]),K=(0,o.useRef)(void 0),Z=(0,o.useRef)(void 0);m&&m!==K.current&&A(m)&&(p(!f(m,K.current),'File prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "file" prop.'),K.current=m),I&&I!==Z.current&&(p(!f(I,Z.current),'Options prop passed to <Document /> changed, but it\'s equal to previous one. This might result in unnecessary reloads. Consider memoizing the value passed to "options" prop.'),Z.current=I);let X=(0,o.useRef)({scrollPageIntoView:e=>{let{dest:t,pageNumber:r,pageIndex:n=r-1}=e;
1if(R)return void R({dest:t,pageIndex:n,pageNumber:r});let o=Y.current[n];if(o)return void o.scrollIntoView();p(!1,`An internal link leading to page ${r} was clicked, but neither <Document> was provided with onItemClick nor it was able to find the page within itself. Either provide onItemClick to <Document> and handle navigating by yourself or ensure that all pages are rendered within <Document>.`)}});(0,o.useImperativeHandle)(_,()=>({linkService:J,pages:Y,viewer:X}),[]),(0,o.useEffect)(function(){F({type:"RESET"})},[m,F]);let Q=(0,o.useCallback)(async()=>{if(!m)return null;if("string"==typeof m)return(0,E.zL)(m)?{data:(0,E.jA)(m)}:((0,E.qC)(),{url:m});if(m instanceof w)return{range:m};if((0,E.mw)(m))return{data:m};if(E.Bd&&(0,E.qf)(m))return{data:await (0,E.h1)(m)};if((0,h.A)("object"==typeof m,"Invalid parameter in file, need either Uint8Array, string or a parameter object"),(0,h.A)(A(m),"Invalid parameter object: need either .data, .range or .url"),"url"in m&&"string"==typeof m.url){if((0,E.zL)(m.url)){let{url:e,...t}=m;return{data:(0,E.jA)(e),...t}}(0,E.qC)()}return m},[m]);(0,o.useEffect)(()=>{let e=(0,s.A)(Q());return e.promise.then(e=>{F({type:"RESOLVE",value:e})}).catch(e=>{F({type:"REJECT",error:e})}),()=>{(0,E.xL)(e)}},[Q,F]),(0,o.useEffect)(()=>{if(void 0!==z){if(!1===z)return void($&&(p(!1,$.toString()),D&&D($)));O&&O()}},[z]),(0,o.useEffect)(function(){W({type:"RESET"})},[W,z]),(0,o.useEffect)(function(){if(!z)return;let e=I?{...z,...I}:z,t=c.YE(e);return P&&(t.onProgress=P),U&&(t.onPassword=U),t.promise.then(e=>{t.destroyed||W({type:"RESOLVE",value:e})}).catch(e=>{t.destroyed||W({type:"REJECT",error:e})}),()=>{t.destroy()}},[I,W,z]),(0,o.useEffect)(()=>{if(void 0!==H){if(!1===H)return void(q&&(p(!1,q.toString()),C&&C(q)));H&&(B&&B(H),Y.current=Array(H.numPages),J.current.setDocument(H))}},[H]),(0,o.useEffect)(function(){J.current.setViewer(X.current),J.current.setExternalLinkRel(a),J.current.setExternalLinkTarget(u)},[a,u]);let ee=(0,o.useCallback)((e,t)=>{Y.current[e]=t},[]),et=(0,o.useCallback)(e=>{delete Y.current[e]},[]),er=(0,o.useMemo)(()=>({imageResourcesPath:S,linkService:J.current,onItemClick:R,pdf:H,registerPage:ee,renderMode:k,rotate:M,scale:j,unregisterPage:et}),[S,R,H,ee,k,M,j,et]),en=(0,o.useMemo)(()=>(0,l.Ay)(N,()=>H),[N,H]);return(0,n.jsx)("div",{className:(0,i.A)("react-pdf__Document",t),ref:x,...en,children:function(){if(!m)return(0,n.jsx)(y.A,{type:"no-data",children:"function"==typeof T?T():T});if(null==H)return(0,n.jsx)(y.A,{type:"loading",children:"function"==typeof L?L():L});if(!1===H)return(0,n.jsx)(y.A,{type:"error",children:"function"==typeof r?r():r});if(!(null==er?void 0:er.pdf))throw Error("pdf is undefined");let t="function"==typeof e?e(er):e;return(0,n.jsx)(d.A.Provider,{value:er,children:t})}()})})},45508:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});let n=(0,r(14232).createContext)(null)},68547:e=>{"use strict";e.exports=function(){}},81370:(e,t)=>{"use strict";t.byteLength=function(e){var t=f(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,i=f(e),a=i[0],u=i[1],s=new o((a+u)*3/4-u),l=0,c=u>0?a-4:a;for(r=0;r<c;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],s[l++]=t>>16&255,s[l++]=t>>8&255,s[l++]=255&t;return 2===u&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,s[l++]=255&t),1===u&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,s[l++]=t>>8&255,s[l++]=255&t),s},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,u=n-o;a<u;a+=16383)i.push(function(e,t,n){for(var o,i=[],a=t;a<n;a+=3)o=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),i.push(r[o>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return i.join("")}(e,a,a+16383>u?u:a+16383));return 1===o?i.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===o&&i.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=i.length;a<u;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function f(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},82856:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(14232);function o(e,t){switch(t.type){case"RESOLVE":return{value:t.value,error:void 0};case"REJECT":return{value:!1,error:t.error};case"RESET":return{value:void 0,error:void 0};default:return e}}function i(){return(0,n.useReducer)(o,{value:void 0,error:void 0})}},82909:(e,t,r)=>{"use strict";var n=r(81370),o=r(87247),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>
vendor: 18,928 bytes, line 1
10x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return l(e)}return f(e,t,r)}function f(e,t,r){if("string"==typeof e){var n=e,o=t;if(("string"!=typeof o||""===o)&&(o="utf8"),!u.isEncoding(o))throw TypeError("Unknown encoding: "+o);var i=0|d(n,o),f=a(i),s=f.write(n,o);return s!==i&&(f=f.slice(0,s)),f}if(ArrayBuffer.isView(e)){var l=e;if(P(l,Uint8Array)){var g=new Uint8Array(l);return h(g.buffer,g.byteOffset,g.byteLength)}return c(l)}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(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return h(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var y=e.valueOf&&e.valueOf();if(null!=y&&y!==e)return u.from(y,t,r);var m=function(e){if(u.isBuffer(e)){var t=0|p(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(m)return m;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function s(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 l(e){return s(e),a(e<0?0:0|p(e))}function c(e){for(var t=e.length<0?0:0|p(e.length),r=a(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function h(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),u.prototype),n}function p(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(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 r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(e).length;default:if(o)return n?-1:T(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,r){var o,i,a,u=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=B[e[i]];return o}(this,t,r);case"utf8":case"utf-8":return E(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}(this,t,r);case"base64":return o=this,i=t,a=r,0===i&&a===o.length?n.fromByteArray(o):n.fromByteArray(o.slice(i,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length-1;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}(this,t,r);default:if(u)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),u=!0}}function y(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,o){var i;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(i=r*=1)!=i&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(o)return -1;else r=e.length-1;else if(r<0)if(!o)return -1;else r=0;if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,o);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(o)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return v(e,[t],r,n,o)}throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,o){var i,a=1,u=e.length,f=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;a=2,u/=2,f/=2,r/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=r;i<u;i++)if(s(e,i)===s(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===f)return l*a}else -1!==l&&(i-=i-l),l=-1}else for(r+f>u&&(r=u-f),i=r;i>=0;i--){for(var c=!0,h=0;h<f;h++)if(s(e,i+h)!==s(t,h)){c=!1;break}if(c)return i}return -1}function E(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,u,f,s=e[o],l=null,c=s>239?4:s>223?3:s>191?2:1;if(o+c<=r)switch(c){case 1:s<128&&(l=s);break;case 2:(192&(i=e[o+1]))==128&&(f=(31&s)<<6|63&i)>127&&(l=f);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(f=(15&s)<<12|(63&i)<<6|63&a)>2047&&(f<55296||f>57343)&&(l=f);break;case 4:i=e[o+1],a=e[o+2],u=e[o+3],(192&i)==128&&(192&a)==128&&(192&u)==128&&(f=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&f<1114112&&(l=f)}null===l?(l=65533,c=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=c}var h=n,p=h.length;if(p<=4096)return String.fromCharCode.apply(String,h);for(var d="",g=0;g<p;)d+=String.fromCharCode.apply(String,h.slice(g,g+=4096));return d}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function b(e,t,r,n,o,i){if(!u.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function A(e,t,r,n,o,i){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function x(e,t,r,n,i){return t*=1,r>>>=0,i||A(e,t,r,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,r,n,23,4),r+4}function S(e,t,r,n,i){return t*=1,r>>>=0,i||A(e,t,r,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,r,n,52,8),r+8}t.hp=u,t.IS=50,u.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}}(),u.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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(e,t,r){return f(e,t,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(e,t,r){return(s(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},u.allocUnsafe=function(e){return l(e)},u.allocUnsafeSlow=function(e){return l(e)},u.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==u.prototype},u.compare=function(e,t){if(P(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(e)||!u.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:+(n<r)},u.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}},u.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=u.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(P(i,Uint8Array))o+i.length>n.length?u.from(i).copy(n,o):Uint8Array.prototype.set.call(n,i,o);else if(u.isBuffer(i))i.copy(n,o);else throw TypeError('"list" argument must be an Array of Buffers');o+=i.length}return n},u.byteLength=d,u.prototype._isBuffer=!0,u.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)y(this,t,t+1);return this},u.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)y(this,t,t+3),y(this,t+1,t+2);return this},u.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)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},u.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?E(this,0,e):g.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(e){if(!u.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",r=t.IS;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,o){if(P(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.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===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,o>>>=0,this===e)return 0;for(var i=o-n,a=r-t,f=Math.min(i,a),s=this.slice(n,o),l=e.slice(t,r),c=0;c<f;++c)if(s[c]!==l[c]){i=s[c],a=l[c];break}return i<a?-1:+(a<i)},u.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},u.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},u.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},u.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,u,f,s,l,c,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var p=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;n>i/2&&(n=i/2);for(var a=0;a<n;++a){var u,f=parseInt(t.substr(2*a,2),16);if((u=f)!=u)break;e[r+a]=f}return a}(this,e,t,r);case"utf8":case"utf-8":return o=t,i=r,C(T(e,this.length-o),this,o,i);case"ascii":case"latin1":case"binary":return a=t,u=r,C(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,a,u);case"base64":return f=t,s=r,C(R(e),this,f,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return l=t,c=r,C(function(e,t){for(var r,n,o=[],i=0;i<e.length&&!((t-=2)<0);++i)n=(r=e.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(e,this.length-l),this,l,c);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||w(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||w(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||w(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return(e>>>=0,t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||w(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||w(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||w(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||w(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||w(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;b(this,e,t,r,o,0)}var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(e,t,r,n){if(e*=1,t>>>=0,r>>>=0,!n){var o=Math.pow(2,8*r)-1;b(this,e,t,r,o,0)}var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||b(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},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||b(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},u.prototype.writeIntLE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var o=Math.pow(2,8*r-1);b(this,e,t,r,o-1,-o)}var i=0,a=1,u=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===u&&0!==this[t+i-1]&&(u=1),this[t+i]=(e/a|0)-u&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e*=1,t>>>=0,!n){var o=Math.pow(2,8*r-1);b(this,e,t,r,o-1,-o)}var i=r-1,a=1,u=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a|0)-u&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||b(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||b(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},u.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||b(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},u.prototype.writeFloatLE=function(e,t,r){return x(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return x(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return S(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return S(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},u.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=u.isBuffer(e)?e:u.from(e,n),f=a.length;
1if(0===f)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=a[o%f]}return this};var L=/[^+/0-9A-Za-z-_]/g;function T(e,t){t=t||1/0;for(var r,n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319||a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=(o-55296<<10|r-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function R(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function C(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length)&&!(o>=e.length);++o)t[o+r]=e[o];return o}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var B=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,o=0;o<16;++o)t[n+o]=e[r]+e[o];return t}()},85215:(e,t,r)=>{"use strict";r.d(t,{A:()=>D});var n=r(37876),o=r(14232),i=r(69241),a=r(20731),u=r(91348);function f(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.filter(Boolean);return r.length<=1?r[0]||null:function(e){for(var t=0;t<r.length;t++){var n=r[t];"function"==typeof n?n(e):n&&(n.current=e)}}}var s=r(28752),l=r(68547),c=r(91559),h=r(53553),p=r(45508);function d(){return(0,o.useContext)(p.A)}let g=(0,o.createContext)(null);function y(){return(0,o.useContext)(g)}var m=r(82856),v=r(92675);function E(){let e=d(),t=y();(0,s.A)(t,"Unable to find Page context.");let{filterAnnotations:r,imageResourcesPath:u,linkService:f,onGetAnnotationsError:c,onGetAnnotationsSuccess:p,onRenderAnnotationLayerError:g,onRenderAnnotationLayerSuccess:E,page:w,pdf:b,renderForms:A,rotate:x,scale:S=1}={...e,...t};(0,s.A)(b,"Attempted to load page annotations, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop."),(0,s.A)(w,"Attempted to load page annotations, but no page was specified."),(0,s.A)(f,"Attempted to load page annotations, but no linkService was specified.");let[L,T]=(0,m.A)(),{value:R,error:C}=L,P=(0,o.useRef)(null);l(1===Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-annotation-layer"),10),"AnnotationLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-annotations"),(0,o.useEffect)(function(){T({type:"RESET"})},[T,w]),(0,o.useEffect)(function(){if(!w)return;let e=(0,a.A)(w.getAnnotations());return e.promise.then(e=>{T({type:"RESOLVE",value:e})}).catch(e=>{T({type:"REJECT",error:e})}),()=>{(0,v.xL)(e)}}
1,[T,w]),(0,o.useEffect)(()=>{if(void 0!==R){if(!1===R)return void(C&&(l(!1,C.toString()),c&&c(C)));R&&p&&p(R)}},[R]);let B=(0,o.useMemo)(()=>w.getViewport({scale:S,rotation:x}),[w,x,S]);return(0,o.useEffect)(function(){if(!b||!w||!f||!R)return;let{current:e}=P;if(!e)return;let t=B.clone({dontFlip:!0}),n={accessibilityManager:null,annotationCanvasMap:null,annotationEditorUIManager:null,annotationStorage:b.annotationStorage,commentManager:null,div:e,l10n:null,linkService:f,page:w,structTreeLayer:null,viewport:t},o={annotations:r?r({annotations:R}):R,annotationStorage:b.annotationStorage,div:e,imageResourcesPath:u,linkService:f,page:w,renderForms:A,viewport:t};e.innerHTML="";try{new h.dU(n).render(o),E&&E()}catch(e){l(!1,`${e}`),g&&g(e)}return()=>{}},[R,r,u,f,w,b,A,B]),(0,n.jsx)("div",{className:(0,i.A)("react-pdf__Page__annotations","annotationLayer"),ref:P})}let w={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},b=/^H(\d+)$/;function A(e){return"children"in e}function x(e){return!!A(e)&&1===e.children.length&&0 in e.children&&"id"in e.children[0]}function S({className:e,node:t}){let r=(0,o.useMemo)(()=>t?{...function(e){let t={};if(A(e)){let{role:r}=e,n=r.match(b);if(n)t.role="heading",t["aria-level"]=Number(n[1]);else if(r in w){let e=w[r];e&&(t.role=e)}}return t}(t),...function e(t){let r={};if(A(t)){if(void 0!==t.alt&&(r["aria-label"]=t.alt),void 0!==t.lang&&(r.lang=t.lang),x(t)){let[n]=t.children;if(n){let t=e(n);return{...r,...t}}}}else"id"in t&&(r["aria-owns"]=t.id);return r}(t)}:null,[t]),i=(0,o.useMemo)(()=>!A(t)||x(t)?null:t.children.map((e,t)=>(0,n.jsx)(S,{node:e},t)),[t]);return(0,n.jsx)("span",{className:e,...r,children:i})}function L(){let e=y();(0,s.A)(e,"Unable to find Page context.");let{onGetStructTreeError:t,onGetStructTreeSuccess:r}=e,[i,u]=(0,m.A)(),{value:f,error:c}=i,{customTextRenderer:h,page:p}=e;return((0,o.useEffect)(function(){u({type:"RESET"})},[u,p]),(0,o.useEffect)(function(){if(h||!p)return;let e=(0,a.A)(p.getStructTree());return e.promise.then(e=>{u({type:"RESOLVE",value:e})}).catch(e=>{u({type:"REJECT",error:e})}),()=>(0,v.xL)(e)},[h,p,u]),(0,o.useEffect)(()=>{if(void 0!==f){if(!1===f)return void(c&&(l(!1,c.toString()),t&&t(c)));f&&r&&r(f)}},[f]),f)?(0,n.jsx)(S,{className:"react-pdf__Page__structTree structTree",node:f}):null}let T=h.ng;function R(e){let t=y();(0,s.A)(t,"Unable to find Page context.");let{_className:r,canvasBackground:i,devicePixelRatio:a=(0,v.mZ)(),onRenderError:u,onRenderSuccess:c,page:h,renderForms:p,renderTextLayer:d,pageColors:g,rotate:m,scale:E}={...t,...e},{canvasRef:w}=e;(0,s.A)(h,"Attempted to render page canvas, but no page was specified.");let b=(0,o.useRef)(null);function A(e){!(0,v.Kp)(e)&&(l(!1,e.toString()),u&&u(e))}let x=(0,o.useMemo)(()=>h.getViewport({scale:E*a,rotation:m}),[a,h,m,E]),S=(0,o.useMemo)(()=>h.getViewport({scale:E,rotation:m}),[h,m,E]);(0,o.useEffect)(function(){if(!h)return;h.cleanup();let{current:e}=b;if(!e)return;e.width=x.width,e.height=x.height,e.style.width=`${Math.floor(S.width)}px`,e.style.height=`${Math.floor(S.height)}px`,e.style.visibility="hidden";let t={annotationMode:p?T.ENABLE_FORMS:T.ENABLE,canvas:e,canvasContext:e.getContext("2d",{alpha:!1}),pageColors:g,viewport:x};i&&(t.background=i);let r=h.render(t);return r.promise.then(()=>{e.style.visibility="",h&&c&&c((0,v.vS)(h,E))}).catch(A),()=>(0,v.xL)(r)},[i,h,g,p,x,S]);let R=(0,o.useCallback)(()=>{let{current:e}=b;e&&(e.width=0,e.height=0)},[]);return(0,o.useEffect)(()=>R,[R]),(0,n.jsx)("canvas",{className:`${r}__canvas`,dir:"ltr",ref:f(w,b),style:{display:"block",userSelect:"none"},children:d?(0,n.jsx)(L,{}):null})}let C=new Set(["base","embed","iframe","link","meta","object","script","style","template"]),P=new Set(["action","formaction","href","poster","src","xlink:href"]);
1function B(e){return e.nodeType===Node.ELEMENT_NODE&&e instanceof HTMLElement}function U(){let e=y();(0,s.A)(e,"Unable to find Page context.");let{customTextRenderer:t,onGetTextError:r,onGetTextSuccess:u,onRenderTextLayerError:f,onRenderTextLayerSuccess:c,page:p,pageIndex:d,pageNumber:g,rotate:E,scale:w}=e;(0,s.A)(p,"Attempted to load page text content, but no page was specified.");let[b,A]=(0,m.A)(),{value:x,error:S}=b,L=(0,o.useRef)(null);l(1===Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--react-pdf-text-layer"),10),"TextLayer styles not found. Read more: https://github.com/wojtekmaj/react-pdf#support-for-text-layer"),(0,o.useEffect)(function(){A({type:"RESET"})},[p,A]),(0,o.useEffect)(function(){if(!p)return;let e=(0,a.A)(p.getTextContent());return e.promise.then(e=>{A({type:"RESOLVE",value:e})}).catch(e=>{A({type:"REJECT",error:e})}),()=>(0,v.xL)(e)},[p,A]),(0,o.useEffect)(()=>{if(void 0!==x){if(!1===x)return void(S&&(l(!1,S.toString()),r&&r(S)));x&&u&&u(x)}},[x]);let T=(0,o.useCallback)(()=>{c&&c()},[c]),R=(0,o.useCallback)(e=>{!(0,v.Kp)(e)&&(l(!1,e.toString()),f&&f(e))},[f]),U=(0,o.useMemo)(()=>p.getViewport({scale:w,rotation:E}),[p,E,w]);return(0,o.useLayoutEffect)(function(){if(!p||!x)return;let{current:e}=L;if(!e)return;e.innerHTML="";let r=p.streamTextContent({includeMarkedContent:!0}),n=new h.D6({container:e,textContentSource:r,viewport:U});return n.render().then(()=>{let r=document.createElement("div");r.className="endOfContent",e.append(r);let n=e.querySelectorAll('[role="presentation"]');if(t){let e=0;x.items.forEach((r,o)=>{if(!("str"in r))return;let i=n[e];if(!i)return;let a=t({pageIndex:d,pageNumber:g,itemIndex:o,...r}),u=document.createElement("template");u.innerHTML=a;let f=document.createDocumentFragment();Array.from(u.content.childNodes).forEach(e=>{f.append(function e(t){if(B(t)&&!(B(t)&&C.has(t.tagName.toLowerCase()))){var r;let n=document.createElement(t.tagName.toLowerCase());return Array.from(t.attributes).forEach(e=>{let t=e.name.toLowerCase();!t.startsWith("on")&&"srcdoc"!==t&&(P.has(t)&&function(e){let t="";for(let r of e){let e=r.charCodeAt(0);e<=32||127===e||(t+=r.toLowerCase())}return t.startsWith("javascript:")||t.startsWith("vbscript:")}(e.value)||n.setAttribute(e.name,e.value))}),Array.from(t.childNodes).forEach(t=>{n.append(e(t))}),n}return document.createTextNode(null!=(r=t.textContent)?r:"")}(e))}),i.replaceChildren(f),e+=r.str&&r.hasEOL?2:1})}T()}).catch(R),()=>(0,v.xL)(n)},[t,R,T,p,d,g,x,U]),(0,n.jsx)("div",{className:(0,i.A)("react-pdf__Page__textContent","textLayer"),onMouseUp:function(){let e=L.current;e&&e.classList.remove("selecting")},onMouseDown:function(){let e=L.current;e&&e.classList.add("selecting")},ref:L})}function D(e){let{_className:t="react-pdf__Page",_enableRegisterUnregisterPage:r=!0,canvasBackground:h,canvasRef:p,children:y,className:w,customRenderer:b,customTextRenderer:A,devicePixelRatio:x,error:S="Failed to load the page.",filterAnnotations:L,height:T,inputRef:C,loading:P="Loading pageâ¦",noData:B="No page specified.",onGetAnnotationsError:D,onGetAnnotationsSuccess:O,onGetStructTreeError:I,onGetStructTreeSuccess:k,onGetTextError:M,onGetTextSuccess:j,onLoadError:N,onLoadSuccess:_,onRenderAnnotationLayerError:V,onRenderAnnotationLayerSuccess:F,onRenderError:z,onRenderSuccess:$,onRenderTextLayerError:G,onRenderTextLayerSuccess:W,pageColors:H,pageIndex:q,pageNumber:J,pdf:Y,registerPage:K,renderAnnotationLayer:Z=!0,renderForms:X=!1,renderMode:Q="canvas",renderTextLayer:ee=!0,rotate:et,scale:er=1,unregisterPage:en,width:eo,...ei}={...d(),...e},[ea,eu]=(0,m.A)(),{value:ef,error:es}=ea,el=(0,o.useRef)(null);(0,s.A)(Y,"Attempted to load a page, but no document was specified. Wrap <Page /> in a <Document /> or pass explicit `pdf` prop.");let ec=(0,v.ci)(J)?J-1:null!=q?q:null,eh=null!=J?J:(0,v.ci)(q)?q+1:null,ep=null!=et?et:ef?ef.rotate:null,ed=(0,o.useMemo)(()=>{if(!ef)return null;let e=1,t=null!=er?er:1;if(eo||T){let t=ef.getViewport({scale:1,rotation:ep});eo?e=eo/t.width:T&&(e=T/t.height)}return t*e},[T,ef,ep,er,eo]);(0,o.useEffect)(function(){return()=>{(0,v.ci)(ec)&&r&&en&&en(ec)}},[r,Y,ec,en]),(0,o.useEffect)(function(){eu({type:"RESET"})},[eu,Y,ec]),(0,o.useEffect)(function(){if(!Y||!eh)return;let e=(0,a.A)(Y.getPage(eh));return e.promise.then(e=>{eu({type:"RESOLVE",value:e})}).catch(e=>{eu({type:"REJECT",error:e})}),()=>(0,v.xL)(e)},[eu,Y,eh]),(0,o.useEffect)(()=>
1{if(void 0!==ef){if(!1===ef)return void(es&&(l(!1,es.toString()),N&&N(es)));!function(){if(_){if(!ef||!ed)return;_((0,v.vS)(ef,ed))}if(r&&K){if(!(0,v.ci)(ec)||!el.current)return;K(ec,el.current)}}()}},[ef,ed]);let eg=(0,o.useMemo)(()=>(0,v.ci)(ec)&&eh&&(0,v.ci)(ep)&&(0,v.ci)(ed)?{_className:t,canvasBackground:h,customTextRenderer:A,devicePixelRatio:x,filterAnnotations:L,onGetAnnotationsError:D,onGetAnnotationsSuccess:O,onGetStructTreeError:I,onGetStructTreeSuccess:k,onGetTextError:M,onGetTextSuccess:j,onRenderAnnotationLayerError:V,onRenderAnnotationLayerSuccess:F,onRenderError:z,onRenderSuccess:$,onRenderTextLayerError:G,onRenderTextLayerSuccess:W,page:ef,pageColors:H,pageIndex:ec,pageNumber:eh,renderForms:X,renderTextLayer:ee,rotate:ep,scale:ed}:null,[t,h,A,x,L,D,O,I,k,M,j,V,F,z,$,G,W,ef,H,ec,eh,X,ee,ep,ed]),ey=(0,o.useMemo)(()=>(0,u.Ay)(ei,()=>ef?ed?(0,v.vS)(ef,ed):void 0:ef),[ei,ef,ed]),em=`${ec}@${ed}/${ep}`;return(0,n.jsx)("div",{className:(0,i.A)(t,w),"data-page-number":eh,ref:f(C,el),style:{"--scale-round-x":"1px","--scale-round-y":"1px","--scale-factor":"1","--user-unit":`${ed}`,"--total-scale-factor":"calc(var(--scale-factor) * var(--user-unit))",backgroundColor:h||"white",position:"relative",minWidth:"min-content",minHeight:"min-content"},...ey,children:function(){if(!eh)return(0,n.jsx)(c.A,{type:"no-data",children:"function"==typeof B?B():B});if(null===Y||null==ef)return(0,n.jsx)(c.A,{type:"loading",children:"function"==typeof P?P():P});if(!1===Y||!1===ef)return(0,n.jsx)(c.A,{type:"error",children:"function"==typeof S?S():S});if(!(null==eg?void 0:eg.page))throw Error("page is undefined");let e="function"==typeof y?y(eg):y;return(0,n.jsxs)(g.Provider,{value:eg,children:[function(){switch(Q){case"custom":return(0,s.A)(b,'renderMode was set to "custom", but no customRenderer was passed.'),(0,n.jsx)(b,{},`${em}_custom`);case"none":return null;default:return(0,n.jsx)(R,{canvasRef:p},`${em}_canvas`)}}(),ee?(0,n.jsx)(U,{},`${em}_text`):null,Z?(0,n.jsx)(E,{},`${em}_annotations`):null,e]})}()})}},87247:(e,t)=>{t.read=function(e,t,r,n,o){var i,a,u=8*o-n-1,f=(1<<u)-1,s=f>>1,l=-7,c=r?o-1:0,h=r?-1:1,p=e[t+c];for(c+=h,i=p&(1<<-l)-1,p>>=-l,l+=u;l>0;i=256*i+e[t+c],c+=h,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+e[t+c],c+=h,l-=8);if(0===i)i=1-s;else{if(i===f)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=s}return(p?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,u,f,s=8*i-o-1,l=(1<<s)-1,c=l>>1,h=5960464477539062e-23*(23===o),p=n?0:i-1,d=n?1:-1,g=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(u=+!!isNaN(t),a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-a))<1&&(a--,f*=2),a+c>=1?t+=h/f:t+=h*Math.pow(2,1-c),t*f>=2&&(a++,f/=2),a+c>=l?(u=0,a=l):a+c>=1?(u=(t*f-1)*Math.pow(2,o),a+=c):(u=t*Math.pow(2,c-1)*Math.pow(2,o),a=0));o>=8;e[r+p]=255&u,p+=d,u/=256,o-=8);for(a=a<<o|u,s+=o;s>0;e[r+p]=255&a,p+=d,a/=256,s-=8);e[r+p-d]|=128*g}},91348:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>o});let n=["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onBlur","onInput","onInvalid","onReset","onSubmit","onLoad","onError","onKeyDown","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onScroll","onWheel","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd","onChange","onToggle"];function o(e,t){let r={};for(let o of n){let n=e[o];n&&(t?r[o]=e=>n(e,t(o)):r[o]=n)}return r}},91559:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});var n=r(37876);function o({children:e,type:t}){return(0,n.jsx)("div",{className:`react-pdf__message react-pdf__message--${t}`,children:e})}},92675:(e,t,r)=>{"use strict";r.d(t,{Bd:()=>i,Kp:()=>y,ci:()=>u,h1:()=>m,jA:()=>c,mZ:()=>h,mw:()=>f,qC:()=>p,qf:()=>s,vS:()=>g,xL:()=>d,zL:()=>l});var n=r(28752),o=r(68547);let i="undefined"!=typeof window,a=i&&"file:"===window.location.protocol;function u(e){return null!=e}function f(e){return e instanceof ArrayBuffer}function s(e){return(0,n.A)(i,"isBlob can only be used in a browser environment"),e instanceof Blob}function l(e){return"string"==typeof e&&/^data:/.test(e)}function c(e){(0,n.A)(l(e),"Invalid data URI.");let[t="",r=""]=e.split(",");return -1!==t.split(";").indexOf("base64")?atob(r):unescape(r)}function h(){return i&&window.devicePixelRatio||1}function p(){o(!a,"Loading PDF as base64 strings/URLs may not work on protocols other than HTTP/HTTPS. On Chromium based browsers, you can use --allow-file-access-from-files flag for debugging purposes.")}function d(e){(null==e?void 0:e.cancel)&&e.cancel()}function g(e,t){return Object.defineProperty(e,"width",{get(){return this.getViewport({scale:t}).width},configurable:!0}),Object.defineProperty(e,"height",{get(){return this.getViewport({scale:t}).height},configurable:!0}),Object.defineProperty(e,"originalWidth",{get(){return this.getViewport({scale:1}).width},configurable:!0}),Object.defineProperty(e,"originalHeight",{get(){return this.getViewport({scale:1}).height},configurable:!0}),e}function y(e){return"AbortException"===e.name||"RenderingCancelledException"===e.name}function m(e){return new Promise((t,r)=>{let n=new FileReader;n.onload=()=>{if(!n.result)return r(Error("Error while reading a file."));t(n.result)},n.onerror=e=>{if(!e.target)return r(Error("Error while reading a file."));let{error:t}=e.target;if(!t)return r(Error("Error while reading a file."));switch(t.code){case t.NOT_FOUND_ERR:return r(Error("Error while reading a file: File not found."));case t.SECURITY_ERR:return r(Error("Error while reading a file: Security error."));case t.ABORT_ERR:return r(Error("Error while reading a file: Aborted."));default:return r(Error("Error while reading a file."))}},n.readAsArrayBuffer(e)})}}}]);
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.