1var Mt=Object.defineProperty;var Fe=r=>{throw TypeError(r)};var kt=(r,e,t)=>e in r?Mt(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var Oe=(r,e,t)=>kt(r,typeof e!="symbol"?e+"":e,t),Dt=(r,e,t)=>e.has(r)||Fe("Cannot "+t);var Q=(r,e,t)=>(Dt(r,e,"read from private field"),t?t.call(r):e.get(r)),je=(r,e,t)=>e.has(r)?Fe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t);var te={};te.d=(r,e)=>{for(var t in e)te.o(e,t)&&!te.o(r,t)&&Object.defineProperty(r,t,{enumerable:!0,get:e[t]})};te.o=(r,e)=>Object.prototype.hasOwnProperty.call(r,e);var C=globalThis.pdfjsViewer={};te.d(C,{AnnotationLayerBuilder:()=>yt,DownloadManager:()=>Ci,EventBus:()=>vt,FindState:()=>G,GenericL10n:()=>W,LinkTarget:()=>X,PDFFindController:()=>mi,PDFHistory:()=>In,PDFLinkService:()=>be,PDFPageView:()=>It,PDFScriptingManager:()=>Bn,PDFSinglePageViewer:()=>Wn,PDFViewer:()=>Tt,ProgressBar:()=>Kt,RenderingStates:()=>N,ScrollMode:()=>L,SimpleLinkService:()=>De,SpreadMode:()=>k,StructTreeLayerBuilder:()=>At,TextLayerBuilder:()=>Y,XfaLayerBuilder:()=>Lt,parseQueryString:()=>me});
1const Ft="auto",Et=1,Ve=1.1,Ot=.1,jt=10,_e=0,Vt=1.25,Be=40,He=5,N={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},J={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3},B={DISABLE:0,ENABLE:1,ENABLE_PERMISSIONS:2},L={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3},k={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};function wt(r,e,t=!1){let i=r.offsetParent;if(!i){console.error("offsetParent is not set -- cannot scroll");return}let n=r.offsetTop+r.clientTop,s=r.offsetLeft+r.clientLeft;for(;i.clientHeight===i.scrollHeight&&i.clientWidth===i.scrollWidth||t&&(i.classList.contains("markedContent")||getComputedStyle(i).overflow==="hidden");)if(n+=i.offsetTop,s+=i.offsetLeft,i=i.offsetParent,!i)return;e&&(e.top!==void 0&&(n+=e.top),e.left!==void 0&&(s+=e.left,i.scrollLeft=s)),i.scrollTop=n}function Bt(r,e,t=void 0){const i=function(a){s||(s=window.requestAnimationFrame(function(){s=null;const l=r.scrollLeft,h=n.lastX;l!==h&&(n.right=l>h),n.lastX=l;const u=r.scrollTop,f=n.lastY;u!==f&&(n.down=u>f),n.lastY=u,e(n)}))},n={right:!0,down:!0,lastX:r.scrollLeft,lastY:r.scrollTop,_eventHandler:i};let s=null;return r.addEventListener("scroll",i,{useCapture:!0,signal:t}),t?.addEventListener("abort",()=>window.cancelAnimationFrame(s),{once:!0}),n}function me(r){const e=new Map;for(const[t,i]of new URLSearchParams(r))e.set(t.toLowerCase(),i);return e}const Ue=/[\x00-\x1F]/g;function ie(r,e=!1){return Ue.test(r)?e?r.replaceAll(Ue,t=>t==="\0"?"":" "):r.replaceAll("\0",""):r}function re(r,e,t=0){let i=t,n=r.length-1;if(n<0||!e(r[n]))return r.length;if(e(r[i]))return i;for(;i<n;){const s=i+n>>1,a=r[s];e(a)?n=s:i=s+1}return i}function $e(r){if(Math.floor(r)===r)return[r,1];const e=1/r,t=8;if(e>t)return[1,t];if(Math.floor(e)===e)return[1,e];const i=r>1?e:r;let n=0,s=1,a=1,o=1;for(;;){const h=n+a,u=s+o;if(u>t)break;i<=h/u?(a=h,o=u):(n=h,s=u)}let l;return i-n/s<a/o-i?l=i===r?[n,s]:[s,n]:l=i===r?[a,o]:[o,a],l}function oe(r,e){return r-r%e}function Ht(r,e,t){if(r<2)return r;let i=e[r].div,n=i.offsetTop+i.clientTop;n>=t&&(i=e[r-1].div,n=i.offsetTop+i.clientTop);for(let s=r-2;s>=0&&(i=e[s].div,!(i.offsetTop+i.clientTop+i.clientHeight<=n));--s)r=s;return r}function Ut({scrollEl:r,views:e,sortByVisibility:t=!1,horizontal:i=!1,rtl:n=!1}){const s=r.scrollTop,a=s+r.clientHeight,o=r.scrollLeft,l=o+r.clientWidth;function h(x){const E=x.div;return E.offsetTop+E.clientTop+E.clientHeight>s}function u(x){const E=x.div,b=E.offsetLeft+E.clientLeft,S=b+E.clientWidth;return n?b<l:S>o}const f=[],p=new Set,w=e.length;let v=re(e,i?u:h);v>0&&v<w&&!i&&(v=Ht(v,e,s));let _=i?l:-1;for(let x=v;x<w;x++){const E=e[x],b=E.div,S=b.offsetLeft+b.clientLeft,T=b.offsetTop+b.clientTop,R=b.clientWidth,I=b.clientHeight,c=S+R,g=T+I;if(_===-1)g>=a&&(_=g);else if((i?S:T)>_)break;if(g<=s||T>=a||c<=o||S>=l)continue;const m=Math.max(0,s-T)+Math.max(0,g-a),A=Math.max(0,o-S)+Math.max(0,c-l),F=(I-m)/I,D=(R-A)/R,we=F*D*100|0;f.push({id:E.id,x:S,y:T,view:E,percent:we,widthPercent:D*100|0}),p.add(E.id)}const y=f[0],P=f.at(-1);return t&&f.sort(function(x,E){const b=x.percent-E.percent;return Math.abs(b)>.001?-b:x.id-E.id}),{first:y,last:P,views:f,ids:p}}function _t(r){return Number.isInteger(r)&&r%90===0}function $t(r){return Number.isInteger(r)&&Object.values(L).includes(r)&&r!==L.UNKNOWN}function Wt(r){return Number.isInteger(r)&&Object.values(k).includes(r)&&r!==k.UNKNOWN}function We(r){return r.width<=r.height}new Promise(function(r){window.requestAnimationFrame(r)});const zt=document.documentElement.style;function Gt(r,e,t){return Math.min(Math.max(r,e),t)}class Kt{#e=null;#t=null;#s=0;#i=null;#n=!0;constructor(e){this.#e=e.classList,this.#i=e.style}get percent(){return this.#s}set percent(e){if(this.#s=Gt(e,0,100),isNaN(e)){this.#e.add("indeterminate");return}this.#e.remove("indeterminate"),this.#i.setProperty("--progressBar-percent",`${this.#s}%`)}setWidth(e){if(!e)return;const i=e.parentNode.offsetWidth-e.offsetWidth;i>0&&this.#i.setProperty("--progressBar-end-offset",`${i}px`)}setDisableAutoFetch(e=5e3){this.#s===100||isNaN(this.#s)||(this.#t&&clearTimeout(this.#t),this.show(),this.#t=setTimeout(()=>{this.#t=null,this.hide()},e))}hide(){this.#n&&(this.#n=!1,this.#e.add("hidden"))}show(){this.#n||(this.#n=!0,this.#e.remove("hidden"))}}function Xt(r){let e=L.VERTICAL,t=k.NONE;switch(r){case"SinglePage":e=L.PAGE;break;case"OneColumn":break;case"TwoPageLeft":e=L.PAGE;case"TwoColumnLeft":t=k.ODD;break;case"TwoPageRight":e=L.PAGE;case"TwoColumnRight":t=k.EVEN;break}return{scrollMode:e,spreadMode:t}}const le=(function(){const r=document.createElement("div");return r.style.width="round(down, calc(1.6666666666666665 * 792px), 1px)",r.style.width==="calc(1320px)"?Math.fround:e=>e})(),j={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};function Zt(r){return r<11904}function Qt(r){return(r&65408)===0}function Jt(r){return r>=97&&r<=122||r>=65&&r<=90}function Yt(r){return r>=48&&r<=57}function qt(r){return r===32||r===9||r===13||r===10}function ei(r){return r>=13312&&r<=40959||r>=63744&&r<=64255}function ti(r){return r>=12448&&r<=12543}function ii(r){return r>=12352&&r<=12447}function ni(r){return r>=65376&&r<=65439}function si(r){return(r&65408)===3584}function he(r){return Zt(r)?Qt(r)?qt(r)?j.SPACE:Jt(r)||Yt(r)||r===95?j.ALPHA_LETTER:j.PUNCT:si(r)?j.THAI_LETTER:r===160?j.SPACE:j.ALPHA_LETTER:ei(r)?j.HAN_LETTER:ti(r)?j.KATAKA
1NA_LETTER:ii(r)?j.HIRAGANA_LETTER:ni(r)?j.HALFWIDTH_KATAKANA_LETTER:j.ALPHA_LETTER}let ze;function ri(){return ze||=" ¨ª¯²-µ¸-º¼-¾IJ-ijĿ-ÅÅÅ¿Ç-ÇDZ-dzʰ-ʸË-ËË -ˤʹͺ;Î-Î ÎÏ-Ïϰ-ϲϴ-ϵϹÖÙµ-Ù¸à¥-à¥à§-à§à§à¨³à¨¶à©-à©à©à-àำຳà»-à»à¼à½à½à½à½à½à½©á¼á´¬-ᴮᴰ-ᴺᴼ-áµáµ-ᵪᵸá¶-á¶¿áº-áºá½±á½³á½µá½·á½¹á½»á½½á¾»á¾½-á¿á¿á¿á¿-á¿á¿á¿á¿-á¿á¿£á¿«á¿-`ΌΏ´-῾â-ââââ¤-â¦â¯â³-â´â¶-â·â¼â¾â-ââââ°-â±â´-ââ-ââ¨â-ââ -ââ-ââ-ââ-ââ -â¢â¤â¦â¨âª-ââ¯-â±â³-â¹â»-â â -â â -â ¿ââ¬-ââ¯-â°â©-âªâ -âªâ¨â©´-â©¶â«â±¼-ⱽⵯâºâ»³â¼-â¿ãã¶ã¸-ãºã-ããã¿ã±-ãã-ãã-ãã -ãã-ã¾ã-ã¿ê-êê°ê²-ê´ê¸-ê¹ê-êê©ï¤-ï¨ï¨ï¨ï¨-ï¨ï¨ 諸逸-都飯-ï©ï©°-ï«ï¬-ï¬ï¬-ï¬ï¬ï¬-זּטּ-לּמּï-ïï-ïï-ï®±ï¯-ï´½ïµ-ï¶ï¶-ï·ï·°-ï·¼ï¸-ï¸ï¸°-ï¹ï¹-ï¹ï¹-﹦﹨-﹫ﹰ-ﹲﹴﹶ-ﻼï¼-ï¾¾ï¿-ï¿ï¿-ï¿ï¿-ï¿ï¿-ï¿ï¿ -₩",ze}const G={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3},ai=250,oi=-50,li=-400,Ge={"â":"-","â":"'","â":"'","â":"'","â":"'","â":'"',"â":'"',"â":'"',"â":'"',"¼":"1/4","½":"1/2","¾":"3/4"},Ke=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 Xe;const hi=new RegExp("\\p{M}+","gu"),di=new RegExp("([.*+?^${}()|[\\]\\\\])|(\\p{P})|(\\s+)|(\\p{M})|(\\p{L})","gu"),ui=new RegExp("([^\\p{M}])\\p{M}*$","u"),ci=new RegExp("^\\p{M}*([^\\p{M}])","u"),fi=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,Ze=new Map,pi="[\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f]",Qe=new Map;let ye=null,ve=null;function Pe(r){const e=[];let t;for(;(t=fi.exec(r))!==null;){let{index:_}=t;for(const y of t[0]){let P=Ze.get(y);P||(P=y.normalize("NFD").length,Ze.set(y,P)),e.push([P,_++])}}let i;if(e.length===0&&ye)i=ye;else if(e.length>0&&ve)i=ve;else{const _=Object.keys(Ge).join(""),y=ri(),b=`([${_}])|([${y}])|((?:ã|ã)\\n)|(\\p{M}+(?:-\\n)?)|(\\p{Ll}-\\n\\p{Lu})|(\\S-\\n)|((?:\\p{Ideographic}|[ã-ã¿])\\n)|(\\n)`;e.length===0?i=ye=new RegExp(b+"|(\\u0000)","gum"):i=ve=new RegExp(b+`|(${pi})`,"gum")}const n=[];for(;(t=hi.exec(r))!==null;)n.push([t[0].length,t.index]);let s=r.normalize("NFD");const a=[0,0];let o=0,l=0,h=0,u=0,f=0,p=!1;s=s.replace(i,(_,y,P,x,E,b,S,T,R,I,c)=>{if(c-=u,y){const g=Ge[y],m=g.length;for(let A=1;A<m;A++)a.push(c-h+A,h-A);return h-=m-1,g}if(P){let g=Qe.get(P);g||(g=P.normalize("NFKC"),Qe.set(P,g));const m=g.length;for(let A=1;A<m;A++)a.push(c-h+A,h-A);return h-=m-1,g}if(x)return p=!0,c+f===n[o]?.[1]?++o:(a.push(c-1-h+1,h-1),h-=1,u+=1),a.push(c-h+1,h),u+=1,f+=1,x.charAt(0);if(E){const g=E.endsWith(` 2`),m=g?E.length-2:E.length;p=!0;let A=m;c+f===n[o]?.[1]&&(A-=n[o][0],++o);for(let F=1;F<=A;F++)a.push(c-1-h+F,h-F);return h-=A,u+=A,g?(c+=m-1,a.push(c-h+1,1+h),h+=1,u+=1,f+=1,E.slice(0,m)):E}if(b)return u+=1,f+=1,b.replace(` 3`,"");if(S){const g=S.length-2;return a.push(c-h+g,1+h),h+=1,u+=1,f+=1,S.slice(0,-2)}if(T){const g=T.length-1;return a.push(c-h+g,h),u+=1,f+=1,T.slice(0,-1)}if(R)return a.push(c-h+1,h-1),h-=1,u+=1,f+=1," ";if(c+f===e[l]?.[1]){const g=e[l][0]-1;++l;for(let m=1;m<=g;m++)a.push(c-(h-m),h-m);h-=g,u+=g}return I}),a.push(s.length,h);const w=new Uint32Array(a.length>>1),v=new Int32Array(a.length>>1);for(let _=0,y=a.length;_<y;_+=2)w[_>>1]=a[_],v[_>>1]=a[_+1];return[s,[w,v],p]}function gi(r,e,t){if(!r)return[e,t];const[i,n]=r,s=e,a=e+t-1;let o=re(i,p=>p>=s);i[o]>s&&--o;let l=re(i,p=>p>=a,o);i[l]>a&&--l;const h=s+n[o],f=a+n[l]+1-h;return[h,f]}class mi{#e=null;#t=!0;#s=0;constructor({linkService:e,eventBus:t,updateMatchesCountOnProgress:i=!0}){this._linkService=e,this._eventBus=t,this.#t=i,this.onIsPageVisible=null,this.#n(),t._on("find",this.#i.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.#n(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}#i(e){if(!e)return;const t=this._pdfDocument,{type:i}=e;(this.#e===null||this.#a(e))&&(this._dirtyMatch=!0),this.#e=e,i!=="highlightallchange"&&this.#w(G.PENDING),this._firstPageCapability.promise.then(()=>
3{if(!this._pdfDocument||t&&this._pdfDocument!==t)return;this.#d();const n=!this._highlightMatches,s=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),i?this._dirtyMatch?this.#u():i==="again"?(this.#u(),n&&this.#e.highlightAll&&this.#p()):i==="highlightallchange"?(s?this.#u():this._highlightMatches=!0,this.#p()):this.#u():this._findTimeout=setTimeout(()=>{this.#u(),this._findTimeout=null},ai)})}scrollMatchIntoView({element:e=null,selectedLeft:t=0,pageIndex:i=-1,matchIndex:n=-1}){if(!this._scrollMatches||!e)return;if(n===-1||n!==this._selected.matchIdx)return;if(i===-1||i!==this._selected.pageIdx)return;this._scrollMatches=!1;const s={top:oi,left:t+li};wt(e,s,!0)}#n(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this.#s=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#r(){const{query:e}=this.#e;return typeof e=="string"?(e!==this._rawQuery&&(this._rawQuery=e,[this._normalizedQuery]=Pe(e)),this._normalizedQuery):(e||[]).filter(t=>!!t).map(t=>Pe(t)[0])}#a(e){const t=e.query,i=this.#e.query,n=typeof t;if(n!==typeof i)return!0;if(n==="string"){if(t!==i)return!0}else if(JSON.stringify(t)!==JSON.stringify(i))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)??!0);case"highlightallchange":return!1}return!0}#l(e,t,i){let n=e.slice(0,t).match(ui);if(n){const s=e.charCodeAt(t),a=n[1].charCodeAt(0);if(he(s)===he(a))return!1}if(n=e.slice(t+i).match(ci),n){const s=e.charCodeAt(t+i-1),a=n[1].charCodeAt(0);if(he(s)===he(a))return!1}return!0}#h(e,t){const{matchDiacritics:i}=this.#e;let n=!1;e=e.replaceAll(di,(a,o,l,h,u,f)=>o?`[ ]*\\${o}[ ]*`:l?`[ ]*${l}[ ]*`:h?"[ ]+":i?u||f:u?Ke.has(u.charCodeAt(0))?u:"":t?(n=!0,`${f}\\p{M}*`):f);const s="[ ]*";return e.endsWith(s)&&(e=e.slice(0,e.length-s.length)),i&&t&&(Xe||=String.fromCharCode(...Ke),n=!0,e=`${e}(?=[${Xe}]|[^\\p{M}]|$)`),[n,e]}#o(e){const t=this.#r;if(t.length===0)return;const i=this._pageContents[e],n=this.match(t,i,e),s=this._pageMatches[e]=[],a=this._pageMatchesLength[e]=[],o=this._pageDiffs[e];n?.forEach(({index:h,length:u})=>{const[f,p]=gi(o,h,u);p&&(s.push(f),a.push(p))}),this.#e.highlightAll&&this.#f(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this.#c());const l=s.length;this._matchesCountTotal+=l,this.#t?l>0&&this.#y():++this.#s===this._linkService.pagesCount&&this.#y()}match(e,t,i){const n=this._hasDiacritics[i];let s=!1;if(typeof e=="string"?[s,e]=this.#h(e,n):e=e.sort().reverse().map(f=>{const[p,w]=this.#h(f,n);return s||=p,`(${w})`}).join("|"),!e)return;const{caseSensitive:a,entireWord:o}=this.#e,l=`g${s?"u":""}${a?"":"i"}`;e=new RegExp(e,l);const h=[];let u;for(;(u=e.exec(t))!==null;)o&&!this.#l(t,u.index,u[0].length)||h.push({index:u.index,length:u[0].length});return h}#d(){if(this._extractTextPromises.length>0)return;let e=Promise.resolve();const t={disableNormalization:!0};for(let i=0,n=this._linkService.pagesCount;i<n;i++){const{promise:s,resolve:a}=Promise.withResolvers();this._extractTextPromises[i]=s,e=e.then(()=>this._pdfDocument.getPage(i+1).then(o=>o.getTextContent(t)).then(o=>{const l=[];for(const h of o.items)l.push(h.str),h.hasEOL&&l.push(` 4`);[this._pageContents[i],this._pageDiffs[i],this._hasDiacritics[i]]=Pe(l.join("")),a()},o=>{console.error(`Unable to get text content for page ${i+1}`,o),this._pageContents[i]="",this._pageDiffs[i]=null,this._hasDiacritics[i]=!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})}#u(){const e=this.#e.findPrevious,t=this._linkService.page-1,i=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
vendor: 5,546 bytes, line 4
4dx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this.#s=0,this._matchesCountTotal=0,this.#p();for(let a=0;a<i;a++)this._pendingFindMatches.has(a)||(this._pendingFindMatches.add(a),this._extractTextPromises[a].then(()=>{this._pendingFindMatches.delete(a),this.#o(a)}))}if(this.#r.length===0){this.#w(G.FOUND);return}if(this._resumePageIdx)return;const s=this._offset;if(this._pagesToSearch=i,s.matchIdx!==null){const a=this._pageMatches[s.pageIdx].length;if(!e&&s.matchIdx+1<a||e&&s.matchIdx>0){s.matchIdx=e?s.matchIdx-1:s.matchIdx+1,this.#E(!0);return}this.#m(e)}this.#c()}#g(e){const t=this._offset,i=e.length,n=this.#e.findPrevious;return i?(t.matchIdx=n?i-1:0,this.#E(!0),!0):(this.#m(n),t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0)?(this.#E(!1),!0):!1)}#c(){this._resumePageIdx!==null&&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,i=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=i||t.pageIdx<0)&&(t.pageIdx=e?i-1:0,t.wrapped=!0)}#E(e=!1){let t=G.NOT_FOUND;const i=this._offset.wrapped;if(this._offset.wrapped=!1,e){const n=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=i?G.WRAPPED:G.FOUND,n!==-1&&n!==this._selected.pageIdx&&this.#f(n)}this.#w(t,this.#e.findPrevious),this._selected.pageIdx!==-1&&(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.#w(G.FOUND),this._highlightMatches=!1,this.#p())})}#_(){const{pageIdx:e,matchIdx:t}=this._selected;let i=0,n=this._matchesCountTotal;if(t!==-1){for(let s=0;s<e;s++)i+=this._pageMatches[s]?.length||0;i+=t+1}return(i<1||i>n)&&(i=n=0),{current:i,total:n}}#y(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this.#_()})}#w(e,t=!1){!this.#t&&(this.#s!==this._linkService.pagesCount||e===G.PENDING)||this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,entireWord:this.#e?.entireWord??null,matchesCount:this.#_(),rawQuery:this.#e?.query??null})}}const bi="noopener noreferrer nofollow",X={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};class be{externalLinkEnabled=!0;constructor({eventBus:e,externalLinkTarget:t=null,externalLinkRel:i=null,ignoreDestinationZoom:n=!1}={}){this.eventBus=e,this.externalLinkTarget=t,this.externalLinkRel=i,this._ignoreDestinationZoom=n,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:!1}async goToDestination(e){if(!this.pdfDocument)return;let t,i,n;if(typeof e=="string"?(t=e,i=await this.pdfDocument.getDestination(e)):(t=null,i=await e),!Array.isArray(i)){console.error(`goToDestination: "${i}" is not a valid destination array, for dest="${e}".`);return}const[s]=i;if(s&&typeof s=="object"){if(n=this.pdfDocument.cachedPageNumber(s),!n)try{n=await this.pdfDocument.getPageIndex(s)+1}catch{console.error(`goToDestination: "${s}" is not a valid page reference, for dest="${e}".`);return}}else Number.isInteger(s)&&(n=s+1);if(!n||n<1||n>this.pagesCount){console.error(`goToDestination: "${n}" is not a valid page number, for dest="${e}".`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:t,explicitDest:i,pageNumber:n})),this.pdfViewer.scrollPageIntoView({pageNumber:n,destArray:i,ignoreDestinationZoom:this._ignoreDestinationZoom})}goToPage(e){if(!this.pdfDocument)return;const t=typeof e=="string"&&this.pdfViewer.pageLabelToPageNumber(e)||e|0;if(!(Number.isInteger(t)&&t>0&&t<=this.pagesCount)){console.error(`PDFLinkService.goToPage: "${e}" is not a valid page.`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(t)),this.pdfViewer.scrollPageIntoView({pageNumber:t})}addLinkAttributes(e,t,i=!1){if(!t||typeof t!="string")throw new Error('A valid "url" parameter must provided.');const n=i?X.BLANK:this.externalLinkTarget,s=this.externalLinkRel;this.externalLinkEnabled?e.href=e.title=t:(e.href="",e.title=`Disabled: ${t}`,e.onclick=()=>!1);let a="";switch(n){case X.NONE:break;case X.SELF:a="_self";break;case X.BLANK:a="_blank";break;case X.PARENT:a="_parent";break;case X.TOP:a="_top";break}e.target=a,e.rel=typeof s=="string"?s:bi}getDestinationHash(e){if(typeof e=="string"){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,i;if(e.includes("=")){const n=me(e);
4if(n.has("search")){const s=n.get("search").replaceAll('"',""),a=n.get("phrase")==="true";this.eventBus.dispatch("findfromurlhash",{source:this,query:a?s:s.match(/\S+/g)})}if(n.has("page")&&(t=n.get("page")|0||1),n.has("zoom")){const s=n.get("zoom").split(","),a=s[0],o=parseFloat(a);a.includes("Fit")?a==="Fit"||a==="FitB"?i=[null,{name:a}]:a==="FitH"||a==="FitBH"||a==="FitV"||a==="FitBV"?i=[null,{name:a},s.length>1?s[1]|0:null]:a==="FitR"?s.length!==5?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):i=[null,{name:a},s[1]|0,s[2]|0,s[3]|0,s[4]|0]:console.error(`PDFLinkService.setHash: "${a}" is not a valid zoom value.`):i=[null,{name:"XYZ"},s.length>1?s[1]|0:null,s.length>2?s[2]|0:null,o?o/100:a]}i?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:i,allowNegativeOffset:!0}):t&&(this.page=t),n.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:n.get("pagemode")}),n.has("nameddest")&&this.goToDestination(n.get("nameddest"));return}i=unescape(e);try{i=JSON.parse(i),Array.isArray(i)||(i=i.toString())}catch{}if(typeof i=="string"||be.#e(i)){this.goToDestination(i);return}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;break}this.eventBus.dispatch("namedaction",{source:this,action:e})}}async executeSetOCGState(e){if(!this.pdfDocument)return;const t=this.pdfDocument,i=await this.pdfViewer.optionalContentConfigPromise;t===this.pdfDocument&&(i.setOCGState(e),this.pdfViewer.optionalContentConfigPromise=Promise.resolve(i))}static#e(e){if(!Array.isArray(e)||e.length<2)return!1;const[t,i,...n]=e;if(!(typeof t=="object"&&Number.isInteger(t?.num)&&Number.isInteger(t?.gen))&&!Number.isInteger(t)||!(typeof i=="object"&&typeof i?.name=="string"))return!1;const s=n.length;let a=!0;switch(i.name){case"XYZ":if(s<2||s>3)return!1;break;case"Fit":case"FitB":return s===0;case"FitH":case"FitBH":case"FitV":case"FitBV":if(s>1)return!1;break;case"FitR":if(s!==4)return!1;a=!1;break;default:return!1}for(const o of n)if(!(typeof o=="number"||a&&o===null))return!1;return!0}}class De extends be{setDocument(e,t=null){}}const{AbortException:Ei,AnnotationEditorLayer:wi,AnnotationEditorParamsType:Gn,AnnotationEditorType:O,AnnotationEditorUIManager:_i,AnnotationLayer:yi,AnnotationMode:$,build:Kn,ColorPicker:Xn,createValidAbsoluteUrl:vi,DOMSVGFactory:Zn,DrawLayer:Pi,FeatureTest:Qn,fetchData:Je,getDocument:Jn,getFilenameFromUrl:Yn,getPdfFilenameFromUrl:xi,getXfaPageViewport:qn,GlobalWorkerOptions:es,ImageKind:ts,InvalidPDFException:is,isDataScheme:ns,isPdfFile:Si,MissingPDFException:ss,noContextMenu:rs,normalizeUnicode:Ai,OPS:as,OutputScale:Li,PasswordResponses:os,PDFDataRangeTransport:ls,PDFDateString:hs,PDFWorker:ds,PermissionFlag:de,PixelsPerInch:U,RenderingCancelledException:Ie,setLayerDimensions:Ii,shadow:fe,stopEvent:Te,TextLayer:Ti,TouchManager:us,UnexpectedResponseException:cs,Util:fs,VerbosityLevel:ps,version:Ye,XfaLayer:xe}=globalThis.pdfjsLib;class yt{#e=null;#t=null;constructor({pdfPage:e,linkService:t,downloadManager:i,annotationStorage:n=null,imageResourcesPath:s="",renderForms:a=!0,enableScripting:o=!1,hasJSActionsPromise:l=null,fieldObjectsPromise:h=null,annotationCanvasMap:u=null,accessibilityManager:f=null,annotationEditorUIManager:p=null,onAppend:w=null}){this.pdfPage=e,this.linkService=t,this.downloadManager=i,this.imageResourcesPath=s,this.renderForms=a,this.annotationStorage=n,this.enableScripting=o,this._hasJSActionsPromise=l||Promise.resolve(!1),this._fieldObjectsPromise=h||Promise.resolve(null),this._annotationCanvasMap=u,this._accessibilityManager=f,this._annotationEditorUIManager=p,this.#e=w,this.annotationLayer=null,this.div=null,this._cancelled=!1,this._eventBus=t.eventBus}async render(e,t,i="display"){if(this.div){if(this._cancelled||!this.annotationLayer)return;this.annotationLayer.update({viewport:e.clone({dontFlip:!0})});return}const[n,s,a]=await Promise.all([this.pdfPage.getAnnotations({intent:i}
4),this._hasJSActionsPromise,this._fieldObjectsPromise]);if(this._cancelled)return;const o=this.div=document.createElement("div");if(o.className="annotationLayer",this.#e?.(o),n.length===0){this.hide();return}this.annotationLayer=new yi({div:o,accessibilityManager:this._accessibilityManager,annotationCanvasMap:this._annotationCanvasMap,annotationEditorUIManager:this._annotationEditorUIManager,page:this.pdfPage,viewport:e.clone({dontFlip:!0}),structTreeLayer:t?.structTreeLayer||null}),await this.annotationLayer.render({annotations:n,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,linkService:this.linkService,downloadManager:this.downloadManager,annotationStorage:this.annotationStorage,enableScripting:this.enableScripting,hasJSActions:s,fieldObjects:a}),this.linkService.isInPresentationMode&&this.#s(J.FULLSCREEN),this.#t||(this.#t=new AbortController,this._eventBus?._on("presentationmodechanged",l=>{this.#s(l.state)},{signal:this.#t.signal}))}cancel(){this._cancelled=!0,this.#t?.abort(),this.#t=null}hide(){this.div&&(this.div.hidden=!0)}hasEditableAnnotations(){return!!this.annotationLayer?.hasEditableAnnotations()}#s(e){if(!this.div)return;let t=!1;switch(e){case J.FULLSCREEN:t=!0;break;case J.NORMAL:break;default:return}for(const i of this.div.childNodes)i.hasAttribute("data-internal-link")||(i.inert=t)}}function qe(r,e){const t=document.createElement("a");if(!t.click)throw new Error('DownloadManager: "a.click()" is not supported.');t.href=r,t.target="_parent","download"in t&&(t.download=e),(document.body||document.documentElement).append(t),t.click(),t.remove()}class Ci{#e=new WeakMap;downloadData(e,t,i){const n=URL.createObjectURL(new Blob([e],{type:i}));qe(n,t)}openOrDownloadData(e,t,i=null){const s=Si(t)?"application/pdf":"";return this.downloadData(e,t,s),!1}download(e,t,i){let n;if(e)n=URL.createObjectURL(new Blob([e],{type:"application/pdf"}));else{if(!vi(t,"http://example.com")){console.error(`download - not a valid URL: ${t}`);return}n=t+"#pdfjs.action=download"}qe(n,i)}}const et={EVENT:"event",TIMEOUT:"timeout"};async function Ri({target:r,name:e,delay:t=0}){if(typeof r!="object"||!(Number.isInteger(t)&&t>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");const{promise:i,resolve:n}=Promise.withResolvers(),s=new AbortController;function a(h){s.abort(),clearTimeout(l),n(h)}const o=r instanceof vt?"_on":"addEventListener";r[o](e,a.bind(null,et.EVENT),{signal:s.signal});const l=setTimeout(a.bind(null,et.TIMEOUT),t);return i}class vt{#e=Object.create(null);on(e,t,i=null){this._on(e,t,{external:!0,once:i?.once,signal:i?.signal})}off(e,t,i=null){this._off(e,t)}dispatch(e,t){const i=this.#e[e];if(!i||i.length===0)return;let n;for(const{listener:s,external:a,once:o}of i.slice(0)){if(o&&this._off(e,s),a){(n||=[]).push(s);continue}s(t)}if(n){for(const s of n)s(t);n=null}}_on(e,t,i=null){let n=null;if(i?.signal instanceof AbortSignal){const{signal:a}=i;if(a.aborted){console.error("Cannot use an `aborted` signal.");return}const o=()=>this._off(e,t);n=()=>a.removeEventListener("abort",o),a.addEventListener("abort",o)}(this.#e[e]||=[]).push({listener:t,external:i?.external===!0,once:i?.once===!0,rmAbort:n})}_off(e,t,i=null){const n=this.#e[e];if(n)for(let s=0,a=n.length;s<a;s++){const o=n[s];if(o.listener===t){o.rmAbort?.(),n.splice(s,1);return}}}}class Ee{constructor(e){this.value=e}valueOf(){return this.value}}class M extends Ee{constructor(e="???"){super(e)}toString(e){return`{${this.value}}`}}class z extends Ee{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 ne extends Ee{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 tt=100,Ni="â¨",Mi="â©";function ki(r,e,t){if(t===e||t instanceof z&&e instanceof z&&t.value===e.value)return!0;
vendor: 10,215 bytes, lines 4-5
4if(e instanceof z&&typeof t=="string"){let i=r.memoizeIntlObject(Intl.PluralRules,e.opts).select(e.value);if(t===i)return!0}return!1}function it(r,e,t){return e[t]?q(r,e[t].value):(r.reportError(new RangeError("No default")),new M)}function Ce(r,e){const t=[],i=Object.create(null);for(const n of e)n.type==="narg"?i[n.name]=ae(r,n.value):t.push(ae(r,n));return{positional:t,named:i}}function ae(r,e){switch(e.type){case"str":return e.value;case"num":return new z(e.value,{minimumFractionDigits:e.precision});case"var":return Di(r,e);case"mesg":return Fi(r,e);case"term":return Oi(r,e);case"func":return ji(r,e);case"select":return Vi(r,e);default:return new M}}function Di(r,{name:e}){let t;if(r.params)if(Object.prototype.hasOwnProperty.call(r.params,e))t=r.params[e];else return new M(`$${e}`);else if(r.args&&Object.prototype.hasOwnProperty.call(r.args,e))t=r.args[e];else return r.reportError(new ReferenceError(`Unknown variable: $${e}`)),new M(`$${e}`);if(t instanceof Ee)return t;switch(typeof t){case"string":return t;case"number":return new z(t);case"object":if(t instanceof Date)return new ne(t.getTime());default:return r.reportError(new TypeError(`Variable type not supported: $${e}, ${typeof t}`)),new M(`$${e}`)}}function Fi(r,{name:e,attr:t}){const i=r.bundle._messages.get(e);if(!i)return r.reportError(new ReferenceError(`Unknown message: ${e}`)),new M(e);if(t){const n=i.attributes[t];return n?q(r,n):(r.reportError(new ReferenceError(`Unknown attribute: ${t}`)),new M(`${e}.${t}`))}return i.value?q(r,i.value):(r.reportError(new ReferenceError(`No value: ${e}`)),new M(e))}function Oi(r,{name:e,attr:t,args:i}){const n=`-${e}`,s=r.bundle._terms.get(n);if(!s)return r.reportError(new ReferenceError(`Unknown term: ${n}`)),new M(n);if(t){const o=s.attributes[t];if(o){r.params=Ce(r,i).named;const l=q(r,o);return r.params=null,l}return r.reportError(new ReferenceError(`Unknown attribute: ${t}`)),new M(`${n}.${t}`)}r.params=Ce(r,i).named;const a=q(r,s.value);return r.params=null,a}function ji(r,{name:e,args:t}){let i=r.bundle._functions[e];if(!i)return r.reportError(new ReferenceError(`Unknown function: ${e}()`)),new M(`${e}()`);if(typeof i!="function")return r.reportError(new TypeError(`Function ${e}() is not callable`)),new M(`${e}()`);try{let n=Ce(r,t);return i(n.positional,n.named)}catch(n){return r.reportError(n),new M(`${e}()`)}}function Vi(r,{selector:e,variants:t,star:i}){let n=ae(r,e);if(n instanceof M)return it(r,t,i);for(const s of t){const a=ae(r,s.key);if(ki(r,n,a))return q(r,s.value)}return it(r,t,i)}function Pt(r,e){if(r.dirty.has(e))return r.reportError(new RangeError("Cyclic reference")),new M;r.dirty.add(e);const t=[],i=r.bundle._useIsolating&&e.length>1;for(const n of e){if(typeof n=="string"){t.push(r.bundle._transform(n));continue}if(r.placeables++,r.placeables>tt)throw r.dirty.delete(e),new RangeError(`Too many placeables expanded: ${r.placeables}, max allowed is ${tt}`);i&&t.push(Ni),t.push(ae(r,n).toString(r)),i&&t.push(Mi)}return r.dirty.delete(e),t.join("")}function q(r,e){return typeof e=="string"?r.bundle._transform(e):Pt(r,e)}class Bi{constructor(e,t,i){this.dirty=new WeakSet,this.params=null,this.placeables=0,this.bundle=e,this.errors=t,this.args=i}reportError(e){if(!this.errors||!(e instanceof Error))throw e;this.errors.push(e)}memoizeIntlObject(e,t){let i=this.bundle._intls.get(e);i||(i={},this.bundle._intls.set(e,i));let n=JSON.stringify(t);return i[n]||(i[n]=new e(this.bundle.locales,t)),i[n]}}function pe(r,e){const t=Object.create(null);for(const[i,n]of Object.entries(r))e.includes(i)&&(t[i]=n.valueOf());return t}const nt=["unitDisplay","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"];function Hi(r,e){let t=r[0];if(t instanceof M)return new M(`NUMBER(${t.valueOf()})`);if(t instanceof z)return new z(t.valueOf(),{...t.opts,...pe(e,nt)});if(t instanceof ne)return new z(t.valueOf(),{...pe(e,nt)});throw new TypeError("Invalid argument to NUMBER")}const st=["dateStyle","timeStyle","fractionalSecondDigits","dayPeriod","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Ui(r,e){let t=r[0];if(t instanceof M)return new M(`DATETIME(${t.valueOf()})`);if(t instanceof ne)return new ne(t.valueOf(),{...t.opts,...pe(e,st)});if(t instanceof z)return new ne(t.valueOf(),{...pe(e,st)});throw new TypeError("Invalid argument to DATETIME")}const rt=new Map;function $i(r){const e=Array.isArray(r)?r.join(" "):r;let t=rt.get(e);return t===void 0&&(t=new Map,rt.set(e,t)),t}class Wi{constructor(e,{functions:t,useIsolating:i=!0,transform:n=s=>s}={}){this._terms=new Map,this._messages=new Map,this.locales=Array.isArray(e)?e:[e],this._functions={NUMBER:Hi,DATETIME:Ui,...t},this._useIsolating=i,this._transform=n,this._intls=$i(e)}hasMessage(e){return this._messages.has(e)}getMessage(e){return this._messages.get(e)}addResource(e,{allowOverrides:t=!1}={}){const i=[];for(let n=0;n<e.body.length;n++){let s=e.body[n];if(s.id.startsWith("-")){if(t===!1&&this._terms.has(s.id)){i.push(new Error(`Attempt to override an existing term: "${s.id}"`));continue}this._terms.set(s.id,s)}else{if(t===!1&&this._messages.has(s.id)){i.push(new Error(`Attempt to override an existing message: "${s.id}"`));continue}this._messages.set(s.id,s)}}return i}formatPattern(e,t=null,i=null){if(typeof e=="string")return this._transform(e);let n=new Bi(this,i,t);try{return Pt(n,e).toString(n)}catch(s){if(n.errors&&s instanceof Error)return n.errors.push(s),new M().toString(n);throw s}}}const Se=/^(-?[a-zA-Z][\w-]*) *= */gm,at=/\.([a-zA-Z][\w-]*) *= */y,zi=/\*?\[/y,Ae=/(-?[0-9]+(?:\.([0-9]+))?)/y,Gi=/([a-zA-Z][\w-]*)/y,ot=/([$-])?([a-zA-Z][\w-]*)(?:\.([a-zA-Z][\w-]*))?/y,Ki=/^[A-Z][A-Z0-9_-]*$/,ue=/([^{}\n\r]+)/y,Xi=/([^\\"\n\r]*)/y,lt=/\\([\\"])/y,ht=/\\u([a-fA-F0-9]{4})|\\U([a-fA-F0-9]{6})/y,Zi=/^\n+/,dt=/ +$/,Qi=/ *\r?\n/g,Ji=/( *)$/,Yi=/{\s*/y,ut=/\s*}/y,qi=/\[\s*/y,en=/\s*] */y,tn=/\s*\(\s*/y,nn=/\s*->\s*/y,sn=/\s*:\s*/y,rn=/\s*,?\s*/y,an=/\s+/y;class on{constructor(e){this.body=[],Se.lastIndex=0;let t=0;for(;;){let c=Se.exec(e);if(c===null)break;t=Se.lastIndex;try{this.body.push(l(c[1]))}catch(g){if(g instanceof SyntaxError)continue;throw g}}function i(c){return c.lastIndex=t,c.test(e)}function n(c,g){if(e[t]===c)return t++,!0;if(g)throw new g(`Expected ${c}`);return!1}function s(c,g){if(i(c))return t=c.lastIndex,!0;if(g)throw new g(`Expected ${c.toString()}`);return!1}function a(c){c.lastIndex=t;let g=c.exec(e);if(g===null)throw new SyntaxError(`Expected ${c.toString()}`);return t=c.lastIndex,g}function o(c){return a(c)[1]}function l(c){let g=u(),m=h();if(g===null&&Object.keys(m).length===0)throw new SyntaxError("Expected message value or attributes");return{id:c,value:g,attributes:m}}function h(){let c=Object.create(null);for(;i(at);){let g=o(at),m=u();if(m===null)throw new SyntaxError("Expected attribute value");c[g]=m}return c}function u(){let c;if(i(ue)&&(c=o(ue)),e[t]==="{"||e[t]==="}")return f(c?[c]:[],1/0);let g=T();return g?c?f([c,g],g.length):(g.value=R(g.value,Zi),f([g],g.length)):c?R(c,dt):null}function f(c=[],g){for(;;){if(i(ue)){c.push(o(ue));continue}if(e[t]==="{"){c.push(p());continue}if(e[t]==="}")throw new SyntaxError("Unbalanced closing brace");let D=T();if(D){c.push(D),g=Math.min(g,D.length);continue}break}let m=c.length-1,A=c[m];typeof A=="string"&&(c[m]=R(A,dt));let F=[];for(let D of c)D instanceof ct&&(D=D.value.slice(0,D.value.length-g)),D&&F.push(D);return F}function p(){s(Yi,SyntaxError);let c=w();if(s(ut))return c;if(s(nn)){let g=y();return s(ut,SyntaxError),{type:"select",selector:c,...g}}throw new SyntaxError("Unclosed placeable")}function w(){if(e[t]==="{")return p();if(i(ot)){let[,c,g,m=null]=a(ot);if(c==="$")return{type:"var",name:g};if(s(tn)){let A=v();if(c==="-")return{type:"term",name:g,attr:m,args:A};if(Ki.test(g))return{type:"func",name:g,args:A};throw new SyntaxError("Function names must be all upper-case")}return c==="-"?{type:"term",name:g,attr:m,args:[]}:{type:"mesg",name:g,attr:m}}return x()}function v(){let c=[];for(;;){switch(e[t]){case")":return t++,c;case void 0:throw new SyntaxError("Unclosed argument list")}c.push(_()),s(rn)}}function _(){let c=w();return c.type!=="mesg"?c:s(sn)?{type:"narg",name:c.name,value:x()}:c}function y(){let c=[],g=0,m;for(;i(zi);){n("*")&&(m=g);let A=P(),F=u();if(F===null)throw new SyntaxError("Expected variant value");c[g++]={key:A,value:F}}if(g===0)return null;if(m===void 0)throw new SyntaxError("Expected default variant");return{variants:c,star:m}}function P(){s(qi,SyntaxError);let c;return i(Ae)?c=E():c={type:"str",value:o(Gi)},s(en,SyntaxError),c}function x(){if(i(Ae))return E();if(e[t]==='"')return b();throw new SyntaxError("Invalid expression")}function E(){let[,c,g=""]=a(Ae),m=g.length;return{type:"num",value:parseFloat(c),precision:m}}function b(){n('"',SyntaxError);let c="";for(;;){if(c+=o(Xi),e[t]==="\\"){c+=S();continue}if(n('"'))return{type:"str",value:c};throw new SyntaxError("Unclosed string literal")}}function S(){if(i(lt))return o(lt);if(i(ht)){let[,c,g]=a(ht),m=parseInt(c||g,16);return m<=55295||57344<=m?String.fromCodePoint(m):"�"}throw new SyntaxError("Unknown escape sequence")}function T(){let c=t;switch(s(an),e[t]){case".":case"[":case"*":case"}":case void 0:return!1;case"{":return I(e.slice(c,t))}return e[t-1]===" "?I(e.slice(c,t)):!1}function R(c,g){return c.replace(g,"")}function I(c){let g=c.replace(Qi,` 5`),m=Ji.exec(c)[1].length;return new ct(g,m)}}}class ct{constructor(e,t){this.value=e,this.length=t}}const ln=/<|&#?\w+;/,hn={"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"]},dn={"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
5itle","tooltiptext"],description:["value"],key:["key","keycode"],label:["value"],textbox:["placeholder","value"]}};function un(r,e){const{value:t}=e;if(typeof t=="string")if(r.localName==="title"&&r.namespaceURI==="http://www.w3.org/1999/xhtml")r.textContent=t;else if(!ln.test(t))r.textContent=t;else{const i=r.ownerDocument.createElementNS("http://www.w3.org/1999/xhtml","template");i.innerHTML=t,cn(i.content,r)}xt(e,r)}function cn(r,e){for(const t of r.childNodes)if(t.nodeType!==t.TEXT_NODE){if(t.hasAttribute("data-l10n-name")){const i=pn(e,t);r.replaceChild(i,t);continue}if(mn(t)){const i=gn(t);r.replaceChild(i,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.`),r.replaceChild(Re(t),t)}e.textContent="",e.appendChild(r)}function fn(r,e){if(!r)return!1;for(let t of r)if(t.name===e)return!0;return!1}function xt(r,e){const t=e.hasAttribute("data-l10n-attrs")?e.getAttribute("data-l10n-attrs").split(",").map(i=>i.trim()):null;for(const i of Array.from(e.attributes))ft(i.name,e,t)&&!fn(r.attributes,i.name)&&e.removeAttribute(i.name);if(r.attributes)for(const i of Array.from(r.attributes))ft(i.name,e,t)&&e.getAttribute(i.name)!==i.value&&e.setAttribute(i.name,i.value)}function pn(r,e){const t=e.getAttribute("data-l10n-name"),i=r.querySelector(`[data-l10n-name="${t}"]`);if(!i)return console.warn(`An element named "${t}" wasn't found in the source.`),Re(e);if(i.localName!==e.localName)return 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 (${i.localName}).`),Re(e);r.removeChild(i);const n=i.cloneNode(!1);return St(e,n)}function gn(r){const e=r.ownerDocument.createElement(r.localName);return St(r,e)}function Re(r){return r.ownerDocument.createTextNode(r.textContent)}function mn(r){const e=hn[r.namespaceURI];return e&&e.includes(r.localName)}function ft(r,e,t=null){if(t&&t.includes(r))return!0;const i=dn[e.namespaceURI];if(!i)return!1;const n=r.toLowerCase(),s=e.localName;if(i.global.includes(n))return!0;if(!i[s])return!1;if(i[s].includes(n))return!0;if(e.namespaceURI==="http://www.w3.org/1999/xhtml"&&s==="input"&&n==="value"){const a=e.type.toLowerCase();if(a==="submit"||a==="button"||a==="reset")return!0}return!1}function St(r,e){return e.textContent=r.textContent,xt(r,e),e}class bn extends Array{static from(e){return e instanceof this?e:new this(e)}}class En extends bn{constructor(e){if(super(),Symbol.asyncIterator in Object(e))this.iterator=e[Symbol.asyncIterator]();else if(Symbol.iterator in Object(e))this.iterator=e[Symbol.iterator]();else throw new TypeError("Argument must implement the iteration protocol.")}[Symbol.asyncIterator](){const e=this;let t=0;return{async next(){return e.length<=t&&e.push(e.iterator.next()),e[t++]}}}async touchNext(e=1){let t=0;for(;t++<e;){const i=this[this.length-1];if(i&&(await i).done)break;this.push(this.iterator.next())}return this[this.length-1]}}class wn{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}async formatWithFallback(e,t){const i=[];let n=!1;for await(const s of this.bundles){n=!0;const a=vn(t,s,e,i);if(a.size===0)break;if(typeof console<"u"){const o=s.locales[0],l=Array.from(a).join(", ");console.warn(`[fluent] Missing translations in ${o}: ${l}`)}}return!n&&typeof console<"u"&&console.warn(`[fluent] Request for keys failed because no resource bundles got generated. 6 keys: ${JSON.stringify(e)}. 7 resourceIds: ${JSON.stringify(this.resourceIds)}.`),i}formatMessages(e){return this.formatWithFallback(e,yn)}formatValues(e){return this.formatWithFallback(e,_n)}async formatValue(e,t){const[i]=await this.formatValues([{id:e,args:t}]);return i}handleEvent(){this.onChange()}onChange(e=!1){this.bundles=En.from(this.generateBundles(this.resourceIds)),e&&this.bundles.touchNext(2)}}function _n(r,e,t,i){return t.value?r.formatPattern(t.value,i,e):null}function yn(r,e,t,i){const n={value:null,attributes:null};t.value&&(n.value=r.formatPattern(t.value,i,e));let s=Object.keys(t.attributes);if(s.length>0){n.attributes=new Array(s.length);for(let[a,o]of s.entries()){let l=r.formatPattern(t.attributes[o],i,e);n.attributes[a]={name:o,value:l}}}return n}function vn(r,e,t,i){const n=[],s=new Set;return t.forEach(({id:a,args:o},l)=>{if(i[l]!==void 0)return;
vendor: 5,200 bytes, lines 7-8
7let h=e.getMessage(a);if(h){if(n.length=0,i[l]=r(e,n,h,o),n.length>0&&typeof console<"u"){const u=e.locales[0],f=n.join(", ");console.warn(`[fluent][resolver] errors in ${u}/${a}: ${f}.`)}}else s.add(a)}),s}const Z="data-l10n-id",ee="data-l10n-args",Pn=`[${Z}]`;class xn extends wn{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:[Z,ee]}}onChange(e=!1){super.onChange(e),this.roots&&this.translateRoots()}setAttributes(e,t,i){return e.setAttribute(Z,t),i?e.setAttribute(ee,JSON.stringify(i)):e.removeAttribute(ee),e}getAttributes(e){return{id:e.getAttribute(Z),args:JSON.parse(e.getAttribute(ee)||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: 8 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(),this.roots.size===0?(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 i of t.addedNodes)if(i.nodeType===i.ELEMENT_NODE)if(i.childElementCount)for(const n of this.getTranslatables(i))this.pendingElements.add(n);else i.hasAttribute(Z)&&this.pendingElements.add(i);break}this.pendingElements.size>0&&this.pendingrAF===null&&(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))}async translateElements(e){if(!e.length)return;const t=e.map(this.getKeysForElement),i=await this.formatMessages(t);return this.applyTranslations(e,i)}applyTranslations(e,t){this.pauseObserving();for(let i=0;i<e.length;i++)t[i]!==void 0&&un(e[i],t[i]);this.resumeObserving()}getTranslatables(e){const t=Array.from(e.querySelectorAll(Pn));return typeof e.hasAttribute=="function"&&e.hasAttribute(Z)&&t.push(e),t}getKeysForElement(e){return{id:e.getAttribute(Z),args:JSON.parse(e.getAttribute(ee)||null)}}}class ge{#e;#t;#s;#i;constructor({lang:e,isRTL:t},i=null){this.#s=ge.#n(e),this.#i=i,this.#e=t??ge.#r(this.#s)?"rtl":"ltr"}_setL10n(e){this.#i=e}getLanguage(){return this.#s}getDirection(){return this.#e}async get(e,t=null,i){return Array.isArray(e)?(e=e.map(a=>({id:a})),(await this.#i.formatMessages(e)).map(a=>a.value)):(await this.#i.formatMessages([{id:e,args:t}]))[0]?.value||i}async translate(e){(this.#t||=new Set).add(e);try{this.#i.connectRoot(e),await this.#i.translateRoots()}catch{}}async translateOnce(e){try{await this.#i.translateElements([e])}catch(t){console.error("translateOnce:",t)}}async destroy(){if(this.#t){for(const e of this.#t)this.#i.disconnectRoot(e);this.#t.clear(),this.#t=null}this.#i.pauseObserving()}pause(){this.#i.pauseObserving()}resume(){this.#i.resumeObserving()}static#n(e){return e=e?.toLowerCase()||"en-us",{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}static#r(e){const t=e.split("-",1)[0];return["ar","he","fa","ps","ur"].includes(t)}}function pt(r,e){const t=new on(e),i=new Wi(r),n=i.addResource(t);return n.length&&console.error("L10n errors",n),i}class W extends ge{constructor(e){super({lang:e});const t=e?W.#e.bind(W,"en-us",this.getLanguage()):W.#i.bind(W,this.getLanguage());this._setL10n(new xn([],t))}static async*#e(e,t){const{baseURL:i,paths:n}=await this.#s(),s=[t];if(e!==t){const a=t.split("-",1)[0];a!==t&&s.push(a),s.push(e)}for(const a of s){const o=await this.#t(a,i,n);o?yield o:a==="en-us"&&(yield this.#n(a))}}static async#t(e,t,i){const n=i[e];if(!n)return null;const s=new URL(n,t),a=await Je(s,"text");return pt(e,a)}static async#s(){try{const{href:e}=document.querySelector('link[type="application/l10n"]'),t=await Je(e,"json");return{baseURL:e.replace(/[^/]*$/,"")||"./",paths:t}}catch{}return{baseURL:"./",paths:Object.create(null)}}static async*#i(e){yield this.#n(e)}static async#n(e){return pt(e,
vendor: 15,291 bytes, lines 8-344
8`pdfjs-previous-button = 9 .title = Previous Page 10pdfjs-previous-button-label = Previous 11pdfjs-next-button = 12 .title = Next Page 13pdfjs-next-button-label = Next 14pdfjs-page-input = 15 .title = Page 16pdfjs-of-pages = of { $pagesCount } 17pdfjs-page-of-pages = ({ $pageNumber } of { $pagesCount }) 18pdfjs-zoom-out-button = 19 .title = Zoom Out 20pdfjs-zoom-out-button-label = Zoom Out 21pdfjs-zoom-in-button = 22 .title = Zoom In 23pdfjs-zoom-in-button-label = Zoom In 24pdfjs-zoom-select = 25 .title = Zoom 26pdfjs-presentation-mode-button = 27 .title = Switch to Presentation Mode 28pdfjs-presentation-mode-button-label = Presentation Mode 29pdfjs-open-file-button = 30 .title = Open File 31pdfjs-open-file-button-label = Open 32pdfjs-print-button = 33 .title = Print 34pdfjs-print-button-label = Print 35pdfjs-save-button = 36 .title = Save 37pdfjs-save-button-label = Save 38pdfjs-download-button = 39 .title = Download 40pdfjs-download-button-label = Download 41pdfjs-bookmark-button = 42 .title = Current Page (View URL from Current Page) 43pdfjs-bookmark-button-label = Current Page 44pdfjs-tools-button = 45 .title = Tools 46pdfjs-tools-button-label = Tools 47pdfjs-first-page-button = 48 .title = Go to First Page 49pdfjs-first-page-button-label = Go to First Page 50pdfjs-last-page-button = 51 .title = Go to Last Page 52pdfjs-last-page-button-label = Go to Last Page 53pdfjs-page-rotate-cw-button = 54 .title = Rotate Clockwise 55pdfjs-page-rotate-cw-button-label = Rotate Clockwise 56pdfjs-page-rotate-ccw-button = 57 .title = Rotate Counterclockwise 58pdfjs-page-rotate-ccw-button-label = Rotate Counterclockwise 59pdfjs-cursor-text-select-tool-button = 60 .title = Enable Text Selection Tool 61pdfjs-cursor-text-select-tool-button-label = Text Selection Tool 62pdfjs-cursor-hand-tool-button = 63 .title = Enable Hand Tool 64pdfjs-cursor-hand-tool-button-label = Hand Tool 65pdfjs-scroll-page-button = 66 .title = Use Page Scrolling 67pdfjs-scroll-page-button-label = Page Scrolling 68pdfjs-scroll-vertical-button = 69 .title = Use Vertical Scrolling 70pdfjs-scroll-vertical-button-label = Vertical Scrolling 71pdfjs-scroll-horizontal-button = 72 .title = Use Horizontal Scrolling 73pdfjs-scroll-horizontal-button-label = Horizontal Scrolling 74pdfjs-scroll-wrapped-button = 75 .title = Use Wrapped Scrolling 76pdfjs-scroll-wrapped-button-label = Wrapped Scrolling 77pdfjs-spread-none-button = 78 .title = Do not join page spreads 79pdfjs-spread-none-button-label = No Spreads 80pdfjs-spread-odd-button = 81 .title = Join page spreads starting with odd-numbered pages 82pdfjs-spread-odd-button-label = Odd Spreads 83pdfjs-spread-even-button = 84 .title = Join page spreads starting with even-numbered pages 85pdfjs-spread-even-button-label = Even Spreads 86pdfjs-document-properties-button = 87 .title = Document Properties⦠88pdfjs-document-properties-button-label = Document Properties⦠89pdfjs-document-properties-file-name = File name: 90pdfjs-document-properties-file-size = File size: 91pdfjs-document-properties-size-kb = { NUMBER($kb, maximumSignificantDigits: 3) } KB ({ $b } bytes) 92pdfjs-document-properties-size-mb = { NUMBER($mb, maximumSignificantDigits: 3) } MB ({ $b } bytes) 93pdfjs-document-properties-title = Title: 94pdfjs-document-properties-author = Author: 95pdfjs-document-properties-subject = Subject: 96pdfjs-document-properties-keywords = Keywords: 97pdfjs-document-properties-creation-date = Creation Date: 98pdfjs-document-properties-modification-date = Modification Date: 99pdfjs-document-properties-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") } 100pdfjs-document-properties-creator = Creator: 101pdfjs-document-properties-producer = PDF Producer: 102pdfjs-document-properties-version = PDF Version: 103pdfjs-document-properties-page-count = Page Count: 104pdfjs-document-properties-page-size = Page Size: 105pdfjs-document-properties-page-size-unit-inches = in 106pdfjs-document-properties-page-size-unit-millimeters = mm 107pdfjs-document-properties-page-size-orientation-portrait = portrait 108pdfjs-document-properties-page-size-orientation-landscape = landscape 109pdfjs-document-properties-page-size-name-a-three = A3 110pdfjs-document-properties-page-size-name-a-four = A4 111pdfjs-document-properties-page-size-name-letter = Letter 112pdfjs-document-properties-page-size-name-legal = Legal 113pdfjs-document-properties-page-size-dimension-string = { $width } à { $height } { $unit } ({ $orientation }) 114pdfjs-document-properties-page-size-dimension-name-string = { $width } à { $height } { $unit } ({ $name }, { $orientation }) 115pdfjs-document-properties-linearized = Fast Web View: 116pdfjs-document-properties-linearized-yes = Yes 117pdfjs-document-properties-linearized-no = No 118pdfjs-document-properties-close-button = Close 119pdfjs-print-progress-message = Preparing document for printing⦠120pdfjs-print-progress-percent = { $progress }% 121pdfjs-print-progress-close-button = Cancel 122pdfjs-printing-not-supported = Warning: Printing is not fully supported by this browser. 123pdfjs-printing-not-ready = Warning: The PDF is not fully loaded for printing. 124pdfjs-toggle-sidebar-button = 125 .title = Toggle Sidebar 126pdfjs-toggle-sidebar-notification-button = 127 .title = Toggle Sidebar (document contains outline/attachments/layers) 128pdfjs-toggle-sidebar-button-label = Toggle Sidebar 129pdfjs-document-outline-button = 130 .title = Show Document Outline (double-click to expand/collapse all items) 131pdfjs-document-outline-button-label = Document Outline 132pdfjs-attachments-button = 133 .title = Show Attachments 134pdfjs-attachments-button-label = Attachments 135pdfjs-layers-button = 136 .title = Show Layers (double-click to reset all layers to the default state) 137pdfjs-layers-button-label = Layers 138pdfjs-thumbs-button = 139 .title = Show Thumbnails 140pdfjs-thumbs-button-label = Thumbnails 141pdfjs-current-outline-item-button = 142 .title = Find Current Outline Item 143pdfjs-current-outline-item-button-label = Current Outline Item 144pdfjs-findbar-button = 145 .title = Find in Document 146pdfjs-findbar-button-label = Find 147pdfjs-additional-layers = Additional Layers 148pdfjs-thumb-page-title = 149 .title = Page { $page } 150pdfjs-thumb-page-canvas = 151 .aria-label = Thumbnail of Page { $page } 152pdfjs-find-input = 153 .title = Find 154 .placeholder = Find in document⦠155pdfjs-find-previous-button = 156 .title = Find the previous occurrence of the phrase 157pdfjs-find-previous-button-label = Previous 158pdfjs-find-next-button = 159 .title = Find the next occurrence of the phrase 160pdfjs-find-next-button-label = Next 161pdfjs-find-highlight-checkbox = Highlight All 162pdfjs-find-match-case-checkbox-label = Match Case 163pdfjs-find-match-diacritics-checkbox-label = Match Diacritics 164pdfjs-find-entire-word-checkbox-label = Whole Words 165pdfjs-find-reached-top = Reached top of document, continued from bottom 166pdfjs-find-reached-bottom = Reached end of document, continued from top 167pdfjs-find-match-count = 168 { $total -> 169 [one] { $current } of { $total } match 170 *[other] { $current } of { $total } matches 171 } 172pdfjs-find-match-count-limit = 173 { $limit -> 174 [one] More than { $limit } match 175 *[other] More than { $limit } matches 176 } 177pdfjs-find-not-found = Phrase not found 178pdfjs-page-scale-width = Page Width 179pdfjs-page-scale-fit = Page Fit 180pdfjs-page-scale-auto = Automatic Zoom 181pdfjs-page-scale-actual = Actual Size 182pdfjs-page-scale-percent = { $scale }% 183pdfjs-page-landmark = 184 .aria-label = Page { $page } 185pdfjs-loading-error = An error occurred while loading the PDF. 186pdfjs-invalid-file-error = Invalid or corrupted PDF file. 187pdfjs-missing-file-error = Missing PDF file. 188pdfjs-unexpected-response-error = Unexpected server response. 189pdfjs-rendering-error = An error occurred while rendering the page. 190pdfjs-annotation-date-time-string = { DATETIME($dateObj, dateStyle: "short", timeStyle: "medium") } 191pdfjs-text-annotation-type = 192 .alt = [{ $type } Annotation] 193pdfjs-password-label = Enter the password to open this PDF file. 194pdfjs-password-invalid = Invalid password. Please try again. 195pdfjs-password-ok-button = OK 196pdfjs-password-cancel-button = Cancel 197pdfjs-web-fonts-disabled = Web fonts are disabled: unable to use embedded PDF fonts. 198pdfjs-editor-free-text-button = 199 .title = Text 200pdfjs-editor-free-text-button-label = Text 201pdfjs-editor-ink-button = 202 .title = Draw 203pdfjs-editor-ink-button-label = Draw 204pdfjs-editor-stamp-button = 205 .title = Add or edit images 206pdfjs-editor-stamp-button-label = Add or edit images 207pdfjs-editor-highlight-button = 208 .title = Highlight 209pdfjs-editor-highlight-button-label = Highlight 210pdfjs-highlight-floating-button1 = 211 .title = Highlight 212 .aria-label = Highlight 213pdfjs-highlight-floating-button-label = Highlight 214pdfjs-editor-remove-ink-button = 215 .title = Remove drawing 216pdfjs-editor-remove-freetext-button = 217 .title = Remove text 218pdfjs-editor-remove-stamp-button = 219 .title = Remove image 220pdfjs-editor-remove-highlight-button = 221 .title = Remove highlight 222pdfjs-editor-free-text-color-input = Color 223pdfjs-editor-free-text-size-input = Size 224pdfjs-editor-ink-color-input = Color 225pdfjs-editor-ink-thickness-input = Thickness 226pdfjs-editor-ink-opacity-input = Opacity 227pdfjs-editor-stamp-add-image-button = 228 .title = Add image 229pdfjs-editor-stamp-add-image-button-label = Add image 230pdfjs-editor-free-highlight-thickness-input = Thickness 231pdfjs-editor-free-highlight-thickness-title = 232 .title = Change thickness when highlighting items other than text 233pdfjs-free-text2 = 234 .aria-label = Text Editor 235 .default-content = Start typing⦠236pdfjs-ink = 237 .aria-label = Draw Editor 238pdfjs-ink-canvas = 239 .aria-label = User-created image 240pdfjs-editor-alt-text-button = 241 .aria-label = Alt text 242pdfjs-editor-alt-text-button-label = Alt text 243pdfjs-editor-alt-text-edit-button = 244 .aria-label = Edit alt text 245pdfjs-editor-alt-text-dialog-label = Choose an option 246pdfjs-editor-alt-text-dialog-description = Alt text (alternative text) helps when people canât see the image or when it doesnât load. 247pdfjs-editor-alt-text-add-description-label = Add a description 248pdfjs-editor-alt-text-add-description-description = Aim for 1-2 sentences that describe the subject, setting, or actions. 249pdfjs-editor-alt-text-mark-decorative-label = Mark as decorative 250pdfjs-editor-alt-text-mark-decorative-description = This is used for ornamental images, like borders or watermarks. 251pdfjs-editor-alt-text-cancel-button = Cancel 252pdfjs-editor-alt-text-save-button = Save 253pdfjs-editor-alt-text-decorative-tooltip = Marked as decorative 254pdfjs-editor-alt-text-textarea = 255 .placeholder = For example, âA young man sits down at a table to eat a mealâ 256pdfjs-editor-resizer-top-left = 257 .aria-label = Top left corner â resize 258pdfjs-editor-resizer-top-middle = 259 .aria-label = Top middle â resize 260pdfjs-editor-resizer-top-right = 261 .aria-label = Top right corner â resize 262pdfjs-editor-resizer-middle-right = 263 .aria-label = Middle right â resize 264pdfjs-editor-resizer-bottom-right = 265 .aria-label = Bottom right corner â resize 266pdfjs-editor-resizer-bottom-middle = 267 .aria-label = Bottom middle â resize 268pdfjs-editor-resizer-bottom-left = 269 .aria-label = Bottom left corner â resize 270pdfjs-editor-resizer-middle-left = 271 .aria-label = Middle left â resize 272pdfjs-editor-highlight-colorpicker-label = Highlight color 273pdfjs-editor-colorpicker-button = 274 .title = Change color 275pdfjs-editor-colorpicker-dropdown = 276 .aria-label = Color choices 277pdfjs-editor-colorpicker-yellow = 278 .title = Yellow 279pdfjs-editor-colorpicker-green = 280 .title = Green 281pdfjs-editor-colorpicker-blue = 282 .title = Blue 283pdfjs-editor-colorpicker-pink = 284 .title = Pink 285pdfjs-editor-colorpicker-red = 286 .title = Red 287pdfjs-editor-highlight-show-all-button-label = Show all 288pdfjs-editor-highlight-show-all-button = 289 .title = Show all 290pdfjs-editor-new-alt-text-dialog-edit-label = Edit alt text (image description) 291pdfjs-editor-new-alt-text-dialog-add-label = Add alt text (image description) 292pdfjs-editor-new-alt-text-textarea = 293 .placeholder = Write your description here⦠294pdfjs-editor-new-alt-text-description = Short description for people who canât see the image or when the image doesnât load. 295pdfjs-editor-new-alt-text-disclaimer1 = This alt text was created automatically and may be inaccurate. 296pdfjs-editor-new-alt-text-disclaimer-learn-more-url = Learn more 297pdfjs-editor-new-alt-text-create-automatically-button-label = Create alt text automatically 298pdfjs-editor-new-alt-text-not-now-button = Not now 299pdfjs-editor-new-alt-text-error-title = Couldnât create alt text automatically 300pdfjs-editor-new-alt-text-error-description = Please write your own alt text or try again later. 301pdfjs-editor-new-alt-text-error-close-button = Close 302pdfjs-editor-new-alt-text-ai-model-downloading-progress = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB) 303 .aria-valuetext = Downloading alt text AI model ({ $downloadedSize } of { $totalSize } MB) 304pdfjs-editor-new-alt-text-added-button = 305 .aria-label = Alt text added 306pdfjs-editor-new-alt-text-added-button-label = Alt text added 307pdfjs-editor-new-alt-text-missing-button = 308 .aria-label = Missing alt text 309pdfjs-editor-new-alt-text-missing-button-label = Missing alt text 310pdfjs-editor-new-alt-text-to-review-button = 311 .aria-label = Review alt text 312pdfjs-editor-new-alt-text-to-review-button-label = Review alt text 313pdfjs-editor-new-alt-text-generated-alt-text-with-disclaimer = Created automatically: { $generatedAltText } 314pdfjs-image-alt-text-settings-button = 315 .title = Image alt text settings 316pdfjs-image-alt-text-settings-button-label = Image alt text settings 317pdfjs-editor-alt-text-settings-dialog-label = Image alt text settings 318pdfjs-editor-alt-text-settings-automatic-title = Automatic alt text 319pdfjs-editor-alt-text-settings-create-model-button-label = Create alt text automatically 320pdfjs-editor-alt-text-settings-create-model-description = Suggests descriptions to help people who canât see the image or when the image doesnât load. 321pdfjs-editor-alt-text-settings-download-model-label = Alt text AI model ({ $totalSize } MB) 322pdfjs-editor-alt-text-settings-ai-model-description = Runs locally on your device so your data stays private. Required for automatic alt text. 323pdfjs-editor-alt-text-settings-delete-model-button = Delete 324pdfjs-editor-alt-text-settings-download-model-button = Download 325pdfjs-editor-alt-text-settings-downloading-model-button = Downloading⦠326pdfjs-editor-alt-text-settings-editor-title = Alt text editor 327pdfjs-editor-alt-text-settings-show-dialog-button-label = Show alt text editor right away when adding an image 328pdfjs-editor-alt-text-settings-show-dialog-description = Helps you make sure all your images have alt text. 329pdfjs-editor-alt-text-settings-close-button = Close 330pdfjs-editor-undo-bar-message-highlight = Highlight removed 331pdfjs-editor-undo-bar-message-freetext = Text removed 332pdfjs-editor-undo-bar-message-ink = Drawing removed 333pdfjs-editor-undo-bar-message-stamp = Image removed 334pdfjs-editor-undo-bar-message-multiple = 335 { $count -> 336 [one] { $count } annotation removed 337 *[other] { $count } annotations removed 338 } 339pdfjs-editor-undo-bar-undo-button = 340 .title = Undo 341pdfjs-editor-undo-bar-undo-button-label = Undo 342pdfjs-editor-undo-bar-close-button = 343 .title = Close 344pdfjs-editor-undo-bar-close-button-label = Close`)
vendor: 6,641 bytes, line 344
344}}const Sn=1e3,An=50,Ln=1e3;function Le(){return document.location.hash}class In{#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",i=>{this._isPagesLoaded=!!i.pagesCount},{once:!0})})}initialize({fingerprint:e,resetHistory:t=!1,updateUrl:i=!1}){if(!e||typeof e!="string"){console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');return}this._initialized&&this.reset();const n=this._fingerprint!==""&&this._fingerprint!==e;this._fingerprint=e,this._updateUrl=i===!0,this._initialized=!0,this.#d();const s=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=Le(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this.#n(s,!0)||t){const{hash:o,page:l,rotation:h}=this.#a(!0);if(!o||n||t){this.#t(null,!0);return}this.#t({hash:o,page:l,rotation:h},!0);return}const a=s.destination;this.#r(a,s.uid,!0),a.rotation!==void 0&&(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:i}){if(!this._initialized)return;if(e&&typeof e!="string"){console.error(`PDFHistory.push: "${e}" is not a valid namedDest parameter.`);return}else if(Array.isArray(t)){if(!this.#i(i)&&(i!==null||this._destination)){console.error(`PDFHistory.push: "${i}" is not a valid pageNumber parameter.`);return}}else{console.error(`PDFHistory.push: "${t}" is not a valid explicitDest parameter.`);return}const n=e||JSON.stringify(t);if(!n)return;let s=!1;if(this._destination&&(Tn(this._destination.hash,n)||Cn(this._destination.dest,t))){if(this._destination.page)return;s=!0}this._popStateInProgress&&!s||(this.#t({dest:t,hash:n,page:i,rotation:this.linkService.rotation},s),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(e){if(this._initialized){if(!this.#i(e)){console.error(`PDFHistory.pushPage: "${e}" is not a valid page number.`);return}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.#s()}back(){if(!this._initialized||this._popStateInProgress)return;const e=window.history.state;this.#n(e)&&e.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const e=window.history.state;this.#n(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 i=t||!this._destination,n={fingerprint:this._fingerprint,uid:i?this._uid:this._uid+1,destination:e};this.#r(e,n.uid);let s;if(this._updateUrl&&e?.hash){const a=document.location.href.split("#",1)[0];a.startsWith("file://")||(s=`${a}#${e.hash}`)}i?window.history.replaceState(n,"",s):window.history.pushState(n,"",s)}#s(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){this.#t(t);return}if(this._destination.temporary){this.#t(t,!0);return}if(this._destination.hash===t.hash||!this._destination.page&&this._numPositionUpdates<=An)return;let i=!1;if(this._destination.page>=t.first&&this._destination.page<=t.page){if(this._destination.dest!==void 0||!this._destination.first)return;i=!0}this.#t(t,i)}#i(e){return Number.isInteger(e)&&e>0&&e<=this.linkService.pagesCount}#n(e,t=!1){if(!e)return!1;if(e.fingerprint!==this._fingerprint)if(t){if(typeof e.fingerprint!="string"||e.fingerprint.length!==this._fingerprint.length)return!1;const[i]=performance.getEntriesByType("navigation");if(i?.type!=="reload")return!1}else return!1;return!(!Number.isInteger(e.uid)||e.uid<0||e.destination===null||typeof e.destination!="object")}#r(e,t,i=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),i&&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(Le()).substring(1),i=me(t),n=i.get("nameddest")||"";let s=i.get("page")|0;return(!this.#i(s)||e&&n.length>0)&&(s=null),{hash:t,page:s,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.#s(!0),this._updateViewareaTimeout=null},Ln))}#h({state:e}){const t=Le(),i=this._currentHash!==t;if(this._currentHash=t,!e){this._uid++;const{hash:s,page:a,rotation:o}=this.#a();this.#t({hash:s,page:a,rotation:o},!0);return}if(!this.#n(e))return;this._popStateInProgress=!0,i&&(this._blockHashChange++,Ri({target:window,name:"hashchange",delay:Sn}).then(()=>{this._blockHashChange--}));const n=e.destination;this.#r(n,e.uid,!0),_t(n.rotation)&&(this.linkService.rotation=n.rotation),n.dest?this.linkService.goToDestination(n.dest):n.hash?this.linkService.setHash(n.hash):n.page&&(this.linkService.page=n.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}#o(){(!this._destination||this._destination.temporary)&&this.#s()}#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.#h.bind(this),{signal:e}),window.addEventListener("pagehide",this.#o.bind(this),{signal:e})}#f(){this.#e?.abort(),this.#e=null}}function Tn(r,e){return typeof r!="string"||typeof e!="string"?!1:r===e||me(r).get("nameddest")===e}
344function Cn(r,e){function t(i,n){if(typeof i!=typeof n||Array.isArray(i)||Array.isArray(n))return!1;if(i!==null&&typeof i=="object"&&n!==null){if(Object.keys(i).length!==Object.keys(n).length)return!1;for(const s in i)if(!t(i[s],n[s]))return!1;return!0}return i===n||Number.isNaN(i)&&Number.isNaN(n)}if(!(Array.isArray(r)&&Array.isArray(e))||r.length!==e.length)return!1;for(let i=0,n=r.length;i<n;i++)if(!t(r[i],e[i]))return!1;return!0}class Rn{#e=null;#t=null;#s=null;#i=null;#n=null;#r;constructor(e){this.pdfPage=e.pdfPage,this.accessibilityManager=e.accessibilityManager,this.l10n=e.l10n,this.l10n||=new W,this.annotationEditorLayer=null,this.div=null,this._cancelled=!1,this.#r=e.uiManager,this.#e=e.annotationLayer||null,this.#n=e.textLayer||null,this.#t=e.drawLayer||null,this.#s=e.onAppend||null,this.#i=e.structTreeLayer||null}async render(e,t="display"){if(t!=="display"||this._cancelled)return;const i=e.clone({dontFlip:!0});if(this.div){this.annotationEditorLayer.update({viewport:i}),this.show();return}const n=this.div=document.createElement("div");n.className="annotationEditorLayer",n.hidden=!0,n.dir=this.#r.direction,this.#s?.(n),this.annotationEditorLayer=new wi({uiManager:this.#r,div:n,structTreeLayer:this.#i,accessibilityManager:this.accessibilityManager,pageIndex:this.pdfPage.pageNumber-1,l10n:this.l10n,viewport:i,annotationLayer:this.#e,textLayer:this.#n,drawLayer:this.#t});const s={viewport:i,div:n,annotations:null,intent:t};this.annotationEditorLayer.render(s),this.show()}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 Ne=new Map;const r=navigator.userAgent||"",e=navigator.platform||"",t=navigator.maxTouchPoints||1,i=/Android/.test(r),n=/\b(iPad|iPhone|iPod)(?=;)/.test(r)||e==="MacIntel"&&t>1;(function(){(n||i)&&Ne.set("maxCanvasPixels",5242880)})(),(function(){i&&Ne.set("useSystemFonts",!1)})()}const d={BROWSER:1,VIEWER:2,API:4,WORKER:8,EVENT_DISPATCH:16,PREFERENCE:128},Me={BOOLEAN:1,NUMBER:2,OBJECT:4,STRING:8,UNDEFINED:16},H={allowedGlobalEvents:{value:null,kind:d.BROWSER},canvasMaxAreaInBytes:{value:-1,kind:d.BROWSER+d.API},isInAutomation:{value:!1,kind:d.BROWSER},localeProperties:{value:{lang:navigator.language||"en-US"},kind:d.BROWSER},nimbusDataStr:{value:"",kind:d.BROWSER},supportsCaretBrowsingMode:{value:!1,kind:d.BROWSER},supportsDocumentFonts:{value:!0,kind:d.BROWSER},supportsIntegratedFind:{value:!1,kind:d.BROWSER},supportsMouseWheelZoomCtrlKey:{value:!0,kind:d.BROWSER},supportsMouseWheelZoomMetaKey:{value:!0,kind:d.BROWSER},supportsPinchToZoom:{value:!0,kind:d.BROWSER},toolbarDensity:{value:0,kind:d.BROWSER+d.EVENT_DISPATCH},altTextLearnMoreUrl:{value:"",kind:d.VIEWER+d.PREFERENCE},annotationEditorMode:{value:0,kind:d.VIEWER+d.PREFERENCE},annotationMode:{value:2,kind:d.VIEWER+d.PREFERENCE},cursorToolOnLoad:{value:0,kind:d.VIEWER+d.PREFERENCE},debuggerSrc:{value:"./debugger.mjs",kind:d.VIEWER},defaultZoomDelay:{value:400,kind:d.VIEWER+d.PREFERENCE},defaultZoomValue:{value:"",kind:d.VIEWER+d.PREFERENCE},disableHistory:{value:!1,kind:d.VIEWER},disablePageLabels:{value:!1,kind:d.VIEWER+d.PREFERENCE},enableAltText:{value:!1,kind:d.VIEWER+d.PREFERENCE},enableAltTextModelDownload:{value:!0,kind:d.VIEWER+d.PREFERENCE+d.EVENT_DISPATCH},enableGuessAltText:{value:!0,kind:d.VIEWER+d.PREFERENCE+d.EVENT_DISPATCH},enableHighlightFloatingButton:{value:!1,kind:d.VIEWER+d.PREFERENCE},enableNewAltTextWhenAddingImage:{value:!0,kind:d.VIEWER+d.PREFERENCE},enablePermissions:{value:!1,kind:d.VIEWER+d.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:d.VIEWER+d.PREFERENCE},enableScripting:{value:!0,kind:d.VIEWER+d.PREFERENCE},enableUpdatedAddImage:{value:!1,kind:d.VIEWER+d.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:d.VIEWER},externalLinkTarget:{value:0,kind:d.VIEWER+d.PREFERENCE},highlightEditorColors:{value:"yellow=#FFFF98,green=#53FFBC,blue=#80EBFF,pink=#FFCBE6,red=#FF4F5F",kind:d.VIEWER+d.PREFERENCE},historyUpdateUrl:{value:!1,kind:d.VIEWER+d.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:d.VIEWER+d.PREFERENCE},imageResourcesPath:{value:"./images/",kind:d.VIEWER},maxCanvasPixels:{value:2**25,kind:d.VIEWER},forcePageColors:{value:!1,kind:d.VIEWER+d.PREFERENCE}
344,pageColorsBackground:{value:"Canvas",kind:d.VIEWER+d.PREFERENCE},pageColorsForeground:{value:"CanvasText",kind:d.VIEWER+d.PREFERENCE},pdfBugEnabled:{value:!1,kind:d.VIEWER+d.PREFERENCE},printResolution:{value:150,kind:d.VIEWER},sidebarViewOnLoad:{value:-1,kind:d.VIEWER+d.PREFERENCE},scrollModeOnLoad:{value:-1,kind:d.VIEWER+d.PREFERENCE},spreadModeOnLoad:{value:-1,kind:d.VIEWER+d.PREFERENCE},textLayerMode:{value:1,kind:d.VIEWER+d.PREFERENCE},viewOnLoad:{value:0,kind:d.VIEWER+d.PREFERENCE},cMapPacked:{value:!0,kind:d.API},cMapUrl:{value:"../web/cmaps/",kind:d.API},disableAutoFetch:{value:!1,kind:d.API+d.PREFERENCE},disableFontFace:{value:!1,kind:d.API+d.PREFERENCE},disableRange:{value:!1,kind:d.API+d.PREFERENCE},disableStream:{value:!1,kind:d.API+d.PREFERENCE},docBaseUrl:{value:"",kind:d.API},enableHWA:{value:!0,kind:d.API+d.VIEWER+d.PREFERENCE},enableXfa:{value:!0,kind:d.API+d.PREFERENCE},fontExtraProperties:{value:!1,kind:d.API},isEvalSupported:{value:!0,kind:d.API},isOffscreenCanvasSupported:{value:!0,kind:d.API},maxImageSize:{value:-1,kind:d.API},pdfBug:{value:!1,kind:d.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:d.API},useSystemFonts:{value:void 0,kind:d.API,type:Me.BOOLEAN+Me.UNDEFINED},verbosity:{value:1,kind:d.API},workerPort:{value:null,kind:d.WORKER},workerSrc:{value:"../build/pdf.worker.mjs",kind:d.WORKER}};H.defaultUrl={value:"compressed.tracemonkey-pldi-09.pdf",kind:d.VIEWER},H.sandboxBundleSrc={value:"../build/pdf.sandbox.mjs",kind:d.VIEWER},H.viewerCssTheme={value:0,kind:d.VIEWER+d.PREFERENCE},H.enableFakeMLManager={value:!0,kind:d.VIEWER};H.disablePreferences={value:!1,kind:d.VIEWER};var K;const V=class V{static get(e){return Q(this,K).get(e)}static getAll(e=null,t=!1){const i=Object.create(null);for(const n in H){const s=H[n];e&&!(e&s.kind)||(i[n]=t?s.value:Q(this,K).get(n))}return i}static set(e,t){this.setAll({[e]:t})}static setAll(e,t=!1){this._hasInvokedSet||=!0;let i;for(const n in e){const s=H[n],a=e[n];if(!s||!(typeof a==typeof s.value||Me[(typeof a).toUpperCase()]&s.type))continue;const{kind:o}=s;t&&!(o&d.BROWSER||o&d.PREFERENCE)||(this.eventBus&&o&d.EVENT_DISPATCH&&(i||=new Map).set(n,a),Q(this,K).set(n,a))}if(i)for(const[n,s]of i)this.eventBus.dispatch(n.toLowerCase(),{source:this,value:s})}};K=new WeakMap,Oe(V,"eventBus"),je(V,K,new Map),(()=>{for(const e in H)Q(V,K).set(e,H[e].value);for(const[e,t]of Ne)Q(V,K).set(e,t);V._hasInvokedSet=!1,V._checkDisablePreferences=()=>V.get("disablePreferences")?!0:(V._hasInvokedSet&&console.warn('The Preferences may override manually set AppOptions; please use the "disablePreferences"-option to prevent that.'),!1)})();let ke=V;class Nn{#e=null;constructor(e){this.pageIndex=e.pageIndex}async render(e="display"){e!=="display"||this.#e||this._cancelled||(this.#e=new Pi({pageIndex:this.pageIndex}))}cancel(){this._cancelled=!0,this.#e&&(this.#e.destroy(),this.#e=null)}setParent(e){this.#e?.setParent(e)}getDrawLayer(){return this.#e}}const gt={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},Mn=/^H(\d+)$/;class At{#e;#t=null;#s;#i=new Map;#n;#r=null;constructor(e,t){this.#e=e.getStructTree(),this.#n=t}async render(){if(this.#s)return this.#s;const{promise:e,resolve:t,reject:i}=Promise.withResolvers();this.#s=e;try{this.#t=this.#h(await this.#e)}catch(n){i(n)}return this.#e=null,this.#t?.classList.add("structTree"),t(this.#t),e}async getAriaAttributes(e){try{return await this.render(),this.#i.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:i,id:n,lang:s}=e;if(i!==void 0){let a=!1;const o=ie(i);for(const l of e.children)if(l.type==="annotation"){let h=this.#i.get(l.id);h||(h=new Map,this.#i.set(l.id,h)),h.set("aria-label",o),a=!0}a||t.setAttribute("aria-label",o)}n!==void 0&&t.setAttribute("aria-owns",n),s!==void 0&&t.setAttribute("lang",ie(s,!0))}#l(e,t){const{alt:i,bbox:n,children:s}=e,a=s?.[0];if(!this.#n||!i||!n||a?.type!=="content")return!1;const{id:o}=a;if(!o)return!1;t.setAttribute("aria-owns",o);const l=document.createElement("span");(this.#r||=new Map).set(o,l),l.setAttribute("role","img"),l.setAttribute("aria-label",ie(i));const{pageHeight:h,pageX:u,pageY:f}
344=this.#n,p="calc(var(--scale-factor)*",{style:w}=l;return w.width=`${p}${n[2]-n[0]}px)`,w.height=`${p}${n[3]-n[1]}px)`,w.left=`${p}${n[0]-u}px)`,w.top=`${p}${h-n[3]+f}px)`,!0}addElementsToTextLayer(){if(this.#r){for(const[e,t]of this.#r)document.getElementById(e)?.append(t);this.#r.clear(),this.#r=null}}#h(e){if(!e)return null;const t=document.createElement("span");if("role"in e){const{role:i}=e,n=i.match(Mn);if(n?(t.setAttribute("role","heading"),t.setAttribute("aria-level",n[1])):gt[i]&&t.setAttribute("role",gt[i]),i==="Figure"&&this.#l(e,t))return t}if(this.#a(e,t),e.children)if(e.children.length===1&&"id"in e.children[0])this.#a(e.children[0],t);else for(const i of e.children)t.append(this.#h(i));return t}}class se{#e=!1;#t=null;#s=new Map;#i=new Map;setTextMapping(e){this.#t=e}static#n(e,t){const i=e.getBoundingClientRect(),n=t.getBoundingClientRect();if(i.width===0&&i.height===0)return 1;if(n.width===0&&n.height===0)return-1;const s=i.y,a=i.y+i.height,o=i.y+i.height/2,l=n.y,h=n.y+n.height,u=n.y+n.height/2;if(o<=l&&u>=a)return-1;if(u<=s&&o>=h)return 1;const f=i.x+i.width/2,p=n.x+n.width/2;return f-p}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(se.#n),this.#s.size>0){const e=this.#t;for(const[t,i]of this.#s){if(!document.getElementById(t)){this.#s.delete(t);continue}this.#r(t,e[i])}}for(const[e,t]of this.#i)this.addPointerInTextLayer(e,t);this.#i.clear()}disable(){this.#e&&(this.#i.clear(),this.#t=null,this.#e=!1)}removePointerInTextLayer(e){if(!this.#e){this.#i.delete(e);return}const t=this.#t;if(!t||t.length===0)return;const{id:i}=e,n=this.#s.get(i);if(n===void 0)return;const s=t[n];this.#s.delete(i);let a=s.getAttribute("aria-owns");a?.includes(i)&&(a=a.split(" ").filter(o=>o!==i).join(" "),a?s.setAttribute("aria-owns",a):(s.removeAttribute("aria-owns"),s.setAttribute("role","presentation")))}#r(e,t){const i=t.getAttribute("aria-owns");i?.includes(e)||t.setAttribute("aria-owns",i?`${i} ${e}`:e),t.removeAttribute("role")}addPointerInTextLayer(e,t){const{id:i}=e;if(!i)return null;if(!this.#e)return this.#i.set(e,t),null;t&&this.removePointerInTextLayer(e);const n=this.#t;if(!n||n.length===0)return null;const s=re(n,h=>se.#n(e,h)<0),a=Math.max(0,s-1),o=n[a];this.#r(i,o),this.#s.set(i,a);const l=o.parentNode;return l?.classList.contains("markedContent")?l.id:null}moveElementInDOM(e,t,i,n){const s=this.addPointerInTextLayer(i,n);if(!e.hasChildNodes())return e.append(t),s;const a=Array.from(e.childNodes).filter(h=>h!==t);if(a.length===0)return s;const o=i||t,l=re(a,h=>se.#n(o,h)<0);return l===0?a[0].before(t):a[l-1].after(t),s}}class kn{#e=null;constructor({findController:e,eventBus:t,pageIndex:i}){this.findController=e,this.matches=[],this.eventBus=t,this.pageIdx=i,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||e.pageIndex===-1)&&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:i}=this;let n=0,s=0;const a=i.length-1,o=[];for(let l=0,h=e.length;l<h;l++){let u=e[l];for(;n!==a&&u>=s+i[n].length;)s+=i[n].length,n++;n===i.length&&console.error("Could not find a matching mapping");const f={begin:{divIdx:n,offset:u-s}};for(u+=t[l];n!==a&&u>s+i[n].length;)s+=i[n].length,n++;f.end={divIdx:n,offset:u-s},o.push(f)}return o}_renderMatches(e){if(e.length===0)return;const{findController:t,pageIdx:i}=this,{textContentItemsStr:n,textDivs:s}=this,a=i===t.selected.pageIdx,o=t.selected.matchIdx,l=t.state.highlightAll;let h=null;const u={offset:void 0};function f(P,x){const E=P.divIdx;return s[E].textContent="",p(E,0,P.offset,x)}function p(P,x,E,b){let S=s[P];if(S.nodeType===Node.TEXT_NODE){const I=document.createElement("span");S.before(I),I.append(S),s[P]=I,S=I}const T=n[P].substring(x,E),R=document.createTextNode(T);if(b){const I=document.createElement("span");if(I.className=`${b}
344 appended`,I.append(R),S.append(I),b.includes("selected")){const{left:c}=I.getClientRects()[0],g=S.getBoundingClientRect().left;return c-g}return 0}return S.append(R),0}let w=o,v=w+1;if(l)w=0,v=e.length;else if(!a)return;let _=-1,y=-1;for(let P=w;P<v;P++){const x=e[P],E=x.begin;if(E.divIdx===_&&E.offset===y)continue;_=E.divIdx,y=E.offset;const b=x.end,S=a&&P===o,T=S?" selected":"";let R=0;if(!h||E.divIdx!==h.divIdx?(h!==null&&p(h.divIdx,h.offset,u.offset),f(E)):p(h.divIdx,h.offset,E.offset),E.divIdx===b.divIdx)R=p(E.divIdx,E.offset,b.offset,"highlight"+T);else{R=p(E.divIdx,E.offset,u.offset,"highlight begin"+T);for(let I=E.divIdx+1,c=b.divIdx;I<c;I++)s[I].className="highlight middle"+T;f(b,"highlight end"+T)}h=b,S&&t.scrollMatchIntoView({element:s[E.divIdx],selectedLeft:R,pageIndex:i,matchIndex:o})}h&&p(h.divIdx,h.offset,u.offset)}_updateMatches(e=!1){if(!this.enabled&&!e)return;const{findController:t,matches:i,pageIdx:n}=this,{textContentItemsStr:s,textDivs:a}=this;let o=-1;for(const u of i){const f=Math.max(o,u.begin.divIdx);for(let p=f,w=u.end.divIdx;p<=w;p++){const v=a[p];v.textContent=s[p],v.className=""}o=u.end.divIdx+1}if(!t?.highlightMatches||e)return;const l=t.pageMatches[n]||null,h=t.pageMatchesLength[n]||null;this.matches=this._convertMatches(l,h),this._renderMatches(this.matches)}}class Y{#e=!1;#t=null;#s=!1;#i=null;static#n=new Map;static#r=null;constructor({pdfPage:e,highlighter:t=null,accessibilityManager:i=null,enablePermissions:n=!1,onAppend:s=null}){this.pdfPage=e,this.highlighter=t,this.accessibilityManager=i,this.#e=n===!0,this.#t=s,this.div=document.createElement("div"),this.div.tabIndex=0,this.div.className="textLayer"}async render(e,t=null){if(this.#s&&this.#i){this.#i.update({viewport:e,onBefore:this.hide.bind(this)}),this.show();return}this.cancel(),this.#i=new Ti({textContentSource:this.pdfPage.streamTextContent(t||{includeMarkedContent:!0,disableNormalization:!0}),container:this.div,viewport:e});const{textDivs:i,textContentItemsStr:n}=this.#i;this.highlighter?.setTextMapping(i,n),this.accessibilityManager?.setTextMapping(i),await this.#i.render(),this.#s=!0;const s=document.createElement("div");s.className="endOfContent",this.div.append(s),this.#a(s),this.#t?.(this.div),this.highlighter?.enable(),this.accessibilityManager?.enable()}hide(){!this.div.hidden&&this.#s&&(this.highlighter?.disable(),this.div.hidden=!0)}show(){this.div.hidden&&this.#s&&(this.div.hidden=!1,this.highlighter?.enable())}cancel(){this.#i?.cancel(),this.#i=null,this.highlighter?.disable(),this.accessibilityManager?.disable(),Y.#l(this.div)}#a(e){const{div:t}=this;t.addEventListener("mousedown",()=>{t.classList.add("selecting")}),t.addEventListener("copy",i=>{if(!this.#e){const n=document.getSelection();i.clipboardData.setData("text/plain",ie(Ai(n.toString())))}Te(i)}),Y.#n.set(t,e),Y.#h()}static#l(e){this.#n.delete(e),this.#n.size===0&&(this.#r?.abort(),this.#r=null)}static#h(){if(this.#r)return;this.#r=new AbortController;const{signal:e}=this.#r,t=(a,o)=>{o.append(a),a.style.width="",a.style.height="",o.classList.remove("selecting")};let i=!1;document.addEventListener("pointerdown",()=>{i=!0},{signal:e}),document.addEventListener("pointerup",()=>{i=!1,this.#n.forEach(t)},{signal:e}),window.addEventListener("blur",()=>{i=!1,this.#n.forEach(t)},{signal:e}),document.addEventListener("keyup",()=>{i||this.#n.forEach(t)},{signal:e});var n,s;document.addEventListener("selectionchange",()=>{const a=document.getSelection();if(a.rangeCount===0){this.#n.forEach(t);return}const o=new Set;for(let w=0;w<a.rangeCount;w++){const v=a.getRangeAt(w);for(const _ of this.#n.keys())!o.has(_)&&v.intersectsNode(_)&&o.add(_)}for(const[w,v]of this.#n)o.has(w)?w.classList.add("selecting"):t(v,w);if(n??=getComputedStyle(this.#n.values().next().value).getPropertyValue("-moz-user-select")==="none",n)return;const l=a.getRangeAt(0),h=s&&(l.compareBoundaryPoints(Range.END_TO_END,s)===0||l.compareBoundaryPoints(Range.START_TO_END,s)===0);let u=h?l.startContainer:l.endContainer;u.nodeType===Node.TEXT_NODE&&(u=u.parentNode);const f=u.parentElement?.closest(".textLayer"),p=this.#n.get(f);p&&(p.style.width=f.style.width,p.style.height=f.style.height,u.parentElement.insertBefore(p,h?u:u.nextSibling)),s=l.cloneRange()},{signal:e})}}class Lt{constructor({pdfPage:e,annotationStorage:t=null,linkService:i,xfaHtml:n=null}){this.pdfPage=e,this.annotationStorage=t,this.linkService=i,this.xfaHtml=n,this.div=null,this._cancelled=!1}async render(e,t="display"){if(t==="print"){const s={viewport:e.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:t};return this.div=document.createElement("div"),s.div=this.div,xe.render(s)}const i=await this.pdfPage.getXfa();if(this._cancelled||!i)return{textDivs:[]};const n={viewport:e.clone({dontFlip:!0}),div:this.div,xfaHtml:i,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:t};return this.div?xe.update(n):(this.div=document.createElement("div"),n.div=this.div,xe.render(n))}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}const Dn={annotationEditorUIManager:null,annotationStorage:null,downloadManager:null,enableScripting:!1,fieldObjectsPromise:null,findController:null,hasJSActionsProm
344ise:null,get linkService(){return new De}},Fn=new Map([["canvasWrapper",0],["textLayer",1],["annotationLayer",2],["annotationEditorLayer",3],["xfaLayer",3]]);class It{#e=$.ENABLE_FORMS;#t=null;#s=!1;#i=!1;#n=!1;#r=null;#a=null;#l=null;#h=null;#o=1;#d=1;#f=null;#p=N.INITIAL;#u=B.ENABLE;#g={directDrawing:!0,initialOptionalContent:!0,regularAnnotations:!0};#c=[null,null,null,null];constructor(e){const t=e.container,i=e.defaultViewport;this.id=e.id,this.renderingId="page"+this.id,this.#r=e.layerProperties||Dn,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=e.scale||Et,this.viewport=i,this.pdfPageRotate=i.rotation,this._optionalContentConfigPromise=e.optionalContentConfigPromise||null,this.#u=e.textLayerMode??B.ENABLE,this.#e=e.annotationMode??$.ENABLE_FORMS,this.imageResourcesPath=e.imageResourcesPath||"",this.maxCanvasPixels=e.maxCanvasPixels??ke.get("maxCanvasPixels"),this.pageColors=e.pageColors||null,this.#s=e.enableHWA||!1,this.eventBus=e.eventBus,this.renderingQueue=e.renderingQueue,this.l10n=e.l10n,this.l10n||=new W,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 n=document.createElement("div");if(n.className="page",n.setAttribute("data-page-number",this.id),n.setAttribute("role","region"),n.setAttribute("data-l10n-id","pdfjs-page-landmark"),n.setAttribute("data-l10n-args",JSON.stringify({page:this.id})),this.div=n,this.#E(),t?.append(n),this._isStandalone){t?.style.setProperty("--scale-factor",this.scale*U.PDF_TO_CSS_UNITS),this.pageColors?.background&&t?.style.setProperty("--page-bg-color",this.pageColors.background);const{optionalContentConfigPromise:s}=e;s&&s.then(a=>{s===this._optionalContentConfigPromise&&(this.#g.initialOptionalContent=a.hasInitialVisibility)}),e.l10n||this.l10n.translate(this.div)}}#m(e,t){const i=Fn.get(t),n=this.#c[i];if(this.#c[i]=e,n){n.replaceWith(e);return}for(let s=i-1;s>=0;s--){const a=this.#c[s];if(a){a.after(e);return}}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 N.PAUSED:this.div.classList.remove("loading");break;case N.RUNNING:this.div.classList.add("loadingIcon"),this.#a=setTimeout(()=>{this.div.classList.add("loading"),this.#a=null},0);break;case N.INITIAL:case N.FINISHED:this.div.classList.remove("loadingIcon","loading");break}}#E(){const{viewport:e}=this;if(this.pdfPage){if(this.#h===e.rotation)return;this.#h=e.rotation}Ii(this.div,e,!0,!1)}setPdfPage(e){this._isStandalone&&(this.pageColors?.foreground==="CanvasText"||this.pageColors?.background==="Canvas")&&(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;const t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:this.scale*U.PDF_TO_CSS_UNITS,rotation:t}),this.#E(),this.reset()}destroy(){this.reset(),this.pdfPage?.cleanup()}hasEditableAnnotations(){return!!this.annotationLayer?.hasEditableAnnotations()}get _textHighlighter(){return fe(this,"_textHighlighter",new kn({pageIndex:this.id-1,eventBus:this.eventBus,findController:this.#r.findController}))}#b(e,t){this.eventBus.dispatch(e,{source:this,pageNumber:this.id,error:t})}async#_(){let e=null;try{await this.annotationLayer.render(this.viewport,{structTreeLayer:this.structTreeLayer},"display")}catch(t){console.error("#renderAnnotationLayer:",t),e=t}finally{this.#b("annotationlayerrendered",e)}}async#y(){let e=null;try{await this.annotationEditorLayer.render(this.viewport,"display")}catch(t){console.error("#renderAnnotationEditorLayer:",t),e=t}finally{this.#b("annotationeditorlayerrendered",e)}}async#w(){try{await this.drawLayer.render("display")}catch(e){console.error("#renderDrawLayer:",e)}}async#P(){let e=null;try{const t=await this.xfaLayer.render(this.viewport,"display");t?.textDivs&&this._textHighlighter&&this.#S(t.textDivs)}catch(t){console.error("#renderXfaLayer:",t),e=t}finally{this.xfaLayer?.div&&(this.l10n.pause(),this.#m(this.xfaLayer.div,"xfaLayer"),this.l10n.resume()),this.#b("xfalayerrendered",e)}}async#v(){if(!this.textLayer)return;let e=null;try{await this.textLayer.render(this.viewport)}catch(t){if(t instanceof Ei)return;console.error("#renderTextLayer:",t),e=t}this.#b("textlayerrendered",e),this.#A()}async#A(){if(!this.textLayer)return;const e=await this.structTreeLayer?.render();e&&(this.l10n.pause(),this.structTreeLayer?.addElementsToTextLayer(),this.canvas&&e.parentNode!==this.canvas&&this.canvas.append(e),this.l10n.resume()),this.structTreeLayer?.show()}async#S(e){const t=await this.pdfPage.getTextContent(),i=[];for(const n of t.items)i.push(n.str);this._textHighlighter.setTextMapping(e,i),this._textHighlighter.enable()}#L(){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:i=!1,keepTextLayer:n=!1,keepCanvasWrapper:s=!1}={}){this.cancelRendering({keepAnnotationLayer:e,keepAnnotationEditorLayer:t,keepXfaLayer:i,keepTextLayer:n}),this.renderingState=N.INITIAL;const a=this.div,o=a.childNodes,l=e&&this.annotationLayer?.div||null,h=t&&this.annotationEditorLayer?.div||null,u=i&&this.xfaLayer?.div||null,f=n&&this.textLayer?.div||null,p=s&&this.#t||null;for(let w=o.length-1;w>=0;w--){const v=o[w];switch(v){case l:case h:case u:case f:case p:continue}v.remove();const _=this.#c.indexOf(v);_>=0&&(this.#c[_]=null)}a.removeAttribute("data-loaded"),l&&this.annotationLayer.hide(),h&&this.annotationEditorLayer.hide(),u&&this.xfaLayer.hide(),f&&this.textLayer.hide(),this.structTreeLayer?.hide(),!s&&this.#t&&(this.#t=null,this.#L())}toggleEditingMode(e){this.hasEditableAnnotations()&&(this.#n=e,this.reset({keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,keepCanvasWrapper:!0}))}update({scale:e=0,rotation:t=null,optionalContentConfigPromise:i=null,drawingDelay:n=-1}){this.scale=e||this.scale,typeof t=="number"&&(this.rotation=t),i instanceof Promise&&(this._optionalContentConfigPromise=i,i.then(a=>{i===this._optionalContentConfigPromise&&(this.#g.initialOptionalContent=a.hasInitialVisibility)})),this.#g.directDrawing=!0;const s=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*U.PDF_TO_CSS_UNITS,rotation:s}),this.#E(),this._isStandalone&&this._container?.style.setProperty("--scale-factor",this.viewport.scale),this.canvas){let a=!1;if(this.#i){if(this.maxCanvasPixels===0)a=!0;else if(this.maxCanvasPixels>0){const{width:l,height:h}=this.viewport,{sx:u,sy:f}=this.outputScale;a=(Math.floor(l)*u|0)*(Math.floor(h)*f|0)>this.maxCanvasPixels}}const o=n>=0&&n<1e3;if(o||a){if(o&&!a&&this.renderingState!==N.FINISHED&&(this.cancelRendering({keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,cancelExtraDelay:n}),this.renderingState=N.FINISHED,this.#g.directDrawing=!1),this.cssTransform({redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0,redrawTextLayer:!o,hideTextLayer:o}),o)return;this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this.#f});return}}this.cssTransform({}),this.reset({keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,keepCanvasWrapper:!0})}cancelRendering({keepAnnotationLayer:e=!1,keepAnnotationEditorLayer:t=!1,keepXfaLayer:i=!1,keepTextLayer:n=!1,cancelExtraDelay:s=0}={}){this.renderTask&&(this.renderTask.cancel(s),this.renderTask=null),this.resume=null,this.textLayer&&(!n||!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&&(!i||!this.xfaLayer.div)&&(this.xfaLayer.cancel(),this.xfaLayer=null,this._textHighlighter?.disable())}cssTransform({redrawAnnotationLayer:e=!1,redrawAnnotationEditorLayer:t=!1,redrawXfaLayer:i=!1,redrawTextLayer:n=!1,hideTextLayer:s=!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(l===90||l===270){const{width:h,height:u}=this.viewport,f=u/h,p=h/u;a.style.transform=`rotate(${l}deg) scale(${f},${p})`}else a.style.transform=l===0?"":`rotate(${l}deg)`}e&&this.annotationLayer&&this.#_(),t&&this.annotationEditorLayer&&(this.drawLayer&&this.#w(),this.#y()),i&&this.xfaLayer&&this.#P(),this.textLayer&&(s?(this.textLayer.hide(),this.structTreeLayer?.hide()):n&&this.#v())}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(e,t){return this.viewport.convertToPdfPoint(e,t)}async#I(e,t=null){if(e===this.renderTask&&(this.renderTask=null),t instanceof Ie){this.#f=null;return}if(this.#f=t,this.renderingState=N.FINISHED,this.#g.regularAnnotations=!e.separateAnnots,this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!1,timestamp:performance.now(),error:this.#f}),t)throw t}async draw(){this.renderingState!==N.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:e,l10n:t,pageColors:i,pdfPage:n,viewport:s}=this;if(!n)throw this.renderingState=N.FINISHED,new Error("pdfPage is not loaded");this.renderingState=N.RUNNING;let a=this.#t;if(a||(a=this.#t=document.createElement("div"),a.classList.add("canvasWrapper"),this.#m(a,"canvasWrapper")),!this.textLayer&&this.#u!==B.DISABLE&&!n.isPureXfa&&(this._accessibilityManager||=new se,this.textLayer=new Y({pdfPage:n,highlighter:this._textHighlighter,accessibilityManager:this._accessibilityManager,enablePermissions:this.#u===B.ENABLE_PERMISSIONS,onAppend:m=>{this.l10n.pause(),this.#m(m,"textLayer"),this.l10n.resume()}})),!this.annotationLayer&&this.#e!==$.DISABLE){const{annotationStorage:m,annotationEditorUIManager:A,downloadManager:F,enableScripting:D,fieldObjectsPromise:we,hasJSActionsProm
344ise:Ct,linkService:Rt}=this.#r;this._annotationCanvasMap||=new Map,this.annotationLayer=new yt({pdfPage:n,annotationStorage:m,imageResourcesPath:this.imageResourcesPath,renderForms:this.#e===$.ENABLE_FORMS,linkService:Rt,downloadManager:F,enableScripting:D,hasJSActionsPromise:Ct,fieldObjectsPromise:we,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager,annotationEditorUIManager:A,onAppend:Nt=>{this.#m(Nt,"annotationLayer")}})}const o=m=>{if(v?.(!1),this.renderingQueue&&!this.renderingQueue.isHighestPriority(this)){this.renderingState=N.PAUSED,this.resume=()=>{this.renderingState=N.RUNNING,m()};return}m()},{width:l,height:h}=s,u=document.createElement("canvas");u.setAttribute("role","presentation");const f=!!(i?.background&&i?.foreground),p=this.canvas,w=!p&&!f;this.canvas=u,this.#l=s;let v=m=>{if(w){a.prepend(u),v=null;return}m&&(p?(p.replaceWith(u),p.width=p.height=0):a.prepend(u),v=null)};const _=u.getContext("2d",{alpha:!1,willReadFrequently:!this.#s}),y=this.outputScale=new Li;if(this.maxCanvasPixels===0){const m=1/this.scale;y.sx*=m,y.sy*=m,this.#i=!0}else if(this.maxCanvasPixels>0){const m=l*h,A=Math.sqrt(this.maxCanvasPixels/m);y.sx>A||y.sy>A?(y.sx=A,y.sy=A,this.#i=!0):this.#i=!1}const P=$e(y.sx),x=$e(y.sy),E=u.width=oe(le(l*y.sx),P[0]),b=u.height=oe(le(h*y.sy),x[0]),S=oe(le(l),P[1]),T=oe(le(h),x[1]);y.sx=E/S,y.sy=b/T,this.#o!==P[1]&&(e.style.setProperty("--scale-round-x",`${P[1]}px`),this.#o=P[1]),this.#d!==x[1]&&(e.style.setProperty("--scale-round-y",`${x[1]}px`),this.#d=x[1]);const R=y.scaled?[y.sx,0,0,y.sy,0,0]:null,I={canvasContext:_,transform:R,viewport:s,annotationMode:this.#e,optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:i,isEditing:this.#n},c=this.renderTask=n.render(I);c.onContinue=o;const g=c.promise.then(async()=>{v?.(!0),await this.#I(c),this.structTreeLayer||=new At(n,s.rawDims),this.#v(),this.annotationLayer&&await this.#_();const{annotationEditorUIManager:m}=this.#r;m&&(this.drawLayer||=new Nn({pageIndex:this.id}),await this.#w(),this.drawLayer.setParent(a),this.annotationEditorLayer||=new Rn({uiManager:m,pdfPage:n,l10n:t,structTreeLayer:this.structTreeLayer,accessibilityManager:this._accessibilityManager,annotationLayer:this.annotationLayer?.annotationLayer,textLayer:this.textLayer,drawLayer:this.drawLayer.getDrawLayer(),onAppend:A=>{this.#m(A,"annotationEditorLayer")}}),this.#y())},m=>(m instanceof Ie?(p?.remove(),this.#L()):v?.(!0),this.#I(c,m)));if(n.isPureXfa){if(!this.xfaLayer){const{annotationStorage:m,linkService:A}=this.#r;this.xfaLayer=new Lt({pdfPage:n,annotationStorage:m,linkService:A})}this.#P()}return e.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),g}setPageLabel(e){this.pageLabel=typeof e=="string"?e:null,this.div.setAttribute("data-l10n-args",JSON.stringify({page:this.pageLabel??this.id})),this.pageLabel!==null?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}get thumbnailCanvas(){const{directDrawing:e,initialOptionalContent:t,regularAnnotations:i}=this.#g;return e&&t&&i?this.canvas:null}}async function On(r){const t="".split("#",1)[0];let{info:i,metadata:n,contentDispositionFilename:s,contentLength:a}=await r.getMetadata();if(!a){const{length:o}=await r.getDownloadInfo();a=o}return{...i,baseURL:t,filesize:a,filename:s||xi(""),metadata:n?.getRaw(),authors:n?.get("dc:creator"),numPages:r.numPages,URL:""}}class jn{constructor(e){this._ready=new Promise((t,i)=>{import(e).then(s=>{t(s.QuickJSSandbox())}).catch(i)})}async createSandbox(e){(await this._ready).create(e)}async dispatchEventInSandbox(e){const t=await this._ready;setTimeout(()=>t.dispatchEvent(e),0)}async destroySandbox(){(await this._ready).nukeSandbox()}}class Vn{#e=null;#t=null;#s=null;#i=null;#n=null;#r=null;#a=null;#l=null;#h=!1;#o=null;#d=null;constructor({eventBus:e,externalServices:t=null,docProperties:i=null}){this.#n=e,this.#r=t,this.#s=i}setViewer(e){this.#l=e}async setDocument(e){if(this.#a&&await this.#c(),this.#a=e,!e)return;const[t,i,n]=await Promise.all([e.getFieldObjects(),e.getCalculationOrderIds(),e.getJSActions()]);if(!t&&!n){await this.#c();return}if(e!==this.#a)return;try{this.#o=this.#g()}catch(o){console.error("setDocument:",o),await this.#c();return}const s=this.#n;this.#i=new AbortController;const{signal:a}=this.#i;s._on("updatefromsandbox",o=>{o?.source===window&&this.#f(o.detail)},{signal:a}),s._on("dispatcheventinsandbox",o=>{this.#o?.dispatchEventInSandbox(o.detail)},{signal:a}),s._on("pagechanging",({pageNumber:o,previous:l})=>{o!==l&&(this.#u(l),this.#p(o))},{signal:a}),s._on("pagerendered",({pageNumber:o})=>{this._pageOpenPending.has(o)&&o===this.#l.currentPageNumber&&this.#p(o)},{signal:a}),s._on("pagesdestroy",async()=>{await this.#u(this.#l.currentPageNumber),await this.#o?.dispatchEventInSandbox({id:"doc",name:"WillClose"}),this.#e?.resolve()},{signal:a});try{const o=await this.#s(e);if(e!==this.#a)return;await this.#o.createSandbox({objects:t,calculationOrder:i,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:{...o,actions:n}}),s.dispatch("sandboxcreated",{source:this})}catch(o){console.error("setDocument:",o),await this.#c();return}await this.#o?.dispatchEventInSandbox({id:"doc",name:"Open"}),await this.#p(this.#l.currentPageNumber,!0),Promise.resolve().then(()=>{e===this.#a&&(this.#h=!0)})}async dispatchWillSave(){return this.#o?.dispatchEventInSandbox({id:"doc",name:"WillSave"})}async dispatchDidSave(){return this.#o?.dispatchEventInSandbox({id:"doc",name:"DidSave"})}async dispatchWillPrint(){if(this.#o){await this.#d?.promise,this.#d=Promise.withResolvers();try{await this.#o.dispatchEventInSandbox({id:"doc",name:"WillPrint"})}catch(e){throw this.#d.resolve(),this.#d=null,e}await this.#d.promise}}async dispatchDidPrint(){return this.#o?.dispatchEventInSandbox({id:"doc",name:"DidPrint"})}
344get destroyPromise(){return this.#t?.promise||null}get ready(){return this.#h}get _pageOpenPending(){return fe(this,"_pageOpenPending",new Set)}get _visitedPages(){return fe(this,"_visitedPages",new Map)}async#f(e){const t=this.#l,i=t.isInPresentationMode||t.isChangingPresentationMode,{id:n,siblings:s,command:a,value:o}=e;if(!n){switch(a){case"clear":console.clear();break;case"error":console.error(o);break;case"layout":if(!i){const h=Xt(o);t.spreadMode=h.spreadMode}break;case"page-num":t.currentPageNumber=o+1;break;case"print":await t.pagesPromise,this.#n.dispatch("print",{source:this});break;case"println":console.log(o);break;case"zoom":i||(t.currentScaleValue=o);break;case"SaveAs":this.#n.dispatch("download",{source:this});break;case"FirstPage":t.currentPageNumber=1;break;case"LastPage":t.currentPageNumber=t.pagesCount;break;case"NextPage":t.nextPage();break;case"PrevPage":t.previousPage();break;case"ZoomViewIn":i||t.increaseScale();break;case"ZoomViewOut":i||t.decreaseScale();break;case"WillPrintFinished":this.#d?.resolve(),this.#d=null;break}return}if(i&&e.focus)return;delete e.id,delete e.siblings;const l=s?[n,...s]:[n];for(const h of l){const u=document.querySelector(`[data-element-id="${h}"]`);u?u.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:e})):this.#a?.annotationStorage.setValue(h,e)}}async#p(e,t=!1){const i=this.#a,n=this._visitedPages;if(t&&(this.#e=Promise.withResolvers()),!this.#e)return;const s=this.#l.getPageView(e-1);if(s?.renderingState!==N.FINISHED){this._pageOpenPending.add(e);return}this._pageOpenPending.delete(e);const a=(async()=>{const o=await(n.has(e)?null:s.pdfPage?.getJSActions());i===this.#a&&await this.#o?.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:e,actions:o})})();n.set(e,a)}async#u(e){const t=this.#a,i=this._visitedPages;if(!this.#e||this._pageOpenPending.has(e))return;const n=i.get(e);n&&(i.set(e,null),await n,t===this.#a&&await this.#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.#r.createScripting()}async#c(){if(!this.#o){this.#a=null,this.#t?.resolve();return}this.#e&&(await Promise.race([this.#e.promise,new Promise(e=>{setTimeout(e,1e3)})]).catch(()=>{}),this.#e=null),this.#a=null;try{await this.#o.destroySandbox()}catch{}this.#d?.reject(new Error("Scripting destroyed.")),this.#d=null,this.#i?.abort(),this.#i=null,this._pageOpenPending.clear(),this._visitedPages.clear(),this.#o=null,this.#h=!1,this.#t?.resolve()}}class Bn extends Vn{constructor(e){e.externalServices||window.addEventListener("updatefromsandbox",t=>{e.eventBus.dispatch("updatefromsandbox",{source:window,detail:t.detail})}),e.externalServices||={createScripting:()=>new jn(e.sandboxBundleSrc)},e.docProperties||=t=>On(t),super(e)}}const Hn=3e4;class Un{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),Hn)))}getHighestPriority(e,t,i,n=!1){const s=e.views,a=s.length;if(a===0)return null;for(let f=0;f<a;f++){const p=s[f].view;if(!this.isViewFinished(p))return p}const o=e.first.id,l=e.last.id;if(l-o+1>a){const f=e.ids;for(let p=1,w=l-o;p<w;p++){const v=i?o+p:l-p;if(f.has(v))continue;const _=t[v-1];if(!this.isViewFinished(_))return _}}let h=i?l:o-2,u=t[h];return u&&!this.isViewFinished(u)||n&&(h+=i?1:-1,u=t[h],u&&!this.isViewFinished(u))?u:null}isViewFinished(e){return e.renderingState===N.FINISHED}renderView(e){switch(e.renderingState){case N.FINISHED:return!1;case N.PAUSED:this.highestPriorityPage=e.renderingId,e.resume();break;case N.RUNNING:this.highestPriorityPage=e.renderingId;break;case N.INITIAL:this.highestPriorityPage=e.renderingId,e.draw().finally(()=>{this.renderHighestPriority()}).catch(t=>{t instanceof Ie||console.error("renderView:",t)});break}return!0}}const mt=10,ce={FORCE_SCROLL_MODE_PAGE:1e4,FORCE_LAZY_PAGE_INIT:5e3,PAUSE_EAGER_PAGE_INIT:250};function bt(r){return Object.values(O).includes(r)&&r!==O.DISABLE}class $n{#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.#s()}resize(e,t=null){this.#t=e;const i=this.#e;if(t){const n=i.size;let s=1;for(const a of i)if(t.has(a.id)&&(i.delete(a),i.add(a)),++s>n)break}for(;i.size>this.#t;)this.#s()}has(e){return this.#e.has(e)}[Symbol.iterator](){return this.#e.keys()}#s(){const e=this.#e.keys().next().value;e?.destroy(),this.#e.delete(e)}}class Tt{#e=null;#t=null;#s=null;#i=O.NONE;#n=null;#r=$.ENABLE_FORMS;#a=null;#l=null;#h=!1;#o=!1;#d=!1;#f=!1;#p=!1;#u=null;#g=null;#c=null;#m=null;#E=!1;#b=null;#_=!1;#y=0;#w=new ResizeObserver(this.#H.bind(this));#P=null;#v=null;#A=!0;#S=B.ENABLE;constructor(e){const t="4.10.38";if(Ye!==t)throw new Error(`The API version "${Ye}" does not match the Viewer version "${t}".`);if(this.container=e.container,this.viewer=e.viewer||e.container.firstElementChild,this.container?.tagName!=="DIV"||this.viewer?.tagName!=="DIV")throw new Error("Invalid `container` and/or `viewer` option.");
vendor: 4,483 bytes, line 344
344if(this.container.offsetParent&&getComputedStyle(this.container).position!=="absolute")throw new Error("The `container` must be absolutely positioned.");this.#w.observe(this.container),this.eventBus=e.eventBus,this.linkService=e.linkService||new De,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=n=>this._getVisiblePages().ids.has(n)),this._scriptingManager=e.scriptingManager||null,this.#S=e.textLayerMode??B.ENABLE,this.#r=e.annotationMode??$.ENABLE_FORMS,this.#i=e.annotationEditorMode??O.NONE,this.#s=e.annotationEditorHighlightColors||null,this.#o=e.enableHighlightFloatingButton===!0,this.#f=e.enableUpdatedAddImage===!0,this.#p=e.enableNewAltTextWhenAddingImage===!0,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 W,this.#d=e.enablePermissions||!1,this.pageColors=e.pageColors||null,this.#g=e.mlManager||null,this.#h=e.enableHWA||!1,this.#A=e.supportsPinchToZoom!==!1,this.defaultRenderingQueue=!e.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new Un,this.renderingQueue.setViewer(this)):this.renderingQueue=e.renderingQueue;const{abortSignal:i}=e;i?.addEventListener("abort",()=>{this.#w.disconnect(),this.#w=null},{once:!0}),this.scroll=Bt(this.container,this._scrollUpdate.bind(this),i),this.presentationModeState=J.UNKNOWN,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.#k(),this.eventBus._on("thumbnailrendered",({pageNumber:n,pdfPage:s})=>{const a=this._pages[n-1];this.#e.has(a)||s?.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.#r===$.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 i=this._currentPageNumber;return this._currentPageNumber=e,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:e,pageLabel:this._pageLabels?.[e-1]??null,previous:i}),t&&this.#M(),!0}get currentPageLabel(){return this._pageLabels?.[this._currentPageNumber-1]??null}set currentPageLabel(e){if(!this.pdfDocument)return;let t=e|0;if(this._pageLabels){const i=this._pageLabels.indexOf(e);i>=0&&(t=i+1)}this._setCurrentPageNumber(t,!0)||console.error(`currentPageLabel: "${e}" is not a valid page.`)}get currentScale(){return this._currentScale!==_e?this._currentScale:Et}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(!_t(e))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||(e%=360,e<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 fe(this,"_layerProperties",{get annotationEditorUIManager(){return e.#n},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}
344,get hasJSActionsPromise(){return e.pdfDocument?.hasJSActions()},get linkService(){return e.linkService}})}#L(e){const t={annotationEditorMode:this.#i,annotationMode:this.#r,textLayerMode:this.#S};return e&&(!e.includes(de.COPY)&&this.#S===B.ENABLE&&(t.textLayerMode=B.ENABLE_PERMISSIONS),e.includes(de.MODIFY_CONTENTS)||(t.annotationEditorMode=O.DISABLE),!e.includes(de.MODIFY_ANNOTATIONS)&&!e.includes(de.FILL_INTERACTIVE_FORMS)&&this.#r===$.ENABLE_FORMS&&(t.annotationMode=$.ENABLE)),t}async#I(e){if(document.visibilityState==="hidden"||!this.container.offsetParent||this._getVisiblePages().views.length===0)return;const t=Promise.withResolvers(),i=new AbortController;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&t.resolve()},{signal:typeof AbortSignal.any=="function"?AbortSignal.any([e,i.signal]):e}),await Promise.race([this._onePageRenderedCapability.promise,t.promise]),i.abort()}async getAllText(){const e=[],t=[];for(let i=1,n=this.pdfDocument.numPages;i<=n;++i){if(this.#_)return null;t.length=0;const s=await this.pdfDocument.getPage(i),{items:a}=await s.getTextContent();for(const o of a)o.str&&t.push(o.str),o.hasEOL&&t.push(` 345`);e.push(ie(t.join("")))}return e.join(` 346`)}#D(e,t){const i=document.getSelection(),{focusNode:n,anchorNode:s}=i;if(s&&n&&i.containsNode(this.#b)){if(this.#E||e===B.ENABLE_PERMISSIONS){Te(t);return}this.#E=!0;const{classList:a}=this.viewer;a.add("copyAll");const o=new AbortController;window.addEventListener("keydown",l=>this.#_=l.key==="Escape",{signal:o.signal}),this.getAllText().then(async l=>{l!==null&&await navigator.clipboard.writeText(l)}).catch(l=>{console.warn(`Something goes wrong when extracting the text: ${l.message}`)}).finally(()=>{this.#E=!1,this.#_=!1,o.abort(),a.remove("copyAll")}),Te(t)}}setDocument(e){if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController?.setDocument(null),this._scriptingManager?.setDocument(null),this.#n?.destroy(),this.#n=null),this.pdfDocument=e,!e)return;const t=e.numPages,i=e.getPage(1),n=e.getOptionalContentConfig({intent:"display"}),s=this.#d?e.getPermissions():Promise.resolve(),{eventBus:a,pageColors:o,viewer:l}=this;this.#u=new AbortController;const{signal:h}=this.#u;if(t>ce.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const p=this._scrollMode=L.PAGE;a.dispatch("scrollmodechanged",{source:this,mode:p})}this._pagesCapability.promise.then(()=>{a.dispatch("pagesloaded",{source:this,pagesCount:t})},()=>{});const u=p=>{const w=this._pages[p.pageNumber-1];w&&this.#e.push(w)};a._on("pagerender",u,{signal:h});const f=p=>{p.cssTransform||(this._onePageRenderedCapability.resolve({timestamp:p.timestamp}),a._off("pagerendered",f))};a._on("pagerendered",f,{signal:h}),Promise.all([i,s]).then(([p,w])=>{if(e!==this.pdfDocument)return;this._firstPageCapability.resolve(p),this._optionalContentConfigPromise=n;const{annotationEditorMode:v,annotationMode:_,textLayerMode:y}=this.#L(w);if(y!==B.DISABLE){const b=this.#b=document.createElement("div");b.id="hiddenCopyElement",l.before(b)}if(typeof AbortSignal.any=="function"&&v!==O.DISABLE){const b=v;e.isPureXfa?console.warn("Warning: XFA-editing is not implemented."):bt(b)?(this.#n=new _i(this.container,l,this.#t,a,e,o,this.#s,this.#o,this.#f,this.#p,this.#g,this.#l,this.#A),a.dispatch("annotationeditoruimanager",{source:this,uiManager:this.#n}),b!==O.NONE&&(b===O.STAMP&&this.#g?.loadModel("altText"),this.#n.updateMode(b))):console.error(`Invalid AnnotationEditor mode: ${b}`)}const P=this._scrollMode===L.PAGE?null:l,x=this.currentScale,E=p.getViewport({scale:x*U.PDF_TO_CSS_UNITS});l.style.setProperty("--scale-factor",E.scale),o?.background&&l.style.setProperty("--page-bg-color",o.background),(o?.foreground==="CanvasText"||o?.background==="Canvas")&&(l.style.setProperty("--hcm-highlight-filter",e.filterFactory.addHighlightHCMFilter("highlight","CanvasText","Canvas","HighlightText","Highlight")),l.style.setProperty("--hcm-highlight-selected-filter",e.filterFactory.addHighlightHCMFilter("highlight_selected","CanvasText","Canvas","HighlightText","ButtonText")));for(let b=1;b<=t;++b){const S=new It({container:P,eventBus:a,id:b,scale:x,defaultViewport:E.clone(),optionalContentConfigPromise:n,renderingQueue:this.renderingQueue,textLayerMode:y,annotationMode:_,imageResourcesPath:this.imageResourcesPath,maxCanvasPixels:this.maxCanvasPixels,pageColors:o,l10n:this.l10n,layerProperties:this._layerProperties,enableHWA:this.#h});this._pages.push(S)}this._pages[0]?.setPdfPage(p),this._scrollMode===L.PAGE?this.#T():this._spreadMode!==k.NONE&&this._updateSpreadMode(),this.#I(h).then(async()=>
vendor: 12,749 bytes, line 346
346{if(e!==this.pdfDocument)return;if(this.findController?.setDocument(e),this._scriptingManager?.setDocument(e),this.#b&&document.addEventListener("copy",this.#D.bind(this,y),{signal:h}),this.#n&&a.dispatch("annotationeditormodechanged",{source:this,mode:this.#i}),e.loadingParams.disableAutoFetch||t>ce.FORCE_LAZY_PAGE_INIT){this._pagesCapability.resolve();return}let b=t-1;if(b<=0){this._pagesCapability.resolve();return}for(let S=2;S<=t;++S){const T=e.getPage(S).then(R=>{const I=this._pages[S-1];I.pdfPage||I.setPdfPage(R),--b===0&&this._pagesCapability.resolve()},R=>{console.error(`Unable to get page ${S} to initialize viewer`,R),--b===0&&this._pagesCapability.resolve()});S%ce.PAUSE_EAGER_PAGE_INIT===0&&await T}}),a.dispatch("pagesinit",{source:this}),e.getMetadata().then(({info:b})=>{e===this.pdfDocument&&b.Language&&(l.lang=b.Language)}),this.defaultRenderingQueue&&this.update()}).catch(p=>{console.error("Unable to initialize viewer",p),this._pagesCapability.reject(p)})}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,i=this._pages.length;t<i;t++)this._pages[t].setPageLabel(this._pageLabels?.[t]??null)}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=_e,this._currentScaleValue=null,this._pageLabels=null,this.#e=new $n(mt),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=Promise.withResolvers(),this._onePageRenderedCapability=Promise.withResolvers(),this._pagesCapability=Promise.withResolvers(),this._scrollMode=L.VERTICAL,this._previousScrollMode=L.UNKNOWN,this._spreadMode=k.NONE,this.#P={previousPageNumber:1,scrollDown:!0,pages:[]},this.#u?.abort(),this.#u=null,this.viewer.textContent="",this._updateScrollMode(),this.viewer.removeAttribute("lang"),this.#b?.remove(),this.#b=null,this.#R()}#T(){if(this._scrollMode!==L.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");const e=this._currentPageNumber,t=this.#P,i=this.viewer;if(i.textContent="",t.pages.length=0,this._spreadMode===k.NONE&&!this.isInPresentationMode){const n=this._pages[e-1];i.append(n.div),t.pages.push(n)}else{const n=new Set,s=this._spreadMode-1;s===-1?n.add(e-1):e%2!==s?(n.add(e-1),n.add(e)):(n.add(e-2),n.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 n){const l=this._pages[o];l&&(a.append(l.div),t.pages.push(l))}i.append(a)}t.scrollDown=e>=t.previousPageNumber,t.previousPageNumber=e}_scrollUpdate(){this.pagesCount!==0&&this.update()}#C(e,t=null){const{div:i,id:n}=e;if(this._currentPageNumber!==n&&this._setCurrentPageNumber(n),this._scrollMode===L.PAGE&&(this.#T(),this.update()),!t&&!this.isInPresentationMode){const s=i.offsetLeft+i.clientLeft,a=s+i.clientWidth,{scrollLeft:o,clientWidth:l}=this.container;(this._scrollMode===L.HORIZONTAL||s<o||a>o+l)&&(t={left:0,top:0})}wt(i,t),!this._currentScaleValue&&this._location&&(this._location=null)}#F(e){return e===this._currentScale||Math.abs(e-this._currentScale)<1e-15}#N(e,t,{noScroll:i=!1,preset:n=!1,drawingDelay:s=-1,origin:a=null}){if(this._currentScaleValue=t.toString(),this.#F(e)){n&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t});return}this.viewer.style.setProperty("--scale-factor",e*U.PDF_TO_CSS_UNITS);const o=s>=0&&s<1e3;this.refresh(!0,{scale:e,drawingDelay:o?s:-1}),o&&(this.#v=setTimeout(()=>{this.#v=null,this.refresh()},s));const l=this._currentScale;if(this._currentScale=e,!i){let h=this._currentPageNumber,u;if(this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(h=this._location.pageNumber,u=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:h,destArray:u,allowNegativeOffset:!0}),Array.isArray(a)){const f=e/l-1,[p,w]=this.containerTopLeft;this.container.scrollLeft+=(a[0]-w)*f,this.container.scrollTop+=(a[1]-p)*f}}this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:n?t:void 0}),this.defaultRenderingQueue&&this.update()}get#O(){return this._spreadMode!==k.NONE&&this._scrollMode!==L.HORIZONTAL?2:1}#x(e,t){let i=parseFloat(e);if(i>0)t.preset=!1,this.#N(i,e,t);else{const n=this._pages[this._currentPageNumber-1];if(!n)return;let s=Be,a=He;this.isInPresentationMode?(s=a=4,this._spreadMode!==k.NONE&&(s*=2)):this.removePageBorders?s=a=0:this._scrollMode===L.HORIZONTAL&&([s,a]=[a,s]);const o=(this.container.clientWidth-s)/n.width*n.scale/this.#O,l=(this.container.clientHeight-a)/n.height*n.scale;switch(e){case"page-actual":i=1;break;case"page-width":i=o;break;case"page-height":i=l;break;case"page-fit":i=Math.min(o,l);break;case"auto":const h=We(n)?o:Math.min(l,o);i=Math.min(Vt,h);break;default:console.error(`#setScale: "${e}" is an unknown zoom value.`);return}t.preset=!0,this.#N(i,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:i=!1,ignoreDestinationZoom:n=!1}){if(!this.pdfDocument)return;const s=Number.isInteger(e)&&this._pages[e-1];if(!s){console.error(`scrollPageIntoView: "${e}" is not a valid pageNumber parameter.`);return}if(this.isInPresentationMode||!t){this._setCurrentPageNumber(e,!0);return}let a=0,o=0,l=0,h=0,u,f;const p=s.rotation%180!==0,w=(p?s.height:s.width)/s.scale/U.PDF_TO_CSS_UNITS,v=(p?s.width:s.height)/s.scale/U.PDF_TO_CSS_UNITS;let _=0;switch(t[1].name){case"XYZ":a=t[2],o=t[3],_=t[4],a=a!==null?a:0,o=o!==null?o:v;break;case"Fit":case"FitB":_="page-fit";break;case"FitH":case"FitBH":o=t[2],_="page-width",o===null&&this._location?(a=this._location.left,o=this._location.top):(typeof o!="number"||o<0)&&(o=v);break;case"FitV":case"FitBV":a=t[2],l=w,h=v,_="page-height";break;case"FitR":a=t[2],o=t[3],l=t[4]-a,h=t[5]-o;let E=Be,b=He;this.removePageBorders&&(E=b=0),u=(this.container.clientWidth-E)/l/U.PDF_TO_CSS_UNITS,f=(this.container.clientHeight-b)/h/U.PDF_TO_CSS_UNITS,_=Math.min(Math.abs(u),Math.abs(f));break;default:console.error(`scrollPageIntoView: "${t[1].name}" is not a valid destination type.`);return}if(n||(_&&_!==this._currentScale?this.currentScaleValue=_:this._currentScale===_e&&(this.currentScaleValue=Ft)),_==="page-fit"&&!t[4]){this.#C(s);return}const y=[s.viewport.convertToViewportPoint(a,o),s.viewport.convertToViewportPoint(a+l,o+h)];let P=Math.min(y[0][0],y[1][0]),x=Math.min(y[0][1],y[1][1]);i||(P=Math.max(P,0),x=Math.max(x,0)),this.#C(s,{left:P,top:x})}_updateLocation(e){const t=this._currentScale,i=this._currentScaleValue,n=parseFloat(i)===t?Math.round(t*1e4)/100:i,s=e.id,a=this._pages[s-1],o=this.container,l=a.getPagePoint(o.scrollLeft-e.x,o.scrollTop-e.y),h=Math.round(l[0]),u=Math.round(l[1]);let f=`#page=${s}`;this.isInPresentationMode||(f+=`&zoom=${n},${h},${u}`),this._location={pageNumber:s,scale:n,top:u,left:h,rotation:this._pagesRotation,pdfOpenParams:f}}update(){const e=this._getVisiblePages(),t=e.views,i=t.length;if(i===0)return;const n=Math.max(mt,2*i+1);this.#e.resize(n,e.ids),this.renderingQueue.renderHighestPriority(e);const s=this._spreadMode===k.NONE&&(this._scrollMode===L.PAGE||this._scrollMode===L.VERTICAL),a=this._currentPageNumber;let o=!1;for(const l of t){if(l.percent<100)break;if(l.id===a&&s){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:i,views:n}=e;for(const s of n){const{view:a}=s;if(!a.hasEditableAnnotations()){i.delete(a.id);continue}t.push(s)}return t.length===0?null:(this.renderingQueue.renderHighestPriority({first:t[0],last:t.at(-1),views:t,ids:i}),i)}containsElement(e){return this.container.contains(e)}focus(){this.container.focus()}get _isContainerRtl(){return getComputedStyle(this.container).direction==="rtl"}get isInPresentationMode(){return this.presentationModeState===J.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===J.CHANGING}get isHorizontalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return this.isInPresentationMode?!1:this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){const e=this._scrollMode===L.PAGE?this.#P.pages:this._pages,t=this._scrollMode===L.HORIZONTAL,i=t&&this._isContainerRtl;return Ut({scrollEl:this.container,views:e,sortByVisibility:!0,horizontal:t,rtl:i})}cleanup(){for(const e of this._pages)e.renderingState!==N.FINISHED&&e.reset()}_cancelRendering(){for(const e of this._pages)e.cancelRendering()}async#V(e){if(e.pdfPage)return e.pdfPage;try{const t=await this.pdfDocument.getPage(e.id);return e.pdfPage||e.setPdfPage(t),t}catch(t){return console.error("Unable to get page for page view",t),null}}#B(e){if(e.first?.id===1)return!0;if(e.last?.id===this.pagesCount)return!1;switch(this._scrollMode){case L.PAGE:return this.#P.scrollDown;case L.HORIZONTAL:return this.scroll.right}return this.scroll.down}forceRendering(e){const t=e||this._getVisiblePages(),i=this.#B(t),n=this._spreadMode!==k.NONE&&this._scrollMode!==L.HORIZONTAL,s=this.renderingQueue.getHighestPriority(t,this._pages,i,n);return s?(this.#V(s).then(()=>{this.renderingQueue.renderView(s)}),!0):!1}get hasEqualPageSizes(){const e=this._pages[0];for(let t=1,i=this._pages.length;t<i;++t){const n=this._pages[t];if(n.width!==e.width||n.height!==e.height)return!1}return!0}getPagesOverview(){let e;return this._pages.map(t=>{const i=t.pdfPage.getViewport({scale:1}),n=We(i);if(e===void 0)e=n;else if(this.enablePrintAutoRotate&&n!==e)return{width:i.height,height:i.width,rotation:(i.rotation-90)%360};return{width:i.width,height:i.height,rotation:i.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(!$t(e))throw new Error(`Invalid scroll mode: ${e}`);this.pagesCount>ce.FORCE_SCROLL_MODE_PAGE||(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,i=this.viewer;i.classList.toggle("scrollHorizontal",t===L.HORIZONTAL),i.classList.toggle("scrollWrapped",t===L.WRAPPED),!(!this.pdfDocument||!e)&&(t===L.PAGE?this.#T():this._previousScrollMode===L.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(!Wt(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,i=this._pages;if(this._scrollMode===L.PAGE)this.#T();else if(t.textContent="",this._spreadMode===k.NONE)for(const n of this._pages)t.append(n.div);else{const n=this._spreadMode-1;let s=null;for(let a=0,o=i.length;a<o;++a)s===null?(s=document.createElement("div"),s.className="spread",t.append(s)):a%2===n&&(s=s.cloneNode(!1),t.append(s)),s.append(i[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 L.WRAPPED:{const{views:i}=this._getVisiblePages(),n=new Map;for(const{id:s,y:a,percent:o,widthPercent:l}of i){if(o===0||l<100)continue;let h=n.get(a);h||n.set(a,h||=[]),h.push(s)}for(const s of n.values()){const a=s.indexOf(e);if(a===-1)continue;const o=s.length;if(o===1)break;if(t)for(let l=a-1,h=0;l>=h;
346l--){const u=s[l],f=s[l+1]-1;if(u<f)return e-f}else for(let l=a+1,h=o;l<h;l++){const u=s[l],f=s[l-1]+1;if(u>f)return f-e}if(t){const l=s[0];if(l<e)return e-l+1}else{const l=s[o-1];if(l>e)return l-e+1}break}break}case L.HORIZONTAL:break;case L.PAGE:case L.VERTICAL:{if(this._spreadMode===k.NONE)break;const i=this._spreadMode-1;if(t&&e%2!==i)break;if(!t&&e%2===i)break;const{views:n}=this._getVisiblePages(),s=t?e-1:e+1;for(const{id:a,percent:o,widthPercent:l}of n)if(a===s){if(o>0&&l===100)return 2;break}break}}return 1}nextPage(){const e=this._currentPageNumber,t=this.pagesCount;if(e>=t)return!1;const i=this._getPageAdvance(e,!1)||1;return this.currentPageNumber=Math.min(e+i,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:i=null,origin:n}){if(i===null&&t===null)throw new Error("Invalid updateScale options: either `steps` or `scaleFactor` must be provided.");if(!this.pdfDocument)return;let s=this._currentScale;if(t>0&&t!==1)s=Math.round(s*t*100)/100;else if(i){const a=i>0?Ve:1/Ve,o=i>0?Math.ceil:Math.floor;i=Math.abs(i);do s=o((s*a).toFixed(2)*10)/10;while(--i>0)}s=Math.max(Ot,Math.min(jt,s)),this.#x(s,{noScroll:!1,drawingDelay:e,origin:n})}increaseScale(e={}){this.updateScale({...e,steps:e.steps??1})}decreaseScale(e={}){this.updateScale({...e,steps:-(e.steps??1)})}#k(e=this.container.clientHeight){e!==this.#y&&(this.#y=e,zt.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.#c?.abort(),this.#c=null,this.#m!==null&&(clearTimeout(this.#m),this.#m=null)}get annotationEditorMode(){return this.#n?this.#i:O.DISABLE}set annotationEditorMode({mode:e,editId:t=null,isFromKeyboard:i=!1}){if(!this.#n)throw new Error("The AnnotationEditor is not enabled.");if(this.#i===e)return;if(!bt(e))throw new Error(`Invalid AnnotationEditor mode: ${e}`);if(!this.pdfDocument)return;e===O.STAMP&&this.#g?.loadModel("altText");const{eventBus:n}=this,s=()=>{this.#R(),this.#i=e,this.#n.updateMode(e,t,i),n.dispatch("annotationeditormodechanged",{source:this,mode:e})};if(e===O.NONE||this.#i===O.NONE){const a=e!==O.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.#c=new AbortController;const l=AbortSignal.any([this.#u.signal,this.#c.signal]);n._on("pagerendered",({pageNumber:h})=>{o.delete(h),o.size===0&&(this.#m=setTimeout(s,0))},{signal:l});return}}s()}refresh(e=!1,t=Object.create(null)){if(this.pdfDocument){for(const i of this._pages)i.update(t);this.#v!==null&&(clearTimeout(this.#v),this.#v=null),e||this.update()}}}class Wn extends Tt{_resetView(){super._resetView(),this._scrollMode=L.PAGE,this._spreadMode=k.NONE}set scrollMode(e){}_updateScrollMode(){}set spreadMode(e){}_updateSpreadMode(){}}var gs=C.AnnotationLayerBuilder,ms=C.DownloadManager,bs=C.EventBus,Es=C.FindState,ws=C.GenericL10n,_s=C.LinkTarget,ys=C.PDFFindController,vs=C.PDFHistory,Ps=C.PDFLinkService,xs=C.PDFPageView,Ss=C.PDFScriptingManager,As=C.PDFSinglePageViewer,Ls=C.PDFViewer,Is=C.ProgressBar,Ts=C.RenderingStates,Cs=C.ScrollMode,Rs=C.SimpleLinkService,Ns=C.SpreadMode,Ms=C.StructTreeLayerBuilder,ks=C.TextLayerBuilder,Ds=C.XfaLayerBuilder,Fs=C.parseQueryString;export{gs as AnnotationLayerBuilder,ms as DownloadManager,bs as EventBus,Es as FindState,ws as GenericL10n,_s as LinkTarget,ys as PDFFindController,vs as PDFHistory,Ps as PDFLinkService,xs as PDFPageView,Ss as PDFScriptingManager,As as PDFSinglePageViewer,Ls as PDFViewer,Is as ProgressBar,Ts as RenderingStates,Cs as ScrollMode,Rs as SimpleLinkService,Ns as SpreadMode,Ms as StructTreeLayerBuilder,ks as TextLayerBuilder,Ds as XfaLayerBuilder,Fs as 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.