@sme.up/ketchup 11.0.0-SNAPSHOT-20241119100308 → 11.0.0-SNAPSHOT-20241119152316
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/dist/cjs/{f-cell-121c7e46.js → f-cell-000ee01d.js} +4 -4
- package/dist/cjs/{f-cell-121c7e46.js.map → f-cell-000ee01d.js.map} +1 -1
- package/dist/cjs/{f-chip-29e9258a.js → f-chip-752377d0.js} +2 -2
- package/dist/cjs/{f-chip-29e9258a.js.map → f-chip-752377d0.js.map} +1 -1
- package/dist/cjs/{f-paginator-utils-32b87c09.js → f-paginator-utils-dda7406a.js} +2 -2
- package/dist/cjs/{f-paginator-utils-32b87c09.js.map → f-paginator-utils-dda7406a.js.map} +1 -1
- package/dist/cjs/{f-text-field-4226081f.js → f-text-field-9c220f70.js} +2 -2
- package/dist/cjs/{f-text-field-4226081f.js.map → f-text-field-9c220f70.js.map} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_28.cjs.entry.js +6 -6
- package/dist/cjs/kup-box.cjs.entry.js +6 -6
- package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +4 -4
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-00427a69.js → kup-data-table-helper-e507aa6d.js} +2 -2
- package/dist/cjs/{kup-data-table-helper-00427a69.js.map → kup-data-table-helper-e507aa6d.js.map} +1 -1
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +1 -1
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +4 -4
- package/dist/cjs/kup-input-panel.cjs.entry.js +6 -6
- package/dist/cjs/kup-input-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +1 -1
- package/dist/cjs/{kup-manager-fe741ac9.js → kup-manager-2dc3e312.js} +2 -2
- package/dist/cjs/{kup-manager-fe741ac9.js.map → kup-manager-2dc3e312.js.map} +1 -1
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-pdf.cjs.entry.js +1 -1
- package/dist/cjs/kup-photo-frame.cjs.entry.js +1 -1
- package/dist/cjs/kup-planner.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/kup-txt.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +2 -3
- package/dist/collection/components/kup-input-panel/kup-input-panel.js.map +1 -1
- package/dist/components/kup-input-panel.js +3 -3
- package/dist/components/kup-input-panel.js.map +1 -1
- package/dist/components/kup-manager.js +1 -1
- package/dist/components/kup-manager.js.map +1 -1
- package/dist/esm/{f-cell-81cf8d6b.js → f-cell-a7a32bc8.js} +4 -4
- package/dist/esm/{f-cell-81cf8d6b.js.map → f-cell-a7a32bc8.js.map} +1 -1
- package/dist/esm/{f-chip-cd564624.js → f-chip-46072fe3.js} +2 -2
- package/dist/esm/{f-chip-cd564624.js.map → f-chip-46072fe3.js.map} +1 -1
- package/dist/esm/{f-paginator-utils-d7b3f359.js → f-paginator-utils-0bfa6e5a.js} +2 -2
- package/dist/esm/{f-paginator-utils-d7b3f359.js.map → f-paginator-utils-0bfa6e5a.js.map} +1 -1
- package/dist/esm/{f-text-field-66b6f8a6.js → f-text-field-65d3ad8a.js} +2 -2
- package/dist/esm/{f-text-field-66b6f8a6.js.map → f-text-field-65d3ad8a.js.map} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/kup-accordion.entry.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_28.entry.js +6 -6
- package/dist/esm/kup-box.entry.js +6 -6
- package/dist/esm/kup-calendar.entry.js +2 -2
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +4 -4
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-7807c3bc.js → kup-data-table-helper-895a49b6.js} +2 -2
- package/dist/esm/{kup-data-table-helper-7807c3bc.js.map → kup-data-table-helper-895a49b6.js.map} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- package/dist/esm/kup-editor.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +1 -1
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +4 -4
- package/dist/esm/kup-input-panel.entry.js +6 -6
- package/dist/esm/kup-input-panel.entry.js.map +1 -1
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-e6854c15.js → kup-manager-ad57ae2f.js} +2 -2
- package/dist/esm/{kup-manager-e6854c15.js.map → kup-manager-ad57ae2f.js.map} +1 -1
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-photo-frame.entry.js +1 -1
- package/dist/esm/kup-planner.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +1 -1
- package/dist/esm/kup-txt.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-c22e720d.entry.js → p-0323ba49.entry.js} +2 -2
- package/dist/ketchup/{p-822300c4.entry.js → p-03fc7ed4.entry.js} +2 -2
- package/dist/ketchup/{p-fcce8e0d.entry.js → p-0a8e2aed.entry.js} +2 -2
- package/dist/ketchup/p-0ed77bdc.entry.js +2 -0
- package/dist/ketchup/p-0ed77bdc.entry.js.map +1 -0
- package/dist/ketchup/{p-d138aa2d.js → p-14ae3263.js} +2 -2
- package/dist/ketchup/{p-da7ae266.js → p-187a34ac.js} +2 -2
- package/dist/ketchup/{p-9466c7b2.entry.js → p-1d1e72b0.entry.js} +2 -2
- package/dist/ketchup/{p-08a8d90e.entry.js → p-200a934c.entry.js} +2 -2
- package/dist/ketchup/{p-5403ec7d.js → p-203ecb4b.js} +2 -2
- package/dist/ketchup/{p-ee8fc062.entry.js → p-2a48da13.entry.js} +2 -2
- package/dist/ketchup/{p-00696d0b.entry.js → p-3bf7ebd6.entry.js} +2 -2
- package/dist/ketchup/{p-c618c6fd.js → p-3de3a2e1.js} +2 -2
- package/dist/ketchup/{p-56ebec9a.entry.js → p-44212a84.entry.js} +2 -2
- package/dist/ketchup/{p-7fd94ab9.entry.js → p-4a53bf70.entry.js} +2 -2
- package/dist/ketchup/{p-d073f545.entry.js → p-53d922c0.entry.js} +2 -2
- package/dist/ketchup/{p-76f536fc.entry.js → p-5656b76e.entry.js} +2 -2
- package/dist/ketchup/{p-36f1f1f2.entry.js → p-5f5a0744.entry.js} +2 -2
- package/dist/ketchup/{p-befa2827.entry.js → p-601ba69c.entry.js} +2 -2
- package/dist/ketchup/{p-ff6a7fca.entry.js → p-616690ad.entry.js} +2 -2
- package/dist/ketchup/{p-e1cf074e.js → p-6926026f.js} +2 -2
- package/dist/ketchup/{p-e1cf074e.js.map → p-6926026f.js.map} +1 -1
- package/dist/ketchup/{p-3a0e74d7.entry.js → p-83e26dd2.entry.js} +2 -2
- package/dist/ketchup/{p-e3370565.js → p-8b3f0d60.js} +2 -2
- package/dist/ketchup/{p-c0aed6b3.entry.js → p-8e3ba60a.entry.js} +2 -2
- package/dist/ketchup/{p-582719d0.entry.js → p-9034e4ec.entry.js} +2 -2
- package/dist/ketchup/p-97036b0f.entry.js +2 -0
- package/dist/ketchup/{p-e3dd0ecb.entry.js.map → p-97036b0f.entry.js.map} +1 -1
- package/dist/ketchup/{p-46812f71.entry.js → p-a3432abd.entry.js} +2 -2
- package/dist/ketchup/{p-02d83afd.entry.js → p-a58f4062.entry.js} +2 -2
- package/dist/ketchup/{p-f9e43ad1.entry.js → p-ab11ccef.entry.js} +2 -2
- package/dist/ketchup/{p-0f194063.entry.js → p-b12e6523.entry.js} +2 -2
- package/dist/ketchup/{p-ba5d1b55.entry.js → p-c85c7a50.entry.js} +2 -2
- package/dist/ketchup/{p-834ad695.entry.js → p-d5a21513.entry.js} +2 -2
- package/dist/ketchup/{p-dfae63d8.entry.js → p-d917975b.entry.js} +2 -2
- package/dist/ketchup/{p-10cea33b.entry.js → p-def7cb8d.entry.js} +2 -2
- package/dist/ketchup/{p-d26f1d41.entry.js → p-f81b198f.entry.js} +2 -2
- package/dist/ketchup/{p-9b45f18d.entry.js → p-fcfdb44d.entry.js} +2 -2
- package/dist/ketchup/{p-4e8485bb.entry.js → p-fe103476.entry.js} +2 -2
- package/package.json +1 -1
- package/dist/ketchup/p-b20f10c2.entry.js +0 -2
- package/dist/ketchup/p-b20f10c2.entry.js.map +0 -1
- package/dist/ketchup/p-e3dd0ecb.entry.js +0 -2
- /package/dist/ketchup/{p-c22e720d.entry.js.map → p-0323ba49.entry.js.map} +0 -0
- /package/dist/ketchup/{p-822300c4.entry.js.map → p-03fc7ed4.entry.js.map} +0 -0
- /package/dist/ketchup/{p-fcce8e0d.entry.js.map → p-0a8e2aed.entry.js.map} +0 -0
- /package/dist/ketchup/{p-d138aa2d.js.map → p-14ae3263.js.map} +0 -0
- /package/dist/ketchup/{p-da7ae266.js.map → p-187a34ac.js.map} +0 -0
- /package/dist/ketchup/{p-9466c7b2.entry.js.map → p-1d1e72b0.entry.js.map} +0 -0
- /package/dist/ketchup/{p-08a8d90e.entry.js.map → p-200a934c.entry.js.map} +0 -0
- /package/dist/ketchup/{p-5403ec7d.js.map → p-203ecb4b.js.map} +0 -0
- /package/dist/ketchup/{p-ee8fc062.entry.js.map → p-2a48da13.entry.js.map} +0 -0
- /package/dist/ketchup/{p-00696d0b.entry.js.map → p-3bf7ebd6.entry.js.map} +0 -0
- /package/dist/ketchup/{p-c618c6fd.js.map → p-3de3a2e1.js.map} +0 -0
- /package/dist/ketchup/{p-56ebec9a.entry.js.map → p-44212a84.entry.js.map} +0 -0
- /package/dist/ketchup/{p-7fd94ab9.entry.js.map → p-4a53bf70.entry.js.map} +0 -0
- /package/dist/ketchup/{p-d073f545.entry.js.map → p-53d922c0.entry.js.map} +0 -0
- /package/dist/ketchup/{p-76f536fc.entry.js.map → p-5656b76e.entry.js.map} +0 -0
- /package/dist/ketchup/{p-36f1f1f2.entry.js.map → p-5f5a0744.entry.js.map} +0 -0
- /package/dist/ketchup/{p-befa2827.entry.js.map → p-601ba69c.entry.js.map} +0 -0
- /package/dist/ketchup/{p-ff6a7fca.entry.js.map → p-616690ad.entry.js.map} +0 -0
- /package/dist/ketchup/{p-3a0e74d7.entry.js.map → p-83e26dd2.entry.js.map} +0 -0
- /package/dist/ketchup/{p-e3370565.js.map → p-8b3f0d60.js.map} +0 -0
- /package/dist/ketchup/{p-c0aed6b3.entry.js.map → p-8e3ba60a.entry.js.map} +0 -0
- /package/dist/ketchup/{p-582719d0.entry.js.map → p-9034e4ec.entry.js.map} +0 -0
- /package/dist/ketchup/{p-46812f71.entry.js.map → p-a3432abd.entry.js.map} +0 -0
- /package/dist/ketchup/{p-02d83afd.entry.js.map → p-a58f4062.entry.js.map} +0 -0
- /package/dist/ketchup/{p-f9e43ad1.entry.js.map → p-ab11ccef.entry.js.map} +0 -0
- /package/dist/ketchup/{p-0f194063.entry.js.map → p-b12e6523.entry.js.map} +0 -0
- /package/dist/ketchup/{p-ba5d1b55.entry.js.map → p-c85c7a50.entry.js.map} +0 -0
- /package/dist/ketchup/{p-834ad695.entry.js.map → p-d5a21513.entry.js.map} +0 -0
- /package/dist/ketchup/{p-dfae63d8.entry.js.map → p-d917975b.entry.js.map} +0 -0
- /package/dist/ketchup/{p-10cea33b.entry.js.map → p-def7cb8d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-d26f1d41.entry.js.map → p-f81b198f.entry.js.map} +0 -0
- /package/dist/ketchup/{p-9b45f18d.entry.js.map → p-fcfdb44d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-4e8485bb.entry.js.map → p-fe103476.entry.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as registerInstance,c as createEvent,f as forceUpdate,h,H as Host,d as getElement}from"./p-d7c15b0e.js";import{k as kupManagerInstance,g as getProps,s as setProps}from"./p-
|
|
1
|
+
import{r as registerInstance,c as createEvent,f as forceUpdate,h,H as Host,d as getElement}from"./p-d7c15b0e.js";import{k as kupManagerInstance,g as getProps,s as setProps}from"./p-6926026f.js";import{c as componentWrapperId}from"./p-635bb4b3.js";import{e as getAugmentedNamespace,f as commonjsRequire,g as getDefaultExportFromCjs}from"./p-029c7cbe.js";var KupPdfProps;(function(t){t["pdfPath"]="This is the path to the PDF file."})(KupPdfProps||(KupPdfProps={}));var pdf={exports:{}};const _nodeResolve_empty={};const _nodeResolve_empty$1=Object.freeze({__proto__:null,default:_nodeResolve_empty});const require$$0=getAugmentedNamespace(_nodeResolve_empty$1);
|
|
2
2
|
/**
|
|
3
3
|
* @licstart The following is the entire license notice for the
|
|
4
4
|
* JavaScript code in this page
|
|
@@ -41,4 +41,4 @@ import{r as registerInstance,c as createEvent,f as forceUpdate,h,H as Host,d as
|
|
|
41
41
|
* @licend The above is the entire license notice for the
|
|
42
42
|
* JavaScript code in this page
|
|
43
43
|
*/(function(t,e){(function e(s,i){t.exports=s.pdfjsWorker=i()})(globalThis,(()=>(()=>{var t=[,(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.WorkerTask=e.WorkerMessageHandler=void 0;var i=s(2);var n=s(3);var r=s(4);var o=s(6);var a=s(10);var c=s(68);var l=s(73);var h=s(104);var u=s(105);var f=s(72);class d{constructor(t){this.name=t;this.terminated=false;this._capability=new i.PromiseCapability}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=true}ensureNotTerminated(){if(this.terminated){throw new Error("Worker task was terminated")}}}e.WorkerTask=d;class p{static setup(t,e){let s=false;t.on("test",(function(e){if(s){return}s=true;t.send("test",e instanceof Uint8Array)}));t.on("configure",(function(t){(0,i.setVerbosityLevel)(t.verbosity)}));t.on("GetDocRequest",(function(t){return p.createDocumentHandler(t,e)}))}static createDocumentHandler(t,e){let s;let p=false;let g=null;const m=new Set;const w=(0,i.getVerbosityLevel)();const{docId:b,apiVersion:y}=t;const A="3.11.174";if(y!==A){throw new Error(`The API version "${y}" does not match `+`the Worker version "${A}".`)}const v=[];for(const t in[]){v.push(t)}if(v.length){throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+v.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.")}const x=b+"_worker";let k=new h.MessageHandler(x,b,e);function S(){if(p){throw new Error("Worker was terminated")}}function M(t){m.add(t)}function C(t){t.finish();m.delete(t)}async function _(t){await s.ensureDoc("checkHeader");await s.ensureDoc("parseStartXRef");await s.ensureDoc("parse",[t]);await s.ensureDoc("checkFirstPage",[t]);await s.ensureDoc("checkLastPage",[t]);const e=await s.ensureDoc("isPureXfa");if(e){const t=new d("loadXfaFonts");M(t);await Promise.all([s.loadXfaFonts(k,t).catch((t=>{})).then((()=>C(t))),s.loadXfaImages()])}const[i,n]=await Promise.all([s.ensureDoc("numPages"),s.ensureDoc("fingerprints")]);const r=e?await s.ensureDoc("htmlForXfa"):null;return{numPages:i,fingerprints:n,htmlForXfa:r}}function I({data:t,password:e,disableAutoFetch:s,rangeChunkSize:r,length:a,docBaseUrl:c,enableXfa:l,evaluatorOptions:h}){const f={source:null,disableAutoFetch:s,docBaseUrl:c,docId:b,enableXfa:l,evaluatorOptions:h,handler:k,length:a,password:e,rangeChunkSize:r};const d=new i.PromiseCapability;let p;if(t){try{f.source=t;p=new o.LocalPdfManager(f);d.resolve(p)}catch(t){d.reject(t)}return d.promise}let m,w=[];try{m=new u.PDFWorkerStream(k)}catch(t){d.reject(t);return d.promise}const y=m.getFullReader();y.headersReady.then((function(){if(!y.isRangeSupported){return}f.source=m;f.length=y.contentLength;f.disableAutoFetch||=y.isStreamingSupported;p=new o.NetworkPdfManager(f);for(const t of w){p.sendProgressiveData(t)}w=[];d.resolve(p);g=null})).catch((function(t){d.reject(t);g=null}));let A=0;const v=function(){const t=(0,n.arrayBuffersToBytes)(w);if(a&&t.length!==a){(0,i.warn)("reported HTTP length is different from actual")}try{f.source=t;p=new o.LocalPdfManager(f);d.resolve(p)}catch(t){d.reject(t)}w=[]};new Promise((function(t,e){const s=function({value:t,done:i}){try{S();if(i){if(!p){v()}g=null;return}A+=t.byteLength;if(!y.isStreamingSupported){k.send("DocProgress",{loaded:A,total:Math.max(A,y.contentLength||0)})}if(p){p.sendProgressiveData(t)}else{w.push(t)}y.read().then(s,e)}catch(t){e(t)}};y.read().then(s,e)})).catch((function(t){d.reject(t);g=null}));g=function(t){m.cancelAllRequests(t)};return d.promise}function F(t){function e(t){S();k.send("GetDoc",{pdfInfo:t})}function r(t){S();if(t instanceof i.PasswordException){const e=new d(`PasswordException: response ${t.code}`);M(e);k.sendWithPromise("PasswordRequest",t).then((function({password:t}){C(e);s.updatePassword(t);o()})).catch((function(){C(e);k.send("DocException",t)}))}else if(t instanceof i.InvalidPDFException||t instanceof i.MissingPDFException||t instanceof i.UnexpectedResponseException||t instanceof i.UnknownErrorException){k.send("DocException",t)}else{k.send("DocException",new i.UnknownErrorException(t.message,t.toString()))}}function o(){S();_(false).then(e,(function(t){S();if(!(t instanceof n.XRefParseException)){r(t);return}s.requestLoadedStream().then((function(){S();_(true).then(e,r)}))}))}S();I(t).then((function(t){if(p){t.terminate(new i.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}s=t;s.requestLoadedStream(true).then((t=>{k.send("DataLoaded",{length:t.bytes.byteLength})}))})).then(o,r)}k.on("GetPage",(function(t){return s.getPage(t.pageIndex).then((function(t){return Promise.all([s.ensure(t,"rotate"),s.ensure(t,"ref"),s.ensure(t,"userUnit"),s.ensure(t,"view")]).then((function([t,e,s,i]){return{rotate:t,ref:e,userUnit:s,view:i}}))}))}));k.on("GetPageIndex",(function(t){const e=r.Ref.get(t.num,t.gen);return s.ensureCatalog("getPageIndex",[e])}));k.on("GetDestinations",(function(t){return s.ensureCatalog("destinations")}));k.on("GetDestination",(function(t){return s.ensureCatalog("getDestination",[t.id])}));k.on("GetPageLabels",(function(t){return s.ensureCatalog("pageLabels")}));k.on("GetPageLayout",(function(t){return s.ensureCatalog("pageLayout")}));k.on("GetPageMode",(function(t){return s.ensureCatalog("pageMode")}));k.on("GetViewerPreferences",(function(t){return s.ensureCatalog("viewerPreferences")}));k.on("GetOpenAction",(function(t){return s.ensureCatalog("openAction")}));k.on("GetAttachments",(function(t){return s.ensureCatalog("attachments")}));k.on("GetDocJSActions",(function(t){return s.ensureCatalog("jsActions")}));k.on("GetPageJSActions",(function({pageIndex:t}){return s.getPage(t).then((function(t){return s.ensure(t,"jsActions")}))}));k.on("GetOutline",(function(t){return s.ensureCatalog("documentOutline")}));k.on("GetOptionalContentConfig",(function(t){return s.ensureCatalog("optionalContentConfig")}));k.on("GetPermissions",(function(t){return s.ensureCatalog("permissions")}));k.on("GetMetadata",(function(t){return Promise.all([s.ensureDoc("documentInfo"),s.ensureCatalog("metadata")])}));k.on("GetMarkInfo",(function(t){return s.ensureCatalog("markInfo")}));k.on("GetData",(function(t){return s.requestLoadedStream().then((function(t){return t.bytes}))}));k.on("GetAnnotations",(function({pageIndex:t,intent:e}){return s.getPage(t).then((function(s){const i=new d(`GetAnnotations: page ${t}`);M(i);return s.getAnnotationsData(k,i,e).then((t=>{C(i);return t}),(t=>{C(i);throw t}))}))}));k.on("GetFieldObjects",(function(t){return s.ensureDoc("fieldObjects")}));k.on("HasJSActions",(function(t){return s.ensureDoc("hasJSActions")}));k.on("GetCalculationOrderIds",(function(t){return s.ensureDoc("calculationOrderIds")}));k.on("SaveDocument",(async function({isPureXfa:t,numPages:e,annotationStorage:o,filename:c}){const h=[s.requestLoadedStream(),s.ensureCatalog("acroForm"),s.ensureCatalog("acroFormRef"),s.ensureDoc("startXRef"),s.ensureDoc("xref"),s.ensureDoc("linearization"),s.ensureCatalog("structTreeRoot")];const u=[];const p=!t?(0,n.getNewAnnotationsMap)(o):null;const[g,m,w,b,y,A,v]=await Promise.all(h);const x=y.trailer.getRaw("Root")||null;let S;if(p){if(!v){if(await f.StructTreeRoot.canCreateStructureTree({catalogRef:x,pdfManager:s,newAnnotationsByPage:p})){S=null}}else if(await v.canUpdateStructTree({pdfManager:s,newAnnotationsByPage:p})){S=v}const t=a.AnnotationFactory.generateImages(o.values(),y,s.evaluatorOptions.isOffscreenCanvasSupported);const e=S===undefined?u:[];for(const[i,n]of p){e.push(s.getPage(i).then((e=>{const s=new d(`Save (editor): page ${i}`);return e.saveNewAnnotations(k,s,n,t).finally((function(){C(s)}))})))}if(S===null){u.push(Promise.all(e).then((async t=>{await f.StructTreeRoot.createStructureTree({newAnnotationsByPage:p,xref:y,catalogRef:x,pdfManager:s,newRefs:t});return t})))}else if(S){u.push(Promise.all(e).then((async t=>{await S.updateStructureTree({newAnnotationsByPage:p,pdfManager:s,newRefs:t});return t})))}}if(t){u.push(s.serializeXfaData(o))}else{for(let t=0;t<e;t++){u.push(s.getPage(t).then((function(e){const s=new d(`Save: page ${t}`);return e.save(k,s,o).finally((function(){C(s)}))})))}}const M=await Promise.all(u);let _=[];let I=null;if(t){I=M[0];if(!I){return g.bytes}}else{_=M.flat(2);if(_.length===0){return g.bytes}}const F=w&&m instanceof r.Dict&&_.some((t=>t.needAppearances));const O=m instanceof r.Dict&&m.get("XFA")||null;let E=null;let T=false;if(Array.isArray(O)){for(let t=0,e=O.length;t<e;t+=2){if(O[t]==="datasets"){E=O[t+1];T=true}}if(E===null){E=y.getNewTemporaryRef()}}else if(O){(0,i.warn)("Unsupported XFA type.")}let D=Object.create(null);if(y.trailer){const t=Object.create(null);const e=y.trailer.get("Info")||null;if(e instanceof r.Dict){e.forEach(((e,s)=>{if(typeof s==="string"){t[e]=(0,i.stringToPDFString)(s)}}))}D={rootRef:x,encryptRef:y.trailer.getRaw("Encrypt")||null,newRef:y.getNewTemporaryRef(),infoRef:y.trailer.getRaw("Info")||null,info:t,fileIds:y.trailer.get("ID")||null,startXRef:A?b:y.lastXRefStreamPos??b,filename:c}}return(0,l.incrementalUpdate)({originalData:g.bytes,xrefInfo:D,newRefs:_,xref:y,hasXfa:!!O,xfaDatasetsRef:E,hasXfaDatasetsEntry:T,needAppearances:F,acroFormRef:w,acroForm:m,xfaData:I}).finally((()=>{y.resetNewTemporaryRef()}))}));k.on("GetOperatorList",(function(t,e){const n=t.pageIndex;s.getPage(n).then((function(s){const r=new d(`GetOperatorList: page ${n}`);M(r);const o=w>=i.VerbosityLevel.INFOS?Date.now():0;s.getOperatorList({handler:k,sink:e,task:r,intent:t.intent,cacheKey:t.cacheKey,annotationStorage:t.annotationStorage}).then((function(t){C(r);if(o){(0,i.info)(`page=${n+1} - getOperatorList: time=`+`${Date.now()-o}ms, len=${t.length}`)}e.close()}),(function(t){C(r);if(r.terminated){return}e.error(t)}))}))}));k.on("GetTextContent",(function(t,e){const{pageIndex:n,includeMarkedContent:r,disableNormalization:o}=t;s.getPage(n).then((function(t){const s=new d("GetTextContent: page "+n);M(s);const a=w>=i.VerbosityLevel.INFOS?Date.now():0;t.extractTextContent({handler:k,task:s,sink:e,includeMarkedContent:r,disableNormalization:o}).then((function(){C(s);if(a){(0,i.info)(`page=${n+1} - getTextContent: time=`+`${Date.now()-a}ms`)}e.close()}),(function(t){C(s);if(s.terminated){return}e.error(t)}))}))}));k.on("GetStructTree",(function(t){return s.getPage(t.pageIndex).then((function(t){return s.ensure(t,"getStructTree")}))}));k.on("FontFallback",(function(t){return s.fontFallback(t.id,k)}));k.on("Cleanup",(function(t){return s.cleanup(true)}));k.on("Terminate",(function(t){p=true;const e=[];if(s){s.terminate(new i.AbortException("Worker was terminated."));const t=s.cleanup();e.push(t);s=null}else{(0,c.clearGlobalCaches)()}if(g){g(new i.AbortException("Worker was terminated."))}for(const t of m){e.push(t.finished);t.terminate()}return Promise.all(e).then((function(){k.destroy();k=null}))}));k.on("Ready",(function(e){F(t);t=null}));return x}static initializeFromPort(t){const e=new h.MessageHandler("worker","main",t);p.setup(e,t);e.send("ready",null)}}e.WorkerMessageHandler=p;function g(t){return typeof t.postMessage==="function"&&"onmessage"in t}if(typeof window==="undefined"&&!i.isNodeJS&&typeof self!=="undefined"&&g(self)){p.initializeFromPort(self)}},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.VerbosityLevel=e.Util=e.UnknownErrorException=e.UnexpectedResponseException=e.TextRenderingMode=e.RenderingIntentFlag=e.PromiseCapability=e.PermissionFlag=e.PasswordResponses=e.PasswordException=e.PageActionEventType=e.OPS=e.MissingPDFException=e.MAX_IMAGE_SIZE_TO_CACHE=e.LINE_FACTOR=e.LINE_DESCENT_FACTOR=e.InvalidPDFException=e.ImageKind=e.IDENTITY_MATRIX=e.FormatError=e.FeatureTest=e.FONT_IDENTITY_MATRIX=e.DocumentActionEventType=e.CMapCompressionType=e.BaseException=e.BASELINE_FACTOR=e.AnnotationType=e.AnnotationReplyType=e.AnnotationPrefix=e.AnnotationMode=e.AnnotationFlag=e.AnnotationFieldFlag=e.AnnotationEditorType=e.AnnotationEditorPrefix=e.AnnotationEditorParamsType=e.AnnotationBorderStyleType=e.AnnotationActionEventType=e.AbortException=void 0;e.assert=R;e.bytesToString=z;e.createValidAbsoluteUrl=L;e.getModificationDate=lt;e.getUuid=pt;e.getVerbosityLevel=E;e.info=T;e.isArrayBuffer=at;e.isArrayEqual=ct;e.isNodeJS=void 0;e.normalizeUnicode=dt;e.objectFromMap=Y;e.objectSize=J;e.setVerbosityLevel=O;e.shadow=B;e.string32=K;e.stringToBytes=V;e.stringToPDFString=nt;e.stringToUTF8String=rt;e.unreachable=P;e.utf8StringToString=ot;e.warn=D;const s=typeof process==="object"&&process+""==="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");e.isNodeJS=s;const i=[1,0,0,1,0,0];e.IDENTITY_MATRIX=i;const n=[.001,0,0,.001,0,0];e.FONT_IDENTITY_MATRIX=n;const r=1e7;e.MAX_IMAGE_SIZE_TO_CACHE=r;const o=1.35;e.LINE_FACTOR=o;const a=.35;e.LINE_DESCENT_FACTOR=a;const c=a/o;e.BASELINE_FACTOR=c;const l={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};e.RenderingIntentFlag=l;const h={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};e.AnnotationMode=h;const u="pdfjs_internal_editor_";e.AnnotationEditorPrefix=u;const f={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15};e.AnnotationEditorType=f;const d={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23};e.AnnotationEditorParamsType=d;const p={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};e.PermissionFlag=p;const g={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};e.TextRenderingMode=g;const m={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};e.ImageKind=m;const w={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};e.AnnotationType=w;const b={GROUP:"Group",REPLY:"R"};e.AnnotationReplyType=b;const y={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};e.AnnotationFlag=y;const A={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};e.AnnotationFieldFlag=A;const v={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};e.AnnotationBorderStyleType=v;const x={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};e.AnnotationActionEventType=x;const k={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};e.DocumentActionEventType=k;const S={O:"PageOpen",C:"PageClose"};e.PageActionEventType=S;const M={ERRORS:0,WARNINGS:1,INFOS:5};e.VerbosityLevel=M;const C={NONE:0,BINARY:1};e.CMapCompressionType=C;const _={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};e.OPS=_;const I={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};e.PasswordResponses=I;let F=M.WARNINGS;function O(t){if(Number.isInteger(t)){F=t}}function E(){return F}function T(t){if(F>=M.INFOS){console.log(`Info: ${t}`)}}function D(t){if(F>=M.WARNINGS){console.log(`Warning: ${t}`)}}function P(t){throw new Error(t)}function R(t,e){if(!t){P(e)}}function N(t){switch(t?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return true;default:return false}}function L(t,e=null,s=null){if(!t){return null}try{if(s&&typeof t==="string"){if(s.addDefaultProtocol&&t.startsWith("www.")){const e=t.match(/\./g);if(e?.length>=2){t=`http://${t}`}}if(s.tryConvertEncoding){try{t=rt(t)}catch{}}}const i=e?new URL(t,e):new URL(t);if(N(i)){return i}}catch{}return null}function B(t,e,s,i=false){Object.defineProperty(t,e,{value:s,enumerable:!i,configurable:true,writable:false});return s}const $=function t(){function e(t,s){if(this.constructor===e){P("Cannot initialize BaseException.")}this.message=t;this.name=s}e.prototype=new Error;e.constructor=e;return e}();e.BaseException=$;class U extends ${constructor(t,e){super(t,"PasswordException");this.code=e}}e.PasswordException=U;class j extends ${constructor(t,e){super(t,"UnknownErrorException");this.details=e}}e.UnknownErrorException=j;class H extends ${constructor(t){super(t,"InvalidPDFException")}}e.InvalidPDFException=H;class G extends ${constructor(t){super(t,"MissingPDFException")}}e.MissingPDFException=G;class q extends ${constructor(t,e){super(t,"UnexpectedResponseException");this.status=e}}e.UnexpectedResponseException=q;class X extends ${constructor(t){super(t,"FormatError")}}e.FormatError=X;class W extends ${constructor(t){super(t,"AbortException")}}e.AbortException=W;function z(t){if(typeof t!=="object"||t?.length===undefined){P("Invalid argument for bytesToString")}const e=t.length;const s=8192;if(e<s){return String.fromCharCode.apply(null,t)}const i=[];for(let n=0;n<e;n+=s){const r=Math.min(n+s,e);const o=t.subarray(n,r);i.push(String.fromCharCode.apply(null,o))}return i.join("")}function V(t){if(typeof t!=="string"){P("Invalid argument for stringToBytes")}const e=t.length;const s=new Uint8Array(e);for(let i=0;i<e;++i){s[i]=t.charCodeAt(i)&255}return s}function K(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,t&255)}function J(t){return Object.keys(t).length}function Y(t){const e=Object.create(null);for(const[s,i]of t){e[s]=i}return e}function Q(){const t=new Uint8Array(4);t[0]=1;const e=new Uint32Array(t.buffer,0,1);return e[0]===1}function Z(){try{new Function("");return true}catch{return false}}class tt{static get isLittleEndian(){return B(this,"isLittleEndian",Q())}static get isEvalSupported(){return B(this,"isEvalSupported",Z())}static get isOffscreenCanvasSupported(){return B(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas!=="undefined")}static get platform(){if(typeof navigator==="undefined"){return B(this,"platform",{isWin:false,isMac:false})}return B(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){return B(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}}e.FeatureTest=tt;const et=[...Array(256).keys()].map((t=>t.toString(16).padStart(2,"0")));class st{static makeHexColor(t,e,s){return`#${et[t]}${et[e]}${et[s]}`}static scaleMinMax(t,e){let s;if(t[0]){if(t[0]<0){s=e[0];e[0]=e[1];e[1]=s}e[0]*=t[0];e[1]*=t[0];if(t[3]<0){s=e[2];e[2]=e[3];e[3]=s}e[2]*=t[3];e[3]*=t[3]}else{s=e[0];e[0]=e[2];e[2]=s;s=e[1];e[1]=e[3];e[3]=s;if(t[1]<0){s=e[2];e[2]=e[3];e[3]=s}e[2]*=t[1];e[3]*=t[1];if(t[2]<0){s=e[0];e[0]=e[1];e[1]=s}e[0]*=t[2];e[1]*=t[2]}e[0]+=t[4];e[1]+=t[4];e[2]+=t[5];e[3]+=t[5]}static transform(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}static applyTransform(t,e){const s=t[0]*e[0]+t[1]*e[2]+e[4];const i=t[0]*e[1]+t[1]*e[3]+e[5];return[s,i]}static applyInverseTransform(t,e){const s=e[0]*e[3]-e[1]*e[2];const i=(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/s;const n=(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/s;return[i,n]}static getAxialAlignedBoundingBox(t,e){const s=this.applyTransform(t,e);const i=this.applyTransform(t.slice(2,4),e);const n=this.applyTransform([t[0],t[3]],e);const r=this.applyTransform([t[2],t[1]],e);return[Math.min(s[0],i[0],n[0],r[0]),Math.min(s[1],i[1],n[1],r[1]),Math.max(s[0],i[0],n[0],r[0]),Math.max(s[1],i[1],n[1],r[1])]}static inverseTransform(t){const e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}static singularValueDecompose2dScale(t){const e=[t[0],t[2],t[1],t[3]];const s=t[0]*e[0]+t[1]*e[2];const i=t[0]*e[1]+t[1]*e[3];const n=t[2]*e[0]+t[3]*e[2];const r=t[2]*e[1]+t[3]*e[3];const o=(s+r)/2;const a=Math.sqrt((s+r)**2-4*(s*r-n*i))/2;const c=o+a||1;const l=o-a||1;return[Math.sqrt(c),Math.sqrt(l)]}static normalizeRect(t){const e=t.slice(0);if(t[0]>t[2]){e[0]=t[2];e[2]=t[0]}if(t[1]>t[3]){e[1]=t[3];e[3]=t[1]}return e}static intersect(t,e){const s=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2]));const i=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));if(s>i){return null}const n=Math.max(Math.min(t[1],t[3]),Math.min(e[1],e[3]));const r=Math.min(Math.max(t[1],t[3]),Math.max(e[1],e[3]));if(n>r){return null}return[s,n,i,r]}static bezierBoundingBox(t,e,s,i,n,r,o,a){const c=[],l=[[],[]];let h,u,f,d,p,g,m,w;for(let l=0;l<2;++l){if(l===0){u=6*t-12*s+6*n;h=-3*t+9*s-9*n+3*o;f=3*s-3*t}else{u=6*e-12*i+6*r;h=-3*e+9*i-9*r+3*a;f=3*i-3*e}if(Math.abs(h)<1e-12){if(Math.abs(u)<1e-12){continue}d=-f/u;if(0<d&&d<1){c.push(d)}continue}m=u*u-4*f*h;w=Math.sqrt(m);if(m<0){continue}p=(-u+w)/(2*h);if(0<p&&p<1){c.push(p)}g=(-u-w)/(2*h);if(0<g&&g<1){c.push(g)}}let b=c.length,y;const A=b;while(b--){d=c[b];y=1-d;l[0][b]=y*y*y*t+3*y*y*d*s+3*y*d*d*n+d*d*d*o;l[1][b]=y*y*y*e+3*y*y*d*i+3*y*d*d*r+d*d*d*a}l[0][A]=t;l[1][A]=e;l[0][A+1]=o;l[1][A+1]=a;l[0].length=l[1].length=A+2;return[Math.min(...l[0]),Math.min(...l[1]),Math.max(...l[0]),Math.max(...l[1])]}}e.Util=st;const it=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function nt(t){if(t[0]>="ï"){let e;if(t[0]==="þ"&&t[1]==="ÿ"){e="utf-16be"}else if(t[0]==="ÿ"&&t[1]==="þ"){e="utf-16le"}else if(t[0]==="ï"&&t[1]==="»"&&t[2]==="¿"){e="utf-8"}if(e){try{const s=new TextDecoder(e,{fatal:true});const i=V(t);return s.decode(i)}catch(t){D(`stringToPDFString: "${t}".`)}}}const e=[];for(let s=0,i=t.length;s<i;s++){const i=it[t.charCodeAt(s)];e.push(i?String.fromCharCode(i):t.charAt(s))}return e.join("")}function rt(t){return decodeURIComponent(escape(t))}function ot(t){return unescape(encodeURIComponent(t))}function at(t){return typeof t==="object"&&t?.byteLength!==undefined}function ct(t,e){if(t.length!==e.length){return false}for(let s=0,i=t.length;s<i;s++){if(t[s]!==e[s]){return false}}return true}function lt(t=new Date){const e=[t.getUTCFullYear().toString(),(t.getUTCMonth()+1).toString().padStart(2,"0"),t.getUTCDate().toString().padStart(2,"0"),t.getUTCHours().toString().padStart(2,"0"),t.getUTCMinutes().toString().padStart(2,"0"),t.getUTCSeconds().toString().padStart(2,"0")];return e.join("")}class ht{#t=false;constructor(){this.promise=new Promise(((t,e)=>{this.resolve=e=>{this.#t=true;t(e)};this.reject=t=>{this.#t=true;e(t)}}))}get settled(){return this.#t}}e.PromiseCapability=ht;let ut=null;let ft=null;function dt(t){if(!ut){ut=/([\u00a0\u00b5\u037e\u0eb3\u2000-\u200a\u202f\u2126\ufb00-\ufb04\ufb06\ufb20-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufba1\ufba4-\ufba9\ufbae-\ufbb1\ufbd3-\ufbdc\ufbde-\ufbe7\ufbea-\ufbf8\ufbfc-\ufbfd\ufc00-\ufc5d\ufc64-\ufcf1\ufcf5-\ufd3d\ufd88\ufdf4\ufdfa-\ufdfb\ufe71\ufe77\ufe79\ufe7b\ufe7d]+)|(\ufb05+)/gu;ft=new Map([["ſt","ſt"]])}return t.replaceAll(ut,((t,e,s)=>e?e.normalize("NFKC"):ft.get(s)))}function pt(){if(typeof crypto!=="undefined"&&typeof crypto?.randomUUID==="function"){return crypto.randomUUID()}const t=new Uint8Array(32);if(typeof crypto!=="undefined"&&typeof crypto?.getRandomValues==="function"){crypto.getRandomValues(t)}else{for(let e=0;e<32;e++){t[e]=Math.floor(Math.random()*255)}}return z(t)}const gt="pdfjs_internal_id_";e.AnnotationPrefix=gt},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.XRefParseException=e.XRefEntryException=e.ParserEOFException=e.PDF_VERSION_REGEXP=e.MissingDataException=void 0;e.arrayBuffersToBytes=f;e.collectActions=M;e.encodeToXmlString=_;e.escapePDFName=x;e.escapeString=k;e.getInheritableProperty=d;e.getLookupTableFactory=a;e.getNewAnnotationsMap=T;e.getRotationMatrix=N;e.isAscii=D;e.isWhiteSpace=A;e.log2=m;e.numberToString=E;e.parseXFAPath=v;e.readInt8=w;e.readUint16=b;e.readUint32=y;e.recoverJsURL=O;e.stringToUTF16HexString=P;e.stringToUTF16String=R;e.toRomanNumerals=g;e.validateCSSFont=F;e.validateFontName=I;var i=s(2);var n=s(4);var r=s(5);const o=/^[1-9]\.\d$/;e.PDF_VERSION_REGEXP=o;function a(t){let e;return function(){if(t){e=Object.create(null);t(e);t=null}return e}}class c extends i.BaseException{constructor(t,e){super(`Missing data [${t}, ${e})`,"MissingDataException");this.begin=t;this.end=e}}e.MissingDataException=c;class l extends i.BaseException{constructor(t){super(t,"ParserEOFException")}}e.ParserEOFException=l;class h extends i.BaseException{constructor(t){super(t,"XRefEntryException")}}e.XRefEntryException=h;class u extends i.BaseException{constructor(t){super(t,"XRefParseException")}}e.XRefParseException=u;function f(t){const e=t.length;if(e===0){return new Uint8Array(0)}if(e===1){return new Uint8Array(t[0])}let s=0;for(let i=0;i<e;i++){s+=t[i].byteLength}const i=new Uint8Array(s);let n=0;for(let s=0;s<e;s++){const e=new Uint8Array(t[s]);i.set(e,n);n+=e.byteLength}return i}function d({dict:t,key:e,getArray:s=false,stopWhenFound:i=true}){let r;const o=new n.RefSet;while(t instanceof n.Dict&&!(t.objId&&o.has(t.objId))){if(t.objId){o.put(t.objId)}const n=s?t.getArray(e):t.get(e);if(n!==undefined){if(i){return n}(r||=[]).push(n)}t=t.get("Parent")}return r}const p=["","C","CC","CCC","CD","D","DC","DCC","DCCC","CM","","X","XX","XXX","XL","L","LX","LXX","LXXX","XC","","I","II","III","IV","V","VI","VII","VIII","IX"];function g(t,e=false){(0,i.assert)(Number.isInteger(t)&&t>0,"The number should be a positive integer.");const s=[];let n;while(t>=1e3){t-=1e3;s.push("M")}n=t/100|0;t%=100;s.push(p[n]);n=t/10|0;t%=10;s.push(p[10+n]);s.push(p[20+t]);const r=s.join("");return e?r.toLowerCase():r}function m(t){if(t<=0){return 0}return Math.ceil(Math.log2(t))}function w(t,e){return t[e]<<24>>24}function b(t,e){return t[e]<<8|t[e+1]}function y(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function A(t){return t===32||t===9||t===13||t===10}function v(t){const e=/(.+)\[(\d+)\]$/;return t.split(".").map((t=>{const s=t.match(e);if(s){return{name:s[1],pos:parseInt(s[2],10)}}return{name:t,pos:0}}))}function x(t){const e=[];let s=0;for(let i=0,n=t.length;i<n;i++){const n=t.charCodeAt(i);if(n<33||n>126||n===35||n===40||n===41||n===60||n===62||n===91||n===93||n===123||n===125||n===47||n===37){if(s<i){e.push(t.substring(s,i))}e.push(`#${n.toString(16)}`);s=i+1}}if(e.length===0){return t}if(s<t.length){e.push(t.substring(s,t.length))}return e.join("")}function k(t){return t.replaceAll(/([()\\\n\r])/g,(t=>{if(t==="\n"){return"\\n"}else if(t==="\r"){return"\\r"}return`\\${t}`}))}function S(t,e,s,o){if(!t){return}let a=null;if(t instanceof n.Ref){if(o.has(t)){return}a=t;o.put(a);t=e.fetch(t)}if(Array.isArray(t)){for(const i of t){S(i,e,s,o)}}else if(t instanceof n.Dict){if((0,n.isName)(t.get("S"),"JavaScript")){const e=t.get("JS");let n;if(e instanceof r.BaseStream){n=e.getString()}else if(typeof e==="string"){n=e}n&&=(0,i.stringToPDFString)(n).replaceAll("\0","");if(n){s.push(n)}}S(t.getRaw("Next"),e,s,o)}if(a){o.remove(a)}}function M(t,e,s){const r=Object.create(null);const o=d({dict:e,key:"AA",stopWhenFound:false});if(o){for(let e=o.length-1;e>=0;e--){const i=o[e];if(!(i instanceof n.Dict)){continue}for(const e of i.getKeys()){const o=s[e];if(!o){continue}const a=i.getRaw(e);const c=new n.RefSet;const l=[];S(a,t,l,c);if(l.length>0){r[o]=l}}}}if(e.has("A")){const s=e.get("A");const i=new n.RefSet;const o=[];S(s,t,o,i);if(o.length>0){r.Action=o}}return(0,i.objectSize)(r)>0?r:null}const C={60:"<",62:">",38:"&",34:""",39:"'"};function _(t){const e=[];let s=0;for(let i=0,n=t.length;i<n;i++){const n=t.codePointAt(i);if(32<=n&&n<=126){const r=C[n];if(r){if(s<i){e.push(t.substring(s,i))}e.push(r);s=i+1}}else{if(s<i){e.push(t.substring(s,i))}e.push(`&#x${n.toString(16).toUpperCase()};`);if(n>55295&&(n<57344||n>65533)){i++}s=i+1}}if(e.length===0){return t}if(s<t.length){e.push(t.substring(s,t.length))}return e.join("")}function I(t,e=false){const s=/^("|').*("|')$/.exec(t);if(s&&s[1]===s[2]){const n=new RegExp(`[^\\\\]${s[1]}`);if(n.test(t.slice(1,-1))){if(e){(0,i.warn)(`FontFamily contains unescaped ${s[1]}: ${t}.`)}return false}}else{for(const s of t.split(/[ \t]+/)){if(/^(\d|(-(\d|-)))/.test(s)||!/^[\w-\\]+$/.test(s)){if(e){(0,i.warn)(`FontFamily contains invalid <custom-ident>: ${t}.`)}return false}}}return true}function F(t){const e="14";const s="400";const i=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]);const{fontFamily:n,fontWeight:r,italicAngle:o}=t;if(!I(n,true)){return false}const a=r?r.toString():"";t.fontWeight=i.has(a)?a:s;const c=parseFloat(o);t.italicAngle=isNaN(c)||c<-90||c>90?e:o.toString();return true}function O(t){const e=["app.launchURL","window.open","xfa.host.gotoURL"];const s=new RegExp("^\\s*("+e.join("|").replaceAll(".","\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i");const i=s.exec(t);if(i?.[2]){const t=i[2];let e=false;if(i[3]==="true"&&i[1]==="app.launchURL"){e=true}return{url:t,newWindow:e}}return null}function E(t){if(Number.isInteger(t)){return t.toString()}const e=Math.round(t*100);if(e%100===0){return(e/100).toString()}if(e%10===0){return t.toFixed(1)}return t.toFixed(2)}function T(t){if(!t){return null}const e=new Map;for(const[s,n]of t){if(!s.startsWith(i.AnnotationEditorPrefix)){continue}let t=e.get(n.pageIndex);if(!t){t=[];e.set(n.pageIndex,t)}t.push(n)}return e.size>0?e:null}function D(t){return/^[\x00-\x7F]*$/.test(t)}function P(t){const e=[];for(let s=0,i=t.length;s<i;s++){const i=t.charCodeAt(s);e.push((i>>8&255).toString(16).padStart(2,"0"),(i&255).toString(16).padStart(2,"0"))}return e.join("")}function R(t,e=false){const s=[];if(e){s.push("þÿ")}for(let e=0,i=t.length;e<i;e++){const i=t.charCodeAt(e);s.push(String.fromCharCode(i>>8&255),String.fromCharCode(i&255))}return s.join("")}function N(t,e,s){switch(t){case 90:return[0,1,-1,0,e,0];case 180:return[-1,0,0,-1,e,s];case 270:return[0,-1,1,0,0,s];default:throw new Error("Invalid rotation")}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.RefSetCache=e.RefSet=e.Ref=e.Name=e.EOF=e.Dict=e.Cmd=e.CIRCULAR_REF=void 0;e.clearPrimitiveCaches=l;e.isCmd=b;e.isDict=y;e.isName=w;e.isRefsEqual=A;var i=s(2);const n=Symbol("CIRCULAR_REF");e.CIRCULAR_REF=n;const r=Symbol("EOF");e.EOF=r;let o=Object.create(null);let a=Object.create(null);let c=Object.create(null);function l(){o=Object.create(null);a=Object.create(null);c=Object.create(null)}class h{constructor(t){this.name=t}static get(t){return a[t]||=new h(t)}}e.Name=h;class u{constructor(t){this.cmd=t}static get(t){return o[t]||=new u(t)}}e.Cmd=u;const f=function t(){return f};class d{constructor(t=null){this._map=Object.create(null);this.xref=t;this.objId=null;this.suppressEncryption=false;this.__nonSerializable__=f}assignXref(t){this.xref=t}get size(){return Object.keys(this._map).length}get(t,e,s){let i=this._map[t];if(i===undefined&&e!==undefined){i=this._map[e];if(i===undefined&&s!==undefined){i=this._map[s]}}if(i instanceof p&&this.xref){return this.xref.fetch(i,this.suppressEncryption)}return i}async getAsync(t,e,s){let i=this._map[t];if(i===undefined&&e!==undefined){i=this._map[e];if(i===undefined&&s!==undefined){i=this._map[s]}}if(i instanceof p&&this.xref){return this.xref.fetchAsync(i,this.suppressEncryption)}return i}getArray(t,e,s){let i=this._map[t];if(i===undefined&&e!==undefined){i=this._map[e];if(i===undefined&&s!==undefined){i=this._map[s]}}if(i instanceof p&&this.xref){i=this.xref.fetch(i,this.suppressEncryption)}if(Array.isArray(i)){i=i.slice();for(let t=0,e=i.length;t<e;t++){if(i[t]instanceof p&&this.xref){i[t]=this.xref.fetch(i[t],this.suppressEncryption)}}}return i}getRaw(t){return this._map[t]}getKeys(){return Object.keys(this._map)}getRawValues(){return Object.values(this._map)}set(t,e){this._map[t]=e}has(t){return this._map[t]!==undefined}forEach(t){for(const e in this._map){t(e,this.get(e))}}static get empty(){const t=new d(null);t.set=(t,e)=>{(0,i.unreachable)("Should not call `set` on the empty dictionary.")};return(0,i.shadow)(this,"empty",t)}static merge({xref:t,dictArray:e,mergeSubDicts:s=false}){const i=new d(t),n=new Map;for(const t of e){if(!(t instanceof d)){continue}for(const[e,i]of Object.entries(t._map)){let t=n.get(e);if(t===undefined){t=[];n.set(e,t)}else if(!s||!(i instanceof d)){continue}t.push(i)}}for(const[e,s]of n){if(s.length===1||!(s[0]instanceof d)){i._map[e]=s[0];continue}const n=new d(t);for(const t of s){for(const[e,s]of Object.entries(t._map)){if(n._map[e]===undefined){n._map[e]=s}}}if(n.size>0){i._map[e]=n}}n.clear();return i.size>0?i:d.empty}clone(){const t=new d(this.xref);for(const e of this.getKeys()){t.set(e,this.getRaw(e))}return t}}e.Dict=d;class p{constructor(t,e){this.num=t;this.gen=e}toString(){if(this.gen===0){return`${this.num}R`}return`${this.num}R${this.gen}`}static fromString(t){const e=c[t];if(e){return e}const s=/^(\d+)R(\d*)$/.exec(t);if(!s||s[1]==="0"){return null}return c[t]=new p(parseInt(s[1]),!s[2]?0:parseInt(s[2]))}static get(t,e){const s=e===0?`${t}R`:`${t}R${e}`;return c[s]||=new p(t,e)}}e.Ref=p;class g{constructor(t=null){this._set=new Set(t?._set)}has(t){return this._set.has(t.toString())}put(t){this._set.add(t.toString())}remove(t){this._set.delete(t.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}e.RefSet=g;class m{constructor(){this._map=new Map}get size(){return this._map.size}get(t){return this._map.get(t.toString())}has(t){return this._map.has(t.toString())}put(t,e){this._map.set(t.toString(),e)}putAlias(t,e){this._map.set(t.toString(),this.get(e))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}}e.RefSetCache=m;function w(t,e){return t instanceof h&&(e===undefined||t.name===e)}function b(t,e){return t instanceof u&&(e===undefined||t.cmd===e)}function y(t,e){return t instanceof d&&(e===undefined||w(t.get("Type"),e))}function A(t,e){return t.num===e.num&&t.gen===e.gen}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.BaseStream=void 0;var i=s(2);class n{constructor(){if(this.constructor===n){(0,i.unreachable)("Cannot initialize BaseStream.")}}get length(){(0,i.unreachable)("Abstract getter `length` accessed")}get isEmpty(){(0,i.unreachable)("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return(0,i.shadow)(this,"isDataLoaded",true)}getByte(){(0,i.unreachable)("Abstract method `getByte` called")}getBytes(t){(0,i.unreachable)("Abstract method `getBytes` called")}peekByte(){const t=this.getByte();if(t!==-1){this.pos--}return t}peekBytes(t){const e=this.getBytes(t);this.pos-=e.length;return e}getUint16(){const t=this.getByte();const e=this.getByte();if(t===-1||e===-1){return-1}return(t<<8)+e}getInt32(){const t=this.getByte();const e=this.getByte();const s=this.getByte();const i=this.getByte();return(t<<24)+(e<<16)+(s<<8)+i}getByteRange(t,e){(0,i.unreachable)("Abstract method `getByteRange` called")}getString(t){return(0,i.bytesToString)(this.getBytes(t))}skip(t){this.pos+=t||1}reset(){(0,i.unreachable)("Abstract method `reset` called")}moveStart(){(0,i.unreachable)("Abstract method `moveStart` called")}makeSubStream(t,e,s=null){(0,i.unreachable)("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}e.BaseStream=n},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.NetworkPdfManager=e.LocalPdfManager=void 0;var i=s(2);var n=s(7);var r=s(3);var o=s(9);var a=s(8);function c(t){if(t){const e=(0,i.createValidAbsoluteUrl)(t);if(e){return e.href}(0,i.warn)(`Invalid absolute docBaseUrl: "${t}".`)}return null}class l{constructor(t){if(this.constructor===l){(0,i.unreachable)("Cannot initialize BasePdfManager.")}this._docBaseUrl=c(t.docBaseUrl);this._docId=t.docId;this._password=t.password;this.enableXfa=t.enableXfa;t.evaluatorOptions.isOffscreenCanvasSupported&&=i.FeatureTest.isOffscreenCanvasSupported;this.evaluatorOptions=t.evaluatorOptions}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){return this._docBaseUrl}get catalog(){return this.pdfDocument.catalog}ensureDoc(t,e){return this.ensure(this.pdfDocument,t,e)}ensureXRef(t,e){return this.ensure(this.pdfDocument.xref,t,e)}ensureCatalog(t,e){return this.ensure(this.pdfDocument.catalog,t,e)}getPage(t){return this.pdfDocument.getPage(t)}fontFallback(t,e){return this.pdfDocument.fontFallback(t,e)}loadXfaFonts(t,e){return this.pdfDocument.loadXfaFonts(t,e)}loadXfaImages(){return this.pdfDocument.loadXfaImages()}serializeXfaData(t){return this.pdfDocument.serializeXfaData(t)}cleanup(t=false){return this.pdfDocument.cleanup(t)}async ensure(t,e,s){(0,i.unreachable)("Abstract method `ensure` called")}requestRange(t,e){(0,i.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(t=false){(0,i.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(t){(0,i.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(t){this._password=t}terminate(t){(0,i.unreachable)("Abstract method `terminate` called")}}class h extends l{constructor(t){super(t);const e=new a.Stream(t.source);this.pdfDocument=new o.PDFDocument(this,e);this._loadedStreamPromise=Promise.resolve(e)}async ensure(t,e,s){const i=t[e];if(typeof i==="function"){return i.apply(t,s)}return i}requestRange(t,e){return Promise.resolve()}requestLoadedStream(t=false){return this._loadedStreamPromise}terminate(t){}}e.LocalPdfManager=h;class u extends l{constructor(t){super(t);this.streamManager=new n.ChunkedStreamManager(t.source,{msgHandler:t.handler,length:t.length,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize});this.pdfDocument=new o.PDFDocument(this,this.streamManager.getStream())}async ensure(t,e,s){try{const i=t[e];if(typeof i==="function"){return i.apply(t,s)}return i}catch(i){if(!(i instanceof r.MissingDataException)){throw i}await this.requestRange(i.begin,i.end);return this.ensure(t,e,s)}}requestRange(t,e){return this.streamManager.requestRange(t,e)}requestLoadedStream(t=false){return this.streamManager.requestAllChunks(t)}sendProgressiveData(t){this.streamManager.onReceiveData({chunk:t})}terminate(t){this.streamManager.abort(t)}}e.NetworkPdfManager=u},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.ChunkedStreamManager=e.ChunkedStream=void 0;var i=s(3);var n=s(2);var r=s(8);class o extends r.Stream{constructor(t,e,s){super(new Uint8Array(t),0,t,null);this.chunkSize=e;this._loadedChunks=new Set;this.numChunks=Math.ceil(t/e);this.manager=s;this.progressiveDataLength=0;this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){const t=[];for(let e=0,s=this.numChunks;e<s;++e){if(!this._loadedChunks.has(e)){t.push(e)}}return t}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(t,e){const s=this.chunkSize;if(t%s!==0){throw new Error(`Bad begin offset: ${t}`)}const i=t+e.byteLength;if(i%s!==0&&i!==this.bytes.length){throw new Error(`Bad end offset: ${i}`)}this.bytes.set(new Uint8Array(e),t);const n=Math.floor(t/s);const r=Math.floor((i-1)/s)+1;for(let t=n;t<r;++t){this._loadedChunks.add(t)}}onReceiveProgressiveData(t){let e=this.progressiveDataLength;const s=Math.floor(e/this.chunkSize);this.bytes.set(new Uint8Array(t),e);e+=t.byteLength;this.progressiveDataLength=e;const i=e>=this.end?this.numChunks:Math.floor(e/this.chunkSize);for(let t=s;t<i;++t){this._loadedChunks.add(t)}}ensureByte(t){if(t<this.progressiveDataLength){return}const e=Math.floor(t/this.chunkSize);if(e>this.numChunks){return}if(e===this.lastSuccessfulEnsureByteChunk){return}if(!this._loadedChunks.has(e)){throw new i.MissingDataException(t,t+1)}this.lastSuccessfulEnsureByteChunk=e}ensureRange(t,e){if(t>=e){return}if(e<=this.progressiveDataLength){return}const s=Math.floor(t/this.chunkSize);if(s>this.numChunks){return}const n=Math.min(Math.floor((e-1)/this.chunkSize)+1,this.numChunks);for(let r=s;r<n;++r){if(!this._loadedChunks.has(r)){throw new i.MissingDataException(t,e)}}}nextEmptyChunk(t){const e=this.numChunks;for(let s=0;s<e;++s){const i=(t+s)%e;if(!this._loadedChunks.has(i)){return i}}return null}hasChunk(t){return this._loadedChunks.has(t)}getByte(){const t=this.pos;if(t>=this.end){return-1}if(t>=this.progressiveDataLength){this.ensureByte(t)}return this.bytes[this.pos++]}getBytes(t){const e=this.bytes;const s=this.pos;const i=this.end;if(!t){if(i>this.progressiveDataLength){this.ensureRange(s,i)}return e.subarray(s,i)}let n=s+t;if(n>i){n=i}if(n>this.progressiveDataLength){this.ensureRange(s,n)}this.pos=n;return e.subarray(s,n)}getByteRange(t,e){if(t<0){t=0}if(e>this.end){e=this.end}if(e>this.progressiveDataLength){this.ensureRange(t,e)}return this.bytes.subarray(t,e)}makeSubStream(t,e,s=null){if(e){if(t+e>this.progressiveDataLength){this.ensureRange(t,t+e)}}else if(t>=this.progressiveDataLength){this.ensureByte(t)}function i(){}i.prototype=Object.create(this);i.prototype.getMissingChunks=function(){const t=this.chunkSize;const e=Math.floor(this.start/t);const s=Math.floor((this.end-1)/t)+1;const i=[];for(let t=e;t<s;++t){if(!this._loadedChunks.has(t)){i.push(t)}}return i};Object.defineProperty(i.prototype,"isDataLoaded",{get(){if(this.numChunksLoaded===this.numChunks){return true}return this.getMissingChunks().length===0},configurable:true});const n=new i;n.pos=n.start=t;n.end=t+e||this.end;n.dict=s;return n}getBaseStreams(){return[this]}}e.ChunkedStream=o;class a{constructor(t,e){this.length=e.length;this.chunkSize=e.rangeChunkSize;this.stream=new o(this.length,this.chunkSize,this);this.pdfNetworkStream=t;this.disableAutoFetch=e.disableAutoFetch;this.msgHandler=e.msgHandler;this.currRequestId=0;this._chunksNeededByRequest=new Map;this._requestsByChunk=new Map;this._promisesByRequest=new Map;this.progressiveDataLength=0;this.aborted=false;this._loadedStreamCapability=new n.PromiseCapability}sendRequest(t,e){const s=this.pdfNetworkStream.getRangeReader(t,e);if(!s.isStreamingSupported){s.onProgress=this.onProgress.bind(this)}let n=[],r=0;return new Promise(((t,e)=>{const o=({value:a,done:c})=>{try{if(c){const e=(0,i.arrayBuffersToBytes)(n);n=null;t(e);return}r+=a.byteLength;if(s.isStreamingSupported){this.onProgress({loaded:r})}n.push(a);s.read().then(o,e)}catch(t){e(t)}};s.read().then(o,e)})).then((e=>{if(this.aborted){return}this.onReceiveData({chunk:e,begin:t})}))}requestAllChunks(t=false){if(!t){const t=this.stream.getMissingChunks();this._requestChunks(t)}return this._loadedStreamCapability.promise}_requestChunks(t){const e=this.currRequestId++;const s=new Set;this._chunksNeededByRequest.set(e,s);for(const e of t){if(!this.stream.hasChunk(e)){s.add(e)}}if(s.size===0){return Promise.resolve()}const i=new n.PromiseCapability;this._promisesByRequest.set(e,i);const r=[];for(const t of s){let s=this._requestsByChunk.get(t);if(!s){s=[];this._requestsByChunk.set(t,s);r.push(t)}s.push(e)}if(r.length>0){const t=this.groupChunks(r);for(const e of t){const t=e.beginChunk*this.chunkSize;const s=Math.min(e.endChunk*this.chunkSize,this.length);this.sendRequest(t,s).catch(i.reject)}}return i.promise.catch((t=>{if(this.aborted){return}throw t}))}getStream(){return this.stream}requestRange(t,e){e=Math.min(e,this.length);const s=this.getBeginChunk(t);const i=this.getEndChunk(e);const n=[];for(let t=s;t<i;++t){n.push(t)}return this._requestChunks(n)}requestRanges(t=[]){const e=[];for(const s of t){const t=this.getBeginChunk(s.begin);const i=this.getEndChunk(s.end);for(let s=t;s<i;++s){if(!e.includes(s)){e.push(s)}}}e.sort((function(t,e){return t-e}));return this._requestChunks(e)}groupChunks(t){const e=[];let s=-1;let i=-1;for(let n=0,r=t.length;n<r;++n){const r=t[n];if(s<0){s=r}if(i>=0&&i+1!==r){e.push({beginChunk:s,endChunk:i+1});s=r}if(n+1===t.length){e.push({beginChunk:s,endChunk:r+1})}i=r}return e}onProgress(t){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+t.loaded,total:this.length})}onReceiveData(t){const e=t.chunk;const s=t.begin===undefined;const i=s?this.progressiveDataLength:t.begin;const n=i+e.byteLength;const r=Math.floor(i/this.chunkSize);const o=n<this.length?Math.floor(n/this.chunkSize):Math.ceil(n/this.chunkSize);if(s){this.stream.onReceiveProgressiveData(e);this.progressiveDataLength=n}else{this.stream.onReceiveData(i,e)}if(this.stream.isDataLoaded){this._loadedStreamCapability.resolve(this.stream)}const a=[];for(let t=r;t<o;++t){const e=this._requestsByChunk.get(t);if(!e){continue}this._requestsByChunk.delete(t);for(const s of e){const e=this._chunksNeededByRequest.get(s);if(e.has(t)){e.delete(t)}if(e.size>0){continue}a.push(s)}}if(!this.disableAutoFetch&&this._requestsByChunk.size===0){let t;if(this.stream.numChunksLoaded===1){const e=this.stream.numChunks-1;if(!this.stream.hasChunk(e)){t=e}}else{t=this.stream.nextEmptyChunk(o)}if(Number.isInteger(t)){this._requestChunks([t])}}for(const t of a){const e=this._promisesByRequest.get(t);this._promisesByRequest.delete(t);e.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(t){this._loadedStreamCapability.reject(t)}getBeginChunk(t){return Math.floor(t/this.chunkSize)}getEndChunk(t){return Math.floor((t-1)/this.chunkSize)+1}abort(t){this.aborted=true;this.pdfNetworkStream?.cancelAllRequests(t);for(const e of this._promisesByRequest.values()){e.reject(t)}}}e.ChunkedStreamManager=a},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.StringStream=e.Stream=e.NullStream=void 0;var i=s(5);var n=s(2);class r extends i.BaseStream{constructor(t,e,s,i){super();this.bytes=t instanceof Uint8Array?t:new Uint8Array(t);this.start=e||0;this.pos=this.start;this.end=e+s||this.bytes.length;this.dict=i}get length(){return this.end-this.start}get isEmpty(){return this.length===0}getByte(){if(this.pos>=this.end){return-1}return this.bytes[this.pos++]}getBytes(t){const e=this.bytes;const s=this.pos;const i=this.end;if(!t){return e.subarray(s,i)}let n=s+t;if(n>i){n=i}this.pos=n;return e.subarray(s,n)}getByteRange(t,e){if(t<0){t=0}if(e>this.end){e=this.end}return this.bytes.subarray(t,e)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(t,e,s=null){return new r(this.bytes.buffer,t,e,s)}}e.Stream=r;class o extends r{constructor(t){super((0,n.stringToBytes)(t))}}e.StringStream=o;class a extends r{constructor(){super(new Uint8Array(0))}}e.NullStream=a},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.Page=e.PDFDocument=void 0;var i=s(2);var n=s(10);var r=s(3);var o=s(4);var a=s(51);var c=s(5);var l=s(74);var h=s(66);var u=s(68);var f=s(102);var d=s(16);var p=s(8);var g=s(76);var m=s(64);var w=s(13);var b=s(18);var y=s(72);var A=s(73);var v=s(77);var x=s(103);const k=1;const S=[0,0,612,792];class M{constructor({pdfManager:t,xref:e,pageIndex:s,pageDict:i,ref:n,globalIdFactory:r,fontCache:o,builtInCMapCache:a,standardFontDataCache:c,globalImageCache:l,systemFontCache:h,nonBlendModesSet:u,xfaFactory:f}){this.pdfManager=t;this.pageIndex=s;this.pageDict=i;this.xref=e;this.ref=n;this.fontCache=o;this.builtInCMapCache=a;this.standardFontDataCache=c;this.globalImageCache=l;this.systemFontCache=h;this.nonBlendModesSet=u;this.evaluatorOptions=t.evaluatorOptions;this.resourcesPromise=null;this.xfaFactory=f;const d={obj:0};this._localIdFactory=class extends r{static createObjId(){return`p${s}_${++d.obj}`}static getPageObjId(){return`p${n.toString()}`}}}_getInheritableProperty(t,e=false){const s=(0,r.getInheritableProperty)({dict:this.pageDict,key:t,getArray:e,stopWhenFound:false});if(!Array.isArray(s)){return s}if(s.length===1||!(s[0]instanceof o.Dict)){return s[0]}return o.Dict.merge({xref:this.xref,dictArray:s})}get content(){return this.pageDict.getArray("Contents")}get resources(){const t=this._getInheritableProperty("Resources");return(0,i.shadow)(this,"resources",t instanceof o.Dict?t:o.Dict.empty)}_getBoundingBox(t){if(this.xfaData){return this.xfaData.bbox}let e=this._getInheritableProperty(t,true);if(Array.isArray(e)&&e.length===4){e=i.Util.normalizeRect(e);if(e[2]-e[0]>0&&e[3]-e[1]>0){return e}(0,i.warn)(`Empty, or invalid, /${t} entry.`)}return null}get mediaBox(){return(0,i.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||S)}get cropBox(){return(0,i.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let t=this.pageDict.get("UserUnit");if(typeof t!=="number"||t<=0){t=k}return(0,i.shadow)(this,"userUnit",t)}get view(){const{cropBox:t,mediaBox:e}=this;if(t!==e&&!(0,i.isArrayEqual)(t,e)){const s=i.Util.intersect(t,e);if(s&&s[2]-s[0]>0&&s[3]-s[1]>0){return(0,i.shadow)(this,"view",s)}(0,i.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,i.shadow)(this,"view",e)}get rotate(){let t=this._getInheritableProperty("Rotate")||0;if(t%90!==0){t=0}else if(t>=360){t%=360}else if(t<0){t=(t%360+360)%360}return(0,i.shadow)(this,"rotate",t)}_onSubStreamError(t,e){if(this.evaluatorOptions.ignoreErrors){(0,i.warn)(`getContentStream - ignoring sub-stream (${e}): "${t}".`);return}throw t}getContentStream(){return this.pdfManager.ensure(this,"content").then((t=>{if(t instanceof c.BaseStream){return t}if(Array.isArray(t)){return new b.StreamsSequenceStream(t,this._onSubStreamError.bind(this))}return new p.NullStream}))}get xfaData(){return(0,i.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}#Ti(t,e,s){for(const n of t){if(n.id){const t=o.Ref.fromString(n.id);if(!t){(0,i.warn)(`A non-linked annotation cannot be modified: ${n.id}`);continue}if(n.deleted){e.put(t);continue}s?.put(t);n.ref=t;delete n.id}}}async saveNewAnnotations(t,e,s,i){if(this.xfaFactory){throw new Error("XFA: Cannot save new annotations.")}const r=new w.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions});const a=new o.RefSet;const c=new o.RefSet;this.#Ti(s,a,c);const l=this.pageDict;const h=this.annotations.filter((t=>!(t instanceof o.Ref&&a.has(t))));const u=await n.AnnotationFactory.saveNewAnnotations(r,e,s,i);for(const{ref:t}of u.annotations){if(t instanceof o.Ref&&!c.has(t)){h.push(t)}}const f=l.get("Annots");l.set("Annots",h);const d=[];await(0,A.writeObject)(this.ref,l,d,this.xref);if(f){l.set("Annots",f)}const p=u.dependencies;p.push({ref:this.ref,data:d.join("")},...u.annotations);return p}save(t,e,s){const n=new w.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions});return this._parsedAnnotations.then((function(t){const r=[];for(const o of t){if(!o.mustBePrinted(s)){continue}r.push(o.save(n,e,s).catch((function(t){(0,i.warn)("save - ignoring annotation data during "+`"${e.name}" task: "${t}".`);return null})))}return Promise.all(r).then((function(t){return t.filter((t=>!!t))}))}))}loadResources(t){if(!this.resourcesPromise){this.resourcesPromise=this.pdfManager.ensure(this,"resources")}return this.resourcesPromise.then((()=>{const e=new g.ObjectLoader(this.resources,t,this.xref);return e.load()}))}getOperatorList({handler:t,sink:e,task:s,intent:a,cacheKey:c,annotationStorage:l=null}){const h=this.getContentStream();const u=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]);const f=new w.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions});const d=!this.xfaFactory?(0,r.getNewAnnotationsMap)(l):null;let p=null;let g=Promise.resolve(null);if(d){const t=d.get(this.pageIndex);if(t){const e=this.pdfManager.ensureDoc("annotationGlobals");let r;const a=new Set;for(const{bitmapId:e,bitmap:s}of t){if(e&&!s&&!a.has(e)){a.add(e)}}const{isOffscreenCanvasSupported:c}=this.evaluatorOptions;if(a.size>0){const e=t.slice();for(const[t,s]of l){if(!t.startsWith(i.AnnotationEditorPrefix)){continue}if(s.bitmap&&a.has(s.bitmapId)){e.push(s)}}r=n.AnnotationFactory.generateImages(e,this.xref,c)}else{r=n.AnnotationFactory.generateImages(t,this.xref,c)}p=new o.RefSet;this.#Ti(t,p,null);g=e.then((e=>{if(!e){return null}return n.AnnotationFactory.printNewAnnotations(e,f,s,t,r)}))}}const b=Promise.all([h,u]);const y=b.then((([i])=>{const n=new m.OperatorList(a,e);t.send("StartRenderPage",{transparency:f.hasBlendModes(this.resources,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:c});return f.getOperatorList({stream:i,task:s,resources:this.resources,operatorList:n}).then((function(){return n}))}));return Promise.all([y,this._parsedAnnotations,g]).then((function([t,e,n]){if(n){e=e.filter((t=>!(t.ref&&p.has(t.ref))));for(let t=0,s=n.length;t<s;t++){const i=n[t];if(i.refToReplace){const r=e.findIndex((t=>t.ref&&(0,o.isRefsEqual)(t.ref,i.refToReplace)));if(r>=0){e.splice(r,1,i);n.splice(t--,1);s--}}}e=e.concat(n)}if(e.length===0||a&i.RenderingIntentFlag.ANNOTATIONS_DISABLE){t.flush(true);return{length:t.totalLength}}const r=!!(a&i.RenderingIntentFlag.ANNOTATIONS_FORMS),c=!!(a&i.RenderingIntentFlag.ANY),h=!!(a&i.RenderingIntentFlag.DISPLAY),u=!!(a&i.RenderingIntentFlag.PRINT);const d=[];for(const t of e){if(c||h&&t.mustBeViewed(l,r)||u&&t.mustBePrinted(l)){d.push(t.getOperatorList(f,s,a,r,l).catch((function(t){(0,i.warn)("getOperatorList - ignoring annotation data during "+`"${s.name}" task: "${t}".`);return{opList:null,separateForm:false,separateCanvas:false}})))}}return Promise.all(d).then((function(e){let s=false,i=false;for(const{opList:n,separateForm:r,separateCanvas:o}of e){t.addOpList(n);s||=r;i||=o}t.flush(true,{form:s,canvas:i});return{length:t.totalLength}}))}))}extractTextContent({handler:t,task:e,includeMarkedContent:s,disableNormalization:i,sink:n}){const r=this.getContentStream();const o=this.loadResources(["ExtGState","Font","Properties","XObject"]);const a=Promise.all([r,o]);return a.then((([r])=>{const o=new w.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions});return o.getTextContent({stream:r,task:e,resources:this.resources,includeMarkedContent:s,disableNormalization:i,sink:n,viewBox:this.view})}))}async getStructTree(){const t=await this.pdfManager.ensureCatalog("structTreeRoot");if(!t){return null}await this._parsedAnnotations;const e=await this.pdfManager.ensure(this,"_parseStructTree",[t]);return e.serializable}_parseStructTree(t){const e=new y.StructTreePage(t,this.pageDict);e.parse(this.ref);return e}async getAnnotationsData(t,e,s){const n=await this._parsedAnnotations;if(n.length===0){return n}const r=[],o=[];let a;const c=!!(s&i.RenderingIntentFlag.ANY),l=!!(s&i.RenderingIntentFlag.DISPLAY),h=!!(s&i.RenderingIntentFlag.PRINT);for(const s of n){const n=c||l&&s.viewable;if(n||h&&s.printable){r.push(s.data)}if(s.hasTextContent&&n){a||=new w.PartialEvaluator({xref:this.xref,handler:t,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions});o.push(s.extractTextContent(a,e,[-Infinity,-Infinity,Infinity,Infinity]).catch((function(t){(0,i.warn)(`getAnnotationsData - ignoring textContent during "${e.name}" task: "${t}".`)})))}}await Promise.all(o);return r}get annotations(){const t=this._getInheritableProperty("Annots");return(0,i.shadow)(this,"annotations",Array.isArray(t)?t:[])}get _parsedAnnotations(){const t=this.pdfManager.ensure(this,"annotations").then((async t=>{if(t.length===0){return t}const e=await this.pdfManager.ensureDoc("annotationGlobals");if(!e){return[]}const s=[];for(const r of t){s.push(n.AnnotationFactory.create(this.xref,r,e,this._localIdFactory,false,this.ref).catch((function(t){(0,i.warn)(`_parsedAnnotations: "${t}".`);return null})))}const r=[];let o;for(const t of await Promise.all(s)){if(!t){continue}if(t instanceof n.PopupAnnotation){(o||=[]).push(t);continue}r.push(t)}if(o){r.push(...o)}return r}));return(0,i.shadow)(this,"_parsedAnnotations",t)}get jsActions(){const t=(0,r.collectActions)(this.xref,this.pageDict,i.PageActionEventType);return(0,i.shadow)(this,"jsActions",t)}}e.Page=M;const C=new Uint8Array([37,80,68,70,45]);const _=new Uint8Array([115,116,97,114,116,120,114,101,102]);const I=new Uint8Array([101,110,100,111,98,106]);const F=1024;const O="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";function E(t,e,s=1024,i=false){const n=e.length;const r=t.peekBytes(s);const o=r.length-n;if(o<=0){return false}if(i){const s=n-1;let i=r.length-1;while(i>=s){let o=0;while(o<n&&r[i-o]===e[s-o]){o++}if(o>=n){t.pos+=i-s;return true}i--}}else{let s=0;while(s<=o){let i=0;while(i<n&&r[s+i]===e[i]){i++}if(i>=n){t.pos+=s;return true}s++}}return false}class T{constructor(t,e){if(e.length<=0){throw new i.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.")}this.pdfManager=t;this.stream=e;this.xref=new x.XRef(e,t);this._pagePromises=new Map;this._version=null;const s={font:0};this._globalIdFactory=class{static getDocId(){return`g_${t.docId}`}static createFontId(){return`f${++s.font}`}static createObjId(){(0,i.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,i.unreachable)("Abstract method `getPageObjId` called.")}}}parse(t){this.xref.parse(t);this.catalog=new h.Catalog(this.pdfManager,this.xref)}get linearization(){let t=null;try{t=d.Linearization.create(this.stream)}catch(t){if(t instanceof r.MissingDataException){throw t}(0,i.info)(t)}return(0,i.shadow)(this,"linearization",t)}get startXRef(){const t=this.stream;let e=0;if(this.linearization){t.reset();if(E(t,I)){e=t.pos+6-t.start}}else{const s=1024;const i=_.length;let n=false,o=t.end;while(!n&&o>0){o-=s-i;if(o<0){o=0}t.pos=o;n=E(t,_,s,true)}if(n){t.skip(9);let s;do{s=t.getByte()}while((0,r.isWhiteSpace)(s));let i="";while(s>=32&&s<=57){i+=String.fromCharCode(s);s=t.getByte()}e=parseInt(i,10);if(isNaN(e)){e=0}}}return(0,i.shadow)(this,"startXRef",e)}checkHeader(){const t=this.stream;t.reset();if(!E(t,C)){return}t.moveStart();t.skip(C.length);let e="",s;while((s=t.getByte())>32&&e.length<7){e+=String.fromCharCode(s)}if(r.PDF_VERSION_REGEXP.test(e)){this._version=e}else{(0,i.warn)(`Invalid PDF header version: ${e}`)}}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let t=0;if(this.catalog.hasActualNumPages){t=this.catalog.numPages}else if(this.xfaFactory){t=this.xfaFactory.getNumPages()}else if(this.linearization){t=this.linearization.numPages}else{t=this.catalog.numPages}return(0,i.shadow)(this,"numPages",t)}_hasOnlyDocumentSignatures(t,e=0){const s=10;if(!Array.isArray(t)){return false}return t.every((t=>{t=this.xref.fetchIfRef(t);if(!(t instanceof o.Dict)){return false}if(t.has("Kids")){if(++e>s){(0,i.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached");return false}return this._hasOnlyDocumentSignatures(t.get("Kids"),e)}const n=(0,o.isName)(t.get("FT"),"Sig");const r=t.get("Rect");const a=Array.isArray(r)&&r.every((t=>t===0));return n&&a}))}get _xfaStreams(){const t=this.catalog.acroForm;if(!t){return null}const e=t.get("XFA");const s={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(e instanceof c.BaseStream&&!e.isEmpty){s["xdp:xdp"]=e;return s}if(!Array.isArray(e)||e.length===0){return null}for(let t=0,i=e.length;t<i;t+=2){let n;if(t===0){n="xdp:xdp"}else if(t===i-2){n="/xdp:xdp"}else{n=e[t]}if(!s.hasOwnProperty(n)){continue}const r=this.xref.fetchIfRef(e[t+1]);if(!(r instanceof c.BaseStream)||r.isEmpty){continue}s[n]=r}return s}get xfaDatasets(){const t=this._xfaStreams;if(!t){return(0,i.shadow)(this,"xfaDatasets",null)}for(const e of["datasets","xdp:xdp"]){const s=t[e];if(!s){continue}try{const t=(0,i.stringToUTF8String)(s.getString());const n={[e]:t};return(0,i.shadow)(this,"xfaDatasets",new f.DatasetReader(n))}catch{(0,i.warn)("XFA - Invalid utf-8 string.");break}}return(0,i.shadow)(this,"xfaDatasets",null)}get xfaData(){const t=this._xfaStreams;if(!t){return null}const e=Object.create(null);for(const[s,n]of Object.entries(t)){if(!n){continue}try{e[s]=(0,i.stringToUTF8String)(n.getString())}catch{(0,i.warn)("XFA - Invalid utf-8 string.");return null}}return e}get xfaFactory(){let t;if(this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm){t=this.xfaData}return(0,i.shadow)(this,"xfaFactory",t?new v.XFAFactory(t):null)}get isPureXfa(){return this.xfaFactory?this.xfaFactory.isValid():false}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}async loadXfaImages(){const t=await this.pdfManager.ensureCatalog("xfaImages");if(!t){return}const e=t.getKeys();const s=new g.ObjectLoader(t,e,this.xref);await s.load();const i=new Map;for(const s of e){const e=t.get(s);if(e instanceof c.BaseStream){i.set(s,e.getBytes())}}this.xfaFactory.setImages(i)}async loadXfaFonts(t,e){const s=await this.pdfManager.ensureCatalog("acroForm");if(!s){return}const n=await s.getAsync("DR");if(!(n instanceof o.Dict)){return}const c=new g.ObjectLoader(n,["Font"],this.xref);await c.load();const l=n.get("Font");if(!(l instanceof o.Dict)){return}const h=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions);h.useSystemFonts=false;const u=new w.PartialEvaluator({xref:this.xref,handler:t,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:h});const f=new m.OperatorList;const d=[];const p={get font(){return d.at(-1)},set font(t){d.push(t)},clone(){return this}};const b=new Map;l.forEach(((t,e)=>{b.set(t,e)}));const y=[];for(const[t,s]of b){const a=s.get("FontDescriptor");if(!(a instanceof o.Dict)){continue}let c=a.get("FontFamily");c=c.replaceAll(/[ ]+(\d)/g,"$1");const l=a.get("FontWeight");const h=-a.get("ItalicAngle");const d={fontFamily:c,fontWeight:l,italicAngle:h};if(!(0,r.validateCSSFont)(d)){continue}y.push(u.handleSetFont(n,[o.Name.get(t),1],null,f,e,p,null,d).catch((function(t){(0,i.warn)(`loadXfaFonts: "${t}".`);return null})))}await Promise.all(y);const A=this.xfaFactory.setFonts(d);if(!A){return}h.ignoreErrors=true;y.length=0;d.length=0;const v=new Set;for(const t of A){if(!(0,a.getXfaFontName)(`${t}-Regular`)){v.add(t)}}if(v.size){A.push("PdfJS-Fallback")}for(const t of A){if(v.has(t)){continue}for(const s of[{name:"Regular",fontWeight:400,italicAngle:0},{name:"Bold",fontWeight:700,italicAngle:0},{name:"Italic",fontWeight:400,italicAngle:12},{name:"BoldItalic",fontWeight:700,italicAngle:12}]){const r=`${t}-${s.name}`;const c=(0,a.getXfaFontDict)(r);y.push(u.handleSetFont(n,[o.Name.get(r),1],null,f,e,p,c,{fontFamily:t,fontWeight:s.fontWeight,italicAngle:s.italicAngle}).catch((function(t){(0,i.warn)(`loadXfaFonts: "${t}".`);return null})))}}await Promise.all(y);this.xfaFactory.appendFonts(d,v)}async serializeXfaData(t){return this.xfaFactory?this.xfaFactory.serializeData(t):null}get version(){return this.catalog.version||this._version}get formInfo(){const t={hasFields:false,hasAcroForm:false,hasXfa:false,hasSignatures:false};const e=this.catalog.acroForm;if(!e){return(0,i.shadow)(this,"formInfo",t)}try{const s=e.get("Fields");const i=Array.isArray(s)&&s.length>0;t.hasFields=i;const n=e.get("XFA");t.hasXfa=Array.isArray(n)&&n.length>0||n instanceof c.BaseStream&&!n.isEmpty;const r=e.get("SigFlags");const o=!!(r&1);const a=o&&this._hasOnlyDocumentSignatures(s);t.hasAcroForm=i&&!a;t.hasSignatures=o}catch(t){if(t instanceof r.MissingDataException){throw t}(0,i.warn)(`Cannot fetch form information: "${t}".`)}return(0,i.shadow)(this,"formInfo",t)}get documentInfo(){const t={PDFFormatVersion:this.version,Language:this.catalog.lang,EncryptFilterName:this.xref.encrypt?this.xref.encrypt.filterName:null,IsLinearized:!!this.linearization,IsAcroFormPresent:this.formInfo.hasAcroForm,IsXFAPresent:this.formInfo.hasXfa,IsCollectionPresent:!!this.catalog.collection,IsSignaturesPresent:this.formInfo.hasSignatures};let e;try{e=this.xref.trailer.get("Info")}catch(t){if(t instanceof r.MissingDataException){throw t}(0,i.info)("The document information dictionary is invalid.")}if(!(e instanceof o.Dict)){return(0,i.shadow)(this,"documentInfo",t)}for(const s of e.getKeys()){const n=e.get(s);switch(s){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if(typeof n==="string"){t[s]=(0,i.stringToPDFString)(n);continue}break;case"Trapped":if(n instanceof o.Name){t[s]=n;continue}break;default:let e;switch(typeof n){case"string":e=(0,i.stringToPDFString)(n);break;case"number":case"boolean":e=n;break;default:if(n instanceof o.Name){e=n}break}if(e===undefined){(0,i.warn)(`Bad value, for custom key "${s}", in Info: ${n}.`);continue}if(!t.Custom){t.Custom=Object.create(null)}t.Custom[s]=e;continue}(0,i.warn)(`Bad value, for key "${s}", in Info: ${n}.`)}return(0,i.shadow)(this,"documentInfo",t)}get fingerprints(){function t(t){return typeof t==="string"&&t.length>0&&t!==O}function e(t){const e=[];for(const s of t){const t=s.toString(16);e.push(t.padStart(2,"0"))}return e.join("")}const s=this.xref.trailer.get("ID");let n,r;if(Array.isArray(s)&&t(s[0])){n=(0,i.stringToBytes)(s[0]);if(s[1]!==s[0]&&t(s[1])){r=(0,i.stringToBytes)(s[1])}}else{n=(0,l.calculateMD5)(this.stream.getByteRange(0,F),0,F)}return(0,i.shadow)(this,"fingerprints",[e(n),r?e(r):null])}async _getLinearizationPage(t){const{catalog:e,linearization:s,xref:n}=this;const r=o.Ref.get(s.objectNumberFirst,0);try{const t=await n.fetchAsync(r);if(t instanceof o.Dict){let s=t.getRaw("Type");if(s instanceof o.Ref){s=await n.fetchAsync(s)}if((0,o.isName)(s,"Page")||!t.has("Type")&&!t.has("Kids")){if(!e.pageKidsCountCache.has(r)){e.pageKidsCountCache.put(r,1)}if(!e.pageIndexCache.has(r)){e.pageIndexCache.put(r,0)}return[t,r]}}throw new i.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(s){(0,i.warn)(`_getLinearizationPage: "${s.message}".`);return e.getPageDict(t)}}getPage(t){const e=this._pagePromises.get(t);if(e){return e}const{catalog:s,linearization:i,xfaFactory:n}=this;let r;if(n){r=Promise.resolve([o.Dict.empty,null])}else if(i?.pageFirst===t){r=this._getLinearizationPage(t)}else{r=s.getPageDict(t)}r=r.then((([e,i])=>new M({pdfManager:this.pdfManager,xref:this.xref,pageIndex:t,pageDict:e,ref:i,globalIdFactory:this._globalIdFactory,fontCache:s.fontCache,builtInCMapCache:s.builtInCMapCache,standardFontDataCache:s.standardFontDataCache,globalImageCache:s.globalImageCache,systemFontCache:s.systemFontCache,nonBlendModesSet:s.nonBlendModesSet,xfaFactory:n})));this._pagePromises.set(t,r);return r}async checkFirstPage(t=false){if(t){return}try{await this.getPage(0)}catch(t){if(t instanceof r.XRefEntryException){this._pagePromises.delete(0);await this.cleanup();throw new r.XRefParseException}}}async checkLastPage(t=false){const{catalog:e,pdfManager:s}=this;e.setActualNumPages();let n;try{await Promise.all([s.ensureDoc("xfaFactory"),s.ensureDoc("linearization"),s.ensureCatalog("numPages")]);if(this.xfaFactory){return}else if(this.linearization){n=this.linearization.numPages}else{n=e.numPages}if(!Number.isInteger(n)){throw new i.FormatError("Page count is not an integer.")}else if(n<=1){return}await this.getPage(n-1)}catch(o){this._pagePromises.delete(n-1);await this.cleanup();if(o instanceof r.XRefEntryException&&!t){throw new r.XRefParseException}(0,i.warn)(`checkLastPage - invalid /Pages tree /Count: ${n}.`);let a;try{a=await e.getAllPageDicts(t)}catch(s){if(s instanceof r.XRefEntryException&&!t){throw new r.XRefParseException}e.setActualNumPages(1);return}for(const[t,[i,n]]of a){let r;if(i instanceof Error){r=Promise.reject(i);r.catch((()=>{}))}else{r=Promise.resolve(new M({pdfManager:s,xref:this.xref,pageIndex:t,pageDict:i,ref:n,globalIdFactory:this._globalIdFactory,fontCache:e.fontCache,builtInCMapCache:e.builtInCMapCache,standardFontDataCache:e.standardFontDataCache,globalImageCache:e.globalImageCache,systemFontCache:e.systemFontCache,nonBlendModesSet:e.nonBlendModesSet,xfaFactory:null}))}this._pagePromises.set(t,r)}e.setActualNumPages(a.size)}}fontFallback(t,e){return this.catalog.fontFallback(t,e)}async cleanup(t=false){return this.catalog?this.catalog.cleanup(t):(0,u.clearGlobalCaches)()}#Di(t,e,s,r){const o=this.xref.fetchIfRef(e);if(o.has("T")){const e=(0,i.stringToPDFString)(o.get("T"));t=t===""?e:`${t}.${e}`}if(!s.has(t)){s.set(t,[])}s.get(t).push(n.AnnotationFactory.create(this.xref,e,r,this._localIdFactory,true,null).then((t=>t?.getFieldObject())).catch((function(t){(0,i.warn)(`#collectFieldObjects: "${t}".`);return null})));if(o.has("Kids")){for(const e of o.get("Kids")){this.#Di(t,e,s,r)}}}get fieldObjects(){if(!this.formInfo.hasFields){return(0,i.shadow)(this,"fieldObjects",Promise.resolve(null))}const t=this.pdfManager.ensureDoc("annotationGlobals").then((async t=>{if(!t){return null}const e=Object.create(null);const s=new Map;for(const e of this.catalog.acroForm.get("Fields")){this.#Di("",e,s,t)}const i=[];for(const[t,n]of s){i.push(Promise.all(n).then((s=>{s=s.filter((t=>!!t));if(s.length>0){e[t]=s}})))}await Promise.all(i);return e}));return(0,i.shadow)(this,"fieldObjects",t)}get hasJSActions(){const t=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,i.shadow)(this,"hasJSActions",t)}async _parseHasJSActions(){const[t,e]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);if(t){return true}if(e){return Object.values(e).some((t=>t.some((t=>t.actions!==null))))}return false}get calculationOrderIds(){const t=this.catalog.acroForm;if(!t?.has("CO")){return(0,i.shadow)(this,"calculationOrderIds",null)}const e=t.get("CO");if(!Array.isArray(e)||e.length===0){return(0,i.shadow)(this,"calculationOrderIds",null)}const s=[];for(const t of e){if(t instanceof o.Ref){s.push(t.toString())}}if(s.length===0){return(0,i.shadow)(this,"calculationOrderIds",null)}return(0,i.shadow)(this,"calculationOrderIds",s)}get annotationGlobals(){return(0,i.shadow)(this,"annotationGlobals",n.AnnotationFactory.createGlobals(this.pdfManager))}}e.PDFDocument=T},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.PopupAnnotation=e.MarkupAnnotation=e.AnnotationFactory=e.AnnotationBorderStyle=e.Annotation=void 0;e.getQuadPoints=v;var i=s(2);var n=s(3);var r=s(11);var o=s(4);var a=s(8);var c=s(5);var l=s(60);var h=s(66);var u=s(12);var f=s(69);var d=s(26);var p=s(76);var g=s(64);var m=s(73);var w=s(77);class b{static createGlobals(t){return Promise.all([t.ensureCatalog("acroForm"),t.ensureDoc("xfaDatasets"),t.ensureCatalog("structTreeRoot"),t.ensureCatalog("baseUrl"),t.ensureCatalog("attachments")]).then((([e,s,i,n,r])=>({pdfManager:t,acroForm:e instanceof o.Dict?e:o.Dict.empty,xfaDatasets:s,structTreeRoot:i,baseUrl:n,attachments:r})),(t=>{(0,i.warn)(`createGlobals: "${t}".`);return null}))}static async create(t,e,s,i,n,r){const o=n?await this._getPageIndex(t,e,s.pdfManager):null;return s.pdfManager.ensure(this,"_create",[t,e,s,i,n,o,r])}static _create(t,e,s,r,a=false,c=null,l=null){const h=t.fetchIfRef(e);if(!(h instanceof o.Dict)){return undefined}const{acroForm:u,pdfManager:f}=s;const d=e instanceof o.Ref?e.toString():`annot_${r.createObjId()}`;let p=h.get("Subtype");p=p instanceof o.Name?p.name:null;const g={xref:t,ref:e,dict:h,subtype:p,id:d,annotationGlobals:s,collectFields:a,needAppearances:!a&&u.get("NeedAppearances")===true,pageIndex:c,evaluatorOptions:f.evaluatorOptions,pageRef:l};switch(p){case"Link":return new T(g);case"Text":return new E(g);case"Widget":let t=(0,n.getInheritableProperty)({dict:h,key:"FT"});t=t instanceof o.Name?t.name:null;switch(t){case"Tx":return new _(g);case"Btn":return new I(g);case"Ch":return new F(g);case"Sig":return new O(g)}(0,i.warn)(`Unimplemented widget field type "${t}", `+"falling back to base field type.");return new C(g);case"Popup":return new D(g);case"FreeText":return new P(g);case"Line":return new R(g);case"Square":return new N(g);case"Circle":return new L(g);case"PolyLine":return new B(g);case"Polygon":return new $(g);case"Caret":return new U(g);case"Ink":return new j(g);case"Highlight":return new H(g);case"Underline":return new G(g);case"Squiggly":return new q(g);case"StrikeOut":return new X(g);case"Stamp":return new W(g);case"FileAttachment":return new z(g);default:if(!a){if(!p){(0,i.warn)("Annotation is missing the required /Subtype.")}else{(0,i.warn)(`Unimplemented annotation type "${p}", `+"falling back to base annotation.")}}return new k(g)}}static async _getPageIndex(t,e,s){try{const n=await t.fetchIfRefAsync(e);if(!(n instanceof o.Dict)){return-1}const r=n.getRaw("P");if(r instanceof o.Ref){try{const t=await s.ensureCatalog("getPageIndex",[r]);return t}catch(t){(0,i.info)(`_getPageIndex -- not a valid page reference: "${t}".`)}}if(n.has("Kids")){return-1}const a=await s.ensureDoc("numPages");for(let t=0;t<a;t++){const i=await s.getPage(t);const n=await s.ensure(i,"annotations");for(const s of n){if(s instanceof o.Ref&&(0,o.isRefsEqual)(s,e)){return t}}}}catch(t){(0,i.warn)(`_getPageIndex: "${t}".`)}return-1}static generateImages(t,e,s){if(!s){(0,i.warn)("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images.");return null}let n;for(const{bitmapId:s,bitmap:i}of t){if(!i){continue}n||=new Map;n.set(s,W.createImage(i,e))}return n}static async saveNewAnnotations(t,e,s,n){const r=t.xref;let a;const c=[];const l=[];const{isOffscreenCanvasSupported:h}=t.options;for(const u of s){if(u.deleted){continue}switch(u.annotationType){case i.AnnotationEditorType.FREETEXT:if(!a){const t=new o.Dict(r);t.set("BaseFont",o.Name.get("Helvetica"));t.set("Type",o.Name.get("Font"));t.set("Subtype",o.Name.get("Type1"));t.set("Encoding",o.Name.get("WinAnsiEncoding"));const e=[];a=r.getNewTemporaryRef();await(0,m.writeObject)(a,t,e,r);c.push({ref:a,data:e.join("")})}l.push(P.createNewAnnotation(r,u,c,{evaluator:t,task:e,baseFontRef:a}));break;case i.AnnotationEditorType.INK:l.push(j.createNewAnnotation(r,u,c));break;case i.AnnotationEditorType.STAMP:if(!h){break}const s=await n.get(u.bitmapId);if(s.imageStream){const{imageStream:t,smaskStream:e}=s;const i=[];if(e){const s=r.getNewTemporaryRef();await(0,m.writeObject)(s,e,i,r);c.push({ref:s,data:i.join("")});t.dict.set("SMask",s);i.length=0}const n=s.imageRef=r.getNewTemporaryRef();await(0,m.writeObject)(n,t,i,r);c.push({ref:n,data:i.join("")});s.imageStream=s.smaskStream=null}l.push(W.createNewAnnotation(r,u,c,{image:s}));break}}return{annotations:await Promise.all(l),dependencies:c}}static async printNewAnnotations(t,e,s,n,r){if(!n){return null}const{options:o,xref:a}=e;const c=[];for(const l of n){if(l.deleted){continue}switch(l.annotationType){case i.AnnotationEditorType.FREETEXT:c.push(P.createNewPrintAnnotation(t,a,l,{evaluator:e,task:s,evaluatorOptions:o}));break;case i.AnnotationEditorType.INK:c.push(j.createNewPrintAnnotation(t,a,l,{evaluatorOptions:o}));break;case i.AnnotationEditorType.STAMP:if(!o.isOffscreenCanvasSupported){break}const n=await r.get(l.bitmapId);if(n.imageStream){const{imageStream:t,smaskStream:e}=n;if(e){t.dict.set("SMask",e)}n.imageRef=new d.JpegStream(t,t.length);n.imageStream=n.smaskStream=null}c.push(W.createNewPrintAnnotation(t,a,l,{image:n,evaluatorOptions:o}));break}}return Promise.all(c)}}e.AnnotationFactory=b;function y(t,e=new Uint8ClampedArray(3)){if(!Array.isArray(t)){return e}const s=e||new Uint8ClampedArray(3);switch(t.length){case 0:return null;case 1:u.ColorSpace.singletons.gray.getRgbItem(t,0,s,0);return s;case 3:u.ColorSpace.singletons.rgb.getRgbItem(t,0,s,0);return s;case 4:u.ColorSpace.singletons.cmyk.getRgbItem(t,0,s,0);return s;default:return e}}function A(t){return Array.from(t,(t=>t/255))}function v(t,e){const s=t.getArray("QuadPoints");if(!Array.isArray(s)||s.length===0||s.length%8>0){return null}const i=[];for(let t=0,n=s.length/8;t<n;t++){let n=Infinity,r=-Infinity,o=Infinity,a=-Infinity;for(let e=t*8,i=t*8+8;e<i;e+=2){const t=s[e];const i=s[e+1];n=Math.min(t,n);r=Math.max(t,r);o=Math.min(i,o);a=Math.max(i,a)}if(e!==null&&(n<e[0]||r>e[2]||o<e[1]||a>e[3])){return null}i.push([{x:n,y:a},{x:r,y:a},{x:n,y:o},{x:r,y:o}])}return i}function x(t,e,s){const[n,r,o,a]=i.Util.getAxialAlignedBoundingBox(e,s);if(n===o||r===a){return[1,0,0,1,t[0],t[1]]}const c=(t[2]-t[0])/(o-n);const l=(t[3]-t[1])/(a-r);return[c,0,0,l,t[0]-n*c,t[1]-r*l]}class k{constructor(t){const{dict:e,xref:s,annotationGlobals:r}=t;this.setTitle(e.get("T"));this.setContents(e.get("Contents"));this.setModificationDate(e.get("M"));this.setFlags(e.get("F"));this.setRectangle(e.getArray("Rect"));this.setColor(e.getArray("C"));this.setBorderStyle(e);this.setAppearance(e);this.setOptionalContent(e);const a=e.get("MK");this.setBorderAndBackgroundColors(a);this.setRotation(a,e);this.ref=t.ref instanceof o.Ref?t.ref:null;this._streams=[];if(this.appearance){this._streams.push(this.appearance)}const c=!!(this.flags&i.AnnotationFlag.LOCKED);const l=!!(this.flags&i.AnnotationFlag.LOCKEDCONTENTS);if(r.structTreeRoot){let s=e.get("StructParent");s=Number.isInteger(s)&&s>=0?s:-1;r.structTreeRoot.addAnnotationIdToPage(t.pageRef,s)}this.data={annotationFlags:this.flags,borderStyle:this.borderStyle,color:this.color,backgroundColor:this.backgroundColor,borderColor:this.borderColor,rotation:this.rotation,contentsObj:this._contents,hasAppearance:!!this.appearance,id:t.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:t.subtype,hasOwnCanvas:false,noRotate:!!(this.flags&i.AnnotationFlag.NOROTATE),noHTML:c&&l};if(t.collectFields){const r=e.get("Kids");if(Array.isArray(r)){const t=[];for(const e of r){if(e instanceof o.Ref){t.push(e.toString())}}if(t.length!==0){this.data.kidIds=t}}this.data.actions=(0,n.collectActions)(s,e,i.AnnotationActionEventType);this.data.fieldName=this._constructFieldName(e);this.data.pageIndex=t.pageIndex}this._isOffscreenCanvasSupported=t.evaluatorOptions.isOffscreenCanvasSupported;this._fallbackFontDict=null;this._needAppearances=false}_hasFlag(t,e){return!!(t&e)}_isViewable(t){return!this._hasFlag(t,i.AnnotationFlag.INVISIBLE)&&!this._hasFlag(t,i.AnnotationFlag.NOVIEW)}_isPrintable(t){return this._hasFlag(t,i.AnnotationFlag.PRINT)&&!this._hasFlag(t,i.AnnotationFlag.HIDDEN)&&!this._hasFlag(t,i.AnnotationFlag.INVISIBLE)}mustBeViewed(t,e){const s=t?.get(this.data.id)?.noView;if(s!==undefined){return!s}return this.viewable&&!this._hasFlag(this.flags,i.AnnotationFlag.HIDDEN)}mustBePrinted(t){const e=t?.get(this.data.id)?.noPrint;if(e!==undefined){return!e}return this.printable}get viewable(){if(this.data.quadPoints===null){return false}if(this.flags===0){return true}return this._isViewable(this.flags)}get printable(){if(this.data.quadPoints===null){return false}if(this.flags===0){return false}return this._isPrintable(this.flags)}_parseStringHelper(t){const e=typeof t==="string"?(0,i.stringToPDFString)(t):"";const s=e&&(0,l.bidi)(e).dir==="rtl"?"rtl":"ltr";return{str:e,dir:s}}setDefaultAppearance(t){const{dict:e,annotationGlobals:s}=t;const i=(0,n.getInheritableProperty)({dict:e,key:"DA"})||s.acroForm.get("DA");this._defaultAppearance=typeof i==="string"?i:"";this.data.defaultAppearanceData=(0,r.parseDefaultAppearance)(this._defaultAppearance)}setTitle(t){this._title=this._parseStringHelper(t)}setContents(t){this._contents=this._parseStringHelper(t)}setModificationDate(t){this.modificationDate=typeof t==="string"?t:null}setFlags(t){this.flags=Number.isInteger(t)&&t>0?t:0}hasFlag(t){return this._hasFlag(this.flags,t)}setRectangle(t){this.rectangle=Array.isArray(t)&&t.length===4?i.Util.normalizeRect(t):[0,0,0,0]}setColor(t){this.color=y(t)}setLineEndings(t){this.lineEndings=["None","None"];if(Array.isArray(t)&&t.length===2){for(let e=0;e<2;e++){const s=t[e];if(s instanceof o.Name){switch(s.name){case"None":continue;case"Square":case"Circle":case"Diamond":case"OpenArrow":case"ClosedArrow":case"Butt":case"ROpenArrow":case"RClosedArrow":case"Slash":this.lineEndings[e]=s.name;continue}}(0,i.warn)(`Ignoring invalid lineEnding: ${s}`)}}}setRotation(t,e){this.rotation=0;let s=t instanceof o.Dict?t.get("R")||0:e.get("Rotate")||0;if(Number.isInteger(s)&&s!==0){s%=360;if(s<0){s+=360}if(s%90===0){this.rotation=s}}}setBorderAndBackgroundColors(t){if(t instanceof o.Dict){this.borderColor=y(t.getArray("BC"),null);this.backgroundColor=y(t.getArray("BG"),null)}else{this.borderColor=this.backgroundColor=null}}setBorderStyle(t){this.borderStyle=new S;if(!(t instanceof o.Dict)){return}if(t.has("BS")){const e=t.get("BS");const s=e.get("Type");if(!s||(0,o.isName)(s,"Border")){this.borderStyle.setWidth(e.get("W"),this.rectangle);this.borderStyle.setStyle(e.get("S"));this.borderStyle.setDashArray(e.getArray("D"))}}else if(t.has("Border")){const e=t.getArray("Border");if(Array.isArray(e)&&e.length>=3){this.borderStyle.setHorizontalCornerRadius(e[0]);this.borderStyle.setVerticalCornerRadius(e[1]);this.borderStyle.setWidth(e[2],this.rectangle);if(e.length===4){this.borderStyle.setDashArray(e[3],true)}}}else{this.borderStyle.setWidth(0)}}setAppearance(t){this.appearance=null;const e=t.get("AP");if(!(e instanceof o.Dict)){return}const s=e.get("N");if(s instanceof c.BaseStream){this.appearance=s;return}if(!(s instanceof o.Dict)){return}const i=t.get("AS");if(!(i instanceof o.Name)||!s.has(i.name)){return}const n=s.get(i.name);if(n instanceof c.BaseStream){this.appearance=n}}setOptionalContent(t){this.oc=null;const e=t.get("OC");if(e instanceof o.Name){(0,i.warn)("setOptionalContent: Support for /Name-entry is not implemented.")}else if(e instanceof o.Dict){this.oc=e}}loadResources(t,e){return e.dict.getAsync("Resources").then((e=>{if(!e){return undefined}const s=new p.ObjectLoader(e,t,e.xref);return s.load().then((function(){return e}))}))}async getOperatorList(t,e,s,n,r){const c=this.data;let l=this.appearance;const h=!!(this.data.hasOwnCanvas&&s&i.RenderingIntentFlag.DISPLAY);if(!l){if(!h){return{opList:new g.OperatorList,separateForm:false,separateCanvas:false}}l=new a.StringStream("");l.dict=new o.Dict}const u=l.dict;const f=await this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],l);const d=u.getArray("BBox")||[0,0,1,1];const p=u.getArray("Matrix")||[1,0,0,1,0,0];const m=x(c.rect,d,p);const w=new g.OperatorList;let b;if(this.oc){b=await t.parseMarkedContentProps(this.oc,null)}if(b!==undefined){w.addOp(i.OPS.beginMarkedContentProps,["OC",b])}w.addOp(i.OPS.beginAnnotation,[c.id,c.rect,m,p,h]);await t.getOperatorList({stream:l,task:e,resources:f,operatorList:w,fallbackFontDict:this._fallbackFontDict});w.addOp(i.OPS.endAnnotation,[]);if(b!==undefined){w.addOp(i.OPS.endMarkedContent,[])}this.reset();return{opList:w,separateForm:false,separateCanvas:h}}async save(t,e,s){return null}get hasTextContent(){return false}async extractTextContent(t,e,s){if(!this.appearance){return}const n=await this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance);const r=[];const o=[];let a=null;const c={desiredSize:Math.Infinity,ready:true,enqueue(t,e){for(const e of t.items){if(e.str===undefined){continue}a||=e.transform.slice(-2);o.push(e.str);if(e.hasEOL){r.push(o.join(""));o.length=0}}}};await t.getTextContent({stream:this.appearance,task:e,resources:n,includeMarkedContent:true,sink:c,viewBox:s});this.reset();if(o.length){r.push(o.join(""))}if(r.length>1||r[0]){const t=this.appearance.dict;const e=t.getArray("BBox")||[0,0,1,1];const s=t.getArray("Matrix")||[1,0,0,1,0,0];const n=this.data.rect;const o=x(n,e,s);o[4]-=n[0];o[5]-=n[1];a=i.Util.applyTransform(a,o);a=i.Util.applyTransform(a,s);this.data.textPosition=a;this.data.textContent=r}}getFieldObject(){if(this.data.kidIds){return{id:this.data.id,actions:this.data.actions,name:this.data.fieldName,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,type:"",kidIds:this.data.kidIds,page:this.data.pageIndex,rotation:this.rotation}}return null}reset(){for(const t of this._streams){t.reset()}}_constructFieldName(t){if(!t.has("T")&&!t.has("Parent")){(0,i.warn)("Unknown field name, falling back to empty field name.");return""}if(!t.has("Parent")){return(0,i.stringToPDFString)(t.get("T"))}const e=[];if(t.has("T")){e.unshift((0,i.stringToPDFString)(t.get("T")))}let s=t;const n=new o.RefSet;if(t.objId){n.put(t.objId)}while(s.has("Parent")){s=s.get("Parent");if(!(s instanceof o.Dict)||s.objId&&n.has(s.objId)){break}if(s.objId){n.put(s.objId)}if(s.has("T")){e.unshift((0,i.stringToPDFString)(s.get("T")))}}return e.join(".")}}e.Annotation=k;class S{constructor(){this.width=1;this.style=i.AnnotationBorderStyleType.SOLID;this.dashArray=[3];this.horizontalCornerRadius=0;this.verticalCornerRadius=0}setWidth(t,e=[0,0,0,0]){if(t instanceof o.Name){this.width=0;return}if(typeof t==="number"){if(t>0){const s=(e[2]-e[0])/2;const n=(e[3]-e[1])/2;if(s>0&&n>0&&(t>s||t>n)){(0,i.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${t}`);t=1}}this.width=t}}setStyle(t){if(!(t instanceof o.Name)){return}switch(t.name){case"S":this.style=i.AnnotationBorderStyleType.SOLID;break;case"D":this.style=i.AnnotationBorderStyleType.DASHED;break;case"B":this.style=i.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=i.AnnotationBorderStyleType.INSET;break;case"U":this.style=i.AnnotationBorderStyleType.UNDERLINE;break}}setDashArray(t,e=false){if(Array.isArray(t)&&t.length>0){let s=true;let i=true;for(const e of t){const t=+e>=0;if(!t){s=false;break}else if(e>0){i=false}}if(s&&!i){this.dashArray=t;if(e){this.setStyle(o.Name.get("D"))}}else{this.width=0}}else if(t){this.width=0}}setHorizontalCornerRadius(t){if(Number.isInteger(t)){this.horizontalCornerRadius=t}}setVerticalCornerRadius(t){if(Number.isInteger(t)){this.verticalCornerRadius=t}}}e.AnnotationBorderStyle=S;class M extends k{constructor(t){super(t);const{dict:e}=t;if(e.has("IRT")){const t=e.getRaw("IRT");this.data.inReplyTo=t instanceof o.Ref?t.toString():null;const s=e.get("RT");this.data.replyType=s instanceof o.Name?s.name:i.AnnotationReplyType.REPLY}let s=null;if(this.data.replyType===i.AnnotationReplyType.GROUP){const t=e.get("IRT");this.setTitle(t.get("T"));this.data.titleObj=this._title;this.setContents(t.get("Contents"));this.data.contentsObj=this._contents;if(!t.has("CreationDate")){this.data.creationDate=null}else{this.setCreationDate(t.get("CreationDate"));this.data.creationDate=this.creationDate}if(!t.has("M")){this.data.modificationDate=null}else{this.setModificationDate(t.get("M"));this.data.modificationDate=this.modificationDate}s=t.getRaw("Popup");if(!t.has("C")){this.data.color=null}else{this.setColor(t.getArray("C"));this.data.color=this.color}}else{this.data.titleObj=this._title;this.setCreationDate(e.get("CreationDate"));this.data.creationDate=this.creationDate;s=e.getRaw("Popup");if(!e.has("C")){this.data.color=null}}this.data.popupRef=s instanceof o.Ref?s.toString():null;if(e.has("RC")){this.data.richText=w.XFAFactory.getRichTextAsHtml(e.get("RC"))}}setCreationDate(t){this.creationDate=typeof t==="string"?t:null}_setDefaultAppearance({xref:t,extra:e,strokeColor:s,fillColor:i,blendMode:n,strokeAlpha:r,fillAlpha:c,pointsCallback:l}){let h=Number.MAX_VALUE;let u=Number.MAX_VALUE;let f=Number.MIN_VALUE;let d=Number.MIN_VALUE;const p=["q"];if(e){p.push(e)}if(s){p.push(`${s[0]} ${s[1]} ${s[2]} RG`)}if(i){p.push(`${i[0]} ${i[1]} ${i[2]} rg`)}let g=this.data.quadPoints;if(!g){g=[[{x:this.rectangle[0],y:this.rectangle[3]},{x:this.rectangle[2],y:this.rectangle[3]},{x:this.rectangle[0],y:this.rectangle[1]},{x:this.rectangle[2],y:this.rectangle[1]}]]}for(const t of g){const[e,s,i,n]=l(p,t);h=Math.min(h,e);f=Math.max(f,s);u=Math.min(u,i);d=Math.max(d,n)}p.push("Q");const m=new o.Dict(t);const w=new o.Dict(t);w.set("Subtype",o.Name.get("Form"));const b=new a.StringStream(p.join(" "));b.dict=w;m.set("Fm0",b);const y=new o.Dict(t);if(n){y.set("BM",o.Name.get(n))}if(typeof r==="number"){y.set("CA",r)}if(typeof c==="number"){y.set("ca",c)}const A=new o.Dict(t);A.set("GS0",y);const v=new o.Dict(t);v.set("ExtGState",A);v.set("XObject",m);const x=new o.Dict(t);x.set("Resources",v);const k=this.data.rect=[h,u,f,d];x.set("BBox",k);this.appearance=new a.StringStream("/GS0 gs /Fm0 Do");this.appearance.dict=x;this._streams.push(this.appearance,b)}static async createNewAnnotation(t,e,s,i){const n=e.ref||=t.getNewTemporaryRef();const r=await this.createNewAppearanceStream(e,t,i);const o=[];let a;if(r){const i=t.getNewTemporaryRef();a=this.createNewDict(e,t,{apRef:i});await(0,m.writeObject)(i,r,o,t);s.push({ref:i,data:o.join("")})}else{a=this.createNewDict(e,t,{})}if(Number.isInteger(e.parentTreeId)){a.set("StructParent",e.parentTreeId)}o.length=0;await(0,m.writeObject)(n,a,o,t);return{ref:n,data:o.join("")}}static async createNewPrintAnnotation(t,e,s,i){const n=await this.createNewAppearanceStream(s,e,i);const r=this.createNewDict(s,e,{ap:n});const o=new this.prototype.constructor({dict:r,xref:e,annotationGlobals:t,evaluatorOptions:i.evaluatorOptions});if(s.ref){o.ref=o.refToReplace=s.ref}return o}}e.MarkupAnnotation=M;class C extends k{constructor(t){super(t);const{dict:e,xref:s,annotationGlobals:r}=t;const a=this.data;this._needAppearances=t.needAppearances;a.annotationType=i.AnnotationType.WIDGET;if(a.fieldName===undefined){a.fieldName=this._constructFieldName(e)}if(a.actions===undefined){a.actions=(0,n.collectActions)(s,e,i.AnnotationActionEventType)}let c=(0,n.getInheritableProperty)({dict:e,key:"V",getArray:true});a.fieldValue=this._decodeFormValue(c);const l=(0,n.getInheritableProperty)({dict:e,key:"DV",getArray:true});a.defaultFieldValue=this._decodeFormValue(l);if(c===undefined&&r.xfaDatasets){const t=this._title.str;if(t){this._hasValueFromXFA=true;a.fieldValue=c=r.xfaDatasets.getValue(t)}}if(c===undefined&&a.defaultFieldValue!==null){a.fieldValue=a.defaultFieldValue}a.alternativeText=(0,i.stringToPDFString)(e.get("TU")||"");this.setDefaultAppearance(t);a.hasAppearance||=this._needAppearances&&a.fieldValue!==undefined&&a.fieldValue!==null;const h=(0,n.getInheritableProperty)({dict:e,key:"FT"});a.fieldType=h instanceof o.Name?h.name:null;const u=(0,n.getInheritableProperty)({dict:e,key:"DR"});const f=r.acroForm.get("DR");const d=this.appearance?.dict.get("Resources");this._fieldResources={localResources:u,acroFormResources:f,appearanceResources:d,mergedResources:o.Dict.merge({xref:s,dictArray:[u,d,f],mergeSubDicts:true})};a.fieldFlags=(0,n.getInheritableProperty)({dict:e,key:"Ff"});if(!Number.isInteger(a.fieldFlags)||a.fieldFlags<0){a.fieldFlags=0}a.readOnly=this.hasFieldFlag(i.AnnotationFieldFlag.READONLY);a.required=this.hasFieldFlag(i.AnnotationFieldFlag.REQUIRED);a.hidden=this._hasFlag(a.annotationFlags,i.AnnotationFlag.HIDDEN)||this._hasFlag(a.annotationFlags,i.AnnotationFlag.NOVIEW)}_decodeFormValue(t){if(Array.isArray(t)){return t.filter((t=>typeof t==="string")).map((t=>(0,i.stringToPDFString)(t)))}else if(t instanceof o.Name){return(0,i.stringToPDFString)(t.name)}else if(typeof t==="string"){return(0,i.stringToPDFString)(t)}return null}hasFieldFlag(t){return!!(this.data.fieldFlags&t)}_isViewable(t){return!this._hasFlag(t,i.AnnotationFlag.INVISIBLE)}mustBeViewed(t,e){if(e){return this.viewable}return super.mustBeViewed(t,e)&&!this._hasFlag(this.flags,i.AnnotationFlag.NOVIEW)}getRotationMatrix(t){let e=t?.get(this.data.id)?.rotation;if(e===undefined){e=this.rotation}if(e===0){return i.IDENTITY_MATRIX}const s=this.data.rect[2]-this.data.rect[0];const r=this.data.rect[3]-this.data.rect[1];return(0,n.getRotationMatrix)(e,s,r)}getBorderAndBackgroundAppearances(t){let e=t?.get(this.data.id)?.rotation;if(e===undefined){e=this.rotation}if(!this.backgroundColor&&!this.borderColor){return""}const s=this.data.rect[2]-this.data.rect[0];const i=this.data.rect[3]-this.data.rect[1];const n=e===0||e===180?`0 0 ${s} ${i} re`:`0 0 ${i} ${s} re`;let o="";if(this.backgroundColor){o=`${(0,r.getPdfColor)(this.backgroundColor,true)} ${n} f `}if(this.borderColor){const t=this.borderStyle.width||1;o+=`${t} w ${(0,r.getPdfColor)(this.borderColor,false)} ${n} S `}return o}async getOperatorList(t,e,s,n,r){if(n&&!(this instanceof O)&&!this.data.noHTML&&!this.data.hasOwnCanvas){return{opList:new g.OperatorList,separateForm:true,separateCanvas:false}}if(!this._hasText){return super.getOperatorList(t,e,s,n,r)}const o=await this._getAppearance(t,e,s,r);if(this.appearance&&o===null){return super.getOperatorList(t,e,s,n,r)}const c=new g.OperatorList;if(!this._defaultAppearance||o===null){return{opList:c,separateForm:false,separateCanvas:false}}const l=!!(this.data.hasOwnCanvas&&s&i.RenderingIntentFlag.DISPLAY);const h=[1,0,0,1,0,0];const u=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]];const f=x(this.data.rect,u,h);let d;if(this.oc){d=await t.parseMarkedContentProps(this.oc,null)}if(d!==undefined){c.addOp(i.OPS.beginMarkedContentProps,["OC",d])}c.addOp(i.OPS.beginAnnotation,[this.data.id,this.data.rect,f,this.getRotationMatrix(r),l]);const p=new a.StringStream(o);await t.getOperatorList({stream:p,task:e,resources:this._fieldResources.mergedResources,operatorList:c});c.addOp(i.OPS.endAnnotation,[]);if(d!==undefined){c.addOp(i.OPS.endMarkedContent,[])}return{opList:c,separateForm:false,separateCanvas:l}}_getMKDict(t){const e=new o.Dict(null);if(t){e.set("R",t)}if(this.borderColor){e.set("BC",A(this.borderColor))}if(this.backgroundColor){e.set("BG",A(this.backgroundColor))}return e.size>0?e:null}amendSavedDict(t,e){}async save(t,e,s){const r=s?.get(this.data.id);let c=r?.value,l=r?.rotation;if(c===this.data.fieldValue||c===undefined){if(!this._hasValueFromXFA&&l===undefined){return null}c||=this.data.fieldValue}if(l===undefined&&!this._hasValueFromXFA&&Array.isArray(c)&&Array.isArray(this.data.fieldValue)&&c.length===this.data.fieldValue.length&&c.every(((t,e)=>t===this.data.fieldValue[e]))){return null}if(l===undefined){l=this.rotation}let h=null;if(!this._needAppearances){h=await this._getAppearance(t,e,i.RenderingIntentFlag.SAVE,s);if(h===null){return null}}let u=false;if(h?.needAppearances){u=true;h=null}const{xref:f}=t;const d=f.fetchIfRef(this.ref);if(!(d instanceof o.Dict)){return null}const p=new o.Dict(f);for(const t of d.getKeys()){if(t!=="AP"){p.set(t,d.getRaw(t))}}const g={path:this.data.fieldName,value:c};const w=t=>(0,n.isAscii)(t)?t:(0,n.stringToUTF16String)(t,true);p.set("V",Array.isArray(c)?c.map(w):w(c));this.amendSavedDict(s,p);const b=this._getMKDict(l);if(b){p.set("MK",b)}const y=[];const A=[{ref:this.ref,data:"",xfa:g,needAppearances:u}];if(h!==null){const t=f.getNewTemporaryRef();const e=new o.Dict(f);p.set("AP",e);e.set("N",t);const n=this._getSaveFieldResources(f);const r=new a.StringStream(h);const c=r.dict=new o.Dict(f);c.set("Subtype",o.Name.get("Form"));c.set("Resources",n);c.set("BBox",[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]]);const l=this.getRotationMatrix(s);if(l!==i.IDENTITY_MATRIX){c.set("Matrix",l)}await(0,m.writeObject)(t,r,y,f);A.push({ref:t,data:y.join(""),xfa:null,needAppearances:false});y.length=0}p.set("M",`D:${(0,i.getModificationDate)()}`);await(0,m.writeObject)(this.ref,p,y,f);A[0].data=y.join("");return A}async _getAppearance(t,e,s,o){const a=this.hasFieldFlag(i.AnnotationFieldFlag.PASSWORD);if(a){return null}const c=o?.get(this.data.id);let l,h;if(c){l=c.formattedValue||c.value;h=c.rotation}if(h===undefined&&l===undefined&&!this._needAppearances){if(!this._hasValueFromXFA||this.appearance){return null}}const u=this.getBorderAndBackgroundAppearances(o);if(l===undefined){l=this.data.fieldValue;if(!l){return`/Tx BMC q ${u}Q EMC`}}if(Array.isArray(l)&&l.length===1){l=l[0]}(0,i.assert)(typeof l==="string","Expected `value` to be a string.");l=l.trim();if(this.data.combo){const t=this.data.options.find((({exportValue:t})=>l===t));l=t?.displayValue||l}if(l===""){return`/Tx BMC q ${u}Q EMC`}if(h===undefined){h=this.rotation}let f=-1;let d;if(this.data.multiLine){d=l.split(/\r\n?|\n/).map((t=>t.normalize("NFC")));f=d.length}else{d=[l.replace(/\r\n?|\n/,"").normalize("NFC")]}const p=1;const g=2;let m=this.data.rect[3]-this.data.rect[1];let w=this.data.rect[2]-this.data.rect[0];if(h===90||h===270){[w,m]=[m,w]}if(!this._defaultAppearance){this.data.defaultAppearanceData=(0,r.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g")}let b=await C._getFontData(t,e,this.data.defaultAppearanceData,this._fieldResources.mergedResources);let y,A,v;const x=[];let k=false;for(const t of d){const e=b.encodeString(t);if(e.length>1){k=true}x.push(e.join(""))}if(k&&s&i.RenderingIntentFlag.SAVE){return{needAppearances:true}}if(k&&this._isOffscreenCanvasSupported){const s=this.data.comb?"monospace":"sans-serif";const i=new r.FakeUnicodeFont(t.xref,s);const o=i.createFontResources(d.join(""));const a=o.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){const t=this._fieldResources.mergedResources.get("Font");for(const e of a.getKeys()){t.set(e,a.getRaw(e))}}else{this._fieldResources.mergedResources.set("Font",a)}const c=i.fontName.name;b=await C._getFontData(t,e,{fontName:c,fontSize:0},o);for(let t=0,e=x.length;t<e;t++){x[t]=(0,n.stringToUTF16String)(d[t])}const h=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0;this.data.defaultAppearanceData.fontName=c;[y,A,v]=this._computeFontSize(m-2*p,w-2*g,l,b,f);this.data.defaultAppearanceData=h}else{if(!this._isOffscreenCanvasSupported){(0,i.warn)("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly.")}[y,A,v]=this._computeFontSize(m-2*p,w-2*g,l,b,f)}let S=b.descent;if(isNaN(S)){S=i.BASELINE_FACTOR*v}else{S=Math.max(i.BASELINE_FACTOR*v,Math.abs(S)*A)}const M=Math.min(Math.floor((m-A)/2),p);const _=this.data.textAlignment;if(this.data.multiLine){return this._getMultilineAppearance(y,x,b,A,w,m,_,g,M,S,v,o)}if(this.data.comb){return this._getCombAppearance(y,b,x[0],A,w,m,g,M,S,v,o)}const I=M+S;if(_===0||_>2){return`/Tx BMC q ${u}BT `+y+` 1 0 0 1 ${(0,n.numberToString)(g)} ${(0,n.numberToString)(I)} Tm (${(0,n.escapeString)(x[0])}) Tj`+" ET Q EMC"}const F={shift:0};const O=this._renderText(x[0],b,A,w,_,F,g,I);return`/Tx BMC q ${u}BT `+y+` 1 0 0 1 0 0 Tm ${O}`+" ET Q EMC"}static async _getFontData(t,e,s,i){const n=new g.OperatorList;const r={font:null,clone(){return this}};const{fontName:a,fontSize:c}=s;await t.handleSetFont(i,[a&&o.Name.get(a),c],null,n,e,r,null);return r.font}_getTextWidth(t,e){return e.charsToGlyphs(t).reduce(((t,e)=>t+e.width),0)/1e3}_computeFontSize(t,e,s,n,o){let{fontSize:a}=this.data.defaultAppearanceData;let c=(a||12)*i.LINE_FACTOR,l=Math.round(t/c);if(!a){const h=t=>Math.floor(t*100)/100;if(o===-1){const r=this._getTextWidth(s,n);a=h(Math.min(t/i.LINE_FACTOR,r>e?e/r:Infinity));l=1}else{const r=s.split(/\r\n?|\n/);const u=[];for(const t of r){const e=n.encodeString(t).join("");const s=n.charsToGlyphs(e);const i=n.getCharPositions(e);u.push({line:e,glyphs:s,positions:i})}const f=s=>{let i=0;for(const r of u){const o=this._splitLine(null,n,s,e,r);i+=o.length*s;if(i>t){return true}}return false};l=Math.max(l,o);while(true){c=t/l;a=h(c/i.LINE_FACTOR);if(f(a)){l++;continue}break}}const{fontName:u,fontColor:f}=this.data.defaultAppearanceData;this._defaultAppearance=(0,r.createDefaultAppearance)({fontSize:a,fontName:u,fontColor:f})}return[this._defaultAppearance,a,t/l]}_renderText(t,e,s,i,r,o,a,c){let l;if(r===1){const n=this._getTextWidth(t,e)*s;l=(i-n)/2}else if(r===2){const n=this._getTextWidth(t,e)*s;l=i-n-a}else{l=a}const h=(0,n.numberToString)(l-o.shift);o.shift=l;c=(0,n.numberToString)(c);return`${h} ${c} Td (${(0,n.escapeString)(t)}) Tj`}_getSaveFieldResources(t){const{localResources:e,appearanceResources:s,acroFormResources:i}=this._fieldResources;const n=this.data.defaultAppearanceData?.fontName;if(!n){return e||o.Dict.empty}for(const t of[e,s]){if(t instanceof o.Dict){const e=t.get("Font");if(e instanceof o.Dict&&e.has(n)){return t}}}if(i instanceof o.Dict){const s=i.get("Font");if(s instanceof o.Dict&&s.has(n)){const i=new o.Dict(t);i.set(n,s.getRaw(n));const r=new o.Dict(t);r.set("Font",i);return o.Dict.merge({xref:t,dictArray:[r,e],mergeSubDicts:true})}}return e||o.Dict.empty}getFieldObject(){return null}}class _ extends C{constructor(t){super(t);this.data.hasOwnCanvas=this.data.readOnly&&!this.data.noHTML;this._hasText=true;const e=t.dict;if(typeof this.data.fieldValue!=="string"){this.data.fieldValue=""}let s=(0,n.getInheritableProperty)({dict:e,key:"Q"});if(!Number.isInteger(s)||s<0||s>2){s=null}this.data.textAlignment=s;let r=(0,n.getInheritableProperty)({dict:e,key:"MaxLen"});if(!Number.isInteger(r)||r<0){r=0}this.data.maxLen=r;this.data.multiLine=this.hasFieldFlag(i.AnnotationFieldFlag.MULTILINE);this.data.comb=this.hasFieldFlag(i.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(i.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(i.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(i.AnnotationFieldFlag.FILESELECT)&&this.data.maxLen!==0;this.data.doNotScroll=this.hasFieldFlag(i.AnnotationFieldFlag.DONOTSCROLL)}get hasTextContent(){return!!this.appearance&&!this._needAppearances}_getCombAppearance(t,e,s,i,r,o,a,c,l,h,u){const f=r/this.data.maxLen;const d=this.getBorderAndBackgroundAppearances(u);const p=[];const g=e.getCharPositions(s);for(const[t,e]of g){p.push(`(${(0,n.escapeString)(s.substring(t,e))}) Tj`)}const m=p.join(` ${(0,n.numberToString)(f)} 0 Td `);return`/Tx BMC q ${d}BT `+t+` 1 0 0 1 ${(0,n.numberToString)(a)} ${(0,n.numberToString)(c+l)} Tm ${m}`+" ET Q EMC"}_getMultilineAppearance(t,e,s,i,r,o,a,c,l,h,u,f){const d=[];const p=r-2*c;const g={shift:0};for(let t=0,n=e.length;t<n;t++){const n=e[t];const o=this._splitLine(n,s,i,p);for(let e=0,n=o.length;e<n;e++){const n=o[e];const f=t===0&&e===0?-l-(u-h):-u;d.push(this._renderText(n,s,i,r,a,g,c,f))}}const m=this.getBorderAndBackgroundAppearances(f);const w=d.join("\n");return`/Tx BMC q ${m}BT `+t+` 1 0 0 1 0 ${(0,n.numberToString)(o)} Tm ${w}`+" ET Q EMC"}_splitLine(t,e,s,i,n={}){t=n.line||t;const r=n.glyphs||e.charsToGlyphs(t);if(r.length<=1){return[t]}const o=n.positions||e.getCharPositions(t);const a=s/1e3;const c=[];let l=-1,h=-1,u=-1,f=0,d=0;for(let e=0,s=r.length;e<s;e++){const[s,n]=o[e];const p=r[e];const g=p.width*a;if(p.unicode===" "){if(d+g>i){c.push(t.substring(f,s));f=s;d=g;l=-1;u=-1}else{d+=g;l=s;h=n;u=e}}else if(d+g>i){if(l!==-1){c.push(t.substring(f,h));f=h;e=u+1;l=-1;d=0}else{c.push(t.substring(f,s));f=s;d=g}}else{d+=g}}if(f<t.length){c.push(t.substring(f,t.length))}return c}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.hasFieldFlag(i.AnnotationFieldFlag.PASSWORD),charLimit:this.data.maxLen,comb:this.data.comb,editable:!this.data.readOnly,hidden:this.data.hidden,name:this.data.fieldName,rect:this.data.rect,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:"text"}}}class I extends C{constructor(t){super(t);this.checkedAppearance=null;this.uncheckedAppearance=null;this.data.checkBox=!this.hasFieldFlag(i.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(i.AnnotationFieldFlag.PUSHBUTTON);this.data.radioButton=this.hasFieldFlag(i.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(i.AnnotationFieldFlag.PUSHBUTTON);this.data.pushButton=this.hasFieldFlag(i.AnnotationFieldFlag.PUSHBUTTON);this.data.isTooltipOnly=false;if(this.data.checkBox){this._processCheckBox(t)}else if(this.data.radioButton){this._processRadioButton(t)}else if(this.data.pushButton){this.data.hasOwnCanvas=true;this._processPushButton(t)}else{(0,i.warn)("Invalid field flags for button widget annotation")}}async getOperatorList(t,e,s,n,r){if(this.data.pushButton){return super.getOperatorList(t,e,s,false,r)}let o=null;let a=null;if(r){const t=r.get(this.data.id);o=t?t.value:null;a=t?t.rotation:null}if(o===null&&this.appearance){return super.getOperatorList(t,e,s,n,r)}if(o===null||o===undefined){o=this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue}const c=o?this.checkedAppearance:this.uncheckedAppearance;if(c){const o=this.appearance;const l=c.dict.getArray("Matrix")||i.IDENTITY_MATRIX;if(a){c.dict.set("Matrix",this.getRotationMatrix(r))}this.appearance=c;const h=super.getOperatorList(t,e,s,n,r);this.appearance=o;c.dict.set("Matrix",l);return h}return{opList:new g.OperatorList,separateForm:false,separateCanvas:false}}async save(t,e,s){if(this.data.checkBox){return this._saveCheckbox(t,e,s)}if(this.data.radioButton){return this._saveRadioButton(t,e,s)}return null}async _saveCheckbox(t,e,s){if(!s){return null}const n=s.get(this.data.id);let r=n?.rotation,a=n?.value;if(r===undefined){if(a===undefined){return null}const t=this.data.fieldValue===this.data.exportValue;if(t===a){return null}}const c=t.xref.fetchIfRef(this.ref);if(!(c instanceof o.Dict)){return null}if(r===undefined){r=this.rotation}if(a===undefined){a=this.data.fieldValue===this.data.exportValue}const l={path:this.data.fieldName,value:a?this.data.exportValue:""};const h=o.Name.get(a?this.data.exportValue:"Off");c.set("V",h);c.set("AS",h);c.set("M",`D:${(0,i.getModificationDate)()}`);const u=this._getMKDict(r);if(u){c.set("MK",u)}const f=[];await(0,m.writeObject)(this.ref,c,f,t.xref);return[{ref:this.ref,data:f.join(""),xfa:l}]}async _saveRadioButton(t,e,s){if(!s){return null}const n=s.get(this.data.id);let r=n?.rotation,a=n?.value;if(r===undefined){if(a===undefined){return null}const t=this.data.fieldValue===this.data.buttonValue;if(t===a){return null}}const c=t.xref.fetchIfRef(this.ref);if(!(c instanceof o.Dict)){return null}if(a===undefined){a=this.data.fieldValue===this.data.buttonValue}if(r===undefined){r=this.rotation}const l={path:this.data.fieldName,value:a?this.data.buttonValue:""};const h=o.Name.get(a?this.data.buttonValue:"Off");const u=[];let f=null;if(a){if(this.parent instanceof o.Ref){const e=t.xref.fetch(this.parent);e.set("V",h);await(0,m.writeObject)(this.parent,e,u,t.xref);f=u.join("");u.length=0}else if(this.parent instanceof o.Dict){this.parent.set("V",h)}}c.set("AS",h);c.set("M",`D:${(0,i.getModificationDate)()}`);const d=this._getMKDict(r);if(d){c.set("MK",d)}await(0,m.writeObject)(this.ref,c,u,t.xref);const p=[{ref:this.ref,data:u.join(""),xfa:l}];if(f){p.push({ref:this.parent,data:f,xfa:null})}return p}_getDefaultCheckedAppearance(t,e){const s=this.data.rect[2]-this.data.rect[0];const r=this.data.rect[3]-this.data.rect[1];const c=[0,0,s,r];const l=.8;const h=Math.min(s,r)*l;let u,f;if(e==="check"){u={width:.755*h,height:.705*h};f="3"}else if(e==="disc"){u={width:.791*h,height:.705*h};f="l"}else{(0,i.unreachable)(`_getDefaultCheckedAppearance - unsupported type: ${e}`)}const d=(0,n.numberToString)((s-u.width)/2);const p=(0,n.numberToString)((r-u.height)/2);const g=`q BT /PdfJsZaDb ${h} Tf 0 g ${d} ${p} Td (${f}) Tj ET Q`;const m=new o.Dict(t.xref);m.set("FormType",1);m.set("Subtype",o.Name.get("Form"));m.set("Type",o.Name.get("XObject"));m.set("BBox",c);m.set("Matrix",[1,0,0,1,0,0]);m.set("Length",g.length);const w=new o.Dict(t.xref);const b=new o.Dict(t.xref);b.set("PdfJsZaDb",this.fallbackFontDict);w.set("Font",b);m.set("Resources",w);this.checkedAppearance=new a.StringStream(g);this.checkedAppearance.dict=m;this._streams.push(this.checkedAppearance)}_processCheckBox(t){const e=t.dict.get("AP");if(!(e instanceof o.Dict)){return}const s=e.get("N");if(!(s instanceof o.Dict)){return}const i=this._decodeFormValue(t.dict.get("AS"));if(typeof i==="string"){this.data.fieldValue=i}const n=this.data.fieldValue!==null&&this.data.fieldValue!=="Off"?this.data.fieldValue:"Yes";const r=s.getKeys();if(r.length===0){r.push("Off",n)}else if(r.length===1){if(r[0]==="Off"){r.push(n)}else{r.unshift("Off")}}else if(r.includes(n)){r.length=0;r.push("Off",n)}else{const t=r.find((t=>t!=="Off"));r.length=0;r.push("Off",t)}if(!r.includes(this.data.fieldValue)){this.data.fieldValue="Off"}this.data.exportValue=r[1];const a=s.get(this.data.exportValue);this.checkedAppearance=a instanceof c.BaseStream?a:null;const l=s.get("Off");this.uncheckedAppearance=l instanceof c.BaseStream?l:null;if(this.checkedAppearance){this._streams.push(this.checkedAppearance)}else{this._getDefaultCheckedAppearance(t,"check")}if(this.uncheckedAppearance){this._streams.push(this.uncheckedAppearance)}this._fallbackFontDict=this.fallbackFontDict;if(this.data.defaultFieldValue===null){this.data.defaultFieldValue="Off"}}_processRadioButton(t){this.data.fieldValue=this.data.buttonValue=null;const e=t.dict.get("Parent");if(e instanceof o.Dict){this.parent=t.dict.getRaw("Parent");const s=e.get("V");if(s instanceof o.Name){this.data.fieldValue=this._decodeFormValue(s)}}const s=t.dict.get("AP");if(!(s instanceof o.Dict)){return}const i=s.get("N");if(!(i instanceof o.Dict)){return}for(const t of i.getKeys()){if(t!=="Off"){this.data.buttonValue=this._decodeFormValue(t);break}}const n=i.get(this.data.buttonValue);this.checkedAppearance=n instanceof c.BaseStream?n:null;const r=i.get("Off");this.uncheckedAppearance=r instanceof c.BaseStream?r:null;if(this.checkedAppearance){this._streams.push(this.checkedAppearance)}else{this._getDefaultCheckedAppearance(t,"disc")}if(this.uncheckedAppearance){this._streams.push(this.uncheckedAppearance)}this._fallbackFontDict=this.fallbackFontDict;if(this.data.defaultFieldValue===null){this.data.defaultFieldValue="Off"}}_processPushButton(t){const{dict:e,annotationGlobals:s}=t;if(!e.has("A")&&!e.has("AA")&&!this.data.alternativeText){(0,i.warn)("Push buttons without action dictionaries are not supported");return}this.data.isTooltipOnly=!e.has("A")&&!e.has("AA");h.Catalog.parseDestDictionary({destDict:e,resultObj:this.data,docBaseUrl:s.baseUrl,docAttachments:s.attachments})}getFieldObject(){let t="button";let e;if(this.data.checkBox){t="checkbox";e=this.data.exportValue}else if(this.data.radioButton){t="radiobutton";e=this.data.buttonValue}return{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:e,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}get fallbackFontDict(){const t=new o.Dict;t.set("BaseFont",o.Name.get("ZapfDingbats"));t.set("Type",o.Name.get("FallbackType"));t.set("Subtype",o.Name.get("FallbackType"));t.set("Encoding",o.Name.get("ZapfDingbatsEncoding"));return(0,i.shadow)(this,"fallbackFontDict",t)}}class F extends C{constructor(t){super(t);const{dict:e,xref:s}=t;this.indices=e.getArray("I");this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0;this.data.options=[];const r=(0,n.getInheritableProperty)({dict:e,key:"Opt"});if(Array.isArray(r)){for(let t=0,e=r.length;t<e;t++){const e=s.fetchIfRef(r[t]);const i=Array.isArray(e);this.data.options[t]={exportValue:this._decodeFormValue(i?s.fetchIfRef(e[0]):e),displayValue:this._decodeFormValue(i?s.fetchIfRef(e[1]):e)}}}if(!this.hasIndices){if(typeof this.data.fieldValue==="string"){this.data.fieldValue=[this.data.fieldValue]}else if(!this.data.fieldValue){this.data.fieldValue=[]}}else{this.data.fieldValue=[];const t=this.data.options.length;for(const e of this.indices){if(Number.isInteger(e)&&e>=0&&e<t){this.data.fieldValue.push(this.data.options[e].exportValue)}}}this.data.combo=this.hasFieldFlag(i.AnnotationFieldFlag.COMBO);this.data.multiSelect=this.hasFieldFlag(i.AnnotationFieldFlag.MULTISELECT);this._hasText=true}getFieldObject(){const t=this.data.combo?"combobox":"listbox";const e=this.data.fieldValue.length>0?this.data.fieldValue[0]:null;return{id:this.data.id,value:e,defaultValue:this.data.defaultFieldValue,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,numItems:this.data.fieldValue.length,multipleSelection:this.data.multiSelect,hidden:this.data.hidden,actions:this.data.actions,items:this.data.options,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}amendSavedDict(t,e){if(!this.hasIndices){return}let s=t?.get(this.data.id)?.value;if(!Array.isArray(s)){s=[s]}const i=[];const{options:n}=this.data;for(let t=0,e=0,r=n.length;t<r;t++){if(n[t].exportValue===s[e]){i.push(t);e+=1}}e.set("I",i)}async _getAppearance(t,e,s,n){if(this.data.combo){return super._getAppearance(t,e,s,n)}let o,a;const c=n?.get(this.data.id);if(c){a=c.rotation;o=c.value}if(a===undefined&&o===undefined&&!this._needAppearances){return null}if(o===undefined){o=this.data.fieldValue}else if(!Array.isArray(o)){o=[o]}const l=1;const h=2;let u=this.data.rect[3]-this.data.rect[1];let f=this.data.rect[2]-this.data.rect[0];if(a===90||a===270){[f,u]=[u,f]}const d=this.data.options.length;const p=[];for(let t=0;t<d;t++){const{exportValue:e}=this.data.options[t];if(o.includes(e)){p.push(t)}}if(!this._defaultAppearance){this.data.defaultAppearanceData=(0,r.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g")}const g=await C._getFontData(t,e,this.data.defaultAppearanceData,this._fieldResources.mergedResources);let m;let{fontSize:w}=this.data.defaultAppearanceData;if(!w){const t=(u-l)/d;let e=-1;let s;for(const{displayValue:t}of this.data.options){const i=this._getTextWidth(t,g);if(i>e){e=i;s=t}}[m,w]=this._computeFontSize(t,f-2*h,s,g,-1)}else{m=this._defaultAppearance}const b=w*i.LINE_FACTOR;const y=(b-w)/2;const A=Math.floor(u/b);let v=0;if(p.length>0){const t=Math.min(...p);const e=Math.max(...p);v=Math.max(0,e-A+1);if(v>t){v=t}}const x=Math.min(v+A+1,d);const k=["/Tx BMC q",`1 1 ${f} ${u} re W n`];if(p.length){k.push("0.600006 0.756866 0.854904 rg");for(const t of p){if(v<=t&&t<x){k.push(`1 ${u-(t-v+1)*b} ${f} ${b} re f`)}}}k.push("BT",m,`1 0 0 1 0 ${u} Tm`);const S={shift:0};for(let t=v;t<x;t++){const{displayValue:e}=this.data.options[t];const s=t===v?y:0;k.push(this._renderText(e,g,w,f,0,S,h,-b+s))}k.push("ET Q EMC");return k.join("\n")}}class O extends C{constructor(t){super(t);this.data.fieldValue=null;this.data.hasOwnCanvas=this.data.noRotate}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}class E extends M{constructor(t){const e=22;super(t);this.data.noRotate=true;this.data.hasOwnCanvas=this.data.noRotate;const{dict:s}=t;this.data.annotationType=i.AnnotationType.TEXT;if(this.data.hasAppearance){this.data.name="NoIcon"}else{this.data.rect[1]=this.data.rect[3]-e;this.data.rect[2]=this.data.rect[0]+e;this.data.name=s.has("Name")?s.get("Name").name:"Note"}if(s.has("State")){this.data.state=s.get("State")||null;this.data.stateModel=s.get("StateModel")||null}else{this.data.state=null;this.data.stateModel=null}}}class T extends k{constructor(t){super(t);const{dict:e,annotationGlobals:s}=t;this.data.annotationType=i.AnnotationType.LINK;const n=v(e,this.rectangle);if(n){this.data.quadPoints=n}this.data.borderColor||=this.data.color;h.Catalog.parseDestDictionary({destDict:e,resultObj:this.data,docBaseUrl:s.baseUrl,docAttachments:s.attachments})}}class D extends k{constructor(t){super(t);const{dict:e}=t;this.data.annotationType=i.AnnotationType.POPUP;if(this.data.rect[0]===this.data.rect[2]||this.data.rect[1]===this.data.rect[3]){this.data.rect=null}let s=e.get("Parent");if(!s){(0,i.warn)("Popup annotation has a missing or invalid parent annotation.");return}const n=s.getArray("Rect");this.data.parentRect=Array.isArray(n)&&n.length===4?i.Util.normalizeRect(n):null;const r=s.get("RT");if((0,o.isName)(r,i.AnnotationReplyType.GROUP)){s=s.get("IRT")}if(!s.has("M")){this.data.modificationDate=null}else{this.setModificationDate(s.get("M"));this.data.modificationDate=this.modificationDate}if(!s.has("C")){this.data.color=null}else{this.setColor(s.getArray("C"));this.data.color=this.color}if(!this.viewable){const t=s.get("F");if(this._isViewable(t)){this.setFlags(t)}}this.setTitle(s.get("T"));this.data.titleObj=this._title;this.setContents(s.get("Contents"));this.data.contentsObj=this._contents;if(s.has("RC")){this.data.richText=w.XFAFactory.getRichTextAsHtml(s.get("RC"))}this.data.open=!!e.get("Open")}}e.PopupAnnotation=D;class P extends M{constructor(t){super(t);this.data.hasOwnCanvas=true;const{evaluatorOptions:e,xref:s}=t;this.data.annotationType=i.AnnotationType.FREETEXT;this.setDefaultAppearance(t);if(this.appearance){const{fontColor:t,fontSize:i}=(0,r.parseAppearanceStream)(this.appearance,e,s);this.data.defaultAppearanceData.fontColor=t;this.data.defaultAppearanceData.fontSize=i||10}else if(this._isOffscreenCanvasSupported){const e=t.dict.get("CA");const i=new r.FakeUnicodeFont(s,"sans-serif");this.data.defaultAppearanceData.fontSize||=10;const{fontColor:n,fontSize:o}=this.data.defaultAppearanceData;this.appearance=i.createAppearance(this._contents.str,this.rectangle,this.rotation,o,n,e);this._streams.push(this.appearance,r.FakeUnicodeFont.toUnicodeStream)}else{(0,i.warn)("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}}get hasTextContent(){return!!this.appearance}static createNewDict(t,e,{apRef:s,ap:a}){const{color:c,fontSize:l,rect:h,rotation:u,user:f,value:d}=t;const p=new o.Dict(e);p.set("Type",o.Name.get("Annot"));p.set("Subtype",o.Name.get("FreeText"));p.set("CreationDate",`D:${(0,i.getModificationDate)()}`);p.set("Rect",h);const g=`/Helv ${l} Tf ${(0,r.getPdfColor)(c,true)}`;p.set("DA",g);p.set("Contents",(0,n.isAscii)(d)?d:(0,n.stringToUTF16String)(d,true));p.set("F",4);p.set("Border",[0,0,0]);p.set("Rotate",u);if(f){p.set("T",(0,n.isAscii)(f)?f:(0,n.stringToUTF16String)(f,true))}if(s||a){const t=new o.Dict(e);p.set("AP",t);if(s){t.set("N",s)}else{t.set("N",a)}}return p}static async createNewAppearanceStream(t,e,s){const{baseFontRef:c,evaluator:l,task:h}=s;const{color:u,fontSize:f,rect:d,rotation:p,value:g}=t;const m=new o.Dict(e);const w=new o.Dict(e);if(c){w.set("Helv",c)}else{const t=new o.Dict(e);t.set("BaseFont",o.Name.get("Helvetica"));t.set("Type",o.Name.get("Font"));t.set("Subtype",o.Name.get("Type1"));t.set("Encoding",o.Name.get("WinAnsiEncoding"));w.set("Helv",t)}m.set("Font",w);const b=await C._getFontData(l,h,{fontName:"Helv",fontSize:f},m);const[y,A,v,x]=d;let k=v-y;let S=x-A;if(p%180!==0){[k,S]=[S,k]}const M=g.split("\n");const _=f/1e3;let I=-Infinity;const F=[];for(let t of M){const e=b.encodeString(t);if(e.length>1){return null}t=e.join("");F.push(t);let s=0;const i=b.charsToGlyphs(t);for(const t of i){s+=t.width*_}I=Math.max(I,s)}let O=1;if(I>k){O=k/I}let E=1;const T=i.LINE_FACTOR*f;const D=(i.LINE_FACTOR-i.LINE_DESCENT_FACTOR)*f;const P=T*M.length;if(P>S){E=S/P}const R=Math.min(O,E);const N=f*R;let L,B,$;switch(p){case 0:$=[1,0,0,1];B=[d[0],d[1],k,S];L=[d[0],d[3]-D];break;case 90:$=[0,1,-1,0];B=[d[1],-d[2],k,S];L=[d[1],-d[0]-D];break;case 180:$=[-1,0,0,-1];B=[-d[2],-d[3],k,S];L=[-d[2],-d[1]-D];break;case 270:$=[0,-1,1,0];B=[-d[3],d[0],k,S];L=[-d[3],d[2]-D];break}const U=["q",`${$.join(" ")} 0 0 cm`,`${B.join(" ")} re W n`,`BT`,`${(0,r.getPdfColor)(u,true)}`,`0 Tc /Helv ${(0,n.numberToString)(N)} Tf`];U.push(`${L.join(" ")} Td (${(0,n.escapeString)(F[0])}) Tj`);const j=(0,n.numberToString)(T);for(let t=1,e=F.length;t<e;t++){const e=F[t];U.push(`0 -${j} Td (${(0,n.escapeString)(e)}) Tj`)}U.push("ET","Q");const H=U.join("\n");const G=new o.Dict(e);G.set("FormType",1);G.set("Subtype",o.Name.get("Form"));G.set("Type",o.Name.get("XObject"));G.set("BBox",d);G.set("Resources",m);G.set("Matrix",[1,0,0,1,-d[0],-d[1]]);const q=new a.StringStream(H);q.dict=G;return q}}class R extends M{constructor(t){super(t);const{dict:e,xref:s}=t;this.data.annotationType=i.AnnotationType.LINE;this.data.hasOwnCanvas=this.data.noRotate;const n=e.getArray("L");this.data.lineCoordinates=i.Util.normalizeRect(n);this.setLineEndings(e.getArray("LE"));this.data.lineEndings=this.lineEndings;if(!this.appearance){const t=this.color?A(this.color):[0,0,0];const r=e.get("CA");const o=y(e.getArray("IC"),null);const a=o?A(o):null;const c=a?r:null;const l=this.borderStyle.width||1,h=2*l;const u=[this.data.lineCoordinates[0]-h,this.data.lineCoordinates[1]-h,this.data.lineCoordinates[2]+h,this.data.lineCoordinates[3]+h];if(!i.Util.intersect(this.rectangle,u)){this.rectangle=u}this._setDefaultAppearance({xref:s,extra:`${l} w`,strokeColor:t,fillColor:a,strokeAlpha:r,fillAlpha:c,pointsCallback:(t,e)=>{t.push(`${n[0]} ${n[1]} m`,`${n[2]} ${n[3]} l`,"S");return[e[0].x-l,e[1].x+l,e[3].y-l,e[1].y+l]}})}}}class N extends M{constructor(t){super(t);const{dict:e,xref:s}=t;this.data.annotationType=i.AnnotationType.SQUARE;this.data.hasOwnCanvas=this.data.noRotate;if(!this.appearance){const t=this.color?A(this.color):[0,0,0];const i=e.get("CA");const n=y(e.getArray("IC"),null);const r=n?A(n):null;const o=r?i:null;if(this.borderStyle.width===0&&!r){return}this._setDefaultAppearance({xref:s,extra:`${this.borderStyle.width} w`,strokeColor:t,fillColor:r,strokeAlpha:i,fillAlpha:o,pointsCallback:(t,e)=>{const s=e[2].x+this.borderStyle.width/2;const i=e[2].y+this.borderStyle.width/2;const n=e[3].x-e[2].x-this.borderStyle.width;const o=e[1].y-e[3].y-this.borderStyle.width;t.push(`${s} ${i} ${n} ${o} re`);if(r){t.push("B")}else{t.push("S")}return[e[0].x,e[1].x,e[3].y,e[1].y]}})}}}class L extends M{constructor(t){super(t);const{dict:e,xref:s}=t;this.data.annotationType=i.AnnotationType.CIRCLE;if(!this.appearance){const t=this.color?A(this.color):[0,0,0];const i=e.get("CA");const n=y(e.getArray("IC"),null);const r=n?A(n):null;const o=r?i:null;if(this.borderStyle.width===0&&!r){return}const a=4/3*Math.tan(Math.PI/(2*4));this._setDefaultAppearance({xref:s,extra:`${this.borderStyle.width} w`,strokeColor:t,fillColor:r,strokeAlpha:i,fillAlpha:o,pointsCallback:(t,e)=>{const s=e[0].x+this.borderStyle.width/2;const i=e[0].y-this.borderStyle.width/2;const n=e[3].x-this.borderStyle.width/2;const o=e[3].y+this.borderStyle.width/2;const c=s+(n-s)/2;const l=i+(o-i)/2;const h=(n-s)/2*a;const u=(o-i)/2*a;t.push(`${c} ${o} m`,`${c+h} ${o} ${n} ${l+u} ${n} ${l} c`,`${n} ${l-u} ${c+h} ${i} ${c} ${i} c`,`${c-h} ${i} ${s} ${l-u} ${s} ${l} c`,`${s} ${l+u} ${c-h} ${o} ${c} ${o} c`,"h");if(r){t.push("B")}else{t.push("S")}return[e[0].x,e[1].x,e[3].y,e[1].y]}})}}}class B extends M{constructor(t){super(t);const{dict:e,xref:s}=t;this.data.annotationType=i.AnnotationType.POLYLINE;this.data.hasOwnCanvas=this.data.noRotate;this.data.vertices=[];if(!(this instanceof $)){this.setLineEndings(e.getArray("LE"));this.data.lineEndings=this.lineEndings}const n=e.getArray("Vertices");if(!Array.isArray(n)){return}for(let t=0,e=n.length;t<e;t+=2){this.data.vertices.push({x:n[t],y:n[t+1]})}if(!this.appearance){const t=this.color?A(this.color):[0,0,0];const n=e.get("CA");const r=this.borderStyle.width||1,o=2*r;const a=[Infinity,Infinity,-Infinity,-Infinity];for(const t of this.data.vertices){a[0]=Math.min(a[0],t.x-o);a[1]=Math.min(a[1],t.y-o);a[2]=Math.max(a[2],t.x+o);a[3]=Math.max(a[3],t.y+o)}if(!i.Util.intersect(this.rectangle,a)){this.rectangle=a}this._setDefaultAppearance({xref:s,extra:`${r} w`,strokeColor:t,strokeAlpha:n,pointsCallback:(t,e)=>{const s=this.data.vertices;for(let e=0,i=s.length;e<i;e++){t.push(`${s[e].x} ${s[e].y} ${e===0?"m":"l"}`)}t.push("S");return[e[0].x,e[1].x,e[3].y,e[1].y]}})}}}class $ extends B{constructor(t){super(t);this.data.annotationType=i.AnnotationType.POLYGON}}class U extends M{constructor(t){super(t);this.data.annotationType=i.AnnotationType.CARET}}class j extends M{constructor(t){super(t);this.data.hasOwnCanvas=this.data.noRotate;const{dict:e,xref:s}=t;this.data.annotationType=i.AnnotationType.INK;this.data.inkLists=[];const n=e.getArray("InkList");if(!Array.isArray(n)){return}for(let t=0,e=n.length;t<e;++t){this.data.inkLists.push([]);for(let e=0,i=n[t].length;e<i;e+=2){this.data.inkLists[t].push({x:s.fetchIfRef(n[t][e]),y:s.fetchIfRef(n[t][e+1])})}}if(!this.appearance){const t=this.color?A(this.color):[0,0,0];const n=e.get("CA");const r=this.borderStyle.width||1,o=2*r;const a=[Infinity,Infinity,-Infinity,-Infinity];for(const t of this.data.inkLists){for(const e of t){a[0]=Math.min(a[0],e.x-o);a[1]=Math.min(a[1],e.y-o);a[2]=Math.max(a[2],e.x+o);a[3]=Math.max(a[3],e.y+o)}}if(!i.Util.intersect(this.rectangle,a)){this.rectangle=a}this._setDefaultAppearance({xref:s,extra:`${r} w`,strokeColor:t,strokeAlpha:n,pointsCallback:(t,e)=>{for(const e of this.data.inkLists){for(let s=0,i=e.length;s<i;s++){t.push(`${e[s].x} ${e[s].y} ${s===0?"m":"l"}`)}t.push("S")}return[e[0].x,e[1].x,e[3].y,e[1].y]}})}}static createNewDict(t,e,{apRef:s,ap:n}){const{color:r,opacity:a,paths:c,rect:l,rotation:h,thickness:u}=t;const f=new o.Dict(e);f.set("Type",o.Name.get("Annot"));f.set("Subtype",o.Name.get("Ink"));f.set("CreationDate",`D:${(0,i.getModificationDate)()}`);f.set("Rect",l);f.set("InkList",c.map((t=>t.points)));f.set("F",4);f.set("Rotate",h);const d=new o.Dict(e);f.set("BS",d);d.set("W",u);f.set("C",Array.from(r,(t=>t/255)));f.set("CA",a);const p=new o.Dict(e);f.set("AP",p);if(s){p.set("N",s)}else{p.set("N",n)}return f}static async createNewAppearanceStream(t,e,s){const{color:i,rect:c,paths:l,thickness:h,opacity:u}=t;const f=[`${h} w 1 J 1 j`,`${(0,r.getPdfColor)(i,false)}`];if(u!==1){f.push("/R0 gs")}const d=[];for(const{bezier:t}of l){d.length=0;d.push(`${(0,n.numberToString)(t[0])} ${(0,n.numberToString)(t[1])} m`);for(let e=2,s=t.length;e<s;e+=6){const s=t.slice(e,e+6).map(n.numberToString).join(" ");d.push(`${s} c`)}d.push("S");f.push(d.join("\n"))}const p=f.join("\n");const g=new o.Dict(e);g.set("FormType",1);g.set("Subtype",o.Name.get("Form"));g.set("Type",o.Name.get("XObject"));g.set("BBox",c);g.set("Length",p.length);if(u!==1){const t=new o.Dict(e);const s=new o.Dict(e);const i=new o.Dict(e);i.set("CA",u);i.set("Type",o.Name.get("ExtGState"));s.set("R0",i);t.set("ExtGState",s);g.set("Resources",t)}const m=new a.StringStream(p);m.dict=g;return m}}class H extends M{constructor(t){super(t);const{dict:e,xref:s}=t;this.data.annotationType=i.AnnotationType.HIGHLIGHT;const n=this.data.quadPoints=v(e,null);if(n){const t=this.appearance?.dict.get("Resources");if(!this.appearance||!t?.has("ExtGState")){if(this.appearance){(0,i.warn)("HighlightAnnotation - ignoring built-in appearance stream.")}const t=this.color?A(this.color):[1,1,0];const n=e.get("CA");this._setDefaultAppearance({xref:s,fillColor:t,blendMode:"Multiply",fillAlpha:n,pointsCallback:(t,e)=>{t.push(`${e[0].x} ${e[0].y} m`,`${e[1].x} ${e[1].y} l`,`${e[3].x} ${e[3].y} l`,`${e[2].x} ${e[2].y} l`,"f");return[e[0].x,e[1].x,e[3].y,e[1].y]}})}}else{this.data.popupRef=null}}}class G extends M{constructor(t){super(t);const{dict:e,xref:s}=t;this.data.annotationType=i.AnnotationType.UNDERLINE;const n=this.data.quadPoints=v(e,null);if(n){if(!this.appearance){const t=this.color?A(this.color):[0,0,0];const i=e.get("CA");this._setDefaultAppearance({xref:s,extra:"[] 0 d 0.571 w",strokeColor:t,strokeAlpha:i,pointsCallback:(t,e)=>{t.push(`${e[2].x} ${e[2].y+1.3} m`,`${e[3].x} ${e[3].y+1.3} l`,"S");return[e[0].x,e[1].x,e[3].y,e[1].y]}})}}else{this.data.popupRef=null}}}class q extends M{constructor(t){super(t);const{dict:e,xref:s}=t;this.data.annotationType=i.AnnotationType.SQUIGGLY;const n=this.data.quadPoints=v(e,null);if(n){if(!this.appearance){const t=this.color?A(this.color):[0,0,0];const i=e.get("CA");this._setDefaultAppearance({xref:s,extra:"[] 0 d 1 w",strokeColor:t,strokeAlpha:i,pointsCallback:(t,e)=>{const s=(e[0].y-e[2].y)/6;let i=s;let n=e[2].x;const r=e[2].y;const o=e[3].x;t.push(`${n} ${r+i} m`);do{n+=2;i=i===0?s:0;t.push(`${n} ${r+i} l`)}while(n<o);t.push("S");return[e[2].x,o,r-2*s,r+2*s]}})}}else{this.data.popupRef=null}}}class X extends M{constructor(t){super(t);const{dict:e,xref:s}=t;this.data.annotationType=i.AnnotationType.STRIKEOUT;const n=this.data.quadPoints=v(e,null);if(n){if(!this.appearance){const t=this.color?A(this.color):[0,0,0];const i=e.get("CA");this._setDefaultAppearance({xref:s,extra:"[] 0 d 1 w",strokeColor:t,strokeAlpha:i,pointsCallback:(t,e)=>{t.push(`${(e[0].x+e[2].x)/2} `+`${(e[0].y+e[2].y)/2} m`,`${(e[1].x+e[3].x)/2} `+`${(e[1].y+e[3].y)/2} l`,"S");return[e[0].x,e[1].x,e[3].y,e[1].y]}})}}else{this.data.popupRef=null}}}class W extends M{constructor(t){super(t);this.data.annotationType=i.AnnotationType.STAMP;this.data.hasOwnCanvas=this.data.noRotate}static async createImage(t,e){const{width:s,height:n}=t;const r=new OffscreenCanvas(s,n);const c=r.getContext("2d",{alpha:true});c.drawImage(t,0,0);const l=c.getImageData(0,0,s,n).data;const h=new Uint32Array(l.buffer);const u=h.some(i.FeatureTest.isLittleEndian?t=>t>>>24!==255:t=>(t&255)!==255);if(u){c.fillStyle="white";c.fillRect(0,0,s,n);c.drawImage(t,0,0)}const f=r.convertToBlob({type:"image/jpeg",quality:1}).then((t=>t.arrayBuffer()));const d=o.Name.get("XObject");const p=o.Name.get("Image");const g=new o.Dict(e);g.set("Type",d);g.set("Subtype",p);g.set("BitsPerComponent",8);g.set("ColorSpace",o.Name.get("DeviceRGB"));g.set("Filter",o.Name.get("DCTDecode"));g.set("BBox",[0,0,s,n]);g.set("Width",s);g.set("Height",n);let m=null;if(u){const t=new Uint8Array(h.length);if(i.FeatureTest.isLittleEndian){for(let e=0,s=h.length;e<s;e++){t[e]=h[e]>>>24}}else{for(let e=0,s=h.length;e<s;e++){t[e]=h[e]&255}}const r=new o.Dict(e);r.set("Type",d);r.set("Subtype",p);r.set("BitsPerComponent",8);r.set("ColorSpace",o.Name.get("DeviceGray"));r.set("Width",s);r.set("Height",n);m=new a.Stream(t,0,0,r)}const w=new a.Stream(await f,0,0,g);return{imageStream:w,smaskStream:m,width:s,height:n}}static createNewDict(t,e,{apRef:s,ap:r}){const{rect:a,rotation:c,user:l}=t;const h=new o.Dict(e);h.set("Type",o.Name.get("Annot"));h.set("Subtype",o.Name.get("Stamp"));h.set("CreationDate",`D:${(0,i.getModificationDate)()}`);h.set("Rect",a);h.set("F",4);h.set("Border",[0,0,0]);h.set("Rotate",c);if(l){h.set("T",(0,n.isAscii)(l)?l:(0,n.stringToUTF16String)(l,true))}if(s||r){const t=new o.Dict(e);h.set("AP",t);if(s){t.set("N",s)}else{t.set("N",r)}}return h}static async createNewAppearanceStream(t,e,s){const{rotation:i}=t;const{imageRef:r,width:c,height:l}=s.image;const h=new o.Dict(e);const u=new o.Dict(e);h.set("XObject",u);u.set("Im0",r);const f=`q ${c} 0 0 ${l} 0 0 cm /Im0 Do Q`;const d=new o.Dict(e);d.set("FormType",1);d.set("Subtype",o.Name.get("Form"));d.set("Type",o.Name.get("XObject"));d.set("BBox",[0,0,c,l]);d.set("Resources",h);if(i){const t=(0,n.getRotationMatrix)(i,c,l);d.set("Matrix",t)}const p=new a.StringStream(f);p.dict=d;return p}}class z extends M{constructor(t){super(t);const{dict:e,xref:s}=t;const n=new f.FileSpec(e.get("FS"),s);this.data.annotationType=i.AnnotationType.FILEATTACHMENT;this.data.hasOwnCanvas=this.data.noRotate;this.data.file=n.serializable;const r=e.get("Name");this.data.name=r instanceof o.Name?(0,i.stringToPDFString)(r.name):"PushPin";const a=e.get("ca");this.data.fillAlpha=typeof a==="number"&&a>=0&&a<=1?a:null}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.FakeUnicodeFont=void 0;e.createDefaultAppearance=m;e.getPdfColor=g;e.parseAppearanceStream=p;e.parseDefaultAppearance=f;var i=s(4);var n=s(3);var r=s(2);var o=s(12);var a=s(13);var c=s(59);var l=s(57);var h=s(8);class u extends a.EvaluatorPreprocessor{constructor(t){super(new h.StringStream(t))}parse(){const t={fn:0,args:[]};const e={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{while(true){t.args.length=0;if(!this.read(t)){break}if(this.savedStatesDepth!==0){continue}const{fn:s,args:n}=t;switch(s|0){case r.OPS.setFont:const[t,s]=n;if(t instanceof i.Name){e.fontName=t.name}if(typeof s==="number"&&s>0){e.fontSize=s}break;case r.OPS.setFillRGBColor:o.ColorSpace.singletons.rgb.getRgbItem(n,0,e.fontColor,0);break;case r.OPS.setFillGray:o.ColorSpace.singletons.gray.getRgbItem(n,0,e.fontColor,0);break;case r.OPS.setFillCMYKColor:o.ColorSpace.singletons.cmyk.getRgbItem(n,0,e.fontColor,0);break}}}catch(t){(0,r.warn)(`parseDefaultAppearance - ignoring errors: "${t}".`)}return e}}function f(t){return new u(t).parse()}class d extends a.EvaluatorPreprocessor{constructor(t,e,s){super(t);this.stream=t;this.evaluatorOptions=e;this.xref=s;this.resources=t.dict?.get("Resources")}parse(){const t={fn:0,args:[]};let e={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:o.ColorSpace.singletons.gray};let s=false;const n=[];try{while(true){t.args.length=0;if(s||!this.read(t)){break}const{fn:a,args:c}=t;switch(a|0){case r.OPS.save:n.push({scaleFactor:e.scaleFactor,fontSize:e.fontSize,fontName:e.fontName,fontColor:e.fontColor.slice(),fillColorSpace:e.fillColorSpace});break;case r.OPS.restore:e=n.pop()||e;break;case r.OPS.setTextMatrix:e.scaleFactor*=Math.hypot(c[0],c[1]);break;case r.OPS.setFont:const[t,a]=c;if(t instanceof i.Name){e.fontName=t.name}if(typeof a==="number"&&a>0){e.fontSize=a*e.scaleFactor}break;case r.OPS.setFillColorSpace:e.fillColorSpace=o.ColorSpace.parse({cs:c[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:this._localColorSpaceCache});break;case r.OPS.setFillColor:const l=e.fillColorSpace;l.getRgbItem(c,0,e.fontColor,0);break;case r.OPS.setFillRGBColor:o.ColorSpace.singletons.rgb.getRgbItem(c,0,e.fontColor,0);break;case r.OPS.setFillGray:o.ColorSpace.singletons.gray.getRgbItem(c,0,e.fontColor,0);break;case r.OPS.setFillCMYKColor:o.ColorSpace.singletons.cmyk.getRgbItem(c,0,e.fontColor,0);break;case r.OPS.showText:case r.OPS.showSpacedText:case r.OPS.nextLineShowText:case r.OPS.nextLineSetSpacingShowText:s=true;break}}}catch(t){(0,r.warn)(`parseAppearanceStream - ignoring errors: "${t}".`)}this.stream.reset();delete e.scaleFactor;delete e.fillColorSpace;return e}get _localColorSpaceCache(){return(0,r.shadow)(this,"_localColorSpaceCache",new c.LocalColorSpaceCache)}get _pdfFunctionFactory(){const t=new l.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported});return(0,r.shadow)(this,"_pdfFunctionFactory",t)}}function p(t,e,s){return new d(t,e,s).parse()}function g(t,e){if(t[0]===t[1]&&t[1]===t[2]){const s=t[0]/255;return`${(0,n.numberToString)(s)} ${e?"g":"G"}`}return Array.from(t,(t=>(0,n.numberToString)(t/255))).join(" ")+` ${e?"rg":"RG"}`}function m({fontSize:t,fontName:e,fontColor:s}){return`/${(0,n.escapePDFName)(e)} ${t} Tf ${g(s,true)}`}class w{constructor(t,e){this.xref=t;this.widths=null;this.firstChar=Infinity;this.lastChar=-Infinity;this.fontFamily=e;const s=new OffscreenCanvas(1,1);this.ctxMeasure=s.getContext("2d");if(!w._fontNameId){w._fontNameId=1}this.fontName=i.Name.get(`InvalidPDFjsFont_${e}_${w._fontNameId++}`)}get toUnicodeRef(){if(!w._toUnicodeRef){const t=`/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo\n<< /Registry (Adobe)\n/Ordering (UCS) /Supplement 0 >> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000> <FFFF>\nendcodespacerange\n1 beginbfrange\n<0000> <FFFF> <0000>\nendbfrange\nendcmap CMapName currentdict /CMap defineresource pop end end`;const e=w.toUnicodeStream=new h.StringStream(t);const s=new i.Dict(this.xref);e.dict=s;s.set("Length",t.length);w._toUnicodeRef=this.xref.getNewPersistentRef(e)}return w._toUnicodeRef}get fontDescriptorRef(){if(!w._fontDescriptorRef){const t=new i.Dict(this.xref);t.set("Type",i.Name.get("FontDescriptor"));t.set("FontName",this.fontName);t.set("FontFamily","MyriadPro Regular");t.set("FontBBox",[0,0,0,0]);t.set("FontStretch",i.Name.get("Normal"));t.set("FontWeight",400);t.set("ItalicAngle",0);w._fontDescriptorRef=this.xref.getNewPersistentRef(t)}return w._fontDescriptorRef}get descendantFontRef(){const t=new i.Dict(this.xref);t.set("BaseFont",this.fontName);t.set("Type",i.Name.get("Font"));t.set("Subtype",i.Name.get("CIDFontType0"));t.set("CIDToGIDMap",i.Name.get("Identity"));t.set("FirstChar",this.firstChar);t.set("LastChar",this.lastChar);t.set("FontDescriptor",this.fontDescriptorRef);t.set("DW",1e3);const e=[];const s=[...this.widths.entries()].sort();let n=null;let r=null;for(const[t,i]of s){if(!n){n=t;r=[i];continue}if(t===n+r.length){r.push(i)}else{e.push(n,r);n=t;r=[i]}}if(n){e.push(n,r)}t.set("W",e);const o=new i.Dict(this.xref);o.set("Ordering","Identity");o.set("Registry","Adobe");o.set("Supplement",0);t.set("CIDSystemInfo",o);return this.xref.getNewPersistentRef(t)}get baseFontRef(){const t=new i.Dict(this.xref);t.set("BaseFont",this.fontName);t.set("Type",i.Name.get("Font"));t.set("Subtype",i.Name.get("Type0"));t.set("Encoding",i.Name.get("Identity-H"));t.set("DescendantFonts",[this.descendantFontRef]);t.set("ToUnicode",this.toUnicodeRef);return this.xref.getNewPersistentRef(t)}get resources(){const t=new i.Dict(this.xref);const e=new i.Dict(this.xref);e.set(this.fontName.name,this.baseFontRef);t.set("Font",e);return t}_createContext(){this.widths=new Map;this.ctxMeasure.font=`1000px ${this.fontFamily}`;return this.ctxMeasure}createFontResources(t){const e=this._createContext();for(const s of t.split(/\r\n?|\n/)){for(const t of s.split("")){const s=t.charCodeAt(0);if(this.widths.has(s)){continue}const i=e.measureText(t);const n=Math.ceil(i.width);this.widths.set(s,n);this.firstChar=Math.min(s,this.firstChar);this.lastChar=Math.max(s,this.lastChar)}}return this.resources}createAppearance(t,e,s,o,a,c){const l=this._createContext();const u=[];let f=-Infinity;for(const e of t.split(/\r\n?|\n/)){u.push(e);const t=l.measureText(e).width;f=Math.max(f,t);for(const t of e.split("")){const e=t.charCodeAt(0);let s=this.widths.get(e);if(s===undefined){const i=l.measureText(t);s=Math.ceil(i.width);this.widths.set(e,s);this.firstChar=Math.min(e,this.firstChar);this.lastChar=Math.max(e,this.lastChar)}}}f*=o/1e3;const[d,p,m,w]=e;let b=m-d;let y=w-p;if(s%180!==0){[b,y]=[y,b]}let A=1;if(f>b){A=b/f}let v=1;const x=r.LINE_FACTOR*o;const k=r.LINE_DESCENT_FACTOR*o;const S=x*u.length;if(S>y){v=y/S}const M=Math.min(A,v);const C=o*M;const _=["q",`0 0 ${(0,n.numberToString)(b)} ${(0,n.numberToString)(y)} re W n`,`BT`,`1 0 0 1 0 ${(0,n.numberToString)(y+k)} Tm 0 Tc ${g(a,true)}`,`/${this.fontName.name} ${(0,n.numberToString)(C)} Tf`];const{resources:I}=this;c=typeof c==="number"&&c>=0&&c<=1?c:1;if(c!==1){_.push("/R0 gs");const t=new i.Dict(this.xref);const e=new i.Dict(this.xref);e.set("ca",c);e.set("CA",c);e.set("Type",i.Name.get("ExtGState"));t.set("R0",e);I.set("ExtGState",t)}const F=(0,n.numberToString)(x);for(const t of u){_.push(`0 -${F} Td <${(0,n.stringToUTF16HexString)(t)}> Tj`)}_.push("ET","Q");const O=_.join("\n");const E=new i.Dict(this.xref);E.set("Subtype",i.Name.get("Form"));E.set("Type",i.Name.get("XObject"));E.set("BBox",[0,0,b,y]);E.set("Length",O.length);E.set("Resources",I);if(s){const t=(0,n.getRotationMatrix)(s,b,y);E.set("Matrix",t)}const T=new h.StringStream(O);T.dict=E;return T}}e.FakeUnicodeFont=w},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.ColorSpace=void 0;var i=s(2);var n=s(4);var r=s(5);var o=s(3);function a(t,e,s,i,n,r,o){const a=3;o=o!==1?0:o;const c=s/n;const l=i/r;let h=0,u;const f=new Uint16Array(n);const d=s*a;for(let t=0;t<n;t++){f[t]=Math.floor(t*c)*a}for(let s=0;s<r;s++){const i=Math.floor(s*l)*d;for(let s=0;s<n;s++){u=i+f[s];e[h++]=t[u++];e[h++]=t[u++];e[h++]=t[u++];h+=o}}}class c{constructor(t,e){if(this.constructor===c){(0,i.unreachable)("Cannot initialize ColorSpace.")}this.name=t;this.numComps=e}getRgb(t,e){const s=new Uint8ClampedArray(3);this.getRgbItem(t,e,s,0);return s}getRgbItem(t,e,s,n){(0,i.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(t,e,s,n,r,o,a){(0,i.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(t,e){(0,i.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(t){return false}isDefaultDecode(t,e){return c.isDefaultDecode(t,this.numComps)}fillRgb(t,e,s,i,n,r,o,c,l){const h=e*s;let u=null;const f=1<<o;const d=s!==n||e!==i;if(this.isPassthrough(o)){u=c}else if(this.numComps===1&&h>f&&this.name!=="DeviceGray"&&this.name!=="DeviceRGB"){const e=o<=8?new Uint8Array(f):new Uint16Array(f);for(let t=0;t<f;t++){e[t]=t}const s=new Uint8ClampedArray(f*3);this.getRgbBuffer(e,0,f,s,0,o,0);if(!d){let e=0;for(let i=0;i<h;++i){const n=c[i]*3;t[e++]=s[n];t[e++]=s[n+1];t[e++]=s[n+2];e+=l}}else{u=new Uint8Array(h*3);let t=0;for(let e=0;e<h;++e){const i=c[e]*3;u[t++]=s[i];u[t++]=s[i+1];u[t++]=s[i+2]}}}else if(!d){this.getRgbBuffer(c,0,i*r,t,0,o,l)}else{u=new Uint8ClampedArray(h*3);this.getRgbBuffer(c,0,h,u,0,o,0)}if(u){if(d){a(u,t,e,s,i,n,l)}else{let e=0,s=0;for(let n=0,o=i*r;n<o;n++){t[e++]=u[s++];t[e++]=u[s++];t[e++]=u[s++];e+=l}}}}get usesZeroToOneRange(){return(0,i.shadow)(this,"usesZeroToOneRange",true)}static _cache(t,e,s,i){if(!s){throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.')}if(!i){throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.')}let r,o;if(t instanceof n.Ref){o=t;t=e.fetch(t)}if(t instanceof n.Name){r=t.name}if(r||o){s.set(r,o,i)}}static getCached(t,e,s){if(!s){throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.')}if(t instanceof n.Ref){const i=s.getByRef(t);if(i){return i}try{t=e.fetch(t)}catch(t){if(t instanceof o.MissingDataException){throw t}}}if(t instanceof n.Name){const e=s.getByName(t.name);if(e){return e}}return null}static async parseAsync({cs:t,xref:e,resources:s=null,pdfFunctionFactory:i,localColorSpaceCache:n}){const r=this._parse(t,e,s,i);this._cache(t,e,n,r);return r}static parse({cs:t,xref:e,resources:s=null,pdfFunctionFactory:i,localColorSpaceCache:n}){const r=this.getCached(t,e,n);if(r){return r}const o=this._parse(t,e,s,i);this._cache(t,e,n,o);return o}static _parse(t,e,s=null,r){t=e.fetchIfRef(t);if(t instanceof n.Name){switch(t.name){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"Pattern":return new h(null);default:if(s instanceof n.Dict){const i=s.get("ColorSpace");if(i instanceof n.Dict){const o=i.get(t.name);if(o){if(o instanceof n.Name){return this._parse(o,e,s,r)}t=o;break}}}throw new i.FormatError(`Unrecognized ColorSpace: ${t.name}`)}}if(Array.isArray(t)){const n=e.fetchIfRef(t[0]).name;let o,a,c,f,d,p;switch(n){case"G":case"DeviceGray":return this.singletons.gray;case"RGB":case"DeviceRGB":return this.singletons.rgb;case"CMYK":case"DeviceCMYK":return this.singletons.cmyk;case"CalGray":o=e.fetchIfRef(t[1]);f=o.getArray("WhitePoint");d=o.getArray("BlackPoint");p=o.get("Gamma");return new g(f,d,p);case"CalRGB":o=e.fetchIfRef(t[1]);f=o.getArray("WhitePoint");d=o.getArray("BlackPoint");p=o.getArray("Gamma");const b=o.getArray("Matrix");return new m(f,d,p,b);case"ICCBased":const y=e.fetchIfRef(t[1]);const A=y.dict;a=A.get("N");const v=A.get("Alternate");if(v){const t=this._parse(v,e,s,r);if(t.numComps===a){return t}(0,i.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(a===1){return this.singletons.gray}else if(a===3){return this.singletons.rgb}else if(a===4){return this.singletons.cmyk}break;case"Pattern":c=t[1]||null;if(c){c=this._parse(c,e,s,r)}return new h(c);case"I":case"Indexed":c=this._parse(t[1],e,s,r);const x=e.fetchIfRef(t[2])+1;const k=e.fetchIfRef(t[3]);return new u(c,x,k);case"Separation":case"DeviceN":const S=e.fetchIfRef(t[1]);a=Array.isArray(S)?S.length:1;c=this._parse(t[2],e,s,r);const M=r.create(t[3]);return new l(a,c,M);case"Lab":o=e.fetchIfRef(t[1]);f=o.getArray("WhitePoint");d=o.getArray("BlackPoint");const C=o.getArray("Range");return new w(f,d,C);default:throw new i.FormatError(`Unimplemented ColorSpace object: ${n}`)}}throw new i.FormatError(`Unrecognized ColorSpace object: ${t}`)}static isDefaultDecode(t,e){if(!Array.isArray(t)){return true}if(e*2!==t.length){(0,i.warn)("The decode map is not the correct length");return true}for(let e=0,s=t.length;e<s;e+=2){if(t[e]!==0||t[e+1]!==1){return false}}return true}static get singletons(){return(0,i.shadow)(this,"singletons",{get gray(){return(0,i.shadow)(this,"gray",new f)},get rgb(){return(0,i.shadow)(this,"rgb",new d)},get cmyk(){return(0,i.shadow)(this,"cmyk",new p)}})}}e.ColorSpace=c;class l extends c{constructor(t,e,s){super("Alternate",t);this.base=e;this.tintFn=s;this.tmpBuf=new Float32Array(e.numComps)}getRgbItem(t,e,s,i){const n=this.tmpBuf;this.tintFn(t,e,n,0);this.base.getRgbItem(n,0,s,i)}getRgbBuffer(t,e,s,i,n,r,o){const a=this.tintFn;const c=this.base;const l=1/((1<<r)-1);const h=c.numComps;const u=c.usesZeroToOneRange;const f=(c.isPassthrough(8)||!u)&&o===0;let d=f?n:0;const p=f?i:new Uint8ClampedArray(h*s);const g=this.numComps;const m=new Float32Array(g);const w=new Float32Array(h);let b,y;for(b=0;b<s;b++){for(y=0;y<g;y++){m[y]=t[e++]*l}a(m,0,w,0);if(u){for(y=0;y<h;y++){p[d++]=w[y]*255}}else{c.getRgbItem(w,0,p,d);d+=h}}if(!f){c.getRgbBuffer(p,0,s,i,n,8,o)}}getOutputLength(t,e){return this.base.getOutputLength(t*this.base.numComps/this.numComps,e)}}class h extends c{constructor(t){super("Pattern",null);this.base=t}isDefaultDecode(t,e){(0,i.unreachable)("Should not call PatternCS.isDefaultDecode")}}class u extends c{constructor(t,e,s){super("Indexed",1);this.base=t;this.highVal=e;const n=t.numComps*e;this.lookup=new Uint8Array(n);if(s instanceof r.BaseStream){const t=s.getBytes(n);this.lookup.set(t)}else if(typeof s==="string"){for(let t=0;t<n;++t){this.lookup[t]=s.charCodeAt(t)&255}}else{throw new i.FormatError(`IndexedCS - unrecognized lookup table: ${s}`)}}getRgbItem(t,e,s,i){const n=this.base.numComps;const r=t[e]*n;this.base.getRgbBuffer(this.lookup,r,1,s,i,8,0)}getRgbBuffer(t,e,s,i,n,r,o){const a=this.base;const c=a.numComps;const l=a.getOutputLength(c,o);const h=this.lookup;for(let r=0;r<s;++r){const s=t[e++]*c;a.getRgbBuffer(h,s,1,i,n,8,o);n+=l}}getOutputLength(t,e){return this.base.getOutputLength(t*this.base.numComps,e)}isDefaultDecode(t,e){if(!Array.isArray(t)){return true}if(t.length!==2){(0,i.warn)("Decode map length is not correct");return true}if(!Number.isInteger(e)||e<1){(0,i.warn)("Bits per component is not correct");return true}return t[0]===0&&t[1]===(1<<e)-1}}class f extends c{constructor(){super("DeviceGray",1)}getRgbItem(t,e,s,i){const n=t[e]*255;s[i]=s[i+1]=s[i+2]=n}getRgbBuffer(t,e,s,i,n,r,o){const a=255/((1<<r)-1);let c=e,l=n;for(let e=0;e<s;++e){const e=a*t[c++];i[l++]=e;i[l++]=e;i[l++]=e;l+=o}}getOutputLength(t,e){return t*(3+e)}}class d extends c{constructor(){super("DeviceRGB",3)}getRgbItem(t,e,s,i){s[i]=t[e]*255;s[i+1]=t[e+1]*255;s[i+2]=t[e+2]*255}getRgbBuffer(t,e,s,i,n,r,o){if(r===8&&o===0){i.set(t.subarray(e,e+s*3),n);return}const a=255/((1<<r)-1);let c=e,l=n;for(let e=0;e<s;++e){i[l++]=a*t[c++];i[l++]=a*t[c++];i[l++]=a*t[c++];l+=o}}getOutputLength(t,e){return t*(3+e)/3|0}isPassthrough(t){return t===8}}class p extends c{constructor(){super("DeviceCMYK",4)}#Pi(t,e,s,i,n){const r=t[e]*s;const o=t[e+1]*s;const a=t[e+2]*s;const c=t[e+3]*s;i[n]=255+r*(-4.387332384609988*r+54.48615194189176*o+18.82290502165302*a+212.25662451639585*c+-285.2331026137004)+o*(1.7149763477362134*o-5.6096736904047315*a+-17.873870861415444*c-5.497006427196366)+a*(-2.5217340131683033*a-21.248923337353073*c+17.5119270841813)+c*(-21.86122147463605*c-189.48180835922747);i[n+1]=255+r*(8.841041422036149*r+60.118027045597366*o+6.871425592049007*a+31.159100130055922*c+-79.2970844816548)+o*(-15.310361306967817*o+17.575251261109482*a+131.35250912493976*c-190.9453302588951)+a*(4.444339102852739*a+9.8632861493405*c-24.86741582555878)+c*(-20.737325471181034*c-187.80453709719578);i[n+2]=255+r*(.8842522430003296*r+8.078677503112928*o+30.89978309703729*a-.23883238689178934*c+-14.183576799673286)+o*(10.49593273432072*o+63.02378494754052*a+50.606957656360734*c-112.23884253719248)+a*(.03296041114873217*a+115.60384449646641*c+-193.58209356861505)+c*(-22.33816807309886*c-180.12613974708367)}getRgbItem(t,e,s,i){this.#Pi(t,e,1,s,i)}getRgbBuffer(t,e,s,i,n,r,o){const a=1/((1<<r)-1);for(let r=0;r<s;r++){this.#Pi(t,e,a,i,n);e+=4;n+=3+o}}getOutputLength(t,e){return t/4*(3+e)|0}}class g extends c{constructor(t,e,s){super("CalGray",1);if(!t){throw new i.FormatError("WhitePoint missing - required for color space CalGray")}[this.XW,this.YW,this.ZW]=t;[this.XB,this.YB,this.ZB]=e||[0,0,0];this.G=s||1;if(this.XW<0||this.ZW<0||this.YW!==1){throw new i.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`)}if(this.XB<0||this.YB<0||this.ZB<0){(0,i.info)(`Invalid BlackPoint for ${this.name}, falling back to default.`);this.XB=this.YB=this.ZB=0}if(this.XB!==0||this.YB!==0||this.ZB!==0){(0,i.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, `+`ZB: ${this.ZB}, only default values are supported.`)}if(this.G<1){(0,i.info)(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`);this.G=1}}#Pi(t,e,s,i,n){const r=t[e]*n;const o=r**this.G;const a=this.YW*o;const c=Math.max(295.8*a**.3333333333333333-40.8,0);s[i]=c;s[i+1]=c;s[i+2]=c}getRgbItem(t,e,s,i){this.#Pi(t,e,s,i,1)}getRgbBuffer(t,e,s,i,n,r,o){const a=1/((1<<r)-1);for(let r=0;r<s;++r){this.#Pi(t,e,i,n,a);e+=1;n+=3+o}}getOutputLength(t,e){return t*(3+e)}}class m extends c{static#Ri=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]);static#Ni=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]);static#Li=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]);static#Bi=new Float32Array([1,1,1]);static#$i=new Float32Array(3);static#Ui=new Float32Array(3);static#ji=new Float32Array(3);static#Hi=((8+16)/116)**3/8;constructor(t,e,s,n){super("CalRGB",3);if(!t){throw new i.FormatError("WhitePoint missing - required for color space CalRGB")}const[r,o,a]=this.whitePoint=t;const[c,l,h]=this.blackPoint=e||new Float32Array(3);[this.GR,this.GG,this.GB]=s||new Float32Array([1,1,1]);[this.MXA,this.MYA,this.MZA,this.MXB,this.MYB,this.MZB,this.MXC,this.MYC,this.MZC]=n||new Float32Array([1,0,0,0,1,0,0,0,1]);if(r<0||a<0||o!==1){throw new i.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`)}if(c<0||l<0||h<0){(0,i.info)(`Invalid BlackPoint for ${this.name} [${c}, ${l}, ${h}], `+"falling back to default.");this.blackPoint=new Float32Array(3)}if(this.GR<0||this.GG<0||this.GB<0){(0,i.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for `+`${this.name}, falling back to default.`);this.GR=this.GG=this.GB=1}}#Gi(t,e,s){s[0]=t[0]*e[0]+t[1]*e[1]+t[2]*e[2];s[1]=t[3]*e[0]+t[4]*e[1]+t[5]*e[2];s[2]=t[6]*e[0]+t[7]*e[1]+t[8]*e[2]}#qi(t,e,s){s[0]=e[0]*1/t[0];s[1]=e[1]*1/t[1];s[2]=e[2]*1/t[2]}#Xi(t,e,s){const i=.95047;const n=1;const r=1.08883;s[0]=e[0]*i/t[0];s[1]=e[1]*n/t[1];s[2]=e[2]*r/t[2]}#Wi(t){if(t<=.0031308){return this.#zi(0,1,12.92*t)}if(t>=.99554525){return 1}return this.#zi(0,1,(1+.055)*t**(1/2.4)-.055)}#zi(t,e,s){return Math.max(t,Math.min(e,s))}#Vi(t){if(t<0){return-this.#Vi(-t)}if(t>8){return((t+16)/116)**3}return t*m.#Hi}#Ki(t,e,s){if(t[0]===0&&t[1]===0&&t[2]===0){s[0]=e[0];s[1]=e[1];s[2]=e[2];return}const i=this.#Vi(0);const n=i;const r=this.#Vi(t[0]);const o=i;const a=this.#Vi(t[1]);const c=i;const l=this.#Vi(t[2]);const h=(1-n)/(1-r);const u=1-h;const f=(1-o)/(1-a);const d=1-f;const p=(1-c)/(1-l);const g=1-p;s[0]=e[0]*h+u;s[1]=e[1]*f+d;s[2]=e[2]*p+g}#Ji(t,e,s){if(t[0]===1&&t[2]===1){s[0]=e[0];s[1]=e[1];s[2]=e[2];return}const i=s;this.#Gi(m.#Ri,e,i);const n=m.#$i;this.#qi(t,i,n);this.#Gi(m.#Ni,n,s)}#Yi(t,e,s){const i=s;this.#Gi(m.#Ri,e,i);const n=m.#$i;this.#Xi(t,i,n);this.#Gi(m.#Ni,n,s)}#Pi(t,e,s,i,n){const r=this.#zi(0,1,t[e]*n);const o=this.#zi(0,1,t[e+1]*n);const a=this.#zi(0,1,t[e+2]*n);const c=r===1?1:r**this.GR;const l=o===1?1:o**this.GG;const h=a===1?1:a**this.GB;const u=this.MXA*c+this.MXB*l+this.MXC*h;const f=this.MYA*c+this.MYB*l+this.MYC*h;const d=this.MZA*c+this.MZB*l+this.MZC*h;const p=m.#Ui;p[0]=u;p[1]=f;p[2]=d;const g=m.#ji;this.#Ji(this.whitePoint,p,g);const w=m.#Ui;this.#Ki(this.blackPoint,g,w);const b=m.#ji;this.#Yi(m.#Bi,w,b);const y=m.#Ui;this.#Gi(m.#Li,b,y);s[i]=this.#Wi(y[0])*255;s[i+1]=this.#Wi(y[1])*255;s[i+2]=this.#Wi(y[2])*255}getRgbItem(t,e,s,i){this.#Pi(t,e,s,i,1)}getRgbBuffer(t,e,s,i,n,r,o){const a=1/((1<<r)-1);for(let r=0;r<s;++r){this.#Pi(t,e,i,n,a);e+=3;n+=3+o}}getOutputLength(t,e){return t*(3+e)/3|0}}class w extends c{constructor(t,e,s){super("Lab",3);if(!t){throw new i.FormatError("WhitePoint missing - required for color space Lab")}[this.XW,this.YW,this.ZW]=t;[this.amin,this.amax,this.bmin,this.bmax]=s||[-100,100,-100,100];[this.XB,this.YB,this.ZB]=e||[0,0,0];if(this.XW<0||this.ZW<0||this.YW!==1){throw new i.FormatError("Invalid WhitePoint components, no fallback available")}if(this.XB<0||this.YB<0||this.ZB<0){(0,i.info)("Invalid BlackPoint, falling back to default");this.XB=this.YB=this.ZB=0}if(this.amin>this.amax||this.bmin>this.bmax){(0,i.info)("Invalid Range, falling back to defaults");this.amin=-100;this.amax=100;this.bmin=-100;this.bmax=100}}#Qi(t){return t>=6/29?t**3:108/841*(t-4/29)}#Zi(t,e,s,i){return s+t*(i-s)/e}#Pi(t,e,s,i,n){let r=t[e];let o=t[e+1];let a=t[e+2];if(s!==false){r=this.#Zi(r,s,0,100);o=this.#Zi(o,s,this.amin,this.amax);a=this.#Zi(a,s,this.bmin,this.bmax)}if(o>this.amax){o=this.amax}else if(o<this.amin){o=this.amin}if(a>this.bmax){a=this.bmax}else if(a<this.bmin){a=this.bmin}const c=(r+16)/116;const l=c+o/500;const h=c-a/200;const u=this.XW*this.#Qi(l);const f=this.YW*this.#Qi(c);const d=this.ZW*this.#Qi(h);let p,g,m;if(this.ZW<1){p=u*3.1339+f*-1.617+d*-.4906;g=u*-.9785+f*1.916+d*.0333;m=u*.072+f*-.229+d*1.4057}else{p=u*3.2406+f*-1.5372+d*-.4986;g=u*-.9689+f*1.8758+d*.0415;m=u*.0557+f*-.204+d*1.057}i[n]=Math.sqrt(p)*255;i[n+1]=Math.sqrt(g)*255;i[n+2]=Math.sqrt(m)*255}getRgbItem(t,e,s,i){this.#Pi(t,e,false,s,i)}getRgbBuffer(t,e,s,i,n,r,o){const a=(1<<r)-1;for(let r=0;r<s;r++){this.#Pi(t,e,a,i,n);e+=3;n+=3+o}}getOutputLength(t,e){return t*(3+e)/3|0}isDefaultDecode(t,e){return true}get usesZeroToOneRange(){return(0,i.shadow)(this,"usesZeroToOneRange",false)}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.PartialEvaluator=e.EvaluatorPreprocessor=void 0;var i=s(2);var n=s(14);var r=s(4);var o=s(34);var a=s(37);var c=s(41);var l=s(50);var h=s(51);var u=s(42);var f=s(57);var d=s(16);var p=s(59);var g=s(8);var m=s(5);var w=s(60);var b=s(12);var y=s(18);var A=s(38);var v=s(61);var x=s(39);var k=s(45);var S=s(40);var M=s(62);var C=s(63);var _=s(64);var I=s(65);const F=Object.freeze({maxImageSize:-1,disableFontFace:false,ignoreErrors:false,isEvalSupported:true,isOffscreenCanvasSupported:false,canvasMaxAreaInBytes:-1,fontExtraProperties:false,useSystemFonts:true,cMapUrl:null,standardFontDataUrl:null});const O={TILING:1,SHADING:2};const E=10;const T=Promise.resolve();function D(t,e=false){if(Array.isArray(t)){for(const e of t){const t=D(e,true);if(t){return t}}(0,i.warn)(`Unsupported blend mode Array: ${t}`);return"source-over"}if(!(t instanceof r.Name)){if(e){return null}return"source-over"}switch(t.name){case"Normal":case"Compatible":return"source-over";case"Multiply":return"multiply";case"Screen":return"screen";case"Overlay":return"overlay";case"Darken":return"darken";case"Lighten":return"lighten";case"ColorDodge":return"color-dodge";case"ColorBurn":return"color-burn";case"HardLight":return"hard-light";case"SoftLight":return"soft-light";case"Difference":return"difference";case"Exclusion":return"exclusion";case"Hue":return"hue";case"Saturation":return"saturation";case"Color":return"color";case"Luminosity":return"luminosity"}if(e){return null}(0,i.warn)(`Unsupported blend mode: ${t.name}`);return"source-over"}function P(t){if(t.fn===i.OPS.paintImageMaskXObject&&t.args[0]?.count>0){t.args[0].count++}}class R{static TIME_SLOT_DURATION_MS=20;static CHECK_TIME_EVERY=100;constructor(){this.reset()}check(){if(++this.checked<R.CHECK_TIME_EVERY){return false}this.checked=0;return this.endTime<=Date.now()}reset(){this.endTime=Date.now()+R.TIME_SLOT_DURATION_MS;this.checked=0}}class N{constructor({xref:t,handler:e,pageIndex:s,idFactory:i,fontCache:n,builtInCMapCache:r,standardFontDataCache:o,globalImageCache:a,systemFontCache:c,options:l=null}){this.xref=t;this.handler=e;this.pageIndex=s;this.idFactory=i;this.fontCache=n;this.builtInCMapCache=r;this.standardFontDataCache=o;this.globalImageCache=a;this.systemFontCache=c;this.options=l||F;this.parsingType3Font=false;this._regionalImageCache=new p.RegionalImageCache;this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this);M.ImageResizer.setMaxArea(this.options.canvasMaxAreaInBytes)}get _pdfFunctionFactory(){const t=new f.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,i.shadow)(this,"_pdfFunctionFactory",t)}clone(t=null){const e=Object.create(this);e.options=Object.assign(Object.create(null),this.options,t);return e}hasBlendModes(t,e){if(!(t instanceof r.Dict)){return false}if(t.objId&&e.has(t.objId)){return false}const s=new r.RefSet(e);if(t.objId){s.put(t.objId)}const n=[t],o=this.xref;while(n.length){const t=n.shift();const e=t.get("ExtGState");if(e instanceof r.Dict){for(let t of e.getRawValues()){if(t instanceof r.Ref){if(s.has(t)){continue}try{t=o.fetch(t)}catch(e){s.put(t);(0,i.info)(`hasBlendModes - ignoring ExtGState: "${e}".`);continue}}if(!(t instanceof r.Dict)){continue}if(t.objId){s.put(t.objId)}const e=t.get("BM");if(e instanceof r.Name){if(e.name!=="Normal"){return true}continue}if(e!==undefined&&Array.isArray(e)){for(const t of e){if(t instanceof r.Name&&t.name!=="Normal"){return true}}}}}const a=t.get("XObject");if(!(a instanceof r.Dict)){continue}for(let t of a.getRawValues()){if(t instanceof r.Ref){if(s.has(t)){continue}try{t=o.fetch(t)}catch(e){s.put(t);(0,i.info)(`hasBlendModes - ignoring XObject: "${e}".`);continue}}if(!(t instanceof m.BaseStream)){continue}if(t.dict.objId){s.put(t.dict.objId)}const e=t.dict.get("Resources");if(!(e instanceof r.Dict)){continue}if(e.objId&&s.has(e.objId)){continue}n.push(e);if(e.objId){s.put(e.objId)}}}for(const t of s){e.put(t)}return false}async fetchBuiltInCMap(t){const e=this.builtInCMapCache.get(t);if(e){return e}let s;if(this.options.cMapUrl!==null){const e=`${this.options.cMapUrl}${t}.bcmap`;const n=await fetch(e);if(!n.ok){throw new Error(`fetchBuiltInCMap: failed to fetch file "${e}" with "${n.statusText}".`)}s={cMapData:new Uint8Array(await n.arrayBuffer()),compressionType:i.CMapCompressionType.BINARY}}else{s=await this.handler.sendWithPromise("FetchBuiltInCMap",{name:t})}if(s.compressionType!==i.CMapCompressionType.NONE){this.builtInCMapCache.set(t,s)}return s}async fetchStandardFontData(t){const e=this.standardFontDataCache.get(t);if(e){return new g.Stream(e)}if(this.options.useSystemFonts&&t!=="Symbol"&&t!=="ZapfDingbats"){return null}const s=(0,c.getFontNameToFileMap)(),n=s[t];let r;if(this.options.standardFontDataUrl!==null){const t=`${this.options.standardFontDataUrl}${n}`;const e=await fetch(t);if(!e.ok){(0,i.warn)(`fetchStandardFontData: failed to fetch file "${t}" with "${e.statusText}".`)}else{r=await e.arrayBuffer()}}else{try{r=await this.handler.sendWithPromise("FetchStandardFontData",{filename:n})}catch(t){(0,i.warn)(`fetchStandardFontData: failed to fetch file "${n}" with "${t}".`)}}if(!r){return null}this.standardFontDataCache.set(t,r);return new g.Stream(r)}async buildFormXObject(t,e,s,n,o,a,c){const l=e.dict;const h=l.getArray("Matrix");let u=l.getArray("BBox");u=Array.isArray(u)&&u.length===4?i.Util.normalizeRect(u):null;let f,d;if(l.has("OC")){f=await this.parseMarkedContentProps(l.get("OC"),t)}if(f!==undefined){n.addOp(i.OPS.beginMarkedContentProps,["OC",f])}const p=l.get("Group");if(p){d={matrix:h,bbox:u,smask:s,isolated:false,knockout:false};const e=p.get("S");let o=null;if((0,r.isName)(e,"Transparency")){d.isolated=p.get("I")||false;d.knockout=p.get("K")||false;if(p.has("CS")){const e=p.getRaw("CS");const s=b.ColorSpace.getCached(e,this.xref,c);if(s){o=s}else{o=await this.parseColorSpace({cs:e,resources:t,localColorSpaceCache:c})}}}if(s?.backdrop){o||=b.ColorSpace.singletons.rgb;s.backdrop=o.getRgb(s.backdrop,0)}n.addOp(i.OPS.beginGroup,[d])}const g=p?[h,null]:[h,u];n.addOp(i.OPS.paintFormXObjectBegin,g);return this.getOperatorList({stream:e,task:o,resources:l.get("Resources")||t,operatorList:n,initialState:a}).then((function(){n.addOp(i.OPS.paintFormXObjectEnd,[]);if(p){n.addOp(i.OPS.endGroup,[d])}if(f!==undefined){n.addOp(i.OPS.endMarkedContent,[])}}))}_sendImgData(t,e,s=false){const i=e?[e.bitmap||e.data.buffer]:null;if(this.parsingType3Font||s){return this.handler.send("commonobj",[t,"Image",e],i)}return this.handler.send("obj",[t,this.pageIndex,"Image",e],i)}async buildPaintImageXObject({resources:t,image:e,isInline:s=false,operatorList:n,cacheKey:r,localImageCache:o,localColorSpaceCache:a}){const c=e.dict;const l=c.objId;const h=c.get("W","Width");const u=c.get("H","Height");if(!(h&&typeof h==="number")||!(u&&typeof u==="number")){(0,i.warn)("Image dimensions are missing, or not numbers.");return}const f=this.options.maxImageSize;if(f!==-1&&h*u>f){const t="Image exceeded maximum allowed size and was removed.";if(this.options.ignoreErrors){(0,i.warn)(t);return}throw new Error(t)}let d;if(c.has("OC")){d=await this.parseMarkedContentProps(c.get("OC"),t)}const p=c.get("IM","ImageMask")||false;let g,m;if(p){const t=c.get("I","Interpolate");const s=h+7>>3;const a=e.getBytes(s*u);const f=c.getArray("D","Decode");if(this.parsingType3Font){g=I.PDFImage.createRawMask({imgArray:a,width:h,height:u,imageIsFromDecodeStream:e instanceof y.DecodeStream,inverseDecode:f?.[0]>0,interpolate:t});g.cached=!!r;m=[g];n.addImageOps(i.OPS.paintImageMaskXObject,m,d);if(r){const t={fn:i.OPS.paintImageMaskXObject,args:m,optionalContent:d};o.set(r,l,t);if(l){this._regionalImageCache.set(null,l,t)}}return}g=await I.PDFImage.createMask({imgArray:a,width:h,height:u,imageIsFromDecodeStream:e instanceof y.DecodeStream,inverseDecode:f?.[0]>0,interpolate:t,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported});if(g.isSingleOpaquePixel){n.addImageOps(i.OPS.paintSolidColorImageMask,[],d);if(r){const t={fn:i.OPS.paintSolidColorImageMask,args:[],optionalContent:d};o.set(r,l,t);if(l){this._regionalImageCache.set(null,l,t)}}return}const p=`mask_${this.idFactory.createObjId()}`;n.addDependency(p);this._sendImgData(p,g);m=[{data:p,width:g.width,height:g.height,interpolate:g.interpolate,count:1}];n.addImageOps(i.OPS.paintImageMaskXObject,m,d);if(r){const t={fn:i.OPS.paintImageMaskXObject,args:m,optionalContent:d};o.set(r,l,t);if(l){this._regionalImageCache.set(null,l,t)}}return}const w=200;if(s&&!c.has("SMask")&&!c.has("Mask")&&h+u<w){const r=new I.PDFImage({xref:this.xref,res:t,image:e,isInline:s,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:a});g=await r.createImageData(true,false);n.isOffscreenCanvasSupported=this.options.isOffscreenCanvasSupported;n.addImageOps(i.OPS.paintInlineImageXObject,[g],d);return}let b=`img_${this.idFactory.createObjId()}`,A=false;if(this.parsingType3Font){b=`${this.idFactory.getDocId()}_type3_${b}`}else if(l){A=this.globalImageCache.shouldCache(l,this.pageIndex);if(A){b=`${this.idFactory.getDocId()}_${b}`}}n.addDependency(b);m=[b,h,u];I.PDFImage.buildImage({xref:this.xref,res:t,image:e,isInline:s,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:a}).then((async t=>{g=await t.createImageData(false,this.options.isOffscreenCanvasSupported);if(r&&l&&A){const t=g.bitmap?g.width*g.height*4:g.data.length;this.globalImageCache.addByteSize(l,t)}return this._sendImgData(b,g,A)})).catch((t=>{(0,i.warn)(`Unable to decode image "${b}": "${t}".`);return this._sendImgData(b,null,A)}));n.addImageOps(i.OPS.paintImageXObject,m,d);if(r){const t={fn:i.OPS.paintImageXObject,args:m,optionalContent:d};o.set(r,l,t);if(l){this._regionalImageCache.set(null,l,t);if(A){(0,i.assert)(!s,"Cannot cache an inline image globally.");this.globalImageCache.setData(l,{objId:b,fn:i.OPS.paintImageXObject,args:m,optionalContent:d,byteSize:0})}}}}handleSMask(t,e,s,i,n,r){const o=t.get("G");const a={subtype:t.get("S").name,backdrop:t.get("BC")};const c=t.get("TR");if((0,f.isPDFFunction)(c)){const t=this._pdfFunctionFactory.create(c);const e=new Uint8Array(256);const s=new Float32Array(1);for(let i=0;i<256;i++){s[0]=i/255;t(s,0,s,0);e[i]=s[0]*255|0}a.transferMap=e}return this.buildFormXObject(e,o,a,s,i,n.state.clone(),r)}handleTransferFunction(t){let e;if(Array.isArray(t)){e=t}else if((0,f.isPDFFunction)(t)){e=[t]}else{return null}const s=[];let i=0,n=0;for(const t of e){const e=this.xref.fetchIfRef(t);i++;if((0,r.isName)(e,"Identity")){s.push(null);continue}else if(!(0,f.isPDFFunction)(e)){return null}const o=this._pdfFunctionFactory.create(e);const a=new Uint8Array(256),c=new Float32Array(1);for(let t=0;t<256;t++){c[0]=t/255;o(c,0,c,0);a[t]=c[0]*255|0}s.push(a);n++}if(!(i===1||i===4)){return null}if(n===0){return null}return s}handleTilingType(t,e,s,n,o,a,c,h){const u=new _.OperatorList;const f=r.Dict.merge({xref:this.xref,dictArray:[o.get("Resources"),s]});return this.getOperatorList({stream:n,task:c,resources:f,operatorList:u}).then((function(){const s=u.getIR();const i=(0,l.getTilingPatternIR)(s,o,e);a.addDependencies(u.dependencies);a.addOp(t,i);if(o.objId){h.set(null,o.objId,{operatorListIR:s,dict:o})}})).catch((t=>{if(t instanceof i.AbortException){return}if(this.options.ignoreErrors){(0,i.warn)(`handleTilingType - ignoring pattern: "${t}".`);return}throw t}))}handleSetFont(t,e,s,i,n,a,c=null,l=null){const h=e?.[0]instanceof r.Name?e[0].name:null;return this.loadFont(h,s,t,c,l).then((e=>{if(!e.font.isType3Font){return e}return e.loadType3Data(this,t,n).then((function(){i.addDependencies(e.type3Dependencies);return e})).catch((t=>new L({loadedName:"g_font_error",font:new o.ErrorFont(`Type3 font load error: ${t}`),dict:e.font,evaluatorOptions:this.options})))})).then((t=>{a.font=t.font;t.send(this.handler);return t.loadedName}))}handleText(t,e){const s=e.font;const n=s.charsToGlyphs(t);if(s.data){const t=!!(e.textRenderingMode&i.TextRenderingMode.ADD_TO_PATH_FLAG);if(t||e.fillColorSpace.name==="Pattern"||s.disableFontFace||this.options.disableFontFace){N.buildFontPaths(s,n,this.handler,this.options)}}return n}ensureStateFont(t){if(t.font){return}const e=new i.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(this.options.ignoreErrors){(0,i.warn)(`ensureStateFont: "${e}".`);return}throw e}async setGState({resources:t,gState:e,operatorList:s,cacheKey:n,task:o,stateManager:a,localGStateCache:c,localColorSpaceCache:l}){const h=e.objId;let u=true;const f=[];let d=Promise.resolve();for(const n of e.getKeys()){const c=e.get(n);switch(n){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":f.push([n,c]);break;case"Font":u=false;d=d.then((()=>this.handleSetFont(t,null,c[0],s,o,a.state).then((function(t){s.addDependency(t);f.push([n,[t,c[1]]])}))));break;case"BM":f.push([n,D(c)]);break;case"SMask":if((0,r.isName)(c,"None")){f.push([n,false]);break}if(c instanceof r.Dict){u=false;d=d.then((()=>this.handleSMask(c,t,s,o,a,l)));f.push([n,true])}else{(0,i.warn)("Unsupported SMask type")}break;case"TR":const e=this.handleTransferFunction(c);f.push([n,e]);break;case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"TR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,i.info)("graphic state operator "+n);break;default:(0,i.info)("Unknown graphic state operator "+n);break}}return d.then((function(){if(f.length>0){s.addOp(i.OPS.setGState,[f])}if(u){c.set(n,h,f)}}))}loadFont(t,e,s,n=null,a=null){const c=async()=>new L({loadedName:"g_font_error",font:new o.ErrorFont(`Font "${t}" is not available.`),dict:e,evaluatorOptions:this.options});let l;if(e){if(e instanceof r.Ref){l=e}}else{const e=s.get("Font");if(e){l=e.getRaw(t)}}if(l){if(this.parsingType3Font&&this.type3FontRefs.has(l)){return c()}if(this.fontCache.has(l)){return this.fontCache.get(l)}e=this.xref.fetchIfRef(l)}if(!(e instanceof r.Dict)){if(!this.options.ignoreErrors&&!this.parsingType3Font){(0,i.warn)(`Font "${t}" is not available.`);return c()}(0,i.warn)(`Font "${t}" is not available -- attempting to fallback to a default font.`);e=n||N.fallbackFontDict}if(e.cacheKey&&this.fontCache.has(e.cacheKey)){return this.fontCache.get(e.cacheKey)}const h=new i.PromiseCapability;let u;try{u=this.preEvaluateFont(e);u.cssFontInfo=a}catch(t){(0,i.warn)(`loadFont - preEvaluateFont failed: "${t}".`);return c()}const{descriptor:f,hash:d}=u;const p=l instanceof r.Ref;let g;if(d&&f instanceof r.Dict){const t=f.fontAliases||=Object.create(null);if(t[d]){const e=t[d].aliasRef;if(p&&e&&this.fontCache.has(e)){this.fontCache.putAlias(l,e);return this.fontCache.get(l)}}else{t[d]={fontID:this.idFactory.createFontId()}}if(p){t[d].aliasRef=l}g=t[d].fontID}else{g=this.idFactory.createFontId()}(0,i.assert)(g?.startsWith("f"),'The "fontID" must be (correctly) defined.');if(p){this.fontCache.put(l,h.promise)}else{e.cacheKey=`cacheKey_${g}`;this.fontCache.put(e.cacheKey,h.promise)}e.loadedName=`${this.idFactory.getDocId()}_${g}`;this.translateFont(u).then((t=>{h.resolve(new L({loadedName:e.loadedName,font:t,dict:e,evaluatorOptions:this.options}))})).catch((t=>{(0,i.warn)(`loadFont - translateFont failed: "${t}".`);h.resolve(new L({loadedName:e.loadedName,font:new o.ErrorFont(t instanceof Error?t.message:t),dict:e,evaluatorOptions:this.options}))}));return h.promise}buildPath(t,e,s,n=false){const r=t.length-1;if(!s){s=[]}if(r<0||t.fnArray[r]!==i.OPS.constructPath){if(n){(0,i.warn)(`Encountered path operator "${e}" inside of a text object.`);t.addOp(i.OPS.save,null)}let r;switch(e){case i.OPS.rectangle:const t=s[0]+s[2];const e=s[1]+s[3];r=[Math.min(s[0],t),Math.max(s[0],t),Math.min(s[1],e),Math.max(s[1],e)];break;case i.OPS.moveTo:case i.OPS.lineTo:r=[s[0],s[0],s[1],s[1]];break;default:r=[Infinity,-Infinity,Infinity,-Infinity];break}t.addOp(i.OPS.constructPath,[[e],s,r]);if(n){t.addOp(i.OPS.restore,null)}}else{const n=t.argsArray[r];n[0].push(e);n[1].push(...s);const o=n[2];switch(e){case i.OPS.rectangle:const t=s[0]+s[2];const e=s[1]+s[3];o[0]=Math.min(o[0],s[0],t);o[1]=Math.max(o[1],s[0],t);o[2]=Math.min(o[2],s[1],e);o[3]=Math.max(o[3],s[1],e);break;case i.OPS.moveTo:case i.OPS.lineTo:o[0]=Math.min(o[0],s[0]);o[1]=Math.max(o[1],s[0]);o[2]=Math.min(o[2],s[1]);o[3]=Math.max(o[3],s[1]);break}}}parseColorSpace({cs:t,resources:e,localColorSpaceCache:s}){return b.ColorSpace.parseAsync({cs:t,xref:this.xref,resources:e,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:s}).catch((t=>{if(t instanceof i.AbortException){return null}if(this.options.ignoreErrors){(0,i.warn)(`parseColorSpace - ignoring ColorSpace: "${t}".`);return null}throw t}))}parseShading({shading:t,resources:e,localColorSpaceCache:s,localShadingPatternCache:i}){let n=i.get(t);if(!n){var r=l.Pattern.parseShading(t,this.xref,e,this._pdfFunctionFactory,s);const o=r.getIR();n=`pattern_${this.idFactory.createObjId()}`;if(this.parsingType3Font){n=`${this.idFactory.getDocId()}_type3_${n}`}i.set(t,n);if(this.parsingType3Font){this.handler.send("commonobj",[n,"Pattern",o])}else{this.handler.send("obj",[n,this.pageIndex,"Pattern",o])}}return n}handleColorN(t,e,s,n,o,a,c,h,u,f){const d=s.pop();if(d instanceof r.Name){const p=o.getRaw(d.name);const g=p instanceof r.Ref&&u.getByRef(p);if(g){try{const i=n.base?n.base.getRgb(s,0):null;const r=(0,l.getTilingPatternIR)(g.operatorListIR,g.dict,i);t.addOp(e,r);return undefined}catch{}}const w=this.xref.fetchIfRef(p);if(w){const r=w instanceof m.BaseStream?w.dict:w;const o=r.get("PatternType");if(o===O.TILING){const i=n.base?n.base.getRgb(s,0):null;return this.handleTilingType(e,i,a,w,r,t,c,u)}else if(o===O.SHADING){const s=r.get("Shading");const i=r.getArray("Matrix");const n=this.parseShading({shading:s,resources:a,localColorSpaceCache:h,localShadingPatternCache:f});t.addOp(e,["Shading",n,i]);return undefined}throw new i.FormatError(`Unknown PatternType: ${o}`)}}throw new i.FormatError(`Unknown PatternName: ${d}`)}_parseVisibilityExpression(t,e,s){const n=10;if(++e>n){(0,i.warn)("Visibility expression is too deeply nested");return}const o=t.length;const a=this.xref.fetchIfRef(t[0]);if(o<2||!(a instanceof r.Name)){(0,i.warn)("Invalid visibility expression");return}switch(a.name){case"And":case"Or":case"Not":s.push(a.name);break;default:(0,i.warn)(`Invalid operator ${a.name} in visibility expression`);return}for(let i=1;i<o;i++){const n=t[i];const o=this.xref.fetchIfRef(n);if(Array.isArray(o)){const t=[];s.push(t);this._parseVisibilityExpression(o,e,t)}else if(n instanceof r.Ref){s.push(n.toString())}}}async parseMarkedContentProps(t,e){let s;if(t instanceof r.Name){const i=e.get("Properties");s=i.get(t.name)}else if(t instanceof r.Dict){s=t}else{throw new i.FormatError("Optional content properties malformed.")}const n=s.get("Type")?.name;if(n==="OCG"){return{type:n,id:s.objId}}else if(n==="OCMD"){const t=s.get("VE");if(Array.isArray(t)){const e=[];this._parseVisibilityExpression(t,0,e);if(e.length>0){return{type:"OCMD",expression:e}}}const e=s.get("OCGs");if(Array.isArray(e)||e instanceof r.Dict){const t=[];if(Array.isArray(e)){for(const s of e){t.push(s.toString())}}else{t.push(e.objId)}return{type:n,ids:t,policy:s.get("P")instanceof r.Name?s.get("P").name:null,expression:null}}else if(e instanceof r.Ref){return{type:n,id:e.toString()}}}return null}getOperatorList({stream:t,task:e,resources:s,operatorList:n,initialState:o=null,fallbackFontDict:a=null}){s||=r.Dict.empty;o||=new U;if(!n){throw new Error('getOperatorList: missing "operatorList" parameter')}const c=this;const l=this.xref;let h=false;const u=new p.LocalImageCache;const f=new p.LocalColorSpaceCache;const d=new p.LocalGStateCache;const g=new p.LocalTilingPatternCache;const w=new Map;const y=s.get("XObject")||r.Dict.empty;const A=s.get("Pattern")||r.Dict.empty;const v=new B(o);const x=new j(t,l,v);const k=new R;function S(t){for(let t=0,e=x.savedStatesDepth;t<e;t++){n.addOp(i.OPS.restore,[])}}return new Promise((function t(o,p){const M=function(e){Promise.all([e,n.ready]).then((function(){try{t(o,p)}catch(t){p(t)}}),p)};e.ensureNotTerminated();k.reset();const C={};let _,I,F,O,E,D;while(!(_=k.check())){C.args=null;if(!x.read(C)){break}let t=C.args;let o=C.fn;switch(o|0){case i.OPS.paintXObject:D=t[0]instanceof r.Name;E=t[0].name;if(D){const e=u.getByName(E);if(e){n.addImageOps(e.fn,e.args,e.optionalContent);P(e);t=null;continue}}M(new Promise((function(t,o){if(!D){throw new i.FormatError("XObject must be referred to by name.")}let a=y.getRaw(E);if(a instanceof r.Ref){const e=u.getByRef(a)||c._regionalImageCache.getByRef(a);if(e){n.addImageOps(e.fn,e.args,e.optionalContent);P(e);t();return}const s=c.globalImageCache.getData(a,c.pageIndex);if(s){n.addDependency(s.objId);n.addImageOps(s.fn,s.args,s.optionalContent);t();return}a=l.fetch(a)}if(!(a instanceof m.BaseStream)){throw new i.FormatError("XObject should be a stream")}const h=a.dict.get("Subtype");if(!(h instanceof r.Name)){throw new i.FormatError("XObject should have a Name subtype")}if(h.name==="Form"){v.save();c.buildFormXObject(s,a,null,n,e,v.state.clone(),f).then((function(){v.restore();t()}),o);return}else if(h.name==="Image"){c.buildPaintImageXObject({resources:s,image:a,operatorList:n,cacheKey:E,localImageCache:u,localColorSpaceCache:f}).then(t,o);return}else if(h.name==="PS"){(0,i.info)("Ignored XObject subtype PS")}else{throw new i.FormatError(`Unhandled XObject subtype ${h.name}`)}t()})).catch((function(t){if(t instanceof i.AbortException){return}if(c.options.ignoreErrors){(0,i.warn)(`getOperatorList - ignoring XObject: "${t}".`);return}throw t})));return;case i.OPS.setFont:var R=t[1];M(c.handleSetFont(s,t,null,n,e,v.state,a).then((function(t){n.addDependency(t);n.addOp(i.OPS.setFont,[t,R])})));return;case i.OPS.beginText:h=true;break;case i.OPS.endText:h=false;break;case i.OPS.endInlineImage:var N=t[0].cacheKey;if(N){const e=u.getByName(N);if(e){n.addImageOps(e.fn,e.args,e.optionalContent);P(e);t=null;continue}}M(c.buildPaintImageXObject({resources:s,image:t[0],isInline:true,operatorList:n,cacheKey:N,localImageCache:u,localColorSpaceCache:f}));return;case i.OPS.showText:if(!v.state.font){c.ensureStateFont(v.state);continue}t[0]=c.handleText(t[0],v.state);break;case i.OPS.showSpacedText:if(!v.state.font){c.ensureStateFont(v.state);continue}var L=[];var B=v.state;for(const e of t[0]){if(typeof e==="string"){L.push(...c.handleText(e,B))}else if(typeof e==="number"){L.push(e)}}t[0]=L;o=i.OPS.showText;break;case i.OPS.nextLineShowText:if(!v.state.font){c.ensureStateFont(v.state);continue}n.addOp(i.OPS.nextLine);t[0]=c.handleText(t[0],v.state);o=i.OPS.showText;break;case i.OPS.nextLineSetSpacingShowText:if(!v.state.font){c.ensureStateFont(v.state);continue}n.addOp(i.OPS.nextLine);n.addOp(i.OPS.setWordSpacing,[t.shift()]);n.addOp(i.OPS.setCharSpacing,[t.shift()]);t[0]=c.handleText(t[0],v.state);o=i.OPS.showText;break;case i.OPS.setTextRenderingMode:v.state.textRenderingMode=t[0];break;case i.OPS.setFillColorSpace:{const e=b.ColorSpace.getCached(t[0],l,f);if(e){v.state.fillColorSpace=e;continue}M(c.parseColorSpace({cs:t[0],resources:s,localColorSpaceCache:f}).then((function(t){if(t){v.state.fillColorSpace=t}})));return}case i.OPS.setStrokeColorSpace:{const e=b.ColorSpace.getCached(t[0],l,f);if(e){v.state.strokeColorSpace=e;continue}M(c.parseColorSpace({cs:t[0],resources:s,localColorSpaceCache:f}).then((function(t){if(t){v.state.strokeColorSpace=t}})));return}case i.OPS.setFillColor:O=v.state.fillColorSpace;t=O.getRgb(t,0);o=i.OPS.setFillRGBColor;break;case i.OPS.setStrokeColor:O=v.state.strokeColorSpace;t=O.getRgb(t,0);o=i.OPS.setStrokeRGBColor;break;case i.OPS.setFillGray:v.state.fillColorSpace=b.ColorSpace.singletons.gray;t=b.ColorSpace.singletons.gray.getRgb(t,0);o=i.OPS.setFillRGBColor;break;case i.OPS.setStrokeGray:v.state.strokeColorSpace=b.ColorSpace.singletons.gray;t=b.ColorSpace.singletons.gray.getRgb(t,0);o=i.OPS.setStrokeRGBColor;break;case i.OPS.setFillCMYKColor:v.state.fillColorSpace=b.ColorSpace.singletons.cmyk;t=b.ColorSpace.singletons.cmyk.getRgb(t,0);o=i.OPS.setFillRGBColor;break;case i.OPS.setStrokeCMYKColor:v.state.strokeColorSpace=b.ColorSpace.singletons.cmyk;t=b.ColorSpace.singletons.cmyk.getRgb(t,0);o=i.OPS.setStrokeRGBColor;break;case i.OPS.setFillRGBColor:v.state.fillColorSpace=b.ColorSpace.singletons.rgb;t=b.ColorSpace.singletons.rgb.getRgb(t,0);break;case i.OPS.setStrokeRGBColor:v.state.strokeColorSpace=b.ColorSpace.singletons.rgb;t=b.ColorSpace.singletons.rgb.getRgb(t,0);break;case i.OPS.setFillColorN:O=v.state.fillColorSpace;if(O.name==="Pattern"){M(c.handleColorN(n,i.OPS.setFillColorN,t,O,A,s,e,f,g,w));return}t=O.getRgb(t,0);o=i.OPS.setFillRGBColor;break;case i.OPS.setStrokeColorN:O=v.state.strokeColorSpace;if(O.name==="Pattern"){M(c.handleColorN(n,i.OPS.setStrokeColorN,t,O,A,s,e,f,g,w));return}t=O.getRgb(t,0);o=i.OPS.setStrokeRGBColor;break;case i.OPS.shadingFill:var $=s.get("Shading");if(!$){throw new i.FormatError("No shading resource found")}var U=$.get(t[0].name);if(!U){throw new i.FormatError("No shading object found")}const p=c.parseShading({shading:U,resources:s,localColorSpaceCache:f,localShadingPatternCache:w});t=[p];o=i.OPS.shadingFill;break;case i.OPS.setGState:D=t[0]instanceof r.Name;E=t[0].name;if(D){const e=d.getByName(E);if(e){if(e.length>0){n.addOp(i.OPS.setGState,[e])}t=null;continue}}M(new Promise((function(t,o){if(!D){throw new i.FormatError("GState must be referred to by name.")}const a=s.get("ExtGState");if(!(a instanceof r.Dict)){throw new i.FormatError("ExtGState should be a dictionary.")}const l=a.get(E);if(!(l instanceof r.Dict)){throw new i.FormatError("GState should be a dictionary.")}c.setGState({resources:s,gState:l,operatorList:n,cacheKey:E,task:e,stateManager:v,localGStateCache:d,localColorSpaceCache:f}).then(t,o)})).catch((function(t){if(t instanceof i.AbortException){return}if(c.options.ignoreErrors){(0,i.warn)(`getOperatorList - ignoring ExtGState: "${t}".`);return}throw t})));return;case i.OPS.moveTo:case i.OPS.lineTo:case i.OPS.curveTo:case i.OPS.curveTo2:case i.OPS.curveTo3:case i.OPS.closePath:case i.OPS.rectangle:c.buildPath(n,o,t,h);continue;case i.OPS.markPoint:case i.OPS.markPointProps:case i.OPS.beginCompat:case i.OPS.endCompat:continue;case i.OPS.beginMarkedContentProps:if(!(t[0]instanceof r.Name)){(0,i.warn)(`Expected name for beginMarkedContentProps arg0=${t[0]}`);continue}if(t[0].name==="OC"){M(c.parseMarkedContentProps(t[1],s).then((t=>{n.addOp(i.OPS.beginMarkedContentProps,["OC",t])})).catch((t=>{if(t instanceof i.AbortException){return}if(c.options.ignoreErrors){(0,i.warn)(`getOperatorList - ignoring beginMarkedContentProps: "${t}".`);return}throw t})));return}t=[t[0].name,t[1]instanceof r.Dict?t[1].get("MCID"):null];break;case i.OPS.beginMarkedContent:case i.OPS.endMarkedContent:default:if(t!==null){for(I=0,F=t.length;I<F;I++){if(t[I]instanceof r.Dict){break}}if(I<F){(0,i.warn)("getOperatorList - ignoring operator: "+o);continue}}}n.addOp(o,t)}if(_){M(T);return}S();o()})).catch((t=>{if(t instanceof i.AbortException){return}if(this.options.ignoreErrors){(0,i.warn)(`getOperatorList - ignoring errors during "${e.name}" `+`task: "${t}".`);S();return}throw t}))}getTextContent({stream:t,task:e,resources:s,stateManager:n=null,includeMarkedContent:o=false,sink:a,seenStyles:c=new Set,viewBox:l,markedContentData:h=null,disableNormalization:u=false}){s||=r.Dict.empty;n||=new B(new $);if(o){h||={level:0}}const f={items:[],styles:Object.create(null)};const d={initialized:false,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:false,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:Infinity,negativeSpaceMax:-Infinity,notASpace:-Infinity,transform:null,fontName:null,hasEOL:false};const g=[" "," "];let b=0;function y(t){const e=(b+1)%2;const s=g[b]!==" "&&g[e]===" ";g[b]=t;b=e;return s}function A(){return g[b]!==" "&&g[(b+1)%2]===" "}function v(){g[0]=g[1]=" ";b=0}const x=.102;const k=.03;const S=-.2;const M=.102;const C=.6;const _=.25;const I=this;const F=this.xref;const O=[];let D=null;const P=new p.LocalImageCache;const N=new p.LocalGStateCache;const L=new j(t,F,n);let U;function H({width:t=0,height:e=0,transform:s=d.prevTransform,fontName:i=d.fontName}){f.items.push({str:" ",dir:"ltr",width:t,height:e,transform:s,fontName:i,hasEOL:false})}function G(){const t=U.font;const e=[U.fontSize*U.textHScale,0,0,U.fontSize,0,U.textRise];if(t.isType3Font&&(U.fontSize<=1||t.isCharBBox)&&!(0,i.isArrayEqual)(U.fontMatrix,i.FONT_IDENTITY_MATRIX)){const s=t.bbox[3]-t.bbox[1];if(s>0){e[3]*=s*U.fontMatrix[3]}}return i.Util.transform(U.ctm,i.Util.transform(U.textMatrix,e))}function q(){if(d.initialized){return d}const{font:t,loadedName:e}=U;if(!c.has(e)){c.add(e);f.styles[e]={fontFamily:t.fallbackName,ascent:t.ascent,descent:t.descent,vertical:t.vertical}}d.fontName=e;const s=d.transform=G();if(!t.vertical){d.width=d.totalWidth=0;d.height=d.totalHeight=Math.hypot(s[2],s[3]);d.vertical=false}else{d.width=d.totalWidth=Math.hypot(s[0],s[1]);d.height=d.totalHeight=0;d.vertical=true}const i=Math.hypot(U.textLineMatrix[0],U.textLineMatrix[1]);const n=Math.hypot(U.ctm[0],U.ctm[1]);d.textAdvanceScale=n*i;const{fontSize:r}=U;d.trackingSpaceMin=r*x;d.notASpace=r*k;d.negativeSpaceMax=r*S;d.spaceInFlowMin=r*M;d.spaceInFlowMax=r*C;d.hasEOL=false;d.initialized=true;return d}function X(){if(!d.initialized){return}const t=Math.hypot(U.textLineMatrix[0],U.textLineMatrix[1]);const e=Math.hypot(U.ctm[0],U.ctm[1]);const s=e*t;if(s===d.textAdvanceScale){return}if(!d.vertical){d.totalWidth+=d.width*d.textAdvanceScale;d.width=0}else{d.totalHeight+=d.height*d.textAdvanceScale;d.height=0}d.textAdvanceScale=s}function W(t){let e=t.str.join("");if(!u){e=(0,i.normalizeUnicode)(e)}const s=(0,w.bidi)(e,-1,t.vertical);return{str:s.str,dir:s.dir,width:Math.abs(t.totalWidth),height:Math.abs(t.totalHeight),transform:t.transform,fontName:t.fontName,hasEOL:t.hasEOL}}function z(t,n){return I.loadFont(t,n,s).then((function(t){if(!t.font.isType3Font){return t}return t.loadType3Data(I,s,e).catch((function(){})).then((function(){return t}))})).then((function(t){U.loadedName=t.loadedName;U.font=t.font;U.fontMatrix=t.font.fontMatrix||i.FONT_IDENTITY_MATRIX}))}function V(t,e,s){const i=Math.hypot(s[0],s[1]);return[(s[0]*t+s[1]*e)/i,(s[2]*t+s[3]*e)/i]}function K(t){const e=G();let s=e[4];let i=e[5];if(U.font?.vertical){if(s<l[0]||s>l[2]||i+t<l[1]||i>l[3]){return false}}else if(s+t<l[0]||s>l[2]||i<l[1]||i>l[3]){return false}if(!U.font||!d.prevTransform){return true}let n=d.prevTransform[4];let r=d.prevTransform[5];if(n===s&&r===i){return true}let o=-1;if(e[0]&&e[1]===0&&e[2]===0){o=e[0]>0?0:180}else if(e[1]&&e[0]===0&&e[3]===0){o=e[1]>0?90:270}switch(o){case 0:break;case 90:[s,i]=[i,s];[n,r]=[r,n];break;case 180:[s,i,n,r]=[-s,-i,-n,-r];break;case 270:[s,i]=[-i,-s];[n,r]=[-r,-n];break;default:[s,i]=V(s,i,e);[n,r]=V(n,r,d.prevTransform)}if(U.font.vertical){const t=(r-i)/d.textAdvanceScale;const e=s-n;const o=Math.sign(d.height);if(t<o*d.negativeSpaceMax){if(Math.abs(e)>.5*d.width){Y();return true}v();Z();return true}if(Math.abs(e)>d.width){Y();return true}if(t<=o*d.notASpace){v()}if(t<=o*d.trackingSpaceMin){if(A()){v();Z();H({height:Math.abs(t)})}else{d.height+=t}}else if(!Q(t,d.prevTransform,o)){if(d.str.length===0){v();H({height:Math.abs(t)})}else{d.height+=t}}if(Math.abs(e)>d.width*_){Z()}return true}const a=(s-n)/d.textAdvanceScale;const c=i-r;const h=Math.sign(d.width);if(a<h*d.negativeSpaceMax){if(Math.abs(c)>.5*d.height){Y();return true}v();Z();return true}if(Math.abs(c)>d.height){Y();return true}if(a<=h*d.notASpace){v()}if(a<=h*d.trackingSpaceMin){if(A()){v();Z();H({width:Math.abs(a)})}else{d.width+=a}}else if(!Q(a,d.prevTransform,h)){if(d.str.length===0){v();H({width:Math.abs(a)})}else{d.width+=a}}if(Math.abs(c)>d.height*_){Z()}return true}function J({chars:t,extraSpacing:e}){const s=U.font;if(!t){const t=U.charSpacing+e;if(t){if(!s.vertical){U.translateTextMatrix(t*U.textHScale,0)}else{U.translateTextMatrix(0,-t)}}return}const i=s.charsToGlyphs(t);const n=U.fontMatrix[0]*U.fontSize;for(let t=0,r=i.length;t<r;t++){const o=i[t];const{category:a}=o;if(a.isInvisibleFormatMark){continue}let c=U.charSpacing+(t+1===r?e:0);let l=o.width;if(s.vertical){l=o.vmetric?o.vmetric[0]:-l}let h=l*n;if(a.isWhitespace){if(!s.vertical){c+=h+U.wordSpacing;U.translateTextMatrix(c*U.textHScale,0)}else{c+=-h+U.wordSpacing;U.translateTextMatrix(0,-c)}y(" ");continue}if(!a.isZeroWidthDiacritic&&!K(h)){if(!s.vertical){U.translateTextMatrix(h*U.textHScale,0)}else{U.translateTextMatrix(0,h)}continue}const u=q();if(a.isZeroWidthDiacritic){h=0}if(!s.vertical){h*=U.textHScale;U.translateTextMatrix(h,0);u.width+=h}else{U.translateTextMatrix(0,h);h=Math.abs(h);u.height+=h}if(h){u.prevTransform=G()}const f=o.unicode;if(y(f)){u.str.push(" ")}u.str.push(f);if(c){if(!s.vertical){U.translateTextMatrix(c*U.textHScale,0)}else{U.translateTextMatrix(0,-c)}}}}function Y(){v();if(d.initialized){d.hasEOL=true;Z()}else{f.items.push({str:"",dir:"ltr",width:0,height:0,transform:G(),fontName:U.loadedName,hasEOL:true})}}function Q(t,e,s){if(s*d.spaceInFlowMin<=t&&t<=s*d.spaceInFlowMax){if(d.initialized){v();d.str.push(" ")}return false}const i=d.fontName;let n=0;if(d.vertical){n=t;t=0}Z();v();H({width:Math.abs(t),height:Math.abs(n),transform:e||G(),fontName:i});return true}function Z(){if(!d.initialized||!d.str){return}if(!d.vertical){d.totalWidth+=d.width*d.textAdvanceScale}else{d.totalHeight+=d.height*d.textAdvanceScale}f.items.push(W(d));d.initialized=false;d.str.length=0}function tt(t=false){const e=f.items.length;if(e===0){return}if(t&&e<E){return}a.enqueue(f,e);f.items=[];f.styles=Object.create(null)}const et=new R;return new Promise((function t(d,p){const g=function(e){tt(true);Promise.all([e,a.ready]).then((function(){try{t(d,p)}catch(t){p(t)}}),p)};e.ensureNotTerminated();et.reset();const w={};let b,y=[];while(!(b=et.check())){y.length=0;w.args=y;if(!L.read(w)){break}const t=U;U=n.state;const d=w.fn;y=w.args;switch(d|0){case i.OPS.setFont:var A=y[0].name,v=y[1];if(U.font&&A===U.fontName&&v===U.fontSize){break}Z();U.fontName=A;U.fontSize=v;g(z(A,null));return;case i.OPS.setTextRise:U.textRise=y[0];break;case i.OPS.setHScale:U.textHScale=y[0]/100;break;case i.OPS.setLeading:U.leading=y[0];break;case i.OPS.moveText:U.translateTextLineMatrix(y[0],y[1]);U.textMatrix=U.textLineMatrix.slice();break;case i.OPS.setLeadingMoveText:U.leading=-y[1];U.translateTextLineMatrix(y[0],y[1]);U.textMatrix=U.textLineMatrix.slice();break;case i.OPS.nextLine:U.carriageReturn();break;case i.OPS.setTextMatrix:U.setTextMatrix(y[0],y[1],y[2],y[3],y[4],y[5]);U.setTextLineMatrix(y[0],y[1],y[2],y[3],y[4],y[5]);X();break;case i.OPS.setCharSpacing:U.charSpacing=y[0];break;case i.OPS.setWordSpacing:U.wordSpacing=y[0];break;case i.OPS.beginText:U.textMatrix=i.IDENTITY_MATRIX.slice();U.textLineMatrix=i.IDENTITY_MATRIX.slice();break;case i.OPS.showSpacedText:if(!n.state.font){I.ensureStateFont(n.state);continue}const d=(U.font.vertical?1:-1)*U.fontSize/1e3;const p=y[0];for(let t=0,e=p.length;t<e;t++){const e=p[t];if(typeof e==="string"){O.push(e)}else if(typeof e==="number"&&e!==0){const t=O.join("");O.length=0;J({chars:t,extraSpacing:e*d})}}if(O.length>0){const t=O.join("");O.length=0;J({chars:t,extraSpacing:0})}break;case i.OPS.showText:if(!n.state.font){I.ensureStateFont(n.state);continue}J({chars:y[0],extraSpacing:0});break;case i.OPS.nextLineShowText:if(!n.state.font){I.ensureStateFont(n.state);continue}U.carriageReturn();J({chars:y[0],extraSpacing:0});break;case i.OPS.nextLineSetSpacingShowText:if(!n.state.font){I.ensureStateFont(n.state);continue}U.wordSpacing=y[0];U.charSpacing=y[1];U.carriageReturn();J({chars:y[2],extraSpacing:0});break;case i.OPS.paintXObject:Z();if(!D){D=s.get("XObject")||r.Dict.empty}var x=y[0]instanceof r.Name;var k=y[0].name;if(x&&P.getByName(k)){break}g(new Promise((function(t,f){if(!x){throw new i.FormatError("XObject must be referred to by name.")}let d=D.getRaw(k);if(d instanceof r.Ref){if(P.getByRef(d)){t();return}const e=I.globalImageCache.getData(d,I.pageIndex);if(e){t();return}d=F.fetch(d)}if(!(d instanceof m.BaseStream)){throw new i.FormatError("XObject should be a stream")}const p=d.dict.get("Subtype");if(!(p instanceof r.Name)){throw new i.FormatError("XObject should have a Name subtype")}if(p.name!=="Form"){P.set(k,d.dict.objId,true);t();return}const g=n.state.clone();const w=new B(g);const b=d.dict.getArray("Matrix");if(Array.isArray(b)&&b.length===6){w.transform(b)}tt();const y={enqueueInvoked:false,enqueue(t,e){this.enqueueInvoked=true;a.enqueue(t,e)},get desiredSize(){return a.desiredSize},get ready(){return a.ready}};I.getTextContent({stream:d,task:e,resources:d.dict.get("Resources")||s,stateManager:w,includeMarkedContent:o,sink:y,seenStyles:c,viewBox:l,markedContentData:h,disableNormalization:u}).then((function(){if(!y.enqueueInvoked){P.set(k,d.dict.objId,true)}t()}),f)})).catch((function(t){if(t instanceof i.AbortException){return}if(I.options.ignoreErrors){(0,i.warn)(`getTextContent - ignoring XObject: "${t}".`);return}throw t})));return;case i.OPS.setGState:x=y[0]instanceof r.Name;k=y[0].name;if(x&&N.getByName(k)){break}g(new Promise((function(t,e){if(!x){throw new i.FormatError("GState must be referred to by name.")}const n=s.get("ExtGState");if(!(n instanceof r.Dict)){throw new i.FormatError("ExtGState should be a dictionary.")}const o=n.get(k);if(!(o instanceof r.Dict)){throw new i.FormatError("GState should be a dictionary.")}const a=o.get("Font");if(!a){N.set(k,o.objId,true);t();return}Z();U.fontName=null;U.fontSize=a[1];z(null,a[0]).then(t,e)})).catch((function(t){if(t instanceof i.AbortException){return}if(I.options.ignoreErrors){(0,i.warn)(`getTextContent - ignoring ExtGState: "${t}".`);return}throw t})));return;case i.OPS.beginMarkedContent:Z();if(o){h.level++;f.items.push({type:"beginMarkedContent",tag:y[0]instanceof r.Name?y[0].name:null})}break;case i.OPS.beginMarkedContentProps:Z();if(o){h.level++;let t=null;if(y[1]instanceof r.Dict){t=y[1].get("MCID")}f.items.push({type:"beginMarkedContentProps",id:Number.isInteger(t)?`${I.idFactory.getPageObjId()}_mc${t}`:null,tag:y[0]instanceof r.Name?y[0].name:null})}break;case i.OPS.endMarkedContent:Z();if(o){if(h.level===0){break}h.level--;f.items.push({type:"endMarkedContent"})}break;case i.OPS.restore:if(t&&(t.font!==U.font||t.fontSize!==U.fontSize||t.fontName!==U.fontName)){Z()}break}if(f.items.length>=a.desiredSize){b=true;break}}if(b){g(T);return}Z();tt();d()})).catch((t=>{if(t instanceof i.AbortException){return}if(this.options.ignoreErrors){(0,i.warn)(`getTextContent - ignoring errors during "${e.name}" `+`task: "${t}".`);Z();tt();return}throw t}))}extractDataStructures(t,e,s){const n=this.xref;let o;const l=this.readToUnicode(s.toUnicode||t.get("ToUnicode")||e.get("ToUnicode"));if(s.composite){const e=t.get("CIDSystemInfo");if(e instanceof r.Dict){s.cidSystemInfo={registry:(0,i.stringToPDFString)(e.get("Registry")),ordering:(0,i.stringToPDFString)(e.get("Ordering")),supplement:e.get("Supplement")}}try{const e=t.get("CIDToGIDMap");if(e instanceof m.BaseStream){o=e.getBytes()}}catch(t){if(!this.options.ignoreErrors){throw t}(0,i.warn)(`extractDataStructures - ignoring CIDToGIDMap data: "${t}".`)}}const h=[];let u=null;let f;if(t.has("Encoding")){f=t.get("Encoding");if(f instanceof r.Dict){u=f.get("BaseEncoding");u=u instanceof r.Name?u.name:null;if(f.has("Differences")){const t=f.get("Differences");let e=0;for(const s of t){const t=n.fetchIfRef(s);if(typeof t==="number"){e=t}else if(t instanceof r.Name){h[e++]=t.name}else{throw new i.FormatError(`Invalid entry in 'Differences' array: ${t}`)}}}}else if(f instanceof r.Name){u=f.name}else{const t="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors){throw new i.FormatError(t)}(0,i.warn)(t)}if(u!=="MacRomanEncoding"&&u!=="MacExpertEncoding"&&u!=="WinAnsiEncoding"){u=null}}const d=!s.file||s.isInternalFont,p=(0,c.getSymbolsFonts)()[s.name];if(u&&d&&p){u=null}if(u){s.defaultEncoding=(0,a.getEncoding)(u)}else{const t=!!(s.flags&A.FontFlags.Symbolic);const e=!!(s.flags&A.FontFlags.Nonsymbolic);f=a.StandardEncoding;if(s.type==="TrueType"&&!e){f=a.WinAnsiEncoding}if(t||p){f=a.MacRomanEncoding;if(d){if(/Symbol/i.test(s.name)){f=a.SymbolSetEncoding}else if(/Dingbats/i.test(s.name)){f=a.ZapfDingbatsEncoding}else if(/Wingdings/i.test(s.name)){f=a.WinAnsiEncoding}}}s.defaultEncoding=f}s.differences=h;s.baseEncodingName=u;s.hasEncoding=!!u||h.length>0;s.dict=t;return l.then((t=>{s.toUnicode=t;return this.buildToUnicode(s)})).then((t=>{s.toUnicode=t;if(o){s.cidToGidMap=this.readCidToGidMap(o,t)}return s}))}_simpleFontToUnicode(t,e=false){(0,i.assert)(!t.composite,"Must be a simple font.");const s=[];const n=t.defaultEncoding.slice();const r=t.baseEncodingName;const o=t.differences;for(const t in o){const e=o[t];if(e===".notdef"){continue}n[t]=e}const c=(0,x.getGlyphsUnicode)();for(const i in n){let o=n[i];if(o===""){continue}let l=c[o];if(l!==undefined){s[i]=String.fromCharCode(l);continue}let h=0;switch(o[0]){case"G":if(o.length===3){h=parseInt(o.substring(1),16)}break;case"g":if(o.length===5){h=parseInt(o.substring(1),16)}break;case"C":case"c":if(o.length>=3&&o.length<=4){const s=o.substring(1);if(e){h=parseInt(s,16);break}h=+s;if(Number.isNaN(h)&&Number.isInteger(parseInt(s,16))){return this._simpleFontToUnicode(t,true)}}break;case"u":l=(0,S.getUnicodeForGlyph)(o,c);if(l!==-1){h=l}break;default:switch(o){case"f_h":case"f_t":case"T_h":s[i]=o.replaceAll("_","");continue}break}if(h>0&&h<=1114111&&Number.isInteger(h)){if(r&&h===+i){const t=(0,a.getEncoding)(r);if(t&&(o=t[i])){s[i]=String.fromCharCode(c[o]);continue}}s[i]=String.fromCodePoint(h)}}return s}async buildToUnicode(t){t.hasIncludedToUnicodeMap=t.toUnicode?.length>0;if(t.hasIncludedToUnicodeMap){if(!t.composite&&t.hasEncoding){t.fallbackToUnicode=this._simpleFontToUnicode(t)}return t.toUnicode}if(!t.composite){return new u.ToUnicodeMap(this._simpleFontToUnicode(t))}if(t.composite&&(t.cMap.builtInCMap&&!(t.cMap instanceof n.IdentityCMap)||t.cidSystemInfo.registry==="Adobe"&&(t.cidSystemInfo.ordering==="GB1"||t.cidSystemInfo.ordering==="CNS1"||t.cidSystemInfo.ordering==="Japan1"||t.cidSystemInfo.ordering==="Korea1"))){const{registry:e,ordering:s}=t.cidSystemInfo;const o=r.Name.get(`${e}-${s}-UCS2`);const a=await n.CMapFactory.create({encoding:o,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});const c=[],l=[];t.cMap.forEach((function(t,e){if(e>65535){throw new i.FormatError("Max size of CID is 65,535")}const s=a.lookup(e);if(s){l.length=0;for(let t=0,e=s.length;t<e;t+=2){l.push((s.charCodeAt(t)<<8)+s.charCodeAt(t+1))}c[t]=String.fromCharCode(...l)}}));return new u.ToUnicodeMap(c)}return new u.IdentityToUnicodeMap(t.firstChar,t.lastChar)}readToUnicode(t){if(!t){return Promise.resolve(null)}if(t instanceof r.Name){return n.CMapFactory.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){if(t instanceof n.IdentityCMap){return new u.IdentityToUnicodeMap(0,65535)}return new u.ToUnicodeMap(t.getMap())}))}else if(t instanceof m.BaseStream){return n.CMapFactory.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then((function(t){if(t instanceof n.IdentityCMap){return new u.IdentityToUnicodeMap(0,65535)}const e=new Array(t.length);t.forEach((function(t,s){if(typeof s==="number"){e[t]=String.fromCodePoint(s);return}const i=[];for(let t=0;t<s.length;t+=2){const e=s.charCodeAt(t)<<8|s.charCodeAt(t+1);if((e&63488)!==55296){i.push(e);continue}t+=2;const n=s.charCodeAt(t)<<8|s.charCodeAt(t+1);i.push(((e&1023)<<10)+(n&1023)+65536)}e[t]=String.fromCodePoint(...i)}));return new u.ToUnicodeMap(e)}),(t=>{if(t instanceof i.AbortException){return null}if(this.options.ignoreErrors){(0,i.warn)(`readToUnicode - ignoring ToUnicode data: "${t}".`);return null}throw t}))}return Promise.resolve(null)}readCidToGidMap(t,e){const s=[];for(let i=0,n=t.length;i<n;i++){const n=t[i++]<<8|t[i];const r=i>>1;if(n===0&&!e.has(r)){continue}s[r]=n}return s}extractWidths(t,e,s){const i=this.xref;let n=[];let o=0;const a=[];let c;let l,h,u,f,d,p,g;if(s.composite){o=t.has("DW")?t.get("DW"):1e3;g=t.get("W");if(g){for(l=0,h=g.length;l<h;l++){d=i.fetchIfRef(g[l++]);p=i.fetchIfRef(g[l]);if(Array.isArray(p)){for(u=0,f=p.length;u<f;u++){n[d++]=i.fetchIfRef(p[u])}}else{const t=i.fetchIfRef(g[++l]);for(u=d;u<=p;u++){n[u]=t}}}}if(s.vertical){let e=t.getArray("DW2")||[880,-1e3];c=[e[1],o*.5,e[0]];e=t.get("W2");if(e){for(l=0,h=e.length;l<h;l++){d=i.fetchIfRef(e[l++]);p=i.fetchIfRef(e[l]);if(Array.isArray(p)){for(u=0,f=p.length;u<f;u++){a[d++]=[i.fetchIfRef(p[u++]),i.fetchIfRef(p[u++]),i.fetchIfRef(p[u])]}}else{const t=[i.fetchIfRef(e[++l]),i.fetchIfRef(e[++l]),i.fetchIfRef(e[++l])];for(u=d;u<=p;u++){a[u]=t}}}}}}else{const a=s.firstChar;g=t.get("Widths");if(g){u=a;for(l=0,h=g.length;l<h;l++){n[u++]=i.fetchIfRef(g[l])}o=parseFloat(e.get("MissingWidth"))||0}else{const e=t.get("BaseFont");if(e instanceof r.Name){const t=this.getBaseFontMetrics(e.name);n=this.buildCharCodeToWidth(t.widths,s);o=t.defaultWidth}}}let m=true;let w=o;for(const t in n){const e=n[t];if(!e){continue}if(!w){w=e;continue}if(w!==e){m=false;break}}if(m){s.flags|=A.FontFlags.FixedPitch}else{s.flags&=~A.FontFlags.FixedPitch}s.defaultWidth=o;s.widths=n;s.defaultVMetrics=c;s.vmetrics=a}isSerifFont(t){const e=t.split("-")[0];return e in(0,c.getSerifFonts)()||/serif/gi.test(e)}getBaseFontMetrics(t){let e=0;let s=Object.create(null);let i=false;const n=(0,c.getStdFontMap)();let r=n[t]||t;const o=(0,k.getMetrics)();if(!(r in o)){r=this.isSerifFont(t)?"Times-Roman":"Helvetica"}const a=o[r];if(typeof a==="number"){e=a;i=true}else{s=a()}return{defaultWidth:e,monospace:i,widths:s}}buildCharCodeToWidth(t,e){const s=Object.create(null);const i=e.differences;const n=e.defaultEncoding;for(let e=0;e<256;e++){if(e in i&&t[i[e]]){s[e]=t[i[e]];continue}if(e in n&&t[n[e]]){s[e]=t[n[e]];continue}}return s}preEvaluateFont(t){const e=t;let s=t.get("Subtype");if(!(s instanceof r.Name)){throw new i.FormatError("invalid font Subtype")}let n=false;let o,a;if(s.name==="Type0"){const e=t.get("DescendantFonts");if(!e){throw new i.FormatError("Descendant fonts are not specified")}t=Array.isArray(e)?this.xref.fetchIfRef(e[0]):e;if(!(t instanceof r.Dict)){throw new i.FormatError("Descendant font is not a dictionary.")}s=t.get("Subtype");if(!(s instanceof r.Name)){throw new i.FormatError("invalid font Subtype")}n=true}const c=t.get("FirstChar")||0,l=t.get("LastChar")||(n?65535:255);const h=t.get("FontDescriptor");if(h){o=new C.MurmurHash3_64;const s=e.getRaw("Encoding");if(s instanceof r.Name){o.update(s.name)}else if(s instanceof r.Ref){o.update(s.toString())}else if(s instanceof r.Dict){for(const t of s.getRawValues()){if(t instanceof r.Name){o.update(t.name)}else if(t instanceof r.Ref){o.update(t.toString())}else if(Array.isArray(t)){const e=t.length,s=new Array(e);for(let i=0;i<e;i++){const e=t[i];if(e instanceof r.Name){s[i]=e.name}else if(typeof e==="number"||e instanceof r.Ref){s[i]=e.toString()}}o.update(s.join())}}}o.update(`${c}-${l}`);a=t.get("ToUnicode")||e.get("ToUnicode");if(a instanceof m.BaseStream){const t=a.str||a;const e=t.buffer?new Uint8Array(t.buffer.buffer,0,t.bufferLength):new Uint8Array(t.bytes.buffer,t.start,t.end-t.start);o.update(e)}else if(a instanceof r.Name){o.update(a.name)}const i=t.get("Widths")||e.get("Widths");if(Array.isArray(i)){const t=[];for(const e of i){if(typeof e==="number"||e instanceof r.Ref){t.push(e.toString())}}o.update(t.join())}if(n){o.update("compositeFont");const s=t.get("W")||e.get("W");if(Array.isArray(s)){const t=[];for(const e of s){if(typeof e==="number"||e instanceof r.Ref){t.push(e.toString())}else if(Array.isArray(e)){const s=[];for(const t of e){if(typeof t==="number"||t instanceof r.Ref){s.push(t.toString())}}t.push(`[${s.join()}]`)}}o.update(t.join())}const i=t.getRaw("CIDToGIDMap")||e.getRaw("CIDToGIDMap");if(i instanceof r.Name){o.update(i.name)}else if(i instanceof r.Ref){o.update(i.toString())}else if(i instanceof m.BaseStream){o.update(i.peekBytes())}}}return{descriptor:h,dict:t,baseDict:e,composite:n,type:s.name,firstChar:c,lastChar:l,toUnicode:a,hash:o?o.hexdigest():""}}async translateFont({descriptor:t,dict:e,baseDict:s,composite:a,type:l,firstChar:u,lastChar:f,toUnicode:d,cssFontInfo:p}){const m=l==="Type3";let w;if(!t){if(m){t=new r.Dict(null);t.set("FontName",r.Name.get(l));t.set("FontBBox",e.getArray("FontBBox")||[0,0,0,0])}else{let t=e.get("BaseFont");if(!(t instanceof r.Name)){throw new i.FormatError("Base font is not specified")}t=t.name.replaceAll(/[,_]/g,"-");const n=this.getBaseFontMetrics(t);const a=t.split("-")[0];const h=(this.isSerifFont(a)?A.FontFlags.Serif:0)|(n.monospace?A.FontFlags.FixedPitch:0)|((0,c.getSymbolsFonts)()[a]?A.FontFlags.Symbolic:A.FontFlags.Nonsymbolic);w={type:l,name:t,loadedName:s.loadedName,systemFontInfo:null,widths:n.widths,defaultWidth:n.defaultWidth,isSimulatedFlags:true,flags:h,firstChar:u,lastChar:f,toUnicode:d,xHeight:0,capHeight:0,italicAngle:0,isType3Font:m};const p=e.get("Widths");const g=(0,c.getStandardFontName)(t);let b=null;if(g){b=await this.fetchStandardFontData(g);w.isInternalFont=!!b}if(!w.isInternalFont&&this.options.useSystemFonts){w.systemFontInfo=(0,v.getFontSubstitution)(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,t,g)}return this.extractDataStructures(e,e,w).then((e=>{if(p){const t=[];let s=u;for(const e of p){t[s++]=this.xref.fetchIfRef(e)}e.widths=t}else{e.widths=this.buildCharCodeToWidth(n.widths,e)}return new o.Font(t,b,e)}))}}let b=t.get("FontName");let y=e.get("BaseFont");if(typeof b==="string"){b=r.Name.get(b)}if(typeof y==="string"){y=r.Name.get(y)}const x=b?.name;const k=y?.name;if(!m&&x!==k){(0,i.info)(`The FontDescriptor's FontName is "${x}" but `+`should be the same as the Font's BaseFont "${k}".`);if(x&&k&&(k.startsWith(x)||!(0,c.isKnownFontName)(x)&&(0,c.isKnownFontName)(k))){b=null}}b||=y;if(!(b instanceof r.Name)){throw new i.FormatError("invalid font name")}let S,M,C,_,I;try{S=t.get("FontFile","FontFile2","FontFile3")}catch(t){if(!this.options.ignoreErrors){throw t}(0,i.warn)(`translateFont - fetching "${b.name}" font file: "${t}".`);S=new g.NullStream}let F=false;let O=null;let E=null;if(S){if(S.dict){const t=S.dict.get("Subtype");if(t instanceof r.Name){M=t.name}C=S.dict.get("Length1");_=S.dict.get("Length2");I=S.dict.get("Length3")}}else if(p){const t=(0,h.getXfaFontName)(b.name);if(t){p.fontFamily=`${p.fontFamily}-PdfJS-XFA`;p.metrics=t.metrics||null;O=t.factors||null;S=await this.fetchStandardFontData(t.name);F=!!S;s=e=(0,h.getXfaFontDict)(b.name);a=true}}else if(!m){const t=(0,c.getStandardFontName)(b.name);if(t){S=await this.fetchStandardFontData(t);F=!!S}if(!F&&this.options.useSystemFonts){E=(0,v.getFontSubstitution)(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,b.name,t)}}w={type:l,name:b.name,subtype:M,file:S,length1:C,length2:_,length3:I,isInternalFont:F,loadedName:s.loadedName,composite:a,fixedPitch:false,fontMatrix:e.getArray("FontMatrix")||i.FONT_IDENTITY_MATRIX,firstChar:u,lastChar:f,toUnicode:d,bbox:t.getArray("FontBBox")||e.getArray("FontBBox"),ascent:t.get("Ascent"),descent:t.get("Descent"),xHeight:t.get("XHeight")||0,capHeight:t.get("CapHeight")||0,flags:t.get("Flags"),italicAngle:t.get("ItalicAngle")||0,isType3Font:m,cssFontInfo:p,scaleFactors:O,systemFontInfo:E};if(a){const t=s.get("Encoding");if(t instanceof r.Name){w.cidEncoding=t.name}const e=await n.CMapFactory.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});w.cMap=e;w.vertical=w.cMap.vertical}return this.extractDataStructures(e,s,w).then((s=>{this.extractWidths(e,t,s);return new o.Font(b.name,S,s)}))}static buildFontPaths(t,e,s,n){function r(e){const r=`${t.loadedName}_path_${e}`;try{if(t.renderer.hasBuiltPath(e)){return}s.send("commonobj",[r,"FontPath",t.renderer.getPathJs(e)])}catch(t){if(n.ignoreErrors){(0,i.warn)(`buildFontPaths - ignoring ${r} glyph: "${t}".`);return}throw t}}for(const t of e){r(t.fontChar);const e=t.accent;if(e?.fontChar){r(e.fontChar)}}}static get fallbackFontDict(){const t=new r.Dict;t.set("BaseFont",r.Name.get("Helvetica"));t.set("Type",r.Name.get("FallbackType"));t.set("Subtype",r.Name.get("FallbackType"));t.set("Encoding",r.Name.get("WinAnsiEncoding"));return(0,i.shadow)(this,"fallbackFontDict",t)}}e.PartialEvaluator=N;class L{constructor({loadedName:t,font:e,dict:s,evaluatorOptions:i}){this.loadedName=t;this.font=e;this.dict=s;this._evaluatorOptions=i||F;this.type3Loaded=null;this.type3Dependencies=e.isType3Font?new Set:null;this.sent=false}send(t){if(this.sent){return}this.sent=true;t.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)])}fallback(t){if(!this.font.data){return}this.font.disableFontFace=true;N.buildFontPaths(this.font,this.font.glyphCacheValues,t,this._evaluatorOptions)}loadType3Data(t,e,s){if(this.type3Loaded){return this.type3Loaded}if(!this.font.isType3Font){throw new Error("Must be a Type3 font.")}const n=t.clone({ignoreErrors:false});n.parsingType3Font=true;const o=new r.RefSet(t.type3FontRefs);if(this.dict.objId&&!o.has(this.dict.objId)){o.put(this.dict.objId)}n.type3FontRefs=o;const a=this.font,c=this.type3Dependencies;let l=Promise.resolve();const h=this.dict.get("CharProcs");const u=this.dict.get("Resources")||e;const f=Object.create(null);const d=i.Util.normalizeRect(a.bbox||[0,0,0,0]),p=d[2]-d[0],g=d[3]-d[1];const m=Math.hypot(p,g);for(const t of h.getKeys()){l=l.then((()=>{const e=h.get(t);const r=new _.OperatorList;return n.getOperatorList({stream:e,task:s,resources:u,operatorList:r}).then((()=>{if(r.fnArray[0]===i.OPS.setCharWidthAndBounds){this._removeType3ColorOperators(r,m)}f[t]=r.getIR();for(const t of r.dependencies){c.add(t)}})).catch((function(e){(0,i.warn)(`Type3 font resource "${t}" is not available.`);const s=new _.OperatorList;f[t]=s.getIR()}))}))}this.type3Loaded=l.then((()=>{a.charProcOperatorList=f;if(this._bbox){a.isCharBBox=true;a.bbox=this._bbox}}));return this.type3Loaded}_removeType3ColorOperators(t,e=NaN){const s=i.Util.normalizeRect(t.argsArray[0].slice(2)),n=s[2]-s[0],r=s[3]-s[1];const o=Math.hypot(n,r);if(n===0||r===0){t.fnArray.splice(0,1);t.argsArray.splice(0,1)}else if(e===0||Math.round(o/e)>=10){if(!this._bbox){this._bbox=[Infinity,Infinity,-Infinity,-Infinity]}this._bbox[0]=Math.min(this._bbox[0],s[0]);this._bbox[1]=Math.min(this._bbox[1],s[1]);this._bbox[2]=Math.max(this._bbox[2],s[2]);this._bbox[3]=Math.max(this._bbox[3],s[3])}let a=0,c=t.length;while(a<c){switch(t.fnArray[a]){case i.OPS.setCharWidthAndBounds:break;case i.OPS.setStrokeColorSpace:case i.OPS.setFillColorSpace:case i.OPS.setStrokeColor:case i.OPS.setStrokeColorN:case i.OPS.setFillColor:case i.OPS.setFillColorN:case i.OPS.setStrokeGray:case i.OPS.setFillGray:case i.OPS.setStrokeRGBColor:case i.OPS.setFillRGBColor:case i.OPS.setStrokeCMYKColor:case i.OPS.setFillCMYKColor:case i.OPS.shadingFill:case i.OPS.setRenderingIntent:t.fnArray.splice(a,1);t.argsArray.splice(a,1);c--;continue;case i.OPS.setGState:const[e]=t.argsArray[a];let s=0,n=e.length;while(s<n){const[t]=e[s];switch(t){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":e.splice(s,1);n--;continue}s++}break}a++}}}class B{constructor(t=new U){this.state=t;this.stateStack=[]}save(){const t=this.state;this.stateStack.push(this.state);this.state=t.clone()}restore(){const t=this.stateStack.pop();if(t){this.state=t}}transform(t){this.state.ctm=i.Util.transform(this.state.ctm,t)}}class ${constructor(){this.ctm=new Float32Array(i.IDENTITY_MATRIX);this.fontName=null;this.fontSize=0;this.loadedName=null;this.font=null;this.fontMatrix=i.FONT_IDENTITY_MATRIX;this.textMatrix=i.IDENTITY_MATRIX.slice();this.textLineMatrix=i.IDENTITY_MATRIX.slice();this.charSpacing=0;this.wordSpacing=0;this.leading=0;this.textHScale=1;this.textRise=0}setTextMatrix(t,e,s,i,n,r){const o=this.textMatrix;o[0]=t;o[1]=e;o[2]=s;o[3]=i;o[4]=n;o[5]=r}setTextLineMatrix(t,e,s,i,n,r){const o=this.textLineMatrix;o[0]=t;o[1]=e;o[2]=s;o[3]=i;o[4]=n;o[5]=r}translateTextMatrix(t,e){const s=this.textMatrix;s[4]=s[0]*t+s[2]*e+s[4];s[5]=s[1]*t+s[3]*e+s[5]}translateTextLineMatrix(t,e){const s=this.textLineMatrix;s[4]=s[0]*t+s[2]*e+s[4];s[5]=s[1]*t+s[3]*e+s[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading);this.textMatrix=this.textLineMatrix.slice()}clone(){const t=Object.create(this);t.textMatrix=this.textMatrix.slice();t.textLineMatrix=this.textLineMatrix.slice();t.fontMatrix=this.fontMatrix.slice();return t}}class U{constructor(){this.ctm=new Float32Array(i.IDENTITY_MATRIX);this.font=null;this.textRenderingMode=i.TextRenderingMode.FILL;this.fillColorSpace=b.ColorSpace.singletons.gray;this.strokeColorSpace=b.ColorSpace.singletons.gray}clone(){return Object.create(this)}}class j{static get opMap(){return(0,i.shadow)(this,"opMap",{w:{id:i.OPS.setLineWidth,numArgs:1,variableArgs:false},J:{id:i.OPS.setLineCap,numArgs:1,variableArgs:false},j:{id:i.OPS.setLineJoin,numArgs:1,variableArgs:false},M:{id:i.OPS.setMiterLimit,numArgs:1,variableArgs:false},d:{id:i.OPS.setDash,numArgs:2,variableArgs:false},ri:{id:i.OPS.setRenderingIntent,numArgs:1,variableArgs:false},i:{id:i.OPS.setFlatness,numArgs:1,variableArgs:false},gs:{id:i.OPS.setGState,numArgs:1,variableArgs:false},q:{id:i.OPS.save,numArgs:0,variableArgs:false},Q:{id:i.OPS.restore,numArgs:0,variableArgs:false},cm:{id:i.OPS.transform,numArgs:6,variableArgs:false},m:{id:i.OPS.moveTo,numArgs:2,variableArgs:false},l:{id:i.OPS.lineTo,numArgs:2,variableArgs:false},c:{id:i.OPS.curveTo,numArgs:6,variableArgs:false},v:{id:i.OPS.curveTo2,numArgs:4,variableArgs:false},y:{id:i.OPS.curveTo3,numArgs:4,variableArgs:false},h:{id:i.OPS.closePath,numArgs:0,variableArgs:false},re:{id:i.OPS.rectangle,numArgs:4,variableArgs:false},S:{id:i.OPS.stroke,numArgs:0,variableArgs:false},s:{id:i.OPS.closeStroke,numArgs:0,variableArgs:false},f:{id:i.OPS.fill,numArgs:0,variableArgs:false},F:{id:i.OPS.fill,numArgs:0,variableArgs:false},"f*":{id:i.OPS.eoFill,numArgs:0,variableArgs:false},B:{id:i.OPS.fillStroke,numArgs:0,variableArgs:false},"B*":{id:i.OPS.eoFillStroke,numArgs:0,variableArgs:false},b:{id:i.OPS.closeFillStroke,numArgs:0,variableArgs:false},"b*":{id:i.OPS.closeEOFillStroke,numArgs:0,variableArgs:false},n:{id:i.OPS.endPath,numArgs:0,variableArgs:false},W:{id:i.OPS.clip,numArgs:0,variableArgs:false},"W*":{id:i.OPS.eoClip,numArgs:0,variableArgs:false},BT:{id:i.OPS.beginText,numArgs:0,variableArgs:false},ET:{id:i.OPS.endText,numArgs:0,variableArgs:false},Tc:{id:i.OPS.setCharSpacing,numArgs:1,variableArgs:false},Tw:{id:i.OPS.setWordSpacing,numArgs:1,variableArgs:false},Tz:{id:i.OPS.setHScale,numArgs:1,variableArgs:false},TL:{id:i.OPS.setLeading,numArgs:1,variableArgs:false},Tf:{id:i.OPS.setFont,numArgs:2,variableArgs:false},Tr:{id:i.OPS.setTextRenderingMode,numArgs:1,variableArgs:false},Ts:{id:i.OPS.setTextRise,numArgs:1,variableArgs:false},Td:{id:i.OPS.moveText,numArgs:2,variableArgs:false},TD:{id:i.OPS.setLeadingMoveText,numArgs:2,variableArgs:false},Tm:{id:i.OPS.setTextMatrix,numArgs:6,variableArgs:false},"T*":{id:i.OPS.nextLine,numArgs:0,variableArgs:false},Tj:{id:i.OPS.showText,numArgs:1,variableArgs:false},TJ:{id:i.OPS.showSpacedText,numArgs:1,variableArgs:false},"'":{id:i.OPS.nextLineShowText,numArgs:1,variableArgs:false},'"':{id:i.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:false},d0:{id:i.OPS.setCharWidth,numArgs:2,variableArgs:false},d1:{id:i.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:false},CS:{id:i.OPS.setStrokeColorSpace,numArgs:1,variableArgs:false},cs:{id:i.OPS.setFillColorSpace,numArgs:1,variableArgs:false},SC:{id:i.OPS.setStrokeColor,numArgs:4,variableArgs:true},SCN:{id:i.OPS.setStrokeColorN,numArgs:33,variableArgs:true},sc:{id:i.OPS.setFillColor,numArgs:4,variableArgs:true},scn:{id:i.OPS.setFillColorN,numArgs:33,variableArgs:true},G:{id:i.OPS.setStrokeGray,numArgs:1,variableArgs:false},g:{id:i.OPS.setFillGray,numArgs:1,variableArgs:false},RG:{id:i.OPS.setStrokeRGBColor,numArgs:3,variableArgs:false},rg:{id:i.OPS.setFillRGBColor,numArgs:3,variableArgs:false},K:{id:i.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:false},k:{id:i.OPS.setFillCMYKColor,numArgs:4,variableArgs:false},sh:{id:i.OPS.shadingFill,numArgs:1,variableArgs:false},BI:{id:i.OPS.beginInlineImage,numArgs:0,variableArgs:false},ID:{id:i.OPS.beginImageData,numArgs:0,variableArgs:false},EI:{id:i.OPS.endInlineImage,numArgs:1,variableArgs:false},Do:{id:i.OPS.paintXObject,numArgs:1,variableArgs:false},MP:{id:i.OPS.markPoint,numArgs:1,variableArgs:false},DP:{id:i.OPS.markPointProps,numArgs:2,variableArgs:false},BMC:{id:i.OPS.beginMarkedContent,numArgs:1,variableArgs:false},BDC:{id:i.OPS.beginMarkedContentProps,numArgs:2,variableArgs:false},EMC:{id:i.OPS.endMarkedContent,numArgs:0,variableArgs:false},BX:{id:i.OPS.beginCompat,numArgs:0,variableArgs:false},EX:{id:i.OPS.endCompat,numArgs:0,variableArgs:false},BM:null,BD:null,true:null,fa:null,fal:null,fals:null,false:null,nu:null,nul:null,null:null})}static MAX_INVALID_PATH_OPS=10;constructor(t,e,s=new B){this.parser=new d.Parser({lexer:new d.Lexer(t,j.opMap),xref:e});this.stateManager=s;this.nonProcessedArgs=[];this._isPathOp=false;this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(t){let e=t.args;while(true){const s=this.parser.getObj();if(s instanceof r.Cmd){const n=s.cmd;const r=j.opMap[n];if(!r){(0,i.warn)(`Unknown command "${n}".`);continue}const o=r.id;const a=r.numArgs;let c=e!==null?e.length:0;if(!this._isPathOp){this._numInvalidPathOPS=0}this._isPathOp=o>=i.OPS.moveTo&&o<=i.OPS.endPath;if(!r.variableArgs){if(c!==a){const t=this.nonProcessedArgs;while(c>a){t.push(e.shift());c--}while(c<a&&t.length!==0){if(e===null){e=[]}e.unshift(t.pop());c++}}if(c<a){const t=`command ${n}: expected ${a} args, `+`but received ${c} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>j.MAX_INVALID_PATH_OPS){throw new i.FormatError(`Invalid ${t}`)}(0,i.warn)(`Skipping ${t}`);if(e!==null){e.length=0}continue}}else if(c>a){(0,i.info)(`Command ${n}: expected [0, ${a}] args, `+`but received ${c} args.`)}this.preprocessCommand(o,e);t.fn=o;t.args=e;return true}if(s===r.EOF){return false}if(s!==null){if(e===null){e=[]}e.push(s);if(e.length>33){throw new i.FormatError("Too many arguments")}}}}preprocessCommand(t,e){switch(t|0){case i.OPS.save:this.stateManager.save();break;case i.OPS.restore:this.stateManager.restore();break;case i.OPS.transform:this.stateManager.transform(e);break}}}e.EvaluatorPreprocessor=j},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.IdentityCMap=e.CMapFactory=e.CMap=void 0;var i=s(2);var n=s(4);var r=s(5);var o=s(15);var a=s(16);var c=s(3);var l=s(8);const h=["Adobe-GB1-UCS2","Adobe-CNS1-UCS2","Adobe-Japan1-UCS2","Adobe-Korea1-UCS2","78-EUC-H","78-EUC-V","78-H","78-RKSJ-H","78-RKSJ-V","78-V","78ms-RKSJ-H","78ms-RKSJ-V","83pv-RKSJ-H","90ms-RKSJ-H","90ms-RKSJ-V","90msp-RKSJ-H","90msp-RKSJ-V","90pv-RKSJ-H","90pv-RKSJ-V","Add-H","Add-RKSJ-H","Add-RKSJ-V","Add-V","Adobe-CNS1-0","Adobe-CNS1-1","Adobe-CNS1-2","Adobe-CNS1-3","Adobe-CNS1-4","Adobe-CNS1-5","Adobe-CNS1-6","Adobe-GB1-0","Adobe-GB1-1","Adobe-GB1-2","Adobe-GB1-3","Adobe-GB1-4","Adobe-GB1-5","Adobe-Japan1-0","Adobe-Japan1-1","Adobe-Japan1-2","Adobe-Japan1-3","Adobe-Japan1-4","Adobe-Japan1-5","Adobe-Japan1-6","Adobe-Korea1-0","Adobe-Korea1-1","Adobe-Korea1-2","B5-H","B5-V","B5pc-H","B5pc-V","CNS-EUC-H","CNS-EUC-V","CNS1-H","CNS1-V","CNS2-H","CNS2-V","ETHK-B5-H","ETHK-B5-V","ETen-B5-H","ETen-B5-V","ETenms-B5-H","ETenms-B5-V","EUC-H","EUC-V","Ext-H","Ext-RKSJ-H","Ext-RKSJ-V","Ext-V","GB-EUC-H","GB-EUC-V","GB-H","GB-V","GBK-EUC-H","GBK-EUC-V","GBK2K-H","GBK2K-V","GBKp-EUC-H","GBKp-EUC-V","GBT-EUC-H","GBT-EUC-V","GBT-H","GBT-V","GBTpc-EUC-H","GBTpc-EUC-V","GBpc-EUC-H","GBpc-EUC-V","H","HKdla-B5-H","HKdla-B5-V","HKdlb-B5-H","HKdlb-B5-V","HKgccs-B5-H","HKgccs-B5-V","HKm314-B5-H","HKm314-B5-V","HKm471-B5-H","HKm471-B5-V","HKscs-B5-H","HKscs-B5-V","Hankaku","Hiragana","KSC-EUC-H","KSC-EUC-V","KSC-H","KSC-Johab-H","KSC-Johab-V","KSC-V","KSCms-UHC-H","KSCms-UHC-HW-H","KSCms-UHC-HW-V","KSCms-UHC-V","KSCpc-EUC-H","KSCpc-EUC-V","Katakana","NWP-H","NWP-V","RKSJ-H","RKSJ-V","Roman","UniCNS-UCS2-H","UniCNS-UCS2-V","UniCNS-UTF16-H","UniCNS-UTF16-V","UniCNS-UTF32-H","UniCNS-UTF32-V","UniCNS-UTF8-H","UniCNS-UTF8-V","UniGB-UCS2-H","UniGB-UCS2-V","UniGB-UTF16-H","UniGB-UTF16-V","UniGB-UTF32-H","UniGB-UTF32-V","UniGB-UTF8-H","UniGB-UTF8-V","UniJIS-UCS2-H","UniJIS-UCS2-HW-H","UniJIS-UCS2-HW-V","UniJIS-UCS2-V","UniJIS-UTF16-H","UniJIS-UTF16-V","UniJIS-UTF32-H","UniJIS-UTF32-V","UniJIS-UTF8-H","UniJIS-UTF8-V","UniJIS2004-UTF16-H","UniJIS2004-UTF16-V","UniJIS2004-UTF32-H","UniJIS2004-UTF32-V","UniJIS2004-UTF8-H","UniJIS2004-UTF8-V","UniJISPro-UCS2-HW-V","UniJISPro-UCS2-V","UniJISPro-UTF8-V","UniJISX0213-UTF32-H","UniJISX0213-UTF32-V","UniJISX02132004-UTF32-H","UniJISX02132004-UTF32-V","UniKS-UCS2-H","UniKS-UCS2-V","UniKS-UTF16-H","UniKS-UTF16-V","UniKS-UTF32-H","UniKS-UTF32-V","UniKS-UTF8-H","UniKS-UTF8-V","V","WP-Symbol"];const u=2**24-1;class f{constructor(t=false){this.codespaceRanges=[[],[],[],[]];this.numCodespaceRanges=0;this._map=[];this.name="";this.vertical=false;this.useCMap=null;this.builtInCMap=t}addCodespaceRange(t,e,s){this.codespaceRanges[t-1].push(e,s);this.numCodespaceRanges++}mapCidRange(t,e,s){if(e-t>u){throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.")}while(t<=e){this._map[t++]=s++}}mapBfRange(t,e,s){if(e-t>u){throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.")}const i=s.length-1;while(t<=e){this._map[t++]=s;const e=s.charCodeAt(i)+1;if(e>255){s=s.substring(0,i-1)+String.fromCharCode(s.charCodeAt(i-1)+1)+"\0";continue}s=s.substring(0,i)+String.fromCharCode(e)}}mapBfRangeToArray(t,e,s){if(e-t>u){throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.")}const i=s.length;let n=0;while(t<=e&&n<i){this._map[t]=s[n++];++t}}mapOne(t,e){this._map[t]=e}lookup(t){return this._map[t]}contains(t){return this._map[t]!==undefined}forEach(t){const e=this._map;const s=e.length;if(s<=65536){for(let i=0;i<s;i++){if(e[i]!==undefined){t(i,e[i])}}}else{for(const s in e){t(s,e[s])}}}charCodeOf(t){const e=this._map;if(e.length<=65536){return e.indexOf(t)}for(const s in e){if(e[s]===t){return s|0}}return-1}getMap(){return this._map}readCharCode(t,e,s){let i=0;const n=this.codespaceRanges;for(let r=0,o=n.length;r<o;r++){i=(i<<8|t.charCodeAt(e+r))>>>0;const o=n[r];for(let t=0,e=o.length;t<e;){const e=o[t++];const n=o[t++];if(i>=e&&i<=n){s.charcode=i;s.length=r+1;return}}}s.charcode=0;s.length=1}getCharCodeLength(t){const e=this.codespaceRanges;for(let s=0,i=e.length;s<i;s++){const i=e[s];for(let e=0,n=i.length;e<n;){const n=i[e++];const r=i[e++];if(t>=n&&t<=r){return s+1}}}return 1}get length(){return this._map.length}get isIdentityCMap(){if(!(this.name==="Identity-H"||this.name==="Identity-V")){return false}if(this._map.length!==65536){return false}for(let t=0;t<65536;t++){if(this._map[t]!==t){return false}}return true}}e.CMap=f;class d extends f{constructor(t,e){super();this.vertical=t;this.addCodespaceRange(e,0,65535)}mapCidRange(t,e,s){(0,i.unreachable)("should not call mapCidRange")}mapBfRange(t,e,s){(0,i.unreachable)("should not call mapBfRange")}mapBfRangeToArray(t,e,s){(0,i.unreachable)("should not call mapBfRangeToArray")}mapOne(t,e){(0,i.unreachable)("should not call mapCidOne")}lookup(t){return Number.isInteger(t)&&t<=65535?t:undefined}contains(t){return Number.isInteger(t)&&t<=65535}forEach(t){for(let e=0;e<=65535;e++){t(e,e)}}charCodeOf(t){return Number.isInteger(t)&&t<=65535?t:-1}getMap(){const t=new Array(65536);for(let e=0;e<=65535;e++){t[e]=e}return t}get length(){return 65536}get isIdentityCMap(){(0,i.unreachable)("should not access .isIdentityCMap")}}e.IdentityCMap=d;function p(t){let e=0;for(let s=0;s<t.length;s++){e=e<<8|t.charCodeAt(s)}return e>>>0}function g(t){if(typeof t!=="string"){throw new i.FormatError("Malformed CMap: expected string.")}}function m(t){if(!Number.isInteger(t)){throw new i.FormatError("Malformed CMap: expected int.")}}function w(t,e){while(true){let s=e.getObj();if(s===n.EOF){break}if((0,n.isCmd)(s,"endbfchar")){return}g(s);const i=p(s);s=e.getObj();g(s);const r=s;t.mapOne(i,r)}}function b(t,e){while(true){let s=e.getObj();if(s===n.EOF){break}if((0,n.isCmd)(s,"endbfrange")){return}g(s);const i=p(s);s=e.getObj();g(s);const r=p(s);s=e.getObj();if(Number.isInteger(s)||typeof s==="string"){const e=Number.isInteger(s)?String.fromCharCode(s):s;t.mapBfRange(i,r,e)}else if((0,n.isCmd)(s,"[")){s=e.getObj();const o=[];while(!(0,n.isCmd)(s,"]")&&s!==n.EOF){o.push(s);s=e.getObj()}t.mapBfRangeToArray(i,r,o)}else{break}}throw new i.FormatError("Invalid bf range.")}function y(t,e){while(true){let s=e.getObj();if(s===n.EOF){break}if((0,n.isCmd)(s,"endcidchar")){return}g(s);const i=p(s);s=e.getObj();m(s);const r=s;t.mapOne(i,r)}}function A(t,e){while(true){let s=e.getObj();if(s===n.EOF){break}if((0,n.isCmd)(s,"endcidrange")){return}g(s);const i=p(s);s=e.getObj();g(s);const r=p(s);s=e.getObj();m(s);const o=s;t.mapCidRange(i,r,o)}}function v(t,e){while(true){let s=e.getObj();if(s===n.EOF){break}if((0,n.isCmd)(s,"endcodespacerange")){return}if(typeof s!=="string"){break}const i=p(s);s=e.getObj();if(typeof s!=="string"){break}const r=p(s);t.addCodespaceRange(s.length,i,r)}throw new i.FormatError("Invalid codespace range.")}function x(t,e){const s=e.getObj();if(Number.isInteger(s)){t.vertical=!!s}}function k(t,e){const s=e.getObj();if(s instanceof n.Name){t.name=s.name}}async function S(t,e,s,r){let o,a;t:while(true){try{const s=e.getObj();if(s===n.EOF){break}else if(s instanceof n.Name){if(s.name==="WMode"){x(t,e)}else if(s.name==="CMapName"){k(t,e)}o=s}else if(s instanceof n.Cmd){switch(s.cmd){case"endcmap":break t;case"usecmap":if(o instanceof n.Name){a=o.name}break;case"begincodespacerange":v(t,e);break;case"beginbfchar":w(t,e);break;case"begincidchar":y(t,e);break;case"beginbfrange":b(t,e);break;case"begincidrange":A(t,e);break}}}catch(t){if(t instanceof c.MissingDataException){throw t}(0,i.warn)("Invalid cMap data: "+t);continue}}if(!r&&a){r=a}if(r){return M(t,s,r)}return t}async function M(t,e,s){t.useCMap=await C(s,e);if(t.numCodespaceRanges===0){const e=t.useCMap.codespaceRanges;for(let s=0;s<e.length;s++){t.codespaceRanges[s]=e[s].slice()}t.numCodespaceRanges=t.useCMap.numCodespaceRanges}t.useCMap.forEach((function(e,s){if(!t.contains(e)){t.mapOne(e,t.useCMap.lookup(e))}}));return t}async function C(t,e){if(t==="Identity-H"){return new d(false,2)}else if(t==="Identity-V"){return new d(true,2)}if(!h.includes(t)){throw new Error("Unknown CMap name: "+t)}if(!e){throw new Error("Built-in CMap parameters are not provided.")}const{cMapData:s,compressionType:n}=await e(t);const r=new f(true);if(n===i.CMapCompressionType.BINARY){return(new o.BinaryCMapReader).process(s,r,(t=>M(r,e,t)))}if(n===i.CMapCompressionType.NONE){const t=new a.Lexer(new l.Stream(s));return S(r,t,e,null)}throw new Error(`Invalid CMap "compressionType" value: ${n}`)}class _{static async create({encoding:t,fetchBuiltInCMap:e,useCMap:s}){if(t instanceof n.Name){return C(t.name,e)}else if(t instanceof r.BaseStream){const i=await S(new f,new a.Lexer(t),e,s);if(i.isIdentityCMap){return C(i.name,e)}return i}throw new Error("Encoding required.")}}e.CMapFactory=_},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.BinaryCMapReader=void 0;var i=s(2);function n(t,e){let s=0;for(let i=0;i<=e;i++){s=s<<8|t[i]}return s>>>0}function r(t,e){if(e===1){return String.fromCharCode(t[0],t[1])}if(e===3){return String.fromCharCode(t[0],t[1],t[2],t[3])}return String.fromCharCode(...t.subarray(0,e+1))}function o(t,e,s){let i=0;for(let n=s;n>=0;n--){i+=t[n]+e[n];t[n]=i&255;i>>=8}}function a(t,e){let s=1;for(let i=e;i>=0&&s>0;i--){s+=t[i];t[i]=s&255;s>>=8}}const c=16;const l=19;class h{constructor(t){this.buffer=t;this.pos=0;this.end=t.length;this.tmpBuf=new Uint8Array(l)}readByte(){if(this.pos>=this.end){return-1}return this.buffer[this.pos++]}readNumber(){let t=0;let e;do{const s=this.readByte();if(s<0){throw new i.FormatError("unexpected EOF in bcmap")}e=!(s&128);t=t<<7|s&127}while(!e);return t}readSigned(){const t=this.readNumber();return t&1?~(t>>>1):t>>>1}readHex(t,e){t.set(this.buffer.subarray(this.pos,this.pos+e+1));this.pos+=e+1}readHexNumber(t,e){let s;const n=this.tmpBuf;let r=0;do{const t=this.readByte();if(t<0){throw new i.FormatError("unexpected EOF in bcmap")}s=!(t&128);n[r++]=t&127}while(!s);let o=e,a=0,c=0;while(o>=0){while(c<8&&n.length>0){a|=n[--r]<<c;c+=7}t[o]=a&255;o--;a>>=8;c-=8}}readHexSigned(t,e){this.readHexNumber(t,e);const s=t[e]&1?255:0;let i=0;for(let n=0;n<=e;n++){i=(i&1)<<8|t[n];t[n]=i>>1^s}}readString(){const t=this.readNumber(),e=new Array(t);for(let s=0;s<t;s++){e[s]=this.readNumber()}return String.fromCharCode(...e)}}class u{async process(t,e,s){const i=new h(t);const l=i.readByte();e.vertical=!!(l&1);let u=null;const f=new Uint8Array(c);const d=new Uint8Array(c);const p=new Uint8Array(c);const g=new Uint8Array(c);const m=new Uint8Array(c);let w;let b;while((b=i.readByte())>=0){const t=b>>5;if(t===7){switch(b&31){case 0:i.readString();break;case 1:u=i.readString();break}continue}const s=!!(b&16);const l=b&15;if(l+1>c){throw new Error("BinaryCMapReader.process: Invalid dataSize.")}const h=1;const y=i.readNumber();switch(t){case 0:i.readHex(f,l);i.readHexNumber(d,l);o(d,f,l);e.addCodespaceRange(l+1,n(f,l),n(d,l));for(let t=1;t<y;t++){a(d,l);i.readHexNumber(f,l);o(f,d,l);i.readHexNumber(d,l);o(d,f,l);e.addCodespaceRange(l+1,n(f,l),n(d,l))}break;case 1:i.readHex(f,l);i.readHexNumber(d,l);o(d,f,l);i.readNumber();for(let t=1;t<y;t++){a(d,l);i.readHexNumber(f,l);o(f,d,l);i.readHexNumber(d,l);o(d,f,l);i.readNumber()}break;case 2:i.readHex(p,l);w=i.readNumber();e.mapOne(n(p,l),w);for(let t=1;t<y;t++){a(p,l);if(!s){i.readHexNumber(m,l);o(p,m,l)}w=i.readSigned()+(w+1);e.mapOne(n(p,l),w)}break;case 3:i.readHex(f,l);i.readHexNumber(d,l);o(d,f,l);w=i.readNumber();e.mapCidRange(n(f,l),n(d,l),w);for(let t=1;t<y;t++){a(d,l);if(!s){i.readHexNumber(f,l);o(f,d,l)}else{f.set(d)}i.readHexNumber(d,l);o(d,f,l);w=i.readNumber();e.mapCidRange(n(f,l),n(d,l),w)}break;case 4:i.readHex(p,h);i.readHex(g,l);e.mapOne(n(p,h),r(g,l));for(let t=1;t<y;t++){a(p,h);if(!s){i.readHexNumber(m,h);o(p,m,h)}a(g,l);i.readHexSigned(m,l);o(g,m,l);e.mapOne(n(p,h),r(g,l))}break;case 5:i.readHex(f,h);i.readHexNumber(d,h);o(d,f,h);i.readHex(g,l);e.mapBfRange(n(f,h),n(d,h),r(g,l));for(let t=1;t<y;t++){a(d,h);if(!s){i.readHexNumber(f,h);o(f,d,h)}else{f.set(d)}i.readHexNumber(d,h);o(d,f,h);i.readHex(g,l);e.mapBfRange(n(f,h),n(d,h),r(g,l))}break;default:throw new Error(`BinaryCMapReader.process - unknown type: ${t}`)}}if(u){return s(u)}return e}}e.BinaryCMapReader=u},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.Parser=e.Linearization=e.Lexer=void 0;var i=s(2);var n=s(4);var r=s(3);var o=s(8);var a=s(17);var c=s(19);var l=s(20);var h=s(22);var u=s(23);var f=s(26);var d=s(29);var p=s(31);var g=s(32);var m=s(33);const w=1e3;function b(t){const e=[],s=t.length;let i=0;while(i<s-1){e.push(t[i++]<<8|t[i++])}if(i<s){e.push(t[i])}return s+"_"+String.fromCharCode.apply(null,e)}class y{constructor({lexer:t,xref:e,allowStreams:s=false,recoveryMode:i=false}){this.lexer=t;this.xref=e;this.allowStreams=s;this.recoveryMode=i;this.imageCache=Object.create(null);this._imageId=0;this.refill()}refill(){this.buf1=this.lexer.getObj();this.buf2=this.lexer.getObj()}shift(){if(this.buf2 instanceof n.Cmd&&this.buf2.cmd==="ID"){this.buf1=this.buf2;this.buf2=null}else{this.buf1=this.buf2;this.buf2=this.lexer.getObj()}}tryShift(){try{this.shift();return true}catch(t){if(t instanceof r.MissingDataException){throw t}return false}}getObj(t=null){const e=this.buf1;this.shift();if(e instanceof n.Cmd){switch(e.cmd){case"BI":return this.makeInlineImage(t);case"[":const s=[];while(!(0,n.isCmd)(this.buf1,"]")&&this.buf1!==n.EOF){s.push(this.getObj(t))}if(this.buf1===n.EOF){if(this.recoveryMode){return s}throw new r.ParserEOFException("End of file inside array.")}this.shift();return s;case"<<":const o=new n.Dict(this.xref);while(!(0,n.isCmd)(this.buf1,">>")&&this.buf1!==n.EOF){if(!(this.buf1 instanceof n.Name)){(0,i.info)("Malformed dictionary: key must be a name object");this.shift();continue}const e=this.buf1.name;this.shift();if(this.buf1===n.EOF){break}o.set(e,this.getObj(t))}if(this.buf1===n.EOF){if(this.recoveryMode){return o}throw new r.ParserEOFException("End of file inside dictionary.")}if((0,n.isCmd)(this.buf2,"stream")){return this.allowStreams?this.makeStream(o,t):o}this.shift();return o;default:return e}}if(Number.isInteger(e)){if(Number.isInteger(this.buf1)&&(0,n.isCmd)(this.buf2,"R")){const t=n.Ref.get(e,this.buf1);this.shift();this.shift();return t}return e}if(typeof e==="string"){if(t){return t.decryptString(e)}return e}return e}findDefaultInlineStreamEnd(t){const e=69,s=73,a=32,c=10,l=13,h=0;const{knownCommands:u}=this.lexer,f=t.pos,d=15;let p=0,g,m;while((g=t.getByte())!==-1){if(p===0){p=g===e?1:0}else if(p===1){p=g===s?2:0}else{if(g===a||g===c||g===l){m=t.pos;const e=t.peekBytes(d);const s=e.length;if(s===0){break}for(let t=0;t<s;t++){g=e[t];if(g===h&&e[t+1]!==h){continue}if(g!==c&&g!==l&&(g<a||g>127)){p=0;break}}if(p!==2){continue}if(!u){(0,i.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}const r=new x(new o.Stream(e.slice()),u);r._hexStringWarn=()=>{};let f=0;while(true){const t=r.getObj();if(t===n.EOF){p=0;break}if(t instanceof n.Cmd){const e=u[t.cmd];if(!e){p=0;break}else if(e.variableArgs?f<=e.numArgs:f===e.numArgs){break}f=0;continue}f++}if(p===2){break}}else{p=0}}}if(g===-1){(0,i.warn)("findDefaultInlineStreamEnd: "+"Reached the end of the stream without finding a valid EI marker");if(m){(0,i.warn)('... trying to recover by using the last "EI" occurrence.');t.skip(-(t.pos-m))}}let w=4;t.skip(-w);g=t.peekByte();t.skip(w);if(!(0,r.isWhiteSpace)(g)){w--}return t.pos-w-f}findDCTDecodeInlineStreamEnd(t){const e=t.pos;let s=false,n,r;while((n=t.getByte())!==-1){if(n!==255){continue}switch(t.getByte()){case 0:break;case 255:t.skip(-1);break;case 217:s=true;break;case 192:case 193:case 194:case 195:case 197:case 198:case 199:case 201:case 202:case 203:case 205:case 206:case 207:case 196:case 204:case 218:case 219:case 220:case 221:case 222:case 223:case 224:case 225:case 226:case 227:case 228:case 229:case 230:case 231:case 232:case 233:case 234:case 235:case 236:case 237:case 238:case 239:case 254:r=t.getUint16();if(r>2){t.skip(r-2)}else{t.skip(-2)}break}if(s){break}}const o=t.pos-e;if(n===-1){(0,i.warn)("Inline DCTDecode image stream: "+"EOI marker not found, searching for /EI/ instead.");t.skip(-o);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return o}findASCII85DecodeInlineStreamEnd(t){const e=126,s=62;const n=t.pos;let o;while((o=t.getByte())!==-1){if(o===e){const e=t.pos;o=t.peekByte();while((0,r.isWhiteSpace)(o)){t.skip();o=t.peekByte()}if(o===s){t.skip();break}if(t.pos>e){const e=t.peekBytes(2);if(e[0]===69&&e[1]===73){break}}}}const a=t.pos-n;if(o===-1){(0,i.warn)("Inline ASCII85Decode image stream: "+"EOD marker not found, searching for /EI/ instead.");t.skip(-a);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return a}findASCIIHexDecodeInlineStreamEnd(t){const e=62;const s=t.pos;let n;while((n=t.getByte())!==-1){if(n===e){break}}const r=t.pos-s;if(n===-1){(0,i.warn)("Inline ASCIIHexDecode image stream: "+"EOD marker not found, searching for /EI/ instead.");t.skip(-r);return this.findDefaultInlineStreamEnd(t)}this.inlineStreamSkipEI(t);return r}inlineStreamSkipEI(t){const e=69,s=73;let i=0,n;while((n=t.getByte())!==-1){if(i===0){i=n===e?1:0}else if(i===1){i=n===s?2:0}else if(i===2){break}}}makeInlineImage(t){const e=this.lexer;const s=e.stream;const r=Object.create(null);let o;while(!(0,n.isCmd)(this.buf1,"ID")&&this.buf1!==n.EOF){if(!(this.buf1 instanceof n.Name)){throw new i.FormatError("Dictionary key must be a name object")}const e=this.buf1.name;this.shift();if(this.buf1===n.EOF){break}r[e]=this.getObj(t)}if(e.beginInlineImagePos!==-1){o=s.pos-e.beginInlineImagePos}const a=this.xref.fetchIfRef(r.F||r.Filter);let c;if(a instanceof n.Name){c=a.name}else if(Array.isArray(a)){const t=this.xref.fetchIfRef(a[0]);if(t instanceof n.Name){c=t.name}}const l=s.pos;let h;switch(c){case"DCT":case"DCTDecode":h=this.findDCTDecodeInlineStreamEnd(s);break;case"A85":case"ASCII85Decode":h=this.findASCII85DecodeInlineStreamEnd(s);break;case"AHx":case"ASCIIHexDecode":h=this.findASCIIHexDecodeInlineStreamEnd(s);break;default:h=this.findDefaultInlineStreamEnd(s)}let u;if(h<w&&o>0){const t=s.pos;s.pos=e.beginInlineImagePos;u=b(s.getBytes(o+h));s.pos=t;const i=this.imageCache[u];if(i!==undefined){this.buf2=n.Cmd.get("EI");this.shift();i.reset();return i}}const f=new n.Dict(this.xref);for(const t in r){f.set(t,r[t])}let d=s.makeSubStream(l,h,f);if(t){d=t.createStream(d,h)}d=this.filter(d,f,h);d.dict=f;if(u!==undefined){d.cacheKey=`inline_img_${++this._imageId}`;this.imageCache[u]=d}this.buf2=n.Cmd.get("EI");this.shift();return d}_findStreamLength(t,e){const{stream:s}=this.lexer;s.pos=t;const i=2048;const n=e.length;while(s.pos<s.end){const r=s.peekBytes(i);const o=r.length-n;if(o<=0){break}let a=0;while(a<o){let i=0;while(i<n&&r[a+i]===e[i]){i++}if(i>=n){s.pos+=a;return s.pos-t}a++}s.pos+=o}return-1}makeStream(t,e){const s=this.lexer;let o=s.stream;s.skipToNextLine();const a=o.pos-1;let c=t.get("Length");if(!Number.isInteger(c)){(0,i.info)(`Bad length "${c&&c.toString()}" in stream.`);c=0}o.pos=a+c;s.nextChar();if(this.tryShift()&&(0,n.isCmd)(this.buf2,"endstream")){this.shift()}else{const t=new Uint8Array([101,110,100,115,116,114,101,97,109]);let e=this._findStreamLength(a,t);if(e<0){const s=1;for(let n=1;n<=s;n++){const s=t.length-n;const c=t.slice(0,s);const l=this._findStreamLength(a,c);if(l>=0){const t=o.peekBytes(s+1)[s];if(!(0,r.isWhiteSpace)(t)){break}(0,i.info)(`Found "${(0,i.bytesToString)(c)}" when `+"searching for endstream command.");e=l;break}}if(e<0){throw new i.FormatError("Missing endstream command.")}}c=e;s.nextChar();this.shift();this.shift()}this.shift();o=o.makeSubStream(a,c,t);if(e){o=e.createStream(o,c)}o=this.filter(o,t,c);o.dict=t;return o}filter(t,e,s){let r=e.get("F","Filter");let o=e.get("DP","DecodeParms");if(r instanceof n.Name){if(Array.isArray(o)){(0,i.warn)("/DecodeParms should not be an Array, when /Filter is a Name.")}return this.makeFilter(t,r.name,s,o)}let a=s;if(Array.isArray(r)){const e=r;const s=o;for(let c=0,l=e.length;c<l;++c){r=this.xref.fetchIfRef(e[c]);if(!(r instanceof n.Name)){throw new i.FormatError(`Bad filter name "${r}"`)}o=null;if(Array.isArray(s)&&c in s){o=this.xref.fetchIfRef(s[c])}t=this.makeFilter(t,r.name,a,o);a=null}}return t}makeFilter(t,e,s,n){if(s===0){(0,i.warn)(`Empty "${e}" stream.`);return new o.NullStream}try{switch(e){case"Fl":case"FlateDecode":if(n){return new g.PredictorStream(new h.FlateStream(t,s),s,n)}return new h.FlateStream(t,s);case"LZW":case"LZWDecode":let e=1;if(n){if(n.has("EarlyChange")){e=n.get("EarlyChange")}return new g.PredictorStream(new p.LZWStream(t,s,e),s,n)}return new p.LZWStream(t,s,e);case"DCT":case"DCTDecode":return new f.JpegStream(t,s,n);case"JPX":case"JPXDecode":return new d.JpxStream(t,s,n);case"A85":case"ASCII85Decode":return new a.Ascii85Stream(t,s);case"AHx":case"ASCIIHexDecode":return new c.AsciiHexStream(t,s);case"CCF":case"CCITTFaxDecode":return new l.CCITTFaxStream(t,s,n);case"RL":case"RunLengthDecode":return new m.RunLengthStream(t,s);case"JBIG2Decode":return new u.Jbig2Stream(t,s,n)}(0,i.warn)(`Filter "${e}" is not supported.`);return t}catch(t){if(t instanceof r.MissingDataException){throw t}(0,i.warn)(`Invalid stream: "${t}"`);return new o.NullStream}}}e.Parser=y;const A=[1,0,0,0,0,0,0,0,0,1,1,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,2,0,0,2,2,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];function v(t){if(t>=48&&t<=57){return t&15}if(t>=65&&t<=70||t>=97&&t<=102){return(t&15)+9}return-1}class x{constructor(t,e=null){this.stream=t;this.nextChar();this.strBuf=[];this.knownCommands=e;this._hexStringNumWarn=0;this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let t=this.currentChar;let e=false;let s=0;let n=1;if(t===45){n=-1;t=this.nextChar();if(t===45){t=this.nextChar()}}else if(t===43){t=this.nextChar()}if(t===10||t===13){do{t=this.nextChar()}while(t===10||t===13)}if(t===46){s=10;t=this.nextChar()}if(t<48||t>57){const e=`Invalid number: ${String.fromCharCode(t)} (charCode ${t})`;if((0,r.isWhiteSpace)(t)||t===-1){(0,i.info)(`Lexer.getNumber - "${e}".`);return 0}throw new i.FormatError(e)}let o=t-48;let a=0;let c=1;while((t=this.nextChar())>=0){if(t>=48&&t<=57){const i=t-48;if(e){a=a*10+i}else{if(s!==0){s*=10}o=o*10+i}}else if(t===46){if(s===0){s=1}else{break}}else if(t===45){(0,i.warn)("Badly formatted number: minus sign in the middle")}else if(t===69||t===101){t=this.peekChar();if(t===43||t===45){c=t===45?-1:1;this.nextChar()}else if(t<48||t>57){break}e=true}else{break}}if(s!==0){o/=s}if(e){o*=10**(c*a)}return n*o}getString(){let t=1;let e=false;const s=this.strBuf;s.length=0;let n=this.nextChar();while(true){let r=false;switch(n|0){case-1:(0,i.warn)("Unterminated string");e=true;break;case 40:++t;s.push("(");break;case 41:if(--t===0){this.nextChar();e=true}else{s.push(")")}break;case 92:n=this.nextChar();switch(n){case-1:(0,i.warn)("Unterminated string");e=true;break;case 110:s.push("\n");break;case 114:s.push("\r");break;case 116:s.push("\t");break;case 98:s.push("\b");break;case 102:s.push("\f");break;case 92:case 40:case 41:s.push(String.fromCharCode(n));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let t=n&15;n=this.nextChar();r=true;if(n>=48&&n<=55){t=(t<<3)+(n&15);n=this.nextChar();if(n>=48&&n<=55){r=false;t=(t<<3)+(n&15)}}s.push(String.fromCharCode(t));break;case 13:if(this.peekChar()===10){this.nextChar()}break;case 10:break;default:s.push(String.fromCharCode(n));break}break;default:s.push(String.fromCharCode(n));break}if(e){break}if(!r){n=this.nextChar()}}return s.join("")}getName(){let t,e;const s=this.strBuf;s.length=0;while((t=this.nextChar())>=0&&!A[t]){if(t===35){t=this.nextChar();if(A[t]){(0,i.warn)("Lexer_getName: "+"NUMBER SIGN (#) should be followed by a hexadecimal number.");s.push("#");break}const n=v(t);if(n!==-1){e=t;t=this.nextChar();const r=v(t);if(r===-1){(0,i.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(t)}) `+"in hexadecimal number.");s.push("#",String.fromCharCode(e));if(A[t]){break}s.push(String.fromCharCode(t));continue}s.push(String.fromCharCode(n<<4|r))}else{s.push("#",String.fromCharCode(t))}}else{s.push(String.fromCharCode(t))}}if(s.length>127){(0,i.warn)(`Name token is longer than allowed by the spec: ${s.length}`)}return n.Name.get(s.join(""))}_hexStringWarn(t){const e=5;if(this._hexStringNumWarn++===e){(0,i.warn)("getHexString - ignoring additional invalid characters.");return}if(this._hexStringNumWarn>e){return}(0,i.warn)(`getHexString - ignoring invalid character: ${t}`)}getHexString(){const t=this.strBuf;t.length=0;let e=this.currentChar;let s=true;let n,r;this._hexStringNumWarn=0;while(true){if(e<0){(0,i.warn)("Unterminated hex string");break}else if(e===62){this.nextChar();break}else if(A[e]===1){e=this.nextChar();continue}else{if(s){n=v(e);if(n===-1){this._hexStringWarn(e);e=this.nextChar();continue}}else{r=v(e);if(r===-1){this._hexStringWarn(e);e=this.nextChar();continue}t.push(String.fromCharCode(n<<4|r))}s=!s;e=this.nextChar()}}return t.join("")}getObj(){let t=false;let e=this.currentChar;while(true){if(e<0){return n.EOF}if(t){if(e===10||e===13){t=false}}else if(e===37){t=true}else if(A[e]!==1){break}e=this.nextChar()}switch(e|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return this.getNumber();case 40:return this.getString();case 47:return this.getName();case 91:this.nextChar();return n.Cmd.get("[");case 93:this.nextChar();return n.Cmd.get("]");case 60:e=this.nextChar();if(e===60){this.nextChar();return n.Cmd.get("<<")}return this.getHexString();case 62:e=this.nextChar();if(e===62){this.nextChar();return n.Cmd.get(">>")}return n.Cmd.get(">");case 123:this.nextChar();return n.Cmd.get("{");case 125:this.nextChar();return n.Cmd.get("}");case 41:this.nextChar();throw new i.FormatError(`Illegal character: ${e}`)}let s=String.fromCharCode(e);if(e<32||e>127){const t=this.peekChar();if(t>=32&&t<=127){this.nextChar();return n.Cmd.get(s)}}const r=this.knownCommands;let o=r?.[s]!==undefined;while((e=this.nextChar())>=0&&!A[e]){const t=s+String.fromCharCode(e);if(o&&r[t]===undefined){break}if(s.length===128){throw new i.FormatError(`Command token too long: ${s.length}`)}s=t;o=r?.[s]!==undefined}if(s==="true"){return true}if(s==="false"){return false}if(s==="null"){return null}if(s==="BI"){this.beginInlineImagePos=this.stream.pos}return n.Cmd.get(s)}skipToNextLine(){let t=this.currentChar;while(t>=0){if(t===13){t=this.nextChar();if(t===10){this.nextChar()}break}else if(t===10){this.nextChar();break}t=this.nextChar()}}}e.Lexer=x;class k{static create(t){function e(t,e,s=false){const i=t.get(e);if(Number.isInteger(i)&&(s?i>=0:i>0)){return i}throw new Error(`The "${e}" parameter in the linearization `+"dictionary is invalid.")}function s(t){const e=t.get("H");let s;if(Array.isArray(e)&&((s=e.length)===2||s===4)){for(let t=0;t<s;t++){const s=e[t];if(!(Number.isInteger(s)&&s>0)){throw new Error(`Hint (${t}) in the linearization dictionary is invalid.`)}}return e}throw new Error("Hint array in the linearization dictionary is invalid.")}const i=new y({lexer:new x(t),xref:null});const r=i.getObj();const o=i.getObj();const a=i.getObj();const c=i.getObj();let l,h;if(!(Number.isInteger(r)&&Number.isInteger(o)&&(0,n.isCmd)(a,"obj")&&c instanceof n.Dict&&typeof(l=c.get("Linearized"))==="number"&&l>0)){return null}else if((h=e(c,"L"))!==t.length){throw new Error('The "L" parameter in the linearization dictionary '+"does not equal the stream length.")}return{length:h,hints:s(c),objectNumberFirst:e(c,"O"),endFirst:e(c,"E"),numPages:e(c,"N"),mainXRefEntriesOffset:e(c,"T"),pageFirst:c.has("P")?e(c,"P",true):0}}}e.Linearization=k},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.Ascii85Stream=void 0;var i=s(18);var n=s(3);class r extends i.DecodeStream{constructor(t,e){if(e){e*=.8}super(e);this.str=t;this.dict=t.dict;this.input=new Uint8Array(5)}readBlock(){const t=126;const e=122;const s=-1;const i=this.str;let r=i.getByte();while((0,n.isWhiteSpace)(r)){r=i.getByte()}if(r===s||r===t){this.eof=true;return}const o=this.bufferLength;let a,c;if(r===e){a=this.ensureBuffer(o+4);for(c=0;c<4;++c){a[o+c]=0}this.bufferLength+=4}else{const e=this.input;e[0]=r;for(c=1;c<5;++c){r=i.getByte();while((0,n.isWhiteSpace)(r)){r=i.getByte()}e[c]=r;if(r===s||r===t){break}}a=this.ensureBuffer(o+c-1);this.bufferLength+=c-1;if(c<5){for(;c<5;++c){e[c]=33+84}this.eof=true}let l=0;for(c=0;c<5;++c){l=l*85+(e[c]-33)}for(c=3;c>=0;--c){a[o+c]=l&255;l>>=8}}}}e.Ascii85Stream=r},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.StreamsSequenceStream=e.DecodeStream=void 0;var i=s(5);var n=s(8);const r=new Uint8Array(0);class o extends i.BaseStream{constructor(t){super();this._rawMinBufferLength=t||0;this.pos=0;this.bufferLength=0;this.eof=false;this.buffer=r;this.minBufferLength=512;if(t){while(this.minBufferLength<t){this.minBufferLength*=2}}}get isEmpty(){while(!this.eof&&this.bufferLength===0){this.readBlock()}return this.bufferLength===0}ensureBuffer(t){const e=this.buffer;if(t<=e.byteLength){return e}let s=this.minBufferLength;while(s<t){s*=2}const i=new Uint8Array(s);i.set(e);return this.buffer=i}getByte(){const t=this.pos;while(this.bufferLength<=t){if(this.eof){return-1}this.readBlock()}return this.buffer[this.pos++]}getBytes(t){const e=this.pos;let s;if(t){this.ensureBuffer(e+t);s=e+t;while(!this.eof&&this.bufferLength<s){this.readBlock()}const i=this.bufferLength;if(s>i){s=i}}else{while(!this.eof){this.readBlock()}s=this.bufferLength}this.pos=s;return this.buffer.subarray(e,s)}reset(){this.pos=0}makeSubStream(t,e,s=null){if(e===undefined){while(!this.eof){this.readBlock()}}else{const s=t+e;while(this.bufferLength<=s&&!this.eof){this.readBlock()}}return new n.Stream(this.buffer,t,e,s)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}e.DecodeStream=o;class a extends o{constructor(t,e=null){let s=0;for(const e of t){s+=e instanceof o?e._rawMinBufferLength:e.length}super(s);this.streams=t;this._onError=e}readBlock(){const t=this.streams;if(t.length===0){this.eof=true;return}const e=t.shift();let s;try{s=e.getBytes()}catch(t){if(this._onError){this._onError(t,e.dict?.objId);return}throw t}const i=this.bufferLength;const n=i+s.length;const r=this.ensureBuffer(n);r.set(s,i);this.bufferLength=n}getBaseStreams(){const t=[];for(const e of this.streams){const s=e.getBaseStreams();if(s){t.push(...s)}}return t.length>0?t:null}}e.StreamsSequenceStream=a},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.AsciiHexStream=void 0;var i=s(18);class n extends i.DecodeStream{constructor(t,e){if(e){e*=.5}super(e);this.str=t;this.dict=t.dict;this.firstDigit=-1}readBlock(){const t=8e3;const e=this.str.getBytes(t);if(!e.length){this.eof=true;return}const s=e.length+1>>1;const i=this.ensureBuffer(this.bufferLength+s);let n=this.bufferLength;let r=this.firstDigit;for(const t of e){let e;if(t>=48&&t<=57){e=t&15}else if(t>=65&&t<=70||t>=97&&t<=102){e=(t&15)+9}else if(t===62){this.eof=true;break}else{continue}if(r<0){r=e}else{i[n++]=r<<4|e;r=-1}}if(r>=0&&this.eof){i[n++]=r<<4;r=-1}this.firstDigit=r;this.bufferLength=n}}e.AsciiHexStream=n},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.CCITTFaxStream=void 0;var i=s(21);var n=s(18);var r=s(4);class o extends n.DecodeStream{constructor(t,e,s){super(e);this.str=t;this.dict=t.dict;if(!(s instanceof r.Dict)){s=r.Dict.empty}const n={next(){return t.getByte()}};this.ccittFaxDecoder=new i.CCITTFaxDecoder(n,{K:s.get("K"),EndOfLine:s.get("EndOfLine"),EncodedByteAlign:s.get("EncodedByteAlign"),Columns:s.get("Columns"),Rows:s.get("Rows"),EndOfBlock:s.get("EndOfBlock"),BlackIs1:s.get("BlackIs1")})}readBlock(){while(!this.eof){const t=this.ccittFaxDecoder.readNextChar();if(t===-1){this.eof=true;return}this.ensureBuffer(this.bufferLength+1);this.buffer[this.bufferLength++]=t}}}e.CCITTFaxStream=o},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.CCITTFaxDecoder=void 0;var i=s(2);const n=-2;const r=-1;const o=0;const a=1;const c=2;const l=3;const h=4;const u=5;const f=6;const d=7;const p=8;const g=[[-1,-1],[-1,-1],[7,p],[7,d],[6,f],[6,f],[6,u],[6,u],[4,o],[4,o],[4,o],[4,o],[4,o],[4,o],[4,o],[4,o],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,a],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,h],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[3,l],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c],[1,c]];const m=[[-1,-1],[12,n],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[12,1984],[12,2048],[12,2112],[12,2176],[12,2240],[12,2304],[11,1856],[11,1856],[11,1920],[11,1920],[12,2368],[12,2432],[12,2496],[12,2560]];const w=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[8,29],[8,29],[8,30],[8,30],[8,45],[8,45],[8,46],[8,46],[7,22],[7,22],[7,22],[7,22],[7,23],[7,23],[7,23],[7,23],[8,47],[8,47],[8,48],[8,48],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[6,13],[7,20],[7,20],[7,20],[7,20],[8,33],[8,33],[8,34],[8,34],[8,35],[8,35],[8,36],[8,36],[8,37],[8,37],[8,38],[8,38],[7,19],[7,19],[7,19],[7,19],[8,31],[8,31],[8,32],[8,32],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[6,12],[8,53],[8,53],[8,54],[8,54],[7,26],[7,26],[7,26],[7,26],[8,39],[8,39],[8,40],[8,40],[8,41],[8,41],[8,42],[8,42],[8,43],[8,43],[8,44],[8,44],[7,21],[7,21],[7,21],[7,21],[7,28],[7,28],[7,28],[7,28],[8,61],[8,61],[8,62],[8,62],[8,63],[8,63],[8,0],[8,0],[8,320],[8,320],[8,384],[8,384],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,10],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[5,11],[7,27],[7,27],[7,27],[7,27],[8,59],[8,59],[8,60],[8,60],[9,1472],[9,1536],[9,1600],[9,1728],[7,18],[7,18],[7,18],[7,18],[7,24],[7,24],[7,24],[7,24],[8,49],[8,49],[8,50],[8,50],[8,51],[8,51],[8,52],[8,52],[7,25],[7,25],[7,25],[7,25],[8,55],[8,55],[8,56],[8,56],[8,57],[8,57],[8,58],[8,58],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,192],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[6,1664],[8,448],[8,448],[8,512],[8,512],[9,704],[9,768],[8,640],[8,640],[8,576],[8,576],[9,832],[9,896],[9,960],[9,1024],[9,1088],[9,1152],[9,1216],[9,1280],[9,1344],[9,1408],[7,256],[7,256],[7,256],[7,256],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,128],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,8],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[5,9],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,16],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[6,17],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,4],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[4,5],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,14],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[6,15],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[5,64],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,6],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7],[4,7]];const b=[[-1,-1],[-1,-1],[12,n],[12,n],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[11,1792],[11,1792],[11,1792],[11,1792],[12,1984],[12,1984],[12,2048],[12,2048],[12,2112],[12,2112],[12,2176],[12,2176],[12,2240],[12,2240],[12,2304],[12,2304],[11,1856],[11,1856],[11,1856],[11,1856],[11,1920],[11,1920],[11,1920],[11,1920],[12,2368],[12,2368],[12,2432],[12,2432],[12,2496],[12,2496],[12,2560],[12,2560],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[10,18],[12,52],[12,52],[13,640],[13,704],[13,768],[13,832],[12,55],[12,55],[12,56],[12,56],[13,1280],[13,1344],[13,1408],[13,1472],[12,59],[12,59],[12,60],[12,60],[13,1536],[13,1600],[11,24],[11,24],[11,24],[11,24],[11,25],[11,25],[11,25],[11,25],[13,1664],[13,1728],[12,320],[12,320],[12,384],[12,384],[12,448],[12,448],[13,512],[13,576],[12,53],[12,53],[12,54],[12,54],[13,896],[13,960],[13,1024],[13,1088],[13,1152],[13,1216],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64],[10,64]];const y=[[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[8,13],[11,23],[11,23],[12,50],[12,51],[12,44],[12,45],[12,46],[12,47],[12,57],[12,58],[12,61],[12,256],[10,16],[10,16],[10,16],[10,16],[10,17],[10,17],[10,17],[10,17],[12,48],[12,49],[12,62],[12,63],[12,30],[12,31],[12,32],[12,33],[12,40],[12,41],[11,22],[11,22],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[8,14],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,10],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[7,11],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[9,15],[12,128],[12,192],[12,26],[12,27],[12,28],[12,29],[11,19],[11,19],[11,20],[11,20],[12,34],[12,35],[12,36],[12,37],[12,38],[12,39],[11,21],[11,21],[12,42],[12,43],[10,0],[10,0],[10,0],[10,0],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12],[7,12]];const A=[[-1,-1],[-1,-1],[-1,-1],[-1,-1],[6,9],[6,8],[5,7],[5,7],[4,6],[4,6],[4,6],[4,6],[4,5],[4,5],[4,5],[4,5],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,3],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2],[2,2]];class v{constructor(t,e={}){if(!t||typeof t.next!=="function"){throw new Error('CCITTFaxDecoder - invalid "source" parameter.')}this.source=t;this.eof=false;this.encoding=e.K||0;this.eoline=e.EndOfLine||false;this.byteAlign=e.EncodedByteAlign||false;this.columns=e.Columns||1728;this.rows=e.Rows||0;this.eoblock=e.EndOfBlock??true;this.black=e.BlackIs1||false;this.codingLine=new Uint32Array(this.columns+1);this.refLine=new Uint32Array(this.columns+2);this.codingLine[0]=this.columns;this.codingPos=0;this.row=0;this.nextLine2D=this.encoding<0;this.inputBits=0;this.inputBuf=0;this.outputBits=0;this.rowsDone=false;let s;while((s=this._lookBits(12))===0){this._eatBits(1)}if(s===1){this._eatBits(12)}if(this.encoding>0){this.nextLine2D=!this._lookBits(1);this._eatBits(1)}}readNextChar(){if(this.eof){return-1}const t=this.refLine;const e=this.codingLine;const s=this.columns;let n,g,m,w;if(this.outputBits===0){if(this.rowsDone){this.eof=true}if(this.eof){return-1}this.err=false;let m,b,y;if(this.nextLine2D){for(w=0;e[w]<s;++w){t[w]=e[w]}t[w++]=s;t[w]=s;e[0]=0;this.codingPos=0;n=0;g=0;while(e[this.codingPos]<s){m=this._getTwoDimCode();switch(m){case o:this._addPixels(t[n+1],g);if(t[n+1]<s){n+=2}break;case a:m=b=0;if(g){do{m+=y=this._getBlackCode()}while(y>=64);do{b+=y=this._getWhiteCode()}while(y>=64)}else{do{m+=y=this._getWhiteCode()}while(y>=64);do{b+=y=this._getBlackCode()}while(y>=64)}this._addPixels(e[this.codingPos]+m,g);if(e[this.codingPos]<s){this._addPixels(e[this.codingPos]+b,g^1)}while(t[n]<=e[this.codingPos]&&t[n]<s){n+=2}break;case d:this._addPixels(t[n]+3,g);g^=1;if(e[this.codingPos]<s){++n;while(t[n]<=e[this.codingPos]&&t[n]<s){n+=2}}break;case u:this._addPixels(t[n]+2,g);g^=1;if(e[this.codingPos]<s){++n;while(t[n]<=e[this.codingPos]&&t[n]<s){n+=2}}break;case l:this._addPixels(t[n]+1,g);g^=1;if(e[this.codingPos]<s){++n;while(t[n]<=e[this.codingPos]&&t[n]<s){n+=2}}break;case c:this._addPixels(t[n],g);g^=1;if(e[this.codingPos]<s){++n;while(t[n]<=e[this.codingPos]&&t[n]<s){n+=2}}break;case p:this._addPixelsNeg(t[n]-3,g);g^=1;if(e[this.codingPos]<s){if(n>0){--n}else{++n}while(t[n]<=e[this.codingPos]&&t[n]<s){n+=2}}break;case f:this._addPixelsNeg(t[n]-2,g);g^=1;if(e[this.codingPos]<s){if(n>0){--n}else{++n}while(t[n]<=e[this.codingPos]&&t[n]<s){n+=2}}break;case h:this._addPixelsNeg(t[n]-1,g);g^=1;if(e[this.codingPos]<s){if(n>0){--n}else{++n}while(t[n]<=e[this.codingPos]&&t[n]<s){n+=2}}break;case r:this._addPixels(s,0);this.eof=true;break;default:(0,i.info)("bad 2d code");this._addPixels(s,0);this.err=true}}}else{e[0]=0;this.codingPos=0;g=0;while(e[this.codingPos]<s){m=0;if(g){do{m+=y=this._getBlackCode()}while(y>=64)}else{do{m+=y=this._getWhiteCode()}while(y>=64)}this._addPixels(e[this.codingPos]+m,g);g^=1}}let A=false;if(this.byteAlign){this.inputBits&=~7}if(!this.eoblock&&this.row===this.rows-1){this.rowsDone=true}else{m=this._lookBits(12);if(this.eoline){while(m!==r&&m!==1){this._eatBits(1);m=this._lookBits(12)}}else{while(m===0){this._eatBits(1);m=this._lookBits(12)}}if(m===1){this._eatBits(12);A=true}else if(m===r){this.eof=true}}if(!this.eof&&this.encoding>0&&!this.rowsDone){this.nextLine2D=!this._lookBits(1);this._eatBits(1)}if(this.eoblock&&A&&this.byteAlign){m=this._lookBits(12);if(m===1){this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}if(this.encoding>=0){for(w=0;w<4;++w){m=this._lookBits(12);if(m!==1){(0,i.info)("bad rtc code: "+m)}this._eatBits(12);if(this.encoding>0){this._lookBits(1);this._eatBits(1)}}}this.eof=true}}else if(this.err&&this.eoline){while(true){m=this._lookBits(13);if(m===r){this.eof=true;return-1}if(m>>1===1){break}this._eatBits(1)}this._eatBits(12);if(this.encoding>0){this._eatBits(1);this.nextLine2D=!(m&1)}}this.outputBits=e[0]>0?e[this.codingPos=0]:e[this.codingPos=1];this.row++}let b;if(this.outputBits>=8){b=this.codingPos&1?0:255;this.outputBits-=8;if(this.outputBits===0&&e[this.codingPos]<s){this.codingPos++;this.outputBits=e[this.codingPos]-e[this.codingPos-1]}}else{m=8;b=0;do{if(typeof this.outputBits!=="number"){throw new i.FormatError('Invalid /CCITTFaxDecode data, "outputBits" must be a number.')}if(this.outputBits>m){b<<=m;if(!(this.codingPos&1)){b|=255>>8-m}this.outputBits-=m;m=0}else{b<<=this.outputBits;if(!(this.codingPos&1)){b|=255>>8-this.outputBits}m-=this.outputBits;this.outputBits=0;if(e[this.codingPos]<s){this.codingPos++;this.outputBits=e[this.codingPos]-e[this.codingPos-1]}else if(m>0){b<<=m;m=0}}}while(m)}if(this.black){b^=255}return b}_addPixels(t,e){const s=this.codingLine;let n=this.codingPos;if(t>s[n]){if(t>this.columns){(0,i.info)("row is wrong length");this.err=true;t=this.columns}if(n&1^e){++n}s[n]=t}this.codingPos=n}_addPixelsNeg(t,e){const s=this.codingLine;let n=this.codingPos;if(t>s[n]){if(t>this.columns){(0,i.info)("row is wrong length");this.err=true;t=this.columns}if(n&1^e){++n}s[n]=t}else if(t<s[n]){if(t<0){(0,i.info)("invalid code");this.err=true;t=0}while(n>0&&t<s[n-1]){--n}s[n]=t}this.codingPos=n}_findTableCode(t,e,s,i){const n=i||0;for(let i=t;i<=e;++i){let t=this._lookBits(i);if(t===r){return[true,1,false]}if(i<e){t<<=e-i}if(!n||t>=n){const e=s[t-n];if(e[0]===i){this._eatBits(i);return[true,e[1],true]}}}return[false,0,false]}_getTwoDimCode(){let t=0;let e;if(this.eoblock){t=this._lookBits(7);e=g[t];if(e?.[0]>0){this._eatBits(e[0]);return e[1]}}else{const t=this._findTableCode(1,7,g);if(t[0]&&t[2]){return t[1]}}(0,i.info)("Bad two dim code");return r}_getWhiteCode(){let t=0;let e;if(this.eoblock){t=this._lookBits(12);if(t===r){return 1}e=t>>5===0?m[t]:w[t>>3];if(e[0]>0){this._eatBits(e[0]);return e[1]}}else{let t=this._findTableCode(1,9,w);if(t[0]){return t[1]}t=this._findTableCode(11,12,m);if(t[0]){return t[1]}}(0,i.info)("bad white code");this._eatBits(1);return 1}_getBlackCode(){let t,e;if(this.eoblock){t=this._lookBits(13);if(t===r){return 1}if(t>>7===0){e=b[t]}else if(t>>9===0&&t>>7!==0){e=y[(t>>1)-64]}else{e=A[t>>7]}if(e[0]>0){this._eatBits(e[0]);return e[1]}}else{let t=this._findTableCode(2,6,A);if(t[0]){return t[1]}t=this._findTableCode(7,12,y,64);if(t[0]){return t[1]}t=this._findTableCode(10,13,b);if(t[0]){return t[1]}}(0,i.info)("bad black code");this._eatBits(1);return 1}_lookBits(t){let e;while(this.inputBits<t){if((e=this.source.next())===-1){if(this.inputBits===0){return r}return this.inputBuf<<t-this.inputBits&65535>>16-t}this.inputBuf=this.inputBuf<<8|e;this.inputBits+=8}return this.inputBuf>>this.inputBits-t&65535>>16-t}_eatBits(t){if((this.inputBits-=t)<0){this.inputBits=0}}}e.CCITTFaxDecoder=v},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.FlateStream=void 0;var i=s(18);var n=s(2);const r=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);const o=new Int32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]);const a=new Int32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]);const c=[new Int32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9];const l=[new Int32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];class h extends i.DecodeStream{constructor(t,e){super(e);this.str=t;this.dict=t.dict;const s=t.getByte();const i=t.getByte();if(s===-1||i===-1){throw new n.FormatError(`Invalid header in flate stream: ${s}, ${i}`)}if((s&15)!==8){throw new n.FormatError(`Unknown compression method in flate stream: ${s}, ${i}`)}if(((s<<8)+i)%31!==0){throw new n.FormatError(`Bad FCHECK in flate stream: ${s}, ${i}`)}if(i&32){throw new n.FormatError(`FDICT bit set in flate stream: ${s}, ${i}`)}this.codeSize=0;this.codeBuf=0}getBits(t){const e=this.str;let s=this.codeSize;let i=this.codeBuf;let r;while(s<t){if((r=e.getByte())===-1){throw new n.FormatError("Bad encoding in flate stream")}i|=r<<s;s+=8}r=i&(1<<t)-1;this.codeBuf=i>>t;this.codeSize=s-=t;return r}getCode(t){const e=this.str;const s=t[0];const i=t[1];let r=this.codeSize;let o=this.codeBuf;let a;while(r<i){if((a=e.getByte())===-1){break}o|=a<<r;r+=8}const c=s[o&(1<<i)-1];const l=c>>16;const h=c&65535;if(l<1||r<l){throw new n.FormatError("Bad encoding in flate stream")}this.codeBuf=o>>l;this.codeSize=r-l;return h}generateHuffmanTable(t){const e=t.length;let s=0;let i;for(i=0;i<e;++i){if(t[i]>s){s=t[i]}}const n=1<<s;const r=new Int32Array(n);for(let o=1,a=0,c=2;o<=s;++o,a<<=1,c<<=1){for(let s=0;s<e;++s){if(t[s]===o){let t=0;let e=a;for(i=0;i<o;++i){t=t<<1|e&1;e>>=1}for(i=t;i<n;i+=c){r[i]=o<<16|s}++a}}}return[r,s]}readBlock(){let t,e;const s=this.str;let i=this.getBits(3);if(i&1){this.eof=true}i>>=1;if(i===0){let e;if((e=s.getByte())===-1){throw new n.FormatError("Bad block header in flate stream")}let i=e;if((e=s.getByte())===-1){throw new n.FormatError("Bad block header in flate stream")}i|=e<<8;if((e=s.getByte())===-1){throw new n.FormatError("Bad block header in flate stream")}let r=e;if((e=s.getByte())===-1){throw new n.FormatError("Bad block header in flate stream")}r|=e<<8;if(r!==(~i&65535)&&(i!==0||r!==0)){throw new n.FormatError("Bad uncompressed block length in flate stream")}this.codeBuf=0;this.codeSize=0;const o=this.bufferLength,a=o+i;t=this.ensureBuffer(a);this.bufferLength=a;if(i===0){if(s.peekByte()===-1){this.eof=true}}else{const e=s.getBytes(i);t.set(e,o);if(e.length<i){this.eof=true}}return}let h;let u;if(i===1){h=c;u=l}else if(i===2){const t=this.getBits(5)+257;const s=this.getBits(5)+1;const i=this.getBits(4)+4;const n=new Uint8Array(r.length);let o;for(o=0;o<i;++o){n[r[o]]=this.getBits(3)}const a=this.generateHuffmanTable(n);e=0;o=0;const c=t+s;const l=new Uint8Array(c);let f,d,p;while(o<c){const t=this.getCode(a);if(t===16){f=2;d=3;p=e}else if(t===17){f=3;d=3;p=e=0}else if(t===18){f=7;d=11;p=e=0}else{l[o++]=e=t;continue}let s=this.getBits(f)+d;while(s-- >0){l[o++]=p}}h=this.generateHuffmanTable(l.subarray(0,t));u=this.generateHuffmanTable(l.subarray(t,c))}else{throw new n.FormatError("Unknown block type in flate stream")}t=this.buffer;let f=t?t.length:0;let d=this.bufferLength;while(true){let s=this.getCode(h);if(s<256){if(d+1>=f){t=this.ensureBuffer(d+1);f=t.length}t[d++]=s;continue}if(s===256){this.bufferLength=d;return}s-=257;s=o[s];let i=s>>16;if(i>0){i=this.getBits(i)}e=(s&65535)+i;s=this.getCode(u);s=a[s];i=s>>16;if(i>0){i=this.getBits(i)}const n=(s&65535)+i;if(d+e>=f){t=this.ensureBuffer(d+e);f=t.length}for(let s=0;s<e;++s,++d){t[d]=t[d-n]}}}}e.FlateStream=h},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.Jbig2Stream=void 0;var i=s(5);var n=s(18);var r=s(4);var o=s(24);var a=s(2);class c extends n.DecodeStream{constructor(t,e,s){super(e);this.stream=t;this.dict=t.dict;this.maybeLength=e;this.params=s}get bytes(){return(0,a.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}readBlock(){if(this.eof){return}const t=new o.Jbig2Image;const e=[];if(this.params instanceof r.Dict){const t=this.params.get("JBIG2Globals");if(t instanceof i.BaseStream){const s=t.getBytes();e.push({data:s,start:0,end:s.length})}}e.push({data:this.bytes,start:0,end:this.bytes.length});const s=t.parseChunks(e);const n=s.length;for(let t=0;t<n;t++){s[t]^=255}this.buffer=s;this.bufferLength=n;this.eof=true}}e.Jbig2Stream=c},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.Jbig2Image=void 0;var i=s(2);var n=s(3);var r=s(25);var o=s(21);class a extends i.BaseException{constructor(t){super(`JBIG2 error: ${t}`,"Jbig2Error")}}class c{getContexts(t){if(t in this){return this[t]}return this[t]=new Int8Array(1<<16)}}class l{constructor(t,e,s){this.data=t;this.start=e;this.end=s}get decoder(){const t=new r.ArithmeticDecoder(this.data,this.start,this.end);return(0,i.shadow)(this,"decoder",t)}get contextCache(){const t=new c;return(0,i.shadow)(this,"contextCache",t)}}const h=2**31-1;const u=-(2**31);function f(t,e,s){const i=t.getContexts(e);let n=1;function r(t){let e=0;for(let r=0;r<t;r++){const t=s.readBit(i,n);n=n<256?n<<1|t:(n<<1|t)&511|256;e=e<<1|t}return e>>>0}const o=r(1);const a=r(1)?r(1)?r(1)?r(1)?r(1)?r(32)+4436:r(12)+340:r(8)+84:r(6)+20:r(4)+4:r(2);let c;if(o===0){c=a}else if(a>0){c=-a}if(c>=u&&c<=h){return c}return null}function d(t,e,s){const i=t.getContexts("IAID");let n=1;for(let t=0;t<s;t++){const t=e.readBit(i,n);n=n<<1|t}if(s<31){return n&(1<<s)-1}return n&2147483647}const p=["SymbolDictionary",null,null,null,"IntermediateTextRegion",null,"ImmediateTextRegion","ImmediateLosslessTextRegion",null,null,null,null,null,null,null,null,"PatternDictionary",null,null,null,"IntermediateHalftoneRegion",null,"ImmediateHalftoneRegion","ImmediateLosslessHalftoneRegion",null,null,null,null,null,null,null,null,null,null,null,null,"IntermediateGenericRegion",null,"ImmediateGenericRegion","ImmediateLosslessGenericRegion","IntermediateGenericRefinementRegion",null,"ImmediateGenericRefinementRegion","ImmediateLosslessGenericRefinementRegion",null,null,null,null,"PageInformation","EndOfPage","EndOfStripe","EndOfFile","Profiles","Tables",null,null,null,null,null,null,null,null,"Extension"];const g=[[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:2,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:2,y:-1},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}],[{x:-1,y:-2},{x:0,y:-2},{x:1,y:-2},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-2,y:0},{x:-1,y:0}],[{x:-3,y:-1},{x:-2,y:-1},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-4,y:0},{x:-3,y:0},{x:-2,y:0},{x:-1,y:0}]];const m=[{coding:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:1,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:-1,y:1},{x:0,y:1},{x:1,y:1}]},{coding:[{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:-1,y:0}],reference:[{x:0,y:-1},{x:-1,y:0},{x:0,y:0},{x:1,y:0},{x:0,y:1},{x:1,y:1}]}];const w=[39717,1941,229,405];const b=[32,8];function y(t,e,s){const i=s.decoder;const n=s.contextCache.getContexts("GB");const r=[];let o,a,c,l,h,u,f;const d=31735;for(a=0;a<e;a++){h=r[a]=new Uint8Array(t);u=a<1?h:r[a-1];f=a<2?h:r[a-2];o=f[0]<<13|f[1]<<12|f[2]<<11|u[0]<<7|u[1]<<6|u[2]<<5|u[3]<<4;for(c=0;c<t;c++){h[c]=l=i.readBit(n,o);o=(o&d)<<1|(c+3<t?f[c+3]<<11:0)|(c+4<t?u[c+4]<<4:0)|l}}return r}function A(t,e,s,i,n,r,o,a){if(t){const t=new U(a.data,a.start,a.end);return X(t,e,s,false)}if(i===0&&!r&&!n&&o.length===4&&o[0].x===3&&o[0].y===-1&&o[1].x===-3&&o[1].y===-1&&o[2].x===2&&o[2].y===-2&&o[3].x===-2&&o[3].y===-2){return y(e,s,a)}const c=!!r;const l=g[i].concat(o);l.sort((function(t,e){return t.y-e.y||t.x-e.x}));const h=l.length;const u=new Int8Array(h);const f=new Int8Array(h);const d=[];let p=0,m=0,b=0,A=0;let v,x;for(x=0;x<h;x++){u[x]=l[x].x;f[x]=l[x].y;m=Math.min(m,l[x].x);b=Math.max(b,l[x].x);A=Math.min(A,l[x].y);if(x<h-1&&l[x].y===l[x+1].y&&l[x].x===l[x+1].x-1){p|=1<<h-1-x}else{d.push(x)}}const k=d.length;const S=new Int8Array(k);const M=new Int8Array(k);const C=new Uint16Array(k);for(v=0;v<k;v++){x=d[v];S[v]=l[x].x;M[v]=l[x].y;C[v]=1<<h-1-x}const _=-m;const I=-A;const F=e-b;const O=w[i];let E=new Uint8Array(e);const T=[];const D=a.decoder;const P=a.contextCache.getContexts("GB");let R=0,N,L,B,$=0,j,H;for(let t=0;t<s;t++){if(n){const t=D.readBit(P,O);R^=t;if(R){T.push(E);continue}}E=new Uint8Array(E);T.push(E);for(N=0;N<e;N++){if(c&&r[t][N]){E[N]=0;continue}if(N>=_&&N<F&&t>=I){$=$<<1&p;for(x=0;x<k;x++){L=t+M[x];B=N+S[x];j=T[L][B];if(j){j=C[x];$|=j}}}else{$=0;H=h-1;for(x=0;x<h;x++,H--){B=N+u[x];if(B>=0&&B<e){L=t+f[x];if(L>=0){j=T[L][B];if(j){$|=j<<H}}}}}const s=D.readBit(P,$);E[N]=s}}return T}function v(t,e,s,i,n,r,o,c,l){let h=m[s].coding;if(s===0){h=h.concat([c[0]])}const u=h.length;const f=new Int32Array(u);const d=new Int32Array(u);let p;for(p=0;p<u;p++){f[p]=h[p].x;d[p]=h[p].y}let g=m[s].reference;if(s===0){g=g.concat([c[1]])}const w=g.length;const y=new Int32Array(w);const A=new Int32Array(w);for(p=0;p<w;p++){y[p]=g[p].x;A[p]=g[p].y}const v=i[0].length;const x=i.length;const k=b[s];const S=[];const M=l.decoder;const C=l.contextCache.getContexts("GR");let _=0;for(let s=0;s<e;s++){if(o){const t=M.readBit(C,k);_^=t;if(_){throw new a("prediction is not supported")}}const e=new Uint8Array(t);S.push(e);for(let o=0;o<t;o++){let a,c;let l=0;for(p=0;p<u;p++){a=s+d[p];c=o+f[p];if(a<0||c<0||c>=t){l<<=1}else{l=l<<1|S[a][c]}}for(p=0;p<w;p++){a=s+A[p]-r;c=o+y[p]-n;if(a<0||a>=x||c<0||c>=v){l<<=1}else{l=l<<1|i[a][c]}}const h=M.readBit(C,l);e[o]=h}}return S}function x(t,e,s,i,r,o,c,l,h,u,p,g){if(t&&e){throw new a("symbol refinement with Huffman is not supported")}const m=[];let w=0;let b=(0,n.log2)(s.length+i);const y=p.decoder;const x=p.contextCache;let S,M;if(t){S=$(1);M=[];b=Math.max(b,1)}while(m.length<i){const i=t?o.tableDeltaHeight.decode(g):f(x,"IADH",y);w+=i;let n=0,r=0;const a=t?M.length:0;while(true){const i=t?o.tableDeltaWidth.decode(g):f(x,"IADW",y);if(i===null){break}n+=i;r+=n;let a;if(e){const i=f(x,"IAAI",y);if(i>1){a=k(t,e,n,w,0,i,1,s.concat(m),b,0,0,1,0,o,h,u,p,0,g)}else{const t=d(x,y,b);const e=f(x,"IARDX",y);const i=f(x,"IARDY",y);const r=t<s.length?s[t]:m[t-s.length];a=v(n,w,h,r,e,i,false,u,p)}m.push(a)}else if(t){M.push(n)}else{a=A(false,n,w,c,false,null,l,p);m.push(a)}}if(t&&!e){const t=o.tableBitmapSize.decode(g);g.byteAlign();let e;if(t===0){e=q(g,r,w)}else{const s=g.end;const i=g.position+t;g.end=i;e=X(g,r,w,false);g.end=s;g.position=i}const s=M.length;if(a===s-1){m.push(e)}else{let t,i,n=0,r,o,c;for(t=a;t<s;t++){o=M[t];r=n+o;c=[];for(i=0;i<w;i++){c.push(e[i].subarray(n,r))}m.push(c);n=r}}}}const C=[],_=[];let I=false,F,O;const E=s.length+i;while(_.length<E){let e=t?S.decode(g):f(x,"IAEX",y);while(e--){_.push(I)}I=!I}for(F=0,O=s.length;F<O;F++){if(_[F]){C.push(s[F])}}for(let t=0;t<i;F++,t++){if(_[F]){C.push(m[t])}}return C}function k(t,e,s,i,n,r,o,c,l,h,u,p,g,m,w,b,y,A,x){if(t&&e){throw new a("refinement with Huffman is not supported")}const k=[];let S,M;for(S=0;S<i;S++){M=new Uint8Array(s);if(n){for(let t=0;t<s;t++){M[t]=n}}k.push(M)}const C=y.decoder;const _=y.contextCache;let I=t?-m.tableDeltaT.decode(x):-f(_,"IADT",C);let F=0;S=0;while(S<r){const i=t?m.tableDeltaT.decode(x):f(_,"IADT",C);I+=i;const n=t?m.tableFirstS.decode(x):f(_,"IAFS",C);F+=n;let r=F;do{let i=0;if(o>1){i=t?x.readBits(A):f(_,"IAIT",C)}const n=o*I+i;const F=t?m.symbolIDTable.decode(x):d(_,C,l);const O=e&&(t?x.readBit():f(_,"IARI",C));let E=c[F];let T=E[0].length;let D=E.length;if(O){const t=f(_,"IARDW",C);const e=f(_,"IARDH",C);const s=f(_,"IARDX",C);const i=f(_,"IARDY",C);T+=t;D+=e;E=v(T,D,w,E,(t>>1)+s,(e>>1)+i,false,b,y)}const P=n-(p&1?0:D-1);const R=r-(p&2?T-1:0);let N,L,B;if(h){for(N=0;N<D;N++){M=k[R+N];if(!M){continue}B=E[N];const t=Math.min(s-P,T);switch(g){case 0:for(L=0;L<t;L++){M[P+L]|=B[L]}break;case 2:for(L=0;L<t;L++){M[P+L]^=B[L]}break;default:throw new a(`operator ${g} is not supported`)}}r+=D-1}else{for(L=0;L<D;L++){M=k[P+L];if(!M){continue}B=E[L];switch(g){case 0:for(N=0;N<T;N++){M[R+N]|=B[N]}break;case 2:for(N=0;N<T;N++){M[R+N]^=B[N]}break;default:throw new a(`operator ${g} is not supported`)}}r+=T-1}S++;const $=t?m.tableDeltaS.decode(x):f(_,"IADS",C);if($===null){break}r+=$+u}while(true)}return k}function S(t,e,s,i,n,r){const o=[];if(!t){o.push({x:-e,y:0});if(n===0){o.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2})}}const a=(i+1)*e;const c=A(t,a,s,n,false,null,o,r);const l=[];for(let t=0;t<=i;t++){const i=[];const n=e*t;const r=n+e;for(let t=0;t<s;t++){i.push(c[t].subarray(n,r))}l.push(i)}return l}function M(t,e,s,i,r,o,c,l,h,u,f,d,p,g,m){const w=null;if(c){throw new a("skip is not supported")}if(l!==0){throw new a(`operator "${l}" is not supported in halftone region`)}const b=[];let y,v,x;for(y=0;y<r;y++){x=new Uint8Array(i);if(o){for(v=0;v<i;v++){x[v]=o}}b.push(x)}const k=e.length;const S=e[0];const M=S[0].length,C=S.length;const _=(0,n.log2)(k);const I=[];if(!t){I.push({x:s<=1?3:2,y:-1});if(s===0){I.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2})}}const F=[];let O,E;if(t){O=new U(m.data,m.start,m.end)}for(y=_-1;y>=0;y--){if(t){E=X(O,h,u,true)}else{E=A(false,h,u,s,false,w,I,m)}F[y]=E}let T,D,P,R,N,L,B,$,j;for(T=0;T<u;T++){for(D=0;D<h;D++){P=0;R=0;for(v=_-1;v>=0;v--){P^=F[v][T][D];R|=P<<v}N=e[R];L=f+T*g+D*p>>8;B=d+T*p-D*g>>8;if(L>=0&&L+M<=i&&B>=0&&B+C<=r){for(y=0;y<C;y++){j=b[B+y];$=N[y];for(v=0;v<M;v++){j[L+v]|=$[v]}}}else{let t,e;for(y=0;y<C;y++){e=B+y;if(e<0||e>=r){continue}j=b[e];$=N[y];for(v=0;v<M;v++){t=L+v;if(t>=0&&t<i){j[t]|=$[v]}}}}}}return b}function C(t,e){const s={};s.number=(0,n.readUint32)(t,e);const i=t[e+4];const r=i&63;if(!p[r]){throw new a("invalid segment type: "+r)}s.type=r;s.typeName=p[r];s.deferredNonRetain=!!(i&128);const o=!!(i&64);const c=t[e+5];let l=c>>5&7;const h=[c&31];let u=e+6;if(c===7){l=(0,n.readUint32)(t,u-1)&536870911;u+=3;let e=l+7>>3;h[0]=t[u++];while(--e>0){h.push(t[u++])}}else if(c===5||c===6){throw new a("invalid referred-to flags")}s.retainBits=h;let f=4;if(s.number<=256){f=1}else if(s.number<=65536){f=2}const d=[];let g,m;for(g=0;g<l;g++){let e;if(f===1){e=t[u]}else if(f===2){e=(0,n.readUint16)(t,u)}else{e=(0,n.readUint32)(t,u)}d.push(e);u+=f}s.referredTo=d;if(!o){s.pageAssociation=t[u++]}else{s.pageAssociation=(0,n.readUint32)(t,u);u+=4}s.length=(0,n.readUint32)(t,u);u+=4;if(s.length===4294967295){if(r===38){const e=I(t,u);const i=t[u+F];const n=!!(i&1);const r=6;const o=new Uint8Array(r);if(!n){o[0]=255;o[1]=172}o[2]=e.height>>>24&255;o[3]=e.height>>16&255;o[4]=e.height>>8&255;o[5]=e.height&255;for(g=u,m=t.length;g<m;g++){let e=0;while(e<r&&o[e]===t[g+e]){e++}if(e===r){s.length=g+r;break}}if(s.length===4294967295){throw new a("segment end was not found")}}else{throw new a("invalid unknown segment length")}}s.headerEnd=u;return s}function _(t,e,s,i){const n=[];let r=s;while(r<i){const s=C(e,r);r=s.headerEnd;const i={header:s,data:e};if(!t.randomAccess){i.start=r;r+=s.length;i.end=r}n.push(i);if(s.type===51){break}}if(t.randomAccess){for(let t=0,e=n.length;t<e;t++){n[t].start=r;r+=n[t].header.length;n[t].end=r}}return n}function I(t,e){return{width:(0,n.readUint32)(t,e),height:(0,n.readUint32)(t,e+4),x:(0,n.readUint32)(t,e+8),y:(0,n.readUint32)(t,e+12),combinationOperator:t[e+16]&7}}const F=17;function O(t,e){const s=t.header;const i=t.data,r=t.end;let o=t.start;let c,l,h,u;switch(s.type){case 0:const t={};const e=(0,n.readUint16)(i,o);t.huffman=!!(e&1);t.refinement=!!(e&2);t.huffmanDHSelector=e>>2&3;t.huffmanDWSelector=e>>4&3;t.bitmapSizeSelector=e>>6&1;t.aggregationInstancesSelector=e>>7&1;t.bitmapCodingContextUsed=!!(e&256);t.bitmapCodingContextRetained=!!(e&512);t.template=e>>10&3;t.refinementTemplate=e>>12&1;o+=2;if(!t.huffman){u=t.template===0?4:1;l=[];for(h=0;h<u;h++){l.push({x:(0,n.readInt8)(i,o),y:(0,n.readInt8)(i,o+1)});o+=2}t.at=l}if(t.refinement&&!t.refinementTemplate){l=[];for(h=0;h<2;h++){l.push({x:(0,n.readInt8)(i,o),y:(0,n.readInt8)(i,o+1)});o+=2}t.refinementAt=l}t.numberOfExportedSymbols=(0,n.readUint32)(i,o);o+=4;t.numberOfNewSymbols=(0,n.readUint32)(i,o);o+=4;c=[t,s.number,s.referredTo,i,o,r];break;case 6:case 7:const f={};f.info=I(i,o);o+=F;const d=(0,n.readUint16)(i,o);o+=2;f.huffman=!!(d&1);f.refinement=!!(d&2);f.logStripSize=d>>2&3;f.stripSize=1<<f.logStripSize;f.referenceCorner=d>>4&3;f.transposed=!!(d&64);f.combinationOperator=d>>7&3;f.defaultPixelValue=d>>9&1;f.dsOffset=d<<17>>27;f.refinementTemplate=d>>15&1;if(f.huffman){const t=(0,n.readUint16)(i,o);o+=2;f.huffmanFS=t&3;f.huffmanDS=t>>2&3;f.huffmanDT=t>>4&3;f.huffmanRefinementDW=t>>6&3;f.huffmanRefinementDH=t>>8&3;f.huffmanRefinementDX=t>>10&3;f.huffmanRefinementDY=t>>12&3;f.huffmanRefinementSizeSelector=!!(t&16384)}if(f.refinement&&!f.refinementTemplate){l=[];for(h=0;h<2;h++){l.push({x:(0,n.readInt8)(i,o),y:(0,n.readInt8)(i,o+1)});o+=2}f.refinementAt=l}f.numberOfSymbolInstances=(0,n.readUint32)(i,o);o+=4;c=[f,s.referredTo,i,o,r];break;case 16:const p={};const g=i[o++];p.mmr=!!(g&1);p.template=g>>1&3;p.patternWidth=i[o++];p.patternHeight=i[o++];p.maxPatternIndex=(0,n.readUint32)(i,o);o+=4;c=[p,s.number,i,o,r];break;case 22:case 23:const m={};m.info=I(i,o);o+=F;const w=i[o++];m.mmr=!!(w&1);m.template=w>>1&3;m.enableSkip=!!(w&8);m.combinationOperator=w>>4&7;m.defaultPixelValue=w>>7&1;m.gridWidth=(0,n.readUint32)(i,o);o+=4;m.gridHeight=(0,n.readUint32)(i,o);o+=4;m.gridOffsetX=(0,n.readUint32)(i,o)&4294967295;o+=4;m.gridOffsetY=(0,n.readUint32)(i,o)&4294967295;o+=4;m.gridVectorX=(0,n.readUint16)(i,o);o+=2;m.gridVectorY=(0,n.readUint16)(i,o);o+=2;c=[m,s.referredTo,i,o,r];break;case 38:case 39:const b={};b.info=I(i,o);o+=F;const y=i[o++];b.mmr=!!(y&1);b.template=y>>1&3;b.prediction=!!(y&8);if(!b.mmr){u=b.template===0?4:1;l=[];for(h=0;h<u;h++){l.push({x:(0,n.readInt8)(i,o),y:(0,n.readInt8)(i,o+1)});o+=2}b.at=l}c=[b,i,o,r];break;case 48:const A={width:(0,n.readUint32)(i,o),height:(0,n.readUint32)(i,o+4),resolutionX:(0,n.readUint32)(i,o+8),resolutionY:(0,n.readUint32)(i,o+12)};if(A.height===4294967295){delete A.height}const v=i[o+16];(0,n.readUint16)(i,o+17);A.lossless=!!(v&1);A.refinement=!!(v&2);A.defaultPixelValue=v>>2&1;A.combinationOperator=v>>3&3;A.requiresBuffer=!!(v&32);A.combinationOperatorOverride=!!(v&64);c=[A];break;case 49:break;case 50:break;case 51:break;case 53:c=[s.number,i,o,r];break;case 62:break;default:throw new a(`segment type ${s.typeName}(${s.type}) is not implemented`)}const f="on"+s.typeName;if(f in e){e[f].apply(e,c)}}function E(t,e){for(let s=0,i=t.length;s<i;s++){O(t[s],e)}}function T(t){const e=new D;for(let s=0,i=t.length;s<i;s++){const i=t[s];const n=_({},i.data,i.start,i.end);E(n,e)}return e.buffer}class D{onPageInformation(t){this.currentPageInfo=t;const e=t.width+7>>3;const s=new Uint8ClampedArray(e*t.height);if(t.defaultPixelValue){s.fill(255)}this.buffer=s}drawBitmap(t,e){const s=this.currentPageInfo;const i=t.width,n=t.height;const r=s.width+7>>3;const o=s.combinationOperatorOverride?t.combinationOperator:s.combinationOperator;const c=this.buffer;const l=128>>(t.x&7);let h=t.y*r+(t.x>>3);let u,f,d,p;switch(o){case 0:for(u=0;u<n;u++){d=l;p=h;for(f=0;f<i;f++){if(e[u][f]){c[p]|=d}d>>=1;if(!d){d=128;p++}}h+=r}break;case 2:for(u=0;u<n;u++){d=l;p=h;for(f=0;f<i;f++){if(e[u][f]){c[p]^=d}d>>=1;if(!d){d=128;p++}}h+=r}break;default:throw new a(`operator ${o} is not supported`)}}onImmediateGenericRegion(t,e,s,i){const n=t.info;const r=new l(e,s,i);const o=A(t.mmr,n.width,n.height,t.template,t.prediction,null,t.at,r);this.drawBitmap(n,o)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(t,e,s,i,n,r){let o,a;if(t.huffman){o=G(t,s,this.customTables);a=new U(i,n,r)}let c=this.symbols;if(!c){this.symbols=c={}}const h=[];for(const t of s){const e=c[t];if(e){h.push(...e)}}const u=new l(i,n,r);c[e]=x(t.huffman,t.refinement,h,t.numberOfNewSymbols,t.numberOfExportedSymbols,o,t.template,t.at,t.refinementTemplate,t.refinementAt,u,a)}onImmediateTextRegion(t,e,s,i,r){const o=t.info;let a,c;const h=this.symbols;const u=[];for(const t of e){const e=h[t];if(e){u.push(...e)}}const f=(0,n.log2)(u.length);if(t.huffman){c=new U(s,i,r);a=H(t,e,this.customTables,u.length,c)}const d=new l(s,i,r);const p=k(t.huffman,t.refinement,o.width,o.height,t.defaultPixelValue,t.numberOfSymbolInstances,t.stripSize,u,f,t.transposed,t.dsOffset,t.referenceCorner,t.combinationOperator,a,t.refinementTemplate,t.refinementAt,d,t.logStripSize,c);this.drawBitmap(o,p)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(t,e,s,i,n){let r=this.patterns;if(!r){this.patterns=r={}}const o=new l(s,i,n);r[e]=S(t.mmr,t.patternWidth,t.patternHeight,t.maxPatternIndex,t.template,o)}onImmediateHalftoneRegion(t,e,s,i,n){const r=this.patterns[e[0]];const o=t.info;const a=new l(s,i,n);const c=M(t.mmr,r,t.template,o.width,o.height,t.defaultPixelValue,t.enableSkip,t.combinationOperator,t.gridWidth,t.gridHeight,t.gridOffsetX,t.gridOffsetY,t.gridVectorX,t.gridVectorY,a);this.drawBitmap(o,c)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(t,e,s,i){let n=this.customTables;if(!n){this.customTables=n={}}n[t]=L(e,s,i)}}class P{constructor(t){if(t.length===2){this.isOOB=true;this.rangeLow=0;this.prefixLength=t[0];this.rangeLength=0;this.prefixCode=t[1];this.isLowerRange=false}else{this.isOOB=false;this.rangeLow=t[0];this.prefixLength=t[1];this.rangeLength=t[2];this.prefixCode=t[3];this.isLowerRange=t[4]==="lower"}}}class R{constructor(t){this.children=[];if(t){this.isLeaf=true;this.rangeLength=t.rangeLength;this.rangeLow=t.rangeLow;this.isLowerRange=t.isLowerRange;this.isOOB=t.isOOB}else{this.isLeaf=false}}buildTree(t,e){const s=t.prefixCode>>e&1;if(e<=0){this.children[s]=new R(t)}else{let i=this.children[s];if(!i){this.children[s]=i=new R(null)}i.buildTree(t,e-1)}}decodeNode(t){if(this.isLeaf){if(this.isOOB){return null}const e=t.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-e:e)}const e=this.children[t.readBit()];if(!e){throw new a("invalid Huffman data")}return e.decodeNode(t)}}class N{constructor(t,e){if(!e){this.assignPrefixCodes(t)}this.rootNode=new R(null);for(let e=0,s=t.length;e<s;e++){const s=t[e];if(s.prefixLength>0){this.rootNode.buildTree(s,s.prefixLength-1)}}}decode(t){return this.rootNode.decodeNode(t)}assignPrefixCodes(t){const e=t.length;let s=0;for(let i=0;i<e;i++){s=Math.max(s,t[i].prefixLength)}const i=new Uint32Array(s+1);for(let s=0;s<e;s++){i[t[s].prefixLength]++}let n=1,r=0,o,a,c;i[0]=0;while(n<=s){r=r+i[n-1]<<1;o=r;a=0;while(a<e){c=t[a];if(c.prefixLength===n){c.prefixCode=o;o++}a++}n++}}}function L(t,e,s){const i=t[e];const r=(0,n.readUint32)(t,e+1)&4294967295;const o=(0,n.readUint32)(t,e+5)&4294967295;const a=new U(t,e+9,s);const c=(i>>1&7)+1;const l=(i>>4&7)+1;const h=[];let u,f,d=r;do{u=a.readBits(c);f=a.readBits(l);h.push(new P([d,u,f,0]));d+=1<<f}while(d<o);u=a.readBits(c);h.push(new P([r-1,u,32,0,"lower"]));u=a.readBits(c);h.push(new P([o,u,32,0]));if(i&1){u=a.readBits(c);h.push(new P([u,0]))}return new N(h,false)}const B={};function $(t){let e=B[t];if(e){return e}let s;switch(t){case 1:s=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:s=[[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[75,6,32,62],[6,63]];break;case 3:s=[[-256,8,8,254],[0,1,0,0],[1,2,0,2],[2,3,0,6],[3,4,3,14],[11,5,6,30],[-257,8,32,255,"lower"],[75,7,32,126],[6,62]];break;case 4:s=[[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[76,5,32,31]];break;case 5:s=[[-255,7,8,126],[1,1,0,0],[2,2,0,2],[3,3,0,6],[4,4,3,14],[12,5,6,30],[-256,7,32,127,"lower"],[76,6,32,62]];break;case 6:s=[[-2048,5,10,28],[-1024,4,9,8],[-512,4,8,9],[-256,4,7,10],[-128,5,6,29],[-64,5,5,30],[-32,4,5,11],[0,2,7,0],[128,3,7,2],[256,3,8,3],[512,4,9,12],[1024,4,10,13],[-2049,6,32,62,"lower"],[2048,6,32,63]];break;case 7:s=[[-1024,4,9,8],[-512,3,8,0],[-256,4,7,9],[-128,5,6,26],[-64,5,5,27],[-32,4,5,10],[0,4,5,11],[32,5,5,28],[64,5,6,29],[128,4,7,12],[256,3,8,1],[512,3,9,2],[1024,3,10,3],[-1025,5,32,30,"lower"],[2048,5,32,31]];break;case 8:s=[[-15,8,3,252],[-7,9,1,508],[-5,8,1,253],[-3,9,0,509],[-2,7,0,124],[-1,4,0,10],[0,2,1,0],[2,5,0,26],[3,6,0,58],[4,3,4,4],[20,6,1,59],[22,4,4,11],[38,4,5,12],[70,5,6,27],[134,5,7,28],[262,6,7,60],[390,7,8,125],[646,6,10,61],[-16,9,32,510,"lower"],[1670,9,32,511],[2,1]];break;case 9:s=[[-31,8,4,252],[-15,9,2,508],[-11,8,2,253],[-7,9,1,509],[-5,7,1,124],[-3,4,1,10],[-1,3,1,2],[1,3,1,3],[3,5,1,26],[5,6,1,58],[7,3,5,4],[39,6,2,59],[43,4,5,11],[75,4,6,12],[139,5,7,27],[267,5,8,28],[523,6,8,60],[779,7,9,125],[1291,6,11,61],[-32,9,32,510,"lower"],[3339,9,32,511],[2,0]];break;case 10:s=[[-21,7,4,122],[-5,8,0,252],[-4,7,0,123],[-3,5,0,24],[-2,2,2,0],[2,5,0,25],[3,6,0,54],[4,7,0,124],[5,8,0,253],[6,2,6,1],[70,5,5,26],[102,6,5,55],[134,6,6,56],[198,6,7,57],[326,6,8,58],[582,6,9,59],[1094,6,10,60],[2118,7,11,125],[-22,8,32,254,"lower"],[4166,8,32,255],[2,2]];break;case 11:s=[[1,1,0,0],[2,2,1,2],[4,4,0,12],[5,4,1,13],[7,5,1,28],[9,5,2,29],[13,6,2,60],[17,7,2,122],[21,7,3,123],[29,7,4,124],[45,7,5,125],[77,7,6,126],[141,7,32,127]];break;case 12:s=[[1,1,0,0],[2,2,0,2],[3,3,1,6],[5,5,0,28],[6,5,1,29],[8,6,1,60],[10,7,0,122],[11,7,1,123],[13,7,2,124],[17,7,3,125],[25,7,4,126],[41,8,5,254],[73,8,32,255]];break;case 13:s=[[1,1,0,0],[2,3,0,4],[3,4,0,12],[4,5,0,28],[5,4,1,13],[7,3,3,5],[15,6,1,58],[17,6,2,59],[21,6,3,60],[29,6,4,61],[45,6,5,62],[77,7,6,126],[141,7,32,127]];break;case 14:s=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:s=[[-24,7,4,124],[-8,6,2,60],[-4,5,1,28],[-2,4,0,12],[-1,3,0,4],[0,1,0,0],[1,3,0,5],[2,4,0,13],[3,5,1,29],[5,6,2,61],[9,7,4,125],[-25,7,32,126,"lower"],[25,7,32,127]];break;default:throw new a(`standard table B.${t} does not exist`)}for(let t=0,e=s.length;t<e;t++){s[t]=new P(s[t])}e=new N(s,true);B[t]=e;return e}class U{constructor(t,e,s){this.data=t;this.start=e;this.end=s;this.position=e;this.shift=-1;this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end){throw new a("end of data while reading bit")}this.currentByte=this.data[this.position++];this.shift=7}const t=this.currentByte>>this.shift&1;this.shift--;return t}readBits(t){let e=0,s;for(s=t-1;s>=0;s--){e|=this.readBit()<<s}return e}byteAlign(){this.shift=-1}next(){if(this.position>=this.end){return-1}return this.data[this.position++]}}function j(t,e,s){let i=0;for(let n=0,r=e.length;n<r;n++){const r=s[e[n]];if(r){if(t===i){return r}i++}}throw new a("can't find custom Huffman table")}function H(t,e,s,i,n){const r=[];for(let t=0;t<=34;t++){const e=n.readBits(4);r.push(new P([t,e,0,0]))}const o=new N(r,false);r.length=0;for(let t=0;t<i;){const e=o.decode(n);if(e>=32){let s,i,o;switch(e){case 32:if(t===0){throw new a("no previous value in symbol ID table")}i=n.readBits(2)+3;s=r[t-1].prefixLength;break;case 33:i=n.readBits(3)+3;s=0;break;case 34:i=n.readBits(7)+11;s=0;break;default:throw new a("invalid code length in symbol ID table")}for(o=0;o<i;o++){r.push(new P([t,s,0,0]));t++}}else{r.push(new P([t,e,0,0]));t++}}n.byteAlign();const c=new N(r,false);let l=0,h,u,f;switch(t.huffmanFS){case 0:case 1:h=$(t.huffmanFS+6);break;case 3:h=j(l,e,s);l++;break;default:throw new a("invalid Huffman FS selector")}switch(t.huffmanDS){case 0:case 1:case 2:u=$(t.huffmanDS+8);break;case 3:u=j(l,e,s);l++;break;default:throw new a("invalid Huffman DS selector")}switch(t.huffmanDT){case 0:case 1:case 2:f=$(t.huffmanDT+11);break;case 3:f=j(l,e,s);l++;break;default:throw new a("invalid Huffman DT selector")}if(t.refinement){throw new a("refinement with Huffman is not supported")}return{symbolIDTable:c,tableFirstS:h,tableDeltaS:u,tableDeltaT:f}}function G(t,e,s){let i=0,n,r;switch(t.huffmanDHSelector){case 0:case 1:n=$(t.huffmanDHSelector+4);break;case 3:n=j(i,e,s);i++;break;default:throw new a("invalid Huffman DH selector")}switch(t.huffmanDWSelector){case 0:case 1:r=$(t.huffmanDWSelector+2);break;case 3:r=j(i,e,s);i++;break;default:throw new a("invalid Huffman DW selector")}let o,c;if(t.bitmapSizeSelector){o=j(i,e,s);i++}else{o=$(1)}if(t.aggregationInstancesSelector){c=j(i,e,s)}else{c=$(1)}return{tableDeltaHeight:n,tableDeltaWidth:r,tableBitmapSize:o,tableAggregateInstances:c}}function q(t,e,s){const i=[];for(let n=0;n<s;n++){const s=new Uint8Array(e);i.push(s);for(let i=0;i<e;i++){s[i]=t.readBit()}t.byteAlign()}return i}function X(t,e,s,i){const n={K:-1,Columns:e,Rows:s,BlackIs1:true,EndOfBlock:i};const r=new o.CCITTFaxDecoder(t,n);const a=[];let c,l=false;for(let t=0;t<s;t++){const t=new Uint8Array(e);a.push(t);let s=-1;for(let i=0;i<e;i++){if(s<0){c=r.readNextChar();if(c===-1){c=0;l=true}s=7}t[i]=c>>s&1;s--}}if(i&&!l){const t=5;for(let e=0;e<t;e++){if(r.readNextChar()===-1){break}}}return a}class W{parseChunks(t){return T(t)}parse(t){throw new Error("Not implemented: Jbig2Image.parse")}}e.Jbig2Image=W},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.ArithmeticDecoder=void 0;const s=[{qe:22017,nmps:1,nlps:1,switchFlag:1},{qe:13313,nmps:2,nlps:6,switchFlag:0},{qe:6145,nmps:3,nlps:9,switchFlag:0},{qe:2753,nmps:4,nlps:12,switchFlag:0},{qe:1313,nmps:5,nlps:29,switchFlag:0},{qe:545,nmps:38,nlps:33,switchFlag:0},{qe:22017,nmps:7,nlps:6,switchFlag:1},{qe:21505,nmps:8,nlps:14,switchFlag:0},{qe:18433,nmps:9,nlps:14,switchFlag:0},{qe:14337,nmps:10,nlps:14,switchFlag:0},{qe:12289,nmps:11,nlps:17,switchFlag:0},{qe:9217,nmps:12,nlps:18,switchFlag:0},{qe:7169,nmps:13,nlps:20,switchFlag:0},{qe:5633,nmps:29,nlps:21,switchFlag:0},{qe:22017,nmps:15,nlps:14,switchFlag:1},{qe:21505,nmps:16,nlps:14,switchFlag:0},{qe:20737,nmps:17,nlps:15,switchFlag:0},{qe:18433,nmps:18,nlps:16,switchFlag:0},{qe:14337,nmps:19,nlps:17,switchFlag:0},{qe:13313,nmps:20,nlps:18,switchFlag:0},{qe:12289,nmps:21,nlps:19,switchFlag:0},{qe:10241,nmps:22,nlps:19,switchFlag:0},{qe:9217,nmps:23,nlps:20,switchFlag:0},{qe:8705,nmps:24,nlps:21,switchFlag:0},{qe:7169,nmps:25,nlps:22,switchFlag:0},{qe:6145,nmps:26,nlps:23,switchFlag:0},{qe:5633,nmps:27,nlps:24,switchFlag:0},{qe:5121,nmps:28,nlps:25,switchFlag:0},{qe:4609,nmps:29,nlps:26,switchFlag:0},{qe:4353,nmps:30,nlps:27,switchFlag:0},{qe:2753,nmps:31,nlps:28,switchFlag:0},{qe:2497,nmps:32,nlps:29,switchFlag:0},{qe:2209,nmps:33,nlps:30,switchFlag:0},{qe:1313,nmps:34,nlps:31,switchFlag:0},{qe:1089,nmps:35,nlps:32,switchFlag:0},{qe:673,nmps:36,nlps:33,switchFlag:0},{qe:545,nmps:37,nlps:34,switchFlag:0},{qe:321,nmps:38,nlps:35,switchFlag:0},{qe:273,nmps:39,nlps:36,switchFlag:0},{qe:133,nmps:40,nlps:37,switchFlag:0},{qe:73,nmps:41,nlps:38,switchFlag:0},{qe:37,nmps:42,nlps:39,switchFlag:0},{qe:21,nmps:43,nlps:40,switchFlag:0},{qe:9,nmps:44,nlps:41,switchFlag:0},{qe:5,nmps:45,nlps:42,switchFlag:0},{qe:1,nmps:45,nlps:43,switchFlag:0},{qe:22017,nmps:46,nlps:46,switchFlag:0}];class i{constructor(t,e,s){this.data=t;this.bp=e;this.dataEnd=s;this.chigh=t[e];this.clow=0;this.byteIn();this.chigh=this.chigh<<7&65535|this.clow>>9&127;this.clow=this.clow<<7&65535;this.ct-=7;this.a=32768}byteIn(){const t=this.data;let e=this.bp;if(t[e]===255){if(t[e+1]>143){this.clow+=65280;this.ct=8}else{e++;this.clow+=t[e]<<9;this.ct=7;this.bp=e}}else{e++;this.clow+=e<this.dataEnd?t[e]<<8:65280;this.ct=8;this.bp=e}if(this.clow>65535){this.chigh+=this.clow>>16;this.clow&=65535}}readBit(t,e){let i=t[e]>>1,n=t[e]&1;const r=s[i];const o=r.qe;let a;let c=this.a-o;if(this.chigh<o){if(c<o){c=o;a=n;i=r.nmps}else{c=o;a=1^n;if(r.switchFlag===1){n=a}i=r.nlps}}else{this.chigh-=o;if((c&32768)!==0){this.a=c;return n}if(c<o){a=1^n;if(r.switchFlag===1){n=a}i=r.nlps}else{a=n;i=r.nmps}}do{if(this.ct===0){this.byteIn()}c<<=1;this.chigh=this.chigh<<1&65535|this.clow>>15&1;this.clow=this.clow<<1&65535;this.ct--}while((c&32768)===0);this.a=c;t[e]=i<<1|n;return a}}e.ArithmeticDecoder=i},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.JpegStream=void 0;var i=s(18);var n=s(4);var r=s(27);var o=s(2);class a extends i.DecodeStream{constructor(t,e,s){let i;while((i=t.getByte())!==-1){if(i===255){t.skip(-1);break}}super(e);this.stream=t;this.dict=t.dict;this.maybeLength=e;this.params=s}get bytes(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}readBlock(){if(this.eof){return}const t={decodeTransform:undefined,colorTransform:undefined};const e=this.dict.getArray("D","Decode");if((this.forceRGBA||this.forceRGB)&&Array.isArray(e)){const s=this.dict.get("BPC","BitsPerComponent")||8;const i=e.length;const n=new Int32Array(i);let r=false;const o=(1<<s)-1;for(let t=0;t<i;t+=2){n[t]=(e[t+1]-e[t])*256|0;n[t+1]=e[t]*o|0;if(n[t]!==256||n[t+1]!==0){r=true}}if(r){t.decodeTransform=n}}if(this.params instanceof n.Dict){const e=this.params.get("ColorTransform");if(Number.isInteger(e)){t.colorTransform=e}}const s=new r.JpegImage(t);s.parse(this.bytes);const i=s.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB,isSourcePDF:true});this.buffer=i;this.bufferLength=i.length;this.eof=true}}e.JpegStream=a},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.JpegImage=void 0;var i=s(2);var n=s(28);var r=s(3);class o extends i.BaseException{constructor(t){super(`JPEG error: ${t}`,"JpegError")}}class a extends i.BaseException{constructor(t,e){super(t,"DNLMarkerError");this.scanLines=e}}class c extends i.BaseException{constructor(t){super(t,"EOIMarkerError")}}const l=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);const h=4017;const u=799;const f=3406;const d=2276;const p=1567;const g=3784;const m=5793;const w=2896;function b(t,e){let s=0,i,n,r=16;while(r>0&&!t[r-1]){r--}const o=[{children:[],index:0}];let a=o[0],c;for(i=0;i<r;i++){for(n=0;n<t[i];n++){a=o.pop();a.children[a.index]=e[s];while(a.index>0){a=o.pop()}a.index++;o.push(a);while(o.length<=i){o.push(c={children:[],index:0});a.children[a.index]=c.children;a=c}s++}if(i+1<r){o.push(c={children:[],index:0});a.children[a.index]=c.children;a=c}}return o[0].children}function y(t,e,s){return 64*((t.blocksPerLine+1)*e+s)}function A(t,e,s,n,h,u,f,d,p,g=false){const m=s.mcusPerLine;const w=s.progressive;const b=e;let A=0,v=0;function x(){if(v>0){v--;return A>>v&1}A=t[e++];if(A===255){const i=t[e++];if(i){if(i===220&&g){e+=2;const i=(0,r.readUint16)(t,e);e+=2;if(i>0&&i!==s.scanLines){throw new a("Found DNL marker (0xFFDC) while parsing scan data",i)}}else if(i===217){if(g){const t=R*(s.precision===8?8:0);if(t>0&&Math.round(s.scanLines/t)>=5){throw new a("Found EOI marker (0xFFD9) while parsing scan data, "+"possibly caused by incorrect `scanLines` parameter",t)}}throw new c("Found EOI marker (0xFFD9) while parsing scan data")}throw new o(`unexpected marker ${(A<<8|i).toString(16)}`)}}v=7;return A>>>7}function S(t){let e=t;while(true){e=e[x()];switch(typeof e){case"number":return e;case"object":continue}throw new o("invalid huffman sequence")}}function M(t){let e=0;while(t>0){e=e<<1|x();t--}return e}function C(t){if(t===1){return x()===1?1:-1}const e=M(t);if(e>=1<<t-1){return e}return e+(-1<<t)+1}function _(t,e){const s=S(t.huffmanTableDC);const i=s===0?0:C(s);t.blockData[e]=t.pred+=i;let n=1;while(n<64){const s=S(t.huffmanTableAC);const i=s&15,r=s>>4;if(i===0){if(r<15){break}n+=16;continue}n+=r;const o=l[n];t.blockData[e+o]=C(i);n++}}function I(t,e){const s=S(t.huffmanTableDC);const i=s===0?0:C(s)<<p;t.blockData[e]=t.pred+=i}function F(t,e){t.blockData[e]|=x()<<p}let O=0;function E(t,e){if(O>0){O--;return}let s=u;const i=f;while(s<=i){const i=S(t.huffmanTableAC);const n=i&15,r=i>>4;if(n===0){if(r<15){O=M(r)+(1<<r)-1;break}s+=16;continue}s+=r;const o=l[s];t.blockData[e+o]=C(n)*(1<<p);s++}}let T=0,D;function P(t,e){let s=u;const i=f;let n=0;let r;let a;while(s<=i){const i=e+l[s];const c=t.blockData[i]<0?-1:1;switch(T){case 0:a=S(t.huffmanTableAC);r=a&15;n=a>>4;if(r===0){if(n<15){O=M(n)+(1<<n);T=4}else{n=16;T=1}}else{if(r!==1){throw new o("invalid ACn encoding")}D=C(r);T=n?2:3}continue;case 1:case 2:if(t.blockData[i]){t.blockData[i]+=c*(x()<<p)}else{n--;if(n===0){T=T===2?3:0}}break;case 3:if(t.blockData[i]){t.blockData[i]+=c*(x()<<p)}else{t.blockData[i]=D<<p;T=0}break;case 4:if(t.blockData[i]){t.blockData[i]+=c*(x()<<p)}break}s++}if(T===4){O--;if(O===0){T=0}}}let R=0;function N(t,e,s,i,n){const r=s/m|0;const o=s%m;R=r*t.v+i;const a=o*t.h+n;const c=y(t,R,a);e(t,c)}function L(t,e,s){R=s/t.blocksPerLine|0;const i=s%t.blocksPerLine;const n=y(t,R,i);e(t,n)}const B=n.length;let $,U,j,H,G;let q;if(w){if(u===0){q=d===0?I:F}else{q=d===0?E:P}}else{q=_}let X=0,W;const z=B===1?n[0].blocksPerLine*n[0].blocksPerColumn:m*s.mcusPerColumn;let V,K;while(X<=z){const s=h?Math.min(z-X,h):z;if(s>0){for(U=0;U<B;U++){n[U].pred=0}O=0;if(B===1){$=n[0];for(G=0;G<s;G++){L($,q,X);X++}}else{for(G=0;G<s;G++){for(U=0;U<B;U++){$=n[U];V=$.h;K=$.v;for(j=0;j<K;j++){for(H=0;H<V;H++){N($,q,X,j,H)}}}X++}}}v=0;W=k(t,e);if(!W){break}if(W.invalid){const t=s>0?"unexpected":"excessive";(0,i.warn)(`decodeScan - ${t} MCU data, current marker is: ${W.invalid}`);e=W.offset}if(W.marker>=65488&&W.marker<=65495){e+=2}else{break}}return e-b}function v(t,e,s){const i=t.quantizationTable,n=t.blockData;let r,a,c,l,b,y,A,v;let x,k,S,M,C,_,I,F;let O;if(!i){throw new o("missing required Quantization Table.")}for(let t=0;t<64;t+=8){x=n[e+t];k=n[e+t+1];S=n[e+t+2];M=n[e+t+3];C=n[e+t+4];_=n[e+t+5];I=n[e+t+6];F=n[e+t+7];x*=i[t];if((k|S|M|C|_|I|F)===0){O=m*x+512>>10;s[t]=O;s[t+1]=O;s[t+2]=O;s[t+3]=O;s[t+4]=O;s[t+5]=O;s[t+6]=O;s[t+7]=O;continue}k*=i[t+1];S*=i[t+2];M*=i[t+3];C*=i[t+4];_*=i[t+5];I*=i[t+6];F*=i[t+7];r=m*x+128>>8;a=m*C+128>>8;c=S;l=I;b=w*(k-F)+128>>8;v=w*(k+F)+128>>8;y=M<<4;A=_<<4;r=r+a+1>>1;a=r-a;O=c*g+l*p+128>>8;c=c*p-l*g+128>>8;l=O;b=b+A+1>>1;A=b-A;v=v+y+1>>1;y=v-y;r=r+l+1>>1;l=r-l;a=a+c+1>>1;c=a-c;O=b*d+v*f+2048>>12;b=b*f-v*d+2048>>12;v=O;O=y*u+A*h+2048>>12;y=y*h-A*u+2048>>12;A=O;s[t]=r+v;s[t+7]=r-v;s[t+1]=a+A;s[t+6]=a-A;s[t+2]=c+y;s[t+5]=c-y;s[t+3]=l+b;s[t+4]=l-b}for(let t=0;t<8;++t){x=s[t];k=s[t+8];S=s[t+16];M=s[t+24];C=s[t+32];_=s[t+40];I=s[t+48];F=s[t+56];if((k|S|M|C|_|I|F)===0){O=m*x+8192>>14;if(O<-2040){O=0}else if(O>=2024){O=255}else{O=O+2056>>4}n[e+t]=O;n[e+t+8]=O;n[e+t+16]=O;n[e+t+24]=O;n[e+t+32]=O;n[e+t+40]=O;n[e+t+48]=O;n[e+t+56]=O;continue}r=m*x+2048>>12;a=m*C+2048>>12;c=S;l=I;b=w*(k-F)+2048>>12;v=w*(k+F)+2048>>12;y=M;A=_;r=(r+a+1>>1)+4112;a=r-a;O=c*g+l*p+2048>>12;c=c*p-l*g+2048>>12;l=O;b=b+A+1>>1;A=b-A;v=v+y+1>>1;y=v-y;r=r+l+1>>1;l=r-l;a=a+c+1>>1;c=a-c;O=b*d+v*f+2048>>12;b=b*f-v*d+2048>>12;v=O;O=y*u+A*h+2048>>12;y=y*h-A*u+2048>>12;A=O;x=r+v;F=r-v;k=a+A;I=a-A;S=c+y;_=c-y;M=l+b;C=l-b;if(x<16){x=0}else if(x>=4080){x=255}else{x>>=4}if(k<16){k=0}else if(k>=4080){k=255}else{k>>=4}if(S<16){S=0}else if(S>=4080){S=255}else{S>>=4}if(M<16){M=0}else if(M>=4080){M=255}else{M>>=4}if(C<16){C=0}else if(C>=4080){C=255}else{C>>=4}if(_<16){_=0}else if(_>=4080){_=255}else{_>>=4}if(I<16){I=0}else if(I>=4080){I=255}else{I>>=4}if(F<16){F=0}else if(F>=4080){F=255}else{F>>=4}n[e+t]=x;n[e+t+8]=k;n[e+t+16]=S;n[e+t+24]=M;n[e+t+32]=C;n[e+t+40]=_;n[e+t+48]=I;n[e+t+56]=F}}function x(t,e){const s=e.blocksPerLine;const i=e.blocksPerColumn;const n=new Int16Array(64);for(let t=0;t<i;t++){for(let i=0;i<s;i++){const s=y(e,t,i);v(e,s,n)}}return e.blockData}function k(t,e,s=e){const i=t.length-1;let n=s<e?s:e;if(e>=i){return null}const o=(0,r.readUint16)(t,e);if(o>=65472&&o<=65534){return{invalid:null,marker:o,offset:e}}let a=(0,r.readUint16)(t,n);while(!(a>=65472&&a<=65534)){if(++n>=i){return null}a=(0,r.readUint16)(t,n)}return{invalid:o.toString(16),marker:a,offset:n}}class S{constructor({decodeTransform:t=null,colorTransform:e=-1}={}){this._decodeTransform=t;this._colorTransform=e}parse(t,{dnlScanLines:e=null}={}){function s(){const e=(0,r.readUint16)(t,h);h+=2;let s=h+e-2;const n=k(t,s,h);if(n?.invalid){(0,i.warn)("readDataBlock - incorrect length, current marker is: "+n.invalid);s=n.offset}const o=t.subarray(h,s);h+=o.length;return o}function n(t){const e=Math.ceil(t.samplesPerLine/8/t.maxH);const s=Math.ceil(t.scanLines/8/t.maxV);for(const i of t.components){const n=Math.ceil(Math.ceil(t.samplesPerLine/8)*i.h/t.maxH);const r=Math.ceil(Math.ceil(t.scanLines/8)*i.v/t.maxV);const o=e*i.h;const a=s*i.v;const c=64*a*(o+1);i.blockData=new Int16Array(c);i.blocksPerLine=n;i.blocksPerColumn=r}t.mcusPerLine=e;t.mcusPerColumn=s}let h=0;let u=null;let f=null;let d,p;let g=0;const m=[];const w=[],y=[];let v=(0,r.readUint16)(t,h);h+=2;if(v!==65496){throw new o("SOI not found")}v=(0,r.readUint16)(t,h);h+=2;t:while(v!==65497){let x,S,M;switch(v){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:const C=s();if(v===65504){if(C[0]===74&&C[1]===70&&C[2]===73&&C[3]===70&&C[4]===0){u={version:{major:C[5],minor:C[6]},densityUnits:C[7],xDensity:C[8]<<8|C[9],yDensity:C[10]<<8|C[11],thumbWidth:C[12],thumbHeight:C[13],thumbData:C.subarray(14,14+3*C[12]*C[13])}}}if(v===65518){if(C[0]===65&&C[1]===100&&C[2]===111&&C[3]===98&&C[4]===101){f={version:C[5]<<8|C[6],flags0:C[7]<<8|C[8],flags1:C[9]<<8|C[10],transformCode:C[11]}}}break;case 65499:const _=(0,r.readUint16)(t,h);h+=2;const I=_+h-2;let F;while(h<I){const e=t[h++];const s=new Uint16Array(64);if(e>>4===0){for(S=0;S<64;S++){F=l[S];s[F]=t[h++]}}else if(e>>4===1){for(S=0;S<64;S++){F=l[S];s[F]=(0,r.readUint16)(t,h);h+=2}}else{throw new o("DQT - invalid table spec")}m[e&15]=s}break;case 65472:case 65473:case 65474:if(d){throw new o("Only single frame JPEGs supported")}h+=2;d={};d.extended=v===65473;d.progressive=v===65474;d.precision=t[h++];const O=(0,r.readUint16)(t,h);h+=2;d.scanLines=e||O;d.samplesPerLine=(0,r.readUint16)(t,h);h+=2;d.components=[];d.componentIds={};const E=t[h++];let T=0,D=0;for(x=0;x<E;x++){const e=t[h];const s=t[h+1]>>4;const i=t[h+1]&15;if(T<s){T=s}if(D<i){D=i}const n=t[h+2];M=d.components.push({h:s,v:i,quantizationId:n,quantizationTable:null});d.componentIds[e]=M-1;h+=3}d.maxH=T;d.maxV=D;n(d);break;case 65476:const P=(0,r.readUint16)(t,h);h+=2;for(x=2;x<P;){const e=t[h++];const s=new Uint8Array(16);let i=0;for(S=0;S<16;S++,h++){i+=s[S]=t[h]}const n=new Uint8Array(i);for(S=0;S<i;S++,h++){n[S]=t[h]}x+=17+i;(e>>4===0?y:w)[e&15]=b(s,n)}break;case 65501:h+=2;p=(0,r.readUint16)(t,h);h+=2;break;case 65498:const R=++g===1&&!e;h+=2;const N=t[h++],L=[];for(x=0;x<N;x++){const e=t[h++];const s=d.componentIds[e];const i=d.components[s];i.index=e;const n=t[h++];i.huffmanTableDC=y[n>>4];i.huffmanTableAC=w[n&15];L.push(i)}const B=t[h++],$=t[h++],U=t[h++];try{const e=A(t,h,d,L,p,B,$,U>>4,U&15,R);h+=e}catch(e){if(e instanceof a){(0,i.warn)(`${e.message} -- attempting to re-parse the JPEG image.`);return this.parse(t,{dnlScanLines:e.scanLines})}else if(e instanceof c){(0,i.warn)(`${e.message} -- ignoring the rest of the image data.`);break t}throw e}break;case 65500:h+=4;break;case 65535:if(t[h]!==255){h--}break;default:const j=k(t,h-2,h-3);if(j?.invalid){(0,i.warn)("JpegImage.parse - unexpected data, current marker is: "+j.invalid);h=j.offset;break}if(!j||h>=t.length-1){(0,i.warn)("JpegImage.parse - reached the end of the image data "+"without finding an EOI marker (0xFFD9).");break t}throw new o("JpegImage.parse - unknown marker: "+v.toString(16))}v=(0,r.readUint16)(t,h);h+=2}this.width=d.samplesPerLine;this.height=d.scanLines;this.jfif=u;this.adobe=f;this.components=[];for(const t of d.components){const e=m[t.quantizationId];if(e){t.quantizationTable=e}this.components.push({index:t.index,output:x(d,t),scaleX:t.h/d.maxH,scaleY:t.v/d.maxV,blocksPerLine:t.blocksPerLine,blocksPerColumn:t.blocksPerColumn})}this.numComponents=this.components.length;return undefined}_getLinearizedBlockData(t,e,s=false){const i=this.width/t,n=this.height/e;let r,o,a,c;let l,h,u,f,d;let p;let g=0;let m;const w=this.components.length;const b=t*e*w;const y=new Uint8ClampedArray(b);const A=new Uint32Array(t);const v=4294967288;let x;for(u=0;u<w;u++){r=this.components[u];o=r.scaleX*i;a=r.scaleY*n;g=u;m=r.output;c=r.blocksPerLine+1<<3;if(o!==x){for(l=0;l<t;l++){f=0|l*o;A[l]=(f&v)<<3|f&7}x=o}for(h=0;h<e;h++){f=0|h*a;p=c*(f&v)|(f&7)<<3;for(l=0;l<t;l++){y[g]=m[p+A[l]];g+=w}}}let k=this._decodeTransform;if(!s&&w===4&&!k){k=new Int32Array([-256,255,-256,255,-256,255,-256,255])}if(k){for(u=0;u<b;){for(f=0,d=0;f<w;f++,u++,d+=2){y[u]=(y[u]*k[d]>>8)+k[d+1]}}}return y}get _isColorConversionNeeded(){if(this.adobe){return!!this.adobe.transformCode}if(this.numComponents===3){if(this._colorTransform===0){return false}else if(this.components[0].index===82&&this.components[1].index===71&&this.components[2].index===66){return false}return true}if(this._colorTransform===1){return true}return false}_convertYccToRgb(t){let e,s,i;for(let n=0,r=t.length;n<r;n+=3){e=t[n];s=t[n+1];i=t[n+2];t[n]=e-179.456+1.402*i;t[n+1]=e+135.459-.344*s-.714*i;t[n+2]=e-226.816+1.772*s}return t}_convertYccToRgba(t,e){for(let s=0,i=0,n=t.length;s<n;s+=3,i+=4){const n=t[s];const r=t[s+1];const o=t[s+2];e[i]=n-179.456+1.402*o;e[i+1]=n+135.459-.344*r-.714*o;e[i+2]=n-226.816+1.772*r;e[i+3]=255}return e}_convertYcckToRgb(t){let e,s,i,n;let r=0;for(let o=0,a=t.length;o<a;o+=4){e=t[o];s=t[o+1];i=t[o+2];n=t[o+3];t[r++]=-122.67195406894+s*(-660635669420364e-19*s+.000437130475926232*i-54080610064599e-18*e+.00048449797120281*n-.154362151871126)+i*(-.000957964378445773*i+.000817076911346625*e-.00477271405408747*n+1.53380253221734)+e*(.000961250184130688*e-.00266257332283933*n+.48357088451265)+n*(-.000336197177618394*n+.484791561490776);t[r++]=107.268039397724+s*(219927104525741e-19*s-.000640992018297945*i+.000659397001245577*e+.000426105652938837*n-.176491792462875)+i*(-.000778269941513683*i+.00130872261408275*e+.000770482631801132*n-.151051492775562)+e*(.00126935368114843*e-.00265090189010898*n+.25802910206845)+n*(-.000318913117588328*n-.213742400323665);t[r++]=-20.810012546947+s*(-.000570115196973677*s-263409051004589e-19*i+.0020741088115012*e-.00288260236853442*n+.814272968359295)+i*(-153496057440975e-19*i-.000132689043961446*e+.000560833691242812*n-.195152027534049)+e*(.00174418132927582*e-.00255243321439347*n+.116935020465145)+n*(-.000343531996510555*n+.24165260232407)}return t.subarray(0,r)}_convertYcckToRgba(t){for(let e=0,s=t.length;e<s;e+=4){const s=t[e];const i=t[e+1];const n=t[e+2];const r=t[e+3];t[e]=-122.67195406894+i*(-660635669420364e-19*i+.000437130475926232*n-54080610064599e-18*s+.00048449797120281*r-.154362151871126)+n*(-.000957964378445773*n+.000817076911346625*s-.00477271405408747*r+1.53380253221734)+s*(.000961250184130688*s-.00266257332283933*r+.48357088451265)+r*(-.000336197177618394*r+.484791561490776);t[e+1]=107.268039397724+i*(219927104525741e-19*i-.000640992018297945*n+.000659397001245577*s+.000426105652938837*r-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*s+.000770482631801132*r-.151051492775562)+s*(.00126935368114843*s-.00265090189010898*r+.25802910206845)+r*(-.000318913117588328*r-.213742400323665);t[e+2]=-20.810012546947+i*(-.000570115196973677*i-263409051004589e-19*n+.0020741088115012*s-.00288260236853442*r+.814272968359295)+n*(-153496057440975e-19*n-.000132689043961446*s+.000560833691242812*r-.195152027534049)+s*(.00174418132927582*s-.00255243321439347*r+.116935020465145)+r*(-.000343531996510555*r+.24165260232407);t[e+3]=255}return t}_convertYcckToCmyk(t){let e,s,i;for(let n=0,r=t.length;n<r;n+=4){e=t[n];s=t[n+1];i=t[n+2];t[n]=434.456-e-1.402*i;t[n+1]=119.541-e+.344*s+.714*i;t[n+2]=481.816-e-1.772*s}return t}_convertCmykToRgb(t){let e,s,i,n;let r=0;for(let o=0,a=t.length;o<a;o+=4){e=t[o];s=t[o+1];i=t[o+2];n=t[o+3];t[r++]=255+e*(-6747147073602441e-20*e+.0008379262121013727*s+.0002894718188643294*i+.003264231057537806*n-1.1185611867203937)+s*(26374107616089405e-21*s-8626949158638572e-20*i-.0002748769067499491*n-.02155688794978967)+i*(-3878099212869363e-20*i-.0003267808279485286*n+.0686742238595345)-n*(.0003361971776183937*n+.7430659151342254);t[r++]=255+e*(.00013596372813588848*e+.000924537132573585*s+.00010567359618683593*i+.0004791864687436512*n-.3109689587515875)+s*(-.00023545346108370344*s+.0002702845253534714*i+.0020200308977307156*n-.7488052167015494)+i*(6834815998235662e-20*i+.00015168452363460973*n-.09751927774728933)-n*(.0003189131175883281*n+.7364883807733168);t[r++]=255+e*(13598650411385307e-21*e+.00012423956175490851*s+.0004751985097583589*i-36729317476630422e-22*n-.05562186980264034)+s*(.00016141380598724676*s+.0009692239130725186*i+.0007782692450036253*n-.44015232367526463)+i*(5.068882914068769e-7*i+.0017778369011375071*n-.7591454649749609)-n*(.0003435319965105553*n+.7063770186160144)}return t.subarray(0,r)}_convertCmykToRgba(t){for(let e=0,s=t.length;e<s;e+=4){const s=t[e];const i=t[e+1];const n=t[e+2];const r=t[e+3];t[e]=255+s*(-6747147073602441e-20*s+.0008379262121013727*i+.0002894718188643294*n+.003264231057537806*r-1.1185611867203937)+i*(26374107616089405e-21*i-8626949158638572e-20*n-.0002748769067499491*r-.02155688794978967)+n*(-3878099212869363e-20*n-.0003267808279485286*r+.0686742238595345)-r*(.0003361971776183937*r+.7430659151342254);t[e+1]=255+s*(.00013596372813588848*s+.000924537132573585*i+.00010567359618683593*n+.0004791864687436512*r-.3109689587515875)+i*(-.00023545346108370344*i+.0002702845253534714*n+.0020200308977307156*r-.7488052167015494)+n*(6834815998235662e-20*n+.00015168452363460973*r-.09751927774728933)-r*(.0003189131175883281*r+.7364883807733168);t[e+2]=255+s*(13598650411385307e-21*s+.00012423956175490851*i+.0004751985097583589*n-36729317476630422e-22*r-.05562186980264034)+i*(.00016141380598724676*i+.0009692239130725186*n+.0007782692450036253*r-.44015232367526463)+n*(5.068882914068769e-7*n+.0017778369011375071*r-.7591454649749609)-r*(.0003435319965105553*r+.7063770186160144);t[e+3]=255}return t}getData({width:t,height:e,forceRGBA:s=false,forceRGB:i=false,isSourcePDF:r=false}){if(this.numComponents>4){throw new o("Unsupported color mode")}const a=this._getLinearizedBlockData(t,e,r);if(this.numComponents===1&&(s||i)){const t=a.length*(s?4:3);const e=new Uint8ClampedArray(t);let i=0;if(s){(0,n.grayToRGBA)(a,new Uint32Array(e.buffer))}else{for(const t of a){e[i++]=t;e[i++]=t;e[i++]=t}}return e}else if(this.numComponents===3&&this._isColorConversionNeeded){if(s){const t=new Uint8ClampedArray(a.length/3*4);return this._convertYccToRgba(a,t)}return this._convertYccToRgb(a)}else if(this.numComponents===4){if(this._isColorConversionNeeded){if(s){return this._convertYcckToRgba(a)}if(i){return this._convertYcckToRgb(a)}return this._convertYcckToCmyk(a)}else if(s){return this._convertCmykToRgba(a)}else if(i){return this._convertCmykToRgb(a)}}return a}}e.JpegImage=S},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.convertBlackAndWhiteToRGBA=r;e.convertToRGBA=n;e.grayToRGBA=a;var i=s(2);function n(t){switch(t.kind){case i.ImageKind.GRAYSCALE_1BPP:return r(t);case i.ImageKind.RGB_24BPP:return o(t)}return null}function r({src:t,srcPos:e=0,dest:s,width:n,height:r,nonBlackColor:o=4294967295,inverseDecode:a=false}){const c=i.FeatureTest.isLittleEndian?4278190080:255;const[l,h]=a?[o,c]:[c,o];const u=n>>3;const f=n&7;const d=t.length;s=new Uint32Array(s.buffer);let p=0;for(let i=0;i<r;i++){for(const i=e+u;e<i;e++){const i=e<d?t[e]:255;s[p++]=i&128?h:l;s[p++]=i&64?h:l;s[p++]=i&32?h:l;s[p++]=i&16?h:l;s[p++]=i&8?h:l;s[p++]=i&4?h:l;s[p++]=i&2?h:l;s[p++]=i&1?h:l}if(f===0){continue}const i=e<d?t[e++]:255;for(let t=0;t<f;t++){s[p++]=i&1<<7-t?h:l}}return{srcPos:e,destPos:p}}function o({src:t,srcPos:e=0,dest:s,destPos:n=0,width:r,height:o}){let a=0;const c=t.length>>2;const l=new Uint32Array(t.buffer,e,c);if(i.FeatureTest.isLittleEndian){for(;a<c-2;a+=3,n+=4){const t=l[a];const e=l[a+1];const i=l[a+2];s[n]=t|4278190080;s[n+1]=t>>>24|e<<8|4278190080;s[n+2]=e>>>16|i<<16|4278190080;s[n+3]=i>>>8|4278190080}for(let e=a*4,i=t.length;e<i;e+=3){s[n++]=t[e]|t[e+1]<<8|t[e+2]<<16|4278190080}}else{for(;a<c-2;a+=3,n+=4){const t=l[a];const e=l[a+1];const i=l[a+2];s[n]=t|255;s[n+1]=t<<24|e>>>8|255;s[n+2]=e<<16|i>>>16|255;s[n+3]=i<<8|255}for(let e=a*4,i=t.length;e<i;e+=3){s[n++]=t[e]<<24|t[e+1]<<16|t[e+2]<<8|255}}return{srcPos:e,destPos:n}}function a(t,e){if(i.FeatureTest.isLittleEndian){for(let s=0,i=t.length;s<i;s++){e[s]=t[s]*65793|4278190080}}else{for(let s=0,i=t.length;s<i;s++){e[s]=t[s]*16843008|255}}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.JpxStream=void 0;var i=s(18);var n=s(30);var r=s(2);class o extends i.DecodeStream{constructor(t,e,s){super(e);this.stream=t;this.dict=t.dict;this.maybeLength=e;this.params=s}get bytes(){return(0,r.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(t){}readBlock(){if(this.eof){return}const t=new n.JpxImage;t.parse(this.bytes);const e=t.width;const s=t.height;const i=t.componentsCount;const r=t.tiles.length;if(r===1){this.buffer=t.tiles[0].items}else{const n=new Uint8ClampedArray(e*s*i);for(let s=0;s<r;s++){const r=t.tiles[s];const o=r.width;const a=r.height;const c=r.left;const l=r.top;const h=r.items;let u=0;let f=(e*l+c)*i;const d=e*i;const p=o*i;for(let t=0;t<a;t++){const t=h.subarray(u,u+p);n.set(t,f);u+=p;f+=d}}this.buffer=n}this.bufferLength=this.buffer.length;this.eof=true}}e.JpxStream=o},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.JpxImage=void 0;var i=s(2);var n=s(3);var r=s(25);class o extends i.BaseException{constructor(t){super(`JPX error: ${t}`,"JpxError")}}const a={LL:0,LH:1,HL:1,HH:2};class c{constructor(){this.failOnCorruptedImage=false}parse(t){const e=(0,n.readUint16)(t,0);if(e===65359){this.parseCodestream(t,0,t.length);return}const s=t.length;let r=0;while(r<s){let e=8;let a=(0,n.readUint32)(t,r);const c=(0,n.readUint32)(t,r+4);r+=e;if(a===1){a=(0,n.readUint32)(t,r)*4294967296+(0,n.readUint32)(t,r+4);r+=8;e+=8}if(a===0){a=s-r+e}if(a<e){throw new o("Invalid box field size")}const l=a-e;let h=true;switch(c){case 1785737832:h=false;break;case 1668246642:const e=t[r];if(e===1){const e=(0,n.readUint32)(t,r+3);switch(e){case 16:case 17:case 18:break;default:(0,i.warn)("Unknown colorspace "+e);break}}else if(e===2){(0,i.info)("ICC profile not supported")}break;case 1785737827:this.parseCodestream(t,r,r+l);break;case 1783636e3:if((0,n.readUint32)(t,r)!==218793738){(0,i.warn)("Invalid JP2 signature")}break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:const s=String.fromCharCode(c>>24&255,c>>16&255,c>>8&255,c&255);(0,i.warn)(`Unsupported header type ${c} (${s}).`);break}if(h){r+=l}}}parseImageProperties(t){let e=t.getByte();while(e>=0){const s=e;e=t.getByte();const i=s<<8|e;if(i===65361){t.skip(4);const e=t.getInt32()>>>0;const s=t.getInt32()>>>0;const i=t.getInt32()>>>0;const n=t.getInt32()>>>0;t.skip(16);const r=t.getUint16();this.width=e-i;this.height=s-n;this.componentsCount=r;this.bitsPerComponent=8;return}}throw new o("No size marker found in JPX stream")}parseCodestream(t,e,s){const r={};let a=false;try{let o=e;while(o+1<s){const e=(0,n.readUint16)(t,o);o+=2;let s=0,c,u,f,d,p,g;switch(e){case 65359:r.mainHeader=true;break;case 65497:break;case 65361:s=(0,n.readUint16)(t,o);const m={};m.Xsiz=(0,n.readUint32)(t,o+4);m.Ysiz=(0,n.readUint32)(t,o+8);m.XOsiz=(0,n.readUint32)(t,o+12);m.YOsiz=(0,n.readUint32)(t,o+16);m.XTsiz=(0,n.readUint32)(t,o+20);m.YTsiz=(0,n.readUint32)(t,o+24);m.XTOsiz=(0,n.readUint32)(t,o+28);m.YTOsiz=(0,n.readUint32)(t,o+32);const w=(0,n.readUint16)(t,o+36);m.Csiz=w;const b=[];c=o+38;for(let e=0;e<w;e++){const e={precision:(t[c]&127)+1,isSigned:!!(t[c]&128),XRsiz:t[c+1],YRsiz:t[c+2]};c+=3;l(e,m);b.push(e)}r.SIZ=m;r.components=b;h(r,b);r.QCC=[];r.COC=[];break;case 65372:s=(0,n.readUint16)(t,o);const y={};c=o+2;u=t[c++];switch(u&31){case 0:d=8;p=true;break;case 1:d=16;p=false;break;case 2:d=16;p=true;break;default:throw new Error("Invalid SQcd value "+u)}y.noQuantization=d===8;y.scalarExpounded=p;y.guardBits=u>>5;f=[];while(c<s+o){const e={};if(d===8){e.epsilon=t[c++]>>3;e.mu=0}else{e.epsilon=t[c]>>3;e.mu=(t[c]&7)<<8|t[c+1];c+=2}f.push(e)}y.SPqcds=f;if(r.mainHeader){r.QCD=y}else{r.currentTile.QCD=y;r.currentTile.QCC=[]}break;case 65373:s=(0,n.readUint16)(t,o);const A={};c=o+2;let v;if(r.SIZ.Csiz<257){v=t[c++]}else{v=(0,n.readUint16)(t,c);c+=2}u=t[c++];switch(u&31){case 0:d=8;p=true;break;case 1:d=16;p=false;break;case 2:d=16;p=true;break;default:throw new Error("Invalid SQcd value "+u)}A.noQuantization=d===8;A.scalarExpounded=p;A.guardBits=u>>5;f=[];while(c<s+o){const e={};if(d===8){e.epsilon=t[c++]>>3;e.mu=0}else{e.epsilon=t[c]>>3;e.mu=(t[c]&7)<<8|t[c+1];c+=2}f.push(e)}A.SPqcds=f;if(r.mainHeader){r.QCC[v]=A}else{r.currentTile.QCC[v]=A}break;case 65362:s=(0,n.readUint16)(t,o);const S={};c=o+2;const M=t[c++];S.entropyCoderWithCustomPrecincts=!!(M&1);S.sopMarkerUsed=!!(M&2);S.ephMarkerUsed=!!(M&4);S.progressionOrder=t[c++];S.layersCount=(0,n.readUint16)(t,c);c+=2;S.multipleComponentTransform=t[c++];S.decompositionLevelsCount=t[c++];S.xcb=(t[c++]&15)+2;S.ycb=(t[c++]&15)+2;const C=t[c++];S.selectiveArithmeticCodingBypass=!!(C&1);S.resetContextProbabilities=!!(C&2);S.terminationOnEachCodingPass=!!(C&4);S.verticallyStripe=!!(C&8);S.predictableTermination=!!(C&16);S.segmentationSymbolUsed=!!(C&32);S.reversibleTransformation=t[c++];if(S.entropyCoderWithCustomPrecincts){const e=[];while(c<s+o){const s=t[c++];e.push({PPx:s&15,PPy:s>>4})}S.precinctsSizes=e}const I=[];if(S.selectiveArithmeticCodingBypass){I.push("selectiveArithmeticCodingBypass")}if(S.terminationOnEachCodingPass){I.push("terminationOnEachCodingPass")}if(S.verticallyStripe){I.push("verticallyStripe")}if(S.predictableTermination){I.push("predictableTermination")}if(I.length>0){a=true;(0,i.warn)(`JPX: Unsupported COD options (${I.join(", ")}).`)}if(r.mainHeader){r.COD=S}else{r.currentTile.COD=S;r.currentTile.COC=[]}break;case 65424:s=(0,n.readUint16)(t,o);g={};g.index=(0,n.readUint16)(t,o+2);g.length=(0,n.readUint32)(t,o+4);g.dataEnd=g.length+o-2;g.partIndex=t[o+8];g.partsCount=t[o+9];r.mainHeader=false;if(g.partIndex===0){g.COD=r.COD;g.COC=r.COC.slice(0);g.QCD=r.QCD;g.QCC=r.QCC.slice(0)}r.currentTile=g;break;case 65427:g=r.currentTile;if(g.partIndex===0){_(r,g.index);x(r)}s=g.dataEnd-o;k(r,t,o,s);break;case 65363:(0,i.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:s=(0,n.readUint16)(t,o);break;default:throw new Error("Unknown codestream code: "+e.toString(16))}o+=s}}catch(t){if(a||this.failOnCorruptedImage){throw new o(t.message)}else{(0,i.warn)(`JPX: Trying to recover from: "${t.message}".`)}}this.tiles=C(r);this.width=r.SIZ.Xsiz-r.SIZ.XOsiz;this.height=r.SIZ.Ysiz-r.SIZ.YOsiz;this.componentsCount=r.SIZ.Csiz}}e.JpxImage=c;function l(t,e){t.x0=Math.ceil(e.XOsiz/t.XRsiz);t.x1=Math.ceil(e.Xsiz/t.XRsiz);t.y0=Math.ceil(e.YOsiz/t.YRsiz);t.y1=Math.ceil(e.Ysiz/t.YRsiz);t.width=t.x1-t.x0;t.height=t.y1-t.y0}function h(t,e){const s=t.SIZ;const i=[];let n;const r=Math.ceil((s.Xsiz-s.XTOsiz)/s.XTsiz);const o=Math.ceil((s.Ysiz-s.YTOsiz)/s.YTsiz);for(let t=0;t<o;t++){for(let e=0;e<r;e++){n={};n.tx0=Math.max(s.XTOsiz+e*s.XTsiz,s.XOsiz);n.ty0=Math.max(s.YTOsiz+t*s.YTsiz,s.YOsiz);n.tx1=Math.min(s.XTOsiz+(e+1)*s.XTsiz,s.Xsiz);n.ty1=Math.min(s.YTOsiz+(t+1)*s.YTsiz,s.Ysiz);n.width=n.tx1-n.tx0;n.height=n.ty1-n.ty0;n.components=[];i.push(n)}}t.tiles=i;const a=s.Csiz;for(let t=0,s=a;t<s;t++){const s=e[t];for(let e=0,r=i.length;e<r;e++){const r={};n=i[e];r.tcx0=Math.ceil(n.tx0/s.XRsiz);r.tcy0=Math.ceil(n.ty0/s.YRsiz);r.tcx1=Math.ceil(n.tx1/s.XRsiz);r.tcy1=Math.ceil(n.ty1/s.YRsiz);r.width=r.tcx1-r.tcx0;r.height=r.tcy1-r.tcy0;n.components[t]=r}}}function u(t,e,s){const i=e.codingStyleParameters;const n={};if(!i.entropyCoderWithCustomPrecincts){n.PPx=15;n.PPy=15}else{n.PPx=i.precinctsSizes[s].PPx;n.PPy=i.precinctsSizes[s].PPy}n.xcb_=s>0?Math.min(i.xcb,n.PPx-1):Math.min(i.xcb,n.PPx);n.ycb_=s>0?Math.min(i.ycb,n.PPy-1):Math.min(i.ycb,n.PPy);return n}function f(t,e,s){const i=1<<s.PPx;const n=1<<s.PPy;const r=e.resLevel===0;const o=1<<s.PPx+(r?0:-1);const a=1<<s.PPy+(r?0:-1);const c=e.trx1>e.trx0?Math.ceil(e.trx1/i)-Math.floor(e.trx0/i):0;const l=e.try1>e.try0?Math.ceil(e.try1/n)-Math.floor(e.try0/n):0;const h=c*l;e.precinctParameters={precinctWidth:i,precinctHeight:n,numprecinctswide:c,numprecinctshigh:l,numprecincts:h,precinctWidthInSubband:o,precinctHeightInSubband:a}}function d(t,e,s){const i=s.xcb_;const n=s.ycb_;const r=1<<i;const o=1<<n;const a=e.tbx0>>i;const c=e.tby0>>n;const l=e.tbx1+r-1>>i;const h=e.tby1+o-1>>n;const u=e.resolution.precinctParameters;const f=[];const d=[];let p,g,m,w;for(g=c;g<h;g++){for(p=a;p<l;p++){m={cbx:p,cby:g,tbx0:r*p,tby0:o*g,tbx1:r*(p+1),tby1:o*(g+1)};m.tbx0_=Math.max(e.tbx0,m.tbx0);m.tby0_=Math.max(e.tby0,m.tby0);m.tbx1_=Math.min(e.tbx1,m.tbx1);m.tby1_=Math.min(e.tby1,m.tby1);const t=Math.floor((m.tbx0_-e.tbx0)/u.precinctWidthInSubband);const s=Math.floor((m.tby0_-e.tby0)/u.precinctHeightInSubband);w=t+s*u.numprecinctswide;m.precinctNumber=w;m.subbandType=e.type;m.Lblock=3;if(m.tbx1_<=m.tbx0_||m.tby1_<=m.tby0_){continue}f.push(m);let i=d[w];if(i!==undefined){if(p<i.cbxMin){i.cbxMin=p}else if(p>i.cbxMax){i.cbxMax=p}if(g<i.cbyMin){i.cbxMin=g}else if(g>i.cbyMax){i.cbyMax=g}}else{d[w]=i={cbxMin:p,cbyMin:g,cbxMax:p,cbyMax:g}}m.precinct=i}}e.codeblockParameters={codeblockWidth:i,codeblockHeight:n,numcodeblockwide:l-a+1,numcodeblockhigh:h-c+1};e.codeblocks=f;e.precincts=d}function p(t,e,s){const i=[];const n=t.subbands;for(let t=0,s=n.length;t<s;t++){const s=n[t];const r=s.codeblocks;for(let t=0,s=r.length;t<s;t++){const s=r[t];if(s.precinctNumber!==e){continue}i.push(s)}}return{layerNumber:s,codeblocks:i}}function g(t){const e=t.SIZ;const s=t.currentTile.index;const i=t.tiles[s];const n=i.codingStyleDefaultParameters.layersCount;const r=e.Csiz;let a=0;for(let t=0;t<r;t++){a=Math.max(a,i.components[t].codingStyleParameters.decompositionLevelsCount)}let c=0,l=0,h=0,u=0;this.nextPacket=function t(){for(;c<n;c++){for(;l<=a;l++){for(;h<r;h++){const t=i.components[h];if(l>t.codingStyleParameters.decompositionLevelsCount){continue}const e=t.resolutions[l];const s=e.precinctParameters.numprecincts;for(;u<s;){const t=p(e,u,c);u++;return t}u=0}h=0}l=0}throw new o("Out of packets")}}function m(t){const e=t.SIZ;const s=t.currentTile.index;const i=t.tiles[s];const n=i.codingStyleDefaultParameters.layersCount;const r=e.Csiz;let a=0;for(let t=0;t<r;t++){a=Math.max(a,i.components[t].codingStyleParameters.decompositionLevelsCount)}let c=0,l=0,h=0,u=0;this.nextPacket=function t(){for(;c<=a;c++){for(;l<n;l++){for(;h<r;h++){const t=i.components[h];if(c>t.codingStyleParameters.decompositionLevelsCount){continue}const e=t.resolutions[c];const s=e.precinctParameters.numprecincts;for(;u<s;){const t=p(e,u,l);u++;return t}u=0}h=0}l=0}throw new o("Out of packets")}}function w(t){const e=t.SIZ;const s=t.currentTile.index;const i=t.tiles[s];const n=i.codingStyleDefaultParameters.layersCount;const r=e.Csiz;let a,c,l,h;let u=0;for(l=0;l<r;l++){const t=i.components[l];u=Math.max(u,t.codingStyleParameters.decompositionLevelsCount)}const f=new Int32Array(u+1);for(c=0;c<=u;++c){let t=0;for(l=0;l<r;++l){const e=i.components[l].resolutions;if(c<e.length){t=Math.max(t,e[c].precinctParameters.numprecincts)}}f[c]=t}a=0;c=0;l=0;h=0;this.nextPacket=function t(){for(;c<=u;c++){for(;h<f[c];h++){for(;l<r;l++){const t=i.components[l];if(c>t.codingStyleParameters.decompositionLevelsCount){continue}const e=t.resolutions[c];const s=e.precinctParameters.numprecincts;if(h>=s){continue}for(;a<n;){const t=p(e,h,a);a++;return t}a=0}l=0}h=0}throw new o("Out of packets")}}function b(t){const e=t.SIZ;const s=t.currentTile.index;const i=t.tiles[s];const n=i.codingStyleDefaultParameters.layersCount;const r=e.Csiz;const a=v(i);const c=a;let l=0,h=0,u=0,f=0,d=0;this.nextPacket=function t(){for(;d<c.maxNumHigh;d++){for(;f<c.maxNumWide;f++){for(;u<r;u++){const t=i.components[u];const e=t.codingStyleParameters.decompositionLevelsCount;for(;h<=e;h++){const e=t.resolutions[h];const s=a.components[u].resolutions[h];const i=A(f,d,s,c,e);if(i===null){continue}for(;l<n;){const t=p(e,i,l);l++;return t}l=0}h=0}u=0}f=0}throw new o("Out of packets")}}function y(t){const e=t.SIZ;const s=t.currentTile.index;const i=t.tiles[s];const n=i.codingStyleDefaultParameters.layersCount;const r=e.Csiz;const a=v(i);let c=0,l=0,h=0,u=0,f=0;this.nextPacket=function t(){for(;h<r;++h){const t=i.components[h];const e=a.components[h];const s=t.codingStyleParameters.decompositionLevelsCount;for(;f<e.maxNumHigh;f++){for(;u<e.maxNumWide;u++){for(;l<=s;l++){const s=t.resolutions[l];const i=e.resolutions[l];const r=A(u,f,i,e,s);if(r===null){continue}for(;c<n;){const t=p(s,r,c);c++;return t}c=0}l=0}u=0}f=0}throw new o("Out of packets")}}function A(t,e,s,i,n){const r=t*i.minWidth;const o=e*i.minHeight;if(r%s.width!==0||o%s.height!==0){return null}const a=o/s.width*n.precinctParameters.numprecinctswide;return r/s.height+a}function v(t){const e=t.components.length;let s=Number.MAX_VALUE;let i=Number.MAX_VALUE;let n=0;let r=0;const o=new Array(e);for(let a=0;a<e;a++){const e=t.components[a];const c=e.codingStyleParameters.decompositionLevelsCount;const l=new Array(c+1);let h=Number.MAX_VALUE;let u=Number.MAX_VALUE;let f=0;let d=0;let p=1;for(let t=c;t>=0;--t){const s=e.resolutions[t];const i=p*s.precinctParameters.precinctWidth;const n=p*s.precinctParameters.precinctHeight;h=Math.min(h,i);u=Math.min(u,n);f=Math.max(f,s.precinctParameters.numprecinctswide);d=Math.max(d,s.precinctParameters.numprecinctshigh);l[t]={width:i,height:n};p<<=1}s=Math.min(s,h);i=Math.min(i,u);n=Math.max(n,f);r=Math.max(r,d);o[a]={resolutions:l,minWidth:h,minHeight:u,maxNumWide:f,maxNumHigh:d}}return{components:o,minWidth:s,minHeight:i,maxNumWide:n,maxNumHigh:r}}function x(t){const e=t.SIZ;const s=t.currentTile.index;const i=t.tiles[s];const n=e.Csiz;for(let e=0;e<n;e++){const s=i.components[e];const n=s.codingStyleParameters.decompositionLevelsCount;const r=[];const o=[];for(let e=0;e<=n;e++){const i=u(t,s,e);const a={};const c=1<<n-e;a.trx0=Math.ceil(s.tcx0/c);a.try0=Math.ceil(s.tcy0/c);a.trx1=Math.ceil(s.tcx1/c);a.try1=Math.ceil(s.tcy1/c);a.resLevel=e;f(t,a,i);r.push(a);let l;if(e===0){l={};l.type="LL";l.tbx0=Math.ceil(s.tcx0/c);l.tby0=Math.ceil(s.tcy0/c);l.tbx1=Math.ceil(s.tcx1/c);l.tby1=Math.ceil(s.tcy1/c);l.resolution=a;d(t,l,i);o.push(l);a.subbands=[l]}else{const r=1<<n-e+1;const c=[];l={};l.type="HL";l.tbx0=Math.ceil(s.tcx0/r-.5);l.tby0=Math.ceil(s.tcy0/r);l.tbx1=Math.ceil(s.tcx1/r-.5);l.tby1=Math.ceil(s.tcy1/r);l.resolution=a;d(t,l,i);o.push(l);c.push(l);l={};l.type="LH";l.tbx0=Math.ceil(s.tcx0/r);l.tby0=Math.ceil(s.tcy0/r-.5);l.tbx1=Math.ceil(s.tcx1/r);l.tby1=Math.ceil(s.tcy1/r-.5);l.resolution=a;d(t,l,i);o.push(l);c.push(l);l={};l.type="HH";l.tbx0=Math.ceil(s.tcx0/r-.5);l.tby0=Math.ceil(s.tcy0/r-.5);l.tbx1=Math.ceil(s.tcx1/r-.5);l.tby1=Math.ceil(s.tcy1/r-.5);l.resolution=a;d(t,l,i);o.push(l);c.push(l);a.subbands=c}}s.resolutions=r;s.subbands=o}const r=i.codingStyleDefaultParameters.progressionOrder;switch(r){case 0:i.packetsIterator=new g(t);break;case 1:i.packetsIterator=new m(t);break;case 2:i.packetsIterator=new w(t);break;case 3:i.packetsIterator=new b(t);break;case 4:i.packetsIterator=new y(t);break;default:throw new o(`Unsupported progression order ${r}`)}}function k(t,e,s,i){let r=0;let a,c=0,l=false;function h(t){while(c<t){const t=e[s+r];r++;if(l){a=a<<7|t;c+=7;l=false}else{a=a<<8|t;c+=8}if(t===255){l=true}}c-=t;return a>>>c&(1<<t)-1}function u(t){if(e[s+r-1]===255&&e[s+r]===t){f(1);return true}else if(e[s+r]===255&&e[s+r+1]===t){f(2);return true}return false}function f(t){r+=t}function d(){c=0;if(l){r++;l=false}}function p(){if(h(1)===0){return 1}if(h(1)===0){return 2}let t=h(2);if(t<3){return t+3}t=h(5);if(t<31){return t+6}t=h(7);return t+37}const g=t.currentTile.index;const m=t.tiles[g];const w=t.COD.sopMarkerUsed;const b=t.COD.ephMarkerUsed;const y=m.packetsIterator;while(r<i){d();if(w&&u(145)){f(4)}const t=y.nextPacket();if(!h(1)){continue}const i=t.layerNumber,a=[];let c;for(let e=0,s=t.codeblocks.length;e<s;e++){c=t.codeblocks[e];let s=c.precinct;const r=c.cbx-s.cbxMin;const l=c.cby-s.cbyMin;let u=false;let f=false;let d,g;if(c.included!==undefined){u=!!h(1)}else{s=c.precinct;let t;if(s.inclusionTree!==undefined){t=s.inclusionTree}else{const e=s.cbxMax-s.cbxMin+1;const n=s.cbyMax-s.cbyMin+1;t=new F(e,n,i);g=new I(e,n);s.inclusionTree=t;s.zeroBitPlanesTree=g;for(let t=0;t<i;t++){if(h(1)!==0){throw new o("Invalid tag tree")}}}if(t.reset(r,l,i)){while(true){if(h(1)){d=!t.nextLevel();if(d){c.included=true;u=f=true;break}}else{t.incrementValue(i);break}}}}if(!u){continue}if(f){g=s.zeroBitPlanesTree;g.reset(r,l);while(true){if(h(1)){d=!g.nextLevel();if(d){break}}else{g.incrementValue()}}c.zeroBitPlanes=g.value}const m=p();while(h(1)){c.Lblock++}const w=(0,n.log2)(m);const b=(m<1<<w?w-1:w)+c.Lblock;const y=h(b);a.push({codeblock:c,codingpasses:m,dataLength:y})}d();if(b){u(146)}while(a.length>0){const t=a.shift();c=t.codeblock;if(c.data===undefined){c.data=[]}c.data.push({data:e,start:s+r,end:s+r+t.dataLength,codingpasses:t.codingpasses});r+=t.dataLength}}return r}function S(t,e,s,i,n,o,a,c,l){const h=i.tbx0;const u=i.tby0;const f=i.tbx1-i.tbx0;const d=i.codeblocks;const p=i.type.charAt(0)==="H"?1:0;const g=i.type.charAt(1)==="H"?e:0;for(let s=0,m=d.length;s<m;++s){const m=d[s];const w=m.tbx1_-m.tbx0_;const b=m.tby1_-m.tby0_;if(w===0||b===0){continue}if(m.data===undefined){continue}const y=new O(w,b,m.subbandType,m.zeroBitPlanes,o);let A=2;const v=m.data;let x=0,k=0;let S,M,C;for(S=0,M=v.length;S<M;S++){C=v[S];x+=C.end-C.start;k+=C.codingpasses}const _=new Uint8Array(x);let I=0;for(S=0,M=v.length;S<M;S++){C=v[S];const t=C.data.subarray(C.start,C.end);_.set(t,I);I+=t.length}const F=new r.ArithmeticDecoder(_,0,x);y.setDecoder(F);for(S=0;S<k;S++){switch(A){case 0:y.runSignificancePropagationPass();break;case 1:y.runMagnitudeRefinementPass();break;case 2:y.runCleanupPass();if(c){y.checkSegmentationSymbol()}break}if(l){y.reset()}A=(A+1)%3}let E=m.tbx0_-h+(m.tby0_-u)*f;const T=y.coefficentsSign;const D=y.coefficentsMagnitude;const P=y.bitsDecoded;const R=a?0:.5;let N,L,B;I=0;const $=i.type!=="LL";for(S=0;S<b;S++){const s=E/f|0;const i=2*s*(e-f)+p+g;for(N=0;N<w;N++){L=D[I];if(L!==0){L=(L+R)*n;if(T[I]!==0){L=-L}B=P[I];const e=$?i+(E<<1):E;t[e]=a&&B>=o?L:L*(1<<o-B)}E++;I++}E+=f-w}}}function M(t,e,s){const i=e.components[s];const n=i.codingStyleParameters;const r=i.quantizationParameters;const o=n.decompositionLevelsCount;const c=r.SPqcds;const l=r.scalarExpounded;const h=r.guardBits;const u=n.segmentationSymbolUsed;const f=n.resetContextProbabilities;const d=t.components[s].precision;const p=n.reversibleTransformation;const g=p?new D:new T;const m=[];let w=0;for(let t=0;t<=o;t++){const e=i.resolutions[t];const s=e.trx1-e.trx0;const n=e.try1-e.try0;const r=new Float32Array(s*n);for(let i=0,o=e.subbands.length;i<o;i++){let o,g;if(!l){o=c[0].mu;g=c[0].epsilon+(t>0?1-t:0)}else{o=c[w].mu;g=c[w].epsilon;w++}const m=e.subbands[i];const b=a[m.type];const y=p?1:2**(d+b-g)*(1+o/2048);const A=h+g-1;S(r,s,n,m,y,A,p,u,f)}m.push({width:s,height:n,items:r})}const b=g.calculate(m,i.tcx0,i.tcy0);return{left:i.tcx0,top:i.tcy0,width:b.width,height:b.height,items:b.items}}function C(t){const e=t.SIZ;const s=t.components;const i=e.Csiz;const n=[];for(let e=0,r=t.tiles.length;e<r;e++){const r=t.tiles[e];const o=[];for(let e=0;e<i;e++){o[e]=M(t,r,e)}const a=o[0];const c=new Uint8ClampedArray(a.items.length*i);const l={left:a.left,top:a.top,width:a.width,height:a.height,items:c};let h,u;let f=0,d,p,g,m,w;if(r.codingStyleDefaultParameters.multipleComponentTransform){const t=i===4;const e=o[0].items;const n=o[1].items;const a=o[2].items;const l=t?o[3].items:null;h=s[0].precision-8;u=(128<<h)+.5;const b=r.components[0];const y=i-3;p=e.length;if(!b.codingStyleParameters.reversibleTransformation){for(d=0;d<p;d++,f+=y){g=e[d]+u;m=n[d];w=a[d];c[f++]=g+1.402*w>>h;c[f++]=g-.34413*m-.71414*w>>h;c[f++]=g+1.772*m>>h}}else{for(d=0;d<p;d++,f+=y){g=e[d]+u;m=n[d];w=a[d];const t=g-(w+m>>2);c[f++]=t+w>>h;c[f++]=t>>h;c[f++]=t+m>>h}}if(t){for(d=0,f=3;d<p;d++,f+=4){c[f]=l[d]+u>>h}}}else{for(let t=0;t<i;t++){const e=o[t].items;h=s[t].precision-8;u=(128<<h)+.5;for(f=t,d=0,p=e.length;d<p;d++){c[f]=e[d]+u>>h;f+=i}}}n.push(l)}return n}function _(t,e){const s=t.SIZ;const i=s.Csiz;const n=t.tiles[e];for(let e=0;e<i;e++){const s=n.components[e];const i=t.currentTile.QCC[e]!==undefined?t.currentTile.QCC[e]:t.currentTile.QCD;s.quantizationParameters=i;const r=t.currentTile.COC[e]!==undefined?t.currentTile.COC[e]:t.currentTile.COD;s.codingStyleParameters=r}n.codingStyleDefaultParameters=t.currentTile.COD}class I{constructor(t,e){const s=(0,n.log2)(Math.max(t,e))+1;this.levels=[];for(let i=0;i<s;i++){const s={width:t,height:e,items:[]};this.levels.push(s);t=Math.ceil(t/2);e=Math.ceil(e/2)}}reset(t,e){let s=0,i=0,n;while(s<this.levels.length){n=this.levels[s];const r=t+e*n.width;if(n.items[r]!==undefined){i=n.items[r];break}n.index=r;t>>=1;e>>=1;s++}s--;n=this.levels[s];n.items[n.index]=i;this.currentLevel=s;delete this.value}incrementValue(){const t=this.levels[this.currentLevel];t.items[t.index]++}nextLevel(){let t=this.currentLevel;let e=this.levels[t];const s=e.items[e.index];t--;if(t<0){this.value=s;return false}this.currentLevel=t;e=this.levels[t];e.items[e.index]=s;return true}}class F{constructor(t,e,s){const i=(0,n.log2)(Math.max(t,e))+1;this.levels=[];for(let n=0;n<i;n++){const i=new Uint8Array(t*e);for(let t=0,e=i.length;t<e;t++){i[t]=s}const n={width:t,height:e,items:i};this.levels.push(n);t=Math.ceil(t/2);e=Math.ceil(e/2)}}reset(t,e,s){let i=0;while(i<this.levels.length){const n=this.levels[i];const r=t+e*n.width;n.index=r;const o=n.items[r];if(o===255){break}if(o>s){this.currentLevel=i;this.propagateValues();return false}t>>=1;e>>=1;i++}this.currentLevel=i-1;return true}incrementValue(t){const e=this.levels[this.currentLevel];e.items[e.index]=t+1;this.propagateValues()}propagateValues(){let t=this.currentLevel;let e=this.levels[t];const s=e.items[e.index];while(--t>=0){e=this.levels[t];e.items[e.index]=s}}nextLevel(){let t=this.currentLevel;let e=this.levels[t];const s=e.items[e.index];e.items[e.index]=255;t--;if(t<0){return false}this.currentLevel=t;e=this.levels[t];e.items[e.index]=s;return true}}class O{static UNIFORM_CONTEXT=17;static RUNLENGTH_CONTEXT=18;static LLAndLHContextsLabel=new Uint8Array([0,5,8,0,3,7,8,0,4,7,8,0,0,0,0,0,1,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8,0,0,0,0,0,2,6,8,0,3,7,8,0,4,7,8]);static HLContextLabel=new Uint8Array([0,3,4,0,5,7,7,0,8,8,8,0,0,0,0,0,1,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8,0,0,0,0,0,2,3,4,0,6,7,7,0,8,8,8]);static HHContextLabel=new Uint8Array([0,1,2,0,1,2,2,0,2,2,2,0,0,0,0,0,3,4,5,0,4,5,5,0,5,5,5,0,0,0,0,0,6,7,7,0,7,7,7,0,7,7,7,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8,0,0,0,0,0,8,8,8,0,8,8,8,0,8,8,8]);constructor(t,e,s,i,n){this.width=t;this.height=e;let r;if(s==="HH"){r=O.HHContextLabel}else if(s==="HL"){r=O.HLContextLabel}else{r=O.LLAndLHContextsLabel}this.contextLabelTable=r;const o=t*e;this.neighborsSignificance=new Uint8Array(o);this.coefficentsSign=new Uint8Array(o);let a;if(n>14){a=new Uint32Array(o)}else if(n>6){a=new Uint16Array(o)}else{a=new Uint8Array(o)}this.coefficentsMagnitude=a;this.processingFlags=new Uint8Array(o);const c=new Uint8Array(o);if(i!==0){for(let t=0;t<o;t++){c[t]=i}}this.bitsDecoded=c;this.reset()}setDecoder(t){this.decoder=t}reset(){this.contexts=new Int8Array(19);this.contexts[0]=4<<1|0;this.contexts[O.UNIFORM_CONTEXT]=46<<1|0;this.contexts[O.RUNLENGTH_CONTEXT]=3<<1|0}setNeighborsSignificance(t,e,s){const i=this.neighborsSignificance;const n=this.width,r=this.height;const o=e>0;const a=e+1<n;let c;if(t>0){c=s-n;if(o){i[c-1]+=16}if(a){i[c+1]+=16}i[c]+=4}if(t+1<r){c=s+n;if(o){i[c-1]+=16}if(a){i[c+1]+=16}i[c]+=4}if(o){i[s-1]+=1}if(a){i[s+1]+=1}i[s]|=128}runSignificancePropagationPass(){const t=this.decoder;const e=this.width,s=this.height;const i=this.coefficentsMagnitude;const n=this.coefficentsSign;const r=this.neighborsSignificance;const o=this.processingFlags;const a=this.contexts;const c=this.contextLabelTable;const l=this.bitsDecoded;const h=~1;const u=1;const f=2;for(let d=0;d<s;d+=4){for(let p=0;p<e;p++){let g=d*e+p;for(let m=0;m<4;m++,g+=e){const e=d+m;if(e>=s){break}o[g]&=h;if(i[g]||!r[g]){continue}const w=c[r[g]];const b=t.readBit(a,w);if(b){const t=this.decodeSignBit(e,p,g);n[g]=t;i[g]=1;this.setNeighborsSignificance(e,p,g);o[g]|=f}l[g]++;o[g]|=u}}}}decodeSignBit(t,e,s){const i=this.width,n=this.height;const r=this.coefficentsMagnitude;const o=this.coefficentsSign;let a,c,l,h;let u,f;h=e>0&&r[s-1]!==0;if(e+1<i&&r[s+1]!==0){l=o[s+1];if(h){c=o[s-1];a=1-l-c}else{a=1-l-l}}else if(h){c=o[s-1];a=1-c-c}else{a=0}const d=3*a;h=t>0&&r[s-i]!==0;if(t+1<n&&r[s+i]!==0){l=o[s+i];if(h){c=o[s-i];a=1-l-c+d}else{a=1-l-l+d}}else if(h){c=o[s-i];a=1-c-c+d}else{a=d}if(a>=0){u=9+a;f=this.decoder.readBit(this.contexts,u)}else{u=9-a;f=this.decoder.readBit(this.contexts,u)^1}return f}runMagnitudeRefinementPass(){const t=this.decoder;const e=this.width,s=this.height;const i=this.coefficentsMagnitude;const n=this.neighborsSignificance;const r=this.contexts;const o=this.bitsDecoded;const a=this.processingFlags;const c=1;const l=2;const h=e*s;const u=e*4;for(let s=0,f;s<h;s=f){f=Math.min(h,s+u);for(let h=0;h<e;h++){for(let u=s+h;u<f;u+=e){if(!i[u]||(a[u]&c)!==0){continue}let e=16;if((a[u]&l)!==0){a[u]^=l;const t=n[u]&127;e=t===0?15:14}const s=t.readBit(r,e);i[u]=i[u]<<1|s;o[u]++;a[u]|=c}}}}runCleanupPass(){const t=this.decoder;const e=this.width,s=this.height;const i=this.neighborsSignificance;const n=this.coefficentsMagnitude;const r=this.coefficentsSign;const o=this.contexts;const a=this.contextLabelTable;const c=this.bitsDecoded;const l=this.processingFlags;const h=1;const u=2;const f=e;const d=e*2;const p=e*3;let g;for(let m=0;m<s;m=g){g=Math.min(m+4,s);const w=m*e;const b=m+3<s;for(let s=0;s<e;s++){const y=w+s;const A=b&&l[y]===0&&l[y+f]===0&&l[y+d]===0&&l[y+p]===0&&i[y]===0&&i[y+f]===0&&i[y+d]===0&&i[y+p]===0;let v=0,x=y;let k=m,S;if(A){const i=t.readBit(o,O.RUNLENGTH_CONTEXT);if(!i){c[y]++;c[y+f]++;c[y+d]++;c[y+p]++;continue}v=t.readBit(o,O.UNIFORM_CONTEXT)<<1|t.readBit(o,O.UNIFORM_CONTEXT);if(v!==0){k=m+v;x+=v*e}S=this.decodeSignBit(k,s,x);r[x]=S;n[x]=1;this.setNeighborsSignificance(k,s,x);l[x]|=u;x=y;for(let t=m;t<=k;t++,x+=e){c[x]++}v++}for(k=m+v;k<g;k++,x+=e){if(n[x]||(l[x]&h)!==0){continue}const e=a[i[x]];const f=t.readBit(o,e);if(f===1){S=this.decodeSignBit(k,s,x);r[x]=S;n[x]=1;this.setNeighborsSignificance(k,s,x);l[x]|=u}c[x]++}}}}checkSegmentationSymbol(){const t=this.decoder;const e=this.contexts;const s=t.readBit(e,O.UNIFORM_CONTEXT)<<3|t.readBit(e,O.UNIFORM_CONTEXT)<<2|t.readBit(e,O.UNIFORM_CONTEXT)<<1|t.readBit(e,O.UNIFORM_CONTEXT);if(s!==10){throw new o("Invalid segmentation symbol")}}}class E{constructor(){if(this.constructor===E){(0,i.unreachable)("Cannot initialize Transform.")}}calculate(t,e,s){let i=t[0];for(let n=1,r=t.length;n<r;n++){i=this.iterate(i,t[n],e,s)}return i}extend(t,e,s){let i=e-1,n=e+1;let r=e+s-2,o=e+s;t[i--]=t[n++];t[o++]=t[r--];t[i--]=t[n++];t[o++]=t[r--];t[i--]=t[n++];t[o++]=t[r--];t[i]=t[n];t[o]=t[r]}filter(t,e,s){(0,i.unreachable)("Abstract method `filter` called")}iterate(t,e,s,i){const n=t.width,r=t.height;let o=t.items;const a=e.width;const c=e.height;const l=e.items;let h,u,f,d,p,g;for(f=0,h=0;h<r;h++){d=h*2*a;for(u=0;u<n;u++,f++,d+=2){l[d]=o[f]}}o=t.items=null;const m=4;const w=new Float32Array(a+2*m);if(a===1){if((s&1)!==0){for(g=0,f=0;g<c;g++,f+=a){l[f]*=.5}}}else{for(g=0,f=0;g<c;g++,f+=a){w.set(l.subarray(f,f+a),m);this.extend(w,m,a);this.filter(w,m,a);l.set(w.subarray(m,m+a),f)}}let b=16;const y=[];for(h=0;h<b;h++){y.push(new Float32Array(c+2*m))}let A,v=0;t=m+c;if(c===1){if((i&1)!==0){for(p=0;p<a;p++){l[p]*=.5}}}else{for(p=0;p<a;p++){if(v===0){b=Math.min(a-p,b);for(f=p,d=m;d<t;f+=a,d++){for(A=0;A<b;A++){y[A][d]=l[f+A]}}v=b}v--;const e=y[v];this.extend(e,m,c);this.filter(e,m,c);if(v===0){f=p-b+1;for(d=m;d<t;f+=a,d++){for(A=0;A<b;A++){l[f+A]=y[A][d]}}}}}return{width:a,height:c,items:l}}}class T extends E{filter(t,e,s){const i=s>>1;e|=0;let n,r,o,a;const c=-1.586134342059924;const l=-.052980118572961;const h=.882911075530934;const u=.443506852043971;const f=1.230174104914001;const d=1/f;n=e-3;for(r=i+4;r--;n+=2){t[n]*=d}n=e-2;o=u*t[n-1];for(r=i+3;r--;n+=2){a=u*t[n+1];t[n]=f*t[n]-o-a;if(r--){n+=2;o=u*t[n+1];t[n]=f*t[n]-o-a}else{break}}n=e-1;o=h*t[n-1];for(r=i+2;r--;n+=2){a=h*t[n+1];t[n]-=o+a;if(r--){n+=2;o=h*t[n+1];t[n]-=o+a}else{break}}n=e;o=l*t[n-1];for(r=i+1;r--;n+=2){a=l*t[n+1];t[n]-=o+a;if(r--){n+=2;o=l*t[n+1];t[n]-=o+a}else{break}}if(i!==0){n=e+1;o=c*t[n-1];for(r=i;r--;n+=2){a=c*t[n+1];t[n]-=o+a;if(r--){n+=2;o=c*t[n+1];t[n]-=o+a}else{break}}}}}class D extends E{filter(t,e,s){const i=s>>1;e|=0;let n,r;for(n=e,r=i+1;r--;n+=2){t[n]-=t[n-1]+t[n+1]+2>>2}for(n=e+1,r=i;r--;n+=2){t[n]+=t[n-1]+t[n+1]>>1}}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.LZWStream=void 0;var i=s(18);class n extends i.DecodeStream{constructor(t,e,s){super(e);this.str=t;this.dict=t.dict;this.cachedData=0;this.bitsCached=0;const i=4096;const n={earlyChange:s,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(i),dictionaryLengths:new Uint16Array(i),dictionaryPrevCodes:new Uint16Array(i),currentSequence:new Uint8Array(i),currentSequenceLength:0};for(let t=0;t<256;++t){n.dictionaryValues[t]=t;n.dictionaryLengths[t]=1}this.lzwState=n}readBits(t){let e=this.bitsCached;let s=this.cachedData;while(e<t){const t=this.str.getByte();if(t===-1){this.eof=true;return null}s=s<<8|t;e+=8}this.bitsCached=e-=t;this.cachedData=s;this.lastCode=null;return s>>>e&(1<<t)-1}readBlock(){const t=512,e=t;let s=t*2;let i,n,r;const o=this.lzwState;if(!o){return}const a=o.earlyChange;let c=o.nextCode;const l=o.dictionaryValues;const h=o.dictionaryLengths;const u=o.dictionaryPrevCodes;let f=o.codeLength;let d=o.prevCode;const p=o.currentSequence;let g=o.currentSequenceLength;let m=0;let w=this.bufferLength;let b=this.ensureBuffer(this.bufferLength+s);for(i=0;i<t;i++){const t=this.readBits(f);const i=g>0;if(t<256){p[0]=t;g=1}else if(t>=258){if(t<c){g=h[t];for(n=g-1,r=t;n>=0;n--){p[n]=l[r];r=u[r]}}else{p[g++]=p[0]}}else if(t===256){f=9;c=258;g=0;continue}else{this.eof=true;delete this.lzwState;break}if(i){u[c]=d;h[c]=h[d]+1;l[c]=p[0];c++;f=c+a&c+a-1?f:Math.min(Math.log(c+a)/.6931471805599453+1,12)|0}d=t;m+=g;if(s<m){do{s+=e}while(s<m);b=this.ensureBuffer(this.bufferLength+s)}for(n=0;n<g;n++){b[w++]=p[n]}}o.nextCode=c;o.codeLength=f;o.prevCode=d;o.currentSequenceLength=g;this.bufferLength=w}}e.LZWStream=n},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.PredictorStream=void 0;var i=s(18);var n=s(4);var r=s(2);class o extends i.DecodeStream{constructor(t,e,s){super(e);if(!(s instanceof n.Dict)){return t}const i=this.predictor=s.get("Predictor")||1;if(i<=1){return t}if(i!==2&&(i<10||i>15)){throw new r.FormatError(`Unsupported predictor: ${i}`)}this.readBlock=i===2?this.readBlockTiff:this.readBlockPng;this.str=t;this.dict=t.dict;const o=this.colors=s.get("Colors")||1;const a=this.bits=s.get("BPC","BitsPerComponent")||8;const c=this.columns=s.get("Columns")||1;this.pixBytes=o*a+7>>3;this.rowBytes=c*o*a+7>>3;return this}readBlockTiff(){const t=this.rowBytes;const e=this.bufferLength;const s=this.ensureBuffer(e+t);const i=this.bits;const n=this.colors;const r=this.str.getBytes(t);this.eof=!r.length;if(this.eof){return}let o=0,a=0;let c=0,l=0;let h=e;let u;if(i===1&&n===1){for(u=0;u<t;++u){let t=r[u]^o;t^=t>>1;t^=t>>2;t^=t>>4;o=(t&1)<<7;s[h++]=t}}else if(i===8){for(u=0;u<n;++u){s[h++]=r[u]}for(;u<t;++u){s[h]=s[h-n]+r[u];h++}}else if(i===16){const e=n*2;for(u=0;u<e;++u){s[h++]=r[u]}for(;u<t;u+=2){const t=((r[u]&255)<<8)+(r[u+1]&255)+((s[h-e]&255)<<8)+(s[h-e+1]&255);s[h++]=t>>8&255;s[h++]=t&255}}else{const t=new Uint8Array(n+1);const h=(1<<i)-1;let f=0,d=e;const p=this.columns;for(u=0;u<p;++u){for(let e=0;e<n;++e){if(c<i){o=o<<8|r[f++]&255;c+=8}t[e]=t[e]+(o>>c-i)&h;c-=i;a=a<<i|t[e];l+=i;if(l>=8){s[d++]=a>>l-8&255;l-=8}}}if(l>0){s[d++]=(a<<8-l)+(o&(1<<8-l)-1)}}this.bufferLength+=t}readBlockPng(){const t=this.rowBytes;const e=this.pixBytes;const s=this.str.getByte();const i=this.str.getBytes(t);this.eof=!i.length;if(this.eof){return}const n=this.bufferLength;const o=this.ensureBuffer(n+t);let a=o.subarray(n-t,n);if(a.length===0){a=new Uint8Array(t)}let c,l=n,h,u;switch(s){case 0:for(c=0;c<t;++c){o[l++]=i[c]}break;case 1:for(c=0;c<e;++c){o[l++]=i[c]}for(;c<t;++c){o[l]=o[l-e]+i[c]&255;l++}break;case 2:for(c=0;c<t;++c){o[l++]=a[c]+i[c]&255}break;case 3:for(c=0;c<e;++c){o[l++]=(a[c]>>1)+i[c]}for(;c<t;++c){o[l]=(a[c]+o[l-e]>>1)+i[c]&255;l++}break;case 4:for(c=0;c<e;++c){h=a[c];u=i[c];o[l++]=h+u}for(;c<t;++c){h=a[c];const t=a[c-e];const s=o[l-e];const n=s+h-t;let r=n-s;if(r<0){r=-r}let f=n-h;if(f<0){f=-f}let d=n-t;if(d<0){d=-d}u=i[c];if(r<=f&&r<=d){o[l++]=s+u}else if(f<=d){o[l++]=h+u}else{o[l++]=t+u}}break;default:throw new r.FormatError(`Unsupported predictor: ${s}`)}this.bufferLength+=t}}e.PredictorStream=o},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.RunLengthStream=void 0;var i=s(18);class n extends i.DecodeStream{constructor(t,e){super(e);this.str=t;this.dict=t.dict}readBlock(){const t=this.str.getBytes(2);if(!t||t.length<2||t[0]===128){this.eof=true;return}let e;let s=this.bufferLength;let i=t[0];if(i<128){e=this.ensureBuffer(s+i+1);e[s++]=t[1];if(i>0){const t=this.str.getBytes(i);e.set(t,s);s+=i}}else{i=257-i;const n=t[1];e=this.ensureBuffer(s+i+1);for(let t=0;t<i;t++){e[s++]=n}}this.bufferLength=s}}e.RunLengthStream=n},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.Font=e.ErrorFont=void 0;var i=s(2);var n=s(35);var r=s(38);var o=s(40);var a=s(39);var c=s(37);var l=s(41);var h=s(42);var u=s(43);var f=s(44);var d=s(45);var p=s(46);var g=s(14);var m=s(47);var w=s(3);var b=s(8);var y=s(48);const A=[[57344,63743],[1048576,1114109]];const v=1e3;const x=["ascent","bbox","black","bold","charProcOperatorList","composite","cssFontInfo","data","defaultVMetrics","defaultWidth","descent","fallbackName","fontMatrix","isInvalidPDFjsFont","isType3Font","italic","loadedName","mimetype","missingFile","name","remeasure","subtype","systemFontInfo","type","vertical"];const k=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function S(t){if(!t.fontMatrix){return}if(t.fontMatrix[0]===i.FONT_IDENTITY_MATRIX[0]){return}const e=.001/t.fontMatrix[0];const s=t.widths;for(const t in s){s[t]*=e}t.defaultWidth*=e}function M(t,e,s){if(t.isInternalFont){return}if(t.hasIncludedToUnicodeMap){return}if(t.hasEncoding){return}if(t.toUnicode instanceof h.IdentityToUnicodeMap){return}if(!e){return}if(s.length===0){return}if(t.defaultEncoding===c.WinAnsiEncoding){return}for(const t of s){if(!q(t)){return}}const i=c.WinAnsiEncoding;const n=[],r=(0,a.getGlyphsUnicode)();for(const t in i){const e=i[t];if(e===""){continue}const s=r[e];if(s===undefined){continue}n[t]=String.fromCharCode(s)}if(n.length>0){t.toUnicode.amend(n)}}function C(t,e){if(t.isInternalFont){return}if(t.hasIncludedToUnicodeMap){return}if(e===t.defaultEncoding){return}if(t.toUnicode instanceof h.IdentityToUnicodeMap){return}const s=[],i=(0,a.getGlyphsUnicode)();for(const n in e){if(t.hasEncoding){if(t.baseEncodingName||t.differences[n]!==undefined){continue}}const r=e[n];const a=(0,o.getUnicodeForGlyph)(r,i);if(a!==-1){s[n]=String.fromCharCode(a)}}if(s.length>0){t.toUnicode.amend(s)}}function _(t){if(!t.fallbackToUnicode){return}if(t.toUnicode instanceof h.IdentityToUnicodeMap){return}const e=[];for(const s in t.fallbackToUnicode){if(t.toUnicode.has(s)){continue}e[s]=t.fallbackToUnicode[s]}if(e.length>0){t.toUnicode.amend(e)}}class I{constructor(t,e,s,i,n,r,o,a,c){this.originalCharCode=t;this.fontChar=e;this.unicode=s;this.accent=i;this.width=n;this.vmetric=r;this.operatorListId=o;this.isSpace=a;this.isInFont=c}get category(){return(0,i.shadow)(this,"category",(0,o.getCharUnicodeCategory)(this.unicode),true)}}function F(t,e){return(t<<8)+e}function O(t,e,s){t[e+1]=s;t[e]=s>>>8}function E(t,e){const s=(t<<8)+e;return s&1<<15?s-65536:s}function T(t,e,s,i){return(t<<24)+(e<<16)+(s<<8)+i}function D(t){return String.fromCharCode(t>>8&255,t&255)}function P(t){if(t>32767){t=32767}else if(t<-32768){t=-32768}return String.fromCharCode(t>>8&255,t&255)}function R(t){const e=t.peekBytes(4);return(0,w.readUint32)(e,0)===65536||(0,i.bytesToString)(e)==="true"}function N(t){const e=t.peekBytes(4);return(0,i.bytesToString)(e)==="ttcf"}function L(t){const e=t.peekBytes(4);return(0,i.bytesToString)(e)==="OTTO"}function B(t){const e=t.peekBytes(2);if(e[0]===37&&e[1]===33){return true}if(e[0]===128&&e[1]===1){return true}return false}function $(t){const e=t.peekBytes(4);if(e[0]>=1&&e[3]>=1&&e[3]<=4){return true}return false}function U(t,{type:e,subtype:s,composite:n}){let r,o;if(R(t)||N(t)){r=n?"CIDFontType2":"TrueType"}else if(L(t)){r=n?"CIDFontType2":"OpenType"}else if(B(t)){if(n){r="CIDFontType0"}else{r=e==="MMType1"?"MMType1":"Type1"}}else if($(t)){if(n){r="CIDFontType0";o="CIDFontType0C"}else{r=e==="MMType1"?"MMType1":"Type1";o="Type1C"}}else{(0,i.warn)("getFontFileType: Unable to detect correct font file Type/Subtype.");r=e;o=s}return[r,o]}function j(t,e){for(const s in e){t[+s]=e[s]}}function H(t,e,s){const i=[];let n;for(let s=0,r=t.length;s<r;s++){n=(0,o.getUnicodeForGlyph)(t[s],e);if(n!==-1){i[s]=n}}for(const t in s){n=(0,o.getUnicodeForGlyph)(s[t],e);if(n!==-1){i[+t]=n}}return i}function G(t){return t.platform===1&&t.encoding===0&&t.language===0}function q(t){return t.platform===3&&t.encoding===1&&t.language===1033}function X(t,e,s=false){switch(e.length){case 1:return e.charCodeAt(0);case 2:return e.charCodeAt(0)<<8|e.charCodeAt(1)}const n=`Unsupported CID string (charCode ${t}): "${e}".`;if(s){throw new i.FormatError(n)}(0,i.warn)(n);return e}function W(t,e,s,n){const r=Object.create(null);const o=new Map;const a=[];const c=new Set;let l=0;const h=A[l][0];let u=h;let f=A[l][1];const d=t=>A[0][0]<=t&&t<=A[0][1]||A[1][0]<=t&&t<=A[1][1];for(let h in t){h|=0;let p=t[h];if(!e(p)){continue}if(u>f){l++;if(l>=A.length){(0,i.warn)("Ran out of space in font private use area.");break}u=A[l][0];f=A[l][1]}const g=u++;if(p===0){p=s}let m=n.get(h);if(typeof m==="string"){m=m.codePointAt(0)}if(m&&!d(m)&&!c.has(p)){o.set(m,p);c.add(p)}r[g]=p;a[h]=g}return{toFontChar:a,charCodeToGlyphId:r,toUnicodeExtraMap:o,nextAvailableFontCharCode:u}}function z(t,e,s){const i=[];for(const e in t){if(t[e]>=s){continue}i.push({fontCharCode:e|0,glyphId:t[e]})}if(e){for(const[t,n]of e){if(n>=s){continue}i.push({fontCharCode:t,glyphId:n})}}if(i.length===0){i.push({fontCharCode:0,glyphId:0})}i.sort((function t(e,s){return e.fontCharCode-s.fontCharCode}));const n=[];const r=i.length;for(let t=0;t<r;){const e=i[t].fontCharCode;const s=[i[t].glyphId];++t;let o=e;while(t<r&&o+1===i[t].fontCharCode){s.push(i[t].glyphId);++o;++t;if(o===65535){break}}n.push([e,o,s])}return n}function V(t,e,s){const n=z(t,e,s);const r=n.at(-1)[1]>65535?2:1;let o="\0\0"+D(r)+"\0"+"\0"+(0,i.string32)(4+r*8);let a,c,l,h;for(a=n.length-1;a>=0;--a){if(n[a][0]<=65535){break}}const u=a+1;if(n[a][0]<65535&&n[a][1]===65535){n[a][1]=65534}const f=n[a][1]<65535?1:0;const d=u+f;const p=m.OpenTypeFileBuilder.getSearchParams(d,2);let g="";let w="";let b="";let y="";let A="";let v=0;let x,k,S,M;for(a=0,c=u;a<c;a++){x=n[a];k=x[0];S=x[1];g+=D(k);w+=D(S);M=x[2];let t=true;for(l=1,h=M.length;l<h;++l){if(M[l]!==M[l-1]+1){t=false;break}}if(!t){const t=(d-a)*2+v*2;v+=S-k+1;b+=D(0);y+=D(t);for(l=0,h=M.length;l<h;++l){A+=D(M[l])}}else{const t=M[0];b+=D(t-k&65535);y+=D(0)}}if(f>0){w+="ÿÿ";g+="ÿÿ";b+="\0";y+="\0\0"}const C="\0\0"+D(2*d)+D(p.range)+D(p.entry)+D(p.rangeShift)+w+"\0\0"+g+b+y+A;let _="";let I="";if(r>1){o+="\0"+"\0\n"+(0,i.string32)(4+r*8+4+C.length);_="";for(a=0,c=n.length;a<c;a++){x=n[a];k=x[0];M=x[2];let t=M[0];for(l=1,h=M.length;l<h;++l){if(M[l]!==M[l-1]+1){S=x[0]+l-1;_+=(0,i.string32)(k)+(0,i.string32)(S)+(0,i.string32)(t);k=S+1;t=M[l]}}_+=(0,i.string32)(k)+(0,i.string32)(x[1])+(0,i.string32)(t)}I="\0\f"+"\0\0"+(0,i.string32)(_.length+16)+"\0\0\0\0"+(0,i.string32)(_.length/12)}return o+"\0"+D(C.length+4)+C+I+_}function K(t,e){e.pos=(e.start||0)+t.offset;const s=e.getUint16();e.skip(60);const i=e.getUint16();if(s<4&&i&768){return false}const n=e.getUint16();const r=e.getUint16();if(n>r){return false}e.skip(6);const o=e.getUint16();if(o===0){return false}t.data[8]=t.data[9]=0;return true}function J(t,e,s){s||={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let n=0;let r=0;let a=0;let c=0;let l=null;let h=0;let u=-1;if(e){for(let t in e){t|=0;if(l>t||!l){l=t}if(h<t){h=t}u=(0,o.getUnicodeRangeFor)(t,u);if(u<32){n|=1<<u}else if(u<64){r|=1<<u-32}else if(u<96){a|=1<<u-64}else if(u<123){c|=1<<u-96}else{throw new i.FormatError("Unicode ranges Bits > 123 are reserved for internal usage")}}if(h>65535){h=65535}}else{l=0;h=255}const f=t.bbox||[0,0,0,0];const d=s.unitsPerEm||1/(t.fontMatrix||i.FONT_IDENTITY_MATRIX)[0];const p=t.ascentScaled?1:d/v;const g=s.ascent||Math.round(p*(t.ascent||f[3]));let m=s.descent||Math.round(p*(t.descent||f[1]));if(m>0&&t.descent>0&&f[1]<0){m=-m}const w=s.yMax||g;const b=-s.yMin||-m;return"\0"+"$"+"ô"+"\0"+"\0\0"+""+"»"+"\0\0"+"\0"+""+"»"+"\0\0"+"ß"+"\x001"+""+"\0\0"+"\0\0"+String.fromCharCode(t.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,i.string32)(n)+(0,i.string32)(r)+(0,i.string32)(a)+(0,i.string32)(c)+"*21*"+D(t.italicAngle?1:0)+D(l||t.firstChar)+D(h||t.lastChar)+D(g)+D(m)+"\0d"+D(w)+D(b)+"\0\0\0\0"+"\0\0\0\0"+D(t.xHeight)+D(t.capHeight)+D(0)+D(l||t.firstChar)+"\0"}function Y(t){const e=Math.floor(t.italicAngle*2**16);return"\0\0\0"+(0,i.string32)(e)+"\0\0"+"\0\0"+(0,i.string32)(t.fixedPitch?1:0)+"\0\0\0\0"+"\0\0\0\0"+"\0\0\0\0"+"\0\0\0\0"}function Q(t){return t.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function Z(t,e){if(!e){e=[[],[]]}const s=[e[0][0]||"Original licence",e[0][1]||t,e[0][2]||"Unknown",e[0][3]||"uniqueID",e[0][4]||t,e[0][5]||"Version 0.11",e[0][6]||Q(t),e[0][7]||"Unknown",e[0][8]||"Unknown",e[0][9]||"Unknown"];const i=[];let n,r,o,a,c;for(n=0,r=s.length;n<r;n++){c=e[1][n]||s[n];const t=[];for(o=0,a=c.length;o<a;o++){t.push(D(c.charCodeAt(o)))}i.push(t.join(""))}const l=[s,i];const h=["\0","\0"];const u=["\0\0","\0"];const f=["\0\0","\t"];const d=s.length*h.length;let p="\0\0"+D(d)+D(d*12+6);let g=0;for(n=0,r=h.length;n<r;n++){const t=l[n];for(o=0,a=t.length;o<a;o++){c=t[o];const e=h[n]+u[n]+f[n]+D(o)+D(c.length)+D(g);p+=e;g+=c.length}}p+=s.join("")+i.join("");return p}class tt{constructor(t,e,s){this.name=t;this.psName=null;this.mimetype=null;this.disableFontFace=false;this.loadedName=s.loadedName;this.isType3Font=s.isType3Font;this.missingFile=false;this.cssFontInfo=s.cssFontInfo;this._charsCache=Object.create(null);this._glyphCache=Object.create(null);let n=!!(s.flags&r.FontFlags.Serif);if(!n&&!s.isSimulatedFlags){const e=t.replaceAll(/[,_]/g,"-").split("-")[0],s=(0,l.getSerifFonts)();for(const t of e.split("+")){if(s[t]){n=true;break}}}this.isSerifFont=n;this.isSymbolicFont=!!(s.flags&r.FontFlags.Symbolic);this.isMonospace=!!(s.flags&r.FontFlags.FixedPitch);let{type:o,subtype:a}=s;this.type=o;this.subtype=a;this.systemFontInfo=s.systemFontInfo;const c=t.match(/^InvalidPDFjsFont_(.*)_\d+$/);this.isInvalidPDFjsFont=!!c;if(this.isInvalidPDFjsFont){this.fallbackName=c[1]}else if(this.isMonospace){this.fallbackName="monospace"}else if(this.isSerifFont){this.fallbackName="serif"}else{this.fallbackName="sans-serif"}if(this.systemFontInfo?.guessFallback){this.systemFontInfo.guessFallback=false;this.systemFontInfo.css+=`,${this.fallbackName}`}this.differences=s.differences;this.widths=s.widths;this.defaultWidth=s.defaultWidth;this.composite=s.composite;this.cMap=s.cMap;this.capHeight=s.capHeight/v;this.ascent=s.ascent/v;this.descent=s.descent/v;this.lineHeight=this.ascent-this.descent;this.fontMatrix=s.fontMatrix;this.bbox=s.bbox;this.defaultEncoding=s.defaultEncoding;this.toUnicode=s.toUnicode;this.toFontChar=[];if(s.type==="Type3"){for(let t=0;t<256;t++){this.toFontChar[t]=this.differences[t]||s.defaultEncoding[t]}return}this.cidEncoding=s.cidEncoding||"";this.vertical=!!s.vertical;if(this.vertical){this.vmetrics=s.vmetrics;this.defaultVMetrics=s.defaultVMetrics}if(!e||e.isEmpty){if(e){(0,i.warn)('Font file is empty in "'+t+'" ('+this.loadedName+")")}this.fallbackToSystemFont(s);return}[o,a]=U(e,s);if(o!==this.type||a!==this.subtype){(0,i.info)("Inconsistent font file Type/SubType, expected: "+`${this.type}/${this.subtype} but found: ${o}/${a}.`)}let h;try{switch(o){case"MMType1":(0,i.info)("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";const n=a==="Type1C"||a==="CIDFontType0C"?new u.CFFFont(e,s):new y.Type1Font(t,e,s);S(s);h=this.convert(t,n,s);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype";h=this.checkAndRepair(t,e,s);if(this.isOpenType){S(s);o="OpenType"}break;default:throw new i.FormatError(`Font ${o} is not supported`)}}catch(t){(0,i.warn)(t);this.fallbackToSystemFont(s);return}_(s);this.data=h;this.type=o;this.subtype=a;this.fontMatrix=s.fontMatrix;this.widths=s.widths;this.defaultWidth=s.defaultWidth;this.toUnicode=s.toUnicode;this.seacMap=s.seacMap}get renderer(){const t=f.FontRendererFactory.create(this,r.SEAC_ANALYSIS_ENABLED);return(0,i.shadow)(this,"renderer",t)}exportData(t=false){const e=t?[...x,...k]:x;const s=Object.create(null);let i,n;for(i of e){n=this[i];if(n!==undefined){s[i]=n}}return s}fallbackToSystemFont(t){this.missingFile=true;const{name:e,type:s}=this;let i=(0,r.normalizeFontName)(e);const n=(0,l.getStdFontMap)(),u=(0,l.getNonStdFontMap)();const f=!!n[i];const p=!!(u[i]&&n[u[i]]);i=n[i]||u[i]||i;const g=(0,d.getFontBasicMetrics)();const m=g[i];if(m){if(isNaN(this.ascent)){this.ascent=m.ascent/v}if(isNaN(this.descent)){this.descent=m.descent/v}if(isNaN(this.capHeight)){this.capHeight=m.capHeight/v}}this.bold=/bold/gi.test(i);this.italic=/oblique|italic/gi.test(i);this.black=/Black/g.test(e);const w=/Narrow/g.test(e);this.remeasure=(!f||w)&&Object.keys(this.widths).length>0;if((f||p)&&s==="CIDFontType2"&&this.cidEncoding.startsWith("Identity-")){const s=t.cidToGidMap;const i=[];j(i,(0,l.getGlyphMapForStandardFonts)());if(/Arial-?Black/i.test(e)){j(i,(0,l.getSupplementalGlyphMapForArialBlack)())}else if(/Calibri/i.test(e)){j(i,(0,l.getSupplementalGlyphMapForCalibri)())}if(s){for(const t in i){const e=i[t];if(s[e]!==undefined){i[+t]=s[e]}}if(s.length!==this.toUnicode.length&&t.hasIncludedToUnicodeMap&&this.toUnicode instanceof h.IdentityToUnicodeMap){this.toUnicode.forEach((function(t,e){const n=i[t];if(s[n]===undefined){i[+t]=e}}))}}if(!(this.toUnicode instanceof h.IdentityToUnicodeMap)){this.toUnicode.forEach((function(t,e){i[+t]=e}))}this.toFontChar=i;this.toUnicode=new h.ToUnicodeMap(i)}else if(/Symbol/i.test(i)){this.toFontChar=H(c.SymbolSetEncoding,(0,a.getGlyphsUnicode)(),this.differences)}else if(/Dingbats/i.test(i)){this.toFontChar=H(c.ZapfDingbatsEncoding,(0,a.getDingbatsGlyphsUnicode)(),this.differences)}else if(f){const t=H(this.defaultEncoding,(0,a.getGlyphsUnicode)(),this.differences);if(s==="CIDFontType2"&&!this.cidEncoding.startsWith("Identity-")&&!(this.toUnicode instanceof h.IdentityToUnicodeMap)){this.toUnicode.forEach((function(e,s){t[+e]=s}))}this.toFontChar=t}else{const t=(0,a.getGlyphsUnicode)();const s=[];this.toUnicode.forEach(((e,i)=>{if(!this.composite){const s=this.differences[e]||this.defaultEncoding[e];const n=(0,o.getUnicodeForGlyph)(s,t);if(n!==-1){i=n}}s[+e]=i}));if(this.composite&&this.toUnicode instanceof h.IdentityToUnicodeMap){if(/Tahoma|Verdana/i.test(e)){j(s,(0,l.getGlyphMapForStandardFonts)())}}this.toFontChar=s}_(t);this.loadedName=i.split("-")[0]}checkAndRepair(t,e,s){const o=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function l(t,e){const s=Object.create(null);s["OS/2"]=null;s.cmap=null;s.head=null;s.hhea=null;s.hmtx=null;s.maxp=null;s.name=null;s.post=null;for(let i=0;i<e;i++){const e=f(t);if(!o.includes(e.tag)){continue}if(e.length===0){continue}s[e.tag]=e}return s}function f(t){const e=t.getString(4);const s=t.getInt32()>>>0;const i=t.getInt32()>>>0;const n=t.getInt32()>>>0;const r=t.pos;t.pos=t.start||0;t.skip(i);const o=t.getBytes(n);t.pos=r;if(e==="head"){o[8]=o[9]=o[10]=o[11]=0;o[17]|=32}return{tag:e,checksum:s,length:n,offset:i,data:o}}function d(t){return{version:t.getString(4),numTables:t.getUint16(),searchRange:t.getUint16(),entrySelector:t.getUint16(),rangeShift:t.getUint16()}}function w(t){const e=t.getString(4);(0,i.assert)(e==="ttcf","Must be a TrueType Collection font.");const s=t.getUint16();const n=t.getUint16();const r=t.getInt32()>>>0;const o=[];for(let e=0;e<r;e++){o.push(t.getInt32()>>>0)}const a={ttcTag:e,majorVersion:s,minorVersion:n,numFonts:r,offsetTable:o};switch(s){case 1:return a;case 2:a.dsigTag=t.getInt32()>>>0;a.dsigLength=t.getInt32()>>>0;a.dsigOffset=t.getInt32()>>>0;return a}throw new i.FormatError(`Invalid TrueType Collection majorVersion: ${s}.`)}function y(t,e){const{numFonts:s,offsetTable:n}=w(t);const r=e.split("+");let o;for(let a=0;a<s;a++){t.pos=(t.start||0)+n[a];const s=d(t);const c=l(t,s.numTables);if(!c.name){throw new i.FormatError('TrueType Collection font must contain a "name" table.')}const[h]=I(c.name);for(let t=0,i=h.length;t<i;t++){for(let i=0,n=h[t].length;i<n;i++){const n=h[t][i]?.replaceAll(/\s/g,"");if(!n){continue}if(n===e){return{header:s,tables:c}}if(r.length<2){continue}for(const t of r){if(n===t){o={name:t,header:s,tables:c}}}}}}if(o){(0,i.warn)(`TrueType Collection does not contain "${e}" font, `+`falling back to "${o.name}" font instead.`);return{header:o.header,tables:o.tables}}throw new i.FormatError(`TrueType Collection does not contain "${e}" font.`)}function A(t,e,s,n){if(!t){(0,i.warn)("No cmap table available.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:false}}let r;let o=(e.start||0)+t.offset;e.pos=o;e.skip(2);const a=e.getUint16();let c;let l=false;for(let t=0;t<a;t++){const i=e.getUint16();const r=e.getUint16();const o=e.getInt32()>>>0;let h=false;if(c?.platformId===i&&c?.encodingId===r){continue}if(i===0&&(r===0||r===1||r===3)){h=true}else if(i===1&&r===0){h=true}else if(i===3&&r===1&&(n||!c)){h=true;if(!s){l=true}}else if(s&&i===3&&r===0){h=true;let s=true;if(t<a-1){const t=e.peekBytes(2),n=F(t[0],t[1]);if(n<i){s=false}}if(s){l=true}}if(h){c={platformId:i,encodingId:r,offset:o}}if(l){break}}if(c){e.pos=o+c.offset}if(!c||e.peekByte()===-1){(0,i.warn)("Could not find a preferred cmap table.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:false}}const h=e.getUint16();let u=false;const f=[];let d,p;if(h===0){e.skip(2+2);for(d=0;d<256;d++){const t=e.getByte();if(!t){continue}f.push({charCode:d,glyphId:t})}u=true}else if(h===2){e.skip(2+2);const t=[];let s=0;for(let i=0;i<256;i++){const i=e.getUint16()>>3;t.push(i);s=Math.max(i,s)}const i=[];for(let t=0;t<=s;t++){i.push({firstCode:e.getUint16(),entryCount:e.getUint16(),idDelta:E(e.getByte(),e.getByte()),idRangePos:e.pos+e.getUint16()})}for(let s=0;s<256;s++){if(t[s]===0){e.pos=i[0].idRangePos+2*s;p=e.getUint16();f.push({charCode:s,glyphId:p})}else{const n=i[t[s]];for(d=0;d<n.entryCount;d++){const t=(s<<8)+d+n.firstCode;e.pos=n.idRangePos+2*d;p=e.getUint16();if(p!==0){p=(p+n.idDelta)%65536}f.push({charCode:t,glyphId:p})}}}}else if(h===4){e.skip(2+2);const t=e.getUint16()>>1;e.skip(6);const s=[];let i;for(i=0;i<t;i++){s.push({end:e.getUint16()})}e.skip(2);for(i=0;i<t;i++){s[i].start=e.getUint16()}for(i=0;i<t;i++){s[i].delta=e.getUint16()}let n=0,a;for(i=0;i<t;i++){r=s[i];const o=e.getUint16();if(!o){r.offsetIndex=-1;continue}a=(o>>1)-(t-i);r.offsetIndex=a;n=Math.max(n,a+r.end-r.start+1)}const c=[];for(d=0;d<n;d++){c.push(e.getUint16())}for(i=0;i<t;i++){r=s[i];o=r.start;const t=r.end;const e=r.delta;a=r.offsetIndex;for(d=o;d<=t;d++){if(d===65535){continue}p=a<0?d:c[a+d-o];p=p+e&65535;f.push({charCode:d,glyphId:p})}}}else if(h===6){e.skip(2+2);const t=e.getUint16();const s=e.getUint16();for(d=0;d<s;d++){p=e.getUint16();const s=t+d;f.push({charCode:s,glyphId:p})}}else if(h===12){e.skip(2+4+4);const t=e.getInt32()>>>0;for(d=0;d<t;d++){const t=e.getInt32()>>>0;const s=e.getInt32()>>>0;let i=e.getInt32()>>>0;for(let e=t;e<=s;e++){f.push({charCode:e,glyphId:i++})}}}else{(0,i.warn)("cmap table has unsupported format: "+h);return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:false}}f.sort((function(t,e){return t.charCode-e.charCode}));for(let t=1;t<f.length;t++){if(f[t-1].charCode===f[t].charCode){f.splice(t,1);t--}}return{platformId:c.platformId,encodingId:c.encodingId,mappings:f,hasShortCmap:u}}function v(t,e,s,n,r,o){if(!e){if(s){s.data=null}return}t.pos=(t.start||0)+e.offset;t.pos+=4;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;t.pos+=2;const a=t.getUint16();t.pos+=8;t.pos+=2;let c=t.getUint16();if(a!==0){const t=F(n.data[44],n.data[45]);if(!(t&2)){e.data[22]=0;e.data[23]=0}}if(c>r){(0,i.info)(`The numOfMetrics (${c}) should not be `+`greater than the numGlyphs (${r}).`);c=r;e.data[34]=(c&65280)>>8;e.data[35]=c&255}const l=r-c;const h=l-(s.length-c*4>>1);if(h>0){const t=new Uint8Array(s.length+h*2);t.set(s.data);if(o){t[s.length]=s.data[2];t[s.length+1]=s.data[3]}s.data=t}}function x(t,e,s,i,n,r){const o={length:0,sizeOfInstructions:0};if(e<0||e>=t.length||s>t.length||s-e<=12){return o}const a=t.subarray(e,s);const c=E(a[2],a[3]);const l=E(a[4],a[5]);const h=E(a[6],a[7]);const u=E(a[8],a[9]);if(c>h){O(a,2,h);O(a,6,c)}if(l>u){O(a,4,u);O(a,8,l)}const f=E(a[0],a[1]);if(f<0){if(f<-1){return o}i.set(a,n);o.length=a.length;return o}let d,p=10,g=0;for(d=0;d<f;d++){const t=a[p]<<8|a[p+1];g=t+1;p+=2}const m=p;const w=a[p]<<8|a[p+1];o.sizeOfInstructions=w;p+=2+w;const b=p;let y=0;for(d=0;d<g;d++){const t=a[p++];if(t&192){a[p-1]=t&63}let e=2;if(t&2){e=1}else if(t&16){e=0}let s=2;if(t&4){s=1}else if(t&32){s=0}const i=e+s;y+=i;if(t&8){const t=a[p++];if(t===0){a[p-1]^=8}d+=t;y+=t*i}}if(y===0){return o}let A=p+y;if(A>a.length){return o}if(!r&&w>0){i.set(a.subarray(0,m),n);i.set([0,0],n+m);i.set(a.subarray(b,A),n+m+2);A-=w;if(a.length-A>3){A=A+3&~3}o.length=A;return o}if(a.length-A>3){A=A+3&~3;i.set(a.subarray(0,A),n);o.length=A;return o}i.set(a,n);o.length=a.length;return o}function k(t,e,s){const n=t.data;const r=T(n[0],n[1],n[2],n[3]);if(r>>16!==1){(0,i.info)("Attempting to fix invalid version in head table: "+r);n[0]=0;n[1]=1;n[2]=0;n[3]=0}const o=F(n[50],n[51]);if(o<0||o>1){(0,i.info)("Attempting to fix invalid indexToLocFormat in head table: "+o);const t=e+1;if(s===t<<1){n[50]=0;n[51]=0}else if(s===t<<2){n[50]=0;n[51]=1}else{throw new i.FormatError("Could not fix indexToLocFormat: "+o)}}}function C(t,e,s,i,n,r,o){let a,c,l;if(i){a=4;c=function t(e,s){return e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]};l=function t(e,s,i){e[s]=i>>>24&255;e[s+1]=i>>16&255;e[s+2]=i>>8&255;e[s+3]=i&255}}else{a=2;c=function t(e,s){return e[s]<<9|e[s+1]<<1};l=function t(e,s,i){e[s]=i>>9&255;e[s+1]=i>>1&255}}const h=r?s+1:s;const u=a*(1+h);const f=new Uint8Array(u);f.set(t.data.subarray(0,u));t.data=f;const d=e.data;const p=d.length;const g=new Uint8Array(p);let m,w;const b=[];for(m=0,w=0;m<s+1;m++,w+=a){let t=c(f,w);if(t>p){t=p}b.push({index:m,offset:t,endOffset:0})}b.sort(((t,e)=>t.offset-e.offset));for(m=0;m<s;m++){b[m].endOffset=b[m+1].offset}b.sort(((t,e)=>t.index-e.index));for(m=0;m<s;m++){const{offset:t,endOffset:e}=b[m];if(t!==0||e!==0){break}const s=b[m+1].offset;if(s===0){continue}b[m].endOffset=s;break}const y=Object.create(null);let A=0;l(f,0,A);for(m=0,w=a;m<s;m++,w+=a){const t=x(d,b[m].offset,b[m].endOffset,g,A,n);const e=t.length;if(e===0){y[m]=true}if(t.sizeOfInstructions>o){o=t.sizeOfInstructions}A+=e;l(f,w,A)}if(A===0){const t=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(m=0,w=a;m<h;m++,w+=a){l(f,w,t.length)}e.data=t}else if(r){const s=c(f,a);if(g.length>s+A){e.data=g.subarray(0,s+A)}else{e.data=new Uint8Array(s+A);e.data.set(g.subarray(0,A))}e.data.set(g.subarray(0,s),A);l(t.data,f.length-a,A+s)}else{e.data=g.subarray(0,A)}return{missingGlyphs:y,maxSizeOfInstructions:o}}function _(t,s,n){const o=(e.start||0)+t.offset;e.pos=o;const a=t.length,c=o+a;const l=e.getInt32();e.skip(28);let h;let u=true;let f;switch(l){case 65536:h=r.MacStandardGlyphOrdering;break;case 131072:const t=e.getUint16();if(t!==n){u=false;break}const o=[];for(f=0;f<t;++f){const t=e.getUint16();if(t>=32768){u=false;break}o.push(t)}if(!u){break}const a=[],d=[];while(e.pos<c){const t=e.getByte();d.length=t;for(f=0;f<t;++f){d[f]=String.fromCharCode(e.getByte())}a.push(d.join(""))}h=[];for(f=0;f<t;++f){const t=o[f];if(t<258){h.push(r.MacStandardGlyphOrdering[t]);continue}h.push(a[t-258])}break;case 196608:break;default:(0,i.warn)("Unknown/unsupported post table version "+l);u=false;if(s.defaultEncoding){h=s.defaultEncoding}break}s.glyphNames=h;return u}function I(t){const s=(e.start||0)+t.offset;e.pos=s;const i=[[],[]],n=[];const r=t.length,o=s+r;const a=e.getUint16();const c=6;if(a!==0||r<c){return[i,n]}const l=e.getUint16();const h=e.getUint16();const u=12;let f,d;for(f=0;f<l&&e.pos+u<=o;f++){const t={platform:e.getUint16(),encoding:e.getUint16(),language:e.getUint16(),name:e.getUint16(),length:e.getUint16(),offset:e.getUint16()};if(G(t)||q(t)){n.push(t)}}for(f=0,d=n.length;f<d;f++){const t=n[f];if(t.length<=0){continue}const r=s+h+t.offset;if(r+t.length>o){continue}e.pos=r;const a=t.name;if(t.encoding){let s="";for(let i=0,n=t.length;i<n;i+=2){s+=String.fromCharCode(e.getUint16())}i[1][a]=s}else{i[0][a]=e.getString(t.length)}}return[i,n]}const D=[0,0,0,0,0,0,0,0,-2,-2,-2,-2,0,0,-2,-5,-1,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,-1,-1,1,-1,-999,0,1,0,-1,-2,0,-1,-2,-1,-1,0,-1,-1,0,0,-999,-999,-1,-1,-1,-1,-2,-999,-2,-2,-999,0,-2,-2,0,0,-2,0,-2,0,0,0,-2,-1,-1,1,1,0,0,-1,-1,-1,-1,-1,-1,-1,0,0,-1,0,-1,-1,0,-999,-1,-1,-1,-1,-1,-1,0,0,0,0,0,0,0,0,0,0,0,0,-2,-999,-999,-999,-999,-999,-1,-1,-2,-2,0,0,0,0,-1,-1,-999,-2,-2,0,0,-1,-2,-2,0,0,0,-1,-1,-1,-2];function P(t,e){let s=t.data;let n=0,r,o,a,c,l,h=0,u=0;const f=[];const d=[];const p=[];let g=e.tooComplexToFollowFunctions;let m=false,w=0,b=0;for(let t=s.length;n<t;){const t=s[n++];if(t===64){o=s[n++];if(m||b){n+=o}else{for(r=0;r<o;r++){f.push(s[n++])}}}else if(t===65){o=s[n++];if(m||b){n+=o*2}else{for(r=0;r<o;r++){a=s[n++];f.push(a<<8|s[n++])}}}else if((t&248)===176){o=t-176+1;if(m||b){n+=o}else{for(r=0;r<o;r++){f.push(s[n++])}}}else if((t&248)===184){o=t-184+1;if(m||b){n+=o*2}else{for(r=0;r<o;r++){a=s[n++];f.push(a<<8|s[n++])}}}else if(t===43&&!g){if(!m&&!b){c=f.at(-1);if(isNaN(c)){(0,i.info)("TT: CALL empty stack (or invalid entry).")}else{e.functionsUsed[c]=true;if(c in e.functionsStackDeltas){const t=f.length+e.functionsStackDeltas[c];if(t<0){(0,i.warn)("TT: CALL invalid functions stack delta.");e.hintsValid=false;return}f.length=t}else if(c in e.functionsDefined&&!p.includes(c)){d.push({data:s,i:n,stackTop:f.length-1});p.push(c);l=e.functionsDefined[c];if(!l){(0,i.warn)("TT: CALL non-existent function");e.hintsValid=false;return}s=l.data;n=l.i}}}}else if(t===44&&!g){if(m||b){(0,i.warn)("TT: nested FDEFs not allowed");g=true}m=true;u=n;c=f.pop();e.functionsDefined[c]={data:s,i:n}}else if(t===45){if(m){m=false;h=n}else{l=d.pop();if(!l){(0,i.warn)("TT: ENDF bad stack");e.hintsValid=false;return}c=p.pop();s=l.data;n=l.i;e.functionsStackDeltas[c]=f.length-l.stackTop}}else if(t===137){if(m||b){(0,i.warn)("TT: nested IDEFs not allowed");g=true}m=true;u=n}else if(t===88){++w}else if(t===27){b=w}else if(t===89){if(b===w){b=0}--w}else if(t===28){if(!m&&!b){const t=f.at(-1);if(t>0){n+=t-1}}}if(!m&&!b){let e=0;if(t<=142){e=D[t]}else if(t>=192&&t<=223){e=-1}else if(t>=224){e=-2}if(t>=113&&t<=117){o=f.pop();if(!isNaN(o)){e=-o*2}}while(e<0&&f.length>0){f.pop();e++}while(e>0){f.push(NaN);e--}}}e.tooComplexToFollowFunctions=g;const y=[s];if(n>s.length){y.push(new Uint8Array(n-s.length))}if(u>h){(0,i.warn)("TT: complementing a missing function tail");y.push(new Uint8Array([34,45]))}L(t,y)}function R(t,e){if(t.tooComplexToFollowFunctions){return}if(t.functionsDefined.length>e){(0,i.warn)("TT: more functions defined than expected");t.hintsValid=false;return}for(let s=0,n=t.functionsUsed.length;s<n;s++){if(s>e){(0,i.warn)("TT: invalid function id: "+s);t.hintsValid=false;return}if(t.functionsUsed[s]&&!t.functionsDefined[s]){(0,i.warn)("TT: undefined function: "+s);t.hintsValid=false;return}}}function L(t,e){if(e.length>1){let s=0;let i,n;for(i=0,n=e.length;i<n;i++){s+=e[i].length}s=s+3&~3;const r=new Uint8Array(s);let o=0;for(i=0,n=e.length;i<n;i++){r.set(e[i],o);o+=e[i].length}t.data=r;t.length=s}}function B(t,e,s,i){const n={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:false,hintsValid:true};if(t){P(t,n)}if(e){P(e,n)}if(t){R(n,i)}if(s&&s.length&1){const t=new Uint8Array(s.length+1);t.set(s.data);s.data=t}return n.hintsValid}e=new b.Stream(new Uint8Array(e.getBytes()));let $,U;if(N(e)){const t=y(e,this.name);$=t.header;U=t.tables}else{$=d(e);U=l(e,$.numTables)}let j,H;const z=!U["CFF "];if(!z){const e=s.composite&&(s.cidToGidMap?.length>0||!(s.cMap instanceof g.IdentityCMap));if($.version==="OTTO"&&!e||!U.head||!U.hhea||!U.maxp||!U.post){H=new b.Stream(U["CFF "].data);j=new u.CFFFont(H,s);S(s);return this.convert(t,j,s)}delete U.glyf;delete U.loca;delete U.fpgm;delete U.prep;delete U["cvt "];this.isOpenType=true}else{if(!U.loca){throw new i.FormatError('Required "loca" table is not found')}if(!U.glyf){(0,i.warn)('Required "glyf" table is not found -- trying to recover.');U.glyf={tag:"glyf",data:new Uint8Array(0)}}this.isOpenType=false}if(!U.maxp){throw new i.FormatError('Required "maxp" table is not found')}e.pos=(e.start||0)+U.maxp.offset;const Q=e.getInt32();const tt=e.getUint16();if(s.scaleFactors?.length===tt&&z){const{scaleFactors:t}=s;const e=F(U.head.data[50],U.head.data[51]);const i=new p.GlyfTable({glyfTable:U.glyf.data,isGlyphLocationsLong:e,locaTable:U.loca.data,numGlyphs:tt});i.scale(t);const{glyf:n,loca:r,isLocationLong:o}=i.write();U.glyf.data=n;U.loca.data=r;if(o!==!!e){U.head.data[50]=0;U.head.data[51]=o?1:0}const a=U.hmtx.data;for(let e=0;e<tt;e++){const s=4*e;const i=Math.round(t[e]*F(a[s],a[s+1]));a[s]=i>>8&255;a[s+1]=i&255;const n=Math.round(t[e]*E(a[s+2],a[s+3]));O(a,s+2,n)}}let et=tt+1;let st=true;if(et>65535){st=false;et=tt;(0,i.warn)("Not enough space in glyfs to duplicate first glyph.")}let it=0;let nt=0;if(Q>=65536&&U.maxp.length>=22){e.pos+=8;const t=e.getUint16();if(t>2){U.maxp.data[14]=0;U.maxp.data[15]=2}e.pos+=4;it=e.getUint16();e.pos+=4;nt=e.getUint16()}U.maxp.data[4]=et>>8;U.maxp.data[5]=et&255;const rt=B(U.fpgm,U.prep,U["cvt "],it);if(!rt){delete U.fpgm;delete U.prep;delete U["cvt "]}v(e,U.hhea,U.hmtx,U.head,et,st);if(!U.head){throw new i.FormatError('Required "head" table is not found')}k(U.head,tt,z?U.loca.length:0);let ot=Object.create(null);if(z){const t=F(U.head.data[50],U.head.data[51]);const e=C(U.loca,U.glyf,tt,t,rt,st,nt);ot=e.missingGlyphs;if(Q>=65536&&U.maxp.length>=22){U.maxp.data[26]=e.maxSizeOfInstructions>>8;U.maxp.data[27]=e.maxSizeOfInstructions&255}}if(!U.hhea){throw new i.FormatError('Required "hhea" table is not found')}if(U.hhea.data[10]===0&&U.hhea.data[11]===0){U.hhea.data[10]=255;U.hhea.data[11]=255}const at={unitsPerEm:F(U.head.data[18],U.head.data[19]),yMax:E(U.head.data[42],U.head.data[43]),yMin:E(U.head.data[38],U.head.data[39]),ascent:E(U.hhea.data[4],U.hhea.data[5]),descent:E(U.hhea.data[6],U.hhea.data[7]),lineGap:E(U.hhea.data[8],U.hhea.data[9])};this.ascent=at.ascent/at.unitsPerEm;this.descent=at.descent/at.unitsPerEm;this.lineGap=at.lineGap/at.unitsPerEm;if(this.cssFontInfo?.lineHeight){this.lineHeight=this.cssFontInfo.metrics.lineHeight;this.lineGap=this.cssFontInfo.metrics.lineGap}else{this.lineHeight=this.ascent-this.descent+this.lineGap}if(U.post){_(U.post,s,tt)}U.post={tag:"post",data:Y(s)};const ct=[];function lt(t){return!ot[t]}if(s.composite){const t=s.cidToGidMap||[];const e=t.length===0;s.cMap.forEach((function(s,n){if(typeof n==="string"){n=X(s,n,true)}if(n>65535){throw new i.FormatError("Max size of CID is 65,535")}let r=-1;if(e){r=n}else if(t[n]!==undefined){r=t[n]}if(r>=0&&r<tt&<(r)){ct[s]=r}}))}else{const t=A(U.cmap,e,this.isSymbolicFont,s.hasEncoding);const i=t.platformId;const n=t.encodingId;const o=t.mappings;let l=[],u=false;if(s.hasEncoding&&(s.baseEncodingName==="MacRomanEncoding"||s.baseEncodingName==="WinAnsiEncoding")){l=(0,c.getEncoding)(s.baseEncodingName)}if(s.hasEncoding&&!this.isSymbolicFont&&(i===3&&n===1||i===1&&n===0)){const t=(0,a.getGlyphsUnicode)();for(let e=0;e<256;e++){let a;if(this.differences[e]!==undefined){a=this.differences[e]}else if(l.length&&l[e]!==""){a=l[e]}else{a=c.StandardEncoding[e]}if(!a){continue}const u=(0,r.recoverGlyphName)(a,t);let f;if(i===3&&n===1){f=t[u]}else if(i===1&&n===0){f=c.MacRomanEncoding.indexOf(u)}if(f===undefined){if(!s.glyphNames&&s.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof h.IdentityToUnicodeMap)){const t=this.toUnicode.get(e);if(t){f=t.codePointAt(0)}}if(f===undefined){continue}}for(const t of o){if(t.charCode!==f){continue}ct[e]=t.glyphId;break}}}else if(i===0){for(const t of o){ct[t.charCode]=t.glyphId}u=true}else{for(const t of o){let e=t.charCode;if(i===3&&e>=61440&&e<=61695){e&=255}ct[e]=t.glyphId}}if(s.glyphNames&&(l.length||this.differences.length)){for(let t=0;t<256;++t){if(!u&&ct[t]!==undefined){continue}const e=this.differences[t]||l[t];if(!e){continue}const i=s.glyphNames.indexOf(e);if(i>0&<(i)){ct[t]=i}}}}if(ct.length===0){ct[0]=0}let ht=et-1;if(!st){ht=0}if(!s.cssFontInfo){const t=W(ct,lt,ht,this.toUnicode);this.toFontChar=t.toFontChar;U.cmap={tag:"cmap",data:V(t.charCodeToGlyphId,t.toUnicodeExtraMap,et)};if(!U["OS/2"]||!K(U["OS/2"],e)){U["OS/2"]={tag:"OS/2",data:J(s,t.charCodeToGlyphId,at)}}}if(!z){try{H=new b.Stream(U["CFF "].data);const t=new n.CFFParser(H,s,r.SEAC_ANALYSIS_ENABLED);j=t.parse();j.duplicateFirstGlyph();const e=new n.CFFCompiler(j);U["CFF "].data=e.compile()}catch{(0,i.warn)("Failed to compile font "+s.loadedName)}}if(!U.name){U.name={tag:"name",data:Z(this.name)}}else{const[e,i]=I(U.name);U.name.data=Z(t,e);this.psName=e[0][6]||null;if(!s.composite){M(s,this.isSymbolicFont,i)}}const ut=new m.OpenTypeFileBuilder($.version);for(const t in U){ut.addTable(t,U[t].data)}return ut.toArray()}convert(t,e,s){s.fixedPitch=false;if(s.builtInEncoding){C(s,s.builtInEncoding)}let n=1;if(e instanceof u.CFFFont){n=e.numGlyphs-1}const o=e.getGlyphMapping(s);let a=null;let l=o;let h=null;if(!s.cssFontInfo){a=W(o,e.hasGlyphId.bind(e),n,this.toUnicode);this.toFontChar=a.toFontChar;l=a.charCodeToGlyphId;h=a.toUnicodeExtraMap}const f=e.numGlyphs;function d(t,e){let s=null;for(const i in t){if(e===t[i]){(s||=[]).push(i|0)}}return s}function p(t,e){for(const s in t){if(e===t[s]){return s|0}}a.charCodeToGlyphId[a.nextAvailableFontCharCode]=e;return a.nextAvailableFontCharCode++}const g=e.seacs;if(a&&r.SEAC_ANALYSIS_ENABLED&&g?.length){const t=s.fontMatrix||i.FONT_IDENTITY_MATRIX;const n=e.getCharset();const r=Object.create(null);for(let e in g){e|=0;const s=g[e];const i=c.StandardEncoding[s[2]];const l=c.StandardEncoding[s[3]];const h=n.indexOf(i);const u=n.indexOf(l);if(h<0||u<0){continue}const f={x:s[0]*t[0]+s[1]*t[2]+t[4],y:s[0]*t[1]+s[1]*t[3]+t[5]};const m=d(o,e);if(!m){continue}for(const t of m){const e=a.charCodeToGlyphId;const s=p(e,h);const i=p(e,u);r[t]={baseFontCharCode:s,accentFontCharCode:i,accentOffset:f}}}s.seacMap=r}const w=1/(s.fontMatrix||i.FONT_IDENTITY_MATRIX)[0];const b=new m.OpenTypeFileBuilder("OTTO");b.addTable("CFF ",e.data);b.addTable("OS/2",J(s,l));b.addTable("cmap",V(l,h,f));b.addTable("head","\0\0\0"+"\0\0\0"+"\0\0\0\0"+"_<õ"+"\0\0"+P(w)+"\0\0\0\0\v~'"+"\0\0\0\0\v~'"+"\0\0"+P(s.descent)+"ÿ"+P(s.ascent)+D(s.italicAngle?2:0)+"\0"+"\0\0"+"\0\0"+"\0\0");b.addTable("hhea","\0\0\0"+P(s.ascent)+P(s.descent)+"\0\0"+"ÿÿ"+"\0\0"+"\0\0"+"\0\0"+P(s.capHeight)+P(Math.tan(s.italicAngle)*s.xHeight)+"\0\0"+"\0\0"+"\0\0"+"\0\0"+"\0\0"+"\0\0"+D(f));b.addTable("hmtx",function t(){const s=e.charstrings;const i=e.cff?e.cff.widths:null;let n="\0\0\0\0";for(let t=1,e=f;t<e;t++){let e=0;if(s){const i=s[t-1];e="width"in i?i.width:0}else if(i){e=Math.ceil(i[t]||0)}n+=D(e)+D(0)}return n}());b.addTable("maxp","\0\0P\0"+D(f));b.addTable("name",Z(t));b.addTable("post",Y(s));return b.toArray()}get spaceWidth(){const t=["space","minus","one","i","I"];let e;for(const s of t){if(s in this.widths){e=this.widths[s];break}const t=(0,a.getGlyphsUnicode)();const i=t[s];let n=0;if(this.composite&&this.cMap.contains(i)){n=this.cMap.lookup(i);if(typeof n==="string"){n=X(i,n)}}if(!n&&this.toUnicode){n=this.toUnicode.charCodeOf(i)}if(n<=0){n=i}e=this.widths[n];if(e){break}}return(0,i.shadow)(this,"spaceWidth",e||this.defaultWidth)}_charToGlyph(t,e=false){let s=this._glyphCache[t];if(s?.isSpace===e){return s}let n,r,a;let c=t;if(this.cMap?.contains(t)){c=this.cMap.lookup(t);if(typeof c==="string"){c=X(t,c)}}r=this.widths[c];if(typeof r!=="number"){r=this.defaultWidth}const l=this.vmetrics?.[c];let h=this.toUnicode.get(t)||t;if(typeof h==="number"){h=String.fromCharCode(h)}let u=this.toFontChar[t]!==undefined;n=this.toFontChar[t]||t;if(this.missingFile){const e=this.differences[t]||this.defaultEncoding[t];if((e===".notdef"||e==="")&&this.type==="Type1"){n=32}n=(0,o.mapSpecialUnicodeValues)(n)}if(this.isType3Font){a=n}let f=null;if(this.seacMap?.[t]){u=true;const e=this.seacMap[t];n=e.baseFontCharCode;f={fontChar:String.fromCodePoint(e.accentFontCharCode),offset:e.accentOffset}}let d="";if(typeof n==="number"){if(n<=1114111){d=String.fromCodePoint(n)}else{(0,i.warn)(`charToGlyph - invalid fontCharCode: ${n}`)}}s=new I(t,d,h,f,r,l,a,e,u);return this._glyphCache[t]=s}charsToGlyphs(t){let e=this._charsCache[t];if(e){return e}e=[];if(this.cMap){const s=Object.create(null),i=t.length;let n=0;while(n<i){this.cMap.readCharCode(t,n,s);const{charcode:i,length:r}=s;n+=r;const o=this._charToGlyph(i,r===1&&t.charCodeAt(n-1)===32);e.push(o)}}else{for(let s=0,i=t.length;s<i;++s){const i=t.charCodeAt(s);const n=this._charToGlyph(i,i===32);e.push(n)}}return this._charsCache[t]=e}getCharPositions(t){const e=[];if(this.cMap){const s=Object.create(null);let i=0;while(i<t.length){this.cMap.readCharCode(t,i,s);const n=s.length;e.push([i,i+n]);i+=n}}else{for(let s=0,i=t.length;s<i;++s){e.push([s,s+1])}}return e}get glyphCacheValues(){return Object.values(this._glyphCache)}encodeString(t){const e=[];const s=[];const i=()=>e.length%2===1;const n=this.toUnicode instanceof h.IdentityToUnicodeMap?t=>this.toUnicode.charCodeOf(t):t=>this.toUnicode.charCodeOf(String.fromCodePoint(t));for(let r=0,o=t.length;r<o;r++){const o=t.codePointAt(r);if(o>55295&&(o<57344||o>65533)){r++}if(this.toUnicode){const t=n(o);if(t!==-1){if(i()){e.push(s.join(""));s.length=0}const n=this.cMap?this.cMap.getCharCodeLength(t):1;for(let e=n-1;e>=0;e--){s.push(String.fromCharCode(t>>8*e&255))}continue}}if(!i()){e.push(s.join(""));s.length=0}s.push(String.fromCodePoint(o))}e.push(s.join(""));return e}}e.Font=tt;class et{constructor(t){this.error=t;this.loadedName="g_font_error";this.missingFile=true}charsToGlyphs(){return[]}encodeString(t){return[t]}exportData(t=false){return{error:this.error}}}e.ErrorFont=et},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.CFFTopDict=e.CFFStrings=e.CFFStandardStrings=e.CFFPrivateDict=e.CFFParser=e.CFFIndex=e.CFFHeader=e.CFFFDSelect=e.CFFCompiler=e.CFFCharset=e.CFF=void 0;var i=s(2);var n=s(36);var r=s(37);const o=10;const a=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"];e.CFFStandardStrings=a;const c=391;const l=[null,{id:"hstem",min:2,stackClearing:true,stem:true},null,{id:"vstem",min:2,stackClearing:true,stem:true},{id:"vmoveto",min:1,stackClearing:true},{id:"rlineto",min:2,resetStack:true},{id:"hlineto",min:1,resetStack:true},{id:"vlineto",min:1,resetStack:true},{id:"rrcurveto",min:6,resetStack:true},null,{id:"callsubr",min:1,undefStack:true},{id:"return",min:0,undefStack:true},null,null,{id:"endchar",min:0,stackClearing:true},null,null,null,{id:"hstemhm",min:2,stackClearing:true,stem:true},{id:"hintmask",min:0,stackClearing:true},{id:"cntrmask",min:0,stackClearing:true},{id:"rmoveto",min:2,stackClearing:true},{id:"hmoveto",min:1,stackClearing:true},{id:"vstemhm",min:2,stackClearing:true,stem:true},{id:"rcurveline",min:8,resetStack:true},{id:"rlinecurve",min:8,resetStack:true},{id:"vvcurveto",min:4,resetStack:true},{id:"hhcurveto",min:4,resetStack:true},null,{id:"callgsubr",min:1,undefStack:true},{id:"vhcurveto",min:4,resetStack:true},{id:"hvcurveto",min:4,resetStack:true}];const h=[null,null,null,{id:"and",min:2,stackDelta:-1},{id:"or",min:2,stackDelta:-1},{id:"not",min:1,stackDelta:0},null,null,null,{id:"abs",min:1,stackDelta:0},{id:"add",min:2,stackDelta:-1,stackFn(t,e){t[e-2]=t[e-2]+t[e-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(t,e){t[e-2]=t[e-2]-t[e-1]}},{id:"div",min:2,stackDelta:-1,stackFn(t,e){t[e-2]=t[e-2]/t[e-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(t,e){t[e-1]=-t[e-1]}},{id:"eq",min:2,stackDelta:-1},null,null,{id:"drop",min:1,stackDelta:-1},null,{id:"put",min:2,stackDelta:-2},{id:"get",min:1,stackDelta:0},{id:"ifelse",min:4,stackDelta:-3},{id:"random",min:0,stackDelta:1},{id:"mul",min:2,stackDelta:-1,stackFn(t,e){t[e-2]=t[e-2]*t[e-1]}},null,{id:"sqrt",min:1,stackDelta:0},{id:"dup",min:1,stackDelta:1},{id:"exch",min:2,stackDelta:0},{id:"index",min:2,stackDelta:0},{id:"roll",min:3,stackDelta:-2},null,null,null,{id:"hflex",min:7,resetStack:true},{id:"flex",min:13,resetStack:true},{id:"hflex1",min:9,resetStack:true},{id:"flex1",min:11,resetStack:true}];class u{constructor(t,e,s){this.bytes=t.getBytes();this.properties=e;this.seacAnalysisEnabled=!!s}parse(){const t=this.properties;const e=new f;this.cff=e;const s=this.parseHeader();const i=this.parseIndex(s.endPos);const n=this.parseIndex(i.endPos);const r=this.parseIndex(n.endPos);const o=this.parseIndex(r.endPos);const a=this.parseDict(n.obj.get(0));const c=this.createDict(b,a,e.strings);e.header=s.obj;e.names=this.parseNameIndex(i.obj);e.strings=this.parseStringIndex(r.obj);e.topDict=c;e.globalSubrIndex=o.obj;this.parsePrivateDict(e.topDict);e.isCIDFont=c.hasName("ROS");const l=c.getByName("CharStrings");const h=this.parseIndex(l).obj;const u=c.getByName("FontMatrix");if(u){t.fontMatrix=u}const d=c.getByName("FontBBox");if(d){t.ascent=Math.max(d[3],d[1]);t.descent=Math.min(d[1],d[3]);t.ascentScaled=true}let p,g;if(e.isCIDFont){const t=this.parseIndex(c.getByName("FDArray")).obj;for(let s=0,i=t.count;s<i;++s){const i=t.get(s);const n=this.createDict(b,this.parseDict(i),e.strings);this.parsePrivateDict(n);e.fdArray.push(n)}g=null;p=this.parseCharsets(c.getByName("charset"),h.count,e.strings,true);e.fdSelect=this.parseFDSelect(c.getByName("FDSelect"),h.count)}else{p=this.parseCharsets(c.getByName("charset"),h.count,e.strings,false);g=this.parseEncoding(c.getByName("Encoding"),t,e.strings,p.charset)}e.charset=p;e.encoding=g;const m=this.parseCharStrings({charStrings:h,localSubrIndex:c.privateDict.subrsIndex,globalSubrIndex:o.obj,fdSelect:e.fdSelect,fdArray:e.fdArray,privateDict:c.privateDict});e.charStrings=m.charStrings;e.seacs=m.seacs;e.widths=m.widths;return e}parseHeader(){let t=this.bytes;const e=t.length;let s=0;while(s<e&&t[s]!==1){++s}if(s>=e){throw new i.FormatError("Invalid CFF header")}if(s!==0){(0,i.info)("cff data is shifted");t=t.subarray(s);this.bytes=t}const n=t[0];const r=t[1];const o=t[2];const a=t[3];const c=new d(n,r,o,a);return{obj:c,endPos:o}}parseDict(t){let e=0;function s(){let s=t[e++];if(s===30){return n()}else if(s===28){s=t[e++];s=(s<<24|t[e++]<<16)>>16;return s}else if(s===29){s=t[e++];s=s<<8|t[e++];s=s<<8|t[e++];s=s<<8|t[e++];return s}else if(s>=32&&s<=246){return s-139}else if(s>=247&&s<=250){return(s-247)*256+t[e++]+108}else if(s>=251&&s<=254){return-((s-251)*256)-t[e++]-108}(0,i.warn)('CFFParser_parseDict: "'+s+'" is a reserved command.');return NaN}function n(){let s="";const i=15;const n=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];const r=t.length;while(e<r){const r=t[e++];const o=r>>4;const a=r&15;if(o===i){break}s+=n[o];if(a===i){break}s+=n[a]}return parseFloat(s)}let r=[];const o=[];e=0;const a=t.length;while(e<a){let i=t[e];if(i<=21){if(i===12){i=i<<8|t[++e]}o.push([i,r]);r=[];++e}else{r.push(s())}}return o}parseIndex(t){const e=new g;const s=this.bytes;const i=s[t++]<<8|s[t++];const n=[];let r=t;let o,a;if(i!==0){const e=s[t++];const c=t+(i+1)*e-1;for(o=0,a=i+1;o<a;++o){let i=0;for(let n=0;n<e;++n){i<<=8;i+=s[t++]}n.push(c+i)}r=n[i]}for(o=0,a=n.length-1;o<a;++o){const t=n[o];const i=n[o+1];e.add(s.subarray(t,i))}return{obj:e,endPos:r}}parseNameIndex(t){const e=[];for(let s=0,n=t.count;s<n;++s){const n=t.get(s);e.push((0,i.bytesToString)(n))}return e}parseStringIndex(t){const e=new p;for(let s=0,n=t.count;s<n;++s){const n=t.get(s);e.add((0,i.bytesToString)(n))}return e}createDict(t,e,s){const i=new t(s);for(const[t,s]of e){i.setByKey(t,s)}return i}parseCharString(t,e,s,n){if(!e||t.callDepth>o){return false}let r=t.stackSize;const a=t.stack;let c=e.length;for(let o=0;o<c;){const u=e[o++];let f=null;if(u===12){const t=e[o++];if(t===0){e[o-2]=139;e[o-1]=22;r=0}else{f=h[t]}}else if(u===28){a[r]=(e[o]<<24|e[o+1]<<16)>>16;o+=2;r++}else if(u===14){if(r>=4){r-=4;if(this.seacAnalysisEnabled){t.seac=a.slice(r,r+4);return false}}f=l[u]}else if(u>=32&&u<=246){a[r]=u-139;r++}else if(u>=247&&u<=254){a[r]=u<251?(u-247<<8)+e[o]+108:-(u-251<<8)-e[o]-108;o++;r++}else if(u===255){a[r]=(e[o]<<24|e[o+1]<<16|e[o+2]<<8|e[o+3])/65536;o+=4;r++}else if(u===19||u===20){t.hints+=r>>1;if(t.hints===0){e.copyWithin(o-1,o,-1);o-=1;c-=1;continue}o+=t.hints+7>>3;r%=2;f=l[u]}else if(u===10||u===29){const e=u===10?s:n;if(!e){f=l[u];(0,i.warn)("Missing subrsIndex for "+f.id);return false}let o=32768;if(e.count<1240){o=107}else if(e.count<33900){o=1131}const c=a[--r]+o;if(c<0||c>=e.count||isNaN(c)){f=l[u];(0,i.warn)("Out of bounds subrIndex for "+f.id);return false}t.stackSize=r;t.callDepth++;const h=this.parseCharString(t,e.get(c),s,n);if(!h){return false}t.callDepth--;r=t.stackSize;continue}else if(u===11){t.stackSize=r;return true}else if(u===0&&o===e.length){e[o-1]=14;f=l[14]}else if(u===9){e.copyWithin(o-1,o,-1);o-=1;c-=1;continue}else{f=l[u]}if(f){if(f.stem){t.hints+=r>>1;if(u===3||u===23){t.hasVStems=true}else if(t.hasVStems&&(u===1||u===18)){(0,i.warn)("CFF stem hints are in wrong order");e[o-1]=u===1?3:23}}if("min"in f){if(!t.undefStack&&r<f.min){(0,i.warn)("Not enough parameters for "+f.id+"; actual: "+r+", expected: "+f.min);if(r===0){e[o-1]=14;return true}return false}}if(t.firstStackClearing&&f.stackClearing){t.firstStackClearing=false;r-=f.min;if(r>=2&&f.stem){r%=2}else if(r>1){(0,i.warn)("Found too many parameters for stack-clearing command")}if(r>0){t.width=a[r-1]}}if("stackDelta"in f){if("stackFn"in f){f.stackFn(a,r)}r+=f.stackDelta}else if(f.stackClearing){r=0}else if(f.resetStack){r=0;t.undefStack=false}else if(f.undefStack){r=0;t.undefStack=true;t.firstStackClearing=false}}}if(c<e.length){e.fill(14,c)}t.stackSize=r;return true}parseCharStrings({charStrings:t,localSubrIndex:e,globalSubrIndex:s,fdSelect:n,fdArray:r,privateDict:o}){const a=[];const c=[];const l=t.count;for(let h=0;h<l;h++){const l=t.get(h);const u={callDepth:0,stackSize:0,stack:[],undefStack:true,hints:0,firstStackClearing:true,seac:null,width:null,hasVStems:false};let f=true;let d=null;let p=o;if(n&&r.length){const t=n.getFDIndex(h);if(t===-1){(0,i.warn)("Glyph index is not in fd select.");f=false}if(t>=r.length){(0,i.warn)("Invalid fd index for glyph index.");f=false}if(f){p=r[t].privateDict;d=p.subrsIndex}}else if(e){d=e}if(f){f=this.parseCharString(u,l,d,s)}if(u.width!==null){const t=p.getByName("nominalWidthX");c[h]=t+u.width}else{const t=p.getByName("defaultWidthX");c[h]=t}if(u.seac!==null){a[h]=u.seac}if(!f){t.set(h,new Uint8Array([14]))}}return{charStrings:t,seacs:a,widths:c}}emptyPrivateDictionary(t){const e=this.createDict(A,[],t.strings);t.setByKey(18,[0,0]);t.privateDict=e}parsePrivateDict(t){if(!t.hasName("Private")){this.emptyPrivateDictionary(t);return}const e=t.getByName("Private");if(!Array.isArray(e)||e.length!==2){t.removeByName("Private");return}const s=e[0];const i=e[1];if(s===0||i>=this.bytes.length){this.emptyPrivateDictionary(t);return}const n=i+s;const r=this.bytes.subarray(i,n);const o=this.parseDict(r);const a=this.createDict(A,o,t.strings);t.privateDict=a;if(a.getByName("ExpansionFactor")===0){a.setByName("ExpansionFactor",.06)}if(!a.getByName("Subrs")){return}const c=a.getByName("Subrs");const l=i+c;if(c===0||l>=this.bytes.length){this.emptyPrivateDictionary(t);return}const h=this.parseIndex(l);a.subrsIndex=h.obj}parseCharsets(t,e,s,r){if(t===0){return new x(true,v.ISO_ADOBE,n.ISOAdobeCharset)}else if(t===1){return new x(true,v.EXPERT,n.ExpertCharset)}else if(t===2){return new x(true,v.EXPERT_SUBSET,n.ExpertSubsetCharset)}const o=this.bytes;const a=t;const c=o[t++];const l=[r?0:".notdef"];let h,u,f;e-=1;switch(c){case 0:for(f=0;f<e;f++){h=o[t++]<<8|o[t++];l.push(r?h:s.get(h))}break;case 1:while(l.length<=e){h=o[t++]<<8|o[t++];u=o[t++];for(f=0;f<=u;f++){l.push(r?h++:s.get(h++))}}break;case 2:while(l.length<=e){h=o[t++]<<8|o[t++];u=o[t++]<<8|o[t++];for(f=0;f<=u;f++){l.push(r?h++:s.get(h++))}}break;default:throw new i.FormatError("Unknown charset format")}const d=t;const p=o.subarray(a,d);return new x(false,c,l,p)}parseEncoding(t,e,s,n){const o=Object.create(null);const a=this.bytes;let c=false;let l,h,u;let f=null;function d(){const e=a[t++];for(h=0;h<e;h++){const e=a[t++];const i=(a[t++]<<8)+(a[t++]&255);o[e]=n.indexOf(s.get(i))}}if(t===0||t===1){c=true;l=t;const e=t?r.ExpertEncoding:r.StandardEncoding;for(h=0,u=n.length;h<u;h++){const t=e.indexOf(n[h]);if(t!==-1){o[t]=h}}}else{const e=t;l=a[t++];switch(l&127){case 0:const e=a[t++];for(h=1;h<=e;h++){o[a[t++]]=h}break;case 1:const s=a[t++];let n=1;for(h=0;h<s;h++){const e=a[t++];const s=a[t++];for(let t=e;t<=e+s;t++){o[t]=n++}}break;default:throw new i.FormatError(`Unknown encoding format: ${l} in CFF`)}const s=t;if(l&128){a[e]&=127;d()}f=a.subarray(e,s)}l&=127;return new k(c,l,o,f)}parseFDSelect(t,e){const s=this.bytes;const n=s[t++];const r=[];let o;switch(n){case 0:for(o=0;o<e;++o){const e=s[t++];r.push(e)}break;case 3:const a=s[t++]<<8|s[t++];for(o=0;o<a;++o){let e=s[t++]<<8|s[t++];if(o===0&&e!==0){(0,i.warn)("parseFDSelect: The first range must have a first GID of 0"+" -- trying to recover.");e=0}const n=s[t++];const a=s[t]<<8|s[t+1];for(let t=e;t<a;++t){r.push(n)}}t+=2;break;default:throw new i.FormatError(`parseFDSelect: Unknown format "${n}".`)}if(r.length!==e){throw new i.FormatError("parseFDSelect: Invalid font data.")}return new S(n,r)}}e.CFFParser=u;class f{constructor(){this.header=null;this.names=[];this.topDict=null;this.strings=new p;this.globalSubrIndex=null;this.encoding=null;this.charset=null;this.charStrings=null;this.fdArray=[];this.fdSelect=null;this.isCIDFont=false}duplicateFirstGlyph(){if(this.charStrings.count>=65535){(0,i.warn)("Not enough space in charstrings to duplicate first glyph.");return}const t=this.charStrings.get(0);this.charStrings.add(t);if(this.isCIDFont){this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0])}}hasGlyphId(t){if(t<0||t>=this.charStrings.count){return false}const e=this.charStrings.get(t);return e.length>0}}e.CFF=f;class d{constructor(t,e,s,i){this.major=t;this.minor=e;this.hdrSize=s;this.offSize=i}}e.CFFHeader=d;class p{constructor(){this.strings=[]}get(t){if(t>=0&&t<=c-1){return a[t]}if(t-c<=this.strings.length){return this.strings[t-c]}return a[0]}getSID(t){let e=a.indexOf(t);if(e!==-1){return e}e=this.strings.indexOf(t);if(e!==-1){return e+c}return-1}add(t){this.strings.push(t)}get count(){return this.strings.length}}e.CFFStrings=p;class g{constructor(){this.objects=[];this.length=0}add(t){this.length+=t.length;this.objects.push(t)}set(t,e){this.length+=e.length-this.objects[t].length;this.objects[t]=e}get(t){return this.objects[t]}get count(){return this.objects.length}}e.CFFIndex=g;class m{constructor(t,e){this.keyToNameMap=t.keyToNameMap;this.nameToKeyMap=t.nameToKeyMap;this.defaults=t.defaults;this.types=t.types;this.opcodes=t.opcodes;this.order=t.order;this.strings=e;this.values=Object.create(null)}setByKey(t,e){if(!(t in this.keyToNameMap)){return false}if(e.length===0){return true}for(const s of e){if(isNaN(s)){(0,i.warn)(`Invalid CFFDict value: "${e}" for key "${t}".`);return true}}const s=this.types[t];if(s==="num"||s==="sid"||s==="offset"){e=e[0]}this.values[t]=e;return true}setByName(t,e){if(!(t in this.nameToKeyMap)){throw new i.FormatError(`Invalid dictionary name "${t}"`)}this.values[this.nameToKeyMap[t]]=e}hasName(t){return this.nameToKeyMap[t]in this.values}getByName(t){if(!(t in this.nameToKeyMap)){throw new i.FormatError(`Invalid dictionary name ${t}"`)}const e=this.nameToKeyMap[t];if(!(e in this.values)){return this.defaults[e]}return this.values[e]}removeByName(t){delete this.values[this.nameToKeyMap[t]]}static createTables(t){const e={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(const s of t){const t=Array.isArray(s[0])?(s[0][0]<<8)+s[0][1]:s[0];e.keyToNameMap[t]=s[1];e.nameToKeyMap[s[1]]=t;e.types[t]=s[2];e.defaults[t]=s[3];e.opcodes[t]=Array.isArray(s[0])?s[0]:[s[0]];e.order.push(t)}return e}}const w=[[[12,30],"ROS",["sid","sid","num"],null],[[12,20],"SyntheticBase","num",null],[0,"version","sid",null],[1,"Notice","sid",null],[[12,0],"Copyright","sid",null],[2,"FullName","sid",null],[3,"FamilyName","sid",null],[4,"Weight","sid",null],[[12,1],"isFixedPitch","num",0],[[12,2],"ItalicAngle","num",0],[[12,3],"UnderlinePosition","num",-100],[[12,4],"UnderlineThickness","num",50],[[12,5],"PaintType","num",0],[[12,6],"CharstringType","num",2],[[12,7],"FontMatrix",["num","num","num","num","num","num"],[.001,0,0,.001,0,0]],[13,"UniqueID","num",null],[5,"FontBBox",["num","num","num","num"],[0,0,0,0]],[[12,8],"StrokeWidth","num",0],[14,"XUID","array",null],[15,"charset","offset",0],[16,"Encoding","offset",0],[17,"CharStrings","offset",0],[18,"Private",["offset","offset"],null],[[12,21],"PostScript","sid",null],[[12,22],"BaseFontName","sid",null],[[12,23],"BaseFontBlend","delta",null],[[12,31],"CIDFontVersion","num",0],[[12,32],"CIDFontRevision","num",0],[[12,33],"CIDFontType","num",0],[[12,34],"CIDCount","num",8720],[[12,35],"UIDBase","num",null],[[12,37],"FDSelect","offset",null],[[12,36],"FDArray","offset",null],[[12,38],"FontName","sid",null]];class b extends m{static get tables(){return(0,i.shadow)(this,"tables",this.createTables(w))}constructor(t){super(b.tables,t);this.privateDict=null}}e.CFFTopDict=b;const y=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",.039625],[[12,10],"BlueShift","num",7],[[12,11],"BlueFuzz","num",1],[10,"StdHW","num",null],[11,"StdVW","num",null],[[12,12],"StemSnapH","delta",null],[[12,13],"StemSnapV","delta",null],[[12,14],"ForceBold","num",0],[[12,17],"LanguageGroup","num",0],[[12,18],"ExpansionFactor","num",.06],[[12,19],"initialRandomSeed","num",0],[20,"defaultWidthX","num",0],[21,"nominalWidthX","num",0],[19,"Subrs","offset",null]];class A extends m{static get tables(){return(0,i.shadow)(this,"tables",this.createTables(y))}constructor(t){super(A.tables,t);this.subrsIndex=null}}e.CFFPrivateDict=A;const v={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class x{constructor(t,e,s,i){this.predefined=t;this.format=e;this.charset=s;this.raw=i}}e.CFFCharset=x;class k{constructor(t,e,s,i){this.predefined=t;this.format=e;this.encoding=s;this.raw=i}}class S{constructor(t,e){this.format=t;this.fdSelect=e}getFDIndex(t){if(t<0||t>=this.fdSelect.length){return-1}return this.fdSelect[t]}}e.CFFFDSelect=S;class M{constructor(){this.offsets=Object.create(null)}isTracking(t){return t in this.offsets}track(t,e){if(t in this.offsets){throw new i.FormatError(`Already tracking location of ${t}`)}this.offsets[t]=e}offset(t){for(const e in this.offsets){this.offsets[e]+=t}}setEntryLocation(t,e,s){if(!(t in this.offsets)){throw new i.FormatError(`Not tracking location of ${t}`)}const n=s.data;const r=this.offsets[t];const o=5;for(let t=0,s=e.length;t<s;++t){const s=t*o+r;const a=s+1;const c=s+2;const l=s+3;const h=s+4;if(n[s]!==29||n[a]!==0||n[c]!==0||n[l]!==0||n[h]!==0){throw new i.FormatError("writing to an offset that is not empty")}const u=e[t];n[s]=29;n[a]=u>>24&255;n[c]=u>>16&255;n[l]=u>>8&255;n[h]=u&255}}}class C{constructor(t){this.cff=t}compile(){const t=this.cff;const e={data:[],length:0,add(t){try{this.data.push(...t)}catch{this.data=this.data.concat(t)}this.length=this.data.length}};const s=this.compileHeader(t.header);e.add(s);const n=this.compileNameIndex(t.names);e.add(n);if(t.isCIDFont){if(t.topDict.hasName("FontMatrix")){const e=t.topDict.getByName("FontMatrix");t.topDict.removeByName("FontMatrix");for(const s of t.fdArray){let t=e.slice(0);if(s.hasName("FontMatrix")){t=i.Util.transform(t,s.getByName("FontMatrix"))}s.setByName("FontMatrix",t)}}}const r=t.topDict.getByName("XUID");if(r?.length>16){t.topDict.removeByName("XUID")}t.topDict.setByName("charset",0);let o=this.compileTopDicts([t.topDict],e.length,t.isCIDFont);e.add(o.output);const a=o.trackers[0];const c=this.compileStringIndex(t.strings.strings);e.add(c);const l=this.compileIndex(t.globalSubrIndex);e.add(l);if(t.encoding&&t.topDict.hasName("Encoding")){if(t.encoding.predefined){a.setEntryLocation("Encoding",[t.encoding.format],e)}else{const s=this.compileEncoding(t.encoding);a.setEntryLocation("Encoding",[e.length],e);e.add(s)}}const h=this.compileCharset(t.charset,t.charStrings.count,t.strings,t.isCIDFont);a.setEntryLocation("charset",[e.length],e);e.add(h);const u=this.compileCharStrings(t.charStrings);a.setEntryLocation("CharStrings",[e.length],e);e.add(u);if(t.isCIDFont){a.setEntryLocation("FDSelect",[e.length],e);const s=this.compileFDSelect(t.fdSelect);e.add(s);o=this.compileTopDicts(t.fdArray,e.length,true);a.setEntryLocation("FDArray",[e.length],e);e.add(o.output);const i=o.trackers;this.compilePrivateDicts(t.fdArray,i,e)}this.compilePrivateDicts([t.topDict],[a],e);e.add([0]);return e.data}encodeNumber(t){if(Number.isInteger(t)){return this.encodeInteger(t)}return this.encodeFloat(t)}static get EncodeFloatRegExp(){return(0,i.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(t){let e=t.toString();const s=C.EncodeFloatRegExp.exec(e);if(s){const i=parseFloat("1e"+((s[2]?+s[2]:0)+s[1].length));e=(Math.round(t*i)/i).toString()}let i="";let n,r;for(n=0,r=e.length;n<r;++n){const t=e[n];if(t==="e"){i+=e[++n]==="-"?"c":"b"}else if(t==="."){i+="a"}else if(t==="-"){i+="e"}else{i+=t}}i+=i.length&1?"f":"ff";const o=[30];for(n=0,r=i.length;n<r;n+=2){o.push(parseInt(i.substring(n,n+2),16))}return o}encodeInteger(t){let e;if(t>=-107&&t<=107){e=[t+139]}else if(t>=108&&t<=1131){t-=108;e=[(t>>8)+247,t&255]}else if(t>=-1131&&t<=-108){t=-t-108;e=[(t>>8)+251,t&255]}else if(t>=-32768&&t<=32767){e=[28,t>>8&255,t&255]}else{e=[29,t>>24&255,t>>16&255,t>>8&255,t&255]}return e}compileHeader(t){return[t.major,t.minor,4,t.offSize]}compileNameIndex(t){const e=new g;for(const s of t){const t=Math.min(s.length,127);let n=new Array(t);for(let e=0;e<t;e++){let t=s[e];if(t<"!"||t>"~"||t==="["||t==="]"||t==="("||t===")"||t==="{"||t==="}"||t==="<"||t===">"||t==="/"||t==="%"){t="_"}n[e]=t}n=n.join("");if(n===""){n="Bad_Font_Name"}e.add((0,i.stringToBytes)(n))}return this.compileIndex(e)}compileTopDicts(t,e,s){const i=[];let n=new g;for(const r of t){if(s){r.removeByName("CIDFontVersion");r.removeByName("CIDFontRevision");r.removeByName("CIDFontType");r.removeByName("CIDCount");r.removeByName("UIDBase")}const t=new M;const o=this.compileDict(r,t);i.push(t);n.add(o);t.offset(e)}n=this.compileIndex(n,i);return{trackers:i,output:n}}compilePrivateDicts(t,e,s){for(let n=0,r=t.length;n<r;++n){const r=t[n];const o=r.privateDict;if(!o||!r.hasName("Private")){throw new i.FormatError("There must be a private dictionary.")}const a=new M;const c=this.compileDict(o,a);let l=s.length;a.offset(l);if(!c.length){l=0}e[n].setEntryLocation("Private",[c.length,l],s);s.add(c);if(o.subrsIndex&&o.hasName("Subrs")){const t=this.compileIndex(o.subrsIndex);a.setEntryLocation("Subrs",[c.length],s);s.add(t)}}}compileDict(t,e){const s=[];for(const n of t.order){if(!(n in t.values)){continue}let r=t.values[n];let o=t.types[n];if(!Array.isArray(o)){o=[o]}if(!Array.isArray(r)){r=[r]}if(r.length===0){continue}for(let a=0,c=o.length;a<c;++a){const c=o[a];const l=r[a];switch(c){case"num":case"sid":s.push(...this.encodeNumber(l));break;case"offset":const o=t.keyToNameMap[n];if(!e.isTracking(o)){e.track(o,s.length)}s.push(29,0,0,0,0);break;case"array":case"delta":s.push(...this.encodeNumber(l));for(let t=1,e=r.length;t<e;++t){s.push(...this.encodeNumber(r[t]))}break;default:throw new i.FormatError(`Unknown data type of ${c}`)}}s.push(...t.opcodes[n])}return s}compileStringIndex(t){const e=new g;for(const s of t){e.add((0,i.stringToBytes)(s))}return this.compileIndex(e)}compileCharStrings(t){const e=new g;for(let s=0;s<t.count;s++){const i=t.get(s);if(i.length===0){e.add(new Uint8Array([139,14]));continue}e.add(i)}return this.compileIndex(e)}compileCharset(t,e,s,n){let r;const o=e-1;if(n){r=new Uint8Array([2,0,0,o>>8&255,o&255])}else{const e=1+o*2;r=new Uint8Array(e);r[0]=0;let n=0;const a=t.charset.length;let c=false;for(let e=1;e<r.length;e+=2){let o=0;if(n<a){const e=t.charset[n++];o=s.getSID(e);if(o===-1){o=0;if(!c){c=true;(0,i.warn)(`Couldn't find ${e} in CFF strings`)}}}r[e]=o>>8&255;r[e+1]=o&255}}return this.compileTypedArray(r)}compileEncoding(t){return this.compileTypedArray(t.raw)}compileFDSelect(t){const e=t.format;let s,i;switch(e){case 0:s=new Uint8Array(1+t.fdSelect.length);s[0]=e;for(i=0;i<t.fdSelect.length;i++){s[i+1]=t.fdSelect[i]}break;case 3:const n=0;let r=t.fdSelect[0];const o=[e,0,0,n>>8&255,n&255,r];for(i=1;i<t.fdSelect.length;i++){const e=t.fdSelect[i];if(e!==r){o.push(i>>8&255,i&255,e);r=e}}const a=(o.length-3)/3;o[1]=a>>8&255;o[2]=a&255;o.push(i>>8&255,i&255);s=new Uint8Array(o);break}return this.compileTypedArray(s)}compileTypedArray(t){return Array.from(t)}compileIndex(t,e=[]){const s=t.objects;const i=s.length;if(i===0){return[0,0]}const n=[i>>8&255,i&255];let r=1,o;for(o=0;o<i;++o){r+=s[o].length}let a;if(r<256){a=1}else if(r<65536){a=2}else if(r<16777216){a=3}else{a=4}n.push(a);let c=1;for(o=0;o<i+1;o++){if(a===1){n.push(c&255)}else if(a===2){n.push(c>>8&255,c&255)}else if(a===3){n.push(c>>16&255,c>>8&255,c&255)}else{n.push(c>>>24&255,c>>16&255,c>>8&255,c&255)}if(s[o]){c+=s[o].length}}for(o=0;o<i;o++){if(e[o]){e[o].offset(n.length)}n.push(...s[o])}return n}}e.CFFCompiler=C},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.ISOAdobeCharset=e.ExpertSubsetCharset=e.ExpertCharset=void 0;const s=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"];e.ISOAdobeCharset=s;const i=[".notdef","space","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];e.ExpertCharset=i;const n=[".notdef","space","dollaroldstyle","dollarsuperior","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","fi","fl","ffi","ffl","parenleftinferior","parenrightinferior","hyphensuperior","colonmonetary","onefitted","rupiah","centoldstyle","figuredash","hypheninferior","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior"];e.ExpertSubsetCharset=n},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.ZapfDingbatsEncoding=e.WinAnsiEncoding=e.SymbolSetEncoding=e.StandardEncoding=e.MacRomanEncoding=e.ExpertEncoding=void 0;e.getEncoding=l;const s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"];e.ExpertEncoding=s;const i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","centoldstyle","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","","threequartersemdash","","questionsmall","","","","","Ethsmall","","","onequarter","onehalf","threequarters","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","","","","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hypheninferior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","asuperior","centsuperior","","","","","Aacutesmall","Agravesmall","Acircumflexsmall","Adieresissmall","Atildesmall","Aringsmall","Ccedillasmall","Eacutesmall","Egravesmall","Ecircumflexsmall","Edieresissmall","Iacutesmall","Igravesmall","Icircumflexsmall","Idieresissmall","Ntildesmall","Oacutesmall","Ogravesmall","Ocircumflexsmall","Odieresissmall","Otildesmall","Uacutesmall","Ugravesmall","Ucircumflexsmall","Udieresissmall","","eightsuperior","fourinferior","threeinferior","sixinferior","eightinferior","seveninferior","Scaronsmall","","centinferior","twoinferior","","Dieresissmall","","Caronsmall","osuperior","fiveinferior","","commainferior","periodinferior","Yacutesmall","","dollarinferior","","","Thornsmall","","nineinferior","zeroinferior","Zcaronsmall","AEsmall","Oslashsmall","questiondownsmall","oneinferior","Lslashsmall","","","","","","","Cedillasmall","","","","","","OEsmall","figuredash","hyphensuperior","","","","","exclamdownsmall","","Ydieresissmall","","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","ninesuperior","zerosuperior","","esuperior","rsuperior","tsuperior","","","isuperior","ssuperior","dsuperior","","","","","","lsuperior","Ogoneksmall","Brevesmall","Macronsmall","bsuperior","nsuperior","msuperior","commasuperior","periodsuperior","Dotaccentsmall","Ringsmall","","","",""];const n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","space","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron"];e.MacRomanEncoding=n;const r=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls","","","",""];e.StandardEncoding=r;const o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"];e.WinAnsiEncoding=o;const a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","universal","numbersign","existential","percent","ampersand","suchthat","parenleft","parenright","asteriskmath","plus","comma","minus","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","congruent","Alpha","Beta","Chi","Delta","Epsilon","Phi","Gamma","Eta","Iota","theta1","Kappa","Lambda","Mu","Nu","Omicron","Pi","Theta","Rho","Sigma","Tau","Upsilon","sigma1","Omega","Xi","Psi","Zeta","bracketleft","therefore","bracketright","perpendicular","underscore","radicalex","alpha","beta","chi","delta","epsilon","phi","gamma","eta","iota","phi1","kappa","lambda","mu","nu","omicron","pi","theta","rho","sigma","tau","upsilon","omega1","omega","xi","psi","zeta","braceleft","bar","braceright","similar","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Euro","Upsilon1","minute","lessequal","fraction","infinity","florin","club","diamond","heart","spade","arrowboth","arrowleft","arrowup","arrowright","arrowdown","degree","plusminus","second","greaterequal","multiply","proportional","partialdiff","bullet","divide","notequal","equivalence","approxequal","ellipsis","arrowvertex","arrowhorizex","carriagereturn","aleph","Ifraktur","Rfraktur","weierstrass","circlemultiply","circleplus","emptyset","intersection","union","propersuperset","reflexsuperset","notsubset","propersubset","reflexsubset","element","notelement","angle","gradient","registerserif","copyrightserif","trademarkserif","product","radical","dotmath","logicalnot","logicaland","logicalor","arrowdblboth","arrowdblleft","arrowdblup","arrowdblright","arrowdbldown","lozenge","angleleft","registersans","copyrightsans","trademarksans","summation","parenlefttp","parenleftex","parenleftbt","bracketlefttp","bracketleftex","bracketleftbt","bracelefttp","braceleftmid","braceleftbt","braceex","","angleright","integral","integraltp","integralex","integralbt","parenrighttp","parenrightex","parenrightbt","bracketrighttp","bracketrightex","bracketrightbt","bracerighttp","bracerightmid","bracerightbt",""];e.SymbolSetEncoding=a;const c=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];e.ZapfDingbatsEncoding=c;function l(t){switch(t){case"WinAnsiEncoding":return o;case"StandardEncoding":return r;case"MacRomanEncoding":return n;case"SymbolSetEncoding":return a;case"ZapfDingbatsEncoding":return c;case"ExpertEncoding":return s;case"MacExpertEncoding":return i;default:return null}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.SEAC_ANALYSIS_ENABLED=e.MacStandardGlyphOrdering=e.FontFlags=void 0;e.normalizeFontName=f;e.recoverGlyphName=h;e.type1FontGlyphMapping=u;var i=s(37);var n=s(39);var r=s(40);var o=s(2);const a=true;e.SEAC_ANALYSIS_ENABLED=a;const c={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};e.FontFlags=c;const l=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];e.MacStandardGlyphOrdering=l;function h(t,e){if(e[t]!==undefined){return t}const s=(0,r.getUnicodeForGlyph)(t,e);if(s!==-1){for(const t in e){if(e[t]===s){return t}}}(0,o.info)("Unable to recover a standard glyph name for: "+t);return t}function u(t,e,s){const r=Object.create(null);let o,a,l;const u=!!(t.flags&c.Symbolic);if(t.isInternalFont){l=e;for(a=0;a<l.length;a++){o=s.indexOf(l[a]);r[a]=o>=0?o:0}}else if(t.baseEncodingName){l=(0,i.getEncoding)(t.baseEncodingName);for(a=0;a<l.length;a++){o=s.indexOf(l[a]);r[a]=o>=0?o:0}}else if(u){for(a in e){r[a]=e[a]}}else{l=i.StandardEncoding;for(a=0;a<l.length;a++){o=s.indexOf(l[a]);r[a]=o>=0?o:0}}const f=t.differences;let d;if(f){for(a in f){const t=f[a];o=s.indexOf(t);if(o===-1){if(!d){d=(0,n.getGlyphsUnicode)()}const e=h(t,d);if(e!==t){o=s.indexOf(e)}}r[a]=o>=0?o:0}}return r}function f(t){return t.replaceAll(/[,_]/g,"-").replaceAll(/\s/g,"")}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.getGlyphsUnicode=e.getDingbatsGlyphsUnicode=void 0;var i=s(3);const n=(0,i.getLookupTableFactory)((function(t){t.A=65;t.AE=198;t.AEacute=508;t.AEmacron=482;t.AEsmall=63462;t.Aacute=193;t.Aacutesmall=63457;t.Abreve=258;t.Abreveacute=7854;t.Abrevecyrillic=1232;t.Abrevedotbelow=7862;t.Abrevegrave=7856;t.Abrevehookabove=7858;t.Abrevetilde=7860;t.Acaron=461;t.Acircle=9398;t.Acircumflex=194;t.Acircumflexacute=7844;t.Acircumflexdotbelow=7852;t.Acircumflexgrave=7846;t.Acircumflexhookabove=7848;t.Acircumflexsmall=63458;t.Acircumflextilde=7850;t.Acute=63177;t.Acutesmall=63412;t.Acyrillic=1040;t.Adblgrave=512;t.Adieresis=196;t.Adieresiscyrillic=1234;t.Adieresismacron=478;t.Adieresissmall=63460;t.Adotbelow=7840;t.Adotmacron=480;t.Agrave=192;t.Agravesmall=63456;t.Ahookabove=7842;t.Aiecyrillic=1236;t.Ainvertedbreve=514;t.Alpha=913;t.Alphatonos=902;t.Amacron=256;t.Amonospace=65313;t.Aogonek=260;t.Aring=197;t.Aringacute=506;t.Aringbelow=7680;t.Aringsmall=63461;t.Asmall=63329;t.Atilde=195;t.Atildesmall=63459;t.Aybarmenian=1329;t.B=66;t.Bcircle=9399;t.Bdotaccent=7682;t.Bdotbelow=7684;t.Becyrillic=1041;t.Benarmenian=1330;t.Beta=914;t.Bhook=385;t.Blinebelow=7686;t.Bmonospace=65314;t.Brevesmall=63220;t.Bsmall=63330;t.Btopbar=386;t.C=67;t.Caarmenian=1342;t.Cacute=262;t.Caron=63178;t.Caronsmall=63221;t.Ccaron=268;t.Ccedilla=199;t.Ccedillaacute=7688;t.Ccedillasmall=63463;t.Ccircle=9400;t.Ccircumflex=264;t.Cdot=266;t.Cdotaccent=266;t.Cedillasmall=63416;t.Chaarmenian=1353;t.Cheabkhasiancyrillic=1212;t.Checyrillic=1063;t.Chedescenderabkhasiancyrillic=1214;t.Chedescendercyrillic=1206;t.Chedieresiscyrillic=1268;t.Cheharmenian=1347;t.Chekhakassiancyrillic=1227;t.Cheverticalstrokecyrillic=1208;t.Chi=935;t.Chook=391;t.Circumflexsmall=63222;t.Cmonospace=65315;t.Coarmenian=1361;t.Csmall=63331;t.D=68;t.DZ=497;t.DZcaron=452;t.Daarmenian=1332;t.Dafrican=393;t.Dcaron=270;t.Dcedilla=7696;t.Dcircle=9401;t.Dcircumflexbelow=7698;t.Dcroat=272;t.Ddotaccent=7690;t.Ddotbelow=7692;t.Decyrillic=1044;t.Deicoptic=1006;t.Delta=8710;t.Deltagreek=916;t.Dhook=394;t.Dieresis=63179;t.DieresisAcute=63180;t.DieresisGrave=63181;t.Dieresissmall=63400;t.Digammagreek=988;t.Djecyrillic=1026;t.Dlinebelow=7694;t.Dmonospace=65316;t.Dotaccentsmall=63223;t.Dslash=272;t.Dsmall=63332;t.Dtopbar=395;t.Dz=498;t.Dzcaron=453;t.Dzeabkhasiancyrillic=1248;t.Dzecyrillic=1029;t.Dzhecyrillic=1039;t.E=69;t.Eacute=201;t.Eacutesmall=63465;t.Ebreve=276;t.Ecaron=282;t.Ecedillabreve=7708;t.Echarmenian=1333;t.Ecircle=9402;t.Ecircumflex=202;t.Ecircumflexacute=7870;t.Ecircumflexbelow=7704;t.Ecircumflexdotbelow=7878;t.Ecircumflexgrave=7872;t.Ecircumflexhookabove=7874;t.Ecircumflexsmall=63466;t.Ecircumflextilde=7876;t.Ecyrillic=1028;t.Edblgrave=516;t.Edieresis=203;t.Edieresissmall=63467;t.Edot=278;t.Edotaccent=278;t.Edotbelow=7864;t.Efcyrillic=1060;t.Egrave=200;t.Egravesmall=63464;t.Eharmenian=1335;t.Ehookabove=7866;t.Eightroman=8551;t.Einvertedbreve=518;t.Eiotifiedcyrillic=1124;t.Elcyrillic=1051;t.Elevenroman=8554;t.Emacron=274;t.Emacronacute=7702;t.Emacrongrave=7700;t.Emcyrillic=1052;t.Emonospace=65317;t.Encyrillic=1053;t.Endescendercyrillic=1186;t.Eng=330;t.Enghecyrillic=1188;t.Enhookcyrillic=1223;t.Eogonek=280;t.Eopen=400;t.Epsilon=917;t.Epsilontonos=904;t.Ercyrillic=1056;t.Ereversed=398;t.Ereversedcyrillic=1069;t.Escyrillic=1057;t.Esdescendercyrillic=1194;t.Esh=425;t.Esmall=63333;t.Eta=919;t.Etarmenian=1336;t.Etatonos=905;t.Eth=208;t.Ethsmall=63472;t.Etilde=7868;t.Etildebelow=7706;t.Euro=8364;t.Ezh=439;t.Ezhcaron=494;t.Ezhreversed=440;t.F=70;t.Fcircle=9403;t.Fdotaccent=7710;t.Feharmenian=1366;t.Feicoptic=996;t.Fhook=401;t.Fitacyrillic=1138;t.Fiveroman=8548;t.Fmonospace=65318;t.Fourroman=8547;t.Fsmall=63334;t.G=71;t.GBsquare=13191;t.Gacute=500;t.Gamma=915;t.Gammaafrican=404;t.Gangiacoptic=1002;t.Gbreve=286;t.Gcaron=486;t.Gcedilla=290;t.Gcircle=9404;t.Gcircumflex=284;t.Gcommaaccent=290;t.Gdot=288;t.Gdotaccent=288;t.Gecyrillic=1043;t.Ghadarmenian=1346;t.Ghemiddlehookcyrillic=1172;t.Ghestrokecyrillic=1170;t.Gheupturncyrillic=1168;t.Ghook=403;t.Gimarmenian=1331;t.Gjecyrillic=1027;t.Gmacron=7712;t.Gmonospace=65319;t.Grave=63182;t.Gravesmall=63328;t.Gsmall=63335;t.Gsmallhook=667;t.Gstroke=484;t.H=72;t.H18533=9679;t.H18543=9642;t.H18551=9643;t.H22073=9633;t.HPsquare=13259;t.Haabkhasiancyrillic=1192;t.Hadescendercyrillic=1202;t.Hardsigncyrillic=1066;t.Hbar=294;t.Hbrevebelow=7722;t.Hcedilla=7720;t.Hcircle=9405;t.Hcircumflex=292;t.Hdieresis=7718;t.Hdotaccent=7714;t.Hdotbelow=7716;t.Hmonospace=65320;t.Hoarmenian=1344;t.Horicoptic=1e3;t.Hsmall=63336;t.Hungarumlaut=63183;t.Hungarumlautsmall=63224;t.Hzsquare=13200;t.I=73;t.IAcyrillic=1071;t.IJ=306;t.IUcyrillic=1070;t.Iacute=205;t.Iacutesmall=63469;t.Ibreve=300;t.Icaron=463;t.Icircle=9406;t.Icircumflex=206;t.Icircumflexsmall=63470;t.Icyrillic=1030;t.Idblgrave=520;t.Idieresis=207;t.Idieresisacute=7726;t.Idieresiscyrillic=1252;t.Idieresissmall=63471;t.Idot=304;t.Idotaccent=304;t.Idotbelow=7882;t.Iebrevecyrillic=1238;t.Iecyrillic=1045;t.Ifraktur=8465;t.Igrave=204;t.Igravesmall=63468;t.Ihookabove=7880;t.Iicyrillic=1048;t.Iinvertedbreve=522;t.Iishortcyrillic=1049;t.Imacron=298;t.Imacroncyrillic=1250;t.Imonospace=65321;t.Iniarmenian=1339;t.Iocyrillic=1025;t.Iogonek=302;t.Iota=921;t.Iotaafrican=406;t.Iotadieresis=938;t.Iotatonos=906;t.Ismall=63337;t.Istroke=407;t.Itilde=296;t.Itildebelow=7724;t.Izhitsacyrillic=1140;t.Izhitsadblgravecyrillic=1142;t.J=74;t.Jaarmenian=1345;t.Jcircle=9407;t.Jcircumflex=308;t.Jecyrillic=1032;t.Jheharmenian=1355;t.Jmonospace=65322;t.Jsmall=63338;t.K=75;t.KBsquare=13189;t.KKsquare=13261;t.Kabashkircyrillic=1184;t.Kacute=7728;t.Kacyrillic=1050;t.Kadescendercyrillic=1178;t.Kahookcyrillic=1219;t.Kappa=922;t.Kastrokecyrillic=1182;t.Kaverticalstrokecyrillic=1180;t.Kcaron=488;t.Kcedilla=310;t.Kcircle=9408;t.Kcommaaccent=310;t.Kdotbelow=7730;t.Keharmenian=1364;t.Kenarmenian=1343;t.Khacyrillic=1061;t.Kheicoptic=998;t.Khook=408;t.Kjecyrillic=1036;t.Klinebelow=7732;t.Kmonospace=65323;t.Koppacyrillic=1152;t.Koppagreek=990;t.Ksicyrillic=1134;t.Ksmall=63339;t.L=76;t.LJ=455;t.LL=63167;t.Lacute=313;t.Lambda=923;t.Lcaron=317;t.Lcedilla=315;t.Lcircle=9409;t.Lcircumflexbelow=7740;t.Lcommaaccent=315;t.Ldot=319;t.Ldotaccent=319;t.Ldotbelow=7734;t.Ldotbelowmacron=7736;t.Liwnarmenian=1340;t.Lj=456;t.Ljecyrillic=1033;t.Llinebelow=7738;t.Lmonospace=65324;t.Lslash=321;t.Lslashsmall=63225;t.Lsmall=63340;t.M=77;t.MBsquare=13190;t.Macron=63184;t.Macronsmall=63407;t.Macute=7742;t.Mcircle=9410;t.Mdotaccent=7744;t.Mdotbelow=7746;t.Menarmenian=1348;t.Mmonospace=65325;t.Msmall=63341;t.Mturned=412;t.Mu=924;t.N=78;t.NJ=458;t.Nacute=323;t.Ncaron=327;t.Ncedilla=325;t.Ncircle=9411;t.Ncircumflexbelow=7754;t.Ncommaaccent=325;t.Ndotaccent=7748;t.Ndotbelow=7750;t.Nhookleft=413;t.Nineroman=8552;t.Nj=459;t.Njecyrillic=1034;t.Nlinebelow=7752;t.Nmonospace=65326;t.Nowarmenian=1350;t.Nsmall=63342;t.Ntilde=209;t.Ntildesmall=63473;t.Nu=925;t.O=79;t.OE=338;t.OEsmall=63226;t.Oacute=211;t.Oacutesmall=63475;t.Obarredcyrillic=1256;t.Obarreddieresiscyrillic=1258;t.Obreve=334;t.Ocaron=465;t.Ocenteredtilde=415;t.Ocircle=9412;t.Ocircumflex=212;t.Ocircumflexacute=7888;t.Ocircumflexdotbelow=7896;t.Ocircumflexgrave=7890;t.Ocircumflexhookabove=7892;t.Ocircumflexsmall=63476;t.Ocircumflextilde=7894;t.Ocyrillic=1054;t.Odblacute=336;t.Odblgrave=524;t.Odieresis=214;t.Odieresiscyrillic=1254;t.Odieresissmall=63478;t.Odotbelow=7884;t.Ogoneksmall=63227;t.Ograve=210;t.Ogravesmall=63474;t.Oharmenian=1365;t.Ohm=8486;t.Ohookabove=7886;t.Ohorn=416;t.Ohornacute=7898;t.Ohorndotbelow=7906;t.Ohorngrave=7900;t.Ohornhookabove=7902;t.Ohorntilde=7904;t.Ohungarumlaut=336;t.Oi=418;t.Oinvertedbreve=526;t.Omacron=332;t.Omacronacute=7762;t.Omacrongrave=7760;t.Omega=8486;t.Omegacyrillic=1120;t.Omegagreek=937;t.Omegaroundcyrillic=1146;t.Omegatitlocyrillic=1148;t.Omegatonos=911;t.Omicron=927;t.Omicrontonos=908;t.Omonospace=65327;t.Oneroman=8544;t.Oogonek=490;t.Oogonekmacron=492;t.Oopen=390;t.Oslash=216;t.Oslashacute=510;t.Oslashsmall=63480;t.Osmall=63343;t.Ostrokeacute=510;t.Otcyrillic=1150;t.Otilde=213;t.Otildeacute=7756;t.Otildedieresis=7758;t.Otildesmall=63477;t.P=80;t.Pacute=7764;t.Pcircle=9413;t.Pdotaccent=7766;t.Pecyrillic=1055;t.Peharmenian=1354;t.Pemiddlehookcyrillic=1190;t.Phi=934;t.Phook=420;t.Pi=928;t.Piwrarmenian=1363;t.Pmonospace=65328;t.Psi=936;t.Psicyrillic=1136;t.Psmall=63344;t.Q=81;t.Qcircle=9414;t.Qmonospace=65329;t.Qsmall=63345;t.R=82;t.Raarmenian=1356;t.Racute=340;t.Rcaron=344;t.Rcedilla=342;t.Rcircle=9415;t.Rcommaaccent=342;t.Rdblgrave=528;t.Rdotaccent=7768;t.Rdotbelow=7770;t.Rdotbelowmacron=7772;t.Reharmenian=1360;t.Rfraktur=8476;t.Rho=929;t.Ringsmall=63228;t.Rinvertedbreve=530;t.Rlinebelow=7774;t.Rmonospace=65330;t.Rsmall=63346;t.Rsmallinverted=641;t.Rsmallinvertedsuperior=694;t.S=83;t.SF010000=9484;t.SF020000=9492;t.SF030000=9488;t.SF040000=9496;t.SF050000=9532;t.SF060000=9516;t.SF070000=9524;t.SF080000=9500;t.SF090000=9508;t.SF100000=9472;t.SF110000=9474;t.SF190000=9569;t.SF200000=9570;t.SF210000=9558;t.SF220000=9557;t.SF230000=9571;t.SF240000=9553;t.SF250000=9559;t.SF260000=9565;t.SF270000=9564;t.SF280000=9563;t.SF360000=9566;t.SF370000=9567;t.SF380000=9562;t.SF390000=9556;t.SF400000=9577;t.SF410000=9574;t.SF420000=9568;t.SF430000=9552;t.SF440000=9580;t.SF450000=9575;t.SF460000=9576;t.SF470000=9572;t.SF480000=9573;t.SF490000=9561;t.SF500000=9560;t.SF510000=9554;t.SF520000=9555;t.SF530000=9579;t.SF540000=9578;t.Sacute=346;t.Sacutedotaccent=7780;t.Sampigreek=992;t.Scaron=352;t.Scarondotaccent=7782;t.Scaronsmall=63229;t.Scedilla=350;t.Schwa=399;t.Schwacyrillic=1240;t.Schwadieresiscyrillic=1242;t.Scircle=9416;t.Scircumflex=348;t.Scommaaccent=536;t.Sdotaccent=7776;t.Sdotbelow=7778;t.Sdotbelowdotaccent=7784;t.Seharmenian=1357;t.Sevenroman=8550;t.Shaarmenian=1351;t.Shacyrillic=1064;t.Shchacyrillic=1065;t.Sheicoptic=994;t.Shhacyrillic=1210;t.Shimacoptic=1004;t.Sigma=931;t.Sixroman=8549;t.Smonospace=65331;t.Softsigncyrillic=1068;t.Ssmall=63347;t.Stigmagreek=986;t.T=84;t.Tau=932;t.Tbar=358;t.Tcaron=356;t.Tcedilla=354;t.Tcircle=9417;t.Tcircumflexbelow=7792;t.Tcommaaccent=354;t.Tdotaccent=7786;t.Tdotbelow=7788;t.Tecyrillic=1058;t.Tedescendercyrillic=1196;t.Tenroman=8553;t.Tetsecyrillic=1204;t.Theta=920;t.Thook=428;t.Thorn=222;t.Thornsmall=63486;t.Threeroman=8546;t.Tildesmall=63230;t.Tiwnarmenian=1359;t.Tlinebelow=7790;t.Tmonospace=65332;t.Toarmenian=1337;t.Tonefive=444;t.Tonesix=388;t.Tonetwo=423;t.Tretroflexhook=430;t.Tsecyrillic=1062;t.Tshecyrillic=1035;t.Tsmall=63348;t.Twelveroman=8555;t.Tworoman=8545;t.U=85;t.Uacute=218;t.Uacutesmall=63482;t.Ubreve=364;t.Ucaron=467;t.Ucircle=9418;t.Ucircumflex=219;t.Ucircumflexbelow=7798;t.Ucircumflexsmall=63483;t.Ucyrillic=1059;t.Udblacute=368;t.Udblgrave=532;t.Udieresis=220;t.Udieresisacute=471;t.Udieresisbelow=7794;t.Udieresiscaron=473;t.Udieresiscyrillic=1264;t.Udieresisgrave=475;t.Udieresismacron=469;t.Udieresissmall=63484;t.Udotbelow=7908;t.Ugrave=217;t.Ugravesmall=63481;t.Uhookabove=7910;t.Uhorn=431;t.Uhornacute=7912;t.Uhorndotbelow=7920;t.Uhorngrave=7914;t.Uhornhookabove=7916;t.Uhorntilde=7918;t.Uhungarumlaut=368;t.Uhungarumlautcyrillic=1266;t.Uinvertedbreve=534;t.Ukcyrillic=1144;t.Umacron=362;t.Umacroncyrillic=1262;t.Umacrondieresis=7802;t.Umonospace=65333;t.Uogonek=370;t.Upsilon=933;t.Upsilon1=978;t.Upsilonacutehooksymbolgreek=979;t.Upsilonafrican=433;t.Upsilondieresis=939;t.Upsilondieresishooksymbolgreek=980;t.Upsilonhooksymbol=978;t.Upsilontonos=910;t.Uring=366;t.Ushortcyrillic=1038;t.Usmall=63349;t.Ustraightcyrillic=1198;t.Ustraightstrokecyrillic=1200;t.Utilde=360;t.Utildeacute=7800;t.Utildebelow=7796;t.V=86;t.Vcircle=9419;t.Vdotbelow=7806;t.Vecyrillic=1042;t.Vewarmenian=1358;t.Vhook=434;t.Vmonospace=65334;t.Voarmenian=1352;t.Vsmall=63350;t.Vtilde=7804;t.W=87;t.Wacute=7810;t.Wcircle=9420;t.Wcircumflex=372;t.Wdieresis=7812;t.Wdotaccent=7814;t.Wdotbelow=7816;t.Wgrave=7808;t.Wmonospace=65335;t.Wsmall=63351;t.X=88;t.Xcircle=9421;t.Xdieresis=7820;t.Xdotaccent=7818;t.Xeharmenian=1341;t.Xi=926;t.Xmonospace=65336;t.Xsmall=63352;t.Y=89;t.Yacute=221;t.Yacutesmall=63485;t.Yatcyrillic=1122;t.Ycircle=9422;t.Ycircumflex=374;t.Ydieresis=376;t.Ydieresissmall=63487;t.Ydotaccent=7822;t.Ydotbelow=7924;t.Yericyrillic=1067;t.Yerudieresiscyrillic=1272;t.Ygrave=7922;t.Yhook=435;t.Yhookabove=7926;t.Yiarmenian=1349;t.Yicyrillic=1031;t.Yiwnarmenian=1362;t.Ymonospace=65337;t.Ysmall=63353;t.Ytilde=7928;t.Yusbigcyrillic=1130;t.Yusbigiotifiedcyrillic=1132;t.Yuslittlecyrillic=1126;t.Yuslittleiotifiedcyrillic=1128;t.Z=90;t.Zaarmenian=1334;t.Zacute=377;t.Zcaron=381;t.Zcaronsmall=63231;t.Zcircle=9423;t.Zcircumflex=7824;t.Zdot=379;t.Zdotaccent=379;t.Zdotbelow=7826;t.Zecyrillic=1047;t.Zedescendercyrillic=1176;t.Zedieresiscyrillic=1246;t.Zeta=918;t.Zhearmenian=1338;t.Zhebrevecyrillic=1217;t.Zhecyrillic=1046;t.Zhedescendercyrillic=1174;t.Zhedieresiscyrillic=1244;t.Zlinebelow=7828;t.Zmonospace=65338;t.Zsmall=63354;t.Zstroke=437;t.a=97;t.aabengali=2438;t.aacute=225;t.aadeva=2310;t.aagujarati=2694;t.aagurmukhi=2566;t.aamatragurmukhi=2622;t.aarusquare=13059;t.aavowelsignbengali=2494;t.aavowelsigndeva=2366;t.aavowelsigngujarati=2750;t.abbreviationmarkarmenian=1375;t.abbreviationsigndeva=2416;t.abengali=2437;t.abopomofo=12570;t.abreve=259;t.abreveacute=7855;t.abrevecyrillic=1233;t.abrevedotbelow=7863;t.abrevegrave=7857;t.abrevehookabove=7859;t.abrevetilde=7861;t.acaron=462;t.acircle=9424;t.acircumflex=226;t.acircumflexacute=7845;t.acircumflexdotbelow=7853;t.acircumflexgrave=7847;t.acircumflexhookabove=7849;t.acircumflextilde=7851;t.acute=180;t.acutebelowcmb=791;t.acutecmb=769;t.acutecomb=769;t.acutedeva=2388;t.acutelowmod=719;t.acutetonecmb=833;t.acyrillic=1072;t.adblgrave=513;t.addakgurmukhi=2673;t.adeva=2309;t.adieresis=228;t.adieresiscyrillic=1235;t.adieresismacron=479;t.adotbelow=7841;t.adotmacron=481;t.ae=230;t.aeacute=509;t.aekorean=12624;t.aemacron=483;t.afii00208=8213;t.afii08941=8356;t.afii10017=1040;t.afii10018=1041;t.afii10019=1042;t.afii10020=1043;t.afii10021=1044;t.afii10022=1045;t.afii10023=1025;t.afii10024=1046;t.afii10025=1047;t.afii10026=1048;t.afii10027=1049;t.afii10028=1050;t.afii10029=1051;t.afii10030=1052;t.afii10031=1053;t.afii10032=1054;t.afii10033=1055;t.afii10034=1056;t.afii10035=1057;t.afii10036=1058;t.afii10037=1059;t.afii10038=1060;t.afii10039=1061;t.afii10040=1062;t.afii10041=1063;t.afii10042=1064;t.afii10043=1065;t.afii10044=1066;t.afii10045=1067;t.afii10046=1068;t.afii10047=1069;t.afii10048=1070;t.afii10049=1071;t.afii10050=1168;t.afii10051=1026;t.afii10052=1027;t.afii10053=1028;t.afii10054=1029;t.afii10055=1030;t.afii10056=1031;t.afii10057=1032;t.afii10058=1033;t.afii10059=1034;t.afii10060=1035;t.afii10061=1036;t.afii10062=1038;t.afii10063=63172;t.afii10064=63173;t.afii10065=1072;t.afii10066=1073;t.afii10067=1074;t.afii10068=1075;t.afii10069=1076;t.afii10070=1077;t.afii10071=1105;t.afii10072=1078;t.afii10073=1079;t.afii10074=1080;t.afii10075=1081;t.afii10076=1082;t.afii10077=1083;t.afii10078=1084;t.afii10079=1085;t.afii10080=1086;t.afii10081=1087;t.afii10082=1088;t.afii10083=1089;t.afii10084=1090;t.afii10085=1091;t.afii10086=1092;t.afii10087=1093;t.afii10088=1094;t.afii10089=1095;t.afii10090=1096;t.afii10091=1097;t.afii10092=1098;t.afii10093=1099;t.afii10094=1100;t.afii10095=1101;t.afii10096=1102;t.afii10097=1103;t.afii10098=1169;t.afii10099=1106;t.afii10100=1107;t.afii10101=1108;t.afii10102=1109;t.afii10103=1110;t.afii10104=1111;t.afii10105=1112;t.afii10106=1113;t.afii10107=1114;t.afii10108=1115;t.afii10109=1116;t.afii10110=1118;t.afii10145=1039;t.afii10146=1122;t.afii10147=1138;t.afii10148=1140;t.afii10192=63174;t.afii10193=1119;t.afii10194=1123;t.afii10195=1139;t.afii10196=1141;t.afii10831=63175;t.afii10832=63176;t.afii10846=1241;t.afii299=8206;t.afii300=8207;t.afii301=8205;t.afii57381=1642;t.afii57388=1548;t.afii57392=1632;t.afii57393=1633;t.afii57394=1634;t.afii57395=1635;t.afii57396=1636;t.afii57397=1637;t.afii57398=1638;t.afii57399=1639;t.afii57400=1640;t.afii57401=1641;t.afii57403=1563;t.afii57407=1567;t.afii57409=1569;t.afii57410=1570;t.afii57411=1571;t.afii57412=1572;t.afii57413=1573;t.afii57414=1574;t.afii57415=1575;t.afii57416=1576;t.afii57417=1577;t.afii57418=1578;t.afii57419=1579;t.afii57420=1580;t.afii57421=1581;t.afii57422=1582;t.afii57423=1583;t.afii57424=1584;t.afii57425=1585;t.afii57426=1586;t.afii57427=1587;t.afii57428=1588;t.afii57429=1589;t.afii57430=1590;t.afii57431=1591;t.afii57432=1592;t.afii57433=1593;t.afii57434=1594;t.afii57440=1600;t.afii57441=1601;t.afii57442=1602;t.afii57443=1603;t.afii57444=1604;t.afii57445=1605;t.afii57446=1606;t.afii57448=1608;t.afii57449=1609;t.afii57450=1610;t.afii57451=1611;t.afii57452=1612;t.afii57453=1613;t.afii57454=1614;t.afii57455=1615;t.afii57456=1616;t.afii57457=1617;t.afii57458=1618;t.afii57470=1607;t.afii57505=1700;t.afii57506=1662;t.afii57507=1670;t.afii57508=1688;t.afii57509=1711;t.afii57511=1657;t.afii57512=1672;t.afii57513=1681;t.afii57514=1722;t.afii57519=1746;t.afii57534=1749;t.afii57636=8362;t.afii57645=1470;t.afii57658=1475;t.afii57664=1488;t.afii57665=1489;t.afii57666=1490;t.afii57667=1491;t.afii57668=1492;t.afii57669=1493;t.afii57670=1494;t.afii57671=1495;t.afii57672=1496;t.afii57673=1497;t.afii57674=1498;t.afii57675=1499;t.afii57676=1500;t.afii57677=1501;t.afii57678=1502;t.afii57679=1503;t.afii57680=1504;t.afii57681=1505;t.afii57682=1506;t.afii57683=1507;t.afii57684=1508;t.afii57685=1509;t.afii57686=1510;t.afii57687=1511;t.afii57688=1512;t.afii57689=1513;t.afii57690=1514;t.afii57694=64298;t.afii57695=64299;t.afii57700=64331;t.afii57705=64287;t.afii57716=1520;t.afii57717=1521;t.afii57718=1522;t.afii57723=64309;t.afii57793=1460;t.afii57794=1461;t.afii57795=1462;t.afii57796=1467;t.afii57797=1464;t.afii57798=1463;t.afii57799=1456;t.afii57800=1458;t.afii57801=1457;t.afii57802=1459;t.afii57803=1474;t.afii57804=1473;t.afii57806=1465;t.afii57807=1468;t.afii57839=1469;t.afii57841=1471;t.afii57842=1472;t.afii57929=700;t.afii61248=8453;t.afii61289=8467;t.afii61352=8470;t.afii61573=8236;t.afii61574=8237;t.afii61575=8238;t.afii61664=8204;t.afii63167=1645;t.afii64937=701;t.agrave=224;t.agujarati=2693;t.agurmukhi=2565;t.ahiragana=12354;t.ahookabove=7843;t.aibengali=2448;t.aibopomofo=12574;t.aideva=2320;t.aiecyrillic=1237;t.aigujarati=2704;t.aigurmukhi=2576;t.aimatragurmukhi=2632;t.ainarabic=1593;t.ainfinalarabic=65226;t.aininitialarabic=65227;t.ainmedialarabic=65228;t.ainvertedbreve=515;t.aivowelsignbengali=2504;t.aivowelsigndeva=2376;t.aivowelsigngujarati=2760;t.akatakana=12450;t.akatakanahalfwidth=65393;t.akorean=12623;t.alef=1488;t.alefarabic=1575;t.alefdageshhebrew=64304;t.aleffinalarabic=65166;t.alefhamzaabovearabic=1571;t.alefhamzaabovefinalarabic=65156;t.alefhamzabelowarabic=1573;t.alefhamzabelowfinalarabic=65160;t.alefhebrew=1488;t.aleflamedhebrew=64335;t.alefmaddaabovearabic=1570;t.alefmaddaabovefinalarabic=65154;t.alefmaksuraarabic=1609;t.alefmaksurafinalarabic=65264;t.alefmaksurainitialarabic=65267;t.alefmaksuramedialarabic=65268;t.alefpatahhebrew=64302;t.alefqamatshebrew=64303;t.aleph=8501;t.allequal=8780;t.alpha=945;t.alphatonos=940;t.amacron=257;t.amonospace=65345;t.ampersand=38;t.ampersandmonospace=65286;t.ampersandsmall=63270;t.amsquare=13250;t.anbopomofo=12578;t.angbopomofo=12580;t.angbracketleft=12296;t.angbracketright=12297;t.angkhankhuthai=3674;t.angle=8736;t.anglebracketleft=12296;t.anglebracketleftvertical=65087;t.anglebracketright=12297;t.anglebracketrightvertical=65088;t.angleleft=9001;t.angleright=9002;t.angstrom=8491;t.anoteleia=903;t.anudattadeva=2386;t.anusvarabengali=2434;t.anusvaradeva=2306;t.anusvaragujarati=2690;t.aogonek=261;t.apaatosquare=13056;t.aparen=9372;t.apostrophearmenian=1370;t.apostrophemod=700;t.apple=63743;t.approaches=8784;t.approxequal=8776;t.approxequalorimage=8786;t.approximatelyequal=8773;t.araeaekorean=12686;t.araeakorean=12685;t.arc=8978;t.arighthalfring=7834;t.aring=229;t.aringacute=507;t.aringbelow=7681;t.arrowboth=8596;t.arrowdashdown=8675;t.arrowdashleft=8672;t.arrowdashright=8674;t.arrowdashup=8673;t.arrowdblboth=8660;t.arrowdbldown=8659;t.arrowdblleft=8656;t.arrowdblright=8658;t.arrowdblup=8657;t.arrowdown=8595;t.arrowdownleft=8601;t.arrowdownright=8600;t.arrowdownwhite=8681;t.arrowheaddownmod=709;t.arrowheadleftmod=706;t.arrowheadrightmod=707;t.arrowheadupmod=708;t.arrowhorizex=63719;t.arrowleft=8592;t.arrowleftdbl=8656;t.arrowleftdblstroke=8653;t.arrowleftoverright=8646;t.arrowleftwhite=8678;t.arrowright=8594;t.arrowrightdblstroke=8655;t.arrowrightheavy=10142;t.arrowrightoverleft=8644;t.arrowrightwhite=8680;t.arrowtableft=8676;t.arrowtabright=8677;t.arrowup=8593;t.arrowupdn=8597;t.arrowupdnbse=8616;t.arrowupdownbase=8616;t.arrowupleft=8598;t.arrowupleftofdown=8645;t.arrowupright=8599;t.arrowupwhite=8679;t.arrowvertex=63718;t.asciicircum=94;t.asciicircummonospace=65342;t.asciitilde=126;t.asciitildemonospace=65374;t.ascript=593;t.ascriptturned=594;t.asmallhiragana=12353;t.asmallkatakana=12449;t.asmallkatakanahalfwidth=65383;t.asterisk=42;t.asteriskaltonearabic=1645;t.asteriskarabic=1645;t.asteriskmath=8727;t.asteriskmonospace=65290;t.asterisksmall=65121;t.asterism=8258;t.asuperior=63209;t.asymptoticallyequal=8771;t.at=64;t.atilde=227;t.atmonospace=65312;t.atsmall=65131;t.aturned=592;t.aubengali=2452;t.aubopomofo=12576;t.audeva=2324;t.augujarati=2708;t.augurmukhi=2580;t.aulengthmarkbengali=2519;t.aumatragurmukhi=2636;t.auvowelsignbengali=2508;t.auvowelsigndeva=2380;t.auvowelsigngujarati=2764;t.avagrahadeva=2365;t.aybarmenian=1377;t.ayin=1506;t.ayinaltonehebrew=64288;t.ayinhebrew=1506;t.b=98;t.babengali=2476;t.backslash=92;t.backslashmonospace=65340;t.badeva=2348;t.bagujarati=2732;t.bagurmukhi=2604;t.bahiragana=12400;t.bahtthai=3647;t.bakatakana=12496;t.bar=124;t.barmonospace=65372;t.bbopomofo=12549;t.bcircle=9425;t.bdotaccent=7683;t.bdotbelow=7685;t.beamedsixteenthnotes=9836;t.because=8757;t.becyrillic=1073;t.beharabic=1576;t.behfinalarabic=65168;t.behinitialarabic=65169;t.behiragana=12409;t.behmedialarabic=65170;t.behmeeminitialarabic=64671;t.behmeemisolatedarabic=64520;t.behnoonfinalarabic=64621;t.bekatakana=12505;t.benarmenian=1378;t.bet=1489;t.beta=946;t.betasymbolgreek=976;t.betdagesh=64305;t.betdageshhebrew=64305;t.bethebrew=1489;t.betrafehebrew=64332;t.bhabengali=2477;t.bhadeva=2349;t.bhagujarati=2733;t.bhagurmukhi=2605;t.bhook=595;t.bihiragana=12403;t.bikatakana=12499;t.bilabialclick=664;t.bindigurmukhi=2562;t.birusquare=13105;t.blackcircle=9679;t.blackdiamond=9670;t.blackdownpointingtriangle=9660;t.blackleftpointingpointer=9668;t.blackleftpointingtriangle=9664;t.blacklenticularbracketleft=12304;t.blacklenticularbracketleftvertical=65083;t.blacklenticularbracketright=12305;t.blacklenticularbracketrightvertical=65084;t.blacklowerlefttriangle=9699;t.blacklowerrighttriangle=9698;t.blackrectangle=9644;t.blackrightpointingpointer=9658;t.blackrightpointingtriangle=9654;t.blacksmallsquare=9642;t.blacksmilingface=9787;t.blacksquare=9632;t.blackstar=9733;t.blackupperlefttriangle=9700;t.blackupperrighttriangle=9701;t.blackuppointingsmalltriangle=9652;t.blackuppointingtriangle=9650;t.blank=9251;t.blinebelow=7687;t.block=9608;t.bmonospace=65346;t.bobaimaithai=3610;t.bohiragana=12412;t.bokatakana=12508;t.bparen=9373;t.bqsquare=13251;t.braceex=63732;t.braceleft=123;t.braceleftbt=63731;t.braceleftmid=63730;t.braceleftmonospace=65371;t.braceleftsmall=65115;t.bracelefttp=63729;t.braceleftvertical=65079;t.braceright=125;t.bracerightbt=63742;t.bracerightmid=63741;t.bracerightmonospace=65373;t.bracerightsmall=65116;t.bracerighttp=63740;t.bracerightvertical=65080;t.bracketleft=91;t.bracketleftbt=63728;t.bracketleftex=63727;t.bracketleftmonospace=65339;t.bracketlefttp=63726;t.bracketright=93;t.bracketrightbt=63739;t.bracketrightex=63738;t.bracketrightmonospace=65341;t.bracketrighttp=63737;t.breve=728;t.brevebelowcmb=814;t.brevecmb=774;t.breveinvertedbelowcmb=815;t.breveinvertedcmb=785;t.breveinverteddoublecmb=865;t.bridgebelowcmb=810;t.bridgeinvertedbelowcmb=826;t.brokenbar=166;t.bstroke=384;t.bsuperior=63210;t.btopbar=387;t.buhiragana=12406;t.bukatakana=12502;t.bullet=8226;t.bulletinverse=9688;t.bulletoperator=8729;t.bullseye=9678;t.c=99;t.caarmenian=1390;t.cabengali=2458;t.cacute=263;t.cadeva=2330;t.cagujarati=2714;t.cagurmukhi=2586;t.calsquare=13192;t.candrabindubengali=2433;t.candrabinducmb=784;t.candrabindudeva=2305;t.candrabindugujarati=2689;t.capslock=8682;t.careof=8453;t.caron=711;t.caronbelowcmb=812;t.caroncmb=780;t.carriagereturn=8629;t.cbopomofo=12568;t.ccaron=269;t.ccedilla=231;t.ccedillaacute=7689;t.ccircle=9426;t.ccircumflex=265;t.ccurl=597;t.cdot=267;t.cdotaccent=267;t.cdsquare=13253;t.cedilla=184;t.cedillacmb=807;t.cent=162;t.centigrade=8451;t.centinferior=63199;t.centmonospace=65504;t.centoldstyle=63394;t.centsuperior=63200;t.chaarmenian=1401;t.chabengali=2459;t.chadeva=2331;t.chagujarati=2715;t.chagurmukhi=2587;t.chbopomofo=12564;t.cheabkhasiancyrillic=1213;t.checkmark=10003;t.checyrillic=1095;t.chedescenderabkhasiancyrillic=1215;t.chedescendercyrillic=1207;t.chedieresiscyrillic=1269;t.cheharmenian=1395;t.chekhakassiancyrillic=1228;t.cheverticalstrokecyrillic=1209;t.chi=967;t.chieuchacirclekorean=12919;t.chieuchaparenkorean=12823;t.chieuchcirclekorean=12905;t.chieuchkorean=12618;t.chieuchparenkorean=12809;t.chochangthai=3594;t.chochanthai=3592;t.chochingthai=3593;t.chochoethai=3596;t.chook=392;t.cieucacirclekorean=12918;t.cieucaparenkorean=12822;t.cieuccirclekorean=12904;t.cieuckorean=12616;t.cieucparenkorean=12808;t.cieucuparenkorean=12828;t.circle=9675;t.circlecopyrt=169;t.circlemultiply=8855;t.circleot=8857;t.circleplus=8853;t.circlepostalmark=12342;t.circlewithlefthalfblack=9680;t.circlewithrighthalfblack=9681;t.circumflex=710;t.circumflexbelowcmb=813;t.circumflexcmb=770;t.clear=8999;t.clickalveolar=450;t.clickdental=448;t.clicklateral=449;t.clickretroflex=451;t.club=9827;t.clubsuitblack=9827;t.clubsuitwhite=9831;t.cmcubedsquare=13220;t.cmonospace=65347;t.cmsquaredsquare=13216;t.coarmenian=1409;t.colon=58;t.colonmonetary=8353;t.colonmonospace=65306;t.colonsign=8353;t.colonsmall=65109;t.colontriangularhalfmod=721;t.colontriangularmod=720;t.comma=44;t.commaabovecmb=787;t.commaaboverightcmb=789;t.commaaccent=63171;t.commaarabic=1548;t.commaarmenian=1373;t.commainferior=63201;t.commamonospace=65292;t.commareversedabovecmb=788;t.commareversedmod=701;t.commasmall=65104;t.commasuperior=63202;t.commaturnedabovecmb=786;t.commaturnedmod=699;t.compass=9788;t.congruent=8773;t.contourintegral=8750;t.control=8963;t.controlACK=6;t.controlBEL=7;t.controlBS=8;t.controlCAN=24;t.controlCR=13;t.controlDC1=17;t.controlDC2=18;t.controlDC3=19;t.controlDC4=20;t.controlDEL=127;t.controlDLE=16;t.controlEM=25;t.controlENQ=5;t.controlEOT=4;t.controlESC=27;t.controlETB=23;t.controlETX=3;t.controlFF=12;t.controlFS=28;t.controlGS=29;t.controlHT=9;t.controlLF=10;t.controlNAK=21;t.controlNULL=0;t.controlRS=30;t.controlSI=15;t.controlSO=14;t.controlSOT=2;t.controlSTX=1;t.controlSUB=26;t.controlSYN=22;t.controlUS=31;t.controlVT=11;t.copyright=169;t.copyrightsans=63721;t.copyrightserif=63193;t.cornerbracketleft=12300;t.cornerbracketlefthalfwidth=65378;t.cornerbracketleftvertical=65089;t.cornerbracketright=12301;t.cornerbracketrighthalfwidth=65379;t.cornerbracketrightvertical=65090;t.corporationsquare=13183;t.cosquare=13255;t.coverkgsquare=13254;t.cparen=9374;t.cruzeiro=8354;t.cstretched=663;t.curlyand=8911;t.curlyor=8910;t.currency=164;t.cyrBreve=63185;t.cyrFlex=63186;t.cyrbreve=63188;t.cyrflex=63189;t.d=100;t.daarmenian=1380;t.dabengali=2470;t.dadarabic=1590;t.dadeva=2342;t.dadfinalarabic=65214;t.dadinitialarabic=65215;t.dadmedialarabic=65216;t.dagesh=1468;t.dageshhebrew=1468;t.dagger=8224;t.daggerdbl=8225;t.dagujarati=2726;t.dagurmukhi=2598;t.dahiragana=12384;t.dakatakana=12480;t.dalarabic=1583;t.dalet=1491;t.daletdagesh=64307;t.daletdageshhebrew=64307;t.dalethebrew=1491;t.dalfinalarabic=65194;t.dammaarabic=1615;t.dammalowarabic=1615;t.dammatanaltonearabic=1612;t.dammatanarabic=1612;t.danda=2404;t.dargahebrew=1447;t.dargalefthebrew=1447;t.dasiapneumatacyrilliccmb=1157;t.dblGrave=63187;t.dblanglebracketleft=12298;t.dblanglebracketleftvertical=65085;t.dblanglebracketright=12299;t.dblanglebracketrightvertical=65086;t.dblarchinvertedbelowcmb=811;t.dblarrowleft=8660;t.dblarrowright=8658;t.dbldanda=2405;t.dblgrave=63190;t.dblgravecmb=783;t.dblintegral=8748;t.dbllowline=8215;t.dbllowlinecmb=819;t.dbloverlinecmb=831;t.dblprimemod=698;t.dblverticalbar=8214;t.dblverticallineabovecmb=782;t.dbopomofo=12553;t.dbsquare=13256;t.dcaron=271;t.dcedilla=7697;t.dcircle=9427;t.dcircumflexbelow=7699;t.dcroat=273;t.ddabengali=2465;t.ddadeva=2337;t.ddagujarati=2721;t.ddagurmukhi=2593;t.ddalarabic=1672;t.ddalfinalarabic=64393;t.dddhadeva=2396;t.ddhabengali=2466;t.ddhadeva=2338;t.ddhagujarati=2722;t.ddhagurmukhi=2594;t.ddotaccent=7691;t.ddotbelow=7693;t.decimalseparatorarabic=1643;t.decimalseparatorpersian=1643;t.decyrillic=1076;t.degree=176;t.dehihebrew=1453;t.dehiragana=12391;t.deicoptic=1007;t.dekatakana=12487;t.deleteleft=9003;t.deleteright=8998;t.delta=948;t.deltaturned=397;t.denominatorminusonenumeratorbengali=2552;t.dezh=676;t.dhabengali=2471;t.dhadeva=2343;t.dhagujarati=2727;t.dhagurmukhi=2599;t.dhook=599;t.dialytikatonos=901;t.dialytikatonoscmb=836;t.diamond=9830;t.diamondsuitwhite=9826;t.dieresis=168;t.dieresisacute=63191;t.dieresisbelowcmb=804;t.dieresiscmb=776;t.dieresisgrave=63192;t.dieresistonos=901;t.dihiragana=12386;t.dikatakana=12482;t.dittomark=12291;t.divide=247;t.divides=8739;t.divisionslash=8725;t.djecyrillic=1106;t.dkshade=9619;t.dlinebelow=7695;t.dlsquare=13207;t.dmacron=273;t.dmonospace=65348;t.dnblock=9604;t.dochadathai=3598;t.dodekthai=3604;t.dohiragana=12393;t.dokatakana=12489;t.dollar=36;t.dollarinferior=63203;t.dollarmonospace=65284;t.dollaroldstyle=63268;t.dollarsmall=65129;t.dollarsuperior=63204;t.dong=8363;t.dorusquare=13094;t.dotaccent=729;t.dotaccentcmb=775;t.dotbelowcmb=803;t.dotbelowcomb=803;t.dotkatakana=12539;t.dotlessi=305;t.dotlessj=63166;t.dotlessjstrokehook=644;t.dotmath=8901;t.dottedcircle=9676;t.doubleyodpatah=64287;t.doubleyodpatahhebrew=64287;t.downtackbelowcmb=798;t.downtackmod=725;t.dparen=9375;t.dsuperior=63211;t.dtail=598;t.dtopbar=396;t.duhiragana=12389;t.dukatakana=12485;t.dz=499;t.dzaltone=675;t.dzcaron=454;t.dzcurl=677;t.dzeabkhasiancyrillic=1249;t.dzecyrillic=1109;t.dzhecyrillic=1119;t.e=101;t.eacute=233;t.earth=9793;t.ebengali=2447;t.ebopomofo=12572;t.ebreve=277;t.ecandradeva=2317;t.ecandragujarati=2701;t.ecandravowelsigndeva=2373;t.ecandravowelsigngujarati=2757;t.ecaron=283;t.ecedillabreve=7709;t.echarmenian=1381;t.echyiwnarmenian=1415;t.ecircle=9428;t.ecircumflex=234;t.ecircumflexacute=7871;t.ecircumflexbelow=7705;t.ecircumflexdotbelow=7879;t.ecircumflexgrave=7873;t.ecircumflexhookabove=7875;t.ecircumflextilde=7877;t.ecyrillic=1108;t.edblgrave=517;t.edeva=2319;t.edieresis=235;t.edot=279;t.edotaccent=279;t.edotbelow=7865;t.eegurmukhi=2575;t.eematragurmukhi=2631;t.efcyrillic=1092;t.egrave=232;t.egujarati=2703;t.eharmenian=1383;t.ehbopomofo=12573;t.ehiragana=12360;t.ehookabove=7867;t.eibopomofo=12575;t.eight=56;t.eightarabic=1640;t.eightbengali=2542;t.eightcircle=9319;t.eightcircleinversesansserif=10129;t.eightdeva=2414;t.eighteencircle=9329;t.eighteenparen=9349;t.eighteenperiod=9369;t.eightgujarati=2798;t.eightgurmukhi=2670;t.eighthackarabic=1640;t.eighthangzhou=12328;t.eighthnotebeamed=9835;t.eightideographicparen=12839;t.eightinferior=8328;t.eightmonospace=65304;t.eightoldstyle=63288;t.eightparen=9339;t.eightperiod=9359;t.eightpersian=1784;t.eightroman=8567;t.eightsuperior=8312;t.eightthai=3672;t.einvertedbreve=519;t.eiotifiedcyrillic=1125;t.ekatakana=12456;t.ekatakanahalfwidth=65396;t.ekonkargurmukhi=2676;t.ekorean=12628;t.elcyrillic=1083;t.element=8712;t.elevencircle=9322;t.elevenparen=9342;t.elevenperiod=9362;t.elevenroman=8570;t.ellipsis=8230;t.ellipsisvertical=8942;t.emacron=275;t.emacronacute=7703;t.emacrongrave=7701;t.emcyrillic=1084;t.emdash=8212;t.emdashvertical=65073;t.emonospace=65349;t.emphasismarkarmenian=1371;t.emptyset=8709;t.enbopomofo=12579;t.encyrillic=1085;t.endash=8211;t.endashvertical=65074;t.endescendercyrillic=1187;t.eng=331;t.engbopomofo=12581;t.enghecyrillic=1189;t.enhookcyrillic=1224;t.enspace=8194;t.eogonek=281;t.eokorean=12627;t.eopen=603;t.eopenclosed=666;t.eopenreversed=604;t.eopenreversedclosed=606;t.eopenreversedhook=605;t.eparen=9376;t.epsilon=949;t.epsilontonos=941;t.equal=61;t.equalmonospace=65309;t.equalsmall=65126;t.equalsuperior=8316;t.equivalence=8801;t.erbopomofo=12582;t.ercyrillic=1088;t.ereversed=600;t.ereversedcyrillic=1101;t.escyrillic=1089;t.esdescendercyrillic=1195;t.esh=643;t.eshcurl=646;t.eshortdeva=2318;t.eshortvowelsigndeva=2374;t.eshreversedloop=426;t.eshsquatreversed=645;t.esmallhiragana=12359;t.esmallkatakana=12455;t.esmallkatakanahalfwidth=65386;t.estimated=8494;t.esuperior=63212;t.eta=951;t.etarmenian=1384;t.etatonos=942;t.eth=240;t.etilde=7869;t.etildebelow=7707;t.etnahtafoukhhebrew=1425;t.etnahtafoukhlefthebrew=1425;t.etnahtahebrew=1425;t.etnahtalefthebrew=1425;t.eturned=477;t.eukorean=12641;t.euro=8364;t.evowelsignbengali=2503;t.evowelsigndeva=2375;t.evowelsigngujarati=2759;t.exclam=33;t.exclamarmenian=1372;t.exclamdbl=8252;t.exclamdown=161;t.exclamdownsmall=63393;t.exclammonospace=65281;t.exclamsmall=63265;t.existential=8707;t.ezh=658;t.ezhcaron=495;t.ezhcurl=659;t.ezhreversed=441;t.ezhtail=442;t.f=102;t.fadeva=2398;t.fagurmukhi=2654;t.fahrenheit=8457;t.fathaarabic=1614;t.fathalowarabic=1614;t.fathatanarabic=1611;t.fbopomofo=12552;t.fcircle=9429;t.fdotaccent=7711;t.feharabic=1601;t.feharmenian=1414;t.fehfinalarabic=65234;t.fehinitialarabic=65235;t.fehmedialarabic=65236;t.feicoptic=997;t.female=9792;t.ff=64256;t.f_f=64256;t.ffi=64259;t.f_f_i=64259;t.ffl=64260;t.f_f_l=64260;t.fi=64257;t.f_i=64257;t.fifteencircle=9326;t.fifteenparen=9346;t.fifteenperiod=9366;t.figuredash=8210;t.filledbox=9632;t.filledrect=9644;t.finalkaf=1498;t.finalkafdagesh=64314;t.finalkafdageshhebrew=64314;t.finalkafhebrew=1498;t.finalmem=1501;t.finalmemhebrew=1501;t.finalnun=1503;t.finalnunhebrew=1503;t.finalpe=1507;t.finalpehebrew=1507;t.finaltsadi=1509;t.finaltsadihebrew=1509;t.firsttonechinese=713;t.fisheye=9673;t.fitacyrillic=1139;t.five=53;t.fivearabic=1637;t.fivebengali=2539;t.fivecircle=9316;t.fivecircleinversesansserif=10126;t.fivedeva=2411;t.fiveeighths=8541;t.fivegujarati=2795;t.fivegurmukhi=2667;t.fivehackarabic=1637;t.fivehangzhou=12325;t.fiveideographicparen=12836;t.fiveinferior=8325;t.fivemonospace=65301;t.fiveoldstyle=63285;t.fiveparen=9336;t.fiveperiod=9356;t.fivepersian=1781;t.fiveroman=8564;t.fivesuperior=8309;t.fivethai=3669;t.fl=64258;t.f_l=64258;t.florin=402;t.fmonospace=65350;t.fmsquare=13209;t.fofanthai=3615;t.fofathai=3613;t.fongmanthai=3663;t.forall=8704;t.four=52;t.fourarabic=1636;t.fourbengali=2538;t.fourcircle=9315;t.fourcircleinversesansserif=10125;t.fourdeva=2410;t.fourgujarati=2794;t.fourgurmukhi=2666;t.fourhackarabic=1636;t.fourhangzhou=12324;t.fourideographicparen=12835;t.fourinferior=8324;t.fourmonospace=65300;t.fournumeratorbengali=2551;t.fouroldstyle=63284;t.fourparen=9335;t.fourperiod=9355;t.fourpersian=1780;t.fourroman=8563;t.foursuperior=8308;t.fourteencircle=9325;t.fourteenparen=9345;t.fourteenperiod=9365;t.fourthai=3668;t.fourthtonechinese=715;t.fparen=9377;t.fraction=8260;t.franc=8355;t.g=103;t.gabengali=2455;t.gacute=501;t.gadeva=2327;t.gafarabic=1711;t.gaffinalarabic=64403;t.gafinitialarabic=64404;t.gafmedialarabic=64405;t.gagujarati=2711;t.gagurmukhi=2583;t.gahiragana=12364;t.gakatakana=12460;t.gamma=947;t.gammalatinsmall=611;t.gammasuperior=736;t.gangiacoptic=1003;t.gbopomofo=12557;t.gbreve=287;t.gcaron=487;t.gcedilla=291;t.gcircle=9430;t.gcircumflex=285;t.gcommaaccent=291;t.gdot=289;t.gdotaccent=289;t.gecyrillic=1075;t.gehiragana=12370;t.gekatakana=12466;t.geometricallyequal=8785;t.gereshaccenthebrew=1436;t.gereshhebrew=1523;t.gereshmuqdamhebrew=1437;t.germandbls=223;t.gershayimaccenthebrew=1438;t.gershayimhebrew=1524;t.getamark=12307;t.ghabengali=2456;t.ghadarmenian=1394;t.ghadeva=2328;t.ghagujarati=2712;t.ghagurmukhi=2584;t.ghainarabic=1594;t.ghainfinalarabic=65230;t.ghaininitialarabic=65231;t.ghainmedialarabic=65232;t.ghemiddlehookcyrillic=1173;t.ghestrokecyrillic=1171;t.gheupturncyrillic=1169;t.ghhadeva=2394;t.ghhagurmukhi=2650;t.ghook=608;t.ghzsquare=13203;t.gihiragana=12366;t.gikatakana=12462;t.gimarmenian=1379;t.gimel=1490;t.gimeldagesh=64306;t.gimeldageshhebrew=64306;t.gimelhebrew=1490;t.gjecyrillic=1107;t.glottalinvertedstroke=446;t.glottalstop=660;t.glottalstopinverted=662;t.glottalstopmod=704;t.glottalstopreversed=661;t.glottalstopreversedmod=705;t.glottalstopreversedsuperior=740;t.glottalstopstroke=673;t.glottalstopstrokereversed=674;t.gmacron=7713;t.gmonospace=65351;t.gohiragana=12372;t.gokatakana=12468;t.gparen=9378;t.gpasquare=13228;t.gradient=8711;t.grave=96;t.gravebelowcmb=790;t.gravecmb=768;t.gravecomb=768;t.gravedeva=2387;t.gravelowmod=718;t.gravemonospace=65344;t.gravetonecmb=832;t.greater=62;t.greaterequal=8805;t.greaterequalorless=8923;t.greatermonospace=65310;t.greaterorequivalent=8819;t.greaterorless=8823;t.greateroverequal=8807;t.greatersmall=65125;t.gscript=609;t.gstroke=485;t.guhiragana=12368;t.guillemotleft=171;t.guillemotright=187;t.guilsinglleft=8249;t.guilsinglright=8250;t.gukatakana=12464;t.guramusquare=13080;t.gysquare=13257;t.h=104;t.haabkhasiancyrillic=1193;t.haaltonearabic=1729;t.habengali=2489;t.hadescendercyrillic=1203;t.hadeva=2361;t.hagujarati=2745;t.hagurmukhi=2617;t.haharabic=1581;t.hahfinalarabic=65186;t.hahinitialarabic=65187;t.hahiragana=12399;t.hahmedialarabic=65188;t.haitusquare=13098;t.hakatakana=12495;t.hakatakanahalfwidth=65418;t.halantgurmukhi=2637;t.hamzaarabic=1569;t.hamzalowarabic=1569;t.hangulfiller=12644;t.hardsigncyrillic=1098;t.harpoonleftbarbup=8636;t.harpoonrightbarbup=8640;t.hasquare=13258;t.hatafpatah=1458;t.hatafpatah16=1458;t.hatafpatah23=1458;t.hatafpatah2f=1458;t.hatafpatahhebrew=1458;t.hatafpatahnarrowhebrew=1458;t.hatafpatahquarterhebrew=1458;t.hatafpatahwidehebrew=1458;t.hatafqamats=1459;t.hatafqamats1b=1459;t.hatafqamats28=1459;t.hatafqamats34=1459;t.hatafqamatshebrew=1459;t.hatafqamatsnarrowhebrew=1459;t.hatafqamatsquarterhebrew=1459;t.hatafqamatswidehebrew=1459;t.hatafsegol=1457;t.hatafsegol17=1457;t.hatafsegol24=1457;t.hatafsegol30=1457;t.hatafsegolhebrew=1457;t.hatafsegolnarrowhebrew=1457;t.hatafsegolquarterhebrew=1457;t.hatafsegolwidehebrew=1457;t.hbar=295;t.hbopomofo=12559;t.hbrevebelow=7723;t.hcedilla=7721;t.hcircle=9431;t.hcircumflex=293;t.hdieresis=7719;t.hdotaccent=7715;t.hdotbelow=7717;t.he=1492;t.heart=9829;t.heartsuitblack=9829;t.heartsuitwhite=9825;t.hedagesh=64308;t.hedageshhebrew=64308;t.hehaltonearabic=1729;t.heharabic=1607;t.hehebrew=1492;t.hehfinalaltonearabic=64423;t.hehfinalalttwoarabic=65258;t.hehfinalarabic=65258;t.hehhamzaabovefinalarabic=64421;t.hehhamzaaboveisolatedarabic=64420;t.hehinitialaltonearabic=64424;t.hehinitialarabic=65259;t.hehiragana=12408;t.hehmedialaltonearabic=64425;t.hehmedialarabic=65260;t.heiseierasquare=13179;t.hekatakana=12504;t.hekatakanahalfwidth=65421;t.hekutaarusquare=13110;t.henghook=615;t.herutusquare=13113;t.het=1495;t.hethebrew=1495;t.hhook=614;t.hhooksuperior=689;t.hieuhacirclekorean=12923;t.hieuhaparenkorean=12827;t.hieuhcirclekorean=12909;t.hieuhkorean=12622;t.hieuhparenkorean=12813;t.hihiragana=12402;t.hikatakana=12498;t.hikatakanahalfwidth=65419;t.hiriq=1460;t.hiriq14=1460;t.hiriq21=1460;t.hiriq2d=1460;t.hiriqhebrew=1460;t.hiriqnarrowhebrew=1460;t.hiriqquarterhebrew=1460;t.hiriqwidehebrew=1460;t.hlinebelow=7830;t.hmonospace=65352;t.hoarmenian=1392;t.hohipthai=3627;t.hohiragana=12411;t.hokatakana=12507;t.hokatakanahalfwidth=65422;t.holam=1465;t.holam19=1465;t.holam26=1465;t.holam32=1465;t.holamhebrew=1465;t.holamnarrowhebrew=1465;t.holamquarterhebrew=1465;t.holamwidehebrew=1465;t.honokhukthai=3630;t.hookabovecomb=777;t.hookcmb=777;t.hookpalatalizedbelowcmb=801;t.hookretroflexbelowcmb=802;t.hoonsquare=13122;t.horicoptic=1001;t.horizontalbar=8213;t.horncmb=795;t.hotsprings=9832;t.house=8962;t.hparen=9379;t.hsuperior=688;t.hturned=613;t.huhiragana=12405;t.huiitosquare=13107;t.hukatakana=12501;t.hukatakanahalfwidth=65420;t.hungarumlaut=733;t.hungarumlautcmb=779;t.hv=405;t.hyphen=45;t.hypheninferior=63205;t.hyphenmonospace=65293;t.hyphensmall=65123;t.hyphensuperior=63206;t.hyphentwo=8208;t.i=105;t.iacute=237;t.iacyrillic=1103;t.ibengali=2439;t.ibopomofo=12583;t.ibreve=301;t.icaron=464;t.icircle=9432;t.icircumflex=238;t.icyrillic=1110;t.idblgrave=521;t.ideographearthcircle=12943;t.ideographfirecircle=12939;t.ideographicallianceparen=12863;t.ideographiccallparen=12858;t.ideographiccentrecircle=12965;t.ideographicclose=12294;t.ideographiccomma=12289;t.ideographiccommaleft=65380;t.ideographiccongratulationparen=12855;t.ideographiccorrectcircle=12963;t.ideographicearthparen=12847;t.ideographicenterpriseparen=12861;t.ideographicexcellentcircle=12957;t.ideographicfestivalparen=12864;t.ideographicfinancialcircle=12950;t.ideographicfinancialparen=12854;t.ideographicfireparen=12843;t.ideographichaveparen=12850;t.ideographichighcircle=12964;t.ideographiciterationmark=12293;t.ideographiclaborcircle=12952;t.ideographiclaborparen=12856;t.ideographicleftcircle=12967;t.ideographiclowcircle=12966;t.ideographicmedicinecircle=12969;t.ideographicmetalparen=12846;t.ideographicmoonparen=12842;t.ideographicnameparen=12852;t.ideographicperiod=12290;t.ideographicprintcircle=12958;t.ideographicreachparen=12867;t.ideographicrepresentparen=12857;t.ideographicresourceparen=12862;t.ideographicrightcircle=12968;t.ideographicsecretcircle=12953;t.ideographicselfparen=12866;t.ideographicsocietyparen=12851;t.ideographicspace=12288;t.ideographicspecialparen=12853;t.ideographicstockparen=12849;t.ideographicstudyparen=12859;t.ideographicsunparen=12848;t.ideographicsuperviseparen=12860;t.ideographicwaterparen=12844;t.ideographicwoodparen=12845;t.ideographiczero=12295;t.ideographmetalcircle=12942;t.ideographmooncircle=12938;t.ideographnamecircle=12948;t.ideographsuncircle=12944;t.ideographwatercircle=12940;t.ideographwoodcircle=12941;t.ideva=2311;t.idieresis=239;t.idieresisacute=7727;t.idieresiscyrillic=1253;t.idotbelow=7883;t.iebrevecyrillic=1239;t.iecyrillic=1077;t.ieungacirclekorean=12917;t.ieungaparenkorean=12821;t.ieungcirclekorean=12903;t.ieungkorean=12615;t.ieungparenkorean=12807;t.igrave=236;t.igujarati=2695;t.igurmukhi=2567;t.ihiragana=12356;t.ihookabove=7881;t.iibengali=2440;t.iicyrillic=1080;t.iideva=2312;t.iigujarati=2696;t.iigurmukhi=2568;t.iimatragurmukhi=2624;t.iinvertedbreve=523;t.iishortcyrillic=1081;t.iivowelsignbengali=2496;t.iivowelsigndeva=2368;t.iivowelsigngujarati=2752;t.ij=307;t.ikatakana=12452;t.ikatakanahalfwidth=65394;t.ikorean=12643;t.ilde=732;t.iluyhebrew=1452;t.imacron=299;t.imacroncyrillic=1251;t.imageorapproximatelyequal=8787;t.imatragurmukhi=2623;t.imonospace=65353;t.increment=8710;t.infinity=8734;t.iniarmenian=1387;t.integral=8747;t.integralbottom=8993;t.integralbt=8993;t.integralex=63733;t.integraltop=8992;t.integraltp=8992;t.intersection=8745;t.intisquare=13061;t.invbullet=9688;t.invcircle=9689;t.invsmileface=9787;t.iocyrillic=1105;t.iogonek=303;t.iota=953;t.iotadieresis=970;t.iotadieresistonos=912;t.iotalatin=617;t.iotatonos=943;t.iparen=9380;t.irigurmukhi=2674;t.ismallhiragana=12355;t.ismallkatakana=12451;t.ismallkatakanahalfwidth=65384;t.issharbengali=2554;t.istroke=616;t.isuperior=63213;t.iterationhiragana=12445;t.iterationkatakana=12541;t.itilde=297;t.itildebelow=7725;t.iubopomofo=12585;t.iucyrillic=1102;t.ivowelsignbengali=2495;t.ivowelsigndeva=2367;t.ivowelsigngujarati=2751;t.izhitsacyrillic=1141;t.izhitsadblgravecyrillic=1143;t.j=106;t.jaarmenian=1393;t.jabengali=2460;t.jadeva=2332;t.jagujarati=2716;t.jagurmukhi=2588;t.jbopomofo=12560;t.jcaron=496;t.jcircle=9433;t.jcircumflex=309;t.jcrossedtail=669;t.jdotlessstroke=607;t.jecyrillic=1112;t.jeemarabic=1580;t.jeemfinalarabic=65182;t.jeeminitialarabic=65183;t.jeemmedialarabic=65184;t.jeharabic=1688;t.jehfinalarabic=64395;t.jhabengali=2461;t.jhadeva=2333;t.jhagujarati=2717;t.jhagurmukhi=2589;t.jheharmenian=1403;t.jis=12292;t.jmonospace=65354;t.jparen=9381;t.jsuperior=690;t.k=107;t.kabashkircyrillic=1185;t.kabengali=2453;t.kacute=7729;t.kacyrillic=1082;t.kadescendercyrillic=1179;t.kadeva=2325;t.kaf=1499;t.kafarabic=1603;t.kafdagesh=64315;t.kafdageshhebrew=64315;t.kaffinalarabic=65242;t.kafhebrew=1499;t.kafinitialarabic=65243;t.kafmedialarabic=65244;t.kafrafehebrew=64333;t.kagujarati=2709;t.kagurmukhi=2581;t.kahiragana=12363;t.kahookcyrillic=1220;t.kakatakana=12459;t.kakatakanahalfwidth=65398;t.kappa=954;t.kappasymbolgreek=1008;t.kapyeounmieumkorean=12657;t.kapyeounphieuphkorean=12676;t.kapyeounpieupkorean=12664;t.kapyeounssangpieupkorean=12665;t.karoriisquare=13069;t.kashidaautoarabic=1600;t.kashidaautonosidebearingarabic=1600;t.kasmallkatakana=12533;t.kasquare=13188;t.kasraarabic=1616;t.kasratanarabic=1613;t.kastrokecyrillic=1183;t.katahiraprolongmarkhalfwidth=65392;t.kaverticalstrokecyrillic=1181;t.kbopomofo=12558;t.kcalsquare=13193;t.kcaron=489;t.kcedilla=311;t.kcircle=9434;t.kcommaaccent=311;t.kdotbelow=7731;t.keharmenian=1412;t.kehiragana=12369;t.kekatakana=12465;t.kekatakanahalfwidth=65401;t.kenarmenian=1391;t.kesmallkatakana=12534;t.kgreenlandic=312;t.khabengali=2454;t.khacyrillic=1093;t.khadeva=2326;t.khagujarati=2710;t.khagurmukhi=2582;t.khaharabic=1582;t.khahfinalarabic=65190;t.khahinitialarabic=65191;t.khahmedialarabic=65192;t.kheicoptic=999;t.khhadeva=2393;t.khhagurmukhi=2649;t.khieukhacirclekorean=12920;t.khieukhaparenkorean=12824;t.khieukhcirclekorean=12906;t.khieukhkorean=12619;t.khieukhparenkorean=12810;t.khokhaithai=3586;t.khokhonthai=3589;t.khokhuatthai=3587;t.khokhwaithai=3588;t.khomutthai=3675;t.khook=409;t.khorakhangthai=3590;t.khzsquare=13201;t.kihiragana=12365;t.kikatakana=12461;t.kikatakanahalfwidth=65399;t.kiroguramusquare=13077;t.kiromeetorusquare=13078;t.kirosquare=13076;t.kiyeokacirclekorean=12910;t.kiyeokaparenkorean=12814;t.kiyeokcirclekorean=12896;t.kiyeokkorean=12593;t.kiyeokparenkorean=12800;t.kiyeoksioskorean=12595;t.kjecyrillic=1116;t.klinebelow=7733;t.klsquare=13208;t.kmcubedsquare=13222;t.kmonospace=65355;t.kmsquaredsquare=13218;t.kohiragana=12371;t.kohmsquare=13248;t.kokaithai=3585;t.kokatakana=12467;t.kokatakanahalfwidth=65402;t.kooposquare=13086;t.koppacyrillic=1153;t.koreanstandardsymbol=12927;t.koroniscmb=835;t.kparen=9382;t.kpasquare=13226;t.ksicyrillic=1135;t.ktsquare=13263;t.kturned=670;t.kuhiragana=12367;t.kukatakana=12463;t.kukatakanahalfwidth=65400;t.kvsquare=13240;t.kwsquare=13246;t.l=108;t.labengali=2482;t.lacute=314;t.ladeva=2354;t.lagujarati=2738;t.lagurmukhi=2610;t.lakkhangyaothai=3653;t.lamaleffinalarabic=65276;t.lamalefhamzaabovefinalarabic=65272;t.lamalefhamzaaboveisolatedarabic=65271;t.lamalefhamzabelowfinalarabic=65274;t.lamalefhamzabelowisolatedarabic=65273;t.lamalefisolatedarabic=65275;t.lamalefmaddaabovefinalarabic=65270;t.lamalefmaddaaboveisolatedarabic=65269;t.lamarabic=1604;t.lambda=955;t.lambdastroke=411;t.lamed=1500;t.lameddagesh=64316;t.lameddageshhebrew=64316;t.lamedhebrew=1500;t.lamfinalarabic=65246;t.lamhahinitialarabic=64714;t.laminitialarabic=65247;t.lamjeeminitialarabic=64713;t.lamkhahinitialarabic=64715;t.lamlamhehisolatedarabic=65010;t.lammedialarabic=65248;t.lammeemhahinitialarabic=64904;t.lammeeminitialarabic=64716;t.largecircle=9711;t.lbar=410;t.lbelt=620;t.lbopomofo=12556;t.lcaron=318;t.lcedilla=316;t.lcircle=9435;t.lcircumflexbelow=7741;t.lcommaaccent=316;t.ldot=320;t.ldotaccent=320;t.ldotbelow=7735;t.ldotbelowmacron=7737;t.leftangleabovecmb=794;t.lefttackbelowcmb=792;t.less=60;t.lessequal=8804;t.lessequalorgreater=8922;t.lessmonospace=65308;t.lessorequivalent=8818;t.lessorgreater=8822;t.lessoverequal=8806;t.lesssmall=65124;t.lezh=622;t.lfblock=9612;t.lhookretroflex=621;t.lira=8356;t.liwnarmenian=1388;t.lj=457;t.ljecyrillic=1113;t.ll=63168;t.lladeva=2355;t.llagujarati=2739;t.llinebelow=7739;t.llladeva=2356;t.llvocalicbengali=2529;t.llvocalicdeva=2401;t.llvocalicvowelsignbengali=2531;t.llvocalicvowelsigndeva=2403;t.lmiddletilde=619;t.lmonospace=65356;t.lmsquare=13264;t.lochulathai=3628;t.logicaland=8743;t.logicalnot=172;t.logicalnotreversed=8976;t.logicalor=8744;t.lolingthai=3621;t.longs=383;t.lowlinecenterline=65102;t.lowlinecmb=818;t.lowlinedashed=65101;t.lozenge=9674;t.lparen=9383;t.lslash=322;t.lsquare=8467;t.lsuperior=63214;t.ltshade=9617;t.luthai=3622;t.lvocalicbengali=2444;t.lvocalicdeva=2316;t.lvocalicvowelsignbengali=2530;t.lvocalicvowelsigndeva=2402;t.lxsquare=13267;t.m=109;t.mabengali=2478;t.macron=175;t.macronbelowcmb=817;t.macroncmb=772;t.macronlowmod=717;t.macronmonospace=65507;t.macute=7743;t.madeva=2350;t.magujarati=2734;t.magurmukhi=2606;t.mahapakhhebrew=1444;t.mahapakhlefthebrew=1444;t.mahiragana=12414;t.maichattawalowleftthai=63637;t.maichattawalowrightthai=63636;t.maichattawathai=3659;t.maichattawaupperleftthai=63635;t.maieklowleftthai=63628;t.maieklowrightthai=63627;t.maiekthai=3656;t.maiekupperleftthai=63626;t.maihanakatleftthai=63620;t.maihanakatthai=3633;t.maitaikhuleftthai=63625;t.maitaikhuthai=3655;t.maitholowleftthai=63631;t.maitholowrightthai=63630;t.maithothai=3657;t.maithoupperleftthai=63629;t.maitrilowleftthai=63634;t.maitrilowrightthai=63633;t.maitrithai=3658;t.maitriupperleftthai=63632;t.maiyamokthai=3654;t.makatakana=12510;t.makatakanahalfwidth=65423;t.male=9794;t.mansyonsquare=13127;t.maqafhebrew=1470;t.mars=9794;t.masoracirclehebrew=1455;t.masquare=13187;t.mbopomofo=12551;t.mbsquare=13268;t.mcircle=9436;t.mcubedsquare=13221;t.mdotaccent=7745;t.mdotbelow=7747;t.meemarabic=1605;t.meemfinalarabic=65250;t.meeminitialarabic=65251;t.meemmedialarabic=65252;t.meemmeeminitialarabic=64721;t.meemmeemisolatedarabic=64584;t.meetorusquare=13133;t.mehiragana=12417;t.meizierasquare=13182;t.mekatakana=12513;t.mekatakanahalfwidth=65426;t.mem=1502;t.memdagesh=64318;t.memdageshhebrew=64318;t.memhebrew=1502;t.menarmenian=1396;t.merkhahebrew=1445;t.merkhakefulahebrew=1446;t.merkhakefulalefthebrew=1446;t.merkhalefthebrew=1445;t.mhook=625;t.mhzsquare=13202;t.middledotkatakanahalfwidth=65381;t.middot=183;t.mieumacirclekorean=12914;t.mieumaparenkorean=12818;t.mieumcirclekorean=12900;t.mieumkorean=12609;t.mieumpansioskorean=12656;t.mieumparenkorean=12804;t.mieumpieupkorean=12654;t.mieumsioskorean=12655;t.mihiragana=12415;t.mikatakana=12511;t.mikatakanahalfwidth=65424;t.minus=8722;t.minusbelowcmb=800;t.minuscircle=8854;t.minusmod=727;t.minusplus=8723;t.minute=8242;t.miribaarusquare=13130;t.mirisquare=13129;t.mlonglegturned=624;t.mlsquare=13206;t.mmcubedsquare=13219;t.mmonospace=65357;t.mmsquaredsquare=13215;t.mohiragana=12418;t.mohmsquare=13249;t.mokatakana=12514;t.mokatakanahalfwidth=65427;t.molsquare=13270;t.momathai=3617;t.moverssquare=13223;t.moverssquaredsquare=13224;t.mparen=9384;t.mpasquare=13227;t.mssquare=13235;t.msuperior=63215;t.mturned=623;t.mu=181;t.mu1=181;t.muasquare=13186;t.muchgreater=8811;t.muchless=8810;t.mufsquare=13196;t.mugreek=956;t.mugsquare=13197;t.muhiragana=12416;t.mukatakana=12512;t.mukatakanahalfwidth=65425;t.mulsquare=13205;t.multiply=215;t.mumsquare=13211;t.munahhebrew=1443;t.munahlefthebrew=1443;t.musicalnote=9834;t.musicalnotedbl=9835;t.musicflatsign=9837;t.musicsharpsign=9839;t.mussquare=13234;t.muvsquare=13238;t.muwsquare=13244;t.mvmegasquare=13241;t.mvsquare=13239;t.mwmegasquare=13247;t.mwsquare=13245;t.n=110;t.nabengali=2472;t.nabla=8711;t.nacute=324;t.nadeva=2344;t.nagujarati=2728;t.nagurmukhi=2600;t.nahiragana=12394;t.nakatakana=12490;t.nakatakanahalfwidth=65413;t.napostrophe=329;t.nasquare=13185;t.nbopomofo=12555;t.nbspace=160;t.ncaron=328;t.ncedilla=326;t.ncircle=9437;t.ncircumflexbelow=7755;t.ncommaaccent=326;t.ndotaccent=7749;t.ndotbelow=7751;t.nehiragana=12397;t.nekatakana=12493;t.nekatakanahalfwidth=65416;t.newsheqelsign=8362;t.nfsquare=13195;t.ngabengali=2457;t.ngadeva=2329;t.ngagujarati=2713;t.ngagurmukhi=2585;t.ngonguthai=3591;t.nhiragana=12435;t.nhookleft=626;t.nhookretroflex=627;t.nieunacirclekorean=12911;t.nieunaparenkorean=12815;t.nieuncieuckorean=12597;t.nieuncirclekorean=12897;t.nieunhieuhkorean=12598;t.nieunkorean=12596;t.nieunpansioskorean=12648;t.nieunparenkorean=12801;t.nieunsioskorean=12647;t.nieuntikeutkorean=12646;t.nihiragana=12395;t.nikatakana=12491;t.nikatakanahalfwidth=65414;t.nikhahitleftthai=63641;t.nikhahitthai=3661;t.nine=57;t.ninearabic=1641;t.ninebengali=2543;t.ninecircle=9320;t.ninecircleinversesansserif=10130;t.ninedeva=2415;t.ninegujarati=2799;t.ninegurmukhi=2671;t.ninehackarabic=1641;t.ninehangzhou=12329;t.nineideographicparen=12840;t.nineinferior=8329;t.ninemonospace=65305;t.nineoldstyle=63289;t.nineparen=9340;t.nineperiod=9360;t.ninepersian=1785;t.nineroman=8568;t.ninesuperior=8313;t.nineteencircle=9330;t.nineteenparen=9350;t.nineteenperiod=9370;t.ninethai=3673;t.nj=460;t.njecyrillic=1114;t.nkatakana=12531;t.nkatakanahalfwidth=65437;t.nlegrightlong=414;t.nlinebelow=7753;t.nmonospace=65358;t.nmsquare=13210;t.nnabengali=2467;t.nnadeva=2339;t.nnagujarati=2723;t.nnagurmukhi=2595;t.nnnadeva=2345;t.nohiragana=12398;t.nokatakana=12494;t.nokatakanahalfwidth=65417;t.nonbreakingspace=160;t.nonenthai=3603;t.nonuthai=3609;t.noonarabic=1606;t.noonfinalarabic=65254;t.noonghunnaarabic=1722;t.noonghunnafinalarabic=64415;t.nooninitialarabic=65255;t.noonjeeminitialarabic=64722;t.noonjeemisolatedarabic=64587;t.noonmedialarabic=65256;t.noonmeeminitialarabic=64725;t.noonmeemisolatedarabic=64590;t.noonnoonfinalarabic=64653;t.notcontains=8716;t.notelement=8713;t.notelementof=8713;t.notequal=8800;t.notgreater=8815;t.notgreaternorequal=8817;t.notgreaternorless=8825;t.notidentical=8802;t.notless=8814;t.notlessnorequal=8816;t.notparallel=8742;t.notprecedes=8832;t.notsubset=8836;t.notsucceeds=8833;t.notsuperset=8837;t.nowarmenian=1398;t.nparen=9385;t.nssquare=13233;t.nsuperior=8319;t.ntilde=241;t.nu=957;t.nuhiragana=12396;t.nukatakana=12492;t.nukatakanahalfwidth=65415;t.nuktabengali=2492;t.nuktadeva=2364;t.nuktagujarati=2748;t.nuktagurmukhi=2620;t.numbersign=35;t.numbersignmonospace=65283;t.numbersignsmall=65119;t.numeralsigngreek=884;t.numeralsignlowergreek=885;t.numero=8470;t.nun=1504;t.nundagesh=64320;t.nundageshhebrew=64320;t.nunhebrew=1504;t.nvsquare=13237;t.nwsquare=13243;t.nyabengali=2462;t.nyadeva=2334;t.nyagujarati=2718;t.nyagurmukhi=2590;t.o=111;t.oacute=243;t.oangthai=3629;t.obarred=629;t.obarredcyrillic=1257;t.obarreddieresiscyrillic=1259;t.obengali=2451;t.obopomofo=12571;t.obreve=335;t.ocandradeva=2321;t.ocandragujarati=2705;t.ocandravowelsigndeva=2377;t.ocandravowelsigngujarati=2761;t.ocaron=466;t.ocircle=9438;t.ocircumflex=244;t.ocircumflexacute=7889;t.ocircumflexdotbelow=7897;t.ocircumflexgrave=7891;t.ocircumflexhookabove=7893;t.ocircumflextilde=7895;t.ocyrillic=1086;t.odblacute=337;t.odblgrave=525;t.odeva=2323;t.odieresis=246;t.odieresiscyrillic=1255;t.odotbelow=7885;t.oe=339;t.oekorean=12634;t.ogonek=731;t.ogonekcmb=808;t.ograve=242;t.ogujarati=2707;t.oharmenian=1413;t.ohiragana=12362;t.ohookabove=7887;t.ohorn=417;t.ohornacute=7899;t.ohorndotbelow=7907;t.ohorngrave=7901;t.ohornhookabove=7903;t.ohorntilde=7905;t.ohungarumlaut=337;t.oi=419;t.oinvertedbreve=527;t.okatakana=12458;t.okatakanahalfwidth=65397;t.okorean=12631;t.olehebrew=1451;t.omacron=333;t.omacronacute=7763;t.omacrongrave=7761;t.omdeva=2384;t.omega=969;t.omega1=982;t.omegacyrillic=1121;t.omegalatinclosed=631;t.omegaroundcyrillic=1147;t.omegatitlocyrillic=1149;t.omegatonos=974;t.omgujarati=2768;t.omicron=959;t.omicrontonos=972;t.omonospace=65359;t.one=49;t.onearabic=1633;t.onebengali=2535;t.onecircle=9312;t.onecircleinversesansserif=10122;t.onedeva=2407;t.onedotenleader=8228;t.oneeighth=8539;t.onefitted=63196;t.onegujarati=2791;t.onegurmukhi=2663;t.onehackarabic=1633;t.onehalf=189;t.onehangzhou=12321;t.oneideographicparen=12832;t.oneinferior=8321;t.onemonospace=65297;t.onenumeratorbengali=2548;t.oneoldstyle=63281;t.oneparen=9332;t.oneperiod=9352;t.onepersian=1777;t.onequarter=188;t.oneroman=8560;t.onesuperior=185;t.onethai=3665;t.onethird=8531;t.oogonek=491;t.oogonekmacron=493;t.oogurmukhi=2579;t.oomatragurmukhi=2635;t.oopen=596;t.oparen=9386;t.openbullet=9702;t.option=8997;t.ordfeminine=170;t.ordmasculine=186;t.orthogonal=8735;t.oshortdeva=2322;t.oshortvowelsigndeva=2378;t.oslash=248;t.oslashacute=511;t.osmallhiragana=12361;t.osmallkatakana=12457;t.osmallkatakanahalfwidth=65387;t.ostrokeacute=511;t.osuperior=63216;t.otcyrillic=1151;t.otilde=245;t.otildeacute=7757;t.otildedieresis=7759;t.oubopomofo=12577;t.overline=8254;t.overlinecenterline=65098;t.overlinecmb=773;t.overlinedashed=65097;t.overlinedblwavy=65100;t.overlinewavy=65099;t.overscore=175;t.ovowelsignbengali=2507;t.ovowelsigndeva=2379;t.ovowelsigngujarati=2763;t.p=112;t.paampssquare=13184;t.paasentosquare=13099;t.pabengali=2474;t.pacute=7765;t.padeva=2346;t.pagedown=8671;t.pageup=8670;t.pagujarati=2730;t.pagurmukhi=2602;t.pahiragana=12401;t.paiyannoithai=3631;t.pakatakana=12497;t.palatalizationcyrilliccmb=1156;t.palochkacyrillic=1216;t.pansioskorean=12671;t.paragraph=182;t.parallel=8741;t.parenleft=40;t.parenleftaltonearabic=64830;t.parenleftbt=63725;t.parenleftex=63724;t.parenleftinferior=8333;t.parenleftmonospace=65288;t.parenleftsmall=65113;t.parenleftsuperior=8317;t.parenlefttp=63723;t.parenleftvertical=65077;t.parenright=41;t.parenrightaltonearabic=64831;t.parenrightbt=63736;t.parenrightex=63735;t.parenrightinferior=8334;t.parenrightmonospace=65289;t.parenrightsmall=65114;t.parenrightsuperior=8318;t.parenrighttp=63734;t.parenrightvertical=65078;t.partialdiff=8706;t.paseqhebrew=1472;t.pashtahebrew=1433;t.pasquare=13225;t.patah=1463;t.patah11=1463;t.patah1d=1463;t.patah2a=1463;t.patahhebrew=1463;t.patahnarrowhebrew=1463;t.patahquarterhebrew=1463;t.patahwidehebrew=1463;t.pazerhebrew=1441;t.pbopomofo=12550;t.pcircle=9439;t.pdotaccent=7767;t.pe=1508;t.pecyrillic=1087;t.pedagesh=64324;t.pedageshhebrew=64324;t.peezisquare=13115;t.pefinaldageshhebrew=64323;t.peharabic=1662;t.peharmenian=1402;t.pehebrew=1508;t.pehfinalarabic=64343;t.pehinitialarabic=64344;t.pehiragana=12410;t.pehmedialarabic=64345;t.pekatakana=12506;t.pemiddlehookcyrillic=1191;t.perafehebrew=64334;t.percent=37;t.percentarabic=1642;t.percentmonospace=65285;t.percentsmall=65130;t.period=46;t.periodarmenian=1417;t.periodcentered=183;t.periodhalfwidth=65377;t.periodinferior=63207;t.periodmonospace=65294;t.periodsmall=65106;t.periodsuperior=63208;t.perispomenigreekcmb=834;t.perpendicular=8869;t.perthousand=8240;t.peseta=8359;t.pfsquare=13194;t.phabengali=2475;t.phadeva=2347;t.phagujarati=2731;t.phagurmukhi=2603;t.phi=966;t.phi1=981;t.phieuphacirclekorean=12922;t.phieuphaparenkorean=12826;t.phieuphcirclekorean=12908;t.phieuphkorean=12621;t.phieuphparenkorean=12812;t.philatin=632;t.phinthuthai=3642;t.phisymbolgreek=981;t.phook=421;t.phophanthai=3614;t.phophungthai=3612;t.phosamphaothai=3616;t.pi=960;t.pieupacirclekorean=12915;t.pieupaparenkorean=12819;t.pieupcieuckorean=12662;t.pieupcirclekorean=12901;t.pieupkiyeokkorean=12658;t.pieupkorean=12610;t.pieupparenkorean=12805;t.pieupsioskiyeokkorean=12660;t.pieupsioskorean=12612;t.pieupsiostikeutkorean=12661;t.pieupthieuthkorean=12663;t.pieuptikeutkorean=12659;t.pihiragana=12404;t.pikatakana=12500;t.pisymbolgreek=982;t.piwrarmenian=1411;t.planckover2pi=8463;t.planckover2pi1=8463;t.plus=43;t.plusbelowcmb=799;t.pluscircle=8853;t.plusminus=177;t.plusmod=726;t.plusmonospace=65291;t.plussmall=65122;t.plussuperior=8314;t.pmonospace=65360;t.pmsquare=13272;t.pohiragana=12413;t.pointingindexdownwhite=9759;t.pointingindexleftwhite=9756;t.pointingindexrightwhite=9758;t.pointingindexupwhite=9757;t.pokatakana=12509;t.poplathai=3611;t.postalmark=12306;t.postalmarkface=12320;t.pparen=9387;t.precedes=8826;t.prescription=8478;t.primemod=697;t.primereversed=8245;t.product=8719;t.projective=8965;t.prolongedkana=12540;t.propellor=8984;t.propersubset=8834;t.propersuperset=8835;t.proportion=8759;t.proportional=8733;t.psi=968;t.psicyrillic=1137;t.psilipneumatacyrilliccmb=1158;t.pssquare=13232;t.puhiragana=12407;t.pukatakana=12503;t.pvsquare=13236;t.pwsquare=13242;t.q=113;t.qadeva=2392;t.qadmahebrew=1448;t.qafarabic=1602;t.qaffinalarabic=65238;t.qafinitialarabic=65239;t.qafmedialarabic=65240;t.qamats=1464;t.qamats10=1464;t.qamats1a=1464;t.qamats1c=1464;t.qamats27=1464;t.qamats29=1464;t.qamats33=1464;t.qamatsde=1464;t.qamatshebrew=1464;t.qamatsnarrowhebrew=1464;t.qamatsqatanhebrew=1464;t.qamatsqatannarrowhebrew=1464;t.qamatsqatanquarterhebrew=1464;t.qamatsqatanwidehebrew=1464;t.qamatsquarterhebrew=1464;t.qamatswidehebrew=1464;t.qarneyparahebrew=1439;t.qbopomofo=12561;t.qcircle=9440;t.qhook=672;t.qmonospace=65361;t.qof=1511;t.qofdagesh=64327;t.qofdageshhebrew=64327;t.qofhebrew=1511;t.qparen=9388;t.quarternote=9833;t.qubuts=1467;t.qubuts18=1467;t.qubuts25=1467;t.qubuts31=1467;t.qubutshebrew=1467;t.qubutsnarrowhebrew=1467;t.qubutsquarterhebrew=1467;t.qubutswidehebrew=1467;t.question=63;t.questionarabic=1567;t.questionarmenian=1374;t.questiondown=191;t.questiondownsmall=63423;t.questiongreek=894;t.questionmonospace=65311;t.questionsmall=63295;t.quotedbl=34;t.quotedblbase=8222;t.quotedblleft=8220;t.quotedblmonospace=65282;t.quotedblprime=12318;t.quotedblprimereversed=12317;t.quotedblright=8221;t.quoteleft=8216;t.quoteleftreversed=8219;t.quotereversed=8219;t.quoteright=8217;t.quoterightn=329;t.quotesinglbase=8218;t.quotesingle=39;t.quotesinglemonospace=65287;t.r=114;t.raarmenian=1404;t.rabengali=2480;t.racute=341;t.radeva=2352;t.radical=8730;t.radicalex=63717;t.radoverssquare=13230;t.radoverssquaredsquare=13231;t.radsquare=13229;t.rafe=1471;t.rafehebrew=1471;t.ragujarati=2736;t.ragurmukhi=2608;t.rahiragana=12425;t.rakatakana=12521;t.rakatakanahalfwidth=65431;t.ralowerdiagonalbengali=2545;t.ramiddlediagonalbengali=2544;t.ramshorn=612;t.ratio=8758;t.rbopomofo=12566;t.rcaron=345;t.rcedilla=343;t.rcircle=9441;t.rcommaaccent=343;t.rdblgrave=529;t.rdotaccent=7769;t.rdotbelow=7771;t.rdotbelowmacron=7773;t.referencemark=8251;t.reflexsubset=8838;t.reflexsuperset=8839;t.registered=174;t.registersans=63720;t.registerserif=63194;t.reharabic=1585;t.reharmenian=1408;t.rehfinalarabic=65198;t.rehiragana=12428;t.rekatakana=12524;t.rekatakanahalfwidth=65434;t.resh=1512;t.reshdageshhebrew=64328;t.reshhebrew=1512;t.reversedtilde=8765;t.reviahebrew=1431;t.reviamugrashhebrew=1431;t.revlogicalnot=8976;t.rfishhook=638;t.rfishhookreversed=639;t.rhabengali=2525;t.rhadeva=2397;t.rho=961;t.rhook=637;t.rhookturned=635;t.rhookturnedsuperior=693;t.rhosymbolgreek=1009;t.rhotichookmod=734;t.rieulacirclekorean=12913;t.rieulaparenkorean=12817;t.rieulcirclekorean=12899;t.rieulhieuhkorean=12608;t.rieulkiyeokkorean=12602;t.rieulkiyeoksioskorean=12649;t.rieulkorean=12601;t.rieulmieumkorean=12603;t.rieulpansioskorean=12652;t.rieulparenkorean=12803;t.rieulphieuphkorean=12607;t.rieulpieupkorean=12604;t.rieulpieupsioskorean=12651;t.rieulsioskorean=12605;t.rieulthieuthkorean=12606;t.rieultikeutkorean=12650;t.rieulyeorinhieuhkorean=12653;t.rightangle=8735;t.righttackbelowcmb=793;t.righttriangle=8895;t.rihiragana=12426;t.rikatakana=12522;t.rikatakanahalfwidth=65432;t.ring=730;t.ringbelowcmb=805;t.ringcmb=778;t.ringhalfleft=703;t.ringhalfleftarmenian=1369;t.ringhalfleftbelowcmb=796;t.ringhalfleftcentered=723;t.ringhalfright=702;t.ringhalfrightbelowcmb=825;t.ringhalfrightcentered=722;t.rinvertedbreve=531;t.rittorusquare=13137;t.rlinebelow=7775;t.rlongleg=636;t.rlonglegturned=634;t.rmonospace=65362;t.rohiragana=12429;t.rokatakana=12525;t.rokatakanahalfwidth=65435;t.roruathai=3619;t.rparen=9389;t.rrabengali=2524;t.rradeva=2353;t.rragurmukhi=2652;t.rreharabic=1681;t.rrehfinalarabic=64397;t.rrvocalicbengali=2528;t.rrvocalicdeva=2400;t.rrvocalicgujarati=2784;t.rrvocalicvowelsignbengali=2500;t.rrvocalicvowelsigndeva=2372;t.rrvocalicvowelsigngujarati=2756;t.rsuperior=63217;t.rtblock=9616;t.rturned=633;t.rturnedsuperior=692;t.ruhiragana=12427;t.rukatakana=12523;t.rukatakanahalfwidth=65433;t.rupeemarkbengali=2546;t.rupeesignbengali=2547;t.rupiah=63197;t.ruthai=3620;t.rvocalicbengali=2443;t.rvocalicdeva=2315;t.rvocalicgujarati=2699;t.rvocalicvowelsignbengali=2499;t.rvocalicvowelsigndeva=2371;t.rvocalicvowelsigngujarati=2755;t.s=115;t.sabengali=2488;t.sacute=347;t.sacutedotaccent=7781;t.sadarabic=1589;t.sadeva=2360;t.sadfinalarabic=65210;t.sadinitialarabic=65211;t.sadmedialarabic=65212;t.sagujarati=2744;t.sagurmukhi=2616;t.sahiragana=12373;t.sakatakana=12469;t.sakatakanahalfwidth=65403;t.sallallahoualayhewasallamarabic=65018;t.samekh=1505;t.samekhdagesh=64321;t.samekhdageshhebrew=64321;t.samekhhebrew=1505;t.saraaathai=3634;t.saraaethai=3649;t.saraaimaimalaithai=3652;t.saraaimaimuanthai=3651;t.saraamthai=3635;t.saraathai=3632;t.saraethai=3648;t.saraiileftthai=63622;t.saraiithai=3637;t.saraileftthai=63621;t.saraithai=3636;t.saraothai=3650;t.saraueeleftthai=63624;t.saraueethai=3639;t.saraueleftthai=63623;t.sarauethai=3638;t.sarauthai=3640;t.sarauuthai=3641;t.sbopomofo=12569;t.scaron=353;t.scarondotaccent=7783;t.scedilla=351;t.schwa=601;t.schwacyrillic=1241;t.schwadieresiscyrillic=1243;t.schwahook=602;t.scircle=9442;t.scircumflex=349;t.scommaaccent=537;t.sdotaccent=7777;t.sdotbelow=7779;t.sdotbelowdotaccent=7785;t.seagullbelowcmb=828;t.second=8243;t.secondtonechinese=714;t.section=167;t.seenarabic=1587;t.seenfinalarabic=65202;t.seeninitialarabic=65203;t.seenmedialarabic=65204;t.segol=1462;t.segol13=1462;t.segol1f=1462;t.segol2c=1462;t.segolhebrew=1462;t.segolnarrowhebrew=1462;t.segolquarterhebrew=1462;t.segoltahebrew=1426;t.segolwidehebrew=1462;t.seharmenian=1405;t.sehiragana=12379;t.sekatakana=12475;t.sekatakanahalfwidth=65406;t.semicolon=59;t.semicolonarabic=1563;t.semicolonmonospace=65307;t.semicolonsmall=65108;t.semivoicedmarkkana=12444;t.semivoicedmarkkanahalfwidth=65439;t.sentisquare=13090;t.sentosquare=13091;t.seven=55;t.sevenarabic=1639;t.sevenbengali=2541;t.sevencircle=9318;t.sevencircleinversesansserif=10128;t.sevendeva=2413;t.seveneighths=8542;t.sevengujarati=2797;t.sevengurmukhi=2669;t.sevenhackarabic=1639;t.sevenhangzhou=12327;t.sevenideographicparen=12838;t.seveninferior=8327;t.sevenmonospace=65303;t.sevenoldstyle=63287;t.sevenparen=9338;t.sevenperiod=9358;t.sevenpersian=1783;t.sevenroman=8566;t.sevensuperior=8311;t.seventeencircle=9328;t.seventeenparen=9348;t.seventeenperiod=9368;t.seventhai=3671;t.sfthyphen=173;t.shaarmenian=1399;t.shabengali=2486;t.shacyrillic=1096;t.shaddaarabic=1617;t.shaddadammaarabic=64609;t.shaddadammatanarabic=64606;t.shaddafathaarabic=64608;t.shaddakasraarabic=64610;t.shaddakasratanarabic=64607;t.shade=9618;t.shadedark=9619;t.shadelight=9617;t.shademedium=9618;t.shadeva=2358;t.shagujarati=2742;t.shagurmukhi=2614;t.shalshelethebrew=1427;t.shbopomofo=12565;t.shchacyrillic=1097;t.sheenarabic=1588;t.sheenfinalarabic=65206;t.sheeninitialarabic=65207;t.sheenmedialarabic=65208;t.sheicoptic=995;t.sheqel=8362;t.sheqelhebrew=8362;t.sheva=1456;t.sheva115=1456;t.sheva15=1456;t.sheva22=1456;t.sheva2e=1456;t.shevahebrew=1456;t.shevanarrowhebrew=1456;t.shevaquarterhebrew=1456;t.shevawidehebrew=1456;t.shhacyrillic=1211;t.shimacoptic=1005;t.shin=1513;t.shindagesh=64329;t.shindageshhebrew=64329;t.shindageshshindot=64300;t.shindageshshindothebrew=64300;t.shindageshsindot=64301;t.shindageshsindothebrew=64301;t.shindothebrew=1473;t.shinhebrew=1513;t.shinshindot=64298;t.shinshindothebrew=64298;t.shinsindot=64299;t.shinsindothebrew=64299;t.shook=642;t.sigma=963;t.sigma1=962;t.sigmafinal=962;t.sigmalunatesymbolgreek=1010;t.sihiragana=12375;t.sikatakana=12471;t.sikatakanahalfwidth=65404;t.siluqhebrew=1469;t.siluqlefthebrew=1469;t.similar=8764;t.sindothebrew=1474;t.siosacirclekorean=12916;t.siosaparenkorean=12820;t.sioscieuckorean=12670;t.sioscirclekorean=12902;t.sioskiyeokkorean=12666;t.sioskorean=12613;t.siosnieunkorean=12667;t.siosparenkorean=12806;t.siospieupkorean=12669;t.siostikeutkorean=12668;t.six=54;t.sixarabic=1638;t.sixbengali=2540;t.sixcircle=9317;t.sixcircleinversesansserif=10127;t.sixdeva=2412;t.sixgujarati=2796;t.sixgurmukhi=2668;t.sixhackarabic=1638;t.sixhangzhou=12326;t.sixideographicparen=12837;t.sixinferior=8326;t.sixmonospace=65302;t.sixoldstyle=63286;t.sixparen=9337;t.sixperiod=9357;t.sixpersian=1782;t.sixroman=8565;t.sixsuperior=8310;t.sixteencircle=9327;t.sixteencurrencydenominatorbengali=2553;t.sixteenparen=9347;t.sixteenperiod=9367;t.sixthai=3670;t.slash=47;t.slashmonospace=65295;t.slong=383;t.slongdotaccent=7835;t.smileface=9786;t.smonospace=65363;t.sofpasuqhebrew=1475;t.softhyphen=173;t.softsigncyrillic=1100;t.sohiragana=12381;t.sokatakana=12477;t.sokatakanahalfwidth=65407;t.soliduslongoverlaycmb=824;t.solidusshortoverlaycmb=823;t.sorusithai=3625;t.sosalathai=3624;t.sosothai=3595;t.sosuathai=3626;t.space=32;t.spacehackarabic=32;t.spade=9824;t.spadesuitblack=9824;t.spadesuitwhite=9828;t.sparen=9390;t.squarebelowcmb=827;t.squarecc=13252;t.squarecm=13213;t.squarediagonalcrosshatchfill=9641;t.squarehorizontalfill=9636;t.squarekg=13199;t.squarekm=13214;t.squarekmcapital=13262;t.squareln=13265;t.squarelog=13266;t.squaremg=13198;t.squaremil=13269;t.squaremm=13212;t.squaremsquared=13217;t.squareorthogonalcrosshatchfill=9638;t.squareupperlefttolowerrightfill=9639;t.squareupperrighttolowerleftfill=9640;t.squareverticalfill=9637;t.squarewhitewithsmallblack=9635;t.srsquare=13275;t.ssabengali=2487;t.ssadeva=2359;t.ssagujarati=2743;t.ssangcieuckorean=12617;t.ssanghieuhkorean=12677;t.ssangieungkorean=12672;t.ssangkiyeokkorean=12594;t.ssangnieunkorean=12645;t.ssangpieupkorean=12611;t.ssangsioskorean=12614;t.ssangtikeutkorean=12600;t.ssuperior=63218;t.sterling=163;t.sterlingmonospace=65505;t.strokelongoverlaycmb=822;t.strokeshortoverlaycmb=821;t.subset=8834;t.subsetnotequal=8842;t.subsetorequal=8838;t.succeeds=8827;t.suchthat=8715;t.suhiragana=12377;t.sukatakana=12473;t.sukatakanahalfwidth=65405;t.sukunarabic=1618;t.summation=8721;t.sun=9788;t.superset=8835;t.supersetnotequal=8843;t.supersetorequal=8839;t.svsquare=13276;t.syouwaerasquare=13180;t.t=116;t.tabengali=2468;t.tackdown=8868;t.tackleft=8867;t.tadeva=2340;t.tagujarati=2724;t.tagurmukhi=2596;t.taharabic=1591;t.tahfinalarabic=65218;t.tahinitialarabic=65219;t.tahiragana=12383;t.tahmedialarabic=65220;t.taisyouerasquare=13181;t.takatakana=12479;t.takatakanahalfwidth=65408;t.tatweelarabic=1600;t.tau=964;t.tav=1514;t.tavdages=64330;t.tavdagesh=64330;t.tavdageshhebrew=64330;t.tavhebrew=1514;t.tbar=359;t.tbopomofo=12554;t.tcaron=357;t.tccurl=680;t.tcedilla=355;t.tcheharabic=1670;t.tchehfinalarabic=64379;t.tchehinitialarabic=64380;t.tchehmedialarabic=64381;t.tcircle=9443;t.tcircumflexbelow=7793;t.tcommaaccent=355;t.tdieresis=7831;t.tdotaccent=7787;t.tdotbelow=7789;t.tecyrillic=1090;t.tedescendercyrillic=1197;t.teharabic=1578;t.tehfinalarabic=65174;t.tehhahinitialarabic=64674;t.tehhahisolatedarabic=64524;t.tehinitialarabic=65175;t.tehiragana=12390;t.tehjeeminitialarabic=64673;t.tehjeemisolatedarabic=64523;t.tehmarbutaarabic=1577;t.tehmarbutafinalarabic=65172;t.tehmedialarabic=65176;t.tehmeeminitialarabic=64676;t.tehmeemisolatedarabic=64526;t.tehnoonfinalarabic=64627;t.tekatakana=12486;t.tekatakanahalfwidth=65411;t.telephone=8481;t.telephoneblack=9742;t.telishagedolahebrew=1440;t.telishaqetanahebrew=1449;t.tencircle=9321;t.tenideographicparen=12841;t.tenparen=9341;t.tenperiod=9361;t.tenroman=8569;t.tesh=679;t.tet=1496;t.tetdagesh=64312;t.tetdageshhebrew=64312;t.tethebrew=1496;t.tetsecyrillic=1205;t.tevirhebrew=1435;t.tevirlefthebrew=1435;t.thabengali=2469;t.thadeva=2341;t.thagujarati=2725;t.thagurmukhi=2597;t.thalarabic=1584;t.thalfinalarabic=65196;t.thanthakhatlowleftthai=63640;t.thanthakhatlowrightthai=63639;t.thanthakhatthai=3660;t.thanthakhatupperleftthai=63638;t.theharabic=1579;t.thehfinalarabic=65178;t.thehinitialarabic=65179;t.thehmedialarabic=65180;t.thereexists=8707;t.therefore=8756;t.theta=952;t.theta1=977;t.thetasymbolgreek=977;t.thieuthacirclekorean=12921;t.thieuthaparenkorean=12825;t.thieuthcirclekorean=12907;t.thieuthkorean=12620;t.thieuthparenkorean=12811;t.thirteencircle=9324;t.thirteenparen=9344;t.thirteenperiod=9364;t.thonangmonthothai=3601;t.thook=429;t.thophuthaothai=3602;t.thorn=254;t.thothahanthai=3607;t.thothanthai=3600;t.thothongthai=3608;t.thothungthai=3606;t.thousandcyrillic=1154;t.thousandsseparatorarabic=1644;t.thousandsseparatorpersian=1644;t.three=51;t.threearabic=1635;t.threebengali=2537;t.threecircle=9314;t.threecircleinversesansserif=10124;t.threedeva=2409;t.threeeighths=8540;t.threegujarati=2793;t.threegurmukhi=2665;t.threehackarabic=1635;t.threehangzhou=12323;t.threeideographicparen=12834;t.threeinferior=8323;t.threemonospace=65299;t.threenumeratorbengali=2550;t.threeoldstyle=63283;t.threeparen=9334;t.threeperiod=9354;t.threepersian=1779;t.threequarters=190;t.threequartersemdash=63198;t.threeroman=8562;t.threesuperior=179;t.threethai=3667;t.thzsquare=13204;t.tihiragana=12385;t.tikatakana=12481;t.tikatakanahalfwidth=65409;t.tikeutacirclekorean=12912;t.tikeutaparenkorean=12816;t.tikeutcirclekorean=12898;t.tikeutkorean=12599;t.tikeutparenkorean=12802;t.tilde=732;t.tildebelowcmb=816;t.tildecmb=771;t.tildecomb=771;t.tildedoublecmb=864;t.tildeoperator=8764;t.tildeoverlaycmb=820;t.tildeverticalcmb=830;t.timescircle=8855;t.tipehahebrew=1430;t.tipehalefthebrew=1430;t.tippigurmukhi=2672;t.titlocyrilliccmb=1155;t.tiwnarmenian=1407;t.tlinebelow=7791;t.tmonospace=65364;t.toarmenian=1385;t.tohiragana=12392;t.tokatakana=12488;t.tokatakanahalfwidth=65412;t.tonebarextrahighmod=741;t.tonebarextralowmod=745;t.tonebarhighmod=742;t.tonebarlowmod=744;t.tonebarmidmod=743;t.tonefive=445;t.tonesix=389;t.tonetwo=424;t.tonos=900;t.tonsquare=13095;t.topatakthai=3599;t.tortoiseshellbracketleft=12308;t.tortoiseshellbracketleftsmall=65117;t.tortoiseshellbracketleftvertical=65081;t.tortoiseshellbracketright=12309;t.tortoiseshellbracketrightsmall=65118;t.tortoiseshellbracketrightvertical=65082;t.totaothai=3605;t.tpalatalhook=427;t.tparen=9391;t.trademark=8482;t.trademarksans=63722;t.trademarkserif=63195;t.tretroflexhook=648;t.triagdn=9660;t.triaglf=9668;t.triagrt=9658;t.triagup=9650;t.ts=678;t.tsadi=1510;t.tsadidagesh=64326;t.tsadidageshhebrew=64326;t.tsadihebrew=1510;t.tsecyrillic=1094;t.tsere=1461;t.tsere12=1461;t.tsere1e=1461;t.tsere2b=1461;t.tserehebrew=1461;t.tserenarrowhebrew=1461;t.tserequarterhebrew=1461;t.tserewidehebrew=1461;t.tshecyrillic=1115;t.tsuperior=63219;t.ttabengali=2463;t.ttadeva=2335;t.ttagujarati=2719;t.ttagurmukhi=2591;t.tteharabic=1657;t.ttehfinalarabic=64359;t.ttehinitialarabic=64360;t.ttehmedialarabic=64361;t.tthabengali=2464;t.tthadeva=2336;t.tthagujarati=2720;t.tthagurmukhi=2592;t.tturned=647;t.tuhiragana=12388;t.tukatakana=12484;t.tukatakanahalfwidth=65410;t.tusmallhiragana=12387;t.tusmallkatakana=12483;t.tusmallkatakanahalfwidth=65391;t.twelvecircle=9323;t.twelveparen=9343;t.twelveperiod=9363;t.twelveroman=8571;t.twentycircle=9331;t.twentyhangzhou=21316;t.twentyparen=9351;t.twentyperiod=9371;t.two=50;t.twoarabic=1634;t.twobengali=2536;t.twocircle=9313;t.twocircleinversesansserif=10123;t.twodeva=2408;t.twodotenleader=8229;t.twodotleader=8229;t.twodotleadervertical=65072;t.twogujarati=2792;t.twogurmukhi=2664;t.twohackarabic=1634;t.twohangzhou=12322;t.twoideographicparen=12833;t.twoinferior=8322;t.twomonospace=65298;t.twonumeratorbengali=2549;t.twooldstyle=63282;t.twoparen=9333;t.twoperiod=9353;t.twopersian=1778;t.tworoman=8561;t.twostroke=443;t.twosuperior=178;t.twothai=3666;t.twothirds=8532;t.u=117;t.uacute=250;t.ubar=649;t.ubengali=2441;t.ubopomofo=12584;t.ubreve=365;t.ucaron=468;t.ucircle=9444;t.ucircumflex=251;t.ucircumflexbelow=7799;t.ucyrillic=1091;t.udattadeva=2385;t.udblacute=369;t.udblgrave=533;t.udeva=2313;t.udieresis=252;t.udieresisacute=472;t.udieresisbelow=7795;t.udieresiscaron=474;t.udieresiscyrillic=1265;t.udieresisgrave=476;t.udieresismacron=470;t.udotbelow=7909;t.ugrave=249;t.ugujarati=2697;t.ugurmukhi=2569;t.uhiragana=12358;t.uhookabove=7911;t.uhorn=432;t.uhornacute=7913;t.uhorndotbelow=7921;t.uhorngrave=7915;t.uhornhookabove=7917;t.uhorntilde=7919;t.uhungarumlaut=369;t.uhungarumlautcyrillic=1267;t.uinvertedbreve=535;t.ukatakana=12454;t.ukatakanahalfwidth=65395;t.ukcyrillic=1145;t.ukorean=12636;t.umacron=363;t.umacroncyrillic=1263;t.umacrondieresis=7803;t.umatragurmukhi=2625;t.umonospace=65365;t.underscore=95;t.underscoredbl=8215;t.underscoremonospace=65343;t.underscorevertical=65075;t.underscorewavy=65103;t.union=8746;t.universal=8704;t.uogonek=371;t.uparen=9392;t.upblock=9600;t.upperdothebrew=1476;t.upsilon=965;t.upsilondieresis=971;t.upsilondieresistonos=944;t.upsilonlatin=650;t.upsilontonos=973;t.uptackbelowcmb=797;t.uptackmod=724;t.uragurmukhi=2675;t.uring=367;t.ushortcyrillic=1118;t.usmallhiragana=12357;t.usmallkatakana=12453;t.usmallkatakanahalfwidth=65385;t.ustraightcyrillic=1199;t.ustraightstrokecyrillic=1201;t.utilde=361;t.utildeacute=7801;t.utildebelow=7797;t.uubengali=2442;t.uudeva=2314;t.uugujarati=2698;t.uugurmukhi=2570;t.uumatragurmukhi=2626;t.uuvowelsignbengali=2498;t.uuvowelsigndeva=2370;t.uuvowelsigngujarati=2754;t.uvowelsignbengali=2497;t.uvowelsigndeva=2369;t.uvowelsigngujarati=2753;t.v=118;t.vadeva=2357;t.vagujarati=2741;t.vagurmukhi=2613;t.vakatakana=12535;t.vav=1493;t.vavdagesh=64309;t.vavdagesh65=64309;t.vavdageshhebrew=64309;t.vavhebrew=1493;t.vavholam=64331;t.vavholamhebrew=64331;t.vavvavhebrew=1520;t.vavyodhebrew=1521;t.vcircle=9445;t.vdotbelow=7807;t.vecyrillic=1074;t.veharabic=1700;t.vehfinalarabic=64363;t.vehinitialarabic=64364;t.vehmedialarabic=64365;t.vekatakana=12537;t.venus=9792;t.verticalbar=124;t.verticallineabovecmb=781;t.verticallinebelowcmb=809;t.verticallinelowmod=716;t.verticallinemod=712;t.vewarmenian=1406;t.vhook=651;t.vikatakana=12536;t.viramabengali=2509;t.viramadeva=2381;t.viramagujarati=2765;t.visargabengali=2435;t.visargadeva=2307;t.visargagujarati=2691;t.vmonospace=65366;t.voarmenian=1400;t.voicediterationhiragana=12446;t.voicediterationkatakana=12542;t.voicedmarkkana=12443;t.voicedmarkkanahalfwidth=65438;t.vokatakana=12538;t.vparen=9393;t.vtilde=7805;t.vturned=652;t.vuhiragana=12436;t.vukatakana=12532;t.w=119;t.wacute=7811;t.waekorean=12633;t.wahiragana=12431;t.wakatakana=12527;t.wakatakanahalfwidth=65436;t.wakorean=12632;t.wasmallhiragana=12430;t.wasmallkatakana=12526;t.wattosquare=13143;t.wavedash=12316;t.wavyunderscorevertical=65076;t.wawarabic=1608;t.wawfinalarabic=65262;t.wawhamzaabovearabic=1572;t.wawhamzaabovefinalarabic=65158;t.wbsquare=13277;t.wcircle=9446;t.wcircumflex=373;t.wdieresis=7813;t.wdotaccent=7815;t.wdotbelow=7817;t.wehiragana=12433;t.weierstrass=8472;t.wekatakana=12529;t.wekorean=12638;t.weokorean=12637;t.wgrave=7809;t.whitebullet=9702;t.whitecircle=9675;t.whitecircleinverse=9689;t.whitecornerbracketleft=12302;t.whitecornerbracketleftvertical=65091;t.whitecornerbracketright=12303;t.whitecornerbracketrightvertical=65092;t.whitediamond=9671;t.whitediamondcontainingblacksmalldiamond=9672;t.whitedownpointingsmalltriangle=9663;t.whitedownpointingtriangle=9661;t.whiteleftpointingsmalltriangle=9667;t.whiteleftpointingtriangle=9665;t.whitelenticularbracketleft=12310;t.whitelenticularbracketright=12311;t.whiterightpointingsmalltriangle=9657;t.whiterightpointingtriangle=9655;t.whitesmallsquare=9643;t.whitesmilingface=9786;t.whitesquare=9633;t.whitestar=9734;t.whitetelephone=9743;t.whitetortoiseshellbracketleft=12312;t.whitetortoiseshellbracketright=12313;t.whiteuppointingsmalltriangle=9653;t.whiteuppointingtriangle=9651;t.wihiragana=12432;t.wikatakana=12528;t.wikorean=12639;t.wmonospace=65367;t.wohiragana=12434;t.wokatakana=12530;t.wokatakanahalfwidth=65382;t.won=8361;t.wonmonospace=65510;t.wowaenthai=3623;t.wparen=9394;t.wring=7832;t.wsuperior=695;t.wturned=653;t.wynn=447;t.x=120;t.xabovecmb=829;t.xbopomofo=12562;t.xcircle=9447;t.xdieresis=7821;t.xdotaccent=7819;t.xeharmenian=1389;t.xi=958;t.xmonospace=65368;t.xparen=9395;t.xsuperior=739;t.y=121;t.yaadosquare=13134;t.yabengali=2479;t.yacute=253;t.yadeva=2351;t.yaekorean=12626;t.yagujarati=2735;t.yagurmukhi=2607;t.yahiragana=12420;t.yakatakana=12516;t.yakatakanahalfwidth=65428;t.yakorean=12625;t.yamakkanthai=3662;t.yasmallhiragana=12419;t.yasmallkatakana=12515;t.yasmallkatakanahalfwidth=65388;t.yatcyrillic=1123;t.ycircle=9448;t.ycircumflex=375;t.ydieresis=255;t.ydotaccent=7823;t.ydotbelow=7925;t.yeharabic=1610;t.yehbarreearabic=1746;t.yehbarreefinalarabic=64431;t.yehfinalarabic=65266;t.yehhamzaabovearabic=1574;t.yehhamzaabovefinalarabic=65162;t.yehhamzaaboveinitialarabic=65163;t.yehhamzaabovemedialarabic=65164;t.yehinitialarabic=65267;t.yehmedialarabic=65268;t.yehmeeminitialarabic=64733;t.yehmeemisolatedarabic=64600;t.yehnoonfinalarabic=64660;t.yehthreedotsbelowarabic=1745;t.yekorean=12630;t.yen=165;t.yenmonospace=65509;t.yeokorean=12629;t.yeorinhieuhkorean=12678;t.yerahbenyomohebrew=1450;t.yerahbenyomolefthebrew=1450;t.yericyrillic=1099;t.yerudieresiscyrillic=1273;t.yesieungkorean=12673;t.yesieungpansioskorean=12675;t.yesieungsioskorean=12674;t.yetivhebrew=1434;t.ygrave=7923;t.yhook=436;t.yhookabove=7927;t.yiarmenian=1397;t.yicyrillic=1111;t.yikorean=12642;t.yinyang=9775;t.yiwnarmenian=1410;t.ymonospace=65369;t.yod=1497;t.yoddagesh=64313;t.yoddageshhebrew=64313;t.yodhebrew=1497;t.yodyodhebrew=1522;t.yodyodpatahhebrew=64287;t.yohiragana=12424;t.yoikorean=12681;t.yokatakana=12520;t.yokatakanahalfwidth=65430;t.yokorean=12635;t.yosmallhiragana=12423;t.yosmallkatakana=12519;t.yosmallkatakanahalfwidth=65390;t.yotgreek=1011;t.yoyaekorean=12680;t.yoyakorean=12679;t.yoyakthai=3618;t.yoyingthai=3597;t.yparen=9396;t.ypogegrammeni=890;t.ypogegrammenigreekcmb=837;t.yr=422;t.yring=7833;t.ysuperior=696;t.ytilde=7929;t.yturned=654;t.yuhiragana=12422;t.yuikorean=12684;t.yukatakana=12518;t.yukatakanahalfwidth=65429;t.yukorean=12640;t.yusbigcyrillic=1131;t.yusbigiotifiedcyrillic=1133;t.yuslittlecyrillic=1127;t.yuslittleiotifiedcyrillic=1129;t.yusmallhiragana=12421;t.yusmallkatakana=12517;t.yusmallkatakanahalfwidth=65389;t.yuyekorean=12683;t.yuyeokorean=12682;t.yyabengali=2527;t.yyadeva=2399;t.z=122;t.zaarmenian=1382;t.zacute=378;t.zadeva=2395;t.zagurmukhi=2651;t.zaharabic=1592;t.zahfinalarabic=65222;t.zahinitialarabic=65223;t.zahiragana=12374;t.zahmedialarabic=65224;t.zainarabic=1586;t.zainfinalarabic=65200;t.zakatakana=12470;t.zaqefgadolhebrew=1429;t.zaqefqatanhebrew=1428;t.zarqahebrew=1432;t.zayin=1494;t.zayindagesh=64310;t.zayindageshhebrew=64310;t.zayinhebrew=1494;t.zbopomofo=12567;t.zcaron=382;t.zcircle=9449;t.zcircumflex=7825;t.zcurl=657;t.zdot=380;t.zdotaccent=380;t.zdotbelow=7827;t.zecyrillic=1079;t.zedescendercyrillic=1177;t.zedieresiscyrillic=1247;t.zehiragana=12380;t.zekatakana=12476;t.zero=48;t.zeroarabic=1632;t.zerobengali=2534;t.zerodeva=2406;t.zerogujarati=2790;t.zerogurmukhi=2662;t.zerohackarabic=1632;t.zeroinferior=8320;t.zeromonospace=65296;t.zerooldstyle=63280;t.zeropersian=1776;t.zerosuperior=8304;t.zerothai=3664;t.zerowidthjoiner=65279;t.zerowidthnonjoiner=8204;t.zerowidthspace=8203;t.zeta=950;t.zhbopomofo=12563;t.zhearmenian=1386;t.zhebrevecyrillic=1218;t.zhecyrillic=1078;t.zhedescendercyrillic=1175;t.zhedieresiscyrillic=1245;t.zihiragana=12376;t.zikatakana=12472;t.zinorhebrew=1454;t.zlinebelow=7829;t.zmonospace=65370;t.zohiragana=12382;t.zokatakana=12478;t.zparen=9397;t.zretroflexhook=656;t.zstroke=438;t.zuhiragana=12378;t.zukatakana=12474;t[".notdef"]=0;t.angbracketleftbig=9001;t.angbracketleftBig=9001;t.angbracketleftbigg=9001;t.angbracketleftBigg=9001;t.angbracketrightBig=9002;t.angbracketrightbig=9002;t.angbracketrightBigg=9002;t.angbracketrightbigg=9002;t.arrowhookleft=8618;t.arrowhookright=8617;t.arrowlefttophalf=8636;t.arrowleftbothalf=8637;t.arrownortheast=8599;t.arrownorthwest=8598;t.arrowrighttophalf=8640;t.arrowrightbothalf=8641;t.arrowsoutheast=8600;t.arrowsouthwest=8601;t.backslashbig=8726;t.backslashBig=8726;t.backslashBigg=8726;t.backslashbigg=8726;t.bardbl=8214;t.bracehtipdownleft=65079;t.bracehtipdownright=65079;t.bracehtipupleft=65080;t.bracehtipupright=65080;t.braceleftBig=123;t.braceleftbig=123;t.braceleftbigg=123;t.braceleftBigg=123;t.bracerightBig=125;t.bracerightbig=125;t.bracerightbigg=125;t.bracerightBigg=125;t.bracketleftbig=91;t.bracketleftBig=91;t.bracketleftbigg=91;t.bracketleftBigg=91;t.bracketrightBig=93;t.bracketrightbig=93;t.bracketrightbigg=93;t.bracketrightBigg=93;t.ceilingleftbig=8968;t.ceilingleftBig=8968;t.ceilingleftBigg=8968;t.ceilingleftbigg=8968;t.ceilingrightbig=8969;t.ceilingrightBig=8969;t.ceilingrightbigg=8969;t.ceilingrightBigg=8969;t.circledotdisplay=8857;t.circledottext=8857;t.circlemultiplydisplay=8855;t.circlemultiplytext=8855;t.circleplusdisplay=8853;t.circleplustext=8853;t.contintegraldisplay=8750;t.contintegraltext=8750;t.coproductdisplay=8720;t.coproducttext=8720;t.floorleftBig=8970;t.floorleftbig=8970;t.floorleftbigg=8970;t.floorleftBigg=8970;t.floorrightbig=8971;t.floorrightBig=8971;t.floorrightBigg=8971;t.floorrightbigg=8971;t.hatwide=770;t.hatwider=770;t.hatwidest=770;t.intercal=7488;t.integraldisplay=8747;t.integraltext=8747;t.intersectiondisplay=8898;t.intersectiontext=8898;t.logicalanddisplay=8743;t.logicalandtext=8743;t.logicalordisplay=8744;t.logicalortext=8744;t.parenleftBig=40;t.parenleftbig=40;t.parenleftBigg=40;t.parenleftbigg=40;t.parenrightBig=41;t.parenrightbig=41;t.parenrightBigg=41;t.parenrightbigg=41;t.prime=8242;t.productdisplay=8719;t.producttext=8719;t.radicalbig=8730;t.radicalBig=8730;t.radicalBigg=8730;t.radicalbigg=8730;t.radicalbt=8730;t.radicaltp=8730;t.radicalvertex=8730;t.slashbig=47;t.slashBig=47;t.slashBigg=47;t.slashbigg=47;t.summationdisplay=8721;t.summationtext=8721;t.tildewide=732;t.tildewider=732;t.tildewidest=732;t.uniondisplay=8899;t.unionmultidisplay=8846;t.unionmultitext=8846;t.unionsqdisplay=8852;t.unionsqtext=8852;t.uniontext=8899;t.vextenddouble=8741;t.vextendsingle=8739}));e.getGlyphsUnicode=n;const r=(0,i.getLookupTableFactory)((function(t){t.space=32;t.a1=9985;t.a2=9986;t.a202=9987;t.a3=9988;t.a4=9742;t.a5=9990;t.a119=9991;t.a118=9992;t.a117=9993;t.a11=9755;t.a12=9758;t.a13=9996;t.a14=9997;t.a15=9998;t.a16=9999;t.a105=1e4;t.a17=10001;t.a18=10002;t.a19=10003;t.a20=10004;t.a21=10005;t.a22=10006;t.a23=10007;t.a24=10008;t.a25=10009;t.a26=10010;t.a27=10011;t.a28=10012;t.a6=10013;t.a7=10014;t.a8=10015;t.a9=10016;t.a10=10017;t.a29=10018;t.a30=10019;t.a31=10020;t.a32=10021;t.a33=10022;t.a34=10023;t.a35=9733;t.a36=10025;t.a37=10026;t.a38=10027;t.a39=10028;t.a40=10029;t.a41=10030;t.a42=10031;t.a43=10032;t.a44=10033;t.a45=10034;t.a46=10035;t.a47=10036;t.a48=10037;t.a49=10038;t.a50=10039;t.a51=10040;t.a52=10041;t.a53=10042;t.a54=10043;t.a55=10044;t.a56=10045;t.a57=10046;t.a58=10047;t.a59=10048;t.a60=10049;t.a61=10050;t.a62=10051;t.a63=10052;t.a64=10053;t.a65=10054;t.a66=10055;t.a67=10056;t.a68=10057;t.a69=10058;t.a70=10059;t.a71=9679;t.a72=10061;t.a73=9632;t.a74=10063;t.a203=10064;t.a75=10065;t.a204=10066;t.a76=9650;t.a77=9660;t.a78=9670;t.a79=10070;t.a81=9687;t.a82=10072;t.a83=10073;t.a84=10074;t.a97=10075;t.a98=10076;t.a99=10077;t.a100=10078;t.a101=10081;t.a102=10082;t.a103=10083;t.a104=10084;t.a106=10085;t.a107=10086;t.a108=10087;t.a112=9827;t.a111=9830;t.a110=9829;t.a109=9824;t.a120=9312;t.a121=9313;t.a122=9314;t.a123=9315;t.a124=9316;t.a125=9317;t.a126=9318;t.a127=9319;t.a128=9320;t.a129=9321;t.a130=10102;t.a131=10103;t.a132=10104;t.a133=10105;t.a134=10106;t.a135=10107;t.a136=10108;t.a137=10109;t.a138=10110;t.a139=10111;t.a140=10112;t.a141=10113;t.a142=10114;t.a143=10115;t.a144=10116;t.a145=10117;t.a146=10118;t.a147=10119;t.a148=10120;t.a149=10121;t.a150=10122;t.a151=10123;t.a152=10124;t.a153=10125;t.a154=10126;t.a155=10127;t.a156=10128;t.a157=10129;t.a158=10130;t.a159=10131;t.a160=10132;t.a161=8594;t.a163=8596;t.a164=8597;t.a196=10136;t.a165=10137;t.a192=10138;t.a166=10139;t.a167=10140;t.a168=10141;t.a169=10142;t.a170=10143;t.a171=10144;t.a172=10145;t.a173=10146;t.a162=10147;t.a174=10148;t.a175=10149;t.a176=10150;t.a177=10151;t.a178=10152;t.a179=10153;t.a193=10154;t.a180=10155;t.a199=10156;t.a181=10157;t.a200=10158;t.a182=10159;t.a201=10161;t.a183=10162;t.a184=10163;t.a197=10164;t.a185=10165;t.a194=10166;t.a198=10167;t.a186=10168;t.a195=10169;t.a187=10170;t.a188=10171;t.a189=10172;t.a190=10173;t.a191=10174;t.a89=10088;t.a90=10089;t.a93=10090;t.a94=10091;t.a91=10092;t.a92=10093;t.a205=10094;t.a85=10095;t.a206=10096;t.a86=10097;t.a87=10098;t.a88=10099;t.a95=10100;t.a96=10101;t[".notdef"]=0}));e.getDingbatsGlyphsUnicode=r},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.clearUnicodeCaches=f;e.getCharUnicodeCategory=u;e.getUnicodeForGlyph=o;e.getUnicodeRangeFor=c;e.mapSpecialUnicodeValues=r;var i=s(3);const n=(0,i.getLookupTableFactory)((function(t){t[63721]=169;t[63193]=169;t[63720]=174;t[63194]=174;t[63722]=8482;t[63195]=8482;t[63729]=9127;t[63730]=9128;t[63731]=9129;t[63740]=9131;t[63741]=9132;t[63742]=9133;t[63726]=9121;t[63727]=9122;t[63728]=9123;t[63737]=9124;t[63738]=9125;t[63739]=9126;t[63723]=9115;t[63724]=9116;t[63725]=9117;t[63734]=9118;t[63735]=9119;t[63736]=9120}));function r(t){if(t>=65520&&t<=65535){return 0}else if(t>=62976&&t<=63743){return n()[t]||t}else if(t===173){return 45}return t}function o(t,e){let s=e[t];if(s!==undefined){return s}if(!t){return-1}if(t[0]==="u"){const e=t.length;let i;if(e===7&&t[1]==="n"&&t[2]==="i"){i=t.substring(3)}else if(e>=5&&e<=7){i=t.substring(1)}else{return-1}if(i===i.toUpperCase()){s=parseInt(i,16);if(s>=0){return s}}}return-1}const a=[[0,127],[128,255],[256,383],[384,591],[592,687,7424,7551,7552,7615],[688,767,42752,42783],[768,879,7616,7679],[880,1023],[11392,11519],[1024,1279,1280,1327,11744,11775,42560,42655],[1328,1423],[1424,1535],[42240,42559],[1536,1791,1872,1919],[1984,2047],[2304,2431],[2432,2559],[2560,2687],[2688,2815],[2816,2943],[2944,3071],[3072,3199],[3200,3327],[3328,3455],[3584,3711],[3712,3839],[4256,4351,11520,11567],[6912,7039],[4352,4607],[7680,7935,11360,11391,42784,43007],[7936,8191],[8192,8303,11776,11903],[8304,8351],[8352,8399],[8400,8447],[8448,8527],[8528,8591],[8592,8703,10224,10239,10496,10623,11008,11263],[8704,8959,10752,11007,10176,10223,10624,10751],[8960,9215],[9216,9279],[9280,9311],[9312,9471],[9472,9599],[9600,9631],[9632,9727],[9728,9983],[9984,10175],[12288,12351],[12352,12447],[12448,12543,12784,12799],[12544,12591,12704,12735],[12592,12687],[43072,43135],[12800,13055],[13056,13311],[44032,55215],[55296,57343],[67840,67871],[19968,40959,11904,12031,12032,12255,12272,12287,13312,19903,131072,173791,12688,12703],[57344,63743],[12736,12783,63744,64255,194560,195103],[64256,64335],[64336,65023],[65056,65071],[65040,65055],[65104,65135],[65136,65279],[65280,65519],[65520,65535],[3840,4095],[1792,1871],[1920,1983],[3456,3583],[4096,4255],[4608,4991,4992,5023,11648,11743],[5024,5119],[5120,5759],[5760,5791],[5792,5887],[6016,6143],[6144,6319],[10240,10495],[40960,42127],[5888,5919,5920,5951,5952,5983,5984,6015],[66304,66351],[66352,66383],[66560,66639],[118784,119039,119040,119295,119296,119375],[119808,120831],[1044480,1048573],[65024,65039,917760,917999],[917504,917631],[6400,6479],[6480,6527],[6528,6623],[6656,6687],[11264,11359],[11568,11647],[19904,19967],[43008,43055],[65536,65663,65664,65791,65792,65855],[65856,65935],[66432,66463],[66464,66527],[66640,66687],[66688,66735],[67584,67647],[68096,68191],[119552,119647],[73728,74751,74752,74879],[119648,119679],[7040,7103],[7168,7247],[7248,7295],[43136,43231],[43264,43311],[43312,43359],[43520,43615],[65936,65999],[66e3,66047],[66208,66271,66176,66207,67872,67903],[127024,127135,126976,127023]];function c(t,e=-1){if(e!==-1){const s=a[e];for(let i=0,n=s.length;i<n;i+=2){if(t>=s[i]&&t<=s[i+1]){return e}}}for(let e=0,s=a.length;e<s;e++){const s=a[e];for(let i=0,n=s.length;i<n;i+=2){if(t>=s[i]&&t<=s[i+1]){return e}}}return-1}const l=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u");const h=new Map;function u(t){const e=h.get(t);if(e){return e}const s=t.match(l);const i={isWhitespace:!!s?.[1],isZeroWidthDiacritic:!!s?.[2],isInvisibleFormatMark:!!s?.[3]};h.set(t,i);return i}function f(){h.clear()}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.getSerifFonts=e.getNonStdFontMap=e.getGlyphMapForStandardFonts=e.getFontNameToFileMap=void 0;e.getStandardFontName=d;e.getSymbolsFonts=e.getSupplementalGlyphMapForCalibri=e.getSupplementalGlyphMapForArialBlack=e.getStdFontMap=void 0;e.isKnownFontName=p;var i=s(3);var n=s(38);const r=(0,i.getLookupTableFactory)((function(t){t["Times-Roman"]="Times-Roman";t.Helvetica="Helvetica";t.Courier="Courier";t.Symbol="Symbol";t["Times-Bold"]="Times-Bold";t["Helvetica-Bold"]="Helvetica-Bold";t["Courier-Bold"]="Courier-Bold";t.ZapfDingbats="ZapfDingbats";t["Times-Italic"]="Times-Italic";t["Helvetica-Oblique"]="Helvetica-Oblique";t["Courier-Oblique"]="Courier-Oblique";t["Times-BoldItalic"]="Times-BoldItalic";t["Helvetica-BoldOblique"]="Helvetica-BoldOblique";t["Courier-BoldOblique"]="Courier-BoldOblique";t.ArialNarrow="Helvetica";t["ArialNarrow-Bold"]="Helvetica-Bold";t["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique";t["ArialNarrow-Italic"]="Helvetica-Oblique";t.ArialBlack="Helvetica";t["ArialBlack-Bold"]="Helvetica-Bold";t["ArialBlack-BoldItalic"]="Helvetica-BoldOblique";t["ArialBlack-Italic"]="Helvetica-Oblique";t["Arial-Black"]="Helvetica";t["Arial-Black-Bold"]="Helvetica-Bold";t["Arial-Black-BoldItalic"]="Helvetica-BoldOblique";t["Arial-Black-Italic"]="Helvetica-Oblique";t.Arial="Helvetica";t["Arial-Bold"]="Helvetica-Bold";t["Arial-BoldItalic"]="Helvetica-BoldOblique";t["Arial-Italic"]="Helvetica-Oblique";t.ArialMT="Helvetica";t["Arial-BoldItalicMT"]="Helvetica-BoldOblique";t["Arial-BoldMT"]="Helvetica-Bold";t["Arial-ItalicMT"]="Helvetica-Oblique";t["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique";t["Arial-BoldMT-Bold"]="Helvetica-Bold";t["Arial-ItalicMT-Italic"]="Helvetica-Oblique";t.ArialUnicodeMS="Helvetica";t["ArialUnicodeMS-Bold"]="Helvetica-Bold";t["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique";t["ArialUnicodeMS-Italic"]="Helvetica-Oblique";t["Courier-BoldItalic"]="Courier-BoldOblique";t["Courier-Italic"]="Courier-Oblique";t.CourierNew="Courier";t["CourierNew-Bold"]="Courier-Bold";t["CourierNew-BoldItalic"]="Courier-BoldOblique";t["CourierNew-Italic"]="Courier-Oblique";t["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique";t["CourierNewPS-BoldMT"]="Courier-Bold";t["CourierNewPS-ItalicMT"]="Courier-Oblique";t.CourierNewPSMT="Courier";t["Helvetica-BoldItalic"]="Helvetica-BoldOblique";t["Helvetica-Italic"]="Helvetica-Oblique";t["Symbol-Bold"]="Symbol";t["Symbol-BoldItalic"]="Symbol";t["Symbol-Italic"]="Symbol";t.TimesNewRoman="Times-Roman";t["TimesNewRoman-Bold"]="Times-Bold";t["TimesNewRoman-BoldItalic"]="Times-BoldItalic";t["TimesNewRoman-Italic"]="Times-Italic";t.TimesNewRomanPS="Times-Roman";t["TimesNewRomanPS-Bold"]="Times-Bold";t["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic";t["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic";t["TimesNewRomanPS-BoldMT"]="Times-Bold";t["TimesNewRomanPS-Italic"]="Times-Italic";t["TimesNewRomanPS-ItalicMT"]="Times-Italic";t.TimesNewRomanPSMT="Times-Roman";t["TimesNewRomanPSMT-Bold"]="Times-Bold";t["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic";t["TimesNewRomanPSMT-Italic"]="Times-Italic"}));e.getStdFontMap=r;const o=(0,i.getLookupTableFactory)((function(t){t.Courier="FoxitFixed.pfb";t["Courier-Bold"]="FoxitFixedBold.pfb";t["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb";t["Courier-Oblique"]="FoxitFixedItalic.pfb";t.Helvetica="LiberationSans-Regular.ttf";t["Helvetica-Bold"]="LiberationSans-Bold.ttf";t["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf";t["Helvetica-Oblique"]="LiberationSans-Italic.ttf";t["Times-Roman"]="FoxitSerif.pfb";t["Times-Bold"]="FoxitSerifBold.pfb";t["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb";t["Times-Italic"]="FoxitSerifItalic.pfb";t.Symbol="FoxitSymbol.pfb";t.ZapfDingbats="FoxitDingbats.pfb";t["LiberationSans-Regular"]="LiberationSans-Regular.ttf";t["LiberationSans-Bold"]="LiberationSans-Bold.ttf";t["LiberationSans-Italic"]="LiberationSans-Italic.ttf";t["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"}));e.getFontNameToFileMap=o;const a=(0,i.getLookupTableFactory)((function(t){t.Calibri="Helvetica";t["Calibri-Bold"]="Helvetica-Bold";t["Calibri-BoldItalic"]="Helvetica-BoldOblique";t["Calibri-Italic"]="Helvetica-Oblique";t.CenturyGothic="Helvetica";t["CenturyGothic-Bold"]="Helvetica-Bold";t["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique";t["CenturyGothic-Italic"]="Helvetica-Oblique";t.ComicSansMS="Comic Sans MS";t["ComicSansMS-Bold"]="Comic Sans MS-Bold";t["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic";t["ComicSansMS-Italic"]="Comic Sans MS-Italic";t.Impact="Helvetica";t["ItcSymbol-Bold"]="Helvetica-Bold";t["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique";t["ItcSymbol-Book"]="Helvetica";t["ItcSymbol-BookItalic"]="Helvetica-Oblique";t["ItcSymbol-Medium"]="Helvetica";t["ItcSymbol-MediumItalic"]="Helvetica-Oblique";t.LucidaConsole="Courier";t["LucidaConsole-Bold"]="Courier-Bold";t["LucidaConsole-BoldItalic"]="Courier-BoldOblique";t["LucidaConsole-Italic"]="Courier-Oblique";t["LucidaSans-Demi"]="Helvetica-Bold";t["MS-Gothic"]="MS Gothic";t["MS-Gothic-Bold"]="MS Gothic-Bold";t["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic";t["MS-Gothic-Italic"]="MS Gothic-Italic";t["MS-Mincho"]="MS Mincho";t["MS-Mincho-Bold"]="MS Mincho-Bold";t["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic";t["MS-Mincho-Italic"]="MS Mincho-Italic";t["MS-PGothic"]="MS PGothic";t["MS-PGothic-Bold"]="MS PGothic-Bold";t["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic";t["MS-PGothic-Italic"]="MS PGothic-Italic";t["MS-PMincho"]="MS PMincho";t["MS-PMincho-Bold"]="MS PMincho-Bold";t["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic";t["MS-PMincho-Italic"]="MS PMincho-Italic";t.NuptialScript="Times-Italic";t.SegoeUISymbol="Helvetica"}));e.getNonStdFontMap=a;const c=(0,i.getLookupTableFactory)((function(t){t["Adobe Jenson"]=true;t["Adobe Text"]=true;t.Albertus=true;t.Aldus=true;t.Alexandria=true;t.Algerian=true;t["American Typewriter"]=true;t.Antiqua=true;t.Apex=true;t.Arno=true;t.Aster=true;t.Aurora=true;t.Baskerville=true;t.Bell=true;t.Bembo=true;t["Bembo Schoolbook"]=true;t.Benguiat=true;t["Berkeley Old Style"]=true;t["Bernhard Modern"]=true;t["Berthold City"]=true;t.Bodoni=true;t["Bauer Bodoni"]=true;t["Book Antiqua"]=true;t.Bookman=true;t["Bordeaux Roman"]=true;t["Californian FB"]=true;t.Calisto=true;t.Calvert=true;t.Capitals=true;t.Cambria=true;t.Cartier=true;t.Caslon=true;t.Catull=true;t.Centaur=true;t["Century Old Style"]=true;t["Century Schoolbook"]=true;t.Chaparral=true;t["Charis SIL"]=true;t.Cheltenham=true;t["Cholla Slab"]=true;t.Clarendon=true;t.Clearface=true;t.Cochin=true;t.Colonna=true;t["Computer Modern"]=true;t["Concrete Roman"]=true;t.Constantia=true;t["Cooper Black"]=true;t.Corona=true;t.Ecotype=true;t.Egyptienne=true;t.Elephant=true;t.Excelsior=true;t.Fairfield=true;t["FF Scala"]=true;t.Folkard=true;t.Footlight=true;t.FreeSerif=true;t["Friz Quadrata"]=true;t.Garamond=true;t.Gentium=true;t.Georgia=true;t.Gloucester=true;t["Goudy Old Style"]=true;t["Goudy Schoolbook"]=true;t["Goudy Pro Font"]=true;t.Granjon=true;t["Guardian Egyptian"]=true;t.Heather=true;t.Hercules=true;t["High Tower Text"]=true;t.Hiroshige=true;t["Hoefler Text"]=true;t["Humana Serif"]=true;t.Imprint=true;t["Ionic No. 5"]=true;t.Janson=true;t.Joanna=true;t.Korinna=true;t.Lexicon=true;t.LiberationSerif=true;t["Liberation Serif"]=true;t["Linux Libertine"]=true;t.Literaturnaya=true;t.Lucida=true;t["Lucida Bright"]=true;t.Melior=true;t.Memphis=true;t.Miller=true;t.Minion=true;t.Modern=true;t["Mona Lisa"]=true;t["Mrs Eaves"]=true;t["MS Serif"]=true;t["Museo Slab"]=true;t["New York"]=true;t["Nimbus Roman"]=true;t["NPS Rawlinson Roadway"]=true;t.NuptialScript=true;t.Palatino=true;t.Perpetua=true;t.Plantin=true;t["Plantin Schoolbook"]=true;t.Playbill=true;t["Poor Richard"]=true;t["Rawlinson Roadway"]=true;t.Renault=true;t.Requiem=true;t.Rockwell=true;t.Roman=true;t["Rotis Serif"]=true;t.Sabon=true;t.Scala=true;t.Seagull=true;t.Sistina=true;t.Souvenir=true;t.STIX=true;t["Stone Informal"]=true;t["Stone Serif"]=true;t.Sylfaen=true;t.Times=true;t.Trajan=true;t["Trinité"]=true;t["Trump Mediaeval"]=true;t.Utopia=true;t["Vale Type"]=true;t["Bitstream Vera"]=true;t["Vera Serif"]=true;t.Versailles=true;t.Wanted=true;t.Weiss=true;t["Wide Latin"]=true;t.Windsor=true;t.XITS=true}));e.getSerifFonts=c;const l=(0,i.getLookupTableFactory)((function(t){t.Dingbats=true;t.Symbol=true;t.ZapfDingbats=true;t.Wingdings=true;t["Wingdings-Bold"]=true;t["Wingdings-Regular"]=true}));e.getSymbolsFonts=l;const h=(0,i.getLookupTableFactory)((function(t){t[2]=10;t[3]=32;t[4]=33;t[5]=34;t[6]=35;t[7]=36;t[8]=37;t[9]=38;t[10]=39;t[11]=40;t[12]=41;t[13]=42;t[14]=43;t[15]=44;t[16]=45;t[17]=46;t[18]=47;t[19]=48;t[20]=49;t[21]=50;t[22]=51;t[23]=52;t[24]=53;t[25]=54;t[26]=55;t[27]=56;t[28]=57;t[29]=58;t[30]=894;t[31]=60;t[32]=61;t[33]=62;t[34]=63;t[35]=64;t[36]=65;t[37]=66;t[38]=67;t[39]=68;t[40]=69;t[41]=70;t[42]=71;t[43]=72;t[44]=73;t[45]=74;t[46]=75;t[47]=76;t[48]=77;t[49]=78;t[50]=79;t[51]=80;t[52]=81;t[53]=82;t[54]=83;t[55]=84;t[56]=85;t[57]=86;t[58]=87;t[59]=88;t[60]=89;t[61]=90;t[62]=91;t[63]=92;t[64]=93;t[65]=94;t[66]=95;t[67]=96;t[68]=97;t[69]=98;t[70]=99;t[71]=100;t[72]=101;t[73]=102;t[74]=103;t[75]=104;t[76]=105;t[77]=106;t[78]=107;t[79]=108;t[80]=109;t[81]=110;t[82]=111;t[83]=112;t[84]=113;t[85]=114;t[86]=115;t[87]=116;t[88]=117;t[89]=118;t[90]=119;t[91]=120;t[92]=121;t[93]=122;t[94]=123;t[95]=124;t[96]=125;t[97]=126;t[98]=196;t[99]=197;t[100]=199;t[101]=201;t[102]=209;t[103]=214;t[104]=220;t[105]=225;t[106]=224;t[107]=226;t[108]=228;t[109]=227;t[110]=229;t[111]=231;t[112]=233;t[113]=232;t[114]=234;t[115]=235;t[116]=237;t[117]=236;t[118]=238;t[119]=239;t[120]=241;t[121]=243;t[122]=242;t[123]=244;t[124]=246;t[125]=245;t[126]=250;t[127]=249;t[128]=251;t[129]=252;t[130]=8224;t[131]=176;t[132]=162;t[133]=163;t[134]=167;t[135]=8226;t[136]=182;t[137]=223;t[138]=174;t[139]=169;t[140]=8482;t[141]=180;t[142]=168;t[143]=8800;t[144]=198;t[145]=216;t[146]=8734;t[147]=177;t[148]=8804;t[149]=8805;t[150]=165;t[151]=181;t[152]=8706;t[153]=8721;t[154]=8719;t[156]=8747;t[157]=170;t[158]=186;t[159]=8486;t[160]=230;t[161]=248;t[162]=191;t[163]=161;t[164]=172;t[165]=8730;t[166]=402;t[167]=8776;t[168]=8710;t[169]=171;t[170]=187;t[171]=8230;t[179]=8220;t[180]=8221;t[181]=8216;t[182]=8217;t[200]=193;t[203]=205;t[207]=211;t[210]=218;t[223]=711;t[224]=321;t[225]=322;t[226]=352;t[227]=353;t[228]=381;t[229]=382;t[233]=221;t[234]=253;t[252]=263;t[253]=268;t[254]=269;t[258]=258;t[260]=260;t[261]=261;t[265]=280;t[266]=281;t[267]=282;t[268]=283;t[269]=313;t[275]=323;t[276]=324;t[278]=328;t[283]=344;t[284]=345;t[285]=346;t[286]=347;t[292]=367;t[295]=377;t[296]=378;t[298]=380;t[305]=963;t[306]=964;t[307]=966;t[308]=8215;t[309]=8252;t[310]=8319;t[311]=8359;t[312]=8592;t[313]=8593;t[337]=9552;t[493]=1039;t[494]=1040;t[672]=1488;t[673]=1489;t[674]=1490;t[675]=1491;t[676]=1492;t[677]=1493;t[678]=1494;t[679]=1495;t[680]=1496;t[681]=1497;t[682]=1498;t[683]=1499;t[684]=1500;t[685]=1501;t[686]=1502;t[687]=1503;t[688]=1504;t[689]=1505;t[690]=1506;t[691]=1507;t[692]=1508;t[693]=1509;t[694]=1510;t[695]=1511;t[696]=1512;t[697]=1513;t[698]=1514;t[705]=1524;t[706]=8362;t[710]=64288;t[711]=64298;t[759]=1617;t[761]=1776;t[763]=1778;t[775]=1652;t[777]=1764;t[778]=1780;t[779]=1781;t[780]=1782;t[782]=771;t[783]=64726;t[786]=8363;t[788]=8532;t[790]=768;t[791]=769;t[792]=768;t[795]=803;t[797]=64336;t[798]=64337;t[799]=64342;t[800]=64343;t[801]=64344;t[802]=64345;t[803]=64362;t[804]=64363;t[805]=64364;t[2424]=7821;t[2425]=7822;t[2426]=7823;t[2427]=7824;t[2428]=7825;t[2429]=7826;t[2430]=7827;t[2433]=7682;t[2678]=8045;t[2679]=8046;t[2830]=1552;t[2838]=686;t[2840]=751;t[2842]=753;t[2843]=754;t[2844]=755;t[2846]=757;t[2856]=767;t[2857]=848;t[2858]=849;t[2862]=853;t[2863]=854;t[2864]=855;t[2865]=861;t[2866]=862;t[2906]=7460;t[2908]=7462;t[2909]=7463;t[2910]=7464;t[2912]=7466;t[2913]=7467;t[2914]=7468;t[2916]=7470;t[2917]=7471;t[2918]=7472;t[2920]=7474;t[2921]=7475;t[2922]=7476;t[2924]=7478;t[2925]=7479;t[2926]=7480;t[2928]=7482;t[2929]=7483;t[2930]=7484;t[2932]=7486;t[2933]=7487;t[2934]=7488;t[2936]=7490;t[2937]=7491;t[2938]=7492;t[2940]=7494;t[2941]=7495;t[2942]=7496;t[2944]=7498;t[2946]=7500;t[2948]=7502;t[2950]=7504;t[2951]=7505;t[2952]=7506;t[2954]=7508;t[2955]=7509;t[2956]=7510;t[2958]=7512;t[2959]=7513;t[2960]=7514;t[2962]=7516;t[2963]=7517;t[2964]=7518;t[2966]=7520;t[2967]=7521;t[2968]=7522;t[2970]=7524;t[2971]=7525;t[2972]=7526;t[2974]=7528;t[2975]=7529;t[2976]=7530;t[2978]=1537;t[2979]=1538;t[2980]=1539;t[2982]=1549;t[2983]=1551;t[2984]=1552;t[2986]=1554;t[2987]=1555;t[2988]=1556;t[2990]=1623;t[2991]=1624;t[2995]=1775;t[2999]=1791;t[3002]=64290;t[3003]=64291;t[3004]=64292;t[3006]=64294;t[3007]=64295;t[3008]=64296;t[3011]=1900;t[3014]=8223;t[3015]=8244;t[3017]=7532;t[3018]=7533;t[3019]=7534;t[3075]=7590;t[3076]=7591;t[3079]=7594;t[3080]=7595;t[3083]=7598;t[3084]=7599;t[3087]=7602;t[3088]=7603;t[3091]=7606;t[3092]=7607;t[3095]=7610;t[3096]=7611;t[3099]=7614;t[3100]=7615;t[3103]=7618;t[3104]=7619;t[3107]=8337;t[3108]=8338;t[3116]=1884;t[3119]=1885;t[3120]=1885;t[3123]=1886;t[3124]=1886;t[3127]=1887;t[3128]=1887;t[3131]=1888;t[3132]=1888;t[3135]=1889;t[3136]=1889;t[3139]=1890;t[3140]=1890;t[3143]=1891;t[3144]=1891;t[3147]=1892;t[3148]=1892;t[3153]=580;t[3154]=581;t[3157]=584;t[3158]=585;t[3161]=588;t[3162]=589;t[3165]=891;t[3166]=892;t[3169]=1274;t[3170]=1275;t[3173]=1278;t[3174]=1279;t[3181]=7622;t[3182]=7623;t[3282]=11799;t[3316]=578;t[3379]=42785;t[3393]=1159;t[3416]=8377}));e.getGlyphMapForStandardFonts=h;const u=(0,i.getLookupTableFactory)((function(t){t[227]=322;t[264]=261;t[291]=346}));e.getSupplementalGlyphMapForArialBlack=u;const f=(0,i.getLookupTableFactory)((function(t){t[1]=32;t[4]=65;t[5]=192;t[6]=193;t[9]=196;t[17]=66;t[18]=67;t[21]=268;t[24]=68;t[28]=69;t[29]=200;t[30]=201;t[32]=282;t[38]=70;t[39]=71;t[44]=72;t[47]=73;t[48]=204;t[49]=205;t[58]=74;t[60]=75;t[62]=76;t[68]=77;t[69]=78;t[75]=79;t[76]=210;t[80]=214;t[87]=80;t[89]=81;t[90]=82;t[92]=344;t[94]=83;t[97]=352;t[100]=84;t[104]=85;t[109]=220;t[115]=86;t[116]=87;t[121]=88;t[122]=89;t[124]=221;t[127]=90;t[129]=381;t[258]=97;t[259]=224;t[260]=225;t[263]=228;t[268]=261;t[271]=98;t[272]=99;t[273]=263;t[275]=269;t[282]=100;t[286]=101;t[287]=232;t[288]=233;t[290]=283;t[295]=281;t[296]=102;t[336]=103;t[346]=104;t[349]=105;t[350]=236;t[351]=237;t[361]=106;t[364]=107;t[367]=108;t[371]=322;t[373]=109;t[374]=110;t[381]=111;t[382]=242;t[383]=243;t[386]=246;t[393]=112;t[395]=113;t[396]=114;t[398]=345;t[400]=115;t[401]=347;t[403]=353;t[410]=116;t[437]=117;t[442]=252;t[448]=118;t[449]=119;t[454]=120;t[455]=121;t[457]=253;t[460]=122;t[462]=382;t[463]=380;t[853]=44;t[855]=58;t[856]=46;t[876]=47;t[878]=45;t[882]=45;t[894]=40;t[895]=41;t[896]=91;t[897]=93;t[923]=64;t[1004]=48;t[1005]=49;t[1006]=50;t[1007]=51;t[1008]=52;t[1009]=53;t[1010]=54;t[1011]=55;t[1012]=56;t[1013]=57;t[1081]=37;t[1085]=43;t[1086]=45}));e.getSupplementalGlyphMapForCalibri=f;function d(t){const e=(0,n.normalizeFontName)(t);const s=r();return s[e]}function p(t){const e=(0,n.normalizeFontName)(t);return!!(r()[e]||a()[e]||c()[e]||l()[e])}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.ToUnicodeMap=e.IdentityToUnicodeMap=void 0;var i=s(2);class n{constructor(t=[]){this._map=t}get length(){return this._map.length}forEach(t){for(const e in this._map){t(e,this._map[e].charCodeAt(0))}}has(t){return this._map[t]!==undefined}get(t){return this._map[t]}charCodeOf(t){const e=this._map;if(e.length<=65536){return e.indexOf(t)}for(const s in e){if(e[s]===t){return s|0}}return-1}amend(t){for(const e in t){this._map[e]=t[e]}}}e.ToUnicodeMap=n;class r{constructor(t,e){this.firstChar=t;this.lastChar=e}get length(){return this.lastChar+1-this.firstChar}forEach(t){for(let e=this.firstChar,s=this.lastChar;e<=s;e++){t(e,e)}}has(t){return this.firstChar<=t&&t<=this.lastChar}get(t){if(this.firstChar<=t&&t<=this.lastChar){return String.fromCharCode(t)}return undefined}charCodeOf(t){return Number.isInteger(t)&&t>=this.firstChar&&t<=this.lastChar?t:-1}amend(t){(0,i.unreachable)("Should not call amend()")}}e.IdentityToUnicodeMap=r},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.CFFFont=void 0;var i=s(35);var n=s(38);var r=s(2);class o{constructor(t,e){this.properties=e;const s=new i.CFFParser(t,e,n.SEAC_ANALYSIS_ENABLED);this.cff=s.parse();this.cff.duplicateFirstGlyph();const o=new i.CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=o.compile()}catch{(0,r.warn)("Failed to compile font "+e.loadedName);this.data=t}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const t=this.cff;const e=this.properties;const{cidToGidMap:s,cMap:i}=e;const r=t.charset.charset;let o;let a;if(e.composite){let e;if(s?.length>0){e=Object.create(null);for(let t=0,i=s.length;t<i;t++){const i=s[t];if(i!==undefined){e[i]=t}}}o=Object.create(null);let n;if(t.isCIDFont){for(a=0;a<r.length;a++){const t=r[a];n=i.charCodeOf(t);if(e?.[n]!==undefined){n=e[n]}o[n]=a}}else{for(a=0;a<t.charStrings.count;a++){n=i.charCodeOf(a);o[n]=a}}return o}let c=t.encoding?t.encoding.encoding:null;if(e.isInternalFont){c=e.defaultEncoding}o=(0,n.type1FontGlyphMapping)(e,c,r);return o}hasGlyphId(t){return this.cff.hasGlyphId(t)}_createBuiltInEncoding(){const{charset:t,encoding:e}=this.cff;if(!t||!e){return}const s=t.charset,i=e.encoding;const n=[];for(const t in i){const e=i[t];if(e>=0){const i=s[e];if(i){n[t]=i}}}if(n.length>0){this.properties.builtInEncoding=n}}}e.CFFFont=o},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.FontRendererFactory=void 0;var i=s(2);var n=s(35);var r=s(39);var o=s(37);var a=s(8);function c(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function l(t,e){return t[e]<<8|t[e+1]}function h(t,e){return(t[e]<<24|t[e+1]<<16)>>16}function u(t,e){return t[e]<<24>>24}function f(t,e){return h(t,e)/16384}function d(t){const e=t.length;let s=32768;if(e<1240){s=107}else if(e<33900){s=1131}return s}function p(t,e,s){const n=l(t,e+2)===1?c(t,e+8):c(t,e+16);const r=l(t,e+n);let o,a,h;if(r===4){const s=l(t,e+n+6)>>1;a=e+n+14;o=[];for(h=0;h<s;h++,a+=2){o[h]={end:l(t,a)}}a+=2;for(h=0;h<s;h++,a+=2){o[h].start=l(t,a)}for(h=0;h<s;h++,a+=2){o[h].idDelta=l(t,a)}for(h=0;h<s;h++,a+=2){let e=l(t,a);if(e===0){continue}o[h].ids=[];for(let s=0,i=o[h].end-o[h].start+1;s<i;s++){o[h].ids[s]=l(t,a+e);e+=2}}return o}else if(r===12){const s=c(t,e+n+12);a=e+n+16;o=[];for(h=0;h<s;h++){e=c(t,a);o.push({start:e,end:c(t,a+4),idDelta:c(t,a+8)-e});a+=12}return o}throw new i.FormatError(`unsupported cmap: ${r}`)}function g(t,e,s,i){const r={};const o=new n.CFFParser(new a.Stream(t,e,s-e),r,i);const c=o.parse();return{glyphs:c.charStrings.objects,subrs:c.topDict.privateDict?.subrsIndex?.objects,gsubrs:c.globalSubrIndex?.objects,isCFFCIDFont:c.isCIDFont,fdSelect:c.fdSelect,fdArray:c.fdArray}}function m(t,e,s){let i,n;if(s){i=4;n=c}else{i=2;n=(t,e)=>2*l(t,e)}const r=[];let o=n(e,0);for(let s=i;s<e.length;s+=i){const i=n(e,s);r.push(t.subarray(o,i));o=i}return r}function w(t,e){const s=e.codePointAt(0);let i=0,n=0,r=t.length-1;while(n<r){const e=n+r+1>>1;if(s<t[e].start){r=e-1}else{n=e}}if(t[n].start<=s&&s<=t[n].end){i=t[n].idDelta+(t[n].ids?t[n].ids[s-t[n].start]:s)&65535}return{charCode:s,glyphId:i}}function b(t,e,s){function i(t,s){e.push({cmd:"moveTo",args:[t,s]})}function n(t,s){e.push({cmd:"lineTo",args:[t,s]})}function r(t,s,i,n){e.push({cmd:"quadraticCurveTo",args:[t,s,i,n]})}let o=0;const a=h(t,o);let c;let d=0,p=0;o+=10;if(a<0){do{c=l(t,o);const i=l(t,o+2);o+=4;let n,r;if(c&1){if(c&2){n=h(t,o);r=h(t,o+2)}else{n=l(t,o);r=l(t,o+2)}o+=4}else if(c&2){n=u(t,o++);r=u(t,o++)}else{n=t[o++];r=t[o++]}if(c&2){d=n;p=r}else{d=0;p=0}let a=1,g=1,m=0,w=0;if(c&8){a=g=f(t,o);o+=2}else if(c&64){a=f(t,o);g=f(t,o+2);o+=4}else if(c&128){a=f(t,o);m=f(t,o+2);w=f(t,o+4);g=f(t,o+6);o+=8}const y=s.glyphs[i];if(y){e.push({cmd:"save"},{cmd:"transform",args:[a,m,w,g,d,p]});b(y,e,s);e.push({cmd:"restore"})}}while(c&32)}else{const e=[];let s,u;for(s=0;s<a;s++){e.push(l(t,o));o+=2}const f=l(t,o);o+=2+f;const g=e.at(-1)+1;const m=[];while(m.length<g){c=t[o++];let e=1;if(c&8){e+=t[o++]}while(e-- >0){m.push({flags:c})}}for(s=0;s<g;s++){switch(m[s].flags&18){case 0:d+=h(t,o);o+=2;break;case 2:d-=t[o++];break;case 18:d+=t[o++];break}m[s].x=d}for(s=0;s<g;s++){switch(m[s].flags&36){case 0:p+=h(t,o);o+=2;break;case 4:p-=t[o++];break;case 36:p+=t[o++];break}m[s].y=p}let w=0;for(o=0;o<a;o++){const t=e[o];const a=m.slice(w,t+1);if(a[0].flags&1){a.push(a[0])}else if(a.at(-1).flags&1){a.unshift(a.at(-1))}else{const t={flags:1,x:(a[0].x+a.at(-1).x)/2,y:(a[0].y+a.at(-1).y)/2};a.unshift(t);a.push(t)}i(a[0].x,a[0].y);for(s=1,u=a.length;s<u;s++){if(a[s].flags&1){n(a[s].x,a[s].y)}else if(a[s+1].flags&1){r(a[s].x,a[s].y,a[s+1].x,a[s+1].y);s++}else{r(a[s].x,a[s].y,(a[s].x+a[s+1].x)/2,(a[s].y+a[s+1].y)/2)}}w=t+1}}}function y(t,e,s,n){function r(t,s){e.push({cmd:"moveTo",args:[t,s]})}function a(t,s){e.push({cmd:"lineTo",args:[t,s]})}function c(t,s,i,n,r,o){e.push({cmd:"bezierCurveTo",args:[t,s,i,n,r,o]})}const l=[];let h=0,u=0;let f=0;function p(t){let g=0;while(g<t.length){let m=false;let b=t[g++];let A,v,x,k,S,M,C,_,I;switch(b){case 1:f+=l.length>>1;m=true;break;case 3:f+=l.length>>1;m=true;break;case 4:u+=l.pop();r(h,u);m=true;break;case 5:while(l.length>0){h+=l.shift();u+=l.shift();a(h,u)}break;case 6:while(l.length>0){h+=l.shift();a(h,u);if(l.length===0){break}u+=l.shift();a(h,u)}break;case 7:while(l.length>0){u+=l.shift();a(h,u);if(l.length===0){break}h+=l.shift();a(h,u)}break;case 8:while(l.length>0){A=h+l.shift();x=u+l.shift();v=A+l.shift();k=x+l.shift();h=v+l.shift();u=k+l.shift();c(A,x,v,k,h,u)}break;case 10:_=l.pop();I=null;if(s.isCFFCIDFont){const t=s.fdSelect.getFDIndex(n);if(t>=0&&t<s.fdArray.length){const e=s.fdArray[t];let i;if(e.privateDict?.subrsIndex){i=e.privateDict.subrsIndex.objects}if(i){_+=d(i);I=i[_]}}else{(0,i.warn)("Invalid fd index for glyph index.")}}else{I=s.subrs[_+s.subrsBias]}if(I){p(I)}break;case 11:return;case 12:b=t[g++];switch(b){case 34:A=h+l.shift();v=A+l.shift();S=u+l.shift();h=v+l.shift();c(A,u,v,S,h,S);A=h+l.shift();v=A+l.shift();h=v+l.shift();c(A,S,v,u,h,u);break;case 35:A=h+l.shift();x=u+l.shift();v=A+l.shift();k=x+l.shift();h=v+l.shift();u=k+l.shift();c(A,x,v,k,h,u);A=h+l.shift();x=u+l.shift();v=A+l.shift();k=x+l.shift();h=v+l.shift();u=k+l.shift();c(A,x,v,k,h,u);l.pop();break;case 36:A=h+l.shift();S=u+l.shift();v=A+l.shift();M=S+l.shift();h=v+l.shift();c(A,S,v,M,h,M);A=h+l.shift();v=A+l.shift();C=M+l.shift();h=v+l.shift();c(A,M,v,C,h,u);break;case 37:const t=h,e=u;A=h+l.shift();x=u+l.shift();v=A+l.shift();k=x+l.shift();h=v+l.shift();u=k+l.shift();c(A,x,v,k,h,u);A=h+l.shift();x=u+l.shift();v=A+l.shift();k=x+l.shift();h=v;u=k;if(Math.abs(h-t)>Math.abs(u-e)){h+=l.shift()}else{u+=l.shift()}c(A,x,v,k,h,u);break;default:throw new i.FormatError(`unknown operator: 12 ${b}`)}break;case 14:if(l.length>=4){const t=l.pop();const i=l.pop();u=l.pop();h=l.pop();e.push({cmd:"save"},{cmd:"translate",args:[h,u]});let n=w(s.cmap,String.fromCharCode(s.glyphNameMap[o.StandardEncoding[t]]));y(s.glyphs[n.glyphId],e,s,n.glyphId);e.push({cmd:"restore"});n=w(s.cmap,String.fromCharCode(s.glyphNameMap[o.StandardEncoding[i]]));y(s.glyphs[n.glyphId],e,s,n.glyphId)}return;case 18:f+=l.length>>1;m=true;break;case 19:f+=l.length>>1;g+=f+7>>3;m=true;break;case 20:f+=l.length>>1;g+=f+7>>3;m=true;break;case 21:u+=l.pop();h+=l.pop();r(h,u);m=true;break;case 22:h+=l.pop();r(h,u);m=true;break;case 23:f+=l.length>>1;m=true;break;case 24:while(l.length>2){A=h+l.shift();x=u+l.shift();v=A+l.shift();k=x+l.shift();h=v+l.shift();u=k+l.shift();c(A,x,v,k,h,u)}h+=l.shift();u+=l.shift();a(h,u);break;case 25:while(l.length>6){h+=l.shift();u+=l.shift();a(h,u)}A=h+l.shift();x=u+l.shift();v=A+l.shift();k=x+l.shift();h=v+l.shift();u=k+l.shift();c(A,x,v,k,h,u);break;case 26:if(l.length%2){h+=l.shift()}while(l.length>0){A=h;x=u+l.shift();v=A+l.shift();k=x+l.shift();h=v;u=k+l.shift();c(A,x,v,k,h,u)}break;case 27:if(l.length%2){u+=l.shift()}while(l.length>0){A=h+l.shift();x=u;v=A+l.shift();k=x+l.shift();h=v+l.shift();u=k;c(A,x,v,k,h,u)}break;case 28:l.push((t[g]<<24|t[g+1]<<16)>>16);g+=2;break;case 29:_=l.pop()+s.gsubrsBias;I=s.gsubrs[_];if(I){p(I)}break;case 30:while(l.length>0){A=h;x=u+l.shift();v=A+l.shift();k=x+l.shift();h=v+l.shift();u=k+(l.length===1?l.shift():0);c(A,x,v,k,h,u);if(l.length===0){break}A=h+l.shift();x=u;v=A+l.shift();k=x+l.shift();u=k+l.shift();h=v+(l.length===1?l.shift():0);c(A,x,v,k,h,u)}break;case 31:while(l.length>0){A=h+l.shift();x=u;v=A+l.shift();k=x+l.shift();u=k+l.shift();h=v+(l.length===1?l.shift():0);c(A,x,v,k,h,u);if(l.length===0){break}A=h;x=u+l.shift();v=A+l.shift();k=x+l.shift();h=v+l.shift();u=k+(l.length===1?l.shift():0);c(A,x,v,k,h,u)}break;default:if(b<32){throw new i.FormatError(`unknown operator: ${b}`)}if(b<247){l.push(b-139)}else if(b<251){l.push((b-247)*256+t[g++]+108)}else if(b<255){l.push(-(b-251)*256-t[g++]-108)}else{l.push((t[g]<<24|t[g+1]<<16|t[g+2]<<8|t[g+3])/65536);g+=4}break}if(m){l.length=0}}}p(t)}const A=[];class v{constructor(t){if(this.constructor===v){(0,i.unreachable)("Cannot initialize CompiledFont.")}this.fontMatrix=t;this.compiledGlyphs=Object.create(null);this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(t){const{charCode:e,glyphId:s}=w(this.cmap,t);let i=this.compiledGlyphs[s];if(!i){try{i=this.compileGlyph(this.glyphs[s],s);this.compiledGlyphs[s]=i}catch(t){this.compiledGlyphs[s]=A;if(this.compiledCharCodeToGlyphId[e]===undefined){this.compiledCharCodeToGlyphId[e]=s}throw t}}if(this.compiledCharCodeToGlyphId[e]===undefined){this.compiledCharCodeToGlyphId[e]=s}return i}compileGlyph(t,e){if(!t||t.length===0||t[0]===14){return A}let s=this.fontMatrix;if(this.isCFFCIDFont){const t=this.fdSelect.getFDIndex(e);if(t>=0&&t<this.fdArray.length){const e=this.fdArray[t];s=e.getByName("FontMatrix")||i.FONT_IDENTITY_MATRIX}else{(0,i.warn)("Invalid fd index for glyph index.")}}const n=[{cmd:"save"},{cmd:"transform",args:s.slice()},{cmd:"scale",args:["size","-size"]}];this.compileGlyphImpl(t,n,e);n.push({cmd:"restore"});return n}compileGlyphImpl(){(0,i.unreachable)("Children classes should implement this.")}hasBuiltPath(t){const{charCode:e,glyphId:s}=w(this.cmap,t);return this.compiledGlyphs[s]!==undefined&&this.compiledCharCodeToGlyphId[e]!==undefined}}class x extends v{constructor(t,e,s){super(s||[488e-6,0,0,488e-6,0,0]);this.glyphs=t;this.cmap=e}compileGlyphImpl(t,e){b(t,e,this)}}class k extends v{constructor(t,e,s,i){super(s||[.001,0,0,.001,0,0]);this.glyphs=t.glyphs;this.gsubrs=t.gsubrs||[];this.subrs=t.subrs||[];this.cmap=e;this.glyphNameMap=i||(0,r.getGlyphsUnicode)();this.gsubrsBias=d(this.gsubrs);this.subrsBias=d(this.subrs);this.isCFFCIDFont=t.isCFFCIDFont;this.fdSelect=t.fdSelect;this.fdArray=t.fdArray}compileGlyphImpl(t,e,s){y(t,e,this,s)}}class S{static create(t,e){const s=new Uint8Array(t.data);let n,r,o,a,h,u;const f=l(s,4);for(let t=0,d=12;t<f;t++,d+=16){const t=(0,i.bytesToString)(s.subarray(d,d+4));const f=c(s,d+8);const m=c(s,d+12);switch(t){case"cmap":n=p(s,f);break;case"glyf":r=s.subarray(f,f+m);break;case"loca":o=s.subarray(f,f+m);break;case"head":u=l(s,f+18);h=l(s,f+50);break;case"CFF ":a=g(s,f,f+m,e);break}}if(r){const e=!u?t.fontMatrix:[1/u,0,0,1/u,0,0];return new x(m(r,o,h),n,e)}return new k(a,n,t.fontMatrix,t.glyphNameMap)}}e.FontRendererFactory=S},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.getMetrics=e.getFontBasicMetrics=void 0;var i=s(3);const n=(0,i.getLookupTableFactory)((function(t){t.Courier=600;t["Courier-Bold"]=600;t["Courier-BoldOblique"]=600;t["Courier-Oblique"]=600;t.Helvetica=(0,i.getLookupTableFactory)((function(t){t.space=278;t.exclam=278;t.quotedbl=355;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=667;t.quoteright=222;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=278;t.semicolon=278;t.less=584;t.equal=584;t.greater=584;t.question=556;t.at=1015;t.A=667;t.B=667;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=500;t.K=667;t.L=556;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=278;t.backslash=278;t.bracketright=278;t.asciicircum=469;t.underscore=556;t.quoteleft=222;t.a=556;t.b=556;t.c=500;t.d=556;t.e=556;t.f=278;t.g=556;t.h=556;t.i=222;t.j=222;t.k=500;t.l=222;t.m=833;t.n=556;t.o=556;t.p=556;t.q=556;t.r=333;t.s=500;t.t=278;t.u=556;t.v=500;t.w=722;t.x=500;t.y=500;t.z=500;t.braceleft=334;t.bar=260;t.braceright=334;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=191;t.quotedblleft=333;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=500;t.fl=500;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=537;t.bullet=350;t.quotesinglbase=222;t.quotedblbase=333;t.quotedblright=333;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=556;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=222;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=556;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=667;t.aacute=556;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=500;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=500;t.aring=556;t.Ncommaaccent=722;t.lacute=222;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=500;t.scedilla=500;t.iacute=278;t.lozenge=471;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=556;t.acircumflex=556;t.Amacron=667;t.rcaron=333;t.ccedilla=500;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=643;t.Umacron=722;t.uring=556;t.threesuperior=333;t.Ograve=778;t.Agrave=667;t.Abreve=667;t.multiply=584;t.uacute=556;t.Tcaron=611;t.partialdiff=476;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=500;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=260;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=333;t.omacron=556;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=222;t.tcaron=317;t.eogonek=556;t.Uogonek=722;t.Aacute=667;t.Adieresis=667;t.egrave=556;t.zacute=500;t.iogonek=222;t.Oacute=778;t.oacute=556;t.amacron=556;t.sacute=500;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=556;t.twosuperior=333;t.Odieresis=778;t.mu=556;t.igrave=278;t.ohungarumlaut=556;t.Eogonek=667;t.dcroat=556;t.threequarters=834;t.Scedilla=667;t.lcaron=299;t.Kcommaaccent=667;t.Lacute=556;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=556;t.onehalf=834;t.lessequal=549;t.ocircumflex=556;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=556;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=556;t.Ccaron=722;t.ugrave=556;t.radical=453;t.Dcaron=722;t.rcommaaccent=333;t.Ntilde=722;t.otilde=556;t.Rcommaaccent=722;t.Lcommaaccent=556;t.Atilde=667;t.Aogonek=667;t.Aring=667;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=500;t.minus=584;t.Icircumflex=278;t.ncaron=556;t.tcommaaccent=278;t.logicalnot=584;t.odieresis=556;t.udieresis=556;t.notequal=549;t.gcommaaccent=556;t.eth=556;t.zcaron=500;t.ncommaaccent=556;t.onesuperior=333;t.imacron=278;t.Euro=556}));t["Helvetica-Bold"]=(0,i.getLookupTableFactory)((function(t){t.space=278;t.exclam=333;t.quotedbl=474;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=722;t.quoteright=278;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=333;t.semicolon=333;t.less=584;t.equal=584;t.greater=584;t.question=611;t.at=975;t.A=722;t.B=722;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=556;t.K=722;t.L=611;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=584;t.underscore=556;t.quoteleft=278;t.a=556;t.b=611;t.c=556;t.d=611;t.e=556;t.f=333;t.g=611;t.h=611;t.i=278;t.j=278;t.k=556;t.l=278;t.m=889;t.n=611;t.o=611;t.p=611;t.q=611;t.r=389;t.s=556;t.t=333;t.u=611;t.v=556;t.w=778;t.x=556;t.y=556;t.z=500;t.braceleft=389;t.bar=280;t.braceright=389;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=238;t.quotedblleft=500;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=611;t.fl=611;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=556;t.bullet=350;t.quotesinglbase=278;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=611;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=278;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=611;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=722;t.aacute=556;t.Ucircumflex=722;t.yacute=556;t.scommaaccent=556;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=611;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=556;t.aring=556;t.Ncommaaccent=722;t.lacute=278;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=556;t.scedilla=556;t.iacute=278;t.lozenge=494;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=611;t.acircumflex=556;t.Amacron=722;t.rcaron=389;t.ccedilla=556;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=743;t.Umacron=722;t.uring=611;t.threesuperior=333;t.Ograve=778;t.Agrave=722;t.Abreve=722;t.multiply=584;t.uacute=611;t.Tcaron=611;t.partialdiff=494;t.ydieresis=556;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=556;t.nacute=611;t.umacron=611;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=280;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=389;t.omacron=611;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=278;t.tcaron=389;t.eogonek=556;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=556;t.zacute=500;t.iogonek=278;t.Oacute=778;t.oacute=611;t.amacron=556;t.sacute=556;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=611;t.twosuperior=333;t.Odieresis=778;t.mu=611;t.igrave=278;t.ohungarumlaut=611;t.Eogonek=667;t.dcroat=611;t.threequarters=834;t.Scedilla=667;t.lcaron=400;t.Kcommaaccent=722;t.Lacute=611;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=611;t.onehalf=834;t.lessequal=549;t.ocircumflex=611;t.ntilde=611;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=611;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=611;t.Ccaron=722;t.ugrave=611;t.radical=549;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=722;t.otilde=611;t.Rcommaaccent=722;t.Lcommaaccent=611;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=556;t.minus=584;t.Icircumflex=278;t.ncaron=611;t.tcommaaccent=333;t.logicalnot=584;t.odieresis=611;t.udieresis=611;t.notequal=549;t.gcommaaccent=611;t.eth=611;t.zcaron=500;t.ncommaaccent=611;t.onesuperior=333;t.imacron=278;t.Euro=556}));t["Helvetica-BoldOblique"]=(0,i.getLookupTableFactory)((function(t){t.space=278;t.exclam=333;t.quotedbl=474;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=722;t.quoteright=278;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=333;t.semicolon=333;t.less=584;t.equal=584;t.greater=584;t.question=611;t.at=975;t.A=722;t.B=722;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=556;t.K=722;t.L=611;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=584;t.underscore=556;t.quoteleft=278;t.a=556;t.b=611;t.c=556;t.d=611;t.e=556;t.f=333;t.g=611;t.h=611;t.i=278;t.j=278;t.k=556;t.l=278;t.m=889;t.n=611;t.o=611;t.p=611;t.q=611;t.r=389;t.s=556;t.t=333;t.u=611;t.v=556;t.w=778;t.x=556;t.y=556;t.z=500;t.braceleft=389;t.bar=280;t.braceright=389;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=238;t.quotedblleft=500;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=611;t.fl=611;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=556;t.bullet=350;t.quotesinglbase=278;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=611;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=278;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=611;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=722;t.aacute=556;t.Ucircumflex=722;t.yacute=556;t.scommaaccent=556;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=611;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=556;t.aring=556;t.Ncommaaccent=722;t.lacute=278;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=556;t.scedilla=556;t.iacute=278;t.lozenge=494;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=611;t.acircumflex=556;t.Amacron=722;t.rcaron=389;t.ccedilla=556;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=743;t.Umacron=722;t.uring=611;t.threesuperior=333;t.Ograve=778;t.Agrave=722;t.Abreve=722;t.multiply=584;t.uacute=611;t.Tcaron=611;t.partialdiff=494;t.ydieresis=556;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=556;t.nacute=611;t.umacron=611;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=280;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=389;t.omacron=611;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=278;t.tcaron=389;t.eogonek=556;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=556;t.zacute=500;t.iogonek=278;t.Oacute=778;t.oacute=611;t.amacron=556;t.sacute=556;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=611;t.twosuperior=333;t.Odieresis=778;t.mu=611;t.igrave=278;t.ohungarumlaut=611;t.Eogonek=667;t.dcroat=611;t.threequarters=834;t.Scedilla=667;t.lcaron=400;t.Kcommaaccent=722;t.Lacute=611;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=611;t.onehalf=834;t.lessequal=549;t.ocircumflex=611;t.ntilde=611;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=611;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=611;t.Ccaron=722;t.ugrave=611;t.radical=549;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=722;t.otilde=611;t.Rcommaaccent=722;t.Lcommaaccent=611;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=556;t.minus=584;t.Icircumflex=278;t.ncaron=611;t.tcommaaccent=333;t.logicalnot=584;t.odieresis=611;t.udieresis=611;t.notequal=549;t.gcommaaccent=611;t.eth=611;t.zcaron=500;t.ncommaaccent=611;t.onesuperior=333;t.imacron=278;t.Euro=556}));t["Helvetica-Oblique"]=(0,i.getLookupTableFactory)((function(t){t.space=278;t.exclam=278;t.quotedbl=355;t.numbersign=556;t.dollar=556;t.percent=889;t.ampersand=667;t.quoteright=222;t.parenleft=333;t.parenright=333;t.asterisk=389;t.plus=584;t.comma=278;t.hyphen=333;t.period=278;t.slash=278;t.zero=556;t.one=556;t.two=556;t.three=556;t.four=556;t.five=556;t.six=556;t.seven=556;t.eight=556;t.nine=556;t.colon=278;t.semicolon=278;t.less=584;t.equal=584;t.greater=584;t.question=556;t.at=1015;t.A=667;t.B=667;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=722;t.I=278;t.J=500;t.K=667;t.L=556;t.M=833;t.N=722;t.O=778;t.P=667;t.Q=778;t.R=722;t.S=667;t.T=611;t.U=722;t.V=667;t.W=944;t.X=667;t.Y=667;t.Z=611;t.bracketleft=278;t.backslash=278;t.bracketright=278;t.asciicircum=469;t.underscore=556;t.quoteleft=222;t.a=556;t.b=556;t.c=500;t.d=556;t.e=556;t.f=278;t.g=556;t.h=556;t.i=222;t.j=222;t.k=500;t.l=222;t.m=833;t.n=556;t.o=556;t.p=556;t.q=556;t.r=333;t.s=500;t.t=278;t.u=556;t.v=500;t.w=722;t.x=500;t.y=500;t.z=500;t.braceleft=334;t.bar=260;t.braceright=334;t.asciitilde=584;t.exclamdown=333;t.cent=556;t.sterling=556;t.fraction=167;t.yen=556;t.florin=556;t.section=556;t.currency=556;t.quotesingle=191;t.quotedblleft=333;t.guillemotleft=556;t.guilsinglleft=333;t.guilsinglright=333;t.fi=500;t.fl=500;t.endash=556;t.dagger=556;t.daggerdbl=556;t.periodcentered=278;t.paragraph=537;t.bullet=350;t.quotesinglbase=222;t.quotedblbase=333;t.quotedblright=333;t.guillemotright=556;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=611;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=370;t.Lslash=556;t.Oslash=778;t.OE=1e3;t.ordmasculine=365;t.ae=889;t.dotlessi=278;t.lslash=222;t.oslash=611;t.oe=944;t.germandbls=611;t.Idieresis=278;t.eacute=556;t.abreve=556;t.uhungarumlaut=556;t.ecaron=556;t.Ydieresis=667;t.divide=584;t.Yacute=667;t.Acircumflex=667;t.aacute=556;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=500;t.ecircumflex=556;t.Uring=722;t.Udieresis=722;t.aogonek=556;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=737;t.Emacron=667;t.ccaron=500;t.aring=556;t.Ncommaaccent=722;t.lacute=222;t.agrave=556;t.Tcommaaccent=611;t.Cacute=722;t.atilde=556;t.Edotaccent=667;t.scaron=500;t.scedilla=500;t.iacute=278;t.lozenge=471;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=556;t.acircumflex=556;t.Amacron=667;t.rcaron=333;t.ccedilla=500;t.Zdotaccent=611;t.Thorn=667;t.Omacron=778;t.Racute=722;t.Sacute=667;t.dcaron=643;t.Umacron=722;t.uring=556;t.threesuperior=333;t.Ograve=778;t.Agrave=667;t.Abreve=667;t.multiply=584;t.uacute=556;t.Tcaron=611;t.partialdiff=476;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=556;t.edieresis=556;t.cacute=500;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=278;t.plusminus=584;t.brokenbar=260;t.registered=737;t.Gbreve=778;t.Idotaccent=278;t.summation=600;t.Egrave=667;t.racute=333;t.omacron=556;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=222;t.tcaron=317;t.eogonek=556;t.Uogonek=722;t.Aacute=667;t.Adieresis=667;t.egrave=556;t.zacute=500;t.iogonek=222;t.Oacute=778;t.oacute=556;t.amacron=556;t.sacute=500;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=556;t.twosuperior=333;t.Odieresis=778;t.mu=556;t.igrave=278;t.ohungarumlaut=556;t.Eogonek=667;t.dcroat=556;t.threequarters=834;t.Scedilla=667;t.lcaron=299;t.Kcommaaccent=667;t.Lacute=556;t.trademark=1e3;t.edotaccent=556;t.Igrave=278;t.Imacron=278;t.Lcaron=556;t.onehalf=834;t.lessequal=549;t.ocircumflex=556;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=556;t.gbreve=556;t.onequarter=834;t.Scaron=667;t.Scommaaccent=667;t.Ohungarumlaut=778;t.degree=400;t.ograve=556;t.Ccaron=722;t.ugrave=556;t.radical=453;t.Dcaron=722;t.rcommaaccent=333;t.Ntilde=722;t.otilde=556;t.Rcommaaccent=722;t.Lcommaaccent=556;t.Atilde=667;t.Aogonek=667;t.Aring=667;t.Otilde=778;t.zdotaccent=500;t.Ecaron=667;t.Iogonek=278;t.kcommaaccent=500;t.minus=584;t.Icircumflex=278;t.ncaron=556;t.tcommaaccent=278;t.logicalnot=584;t.odieresis=556;t.udieresis=556;t.notequal=549;t.gcommaaccent=556;t.eth=556;t.zcaron=500;t.ncommaaccent=556;t.onesuperior=333;t.imacron=278;t.Euro=556}));t.Symbol=(0,i.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.universal=713;t.numbersign=500;t.existential=549;t.percent=833;t.ampersand=778;t.suchthat=439;t.parenleft=333;t.parenright=333;t.asteriskmath=500;t.plus=549;t.comma=250;t.minus=549;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=278;t.semicolon=278;t.less=549;t.equal=549;t.greater=549;t.question=444;t.congruent=549;t.Alpha=722;t.Beta=667;t.Chi=722;t.Delta=612;t.Epsilon=611;t.Phi=763;t.Gamma=603;t.Eta=722;t.Iota=333;t.theta1=631;t.Kappa=722;t.Lambda=686;t.Mu=889;t.Nu=722;t.Omicron=722;t.Pi=768;t.Theta=741;t.Rho=556;t.Sigma=592;t.Tau=611;t.Upsilon=690;t.sigma1=439;t.Omega=768;t.Xi=645;t.Psi=795;t.Zeta=611;t.bracketleft=333;t.therefore=863;t.bracketright=333;t.perpendicular=658;t.underscore=500;t.radicalex=500;t.alpha=631;t.beta=549;t.chi=549;t.delta=494;t.epsilon=439;t.phi=521;t.gamma=411;t.eta=603;t.iota=329;t.phi1=603;t.kappa=549;t.lambda=549;t.mu=576;t.nu=521;t.omicron=549;t.pi=549;t.theta=521;t.rho=549;t.sigma=603;t.tau=439;t.upsilon=576;t.omega1=713;t.omega=686;t.xi=493;t.psi=686;t.zeta=494;t.braceleft=480;t.bar=200;t.braceright=480;t.similar=549;t.Euro=750;t.Upsilon1=620;t.minute=247;t.lessequal=549;t.fraction=167;t.infinity=713;t.florin=500;t.club=753;t.diamond=753;t.heart=753;t.spade=753;t.arrowboth=1042;t.arrowleft=987;t.arrowup=603;t.arrowright=987;t.arrowdown=603;t.degree=400;t.plusminus=549;t.second=411;t.greaterequal=549;t.multiply=549;t.proportional=713;t.partialdiff=494;t.bullet=460;t.divide=549;t.notequal=549;t.equivalence=549;t.approxequal=549;t.ellipsis=1e3;t.arrowvertex=603;t.arrowhorizex=1e3;t.carriagereturn=658;t.aleph=823;t.Ifraktur=686;t.Rfraktur=795;t.weierstrass=987;t.circlemultiply=768;t.circleplus=768;t.emptyset=823;t.intersection=768;t.union=768;t.propersuperset=713;t.reflexsuperset=713;t.notsubset=713;t.propersubset=713;t.reflexsubset=713;t.element=713;t.notelement=713;t.angle=768;t.gradient=713;t.registerserif=790;t.copyrightserif=790;t.trademarkserif=890;t.product=823;t.radical=549;t.dotmath=250;t.logicalnot=713;t.logicaland=603;t.logicalor=603;t.arrowdblboth=1042;t.arrowdblleft=987;t.arrowdblup=603;t.arrowdblright=987;t.arrowdbldown=603;t.lozenge=494;t.angleleft=329;t.registersans=790;t.copyrightsans=790;t.trademarksans=786;t.summation=713;t.parenlefttp=384;t.parenleftex=384;t.parenleftbt=384;t.bracketlefttp=384;t.bracketleftex=384;t.bracketleftbt=384;t.bracelefttp=494;t.braceleftmid=494;t.braceleftbt=494;t.braceex=494;t.angleright=329;t.integral=274;t.integraltp=686;t.integralex=686;t.integralbt=686;t.parenrighttp=384;t.parenrightex=384;t.parenrightbt=384;t.bracketrighttp=384;t.bracketrightex=384;t.bracketrightbt=384;t.bracerighttp=494;t.bracerightmid=494;t.bracerightbt=494;t.apple=790}));t["Times-Roman"]=(0,i.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.quotedbl=408;t.numbersign=500;t.dollar=500;t.percent=833;t.ampersand=778;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=564;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=278;t.semicolon=278;t.less=564;t.equal=564;t.greater=564;t.question=444;t.at=921;t.A=722;t.B=667;t.C=667;t.D=722;t.E=611;t.F=556;t.G=722;t.H=722;t.I=333;t.J=389;t.K=722;t.L=611;t.M=889;t.N=722;t.O=722;t.P=556;t.Q=722;t.R=667;t.S=556;t.T=611;t.U=722;t.V=722;t.W=944;t.X=722;t.Y=722;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=469;t.underscore=500;t.quoteleft=333;t.a=444;t.b=500;t.c=444;t.d=500;t.e=444;t.f=333;t.g=500;t.h=500;t.i=278;t.j=278;t.k=500;t.l=278;t.m=778;t.n=500;t.o=500;t.p=500;t.q=500;t.r=333;t.s=389;t.t=278;t.u=500;t.v=500;t.w=722;t.x=500;t.y=500;t.z=444;t.braceleft=480;t.bar=200;t.braceright=480;t.asciitilde=541;t.exclamdown=333;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=180;t.quotedblleft=444;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=556;t.fl=556;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=453;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=444;t.quotedblright=444;t.guillemotright=500;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=444;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=889;t.ordfeminine=276;t.Lslash=611;t.Oslash=722;t.OE=889;t.ordmasculine=310;t.ae=667;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=722;t.germandbls=500;t.Idieresis=333;t.eacute=444;t.abreve=444;t.uhungarumlaut=500;t.ecaron=444;t.Ydieresis=722;t.divide=564;t.Yacute=722;t.Acircumflex=722;t.aacute=444;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=444;t.Uacute=722;t.uogonek=500;t.Edieresis=611;t.Dcroat=722;t.commaaccent=250;t.copyright=760;t.Emacron=611;t.ccaron=444;t.aring=444;t.Ncommaaccent=722;t.lacute=278;t.agrave=444;t.Tcommaaccent=611;t.Cacute=667;t.atilde=444;t.Edotaccent=611;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=471;t.Rcaron=667;t.Gcommaaccent=722;t.ucircumflex=500;t.acircumflex=444;t.Amacron=722;t.rcaron=333;t.ccedilla=444;t.Zdotaccent=611;t.Thorn=556;t.Omacron=722;t.Racute=667;t.Sacute=556;t.dcaron=588;t.Umacron=722;t.uring=500;t.threesuperior=300;t.Ograve=722;t.Agrave=722;t.Abreve=722;t.multiply=564;t.uacute=500;t.Tcaron=611;t.partialdiff=476;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=611;t.adieresis=444;t.edieresis=444;t.cacute=444;t.nacute=500;t.umacron=500;t.Ncaron=722;t.Iacute=333;t.plusminus=564;t.brokenbar=200;t.registered=760;t.Gbreve=722;t.Idotaccent=333;t.summation=600;t.Egrave=611;t.racute=333;t.omacron=500;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=667;t.lcommaaccent=278;t.tcaron=326;t.eogonek=444;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=444;t.zacute=444;t.iogonek=278;t.Oacute=722;t.oacute=500;t.amacron=444;t.sacute=389;t.idieresis=278;t.Ocircumflex=722;t.Ugrave=722;t.Delta=612;t.thorn=500;t.twosuperior=300;t.Odieresis=722;t.mu=500;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=611;t.dcroat=500;t.threequarters=750;t.Scedilla=556;t.lcaron=344;t.Kcommaaccent=722;t.Lacute=611;t.trademark=980;t.edotaccent=444;t.Igrave=333;t.Imacron=333;t.Lcaron=611;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=500;t.Uhungarumlaut=722;t.Eacute=611;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=556;t.Scommaaccent=556;t.Ohungarumlaut=722;t.degree=400;t.ograve=500;t.Ccaron=667;t.ugrave=500;t.radical=453;t.Dcaron=722;t.rcommaaccent=333;t.Ntilde=722;t.otilde=500;t.Rcommaaccent=667;t.Lcommaaccent=611;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=722;t.zdotaccent=444;t.Ecaron=611;t.Iogonek=333;t.kcommaaccent=500;t.minus=564;t.Icircumflex=333;t.ncaron=500;t.tcommaaccent=278;t.logicalnot=564;t.odieresis=500;t.udieresis=500;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=444;t.ncommaaccent=500;t.onesuperior=300;t.imacron=278;t.Euro=500}));t["Times-Bold"]=(0,i.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.quotedbl=555;t.numbersign=500;t.dollar=500;t.percent=1e3;t.ampersand=833;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=570;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=333;t.semicolon=333;t.less=570;t.equal=570;t.greater=570;t.question=500;t.at=930;t.A=722;t.B=667;t.C=722;t.D=722;t.E=667;t.F=611;t.G=778;t.H=778;t.I=389;t.J=500;t.K=778;t.L=667;t.M=944;t.N=722;t.O=778;t.P=611;t.Q=778;t.R=722;t.S=556;t.T=667;t.U=722;t.V=722;t.W=1e3;t.X=722;t.Y=722;t.Z=667;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=581;t.underscore=500;t.quoteleft=333;t.a=500;t.b=556;t.c=444;t.d=556;t.e=444;t.f=333;t.g=500;t.h=556;t.i=278;t.j=333;t.k=556;t.l=278;t.m=833;t.n=556;t.o=500;t.p=556;t.q=556;t.r=444;t.s=389;t.t=333;t.u=556;t.v=500;t.w=722;t.x=500;t.y=500;t.z=444;t.braceleft=394;t.bar=220;t.braceright=394;t.asciitilde=520;t.exclamdown=333;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=278;t.quotedblleft=500;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=556;t.fl=556;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=540;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=500;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=500;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=1e3;t.ordfeminine=300;t.Lslash=667;t.Oslash=778;t.OE=1e3;t.ordmasculine=330;t.ae=722;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=722;t.germandbls=556;t.Idieresis=389;t.eacute=444;t.abreve=500;t.uhungarumlaut=556;t.ecaron=444;t.Ydieresis=722;t.divide=570;t.Yacute=722;t.Acircumflex=722;t.aacute=500;t.Ucircumflex=722;t.yacute=500;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=500;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=747;t.Emacron=667;t.ccaron=444;t.aring=500;t.Ncommaaccent=722;t.lacute=278;t.agrave=500;t.Tcommaaccent=667;t.Cacute=722;t.atilde=500;t.Edotaccent=667;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=494;t.Rcaron=722;t.Gcommaaccent=778;t.ucircumflex=556;t.acircumflex=500;t.Amacron=722;t.rcaron=444;t.ccedilla=444;t.Zdotaccent=667;t.Thorn=611;t.Omacron=778;t.Racute=722;t.Sacute=556;t.dcaron=672;t.Umacron=722;t.uring=556;t.threesuperior=300;t.Ograve=778;t.Agrave=722;t.Abreve=722;t.multiply=570;t.uacute=556;t.Tcaron=667;t.partialdiff=494;t.ydieresis=500;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=500;t.edieresis=444;t.cacute=444;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=389;t.plusminus=570;t.brokenbar=220;t.registered=747;t.Gbreve=778;t.Idotaccent=389;t.summation=600;t.Egrave=667;t.racute=444;t.omacron=500;t.Zacute=667;t.Zcaron=667;t.greaterequal=549;t.Eth=722;t.Ccedilla=722;t.lcommaaccent=278;t.tcaron=416;t.eogonek=444;t.Uogonek=722;t.Aacute=722;t.Adieresis=722;t.egrave=444;t.zacute=444;t.iogonek=278;t.Oacute=778;t.oacute=500;t.amacron=500;t.sacute=389;t.idieresis=278;t.Ocircumflex=778;t.Ugrave=722;t.Delta=612;t.thorn=556;t.twosuperior=300;t.Odieresis=778;t.mu=556;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=667;t.dcroat=556;t.threequarters=750;t.Scedilla=556;t.lcaron=394;t.Kcommaaccent=778;t.Lacute=667;t.trademark=1e3;t.edotaccent=444;t.Igrave=389;t.Imacron=389;t.Lcaron=667;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=556;t.Scommaaccent=556;t.Ohungarumlaut=778;t.degree=400;t.ograve=500;t.Ccaron=722;t.ugrave=556;t.radical=549;t.Dcaron=722;t.rcommaaccent=444;t.Ntilde=722;t.otilde=500;t.Rcommaaccent=722;t.Lcommaaccent=667;t.Atilde=722;t.Aogonek=722;t.Aring=722;t.Otilde=778;t.zdotaccent=444;t.Ecaron=667;t.Iogonek=389;t.kcommaaccent=556;t.minus=570;t.Icircumflex=389;t.ncaron=556;t.tcommaaccent=333;t.logicalnot=570;t.odieresis=500;t.udieresis=556;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=444;t.ncommaaccent=556;t.onesuperior=300;t.imacron=278;t.Euro=500}));t["Times-BoldItalic"]=(0,i.getLookupTableFactory)((function(t){t.space=250;t.exclam=389;t.quotedbl=555;t.numbersign=500;t.dollar=500;t.percent=833;t.ampersand=778;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=570;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=333;t.semicolon=333;t.less=570;t.equal=570;t.greater=570;t.question=500;t.at=832;t.A=667;t.B=667;t.C=667;t.D=722;t.E=667;t.F=667;t.G=722;t.H=778;t.I=389;t.J=500;t.K=667;t.L=611;t.M=889;t.N=722;t.O=722;t.P=611;t.Q=722;t.R=667;t.S=556;t.T=611;t.U=722;t.V=667;t.W=889;t.X=667;t.Y=611;t.Z=611;t.bracketleft=333;t.backslash=278;t.bracketright=333;t.asciicircum=570;t.underscore=500;t.quoteleft=333;t.a=500;t.b=500;t.c=444;t.d=500;t.e=444;t.f=333;t.g=500;t.h=556;t.i=278;t.j=278;t.k=500;t.l=278;t.m=778;t.n=556;t.o=500;t.p=500;t.q=500;t.r=389;t.s=389;t.t=278;t.u=556;t.v=444;t.w=667;t.x=500;t.y=444;t.z=389;t.braceleft=348;t.bar=220;t.braceright=348;t.asciitilde=570;t.exclamdown=389;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=278;t.quotedblleft=500;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=556;t.fl=556;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=500;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=500;t.quotedblright=500;t.guillemotright=500;t.ellipsis=1e3;t.perthousand=1e3;t.questiondown=500;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=1e3;t.AE=944;t.ordfeminine=266;t.Lslash=611;t.Oslash=722;t.OE=944;t.ordmasculine=300;t.ae=722;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=722;t.germandbls=500;t.Idieresis=389;t.eacute=444;t.abreve=500;t.uhungarumlaut=556;t.ecaron=444;t.Ydieresis=611;t.divide=570;t.Yacute=611;t.Acircumflex=667;t.aacute=500;t.Ucircumflex=722;t.yacute=444;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=500;t.Uacute=722;t.uogonek=556;t.Edieresis=667;t.Dcroat=722;t.commaaccent=250;t.copyright=747;t.Emacron=667;t.ccaron=444;t.aring=500;t.Ncommaaccent=722;t.lacute=278;t.agrave=500;t.Tcommaaccent=611;t.Cacute=667;t.atilde=500;t.Edotaccent=667;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=494;t.Rcaron=667;t.Gcommaaccent=722;t.ucircumflex=556;t.acircumflex=500;t.Amacron=667;t.rcaron=389;t.ccedilla=444;t.Zdotaccent=611;t.Thorn=611;t.Omacron=722;t.Racute=667;t.Sacute=556;t.dcaron=608;t.Umacron=722;t.uring=556;t.threesuperior=300;t.Ograve=722;t.Agrave=667;t.Abreve=667;t.multiply=570;t.uacute=556;t.Tcaron=611;t.partialdiff=494;t.ydieresis=444;t.Nacute=722;t.icircumflex=278;t.Ecircumflex=667;t.adieresis=500;t.edieresis=444;t.cacute=444;t.nacute=556;t.umacron=556;t.Ncaron=722;t.Iacute=389;t.plusminus=570;t.brokenbar=220;t.registered=747;t.Gbreve=722;t.Idotaccent=389;t.summation=600;t.Egrave=667;t.racute=389;t.omacron=500;t.Zacute=611;t.Zcaron=611;t.greaterequal=549;t.Eth=722;t.Ccedilla=667;t.lcommaaccent=278;t.tcaron=366;t.eogonek=444;t.Uogonek=722;t.Aacute=667;t.Adieresis=667;t.egrave=444;t.zacute=389;t.iogonek=278;t.Oacute=722;t.oacute=500;t.amacron=500;t.sacute=389;t.idieresis=278;t.Ocircumflex=722;t.Ugrave=722;t.Delta=612;t.thorn=500;t.twosuperior=300;t.Odieresis=722;t.mu=576;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=667;t.dcroat=500;t.threequarters=750;t.Scedilla=556;t.lcaron=382;t.Kcommaaccent=667;t.Lacute=611;t.trademark=1e3;t.edotaccent=444;t.Igrave=389;t.Imacron=389;t.Lcaron=611;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=556;t.Uhungarumlaut=722;t.Eacute=667;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=556;t.Scommaaccent=556;t.Ohungarumlaut=722;t.degree=400;t.ograve=500;t.Ccaron=667;t.ugrave=556;t.radical=549;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=722;t.otilde=500;t.Rcommaaccent=667;t.Lcommaaccent=611;t.Atilde=667;t.Aogonek=667;t.Aring=667;t.Otilde=722;t.zdotaccent=389;t.Ecaron=667;t.Iogonek=389;t.kcommaaccent=500;t.minus=606;t.Icircumflex=389;t.ncaron=556;t.tcommaaccent=278;t.logicalnot=606;t.odieresis=500;t.udieresis=556;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=389;t.ncommaaccent=556;t.onesuperior=300;t.imacron=278;t.Euro=500}));t["Times-Italic"]=(0,i.getLookupTableFactory)((function(t){t.space=250;t.exclam=333;t.quotedbl=420;t.numbersign=500;t.dollar=500;t.percent=833;t.ampersand=778;t.quoteright=333;t.parenleft=333;t.parenright=333;t.asterisk=500;t.plus=675;t.comma=250;t.hyphen=333;t.period=250;t.slash=278;t.zero=500;t.one=500;t.two=500;t.three=500;t.four=500;t.five=500;t.six=500;t.seven=500;t.eight=500;t.nine=500;t.colon=333;t.semicolon=333;t.less=675;t.equal=675;t.greater=675;t.question=500;t.at=920;t.A=611;t.B=611;t.C=667;t.D=722;t.E=611;t.F=611;t.G=722;t.H=722;t.I=333;t.J=444;t.K=667;t.L=556;t.M=833;t.N=667;t.O=722;t.P=611;t.Q=722;t.R=611;t.S=500;t.T=556;t.U=722;t.V=611;t.W=833;t.X=611;t.Y=556;t.Z=556;t.bracketleft=389;t.backslash=278;t.bracketright=389;t.asciicircum=422;t.underscore=500;t.quoteleft=333;t.a=500;t.b=500;t.c=444;t.d=500;t.e=444;t.f=278;t.g=500;t.h=500;t.i=278;t.j=278;t.k=444;t.l=278;t.m=722;t.n=500;t.o=500;t.p=500;t.q=500;t.r=389;t.s=389;t.t=278;t.u=500;t.v=444;t.w=667;t.x=444;t.y=444;t.z=389;t.braceleft=400;t.bar=275;t.braceright=400;t.asciitilde=541;t.exclamdown=389;t.cent=500;t.sterling=500;t.fraction=167;t.yen=500;t.florin=500;t.section=500;t.currency=500;t.quotesingle=214;t.quotedblleft=556;t.guillemotleft=500;t.guilsinglleft=333;t.guilsinglright=333;t.fi=500;t.fl=500;t.endash=500;t.dagger=500;t.daggerdbl=500;t.periodcentered=250;t.paragraph=523;t.bullet=350;t.quotesinglbase=333;t.quotedblbase=556;t.quotedblright=556;t.guillemotright=500;t.ellipsis=889;t.perthousand=1e3;t.questiondown=500;t.grave=333;t.acute=333;t.circumflex=333;t.tilde=333;t.macron=333;t.breve=333;t.dotaccent=333;t.dieresis=333;t.ring=333;t.cedilla=333;t.hungarumlaut=333;t.ogonek=333;t.caron=333;t.emdash=889;t.AE=889;t.ordfeminine=276;t.Lslash=556;t.Oslash=722;t.OE=944;t.ordmasculine=310;t.ae=667;t.dotlessi=278;t.lslash=278;t.oslash=500;t.oe=667;t.germandbls=500;t.Idieresis=333;t.eacute=444;t.abreve=500;t.uhungarumlaut=500;t.ecaron=444;t.Ydieresis=556;t.divide=675;t.Yacute=556;t.Acircumflex=611;t.aacute=500;t.Ucircumflex=722;t.yacute=444;t.scommaaccent=389;t.ecircumflex=444;t.Uring=722;t.Udieresis=722;t.aogonek=500;t.Uacute=722;t.uogonek=500;t.Edieresis=611;t.Dcroat=722;t.commaaccent=250;t.copyright=760;t.Emacron=611;t.ccaron=444;t.aring=500;t.Ncommaaccent=667;t.lacute=278;t.agrave=500;t.Tcommaaccent=556;t.Cacute=667;t.atilde=500;t.Edotaccent=611;t.scaron=389;t.scedilla=389;t.iacute=278;t.lozenge=471;t.Rcaron=611;t.Gcommaaccent=722;t.ucircumflex=500;t.acircumflex=500;t.Amacron=611;t.rcaron=389;t.ccedilla=444;t.Zdotaccent=556;t.Thorn=611;t.Omacron=722;t.Racute=611;t.Sacute=500;t.dcaron=544;t.Umacron=722;t.uring=500;t.threesuperior=300;t.Ograve=722;t.Agrave=611;t.Abreve=611;t.multiply=675;t.uacute=500;t.Tcaron=556;t.partialdiff=476;t.ydieresis=444;t.Nacute=667;t.icircumflex=278;t.Ecircumflex=611;t.adieresis=500;t.edieresis=444;t.cacute=444;t.nacute=500;t.umacron=500;t.Ncaron=667;t.Iacute=333;t.plusminus=675;t.brokenbar=275;t.registered=760;t.Gbreve=722;t.Idotaccent=333;t.summation=600;t.Egrave=611;t.racute=389;t.omacron=500;t.Zacute=556;t.Zcaron=556;t.greaterequal=549;t.Eth=722;t.Ccedilla=667;t.lcommaaccent=278;t.tcaron=300;t.eogonek=444;t.Uogonek=722;t.Aacute=611;t.Adieresis=611;t.egrave=444;t.zacute=389;t.iogonek=278;t.Oacute=722;t.oacute=500;t.amacron=500;t.sacute=389;t.idieresis=278;t.Ocircumflex=722;t.Ugrave=722;t.Delta=612;t.thorn=500;t.twosuperior=300;t.Odieresis=722;t.mu=500;t.igrave=278;t.ohungarumlaut=500;t.Eogonek=611;t.dcroat=500;t.threequarters=750;t.Scedilla=500;t.lcaron=300;t.Kcommaaccent=667;t.Lacute=556;t.trademark=980;t.edotaccent=444;t.Igrave=333;t.Imacron=333;t.Lcaron=611;t.onehalf=750;t.lessequal=549;t.ocircumflex=500;t.ntilde=500;t.Uhungarumlaut=722;t.Eacute=611;t.emacron=444;t.gbreve=500;t.onequarter=750;t.Scaron=500;t.Scommaaccent=500;t.Ohungarumlaut=722;t.degree=400;t.ograve=500;t.Ccaron=667;t.ugrave=500;t.radical=453;t.Dcaron=722;t.rcommaaccent=389;t.Ntilde=667;t.otilde=500;t.Rcommaaccent=611;t.Lcommaaccent=556;t.Atilde=611;t.Aogonek=611;t.Aring=611;t.Otilde=722;t.zdotaccent=389;t.Ecaron=611;t.Iogonek=333;t.kcommaaccent=444;t.minus=675;t.Icircumflex=333;t.ncaron=500;t.tcommaaccent=278;t.logicalnot=675;t.odieresis=500;t.udieresis=500;t.notequal=549;t.gcommaaccent=500;t.eth=500;t.zcaron=389;t.ncommaaccent=500;t.onesuperior=300;t.imacron=278;t.Euro=500}));t.ZapfDingbats=(0,i.getLookupTableFactory)((function(t){t.space=278;t.a1=974;t.a2=961;t.a202=974;t.a3=980;t.a4=719;t.a5=789;t.a119=790;t.a118=791;t.a117=690;t.a11=960;t.a12=939;t.a13=549;t.a14=855;t.a15=911;t.a16=933;t.a105=911;t.a17=945;t.a18=974;t.a19=755;t.a20=846;t.a21=762;t.a22=761;t.a23=571;t.a24=677;t.a25=763;t.a26=760;t.a27=759;t.a28=754;t.a6=494;t.a7=552;t.a8=537;t.a9=577;t.a10=692;t.a29=786;t.a30=788;t.a31=788;t.a32=790;t.a33=793;t.a34=794;t.a35=816;t.a36=823;t.a37=789;t.a38=841;t.a39=823;t.a40=833;t.a41=816;t.a42=831;t.a43=923;t.a44=744;t.a45=723;t.a46=749;t.a47=790;t.a48=792;t.a49=695;t.a50=776;t.a51=768;t.a52=792;t.a53=759;t.a54=707;t.a55=708;t.a56=682;t.a57=701;t.a58=826;t.a59=815;t.a60=789;t.a61=789;t.a62=707;t.a63=687;t.a64=696;t.a65=689;t.a66=786;t.a67=787;t.a68=713;t.a69=791;t.a70=785;t.a71=791;t.a72=873;t.a73=761;t.a74=762;t.a203=762;t.a75=759;t.a204=759;t.a76=892;t.a77=892;t.a78=788;t.a79=784;t.a81=438;t.a82=138;t.a83=277;t.a84=415;t.a97=392;t.a98=392;t.a99=668;t.a100=668;t.a89=390;t.a90=390;t.a93=317;t.a94=317;t.a91=276;t.a92=276;t.a205=509;t.a85=509;t.a206=410;t.a86=410;t.a87=234;t.a88=234;t.a95=334;t.a96=334;t.a101=732;t.a102=544;t.a103=544;t.a104=910;t.a106=667;t.a107=760;t.a108=760;t.a112=776;t.a111=595;t.a110=694;t.a109=626;t.a120=788;t.a121=788;t.a122=788;t.a123=788;t.a124=788;t.a125=788;t.a126=788;t.a127=788;t.a128=788;t.a129=788;t.a130=788;t.a131=788;t.a132=788;t.a133=788;t.a134=788;t.a135=788;t.a136=788;t.a137=788;t.a138=788;t.a139=788;t.a140=788;t.a141=788;t.a142=788;t.a143=788;t.a144=788;t.a145=788;t.a146=788;t.a147=788;t.a148=788;t.a149=788;t.a150=788;t.a151=788;t.a152=788;t.a153=788;t.a154=788;t.a155=788;t.a156=788;t.a157=788;t.a158=788;t.a159=788;t.a160=894;t.a161=838;t.a163=1016;t.a164=458;t.a196=748;t.a165=924;t.a192=748;t.a166=918;t.a167=927;t.a168=928;t.a169=928;t.a170=834;t.a171=873;t.a172=828;t.a173=924;t.a162=924;t.a174=917;t.a175=930;t.a176=931;t.a177=463;t.a178=883;t.a179=836;t.a193=836;t.a180=867;t.a199=867;t.a181=696;t.a200=696;t.a182=874;t.a201=874;t.a183=760;t.a184=946;t.a197=771;t.a185=865;t.a194=771;t.a198=888;t.a186=967;t.a195=888;t.a187=831;t.a188=873;t.a189=927;t.a190=970;t.a191=918}))}));e.getMetrics=n;const r=(0,i.getLookupTableFactory)((function(t){t.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426};t["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439};t["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426};t["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426};t.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523};t["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532};t["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523};t["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532};t["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450};t["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461};t["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441};t["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462};t.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN};t.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}}));e.getFontBasicMetrics=r},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.GlyfTable=void 0;const s=1<<0;const i=1<<1;const n=1<<2;const r=1<<3;const o=1<<4;const a=1<<5;const c=1<<6;const l=1<<0;const h=1<<1;const u=1<<3;const f=1<<5;const d=1<<6;const p=1<<7;const g=1<<8;class m{constructor({glyfTable:t,isGlyphLocationsLong:e,locaTable:s,numGlyphs:i}){this.glyphs=[];const n=new DataView(s.buffer,s.byteOffset,s.byteLength);const r=new DataView(t.buffer,t.byteOffset,t.byteLength);const o=e?4:2;let a=e?n.getUint32(0):2*n.getUint16(0);let c=0;for(let t=0;t<i;t++){c+=o;const t=e?n.getUint32(c):2*n.getUint16(c);if(t===a){this.glyphs.push(new w({}));continue}const s=w.parse(a,r);this.glyphs.push(s);a=t}}getSize(){return this.glyphs.reduce(((t,e)=>{const s=e.getSize();return t+(s+3&~3)}),0)}write(){const t=this.getSize();const e=new DataView(new ArrayBuffer(t));const s=t>131070;const i=s?4:2;const n=new DataView(new ArrayBuffer((this.glyphs.length+1)*i));if(s){n.setUint32(0,0)}else{n.setUint16(0,0)}let r=0;let o=0;for(const t of this.glyphs){r+=t.write(r,e);r=r+3&~3;o+=i;if(s){n.setUint32(o,r)}else{n.setUint16(o,r>>1)}}return{isLocationLong:s,loca:new Uint8Array(n.buffer),glyf:new Uint8Array(e.buffer)}}scale(t){for(let e=0,s=this.glyphs.length;e<s;e++){this.glyphs[e].scale(t[e])}}}e.GlyfTable=m;class w{constructor({header:t=null,simple:e=null,composites:s=null}){this.header=t;this.simple=e;this.composites=s}static parse(t,e){const[s,i]=b.parse(t,e);t+=s;if(i.numberOfContours<0){const s=[];while(true){const[i,n]=v.parse(t,e);t+=i;s.push(n);if(!(n.flags&f)){break}}return new w({header:i,composites:s})}const n=A.parse(t,e,i.numberOfContours);return new w({header:i,simple:n})}getSize(){if(!this.header){return 0}const t=this.simple?this.simple.getSize():this.composites.reduce(((t,e)=>t+e.getSize()),0);return this.header.getSize()+t}write(t,e){if(!this.header){return 0}const s=t;t+=this.header.write(t,e);if(this.simple){t+=this.simple.write(t,e)}else{for(const s of this.composites){t+=s.write(t,e)}}return t-s}scale(t){if(!this.header){return}const e=(this.header.xMin+this.header.xMax)/2;this.header.scale(e,t);if(this.simple){this.simple.scale(e,t)}else{for(const s of this.composites){s.scale(e,t)}}}}class b{constructor({numberOfContours:t,xMin:e,yMin:s,xMax:i,yMax:n}){this.numberOfContours=t;this.xMin=e;this.yMin=s;this.xMax=i;this.yMax=n}static parse(t,e){return[10,new b({numberOfContours:e.getInt16(t),xMin:e.getInt16(t+2),yMin:e.getInt16(t+4),xMax:e.getInt16(t+6),yMax:e.getInt16(t+8)})]}getSize(){return 10}write(t,e){e.setInt16(t,this.numberOfContours);e.setInt16(t+2,this.xMin);e.setInt16(t+4,this.yMin);e.setInt16(t+6,this.xMax);e.setInt16(t+8,this.yMax);return 10}scale(t,e){this.xMin=Math.round(t+(this.xMin-t)*e);this.xMax=Math.round(t+(this.xMax-t)*e)}}class y{constructor({flags:t,xCoordinates:e,yCoordinates:s}){this.xCoordinates=e;this.yCoordinates=s;this.flags=t}}class A{constructor({contours:t,instructions:e}){this.contours=t;this.instructions=e}static parse(t,e,l){const h=[];for(let s=0;s<l;s++){const s=e.getUint16(t);t+=2;h.push(s)}const u=h[l-1]+1;const f=e.getUint16(t);t+=2;const d=new Uint8Array(e).slice(t,t+f);t+=f;const p=[];for(let s=0;s<u;t++,s++){let i=e.getUint8(t);p.push(i);if(i&r){const n=e.getUint8(++t);i^=r;for(let t=0;t<n;t++){p.push(i)}s+=n}}const g=[];let m=[];let w=[];let b=[];const v=[];let x=0;let k=0;for(let s=0;s<u;s++){const n=p[s];if(n&i){const s=e.getUint8(t++);k+=n&o?s:-s;m.push(k)}else if(n&o){m.push(k)}else{k+=e.getInt16(t);t+=2;m.push(k)}if(h[x]===s){x++;g.push(m);m=[]}}k=0;x=0;for(let i=0;i<u;i++){const r=p[i];if(r&n){const s=e.getUint8(t++);k+=r&a?s:-s;w.push(k)}else if(r&a){w.push(k)}else{k+=e.getInt16(t);t+=2;w.push(k)}b.push(r&s|r&c);if(h[x]===i){m=g[x];x++;v.push(new y({flags:b,xCoordinates:m,yCoordinates:w}));w=[];b=[]}}return new A({contours:v,instructions:d})}getSize(){let t=this.contours.length*2+2+this.instructions.length;let e=0;let s=0;for(const i of this.contours){t+=i.flags.length;for(let n=0,r=i.xCoordinates.length;n<r;n++){const r=i.xCoordinates[n];const o=i.yCoordinates[n];let a=Math.abs(r-e);if(a>255){t+=2}else if(a>0){t+=1}e=r;a=Math.abs(o-s);if(a>255){t+=2}else if(a>0){t+=1}s=o}}return t}write(t,e){const s=t;const r=[];const c=[];const l=[];let h=0;let u=0;for(const s of this.contours){for(let t=0,e=s.xCoordinates.length;t<e;t++){let e=s.flags[t];const f=s.xCoordinates[t];let d=f-h;if(d===0){e|=o;r.push(0)}else{const t=Math.abs(d);if(t<=255){e|=d>=0?i|o:i;r.push(t)}else{r.push(d)}}h=f;const p=s.yCoordinates[t];d=p-u;if(d===0){e|=a;c.push(0)}else{const t=Math.abs(d);if(t<=255){e|=d>=0?n|a:n;c.push(t)}else{c.push(d)}}u=p;l.push(e)}e.setUint16(t,r.length-1);t+=2}e.setUint16(t,this.instructions.length);t+=2;if(this.instructions.length){new Uint8Array(e.buffer,0,e.buffer.byteLength).set(this.instructions,t);t+=this.instructions.length}for(const s of l){e.setUint8(t++,s)}for(let s=0,n=r.length;s<n;s++){const n=r[s];const a=l[s];if(a&i){e.setUint8(t++,n)}else if(!(a&o)){e.setInt16(t,n);t+=2}}for(let s=0,i=c.length;s<i;s++){const i=c[s];const r=l[s];if(r&n){e.setUint8(t++,i)}else if(!(r&a)){e.setInt16(t,i);t+=2}}return t-s}scale(t,e){for(const s of this.contours){if(s.xCoordinates.length===0){continue}for(let i=0,n=s.xCoordinates.length;i<n;i++){s.xCoordinates[i]=Math.round(t+(s.xCoordinates[i]-t)*e)}}}}class v{constructor({flags:t,glyphIndex:e,argument1:s,argument2:i,transf:n,instructions:r}){this.flags=t;this.glyphIndex=e;this.argument1=s;this.argument2=i;this.transf=n;this.instructions=r}static parse(t,e){const s=t;const i=[];let n=e.getUint16(t);const r=e.getUint16(t+2);t+=4;let o,a;if(n&l){if(n&h){o=e.getInt16(t);a=e.getInt16(t+2)}else{o=e.getUint16(t);a=e.getUint16(t+2)}t+=4;n^=l}else{if(n&h){o=e.getInt8(t);a=e.getInt8(t+1)}else{o=e.getUint8(t);a=e.getUint8(t+1)}t+=2}if(n&u){i.push(e.getUint16(t));t+=2}else if(n&d){i.push(e.getUint16(t),e.getUint16(t+2));t+=4}else if(n&p){i.push(e.getUint16(t),e.getUint16(t+2),e.getUint16(t+4),e.getUint16(t+6));t+=8}let c=null;if(n&g){const s=e.getUint16(t);t+=2;c=new Uint8Array(e).slice(t,t+s);t+=s}return[t-s,new v({flags:n,glyphIndex:r,argument1:o,argument2:a,transf:i,instructions:c})]}getSize(){let t=2+2+this.transf.length*2;if(this.flags&g){t+=2+this.instructions.length}t+=2;if(this.flags&2){if(!(this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127)){t+=2}}else if(!(this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255)){t+=2}return t}write(t,e){const s=t;if(this.flags&h){if(!(this.argument1>=-128&&this.argument1<=127&&this.argument2>=-128&&this.argument2<=127)){this.flags|=l}}else if(!(this.argument1>=0&&this.argument1<=255&&this.argument2>=0&&this.argument2<=255)){this.flags|=l}e.setUint16(t,this.flags);e.setUint16(t+2,this.glyphIndex);t+=4;if(this.flags&l){if(this.flags&h){e.setInt16(t,this.argument1);e.setInt16(t+2,this.argument2)}else{e.setUint16(t,this.argument1);e.setUint16(t+2,this.argument2)}t+=4}else{e.setUint8(t,this.argument1);e.setUint8(t+1,this.argument2);t+=2}if(this.flags&g){e.setUint16(t,this.instructions.length);t+=2;if(this.instructions.length){new Uint8Array(e.buffer,0,e.buffer.byteLength).set(this.instructions,t);t+=this.instructions.length}}return t-s}scale(t,e){}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.OpenTypeFileBuilder=void 0;var i=s(3);var n=s(2);function r(t,e,s){t[e]=s>>8&255;t[e+1]=s&255}function o(t,e,s){t[e]=s>>24&255;t[e+1]=s>>16&255;t[e+2]=s>>8&255;t[e+3]=s&255}function a(t,e,s){if(s instanceof Uint8Array){t.set(s,e)}else if(typeof s==="string"){for(let i=0,n=s.length;i<n;i++){t[e++]=s.charCodeAt(i)&255}}else{for(const i of s){t[e++]=i&255}}}const c=12;const l=16;class h{constructor(t){this.sfnt=t;this.tables=Object.create(null)}static getSearchParams(t,e){let s=1,i=0;while((s^t)>s){s<<=1;i++}const n=s*e;return{range:n,entry:i,rangeShift:e*t-n}}toArray(){let t=this.sfnt;const e=this.tables;const s=Object.keys(e);s.sort();const u=s.length;let f,d,p,g,m;let w=c+u*l;const b=[w];for(f=0;f<u;f++){g=e[s[f]];const t=(g.length+3&~3)>>>0;w+=t;b.push(w)}const y=new Uint8Array(w);for(f=0;f<u;f++){g=e[s[f]];a(y,b[f],g)}if(t==="true"){t=(0,n.string32)(65536)}y[0]=t.charCodeAt(0)&255;y[1]=t.charCodeAt(1)&255;y[2]=t.charCodeAt(2)&255;y[3]=t.charCodeAt(3)&255;r(y,4,u);const A=h.getSearchParams(u,16);r(y,6,A.range);r(y,8,A.entry);r(y,10,A.rangeShift);w=c;for(f=0;f<u;f++){m=s[f];y[w]=m.charCodeAt(0)&255;y[w+1]=m.charCodeAt(1)&255;y[w+2]=m.charCodeAt(2)&255;y[w+3]=m.charCodeAt(3)&255;let t=0;for(d=b[f],p=b[f+1];d<p;d+=4){const e=(0,i.readUint32)(y,d);t=t+e>>>0}o(y,w+4,t);o(y,w+8,b[f]);o(y,w+12,e[m].length);w+=l}return y}addTable(t,e){if(t in this.tables){throw new Error("Table "+t+" already exists")}this.tables[t]=e}}e.OpenTypeFileBuilder=h},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.Type1Font=void 0;var i=s(35);var n=s(2);var r=s(38);var o=s(3);var a=s(8);var c=s(49);function l(t,e,s){const i=t.length;const n=e.length;const r=i-n;let a=s,c=false;while(a<r){let s=0;while(s<n&&t[a+s]===e[s]){s++}if(s>=n){a+=s;while(a<i&&(0,o.isWhiteSpace)(t[a])){a++}c=true;break}a++}return{found:c,length:a}}function h(t,e){const s=[101,101,120,101,99];const i=t.pos;let r,o,c;try{r=t.getBytes(e);o=r.length}catch{}if(o===e){c=l(r,s,e-2*s.length);if(c.found&&c.length===e){return{stream:new a.Stream(r),length:e}}}(0,n.warn)('Invalid "Length1" property in Type1 font -- trying to recover.');t.pos=i;const h=2048;let u;while(true){const e=t.peekBytes(h);c=l(e,s,0);if(c.length===0){break}t.pos+=c.length;if(c.found){u=t.pos-i;break}}t.pos=i;if(u){return{stream:new a.Stream(t.getBytes(u)),length:u}}(0,n.warn)('Unable to recover "Length1" property in Type1 font -- using as is.');return{stream:new a.Stream(t.getBytes(e)),length:e}}function u(t,e){const s=t.getBytes();if(s.length===0){throw new n.FormatError("getEexecBlock - no font program found.")}return{stream:new a.Stream(s),length:s.length}}class f{constructor(t,e,s){const i=6;let n=s.length1;let o=e.peekBytes(i);const a=o[0]===128&&o[1]===1;if(a){e.skip(i);n=o[5]<<24|o[4]<<16|o[3]<<8|o[2]}const l=h(e,n);const f=new c.Type1Parser(l.stream,false,r.SEAC_ANALYSIS_ENABLED);f.extractFontHeader(s);if(a){o=e.getBytes(i)}const d=u(e);const p=new c.Type1Parser(d.stream,true,r.SEAC_ANALYSIS_ENABLED);const g=p.extractFontProgram(s);for(const t in g.properties){s[t]=g.properties[t]}const m=g.charstrings;const w=this.getType2Charstrings(m);const b=this.getType2Subrs(g.subrs);this.charstrings=m;this.data=this.wrap(t,w,this.charstrings,b,s);this.seacs=this.getSeacs(g.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){const t=[".notdef"];for(const{glyphName:e}of this.charstrings){t.push(e)}return t}getGlyphMapping(t){const e=this.charstrings;if(t.composite){const s=Object.create(null);for(let i=0,n=e.length;i<n;i++){const e=t.cMap.charCodeOf(i);s[e]=i+1}return s}const s=[".notdef"];let i,n;for(n=0;n<e.length;n++){s.push(e[n].glyphName)}const o=t.builtInEncoding;if(o){i=Object.create(null);for(const t in o){n=s.indexOf(o[t]);if(n>=0){i[t]=n}}}return(0,r.type1FontGlyphMapping)(t,i,s)}hasGlyphId(t){if(t<0||t>=this.numGlyphs){return false}if(t===0){return true}const e=this.charstrings[t-1];return e.charstring.length>0}getSeacs(t){const e=[];for(let s=0,i=t.length;s<i;s++){const i=t[s];if(i.seac){e[s+1]=i.seac}}return e}getType2Charstrings(t){const e=[];for(const s of t){e.push(s.charstring)}return e}getType2Subrs(t){let e=0;const s=t.length;if(s<1133){e=107}else if(s<33769){e=1131}else{e=32768}const i=[];let n;for(n=0;n<e;n++){i.push([11])}for(n=0;n<s;n++){i.push(t[n])}return i}wrap(t,e,s,n,r){const o=new i.CFF;o.header=new i.CFFHeader(1,0,4,4);o.names=[t];const a=new i.CFFTopDict;a.setByName("version",391);a.setByName("Notice",392);a.setByName("FullName",393);a.setByName("FamilyName",394);a.setByName("Weight",395);a.setByName("Encoding",null);a.setByName("FontMatrix",r.fontMatrix);a.setByName("FontBBox",r.bbox);a.setByName("charset",null);a.setByName("CharStrings",null);a.setByName("Private",null);o.topDict=a;const c=new i.CFFStrings;c.add("Version 0.11");c.add("See original notice");c.add(t);c.add(t);c.add("Medium");o.strings=c;o.globalSubrIndex=new i.CFFIndex;const l=e.length;const h=[".notdef"];let u,f;for(u=0;u<l;u++){const t=s[u].glyphName;const e=i.CFFStandardStrings.indexOf(t);if(e===-1){c.add(t)}h.push(t)}o.charset=new i.CFFCharset(false,0,h);const d=new i.CFFIndex;d.add([139,14]);for(u=0;u<l;u++){d.add(e[u])}o.charStrings=d;const p=new i.CFFPrivateDict;p.setByName("Subrs",null);const g=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(u=0,f=g.length;u<f;u++){const t=g[u];if(!(t in r.privateData)){continue}const e=r.privateData[t];if(Array.isArray(e)){for(let t=e.length-1;t>0;t--){e[t]-=e[t-1]}}p.setByName(t,e)}o.topDict.privateDict=p;const m=new i.CFFIndex;for(u=0,f=n.length;u<f;u++){m.add(n[u])}p.subrsIndex=m;const w=new i.CFFCompiler(o);return w.compile()}}e.Type1Font=f},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.Type1Parser=void 0;var i=s(37);var n=s(3);var r=s(8);var o=s(2);const a=false;const c={hstem:[1],vstem:[3],vmoveto:[4],rlineto:[5],hlineto:[6],vlineto:[7],rrcurveto:[8],callsubr:[10],flex:[12,35],drop:[12,18],endchar:[14],rmoveto:[21],hmoveto:[22],vhcurveto:[30],hvcurveto:[31]};class l{constructor(){this.width=0;this.lsb=0;this.flexing=false;this.output=[];this.stack=[]}convert(t,e,s){const i=t.length;let n=false;let r,a,l;for(let h=0;h<i;h++){let i=t[h];if(i<32){if(i===12){i=(i<<8)+t[++h]}switch(i){case 1:{this.stack=[];break}case 3:{this.stack=[];break}case 4:if(this.flexing){if(this.stack.length<1){n=true;break}const t=this.stack.pop();this.stack.push(0,t);break}n=this.executeCommand(1,c.vmoveto);break;case 5:n=this.executeCommand(2,c.rlineto);break;case 6:n=this.executeCommand(1,c.hlineto);break;case 7:n=this.executeCommand(1,c.vlineto);break;case 8:n=this.executeCommand(6,c.rrcurveto);break;case 9:this.stack=[];break;case 10:if(this.stack.length<1){n=true;break}l=this.stack.pop();if(!e[l]){n=true;break}n=this.convert(e[l],e,s);break;case 11:return n;case 13:if(this.stack.length<2){n=true;break}r=this.stack.pop();a=this.stack.pop();this.lsb=a;this.width=r;this.stack.push(r,a);n=this.executeCommand(2,c.hmoveto);break;case 14:this.output.push(c.endchar[0]);break;case 21:if(this.flexing){break}n=this.executeCommand(2,c.rmoveto);break;case 22:if(this.flexing){this.stack.push(0);break}n=this.executeCommand(1,c.hmoveto);break;case 30:n=this.executeCommand(4,c.vhcurveto);break;case 31:n=this.executeCommand(4,c.hvcurveto);break;case(12<<8)+0:this.stack=[];break;case(12<<8)+1:{this.stack=[];break}case(12<<8)+2:{this.stack=[];break}case(12<<8)+6:if(s){const t=this.stack.at(-5);this.seac=this.stack.splice(-4,4);this.seac[0]+=this.lsb-t;n=this.executeCommand(0,c.endchar)}else{n=this.executeCommand(4,c.endchar)}break;case(12<<8)+7:if(this.stack.length<4){n=true;break}this.stack.pop();r=this.stack.pop();const t=this.stack.pop();a=this.stack.pop();this.lsb=a;this.width=r;this.stack.push(r,a,t);n=this.executeCommand(3,c.rmoveto);break;case(12<<8)+12:if(this.stack.length<2){n=true;break}const h=this.stack.pop();const u=this.stack.pop();this.stack.push(u/h);break;case(12<<8)+16:if(this.stack.length<2){n=true;break}l=this.stack.pop();const f=this.stack.pop();if(l===0&&f===3){const t=this.stack.splice(-17,17);this.stack.push(t[2]+t[0],t[3]+t[1],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14]);n=this.executeCommand(13,c.flex,true);this.flexing=false;this.stack.push(t[15],t[16])}else if(l===1&&f===0){this.flexing=true}break;case(12<<8)+17:break;case(12<<8)+33:this.stack=[];break;default:(0,o.warn)('Unknown type 1 charstring command of "'+i+'"');break}if(n){break}continue}else if(i<=246){i-=139}else if(i<=250){i=(i-247)*256+t[++h]+108}else if(i<=254){i=-((i-251)*256)-t[++h]-108}else{i=(t[++h]&255)<<24|(t[++h]&255)<<16|(t[++h]&255)<<8|(t[++h]&255)<<0}this.stack.push(i)}return n}executeCommand(t,e,s){const i=this.stack.length;if(t>i){return true}const n=i-t;for(let t=n;t<i;t++){let e=this.stack[t];if(Number.isInteger(e)){this.output.push(28,e>>8&255,e&255)}else{e=65536*e|0;this.output.push(255,e>>24&255,e>>16&255,e>>8&255,e&255)}}this.output.push(...e);if(s){this.stack.splice(n,t)}else{this.stack.length=0}return false}}const h=55665;const u=4330;function f(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function d(t,e,s){if(s>=t.length){return new Uint8Array(0)}const i=52845,n=22719;let r=e|0,o,a;for(o=0;o<s;o++){r=(t[o]+r)*i+n&(1<<16)-1}const c=t.length-s;const l=new Uint8Array(c);for(o=s,a=0;a<c;o++,a++){const e=t[o];l[a]=e^r>>8;r=(e+r)*i+n&(1<<16)-1}return l}function p(t,e,s){const i=52845,n=22719;let r=e|0;const o=t.length,a=o>>>1;const c=new Uint8Array(a);let l,h;for(l=0,h=0;l<o;l++){const e=t[l];if(!f(e)){continue}l++;let s;while(l<o&&!f(s=t[l])){l++}if(l<o){const t=parseInt(String.fromCharCode(e,s),16);c[h++]=t^r>>8;r=(t+r)*i+n&(1<<16)-1}}return c.slice(s,h)}function g(t){return t===47||t===91||t===93||t===123||t===125||t===40||t===41}class m{constructor(t,e,s){if(e){const e=t.getBytes();const s=!((f(e[0])||(0,n.isWhiteSpace)(e[0]))&&f(e[1])&&f(e[2])&&f(e[3])&&f(e[4])&&f(e[5])&&f(e[6])&&f(e[7]));t=new r.Stream(s?d(e,h,4):p(e,h,4))}this.seacAnalysisEnabled=!!s;this.stream=t;this.nextChar()}readNumberArray(){this.getToken();const t=[];while(true){const e=this.getToken();if(e===null||e==="]"||e==="}"){break}t.push(parseFloat(e||0))}return t}readNumber(){const t=this.getToken();return parseFloat(t||0)}readInt(){const t=this.getToken();return parseInt(t||0,10)|0}readBoolean(){const t=this.getToken();return t==="true"?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){this.stream.skip(-2);return this.currentChar=this.stream.getByte()}getToken(){let t=false;let e=this.currentChar;while(true){if(e===-1){return null}if(t){if(e===10||e===13){t=false}}else if(e===37){t=true}else if(!(0,n.isWhiteSpace)(e)){break}e=this.nextChar()}if(g(e)){this.nextChar();return String.fromCharCode(e)}let s="";do{s+=String.fromCharCode(e);e=this.nextChar()}while(e>=0&&!(0,n.isWhiteSpace)(e)&&!g(e));return s}readCharStrings(t,e){if(e===-1){return t}return d(t,u,e)}extractFontProgram(t){const e=this.stream;const s=[],i=[];const n=Object.create(null);n.lenIV=4;const r={subrs:[],charstrings:[],properties:{privateData:n}};let o,c,h,u;while((o=this.getToken())!==null){if(o!=="/"){continue}o=this.getToken();switch(o){case"CharStrings":this.getToken();this.getToken();this.getToken();this.getToken();while(true){o=this.getToken();if(o===null||o==="end"){break}if(o!=="/"){continue}const t=this.getToken();c=this.readInt();this.getToken();h=c>0?e.getBytes(c):new Uint8Array(0);u=r.properties.privateData.lenIV;const s=this.readCharStrings(h,u);this.nextChar();o=this.getToken();if(o==="noaccess"){this.getToken()}else if(o==="/"){this.prevChar()}i.push({glyph:t,encoded:s})}break;case"Subrs":this.readInt();this.getToken();while(this.getToken()==="dup"){const t=this.readInt();c=this.readInt();this.getToken();h=c>0?e.getBytes(c):new Uint8Array(0);u=r.properties.privateData.lenIV;const i=this.readCharStrings(h,u);this.nextChar();o=this.getToken();if(o==="noaccess"){this.getToken()}s[t]=i}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":const t=this.readNumberArray();if(t.length>0&&t.length%2===0&&a){r.properties.privateData[o]=t}break;case"StemSnapH":case"StemSnapV":r.properties.privateData[o]=this.readNumberArray();break;case"StdHW":case"StdVW":r.properties.privateData[o]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":r.properties.privateData[o]=this.readNumber();break;case"ExpansionFactor":r.properties.privateData[o]=this.readNumber()||.06;break;case"ForceBold":r.properties.privateData[o]=this.readBoolean();break}}for(const{encoded:e,glyph:n}of i){const i=new l;const o=i.convert(e,s,this.seacAnalysisEnabled);let a=i.output;if(o){a=[14]}const c={glyphName:n,charstring:a,width:i.width,lsb:i.lsb,seac:i.seac};if(n===".notdef"){r.charstrings.unshift(c)}else{r.charstrings.push(c)}if(t.builtInEncoding){const e=t.builtInEncoding.indexOf(n);if(e>-1&&t.widths[e]===undefined&&e>=t.firstChar&&e<=t.lastChar){t.widths[e]=i.width}}}return r}extractFontHeader(t){let e;while((e=this.getToken())!==null){if(e!=="/"){continue}e=this.getToken();switch(e){case"FontMatrix":const s=this.readNumberArray();t.fontMatrix=s;break;case"Encoding":const n=this.getToken();let r;if(!/^\d+$/.test(n)){r=(0,i.getEncoding)(n)}else{r=[];const t=parseInt(n,10)|0;this.getToken();for(let s=0;s<t;s++){e=this.getToken();while(e!=="dup"&&e!=="def"){e=this.getToken();if(e===null){return}}if(e==="def"){break}const t=this.readInt();this.getToken();const s=this.getToken();r[t]=s;this.getToken()}}t.builtInEncoding=r;break;case"FontBBox":const o=this.readNumberArray();t.ascent=Math.max(o[3],o[1]);t.descent=Math.min(o[1],o[3]);t.ascentScaled=true;break}}}}e.Type1Parser=m},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.Pattern=void 0;e.clearPatternCaches=g;e.getTilingPatternIR=b;var i=s(2);var n=s(5);var r=s(12);var o=s(3);const a={FUNCTION_BASED:1,AXIAL:2,RADIAL:3,FREE_FORM_MESH:4,LATTICE_FORM_MESH:5,COONS_PATCH_MESH:6,TENSOR_PATCH_MESH:7};class c{constructor(){(0,i.unreachable)("Cannot initialize Pattern.")}static parseShading(t,e,s,r,c){const l=t instanceof n.BaseStream?t.dict:t;const u=l.get("ShadingType");try{switch(u){case a.AXIAL:case a.RADIAL:return new h(l,e,s,r,c);case a.FREE_FORM_MESH:case a.LATTICE_FORM_MESH:case a.COONS_PATCH_MESH:case a.TENSOR_PATCH_MESH:return new m(t,e,s,r,c);default:throw new i.FormatError("Unsupported ShadingType: "+u)}}catch(t){if(t instanceof o.MissingDataException){throw t}(0,i.warn)(t);return new w}}}e.Pattern=c;class l{static SMALL_NUMBER=1e-6;constructor(){if(this.constructor===l){(0,i.unreachable)("Cannot initialize BaseShading.")}}getIR(){(0,i.unreachable)("Abstract method `getIR` called.")}}class h extends l{constructor(t,e,s,n,o){super();this.coordsArr=t.getArray("Coords");this.shadingType=t.get("ShadingType");const c=r.ColorSpace.parse({cs:t.getRaw("CS")||t.getRaw("ColorSpace"),xref:e,resources:s,pdfFunctionFactory:n,localColorSpaceCache:o});const h=t.getArray("BBox");this.bbox=Array.isArray(h)&&h.length===4?i.Util.normalizeRect(h):null;let u=0,f=1;if(t.has("Domain")){const e=t.getArray("Domain");u=e[0];f=e[1]}let d=false,p=false;if(t.has("Extend")){const e=t.getArray("Extend");d=e[0];p=e[1]}if(this.shadingType===a.RADIAL&&(!d||!p)){const[t,e,s,n,r,o]=this.coordsArr;const a=Math.hypot(t-n,e-r);if(s<=o+a&&o<=s+a){(0,i.warn)("Unsupported radial gradient.")}}this.extendStart=d;this.extendEnd=p;const g=t.getRaw("Function");const m=n.createFromArray(g);const w=840;const b=(f-u)/w;const y=this.colorStops=[];if(u>=f||b<=0){(0,i.info)("Bad shading domain.");return}const A=new Float32Array(c.numComps),v=new Float32Array(1);let x;let k=0;v[0]=u;m(v,0,A,0);let S=c.getRgb(A,0);const M=i.Util.makeHexColor(S[0],S[1],S[2]);y.push([0,M]);let C=1;v[0]=u+b;m(v,0,A,0);let _=c.getRgb(A,0);let I=_[0]-S[0]+1;let F=_[1]-S[1]+1;let O=_[2]-S[2]+1;let E=_[0]-S[0]-1;let T=_[1]-S[1]-1;let D=_[2]-S[2]-1;for(let t=2;t<w;t++){v[0]=u+t*b;m(v,0,A,0);x=c.getRgb(A,0);const e=t-k;I=Math.min(I,(x[0]-S[0]+1)/e);F=Math.min(F,(x[1]-S[1]+1)/e);O=Math.min(O,(x[2]-S[2]+1)/e);E=Math.max(E,(x[0]-S[0]-1)/e);T=Math.max(T,(x[1]-S[1]-1)/e);D=Math.max(D,(x[2]-S[2]-1)/e);const s=E<=I&&T<=F&&D<=O;if(!s){const t=i.Util.makeHexColor(_[0],_[1],_[2]);y.push([C/w,t]);I=x[0]-_[0]+1;F=x[1]-_[1]+1;O=x[2]-_[2]+1;E=x[0]-_[0]-1;T=x[1]-_[1]-1;D=x[2]-_[2]-1;k=C;S=_}C=t;_=x}const P=i.Util.makeHexColor(_[0],_[1],_[2]);y.push([1,P]);let R="transparent";if(t.has("Background")){x=c.getRgb(t.get("Background"),0);R=i.Util.makeHexColor(x[0],x[1],x[2])}if(!d){y.unshift([0,R]);y[1][0]+=l.SMALL_NUMBER}if(!p){y.at(-1)[0]-=l.SMALL_NUMBER;y.push([1,R])}this.colorStops=y}getIR(){const t=this.coordsArr;const e=this.shadingType;let s,n,r,o,c;if(e===a.AXIAL){n=[t[0],t[1]];r=[t[2],t[3]];o=null;c=null;s="axial"}else if(e===a.RADIAL){n=[t[0],t[1]];r=[t[3],t[4]];o=t[2];c=t[5];s="radial"}else{(0,i.unreachable)(`getPattern type unknown: ${e}`)}return["RadialAxial",s,this.bbox,this.colorStops,n,r,o,c]}}class u{constructor(t,e){this.stream=t;this.context=e;this.buffer=0;this.bufferLength=0;const s=e.numComps;this.tmpCompsBuf=new Float32Array(s);const i=e.colorSpace.numComps;this.tmpCsCompsBuf=e.colorFn?new Float32Array(i):this.tmpCompsBuf}get hasData(){if(this.stream.end){return this.stream.pos<this.stream.end}if(this.bufferLength>0){return true}const t=this.stream.getByte();if(t<0){return false}this.buffer=t;this.bufferLength=8;return true}readBits(t){let e=this.buffer;let s=this.bufferLength;if(t===32){if(s===0){return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0}e=e<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();const t=this.stream.getByte();this.buffer=t&(1<<s)-1;return(e<<8-s|(t&255)>>s)>>>0}if(t===8&&s===0){return this.stream.getByte()}while(s<t){e=e<<8|this.stream.getByte();s+=8}s-=t;this.bufferLength=s;this.buffer=e&(1<<s)-1;return e>>s}align(){this.buffer=0;this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){const t=this.context.bitsPerCoordinate;const e=this.readBits(t);const s=this.readBits(t);const i=this.context.decode;const n=t<32?1/((1<<t)-1):2.3283064365386963e-10;return[e*n*(i[1]-i[0])+i[0],s*n*(i[3]-i[2])+i[2]]}readComponents(){const t=this.context.numComps;const e=this.context.bitsPerComponent;const s=e<32?1/((1<<e)-1):2.3283064365386963e-10;const i=this.context.decode;const n=this.tmpCompsBuf;for(let r=0,o=4;r<t;r++,o+=2){const t=this.readBits(e);n[r]=t*s*(i[o+1]-i[o])+i[o]}const r=this.tmpCsCompsBuf;if(this.context.colorFn){this.context.colorFn(n,0,r,0)}return this.context.colorSpace.getRgb(r,0)}}let f=Object.create(null);function d(t){const e=[];for(let s=0;s<=t;s++){const i=s/t,n=1-i;e.push(new Float32Array([n**3,3*i*n**2,3*i**2*n,i**3]))}return e}function p(t){return f[t]||=d(t)}function g(){f=Object.create(null)}class m extends l{static MIN_SPLIT_PATCH_CHUNKS_AMOUNT=3;static MAX_SPLIT_PATCH_CHUNKS_AMOUNT=20;static TRIANGLE_DENSITY=20;constructor(t,e,s,o,c){super();if(!(t instanceof n.BaseStream)){throw new i.FormatError("Mesh data is not a stream")}const l=t.dict;this.shadingType=l.get("ShadingType");const h=l.getArray("BBox");this.bbox=Array.isArray(h)&&h.length===4?i.Util.normalizeRect(h):null;const f=r.ColorSpace.parse({cs:l.getRaw("CS")||l.getRaw("ColorSpace"),xref:e,resources:s,pdfFunctionFactory:o,localColorSpaceCache:c});this.background=l.has("Background")?f.getRgb(l.get("Background"),0):null;const d=l.getRaw("Function");const p=d?o.createFromArray(d):null;this.coords=[];this.colors=[];this.figures=[];const g={bitsPerCoordinate:l.get("BitsPerCoordinate"),bitsPerComponent:l.get("BitsPerComponent"),bitsPerFlag:l.get("BitsPerFlag"),decode:l.getArray("Decode"),colorFn:p,colorSpace:f,numComps:p?1:f.numComps};const m=new u(t,g);let w=false;switch(this.shadingType){case a.FREE_FORM_MESH:this._decodeType4Shading(m);break;case a.LATTICE_FORM_MESH:const t=l.get("VerticesPerRow")|0;if(t<2){throw new i.FormatError("Invalid VerticesPerRow")}this._decodeType5Shading(m,t);break;case a.COONS_PATCH_MESH:this._decodeType6Shading(m);w=true;break;case a.TENSOR_PATCH_MESH:this._decodeType7Shading(m);w=true;break;default:(0,i.unreachable)("Unsupported mesh type.");break}if(w){this._updateBounds();for(let t=0,e=this.figures.length;t<e;t++){this._buildFigureFromPatch(t)}}this._updateBounds();this._packData()}_decodeType4Shading(t){const e=this.coords;const s=this.colors;const n=[];let r=0;while(t.hasData){const o=t.readFlag();const a=t.readCoordinate();const c=t.readComponents();if(r===0){if(!(0<=o&&o<=2)){throw new i.FormatError("Unknown type4 flag")}switch(o){case 0:r=3;break;case 1:n.push(n.at(-2),n.at(-1));r=1;break;case 2:n.push(n.at(-3),n.at(-1));r=1;break}}n.push(e.length);e.push(a);s.push(c);r--;t.align()}this.figures.push({type:"triangles",coords:new Int32Array(n),colors:new Int32Array(n)})}_decodeType5Shading(t,e){const s=this.coords;const i=this.colors;const n=[];while(t.hasData){const e=t.readCoordinate();const r=t.readComponents();n.push(s.length);s.push(e);i.push(r)}this.figures.push({type:"lattice",coords:new Int32Array(n),colors:new Int32Array(n),verticesPerRow:e})}_decodeType6Shading(t){const e=this.coords;const s=this.colors;const n=new Int32Array(16);const r=new Int32Array(4);while(t.hasData){const o=t.readFlag();if(!(0<=o&&o<=3)){throw new i.FormatError("Unknown type6 flag")}const a=e.length;for(let s=0,i=o!==0?8:12;s<i;s++){e.push(t.readCoordinate())}const c=s.length;for(let e=0,i=o!==0?2:4;e<i;e++){s.push(t.readComponents())}let l,h,u,f;switch(o){case 0:n[12]=a+3;n[13]=a+4;n[14]=a+5;n[15]=a+6;n[8]=a+2;n[11]=a+7;n[4]=a+1;n[7]=a+8;n[0]=a;n[1]=a+11;n[2]=a+10;n[3]=a+9;r[2]=c+1;r[3]=c+2;r[0]=c;r[1]=c+3;break;case 1:l=n[12];h=n[13];u=n[14];f=n[15];n[12]=f;n[13]=a+0;n[14]=a+1;n[15]=a+2;n[8]=u;n[11]=a+3;n[4]=h;n[7]=a+4;n[0]=l;n[1]=a+7;n[2]=a+6;n[3]=a+5;l=r[2];h=r[3];r[2]=h;r[3]=c;r[0]=l;r[1]=c+1;break;case 2:l=n[15];h=n[11];n[12]=n[3];n[13]=a+0;n[14]=a+1;n[15]=a+2;n[8]=n[7];n[11]=a+3;n[4]=h;n[7]=a+4;n[0]=l;n[1]=a+7;n[2]=a+6;n[3]=a+5;l=r[3];r[2]=r[1];r[3]=c;r[0]=l;r[1]=c+1;break;case 3:n[12]=n[0];n[13]=a+0;n[14]=a+1;n[15]=a+2;n[8]=n[1];n[11]=a+3;n[4]=n[2];n[7]=a+4;n[0]=n[3];n[1]=a+7;n[2]=a+6;n[3]=a+5;r[2]=r[0];r[3]=c;r[0]=r[1];r[1]=c+1;break}n[5]=e.length;e.push([(-4*e[n[0]][0]-e[n[15]][0]+6*(e[n[4]][0]+e[n[1]][0])-2*(e[n[12]][0]+e[n[3]][0])+3*(e[n[13]][0]+e[n[7]][0]))/9,(-4*e[n[0]][1]-e[n[15]][1]+6*(e[n[4]][1]+e[n[1]][1])-2*(e[n[12]][1]+e[n[3]][1])+3*(e[n[13]][1]+e[n[7]][1]))/9]);n[6]=e.length;e.push([(-4*e[n[3]][0]-e[n[12]][0]+6*(e[n[2]][0]+e[n[7]][0])-2*(e[n[0]][0]+e[n[15]][0])+3*(e[n[4]][0]+e[n[14]][0]))/9,(-4*e[n[3]][1]-e[n[12]][1]+6*(e[n[2]][1]+e[n[7]][1])-2*(e[n[0]][1]+e[n[15]][1])+3*(e[n[4]][1]+e[n[14]][1]))/9]);n[9]=e.length;e.push([(-4*e[n[12]][0]-e[n[3]][0]+6*(e[n[8]][0]+e[n[13]][0])-2*(e[n[0]][0]+e[n[15]][0])+3*(e[n[11]][0]+e[n[1]][0]))/9,(-4*e[n[12]][1]-e[n[3]][1]+6*(e[n[8]][1]+e[n[13]][1])-2*(e[n[0]][1]+e[n[15]][1])+3*(e[n[11]][1]+e[n[1]][1]))/9]);n[10]=e.length;e.push([(-4*e[n[15]][0]-e[n[0]][0]+6*(e[n[11]][0]+e[n[14]][0])-2*(e[n[12]][0]+e[n[3]][0])+3*(e[n[2]][0]+e[n[8]][0]))/9,(-4*e[n[15]][1]-e[n[0]][1]+6*(e[n[11]][1]+e[n[14]][1])-2*(e[n[12]][1]+e[n[3]][1])+3*(e[n[2]][1]+e[n[8]][1]))/9]);this.figures.push({type:"patch",coords:new Int32Array(n),colors:new Int32Array(r)})}}_decodeType7Shading(t){const e=this.coords;const s=this.colors;const n=new Int32Array(16);const r=new Int32Array(4);while(t.hasData){const o=t.readFlag();if(!(0<=o&&o<=3)){throw new i.FormatError("Unknown type7 flag")}const a=e.length;for(let s=0,i=o!==0?12:16;s<i;s++){e.push(t.readCoordinate())}const c=s.length;for(let e=0,i=o!==0?2:4;e<i;e++){s.push(t.readComponents())}let l,h,u,f;switch(o){case 0:n[12]=a+3;n[13]=a+4;n[14]=a+5;n[15]=a+6;n[8]=a+2;n[9]=a+13;n[10]=a+14;n[11]=a+7;n[4]=a+1;n[5]=a+12;n[6]=a+15;n[7]=a+8;n[0]=a;n[1]=a+11;n[2]=a+10;n[3]=a+9;r[2]=c+1;r[3]=c+2;r[0]=c;r[1]=c+3;break;case 1:l=n[12];h=n[13];u=n[14];f=n[15];n[12]=f;n[13]=a+0;n[14]=a+1;n[15]=a+2;n[8]=u;n[9]=a+9;n[10]=a+10;n[11]=a+3;n[4]=h;n[5]=a+8;n[6]=a+11;n[7]=a+4;n[0]=l;n[1]=a+7;n[2]=a+6;n[3]=a+5;l=r[2];h=r[3];r[2]=h;r[3]=c;r[0]=l;r[1]=c+1;break;case 2:l=n[15];h=n[11];n[12]=n[3];n[13]=a+0;n[14]=a+1;n[15]=a+2;n[8]=n[7];n[9]=a+9;n[10]=a+10;n[11]=a+3;n[4]=h;n[5]=a+8;n[6]=a+11;n[7]=a+4;n[0]=l;n[1]=a+7;n[2]=a+6;n[3]=a+5;l=r[3];r[2]=r[1];r[3]=c;r[0]=l;r[1]=c+1;break;case 3:n[12]=n[0];n[13]=a+0;n[14]=a+1;n[15]=a+2;n[8]=n[1];n[9]=a+9;n[10]=a+10;n[11]=a+3;n[4]=n[2];n[5]=a+8;n[6]=a+11;n[7]=a+4;n[0]=n[3];n[1]=a+7;n[2]=a+6;n[3]=a+5;r[2]=r[0];r[3]=c;r[0]=r[1];r[1]=c+1;break}this.figures.push({type:"patch",coords:new Int32Array(n),colors:new Int32Array(r)})}}_buildFigureFromPatch(t){const e=this.figures[t];(0,i.assert)(e.type==="patch","Unexpected patch mesh figure");const s=this.coords,n=this.colors;const r=e.coords;const o=e.colors;const a=Math.min(s[r[0]][0],s[r[3]][0],s[r[12]][0],s[r[15]][0]);const c=Math.min(s[r[0]][1],s[r[3]][1],s[r[12]][1],s[r[15]][1]);const l=Math.max(s[r[0]][0],s[r[3]][0],s[r[12]][0],s[r[15]][0]);const h=Math.max(s[r[0]][1],s[r[3]][1],s[r[12]][1],s[r[15]][1]);let u=Math.ceil((l-a)*m.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));u=Math.max(m.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(m.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,u));let f=Math.ceil((h-c)*m.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));f=Math.max(m.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(m.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,f));const d=u+1;const g=new Int32Array((f+1)*d);const w=new Int32Array((f+1)*d);let b=0;const y=new Uint8Array(3),A=new Uint8Array(3);const v=n[o[0]],x=n[o[1]],k=n[o[2]],S=n[o[3]];const M=p(f),C=p(u);for(let t=0;t<=f;t++){y[0]=(v[0]*(f-t)+k[0]*t)/f|0;y[1]=(v[1]*(f-t)+k[1]*t)/f|0;y[2]=(v[2]*(f-t)+k[2]*t)/f|0;A[0]=(x[0]*(f-t)+S[0]*t)/f|0;A[1]=(x[1]*(f-t)+S[1]*t)/f|0;A[2]=(x[2]*(f-t)+S[2]*t)/f|0;for(let e=0;e<=u;e++,b++){if((t===0||t===f)&&(e===0||e===u)){continue}let i=0,o=0;let a=0;for(let n=0;n<=3;n++){for(let c=0;c<=3;c++,a++){const l=M[t][n]*C[e][c];i+=s[r[a]][0]*l;o+=s[r[a]][1]*l}}g[b]=s.length;s.push([i,o]);w[b]=n.length;const c=new Uint8Array(3);c[0]=(y[0]*(u-e)+A[0]*e)/u|0;c[1]=(y[1]*(u-e)+A[1]*e)/u|0;c[2]=(y[2]*(u-e)+A[2]*e)/u|0;n.push(c)}}g[0]=r[0];w[0]=o[0];g[u]=r[3];w[u]=o[1];g[d*f]=r[12];w[d*f]=o[2];g[d*f+u]=r[15];w[d*f+u]=o[3];this.figures[t]={type:"lattice",coords:g,colors:w,verticesPerRow:d}}_updateBounds(){let t=this.coords[0][0],e=this.coords[0][1],s=t,i=e;for(let n=1,r=this.coords.length;n<r;n++){const r=this.coords[n][0],o=this.coords[n][1];t=t>r?r:t;e=e>o?o:e;s=s<r?r:s;i=i<o?o:i}this.bounds=[t,e,s,i]}_packData(){let t,e,s,i;const n=this.coords;const r=new Float32Array(n.length*2);for(t=0,s=0,e=n.length;t<e;t++){const e=n[t];r[s++]=e[0];r[s++]=e[1]}this.coords=r;const o=this.colors;const a=new Uint8Array(o.length*3);for(t=0,s=0,e=o.length;t<e;t++){const e=o[t];a[s++]=e[0];a[s++]=e[1];a[s++]=e[2]}this.colors=a;const c=this.figures;for(t=0,e=c.length;t<e;t++){const e=c[t],n=e.coords,r=e.colors;for(s=0,i=n.length;s<i;s++){n[s]*=2;r[s]*=3}}}getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}}class w extends l{getIR(){return["Dummy"]}}function b(t,e,s){const n=e.getArray("Matrix");const r=i.Util.normalizeRect(e.getArray("BBox"));const o=e.get("XStep");const a=e.get("YStep");const c=e.get("PaintType");const l=e.get("TilingType");if(r[2]-r[0]===0||r[3]-r[1]===0){throw new i.FormatError(`Invalid getTilingPatternIR /BBox array: [${r}].`)}return["TilingPattern",s,t,n,r,o,a,c,l]}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.getXfaFontDict=p;e.getXfaFontName=f;var i=s(52);var n=s(4);var r=s(53);var o=s(54);var a=s(55);var c=s(56);var l=s(3);var h=s(38);const u=(0,l.getLookupTableFactory)((function(t){t["MyriadPro-Regular"]=t["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:a.MyriadProRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:a.MyriadProRegularMetrics};t["MyriadPro-Bold"]=t["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:a.MyriadProBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:a.MyriadProBoldMetrics};t["MyriadPro-It"]=t["MyriadPro-Italic"]=t["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:a.MyriadProItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:a.MyriadProItalicMetrics};t["MyriadPro-BoldIt"]=t["MyriadPro-BoldItalic"]=t["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:a.MyriadProBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:a.MyriadProBoldItalicMetrics};t.ArialMT=t.Arial=t["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping};t["Arial-BoldMT"]=t["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping};t["Arial-ItalicMT"]=t["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping};t["Arial-BoldItalicMT"]=t["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping};t["Calibri-Regular"]={name:"LiberationSans-Regular",factors:i.CalibriRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:i.CalibriRegularMetrics};t["Calibri-Bold"]={name:"LiberationSans-Bold",factors:i.CalibriBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:i.CalibriBoldMetrics};t["Calibri-Italic"]={name:"LiberationSans-Italic",factors:i.CalibriItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:i.CalibriItalicMetrics};t["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:i.CalibriBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:i.CalibriBoldItalicMetrics};t["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:c.SegoeuiRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:c.SegoeuiRegularMetrics};t["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:c.SegoeuiBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:c.SegoeuiBoldMetrics};t["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:c.SegoeuiItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:c.SegoeuiItalicMetrics};t["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:c.SegoeuiBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:c.SegoeuiBoldItalicMetrics};t["Helvetica-Regular"]=t.Helvetica={name:"LiberationSans-Regular",factors:r.HelveticaRegularFactors,baseWidths:o.LiberationSansRegularWidths,baseMapping:o.LiberationSansRegularMapping,metrics:r.HelveticaRegularMetrics};t["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:r.HelveticaBoldFactors,baseWidths:o.LiberationSansBoldWidths,baseMapping:o.LiberationSansBoldMapping,metrics:r.HelveticaBoldMetrics};t["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:r.HelveticaItalicFactors,baseWidths:o.LiberationSansItalicWidths,baseMapping:o.LiberationSansItalicMapping,metrics:r.HelveticaItalicMetrics};t["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:r.HelveticaBoldItalicFactors,baseWidths:o.LiberationSansBoldItalicWidths,baseMapping:o.LiberationSansBoldItalicMapping,metrics:r.HelveticaBoldItalicMetrics}}));function f(t){const e=(0,h.normalizeFontName)(t);const s=u();return s[e]}function d(t){const e=f(t);if(!e){return null}const{baseWidths:s,baseMapping:i,factors:n}=e;const r=!n?s:s.map(((t,e)=>t*n[e]));let o=-2;let a;const c=[];for(const[t,e]of i.map(((t,e)=>[t,e])).sort((([t],[e])=>t-e))){if(t===-1){continue}if(t===o+1){a.push(r[e]);o+=1}else{o=t;a=[r[e]];c.push(t,a)}}return c}function p(t){const e=d(t);const s=new n.Dict(null);s.set("BaseFont",n.Name.get(t));s.set("Type",n.Name.get("Font"));s.set("Subtype",n.Name.get("CIDFontType2"));s.set("Encoding",n.Name.get("Identity-H"));s.set("CIDToGIDMap",n.Name.get("Identity"));s.set("W",e);s.set("FirstChar",e[0]);s.set("LastChar",e.at(-2)+e.at(-1).length-1);const i=new n.Dict(null);s.set("FontDescriptor",i);const r=new n.Dict(null);r.set("Ordering","Identity");r.set("Registry","Adobe");r.set("Supplement",0);s.set("CIDSystemInfo",r);return s}},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.CalibriRegularMetrics=e.CalibriRegularFactors=e.CalibriItalicMetrics=e.CalibriItalicFactors=e.CalibriBoldMetrics=e.CalibriBoldItalicMetrics=e.CalibriBoldItalicFactors=e.CalibriBoldFactors=void 0;const s=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.54657,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.73293,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.9121,.86943,.79795,.88198,.77958,.70864,.81055,.90399,.88653,.96017,.82577,.77892,.78257,.97507,1.54657,.97507,.85284,.89552,.90176,.88762,.8785,.75241,.8785,.90518,.95015,.77618,.8785,.88401,.91916,.86304,.88401,.91488,.8785,.8801,.8785,.8785,.91343,.7173,1.04106,.8785,.85075,.95794,.82616,.85162,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.12401,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.73293,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.9121,.86943,.86943,.86943,.86943,.86943,.85284,.87508,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.88762,.88762,.88762,.88762,.88762,.88762,.8715,.75241,.90518,.90518,.90518,.90518,.88401,.88401,.88401,.88401,.8785,.8785,.8801,.8801,.8801,.8801,.8801,.90747,.89049,.8785,.8785,.8785,.8785,.85162,.8785,.85162,.83908,.88762,.83908,.88762,.83908,.88762,.73293,.75241,.73293,.75241,.73293,.75241,.73293,.75241,.87289,.83016,.88506,.93125,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.73133,.90518,.81921,.77618,.81921,.77618,.81921,.77618,1,1,.87356,.8785,.91075,.89608,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76229,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.79468,.91926,.88175,.70823,.94903,.9121,.8785,1,1,.9121,.8785,.87802,.88656,.8785,.86943,.8801,.86943,.8801,.86943,.8801,.87402,.89291,.77958,.91343,1,1,.77958,.91343,.70864,.7173,.70864,.7173,.70864,.7173,.70864,.7173,1,1,.81055,.75841,.81055,1.06452,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.90399,.8785,.96017,.95794,.77892,.85162,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.88762,.77539,.8715,.87508,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70674,.98387,.94721,1.33431,1.45894,.95161,1.06303,.83908,.80352,.57184,.6965,.56289,.82001,.56029,.81235,1.02988,.83908,.7762,.68156,.80367,.73133,.78257,.87356,.86943,.95958,.75727,.89019,1.04924,.9121,.7648,.86943,.87356,.79795,.78275,.81055,.77892,.9762,.82577,.99819,.84896,.95958,.77892,.96108,1.01407,.89049,1.02988,.94211,.96108,.8936,.84021,.87842,.96399,.79109,.89049,1.00813,1.02988,.86077,.87445,.92099,.84723,.86513,.8801,.75638,.85714,.78216,.79586,.87965,.94211,.97747,.78287,.97926,.84971,1.02988,.94211,.8801,.94211,.84971,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90264,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.90518,1,1,1,1,1,1,1,1,1,1,1,1,.90548,1,1,1,1,1,1,.96017,.95794,.96017,.95794,.96017,.95794,.77892,.85162,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.92794,.87012,.87012,.87012,.89552,.89552,1.42259,.71143,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.93835,.83406,.91133,.84107,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90527,1.81055,.90527,1.81055,1.31006,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.CalibriBoldFactors=s;const i={lineHeight:1.2207,lineGap:.2207};e.CalibriBoldMetrics=i;const n=[1.3877,1,1,1,.97801,.92482,.89552,.91133,.81988,.97566,.98152,.93548,.93548,1.2798,.85284,.92794,1,.96134,1.56239,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.82845,.82845,.85284,.85284,.85284,.75859,.92138,.83908,.7762,.71805,.87289,.73133,.7514,.81921,.87356,.95958,.59526,.75727,.69225,1.04924,.90872,.85938,.79795,.87068,.77958,.69766,.81055,.90399,.88653,.96068,.82577,.77892,.78257,.97507,1.529,.97507,.85284,.89552,.90176,.94908,.86411,.74012,.86411,.88323,.95015,.86411,.86331,.88401,.91916,.86304,.88401,.9039,.86331,.86331,.86411,.86411,.90464,.70852,1.04106,.86331,.84372,.95794,.82616,.84548,.79492,.88331,1.69808,.88331,.85284,.97801,.89552,.91133,.89552,.91133,1.7801,.89552,1.24487,1.13254,1.19129,.96839,.85284,.68787,.70645,.85592,.90747,1.01466,1.0088,.90323,1,1.07463,1,.91056,.75806,1.19118,.96839,.78864,.82845,.84133,.75859,.83908,.83908,.83908,.83908,.83908,.83908,.77539,.71805,.73133,.73133,.73133,.73133,.95958,.95958,.95958,.95958,.88506,.90872,.85938,.85938,.85938,.85938,.85938,.85284,.87068,.90399,.90399,.90399,.90399,.77892,.79795,.90807,.94908,.94908,.94908,.94908,.94908,.94908,.85887,.74012,.88323,.88323,.88323,.88323,.88401,.88401,.88401,.88401,.8785,.86331,.86331,.86331,.86331,.86331,.86331,.90747,.89049,.86331,.86331,.86331,.86331,.84548,.86411,.84548,.83908,.94908,.83908,.94908,.83908,.94908,.71805,.74012,.71805,.74012,.71805,.74012,.71805,.74012,.87289,.79538,.88506,.92726,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.73133,.88323,.81921,.86411,.81921,.86411,.81921,.86411,1,1,.87356,.86331,.91075,.8777,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.95958,.88401,.76467,.90167,.59526,.91916,1,1,.86304,.69225,.88401,1,1,.70424,.77312,.91926,.88175,.70823,.94903,.90872,.86331,1,1,.90872,.86331,.86906,.88116,.86331,.85938,.86331,.85938,.86331,.85938,.86331,.87402,.86549,.77958,.90464,1,1,.77958,.90464,.69766,.70852,.69766,.70852,.69766,.70852,.69766,.70852,1,1,.81055,.75841,.81055,1.06452,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.90399,.86331,.96068,.95794,.77892,.84548,.77892,.78257,.79492,.78257,.79492,.78257,.79492,.9297,.56892,.83908,.94908,.77539,.85887,.87068,.89049,1,1,.81055,1.04106,1.20528,1.20528,1,1.15543,.70088,.98387,.94721,1.33431,1.45894,.95161,1.48387,.83908,.80352,.57118,.6965,.56347,.79179,.55853,.80346,1.02988,.83908,.7762,.67174,.86036,.73133,.78257,.87356,.86441,.95958,.75727,.89019,1.04924,.90872,.74889,.85938,.87891,.79795,.7957,.81055,.77892,.97447,.82577,.97466,.87179,.95958,.77892,.94252,.95612,.8753,1.02988,.92733,.94252,.87411,.84021,.8728,.95612,.74081,.8753,1.02189,1.02988,.84814,.87445,.91822,.84723,.85668,.86331,.81344,.87581,.76422,.82046,.96057,.92733,.99375,.78022,.95452,.86015,1.02988,.92733,.86331,.92733,.86015,.73133,1,1,1,1,1,1,1,1,1,1,1,1,.90631,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.88323,1,1,1,1,1,1,1,1,1,1,1,1,.85174,1,1,1,1,1,1,.96068,.95794,.96068,.95794,.96068,.95794,.77892,.84548,1,1,.89552,.90527,1,.90363,.92794,.92794,.92794,.89807,.87012,.87012,.87012,.89552,.89552,1.42259,.71094,1.06152,1,1,1.03372,1.03372,.97171,1.4956,2.2807,.92972,.83406,.91133,.83326,.91133,1,1,1,.72021,1,1.23108,.83489,.88525,.88525,.81499,.90616,1.81055,.90527,1.81055,1.3107,1.53711,.94434,1.08696,1,.95018,.77192,.85284,.90747,1.17534,.69825,.9716,1.37077,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.08004,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,.90727,.90727,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.CalibriBoldItalicFactors=n;const r={lineHeight:1.2207,lineGap:.2207};e.CalibriBoldItalicMetrics=r;const o=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39543,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.72346,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89249,.84118,.77452,.85374,.75186,.67789,.79776,.88844,.85066,.94309,.77818,.7306,.76659,1.10369,1.38313,1.10369,1.06139,.89552,.8739,.9245,.9245,.83203,.9245,.85865,1.09842,.9245,.9245,1.03297,1.07692,.90918,1.03297,.94959,.9245,.92274,.9245,.9245,1.02933,.77832,1.20562,.9245,.8916,.98986,.86621,.89453,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.16359,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.72346,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89249,.84118,.84118,.84118,.84118,.84118,.85284,.84557,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.9245,.9245,.9245,.9245,.9245,.9245,.84843,.83203,.85865,.85865,.85865,.85865,.82601,.82601,.82601,.82601,.94469,.9245,.92274,.92274,.92274,.92274,.92274,.90747,.86651,.9245,.9245,.9245,.9245,.89453,.9245,.89453,.8675,.9245,.8675,.9245,.8675,.9245,.72346,.83203,.72346,.83203,.72346,.83203,.72346,.83203,.85193,.8875,.86477,.99034,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.73206,.85865,.81105,.9245,.81105,.9245,.81105,.9245,1,1,.86275,.9245,.90872,.93591,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77896,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.9375,.98156,.93407,.77261,1.11429,.89249,.9245,1,1,.89249,.9245,.92534,.86698,.9245,.84118,.92274,.84118,.92274,.84118,.92274,.8667,.86291,.75186,1.02933,1,1,.75186,1.02933,.67789,.77832,.67789,.77832,.67789,.77832,.67789,.77832,1,1,.79776,.97655,.79776,1.23023,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.88844,.9245,.94309,.98986,.7306,.89453,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.9245,.76318,.84843,.84557,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67009,.96334,.93695,1.35191,1.40909,.95161,1.48387,.8675,.90861,.6192,.7363,.64824,.82411,.56321,.85696,1.23516,.8675,.81552,.7286,.84134,.73206,.76659,.86275,.84369,.90685,.77892,.85871,1.02638,.89249,.75828,.84118,.85984,.77452,.76466,.79776,.7306,.90782,.77818,.903,.87291,.90685,.7306,.99058,1.03667,.94635,1.23516,.9849,.99058,.92393,.8916,.942,1.03667,.75026,.94635,1.0297,1.23516,.90918,.94048,.98217,.89746,.84153,.92274,.82507,.88832,.84438,.88178,1.03525,.9849,1.00225,.78086,.97248,.89404,1.23516,.9849,.92274,.9849,.89404,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.89693,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.85865,1,1,1,1,1,1,1,1,1,1,1,1,.90933,1,1,1,1,1,1,.94309,.98986,.94309,.98986,.94309,.98986,.7306,.89453,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.68994,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.97858,.82616,.91133,.83437,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90572,1.81055,.90749,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85284,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.CalibriItalicFactors=o;const a={lineHeight:1.2207,lineGap:.2207};e.CalibriItalicMetrics=a;const c=[1.3877,1,1,1,1.17223,1.1293,.89552,.91133,.80395,1.02269,1.15601,.91056,.91056,1.2798,.85284,.89807,1,.90861,1.39016,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.91133,.96309,.96309,.85284,.85284,.85284,.83319,.88071,.8675,.81552,.73834,.85193,.73206,.7522,.81105,.86275,.90685,.6377,.77892,.75593,1.02638,.89385,.85122,.77452,.86503,.75186,.68887,.79776,.88844,.85066,.94258,.77818,.7306,.76659,1.10369,1.39016,1.10369,1.06139,.89552,.8739,.86128,.94469,.8457,.94469,.89464,1.09842,.84636,.94469,1.03297,1.07692,.90918,1.03297,.95897,.94469,.9482,.94469,.94469,1.04692,.78223,1.20562,.94469,.90332,.98986,.86621,.90527,.79004,.94152,1.77256,.94152,.85284,.97801,.89552,.91133,.89552,.91133,1.91729,.89552,1.17889,1.13254,1.08707,.92098,.85284,.68787,.71353,.84737,.90747,1.0088,1.0044,.87683,1,1.09091,1,.92229,.739,1.15642,.92098,.76288,.80504,.80972,.75859,.8675,.8675,.8675,.8675,.8675,.8675,.76318,.73834,.73206,.73206,.73206,.73206,.90685,.90685,.90685,.90685,.86477,.89385,.85122,.85122,.85122,.85122,.85122,.85284,.85311,.88844,.88844,.88844,.88844,.7306,.77452,.86331,.86128,.86128,.86128,.86128,.86128,.86128,.8693,.8457,.89464,.89464,.89464,.89464,.82601,.82601,.82601,.82601,.94469,.94469,.9482,.9482,.9482,.9482,.9482,.90747,.86651,.94469,.94469,.94469,.94469,.90527,.94469,.90527,.8675,.86128,.8675,.86128,.8675,.86128,.73834,.8457,.73834,.8457,.73834,.8457,.73834,.8457,.85193,.92454,.86477,.9921,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.73206,.89464,.81105,.84636,.81105,.84636,.81105,.84636,1,1,.86275,.94469,.90872,.95786,.90685,.82601,.90685,.82601,.90685,.82601,.90685,1.03297,.90685,.82601,.77741,1.05611,.6377,1.07692,1,1,.90918,.75593,1.03297,1,1,.76032,.90452,.98156,1.11842,.77261,1.11429,.89385,.94469,1,1,.89385,.94469,.95877,.86901,.94469,.85122,.9482,.85122,.9482,.85122,.9482,.8667,.90016,.75186,1.04692,1,1,.75186,1.04692,.68887,.78223,.68887,.78223,.68887,.78223,.68887,.78223,1,1,.79776,.92188,.79776,1.23023,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.88844,.94469,.94258,.98986,.7306,.90527,.7306,.76659,.79004,.76659,.79004,.76659,.79004,1.09231,.54873,.8675,.86128,.76318,.8693,.85311,.86651,1,1,.79776,1.20562,1.18622,1.18622,1,1.1437,.67742,.96334,.93695,1.35191,1.40909,.95161,1.48387,.86686,.90861,.62267,.74359,.65649,.85498,.56963,.88254,1.23516,.8675,.81552,.75443,.84503,.73206,.76659,.86275,.85122,.90685,.77892,.85746,1.02638,.89385,.75657,.85122,.86275,.77452,.74171,.79776,.7306,.95165,.77818,.89772,.88831,.90685,.7306,.98142,1.02191,.96576,1.23516,.99018,.98142,.9236,.89258,.94035,1.02191,.78848,.96576,.9561,1.23516,.90918,.92578,.95424,.89746,.83969,.9482,.80113,.89442,.85208,.86155,.98022,.99018,1.00452,.81209,.99247,.89181,1.23516,.99018,.9482,.99018,.89181,.73206,1,1,1,1,1,1,1,1,1,1,1,1,.88844,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89464,1,1,1,1,1,1,1,1,1,1,1,1,.96766,1,1,1,1,1,1,.94258,.98986,.94258,.98986,.94258,.98986,.7306,.90527,1,1,.89552,.90527,1,.90186,1.12308,1.12308,1.12308,1.12308,1.2566,1.2566,1.2566,.89552,.89552,1.42259,.69043,1.03809,1,1,1.0176,1.0176,1.11523,1.4956,2.01462,.99331,.82616,.91133,.84286,.91133,1,1,1,.70508,1,1.23108,.79801,.84426,.84426,.774,.90527,1.81055,.90527,1.81055,1.28809,1.55469,.94434,1.07806,1,.97094,.7589,.85284,.90747,1.19658,.69825,.97622,1.33512,.90747,.90747,.85356,.90747,.90747,1.44947,.85284,.8941,.8941,.70572,.8,.70572,.70572,.70572,.70572,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.99862,.99862,1,1,1,1,1,1.0336,.91027,1,1,1,.99862,1,1,1,1,1,1,1,1,1,1,1,1,1.05859,1.05859,1,1,1,1.07185,.99413,.96334,1.08065,1,1,1,1,1,1,1,1,1,1,1];e.CalibriRegularFactors=c;const l={lineHeight:1.2207,lineGap:.2207};e.CalibriRegularMetrics=l},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.HelveticaRegularMetrics=e.HelveticaRegularFactors=e.HelveticaItalicMetrics=e.HelveticaItalicFactors=e.HelveticaBoldMetrics=e.HelveticaBoldItalicMetrics=e.HelveticaBoldItalicFactors=e.HelveticaBoldFactors=void 0;const s=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.03374,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.00042,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.03828,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00034,.99977,1,.99997,1.00026,1.00078,1.00036,.99973,1.00013,1.0006,.99977,.99977,.99988,.85148,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,1.00069,1.00022,.99977,1.00001,.99984,1.00026,1.00001,1.00024,1.00001,.9999,1,1.0006,1.00001,1.00041,.99962,1.00026,1.0006,.99995,1.00041,.99942,.99973,.99927,1.00082,.99902,1.00026,1.00087,1.0006,1.00069,.99973,.99867,.99973,.9993,1.00026,1.00049,1.00056,1,.99988,.99935,.99995,.99954,1.00055,.99945,1.00032,1.0006,.99995,1.00026,.99995,1.00032,1.00001,1.00008,.99971,1.00019,.9994,1.00001,1.0006,1.00044,.99973,1.00023,1.00047,1,.99942,.99561,.99989,1.00035,.99977,1.00035,.99977,1.00019,.99944,1.00001,1.00021,.99926,1.00035,1.00035,.99942,1.00048,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.99989,1.00057,1.00001,.99936,1.00052,1.00012,.99996,1.00043,1,1.00035,.9994,.99976,1.00035,.99973,1.00052,1.00041,1.00119,1.00037,.99973,1.00002,.99986,1.00041,1.00041,.99902,.9996,1.00034,.99999,1.00026,.99999,1.00026,.99973,1.00052,.99973,1,.99973,1.00041,1.00075,.9994,1.0003,.99999,1,1.00041,.99955,1,.99915,.99973,.99973,1.00026,1.00119,.99955,.99973,1.0006,.99911,1.0006,1.00026,.99972,1.00026,.99902,1.00041,.99973,.99999,1,1,1.00038,1.0005,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,1.00047,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];e.HelveticaBoldFactors=s;const i={lineHeight:1.2,lineGap:.2};e.HelveticaBoldMetrics=i;const n=[.76116,1,1,1.0006,.99998,.99974,.99973,.99973,.99982,.99977,1.00087,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99998,1,1.00003,1.00003,1.00003,1.00026,.9999,.99977,.99977,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,.99973,.99977,1.00026,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,.99998,1.0006,.99998,1.00003,.99973,.99998,.99973,1.00026,.99973,1.00026,.99973,.99998,1.00026,1.00026,1.0006,1.0006,.99973,1.0006,.99982,1.00026,1.00026,1.00026,1.00026,.99959,.99973,.99998,1.00026,.99973,1.00022,.99973,.99973,1,.99959,1.00077,.99959,1.00003,.99998,.99973,.99973,.99973,.99973,1.00077,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.99973,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,.99977,.99977,.99977,.99977,.99977,.99977,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,.99973,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.00026,1.06409,1.00026,1.00026,1.00026,1.00026,1.00026,.99973,1.00026,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,1.0044,.99977,1.00026,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,.99977,1.00026,.99977,1.00026,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99971,.99973,.99973,1.0006,.99977,.99973,.99973,1.00026,1.0006,1.00026,1.0006,1.00026,1.01011,1.00026,.99999,1.00026,1.0006,.99977,1.00026,.99977,1.00026,.99977,1.00026,.9993,.9998,1.00026,1.00022,1.00026,1.00022,1.00026,1.00022,1.00026,1,1.00016,.99977,.99959,.99977,.99959,.99977,.99959,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00026,.99998,1.00026,.8121,1.00026,.99998,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,.99977,1.00026,1.00016,1.00022,1.00001,.99973,1.00001,1.00026,1,1.00026,1,1.00026,1,1.0006,.99973,.99977,.99973,1,.99982,1.00022,1.00026,1.00001,.99973,1.00026,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99977,1,1,1.00026,.99969,.99972,.99981,.9998,1.0006,.99977,.99977,1.00022,.91155,1.00001,1.00026,.99977,1.00022,1.0006,.99977,1.00001,.99999,.99977,.99966,1.00022,1.00032,1.00001,.99944,1.00026,1.00001,.99968,1.00001,1.00047,1,1.0006,1.00001,.99981,1.00101,1.00026,1.0006,.99948,.99981,1.00064,.99973,.99942,1.00101,1.00061,1.00026,1.00069,1.0006,1.00014,.99973,1.01322,.99973,1.00065,1.00026,1.00012,.99923,1,1.00064,1.00076,.99948,1.00055,1.00063,1.00007,.99943,1.0006,.99948,1.00026,.99948,.99943,1.00001,1.00001,1.00029,1.00038,1.00035,1.00001,1.0006,1.0006,.99973,.99978,1.00001,1.00057,.99989,.99967,.99964,.99967,.99977,.99999,.99977,1.00038,.99977,1.00001,.99973,1.00066,.99967,.99967,1.00041,.99998,.99999,.99977,1.00022,.99967,1.00001,.99977,1.00026,.99964,1.00031,1.00001,.99999,.99999,1,1.00023,1,1,.99999,1.00035,1.00001,.99999,.99973,.99977,.99999,1.00058,.99973,.99973,.99955,.9995,1.00026,1.00026,1.00032,.99989,1.00034,.99999,1.00026,1.00026,1.00026,.99973,.45998,.99973,1.00026,.99973,1.00001,.99999,.99982,.99994,.99996,1,1.00042,1.00044,1.00029,1.00023,.99973,.99973,1.00026,.99949,1.00002,.99973,1.0006,1.0006,1.0006,.99975,1.00026,1.00026,1.00032,.98685,.99973,1.00026,1,1,.99966,1.00044,1.00016,1.00022,1.00016,1.00022,1.00016,1.00022,1.00001,.99973,1,1,.99973,1,1,.99955,1.0006,1.0006,1.0006,1.0006,1,1,1,.99973,.99973,.99972,1,1,1.00106,.99999,.99998,.99998,.99999,.99998,1.66475,1,.99973,.99973,1,.99973,.99971,.99978,1,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00098,1,1,1,1.00049,1,1,.99972,1,1.20985,1.39713,1.00003,1.00031,1.00015,1,.99561,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.99972,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];e.HelveticaBoldItalicFactors=n;const r={lineHeight:1.35,lineGap:.2};e.HelveticaBoldItalicMetrics=r;const o=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.0288,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,.99946,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.06311,.99973,1.00024,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,1.00041,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.89547,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,1.00001,1,1.00054,.99977,1.00084,1.00007,.99973,1.00013,.99924,1.00001,1.00001,.99945,.91221,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00001,.99999,.99977,.99933,1.00022,1.00054,1.00001,1.00065,1.00026,1.00001,1.0001,1.00001,1.00052,1,1.0006,1.00001,.99945,.99897,.99968,.99924,1.00036,.99945,.99949,1,1.0006,.99897,.99918,.99968,.99911,.99924,1,.99962,1.01487,1,1.0005,.99973,1.00012,1.00043,1,.99995,.99994,1.00036,.99947,1.00019,1.00063,1.00025,.99924,1.00036,.99973,1.00036,1.00025,1.00001,1.00001,1.00027,1.0001,1.00068,1.00001,1.0006,1.0006,1,1.00008,.99957,.99972,.9994,.99954,.99975,1.00051,1.00001,1.00019,1.00001,1.0001,.99986,1.00001,1.00001,1.00038,.99954,.99954,.9994,1.00066,.99999,.99977,1.00022,1.00054,1.00001,.99977,1.00026,.99975,1.0001,1.00001,.99993,.9995,.99955,1.00016,.99978,.99974,1.00019,1.00022,.99955,1.00053,.99973,1.00089,1.00005,.99967,1.00048,.99973,1.00002,1.00034,.99973,.99973,.99964,1.00006,1.00066,.99947,.99973,.98894,.99973,1,.44898,1,.99946,1,1.00039,1.00082,.99991,.99991,.99985,1.00022,1.00023,1.00061,1.00006,.99966,.99973,.99973,.99973,1.00019,1.0008,1,.99924,.99924,.99924,.99983,1.00044,.99973,.99964,.98332,1,.99973,1,1,.99962,.99895,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,1.00423,.99925,.99999,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1.00049,1,1.00245,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,1.00003,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,.99998,.99998,.99998,.99998,1,1,1,1,1,1,1,1,1,1,1];e.HelveticaItalicFactors=o;const a={lineHeight:1.35,lineGap:.2};e.HelveticaItalicMetrics=a;const c=[.76116,1,1,1.0006,1.0006,1.00006,.99973,.99973,.99982,1.00001,1.00043,.99998,.99998,.99959,1.00003,1.0006,.99998,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.0006,1,1.00003,1.00003,1.00003,.99973,.99987,1.00001,1.00001,.99977,.99977,1.00001,1.00026,1.00022,.99977,1.0006,1,1.00001,.99973,.99999,.99977,1.00022,1.00001,1.00022,.99977,1.00001,1.00026,.99977,1.00001,1.00016,1.00001,1.00001,1.00026,1.0006,1.0006,1.0006,.99949,.99973,.99998,.99973,.99973,1,.99973,.99973,1.0006,.99973,.99973,.99924,.99924,1,.99924,.99999,.99973,.99973,.99973,.99973,.99998,1,1.0006,.99973,1,.99977,1,1,1,1.00005,1.0009,1.00005,1.00003,.99998,.99973,.99973,.99973,.99973,1.0009,.99973,.99998,1.00025,.99968,.99973,1.00003,1.00025,.60299,1.00024,1.06409,1,1,.99998,1,.9998,1.0006,.99998,1,.99936,.99973,1.00002,1.00002,1.00002,1.00026,1.00001,1.00001,1.00001,1.00001,1.00001,1.00001,1,.99977,1.00001,1.00001,1.00001,1.00001,1.0006,1.0006,1.0006,1.0006,.99977,.99977,1.00022,1.00022,1.00022,1.00022,1.00022,1.00003,1.00022,.99977,.99977,.99977,.99977,1.00001,1.00001,1.00026,.99973,.99973,.99973,.99973,.99973,.99973,.99982,1,.99973,.99973,.99973,.99973,1.0006,1.0006,1.0006,1.0006,.99973,.99973,.99973,.99973,.99973,.99973,.99973,1.06409,1.00026,.99973,.99973,.99973,.99973,1,.99973,1,1.00001,.99973,1.00001,.99973,1.00001,.99973,.99977,1,.99977,1,.99977,1,.99977,1,.99977,1.04596,.99977,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00001,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,.99977,.99973,.99977,.99973,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,1.0006,.99924,1.0006,1.0006,1.00019,1.00034,1,.99924,1.00001,1,1,.99973,.99924,.99973,.99924,.99973,1.02572,.99973,1.00005,.99973,.99924,.99977,.99973,.99977,.99973,.99977,.99973,.99999,.9998,.99973,1.00022,.99973,1.00022,.99973,1.00022,.99973,1,1.00016,.99977,.99998,.99977,.99998,.99977,.99998,1.00001,1,1.00001,1,1.00001,1,1.00001,1,1.00026,1.0006,1.00026,.84533,1.00026,1.0006,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,.99977,.99973,1.00016,.99977,1.00001,1,1.00001,1.00026,1,1.00026,1,1.00026,1,.99924,.99973,1.00001,.99973,1,.99982,1.00022,1.00026,1.00001,1,1.00026,1.0006,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99998,.99928,1,.99977,1.00013,1.00055,.99947,.99945,.99941,.99924,1.00001,1.00001,1.0004,.91621,1.00001,1.00026,.99977,1.00022,1.0006,1.00001,1.00005,.99999,.99977,1.00015,1.00022,.99977,1.00001,.99973,1.00026,1.00001,1.00019,1.00001,.99946,1,1.0006,1.00001,.99978,1.00045,.99973,.99924,1.00023,.99978,.99966,1,1.00065,1.00045,1.00019,.99973,.99973,.99924,1,1,.96499,1,1.00055,.99973,1.00008,1.00027,1,.9997,.99995,1.00023,.99933,1.00019,1.00015,1.00031,.99924,1.00023,.99973,1.00023,1.00031,1.00001,.99928,1.00029,1.00092,1.00035,1.00001,1.0006,1.0006,1,.99988,.99975,1,1.00082,.99561,.9996,1.00035,1.00001,.99962,1.00001,1.00092,.99964,1.00001,.99963,.99999,1.00035,1.00035,1.00082,.99962,.99999,.99977,1.00022,1.00035,1.00001,.99977,1.00026,.9996,.99967,1.00001,1.00034,1.00074,1.00054,1.00053,1.00063,.99971,.99962,1.00035,.99975,.99977,.99973,1.00043,.99953,1.0007,.99915,.99973,1.00008,.99892,1.00073,1.00073,1.00114,.99915,1.00073,.99955,.99973,1.00092,.99973,1,.99998,1,1.0003,1,1.00043,1.00001,.99969,1.0003,1,1.00035,1.00001,.9995,1,1.00092,.99973,.99973,.99973,1.0007,.9995,1,.99924,1.0006,.99924,.99972,1.00062,.99973,1.00114,1.00073,1,.99955,1,1,1.00047,.99968,1.00016,.99977,1.00016,.99977,1.00016,.99977,1.00001,1,1,1,.99973,1,1,.99955,.99924,.99924,.99924,.99924,.99998,.99998,.99998,.99973,.99973,.99972,1,1,1.00267,.99999,.99998,.99998,1,.99998,1.66475,1,.99973,.99973,1.00023,.99973,.99971,.99925,1.00023,1,.99991,.99984,1.00002,1.00002,1.00002,1.00002,1,1,1,1,1,1,1,.96329,1,1.20985,1.39713,1.00003,.8254,1.00015,1,1.00035,1.00027,1.00031,1.00031,.99915,1.00031,1.00031,.99999,1.00003,.99999,.99999,1.41144,1.6,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.41144,1.40579,1.40579,1.36625,.99999,1,.99861,.99861,1,1.00026,1.00026,1.00026,1.00026,.95317,.99999,.99999,.99999,.99999,1.40483,1,.99977,1.00054,1,1,.99953,.99962,1.00042,.9995,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.HelveticaRegularFactors=c;const l={lineHeight:1.2,lineGap:.2};e.HelveticaRegularMetrics=l},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.LiberationSansRegularWidths=e.LiberationSansRegularMapping=e.LiberationSansItalicWidths=e.LiberationSansItalicMapping=e.LiberationSansBoldWidths=e.LiberationSansBoldMapping=e.LiberationSansBoldItalicWidths=e.LiberationSansBoldItalicMapping=void 0;const s=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,719,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,785,556,556,278,722,556,556,611,278,611,278,611,385,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,465,722,333,853,906,474,825,927,838,278,722,722,601,719,667,611,722,778,278,722,667,833,722,644,778,722,667,600,611,667,821,667,809,802,278,667,615,451,611,278,582,615,610,556,606,475,460,611,541,278,558,556,612,556,445,611,766,619,520,684,446,582,715,576,753,845,278,582,611,582,845,667,669,885,567,711,667,278,276,556,1094,1062,875,610,722,622,719,722,719,722,567,712,667,904,626,719,719,610,702,833,722,778,719,667,722,611,622,854,667,730,703,1005,1019,870,979,719,711,1031,719,556,618,615,417,635,556,709,497,615,615,500,635,740,604,611,604,611,556,490,556,875,556,615,581,833,844,729,854,615,552,854,583,556,556,611,417,552,556,278,281,278,969,906,611,500,615,556,604,778,611,487,447,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1094,556,885,489,1115,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];e.LiberationSansBoldWidths=s;const i=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.LiberationSansBoldMapping=i;const n=[365,0,333,278,333,474,556,556,889,722,238,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,333,333,584,584,584,611,975,722,722,722,722,667,611,778,722,278,556,722,611,833,722,778,667,778,722,667,611,722,667,944,667,667,611,333,278,333,584,556,333,556,611,556,611,556,333,611,611,278,278,556,278,889,611,611,611,611,389,556,333,611,556,778,556,556,500,389,280,389,584,333,556,556,556,556,280,556,333,737,370,556,584,737,552,400,549,333,333,333,576,556,278,333,333,365,556,834,834,834,611,722,722,722,722,722,722,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,556,556,556,556,556,278,278,278,278,611,611,611,611,611,611,611,549,611,611,611,611,611,556,611,556,722,556,722,556,722,556,722,556,722,556,722,556,722,556,722,740,722,611,667,556,667,556,667,556,667,556,667,556,778,611,778,611,778,611,778,611,722,611,722,611,278,278,278,278,278,278,278,278,278,278,782,556,556,278,722,556,556,611,278,611,278,611,396,611,479,611,278,722,611,722,611,722,611,708,723,611,778,611,778,611,778,611,1e3,944,722,389,722,389,722,389,667,556,667,556,667,556,667,556,611,333,611,479,611,333,722,611,722,611,722,611,722,611,722,611,722,611,944,778,667,556,667,611,500,611,500,611,500,278,556,722,556,1e3,889,778,611,667,556,611,333,333,333,333,333,333,333,333,333,333,333,333,722,333,854,906,473,844,930,847,278,722,722,610,671,667,611,722,778,278,722,667,833,722,657,778,718,667,590,611,667,822,667,829,781,278,667,620,479,611,278,591,620,621,556,610,479,492,611,558,278,566,556,603,556,450,611,712,605,532,664,409,591,704,578,773,834,278,591,611,591,834,667,667,886,614,719,667,278,278,556,1094,1042,854,622,719,677,719,722,708,722,614,722,667,927,643,719,719,615,687,833,722,778,719,667,722,611,677,781,667,729,708,979,989,854,1e3,708,719,1042,729,556,619,604,534,618,556,736,510,611,611,507,622,740,604,611,611,611,556,889,556,885,556,646,583,889,935,707,854,594,552,865,589,556,556,611,469,563,556,278,278,278,969,906,611,507,619,556,611,778,611,575,467,944,778,944,778,944,778,667,556,333,333,556,1e3,1e3,552,278,278,278,278,500,500,500,556,556,350,1e3,1e3,240,479,333,333,604,333,167,396,556,556,1104,556,885,516,1146,1e3,768,600,834,834,834,834,999,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,722,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333,333,333,333,333,333,333,333,222,222,333,333,333,333,333,333,333,333];e.LiberationSansBoldItalicWidths=n;const r=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.LiberationSansBoldItalicMapping=r;const o=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,625,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,733,444,500,222,667,500,500,556,222,556,222,556,281,556,400,556,222,722,556,722,556,722,556,615,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,354,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,789,846,389,794,865,775,222,667,667,570,671,667,611,722,778,278,667,667,833,722,648,778,725,667,600,611,667,837,667,831,761,278,667,570,439,555,222,550,570,571,500,556,439,463,555,542,222,500,492,548,500,447,556,670,573,486,603,374,550,652,546,728,779,222,550,556,550,779,667,667,843,544,708,667,278,278,500,1066,982,844,589,715,639,724,667,651,667,544,704,667,917,614,715,715,589,686,833,722,778,725,667,722,611,639,795,667,727,673,920,923,805,886,651,694,1022,682,556,562,522,493,553,556,688,465,556,556,472,564,686,550,556,556,556,500,833,500,835,500,572,518,830,851,621,736,526,492,752,534,556,556,556,378,496,500,222,222,222,910,828,556,472,565,500,556,778,556,492,339,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1083,1e3,768,600,834,834,834,834,1e3,500,998,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,584,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];e.LiberationSansItalicWidths=o;const a=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.LiberationSansItalicMapping=a;const c=[365,0,333,278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584,333,556,556,556,556,260,556,333,737,370,556,584,737,552,400,549,333,333,333,576,537,278,333,333,365,556,834,834,834,611,667,667,667,667,667,667,1e3,722,667,667,667,667,278,278,278,278,722,722,778,778,778,778,778,584,778,722,722,722,722,667,667,611,556,556,556,556,556,556,889,500,556,556,556,556,278,278,278,278,556,556,556,556,556,556,556,549,611,556,556,556,556,500,556,500,667,556,667,556,667,556,722,500,722,500,722,500,722,500,722,615,722,556,667,556,667,556,667,556,667,556,667,556,778,556,778,556,778,556,778,556,722,556,722,556,278,278,278,278,278,278,278,222,278,278,735,444,500,222,667,500,500,556,222,556,222,556,292,556,334,556,222,722,556,722,556,722,556,604,723,556,778,556,778,556,778,556,1e3,944,722,333,722,333,722,333,667,500,667,500,667,500,667,500,611,278,611,375,611,278,722,556,722,556,722,556,722,556,722,556,722,556,944,722,667,500,667,611,500,611,500,611,500,222,556,667,556,1e3,889,778,611,667,500,611,278,333,333,333,333,333,333,333,333,333,333,333,667,278,784,838,384,774,855,752,222,667,667,551,668,667,611,722,778,278,667,668,833,722,650,778,722,667,618,611,667,798,667,835,748,278,667,578,446,556,222,547,578,575,500,557,446,441,556,556,222,500,500,576,500,448,556,690,569,482,617,395,547,648,525,713,781,222,547,556,547,781,667,667,865,542,719,667,278,278,500,1057,1010,854,583,722,635,719,667,656,667,542,677,667,923,604,719,719,583,656,833,722,778,719,667,722,611,635,760,667,740,667,917,938,792,885,656,719,1010,722,556,573,531,365,583,556,669,458,559,559,438,583,688,552,556,542,556,500,458,500,823,500,573,521,802,823,625,719,521,510,750,542,556,556,556,365,510,500,222,278,222,906,812,556,438,559,500,552,778,556,489,411,944,722,944,722,944,722,667,500,333,333,556,1e3,1e3,552,222,222,222,222,333,333,333,556,556,350,1e3,1e3,188,354,333,333,500,333,167,365,556,556,1094,556,885,323,1073,1e3,768,600,834,834,834,834,1e3,500,1e3,500,1e3,500,500,494,612,823,713,584,549,713,979,719,274,549,549,583,549,549,604,584,604,604,708,625,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,708,729,604,604,354,354,1e3,990,990,990,990,494,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333,333,333,333,333,333,333,333,222,222,294,294,324,324,316,328,398,285];e.LiberationSansRegularWidths=c;const l=[-1,-1,-1,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,161,162,163,164,165,166,167,168,169,170,171,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279,280,281,282,283,284,285,286,287,288,289,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,359,360,361,362,363,364,365,366,367,368,369,370,371,372,373,374,375,376,377,378,379,380,381,382,383,402,506,507,508,509,510,511,536,537,538,539,710,711,713,728,729,730,731,732,733,900,901,902,903,904,905,906,908,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,1024,1025,1026,1027,1028,1029,1030,1031,1032,1033,1034,1035,1036,1037,1038,1039,1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103,1104,1105,1106,1107,1108,1109,1110,1111,1112,1113,1114,1115,1116,1117,1118,1119,1138,1139,1168,1169,7808,7809,7810,7811,7812,7813,7922,7923,8208,8209,8211,8212,8213,8215,8216,8217,8218,8219,8220,8221,8222,8224,8225,8226,8230,8240,8242,8243,8249,8250,8252,8254,8260,8319,8355,8356,8359,8364,8453,8467,8470,8482,8486,8494,8539,8540,8541,8542,8592,8593,8594,8595,8596,8597,8616,8706,8710,8719,8721,8722,8730,8734,8735,8745,8747,8776,8800,8801,8804,8805,8962,8976,8992,8993,9472,9474,9484,9488,9492,9496,9500,9508,9516,9524,9532,9552,9553,9554,9555,9556,9557,9558,9559,9560,9561,9562,9563,9564,9565,9566,9567,9568,9569,9570,9571,9572,9573,9574,9575,9576,9577,9578,9579,9580,9600,9604,9608,9612,9616,9617,9618,9619,9632,9633,9642,9643,9644,9650,9658,9660,9668,9674,9675,9679,9688,9689,9702,9786,9787,9788,9792,9794,9824,9827,9829,9830,9834,9835,9836,61441,61442,61445,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1];e.LiberationSansRegularMapping=l},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.MyriadProRegularMetrics=e.MyriadProRegularFactors=e.MyriadProItalicMetrics=e.MyriadProItalicFactors=e.MyriadProBoldMetrics=e.MyriadProBoldItalicMetrics=e.MyriadProBoldItalicFactors=e.MyriadProBoldFactors=void 0;const s=[1.36898,1,1,.72706,.80479,.83734,.98894,.99793,.9897,.93884,.86209,.94292,.94292,1.16661,1.02058,.93582,.96694,.93582,1.19137,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.99793,.78076,.78076,1.02058,1.02058,1.02058,.72851,.78966,.90838,.83637,.82391,.96376,.80061,.86275,.8768,.95407,1.0258,.73901,.85022,.83655,1.0156,.95546,.92179,.87107,.92179,.82114,.8096,.89713,.94438,.95353,.94083,.91905,.90406,.9446,.94292,1.18777,.94292,1.02058,.89903,.90088,.94938,.97898,.81093,.97571,.94938,1.024,.9577,.95933,.98621,1.0474,.97455,.98981,.9672,.95933,.9446,.97898,.97407,.97646,.78036,1.10208,.95442,.95298,.97579,.9332,.94039,.938,.80687,1.01149,.80687,1.02058,.80479,.99793,.99793,.99793,.99793,1.01149,1.00872,.90088,.91882,1.0213,.8361,1.02058,.62295,.54324,.89022,1.08595,1,1,.90088,1,.97455,.93582,.90088,1,1.05686,.8361,.99642,.99642,.99642,.72851,.90838,.90838,.90838,.90838,.90838,.90838,.868,.82391,.80061,.80061,.80061,.80061,1.0258,1.0258,1.0258,1.0258,.97484,.95546,.92179,.92179,.92179,.92179,.92179,1.02058,.92179,.94438,.94438,.94438,.94438,.90406,.86958,.98225,.94938,.94938,.94938,.94938,.94938,.94938,.9031,.81093,.94938,.94938,.94938,.94938,.98621,.98621,.98621,.98621,.93969,.95933,.9446,.9446,.9446,.9446,.9446,1.08595,.9446,.95442,.95442,.95442,.95442,.94039,.97898,.94039,.90838,.94938,.90838,.94938,.90838,.94938,.82391,.81093,.82391,.81093,.82391,.81093,.82391,.81093,.96376,.84313,.97484,.97571,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.80061,.94938,.8768,.9577,.8768,.9577,.8768,.9577,1,1,.95407,.95933,.97069,.95933,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,1.0258,.98621,.887,1.01591,.73901,1.0474,1,1,.97455,.83655,.98981,1,1,.83655,.73977,.83655,.73903,.84638,1.033,.95546,.95933,1,1,.95546,.95933,.8271,.95417,.95933,.92179,.9446,.92179,.9446,.92179,.9446,.936,.91964,.82114,.97646,1,1,.82114,.97646,.8096,.78036,.8096,.78036,1,1,.8096,.78036,1,1,.89713,.77452,.89713,1.10208,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94438,.95442,.94083,.97579,.90406,.94039,.90406,.9446,.938,.9446,.938,.9446,.938,1,.99793,.90838,.94938,.868,.9031,.92179,.9446,1,1,.89713,1.10208,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90989,.9358,.91945,.83181,.75261,.87992,.82976,.96034,.83689,.97268,1.0078,.90838,.83637,.8019,.90157,.80061,.9446,.95407,.92436,1.0258,.85022,.97153,1.0156,.95546,.89192,.92179,.92361,.87107,.96318,.89713,.93704,.95638,.91905,.91709,.92796,1.0258,.93704,.94836,1.0373,.95933,1.0078,.95871,.94836,.96174,.92601,.9498,.98607,.95776,.95933,1.05453,1.0078,.98275,.9314,.95617,.91701,1.05993,.9446,.78367,.9553,1,.86832,1.0128,.95871,.99394,.87548,.96361,.86774,1.0078,.95871,.9446,.95871,.86774,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.94083,.97579,.94083,.97579,.94083,.97579,.90406,.94039,.96694,1,.89903,1,1,1,.93582,.93582,.93582,1,.908,.908,.918,.94219,.94219,.96544,1,1.285,1,1,.81079,.81079,1,1,.74854,1,1,1,1,.99793,1,1,1,.65,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.17173,1,.80535,.76169,1.02058,1.0732,1.05486,1,1,1.30692,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.16161,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.MyriadProBoldFactors=s;const i={lineHeight:1.2,lineGap:.2};e.MyriadProBoldMetrics=i;const n=[1.36898,1,1,.66227,.80779,.81625,.97276,.97276,.97733,.92222,.83266,.94292,.94292,1.16148,1.02058,.93582,.96694,.93582,1.17337,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.97276,.78076,.78076,1.02058,1.02058,1.02058,.71541,.76813,.85576,.80591,.80729,.94299,.77512,.83655,.86523,.92222,.98621,.71743,.81698,.79726,.98558,.92222,.90637,.83809,.90637,.80729,.76463,.86275,.90699,.91605,.9154,.85308,.85458,.90531,.94292,1.21296,.94292,1.02058,.89903,1.18616,.99613,.91677,.78216,.91677,.90083,.98796,.9135,.92168,.95381,.98981,.95298,.95381,.93459,.92168,.91513,.92004,.91677,.95077,.748,1.04502,.91677,.92061,.94236,.89544,.89364,.9,.80687,.8578,.80687,1.02058,.80779,.97276,.97276,.97276,.97276,.8578,.99973,1.18616,.91339,1.08074,.82891,1.02058,.55509,.71526,.89022,1.08595,1,1,1.18616,1,.96736,.93582,1.18616,1,1.04864,.82711,.99043,.99043,.99043,.71541,.85576,.85576,.85576,.85576,.85576,.85576,.845,.80729,.77512,.77512,.77512,.77512,.98621,.98621,.98621,.98621,.95961,.92222,.90637,.90637,.90637,.90637,.90637,1.02058,.90251,.90699,.90699,.90699,.90699,.85458,.83659,.94951,.99613,.99613,.99613,.99613,.99613,.99613,.85811,.78216,.90083,.90083,.90083,.90083,.95381,.95381,.95381,.95381,.9135,.92168,.91513,.91513,.91513,.91513,.91513,1.08595,.91677,.91677,.91677,.91677,.91677,.89364,.92332,.89364,.85576,.99613,.85576,.99613,.85576,.99613,.80729,.78216,.80729,.78216,.80729,.78216,.80729,.78216,.94299,.76783,.95961,.91677,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.77512,.90083,.86523,.9135,.86523,.9135,.86523,.9135,1,1,.92222,.92168,.92222,.92168,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.98621,.95381,.86036,.97096,.71743,.98981,1,1,.95298,.79726,.95381,1,1,.79726,.6894,.79726,.74321,.81691,1.0006,.92222,.92168,1,1,.92222,.92168,.79464,.92098,.92168,.90637,.91513,.90637,.91513,.90637,.91513,.909,.87514,.80729,.95077,1,1,.80729,.95077,.76463,.748,.76463,.748,1,1,.76463,.748,1,1,.86275,.72651,.86275,1.04502,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.90699,.91677,.9154,.94236,.85458,.89364,.85458,.90531,.9,.90531,.9,.90531,.9,1,.97276,.85576,.99613,.845,.85811,.90251,.91677,1,1,.86275,1.04502,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.18616,1.00899,1.30628,.85576,.80178,.66862,.7927,.69323,.88127,.72459,.89711,.95381,.85576,.80591,.7805,.94729,.77512,.90531,.92222,.90637,.98621,.81698,.92655,.98558,.92222,.85359,.90637,.90976,.83809,.94523,.86275,.83509,.93157,.85308,.83392,.92346,.98621,.83509,.92886,.91324,.92168,.95381,.90646,.92886,.90557,.86847,.90276,.91324,.86842,.92168,.99531,.95381,.9224,.85408,.92699,.86847,1.0051,.91513,.80487,.93481,1,.88159,1.05214,.90646,.97355,.81539,.89398,.85923,.95381,.90646,.91513,.90646,.85923,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9154,.94236,.9154,.94236,.9154,.94236,.85458,.89364,.96694,1,.89903,1,1,1,.91782,.91782,.91782,1,.896,.896,.896,.9332,.9332,.95973,1,1.26,1,1,.80479,.80178,1,1,.85633,1,1,1,1,.97276,1,1,1,.698,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.14542,1,.79199,.78694,1.02058,1.03493,1.05486,1,1,1.23026,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.20006,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.MyriadProBoldItalicFactors=n;const r={lineHeight:1.2,lineGap:.2};e.MyriadProBoldItalicMetrics=r;const o=[1.36898,1,1,.65507,.84943,.85639,.88465,.88465,.86936,.88307,.86948,.85283,.85283,1.06383,1.02058,.75945,.9219,.75945,1.17337,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.88465,.75945,.75945,1.02058,1.02058,1.02058,.69046,.70926,.85158,.77812,.76852,.89591,.70466,.76125,.80094,.86822,.83864,.728,.77212,.79475,.93637,.87514,.8588,.76013,.8588,.72421,.69866,.77598,.85991,.80811,.87832,.78112,.77512,.8562,1.0222,1.18417,1.0222,1.27014,.89903,1.15012,.93859,.94399,.846,.94399,.81453,1.0186,.94219,.96017,1.03075,1.02175,.912,1.03075,.96998,.96017,.93859,.94399,.94399,.95493,.746,1.12658,.94578,.91,.979,.882,.882,.83,.85034,.83537,.85034,1.02058,.70869,.88465,.88465,.88465,.88465,.83537,.90083,1.15012,.9161,.94565,.73541,1.02058,.53609,.69353,.79519,1.08595,1,1,1.15012,1,.91974,.75945,1.15012,1,.9446,.73361,.9005,.9005,.9005,.62864,.85158,.85158,.85158,.85158,.85158,.85158,.773,.76852,.70466,.70466,.70466,.70466,.83864,.83864,.83864,.83864,.90561,.87514,.8588,.8588,.8588,.8588,.8588,1.02058,.85751,.85991,.85991,.85991,.85991,.77512,.76013,.88075,.93859,.93859,.93859,.93859,.93859,.93859,.8075,.846,.81453,.81453,.81453,.81453,.82424,.82424,.82424,.82424,.9278,.96017,.93859,.93859,.93859,.93859,.93859,1.08595,.8562,.94578,.94578,.94578,.94578,.882,.94578,.882,.85158,.93859,.85158,.93859,.85158,.93859,.76852,.846,.76852,.846,.76852,.846,.76852,.846,.89591,.8544,.90561,.94399,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.70466,.81453,.80094,.94219,.80094,.94219,.80094,.94219,1,1,.86822,.96017,.86822,.96017,.83864,.82424,.83864,.82424,.83864,.82424,.83864,1.03075,.83864,.82424,.81402,1.02738,.728,1.02175,1,1,.912,.79475,1.03075,1,1,.79475,.83911,.79475,.66266,.80553,1.06676,.87514,.96017,1,1,.87514,.96017,.86865,.87396,.96017,.8588,.93859,.8588,.93859,.8588,.93859,.867,.84759,.72421,.95493,1,1,.72421,.95493,.69866,.746,.69866,.746,1,1,.69866,.746,1,1,.77598,.88417,.77598,1.12658,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.85991,.94578,.87832,.979,.77512,.882,.77512,.8562,.83,.8562,.83,.8562,.83,1,.88465,.85158,.93859,.773,.8075,.85751,.8562,1,1,.77598,1.12658,1.15012,1.15012,1.15012,1.15012,1.15012,1.15313,1.15012,1.15012,1.15012,1.08106,1.03901,.85158,.77025,.62264,.7646,.65351,.86026,.69461,.89947,1.03075,.85158,.77812,.76449,.88836,.70466,.8562,.86822,.8588,.83864,.77212,.85308,.93637,.87514,.82352,.8588,.85701,.76013,.89058,.77598,.8156,.82565,.78112,.77899,.89386,.83864,.8156,.9486,.92388,.96186,1.03075,.91123,.9486,.93298,.878,.93942,.92388,.84596,.96186,.95119,1.03075,.922,.88787,.95829,.88,.93559,.93859,.78815,.93758,1,.89217,1.03737,.91123,.93969,.77487,.85769,.86799,1.03075,.91123,.93859,.91123,.86799,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87832,.979,.87832,.979,.87832,.979,.77512,.882,.9219,1,.89903,1,1,1,.87321,.87321,.87321,1,1.027,1.027,1.027,.86847,.86847,.79121,1,1.124,1,1,.73572,.73572,1,1,.85034,1,1,1,1,.88465,1,1,1,.669,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.04828,1,.74948,.75187,1.02058,.98391,1.02119,1,1,1.06233,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05233,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.MyriadProItalicFactors=o;const a={lineHeight:1.2,lineGap:.2};e.MyriadProItalicMetrics=a;const c=[1.36898,1,1,.76305,.82784,.94935,.89364,.92241,.89073,.90706,.98472,.85283,.85283,1.0664,1.02058,.74505,.9219,.74505,1.23456,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.92241,.74505,.74505,1.02058,1.02058,1.02058,.73002,.72601,.91755,.8126,.80314,.92222,.73764,.79726,.83051,.90284,.86023,.74,.8126,.84869,.96518,.91115,.8858,.79761,.8858,.74498,.73914,.81363,.89591,.83659,.89633,.85608,.8111,.90531,1.0222,1.22736,1.0222,1.27014,.89903,.90088,.86667,1.0231,.896,1.01411,.90083,1.05099,1.00512,.99793,1.05326,1.09377,.938,1.06226,1.00119,.99793,.98714,1.0231,1.01231,.98196,.792,1.19137,.99074,.962,1.01915,.926,.942,.856,.85034,.92006,.85034,1.02058,.69067,.92241,.92241,.92241,.92241,.92006,.9332,.90088,.91882,.93484,.75339,1.02058,.56866,.54324,.79519,1.08595,1,1,.90088,1,.95325,.74505,.90088,1,.97198,.75339,.91009,.91009,.91009,.66466,.91755,.91755,.91755,.91755,.91755,.91755,.788,.80314,.73764,.73764,.73764,.73764,.86023,.86023,.86023,.86023,.92915,.91115,.8858,.8858,.8858,.8858,.8858,1.02058,.8858,.89591,.89591,.89591,.89591,.8111,.79611,.89713,.86667,.86667,.86667,.86667,.86667,.86667,.86936,.896,.90083,.90083,.90083,.90083,.84224,.84224,.84224,.84224,.97276,.99793,.98714,.98714,.98714,.98714,.98714,1.08595,.89876,.99074,.99074,.99074,.99074,.942,1.0231,.942,.91755,.86667,.91755,.86667,.91755,.86667,.80314,.896,.80314,.896,.80314,.896,.80314,.896,.92222,.93372,.92915,1.01411,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.73764,.90083,.83051,1.00512,.83051,1.00512,.83051,1.00512,1,1,.90284,.99793,.90976,.99793,.86023,.84224,.86023,.84224,.86023,.84224,.86023,1.05326,.86023,.84224,.82873,1.07469,.74,1.09377,1,1,.938,.84869,1.06226,1,1,.84869,.83704,.84869,.81441,.85588,1.08927,.91115,.99793,1,1,.91115,.99793,.91887,.90991,.99793,.8858,.98714,.8858,.98714,.8858,.98714,.894,.91434,.74498,.98196,1,1,.74498,.98196,.73914,.792,.73914,.792,1,1,.73914,.792,1,1,.81363,.904,.81363,1.19137,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89591,.99074,.89633,1.01915,.8111,.942,.8111,.90531,.856,.90531,.856,.90531,.856,1,.92241,.91755,.86667,.788,.86936,.8858,.89876,1,1,.81363,1.19137,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90088,.90388,1.03901,.92138,.78105,.7154,.86169,.80513,.94007,.82528,.98612,1.06226,.91755,.8126,.81884,.92819,.73764,.90531,.90284,.8858,.86023,.8126,.91172,.96518,.91115,.83089,.8858,.87791,.79761,.89297,.81363,.88157,.89992,.85608,.81992,.94307,.86023,.88157,.95308,.98699,.99793,1.06226,.95817,.95308,.97358,.928,.98088,.98699,.92761,.99793,.96017,1.06226,.986,.944,.95978,.938,.96705,.98714,.80442,.98972,1,.89762,1.04552,.95817,.99007,.87064,.91879,.88888,1.06226,.95817,.98714,.95817,.88888,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.89633,1.01915,.89633,1.01915,.89633,1.01915,.8111,.942,.9219,1,.89903,1,1,1,.93173,.93173,.93173,1,1.06304,1.06304,1.06904,.89903,.89903,.80549,1,1.156,1,1,.76575,.76575,1,1,.72458,1,1,1,1,.92241,1,1,1,.619,1,1.36145,1,1,1,1,1,1,1,1,1,1,1,1.07257,1,.74705,.71119,1.02058,1.024,1.02119,1,1,1.1536,1.08595,1.08595,1,1.08595,1.08595,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.05638,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.MyriadProRegularFactors=c;const l={lineHeight:1.2,lineGap:.2};e.MyriadProRegularMetrics=l},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.SegoeuiRegularMetrics=e.SegoeuiRegularFactors=e.SegoeuiItalicMetrics=e.SegoeuiItalicFactors=e.SegoeuiBoldMetrics=e.SegoeuiBoldItalicMetrics=e.SegoeuiBoldItalicFactors=e.SegoeuiBoldFactors=void 0;const s=[1.76738,1,1,.99297,.9824,1.04016,1.06497,1.03424,.97529,1.17647,1.23203,1.1085,1.1085,1.16939,1.2107,.9754,1.21408,.9754,1.59578,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,1.03424,.81378,.81378,1.2107,1.2107,1.2107,.71703,.97847,.97363,.88776,.8641,1.02096,.79795,.85132,.914,1.06085,1.1406,.8007,.89858,.83693,1.14889,1.09398,.97489,.92094,.97489,.90399,.84041,.95923,1.00135,1,1.06467,.98243,.90996,.99361,1.1085,1.56942,1.1085,1.2107,.74627,.94282,.96752,1.01519,.86304,1.01359,.97278,1.15103,1.01359,.98561,1.02285,1.02285,1.00527,1.02285,1.0302,.99041,1.0008,1.01519,1.01359,1.02258,.79104,1.16862,.99041,.97454,1.02511,.99298,.96752,.95801,.94856,1.16579,.94856,1.2107,.9824,1.03424,1.03424,1,1.03424,1.16579,.8727,1.3871,1.18622,1.10818,1.04478,1.2107,1.18622,.75155,.94994,1.28826,1.21408,1.21408,.91056,1,.91572,.9754,.64663,1.18328,1.24866,1.04478,1.14169,1.15749,1.17389,.71703,.97363,.97363,.97363,.97363,.97363,.97363,.93506,.8641,.79795,.79795,.79795,.79795,1.1406,1.1406,1.1406,1.1406,1.02096,1.09398,.97426,.97426,.97426,.97426,.97426,1.2107,.97489,1.00135,1.00135,1.00135,1.00135,.90996,.92094,1.02798,.96752,.96752,.96752,.96752,.96752,.96752,.93136,.86304,.97278,.97278,.97278,.97278,1.02285,1.02285,1.02285,1.02285,.97122,.99041,1,1,1,1,1,1.28826,1.0008,.99041,.99041,.99041,.99041,.96752,1.01519,.96752,.97363,.96752,.97363,.96752,.97363,.96752,.8641,.86304,.8641,.86304,.8641,.86304,.8641,.86304,1.02096,1.03057,1.02096,1.03517,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.79795,.97278,.914,1.01359,.914,1.01359,.914,1.01359,1,1,1.06085,.98561,1.06085,1.00879,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,1.1406,1.02285,.97138,1.08692,.8007,1.02285,1,1,1.00527,.83693,1.02285,1,1,.83693,.9455,.83693,.90418,.83693,1.13005,1.09398,.99041,1,1,1.09398,.99041,.96692,1.09251,.99041,.97489,1.0008,.97489,1.0008,.97489,1.0008,.93994,.97931,.90399,1.02258,1,1,.90399,1.02258,.84041,.79104,.84041,.79104,.84041,.79104,.84041,.79104,1,1,.95923,1.07034,.95923,1.16862,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.00135,.99041,1.06467,1.02511,.90996,.96752,.90996,.99361,.95801,.99361,.95801,.99361,.95801,1.07733,1.03424,.97363,.96752,.93506,.93136,.97489,1.0008,1,1,.95923,1.16862,1.15103,1.15103,1.01173,1.03959,.75953,.81378,.79912,1.15103,1.21994,.95161,.87815,1.01149,.81525,.7676,.98167,1.01134,1.02546,.84097,1.03089,1.18102,.97363,.88776,.85134,.97826,.79795,.99361,1.06085,.97489,1.1406,.89858,1.0388,1.14889,1.09398,.86039,.97489,1.0595,.92094,.94793,.95923,.90996,.99346,.98243,1.02112,.95493,1.1406,.90996,1.03574,1.02597,1.0008,1.18102,1.06628,1.03574,1.0192,1.01932,1.00886,.97531,1.0106,1.0008,1.13189,1.18102,1.02277,.98683,1.0016,.99561,1.07237,1.0008,.90434,.99921,.93803,.8965,1.23085,1.06628,1.04983,.96268,1.0499,.98439,1.18102,1.06628,1.0008,1.06628,.98439,.79795,1,1,1,1,1,1,1,1,1,1,1,1,1.09466,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.97278,1,1,1,1,1,1,1,1,1,1,1,1,1.02065,1,1,1,1,1,1,1.06467,1.02511,1.06467,1.02511,1.06467,1.02511,.90996,.96752,1,1.21408,.89903,1,1,.75155,1.04394,1.04394,1.04394,1.04394,.98633,.98633,.98633,.73047,.73047,1.20642,.91211,1.25635,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.12454,.93503,1.03424,1.19687,1.03424,1,1,1,.771,1,1,1.15749,1.15749,1.15749,1.10948,.86279,.94434,.86279,.94434,.86182,1,1,1.16897,1,.96085,.90137,1.2107,1.18416,1.13973,.69825,.9716,2.10339,1.29004,1.29004,1.21172,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18874,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.09193,1.09193,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.SegoeuiBoldFactors=s;const i={lineHeight:1.33008,lineGap:0};e.SegoeuiBoldMetrics=i;const n=[1.76738,1,1,.98946,1.03959,1.04016,1.02809,1.036,.97639,1.10953,1.23203,1.11144,1.11144,1.16939,1.21237,.9754,1.21261,.9754,1.59754,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,1.036,.81378,.81378,1.21237,1.21237,1.21237,.73541,.97847,.97363,.89723,.87897,1.0426,.79429,.85292,.91149,1.05815,1.1406,.79631,.90128,.83853,1.04396,1.10615,.97552,.94436,.97552,.88641,.80527,.96083,1.00135,1,1.06777,.9817,.91142,.99361,1.11144,1.57293,1.11144,1.21237,.74627,1.31818,1.06585,.97042,.83055,.97042,.93503,1.1261,.97042,.97922,1.14236,.94552,1.01054,1.14236,1.02471,.97922,.94165,.97042,.97042,1.0276,.78929,1.1261,.97922,.95874,1.02197,.98507,.96752,.97168,.95107,1.16579,.95107,1.21237,1.03959,1.036,1.036,1,1.036,1.16579,.87357,1.31818,1.18754,1.26781,1.05356,1.21237,1.18622,.79487,.94994,1.29004,1.24047,1.24047,1.31818,1,.91484,.9754,1.31818,1.1349,1.24866,1.05356,1.13934,1.15574,1.17389,.73541,.97363,.97363,.97363,.97363,.97363,.97363,.94385,.87897,.79429,.79429,.79429,.79429,1.1406,1.1406,1.1406,1.1406,1.0426,1.10615,.97552,.97552,.97552,.97552,.97552,1.21237,.97552,1.00135,1.00135,1.00135,1.00135,.91142,.94436,.98721,1.06585,1.06585,1.06585,1.06585,1.06585,1.06585,.96705,.83055,.93503,.93503,.93503,.93503,1.14236,1.14236,1.14236,1.14236,.93125,.97922,.94165,.94165,.94165,.94165,.94165,1.29004,.94165,.97922,.97922,.97922,.97922,.96752,.97042,.96752,.97363,1.06585,.97363,1.06585,.97363,1.06585,.87897,.83055,.87897,.83055,.87897,.83055,.87897,.83055,1.0426,1.0033,1.0426,.97042,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.79429,.93503,.91149,.97042,.91149,.97042,.91149,.97042,1,1,1.05815,.97922,1.05815,.97922,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,1.1406,1.14236,.97441,1.04302,.79631,1.01582,1,1,1.01054,.83853,1.14236,1,1,.83853,1.09125,.83853,.90418,.83853,1.19508,1.10615,.97922,1,1,1.10615,.97922,1.01034,1.10466,.97922,.97552,.94165,.97552,.94165,.97552,.94165,.91602,.91981,.88641,1.0276,1,1,.88641,1.0276,.80527,.78929,.80527,.78929,.80527,.78929,.80527,.78929,1,1,.96083,1.05403,.95923,1.16862,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.00135,.97922,1.06777,1.02197,.91142,.96752,.91142,.99361,.97168,.99361,.97168,.99361,.97168,1.23199,1.036,.97363,1.06585,.94385,.96705,.97552,.94165,1,1,.96083,1.1261,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,1.31818,.95161,1.27126,1.00811,.83284,.77702,.99137,.95253,1.0347,.86142,1.07205,1.14236,.97363,.89723,.86869,1.09818,.79429,.99361,1.05815,.97552,1.1406,.90128,1.06662,1.04396,1.10615,.84918,.97552,1.04694,.94436,.98015,.96083,.91142,1.00356,.9817,1.01945,.98999,1.1406,.91142,1.04961,.9898,1.00639,1.14236,1.07514,1.04961,.99607,1.02897,1.008,.9898,.95134,1.00639,1.11121,1.14236,1.00518,.97981,1.02186,1,1.08578,.94165,.99314,.98387,.93028,.93377,1.35125,1.07514,1.10687,.93491,1.04232,1.00351,1.14236,1.07514,.94165,1.07514,1.00351,.79429,1,1,1,1,1,1,1,1,1,1,1,1,1.09097,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.93503,1,1,1,1,1,1,1,1,1,1,1,1,.96609,1,1,1,1,1,1,1.06777,1.02197,1.06777,1.02197,1.06777,1.02197,.91142,.96752,1,1.21261,.89903,1,1,.75155,1.04745,1.04745,1.04745,1.04394,.98633,.98633,.98633,.72959,.72959,1.20502,.91406,1.26514,1.222,1.02956,1.03372,1.03372,.96039,1.24633,1,1.09125,.93327,1.03336,1.16541,1.036,1,1,1,.771,1,1,1.15574,1.15574,1.15574,1.15574,.86364,.94434,.86279,.94434,.86224,1,1,1.16798,1,.96085,.90068,1.21237,1.18416,1.13904,.69825,.9716,2.10339,1.29004,1.29004,1.21339,1.29004,1.29004,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18775,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.13269,1.13269,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.SegoeuiBoldItalicFactors=n;const r={lineHeight:1.33008,lineGap:0};e.SegoeuiBoldItalicMetrics=r;const o=[1.76738,1,1,.98946,1.14763,1.05365,1.06234,.96927,.92586,1.15373,1.18414,.91349,.91349,1.07403,1.17308,.78383,1.20088,.78383,1.42531,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78383,.78383,1.17308,1.17308,1.17308,.77349,.94565,.94729,.85944,.88506,.9858,.74817,.80016,.88449,.98039,.95782,.69238,.89898,.83231,.98183,1.03989,.96924,.86237,.96924,.80595,.74524,.86091,.95402,.94143,.98448,.8858,.83089,.93285,1.0949,1.39016,1.0949,1.45994,.74627,1.04839,.97454,.97454,.87207,.97454,.87533,1.06151,.97454,1.00176,1.16484,1.08132,.98047,1.16484,1.02989,1.01054,.96225,.97454,.97454,1.06598,.79004,1.16344,1.00351,.94629,.9973,.91016,.96777,.9043,.91082,.92481,.91082,1.17308,.95748,.96927,.96927,1,.96927,.92481,.80597,1.04839,1.23393,1.1781,.9245,1.17308,1.20808,.63218,.94261,1.24822,1.09971,1.09971,1.04839,1,.85273,.78032,1.04839,1.09971,1.22326,.9245,1.09836,1.13525,1.15222,.70424,.94729,.94729,.94729,.94729,.94729,.94729,.85498,.88506,.74817,.74817,.74817,.74817,.95782,.95782,.95782,.95782,.9858,1.03989,.96924,.96924,.96924,.96924,.96924,1.17308,.96924,.95402,.95402,.95402,.95402,.83089,.86237,.88409,.97454,.97454,.97454,.97454,.97454,.97454,.92916,.87207,.87533,.87533,.87533,.87533,.93146,.93146,.93146,.93146,.93854,1.01054,.96225,.96225,.96225,.96225,.96225,1.24822,.8761,1.00351,1.00351,1.00351,1.00351,.96777,.97454,.96777,.94729,.97454,.94729,.97454,.94729,.97454,.88506,.87207,.88506,.87207,.88506,.87207,.88506,.87207,.9858,.95391,.9858,.97454,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.74817,.87533,.88449,.97454,.88449,.97454,.88449,.97454,1,1,.98039,1.00176,.98039,1.00176,.95782,.93146,.95782,.93146,.95782,.93146,.95782,1.16484,.95782,.93146,.84421,1.12761,.69238,1.08132,1,1,.98047,.83231,1.16484,1,1,.84723,1.04861,.84723,.78755,.83231,1.23736,1.03989,1.01054,1,1,1.03989,1.01054,.9857,1.03849,1.01054,.96924,.96225,.96924,.96225,.96924,.96225,.92383,.90171,.80595,1.06598,1,1,.80595,1.06598,.74524,.79004,.74524,.79004,.74524,.79004,.74524,.79004,1,1,.86091,1.02759,.85771,1.16344,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.95402,1.00351,.98448,.9973,.83089,.96777,.83089,.93285,.9043,.93285,.9043,.93285,.9043,1.31868,.96927,.94729,.97454,.85498,.92916,.96924,.8761,1,1,.86091,1.16344,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,1.04839,.81965,.81965,.94729,.78032,.71022,.90883,.84171,.99877,.77596,1.05734,1.2,.94729,.85944,.82791,.9607,.74817,.93285,.98039,.96924,.95782,.89898,.98316,.98183,1.03989,.78614,.96924,.97642,.86237,.86075,.86091,.83089,.90082,.8858,.97296,1.01284,.95782,.83089,1.0976,1.04,1.03342,1.2,1.0675,1.0976,.98205,1.03809,1.05097,1.04,.95364,1.03342,1.05401,1.2,1.02148,1.0119,1.04724,1.0127,1.02732,.96225,.8965,.97783,.93574,.94818,1.30679,1.0675,1.11826,.99821,1.0557,1.0326,1.2,1.0675,.96225,1.0675,1.0326,.74817,1,1,1,1,1,1,1,1,1,1,1,1,1.03754,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.87533,1,1,1,1,1,1,1,1,1,1,1,1,.98705,1,1,1,1,1,1,.98448,.9973,.98448,.9973,.98448,.9973,.83089,.96777,1,1.20088,.89903,1,1,.75155,.94945,.94945,.94945,.94945,1.12317,1.12317,1.12317,.67603,.67603,1.15621,.73584,1.21191,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87709,.96927,1.01473,.96927,1,1,1,.77295,1,1,1.09836,1.09836,1.09836,1.01522,.86321,.94434,.8649,.94434,.86182,1,1,1.083,1,.91578,.86438,1.17308,1.18416,1.14589,.69825,.97622,1.96791,1.24822,1.24822,1.17308,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.17984,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10742,1.10742,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1];e.SegoeuiItalicFactors=o;const a={lineHeight:1.33008,lineGap:0};e.SegoeuiItalicMetrics=a;const c=[1.76738,1,1,.98594,1.02285,1.10454,1.06234,.96927,.92037,1.19985,1.2046,.90616,.90616,1.07152,1.1714,.78032,1.20088,.78032,1.40246,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.96927,.78032,.78032,1.1714,1.1714,1.1714,.80597,.94084,.96706,.85944,.85734,.97093,.75842,.79936,.88198,.9831,.95782,.71387,.86969,.84636,1.07796,1.03584,.96924,.83968,.96924,.82826,.79649,.85771,.95132,.93119,.98965,.88433,.8287,.93365,1.08612,1.3638,1.08612,1.45786,.74627,.80499,.91484,1.05707,.92383,1.05882,.9403,1.12654,1.05882,1.01756,1.09011,1.09011,.99414,1.09011,1.034,1.01756,1.05356,1.05707,1.05882,1.04399,.84863,1.21968,1.01756,.95801,1.00068,.91797,.96777,.9043,.90351,.92105,.90351,1.1714,.85337,.96927,.96927,.99912,.96927,.92105,.80597,1.2434,1.20808,1.05937,.90957,1.1714,1.20808,.75155,.94261,1.24644,1.09971,1.09971,.84751,1,.85273,.78032,.61584,1.05425,1.17914,.90957,1.08665,1.11593,1.14169,.73381,.96706,.96706,.96706,.96706,.96706,.96706,.86035,.85734,.75842,.75842,.75842,.75842,.95782,.95782,.95782,.95782,.97093,1.03584,.96924,.96924,.96924,.96924,.96924,1.1714,.96924,.95132,.95132,.95132,.95132,.8287,.83968,.89049,.91484,.91484,.91484,.91484,.91484,.91484,.93575,.92383,.9403,.9403,.9403,.9403,.8717,.8717,.8717,.8717,1.00527,1.01756,1.05356,1.05356,1.05356,1.05356,1.05356,1.24644,.95923,1.01756,1.01756,1.01756,1.01756,.96777,1.05707,.96777,.96706,.91484,.96706,.91484,.96706,.91484,.85734,.92383,.85734,.92383,.85734,.92383,.85734,.92383,.97093,1.0969,.97093,1.05882,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.75842,.9403,.88198,1.05882,.88198,1.05882,.88198,1.05882,1,1,.9831,1.01756,.9831,1.01756,.95782,.8717,.95782,.8717,.95782,.8717,.95782,1.09011,.95782,.8717,.84784,1.11551,.71387,1.09011,1,1,.99414,.84636,1.09011,1,1,.84636,1.0536,.84636,.94298,.84636,1.23297,1.03584,1.01756,1,1,1.03584,1.01756,1.00323,1.03444,1.01756,.96924,1.05356,.96924,1.05356,.96924,1.05356,.93066,.98293,.82826,1.04399,1,1,.82826,1.04399,.79649,.84863,.79649,.84863,.79649,.84863,.79649,.84863,1,1,.85771,1.17318,.85771,1.21968,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.95132,1.01756,.98965,1.00068,.8287,.96777,.8287,.93365,.9043,.93365,.9043,.93365,.9043,1.08571,.96927,.96706,.91484,.86035,.93575,.96924,.95923,1,1,.85771,1.21968,1.11437,1.11437,.93109,.91202,.60411,.84164,.55572,1.01173,.97361,.81818,.81818,.96635,.78032,.72727,.92366,.98601,1.03405,.77968,1.09799,1.2,.96706,.85944,.85638,.96491,.75842,.93365,.9831,.96924,.95782,.86969,.94152,1.07796,1.03584,.78437,.96924,.98715,.83968,.83491,.85771,.8287,.94492,.88433,.9287,1.0098,.95782,.8287,1.0625,.98248,1.03424,1.2,1.01071,1.0625,.95246,1.03809,1.04912,.98248,1.00221,1.03424,1.05443,1.2,1.04785,.99609,1.00169,1.05176,.99346,1.05356,.9087,1.03004,.95542,.93117,1.23362,1.01071,1.07831,1.02512,1.05205,1.03502,1.2,1.01071,1.05356,1.01071,1.03502,.75842,1,1,1,1,1,1,1,1,1,1,1,1,1.03719,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,.9403,1,1,1,1,1,1,1,1,1,1,1,1,1.04021,1,1,1,1,1,1,.98965,1.00068,.98965,1.00068,.98965,1.00068,.8287,.96777,1,1.20088,.89903,1,1,.75155,1.03077,1.03077,1.03077,1.03077,1.13196,1.13196,1.13196,.67428,.67428,1.16039,.73291,1.20996,1.22135,1.06483,.94868,.94868,.95996,1.24633,1,1.07497,.87796,.96927,1.01518,.96927,1,1,1,.77295,1,1,1.10539,1.10539,1.11358,1.06967,.86279,.94434,.86279,.94434,.86182,1,1,1.083,1,.91578,.86507,1.1714,1.18416,1.14589,.69825,.97622,1.9697,1.24822,1.24822,1.17238,1.24822,1.24822,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1.42603,1,.99862,.99862,1,.87025,.87025,.87025,.87025,1.18083,1.42603,1,1.42603,1.42603,.99862,1,1,1,1,1,1.2886,1.04315,1.15296,1.34163,1,1,1,1.10938,1.10938,1,1,1,1.05425,1.09971,1.09971,1.09971,1,1,1,1,1,1,1,1,1,1,1];e.SegoeuiRegularFactors=c;const l={lineHeight:1.33008,lineGap:0};e.SegoeuiRegularMetrics=l},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.PostScriptEvaluator=e.PostScriptCompiler=e.PDFFunctionFactory=void 0;e.isPDFFunction=u;var i=s(4);var n=s(2);var r=s(58);var o=s(5);var a=s(59);class c{constructor({xref:t,isEvalSupported:e=true}){this.xref=t;this.isEvalSupported=e!==false}create(t){const e=this.getCached(t);if(e){return e}const s=h.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:t instanceof i.Ref?this.xref.fetch(t):t});this._cache(t,s);return s}createFromArray(t){const e=this.getCached(t);if(e){return e}const s=h.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:t instanceof i.Ref?this.xref.fetch(t):t});this._cache(t,s);return s}getCached(t){let e;if(t instanceof i.Ref){e=t}else if(t instanceof i.Dict){e=t.objId}else if(t instanceof o.BaseStream){e=t.dict?.objId}if(e){const t=this._localFunctionCache.getByRef(e);if(t){return t}}return null}_cache(t,e){if(!e){throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.')}let s;if(t instanceof i.Ref){s=t}else if(t instanceof i.Dict){s=t.objId}else if(t instanceof o.BaseStream){s=t.dict?.objId}if(s){this._localFunctionCache.set(null,s,e)}}get _localFunctionCache(){return(0,n.shadow)(this,"_localFunctionCache",new a.LocalFunctionCache)}}e.PDFFunctionFactory=c;function l(t){if(!Array.isArray(t)){return null}const e=t.length;for(let s=0;s<e;s++){if(typeof t[s]!=="number"){const s=new Array(e);for(let i=0;i<e;i++){s[i]=+t[i]}return s}}return t}class h{static getSampleArray(t,e,s,i){let n,r;let o=1;for(n=0,r=t.length;n<r;n++){o*=t[n]}o*=e;const a=new Array(o);let c=0;let l=0;const h=1/(2**s-1);const u=i.getBytes((o*s+7)/8);let f=0;for(n=0;n<o;n++){while(c<s){l<<=8;l|=u[f++];c+=8}c-=s;a[n]=(l>>c)*h;l&=(1<<c)-1}return a}static parse({xref:t,isEvalSupported:e,fn:s}){const i=s.dict||s;const r=i.get("FunctionType");switch(r){case 0:return this.constructSampled({xref:t,isEvalSupported:e,fn:s,dict:i});case 1:break;case 2:return this.constructInterpolated({xref:t,isEvalSupported:e,dict:i});case 3:return this.constructStiched({xref:t,isEvalSupported:e,dict:i});case 4:return this.constructPostScript({xref:t,isEvalSupported:e,fn:s,dict:i})}throw new n.FormatError("Unknown type of function")}static parseArray({xref:t,isEvalSupported:e,fnObj:s}){if(!Array.isArray(s)){return this.parse({xref:t,isEvalSupported:e,fn:s})}const i=[];for(const n of s){i.push(this.parse({xref:t,isEvalSupported:e,fn:t.fetchIfRef(n)}))}return function(t,e,s,n){for(let r=0,o=i.length;r<o;r++){i[r](t,e,s,n+r)}}}static constructSampled({xref:t,isEvalSupported:e,fn:s,dict:i}){function r(t){const e=t.length;const s=[];let i=0;for(let n=0;n<e;n+=2){s[i++]=[t[n],t[n+1]]}return s}function o(t,e,s,i,n){return i+(t-e)*((n-i)/(s-e))}let a=l(i.getArray("Domain"));let c=l(i.getArray("Range"));if(!a||!c){throw new n.FormatError("No domain or range")}const h=a.length/2;const u=c.length/2;a=r(a);c=r(c);const f=l(i.getArray("Size"));const d=i.get("BitsPerSample");const p=i.get("Order")||1;if(p!==1){(0,n.info)("No support for cubic spline interpolation: "+p)}let g=l(i.getArray("Encode"));if(!g){g=[];for(let t=0;t<h;++t){g.push([0,f[t]-1])}}else{g=r(g)}let m=l(i.getArray("Decode"));m=!m?c:r(m);const w=this.getSampleArray(f,u,d,s);return function t(e,s,i,n){const r=1<<h;const l=new Float64Array(r);const d=new Uint32Array(r);let p,b;for(b=0;b<r;b++){l[b]=1}let y=u,A=1;for(p=0;p<h;++p){const t=a[p][0];const i=a[p][1];const n=Math.min(Math.max(e[s+p],t),i);let c=o(n,t,i,g[p][0],g[p][1]);const h=f[p];c=Math.min(Math.max(c,0),h-1);const u=c<h-1?Math.floor(c):c-1;const m=u+1-c;const w=c-u;const v=u*y;const x=v+y;for(b=0;b<r;b++){if(b&A){l[b]*=w;d[b]+=x}else{l[b]*=m;d[b]+=v}}y*=h;A<<=1}for(b=0;b<u;++b){let t=0;for(p=0;p<r;p++){t+=w[d[p]+b]*l[p]}t=o(t,0,1,m[b][0],m[b][1]);i[n+b]=Math.min(Math.max(t,c[b][0]),c[b][1])}}}static constructInterpolated({xref:t,isEvalSupported:e,dict:s}){const i=l(s.getArray("C0"))||[0];const n=l(s.getArray("C1"))||[1];const r=s.get("N");const o=[];for(let t=0,e=i.length;t<e;++t){o.push(n[t]-i[t])}const a=o.length;return function t(e,s,n,c){const l=r===1?e[s]:e[s]**r;for(let t=0;t<a;++t){n[c+t]=i[t]+l*o[t]}}}static constructStiched({xref:t,isEvalSupported:e,dict:s}){const i=l(s.getArray("Domain"));if(!i){throw new n.FormatError("No domain")}const r=i.length/2;if(r!==1){throw new n.FormatError("Bad domain for stiched function")}const o=[];for(const i of s.get("Functions")){o.push(this.parse({xref:t,isEvalSupported:e,fn:t.fetchIfRef(i)}))}const a=l(s.getArray("Bounds"));const c=l(s.getArray("Encode"));const h=new Float32Array(1);return function t(e,s,n,r){const l=function t(e,s,i){if(e>i){e=i}else if(e<s){e=s}return e};const u=l(e[s],i[0],i[1]);const f=a.length;let d;for(d=0;d<f;++d){if(u<a[d]){break}}let p=i[0];if(d>0){p=a[d-1]}let g=i[1];if(d<a.length){g=a[d]}const m=c[2*d];const w=c[2*d+1];h[0]=p===g?m:m+(u-p)*(w-m)/(g-p);o[d](h,0,n,r)}}static constructPostScript({xref:t,isEvalSupported:e,fn:s,dict:i}){const o=l(i.getArray("Domain"));const a=l(i.getArray("Range"));if(!o){throw new n.FormatError("No domain.")}if(!a){throw new n.FormatError("No range.")}const c=new r.PostScriptLexer(s);const h=new r.PostScriptParser(c);const u=h.parse();if(e&&n.FeatureTest.isEvalSupported){const t=(new C).compile(u,o,a);if(t){return new Function("src","srcOffset","dest","destOffset",t)}}(0,n.info)("Unable to compile PS function");const f=a.length>>1;const p=o.length>>1;const g=new d(u);const m=Object.create(null);const w=2048*4;let b=w;const y=new Float32Array(p);return function t(e,s,i,n){let r,o;let c="";const l=y;for(r=0;r<p;r++){o=e[s+r];l[r]=o;c+=o+"_"}const h=m[c];if(h!==undefined){i.set(h,n);return}const u=new Float32Array(f);const d=g.execute(l);const w=d.length-f;for(r=0;r<f;r++){o=d[w+r];let t=a[r*2];if(o<t){o=t}else{t=a[r*2+1];if(o>t){o=t}}u[r]=o}if(b>0){b--;m[c]=u}i.set(u,n)}}}function u(t){let e;if(t instanceof i.Dict){e=t}else if(t instanceof o.BaseStream){e=t.dict}else{return false}return e.has("FunctionType")}class f{static MAX_STACK_SIZE=100;constructor(t){this.stack=t?Array.from(t):[]}push(t){if(this.stack.length>=f.MAX_STACK_SIZE){throw new Error("PostScript function stack overflow.")}this.stack.push(t)}pop(){if(this.stack.length<=0){throw new Error("PostScript function stack underflow.")}return this.stack.pop()}copy(t){if(this.stack.length+t>=f.MAX_STACK_SIZE){throw new Error("PostScript function stack overflow.")}const e=this.stack;for(let s=e.length-t,i=t-1;i>=0;i--,s++){e.push(e[s])}}index(t){this.push(this.stack[this.stack.length-t-1])}roll(t,e){const s=this.stack;const i=s.length-t;const n=s.length-1;const r=i+(e-Math.floor(e/t)*t);for(let t=i,e=n;t<e;t++,e--){const i=s[t];s[t]=s[e];s[e]=i}for(let t=i,e=r-1;t<e;t++,e--){const i=s[t];s[t]=s[e];s[e]=i}for(let t=r,e=n;t<e;t++,e--){const i=s[t];s[t]=s[e];s[e]=i}}}class d{constructor(t){this.operators=t}execute(t){const e=new f(t);let s=0;const i=this.operators;const r=i.length;let o,a,c;while(s<r){o=i[s++];if(typeof o==="number"){e.push(o);continue}switch(o){case"jz":c=e.pop();a=e.pop();if(!a){s=c}break;case"j":a=e.pop();s=a;break;case"abs":a=e.pop();e.push(Math.abs(a));break;case"add":c=e.pop();a=e.pop();e.push(a+c);break;case"and":c=e.pop();a=e.pop();if(typeof a==="boolean"&&typeof c==="boolean"){e.push(a&&c)}else{e.push(a&c)}break;case"atan":c=e.pop();a=e.pop();a=Math.atan2(a,c)/Math.PI*180;if(a<0){a+=360}e.push(a);break;case"bitshift":c=e.pop();a=e.pop();if(a>0){e.push(a<<c)}else{e.push(a>>c)}break;case"ceiling":a=e.pop();e.push(Math.ceil(a));break;case"copy":a=e.pop();e.copy(a);break;case"cos":a=e.pop();e.push(Math.cos(a%360/180*Math.PI));break;case"cvi":a=e.pop()|0;e.push(a);break;case"cvr":break;case"div":c=e.pop();a=e.pop();e.push(a/c);break;case"dup":e.copy(1);break;case"eq":c=e.pop();a=e.pop();e.push(a===c);break;case"exch":e.roll(2,1);break;case"exp":c=e.pop();a=e.pop();e.push(a**c);break;case"false":e.push(false);break;case"floor":a=e.pop();e.push(Math.floor(a));break;case"ge":c=e.pop();a=e.pop();e.push(a>=c);break;case"gt":c=e.pop();a=e.pop();e.push(a>c);break;case"idiv":c=e.pop();a=e.pop();e.push(a/c|0);break;case"index":a=e.pop();e.index(a);break;case"le":c=e.pop();a=e.pop();e.push(a<=c);break;case"ln":a=e.pop();e.push(Math.log(a));break;case"log":a=e.pop();e.push(Math.log10(a));break;case"lt":c=e.pop();a=e.pop();e.push(a<c);break;case"mod":c=e.pop();a=e.pop();e.push(a%c);break;case"mul":c=e.pop();a=e.pop();e.push(a*c);break;case"ne":c=e.pop();a=e.pop();e.push(a!==c);break;case"neg":a=e.pop();e.push(-a);break;case"not":a=e.pop();if(typeof a==="boolean"){e.push(!a)}else{e.push(~a)}break;case"or":c=e.pop();a=e.pop();if(typeof a==="boolean"&&typeof c==="boolean"){e.push(a||c)}else{e.push(a|c)}break;case"pop":e.pop();break;case"roll":c=e.pop();a=e.pop();e.roll(a,c);break;case"round":a=e.pop();e.push(Math.round(a));break;case"sin":a=e.pop();e.push(Math.sin(a%360/180*Math.PI));break;case"sqrt":a=e.pop();e.push(Math.sqrt(a));break;case"sub":c=e.pop();a=e.pop();e.push(a-c);break;case"true":e.push(true);break;case"truncate":a=e.pop();a=a<0?Math.ceil(a):Math.floor(a);e.push(a);break;case"xor":c=e.pop();a=e.pop();if(typeof a==="boolean"&&typeof c==="boolean"){e.push(a!==c)}else{e.push(a^c)}break;default:throw new n.FormatError(`Unknown operator ${o}`)}}return e.stack}}e.PostScriptEvaluator=d;class p{constructor(t){this.type=t}visit(t){(0,n.unreachable)("abstract method")}}class g extends p{constructor(t,e,s){super("args");this.index=t;this.min=e;this.max=s}visit(t){t.visitArgument(this)}}class m extends p{constructor(t){super("literal");this.number=t;this.min=t;this.max=t}visit(t){t.visitLiteral(this)}}class w extends p{constructor(t,e,s,i,n){super("binary");this.op=t;this.arg1=e;this.arg2=s;this.min=i;this.max=n}visit(t){t.visitBinaryOperation(this)}}class b extends p{constructor(t,e){super("max");this.arg=t;this.min=t.min;this.max=e}visit(t){t.visitMin(this)}}class y extends p{constructor(t,e,s){super("var");this.index=t;this.min=e;this.max=s}visit(t){t.visitVariable(this)}}class A extends p{constructor(t,e){super("definition");this.variable=t;this.arg=e}visit(t){t.visitVariableDefinition(this)}}class v{constructor(){this.parts=[]}visitArgument(t){this.parts.push("Math.max(",t.min,", Math.min(",t.max,", src[srcOffset + ",t.index,"]))")}visitVariable(t){this.parts.push("v",t.index)}visitLiteral(t){this.parts.push(t.number)}visitBinaryOperation(t){this.parts.push("(");t.arg1.visit(this);this.parts.push(" ",t.op," ");t.arg2.visit(this);this.parts.push(")")}visitVariableDefinition(t){this.parts.push("var ");t.variable.visit(this);this.parts.push(" = ");t.arg.visit(this);this.parts.push(";")}visitMin(t){this.parts.push("Math.min(");t.arg.visit(this);this.parts.push(", ",t.max,")")}toString(){return this.parts.join("")}}function x(t,e){if(e.type==="literal"&&e.number===0){return t}if(t.type==="literal"&&t.number===0){return e}if(e.type==="literal"&&t.type==="literal"){return new m(t.number+e.number)}return new w("+",t,e,t.min+e.min,t.max+e.max)}function k(t,e){if(e.type==="literal"){if(e.number===0){return new m(0)}else if(e.number===1){return t}else if(t.type==="literal"){return new m(t.number*e.number)}}if(t.type==="literal"){if(t.number===0){return new m(0)}else if(t.number===1){return e}}const s=Math.min(t.min*e.min,t.min*e.max,t.max*e.min,t.max*e.max);const i=Math.max(t.min*e.min,t.min*e.max,t.max*e.min,t.max*e.max);return new w("*",t,e,s,i)}function S(t,e){if(e.type==="literal"){if(e.number===0){return t}else if(t.type==="literal"){return new m(t.number-e.number)}}if(e.type==="binary"&&e.op==="-"&&t.type==="literal"&&t.number===1&&e.arg1.type==="literal"&&e.arg1.number===1){return e.arg2}return new w("-",t,e,t.min-e.max,t.max-e.min)}function M(t,e){if(t.min>=e){return new m(e)}else if(t.max<=e){return t}return new b(t,e)}class C{compile(t,e,s){const i=[];const n=[];const r=e.length>>1,o=s.length>>1;let a=0;let c,l;let h,u,f,d,p,w;for(let t=0;t<r;t++){i.push(new g(t,e[t*2],e[t*2+1]))}for(let e=0,s=t.length;e<s;e++){w=t[e];if(typeof w==="number"){i.push(new m(w));continue}switch(w){case"add":if(i.length<2){return null}u=i.pop();h=i.pop();i.push(x(h,u));break;case"cvr":if(i.length<1){return null}break;case"mul":if(i.length<2){return null}u=i.pop();h=i.pop();i.push(k(h,u));break;case"sub":if(i.length<2){return null}u=i.pop();h=i.pop();i.push(S(h,u));break;case"exch":if(i.length<2){return null}f=i.pop();d=i.pop();i.push(f,d);break;case"pop":if(i.length<1){return null}i.pop();break;case"index":if(i.length<1){return null}h=i.pop();if(h.type!=="literal"){return null}c=h.number;if(c<0||!Number.isInteger(c)||i.length<c){return null}f=i[i.length-c-1];if(f.type==="literal"||f.type==="var"){i.push(f);break}p=new y(a++,f.min,f.max);i[i.length-c-1]=p;i.push(p);n.push(new A(p,f));break;case"dup":if(i.length<1){return null}if(typeof t[e+1]==="number"&&t[e+2]==="gt"&&t[e+3]===e+7&&t[e+4]==="jz"&&t[e+5]==="pop"&&t[e+6]===t[e+1]){h=i.pop();i.push(M(h,t[e+1]));e+=6;break}f=i.at(-1);if(f.type==="literal"||f.type==="var"){i.push(f);break}p=new y(a++,f.min,f.max);i[i.length-1]=p;i.push(p);n.push(new A(p,f));break;case"roll":if(i.length<2){return null}u=i.pop();h=i.pop();if(u.type!=="literal"||h.type!=="literal"){return null}l=u.number;c=h.number;if(c<=0||!Number.isInteger(c)||!Number.isInteger(l)||i.length<c){return null}l=(l%c+c)%c;if(l===0){break}i.push(...i.splice(i.length-c,c-l));break;default:return null}}if(i.length!==o){return null}const b=[];for(const t of n){const e=new v;t.visit(e);b.push(e.toString())}for(let t=0,e=i.length;t<e;t++){const e=i[t],n=new v;e.visit(n);const r=s[t*2],o=s[t*2+1];const a=[n.toString()];if(r>e.min){a.unshift("Math.max(",r,", ");a.push(")")}if(o<e.max){a.unshift("Math.min(",o,", ");a.push(")")}a.unshift("dest[destOffset + ",t,"] = ");a.push(";");b.push(a.join(""))}return b.join("\n")}}e.PostScriptCompiler=C},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.PostScriptParser=e.PostScriptLexer=void 0;var i=s(2);var n=s(4);var r=s(3);class o{constructor(t){this.lexer=t;this.operators=[];this.token=null;this.prev=null}nextToken(){this.prev=this.token;this.token=this.lexer.getToken()}accept(t){if(this.token.type===t){this.nextToken();return true}return false}expect(t){if(this.accept(t)){return true}throw new i.FormatError(`Unexpected symbol: found ${this.token.type} expected ${t}.`)}parse(){this.nextToken();this.expect(a.LBRACE);this.parseBlock();this.expect(a.RBRACE);return this.operators}parseBlock(){while(true){if(this.accept(a.NUMBER)){this.operators.push(this.prev.value)}else if(this.accept(a.OPERATOR)){this.operators.push(this.prev.value)}else if(this.accept(a.LBRACE)){this.parseCondition()}else{return}}}parseCondition(){const t=this.operators.length;this.operators.push(null,null);this.parseBlock();this.expect(a.RBRACE);if(this.accept(a.IF)){this.operators[t]=this.operators.length;this.operators[t+1]="jz"}else if(this.accept(a.LBRACE)){const e=this.operators.length;this.operators.push(null,null);const s=this.operators.length;this.parseBlock();this.expect(a.RBRACE);this.expect(a.IFELSE);this.operators[e]=this.operators.length;this.operators[e+1]="j";this.operators[t]=s;this.operators[t+1]="jz"}else{throw new i.FormatError("PS Function: error parsing conditional.")}}}e.PostScriptParser=o;const a={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class c{static get opCache(){return(0,i.shadow)(this,"opCache",Object.create(null))}constructor(t,e){this.type=t;this.value=e}static getOperator(t){return c.opCache[t]||=new c(a.OPERATOR,t)}static get LBRACE(){return(0,i.shadow)(this,"LBRACE",new c(a.LBRACE,"{"))}static get RBRACE(){return(0,i.shadow)(this,"RBRACE",new c(a.RBRACE,"}"))}static get IF(){return(0,i.shadow)(this,"IF",new c(a.IF,"IF"))}static get IFELSE(){return(0,i.shadow)(this,"IFELSE",new c(a.IFELSE,"IFELSE"))}}class l{constructor(t){this.stream=t;this.nextChar();this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let t=false;let e=this.currentChar;while(true){if(e<0){return n.EOF}if(t){if(e===10||e===13){t=false}}else if(e===37){t=true}else if(!(0,r.isWhiteSpace)(e)){break}e=this.nextChar()}switch(e|0){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 43:case 45:case 46:return new c(a.NUMBER,this.getNumber());case 123:this.nextChar();return c.LBRACE;case 125:this.nextChar();return c.RBRACE}const s=this.strBuf;s.length=0;s[0]=String.fromCharCode(e);while((e=this.nextChar())>=0&&(e>=65&&e<=90||e>=97&&e<=122)){s.push(String.fromCharCode(e))}const i=s.join("");switch(i.toLowerCase()){case"if":return c.IF;case"ifelse":return c.IFELSE;default:return c.getOperator(i)}}getNumber(){let t=this.currentChar;const e=this.strBuf;e.length=0;e[0]=String.fromCharCode(t);while((t=this.nextChar())>=0){if(t>=48&&t<=57||t===45||t===46){e.push(String.fromCharCode(t))}else{break}}const s=parseFloat(e.join(""));if(isNaN(s)){throw new i.FormatError(`Invalid floating point number: ${s}`)}return s}}e.PostScriptLexer=l},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.RegionalImageCache=e.LocalTilingPatternCache=e.LocalImageCache=e.LocalGStateCache=e.LocalFunctionCache=e.LocalColorSpaceCache=e.GlobalImageCache=void 0;var i=s(2);var n=s(4);class r{constructor(t){if(this.constructor===r){(0,i.unreachable)("Cannot initialize BaseLocalCache.")}this._onlyRefs=t?.onlyRefs===true;if(!this._onlyRefs){this._nameRefMap=new Map;this._imageMap=new Map}this._imageCache=new n.RefSetCache}getByName(t){if(this._onlyRefs){(0,i.unreachable)("Should not call `getByName` method.")}const e=this._nameRefMap.get(t);if(e){return this.getByRef(e)}return this._imageMap.get(t)||null}getByRef(t){return this._imageCache.get(t)||null}set(t,e,s){(0,i.unreachable)("Abstract method `set` called.")}}class o extends r{set(t,e=null,s){if(typeof t!=="string"){throw new Error('LocalImageCache.set - expected "name" argument.')}if(e){if(this._imageCache.has(e)){return}this._nameRefMap.set(t,e);this._imageCache.put(e,s);return}if(this._imageMap.has(t)){return}this._imageMap.set(t,s)}}e.LocalImageCache=o;class a extends r{set(t=null,e=null,s){if(typeof t!=="string"&&!e){throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.')}if(e){if(this._imageCache.has(e)){return}if(t!==null){this._nameRefMap.set(t,e)}this._imageCache.put(e,s);return}if(this._imageMap.has(t)){return}this._imageMap.set(t,s)}}e.LocalColorSpaceCache=a;class c extends r{constructor(t){super({onlyRefs:true})}set(t=null,e,s){if(!e){throw new Error('LocalFunctionCache.set - expected "ref" argument.')}if(this._imageCache.has(e)){return}this._imageCache.put(e,s)}}e.LocalFunctionCache=c;class l extends r{set(t,e=null,s){if(typeof t!=="string"){throw new Error('LocalGStateCache.set - expected "name" argument.')}if(e){if(this._imageCache.has(e)){return}this._nameRefMap.set(t,e);this._imageCache.put(e,s);return}if(this._imageMap.has(t)){return}this._imageMap.set(t,s)}}e.LocalGStateCache=l;class h extends r{constructor(t){super({onlyRefs:true})}set(t=null,e,s){if(!e){throw new Error('LocalTilingPatternCache.set - expected "ref" argument.')}if(this._imageCache.has(e)){return}this._imageCache.put(e,s)}}e.LocalTilingPatternCache=h;class u extends r{constructor(t){super({onlyRefs:true})}set(t=null,e,s){if(!e){throw new Error('RegionalImageCache.set - expected "ref" argument.')}if(this._imageCache.has(e)){return}this._imageCache.put(e,s)}}e.RegionalImageCache=u;class f{static NUM_PAGES_THRESHOLD=2;static MIN_IMAGES_TO_CACHE=10;static MAX_BYTE_SIZE=5*i.MAX_IMAGE_SIZE_TO_CACHE;constructor(){this._refCache=new n.RefSetCache;this._imageCache=new n.RefSetCache}get _byteSize(){let t=0;for(const e of this._imageCache){t+=e.byteSize}return t}get _cacheLimitReached(){if(this._imageCache.size<f.MIN_IMAGES_TO_CACHE){return false}if(this._byteSize<f.MAX_BYTE_SIZE){return false}return true}shouldCache(t,e){let s=this._refCache.get(t);if(!s){s=new Set;this._refCache.put(t,s)}s.add(e);if(s.size<f.NUM_PAGES_THRESHOLD){return false}if(!this._imageCache.has(t)&&this._cacheLimitReached){return false}return true}addByteSize(t,e){const s=this._imageCache.get(t);if(!s){return}if(s.byteSize){return}s.byteSize=e}getData(t,e){const s=this._refCache.get(t);if(!s){return null}if(s.size<f.NUM_PAGES_THRESHOLD){return null}const i=this._imageCache.get(t);if(!i){return null}s.add(e);return i}setData(t,e){if(!this._refCache.has(t)){throw new Error('GlobalImageCache.setData - expected "shouldCache" to have been called.')}if(this._imageCache.has(t)){return}if(this._cacheLimitReached){(0,i.warn)("GlobalImageCache.setData - cache limit reached.");return}this._imageCache.put(t,e)}clear(t=false){if(!t){this._refCache.clear()}this._imageCache.clear()}}e.GlobalImageCache=f},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.bidi=p;var i=s(2);const n=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"];const r=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"];function o(t){return(t&1)!==0}function a(t){return(t&1)===0}function c(t,e,s){let i,n;for(i=e,n=t.length;i<n;++i){if(t[i]!==s){return i}}return i}function l(t,e,s,i){for(let n=e;n<s;++n){t[n]=i}}function h(t,e,s){for(let i=e,n=s-1;i<n;++i,--n){const e=t[i];t[i]=t[n];t[n]=e}}function u(t,e,s=false){let i="ltr";if(s){i="ttb"}else if(!e){i="rtl"}return{str:t,dir:i}}const f=[];const d=[];function p(t,e=-1,s=false){let p=true;const g=t.length;if(g===0||s){return u(t,p,s)}f.length=g;d.length=g;let m=0;let w,b;for(w=0;w<g;++w){f[w]=t.charAt(w);const e=t.charCodeAt(w);let s="L";if(e<=255){s=n[e]}else if(1424<=e&&e<=1524){s="R"}else if(1536<=e&&e<=1791){s=r[e&255];if(!s){(0,i.warn)("Bidi: invalid Unicode character "+e.toString(16))}}else if(1792<=e&&e<=2220||64336<=e&&e<=65023||65136<=e&&e<=65279){s="AL"}if(s==="R"||s==="AL"||s==="AN"){m++}d[w]=s}if(m===0){p=true;return u(t,p)}if(e===-1){if(m/g<.3&&g>4){p=true;e=0}else{p=false;e=1}}const y=[];for(w=0;w<g;++w){y[w]=e}const A=o(e)?"R":"L";const v=A;const x=v;let k=v;for(w=0;w<g;++w){if(d[w]==="NSM"){d[w]=k}else{k=d[w]}}k=v;let S;for(w=0;w<g;++w){S=d[w];if(S==="EN"){d[w]=k==="AL"?"AN":"EN"}else if(S==="R"||S==="L"||S==="AL"){k=S}}for(w=0;w<g;++w){S=d[w];if(S==="AL"){d[w]="R"}}for(w=1;w<g-1;++w){if(d[w]==="ES"&&d[w-1]==="EN"&&d[w+1]==="EN"){d[w]="EN"}if(d[w]==="CS"&&(d[w-1]==="EN"||d[w-1]==="AN")&&d[w+1]===d[w-1]){d[w]=d[w-1]}}for(w=0;w<g;++w){if(d[w]==="EN"){for(let t=w-1;t>=0;--t){if(d[t]!=="ET"){break}d[t]="EN"}for(let t=w+1;t<g;++t){if(d[t]!=="ET"){break}d[t]="EN"}}}for(w=0;w<g;++w){S=d[w];if(S==="WS"||S==="ES"||S==="ET"||S==="CS"){d[w]="ON"}}k=v;for(w=0;w<g;++w){S=d[w];if(S==="EN"){d[w]=k==="L"?"L":"EN"}else if(S==="R"||S==="L"){k=S}}for(w=0;w<g;++w){if(d[w]==="ON"){const t=c(d,w+1,"ON");let e=v;if(w>0){e=d[w-1]}let s=x;if(t+1<g){s=d[t+1]}if(e!=="L"){e="R"}if(s!=="L"){s="R"}if(e===s){l(d,w,t,e)}w=t-1}}for(w=0;w<g;++w){if(d[w]==="ON"){d[w]=A}}for(w=0;w<g;++w){S=d[w];if(a(y[w])){if(S==="R"){y[w]+=1}else if(S==="AN"||S==="EN"){y[w]+=2}}else if(S==="L"||S==="AN"||S==="EN"){y[w]+=1}}let M=-1;let C=99;let _;for(w=0,b=y.length;w<b;++w){_=y[w];if(M<_){M=_}if(C>_&&o(_)){C=_}}for(_=M;_>=C;--_){let t=-1;for(w=0,b=y.length;w<b;++w){if(y[w]<_){if(t>=0){h(f,t,w);t=-1}}else if(t<0){t=w}}if(t>=0){h(f,t,y.length)}}for(w=0,b=f.length;w<b;++w){const t=f[w];if(t==="<"||t===">"){f[w]=""}}return u(f.join(""),p)}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.getFontSubstitution=d;var i=s(38);var n=s(3);const r={style:"normal",weight:"normal"};const o={style:"normal",weight:"bold"};const a={style:"italic",weight:"normal"};const c={style:"italic",weight:"bold"};const l=new Map([["Times-Roman",{local:["Times New Roman","Times-Roman","Times","Liberation Serif","Nimbus Roman","Nimbus Roman L","Tinos","Thorndale","TeX Gyre Termes","FreeSerif","DejaVu Serif","Bitstream Vera Serif","Ubuntu"],style:r,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:o,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:a,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:c,ultimate:"serif"}],["Helvetica",{local:["Helvetica","Helvetica Neue","Arial","Arial Nova","Liberation Sans","Arimo","Nimbus Sans","Nimbus Sans L","A030","TeX Gyre Heros","FreeSans","DejaVu Sans","Albany","Bitstream Vera Sans","Arial Unicode MS","Microsoft Sans Serif","Apple Symbols","Cantarell"],path:"LiberationSans-Regular.ttf",style:r,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:o,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:a,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:c,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono"],style:r,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:o,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:a,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:c,ultimate:"monospace"}],["ArialBlack",{local:["Arial Black"],style:{style:"normal",weight:"900"},fallback:"Helvetica-Bold"}],["ArialBlack-Bold",{alias:"ArialBlack"}],["ArialBlack-Italic",{alias:"ArialBlack",style:{style:"italic",weight:"900"},fallback:"Helvetica-BoldOblique"}],["ArialBlack-BoldItalic",{alias:"ArialBlack-Italic"}],["ArialNarrow",{local:["Arial Narrow","Liberation Sans Narrow","Helvetica Condensed","Nimbus Sans Narrow","TeX Gyre Heros Cn"],style:r,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:o,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:a,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:c,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:r,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:o,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:a,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:c,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:r}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}]]);const h=new Map([["Arial-Black","ArialBlack"]]);function u(t){switch(t){case o:return"Bold";case a:return"Italic";case c:return"Bold Italic";default:if(t?.weight==="bold"){return"Bold"}if(t?.style==="italic"){return"Italic"}}return""}function f({alias:t,local:e,path:s,fallback:i,style:n,ultimate:r},o,a,c=true,h=true,d=""){const p={style:null,ultimate:null};if(e){const t=d?` ${d}`:"";for(const s of e){o.push(`local(${s}${t})`)}}if(t){const e=l.get(t);const r=d||u(n);Object.assign(p,f(e,o,a,c&&!i,h&&!s,r))}if(n){p.style=n}if(r){p.ultimate=r}if(c&&i){const t=l.get(i);const{ultimate:e}=f(t,o,a,c,h&&!s,d);p.ultimate||=e}if(h&&s&&a){o.push(`url(${a}${s})`)}return p}function d(t,e,s,u,d){u=(0,i.normalizeFontName)(u);const p=u;let g=t.get(p);if(g){return g}let m=l.get(u);if(!m){for(const[t,e]of h){if(u.startsWith(t)){u=`${e}${u.substring(t.length)}`;m=l.get(u);break}}}let w=false;if(!m){m=l.get(d);w=true}const b=`${e.getDocId()}_s${e.createFontId()}`;if(!m){if(!(0,n.validateFontName)(u)){t.set(p,null);return null}const e=/bold/gi.test(u);const s=/oblique|italic/gi.test(u);const i=e&&s&&c||e&&o||s&&a||r;g={css:b,guessFallback:true,loadedName:b,baseFontName:u,src:`local(${u})`,style:i};t.set(p,g);return g}const y=[];if(w&&(0,n.validateFontName)(u)){y.push(`local(${u})`)}const{style:A,ultimate:v}=f(m,y,s);const x=v===null;const k=x?"":`,${v}`;g={css:`${b}${k}`,guessFallback:x,loadedName:b,baseFontName:u,src:y.join(","),style:A};t.set(p,g);return g}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.ImageResizer=void 0;var i=s(2);const n=2048;const r=65537;const o=128;class a{constructor(t,e){this._imgData=t;this._isMask=e}static needsToBeResized(t,e){if(t<=this._goodSquareLength&&e<=this._goodSquareLength){return false}const{MAX_DIM:s}=this;if(t>s||e>s){return true}const i=t*e;if(this._hasMaxArea){return i>this.MAX_AREA}if(i<this._goodSquareLength**2){return false}if(this._areGoodDims(t,e)){this._goodSquareLength=Math.max(this._goodSquareLength,Math.floor(Math.sqrt(t*e)));return false}this._goodSquareLength=this._guessMax(this._goodSquareLength,s,o,0);const n=this.MAX_AREA=this._goodSquareLength**2;return i>n}static get MAX_DIM(){return(0,i.shadow)(this,"MAX_DIM",this._guessMax(n,r,0,1))}static get MAX_AREA(){this._hasMaxArea=true;return(0,i.shadow)(this,"MAX_AREA",this._guessMax(a._goodSquareLength,this.MAX_DIM,o,0)**2)}static set MAX_AREA(t){if(t>=0){this._hasMaxArea=true;(0,i.shadow)(this,"MAX_AREA",t)}}static setMaxArea(t){if(!this._hasMaxArea){this.MAX_AREA=t>>2}}static _areGoodDims(t,e){try{const s=new OffscreenCanvas(t,e);const i=s.getContext("2d");i.fillRect(0,0,1,1);const n=i.getImageData(0,0,1,1).data[3];s.width=s.height=1;return n!==0}catch{return false}}static _guessMax(t,e,s,i){while(t+s+1<e){const s=Math.floor((t+e)/2);const n=i||s;if(this._areGoodDims(s,n)){t=s}else{e=s}}return t}static async createImage(t,e=false){return new a(t,e)._createImage()}async _createImage(){const t=this._encodeBMP();const e=new Blob([t.buffer],{type:"image/bmp"});const s=createImageBitmap(e);const{MAX_AREA:i,MAX_DIM:n}=a;const{_imgData:r}=this;const{width:o,height:c}=r;const l=Math.max(o/n,c/n,Math.sqrt(o*c/i));const h=Math.max(l,2);const u=Math.round(10*(l+1.25))/10/h;const f=Math.floor(Math.log2(u));const d=new Array(f+2).fill(2);d[0]=h;d.splice(-1,1,u/(1<<f));let p=o;let g=c;let m=await s;for(const t of d){const e=p;const s=g;p=Math.floor(p/t)-1;g=Math.floor(g/t)-1;const i=new OffscreenCanvas(p,g);const n=i.getContext("2d");n.drawImage(m,0,0,e,s,0,0,p,g);m=i.transferToImageBitmap()}r.data=null;r.bitmap=m;r.width=p;r.height=g;return r}_encodeBMP(){const{width:t,height:e,kind:s}=this._imgData;let n=this._imgData.data;let r;let o=new Uint8Array(0);let a=o;let c=0;switch(s){case i.ImageKind.GRAYSCALE_1BPP:{r=1;o=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);const s=t+7>>3;const i=s+3&-4;if(s!==i){const t=new Uint8Array(i*e);let r=0;for(let o=0,a=e*s;o<a;o+=s,r+=i){t.set(n.subarray(o,o+s),r)}n=t}break}case i.ImageKind.RGB_24BPP:{r=24;if(t&3){const s=3*t;const i=s+3&-4;const r=i-s;const o=new Uint8Array(i*e);let a=0;for(let t=0,i=e*s;t<i;t+=s){const e=n.subarray(t,t+s);for(let t=0;t<s;t+=3){o[a++]=e[t+2];o[a++]=e[t+1];o[a++]=e[t]}a+=r}n=o}else{for(let t=0,e=n.length;t<e;t+=3){const e=n[t];n[t]=n[t+2];n[t+2]=e}}break}case i.ImageKind.RGBA_32BPP:r=32;c=3;a=new Uint8Array(4+4+4+4+52);const s=new DataView(a.buffer);if(i.FeatureTest.isLittleEndian){s.setUint32(0,255,true);s.setUint32(4,65280,true);s.setUint32(8,16711680,true);s.setUint32(12,4278190080,true)}else{s.setUint32(0,4278190080,true);s.setUint32(4,16711680,true);s.setUint32(8,65280,true);s.setUint32(12,255,true)}break;default:throw new Error("invalid format")}let l=0;const h=40+a.length;const u=14+h+o.length+n.length;const f=new Uint8Array(u);const d=new DataView(f.buffer);d.setUint16(l,19778,true);l+=2;d.setUint32(l,u,true);l+=4;d.setUint32(l,0,true);l+=4;d.setUint32(l,14+h+o.length,true);l+=4;d.setUint32(l,h,true);l+=4;d.setInt32(l,t,true);l+=4;d.setInt32(l,-e,true);l+=4;d.setUint16(l,1,true);l+=2;d.setUint16(l,r,true);l+=2;d.setUint32(l,c,true);l+=4;d.setUint32(l,0,true);l+=4;d.setInt32(l,0,true);l+=4;d.setInt32(l,0,true);l+=4;d.setUint32(l,o.length/4,true);l+=4;d.setUint32(l,0,true);l+=4;f.set(a,l);l+=a.length;f.set(o,l);l+=o.length;f.set(n,l);return f}}e.ImageResizer=a;a._goodSquareLength=n},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.MurmurHash3_64=void 0;var i=s(2);const n=3285377520;const r=4294901760;const o=65535;class a{constructor(t){this.h1=t?t&4294967295:n;this.h2=t?t&4294967295:n}update(t){let e,s;if(typeof t==="string"){e=new Uint8Array(t.length*2);s=0;for(let i=0,n=t.length;i<n;i++){const n=t.charCodeAt(i);if(n<=255){e[s++]=n}else{e[s++]=n>>>8;e[s++]=n&255}}}else if((0,i.isArrayBuffer)(t)){e=t.slice();s=e.byteLength}else{throw new Error("Wrong data format in MurmurHash3_64_update. "+"Input must be a string or array.")}const n=s>>2;const a=s-n*4;const c=new Uint32Array(e.buffer,0,n);let l=0,h=0;let u=this.h1,f=this.h2;const d=3432918353,p=461845907;const g=d&o,m=p&o;for(let t=0;t<n;t++){if(t&1){l=c[t];l=l*d&r|l*g&o;l=l<<15|l>>>17;l=l*p&r|l*m&o;u^=l;u=u<<13|u>>>19;u=u*5+3864292196}else{h=c[t];h=h*d&r|h*g&o;h=h<<15|h>>>17;h=h*p&r|h*m&o;f^=h;f=f<<13|f>>>19;f=f*5+3864292196}}l=0;switch(a){case 3:l^=e[n*4+2]<<16;case 2:l^=e[n*4+1]<<8;case 1:l^=e[n*4];l=l*d&r|l*g&o;l=l<<15|l>>>17;l=l*p&r|l*m&o;if(n&1){u^=l}else{f^=l}}this.h1=u;this.h2=f}hexdigest(){let t=this.h1,e=this.h2;t^=e>>>1;t=t*3981806797&r|t*36045&o;e=e*4283543511&r|((e<<16|t>>>16)*2950163797&r)>>>16;t^=e>>>1;t=t*444984403&r|t*60499&o;e=e*3301882366&r|((e<<16|t>>>16)*3120437893&r)>>>16;t^=e>>>1;return(t>>>0).toString(16).padStart(8,"0")+(e>>>0).toString(16).padStart(8,"0")}}e.MurmurHash3_64=a},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.OperatorList=void 0;var i=s(2);function n(t,e,s,i,n){let r=t;for(let t=0,s=e.length-1;t<s;t++){const s=e[t];r=r[s]||=[]}r[e.at(-1)]={checkFn:s,iterateFn:i,processFn:n}}const r=[];n(r,[i.OPS.save,i.OPS.transform,i.OPS.paintInlineImageXObject,i.OPS.restore],null,(function t(e,s){const n=e.fnArray;const r=e.iCurr-3;const o=(s-r)%4;switch(o){case 0:return n[s]===i.OPS.save;case 1:return n[s]===i.OPS.transform;case 2:return n[s]===i.OPS.paintInlineImageXObject;case 3:return n[s]===i.OPS.restore}throw new Error(`iterateInlineImageGroup - invalid pos: ${o}`)}),(function t(e,s){const n=10;const r=200;const o=1e3;const a=1;const c=e.fnArray,l=e.argsArray;const h=e.iCurr;const u=h-3;const f=h-2;const d=h-1;const p=Math.min(Math.floor((s-u)/4),r);if(p<n){return s-(s-u)%4}let g=0;const m=[];let w=0;let b=a,y=a;for(let t=0;t<p;t++){const e=l[f+(t<<2)];const s=l[d+(t<<2)][0];if(b+s.width>o){g=Math.max(g,b);y+=w+2*a;b=0;w=0}m.push({transform:e,x:b,y,w:s.width,h:s.height});b+=s.width+2*a;w=Math.max(w,s.height)}const A=Math.max(g,b)+a;const v=y+w+a;const x=new Uint8Array(A*v*4);const k=A<<2;for(let t=0;t<p;t++){const e=l[d+(t<<2)][0].data;const s=m[t].w<<2;let i=0;let n=m[t].x+m[t].y*A<<2;x.set(e.subarray(0,s),n-k);for(let r=0,o=m[t].h;r<o;r++){x.set(e.subarray(i,i+s),n);i+=s;n+=k}x.set(e.subarray(i-s,i),n);while(n>=0){e[n-4]=e[n];e[n-3]=e[n+1];e[n-2]=e[n+2];e[n-1]=e[n+3];e[n+s]=e[n+s-4];e[n+s+1]=e[n+s-3];e[n+s+2]=e[n+s-2];e[n+s+3]=e[n+s-1];n-=k}}const S={width:A,height:v};if(e.isOffscreenCanvasSupported){const t=new OffscreenCanvas(A,v);const e=t.getContext("2d");e.putImageData(new ImageData(new Uint8ClampedArray(x.buffer),A,v),0,0);S.bitmap=t.transferToImageBitmap();S.data=null}else{S.kind=i.ImageKind.RGBA_32BPP;S.data=x}c.splice(u,p*4,i.OPS.paintInlineImageXObjectGroup);l.splice(u,p*4,[S,m]);return u+1}));n(r,[i.OPS.save,i.OPS.transform,i.OPS.paintImageMaskXObject,i.OPS.restore],null,(function t(e,s){const n=e.fnArray;const r=e.iCurr-3;const o=(s-r)%4;switch(o){case 0:return n[s]===i.OPS.save;case 1:return n[s]===i.OPS.transform;case 2:return n[s]===i.OPS.paintImageMaskXObject;case 3:return n[s]===i.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${o}`)}),(function t(e,s){const n=10;const r=100;const o=1e3;const a=e.fnArray,c=e.argsArray;const l=e.iCurr;const h=l-3;const u=l-2;const f=l-1;let d=Math.floor((s-h)/4);if(d<n){return s-(s-h)%4}let p=false;let g,m;const w=c[f][0];const b=c[u][0],y=c[u][1],A=c[u][2],v=c[u][3];if(y===A){p=true;g=u+4;let t=f+4;for(let e=1;e<d;e++,g+=4,t+=4){m=c[g];if(c[t][0]!==w||m[0]!==b||m[1]!==y||m[2]!==A||m[3]!==v){if(e<n){p=false}else{d=e}break}}}if(p){d=Math.min(d,o);const t=new Float32Array(d*2);g=u;for(let e=0;e<d;e++,g+=4){m=c[g];t[e<<1]=m[4];t[(e<<1)+1]=m[5]}a.splice(h,d*4,i.OPS.paintImageMaskXObjectRepeat);c.splice(h,d*4,[w,b,y,A,v,t])}else{d=Math.min(d,r);const t=[];for(let e=0;e<d;e++){m=c[u+(e<<2)];const s=c[f+(e<<2)][0];t.push({data:s.data,width:s.width,height:s.height,interpolate:s.interpolate,count:s.count,transform:m})}a.splice(h,d*4,i.OPS.paintImageMaskXObjectGroup);c.splice(h,d*4,[t])}return h+1}));n(r,[i.OPS.save,i.OPS.transform,i.OPS.paintImageXObject,i.OPS.restore],(function(t){const e=t.argsArray;const s=t.iCurr-2;return e[s][1]===0&&e[s][2]===0}),(function t(e,s){const n=e.fnArray,r=e.argsArray;const o=e.iCurr-3;const a=(s-o)%4;switch(a){case 0:return n[s]===i.OPS.save;case 1:if(n[s]!==i.OPS.transform){return false}const t=e.iCurr-2;const o=r[t][0];const a=r[t][3];if(r[s][0]!==o||r[s][1]!==0||r[s][2]!==0||r[s][3]!==a){return false}return true;case 2:if(n[s]!==i.OPS.paintImageXObject){return false}const c=e.iCurr-1;const l=r[c][0];if(r[s][0]!==l){return false}return true;case 3:return n[s]===i.OPS.restore}throw new Error(`iterateImageGroup - invalid pos: ${a}`)}),(function(t,e){const s=3;const n=1e3;const r=t.fnArray,o=t.argsArray;const a=t.iCurr;const c=a-3;const l=a-2;const h=a-1;const u=o[h][0];const f=o[l][0];const d=o[l][3];const p=Math.min(Math.floor((e-c)/4),n);if(p<s){return e-(e-c)%4}const g=new Float32Array(p*2);let m=l;for(let t=0;t<p;t++,m+=4){const e=o[m];g[t<<1]=e[4];g[(t<<1)+1]=e[5]}const w=[u,f,d,g];r.splice(c,p*4,i.OPS.paintImageXObjectRepeat);o.splice(c,p*4,w);return c+1}));n(r,[i.OPS.beginText,i.OPS.setFont,i.OPS.setTextMatrix,i.OPS.showText,i.OPS.endText],null,(function t(e,s){const n=e.fnArray,r=e.argsArray;const o=e.iCurr-4;const a=(s-o)%5;switch(a){case 0:return n[s]===i.OPS.beginText;case 1:return n[s]===i.OPS.setFont;case 2:return n[s]===i.OPS.setTextMatrix;case 3:if(n[s]!==i.OPS.showText){return false}const t=e.iCurr-3;const o=r[t][0];const a=r[t][1];if(r[s][0]!==o||r[s][1]!==a){return false}return true;case 4:return n[s]===i.OPS.endText}throw new Error(`iterateShowTextGroup - invalid pos: ${a}`)}),(function(t,e){const s=3;const i=1e3;const n=t.fnArray,r=t.argsArray;const o=t.iCurr;const a=o-4;const c=o-3;const l=o-2;const h=o-1;const u=o;const f=r[c][0];const d=r[c][1];let p=Math.min(Math.floor((e-a)/5),i);if(p<s){return e-(e-a)%5}let g=a;if(a>=4&&n[a-4]===n[c]&&n[a-3]===n[l]&&n[a-2]===n[h]&&n[a-1]===n[u]&&r[a-4][0]===f&&r[a-4][1]===d){p++;g-=5}let m=g+4;for(let t=1;t<p;t++){n.splice(m,3);r.splice(m,3);m+=2}return m+1}));class o{constructor(t){this.queue=t}_optimize(){}push(t,e){this.queue.fnArray.push(t);this.queue.argsArray.push(e);this._optimize()}flush(){}reset(){}}class a extends o{constructor(t){super(t);this.state=null;this.context={iCurr:0,fnArray:t.fnArray,argsArray:t.argsArray,isOffscreenCanvasSupported:false};this.match=null;this.lastProcessed=0}set isOffscreenCanvasSupported(t){this.context.isOffscreenCanvasSupported=t}_optimize(){const t=this.queue.fnArray;let e=this.lastProcessed,s=t.length;let i=this.state;let n=this.match;if(!i&&!n&&e+1===s&&!r[t[e]]){this.lastProcessed=s;return}const o=this.context;while(e<s){if(n){const r=(0,n.iterateFn)(o,e);if(r){e++;continue}e=(0,n.processFn)(o,e+1);s=t.length;n=null;i=null;if(e>=s){break}}i=(i||r)[t[e]];if(!i||Array.isArray(i)){e++;continue}o.iCurr=e;e++;if(i.checkFn&&!(0,i.checkFn)(o)){i=null;continue}n=i;i=null}this.state=i;this.match=n;this.lastProcessed=e}flush(){while(this.match){const t=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,t);this.match=null;this.state=null;this._optimize()}}reset(){this.state=null;this.match=null;this.lastProcessed=0}}class c{static CHUNK_SIZE=1e3;static CHUNK_SIZE_ABOUT=this.CHUNK_SIZE-5;constructor(t=0,e){this._streamSink=e;this.fnArray=[];this.argsArray=[];this.optimizer=e&&!(t&i.RenderingIntentFlag.OPLIST)?new a(this):new o(this);this.dependencies=new Set;this._totalLength=0;this.weight=0;this._resolved=e?null:Promise.resolve()}set isOffscreenCanvasSupported(t){this.optimizer.isOffscreenCanvasSupported=t}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(t,e){this.optimizer.push(t,e);this.weight++;if(this._streamSink){if(this.weight>=c.CHUNK_SIZE){this.flush()}else if(this.weight>=c.CHUNK_SIZE_ABOUT&&(t===i.OPS.restore||t===i.OPS.endText)){this.flush()}}}addImageOps(t,e,s){if(s!==undefined){this.addOp(i.OPS.beginMarkedContentProps,["OC",s])}this.addOp(t,e);if(s!==undefined){this.addOp(i.OPS.endMarkedContent,[])}}addDependency(t){if(this.dependencies.has(t)){return}this.dependencies.add(t);this.addOp(i.OPS.dependency,[t])}addDependencies(t){for(const e of t){this.addDependency(e)}}addOpList(t){if(!(t instanceof c)){(0,i.warn)('addOpList - ignoring invalid "opList" parameter.');return}for(const e of t.dependencies){this.dependencies.add(e)}for(let e=0,s=t.length;e<s;e++){this.addOp(t.fnArray[e],t.argsArray[e])}}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){const t=[];const{fnArray:e,argsArray:s,length:n}=this;for(let r=0;r<n;r++){switch(e[r]){case i.OPS.paintInlineImageXObject:case i.OPS.paintInlineImageXObjectGroup:case i.OPS.paintImageMaskXObject:const e=s[r][0];if(!e.cached&&e.data?.buffer instanceof ArrayBuffer){t.push(e.data.buffer)}break}}return t}flush(t=false,e=null){this.optimizer.flush();const s=this.length;this._totalLength+=s;this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:t,separateAnnots:e,length:s},1,this._transfers);this.dependencies.clear();this.fnArray.length=0;this.argsArray.length=0;this.weight=0;this.optimizer.reset()}}e.OperatorList=c},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.PDFImage=void 0;var i=s(2);var n=s(28);var r=s(5);var o=s(12);var a=s(18);var c=s(62);var l=s(26);var h=s(30);var u=s(4);function f(t,e,s,i){t=e+t*s;if(t<0){t=0}else if(t>i){t=i}return t}function d(t,e,s,i,n,r){const o=n*r;let a;if(e<=8){a=new Uint8Array(o)}else if(e<=16){a=new Uint16Array(o)}else{a=new Uint32Array(o)}const c=s/n;const l=i/r;let h,u,f,d=0,p;const g=new Uint16Array(n);const m=s;for(h=0;h<n;h++){g[h]=Math.floor(h*c)}for(h=0;h<r;h++){f=Math.floor(h*l)*m;for(u=0;u<n;u++){p=f+g[u];a[d++]=t[p]}}return a}class p{constructor({xref:t,res:e,image:s,isInline:n=false,smask:a=null,mask:c=null,isMask:l=false,pdfFunctionFactory:f,localColorSpaceCache:d}){this.image=s;const g=s.dict;const m=g.get("F","Filter");let w;if(m instanceof u.Name){w=m.name}else if(Array.isArray(m)){const e=t.fetchIfRef(m[0]);if(e instanceof u.Name){w=e.name}}switch(w){case"JPXDecode":const t=new h.JpxImage;t.parseImageProperties(s.stream);s.stream.reset();s.width=t.width;s.height=t.height;s.bitsPerComponent=t.bitsPerComponent;s.numComps=t.componentsCount;break;case"JBIG2Decode":s.bitsPerComponent=1;s.numComps=1;break}let b=g.get("W","Width");let y=g.get("H","Height");if(Number.isInteger(s.width)&&s.width>0&&Number.isInteger(s.height)&&s.height>0&&(s.width!==b||s.height!==y)){(0,i.warn)("PDFImage - using the Width/Height of the image data, "+"rather than the image dictionary.");b=s.width;y=s.height}if(b<1||y<1){throw new i.FormatError(`Invalid image width: ${b} or height: ${y}`)}this.width=b;this.height=y;this.interpolate=g.get("I","Interpolate");this.imageMask=g.get("IM","ImageMask")||false;this.matte=g.get("Matte")||false;let A=s.bitsPerComponent;if(!A){A=g.get("BPC","BitsPerComponent");if(!A){if(this.imageMask){A=1}else{throw new i.FormatError(`Bits per component missing in image: ${this.imageMask}`)}}}this.bpc=A;if(!this.imageMask){let r=g.getRaw("CS")||g.getRaw("ColorSpace");if(!r){(0,i.info)("JPX images (which do not require color spaces)");switch(s.numComps){case 1:r=u.Name.get("DeviceGray");break;case 3:r=u.Name.get("DeviceRGB");break;case 4:r=u.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${s.numComps} color components not supported.`)}}this.colorSpace=o.ColorSpace.parse({cs:r,xref:t,resources:n?e:null,pdfFunctionFactory:f,localColorSpaceCache:d});this.numComps=this.colorSpace.numComps}this.decode=g.getArray("D","Decode");this.needsDecode=false;if(this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,A)||l&&!o.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=true;const t=(1<<A)-1;this.decodeCoefficients=[];this.decodeAddends=[];const e=this.colorSpace?.name==="Indexed";for(let s=0,i=0;s<this.decode.length;s+=2,++i){const n=this.decode[s];const r=this.decode[s+1];this.decodeCoefficients[i]=e?(r-n)/t:r-n;this.decodeAddends[i]=e?n:t*n}}if(a){this.smask=new p({xref:t,res:e,image:a,isInline:n,pdfFunctionFactory:f,localColorSpaceCache:d})}else if(c){if(c instanceof r.BaseStream){const s=c.dict,r=s.get("IM","ImageMask");if(!r){(0,i.warn)("Ignoring /Mask in image without /ImageMask.")}else{this.mask=new p({xref:t,res:e,image:c,isInline:n,isMask:true,pdfFunctionFactory:f,localColorSpaceCache:d})}}else{this.mask=c}}}static async buildImage({xref:t,res:e,image:s,isInline:n=false,pdfFunctionFactory:o,localColorSpaceCache:a}){const c=s;let l=null;let h=null;const u=s.dict.get("SMask");const f=s.dict.get("Mask");if(u){if(u instanceof r.BaseStream){l=u}else{(0,i.warn)("Unsupported /SMask format.")}}else if(f){if(f instanceof r.BaseStream||Array.isArray(f)){h=f}else{(0,i.warn)("Unsupported /Mask format.")}}return new p({xref:t,res:e,image:c,isInline:n,smask:l,mask:h,pdfFunctionFactory:o,localColorSpaceCache:a})}static createRawMask({imgArray:t,width:e,height:s,imageIsFromDecodeStream:i,inverseDecode:n,interpolate:r}){const o=(e+7>>3)*s;const a=t.byteLength;const c=o===a;let l,h;if(i&&(!n||c)){l=t}else if(!n){l=new Uint8Array(t)}else{l=new Uint8Array(o);l.set(t);l.fill(255,a)}if(n){for(h=0;h<a;h++){l[h]^=255}}return{data:l,width:e,height:s,interpolate:r}}static async createMask({imgArray:t,width:e,height:s,imageIsFromDecodeStream:r,inverseDecode:o,interpolate:a,isOffscreenCanvasSupported:l=false}){const h=e===1&&s===1&&o===(t.length===0||!!(t[0]&128));if(h){return{isSingleOpaquePixel:h}}if(l){if(c.ImageResizer.needsToBeResized(e,s)){const r=new Uint8ClampedArray(e*s*4);(0,n.convertBlackAndWhiteToRGBA)({src:t,dest:r,width:e,height:s,nonBlackColor:0,inverseDecode:o});return c.ImageResizer.createImage({kind:i.ImageKind.RGBA_32BPP,data:r,width:e,height:s,interpolate:a})}const r=new OffscreenCanvas(e,s);const l=r.getContext("2d");const h=l.createImageData(e,s);(0,n.convertBlackAndWhiteToRGBA)({src:t,dest:h.data,width:e,height:s,nonBlackColor:0,inverseDecode:o});l.putImageData(h,0,0);const u=r.transferToImageBitmap();return{data:null,width:e,height:s,interpolate:a,bitmap:u}}return this.createRawMask({imgArray:t,width:e,height:s,inverseDecode:o,imageIsFromDecodeStream:r,interpolate:a})}get drawWidth(){return Math.max(this.width,this.smask?.width||0,this.mask?.width||0)}get drawHeight(){return Math.max(this.height,this.smask?.height||0,this.mask?.height||0)}decodeBuffer(t){const e=this.bpc;const s=this.numComps;const i=this.decodeAddends;const n=this.decodeCoefficients;const r=(1<<e)-1;let o,a;if(e===1){for(o=0,a=t.length;o<a;o++){t[o]=+!t[o]}return}let c=0;for(o=0,a=this.width*this.height;o<a;o++){for(let e=0;e<s;e++){t[c]=f(t[c],i[e],n[e],r);c++}}}getComponents(t){const e=this.bpc;if(e===8){return t}const s=this.width;const i=this.height;const n=this.numComps;const r=s*i*n;let o=0;let a;if(e<=8){a=new Uint8Array(r)}else if(e<=16){a=new Uint16Array(r)}else{a=new Uint32Array(r)}const c=s*n;const l=(1<<e)-1;let h=0,u,f;if(e===1){let e,s,n;for(let r=0;r<i;r++){s=h+(c&~7);n=h+c;while(h<s){f=t[o++];a[h]=f>>7&1;a[h+1]=f>>6&1;a[h+2]=f>>5&1;a[h+3]=f>>4&1;a[h+4]=f>>3&1;a[h+5]=f>>2&1;a[h+6]=f>>1&1;a[h+7]=f&1;h+=8}if(h<n){f=t[o++];e=128;while(h<n){a[h++]=+!!(f&e);e>>=1}}}}else{let s=0;f=0;for(h=0,u=r;h<u;++h){if(h%c===0){f=0;s=0}while(s<e){f=f<<8|t[o++];s+=8}const i=s-e;let n=f>>i;if(n<0){n=0}else if(n>l){n=l}a[h]=n;f&=(1<<i)-1;s=i}}return a}fillOpacity(t,e,s,n,r){const o=this.smask;const a=this.mask;let c,l,h,u,f,g;if(o){l=o.width;h=o.height;c=new Uint8ClampedArray(l*h);o.fillGrayBuffer(c);if(l!==e||h!==s){c=d(c,o.bpc,l,h,e,s)}}else if(a){if(a instanceof p){l=a.width;h=a.height;c=new Uint8ClampedArray(l*h);a.numComps=1;a.fillGrayBuffer(c);for(u=0,f=l*h;u<f;++u){c[u]=255-c[u]}if(l!==e||h!==s){c=d(c,a.bpc,l,h,e,s)}}else if(Array.isArray(a)){c=new Uint8ClampedArray(e*s);const t=this.numComps;for(u=0,f=e*s;u<f;++u){let e=0;const s=u*t;for(g=0;g<t;++g){const t=r[s+g];const i=g*2;if(t<a[i]||t>a[i+1]){e=255;break}}c[u]=e}}else{throw new i.FormatError("Unknown mask format.")}}if(c){for(u=0,g=3,f=e*n;u<f;++u,g+=4){t[g]=c[u]}}else{for(u=0,g=3,f=e*n;u<f;++u,g+=4){t[g]=255}}}undoPreblend(t,e,s){const i=this.smask?.matte;if(!i){return}const n=this.colorSpace.getRgb(i,0);const r=n[0];const o=n[1];const a=n[2];const c=e*s*4;for(let e=0;e<c;e+=4){const s=t[e+3];if(s===0){t[e]=255;t[e+1]=255;t[e+2]=255;continue}const i=255/s;t[e]=(t[e]-r)*i+r;t[e+1]=(t[e+1]-o)*i+o;t[e+2]=(t[e+2]-a)*i+a}}async createImageData(t=false,e=false){const s=this.drawWidth;const n=this.drawHeight;const r={width:s,height:n,interpolate:this.interpolate,kind:0,data:null};const o=this.numComps;const a=this.width;const h=this.height;const u=this.bpc;const f=a*o*u+7>>3;const d=e&&c.ImageResizer.needsToBeResized(s,n);if(!t){let t;if(this.colorSpace.name==="DeviceGray"&&u===1){t=i.ImageKind.GRAYSCALE_1BPP}else if(this.colorSpace.name==="DeviceRGB"&&u===8&&!this.needsDecode){t=i.ImageKind.RGB_24BPP}if(t&&!this.smask&&!this.mask&&s===a&&n===h){const o=this.getImageBytes(h*f,{});if(e){if(d){return c.ImageResizer.createImage({data:o,kind:t,width:s,height:n,interpolate:this.interpolate},this.needsDecode)}return this.createBitmap(t,a,h,o)}r.kind=t;r.data=o;if(this.needsDecode){(0,i.assert)(t===i.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");const e=r.data;for(let t=0,s=e.length;t<s;t++){e[t]^=255}}return r}if(this.image instanceof l.JpegStream&&!this.smask&&!this.mask&&!this.needsDecode){let t=h*f;if(e&&!d){let e=false;switch(this.colorSpace.name){case"DeviceGray":t*=4;e=true;break;case"DeviceRGB":t=t/3*4;e=true;break;case"DeviceCMYK":e=true;break}if(e){const e=this.getImageBytes(t,{drawWidth:s,drawHeight:n,forceRGBA:true});return this.createBitmap(i.ImageKind.RGBA_32BPP,s,n,e)}}else{switch(this.colorSpace.name){case"DeviceGray":t*=3;case"DeviceRGB":case"DeviceCMYK":r.kind=i.ImageKind.RGB_24BPP;r.data=this.getImageBytes(t,{drawWidth:s,drawHeight:n,forceRGB:true});if(d){return c.ImageResizer.createImage(r)}return r}}}}const p=this.getImageBytes(h*f,{internal:true});const g=0|p.length/f*n/h;const m=this.getComponents(p);let w,b;let y,A,v,x;if(e&&!d){y=new OffscreenCanvas(s,n);A=y.getContext("2d");v=A.createImageData(s,n);x=v.data}r.kind=i.ImageKind.RGBA_32BPP;if(!t&&!this.smask&&!this.mask){if(!e||d){r.kind=i.ImageKind.RGB_24BPP;x=new Uint8ClampedArray(s*n*3);w=0}else{const t=new Uint32Array(x.buffer);t.fill(i.FeatureTest.isLittleEndian?4278190080:255);w=1}b=false}else{if(!e||d){x=new Uint8ClampedArray(s*n*4)}w=1;b=true;this.fillOpacity(x,s,n,g,m)}if(this.needsDecode){this.decodeBuffer(m)}this.colorSpace.fillRgb(x,a,h,s,n,g,u,m,w);if(b){this.undoPreblend(x,s,g)}if(e&&!d){A.putImageData(v,0,0);const t=y.transferToImageBitmap();return{data:null,width:s,height:n,bitmap:t,interpolate:this.interpolate}}r.data=x;if(d){return c.ImageResizer.createImage(r)}return r}fillGrayBuffer(t){const e=this.numComps;if(e!==1){throw new i.FormatError(`Reading gray scale from a color image: ${e}`)}const s=this.width;const n=this.height;const r=this.bpc;const o=s*e*r+7>>3;const a=this.getImageBytes(n*o,{internal:true});const c=this.getComponents(a);let l,h;if(r===1){h=s*n;if(this.needsDecode){for(l=0;l<h;++l){t[l]=c[l]-1&255}}else{for(l=0;l<h;++l){t[l]=-c[l]&255}}return}if(this.needsDecode){this.decodeBuffer(c)}h=s*n;const u=255/((1<<r)-1);for(l=0;l<h;++l){t[l]=u*c[l]}}createBitmap(t,e,s,r){const o=new OffscreenCanvas(e,s);const a=o.getContext("2d");let c;if(t===i.ImageKind.RGBA_32BPP){c=new ImageData(r,e,s)}else{c=a.createImageData(e,s);(0,n.convertToRGBA)({kind:t,src:r,dest:new Uint32Array(c.data.buffer),width:e,height:s,inverseDecode:this.needsDecode})}a.putImageData(c,0,0);const l=o.transferToImageBitmap();return{data:null,width:e,height:s,bitmap:l,interpolate:this.interpolate}}getImageBytes(t,{drawWidth:e,drawHeight:s,forceRGBA:n=false,forceRGB:r=false,internal:o=false}){this.image.reset();this.image.drawWidth=e||this.width;this.image.drawHeight=s||this.height;this.image.forceRGBA=!!n;this.image.forceRGB=!!r;const c=this.image.getBytes(t);if(o||this.image instanceof a.DecodeStream){return c}(0,i.assert)(c instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.');return new Uint8Array(c)}}e.PDFImage=p},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.Catalog=void 0;var i=s(3);var n=s(2);var r=s(4);var o=s(67);var a=s(5);var c=s(68);var l=s(12);var h=s(69);var u=s(59);var f=s(70);var d=s(72);function p(t){if(t instanceof r.Dict){t=t.get("D")}return Array.isArray(t)?t:null}class g{constructor(t,e){this.pdfManager=t;this.xref=e;this._catDict=e.getCatalogObj();if(!(this._catDict instanceof r.Dict)){throw new n.FormatError("Catalog object is not a dictionary.")}this._actualNumPages=null;this.fontCache=new r.RefSetCache;this.builtInCMapCache=new Map;this.standardFontDataCache=new Map;this.globalImageCache=new u.GlobalImageCache;this.pageKidsCountCache=new r.RefSetCache;this.pageIndexCache=new r.RefSetCache;this.nonBlendModesSet=new r.RefSet;this.systemFontCache=new Map}cloneDict(){return this._catDict.clone()}get version(){const t=this._catDict.get("Version");if(t instanceof r.Name){if(i.PDF_VERSION_REGEXP.test(t.name)){return(0,n.shadow)(this,"version",t.name)}(0,n.warn)(`Invalid PDF catalog version: ${t.name}`)}return(0,n.shadow)(this,"version",null)}get lang(){const t=this._catDict.get("Lang");return(0,n.shadow)(this,"lang",typeof t==="string"?(0,n.stringToPDFString)(t):null)}get needsRendering(){const t=this._catDict.get("NeedsRendering");return(0,n.shadow)(this,"needsRendering",typeof t==="boolean"?t:false)}get collection(){let t=null;try{const e=this._catDict.get("Collection");if(e instanceof r.Dict&&e.size>0){t=e}}catch(t){if(t instanceof i.MissingDataException){throw t}(0,n.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,n.shadow)(this,"collection",t)}get acroForm(){let t=null;try{const e=this._catDict.get("AcroForm");if(e instanceof r.Dict&&e.size>0){t=e}}catch(t){if(t instanceof i.MissingDataException){throw t}(0,n.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,n.shadow)(this,"acroForm",t)}get acroFormRef(){const t=this._catDict.getRaw("AcroForm");return(0,n.shadow)(this,"acroFormRef",t instanceof r.Ref?t:null)}get metadata(){const t=this._catDict.getRaw("Metadata");if(!(t instanceof r.Ref)){return(0,n.shadow)(this,"metadata",null)}let e=null;try{const s=this.xref.fetch(t,!this.xref.encrypt?.encryptMetadata);if(s instanceof a.BaseStream&&s.dict instanceof r.Dict){const t=s.dict.get("Type");const i=s.dict.get("Subtype");if((0,r.isName)(t,"Metadata")&&(0,r.isName)(i,"XML")){const t=(0,n.stringToUTF8String)(s.getString());if(t){e=new f.MetadataParser(t).serializable}}}}catch(t){if(t instanceof i.MissingDataException){throw t}(0,n.info)(`Skipping invalid Metadata: "${t}".`)}return(0,n.shadow)(this,"metadata",e)}get markInfo(){let t=null;try{t=this._readMarkInfo()}catch(t){if(t instanceof i.MissingDataException){throw t}(0,n.warn)("Unable to read mark info.")}return(0,n.shadow)(this,"markInfo",t)}_readMarkInfo(){const t=this._catDict.get("MarkInfo");if(!(t instanceof r.Dict)){return null}const e={Marked:false,UserProperties:false,Suspects:false};for(const s in e){const i=t.get(s);if(typeof i==="boolean"){e[s]=i}}return e}get structTreeRoot(){let t=null;try{t=this._readStructTreeRoot()}catch(t){if(t instanceof i.MissingDataException){throw t}(0,n.warn)("Unable read to structTreeRoot info.")}return(0,n.shadow)(this,"structTreeRoot",t)}_readStructTreeRoot(){const t=this._catDict.getRaw("StructTreeRoot");const e=this.xref.fetchIfRef(t);if(!(e instanceof r.Dict)){return null}const s=new d.StructTreeRoot(e,t);s.init();return s}get toplevelPagesDict(){const t=this._catDict.get("Pages");if(!(t instanceof r.Dict)){throw new n.FormatError("Invalid top-level pages dictionary.")}return(0,n.shadow)(this,"toplevelPagesDict",t)}get documentOutline(){let t=null;try{t=this._readDocumentOutline()}catch(t){if(t instanceof i.MissingDataException){throw t}(0,n.warn)("Unable to read document outline.")}return(0,n.shadow)(this,"documentOutline",t)}_readDocumentOutline(){let t=this._catDict.get("Outlines");if(!(t instanceof r.Dict)){return null}t=t.getRaw("First");if(!(t instanceof r.Ref)){return null}const e={items:[]};const s=[{obj:t,parent:e}];const i=new r.RefSet;i.put(t);const o=this.xref,a=new Uint8ClampedArray(3);while(s.length>0){const e=s.shift();const c=o.fetchIfRef(e.obj);if(c===null){continue}if(!c.has("Title")){throw new n.FormatError("Invalid outline item encountered.")}const h={url:null,dest:null,action:null};g.parseDestDictionary({destDict:c,resultObj:h,docBaseUrl:this.baseUrl,docAttachments:this.attachments});const u=c.get("Title");const f=c.get("F")||0;const d=c.getArray("C");const p=c.get("Count");let m=a;if(Array.isArray(d)&&d.length===3&&(d[0]!==0||d[1]!==0||d[2]!==0)){m=l.ColorSpace.singletons.rgb.getRgb(d,0)}const w={action:h.action,attachment:h.attachment,dest:h.dest,url:h.url,unsafeUrl:h.unsafeUrl,newWindow:h.newWindow,setOCGState:h.setOCGState,title:(0,n.stringToPDFString)(u),color:m,count:Number.isInteger(p)?p:undefined,bold:!!(f&2),italic:!!(f&1),items:[]};e.parent.items.push(w);t=c.getRaw("First");if(t instanceof r.Ref&&!i.has(t)){s.push({obj:t,parent:w});i.put(t)}t=c.getRaw("Next");if(t instanceof r.Ref&&!i.has(t)){s.push({obj:t,parent:e.parent});i.put(t)}}return e.items.length>0?e.items:null}get permissions(){let t=null;try{t=this._readPermissions()}catch(t){if(t instanceof i.MissingDataException){throw t}(0,n.warn)("Unable to read permissions.")}return(0,n.shadow)(this,"permissions",t)}_readPermissions(){const t=this.xref.trailer.get("Encrypt");if(!(t instanceof r.Dict)){return null}let e=t.get("P");if(typeof e!=="number"){return null}e+=2**32;const s=[];for(const t in n.PermissionFlag){const i=n.PermissionFlag[t];if(e&i){s.push(i)}}return s}get optionalContentConfig(){let t=null;try{const e=this._catDict.get("OCProperties");if(!e){return(0,n.shadow)(this,"optionalContentConfig",null)}const s=e.get("D");if(!s){return(0,n.shadow)(this,"optionalContentConfig",null)}const i=e.get("OCGs");if(!Array.isArray(i)){return(0,n.shadow)(this,"optionalContentConfig",null)}const o=[];const a=[];for(const t of i){if(!(t instanceof r.Ref)){continue}a.push(t);const e=this.xref.fetchIfRef(t);o.push({id:t.toString(),name:typeof e.get("Name")==="string"?(0,n.stringToPDFString)(e.get("Name")):null,intent:typeof e.get("Intent")==="string"?(0,n.stringToPDFString)(e.get("Intent")):null})}t=this._readOptionalContentConfig(s,a);t.groups=o}catch(t){if(t instanceof i.MissingDataException){throw t}(0,n.warn)(`Unable to read optional content config: ${t}`)}return(0,n.shadow)(this,"optionalContentConfig",t)}_readOptionalContentConfig(t,e){function s(t){const s=[];if(Array.isArray(t)){for(const i of t){if(!(i instanceof r.Ref)){continue}if(e.includes(i)){s.push(i.toString())}}}return s}function i(t,s=0){if(!Array.isArray(t)){return null}const i=[];for(const n of t){if(n instanceof r.Ref&&e.includes(n)){c.put(n);i.push(n.toString());continue}const t=o(n,s);if(t){i.push(t)}}if(s>0){return i}const n=[];for(const t of e){if(c.has(t)){continue}n.push(t.toString())}if(n.length){i.push({name:null,order:n})}return i}function o(t,e){if(++e>l){(0,n.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS.");return null}const s=a.fetchIfRef(t);if(!Array.isArray(s)){return null}const r=a.fetchIfRef(s[0]);if(typeof r!=="string"){return null}const o=i(s.slice(1),e);if(!o||!o.length){return null}return{name:(0,n.stringToPDFString)(r),order:o}}const a=this.xref,c=new r.RefSet,l=10;return{name:typeof t.get("Name")==="string"?(0,n.stringToPDFString)(t.get("Name")):null,creator:typeof t.get("Creator")==="string"?(0,n.stringToPDFString)(t.get("Creator")):null,baseState:t.get("BaseState")instanceof r.Name?t.get("BaseState").name:null,on:s(t.get("ON")),off:s(t.get("OFF")),order:i(t.get("Order")),groups:null}}setActualNumPages(t=null){this._actualNumPages=t}get hasActualNumPages(){return this._actualNumPages!==null}get _pagesCount(){const t=this.toplevelPagesDict.get("Count");if(!Number.isInteger(t)){throw new n.FormatError("Page count in top-level pages dictionary is not an integer.")}return(0,n.shadow)(this,"_pagesCount",t)}get numPages(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}get destinations(){const t=this._readDests(),e=Object.create(null);if(t instanceof o.NameTree){for(const[s,i]of t.getAll()){const t=p(i);if(t){e[(0,n.stringToPDFString)(s)]=t}}}else if(t instanceof r.Dict){t.forEach((function(t,s){const i=p(s);if(i){e[t]=i}}))}return(0,n.shadow)(this,"destinations",e)}getDestination(t){const e=this._readDests();if(e instanceof o.NameTree){const s=p(e.get(t));if(s){return s}const i=this.destinations[t];if(i){(0,n.warn)(`Found "${t}" at an incorrect position in the NameTree.`);return i}}else if(e instanceof r.Dict){const s=p(e.get(t));if(s){return s}}return null}_readDests(){const t=this._catDict.get("Names");if(t?.has("Dests")){return new o.NameTree(t.getRaw("Dests"),this.xref)}else if(this._catDict.has("Dests")){return this._catDict.get("Dests")}return undefined}get pageLabels(){let t=null;try{t=this._readPageLabels()}catch(t){if(t instanceof i.MissingDataException){throw t}(0,n.warn)("Unable to read page labels.")}return(0,n.shadow)(this,"pageLabels",t)}_readPageLabels(){const t=this._catDict.getRaw("PageLabels");if(!t){return null}const e=new Array(this.numPages);let s=null,a="";const c=new o.NumberTree(t,this.xref);const l=c.getAll();let h="",u=1;for(let t=0,o=this.numPages;t<o;t++){const o=l.get(t);if(o!==undefined){if(!(o instanceof r.Dict)){throw new n.FormatError("PageLabel is not a dictionary.")}if(o.has("Type")&&!(0,r.isName)(o.get("Type"),"PageLabel")){throw new n.FormatError("Invalid type in PageLabel dictionary.")}if(o.has("S")){const t=o.get("S");if(!(t instanceof r.Name)){throw new n.FormatError("Invalid style in PageLabel dictionary.")}s=t.name}else{s=null}if(o.has("P")){const t=o.get("P");if(typeof t!=="string"){throw new n.FormatError("Invalid prefix in PageLabel dictionary.")}a=(0,n.stringToPDFString)(t)}else{a=""}if(o.has("St")){const t=o.get("St");if(!(Number.isInteger(t)&&t>=1)){throw new n.FormatError("Invalid start in PageLabel dictionary.")}u=t}else{u=1}}switch(s){case"D":h=u;break;case"R":case"r":h=(0,i.toRomanNumerals)(u,s==="r");break;case"A":case"a":const t=26;const e=65,r=97;const o=s==="a"?r:e;const a=u-1;const c=String.fromCharCode(o+a%t);h=c.repeat(Math.floor(a/t)+1);break;default:if(s){throw new n.FormatError(`Invalid style "${s}" in PageLabel dictionary.`)}h=""}e[t]=a+h;u++}return e}get pageLayout(){const t=this._catDict.get("PageLayout");let e="";if(t instanceof r.Name){switch(t.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":e=t.name}}return(0,n.shadow)(this,"pageLayout",e)}get pageMode(){const t=this._catDict.get("PageMode");let e="UseNone";if(t instanceof r.Name){switch(t.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":e=t.name}}return(0,n.shadow)(this,"pageMode",e)}get viewerPreferences(){const t=this._catDict.get("ViewerPreferences");if(!(t instanceof r.Dict)){return(0,n.shadow)(this,"viewerPreferences",null)}let e=null;for(const s of t.getKeys()){const i=t.get(s);let o;switch(s){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":if(typeof i==="boolean"){o=i}break;case"NonFullScreenPageMode":if(i instanceof r.Name){switch(i.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":o=i.name;break;default:o="UseNone"}}break;case"Direction":if(i instanceof r.Name){switch(i.name){case"L2R":case"R2L":o=i.name;break;default:o="L2R"}}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(i instanceof r.Name){switch(i.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":o=i.name;break;default:o="CropBox"}}break;case"PrintScaling":if(i instanceof r.Name){switch(i.name){case"None":case"AppDefault":o=i.name;break;default:o="AppDefault"}}break;case"Duplex":if(i instanceof r.Name){switch(i.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":o=i.name;break;default:o="None"}}break;case"PrintPageRange":if(Array.isArray(i)&&i.length%2===0){const t=i.every(((t,e,s)=>Number.isInteger(t)&&t>0&&(e===0||t>=s[e-1])&&t<=this.numPages));if(t){o=i}}break;case"NumCopies":if(Number.isInteger(i)&&i>0){o=i}break;default:(0,n.warn)(`Ignoring non-standard key in ViewerPreferences: ${s}.`);continue}if(o===undefined){(0,n.warn)(`Bad value, for key "${s}", in ViewerPreferences: ${i}.`);continue}if(!e){e=Object.create(null)}e[s]=o}return(0,n.shadow)(this,"viewerPreferences",e)}get openAction(){const t=this._catDict.get("OpenAction");const e=Object.create(null);if(t instanceof r.Dict){const s=new r.Dict(this.xref);s.set("A",t);const i={url:null,dest:null,action:null};g.parseDestDictionary({destDict:s,resultObj:i});if(Array.isArray(i.dest)){e.dest=i.dest}else if(i.action){e.action=i.action}}else if(Array.isArray(t)){e.dest=t}return(0,n.shadow)(this,"openAction",(0,n.objectSize)(e)>0?e:null)}get attachments(){const t=this._catDict.get("Names");let e=null;if(t instanceof r.Dict&&t.has("EmbeddedFiles")){const s=new o.NameTree(t.getRaw("EmbeddedFiles"),this.xref);for(const[t,i]of s.getAll()){const s=new h.FileSpec(i,this.xref);if(!e){e=Object.create(null)}e[(0,n.stringToPDFString)(t)]=s.serializable}}return(0,n.shadow)(this,"attachments",e)}get xfaImages(){const t=this._catDict.get("Names");let e=null;if(t instanceof r.Dict&&t.has("XFAImages")){const s=new o.NameTree(t.getRaw("XFAImages"),this.xref);for(const[t,i]of s.getAll()){if(!e){e=new r.Dict(this.xref)}e.set((0,n.stringToPDFString)(t),i)}}return(0,n.shadow)(this,"xfaImages",e)}_collectJavaScript(){const t=this._catDict.get("Names");let e=null;function s(t,s){if(!(s instanceof r.Dict)){return}if(!(0,r.isName)(s.get("S"),"JavaScript")){return}let i=s.get("JS");if(i instanceof a.BaseStream){i=i.getString()}else if(typeof i!=="string"){return}i=(0,n.stringToPDFString)(i).replaceAll("\0","");if(i){(e||=new Map).set(t,i)}}if(t instanceof r.Dict&&t.has("JavaScript")){const e=new o.NameTree(t.getRaw("JavaScript"),this.xref);for(const[t,i]of e.getAll()){s((0,n.stringToPDFString)(t),i)}}const i=this._catDict.get("OpenAction");if(i){s("OpenAction",i)}return e}get jsActions(){const t=this._collectJavaScript();let e=(0,i.collectActions)(this.xref,this._catDict,n.DocumentActionEventType);if(t){e||=Object.create(null);for(const[s,i]of t){if(s in e){e[s].push(i)}else{e[s]=[i]}}}return(0,n.shadow)(this,"jsActions",e)}async fontFallback(t,e){const s=await Promise.all(this.fontCache);for(const i of s){if(i.loadedName===t){i.fallback(e);return}}}async cleanup(t=false){(0,c.clearGlobalCaches)();this.globalImageCache.clear(t);this.pageKidsCountCache.clear();this.pageIndexCache.clear();this.nonBlendModesSet.clear();const e=await Promise.all(this.fontCache);for(const{dict:t}of e){delete t.cacheKey}this.fontCache.clear();this.builtInCMapCache.clear();this.standardFontDataCache.clear();this.systemFontCache.clear()}async getPageDict(t){const e=[this.toplevelPagesDict];const s=new r.RefSet;const i=this._catDict.getRaw("Pages");if(i instanceof r.Ref){s.put(i)}const o=this.xref,a=this.pageKidsCountCache,c=this.pageIndexCache;let l=0;while(e.length){const i=e.pop();if(i instanceof r.Ref){const h=a.get(i);if(h>=0&&l+h<=t){l+=h;continue}if(s.has(i)){throw new n.FormatError("Pages tree contains circular reference.")}s.put(i);const u=await o.fetchAsync(i);if(u instanceof r.Dict){let e=u.getRaw("Type");if(e instanceof r.Ref){e=await o.fetchAsync(e)}if((0,r.isName)(e,"Page")||!u.has("Kids")){if(!a.has(i)){a.put(i,1)}if(!c.has(i)){c.put(i,l)}if(l===t){return[u,i]}l++;continue}}e.push(u);continue}if(!(i instanceof r.Dict)){throw new n.FormatError("Page dictionary kid reference points to wrong type of object.")}const{objId:h}=i;let u=i.getRaw("Count");if(u instanceof r.Ref){u=await o.fetchAsync(u)}if(Number.isInteger(u)&&u>=0){if(h&&!a.has(h)){a.put(h,u)}if(l+u<=t){l+=u;continue}}let f=i.getRaw("Kids");if(f instanceof r.Ref){f=await o.fetchAsync(f)}if(!Array.isArray(f)){let e=i.getRaw("Type");if(e instanceof r.Ref){e=await o.fetchAsync(e)}if((0,r.isName)(e,"Page")||!i.has("Kids")){if(l===t){return[i,null]}l++;continue}throw new n.FormatError("Page dictionary kids object is not an array.")}for(let t=f.length-1;t>=0;t--){e.push(f[t])}}throw new Error(`Page index ${t} not found.`)}async getAllPageDicts(t=false){const{ignoreErrors:e}=this.pdfManager.evaluatorOptions;const s=[{currentNode:this.toplevelPagesDict,posInKids:0}];const o=new r.RefSet;const a=this._catDict.getRaw("Pages");if(a instanceof r.Ref){o.put(a)}const c=new Map,l=this.xref,h=this.pageIndexCache;let u=0;function f(t,e){if(e&&!h.has(e)){h.put(e,u)}c.set(u++,[t,e])}function d(s){if(s instanceof i.XRefEntryException&&!t){throw s}if(t&&e&&u===0){(0,n.warn)(`getAllPageDicts - Skipping invalid first page: "${s}".`);s=r.Dict.empty}c.set(u++,[s,null])}while(s.length>0){const t=s.at(-1);const{currentNode:e,posInKids:i}=t;let a=e.getRaw("Kids");if(a instanceof r.Ref){try{a=await l.fetchAsync(a)}catch(t){d(t);break}}if(!Array.isArray(a)){d(new n.FormatError("Page dictionary kids object is not an array."));break}if(i>=a.length){s.pop();continue}const c=a[i];let h;if(c instanceof r.Ref){if(o.has(c)){d(new n.FormatError("Pages tree contains circular reference."));break}o.put(c);try{h=await l.fetchAsync(c)}catch(t){d(t);break}}else{h=c}if(!(h instanceof r.Dict)){d(new n.FormatError("Page dictionary kid reference points to wrong type of object."));break}let u=h.getRaw("Type");if(u instanceof r.Ref){try{u=await l.fetchAsync(u)}catch(t){d(t);break}}if((0,r.isName)(u,"Page")||!h.has("Kids")){f(h,c instanceof r.Ref?c:null)}else{s.push({currentNode:h,posInKids:0})}t.posInKids++}return c}getPageIndex(t){const e=this.pageIndexCache.get(t);if(e!==undefined){return Promise.resolve(e)}const s=this.xref;function i(e){let i=0,o;return s.fetchAsync(e).then((function(s){if((0,r.isRefsEqual)(e,t)&&!(0,r.isDict)(s,"Page")&&!(s instanceof r.Dict&&!s.has("Type")&&s.has("Contents"))){throw new n.FormatError("The reference does not point to a /Page dictionary.")}if(!s){return null}if(!(s instanceof r.Dict)){throw new n.FormatError("Node must be a dictionary.")}o=s.getRaw("Parent");return s.getAsync("Parent")})).then((function(t){if(!t){return null}if(!(t instanceof r.Dict)){throw new n.FormatError("Parent must be a dictionary.")}return t.getAsync("Kids")})).then((function(t){if(!t){return null}const a=[];let c=false;for(const o of t){if(!(o instanceof r.Ref)){throw new n.FormatError("Kid must be a reference.")}if((0,r.isRefsEqual)(o,e)){c=true;break}a.push(s.fetchAsync(o).then((function(t){if(!(t instanceof r.Dict)){throw new n.FormatError("Kid node must be a dictionary.")}if(t.has("Count")){i+=t.get("Count")}else{i++}})))}if(!c){throw new n.FormatError("Kid reference not found in parent's kids.")}return Promise.all(a).then((function(){return[i,o]}))}))}let o=0;const a=e=>i(e).then((e=>{if(!e){this.pageIndexCache.put(t,o);return o}const[s,i]=e;o+=s;return a(i)}));return a(t)}get baseUrl(){const t=this._catDict.get("URI");if(t instanceof r.Dict){const e=t.get("Base");if(typeof e==="string"){const t=(0,n.createValidAbsoluteUrl)(e,null,{tryConvertEncoding:true});if(t){return(0,n.shadow)(this,"baseUrl",t.href)}}}return(0,n.shadow)(this,"baseUrl",this.pdfManager.docBaseUrl)}static parseDestDictionary({destDict:t,resultObj:e,docBaseUrl:s=null,docAttachments:o=null}){if(!(t instanceof r.Dict)){(0,n.warn)("parseDestDictionary: `destDict` must be a dictionary.");return}let c=t.get("A"),l,h;if(!(c instanceof r.Dict)){if(t.has("Dest")){c=t.get("Dest")}else{c=t.get("AA");if(c instanceof r.Dict){if(c.has("D")){c=c.get("D")}else if(c.has("U")){c=c.get("U")}}}}if(c instanceof r.Dict){const t=c.get("S");if(!(t instanceof r.Name)){(0,n.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}const s=t.name;switch(s){case"ResetForm":const t=c.get("Flags");const u=((typeof t==="number"?t:0)&1)===0;const f=[];const d=[];for(const t of c.get("Fields")||[]){if(t instanceof r.Ref){d.push(t.toString())}else if(typeof t==="string"){f.push((0,n.stringToPDFString)(t))}}e.resetForm={fields:f,refs:d,include:u};break;case"URI":l=c.get("URI");if(l instanceof r.Name){l="/"+l.name}break;case"GoTo":h=c.get("D");break;case"Launch":case"GoToR":const p=c.get("F");if(p instanceof r.Dict){l=p.get("F")||null}else if(typeof p==="string"){l=p}let g=c.get("D");if(g){if(g instanceof r.Name){g=g.name}if(typeof l==="string"){const t=l.split("#")[0];if(typeof g==="string"){l=t+"#"+g}else if(Array.isArray(g)){l=t+"#"+JSON.stringify(g)}}}const m=c.get("NewWindow");if(typeof m==="boolean"){e.newWindow=m}break;case"GoToE":const w=c.get("T");let b;if(o&&w instanceof r.Dict){const t=w.get("R");const e=w.get("N");if((0,r.isName)(t,"C")&&typeof e==="string"){b=o[(0,n.stringToPDFString)(e)]}}if(b){e.attachment=b}else{(0,n.warn)(`parseDestDictionary - unimplemented "GoToE" action.`)}break;case"Named":const y=c.get("N");if(y instanceof r.Name){e.action=y.name}break;case"SetOCGState":const A=c.get("State");const v=c.get("PreserveRB");if(!Array.isArray(A)||A.length===0){break}const x=[];for(const t of A){if(t instanceof r.Name){switch(t.name){case"ON":case"OFF":case"Toggle":x.push(t.name);break}}else if(t instanceof r.Ref){x.push(t.toString())}}if(x.length!==A.length){break}e.setOCGState={state:x,preserveRB:typeof v==="boolean"?v:true};break;case"JavaScript":const k=c.get("JS");let S;if(k instanceof a.BaseStream){S=k.getString()}else if(typeof k==="string"){S=k}const M=S&&(0,i.recoverJsURL)((0,n.stringToPDFString)(S));if(M){l=M.url;e.newWindow=M.newWindow;break}default:if(s==="JavaScript"||s==="SubmitForm"){break}(0,n.warn)(`parseDestDictionary - unsupported action: "${s}".`);break}}else if(t.has("Dest")){h=t.get("Dest")}if(typeof l==="string"){const t=(0,n.createValidAbsoluteUrl)(l,s,{addDefaultProtocol:true,tryConvertEncoding:true});if(t){e.url=t.href}e.unsafeUrl=l}if(h){if(h instanceof r.Name){h=h.name}if(typeof h==="string"){e.dest=(0,n.stringToPDFString)(h)}else if(Array.isArray(h)){e.dest=h}}}}e.Catalog=g},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.NumberTree=e.NameTree=void 0;var i=s(4);var n=s(2);class r{constructor(t,e,s){if(this.constructor===r){(0,n.unreachable)("Cannot initialize NameOrNumberTree.")}this.root=t;this.xref=e;this._type=s}getAll(){const t=new Map;if(!this.root){return t}const e=this.xref;const s=new i.RefSet;s.put(this.root);const r=[this.root];while(r.length>0){const o=e.fetchIfRef(r.shift());if(!(o instanceof i.Dict)){continue}if(o.has("Kids")){const t=o.get("Kids");if(!Array.isArray(t)){continue}for(const e of t){if(s.has(e)){throw new n.FormatError(`Duplicate entry in "${this._type}" tree.`)}r.push(e);s.put(e)}continue}const a=o.get(this._type);if(!Array.isArray(a)){continue}for(let s=0,i=a.length;s<i;s+=2){t.set(e.fetchIfRef(a[s]),e.fetchIfRef(a[s+1]))}}return t}get(t){if(!this.root){return null}const e=this.xref;let s=e.fetchIfRef(this.root);let i=0;const r=10;while(s.has("Kids")){if(++i>r){(0,n.warn)(`Search depth limit reached for "${this._type}" tree.`);return null}const o=s.get("Kids");if(!Array.isArray(o)){return null}let a=0,c=o.length-1;while(a<=c){const i=a+c>>1;const n=e.fetchIfRef(o[i]);const r=n.get("Limits");if(t<e.fetchIfRef(r[0])){c=i-1}else if(t>e.fetchIfRef(r[1])){a=i+1}else{s=n;break}}if(a>c){return null}}const o=s.get(this._type);if(Array.isArray(o)){let s=0,i=o.length-2;while(s<=i){const n=s+i>>1,r=n+(n&1);const a=e.fetchIfRef(o[r]);if(t<a){i=r-2}else if(t>a){s=r+2}else{return e.fetchIfRef(o[r+1])}}}return null}}class o extends r{constructor(t,e){super(t,e,"Names")}}e.NameTree=o;class a extends r{constructor(t,e){super(t,e,"Nums")}}e.NumberTree=a},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.clearGlobalCaches=o;var i=s(50);var n=s(4);var r=s(40);function o(){(0,i.clearPatternCaches)();(0,n.clearPrimitiveCaches)();(0,r.clearUnicodeCaches)()}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.FileSpec=void 0;var i=s(2);var n=s(5);var r=s(4);function o(t){if(t.has("UF")){return t.get("UF")}else if(t.has("F")){return t.get("F")}else if(t.has("Unix")){return t.get("Unix")}else if(t.has("Mac")){return t.get("Mac")}else if(t.has("DOS")){return t.get("DOS")}return null}class a{constructor(t,e){if(!(t instanceof r.Dict)){return}this.xref=e;this.root=t;if(t.has("FS")){this.fs=t.get("FS")}this.description=t.has("Desc")?(0,i.stringToPDFString)(t.get("Desc")):"";if(t.has("RF")){(0,i.warn)("Related file specifications are not supported")}this.contentAvailable=true;if(!t.has("EF")){this.contentAvailable=false;(0,i.warn)("Non-embedded file specifications are not supported")}}get filename(){if(!this._filename&&this.root){const t=o(this.root)||"unnamed";this._filename=(0,i.stringToPDFString)(t).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/")}return this._filename}get content(){if(!this.contentAvailable){return null}if(!this.contentRef&&this.root){this.contentRef=o(this.root.get("EF"))}let t=null;if(this.contentRef){const e=this.xref.fetchIfRef(this.contentRef);if(e instanceof n.BaseStream){t=e.getBytes()}else{(0,i.warn)("Embedded file specification points to non-existing/invalid content")}}else{(0,i.warn)("Embedded file specification does not have a content")}return t}get serializable(){return{filename:this.filename,content:this.content}}}e.FileSpec=a},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.MetadataParser=void 0;var i=s(71);class n{constructor(t){t=this._repair(t);const e=new i.SimpleXMLParser({lowerCaseName:true});const s=e.parseFromString(t);this._metadataMap=new Map;this._data=t;if(s){this._parse(s)}}_repair(t){return t.replace(/^[^<]+/,"").replaceAll(/>\\376\\377([^<]+)/g,(function(t,e){const s=e.replaceAll(/\\([0-3])([0-7])([0-7])/g,(function(t,e,s,i){return String.fromCharCode(e*64+s*8+i*1)})).replaceAll(/&(amp|apos|gt|lt|quot);/g,(function(t,e){switch(e){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${e} isn't defined.`)}));const i=[">"];for(let t=0,e=s.length;t<e;t+=2){const e=s.charCodeAt(t)*256+s.charCodeAt(t+1);if(e>=32&&e<127&&e!==60&&e!==62&&e!==38){i.push(String.fromCharCode(e))}else{i.push("&#x"+(65536+e).toString(16).substring(1)+";")}}return i.join("")}))}_getSequence(t){const e=t.nodeName;if(e!=="rdf:bag"&&e!=="rdf:seq"&&e!=="rdf:alt"){return null}return t.childNodes.filter((t=>t.nodeName==="rdf:li"))}_parseArray(t){if(!t.hasChildNodes()){return}const[e]=t.childNodes;const s=this._getSequence(e)||[];this._metadataMap.set(t.nodeName,s.map((t=>t.textContent.trim())))}_parse(t){let e=t.documentElement;if(e.nodeName!=="rdf:rdf"){e=e.firstChild;while(e&&e.nodeName!=="rdf:rdf"){e=e.nextSibling}}if(!e||e.nodeName!=="rdf:rdf"||!e.hasChildNodes()){return}for(const t of e.childNodes){if(t.nodeName!=="rdf:description"){continue}for(const e of t.childNodes){const t=e.nodeName;switch(t){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(e);continue}this._metadataMap.set(t,e.textContent.trim())}}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}e.MetadataParser=n},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.XMLParserErrorCode=e.XMLParserBase=e.SimpleXMLParser=e.SimpleDOMNode=void 0;var i=s(3);const n={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};e.XMLParserErrorCode=n;function r(t,e){const s=t[e];return s===" "||s==="\n"||s==="\r"||s==="\t"}function o(t){for(let e=0,s=t.length;e<s;e++){if(!r(t,e)){return false}}return true}class a{_resolveEntities(t){return t.replaceAll(/&([^;]+);/g,((t,e)=>{if(e.substring(0,2)==="#x"){return String.fromCodePoint(parseInt(e.substring(2),16))}else if(e.substring(0,1)==="#"){return String.fromCodePoint(parseInt(e.substring(1),10))}switch(e){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(e)}))}_parseContent(t,e){const s=[];let i=e;function n(){while(i<t.length&&r(t,i)){++i}}while(i<t.length&&!r(t,i)&&t[i]!==">"&&t[i]!=="/"){++i}const o=t.substring(e,i);n();while(i<t.length&&t[i]!==">"&&t[i]!=="/"&&t[i]!=="?"){n();let e="",o="";while(i<t.length&&!r(t,i)&&t[i]!=="="){e+=t[i];++i}n();if(t[i]!=="="){return null}++i;n();const a=t[i];if(a!=='"'&&a!=="'"){return null}const c=t.indexOf(a,++i);if(c<0){return null}o=t.substring(i,c);s.push({name:e,value:this._resolveEntities(o)});i=c+1;n()}return{name:o,attributes:s,parsed:i-e}}_parseProcessingInstruction(t,e){let s=e;function i(){while(s<t.length&&r(t,s)){++s}}while(s<t.length&&!r(t,s)&&t[s]!==">"&&t[s]!=="?"&&t[s]!=="/"){++s}const n=t.substring(e,s);i();const o=s;while(s<t.length&&(t[s]!=="?"||t[s+1]!==">")){++s}const a=t.substring(o,s);return{name:n,value:a,parsed:s-e}}parseXml(t){let e=0;while(e<t.length){const s=t[e];let i=e;if(s==="<"){++i;const e=t[i];let s;switch(e){case"/":++i;s=t.indexOf(">",i);if(s<0){this.onError(n.UnterminatedElement);return}this.onEndElement(t.substring(i,s));i=s+1;break;case"?":++i;const e=this._parseProcessingInstruction(t,i);if(t.substring(i+e.parsed,i+e.parsed+2)!=="?>"){this.onError(n.UnterminatedXmlDeclaration);return}this.onPi(e.name,e.value);i+=e.parsed+2;break;case"!":if(t.substring(i+1,i+3)==="--"){s=t.indexOf("--\x3e",i+3);if(s<0){this.onError(n.UnterminatedComment);return}this.onComment(t.substring(i+3,s));i=s+3}else if(t.substring(i+1,i+8)==="[CDATA["){s=t.indexOf("]]>",i+8);if(s<0){this.onError(n.UnterminatedCdat);return}this.onCdata(t.substring(i+8,s));i=s+3}else if(t.substring(i+1,i+8)==="DOCTYPE"){const e=t.indexOf("[",i+8);let r=false;s=t.indexOf(">",i+8);if(s<0){this.onError(n.UnterminatedDoctypeDeclaration);return}if(e>0&&s>e){s=t.indexOf("]>",i+8);if(s<0){this.onError(n.UnterminatedDoctypeDeclaration);return}r=true}const o=t.substring(i+8,s+(r?1:0));this.onDoctype(o);i=s+(r?2:1)}else{this.onError(n.MalformedElement);return}break;default:const r=this._parseContent(t,i);if(r===null){this.onError(n.MalformedElement);return}let o=false;if(t.substring(i+r.parsed,i+r.parsed+2)==="/>"){o=true}else if(t.substring(i+r.parsed,i+r.parsed+1)!==">"){this.onError(n.UnterminatedElement);return}this.onBeginElement(r.name,r.attributes,o);i+=r.parsed+(o?2:1);break}}else{while(i<t.length&&t[i]!=="<"){i++}const s=t.substring(e,i);this.onText(this._resolveEntities(s))}e=i}}onResolveEntity(t){return`&${t};`}onPi(t,e){}onComment(t){}onCdata(t){}onDoctype(t){}onText(t){}onBeginElement(t,e,s){}onEndElement(t){}onError(t){}}e.XMLParserBase=a;class c{constructor(t,e){this.nodeName=t;this.nodeValue=e;Object.defineProperty(this,"parentNode",{value:null,writable:true})}get firstChild(){return this.childNodes?.[0]}get nextSibling(){const t=this.parentNode.childNodes;if(!t){return undefined}const e=t.indexOf(this);if(e===-1){return undefined}return t[e+1]}get textContent(){if(!this.childNodes){return this.nodeValue||""}return this.childNodes.map((function(t){return t.textContent})).join("")}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes?.length>0}searchNode(t,e){if(e>=t.length){return this}const s=t[e];if(s.name.startsWith("#")&&e<t.length-1){return this.searchNode(t,e+1)}const i=[];let n=this;while(true){if(s.name===n.nodeName){if(s.pos===0){const s=n.searchNode(t,e+1);if(s!==null){return s}}else if(i.length===0){return null}else{const[r]=i.pop();let o=0;for(const i of r.childNodes){if(s.name===i.nodeName){if(o===s.pos){return i.searchNode(t,e+1)}o++}}return n.searchNode(t,e+1)}}if(n.childNodes?.length>0){i.push([n,0]);n=n.childNodes[0]}else if(i.length===0){return null}else{while(i.length!==0){const[t,e]=i.pop();const s=e+1;if(s<t.childNodes.length){i.push([t,s]);n=t.childNodes[s];break}}if(i.length===0){return null}}}}dump(t){if(this.nodeName==="#text"){t.push((0,i.encodeToXmlString)(this.nodeValue));return}t.push(`<${this.nodeName}`);if(this.attributes){for(const e of this.attributes){t.push(` ${e.name}="${(0,i.encodeToXmlString)(e.value)}"`)}}if(this.hasChildNodes()){t.push(">");for(const e of this.childNodes){e.dump(t)}t.push(`</${this.nodeName}>`)}else if(this.nodeValue){t.push(`>${(0,i.encodeToXmlString)(this.nodeValue)}</${this.nodeName}>`)}else{t.push("/>")}}}e.SimpleDOMNode=c;class l extends a{constructor({hasAttributes:t=false,lowerCaseName:e=false}){super();this._currentFragment=null;this._stack=null;this._errorCode=n.NoError;this._hasAttributes=t;this._lowerCaseName=e}parseFromString(t){this._currentFragment=[];this._stack=[];this._errorCode=n.NoError;this.parseXml(t);if(this._errorCode!==n.NoError){return undefined}const[e]=this._currentFragment;if(!e){return undefined}return{documentElement:e}}onText(t){if(o(t)){return}const e=new c("#text",t);this._currentFragment.push(e)}onCdata(t){const e=new c("#text",t);this._currentFragment.push(e)}onBeginElement(t,e,s){if(this._lowerCaseName){t=t.toLowerCase()}const i=new c(t);i.childNodes=[];if(this._hasAttributes){i.attributes=e}this._currentFragment.push(i);if(s){return}this._stack.push(this._currentFragment);this._currentFragment=i.childNodes}onEndElement(t){this._currentFragment=this._stack.pop()||[];const e=this._currentFragment.at(-1);if(!e){return null}for(const t of e.childNodes){t.parentNode=e}return e}onError(t){this._errorCode=t}}e.SimpleXMLParser=l},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.StructTreeRoot=e.StructTreePage=void 0;var i=s(2);var n=s(4);var r=s(67);var o=s(73);const a=40;const c={PAGE_CONTENT:1,STREAM_CONTENT:2,OBJECT:3,ANNOTATION:4,ELEMENT:5};class l{constructor(t,e){this.dict=t;this.ref=e instanceof n.Ref?e:null;this.roleMap=new Map;this.structParentIds=null}init(){this.readRoleMap()}#tn(t,e,s){if(!(t instanceof n.Ref)||e<0){return}this.structParentIds||=new n.RefSetCache;let i=this.structParentIds.get(t);if(!i){i=[];this.structParentIds.put(t,i)}i.push([e,s])}addAnnotationIdToPage(t,e){this.#tn(t,e,c.ANNOTATION)}readRoleMap(){const t=this.dict.get("RoleMap");if(!(t instanceof n.Dict)){return}t.forEach(((t,e)=>{if(!(e instanceof n.Name)){return}this.roleMap.set(t,e.name)}))}static async canCreateStructureTree({catalogRef:t,pdfManager:e,newAnnotationsByPage:s}){if(!(t instanceof n.Ref)){(0,i.warn)("Cannot save the struct tree: no catalog reference.");return false}let r=0;let o=true;for(const[t,a]of s){const{ref:s}=await e.getPage(t);if(!(s instanceof n.Ref)){(0,i.warn)(`Cannot save the struct tree: page ${t} has no ref.`);o=true;break}for(const t of a){if(t.accessibilityData?.type){t.parentTreeId=r++;o=false}}}if(o){for(const t of s.values()){for(const e of t){delete e.parentTreeId}}return false}return true}static async createStructureTree({newAnnotationsByPage:t,xref:e,catalogRef:s,pdfManager:i,newRefs:r}){const a=i.catalog.cloneDict();const c=e.getNewTemporaryRef();a.set("StructTreeRoot",c);const l=[];await(0,o.writeObject)(s,a,l,e);r.push({ref:s,data:l.join("")});const h=new n.Dict(e);h.set("Type",n.Name.get("StructTreeRoot"));const u=e.getNewTemporaryRef();h.set("ParentTree",u);const f=[];h.set("K",f);const d=new n.Dict(e);const p=[];d.set("Nums",p);const g=await this.#en({newAnnotationsByPage:t,structTreeRootRef:c,kids:f,nums:p,xref:e,pdfManager:i,newRefs:r,buffer:l});h.set("ParentTreeNextKey",g);l.length=0;await(0,o.writeObject)(u,d,l,e);r.push({ref:u,data:l.join("")});l.length=0;await(0,o.writeObject)(c,h,l,e);r.push({ref:c,data:l.join("")})}async canUpdateStructTree({pdfManager:t,newAnnotationsByPage:e}){if(!this.ref){(0,i.warn)("Cannot update the struct tree: no root reference.");return false}let s=this.dict.get("ParentTreeNextKey");if(!Number.isInteger(s)||s<0){(0,i.warn)("Cannot update the struct tree: invalid next key.");return false}const r=this.dict.get("ParentTree");if(!(r instanceof n.Dict)){(0,i.warn)("Cannot update the struct tree: ParentTree isn't a dict.");return false}const o=r.get("Nums");if(!Array.isArray(o)){(0,i.warn)("Cannot update the struct tree: nums isn't an array.");return false}const{numPages:a}=t.catalog;for(const s of e.keys()){const{pageDict:e,ref:r}=await t.getPage(s);if(!(r instanceof n.Ref)){(0,i.warn)(`Cannot save the struct tree: page ${s} has no ref.`);return false}const o=e.get("StructParents");if(!Number.isInteger(o)||o<0||o>=a){(0,i.warn)(`Cannot save the struct tree: page ${s} has no id.`);return false}}let c=true;for(const[i,n]of e){const{pageDict:e}=await t.getPage(i);l.#sn({elements:n,xref:this.dict.xref,pageDict:e,parentTree:r});for(const t of n){if(t.accessibilityData?.type){t.parentTreeId=s++;c=false}}}if(c){for(const t of e.values()){for(const e of t){delete e.parentTreeId;delete e.structTreeParent}}return false}return true}async updateStructureTree({newAnnotationsByPage:t,pdfManager:e,newRefs:s}){const i=this.dict.xref;const r=this.dict.clone();const a=this.ref;let c=r.getRaw("ParentTree");let h;if(c instanceof n.Ref){h=i.fetch(c)}else{h=c;c=i.getNewTemporaryRef();r.set("ParentTree",c)}h=h.clone();let u=h.getRaw("Nums");let f=null;if(u instanceof n.Ref){f=u;u=i.fetch(f)}u=u.slice();if(!f){h.set("Nums",u)}let d=r.getRaw("K");let p=null;if(d instanceof n.Ref){p=d;d=i.fetch(p)}else{p=i.getNewTemporaryRef();r.set("K",p)}d=Array.isArray(d)?d.slice():[d];const g=[];const m=await l.#en({newAnnotationsByPage:t,structTreeRootRef:a,kids:d,nums:u,xref:i,pdfManager:e,newRefs:s,buffer:g});r.set("ParentTreeNextKey",m);g.length=0;await(0,o.writeObject)(p,d,g,i);s.push({ref:p,data:g.join("")});if(f){g.length=0;await(0,o.writeObject)(f,u,g,i);s.push({ref:f,data:g.join("")})}g.length=0;await(0,o.writeObject)(c,h,g,i);s.push({ref:c,data:g.join("")});g.length=0;await(0,o.writeObject)(a,r,g,i);s.push({ref:a,data:g.join("")})}static async#en({newAnnotationsByPage:t,structTreeRootRef:e,kids:s,nums:i,xref:r,pdfManager:a,newRefs:c,buffer:l}){const h=n.Name.get("OBJR");let u=-Infinity;for(const[f,d]of t){const{ref:t}=await a.getPage(f);for(const{accessibilityData:{type:a,title:f,lang:p,alt:g,expanded:m,actualText:w},ref:b,parentTreeId:y,structTreeParent:A}of d){u=Math.max(u,y);const d=r.getNewTemporaryRef();const v=new n.Dict(r);v.set("S",n.Name.get(a));if(f){v.set("T",f)}if(p){v.set("Lang",p)}if(g){v.set("Alt",g)}if(m){v.set("E",m)}if(w){v.set("ActualText",w)}if(A){await this.#in({structTreeParent:A,tagDict:v,newTagRef:d,fallbackRef:e,xref:r,newRefs:c,buffer:l})}else{v.set("P",e)}const x=new n.Dict(r);v.set("K",x);x.set("Type",h);x.set("Pg",t);x.set("Obj",b);l.length=0;await(0,o.writeObject)(d,v,l,r);c.push({ref:d,data:l.join("")});i.push(y,d);s.push(d)}}return u+1}static#sn({elements:t,xref:e,pageDict:s,parentTree:i}){const o=new Map;for(const e of t){if(e.structTreeParentId){const t=parseInt(e.structTreeParentId.split("_mc")[1],10);o.set(t,e)}}const a=s.get("StructParents");const c=new r.NumberTree(i,e);const l=c.get(a);if(!Array.isArray(l)){return}const h=(t,s,i)=>{const r=o.get(t);if(r){const t=s.getRaw("P");const o=e.fetchIfRef(t);if(t instanceof n.Ref&&o instanceof n.Dict){r.structTreeParent={ref:i,dict:s}}return true}return false};for(const t of l){if(!(t instanceof n.Ref)){continue}const s=e.fetch(t);const i=s.get("K");if(Number.isInteger(i)){h(i,s,t);continue}if(!Array.isArray(i)){continue}for(let n of i){n=e.fetchIfRef(n);if(Number.isInteger(n)&&h(n,s,t)){break}}}}static async#in({structTreeParent:{ref:t,dict:e},tagDict:s,newTagRef:r,fallbackRef:a,xref:c,newRefs:l,buffer:h}){const u=e.getRaw("P");let f=c.fetchIfRef(u);s.set("P",u);let d=false;let p;let g=f.getRaw("K");if(!(g instanceof n.Ref)){p=g;g=c.getNewTemporaryRef();f=f.clone();f.set("K",g);d=true}else{p=c.fetch(g)}if(Array.isArray(p)){const e=p.indexOf(t);if(e>=0){p=p.slice();p.splice(e+1,0,r)}else{(0,i.warn)("Cannot update the struct tree: parent kid not found.");s.set("P",a);return}}else if(p instanceof n.Dict){p=[g,r];g=c.getNewTemporaryRef();f.set("K",g);d=true}h.length=0;await(0,o.writeObject)(g,p,h,c);l.push({ref:g,data:h.join("")});if(!d){return}h.length=0;await(0,o.writeObject)(u,f,h,c);l.push({ref:u,data:h.join("")})}}e.StructTreeRoot=l;class h{constructor(t,e){this.tree=t;this.dict=e;this.kids=[];this.parseKids()}get role(){const t=this.dict.get("S");const e=t instanceof n.Name?t.name:"";const{root:s}=this.tree;if(s.roleMap.has(e)){return s.roleMap.get(e)}return e}parseKids(){let t=null;const e=this.dict.getRaw("Pg");if(e instanceof n.Ref){t=e.toString()}const s=this.dict.get("K");if(Array.isArray(s)){for(const e of s){const s=this.parseKid(t,e);if(s){this.kids.push(s)}}}else{const e=this.parseKid(t,s);if(e){this.kids.push(e)}}}parseKid(t,e){if(Number.isInteger(e)){if(this.tree.pageDict.objId!==t){return null}return new u({type:c.PAGE_CONTENT,mcid:e,pageObjId:t})}let s=null;if(e instanceof n.Ref){s=this.dict.xref.fetch(e)}else if(e instanceof n.Dict){s=e}if(!s){return null}const i=s.getRaw("Pg");if(i instanceof n.Ref){t=i.toString()}const r=s.get("Type")instanceof n.Name?s.get("Type").name:null;if(r==="MCR"){if(this.tree.pageDict.objId!==t){return null}const e=s.getRaw("Stm");return new u({type:c.STREAM_CONTENT,refObjId:e instanceof n.Ref?e.toString():null,pageObjId:t,mcid:s.get("MCID")})}if(r==="OBJR"){if(this.tree.pageDict.objId!==t){return null}const e=s.getRaw("Obj");return new u({type:c.OBJECT,refObjId:e instanceof n.Ref?e.toString():null,pageObjId:t})}return new u({type:c.ELEMENT,dict:s})}}class u{constructor({type:t,dict:e=null,mcid:s=null,pageObjId:i=null,refObjId:n=null}){this.type=t;this.dict=e;this.mcid=s;this.pageObjId=i;this.refObjId=n;this.parentNode=null}}class f{constructor(t,e){this.root=t;this.rootDict=t?t.dict:null;this.pageDict=e;this.nodes=[]}parse(t){if(!this.root||!this.rootDict){return}const e=this.rootDict.get("ParentTree");if(!e){return}const s=this.pageDict.get("StructParents");const i=t instanceof n.Ref&&this.root.structParentIds?.get(t);if(!Number.isInteger(s)&&!i){return}const o=new Map;const a=new r.NumberTree(e,this.rootDict.xref);if(Number.isInteger(s)){const t=a.get(s);if(Array.isArray(t)){for(const e of t){if(e instanceof n.Ref){this.addNode(this.rootDict.xref.fetch(e),o)}}}}if(!i){return}for(const[t,e]of i){const s=a.get(t);if(s){const t=this.addNode(this.rootDict.xref.fetchIfRef(s),o);if(t?.kids?.length===1&&t.kids[0].type===c.OBJECT){t.kids[0].type=e}}}}addNode(t,e,s=0){if(s>a){(0,i.warn)("StructTree MAX_DEPTH reached.");return null}if(e.has(t)){return e.get(t)}const r=new h(this,t);e.set(t,r);const o=t.get("P");if(!o||(0,n.isName)(o.get("Type"),"StructTreeRoot")){if(!this.addTopLevelNode(t,r)){e.delete(t)}return r}const l=this.addNode(o,e,s+1);if(!l){return r}let u=false;for(const e of l.kids){if(e.type===c.ELEMENT&&e.dict===t){e.parentNode=r;u=true}}if(!u){e.delete(t)}return r}addTopLevelNode(t,e){const s=this.rootDict.get("K");if(!s){return false}if(s instanceof n.Dict){if(s.objId!==t.objId){return false}this.nodes[0]=e;return true}if(!Array.isArray(s)){return true}let i=false;for(let n=0;n<s.length;n++){const r=s[n];if(r?.toString()===t.objId){this.nodes[n]=e;i=true}}return i}get serializable(){function t(e,s,n=0){if(n>a){(0,i.warn)("StructTree too deep to be fully serialized.");return}const r=Object.create(null);r.role=e.role;r.children=[];s.children.push(r);const o=e.dict.get("Alt");if(typeof o==="string"){r.alt=(0,i.stringToPDFString)(o)}const l=e.dict.get("Lang");if(typeof l==="string"){r.lang=(0,i.stringToPDFString)(l)}for(const s of e.kids){const e=s.type===c.ELEMENT?s.parentNode:null;if(e){t(e,r,n+1);continue}else if(s.type===c.PAGE_CONTENT||s.type===c.STREAM_CONTENT){r.children.push({type:"content",id:`p${s.pageObjId}_mc${s.mcid}`})}else if(s.type===c.OBJECT){r.children.push({type:"object",id:s.refObjId})}else if(s.type===c.ANNOTATION){r.children.push({type:"annotation",id:`${i.AnnotationPrefix}${s.refObjId}`})}}}const e=Object.create(null);e.children=[];e.role="Root";for(const s of this.nodes){if(!s){continue}t(s,e)}return e}}e.StructTreePage=f},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.incrementalUpdate=A;e.writeDict=h;e.writeObject=l;var i=s(2);var n=s(4);var r=s(3);var o=s(71);var a=s(5);var c=s(74);async function l(t,e,s,{encrypt:i=null}){const r=i?.createCipherTransform(t.num,t.gen);s.push(`${t.num} ${t.gen} obj\n`);if(e instanceof n.Dict){await h(e,s,r)}else if(e instanceof a.BaseStream){await u(e,s,r)}else if(Array.isArray(e)){await f(e,s,r)}s.push("\nendobj\n")}async function h(t,e,s){e.push("<<");for(const i of t.getKeys()){e.push(` /${(0,r.escapePDFName)(i)} `);await d(t.getRaw(i),e,s)}e.push(">>")}async function u(t,e,s){let r=t.getString();const{dict:o}=t;const[a,c]=await Promise.all([o.getAsync("Filter"),o.getAsync("DecodeParms")]);const l=Array.isArray(a)?await o.xref.fetchIfRefAsync(a[0]):a;const u=(0,n.isName)(l,"FlateDecode");const f=256;if(typeof CompressionStream!=="undefined"&&(r.length>=f||u)){try{const t=(0,i.stringToBytes)(r);const e=new CompressionStream("deflate");const s=e.writable.getWriter();s.write(t);s.close();const l=await new Response(e.readable).arrayBuffer();r=(0,i.bytesToString)(new Uint8Array(l));let h,f;if(!a){h=n.Name.get("FlateDecode")}else if(!u){h=Array.isArray(a)?[n.Name.get("FlateDecode"),...a]:[n.Name.get("FlateDecode"),a];if(c){f=Array.isArray(c)?[null,...c]:[null,c]}}if(h){o.set("Filter",h)}if(f){o.set("DecodeParms",f)}}catch(t){(0,i.info)(`writeStream - cannot compress data: "${t}".`)}}if(s){r=s.encryptString(r)}o.set("Length",r.length);await h(o,e,s);e.push(" stream\n",r,"\nendstream")}async function f(t,e,s){e.push("[");let i=true;for(const n of t){if(!i){e.push(" ")}else{i=false}await d(n,e,s)}e.push("]")}async function d(t,e,s){if(t instanceof n.Name){e.push(`/${(0,r.escapePDFName)(t.name)}`)}else if(t instanceof n.Ref){e.push(`${t.num} ${t.gen} R`)}else if(Array.isArray(t)){await f(t,e,s)}else if(typeof t==="string"){if(s){t=s.encryptString(t)}e.push(`(${(0,r.escapeString)(t)})`)}else if(typeof t==="number"){e.push((0,r.numberToString)(t))}else if(typeof t==="boolean"){e.push(t.toString())}else if(t instanceof n.Dict){await h(t,e,s)}else if(t instanceof a.BaseStream){await u(t,e,s)}else if(t===null){e.push("null")}else{(0,i.warn)(`Unhandled value in writer: ${typeof t}, please file a bug.`)}}function p(t,e,s,i){for(let n=e+s-1;n>s-1;n--){i[n]=t&255;t>>=8}return s+e}function g(t,e,s){for(let i=0,n=t.length;i<n;i++){s[e+i]=t.charCodeAt(i)&255}}function m(t,e){const s=Math.floor(Date.now()/1e3);const n=e.filename||"";const r=[s.toString(),n,t.toString()];let o=r.reduce(((t,e)=>t+e.length),0);for(const t of Object.values(e.info)){r.push(t);o+=t.length}const a=new Uint8Array(o);let l=0;for(const t of r){g(t,l,a);l+=t.length}return(0,i.bytesToString)((0,c.calculateMD5)(a))}function w(t,e){const s=new o.SimpleXMLParser({hasAttributes:true}).parseFromString(t);for(const{xfa:t}of e){if(!t){continue}const{path:e,value:n}=t;if(!e){continue}const a=(0,r.parseXFAPath)(e);let c=s.documentElement.searchNode(a,0);if(!c&&a.length>1){c=s.documentElement.searchNode([a.at(-1)],0)}if(c){c.childNodes=Array.isArray(n)?n.map((t=>new o.SimpleDOMNode("value",t))):[new o.SimpleDOMNode("#text",n)]}else{(0,i.warn)(`Node not found for path: ${e}`)}}const n=[];s.documentElement.dump(n);return n.join("")}async function b({xref:t,acroForm:e,acroFormRef:s,hasXfa:n,hasXfaDatasetsEntry:r,xfaDatasetsRef:o,needAppearances:a,newRefs:c}){if(n&&!r&&!o){(0,i.warn)("XFA - Cannot save it")}if(!a&&(!n||!o||r)){return}const h=e.clone();if(n&&!r){const t=e.get("XFA").slice();t.splice(2,0,"datasets");t.splice(3,0,o);h.set("XFA",t)}if(a){h.set("NeedAppearances",true)}const u=[];await l(s,h,u,t);c.push({ref:s,data:u.join("")})}function y({xfaData:t,xfaDatasetsRef:e,newRefs:s,xref:i}){if(t===null){const n=i.fetchIfRef(e);t=w(n.getString(),s)}const n=i.encrypt;if(n){const s=n.createCipherTransform(e.num,e.gen);t=s.encryptString(t)}const r=`${e.num} ${e.gen} obj\n`+`<< /Type /EmbeddedFile /Length ${t.length}>>\nstream\n`+t+"\nendstream\nendobj\n";s.push({ref:e,data:r})}async function A({originalData:t,xrefInfo:e,newRefs:s,xref:i=null,hasXfa:r=false,xfaDatasetsRef:o=null,hasXfaDatasetsEntry:a=false,needAppearances:c,acroFormRef:l=null,acroForm:u=null,xfaData:f=null}){await b({xref:i,acroForm:u,acroFormRef:l,hasXfa:r,hasXfaDatasetsEntry:a,xfaDatasetsRef:o,needAppearances:c,newRefs:s});if(r){y({xfaData:f,xfaDatasetsRef:o,newRefs:s,xref:i})}const d=new n.Dict(null);const w=e.newRef;let A,v;const x=t.at(-1);if(x===10||x===13){A=[];v=t.length}else{A=["\n"];v=t.length+1}d.set("Size",w.num+1);d.set("Prev",e.startXRef);d.set("Type",n.Name.get("XRef"));if(e.rootRef!==null){d.set("Root",e.rootRef)}if(e.infoRef!==null){d.set("Info",e.infoRef)}if(e.encryptRef!==null){d.set("Encrypt",e.encryptRef)}s.push({ref:w,data:""});s=s.sort(((t,e)=>t.ref.num-e.ref.num));const k=[[0,1,65535]];const S=[0,1];let M=0;for(const{ref:t,data:e}of s){M=Math.max(M,v);k.push([1,v,Math.min(t.gen,65535)]);v+=e.length;S.push(t.num,1);A.push(e)}d.set("Index",S);if(Array.isArray(e.fileIds)&&e.fileIds.length>0){const t=m(v,e);d.set("ID",[e.fileIds[0],t])}const C=Math.ceil(Math.log2(M)/8);const _=[1,C,2];const I=_[0]+_[1]+_[2];const F=I*k.length;d.set("W",_);d.set("Length",F);A.push(`${w.num} ${w.gen} obj\n`);await h(d,A,null);A.push(" stream\n");const O=A.reduce(((t,e)=>t+e.length),0);const E=`\nendstream\nendobj\nstartxref\n${v}\n%%EOF\n`;const T=new Uint8Array(t.length+O+F+E.length);T.set(t);let D=t.length;for(const t of A){g(t,D,T);D+=t.length}for(const[t,e,s]of k){D=p(t,_[0],D,T);D=p(e,_[1],D,T);D=p(s,_[2],D,T)}g(E,D,T);return T}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.calculateSHA256=e.calculateMD5=e.PDF20=e.PDF17=e.CipherTransformFactory=e.ARCFourCipher=e.AES256Cipher=e.AES128Cipher=void 0;e.calculateSHA384=u;e.calculateSHA512=void 0;var i=s(2);var n=s(4);var r=s(75);class o{constructor(t){this.a=0;this.b=0;const e=new Uint8Array(256);const s=t.length;for(let t=0;t<256;++t){e[t]=t}for(let i=0,n=0;i<256;++i){const r=e[i];n=n+r+t[i%s]&255;e[i]=e[n];e[n]=r}this.s=e}encryptBlock(t){let e=this.a,s=this.b;const i=this.s;const n=t.length;const r=new Uint8Array(n);for(let o=0;o<n;++o){e=e+1&255;const n=i[e];s=s+n&255;const a=i[s];i[e]=a;i[s]=n;r[o]=t[o]^i[n+a&255]}this.a=e;this.b=s;return r}decryptBlock(t){return this.encryptBlock(t)}encrypt(t){return this.encryptBlock(t)}}e.ARCFourCipher=o;const a=function t(){const e=new Uint8Array([7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21]);const s=new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]);function i(t,i,n){let r=1732584193,o=-271733879,a=-1732584194,c=271733878;const l=n+72&~63;const h=new Uint8Array(l);let u,f;for(u=0;u<n;++u){h[u]=t[i++]}h[u++]=128;const d=l-8;while(u<d){h[u++]=0}h[u++]=n<<3&255;h[u++]=n>>5&255;h[u++]=n>>13&255;h[u++]=n>>21&255;h[u++]=n>>>29&255;h[u++]=0;h[u++]=0;h[u++]=0;const p=new Int32Array(16);for(u=0;u<l;){for(f=0;f<16;++f,u+=4){p[f]=h[u]|h[u+1]<<8|h[u+2]<<16|h[u+3]<<24}let t=r,i=o,n=a,l=c,d,g;for(f=0;f<64;++f){if(f<16){d=i&n|~i&l;g=f}else if(f<32){d=l&i|~l&n;g=5*f+1&15}else if(f<48){d=i^n^l;g=3*f+5&15}else{d=n^(i|~l);g=7*f&15}const r=l,o=t+d+s[f]+p[g]|0,a=e[f];l=n;n=i;i=i+(o<<a|o>>>32-a)|0;t=r}r=r+t|0;o=o+i|0;a=a+n|0;c=c+l|0}return new Uint8Array([r&255,r>>8&255,r>>16&255,r>>>24&255,o&255,o>>8&255,o>>16&255,o>>>24&255,a&255,a>>8&255,a>>16&255,a>>>24&255,c&255,c>>8&255,c>>16&255,c>>>24&255])}return i}();e.calculateMD5=a;class c{constructor(t,e){this.high=t|0;this.low=e|0}and(t){this.high&=t.high;this.low&=t.low}xor(t){this.high^=t.high;this.low^=t.low}or(t){this.high|=t.high;this.low|=t.low}shiftRight(t){if(t>=32){this.low=this.high>>>t-32|0;this.high=0}else{this.low=this.low>>>t|this.high<<32-t;this.high=this.high>>>t|0}}shiftLeft(t){if(t>=32){this.high=this.low<<t-32;this.low=0}else{this.high=this.high<<t|this.low>>>32-t;this.low<<=t}}rotateRight(t){let e,s;if(t&32){s=this.low;e=this.high}else{e=this.low;s=this.high}t&=31;this.low=e>>>t|s<<32-t;this.high=s>>>t|e<<32-t}not(){this.high=~this.high;this.low=~this.low}add(t){const e=(this.low>>>0)+(t.low>>>0);let s=(this.high>>>0)+(t.high>>>0);if(e>4294967295){s+=1}this.low=e|0;this.high=s|0}copyTo(t,e){t[e]=this.high>>>24&255;t[e+1]=this.high>>16&255;t[e+2]=this.high>>8&255;t[e+3]=this.high&255;t[e+4]=this.low>>>24&255;t[e+5]=this.low>>16&255;t[e+6]=this.low>>8&255;t[e+7]=this.low&255}assign(t){this.high=t.high;this.low=t.low}}const l=function t(){function e(t,e){return t>>>e|t<<32-e}function s(t,e,s){return t&e^~t&s}function i(t,e,s){return t&e^t&s^e&s}function n(t){return e(t,2)^e(t,13)^e(t,22)}function r(t){return e(t,6)^e(t,11)^e(t,25)}function o(t){return e(t,7)^e(t,18)^t>>>3}function a(t){return e(t,17)^e(t,19)^t>>>10}const c=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function l(t,e,l){let h=1779033703,u=3144134277,f=1013904242,d=2773480762,p=1359893119,g=2600822924,m=528734635,w=1541459225;const b=Math.ceil((l+9)/64)*64;const y=new Uint8Array(b);let A,v;for(A=0;A<l;++A){y[A]=t[e++]}y[A++]=128;const x=b-8;while(A<x){y[A++]=0}y[A++]=0;y[A++]=0;y[A++]=0;y[A++]=l>>>29&255;y[A++]=l>>21&255;y[A++]=l>>13&255;y[A++]=l>>5&255;y[A++]=l<<3&255;const k=new Uint32Array(64);for(A=0;A<b;){for(v=0;v<16;++v){k[v]=y[A]<<24|y[A+1]<<16|y[A+2]<<8|y[A+3];A+=4}for(v=16;v<64;++v){k[v]=a(k[v-2])+k[v-7]+o(k[v-15])+k[v-16]|0}let t=h,e=u,l=f,b=d,x=p,S=g,M=m,C=w,_,I;for(v=0;v<64;++v){_=C+r(x)+s(x,S,M)+c[v]+k[v];I=n(t)+i(t,e,l);C=M;M=S;S=x;x=b+_|0;b=l;l=e;e=t;t=_+I|0}h=h+t|0;u=u+e|0;f=f+l|0;d=d+b|0;p=p+x|0;g=g+S|0;m=m+M|0;w=w+C|0}return new Uint8Array([h>>24&255,h>>16&255,h>>8&255,h&255,u>>24&255,u>>16&255,u>>8&255,u&255,f>>24&255,f>>16&255,f>>8&255,f&255,d>>24&255,d>>16&255,d>>8&255,d&255,p>>24&255,p>>16&255,p>>8&255,p&255,g>>24&255,g>>16&255,g>>8&255,g&255,m>>24&255,m>>16&255,m>>8&255,m&255,w>>24&255,w>>16&255,w>>8&255,w&255])}return l}();e.calculateSHA256=l;const h=function t(){function e(t,e,s,i,n){t.assign(e);t.and(s);n.assign(e);n.not();n.and(i);t.xor(n)}function s(t,e,s,i,n){t.assign(e);t.and(s);n.assign(e);n.and(i);t.xor(n);n.assign(s);n.and(i);t.xor(n)}function i(t,e,s){t.assign(e);t.rotateRight(28);s.assign(e);s.rotateRight(34);t.xor(s);s.assign(e);s.rotateRight(39);t.xor(s)}function n(t,e,s){t.assign(e);t.rotateRight(14);s.assign(e);s.rotateRight(18);t.xor(s);s.assign(e);s.rotateRight(41);t.xor(s)}function r(t,e,s){t.assign(e);t.rotateRight(1);s.assign(e);s.rotateRight(8);t.xor(s);s.assign(e);s.shiftRight(7);t.xor(s)}function o(t,e,s){t.assign(e);t.rotateRight(19);s.assign(e);s.rotateRight(61);t.xor(s);s.assign(e);s.shiftRight(6);t.xor(s)}const a=[new c(1116352408,3609767458),new c(1899447441,602891725),new c(3049323471,3964484399),new c(3921009573,2173295548),new c(961987163,4081628472),new c(1508970993,3053834265),new c(2453635748,2937671579),new c(2870763221,3664609560),new c(3624381080,2734883394),new c(310598401,1164996542),new c(607225278,1323610764),new c(1426881987,3590304994),new c(1925078388,4068182383),new c(2162078206,991336113),new c(2614888103,633803317),new c(3248222580,3479774868),new c(3835390401,2666613458),new c(4022224774,944711139),new c(264347078,2341262773),new c(604807628,2007800933),new c(770255983,1495990901),new c(1249150122,1856431235),new c(1555081692,3175218132),new c(1996064986,2198950837),new c(2554220882,3999719339),new c(2821834349,766784016),new c(2952996808,2566594879),new c(3210313671,3203337956),new c(3336571891,1034457026),new c(3584528711,2466948901),new c(113926993,3758326383),new c(338241895,168717936),new c(666307205,1188179964),new c(773529912,1546045734),new c(1294757372,1522805485),new c(1396182291,2643833823),new c(1695183700,2343527390),new c(1986661051,1014477480),new c(2177026350,1206759142),new c(2456956037,344077627),new c(2730485921,1290863460),new c(2820302411,3158454273),new c(3259730800,3505952657),new c(3345764771,106217008),new c(3516065817,3606008344),new c(3600352804,1432725776),new c(4094571909,1467031594),new c(275423344,851169720),new c(430227734,3100823752),new c(506948616,1363258195),new c(659060556,3750685593),new c(883997877,3785050280),new c(958139571,3318307427),new c(1322822218,3812723403),new c(1537002063,2003034995),new c(1747873779,3602036899),new c(1955562222,1575990012),new c(2024104815,1125592928),new c(2227730452,2716904306),new c(2361852424,442776044),new c(2428436474,593698344),new c(2756734187,3733110249),new c(3204031479,2999351573),new c(3329325298,3815920427),new c(3391569614,3928383900),new c(3515267271,566280711),new c(3940187606,3454069534),new c(4118630271,4000239992),new c(116418474,1914138554),new c(174292421,2731055270),new c(289380356,3203993006),new c(460393269,320620315),new c(685471733,587496836),new c(852142971,1086792851),new c(1017036298,365543100),new c(1126000580,2618297676),new c(1288033470,3409855158),new c(1501505948,4234509866),new c(1607167915,987167468),new c(1816402316,1246189591)];function l(t,l,h,u=false){let f,d,p,g,m,w,b,y;if(!u){f=new c(1779033703,4089235720);d=new c(3144134277,2227873595);p=new c(1013904242,4271175723);g=new c(2773480762,1595750129);m=new c(1359893119,2917565137);w=new c(2600822924,725511199);b=new c(528734635,4215389547);y=new c(1541459225,327033209)}else{f=new c(3418070365,3238371032);d=new c(1654270250,914150663);p=new c(2438529370,812702999);g=new c(355462360,4144912697);m=new c(1731405415,4290775857);w=new c(2394180231,1750603025);b=new c(3675008525,1694076839);y=new c(1203062813,3204075428)}const A=Math.ceil((h+17)/128)*128;const v=new Uint8Array(A);let x,k;for(x=0;x<h;++x){v[x]=t[l++]}v[x++]=128;const S=A-16;while(x<S){v[x++]=0}v[x++]=0;v[x++]=0;v[x++]=0;v[x++]=0;v[x++]=0;v[x++]=0;v[x++]=0;v[x++]=0;v[x++]=0;v[x++]=0;v[x++]=0;v[x++]=h>>>29&255;v[x++]=h>>21&255;v[x++]=h>>13&255;v[x++]=h>>5&255;v[x++]=h<<3&255;const M=new Array(80);for(x=0;x<80;x++){M[x]=new c(0,0)}let C=new c(0,0),_=new c(0,0),I=new c(0,0);let F=new c(0,0),O=new c(0,0),E=new c(0,0);let T=new c(0,0),D=new c(0,0);const P=new c(0,0),R=new c(0,0);const N=new c(0,0),L=new c(0,0);let B;for(x=0;x<A;){for(k=0;k<16;++k){M[k].high=v[x]<<24|v[x+1]<<16|v[x+2]<<8|v[x+3];M[k].low=v[x+4]<<24|v[x+5]<<16|v[x+6]<<8|v[x+7];x+=8}for(k=16;k<80;++k){B=M[k];o(B,M[k-2],L);B.add(M[k-7]);r(N,M[k-15],L);B.add(N);B.add(M[k-16])}C.assign(f);_.assign(d);I.assign(p);F.assign(g);O.assign(m);E.assign(w);T.assign(b);D.assign(y);for(k=0;k<80;++k){P.assign(D);n(N,O,L);P.add(N);e(N,O,E,T,L);P.add(N);P.add(a[k]);P.add(M[k]);i(R,C,L);s(N,C,_,I,L);R.add(N);B=D;D=T;T=E;E=O;F.add(P);O=F;F=I;I=_;_=C;B.assign(P);B.add(R);C=B}f.add(C);d.add(_);p.add(I);g.add(F);m.add(O);w.add(E);b.add(T);y.add(D)}let $;if(!u){$=new Uint8Array(64);f.copyTo($,0);d.copyTo($,8);p.copyTo($,16);g.copyTo($,24);m.copyTo($,32);w.copyTo($,40);b.copyTo($,48);y.copyTo($,56)}else{$=new Uint8Array(48);f.copyTo($,0);d.copyTo($,8);p.copyTo($,16);g.copyTo($,24);m.copyTo($,32);w.copyTo($,40)}return $}return l}();e.calculateSHA512=h;function u(t,e,s){return h(t,e,s,true)}class f{decryptBlock(t){return t}encrypt(t){return t}}class d{constructor(){if(this.constructor===d){(0,i.unreachable)("Cannot initialize AESBaseCipher.")}this._s=new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]);this._inv_s=new Uint8Array([82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125]);this._mix=new Uint32Array([0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795]);this._mixCol=new Uint8Array(256);for(let t=0;t<256;t++){this._mixCol[t]=t<128?t<<1:t<<1^27}this.buffer=new Uint8Array(16);this.bufferPosition=0}_expandKey(t){(0,i.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(t,e){let s,i,n;const r=new Uint8Array(16);r.set(t);for(let t=0,s=this._keySize;t<16;++t,++s){r[t]^=e[s]}for(let t=this._cyclesOfRepetition-1;t>=1;--t){s=r[13];r[13]=r[9];r[9]=r[5];r[5]=r[1];r[1]=s;s=r[14];i=r[10];r[14]=r[6];r[10]=r[2];r[6]=s;r[2]=i;s=r[15];i=r[11];n=r[7];r[15]=r[3];r[11]=s;r[7]=i;r[3]=n;for(let t=0;t<16;++t){r[t]=this._inv_s[r[t]]}for(let s=0,i=t*16;s<16;++s,++i){r[s]^=e[i]}for(let t=0;t<16;t+=4){const e=this._mix[r[t]];const i=this._mix[r[t+1]];const n=this._mix[r[t+2]];const o=this._mix[r[t+3]];s=e^i>>>8^i<<24^n>>>16^n<<16^o>>>24^o<<8;r[t]=s>>>24&255;r[t+1]=s>>16&255;r[t+2]=s>>8&255;r[t+3]=s&255}}s=r[13];r[13]=r[9];r[9]=r[5];r[5]=r[1];r[1]=s;s=r[14];i=r[10];r[14]=r[6];r[10]=r[2];r[6]=s;r[2]=i;s=r[15];i=r[11];n=r[7];r[15]=r[3];r[11]=s;r[7]=i;r[3]=n;for(let t=0;t<16;++t){r[t]=this._inv_s[r[t]];r[t]^=e[t]}return r}_encrypt(t,e){const s=this._s;let i,n,r;const o=new Uint8Array(16);o.set(t);for(let t=0;t<16;++t){o[t]^=e[t]}for(let t=1;t<this._cyclesOfRepetition;t++){for(let t=0;t<16;++t){o[t]=s[o[t]]}r=o[1];o[1]=o[5];o[5]=o[9];o[9]=o[13];o[13]=r;r=o[2];n=o[6];o[2]=o[10];o[6]=o[14];o[10]=r;o[14]=n;r=o[3];n=o[7];i=o[11];o[3]=o[15];o[7]=r;o[11]=n;o[15]=i;for(let t=0;t<16;t+=4){const e=o[t+0];const s=o[t+1];const n=o[t+2];const r=o[t+3];i=e^s^n^r;o[t+0]^=i^this._mixCol[e^s];o[t+1]^=i^this._mixCol[s^n];o[t+2]^=i^this._mixCol[n^r];o[t+3]^=i^this._mixCol[r^e]}for(let s=0,i=t*16;s<16;++s,++i){o[s]^=e[i]}}for(let t=0;t<16;++t){o[t]=s[o[t]]}r=o[1];o[1]=o[5];o[5]=o[9];o[9]=o[13];o[13]=r;r=o[2];n=o[6];o[2]=o[10];o[6]=o[14];o[10]=r;o[14]=n;r=o[3];n=o[7];i=o[11];o[3]=o[15];o[7]=r;o[11]=n;o[15]=i;for(let t=0,s=this._keySize;t<16;++t,++s){o[t]^=e[s]}return o}_decryptBlock2(t,e){const s=t.length;let i=this.buffer,n=this.bufferPosition;const r=[];let o=this.iv;for(let e=0;e<s;++e){i[n]=t[e];++n;if(n<16){continue}const s=this._decrypt(i,this._key);for(let t=0;t<16;++t){s[t]^=o[t]}o=i;r.push(s);i=new Uint8Array(16);n=0}this.buffer=i;this.bufferLength=n;this.iv=o;if(r.length===0){return new Uint8Array(0)}let a=16*r.length;if(e){const t=r.at(-1);let e=t[15];if(e<=16){for(let s=15,i=16-e;s>=i;--s){if(t[s]!==e){e=0;break}}a-=e;r[r.length-1]=t.subarray(0,16-e)}}const c=new Uint8Array(a);for(let t=0,e=0,s=r.length;t<s;++t,e+=16){c.set(r[t],e)}return c}decryptBlock(t,e,s=null){const i=t.length;const n=this.buffer;let r=this.bufferPosition;if(s){this.iv=s}else{for(let e=0;r<16&&e<i;++e,++r){n[r]=t[e]}if(r<16){this.bufferLength=r;return new Uint8Array(0)}this.iv=n;t=t.subarray(16)}this.buffer=new Uint8Array(16);this.bufferLength=0;this.decryptBlock=this._decryptBlock2;return this.decryptBlock(t,e)}encrypt(t,e){const s=t.length;let i=this.buffer,n=this.bufferPosition;const r=[];if(!e){e=new Uint8Array(16)}for(let o=0;o<s;++o){i[n]=t[o];++n;if(n<16){continue}for(let t=0;t<16;++t){i[t]^=e[t]}const s=this._encrypt(i,this._key);e=s;r.push(s);i=new Uint8Array(16);n=0}this.buffer=i;this.bufferLength=n;this.iv=e;if(r.length===0){return new Uint8Array(0)}const o=16*r.length;const a=new Uint8Array(o);for(let t=0,e=0,s=r.length;t<s;++t,e+=16){a.set(r[t],e)}return a}}class p extends d{constructor(t){super();this._cyclesOfRepetition=10;this._keySize=160;this._rcon=new Uint8Array([141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141,1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145,57,114,228,211,189,97,194,159,37,74,148,51,102,204,131,29,58,116,232,203,141]);this._key=this._expandKey(t)}_expandKey(t){const e=176;const s=this._s;const i=this._rcon;const n=new Uint8Array(e);n.set(t);for(let t=16,r=1;t<e;++r){let e=n[t-3];let o=n[t-2];let a=n[t-1];let c=n[t-4];e=s[e];o=s[o];a=s[a];c=s[c];e^=i[r];for(let s=0;s<4;++s){n[t]=e^=n[t-16];t++;n[t]=o^=n[t-16];t++;n[t]=a^=n[t-16];t++;n[t]=c^=n[t-16];t++}}return n}}e.AES128Cipher=p;class g extends d{constructor(t){super();this._cyclesOfRepetition=14;this._keySize=224;this._key=this._expandKey(t)}_expandKey(t){const e=240;const s=this._s;const i=new Uint8Array(e);i.set(t);let n=1;let r,o,a,c;for(let t=32,l=1;t<e;++l){if(t%32===16){r=s[r];o=s[o];a=s[a];c=s[c]}else if(t%32===0){r=i[t-3];o=i[t-2];a=i[t-1];c=i[t-4];r=s[r];o=s[o];a=s[a];c=s[c];r^=n;if((n<<=1)>=256){n=(n^27)&255}}for(let e=0;e<4;++e){i[t]=r^=i[t-32];t++;i[t]=o^=i[t-32];t++;i[t]=a^=i[t-32];t++;i[t]=c^=i[t-32];t++}}return i}}e.AES256Cipher=g;class m{checkOwnerPassword(t,e,s,n){const r=new Uint8Array(t.length+56);r.set(t,0);r.set(e,t.length);r.set(s,t.length+e.length);const o=l(r,0,r.length);return(0,i.isArrayEqual)(o,n)}checkUserPassword(t,e,s){const n=new Uint8Array(t.length+8);n.set(t,0);n.set(e,t.length);const r=l(n,0,n.length);return(0,i.isArrayEqual)(r,s)}getOwnerKey(t,e,s,i){const n=new Uint8Array(t.length+56);n.set(t,0);n.set(e,t.length);n.set(s,t.length+e.length);const r=l(n,0,n.length);const o=new g(r);return o.decryptBlock(i,false,new Uint8Array(16))}getUserKey(t,e,s){const i=new Uint8Array(t.length+8);i.set(t,0);i.set(e,t.length);const n=l(i,0,i.length);const r=new g(n);return r.decryptBlock(s,false,new Uint8Array(16))}}e.PDF17=m;class w{_hash(t,e,s){let i=l(e,0,e.length).subarray(0,32);let n=[0];let r=0;while(r<64||n.at(-1)>r-32){const e=t.length+i.length+s.length,o=new Uint8Array(e);let a=0;o.set(t,a);a+=t.length;o.set(i,a);a+=i.length;o.set(s,a);const c=new Uint8Array(e*64);for(let t=0,s=0;t<64;t++,s+=e){c.set(o,s)}const f=new p(i.subarray(0,16));n=f.encrypt(c,i.subarray(16,32));const d=n.slice(0,16).reduce(((t,e)=>t+e),0)%3;if(d===0){i=l(n,0,n.length)}else if(d===1){i=u(n,0,n.length)}else if(d===2){i=h(n,0,n.length)}r++}return i.subarray(0,32)}checkOwnerPassword(t,e,s,n){const r=new Uint8Array(t.length+56);r.set(t,0);r.set(e,t.length);r.set(s,t.length+e.length);const o=this._hash(t,r,s);return(0,i.isArrayEqual)(o,n)}checkUserPassword(t,e,s){const n=new Uint8Array(t.length+8);n.set(t,0);n.set(e,t.length);const r=this._hash(t,n,[]);return(0,i.isArrayEqual)(r,s)}getOwnerKey(t,e,s,i){const n=new Uint8Array(t.length+56);n.set(t,0);n.set(e,t.length);n.set(s,t.length+e.length);const r=this._hash(t,n,s);const o=new g(r);return o.decryptBlock(i,false,new Uint8Array(16))}getUserKey(t,e,s){const i=new Uint8Array(t.length+8);i.set(t,0);i.set(e,t.length);const n=this._hash(t,i,[]);const r=new g(n);return r.decryptBlock(s,false,new Uint8Array(16))}}e.PDF20=w;class b{constructor(t,e){this.StringCipherConstructor=t;this.StreamCipherConstructor=e}createStream(t,e){const s=new this.StreamCipherConstructor;return new r.DecryptStream(t,e,(function t(e,i){return s.decryptBlock(e,i)}))}decryptString(t){const e=new this.StringCipherConstructor;let s=(0,i.stringToBytes)(t);s=e.decryptBlock(s,true);return(0,i.bytesToString)(s)}encryptString(t){const e=new this.StringCipherConstructor;if(e instanceof d){const s=t.length;const n=16-s%16;t+=String.fromCharCode(n).repeat(n);const r=new Uint8Array(16);if(typeof crypto!=="undefined"){crypto.getRandomValues(r)}else{for(let t=0;t<16;t++){r[t]=Math.floor(256*Math.random())}}let o=(0,i.stringToBytes)(t);o=e.encrypt(o,r);const a=new Uint8Array(16+o.length);a.set(r);a.set(o,16);return(0,i.bytesToString)(a)}let s=(0,i.stringToBytes)(t);s=e.encrypt(s);return(0,i.bytesToString)(s)}}class y{static#nn=new Uint8Array([40,191,78,94,78,117,138,65,100,0,78,86,255,250,1,8,46,46,0,182,208,104,62,128,47,12,169,254,100,83,105,122]);#rn(t,e,s,i,n,r,o,a,c,l,h,u){if(e){const t=Math.min(127,e.length);e=e.subarray(0,t)}else{e=[]}const f=t===6?new w:new m;if(f.checkUserPassword(e,a,o)){return f.getUserKey(e,c,h)}else if(e.length&&f.checkOwnerPassword(e,i,r,s)){return f.getOwnerKey(e,n,r,l)}return null}#on(t,e,s,i,n,r,c,l){const h=40+s.length+t.length;const u=new Uint8Array(h);let f=0,d,p;if(e){p=Math.min(32,e.length);for(;f<p;++f){u[f]=e[f]}}d=0;while(f<32){u[f++]=y.#nn[d++]}for(d=0,p=s.length;d<p;++d){u[f++]=s[d]}u[f++]=n&255;u[f++]=n>>8&255;u[f++]=n>>16&255;u[f++]=n>>>24&255;for(d=0,p=t.length;d<p;++d){u[f++]=t[d]}if(r>=4&&!l){u[f++]=255;u[f++]=255;u[f++]=255;u[f++]=255}let g=a(u,0,f);const m=c>>3;if(r>=3){for(d=0;d<50;++d){g=a(g,0,m)}}const w=g.subarray(0,m);let b,A;if(r>=3){for(f=0;f<32;++f){u[f]=y.#nn[f]}for(d=0,p=t.length;d<p;++d){u[f++]=t[d]}b=new o(w);A=b.encryptBlock(a(u,0,f));p=w.length;const e=new Uint8Array(p);for(d=1;d<=19;++d){for(let t=0;t<p;++t){e[t]=w[t]^d}b=new o(e);A=b.encryptBlock(A)}for(d=0,p=A.length;d<p;++d){if(i[d]!==A[d]){return null}}}else{b=new o(w);A=b.encryptBlock(y.#nn);for(d=0,p=A.length;d<p;++d){if(i[d]!==A[d]){return null}}}return w}#an(t,e,s,i){const n=new Uint8Array(32);let r=0;const c=Math.min(32,t.length);for(;r<c;++r){n[r]=t[r]}let l=0;while(r<32){n[r++]=y.#nn[l++]}let h=a(n,0,r);const u=i>>3;if(s>=3){for(l=0;l<50;++l){h=a(h,0,h.length)}}let f,d;if(s>=3){d=e;const t=new Uint8Array(u);for(l=19;l>=0;l--){for(let e=0;e<u;++e){t[e]=h[e]^l}f=new o(t);d=f.encryptBlock(d)}}else{f=new o(h.subarray(0,u));d=f.encryptBlock(e)}return d}#cn(t,e,s,i=false){const n=new Uint8Array(s.length+9);const r=s.length;let o;for(o=0;o<r;++o){n[o]=s[o]}n[o++]=t&255;n[o++]=t>>8&255;n[o++]=t>>16&255;n[o++]=e&255;n[o++]=e>>8&255;if(i){n[o++]=115;n[o++]=65;n[o++]=108;n[o++]=84}const c=a(n,0,o);return c.subarray(0,Math.min(s.length+5,16))}#ln(t,e,s,r,a){if(!(e instanceof n.Name)){throw new i.FormatError("Invalid crypt filter name.")}const c=this;const l=t.get(e.name);const h=l?.get("CFM");if(!h||h.name==="None"){return function(){return new f}}if(h.name==="V2"){return function(){return new o(c.#cn(s,r,a,false))}}if(h.name==="AESV2"){return function(){return new p(c.#cn(s,r,a,true))}}if(h.name==="AESV3"){return function(){return new g(a)}}throw new i.FormatError("Unknown crypto method")}constructor(t,e,s){const r=t.get("Filter");if(!(0,n.isName)(r,"Standard")){throw new i.FormatError("unknown encryption method")}this.filterName=r.name;this.dict=t;const o=t.get("V");if(!Number.isInteger(o)||o!==1&&o!==2&&o!==4&&o!==5){throw new i.FormatError("unsupported encryption algorithm")}this.algorithm=o;let a=t.get("Length");if(!a){if(o<=3){a=40}else{const e=t.get("CF");const s=t.get("StmF");if(e instanceof n.Dict&&s instanceof n.Name){e.suppressEncryption=true;const t=e.get(s.name);a=t?.get("Length")||128;if(a<40){a<<=3}}}}if(!Number.isInteger(a)||a<40||a%8!==0){throw new i.FormatError("invalid key length")}const c=(0,i.stringToBytes)(t.get("O")),l=(0,i.stringToBytes)(t.get("U"));const h=c.subarray(0,32);const u=l.subarray(0,32);const f=t.get("P");const d=t.get("R");const p=(o===4||o===5)&&t.get("EncryptMetadata")!==false;this.encryptMetadata=p;const g=(0,i.stringToBytes)(e);let m;if(s){if(d===6){try{s=(0,i.utf8StringToString)(s)}catch{(0,i.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}}m=(0,i.stringToBytes)(s)}let w;if(o!==5){w=this.#on(g,m,h,u,f,d,a,p)}else{const e=c.subarray(32,40);const s=c.subarray(40,48);const n=l.subarray(0,48);const r=l.subarray(32,40);const o=l.subarray(40,48);const a=(0,i.stringToBytes)(t.get("OE"));const f=(0,i.stringToBytes)(t.get("UE"));const p=(0,i.stringToBytes)(t.get("Perms"));w=this.#rn(d,m,h,e,s,n,u,r,o,a,f,p)}if(!w&&!s){throw new i.PasswordException("No password given",i.PasswordResponses.NEED_PASSWORD)}else if(!w&&s){const t=this.#an(m,h,d,a);w=this.#on(g,t,h,u,f,d,a,p)}if(!w){throw new i.PasswordException("Incorrect Password",i.PasswordResponses.INCORRECT_PASSWORD)}this.encryptionKey=w;if(o>=4){const e=t.get("CF");if(e instanceof n.Dict){e.suppressEncryption=true}this.cf=e;this.stmf=t.get("StmF")||n.Name.get("Identity");this.strf=t.get("StrF")||n.Name.get("Identity");this.eff=t.get("EFF")||this.stmf}}createCipherTransform(t,e){if(this.algorithm===4||this.algorithm===5){return new b(this.#ln(this.cf,this.strf,t,e,this.encryptionKey),this.#ln(this.cf,this.stmf,t,e,this.encryptionKey))}const s=this.#cn(t,e,this.encryptionKey,false);const i=function(){return new o(s)};return new b(i,i)}}e.CipherTransformFactory=y},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.DecryptStream=void 0;var i=s(18);const n=512;class r extends i.DecodeStream{constructor(t,e,s){super(e);this.str=t;this.dict=t.dict;this.decrypt=s;this.nextChunk=null;this.initialized=false}readBlock(){let t;if(this.initialized){t=this.nextChunk}else{t=this.str.getBytes(n);this.initialized=true}if(!t||t.length===0){this.eof=true;return}this.nextChunk=this.str.getBytes(n);const e=this.nextChunk?.length>0;const s=this.decrypt;t=s(t,!e);const i=this.bufferLength,r=i+t.length,o=this.ensureBuffer(r);o.set(t,i);this.bufferLength=r}}e.DecryptStream=r},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.ObjectLoader=void 0;var i=s(4);var n=s(5);var r=s(3);var o=s(2);function a(t){return t instanceof i.Ref||t instanceof i.Dict||t instanceof n.BaseStream||Array.isArray(t)}function c(t,e){if(t instanceof i.Dict){t=t.getRawValues()}else if(t instanceof n.BaseStream){t=t.dict.getRawValues()}else if(!Array.isArray(t)){return}for(const s of t){if(a(s)){e.push(s)}}}class l{constructor(t,e,s){this.dict=t;this.keys=e;this.xref=s;this.refSet=null}async load(){if(this.xref.stream.isDataLoaded){return undefined}const{keys:t,dict:e}=this;this.refSet=new i.RefSet;const s=[];for(const i of t){const t=e.getRaw(i);if(t!==undefined){s.push(t)}}return this._walk(s)}async _walk(t){const e=[];const s=[];while(t.length){let a=t.pop();if(a instanceof i.Ref){if(this.refSet.has(a)){continue}try{this.refSet.put(a);a=this.xref.fetch(a)}catch(t){if(!(t instanceof r.MissingDataException)){(0,o.warn)(`ObjectLoader._walk - requesting all data: "${t}".`);this.refSet=null;const{manager:e}=this.xref.stream;return e.requestAllChunks()}e.push(a);s.push({begin:t.begin,end:t.end})}}if(a instanceof n.BaseStream){const t=a.getBaseStreams();if(t){let i=false;for(const e of t){if(e.isDataLoaded){continue}i=true;s.push({begin:e.start,end:e.end})}if(i){e.push(a)}}}c(a,t)}if(s.length){await this.xref.stream.manager.requestRanges(s);for(const t of e){if(t instanceof i.Ref){this.refSet.remove(t)}}return this._walk(e)}this.refSet=null;return undefined}}e.ObjectLoader=l},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.XFAFactory=void 0;var i=s(78);var n=s(79);var r=s(89);var o=s(85);var a=s(84);var c=s(2);var l=s(90);var h=s(100);class u{constructor(t){try{this.root=(new l.XFAParser).parse(u._createDocument(t));const e=new n.Binder(this.root);this.form=e.bind();this.dataHandler=new r.DataHandler(this.root,e.getData());this.form[i.$globalData].template=this.form}catch(t){(0,c.warn)(`XFA - an error occurred during parsing and binding: ${t}`)}}isValid(){return this.root&&this.form}_createPagesHelper(){const t=this.form[i.$toPages]();return new Promise(((e,s)=>{const i=()=>{try{const s=t.next();if(s.done){e(s.value)}else{setTimeout(i,0)}}catch(t){s(t)}};setTimeout(i,0)}))}async _createPages(){try{this.pages=await this._createPagesHelper();this.dims=this.pages.children.map((t=>{const{width:e,height:s}=t.attributes.style;return[0,0,parseInt(e),parseInt(s)]}))}catch(t){(0,c.warn)(`XFA - an error occurred during layout: ${t}`)}}getBoundingBox(t){return this.dims[t]}async getNumPages(){if(!this.pages){await this._createPages()}return this.dims.length}setImages(t){this.form[i.$globalData].images=t}setFonts(t){this.form[i.$globalData].fontFinder=new o.FontFinder(t);const e=[];for(let t of this.form[i.$globalData].usedTypefaces){t=(0,a.stripQuotes)(t);const s=this.form[i.$globalData].fontFinder.find(t);if(!s){e.push(t)}}if(e.length>0){return e}return null}appendFonts(t,e){this.form[i.$globalData].fontFinder.add(t,e)}async getPages(){if(!this.pages){await this._createPages()}const t=this.pages;this.pages=null;return t}serializeData(t){return this.dataHandler.serialize(t)}static _createDocument(t){if(!t["/xdp:xdp"]){return t["xdp:xdp"]}return Object.values(t).join("")}static getRichTextAsHtml(t){if(!t||typeof t!=="string"){return null}try{let e=new l.XFAParser(h.XhtmlNamespace,true).parse(t);if(!["body","xhtml"].includes(e[i.$nodeName])){const t=h.XhtmlNamespace.body({});t[i.$appendChild](e);e=t}const s=e[i.$toHTML]();if(!s.success){return null}const{html:n}=s;const{attributes:r}=n;if(r){if(r.class){r.class=r.class.filter((t=>!t.startsWith("xfa")))}r.dir="auto"}return{html:n,str:e[i.$text]()}}catch(t){(0,c.warn)(`XFA - an error occurred during parsing of rich text: ${t}`)}return null}}e.XFAFactory=u},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.$uid=e.$toStyle=e.$toString=e.$toPages=e.$toHTML=e.$text=e.$tabIndex=e.$setValue=e.$setSetAttributes=e.$setId=e.$searchNode=e.$root=e.$resolvePrototypes=e.$removeChild=e.$pushPara=e.$pushGlyphs=e.$popPara=e.$onText=e.$onChildCheck=e.$onChild=e.$nsAttributes=e.$nodeName=e.$namespaceId=e.$lastAttribute=e.$isUsable=e.$isTransparent=e.$isThereMoreWidth=e.$isSplittable=e.$isNsAgnostic=e.$isDescendent=e.$isDataValue=e.$isCDATAXml=e.$isBindable=e.$insertAt=e.$indexOf=e.$ids=e.$hasSettableValue=e.$globalData=e.$getTemplateRoot=e.$getSubformParent=e.$getRealChildrenByNameIt=e.$getParent=e.$getNextPage=e.$getExtra=e.$getDataValue=e.$getContainedChildren=e.$getChildrenByNameIt=e.$getChildrenByName=e.$getChildrenByClass=e.$getChildren=e.$getAvailableSpace=e.$getAttributes=e.$getAttributeIt=e.$flushHTML=e.$finalize=e.$extra=e.$dump=e.$data=e.$content=e.$consumed=e.$clone=e.$cleanup=e.$cleanPage=e.$clean=e.$childrenToHTML=e.$appendChild=e.$addHTML=e.$acceptWhitespace=void 0;const s=Symbol();e.$acceptWhitespace=s;const i=Symbol();e.$addHTML=i;const n=Symbol();e.$appendChild=n;const r=Symbol();e.$childrenToHTML=r;const o=Symbol();e.$clean=o;const a=Symbol();e.$cleanPage=a;const c=Symbol();e.$cleanup=c;const l=Symbol();e.$clone=l;const h=Symbol();e.$consumed=h;const u=Symbol("content");e.$content=u;const f=Symbol("data");e.$data=f;const d=Symbol();e.$dump=d;const p=Symbol("extra");e.$extra=p;const g=Symbol();e.$finalize=g;const m=Symbol();e.$flushHTML=m;const w=Symbol();e.$getAttributeIt=w;const b=Symbol();e.$getAttributes=b;const y=Symbol();e.$getAvailableSpace=y;const A=Symbol();e.$getChildrenByClass=A;const v=Symbol();e.$getChildrenByName=v;const x=Symbol();e.$getChildrenByNameIt=x;const k=Symbol();e.$getDataValue=k;const S=Symbol();e.$getExtra=S;const M=Symbol();e.$getRealChildrenByNameIt=M;const C=Symbol();e.$getChildren=C;const _=Symbol();e.$getContainedChildren=_;const I=Symbol();e.$getNextPage=I;const F=Symbol();e.$getSubformParent=F;const O=Symbol();e.$getParent=O;const E=Symbol();e.$getTemplateRoot=E;const T=Symbol();e.$globalData=T;const D=Symbol();e.$hasSettableValue=D;const P=Symbol();e.$ids=P;const R=Symbol();e.$indexOf=R;const N=Symbol();e.$insertAt=N;const L=Symbol();e.$isCDATAXml=L;const B=Symbol();e.$isBindable=B;const $=Symbol();e.$isDataValue=$;const U=Symbol();e.$isDescendent=U;const j=Symbol();e.$isNsAgnostic=j;const H=Symbol();e.$isSplittable=H;const G=Symbol();e.$isThereMoreWidth=G;const q=Symbol();e.$isTransparent=q;const X=Symbol();e.$isUsable=X;const W=Symbol();e.$lastAttribute=W;const z=Symbol("namespaceId");e.$namespaceId=z;const V=Symbol("nodeName");e.$nodeName=V;const K=Symbol();e.$nsAttributes=K;const J=Symbol();e.$onChild=J;const Y=Symbol();e.$onChildCheck=Y;const Q=Symbol();e.$onText=Q;const Z=Symbol();e.$pushGlyphs=Z;const tt=Symbol();e.$popPara=tt;const et=Symbol();e.$pushPara=et;const st=Symbol();e.$removeChild=st;const it=Symbol("root");e.$root=it;const nt=Symbol();e.$resolvePrototypes=nt;const rt=Symbol();e.$searchNode=rt;const ot=Symbol();e.$setId=ot;const at=Symbol();e.$setSetAttributes=at;const ct=Symbol();e.$setValue=ct;const lt=Symbol();e.$tabIndex=lt;const ht=Symbol();e.$text=ht;const ut=Symbol();e.$toPages=ut;const ft=Symbol();e.$toHTML=ft;const dt=Symbol();e.$toString=dt;const pt=Symbol();e.$toStyle=pt;const gt=Symbol("uid");e.$uid=gt},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.Binder=void 0;var i=s(78);var n=s(80);var r=s(88);var o=s(87);var a=s(81);var c=s(2);const l=a.NamespaceIds.datasets.id;function h(t){const e=new n.Text({});e[i.$content]=t;return e}class u{constructor(t){this.root=t;this.datasets=t.datasets;this.data=t.datasets?.data||new o.XmlObject(a.NamespaceIds.datasets.id,"data");this.emptyMerge=this.data[i.$getChildren]().length===0;this.root.form=this.form=t.template[i.$clone]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){this._bindElement(this.form,this.data);return this.form}getData(){return this.data}_bindValue(t,e,s){t[i.$data]=e;if(t[i.$hasSettableValue]()){if(e[i.$isDataValue]()){const s=e[i.$getDataValue]();t[i.$setValue](h(s))}else if(t instanceof n.Field&&t.ui?.choiceList?.open==="multiSelect"){const s=e[i.$getChildren]().map((t=>t[i.$content].trim())).join("\n");t[i.$setValue](h(s))}else if(this._isConsumeData()){(0,c.warn)(`XFA - Nodes haven't the same type.`)}}else if(!e[i.$isDataValue]()||this._isMatchTemplate()){this._bindElement(t,e)}else{(0,c.warn)(`XFA - Nodes haven't the same type.`)}}_findDataByNameToConsume(t,e,s,n){if(!t){return null}let r,o;for(let n=0;n<3;n++){r=s[i.$getRealChildrenByNameIt](t,false,true);while(true){o=r.next().value;if(!o){break}if(e===o[i.$isDataValue]()){return o}}if(s[i.$namespaceId]===a.NamespaceIds.datasets.id&&s[i.$nodeName]==="data"){break}s=s[i.$getParent]()}if(!n){return null}r=this.data[i.$getRealChildrenByNameIt](t,true,false);o=r.next().value;if(o){return o}r=this.data[i.$getAttributeIt](t,true);o=r.next().value;if(o?.[i.$isDataValue]()){return o}return null}_setProperties(t,e){if(!t.hasOwnProperty("setProperty")){return}for(const{ref:s,target:a,connection:l}of t.setProperty.children){if(l){continue}if(!s){continue}const h=(0,r.searchNode)(this.root,e,s,false,false);if(!h){(0,c.warn)(`XFA - Invalid reference: ${s}.`);continue}const[u]=h;if(!u[i.$isDescendent](this.data)){(0,c.warn)(`XFA - Invalid node: must be a data node.`);continue}const f=(0,r.searchNode)(this.root,t,a,false,false);if(!f){(0,c.warn)(`XFA - Invalid target: ${a}.`);continue}const[d]=f;if(!d[i.$isDescendent](t)){(0,c.warn)(`XFA - Invalid target: must be a property or subproperty.`);continue}const p=d[i.$getParent]();if(d instanceof n.SetProperty||p instanceof n.SetProperty){(0,c.warn)(`XFA - Invalid target: cannot be a setProperty or one of its properties.`);continue}if(d instanceof n.BindItems||p instanceof n.BindItems){(0,c.warn)(`XFA - Invalid target: cannot be a bindItems or one of its properties.`);continue}const g=u[i.$text]();const m=d[i.$nodeName];if(d instanceof o.XFAAttribute){const t=Object.create(null);t[m]=g;const e=Reflect.construct(Object.getPrototypeOf(p).constructor,[t]);p[m]=e[m];continue}if(!d.hasOwnProperty(i.$content)){(0,c.warn)(`XFA - Invalid node to use in setProperty`);continue}d[i.$data]=u;d[i.$content]=g;d[i.$finalize]()}}_bindItems(t,e){if(!t.hasOwnProperty("items")||!t.hasOwnProperty("bindItems")||t.bindItems.isEmpty()){return}for(const e of t.items.children){t[i.$removeChild](e)}t.items.clear();const s=new n.Items({});const o=new n.Items({});t[i.$appendChild](s);t.items.push(s);t[i.$appendChild](o);t.items.push(o);for(const{ref:n,labelRef:a,valueRef:l,connection:u}of t.bindItems.children){if(u){continue}if(!n){continue}const t=(0,r.searchNode)(this.root,e,n,false,false);if(!t){(0,c.warn)(`XFA - Invalid reference: ${n}.`);continue}for(const e of t){if(!e[i.$isDescendent](this.datasets)){(0,c.warn)(`XFA - Invalid ref (${n}): must be a datasets child.`);continue}const t=(0,r.searchNode)(this.root,e,a,true,false);if(!t){(0,c.warn)(`XFA - Invalid label: ${a}.`);continue}const[u]=t;if(!u[i.$isDescendent](this.datasets)){(0,c.warn)(`XFA - Invalid label: must be a datasets child.`);continue}const f=(0,r.searchNode)(this.root,e,l,true,false);if(!f){(0,c.warn)(`XFA - Invalid value: ${l}.`);continue}const[d]=f;if(!d[i.$isDescendent](this.datasets)){(0,c.warn)(`XFA - Invalid value: must be a datasets child.`);continue}const p=h(u[i.$text]());const g=h(d[i.$text]());s[i.$appendChild](p);s.text.push(p);o[i.$appendChild](g);o.text.push(g)}}}_bindOccurrences(t,e,s){let n;if(e.length>1){n=t[i.$clone]();n[i.$removeChild](n.occur);n.occur=null}this._bindValue(t,e[0],s);this._setProperties(t,e[0]);this._bindItems(t,e[0]);if(e.length===1){return}const r=t[i.$getParent]();const o=t[i.$nodeName];const a=r[i.$indexOf](t);for(let t=1,c=e.length;t<c;t++){const c=e[t];const l=n[i.$clone]();r[o].push(l);r[i.$insertAt](a+t,l);this._bindValue(l,c,s);this._setProperties(l,c);this._bindItems(l,c)}}_createOccurrences(t){if(!this.emptyMerge){return}const{occur:e}=t;if(!e||e.initial<=1){return}const s=t[i.$getParent]();const n=t[i.$nodeName];if(!(s[n]instanceof o.XFAObjectArray)){return}let r;if(t.name){r=s[n].children.filter((e=>e.name===t.name)).length}else{r=s[n].children.length}const a=s[i.$indexOf](t)+1;const c=e.initial-r;if(c){const e=t[i.$clone]();e[i.$removeChild](e.occur);e.occur=null;s[n].push(e);s[i.$insertAt](a,e);for(let t=1;t<c;t++){const r=e[i.$clone]();s[n].push(r);s[i.$insertAt](a+t,r)}}}_getOccurInfo(t){const{name:e,occur:s}=t;if(!s||!e){return[1,1]}const i=s.max===-1?Infinity:s.max;return[s.min,i]}_setAndBind(t,e){this._setProperties(t,e);this._bindItems(t,e);this._bindElement(t,e)}_bindElement(t,e){const s=[];this._createOccurrences(t);for(const n of t[i.$getChildren]()){if(n[i.$data]){continue}if(this._mergeMode===undefined&&n[i.$nodeName]==="subform"){this._mergeMode=n.mergeMode==="consumeData";const t=e[i.$getChildren]();if(t.length>0){this._bindOccurrences(n,[t[0]],null)}else if(this.emptyMerge){const t=e[i.$namespaceId]===l?-1:e[i.$namespaceId];const s=n[i.$data]=new o.XmlObject(t,n.name||"root");e[i.$appendChild](s);this._bindElement(n,s)}continue}if(!n[i.$isBindable]()){continue}let t=false;let a=null;let h=null;let u=null;if(n.bind){switch(n.bind.match){case"none":this._setAndBind(n,e);continue;case"global":t=true;break;case"dataRef":if(!n.bind.ref){(0,c.warn)(`XFA - ref is empty in node ${n[i.$nodeName]}.`);this._setAndBind(n,e);continue}h=n.bind.ref;break}if(n.bind.picture){a=n.bind.picture[i.$content]}}const[f,d]=this._getOccurInfo(n);if(h){u=(0,r.searchNode)(this.root,e,h,true,false);if(u===null){u=(0,r.createDataNode)(this.data,e,h);if(!u){continue}if(this._isConsumeData()){u[i.$consumed]=true}this._setAndBind(n,u);continue}else{if(this._isConsumeData()){u=u.filter((t=>!t[i.$consumed]))}if(u.length>d){u=u.slice(0,d)}else if(u.length===0){u=null}if(u&&this._isConsumeData()){u.forEach((t=>{t[i.$consumed]=true}))}}}else{if(!n.name){this._setAndBind(n,e);continue}if(this._isConsumeData()){const s=[];while(s.length<d){const r=this._findDataByNameToConsume(n.name,n[i.$hasSettableValue](),e,t);if(!r){break}r[i.$consumed]=true;s.push(r)}u=s.length>0?s:null}else{u=e[i.$getRealChildrenByNameIt](n.name,false,this.emptyMerge).next().value;if(!u){if(f===0){s.push(n);continue}const t=e[i.$namespaceId]===l?-1:e[i.$namespaceId];u=n[i.$data]=new o.XmlObject(t,n.name);if(this.emptyMerge){u[i.$consumed]=true}e[i.$appendChild](u);this._setAndBind(n,u);continue}if(this.emptyMerge){u[i.$consumed]=true}u=[u]}}if(u){this._bindOccurrences(n,u,a)}else if(f>0){this._setAndBind(n,e)}else{s.push(n)}}s.forEach((t=>t[i.$getParent]()[i.$removeChild](t)))}}e.Binder=u},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.Value=e.Text=e.TemplateNamespace=e.Template=e.SetProperty=e.Items=e.Field=e.BindItems=void 0;var i=s(78);var n=s(81);var r=s(82);var o=s(83);var a=s(87);var c=s(84);var l=s(2);var h=s(85);var u=s(3);var f=s(88);const d=n.NamespaceIds.template.id;const p="http://www.w3.org/2000/svg";const g=2;const m=3;const w=5e3;const b=/^H(\d+)$/;const y=new Set(["image/gif","image/jpeg","image/jpg","image/pjpeg","image/png","image/apng","image/x-png","image/bmp","image/x-ms-bmp","image/tiff","image/tif","application/octet-stream"]);const A=[[[66,77],"image/bmp"],[[255,216,255],"image/jpeg"],[[73,73,42,0],"image/tiff"],[[77,77,0,42],"image/tiff"],[[71,73,70,56,57,97],"image/gif"],[[137,80,78,71,13,10,26,10],"image/png"]];function v(t){if(!t||!t.border){return{w:0,h:0}}const e=t.border[i.$getExtra]();if(!e){return{w:0,h:0}}return{w:e.widths[0]+e.widths[2]+e.insets[0]+e.insets[2],h:e.widths[1]+e.widths[3]+e.insets[1]+e.insets[3]}}function x(t){return t.margin&&(t.margin.topInset||t.margin.rightInset||t.margin.bottomInset||t.margin.leftInset)}function k(t,e){if(!t.value){const e=new Le({});t[i.$appendChild](e);t.value=e}t.value[i.$setValue](e)}function*S(t){for(const e of t[i.$getChildren]()){if(e instanceof ke){yield*e[i.$getContainedChildren]();continue}yield e}}function M(t){return t.validate?.nullTest==="error"}function C(t){while(t){if(!t.traversal){t[i.$tabIndex]=t[i.$getParent]()[i.$tabIndex];return}if(t[i.$tabIndex]){return}let e=null;for(const s of t.traversal[i.$getChildren]()){if(s.operation==="next"){e=s;break}}if(!e||!e.ref){t[i.$tabIndex]=t[i.$getParent]()[i.$tabIndex];return}const s=t[i.$getTemplateRoot]();t[i.$tabIndex]=++s[i.$tabIndex];const n=s[i.$searchNode](e.ref,t);if(!n){return}t=n[0]}}function _(t,e){const s=t.assist;if(s){const t=s[i.$toHTML]();if(t){e.title=t}const n=s.role;const r=n.match(b);if(r){const t="heading";const s=r[1];e.role=t;e["aria-level"]=s}}if(t.layout==="table"){e.role="table"}else if(t.layout==="row"){e.role="row"}else{const s=t[i.$getParent]();if(s.layout==="row"){e.role=s.assist?.role==="TH"?"columnheader":"cell"}}}function I(t){if(!t.assist){return null}const e=t.assist;if(e.speak&&e.speak[i.$content]!==""){return e.speak[i.$content]}if(e.toolTip){return e.toolTip[i.$content]}return null}function F(t){return c.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:t}]})}function O(t){const e=t[i.$getTemplateRoot]();if(e[i.$extra].firstUnsplittable===null){e[i.$extra].firstUnsplittable=t;e[i.$extra].noLayoutFailure=true}}function E(t){const e=t[i.$getTemplateRoot]();if(e[i.$extra].firstUnsplittable===t){e[i.$extra].noLayoutFailure=false}}function T(t){if(t[i.$extra]){return false}t[i.$extra]=Object.create(null);if(t.targetType==="auto"){return false}const e=t[i.$getTemplateRoot]();let s=null;if(t.target){s=e[i.$searchNode](t.target,t[i.$getParent]());if(!s){return false}s=s[0]}const{currentPageArea:n,currentContentArea:r}=e[i.$extra];if(t.targetType==="pageArea"){if(!(s instanceof se)){s=null}if(t.startNew){t[i.$extra].target=s||n;return true}else if(s&&s!==n){t[i.$extra].target=s;return true}return false}if(!(s instanceof it)){s=null}const o=s&&s[i.$getParent]();let a;let c=o;if(t.startNew){if(s){const t=o.contentArea.children;const e=t.indexOf(r);const i=t.indexOf(s);if(e!==-1&&e<i){c=null}a=i-1}else{a=n.contentArea.children.indexOf(r)}}else if(s&&s!==r){const t=o.contentArea.children;a=t.indexOf(s)-1;c=o===n?null:o}else{return false}t[i.$extra].target=c;t[i.$extra].index=a;return true}function D(t,e,s){const n=t[i.$getTemplateRoot]();const r=n[i.$extra].noLayoutFailure;const o=e[i.$getSubformParent];e[i.$getSubformParent]=()=>t;n[i.$extra].noLayoutFailure=true;const a=e[i.$toHTML](s);t[i.$addHTML](a.html,a.bbox);n[i.$extra].noLayoutFailure=r;e[i.$getSubformParent]=o}class P extends a.StringObject{constructor(t){super(d,"appearanceFilter");this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||""}}class R extends a.XFAObject{constructor(t){super(d,"arc",true);this.circular=(0,c.getInteger)({data:t.circular,defaultValue:0,validate:t=>t===1});this.hand=(0,c.getStringOption)(t.hand,["even","left","right"]);this.id=t.id||"";this.startAngle=(0,c.getFloat)({data:t.startAngle,defaultValue:0,validate:t=>true});this.sweepAngle=(0,c.getFloat)({data:t.sweepAngle,defaultValue:360,validate:t=>true});this.use=t.use||"";this.usehref=t.usehref||"";this.edge=null;this.fill=null}[i.$toHTML](){const t=this.edge||new pt({});const e=t[i.$toStyle]();const s=Object.create(null);if(this.fill?.presence==="visible"){Object.assign(s,this.fill[i.$toStyle]())}else{s.fill="transparent"}s.strokeWidth=(0,o.measureToString)(t.presence==="visible"?t.thickness:0);s.stroke=e.color;let n;const r={xmlns:p,style:{width:"100%",height:"100%",overflow:"visible"}};if(this.sweepAngle===360){n={name:"ellipse",attributes:{xmlns:p,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:s}}}else{const t=this.startAngle*Math.PI/180;const e=this.sweepAngle*Math.PI/180;const i=this.sweepAngle>180?1:0;const[o,a,c,l]=[50*(1+Math.cos(t)),50*(1-Math.sin(t)),50*(1+Math.cos(t+e)),50*(1-Math.sin(t+e))];n={name:"path",attributes:{xmlns:p,d:`M ${o} ${a} A 50 50 0 ${i} 0 ${c} ${l}`,vectorEffect:"non-scaling-stroke",style:s}};Object.assign(r,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const a={name:"svg",children:[n],attributes:r};const l=this[i.$getParent]()[i.$getParent]();if(x(l)){return c.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[a]})}a.attributes.style.position="absolute";return c.HTMLResult.success(a)}}class N extends a.XFAObject{constructor(t){super(d,"area",true);this.colSpan=(0,c.getInteger)({data:t.colSpan,defaultValue:1,validate:t=>t>=1||t===-1});this.id=t.id||"";this.name=t.name||"";this.relevant=(0,c.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.x=(0,c.getMeasurement)(t.x,"0pt");this.y=(0,c.getMeasurement)(t.y,"0pt");this.desc=null;this.extras=null;this.area=new a.XFAObjectArray;this.draw=new a.XFAObjectArray;this.exObject=new a.XFAObjectArray;this.exclGroup=new a.XFAObjectArray;this.field=new a.XFAObjectArray;this.subform=new a.XFAObjectArray;this.subformSet=new a.XFAObjectArray}*[i.$getContainedChildren](){yield*S(this)}[i.$isTransparent](){return true}[i.$isBindable](){return true}[i.$addHTML](t,e){const[s,n,r,o]=e;this[i.$extra].width=Math.max(this[i.$extra].width,s+r);this[i.$extra].height=Math.max(this[i.$extra].height,n+o);this[i.$extra].children.push(t)}[i.$getAvailableSpace](){return this[i.$extra].availableSpace}[i.$toHTML](t){const e=(0,o.toStyle)(this,"position");const s={style:e,id:this[i.$uid],class:["xfaArea"]};if((0,o.isPrintOnly)(this)){s.class.push("xfaPrintOnly")}if(this.name){s.xfaName=this.name}const n=[];this[i.$extra]={children:n,width:0,height:0,availableSpace:t};const r=this[i.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:true});if(!r.success){if(r.isBreak()){return r}delete this[i.$extra];return c.HTMLResult.FAILURE}e.width=(0,o.measureToString)(this[i.$extra].width);e.height=(0,o.measureToString)(this[i.$extra].height);const a={name:"div",attributes:s,children:n};const l=[this.x,this.y,this[i.$extra].width,this[i.$extra].height];delete this[i.$extra];return c.HTMLResult.success(a,l)}}class L extends a.XFAObject{constructor(t){super(d,"assist",true);this.id=t.id||"";this.role=t.role||"";this.use=t.use||"";this.usehref=t.usehref||"";this.speak=null;this.toolTip=null}[i.$toHTML](){return this.toolTip?.[i.$content]||null}}class B extends a.XFAObject{constructor(t){super(d,"barcode",true);this.charEncoding=(0,c.getKeyword)({data:t.charEncoding?t.charEncoding.toLowerCase():"",defaultValue:"",validate:t=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(t)||t.match(/iso-8859-\d{2}/)});this.checksum=(0,c.getStringOption)(t.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]);this.dataColumnCount=(0,c.getInteger)({data:t.dataColumnCount,defaultValue:-1,validate:t=>t>=0});this.dataLength=(0,c.getInteger)({data:t.dataLength,defaultValue:-1,validate:t=>t>=0});this.dataPrep=(0,c.getStringOption)(t.dataPrep,["none","flateCompress"]);this.dataRowCount=(0,c.getInteger)({data:t.dataRowCount,defaultValue:-1,validate:t=>t>=0});this.endChar=t.endChar||"";this.errorCorrectionLevel=(0,c.getInteger)({data:t.errorCorrectionLevel,defaultValue:-1,validate:t=>t>=0&&t<=8});this.id=t.id||"";this.moduleHeight=(0,c.getMeasurement)(t.moduleHeight,"5mm");this.moduleWidth=(0,c.getMeasurement)(t.moduleWidth,"0.25mm");this.printCheckDigit=(0,c.getInteger)({data:t.printCheckDigit,defaultValue:0,validate:t=>t===1});this.rowColumnRatio=(0,c.getRatio)(t.rowColumnRatio);this.startChar=t.startChar||"";this.textLocation=(0,c.getStringOption)(t.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]);this.truncate=(0,c.getInteger)({data:t.truncate,defaultValue:0,validate:t=>t===1});this.type=(0,c.getStringOption)(t.type?t.type.toLowerCase():"",["aztec","codabar","code2of5industrial","code2of5interleaved","code2of5matrix","code2of5standard","code3of9","code3of9extended","code11","code49","code93","code128","code128a","code128b","code128c","code128sscc","datamatrix","ean8","ean8add2","ean8add5","ean13","ean13add2","ean13add5","ean13pwcd","fim","logmars","maxicode","msi","pdf417","pdf417macro","plessey","postauscust2","postauscust3","postausreplypaid","postausstandard","postukrm4scc","postusdpbc","postusimb","postusstandard","postus5zip","qrcode","rfid","rss14","rss14expanded","rss14limited","rss14stacked","rss14stackedomni","rss14truncated","telepen","ucc128","ucc128random","ucc128sscc","upca","upcaadd2","upcaadd5","upcapwcd","upce","upceadd2","upceadd5","upcean2","upcean5","upsmaxicode"]);this.upsMode=(0,c.getStringOption)(t.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]);this.use=t.use||"";this.usehref=t.usehref||"";this.wideNarrowRatio=(0,c.getRatio)(t.wideNarrowRatio);this.encrypt=null;this.extras=null}}class $ extends a.XFAObject{constructor(t){super(d,"bind",true);this.match=(0,c.getStringOption)(t.match,["once","dataRef","global","none"]);this.ref=t.ref||"";this.picture=null}}class U extends a.XFAObject{constructor(t){super(d,"bindItems");this.connection=t.connection||"";this.labelRef=t.labelRef||"";this.ref=t.ref||"";this.valueRef=t.valueRef||""}}e.BindItems=U;class j extends a.XFAObject{constructor(t){super(d,"bookend");this.id=t.id||"";this.leader=t.leader||"";this.trailer=t.trailer||"";this.use=t.use||"";this.usehref=t.usehref||""}}class H extends a.Option01{constructor(t){super(d,"boolean");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[i.$toHTML](t){return F(this[i.$content]===1?"1":"0")}}class G extends a.XFAObject{constructor(t){super(d,"border",true);this.break=(0,c.getStringOption)(t.break,["close","open"]);this.hand=(0,c.getStringOption)(t.hand,["even","left","right"]);this.id=t.id||"";this.presence=(0,c.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,c.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.corner=new a.XFAObjectArray(4);this.edge=new a.XFAObjectArray(4);this.extras=null;this.fill=null;this.margin=null}[i.$getExtra](){if(!this[i.$extra]){const t=this.edge.children.slice();if(t.length<4){const e=t.at(-1)||new pt({});for(let s=t.length;s<4;s++){t.push(e)}}const e=t.map((t=>t.thickness));const s=[0,0,0,0];if(this.margin){s[0]=this.margin.topInset;s[1]=this.margin.rightInset;s[2]=this.margin.bottomInset;s[3]=this.margin.leftInset}this[i.$extra]={widths:e,insets:s,edges:t}}return this[i.$extra]}[i.$toStyle](){const{edges:t}=this[i.$getExtra]();const e=t.map((t=>{const e=t[i.$toStyle]();e.color||="#000000";return e}));const s=Object.create(null);if(this.margin){Object.assign(s,this.margin[i.$toStyle]())}if(this.fill?.presence==="visible"){Object.assign(s,this.fill[i.$toStyle]())}if(this.corner.children.some((t=>t.radius!==0))){const t=this.corner.children.map((t=>t[i.$toStyle]()));if(t.length===2||t.length===3){const e=t.at(-1);for(let s=t.length;s<4;s++){t.push(e)}}s.borderRadius=t.map((t=>t.radius)).join(" ")}switch(this.presence){case"invisible":case"hidden":s.borderStyle="";break;case"inactive":s.borderStyle="none";break;default:s.borderStyle=e.map((t=>t.style)).join(" ");break}s.borderWidth=e.map((t=>t.width)).join(" ");s.borderColor=e.map((t=>t.color)).join(" ");return s}}class q extends a.XFAObject{constructor(t){super(d,"break",true);this.after=(0,c.getStringOption)(t.after,["auto","contentArea","pageArea","pageEven","pageOdd"]);this.afterTarget=t.afterTarget||"";this.before=(0,c.getStringOption)(t.before,["auto","contentArea","pageArea","pageEven","pageOdd"]);this.beforeTarget=t.beforeTarget||"";this.bookendLeader=t.bookendLeader||"";this.bookendTrailer=t.bookendTrailer||"";this.id=t.id||"";this.overflowLeader=t.overflowLeader||"";this.overflowTarget=t.overflowTarget||"";this.overflowTrailer=t.overflowTrailer||"";this.startNew=(0,c.getInteger)({data:t.startNew,defaultValue:0,validate:t=>t===1});this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null}}class X extends a.XFAObject{constructor(t){super(d,"breakAfter",true);this.id=t.id||"";this.leader=t.leader||"";this.startNew=(0,c.getInteger)({data:t.startNew,defaultValue:0,validate:t=>t===1});this.target=t.target||"";this.targetType=(0,c.getStringOption)(t.targetType,["auto","contentArea","pageArea"]);this.trailer=t.trailer||"";this.use=t.use||"";this.usehref=t.usehref||"";this.script=null}}class W extends a.XFAObject{constructor(t){super(d,"breakBefore",true);this.id=t.id||"";this.leader=t.leader||"";this.startNew=(0,c.getInteger)({data:t.startNew,defaultValue:0,validate:t=>t===1});this.target=t.target||"";this.targetType=(0,c.getStringOption)(t.targetType,["auto","contentArea","pageArea"]);this.trailer=t.trailer||"";this.use=t.use||"";this.usehref=t.usehref||"";this.script=null}[i.$toHTML](t){this[i.$extra]={};return c.HTMLResult.FAILURE}}class z extends a.XFAObject{constructor(t){super(d,"button",true);this.highlight=(0,c.getStringOption)(t.highlight,["inverted","none","outline","push"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null}[i.$toHTML](t){const e=this[i.$getParent]();const s=e[i.$getParent]();const n={name:"button",attributes:{id:this[i.$uid],class:["xfaButton"],style:{}},children:[]};for(const t of s.event.children){if(t.activity!=="click"||!t.script){continue}const e=(0,u.recoverJsURL)(t.script[i.$content]);if(!e){continue}const s=(0,o.fixURL)(e.url);if(!s){continue}n.children.push({name:"a",attributes:{id:"link"+this[i.$uid],href:s,newWindow:e.newWindow,class:["xfaLink"],style:{}},children:[]})}return c.HTMLResult.success(n)}}class V extends a.XFAObject{constructor(t){super(d,"calculate",true);this.id=t.id||"";this.override=(0,c.getStringOption)(t.override,["disabled","error","ignore","warning"]);this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.message=null;this.script=null}}class K extends a.XFAObject{constructor(t){super(d,"caption",true);this.id=t.id||"";this.placement=(0,c.getStringOption)(t.placement,["left","bottom","inline","right","top"]);this.presence=(0,c.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.reserve=Math.ceil((0,c.getMeasurement)(t.reserve));this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.font=null;this.margin=null;this.para=null;this.value=null}[i.$setValue](t){k(this,t)}[i.$getExtra](t){if(!this[i.$extra]){let{width:e,height:s}=t;switch(this.placement){case"left":case"right":case"inline":e=this.reserve<=0?e:this.reserve;break;case"top":case"bottom":s=this.reserve<=0?s:this.reserve;break}this[i.$extra]=(0,o.layoutNode)(this,{width:e,height:s})}return this[i.$extra]}[i.$toHTML](t){if(!this.value){return c.HTMLResult.EMPTY}this[i.$pushPara]();const e=this.value[i.$toHTML](t).html;if(!e){this[i.$popPara]();return c.HTMLResult.EMPTY}const s=this.reserve;if(this.reserve<=0){const{w:e,h:s}=this[i.$getExtra](t);switch(this.placement){case"left":case"right":case"inline":this.reserve=e;break;case"top":case"bottom":this.reserve=s;break}}const n=[];if(typeof e==="string"){n.push({name:"#text",value:e})}else{n.push(e)}const r=(0,o.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":if(this.reserve>0){r.width=(0,o.measureToString)(this.reserve)}break;case"top":case"bottom":if(this.reserve>0){r.height=(0,o.measureToString)(this.reserve)}break}(0,o.setPara)(this,null,e);this[i.$popPara]();this.reserve=s;return c.HTMLResult.success({name:"div",attributes:{style:r,class:["xfaCaption"]},children:n})}}class J extends a.StringObject{constructor(t){super(d,"certificate");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class Y extends a.XFAObject{constructor(t){super(d,"certificates",true);this.credentialServerPolicy=(0,c.getStringOption)(t.credentialServerPolicy,["optional","required"]);this.id=t.id||"";this.url=t.url||"";this.urlPolicy=t.urlPolicy||"";this.use=t.use||"";this.usehref=t.usehref||"";this.encryption=null;this.issuers=null;this.keyUsage=null;this.oids=null;this.signing=null;this.subjectDNs=null}}class Q extends a.XFAObject{constructor(t){super(d,"checkButton",true);this.id=t.id||"";this.mark=(0,c.getStringOption)(t.mark,["default","check","circle","cross","diamond","square","star"]);this.shape=(0,c.getStringOption)(t.shape,["square","round"]);this.size=(0,c.getMeasurement)(t.size,"10pt");this.use=t.use||"";this.usehref=t.usehref||"";this.border=null;this.extras=null;this.margin=null}[i.$toHTML](t){const e=(0,o.toStyle)("margin");const s=(0,o.measureToString)(this.size);e.width=e.height=s;let n;let r;let a;const l=this[i.$getParent]()[i.$getParent]();const h=l.items.children.length&&l.items.children[0][i.$toHTML]().html||[];const u={on:(h[0]!==undefined?h[0]:"on").toString(),off:(h[1]!==undefined?h[1]:"off").toString()};const f=l.value?.[i.$text]()||"off";const d=f===u.on||undefined;const p=l[i.$getSubformParent]();const g=l[i.$uid];let m;if(p instanceof Mt){a=p[i.$uid];n="radio";r="xfaRadio";m=p[i.$data]?.[i.$uid]||p[i.$uid]}else{n="checkbox";r="xfaCheckbox";m=l[i.$data]?.[i.$uid]||l[i.$uid]}const w={name:"input",attributes:{class:[r],style:e,fieldId:g,dataId:m,type:n,checked:d,xfaOn:u.on,xfaOff:u.off,"aria-label":I(l),"aria-required":false}};if(a){w.attributes.name=a}if(M(l)){w.attributes["aria-required"]=true;w.attributes.required=true}return c.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[w]})}}class Z extends a.XFAObject{constructor(t){super(d,"choiceList",true);this.commitOn=(0,c.getStringOption)(t.commitOn,["select","exit"]);this.id=t.id||"";this.open=(0,c.getStringOption)(t.open,["userControl","always","multiSelect","onEntry"]);this.textEntry=(0,c.getInteger)({data:t.textEntry,defaultValue:0,validate:t=>t===1});this.use=t.use||"";this.usehref=t.usehref||"";this.border=null;this.extras=null;this.margin=null}[i.$toHTML](t){const e=(0,o.toStyle)(this,"border","margin");const s=this[i.$getParent]();const n=s[i.$getParent]();const r=n.font?.size||10;const a={fontSize:`calc(${r}px * var(--scale-factor))`};const l=[];if(n.items.children.length>0){const t=n.items;let e=0;let s=0;if(t.children.length===2){e=t.children[0].save;s=1-e}const r=t.children[e][i.$toHTML]().html;const o=t.children[s][i.$toHTML]().html;let c=false;const h=n.value?.[i.$text]()||"";for(let t=0,e=r.length;t<e;t++){const e={name:"option",attributes:{value:o[t]||r[t],style:a},value:r[t]};if(o[t]===h){e.attributes.selected=c=true}l.push(e)}if(!c){l.splice(0,0,{name:"option",attributes:{hidden:true,selected:true},value:" "})}}const h={class:["xfaSelect"],fieldId:n[i.$uid],dataId:n[i.$data]?.[i.$uid]||n[i.$uid],style:e,"aria-label":I(n),"aria-required":false};if(M(n)){h["aria-required"]=true;h.required=true}if(this.open==="multiSelect"){h.multiple=true}return c.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:l,attributes:h}]})}}class tt extends a.XFAObject{constructor(t){super(d,"color",true);this.cSpace=(0,c.getStringOption)(t.cSpace,["SRGB"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.value=t.value?(0,c.getColor)(t.value):"";this.extras=null}[i.$hasSettableValue](){return false}[i.$toStyle](){return this.value?l.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}class et extends a.XFAObject{constructor(t){super(d,"comb");this.id=t.id||"";this.numberOfCells=(0,c.getInteger)({data:t.numberOfCells,defaultValue:0,validate:t=>t>=0});this.use=t.use||"";this.usehref=t.usehref||""}}class st extends a.XFAObject{constructor(t){super(d,"connect",true);this.connection=t.connection||"";this.id=t.id||"";this.ref=t.ref||"";this.usage=(0,c.getStringOption)(t.usage,["exportAndImport","exportOnly","importOnly"]);this.use=t.use||"";this.usehref=t.usehref||"";this.picture=null}}class it extends a.XFAObject{constructor(t){super(d,"contentArea",true);this.h=(0,c.getMeasurement)(t.h);this.id=t.id||"";this.name=t.name||"";this.relevant=(0,c.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.w=(0,c.getMeasurement)(t.w);this.x=(0,c.getMeasurement)(t.x,"0pt");this.y=(0,c.getMeasurement)(t.y,"0pt");this.desc=null;this.extras=null}[i.$toHTML](t){const e=(0,o.measureToString)(this.x);const s=(0,o.measureToString)(this.y);const n={left:e,top:s,width:(0,o.measureToString)(this.w),height:(0,o.measureToString)(this.h)};const r=["xfaContentarea"];if((0,o.isPrintOnly)(this)){r.push("xfaPrintOnly")}return c.HTMLResult.success({name:"div",children:[],attributes:{style:n,class:r,id:this[i.$uid]}})}}class nt extends a.XFAObject{constructor(t){super(d,"corner",true);this.id=t.id||"";this.inverted=(0,c.getInteger)({data:t.inverted,defaultValue:0,validate:t=>t===1});this.join=(0,c.getStringOption)(t.join,["square","round"]);this.presence=(0,c.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.radius=(0,c.getMeasurement)(t.radius);this.stroke=(0,c.getStringOption)(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);this.thickness=(0,c.getMeasurement)(t.thickness,"0.5pt");this.use=t.use||"";this.usehref=t.usehref||"";this.color=null;this.extras=null}[i.$toStyle](){const t=(0,o.toStyle)(this,"visibility");t.radius=(0,o.measureToString)(this.join==="square"?0:this.radius);return t}}class rt extends a.ContentObject{constructor(t){super(d,"date");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[i.$finalize](){const t=this[i.$content].trim();this[i.$content]=t?new Date(t):null}[i.$toHTML](t){return F(this[i.$content]?this[i.$content].toString():"")}}class ot extends a.ContentObject{constructor(t){super(d,"dateTime");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[i.$finalize](){const t=this[i.$content].trim();this[i.$content]=t?new Date(t):null}[i.$toHTML](t){return F(this[i.$content]?this[i.$content].toString():"")}}class at extends a.XFAObject{constructor(t){super(d,"dateTimeEdit",true);this.hScrollPolicy=(0,c.getStringOption)(t.hScrollPolicy,["auto","off","on"]);this.id=t.id||"";this.picker=(0,c.getStringOption)(t.picker,["host","none"]);this.use=t.use||"";this.usehref=t.usehref||"";this.border=null;this.comb=null;this.extras=null;this.margin=null}[i.$toHTML](t){const e=(0,o.toStyle)(this,"border","font","margin");const s=this[i.$getParent]()[i.$getParent]();const n={name:"input",attributes:{type:"text",fieldId:s[i.$uid],dataId:s[i.$data]?.[i.$uid]||s[i.$uid],class:["xfaTextfield"],style:e,"aria-label":I(s),"aria-required":false}};if(M(s)){n.attributes["aria-required"]=true;n.attributes.required=true}return c.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}class ct extends a.ContentObject{constructor(t){super(d,"decimal");this.fracDigits=(0,c.getInteger)({data:t.fracDigits,defaultValue:2,validate:t=>true});this.id=t.id||"";this.leadDigits=(0,c.getInteger)({data:t.leadDigits,defaultValue:-1,validate:t=>true});this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[i.$finalize](){const t=parseFloat(this[i.$content].trim());this[i.$content]=isNaN(t)?null:t}[i.$toHTML](t){return F(this[i.$content]!==null?this[i.$content].toString():"")}}class lt extends a.XFAObject{constructor(t){super(d,"defaultUi",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null}}class ht extends a.XFAObject{constructor(t){super(d,"desc",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.boolean=new a.XFAObjectArray;this.date=new a.XFAObjectArray;this.dateTime=new a.XFAObjectArray;this.decimal=new a.XFAObjectArray;this.exData=new a.XFAObjectArray;this.float=new a.XFAObjectArray;this.image=new a.XFAObjectArray;this.integer=new a.XFAObjectArray;this.text=new a.XFAObjectArray;this.time=new a.XFAObjectArray}}class ut extends a.OptionObject{constructor(t){super(d,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||""}}class ft extends a.XFAObject{constructor(t){super(d,"digestMethods",true);this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.digestMethod=new a.XFAObjectArray}}class dt extends a.XFAObject{constructor(t){super(d,"draw",true);this.anchorType=(0,c.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=(0,c.getInteger)({data:t.colSpan,defaultValue:1,validate:t=>t>=1||t===-1});this.h=t.h?(0,c.getMeasurement)(t.h):"";this.hAlign=(0,c.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=t.id||"";this.locale=t.locale||"";this.maxH=(0,c.getMeasurement)(t.maxH,"0pt");this.maxW=(0,c.getMeasurement)(t.maxW,"0pt");this.minH=(0,c.getMeasurement)(t.minH,"0pt");this.minW=(0,c.getMeasurement)(t.minW,"0pt");this.name=t.name||"";this.presence=(0,c.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,c.getRelevant)(t.relevant);this.rotate=(0,c.getInteger)({data:t.rotate,defaultValue:0,validate:t=>t%90===0});this.use=t.use||"";this.usehref=t.usehref||"";this.w=t.w?(0,c.getMeasurement)(t.w):"";this.x=(0,c.getMeasurement)(t.x,"0pt");this.y=(0,c.getMeasurement)(t.y,"0pt");this.assist=null;this.border=null;this.caption=null;this.desc=null;this.extras=null;this.font=null;this.keep=null;this.margin=null;this.para=null;this.traversal=null;this.ui=null;this.value=null;this.setProperty=new a.XFAObjectArray}[i.$setValue](t){k(this,t)}[i.$toHTML](t){C(this);if(this.presence==="hidden"||this.presence==="inactive"){return c.HTMLResult.EMPTY}(0,o.fixDimensions)(this);this[i.$pushPara]();const e=this.w;const s=this.h;const{w:n,h:a,isBroken:l}=(0,o.layoutNode)(this,t);if(n&&this.w===""){if(l&&this[i.$getSubformParent]()[i.$isThereMoreWidth]()){this[i.$popPara]();return c.HTMLResult.FAILURE}this.w=n}if(a&&this.h===""){this.h=a}O(this);if(!(0,r.checkDimensions)(this,t)){this.w=e;this.h=s;this[i.$popPara]();return c.HTMLResult.FAILURE}E(this);const h=(0,o.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,o.setMinMaxDimensions)(this,h);if(h.margin){h.padding=h.margin;delete h.margin}const u=["xfaDraw"];if(this.font){u.push("xfaFont")}if((0,o.isPrintOnly)(this)){u.push("xfaPrintOnly")}const f={style:h,id:this[i.$uid],class:u};if(this.name){f.xfaName=this.name}const d={name:"div",attributes:f,children:[]};_(this,f);const p=(0,o.computeBbox)(this,d,t);const g=this.value?this.value[i.$toHTML](t).html:null;if(g===null){this.w=e;this.h=s;this[i.$popPara]();return c.HTMLResult.success((0,o.createWrapper)(this,d),p)}d.children.push(g);(0,o.setPara)(this,h,g);this.w=e;this.h=s;this[i.$popPara]();return c.HTMLResult.success((0,o.createWrapper)(this,d),p)}}class pt extends a.XFAObject{constructor(t){super(d,"edge",true);this.cap=(0,c.getStringOption)(t.cap,["square","butt","round"]);this.id=t.id||"";this.presence=(0,c.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.stroke=(0,c.getStringOption)(t.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);this.thickness=(0,c.getMeasurement)(t.thickness,"0.5pt");this.use=t.use||"";this.usehref=t.usehref||"";this.color=null;this.extras=null}[i.$toStyle](){const t=(0,o.toStyle)(this,"visibility");Object.assign(t,{linecap:this.cap,width:(0,o.measureToString)(this.thickness),color:this.color?this.color[i.$toStyle]():"#000000",style:""});if(this.presence!=="visible"){t.style="none"}else{switch(this.stroke){case"solid":t.style="solid";break;case"dashDot":t.style="dashed";break;case"dashDotDot":t.style="dashed";break;case"dashed":t.style="dashed";break;case"dotted":t.style="dotted";break;case"embossed":t.style="ridge";break;case"etched":t.style="groove";break;case"lowered":t.style="inset";break;case"raised":t.style="outset";break}}return t}}class gt extends a.OptionObject{constructor(t){super(d,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||""}}class mt extends a.XFAObject{constructor(t){super(d,"encodings",true);this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.encoding=new a.XFAObjectArray}}class wt extends a.XFAObject{constructor(t){super(d,"encrypt",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.certificate=null}}class bt extends a.XFAObject{constructor(t){super(d,"encryptData",true);this.id=t.id||"";this.operation=(0,c.getStringOption)(t.operation,["encrypt","decrypt"]);this.target=t.target||"";this.use=t.use||"";this.usehref=t.usehref||"";this.filter=null;this.manifest=null}}class yt extends a.XFAObject{constructor(t){super(d,"encryption",true);this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.certificate=new a.XFAObjectArray}}class At extends a.OptionObject{constructor(t){super(d,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||""}}class vt extends a.XFAObject{constructor(t){super(d,"encryptionMethods",true);this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.encryptionMethod=new a.XFAObjectArray}}class xt extends a.XFAObject{constructor(t){super(d,"event",true);this.activity=(0,c.getStringOption)(t.activity,["click","change","docClose","docReady","enter","exit","full","indexChange","initialize","mouseDown","mouseEnter","mouseExit","mouseUp","postExecute","postOpen","postPrint","postSave","postSign","postSubmit","preExecute","preOpen","prePrint","preSave","preSign","preSubmit","ready","validationState"]);this.id=t.id||"";this.listen=(0,c.getStringOption)(t.listen,["refOnly","refAndDescendents"]);this.name=t.name||"";this.ref=t.ref||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.encryptData=null;this.execute=null;this.script=null;this.signData=null;this.submit=null}}class kt extends a.ContentObject{constructor(t){super(d,"exData");this.contentType=t.contentType||"";this.href=t.href||"";this.id=t.id||"";this.maxLength=(0,c.getInteger)({data:t.maxLength,defaultValue:-1,validate:t=>t>=-1});this.name=t.name||"";this.rid=t.rid||"";this.transferEncoding=(0,c.getStringOption)(t.transferEncoding,["none","base64","package"]);this.use=t.use||"";this.usehref=t.usehref||""}[i.$isCDATAXml](){return this.contentType==="text/html"}[i.$onChild](t){if(this.contentType==="text/html"&&t[i.$namespaceId]===n.NamespaceIds.xhtml.id){this[i.$content]=t;return true}if(this.contentType==="text/xml"){this[i.$content]=t;return true}return false}[i.$toHTML](t){if(this.contentType!=="text/html"||!this[i.$content]){return c.HTMLResult.EMPTY}return this[i.$content][i.$toHTML](t)}}class St extends a.XFAObject{constructor(t){super(d,"exObject",true);this.archive=t.archive||"";this.classId=t.classId||"";this.codeBase=t.codeBase||"";this.codeType=t.codeType||"";this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.boolean=new a.XFAObjectArray;this.date=new a.XFAObjectArray;this.dateTime=new a.XFAObjectArray;this.decimal=new a.XFAObjectArray;this.exData=new a.XFAObjectArray;this.exObject=new a.XFAObjectArray;this.float=new a.XFAObjectArray;this.image=new a.XFAObjectArray;this.integer=new a.XFAObjectArray;this.text=new a.XFAObjectArray;this.time=new a.XFAObjectArray}}class Mt extends a.XFAObject{constructor(t){super(d,"exclGroup",true);this.access=(0,c.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);this.accessKey=t.accessKey||"";this.anchorType=(0,c.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=(0,c.getInteger)({data:t.colSpan,defaultValue:1,validate:t=>t>=1||t===-1});this.h=t.h?(0,c.getMeasurement)(t.h):"";this.hAlign=(0,c.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=t.id||"";this.layout=(0,c.getStringOption)(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);this.maxH=(0,c.getMeasurement)(t.maxH,"0pt");this.maxW=(0,c.getMeasurement)(t.maxW,"0pt");this.minH=(0,c.getMeasurement)(t.minH,"0pt");this.minW=(0,c.getMeasurement)(t.minW,"0pt");this.name=t.name||"";this.presence=(0,c.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,c.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.w=t.w?(0,c.getMeasurement)(t.w):"";this.x=(0,c.getMeasurement)(t.x,"0pt");this.y=(0,c.getMeasurement)(t.y,"0pt");this.assist=null;this.bind=null;this.border=null;this.calculate=null;this.caption=null;this.desc=null;this.extras=null;this.margin=null;this.para=null;this.traversal=null;this.validate=null;this.connect=new a.XFAObjectArray;this.event=new a.XFAObjectArray;this.field=new a.XFAObjectArray;this.setProperty=new a.XFAObjectArray}[i.$isBindable](){return true}[i.$hasSettableValue](){return true}[i.$setValue](t){for(const e of this.field.children){if(!e.value){const t=new Le({});e[i.$appendChild](t);e.value=t}e.value[i.$setValue](t)}}[i.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&this[i.$extra].attempt===0&&this[i.$extra].numberInLine>0||this[i.$getParent]()[i.$isThereMoreWidth]()}[i.$isSplittable](){const t=this[i.$getSubformParent]();if(!t[i.$isSplittable]()){return false}if(this[i.$extra]._isSplittable!==undefined){return this[i.$extra]._isSplittable}if(this.layout==="position"||this.layout.includes("row")){this[i.$extra]._isSplittable=false;return false}if(t.layout?.endsWith("-tb")&&t[i.$extra].numberInLine!==0){return false}this[i.$extra]._isSplittable=true;return true}[i.$flushHTML](){return(0,r.flushHTML)(this)}[i.$addHTML](t,e){(0,r.addHTML)(this,t,e)}[i.$getAvailableSpace](){return(0,r.getAvailableSpace)(this)}[i.$toHTML](t){C(this);if(this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0){return c.HTMLResult.EMPTY}(0,o.fixDimensions)(this);const e=[];const s={id:this[i.$uid],class:[]};(0,o.setAccess)(this,s.class);if(!this[i.$extra]){this[i.$extra]=Object.create(null)}Object.assign(this[i.$extra],{children:e,attributes:s,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||Infinity,t.width),height:Math.min(this.h||Infinity,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});const n=this[i.$isSplittable]();if(!n){O(this)}if(!(0,r.checkDimensions)(this,t)){return c.HTMLResult.FAILURE}const a=new Set(["field"]);if(this.layout.includes("row")){const t=this[i.$getSubformParent]().columnWidths;if(Array.isArray(t)&&t.length>0){this[i.$extra].columnWidths=t;this[i.$extra].currentColumn=0}}const l=(0,o.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign");const h=["xfaExclgroup"];const u=(0,o.layoutClass)(this);if(u){h.push(u)}if((0,o.isPrintOnly)(this)){h.push("xfaPrintOnly")}s.style=l;s.class=h;if(this.name){s.xfaName=this.name}this[i.$pushPara]();const f=this.layout==="lr-tb"||this.layout==="rl-tb";const d=f?g:1;for(;this[i.$extra].attempt<d;this[i.$extra].attempt++){if(f&&this[i.$extra].attempt===g-1){this[i.$extra].numberInLine=0}const t=this[i.$childrenToHTML]({filter:a,include:true});if(t.success){break}if(t.isBreak()){this[i.$popPara]();return t}if(f&&this[i.$extra].attempt===0&&this[i.$extra].numberInLine===0&&!this[i.$getTemplateRoot]()[i.$extra].noLayoutFailure){this[i.$extra].attempt=d;break}}this[i.$popPara]();if(!n){E(this)}if(this[i.$extra].attempt===d){if(!n){delete this[i.$extra]}return c.HTMLResult.FAILURE}let p=0;let m=0;if(this.margin){p=this.margin.leftInset+this.margin.rightInset;m=this.margin.topInset+this.margin.bottomInset}const w=Math.max(this[i.$extra].width+p,this.w||0);const b=Math.max(this[i.$extra].height+m,this.h||0);const y=[this.x,this.y,w,b];if(this.w===""){l.width=(0,o.measureToString)(w)}if(this.h===""){l.height=(0,o.measureToString)(b)}const A={name:"div",attributes:s,children:e};_(this,s);delete this[i.$extra];return c.HTMLResult.success((0,o.createWrapper)(this,A),y)}}class Ct extends a.XFAObject{constructor(t){super(d,"execute");this.connection=t.connection||"";this.executeType=(0,c.getStringOption)(t.executeType,["import","remerge"]);this.id=t.id||"";this.runAt=(0,c.getStringOption)(t.runAt,["client","both","server"]);this.use=t.use||"";this.usehref=t.usehref||""}}class _t extends a.XFAObject{constructor(t){super(d,"extras",true);this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||"";this.boolean=new a.XFAObjectArray;this.date=new a.XFAObjectArray;this.dateTime=new a.XFAObjectArray;this.decimal=new a.XFAObjectArray;this.exData=new a.XFAObjectArray;this.extras=new a.XFAObjectArray;this.float=new a.XFAObjectArray;this.image=new a.XFAObjectArray;this.integer=new a.XFAObjectArray;this.text=new a.XFAObjectArray;this.time=new a.XFAObjectArray}}class It extends a.XFAObject{constructor(t){super(d,"field",true);this.access=(0,c.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);this.accessKey=t.accessKey||"";this.anchorType=(0,c.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=(0,c.getInteger)({data:t.colSpan,defaultValue:1,validate:t=>t>=1||t===-1});this.h=t.h?(0,c.getMeasurement)(t.h):"";this.hAlign=(0,c.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=t.id||"";this.locale=t.locale||"";this.maxH=(0,c.getMeasurement)(t.maxH,"0pt");this.maxW=(0,c.getMeasurement)(t.maxW,"0pt");this.minH=(0,c.getMeasurement)(t.minH,"0pt");this.minW=(0,c.getMeasurement)(t.minW,"0pt");this.name=t.name||"";this.presence=(0,c.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,c.getRelevant)(t.relevant);this.rotate=(0,c.getInteger)({data:t.rotate,defaultValue:0,validate:t=>t%90===0});this.use=t.use||"";this.usehref=t.usehref||"";this.w=t.w?(0,c.getMeasurement)(t.w):"";this.x=(0,c.getMeasurement)(t.x,"0pt");this.y=(0,c.getMeasurement)(t.y,"0pt");this.assist=null;this.bind=null;this.border=null;this.calculate=null;this.caption=null;this.desc=null;this.extras=null;this.font=null;this.format=null;this.items=new a.XFAObjectArray(2);this.keep=null;this.margin=null;this.para=null;this.traversal=null;this.ui=null;this.validate=null;this.value=null;this.bindItems=new a.XFAObjectArray;this.connect=new a.XFAObjectArray;this.event=new a.XFAObjectArray;this.setProperty=new a.XFAObjectArray}[i.$isBindable](){return true}[i.$setValue](t){k(this,t)}[i.$toHTML](t){C(this);if(!this.ui){this.ui=new Re({});this.ui[i.$globalData]=this[i.$globalData];this[i.$appendChild](this.ui);let t;switch(this.items.children.length){case 0:t=new Fe({});this.ui.textEdit=t;break;case 1:t=new Q({});this.ui.checkButton=t;break;case 2:t=new Z({});this.ui.choiceList=t;break}this.ui[i.$appendChild](t)}if(!this.ui||this.presence==="hidden"||this.presence==="inactive"||this.h===0||this.w===0){return c.HTMLResult.EMPTY}if(this.caption){delete this.caption[i.$extra]}this[i.$pushPara]();const e=this.caption?this.caption[i.$toHTML](t).html:null;const s=this.w;const n=this.h;let a=0;let l=0;if(this.margin){a=this.margin.leftInset+this.margin.rightInset;l=this.margin.topInset+this.margin.bottomInset}let u=null;if(this.w===""||this.h===""){let e=null;let s=null;let n=0;let r=0;if(this.ui.checkButton){n=r=this.ui.checkButton.size}else{const{w:e,h:s}=(0,o.layoutNode)(this,t);if(e!==null){n=e;r=s}else{r=(0,h.getMetrics)(this.font,true).lineNoGap}}u=v(this.ui[i.$getExtra]());n+=u.w;r+=u.h;if(this.caption){const{w:o,h:a,isBroken:l}=this.caption[i.$getExtra](t);if(l&&this[i.$getSubformParent]()[i.$isThereMoreWidth]()){this[i.$popPara]();return c.HTMLResult.FAILURE}e=o;s=a;switch(this.caption.placement){case"left":case"right":case"inline":e+=n;break;case"top":case"bottom":s+=r;break}}else{e=n;s=r}if(e&&this.w===""){e+=a;this.w=Math.min(this.maxW<=0?Infinity:this.maxW,this.minW+1<e?e:this.minW)}if(s&&this.h===""){s+=l;this.h=Math.min(this.maxH<=0?Infinity:this.maxH,this.minH+1<s?s:this.minH)}}this[i.$popPara]();(0,o.fixDimensions)(this);O(this);if(!(0,r.checkDimensions)(this,t)){this.w=s;this.h=n;this[i.$popPara]();return c.HTMLResult.FAILURE}E(this);const f=(0,o.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");(0,o.setMinMaxDimensions)(this,f);const d=["xfaField"];if(this.font){d.push("xfaFont")}if((0,o.isPrintOnly)(this)){d.push("xfaPrintOnly")}const p={style:f,id:this[i.$uid],class:d};if(f.margin){f.padding=f.margin;delete f.margin}(0,o.setAccess)(this,d);if(this.name){p.xfaName=this.name}const g=[];const m={name:"div",attributes:p,children:g};_(this,p);const w=this.border?this.border[i.$toStyle]():null;const b=(0,o.computeBbox)(this,m,t);const y=this.ui[i.$toHTML]().html;if(!y){Object.assign(f,w);return c.HTMLResult.success((0,o.createWrapper)(this,m),b)}if(this[i.$tabIndex]){if(y.children?.[0]){y.children[0].attributes.tabindex=this[i.$tabIndex]}else{y.attributes.tabindex=this[i.$tabIndex]}}if(!y.attributes.style){y.attributes.style=Object.create(null)}let A=null;if(this.ui.button){if(y.children.length===1){[A]=y.children.splice(0,1)}Object.assign(y.attributes.style,w)}else{Object.assign(f,w)}g.push(y);if(this.value){if(this.ui.imageEdit){y.children.push(this.value[i.$toHTML]().html)}else if(!this.ui.button){let t="";if(this.value.exData){t=this.value.exData[i.$text]()}else if(this.value.text){t=this.value.text[i.$getExtra]()}else{const e=this.value[i.$toHTML]().html;if(e!==null){t=e.children[0].value}}if(this.ui.textEdit&&this.value.text?.maxChars){y.children[0].attributes.maxLength=this.value.text.maxChars}if(t){if(this.ui.numericEdit){t=parseFloat(t);t=isNaN(t)?"":t.toString()}if(y.children[0].name==="textarea"){y.children[0].attributes.textContent=t}else{y.children[0].attributes.value=t}}}}if(!this.ui.imageEdit&&y.children?.[0]&&this.h){u=u||v(this.ui[i.$getExtra]());let e=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){e=this.caption.reserve;if(e<=0){e=this.caption[i.$getExtra](t).h}const s=this.h-e-l-u.h;y.children[0].attributes.style.height=(0,o.measureToString)(s)}else{y.children[0].attributes.style.height="100%"}}if(A){y.children.push(A)}if(!e){if(y.attributes.class){y.attributes.class.push("xfaLeft")}this.w=s;this.h=n;return c.HTMLResult.success((0,o.createWrapper)(this,m),b)}if(this.ui.button){if(f.padding){delete f.padding}if(e.name==="div"){e.name="span"}y.children.push(e);return c.HTMLResult.success(m,b)}else if(this.ui.checkButton){e.attributes.class[0]="xfaCaptionForCheckButton"}if(!y.attributes.class){y.attributes.class=[]}y.children.splice(0,0,e);switch(this.caption.placement){case"left":y.attributes.class.push("xfaLeft");break;case"right":y.attributes.class.push("xfaRight");break;case"top":y.attributes.class.push("xfaTop");break;case"bottom":y.attributes.class.push("xfaBottom");break;case"inline":y.attributes.class.push("xfaLeft");break}this.w=s;this.h=n;return c.HTMLResult.success((0,o.createWrapper)(this,m),b)}}e.Field=It;class Ft extends a.XFAObject{constructor(t){super(d,"fill",true);this.id=t.id||"";this.presence=(0,c.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.use=t.use||"";this.usehref=t.usehref||"";this.color=null;this.extras=null;this.linear=null;this.pattern=null;this.radial=null;this.solid=null;this.stipple=null}[i.$toStyle](){const t=this[i.$getParent]();const e=t[i.$getParent]();const s=e[i.$getParent]();const n=Object.create(null);let r="color";let o=r;if(t instanceof G){r="background-color";o="background";if(s instanceof Re){n.backgroundColor="white"}}if(t instanceof fe||t instanceof R){r=o="fill";n.fill="white"}for(const t of Object.getOwnPropertyNames(this)){if(t==="extras"||t==="color"){continue}const e=this[t];if(!(e instanceof a.XFAObject)){continue}const s=e[i.$toStyle](this.color);if(s){n[s.startsWith("#")?r:o]=s}return n}if(this.color?.value){const t=this.color[i.$toStyle]();n[t.startsWith("#")?r:o]=t}return n}}class Ot extends a.XFAObject{constructor(t){super(d,"filter",true);this.addRevocationInfo=(0,c.getStringOption)(t.addRevocationInfo,["","required","optional","none"]);this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||"";this.version=(0,c.getInteger)({data:this.version,defaultValue:5,validate:t=>t>=1&&t<=5});this.appearanceFilter=null;this.certificates=null;this.digestMethods=null;this.encodings=null;this.encryptionMethods=null;this.handler=null;this.lockDocument=null;this.mdp=null;this.reasons=null;this.timeStamp=null}}class Et extends a.ContentObject{constructor(t){super(d,"float");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[i.$finalize](){const t=parseFloat(this[i.$content].trim());this[i.$content]=isNaN(t)?null:t}[i.$toHTML](t){return F(this[i.$content]!==null?this[i.$content].toString():"")}}class Tt extends a.XFAObject{constructor(t){super(d,"font",true);this.baselineShift=(0,c.getMeasurement)(t.baselineShift);this.fontHorizontalScale=(0,c.getFloat)({data:t.fontHorizontalScale,defaultValue:100,validate:t=>t>=0});this.fontVerticalScale=(0,c.getFloat)({data:t.fontVerticalScale,defaultValue:100,validate:t=>t>=0});this.id=t.id||"";this.kerningMode=(0,c.getStringOption)(t.kerningMode,["none","pair"]);this.letterSpacing=(0,c.getMeasurement)(t.letterSpacing,"0");this.lineThrough=(0,c.getInteger)({data:t.lineThrough,defaultValue:0,validate:t=>t===1||t===2});this.lineThroughPeriod=(0,c.getStringOption)(t.lineThroughPeriod,["all","word"]);this.overline=(0,c.getInteger)({data:t.overline,defaultValue:0,validate:t=>t===1||t===2});this.overlinePeriod=(0,c.getStringOption)(t.overlinePeriod,["all","word"]);this.posture=(0,c.getStringOption)(t.posture,["normal","italic"]);this.size=(0,c.getMeasurement)(t.size,"10pt");this.typeface=t.typeface||"Courier";this.underline=(0,c.getInteger)({data:t.underline,defaultValue:0,validate:t=>t===1||t===2});this.underlinePeriod=(0,c.getStringOption)(t.underlinePeriod,["all","word"]);this.use=t.use||"";this.usehref=t.usehref||"";this.weight=(0,c.getStringOption)(t.weight,["normal","bold"]);this.extras=null;this.fill=null}[i.$clean](t){super[i.$clean](t);this[i.$globalData].usedTypefaces.add(this.typeface)}[i.$toStyle](){const t=(0,o.toStyle)(this,"fill");const e=t.color;if(e){if(e==="#000000"){delete t.color}else if(!e.startsWith("#")){t.background=e;t.backgroundClip="text";t.color="transparent"}}if(this.baselineShift){t.verticalAlign=(0,o.measureToString)(this.baselineShift)}t.fontKerning=this.kerningMode==="none"?"none":"normal";t.letterSpacing=(0,o.measureToString)(this.letterSpacing);if(this.lineThrough!==0){t.textDecoration="line-through";if(this.lineThrough===2){t.textDecorationStyle="double"}}if(this.overline!==0){t.textDecoration="overline";if(this.overline===2){t.textDecorationStyle="double"}}t.fontStyle=this.posture;t.fontSize=(0,o.measureToString)(.99*this.size);(0,o.setFontFamily)(this,this,this[i.$globalData].fontFinder,t);if(this.underline!==0){t.textDecoration="underline";if(this.underline===2){t.textDecorationStyle="double"}}t.fontWeight=this.weight;return t}}class Dt extends a.XFAObject{constructor(t){super(d,"format",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.picture=null}}class Pt extends a.StringObject{constructor(t){super(d,"handler");this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||""}}class Rt extends a.XFAObject{constructor(t){super(d,"hyphenation");this.excludeAllCaps=(0,c.getInteger)({data:t.excludeAllCaps,defaultValue:0,validate:t=>t===1});this.excludeInitialCap=(0,c.getInteger)({data:t.excludeInitialCap,defaultValue:0,validate:t=>t===1});this.hyphenate=(0,c.getInteger)({data:t.hyphenate,defaultValue:0,validate:t=>t===1});this.id=t.id||"";this.pushCharacterCount=(0,c.getInteger)({data:t.pushCharacterCount,defaultValue:3,validate:t=>t>=0});this.remainCharacterCount=(0,c.getInteger)({data:t.remainCharacterCount,defaultValue:3,validate:t=>t>=0});this.use=t.use||"";this.usehref=t.usehref||"";this.wordCharacterCount=(0,c.getInteger)({data:t.wordCharacterCount,defaultValue:7,validate:t=>t>=0})}}class Nt extends a.StringObject{constructor(t){super(d,"image");this.aspect=(0,c.getStringOption)(t.aspect,["fit","actual","height","none","width"]);this.contentType=t.contentType||"";this.href=t.href||"";this.id=t.id||"";this.name=t.name||"";this.transferEncoding=(0,c.getStringOption)(t.transferEncoding,["base64","none","package"]);this.use=t.use||"";this.usehref=t.usehref||""}[i.$toHTML](){if(this.contentType&&!y.has(this.contentType.toLowerCase())){return c.HTMLResult.EMPTY}let t=this[i.$globalData].images&&this[i.$globalData].images.get(this.href);if(!t&&(this.href||!this[i.$content])){return c.HTMLResult.EMPTY}if(!t&&this.transferEncoding==="base64"){t=(0,l.stringToBytes)(atob(this[i.$content]))}if(!t){return c.HTMLResult.EMPTY}if(!this.contentType){for(const[e,s]of A){if(t.length>e.length&&e.every(((e,s)=>e===t[s]))){this.contentType=s;break}}if(!this.contentType){return c.HTMLResult.EMPTY}}const e=new Blob([t],{type:this.contentType});let s;switch(this.aspect){case"fit":case"actual":break;case"height":s={height:"100%",objectFit:"fill"};break;case"none":s={width:"100%",height:"100%",objectFit:"fill"};break;case"width":s={width:"100%",objectFit:"fill"};break}const n=this[i.$getParent]();return c.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:s,src:URL.createObjectURL(e),alt:n?I(n[i.$getParent]()):null}})}}class Lt extends a.XFAObject{constructor(t){super(d,"imageEdit",true);this.data=(0,c.getStringOption)(t.data,["link","embed"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.border=null;this.extras=null;this.margin=null}[i.$toHTML](t){if(this.data==="embed"){return c.HTMLResult.success({name:"div",children:[],attributes:{}})}return c.HTMLResult.EMPTY}}class Bt extends a.ContentObject{constructor(t){super(d,"integer");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[i.$finalize](){const t=parseInt(this[i.$content].trim(),10);this[i.$content]=isNaN(t)?null:t}[i.$toHTML](t){return F(this[i.$content]!==null?this[i.$content].toString():"")}}class $t extends a.XFAObject{constructor(t){super(d,"issuers",true);this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.certificate=new a.XFAObjectArray}}class Ut extends a.XFAObject{constructor(t){super(d,"items",true);this.id=t.id||"";this.name=t.name||"";this.presence=(0,c.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.ref=t.ref||"";this.save=(0,c.getInteger)({data:t.save,defaultValue:0,validate:t=>t===1});this.use=t.use||"";this.usehref=t.usehref||"";this.boolean=new a.XFAObjectArray;this.date=new a.XFAObjectArray;this.dateTime=new a.XFAObjectArray;this.decimal=new a.XFAObjectArray;this.exData=new a.XFAObjectArray;this.float=new a.XFAObjectArray;this.image=new a.XFAObjectArray;this.integer=new a.XFAObjectArray;this.text=new a.XFAObjectArray;this.time=new a.XFAObjectArray}[i.$toHTML](){const t=[];for(const e of this[i.$getChildren]()){t.push(e[i.$text]())}return c.HTMLResult.success(t)}}e.Items=Ut;class jt extends a.XFAObject{constructor(t){super(d,"keep",true);this.id=t.id||"";const e=["none","contentArea","pageArea"];this.intact=(0,c.getStringOption)(t.intact,e);this.next=(0,c.getStringOption)(t.next,e);this.previous=(0,c.getStringOption)(t.previous,e);this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null}}class Ht extends a.XFAObject{constructor(t){super(d,"keyUsage");const e=["","yes","no"];this.crlSign=(0,c.getStringOption)(t.crlSign,e);this.dataEncipherment=(0,c.getStringOption)(t.dataEncipherment,e);this.decipherOnly=(0,c.getStringOption)(t.decipherOnly,e);this.digitalSignature=(0,c.getStringOption)(t.digitalSignature,e);this.encipherOnly=(0,c.getStringOption)(t.encipherOnly,e);this.id=t.id||"";this.keyAgreement=(0,c.getStringOption)(t.keyAgreement,e);this.keyCertSign=(0,c.getStringOption)(t.keyCertSign,e);this.keyEncipherment=(0,c.getStringOption)(t.keyEncipherment,e);this.nonRepudiation=(0,c.getStringOption)(t.nonRepudiation,e);this.type=(0,c.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||""}}class Gt extends a.XFAObject{constructor(t){super(d,"line",true);this.hand=(0,c.getStringOption)(t.hand,["even","left","right"]);this.id=t.id||"";this.slope=(0,c.getStringOption)(t.slope,["\\","/"]);this.use=t.use||"";this.usehref=t.usehref||"";this.edge=null}[i.$toHTML](){const t=this[i.$getParent]()[i.$getParent]();const e=this.edge||new pt({});const s=e[i.$toStyle]();const n=Object.create(null);const r=e.presence==="visible"?e.thickness:0;n.strokeWidth=(0,o.measureToString)(r);n.stroke=s.color;let a,l,h,u;let f="100%";let d="100%";if(t.w<=r){[a,l,h,u]=["50%",0,"50%","100%"];f=n.strokeWidth}else if(t.h<=r){[a,l,h,u]=[0,"50%","100%","50%"];d=n.strokeWidth}else if(this.slope==="\\"){[a,l,h,u]=[0,0,"100%","100%"]}else{[a,l,h,u]=[0,"100%","100%",0]}const g={name:"line",attributes:{xmlns:p,x1:a,y1:l,x2:h,y2:u,style:n}};const m={name:"svg",children:[g],attributes:{xmlns:p,width:f,height:d,style:{overflow:"visible"}}};if(x(t)){return c.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[m]})}m.attributes.style.position="absolute";return c.HTMLResult.success(m)}}class qt extends a.XFAObject{constructor(t){super(d,"linear",true);this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["toRight","toBottom","toLeft","toTop"]);this.use=t.use||"";this.usehref=t.usehref||"";this.color=null;this.extras=null}[i.$toStyle](t){t=t?t[i.$toStyle]():"#FFFFFF";const e=this.type.replace(/([RBLT])/," $1").toLowerCase();const s=this.color?this.color[i.$toStyle]():"#000000";return`linear-gradient(${e}, ${t}, ${s})`}}class Xt extends a.ContentObject{constructor(t){super(d,"lockDocument");this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||""}[i.$finalize](){this[i.$content]=(0,c.getStringOption)(this[i.$content],["auto","0","1"])}}class Wt extends a.XFAObject{constructor(t){super(d,"manifest",true);this.action=(0,c.getStringOption)(t.action,["include","all","exclude"]);this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.ref=new a.XFAObjectArray}}class zt extends a.XFAObject{constructor(t){super(d,"margin",true);this.bottomInset=(0,c.getMeasurement)(t.bottomInset,"0");this.id=t.id||"";this.leftInset=(0,c.getMeasurement)(t.leftInset,"0");this.rightInset=(0,c.getMeasurement)(t.rightInset,"0");this.topInset=(0,c.getMeasurement)(t.topInset,"0");this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null}[i.$toStyle](){return{margin:(0,o.measureToString)(this.topInset)+" "+(0,o.measureToString)(this.rightInset)+" "+(0,o.measureToString)(this.bottomInset)+" "+(0,o.measureToString)(this.leftInset)}}}class Vt extends a.XFAObject{constructor(t){super(d,"mdp");this.id=t.id||"";this.permissions=(0,c.getInteger)({data:t.permissions,defaultValue:2,validate:t=>t===1||t===3});this.signatureType=(0,c.getStringOption)(t.signatureType,["filler","author"]);this.use=t.use||"";this.usehref=t.usehref||""}}class Kt extends a.XFAObject{constructor(t){super(d,"medium");this.id=t.id||"";this.imagingBBox=(0,c.getBBox)(t.imagingBBox);this.long=(0,c.getMeasurement)(t.long);this.orientation=(0,c.getStringOption)(t.orientation,["portrait","landscape"]);this.short=(0,c.getMeasurement)(t.short);this.stock=t.stock||"";this.trayIn=(0,c.getStringOption)(t.trayIn,["auto","delegate","pageFront"]);this.trayOut=(0,c.getStringOption)(t.trayOut,["auto","delegate"]);this.use=t.use||"";this.usehref=t.usehref||""}}class Jt extends a.XFAObject{constructor(t){super(d,"message",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.text=new a.XFAObjectArray}}class Yt extends a.XFAObject{constructor(t){super(d,"numericEdit",true);this.hScrollPolicy=(0,c.getStringOption)(t.hScrollPolicy,["auto","off","on"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.border=null;this.comb=null;this.extras=null;this.margin=null}[i.$toHTML](t){const e=(0,o.toStyle)(this,"border","font","margin");const s=this[i.$getParent]()[i.$getParent]();const n={name:"input",attributes:{type:"text",fieldId:s[i.$uid],dataId:s[i.$data]?.[i.$uid]||s[i.$uid],class:["xfaTextfield"],style:e,"aria-label":I(s),"aria-required":false}};if(M(s)){n.attributes["aria-required"]=true;n.attributes.required=true}return c.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[n]})}}class Qt extends a.XFAObject{constructor(t){super(d,"occur",true);this.id=t.id||"";this.initial=t.initial!==""?(0,c.getInteger)({data:t.initial,defaultValue:"",validate:t=>true}):"";this.max=t.max!==""?(0,c.getInteger)({data:t.max,defaultValue:1,validate:t=>true}):"";this.min=t.min!==""?(0,c.getInteger)({data:t.min,defaultValue:1,validate:t=>true}):"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null}[i.$clean](){const t=this[i.$getParent]();const e=this.min;if(this.min===""){this.min=t instanceof se||t instanceof ie?0:1}if(this.max===""){if(e===""){this.max=t instanceof se||t instanceof ie?-1:1}else{this.max=this.min}}if(this.max!==-1&&this.max<this.min){this.max=this.min}if(this.initial===""){this.initial=t instanceof _e?1:this.min}}}class Zt extends a.StringObject{constructor(t){super(d,"oid");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class te extends a.XFAObject{constructor(t){super(d,"oids",true);this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.oid=new a.XFAObjectArray}}class ee extends a.XFAObject{constructor(t){super(d,"overflow");this.id=t.id||"";this.leader=t.leader||"";this.target=t.target||"";this.trailer=t.trailer||"";this.use=t.use||"";this.usehref=t.usehref||""}[i.$getExtra](){if(!this[i.$extra]){const t=this[i.$getParent]();const e=this[i.$getTemplateRoot]();const s=e[i.$searchNode](this.target,t);const n=e[i.$searchNode](this.leader,t);const r=e[i.$searchNode](this.trailer,t);this[i.$extra]={target:s?.[0]||null,leader:n?.[0]||null,trailer:r?.[0]||null,addLeader:false,addTrailer:false}}return this[i.$extra]}}class se extends a.XFAObject{constructor(t){super(d,"pageArea",true);this.blankOrNotBlank=(0,c.getStringOption)(t.blankOrNotBlank,["any","blank","notBlank"]);this.id=t.id||"";this.initialNumber=(0,c.getInteger)({data:t.initialNumber,defaultValue:1,validate:t=>true});this.name=t.name||"";this.numbered=(0,c.getInteger)({data:t.numbered,defaultValue:1,validate:t=>true});this.oddOrEven=(0,c.getStringOption)(t.oddOrEven,["any","even","odd"]);this.pagePosition=(0,c.getStringOption)(t.pagePosition,["any","first","last","only","rest"]);this.relevant=(0,c.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.desc=null;this.extras=null;this.medium=null;this.occur=null;this.area=new a.XFAObjectArray;this.contentArea=new a.XFAObjectArray;this.draw=new a.XFAObjectArray;this.exclGroup=new a.XFAObjectArray;this.field=new a.XFAObjectArray;this.subform=new a.XFAObjectArray}[i.$isUsable](){if(!this[i.$extra]){this[i.$extra]={numberOfUse:0};return true}return!this.occur||this.occur.max===-1||this[i.$extra].numberOfUse<this.occur.max}[i.$cleanPage](){delete this[i.$extra]}[i.$getNextPage](){if(!this[i.$extra]){this[i.$extra]={numberOfUse:0}}const t=this[i.$getParent]();if(t.relation==="orderedOccurrence"){if(this[i.$isUsable]()){this[i.$extra].numberOfUse+=1;return this}}return t[i.$getNextPage]()}[i.$getAvailableSpace](){return this[i.$extra].space||{width:0,height:0}}[i.$toHTML](){if(!this[i.$extra]){this[i.$extra]={numberOfUse:1}}const t=[];this[i.$extra].children=t;const e=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){e.width=(0,o.measureToString)(this.medium.short);e.height=(0,o.measureToString)(this.medium.long);this[i.$extra].space={width:this.medium.short,height:this.medium.long};if(this.medium.orientation==="landscape"){const t=e.width;e.width=e.height;e.height=t;this[i.$extra].space={width:this.medium.long,height:this.medium.short}}}else{(0,l.warn)("XFA - No medium specified in pageArea: please file a bug.")}this[i.$childrenToHTML]({filter:new Set(["area","draw","field","subform"]),include:true});this[i.$childrenToHTML]({filter:new Set(["contentArea"]),include:true});return c.HTMLResult.success({name:"div",children:t,attributes:{class:["xfaPage"],id:this[i.$uid],style:e,xfaName:this.name}})}}class ie extends a.XFAObject{constructor(t){super(d,"pageSet",true);this.duplexImposition=(0,c.getStringOption)(t.duplexImposition,["longEdge","shortEdge"]);this.id=t.id||"";this.name=t.name||"";this.relation=(0,c.getStringOption)(t.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]);this.relevant=(0,c.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.occur=null;this.pageArea=new a.XFAObjectArray;this.pageSet=new a.XFAObjectArray}[i.$cleanPage](){for(const t of this.pageArea.children){t[i.$cleanPage]()}for(const t of this.pageSet.children){t[i.$cleanPage]()}}[i.$isUsable](){return!this.occur||this.occur.max===-1||this[i.$extra].numberOfUse<this.occur.max}[i.$getNextPage](){if(!this[i.$extra]){this[i.$extra]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1}}if(this.relation==="orderedOccurrence"){if(this[i.$extra].pageIndex+1<this.pageArea.children.length){this[i.$extra].pageIndex+=1;const t=this.pageArea.children[this[i.$extra].pageIndex];return t[i.$getNextPage]()}if(this[i.$extra].pageSetIndex+1<this.pageSet.children.length){this[i.$extra].pageSetIndex+=1;return this.pageSet.children[this[i.$extra].pageSetIndex][i.$getNextPage]()}if(this[i.$isUsable]()){this[i.$extra].numberOfUse+=1;this[i.$extra].pageIndex=-1;this[i.$extra].pageSetIndex=-1;return this[i.$getNextPage]()}const t=this[i.$getParent]();if(t instanceof ie){return t[i.$getNextPage]()}this[i.$cleanPage]();return this[i.$getNextPage]()}const t=this[i.$getTemplateRoot]()[i.$extra].pageNumber;const e=t%2===0?"even":"odd";const s=t===0?"first":"rest";let n=this.pageArea.children.find((t=>t.oddOrEven===e&&t.pagePosition===s));if(n){return n}n=this.pageArea.children.find((t=>t.oddOrEven==="any"&&t.pagePosition===s));if(n){return n}n=this.pageArea.children.find((t=>t.oddOrEven==="any"&&t.pagePosition==="any"));if(n){return n}return this.pageArea.children[0]}}class ne extends a.XFAObject{constructor(t){super(d,"para",true);this.hAlign=(0,c.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=t.id||"";this.lineHeight=t.lineHeight?(0,c.getMeasurement)(t.lineHeight,"0pt"):"";this.marginLeft=t.marginLeft?(0,c.getMeasurement)(t.marginLeft,"0pt"):"";this.marginRight=t.marginRight?(0,c.getMeasurement)(t.marginRight,"0pt"):"";this.orphans=(0,c.getInteger)({data:t.orphans,defaultValue:0,validate:t=>t>=0});this.preserve=t.preserve||"";this.radixOffset=t.radixOffset?(0,c.getMeasurement)(t.radixOffset,"0pt"):"";this.spaceAbove=t.spaceAbove?(0,c.getMeasurement)(t.spaceAbove,"0pt"):"";this.spaceBelow=t.spaceBelow?(0,c.getMeasurement)(t.spaceBelow,"0pt"):"";this.tabDefault=t.tabDefault?(0,c.getMeasurement)(this.tabDefault):"";this.tabStops=(t.tabStops||"").trim().split(/\s+/).map(((t,e)=>e%2===1?(0,c.getMeasurement)(t):t));this.textIndent=t.textIndent?(0,c.getMeasurement)(t.textIndent,"0pt"):"";this.use=t.use||"";this.usehref=t.usehref||"";this.vAlign=(0,c.getStringOption)(t.vAlign,["top","bottom","middle"]);this.widows=(0,c.getInteger)({data:t.widows,defaultValue:0,validate:t=>t>=0});this.hyphenation=null}[i.$toStyle](){const t=(0,o.toStyle)(this,"hAlign");if(this.marginLeft!==""){t.paddingLeft=(0,o.measureToString)(this.marginLeft)}if(this.marginRight!==""){t.paddingight=(0,o.measureToString)(this.marginRight)}if(this.spaceAbove!==""){t.paddingTop=(0,o.measureToString)(this.spaceAbove)}if(this.spaceBelow!==""){t.paddingBottom=(0,o.measureToString)(this.spaceBelow)}if(this.textIndent!==""){t.textIndent=(0,o.measureToString)(this.textIndent);(0,o.fixTextIndent)(t)}if(this.lineHeight>0){t.lineHeight=(0,o.measureToString)(this.lineHeight)}if(this.tabDefault!==""){t.tabSize=(0,o.measureToString)(this.tabDefault)}if(this.hyphenatation){Object.assign(t,this.hyphenatation[i.$toStyle]())}return t}}class re extends a.XFAObject{constructor(t){super(d,"passwordEdit",true);this.hScrollPolicy=(0,c.getStringOption)(t.hScrollPolicy,["auto","off","on"]);this.id=t.id||"";this.passwordChar=t.passwordChar||"*";this.use=t.use||"";this.usehref=t.usehref||"";this.border=null;this.extras=null;this.margin=null}}class oe extends a.XFAObject{constructor(t){super(d,"pattern",true);this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]);this.use=t.use||"";this.usehref=t.usehref||"";this.color=null;this.extras=null}[i.$toStyle](t){t=t?t[i.$toStyle]():"#FFFFFF";const e=this.color?this.color[i.$toStyle]():"#000000";const s=5;const n="repeating-linear-gradient";const r=`${t},${t} ${s}px,${e} ${s}px,${e} ${2*s}px`;switch(this.type){case"crossHatch":return`${n}(to top,${r}) ${n}(to right,${r})`;case"crossDiagonal":return`${n}(45deg,${r}) ${n}(-45deg,${r})`;case"diagonalLeft":return`${n}(45deg,${r})`;case"diagonalRight":return`${n}(-45deg,${r})`;case"horizontal":return`${n}(to top,${r})`;case"vertical":return`${n}(to right,${r})`}return""}}class ae extends a.StringObject{constructor(t){super(d,"picture");this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||""}}class ce extends a.XFAObject{constructor(t){super(d,"proto",true);this.appearanceFilter=new a.XFAObjectArray;this.arc=new a.XFAObjectArray;this.area=new a.XFAObjectArray;this.assist=new a.XFAObjectArray;this.barcode=new a.XFAObjectArray;this.bindItems=new a.XFAObjectArray;this.bookend=new a.XFAObjectArray;this.boolean=new a.XFAObjectArray;this.border=new a.XFAObjectArray;this.break=new a.XFAObjectArray;this.breakAfter=new a.XFAObjectArray;this.breakBefore=new a.XFAObjectArray;this.button=new a.XFAObjectArray;this.calculate=new a.XFAObjectArray;this.caption=new a.XFAObjectArray;this.certificate=new a.XFAObjectArray;this.certificates=new a.XFAObjectArray;this.checkButton=new a.XFAObjectArray;this.choiceList=new a.XFAObjectArray;this.color=new a.XFAObjectArray;this.comb=new a.XFAObjectArray;this.connect=new a.XFAObjectArray;this.contentArea=new a.XFAObjectArray;this.corner=new a.XFAObjectArray;this.date=new a.XFAObjectArray;this.dateTime=new a.XFAObjectArray;this.dateTimeEdit=new a.XFAObjectArray;this.decimal=new a.XFAObjectArray;this.defaultUi=new a.XFAObjectArray;this.desc=new a.XFAObjectArray;this.digestMethod=new a.XFAObjectArray;this.digestMethods=new a.XFAObjectArray;this.draw=new a.XFAObjectArray;this.edge=new a.XFAObjectArray;this.encoding=new a.XFAObjectArray;this.encodings=new a.XFAObjectArray;this.encrypt=new a.XFAObjectArray;this.encryptData=new a.XFAObjectArray;this.encryption=new a.XFAObjectArray;this.encryptionMethod=new a.XFAObjectArray;this.encryptionMethods=new a.XFAObjectArray;this.event=new a.XFAObjectArray;this.exData=new a.XFAObjectArray;this.exObject=new a.XFAObjectArray;this.exclGroup=new a.XFAObjectArray;this.execute=new a.XFAObjectArray;this.extras=new a.XFAObjectArray;this.field=new a.XFAObjectArray;this.fill=new a.XFAObjectArray;this.filter=new a.XFAObjectArray;this.float=new a.XFAObjectArray;this.font=new a.XFAObjectArray;this.format=new a.XFAObjectArray;this.handler=new a.XFAObjectArray;this.hyphenation=new a.XFAObjectArray;this.image=new a.XFAObjectArray;this.imageEdit=new a.XFAObjectArray;this.integer=new a.XFAObjectArray;this.issuers=new a.XFAObjectArray;this.items=new a.XFAObjectArray;this.keep=new a.XFAObjectArray;this.keyUsage=new a.XFAObjectArray;this.line=new a.XFAObjectArray;this.linear=new a.XFAObjectArray;this.lockDocument=new a.XFAObjectArray;this.manifest=new a.XFAObjectArray;this.margin=new a.XFAObjectArray;this.mdp=new a.XFAObjectArray;this.medium=new a.XFAObjectArray;this.message=new a.XFAObjectArray;this.numericEdit=new a.XFAObjectArray;this.occur=new a.XFAObjectArray;this.oid=new a.XFAObjectArray;this.oids=new a.XFAObjectArray;this.overflow=new a.XFAObjectArray;this.pageArea=new a.XFAObjectArray;this.pageSet=new a.XFAObjectArray;this.para=new a.XFAObjectArray;this.passwordEdit=new a.XFAObjectArray;this.pattern=new a.XFAObjectArray;this.picture=new a.XFAObjectArray;this.radial=new a.XFAObjectArray;this.reason=new a.XFAObjectArray;this.reasons=new a.XFAObjectArray;this.rectangle=new a.XFAObjectArray;this.ref=new a.XFAObjectArray;this.script=new a.XFAObjectArray;this.setProperty=new a.XFAObjectArray;this.signData=new a.XFAObjectArray;this.signature=new a.XFAObjectArray;this.signing=new a.XFAObjectArray;this.solid=new a.XFAObjectArray;this.speak=new a.XFAObjectArray;this.stipple=new a.XFAObjectArray;this.subform=new a.XFAObjectArray;this.subformSet=new a.XFAObjectArray;this.subjectDN=new a.XFAObjectArray;this.subjectDNs=new a.XFAObjectArray;this.submit=new a.XFAObjectArray;this.text=new a.XFAObjectArray;this.textEdit=new a.XFAObjectArray;this.time=new a.XFAObjectArray;this.timeStamp=new a.XFAObjectArray;this.toolTip=new a.XFAObjectArray;this.traversal=new a.XFAObjectArray;this.traverse=new a.XFAObjectArray;this.ui=new a.XFAObjectArray;this.validate=new a.XFAObjectArray;this.value=new a.XFAObjectArray;this.variables=new a.XFAObjectArray}}class le extends a.XFAObject{constructor(t){super(d,"radial",true);this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["toEdge","toCenter"]);this.use=t.use||"";this.usehref=t.usehref||"";this.color=null;this.extras=null}[i.$toStyle](t){t=t?t[i.$toStyle]():"#FFFFFF";const e=this.color?this.color[i.$toStyle]():"#000000";const s=this.type==="toEdge"?`${t},${e}`:`${e},${t}`;return`radial-gradient(circle at center, ${s})`}}class he extends a.StringObject{constructor(t){super(d,"reason");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class ue extends a.XFAObject{constructor(t){super(d,"reasons",true);this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.reason=new a.XFAObjectArray}}class fe extends a.XFAObject{constructor(t){super(d,"rectangle",true);this.hand=(0,c.getStringOption)(t.hand,["even","left","right"]);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.corner=new a.XFAObjectArray(4);this.edge=new a.XFAObjectArray(4);this.fill=null}[i.$toHTML](){const t=this.edge.children.length?this.edge.children[0]:new pt({});const e=t[i.$toStyle]();const s=Object.create(null);if(this.fill?.presence==="visible"){Object.assign(s,this.fill[i.$toStyle]())}else{s.fill="transparent"}s.strokeWidth=(0,o.measureToString)(t.presence==="visible"?t.thickness:0);s.stroke=e.color;const n=this.corner.children.length?this.corner.children[0]:new nt({});const r=n[i.$toStyle]();const a={name:"rect",attributes:{xmlns:p,width:"100%",height:"100%",x:0,y:0,rx:r.radius,ry:r.radius,style:s}};const l={name:"svg",children:[a],attributes:{xmlns:p,style:{overflow:"visible"},width:"100%",height:"100%"}};const h=this[i.$getParent]()[i.$getParent]();if(x(h)){return c.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[l]})}l.attributes.style.position="absolute";return c.HTMLResult.success(l)}}class de extends a.StringObject{constructor(t){super(d,"ref");this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||""}}class pe extends a.StringObject{constructor(t){super(d,"script");this.binding=t.binding||"";this.contentType=t.contentType||"";this.id=t.id||"";this.name=t.name||"";this.runAt=(0,c.getStringOption)(t.runAt,["client","both","server"]);this.use=t.use||"";this.usehref=t.usehref||""}}class ge extends a.XFAObject{constructor(t){super(d,"setProperty");this.connection=t.connection||"";this.ref=t.ref||"";this.target=t.target||""}}e.SetProperty=ge;class me extends a.XFAObject{constructor(t){super(d,"signData",true);this.id=t.id||"";this.operation=(0,c.getStringOption)(t.operation,["sign","clear","verify"]);this.ref=t.ref||"";this.target=t.target||"";this.use=t.use||"";this.usehref=t.usehref||"";this.filter=null;this.manifest=null}}class we extends a.XFAObject{constructor(t){super(d,"signature",true);this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["PDF1.3","PDF1.6"]);this.use=t.use||"";this.usehref=t.usehref||"";this.border=null;this.extras=null;this.filter=null;this.manifest=null;this.margin=null}}class be extends a.XFAObject{constructor(t){super(d,"signing",true);this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.certificate=new a.XFAObjectArray}}class ye extends a.XFAObject{constructor(t){super(d,"solid",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null}[i.$toStyle](t){return t?t[i.$toStyle]():"#FFFFFF"}}class Ae extends a.StringObject{constructor(t){super(d,"speak");this.disable=(0,c.getInteger)({data:t.disable,defaultValue:0,validate:t=>t===1});this.id=t.id||"";this.priority=(0,c.getStringOption)(t.priority,["custom","caption","name","toolTip"]);this.rid=t.rid||"";this.use=t.use||"";this.usehref=t.usehref||""}}class ve extends a.XFAObject{constructor(t){super(d,"stipple",true);this.id=t.id||"";this.rate=(0,c.getInteger)({data:t.rate,defaultValue:50,validate:t=>t>=0&&t<=100});this.use=t.use||"";this.usehref=t.usehref||"";this.color=null;this.extras=null}[i.$toStyle](t){const e=this.rate/100;return l.Util.makeHexColor(Math.round(t.value.r*(1-e)+this.value.r*e),Math.round(t.value.g*(1-e)+this.value.g*e),Math.round(t.value.b*(1-e)+this.value.b*e))}}class xe extends a.XFAObject{constructor(t){super(d,"subform",true);this.access=(0,c.getStringOption)(t.access,["open","nonInteractive","protected","readOnly"]);this.allowMacro=(0,c.getInteger)({data:t.allowMacro,defaultValue:0,validate:t=>t===1});this.anchorType=(0,c.getStringOption)(t.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=(0,c.getInteger)({data:t.colSpan,defaultValue:1,validate:t=>t>=1||t===-1});this.columnWidths=(t.columnWidths||"").trim().split(/\s+/).map((t=>t==="-1"?-1:(0,c.getMeasurement)(t)));this.h=t.h?(0,c.getMeasurement)(t.h):"";this.hAlign=(0,c.getStringOption)(t.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=t.id||"";this.layout=(0,c.getStringOption)(t.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);this.locale=t.locale||"";this.maxH=(0,c.getMeasurement)(t.maxH,"0pt");this.maxW=(0,c.getMeasurement)(t.maxW,"0pt");this.mergeMode=(0,c.getStringOption)(t.mergeMode,["consumeData","matchTemplate"]);this.minH=(0,c.getMeasurement)(t.minH,"0pt");this.minW=(0,c.getMeasurement)(t.minW,"0pt");this.name=t.name||"";this.presence=(0,c.getStringOption)(t.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,c.getRelevant)(t.relevant);this.restoreState=(0,c.getStringOption)(t.restoreState,["manual","auto"]);this.scope=(0,c.getStringOption)(t.scope,["name","none"]);this.use=t.use||"";this.usehref=t.usehref||"";this.w=t.w?(0,c.getMeasurement)(t.w):"";this.x=(0,c.getMeasurement)(t.x,"0pt");this.y=(0,c.getMeasurement)(t.y,"0pt");this.assist=null;this.bind=null;this.bookend=null;this.border=null;this.break=null;this.calculate=null;this.desc=null;this.extras=null;this.keep=null;this.margin=null;this.occur=null;this.overflow=null;this.pageSet=null;this.para=null;this.traversal=null;this.validate=null;this.variables=null;this.area=new a.XFAObjectArray;this.breakAfter=new a.XFAObjectArray;this.breakBefore=new a.XFAObjectArray;this.connect=new a.XFAObjectArray;this.draw=new a.XFAObjectArray;this.event=new a.XFAObjectArray;this.exObject=new a.XFAObjectArray;this.exclGroup=new a.XFAObjectArray;this.field=new a.XFAObjectArray;this.proto=new a.XFAObjectArray;this.setProperty=new a.XFAObjectArray;this.subform=new a.XFAObjectArray;this.subformSet=new a.XFAObjectArray}[i.$getSubformParent](){const t=this[i.$getParent]();if(t instanceof ke){return t[i.$getSubformParent]()}return t}[i.$isBindable](){return true}[i.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&this[i.$extra].attempt===0&&this[i.$extra].numberInLine>0||this[i.$getParent]()[i.$isThereMoreWidth]()}*[i.$getContainedChildren](){yield*S(this)}[i.$flushHTML](){return(0,r.flushHTML)(this)}[i.$addHTML](t,e){(0,r.addHTML)(this,t,e)}[i.$getAvailableSpace](){return(0,r.getAvailableSpace)(this)}[i.$isSplittable](){const t=this[i.$getSubformParent]();if(!t[i.$isSplittable]()){return false}if(this[i.$extra]._isSplittable!==undefined){return this[i.$extra]._isSplittable}if(this.layout==="position"||this.layout.includes("row")){this[i.$extra]._isSplittable=false;return false}if(this.keep&&this.keep.intact!=="none"){this[i.$extra]._isSplittable=false;return false}if(t.layout?.endsWith("-tb")&&t[i.$extra].numberInLine!==0){return false}this[i.$extra]._isSplittable=true;return true}[i.$toHTML](t){C(this);if(this.break){if(this.break.after!=="auto"||this.break.afterTarget!==""){const t=new X({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});t[i.$globalData]=this[i.$globalData];this[i.$appendChild](t);this.breakAfter.push(t)}if(this.break.before!=="auto"||this.break.beforeTarget!==""){const t=new W({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});t[i.$globalData]=this[i.$globalData];this[i.$appendChild](t);this.breakBefore.push(t)}if(this.break.overflowTarget!==""){const t=new ee({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});t[i.$globalData]=this[i.$globalData];this[i.$appendChild](t);this.overflow.push(t)}this[i.$removeChild](this.break);this.break=null}if(this.presence==="hidden"||this.presence==="inactive"){return c.HTMLResult.EMPTY}if(this.breakBefore.children.length>1||this.breakAfter.children.length>1){(0,l.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug.")}if(this.breakBefore.children.length>=1){const t=this.breakBefore.children[0];if(T(t)){return c.HTMLResult.breakNode(t)}}if(this[i.$extra]?.afterBreakAfter){return c.HTMLResult.EMPTY}(0,o.fixDimensions)(this);const e=[];const s={id:this[i.$uid],class:[]};(0,o.setAccess)(this,s.class);if(!this[i.$extra]){this[i.$extra]=Object.create(null)}Object.assign(this[i.$extra],{children:e,line:null,attributes:s,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||Infinity,t.width),height:Math.min(this.h||Infinity,t.height)},width:0,height:0,prevHeight:0,currentWidth:0});const n=this[i.$getTemplateRoot]();const a=n[i.$extra].noLayoutFailure;const h=this[i.$isSplittable]();if(!h){O(this)}if(!(0,r.checkDimensions)(this,t)){return c.HTMLResult.FAILURE}const u=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){const t=this[i.$getSubformParent]().columnWidths;if(Array.isArray(t)&&t.length>0){this[i.$extra].columnWidths=t;this[i.$extra].currentColumn=0}}const f=(0,o.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign");const d=["xfaSubform"];const p=(0,o.layoutClass)(this);if(p){d.push(p)}s.style=f;s.class=d;if(this.name){s.xfaName=this.name}if(this.overflow){const e=this.overflow[i.$getExtra]();if(e.addLeader){e.addLeader=false;D(this,e.leader,t)}}this[i.$pushPara]();const m=this.layout==="lr-tb"||this.layout==="rl-tb";const w=m?g:1;for(;this[i.$extra].attempt<w;this[i.$extra].attempt++){if(m&&this[i.$extra].attempt===g-1){this[i.$extra].numberInLine=0}const t=this[i.$childrenToHTML]({filter:u,include:true});if(t.success){break}if(t.isBreak()){this[i.$popPara]();return t}if(m&&this[i.$extra].attempt===0&&this[i.$extra].numberInLine===0&&!n[i.$extra].noLayoutFailure){this[i.$extra].attempt=w;break}}this[i.$popPara]();if(!h){E(this)}n[i.$extra].noLayoutFailure=a;if(this[i.$extra].attempt===w){if(this.overflow){this[i.$getTemplateRoot]()[i.$extra].overflowNode=this.overflow}if(!h){delete this[i.$extra]}return c.HTMLResult.FAILURE}if(this.overflow){const e=this.overflow[i.$getExtra]();if(e.addTrailer){e.addTrailer=false;D(this,e.trailer,t)}}let b=0;let y=0;if(this.margin){b=this.margin.leftInset+this.margin.rightInset;y=this.margin.topInset+this.margin.bottomInset}const A=Math.max(this[i.$extra].width+b,this.w||0);const v=Math.max(this[i.$extra].height+y,this.h||0);const x=[this.x,this.y,A,v];if(this.w===""){f.width=(0,o.measureToString)(A)}if(this.h===""){f.height=(0,o.measureToString)(v)}if((f.width==="0px"||f.height==="0px")&&e.length===0){return c.HTMLResult.EMPTY}const k={name:"div",attributes:s,children:e};_(this,s);const S=c.HTMLResult.success((0,o.createWrapper)(this,k),x);if(this.breakAfter.children.length>=1){const t=this.breakAfter.children[0];if(T(t)){this[i.$extra].afterBreakAfter=S;return c.HTMLResult.breakNode(t)}}delete this[i.$extra];return S}}class ke extends a.XFAObject{constructor(t){super(d,"subformSet",true);this.id=t.id||"";this.name=t.name||"";this.relation=(0,c.getStringOption)(t.relation,["ordered","choice","unordered"]);this.relevant=(0,c.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.bookend=null;this.break=null;this.desc=null;this.extras=null;this.occur=null;this.overflow=null;this.breakAfter=new a.XFAObjectArray;this.breakBefore=new a.XFAObjectArray;this.subform=new a.XFAObjectArray;this.subformSet=new a.XFAObjectArray}*[i.$getContainedChildren](){yield*S(this)}[i.$getSubformParent](){let t=this[i.$getParent]();while(!(t instanceof xe)){t=t[i.$getParent]()}return t}[i.$isBindable](){return true}}class Se extends a.ContentObject{constructor(t){super(d,"subjectDN");this.delimiter=t.delimiter||",";this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[i.$finalize](){this[i.$content]=new Map(this[i.$content].split(this.delimiter).map((t=>{t=t.split("=",2);t[0]=t[0].trim();return t})))}}class Me extends a.XFAObject{constructor(t){super(d,"subjectDNs",true);this.id=t.id||"";this.type=(0,c.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||"";this.subjectDN=new a.XFAObjectArray}}class Ce extends a.XFAObject{constructor(t){super(d,"submit",true);this.embedPDF=(0,c.getInteger)({data:t.embedPDF,defaultValue:0,validate:t=>t===1});this.format=(0,c.getStringOption)(t.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]);this.id=t.id||"";this.target=t.target||"";this.textEncoding=(0,c.getKeyword)({data:t.textEncoding?t.textEncoding.toLowerCase():"",defaultValue:"",validate:t=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(t)||t.match(/iso-8859-\d{2}/)});this.use=t.use||"";this.usehref=t.usehref||"";this.xdpContent=t.xdpContent||"";this.encrypt=null;this.encryptData=new a.XFAObjectArray;this.signData=new a.XFAObjectArray}}class _e extends a.XFAObject{constructor(t){super(d,"template",true);this.baseProfile=(0,c.getStringOption)(t.baseProfile,["full","interactiveForms"]);this.extras=null;this.subform=new a.XFAObjectArray}[i.$finalize](){if(this.subform.children.length===0){(0,l.warn)("XFA - No subforms in template node.")}if(this.subform.children.length>=2){(0,l.warn)("XFA - Several subforms in template node: please file a bug.")}this[i.$tabIndex]=w}[i.$isSplittable](){return true}[i.$searchNode](t,e){if(t.startsWith("#")){return[this[i.$ids].get(t.slice(1))]}return(0,f.searchNode)(this,e,t,true,true)}*[i.$toPages](){if(!this.subform.children.length){return c.HTMLResult.success({name:"div",children:[]})}this[i.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:false,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};const t=this.subform.children[0];t.pageSet[i.$cleanPage]();const e=t.pageSet.pageArea.children;const s={name:"div",children:[]};let n=null;let r=null;let o=null;if(t.breakBefore.children.length>=1){r=t.breakBefore.children[0];o=r.target}else if(t.subform.children.length>=1&&t.subform.children[0].breakBefore.children.length>=1){r=t.subform.children[0].breakBefore.children[0];o=r.target}else if(t.break?.beforeTarget){r=t.break;o=r.beforeTarget}else if(t.subform.children.length>=1&&t.subform.children[0].break?.beforeTarget){r=t.subform.children[0].break;o=r.beforeTarget}if(r){const t=this[i.$searchNode](o,r[i.$getParent]());if(t instanceof se){n=t;r[i.$extra]={}}}if(!n){n=e[0]}n[i.$extra]={numberOfUse:1};const a=n[i.$getParent]();a[i.$extra]={numberOfUse:1,pageIndex:a.pageArea.children.indexOf(n),pageSetIndex:0};let h;let u=null;let f=null;let d=true;let p=0;let g=0;while(true){if(!d){s.children.pop();if(++p===m){(0,l.warn)("XFA - Something goes wrong: please file a bug.");return s}}else{p=0}h=null;this[i.$extra].currentPageArea=n;const e=n[i.$toHTML]().html;s.children.push(e);if(u){this[i.$extra].noLayoutFailure=true;e.children.push(u[i.$toHTML](n[i.$extra].space).html);u=null}if(f){this[i.$extra].noLayoutFailure=true;e.children.push(f[i.$toHTML](n[i.$extra].space).html);f=null}const r=n.contentArea.children;const o=e.children.filter((t=>t.attributes.class.includes("xfaContentarea")));d=false;this[i.$extra].firstUnsplittable=null;this[i.$extra].noLayoutFailure=false;const a=e=>{const s=t[i.$flushHTML]();if(s){d||=s.children?.length>0;o[e].children.push(s)}};for(let e=g,n=r.length;e<n;e++){const n=this[i.$extra].currentContentArea=r[e];const c={width:n.w,height:n.h};g=0;if(u){o[e].children.push(u[i.$toHTML](c).html);u=null}if(f){o[e].children.push(f[i.$toHTML](c).html);f=null}const l=t[i.$toHTML](c);if(l.success){if(l.html){d||=l.html.children?.length>0;o[e].children.push(l.html)}else if(!d&&s.children.length>1){s.children.pop()}return s}if(l.isBreak()){const t=l.breakNode;a(e);if(t.targetType==="auto"){continue}if(t.leader){u=this[i.$searchNode](t.leader,t[i.$getParent]());u=u?u[0]:null}if(t.trailer){f=this[i.$searchNode](t.trailer,t[i.$getParent]());f=f?f[0]:null}if(t.targetType==="pageArea"){h=t[i.$extra].target;e=Infinity}else if(!t[i.$extra].target){e=t[i.$extra].index}else{h=t[i.$extra].target;g=t[i.$extra].index+1;e=Infinity}continue}if(this[i.$extra].overflowNode){const t=this[i.$extra].overflowNode;this[i.$extra].overflowNode=null;const s=t[i.$getExtra]();const n=s.target;s.addLeader=s.leader!==null;s.addTrailer=s.trailer!==null;a(e);const o=e;e=Infinity;if(n instanceof se){h=n}else if(n instanceof it){const t=r.indexOf(n);if(t!==-1){if(t>o){e=t-1}else{g=t}}else{h=n[i.$getParent]();g=h.contentArea.children.indexOf(n)}}continue}a(e)}this[i.$extra].pageNumber+=1;if(h){if(h[i.$isUsable]()){h[i.$extra].numberOfUse+=1}else{h=null}}n=h||n[i.$getNextPage]();yield null}}}e.Template=_e;class Ie extends a.ContentObject{constructor(t){super(d,"text");this.id=t.id||"";this.maxChars=(0,c.getInteger)({data:t.maxChars,defaultValue:0,validate:t=>t>=0});this.name=t.name||"";this.rid=t.rid||"";this.use=t.use||"";this.usehref=t.usehref||""}[i.$acceptWhitespace](){return true}[i.$onChild](t){if(t[i.$namespaceId]===n.NamespaceIds.xhtml.id){this[i.$content]=t;return true}(0,l.warn)(`XFA - Invalid content in Text: ${t[i.$nodeName]}.`);return false}[i.$onText](t){if(this[i.$content]instanceof a.XFAObject){return}super[i.$onText](t)}[i.$finalize](){if(typeof this[i.$content]==="string"){this[i.$content]=this[i.$content].replaceAll("\r\n","\n")}}[i.$getExtra](){if(typeof this[i.$content]==="string"){return this[i.$content].split(/[\u2029\u2028\n]/).reduce(((t,e)=>{if(e){t.push(e)}return t}),[]).join("\n")}return this[i.$content][i.$text]()}[i.$toHTML](t){if(typeof this[i.$content]==="string"){const t=F(this[i.$content]).html;if(this[i.$content].includes("\u2029")){t.name="div";t.children=[];this[i.$content].split("\u2029").map((t=>t.split(/[\u2028\n]/).reduce(((t,e)=>{t.push({name:"span",value:e},{name:"br"});return t}),[]))).forEach((e=>{t.children.push({name:"p",children:e})}))}else if(/[\u2028\n]/.test(this[i.$content])){t.name="div";t.children=[];this[i.$content].split(/[\u2028\n]/).forEach((e=>{t.children.push({name:"span",value:e},{name:"br"})}))}return c.HTMLResult.success(t)}return this[i.$content][i.$toHTML](t)}}e.Text=Ie;class Fe extends a.XFAObject{constructor(t){super(d,"textEdit",true);this.allowRichText=(0,c.getInteger)({data:t.allowRichText,defaultValue:0,validate:t=>t===1});this.hScrollPolicy=(0,c.getStringOption)(t.hScrollPolicy,["auto","off","on"]);this.id=t.id||"";this.multiLine=(0,c.getInteger)({data:t.multiLine,defaultValue:"",validate:t=>t===0||t===1});this.use=t.use||"";this.usehref=t.usehref||"";this.vScrollPolicy=(0,c.getStringOption)(t.vScrollPolicy,["auto","off","on"]);this.border=null;this.comb=null;this.extras=null;this.margin=null}[i.$toHTML](t){const e=(0,o.toStyle)(this,"border","font","margin");let s;const n=this[i.$getParent]()[i.$getParent]();if(this.multiLine===""){this.multiLine=n instanceof dt?1:0}if(this.multiLine===1){s={name:"textarea",attributes:{dataId:n[i.$data]?.[i.$uid]||n[i.$uid],fieldId:n[i.$uid],class:["xfaTextfield"],style:e,"aria-label":I(n),"aria-required":false}}}else{s={name:"input",attributes:{type:"text",dataId:n[i.$data]?.[i.$uid]||n[i.$uid],fieldId:n[i.$uid],class:["xfaTextfield"],style:e,"aria-label":I(n),"aria-required":false}}}if(M(n)){s.attributes["aria-required"]=true;s.attributes.required=true}return c.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[s]})}}class Oe extends a.StringObject{constructor(t){super(d,"time");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}[i.$finalize](){const t=this[i.$content].trim();this[i.$content]=t?new Date(t):null}[i.$toHTML](t){return F(this[i.$content]?this[i.$content].toString():"")}}class Ee extends a.XFAObject{constructor(t){super(d,"timeStamp");this.id=t.id||"";this.server=t.server||"";this.type=(0,c.getStringOption)(t.type,["optional","required"]);this.use=t.use||"";this.usehref=t.usehref||""}}class Te extends a.StringObject{constructor(t){super(d,"toolTip");this.id=t.id||"";this.rid=t.rid||"";this.use=t.use||"";this.usehref=t.usehref||""}}class De extends a.XFAObject{constructor(t){super(d,"traversal",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.traverse=new a.XFAObjectArray}}class Pe extends a.XFAObject{constructor(t){super(d,"traverse",true);this.id=t.id||"";this.operation=(0,c.getStringOption)(t.operation,["next","back","down","first","left","right","up"]);this.ref=t.ref||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.script=null}get name(){return this.operation}[i.$isTransparent](){return false}}class Re extends a.XFAObject{constructor(t){super(d,"ui",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.picture=null;this.barcode=null;this.button=null;this.checkButton=null;this.choiceList=null;this.dateTimeEdit=null;this.defaultUi=null;this.imageEdit=null;this.numericEdit=null;this.passwordEdit=null;this.signature=null;this.textEdit=null}[i.$getExtra](){if(this[i.$extra]===undefined){for(const t of Object.getOwnPropertyNames(this)){if(t==="extras"||t==="picture"){continue}const e=this[t];if(!(e instanceof a.XFAObject)){continue}this[i.$extra]=e;return e}this[i.$extra]=null}return this[i.$extra]}[i.$toHTML](t){const e=this[i.$getExtra]();if(e){return e[i.$toHTML](t)}return c.HTMLResult.EMPTY}}class Ne extends a.XFAObject{constructor(t){super(d,"validate",true);this.formatTest=(0,c.getStringOption)(t.formatTest,["warning","disabled","error"]);this.id=t.id||"";this.nullTest=(0,c.getStringOption)(t.nullTest,["disabled","error","warning"]);this.scriptTest=(0,c.getStringOption)(t.scriptTest,["error","disabled","warning"]);this.use=t.use||"";this.usehref=t.usehref||"";this.extras=null;this.message=null;this.picture=null;this.script=null}}class Le extends a.XFAObject{constructor(t){super(d,"value",true);this.id=t.id||"";this.override=(0,c.getInteger)({data:t.override,defaultValue:0,validate:t=>t===1});this.relevant=(0,c.getRelevant)(t.relevant);this.use=t.use||"";this.usehref=t.usehref||"";this.arc=null;this.boolean=null;this.date=null;this.dateTime=null;this.decimal=null;this.exData=null;this.float=null;this.image=null;this.integer=null;this.line=null;this.rectangle=null;this.text=null;this.time=null}[i.$setValue](t){const e=this[i.$getParent]();if(e instanceof It){if(e.ui?.imageEdit){if(!this.image){this.image=new Nt({});this[i.$appendChild](this.image)}this.image[i.$content]=t[i.$content];return}}const s=t[i.$nodeName];if(this[s]!==null){this[s][i.$content]=t[i.$content];return}for(const t of Object.getOwnPropertyNames(this)){const e=this[t];if(e instanceof a.XFAObject){this[t]=null;this[i.$removeChild](e)}}this[t[i.$nodeName]]=t;this[i.$appendChild](t)}[i.$text](){if(this.exData){if(typeof this.exData[i.$content]==="string"){return this.exData[i.$content].trim()}return this.exData[i.$content][i.$text]().trim()}for(const t of Object.getOwnPropertyNames(this)){if(t==="image"){continue}const e=this[t];if(e instanceof a.XFAObject){return(e[i.$content]||"").toString().trim()}}return null}[i.$toHTML](t){for(const e of Object.getOwnPropertyNames(this)){const s=this[e];if(!(s instanceof a.XFAObject)){continue}return s[i.$toHTML](t)}return c.HTMLResult.EMPTY}}e.Value=Le;class Be extends a.XFAObject{constructor(t){super(d,"variables",true);this.id=t.id||"";this.use=t.use||"";this.usehref=t.usehref||"";this.boolean=new a.XFAObjectArray;this.date=new a.XFAObjectArray;this.dateTime=new a.XFAObjectArray;this.decimal=new a.XFAObjectArray;this.exData=new a.XFAObjectArray;this.float=new a.XFAObjectArray;this.image=new a.XFAObjectArray;this.integer=new a.XFAObjectArray;this.manifest=new a.XFAObjectArray;this.script=new a.XFAObjectArray;this.text=new a.XFAObjectArray;this.time=new a.XFAObjectArray}[i.$isTransparent](){return true}}class $e{static[n.$buildXFAObject](t,e){if($e.hasOwnProperty(t)){const s=$e[t](e);s[i.$setSetAttributes](e);return s}return undefined}static appearanceFilter(t){return new P(t)}static arc(t){return new R(t)}static area(t){return new N(t)}static assist(t){return new L(t)}static barcode(t){return new B(t)}static bind(t){return new $(t)}static bindItems(t){return new U(t)}static bookend(t){return new j(t)}static boolean(t){return new H(t)}static border(t){return new G(t)}static break(t){return new q(t)}static breakAfter(t){return new X(t)}static breakBefore(t){return new W(t)}static button(t){return new z(t)}static calculate(t){return new V(t)}static caption(t){return new K(t)}static certificate(t){return new J(t)}static certificates(t){return new Y(t)}static checkButton(t){return new Q(t)}static choiceList(t){return new Z(t)}static color(t){return new tt(t)}static comb(t){return new et(t)}static connect(t){return new st(t)}static contentArea(t){return new it(t)}static corner(t){return new nt(t)}static date(t){return new rt(t)}static dateTime(t){return new ot(t)}static dateTimeEdit(t){return new at(t)}static decimal(t){return new ct(t)}static defaultUi(t){return new lt(t)}static desc(t){return new ht(t)}static digestMethod(t){return new ut(t)}static digestMethods(t){return new ft(t)}static draw(t){return new dt(t)}static edge(t){return new pt(t)}static encoding(t){return new gt(t)}static encodings(t){return new mt(t)}static encrypt(t){return new wt(t)}static encryptData(t){return new bt(t)}static encryption(t){return new yt(t)}static encryptionMethod(t){return new At(t)}static encryptionMethods(t){return new vt(t)}static event(t){return new xt(t)}static exData(t){return new kt(t)}static exObject(t){return new St(t)}static exclGroup(t){return new Mt(t)}static execute(t){return new Ct(t)}static extras(t){return new _t(t)}static field(t){return new It(t)}static fill(t){return new Ft(t)}static filter(t){return new Ot(t)}static float(t){return new Et(t)}static font(t){return new Tt(t)}static format(t){return new Dt(t)}static handler(t){return new Pt(t)}static hyphenation(t){return new Rt(t)}static image(t){return new Nt(t)}static imageEdit(t){return new Lt(t)}static integer(t){return new Bt(t)}static issuers(t){return new $t(t)}static items(t){return new Ut(t)}static keep(t){return new jt(t)}static keyUsage(t){return new Ht(t)}static line(t){return new Gt(t)}static linear(t){return new qt(t)}static lockDocument(t){return new Xt(t)}static manifest(t){return new Wt(t)}static margin(t){return new zt(t)}static mdp(t){return new Vt(t)}static medium(t){return new Kt(t)}static message(t){return new Jt(t)}static numericEdit(t){return new Yt(t)}static occur(t){return new Qt(t)}static oid(t){return new Zt(t)}static oids(t){return new te(t)}static overflow(t){return new ee(t)}static pageArea(t){return new se(t)}static pageSet(t){return new ie(t)}static para(t){return new ne(t)}static passwordEdit(t){return new re(t)}static pattern(t){return new oe(t)}static picture(t){return new ae(t)}static proto(t){return new ce(t)}static radial(t){return new le(t)}static reason(t){return new he(t)}static reasons(t){return new ue(t)}static rectangle(t){return new fe(t)}static ref(t){return new de(t)}static script(t){return new pe(t)}static setProperty(t){return new ge(t)}static signData(t){return new me(t)}static signature(t){return new we(t)}static signing(t){return new be(t)}static solid(t){return new ye(t)}static speak(t){return new Ae(t)}static stipple(t){return new ve(t)}static subform(t){return new xe(t)}static subformSet(t){return new ke(t)}static subjectDN(t){return new Se(t)}static subjectDNs(t){return new Me(t)}static submit(t){return new Ce(t)}static template(t){return new _e(t)}static text(t){return new Ie(t)}static textEdit(t){return new Fe(t)}static time(t){return new Oe(t)}static timeStamp(t){return new Ee(t)}static toolTip(t){return new Te(t)}static traversal(t){return new De(t)}static traverse(t){return new Pe(t)}static ui(t){return new Re(t)}static validate(t){return new Ne(t)}static value(t){return new Le(t)}static variables(t){return new Be(t)}}e.TemplateNamespace=$e},(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.NamespaceIds=e.$buildXFAObject=void 0;const s=Symbol();e.$buildXFAObject=s;const i={config:{id:0,check:t=>t.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:t=>t==="http://ns.adobe.com/xdp/pdf/"},signature:{id:6,check:t=>t==="http://www.w3.org/2000/09/xmldsig#"},sourceSet:{id:7,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:t=>t==="http://www.w3.org/1999/XSL/Transform"},template:{id:9,check:t=>t.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:t=>t.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:t=>t==="http://ns.adobe.com/xdp/"},xfdf:{id:12,check:t=>t==="http://ns.adobe.com/xfdf/"},xhtml:{id:13,check:t=>t==="http://www.w3.org/1999/xhtml"},xmpmeta:{id:14,check:t=>t==="http://ns.adobe.com/xmpmeta/"}};e.NamespaceIds=i},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.addHTML=a;e.checkDimensions=h;e.flushHTML=o;e.getAvailableSpace=c;var i=s(78);var n=s(83);function r(t,e){return{name:"div",attributes:{class:[t.layout==="lr-tb"?"xfaLr":"xfaRl"]},children:e}}function o(t){if(!t[i.$extra]){return null}const e=t[i.$extra].attributes;const s={name:"div",attributes:e,children:t[i.$extra].children};if(t[i.$extra].failingNode){const e=t[i.$extra].failingNode[i.$flushHTML]();if(e){if(t.layout.endsWith("-tb")){s.children.push(r(t,[e]))}else{s.children.push(e)}}}if(s.children.length===0){return null}return s}function a(t,e,s){const o=t[i.$extra];const a=o.availableSpace;const[c,l,h,u]=s;switch(t.layout){case"position":{o.width=Math.max(o.width,c+h);o.height=Math.max(o.height,l+u);o.children.push(e);break}case"lr-tb":case"rl-tb":if(!o.line||o.attempt===1){o.line=r(t,[]);o.children.push(o.line);o.numberInLine=0}o.numberInLine+=1;o.line.children.push(e);if(o.attempt===0){o.currentWidth+=h;o.height=Math.max(o.height,o.prevHeight+u)}else{o.currentWidth=h;o.prevHeight=o.height;o.height+=u;o.attempt=0}o.width=Math.max(o.width,o.currentWidth);break;case"rl-row":case"row":{o.children.push(e);o.width+=h;o.height=Math.max(o.height,u);const t=(0,n.measureToString)(o.height);for(const e of o.children){e.attributes.style.height=t}break}case"table":{o.width=Math.min(a.width,Math.max(o.width,h));o.height+=u;o.children.push(e);break}case"tb":{o.width=Math.min(a.width,Math.max(o.width,h));o.height+=u;o.children.push(e);break}}}function c(t){const e=t[i.$extra].availableSpace;const s=t.margin?t.margin.topInset+t.margin.bottomInset:0;const n=t.margin?t.margin.leftInset+t.margin.rightInset:0;switch(t.layout){case"lr-tb":case"rl-tb":if(t[i.$extra].attempt===0){return{width:e.width-n-t[i.$extra].currentWidth,height:e.height-s-t[i.$extra].prevHeight}}return{width:e.width-n,height:e.height-s-t[i.$extra].height};case"rl-row":case"row":const r=t[i.$extra].columnWidths.slice(t[i.$extra].currentColumn).reduce(((t,e)=>t+e));return{width:r,height:e.height-n};case"table":case"tb":return{width:e.width-n,height:e.height-s-t[i.$extra].height};case"position":default:return e}}function l(t){let e=t.w===""?NaN:t.w;let s=t.h===""?NaN:t.h;let[i,n]=[0,0];switch(t.anchorType||""){case"bottomCenter":[i,n]=[e/2,s];break;case"bottomLeft":[i,n]=[0,s];break;case"bottomRight":[i,n]=[e,s];break;case"middleCenter":[i,n]=[e/2,s/2];break;case"middleLeft":[i,n]=[0,s/2];break;case"middleRight":[i,n]=[e,s/2];break;case"topCenter":[i,n]=[e/2,0];break;case"topRight":[i,n]=[e,0];break}let r,o;switch(t.rotate||0){case 0:[r,o]=[-i,-n];break;case 90:[r,o]=[-n,i];[e,s]=[s,-e];break;case 180:[r,o]=[i,n];[e,s]=[-e,-s];break;case 270:[r,o]=[n,-i];[e,s]=[-s,e];break}return[t.x+r+Math.min(0,e),t.y+o+Math.min(0,s),Math.abs(e),Math.abs(s)]}function h(t,e){if(t[i.$getTemplateRoot]()[i.$extra].firstUnsplittable===null){return true}if(t.w===0||t.h===0){return true}const s=2;const n=t[i.$getSubformParent]();const r=n[i.$extra]?.attempt||0;const[,o,a,c]=l(t);switch(n.layout){case"lr-tb":case"rl-tb":if(r===0){if(!t[i.$getTemplateRoot]()[i.$extra].noLayoutFailure){if(t.h!==""&&Math.round(c-e.height)>s){return false}if(t.w!==""){if(Math.round(a-e.width)<=s){return true}if(n[i.$extra].numberInLine===0){return e.height>s}return false}return e.width>s}if(t.w!==""){return Math.round(a-e.width)<=s}return e.width>s}if(t[i.$getTemplateRoot]()[i.$extra].noLayoutFailure){return true}if(t.h!==""&&Math.round(c-e.height)>s){return false}if(t.w===""||Math.round(a-e.width)<=s){return e.height>s}if(n[i.$isThereMoreWidth]()){return false}return e.height>s;case"table":case"tb":if(t[i.$getTemplateRoot]()[i.$extra].noLayoutFailure){return true}if(t.h!==""&&!t[i.$isSplittable]()){return Math.round(c-e.height)<=s}if(t.w===""||Math.round(a-e.width)<=s){return e.height>s}if(n[i.$isThereMoreWidth]()){return false}return e.height>s;case"position":if(t[i.$getTemplateRoot]()[i.$extra].noLayoutFailure){return true}if(t.h===""||Math.round(c+o-e.height)<=s){return true}const l=t[i.$getTemplateRoot]()[i.$extra].currentContentArea;return c+o>l.h;case"rl-row":case"row":if(t[i.$getTemplateRoot]()[i.$extra].noLayoutFailure){return true}if(t.h!==""){return Math.round(c-e.height)<=s}return true;default:return true}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.computeBbox=p;e.createWrapper=b;e.fixDimensions=g;e.fixTextIndent=y;e.fixURL=M;e.isPrintOnly=v;e.layoutClass=m;e.layoutNode=d;e.measureToString=l;e.setAccess=A;e.setFontFamily=S;e.setMinMaxDimensions=u;e.setPara=k;e.toStyle=w;var i=s(78);var n=s(2);var r=s(84);var o=s(85);var a=s(86);var c=s(87);function l(t){if(typeof t==="string"){return"0px"}return Number.isInteger(t)?`${t}px`:`${t.toFixed(2)}px`}const h={anchorType(t,e){const s=t[i.$getSubformParent]();if(!s||s.layout&&s.layout!=="position"){return}if(!("transform"in e)){e.transform=""}switch(t.anchorType){case"bottomCenter":e.transform+="translate(-50%, -100%)";break;case"bottomLeft":e.transform+="translate(0,-100%)";break;case"bottomRight":e.transform+="translate(-100%,-100%)";break;case"middleCenter":e.transform+="translate(-50%,-50%)";break;case"middleLeft":e.transform+="translate(0,-50%)";break;case"middleRight":e.transform+="translate(-100%,-50%)";break;case"topCenter":e.transform+="translate(-50%,0)";break;case"topRight":e.transform+="translate(-100%,0)";break}},dimensions(t,e){const s=t[i.$getSubformParent]();let n=t.w;const r=t.h;if(s.layout?.includes("row")){const e=s[i.$extra];const r=t.colSpan;let o;if(r===-1){o=e.columnWidths.slice(e.currentColumn).reduce(((t,e)=>t+e),0);e.currentColumn=0}else{o=e.columnWidths.slice(e.currentColumn,e.currentColumn+r).reduce(((t,e)=>t+e),0);e.currentColumn=(e.currentColumn+t.colSpan)%e.columnWidths.length}if(!isNaN(o)){n=t.w=o}}e.width=n!==""?l(n):"auto";e.height=r!==""?l(r):"auto"},position(t,e){const s=t[i.$getSubformParent]();if(s?.layout&&s.layout!=="position"){return}e.position="absolute";e.left=l(t.x);e.top=l(t.y)},rotate(t,e){if(t.rotate){if(!("transform"in e)){e.transform=""}e.transform+=`rotate(-${t.rotate}deg)`;e.transformOrigin="top left"}},presence(t,e){switch(t.presence){case"invisible":e.visibility="hidden";break;case"hidden":case"inactive":e.display="none";break}},hAlign(t,e){if(t[i.$nodeName]==="para"){switch(t.hAlign){case"justifyAll":e.textAlign="justify-all";break;case"radix":e.textAlign="left";break;default:e.textAlign=t.hAlign}}else{switch(t.hAlign){case"left":e.alignSelf="start";break;case"center":e.alignSelf="center";break;case"right":e.alignSelf="end";break}}},margin(t,e){if(t.margin){e.margin=t.margin[i.$toStyle]().margin}}};function u(t,e){const s=t[i.$getSubformParent]();if(s.layout==="position"){if(t.minW>0){e.minWidth=l(t.minW)}if(t.maxW>0){e.maxWidth=l(t.maxW)}if(t.minH>0){e.minHeight=l(t.minH)}if(t.maxH>0){e.maxHeight=l(t.maxH)}}}function f(t,e,s,n,r,o){const c=new a.TextMeasure(e,s,n,r);if(typeof t==="string"){c.addString(t)}else{t[i.$pushGlyphs](c)}return c.compute(o)}function d(t,e){let s=null;let n=null;let r=false;if((!t.w||!t.h)&&t.value){let o=0;let a=0;if(t.margin){o=t.margin.leftInset+t.margin.rightInset;a=t.margin.topInset+t.margin.bottomInset}let c=null;let l=null;if(t.para){l=Object.create(null);c=t.para.lineHeight===""?null:t.para.lineHeight;l.top=t.para.spaceAbove===""?0:t.para.spaceAbove;l.bottom=t.para.spaceBelow===""?0:t.para.spaceBelow;l.left=t.para.marginLeft===""?0:t.para.marginLeft;l.right=t.para.marginRight===""?0:t.para.marginRight}let h=t.font;if(!h){const e=t[i.$getTemplateRoot]();let s=t[i.$getParent]();while(s&&s!==e){if(s.font){h=s.font;break}s=s[i.$getParent]()}}const u=(t.w||e.width)-o;const d=t[i.$globalData].fontFinder;if(t.value.exData&&t.value.exData[i.$content]&&t.value.exData.contentType==="text/html"){const e=f(t.value.exData[i.$content],h,l,c,d,u);n=e.width;s=e.height;r=e.isBroken}else{const e=t.value[i.$text]();if(e){const t=f(e,h,l,c,d,u);n=t.width;s=t.height;r=t.isBroken}}if(n!==null&&!t.w){n+=o}if(s!==null&&!t.h){s+=a}}return{w:n,h:s,isBroken:r}}function p(t,e,s){let n;if(t.w!==""&&t.h!==""){n=[t.x,t.y,t.w,t.h]}else{if(!s){return null}let r=t.w;if(r===""){if(t.maxW===0){const e=t[i.$getSubformParent]();r=e.layout==="position"&&e.w!==""?0:t.minW}else{r=Math.min(t.maxW,s.width)}e.attributes.style.width=l(r)}let o=t.h;if(o===""){if(t.maxH===0){const e=t[i.$getSubformParent]();o=e.layout==="position"&&e.h!==""?0:t.minH}else{o=Math.min(t.maxH,s.height)}e.attributes.style.height=l(o)}n=[t.x,t.y,r,o]}return n}function g(t){const e=t[i.$getSubformParent]();if(e.layout?.includes("row")){const s=e[i.$extra];const n=t.colSpan;let r;if(n===-1){r=s.columnWidths.slice(s.currentColumn).reduce(((t,e)=>t+e),0)}else{r=s.columnWidths.slice(s.currentColumn,s.currentColumn+n).reduce(((t,e)=>t+e),0)}if(!isNaN(r)){t.w=r}}if(e.layout&&e.layout!=="position"){t.x=t.y=0}if(t.layout==="table"){if(t.w===""&&Array.isArray(t.columnWidths)){t.w=t.columnWidths.reduce(((t,e)=>t+e),0)}}}function m(t){switch(t.layout){case"position":return"xfaPosition";case"lr-tb":return"xfaLrTb";case"rl-row":return"xfaRlRow";case"rl-tb":return"xfaRlTb";case"row":return"xfaRow";case"table":return"xfaTable";case"tb":return"xfaTb";default:return"xfaPosition"}}function w(t,...e){const s=Object.create(null);for(const r of e){const e=t[r];if(e===null){continue}if(h.hasOwnProperty(r)){h[r](t,s);continue}if(e instanceof c.XFAObject){const t=e[i.$toStyle]();if(t){Object.assign(s,t)}else{(0,n.warn)(`(DEBUG) - XFA - style for ${r} not implemented yet`)}}}return s}function b(t,e){const{attributes:s}=e;const{style:n}=s;const r={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};s.class.push("xfaWrapped");if(t.border){const{widths:s,insets:o}=t.border[i.$extra];let a,c;let l=o[0];let h=o[3];const u=o[0]+o[2];const f=o[1]+o[3];switch(t.border.hand){case"even":l-=s[0]/2;h-=s[3]/2;a=`calc(100% + ${(s[1]+s[3])/2-f}px)`;c=`calc(100% + ${(s[0]+s[2])/2-u}px)`;break;case"left":l-=s[0];h-=s[3];a=`calc(100% + ${s[1]+s[3]-f}px)`;c=`calc(100% + ${s[0]+s[2]-u}px)`;break;case"right":a=f?`calc(100% - ${f}px)`:"100%";c=u?`calc(100% - ${u}px)`:"100%";break}const d=["xfaBorder"];if(v(t.border)){d.push("xfaPrintOnly")}const p={name:"div",attributes:{class:d,style:{top:`${l}px`,left:`${h}px`,width:a,height:c}},children:[]};for(const t of["border","borderWidth","borderColor","borderRadius","borderStyle"]){if(n[t]!==undefined){p.attributes.style[t]=n[t];delete n[t]}}r.children.push(p,e)}else{r.children.push(e)}for(const t of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"]){if(n[t]!==undefined){r.attributes.style[t]=n[t];delete n[t]}}r.attributes.style.position=n.position==="absolute"?"absolute":"relative";delete n.position;if(n.alignSelf){r.attributes.style.alignSelf=n.alignSelf;delete n.alignSelf}return r}function y(t){const e=(0,r.getMeasurement)(t.textIndent,"0px");if(e>=0){return}const s=t.textAlign==="right"?"right":"left";const i="padding"+(s==="left"?"Left":"Right");const n=(0,r.getMeasurement)(t[i],"0px");t[i]=`${n-e}px`}function A(t,e){switch(t.access){case"nonInteractive":e.push("xfaNonInteractive");break;case"readOnly":e.push("xfaReadOnly");break;case"protected":e.push("xfaDisabled");break}}function v(t){return t.relevant.length>0&&!t.relevant[0].excluded&&t.relevant[0].viewname==="print"}function x(t){const e=t[i.$getTemplateRoot]()[i.$extra].paraStack;return e.length?e.at(-1):null}function k(t,e,s){if(s.attributes.class?.includes("xfaRich")){if(e){if(t.h===""){e.height="auto"}if(t.w===""){e.width="auto"}}const n=x(t);if(n){const t=s.attributes.style;t.display="flex";t.flexDirection="column";switch(n.vAlign){case"top":t.justifyContent="start";break;case"bottom":t.justifyContent="end";break;case"middle":t.justifyContent="center";break}const e=n[i.$toStyle]();for(const[s,i]of Object.entries(e)){if(!(s in t)){t[s]=i}}}}}function S(t,e,s,i){if(!s){delete i.fontFamily;return}const n=(0,r.stripQuotes)(t.typeface);i.fontFamily=`"${n}"`;const a=s.find(n);if(a){const{fontFamily:s}=a.regular.cssFontInfo;if(s!==n){i.fontFamily=`"${s}"`}const r=x(e);if(r&&r.lineHeight!==""){return}if(i.lineHeight){return}const c=(0,o.selectFont)(t,a);if(c){i.lineHeight=Math.max(1.2,c.lineHeight)}}}function M(t){const e=(0,n.createValidAbsoluteUrl)(t,null,{addDefaultProtocol:true,tryConvertEncoding:true});return e?e.href:null}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.HTMLResult=void 0;e.getBBox=g;e.getColor=p;e.getFloat=c;e.getInteger=a;e.getKeyword=l;e.getMeasurement=u;e.getRatio=f;e.getRelevant=d;e.getStringOption=h;e.stripQuotes=o;var i=s(2);const n={pt:t=>t,cm:t=>t/2.54*72,mm:t=>t/(10*2.54)*72,in:t=>t*72,px:t=>t};const r=/([+-]?\d+\.?\d*)(.*)/;function o(t){if(t.startsWith("'")||t.startsWith('"')){return t.slice(1,-1)}return t}function a({data:t,defaultValue:e,validate:s}){if(!t){return e}t=t.trim();const i=parseInt(t,10);if(!isNaN(i)&&s(i)){return i}return e}function c({data:t,defaultValue:e,validate:s}){if(!t){return e}t=t.trim();const i=parseFloat(t);if(!isNaN(i)&&s(i)){return i}return e}function l({data:t,defaultValue:e,validate:s}){if(!t){return e}t=t.trim();if(s(t)){return t}return e}function h(t,e){return l({data:t,defaultValue:e[0],validate:t=>e.includes(t)})}function u(t,e="0"){e||="0";if(!t){return u(e)}const s=t.trim().match(r);if(!s){return u(e)}const[,i,o]=s;const a=parseFloat(i);if(isNaN(a)){return u(e)}if(a===0){return 0}const c=n[o];if(c){return c(a)}return a}function f(t){if(!t){return{num:1,den:1}}const e=t.trim().split(/\s*:\s*/).map((t=>parseFloat(t))).filter((t=>!isNaN(t)));if(e.length===1){e.push(1)}if(e.length===0){return{num:1,den:1}}const[s,i]=e;return{num:s,den:i}}function d(t){if(!t){return[]}return t.trim().split(/\s+/).map((t=>({excluded:t[0]==="-",viewname:t.substring(1)})))}function p(t,e=[0,0,0]){let[s,i,n]=e;if(!t){return{r:s,g:i,b:n}}const r=t.trim().split(/\s*,\s*/).map((t=>Math.min(Math.max(0,parseInt(t.trim(),10)),255))).map((t=>isNaN(t)?0:t));if(r.length<3){return{r:s,g:i,b:n}}[s,i,n]=r;return{r:s,g:i,b:n}}function g(t){const e=-1;if(!t){return{x:e,y:e,width:e,height:e}}const s=t.trim().split(/\s*,\s*/).map((t=>u(t,"-1")));if(s.length<4||s[2]<0||s[3]<0){return{x:e,y:e,width:e,height:e}}const[i,n,r,o]=s;return{x:i,y:n,width:r,height:o}}class m{static get FAILURE(){return(0,i.shadow)(this,"FAILURE",new m(false,null,null,null))}static get EMPTY(){return(0,i.shadow)(this,"EMPTY",new m(true,null,null,null))}constructor(t,e,s,i){this.success=t;this.html=e;this.bbox=s;this.breakNode=i}isBreak(){return!!this.breakNode}static breakNode(t){return new m(false,null,null,t)}static success(t,e=null){return new m(true,t,e,null)}}e.HTMLResult=m},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.FontFinder=void 0;e.getMetrics=c;e.selectFont=a;var i=s(78);var n=s(84);var r=s(2);class o{constructor(t){this.fonts=new Map;this.cache=new Map;this.warned=new Set;this.defaultFont=null;this.add(t)}add(t,e=null){for(const e of t){this.addPdfFont(e)}for(const t of this.fonts.values()){if(!t.regular){t.regular=t.italic||t.bold||t.bolditalic}}if(!e||e.size===0){return}const s=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const t of e){this.fonts.set(t,s)}}addPdfFont(t){const e=t.cssFontInfo;const s=e.fontFamily;let i=this.fonts.get(s);if(!i){i=Object.create(null);this.fonts.set(s,i);if(!this.defaultFont){this.defaultFont=i}}let n="";const r=parseFloat(e.fontWeight);if(parseFloat(e.italicAngle)!==0){n=r>=700?"bolditalic":"italic"}else if(r>=700){n="bold"}if(!n){if(t.name.includes("Bold")||t.psName?.includes("Bold")){n="bold"}if(t.name.includes("Italic")||t.name.endsWith("It")||t.psName?.includes("Italic")||t.psName?.endsWith("It")){n+="italic"}}if(!n){n="regular"}i[n]=t}getDefault(){return this.defaultFont}find(t,e=true){let s=this.fonts.get(t)||this.cache.get(t);if(s){return s}const i=/,|-|_| |bolditalic|bold|italic|regular|it/gi;let n=t.replaceAll(i,"");s=this.fonts.get(n);if(s){this.cache.set(t,s);return s}n=n.toLowerCase();const o=[];for(const[t,e]of this.fonts.entries()){if(t.replaceAll(i,"").toLowerCase().startsWith(n)){o.push(e)}}if(o.length===0){for(const[,t]of this.fonts.entries()){if(t.regular.name?.replaceAll(i,"").toLowerCase().startsWith(n)){o.push(t)}}}if(o.length===0){n=n.replaceAll(/psmt|mt/gi,"");for(const[t,e]of this.fonts.entries()){if(t.replaceAll(i,"").toLowerCase().startsWith(n)){o.push(e)}}}if(o.length===0){for(const t of this.fonts.values()){if(t.regular.name?.replaceAll(i,"").toLowerCase().startsWith(n)){o.push(t)}}}if(o.length>=1){if(o.length!==1&&e){(0,r.warn)(`XFA - Too many choices to guess the correct font: ${t}`)}this.cache.set(t,o[0]);return o[0]}if(e&&!this.warned.has(t)){this.warned.add(t);(0,r.warn)(`XFA - Cannot find the font: ${t}`)}return null}}e.FontFinder=o;function a(t,e){if(t.posture==="italic"){if(t.weight==="bold"){return e.bolditalic}return e.italic}else if(t.weight==="bold"){return e.bold}return e.regular}function c(t,e=false){let s=null;if(t){const e=(0,n.stripQuotes)(t.typeface);const r=t[i.$globalData].fontFinder.find(e);s=a(t,r)}if(!s){return{lineHeight:12,lineGap:2,lineNoGap:10}}const r=t.size||10;const o=s.lineHeight?Math.max(e?0:1.2,s.lineHeight):1.2;const c=s.lineGap===undefined?.2:s.lineGap;return{lineHeight:o*r,lineGap:c*r,lineNoGap:Math.max(1,o-c)*r}}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.TextMeasure=void 0;var i=s(85);const n=1.02;class r{constructor(t,e,s,n){this.lineHeight=s;this.paraMargin=e||{top:0,bottom:0,left:0,right:0};if(!t){[this.pdfFont,this.xfaFont]=this.defaultFont(n);return}this.xfaFont={typeface:t.typeface,posture:t.posture,weight:t.weight,size:t.size,letterSpacing:t.letterSpacing};const r=n.find(t.typeface);if(!r){[this.pdfFont,this.xfaFont]=this.defaultFont(n);return}this.pdfFont=(0,i.selectFont)(t,r);if(!this.pdfFont){[this.pdfFont,this.xfaFont]=this.defaultFont(n)}}defaultFont(t){const e=t.find("Helvetica",false)||t.find("Myriad Pro",false)||t.find("Arial",false)||t.getDefault();if(e?.regular){const t=e.regular;const s=t.cssFontInfo;const i={typeface:s.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0};return[t,i]}const s={typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0};return[null,s]}}class o{constructor(t,e,s,i){this.fontFinder=i;this.stack=[new r(t,e,s,i)]}pushData(t,e,s){const i=this.stack.at(-1);for(const e of["typeface","posture","weight","size","letterSpacing"]){if(!t[e]){t[e]=i.xfaFont[e]}}for(const t of["top","bottom","left","right"]){if(isNaN(e[t])){e[t]=i.paraMargin[t]}}const n=new r(t,e,s||i.lineHeight,this.fontFinder);if(!n.pdfFont){n.pdfFont=i.pdfFont}this.stack.push(n)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}class a{constructor(t,e,s,i){this.glyphs=[];this.fontSelector=new o(t,e,s,i);this.extraHeight=0}pushData(t,e,s){this.fontSelector.pushData(t,e,s)}popFont(t){return this.fontSelector.popFont()}addPara(){const t=this.fontSelector.topFont();this.extraHeight+=t.paraMargin.top+t.paraMargin.bottom}addString(t){if(!t){return}const e=this.fontSelector.topFont();const s=e.xfaFont.size;if(e.pdfFont){const i=e.xfaFont.letterSpacing;const n=e.pdfFont;const r=n.lineHeight||1.2;const o=e.lineHeight||Math.max(1.2,r)*s;const a=n.lineGap===undefined?.2:n.lineGap;const c=r-a;const l=Math.max(1,c)*s;const h=s/1e3;const u=n.defaultWidth||n.charsToGlyphs(" ")[0].width;for(const e of t.split(/[\u2029\n]/)){const t=n.encodeString(e).join("");const s=n.charsToGlyphs(t);for(const t of s){const e=t.width||u;this.glyphs.push([e*h+i,o,l,t.unicode,false])}this.glyphs.push([0,0,0,"\n",true])}this.glyphs.pop();return}for(const e of t.split(/[\u2029\n]/)){for(const t of e.split("")){this.glyphs.push([s,1.2*s,s,t,false])}this.glyphs.push([0,0,0,"\n",true])}this.glyphs.pop()}compute(t){let e=-1,s=0,i=0,r=0,o=0,a=0;let c=false;let l=true;for(let n=0,h=this.glyphs.length;n<h;n++){const[h,u,f,d,p]=this.glyphs[n];const g=d===" ";const m=l?f:u;if(p){i=Math.max(i,o);o=0;r+=a;a=m;e=-1;s=0;l=false;continue}if(g){if(o+h>t){i=Math.max(i,o);o=0;r+=a;a=m;e=-1;s=0;c=true;l=false}else{a=Math.max(m,a);s=o;o+=h;e=n}continue}if(o+h>t){r+=a;a=m;if(e!==-1){n=e;i=Math.max(i,s);o=0;e=-1;s=0}else{i=Math.max(i,o);o=h}c=true;l=false;continue}o+=h;a=Math.max(m,a)}i=Math.max(i,o);r+=a+this.extraHeight;return{width:n*i,height:r,isBroken:c}}}e.TextMeasure=a},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.XmlObject=e.XFAObjectArray=e.XFAObject=e.XFAAttribute=e.StringObject=e.OptionObject=e.Option10=e.Option01=e.IntegerObject=e.ContentObject=void 0;var i=s(78);var n=s(84);var r=s(2);var o=s(3);var a=s(81);var c=s(88);const l=Symbol();const h=Symbol();const u=Symbol();const f=Symbol("_children");const d=Symbol();const p=Symbol();const g=Symbol();const m=Symbol();const w=Symbol();const b=Symbol();const y=Symbol();const A=Symbol();const v=Symbol();const x=Symbol("parent");const k=Symbol();const S=Symbol();const M=Symbol();let C=0;const _=a.NamespaceIds.datasets.id;class I{constructor(t,e,s=false){this[i.$namespaceId]=t;this[i.$nodeName]=e;this[y]=s;this[x]=null;this[f]=[];this[i.$uid]=`${e}${C++}`;this[i.$globalData]=null}get isXFAObject(){return true}get isXFAObjectArray(){return false}createNodes(t){let e=this,s=null;for(const{name:n,index:r}of t){for(let t=0,o=isFinite(r)?r:0;t<=o;t++){const t=e[i.$namespaceId]===_?-1:e[i.$namespaceId];s=new E(t,n);e[i.$appendChild](s)}e=s}return s}[i.$onChild](t){if(!this[y]||!this[i.$onChildCheck](t)){return false}const e=t[i.$nodeName];const s=this[e];if(s instanceof F){if(s.push(t)){this[i.$appendChild](t);return true}}else{if(s!==null){this[i.$removeChild](s)}this[e]=t;this[i.$appendChild](t);return true}let n="";if(this.id){n=` (id: ${this.id})`}else if(this.name){n=` (name: ${this.name} ${this.h.value})`}(0,r.warn)(`XFA - node "${this[i.$nodeName]}"${n} has already enough "${e}"!`);return false}[i.$onChildCheck](t){return this.hasOwnProperty(t[i.$nodeName])&&t[i.$namespaceId]===this[i.$namespaceId]}[i.$isNsAgnostic](){return false}[i.$acceptWhitespace](){return false}[i.$isCDATAXml](){return false}[i.$isBindable](){return false}[i.$popPara](){if(this.para){this[i.$getTemplateRoot]()[i.$extra].paraStack.pop()}}[i.$pushPara](){this[i.$getTemplateRoot]()[i.$extra].paraStack.push(this.para)}[i.$setId](t){if(this.id&&this[i.$namespaceId]===a.NamespaceIds.template.id){t.set(this.id,this)}}[i.$getTemplateRoot](){return this[i.$globalData].template}[i.$isSplittable](){return false}[i.$isThereMoreWidth](){return false}[i.$appendChild](t){t[x]=this;this[f].push(t);if(!t[i.$globalData]&&this[i.$globalData]){t[i.$globalData]=this[i.$globalData]}}[i.$removeChild](t){const e=this[f].indexOf(t);this[f].splice(e,1)}[i.$hasSettableValue](){return this.hasOwnProperty("value")}[i.$setValue](t){}[i.$onText](t){}[i.$finalize](){}[i.$clean](t){delete this[y];if(this[i.$cleanup]){t.clean(this[i.$cleanup]);delete this[i.$cleanup]}}[i.$indexOf](t){return this[f].indexOf(t)}[i.$insertAt](t,e){e[x]=this;this[f].splice(t,0,e);if(!e[i.$globalData]&&this[i.$globalData]){e[i.$globalData]=this[i.$globalData]}}[i.$isTransparent](){return!this.name}[i.$lastAttribute](){return""}[i.$text](){if(this[f].length===0){return this[i.$content]}return this[f].map((t=>t[i.$text]())).join("")}get[u](){const t=Object.getPrototypeOf(this);if(!t._attributes){const e=t._attributes=new Set;for(const t of Object.getOwnPropertyNames(this)){if(this[t]===null||this[t]instanceof I||this[t]instanceof F){break}e.add(t)}}return(0,r.shadow)(this,u,t._attributes)}[i.$isDescendent](t){let e=this;while(e){if(e===t){return true}e=e[i.$getParent]()}return false}[i.$getParent](){return this[x]}[i.$getSubformParent](){return this[i.$getParent]()}[i.$getChildren](t=null){if(!t){return this[f]}return this[t]}[i.$dump](){const t=Object.create(null);if(this[i.$content]){t.$content=this[i.$content]}for(const e of Object.getOwnPropertyNames(this)){const s=this[e];if(s===null){continue}if(s instanceof I){t[e]=s[i.$dump]()}else if(s instanceof F){if(!s.isEmpty()){t[e]=s.dump()}}else{t[e]=s}}return t}[i.$toStyle](){return null}[i.$toHTML](){return n.HTMLResult.EMPTY}*[i.$getContainedChildren](){for(const t of this[i.$getChildren]()){yield t}}*[m](t,e){for(const s of this[i.$getContainedChildren]()){if(!t||e===t.has(s[i.$nodeName])){const t=this[i.$getAvailableSpace]();const e=s[i.$toHTML](t);if(!e.success){this[i.$extra].failingNode=s}yield e}}}[i.$flushHTML](){return null}[i.$addHTML](t,e){this[i.$extra].children.push(t)}[i.$getAvailableSpace](){}[i.$childrenToHTML]({filter:t=null,include:e=true}){if(!this[i.$extra].generator){this[i.$extra].generator=this[m](t,e)}else{const t=this[i.$getAvailableSpace]();const e=this[i.$extra].failingNode[i.$toHTML](t);if(!e.success){return e}if(e.html){this[i.$addHTML](e.html,e.bbox)}delete this[i.$extra].failingNode}while(true){const t=this[i.$extra].generator.next();if(t.done){break}const e=t.value;if(!e.success){return e}if(e.html){this[i.$addHTML](e.html,e.bbox)}}this[i.$extra].generator=null;return n.HTMLResult.EMPTY}[i.$setSetAttributes](t){this[S]=new Set(Object.keys(t))}[b](t){const e=this[u];const s=this[S];return[...t].filter((t=>e.has(t)&&!s.has(t)))}[i.$resolvePrototypes](t,e=new Set){for(const s of this[f]){s[k](t,e)}}[k](t,e){const s=this[w](t,e);if(s){this[l](s,t,e)}else{this[i.$resolvePrototypes](t,e)}}[w](t,e){const{use:s,usehref:n}=this;if(!s&&!n){return null}let o=null;let a=null;let h=null;let u=s;if(n){u=n;if(n.startsWith("#som(")&&n.endsWith(")")){a=n.slice("#som(".length,-1)}else if(n.startsWith(".#som(")&&n.endsWith(")")){a=n.slice(".#som(".length,-1)}else if(n.startsWith("#")){h=n.slice(1)}else if(n.startsWith(".#")){h=n.slice(2)}}else if(s.startsWith("#")){h=s.slice(1)}else{a=s}this.use=this.usehref="";if(h){o=t.get(h)}else{o=(0,c.searchNode)(t.get(i.$root),this,a,true,false);if(o){o=o[0]}}if(!o){(0,r.warn)(`XFA - Invalid prototype reference: ${u}.`);return null}if(o[i.$nodeName]!==this[i.$nodeName]){(0,r.warn)(`XFA - Incompatible prototype: ${o[i.$nodeName]} !== ${this[i.$nodeName]}.`);return null}if(e.has(o)){(0,r.warn)(`XFA - Cycle detected in prototypes use.`);return null}e.add(o);const f=o[w](t,e);if(f){o[l](f,t,e)}o[i.$resolvePrototypes](t,e);e.delete(o);return o}[l](t,e,s){if(s.has(t)){(0,r.warn)(`XFA - Cycle detected in prototypes use.`);return}if(!this[i.$content]&&t[i.$content]){this[i.$content]=t[i.$content]}const n=new Set(s);n.add(t);for(const e of this[b](t[S])){this[e]=t[e];if(this[S]){this[S].add(e)}}for(const n of Object.getOwnPropertyNames(this)){if(this[u].has(n)){continue}const r=this[n];const o=t[n];if(r instanceof F){for(const t of r[f]){t[k](e,s)}for(let n=r[f].length,a=o[f].length;n<a;n++){const o=t[f][n][i.$clone]();if(r.push(o)){o[x]=this;this[f].push(o);o[k](e,s)}else{break}}continue}if(r!==null){r[i.$resolvePrototypes](e,s);if(o){r[l](o,e,s)}continue}if(o!==null){const t=o[i.$clone]();t[x]=this;this[n]=t;this[f].push(t);t[k](e,s)}}}static[d](t){if(Array.isArray(t)){return t.map((t=>I[d](t)))}if(typeof t==="object"&&t!==null){return Object.assign({},t)}return t}[i.$clone](){const t=Object.create(Object.getPrototypeOf(this));for(const e of Object.getOwnPropertySymbols(this)){try{t[e]=this[e]}catch{(0,r.shadow)(t,e,this[e])}}t[i.$uid]=`${t[i.$nodeName]}${C++}`;t[f]=[];for(const e of Object.getOwnPropertyNames(this)){if(this[u].has(e)){t[e]=I[d](this[e]);continue}const s=this[e];t[e]=s instanceof F?new F(s[A]):null}for(const e of this[f]){const s=e[i.$nodeName];const n=e[i.$clone]();t[f].push(n);n[x]=t;if(t[s]===null){t[s]=n}else{t[s][f].push(n)}}return t}[i.$getChildren](t=null){if(!t){return this[f]}return this[f].filter((e=>e[i.$nodeName]===t))}[i.$getChildrenByClass](t){return this[t]}[i.$getChildrenByName](t,e,s=true){return Array.from(this[i.$getChildrenByNameIt](t,e,s))}*[i.$getChildrenByNameIt](t,e,s=true){if(t==="parent"){yield this[x];return}for(const s of this[f]){if(s[i.$nodeName]===t){yield s}if(s.name===t){yield s}if(e||s[i.$isTransparent]()){yield*s[i.$getChildrenByNameIt](t,e,false)}}if(s&&this[u].has(t)){yield new O(this,t,this[t])}}}e.XFAObject=I;class F{constructor(t=Infinity){this[A]=t;this[f]=[]}get isXFAObject(){return false}get isXFAObjectArray(){return true}push(t){const e=this[f].length;if(e<=this[A]){this[f].push(t);return true}(0,r.warn)(`XFA - node "${t[i.$nodeName]}" accepts no more than ${this[A]} children`);return false}isEmpty(){return this[f].length===0}dump(){return this[f].length===1?this[f][0][i.$dump]():this[f].map((t=>t[i.$dump]()))}[i.$clone](){const t=new F(this[A]);t[f]=this[f].map((t=>t[i.$clone]()));return t}get children(){return this[f]}clear(){this[f].length=0}}e.XFAObjectArray=F;class O{constructor(t,e,s){this[x]=t;this[i.$nodeName]=e;this[i.$content]=s;this[i.$consumed]=false;this[i.$uid]=`attribute${C++}`}[i.$getParent](){return this[x]}[i.$isDataValue](){return true}[i.$getDataValue](){return this[i.$content].trim()}[i.$setValue](t){t=t.value||"";this[i.$content]=t.toString()}[i.$text](){return this[i.$content]}[i.$isDescendent](t){return this[x]===t||this[x][i.$isDescendent](t)}}e.XFAAttribute=O;class E extends I{constructor(t,e,s={}){super(t,e);this[i.$content]="";this[p]=null;if(e!=="#text"){const t=new Map;this[h]=t;for(const[e,i]of Object.entries(s)){t.set(e,new O(this,e,i))}if(s.hasOwnProperty(i.$nsAttributes)){const t=s[i.$nsAttributes].xfa.dataNode;if(t!==undefined){if(t==="dataGroup"){this[p]=false}else if(t==="dataValue"){this[p]=true}}}}this[i.$consumed]=false}[i.$toString](t){const e=this[i.$nodeName];if(e==="#text"){t.push((0,o.encodeToXmlString)(this[i.$content]));return}const s=(0,r.utf8StringToString)(e);const n=this[i.$namespaceId]===_?"xfa:":"";t.push(`<${n}${s}`);for(const[e,s]of this[h].entries()){const n=(0,r.utf8StringToString)(e);t.push(` ${n}="${(0,o.encodeToXmlString)(s[i.$content])}"`)}if(this[p]!==null){if(this[p]){t.push(` xfa:dataNode="dataValue"`)}else{t.push(` xfa:dataNode="dataGroup"`)}}if(!this[i.$content]&&this[f].length===0){t.push("/>");return}t.push(">");if(this[i.$content]){if(typeof this[i.$content]==="string"){t.push((0,o.encodeToXmlString)(this[i.$content]))}else{this[i.$content][i.$toString](t)}}else{for(const e of this[f]){e[i.$toString](t)}}t.push(`</${n}${s}>`)}[i.$onChild](t){if(this[i.$content]){const t=new E(this[i.$namespaceId],"#text");this[i.$appendChild](t);t[i.$content]=this[i.$content];this[i.$content]=""}this[i.$appendChild](t);return true}[i.$onText](t){this[i.$content]+=t}[i.$finalize](){if(this[i.$content]&&this[f].length>0){const t=new E(this[i.$namespaceId],"#text");this[i.$appendChild](t);t[i.$content]=this[i.$content];delete this[i.$content]}}[i.$toHTML](){if(this[i.$nodeName]==="#text"){return n.HTMLResult.success({name:"#text",value:this[i.$content]})}return n.HTMLResult.EMPTY}[i.$getChildren](t=null){if(!t){return this[f]}return this[f].filter((e=>e[i.$nodeName]===t))}[i.$getAttributes](){return this[h]}[i.$getChildrenByClass](t){const e=this[h].get(t);if(e!==undefined){return e}return this[i.$getChildren](t)}*[i.$getChildrenByNameIt](t,e){const s=this[h].get(t);if(s){yield s}for(const s of this[f]){if(s[i.$nodeName]===t){yield s}if(e){yield*s[i.$getChildrenByNameIt](t,e)}}}*[i.$getAttributeIt](t,e){const s=this[h].get(t);if(s&&(!e||!s[i.$consumed])){yield s}for(const s of this[f]){yield*s[i.$getAttributeIt](t,e)}}*[i.$getRealChildrenByNameIt](t,e,s){for(const n of this[f]){if(n[i.$nodeName]===t&&(!s||!n[i.$consumed])){yield n}if(e){yield*n[i.$getRealChildrenByNameIt](t,e,s)}}}[i.$isDataValue](){if(this[p]===null){return this[f].length===0||this[f][0][i.$namespaceId]===a.NamespaceIds.xhtml.id}return this[p]}[i.$getDataValue](){if(this[p]===null){if(this[f].length===0){return this[i.$content].trim()}if(this[f][0][i.$namespaceId]===a.NamespaceIds.xhtml.id){return this[f][0][i.$text]().trim()}return null}return this[i.$content].trim()}[i.$setValue](t){t=t.value||"";this[i.$content]=t.toString()}[i.$dump](t=false){const e=Object.create(null);if(t){e.$ns=this[i.$namespaceId]}if(this[i.$content]){e.$content=this[i.$content]}e.$name=this[i.$nodeName];e.children=[];for(const s of this[f]){e.children.push(s[i.$dump](t))}e.attributes=Object.create(null);for(const[t,s]of this[h]){e.attributes[t]=s[i.$content]}return e}}e.XmlObject=E;class T extends I{constructor(t,e){super(t,e);this[i.$content]=""}[i.$onText](t){this[i.$content]+=t}[i.$finalize](){}}e.ContentObject=T;class D extends T{constructor(t,e,s){super(t,e);this[v]=s}[i.$finalize](){this[i.$content]=(0,n.getKeyword)({data:this[i.$content],defaultValue:this[v][0],validate:t=>this[v].includes(t)})}[i.$clean](t){super[i.$clean](t);delete this[v]}}e.OptionObject=D;class P extends T{[i.$finalize](){this[i.$content]=this[i.$content].trim()}}e.StringObject=P;class R extends T{constructor(t,e,s,i){super(t,e);this[g]=s;this[M]=i}[i.$finalize](){this[i.$content]=(0,n.getInteger)({data:this[i.$content],defaultValue:this[g],validate:this[M]})}[i.$clean](t){super[i.$clean](t);delete this[g];delete this[M]}}e.IntegerObject=R;class N extends R{constructor(t,e){super(t,e,0,(t=>t===1))}}e.Option01=N;class L extends R{constructor(t,e){super(t,e,1,(t=>t===0))}}e.Option10=L},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.createDataNode=d;e.searchNode=f;var i=s(78);var n=s(2);const r=/^[^.[]+/;const o=/^[^\]]+/;const a={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4};const c=new Map([["$data",(t,e)=>t.datasets?t.datasets.data:t],["$record",(t,e)=>(t.datasets?t.datasets.data:t)[i.$getChildren]()[0]],["$template",(t,e)=>t.template],["$connectionSet",(t,e)=>t.connectionSet],["$form",(t,e)=>t.form],["$layout",(t,e)=>t.layout],["$host",(t,e)=>t.host],["$dataWindow",(t,e)=>t.dataWindow],["$event",(t,e)=>t.event],["!",(t,e)=>t.datasets],["$xfa",(t,e)=>t],["xfa",(t,e)=>t],["$",(t,e)=>e]]);const l=new WeakMap;function h(t){t=t.trim();if(t==="*"){return Infinity}return parseInt(t,10)||0}function u(t,e,s=true){let i=t.match(r);if(!i){return null}let[c]=i;const l=[{name:c,cacheName:"."+c,index:0,js:null,formCalc:null,operator:a.dot}];let u=c.length;while(u<t.length){const f=u;const d=t.charAt(u++);if(d==="["){i=t.slice(u).match(o);if(!i){(0,n.warn)("XFA - Invalid index in SOM expression");return null}l.at(-1).index=h(i[0]);u+=i[0].length+1;continue}let p;switch(t.charAt(u)){case".":if(!e){return null}u++;p=a.dotDot;break;case"#":u++;p=a.dotHash;break;case"[":if(s){(0,n.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now.");return null}p=a.dotBracket;break;case"(":if(s){(0,n.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now.");return null}p=a.dotParen;break;default:p=a.dot;break}i=t.slice(u).match(r);if(!i){break}[c]=i;u+=c.length;l.push({name:c,cacheName:t.slice(f,u),operator:p,index:0,js:null,formCalc:null})}return l}function f(t,e,s,n=true,r=true){const o=u(s,n);if(!o){return null}const h=c.get(o[0].name);let f=0;let d;if(h){d=true;t=[h(t,e)];f=1}else{d=e===null;t=[e||t]}for(let s=o.length;f<s;f++){const{name:s,cacheName:n,operator:c,index:h}=o[f];const u=[];for(const e of t){if(!e.isXFAObject){continue}let t,o;if(r){o=l.get(e);if(!o){o=new Map;l.set(e,o)}t=o.get(n)}if(!t){switch(c){case a.dot:t=e[i.$getChildrenByName](s,false);break;case a.dotDot:t=e[i.$getChildrenByName](s,true);break;case a.dotHash:t=e[i.$getChildrenByClass](s);t=t.isXFAObjectArray?t.children:[t];break}if(r){o.set(n,t)}}if(t.length>0){u.push(t)}}if(u.length===0&&!d&&f===0){const s=e[i.$getParent]();e=s;if(!e){return null}f=-1;t=[e];continue}t=isFinite(h)?u.filter((t=>h<t.length)).map((t=>t[h])):u.flat()}if(t.length===0){return null}return t}function d(t,e,s){const r=u(s);if(!r){return null}if(r.some((t=>t.operator===a.dotDot))){return null}const o=c.get(r[0].name);let l=0;if(o){t=o(t,e);l=1}else{t=e||t}for(let e=r.length;l<e;l++){const{name:e,operator:s,index:o}=r[l];if(!isFinite(o)){r[l].index=0;return t.createNodes(r.slice(l))}let c;switch(s){case a.dot:c=t[i.$getChildrenByName](e,false);break;case a.dotDot:c=t[i.$getChildrenByName](e,true);break;case a.dotHash:c=t[i.$getChildrenByClass](e);c=c.isXFAObjectArray?c.children:[c];break}if(c.length===0){return t.createNodes(r.slice(l))}if(o<c.length){const e=c[o];if(!e.isXFAObject){(0,n.warn)(`XFA - Cannot create a node.`);return null}t=e}else{r[l].index=o-c.length;return t.createNodes(r.slice(l))}}return null}},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.DataHandler=void 0;var i=s(78);class n{constructor(t,e){this.data=e;this.dataset=t.datasets||null}serialize(t){const e=[[-1,this.data[i.$getChildren]()]];while(e.length>0){const s=e.at(-1);const[n,r]=s;if(n+1===r.length){e.pop();continue}const o=r[++s[0]];const a=t.get(o[i.$uid]);if(a){o[i.$setValue](a)}else{const e=o[i.$getAttributes]();for(const s of e.values()){const e=t.get(s[i.$uid]);if(e){s[i.$setValue](e);break}}}const c=o[i.$getChildren]();if(c.length>0){e.push([-1,c])}}const s=[`<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">`];if(this.dataset){for(const t of this.dataset[i.$getChildren]()){if(t[i.$nodeName]!=="data"){t[i.$toString](s)}}}this.data[i.$toString](s);s.push("</xfa:datasets>");return s.join("")}}e.DataHandler=n},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.XFAParser=void 0;var i=s(78);var n=s(71);var r=s(91);var o=s(2);class a extends n.XMLParserBase{constructor(t=null,e=false){super();this._builder=new r.Builder(t);this._stack=[];this._globalData={usedTypefaces:new Set};this._ids=new Map;this._current=this._builder.buildRoot(this._ids);this._errorCode=n.XMLParserErrorCode.NoError;this._whiteRegex=/^\s+$/;this._nbsps=/\xa0+/g;this._richText=e}parse(t){this.parseXml(t);if(this._errorCode!==n.XMLParserErrorCode.NoError){return undefined}this._current[i.$finalize]();return this._current.element}onText(t){t=t.replace(this._nbsps,(t=>t.slice(1)+" "));if(this._richText||this._current[i.$acceptWhitespace]()){this._current[i.$onText](t,this._richText);return}if(this._whiteRegex.test(t)){return}this._current[i.$onText](t.trim())}onCdata(t){this._current[i.$onText](t)}_mkAttributes(t,e){let s=null;let n=null;const r=Object.create({});for(const{name:a,value:c}of t){if(a==="xmlns"){if(!s){s=c}else{(0,o.warn)(`XFA - multiple namespace definition in <${e}>`)}}else if(a.startsWith("xmlns:")){const t=a.substring("xmlns:".length);if(!n){n=[]}n.push({prefix:t,value:c})}else{const t=a.indexOf(":");if(t===-1){r[a]=c}else{let e=r[i.$nsAttributes];if(!e){e=r[i.$nsAttributes]=Object.create(null)}const[s,n]=[a.slice(0,t),a.slice(t+1)];const o=e[s]||=Object.create(null);o[n]=c}}}return[s,n,r]}_getNameAndPrefix(t,e){const s=t.indexOf(":");if(s===-1){return[t,null]}return[t.substring(s+1),e?"":t.substring(0,s)]}onBeginElement(t,e,s){const[n,r,o]=this._mkAttributes(e,t);const[a,c]=this._getNameAndPrefix(t,this._builder.isNsAgnostic());const l=this._builder.build({nsPrefix:c,name:a,attributes:o,namespace:n,prefixes:r});l[i.$globalData]=this._globalData;if(s){l[i.$finalize]();if(this._current[i.$onChild](l)){l[i.$setId](this._ids)}l[i.$clean](this._builder);return}this._stack.push(this._current);this._current=l}onEndElement(t){const e=this._current;if(e[i.$isCDATAXml]()&&typeof e[i.$content]==="string"){const t=new a;t._globalData=this._globalData;const s=t.parse(e[i.$content]);e[i.$content]=null;e[i.$onChild](s)}e[i.$finalize]();this._current=this._stack.pop();if(this._current[i.$onChild](e)){e[i.$setId](this._ids)}e[i.$clean](this._builder)}onError(t){this._errorCode=t}}e.XFAParser=a},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.Builder=void 0;var i=s(81);var n=s(78);var r=s(92);var o=s(80);var a=s(101);var c=s(2);var l=s(87);class h extends l.XFAObject{constructor(t){super(-1,"root",Object.create(null));this.element=null;this[n.$ids]=t}[n.$onChild](t){this.element=t;return true}[n.$finalize](){super[n.$finalize]();if(this.element.template instanceof o.Template){this[n.$ids].set(n.$root,this.element);this.element.template[n.$resolvePrototypes](this[n.$ids]);this.element.template[n.$ids]=this[n.$ids]}}}class u extends l.XFAObject{constructor(){super(-1,"",Object.create(null))}[n.$onChild](t){return false}}class f{constructor(t=null){this._namespaceStack=[];this._nsAgnosticLevel=0;this._namespacePrefixes=new Map;this._namespaces=new Map;this._nextNsId=Math.max(...Object.values(i.NamespaceIds).map((({id:t})=>t)));this._currentNamespace=t||new a.UnknownNamespace(++this._nextNsId)}buildRoot(t){return new h(t)}build({nsPrefix:t,name:e,attributes:s,namespace:o,prefixes:a}){const c=o!==null;if(c){this._namespaceStack.push(this._currentNamespace);this._currentNamespace=this._searchNamespace(o)}if(a){this._addNamespacePrefix(a)}if(s.hasOwnProperty(n.$nsAttributes)){const t=r.NamespaceSetUp.datasets;const e=s[n.$nsAttributes];let i=null;for(const[s,n]of Object.entries(e)){const e=this._getNamespaceToUse(s);if(e===t){i={xfa:n};break}}if(i){s[n.$nsAttributes]=i}else{delete s[n.$nsAttributes]}}const l=this._getNamespaceToUse(t);const h=l?.[i.$buildXFAObject](e,s)||new u;if(h[n.$isNsAgnostic]()){this._nsAgnosticLevel++}if(c||a||h[n.$isNsAgnostic]()){h[n.$cleanup]={hasNamespace:c,prefixes:a,nsAgnostic:h[n.$isNsAgnostic]()}}return h}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(t){let e=this._namespaces.get(t);if(e){return e}for(const[s,{check:n}]of Object.entries(i.NamespaceIds)){if(n(t)){e=r.NamespaceSetUp[s];if(e){this._namespaces.set(t,e);return e}break}}e=new a.UnknownNamespace(++this._nextNsId);this._namespaces.set(t,e);return e}_addNamespacePrefix(t){for(const{prefix:e,value:s}of t){const t=this._searchNamespace(s);let i=this._namespacePrefixes.get(e);if(!i){i=[];this._namespacePrefixes.set(e,i)}i.push(t)}}_getNamespaceToUse(t){if(!t){return this._currentNamespace}const e=this._namespacePrefixes.get(t);if(e?.length>0){return e.at(-1)}(0,c.warn)(`Unknown namespace prefix: ${t}.`);return null}clean(t){const{hasNamespace:e,prefixes:s,nsAgnostic:i}=t;if(e){this._currentNamespace=this._namespaceStack.pop()}if(s){s.forEach((({prefix:t})=>{this._namespacePrefixes.get(t).pop()}))}if(i){this._nsAgnosticLevel--}}}e.Builder=f},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.NamespaceSetUp=void 0;var i=s(93);var n=s(94);var r=s(95);var o=s(96);var a=s(97);var c=s(98);var l=s(80);var h=s(99);var u=s(100);const f={config:i.ConfigNamespace,connection:n.ConnectionSetNamespace,datasets:r.DatasetsNamespace,localeSet:o.LocaleSetNamespace,signature:a.SignatureNamespace,stylesheet:c.StylesheetNamespace,template:l.TemplateNamespace,xdp:h.XdpNamespace,xhtml:u.XhtmlNamespace};e.NamespaceSetUp=f},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.ConfigNamespace=void 0;var i=s(81);var n=s(78);var r=s(87);var o=s(84);var a=s(2);const c=i.NamespaceIds.config.id;class l extends r.XFAObject{constructor(t){super(c,"acrobat",true);this.acrobat7=null;this.autoSave=null;this.common=null;this.validate=null;this.validateApprovalSignatures=null;this.submitUrl=new r.XFAObjectArray}}class h extends r.XFAObject{constructor(t){super(c,"acrobat7",true);this.dynamicRender=null}}class u extends r.OptionObject{constructor(t){super(c,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class f extends r.OptionObject{constructor(t){super(c,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class d extends r.Option01{constructor(t){super(c,"addSilentPrint")}}class p extends r.Option01{constructor(t){super(c,"addViewerPreferences")}}class g extends r.Option10{constructor(t){super(c,"adjustData")}}class m extends r.IntegerObject{constructor(t){super(c,"adobeExtensionLevel",0,(t=>t>=1&&t<=8))}}class w extends r.XFAObject{constructor(t){super(c,"agent",true);this.name=t.name?t.name.trim():"";this.common=new r.XFAObjectArray}}class b extends r.ContentObject{constructor(t){super(c,"alwaysEmbed")}}class y extends r.StringObject{constructor(t){super(c,"amd")}}class A extends r.XFAObject{constructor(t){super(c,"area");this.level=(0,o.getInteger)({data:t.level,defaultValue:0,validate:t=>t>=1&&t<=3});this.name=(0,o.getStringOption)(t.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class v extends r.OptionObject{constructor(t){super(c,"attributes",["preserve","delegate","ignore"])}}class x extends r.OptionObject{constructor(t){super(c,"autoSave",["disabled","enabled"])}}class k extends r.StringObject{constructor(t){super(c,"base")}}class S extends r.XFAObject{constructor(t){super(c,"batchOutput");this.format=(0,o.getStringOption)(t.format,["none","concat","zip","zipCompress"])}}class M extends r.ContentObject{constructor(t){super(c,"behaviorOverride")}[n.$finalize](){this[n.$content]=new Map(this[n.$content].trim().split(/\s+/).filter((t=>t.includes(":"))).map((t=>t.split(":",2))))}}class C extends r.XFAObject{constructor(t){super(c,"cache",true);this.templateCache=null}}class _ extends r.Option01{constructor(t){super(c,"change")}}class I extends r.XFAObject{constructor(t){super(c,"common",true);this.data=null;this.locale=null;this.localeSet=null;this.messaging=null;this.suppressBanner=null;this.template=null;this.validationMessaging=null;this.versionControl=null;this.log=new r.XFAObjectArray}}class F extends r.XFAObject{constructor(t){super(c,"compress");this.scope=(0,o.getStringOption)(t.scope,["imageOnly","document"])}}class O extends r.Option01{constructor(t){super(c,"compressLogicalStructure")}}class E extends r.Option10{constructor(t){super(c,"compressObjectStream")}}class T extends r.XFAObject{constructor(t){super(c,"compression",true);this.compressLogicalStructure=null;this.compressObjectStream=null;this.level=null;this.type=null}}class D extends r.XFAObject{constructor(t){super(c,"config",true);this.acrobat=null;this.present=null;this.trace=null;this.agent=new r.XFAObjectArray}}class P extends r.OptionObject{constructor(t){super(c,"conformance",["A","B"])}}class R extends r.Option01{constructor(t){super(c,"contentCopy")}}class N extends r.IntegerObject{constructor(t){super(c,"copies",1,(t=>t>=1))}}class L extends r.StringObject{constructor(t){super(c,"creator")}}class B extends r.IntegerObject{constructor(t){super(c,"currentPage",0,(t=>t>=0))}}class $ extends r.XFAObject{constructor(t){super(c,"data",true);this.adjustData=null;this.attributes=null;this.incrementalLoad=null;this.outputXSL=null;this.range=null;this.record=null;this.startNode=null;this.uri=null;this.window=null;this.xsl=null;this.excludeNS=new r.XFAObjectArray;this.transform=new r.XFAObjectArray}}class U extends r.XFAObject{constructor(t){super(c,"debug",true);this.uri=null}}class j extends r.ContentObject{constructor(t){super(c,"defaultTypeface");this.writingScript=(0,o.getStringOption)(t.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class H extends r.OptionObject{constructor(t){super(c,"destination",["pdf","pcl","ps","webClient","zpl"])}}class G extends r.Option01{constructor(t){super(c,"documentAssembly")}}class q extends r.XFAObject{constructor(t){super(c,"driver",true);this.name=t.name?t.name.trim():"";this.fontInfo=null;this.xdc=null}}class X extends r.OptionObject{constructor(t){super(c,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class W extends r.OptionObject{constructor(t){super(c,"dynamicRender",["forbidden","required"])}}class z extends r.Option01{constructor(t){super(c,"embed")}}class V extends r.Option01{constructor(t){super(c,"encrypt")}}class K extends r.XFAObject{constructor(t){super(c,"encryption",true);this.encrypt=null;this.encryptionLevel=null;this.permissions=null}}class J extends r.OptionObject{constructor(t){super(c,"encryptionLevel",["40bit","128bit"])}}class Y extends r.StringObject{constructor(t){super(c,"enforce")}}class Q extends r.XFAObject{constructor(t){super(c,"equate");this.force=(0,o.getInteger)({data:t.force,defaultValue:1,validate:t=>t===0});this.from=t.from||"";this.to=t.to||""}}class Z extends r.XFAObject{constructor(t){super(c,"equateRange");this.from=t.from||"";this.to=t.to||"";this._unicodeRange=t.unicodeRange||""}get unicodeRange(){const t=[];const e=/U\+([0-9a-fA-F]+)/;const s=this._unicodeRange;for(let i of s.split(",").map((t=>t.trim())).filter((t=>!!t))){i=i.split("-",2).map((t=>{const s=t.match(e);if(!s){return 0}return parseInt(s[1],16)}));if(i.length===1){i.push(i[0])}t.push(i)}return(0,a.shadow)(this,"unicodeRange",t)}}class tt extends r.ContentObject{constructor(t){super(c,"exclude")}[n.$finalize](){this[n.$content]=this[n.$content].trim().split(/\s+/).filter((t=>t&&["calculate","close","enter","exit","initialize","ready","validate"].includes(t)))}}class et extends r.StringObject{constructor(t){super(c,"excludeNS")}}class st extends r.OptionObject{constructor(t){super(c,"flipLabel",["usePrinterSetting","on","off"])}}class it extends r.XFAObject{constructor(t){super(c,"fontInfo",true);this.embed=null;this.map=null;this.subsetBelow=null;this.alwaysEmbed=new r.XFAObjectArray;this.defaultTypeface=new r.XFAObjectArray;this.neverEmbed=new r.XFAObjectArray}}class nt extends r.Option01{constructor(t){super(c,"formFieldFilling")}}class rt extends r.StringObject{constructor(t){super(c,"groupParent")}}class ot extends r.OptionObject{constructor(t){super(c,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class at extends r.StringObject{constructor(t){super(c,"includeXDPContent")}}class ct extends r.OptionObject{constructor(t){super(c,"incrementalLoad",["none","forwardOnly"])}}class lt extends r.Option01{constructor(t){super(c,"incrementalMerge")}}class ht extends r.Option01{constructor(t){super(c,"interactive")}}class ut extends r.OptionObject{constructor(t){super(c,"jog",["usePrinterSetting","none","pageSet"])}}class ft extends r.XFAObject{constructor(t){super(c,"labelPrinter",true);this.name=(0,o.getStringOption)(t.name,["zpl","dpl","ipl","tcpl"]);this.batchOutput=null;this.flipLabel=null;this.fontInfo=null;this.xdc=null}}class dt extends r.OptionObject{constructor(t){super(c,"layout",["paginate","panel"])}}class pt extends r.IntegerObject{constructor(t){super(c,"level",0,(t=>t>0))}}class gt extends r.Option01{constructor(t){super(c,"linearized")}}class mt extends r.StringObject{constructor(t){super(c,"locale")}}class wt extends r.StringObject{constructor(t){super(c,"localeSet")}}class bt extends r.XFAObject{constructor(t){super(c,"log",true);this.mode=null;this.threshold=null;this.to=null;this.uri=null}}class yt extends r.XFAObject{constructor(t){super(c,"map",true);this.equate=new r.XFAObjectArray;this.equateRange=new r.XFAObjectArray}}class At extends r.XFAObject{constructor(t){super(c,"mediumInfo",true);this.map=null}}class vt extends r.XFAObject{constructor(t){super(c,"message",true);this.msgId=null;this.severity=null}}class xt extends r.XFAObject{constructor(t){super(c,"messaging",true);this.message=new r.XFAObjectArray}}class kt extends r.OptionObject{constructor(t){super(c,"mode",["append","overwrite"])}}class St extends r.Option01{constructor(t){super(c,"modifyAnnots")}}class Mt extends r.IntegerObject{constructor(t){super(c,"msgId",1,(t=>t>=1))}}class Ct extends r.StringObject{constructor(t){super(c,"nameAttr")}}class _t extends r.ContentObject{constructor(t){super(c,"neverEmbed")}}class It extends r.IntegerObject{constructor(t){super(c,"numberOfCopies",null,(t=>t>=2&&t<=5))}}class Ft extends r.XFAObject{constructor(t){super(c,"openAction",true);this.destination=null}}class Ot extends r.XFAObject{constructor(t){super(c,"output",true);this.to=null;this.type=null;this.uri=null}}class Et extends r.StringObject{constructor(t){super(c,"outputBin")}}class Tt extends r.XFAObject{constructor(t){super(c,"outputXSL",true);this.uri=null}}class Dt extends r.OptionObject{constructor(t){super(c,"overprint",["none","both","draw","field"])}}class Pt extends r.StringObject{constructor(t){super(c,"packets")}[n.$finalize](){if(this[n.$content]==="*"){return}this[n.$content]=this[n.$content].trim().split(/\s+/).filter((t=>["config","datasets","template","xfdf","xslt"].includes(t)))}}class Rt extends r.XFAObject{constructor(t){super(c,"pageOffset");this.x=(0,o.getInteger)({data:t.x,defaultValue:"useXDCSetting",validate:t=>true});this.y=(0,o.getInteger)({data:t.y,defaultValue:"useXDCSetting",validate:t=>true})}}class Nt extends r.StringObject{constructor(t){super(c,"pageRange")}[n.$finalize](){const t=this[n.$content].trim().split(/\s+/).map((t=>parseInt(t,10)));const e=[];for(let s=0,i=t.length;s<i;s+=2){e.push(t.slice(s,s+2))}this[n.$content]=e}}class Lt extends r.OptionObject{constructor(t){super(c,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}}class Bt extends r.OptionObject{constructor(t){super(c,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}}class $t extends r.IntegerObject{constructor(t){super(c,"part",1,(t=>false))}}class Ut extends r.XFAObject{constructor(t){super(c,"pcl",true);this.name=t.name||"";this.batchOutput=null;this.fontInfo=null;this.jog=null;this.mediumInfo=null;this.outputBin=null;this.pageOffset=null;this.staple=null;this.xdc=null}}class jt extends r.XFAObject{constructor(t){super(c,"pdf",true);this.name=t.name||"";this.adobeExtensionLevel=null;this.batchOutput=null;this.compression=null;this.creator=null;this.encryption=null;this.fontInfo=null;this.interactive=null;this.linearized=null;this.openAction=null;this.pdfa=null;this.producer=null;this.renderPolicy=null;this.scriptModel=null;this.silentPrint=null;this.submitFormat=null;this.tagged=null;this.version=null;this.viewerPreferences=null;this.xdc=null}}class Ht extends r.XFAObject{constructor(t){super(c,"pdfa",true);this.amd=null;this.conformance=null;this.includeXDPContent=null;this.part=null}}class Gt extends r.XFAObject{constructor(t){super(c,"permissions",true);this.accessibleContent=null;this.change=null;this.contentCopy=null;this.documentAssembly=null;this.formFieldFilling=null;this.modifyAnnots=null;this.plaintextMetadata=null;this.print=null;this.printHighQuality=null}}class qt extends r.Option01{constructor(t){super(c,"pickTrayByPDFSize")}}class Xt extends r.StringObject{constructor(t){super(c,"picture")}}class Wt extends r.Option01{constructor(t){super(c,"plaintextMetadata")}}class zt extends r.OptionObject{constructor(t){super(c,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class Vt extends r.XFAObject{constructor(t){super(c,"present",true);this.behaviorOverride=null;this.cache=null;this.common=null;this.copies=null;this.destination=null;this.incrementalMerge=null;this.layout=null;this.output=null;this.overprint=null;this.pagination=null;this.paginationOverride=null;this.script=null;this.validate=null;this.xdp=null;this.driver=new r.XFAObjectArray;this.labelPrinter=new r.XFAObjectArray;this.pcl=new r.XFAObjectArray;this.pdf=new r.XFAObjectArray;this.ps=new r.XFAObjectArray;this.submitUrl=new r.XFAObjectArray;this.webClient=new r.XFAObjectArray;this.zpl=new r.XFAObjectArray}}class Kt extends r.Option01{constructor(t){super(c,"print")}}class Jt extends r.Option01{constructor(t){super(c,"printHighQuality")}}class Yt extends r.OptionObject{constructor(t){super(c,"printScaling",["appdefault","noScaling"])}}class Qt extends r.StringObject{constructor(t){super(c,"printerName")}}class Zt extends r.StringObject{constructor(t){super(c,"producer")}}class te extends r.XFAObject{constructor(t){super(c,"ps",true);this.name=t.name||"";this.batchOutput=null;this.fontInfo=null;this.jog=null;this.mediumInfo=null;this.outputBin=null;this.staple=null;this.xdc=null}}class ee extends r.ContentObject{constructor(t){super(c,"range")}[n.$finalize](){this[n.$content]=this[n.$content].trim().split(/\s*,\s*/,2).map((t=>t.split("-").map((t=>parseInt(t.trim(),10))))).filter((t=>t.every((t=>!isNaN(t))))).map((t=>{if(t.length===1){t.push(t[0])}return t}))}}class se extends r.ContentObject{constructor(t){super(c,"record")}[n.$finalize](){this[n.$content]=this[n.$content].trim();const t=parseInt(this[n.$content],10);if(!isNaN(t)&&t>=0){this[n.$content]=t}}}class ie extends r.ContentObject{constructor(t){super(c,"relevant")}[n.$finalize](){this[n.$content]=this[n.$content].trim().split(/\s+/)}}class ne extends r.ContentObject{constructor(t){super(c,"rename")}[n.$finalize](){this[n.$content]=this[n.$content].trim();if(this[n.$content].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[n.$content])){(0,a.warn)("XFA - Rename: invalid XFA name")}}}class re extends r.OptionObject{constructor(t){super(c,"renderPolicy",["server","client"])}}class oe extends r.OptionObject{constructor(t){super(c,"runScripts",["both","client","none","server"])}}class ae extends r.XFAObject{constructor(t){super(c,"script",true);this.currentPage=null;this.exclude=null;this.runScripts=null}}class ce extends r.OptionObject{constructor(t){super(c,"scriptModel",["XFA","none"])}}class le extends r.OptionObject{constructor(t){super(c,"severity",["ignore","error","information","trace","warning"])}}class he extends r.XFAObject{constructor(t){super(c,"silentPrint",true);this.addSilentPrint=null;this.printerName=null}}class ue extends r.XFAObject{constructor(t){super(c,"staple");this.mode=(0,o.getStringOption)(t.mode,["usePrinterSetting","on","off"])}}class fe extends r.StringObject{constructor(t){super(c,"startNode")}}class de extends r.IntegerObject{constructor(t){super(c,"startPage",0,(t=>true))}}class pe extends r.OptionObject{constructor(t){super(c,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class ge extends r.StringObject{constructor(t){super(c,"submitUrl")}}class me extends r.IntegerObject{constructor(t){super(c,"subsetBelow",100,(t=>t>=0&&t<=100))}}class we extends r.Option01{constructor(t){super(c,"suppressBanner")}}class be extends r.Option01{constructor(t){super(c,"tagged")}}class ye extends r.XFAObject{constructor(t){super(c,"template",true);this.base=null;this.relevant=null;this.startPage=null;this.uri=null;this.xsl=null}}class Ae extends r.OptionObject{constructor(t){super(c,"threshold",["trace","error","information","warning"])}}class ve extends r.OptionObject{constructor(t){super(c,"to",["null","memory","stderr","stdout","system","uri"])}}class xe extends r.XFAObject{constructor(t){super(c,"templateCache");this.maxEntries=(0,o.getInteger)({data:t.maxEntries,defaultValue:5,validate:t=>t>=0})}}class ke extends r.XFAObject{constructor(t){super(c,"trace",true);this.area=new r.XFAObjectArray}}class Se extends r.XFAObject{constructor(t){super(c,"transform",true);this.groupParent=null;this.ifEmpty=null;this.nameAttr=null;this.picture=null;this.presence=null;this.rename=null;this.whitespace=null}}class Me extends r.OptionObject{constructor(t){super(c,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class Ce extends r.StringObject{constructor(t){super(c,"uri")}}class _e extends r.OptionObject{constructor(t){super(c,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class Ie extends r.ContentObject{constructor(t){super(c,"validateApprovalSignatures")}[n.$finalize](){this[n.$content]=this[n.$content].trim().split(/\s+/).filter((t=>["docReady","postSign"].includes(t)))}}class Fe extends r.OptionObject{constructor(t){super(c,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class Oe extends r.OptionObject{constructor(t){super(c,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class Ee extends r.XFAObject{constructor(t){super(c,"VersionControl");this.outputBelow=(0,o.getStringOption)(t.outputBelow,["warn","error","update"]);this.sourceAbove=(0,o.getStringOption)(t.sourceAbove,["warn","error"]);this.sourceBelow=(0,o.getStringOption)(t.sourceBelow,["update","maintain"])}}class Te extends r.XFAObject{constructor(t){super(c,"viewerPreferences",true);this.ADBE_JSConsole=null;this.ADBE_JSDebugger=null;this.addViewerPreferences=null;this.duplexOption=null;this.enforce=null;this.numberOfCopies=null;this.pageRange=null;this.pickTrayByPDFSize=null;this.printScaling=null}}class De extends r.XFAObject{constructor(t){super(c,"webClient",true);this.name=t.name?t.name.trim():"";this.fontInfo=null;this.xdc=null}}class Pe extends r.OptionObject{constructor(t){super(c,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class Re extends r.ContentObject{constructor(t){super(c,"window")}[n.$finalize](){const t=this[n.$content].trim().split(/\s*,\s*/,2).map((t=>parseInt(t,10)));if(t.some((t=>isNaN(t)))){this[n.$content]=[0,0];return}if(t.length===1){t.push(t[0])}this[n.$content]=t}}class Ne extends r.XFAObject{constructor(t){super(c,"xdc",true);this.uri=new r.XFAObjectArray;this.xsl=new r.XFAObjectArray}}class Le extends r.XFAObject{constructor(t){super(c,"xdp",true);this.packets=null}}class Be extends r.XFAObject{constructor(t){super(c,"xsl",true);this.debug=null;this.uri=null}}class $e extends r.XFAObject{constructor(t){super(c,"zpl",true);this.name=t.name?t.name.trim():"";this.batchOutput=null;this.flipLabel=null;this.fontInfo=null;this.xdc=null}}class Ue{static[i.$buildXFAObject](t,e){if(Ue.hasOwnProperty(t)){return Ue[t](e)}return undefined}static acrobat(t){return new l(t)}static acrobat7(t){return new h(t)}static ADBE_JSConsole(t){return new u(t)}static ADBE_JSDebugger(t){return new f(t)}static addSilentPrint(t){return new d(t)}static addViewerPreferences(t){return new p(t)}static adjustData(t){return new g(t)}static adobeExtensionLevel(t){return new m(t)}static agent(t){return new w(t)}static alwaysEmbed(t){return new b(t)}static amd(t){return new y(t)}static area(t){return new A(t)}static attributes(t){return new v(t)}static autoSave(t){return new x(t)}static base(t){return new k(t)}static batchOutput(t){return new S(t)}static behaviorOverride(t){return new M(t)}static cache(t){return new C(t)}static change(t){return new _(t)}static common(t){return new I(t)}static compress(t){return new F(t)}static compressLogicalStructure(t){return new O(t)}static compressObjectStream(t){return new E(t)}static compression(t){return new T(t)}static config(t){return new D(t)}static conformance(t){return new P(t)}static contentCopy(t){return new R(t)}static copies(t){return new N(t)}static creator(t){return new L(t)}static currentPage(t){return new B(t)}static data(t){return new $(t)}static debug(t){return new U(t)}static defaultTypeface(t){return new j(t)}static destination(t){return new H(t)}static documentAssembly(t){return new G(t)}static driver(t){return new q(t)}static duplexOption(t){return new X(t)}static dynamicRender(t){return new W(t)}static embed(t){return new z(t)}static encrypt(t){return new V(t)}static encryption(t){return new K(t)}static encryptionLevel(t){return new J(t)}static enforce(t){return new Y(t)}static equate(t){return new Q(t)}static equateRange(t){return new Z(t)}static exclude(t){return new tt(t)}static excludeNS(t){return new et(t)}static flipLabel(t){return new st(t)}static fontInfo(t){return new it(t)}static formFieldFilling(t){return new nt(t)}static groupParent(t){return new rt(t)}static ifEmpty(t){return new ot(t)}static includeXDPContent(t){return new at(t)}static incrementalLoad(t){return new ct(t)}static incrementalMerge(t){return new lt(t)}static interactive(t){return new ht(t)}static jog(t){return new ut(t)}static labelPrinter(t){return new ft(t)}static layout(t){return new dt(t)}static level(t){return new pt(t)}static linearized(t){return new gt(t)}static locale(t){return new mt(t)}static localeSet(t){return new wt(t)}static log(t){return new bt(t)}static map(t){return new yt(t)}static mediumInfo(t){return new At(t)}static message(t){return new vt(t)}static messaging(t){return new xt(t)}static mode(t){return new kt(t)}static modifyAnnots(t){return new St(t)}static msgId(t){return new Mt(t)}static nameAttr(t){return new Ct(t)}static neverEmbed(t){return new _t(t)}static numberOfCopies(t){return new It(t)}static openAction(t){return new Ft(t)}static output(t){return new Ot(t)}static outputBin(t){return new Et(t)}static outputXSL(t){return new Tt(t)}static overprint(t){return new Dt(t)}static packets(t){return new Pt(t)}static pageOffset(t){return new Rt(t)}static pageRange(t){return new Nt(t)}static pagination(t){return new Lt(t)}static paginationOverride(t){return new Bt(t)}static part(t){return new $t(t)}static pcl(t){return new Ut(t)}static pdf(t){return new jt(t)}static pdfa(t){return new Ht(t)}static permissions(t){return new Gt(t)}static pickTrayByPDFSize(t){return new qt(t)}static picture(t){return new Xt(t)}static plaintextMetadata(t){return new Wt(t)}static presence(t){return new zt(t)}static present(t){return new Vt(t)}static print(t){return new Kt(t)}static printHighQuality(t){return new Jt(t)}static printScaling(t){return new Yt(t)}static printerName(t){return new Qt(t)}static producer(t){return new Zt(t)}static ps(t){return new te(t)}static range(t){return new ee(t)}static record(t){return new se(t)}static relevant(t){return new ie(t)}static rename(t){return new ne(t)}static renderPolicy(t){return new re(t)}static runScripts(t){return new oe(t)}static script(t){return new ae(t)}static scriptModel(t){return new ce(t)}static severity(t){return new le(t)}static silentPrint(t){return new he(t)}static staple(t){return new ue(t)}static startNode(t){return new fe(t)}static startPage(t){return new de(t)}static submitFormat(t){return new pe(t)}static submitUrl(t){return new ge(t)}static subsetBelow(t){return new me(t)}static suppressBanner(t){return new we(t)}static tagged(t){return new be(t)}static template(t){return new ye(t)}static templateCache(t){return new xe(t)}static threshold(t){return new Ae(t)}static to(t){return new ve(t)}static trace(t){return new ke(t)}static transform(t){return new Se(t)}static type(t){return new Me(t)}static uri(t){return new Ce(t)}static validate(t){return new _e(t)}static validateApprovalSignatures(t){return new Ie(t)}static validationMessaging(t){return new Fe(t)}static version(t){return new Oe(t)}static versionControl(t){return new Ee(t)}static viewerPreferences(t){return new Te(t)}static webClient(t){return new De(t)}static whitespace(t){return new Pe(t)}static window(t){return new Re(t)}static xdc(t){return new Ne(t)}static xdp(t){return new Le(t)}static xsl(t){return new Be(t)}static zpl(t){return new $e(t)}}e.ConfigNamespace=Ue},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.ConnectionSetNamespace=void 0;var i=s(81);var n=s(87);const r=i.NamespaceIds.connectionSet.id;class o extends n.XFAObject{constructor(t){super(r,"connectionSet",true);this.wsdlConnection=new n.XFAObjectArray;this.xmlConnection=new n.XFAObjectArray;this.xsdConnection=new n.XFAObjectArray}}class a extends n.XFAObject{constructor(t){super(r,"effectiveInputPolicy");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class c extends n.XFAObject{constructor(t){super(r,"effectiveOutputPolicy");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class l extends n.StringObject{constructor(t){super(r,"operation");this.id=t.id||"";this.input=t.input||"";this.name=t.name||"";this.output=t.output||"";this.use=t.use||"";this.usehref=t.usehref||""}}class h extends n.StringObject{constructor(t){super(r,"rootElement");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class u extends n.StringObject{constructor(t){super(r,"soapAction");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class f extends n.StringObject{constructor(t){super(r,"soapAddress");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class d extends n.StringObject{constructor(t){super(r,"uri");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class p extends n.StringObject{constructor(t){super(r,"wsdlAddress");this.id=t.id||"";this.name=t.name||"";this.use=t.use||"";this.usehref=t.usehref||""}}class g extends n.XFAObject{constructor(t){super(r,"wsdlConnection",true);this.dataDescription=t.dataDescription||"";this.name=t.name||"";this.effectiveInputPolicy=null;this.effectiveOutputPolicy=null;this.operation=null;this.soapAction=null;this.soapAddress=null;this.wsdlAddress=null}}class m extends n.XFAObject{constructor(t){super(r,"xmlConnection",true);this.dataDescription=t.dataDescription||"";this.name=t.name||"";this.uri=null}}class w extends n.XFAObject{constructor(t){super(r,"xsdConnection",true);this.dataDescription=t.dataDescription||"";this.name=t.name||"";this.rootElement=null;this.uri=null}}class b{static[i.$buildXFAObject](t,e){if(b.hasOwnProperty(t)){return b[t](e)}return undefined}static connectionSet(t){return new o(t)}static effectiveInputPolicy(t){return new a(t)}static effectiveOutputPolicy(t){return new c(t)}static operation(t){return new l(t)}static rootElement(t){return new h(t)}static soapAction(t){return new u(t)}static soapAddress(t){return new f(t)}static uri(t){return new d(t)}static wsdlAddress(t){return new p(t)}static wsdlConnection(t){return new g(t)}static xmlConnection(t){return new m(t)}static xsdConnection(t){return new w(t)}}e.ConnectionSetNamespace=b},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.DatasetsNamespace=void 0;var i=s(78);var n=s(81);var r=s(87);const o=n.NamespaceIds.datasets.id;class a extends r.XmlObject{constructor(t){super(o,"data",t)}[i.$isNsAgnostic](){return true}}class c extends r.XFAObject{constructor(t){super(o,"datasets",true);this.data=null;this.Signature=null}[i.$onChild](t){const e=t[i.$nodeName];if(e==="data"&&t[i.$namespaceId]===o||e==="Signature"&&t[i.$namespaceId]===n.NamespaceIds.signature.id){this[e]=t}this[i.$appendChild](t)}}class l{static[n.$buildXFAObject](t,e){if(l.hasOwnProperty(t)){return l[t](e)}return undefined}static datasets(t){return new c(t)}static data(t){return new a(t)}}e.DatasetsNamespace=l},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.LocaleSetNamespace=void 0;var i=s(81);var n=s(87);var r=s(84);const o=i.NamespaceIds.localeSet.id;class a extends n.XFAObject{constructor(t){super(o,"calendarSymbols",true);this.name="gregorian";this.dayNames=new n.XFAObjectArray(2);this.eraNames=null;this.meridiemNames=null;this.monthNames=new n.XFAObjectArray(2)}}class c extends n.StringObject{constructor(t){super(o,"currencySymbol");this.name=(0,r.getStringOption)(t.name,["symbol","isoname","decimal"])}}class l extends n.XFAObject{constructor(t){super(o,"currencySymbols",true);this.currencySymbol=new n.XFAObjectArray(3)}}class h extends n.StringObject{constructor(t){super(o,"datePattern");this.name=(0,r.getStringOption)(t.name,["full","long","med","short"])}}class u extends n.XFAObject{constructor(t){super(o,"datePatterns",true);this.datePattern=new n.XFAObjectArray(4)}}class f extends n.ContentObject{constructor(t){super(o,"dateTimeSymbols")}}class d extends n.StringObject{constructor(t){super(o,"day")}}class p extends n.XFAObject{constructor(t){super(o,"dayNames",true);this.abbr=(0,r.getInteger)({data:t.abbr,defaultValue:0,validate:t=>t===1});this.day=new n.XFAObjectArray(7)}}class g extends n.StringObject{constructor(t){super(o,"era")}}class m extends n.XFAObject{constructor(t){super(o,"eraNames",true);this.era=new n.XFAObjectArray(2)}}class w extends n.XFAObject{constructor(t){super(o,"locale",true);this.desc=t.desc||"";this.name="isoname";this.calendarSymbols=null;this.currencySymbols=null;this.datePatterns=null;this.dateTimeSymbols=null;this.numberPatterns=null;this.numberSymbols=null;this.timePatterns=null;this.typeFaces=null}}class b extends n.XFAObject{constructor(t){super(o,"localeSet",true);this.locale=new n.XFAObjectArray}}class y extends n.StringObject{constructor(t){super(o,"meridiem")}}class A extends n.XFAObject{constructor(t){super(o,"meridiemNames",true);this.meridiem=new n.XFAObjectArray(2)}}class v extends n.StringObject{constructor(t){super(o,"month")}}class x extends n.XFAObject{constructor(t){super(o,"monthNames",true);this.abbr=(0,r.getInteger)({data:t.abbr,defaultValue:0,validate:t=>t===1});this.month=new n.XFAObjectArray(12)}}class k extends n.StringObject{constructor(t){super(o,"numberPattern");this.name=(0,r.getStringOption)(t.name,["full","long","med","short"])}}class S extends n.XFAObject{constructor(t){super(o,"numberPatterns",true);this.numberPattern=new n.XFAObjectArray(4)}}class M extends n.StringObject{constructor(t){super(o,"numberSymbol");this.name=(0,r.getStringOption)(t.name,["decimal","grouping","percent","minus","zero"])}}class C extends n.XFAObject{constructor(t){super(o,"numberSymbols",true);this.numberSymbol=new n.XFAObjectArray(5)}}class _ extends n.StringObject{constructor(t){super(o,"timePattern");this.name=(0,r.getStringOption)(t.name,["full","long","med","short"])}}class I extends n.XFAObject{constructor(t){super(o,"timePatterns",true);this.timePattern=new n.XFAObjectArray(4)}}class F extends n.XFAObject{constructor(t){super(o,"typeFace",true);this.name=t.name|""}}class O extends n.XFAObject{constructor(t){super(o,"typeFaces",true);this.typeFace=new n.XFAObjectArray}}class E{static[i.$buildXFAObject](t,e){if(E.hasOwnProperty(t)){return E[t](e)}return undefined}static calendarSymbols(t){return new a(t)}static currencySymbol(t){return new c(t)}static currencySymbols(t){return new l(t)}static datePattern(t){return new h(t)}static datePatterns(t){return new u(t)}static dateTimeSymbols(t){return new f(t)}static day(t){return new d(t)}static dayNames(t){return new p(t)}static era(t){return new g(t)}static eraNames(t){return new m(t)}static locale(t){return new w(t)}static localeSet(t){return new b(t)}static meridiem(t){return new y(t)}static meridiemNames(t){return new A(t)}static month(t){return new v(t)}static monthNames(t){return new x(t)}static numberPattern(t){return new k(t)}static numberPatterns(t){return new S(t)}static numberSymbol(t){return new M(t)}static numberSymbols(t){return new C(t)}static timePattern(t){return new _(t)}static timePatterns(t){return new I(t)}static typeFace(t){return new F(t)}static typeFaces(t){return new O(t)}}e.LocaleSetNamespace=E},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.SignatureNamespace=void 0;var i=s(81);var n=s(87);const r=i.NamespaceIds.signature.id;class o extends n.XFAObject{constructor(t){super(r,"signature",true)}}class a{static[i.$buildXFAObject](t,e){if(a.hasOwnProperty(t)){return a[t](e)}return undefined}static signature(t){return new o(t)}}e.SignatureNamespace=a},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.StylesheetNamespace=void 0;var i=s(81);var n=s(87);const r=i.NamespaceIds.stylesheet.id;class o extends n.XFAObject{constructor(t){super(r,"stylesheet",true)}}class a{static[i.$buildXFAObject](t,e){if(a.hasOwnProperty(t)){return a[t](e)}return undefined}static stylesheet(t){return new o(t)}}e.StylesheetNamespace=a},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.XdpNamespace=void 0;var i=s(81);var n=s(78);var r=s(87);const o=i.NamespaceIds.xdp.id;class a extends r.XFAObject{constructor(t){super(o,"xdp",true);this.uuid=t.uuid||"";this.timeStamp=t.timeStamp||"";this.config=null;this.connectionSet=null;this.datasets=null;this.localeSet=null;this.stylesheet=new r.XFAObjectArray;this.template=null}[n.$onChildCheck](t){const e=i.NamespaceIds[t[n.$nodeName]];return e&&t[n.$namespaceId]===e.id}}class c{static[i.$buildXFAObject](t,e){if(c.hasOwnProperty(t)){return c[t](e)}return undefined}static xdp(t){return new a(t)}}e.XdpNamespace=c},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.XhtmlNamespace=void 0;var i=s(78);var n=s(81);var r=s(83);var o=s(84);var a=s(87);const c=n.NamespaceIds.xhtml.id;const l=Symbol();const h=new Set(["color","font","font-family","font-size","font-stretch","font-style","font-weight","margin","margin-bottom","margin-left","margin-right","margin-top","letter-spacing","line-height","orphans","page-break-after","page-break-before","page-break-inside","tab-interval","tab-stop","text-align","text-decoration","text-indent","vertical-align","widows","kerning-mode","xfa-font-horizontal-scale","xfa-font-vertical-scale","xfa-spacerun","xfa-tab-stops"]);const u=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",t=>t==="none"?"none":"normal"],["xfa-font-horizontal-scale",t=>`scaleX(${Math.max(0,Math.min(parseInt(t)/100)).toFixed(2)})`],["xfa-font-vertical-scale",t=>`scaleY(${Math.max(0,Math.min(parseInt(t)/100)).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(t,e)=>{t=e.fontSize=(0,o.getMeasurement)(t);return(0,r.measureToString)(.99*t)}],["letter-spacing",t=>(0,r.measureToString)((0,o.getMeasurement)(t))],["line-height",t=>(0,r.measureToString)((0,o.getMeasurement)(t))],["margin",t=>(0,r.measureToString)((0,o.getMeasurement)(t))],["margin-bottom",t=>(0,r.measureToString)((0,o.getMeasurement)(t))],["margin-left",t=>(0,r.measureToString)((0,o.getMeasurement)(t))],["margin-right",t=>(0,r.measureToString)((0,o.getMeasurement)(t))],["margin-top",t=>(0,r.measureToString)((0,o.getMeasurement)(t))],["text-indent",t=>(0,r.measureToString)((0,o.getMeasurement)(t))],["font-family",t=>t],["vertical-align",t=>(0,r.measureToString)((0,o.getMeasurement)(t))]]);const f=/\s+/g;const d=/[\r\n]+/g;const p=/\r\n?/g;function g(t,e,s){const n=Object.create(null);if(!t){return n}const a=Object.create(null);for(const[e,s]of t.split(";").map((t=>t.split(":",2)))){const t=u.get(e);if(t===""){continue}let i=s;if(t){i=typeof t==="string"?t:t(s,a)}if(e.endsWith("scale")){n.transform=n.transform?`${n[e]} ${i}`:i}else{n[e.replaceAll(/-([a-zA-Z])/g,((t,e)=>e.toUpperCase()))]=i}}if(n.fontFamily){(0,r.setFontFamily)({typeface:n.fontFamily,weight:n.fontWeight||"normal",posture:n.fontStyle||"normal",size:a.fontSize||0},e,e[i.$globalData].fontFinder,n)}if(s&&n.verticalAlign&&n.verticalAlign!=="0px"&&n.fontSize){const t=.583;const e=.333;const s=(0,o.getMeasurement)(n.fontSize);n.fontSize=(0,r.measureToString)(s*t);n.verticalAlign=(0,r.measureToString)(Math.sign((0,o.getMeasurement)(n.verticalAlign))*s*e)}if(s&&n.fontSize){n.fontSize=`calc(${n.fontSize} * var(--scale-factor))`}(0,r.fixTextIndent)(n);return n}function m(t){if(!t.style){return""}return t.style.trim().split(/\s*;\s*/).filter((t=>!!t)).map((t=>t.split(/\s*:\s*/,2))).filter((([e,s])=>{if(e==="font-family"){t[i.$globalData].usedTypefaces.add(s)}return h.has(e)})).map((t=>t.join(":"))).join(";")}const w=new Set(["body","html"]);class b extends a.XmlObject{constructor(t,e){super(c,e);this[l]=false;this.style=t.style||""}[i.$clean](t){super[i.$clean](t);this.style=m(this)}[i.$acceptWhitespace](){return!w.has(this[i.$nodeName])}[i.$onText](t,e=false){if(!e){t=t.replaceAll(d,"");if(!this.style.includes("xfa-spacerun:yes")){t=t.replaceAll(f," ")}}else{this[l]=true}if(t){this[i.$content]+=t}}[i.$pushGlyphs](t,e=true){const s=Object.create(null);const n={top:NaN,bottom:NaN,left:NaN,right:NaN};let r=null;for(const[t,e]of this.style.split(";").map((t=>t.split(":",2)))){switch(t){case"font-family":s.typeface=(0,o.stripQuotes)(e);break;case"font-size":s.size=(0,o.getMeasurement)(e);break;case"font-weight":s.weight=e;break;case"font-style":s.posture=e;break;case"letter-spacing":s.letterSpacing=(0,o.getMeasurement)(e);break;case"margin":const t=e.split(/ \t/).map((t=>(0,o.getMeasurement)(t)));switch(t.length){case 1:n.top=n.bottom=n.left=n.right=t[0];break;case 2:n.top=n.bottom=t[0];n.left=n.right=t[1];break;case 3:n.top=t[0];n.bottom=t[2];n.left=n.right=t[1];break;case 4:n.top=t[0];n.left=t[1];n.bottom=t[2];n.right=t[3];break}break;case"margin-top":n.top=(0,o.getMeasurement)(e);break;case"margin-bottom":n.bottom=(0,o.getMeasurement)(e);break;case"margin-left":n.left=(0,o.getMeasurement)(e);break;case"margin-right":n.right=(0,o.getMeasurement)(e);break;case"line-height":r=(0,o.getMeasurement)(e);break}}t.pushData(s,n,r);if(this[i.$content]){t.addString(this[i.$content])}else{for(const e of this[i.$getChildren]()){if(e[i.$nodeName]==="#text"){t.addString(e[i.$content]);continue}e[i.$pushGlyphs](t)}}if(e){t.popFont()}}[i.$toHTML](t){const e=[];this[i.$extra]={children:e};this[i.$childrenToHTML]({});if(e.length===0&&!this[i.$content]){return o.HTMLResult.EMPTY}let s;if(this[l]){s=this[i.$content]?this[i.$content].replaceAll(p,"\n"):undefined}else{s=this[i.$content]||undefined}return o.HTMLResult.success({name:this[i.$nodeName],attributes:{href:this.href,style:g(this.style,this,this[l])},children:e,value:s})}}class y extends b{constructor(t){super(t,"a");this.href=(0,r.fixURL)(t.href)||""}}class A extends b{constructor(t){super(t,"b")}[i.$pushGlyphs](t){t.pushFont({weight:"bold"});super[i.$pushGlyphs](t);t.popFont()}}class v extends b{constructor(t){super(t,"body")}[i.$toHTML](t){const e=super[i.$toHTML](t);const{html:s}=e;if(!s){return o.HTMLResult.EMPTY}s.name="div";s.attributes.class=["xfaRich"];return e}}class x extends b{constructor(t){super(t,"br")}[i.$text](){return"\n"}[i.$pushGlyphs](t){t.addString("\n")}[i.$toHTML](t){return o.HTMLResult.success({name:"br"})}}class k extends b{constructor(t){super(t,"html")}[i.$toHTML](t){const e=[];this[i.$extra]={children:e};this[i.$childrenToHTML]({});if(e.length===0){return o.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[i.$content]||""})}if(e.length===1){const t=e[0];if(t.attributes?.class.includes("xfaRich")){return o.HTMLResult.success(t)}}return o.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:e})}}class S extends b{constructor(t){super(t,"i")}[i.$pushGlyphs](t){t.pushFont({posture:"italic"});super[i.$pushGlyphs](t);t.popFont()}}class M extends b{constructor(t){super(t,"li")}}class C extends b{constructor(t){super(t,"ol")}}class _ extends b{constructor(t){super(t,"p")}[i.$pushGlyphs](t){super[i.$pushGlyphs](t,false);t.addString("\n");t.addPara();t.popFont()}[i.$text](){const t=this[i.$getParent]()[i.$getChildren]();if(t.at(-1)===this){return super[i.$text]()}return super[i.$text]()+"\n"}}class I extends b{constructor(t){super(t,"span")}}class F extends b{constructor(t){super(t,"sub")}}class O extends b{constructor(t){super(t,"sup")}}class E extends b{constructor(t){super(t,"ul")}}class T{static[n.$buildXFAObject](t,e){if(T.hasOwnProperty(t)){return T[t](e)}return undefined}static a(t){return new y(t)}static b(t){return new A(t)}static body(t){return new v(t)}static br(t){return new x(t)}static html(t){return new k(t)}static i(t){return new S(t)}static li(t){return new M(t)}static ol(t){return new C(t)}static p(t){return new _(t)}static span(t){return new I(t)}static sub(t){return new F(t)}static sup(t){return new O(t)}static ul(t){return new E(t)}}e.XhtmlNamespace=T},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.UnknownNamespace=void 0;var i=s(81);var n=s(87);class r{constructor(t){this.namespaceId=t}[i.$buildXFAObject](t,e){return new n.XmlObject(this.namespaceId,t,e)}}e.UnknownNamespace=r},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.DatasetReader=void 0;var i=s(2);var n=s(3);var r=s(71);function o(t){try{return(0,i.stringToUTF8String)(t)}catch(e){(0,i.warn)(`UTF-8 decoding failed: "${e}".`);return t}}class a extends r.SimpleXMLParser{constructor(t){super(t);this.node=null}onEndElement(t){const e=super.onEndElement(t);if(e&&t==="xfa:datasets"){this.node=e;throw new Error("Aborting DatasetXMLParser.")}}}class c{constructor(t){if(t.datasets){this.node=new r.SimpleXMLParser({hasAttributes:true}).parseFromString(t.datasets).documentElement}else{const e=new a({hasAttributes:true});try{e.parseFromString(t["xdp:xdp"])}catch{}this.node=e.node}}getValue(t){if(!this.node||!t){return""}const e=this.node.searchNode((0,n.parseXFAPath)(t),0);if(!e){return""}const s=e.firstChild;if(s?.nodeName==="value"){return e.children.map((t=>o(t.textContent)))}return o(e.textContent)}}e.DatasetReader=c},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.XRef=void 0;var i=s(2);var n=s(4);var r=s(16);var o=s(3);var a=s(5);var c=s(74);class l{#hn=null;constructor(t,e){this.stream=t;this.pdfManager=e;this.entries=[];this._xrefStms=new Set;this._cacheMap=new Map;this._pendingRefs=new n.RefSet;this._newPersistentRefNum=null;this._newTemporaryRefNum=null}getNewPersistentRef(t){if(this._newPersistentRefNum===null){this._newPersistentRefNum=this.entries.length||1}const e=this._newPersistentRefNum++;this._cacheMap.set(e,t);return n.Ref.get(e,0)}getNewTemporaryRef(){if(this._newTemporaryRefNum===null){this._newTemporaryRefNum=this.entries.length||1}return n.Ref.get(this._newTemporaryRefNum++,0)}resetNewTemporaryRef(){this._newTemporaryRefNum=null}setStartXRef(t){this.startXRefQueue=[t]}parse(t=false){let e;if(!t){e=this.readXRef()}else{(0,i.warn)("Indexing all PDF objects");e=this.indexObjects()}e.assignXref(this);this.trailer=e;let s;try{s=e.get("Encrypt")}catch(t){if(t instanceof o.MissingDataException){throw t}(0,i.warn)(`XRef.parse - Invalid "Encrypt" reference: "${t}".`)}if(s instanceof n.Dict){const t=e.get("ID");const i=t?.length?t[0]:"";s.suppressEncryption=true;this.encrypt=new c.CipherTransformFactory(s,i,this.pdfManager.password)}let r;try{r=e.get("Root")}catch(t){if(t instanceof o.MissingDataException){throw t}(0,i.warn)(`XRef.parse - Invalid "Root" reference: "${t}".`)}if(r instanceof n.Dict){try{const t=r.get("Pages");if(t instanceof n.Dict){this.root=r;return}}catch(t){if(t instanceof o.MissingDataException){throw t}(0,i.warn)(`XRef.parse - Invalid "Pages" reference: "${t}".`)}}if(!t){throw new o.XRefParseException}throw new i.InvalidPDFException("Invalid Root reference.")}processXRefTable(t){if(!("tableState"in this)){this.tableState={entryNum:0,streamPos:t.lexer.stream.pos,parserBuf1:t.buf1,parserBuf2:t.buf2}}const e=this.readXRefTable(t);if(!(0,n.isCmd)(e,"trailer")){throw new i.FormatError("Invalid XRef table: could not find trailer dictionary")}let s=t.getObj();if(!(s instanceof n.Dict)&&s.dict){s=s.dict}if(!(s instanceof n.Dict)){throw new i.FormatError("Invalid XRef table: could not parse trailer dictionary")}delete this.tableState;return s}readXRefTable(t){const e=t.lexer.stream;const s=this.tableState;e.pos=s.streamPos;t.buf1=s.parserBuf1;t.buf2=s.parserBuf2;let r;while(true){if(!("firstEntryNum"in s)||!("entryCount"in s)){if((0,n.isCmd)(r=t.getObj(),"trailer")){break}s.firstEntryNum=r;s.entryCount=t.getObj()}let o=s.firstEntryNum;const a=s.entryCount;if(!Number.isInteger(o)||!Number.isInteger(a)){throw new i.FormatError("Invalid XRef table: wrong types in subsection header")}for(let r=s.entryNum;r<a;r++){s.streamPos=e.pos;s.entryNum=r;s.parserBuf1=t.buf1;s.parserBuf2=t.buf2;const c={};c.offset=t.getObj();c.gen=t.getObj();const l=t.getObj();if(l instanceof n.Cmd){switch(l.cmd){case"f":c.free=true;break;case"n":c.uncompressed=true;break}}if(!Number.isInteger(c.offset)||!Number.isInteger(c.gen)||!(c.free||c.uncompressed)){throw new i.FormatError(`Invalid entry in XRef subsection: ${o}, ${a}`)}if(r===0&&c.free&&o===1){o=0}if(!this.entries[r+o]){this.entries[r+o]=c}}s.entryNum=0;s.streamPos=e.pos;s.parserBuf1=t.buf1;s.parserBuf2=t.buf2;delete s.firstEntryNum;delete s.entryCount}if(this.entries[0]&&!this.entries[0].free){throw new i.FormatError("Invalid XRef table: unexpected first object")}return r}processXRefStream(t){if(!("streamState"in this)){const e=t.dict;const s=e.get("W");let i=e.get("Index");if(!i){i=[0,e.get("Size")]}this.streamState={entryRanges:i,byteWidths:s,entryNum:0,streamPos:t.pos}}this.readXRefStream(t);delete this.streamState;return t.dict}readXRefStream(t){const e=this.streamState;t.pos=e.streamPos;const[s,n,r]=e.byteWidths;const o=e.entryRanges;while(o.length>0){const[a,c]=o;if(!Number.isInteger(a)||!Number.isInteger(c)){throw new i.FormatError(`Invalid XRef range fields: ${a}, ${c}`)}if(!Number.isInteger(s)||!Number.isInteger(n)||!Number.isInteger(r)){throw new i.FormatError(`Invalid XRef entry fields length: ${a}, ${c}`)}for(let o=e.entryNum;o<c;++o){e.entryNum=o;e.streamPos=t.pos;let c=0,l=0,h=0;for(let e=0;e<s;++e){const e=t.getByte();if(e===-1){throw new i.FormatError("Invalid XRef byteWidths 'type'.")}c=c<<8|e}if(s===0){c=1}for(let e=0;e<n;++e){const e=t.getByte();if(e===-1){throw new i.FormatError("Invalid XRef byteWidths 'offset'.")}l=l<<8|e}for(let e=0;e<r;++e){const e=t.getByte();if(e===-1){throw new i.FormatError("Invalid XRef byteWidths 'generation'.")}h=h<<8|e}const u={};u.offset=l;u.gen=h;switch(c){case 0:u.free=true;break;case 1:u.uncompressed=true;break;case 2:break;default:throw new i.FormatError(`Invalid XRef entry type: ${c}`)}if(!this.entries[a+o]){this.entries[a+o]=u}}e.entryNum=0;e.streamPos=t.pos;o.splice(0,2)}}indexObjects(){const t=9,e=10,s=13,a=32;const c=37,l=60;function h(t,i){let n="",r=t[i];while(r!==e&&r!==s&&r!==l){if(++i>=t.length){break}n+=String.fromCharCode(r);r=t[i]}return n}function u(t,e,s){const i=s.length,n=t.length;let r=0;while(e<n){let n=0;while(n<i&&t[e+n]===s[n]){++n}if(n>=i){break}e++;r++}return r}const f=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g;const d=/\b(startxref|\d+\s+\d+\s+obj)\b/g;const p=/^(\d+)\s+(\d+)\s+obj\b/;const g=new Uint8Array([116,114,97,105,108,101,114]);const m=new Uint8Array([115,116,97,114,116,120,114,101,102]);const w=new Uint8Array([47,88,82,101,102]);this.entries.length=0;this._cacheMap.clear();const b=this.stream;b.pos=0;const y=b.getBytes(),A=(0,i.bytesToString)(y),v=y.length;let x=b.start;const k=[],S=[];while(x<v){let n=y[x];if(n===t||n===e||n===s||n===a){++x;continue}if(n===c){do{++x;if(x>=v){break}n=y[x]}while(n!==e&&n!==s);continue}const l=h(y,x);let M;if(l.startsWith("xref")&&(l.length===4||/\s/.test(l[4]))){x+=u(y,x,g);k.push(x);x+=u(y,x,m)}else if(M=p.exec(l)){const t=M[1]|0,e=M[2]|0;const s=x+l.length;let n,a=false;if(!this.entries[t]){a=true}else if(this.entries[t].gen===e){try{const t=new r.Parser({lexer:new r.Lexer(b.makeSubStream(s))});t.getObj();a=true}catch(t){if(t instanceof o.ParserEOFException){(0,i.warn)(`indexObjects -- checking object (${l}): "${t}".`)}else{a=true}}}if(a){this.entries[t]={offset:x-b.start,gen:e,uncompressed:true}}f.lastIndex=s;const c=f.exec(A);if(c){const t=f.lastIndex+1;n=t-x;if(c[1]!=="endobj"){(0,i.warn)(`indexObjects: Found "${c[1]}" inside of another "obj", `+'caused by missing "endobj" -- trying to recover.');n-=c[1].length+1}}else{n=v-x}const h=y.subarray(x,x+n);const d=u(h,0,w);if(d<n&&h[d+5]<64){S.push(x-b.start);this._xrefStms.add(x-b.start)}x+=n}else if(l.startsWith("trailer")&&(l.length===7||/\s/.test(l[7]))){k.push(x);const t=x+l.length;let e;d.lastIndex=t;const s=d.exec(A);if(s){const t=d.lastIndex+1;e=t-x;if(s[1]!=="startxref"){(0,i.warn)(`indexObjects: Found "${s[1]}" after "trailer", `+'caused by missing "startxref" -- trying to recover.');e-=s[1].length+1}}else{e=v-x}x+=e}else{x+=l.length+1}}for(const t of S){this.startXRefQueue.push(t);this.readXRef(true)}const M=[];let C=false;for(const t of k){b.pos=t;const e=new r.Parser({lexer:new r.Lexer(b),xref:this,allowStreams:true,recoveryMode:true});const s=e.getObj();if(!(0,n.isCmd)(s,"trailer")){continue}const i=e.getObj();if(!(i instanceof n.Dict)){continue}M.push(i);if(i.has("Encrypt")){C=true}}let _,I;for(const t of[...M,"genFallback",...M]){if(t==="genFallback"){if(!I){break}this._generationFallback=true;continue}let e=false;try{const s=t.get("Root");if(!(s instanceof n.Dict)){continue}const i=s.get("Pages");if(!(i instanceof n.Dict)){continue}const r=i.get("Count");if(Number.isInteger(r)){e=true}}catch(t){I=t;continue}if(e&&(!C||t.has("Encrypt"))&&t.has("ID")){return t}_=t}if(_){return _}if(this.topDict){return this.topDict}throw new i.InvalidPDFException("Invalid PDF structure.")}readXRef(t=false){const e=this.stream;const s=new Set;while(this.startXRefQueue.length){try{const t=this.startXRefQueue[0];if(s.has(t)){(0,i.warn)("readXRef - skipping XRef table since it was already parsed.");this.startXRefQueue.shift();continue}s.add(t);e.pos=t+e.start;const o=new r.Parser({lexer:new r.Lexer(e),xref:this,allowStreams:true});let c=o.getObj();let l;if((0,n.isCmd)(c,"xref")){l=this.processXRefTable(o);if(!this.topDict){this.topDict=l}c=l.get("XRefStm");if(Number.isInteger(c)&&!this._xrefStms.has(c)){this._xrefStms.add(c);this.startXRefQueue.push(c);this.#hn??=c}}else if(Number.isInteger(c)){if(!Number.isInteger(o.getObj())||!(0,n.isCmd)(o.getObj(),"obj")||!((c=o.getObj())instanceof a.BaseStream)){throw new i.FormatError("Invalid XRef stream")}l=this.processXRefStream(c);if(!this.topDict){this.topDict=l}if(!l){throw new i.FormatError("Failed to read XRef stream")}}else{throw new i.FormatError("Invalid XRef stream header")}c=l.get("Prev");if(Number.isInteger(c)){this.startXRefQueue.push(c)}else if(c instanceof n.Ref){this.startXRefQueue.push(c.num)}}catch(t){if(t instanceof o.MissingDataException){throw t}(0,i.info)("(while reading XRef): "+t)}this.startXRefQueue.shift()}if(this.topDict){return this.topDict}if(t){return undefined}throw new o.XRefParseException}get lastXRefStreamPos(){return this.#hn??(this._xrefStms.size>0?Math.max(...this._xrefStms):null)}getEntry(t){const e=this.entries[t];if(e&&!e.free&&e.offset){return e}return null}fetchIfRef(t,e=false){if(t instanceof n.Ref){return this.fetch(t,e)}return t}fetch(t,e=false){if(!(t instanceof n.Ref)){throw new Error("ref object is not a reference")}const s=t.num;const r=this._cacheMap.get(s);if(r!==undefined){if(r instanceof n.Dict&&!r.objId){r.objId=t.toString()}return r}let o=this.getEntry(s);if(o===null){this._cacheMap.set(s,o);return o}if(this._pendingRefs.has(t)){this._pendingRefs.remove(t);(0,i.warn)(`Ignoring circular reference: ${t}.`);return n.CIRCULAR_REF}this._pendingRefs.put(t);try{o=o.uncompressed?this.fetchUncompressed(t,o,e):this.fetchCompressed(t,o,e);this._pendingRefs.remove(t)}catch(e){this._pendingRefs.remove(t);throw e}if(o instanceof n.Dict){o.objId=t.toString()}else if(o instanceof a.BaseStream){o.dict.objId=t.toString()}return o}fetchUncompressed(t,e,s=false){const c=t.gen;let l=t.num;if(e.gen!==c){const r=`Inconsistent generation in XRef: ${t}`;if(this._generationFallback&&e.gen<c){(0,i.warn)(r);return this.fetchUncompressed(n.Ref.get(l,e.gen),e,s)}throw new o.XRefEntryException(r)}const h=this.stream.makeSubStream(e.offset+this.stream.start);const u=new r.Parser({lexer:new r.Lexer(h),xref:this,allowStreams:true});const f=u.getObj();const d=u.getObj();const p=u.getObj();if(f!==l||d!==c||!(p instanceof n.Cmd)){throw new o.XRefEntryException(`Bad (uncompressed) XRef entry: ${t}`)}if(p.cmd!=="obj"){if(p.cmd.startsWith("obj")){l=parseInt(p.cmd.substring(3),10);if(!Number.isNaN(l)){return l}}throw new o.XRefEntryException(`Bad (uncompressed) XRef entry: ${t}`)}e=this.encrypt&&!s?u.getObj(this.encrypt.createCipherTransform(l,c)):u.getObj();if(!(e instanceof a.BaseStream)){this._cacheMap.set(l,e)}return e}fetchCompressed(t,e,s=false){const c=e.offset;const l=this.fetch(n.Ref.get(c,0));if(!(l instanceof a.BaseStream)){throw new i.FormatError("bad ObjStm stream")}const h=l.dict.get("First");const u=l.dict.get("N");if(!Number.isInteger(h)||!Number.isInteger(u)){throw new i.FormatError("invalid first and n parameters for ObjStm stream")}let f=new r.Parser({lexer:new r.Lexer(l),xref:this,allowStreams:true});const d=new Array(u);const p=new Array(u);for(let t=0;t<u;++t){const e=f.getObj();if(!Number.isInteger(e)){throw new i.FormatError(`invalid object number in the ObjStm stream: ${e}`)}const s=f.getObj();if(!Number.isInteger(s)){throw new i.FormatError(`invalid object offset in the ObjStm stream: ${s}`)}d[t]=e;p[t]=s}const g=(l.start||0)+h;const m=new Array(u);for(let t=0;t<u;++t){const e=t<u-1?p[t+1]-p[t]:undefined;if(e<0){throw new i.FormatError("Invalid offset in the ObjStm stream.")}f=new r.Parser({lexer:new r.Lexer(l.makeSubStream(g+p[t],e,l.dict)),xref:this,allowStreams:true});const s=f.getObj();m[t]=s;if(s instanceof a.BaseStream){continue}const n=d[t],o=this.entries[n];if(o&&o.offset===c&&o.gen===t){this._cacheMap.set(n,s)}}e=m[e.gen];if(e===undefined){throw new o.XRefEntryException(`Bad (compressed) XRef entry: ${t}`)}return e}async fetchIfRefAsync(t,e){if(t instanceof n.Ref){return this.fetchAsync(t,e)}return t}async fetchAsync(t,e){try{return this.fetch(t,e)}catch(s){if(!(s instanceof o.MissingDataException)){throw s}await this.pdfManager.requestRange(s.begin,s.end);return this.fetchAsync(t,e)}}getCatalogObj(){return this.root}}e.XRef=l},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.MessageHandler=void 0;var i=s(2);const n={UNKNOWN:0,DATA:1,ERROR:2};const r={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function o(t){if(!(t instanceof Error||typeof t==="object"&&t!==null)){(0,i.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.')}switch(t.name){case"AbortException":return new i.AbortException(t.message);case"MissingPDFException":return new i.MissingPDFException(t.message);case"PasswordException":return new i.PasswordException(t.message,t.code);case"UnexpectedResponseException":return new i.UnexpectedResponseException(t.message,t.status);case"UnknownErrorException":return new i.UnknownErrorException(t.message,t.details);default:return new i.UnknownErrorException(t.message,t.toString())}}class a{constructor(t,e,s){this.sourceName=t;this.targetName=e;this.comObj=s;this.callbackId=1;this.streamId=1;this.streamSinks=Object.create(null);this.streamControllers=Object.create(null);this.callbackCapabilities=Object.create(null);this.actionHandler=Object.create(null);this._onComObjOnMessage=t=>{const e=t.data;if(e.targetName!==this.sourceName){return}if(e.stream){this.#ue(e);return}if(e.callback){const t=e.callbackId;const s=this.callbackCapabilities[t];if(!s){throw new Error(`Cannot resolve callback ${t}`)}delete this.callbackCapabilities[t];if(e.callback===n.DATA){s.resolve(e.data)}else if(e.callback===n.ERROR){s.reject(o(e.reason))}else{throw new Error("Unexpected callback case")}return}const i=this.actionHandler[e.action];if(!i){throw new Error(`Unknown action from worker: ${e.action}`)}if(e.callbackId){const t=this.sourceName;const r=e.sourceName;new Promise((function(t){t(i(e.data))})).then((function(i){s.postMessage({sourceName:t,targetName:r,callback:n.DATA,callbackId:e.callbackId,data:i})}),(function(i){s.postMessage({sourceName:t,targetName:r,callback:n.ERROR,callbackId:e.callbackId,reason:o(i)})}));return}if(e.streamId){this.#fe(e);return}i(e.data)};s.addEventListener("message",this._onComObjOnMessage)}on(t,e){const s=this.actionHandler;if(s[t]){throw new Error(`There is already an actionName called "${t}"`)}s[t]=e}send(t,e,s){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},s)}sendWithPromise(t,e,s){const n=this.callbackId++;const r=new i.PromiseCapability;this.callbackCapabilities[n]=r;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:n,data:e},s)}catch(t){r.reject(t)}return r.promise}sendWithStream(t,e,s,n){const a=this.streamId++,c=this.sourceName,l=this.targetName,h=this.comObj;return new ReadableStream({start:s=>{const r=new i.PromiseCapability;this.streamControllers[a]={controller:s,startCall:r,pullCall:null,cancelCall:null,isClosed:false};h.postMessage({sourceName:c,targetName:l,action:t,streamId:a,data:e,desiredSize:s.desiredSize},n);return r.promise},pull:t=>{const e=new i.PromiseCapability;this.streamControllers[a].pullCall=e;h.postMessage({sourceName:c,targetName:l,stream:r.PULL,streamId:a,desiredSize:t.desiredSize});return e.promise},cancel:t=>{(0,i.assert)(t instanceof Error,"cancel must have a valid reason");const e=new i.PromiseCapability;this.streamControllers[a].cancelCall=e;this.streamControllers[a].isClosed=true;h.postMessage({sourceName:c,targetName:l,stream:r.CANCEL,streamId:a,reason:o(t)});return e.promise}},s)}#fe(t){const e=t.streamId,s=this.sourceName,n=t.sourceName,a=this.comObj;const c=this,l=this.actionHandler[t.action];const h={enqueue(t,o=1,c){if(this.isCancelled){return}const l=this.desiredSize;this.desiredSize-=o;if(l>0&&this.desiredSize<=0){this.sinkCapability=new i.PromiseCapability;this.ready=this.sinkCapability.promise}a.postMessage({sourceName:s,targetName:n,stream:r.ENQUEUE,streamId:e,chunk:t},c)},close(){if(this.isCancelled){return}this.isCancelled=true;a.postMessage({sourceName:s,targetName:n,stream:r.CLOSE,streamId:e});delete c.streamSinks[e]},error(t){(0,i.assert)(t instanceof Error,"error must have a valid reason");if(this.isCancelled){return}this.isCancelled=true;a.postMessage({sourceName:s,targetName:n,stream:r.ERROR,streamId:e,reason:o(t)})},sinkCapability:new i.PromiseCapability,onPull:null,onCancel:null,isCancelled:false,desiredSize:t.desiredSize,ready:null};h.sinkCapability.resolve();h.ready=h.sinkCapability.promise;this.streamSinks[e]=h;new Promise((function(e){e(l(t.data,h))})).then((function(){a.postMessage({sourceName:s,targetName:n,stream:r.START_COMPLETE,streamId:e,success:true})}),(function(t){a.postMessage({sourceName:s,targetName:n,stream:r.START_COMPLETE,streamId:e,reason:o(t)})}))}#ue(t){const e=t.streamId,s=this.sourceName,n=t.sourceName,a=this.comObj;const c=this.streamControllers[e],l=this.streamSinks[e];switch(t.stream){case r.START_COMPLETE:if(t.success){c.startCall.resolve()}else{c.startCall.reject(o(t.reason))}break;case r.PULL_COMPLETE:if(t.success){c.pullCall.resolve()}else{c.pullCall.reject(o(t.reason))}break;case r.PULL:if(!l){a.postMessage({sourceName:s,targetName:n,stream:r.PULL_COMPLETE,streamId:e,success:true});break}if(l.desiredSize<=0&&t.desiredSize>0){l.sinkCapability.resolve()}l.desiredSize=t.desiredSize;new Promise((function(t){t(l.onPull?.())})).then((function(){a.postMessage({sourceName:s,targetName:n,stream:r.PULL_COMPLETE,streamId:e,success:true})}),(function(t){a.postMessage({sourceName:s,targetName:n,stream:r.PULL_COMPLETE,streamId:e,reason:o(t)})}));break;case r.ENQUEUE:(0,i.assert)(c,"enqueue should have stream controller");if(c.isClosed){break}c.controller.enqueue(t.chunk);break;case r.CLOSE:(0,i.assert)(c,"close should have stream controller");if(c.isClosed){break}c.isClosed=true;c.controller.close();this.#de(c,e);break;case r.ERROR:(0,i.assert)(c,"error should have stream controller");c.controller.error(o(t.reason));this.#de(c,e);break;case r.CANCEL_COMPLETE:if(t.success){c.cancelCall.resolve()}else{c.cancelCall.reject(o(t.reason))}this.#de(c,e);break;case r.CANCEL:if(!l){break}new Promise((function(e){e(l.onCancel?.(o(t.reason)))})).then((function(){a.postMessage({sourceName:s,targetName:n,stream:r.CANCEL_COMPLETE,streamId:e,success:true})}),(function(t){a.postMessage({sourceName:s,targetName:n,stream:r.CANCEL_COMPLETE,streamId:e,reason:o(t)})}));l.sinkCapability.reject(o(t.reason));l.isCancelled=true;delete this.streamSinks[e];break;default:throw new Error("Unexpected stream case")}}async#de(t,e){await Promise.allSettled([t.startCall?.promise,t.pullCall?.promise,t.cancelCall?.promise]);delete this.streamControllers[e]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}e.MessageHandler=a},(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:true});e.PDFWorkerStream=void 0;var i=s(2);class n{constructor(t){this._msgHandler=t;this._contentLength=null;this._fullRequestReader=null;this._rangeRequestReaders=[]}getFullReader(){(0,i.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once.");this._fullRequestReader=new r(this._msgHandler);return this._fullRequestReader}getRangeReader(t,e){const s=new o(t,e,this._msgHandler);this._rangeRequestReaders.push(s);return s}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const e of this._rangeRequestReaders.slice(0)){e.cancel(t)}}}e.PDFWorkerStream=n;class r{constructor(t){this._msgHandler=t;this.onProgress=null;this._contentLength=null;this._isRangeSupported=false;this._isStreamingSupported=false;const e=this._msgHandler.sendWithStream("GetReader");this._reader=e.getReader();this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then((t=>{this._isStreamingSupported=t.isStreamingSupported;this._isRangeSupported=t.isRangeSupported;this._contentLength=t.contentLength}))}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){const{value:t,done:e}=await this._reader.read();if(e){return{value:undefined,done:true}}return{value:t.buffer,done:false}}cancel(t){this._reader.cancel(t)}}class o{constructor(t,e,s){this._msgHandler=s;this.onProgress=null;const i=this._msgHandler.sendWithStream("GetRangeReader",{begin:t,end:e});this._reader=i.getReader()}get isStreamingSupported(){return false}async read(){const{value:t,done:e}=await this._reader.read();if(e){return{value:undefined,done:true}}return{value:t.buffer,done:false}}cancel(t){this._reader.cancel(t)}}}];var e={};function s(i){var n=e[i];if(n!==undefined){return n.exports}var r=e[i]={exports:{}};t[i](r,r.exports,s);return r.exports}var i={};(()=>{var t=i;Object.defineProperty(t,"__esModule",{value:true});Object.defineProperty(t,"WorkerMessageHandler",{enumerable:true,get:function(){return e.WorkerMessageHandler}});var e=s(1)})();return i})()))})(pdf_worker$1);const pdf_worker=getDefaultExportFromCjs(pdf_worker$1.exports);const pdfjsWorker=Object.freeze(Object.assign(Object.create(null),pdf_worker$1.exports,{default:pdf_worker}));const kupPdfCss=".kup-body-compact-01{font-family:var(--kup-font-family);font-size:var(--kup-body-compact-01-font-size, 14px);line-height:18px;font-weight:400;letter-spacing:0.16px}.kup-body-01{font-family:var(--kup-font-family);font-size:var(--kup-body-01-font-size, 14px);line-height:20px;font-weight:400;letter-spacing:0.16px}.kup-code-01{font-family:var(--kup-font-family-monospace);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-label-01{font-family:var(--kup-font-family);font-size:12px;line-height:16px;font-weight:400;letter-spacing:0.32px}.kup-caption-02{font-family:var(--kup-font-family);font-size:12px;line-height:15px;font-weight:500;letter-spacing:1px}.kup-caption-01{font-family:var(--kup-font-family);font-size:10px;line-height:13px;font-weight:400;letter-spacing:1px}.kup-small-label-01{font-family:var(--kup-font-family);font-size:6px;line-height:9px;font-weight:400;letter-spacing:1px}.kup-heading-compact-01{font-family:var(--kup-font-family);font-size:14px;line-height:18px;font-weight:600;letter-spacing:0.16px}.kup-heading-01{font-family:var(--kup-font-family);font-size:14px;line-height:20px;font-weight:600;letter-spacing:0.16px}.kup-heading-02{font-family:var(--kup-font-family);font-size:16px;line-height:24px;font-weight:500;letter-spacing:0}.kup-heading-03{font-family:var(--kup-font-family);font-size:20px;line-height:28px;font-weight:400;letter-spacing:0}.kup-heading-04{font-family:var(--kup-font-family);font-size:28px;line-height:36px;font-weight:400;letter-spacing:0}.kup-heading-05{font-family:var(--kup-font-family);font-size:32px;line-height:40px;font-weight:300;letter-spacing:0}.kup-heading-06{font-family:var(--kup-font-family);font-size:42px;line-height:50px;font-weight:300;letter-spacing:0}.kup-heading-07{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:300;letter-spacing:0}.kup-heading-08{font-family:var(--kup-font-family);font-size:54px;line-height:64px;font-weight:600;letter-spacing:0}:host{--kup_pdf_height:var(--kup-pdf-height, 100%);--kup_pdf_width:var(--kup-pdf-width, 100%);height:var(--kup_pdf_height);width:var(--kup_pdf_width);display:block}#kup-component{height:var(--kup_pdf_height);width:var(--kup_pdf_width);overflow:auto}#kup-component::-webkit-scrollbar{width:1.1rem;height:1.1rem}#kup-component::-webkit-scrollbar-corner{background:transparent}#kup-component::-webkit-scrollbar-thumb{border:6px solid transparent;background:rgba(0, 0, 0, 0.2);background:var(--palette-black-alpha-20, rgba(0, 0, 0, 0.2));border-radius:10px;background-clip:padding-box}#kup-component::-webkit-scrollbar-thumb:hover{border:4px solid transparent;background:rgba(0, 0, 0, 0.3);background:var(--palette-black-alpha-30, rgba(0, 0, 0, 0.3));background-clip:padding-box}";const KupPdfStyle0=kupPdfCss;var __classPrivateFieldGet=undefined&&undefined.__classPrivateFieldGet||function(t,e,s,i){if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e==="function"?t!==e||!i:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?i:s==="a"?i.call(t):i?i.value:e.get(t)};var _KupPdf_kupManager;const KupPdf=class{constructor(t){registerInstance(this,t);this.kupReady=createEvent(this,"kup-pdf-ready",6);_KupPdf_kupManager.set(this,kupManagerInstance());this.pdfPath=undefined;this.sendCredentials=undefined}onPdfPathChange(){this.wrapperRef.innerHTML="";this.renderPdf()}async getProps(t){return getProps(this,KupPdfProps,t)}async refresh(){forceUpdate(this)}async setProps(t){setProps(this,KupPdfProps,t)}componentWillLoad(){__classPrivateFieldGet(this,_KupPdf_kupManager,"f").debug.logLoad(this,false);__classPrivateFieldGet(this,_KupPdf_kupManager,"f").theme.register(this)}componentDidLoad(){this.kupReady.emit({comp:this,id:this.rootElement.id});pdf.exports.GlobalWorkerOptions.workerSrc=pdfjsWorker;this.renderPdf().then((()=>{__classPrivateFieldGet(this,_KupPdf_kupManager,"f").debug.logLoad(this,true)}))}componentWillRender(){__classPrivateFieldGet(this,_KupPdf_kupManager,"f").debug.logRender(this,false)}componentDidRender(){__classPrivateFieldGet(this,_KupPdf_kupManager,"f").debug.logRender(this,true)}async renderPdf(){try{const t=pdf.exports.getDocument({url:this.pdfPath,withCredentials:this.sendCredentials});const e=await t.promise;const s=this.wrapperRef;for(let t=1;t<=e.numPages;t++){const i=document.createElement("canvas");s.appendChild(i);e.getPage(t).then((function(t){const e=2;const s=t.getViewport({scale:e});i.height=e*s.height;i.width=e*s.width;i.style.width="100%";t.render({canvasContext:i.getContext("2d"),viewport:s,transform:[e,0,0,e,0,0]})}))}}catch(t){}}render(){return h(Host,{key:"c62560a0926c149d4de5039c091e2fcba80e55ab"},h("div",{key:"bc34f31b0995fe9b18c432ed0c72f6085a452f10",id:componentWrapperId,ref:t=>this.wrapperRef=t}))}disconnectedCallback(){__classPrivateFieldGet(this,_KupPdf_kupManager,"f").theme.unregister(this)}get rootElement(){return getElement(this)}static get watchers(){return{pdfPath:["onPdfPathChange"]}}};_KupPdf_kupManager=new WeakMap;KupPdf.style=KupPdfStyle0;export{KupPdf as kup_pdf};
|
|
44
|
-
//# sourceMappingURL=p-
|
|
44
|
+
//# sourceMappingURL=p-4a53bf70.entry.js.map
|