file-viewer3 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/dist/components/PdfView.js +9 -6
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -135,3 +135,13 @@ var context = {
|
|
|
135
135
|
4. 具体请参考demo代码,原理是基于`iframe`跨域通信机制。
|
|
136
136
|
|
|
137
137
|

|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
## 更新日志
|
|
142
|
+
|
|
143
|
+
#### [feature]`v1.0.6` `2022年4月23日`
|
|
144
|
+
|
|
145
|
+
1. 解决部分pdf字体不显示的问题
|
|
146
|
+
2. 增加pdf预览初始缩放大小,自动适配页面。调整pdf预览缩放下限为0.5
|
|
147
|
+
3. demo增加url预览模式,在请求参数中添加`url=文件地址`,可自动拉取并渲染文件
|
|
@@ -21569,9 +21569,9 @@ var pdfExports = requirePdf(), pdf_viewerExports = {}, pdf_viewer = {
|
|
|
21569
21569
|
})(pdf_viewer);
|
|
21570
21570
|
const pdf = "", PDFWorker = {
|
|
21571
21571
|
create() {
|
|
21572
|
-
return refWorker("
|
|
21572
|
+
return refWorker("pdf.worker.js").defaults(() => new Worker(new URL("" + new URL("../worker/pdf.worker.js", import.meta.url).href, self.location), { type: "module" }));
|
|
21573
21573
|
}
|
|
21574
|
-
}, _withScopeId = (W) => (pushScopeId("data-v-
|
|
21574
|
+
}, _withScopeId = (W) => (pushScopeId("data-v-9bad3887"), W = W(), popScopeId(), W), _hoisted_1 = { class: "container" }, _hoisted_2 = { class: "pdf_down" }, _hoisted_3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
|
|
21575
21575
|
id: "viewer",
|
|
21576
21576
|
class: "pdfViewer"
|
|
21577
21577
|
}, null, -1)), _hoisted_4 = [
|
|
@@ -21608,11 +21608,14 @@ const pdf = "", PDFWorker = {
|
|
|
21608
21608
|
l10n: new pdf_viewerExports.GenericL10n("zh-CN")
|
|
21609
21609
|
});
|
|
21610
21610
|
R.setViewer(n), m.on("pagesinit", () => {
|
|
21611
|
-
|
|
21611
|
+
var r;
|
|
21612
|
+
const d = (r = n.getPageView(0)) == null ? void 0 : r.viewport;
|
|
21613
|
+
(d == null ? void 0 : d.width) > window.innerWidth ? n.currentScaleValue = "0.5" : n.currentScaleValue = "1";
|
|
21612
21614
|
});
|
|
21613
21615
|
const a = await pdfExports.getDocument({
|
|
21614
21616
|
data: E.data,
|
|
21615
|
-
|
|
21617
|
+
cMapUrl: `https://npm.onmicrosoft.cn/pdfjs-dist@${pdfExports.version}/cmaps/`,
|
|
21618
|
+
useWorkerFetch: !0,
|
|
21616
21619
|
cMapPacked: !0,
|
|
21617
21620
|
enableXfa: !0
|
|
21618
21621
|
}).promise;
|
|
@@ -21631,7 +21634,7 @@ const pdf = "", PDFWorker = {
|
|
|
21631
21634
|
if (!p.viewer)
|
|
21632
21635
|
return;
|
|
21633
21636
|
const k = p.viewer.currentScale;
|
|
21634
|
-
k <=
|
|
21637
|
+
k <= 0.5 || (p.viewer.currentScale = k - 0.1);
|
|
21635
21638
|
}
|
|
21636
21639
|
return (k, m) => (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
21637
21640
|
createElementVNode("div", _hoisted_2, [
|
|
@@ -21651,7 +21654,7 @@ const pdf = "", PDFWorker = {
|
|
|
21651
21654
|
}, _hoisted_4, 512)
|
|
21652
21655
|
]));
|
|
21653
21656
|
}
|
|
21654
|
-
}),
|
|
21657
|
+
}), PdfView_vue_vue_type_style_index_0_scoped_9bad3887_lang = "", PdfView = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-9bad3887"]]);
|
|
21655
21658
|
export {
|
|
21656
21659
|
PdfView as default
|
|
21657
21660
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -372,7 +372,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
372
372
|
`}setFont(b){const m=this.current,w=this.commonObjs.get(b[0]);let O=b[1];m.font=w,this.embedFonts&&!w.missingFile&&!this.embeddedFonts[w.loadedName]&&(this.addFontStyle(w),this.embeddedFonts[w.loadedName]=w),m.fontMatrix=w.fontMatrix||i.FONT_IDENTITY_MATRIX;let R="normal";w.black?R="900":w.bold&&(R="bold");const I=w.italic?"italic":"normal";O<0?(O=-O,m.fontDirection=-1):m.fontDirection=1,m.fontSize=O,m.fontFamily=w.loadedName,m.fontWeight=R,m.fontStyle=I,m.tspan=this.svgFactory.createElement("svg:tspan"),m.tspan.setAttributeNS(null,"y",v(-m.y)),m.xcoords=[],m.ycoords=[]}endText(){var b;const m=this.current;m.textRenderingMode&i.TextRenderingMode.ADD_TO_PATH_FLAG&&(b=m.txtElement)!==null&&b!==void 0&&b.hasChildNodes()&&(m.element=m.txtElement,this.clip("nonzero"),this.endPath())}setLineWidth(b){b>0&&(this.current.lineWidth=b)}setLineCap(b){this.current.lineCap=c[b]}setLineJoin(b){this.current.lineJoin=f[b]}setMiterLimit(b){this.current.miterLimit=b}setStrokeAlpha(b){this.current.strokeAlpha=b}setStrokeRGBColor(b,m,w){this.current.strokeColor=i.Util.makeHexColor(b,m,w)}setFillAlpha(b){this.current.fillAlpha=b}setFillRGBColor(b,m,w){this.current.fillColor=i.Util.makeHexColor(b,m,w),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(b){this.current.strokeColor=this._makeColorN_Pattern(b)}setFillColorN(b){this.current.fillColor=this._makeColorN_Pattern(b)}shadingFill(b){const m=this.viewport.width,w=this.viewport.height,O=i.Util.inverseTransform(this.transformMatrix),R=i.Util.applyTransform([0,0],O),I=i.Util.applyTransform([0,w],O),B=i.Util.applyTransform([m,0],O),j=i.Util.applyTransform([m,w],O),H=Math.min(R[0],I[0],B[0],j[0]),M=Math.min(R[1],I[1],B[1],j[1]),J=Math.max(R[0],I[0],B[0],j[0]),ue=Math.max(R[1],I[1],B[1],j[1]),ae=this.svgFactory.createElement("svg:rect");ae.setAttributeNS(null,"x",H),ae.setAttributeNS(null,"y",M),ae.setAttributeNS(null,"width",J-H),ae.setAttributeNS(null,"height",ue-M),ae.setAttributeNS(null,"fill",this._makeShadingPattern(b)),this.current.fillAlpha<1&&ae.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(ae)}_makeColorN_Pattern(b){return b[0]==="TilingPattern"?this._makeTilingPattern(b):this._makeShadingPattern(b)}_makeTilingPattern(b){const m=b[1],w=b[2],O=b[3]||i.IDENTITY_MATRIX,[R,I,B,j]=b[4],H=b[5],M=b[6],J=b[7],ue=`shading${A++}`,[ae,K,P,N]=i.Util.normalizeRect([...i.Util.applyTransform([R,I],O),...i.Util.applyTransform([B,j],O)]),[T,L]=i.Util.singularValueDecompose2dScale(O),q=H*T,F=M*L,W=this.svgFactory.createElement("svg:pattern");W.setAttributeNS(null,"id",ue),W.setAttributeNS(null,"patternUnits","userSpaceOnUse"),W.setAttributeNS(null,"width",q),W.setAttributeNS(null,"height",F),W.setAttributeNS(null,"x",`${ae}`),W.setAttributeNS(null,"y",`${K}`);const se=this.svg,fe=this.transformMatrix,he=this.current.fillColor,oe=this.current.strokeColor,be=this.svgFactory.create(P-ae,N-K);if(this.svg=be,this.transformMatrix=O,J===2){const Ee=i.Util.makeHexColor(...m);this.current.fillColor=Ee,this.current.strokeColor=Ee}return this.executeOpTree(this.convertOpList(w)),this.svg=se,this.transformMatrix=fe,this.current.fillColor=he,this.current.strokeColor=oe,W.append(be.childNodes[0]),this.defs.append(W),`url(#${ue})`}_makeShadingPattern(b){switch(typeof b=="string"&&(b=this.objs.get(b)),b[0]){case"RadialAxial":const m=`shading${A++}`,w=b[3];let O;switch(b[1]){case"axial":const R=b[4],I=b[5];O=this.svgFactory.createElement("svg:linearGradient"),O.setAttributeNS(null,"id",m),O.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),O.setAttributeNS(null,"x1",R[0]),O.setAttributeNS(null,"y1",R[1]),O.setAttributeNS(null,"x2",I[0]),O.setAttributeNS(null,"y2",I[1]);break;case"radial":const B=b[4],j=b[5],H=b[6],M=b[7];O=this.svgFactory.createElement("svg:radialGradient"),O.setAttributeNS(null,"id",m),O.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),O.setAttributeNS(null,"cx",j[0]),O.setAttributeNS(null,"cy",j[1]),O.setAttributeNS(null,"r",M),O.setAttributeNS(null,"fx",B[0]),O.setAttributeNS(null,"fy",B[1]),O.setAttributeNS(null,"fr",H);break;default:throw new Error(`Unknown RadialAxial type: ${b[1]}`)}for(const R of w){const I=this.svgFactory.createElement("svg:stop");I.setAttributeNS(null,"offset",R[0]),I.setAttributeNS(null,"stop-color",R[1]),O.append(I)}return this.defs.append(O),`url(#${m})`;case"Mesh":return(0,i.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${b[0]}`)}}setDash(b,m){this.current.dashArray=b,this.current.dashPhase=m}constructPath(b,m){const w=this.current;let O=w.x,R=w.y,I=[],B=0;for(const j of b)switch(j|0){case i.OPS.rectangle:O=m[B++],R=m[B++];const H=m[B++],M=m[B++],J=O+H,ue=R+M;I.push("M",v(O),v(R),"L",v(J),v(R),"L",v(J),v(ue),"L",v(O),v(ue),"Z");break;case i.OPS.moveTo:O=m[B++],R=m[B++],I.push("M",v(O),v(R));break;case i.OPS.lineTo:O=m[B++],R=m[B++],I.push("L",v(O),v(R));break;case i.OPS.curveTo:O=m[B+4],R=m[B+5],I.push("C",v(m[B]),v(m[B+1]),v(m[B+2]),v(m[B+3]),v(O),v(R)),B+=6;break;case i.OPS.curveTo2:I.push("C",v(O),v(R),v(m[B]),v(m[B+1]),v(m[B+2]),v(m[B+3])),O=m[B+2],R=m[B+3],B+=4;break;case i.OPS.curveTo3:O=m[B+2],R=m[B+3],I.push("C",v(m[B]),v(m[B+1]),v(O),v(R),v(O),v(R)),B+=4;break;case i.OPS.closePath:I.push("Z");break}I=I.join(" "),w.path&&b.length>0&&b[0]!==i.OPS.rectangle&&b[0]!==i.OPS.moveTo?I=w.path.getAttributeNS(null,"d")+I:(w.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(w.path)),w.path.setAttributeNS(null,"d",I),w.path.setAttributeNS(null,"fill","none"),w.element=w.path,w.setCurrentPoint(O,R)}endPath(){const b=this.current;if(b.path=null,!this.pendingClip)return;if(!b.element){this.pendingClip=null;return}const m=`clippath${S++}`,w=this.svgFactory.createElement("svg:clipPath");w.setAttributeNS(null,"id",m),w.setAttributeNS(null,"transform",_(this.transformMatrix));const O=b.element.cloneNode(!0);if(this.pendingClip==="evenodd"?O.setAttributeNS(null,"clip-rule","evenodd"):O.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,w.append(O),this.defs.append(w),b.activeClipUrl){b.clipGroup=null;for(const R of this.extraStack)R.clipGroup=null;w.setAttributeNS(null,"clip-path",b.activeClipUrl)}b.activeClipUrl=`url(#${m})`,this.tgrp=null}clip(b){this.pendingClip=b}closePath(){const b=this.current;if(b.path){const m=`${b.path.getAttributeNS(null,"d")}Z`;b.path.setAttributeNS(null,"d",m)}}setLeading(b){this.current.leading=-b}setTextRise(b){this.current.textRise=b}setTextRenderingMode(b){this.current.textRenderingMode=b}setHScale(b){this.current.textHScale=b/100}setRenderingIntent(b){}setFlatness(b){}setGState(b){for(const[m,w]of b)switch(m){case"LW":this.setLineWidth(w);break;case"LC":this.setLineCap(w);break;case"LJ":this.setLineJoin(w);break;case"ML":this.setMiterLimit(w);break;case"D":this.setDash(w[0],w[1]);break;case"RI":this.setRenderingIntent(w);break;case"FL":this.setFlatness(w);break;case"Font":this.setFont(w);break;case"CA":this.setStrokeAlpha(w);break;case"ca":this.setFillAlpha(w);break;default:(0,i.warn)(`Unimplemented graphic state operator ${m}`);break}}fill(){const b=this.current;b.element&&(b.element.setAttributeNS(null,"fill",b.fillColor),b.element.setAttributeNS(null,"fill-opacity",b.fillAlpha),this.endPath())}stroke(){const b=this.current;b.element&&(this._setStrokeAttributes(b.element),b.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(b){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const w=this.current;let O=w.dashArray;m!==1&&O.length>0&&(O=O.map(function(R){return m*R})),b.setAttributeNS(null,"stroke",w.strokeColor),b.setAttributeNS(null,"stroke-opacity",w.strokeAlpha),b.setAttributeNS(null,"stroke-miterlimit",v(w.miterLimit)),b.setAttributeNS(null,"stroke-linecap",w.lineCap),b.setAttributeNS(null,"stroke-linejoin",w.lineJoin),b.setAttributeNS(null,"stroke-width",v(m*w.lineWidth)+"px"),b.setAttributeNS(null,"stroke-dasharray",O.map(v).join(" ")),b.setAttributeNS(null,"stroke-dashoffset",v(m*w.dashPhase)+"px")}eoFill(){var b;(b=this.current.element)===null||b===void 0||b.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){var b;(b=this.current.element)===null||b===void 0||b.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const b=this.svgFactory.createElement("svg:rect");b.setAttributeNS(null,"x","0"),b.setAttributeNS(null,"y","0"),b.setAttributeNS(null,"width","1px"),b.setAttributeNS(null,"height","1px"),b.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(b)}paintImageXObject(b){const m=this.getObject(b);if(!m){(0,i.warn)(`Dependent image with object ID ${b} is not ready yet`);return}this.paintInlineImageXObject(m)}paintInlineImageXObject(b,m){const w=b.width,O=b.height,R=h(b,this.forceDataSchema,!!m),I=this.svgFactory.createElement("svg:rect");I.setAttributeNS(null,"x","0"),I.setAttributeNS(null,"y","0"),I.setAttributeNS(null,"width",v(w)),I.setAttributeNS(null,"height",v(O)),this.current.element=I,this.clip("nonzero");const B=this.svgFactory.createElement("svg:image");B.setAttributeNS(u,"xlink:href",R),B.setAttributeNS(null,"x","0"),B.setAttributeNS(null,"y",v(-O)),B.setAttributeNS(null,"width",v(w)+"px"),B.setAttributeNS(null,"height",v(O)+"px"),B.setAttributeNS(null,"transform",`scale(${v(1/w)} ${v(-1/O)})`),m?m.append(B):this._ensureTransformGroup().append(B)}paintImageMaskXObject(b){const m=this.getObject(b.data,b);if(m.bitmap){(0,i.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");return}const w=this.current,O=m.width,R=m.height,I=w.fillColor;w.maskId=`mask${C++}`;const B=this.svgFactory.createElement("svg:mask");B.setAttributeNS(null,"id",w.maskId);const j=this.svgFactory.createElement("svg:rect");j.setAttributeNS(null,"x","0"),j.setAttributeNS(null,"y","0"),j.setAttributeNS(null,"width",v(O)),j.setAttributeNS(null,"height",v(R)),j.setAttributeNS(null,"fill",I),j.setAttributeNS(null,"mask",`url(#${w.maskId})`),this.defs.append(B),this._ensureTransformGroup().append(j),this.paintInlineImageXObject(m,B)}paintFormXObjectBegin(b,m){if(Array.isArray(b)&&b.length===6&&this.transform(b[0],b[1],b[2],b[3],b[4],b[5]),m){const w=m[2]-m[0],O=m[3]-m[1],R=this.svgFactory.createElement("svg:rect");R.setAttributeNS(null,"x",m[0]),R.setAttributeNS(null,"y",m[1]),R.setAttributeNS(null,"width",v(w)),R.setAttributeNS(null,"height",v(O)),this.current.element=R,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(b){const m=this.svgFactory.create(b.width,b.height),w=this.svgFactory.createElement("svg:defs");m.append(w),this.defs=w;const O=this.svgFactory.createElement("svg:g");return O.setAttributeNS(null,"transform",_(b.transform)),m.append(O),this.svg=O,m}_ensureClipGroup(){if(!this.current.clipGroup){const b=this.svgFactory.createElement("svg:g");b.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(b),this.current.clipGroup=b}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",_(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}}}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(t!==void 0)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](r,r.exports,__w_pdfjs_require__),r.exports}var __webpack_exports__={};return(()=>{var e=__webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortException",{enumerable:!0,get:function(){return t.AbortException}}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return a.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return o.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return s.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"FeatureTest",{enumerable:!0,get:function(){return t.FeatureTest}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return r.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return n.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return r.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return n.PixelsPerInch}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return n.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return u.SVGGraphics}}),Object.defineProperty(e,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return t.UNSUPPORTED_FEATURES}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return c.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return r.build}}),Object.defineProperty(e,"createPromiseCapability",{enumerable:!0,get:function(){return t.createPromiseCapability}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return r.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return n.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return n.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return n.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return n.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return n.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return i.renderTextLayer}}),Object.defineProperty(e,"setLayerDimensions",{enumerable:!0,get:function(){return n.setLayerDimensions}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"updateTextLayer",{enumerable:!0,get:function(){return i.updateTextLayer}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return r.version}});var t=__w_pdfjs_require__(1),r=__w_pdfjs_require__(135),n=__w_pdfjs_require__(139),i=__w_pdfjs_require__(158),a=__w_pdfjs_require__(159),o=__w_pdfjs_require__(138),s=__w_pdfjs_require__(164),l=__w_pdfjs_require__(146),u=__w_pdfjs_require__(167),c=__w_pdfjs_require__(166)})(),__webpack_exports__})())}(pdf$1)),pdfExports$1}var pdfExports=requirePdf(),pdf_viewerExports={},pdf_viewer={get exports(){return pdf_viewerExports},set exports(e){pdf_viewerExports=e}};(function(e,t){(function(n,i){e.exports=i()})(globalThis,()=>(()=>{var r=[,(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.SimpleLinkService=s.PDFLinkService=s.LinkTarget=void 0;var u=l(2);function c(j,H){d(j,H),H.add(j)}function f(j,H,M){d(j,H),H.set(j,M)}function d(j,H){if(H.has(j))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(j,H,M){return p(j,H),M}function p(j,H){if(j!==H)throw new TypeError("Private static access of wrong provenance")}function g(j,H,M){if(!H.has(j))throw new TypeError("attempted to get private field on non-instance");return M}function v(j,H){var M=_(j,H,"get");return S(j,M)}function _(j,H,M){if(!H.has(j))throw new TypeError("attempted to "+M+" private field on non-instance");return H.get(j)}function S(j,H){return H.get?H.get.call(j):H.value}const C="noopener noreferrer nofollow",A={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};s.LinkTarget=A;function b(j){let{url:H,target:M,rel:J,enabled:ue=!0}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!H||typeof H!="string")throw new Error('A valid "url" parameter must provided.');const ae=(0,u.removeNullCharacters)(H);ue?j.href=j.title=ae:(j.href="",j.title=`Disabled: ${ae}`,j.onclick=()=>!1);let K="";switch(M){case A.NONE:break;case A.SELF:K="_self";break;case A.BLANK:K="_blank";break;case A.PARENT:K="_parent";break;case A.TOP:K="_top";break}j.target=K,j.rel=typeof J=="string"?J:C}var m=new WeakMap,w=new WeakSet;class O{constructor(){let{eventBus:H,externalLinkTarget:M=null,externalLinkRel:J=null,ignoreDestinationZoom:ue=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};c(this,w),f(this,m,{writable:!0,value:new Map}),this.eventBus=H,this.externalLinkTarget=M,this.externalLinkRel=J,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=ue,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(H){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;this.baseUrl=M,this.pdfDocument=H,v(this,m).clear()}setViewer(H){this.pdfViewer=H}setHistory(H){this.pdfHistory=H}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(H){this.pdfViewer.currentPageNumber=H}get rotation(){return this.pdfViewer.pagesRotation}set rotation(H){this.pdfViewer.pagesRotation=H}get isInPresentationMode(){return this.pdfViewer.isInPresentationMode}async goToDestination(H){if(!this.pdfDocument)return;let M,J;if(typeof H=="string"?(M=H,J=await this.pdfDocument.getDestination(H)):(M=null,J=await H),!Array.isArray(J)){console.error(`PDFLinkService.goToDestination: "${J}" is not a valid destination array, for dest="${H}".`);return}g(this,w,R).call(this,H,M,J)}goToPage(H){if(!this.pdfDocument)return;const M=typeof H=="string"&&this.pdfViewer.pageLabelToPageNumber(H)||H|0;if(!(Number.isInteger(M)&&M>0&&M<=this.pagesCount)){console.error(`PDFLinkService.goToPage: "${H}" is not a valid page.`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(M)),this.pdfViewer.scrollPageIntoView({pageNumber:M})}addLinkAttributes(H,M){let J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;b(H,{url:M,target:J?A.BLANK:this.externalLinkTarget,rel:this.externalLinkRel,enabled:this.externalLinkEnabled})}getDestinationHash(H){if(typeof H=="string"){if(H.length>0)return this.getAnchorUrl("#"+escape(H))}else if(Array.isArray(H)){const M=JSON.stringify(H);if(M.length>0)return this.getAnchorUrl("#"+escape(M))}return this.getAnchorUrl("")}getAnchorUrl(H){return(this.baseUrl||"")+H}setHash(H){if(!this.pdfDocument)return;let M,J;if(H.includes("=")){const ue=(0,u.parseQueryString)(H);if(ue.has("search")&&this.eventBus.dispatch("findfromurlhash",{source:this,query:ue.get("search").replace(/"/g,""),phraseSearch:ue.get("phrase")==="true"}),ue.has("page")&&(M=ue.get("page")|0||1),ue.has("zoom")){const ae=ue.get("zoom").split(","),K=ae[0],P=parseFloat(K);K.includes("Fit")?K==="Fit"||K==="FitB"?J=[null,{name:K}]:K==="FitH"||K==="FitBH"||K==="FitV"||K==="FitBV"?J=[null,{name:K},ae.length>1?ae[1]|0:null]:K==="FitR"?ae.length!==5?console.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):J=[null,{name:K},ae[1]|0,ae[2]|0,ae[3]|0,ae[4]|0]:console.error(`PDFLinkService.setHash: "${K}" is not a valid zoom value.`):J=[null,{name:"XYZ"},ae.length>1?ae[1]|0:null,ae.length>2?ae[2]|0:null,P?P/100:K]}J?this.pdfViewer.scrollPageIntoView({pageNumber:M||this.page,destArray:J,allowNegativeOffset:!0}):M&&(this.page=M),ue.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:ue.get("pagemode")}),ue.has("nameddest")&&this.goToDestination(ue.get("nameddest"))}else{J=unescape(H);try{J=JSON.parse(J),Array.isArray(J)||(J=J.toString())}catch{}if(typeof J=="string"||h(O,O,I).call(O,J)){this.goToDestination(J);return}console.error(`PDFLinkService.setHash: "${unescape(H)}" is not a valid destination.`)}}executeNamedAction(H){var M,J;switch(H){case"GoBack":(M=this.pdfHistory)===null||M===void 0||M.back();break;case"GoForward":(J=this.pdfHistory)===null||J===void 0||J.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:H})}async executeSetOCGState(H){const M=this.pdfDocument,J=await this.pdfViewer.optionalContentConfigPromise;if(M!==this.pdfDocument)return;let ue;for(const ae of H.state){switch(ae){case"ON":case"OFF":case"Toggle":ue=ae;continue}switch(ue){case"ON":J.setVisibility(ae,!0);break;case"OFF":J.setVisibility(ae,!1);break;case"Toggle":const K=J.getGroup(ae);K&&J.setVisibility(ae,!K.visible);break}}this.pdfViewer.optionalContentConfigPromise=Promise.resolve(J)}cachePageRef(H,M){if(!M)return;const J=M.gen===0?`${M.num}R`:`${M.num}R${M.gen}`;v(this,m).set(J,H)}_cachedPageNumber(H){if(!H)return null;const M=H.gen===0?`${H.num}R`:`${H.num}R${H.gen}`;return v(this,m).get(M)||null}isPageVisible(H){return this.pdfViewer.isPageVisible(H)}isPageCached(H){return this.pdfViewer.isPageCached(H)}}s.PDFLinkService=O;function R(j){let H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,M=arguments.length>2?arguments[2]:void 0;const J=M[0];let ue;if(typeof J=="object"&&J!==null){if(ue=this._cachedPageNumber(J),!ue){this.pdfDocument.getPageIndex(J).then(ae=>{this.cachePageRef(ae+1,J),g(this,w,R).call(this,j,H,M)}).catch(()=>{console.error(`PDFLinkService.#goToDestinationHelper: "${J}" is not a valid page reference, for dest="${j}".`)});return}}else if(Number.isInteger(J))ue=J+1;else{console.error(`PDFLinkService.#goToDestinationHelper: "${J}" is not a valid destination reference, for dest="${j}".`);return}if(!ue||ue<1||ue>this.pagesCount){console.error(`PDFLinkService.#goToDestinationHelper: "${ue}" is not a valid page number, for dest="${j}".`);return}this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:H,explicitDest:M,pageNumber:ue})),this.pdfViewer.scrollPageIntoView({pageNumber:ue,destArray:M,ignoreDestinationZoom:this._ignoreDestinationZoom})}function I(j){if(!Array.isArray(j))return!1;const H=j.length;if(H<2)return!1;const M=j[0];if(!(typeof M=="object"&&Number.isInteger(M.num)&&Number.isInteger(M.gen))&&!(Number.isInteger(M)&&M>=0))return!1;const J=j[1];if(!(typeof J=="object"&&typeof J.name=="string"))return!1;let ue=!0;switch(J.name){case"XYZ":if(H!==5)return!1;break;case"Fit":case"FitB":return H===2;case"FitH":case"FitBH":case"FitV":case"FitBV":if(H!==3)return!1;break;case"FitR":if(H!==6)return!1;ue=!1;break;default:return!1}for(let ae=2;ae<H;ae++){const K=j[ae];if(!(typeof K=="number"||ue&&K===null))return!1}return!0}class B{constructor(){this.externalLinkEnabled=!0}get pagesCount(){return 0}get page(){return 0}set page(H){}get rotation(){return 0}set rotation(H){}get isInPresentationMode(){return!1}async goToDestination(H){}goToPage(H){}addLinkAttributes(H,M){b(H,{url:M,enabled:this.externalLinkEnabled})}getDestinationHash(H){return"#"}getAnchorUrl(H){return"#"}setHash(H){}executeNamedAction(H){}executeSetOCGState(H){}cachePageRef(H,M){}isPageVisible(H){return!0}isPageCached(H){return!0}}s.SimpleLinkService=B},(o,s)=>{var z,U,ne,Y,ee;Object.defineProperty(s,"__esModule",{value:!0}),s.animationStarted=s.VERTICAL_PADDING=s.UNKNOWN_SCALE=s.TextLayerMode=s.SpreadMode=s.SidebarView=s.ScrollMode=s.SCROLLBAR_PADDING=s.RenderingStates=s.RendererType=s.ProgressBar=s.PresentationModeState=s.OutputScale=s.MIN_SCALE=s.MAX_SCALE=s.MAX_AUTO_SCALE=s.DEFAULT_SCALE_VALUE=s.DEFAULT_SCALE_DELTA=s.DEFAULT_SCALE=s.CursorTool=s.AutoPrintRegExp=void 0,s.apiPageLayoutToViewerModes=_e,s.apiPageModeToSidebarView=G,s.approximateFraction=K,s.backtrackBeforeAllVisibleElements=T,s.binarySearchFirstItem=ae,s.docStyle=void 0,s.getActiveOrFocusedElement=V,s.getPageSizeInches=N,s.getVisibleElements=L,s.isPortraitOrientation=oe,s.isValidRotation=se,s.isValidScrollMode=fe,s.isValidSpreadMode=he,s.noContextMenuHandler=q,s.normalizeWheelEventDelta=W,s.normalizeWheelEventDirection=F,s.parseQueryString=H,s.removeNullCharacters=ue,s.roundToDivide=P,s.scrollIntoView=B,s.watchScroll=j;const l="auto";s.DEFAULT_SCALE_VALUE=l;const u=1;s.DEFAULT_SCALE=u;const c=1.1;s.DEFAULT_SCALE_DELTA=c;const f=.1;s.MIN_SCALE=f;const d=10;s.MAX_SCALE=d;const h=0;s.UNKNOWN_SCALE=h;const p=1.25;s.MAX_AUTO_SCALE=p;const g=40;s.SCROLLBAR_PADDING=g;const v=5;s.VERTICAL_PADDING=v;const _={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3};s.RenderingStates=_;const S={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};s.PresentationModeState=S;const C={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};s.SidebarView=C;const A={CANVAS:"canvas",SVG:"svg"};s.RendererType=A;const b={DISABLE:0,ENABLE:1};s.TextLayerMode=b;const m={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3};s.ScrollMode=m;const w={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};s.SpreadMode=w;const O={SELECT:0,HAND:1,ZOOM:2};s.CursorTool=O;const R=/\bprint\s*\(/;s.AutoPrintRegExp=R;class I{constructor(){const le=window.devicePixelRatio||1;this.sx=le,this.sy=le}get scaled(){return this.sx!==1||this.sy!==1}}s.OutputScale=I;function B(Z,le){let de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ce=Z.offsetParent;if(!ce){console.error("offsetParent is not set -- cannot scroll");return}let ge=Z.offsetTop+Z.clientTop,Se=Z.offsetLeft+Z.clientLeft;for(;ce.clientHeight===ce.scrollHeight&&ce.clientWidth===ce.scrollWidth||de&&(ce.classList.contains("markedContent")||getComputedStyle(ce).overflow==="hidden");)if(ge+=ce.offsetTop,Se+=ce.offsetLeft,ce=ce.offsetParent,!ce)return;le&&(le.top!==void 0&&(ge+=le.top),le.left!==void 0&&(Se+=le.left,ce.scrollLeft=Se)),ce.scrollTop=ge}function j(Z,le){const de=function(Se){ge||(ge=window.requestAnimationFrame(function(){ge=null;const Pe=Z.scrollLeft,Le=ce.lastX;Pe!==Le&&(ce.right=Pe>Le),ce.lastX=Pe;const Ge=Z.scrollTop,$e=ce.lastY;Ge!==$e&&(ce.down=Ge>$e),ce.lastY=Ge,le(ce)}))},ce={right:!0,down:!0,lastX:Z.scrollLeft,lastY:Z.scrollTop,_eventHandler:de};let ge=null;return Z.addEventListener("scroll",de,!0),ce}function H(Z){const le=new Map;for(const[de,ce]of new URLSearchParams(Z))le.set(de.toLowerCase(),ce);return le}const M=/\x00/g,J=/[\x01-\x1F]/g;function ue(Z){let le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return typeof Z!="string"?(console.error("The argument must be a string."),Z):(le&&(Z=Z.replace(J," ")),Z.replace(M,""))}function ae(Z,le){let ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,ge=Z.length-1;if(ge<0||!le(Z[ge]))return Z.length;if(le(Z[ce]))return ce;for(;ce<ge;){const Se=ce+ge>>1,Ce=Z[Se];le(Ce)?ge=Se:ce=Se+1}return ce}function K(Z){if(Math.floor(Z)===Z)return[Z,1];const le=1/Z,de=8;if(le>de)return[1,de];if(Math.floor(le)===le)return[1,le];const ce=Z>1?le:Z;let ge=0,Se=1,Ce=1,Pe=1;for(;;){const Ge=ge+Ce,$e=Se+Pe;if($e>de)break;ce<=Ge/$e?(Ce=Ge,Pe=$e):(ge=Ge,Se=$e)}let Le;return ce-ge/Se<Ce/Pe-ce?Le=ce===Z?[ge,Se]:[Se,ge]:Le=ce===Z?[Ce,Pe]:[Pe,Ce],Le}function P(Z,le){const de=Z%le;return de===0?Z:Math.round(Z-de+le)}function N(Z){let{view:le,userUnit:de,rotate:ce}=Z;const[ge,Se,Ce,Pe]=le,Le=ce%180!==0,Ge=(Ce-ge)/72*de,$e=(Pe-Se)/72*de;return{width:Le?$e:Ge,height:Le?Ge:$e}}function T(Z,le,de){if(Z<2)return Z;let ce=le[Z].div,ge=ce.offsetTop+ce.clientTop;ge>=de&&(ce=le[Z-1].div,ge=ce.offsetTop+ce.clientTop);for(let Se=Z-2;Se>=0&&(ce=le[Se].div,!(ce.offsetTop+ce.clientTop+ce.clientHeight<=ge));--Se)Z=Se;return Z}function L(Z){let{scrollEl:le,views:de,sortByVisibility:ce=!1,horizontal:ge=!1,rtl:Se=!1}=Z;const Ce=le.scrollTop,Pe=Ce+le.clientHeight,Le=le.scrollLeft,Ge=Le+le.clientWidth;function $e(Ue){const Ie=Ue.div;return Ie.offsetTop+Ie.clientTop+Ie.clientHeight>Ce}function ie(Ue){const Ie=Ue.div,We=Ie.offsetLeft+Ie.clientLeft,lt=We+Ie.clientWidth;return Se?We<Ge:lt>Le}const ve=[],xe=new Set,je=de.length;let qe=ae(de,ge?ie:$e);qe>0&&qe<je&&!ge&&(qe=T(qe,de,Ce));let Je=ge?Ge:-1;for(let Ue=qe;Ue<je;Ue++){const Ie=de[Ue],We=Ie.div,lt=We.offsetLeft+We.clientLeft,nt=We.offsetTop+We.clientTop,ht=We.clientWidth,ke=We.clientHeight,Te=lt+ht,Fe=nt+ke;if(Je===-1)Fe>=Pe&&(Je=Fe);else if((ge?lt:nt)>Je)break;if(Fe<=Ce||nt>=Pe||Te<=Le||lt>=Ge)continue;const rt=Math.max(0,Ce-nt)+Math.max(0,Fe-Pe),et=Math.max(0,Le-lt)+Math.max(0,Te-Ge),gt=(ke-rt)/ke,dt=(ht-et)/ht,bt=gt*dt*100|0;ve.push({id:Ie.id,x:lt,y:nt,view:Ie,percent:bt,widthPercent:dt*100|0}),xe.add(Ie.id)}const He=ve[0],Qe=ve.at(-1);return ce&&ve.sort(function(Ue,Ie){const We=Ue.percent-Ie.percent;return Math.abs(We)>.001?-We:Ue.id-Ie.id}),{first:He,last:Qe,views:ve,ids:xe}}function q(Z){Z.preventDefault()}function F(Z){let le=Math.hypot(Z.deltaX,Z.deltaY);const de=Math.atan2(Z.deltaY,Z.deltaX);return-.25*Math.PI<de&&de<.75*Math.PI&&(le=-le),le}function W(Z){const le=Z.deltaMode;let de=F(Z);const ce=30,ge=30;return le===WheelEvent.DOM_DELTA_PIXEL?de/=ce*ge:le===WheelEvent.DOM_DELTA_LINE&&(de/=ge),de}function se(Z){return Number.isInteger(Z)&&Z%90===0}function fe(Z){return Number.isInteger(Z)&&Object.values(m).includes(Z)&&Z!==m.UNKNOWN}function he(Z){return Number.isInteger(Z)&&Object.values(w).includes(Z)&&Z!==w.UNKNOWN}function oe(Z){return Z.width<=Z.height}const be=new Promise(function(Z){window.requestAnimationFrame(Z)});s.animationStarted=be;const Ee=document.documentElement.style;s.docStyle=Ee;function Ae(Z,le,de){return Math.min(Math.max(Z,le),de)}class Re{constructor(le){qt(this,z,null);qt(this,U,null);qt(this,ne,0);qt(this,Y,null);qt(this,ee,!0);Qt(this,z,le.classList),Qt(this,Y,le.style)}get percent(){return _t(this,ne)}set percent(le){if(Qt(this,ne,Ae(le,0,100)),isNaN(le)){_t(this,z).add("indeterminate");return}_t(this,z).remove("indeterminate"),_t(this,Y).setProperty("--progressBar-percent",`${_t(this,ne)}%`)}setWidth(le){if(!le)return;const ce=le.parentNode.offsetWidth-le.offsetWidth;ce>0&&_t(this,Y).setProperty("--progressBar-end-offset",`${ce}px`)}setDisableAutoFetch(){let le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:5e3;isNaN(_t(this,ne))||(_t(this,U)&&clearTimeout(_t(this,U)),this.show(),Qt(this,U,setTimeout(()=>{Qt(this,U,null),this.hide()},le)))}hide(){_t(this,ee)&&(Qt(this,ee,!1),_t(this,z).add("hidden"))}show(){_t(this,ee)||(Qt(this,ee,!0),_t(this,z).remove("hidden"))}}z=new WeakMap,U=new WeakMap,ne=new WeakMap,Y=new WeakMap,ee=new WeakMap,s.ProgressBar=Re;function V(){let Z=document,le=Z.activeElement||Z.querySelector(":focus");for(;(de=le)!==null&&de!==void 0&&de.shadowRoot;){var de;Z=le.shadowRoot,le=Z.activeElement||Z.querySelector(":focus")}return le}function _e(Z){let le=m.VERTICAL,de=w.NONE;switch(Z){case"SinglePage":le=m.PAGE;break;case"OneColumn":break;case"TwoPageLeft":le=m.PAGE;case"TwoColumnLeft":de=w.ODD;break;case"TwoPageRight":le=m.PAGE;case"TwoColumnRight":de=w.EVEN;break}return{scrollMode:le,spreadMode:de}}function G(Z){switch(Z){case"UseNone":return C.NONE;case"UseThumbs":return C.THUMBS;case"UseOutlines":return C.OUTLINE;case"UseAttachments":return C.ATTACHMENTS;case"UseOC":return C.LAYERS}return C.NONE}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.AnnotationLayerBuilder=void 0;var u=l(4),c=l(5),f=l(2);function d(I,B){p(I,B),B.add(I)}function h(I,B,j){p(I,B),B.set(I,j)}function p(I,B){if(B.has(I))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(I,B,j){if(!B.has(I))throw new TypeError("attempted to get private field on non-instance");return j}function v(I,B,j){var H=C(I,B,"set");return _(I,H,j),j}function _(I,B,j){if(B.set)B.set.call(I,j);else{if(!B.writable)throw new TypeError("attempted to set read only private field");B.value=j}}function S(I,B){var j=C(I,B,"get");return A(I,j)}function C(I,B,j){if(!B.has(I))throw new TypeError("attempted to "+j+" private field on non-instance");return B.get(I)}function A(I,B){return B.get?B.get.call(I):B.value}var b=new WeakMap,m=new WeakMap,w=new WeakSet;class O{constructor(B){let{pageDiv:j,pdfPage:H,linkService:M,downloadManager:J,annotationStorage:ue=null,imageResourcesPath:ae="",renderForms:K=!0,l10n:P=c.NullL10n,enableScripting:N=!1,hasJSActionsPromise:T=null,fieldObjectsPromise:L=null,annotationCanvasMap:q=null,accessibilityManager:F=null}=B;d(this,w),h(this,b,{writable:!0,value:0}),h(this,m,{writable:!0,value:null}),this.pageDiv=j,this.pdfPage=H,this.linkService=M,this.downloadManager=J,this.imageResourcesPath=ae,this.renderForms=K,this.l10n=P,this.annotationStorage=ue,this.enableScripting=N,this._hasJSActionsPromise=T||Promise.resolve(!1),this._fieldObjectsPromise=L||Promise.resolve(null),this._annotationCanvasMap=q,this._accessibilityManager=F,this.div=null,this._cancelled=!1,this._eventBus=M.eventBus}async render(B){let j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"display";if(this.div){if(this._cancelled||S(this,b)===0)return;u.AnnotationLayer.update({viewport:B.clone({dontFlip:!0}),div:this.div,annotationCanvasMap:this._annotationCanvasMap});return}const[H,M,J]=await Promise.all([this.pdfPage.getAnnotations({intent:j}),this._hasJSActionsPromise,this._fieldObjectsPromise]);if(!this._cancelled){if(v(this,b,H.length),this.div=document.createElement("div"),this.div.className="annotationLayer",this.pageDiv.append(this.div),S(this,b)===0){this.hide();return}if(u.AnnotationLayer.render({viewport:B.clone({dontFlip:!0}),div:this.div,annotations:H,page:this.pdfPage,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,linkService:this.linkService,downloadManager:this.downloadManager,annotationStorage:this.annotationStorage,enableScripting:this.enableScripting,hasJSActions:M,fieldObjects:J,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager}),this.l10n.translate(this.div),this.linkService.isInPresentationMode&&g(this,w,R).call(this,f.PresentationModeState.FULLSCREEN),!S(this,m)){var ue;v(this,m,ae=>{g(this,w,R).call(this,ae.state)}),(ue=this._eventBus)===null||ue===void 0||ue._on("presentationmodechanged",S(this,m))}}}cancel(){if(this._cancelled=!0,S(this,m)){var B;(B=this._eventBus)===null||B===void 0||B._off("presentationmodechanged",S(this,m)),v(this,m,null)}}hide(){this.div&&(this.div.hidden=!0)}}s.AnnotationLayerBuilder=O;function R(I){if(!this.div)return;let B=!1;switch(I){case f.PresentationModeState.FULLSCREEN:B=!0;break;case f.PresentationModeState.NORMAL:break;default:return}for(const j of this.div.childNodes)j.hasAttribute("data-internal-link")||(j.inert=B)}},o=>{let s;typeof window<"u"&&window["pdfjs-dist/build/pdf"]?s=window["pdfjs-dist/build/pdf"]:s=requirePdf(),o.exports=s},(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.NullL10n=void 0,s.fixupLangCode=f,s.getL10nFallback=u;const l={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image"};l.print_progress_percent="{{progress}}%";function u(p,g){switch(p){case"find_match_count":p=`find_match_count[${g.total===1?"one":"other"}]`;break;case"find_match_count_limit":p=`find_match_count_limit[${g.limit===1?"one":"other"}]`;break}return l[p]||""}const c={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"};function f(p){return c[p==null?void 0:p.toLowerCase()]||p}function d(p,g){return g?p.replace(/\{\{\s*(\w+)\s*\}\}/g,(v,_)=>_ in g?g[_]:"{{"+_+"}}"):p}const h={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(p){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:u(p,g);return d(v,g)},async translate(p){}};s.NullL10n=h},(o,s,l)=>{var d;Object.defineProperty(s,"__esModule",{value:!0}),s.DownloadManager=void 0;var u=l(4);function c(h,p){const g=document.createElement("a");if(!g.click)throw new Error('DownloadManager: "a.click()" is not supported.');g.href=h,g.target="_parent","download"in g&&(g.download=p),(document.body||document.documentElement).append(g),g.click(),g.remove()}class f{constructor(){qt(this,d,new WeakMap)}downloadUrl(p,g){if(!(0,u.createValidAbsoluteUrl)(p,"http://example.com")){console.error(`downloadUrl - not a valid URL: ${p}`);return}c(p+"#pdfjs.action=download",g)}downloadData(p,g,v){const _=URL.createObjectURL(new Blob([p],{type:v}));c(_,g)}openOrDownloadData(p,g,v){const S=(0,u.isPdfFile)(v)?"application/pdf":"";return this.downloadData(g,v,S),!1}download(p,g,v){const _=URL.createObjectURL(p);c(_,v)}}d=new WeakMap,s.DownloadManager=f},(o,s)=>{var d;Object.defineProperty(s,"__esModule",{value:!0}),s.WaitOnType=s.EventBus=s.AutomationEventBus=void 0,s.waitOnEventOrTimeout=u;const l={EVENT:"event",TIMEOUT:"timeout"};s.WaitOnType=l;function u(h){let{target:p,name:g,delay:v=0}=h;return new Promise(function(_,S){if(typeof p!="object"||!(g&&typeof g=="string")||!(Number.isInteger(v)&&v>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function C(w){p instanceof c?p._off(g,A):p.removeEventListener(g,A),m&&clearTimeout(m),_(w)}const A=C.bind(null,l.EVENT);p instanceof c?p._on(g,A):p.addEventListener(g,A);const b=C.bind(null,l.TIMEOUT),m=setTimeout(b,v)})}class c{constructor(){qt(this,d,Object.create(null))}on(p,g){let v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this._on(p,g,{external:!0,once:v==null?void 0:v.once})}off(p,g){let v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this._off(p,g,{external:!0,once:v==null?void 0:v.once})}dispatch(p,g){const v=_t(this,d)[p];if(!v||v.length===0)return;let _;for(const{listener:S,external:C,once:A}of v.slice(0)){if(A&&this._off(p,S),C){(_||(_=[])).push(S);continue}S(g)}if(_){for(const S of _)S(g);_=null}}_on(p,g){var v;let _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;((v=_t(this,d))[p]||(v[p]=[])).push({listener:g,external:(_==null?void 0:_.external)===!0,once:(_==null?void 0:_.once)===!0})}_off(p,g){const v=_t(this,d)[p];if(v){for(let _=0,S=v.length;_<S;_++)if(v[_].listener===g){v.splice(_,1);return}}}}d=new WeakMap,s.EventBus=c;class f extends c{dispatch(p,g){throw new Error("Not implemented: AutomationEventBus.dispatch")}}s.AutomationEventBus=f},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.GenericL10n=void 0,l(9);var u=l(5);const c=document.webL10n;class f{constructor(h){this._lang=h,this._ready=new Promise((p,g)=>{c.setLanguage((0,u.fixupLangCode)(h),()=>{p(c)})})}async getLanguage(){return(await this._ready).getLanguage()}async getDirection(){return(await this._ready).getDirection()}async get(h){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:(0,u.getL10nFallback)(h,p);return(await this._ready).get(h,p,g)}async translate(h){return(await this._ready).translate(h)}}s.GenericL10n=f},()=>{document.webL10n=function(o,s,l){var u={},c="",f="textContent",d="",h={},p="loading",g=!0;function v(){return s.querySelectorAll('link[type="application/l10n"]')}function _(){var J=s.querySelector('script[type="application/l10n"]');return J?JSON.parse(J.innerHTML):null}function S(J){return J?J.querySelectorAll("*[data-l10n-id]"):[]}function C(J){if(!J)return{};var ue=J.getAttribute("data-l10n-id"),ae=J.getAttribute("data-l10n-args"),K={};if(ae)try{K=JSON.parse(ae)}catch{console.warn("could not parse arguments for #"+ue)}return{id:ue,args:K}}function A(J,ue,ae){ue=ue||function(N){},ae=ae||function(){};var K=new XMLHttpRequest;K.open("GET",J,g),K.overrideMimeType&&K.overrideMimeType("text/plain; charset=utf-8"),K.onreadystatechange=function(){K.readyState==4&&(K.status==200||K.status===0?ue(K.responseText):ae())},K.onerror=ae,K.ontimeout=ae;try{K.send(null)}catch{ae()}}function b(J,ue,ae,K){var P=J.replace(/[^\/]*$/,"")||"./";function N(L){return L.lastIndexOf("\\")<0?L:L.replace(/\\\\/g,"\\").replace(/\\n/g,`
|
|
373
373
|
`).replace(/\\r/g,"\r").replace(/\\t/g," ").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}function T(L,q){var F={},W=/^\s*|\s*$/,se=/^\s*#|^\s*$/,fe=/^\s*\[(.*)\]\s*$/,he=/^\s*@import\s+url\((.*)\)\s*$/i,oe=/^([^=\s]*)\s*=\s*(.+)$/;function be(Ae,Re,V){var _e=Ae.replace(W,"").split(/[\r\n]+/),G="*",z=ue.split("-",1)[0],U=!1,ne="";function Y(){for(;;){if(!_e.length){V();return}var ee=_e.shift();if(!se.test(ee)){if(Re){if(ne=fe.exec(ee),ne){G=ne[1].toLowerCase(),U=G!=="*"&&G!==ue&&G!==z;continue}else if(U)continue;if(ne=he.exec(ee),ne){Ee(P+ne[1],Y);return}}var Z=ee.match(oe);Z&&Z.length==3&&(F[Z[1]]=N(Z[2]))}}}Y()}function Ee(Ae,Re){A(Ae,function(V){be(V,!1,Re)},function(){console.warn(Ae+" not found."),Re()})}be(L,!0,function(){q(F)})}A(J,function(L){c+=L,T(L,function(q){for(var F in q){var W,se,fe=F.lastIndexOf(".");fe>0?(W=F.substring(0,fe),se=F.substring(fe+1)):(W=F,se=f),u[W]||(u[W]={}),u[W][se]=q[F]}ae&&ae()})},K)}function m(J,ue){J&&(J=J.toLowerCase()),ue=ue||function(){},w(),d=J;var ae=v(),K=ae.length;if(K===0){var P=_();if(P&&P.locales&&P.default_locale){if(console.log("using the embedded JSON directory, early way out"),u=P.locales[J],!u){var N=P.default_locale.toLowerCase();for(var T in P.locales)if(T=T.toLowerCase(),T===J){u=P.locales[J];break}else T===N&&(u=P.locales[N])}ue()}else console.log("no resource to load, early way out");p="complete";return}var L=null,q=0;L=function(){q++,q>=K&&(ue(),p="complete")};function F(fe){var he=fe.href;this.load=function(oe,be){b(he,oe,be,function(){console.warn(he+" not found."),console.warn('"'+oe+'" resource not found'),d="",be()})}}for(var W=0;W<K;W++){var se=new F(ae[W]);se.load(J,L)}}function w(){u={},c="",d=""}function O(J){var ue={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3};function ae(T,L){return L.indexOf(T)!==-1}function K(T,L,q){return L<=T&&T<=q}var P={0:function(T){return"other"},1:function(T){return K(T%100,3,10)?"few":T===0?"zero":K(T%100,11,99)?"many":T==2?"two":T==1?"one":"other"},2:function(T){return T!==0&&T%10===0?"many":T==2?"two":T==1?"one":"other"},3:function(T){return T==1?"one":"other"},4:function(T){return K(T,0,1)?"one":"other"},5:function(T){return K(T,0,2)&&T!=2?"one":"other"},6:function(T){return T===0?"zero":T%10==1&&T%100!=11?"one":"other"},7:function(T){return T==2?"two":T==1?"one":"other"},8:function(T){return K(T,3,6)?"few":K(T,7,10)?"many":T==2?"two":T==1?"one":"other"},9:function(T){return T===0||T!=1&&K(T%100,1,19)?"few":T==1?"one":"other"},10:function(T){return K(T%10,2,9)&&!K(T%100,11,19)?"few":T%10==1&&!K(T%100,11,19)?"one":"other"},11:function(T){return K(T%10,2,4)&&!K(T%100,12,14)?"few":T%10===0||K(T%10,5,9)||K(T%100,11,14)?"many":T%10==1&&T%100!=11?"one":"other"},12:function(T){return K(T,2,4)?"few":T==1?"one":"other"},13:function(T){return K(T%10,2,4)&&!K(T%100,12,14)?"few":T!=1&&K(T%10,0,1)||K(T%10,5,9)||K(T%100,12,14)?"many":T==1?"one":"other"},14:function(T){return K(T%100,3,4)?"few":T%100==2?"two":T%100==1?"one":"other"},15:function(T){return T===0||K(T%100,2,10)?"few":K(T%100,11,19)?"many":T==1?"one":"other"},16:function(T){return T%10==1&&T!=11?"one":"other"},17:function(T){return T==3?"few":T===0?"zero":T==6?"many":T==2?"two":T==1?"one":"other"},18:function(T){return T===0?"zero":K(T,0,2)&&T!==0&&T!=2?"one":"other"},19:function(T){return K(T,2,10)?"few":K(T,0,1)?"one":"other"},20:function(T){return(K(T%10,3,4)||T%10==9)&&!(K(T%100,10,19)||K(T%100,70,79)||K(T%100,90,99))?"few":T%1e6===0&&T!==0?"many":T%10==2&&!ae(T%100,[12,72,92])?"two":T%10==1&&!ae(T%100,[11,71,91])?"one":"other"},21:function(T){return T===0?"zero":T==1?"one":"other"},22:function(T){return K(T,0,1)||K(T,11,99)?"one":"other"},23:function(T){return K(T%10,1,2)||T%20===0?"one":"other"},24:function(T){return K(T,3,10)||K(T,13,19)?"few":ae(T,[2,12])?"two":ae(T,[1,11])?"one":"other"}},N=ue[J.replace(/-.*$/,"")];return N in P?P[N]:(console.warn("plural form unknown for ["+J+"]"),function(){return"other"})}h.plural=function(J,ue,ae,K){var P=parseFloat(ue);if(isNaN(P)||K!=f)return J;h._pluralRules||(h._pluralRules=O(d));var N="["+h._pluralRules(P)+"]";return P===0&&ae+"[zero]"in u?J=u[ae+"[zero]"][K]:P==1&&ae+"[one]"in u?J=u[ae+"[one]"][K]:P==2&&ae+"[two]"in u?J=u[ae+"[two]"][K]:ae+N in u?J=u[ae+N][K]:ae+"[other]"in u&&(J=u[ae+"[other]"][K]),J};function R(J,ue,ae){var K=u[J];if(!K){if(console.warn("#"+J+" is undefined."),!ae)return null;K=ae}var P={};for(var N in K){var T=K[N];T=I(T,ue,J,N),T=B(T,ue,J),P[N]=T}return P}function I(J,ue,ae,K){var P=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/,N=P.exec(J);if(!N||!N.length)return J;var T=N[1],L=N[2],q;if(ue&&L in ue?q=ue[L]:L in u&&(q=u[L]),T in h){var F=h[T];J=F(J,q,ae,K)}return J}function B(J,ue,ae){var K=/\{\{\s*(.+?)\s*\}\}/g;return J.replace(K,function(P,N){return ue&&N in ue?ue[N]:N in u?u[N]:(console.log("argument {{"+N+"}} for #"+ae+" is undefined."),P)})}function j(J){var ue=C(J);if(ue.id){var ae=R(ue.id,ue.args);if(!ae){console.warn("#"+ue.id+" is undefined.");return}if(ae[f]){if(H(J)===0)J[f]=ae[f];else{for(var K=J.childNodes,P=!1,N=0,T=K.length;N<T;N++)K[N].nodeType===3&&/\S/.test(K[N].nodeValue)&&(P?K[N].nodeValue="":(K[N].nodeValue=ae[f],P=!0));if(!P){var L=s.createTextNode(ae[f]);J.prepend(L)}}delete ae[f]}for(var q in ae)J[q]=ae[q]}}function H(J){if(J.children)return J.children.length;if(typeof J.childElementCount<"u")return J.childElementCount;for(var ue=0,ae=0;ae<J.childNodes.length;ae++)ue+=J.nodeType===1?1:0;return ue}function M(J){J=J||s.documentElement;for(var ue=S(J),ae=ue.length,K=0;K<ae;K++)j(ue[K]);j(J)}return{get:function(J,ue,ae){var K=J.lastIndexOf("."),P=f;K>0&&(P=J.substring(K+1),J=J.substring(0,K));var N;ae&&(N={},N[P]=ae);var T=R(J,ue,N);return T&&P in T?T[P]:"{{"+J+"}}"},getData:function(){return u},getText:function(){return c},getLanguage:function(){return d},setLanguage:function(J,ue){m(J,function(){ue&&ue()})},getDirection:function(){var J=["ar","he","fa","ps","ur"],ue=d.split("-",1)[0];return J.indexOf(ue)>=0?"rtl":"ltr"},translate:M,getReadyState:function(){return p},ready:function(J){if(J)p=="complete"||p=="interactive"?o.setTimeout(function(){J()}):s.addEventListener&&s.addEventListener("localized",function ue(){s.removeEventListener("localized",ue),J()});else return}}}(window,document)},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFFindController=s.FindState=void 0;var u=l(2),c=l(4),f=l(11);function d(ke,Te){p(ke,Te),Te.add(ke)}function h(ke,Te,Fe){p(ke,Te),Te.set(ke,Fe)}function p(ke,Te){if(Te.has(ke))throw new TypeError("Cannot initialize the same private elements twice on an object")}function g(ke,Te){var Fe=C(ke,Te,"get");return v(ke,Fe)}function v(ke,Te){return Te.get?Te.get.call(ke):Te.value}function _(ke,Te,Fe){if(!Te.has(ke))throw new TypeError("attempted to get private field on non-instance");return Fe}function S(ke,Te,Fe){var rt=C(ke,Te,"set");return A(ke,rt,Fe),Fe}function C(ke,Te,Fe){if(!Te.has(ke))throw new TypeError("attempted to "+Fe+" private field on non-instance");return Te.get(ke)}function A(ke,Te,Fe){if(Te.set)Te.set.call(ke,Fe);else{if(!Te.writable)throw new TypeError("attempted to set read only private field");Te.value=Fe}}const b={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};s.FindState=b;const m=250,w=-50,O=-400,R={"‐":"-","‘":"'","’":"'","‚":"'","‛":"'","“":'"',"”":'"',"„":'"',"‟":'"',"¼":"1/4","½":"1/2","¾":"3/4"},I=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 B;const j=/\p{M}+/gu,H=/([.*+?^${}()|[\]\\])|(\p{P})|(\s+)|(\p{M})|(\p{L})/gu,M=/([^\p{M}])\p{M}*$/u,J=/^\p{M}*([^\p{M}])/u,ue=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,ae=new Map,K="[\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f]",P=new Map;let N=null,T=null;function L(ke){const Te=[];let Fe;for(;(Fe=ue.exec(ke))!==null;){let{index:er}=Fe;for(const tr of Fe[0]){let ir=ae.get(tr);ir||(ir=tr.normalize("NFD").length,ae.set(tr,ir)),Te.push([ir,er++])}}let rt;if(Te.length===0&&N)rt=N;else if(Te.length>0&&T)rt=T;else{const Kt=`([${Object.keys(R).join("")}])|([①-⑳Ⓐ-⓿㉄-㊿㋐-㋾-])|((?:゙|゚)\\n)|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|((?:\\p{Ideographic}|[-ヿ])\\n)|(\\n)`;Te.length===0?rt=N=new RegExp(Kt+"|(\\u0000)","gum"):rt=T=new RegExp(Kt+`|(${K})`,"gum")}const et=[];for(;(Fe=j.exec(ke))!==null;)et.push([Fe[0].length,Fe.index]);let gt=ke.normalize("NFD");const dt=[[0,0]];let bt=0,Tt=0,vt=0,Nt=0,Dt=0,xt=!1;return gt=gt.replace(rt,(er,tr,ir,pr,Kt,St,ze,ut,yt,Ct)=>{var jt;if(Ct-=Nt,tr){const ar=R[tr],Ft=ar.length;for(let lr=1;lr<Ft;lr++)dt.push([Ct-vt+lr,vt-lr]);return vt-=Ft-1,ar}if(ir){let ar=P.get(ir);ar||(ar=ir.normalize("NFKC"),P.set(ir,ar));const Ft=ar.length;for(let lr=1;lr<Ft;lr++)dt.push([Ct-vt+lr,vt-lr]);return vt-=Ft-1,ar}if(pr){var Xt;return xt=!0,Ct+Dt===((Xt=et[bt])===null||Xt===void 0?void 0:Xt[1])?++bt:(dt.push([Ct-1-vt+1,vt-1]),vt-=1,Nt+=1),dt.push([Ct-vt+1,vt]),Nt+=1,Dt+=1,pr.charAt(0)}if(Kt){var or;const ar=Kt.endsWith(`
|
|
374
374
|
`),Ft=ar?Kt.length-2:Kt.length;xt=!0;let lr=Ft;Ct+Dt===((or=et[bt])===null||or===void 0?void 0:or[1])&&(lr-=et[bt][0],++bt);for(let kr=1;kr<=lr;kr++)dt.push([Ct-1-vt+kr,vt-kr]);return vt-=lr,Nt+=lr,ar?(Ct+=Ft-1,dt.push([Ct-vt+1,1+vt]),vt+=1,Nt+=1,Dt+=1,Kt.slice(0,Ft)):Kt}if(St)return dt.push([Ct-vt+1,1+vt]),vt+=1,Nt+=1,Dt+=1,St.charAt(0);if(ze)return dt.push([Ct-vt+1,vt]),Nt+=1,Dt+=1,ze.charAt(0);if(ut)return dt.push([Ct-vt+1,vt-1]),vt-=1,Nt+=1,Dt+=1," ";if(Ct+Dt===((jt=Te[Tt])===null||jt===void 0?void 0:jt[1])){const ar=Te[Tt][0]-1;++Tt;for(let Ft=1;Ft<=ar;Ft++)dt.push([Ct-(vt-Ft),vt-Ft]);vt-=ar,Nt+=ar}return yt}),dt.push([gt.length,vt]),[gt,dt,xt]}function q(ke,Te,Fe){if(!ke)return[Te,Fe];const rt=Te,et=Te+Fe;let gt=(0,u.binarySearchFirstItem)(ke,bt=>bt[0]>=rt);ke[gt][0]>rt&&--gt;let dt=(0,u.binarySearchFirstItem)(ke,bt=>bt[0]>=et,gt);return ke[dt][0]>et&&--dt,[rt+ke[gt][1],Fe+ke[dt][1]-ke[gt][1]]}var F=new WeakMap,W=new WeakMap,se=new WeakSet,fe=new WeakSet,he=new WeakMap,oe=new WeakSet,be=new WeakSet,Ee=new WeakSet,Ae=new WeakSet,Re=new WeakSet,V=new WeakSet,_e=new WeakSet,G=new WeakSet,z=new WeakSet,U=new WeakSet,ne=new WeakSet,Y=new WeakSet,ee=new WeakSet,Z=new WeakSet,le=new WeakSet,de=new WeakSet,ce=new WeakSet;class ge{constructor(Te){let{linkService:Fe,eventBus:rt,updateMatchesCountOnProgress:et=!0}=Te;d(this,ce),d(this,de),d(this,le),d(this,Z),d(this,ee),d(this,Y),d(this,ne),d(this,U),d(this,z),d(this,G),d(this,_e),d(this,V),d(this,Re),d(this,Ae),d(this,Ee),d(this,be),d(this,oe),h(this,he,{get:Pe,set:void 0}),d(this,fe),d(this,se),h(this,F,{writable:!0,value:!0}),h(this,W,{writable:!0,value:0}),this._linkService=Fe,this._eventBus=rt,S(this,F,et),_(this,fe,Ce).call(this),rt._on("find",_(this,se,Se).bind(this)),rt._on("findbarclose",_(this,Z,We).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._state}setDocument(Te){this._pdfDocument&&_(this,fe,Ce).call(this),Te&&(this._pdfDocument=Te,this._firstPageCapability.resolve())}scrollMatchIntoView(Te){let{element:Fe=null,selectedLeft:rt=0,pageIndex:et=-1,matchIndex:gt=-1}=Te;if(!this._scrollMatches||!Fe)return;if(gt===-1||gt!==this._selected.matchIdx)return;if(et===-1||et!==this._selected.pageIdx)return;this._scrollMatches=!1;const dt={top:w,left:rt+O};(0,u.scrollIntoView)(Fe,dt,!0)}}s.PDFFindController=ge;function Se(ke){if(!ke)return;const Te=this._pdfDocument,{type:Fe}=ke;(this._state===null||_(this,oe,Le).call(this,ke))&&(this._dirtyMatch=!0),this._state=ke,Fe!=="highlightallchange"&&_(this,ce,ht).call(this,b.PENDING),this._firstPageCapability.promise.then(()=>{if(!this._pdfDocument||Te&&this._pdfDocument!==Te)return;_(this,V,xe).call(this);const rt=!this._highlightMatches,et=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),Fe?this._dirtyMatch?_(this,z,Je).call(this):Fe==="again"?(_(this,z,Je).call(this),rt&&this._state.highlightAll&&_(this,G,qe).call(this)):Fe==="highlightallchange"?(et?_(this,z,Je).call(this):this._highlightMatches=!0,_(this,G,qe).call(this)):_(this,z,Je).call(this):this._findTimeout=setTimeout(()=>{_(this,z,Je).call(this),this._findTimeout=null},m)})}function Ce(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],S(this,W,0),this._state=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=(0,c.createPromiseCapability)()}function Pe(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,[this._normalizedQuery]=L(this._state.query)),this._normalizedQuery}function Le(ke){if(ke.query!==this._state.query)return!0;switch(ke.type){case"again":const Te=this._selected.pageIdx+1,Fe=this._linkService;return Te>=1&&Te<=Fe.pagesCount&&Te!==Fe.page&&!Fe.isPageVisible(Te);case"highlightallchange":return!1}return!0}function Ge(ke,Te,Fe){let rt=ke.slice(0,Te).match(M);if(rt){const et=ke.charCodeAt(Te),gt=rt[1].charCodeAt(0);if((0,f.getCharacterType)(et)===(0,f.getCharacterType)(gt))return!1}if(rt=ke.slice(Te+Fe).match(J),rt){const et=ke.charCodeAt(Te+Fe-1),gt=rt[1].charCodeAt(0);if((0,f.getCharacterType)(et)===(0,f.getCharacterType)(gt))return!1}return!0}function $e(ke,Te,Fe,rt){const et=this._pageMatches[Fe]=[],gt=this._pageMatchesLength[Fe]=[];if(!ke)return;const dt=this._pageDiffs[Fe];let bt;for(;(bt=ke.exec(rt))!==null;){if(Te&&!_(this,be,Ge).call(this,rt,bt.index,bt[0].length))continue;const[Tt,vt]=q(dt,bt.index,bt[0].length);vt&&(et.push(Tt),gt.push(vt))}}function ie(ke,Te){const{matchDiacritics:Fe}=this._state;let rt=!1;ke=ke.replace(H,(gt,dt,bt,Tt,vt,Nt)=>dt?`[ ]*\\${dt}[ ]*`:bt?`[ ]*${bt}[ ]*`:Tt?"[ ]+":Fe?vt||Nt:vt?I.has(vt.charCodeAt(0))?vt:"":Te?(rt=!0,`${Nt}\\p{M}*`):Nt);const et="[ ]*";return ke.endsWith(et)&&(ke=ke.slice(0,ke.length-et.length)),Fe&&Te&&(B||(B=String.fromCharCode(...I)),rt=!0,ke=`${ke}(?=[${B}]|[^\\p{M}]|$)`),[rt,ke]}function ve(ke){var Te;let Fe=g(this,he);if(!Fe)return;const{caseSensitive:rt,entireWord:et,phraseSearch:gt}=this._state,dt=this._pageContents[ke],bt=this._hasDiacritics[ke];let Tt=!1;if(gt)[Tt,Fe]=_(this,Ae,ie).call(this,Fe,bt);else{const Dt=Fe.match(/\S+/g);Dt&&(Fe=Dt.sort().reverse().map(xt=>{const[er,tr]=_(this,Ae,ie).call(this,xt,bt);return Tt||(Tt=er),`(${tr})`}).join("|"))}const vt=`g${Tt?"u":""}${rt?"":"i"}`;Fe=Fe?new RegExp(Fe,vt):null,_(this,Ee,$e).call(this,Fe,et,ke,dt),this._state.highlightAll&&_(this,_e,je).call(this,ke),this._resumePageIdx===ke&&(this._resumePageIdx=null,_(this,ne,Qe).call(this));const Nt=this._pageMatches[ke].length;this._matchesCountTotal+=Nt,g(this,F)?Nt>0&&_(this,de,nt).call(this):S(this,W,(Te=g(this,W),++Te))===this._linkService.pagesCount&&_(this,de,nt).call(this)}function xe(){if(this._extractTextPromises.length>0)return;let ke=Promise.resolve();for(let Te=0,Fe=this._linkService.pagesCount;Te<Fe;Te++){const rt=(0,c.createPromiseCapability)();this._extractTextPromises[Te]=rt.promise,ke=ke.then(()=>this._pdfDocument.getPage(Te+1).then(et=>et.getTextContent()).then(et=>{const gt=[];for(const dt of et.items)gt.push(dt.str),dt.hasEOL&>.push(`
|
|
375
|
-
`);[this._pageContents[Te],this._pageDiffs[Te],this._hasDiacritics[Te]]=L(gt.join("")),rt.resolve()},et=>{console.error(`Unable to get text content for page ${Te+1}`,et),this._pageContents[Te]="",this._pageDiffs[Te]=null,this._hasDiacritics[Te]=!1,rt.resolve()}))}}function je(ke){this._scrollMatches&&this._selected.pageIdx===ke&&(this._linkService.page=ke+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:ke})}function qe(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}function Je(){const ke=this._state.findPrevious,Te=this._linkService.page-1,Fe=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=Te,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,S(this,W,0),this._matchesCountTotal=0,_(this,G,qe).call(this);for(let et=0;et<Fe;et++)this._pendingFindMatches.has(et)||(this._pendingFindMatches.add(et),this._extractTextPromises[et].then(()=>{this._pendingFindMatches.delete(et),_(this,Re,ve).call(this,et)}))}if(!g(this,he)){_(this,ce,ht).call(this,b.FOUND);return}if(this._resumePageIdx)return;const rt=this._offset;if(this._pagesToSearch=Fe,rt.matchIdx!==null){const et=this._pageMatches[rt.pageIdx].length;if(!ke&&rt.matchIdx+1<et||ke&&rt.matchIdx>0){rt.matchIdx=ke?rt.matchIdx-1:rt.matchIdx+1,_(this,ee,Ie).call(this,!0);return}_(this,Y,Ue).call(this,ke)}_(this,ne,Qe).call(this)}function He(ke){const Te=this._offset,Fe=ke.length,rt=this._state.findPrevious;return Fe?(Te.matchIdx=rt?Fe-1:0,_(this,ee,Ie).call(this,!0),!0):(_(this,Y,Ue).call(this,rt),Te.wrapped&&(Te.matchIdx=null,this._pagesToSearch<0)?(_(this,ee,Ie).call(this,!1),!0):!1)}function Qe(){this._resumePageIdx!==null&&console.error("There can only be one pending page.");let ke=null;do{const Te=this._offset.pageIdx;if(ke=this._pageMatches[Te],!ke){this._resumePageIdx=Te;break}}while(!_(this,U,He).call(this,ke))}function Ue(ke){const Te=this._offset,Fe=this._linkService.pagesCount;Te.pageIdx=ke?Te.pageIdx-1:Te.pageIdx+1,Te.matchIdx=null,this._pagesToSearch--,(Te.pageIdx>=Fe||Te.pageIdx<0)&&(Te.pageIdx=ke?Fe-1:0,Te.wrapped=!0)}function Ie(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Te=b.NOT_FOUND;const Fe=this._offset.wrapped;if(this._offset.wrapped=!1,ke){const rt=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,Te=Fe?b.WRAPPED:b.FOUND,rt!==-1&&rt!==this._selected.pageIdx&&_(this,_e,je).call(this,rt)}_(this,ce,ht).call(this,Te,this._state.findPrevious),this._selected.pageIdx!==-1&&(this._scrollMatches=!0,_(this,_e,je).call(this,this._selected.pageIdx))}function We(ke){const Te=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||Te&&this._pdfDocument!==Te||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),_(this,ce,ht).call(this,b.FOUND),this._highlightMatches=!1,_(this,G,qe).call(this))})}function lt(){const{pageIdx:ke,matchIdx:Te}=this._selected;let Fe=0,rt=this._matchesCountTotal;if(Te!==-1){for(let gt=0;gt<ke;gt++){var et;Fe+=((et=this._pageMatches[gt])===null||et===void 0?void 0:et.length)||0}Fe+=Te+1}return(Fe<1||Fe>rt)&&(Fe=rt=0),{current:Fe,total:rt}}function nt(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:_(this,le,lt).call(this)})}function ht(ke){var Te;let Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!g(this,F)&&(g(this,W)!==this._linkService.pagesCount||ke===b.PENDING)||this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:ke,previous:Fe,matchesCount:_(this,le,lt).call(this),rawQuery:((Te=this._state)===null||Te===void 0?void 0:Te.query)??null})}},(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CharacterType=void 0,s.getCharacterType=C;const l={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};s.CharacterType=l;function u(A){return A<11904}function c(A){return(A&65408)===0}function f(A){return A>=97&&A<=122||A>=65&&A<=90}function d(A){return A>=48&&A<=57}function h(A){return A===32||A===9||A===13||A===10}function p(A){return A>=13312&&A<=40959||A>=63744&&A<=64255}function g(A){return A>=12448&&A<=12543}function v(A){return A>=12352&&A<=12447}function _(A){return A>=65376&&A<=65439}function S(A){return(A&65408)===3584}function C(A){return u(A)?c(A)?h(A)?l.SPACE:f(A)||d(A)||A===95?l.ALPHA_LETTER:l.PUNCT:S(A)?l.THAI_LETTER:A===160?l.SPACE:l.ALPHA_LETTER:p(A)?l.HAN_LETTER:g(A)?l.KATAKANA_LETTER:v(A)?l.HIRAGANA_LETTER:_(A)?l.HALFWIDTH_KATAKANA_LETTER:l.ALPHA_LETTER}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFHistory=void 0,s.isDestArraysEqual=_,s.isDestHashesEqual=v;var u=l(2),c=l(7);const f=1e3,d=50,h=1e3;function p(){return document.location.hash}class g{constructor(C){let{linkService:A,eventBus:b}=C;this.linkService=A,this.eventBus=b,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",m=>{this._isPagesLoaded=!!m.pagesCount},{once:!0})})}initialize(C){let{fingerprint:A,resetHistory:b=!1,updateUrl:m=!1}=C;if(!A||typeof A!="string"){console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');return}this._initialized&&this.reset();const w=this._fingerprint!==""&&this._fingerprint!==A;this._fingerprint=A,this._updateUrl=m===!0,this._initialized=!0,this._bindEvents();const O=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=p(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(O,!0)||b){const{hash:I,page:B,rotation:j}=this._parseCurrentHash(!0);if(!I||w||b){this._pushOrReplaceState(null,!0);return}this._pushOrReplaceState({hash:I,page:B,rotation:j},!0);return}const R=O.destination;this._updateInternalState(R,O.uid,!0),R.rotation!==void 0&&(this._initialRotation=R.rotation),R.dest?(this._initialBookmark=JSON.stringify(R.dest),this._destination.page=null):R.hash?this._initialBookmark=R.hash:R.page&&(this._initialBookmark=`page=${R.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push(C){let{namedDest:A=null,explicitDest:b,pageNumber:m}=C;if(!this._initialized)return;if(A&&typeof A!="string"){console.error(`PDFHistory.push: "${A}" is not a valid namedDest parameter.`);return}else if(Array.isArray(b)){if(!this._isValidPage(m)&&(m!==null||this._destination)){console.error(`PDFHistory.push: "${m}" is not a valid pageNumber parameter.`);return}}else{console.error(`PDFHistory.push: "${b}" is not a valid explicitDest parameter.`);return}const w=A||JSON.stringify(b);if(!w)return;let O=!1;if(this._destination&&(v(this._destination.hash,w)||_(this._destination.dest,b))){if(this._destination.page)return;O=!0}this._popStateInProgress&&!O||(this._pushOrReplaceState({dest:b,hash:w,page:m,rotation:this.linkService.rotation},O),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(C){var A;if(this._initialized){if(!this._isValidPage(C)){console.error(`PDFHistory.pushPage: "${C}" is not a valid page number.`);return}((A=this._destination)===null||A===void 0?void 0:A.page)!==C&&(this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:`page=${C}`,page:C,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const C=window.history.state;this._isValidState(C)&&C.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const C=window.history.state;this._isValidState(C)&&C.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}_pushOrReplaceState(C){const b=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)||!this._destination,m={fingerprint:this._fingerprint,uid:b?this._uid:this._uid+1,destination:C};this._updateInternalState(C,m.uid);let w;if(this._updateUrl&&C!==null&&C!==void 0&&C.hash){const O=document.location.href.split("#")[0];O.startsWith("file://")||(w=`${O}#${C.hash}`)}b?window.history.replaceState(m,"",w):window.history.pushState(m,"",w)}_tryPushCurrentPosition(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this._position)return;let A=this._position;if(C&&(A=Object.assign(Object.create(null),this._position),A.temporary=!0),!this._destination){this._pushOrReplaceState(A);return}if(this._destination.temporary){this._pushOrReplaceState(A,!0);return}if(this._destination.hash===A.hash||!this._destination.page&&this._numPositionUpdates<=d)return;let b=!1;if(this._destination.page>=A.first&&this._destination.page<=A.page){if(this._destination.dest!==void 0||!this._destination.first)return;b=!0}this._pushOrReplaceState(A,b)}_isValidPage(C){return Number.isInteger(C)&&C>0&&C<=this.linkService.pagesCount}_isValidState(C){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!C)return!1;if(C.fingerprint!==this._fingerprint)if(A){if(typeof C.fingerprint!="string"||C.fingerprint.length!==this._fingerprint.length)return!1;const[b]=performance.getEntriesByType("navigation");if((b==null?void 0:b.type)!=="reload")return!1}else return!1;return!(!Number.isInteger(C.uid)||C.uid<0||C.destination===null||typeof C.destination!="object")}_updateInternalState(C,A){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),b&&C!==null&&C!==void 0&&C.temporary&&delete C.temporary,this._destination=C,this._uid=A,this._maxUid=Math.max(this._maxUid,A),this._numPositionUpdates=0}_parseCurrentHash(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const A=unescape(p()).substring(1),b=(0,u.parseQueryString)(A),m=b.get("nameddest")||"";let w=b.get("page")|0;return(!this._isValidPage(w)||C&&m.length>0)&&(w=null),{hash:A,page:w,rotation:this.linkService.rotation}}_updateViewarea(C){let{location:A}=C;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:A.pdfOpenParams.substring(1),page:this.linkService.page,first:A.pageNumber,rotation:A.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},h))}_popState(C){let{state:A}=C;const b=p(),m=this._currentHash!==b;if(this._currentHash=b,!A){this._uid++;const{hash:O,page:R,rotation:I}=this._parseCurrentHash();this._pushOrReplaceState({hash:O,page:R,rotation:I},!0);return}if(!this._isValidState(A))return;this._popStateInProgress=!0,m&&(this._blockHashChange++,(0,c.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:f}).then(()=>{this._blockHashChange--}));const w=A.destination;this._updateInternalState(w,A.uid,!0),(0,u.isValidRotation)(w.rotation)&&(this.linkService.rotation=w.rotation),w.dest?this.linkService.goToDestination(w.dest):w.hash?this.linkService.setHash(w.hash):w.page&&(this.linkService.page=w.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}_pageHide(){(!this._destination||this._destination.temporary)&&this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}s.PDFHistory=g;function v(S,C){return typeof S!="string"||typeof C!="string"?!1:S===C||(0,u.parseQueryString)(S).get("nameddest")===C}function _(S,C){function A(b,m){if(typeof b!=typeof m||Array.isArray(b)||Array.isArray(m))return!1;if(b!==null&&typeof b=="object"&&m!==null){if(Object.keys(b).length!==Object.keys(m).length)return!1;for(const w in b)if(!A(b[w],m[w]))return!1;return!0}return b===m||Number.isNaN(b)&&Number.isNaN(m)}if(!(Array.isArray(S)&&Array.isArray(C))||S.length!==C.length)return!1;for(let b=0,m=S.length;b<m;b++)if(!A(S[b],C[b]))return!1;return!0}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFPageView=void 0;var u=l(4),c=l(2),f=l(14),d=l(3),h=l(15),p=l(5),g=l(1),v=l(16),_=l(17),S=l(18),C=l(19),A=l(20);function b(z,U){w(z,U),U.add(z)}function m(z,U,ne){w(z,U),U.set(z,ne)}function w(z,U){if(U.has(z))throw new TypeError("Cannot initialize the same private elements twice on an object")}function O(z,U){var ne=j(z,U,"get");return R(z,ne)}function R(z,U){return U.get?U.get.call(z):U.value}function I(z,U,ne){if(!U.has(z))throw new TypeError("attempted to get private field on non-instance");return ne}function B(z,U,ne){var Y=j(z,U,"set");return H(z,Y,ne),ne}function j(z,U,ne){if(!U.has(z))throw new TypeError("attempted to "+ne+" private field on non-instance");return U.get(z)}function H(z,U,ne){if(U.set)U.set.call(z,ne);else{if(!U.writable)throw new TypeError("attempted to set read only private field");U.value=ne}}const M=h.compatibilityParams.maxCanvasPixels||16777216,J=()=>({annotationEditorUIManager:null,annotationStorage:null,downloadManager:null,enableScripting:!1,fieldObjectsPromise:null,findController:null,hasJSActionsPromise:null,get linkService(){return new g.SimpleLinkService}});var ue=new WeakMap,ae=new WeakMap,K=new WeakMap,P=new WeakMap,N=new WeakMap,T=new WeakMap,L=new WeakSet,q=new WeakSet,F=new WeakSet,W=new WeakSet,se=new WeakSet,fe=new WeakSet,he=new WeakSet;class oe{constructor(U){var ne;b(this,he),b(this,fe),b(this,se),b(this,W),b(this,F),b(this,q),b(this,L),m(this,ue,{writable:!0,value:u.AnnotationMode.ENABLE_FORMS}),m(this,ae,{writable:!0,value:null}),m(this,K,{writable:!0,value:null}),m(this,P,{writable:!0,value:null}),m(this,N,{writable:!0,value:c.RenderingStates.INITIAL}),m(this,T,{writable:!0,value:{initialOptionalContent:!0,regularAnnotations:!0}});const Y=U.container,ee=U.defaultViewport;this.id=U.id,this.renderingId="page"+this.id,B(this,ae,U.layerProperties||J),this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=U.scale||c.DEFAULT_SCALE,this.viewport=ee,this.pdfPageRotate=ee.rotation,this._optionalContentConfigPromise=U.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=U.textLayerMode??c.TextLayerMode.ENABLE,B(this,ue,U.annotationMode??u.AnnotationMode.ENABLE_FORMS),this.imageResourcesPath=U.imageResourcesPath||"",this.useOnlyCssZoom=U.useOnlyCssZoom||!1,this.isOffscreenCanvasSupported=U.isOffscreenCanvasSupported??!0,this.maxCanvasPixels=U.maxCanvasPixels||M,this.pageColors=U.pageColors||null,this.eventBus=U.eventBus,this.renderingQueue=U.renderingQueue,this.renderer=U.renderer||c.RendererType.CANVAS,this.l10n=U.l10n||p.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.resume=null,this._renderError=null,this._isStandalone=!((ne=this.renderingQueue)!==null&&ne!==void 0&&ne.hasViewer()),this._annotationCanvasMap=null,this.annotationLayer=null,this.annotationEditorLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;const Z=document.createElement("div");if(Z.className="page",Z.setAttribute("data-page-number",this.id),Z.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then(le=>{Z.setAttribute("aria-label",le)}),this.div=Z,I(this,L,be).call(this),Y==null||Y.append(Z),this._isStandalone){Y==null||Y.style.setProperty("--scale-factor",this.scale*u.PixelsPerInch.PDF_TO_CSS_UNITS);const{optionalContentConfigPromise:le}=U;le&&le.then(de=>{le===this._optionalContentConfigPromise&&(O(this,T).initialOptionalContent=de.hasInitialVisibility)})}}get renderingState(){return O(this,N)}set renderingState(U){if(U!==O(this,N))switch(B(this,N,U),O(this,K)&&(clearTimeout(O(this,K)),B(this,K,null)),U){case c.RenderingStates.PAUSED:this.div.classList.remove("loading");break;case c.RenderingStates.RUNNING:this.div.classList.add("loadingIcon"),B(this,K,setTimeout(()=>{this.div.classList.add("loading"),B(this,K,null)},0));break;case c.RenderingStates.INITIAL:case c.RenderingStates.FINISHED:this.div.classList.remove("loadingIcon","loading");break}}setPdfPage(U){this.pdfPage=U,this.pdfPageRotate=U.rotate;const ne=(this.rotation+this.pdfPageRotate)%360;this.viewport=U.getViewport({scale:this.scale*u.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:ne}),I(this,L,be).call(this),this.reset()}destroy(){var U;this.reset(),(U=this.pdfPage)===null||U===void 0||U.cleanup()}get _textHighlighter(){return(0,u.shadow)(this,"_textHighlighter",new S.TextHighlighter({pageIndex:this.id-1,eventBus:this.eventBus,findController:O(this,ae).call(this).findController}))}_resetZoomLayer(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.zoomLayer)return;const ne=this.zoomLayer.firstChild;this.paintedViewportMap.delete(ne),ne.width=0,ne.height=0,U&&this.zoomLayer.remove(),this.zoomLayer=null}reset(){var U,ne,Y,ee,Z;let{keepZoomLayer:le=!1,keepAnnotationLayer:de=!1,keepAnnotationEditorLayer:ce=!1,keepXfaLayer:ge=!1,keepTextLayer:Se=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.cancelRendering({keepAnnotationLayer:de,keepAnnotationEditorLayer:ce,keepXfaLayer:ge,keepTextLayer:Se}),this.renderingState=c.RenderingStates.INITIAL;const Ce=this.div,Pe=Ce.childNodes,Le=le&&this.zoomLayer||null,Ge=de&&((U=this.annotationLayer)===null||U===void 0?void 0:U.div)||null,$e=ce&&((ne=this.annotationEditorLayer)===null||ne===void 0?void 0:ne.div)||null,ie=ge&&((Y=this.xfaLayer)===null||Y===void 0?void 0:Y.div)||null,ve=Se&&((ee=this.textLayer)===null||ee===void 0?void 0:ee.div)||null;for(let xe=Pe.length-1;xe>=0;xe--){const je=Pe[xe];switch(je){case Le:case Ge:case $e:case ie:case ve:continue}je.remove()}Ce.removeAttribute("data-loaded"),Ge&&this.annotationLayer.hide(),$e&&this.annotationEditorLayer.hide(),ie&&this.xfaLayer.hide(),ve&&this.textLayer.hide(),(Z=this.structTreeLayer)===null||Z===void 0||Z.hide(),Le||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg)}update(U){let{scale:ne=0,rotation:Y=null,optionalContentConfigPromise:ee=null,drawingDelay:Z=-1}=U;this.scale=ne||this.scale,typeof Y=="number"&&(this.rotation=Y),ee instanceof Promise&&(this._optionalContentConfigPromise=ee,ee.then(Se=>{ee===this._optionalContentConfigPromise&&(O(this,T).initialOptionalContent=Se.hasInitialVisibility)}));const le=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*u.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:le}),I(this,L,be).call(this),this._isStandalone){var de;(de=this.div.parentNode)===null||de===void 0||de.style.setProperty("--scale-factor",this.viewport.scale)}if(this.svg){this.cssTransform({target:this.svg,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0,redrawTextLayer:!0}),this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});return}let ce=!1;if(this.canvas&&this.maxCanvasPixels>0){const Se=this.outputScale;(Math.floor(this.viewport.width)*Se.sx|0)*(Math.floor(this.viewport.height)*Se.sy|0)>this.maxCanvasPixels&&(ce=!0)}const ge=Z>=0&&Z<1e3;if(this.canvas){if(ge||this.useOnlyCssZoom||this.hasRestrictedScaling&&ce){ge&&this.renderingState!==c.RenderingStates.FINISHED&&(this.cancelRendering({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,cancelExtraDelay:Z}),this.renderingState=c.RenderingStates.FINISHED),this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0,redrawTextLayer:!ge,hideTextLayer:ge}),this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});return}!this.zoomLayer&&!this.canvas.hidden&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0})}cancelRendering(){let{keepAnnotationLayer:U=!1,keepAnnotationEditorLayer:ne=!1,keepXfaLayer:Y=!1,keepTextLayer:ee=!1,cancelExtraDelay:Z=0}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this.paintTask&&(this.paintTask.cancel(Z),this.paintTask=null),this.resume=null,this.textLayer&&(!ee||!this.textLayer.div)&&(this.textLayer.cancel(),this.textLayer=null),this.structTreeLayer&&!this.textLayer&&(this.structTreeLayer=null),this.annotationLayer&&(!U||!this.annotationLayer.div)&&(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),this.annotationEditorLayer&&(!ne||!this.annotationEditorLayer.div)&&(this.annotationEditorLayer.cancel(),this.annotationEditorLayer=null),this.xfaLayer&&(!Y||!this.xfaLayer.div)){var le;this.xfaLayer.cancel(),this.xfaLayer=null,(le=this._textHighlighter)===null||le===void 0||le.disable()}}cssTransform(U){let{target:ne,redrawAnnotationLayer:Y=!1,redrawAnnotationEditorLayer:ee=!1,redrawXfaLayer:Z=!1,redrawTextLayer:le=!1,hideTextLayer:de=!1}=U;if(ne instanceof HTMLCanvasElement){if(!ne.hasAttribute("zooming")){ne.setAttribute("zooming",!0);const{style:Se}=ne;Se.width=Se.height=""}}else{const Se=this.div,{width:Ce,height:Pe}=this.viewport;ne.style.width=ne.parentNode.style.width=Se.style.width=Math.floor(Ce)+"px",ne.style.height=ne.parentNode.style.height=Se.style.height=Math.floor(Pe)+"px"}const ce=this.paintedViewportMap.get(ne);if(this.viewport!==ce){const Se=this.viewport.rotation-ce.rotation,Ce=Math.abs(Se);let Pe=1,Le=1;if(Ce===90||Ce===270){const{width:Ge,height:$e}=this.viewport;Pe=$e/Ge,Le=Ge/$e}Ce!==0&&(ne.style.transform=`rotate(${Se}deg) scale(${Pe}, ${Le})`)}if(Y&&this.annotationLayer&&I(this,q,Ee).call(this),ee&&this.annotationEditorLayer&&I(this,F,Ae).call(this),Z&&this.xfaLayer&&I(this,W,Re).call(this),this.textLayer)if(de){var ge;this.textLayer.hide(),(ge=this.structTreeLayer)===null||ge===void 0||ge.hide()}else le&&I(this,se,V).call(this)}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(U,ne){return this.viewport.convertToPdfPoint(U,ne)}draw(){var U=this;this.renderingState!==c.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:ne,pdfPage:Y}=this;if(!Y)return this.renderingState=c.RenderingStates.FINISHED,Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=c.RenderingStates.RUNNING;const ee=document.createElement("div");if(ee.classList.add("canvasWrapper"),ne.append(ee),!this.textLayer&&this.textLayerMode!==c.TextLayerMode.DISABLE&&!Y.isPureXfa&&(this._accessibilityManager||(this._accessibilityManager=new _.TextAccessibilityManager),this.textLayer=new C.TextLayerBuilder({highlighter:this._textHighlighter,accessibilityManager:this._accessibilityManager,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported}),ne.append(this.textLayer.div)),!this.annotationLayer&&O(this,ue)!==u.AnnotationMode.DISABLE){const{annotationStorage:ge,downloadManager:Se,enableScripting:Ce,fieldObjectsPromise:Pe,hasJSActionsPromise:Le,linkService:Ge}=O(this,ae).call(this);this._annotationCanvasMap||(this._annotationCanvasMap=new Map),this.annotationLayer=new d.AnnotationLayerBuilder({pageDiv:ne,pdfPage:Y,annotationStorage:ge,imageResourcesPath:this.imageResourcesPath,renderForms:O(this,ue)===u.AnnotationMode.ENABLE_FORMS,linkService:Ge,downloadManager:Se,l10n:this.l10n,enableScripting:Ce,hasJSActionsPromise:Le,fieldObjectsPromise:Pe,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager})}let Z=null;this.renderingQueue&&(Z=ge=>{if(!this.renderingQueue.isHighestPriority(this)){this.renderingState=c.RenderingStates.PAUSED,this.resume=()=>{this.renderingState=c.RenderingStates.RUNNING,ge()};return}ge()});const le=async function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(de===U.paintTask&&(U.paintTask=null),ge instanceof u.RenderingCancelledException){U._renderError=null;return}if(U._renderError=ge,U.renderingState=c.RenderingStates.FINISHED,U._resetZoomLayer(!0),O(U,T).regularAnnotations=!de.separateAnnots,U.eventBus.dispatch("pagerendered",{source:U,pageNumber:U.id,cssTransform:!1,timestamp:performance.now(),error:U._renderError}),ge)throw ge},de=this.renderer===c.RendererType.SVG?this.paintOnSvg(ee):this.paintOnCanvas(ee);de.onRenderContinue=Z,this.paintTask=de;const ce=de.promise.then(()=>le(null).then(async()=>{if(I(this,se,V).call(this),this.annotationLayer&&await I(this,q,Ee).call(this),!this.annotationEditorLayer){const{annotationEditorUIManager:ge}=O(this,ae).call(this);if(!ge)return;this.annotationEditorLayer=new f.AnnotationEditorLayerBuilder({uiManager:ge,pageDiv:ne,pdfPage:Y,l10n:this.l10n,accessibilityManager:this._accessibilityManager})}I(this,F,Ae).call(this)}),function(ge){return le(ge)});if(Y.isPureXfa){if(this.xfaLayer)this.xfaLayer.div&&ne.append(this.xfaLayer.div);else{const{annotationStorage:ge,linkService:Se}=O(this,ae).call(this);this.xfaLayer=new A.XfaLayerBuilder({pageDiv:ne,pdfPage:Y,annotationStorage:ge,linkService:Se})}I(this,W,Re).call(this)}return ne.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),ce}paintOnCanvas(U){const ne=(0,u.createPromiseCapability)(),Y={promise:ne.promise,onRenderContinue(xe){xe()},cancel(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;ve.cancel(xe)},get separateAnnots(){return ve.separateAnnots}},ee=this.viewport,{width:Z,height:le}=ee,de=document.createElement("canvas");de.setAttribute("role","presentation"),de.hidden=!0;let ce=!0;const ge=function(){ce&&(de.hidden=!1,ce=!1)};U.append(de),this.canvas=de;const Se=de.getContext("2d",{alpha:!1}),Ce=this.outputScale=new c.OutputScale;if(this.useOnlyCssZoom){const xe=ee.clone({scale:u.PixelsPerInch.PDF_TO_CSS_UNITS});Ce.sx*=xe.width/Z,Ce.sy*=xe.height/le}if(this.maxCanvasPixels>0){const xe=Z*le,je=Math.sqrt(this.maxCanvasPixels/xe);Ce.sx>je||Ce.sy>je?(Ce.sx=je,Ce.sy=je,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const Pe=(0,c.approximateFraction)(Ce.sx),Le=(0,c.approximateFraction)(Ce.sy);de.width=(0,c.roundToDivide)(ee.width*Ce.sx,Pe[0]),de.height=(0,c.roundToDivide)(ee.height*Ce.sy,Le[0]);const{style:Ge}=de;Ge.width=(0,c.roundToDivide)(ee.width,Pe[1])+"px",Ge.height=(0,c.roundToDivide)(ee.height,Le[1])+"px",this.paintedViewportMap.set(de,ee);const $e=Ce.scaled?[Ce.sx,0,0,Ce.sy,0,0]:null,ie={canvasContext:Se,transform:$e,viewport:ee,annotationMode:O(this,ue),optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors},ve=this.pdfPage.render(ie);return ve.onContinue=function(xe){ge(),Y.onRenderContinue?Y.onRenderContinue(xe):xe()},ve.promise.then(function(){ge(),ne.resolve()},function(xe){xe instanceof u.RenderingCancelledException||ge(),ne.reject(xe)}),Y}paintOnSvg(U){let ne=!1;const Y=()=>{if(ne)throw new u.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},ee=this.pdfPage,Z=this.viewport.clone({scale:u.PixelsPerInch.PDF_TO_CSS_UNITS});return{promise:ee.getOperatorList({annotationMode:O(this,ue)}).then(de=>(Y(),new u.SVGGraphics(ee.commonObjs,ee.objs).getSVG(de,Z).then(ge=>{Y(),this.svg=ge,this.paintedViewportMap.set(ge,Z),ge.style.width=U.style.width,ge.style.height=U.style.height,this.renderingState=c.RenderingStates.FINISHED,U.append(ge)}))),onRenderContinue(de){de()},cancel(){ne=!0},get separateAnnots(){return!1}}}setPageLabel(U){this.pageLabel=typeof U=="string"?U:null,this.pageLabel!==null?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}get thumbnailCanvas(){const{initialOptionalContent:U,regularAnnotations:ne}=O(this,T);return U&&ne?this.canvas:null}}s.PDFPageView=oe;function be(){const{viewport:z}=this;if(this.pdfPage){if(O(this,P)===z.rotation)return;B(this,P,z.rotation)}(0,u.setLayerDimensions)(this.div,z,!0,!1)}async function Ee(){let z=null;try{await this.annotationLayer.render(this.viewport,"display")}catch(U){console.error(`#renderAnnotationLayer: "${U}".`),z=U}finally{this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:z})}}async function Ae(){let z=null;try{await this.annotationEditorLayer.render(this.viewport,"display")}catch(U){console.error(`#renderAnnotationEditorLayer: "${U}".`),z=U}finally{this.eventBus.dispatch("annotationeditorlayerrendered",{source:this,pageNumber:this.id,error:z})}}async function Re(){let z=null;try{const U=await this.xfaLayer.render(this.viewport,"display");U!=null&&U.textDivs&&this._textHighlighter&&I(this,he,G).call(this,U.textDivs)}catch(U){console.error(`#renderXfaLayer: "${U}".`),z=U}finally{this.eventBus.dispatch("xfalayerrendered",{source:this,pageNumber:this.id,error:z})}}async function V(){const{pdfPage:z,textLayer:U,viewport:ne}=this;if(!U)return;let Y=null;try{if(!U.renderingDone){const ee=z.streamTextContent({includeMarkedContent:!0});U.setTextContentSource(ee)}await U.render(ne)}catch(ee){if(ee instanceof u.AbortException)return;console.error(`#renderTextLayer: "${ee}".`),Y=ee}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.id,numTextDivs:U.numTextDivs,error:Y}),I(this,fe,_e).call(this)}async function _e(){var z,U;if(!this.textLayer)return;this.structTreeLayer||(this.structTreeLayer=new v.StructTreeLayerBuilder);const ne=await(this.structTreeLayer.renderingDone?null:this.pdfPage.getStructTree()),Y=(z=this.structTreeLayer)===null||z===void 0?void 0:z.render(ne);if(Y){var ee;(ee=this.canvas)===null||ee===void 0||ee.append(Y)}(U=this.structTreeLayer)===null||U===void 0||U.show()}async function G(z){const U=await this.pdfPage.getTextContent(),ne=[];for(const Y of U.items)ne.push(Y.str);this._textHighlighter.setTextMapping(z,ne),this._textHighlighter.enable()}},(o,s,l)=>{var d;Object.defineProperty(s,"__esModule",{value:!0}),s.AnnotationEditorLayerBuilder=void 0;var u=l(4),c=l(5);class f{constructor(p){qt(this,d,void 0);this.pageDiv=p.pageDiv,this.pdfPage=p.pdfPage,this.accessibilityManager=p.accessibilityManager,this.l10n=p.l10n||c.NullL10n,this.annotationEditorLayer=null,this.div=null,this._cancelled=!1,Qt(this,d,p.uiManager)}async render(p){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"display";if(g!=="display"||this._cancelled)return;const v=p.clone({dontFlip:!0});if(this.div){this.annotationEditorLayer.update({viewport:v}),this.show();return}const _=this.div=document.createElement("div");_.className="annotationEditorLayer",_.tabIndex=0,_.hidden=!0,this.pageDiv.append(_),this.annotationEditorLayer=new u.AnnotationEditorLayer({uiManager:_t(this,d),div:_,accessibilityManager:this.accessibilityManager,pageIndex:this.pdfPage.pageNumber-1,l10n:this.l10n,viewport:v});const S={viewport:v,div:_,annotations:null,intent:g};this.annotationEditorLayer.render(S),this.show()}cancel(){this._cancelled=!0,this.div&&(this.pageDiv=null,this.annotationEditorLayer.destroy(),this.div.remove())}hide(){this.div&&(this.div.hidden=!0)}show(){!this.div||this.annotationEditorLayer.isEmpty||(this.div.hidden=!1)}}d=new WeakMap,s.AnnotationEditorLayerBuilder=f},(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.compatibilityParams=s.OptionKind=s.AppOptions=void 0;const l=Object.create(null);s.compatibilityParams=l;{const h=navigator.userAgent||"",p=navigator.platform||"",g=navigator.maxTouchPoints||1,v=/Android/.test(h),_=/\b(iPad|iPhone|iPod)(?=;)/.test(h)||p==="MacIntel"&&g>1;(function(){(_||v)&&(l.maxCanvasPixels=5242880)})()}const u={VIEWER:2,API:4,WORKER:8,PREFERENCE:128};s.OptionKind=u;const c={annotationEditorMode:{value:0,kind:u.VIEWER+u.PREFERENCE},annotationMode:{value:2,kind:u.VIEWER+u.PREFERENCE},cursorToolOnLoad:{value:0,kind:u.VIEWER+u.PREFERENCE},defaultZoomDelay:{value:400,kind:u.VIEWER+u.PREFERENCE},defaultZoomValue:{value:"",kind:u.VIEWER+u.PREFERENCE},disableHistory:{value:!1,kind:u.VIEWER},disablePageLabels:{value:!1,kind:u.VIEWER+u.PREFERENCE},enablePermissions:{value:!1,kind:u.VIEWER+u.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:u.VIEWER+u.PREFERENCE},enableScripting:{value:!0,kind:u.VIEWER+u.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:u.VIEWER},externalLinkTarget:{value:0,kind:u.VIEWER+u.PREFERENCE},historyUpdateUrl:{value:!1,kind:u.VIEWER+u.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:u.VIEWER+u.PREFERENCE},imageResourcesPath:{value:"./images/",kind:u.VIEWER},maxCanvasPixels:{value:16777216,kind:u.VIEWER},forcePageColors:{value:!1,kind:u.VIEWER+u.PREFERENCE},pageColorsBackground:{value:"Canvas",kind:u.VIEWER+u.PREFERENCE},pageColorsForeground:{value:"CanvasText",kind:u.VIEWER+u.PREFERENCE},pdfBugEnabled:{value:!1,kind:u.VIEWER+u.PREFERENCE},printResolution:{value:150,kind:u.VIEWER},sidebarViewOnLoad:{value:-1,kind:u.VIEWER+u.PREFERENCE},scrollModeOnLoad:{value:-1,kind:u.VIEWER+u.PREFERENCE},spreadModeOnLoad:{value:-1,kind:u.VIEWER+u.PREFERENCE},textLayerMode:{value:1,kind:u.VIEWER+u.PREFERENCE},useOnlyCssZoom:{value:!1,kind:u.VIEWER+u.PREFERENCE},viewerCssTheme:{value:0,kind:u.VIEWER+u.PREFERENCE},viewOnLoad:{value:0,kind:u.VIEWER+u.PREFERENCE},cMapPacked:{value:!0,kind:u.API},cMapUrl:{value:"../web/cmaps/",kind:u.API},disableAutoFetch:{value:!1,kind:u.API+u.PREFERENCE},disableFontFace:{value:!1,kind:u.API+u.PREFERENCE},disableRange:{value:!1,kind:u.API+u.PREFERENCE},disableStream:{value:!1,kind:u.API+u.PREFERENCE},docBaseUrl:{value:"",kind:u.API},enableXfa:{value:!0,kind:u.API+u.PREFERENCE},fontExtraProperties:{value:!1,kind:u.API},isEvalSupported:{value:!0,kind:u.API},isOffscreenCanvasSupported:{value:!0,kind:u.API},maxImageSize:{value:-1,kind:u.API},pdfBug:{value:!1,kind:u.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:u.API},verbosity:{value:1,kind:u.API},workerPort:{value:null,kind:u.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:u.WORKER}};c.defaultUrl={value:"compressed.tracemonkey-pldi-09.pdf",kind:u.VIEWER},c.disablePreferences={value:!1,kind:u.VIEWER},c.locale={value:navigator.language||"en-US",kind:u.VIEWER},c.renderer={value:"canvas",kind:u.VIEWER+u.PREFERENCE},c.sandboxBundleSrc={value:"../build/pdf.sandbox.js",kind:u.VIEWER};const f=Object.create(null);class d{constructor(){throw new Error("Cannot initialize AppOptions.")}static get(p){const g=f[p];if(g!==void 0)return g;const v=c[p];if(v!==void 0)return l[p]??v.value}static getAll(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;const g=Object.create(null);for(const v in c){const _=c[v];if(p){if(!(p&_.kind))continue;if(p===u.PREFERENCE){const C=_.value,A=typeof C;if(A==="boolean"||A==="string"||A==="number"&&Number.isInteger(C)){g[v]=C;continue}throw new Error(`Invalid type for preference: ${v}`)}}const S=f[v];g[v]=S!==void 0?S:l[v]??_.value}return g}static set(p,g){f[p]=g}static setAll(p){for(const g in p)f[g]=p[g]}static remove(p){delete f[p]}}s.AppOptions=d,d._hasUserOptions=function(){return Object.keys(f).length>0}},(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.StructTreeLayerBuilder=void 0;function l(R,I){c(R,I),I.add(R)}function u(R,I,B){c(R,I),I.set(R,B)}function c(R,I){if(I.has(R))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(R,I,B){var j=g(R,I,"set");return d(R,j,B),B}function d(R,I,B){if(I.set)I.set.call(R,B);else{if(!I.writable)throw new TypeError("attempted to set read only private field");I.value=B}}function h(R,I,B){if(!I.has(R))throw new TypeError("attempted to get private field on non-instance");return B}function p(R,I){var B=g(R,I,"get");return v(R,B)}function g(R,I,B){if(!I.has(R))throw new TypeError("attempted to "+B+" private field on non-instance");return I.get(R)}function v(R,I){return I.get?I.get.call(R):I.value}const _={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},S=/^H(\d+)$/;var C=new WeakMap,A=new WeakSet,b=new WeakSet;class m{constructor(){l(this,b),l(this,A),u(this,C,{writable:!0,value:void 0})}get renderingDone(){return p(this,C)!==void 0}render(I){if(p(this,C)!==void 0)return p(this,C);const B=h(this,b,O).call(this,I);return B==null||B.classList.add("structTree"),f(this,C,B)}hide(){p(this,C)&&!p(this,C).hidden&&(p(this,C).hidden=!0)}show(){var I;(I=p(this,C))!==null&&I!==void 0&&I.hidden&&(p(this,C).hidden=!1)}}s.StructTreeLayerBuilder=m;function w(R,I){R.alt!==void 0&&I.setAttribute("aria-label",R.alt),R.id!==void 0&&I.setAttribute("aria-owns",R.id),R.lang!==void 0&&I.setAttribute("lang",R.lang)}function O(R){if(!R)return null;const I=document.createElement("span");if("role"in R){const{role:B}=R,j=B.match(S);j?(I.setAttribute("role","heading"),I.setAttribute("aria-level",j[1])):_[B]&&I.setAttribute("role",_[B])}if(h(this,A,w).call(this,R,I),R.children)if(R.children.length===1&&"id"in R.children[0])h(this,A,w).call(this,R.children[0],I);else for(const B of R.children)I.append(h(this,b,O).call(this,B));return I}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.TextAccessibilityManager=void 0;var u=l(2);function c(H,M){d(H,M),M.add(H)}function f(H,M,J){d(H,M),M.set(H,J)}function d(H,M){if(M.has(H))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(H,M,J){if(!M.has(H))throw new TypeError("attempted to get private field on non-instance");return J}function p(H,M,J){return g(H,M),J}function g(H,M){if(H!==M)throw new TypeError("Private static access of wrong provenance")}function v(H,M){var J=C(H,M,"get");return _(H,J)}function _(H,M){return M.get?M.get.call(H):M.value}function S(H,M,J){var ue=C(H,M,"set");return A(H,ue,J),J}function C(H,M,J){if(!M.has(H))throw new TypeError("attempted to "+J+" private field on non-instance");return M.get(H)}function A(H,M,J){if(M.set)M.set.call(H,J);else{if(!M.writable)throw new TypeError("attempted to set read only private field");M.value=J}}var b=new WeakMap,m=new WeakMap,w=new WeakMap,O=new WeakMap,R=new WeakSet;class I{constructor(){c(this,R),f(this,b,{writable:!0,value:!1}),f(this,m,{writable:!0,value:null}),f(this,w,{writable:!0,value:new Map}),f(this,O,{writable:!0,value:new Map})}setTextMapping(M){S(this,m,M)}enable(){if(v(this,b))throw new Error("TextAccessibilityManager is already enabled.");if(!v(this,m))throw new Error("Text divs and strings have not been set.");if(S(this,b,!0),S(this,m,v(this,m).slice()),v(this,m).sort(p(I,I,B)),v(this,w).size>0){const M=v(this,m);for(const[J,ue]of v(this,w)){if(!document.getElementById(J)){v(this,w).delete(J);continue}h(this,R,j).call(this,J,M[ue])}}for(const[M,J]of v(this,O))this.addPointerInTextLayer(M,J);v(this,O).clear()}disable(){v(this,b)&&(v(this,O).clear(),S(this,m,null),S(this,b,!1))}removePointerInTextLayer(M){var J;if(!v(this,b)){v(this,O).delete(M);return}const ue=v(this,m);if(!ue||ue.length===0)return;const{id:ae}=M,K=v(this,w).get(ae);if(K===void 0)return;const P=ue[K];v(this,w).delete(ae);let N=P.getAttribute("aria-owns");(J=N)!==null&&J!==void 0&&J.includes(ae)&&(N=N.split(" ").filter(T=>T!==ae).join(" "),N?P.setAttribute("aria-owns",N):(P.removeAttribute("aria-owns"),P.setAttribute("role","presentation")))}addPointerInTextLayer(M,J){const{id:ue}=M;if(!ue)return;if(!v(this,b)){v(this,O).set(M,J);return}J&&this.removePointerInTextLayer(M);const ae=v(this,m);if(!ae||ae.length===0)return;const K=(0,u.binarySearchFirstItem)(ae,N=>p(I,I,B).call(I,M,N)<0),P=Math.max(0,K-1);h(this,R,j).call(this,ue,ae[P]),v(this,w).set(ue,P)}moveElementInDOM(M,J,ue,ae){if(this.addPointerInTextLayer(ue,ae),!M.hasChildNodes()){M.append(J);return}const K=Array.from(M.childNodes).filter(T=>T!==J);if(K.length===0)return;const P=ue||J,N=(0,u.binarySearchFirstItem)(K,T=>p(I,I,B).call(I,P,T)<0);N===0?K[0].before(J):K[N-1].after(J)}}s.TextAccessibilityManager=I;function B(H,M){const J=H.getBoundingClientRect(),ue=M.getBoundingClientRect();if(J.width===0&&J.height===0)return 1;if(ue.width===0&&ue.height===0)return-1;const ae=J.y,K=J.y+J.height,P=J.y+J.height/2,N=ue.y,T=ue.y+ue.height,L=ue.y+ue.height/2;if(P<=N&&L>=K)return-1;if(L<=ae&&P>=T)return 1;const q=J.x+J.width/2,F=ue.x+ue.width/2;return q-F}function j(H,M){const J=M.getAttribute("aria-owns");J!=null&&J.includes(H)||M.setAttribute("aria-owns",J?`${J} ${H}`:H),M.removeAttribute("role")}},(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.TextHighlighter=void 0;class l{constructor(c){let{findController:f,eventBus:d,pageIndex:h}=c;this.findController=f,this.matches=[],this.eventBus=d,this.pageIdx=h,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(c,f){this.textDivs=c,this.textContentItemsStr=f}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._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=c=>{(c.pageIndex===this.pageIdx||c.pageIndex===-1)&&this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}disable(){this.enabled&&(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null),this._updateMatches(!0))}_convertMatches(c,f){if(!c)return[];const{textContentItemsStr:d}=this;let h=0,p=0;const g=d.length-1,v=[];for(let _=0,S=c.length;_<S;_++){let C=c[_];for(;h!==g&&C>=p+d[h].length;)p+=d[h].length,h++;h===d.length&&console.error("Could not find a matching mapping");const A={begin:{divIdx:h,offset:C-p}};for(C+=f[_];h!==g&&C>p+d[h].length;)p+=d[h].length,h++;A.end={divIdx:h,offset:C-p},v.push(A)}return v}_renderMatches(c){if(c.length===0)return;const{findController:f,pageIdx:d}=this,{textContentItemsStr:h,textDivs:p}=this,g=d===f.selected.pageIdx,v=f.selected.matchIdx,_=f.state.highlightAll;let S=null;const C={divIdx:-1,offset:void 0};function A(O,R){const I=O.divIdx;return p[I].textContent="",b(I,0,O.offset,R)}function b(O,R,I,B){let j=p[O];if(j.nodeType===Node.TEXT_NODE){const J=document.createElement("span");j.before(J),J.append(j),p[O]=J,j=J}const H=h[O].substring(R,I),M=document.createTextNode(H);if(B){const J=document.createElement("span");return J.className=`${B} appended`,J.append(M),j.append(J),B.includes("selected")?J.offsetLeft:0}return j.append(M),0}let m=v,w=m+1;if(_)m=0,w=c.length;else if(!g)return;for(let O=m;O<w;O++){const R=c[O],I=R.begin,B=R.end,j=g&&O===v,H=j?" selected":"";let M=0;if(!S||I.divIdx!==S.divIdx?(S!==null&&b(S.divIdx,S.offset,C.offset),A(I)):b(S.divIdx,S.offset,I.offset),I.divIdx===B.divIdx)M=b(I.divIdx,I.offset,B.offset,"highlight"+H);else{M=b(I.divIdx,I.offset,C.offset,"highlight begin"+H);for(let J=I.divIdx+1,ue=B.divIdx;J<ue;J++)p[J].className="highlight middle"+H;A(B,"highlight end"+H)}S=B,j&&f.scrollMatchIntoView({element:p[I.divIdx],selectedLeft:M,pageIndex:d,matchIndex:v})}S&&b(S.divIdx,S.offset,C.offset)}_updateMatches(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.enabled&&!c)return;const{findController:f,matches:d,pageIdx:h}=this,{textContentItemsStr:p,textDivs:g}=this;let v=-1;for(const C of d){const A=Math.max(v,C.begin.divIdx);for(let b=A,m=C.end.divIdx;b<=m;b++){const w=g[b];w.textContent=p[b],w.className=""}v=C.end.divIdx+1}if(!(f!=null&&f.highlightMatches)||c)return;const _=f.pageMatches[h]||null,S=f.pageMatchesLength[h]||null;this.matches=this._convertMatches(_,S),this._renderMatches(this.matches)}}s.TextHighlighter=l},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.TextLayerBuilder=void 0;var u=l(4);function c(B,j){d(B,j),j.add(B)}function f(B,j,H){d(B,j),j.set(B,H)}function d(B,j){if(j.has(B))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(B,j,H){var M=v(B,j,"set");return p(B,M,H),H}function p(B,j,H){if(j.set)j.set.call(B,H);else{if(!j.writable)throw new TypeError("attempted to set read only private field");j.value=H}}function g(B,j){var H=v(B,j,"get");return _(B,H)}function v(B,j,H){if(!j.has(B))throw new TypeError("attempted to "+H+" private field on non-instance");return j.get(B)}function _(B,j){return j.get?j.get.call(B):j.value}function S(B,j,H){if(!j.has(B))throw new TypeError("attempted to get private field on non-instance");return H}var C=new WeakMap,A=new WeakMap,b=new WeakMap,m=new WeakSet,w=new WeakSet;class O{constructor(j){let{highlighter:H=null,accessibilityManager:M=null,isOffscreenCanvasSupported:J=!0}=j;c(this,w),c(this,m),f(this,C,{writable:!0,value:0}),f(this,A,{writable:!0,value:0}),f(this,b,{writable:!0,value:null}),this.textContentItemsStr=[],this.renderingDone=!1,this.textDivs=[],this.textDivProperties=new WeakMap,this.textLayerRenderTask=null,this.highlighter=H,this.accessibilityManager=M,this.isOffscreenCanvasSupported=J,this.div=document.createElement("div"),this.div.className="textLayer",this.hide()}get numTextDivs(){return this.textDivs.length}async render(j){var H,M,J;if(!g(this,b))throw new Error('No "textContentSource" parameter specified.');const ue=j.scale*(globalThis.devicePixelRatio||1),{rotation:ae}=j;if(this.renderingDone){const K=ae!==g(this,C),P=ue!==g(this,A);(K||P)&&(this.hide(),(0,u.updateTextLayer)({container:this.div,viewport:j,textDivs:this.textDivs,textDivProperties:this.textDivProperties,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported,mustRescale:P,mustRotate:K}),h(this,A,ue),h(this,C,ae)),this.show();return}this.cancel(),(H=this.highlighter)===null||H===void 0||H.setTextMapping(this.textDivs,this.textContentItemsStr),(M=this.accessibilityManager)===null||M===void 0||M.setTextMapping(this.textDivs),this.textLayerRenderTask=(0,u.renderTextLayer)({textContentSource:g(this,b),container:this.div,viewport:j,textDivs:this.textDivs,textDivProperties:this.textDivProperties,textContentItemsStr:this.textContentItemsStr,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported}),await this.textLayerRenderTask.promise,S(this,m,R).call(this),h(this,A,ue),h(this,C,ae),this.show(),(J=this.accessibilityManager)===null||J===void 0||J.enable()}hide(){if(!this.div.hidden){var j;(j=this.highlighter)===null||j===void 0||j.disable(),this.div.hidden=!0}}show(){if(this.div.hidden&&this.renderingDone){var j;this.div.hidden=!1,(j=this.highlighter)===null||j===void 0||j.enable()}}cancel(){var j,H;this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),(j=this.highlighter)===null||j===void 0||j.disable(),(H=this.accessibilityManager)===null||H===void 0||H.disable(),this.textContentItemsStr.length=0,this.textDivs.length=0,this.textDivProperties=new WeakMap}setTextContentSource(j){this.cancel(),h(this,b,j)}}s.TextLayerBuilder=O;function R(){this.renderingDone=!0;const B=document.createElement("div");B.className="endOfContent",this.div.append(B),S(this,w,I).call(this)}function I(){const{div:B}=this;B.addEventListener("mousedown",j=>{const H=B.querySelector(".endOfContent");if(!H)return;let M=j.target!==B;if(M&&(M=getComputedStyle(H).getPropertyValue("-moz-user-select")!=="none"),M){const J=B.getBoundingClientRect(),ue=Math.max(0,(j.pageY-J.top)/J.height);H.style.top=(ue*100).toFixed(2)+"%"}H.classList.add("active")}),B.addEventListener("mouseup",()=>{const j=B.querySelector(".endOfContent");j&&(j.style.top="",j.classList.remove("active"))})}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.XfaLayerBuilder=void 0;var u=l(4);class c{constructor(d){let{pageDiv:h,pdfPage:p,annotationStorage:g=null,linkService:v,xfaHtml:_=null}=d;this.pageDiv=h,this.pdfPage=p,this.annotationStorage=g,this.linkService=v,this.xfaHtml=_,this.div=null,this._cancelled=!1}async render(d){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"display";if(h==="print"){const v={viewport:d.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:h},_=document.createElement("div");return this.pageDiv.append(_),v.div=_,u.XfaLayer.render(v)}const p=await this.pdfPage.getXfa();if(this._cancelled||!p)return{textDivs:[]};const g={viewport:d.clone({dontFlip:!0}),div:this.div,xfaHtml:p,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:h};return this.div?u.XfaLayer.update(g):(this.div=document.createElement("div"),this.pageDiv.append(this.div),g.div=this.div,u.XfaLayer.render(g))}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}s.XfaLayerBuilder=c},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFScriptingManager=void 0;var u=l(2),c=l(4);class f{constructor(h){let{eventBus:p,sandboxBundleSrc:g=null,scriptingFactory:v=null,docPropertiesLookup:_=null}=h;this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._ready=!1,this._eventBus=p,this._sandboxBundleSrc=g,this._scriptingFactory=v,this._docPropertiesLookup=_,this._scriptingFactory||window.addEventListener("updatefromsandbox",S=>{this._eventBus.dispatch("updatefromsandbox",{source:window,detail:S.detail})})}setViewer(h){this._pdfViewer=h}async setDocument(h){var p;if(this._pdfDocument&&await this._destroyScripting(),this._pdfDocument=h,!h)return;const[g,v,_]=await Promise.all([h.getFieldObjects(),h.getCalculationOrderIds(),h.getJSActions()]);if(!g&&!_){await this._destroyScripting();return}if(h===this._pdfDocument){try{this._scripting=this._createScripting()}catch(S){console.error(`PDFScriptingManager.setDocument: "${S==null?void 0:S.message}".`),await this._destroyScripting();return}this._internalEvents.set("updatefromsandbox",S=>{(S==null?void 0:S.source)===window&&this._updateFromSandbox(S.detail)}),this._internalEvents.set("dispatcheventinsandbox",S=>{var C;(C=this._scripting)===null||C===void 0||C.dispatchEventInSandbox(S.detail)}),this._internalEvents.set("pagechanging",S=>{let{pageNumber:C,previous:A}=S;C!==A&&(this._dispatchPageClose(A),this._dispatchPageOpen(C))}),this._internalEvents.set("pagerendered",S=>{let{pageNumber:C}=S;this._pageOpenPending.has(C)&&C===this._pdfViewer.currentPageNumber&&this._dispatchPageOpen(C)}),this._internalEvents.set("pagesdestroy",async S=>{var C,A;await this._dispatchPageClose(this._pdfViewer.currentPageNumber),await((C=this._scripting)===null||C===void 0?void 0:C.dispatchEventInSandbox({id:"doc",name:"WillClose"})),(A=this._closeCapability)===null||A===void 0||A.resolve()});for(const[S,C]of this._internalEvents)this._eventBus._on(S,C);try{const S=await this._getDocProperties();if(h!==this._pdfDocument)return;await this._scripting.createSandbox({objects:g,calculationOrder:v,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:{...S,actions:_}}),this._eventBus.dispatch("sandboxcreated",{source:this})}catch(S){console.error(`PDFScriptingManager.setDocument: "${S==null?void 0:S.message}".`),await this._destroyScripting();return}await((p=this._scripting)===null||p===void 0?void 0:p.dispatchEventInSandbox({id:"doc",name:"Open"})),await this._dispatchPageOpen(this._pdfViewer.currentPageNumber,!0),Promise.resolve().then(()=>{h===this._pdfDocument&&(this._ready=!0)})}}async dispatchWillSave(h){var p;return(p=this._scripting)===null||p===void 0?void 0:p.dispatchEventInSandbox({id:"doc",name:"WillSave"})}async dispatchDidSave(h){var p;return(p=this._scripting)===null||p===void 0?void 0:p.dispatchEventInSandbox({id:"doc",name:"DidSave"})}async dispatchWillPrint(h){var p;return(p=this._scripting)===null||p===void 0?void 0:p.dispatchEventInSandbox({id:"doc",name:"WillPrint"})}async dispatchDidPrint(h){var p;return(p=this._scripting)===null||p===void 0?void 0:p.dispatchEventInSandbox({id:"doc",name:"DidPrint"})}get destroyPromise(){var h;return((h=this._destroyCapability)===null||h===void 0?void 0:h.promise)||null}get ready(){return this._ready}get _internalEvents(){return(0,c.shadow)(this,"_internalEvents",new Map)}get _pageOpenPending(){return(0,c.shadow)(this,"_pageOpenPending",new Set)}get _visitedPages(){return(0,c.shadow)(this,"_visitedPages",new Map)}async _updateFromSandbox(h){const p=this._pdfViewer.isInPresentationMode||this._pdfViewer.isChangingPresentationMode,{id:g,siblings:v,command:_,value:S}=h;if(!g){switch(_){case"clear":console.clear();break;case"error":console.error(S);break;case"layout":{if(p)return;const b=(0,u.apiPageLayoutToViewerModes)(S);this._pdfViewer.spreadMode=b.spreadMode;break}case"page-num":this._pdfViewer.currentPageNumber=S+1;break;case"print":await this._pdfViewer.pagesPromise,this._eventBus.dispatch("print",{source:this});break;case"println":console.log(S);break;case"zoom":if(p)return;this._pdfViewer.currentScaleValue=S;break;case"SaveAs":this._eventBus.dispatch("download",{source:this});break;case"FirstPage":this._pdfViewer.currentPageNumber=1;break;case"LastPage":this._pdfViewer.currentPageNumber=this._pdfViewer.pagesCount;break;case"NextPage":this._pdfViewer.nextPage();break;case"PrevPage":this._pdfViewer.previousPage();break;case"ZoomViewIn":if(p)return;this._pdfViewer.increaseScale();break;case"ZoomViewOut":if(p)return;this._pdfViewer.decreaseScale();break}return}if(p&&h.focus)return;delete h.id,delete h.siblings;const C=v?[g,...v]:[g];for(const b of C){const m=document.querySelector(`[data-element-id="${b}"]`);if(m)m.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:h}));else{var A;(A=this._pdfDocument)===null||A===void 0||A.annotationStorage.setValue(b,h)}}}async _dispatchPageOpen(h){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const g=this._pdfDocument,v=this._visitedPages;if(p&&(this._closeCapability=(0,c.createPromiseCapability)()),!this._closeCapability)return;const _=this._pdfViewer.getPageView(h-1);if((_==null?void 0:_.renderingState)!==u.RenderingStates.FINISHED){this._pageOpenPending.add(h);return}this._pageOpenPending.delete(h);const S=(async()=>{var C,A;const b=await(v.has(h)?null:(C=_.pdfPage)===null||C===void 0?void 0:C.getJSActions());g===this._pdfDocument&&await((A=this._scripting)===null||A===void 0?void 0:A.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:h,actions:b}))})();v.set(h,S)}async _dispatchPageClose(h){var p;const g=this._pdfDocument,v=this._visitedPages;if(!this._closeCapability||this._pageOpenPending.has(h))return;const _=v.get(h);_&&(v.set(h,null),await _,g===this._pdfDocument&&await((p=this._scripting)===null||p===void 0?void 0:p.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:h})))}async _getDocProperties(){if(this._docPropertiesLookup)return this._docPropertiesLookup(this._pdfDocument);const{docPropertiesLookup:h}=l(22);return h(this._pdfDocument)}_createScripting(){if(this._destroyCapability=(0,c.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");if(this._scriptingFactory)return this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc});const{GenericScripting:h}=l(22);return new h(this._sandboxBundleSrc)}async _destroyScripting(){var h;if(!this._scripting){var p;this._pdfDocument=null,(p=this._destroyCapability)===null||p===void 0||p.resolve();return}this._closeCapability&&(await Promise.race([this._closeCapability.promise,new Promise(g=>{setTimeout(g,1e3)})]).catch(g=>{}),this._closeCapability=null),this._pdfDocument=null;try{await this._scripting.destroySandbox()}catch{}for(const[g,v]of this._internalEvents)this._eventBus._off(g,v);this._internalEvents.clear(),this._pageOpenPending.clear(),this._visitedPages.clear(),this._scripting=null,this._ready=!1,(h=this._destroyCapability)===null||h===void 0||h.resolve()}}s.PDFScriptingManager=f},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.GenericScripting=void 0,s.docPropertiesLookup=c;var u=l(4);async function c(d){const h="",p=h.split("#")[0];let{info:g,metadata:v,contentDispositionFilename:_,contentLength:S}=await d.getMetadata();if(!S){const{length:C}=await d.getDownloadInfo();S=C}return{...g,baseURL:p,filesize:S,filename:_||(0,u.getPdfFilenameFromUrl)(h),metadata:v==null?void 0:v.getRaw(),authors:v==null?void 0:v.get("dc:creator"),numPages:d.numPages,URL:h}}class f{constructor(h){this._ready=(0,u.loadScript)(h,!0).then(()=>window.pdfjsSandbox.QuickJSSandbox())}async createSandbox(h){(await this._ready).create(h)}async dispatchEventInSandbox(h){const p=await this._ready;setTimeout(()=>p.dispatchEvent(h),0)}async destroySandbox(){(await this._ready).nukeSandbox()}}s.GenericScripting=f},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFSinglePageViewer=void 0;var u=l(2),c=l(24);class f extends c.PDFViewer{_resetView(){super._resetView(),this._scrollMode=u.ScrollMode.PAGE,this._spreadMode=u.SpreadMode.NONE}set scrollMode(h){}_updateScrollMode(){}set spreadMode(h){}_updateSpreadMode(){}}s.PDFSinglePageViewer=f},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PagesCountLimit=s.PDFViewer=s.PDFPageViewBuffer=void 0;var u=l(4),c=l(2),f=l(5),d=l(13),h=l(25),p=l(1);let g;function v($e,ie){S($e,ie),ie.add($e)}function _($e,ie,ve){S($e,ie),ie.set($e,ve)}function S($e,ie){if(ie.has($e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function C($e,ie,ve){if(!ie.has($e))throw new TypeError("attempted to get private field on non-instance");return ve}function A($e,ie){var ve=w($e,ie,"get");return b($e,ve)}function b($e,ie){return ie.get?ie.get.call($e):ie.value}function m($e,ie,ve){var xe=w($e,ie,"set");return O($e,xe,ve),ve}function w($e,ie,ve){if(!ie.has($e))throw new TypeError("attempted to "+ve+" private field on non-instance");return ie.get($e)}function O($e,ie,ve){if(ie.set)ie.set.call($e,ve);else{if(!ie.writable)throw new TypeError("attempted to set read only private field");ie.value=ve}}const R=10,I="enablePermissions",B={FORCE_SCROLL_MODE_PAGE:15e3,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250};s.PagesCountLimit=B;function j($e){return Object.values(u.AnnotationEditorType).includes($e)&&$e!==u.AnnotationEditorType.DISABLE}var H=new WeakMap,M=new WeakMap,J=new WeakSet;g=Symbol.iterator;class ue{constructor(ie){v(this,J),_(this,H,{writable:!0,value:new Set}),_(this,M,{writable:!0,value:0}),m(this,M,ie)}push(ie){const ve=A(this,H);ve.has(ie)&&ve.delete(ie),ve.add(ie),ve.size>A(this,M)&&C(this,J,ae).call(this)}resize(ie){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;m(this,M,ie);const xe=A(this,H);if(ve){const je=xe.size;let qe=1;for(const Je of xe)if(ve.has(Je.id)&&(xe.delete(Je),xe.add(Je)),++qe>je)break}for(;xe.size>A(this,M);)C(this,J,ae).call(this)}has(ie){return A(this,H).has(ie)}[g](){return A(this,H).keys()}}s.PDFPageViewBuffer=ue;function ae(){const $e=A(this,H).keys().next().value;$e==null||$e.destroy(),A(this,H).delete($e)}var K=new WeakMap,P=new WeakMap,N=new WeakMap,T=new WeakMap,L=new WeakMap,q=new WeakMap,F=new WeakMap,W=new WeakMap,se=new WeakMap,fe=new WeakMap,he=new WeakMap,oe=new WeakSet,be=new WeakSet,Ee=new WeakSet,Ae=new WeakSet,Re=new WeakSet,V=new WeakSet,_e=new WeakSet,G=new WeakSet,z=new WeakSet,U=new WeakSet,ne=new WeakSet;class Y{constructor(ie){var ve,xe;v(this,ne),v(this,U),v(this,z),v(this,G),v(this,_e),v(this,V),v(this,Re),v(this,Ae),v(this,Ee),v(this,be),v(this,oe),_(this,K,{writable:!0,value:null}),_(this,P,{writable:!0,value:u.AnnotationEditorType.NONE}),_(this,N,{writable:!0,value:null}),_(this,T,{writable:!0,value:u.AnnotationMode.ENABLE_FORMS}),_(this,L,{writable:!0,value:null}),_(this,q,{writable:!0,value:!1}),_(this,F,{writable:!0,value:0}),_(this,W,{writable:!0,value:new ResizeObserver(C(this,ne,Ge).bind(this))}),_(this,se,{writable:!0,value:null}),_(this,fe,{writable:!0,value:null}),_(this,he,{writable:!0,value:null});const je="3.4.120";if(u.version!==je)throw new Error(`The API version "${u.version}" does not match the Viewer version "${je}".`);if(this.container=ie.container,this.viewer=ie.viewer||ie.container.firstElementChild,((ve=this.container)===null||ve===void 0?void 0:ve.tagName)!=="DIV"||((xe=this.viewer)===null||xe===void 0?void 0:xe.tagName)!=="DIV")throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&getComputedStyle(this.container).position!=="absolute")throw new Error("The `container` must be absolutely positioned.");A(this,W).observe(this.container),this.eventBus=ie.eventBus,this.linkService=ie.linkService||new p.SimpleLinkService,this.downloadManager=ie.downloadManager||null,this.findController=ie.findController||null,this._scriptingManager=ie.scriptingManager||null,this.textLayerMode=ie.textLayerMode??c.TextLayerMode.ENABLE,m(this,T,ie.annotationMode??u.AnnotationMode.ENABLE_FORMS),m(this,P,ie.annotationEditorMode??u.AnnotationEditorType.NONE),this.imageResourcesPath=ie.imageResourcesPath||"",this.enablePrintAutoRotate=ie.enablePrintAutoRotate||!1,this.removePageBorders=ie.removePageBorders||!1,this.renderer=ie.renderer||c.RendererType.CANVAS,this.useOnlyCssZoom=ie.useOnlyCssZoom||!1,this.isOffscreenCanvasSupported=ie.isOffscreenCanvasSupported??!0,this.maxCanvasPixels=ie.maxCanvasPixels,this.l10n=ie.l10n||f.NullL10n,m(this,q,ie.enablePermissions||!1),this.pageColors=ie.pageColors||null,this.pageColors&&!(CSS.supports("color",this.pageColors.background)&&CSS.supports("color",this.pageColors.foreground))&&((this.pageColors.background||this.pageColors.foreground)&&console.warn("PDFViewer: Ignoring `pageColors`-option, since the browser doesn't support the values used."),this.pageColors=null),this.defaultRenderingQueue=!ie.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new h.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=ie.renderingQueue,this.scroll=(0,c.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=c.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),C(this,U,Le).call(this)}get pagesCount(){return this._pages.length}getPageView(ie){return this._pages[ie]}get pageViewsReady(){return this._pagesCapability.settled?this._pages.every(function(ie){return ie==null?void 0:ie.pdfPage}):!1}get renderForms(){return A(this,T)===u.AnnotationMode.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(ie){if(!Number.isInteger(ie))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(ie,!0)||console.error(`currentPageNumber: "${ie}" is not a valid page.`))}_setCurrentPageNumber(ie){var ve;let xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this._currentPageNumber===ie)return xe&&C(this,_e,Se).call(this),!0;if(!(0<ie&&ie<=this.pagesCount))return!1;const je=this._currentPageNumber;return this._currentPageNumber=ie,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:ie,pageLabel:((ve=this._pageLabels)===null||ve===void 0?void 0:ve[ie-1])??null,previous:je}),xe&&C(this,_e,Se).call(this),!0}get currentPageLabel(){var ie;return((ie=this._pageLabels)===null||ie===void 0?void 0:ie[this._currentPageNumber-1])??null}set currentPageLabel(ie){if(!this.pdfDocument)return;let ve=ie|0;if(this._pageLabels){const xe=this._pageLabels.indexOf(ie);xe>=0&&(ve=xe+1)}this._setCurrentPageNumber(ve,!0)||console.error(`currentPageLabel: "${ie}" is not a valid page.`)}get currentScale(){return this._currentScale!==c.UNKNOWN_SCALE?this._currentScale:c.DEFAULT_SCALE}set currentScale(ie){if(isNaN(ie))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(ie,{noScroll:!1})}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(ie){this.pdfDocument&&this._setScale(ie,{noScroll:!1})}get pagesRotation(){return this._pagesRotation}set pagesRotation(ie){if(!(0,c.isValidRotation)(ie))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||(ie%=360,ie<0&&(ie+=360),this._pagesRotation===ie))return;this._pagesRotation=ie;const ve=this._currentPageNumber;this.refresh(!0,{rotation:ie}),this._currentScaleValue&&this._setScale(this._currentScaleValue,{noScroll:!0}),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:ie,pageNumber:ve}),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}setDocument(ie){if(this.pdfDocument){var ve,xe;this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),(ve=this.findController)===null||ve===void 0||ve.setDocument(null),(xe=this._scriptingManager)===null||xe===void 0||xe.setDocument(null),A(this,N)&&(A(this,N).destroy(),m(this,N,null))}if(this.pdfDocument=ie,!ie)return;const je=ie.numPages,qe=ie.getPage(1),Je=ie.getOptionalContentConfig(),He=A(this,q)?ie.getPermissions():Promise.resolve();if(je>B.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const Qe=this._scrollMode=c.ScrollMode.PAGE;this.eventBus.dispatch("scrollmodechanged",{source:this,mode:Qe})}this._pagesCapability.promise.then(()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:je})},()=>{}),this._onBeforeDraw=Qe=>{const Ue=this._pages[Qe.pageNumber-1];Ue&&A(this,K).push(Ue)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=Qe=>{Qe.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve({timestamp:Qe.timestamp}),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null,A(this,fe)&&(document.removeEventListener("visibilitychange",A(this,fe)),m(this,fe,null)))},this.eventBus._on("pagerendered",this._onAfterDraw),Promise.all([qe,He]).then(Qe=>{let[Ue,Ie]=Qe;if(ie!==this.pdfDocument)return;this._firstPageCapability.resolve(Ue),this._optionalContentConfigPromise=Je;const{annotationEditorMode:We,annotationMode:lt,textLayerMode:nt}=C(this,be,Z).call(this,Ie);if(We!==u.AnnotationEditorType.DISABLE){const et=We;ie.isPureXfa?console.warn("Warning: XFA-editing is not implemented."):j(et)?(m(this,N,new u.AnnotationEditorUIManager(this.container,this.eventBus,ie==null?void 0:ie.annotationStorage)),et!==u.AnnotationEditorType.NONE&&A(this,N).updateMode(et)):console.error(`Invalid AnnotationEditor mode: ${et}`)}const ht=C(this,oe,ee).bind(this),ke=this._scrollMode===c.ScrollMode.PAGE?null:this.viewer,Te=this.currentScale,Fe=Ue.getViewport({scale:Te*u.PixelsPerInch.PDF_TO_CSS_UNITS});this.viewer.style.setProperty("--scale-factor",Fe.scale);for(let et=1;et<=je;++et){const gt=new d.PDFPageView({container:ke,eventBus:this.eventBus,id:et,scale:Te,defaultViewport:Fe.clone(),optionalContentConfigPromise:Je,renderingQueue:this.renderingQueue,textLayerMode:nt,annotationMode:lt,imageResourcesPath:this.imageResourcesPath,renderer:this.renderer,useOnlyCssZoom:this.useOnlyCssZoom,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported,maxCanvasPixels:this.maxCanvasPixels,pageColors:this.pageColors,l10n:this.l10n,layerProperties:ht});this._pages.push(gt)}const rt=this._pages[0];rt&&(rt.setPdfPage(Ue),this.linkService.cachePageRef(1,Ue.ref)),this._scrollMode===c.ScrollMode.PAGE?C(this,Ae,de).call(this):this._spreadMode!==c.SpreadMode.NONE&&this._updateSpreadMode(),C(this,Ee,le).call(this).then(async()=>{var et,gt;if((et=this.findController)===null||et===void 0||et.setDocument(ie),(gt=this._scriptingManager)===null||gt===void 0||gt.setDocument(ie),A(this,N)&&this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:A(this,P)}),ie.loadingParams.disableAutoFetch||je>B.FORCE_LAZY_PAGE_INIT){this._pagesCapability.resolve();return}let dt=je-1;if(dt<=0){this._pagesCapability.resolve();return}for(let bt=2;bt<=je;++bt){const Tt=ie.getPage(bt).then(vt=>{const Nt=this._pages[bt-1];Nt.pdfPage||Nt.setPdfPage(vt),this.linkService.cachePageRef(bt,vt.ref),--dt===0&&this._pagesCapability.resolve()},vt=>{console.error(`Unable to get page ${bt} to initialize viewer`,vt),--dt===0&&this._pagesCapability.resolve()});bt%B.PAUSE_EAGER_PAGE_INIT===0&&await Tt}}),this.eventBus.dispatch("pagesinit",{source:this}),ie.getMetadata().then(et=>{let{info:gt}=et;ie===this.pdfDocument&>.Language&&(this.viewer.lang=gt.Language)}),this.defaultRenderingQueue&&this.update()}).catch(Qe=>{console.error("Unable to initialize viewer",Qe),this._pagesCapability.reject(Qe)})}setPageLabels(ie){if(this.pdfDocument){ie?Array.isArray(ie)&&this.pdfDocument.numPages===ie.length?this._pageLabels=ie:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let xe=0,je=this._pages.length;xe<je;xe++){var ve;this._pages[xe].setPageLabel(((ve=this._pageLabels)===null||ve===void 0?void 0:ve[xe])??null)}}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=c.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,m(this,K,new ue(R)),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=(0,u.createPromiseCapability)(),this._onePageRenderedCapability=(0,u.createPromiseCapability)(),this._pagesCapability=(0,u.createPromiseCapability)(),this._scrollMode=c.ScrollMode.VERTICAL,this._previousScrollMode=c.ScrollMode.UNKNOWN,this._spreadMode=c.SpreadMode.NONE,m(this,se,{previousPageNumber:1,scrollDown:!0,pages:[]}),this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),A(this,fe)&&(document.removeEventListener("visibilitychange",A(this,fe)),m(this,fe,null)),this.viewer.textContent="",this._updateScrollMode(),this.viewer.removeAttribute("lang"),this.viewer.classList.remove(I)}_scrollUpdate(){this.pagesCount!==0&&this.update()}_setScaleUpdatePages(ie,ve,xe){let{noScroll:je=!1,preset:qe=!1,drawingDelay:Je=-1}=xe;if(this._currentScaleValue=ve.toString(),C(this,V,ge).call(this,ie)){qe&&this.eventBus.dispatch("scalechanging",{source:this,scale:ie,presetValue:ve});return}this.viewer.style.setProperty("--scale-factor",ie*u.PixelsPerInch.PDF_TO_CSS_UNITS);const He=Je>=0&&Je<1e3;if(this.refresh(!0,{scale:ie,drawingDelay:He?Je:-1}),He&&m(this,he,setTimeout(()=>{m(this,he,null),this.refresh()},Je)),this._currentScale=ie,!je){let Qe=this._currentPageNumber,Ue;this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(Qe=this._location.pageNumber,Ue=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:Qe,destArray:Ue,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:ie,presetValue:qe?ve:void 0}),this.defaultRenderingQueue&&this.update()}get _pageWidthScaleFactor(){return this._spreadMode!==c.SpreadMode.NONE&&this._scrollMode!==c.ScrollMode.HORIZONTAL?2:1}_setScale(ie,ve){let xe=parseFloat(ie);if(xe>0)ve.preset=!1,this._setScaleUpdatePages(xe,ie,ve);else{const je=this._pages[this._currentPageNumber-1];if(!je)return;let qe=c.SCROLLBAR_PADDING,Je=c.VERTICAL_PADDING;this.isInPresentationMode?(qe=Je=4,this._spreadMode!==c.SpreadMode.NONE&&(qe*=2)):this.removePageBorders?qe=Je=0:this._scrollMode===c.ScrollMode.HORIZONTAL&&([qe,Je]=[Je,qe]);const He=(this.container.clientWidth-qe)/je.width*je.scale/this._pageWidthScaleFactor,Qe=(this.container.clientHeight-Je)/je.height*je.scale;switch(ie){case"page-actual":xe=1;break;case"page-width":xe=He;break;case"page-height":xe=Qe;break;case"page-fit":xe=Math.min(He,Qe);break;case"auto":const Ue=(0,c.isPortraitOrientation)(je)?He:Math.min(Qe,He);xe=Math.min(c.MAX_AUTO_SCALE,Ue);break;default:console.error(`_setScale: "${ie}" is an unknown zoom value.`);return}ve.preset=!0,this._setScaleUpdatePages(xe,ie,ve)}}pageLabelToPageNumber(ie){if(!this._pageLabels)return null;const ve=this._pageLabels.indexOf(ie);return ve<0?null:ve+1}scrollPageIntoView(ie){let{pageNumber:ve,destArray:xe=null,allowNegativeOffset:je=!1,ignoreDestinationZoom:qe=!1}=ie;if(!this.pdfDocument)return;const Je=Number.isInteger(ve)&&this._pages[ve-1];if(!Je){console.error(`scrollPageIntoView: "${ve}" is not a valid pageNumber parameter.`);return}if(this.isInPresentationMode||!xe){this._setCurrentPageNumber(ve,!0);return}let He=0,Qe=0,Ue=0,Ie=0,We,lt;const nt=Je.rotation%180!==0,ht=(nt?Je.height:Je.width)/Je.scale/u.PixelsPerInch.PDF_TO_CSS_UNITS,ke=(nt?Je.width:Je.height)/Je.scale/u.PixelsPerInch.PDF_TO_CSS_UNITS;let Te=0;switch(xe[1].name){case"XYZ":He=xe[2],Qe=xe[3],Te=xe[4],He=He!==null?He:0,Qe=Qe!==null?Qe:ke;break;case"Fit":case"FitB":Te="page-fit";break;case"FitH":case"FitBH":Qe=xe[2],Te="page-width",Qe===null&&this._location?(He=this._location.left,Qe=this._location.top):(typeof Qe!="number"||Qe<0)&&(Qe=ke);break;case"FitV":case"FitBV":He=xe[2],Ue=ht,Ie=ke,Te="page-height";break;case"FitR":He=xe[2],Qe=xe[3],Ue=xe[4]-He,Ie=xe[5]-Qe;let gt=c.SCROLLBAR_PADDING,dt=c.VERTICAL_PADDING;this.removePageBorders&&(gt=dt=0),We=(this.container.clientWidth-gt)/Ue/u.PixelsPerInch.PDF_TO_CSS_UNITS,lt=(this.container.clientHeight-dt)/Ie/u.PixelsPerInch.PDF_TO_CSS_UNITS,Te=Math.min(Math.abs(We),Math.abs(lt));break;default:console.error(`scrollPageIntoView: "${xe[1].name}" is not a valid destination type.`);return}if(qe||(Te&&Te!==this._currentScale?this.currentScaleValue=Te:this._currentScale===c.UNKNOWN_SCALE&&(this.currentScaleValue=c.DEFAULT_SCALE_VALUE)),Te==="page-fit"&&!xe[4]){C(this,Re,ce).call(this,Je);return}const Fe=[Je.viewport.convertToViewportPoint(He,Qe),Je.viewport.convertToViewportPoint(He+Ue,Qe+Ie)];let rt=Math.min(Fe[0][0],Fe[1][0]),et=Math.min(Fe[0][1],Fe[1][1]);je||(rt=Math.max(rt,0),et=Math.max(et,0)),C(this,Re,ce).call(this,Je,{left:rt,top:et})}_updateLocation(ie){const ve=this._currentScale,xe=this._currentScaleValue,je=parseFloat(xe)===ve?Math.round(ve*1e4)/100:xe,qe=ie.id,Je=this._pages[qe-1],He=this.container,Qe=Je.getPagePoint(He.scrollLeft-ie.x,He.scrollTop-ie.y),Ue=Math.round(Qe[0]),Ie=Math.round(Qe[1]);let We=`#page=${qe}`;this.isInPresentationMode||(We+=`&zoom=${je},${Ue},${Ie}`),this._location={pageNumber:qe,scale:je,top:Ie,left:Ue,rotation:this._pagesRotation,pdfOpenParams:We}}update(){const ie=this._getVisiblePages(),ve=ie.views,xe=ve.length;if(xe===0)return;const je=Math.max(R,2*xe+1);A(this,K).resize(je,ie.ids),this.renderingQueue.renderHighestPriority(ie);const qe=this._spreadMode===c.SpreadMode.NONE&&(this._scrollMode===c.ScrollMode.PAGE||this._scrollMode===c.ScrollMode.VERTICAL),Je=this._currentPageNumber;let He=!1;for(const Qe of ve){if(Qe.percent<100)break;if(Qe.id===Je&&qe){He=!0;break}}this._setCurrentPageNumber(He?Je:ve[0].id),this._updateLocation(ie.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(ie){return this.container.contains(ie)}focus(){this.container.focus()}get _isContainerRtl(){return getComputedStyle(this.container).direction==="rtl"}get isInPresentationMode(){return this.presentationModeState===c.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===c.PresentationModeState.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 ie=this._scrollMode===c.ScrollMode.PAGE?A(this,se).pages:this._pages,ve=this._scrollMode===c.ScrollMode.HORIZONTAL,xe=ve&&this._isContainerRtl;return(0,c.getVisibleElements)({scrollEl:this.container,views:ie,sortByVisibility:!0,horizontal:ve,rtl:xe})}isPageVisible(ie){return this.pdfDocument?Number.isInteger(ie)&&ie>0&&ie<=this.pagesCount?this._getVisiblePages().ids.has(ie):(console.error(`isPageVisible: "${ie}" is not a valid page.`),!1):!1}isPageCached(ie){if(!this.pdfDocument)return!1;if(!(Number.isInteger(ie)&&ie>0&&ie<=this.pagesCount))return console.error(`isPageCached: "${ie}" is not a valid page.`),!1;const ve=this._pages[ie-1];return A(this,K).has(ve)}cleanup(){for(const ie of this._pages)ie.renderingState!==c.RenderingStates.FINISHED&&ie.reset()}_cancelRendering(){for(const ie of this._pages)ie.cancelRendering()}forceRendering(ie){const ve=ie||this._getVisiblePages(),xe=C(this,z,Pe).call(this,ve),je=this._spreadMode!==c.SpreadMode.NONE&&this._scrollMode!==c.ScrollMode.HORIZONTAL,qe=this.renderingQueue.getHighestPriority(ve,this._pages,xe,je);return qe?(C(this,G,Ce).call(this,qe).then(()=>{this.renderingQueue.renderView(qe)}),!0):!1}get hasEqualPageSizes(){const ie=this._pages[0];for(let ve=1,xe=this._pages.length;ve<xe;++ve){const je=this._pages[ve];if(je.width!==ie.width||je.height!==ie.height)return!1}return!0}getPagesOverview(){return this._pages.map(ie=>{const ve=ie.pdfPage.getViewport({scale:1});return!this.enablePrintAutoRotate||(0,c.isPortraitOrientation)(ve)?{width:ve.width,height:ve.height,rotation:ve.rotation}:{width:ve.height,height:ve.width,rotation:(ve.rotation-90)%360}})}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:(console.error("optionalContentConfigPromise: Not initialized yet."),this.pdfDocument.getOptionalContentConfig()):Promise.resolve(null)}set optionalContentConfigPromise(ie){if(!(ie instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${ie}`);this.pdfDocument&&this._optionalContentConfigPromise&&(this._optionalContentConfigPromise=ie,this.refresh(!1,{optionalContentConfigPromise:ie}),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:ie}))}get scrollMode(){return this._scrollMode}set scrollMode(ie){if(this._scrollMode!==ie){if(!(0,c.isValidScrollMode)(ie))throw new Error(`Invalid scroll mode: ${ie}`);this.pagesCount>B.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=ie,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:ie}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;const ve=this._scrollMode,xe=this.viewer;xe.classList.toggle("scrollHorizontal",ve===c.ScrollMode.HORIZONTAL),xe.classList.toggle("scrollWrapped",ve===c.ScrollMode.WRAPPED),!(!this.pdfDocument||!ie)&&(ve===c.ScrollMode.PAGE?C(this,Ae,de).call(this):this._previousScrollMode===c.ScrollMode.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(ie,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(ie){if(this._spreadMode!==ie){if(!(0,c.isValidSpreadMode)(ie))throw new Error(`Invalid spread mode: ${ie}`);this._spreadMode=ie,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:ie}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(!this.pdfDocument)return;const ve=this.viewer,xe=this._pages;if(this._scrollMode===c.ScrollMode.PAGE)C(this,Ae,de).call(this);else if(ve.textContent="",this._spreadMode===c.SpreadMode.NONE)for(const je of this._pages)ve.append(je.div);else{const je=this._spreadMode-1;let qe=null;for(let Je=0,He=xe.length;Je<He;++Je)qe===null?(qe=document.createElement("div"),qe.className="spread",ve.append(qe)):Je%2===je&&(qe=qe.cloneNode(!1),ve.append(qe)),qe.append(xe[Je].div)}ie&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(ie,!0),this.update())}_getPageAdvance(ie){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;switch(this._scrollMode){case c.ScrollMode.WRAPPED:{const{views:xe}=this._getVisiblePages(),je=new Map;for(const{id:qe,y:Je,percent:He,widthPercent:Qe}of xe){if(He===0||Qe<100)continue;let Ue=je.get(Je);Ue||je.set(Je,Ue||(Ue=[])),Ue.push(qe)}for(const qe of je.values()){const Je=qe.indexOf(ie);if(Je===-1)continue;const He=qe.length;if(He===1)break;if(ve)for(let Qe=Je-1,Ue=0;Qe>=Ue;Qe--){const Ie=qe[Qe],We=qe[Qe+1]-1;if(Ie<We)return ie-We}else for(let Qe=Je+1,Ue=He;Qe<Ue;Qe++){const Ie=qe[Qe],We=qe[Qe-1]+1;if(Ie>We)return We-ie}if(ve){const Qe=qe[0];if(Qe<ie)return ie-Qe+1}else{const Qe=qe[He-1];if(Qe>ie)return Qe-ie+1}break}break}case c.ScrollMode.HORIZONTAL:break;case c.ScrollMode.PAGE:case c.ScrollMode.VERTICAL:{if(this._spreadMode===c.SpreadMode.NONE)break;const xe=this._spreadMode-1;if(ve&&ie%2!==xe)break;if(!ve&&ie%2===xe)break;const{views:je}=this._getVisiblePages(),qe=ve?ie-1:ie+1;for(const{id:Je,percent:He,widthPercent:Qe}of je)if(Je===qe){if(He>0&&Qe===100)return 2;break}break}}return 1}nextPage(){const ie=this._currentPageNumber,ve=this.pagesCount;if(ie>=ve)return!1;const xe=this._getPageAdvance(ie,!1)||1;return this.currentPageNumber=Math.min(ie+xe,ve),!0}previousPage(){const ie=this._currentPageNumber;if(ie<=1)return!1;const ve=this._getPageAdvance(ie,!0)||1;return this.currentPageNumber=Math.max(ie-ve,1),!0}increaseScale(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(typeof ie=="number"&&(console.error("The `increaseScale` method-signature was updated, please use an object instead."),ie={steps:ie}),!this.pdfDocument)return;ie||(ie=Object.create(null));let ve=this._currentScale;if(ie.scaleFactor>1)ve=Math.min(c.MAX_SCALE,Math.round(ve*ie.scaleFactor*100)/100);else{let xe=ie.steps??1;do ve=(ve*c.DEFAULT_SCALE_DELTA).toFixed(2),ve=Math.ceil(ve*10)/10,ve=Math.min(c.MAX_SCALE,ve);while(--xe>0&&ve<c.MAX_SCALE)}ie.noScroll=!1,this._setScale(ve,ie)}decreaseScale(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(typeof ie=="number"&&(console.error("The `decreaseScale` method-signature was updated, please use an object instead."),ie={steps:ie}),!this.pdfDocument)return;ie||(ie=Object.create(null));let ve=this._currentScale;if(ie.scaleFactor>0&&ie.scaleFactor<1)ve=Math.max(c.MIN_SCALE,Math.round(ve*ie.scaleFactor*100)/100);else{let xe=ie.steps??1;do ve=(ve/c.DEFAULT_SCALE_DELTA).toFixed(2),ve=Math.floor(ve*10)/10,ve=Math.max(c.MIN_SCALE,ve);while(--xe>0&&ve>c.MIN_SCALE)}ie.noScroll=!1,this._setScale(ve,ie)}get containerTopLeft(){return A(this,L)||m(this,L,[this.container.offsetTop,this.container.offsetLeft])}get annotationEditorMode(){return A(this,N)?A(this,P):u.AnnotationEditorType.DISABLE}set annotationEditorMode(ie){if(!A(this,N))throw new Error("The AnnotationEditor is not enabled.");if(A(this,P)!==ie){if(!j(ie))throw new Error(`Invalid AnnotationEditor mode: ${ie}`);this.pdfDocument&&(m(this,P,ie),this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:ie}),A(this,N).updateMode(ie))}}set annotationEditorParams(ie){let{type:ve,value:xe}=ie;if(!A(this,N))throw new Error("The AnnotationEditor is not enabled.");A(this,N).updateParams(ve,xe)}refresh(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Object.create(null);if(this.pdfDocument){for(const xe of this._pages)xe.update(ve);A(this,he)!==null&&(clearTimeout(A(this,he)),m(this,he,null)),ie||this.update()}}}s.PDFViewer=Y;function ee(){const $e=this;return{get annotationEditorUIManager(){return A($e,N)},get annotationStorage(){var ie;return(ie=$e.pdfDocument)===null||ie===void 0?void 0:ie.annotationStorage},get downloadManager(){return $e.downloadManager},get enableScripting(){return!!$e._scriptingManager},get fieldObjectsPromise(){var ie;return(ie=$e.pdfDocument)===null||ie===void 0?void 0:ie.getFieldObjects()},get findController(){return $e.findController},get hasJSActionsPromise(){var ie;return(ie=$e.pdfDocument)===null||ie===void 0?void 0:ie.hasJSActions()},get linkService(){return $e.linkService}}}function Z($e){const ie={annotationEditorMode:A(this,P),annotationMode:A(this,T),textLayerMode:this.textLayerMode};return $e&&($e.includes(u.PermissionFlag.COPY)||this.viewer.classList.add(I),$e.includes(u.PermissionFlag.MODIFY_CONTENTS)||(ie.annotationEditorMode=u.AnnotationEditorType.DISABLE),!$e.includes(u.PermissionFlag.MODIFY_ANNOTATIONS)&&!$e.includes(u.PermissionFlag.FILL_INTERACTIVE_FORMS)&&A(this,T)===u.AnnotationMode.ENABLE_FORMS&&(ie.annotationMode=u.AnnotationMode.ENABLE)),ie}function le(){if(document.visibilityState==="hidden"||!this.container.offsetParent||this._getVisiblePages().views.length===0)return Promise.resolve();const $e=new Promise(ie=>{m(this,fe,()=>{document.visibilityState==="hidden"&&(ie(),document.removeEventListener("visibilitychange",A(this,fe)),m(this,fe,null))}),document.addEventListener("visibilitychange",A(this,fe))});return Promise.race([this._onePageRenderedCapability.promise,$e])}function de(){if(this._scrollMode!==c.ScrollMode.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");const $e=this._currentPageNumber,ie=A(this,se),ve=this.viewer;if(ve.textContent="",ie.pages.length=0,this._spreadMode===c.SpreadMode.NONE&&!this.isInPresentationMode){const xe=this._pages[$e-1];ve.append(xe.div),ie.pages.push(xe)}else{const xe=new Set,je=this._spreadMode-1;je===-1?xe.add($e-1):$e%2!==je?(xe.add($e-1),xe.add($e)):(xe.add($e-2),xe.add($e-1));const qe=document.createElement("div");if(qe.className="spread",this.isInPresentationMode){const Je=document.createElement("div");Je.className="dummyPage",qe.append(Je)}for(const Je of xe){const He=this._pages[Je];He&&(qe.append(He.div),ie.pages.push(He))}ve.append(qe)}ie.scrollDown=$e>=ie.previousPageNumber,ie.previousPageNumber=$e}function ce($e){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const{div:ve,id:xe}=$e;if(this._currentPageNumber!==xe&&this._setCurrentPageNumber(xe),this._scrollMode===c.ScrollMode.PAGE&&(C(this,Ae,de).call(this),this.update()),!ie&&!this.isInPresentationMode){const je=ve.offsetLeft+ve.clientLeft,qe=je+ve.clientWidth,{scrollLeft:Je,clientWidth:He}=this.container;(this._scrollMode===c.ScrollMode.HORIZONTAL||je<Je||qe>Je+He)&&(ie={left:0,top:0})}(0,c.scrollIntoView)(ve,ie),!this._currentScaleValue&&this._location&&(this._location=null)}function ge($e){return $e===this._currentScale||Math.abs($e-this._currentScale)<1e-15}function Se(){const $e=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&this._setScale(this._currentScaleValue,{noScroll:!0}),C(this,Re,ce).call(this,$e)}async function Ce($e){if($e.pdfPage)return $e.pdfPage;try{var ie,ve;const xe=await this.pdfDocument.getPage($e.id);return $e.pdfPage||$e.setPdfPage(xe),(ie=(ve=this.linkService)._cachedPageNumber)!==null&&ie!==void 0&&ie.call(ve,xe.ref)||this.linkService.cachePageRef($e.id,xe.ref),xe}catch(xe){return console.error("Unable to get page for page view",xe),null}}function Pe($e){var ie,ve;if(((ie=$e.first)===null||ie===void 0?void 0:ie.id)===1)return!0;if(((ve=$e.last)===null||ve===void 0?void 0:ve.id)===this.pagesCount)return!1;switch(this._scrollMode){case c.ScrollMode.PAGE:return A(this,se).scrollDown;case c.ScrollMode.HORIZONTAL:return this.scroll.right}return this.scroll.down}function Le(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.container.clientHeight;$e!==A(this,F)&&(m(this,F,$e),c.docStyle.setProperty("--viewer-container-height",`${$e}px`))}function Ge($e){for(const ie of $e)if(ie.target===this.container){C(this,U,Le).call(this,Math.floor(ie.borderBoxSize[0].blockSize)),m(this,L,null);break}}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFRenderingQueue=void 0;var u=l(4),c=l(2);const f=3e4;class d{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(p){this.pdfViewer=p}setThumbnailViewer(p){this.pdfThumbnailViewer=p}isHighestPriority(p){return this.highestPriorityPage===p.renderingId}hasViewer(){return!!this.pdfViewer}renderHighestPriority(p){var g;this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(p)&&(this.isThumbnailViewEnabled&&(g=this.pdfThumbnailViewer)!==null&&g!==void 0&&g.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),f)))}getHighestPriority(p,g,v){let _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const S=p.views,C=S.length;if(C===0)return null;for(let O=0;O<C;O++){const R=S[O].view;if(!this.isViewFinished(R))return R}const A=p.first.id,b=p.last.id;if(b-A+1>C){const O=p.ids;for(let R=1,I=b-A;R<I;R++){const B=v?A+R:b-R;if(O.has(B))continue;const j=g[B-1];if(!this.isViewFinished(j))return j}}let m=v?b:A-2,w=g[m];return w&&!this.isViewFinished(w)||_&&(m+=v?1:-1,w=g[m],w&&!this.isViewFinished(w))?w:null}isViewFinished(p){return p.renderingState===c.RenderingStates.FINISHED}renderView(p){switch(p.renderingState){case c.RenderingStates.FINISHED:return!1;case c.RenderingStates.PAUSED:this.highestPriorityPage=p.renderingId,p.resume();break;case c.RenderingStates.RUNNING:this.highestPriorityPage=p.renderingId;break;case c.RenderingStates.INITIAL:this.highestPriorityPage=p.renderingId,p.draw().finally(()=>{this.renderHighestPriority()}).catch(g=>{g instanceof u.RenderingCancelledException||console.error(`renderView: "${g}"`)});break}return!0}}s.PDFRenderingQueue=d}],n={};function i(o){var s=n[o];if(s!==void 0)return s.exports;var l=n[o]={exports:{}};return r[o](l,l.exports,i),l.exports}var a={};return(()=>{var o=a;Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return u.AnnotationLayerBuilder}}),o.DefaultXfaLayerFactory=o.DefaultTextLayerFactory=o.DefaultStructTreeLayerFactory=o.DefaultAnnotationLayerFactory=void 0,Object.defineProperty(o,"DownloadManager",{enumerable:!0,get:function(){return c.DownloadManager}}),Object.defineProperty(o,"EventBus",{enumerable:!0,get:function(){return f.EventBus}}),Object.defineProperty(o,"GenericL10n",{enumerable:!0,get:function(){return d.GenericL10n}}),Object.defineProperty(o,"LinkTarget",{enumerable:!0,get:function(){return s.LinkTarget}}),Object.defineProperty(o,"NullL10n",{enumerable:!0,get:function(){return h.NullL10n}}),Object.defineProperty(o,"PDFFindController",{enumerable:!0,get:function(){return p.PDFFindController}}),Object.defineProperty(o,"PDFHistory",{enumerable:!0,get:function(){return g.PDFHistory}}),Object.defineProperty(o,"PDFLinkService",{enumerable:!0,get:function(){return s.PDFLinkService}}),Object.defineProperty(o,"PDFPageView",{enumerable:!0,get:function(){return v.PDFPageView}}),Object.defineProperty(o,"PDFScriptingManager",{enumerable:!0,get:function(){return _.PDFScriptingManager}}),Object.defineProperty(o,"PDFSinglePageViewer",{enumerable:!0,get:function(){return S.PDFSinglePageViewer}}),Object.defineProperty(o,"PDFViewer",{enumerable:!0,get:function(){return C.PDFViewer}}),Object.defineProperty(o,"ProgressBar",{enumerable:!0,get:function(){return l.ProgressBar}}),Object.defineProperty(o,"RenderingStates",{enumerable:!0,get:function(){return l.RenderingStates}}),Object.defineProperty(o,"ScrollMode",{enumerable:!0,get:function(){return l.ScrollMode}}),Object.defineProperty(o,"SimpleLinkService",{enumerable:!0,get:function(){return s.SimpleLinkService}}),Object.defineProperty(o,"SpreadMode",{enumerable:!0,get:function(){return l.SpreadMode}}),Object.defineProperty(o,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return A.StructTreeLayerBuilder}}),Object.defineProperty(o,"TextLayerBuilder",{enumerable:!0,get:function(){return b.TextLayerBuilder}}),Object.defineProperty(o,"XfaLayerBuilder",{enumerable:!0,get:function(){return m.XfaLayerBuilder}}),Object.defineProperty(o,"parseQueryString",{enumerable:!0,get:function(){return l.parseQueryString}});var s=i(1),l=i(2),u=i(3),c=i(6),f=i(7),d=i(8),h=i(5),p=i(10),g=i(12),v=i(13),_=i(21),S=i(23),C=i(24),A=i(16),b=i(19),m=i(20);class w{constructor(){throw new Error("The `DefaultAnnotationLayerFactory` has been removed, please use the `annotationMode` option when initializing the `PDFPageView`-instance to control AnnotationLayer rendering.")}}o.DefaultAnnotationLayerFactory=w;class O{constructor(){throw new Error("The `DefaultStructTreeLayerFactory` has been removed, this functionality is automatically enabled when the TextLayer is used.")}}o.DefaultStructTreeLayerFactory=O;class R{constructor(){throw new Error("The `DefaultTextLayerFactory` has been removed, please use the `textLayerMode` option when initializing the `PDFPageView`-instance to control TextLayer rendering.")}}o.DefaultTextLayerFactory=R;class I{constructor(){throw new Error("The `DefaultXfaLayerFactory` has been removed, please use the `enableXfa` option when calling the `getDocument`-function to control XfaLayer rendering.")}}o.DefaultXfaLayerFactory=I})(),a})())})(pdf_viewer);const pdf="",PDFWorker={create(){return refWorker("pptx.worker.js").defaults(()=>new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?new(require("url")).URL("file:"+__dirname+"/worker/pdf.worker.js").href:new URL("worker/pdf.worker.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),self.location),{type:"module"}))}},_withScopeId=e=>(vue.pushScopeId("data-v-47ad7fe7"),e=e(),vue.popScopeId(),e),_hoisted_1$3={class:"container"},_hoisted_2={class:"pdf_down"},_hoisted_3=_withScopeId(()=>vue.createElementVNode("div",{id:"viewer",class:"pdfViewer"},null,-1)),_hoisted_4=[_hoisted_3],_sfc_main$3=vue.defineComponent({__name:"PdfView",props:{data:null},setup(e){const t=e,r=vue.ref(null),n={viewer:null,search:"",pdf_scale:1};!pdfExports.GlobalWorkerOptions.workerPort&&typeof window<"u"&&"Worker"in window&&(pdfExports.GlobalWorkerOptions.workerPort=PDFWorker.create()),(()=>{async function o(){if(!r.value)return;const s=new pdf_viewerExports.EventBus,l=new pdf_viewerExports.PDFLinkService({eventBus:s}),u=new pdf_viewerExports.PDFFindController({eventBus:s,linkService:l,updateMatchesCountOnProgress:!0}),c=new pdf_viewerExports.PDFViewer({container:r.value,eventBus:s,linkService:l,findController:u,l10n:new pdf_viewerExports.GenericL10n("zh-CN")});l.setViewer(c),s.on("pagesinit",()=>{c.currentScaleValue="1"});const d=await pdfExports.getDocument({data:t.data,cMapPacked:!0,enableXfa:!0}).promise;c.setDocument(d),l.setDocument(d,null),n.viewer=c}vue.onMounted(o)})();function i(){if(!n.viewer)return;const o=n.viewer.currentScale;let s=0;window.screen.width>1440?s=1.4:s=1.2,!(o>=s)&&(n.viewer.currentScale=o+.1)}function a(){if(!n.viewer)return;const o=n.viewer.currentScale;o<=1||(n.viewer.currentScale=o-.1)}return(o,s)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3,[vue.createElementVNode("div",_hoisted_2,[vue.createElementVNode("div",{class:"pdf_set_left",onClick:s[0]||(s[0]=l=>i())},"➕"),vue.createElementVNode("div",{class:"pdf_set_middle",onClick:s[1]||(s[1]=l=>a())},"➖")]),vue.createElementVNode("div",{ref_key:"container",ref:r,class:"pdf-wrapper"},_hoisted_4,512)]))}}),PdfView_vue_vue_type_style_index_0_scoped_47ad7fe7_lang="",PdfView=_export_sfc$1(_sfc_main$3,[["__scopeId","data-v-47ad7fe7"]]),PdfView$1=Object.freeze(Object.defineProperty({__proto__:null,default:PdfView},Symbol.toStringTag,{value:"Module"}));/*!
|
|
375
|
+
`);[this._pageContents[Te],this._pageDiffs[Te],this._hasDiacritics[Te]]=L(gt.join("")),rt.resolve()},et=>{console.error(`Unable to get text content for page ${Te+1}`,et),this._pageContents[Te]="",this._pageDiffs[Te]=null,this._hasDiacritics[Te]=!1,rt.resolve()}))}}function je(ke){this._scrollMatches&&this._selected.pageIdx===ke&&(this._linkService.page=ke+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:ke})}function qe(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}function Je(){const ke=this._state.findPrevious,Te=this._linkService.page-1,Fe=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=Te,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,S(this,W,0),this._matchesCountTotal=0,_(this,G,qe).call(this);for(let et=0;et<Fe;et++)this._pendingFindMatches.has(et)||(this._pendingFindMatches.add(et),this._extractTextPromises[et].then(()=>{this._pendingFindMatches.delete(et),_(this,Re,ve).call(this,et)}))}if(!g(this,he)){_(this,ce,ht).call(this,b.FOUND);return}if(this._resumePageIdx)return;const rt=this._offset;if(this._pagesToSearch=Fe,rt.matchIdx!==null){const et=this._pageMatches[rt.pageIdx].length;if(!ke&&rt.matchIdx+1<et||ke&&rt.matchIdx>0){rt.matchIdx=ke?rt.matchIdx-1:rt.matchIdx+1,_(this,ee,Ie).call(this,!0);return}_(this,Y,Ue).call(this,ke)}_(this,ne,Qe).call(this)}function He(ke){const Te=this._offset,Fe=ke.length,rt=this._state.findPrevious;return Fe?(Te.matchIdx=rt?Fe-1:0,_(this,ee,Ie).call(this,!0),!0):(_(this,Y,Ue).call(this,rt),Te.wrapped&&(Te.matchIdx=null,this._pagesToSearch<0)?(_(this,ee,Ie).call(this,!1),!0):!1)}function Qe(){this._resumePageIdx!==null&&console.error("There can only be one pending page.");let ke=null;do{const Te=this._offset.pageIdx;if(ke=this._pageMatches[Te],!ke){this._resumePageIdx=Te;break}}while(!_(this,U,He).call(this,ke))}function Ue(ke){const Te=this._offset,Fe=this._linkService.pagesCount;Te.pageIdx=ke?Te.pageIdx-1:Te.pageIdx+1,Te.matchIdx=null,this._pagesToSearch--,(Te.pageIdx>=Fe||Te.pageIdx<0)&&(Te.pageIdx=ke?Fe-1:0,Te.wrapped=!0)}function Ie(){let ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Te=b.NOT_FOUND;const Fe=this._offset.wrapped;if(this._offset.wrapped=!1,ke){const rt=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,Te=Fe?b.WRAPPED:b.FOUND,rt!==-1&&rt!==this._selected.pageIdx&&_(this,_e,je).call(this,rt)}_(this,ce,ht).call(this,Te,this._state.findPrevious),this._selected.pageIdx!==-1&&(this._scrollMatches=!0,_(this,_e,je).call(this,this._selected.pageIdx))}function We(ke){const Te=this._pdfDocument;this._firstPageCapability.promise.then(()=>{!this._pdfDocument||Te&&this._pdfDocument!==Te||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),_(this,ce,ht).call(this,b.FOUND),this._highlightMatches=!1,_(this,G,qe).call(this))})}function lt(){const{pageIdx:ke,matchIdx:Te}=this._selected;let Fe=0,rt=this._matchesCountTotal;if(Te!==-1){for(let gt=0;gt<ke;gt++){var et;Fe+=((et=this._pageMatches[gt])===null||et===void 0?void 0:et.length)||0}Fe+=Te+1}return(Fe<1||Fe>rt)&&(Fe=rt=0),{current:Fe,total:rt}}function nt(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:_(this,le,lt).call(this)})}function ht(ke){var Te;let Fe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!g(this,F)&&(g(this,W)!==this._linkService.pagesCount||ke===b.PENDING)||this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:ke,previous:Fe,matchesCount:_(this,le,lt).call(this),rawQuery:((Te=this._state)===null||Te===void 0?void 0:Te.query)??null})}},(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.CharacterType=void 0,s.getCharacterType=C;const l={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};s.CharacterType=l;function u(A){return A<11904}function c(A){return(A&65408)===0}function f(A){return A>=97&&A<=122||A>=65&&A<=90}function d(A){return A>=48&&A<=57}function h(A){return A===32||A===9||A===13||A===10}function p(A){return A>=13312&&A<=40959||A>=63744&&A<=64255}function g(A){return A>=12448&&A<=12543}function v(A){return A>=12352&&A<=12447}function _(A){return A>=65376&&A<=65439}function S(A){return(A&65408)===3584}function C(A){return u(A)?c(A)?h(A)?l.SPACE:f(A)||d(A)||A===95?l.ALPHA_LETTER:l.PUNCT:S(A)?l.THAI_LETTER:A===160?l.SPACE:l.ALPHA_LETTER:p(A)?l.HAN_LETTER:g(A)?l.KATAKANA_LETTER:v(A)?l.HIRAGANA_LETTER:_(A)?l.HALFWIDTH_KATAKANA_LETTER:l.ALPHA_LETTER}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFHistory=void 0,s.isDestArraysEqual=_,s.isDestHashesEqual=v;var u=l(2),c=l(7);const f=1e3,d=50,h=1e3;function p(){return document.location.hash}class g{constructor(C){let{linkService:A,eventBus:b}=C;this.linkService=A,this.eventBus=b,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this.eventBus._on("pagesinit",()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",m=>{this._isPagesLoaded=!!m.pagesCount},{once:!0})})}initialize(C){let{fingerprint:A,resetHistory:b=!1,updateUrl:m=!1}=C;if(!A||typeof A!="string"){console.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');return}this._initialized&&this.reset();const w=this._fingerprint!==""&&this._fingerprint!==A;this._fingerprint=A,this._updateUrl=m===!0,this._initialized=!0,this._bindEvents();const O=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=p(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(O,!0)||b){const{hash:I,page:B,rotation:j}=this._parseCurrentHash(!0);if(!I||w||b){this._pushOrReplaceState(null,!0);return}this._pushOrReplaceState({hash:I,page:B,rotation:j},!0);return}const R=O.destination;this._updateInternalState(R,O.uid,!0),R.rotation!==void 0&&(this._initialRotation=R.rotation),R.dest?(this._initialBookmark=JSON.stringify(R.dest),this._destination.page=null):R.hash?this._initialBookmark=R.hash:R.page&&(this._initialBookmark=`page=${R.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push(C){let{namedDest:A=null,explicitDest:b,pageNumber:m}=C;if(!this._initialized)return;if(A&&typeof A!="string"){console.error(`PDFHistory.push: "${A}" is not a valid namedDest parameter.`);return}else if(Array.isArray(b)){if(!this._isValidPage(m)&&(m!==null||this._destination)){console.error(`PDFHistory.push: "${m}" is not a valid pageNumber parameter.`);return}}else{console.error(`PDFHistory.push: "${b}" is not a valid explicitDest parameter.`);return}const w=A||JSON.stringify(b);if(!w)return;let O=!1;if(this._destination&&(v(this._destination.hash,w)||_(this._destination.dest,b))){if(this._destination.page)return;O=!0}this._popStateInProgress&&!O||(this._pushOrReplaceState({dest:b,hash:w,page:m,rotation:this.linkService.rotation},O),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1})))}pushPage(C){var A;if(this._initialized){if(!this._isValidPage(C)){console.error(`PDFHistory.pushPage: "${C}" is not a valid page number.`);return}((A=this._destination)===null||A===void 0?void 0:A.page)!==C&&(this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:`page=${C}`,page:C,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then(()=>{this._popStateInProgress=!1}))))}}pushCurrentPosition(){!this._initialized||this._popStateInProgress||this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const C=window.history.state;this._isValidState(C)&&C.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const C=window.history.state;this._isValidState(C)&&C.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}_pushOrReplaceState(C){const b=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)||!this._destination,m={fingerprint:this._fingerprint,uid:b?this._uid:this._uid+1,destination:C};this._updateInternalState(C,m.uid);let w;if(this._updateUrl&&C!==null&&C!==void 0&&C.hash){const O=document.location.href.split("#")[0];O.startsWith("file://")||(w=`${O}#${C.hash}`)}b?window.history.replaceState(m,"",w):window.history.pushState(m,"",w)}_tryPushCurrentPosition(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this._position)return;let A=this._position;if(C&&(A=Object.assign(Object.create(null),this._position),A.temporary=!0),!this._destination){this._pushOrReplaceState(A);return}if(this._destination.temporary){this._pushOrReplaceState(A,!0);return}if(this._destination.hash===A.hash||!this._destination.page&&this._numPositionUpdates<=d)return;let b=!1;if(this._destination.page>=A.first&&this._destination.page<=A.page){if(this._destination.dest!==void 0||!this._destination.first)return;b=!0}this._pushOrReplaceState(A,b)}_isValidPage(C){return Number.isInteger(C)&&C>0&&C<=this.linkService.pagesCount}_isValidState(C){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!C)return!1;if(C.fingerprint!==this._fingerprint)if(A){if(typeof C.fingerprint!="string"||C.fingerprint.length!==this._fingerprint.length)return!1;const[b]=performance.getEntriesByType("navigation");if((b==null?void 0:b.type)!=="reload")return!1}else return!1;return!(!Number.isInteger(C.uid)||C.uid<0||C.destination===null||typeof C.destination!="object")}_updateInternalState(C,A){let b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),b&&C!==null&&C!==void 0&&C.temporary&&delete C.temporary,this._destination=C,this._uid=A,this._maxUid=Math.max(this._maxUid,A),this._numPositionUpdates=0}_parseCurrentHash(){let C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const A=unescape(p()).substring(1),b=(0,u.parseQueryString)(A),m=b.get("nameddest")||"";let w=b.get("page")|0;return(!this._isValidPage(w)||C&&m.length>0)&&(w=null),{hash:A,page:w,rotation:this.linkService.rotation}}_updateViewarea(C){let{location:A}=C;this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:A.pdfOpenParams.substring(1),page:this.linkService.page,first:A.pageNumber,rotation:A.rotation},!this._popStateInProgress&&(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout(()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null},h))}_popState(C){let{state:A}=C;const b=p(),m=this._currentHash!==b;if(this._currentHash=b,!A){this._uid++;const{hash:O,page:R,rotation:I}=this._parseCurrentHash();this._pushOrReplaceState({hash:O,page:R,rotation:I},!0);return}if(!this._isValidState(A))return;this._popStateInProgress=!0,m&&(this._blockHashChange++,(0,c.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:f}).then(()=>{this._blockHashChange--}));const w=A.destination;this._updateInternalState(w,A.uid,!0),(0,u.isValidRotation)(w.rotation)&&(this.linkService.rotation=w.rotation),w.dest?this.linkService.goToDestination(w.dest):w.hash?this.linkService.setHash(w.hash):w.page&&(this.linkService.page=w.page),Promise.resolve().then(()=>{this._popStateInProgress=!1})}_pageHide(){(!this._destination||this._destination.temporary)&&this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}s.PDFHistory=g;function v(S,C){return typeof S!="string"||typeof C!="string"?!1:S===C||(0,u.parseQueryString)(S).get("nameddest")===C}function _(S,C){function A(b,m){if(typeof b!=typeof m||Array.isArray(b)||Array.isArray(m))return!1;if(b!==null&&typeof b=="object"&&m!==null){if(Object.keys(b).length!==Object.keys(m).length)return!1;for(const w in b)if(!A(b[w],m[w]))return!1;return!0}return b===m||Number.isNaN(b)&&Number.isNaN(m)}if(!(Array.isArray(S)&&Array.isArray(C))||S.length!==C.length)return!1;for(let b=0,m=S.length;b<m;b++)if(!A(S[b],C[b]))return!1;return!0}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFPageView=void 0;var u=l(4),c=l(2),f=l(14),d=l(3),h=l(15),p=l(5),g=l(1),v=l(16),_=l(17),S=l(18),C=l(19),A=l(20);function b(z,U){w(z,U),U.add(z)}function m(z,U,ne){w(z,U),U.set(z,ne)}function w(z,U){if(U.has(z))throw new TypeError("Cannot initialize the same private elements twice on an object")}function O(z,U){var ne=j(z,U,"get");return R(z,ne)}function R(z,U){return U.get?U.get.call(z):U.value}function I(z,U,ne){if(!U.has(z))throw new TypeError("attempted to get private field on non-instance");return ne}function B(z,U,ne){var Y=j(z,U,"set");return H(z,Y,ne),ne}function j(z,U,ne){if(!U.has(z))throw new TypeError("attempted to "+ne+" private field on non-instance");return U.get(z)}function H(z,U,ne){if(U.set)U.set.call(z,ne);else{if(!U.writable)throw new TypeError("attempted to set read only private field");U.value=ne}}const M=h.compatibilityParams.maxCanvasPixels||16777216,J=()=>({annotationEditorUIManager:null,annotationStorage:null,downloadManager:null,enableScripting:!1,fieldObjectsPromise:null,findController:null,hasJSActionsPromise:null,get linkService(){return new g.SimpleLinkService}});var ue=new WeakMap,ae=new WeakMap,K=new WeakMap,P=new WeakMap,N=new WeakMap,T=new WeakMap,L=new WeakSet,q=new WeakSet,F=new WeakSet,W=new WeakSet,se=new WeakSet,fe=new WeakSet,he=new WeakSet;class oe{constructor(U){var ne;b(this,he),b(this,fe),b(this,se),b(this,W),b(this,F),b(this,q),b(this,L),m(this,ue,{writable:!0,value:u.AnnotationMode.ENABLE_FORMS}),m(this,ae,{writable:!0,value:null}),m(this,K,{writable:!0,value:null}),m(this,P,{writable:!0,value:null}),m(this,N,{writable:!0,value:c.RenderingStates.INITIAL}),m(this,T,{writable:!0,value:{initialOptionalContent:!0,regularAnnotations:!0}});const Y=U.container,ee=U.defaultViewport;this.id=U.id,this.renderingId="page"+this.id,B(this,ae,U.layerProperties||J),this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=U.scale||c.DEFAULT_SCALE,this.viewport=ee,this.pdfPageRotate=ee.rotation,this._optionalContentConfigPromise=U.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=U.textLayerMode??c.TextLayerMode.ENABLE,B(this,ue,U.annotationMode??u.AnnotationMode.ENABLE_FORMS),this.imageResourcesPath=U.imageResourcesPath||"",this.useOnlyCssZoom=U.useOnlyCssZoom||!1,this.isOffscreenCanvasSupported=U.isOffscreenCanvasSupported??!0,this.maxCanvasPixels=U.maxCanvasPixels||M,this.pageColors=U.pageColors||null,this.eventBus=U.eventBus,this.renderingQueue=U.renderingQueue,this.renderer=U.renderer||c.RendererType.CANVAS,this.l10n=U.l10n||p.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.resume=null,this._renderError=null,this._isStandalone=!((ne=this.renderingQueue)!==null&&ne!==void 0&&ne.hasViewer()),this._annotationCanvasMap=null,this.annotationLayer=null,this.annotationEditorLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;const Z=document.createElement("div");if(Z.className="page",Z.setAttribute("data-page-number",this.id),Z.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then(le=>{Z.setAttribute("aria-label",le)}),this.div=Z,I(this,L,be).call(this),Y==null||Y.append(Z),this._isStandalone){Y==null||Y.style.setProperty("--scale-factor",this.scale*u.PixelsPerInch.PDF_TO_CSS_UNITS);const{optionalContentConfigPromise:le}=U;le&&le.then(de=>{le===this._optionalContentConfigPromise&&(O(this,T).initialOptionalContent=de.hasInitialVisibility)})}}get renderingState(){return O(this,N)}set renderingState(U){if(U!==O(this,N))switch(B(this,N,U),O(this,K)&&(clearTimeout(O(this,K)),B(this,K,null)),U){case c.RenderingStates.PAUSED:this.div.classList.remove("loading");break;case c.RenderingStates.RUNNING:this.div.classList.add("loadingIcon"),B(this,K,setTimeout(()=>{this.div.classList.add("loading"),B(this,K,null)},0));break;case c.RenderingStates.INITIAL:case c.RenderingStates.FINISHED:this.div.classList.remove("loadingIcon","loading");break}}setPdfPage(U){this.pdfPage=U,this.pdfPageRotate=U.rotate;const ne=(this.rotation+this.pdfPageRotate)%360;this.viewport=U.getViewport({scale:this.scale*u.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:ne}),I(this,L,be).call(this),this.reset()}destroy(){var U;this.reset(),(U=this.pdfPage)===null||U===void 0||U.cleanup()}get _textHighlighter(){return(0,u.shadow)(this,"_textHighlighter",new S.TextHighlighter({pageIndex:this.id-1,eventBus:this.eventBus,findController:O(this,ae).call(this).findController}))}_resetZoomLayer(){let U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.zoomLayer)return;const ne=this.zoomLayer.firstChild;this.paintedViewportMap.delete(ne),ne.width=0,ne.height=0,U&&this.zoomLayer.remove(),this.zoomLayer=null}reset(){var U,ne,Y,ee,Z;let{keepZoomLayer:le=!1,keepAnnotationLayer:de=!1,keepAnnotationEditorLayer:ce=!1,keepXfaLayer:ge=!1,keepTextLayer:Se=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.cancelRendering({keepAnnotationLayer:de,keepAnnotationEditorLayer:ce,keepXfaLayer:ge,keepTextLayer:Se}),this.renderingState=c.RenderingStates.INITIAL;const Ce=this.div,Pe=Ce.childNodes,Le=le&&this.zoomLayer||null,Ge=de&&((U=this.annotationLayer)===null||U===void 0?void 0:U.div)||null,$e=ce&&((ne=this.annotationEditorLayer)===null||ne===void 0?void 0:ne.div)||null,ie=ge&&((Y=this.xfaLayer)===null||Y===void 0?void 0:Y.div)||null,ve=Se&&((ee=this.textLayer)===null||ee===void 0?void 0:ee.div)||null;for(let xe=Pe.length-1;xe>=0;xe--){const je=Pe[xe];switch(je){case Le:case Ge:case $e:case ie:case ve:continue}je.remove()}Ce.removeAttribute("data-loaded"),Ge&&this.annotationLayer.hide(),$e&&this.annotationEditorLayer.hide(),ie&&this.xfaLayer.hide(),ve&&this.textLayer.hide(),(Z=this.structTreeLayer)===null||Z===void 0||Z.hide(),Le||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg)}update(U){let{scale:ne=0,rotation:Y=null,optionalContentConfigPromise:ee=null,drawingDelay:Z=-1}=U;this.scale=ne||this.scale,typeof Y=="number"&&(this.rotation=Y),ee instanceof Promise&&(this._optionalContentConfigPromise=ee,ee.then(Se=>{ee===this._optionalContentConfigPromise&&(O(this,T).initialOptionalContent=Se.hasInitialVisibility)}));const le=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*u.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:le}),I(this,L,be).call(this),this._isStandalone){var de;(de=this.div.parentNode)===null||de===void 0||de.style.setProperty("--scale-factor",this.viewport.scale)}if(this.svg){this.cssTransform({target:this.svg,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0,redrawTextLayer:!0}),this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});return}let ce=!1;if(this.canvas&&this.maxCanvasPixels>0){const Se=this.outputScale;(Math.floor(this.viewport.width)*Se.sx|0)*(Math.floor(this.viewport.height)*Se.sy|0)>this.maxCanvasPixels&&(ce=!0)}const ge=Z>=0&&Z<1e3;if(this.canvas){if(ge||this.useOnlyCssZoom||this.hasRestrictedScaling&&ce){ge&&this.renderingState!==c.RenderingStates.FINISHED&&(this.cancelRendering({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0,cancelExtraDelay:Z}),this.renderingState=c.RenderingStates.FINISHED),this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0,redrawTextLayer:!ge,hideTextLayer:ge}),this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});return}!this.zoomLayer&&!this.canvas.hidden&&(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0,keepTextLayer:!0})}cancelRendering(){let{keepAnnotationLayer:U=!1,keepAnnotationEditorLayer:ne=!1,keepXfaLayer:Y=!1,keepTextLayer:ee=!1,cancelExtraDelay:Z=0}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this.paintTask&&(this.paintTask.cancel(Z),this.paintTask=null),this.resume=null,this.textLayer&&(!ee||!this.textLayer.div)&&(this.textLayer.cancel(),this.textLayer=null),this.structTreeLayer&&!this.textLayer&&(this.structTreeLayer=null),this.annotationLayer&&(!U||!this.annotationLayer.div)&&(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),this.annotationEditorLayer&&(!ne||!this.annotationEditorLayer.div)&&(this.annotationEditorLayer.cancel(),this.annotationEditorLayer=null),this.xfaLayer&&(!Y||!this.xfaLayer.div)){var le;this.xfaLayer.cancel(),this.xfaLayer=null,(le=this._textHighlighter)===null||le===void 0||le.disable()}}cssTransform(U){let{target:ne,redrawAnnotationLayer:Y=!1,redrawAnnotationEditorLayer:ee=!1,redrawXfaLayer:Z=!1,redrawTextLayer:le=!1,hideTextLayer:de=!1}=U;if(ne instanceof HTMLCanvasElement){if(!ne.hasAttribute("zooming")){ne.setAttribute("zooming",!0);const{style:Se}=ne;Se.width=Se.height=""}}else{const Se=this.div,{width:Ce,height:Pe}=this.viewport;ne.style.width=ne.parentNode.style.width=Se.style.width=Math.floor(Ce)+"px",ne.style.height=ne.parentNode.style.height=Se.style.height=Math.floor(Pe)+"px"}const ce=this.paintedViewportMap.get(ne);if(this.viewport!==ce){const Se=this.viewport.rotation-ce.rotation,Ce=Math.abs(Se);let Pe=1,Le=1;if(Ce===90||Ce===270){const{width:Ge,height:$e}=this.viewport;Pe=$e/Ge,Le=Ge/$e}Ce!==0&&(ne.style.transform=`rotate(${Se}deg) scale(${Pe}, ${Le})`)}if(Y&&this.annotationLayer&&I(this,q,Ee).call(this),ee&&this.annotationEditorLayer&&I(this,F,Ae).call(this),Z&&this.xfaLayer&&I(this,W,Re).call(this),this.textLayer)if(de){var ge;this.textLayer.hide(),(ge=this.structTreeLayer)===null||ge===void 0||ge.hide()}else le&&I(this,se,V).call(this)}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(U,ne){return this.viewport.convertToPdfPoint(U,ne)}draw(){var U=this;this.renderingState!==c.RenderingStates.INITIAL&&(console.error("Must be in new state before drawing"),this.reset());const{div:ne,pdfPage:Y}=this;if(!Y)return this.renderingState=c.RenderingStates.FINISHED,Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=c.RenderingStates.RUNNING;const ee=document.createElement("div");if(ee.classList.add("canvasWrapper"),ne.append(ee),!this.textLayer&&this.textLayerMode!==c.TextLayerMode.DISABLE&&!Y.isPureXfa&&(this._accessibilityManager||(this._accessibilityManager=new _.TextAccessibilityManager),this.textLayer=new C.TextLayerBuilder({highlighter:this._textHighlighter,accessibilityManager:this._accessibilityManager,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported}),ne.append(this.textLayer.div)),!this.annotationLayer&&O(this,ue)!==u.AnnotationMode.DISABLE){const{annotationStorage:ge,downloadManager:Se,enableScripting:Ce,fieldObjectsPromise:Pe,hasJSActionsPromise:Le,linkService:Ge}=O(this,ae).call(this);this._annotationCanvasMap||(this._annotationCanvasMap=new Map),this.annotationLayer=new d.AnnotationLayerBuilder({pageDiv:ne,pdfPage:Y,annotationStorage:ge,imageResourcesPath:this.imageResourcesPath,renderForms:O(this,ue)===u.AnnotationMode.ENABLE_FORMS,linkService:Ge,downloadManager:Se,l10n:this.l10n,enableScripting:Ce,hasJSActionsPromise:Le,fieldObjectsPromise:Pe,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager})}let Z=null;this.renderingQueue&&(Z=ge=>{if(!this.renderingQueue.isHighestPriority(this)){this.renderingState=c.RenderingStates.PAUSED,this.resume=()=>{this.renderingState=c.RenderingStates.RUNNING,ge()};return}ge()});const le=async function(){let ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(de===U.paintTask&&(U.paintTask=null),ge instanceof u.RenderingCancelledException){U._renderError=null;return}if(U._renderError=ge,U.renderingState=c.RenderingStates.FINISHED,U._resetZoomLayer(!0),O(U,T).regularAnnotations=!de.separateAnnots,U.eventBus.dispatch("pagerendered",{source:U,pageNumber:U.id,cssTransform:!1,timestamp:performance.now(),error:U._renderError}),ge)throw ge},de=this.renderer===c.RendererType.SVG?this.paintOnSvg(ee):this.paintOnCanvas(ee);de.onRenderContinue=Z,this.paintTask=de;const ce=de.promise.then(()=>le(null).then(async()=>{if(I(this,se,V).call(this),this.annotationLayer&&await I(this,q,Ee).call(this),!this.annotationEditorLayer){const{annotationEditorUIManager:ge}=O(this,ae).call(this);if(!ge)return;this.annotationEditorLayer=new f.AnnotationEditorLayerBuilder({uiManager:ge,pageDiv:ne,pdfPage:Y,l10n:this.l10n,accessibilityManager:this._accessibilityManager})}I(this,F,Ae).call(this)}),function(ge){return le(ge)});if(Y.isPureXfa){if(this.xfaLayer)this.xfaLayer.div&&ne.append(this.xfaLayer.div);else{const{annotationStorage:ge,linkService:Se}=O(this,ae).call(this);this.xfaLayer=new A.XfaLayerBuilder({pageDiv:ne,pdfPage:Y,annotationStorage:ge,linkService:Se})}I(this,W,Re).call(this)}return ne.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),ce}paintOnCanvas(U){const ne=(0,u.createPromiseCapability)(),Y={promise:ne.promise,onRenderContinue(xe){xe()},cancel(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;ve.cancel(xe)},get separateAnnots(){return ve.separateAnnots}},ee=this.viewport,{width:Z,height:le}=ee,de=document.createElement("canvas");de.setAttribute("role","presentation"),de.hidden=!0;let ce=!0;const ge=function(){ce&&(de.hidden=!1,ce=!1)};U.append(de),this.canvas=de;const Se=de.getContext("2d",{alpha:!1}),Ce=this.outputScale=new c.OutputScale;if(this.useOnlyCssZoom){const xe=ee.clone({scale:u.PixelsPerInch.PDF_TO_CSS_UNITS});Ce.sx*=xe.width/Z,Ce.sy*=xe.height/le}if(this.maxCanvasPixels>0){const xe=Z*le,je=Math.sqrt(this.maxCanvasPixels/xe);Ce.sx>je||Ce.sy>je?(Ce.sx=je,Ce.sy=je,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const Pe=(0,c.approximateFraction)(Ce.sx),Le=(0,c.approximateFraction)(Ce.sy);de.width=(0,c.roundToDivide)(ee.width*Ce.sx,Pe[0]),de.height=(0,c.roundToDivide)(ee.height*Ce.sy,Le[0]);const{style:Ge}=de;Ge.width=(0,c.roundToDivide)(ee.width,Pe[1])+"px",Ge.height=(0,c.roundToDivide)(ee.height,Le[1])+"px",this.paintedViewportMap.set(de,ee);const $e=Ce.scaled?[Ce.sx,0,0,Ce.sy,0,0]:null,ie={canvasContext:Se,transform:$e,viewport:ee,annotationMode:O(this,ue),optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors},ve=this.pdfPage.render(ie);return ve.onContinue=function(xe){ge(),Y.onRenderContinue?Y.onRenderContinue(xe):xe()},ve.promise.then(function(){ge(),ne.resolve()},function(xe){xe instanceof u.RenderingCancelledException||ge(),ne.reject(xe)}),Y}paintOnSvg(U){let ne=!1;const Y=()=>{if(ne)throw new u.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},ee=this.pdfPage,Z=this.viewport.clone({scale:u.PixelsPerInch.PDF_TO_CSS_UNITS});return{promise:ee.getOperatorList({annotationMode:O(this,ue)}).then(de=>(Y(),new u.SVGGraphics(ee.commonObjs,ee.objs).getSVG(de,Z).then(ge=>{Y(),this.svg=ge,this.paintedViewportMap.set(ge,Z),ge.style.width=U.style.width,ge.style.height=U.style.height,this.renderingState=c.RenderingStates.FINISHED,U.append(ge)}))),onRenderContinue(de){de()},cancel(){ne=!0},get separateAnnots(){return!1}}}setPageLabel(U){this.pageLabel=typeof U=="string"?U:null,this.pageLabel!==null?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}get thumbnailCanvas(){const{initialOptionalContent:U,regularAnnotations:ne}=O(this,T);return U&&ne?this.canvas:null}}s.PDFPageView=oe;function be(){const{viewport:z}=this;if(this.pdfPage){if(O(this,P)===z.rotation)return;B(this,P,z.rotation)}(0,u.setLayerDimensions)(this.div,z,!0,!1)}async function Ee(){let z=null;try{await this.annotationLayer.render(this.viewport,"display")}catch(U){console.error(`#renderAnnotationLayer: "${U}".`),z=U}finally{this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:z})}}async function Ae(){let z=null;try{await this.annotationEditorLayer.render(this.viewport,"display")}catch(U){console.error(`#renderAnnotationEditorLayer: "${U}".`),z=U}finally{this.eventBus.dispatch("annotationeditorlayerrendered",{source:this,pageNumber:this.id,error:z})}}async function Re(){let z=null;try{const U=await this.xfaLayer.render(this.viewport,"display");U!=null&&U.textDivs&&this._textHighlighter&&I(this,he,G).call(this,U.textDivs)}catch(U){console.error(`#renderXfaLayer: "${U}".`),z=U}finally{this.eventBus.dispatch("xfalayerrendered",{source:this,pageNumber:this.id,error:z})}}async function V(){const{pdfPage:z,textLayer:U,viewport:ne}=this;if(!U)return;let Y=null;try{if(!U.renderingDone){const ee=z.streamTextContent({includeMarkedContent:!0});U.setTextContentSource(ee)}await U.render(ne)}catch(ee){if(ee instanceof u.AbortException)return;console.error(`#renderTextLayer: "${ee}".`),Y=ee}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.id,numTextDivs:U.numTextDivs,error:Y}),I(this,fe,_e).call(this)}async function _e(){var z,U;if(!this.textLayer)return;this.structTreeLayer||(this.structTreeLayer=new v.StructTreeLayerBuilder);const ne=await(this.structTreeLayer.renderingDone?null:this.pdfPage.getStructTree()),Y=(z=this.structTreeLayer)===null||z===void 0?void 0:z.render(ne);if(Y){var ee;(ee=this.canvas)===null||ee===void 0||ee.append(Y)}(U=this.structTreeLayer)===null||U===void 0||U.show()}async function G(z){const U=await this.pdfPage.getTextContent(),ne=[];for(const Y of U.items)ne.push(Y.str);this._textHighlighter.setTextMapping(z,ne),this._textHighlighter.enable()}},(o,s,l)=>{var d;Object.defineProperty(s,"__esModule",{value:!0}),s.AnnotationEditorLayerBuilder=void 0;var u=l(4),c=l(5);class f{constructor(p){qt(this,d,void 0);this.pageDiv=p.pageDiv,this.pdfPage=p.pdfPage,this.accessibilityManager=p.accessibilityManager,this.l10n=p.l10n||c.NullL10n,this.annotationEditorLayer=null,this.div=null,this._cancelled=!1,Qt(this,d,p.uiManager)}async render(p){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"display";if(g!=="display"||this._cancelled)return;const v=p.clone({dontFlip:!0});if(this.div){this.annotationEditorLayer.update({viewport:v}),this.show();return}const _=this.div=document.createElement("div");_.className="annotationEditorLayer",_.tabIndex=0,_.hidden=!0,this.pageDiv.append(_),this.annotationEditorLayer=new u.AnnotationEditorLayer({uiManager:_t(this,d),div:_,accessibilityManager:this.accessibilityManager,pageIndex:this.pdfPage.pageNumber-1,l10n:this.l10n,viewport:v});const S={viewport:v,div:_,annotations:null,intent:g};this.annotationEditorLayer.render(S),this.show()}cancel(){this._cancelled=!0,this.div&&(this.pageDiv=null,this.annotationEditorLayer.destroy(),this.div.remove())}hide(){this.div&&(this.div.hidden=!0)}show(){!this.div||this.annotationEditorLayer.isEmpty||(this.div.hidden=!1)}}d=new WeakMap,s.AnnotationEditorLayerBuilder=f},(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.compatibilityParams=s.OptionKind=s.AppOptions=void 0;const l=Object.create(null);s.compatibilityParams=l;{const h=navigator.userAgent||"",p=navigator.platform||"",g=navigator.maxTouchPoints||1,v=/Android/.test(h),_=/\b(iPad|iPhone|iPod)(?=;)/.test(h)||p==="MacIntel"&&g>1;(function(){(_||v)&&(l.maxCanvasPixels=5242880)})()}const u={VIEWER:2,API:4,WORKER:8,PREFERENCE:128};s.OptionKind=u;const c={annotationEditorMode:{value:0,kind:u.VIEWER+u.PREFERENCE},annotationMode:{value:2,kind:u.VIEWER+u.PREFERENCE},cursorToolOnLoad:{value:0,kind:u.VIEWER+u.PREFERENCE},defaultZoomDelay:{value:400,kind:u.VIEWER+u.PREFERENCE},defaultZoomValue:{value:"",kind:u.VIEWER+u.PREFERENCE},disableHistory:{value:!1,kind:u.VIEWER},disablePageLabels:{value:!1,kind:u.VIEWER+u.PREFERENCE},enablePermissions:{value:!1,kind:u.VIEWER+u.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:u.VIEWER+u.PREFERENCE},enableScripting:{value:!0,kind:u.VIEWER+u.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:u.VIEWER},externalLinkTarget:{value:0,kind:u.VIEWER+u.PREFERENCE},historyUpdateUrl:{value:!1,kind:u.VIEWER+u.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:u.VIEWER+u.PREFERENCE},imageResourcesPath:{value:"./images/",kind:u.VIEWER},maxCanvasPixels:{value:16777216,kind:u.VIEWER},forcePageColors:{value:!1,kind:u.VIEWER+u.PREFERENCE},pageColorsBackground:{value:"Canvas",kind:u.VIEWER+u.PREFERENCE},pageColorsForeground:{value:"CanvasText",kind:u.VIEWER+u.PREFERENCE},pdfBugEnabled:{value:!1,kind:u.VIEWER+u.PREFERENCE},printResolution:{value:150,kind:u.VIEWER},sidebarViewOnLoad:{value:-1,kind:u.VIEWER+u.PREFERENCE},scrollModeOnLoad:{value:-1,kind:u.VIEWER+u.PREFERENCE},spreadModeOnLoad:{value:-1,kind:u.VIEWER+u.PREFERENCE},textLayerMode:{value:1,kind:u.VIEWER+u.PREFERENCE},useOnlyCssZoom:{value:!1,kind:u.VIEWER+u.PREFERENCE},viewerCssTheme:{value:0,kind:u.VIEWER+u.PREFERENCE},viewOnLoad:{value:0,kind:u.VIEWER+u.PREFERENCE},cMapPacked:{value:!0,kind:u.API},cMapUrl:{value:"../web/cmaps/",kind:u.API},disableAutoFetch:{value:!1,kind:u.API+u.PREFERENCE},disableFontFace:{value:!1,kind:u.API+u.PREFERENCE},disableRange:{value:!1,kind:u.API+u.PREFERENCE},disableStream:{value:!1,kind:u.API+u.PREFERENCE},docBaseUrl:{value:"",kind:u.API},enableXfa:{value:!0,kind:u.API+u.PREFERENCE},fontExtraProperties:{value:!1,kind:u.API},isEvalSupported:{value:!0,kind:u.API},isOffscreenCanvasSupported:{value:!0,kind:u.API},maxImageSize:{value:-1,kind:u.API},pdfBug:{value:!1,kind:u.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:u.API},verbosity:{value:1,kind:u.API},workerPort:{value:null,kind:u.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:u.WORKER}};c.defaultUrl={value:"compressed.tracemonkey-pldi-09.pdf",kind:u.VIEWER},c.disablePreferences={value:!1,kind:u.VIEWER},c.locale={value:navigator.language||"en-US",kind:u.VIEWER},c.renderer={value:"canvas",kind:u.VIEWER+u.PREFERENCE},c.sandboxBundleSrc={value:"../build/pdf.sandbox.js",kind:u.VIEWER};const f=Object.create(null);class d{constructor(){throw new Error("Cannot initialize AppOptions.")}static get(p){const g=f[p];if(g!==void 0)return g;const v=c[p];if(v!==void 0)return l[p]??v.value}static getAll(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;const g=Object.create(null);for(const v in c){const _=c[v];if(p){if(!(p&_.kind))continue;if(p===u.PREFERENCE){const C=_.value,A=typeof C;if(A==="boolean"||A==="string"||A==="number"&&Number.isInteger(C)){g[v]=C;continue}throw new Error(`Invalid type for preference: ${v}`)}}const S=f[v];g[v]=S!==void 0?S:l[v]??_.value}return g}static set(p,g){f[p]=g}static setAll(p){for(const g in p)f[g]=p[g]}static remove(p){delete f[p]}}s.AppOptions=d,d._hasUserOptions=function(){return Object.keys(f).length>0}},(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.StructTreeLayerBuilder=void 0;function l(R,I){c(R,I),I.add(R)}function u(R,I,B){c(R,I),I.set(R,B)}function c(R,I){if(I.has(R))throw new TypeError("Cannot initialize the same private elements twice on an object")}function f(R,I,B){var j=g(R,I,"set");return d(R,j,B),B}function d(R,I,B){if(I.set)I.set.call(R,B);else{if(!I.writable)throw new TypeError("attempted to set read only private field");I.value=B}}function h(R,I,B){if(!I.has(R))throw new TypeError("attempted to get private field on non-instance");return B}function p(R,I){var B=g(R,I,"get");return v(R,B)}function g(R,I,B){if(!I.has(R))throw new TypeError("attempted to "+B+" private field on non-instance");return I.get(R)}function v(R,I){return I.get?I.get.call(R):I.value}const _={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},S=/^H(\d+)$/;var C=new WeakMap,A=new WeakSet,b=new WeakSet;class m{constructor(){l(this,b),l(this,A),u(this,C,{writable:!0,value:void 0})}get renderingDone(){return p(this,C)!==void 0}render(I){if(p(this,C)!==void 0)return p(this,C);const B=h(this,b,O).call(this,I);return B==null||B.classList.add("structTree"),f(this,C,B)}hide(){p(this,C)&&!p(this,C).hidden&&(p(this,C).hidden=!0)}show(){var I;(I=p(this,C))!==null&&I!==void 0&&I.hidden&&(p(this,C).hidden=!1)}}s.StructTreeLayerBuilder=m;function w(R,I){R.alt!==void 0&&I.setAttribute("aria-label",R.alt),R.id!==void 0&&I.setAttribute("aria-owns",R.id),R.lang!==void 0&&I.setAttribute("lang",R.lang)}function O(R){if(!R)return null;const I=document.createElement("span");if("role"in R){const{role:B}=R,j=B.match(S);j?(I.setAttribute("role","heading"),I.setAttribute("aria-level",j[1])):_[B]&&I.setAttribute("role",_[B])}if(h(this,A,w).call(this,R,I),R.children)if(R.children.length===1&&"id"in R.children[0])h(this,A,w).call(this,R.children[0],I);else for(const B of R.children)I.append(h(this,b,O).call(this,B));return I}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.TextAccessibilityManager=void 0;var u=l(2);function c(H,M){d(H,M),M.add(H)}function f(H,M,J){d(H,M),M.set(H,J)}function d(H,M){if(M.has(H))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(H,M,J){if(!M.has(H))throw new TypeError("attempted to get private field on non-instance");return J}function p(H,M,J){return g(H,M),J}function g(H,M){if(H!==M)throw new TypeError("Private static access of wrong provenance")}function v(H,M){var J=C(H,M,"get");return _(H,J)}function _(H,M){return M.get?M.get.call(H):M.value}function S(H,M,J){var ue=C(H,M,"set");return A(H,ue,J),J}function C(H,M,J){if(!M.has(H))throw new TypeError("attempted to "+J+" private field on non-instance");return M.get(H)}function A(H,M,J){if(M.set)M.set.call(H,J);else{if(!M.writable)throw new TypeError("attempted to set read only private field");M.value=J}}var b=new WeakMap,m=new WeakMap,w=new WeakMap,O=new WeakMap,R=new WeakSet;class I{constructor(){c(this,R),f(this,b,{writable:!0,value:!1}),f(this,m,{writable:!0,value:null}),f(this,w,{writable:!0,value:new Map}),f(this,O,{writable:!0,value:new Map})}setTextMapping(M){S(this,m,M)}enable(){if(v(this,b))throw new Error("TextAccessibilityManager is already enabled.");if(!v(this,m))throw new Error("Text divs and strings have not been set.");if(S(this,b,!0),S(this,m,v(this,m).slice()),v(this,m).sort(p(I,I,B)),v(this,w).size>0){const M=v(this,m);for(const[J,ue]of v(this,w)){if(!document.getElementById(J)){v(this,w).delete(J);continue}h(this,R,j).call(this,J,M[ue])}}for(const[M,J]of v(this,O))this.addPointerInTextLayer(M,J);v(this,O).clear()}disable(){v(this,b)&&(v(this,O).clear(),S(this,m,null),S(this,b,!1))}removePointerInTextLayer(M){var J;if(!v(this,b)){v(this,O).delete(M);return}const ue=v(this,m);if(!ue||ue.length===0)return;const{id:ae}=M,K=v(this,w).get(ae);if(K===void 0)return;const P=ue[K];v(this,w).delete(ae);let N=P.getAttribute("aria-owns");(J=N)!==null&&J!==void 0&&J.includes(ae)&&(N=N.split(" ").filter(T=>T!==ae).join(" "),N?P.setAttribute("aria-owns",N):(P.removeAttribute("aria-owns"),P.setAttribute("role","presentation")))}addPointerInTextLayer(M,J){const{id:ue}=M;if(!ue)return;if(!v(this,b)){v(this,O).set(M,J);return}J&&this.removePointerInTextLayer(M);const ae=v(this,m);if(!ae||ae.length===0)return;const K=(0,u.binarySearchFirstItem)(ae,N=>p(I,I,B).call(I,M,N)<0),P=Math.max(0,K-1);h(this,R,j).call(this,ue,ae[P]),v(this,w).set(ue,P)}moveElementInDOM(M,J,ue,ae){if(this.addPointerInTextLayer(ue,ae),!M.hasChildNodes()){M.append(J);return}const K=Array.from(M.childNodes).filter(T=>T!==J);if(K.length===0)return;const P=ue||J,N=(0,u.binarySearchFirstItem)(K,T=>p(I,I,B).call(I,P,T)<0);N===0?K[0].before(J):K[N-1].after(J)}}s.TextAccessibilityManager=I;function B(H,M){const J=H.getBoundingClientRect(),ue=M.getBoundingClientRect();if(J.width===0&&J.height===0)return 1;if(ue.width===0&&ue.height===0)return-1;const ae=J.y,K=J.y+J.height,P=J.y+J.height/2,N=ue.y,T=ue.y+ue.height,L=ue.y+ue.height/2;if(P<=N&&L>=K)return-1;if(L<=ae&&P>=T)return 1;const q=J.x+J.width/2,F=ue.x+ue.width/2;return q-F}function j(H,M){const J=M.getAttribute("aria-owns");J!=null&&J.includes(H)||M.setAttribute("aria-owns",J?`${J} ${H}`:H),M.removeAttribute("role")}},(o,s)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.TextHighlighter=void 0;class l{constructor(c){let{findController:f,eventBus:d,pageIndex:h}=c;this.findController=f,this.matches=[],this.eventBus=d,this.pageIdx=h,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(c,f){this.textDivs=c,this.textContentItemsStr=f}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._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=c=>{(c.pageIndex===this.pageIdx||c.pageIndex===-1)&&this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}disable(){this.enabled&&(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null),this._updateMatches(!0))}_convertMatches(c,f){if(!c)return[];const{textContentItemsStr:d}=this;let h=0,p=0;const g=d.length-1,v=[];for(let _=0,S=c.length;_<S;_++){let C=c[_];for(;h!==g&&C>=p+d[h].length;)p+=d[h].length,h++;h===d.length&&console.error("Could not find a matching mapping");const A={begin:{divIdx:h,offset:C-p}};for(C+=f[_];h!==g&&C>p+d[h].length;)p+=d[h].length,h++;A.end={divIdx:h,offset:C-p},v.push(A)}return v}_renderMatches(c){if(c.length===0)return;const{findController:f,pageIdx:d}=this,{textContentItemsStr:h,textDivs:p}=this,g=d===f.selected.pageIdx,v=f.selected.matchIdx,_=f.state.highlightAll;let S=null;const C={divIdx:-1,offset:void 0};function A(O,R){const I=O.divIdx;return p[I].textContent="",b(I,0,O.offset,R)}function b(O,R,I,B){let j=p[O];if(j.nodeType===Node.TEXT_NODE){const J=document.createElement("span");j.before(J),J.append(j),p[O]=J,j=J}const H=h[O].substring(R,I),M=document.createTextNode(H);if(B){const J=document.createElement("span");return J.className=`${B} appended`,J.append(M),j.append(J),B.includes("selected")?J.offsetLeft:0}return j.append(M),0}let m=v,w=m+1;if(_)m=0,w=c.length;else if(!g)return;for(let O=m;O<w;O++){const R=c[O],I=R.begin,B=R.end,j=g&&O===v,H=j?" selected":"";let M=0;if(!S||I.divIdx!==S.divIdx?(S!==null&&b(S.divIdx,S.offset,C.offset),A(I)):b(S.divIdx,S.offset,I.offset),I.divIdx===B.divIdx)M=b(I.divIdx,I.offset,B.offset,"highlight"+H);else{M=b(I.divIdx,I.offset,C.offset,"highlight begin"+H);for(let J=I.divIdx+1,ue=B.divIdx;J<ue;J++)p[J].className="highlight middle"+H;A(B,"highlight end"+H)}S=B,j&&f.scrollMatchIntoView({element:p[I.divIdx],selectedLeft:M,pageIndex:d,matchIndex:v})}S&&b(S.divIdx,S.offset,C.offset)}_updateMatches(){let c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.enabled&&!c)return;const{findController:f,matches:d,pageIdx:h}=this,{textContentItemsStr:p,textDivs:g}=this;let v=-1;for(const C of d){const A=Math.max(v,C.begin.divIdx);for(let b=A,m=C.end.divIdx;b<=m;b++){const w=g[b];w.textContent=p[b],w.className=""}v=C.end.divIdx+1}if(!(f!=null&&f.highlightMatches)||c)return;const _=f.pageMatches[h]||null,S=f.pageMatchesLength[h]||null;this.matches=this._convertMatches(_,S),this._renderMatches(this.matches)}}s.TextHighlighter=l},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.TextLayerBuilder=void 0;var u=l(4);function c(B,j){d(B,j),j.add(B)}function f(B,j,H){d(B,j),j.set(B,H)}function d(B,j){if(j.has(B))throw new TypeError("Cannot initialize the same private elements twice on an object")}function h(B,j,H){var M=v(B,j,"set");return p(B,M,H),H}function p(B,j,H){if(j.set)j.set.call(B,H);else{if(!j.writable)throw new TypeError("attempted to set read only private field");j.value=H}}function g(B,j){var H=v(B,j,"get");return _(B,H)}function v(B,j,H){if(!j.has(B))throw new TypeError("attempted to "+H+" private field on non-instance");return j.get(B)}function _(B,j){return j.get?j.get.call(B):j.value}function S(B,j,H){if(!j.has(B))throw new TypeError("attempted to get private field on non-instance");return H}var C=new WeakMap,A=new WeakMap,b=new WeakMap,m=new WeakSet,w=new WeakSet;class O{constructor(j){let{highlighter:H=null,accessibilityManager:M=null,isOffscreenCanvasSupported:J=!0}=j;c(this,w),c(this,m),f(this,C,{writable:!0,value:0}),f(this,A,{writable:!0,value:0}),f(this,b,{writable:!0,value:null}),this.textContentItemsStr=[],this.renderingDone=!1,this.textDivs=[],this.textDivProperties=new WeakMap,this.textLayerRenderTask=null,this.highlighter=H,this.accessibilityManager=M,this.isOffscreenCanvasSupported=J,this.div=document.createElement("div"),this.div.className="textLayer",this.hide()}get numTextDivs(){return this.textDivs.length}async render(j){var H,M,J;if(!g(this,b))throw new Error('No "textContentSource" parameter specified.');const ue=j.scale*(globalThis.devicePixelRatio||1),{rotation:ae}=j;if(this.renderingDone){const K=ae!==g(this,C),P=ue!==g(this,A);(K||P)&&(this.hide(),(0,u.updateTextLayer)({container:this.div,viewport:j,textDivs:this.textDivs,textDivProperties:this.textDivProperties,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported,mustRescale:P,mustRotate:K}),h(this,A,ue),h(this,C,ae)),this.show();return}this.cancel(),(H=this.highlighter)===null||H===void 0||H.setTextMapping(this.textDivs,this.textContentItemsStr),(M=this.accessibilityManager)===null||M===void 0||M.setTextMapping(this.textDivs),this.textLayerRenderTask=(0,u.renderTextLayer)({textContentSource:g(this,b),container:this.div,viewport:j,textDivs:this.textDivs,textDivProperties:this.textDivProperties,textContentItemsStr:this.textContentItemsStr,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported}),await this.textLayerRenderTask.promise,S(this,m,R).call(this),h(this,A,ue),h(this,C,ae),this.show(),(J=this.accessibilityManager)===null||J===void 0||J.enable()}hide(){if(!this.div.hidden){var j;(j=this.highlighter)===null||j===void 0||j.disable(),this.div.hidden=!0}}show(){if(this.div.hidden&&this.renderingDone){var j;this.div.hidden=!1,(j=this.highlighter)===null||j===void 0||j.enable()}}cancel(){var j,H;this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),(j=this.highlighter)===null||j===void 0||j.disable(),(H=this.accessibilityManager)===null||H===void 0||H.disable(),this.textContentItemsStr.length=0,this.textDivs.length=0,this.textDivProperties=new WeakMap}setTextContentSource(j){this.cancel(),h(this,b,j)}}s.TextLayerBuilder=O;function R(){this.renderingDone=!0;const B=document.createElement("div");B.className="endOfContent",this.div.append(B),S(this,w,I).call(this)}function I(){const{div:B}=this;B.addEventListener("mousedown",j=>{const H=B.querySelector(".endOfContent");if(!H)return;let M=j.target!==B;if(M&&(M=getComputedStyle(H).getPropertyValue("-moz-user-select")!=="none"),M){const J=B.getBoundingClientRect(),ue=Math.max(0,(j.pageY-J.top)/J.height);H.style.top=(ue*100).toFixed(2)+"%"}H.classList.add("active")}),B.addEventListener("mouseup",()=>{const j=B.querySelector(".endOfContent");j&&(j.style.top="",j.classList.remove("active"))})}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.XfaLayerBuilder=void 0;var u=l(4);class c{constructor(d){let{pageDiv:h,pdfPage:p,annotationStorage:g=null,linkService:v,xfaHtml:_=null}=d;this.pageDiv=h,this.pdfPage=p,this.annotationStorage=g,this.linkService=v,this.xfaHtml=_,this.div=null,this._cancelled=!1}async render(d){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"display";if(h==="print"){const v={viewport:d.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:h},_=document.createElement("div");return this.pageDiv.append(_),v.div=_,u.XfaLayer.render(v)}const p=await this.pdfPage.getXfa();if(this._cancelled||!p)return{textDivs:[]};const g={viewport:d.clone({dontFlip:!0}),div:this.div,xfaHtml:p,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:h};return this.div?u.XfaLayer.update(g):(this.div=document.createElement("div"),this.pageDiv.append(this.div),g.div=this.div,u.XfaLayer.render(g))}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}s.XfaLayerBuilder=c},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFScriptingManager=void 0;var u=l(2),c=l(4);class f{constructor(h){let{eventBus:p,sandboxBundleSrc:g=null,scriptingFactory:v=null,docPropertiesLookup:_=null}=h;this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._ready=!1,this._eventBus=p,this._sandboxBundleSrc=g,this._scriptingFactory=v,this._docPropertiesLookup=_,this._scriptingFactory||window.addEventListener("updatefromsandbox",S=>{this._eventBus.dispatch("updatefromsandbox",{source:window,detail:S.detail})})}setViewer(h){this._pdfViewer=h}async setDocument(h){var p;if(this._pdfDocument&&await this._destroyScripting(),this._pdfDocument=h,!h)return;const[g,v,_]=await Promise.all([h.getFieldObjects(),h.getCalculationOrderIds(),h.getJSActions()]);if(!g&&!_){await this._destroyScripting();return}if(h===this._pdfDocument){try{this._scripting=this._createScripting()}catch(S){console.error(`PDFScriptingManager.setDocument: "${S==null?void 0:S.message}".`),await this._destroyScripting();return}this._internalEvents.set("updatefromsandbox",S=>{(S==null?void 0:S.source)===window&&this._updateFromSandbox(S.detail)}),this._internalEvents.set("dispatcheventinsandbox",S=>{var C;(C=this._scripting)===null||C===void 0||C.dispatchEventInSandbox(S.detail)}),this._internalEvents.set("pagechanging",S=>{let{pageNumber:C,previous:A}=S;C!==A&&(this._dispatchPageClose(A),this._dispatchPageOpen(C))}),this._internalEvents.set("pagerendered",S=>{let{pageNumber:C}=S;this._pageOpenPending.has(C)&&C===this._pdfViewer.currentPageNumber&&this._dispatchPageOpen(C)}),this._internalEvents.set("pagesdestroy",async S=>{var C,A;await this._dispatchPageClose(this._pdfViewer.currentPageNumber),await((C=this._scripting)===null||C===void 0?void 0:C.dispatchEventInSandbox({id:"doc",name:"WillClose"})),(A=this._closeCapability)===null||A===void 0||A.resolve()});for(const[S,C]of this._internalEvents)this._eventBus._on(S,C);try{const S=await this._getDocProperties();if(h!==this._pdfDocument)return;await this._scripting.createSandbox({objects:g,calculationOrder:v,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:{...S,actions:_}}),this._eventBus.dispatch("sandboxcreated",{source:this})}catch(S){console.error(`PDFScriptingManager.setDocument: "${S==null?void 0:S.message}".`),await this._destroyScripting();return}await((p=this._scripting)===null||p===void 0?void 0:p.dispatchEventInSandbox({id:"doc",name:"Open"})),await this._dispatchPageOpen(this._pdfViewer.currentPageNumber,!0),Promise.resolve().then(()=>{h===this._pdfDocument&&(this._ready=!0)})}}async dispatchWillSave(h){var p;return(p=this._scripting)===null||p===void 0?void 0:p.dispatchEventInSandbox({id:"doc",name:"WillSave"})}async dispatchDidSave(h){var p;return(p=this._scripting)===null||p===void 0?void 0:p.dispatchEventInSandbox({id:"doc",name:"DidSave"})}async dispatchWillPrint(h){var p;return(p=this._scripting)===null||p===void 0?void 0:p.dispatchEventInSandbox({id:"doc",name:"WillPrint"})}async dispatchDidPrint(h){var p;return(p=this._scripting)===null||p===void 0?void 0:p.dispatchEventInSandbox({id:"doc",name:"DidPrint"})}get destroyPromise(){var h;return((h=this._destroyCapability)===null||h===void 0?void 0:h.promise)||null}get ready(){return this._ready}get _internalEvents(){return(0,c.shadow)(this,"_internalEvents",new Map)}get _pageOpenPending(){return(0,c.shadow)(this,"_pageOpenPending",new Set)}get _visitedPages(){return(0,c.shadow)(this,"_visitedPages",new Map)}async _updateFromSandbox(h){const p=this._pdfViewer.isInPresentationMode||this._pdfViewer.isChangingPresentationMode,{id:g,siblings:v,command:_,value:S}=h;if(!g){switch(_){case"clear":console.clear();break;case"error":console.error(S);break;case"layout":{if(p)return;const b=(0,u.apiPageLayoutToViewerModes)(S);this._pdfViewer.spreadMode=b.spreadMode;break}case"page-num":this._pdfViewer.currentPageNumber=S+1;break;case"print":await this._pdfViewer.pagesPromise,this._eventBus.dispatch("print",{source:this});break;case"println":console.log(S);break;case"zoom":if(p)return;this._pdfViewer.currentScaleValue=S;break;case"SaveAs":this._eventBus.dispatch("download",{source:this});break;case"FirstPage":this._pdfViewer.currentPageNumber=1;break;case"LastPage":this._pdfViewer.currentPageNumber=this._pdfViewer.pagesCount;break;case"NextPage":this._pdfViewer.nextPage();break;case"PrevPage":this._pdfViewer.previousPage();break;case"ZoomViewIn":if(p)return;this._pdfViewer.increaseScale();break;case"ZoomViewOut":if(p)return;this._pdfViewer.decreaseScale();break}return}if(p&&h.focus)return;delete h.id,delete h.siblings;const C=v?[g,...v]:[g];for(const b of C){const m=document.querySelector(`[data-element-id="${b}"]`);if(m)m.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:h}));else{var A;(A=this._pdfDocument)===null||A===void 0||A.annotationStorage.setValue(b,h)}}}async _dispatchPageOpen(h){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const g=this._pdfDocument,v=this._visitedPages;if(p&&(this._closeCapability=(0,c.createPromiseCapability)()),!this._closeCapability)return;const _=this._pdfViewer.getPageView(h-1);if((_==null?void 0:_.renderingState)!==u.RenderingStates.FINISHED){this._pageOpenPending.add(h);return}this._pageOpenPending.delete(h);const S=(async()=>{var C,A;const b=await(v.has(h)?null:(C=_.pdfPage)===null||C===void 0?void 0:C.getJSActions());g===this._pdfDocument&&await((A=this._scripting)===null||A===void 0?void 0:A.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:h,actions:b}))})();v.set(h,S)}async _dispatchPageClose(h){var p;const g=this._pdfDocument,v=this._visitedPages;if(!this._closeCapability||this._pageOpenPending.has(h))return;const _=v.get(h);_&&(v.set(h,null),await _,g===this._pdfDocument&&await((p=this._scripting)===null||p===void 0?void 0:p.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:h})))}async _getDocProperties(){if(this._docPropertiesLookup)return this._docPropertiesLookup(this._pdfDocument);const{docPropertiesLookup:h}=l(22);return h(this._pdfDocument)}_createScripting(){if(this._destroyCapability=(0,c.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");if(this._scriptingFactory)return this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc});const{GenericScripting:h}=l(22);return new h(this._sandboxBundleSrc)}async _destroyScripting(){var h;if(!this._scripting){var p;this._pdfDocument=null,(p=this._destroyCapability)===null||p===void 0||p.resolve();return}this._closeCapability&&(await Promise.race([this._closeCapability.promise,new Promise(g=>{setTimeout(g,1e3)})]).catch(g=>{}),this._closeCapability=null),this._pdfDocument=null;try{await this._scripting.destroySandbox()}catch{}for(const[g,v]of this._internalEvents)this._eventBus._off(g,v);this._internalEvents.clear(),this._pageOpenPending.clear(),this._visitedPages.clear(),this._scripting=null,this._ready=!1,(h=this._destroyCapability)===null||h===void 0||h.resolve()}}s.PDFScriptingManager=f},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.GenericScripting=void 0,s.docPropertiesLookup=c;var u=l(4);async function c(d){const h="",p=h.split("#")[0];let{info:g,metadata:v,contentDispositionFilename:_,contentLength:S}=await d.getMetadata();if(!S){const{length:C}=await d.getDownloadInfo();S=C}return{...g,baseURL:p,filesize:S,filename:_||(0,u.getPdfFilenameFromUrl)(h),metadata:v==null?void 0:v.getRaw(),authors:v==null?void 0:v.get("dc:creator"),numPages:d.numPages,URL:h}}class f{constructor(h){this._ready=(0,u.loadScript)(h,!0).then(()=>window.pdfjsSandbox.QuickJSSandbox())}async createSandbox(h){(await this._ready).create(h)}async dispatchEventInSandbox(h){const p=await this._ready;setTimeout(()=>p.dispatchEvent(h),0)}async destroySandbox(){(await this._ready).nukeSandbox()}}s.GenericScripting=f},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFSinglePageViewer=void 0;var u=l(2),c=l(24);class f extends c.PDFViewer{_resetView(){super._resetView(),this._scrollMode=u.ScrollMode.PAGE,this._spreadMode=u.SpreadMode.NONE}set scrollMode(h){}_updateScrollMode(){}set spreadMode(h){}_updateSpreadMode(){}}s.PDFSinglePageViewer=f},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PagesCountLimit=s.PDFViewer=s.PDFPageViewBuffer=void 0;var u=l(4),c=l(2),f=l(5),d=l(13),h=l(25),p=l(1);let g;function v($e,ie){S($e,ie),ie.add($e)}function _($e,ie,ve){S($e,ie),ie.set($e,ve)}function S($e,ie){if(ie.has($e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function C($e,ie,ve){if(!ie.has($e))throw new TypeError("attempted to get private field on non-instance");return ve}function A($e,ie){var ve=w($e,ie,"get");return b($e,ve)}function b($e,ie){return ie.get?ie.get.call($e):ie.value}function m($e,ie,ve){var xe=w($e,ie,"set");return O($e,xe,ve),ve}function w($e,ie,ve){if(!ie.has($e))throw new TypeError("attempted to "+ve+" private field on non-instance");return ie.get($e)}function O($e,ie,ve){if(ie.set)ie.set.call($e,ve);else{if(!ie.writable)throw new TypeError("attempted to set read only private field");ie.value=ve}}const R=10,I="enablePermissions",B={FORCE_SCROLL_MODE_PAGE:15e3,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250};s.PagesCountLimit=B;function j($e){return Object.values(u.AnnotationEditorType).includes($e)&&$e!==u.AnnotationEditorType.DISABLE}var H=new WeakMap,M=new WeakMap,J=new WeakSet;g=Symbol.iterator;class ue{constructor(ie){v(this,J),_(this,H,{writable:!0,value:new Set}),_(this,M,{writable:!0,value:0}),m(this,M,ie)}push(ie){const ve=A(this,H);ve.has(ie)&&ve.delete(ie),ve.add(ie),ve.size>A(this,M)&&C(this,J,ae).call(this)}resize(ie){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;m(this,M,ie);const xe=A(this,H);if(ve){const je=xe.size;let qe=1;for(const Je of xe)if(ve.has(Je.id)&&(xe.delete(Je),xe.add(Je)),++qe>je)break}for(;xe.size>A(this,M);)C(this,J,ae).call(this)}has(ie){return A(this,H).has(ie)}[g](){return A(this,H).keys()}}s.PDFPageViewBuffer=ue;function ae(){const $e=A(this,H).keys().next().value;$e==null||$e.destroy(),A(this,H).delete($e)}var K=new WeakMap,P=new WeakMap,N=new WeakMap,T=new WeakMap,L=new WeakMap,q=new WeakMap,F=new WeakMap,W=new WeakMap,se=new WeakMap,fe=new WeakMap,he=new WeakMap,oe=new WeakSet,be=new WeakSet,Ee=new WeakSet,Ae=new WeakSet,Re=new WeakSet,V=new WeakSet,_e=new WeakSet,G=new WeakSet,z=new WeakSet,U=new WeakSet,ne=new WeakSet;class Y{constructor(ie){var ve,xe;v(this,ne),v(this,U),v(this,z),v(this,G),v(this,_e),v(this,V),v(this,Re),v(this,Ae),v(this,Ee),v(this,be),v(this,oe),_(this,K,{writable:!0,value:null}),_(this,P,{writable:!0,value:u.AnnotationEditorType.NONE}),_(this,N,{writable:!0,value:null}),_(this,T,{writable:!0,value:u.AnnotationMode.ENABLE_FORMS}),_(this,L,{writable:!0,value:null}),_(this,q,{writable:!0,value:!1}),_(this,F,{writable:!0,value:0}),_(this,W,{writable:!0,value:new ResizeObserver(C(this,ne,Ge).bind(this))}),_(this,se,{writable:!0,value:null}),_(this,fe,{writable:!0,value:null}),_(this,he,{writable:!0,value:null});const je="3.4.120";if(u.version!==je)throw new Error(`The API version "${u.version}" does not match the Viewer version "${je}".`);if(this.container=ie.container,this.viewer=ie.viewer||ie.container.firstElementChild,((ve=this.container)===null||ve===void 0?void 0:ve.tagName)!=="DIV"||((xe=this.viewer)===null||xe===void 0?void 0:xe.tagName)!=="DIV")throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&getComputedStyle(this.container).position!=="absolute")throw new Error("The `container` must be absolutely positioned.");A(this,W).observe(this.container),this.eventBus=ie.eventBus,this.linkService=ie.linkService||new p.SimpleLinkService,this.downloadManager=ie.downloadManager||null,this.findController=ie.findController||null,this._scriptingManager=ie.scriptingManager||null,this.textLayerMode=ie.textLayerMode??c.TextLayerMode.ENABLE,m(this,T,ie.annotationMode??u.AnnotationMode.ENABLE_FORMS),m(this,P,ie.annotationEditorMode??u.AnnotationEditorType.NONE),this.imageResourcesPath=ie.imageResourcesPath||"",this.enablePrintAutoRotate=ie.enablePrintAutoRotate||!1,this.removePageBorders=ie.removePageBorders||!1,this.renderer=ie.renderer||c.RendererType.CANVAS,this.useOnlyCssZoom=ie.useOnlyCssZoom||!1,this.isOffscreenCanvasSupported=ie.isOffscreenCanvasSupported??!0,this.maxCanvasPixels=ie.maxCanvasPixels,this.l10n=ie.l10n||f.NullL10n,m(this,q,ie.enablePermissions||!1),this.pageColors=ie.pageColors||null,this.pageColors&&!(CSS.supports("color",this.pageColors.background)&&CSS.supports("color",this.pageColors.foreground))&&((this.pageColors.background||this.pageColors.foreground)&&console.warn("PDFViewer: Ignoring `pageColors`-option, since the browser doesn't support the values used."),this.pageColors=null),this.defaultRenderingQueue=!ie.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new h.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=ie.renderingQueue,this.scroll=(0,c.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=c.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),C(this,U,Le).call(this)}get pagesCount(){return this._pages.length}getPageView(ie){return this._pages[ie]}get pageViewsReady(){return this._pagesCapability.settled?this._pages.every(function(ie){return ie==null?void 0:ie.pdfPage}):!1}get renderForms(){return A(this,T)===u.AnnotationMode.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(ie){if(!Number.isInteger(ie))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(ie,!0)||console.error(`currentPageNumber: "${ie}" is not a valid page.`))}_setCurrentPageNumber(ie){var ve;let xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(this._currentPageNumber===ie)return xe&&C(this,_e,Se).call(this),!0;if(!(0<ie&&ie<=this.pagesCount))return!1;const je=this._currentPageNumber;return this._currentPageNumber=ie,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:ie,pageLabel:((ve=this._pageLabels)===null||ve===void 0?void 0:ve[ie-1])??null,previous:je}),xe&&C(this,_e,Se).call(this),!0}get currentPageLabel(){var ie;return((ie=this._pageLabels)===null||ie===void 0?void 0:ie[this._currentPageNumber-1])??null}set currentPageLabel(ie){if(!this.pdfDocument)return;let ve=ie|0;if(this._pageLabels){const xe=this._pageLabels.indexOf(ie);xe>=0&&(ve=xe+1)}this._setCurrentPageNumber(ve,!0)||console.error(`currentPageLabel: "${ie}" is not a valid page.`)}get currentScale(){return this._currentScale!==c.UNKNOWN_SCALE?this._currentScale:c.DEFAULT_SCALE}set currentScale(ie){if(isNaN(ie))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(ie,{noScroll:!1})}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(ie){this.pdfDocument&&this._setScale(ie,{noScroll:!1})}get pagesRotation(){return this._pagesRotation}set pagesRotation(ie){if(!(0,c.isValidRotation)(ie))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument||(ie%=360,ie<0&&(ie+=360),this._pagesRotation===ie))return;this._pagesRotation=ie;const ve=this._currentPageNumber;this.refresh(!0,{rotation:ie}),this._currentScaleValue&&this._setScale(this._currentScaleValue,{noScroll:!0}),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:ie,pageNumber:ve}),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}setDocument(ie){if(this.pdfDocument){var ve,xe;this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),(ve=this.findController)===null||ve===void 0||ve.setDocument(null),(xe=this._scriptingManager)===null||xe===void 0||xe.setDocument(null),A(this,N)&&(A(this,N).destroy(),m(this,N,null))}if(this.pdfDocument=ie,!ie)return;const je=ie.numPages,qe=ie.getPage(1),Je=ie.getOptionalContentConfig(),He=A(this,q)?ie.getPermissions():Promise.resolve();if(je>B.FORCE_SCROLL_MODE_PAGE){console.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const Qe=this._scrollMode=c.ScrollMode.PAGE;this.eventBus.dispatch("scrollmodechanged",{source:this,mode:Qe})}this._pagesCapability.promise.then(()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:je})},()=>{}),this._onBeforeDraw=Qe=>{const Ue=this._pages[Qe.pageNumber-1];Ue&&A(this,K).push(Ue)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=Qe=>{Qe.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve({timestamp:Qe.timestamp}),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null,A(this,fe)&&(document.removeEventListener("visibilitychange",A(this,fe)),m(this,fe,null)))},this.eventBus._on("pagerendered",this._onAfterDraw),Promise.all([qe,He]).then(Qe=>{let[Ue,Ie]=Qe;if(ie!==this.pdfDocument)return;this._firstPageCapability.resolve(Ue),this._optionalContentConfigPromise=Je;const{annotationEditorMode:We,annotationMode:lt,textLayerMode:nt}=C(this,be,Z).call(this,Ie);if(We!==u.AnnotationEditorType.DISABLE){const et=We;ie.isPureXfa?console.warn("Warning: XFA-editing is not implemented."):j(et)?(m(this,N,new u.AnnotationEditorUIManager(this.container,this.eventBus,ie==null?void 0:ie.annotationStorage)),et!==u.AnnotationEditorType.NONE&&A(this,N).updateMode(et)):console.error(`Invalid AnnotationEditor mode: ${et}`)}const ht=C(this,oe,ee).bind(this),ke=this._scrollMode===c.ScrollMode.PAGE?null:this.viewer,Te=this.currentScale,Fe=Ue.getViewport({scale:Te*u.PixelsPerInch.PDF_TO_CSS_UNITS});this.viewer.style.setProperty("--scale-factor",Fe.scale);for(let et=1;et<=je;++et){const gt=new d.PDFPageView({container:ke,eventBus:this.eventBus,id:et,scale:Te,defaultViewport:Fe.clone(),optionalContentConfigPromise:Je,renderingQueue:this.renderingQueue,textLayerMode:nt,annotationMode:lt,imageResourcesPath:this.imageResourcesPath,renderer:this.renderer,useOnlyCssZoom:this.useOnlyCssZoom,isOffscreenCanvasSupported:this.isOffscreenCanvasSupported,maxCanvasPixels:this.maxCanvasPixels,pageColors:this.pageColors,l10n:this.l10n,layerProperties:ht});this._pages.push(gt)}const rt=this._pages[0];rt&&(rt.setPdfPage(Ue),this.linkService.cachePageRef(1,Ue.ref)),this._scrollMode===c.ScrollMode.PAGE?C(this,Ae,de).call(this):this._spreadMode!==c.SpreadMode.NONE&&this._updateSpreadMode(),C(this,Ee,le).call(this).then(async()=>{var et,gt;if((et=this.findController)===null||et===void 0||et.setDocument(ie),(gt=this._scriptingManager)===null||gt===void 0||gt.setDocument(ie),A(this,N)&&this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:A(this,P)}),ie.loadingParams.disableAutoFetch||je>B.FORCE_LAZY_PAGE_INIT){this._pagesCapability.resolve();return}let dt=je-1;if(dt<=0){this._pagesCapability.resolve();return}for(let bt=2;bt<=je;++bt){const Tt=ie.getPage(bt).then(vt=>{const Nt=this._pages[bt-1];Nt.pdfPage||Nt.setPdfPage(vt),this.linkService.cachePageRef(bt,vt.ref),--dt===0&&this._pagesCapability.resolve()},vt=>{console.error(`Unable to get page ${bt} to initialize viewer`,vt),--dt===0&&this._pagesCapability.resolve()});bt%B.PAUSE_EAGER_PAGE_INIT===0&&await Tt}}),this.eventBus.dispatch("pagesinit",{source:this}),ie.getMetadata().then(et=>{let{info:gt}=et;ie===this.pdfDocument&>.Language&&(this.viewer.lang=gt.Language)}),this.defaultRenderingQueue&&this.update()}).catch(Qe=>{console.error("Unable to initialize viewer",Qe),this._pagesCapability.reject(Qe)})}setPageLabels(ie){if(this.pdfDocument){ie?Array.isArray(ie)&&this.pdfDocument.numPages===ie.length?this._pageLabels=ie:(this._pageLabels=null,console.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let xe=0,je=this._pages.length;xe<je;xe++){var ve;this._pages[xe].setPageLabel(((ve=this._pageLabels)===null||ve===void 0?void 0:ve[xe])??null)}}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=c.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,m(this,K,new ue(R)),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=(0,u.createPromiseCapability)(),this._onePageRenderedCapability=(0,u.createPromiseCapability)(),this._pagesCapability=(0,u.createPromiseCapability)(),this._scrollMode=c.ScrollMode.VERTICAL,this._previousScrollMode=c.ScrollMode.UNKNOWN,this._spreadMode=c.SpreadMode.NONE,m(this,se,{previousPageNumber:1,scrollDown:!0,pages:[]}),this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),A(this,fe)&&(document.removeEventListener("visibilitychange",A(this,fe)),m(this,fe,null)),this.viewer.textContent="",this._updateScrollMode(),this.viewer.removeAttribute("lang"),this.viewer.classList.remove(I)}_scrollUpdate(){this.pagesCount!==0&&this.update()}_setScaleUpdatePages(ie,ve,xe){let{noScroll:je=!1,preset:qe=!1,drawingDelay:Je=-1}=xe;if(this._currentScaleValue=ve.toString(),C(this,V,ge).call(this,ie)){qe&&this.eventBus.dispatch("scalechanging",{source:this,scale:ie,presetValue:ve});return}this.viewer.style.setProperty("--scale-factor",ie*u.PixelsPerInch.PDF_TO_CSS_UNITS);const He=Je>=0&&Je<1e3;if(this.refresh(!0,{scale:ie,drawingDelay:He?Je:-1}),He&&m(this,he,setTimeout(()=>{m(this,he,null),this.refresh()},Je)),this._currentScale=ie,!je){let Qe=this._currentPageNumber,Ue;this._location&&!(this.isInPresentationMode||this.isChangingPresentationMode)&&(Qe=this._location.pageNumber,Ue=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:Qe,destArray:Ue,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:ie,presetValue:qe?ve:void 0}),this.defaultRenderingQueue&&this.update()}get _pageWidthScaleFactor(){return this._spreadMode!==c.SpreadMode.NONE&&this._scrollMode!==c.ScrollMode.HORIZONTAL?2:1}_setScale(ie,ve){let xe=parseFloat(ie);if(xe>0)ve.preset=!1,this._setScaleUpdatePages(xe,ie,ve);else{const je=this._pages[this._currentPageNumber-1];if(!je)return;let qe=c.SCROLLBAR_PADDING,Je=c.VERTICAL_PADDING;this.isInPresentationMode?(qe=Je=4,this._spreadMode!==c.SpreadMode.NONE&&(qe*=2)):this.removePageBorders?qe=Je=0:this._scrollMode===c.ScrollMode.HORIZONTAL&&([qe,Je]=[Je,qe]);const He=(this.container.clientWidth-qe)/je.width*je.scale/this._pageWidthScaleFactor,Qe=(this.container.clientHeight-Je)/je.height*je.scale;switch(ie){case"page-actual":xe=1;break;case"page-width":xe=He;break;case"page-height":xe=Qe;break;case"page-fit":xe=Math.min(He,Qe);break;case"auto":const Ue=(0,c.isPortraitOrientation)(je)?He:Math.min(Qe,He);xe=Math.min(c.MAX_AUTO_SCALE,Ue);break;default:console.error(`_setScale: "${ie}" is an unknown zoom value.`);return}ve.preset=!0,this._setScaleUpdatePages(xe,ie,ve)}}pageLabelToPageNumber(ie){if(!this._pageLabels)return null;const ve=this._pageLabels.indexOf(ie);return ve<0?null:ve+1}scrollPageIntoView(ie){let{pageNumber:ve,destArray:xe=null,allowNegativeOffset:je=!1,ignoreDestinationZoom:qe=!1}=ie;if(!this.pdfDocument)return;const Je=Number.isInteger(ve)&&this._pages[ve-1];if(!Je){console.error(`scrollPageIntoView: "${ve}" is not a valid pageNumber parameter.`);return}if(this.isInPresentationMode||!xe){this._setCurrentPageNumber(ve,!0);return}let He=0,Qe=0,Ue=0,Ie=0,We,lt;const nt=Je.rotation%180!==0,ht=(nt?Je.height:Je.width)/Je.scale/u.PixelsPerInch.PDF_TO_CSS_UNITS,ke=(nt?Je.width:Je.height)/Je.scale/u.PixelsPerInch.PDF_TO_CSS_UNITS;let Te=0;switch(xe[1].name){case"XYZ":He=xe[2],Qe=xe[3],Te=xe[4],He=He!==null?He:0,Qe=Qe!==null?Qe:ke;break;case"Fit":case"FitB":Te="page-fit";break;case"FitH":case"FitBH":Qe=xe[2],Te="page-width",Qe===null&&this._location?(He=this._location.left,Qe=this._location.top):(typeof Qe!="number"||Qe<0)&&(Qe=ke);break;case"FitV":case"FitBV":He=xe[2],Ue=ht,Ie=ke,Te="page-height";break;case"FitR":He=xe[2],Qe=xe[3],Ue=xe[4]-He,Ie=xe[5]-Qe;let gt=c.SCROLLBAR_PADDING,dt=c.VERTICAL_PADDING;this.removePageBorders&&(gt=dt=0),We=(this.container.clientWidth-gt)/Ue/u.PixelsPerInch.PDF_TO_CSS_UNITS,lt=(this.container.clientHeight-dt)/Ie/u.PixelsPerInch.PDF_TO_CSS_UNITS,Te=Math.min(Math.abs(We),Math.abs(lt));break;default:console.error(`scrollPageIntoView: "${xe[1].name}" is not a valid destination type.`);return}if(qe||(Te&&Te!==this._currentScale?this.currentScaleValue=Te:this._currentScale===c.UNKNOWN_SCALE&&(this.currentScaleValue=c.DEFAULT_SCALE_VALUE)),Te==="page-fit"&&!xe[4]){C(this,Re,ce).call(this,Je);return}const Fe=[Je.viewport.convertToViewportPoint(He,Qe),Je.viewport.convertToViewportPoint(He+Ue,Qe+Ie)];let rt=Math.min(Fe[0][0],Fe[1][0]),et=Math.min(Fe[0][1],Fe[1][1]);je||(rt=Math.max(rt,0),et=Math.max(et,0)),C(this,Re,ce).call(this,Je,{left:rt,top:et})}_updateLocation(ie){const ve=this._currentScale,xe=this._currentScaleValue,je=parseFloat(xe)===ve?Math.round(ve*1e4)/100:xe,qe=ie.id,Je=this._pages[qe-1],He=this.container,Qe=Je.getPagePoint(He.scrollLeft-ie.x,He.scrollTop-ie.y),Ue=Math.round(Qe[0]),Ie=Math.round(Qe[1]);let We=`#page=${qe}`;this.isInPresentationMode||(We+=`&zoom=${je},${Ue},${Ie}`),this._location={pageNumber:qe,scale:je,top:Ie,left:Ue,rotation:this._pagesRotation,pdfOpenParams:We}}update(){const ie=this._getVisiblePages(),ve=ie.views,xe=ve.length;if(xe===0)return;const je=Math.max(R,2*xe+1);A(this,K).resize(je,ie.ids),this.renderingQueue.renderHighestPriority(ie);const qe=this._spreadMode===c.SpreadMode.NONE&&(this._scrollMode===c.ScrollMode.PAGE||this._scrollMode===c.ScrollMode.VERTICAL),Je=this._currentPageNumber;let He=!1;for(const Qe of ve){if(Qe.percent<100)break;if(Qe.id===Je&&qe){He=!0;break}}this._setCurrentPageNumber(He?Je:ve[0].id),this._updateLocation(ie.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(ie){return this.container.contains(ie)}focus(){this.container.focus()}get _isContainerRtl(){return getComputedStyle(this.container).direction==="rtl"}get isInPresentationMode(){return this.presentationModeState===c.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===c.PresentationModeState.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 ie=this._scrollMode===c.ScrollMode.PAGE?A(this,se).pages:this._pages,ve=this._scrollMode===c.ScrollMode.HORIZONTAL,xe=ve&&this._isContainerRtl;return(0,c.getVisibleElements)({scrollEl:this.container,views:ie,sortByVisibility:!0,horizontal:ve,rtl:xe})}isPageVisible(ie){return this.pdfDocument?Number.isInteger(ie)&&ie>0&&ie<=this.pagesCount?this._getVisiblePages().ids.has(ie):(console.error(`isPageVisible: "${ie}" is not a valid page.`),!1):!1}isPageCached(ie){if(!this.pdfDocument)return!1;if(!(Number.isInteger(ie)&&ie>0&&ie<=this.pagesCount))return console.error(`isPageCached: "${ie}" is not a valid page.`),!1;const ve=this._pages[ie-1];return A(this,K).has(ve)}cleanup(){for(const ie of this._pages)ie.renderingState!==c.RenderingStates.FINISHED&&ie.reset()}_cancelRendering(){for(const ie of this._pages)ie.cancelRendering()}forceRendering(ie){const ve=ie||this._getVisiblePages(),xe=C(this,z,Pe).call(this,ve),je=this._spreadMode!==c.SpreadMode.NONE&&this._scrollMode!==c.ScrollMode.HORIZONTAL,qe=this.renderingQueue.getHighestPriority(ve,this._pages,xe,je);return qe?(C(this,G,Ce).call(this,qe).then(()=>{this.renderingQueue.renderView(qe)}),!0):!1}get hasEqualPageSizes(){const ie=this._pages[0];for(let ve=1,xe=this._pages.length;ve<xe;++ve){const je=this._pages[ve];if(je.width!==ie.width||je.height!==ie.height)return!1}return!0}getPagesOverview(){return this._pages.map(ie=>{const ve=ie.pdfPage.getViewport({scale:1});return!this.enablePrintAutoRotate||(0,c.isPortraitOrientation)(ve)?{width:ve.width,height:ve.height,rotation:ve.rotation}:{width:ve.height,height:ve.width,rotation:(ve.rotation-90)%360}})}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:(console.error("optionalContentConfigPromise: Not initialized yet."),this.pdfDocument.getOptionalContentConfig()):Promise.resolve(null)}set optionalContentConfigPromise(ie){if(!(ie instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${ie}`);this.pdfDocument&&this._optionalContentConfigPromise&&(this._optionalContentConfigPromise=ie,this.refresh(!1,{optionalContentConfigPromise:ie}),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:ie}))}get scrollMode(){return this._scrollMode}set scrollMode(ie){if(this._scrollMode!==ie){if(!(0,c.isValidScrollMode)(ie))throw new Error(`Invalid scroll mode: ${ie}`);this.pagesCount>B.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=ie,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:ie}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;const ve=this._scrollMode,xe=this.viewer;xe.classList.toggle("scrollHorizontal",ve===c.ScrollMode.HORIZONTAL),xe.classList.toggle("scrollWrapped",ve===c.ScrollMode.WRAPPED),!(!this.pdfDocument||!ie)&&(ve===c.ScrollMode.PAGE?C(this,Ae,de).call(this):this._previousScrollMode===c.ScrollMode.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(ie,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(ie){if(this._spreadMode!==ie){if(!(0,c.isValidSpreadMode)(ie))throw new Error(`Invalid spread mode: ${ie}`);this._spreadMode=ie,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:ie}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(!this.pdfDocument)return;const ve=this.viewer,xe=this._pages;if(this._scrollMode===c.ScrollMode.PAGE)C(this,Ae,de).call(this);else if(ve.textContent="",this._spreadMode===c.SpreadMode.NONE)for(const je of this._pages)ve.append(je.div);else{const je=this._spreadMode-1;let qe=null;for(let Je=0,He=xe.length;Je<He;++Je)qe===null?(qe=document.createElement("div"),qe.className="spread",ve.append(qe)):Je%2===je&&(qe=qe.cloneNode(!1),ve.append(qe)),qe.append(xe[Je].div)}ie&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,{noScroll:!0}),this._setCurrentPageNumber(ie,!0),this.update())}_getPageAdvance(ie){let ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;switch(this._scrollMode){case c.ScrollMode.WRAPPED:{const{views:xe}=this._getVisiblePages(),je=new Map;for(const{id:qe,y:Je,percent:He,widthPercent:Qe}of xe){if(He===0||Qe<100)continue;let Ue=je.get(Je);Ue||je.set(Je,Ue||(Ue=[])),Ue.push(qe)}for(const qe of je.values()){const Je=qe.indexOf(ie);if(Je===-1)continue;const He=qe.length;if(He===1)break;if(ve)for(let Qe=Je-1,Ue=0;Qe>=Ue;Qe--){const Ie=qe[Qe],We=qe[Qe+1]-1;if(Ie<We)return ie-We}else for(let Qe=Je+1,Ue=He;Qe<Ue;Qe++){const Ie=qe[Qe],We=qe[Qe-1]+1;if(Ie>We)return We-ie}if(ve){const Qe=qe[0];if(Qe<ie)return ie-Qe+1}else{const Qe=qe[He-1];if(Qe>ie)return Qe-ie+1}break}break}case c.ScrollMode.HORIZONTAL:break;case c.ScrollMode.PAGE:case c.ScrollMode.VERTICAL:{if(this._spreadMode===c.SpreadMode.NONE)break;const xe=this._spreadMode-1;if(ve&&ie%2!==xe)break;if(!ve&&ie%2===xe)break;const{views:je}=this._getVisiblePages(),qe=ve?ie-1:ie+1;for(const{id:Je,percent:He,widthPercent:Qe}of je)if(Je===qe){if(He>0&&Qe===100)return 2;break}break}}return 1}nextPage(){const ie=this._currentPageNumber,ve=this.pagesCount;if(ie>=ve)return!1;const xe=this._getPageAdvance(ie,!1)||1;return this.currentPageNumber=Math.min(ie+xe,ve),!0}previousPage(){const ie=this._currentPageNumber;if(ie<=1)return!1;const ve=this._getPageAdvance(ie,!0)||1;return this.currentPageNumber=Math.max(ie-ve,1),!0}increaseScale(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(typeof ie=="number"&&(console.error("The `increaseScale` method-signature was updated, please use an object instead."),ie={steps:ie}),!this.pdfDocument)return;ie||(ie=Object.create(null));let ve=this._currentScale;if(ie.scaleFactor>1)ve=Math.min(c.MAX_SCALE,Math.round(ve*ie.scaleFactor*100)/100);else{let xe=ie.steps??1;do ve=(ve*c.DEFAULT_SCALE_DELTA).toFixed(2),ve=Math.ceil(ve*10)/10,ve=Math.min(c.MAX_SCALE,ve);while(--xe>0&&ve<c.MAX_SCALE)}ie.noScroll=!1,this._setScale(ve,ie)}decreaseScale(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(typeof ie=="number"&&(console.error("The `decreaseScale` method-signature was updated, please use an object instead."),ie={steps:ie}),!this.pdfDocument)return;ie||(ie=Object.create(null));let ve=this._currentScale;if(ie.scaleFactor>0&&ie.scaleFactor<1)ve=Math.max(c.MIN_SCALE,Math.round(ve*ie.scaleFactor*100)/100);else{let xe=ie.steps??1;do ve=(ve/c.DEFAULT_SCALE_DELTA).toFixed(2),ve=Math.floor(ve*10)/10,ve=Math.max(c.MIN_SCALE,ve);while(--xe>0&&ve>c.MIN_SCALE)}ie.noScroll=!1,this._setScale(ve,ie)}get containerTopLeft(){return A(this,L)||m(this,L,[this.container.offsetTop,this.container.offsetLeft])}get annotationEditorMode(){return A(this,N)?A(this,P):u.AnnotationEditorType.DISABLE}set annotationEditorMode(ie){if(!A(this,N))throw new Error("The AnnotationEditor is not enabled.");if(A(this,P)!==ie){if(!j(ie))throw new Error(`Invalid AnnotationEditor mode: ${ie}`);this.pdfDocument&&(m(this,P,ie),this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:ie}),A(this,N).updateMode(ie))}}set annotationEditorParams(ie){let{type:ve,value:xe}=ie;if(!A(this,N))throw new Error("The AnnotationEditor is not enabled.");A(this,N).updateParams(ve,xe)}refresh(){let ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Object.create(null);if(this.pdfDocument){for(const xe of this._pages)xe.update(ve);A(this,he)!==null&&(clearTimeout(A(this,he)),m(this,he,null)),ie||this.update()}}}s.PDFViewer=Y;function ee(){const $e=this;return{get annotationEditorUIManager(){return A($e,N)},get annotationStorage(){var ie;return(ie=$e.pdfDocument)===null||ie===void 0?void 0:ie.annotationStorage},get downloadManager(){return $e.downloadManager},get enableScripting(){return!!$e._scriptingManager},get fieldObjectsPromise(){var ie;return(ie=$e.pdfDocument)===null||ie===void 0?void 0:ie.getFieldObjects()},get findController(){return $e.findController},get hasJSActionsPromise(){var ie;return(ie=$e.pdfDocument)===null||ie===void 0?void 0:ie.hasJSActions()},get linkService(){return $e.linkService}}}function Z($e){const ie={annotationEditorMode:A(this,P),annotationMode:A(this,T),textLayerMode:this.textLayerMode};return $e&&($e.includes(u.PermissionFlag.COPY)||this.viewer.classList.add(I),$e.includes(u.PermissionFlag.MODIFY_CONTENTS)||(ie.annotationEditorMode=u.AnnotationEditorType.DISABLE),!$e.includes(u.PermissionFlag.MODIFY_ANNOTATIONS)&&!$e.includes(u.PermissionFlag.FILL_INTERACTIVE_FORMS)&&A(this,T)===u.AnnotationMode.ENABLE_FORMS&&(ie.annotationMode=u.AnnotationMode.ENABLE)),ie}function le(){if(document.visibilityState==="hidden"||!this.container.offsetParent||this._getVisiblePages().views.length===0)return Promise.resolve();const $e=new Promise(ie=>{m(this,fe,()=>{document.visibilityState==="hidden"&&(ie(),document.removeEventListener("visibilitychange",A(this,fe)),m(this,fe,null))}),document.addEventListener("visibilitychange",A(this,fe))});return Promise.race([this._onePageRenderedCapability.promise,$e])}function de(){if(this._scrollMode!==c.ScrollMode.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");const $e=this._currentPageNumber,ie=A(this,se),ve=this.viewer;if(ve.textContent="",ie.pages.length=0,this._spreadMode===c.SpreadMode.NONE&&!this.isInPresentationMode){const xe=this._pages[$e-1];ve.append(xe.div),ie.pages.push(xe)}else{const xe=new Set,je=this._spreadMode-1;je===-1?xe.add($e-1):$e%2!==je?(xe.add($e-1),xe.add($e)):(xe.add($e-2),xe.add($e-1));const qe=document.createElement("div");if(qe.className="spread",this.isInPresentationMode){const Je=document.createElement("div");Je.className="dummyPage",qe.append(Je)}for(const Je of xe){const He=this._pages[Je];He&&(qe.append(He.div),ie.pages.push(He))}ve.append(qe)}ie.scrollDown=$e>=ie.previousPageNumber,ie.previousPageNumber=$e}function ce($e){let ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const{div:ve,id:xe}=$e;if(this._currentPageNumber!==xe&&this._setCurrentPageNumber(xe),this._scrollMode===c.ScrollMode.PAGE&&(C(this,Ae,de).call(this),this.update()),!ie&&!this.isInPresentationMode){const je=ve.offsetLeft+ve.clientLeft,qe=je+ve.clientWidth,{scrollLeft:Je,clientWidth:He}=this.container;(this._scrollMode===c.ScrollMode.HORIZONTAL||je<Je||qe>Je+He)&&(ie={left:0,top:0})}(0,c.scrollIntoView)(ve,ie),!this._currentScaleValue&&this._location&&(this._location=null)}function ge($e){return $e===this._currentScale||Math.abs($e-this._currentScale)<1e-15}function Se(){const $e=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&this._setScale(this._currentScaleValue,{noScroll:!0}),C(this,Re,ce).call(this,$e)}async function Ce($e){if($e.pdfPage)return $e.pdfPage;try{var ie,ve;const xe=await this.pdfDocument.getPage($e.id);return $e.pdfPage||$e.setPdfPage(xe),(ie=(ve=this.linkService)._cachedPageNumber)!==null&&ie!==void 0&&ie.call(ve,xe.ref)||this.linkService.cachePageRef($e.id,xe.ref),xe}catch(xe){return console.error("Unable to get page for page view",xe),null}}function Pe($e){var ie,ve;if(((ie=$e.first)===null||ie===void 0?void 0:ie.id)===1)return!0;if(((ve=$e.last)===null||ve===void 0?void 0:ve.id)===this.pagesCount)return!1;switch(this._scrollMode){case c.ScrollMode.PAGE:return A(this,se).scrollDown;case c.ScrollMode.HORIZONTAL:return this.scroll.right}return this.scroll.down}function Le(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.container.clientHeight;$e!==A(this,F)&&(m(this,F,$e),c.docStyle.setProperty("--viewer-container-height",`${$e}px`))}function Ge($e){for(const ie of $e)if(ie.target===this.container){C(this,U,Le).call(this,Math.floor(ie.borderBoxSize[0].blockSize)),m(this,L,null);break}}},(o,s,l)=>{Object.defineProperty(s,"__esModule",{value:!0}),s.PDFRenderingQueue=void 0;var u=l(4),c=l(2);const f=3e4;class d{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(p){this.pdfViewer=p}setThumbnailViewer(p){this.pdfThumbnailViewer=p}isHighestPriority(p){return this.highestPriorityPage===p.renderingId}hasViewer(){return!!this.pdfViewer}renderHighestPriority(p){var g;this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),!this.pdfViewer.forceRendering(p)&&(this.isThumbnailViewEnabled&&(g=this.pdfThumbnailViewer)!==null&&g!==void 0&&g.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),f)))}getHighestPriority(p,g,v){let _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;const S=p.views,C=S.length;if(C===0)return null;for(let O=0;O<C;O++){const R=S[O].view;if(!this.isViewFinished(R))return R}const A=p.first.id,b=p.last.id;if(b-A+1>C){const O=p.ids;for(let R=1,I=b-A;R<I;R++){const B=v?A+R:b-R;if(O.has(B))continue;const j=g[B-1];if(!this.isViewFinished(j))return j}}let m=v?b:A-2,w=g[m];return w&&!this.isViewFinished(w)||_&&(m+=v?1:-1,w=g[m],w&&!this.isViewFinished(w))?w:null}isViewFinished(p){return p.renderingState===c.RenderingStates.FINISHED}renderView(p){switch(p.renderingState){case c.RenderingStates.FINISHED:return!1;case c.RenderingStates.PAUSED:this.highestPriorityPage=p.renderingId,p.resume();break;case c.RenderingStates.RUNNING:this.highestPriorityPage=p.renderingId;break;case c.RenderingStates.INITIAL:this.highestPriorityPage=p.renderingId,p.draw().finally(()=>{this.renderHighestPriority()}).catch(g=>{g instanceof u.RenderingCancelledException||console.error(`renderView: "${g}"`)});break}return!0}}s.PDFRenderingQueue=d}],n={};function i(o){var s=n[o];if(s!==void 0)return s.exports;var l=n[o]={exports:{}};return r[o](l,l.exports,i),l.exports}var a={};return(()=>{var o=a;Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return u.AnnotationLayerBuilder}}),o.DefaultXfaLayerFactory=o.DefaultTextLayerFactory=o.DefaultStructTreeLayerFactory=o.DefaultAnnotationLayerFactory=void 0,Object.defineProperty(o,"DownloadManager",{enumerable:!0,get:function(){return c.DownloadManager}}),Object.defineProperty(o,"EventBus",{enumerable:!0,get:function(){return f.EventBus}}),Object.defineProperty(o,"GenericL10n",{enumerable:!0,get:function(){return d.GenericL10n}}),Object.defineProperty(o,"LinkTarget",{enumerable:!0,get:function(){return s.LinkTarget}}),Object.defineProperty(o,"NullL10n",{enumerable:!0,get:function(){return h.NullL10n}}),Object.defineProperty(o,"PDFFindController",{enumerable:!0,get:function(){return p.PDFFindController}}),Object.defineProperty(o,"PDFHistory",{enumerable:!0,get:function(){return g.PDFHistory}}),Object.defineProperty(o,"PDFLinkService",{enumerable:!0,get:function(){return s.PDFLinkService}}),Object.defineProperty(o,"PDFPageView",{enumerable:!0,get:function(){return v.PDFPageView}}),Object.defineProperty(o,"PDFScriptingManager",{enumerable:!0,get:function(){return _.PDFScriptingManager}}),Object.defineProperty(o,"PDFSinglePageViewer",{enumerable:!0,get:function(){return S.PDFSinglePageViewer}}),Object.defineProperty(o,"PDFViewer",{enumerable:!0,get:function(){return C.PDFViewer}}),Object.defineProperty(o,"ProgressBar",{enumerable:!0,get:function(){return l.ProgressBar}}),Object.defineProperty(o,"RenderingStates",{enumerable:!0,get:function(){return l.RenderingStates}}),Object.defineProperty(o,"ScrollMode",{enumerable:!0,get:function(){return l.ScrollMode}}),Object.defineProperty(o,"SimpleLinkService",{enumerable:!0,get:function(){return s.SimpleLinkService}}),Object.defineProperty(o,"SpreadMode",{enumerable:!0,get:function(){return l.SpreadMode}}),Object.defineProperty(o,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return A.StructTreeLayerBuilder}}),Object.defineProperty(o,"TextLayerBuilder",{enumerable:!0,get:function(){return b.TextLayerBuilder}}),Object.defineProperty(o,"XfaLayerBuilder",{enumerable:!0,get:function(){return m.XfaLayerBuilder}}),Object.defineProperty(o,"parseQueryString",{enumerable:!0,get:function(){return l.parseQueryString}});var s=i(1),l=i(2),u=i(3),c=i(6),f=i(7),d=i(8),h=i(5),p=i(10),g=i(12),v=i(13),_=i(21),S=i(23),C=i(24),A=i(16),b=i(19),m=i(20);class w{constructor(){throw new Error("The `DefaultAnnotationLayerFactory` has been removed, please use the `annotationMode` option when initializing the `PDFPageView`-instance to control AnnotationLayer rendering.")}}o.DefaultAnnotationLayerFactory=w;class O{constructor(){throw new Error("The `DefaultStructTreeLayerFactory` has been removed, this functionality is automatically enabled when the TextLayer is used.")}}o.DefaultStructTreeLayerFactory=O;class R{constructor(){throw new Error("The `DefaultTextLayerFactory` has been removed, please use the `textLayerMode` option when initializing the `PDFPageView`-instance to control TextLayer rendering.")}}o.DefaultTextLayerFactory=R;class I{constructor(){throw new Error("The `DefaultXfaLayerFactory` has been removed, please use the `enableXfa` option when calling the `getDocument`-function to control XfaLayer rendering.")}}o.DefaultXfaLayerFactory=I})(),a})())})(pdf_viewer);const pdf="",PDFWorker={create(){return refWorker("pdf.worker.js").defaults(()=>new Worker(new URL(""+(typeof document>"u"&&typeof location>"u"?new(require("url")).URL("file:"+__dirname+"/worker/pdf.worker.js").href:new URL("worker/pdf.worker.js",typeof document>"u"?location.href:document.currentScript&&document.currentScript.src||document.baseURI).href),self.location),{type:"module"}))}},_withScopeId=e=>(vue.pushScopeId("data-v-9bad3887"),e=e(),vue.popScopeId(),e),_hoisted_1$3={class:"container"},_hoisted_2={class:"pdf_down"},_hoisted_3=_withScopeId(()=>vue.createElementVNode("div",{id:"viewer",class:"pdfViewer"},null,-1)),_hoisted_4=[_hoisted_3],_sfc_main$3=vue.defineComponent({__name:"PdfView",props:{data:null},setup(e){const t=e,r=vue.ref(null),n={viewer:null,search:"",pdf_scale:1};!pdfExports.GlobalWorkerOptions.workerPort&&typeof window<"u"&&"Worker"in window&&(pdfExports.GlobalWorkerOptions.workerPort=PDFWorker.create()),(()=>{async function o(){if(!r.value)return;const s=new pdf_viewerExports.EventBus,l=new pdf_viewerExports.PDFLinkService({eventBus:s}),u=new pdf_viewerExports.PDFFindController({eventBus:s,linkService:l,updateMatchesCountOnProgress:!0}),c=new pdf_viewerExports.PDFViewer({container:r.value,eventBus:s,linkService:l,findController:u,l10n:new pdf_viewerExports.GenericL10n("zh-CN")});l.setViewer(c),s.on("pagesinit",()=>{var p;const h=(p=c.getPageView(0))==null?void 0:p.viewport;(h==null?void 0:h.width)>window.innerWidth?c.currentScaleValue="0.5":c.currentScaleValue="1"});const d=await pdfExports.getDocument({data:t.data,cMapUrl:`https://npm.onmicrosoft.cn/pdfjs-dist@${pdfExports.version}/cmaps/`,useWorkerFetch:!0,cMapPacked:!0,enableXfa:!0}).promise;c.setDocument(d),l.setDocument(d,null),n.viewer=c}vue.onMounted(o)})();function i(){if(!n.viewer)return;const o=n.viewer.currentScale;let s=0;window.screen.width>1440?s=1.4:s=1.2,!(o>=s)&&(n.viewer.currentScale=o+.1)}function a(){if(!n.viewer)return;const o=n.viewer.currentScale;o<=.5||(n.viewer.currentScale=o-.1)}return(o,s)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3,[vue.createElementVNode("div",_hoisted_2,[vue.createElementVNode("div",{class:"pdf_set_left",onClick:s[0]||(s[0]=l=>i())},"➕"),vue.createElementVNode("div",{class:"pdf_set_middle",onClick:s[1]||(s[1]=l=>a())},"➖")]),vue.createElementVNode("div",{ref_key:"container",ref:r,class:"pdf-wrapper"},_hoisted_4,512)]))}}),PdfView_vue_vue_type_style_index_0_scoped_9bad3887_lang="",PdfView=_export_sfc$1(_sfc_main$3,[["__scopeId","data-v-9bad3887"]]),PdfView$1=Object.freeze(Object.defineProperty({__proto__:null,default:PdfView},Symbol.toStringTag,{value:"Module"}));/*!
|
|
376
376
|
* Viewer.js v1.11.3
|
|
377
377
|
* https://fengyuanchen.github.io/viewerjs
|
|
378
378
|
*
|
package/dist/style.css
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
* Handsontable Filters
|
|
47
47
|
*/.htFiltersConditionsMenu:not(.htGhostTable){display:none;position:absolute;z-index:1070}.htFiltersConditionsMenu .ht_clone_bottom,.htFiltersConditionsMenu .ht_clone_bottom_inline_start_corner,.htFiltersConditionsMenu .ht_clone_inline_start,.htFiltersConditionsMenu .ht_clone_top,.htFiltersConditionsMenu .ht_clone_top_inline_start_corner{display:none}.htFiltersConditionsMenu table.htCore{border-color:#bbb;border-style:solid;border-width:1px 2px 2px 1px}.htFiltersConditionsMenu .wtBorder{visibility:hidden}.htFiltersConditionsMenu table tbody tr td{background:#fff;border-width:0;cursor:pointer;overflow:hidden;padding:4px 6px 0;text-overflow:ellipsis;white-space:nowrap}.htFiltersConditionsMenu table tbody tr td:first-child{border-width:0}[dir=rtl].htFiltersConditionsMenu table tbody tr td:first-child{border-left-width:0;border-right-width:0}.htFiltersConditionsMenu table tbody tr td.htDimmed{color:#323232;font-style:normal}.htFiltersConditionsMenu table tbody tr td.current,.htFiltersConditionsMenu table tbody tr td.zeroclipboard-is-hover{background:#e9e9e9}.htFiltersConditionsMenu table tbody tr td.htSeparator{border-top:1px solid #e6e6e6;height:0;padding:0}.htFiltersConditionsMenu table tbody tr td.htDisabled{color:#999}.htFiltersConditionsMenu table tbody tr td.htDisabled:hover{background:#fff;color:#999;cursor:default}.htFiltersConditionsMenu table tbody tr td .htItemWrapper{margin-left:10px;margin-right:10px}.htFiltersConditionsMenu table tbody tr td div span.selected{left:4px;margin-top:-2px;position:absolute}.htFiltersConditionsMenu .ht_master .wtHolder{overflow:hidden}.handsontable .htMenuFiltering{border-bottom:1px dotted #ccc;height:135px;overflow:hidden}.handsontable .ht_master table td.htCustomMenuRenderer{background-color:#fff;cursor:auto}.handsontable .htFiltersMenuLabel{font-size:.75em}.handsontable .htFiltersMenuActionBar{padding-bottom:3px;padding-top:10px;text-align:center}.handsontable .htFiltersMenuCondition.border{border-bottom:1px dotted #ccc!important}.handsontable .htFiltersMenuCondition .htUIInput{padding:0 0 5px}.handsontable .htFiltersMenuValue{border-bottom:1px dotted #ccc!important}.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch{padding:0}.handsontable .htFiltersMenuCondition .htUIInput input,.handsontable .htFiltersMenuValue .htUIMultipleSelectSearch input{box-sizing:border-box;font-family:inherit;font-size:.75em;padding:4px;width:100%}.htUIMultipleSelect .ht_master .wtHolder{overflow-y:scroll}.handsontable .htFiltersActive .changeType{background-color:#d2e0d9;border:1px solid #509272;color:#18804e}.handsontable .htUISelectAll{margin-left:0;margin-right:10px}[dir=rtl].handsontable .htUISelectAll{margin-left:10px;margin-right:0}.handsontable .htUIClearAll,.handsontable .htUISelectAll{display:inline-block}.handsontable .htUIClearAll a,.handsontable .htUISelectAll a{font-size:.75em}.handsontable .htUISelectionControls{text-align:right}[dir=rtl].handsontable .htUISelectionControls{text-align:left}.handsontable .htCheckboxRendererInput{height:1em;margin:0 5px 0 0;vertical-align:middle}[dir=rtl].handsontable .htCheckboxRendererInput{margin-left:5px;margin-right:0}.handsontable .htUIInput{padding:3px 0 7px;position:relative;text-align:center}.handsontable .htUIInput input{border:1px solid #d2d1d1;border-radius:2px}.handsontable .htUIInput input:focus{outline:0}.handsontable .htUIInputIcon{position:absolute}.handsontable .htUIInput.htUIButton{cursor:pointer;display:inline-block}.handsontable .htUIInput.htUIButton input{background-color:#eee;color:#000;cursor:pointer;font-family:inherit;font-size:.75em;font-weight:700;height:19px;min-width:64px}.handsontable .htUIInput.htUIButton input:hover{border-color:#b9b9b9}.handsontable .htUIInput.htUIButtonOK{margin-left:0;margin-right:10px}[dir=rtl].handsontable .htUIInput.htUIButtonOK{margin-left:10px;margin-right:0}.handsontable .htUIInput.htUIButtonOK input{background-color:#0f9d58;border-color:#18804e;color:#fff}.handsontable .htUIInput.htUIButtonOK input:hover{border-color:#1a6f46}.handsontable .htUISelect{cursor:pointer;margin-bottom:7px;position:relative}.handsontable .htUISelectCaption{background-color:#e8e8e8;border:1px solid #d2d1d1;border-radius:2px;font-family:inherit;font-size:.75em;font-weight:700;overflow:hidden;padding:3px 20px 3px 10px;text-overflow:ellipsis;white-space:nowrap}.handsontable .htUISelectCaption:hover{background-color:#e8e8e8;border:1px solid #b9b9b9}.handsontable .htUISelectDropdown:after{content:"\25b2";font-size:7px;position:absolute;right:10px;top:0}.handsontable .htUISelectDropdown:before{content:"\25bc";font-size:7px;position:absolute;right:10px;top:8px}.handsontable .htUIMultipleSelect .handsontable .htCore{border:none}.handsontable .htUIMultipleSelect .handsontable .htCore td:hover{background-color:#f5f5f5}.handsontable .htUIMultipleSelectSearch input{border:1px solid #d2d1d1;border-radius:2px;padding:3px}.handsontable .htUIRadio{display:inline-block;height:100%;margin-left:0;margin-right:5px}[dir=rtl].handsontable .htUIRadio{margin-left:5px;margin-right:0}.handsontable .htUIRadio:last-child{margin-right:0}.handsontable .htUIRadio>input[type=radio]{margin-left:0;margin-right:.5ex}[dir=rtl].handsontable .htUIRadio>input[type=radio]{margin-left:.5ex;margin-right:0}.handsontable .htUIRadio label{vertical-align:middle}.handsontable .htFiltersMenuOperators{padding-bottom:5px}.handsontable th.beforeHiddenColumn{position:relative}.handsontable th.afterHiddenColumn:before,.handsontable th.beforeHiddenColumn:after{color:#bbb;font-size:5pt;position:absolute;top:50%;transform:translateY(-50%)}.handsontable th.afterHiddenColumn{position:relative}.handsontable th.beforeHiddenColumn:after{content:"\25c0";right:1px}[dir=rtl].handsontable th.beforeHiddenColumn:after{content:"\25b6";left:1px;right:auto}.handsontable th.afterHiddenColumn:before{content:"\25b6";left:1px}[dir=rtl].handsontable th.afterHiddenColumn:before{content:"\25c0";left:auto;right:1px}/*!
|
|
48
48
|
* Handsontable HiddenRows
|
|
49
|
-
*/.handsontable th.afterHiddenRow:after,.handsontable th.beforeHiddenRow:before{color:#bbb;font-size:6pt;left:2px;line-height:6pt;position:absolute}.handsontable th.afterHiddenRow,.handsontable th.beforeHiddenRow{position:relative}.handsontable th.beforeHiddenRow:before{bottom:2px;content:"\25b2"}.handsontable th.afterHiddenRow:after{content:"\25bc";top:2px}.handsontable.ht__selection--rows tbody th.afterHiddenRow.ht__highlight:after,.handsontable.ht__selection--rows tbody th.beforeHiddenRow.ht__highlight:before{color:#eee}.handsontable td.afterHiddenRow.firstVisibleRow,.handsontable th.afterHiddenRow.firstVisibleRow{border-top:1px solid #ccc}.htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_inline_start td:first-of-type,.htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_top_inline_start_corner th:nth-child(2){border-left:0}.handsontable.ht__manualColumnMove.after-selection--columns thead th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualColumnMove.on-moving--columns,.handsontable.ht__manualColumnMove.on-moving--columns thead th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualColumnMove.on-moving--columns .manualColumnResizer{display:none}.handsontable .ht__manualColumnMove--backlight,.handsontable .ht__manualColumnMove--guideline{display:none;height:100%;position:absolute}.handsontable .ht__manualColumnMove--guideline{background:#757575;margin-inline-end:0;margin-inline-start:-1px;top:0;width:2px;z-index:205}.handsontable .ht__manualColumnMove--backlight{background:#343434;background:rgba(52,52,52,.25);display:none;pointer-events:none;z-index:205}.handsontable.on-moving--columns .ht__manualColumnMove--backlight,.handsontable.on-moving--columns.show-ui .ht__manualColumnMove--guideline{display:block}.handsontable .wtHider{position:relative}.handsontable.ht__manualRowMove.after-selection--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualRowMove.on-moving--rows,.handsontable.ht__manualRowMove.on-moving--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualRowMove.on-moving--rows .manualRowResizer{display:none}.handsontable .ht__manualRowMove--backlight,.handsontable .ht__manualRowMove--guideline{display:none;position:absolute;width:100%}.handsontable .ht__manualRowMove--guideline{background:#757575;height:2px;left:0;margin-top:-1px;z-index:205}.handsontable .ht__manualRowMove--backlight{background:#343434;background:rgba(52,52,52,.25);display:none;pointer-events:none;z-index:205}.handsontable.on-moving--rows .ht__manualRowMove--backlight,.handsontable.on-moving--rows.show-ui .ht__manualRowMove--guideline{display:block}.handsontable tbody td[rowspan][class*=area][class*=highlight]:not([class*=fullySelectedMergedCell]):before{opacity:0}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-0]:before,.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-multiple]:before{opacity:.1}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-1]:before{opacity:.2}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-2]:before{opacity:.27}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-3]:before{opacity:.35}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-4]:before{opacity:.41}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-5]:before{opacity:.47}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-6]:before{opacity:.54}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-7]:before{opacity:.58}.handsontable span.colHeader.columnSorting:after{font-size:8px;height:8px;left:unset;line-height:1.1;margin-top:-2px;padding-left:5px;padding-right:unset;position:absolute;right:-15px;text-decoration:underline;top:50%}[dir=rtl].handsontable span.colHeader.columnSorting:after{left:-15px;padding-left:unset;padding-right:5px;right:unset}.handsontable span.colHeader.columnSorting:after{text-decoration:none}.handsontable span.colHeader.columnSorting[class*=" sort-"]:after,.handsontable span.colHeader.columnSorting[class^=sort-]:after{content:"+"}.handsontable span.colHeader.columnSorting.sort-1:after{content:"1"}.handsontable span.colHeader.columnSorting.sort-2:after{content:"2"}.handsontable span.colHeader.columnSorting.sort-3:after{content:"3"}.handsontable span.colHeader.columnSorting.sort-4:after{content:"4"}.handsontable span.colHeader.columnSorting.sort-5:after{content:"5"}.handsontable span.colHeader.columnSorting.sort-6:after{content:"6"}.handsontable span.colHeader.columnSorting.sort-7:after{content:"7"}.htGhostTable th div button.changeType+span.colHeader.columnSorting:not(.indicatorDisabled){padding-right:5px}.handsontable thead th.hiddenHeader:not(:first-of-type){display:none}.handsontable th.ht_nestingLevels{padding-left:7px;text-align:left}[dir=rtl].handsontable th.ht_nestingLevels{padding-right:7px;text-align:right}.handsontable th div.ht_nestingLevels{display:inline-block;left:11px;position:absolute;right:unset}[dir=rtl].handsontable th div.ht_nestingLevels{left:unset;right:11px}.handsontable.innerBorderInlineStart th div.ht_nestingLevels,.handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingLevels{left:unset;right:10px}[dir=rtl].handsontable.innerBorderInlineStart th div.ht_nestingLevels,[dir=rtl].handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingLevels{left:10px;right:unset}.handsontable th span.ht_nestingLevel{display:inline-block}.handsontable th span.ht_nestingLevel_empty{display:inline-block;float:left;height:1px;width:10px}[dir=rtl].handsontable th span.ht_nestingLevel_empty{float:right}.handsontable th span.ht_nestingLevel:after{bottom:3px;content:"\2510";display:inline-block;font-size:9px;position:relative}.handsontable th div.ht_nestingButton{cursor:pointer;display:inline-block;left:unset;position:absolute;right:-2px}[dir=rtl].handsontable th div.ht_nestingButton{left:-2px;right:unset}.handsontable th div.ht_nestingButton.ht_nestingExpand:after{content:"+"}.handsontable th div.ht_nestingButton.ht_nestingCollapse:after{content:"-"}.handsontable.innerBorderInlineStart th div.ht_nestingButton,.handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingButton{left:unset;right:0}[dir=rtl].handsontable.innerBorderInlineStart th div.ht_nestingButton,[dir=rtl].handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingButton{left:0;right:unset}.handsontable{font-size:13px;color:#222}.excel-wrapper[data-v-adf756f3]{position:relative;width:100%;height:100%}.excel-wrapper img[data-v-adf756f3]{height:auto;display:block}.excel-wrapper img.lg[data-v-adf756f3]{width:200px;margin:20px auto}.excel-wrapper img.sm[data-v-adf756f3]{width:80px;margin:2px auto}.table-wrapper[data-v-adf756f3]{position:relative;width:100%;height:calc(100% - 25px)}.loading[data-v-adf756f3]{position:absolute;left:0;top:0;display:flex;text-align:center;justify-content:center;flex-direction:column;margin:0 auto;width:100%;height:100%;background:white;font-size:18px;font-weight:700;z-index:999;color:#0c9d0c}.sheet-btn.active[data-v-adf756f3]{background-color:#7fffd4}.btn-group[data-v-adf756f3]{margin-top:5px;display:block;border-bottom:1px solid grey;background-color:#d3d3d3}.btn-group button[data-v-adf756f3]{outline:0;border:0;border-top-left-radius:5px;border-top-right-radius:5px;color:#0c9d0c;border-left:1px solid slategrey}.btn-group button[data-v-adf756f3]:last-child{border-right:1px solid grey}.btn-group button.active[data-v-adf756f3]{background:#0c9d0c;color:#fff}.table-tool[data-v-adf756f3]{padding:8px 0;border-top:1px solid black}.textLayer{position:absolute;text-align:initial;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none}.textLayer span,.textLayer br{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:#006400}.textLayer ::-moz-selection{background:rgba(0,0,255,1)}.textLayer ::selection{background:rgba(0,0,255,1)}.textLayer br::-moz-selection{background:transparent}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}.textLayer .endOfContent.active{top:0}:root{--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>")}@media (forced-colors: active){.annotationLayer .textWidgetAnnotation input:required,.annotationLayer .textWidgetAnnotation textarea:required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation.checkBox input:required,.annotationLayer .buttonWidgetAnnotation.radioButton input:required{outline:1.5px solid selectedItem}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;transform-origin:0 0}.annotationLayer .linkAnnotation>a,.annotationLayer .buttonWidgetAnnotation.pushButton>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer .buttonWidgetAnnotation.pushButton>canvas{width:100%;height:100%}.annotationLayer .linkAnnotation>a:hover,.annotationLayer .buttonWidgetAnnotation.pushButton>a:hover{opacity:.2;background:rgba(255,255,0,1);box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%}.annotationLayer .textWidgetAnnotation input,.annotationLayer .textWidgetAnnotation textarea,.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input{background-image:var(--annotation-unfocused-field-background);border:1px solid transparent;box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation input:required,.annotationLayer .textWidgetAnnotation textarea:required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation.checkBox input:required,.annotationLayer .buttonWidgetAnnotation.radioButton input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation input[disabled],.annotationLayer .textWidgetAnnotation textarea[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}.annotationLayer .textWidgetAnnotation input:hover,.annotationLayer .textWidgetAnnotation textarea:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,.annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid rgba(0,0,0,1)}.annotationLayer .textWidgetAnnotation input:focus,.annotationLayer .textWidgetAnnotation textarea:focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:1px solid transparent}.annotationLayer .textWidgetAnnotation input :focus,.annotationLayer .textWidgetAnnotation textarea :focus,.annotationLayer .choiceWidgetAnnotation select :focus,.annotationLayer .buttonWidgetAnnotation.checkBox :focus,.annotationLayer .buttonWidgetAnnotation.radioButton :focus{background-image:none;background-color:transparent;outline:auto}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--scale-factor));width:100%;min-width:calc(180px * var(--scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;z-index:200;max-width:calc(180px * var(--scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));padding:calc(6px * var(--scale-factor));margin-left:calc(5px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%}:root{--xfa-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>")}@media (forced-colors: active){.xfaLayer *:required{outline:1.5px solid selectedItem}}.xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}.xfaLayer .highlight.appended{position:initial}.xfaLayer .highlight.begin{border-radius:4px 0 0 4px}.xfaLayer .highlight.end{border-radius:0 4px 4px 0}.xfaLayer .highlight.middle{border-radius:0}.xfaLayer .highlight.selected{background-color:#cbdfcb}.xfaLayer ::-moz-selection{background:rgba(0,0,255,1)}.xfaLayer ::selection{background:rgba(0,0,255,1)}.xfaPage{overflow:hidden;position:relative}.xfaContentarea{position:absolute}.xfaPrintOnly{display:none}.xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}.xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}.xfaLayer *:required{outline:1.5px solid red}.xfaLayer div{pointer-events:none}.xfaLayer svg{pointer-events:none}.xfaLayer svg *{pointer-events:none}.xfaLayer a{color:#00f}.xfaRich li{margin-left:3em}.xfaFont{color:#000;font-weight:400;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}.xfaCaption{overflow:hidden;flex:0 0 auto}.xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}.xfaLabel{height:100%;width:100%}.xfaLeft{display:flex;flex-direction:row;align-items:center}.xfaRight{display:flex;flex-direction:row-reverse;align-items:center}.xfaLeft>.xfaCaption,.xfaLeft>.xfaCaptionForCheckButton,.xfaRight>.xfaCaption,.xfaRight>.xfaCaptionForCheckButton{max-height:100%}.xfaTop{display:flex;flex-direction:column;align-items:flex-start}.xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}.xfaTop>.xfaCaption,.xfaTop>.xfaCaptionForCheckButton,.xfaBottom>.xfaCaption,.xfaBottom>.xfaCaptionForCheckButton{width:100%}.xfaBorder{background-color:transparent;position:absolute;pointer-events:none}.xfaWrapped{width:100%;height:100%}.xfaTextfield:focus,.xfaSelect:focus{background-image:none;background-color:transparent;outline:auto;outline-offset:-1px}.xfaCheckbox:focus,.xfaRadio:focus{outline:auto}.xfaTextfield,.xfaSelect{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}.xfaTop>.xfaTextfield,.xfaTop>.xfaSelect,.xfaBottom>.xfaTextfield,.xfaBottom>.xfaSelect{flex:0 1 auto}.xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}.xfaLink{width:100%;height:100%;position:absolute;top:0;left:0}.xfaCheckbox,.xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}.xfaRich{white-space:pre-wrap;width:100%;height:100%}.xfaImage{-o-object-position:left top;object-position:left top;-o-object-fit:contain;object-fit:contain;width:100%;height:100%}.xfaLrTb,.xfaRlTb,.xfaTb{display:flex;flex-direction:column;align-items:stretch}.xfaLr{display:flex;flex-direction:row;align-items:stretch}.xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}.xfaTb>div{justify-content:left}.xfaPosition,.xfaArea{position:relative}.xfaValignMiddle{display:flex;align-items:center}.xfaTable{display:flex;flex-direction:column;align-items:stretch}.xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}.xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}.xfaTable .xfaRlRow>div{flex:1}.xfaNonInteractive input,.xfaNonInteractive textarea,.xfaDisabled input,.xfaDisabled textarea,.xfaReadOnly input,.xfaReadOnly textarea{background:initial}@media print{.xfaTextfield,.xfaSelect{background:transparent}.xfaSelect{-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:""}}:root{--focus-outline: solid 2px red;--hover-outline: dashed 2px blue;--freetext-line-height: 1.35;--freetext-padding: 2px}@media (forced-colors: active){:root{--focus-outline: solid 3px ButtonText;--hover-outline: dashed 3px ButtonText}}[data-editor-rotation="90"]{transform:rotate(90deg)}[data-editor-rotation="180"]{transform:rotate(180deg)}[data-editor-rotation="270"]{transform:rotate(270deg)}.annotationEditorLayer{background:transparent;position:absolute;top:0;left:0;font-size:calc(100px * var(--scale-factor));transform-origin:0 0}.annotationEditorLayer .selectedEditor{outline:var(--focus-outline);resize:none}.annotationEditorLayer .freeTextEditor{position:absolute;background:transparent;border-radius:3px;padding:calc(var(--freetext-padding) * var(--scale-factor));resize:none;width:auto;height:auto;z-index:1;transform-origin:0 0;touch-action:none}.annotationEditorLayer .freeTextEditor .internal{background:transparent;border:none;top:0;left:0;overflow:visible;white-space:nowrap;resize:none;font:10px sans-serif;line-height:var(--freetext-line-height)}.annotationEditorLayer .freeTextEditor .overlay{position:absolute;display:none;background:transparent;top:0;left:0;width:100%;height:100%}.annotationEditorLayer .freeTextEditor .overlay.enabled{display:block}.annotationEditorLayer .freeTextEditor .internal:empty:before{content:attr(default-content);color:gray}.annotationEditorLayer .freeTextEditor .internal:focus{outline:none}.annotationEditorLayer .inkEditor.disabled{resize:none}.annotationEditorLayer .inkEditor.disabled.selectedEditor{resize:horizontal}.annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor),.annotationEditorLayer .inkEditor:hover:not(.selectedEditor){outline:var(--hover-outline)}.annotationEditorLayer .inkEditor{position:absolute;background:transparent;border-radius:3px;overflow:auto;width:100%;height:100%;z-index:1;transform-origin:0 0;cursor:auto}.annotationEditorLayer .inkEditor.editing{resize:none;cursor:var(--editorInk-editing-cursor),pointer}.annotationEditorLayer .inkEditor .inkEditorCanvas{position:absolute;top:0;left:0;width:100%;height:100%;touch-action:none}:root{--viewer-container-height: 0;--pdfViewer-padding-bottom: 0;--page-margin: 1px auto -8px;--page-border: 9px solid transparent;--page-border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAA1ElEQVQ4jbWUWw6EIAxFy2NFs/8NzR4UJhpqLsdi5mOmSSMUOfYWqv3S0gMr4XlYH/64gZa/gN3ANYA7KAXALt4ktoQ5MI9YxqaG8bWmsIysMuT6piSQCa4whZThCu8CM4zP9YJaKci9jicPq3NcBWYoPMGUlhG7ivtkB+gVyFY75wXghOvh8t5mto1Mdim6e+MBqH6XsY+YAwjpq3vGF7weTWQptLEDVCZvPTMl5JZZsdh47FHW6qFMyvLYqjcnmdFfY9Xk/KDOlzCusX2mi/ofM7MPkzBcSp4Q1/wAAAAASUVORK5CYII=) 9 9 repeat;--spreadHorizontalWrapped-margin-LR: -3.5px;--scale-factor: 1}@media screen and (forced-colors: active){:root{--pdfViewer-padding-bottom: 9px;--page-margin: 8px auto -1px;--page-border: 1px solid CanvasText;--page-border-image: none;--spreadHorizontalWrapped-margin-LR: 3.5px}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}.pdfViewer{padding-bottom:var(--pdfViewer-padding-bottom)}.pdfViewer .canvasWrapper{overflow:hidden}.pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);-o-border-image:var(--page-border-image);border-image:var(--page-border-image);background-clip:content-box;background-color:#fff}.pdfViewer .dummyPage{position:relative;width:0;height:var(--viewer-container-height)}.pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}.pdfViewer.singlePageView{display:inline-block}.pdfViewer.singlePageView .page{margin:0;border:none}.pdfViewer.scrollHorizontal,.pdfViewer.scrollWrapped,.spread{margin-left:3.5px;margin-right:3.5px;text-align:center}.pdfViewer.scrollHorizontal,.spread{white-space:nowrap}.pdfViewer.removePageBorders,.pdfViewer.scrollHorizontal .spread,.pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}.spread .page,.spread .dummyPage,.pdfViewer.scrollHorizontal .page,.pdfViewer.scrollWrapped .page,.pdfViewer.scrollHorizontal .spread,.pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}.spread .page,.pdfViewer.scrollHorizontal .page,.pdfViewer.scrollWrapped .page{margin-left:var(--spreadHorizontalWrapped-margin-LR);margin-right:var(--spreadHorizontalWrapped-margin-LR)}.pdfViewer.removePageBorders .spread .page,.pdfViewer.removePageBorders.scrollHorizontal .page,.pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}.pdfViewer .page canvas{margin:0;display:block}.pdfViewer .page canvas[hidden]{display:none}.pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhBHhUTDhGo4diOZyFAoKEQDxra2mAEgjghOpCgz3LTBIxJ5kgwMBShACREHZ1V4Kg1rS44pBAgMDAg/Sw0GBAQGDZGTlY+YmpyPpSQDiqYiDQoCliqZBqkGAgKIS5kEjQ21VwCyp76dBHiNvz+MR74AqSOdVwbQuo+abppo10ssjdkAnc0rf8vgl8YqIQAh+QQJBwAAACwAAAAAGAAYAAAFrCAgjiQgCGVaDgZZFCQxqKNRKGOSjMjR0qLXTyciHA7AkaLACMIAiwOC1iAxCrMToHHYjWQiA4NBEA0Q1RpWxHg4cMXxNDk4OBxNUkPAQAEXDgllKgMzQA1pSYopBgonCj9JEA8REQ8QjY+RQJOVl4ugoYssBJuMpYYjDQSliwasiQOwNakALKqsqbWvIohFm7V6rQAGP6+JQLlFg7KDQLKJrLjBKbvAor3IKiEAIfkECQcAAAAsAAAAABgAGAAABbUgII4koChlmhokw5DEoI4NQ4xFMQoJO4uuhignMiQWvxGBIQC+AJBEUyUcIRiyE6CR0CllW4HABxBURTUw4nC4FcWo5CDBRpQaCoF7VjgsyCUDYDMNZ0mHdwYEBAaGMwwHDg4HDA2KjI4qkJKUiJ6faJkiA4qAKQkRB3E0i6YpAw8RERAjA4tnBoMApCMQDhFTuySKoSKMJAq6rD4GzASiJYtgi6PUcs9Kew0xh7rNJMqIhYchACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJEAQZZo2JIKQxqCOjWCMDDMqxT2LAgELkBMZCoXfyCBQiFwiRsGpku0EshNgUNAtrYPT0GQVNRBWwSKBMp98P24iISgNDAS4ipGA6JUpA2WAhDR4eWM/CAkHBwkIDYcGiTOLjY+FmZkNlCN3eUoLDmwlDW+AAwcODl5bYl8wCVYMDw5UWzBtnAANEQ8kBIM0oAAGPgcREIQnVloAChEOqARjzgAQEbczg8YkWJq8nSUhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJGAYZZoOpKKQqDoORDMKwkgwtiwSBBYAJ2owGL5RgxBziQQMgkwoMkhNqAEDARPSaiMDFdDIiRSFQowMXE8Z6RdpYHWnEAWGPVkajPmARVZMPUkCBQkJBQINgwaFPoeJi4GVlQ2Qc3VJBQcLV0ptfAMJBwdcIl+FYjALQgimoGNWIhAQZA4HXSpLMQ8PIgkOSHxAQhERPw7ASTSFyCMMDqBTJL8tf3y2fCEAIfkECQcAAAAsAAAAABgAGAAABa8gII4k0DRlmg6kYZCoOg5EDBDEaAi2jLO3nEkgkMEIL4BLpBAkVy3hCTAQKGAznM0AFNFGBAbj2cA9jQixcGZAGgECBu/9HnTp+FGjjezJFAwFBQwKe2Z+KoCChHmNjVMqA21nKQwJEJRlbnUFCQlFXlpeCWcGBUACCwlrdw8RKGImBwktdyMQEQciB7oACwcIeA4RVwAODiIGvHQKERAjxyMIB5QlVSTLYLZ0sW8hACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWPM5wNiV0UDUIBNkdoepTfMkA7thIECiyRtUAGq8fm2O4jIBgMBA1eAZ6Knx+gHaJR4QwdCMKBxEJRggFDGgQEREPjjAMBQUKIwIRDhBDC2QNDDEKoEkDoiMHDigICGkJBS2dDA6TAAnAEAkCdQ8ORQcHTAkLcQQODLPMIgIJaCWxJMIkPIoAt3EhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWHM5wNiV0UN3xdLiqr+mENcWpM9TIbrsBkEck8oC0DQqBQGGIz+t3eXtob0ZTPgNrIwQJDgtGAgwCWSIMDg4HiiUIDAxFAAoODwxDBWINCEGdSTQkCQcoegADBaQ6MggHjwAFBZUFCm0HB0kJCUy9bAYHCCPGIwqmRq0jySMGmj6yRiEAIfkECQcAAAAsAAAAABgAGAAABbIgII4k0DRlmg6kYZCsOg4EKhLE2BCxDOAxnIiW84l2L4BLZKipBopW8XRLDkeCiAMyMvQAA+uON4JEIo+vqukkKQ6RhLHplVGN+LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}.pdfViewer .page .loadingIcon.notVisible{background:none}.pdfViewer.enablePermissions .textLayer span{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important;cursor:not-allowed}.pdfPresentationMode .pdfViewer{padding-bottom:0}.pdfPresentationMode .spread{margin:0}.pdfPresentationMode .pdfViewer .page{margin:0 auto;border:2px solid transparent}.container[data-v-47ad7fe7]{position:relative;width:100%;height:100%}.pdfViewer[data-v-47ad7fe7]{margin:0 auto}.pdf-wrapper[data-v-47ad7fe7]{position:absolute;width:100%;height:100%;overflow-y:auto}.container .pdf_down[data-v-47ad7fe7]{position:fixed;display:flex;z-index:20;right:26px;bottom:7%}.container .pdf_down .pdf_set_left[data-v-47ad7fe7],.container .pdf_down .pdf_set_middle[data-v-47ad7fe7]{width:30px;height:40px;color:#408fff;font-size:15px;padding-top:25px;text-align:center;margin-right:5px;cursor:pointer}/*!
|
|
49
|
+
*/.handsontable th.afterHiddenRow:after,.handsontable th.beforeHiddenRow:before{color:#bbb;font-size:6pt;left:2px;line-height:6pt;position:absolute}.handsontable th.afterHiddenRow,.handsontable th.beforeHiddenRow{position:relative}.handsontable th.beforeHiddenRow:before{bottom:2px;content:"\25b2"}.handsontable th.afterHiddenRow:after{content:"\25bc";top:2px}.handsontable.ht__selection--rows tbody th.afterHiddenRow.ht__highlight:after,.handsontable.ht__selection--rows tbody th.beforeHiddenRow.ht__highlight:before{color:#eee}.handsontable td.afterHiddenRow.firstVisibleRow,.handsontable th.afterHiddenRow.firstVisibleRow{border-top:1px solid #ccc}.htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_inline_start td:first-of-type,.htRowHeaders .ht_master.innerBorderInlineStart~.ht_clone_top_inline_start_corner th:nth-child(2){border-left:0}.handsontable.ht__manualColumnMove.after-selection--columns thead th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualColumnMove.on-moving--columns,.handsontable.ht__manualColumnMove.on-moving--columns thead th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualColumnMove.on-moving--columns .manualColumnResizer{display:none}.handsontable .ht__manualColumnMove--backlight,.handsontable .ht__manualColumnMove--guideline{display:none;height:100%;position:absolute}.handsontable .ht__manualColumnMove--guideline{background:#757575;margin-inline-end:0;margin-inline-start:-1px;top:0;width:2px;z-index:205}.handsontable .ht__manualColumnMove--backlight{background:#343434;background:rgba(52,52,52,.25);display:none;pointer-events:none;z-index:205}.handsontable.on-moving--columns .ht__manualColumnMove--backlight,.handsontable.on-moving--columns.show-ui .ht__manualColumnMove--guideline{display:block}.handsontable .wtHider{position:relative}.handsontable.ht__manualRowMove.after-selection--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualRowMove.on-moving--rows,.handsontable.ht__manualRowMove.on-moving--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualRowMove.on-moving--rows .manualRowResizer{display:none}.handsontable .ht__manualRowMove--backlight,.handsontable .ht__manualRowMove--guideline{display:none;position:absolute;width:100%}.handsontable .ht__manualRowMove--guideline{background:#757575;height:2px;left:0;margin-top:-1px;z-index:205}.handsontable .ht__manualRowMove--backlight{background:#343434;background:rgba(52,52,52,.25);display:none;pointer-events:none;z-index:205}.handsontable.on-moving--rows .ht__manualRowMove--backlight,.handsontable.on-moving--rows.show-ui .ht__manualRowMove--guideline{display:block}.handsontable tbody td[rowspan][class*=area][class*=highlight]:not([class*=fullySelectedMergedCell]):before{opacity:0}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-0]:before,.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-multiple]:before{opacity:.1}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-1]:before{opacity:.2}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-2]:before{opacity:.27}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-3]:before{opacity:.35}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-4]:before{opacity:.41}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-5]:before{opacity:.47}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-6]:before{opacity:.54}.handsontable tbody td[rowspan][class*=area][class*=highlight][class*=fullySelectedMergedCell-7]:before{opacity:.58}.handsontable span.colHeader.columnSorting:after{font-size:8px;height:8px;left:unset;line-height:1.1;margin-top:-2px;padding-left:5px;padding-right:unset;position:absolute;right:-15px;text-decoration:underline;top:50%}[dir=rtl].handsontable span.colHeader.columnSorting:after{left:-15px;padding-left:unset;padding-right:5px;right:unset}.handsontable span.colHeader.columnSorting:after{text-decoration:none}.handsontable span.colHeader.columnSorting[class*=" sort-"]:after,.handsontable span.colHeader.columnSorting[class^=sort-]:after{content:"+"}.handsontable span.colHeader.columnSorting.sort-1:after{content:"1"}.handsontable span.colHeader.columnSorting.sort-2:after{content:"2"}.handsontable span.colHeader.columnSorting.sort-3:after{content:"3"}.handsontable span.colHeader.columnSorting.sort-4:after{content:"4"}.handsontable span.colHeader.columnSorting.sort-5:after{content:"5"}.handsontable span.colHeader.columnSorting.sort-6:after{content:"6"}.handsontable span.colHeader.columnSorting.sort-7:after{content:"7"}.htGhostTable th div button.changeType+span.colHeader.columnSorting:not(.indicatorDisabled){padding-right:5px}.handsontable thead th.hiddenHeader:not(:first-of-type){display:none}.handsontable th.ht_nestingLevels{padding-left:7px;text-align:left}[dir=rtl].handsontable th.ht_nestingLevels{padding-right:7px;text-align:right}.handsontable th div.ht_nestingLevels{display:inline-block;left:11px;position:absolute;right:unset}[dir=rtl].handsontable th div.ht_nestingLevels{left:unset;right:11px}.handsontable.innerBorderInlineStart th div.ht_nestingLevels,.handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingLevels{left:unset;right:10px}[dir=rtl].handsontable.innerBorderInlineStart th div.ht_nestingLevels,[dir=rtl].handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingLevels{left:10px;right:unset}.handsontable th span.ht_nestingLevel{display:inline-block}.handsontable th span.ht_nestingLevel_empty{display:inline-block;float:left;height:1px;width:10px}[dir=rtl].handsontable th span.ht_nestingLevel_empty{float:right}.handsontable th span.ht_nestingLevel:after{bottom:3px;content:"\2510";display:inline-block;font-size:9px;position:relative}.handsontable th div.ht_nestingButton{cursor:pointer;display:inline-block;left:unset;position:absolute;right:-2px}[dir=rtl].handsontable th div.ht_nestingButton{left:-2px;right:unset}.handsontable th div.ht_nestingButton.ht_nestingExpand:after{content:"+"}.handsontable th div.ht_nestingButton.ht_nestingCollapse:after{content:"-"}.handsontable.innerBorderInlineStart th div.ht_nestingButton,.handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingButton{left:unset;right:0}[dir=rtl].handsontable.innerBorderInlineStart th div.ht_nestingButton,[dir=rtl].handsontable.innerBorderInlineStart~.handsontable th div.ht_nestingButton{left:0;right:unset}.handsontable{font-size:13px;color:#222}.excel-wrapper[data-v-adf756f3]{position:relative;width:100%;height:100%}.excel-wrapper img[data-v-adf756f3]{height:auto;display:block}.excel-wrapper img.lg[data-v-adf756f3]{width:200px;margin:20px auto}.excel-wrapper img.sm[data-v-adf756f3]{width:80px;margin:2px auto}.table-wrapper[data-v-adf756f3]{position:relative;width:100%;height:calc(100% - 25px)}.loading[data-v-adf756f3]{position:absolute;left:0;top:0;display:flex;text-align:center;justify-content:center;flex-direction:column;margin:0 auto;width:100%;height:100%;background:white;font-size:18px;font-weight:700;z-index:999;color:#0c9d0c}.sheet-btn.active[data-v-adf756f3]{background-color:#7fffd4}.btn-group[data-v-adf756f3]{margin-top:5px;display:block;border-bottom:1px solid grey;background-color:#d3d3d3}.btn-group button[data-v-adf756f3]{outline:0;border:0;border-top-left-radius:5px;border-top-right-radius:5px;color:#0c9d0c;border-left:1px solid slategrey}.btn-group button[data-v-adf756f3]:last-child{border-right:1px solid grey}.btn-group button.active[data-v-adf756f3]{background:#0c9d0c;color:#fff}.table-tool[data-v-adf756f3]{padding:8px 0;border-top:1px solid black}.textLayer{position:absolute;text-align:initial;left:0;top:0;right:0;bottom:0;overflow:hidden;opacity:.2;line-height:1;-webkit-text-size-adjust:none;-moz-text-size-adjust:none;text-size-adjust:none;forced-color-adjust:none}.textLayer span,.textLayer br{color:transparent;position:absolute;white-space:pre;cursor:text;transform-origin:0% 0%}.textLayer span.markedContent{top:0;height:0}.textLayer .highlight{margin:-1px;padding:1px;background-color:#b400aa;border-radius:4px}.textLayer .highlight.appended{position:initial}.textLayer .highlight.begin{border-radius:4px 0 0 4px}.textLayer .highlight.end{border-radius:0 4px 4px 0}.textLayer .highlight.middle{border-radius:0}.textLayer .highlight.selected{background-color:#006400}.textLayer ::-moz-selection{background:rgba(0,0,255,1)}.textLayer ::selection{background:rgba(0,0,255,1)}.textLayer br::-moz-selection{background:transparent}.textLayer br::selection{background:transparent}.textLayer .endOfContent{display:block;position:absolute;left:0;top:100%;right:0;bottom:0;z-index:-1;cursor:default;-webkit-user-select:none;-moz-user-select:none;user-select:none}.textLayer .endOfContent.active{top:0}:root{--annotation-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>")}@media (forced-colors: active){.annotationLayer .textWidgetAnnotation input:required,.annotationLayer .textWidgetAnnotation textarea:required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation.checkBox input:required,.annotationLayer .buttonWidgetAnnotation.radioButton input:required{outline:1.5px solid selectedItem}}.annotationLayer{position:absolute;top:0;left:0;pointer-events:none;transform-origin:0 0}.annotationLayer section{position:absolute;text-align:initial;pointer-events:auto;box-sizing:border-box;transform-origin:0 0}.annotationLayer .linkAnnotation>a,.annotationLayer .buttonWidgetAnnotation.pushButton>a{position:absolute;font-size:1em;top:0;left:0;width:100%;height:100%}.annotationLayer .buttonWidgetAnnotation.pushButton>canvas{width:100%;height:100%}.annotationLayer .linkAnnotation>a:hover,.annotationLayer .buttonWidgetAnnotation.pushButton>a:hover{opacity:.2;background:rgba(255,255,0,1);box-shadow:0 2px 10px #ff0}.annotationLayer .textAnnotation img{position:absolute;cursor:pointer;width:100%;height:100%}.annotationLayer .textWidgetAnnotation input,.annotationLayer .textWidgetAnnotation textarea,.annotationLayer .choiceWidgetAnnotation select,.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input{background-image:var(--annotation-unfocused-field-background);border:1px solid transparent;box-sizing:border-box;font:calc(9px * var(--scale-factor)) sans-serif;height:100%;margin:0;vertical-align:top;width:100%}.annotationLayer .textWidgetAnnotation input:required,.annotationLayer .textWidgetAnnotation textarea:required,.annotationLayer .choiceWidgetAnnotation select:required,.annotationLayer .buttonWidgetAnnotation.checkBox input:required,.annotationLayer .buttonWidgetAnnotation.radioButton input:required{outline:1.5px solid red}.annotationLayer .choiceWidgetAnnotation select option{padding:0}.annotationLayer .buttonWidgetAnnotation.radioButton input{border-radius:50%}.annotationLayer .textWidgetAnnotation textarea{resize:none}.annotationLayer .textWidgetAnnotation input[disabled],.annotationLayer .textWidgetAnnotation textarea[disabled],.annotationLayer .choiceWidgetAnnotation select[disabled],.annotationLayer .buttonWidgetAnnotation.checkBox input[disabled],.annotationLayer .buttonWidgetAnnotation.radioButton input[disabled]{background:none;border:1px solid transparent;cursor:not-allowed}.annotationLayer .textWidgetAnnotation input:hover,.annotationLayer .textWidgetAnnotation textarea:hover,.annotationLayer .choiceWidgetAnnotation select:hover,.annotationLayer .buttonWidgetAnnotation.checkBox input:hover,.annotationLayer .buttonWidgetAnnotation.radioButton input:hover{border:1px solid rgba(0,0,0,1)}.annotationLayer .textWidgetAnnotation input:focus,.annotationLayer .textWidgetAnnotation textarea:focus,.annotationLayer .choiceWidgetAnnotation select:focus{background:none;border:1px solid transparent}.annotationLayer .textWidgetAnnotation input :focus,.annotationLayer .textWidgetAnnotation textarea :focus,.annotationLayer .choiceWidgetAnnotation select :focus,.annotationLayer .buttonWidgetAnnotation.checkBox :focus,.annotationLayer .buttonWidgetAnnotation.radioButton :focus{background-image:none;background-color:transparent;outline:auto}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after,.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{background-color:CanvasText;content:"";display:block;position:absolute}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before,.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{height:80%;left:45%;width:1px}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:before{transform:rotate(45deg)}.annotationLayer .buttonWidgetAnnotation.checkBox input:checked:after{transform:rotate(-45deg)}.annotationLayer .buttonWidgetAnnotation.radioButton input:checked:before{border-radius:50%;height:50%;left:30%;top:20%;width:50%}.annotationLayer .textWidgetAnnotation input.comb{font-family:monospace;padding-left:2px;padding-right:0}.annotationLayer .textWidgetAnnotation input.comb:focus{width:103%}.annotationLayer .buttonWidgetAnnotation.checkBox input,.annotationLayer .buttonWidgetAnnotation.radioButton input{-webkit-appearance:none;-moz-appearance:none;appearance:none}.annotationLayer .popupTriggerArea{height:100%;width:100%}.annotationLayer .popupWrapper{position:absolute;font-size:calc(9px * var(--scale-factor));width:100%;min-width:calc(180px * var(--scale-factor));pointer-events:none}.annotationLayer .popup{position:absolute;z-index:200;max-width:calc(180px * var(--scale-factor));background-color:#ff9;box-shadow:0 calc(2px * var(--scale-factor)) calc(5px * var(--scale-factor)) #888;border-radius:calc(2px * var(--scale-factor));padding:calc(6px * var(--scale-factor));margin-left:calc(5px * var(--scale-factor));cursor:pointer;font:message-box;white-space:normal;word-wrap:break-word;pointer-events:auto}.annotationLayer .popup>*{font-size:calc(9px * var(--scale-factor))}.annotationLayer .popup h1{display:inline-block}.annotationLayer .popupDate{display:inline-block;margin-left:calc(5px * var(--scale-factor))}.annotationLayer .popupContent{border-top:1px solid rgba(51,51,51,1);margin-top:calc(2px * var(--scale-factor));padding-top:calc(2px * var(--scale-factor))}.annotationLayer .richText>*{white-space:pre-wrap;font-size:calc(9px * var(--scale-factor))}.annotationLayer .highlightAnnotation,.annotationLayer .underlineAnnotation,.annotationLayer .squigglyAnnotation,.annotationLayer .strikeoutAnnotation,.annotationLayer .freeTextAnnotation,.annotationLayer .lineAnnotation svg line,.annotationLayer .squareAnnotation svg rect,.annotationLayer .circleAnnotation svg ellipse,.annotationLayer .polylineAnnotation svg polyline,.annotationLayer .polygonAnnotation svg polygon,.annotationLayer .caretAnnotation,.annotationLayer .inkAnnotation svg polyline,.annotationLayer .stampAnnotation,.annotationLayer .fileAttachmentAnnotation{cursor:pointer}.annotationLayer section svg{position:absolute;width:100%;height:100%}:root{--xfa-unfocused-field-background: url("data:image/svg+xml;charset=UTF-8,<svg width='1px' height='1px' xmlns='http://www.w3.org/2000/svg'><rect width='100%' height='100%' style='fill:rgba(0, 54, 255, 0.13);'/></svg>")}@media (forced-colors: active){.xfaLayer *:required{outline:1.5px solid selectedItem}}.xfaLayer .highlight{margin:-1px;padding:1px;background-color:#efcbed;border-radius:4px}.xfaLayer .highlight.appended{position:initial}.xfaLayer .highlight.begin{border-radius:4px 0 0 4px}.xfaLayer .highlight.end{border-radius:0 4px 4px 0}.xfaLayer .highlight.middle{border-radius:0}.xfaLayer .highlight.selected{background-color:#cbdfcb}.xfaLayer ::-moz-selection{background:rgba(0,0,255,1)}.xfaLayer ::selection{background:rgba(0,0,255,1)}.xfaPage{overflow:hidden;position:relative}.xfaContentarea{position:absolute}.xfaPrintOnly{display:none}.xfaLayer{position:absolute;text-align:initial;top:0;left:0;transform-origin:0 0;line-height:1.2}.xfaLayer *{color:inherit;font:inherit;font-style:inherit;font-weight:inherit;font-kerning:inherit;letter-spacing:-.01px;text-align:inherit;text-decoration:inherit;box-sizing:border-box;background-color:transparent;padding:0;margin:0;pointer-events:auto;line-height:inherit}.xfaLayer *:required{outline:1.5px solid red}.xfaLayer div{pointer-events:none}.xfaLayer svg{pointer-events:none}.xfaLayer svg *{pointer-events:none}.xfaLayer a{color:#00f}.xfaRich li{margin-left:3em}.xfaFont{color:#000;font-weight:400;font-kerning:none;font-size:10px;font-style:normal;letter-spacing:0;text-decoration:none;vertical-align:0}.xfaCaption{overflow:hidden;flex:0 0 auto}.xfaCaptionForCheckButton{overflow:hidden;flex:1 1 auto}.xfaLabel{height:100%;width:100%}.xfaLeft{display:flex;flex-direction:row;align-items:center}.xfaRight{display:flex;flex-direction:row-reverse;align-items:center}.xfaLeft>.xfaCaption,.xfaLeft>.xfaCaptionForCheckButton,.xfaRight>.xfaCaption,.xfaRight>.xfaCaptionForCheckButton{max-height:100%}.xfaTop{display:flex;flex-direction:column;align-items:flex-start}.xfaBottom{display:flex;flex-direction:column-reverse;align-items:flex-start}.xfaTop>.xfaCaption,.xfaTop>.xfaCaptionForCheckButton,.xfaBottom>.xfaCaption,.xfaBottom>.xfaCaptionForCheckButton{width:100%}.xfaBorder{background-color:transparent;position:absolute;pointer-events:none}.xfaWrapped{width:100%;height:100%}.xfaTextfield:focus,.xfaSelect:focus{background-image:none;background-color:transparent;outline:auto;outline-offset:-1px}.xfaCheckbox:focus,.xfaRadio:focus{outline:auto}.xfaTextfield,.xfaSelect{height:100%;width:100%;flex:1 1 auto;border:none;resize:none;background-image:var(--xfa-unfocused-field-background)}.xfaTop>.xfaTextfield,.xfaTop>.xfaSelect,.xfaBottom>.xfaTextfield,.xfaBottom>.xfaSelect{flex:0 1 auto}.xfaButton{cursor:pointer;width:100%;height:100%;border:none;text-align:center}.xfaLink{width:100%;height:100%;position:absolute;top:0;left:0}.xfaCheckbox,.xfaRadio{width:100%;height:100%;flex:0 0 auto;border:none}.xfaRich{white-space:pre-wrap;width:100%;height:100%}.xfaImage{-o-object-position:left top;object-position:left top;-o-object-fit:contain;object-fit:contain;width:100%;height:100%}.xfaLrTb,.xfaRlTb,.xfaTb{display:flex;flex-direction:column;align-items:stretch}.xfaLr{display:flex;flex-direction:row;align-items:stretch}.xfaRl{display:flex;flex-direction:row-reverse;align-items:stretch}.xfaTb>div{justify-content:left}.xfaPosition,.xfaArea{position:relative}.xfaValignMiddle{display:flex;align-items:center}.xfaTable{display:flex;flex-direction:column;align-items:stretch}.xfaTable .xfaRow{display:flex;flex-direction:row;align-items:stretch}.xfaTable .xfaRlRow{display:flex;flex-direction:row-reverse;align-items:stretch;flex:1}.xfaTable .xfaRlRow>div{flex:1}.xfaNonInteractive input,.xfaNonInteractive textarea,.xfaDisabled input,.xfaDisabled textarea,.xfaReadOnly input,.xfaReadOnly textarea{background:initial}@media print{.xfaTextfield,.xfaSelect{background:transparent}.xfaSelect{-webkit-appearance:none;-moz-appearance:none;appearance:none;text-indent:1px;text-overflow:""}}:root{--focus-outline: solid 2px red;--hover-outline: dashed 2px blue;--freetext-line-height: 1.35;--freetext-padding: 2px}@media (forced-colors: active){:root{--focus-outline: solid 3px ButtonText;--hover-outline: dashed 3px ButtonText}}[data-editor-rotation="90"]{transform:rotate(90deg)}[data-editor-rotation="180"]{transform:rotate(180deg)}[data-editor-rotation="270"]{transform:rotate(270deg)}.annotationEditorLayer{background:transparent;position:absolute;top:0;left:0;font-size:calc(100px * var(--scale-factor));transform-origin:0 0}.annotationEditorLayer .selectedEditor{outline:var(--focus-outline);resize:none}.annotationEditorLayer .freeTextEditor{position:absolute;background:transparent;border-radius:3px;padding:calc(var(--freetext-padding) * var(--scale-factor));resize:none;width:auto;height:auto;z-index:1;transform-origin:0 0;touch-action:none}.annotationEditorLayer .freeTextEditor .internal{background:transparent;border:none;top:0;left:0;overflow:visible;white-space:nowrap;resize:none;font:10px sans-serif;line-height:var(--freetext-line-height)}.annotationEditorLayer .freeTextEditor .overlay{position:absolute;display:none;background:transparent;top:0;left:0;width:100%;height:100%}.annotationEditorLayer .freeTextEditor .overlay.enabled{display:block}.annotationEditorLayer .freeTextEditor .internal:empty:before{content:attr(default-content);color:gray}.annotationEditorLayer .freeTextEditor .internal:focus{outline:none}.annotationEditorLayer .inkEditor.disabled{resize:none}.annotationEditorLayer .inkEditor.disabled.selectedEditor{resize:horizontal}.annotationEditorLayer .freeTextEditor:hover:not(.selectedEditor),.annotationEditorLayer .inkEditor:hover:not(.selectedEditor){outline:var(--hover-outline)}.annotationEditorLayer .inkEditor{position:absolute;background:transparent;border-radius:3px;overflow:auto;width:100%;height:100%;z-index:1;transform-origin:0 0;cursor:auto}.annotationEditorLayer .inkEditor.editing{resize:none;cursor:var(--editorInk-editing-cursor),pointer}.annotationEditorLayer .inkEditor .inkEditorCanvas{position:absolute;top:0;left:0;width:100%;height:100%;touch-action:none}:root{--viewer-container-height: 0;--pdfViewer-padding-bottom: 0;--page-margin: 1px auto -8px;--page-border: 9px solid transparent;--page-border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAA1ElEQVQ4jbWUWw6EIAxFy2NFs/8NzR4UJhpqLsdi5mOmSSMUOfYWqv3S0gMr4XlYH/64gZa/gN3ANYA7KAXALt4ktoQ5MI9YxqaG8bWmsIysMuT6piSQCa4whZThCu8CM4zP9YJaKci9jicPq3NcBWYoPMGUlhG7ivtkB+gVyFY75wXghOvh8t5mto1Mdim6e+MBqH6XsY+YAwjpq3vGF7weTWQptLEDVCZvPTMl5JZZsdh47FHW6qFMyvLYqjcnmdFfY9Xk/KDOlzCusX2mi/ofM7MPkzBcSp4Q1/wAAAAASUVORK5CYII=) 9 9 repeat;--spreadHorizontalWrapped-margin-LR: -3.5px;--scale-factor: 1}@media screen and (forced-colors: active){:root{--pdfViewer-padding-bottom: 9px;--page-margin: 8px auto -1px;--page-border: 1px solid CanvasText;--page-border-image: none;--spreadHorizontalWrapped-margin-LR: 3.5px}}[data-main-rotation="90"]{transform:rotate(90deg) translateY(-100%)}[data-main-rotation="180"]{transform:rotate(180deg) translate(-100%,-100%)}[data-main-rotation="270"]{transform:rotate(270deg) translate(-100%)}.pdfViewer{padding-bottom:var(--pdfViewer-padding-bottom)}.pdfViewer .canvasWrapper{overflow:hidden}.pdfViewer .page{direction:ltr;width:816px;height:1056px;margin:var(--page-margin);position:relative;overflow:visible;border:var(--page-border);-o-border-image:var(--page-border-image);border-image:var(--page-border-image);background-clip:content-box;background-color:#fff}.pdfViewer .dummyPage{position:relative;width:0;height:var(--viewer-container-height)}.pdfViewer.removePageBorders .page{margin:0 auto 10px;border:none}.pdfViewer.singlePageView{display:inline-block}.pdfViewer.singlePageView .page{margin:0;border:none}.pdfViewer.scrollHorizontal,.pdfViewer.scrollWrapped,.spread{margin-left:3.5px;margin-right:3.5px;text-align:center}.pdfViewer.scrollHorizontal,.spread{white-space:nowrap}.pdfViewer.removePageBorders,.pdfViewer.scrollHorizontal .spread,.pdfViewer.scrollWrapped .spread{margin-left:0;margin-right:0}.spread .page,.spread .dummyPage,.pdfViewer.scrollHorizontal .page,.pdfViewer.scrollWrapped .page,.pdfViewer.scrollHorizontal .spread,.pdfViewer.scrollWrapped .spread{display:inline-block;vertical-align:middle}.spread .page,.pdfViewer.scrollHorizontal .page,.pdfViewer.scrollWrapped .page{margin-left:var(--spreadHorizontalWrapped-margin-LR);margin-right:var(--spreadHorizontalWrapped-margin-LR)}.pdfViewer.removePageBorders .spread .page,.pdfViewer.removePageBorders.scrollHorizontal .page,.pdfViewer.removePageBorders.scrollWrapped .page{margin-left:5px;margin-right:5px}.pdfViewer .page canvas{margin:0;display:block}.pdfViewer .page canvas[hidden]{display:none}.pdfViewer .page .loadingIcon{position:absolute;display:block;left:0;top:0;right:0;bottom:0;background:url(data:image/gif;base64,R0lGODlhGAAYAPQAAP///wAAAM7Ozvr6+uDg4LCwsOjo6I6OjsjIyJycnNjY2KioqMDAwPLy8nZ2doaGhri4uGhoaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/hpDcmVhdGVkIHdpdGggYWpheGxvYWQuaW5mbwAh+QQJBwAAACwAAAAAGAAYAAAFriAgjiQAQWVaDgr5POSgkoTDjFE0NoQ8iw8HQZQTDQjDn4jhSABhAAOhoTqSDg7qSUQwxEaEwwFhXHhHgzOA1xshxAnfTzotGRaHglJqkJcaVEqCgyoCBQkJBQKDDXQGDYaIioyOgYSXA36XIgYMBWRzXZoKBQUMmil0lgalLSIClgBpO0g+s26nUWddXyoEDIsACq5SsTMMDIECwUdJPw0Mzsu0qHYkw72bBmozIQAh+QQJBwAAACwAAAAAGAAYAAAFsCAgjiTAMGVaDgR5HKQwqKNxIKPjjFCk0KNXC6ATKSI7oAhxWIhezwhENTCQEoeGCdWIPEgzESGxEIgGBWstEW4QCGGAIJEoxGmGt5ZkgCRQQHkGd2CESoeIIwoMBQUMP4cNeQQGDYuNj4iSb5WJnmeGng0CDGaBlIQEJziHk3sABidDAHBgagButSKvAAoyuHuUYHgCkAZqebw0AgLBQyyzNKO3byNuoSS8x8OfwIchACH5BAkHAAAALAAAAAAYABgAAAW4ICCOJIAgZVoOBJkkpDKoo5EI43GMjNPSokXCINKJCI4HcCRIQEQvqIOhGhBHhUTDhGo4diOZyFAoKEQDxra2mAEgjghOpCgz3LTBIxJ5kgwMBShACREHZ1V4Kg1rS44pBAgMDAg/Sw0GBAQGDZGTlY+YmpyPpSQDiqYiDQoCliqZBqkGAgKIS5kEjQ21VwCyp76dBHiNvz+MR74AqSOdVwbQuo+abppo10ssjdkAnc0rf8vgl8YqIQAh+QQJBwAAACwAAAAAGAAYAAAFrCAgjiQgCGVaDgZZFCQxqKNRKGOSjMjR0qLXTyciHA7AkaLACMIAiwOC1iAxCrMToHHYjWQiA4NBEA0Q1RpWxHg4cMXxNDk4OBxNUkPAQAEXDgllKgMzQA1pSYopBgonCj9JEA8REQ8QjY+RQJOVl4ugoYssBJuMpYYjDQSliwasiQOwNakALKqsqbWvIohFm7V6rQAGP6+JQLlFg7KDQLKJrLjBKbvAor3IKiEAIfkECQcAAAAsAAAAABgAGAAABbUgII4koChlmhokw5DEoI4NQ4xFMQoJO4uuhignMiQWvxGBIQC+AJBEUyUcIRiyE6CR0CllW4HABxBURTUw4nC4FcWo5CDBRpQaCoF7VjgsyCUDYDMNZ0mHdwYEBAaGMwwHDg4HDA2KjI4qkJKUiJ6faJkiA4qAKQkRB3E0i6YpAw8RERAjA4tnBoMApCMQDhFTuySKoSKMJAq6rD4GzASiJYtgi6PUcs9Kew0xh7rNJMqIhYchACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJEAQZZo2JIKQxqCOjWCMDDMqxT2LAgELkBMZCoXfyCBQiFwiRsGpku0EshNgUNAtrYPT0GQVNRBWwSKBMp98P24iISgNDAS4ipGA6JUpA2WAhDR4eWM/CAkHBwkIDYcGiTOLjY+FmZkNlCN3eUoLDmwlDW+AAwcODl5bYl8wCVYMDw5UWzBtnAANEQ8kBIM0oAAGPgcREIQnVloAChEOqARjzgAQEbczg8YkWJq8nSUhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJGAYZZoOpKKQqDoORDMKwkgwtiwSBBYAJ2owGL5RgxBziQQMgkwoMkhNqAEDARPSaiMDFdDIiRSFQowMXE8Z6RdpYHWnEAWGPVkajPmARVZMPUkCBQkJBQINgwaFPoeJi4GVlQ2Qc3VJBQcLV0ptfAMJBwdcIl+FYjALQgimoGNWIhAQZA4HXSpLMQ8PIgkOSHxAQhERPw7ASTSFyCMMDqBTJL8tf3y2fCEAIfkECQcAAAAsAAAAABgAGAAABa8gII4k0DRlmg6kYZCoOg5EDBDEaAi2jLO3nEkgkMEIL4BLpBAkVy3hCTAQKGAznM0AFNFGBAbj2cA9jQixcGZAGgECBu/9HnTp+FGjjezJFAwFBQwKe2Z+KoCChHmNjVMqA21nKQwJEJRlbnUFCQlFXlpeCWcGBUACCwlrdw8RKGImBwktdyMQEQciB7oACwcIeA4RVwAODiIGvHQKERAjxyMIB5QlVSTLYLZ0sW8hACH5BAkHAAAALAAAAAAYABgAAAW0ICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWPM5wNiV0UDUIBNkdoepTfMkA7thIECiyRtUAGq8fm2O4jIBgMBA1eAZ6Knx+gHaJR4QwdCMKBxEJRggFDGgQEREPjjAMBQUKIwIRDhBDC2QNDDEKoEkDoiMHDigICGkJBS2dDA6TAAnAEAkCdQ8ORQcHTAkLcQQODLPMIgIJaCWxJMIkPIoAt3EhACH5BAkHAAAALAAAAAAYABgAAAWtICCOJNA0ZZoOpGGQrDoOBCoSxNgQsQzgMZyIlvOJdi+AS2SoyXrK4umWHM5wNiV0UN3xdLiqr+mENcWpM9TIbrsBkEck8oC0DQqBQGGIz+t3eXtob0ZTPgNrIwQJDgtGAgwCWSIMDg4HiiUIDAxFAAoODwxDBWINCEGdSTQkCQcoegADBaQ6MggHjwAFBZUFCm0HB0kJCUy9bAYHCCPGIwqmRq0jySMGmj6yRiEAIfkECQcAAAAsAAAAABgAGAAABbIgII4k0DRlmg6kYZCsOg4EKhLE2BCxDOAxnIiW84l2L4BLZKipBopW8XRLDkeCiAMyMvQAA+uON4JEIo+vqukkKQ6RhLHplVGN+LyKcXA4Dgx5DWwGDXx+gIKENnqNdzIDaiMECwcFRgQCCowiCAcHCZIlCgICVgSfCEMMnA0CXaU2YSQFoQAKUQMMqjoyAglcAAyBAAIMRUYLCUkFlybDeAYJryLNk6xGNCTQXY0juHghACH5BAkHAAAALAAAAAAYABgAAAWzICCOJNA0ZVoOAmkY5KCSSgSNBDE2hDyLjohClBMNij8RJHIQvZwEVOpIekRQJyJs5AMoHA+GMbE1lnm9EcPhOHRnhpwUl3AsknHDm5RN+v8qCAkHBwkIfw1xBAYNgoSGiIqMgJQifZUjBhAJYj95ewIJCQV7KYpzBAkLLQADCHOtOpY5PgNlAAykAEUsQ1wzCgWdCIdeArczBQVbDJ0NAqyeBb64nQAGArBTt8R8mLuyPyEAOwAAAAAAAAAAAA==) center no-repeat}.pdfViewer .page .loadingIcon.notVisible{background:none}.pdfViewer.enablePermissions .textLayer span{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important;cursor:not-allowed}.pdfPresentationMode .pdfViewer{padding-bottom:0}.pdfPresentationMode .spread{margin:0}.pdfPresentationMode .pdfViewer .page{margin:0 auto;border:2px solid transparent}.container[data-v-9bad3887]{position:relative;width:100%;height:100%}.pdfViewer[data-v-9bad3887]{margin:0 auto}.pdf-wrapper[data-v-9bad3887]{position:absolute;width:100%;height:100%;overflow-y:auto}.container .pdf_down[data-v-9bad3887]{position:fixed;display:flex;z-index:20;right:26px;bottom:7%}.container .pdf_down .pdf_set_left[data-v-9bad3887],.container .pdf_down .pdf_set_middle[data-v-9bad3887]{width:30px;height:40px;color:#408fff;font-size:15px;padding-top:25px;text-align:center;margin-right:5px;cursor:pointer}/*!
|
|
50
50
|
* Viewer.js v1.11.3
|
|
51
51
|
* https://fengyuanchen.github.io/viewerjs
|
|
52
52
|
*
|