PageSourceSearch

https://www.webofscience.com/wos/static/775.6f11c81f29ef8f43.js

js webofscience.com collected 2026-09-24 08:32:24 UTC 139,576 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkseed_app=self.webpackChunkseed_app||[]).push([[775],{10775:(Er,He,ve)=>{ve.r(He),ve.d(He,{AnnotationLayerBuilder:()=>Gi,DownloadManager:()=>Ki,EventBus:()=>Xi,FindState:()=>Zi,GenericL10n:()=>Qi,LinkTarget:()=>Yi,PDFFindController:()=>Ji,PDFHistory:()=>qi,PDFLinkService:()=>er,PDFPageView:()=>tr,PDFScriptingManager:()=>nr,PDFSinglePageViewer:()=>ir,PDFViewer:()=>rr,ProgressBar:()=>sr,RenderingStates:()=>ar,ScrollMode:()=>or,SimpleLinkService:()=>lr,SpreadMode:()=>ur,StructTreeLayerBuilder:()=>dr,TextLayerBuilder:()=>cr,XfaLayerBuilder:()=>hr,parseQueryString:()=>fr});var E=ve(10467);function Ue(s,e){this.v=s,this.k=e}function $e(s){return new Ue(s,0)}function We(s){return function(){return new q(s.apply(this,arguments))}}function q(s){var e,t;function n(r,a){try{var o=s[r](a),l=o.value,u=l instanceof Ue;Promise.resolve(u?l.v:l).then(function(d){if(u){var f="return"===r?"return":"next";if(!l.k||d.done)return n(f,d);d=s[f](d).value}i(o.done?"return":"normal",d)},function(d){n("throw",d)})}catch(d){i("throw",d)}}function i(r,a){switch(r){case"return":e.resolve({value:a,done:!0});break;case"throw":e.reject(a);break;default:e.resolve({value:a,done:!1})}(e=e.next)?n(e.key,e.arg):t=null}this._invoke=function(r,a){return new Promise(function(o,l){var u={key:r,arg:a,resolve:o,reject:l,next:null};t?t=t.next=u:(e=t=u,n(r,a))})}
1,"function"!=typeof s.return&&(this.return=void 0)}function oe(s){function e(t){if(Object(t)!==t)return Promise.reject(new TypeError(t+" is not an object."));var n=t.done;return Promise.resolve(t.value).then(function(i){return{value:i,done:n}})}return(oe=function(n){this.s=n,this.n=n.next}).prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(n){var i=this.s.return;return void 0===i?Promise.resolve({value:n,done:!0}):e(i.apply(this.s,arguments))},throw:function(n){var i=this.s.return;return void 0===i?Promise.reject(n):e(i.apply(this.s,arguments))}},new oe(s)}q.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},q.prototype.next=function(s){return this._invoke("next",s)},q.prototype.throw=function(s){return this._invoke("throw",s)},q.prototype.return=function(s){return this._invoke("return",s)};var ee={d:(s,e)=>{for(var t in e)ee.o(e,t)&&!ee.o(s,t)&&Object.defineProperty(s,t,{enumerable:!0,get:e[t]})},o:(s,e)=>Object.prototype.hasOwnProperty.call(s,e)},R=globalThis.pdfjsViewer={};ee.d(R,{AnnotationLayerBuilder:()=>lt,DownloadManager:()=>kn,EventBus:()=>Ce,FindState:()=>G,GenericL10n:()=>z,LinkTarget:()=>K,PDFFindController:()=>vn,PDFHistory:()=>Li,PDFLinkService:()=>he,PDFPageView:()=>Mt,PDFScriptingManager:()=>Hi,PDFSinglePageViewer:()=>zi,PDFViewer:()=>Ot,ProgressBar:()=>Qt,RenderingStates:()=>M,ScrollMode:()=>I,SimpleLinkService:()=>Se,SpreadMode:()=>O,StructTreeLayerBuilder:()=>Rt,TextLayerBuilder:()=>J,XfaLayerBuilder:()=>Nt,parseQueryString:()=>le});const M={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},I={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3},O={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function Ze(s,e,t=!1){let n=s.offsetParent;if(!n)return void console.error("offsetParent is not set -- cannot scroll");let i=s.offsetTop+s.clientTop,r=s.offsetLeft+s.clientLeft;for(;n.clientHeight===n.scrollHeight&&n.clientWidth===n.scrollWidth||t&&(n.classList.contains("markedContent")||"hidden"===getComputedStyle(n).overflow);)if(i+=n.offsetTop,r+=n.offsetLeft,n=n.offsetParent,!n)return;e&&(void 0!==e.top&&(i+=e.top),void 0!==e.left&&(r+=e.left,n.scrollLeft=r)),n.scrollTop=i}function le(s){const e=new Map;for(const[t,n]of new URLSearchParams(s))e.set(t.toLowerCase(),n);return e}const Qe=/[\x00-\x1F]/g;function te(s,e=!1){return Qe.test(s)?e?s.replaceAll(Qe,t=>"\0"===t?"":" "):s.replaceAll("\0",""):s}function ne(s,e,t=0){let n=t,i=s.length-1;if(i<0||!e(s[i]))return s.length;if(e(s[n]))return n;for(;n<i;){const r=n+i>>1;e(s[r])?i=r:n=r+1}return n}function Ye(s){if(Math.floor(s)===s)return[s,1];const e=1/s;if(e>8)return[1,8];if(Math.floor(e)===e)return[1,e];const n=s>1?e:s;let l,i=0,r=1,a=1,o=1;for(;;){const u=i+a,d=r+o;if(d>8)break;n<=u/d?(a=u,o=d):(i=u,r=d)}return l=n-i/r<a/o-n?n===s?[i,r]:[r,i]:n===s?[a,o]:[o,a],l}function ue(s,e){return s-s%e}function Je(s){return Number.isInteger(s)&&s%90==0}function qe(s){return s.width<=s.height}new Promise(function(s){window.requestAnimationFrame(s)});const Xt=document.documentElement.style;class Qt{#e=null;#t=null;#r=0;#n=null;#i=!0;constructor(e){this.#e=e.classList,this.#n=e.style}get percent(){return this.#r}set percent(e){this.#r=function Zt(s,e,t){return Math.min(Math.max(s,e),t)}(e,0,100),isNaN(e)?this.#e.add("indeterminate"):(this.#e.remove("indeterminate"),this.#n.setProperty("--progressBar-percent",`${this.#r}%`))}setWidth(e){if(!e)return;const n=e.parentNode.offsetWidth-e.offsetWidth;n>0&&this.#n.setProperty("--progressBar-end-offset",`${n}px`)}setDisableAutoFetch(e=5e3){100===this.#r||isNaN(this.#r)||(this.#t&&clearTimeout(this.#t),this.show(),this.#t=setTimeout(()=>{this.#t=null,this.hide()},e))}hide(){this.#i&&(this.#i=!1,this.#e.add("hidden"))}show(){this.#i||(this.#i=!0,this.#e.remove("hidden"))}}const de=function(){const s=document.createElement("div");return s.style.width="round(down, calc(1.6666666666666665 * 792px), 1px)","calc(1320px)"===s.style.width?Math.fround:e=>e}();function ce(s){return function Jt(s){return s<11904}(s)?function qt(s){return!(65408&s)}(s)?function nn(s){return 32===s||9===s||13===s||10===s}(s)?0:function en(s){return s>=97&&s<=122||s>=65&&s<=90}(s)||function tn(s){return s>=48&&s<=57}(s)||95===s?1:2:function ln(s){return 3584==(65408&s)}(s)?7:160===s?0:1:function rn(s){return s>=13312&&s<=40959||s>=63744&&s<=64255}(s)?3:function sn(s){return s>=12448&&s<=12543}(s)?4:function an(s){return s>=12352&&s<=12447}(s)?5:function on(s){return s>=65376&&s<=65439}(s)?6:1}let et;const G={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3},tt={"\u2010":"-","\u2018":"'","\u2019":"'","\u201a":"'","\u201b":"'","\u201c":'"',"\u201d":'"',"\u201e":'"',"\u201f":'"',"\xbc":"1/4","\xbd":"1/2","\xbe":"3/4"}
1,nt=new Set([12441,12442,2381,2509,2637,2765,2893,3021,3149,3277,3387,3388,3405,3530,3642,3770,3972,4153,4154,5908,5940,6098,6752,6980,7082,7083,7154,7155,11647,43014,43052,43204,43347,43456,43766,44013,3158,3953,3954,3962,3963,3964,3965,3968,3956]);let it;const fn=new RegExp("\\p{M}+","gu"),pn=new RegExp("([.*+?^${}()|[\\]\\\\])|(\\p{P})|(\\s+)|(\\p{M})|(\\p{L})","gu"),gn=new RegExp("([^\\p{M}])\\p{M}*$","u"),mn=new RegExp("^\\p{M}*([^\\p{M}])","u"),bn=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,rt=new Map,st=new Map;let we=null,Pe=null;function xe(s){const e=[];let t,n;for(;null!==(t=bn.exec(s));){let{index:v}=t;for(const C of t[0]){let _=rt.get(C);_||(_=C.normalize("NFD").length,rt.set(C,_)),e.push([_,v++])}}if(0===e.length&&we)n=we;else if(e.length>0&&Pe)n=Pe;else{const S=`([${Object.keys(tt).join("")}])|([${function un(){return et||="\xa0\xa8\xaa\xaf\xb2-\xb5\xb8-\xba\xbc-\xbe\u0132-\u0133\u013f-\u0140\u0149\u017f\u01c4-\u01cc\u01f1-\u01f3\u02b0-\u02b8\u02d8-\u02dd\u02e0-\u02e4\u0374\u037a\u037e\u0384-\u0385\u0387\u03d0-\u03d6\u03f0-\u03f2\u03f4-\u03f5\u03f9\u0587\u0675-\u0678\u0958-\u095f\u09dc-\u09dd\u09df\u0a33\u0a36\u0a59-\u0a5b\u0a5e\u0b5c-\u0b5d\u0e33\u0eb3\u0edc-\u0edd\u0f0c\u0f43\u0f4d\u0f52\u0f57\u0f5c\u0f69\u10fc\u1d2c-\u1d2e\u1d30-\u1d3a\u1d3c-\u1d4d\u1d4f-\u1d6a\u1d78\u1d9b-\u1dbf\u1e9a-\u1e9b\u1f71\u1f73\u1f75\u1f77\u1f79\u1f7b\u1f7d\u1fbb\u1fbd-\u1fc1\u1fc9\u1fcb\u1fcd-\u1fcf\u1fd3\u1fdb\u1fdd-\u1fdf\u1fe3\u1feb\u1fed-\u1fef\u1ff9\u1ffb\u1ffd-\u1ffe\u2000-\u200a\u2011\u2017\u2024-\u2026\u202f\u2033-\u2034\u2036-\u2037\u203c\u203e\u2047-\u2049\u2057\u205f\u2070-\u2071\u2074-\u208e\u2090-\u209c\u20a8\u2100-\u2103\u2105-\u2107\u2109-\u2113\u2115-\u2116\u2119-\u211d\u2120-\u2122\u2124\u2126\u2128\u212a-\u212d\u212f-\u2131\u2133-\u2139\u213b-\u2140\u2145-\u2149\u2150-\u217f\u2189\u222c-\u222d\u222f-\u2230\u2329-\u232a\u2460-\u24ea\u2a0c\u2a74-\u2a76\u2adc\u2c7c-\u2c7d\u2d6f\u2e9f\u2ef3\u2f00-\u2fd5\u3000\u3036\u3038-\u303a\u309b-\u309c\u309f\u30ff\u3131-\u318e\u3192-\u319f\u3200-\u321e\u3220-\u3247\u3250-\u327e\u3280-\u33ff\ua69c-\ua69d\ua770\ua7f2-\ua7f4\ua7f8-\ua7f9\uab5c-\uab5f\uab69\uf900-\ufa0d\ufa10\ufa12\ufa15-\ufa1e\ufa20\ufa22\ufa25-\ufa26\ufa2a-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfc\ufe10-\ufe19\ufe30-\ufe44\ufe47-\ufe52\ufe54-\ufe66\ufe68-\ufe6b\ufe70-\ufe72\ufe74\ufe76-\ufefc\uff01-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc\uffe0-\uffe6",et}()}])|((?:\u3099|\u309a)\\n)|(\\p{M}+(?:-\\n)?)|(\\p{Ll}-\\n\\p{Lu})|(\\S-\\n)|((?:\\p{Ideographic}|[\u3040-\u30ff])\\n)|(\\n)`;n=0===e.length?we=new RegExp(S+"|(\\u0000)","gum"):Pe=new RegExp(S+"|([\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f])","gum")}const i=[];for(;null!==(t=fn.exec(s));)i.push([t[0].length,t.index]);let r=s.normalize("NFD");const a=[0,0];let o=0,l=0,u=0,d=0,f=0,g=!1;r=r.replace(n,(v,C,_,A,b,S,y,L,D,T,h)=>{if(h-=d,C){const p=tt[C],P=p.length;for(let w=1;w<P;w++)a.push(h-u+w,u-w);return u-=P-1,p}if(_){let p=st.get(_);p||(p=_.normalize("NFKC"),st.set(_,p));const P=p.length;for(let w=1;w<P;w++)a.push(h-u+w,u-w);return u-=P-1,p}if(A)return g=!0,h+f===i[o]?.[1]?++o:(a.push(h-1-u+1,u-1),u-=1,d+=1),a.push(h-u+1,u),d+=1,f+=1,A.charAt(0);if(b){const p=b.endsWith("\n"),P=p?b.length-2:b.length;g=!0;let w=P;h+f===i[o]?.[1]&&(w-=i[o][0],++o);for(let N=1;N<=w;N++)a.push(h-1-u+N,u-N);return u-=w,d+=w,p?(a.push((h+=P-1)-u+1,1+u),u+=1,d+=1,f+=1,b.slice(0,P)):b}if(S)return d+=1,f+=1,S.replace("\n","");if(y)return a.push(h-u+(y.length-2),1+u),u+=1,d+=1,f+=1,y.slice(0,-2);if(L)return a.push(h-u+(L.length-1),u),d+=1,f+=1,L.slice(0,-1);if(D)return a.push(h-u+1,u-1),u-=1,d+=1,f+=1," ";if(h+f===e[l]?.[1]){const p=e[l][0]-1;++l;for(let P=1;P<=p;P++)a.push(h-(u-P),u-P);u-=p,d+=p}return T}),a.push(r.length,u);const m=new Uint32Array(a.length>>1),x=new Int32Array(a.length>>1);for(let v=0,C=a.length;v<C;v+=2)m[v>>1]=a[v],x[v>>1]=a[v+1];return[r,[m,x],g]}class vn{#e=null;#t=!0;#r=0;constructor({linkService:e,eventBus:t,updateMatchesCountOnProgress:n=!0}){this._linkService=e,this._eventBus=t,this.#t=n,this.onIsPageVisible=null,this.#i(),t._on("find",this.#n.bind(this)),t._on("findbarclose",this.#b.bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this.#e}setDocument(e){this._pdfDocument&&this.#i(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}#n(e){if(!e)return;const t=this._pdfDocument,{type:n}=e;(null===this.#e||this.#a(e))&&(this._dirtyMatch=!0),this.#e=e,"highlightallchange"!==n&&this.#_(G.PENDING),this._firstPageCapability.promise.then(()=>
1{if(!this._pdfDocument||t&&this._pdfDocument!==t)return;this.#d();const i=!this._highlightMatches,r=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),n?this._dirtyMatch?this.#c():"again"===n?(this.#c(),i&&this.#e.highlightAll&&this.#p()):"highlightallchange"===n?(r?this.#c():this._highlightMatches=!0,this.#p()):this.#c():this._findTimeout=setTimeout(()=>{this.#c(),this._findTimeout=null},250)})}scrollMatchIntoView({element:e=null,selectedLeft:t=0,pageIndex:n=-1,matchIndex:i=-1}){this._scrollMatches&&e&&-1!==i&&i===this._selected.matchIdx&&-1!==n&&n===this._selected.pageIdx&&(this._scrollMatches=!1,Ze(e,{top:-50,left:t+-400},!0))}#i(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this.#r=0,this.#e=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=Promise.withResolvers()}get#s(){const{query:e}=this.#e;return"string"==typeof e?(e!==this._rawQuery&&(this._rawQuery=e,[this._normalizedQuery]=xe(e)),this._normalizedQuery):(e||[]).filter(t=>!!t).map(t=>xe(t)[0])}#a(e){const t=e.query,n=this.#e.query,i=typeof t;if(i!==typeof n)return!0;if("string"===i){if(t!==n)return!0}else if(JSON.stringify(t)!==JSON.stringify(n))return!0;switch(e.type){case"again":const a=this._selected.pageIdx+1,o=this._linkService;return a>=1&&a<=o.pagesCount&&a!==o.page&&!(this.onIsPageVisible?.(a)??1);case"highlightallchange":return!1}return!0}#l(e,t,n){let i=e.slice(0,t).match(gn);if(i){const r=e.charCodeAt(t),a=i[1].charCodeAt(0);if(ce(r)===ce(a))return!1}if(i=e.slice(t+n).match(mn),i){const r=e.charCodeAt(t+n-1),a=i[1].charCodeAt(0);if(ce(r)===ce(a))return!1}return!0}#u(e,t){const{matchDiacritics:n}=this.#e;let i=!1;return(e=e.replaceAll(pn,(a,o,l,u,d,f)=>o?`[ ]*\\${o}[ ]*`:l?`[ ]*${l}[ ]*`:u?"[ ]+":n?d||f:d?nt.has(d.charCodeAt(0))?d:"":t?(i=!0,`${f}\\p{M}*`):f)).endsWith("[ ]*")&&(e=e.slice(0,e.length-4)),n&&t&&(it||=String.fromCharCode(...nt),i=!0,e=`${e}(?=[${it}]|[^\\p{M}]|$)`),[i,e]}#o(e){const t=this.#s;if(0===t.length)return;const i=this.match(t,this._pageContents[e],e),r=this._pageMatches[e]=[],a=this._pageMatchesLength[e]=[],o=this._pageDiffs[e];i?.forEach(({index:u,length:d})=>{const[f,g]=function _n(s,e,t){if(!s)return[e,t];const[n,i]=s,r=e,a=e+t-1;let o=ne(n,g=>g>=r);n[o]>r&&--o;let l=ne(n,g=>g>=a,o);n[l]>a&&--l;const u=r+i[o];return[u,a+i[l]+1-u]}(o,u,d);g&&(r.push(f),a.push(g))}),this.#e.highlightAll&&this.#f(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this.#h());const l=r.length;this._matchesCountTotal+=l,this.#t?l>0&&this.#y():++this.#r===this._linkService.pagesCount&&this.#y()}match(e,t,n){const i=this._hasDiacritics[n];let r=!1;if("string"==typeof e?[r,e]=this.#u(e,i):e=e.sort().reverse().map(f=>{const[g,m]=this.#u(f,i);return r||=g,`(${m})`}).join("|"),!e)return;const{caseSensitive:a,entireWord:o}=this.#e;e=new RegExp(e,`g${r?"u":""}${a?"":"i"}`);const u=[];let d;for(;null!==(d=e.exec(t));)o&&!this.#l(t,d.index,d[0].length)||u.push({index:d.index,length:d[0].length});return u}#d(){if(this._extractTextPromises.length>0)return;let e=Promise.resolve();const t={disableNormalization:!0};for(let n=0,i=this._linkService.pagesCount;n<i;n++){const{promise:r,resolve:a}=Promise.withResolvers();this._extractTextPromises[n]=r,e=e.then(()=>this._pdfDocument.getPage(n+1).then(o=>o.getTextContent(t)).then(o=>{const l=[];for(const u of o.items)l.push(u.str),u.hasEOL&&l.push("\n");[this._pageContents[n],this._pageDiffs[n],this._hasDiacritics[n]]=xe(l.join("")),a()},o=>{console.error(`Unable to get text content for page ${n+1}`,o),this._pageContents[n]="",this._pageDiffs[n]=null,this._hasDiacritics[n]=!1,a()}))}}#f(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}#p(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}#c(){const e=this.#e.findPrevious,t=this._linkService.page-1,n=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=t,this._offset.matchI
1dx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this.#r=0,this._matchesCountTotal=0,this.#p();for(let a=0;a<n;a++)this._pendingFindMatches.has(a)||(this._pendingFindMatches.add(a),this._extractTextPromises[a].then(()=>{this._pendingFindMatches.delete(a),this.#o(a)}))}if(0===this.#s.length)return void this.#_(G.FOUND);if(this._resumePageIdx)return;const r=this._offset;if(this._pagesToSearch=n,null!==r.matchIdx){if(!e&&r.matchIdx+1<this._pageMatches[r.pageIdx].length||e&&r.matchIdx>0)return r.matchIdx=e?r.matchIdx-1:r.matchIdx+1,void this.#E(!0);this.#m(e)}this.#h()}#g(e){const t=this._offset,n=e.length,i=this.#e.findPrevious;return n?(t.matchIdx=i?n-1:0,this.#E(!0),!0):(this.#m(i),!!(t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0))&&(this.#E(!1),!0))}#h(){null!==this._resumePageIdx&&console.error("There can only be one pending page.");let e=null;do{const t=this._offset.pageIdx;if(e=this._pageMatches[t],!e){this._resumePageIdx=t;break}}while(!this.#g(e))}#m(e){const t=this._offset,n=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=n||t.pageIdx<0)&&(t.pageIdx=e?n-1:0,t.wrapped=!0)}#E(e=!1){let t=G.NOT_FOUND;const n=this._offset.wrapped;if(this._offset.wrapped=!1,e){const i=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=n?G.WRAPPED:G.FOUND,-1!==i&&i!==this._selected.pageIdx&&this.#f(i)}this.#_(t,this.#e.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this.#f(this._selected.pageIdx))}#b(e){const t=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||t&&this._pdfDocument!==t||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this.#_(G.FOUND),this._highlightMatches=!1,this.#p())})}#v(){const{pageIdx:e,matchIdx:t}=this._selected;let n=0,i=this._matchesCountTotal;if(-1!==t){for(let r=0;r<e;r++)n+=this._pageMatches[r]?.length||0;n+=t+1}return(n<1||n>i)&&(n=i=0),{current:n,total:i}}#y(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this.#v()})}#_(e,t=!1){!this.#t&&(this.#r!==this._linkService.pagesCount||e===G.PENDING)||this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,entireWord:this.#e?.entireWord??null,matchesCount:this.#v(),rawQuery:this.#e?.query??null})}}const K={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};class he{externalLinkEnabled=!0;constructor({eventBus:e,externalLinkTarget:t=null,externalLinkRel:n=null,ignoreDestinationZoom:i=!1}={}){this.eventBus=e,this.externalLinkTarget=t,this.externalLinkRel=n,this._ignoreDestinationZoom=i,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(e,t=null){this.baseUrl=t,this.pdfDocument=e}setViewer(e){this.pdfViewer=e}setHistory(e){this.pdfHistory=e}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfDocument?this.pdfViewer.currentPageNumber:1}set page(e){this.pdfDocument&&(this.pdfViewer.currentPageNumber=e)}get rotation(){return this.pdfDocument?this.pdfViewer.pagesRotation:0}set rotation(e){this.pdfDocument&&(this.pdfViewer.pagesRotation=e)}get isInPresentationMode(){return!!this.pdfDocument&&this.pdfViewer.isInPresentationMode}goToDestination(e){var t=this;return(0,E.A)(function*(){if(!t.pdfDocument)return;let n,i,r;if("string"==typeof e?(n=e,i=yield t.pdfDocument.getDestination(e)):(n=null,i=yield e),!Array.isArray(i))return void console.error(`goToDestination: "${i}" is not a valid destination array, for dest="${e}".`);const[a]=i;if(a&&"object"==typeof a){if(r=t.pdfDocument.cachedPageNumber(a),!r)try{r=(yield t.pdfDocument.getPageIndex(a))+1}catch{return void console.error(`goToDestination: "${a}" is not a valid page reference, for dest="${e}".`)}}else Number.isInteger(a)&&(r=a+1);!r||r<1||r>t.pagesCount?console.error(`goToDestination: "${r}" is not a valid page number, for dest="${e}".`):(t.pdfHistory&&(t.pdfHistory.pushCurrentPosition(),t.pdfHistory.push({namedDest:n,explicitDest:i,pageNumber:r})),t.pdfViewer.scrollPageIntoView({pageNumber:r,destArray:i,ignoreDestinationZoom:t._ignoreDestinationZoom}))})()}goToPage(e){if(!this.pdfDocument)return;const t="string"==typeof e&&this.pdfViewer.pageLabelToPageNumber(e)||0|e;Number.isInteger(t)&&t>0&&t<=this.pagesCount?(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(t)),this.pdfViewer.scrollPageIntoView({pageNumber:t})):console.error(`PDFLinkService.goToPage: "${e}" is not a valid page.`)}addLinkAttributes(e,t,n=!1){if(!t||"string"!=typeof t)throw new Error('A valid "url" parameter must provided.');const i=n?K.BLANK:this.externalLinkTarget,r=this.externalLinkRel;this.externalLinkEnabled?e.href=e.title=t:(e.href="",e.title=`Disabled: ${t}`,e.onclick=()=>!1);let a="";switch(i){case K.NONE:break;case K.SELF:a="_self";break;case K.BLANK:a="_blank";break;case K.PARENT:a="_parent";break;case K.TOP:a="_top"}e.target=a,e.rel="string"==typeof r?r:"noopener noreferrer nofollow"}getDestinationHash(e){if("string"==typeof e){if(e.length>0)return this.getAnchorUrl("#"+escape(e))}else if(Array.isArray(e)){const t=JSON.stringify(e);if(t.length>0)return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}getAnchorUrl(e){return this.baseUrl?this.baseUrl+e:e}setHash(e){if(!this.pdfDocument)return;let t,n;if(e.includes("=")){const i=le(e);
1if(i.has("search")){const r=i.get("search").replaceAll('"',""),a="true"===i.get("phrase");this.eventBus.dispatch("findfromurlhash",{source:this,query:a?r:r.match(/\S+/g)})}if(i.has("page")&&(t=0|i.get("page")||1),i.has("zoom")){const r=i.get("zoom").split(","),a=r[0],o=parseFloat(a);a.includes("Fit")?"Fit"===a||"FitB"===a?n=[null,{name:a}]:"FitH"===a||"FitBH"===a||"FitV"===a||"FitBV"===a?n=[null,{name:a},r.length>1?0|r[1]:null]:"FitR"===a?5!==r.length?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:a},0|r[1],0|r[2],0|r[3],0|r[4]]:console.error(`PDFLinkService.setHash: "${a}" is not a valid zoom value.`):n=[null,{name:"XYZ"},r.length>1?0|r[1]:null,r.length>2?0|r[2]:null,o?o/100:a]}return n?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:n,allowNegativeOffset:!0}):t&&(this.page=t),i.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:i.get("pagemode")}),void(i.has("nameddest")&&this.goToDestination(i.get("nameddest")))}n=unescape(e);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch{}"string"==typeof n||he.#e(n)?this.goToDestination(n):console.error(`PDFLinkService.setHash: "${unescape(e)}" is not a valid destination.`)}executeNamedAction(e){if(this.pdfDocument){switch(e){case"GoBack":this.pdfHistory?.back();break;case"GoForward":this.pdfHistory?.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:e})}}executeSetOCGState(e){var t=this;return(0,E.A)(function*(){if(!t.pdfDocument)return;const n=t.pdfDocument,i=yield t.pdfViewer.optionalContentConfigPromise;n===t.pdfDocument&&(i.setOCGState(e),t.pdfViewer.optionalContentConfigPromise=Promise.resolve(i))})()}static#e(e){if(!Array.isArray(e)||e.length<2)return!1;const[t,n,...i]=e;if(("object"!=typeof t||!Number.isInteger(t?.num)||!Number.isInteger(t?.gen))&&!Number.isInteger(t)||"object"!=typeof n||"string"!=typeof n?.name)return!1;const r=i.length;let a=!0;switch(n.name){case"XYZ":if(r<2||r>3)return!1;break;case"Fit":case"FitB":return 0===r;case"FitH":case"FitBH":case"FitV":case"FitBV":if(r>1)return!1;break;case"FitR":if(4!==r)return!1;a=!1;break;default:return!1}for(const o of i)if(!("number"==typeof o||a&&null===o))return!1;return!0}}class Se extends he{setDocument(e,t=null){}}const{AbortException:wn,AnnotationEditorLayer:Pn,AnnotationEditorType:j,AnnotationEditorUIManager:xn,AnnotationLayer:Sn,AnnotationMode:U,createValidAbsoluteUrl:An,DrawLayer:In,fetchData:at,getPdfFilenameFromUrl:Ln,isPdfFile:Tn,normalizeUnicode:Cn,OutputScale:Rn,PermissionFlag:fe,PixelsPerInch:$,RenderingCancelledException:Ae,setLayerDimensions:Nn,shadow:pe,stopEvent:Ie,TextLayer:Mn,version:ot,XfaLayer:Le}=globalThis.pdfjsLib;class lt{#e=null;#t=null;constructor({pdfPage:e,linkService:t,downloadManager:n,annotationStorage:i=null,imageResourcesPath:r="",renderForms:a=!0,enableScripting:o=!1,hasJSActionsPromise:l=null,fieldObjectsPromise:u=null,annotationCanvasMap:d=null,accessibilityManager:f=null,annotationEditorUIManager:g=null,onAppend:m=null}){this.pdfPage=e,this.linkService=t,this.downloadManager=n,this.imageResourcesPath=r,this.renderForms=a,this.annotationStorage=i,this.enableScripting=o,this._hasJSActionsPromise=l||Promise.resolve(!1),this._fieldObjectsPromise=u||Promise.resolve(null),this._annotationCanvasMap=d,this._accessibilityManager=f,this._annotationEditorUIManager=g,this.#e=m,this.annotationLayer=null,this.div=null,this._cancelled=!1,this._eventBus=t.eventBus}render(e,t){var n=this;return(0,E.A)(function*(i,r,a="display"){if(n.div){if(n._cancelled||!n.annotationLayer)return;return void n.annotationLayer.update({viewport:i.clone({dontFlip:!0})})}const[o,l,u]=yield Promise.all([n.pdfPage.getAnnotations({intent:a}),n._hasJSActionsPromise,n._fieldObjectsPromise]);if(n._cancelled)return;const d=n.div=document.createElement("div");d.className="annotationLayer",n.#e?.(d),0!==o.length?(n.annotationLayer=new Sn({div:d,accessibilityManager:n._accessibilityManager,annotationCanvasMap:n._annotationCanvasMap,annotationEditorUIManager:n._annotationEditorUIManager,page:n.pdfPage,viewport:i.clone({dontFlip:!0}),structTreeLayer:r?.structTreeLayer||null}),yield n.annotationLayer.render({annotations:o,imageResourcesPath:n.imageResourcesPath,renderForms:n.renderForms,linkService:n.linkService,downloadManager:n.downloadManager,annotationStorage:n.annotationStorage,enableScripting:n.enableScripting,hasJSActions:l,fieldObjects:u}),n.linkService.isInPresentationMode&&n.#r(3),n.#t||(n.#t=new AbortController,n._eventBus?._on("presentationmodechanged",f=>{n.#r(f.state)},{signal:n.#t.signal}))):n.hide()}).apply(this,arguments)}cancel(){this._cancelled=!0,this.#t?.abort(),this.#t=null}hide(){this.div&&(this.div.hidden=!0)}hasEditableAnnotations(){return!!this.annotationLayer?.hasEditableAnnotations()}#r(e){if(!this.div)return;let t=!1;switch(e){case 3:t=!0;break;case 1:break;default:return}for(const n of this.div.childNodes)n.hasAttribute("data-internal-link")||(n.inert=t)}}function ut(s,e){const t=document.createElement("a");if(!t.click)throw new Error('DownloadManager: "a.click()" is not supported.');t.href=s,t.target="_parent","download"in t&&(t.download=e),(document.body||document.documentElement).append(t),t.click(),t.remove()}class kn{#e=new WeakMap;downloadData(e,t,n){ut(URL.createObjectURL(new Blob([e],{type:n})),t)}openOrDownloadData(e,t,n=null){const r=Tn(t)?"application/pdf":"";return this.downloadData(e,t,r),!1}download(e,t,n){let i;if(e)i=URL.createObjectURL(new Blob([e],{type:"application/pdf"}));else{if(!An(t,"http://example.com"))return void console.error(`download - not a valid URL: ${t}`);i=t+"#pdfjs.action=download"}ut(i,n)}}const dt_EVENT="event",dt_TIMEOUT="timeout";function Te(){return(Te=(0,E.A)(function*({target:s,name:e,delay:t=0}){if("object"!=typeof s||!e||"string"!=typeof e||!(Number.isInteger(t)&&t>
1=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");const{promise:n,resolve:i}=Promise.withResolvers(),r=new AbortController;function a(u){r.abort(),clearTimeout(l),i(u)}s[s instanceof Ce?"_on":"addEventListener"](e,a.bind(null,dt_EVENT),{signal:r.signal});const l=setTimeout(a.bind(null,dt_TIMEOUT),t);return n})).apply(this,arguments)}class Ce{#e=Object.create(null);on(e,t,n=null){this._on(e,t,{external:!0,once:n?.once,signal:n?.signal})}off(e,t,n=null){this._off(e,t)}dispatch(e,t){const n=this.#e[e];if(!n||0===n.length)return;let i;for(const{listener:r,external:a,once:o}of n.slice(0))o&&this._off(e,r),a?(i||=[]).push(r):r(t);if(i){for(const r of i)r(t);i=null}}_on(e,t,n=null){let i=null;if(n?.signal instanceof AbortSignal){const{signal:a}=n;if(a.aborted)return void console.error("Cannot use an `aborted` signal.");const o=()=>this._off(e,t);i=()=>a.removeEventListener("abort",o),a.addEventListener("abort",o)}(this.#e[e]||=[]).push({listener:t,external:!0===n?.external,once:!0===n?.once,rmAbort:i})}_off(e,t,n=null){const i=this.#e[e];if(i)for(let r=0,a=i.length;r<a;r++){const o=i[r];if(o.listener===t)return o.rmAbort?.(),void i.splice(r,1)}}}class ge{constructor(e){this.value=e}valueOf(){return this.value}}class k extends ge{constructor(e="???"){super(e)}toString(e){return`{${this.value}}`}}class W extends ge{constructor(e,t={}){super(e),this.opts=t}toString(e){try{return e.memoizeIntlObject(Intl.NumberFormat,this.opts).format(this.value)}catch(t){return e.reportError(t),this.value.toString(10)}}}class ie extends ge{constructor(e,t={}){super(e),this.opts=t}toString(e){try{return e.memoizeIntlObject(Intl.DateTimeFormat,this.opts).format(this.value)}catch(t){return e.reportError(t),new Date(this.value).toISOString()}}}const ct=100,On="\u2068",Fn="\u2069";function jn(s,e,t){return t===e||t instanceof W&&e instanceof W&&t.value===e.value||e instanceof W&&"string"==typeof t&&t===s.memoizeIntlObject(Intl.PluralRules,e.opts).select(e.value)}function ht(s,e,t){return e[t]?Y(s,e[t].value):(s.reportError(new RangeError("No default")),new k)}function Re(s,e){const t=[],n=Object.create(null);for(const i of e)"narg"===i.type?n[i.name]=re(s,i.value):t.push(re(s,i));return{positional:t,named:n}}function re(s,e){switch(e.type){case"str":return e.value;case"num":return new W(e.value,{minimumFractionDigits:e.precision});case"var":return function Vn(s,{name:e}){let t;if(s.params){if(!Object.prototype.hasOwnProperty.call(s.params,e))return new k(`$${e}`);t=s.params[e]}else{if(!s.args||!Object.prototype.hasOwnProperty.call(s.args,e))return s.reportError(new ReferenceError(`Unknown variable: $${e}`)),new k(`$${e}`);t=s.args[e]}if(t instanceof ge)return t;switch(typeof t){case"string":return t;case"number":return new W(t);case"object":if(t instanceof Date)return new ie(t.getTime());default:return s.reportError(new TypeError(`Variable type not supported: $${e}, ${typeof t}`)),new k(`$${e}`)}}(s,e);case"mesg":return function Bn(s,{name:e,attr:t}){const n=s.bundle._messages.get(e);if(!n)return s.reportError(new ReferenceError(`Unknown message: ${e}`)),new k(e);if(t){const i=n.attributes[t];return i?Y(s,i):(s.reportError(new ReferenceError(`Unknown attribute: ${t}`)),new k(`${e}.${t}`))}return n.value?Y(s,n.value):(s.reportError(new ReferenceError(`No value: ${e}`)),new k(e))}(s,e);case"term":return function Hn(s,{name:e,attr:t,args:n}){const i=`-${e}`,r=s.bundle._terms.get(i);if(!r)return s.reportError(new ReferenceError(`Unknown term: ${i}`)),new k(i);if(t){const o=r.attributes[t];if(o){s.params=Re(s,n).named;const l=Y(s,o);return s.params=null,l}return s.reportError(new ReferenceError(`Unknown attribute: ${t}`)),new k(`${i}.${t}`)}s.params=Re(s,n).named;const a=Y(s,r.value);return s.params=null,a}(s,e);case"func":return function Un(s,{name:e,args:t}){let n=s.bundle._functions[e];if(!n)return s.reportError(new ReferenceError(`Unknown function: ${e}()`)),new k(`${e}()`);if("function"!=typeof n)return s.reportError(new TypeError(`Function ${e}() is not callable`)),new k(`${e}()`);try{let i=Re(s,t);return n(i.positional,i.named)}catch(i){return s.reportError(i),new k(`${e}()`)}}(s,e);case"select":return function $n(s,{selector:e,variants:t,star:n}){let i=re(s,e);if(i instanceof k)return ht(s,t,n);for(const r of t)if(jn(s,i,re(s,r.key)))return Y(s,r.value);return ht(s,t,n)}(s,e);default:return new k}}function ft(s,e){if(s.dirty.has(e))return s.reportError(new RangeError("Cyclic reference")),new k;s.dirty.add(e);const t=[],n=s.bundle._useIsolating&&e.length>1;for(const i of e)if("string"!=typeof i){if(s.placeables++,s.placeables>ct)throw s.dirty.delete(e),new RangeError(`Too many placeables expanded: ${s.placeables}, max allowed is ${ct}`);
vendor: 7,291 bytes, line 1
1n&&t.push(On),t.push(re(s,i).toString(s)),n&&t.push(Fn)}else t.push(s.bundle._transform(i));return s.dirty.delete(e),t.join("")}function Y(s,e){return"string"==typeof e?s.bundle._transform(e):ft(s,e)}class Wn{constructor(e,t,n){this.dirty=new WeakSet,this.params=null,this.placeables=0,this.bundle=e,this.errors=t,this.args=n}reportError(e){if(!(this.errors&&e instanceof Error))throw e;this.errors.push(e)}memoizeIntlObject(e,t){let n=this.bundle._intls.get(e);n||(n={},this.bundle._intls.set(e,n));let i=JSON.stringify(t);return n[i]||(n[i]=new e(this.bundle.locales,t)),n[i]}}function me(s,e){const t=Object.create(null);for(const[n,i]of Object.entries(s))e.includes(n)&&(t[n]=i.valueOf());return t}const pt=["unitDisplay","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function zn(s,e){let t=s[0];if(t instanceof k)return new k(`NUMBER(${t.valueOf()})`);if(t instanceof W)return new W(t.valueOf(),{...t.opts,...me(e,pt)});if(t instanceof ie)return new W(t.valueOf(),{...me(e,pt)});throw new TypeError("Invalid argument to NUMBER")}const gt=["dateStyle","timeStyle","fractionalSecondDigits","dayPeriod","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Gn(s,e){let t=s[0];if(t instanceof k)return new k(`DATETIME(${t.valueOf()})`);if(t instanceof ie)return new ie(t.valueOf(),{...t.opts,...me(e,gt)});if(t instanceof W)return new ie(t.valueOf(),{...me(e,gt)});throw new TypeError("Invalid argument to DATETIME")}const mt=new Map;class Xn{constructor(e,{functions:t,useIsolating:n=!0,transform:i=r=>r}={}){this._terms=new Map,this._messages=new Map,this.locales=Array.isArray(e)?e:[e],this._functions={NUMBER:zn,DATETIME:Gn,...t},this._useIsolating=n,this._transform=i,this._intls=function Kn(s){const e=Array.isArray(s)?s.join(" "):s;let t=mt.get(e);return void 0===t&&(t=new Map,mt.set(e,t)),t}(e)}hasMessage(e){return this._messages.has(e)}getMessage(e){return this._messages.get(e)}addResource(e,{allowOverrides:t=!1}={}){const n=[];for(let i=0;i<e.body.length;i++){let r=e.body[i];if(r.id.startsWith("-")){if(!1===t&&this._terms.has(r.id)){n.push(new Error(`Attempt to override an existing term: "${r.id}"`));continue}this._terms.set(r.id,r)}else{if(!1===t&&this._messages.has(r.id)){n.push(new Error(`Attempt to override an existing message: "${r.id}"`));continue}this._messages.set(r.id,r)}}return n}formatPattern(e,t=null,n=null){if("string"==typeof e)return this._transform(e);let i=new Wn(this,n,t);try{return ft(i,e).toString(i)}catch(r){if(i.errors&&r instanceof Error)return i.errors.push(r),(new k).toString(i);throw r}}}const Ne=/^(-?[a-zA-Z][\w-]*) *= */gm,bt=/\.([a-zA-Z][\w-]*) *= */y,Zn=/\*?\[/y,Me=/(-?[0-9]+(?:\.([0-9]+))?)/y,Qn=/([a-zA-Z][\w-]*)/y,Et=/([$-])?([a-zA-Z][\w-]*)(?:\.([a-zA-Z][\w-]*))?/y,Yn=/^[A-Z][A-Z0-9_-]*$/,be=/([^{}\n\r]+)/y,Jn=/([^\\"\n\r]*)/y,_t=/\\([\\"])/y,vt=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{6})/y,qn=/^\n+/,yt=/ +$/,ei=/ *\r?\n/g,ti=/( *)$/,ni=/{\s*/y,wt=/\s*}/y,ii=/\[\s*/y,ri=/\s*] */y,si=/\s*\(\s*/y,ai=/\s*->\s*/y,oi=/\s*:\s*/y,li=/\s*,?\s*/y,ui=/\s+/y;class di{constructor(e){this.body=[],Ne.lastIndex=0;let t=0;for(;;){let h=Ne.exec(e);if(null===h)break;t=Ne.lastIndex;try{this.body.push(l(h[1]))}catch(p){if(p instanceof SyntaxError)continue;throw p}}function n(h){return h.lastIndex=t,h.test(e)}function i(h,p){if(e[t]===h)return t++,!0;if(p)throw new p(`Expected ${h}`);return!1}function r(h,p){if(n(h))return t=h.lastIndex,!0;if(p)throw new p(`Expected ${h.toString()}`);return!1}function a(h){h.lastIndex=t;let p=h.exec(e);if(null===p)throw new SyntaxError(`Expected ${h.toString()}`);return t=h.lastIndex,p}function o(h){return a(h)[1]}function l(h){let p=d(),P=function u(){let h=Object.create(null);for(;n(bt);){let p=o(bt),P=d();if(null===P)throw new SyntaxError("Expected attribute value");h[p]=P}return h}();if(null===p&&0===Object.keys(P).length)throw new SyntaxError("Expected message value or attributes");return{id:h,value:p,attributes:P}}function d(){let h;if(n(be)&&(h=o(be)),"{"===e[t]||"}"===e[t])return f(h?[h]:[],1/0);let p=L();return p?h?f([h,p],p.length):(p.value=D(p.value,qn),f([p],p.length)):h?D(h,yt):null}function f(h=[],p){for(;;){if(n(be)){h.push(o(be));continue}if("{"===e[t]){h.push(g());continue}if("}"===e[t])throw new SyntaxError("Unbalanced closing brace");let F=L();if(!F)break;h.push(F),p=Math.min(p,F.length)}let P=h.length-1,w=h[P];"string"==typeof w&&(h[P]=D(w,yt));let N=[];for(let F of h)F instanceof Pt&&(F=F.value.slice(0,F.value.length-p)),F&&N.push(F);return N}function g(){r(ni,SyntaxError);let h=m();if(r(wt))return h;if(r(ai)){let p=function C(){let P,h=[],p=0;for(;n(Zn);){i("*")&&(P=p);let w=_(),N=d();if(null===N)throw new SyntaxError("Expected variant value");h[p++]={key:w,value:N}}if(0===p)return null;if(void 0===P)throw new SyntaxError("Expected default variant");return{variants:h,star:P}}();return r(wt,SyntaxError),{type:"select",selector:h,...p}}throw new SyntaxError("Unclosed placeable")}function m(){if("{"===e[t])return g();if(n(Et)){let[,h,p,P=null]=a(Et);if("$"===h)return{type:"var",name:p};if(r(si)){let w=function x(){let h=[];for(;;){switch(e[t]){case")":return t++,h;case void 0:throw new SyntaxError("Unclosed argument list")}h.push(v()),r(li)}}();if("-"===h)return{type:"term",name:p,attr:P,args:w};if(Yn.test(p))return{type:"func",name:p,args:w};throw new SyntaxError("Function names must be all upper-case")}return"-"===h?{type:"term",name:p,attr:P,args:[]}:{type:"mesg",name:p,attr:P}}return A()}function v(){let h=m();return"mesg"!==h.type?h:r(oi)?{type:"narg",name:h.name,value:A()}:h}function _(){let h;return r(ii,SyntaxError),h=n(Me)?b():{type:"str",value:o(Qn)},r(ri,SyntaxError),h}function A(){if(n(Me))return b();if('"'===e[t])return function S(){i('"',SyntaxError);let h="";for(;;){if(h+=o(Jn),"\\"!==e[t]){if(i('"'))return{type:"str",value:h};throw new SyntaxError("Unclosed string literal")}h+=y()}}();throw new SyntaxError("Invalid expression")}function b(){let[,h,p=""]=a(Me),P=p.length;return{type:"num",value:parseFloat(h),precision:P}}function y(){if(n(_t))return o(_t);if(n(vt)){let[,h,p]=a(vt),P=parseInt(h||p,16);return P<=55295||57344<=P?String.fromCodePoint(P):"\ufffd"}throw new SyntaxError("Unknown escape sequence")}function L(){let h=t;switch(r(ui),e[t]){case".":case"[":case"*":case"}":case void 0:return!1;case"{":return T(e.slice(h,t))}return" "===e[t-1]&&T(e.slice(h,t))}function D(h,p){return h.replace(p,"")}function T(h){let p=h.replace(ei,"\n"),P=ti.exec(h)[1].length;return new Pt(p,P)}}}class Pt{constructor(e,t){this.value=e,this.length=t}}const ci=/<|&#?\w+;/,hi={"http://www.w3.org/1999/xhtml":["em","strong","small","s","cite","q","dfn","abbr","data","time","code","var","samp","kbd","sub","sup","i","b","u","mark","bdi","bdo","span","br","wbr"]},fi={"http://www.w3.org/1999/xhtml":{global:["title","aria-label","aria-valuetext"],a:["download"],area:["download","alt"],input:["alt","placeholder"],menuitem:["label"],menu:["label"],optgroup:["label"],option:["label"],track:["label"],img:["alt"],textarea:["placeholder"],th:["abbr"]},"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul":{global:["accesskey","aria-label","aria-valuetext","label","t
1itle","tooltiptext"],description:["value"],key:["key","keycode"],label:["value"],textbox:["placeholder","value"]}};function pi(s,e){const{value:t}=e;if("string"==typeof t)if("title"===s.localName&&"http://www.w3.org/1999/xhtml"===s.namespaceURI)s.textContent=t;else if(ci.test(t)){const n=s.ownerDocument.createElementNS("http://www.w3.org/1999/xhtml","template");n.innerHTML=t,function gi(s,e){for(const t of s.childNodes)if(t.nodeType!==t.TEXT_NODE){if(t.hasAttribute("data-l10n-name")){const n=bi(e,t);s.replaceChild(n,t);continue}if(_i(t)){const n=Ei(t);s.replaceChild(n,t);continue}console.warn(`An element of forbidden type "${t.localName}" was found in the translation. Only safe text-level elements and elements with data-l10n-name are allowed.`),s.replaceChild(ke(t),t)}e.textContent="",e.appendChild(s)}(n.content,s)}else s.textContent=t;xt(e,s)}function mi(s,e){if(!s)return!1;for(let t of s)if(t.name===e)return!0;return!1}function xt(s,e){const t=e.hasAttribute("data-l10n-attrs")?e.getAttribute("data-l10n-attrs").split(",").map(n=>n.trim()):null;for(const n of Array.from(e.attributes))St(n.name,e,t)&&!mi(s.attributes,n.name)&&e.removeAttribute(n.name);if(s.attributes)for(const n of Array.from(s.attributes))St(n.name,e,t)&&e.getAttribute(n.name)!==n.value&&e.setAttribute(n.name,n.value)}function bi(s,e){const t=e.getAttribute("data-l10n-name"),n=s.querySelector(`[data-l10n-name="${t}"]`);return n?n.localName!==e.localName?(console.warn(`An element named "${t}" was found in the translation but its type ${e.localName} didn't match the element found in the source (${n.localName}).`),ke(e)):(s.removeChild(n),At(e,n.cloneNode(!1))):(console.warn(`An element named "${t}" wasn't found in the source.`),ke(e))}function Ei(s){const e=s.ownerDocument.createElement(s.localName);return At(s,e)}function ke(s){return s.ownerDocument.createTextNode(s.textContent)}function _i(s){const e=hi[s.namespaceURI];return e&&e.includes(s.localName)}function St(s,e,t=null){if(t&&t.includes(s))return!0;const n=fi[e.namespaceURI];if(!n)return!1;const i=s.toLowerCase(),r=e.localName;if(n.global.includes(i))return!0;if(!n[r])return!1;if(n[r].includes(i))return!0;if("http://www.w3.org/1999/xhtml"===e.namespaceURI&&"input"===r&&"value"===i){const a=e.type.toLowerCase();if("submit"===a||"button"===a||"reset"===a)return!0}return!1}function At(s,e){return e.textContent=s.textContent,xt(s,e),e}class It extends Array{static from(e){return e instanceof this?e:new this(e)}}Symbol;class vi extends It{constructor(e){if(super(),Symbol.asyncIterator in Object(e))this.iterator=e[Symbol.asyncIterator]();else{if(!(Symbol.iterator in Object(e)))throw new TypeError("Argument must implement the iteration protocol.");this.iterator=e[Symbol.iterator]()}}[Symbol.asyncIterator](){const e=this;let t=0;return{next:()=>(0,E.A)(function*(){return e.length<=t&&e.push(e.iterator.next()),e[t++]})()}}touchNext(){var e=this;return(0,E.A)(function*(t=1){let n=0;for(;n++<t;){const i=e[e.length-1];if(i&&(yield i).done)break;e.push(e.iterator.next())}return e[e.length-1]}).apply(this,arguments)}}class yi{constructor(e=[],t){this.resourceIds=e,this.generateBundles=t,this.onChange(!0)}addResourceIds(e,t=!1){return this.resourceIds.push(...e),this.onChange(t),this.resourceIds.length}removeResourceIds(e){return this.resourceIds=this.resourceIds.filter(t=>!e.includes(t)),this.onChange(),this.resourceIds.length}formatWithFallback(e,t){var n=this;return(0,E.A)(function*(){const i=[];let r=!1;var l,a=!1,o=!1;try{for(var d,u=function Ft(s){var e,t,n,i=2;for(typeof Symbol<"u"&&(t=Symbol.asyncIterator,n=Symbol.iterator);i--;){if(t&&null!=(e=s[t]))return e.call(s);if(n&&null!=(e=s[n]))return new oe(e.call(s));t="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")}(n.bundles);a=!(d=yield u.next()).done;a=!1){const f=d.value;{r=!0;const g=xi(t,f,e,i);if(0===g.size)break;if(typeof console<"u"){const m=f.locales[0],x=Array.from(g).join(", ");console.warn(`[fluent] Missing translations in ${m}: ${x}`)}}}}catch(f){o=!0,l=f}finally{try{a&&null!=u.return&&(yield u.return())}finally{if(o)throw l}}return!r&&typeof console<"u"&&console.warn(`[fluent] Request for keys failed because no resource bundles got generated.\n  keys: ${JSON.stringify(e)}.\n  resourceIds: ${JSON.stringify(n.resourceIds)}.`),i})()}formatMessages(e){return this.formatWithFallback(e,Pi)}formatValues(e){return this.formatWithFallback(e,wi)}formatValue(e,t){var n=this;return(0,E.A)(function*(){const[i]=yield n.formatValues([{id:e,args:t}]);return i})()}handleEvent(){this.onChange()}onChange(e=!1){this.bundles=vi.from(this.generateBundles(this.resourceIds)),e&&this.bundles.touchNext(2)}}function wi(s,e,t,n){return t.value?s.formatPattern(t.value,n,e):null}function Pi(s,e,t,n){const i={value:null,attributes:null};t.value&&(i.value=s.formatPattern(t.value,n,e));let r=Object.keys(t.attributes);if(r.length>0){i.attributes=new Array(r.length);for(let[a,o]of r.entries()){let l=s.formatPattern(t.attributes[o],n,e);i.attributes[a]={name:o,value:l}}}return i}function xi(s,e,t,n){const i=[],r=new Set;return t.forEach(({id:a,args:o},l)=>{if(void 0!==n[l])return;
1let u=e.getMessage(a);if(u){if(i.length=0,n[l]=s(e,i,u,o),i.length>0&&typeof console<"u"){const d=e.locales[0],f=i.join(", ");console.warn(`[fluent][resolver] errors in ${d}/${a}: ${f}.`)}}else r.add(a)}),r}const X="data-l10n-id",se="data-l10n-args",Si=`[${X}]`;class Ai extends yi{constructor(e,t){super(e,t),this.roots=new Set,this.pendingrAF=null,this.pendingElements=new Set,this.windowElement=null,this.mutationObserver=null,this.observerConfig={attributes:!0,characterData:!1,childList:!0,subtree:!0,attributeFilter:[X,se]}}onChange(e=!1){super.onChange(e),this.roots&&this.translateRoots()}setAttributes(e,t,n){return e.setAttribute(X,t),n?e.setAttribute(se,JSON.stringify(n)):e.removeAttribute(se),e}getAttributes(e){return{id:e.getAttribute(X),args:JSON.parse(e.getAttribute(se)||null)}}connectRoot(e){for(const t of this.roots)if(t===e||t.contains(e)||e.contains(t))throw new Error("Cannot add a root that overlaps with existing root.");if(this.windowElement){if(this.windowElement!==e.ownerDocument.defaultView)throw new Error("Cannot connect a root:\n          DOMLocalization already has a root from a different window.")}else this.windowElement=e.ownerDocument.defaultView,this.mutationObserver=new this.windowElement.MutationObserver(t=>this.translateMutations(t));this.roots.add(e),this.mutationObserver.observe(e,this.observerConfig)}disconnectRoot(e){return this.roots.delete(e),this.pauseObserving(),0===this.roots.size?(this.mutationObserver=null,this.windowElement&&this.pendingrAF&&this.windowElement.cancelAnimationFrame(this.pendingrAF),this.windowElement=null,this.pendingrAF=null,this.pendingElements.clear(),!0):(this.resumeObserving(),!1)}translateRoots(){const e=Array.from(this.roots);return Promise.all(e.map(t=>this.translateFragment(t)))}pauseObserving(){this.mutationObserver&&(this.translateMutations(this.mutationObserver.takeRecords()),this.mutationObserver.disconnect())}resumeObserving(){if(this.mutationObserver)for(const e of this.roots)this.mutationObserver.observe(e,this.observerConfig)}translateMutations(e){for(const t of e)switch(t.type){case"attributes":t.target.hasAttribute("data-l10n-id")&&this.pendingElements.add(t.target);break;case"childList":for(const n of t.addedNodes)if(n.nodeType===n.ELEMENT_NODE)if(n.childElementCount)for(const i of this.getTranslatables(n))this.pendingElements.add(i);else n.hasAttribute(X)&&this.pendingElements.add(n)}this.pendingElements.size>0&&null===this.pendingrAF&&(this.pendingrAF=this.windowElement.requestAnimationFrame(()=>{this.translateElements(Array.from(this.pendingElements)),this.pendingElements.clear(),this.pendingrAF=null}))}translateFragment(e){return this.translateElements(this.getTranslatables(e))}translateElements(e){var t=this;return(0,E.A)(function*(){if(!e.length)return;const n=e.map(t.getKeysForElement),i=yield t.formatMessages(n);return t.applyTranslations(e,i)})()}applyTranslations(e,t){this.pauseObserving();for(let n=0;n<e.length;n++)void 0!==t[n]&&pi(e[n],t[n]);this.resumeObserving()}getTranslatables(e){const t=Array.from(e.querySelectorAll(Si));return"function"==typeof e.hasAttribute&&e.hasAttribute(X)&&t.push(e),t}getKeysForElement(e){return{id:e.getAttribute(X),args:JSON.parse(e.getAttribute(se)||null)}}}class Ee{#e;#t;#r;#n;constructor({lang:e,isRTL:t},n=null){this.#r=Ee.#i(e),this.#n=n,this.#e=t??Ee.#s(this.#r)?"rtl":"ltr"}_setL10n(e){this.#n=e}getLanguage(){return this.#r}getDirection(){return this.#e}get(e){var t=this;return(0,E.A)(function*(n,i=null,r){return Array.isArray(n)?(n=n.map(l=>({id:l})),(yield t.#n.formatMessages(n)).map(l=>l.value)):(yield t.#n.formatMessages([{id:n,args:i}]))[0]?.value||r}).apply(this,arguments)}translate(e){var t=this;return(0,E.A)(function*(){(t.#t||=new Set).add(e);try{t.#n.connectRoot(e),yield t.#n.translateRoots()}catch{}})()}translateOnce(e){var t=this;return(0,E.A)(function*(){try{yield t.#n.translateElements([e])}catch(n){console.error("translateOnce:",n)}})()}destroy(){var e=this;return(0,E.A)(function*(){if(e.#t){for(const t of e.#t)e.#n.disconnectRoot(t);e.#t.clear(),e.#t=null}e.#n.pauseObserving()})()}pause(){this.#n.pauseObserving()}resume(){this.#n.resumeObserving()}static#i(e){return{en:"en-us",es:"es-es",fy:"fy-nl",ga:"ga-ie",gu:"gu-in",hi:"hi-in",hy:"hy-am",nb:"nb-no",ne:"ne-np",nn:"nn-no",pa:"pa-in",pt:"pt-pt",sv:"sv-se",zh:"zh-cn"}[e=e?.toLowerCase()||"en-us"]||e}static#s(e){const t=e.split("-",1)[0];return["ar","he","fa","ps","ur"].includes(t)}}function Lt(s,e){const t=new di(e),n=new Xn(s),i=n.addResource(t);return i.length&&console.error("L10n errors",i),n}
1class z extends Ee{constructor(e){super({lang:e});const t=e?z.#e.bind(z,"en-us",this.getLanguage()):z.#n.bind(z,this.getLanguage());this._setL10n(new Ai([],t))}static#e(e,t){var n=this;return We(function*(){const{baseURL:i,paths:r}=yield $e(n.#r()),a=[t];if(e!==t){const o=t.split("-",1)[0];o!==t&&a.push(o),a.push(e)}for(const o of a){const l=yield $e(n.#t(o,i,r));l?yield l:"en-us"===o&&(yield n.#i(o))}})()}static#t(e,t,n){return(0,E.A)(function*(){const i=n[e];if(!i)return null;const r=new URL(i,t),a=yield at(r,"text");return Lt(e,a)})()}static#r(){return(0,E.A)(function*(){try{const{href:e}=document.querySelector('link[type="application/l10n"]'),t=yield at(e,"json");return{baseURL:e.replace(/[^/]*$/,"")||"./",paths:t}}catch{}return{baseURL:"./",paths:Object.create(null)}})()}static#n(e){var t=this;return We(function*(){yield t.#i(e)})()}static#i(e){return(0,E.A)(function*(){return Lt(e,'pdfjs-previous-button =\n    .title = Previous Page\npdfjs-previous-button-label = Previous\npdfjs-next-button =\n    .title = Next Page\npdfjs-next-button-label = Next\npdfjs-page-input =\n    .title = Page\npdfjs-of-pages = of { $pagesCount }\npdfjs-page-of-pages = ({ $pageNumber } of { $pagesCount })\npdfjs-zoom-out-button =\n    .title = Zoom Out\npdfjs-zoom-out-button-label = Zoom Out\npdfjs-zoom-in-button =\n    .title = Zoom In\npdfjs-zoom-in-button-label = Zoom In\npdfjs-zoom-select =\n    .title = Zoom\npdfjs-presentation-mode-button =\n    .title = Switch to Presentation Mode\npdfjs-presentation-mode-button-label = Presentation Mode\npdfjs-open-file-button =\n    .title = Open File\npdfjs-open-file-button-label = Open\npdfjs-print-button =\n    .title = Print\npdfjs-print-button-label = Print\npdfjs-save-button =\n    .title = Save\npdfjs-save-button-label = Save\npdfjs-download-button =\n    .title = Download\npdfjs-download-button-label = Download\npdfjs-bookmark-button =\n    .title = Current Page (View URL from Current Page)\npdfjs-bookmark-button-label = Current Page\npdfjs-tools-button =\n    .title = Tools\npdfjs-tools-button-label = Tools\npdfjs-first-page-button =\n    .title = Go to First Page\npdfjs-first-page-button-label = Go to First Page\npdfjs-last-page-button =\n    .title = Go to Last Page\npdfjs-last-page-button-label = Go to Last Page\npdfjs-page-rotate-cw-button =\n    .title = Rotate Clockwise\npdfjs-page-rotate-cw-button-label = Rotate Clockwise\npdfjs-page-rotate-ccw-button =\n    .title = Rotate Counterclockwise\npdfjs-page-rotate-ccw-button-label = Rotate Counterclockwise\npdfjs-cursor-text-select-tool-button =\n    .title = Enable Text Selection Tool\npdfjs-cursor-text-select-tool-button-label = Text Selection Tool\npdfjs-cursor-hand-tool-button =\n    .title = Enable Hand Tool\npdfjs-cursor-hand-tool-button-label = Hand Tool\npdfjs-scroll-page-button =\n    .title = Use Page Scrolling\npdfjs-scroll-page-button-label = Page Scrolling\npdfjs-scroll-vertical-button =\n    .title = Use Vertical Scrolling\npdfjs-scroll-vertical-button-label = Vertical Scrolling\npdfjs-scroll-horizontal-button =\n    .title = Use Horizontal Scrolling\npdfjs-scroll-horizontal-button-label = Horizontal Scrolling\npdfjs-scroll-wrapped-button =\n    .title = Use Wrapped Scrolling\npdfjs-scroll-wrapped-button-label = Wrapped Scrolling\npdfjs-spread-none-button =\n    .title = Do not join page spreads\npdfjs-spread-none-button-label = No Spreads\npdfjs-spread-odd-button =\n    .title = Join page spreads starting with odd-numbered pages\npdfjs-spread-odd-button-label = Odd Spreads\npdfjs-spread-even-button =\n    .title = Join page spreads starting with even-numbered pages\npdfjs-spread-even-button-label = Even Spreads\npdfjs-document-properties-button =\n    .title = Document Properties\u2026\npdfjs-document-properties-button-label = Document Properties\u2026\npdfjs-document-properties-file-name = File name:\npdfjs-document-properties-file-size = File size:\npdfjs-document-properties-size-kb = { NUMBER($kb, maximumSignificantDigits: 3) } KB ({ $b } bytes)\npdfjs-document-properties-size-mb = { NUMBER($mb, maximumSignificantDigits: 3) } MB ({ $b } bytes)\npdfjs-document-properties-title = Title:\npdfjs-document-properties-author = Author:\npdfjs-document-properties-subject = Subject:\npdfjs-document-properties-keywords = Keywords:\npdfjs-document-properties-creation-date = Creation Date:\npdfjs-document-properties-modification-date = Modification Date:\npdfjs-document-properties-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }\npdfjs-document-properties-creator = Creator:\npdfjs-document-properties-producer = PDF Producer:\npdfjs-document-properties-version = PDF Version:\npdfjs-document-properties-page-count = Page Count:\npdfjs-document-properties-page-size = Page Size:\npdfjs-document-properties-page-size-unit-inches = in\npdfjs-document-properties-page-size-unit-millimeters = mm\npdfjs-document-properties-page-size-orientation-portrait = portrait\npdfjs-document-properties-page-size-orientation-landscape = landscape\npdfjs-document-properties-page-size-name-a-three = A3\npdfjs-document-properties-page-size-name-a-four = A4\npdfjs-document-properties-page-size-name-letter = Letter\npdfjs-document-properties-page-size-name-legal = Legal\npdfjs-document-properties-page-size-dimension-string = { $width } \xd7 { $height } { $unit } ({ $orientation })\npdfjs-document-properties-page-size-dimension-name-string = { $width } \xd7 { $height } { $unit } ({ $name }, { $orientation })\npdfjs-document-properties-linearized = Fast Web View:\npdfjs-document-properties-linearized-yes = Yes\npdfjs-document-properties-linearized-no = No\npdfjs-document-properties-close-button = Close\npdfjs-print-progress-message = Preparing document for printing\u2026\npdfjs-print-progress-percent = { $progress }%\npdfjs-print-progress-close-button = Cancel\npdfjs-printing-not-supported = Warning: Printing is not fully supported by this browser.\npdfjs-printing-not-ready = Warning: The PDF is not fully loaded for printing.\npdfjs-toggle-sidebar-button =\n    .title = Toggle Sidebar\npdfjs-toggle-sidebar-notification-button =\n    .title = Toggle Sidebar (document contains outline/attachments/layers)\npdfjs-toggle-sidebar-button-label = Toggle Sidebar\npdfjs-document-outline-button =\n    .title = Show Document Outline (double-click to expand/collapse all items)\npdfjs-document-outline-button-label = Document Outline\npdfjs-attachments-button =\n    .title = Show Attachments\npdfjs-attachments-button-label = Attachments\npdfjs-layers-button =\n    .title = Show Layers (double-click to reset all layers to the default state)\npdfjs-layers-button-label = Layers\npdfjs-thumbs-button =\n    .title = Show Thumbnails\npdfjs-thumbs-button-label = Thumbnails\npdfjs-current-outline-item-button =\n    .title = Find Current Outline Item\npdfjs-current-outline-item-button-label = Current Outline Item\npdfjs-findbar-button =\n    .title = Find in Document\npdfjs-findbar-button-label = Find\npdfjs-additional-layers = Additional Layers\npdfjs-thumb-page-title =\n    .title = Page { $page }\npdfjs-thumb-page-canvas =\n    .aria-label = Thumbnail of Page { $page }\npdfjs-find-input =\n    .title = Find\n    .placeholder = Find in document\u2026\npdfjs-find-previous-button =\n    .title = Find the previous occurrence of the phrase\npdfjs-find-previous-button-label = Previous\npdfjs-find-next-button =\n    .title = Find the next occurrence of the phrase\npdfjs-find-next-button-label = Next\npdfjs-find-highlight-checkbox = Highlight All\npdfjs-find-match-case-checkbox-label = Match Case\npdfjs-find-match-diacritics-checkbox-label = Match Diacritics\npdfjs-find-entire-word-checkbox-label = Whole Words\npdfjs-find-reached-top = Reached top of document, continued from bottom\npdfjs-find-reached-bottom = Reached end of document, continued from top\npdfjs-find-match-count =\n    { $total ->\n        [one] { $current } of { $total } match\n       *[other] { $current } of { $total } matches\n    }\npdfjs-find-match-count-limit =\n    { $limit ->\n        [one] More than { $limit } match\n       *[other] More than { $limit } matches\n    }\npdfjs-find-not-found = Phrase not found\npdfjs-page-scale-width = Page Width\npdfjs-page-scale-fit = Page Fit\npdfjs-page-scale-auto = Automatic Zoom\npdfjs-page-scale-actual = Actual Size\npdfjs-page-scale-percent = { $scale }%\npdfjs-page-landmark =\n    .aria-label = Page { $page }\npdfjs-loading-error = An error occurred while loading the PDF.\npdfjs-invalid-file-error = Invalid or corrupted PDF file.\npdfjs-missing-file-error = Missing PDF file.\npdfjs-unexpected-response-error = Unexpected server response.\npdfjs-rendering-error = An error occurred while rendering the page.\npdfjs-annotation-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") }\npdfjs-text-annotation-type =\n    .alt = [{ $type } Annotation]\npdfjs-password-label = Enter the password to open this PDF file.\npdfjs-password-invalid = Invalid password. Please try again.\npdfjs-password-ok-button = OK\npdfjs-password-cancel-button = Cancel\npdfjs-web-fonts-disabled = Web fonts are disabled: unable to use embedded PDF fonts.\npdfjs-editor-free-text-button =\n    .title = Text\npdfjs-editor-free-text-button-label = Text\npdfjs-editor-ink-button =\n    .title = Draw\npdfjs-editor-ink-button-label = Draw\npdfjs-editor-stamp-button =\n    .title = Add or edit images\npdfjs-editor-stamp-button-label = Add or edit images\npdfjs-editor-highlight-button =\n    .title = Highlight\npdfjs-editor-highlight-button-label = Highlight\npdfjs-highlight-floating-button1 =\n    .title = Highlight\n    .aria-label = Highlight\npdfjs-highlight-floating-button-label = Highlight\npdfjs-editor-remove-ink-button =\n    .title = Remove drawing\npdfjs-editor-remove-freetext-button =\n    .title = Remove text\npdfjs-editor-remove-stamp-button =\n    .title = Remove image\npdfjs-editor-remove-highlight-button =\n    .title = Remove highlight\npdfjs-editor-free-text-color-input = Color\npdfjs-editor-free-text-size-input = Size\npdfjs-editor-ink-color-input = Color\npdfjs-editor-ink-thickness-input = Thickness\npdfjs-editor-ink-opacity-input = Opacity\npdfjs-editor-stamp-add-image-button =\n    .title = Add image\npdfjs-editor-stamp-add-image-button-label = Add image\npdfjs-editor-free-highlight-thickness-input = Thickness\npdfjs-editor-free-highlight-thickness-title =\n    .title = Change thickness when highlighting items other than text\npdfjs-free-text2 =\n    .aria-label = Text Editor\n    .default-content = Start t
1yping\u2026\npdfjs-ink =\n    .aria-label = Draw Editor\npdfjs-ink-canvas =\n    .aria-label = User-created image\npdfjs-editor-alt-text-button =\n    .aria-label = Alt text\npdfjs-editor-alt-text-button-label = Alt text\npdfjs-editor-alt-text-edit-button =\n    .aria-label = Edit alt text\npdfjs-editor-alt-text-dialog-label = Choose an option\npdfjs-editor-alt-text-dialog-description = Alt text (alternative text) helps when people can\u2019t see the image or when it doesn\u2019t load.\npdfjs-editor-alt-text-add-description-label = Add a description\npdfjs-editor-alt-text-add-description-description = Aim for 1-2 sentences that describe the subject, setting, or actions.\npdfjs-editor-alt-text-mark-decorative-label = Mark as decorative\npdfjs-editor-alt-text-mark-decorative-description = This is used for ornamental images, like borders or watermarks.\npdfjs-editor-alt-text-cancel-button = Cancel\npdfjs-editor-alt-text-save-button = Save\npdfjs-editor-alt-text-decorative-tooltip = Marked as decorative\npdfjs-editor-alt-text-textarea =\n    .placeholder = For example, \u201cA young man sits down at a table to eat a meal\u201d\npdfjs-editor-resizer-top-left =\n    .aria-label = Top left corner \u2014 resize\npdfjs-editor-resizer-top-middle =\n    .aria-label = Top middle \u2014 resize\npdfjs-editor-resizer-top-right =\n    .aria-label = Top right corner \u2014 resize\npdfjs-editor-resizer-middle-right =\n    .aria-label = Middle right \u2014 resize\npdfjs-editor-resizer-bottom-right =\n    .aria-label = Bottom right corner \u2014 resize\npdfjs-editor-resizer-bottom-middle =\n    .aria-label = Bottom middle \u2014 resize\npdfjs-editor-resizer-bottom-left =\n    .aria-label = Bottom left corner \u2014 resize\npdfjs-editor-resizer-middle-left =\n    .aria-label = Middle left \u2014 resize\npdfjs-editor-highlight-colorpicker-label = Highlight color\npdfjs-editor-colorpicker-button =\n    .title = Change color\npdfjs-editor-colorpicker-dropdown =\n    .aria-label = Color choices\npdfjs-editor-colorpicker-yellow =\n    .title = Yellow\npdfjs-editor-colorpicker-green =\n    .title = Green\npdfjs-editor-colorpicker-blue =\n    .title = Blue\npdfjs-editor-colorpicker-pink =\n    .title = Pink\npdfjs-editor-colorpicker-red =\n    .title = Red\npdfjs-editor-highlight-show-all-button-label = Show all\npdfjs-editor-highlight-show-all-button =\n    .title = Show all\npdfjs-editor-new-alt-text-dialog-edit-label = Edit alt text (image description)\npdfjs-editor-new-alt-text-dialog-add-label = Add alt text (image description)\npdfjs-editor-new-alt-text-textarea =\n    .placeholder = Write your description here\u2026\npdfjs-editor-new-alt-text-description = Short description for people who can\u2019t see the image or when the image doesn\u2019t load.\npdfjs-editor-new-alt-text-disclaimer1 = This alt text was created automatically and may be inaccurate.\npdfjs-editor-new-alt-text-disclaimer-learn-more-url = Learn more\npdfjs-editor-new-alt-text-create-automatically-button-label = Create alt text automatically\npdfjs-editor-new-alt-text-not-now-button = Not now\npdfjs-editor-new-alt-text-error-title = Couldn\u2019t create alt text automatically\npdfjs-editor-new-alt-text-error-description = Please write your own alt text or try again later.\npdfjs-editor-new-alt-text-error-close-button = Close\npdfjs-editor-new-alt-text-ai-model-downloading-progress = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)\n    .aria-valuetext = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB)\npdfjs-editor-new-alt-text-added-button =\n    .aria-label = Alt text added\npdfjs-editor-new-alt-text-added-button-label = Alt text added\npdfjs-editor-new-alt-text-missing-button =\n    .aria-label = Missing alt text\npdfjs-editor-new-alt-text-missing-button-label = Missing alt text\npdfjs-editor-new-alt-text-to-review-button =\n    .aria-label = Review alt text\npdfjs-editor-new-alt-text-to-review-button-label = Review alt text\npdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer = Created automatically: { $generatedAltText }\npdfjs-image-alt-text-settings-button =\n    .title = Image alt text settings\npdfjs-image-alt-text-settings-button-label = Image alt text settings\npdfjs-editor-alt-text-settings-dialog-label = Image alt text settings\npdfjs-editor-alt-text-settings-automatic-title = Automatic alt text\npdfjs-editor-alt-text-settings-create-model-button-label = Create alt text automatically\npdfjs-editor-alt-text-settings-create-model-description = Suggests descriptions to help people who can\u2019t see the image or when the image doesn\u2019t load.\npdfjs-editor-alt-text-settings-download-model-label = Alt text AI model ({ $totalSize } MB)\npdfjs-editor-alt-text-settings-ai-model-description = Runs locally on your device so your data stays private. Required for automatic alt text.\npdfjs-editor-alt-text-settings-delete-model-button = Delete\npdfjs-editor-alt-text-settings-download-model-button = Download\npdfjs-editor-alt-text-settings-downloading-model-button = Downloading\u2026\npdfjs-editor-alt-text-settings-editor-title = Alt text editor\npdfjs-editor-alt-text-settings-show-dialog-button-label = Show alt text editor right away when adding an image\npdfjs-editor-alt-text-settings-show-dialog-description = Helps you make sure all your images have alt text.\npdfjs-editor-alt-text-settings-close-button = Close\npdfjs-editor-undo-bar-message-highlight = Highlight removed\npdfjs-editor-undo-bar-message-freetext = Text removed\npdfjs-editor-undo-bar-message-ink = Drawing removed\npdfjs-editor-undo-bar-message-stamp = Image removed\npdfjs-editor-undo-bar-message-multiple =\n    { $count ->\n        [one] { $count } annotation removed\n       *[other] { $count } annotations removed\n    }\npdfjs-editor-undo-bar-undo-button =\n    .title = Undo\npdfjs-editor-undo-bar-undo-button-label = Undo\npdfjs-editor-undo-bar-close-button =\n    .title = Close\npdfjs-editor-undo-bar-close-button-label = Close')})()}}function Oe(){return document.location.hash}class Li{#e=null;constructor({linkService:e,eventBus:t}){this.linkService=e,this.eventBus=t,this._initialized=!1,this._fingerprint="",this.reset(),this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",n=>{this._isPagesLoaded=!!n.pagesCount},{once:!0})})}initialize({fingerprint:e,resetHistory:t=!1,updateUrl:n=!1}){if(!e||"string"!=typeof e)return void console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');this._initialized&&this.reset();const i=""!==this._fingerprint&&this._fingerprint!==e;this._fingerprint=e,this._updateUrl=!0===n,this._initialized=!0,this.#d();const r=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=Oe(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this.#i(r,!0)||t){const{hash:o,page:l,rotation:u}=this.#a(!0);return!o||i||t?void this.#t(null,!0):void this.#t({hash:o,page:l,rotation:u},!0)}const a=r.destination;this.#s(a,r.uid,!0),void 0!==a.rotation&&(this._initialRotation=a.rotation),a.dest?(this._initialBookmark=JSON.stringify(a.dest),this._destination.page=null):a.hash?this._initialBookmark=a.hash:a.page&&(this._initialBookmark=`page=${a.page}`)}reset(){this._initialized&&(this.#o(),this._initialized=!1,this.#f()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:e=null,explicitDest:t,pageNumber:n}){if(!this._initialized)return;if(e&&"string"!=typeof e)return void console.error(`PDFHistory.push: "${e}" is not a valid namedDest parameter.`);if(!Array.isArray(t))return void console.error(`PDFHistory.push: "${t}" is not a valid explicitDest parameter.`);if(!this.#n(n)&&(null!==n||this._destination))return void console.error(`PDFHistory.push: "${n}" is not a valid pageNumber parameter.`);const i=e||JSON.stringify(t);if(!i)return;let r=!1;if(this._destination&&(function Ti(s,e){return"string"==typeof s&&"string"==typeof e&&(s===e||le(s).get("nameddest")===e)}(this._destination.hash,i)||function Ci(s,e){function t(n,i){if(typeof n!=typeof i||Array.isArray(n)||Array.isArray(i))return!1;if(null!==n&&"object"==typeof n&&null!==i){if(Object.keys(n).length!==Object.keys(i).length)return!1;for(const r in n)if(!t(n[r],i[r]))return!1;return!0}return n===i||Number.isNaN(n)&&Number.isNaN(i)}
1if(!Array.isArray(s)||!Array.isArray(e)||s.length!==e.length)return!1;for(let n=0,i=s.length;n<i;n++)if(!t(s[n],e[n]))return!1;return!0}(this._destination.dest,t))){if(this._destination.page)return;r=!0}this._popStateInProgress&&!r||(this.#t({dest:t,hash:i,page:n,rotation:this.linkService.rotation},r),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(e){if(this._initialized){if(!this.#n(e))return void console.error(`PDFHistory.pushPage: "${e}" is not a valid page number.`);this._destination?.page!==e&&(this._popStateInProgress||(this.#t({dest:null,hash:`page=${e}`,page:e,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this.#r()}back(){if(!this._initialized||this._popStateInProgress)return;const e=window.history.state;this.#i(e)&&e.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const e=window.history.state;this.#i(e)&&e.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}#t(e,t=!1){const n=t||!this._destination,i={fingerprint:this._fingerprint,uid:n?this._uid:this._uid+1,destination:e};let r;if(this.#s(e,i.uid),this._updateUrl&&e?.hash){const a=document.location.href.split("#",1)[0];a.startsWith("file://")||(r=`${a}#${e.hash}`)}n?window.history.replaceState(i,"",r):window.history.pushState(i,"",r)}#r(e=!1){if(!this._position)return;let t=this._position;if(e&&(t=Object.assign(Object.create(null),this._position),t.temporary=!0),!this._destination)return void this.#t(t);if(this._destination.temporary)return void this.#t(t,!0);if(this._destination.hash===t.hash||!this._destination.page&&this._numPositionUpdates<=50)return;let n=!1;if(this._destination.page>=t.first&&this._destination.page<=t.page){if(void 0!==this._destination.dest||!this._destination.first)return;n=!0}this.#t(t,n)}#n(e){return Number.isInteger(e)&&e>0&&e<=this.linkService.pagesCount}#i(e,t=!1){if(!e)return!1;if(e.fingerprint!==this._fingerprint){if(!t)return!1;{if("string"!=typeof e.fingerprint||e.fingerprint.length!==this._fingerprint.length)return!1;const[n]=performance.getEntriesByType("navigation");if("reload"!==n?.type)return!1}}return!(!Number.isInteger(e.uid)||e.uid<0||null===e.destination||"object"!=typeof e.destination)}#s(e,t,n=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&e?.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._maxUid=Math.max(this._maxUid,t),this._numPositionUpdates=0}#a(e=!1){const t=unescape(Oe()).substring(1),n=le(t),i=n.get("nameddest")||"";let r=0|n.get("page");return(!this.#n(r)||e&&i.length>0)&&(r=null),{hash:t,page:r,rotation:this.linkService.rotation}}#l({location:e}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:e.pdfOpenParams.substring(1),page:this.linkService.page,first:e.pageNumber,rotation:e.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this.#r(!0),this._updateViewareaTimeout=null},1e3))}#u({state:e}){const t=Oe(),n=this._currentHash!==t;if(this._currentHash=t,!e){this._uid++;const{hash:r,page:a,rotation:o}=this.#a();return void this.#t({hash:r,page:a,rotation:o},!0)}if(!this.#i(e))return;this._popStateInProgress=!0,n&&(this._blockHashChange++,function Dn(s){return Te.apply(this,arguments)}({target:window,name:"hashchange",delay:1e3}).then(()=>{this._blockHashChange--}));const i=e.destination;this.#s(i,e.uid,!0),Je(i.rotation)&&(this.linkService.rotation=i.rotation),i.dest?this.linkService.goToDestination(i.dest):i.hash?this.linkService.setHash(i.hash):i.page&&(this.linkService.page=i.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}#o(){(!this._destination||this._destination.temporary)&&this.#r()}#d(){if(this.#e)return;this.#e=new AbortController;const{signal:e}=this.#e;this.eventBus._on("updateviewarea",this.#l.bind(this),{signal:e}),window.addEventListener("popstate",this.#u.bind(this),{signal:e}),window.addEventListener("pagehide",this.#o.bind(this),{signal:e})}#f(){this.#e?.abort(),this.#e=null}}class Ri{#e=null;#t=null;#r=null;#n=null;#i=null;#s;constructor(e){this.pdfPage=e.pdfPage,this.accessibilityManager=e.accessibilityManager,this.l10n=e.l10n,this.l10n||=new z,this.annotationEditorLayer=null,this.div=null,this._cancelled=!1,this.#s=e.uiManager,this.#e=e.annotationLayer||null,this.#i=e.textLayer||null,this.#t=e.drawLayer||null,this.#r=e.onAppend||null,this.#n=e.structTreeLayer||null}render(e){var t=this;return(0,E.A)(function*(n,i="display"){if("display"!==i||t._cancelled)return;const r=n.clone({dontFlip:!0});if(t.div)return t.annotationEditorLayer.update({viewport:r}),void t.show();const a=t.div=document.createElement("div");a.className="annotationEditorLayer",a.hidden=!0,a.dir=t.#s.direction,t.#r?.(a
1),t.annotationEditorLayer=new Pn({uiManager:t.#s,div:a,structTreeLayer:t.#n,accessibilityManager:t.accessibilityManager,pageIndex:t.pdfPage.pageNumber-1,l10n:t.l10n,viewport:r,annotationLayer:t.#e,textLayer:t.#i,drawLayer:t.#t}),t.annotationEditorLayer.render({viewport:r,div:a,annotations:null,intent:i}),t.show()}).apply(this,arguments)}cancel(){this._cancelled=!0,this.div&&this.annotationEditorLayer.destroy()}hide(){this.div&&(this.annotationEditorLayer.pause(!0),this.div.hidden=!0)}show(){!this.div||this.annotationEditorLayer.isInvisible||(this.div.hidden=!1,this.annotationEditorLayer.pause(!1))}}{var Fe=new Map;const s=navigator.userAgent||"",e=navigator.platform||"",t=navigator.maxTouchPoints||1,n=/Android/.test(s);(/\b(iPad|iPhone|iPod)(?=;)/.test(s)||"MacIntel"===e&&t>1||n)&&Fe.set("maxCanvasPixels",5242880),n&&Fe.set("useSystemFonts",!1)}const je={BOOLEAN:1,NUMBER:2,OBJECT:4,STRING:8,UNDEFINED:16},H={allowedGlobalEvents:{value:null,kind:1},canvasMaxAreaInBytes:{value:-1,kind:5},isInAutomation:{value:!1,kind:1},localeProperties:{value:{lang:navigator.language||"en-US"},kind:1},nimbusDataStr:{value:"",kind:1},supportsCaretBrowsingMode:{value:!1,kind:1},supportsDocumentFonts:{value:!0,kind:1},supportsIntegratedFind:{value:!1,kind:1},supportsMouseWheelZoomCtrlKey:{value:!0,kind:1},supportsMouseWheelZoomMetaKey:{value:!0,kind:1},supportsPinchToZoom:{value:!0,kind:1},toolbarDensity:{value:0,kind:17},altTextLearnMoreUrl:{value:"",kind:130},annotationEditorMode:{value:0,kind:130},annotationMode:{value:2,kind:130},cursorToolOnLoad:{value:0,kind:130},debuggerSrc:{value:"./debugger.mjs",kind:2},defaultZoomDelay:{value:400,kind:130},defaultZoomValue:{value:"",kind:130},disableHistory:{value:!1,kind:2},disablePageLabels:{value:!1,kind:130},enableAltText:{value:!1,kind:130},enableAltTextModelDownload:{value:!0,kind:146},enableGuessAltText:{value:!0,kind:146},enableHighlightFloatingButton:{value:!1,kind:130},enableNewAltTextWhenAddingImage:{value:!0,kind:130},enablePermissions:{value:!1,kind:130},enablePrintAutoRotate:{value:!0,kind:130},enableScripting:{value:!0,kind:130},enableUpdatedAddImage:{value:!1,kind:130},externalLinkRel:{value:"noopener noreferrer nofollow",kind:2},externalLinkTarget:{value:0,kind:130},highlightEditorColors:{value:"yellow=#FFFF98,green=#53FFBC,blue=#80EBFF,pink=#FFCBE6,red=#FF4F5F",kind:130},historyUpdateUrl:{value:!1,kind:130},ignoreDestinationZoom:{value:!1,kind:130},imageResourcesPath:{value:"./images/",kind:2},maxCanvasPixels:{value:2**25,kind:2},forcePageColors:{value:!1,kind:130},pageColorsBackground:{value:"Canvas",kind:130},pageColorsForeground:{value:"CanvasText",kind:130},pdfBugEnabled:{value:!1,kind:130},printResolution:{value:150,kind:2},sidebarViewOnLoad:{value:-1,kind:130},scrollModeOnLoad:{value:-1,kind:130},spreadModeOnLoad:{value:-1,kind:130},textLayerMode:{value:1,kind:130},viewOnLoad:{value:0,kind:130},cMapPacked:{value:!0,kind:4},cMapUrl:{value:"../web/cmaps/",kind:4},disableAutoFetch:{value:!1,kind:132},disableFontFace:{value:!1,kind:132},disableRange:{value:!1,kind:132},disableStream:{value:!1,kind:132},docBaseUrl:{value:"",kind:4},enableHWA:{value:!0,kind:134},enableXfa:{value:!0,kind:132},fontExtraProperties:{value:!1,kind:4},isEvalSupported:{value:!0,kind:4},isOffscreenCanvasSupported:{value:!0,kind:4},maxImageSize:{value:-1,kind:4},pdfBug:{value:!1,kind:4},standardFontDataUrl:{value:"../web/standard_fonts/",kind:4},useSystemFonts:{value:void 0,kind:4,type:je.BOOLEAN+je.UNDEFINED},verbosity:{value:1,kind:4},workerPort:{value:null,kind:8},workerSrc:{value:"../build/pdf.worker.mjs",kind:8},defaultUrl:{value:"compressed.tracemonkey-pldi-09.pdf",kind:2},sandboxBundleSrc:{value:"../build/pdf.sandbox.mjs",kind:2},viewerCssTheme:{value:0,kind:130},enableFakeMLManager:{value:!0,kind:2},disablePreferences:{value:!1,kind:2}};class Ni{static eventBus;static#e=new Map;static{for(const e in H)this.#e.set(e,H[e].value);for(const[e,t]of Fe)this.#e.set(e,t);this._hasInvokedSet=!1,this._checkDisablePreferences=()=>!!this.get("disablePreferences")||(this._hasInvokedSet&&console.warn('The Preferences may override manually set AppOptions; please use the "disablePreferences"-option to prevent that.'),!1)}static get(e){return this.#e.get(e)}static getAll(e=null,t=!1){const n=Object.create(null);for(const i in H){const r=H[i];e&&!(e&r.kind)||(n[i]=t?r.value:this.#e.get(i))}return n}static set(e,t){this.setAll({[e]:t})}static setAll(e,t=!1){let n;this._hasInvokedSet||=!0;for(const i in e){const r=H[i],a=e[i];if(!r||!(typeof a==typeof r.value||je[(typeof a).toUpperCase()]&r.type))continue;const{kind:o}=r;t&&!(1&o||128&o)||(this.eventBus&&16&o&&(n||=new Map).set(i,a),this.#e.set(i,a))}if(n)for(const[i,r]of n)this.eventBus.dispatch(i.toLowerCase(),{source:this,value:r})}}class Mi{#e=null;constructor(e){this.pageIndex=e.pageIndex}render(){var e=this;return(0,E.A)(function*(t="display"){"display"!==t||e.#e||e._cancelled||(e.#e=new In({pageIndex:e.pageIndex}))}).apply(this,arguments)}cancel(){this._cancelled=!0,this.#e&&(this.#e.destroy(),this.#e=null)}setParent(e){this.#e?.setParent(e)}getDrawLayer(){return this.#e}}const Ct={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P
1: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},ki=/^H(\d+)$/;class Rt{#e;#t=null;#r;#n=new Map;#i;#s=null;constructor(e,t){this.#e=e.getStructTree(),this.#i=t}render(){var e=this;return(0,E.A)(function*(){if(e.#r)return e.#r;const{promise:t,resolve:n,reject:i}=Promise.withResolvers();e.#r=t;try{e.#t=e.#u(yield e.#e)}catch(r){i(r)}return e.#e=null,e.#t?.classList.add("structTree"),n(e.#t),t})()}getAriaAttributes(e){var t=this;return(0,E.A)(function*(){try{return yield t.render(),t.#n.get(e)}catch{}return null})()}hide(){this.#t&&!this.#t.hidden&&(this.#t.hidden=!0)}show(){this.#t?.hidden&&(this.#t.hidden=!1)}#a(e,t){const{alt:n,id:i,lang:r}=e;if(void 0!==n){let a=!1;const o=te(n);for(const l of e.children)if("annotation"===l.type){let u=this.#n.get(l.id);u||(u=new Map,this.#n.set(l.id,u)),u.set("aria-label",o),a=!0}a||t.setAttribute("aria-label",o)}void 0!==i&&t.setAttribute("aria-owns",i),void 0!==r&&t.setAttribute("lang",te(r,!0))}#l(e,t){const{alt:n,bbox:i,children:r}=e,a=r?.[0];if(!this.#i||!n||!i||"content"!==a?.type)return!1;const{id:o}=a;if(!o)return!1;t.setAttribute("aria-owns",o);const l=document.createElement("span");(this.#s||=new Map).set(o,l),l.setAttribute("role","img"),l.setAttribute("aria-label",te(n));const{pageHeight:u,pageX:d,pageY:f}=this.#i,g="calc(var(--scale-factor)*",{style:m}=l;return m.width=`${g}${i[2]-i[0]}px)`,m.height=`${g}${i[3]-i[1]}px)`,m.left=`${g}${i[0]-d}px)`,m.top=`${g}${u-i[3]+f}px)`,!0}addElementsToTextLayer(){if(this.#s){for(const[e,t]of this.#s)document.getElementById(e)?.append(t);this.#s.clear(),this.#s=null}}#u(e){if(!e)return null;const t=document.createElement("span");if("role"in e){const{role:n}=e,i=n.match(ki);if(i?(t.setAttribute("role","heading"),t.setAttribute("aria-level",i[1])):Ct[n]&&t.setAttribute("role",Ct[n]),"Figure"===n&&this.#l(e,t))return t}if(this.#a(e,t),e.children)if(1===e.children.length&&"id"in e.children[0])this.#a(e.children[0],t);else for(const n of e.children)t.append(this.#u(n));return t}}class ae{#e=!1;#t=null;#r=new Map;#n=new Map;setTextMapping(e){this.#t=e}static#i(e,t){const n=e.getBoundingClientRect(),i=t.getBoundingClientRect();if(0===n.width&&0===n.height)return 1;if(0===i.width&&0===i.height)return-1;const o=n.y+n.height/2,d=i.y+i.height/2;return o<=i.y&&d>=n.y+n.height?-1:d<=n.y&&o>=i.y+i.height?1:n.x+n.width/2-(i.x+i.width/2)}enable(){if(this.#e)throw new Error("TextAccessibilityManager is already enabled.");if(!this.#t)throw new Error("Text divs and strings have not been set.");if(this.#e=!0,this.#t=this.#t.slice(),this.#t.sort(ae.#i),this.#r.size>0){const e=this.#t;for(const[t,n]of this.#r)document.getElementById(t)?this.#s(t,e[n]):this.#r.delete(t)}for(const[e,t]of this.#n)this.addPointerInTextLayer(e,t);this.#n.clear()}disable(){this.#e&&(this.#n.clear(),this.#t=null,this.#e=!1)}removePointerInTextLayer(e){if(!this.#e)return void this.#n.delete(e);const t=this.#t;if(!t||0===t.length)return;const{id:n}=e,i=this.#r.get(n);if(void 0===i)return;const r=t[i];this.#r.delete(n);let a=r.getAttribute("aria-owns");a?.includes(n)&&(a=a.split(" ").filter(o=>o!==n).join(" "),a?r.setAttribute("aria-owns",a):(r.removeAttribute("aria-owns"),r.setAttribute("role","presentation")))}#s(e,t){const n=t.getAttribute("aria-owns");n?.includes(e)||t.setAttribute("aria-owns",n?`${n} ${e}`:e),t.removeAttribute("role")}addPointerInTextLayer(e,t){const{id:n}=e;if(!n)return null;if(!this.#e)return this.#n.set(e,t),null;t&&this.removePointerInTextLayer(e);const i=this.#t;if(!i||0===i.length)return null;const r=ne(i,u=>ae.#i(e,u)<0),a=Math.max(0,r-1),o=i[a];this.#s(n,o),this.#r.set(n,a);const l=o.parentNode;return l?.classList.contains("markedContent")?l.id:null}moveElementInDOM(e,t,n,i){const r=this.addPointerInTextLayer(n,i);if(!e.hasChildNodes())return e.append(t),r;const a=Array.from(e.childNodes).filter(u=>u!==t);if(0===a.length)return r;const o=n||t,l=ne(a,u=>ae.#i(o,u)<0);return 0===l?a[0].before(t):a[l-1].after(t),r}}class Di{#e=null;constructor({findController:e,eventBus:t,pageIndex:n}){this.findController=e,this.matches=[],this.eventBus=t,this.pageIdx=n,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(e,t){this.textDivs=e,this.textContentItemsStr=t}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,this.#e||(this.#e=new AbortController,this.eventBus._on("updatetextlayermatches",e=>{(e.pageIndex===this.pageIdx||-1===e.pageIndex)&&this._updateMatches()},{signal:this.#e.signal})),this._updateMatches()}disable(){this.enabled&&(this.enabled=!1,this.#e?.abort(),this.#e=null,this._updateMatches(!0))}_convertMatches(e,t){if(!e)return[];const{textContentItemsStr:n}=this;let i=0,r=0;const a=n.length-1,o=[];for(let l=0,u=e.length;l<u;l++){let d=e[l];for(;i!==a&&d>=r+n[i].length;)r+=n[i].length,i++;i===n.length&&console.error("Could not find a matching mapping");const f={begin:{divIdx:i,offset:d-r}};for(d+=t[l];i!==a&&d>r+n[i].length;)r+=n[i].length,i++;f.end={divIdx:i,offset:d-r},o.push(f)}return o}_renderMatches(e){if(0===e.length)return;const{findController:t,pageIdx:n}=this,{textContentItemsStr:i,textDivs:r}=this,a=n===t.selected.pageIdx,o=t.selected.matchIdx;let u=null;function f(_,A){const b=_.divIdx;return r[b].textContent="",g(b,0,_.offset,A)}function g(_,A,b,S){let y=r[_];if(y.nodeType===Node.TEXT_NODE){const T=document.createElement("span");y.before(T),T.append(y),r[_]=T,y=T}const L=i[_].substring(A,b),D=document.createTextNode(L);if(S){const T=document.createElement("span");if(T.className=`${S} appended`,T.append(D),y.append(T),S.includes("selected")){const{left:h}=T.getClientRects()[0];return h-y.getBoundingClientRect().left}return 0}return y.append(D),0}let m=o,x=m+1;if(t.state.highlightAll)m=0,x=e.length;else if(!a)return;let v=-1,C=-1;for(let _=m;_<x;_++){const A=e[_],b=A.begin;if(b.divIdx===v&&b.offset===C)continue;v=b.divIdx,C=b.offset;const S=A.end,y=a&&_===o,L=y?" selected":"";let D=0;if(u&&b.divIdx===u.divIdx?g(u.divIdx,u.offset,b.offset):(null!==u&&g(u.divIdx,u.offset,undefined),f(b)),b.divIdx===S.divIdx)D=g(b.divIdx,b.offset,S.offset,"highlight"+L);else{D=g(b.divIdx,b.offset,undefined,"highlight begin"+L);for(let T=b.divIdx+1,h=S.divIdx;T<h;T++)r[T].className="highlight middle"+L;f(S,"highlight end"+L)}u=S,y&&t.scrollMatchIntoView({element:r[b.divIdx],selectedLeft:D,pageIndex:n,matchIndex:o})}u&&g(u.divIdx,u.offset,undefined)}_updateMatches(e=!1){if(!this.enabled&&!e)return;const{findController:t,matches:n,pageIdx:i}=this,{textContentItemsStr:r,textDivs:a}=this;let o=-1;for(const d of n){for(let g=Math.max(o,d.begin.divIdx),m=d.end.divIdx;g<=m;g++){const x=a[g];x.textContent=r[g],x.className=""}o=d.end.divIdx+1}t?.highlightMatches&&!e&&(this.matches=this._convertMatches(t.pageMatches[i]||null,t.pageMatchesLength[i]||null),this._renderMatches(this.matches))}}class J{#e=!1;#t=null;#r=!1;#n=null;static#i=new Map;static#s=null;constructor({pdfPage:e,highlighter:t=null,accessibilityManager:n=null,enablePermissions:i=!1,onAppend:r=null}){this.pdfPage=e,this.highlighter=t,this.accessibilityManager=n,this.#e=!0===i,this.#t=r,this.div=document.createElement("div"),this.div.tabIndex=0,this.div.className="textLayer"}render(e){var t=this;return(0,E.A)(function*(n,i=null){if(t.#r&&t.#n)return t.#n.update({viewport:n,onBefore:t.hide.bind(t)}),void t.show();t.cancel(),t.#n=new Mn({textContentSource:t.pdfPage.streamTextContent(i||{includeMarkedContent:!0,disableNormalization:!0}),container:t.div,viewport:n});const{textDivs:r,textContentItemsStr:a}=t.#n;t.highlighter?.setTextMapping(r,a),t.accessibilityManager?.setTextMapping(r),yield t.#n.render(),t.#r=!0;const o=document.createElement("div");o.className="endOfContent",t.div.append(o),t.#a(o),t.#t?.(t.div),t.highlighter?.enable(),t.accessibilityManager?.enable()}).apply(this,arguments)}hide(){!this.div.hidden&&this.#r&&(this.highlighter?.disable(),this.div.hidden=!0)}show(){this.div.hidden&&this.#r&&(this.div.hidden=!1,this.highlighter?.enable())}cancel(){this.#n?.cancel(),this.#n=null,this.highlighter?.disable(),this.accessibilityManager?.disable(),J.#l(this.div)}#a(e){const{div:t}=this;t.addEventListener("mousedown",()=>{t.classList.add("selecting")}),t.addEventListener("copy",n=>{if(!this.#e){const i=document.getSelection();n.clipboardData.setData("text/plain",te(Cn(i.toString())))}Ie(n)}),J.#i.set(t,e),J.#u()}static#l(e){this.#i.delete(e),0===this.#i.size&&(this.#s?.abort(),this.#s=null)}static#u(){if(this.#s)return;this.#s=new AbortController;const{signal:e}=this.#s,t=(a,o)=>{o.append(a),a.style.width="",a.style.height="",o.classList.remove("selecting")};let n=!1;var i,r;document.addEventListener("pointerdown",()=>{n=!0},{signal:e}),document.addEventListener("pointerup",()=>
1{n=!1,this.#i.forEach(t)},{signal:e}),window.addEventListener("blur",()=>{n=!1,this.#i.forEach(t)},{signal:e}),document.addEventListener("keyup",()=>{n||this.#i.forEach(t)},{signal:e}),document.addEventListener("selectionchange",()=>{const a=document.getSelection();if(0===a.rangeCount)return void this.#i.forEach(t);const o=new Set;for(let m=0;m<a.rangeCount;m++){const x=a.getRangeAt(m);for(const v of this.#i.keys())!o.has(v)&&x.intersectsNode(v)&&o.add(v)}for(const[m,x]of this.#i)o.has(m)?m.classList.add("selecting"):t(x,m);if(i??="none"===getComputedStyle(this.#i.values().next().value).getPropertyValue("-moz-user-select"),i)return;const l=a.getRangeAt(0),u=r&&(0===l.compareBoundaryPoints(Range.END_TO_END,r)||0===l.compareBoundaryPoints(Range.START_TO_END,r));let d=u?l.startContainer:l.endContainer;d.nodeType===Node.TEXT_NODE&&(d=d.parentNode);const f=d.parentElement?.closest(".textLayer"),g=this.#i.get(f);g&&(g.style.width=f.style.width,g.style.height=f.style.height,d.parentElement.insertBefore(g,u?d:d.nextSibling)),r=l.cloneRange()},{signal:e})}}class Nt{constructor({pdfPage:e,annotationStorage:t=null,linkService:n,xfaHtml:i=null}){this.pdfPage=e,this.annotationStorage=t,this.linkService=n,this.xfaHtml=i,this.div=null,this._cancelled=!1}render(e){var t=this;return(0,E.A)(function*(n,i="display"){if("print"===i){const o={viewport:n.clone({dontFlip:!0}),div:t.div,xfaHtml:t.xfaHtml,annotationStorage:t.annotationStorage,linkService:t.linkService,intent:i};return t.div=document.createElement("div"),o.div=t.div,Le.render(o)}const r=yield t.pdfPage.getXfa();if(t._cancelled||!r)return{textDivs:[]};const a={viewport:n.clone({dontFlip:!0}),div:t.div,xfaHtml:r,annotationStorage:t.annotationStorage,linkService:t.linkService,intent:i};return t.div?Le.update(a):(t.div=document.createElement("div"),a.div=t.div,Le.render(a))}).apply(this,arguments)}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}const Oi={annotationEditorUIManager:null,annotationStorage:null,downloadManager:null,enableScripting:!1,fieldObjectsPromise:null,findController:null,hasJSActionsPromise:null,get linkService(){return new Se}},Fi=new Map([["canvasWrapper",0],["textLayer",1],["annotationLayer",2],["annotationEditorLayer",3],["xfaLayer",3]]);class Mt{#e=U.ENABLE_FORMS;#t=null;#r=!1;#n=!1;#i=!1;#s=null;#a=null;#l=null;#u=null;#o=1;#d=1;#f=null;#p=M.INITIAL;#c=1;#g={directDrawing:!0,initialOptionalContent:!0,regularAnnotations:!0};#h=[null,null,null,null];constructor(e){const t=e.container,n=e.defaultViewport;this.id=e.id,this.renderingId="page"+this.id,this.#s=e.layerProperties||Oi,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=e.scale||1,this.viewport=n,this.pdfPageRotate=n.rotation,this._optionalContentConfigPromise=e.optionalContentConfigPromise||null,this.#c=e.textLayerMode??1,this.#e=e.annotationMode??U.ENABLE_FORMS,this.imageResourcesPath=e.imageResourcesPath||"",this.maxCanvasPixels=e.maxCanvasPixels??Ni.get("maxCanvasPixels"),this.pageColors=e.pageColors||null,this.#r=e.enableHWA||!1,this.eventBus=e.eventBus,this.renderingQueue=e.renderingQueue,this.l10n=e.l10n,this.l10n||=new z,this.renderTask=null,this.resume=null,this._isStandalone=!this.renderingQueue?.hasViewer(),this._container=t,this._annotationCanvasMap=null,this.annotationLayer=null,this.annotationEditorLayer=null,this.textLayer=null,this.xfaLayer=null,this.structTreeLayer=null,this.drawLayer=null;const i=document.createElement("div");if(i.className="page",i.setAttribute("data-page-number",this.id),i.setAttribute("role","region"),i.setAttribute("data-l10n-id","pdfjs-page-landmark"),i.setAttribute("data-l10n-args",JSON.stringify({page:this.id})),this.div=i,this.#E(),t?.append(i),this._isStandalone){t?.style.setProperty("--scale-factor",this.scale*$.PDF_TO_CSS_UNITS),this.pageColors?.background&&t?.style.setProperty("--page-bg-color",this.pageColors.background);const{optionalContentConfigPromise:r}=e;r&&r.then(a=>{r===this._optionalContentConfigPromise&&(this.#g.initialOptionalContent=a.hasInitialVisibility)}),e.l10n||this.l10n.translate(this.div)}}#m(e,t){const n=Fi.get(t),i=this.#h[n];if(this.#h[n]=e,i)i.replaceWith(e);else{for(let r=n-1;r>=0;r--){const a=this.#h[r];if(a)return void a.after(e)}this.div.prepend(e)}}get renderingState(){return this.#p}set renderingState(e){if(e!==this.#p)switch(this.#p=e,this.#a&&(clearTimeout(this.#a),this.#a=null),e){case M.PAUSED:this.div.classList.remove("loading");break;case M.RUNNING:this.div.classList.add("loadingIcon"),this.#a=setTimeout(()=>{this.div.classList.add("loading"),this.#a=null},0);break;case M.INITIAL:case M.FINISHED:this.div.classList.remove("loadingIcon","loading")}}#E(){const{viewport:e}=this;if(this.pdfPage){if(this.#u===e.rotation)return;this.#u=e.rotation}Nn(this.div,e,!0,!1)}setPdfPage(e){this._isStandalone&&("CanvasText"===this.pageColors?.foreground||"Canvas"===this.pageColors?.background)&&
1(this._container?.style.setProperty("--hcm-highlight-filter",e.filterFactory.addHighlightHCMFilter("highlight","CanvasText","Canvas","HighlightText","Highlight")),this._container?.style.setProperty("--hcm-highlight-selected-filter",e.filterFactory.addHighlightHCMFilter("highlight_selected","CanvasText","Canvas","HighlightText","Highlight"))),this.pdfPage=e,this.pdfPageRotate=e.rotate,this.viewport=e.getViewport({scale:this.scale*$.PDF_TO_CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.#E(),this.reset()}destroy(){this.reset(),this.pdfPage?.cleanup()}hasEditableAnnotations(){return!!this.annotationLayer?.hasEditableAnnotations()}get _textHighlighter(){return pe(this,"_textHighlighter",new Di({pageIndex:this.id-1,eventBus:this.eventBus,findController:this.#s.findController}))}#b(e,t){this.eventBus.dispatch(e,{source:this,pageNumber:this.id,error:t})}#v(){var e=this;return(0,E.A)(function*(){let t=null;try{yield e.annotationLayer.render(e.viewport,{structTreeLayer:e.structTreeLayer},"display")}catch(n){console.error("#renderAnnotationLayer:",n),t=n}finally{e.#b("annotationlayerrendered",t)}})()}#y(){var e=this;return(0,E.A)(function*(){let t=null;try{yield e.annotationEditorLayer.render(e.viewport,"display")}catch(n){console.error("#renderAnnotationEditorLayer:",n),t=n}finally{e.#b("annotationeditorlayerrendered",t)}})()}#_(){var e=this;return(0,E.A)(function*(){try{yield e.drawLayer.render("display")}catch(t){console.error("#renderDrawLayer:",t)}})()}#P(){var e=this;return(0,E.A)(function*(){let t=null;try{const n=yield e.xfaLayer.render(e.viewport,"display");n?.textDivs&&e._textHighlighter&&e.#S(n.textDivs)}catch(n){console.error("#renderXfaLayer:",n),t=n}finally{e.xfaLayer?.div&&(e.l10n.pause(),e.#m(e.xfaLayer.div,"xfaLayer"),e.l10n.resume()),e.#b("xfalayerrendered",t)}})()}#w(){var e=this;return(0,E.A)(function*(){if(!e.textLayer)return;let t=null;try{yield e.textLayer.render(e.viewport)}catch(n){if(n instanceof wn)return;console.error("#renderTextLayer:",n),t=n}e.#b("textlayerrendered",t),e.#A()})()}#A(){var e=this;return(0,E.A)(function*(){if(!e.textLayer)return;const t=yield e.structTreeLayer?.render();t&&(e.l10n.pause(),e.structTreeLayer?.addElementsToTextLayer(),e.canvas&&t.parentNode!==e.canvas&&e.canvas.append(t),e.l10n.resume()),e.structTreeLayer?.show()})()}#S(e){var t=this;return(0,E.A)(function*(){const n=yield t.pdfPage.getTextContent(),i=[];for(const r of n.items)i.push(r.str);t._textHighlighter.setTextMapping(e,i),t._textHighlighter.enable()})()}#I(){const{canvas:e}=this;e&&(e.remove(),e.width=e.height=0,this.canvas=null,this.#l=null)}reset({keepAnnotationLayer:e=!1,keepAnnotationEditorLayer:t=!1,keepXfaLayer:n=!1,keepTextLayer:i=!1,keepCanvasWrapper:r=!1}={}){this.cancelRendering({keepAnnotationLayer:e,keepAnnotationEditorLayer:t,keepXfaLayer:n,keepTextLayer:i}),this.renderingState=M.INITIAL;const a=this.div,o=a.childNodes,l=e&&this.annotationLayer?.div||null,u=t&&this.annotationEditorLayer?.div||null,d=n&&this.xfaLayer?.div||null,f=i&&this.textLayer?.div||null,g=r&&this.#t||null;for(let m=o.length-1;m>=0;m--){const x=o[m];switch(x){case l:case u:case d:case f:case g:continue}x.remove();const v=this.#h.indexOf(x);v>=0&&(this.#h[v]=null)}a.removeAttribute("data-loaded"),l&&this.annotationLayer.hide(),u&&this.annotationEditorLayer.hide(),d&&this.xfaLayer.hide(),f&&this.textLayer.hide(),this.structTreeLayer?.hide(),!r&&this.#t&&(this.#t=null,this.#I())}toggleEditingMode(e){this.hasEditableAnnotations()&&(this.#i=e,this.reset({keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,keepCanvasWrapper:!0}))}update({scale:e=0,rotation:t=null,optionalContentConfigPromise:n=null,drawingDelay:i=-1}){if(this.scale=e||this.scale,"number"==typeof t&&(this.rotation=t),n instanceof Promise&&(this._optionalContentConfigPromise=n,n.then(a=>{n===this._optionalContentConfigPromise&&(this.#g.initialOptionalContent=a.hasInitialVisibility)})),this.#g.directDrawing=!0,this.viewport=this.viewport.clone({scale:this.scale*$.PDF_TO_CSS_UNITS,rotation:(this.rotation+this.pdfPageRotate)%360}),this.#E(),this._isStandalone&&this._container?.style.setProperty("--scale-factor",this.viewport.scale),this.canvas){let a=!1;if(this.#n)if(0===this.maxCanvasPixels)a=!0;else if(this.maxCanvasPixels>0){const{width:l,height:u}=this.viewport,{sx:d,sy:f}=this.outputScale;a=(Math.floor(l)*d|0)*(Math.floor(u)*f|0)>this.maxCanvasPixels}const o=i>=0&&i<1e3;if(o||a){if(o&&!a&&this.renderingState!==M.FINISHED&&(this.cancelRendering({keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,cancelExtraDelay:i}),this.renderingState=M.FINISHED,this.#g.directDrawing=!1),this.cssTransform({redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0,redrawTextLayer:!o,hideTextLayer:o}),o)return;return void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this.#f})}}this.cssTransform({}),this.reset({keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,keepCanvasWrapper:!0})}cancelRendering({keepAnnotationLayer:e=!1,keepAnnotationEditorLayer:t=!1,keepXfaLayer:n=!1,keepTextLayer:i=!1,cancelExtraDelay:r=0}={}){this.renderTask&&(this.renderTask.cancel(r),this.renderTask=null),this.resume=null,this.textLayer&&(!i||!this.textLayer.div)&&(this.textLayer.cancel(),this.textLayer=null),this.annotationLayer&&(!e||!this.annotationLayer.div)&&(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),this.structTreeLayer&&!this.textLayer&&(this.structTreeLayer=null),this.annotationEditorLayer&&(!t||!this.annotationEditorLayer.div)&&(this.drawLayer&&(this.drawLayer.cancel(),this.drawLayer=null),this.annotationEditorLayer.cancel(),this.annotationEditorLayer=null),this.xfaLayer&&(!n||!this.xfaLayer.div)&&(this.xfaLayer.cancel(),this.xfaLayer=null,this._textHighlighter?.disable())}cssTransform({redrawAnnotationLayer:e=!1,redrawAnnotationEditorLayer:t=!1,redrawXfaLayer:n=!1,redrawTextLayer:i=!1,hideTextLayer:r=!1}){const{canvas:a}=this;if(!a)return;const o=this.#l;if(this.viewport!==o){const l=(360+this.viewport.rotation-o.rotation)%360;if(90===l||270===l){const{width:u,height:d}=this.viewport;a.style.transform=`rotate(${l}deg) scale(${d/u},${u/d})`}else a.style.transform=0===l?"":`rotate(${l}deg)`}e&&this.annotationLayer&&this.#v(),t&&this.annotationEditorLayer&&(this.drawLayer&&this.#_(),this.#y()),n&&this.xfaLayer&&this.#P(),this.textLayer&&(r?(this.textLayer.hide(),this.structTreeLayer?.hide()):i&&this.#w())}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(e,t){return this.viewport.convertToPdfPoint(e,t)}#L(e){var t=this;return(0,E.A)(function*(n,i=null){if(n===t.renderTask&&(t.renderTask=null),i instanceof Ae)t.#f=null;else if(t.#f=i,t.renderingState=M.FINISHED,t.#g.regularAnnotations=!n.separateAnnots,t.eventBus.dispatch("pagerendered",{source:t,pageNumber:t.id,cssTransform:!1,timestamp:performance.now(),error:t.#f}),i)throw i}).apply(this,arguments)}draw(){var e=this;return(0,E.A)(function*(){e.renderingState!==M.INITIAL&&(console.error("Must be in new state before drawing"),e.reset());
1const{div:t,l10n:n,pageColors:i,pdfPage:r,viewport:a}=e;if(!r)throw e.renderingState=M.FINISHED,new Error("pdfPage is not loaded");e.renderingState=M.RUNNING;let o=e.#t;if(o||(o=e.#t=document.createElement("div"),o.classList.add("canvasWrapper"),e.#m(o,"canvasWrapper")),!e.textLayer&&0!==e.#c&&!r.isPureXfa&&(e._accessibilityManager||=new ae,e.textLayer=new J({pdfPage:r,highlighter:e._textHighlighter,accessibilityManager:e._accessibilityManager,enablePermissions:2===e.#c,onAppend:w=>{e.l10n.pause(),e.#m(w,"textLayer"),e.l10n.resume()}})),!e.annotationLayer&&e.#e!==U.DISABLE){const{annotationStorage:w,annotationEditorUIManager:N,downloadManager:F,enableScripting:Be,fieldObjectsPromise:pr,hasJSActionsPromise:gr,linkService:mr}=e.#s;e._annotationCanvasMap||=new Map,e.annotationLayer=new lt({pdfPage:r,annotationStorage:w,imageResourcesPath:e.imageResourcesPath,renderForms:e.#e===U.ENABLE_FORMS,linkService:mr,downloadManager:F,enableScripting:Be,hasJSActionsPromise:gr,fieldObjectsPromise:pr,annotationCanvasMap:e._annotationCanvasMap,accessibilityManager:e._accessibilityManager,annotationEditorUIManager:N,onAppend:br=>{e.#m(br,"annotationLayer")}})}const{width:u,height:d}=a,f=document.createElement("canvas");f.setAttribute("role","presentation");const m=e.canvas,x=!(m||i?.background&&i?.foreground);e.canvas=f,e.#l=a;let v=w=>{if(x)return o.prepend(f),void(v=null);w&&(m?(m.replaceWith(f),m.width=m.height=0):o.prepend(f),v=null)};const C=f.getContext("2d",{alpha:!1,willReadFrequently:!e.#r}),_=e.outputScale=new Rn;if(0===e.maxCanvasPixels){const w=1/e.scale;_.sx*=w,_.sy*=w,e.#n=!0}else if(e.maxCanvasPixels>0){const N=Math.sqrt(e.maxCanvasPixels/(u*d));_.sx>N||_.sy>N?(_.sx=N,_.sy=N,e.#n=!0):e.#n=!1}const A=Ye(_.sx),b=Ye(_.sy),S=f.width=ue(de(u*_.sx),A[0]),y=f.height=ue(de(d*_.sy),b[0]),L=ue(de(u),A[1]),D=ue(de(d),b[1]);_.sx=S/L,_.sy=y/D,e.#o!==A[1]&&(t.style.setProperty("--scale-round-x",`${A[1]}px`),e.#o=A[1]),e.#d!==b[1]&&(t.style.setProperty("--scale-round-y",`${b[1]}px`),e.#d=b[1]);const h={canvasContext:C,transform:_.scaled?[_.sx,0,0,_.sy,0,0]:null,viewport:
1a,annotationMode:e.#e,optionalContentConfigPromise:e._optionalContentConfigPromise,annotationCanvasMap:e._annotationCanvasMap,pageColors:i,isEditing:e.#i},p=e.renderTask=r.render(h);p.onContinue=w=>{if(v?.(!1),e.renderingQueue&&!e.renderingQueue.isHighestPriority(e))return e.renderingState=M.PAUSED,void(e.resume=()=>{e.renderingState=M.RUNNING,w()});w()};const P=p.promise.then((0,E.A)(function*(){v?.(!0),yield e.#L(p),e.structTreeLayer||=new Rt(r,a.rawDims),e.#w(),e.annotationLayer&&(yield e.#v());const{annotationEditorUIManager:w}=e.#s;w&&(e.drawLayer||=new Mi({pageIndex:e.id}),yield e.#_(),e.drawLayer.setParent(o),e.annotationEditorLayer||=new Ri({uiManager:w,pdfPage:r,l10n:n,structTreeLayer:e.structTreeLayer,accessibilityManager:e._accessibilityManager,annotationLayer:e.annotationLayer?.annotationLayer,textLayer:e.textLayer,drawLayer:e.drawLayer.getDrawLayer(),onAppend:N=>{e.#m(N,"annotationEditorLayer")}}),e.#y())}),w=>(w instanceof Ae?(m?.remove(),e.#I()):v?.(!0),e.#L(p,w)));if(r.isPureXfa){if(!e.xfaLayer){const{annotationStorage:w,linkService:N}=e.#s;e.xfaLayer=new Nt({pdfPage:r,annotationStorage:w,linkService:N})}e.#P()}return t.setAttribute("data-loaded",!0),e.eventBus.dispatch("pagerender",{source:e,pageNumber:e.id}),P})()}setPageLabel(e){this.pageLabel="string"==typeof e?e:null,this.div.setAttribute("data-l10n-args",JSON.stringify({page:this.pageLabel??this.id})),null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}get thumbnailCanvas(){const{directDrawing:e,initialOptionalContent:t,regularAnnotations:n}=this.#g;return e&&t&&n?this.canvas:null}}function Ve(){return(Ve=(0,E.A)(function*(s){const t="".split("#",1)[0];let{info:n,metadata:i,contentDispositionFilename:r,contentLength:a}=yield s.getMetadata();if(!a){const{length:o}=yield s.getDownloadInfo();a=o}return{...n,baseURL:t,filesize:a,filename:r||Ln(""),metadata:i?.getRaw(),authors:i?.get("dc:creator"),numPages:s.numPages,URL:""}})).apply(this,arguments)}class Vi{constructor(e){this._ready=new Promise((t,n)=>{import(e).then(r=>{t(r.QuickJSSandbox())}).catch(n)})}createSandbox(e){var t=this;return(0,E.A)(function*(){(yield t._ready).create(e)})()}dispatchEventInSandbox(e){var t=this;return(0,E.A)(function*(){const n=yield t._ready;setTimeout(()=>n.dispatchEvent(e),0)})()}destroySandbox(){var e=this;return(0,E.A)(function*(){(yield e._ready).nukeSandbox()})()}}class Bi{#e=null;#t=null;#r=null;#n=null;#i=null;#s=null;#a=null;#l=null;#u=!1;#o=null;#d=null;constructor({eventBus:e,externalServices:t=null,docProperties:n=null}){this.#i=e,this.#s=t,this.#r=n}setViewer(e){this.#l=e}setDocument(e){var t=this;return(0,E.A)(function*(){if(t.#a&&(yield t.#h()),t.#a=e,!e)return;const[n,i,r]=yield Promise.all([e.getFieldObjects(),e.getCalculationOrderIds(),e.getJSActions()]);if(!n&&!r)return void(yield t.#h());if(e!==t.#a)return;try{t.#o=t.#g()}catch(l){return console.error("setDocument:",l),void(yield t.#h())}const a=t.#i;t.#n=new AbortController;const{signal:o}=t.#n;a._on("updatefromsandbox",l=>{l?.source===window&&t.#f(l.detail)},{signal:o}),a._on("dispatcheventinsandbox",l=>{t.#o?.dispatchEventInSandbox(l.detail)},{signal:o}),a._on("pagechanging",({pageNumber:l,previous:u})=>{l!==u&&(t.#c(u),t.#p(l))},{signal:o}),a._on("pagerendered",({pageNumber:l})=>{t._pageOpenPending.has(l)&&l===t.#l.currentPageNumber&&t.#p(l)},{signal:o}),a._on("pagesdestroy",(0,E.A)(function*(){yield t.#c(t.#l.currentPageNumber),yield t.#o?.dispatchEventInSandbox({id:"doc",name:"WillClose"}),t.#e?.resolve()}),{signal:o});try{const l=yield t.#r(e);if(e!==t.#a)return;yield t.#o.createSandbox({objects:n,calculationOrder:i,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:{...l,actions:r}}),a.dispatch("sandboxcreated",{source:t})}catch(l){return console.error("setDocument:",l),void(yield t.#h())}yield t.#o?.dispatchEventInSandbox({id:"doc",name:"Open"}),yield t.#p(t.#l.currentPageNumber,!0),Promise.resolve().then(()=>{e===t.#a&&(t.#u=!0)})})()}dispatchWillSave(){var e=this;return(0,E.A)(function*(){return e.#o?.dispatchEventInSandbox({id:"doc",name:"WillSave"})})()}dispatchDidSave(){var e=this;return(0,E.A)(function*(){return e.#o?.dispatchEventInSandbox({id:"doc",name:"DidSave"})})()}dispatchWillPrint(){var e=this;return(0,E.A)(function*(){if(e.#o){yield e.#d?.promise,e.#d=Promise.withResolvers();try{yield e.#o.dispatchEventInSandbox({id:"doc",name:"WillPrint"})}catch(t){throw e.#d.resolve(),e.#d=null,t}yield e.#d.promise}})()}dispatchDidPrint(){var e=this;return(0,E.A)(function*(){return e.#o?.dispatchEventInSandbox({id:"doc",name:"DidPrint"})})()}
1get destroyPromise(){return this.#t?.promise||null}get ready(){return this.#u}get _pageOpenPending(){return pe(this,"_pageOpenPending",new Set)}get _visitedPages(){return pe(this,"_visitedPages",new Map)}#f(e){var t=this;return(0,E.A)(function*(){const n=t.#l,i=n.isInPresentationMode||n.isChangingPresentationMode,{id:r,siblings:a,command:o,value:l}=e;if(!r){switch(o){case"clear":console.clear();break;case"error":console.error(l);break;case"layout":if(!i){const d=function Yt(s){let e=I.VERTICAL,t=O.NONE;switch(s){case"SinglePage":e=I.PAGE;break;case"OneColumn":break;case"TwoPageLeft":e=I.PAGE;case"TwoColumnLeft":t=O.ODD;break;case"TwoPageRight":e=I.PAGE;case"TwoColumnRight":t=O.EVEN}return{scrollMode:e,spreadMode:t}}(l);n.spreadMode=d.spreadMode}break;case"page-num":n.currentPageNumber=l+1;break;case"print":yield n.pagesPromise,t.#i.dispatch("print",{source:t});break;case"println":console.log(l);break;case"zoom":i||(n.currentScaleValue=l);break;case"SaveAs":t.#i.dispatch("download",{source:t});break;case"FirstPage":n.currentPageNumber=1;break;case"LastPage":n.currentPageNumber=n.pagesCount;break;case"NextPage":n.nextPage();break;case"PrevPage":n.previousPage();break;case"ZoomViewIn":i||n.increaseScale();break;case"ZoomViewOut":i||n.decreaseScale();break;case"WillPrintFinished":t.#d?.resolve(),t.#d=null}return}if(i&&e.focus)return;delete e.id,delete e.siblings;const u=a?[r,...a]:[r];for(const d of u){const f=document.querySelector(`[data-element-id="${d}"]`);f?f.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:e})):t.#a?.annotationStorage.setValue(d,e)}})()}#p(e){var t=this;return(0,E.A)(function*(n,i=!1){const r=t.#a,a=t._visitedPages;if(i&&(t.#e=Promise.withResolvers()),!t.#e)return;const o=t.#l.getPageView(n-1);if(o?.renderingState!==M.FINISHED)return void t._pageOpenPending.add(n);t._pageOpenPending.delete(n);const l=(0,E.A)(function*(){const u=yield a.has(n)?null:o.pdfPage?.getJSActions();r===t.#a&&(yield t.#o?.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:n,actions:u}))})();a.set(n,l)}).apply(this,arguments)}#c(e){var t=this;return(0,E.A)(function*(){const n=t.#a,i=t._visitedPages;if(!t.#e||t._pageOpenPending.has(e))return;const r=i.get(e);r&&(i.set(e,null),yield r,n===t.#a&&(yield t.#o?.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:e})))})()}#g(){if(this.#t=Promise.withResolvers(),this.#o)throw new Error("#initScripting: Scripting already exists.");return this.#s.createScripting()}#h(){var e=this;return(0,E.A)(function*(){if(!e.#o)return e.#a=null,void e.#t?.resolve();e.#e&&(yield Promise.race([e.#e.promise,new Promise(t=>{setTimeout(t,1e3)})]).catch(()=>{}),e.#e=null),e.#a=null;try{yield e.#o.destroySandbox()}catch{}e.#d?.reject(new Error("Scripting destroyed.")),e.#d=null,e.#n?.abort(),e.#n=null,e._pageOpenPending.clear(),e._visitedPages.clear(),e.#o=null,e.#u=!1,e.#t?.resolve()})()}}class Hi extends Bi{constructor(e){e.externalServices||window.addEventListener("updatefromsandbox",t=>{e.eventBus.dispatch("updatefromsandbox",{source:window,detail:t.detail})}),e.externalServices||={createScripting:()=>new Vi(e.sandboxBundleSrc)},e.docProperties||=t=>function ji(s){return Ve.apply(this,arguments)}(t),super(e)}}class $i{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1,Object.defineProperty(this,"hasViewer",{value:()=>!!this.pdfViewer})}setViewer(e){this.pdfViewer=e}setThumbnailViewer(e){this.pdfThumbnailViewer=e}isHighestPriority(e){return this.highestPriorityPage===e.renderingId}renderHighestPriority(e){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(e)&&(this.isThumbnailViewEnabled&&this.pdfThumbnailViewer?.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4)))}getHighestPriority(e,t,n,i=!1){const r=e.views,a=r.length;if(0===a)return null;for(let f=0;f<a;f++){const g=r[f].view;if(!this.isViewFinished(g))return g}const o=e.first.id,l=e.last.id;if(l-o+1>a){const f=e.ids;for(let g=1,m=l-o;g<m;g++){const x=n?o+g:l-g;if(f.has(x))continue;const v=t[x-1];if(!this.isViewFinished(v))return v}}let u=n?l:o-2,d=t[u];return d&&!this.isViewFinished(d)||i&&(u+=n?1:-1,d=t[u],d&&!this.isViewFinished(d))?d:null}isViewFinished(e){return e.renderingState===M.FINISHED}renderView(e){switch(e.renderingState){case M.FINISHED:return!1;case M.PAUSED:this.highestPriorityPage=e.renderingId,e.resume();break;case M.RUNNING:this.highestPriorityPage=e.renderingId;break;case M.INITIAL:this.highestPriorityPage=e.renderingId,e.draw().finally(()=>{this.renderHighestPriority()}).catch(t=>{t instanceof Ae||console.error("renderView:",t)})}return!0}}function Dt(s){return Object.values(j).includes(s)&&s!==j.DISABLE}class Wi{#e=new Set;#t=0;constructor(e){this.#t=e}push(e){const t=this.#e;t.has(e)&&t.delete(e),t.add(e),t.size>this.#t&&this.#r()}resize(e,t=null){this.#t=e;const n=this.#e;if(t){const i=n.size;let r=1;for(const a of n)if(t.has(a.id)&&(n.delete(a),n.add(a)),++r>i)break}for(;n.size>this.#t;)this.#r()}has(e){return this.#e.has(e)}[Symbol.iterator](){return this.#e.keys()}#r(){const e=this.#e.keys().next().value;e?.destroy(),this.#e.delete(e)}}class Ot{#e=null;#t=null;#r=null;#n=j.NONE;#i=null;#s=U.ENABLE_FORMS;#a=null;#l=null;#u=!1;#o=!1;#d=!1;#f=!1;#p=!1;#c=null;#g=null;#h=null;#m=null;#E=!1;#b=null;#v=!1;#y=0;#_=new ResizeObserver(this.#H.bind(this));#P=null;#w=null;#A=!0;#S=1;constructor(e){const t="4.10.38";if(ot!==t)throw new Error(`The API version "${ot}" does not match the Viewer version "${t}".`);if(this.container=e.container,this.viewer=e.viewer||e.container.firstElementChild,"DIV"!==this.container?.tagName||"DIV"!==this.viewer?.tagName)throw new Error("Invalid `container` and/or `viewer` option.");
1if(this.container.offsetParent&&"absolute"!==getComputedStyle(this.container).position)throw new Error("The `container` must be absolutely positioned.");this.#_.observe(this.container),this.eventBus=e.eventBus,this.linkService=e.linkService||new Se,this.downloadManager=e.downloadManager||null,this.findController=e.findController||null,this.#t=e.altTextManager||null,this.#l=e.editorUndoBar||null,this.findController&&(this.findController.onIsPageVisible=i=>this._getVisiblePages().ids.has(i)),this._scriptingManager=e.scriptingManager||null,this.#S=e.textLayerMode??1,this.#s=e.annotationMode??U.ENABLE_FORMS,this.#n=e.annotationEditorMode??j.NONE,this.#r=e.annotationEditorHighlightColors||null,this.#o=!0===e.enableHighlightFloatingButton,this.#f=!0===e.enableUpdatedAddImage,this.#p=!0===e.enableNewAltTextWhenAddingImage,this.imageResourcesPath=e.imageResourcesPath||"",this.enablePrintAutoRotate=e.enablePrintAutoRotate||!1,this.removePageBorders=e.removePageBorders||!1,this.maxCanvasPixels=e.maxCanvasPixels,this.l10n=e.l10n,this.l10n||=new z,this.#d=e.enablePermissions||!1,this.pageColors=e.pageColors||null,this.#g=e.mlManager||null,this.#u=e.enableHWA||!1,this.#A=!1!==e.supportsPinchToZoom,this.defaultRenderingQueue=!e.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new $i,this.renderingQueue.setViewer(this)):this.renderingQueue=e.renderingQueue;const{abortSignal:n}=e;n?.addEventListener("abort",()=>{this.#_.disconnect(),this.#_=null},{once:!0}),this.scroll=function Ut(s,e,t){const n=function(a){r||(r=window.requestAnimationFrame(function(){r=null;const l=s.scrollLeft,u=i.lastX;l!==u&&(i.right=l>u),i.lastX=l;const d=s.scrollTop,f=i.lastY;d!==f&&(i.down=d>f),i.lastY=d,e(i)}))},i={right:!0,down:!0,lastX:s.scrollLeft,lastY:s.scrollTop,_eventHandler:n};let r=null;return s.addEventListener("scroll",n,{useCapture:!0,signal:t}),t?.addEventListener("abort",()=>window.cancelAnimationFrame(r),{once:!0}),i}(this.container,this._scrollUpdate.bind(this),n),this.presentationModeState=0,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.#k(),this.eventBus._on("thumbnailrendered",({pageNumber:i,pdfPage:r})=>{this.#e.has(this._pages[i-1])||r?.cleanup()}),e.l10n||this.l10n.translate(this.container)}get pagesCount(){return this._pages.length}getPageView(e){return this._pages[e]}getCachedPageViews(){return new Set(this.#e)}get pageViewsReady(){return this._pages.every(e=>e?.pdfPage)}get renderForms(){return this.#s===U.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(e){if(!Number.isInteger(e))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(e,!0)||console.error(`currentPageNumber: "${e}" is not a valid page.`))}_setCurrentPageNumber(e,t=!1){if(this._currentPageNumber===e)return t&&this.#M(),!0;if(!(0<e&&e<=this.pagesCount))return!1;const n=this._currentPageNumber;return this._currentPageNumber=e,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:e,pageLabel:this._pageLabels?.[e-1]??null,previous:n}),t&&this.#M(),!0}get currentPageLabel(){return this._pageLabels?.[this._currentPageNumber-1]??null}set currentPageLabel(e){if(!this.pdfDocument)return;let t=0|e;if(this._pageLabels){const n=this._pageLabels.indexOf(e);n>=0&&(t=n+1)}this._setCurrentPageNumber(t,!0)||console.error(`currentPageLabel: "${e}" is not a valid page.`)}get currentScale(){return 0!==this._currentScale?this._currentScale:1}set currentScale(e){if(isNaN(e))throw new Error("Invalid numeric scale.");this.pdfDocument&&this.#x(e,{noScroll:!1})}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(e){this.pdfDocument&&this.#x(e,{noScroll:!1})}get pagesRotation(){return this._pagesRotation}set pagesRotation(e){if(!Je(e))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||((e%=360)<0&&(e+=360),this._pagesRotation===e))return;this._pagesRotation=e;const t=this._currentPageNumber;this.refresh(!0,{rotation:e}),this._currentScaleValue&&this.#x(this._currentScaleValue,{noScroll:!0}),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:e,pageNumber:t}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}get _layerProperties(){const e=this;return pe(this,"_layerProperties",{get annotationEditorUIManager(){return e.#i},get annotationStorage(){return e.pdfDocument?.annotationStorage},get downloadManager(){return e.downloadManager},get enableScripting(){return!!e._scriptingManager},get fieldObjectsPromise(){return e.pdfDocument?.getFieldObjects()},get findController(){return e.findController}
1,get hasJSActionsPromise(){return e.pdfDocument?.hasJSActions()},get linkService(){return e.linkService}})}#I(e){const t={annotationEditorMode:this.#n,annotationMode:this.#s,textLayerMode:this.#S};return e&&(!e.includes(fe.COPY)&&1===this.#S&&(t.textLayerMode=2),e.includes(fe.MODIFY_CONTENTS)||(t.annotationEditorMode=j.DISABLE),!e.includes(fe.MODIFY_ANNOTATIONS)&&!e.includes(fe.FILL_INTERACTIVE_FORMS)&&this.#s===U.ENABLE_FORMS&&(t.annotationMode=U.ENABLE)),t}#L(e){var t=this;return(0,E.A)(function*(){if("hidden"===document.visibilityState||!t.container.offsetParent||0===t._getVisiblePages().views.length)return;const n=Promise.withResolvers(),i=new AbortController;document.addEventListener("visibilitychange",()=>{"hidden"===document.visibilityState&&n.resolve()},{signal:"function"==typeof AbortSignal.any?AbortSignal.any([e,i.signal]):e}),yield Promise.race([t._onePageRenderedCapability.promise,n.promise]),i.abort()})()}getAllText(){var e=this;return(0,E.A)(function*(){const t=[],n=[];for(let i=1,r=e.pdfDocument.numPages;i<=r;++i){if(e.#v)return null;n.length=0;const a=yield e.pdfDocument.getPage(i),{items:o}=yield a.getTextContent();for(const l of o)l.str&&n.push(l.str),l.hasEOL&&n.push("\n");t.push(te(n.join("")))}return t.join("\n")})()}#D(e,t){const n=document.getSelection(),{focusNode:i,anchorNode:r}=n;if(r&&i&&n.containsNode(this.#b)){if(this.#E||2===e)return void Ie(t);this.#E=!0;const{classList:a}=this.viewer;a.add("copyAll");const o=new AbortController;window.addEventListener("keydown",l=>this.#v="Escape"===l.key,{signal:o.signal}),this.getAllText().then(function(){var l=(0,E.A)(function*(u){null!==u&&(yield navigator.clipboard.writeText(u))});return function(u){return l.apply(this,arguments)}}()).catch(l=>{console.warn(`Something goes wrong when extracting the text: ${l.message}`)}).finally(()=>{this.#E=!1,this.#v=!1,o.abort(),a.remove("copyAll")}),Ie(t)}}setDocument(e){var t=this;if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController?.setDocument(null),this._scriptingManager?.setDocument(null),this.#i?.destroy(),this.#i=null),this.pdfDocument=e,!e)return;const n=e.numPages,i=e.getPage(1),r=e.getOptionalContentConfig({intent:"display"}),a=this.#d?e.getPermissions():Promise.resolve(),{eventBus:o,pageColors:l,viewer:u}=this;this.#c=new AbortController;const{signal:d}=this.#c;if(n>1e4){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const m=this._scrollMode=I.PAGE;o.dispatch("scrollmodechanged",{source:this,mode:m})}this._pagesCapability.promise.then(()=>{o.dispatch("pagesloaded",{source:this,pagesCount:n})},()=>{}),o._on("pagerender",m=>{const x=this._pages[m.pageNumber-1];x&&this.#e.push(x)},{signal:d});const g=m=>{m.cssTransform||(this._onePageRenderedCapability.resolve({timestamp:m.timestamp}),o._off("pagerendered",g))};o._on("pagerendered",g,{signal:d}),Promise.all([i,a]).then(([m,x])=>{if(e!==this.pdfDocument)return;this._firstPageCapability.resolve(m),this._optionalContentConfigPromise=r;const{annotationEditorMode:v,annotationMode:C,textLayerMode:_}=this.#I(x);if(0!==_){const y=this.#b=document.createElement("div");y.id="hiddenCopyElement",u.before(y)}if("function"==typeof AbortSignal.any&&v!==j.DISABLE){const y=v;e.isPureXfa?console.warn("Warning: XFA-editing is not implemented."):Dt(y)?(this.#i=new xn(this.container,u,this.#t,o,e,l,this.#r,this.#o,this.#f,this.#p,this.#g,this.#l,this.#A),o.dispatch("annotationeditoruimanager",{source:this,uiManager:this.#i}),y!==j.NONE&&(y===j.STAMP&&this.#g?.loadModel("altText"),this.#i.updateMode(y))):console.error(`Invalid AnnotationEditor mode: ${y}`)}const A=this._scrollMode===I.PAGE?null:u,b=this.currentScale,S=m.getViewport({scale:b*$.PDF_TO_CSS_UNITS});u.style.setProperty("--scale-factor",S.scale),l?.background&&u.style.setProperty("--page-bg-color",l.background),("CanvasText"===l?.foreground||"Canvas"===l?.background)&&(u.style.setProperty("--hcm-highlight-filter",e.filterFactory.addHighlightHCMFilter("highlight","CanvasText","Canvas","HighlightText","Highlight")),u.style.setProperty("--hcm-highlight-selected-filter",e.filterFactory.addHighlightHCMFilter("highlight_selected","CanvasText","Canvas","HighlightText","ButtonText")));for(let y=1;y<=n;++y){const L=new Mt({container:A,eventBus:o,id:y,scale:b,defaultViewport:S.clone(),optionalContentConfigPromise:r,renderingQueue:this.renderingQueue,textLayerMode:_,annotationMode:C,imageResourcesPath:this.imageResourcesPath,maxCanvasPixels:this.maxCanvasPixels,pageColors:l,l10n:this.l10n,layerProperties:this._layerProperties,enableHWA:this.#u});this._pages.push(L)}this._pages[0]?.setPdfPage(m),this._scrollMode===I.PAGE?this.#T():this._spreadMode!==O.NONE&&this._updateSpreadMode(),this.#L(d).then((0,E.A)(function*(){if(e!==t.pdfDocument)return;if(t.findController?.setDocument(e),t._scriptingManager?.setDocument(e),t.#b&&document.addEventListener("copy",t.#D.bind(t,_),{signal:d}),t.#i&&o.dispatch("annotationeditormodechanged",{source:t,mode:t.#n}),e.loadingParams.disableAutoFetch||n>5e3)return void t._pagesCapability.resolve();let y=n-1;if(y<=0)t._pagesCapability.resolve();else for(let L=2;L<=n;++L){const D=e.getPage(L).then(T=>{const h=t._pages[L-1];h.pdfPage||h.setPdfPage(T),0==--y&&t._pagesCapability.resolve()},T=>{console.error(`Unable to get page ${L} to initialize viewer`,T),0==--y&&t._pagesCapability.resolve()});L%250==0&&(yield D)}})),o.dispatch("pagesinit",{source:this}),e.getMetadata().then(({info:y})=>{e===this.pdfDocument&&y.Language&&(u.lang=y.Language)}),this.defaultRenderingQueue&&this.update()}).catch(m=>{console.error("Unable to initialize viewer",m),this._pagesCapability.reject(m)})}setPageLabels(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let t=0,n=this._pages.length;t<n;t++)this._pages[t].setPageLabel(this._pageLabels?.[t]??null)}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=0,this._currentScaleValue=null,this._pageLabels=null,this.#e=new Wi(10),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=Promise.withResolvers(),this._onePageRenderedCapability=Promise.withResolvers(),this._pagesCapability=Promise.withResolvers(),this._scrollMode=I.VERTICAL,this._previousScrollMode=I.UNKNOWN,this._spreadMode=O.NONE,this.#P={previousPageNumber:1,scrollDown:!0,pages:[]},this.#c?.abort(),this.#c=null,this.viewer.textContent="",this._updateScrollMode(),this.viewer.removeAttribute("lang"),this.#b?.remove(),this.#b=null,this.#R()}#T(){if(this._scrollMode!==I.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");const e=this._currentPageNumber,t=this.#P,n=this.viewer;if(n.textContent="",t.pages.length=0,this._spreadMode!==O.NONE||this.isInPresentationMode){const i=new Set,r=this._spreadMode-1;-1===r?i.add(e-1):e%2!==r?(i.add(e-1),i.add(e)):(i.add(e-2),i.add(e-1));const a=document.createElement("div");if(a.className="spread",this.isInPresentationMode){const o=document.createElement("div");o.className="dummyPage",a.append(o)}for(const o of i){const l=this._pages[o];l&&(a.append(l.div),t.pages.push(l))}n.append(a)}else{const i=this._pages[e-1];n.append(i.div),t.pages.push(i)}t.scrollDown=e>=t.previousPageNumber,t.previousPageNumber=e}_scrollUpdate(){0!==this.pagesCount&&this.update()}#C(e,t=null){const{div:n,id:i}=e;if(this._currentPageNumber!==i&&this._setCurrentPageNumber(i),this._scrollMode===I.PAGE&&(this.#T(),this.update()),!t&&!this.isInPresentationMode){const r=n.offsetLeft+n.clientLeft,a=r+n.clientWidth,{scrollLeft:o,clientWidth:l}=this.container;(this._scrollMode===I.HORIZONTAL||r<o||a>o+l)&&(t={left:0,top:0})}Ze(n,t),!this._currentScaleValue&&this._location&&(this._location=null)}#O(e){return e===this._currentScale||Math.abs(e-this._currentScale)<1e-15}
1#N(e,t,{noScroll:n=!1,preset:i=!1,drawingDelay:r=-1,origin:a=null}){if(this._currentScaleValue=t.toString(),this.#O(e))return void(i&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t}));this.viewer.style.setProperty("--scale-factor",e*$.PDF_TO_CSS_UNITS);const o=r>=0&&r<1e3;this.refresh(!0,{scale:e,drawingDelay:o?r:-1}),o&&(this.#w=setTimeout(()=>{this.#w=null,this.refresh()},r));const l=this._currentScale;if(this._currentScale=e,!n){let d,u=this._currentPageNumber;if(this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(u=this._location.pageNumber,d=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:u,destArray:d,allowNegativeOffset:!0}),Array.isArray(a)){const f=e/l-1,[g,m]=this.containerTopLeft;this.container.scrollLeft+=(a[0]-m)*f,this.container.scrollTop+=(a[1]-g)*f}}this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:i?t:void 0}),this.defaultRenderingQueue&&this.update()}get#F(){return this._spreadMode!==O.NONE&&this._scrollMode!==I.HORIZONTAL?2:1}#x(e,t){let n=parseFloat(e);if(n>0)t.preset=!1,this.#N(n,e,t);else{const i=this._pages[this._currentPageNumber-1];if(!i)return;let r=40,a=5;this.isInPresentationMode?(r=a=4,this._spreadMode!==O.NONE&&(r*=2)):this.removePageBorders?r=a=0:this._scrollMode===I.HORIZONTAL&&([r,a]=[a,r]);const o=(this.container.clientWidth-r)/i.width*i.scale/this.#F,l=(this.container.clientHeight-a)/i.height*i.scale;switch(e){case"page-actual":n=1;break;case"page-width":n=o;break;case"page-height":n=l;break;case"page-fit":n=Math.min(o,l);break;case"auto":const u=qe(i)?o:Math.min(l,o);n=Math.min(1.25,u);break;default:return void console.error(`#setScale: "${e}" is an unknown zoom value.`)}t.preset=!0,this.#N(n,e,t)}}#M(){const e=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&this.#x(this._currentScaleValue,{noScroll:!0}),this.#C(e)}pageLabelToPageNumber(e){if(!this._pageLabels)return null;const t=this._pageLabels.indexOf(e);return t<0?null:t+1}scrollPageIntoView({pageNumber:e,destArray:t=null,allowNegativeOffset:n=!1,ignoreDestinationZoom:i=!1}){if(!this.pdfDocument)return;const r=Number.isInteger(e)&&this._pages[e-1];if(!r)return void console.error(`scrollPageIntoView: "${e}" is not a valid pageNumber parameter.`);if(this.isInPresentationMode||!t)return void this._setCurrentPageNumber(e,!0);let d,f,a=0,o=0,l=0,u=0;const g=r.rotation%180!=0,m=(g?r.height:r.width)/r.scale/$.PDF_TO_CSS_UNITS,x=(g?r.width:r.height)/r.scale/$.PDF_TO_CSS_UNITS;let v=0;switch(t[1].name){case"XYZ":a=t[2],o=t[3],v=t[4],a=null!==a?a:0,o=null!==o?o:x;break;case"Fit":case"FitB":v="page-fit";break;case"FitH":case"FitBH":o=t[2],v="page-width",null===o&&this._location?(a=this._location.left,o=this._location.top):("number"!=typeof o||o<0)&&(o=x);break;case"FitV":case"FitBV":a=t[2],l=m,u=x,v="page-height";break;case"FitR":a=t[2],o=t[3],l=t[4]-a,u=t[5]-o;let b=40,S=5;this.removePageBorders&&(b=S=0),d=(this.container.clientWidth-b)/l/$.PDF_TO_CSS_UNITS,f=(this.container.clientHeight-S)/u/$.PDF_TO_CSS_UNITS,v=Math.min(Math.abs(d),Math.abs(f));break;default:return void console.error(`scrollPageIntoView: "${t[1].name}" is not a valid destination type.`)}if(i||(v&&v!==this._currentScale?this.currentScaleValue=v:0===this._currentScale&&(this.currentScaleValue="auto")),"page-fit"===v&&!t[4])return void this.#C(r);const C=[r.viewport.convertToViewportPoint(a,o),r.viewport.convertToViewportPoint(a+l,o+u)];let _=Math.min(C[0][0],C[1][0]),A=Math.min(C[0][1],C[1][1]);n||(_=Math.max(_,0),A=Math.max(A,0)),this.#C(r,{left:_,top:A})}_updateLocation(e){const t=this._currentScale,n=this._currentScaleValue,i=parseFloat(n)===t?Math.round(1e4*t)/100:n,r=e.id,o=this.container,l=this._pages[r-1].getPagePoint(o.scrollLeft-e.x,o.scrollTop-e.y),u=Math.round(l[0]),d=Math.round(l[1]);let f=`#page=${r}`;this.isInPresentationMode||(f+=`&zoom=${i},${u},${d}`),this._location={pageNumber:r,scale:i,top:d,left:u,rotation:this._pagesRotation,pdfOpenParams:f}}update(){const e=this._getVisiblePages(),t=e.views,n=t.length;if(0===n)return;const i=Math.max(10,2*n+1);this.#e.resize(i,e.ids),this.renderingQueue.renderHighestPriority(e);const r=this._spreadMode===O.NONE&&(this._scrollMode===I.PAGE||this._scrollMode===I.VERTICAL),a=this._currentPageNumber;let o=!1;for(const l of t){if(l.percent<100)break;if(l.id===a&&r){o=!0;break}}this._setCurrentPageNumber(o?a:t[0].id),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}#j(){const e=this._getVisiblePages(),t=[],{ids:n,views:i}=e;for(const r of i){const{view:a}=r;a.hasEditableAnnotations()?t.push(r):n.delete(a.id)}return 0===t.length?null:(this.renderingQueue.renderHighestPriority({first:t[0],last:t.at(-1),views:t,i
1ds:n}),n)}containsElement(e){return this.container.contains(e)}focus(){this.container.focus()}get _isContainerRtl(){return"rtl"===getComputedStyle(this.container).direction}get isInPresentationMode(){return 3===this.presentationModeState}get isChangingPresentationMode(){return 2===this.presentationModeState}get isHorizontalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){const e=this._scrollMode===I.PAGE?this.#P.pages:this._pages,t=this._scrollMode===I.HORIZONTAL;return function Wt({scrollEl:s,views:e,sortByVisibility:t=!1,horizontal:n=!1,rtl:i=!1}){const r=s.scrollTop,a=r+s.clientHeight,o=s.scrollLeft,l=o+s.clientWidth,f=[],g=new Set,m=e.length;let x=ne(e,n?function d(A){const b=A.div,S=b.offsetLeft+b.clientLeft;return i?S<l:S+b.clientWidth>o}:function u(A){const b=A.div;return b.offsetTop+b.clientTop+b.clientHeight>r});x>0&&x<m&&!n&&(x=function $t(s,e,t){if(s<2)return s;let n=e[s].div,i=n.offsetTop+n.clientTop;i>=t&&(n=e[s-1].div,i=n.offsetTop+n.clientTop);for(let r=s-2;r>=0&&(n=e[r].div,!(n.offsetTop+n.clientTop+n.clientHeight<=i));--r)s=r;return s}(x,e,r));let v=n?l:-1;for(let A=x;A<m;A++){const b=e[A],S=b.div,y=S.offsetLeft+S.clientLeft,L=S.offsetTop+S.clientTop,D=S.clientWidth,T=S.clientHeight,h=y+D,p=L+T;if(-1===v)p>=a&&(v=p);else if((n?y:L)>v)break;if(p<=r||L>=a||h<=o||y>=l)continue;const P=Math.max(0,r-L)+Math.max(0,p-a),F=(D-(Math.max(0,o-y)+Math.max(0,h-l)))/D;f.push({id:b.id,x:y,y:L,view:b,percent:(T-P)/T*F*100|0,widthPercent:100*F|0}),g.add(b.id)}const C=f[0],_=f.at(-1);return t&&f.sort(function(A,b){const S=A.percent-b.percent;return Math.abs(S)>.001?-S:A.id-b.id}),{first:C,last:_,views:f,ids:g}}({scrollEl:this.container,views:e,sortByVisibility:!0,horizontal:t,rtl:t&&this._isContainerRtl})}cleanup(){for(const e of this._pages)e.renderingState!==M.FINISHED&&e.reset()}_cancelRendering(){for(const e of this._pages)e.cancelRendering()}#V(e){var t=this;return(0,E.A)(function*(){if(e.pdfPage)return e.pdfPage;try{const n=yield t.pdfDocument.getPage(e.id);return e.pdfPage||e.setPdfPage(n),n}catch(n){return console.error("Unable to get page for page view",n),null}})()}#B(e){if(1===e.first?.id)return!0;if(e.last?.id===this.pagesCount)return!1;switch(this._scrollMode){case I.PAGE:return this.#P.scrollDown;case I.HORIZONTAL:return this.scroll.right}return this.scroll.down}forceRendering(e){const t=e||this._getVisiblePages(),n=this.#B(t),r=this.renderingQueue.getHighestPriority(t,this._pages,n,this._spreadMode!==O.NONE&&this._scrollMode!==I.HORIZONTAL);return!!r&&(this.#V(r).then(()=>{this.renderingQueue.renderView(r)}),!0)}get hasEqualPageSizes(){const e=this._pages[0];for(let t=1,n=this._pages.length;t<n;++t){const i=this._pages[t];if(i.width!==e.width||i.height!==e.height)return!1}return!0}getPagesOverview(){let e;return this._pages.map(t=>{const n=t.pdfPage.getViewport({scale:1}),i=qe(n);if(void 0===e)e=i;else if(this.enablePrintAutoRotate&&i!==e)return{width:n.height,height:n.width,rotation:(n.rotation-90)%360};return{width:n.width,height:n.height,rotation:n.rotation}})}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:(console.error("optionalContentConfigPromise: Not initialized yet."),this.pdfDocument.getOptionalContentConfig({intent:"display"})):Promise.resolve(null)}set optionalContentConfigPromise(e){if(!(e instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${e}`);this.pdfDocument&&this._optionalContentConfigPromise&&(this._optionalContentConfigPromise=e,this.refresh(!1,{optionalContentConfigPromise:e}),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:e}))}get scrollMode(){return this._scrollMode}set scrollMode(e){if(this._scrollMode!==e){if(!function Gt(s){return Number.isInteger(s)&&Object.values(I).includes(s)&&s!==I.UNKNOWN}(e))throw new Error(`Invalid scroll mode: ${e}`);this.pagesCount>1e4||(this._previousScrollMode=this._scrollMode,this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(e=null){const t=this._scrollMode,n=this.viewer;n.classList.toggle("scrollHorizontal",t===I.HORIZONTAL),n.classList.toggle("scrollWrapped",t===I.WRAPPED),this.pdfDocument&&e&&(t===I.PAGE?this.#T():this._previousScrollMode===I.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this.#x(this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(e,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(e){if(this._spreadMode!==e){if(!function Kt(s){return Number.isInteger(s)&&Object.values(O).includes(s)&&s!==O.UNKNOWN}(e))throw new Error(`Invalid spread mode: ${e}`);this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(e=null){if(!this.pdfDocument)return;const t=this.viewer,n=this._pages;if(this._scrollMode===I.PAGE)this.#T();else if(t.textContent="",this._spreadMode===O.NONE)for(const i of this._pages)t.append(i.div);else{const i=this._spreadMode-1;let r=null;for(let a=0,o=n.length;a<o;++a)null===r?(r=document.createElement("div"),r.className="spread",t.append(r)):a%2===i&&(r=r.cloneNode(!1),t.append(r)),r.append(n[a].div)}e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this.#x(this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(e,!0),this.update())}_getPageAdvance(e,t=!1){switch(this._scrollMode){case I.WRAPPED:{const{views:n}=this._getVisiblePages(),i=new Map;for(const{id:r,y:a,percent:o,widthPercent:l}of n){if(0===o||l<100)continue;let u=i.get(a);u||i.set(a,u||=[]),u.push(r)}for(const r of i.values()){const a=r.indexOf(e);if(-1===a)continue;const o=r.length;if(1===o)break;if(t)for(let l=a-1,u=0;l>=u;l--){const f=r[l+1]-1;if(r[l]<f)return e-f}else for(let l=a+1,u=o;l<u;l++){const f=r[l-1]+1;if(r[l]>f)return f-e}if(t){const l=r[0];if(l<e)return e-l+1}else{const l=r[o-1];if(l>e)return l-e+1}break}break}case I.HORIZONTAL:break;case I.PAGE:case I.VERTICAL:{if(this._spreadMode===O.NONE)break;const n=this._spreadMode-1;if(t&&e%2!==n)break;if(!t&&e%2===n)break;const{views:i}=this._getVisiblePages(),r=t?e-1:e+1;for(const{id:a,percent:o,widthPercent:l}of i)if(a===r){if(o>0&&100===l)return 2;break}break}}return 1}nextPage(){const e=this._currentPageNumber,t=this.pagesCount;if(e>=t)return!1;const n=this._getPageAdvance(e,!1)||1;return this.currentPageNumber=Math.min(e+n,t),!0}previousPage(){const e=this._currentPageNumber;if(e<=1)return!1;const t=this._getPageAdvance(e,!0)||1;return this.currentPageNumber=Math.max(e-t,1),!0}updateScale({drawingDelay:e,scaleFactor:t=null,steps:n=null,origin:i}){if(null===n&&null===t)throw new Error("Invalid updateScale options: either `steps` or `scaleFactor` must be provided.");if(!this.pdfDocument)return;let r=this._currentScale;if(t>0&&1!==t)r=Math.round(r*t*100)/100;else if(n){const a=n>0?1.1:1/1.1,o=n>0?Math.ceil:Math.floor;n=Math.abs(n);do{r=o(10*(r*a).toFixed(2))/10}while(--n>0)}r=Math.max(.1,Math.min(10,r)),this.#x(r,{noScroll:!1,drawingDelay:e,origin:i})}increaseScale(e={}){this.updateScale({...e,steps:e.steps??1})}decreaseScale(e={}){this.updateScale({...e,steps:-(e.steps??1)})}
1#k(e=this.container.clientHeight){e!==this.#y&&(this.#y=e,Xt.setProperty("--viewer-container-height",`${e}px`))}#H(e){for(const t of e)if(t.target===this.container){this.#k(Math.floor(t.borderBoxSize[0].blockSize)),this.#a=null;break}}get containerTopLeft(){return this.#a||=[this.container.offsetTop,this.container.offsetLeft]}#R(){this.#h?.abort(),this.#h=null,null!==this.#m&&(clearTimeout(this.#m),this.#m=null)}get annotationEditorMode(){return this.#i?this.#n:j.DISABLE}set annotationEditorMode({mode:e,editId:t=null,isFromKeyboard:n=!1}){if(!this.#i)throw new Error("The AnnotationEditor is not enabled.");if(this.#n===e)return;if(!Dt(e))throw new Error(`Invalid AnnotationEditor mode: ${e}`);if(!this.pdfDocument)return;e===j.STAMP&&this.#g?.loadModel("altText");const{eventBus:i}=this,r=()=>{this.#R(),this.#n=e,this.#i.updateMode(e,t,n),i.dispatch("annotationeditormodechanged",{source:this,mode:e})};if(e===j.NONE||this.#n===j.NONE){const a=e!==j.NONE;a||this.pdfDocument.annotationStorage.resetModifiedIds();for(const l of this._pages)l.toggleEditingMode(a);const o=this.#j();if(a&&o){this.#R(),this.#h=new AbortController;const l=AbortSignal.any([this.#c.signal,this.#h.signal]);return void i._on("pagerendered",({pageNumber:u})=>{o.delete(u),0===o.size&&(this.#m=setTimeout(r,0))},{signal:l})}}r()}refresh(e=!1,t=Object.create(null)){if(this.pdfDocument){for(const n of this._pages)n.update(t);null!==this.#w&&(clearTimeout(this.#w),this.#w=null),e||this.update()}}}class zi extends Ot{_resetView(){super._resetView(),this._scrollMode=I.PAGE,this._spreadMode=O.NONE}set scrollMode(e){}_updateScrollMode(){}set spreadMode(e){}_updateSpreadMode(){}}var Gi=R.AnnotationLayerBuilder,Ki=R.DownloadManager,Xi=R.EventBus,Zi=R.FindState,Qi=R.GenericL10n,Yi=R.LinkTarget,Ji=R.PDFFindController,qi=R.PDFHistory,er=R.PDFLinkService,tr=R.PDFPageView,nr=R.PDFScriptingManager,ir=R.PDFSinglePageViewer,rr=R.PDFViewer,sr=R.ProgressBar,ar=R.RenderingStates,or=R.ScrollMode,lr=R.SimpleLinkService,ur=R.SpreadMode,dr=R.StructTreeLayerBuilder,cr=R.TextLayerBuilder,hr=R.XfaLayerBuilder,fr=R.parseQueryString}}]);

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.