@progress/kendo-react-pdf-viewer 6.1.1 → 7.0.0-develop.1

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.
@@ -1,10 +0,0 @@
1
- System.register("@progress/kendo-react-pdf-viewer",["@progress/kendo-pdfviewer-common","@progress/kendo-react-buttons","@progress/kendo-react-common","@progress/kendo-react-data-tools","@progress/kendo-react-dropdowns","@progress/kendo-react-indicators","@progress/kendo-react-inputs","@progress/kendo-react-intl","@progress/kendo-react-upload","@progress/kendo-svg-icons","prop-types","react"],function(e,t){var s={},o={},l={},c={},h={},u={},d={},f={},g={},p={},m={},b={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),Object.defineProperty(h,"__esModule",{value:!0}),Object.defineProperty(u,"__esModule",{value:!0}),Object.defineProperty(d,"__esModule",{value:!0}),Object.defineProperty(f,"__esModule",{value:!0}),Object.defineProperty(g,"__esModule",{value:!0}),Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(m,"__esModule",{value:!0}),Object.defineProperty(b,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){s[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){o[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){l[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){h[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){u[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){d[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){f[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){g[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){p[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){m[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){b[e]=t[e]})}],execute:function(){function i(e){var t=r[e];return void 0!==t||(t=r[e]={exports:{}},a[e](t,t.exports,i)),t.exports}var a,r,n;e((a={464:(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PDFViewer=void 0;const fe=a(954),r=a(895),ge=a(536),pe=a(21),me=a(816),be=a(789),ye=a(445),we=a(142),ve=a(811),xe=a(987),Se=a(233),Ae=(a(16),a(363)),ke=a(490),Ce=a(3),i=["pager","spacer","zoomInOut","zoom","selection","spacer","search","open","download","print"],Fe={minZoom:.5,maxZoom:4,tools:[...i],zoomRate:.25,zoomLevels:[{id:1,priority:1,value:1,text:"Actual width",type:"ActualWidth",locationString:Ce.actualWidth},{id:2,priority:2,value:1,text:"Fit to width",type:"FitToWidth",locationString:Ce.fitToWidth},{id:3,priority:3,value:1,text:"Fit to page",type:"FitToPage",locationString:Ce.fitToPage},{id:4,priority:4,value:.5,text:"50%",type:""},{id:5,priority:5,value:.75,text:"75%",type:""},{id:6,priority:100,value:1,text:"100%",type:""},{id:7,priority:7,value:1.25,text:"125%",type:""},{id:8,priority:8,value:1.5,text:"150%",type:""},{id:9,priority:9,value:2,text:"200%",type:""},{id:10,priority:10,value:3,text:"300%",type:""},{id:11,priority:11,value:4,text:"400%",type:""}],defaultZoom:ke.DEFAULT_ZOOM_LEVEL},Oe=[".k-toolbar > button",".k-toolbar .k-combobox > input",".k-toolbar .k-button-group > button",".k-toolbar .k-pager > a",".k-toolbar .k-pager input"],Ie=(e,t)=>e.priority>t.priority?-1:e.priority<t.priority?1:0;t.PDFViewer=fe.forwardRef((r,R)=>{(0,ve.validatePackage)(Ae.packageMetadata);const L=(0,ve.shouldShowValidationUI)(Ae.packageMetadata),{zoom:e,zoomLevels:t=Fe.zoomLevels,defaultZoom:a=Fe.defaultZoom,minZoom:i=Fe.minZoom,maxZoom:n=Fe.maxZoom,zoomRate:s=Fe.zoomRate}=r,o=(0,xe.useLocalization)(),l=fe.useRef(null),[$,c]=fe.useState(a),h=void 0!==e?e:$,u=t.slice().sort(Ie).find(e=>e.value===h)||{text:100*h+"%",value:h,id:h,locationString:""},[d,f]=(u.locationString&&(u.text=o.toLanguageString(u.locationString,Ce.messages[u.locationString])),fe.useState(!1)),[_,g]=fe.useState(!0),[p,m]=fe.useState(0),[b,y]=fe.useState(!1),[j,w]=fe.useState(!1),[v,x]=fe.useState(0),[S,A]=fe.useState(0),[k,C]=fe.useState(!1),[F,O]=fe.useState(""),I=fe.useMemo(()=>({}),[]),T=(I.currentZoom=h,I.props=r,fe.useCallback(e=>{l.current&&l.current.style.setProperty("--scale-factor",String(e))},[])),M=fe.useRef(null),P=fe.useRef(null),U=(fe.useImperativeHandle(M,()=>({get element(){return P.current},props:r,get pages(){return I.pages},get document(){return I.document}}),[]),fe.useImperativeHandle(R,()=>M.current),fe.useCallback(()=>{var e;I.props.onLoad&&(e={target:M.current},I.props.onLoad.call(void 0,e))},[])),N=fe.useCallback((e,t,a)=>{return!!r.onDownload&&!(e={target:M.current,blob:e,fileName:t,saveOptions:a})===r.onDownload.call(void 0,e)},[r.onDownload]),X=fe.useCallback(()=>{var e;I.scroller&&I.scroller.destroy(),I.scroller=new ke.Scroller(null==(e=l.current)?void 0:e.parentNode,{filter:".k-page",events:{}}),I.scroller.enablePanEventsTracking()},[]),H=fe.useCallback(e=>{e=Array.from(e.querySelectorAll(".k-text-layer"));I.search=new ke.SearchService({textContainers:e||[],highlightClass:"k-search-highlight",highlightMarkClass:"k-search-highlight-mark",charClass:"k-text-char"})},[]),E=(I.done=fe.useCallback(({pdfPages:e,pdfDoc:t,zoom:a})=>{I.document=t,I.pages=e,I.zoom=a,X(),g(!1),f(!0),U(),l.current&&(0,ke.scrollToPage)(l.current,0)},[]),I.error=fe.useCallback(e=>{I.document=null,I.pages=[],g(!1),f(!1),r.onError&&(e={error:"string"==typeof e?{message:e}:e,target:M.current},r.onError.call(void 0,e))},[r.onError]),fe.useEffect(()=>{l.current&&(r.url||r.data||r.arrayBuffer?(g(!0),(0,ke.removeChildren)(l.current),(0,ke.loadPDF)({url:r.url,data:r.data,arrayBuffer:r.arrayBuffer,dom:l.current,zoom:I.currentZoom,done:I.done,error:I.error}),T(I.currentZoom)):(I.document=null,I.pages=[],f(!1),g(!1),(0,ke.removeChildren)(l.current)))},[r.url,r.data,r.arrayBuffer]),fe.useCallback((e,t)=>{l.current&&(g(!0),(0,ke.removeChildren)(l.current),(0,ke.reloadDocument)({pdfDoc:e,zoom:t,dom:l.current,done:e=>{I.pages=e,I.zoom=t,g(!1)},error:I.error}))},[])),q=(fe.useEffect(()=>{T(h),l.current&&I.document&&h!==I.zoom&&E(I.document,h)},[h,E]),fe.useEffect(()=>()=>{I.scroller&&I.scroller.destroy(),I.search&&I.search.destroy(),I.document=null,I.pages=[]},[]),fe.useCallback(()=>{w(!0),H(l.current)},[])),z=fe.useCallback(e=>{var e=e.value,t=I.search.search({text:e,matchCase:k});A(t.length?1:0),x(t.length),O(e)},[k]),G=fe.useCallback(()=>{var e=I.search.search({text:F,matchCase:!k});A(e.length?1:0),x(e.length),C(!k)},[k,F]),W=fe.useCallback(()=>{(0,ke.goToNextSearchMatch)(I),A(S+1>v?1:S+1)},[S,v]),V=fe.useCallback(()=>{(0,ke.goToPreviousSearchMatch)(I),A(S-1<1?v:S-1)},[S,v]),D=fe.useCallback(()=>{I.search.destroy(),A(0),x(0),C(!1),O(""),w(!1)},[]),K=fe.useCallback(e=>{"Enter"===e.key?(e.preventDefault(),(0,ke.goToNextSearchMatch)(I),A(S+1>v?1:S+1)):"Escape"===e.key&&D()},[S,v]),Y=fe.useCallback(e=>{var t;l.current&&(t=e.skip,(0,ke.scrollToPage)(l.current,t),t={page:t+1,target:M.current,syntheticEvent:e.syntheticEvent},r.onPageChange)&&r.onPageChange.call(void 0,t),m(e.skip)},[p,r.onPageChange]),Z=fe.useCallback(e=>{var t;P.current&&(t=(0,ke.currentPage)(P.current))!==p&&(m(t),t={page:t+1,target:M.current,syntheticEvent:e},r.onPageChange)&&r.onPageChange.call(void 0,t)},[p,r.onPageChange]),J=fe.useCallback(e=>{var t=Math.min(I.currentZoom+s,n);t!==I.currentZoom&&I.document&&(c(t),r.onZoom)&&(t={zoom:t,target:M.current,syntheticEvent:e},r.onZoom.call(void 0,t))},[s,n,r.onZoom]),Q=fe.useCallback(e=>{var t=Math.max(I.currentZoom-s,i);t!==I.currentZoom&&I.document&&(c(t),r.onZoom)&&(t={zoom:t,target:M.current,syntheticEvent:e},r.onZoom.call(void 0,t))},[s,i,r.onZoom]),ee=fe.useCallback(e=>{const t=null===e.value?{text:"100%",value:1,id:100}:Object.assign({},e.value);if(void 0===t.value){const r=parseFloat(t.text);"number"!=typeof r||Number.isNaN(r)?t.value=1:t.value=r/100}var a=t?(0,ke.calculateZoomLevel)(t.value,t.type,I.currentZoom,l.current):1,a=Math.round(100*a)/100;if(I.currentZoom!==a&&I.document&&(c(a),r.onZoom)){const t={zoom:a,target:M.current,syntheticEvent:e.syntheticEvent};r.onZoom.call(void 0,t)}},[r.onZoom]),te=fe.useCallback(()=>{I.scroller.disablePanEventsTracking(),y(!0)},[]),ae=fe.useCallback(()=>{I.scroller.enablePanEventsTracking(),y(!1)},[]),re=fe.useCallback(()=>{(0,ke.download)({pdf:I.document,error:I.error},r.saveFileName,r.saveOptions,N)},[r.url,r.data,r.arrayBuffer,r.saveFileName,r.saveOptions,N]),ie=fe.useCallback(()=>{g(!0),(0,ke.print)(I.pages,()=>{g(!1)},e=>{I.error("string"==typeof(e?e.message||e:null)?e.message||e:o.toLanguageString(Ce.popupBlocked,Ce.messages[Ce.popupBlocked]))})},[]),ne=fe.useCallback(e=>{e=e.newState;e[0]&&e[0].getRawFile&&e[0].getRawFile().arrayBuffer().then(e=>{var t;l.current&&(g(!0),(0,ke.removeChildren)(l.current),t=void 0===I.props.zoom?a:I.props.zoom,(0,ke.loadPDF)({arrayBuffer:e,dom:l.current,zoom:t,done:I.done,error:I.error}),c(t))})},[a]),se=fe.useCallback(e=>{var t=e.target;if(t instanceof Element&&t.parentNode){const e=t.closest(".k-toolbar"),a=e&&e.querySelector(".k-upload input");a&&a.click()}},[]),B=_&&fe.createElement("div",{className:"k-loader-container k-loader-container-md k-loader-top"},fe.createElement("div",{className:"k-loader-container-overlay k-overlay-light"}),fe.createElement("div",{className:"k-loader-container-inner "},fe.createElement(we.Loader,{size:"large"}))),oe=fe.createElement(ge.ButtonGroup,null,fe.createElement(ge.Button,{className:"k-toolbar-button",title:o.toLanguageString(Ce.zoomOut,Ce.messages[Ce.zoomOut]),disabled:h<=i||!d,onClick:Q,icon:"zoom-out",svgIcon:Se.zoomOutIcon}),fe.createElement(ge.Button,{className:"k-toolbar-button",title:o.toLanguageString(Ce.zoomIn,Ce.messages[Ce.zoomIn]),disabled:h>=n||!d,onClick:J,icon:"zoom-in",svgIcon:Se.zoomInIcon})),le=fe.createElement(ye.ComboBox,{disabled:!d,data:t.map(e=>Object.assign(Object.assign({},e),{text:e.locationString?o.toLanguageString(e.locationString,Ce.messages[e.locationString]):e.text})),dataItemKey:"id",textField:"text",value:d?u:null,allowCustom:!0,onChange:ee}),ce={pager:fe.createElement(me.Pager,{previousNext:!0,type:"input",skip:p,take:1,total:I.pages?I.pages.length:0,info:!1,onPageChange:Y}),spacer:fe.createElement(ge.ToolbarSpacer,null),zoomInOut:oe,zoom:le,selection:fe.createElement(ge.ButtonGroup,null,fe.createElement(ge.Button,{className:"k-toolbar-button",title:o.toLanguageString(Ce.enableSelection,Ce.messages[Ce.enableSelection]),icon:"pointer",svgIcon:Se.pointerIcon,disabled:!d,togglable:!0,selected:b&&d,onClick:te}),fe.createElement(ge.Button,{className:"k-toolbar-button",title:o.toLanguageString(Ce.enablePanning,Ce.messages[Ce.enablePanning]),icon:"hand",svgIcon:Se.handIcon,disabled:!d,togglable:!0,selected:!b&&d,onClick:ae})),search:fe.createElement(ge.Button,{className:"k-toolbar-button",title:o.toLanguageString(Ce.search,Ce.messages[Ce.search]),icon:"search",svgIcon:Se.searchIcon,disabled:!d,onClick:q}),open:fe.createElement(fe.Fragment,null,fe.createElement(ge.Button,{className:"k-toolbar-button",title:o.toLanguageString(Ce.open,Ce.messages[Ce.open]),icon:"folder-open",svgIcon:Se.folderOpenIcon,onClick:se}),fe.createElement("div",{style:{display:"none"}},fe.createElement(be.Upload,{restrictions:{allowedExtensions:[".pdf"]},onAdd:ne,autoUpload:!1,defaultFiles:[],multiple:!1,accept:".pdf,.PDF",withCredentials:!1}))),download:fe.createElement(ge.Button,{className:"k-toolbar-button",title:o.toLanguageString(Ce.download,Ce.messages[Ce.download]),icon:"download",svgIcon:Se.downloadIcon,disabled:!d,onClick:re}),print:fe.createElement(ge.Button,{className:"k-toolbar-button",title:o.toLanguageString(Ce.print,Ce.messages[Ce.print]),icon:"print",svgIcon:Se.printIcon,disabled:!d,onClick:ie})},he=(r.tools||Fe.tools).map(e=>ce[e]),ue=fe.createElement(ge.Toolbar,{buttons:Oe},...he),de=fe.createElement("div",{className:(0,ve.classNames)("k-canvas k-pdf-viewer-canvas k-pos-relative k-overflow-auto",{"k-enable-text-select":b,"k-enable-panning":!b}),onScroll:Z},j&&fe.createElement("div",{className:"k-search-panel k-pos-sticky k-top-center"},fe.createElement(pe.TextBox,{value:F,onChange:z,placeholder:o.toLanguageString(Ce.search,Ce.messages[Ce.search]),autoFocus:!0,onKeyDown:K,suffix:()=>fe.createElement(pe.InputSuffix,null,fe.createElement(ge.Button,{icon:"convert-lowercase",svgIcon:Se.convertLowercaseIcon,title:o.toLanguageString(Ce.matchCase,Ce.messages[Ce.matchCase]),fillMode:"flat",togglable:!0,selected:k,onClick:G}))}),fe.createElement("span",{className:"k-search-matches"},fe.createElement("span",null,S)," of ",fe.createElement("span",null,v)),fe.createElement(ge.Button,{title:o.toLanguageString(Ce.prevMatch,Ce.messages[Ce.prevMatch]),fillMode:"flat",icon:"arrow-up",svgIcon:Se.arrowUpIcon,disabled:0===v,onClick:V}),fe.createElement(ge.Button,{title:o.toLanguageString(Ce.nextMatch,Ce.messages[Ce.nextMatch]),fillMode:"flat",icon:"arrow-down",svgIcon:Se.arrowDownIcon,disabled:0===v,onClick:W}),fe.createElement(ge.Button,{title:o.toLanguageString(Ce.close,Ce.messages[Ce.close]),fillMode:"flat",icon:"x",svgIcon:Se.xIcon,onClick:D})),fe.createElement("div",{ref:l,className:"k-pdf-viewer-pages"}));return fe.createElement("div",{className:"k-pdf-viewer",style:r.style,ref:P},r.onRenderLoader?r.onRenderLoader.call(void 0,B||null):B,r.onRenderToolbar?r.onRenderToolbar.call(void 0,ue):ue,r.onRenderContent?r.onRenderContent.call(void 0,de):de,L&&fe.createElement(ve.WatermarkOverlay,null))}),t.PDFViewer.displayName="KendoReactPDFViewer",t.PDFViewer.propTypes={url:r.string,data:r.string,arrayBuffer:r.any,typedArray:r.any,style:r.object,saveFileName:r.string,saveOptions:r.object,tools:r.arrayOf(r.oneOf(i).isRequired),zoomLevels:r.arrayOf(r.any),zoom:r.number,defaultZoom:r.number,minZoom:r.number,maxZoom:r.number,zoomRate:r.number,onError:r.func,onLoad:r.func,onDownload:r.func,onRenderToolbar:r.func,onRenderContent:r.func,onRenderLoader:r.func,onZoom:r.func},t.PDFViewer.defaultProps=Fe},3:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.messages=t.popupBlocked=t.fitToPage=t.fitToWidth=t.actualWidth=t.nextMatch=t.prevMatch=t.matchCase=t.close=t.print=t.download=t.open=t.search=t.enablePanning=t.enableSelection=t.zoomOut=t.zoomIn=void 0,t.zoomIn="pdfviewer.zoomIn",t.zoomOut="pdfviewer.zoomOut",t.enableSelection="pdfviewer.enableSelection",t.enablePanning="pdfviewer.enablePanning",t.search="pdfviewer.search",t.open="pdfviewer.open",t.download="pdfviewer.download",t.print="pdfviewer.print",t.close="pdfviewer.close",t.matchCase="pdfviewer.matchCase",t.prevMatch="pdfviewer.prevMatch",t.nextMatch="pdfviewer.nextMatch",t.actualWidth="pdfviewer.actualWidth",t.fitToWidth="pdfviewer.fitToWidth",t.fitToPage="pdfviewer.fitToPage",t.popupBlocked="pdfviewer.popupBlocked",t.messages={[t.zoomIn]:"Zoom in",[t.zoomOut]:"Zoom out",[t.enableSelection]:"Enable selection",[t.enablePanning]:"Enable panning",[t.search]:"Search",[t.open]:"Open",[t.download]:"Download",[t.print]:"Print",[t.close]:"Close",[t.matchCase]:"Match case",[t.prevMatch]:"Previous match",[t.nextMatch]:"Next match",[t.actualWidth]:"Actual width",[t.fitToWidth]:"Fit to width",[t.fitToPage]:"Fit to page",[t.popupBlocked]:"Popup is blocked."}},363:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-pdf-viewer",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700065590,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},16:(e,t,a)=>{("undefined"!=typeof window?window:{}).pdfjsWorker=a(624)},624:e=>{var t=globalThis;e.exports=t.pdfjsWorker=(()=>(()=>{"use strict";var a=[,(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WorkerTask=t.WorkerMessageHandler=void 0;var F=a(2),O=a(3),I=a(4),p=a(6),T=a(10),u=a(68),M=a(73),m=a(104),b=a(105),P=a(72);class N{constructor(e){this.name=e,this.terminated=!1,this._capability=new F.PromiseCapability}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}t.WorkerTask=N;class i{static setup(t,a){let r=!1;t.on("test",function(e){r||(r=!0,t.send("test",e instanceof Uint8Array))}),t.on("configure",function(e){(0,F.setVerbosityLevel)(e.verbosity)}),t.on("GetDocRequest",function(e){return i.createDocumentHandler(e,a)})}static createDocumentHandler(n,e){let A,s=!1,d=null;const a=new Set,o=(0,F.getVerbosityLevel)(),{docId:f,apiVersion:t}=n,r="3.11.174";if(t!==r)throw new Error(`The API version "${t}" does not match the Worker version "${r}".`);var i=[];for(const n in[])i.push(n);if(i.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+i.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");var l=f+"_worker";let k=new m.MessageHandler(l,f,e);function g(){if(s)throw new Error("Worker was terminated")}function c(e){a.add(e)}function C(e){e.finish(),a.delete(e)}async function h(e){await A.ensureDoc("checkHeader"),await A.ensureDoc("parseStartXRef"),await A.ensureDoc("parse",[e]),await A.ensureDoc("checkFirstPage",[e]),await A.ensureDoc("checkLastPage",[e]);e=await A.ensureDoc("isPureXfa");if(e){const e=new N("loadXfaFonts");c(e),await Promise.all([A.loadXfaFonts(k,e).catch(e=>{}).then(()=>C(e)),A.loadXfaImages()])}var[t,a]=await Promise.all([A.ensureDoc("numPages"),A.ensureDoc("fingerprints")]);return{numPages:t,fingerprints:a,htmlForXfa:e?await A.ensureDoc("htmlForXfa"):null}}return k.on("GetPage",function(e){return A.getPage(e.pageIndex).then(function(e){return Promise.all([A.ensure(e,"rotate"),A.ensure(e,"ref"),A.ensure(e,"userUnit"),A.ensure(e,"view")]).then(function([e,t,a,r]){return{rotate:e,ref:t,userUnit:a,view:r}})})}),k.on("GetPageIndex",function(e){e=I.Ref.get(e.num,e.gen);return A.ensureCatalog("getPageIndex",[e])}),k.on("GetDestinations",function(e){return A.ensureCatalog("destinations")}),k.on("GetDestination",function(e){return A.ensureCatalog("getDestination",[e.id])}),k.on("GetPageLabels",function(e){return A.ensureCatalog("pageLabels")}),k.on("GetPageLayout",function(e){return A.ensureCatalog("pageLayout")}),k.on("GetPageMode",function(e){return A.ensureCatalog("pageMode")}),k.on("GetViewerPreferences",function(e){return A.ensureCatalog("viewerPreferences")}),k.on("GetOpenAction",function(e){return A.ensureCatalog("openAction")}),k.on("GetAttachments",function(e){return A.ensureCatalog("attachments")}),k.on("GetDocJSActions",function(e){return A.ensureCatalog("jsActions")}),k.on("GetPageJSActions",function({pageIndex:e}){return A.getPage(e).then(function(e){return A.ensure(e,"jsActions")})}),k.on("GetOutline",function(e){return A.ensureCatalog("documentOutline")}),k.on("GetOptionalContentConfig",function(e){return A.ensureCatalog("optionalContentConfig")}),k.on("GetPermissions",function(e){return A.ensureCatalog("permissions")}),k.on("GetMetadata",function(e){return Promise.all([A.ensureDoc("documentInfo"),A.ensureCatalog("metadata")])}),k.on("GetMarkInfo",function(e){return A.ensureCatalog("markInfo")}),k.on("GetData",function(e){return A.requestLoadedStream().then(function(e){return e.bytes})}),k.on("GetAnnotations",function({pageIndex:a,intent:r}){return A.getPage(a).then(function(e){const t=new N("GetAnnotations: page "+a);return c(t),e.getAnnotationsData(k,t,r).then(e=>(C(t),e),e=>{throw C(t),e})})}),k.on("GetFieldObjects",function(e){return A.ensureDoc("fieldObjects")}),k.on("HasJSActions",function(e){return A.ensureDoc("hasJSActions")}),k.on("GetCalculationOrderIds",function(e){return A.ensureDoc("calculationOrderIds")}),k.on("SaveDocument",async function({isPureXfa:a,numPages:e,annotationStorage:r,filename:t}){const i=[A.requestLoadedStream(),A.ensureCatalog("acroForm"),A.ensureCatalog("acroFormRef"),A.ensureDoc("startXRef"),A.ensureDoc("xref"),A.ensureDoc("linearization"),A.ensureCatalog("structTreeRoot")],n=[],s=a?null:(0,O.getNewAnnotationsMap)(r),[o,l,c,h,u,d,f]=await Promise.all(i),g=u.trailer.getRaw("Root")||null;let p;if(s){f?await f.canUpdateStructTree({pdfManager:A,newAnnotationsByPage:s})&&(p=f):await P.StructTreeRoot.canCreateStructureTree({catalogRef:g,pdfManager:A,newAnnotationsByPage:s})&&(p=null);const a=T.AnnotationFactory.generateImages(r.values(),u,A.evaluatorOptions.isOffscreenCanvasSupported),e=void 0===p?n:[];for(const[r,F]of s)e.push(A.getPage(r).then(e=>{const t=new N("Save (editor): page "+r);return e.saveNewAnnotations(k,t,F,a).finally(function(){C(t)})}));null===p?n.push(Promise.all(e).then(async e=>(await P.StructTreeRoot.createStructureTree({newAnnotationsByPage:s,xref:u,catalogRef:g,pdfManager:A,newRefs:e}),e))):p&&n.push(Promise.all(e).then(async e=>(await p.updateStructureTree({newAnnotationsByPage:s,pdfManager:A,newRefs:e}),e)))}if(a)n.push(A.serializeXfaData(r));else for(let a=0;a<e;a++)n.push(A.getPage(a).then(function(e){const t=new N("Save: page "+a);return e.save(k,t,r).finally(function(){C(t)})}));var m=await Promise.all(n);let b=[],y=null;if(a){if(!(y=m[0]))return o.bytes}else if(0===(b=m.flat(2)).length)return o.bytes;var a=c&&l instanceof I.Dict&&b.some(e=>e.needAppearances),w=l instanceof I.Dict&&l.get("XFA")||null;let v=null,x=!1;if(Array.isArray(w)){for(let e=0,t=w.length;e<t;e+=2)"datasets"===w[e]&&(v=w[e+1],x=!0);null===v&&(v=u.getNewTemporaryRef())}else w&&(0,F.warn)("Unsupported XFA type.");let S=Object.create(null);if(u.trailer){const a=Object.create(null),e=u.trailer.get("Info")||null;e instanceof I.Dict&&e.forEach((e,t)=>{"string"==typeof t&&(a[e]=(0,F.stringToPDFString)(t))}),S={rootRef:g,encryptRef:u.trailer.getRaw("Encrypt")||null,newRef:u.getNewTemporaryRef(),infoRef:u.trailer.getRaw("Info")||null,info:a,fileIds:u.trailer.get("ID")||null,startXRef:d?h:u.lastXRefStreamPos??h,filename:t}}return(0,M.incrementalUpdate)({originalData:o.bytes,xrefInfo:S,newRefs:b,xref:u,hasXfa:!!w,xfaDatasetsRef:v,hasXfaDatasetsEntry:x,needAppearances:a,acroFormRef:c,acroForm:l,xfaData:y}).finally(()=>{u.resetNewTemporaryRef()})}),k.on("GetOperatorList",function(r,i){const n=r.pageIndex;A.getPage(n).then(function(e){const t=new N("GetOperatorList: page "+n),a=(c(t),o>=F.VerbosityLevel.INFOS?Date.now():0);e.getOperatorList({handler:k,sink:i,task:t,intent:r.intent,cacheKey:r.cacheKey,annotationStorage:r.annotationStorage}).then(function(e){C(t),a&&(0,F.info)(`page=${n+1} - getOperatorList: time=${Date.now()-a}ms, len=`+e.length),i.close()},function(e){C(t),t.terminated||i.error(e)})})}),k.on("GetTextContent",function(e,r){const{pageIndex:i,includeMarkedContent:n,disableNormalization:s}=e;A.getPage(i).then(function(e){const t=new N("GetTextContent: page "+i),a=(c(t),o>=F.VerbosityLevel.INFOS?Date.now():0);e.extractTextContent({handler:k,task:t,sink:r,includeMarkedContent:n,disableNormalization:s}).then(function(){C(t),a&&(0,F.info)(`page=${i+1} - getTextContent: time=`+(Date.now()-a)+"ms"),r.close()},function(e){C(t),t.terminated||r.error(e)})})}),k.on("GetStructTree",function(e){return A.getPage(e.pageIndex).then(function(e){return A.ensure(e,"getStructTree")})}),k.on("FontFallback",function(e){return A.fontFallback(e.id,k)}),k.on("Cleanup",function(e){return A.cleanup(!0)}),k.on("Terminate",function(e){s=!0;var t=[];if(A){A.terminate(new F.AbortException("Worker was terminated."));const e=A.cleanup();t.push(e),A=null}else(0,u.clearGlobalCaches)();d&&d(new F.AbortException("Worker was terminated."));for(const e of a)t.push(e.finished),e.terminate();return Promise.all(t).then(function(){k.destroy(),k=null})}),k.on("Ready",function(e){function t(e){g(),k.send("GetDoc",{pdfInfo:e})}function a(e){if(g(),e instanceof F.PasswordException){const t=new N("PasswordException: response "+e.code);c(t),k.sendWithPromise("PasswordRequest",e).then(function({password:e}){C(t),A.updatePassword(e),r()}).catch(function(){C(t),k.send("DocException",e)})}else e instanceof F.InvalidPDFException||e instanceof F.MissingPDFException||e instanceof F.UnexpectedResponseException||e instanceof F.UnknownErrorException?k.send("DocException",e):k.send("DocException",new F.UnknownErrorException(e.message,e.toString()))}function r(){g(),h(!1).then(t,function(e){g(),e instanceof O.XRefParseException?A.requestLoadedStream().then(function(){g(),h(!0).then(t,a)}):a(e)})}var i;i=n,g(),function({data:e,password:t,disableAutoFetch:a,rangeChunkSize:r,length:o,docBaseUrl:i,enableXfa:n,evaluatorOptions:s}){const l={source:null,disableAutoFetch:a,docBaseUrl:i,docId:f,enableXfa:n,evaluatorOptions:s,handler:k,length:o,password:t,rangeChunkSize:r},c=new F.PromiseCapability;let h;if(e)try{l.source=e,h=new p.LocalPdfManager(l),c.resolve(h)}catch(e){c.reject(e)}else{let t,n=[];try{t=new b.PDFWorkerStream(k)}catch(e){return c.reject(e),c.promise}const u=t.getFullReader();u.headersReady.then(function(){if(u.isRangeSupported){l.source=t,l.length=u.contentLength,l.disableAutoFetch||=u.isStreamingSupported,h=new p.NetworkPdfManager(l);for(const e of n)h.sendProgressiveData(e);n=[],c.resolve(h),d=null}}).catch(function(e){c.reject(e),d=null});let s=0;new Promise(function(e,r){const i=function({value:e,done:t}){try{if(g(),t){if(!h){var a=(0,O.arrayBuffersToBytes)(n);o&&a.length!==o&&(0,F.warn)("reported HTTP length is different from actual");try{l.source=a,h=new p.LocalPdfManager(l),c.resolve(h)}catch(a){c.reject(a)}n=[]}d=null}else s+=e.byteLength,u.isStreamingSupported||k.send("DocProgress",{loaded:s,total:Math.max(s,u.contentLength||0)}),h?h.sendProgressiveData(e):n.push(e),u.read().then(i,r)}catch(e){r(e)}};u.read().then(i,r)}).catch(function(e){c.reject(e),d=null}),d=function(e){t.cancelAllRequests(e)}}return c.promise}(i).then(function(e){if(s)throw e.terminate(new F.AbortException("Worker was terminated.")),new Error("Worker was terminated");(A=e).requestLoadedStream(!0).then(e=>{k.send("DataLoaded",{length:e.bytes.byteLength})})}).then(r,a),n=null}),l}static initializeFromPort(e){var t=new m.MessageHandler("worker","main",e);i.setup(t,e),t.send("ready",null)}}t.WorkerMessageHandler=i,"undefined"==typeof window&&!F.isNodeJS&&"undefined"!=typeof self&&"function"==typeof(a=self).postMessage&&"onmessage"in a&&i.initializeFromPort(self)},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PromiseCapability=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationReplyType=t.AnnotationPrefix=t.AnnotationMode=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.assert=function(e,t){e||n(t)},t.bytesToString=c,t.createValidAbsoluteUrl=function(e,t=null,a=null){if(e)try{if(a&&"string"==typeof e){if(a.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);2<=t?.length&&(e="http://"+e)}if(a.tryConvertEncoding)try{e=f(e)}catch{}}var r=t?new URL(e,t):new URL(e);if(function(){switch(r?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return 1;default:return}}())return r}catch{}return null},t.getModificationDate=function(e=new Date){return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getUuid=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto?.randomUUID)return crypto.randomUUID();var t=new Uint8Array(32);if("undefined"!=typeof crypto&&"function"==typeof crypto?.getRandomValues)crypto.getRandomValues(t);else for(let e=0;e<32;e++)t[e]=Math.floor(255*Math.random());return c(t)},t.getVerbosityLevel=function(){return i},t.info=function(e){i>=r.INFOS&&console.log("Info: "+e)},t.isArrayBuffer=function(e){return"object"==typeof e&&void 0!==e?.byteLength},t.isArrayEqual=function(a,r){if(a.length!==r.length)return!1;for(let e=0,t=a.length;e<t;e++)if(a[e]!==r[e])return!1;return!0},t.isNodeJS=void 0,t.normalizeUnicode=function(e){return g||(g=/([\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,p=new Map([["ſt","ſt"]])),e.replaceAll(g,(e,t,a)=>t?t.normalize("NFKC"):p.get(a))},t.objectFromMap=function(e){var t,a,r=Object.create(null);for([t,a]of e)r[t]=a;return r},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(i=e)},t.shadow=o,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=h,t.stringToPDFString=function(a){if("ï"<=a[0]){let e;if("þ"===a[0]&&"ÿ"===a[1]?e="utf-16be":"ÿ"===a[0]&&"þ"===a[1]?e="utf-16le":"ï"===a[0]&&"»"===a[1]&&"¿"===a[2]&&(e="utf-8"),e)try{var t=new TextDecoder(e,{fatal:!0}),r=h(a);return t.decode(r)}catch(a){s(`stringToPDFString: "${a}".`)}}var i=[];for(let e=0,t=a.length;e<t;e++){var n=d[a.charCodeAt(e)];i.push(n?String.fromCharCode(n):a.charAt(e))}return i.join("")},t.stringToUTF8String=f,t.unreachable=n,t.utf8StringToString=function(e){return unescape(encodeURIComponent(e))},t.warn=s;var a=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=a,t.IDENTITY_MATRIX=[1,0,0,1,0,0],t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0],t.MAX_IMAGE_SIZE_TO_CACHE=1e7,t.LINE_FACTOR=1.35,t.LINE_DESCENT_FACTOR=.35,t.BASELINE_FACTOR=.25925925925925924,t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256},t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3},t.AnnotationEditorPrefix="pdfjs_internal_editor_",t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15},t.AnnotationEditorParamsType={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23},t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},t.TextRenderingMode={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},t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},t.AnnotationType={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},t.AnnotationReplyType={GROUP:"Group",REPLY:"R"},t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},t.AnnotationFieldFlag={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},t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},t.AnnotationActionEventType={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"},t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},t.PageActionEventType={O:"PageOpen",C:"PageClose"};const r={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=r,t.CMapCompressionType={NONE:0,BINARY:1},t.OPS={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},t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let i=r.WARNINGS;function s(e){i>=r.WARNINGS&&console.log("Warning: "+e)}function n(e){throw new Error(e)}function o(e,t,a,r=!1){return Object.defineProperty(e,t,{value:a,enumerable:!r,configurable:!0,writable:!1}),a}l.prototype=new Error;a=l.constructor=l;function l(e,t){this.constructor===l&&n("Cannot initialize BaseException."),this.message=e,this.name=t}function c(t){"object"==typeof t&&void 0!==t?.length||n("Invalid argument for bytesToString");var a=t.length;if(a<8192)return String.fromCharCode.apply(null,t);var r=[];for(let e=0;e<a;e+=8192){const i=Math.min(e+8192,a),n=t.subarray(e,i);r.push(String.fromCharCode.apply(null,n))}return r.join("")}function h(t){"string"!=typeof t&&n("Invalid argument for stringToBytes");var a=t.length,r=new Uint8Array(a);for(let e=0;e<a;++e)r[e]=255&t.charCodeAt(e);return r}t.BaseException=a,t.PasswordException=class extends a{constructor(e,t){super(e,"PasswordException"),this.code=t}},t.UnknownErrorException=class extends a{constructor(e,t){super(e,"UnknownErrorException"),this.details=t}},t.InvalidPDFException=class extends a{constructor(e){super(e,"InvalidPDFException")}},t.MissingPDFException=class extends a{constructor(e){super(e,"MissingPDFException")}},t.UnexpectedResponseException=class extends a{constructor(e,t){super(e,"UnexpectedResponseException"),this.status=t}},t.FormatError=class extends a{constructor(e){super(e,"FormatError")}},t.AbortException=class extends a{constructor(e){super(e,"AbortException")}},t.FeatureTest=class{static get isLittleEndian(){return o(this,"isLittleEndian",((e=new Uint8Array(4))[0]=1)===new Uint32Array(e.buffer,0,1)[0]);var e}static get isEvalSupported(){return o(this,"isEvalSupported",function(){try{return new Function(""),!0}catch{return!1}}())}static get isOffscreenCanvasSupported(){return o(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}static get platform(){return"undefined"==typeof navigator?o(this,"platform",{isWin:!1,isMac:!1}):o(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){return o(this,"isCSSRoundSupported",globalThis.CSS?.supports?.("width: round(1.5px, 1px)"))}};const u=[...Array(256).keys()].map(e=>e.toString(16).padStart(2,"0")),d=(t.Util=class{static makeHexColor(e,t,a){return"#"+u[e]+u[t]+u[a]}static scaleMinMax(e,t){let a;e[0]?(e[0]<0&&(a=t[0],t[0]=t[1],t[1]=a),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(a=t[2],t[2]=t[3],t[3]=a),t[2]*=e[3],t[3]*=e[3]):(a=t[0],t[0]=t[2],t[2]=a,a=t[1],t[1]=t[3],t[3]=a,e[1]<0&&(a=t[2],t[2]=t[3],t[3]=a),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(a=t[0],t[0]=t[1],t[1]=a),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){var a=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/a,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/a]}static getAxialAlignedBoundingBox(e,t){var a=this.applyTransform(e,t),r=this.applyTransform(e.slice(2,4),t),i=this.applyTransform([e[0],e[3]],t),e=this.applyTransform([e[2],e[1]],t);return[Math.min(a[0],r[0],i[0],e[0]),Math.min(a[1],r[1],i[1],e[1]),Math.max(a[0],r[0],i[0],e[0]),Math.max(a[1],r[1],i[1],e[1])]}static inverseTransform(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){var t=[e[0],e[2],e[1],e[3]],a=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],i=e[2]*t[0]+e[3]*t[2],e=e[2]*t[1]+e[3]*t[3],t=(a+e)/2,a=Math.sqrt((a+e)**2-4*(a*e-i*r))/2,e=t-a||1;return[Math.sqrt(t+a||1),Math.sqrt(e)]}static normalizeRect(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){var a,r=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),i=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));return i<r||(a=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),(e=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3])))<a)?null:[r,a,i,e]}static bezierBoundingBox(t,a,r,i,n,s,o,l){var c=[],e=[[],[]];let h,u,d,f,g,p,m,b;for(let e=0;e<2;++e)if(d=0===e?(u=6*t-12*r+6*n,h=-3*t+9*r-9*n+3*o,3*r-3*t):(u=6*a-12*i+6*s,h=-3*a+9*i-9*s+3*l,3*i-3*a),Math.abs(h)<1e-12){if(Math.abs(u)<1e-12)continue;0<(f=-d/u)&&f<1&&c.push(f)}else m=u*u-4*d*h,b=Math.sqrt(m),m<0||(0<(g=(-u+b)/(2*h))&&g<1&&c.push(g),0<(p=(-u-b)/(2*h))&&p<1&&c.push(p));let y,w=c.length;for(var v=w;w--;)y=1-(f=c[w]),e[0][w]=y*y*y*t+3*y*y*f*r+3*y*f*f*n+f*f*f*o,e[1][w]=y*y*y*a+3*y*y*f*i+3*y*f*f*s+f*f*f*l;return e[0][v]=t,e[1][v]=a,e[0][v+1]=o,e[1][v+1]=l,e[0].length=e[1].length=v+2,[Math.min(...e[0]),Math.min(...e[1]),Math.max(...e[0]),Math.max(...e[1])]}},[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 f(e){return decodeURIComponent(escape(e))}t.PromiseCapability=class{#e=!1;constructor(){this.promise=new Promise((t,a)=>{this.resolve=e=>{this.#e=!0,t(e)},this.reject=e=>{this.#e=!0,a(e)}})}get settled(){return this.#e}};let g=null,p=null;t.AnnotationPrefix="pdfjs_internal_id_"},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XRefParseException=t.XRefEntryException=t.ParserEOFException=t.PDF_VERSION_REGEXP=t.MissingDataException=void 0,t.arrayBuffersToBytes=function(t){const a=t.length;if(0===a)return new Uint8Array(0);if(1===a)return new Uint8Array(t[0]);let r=0;for(let e=0;e<a;e++)r+=t[e].byteLength;var i=new Uint8Array(r);let n=0;for(let e=0;e<a;e++){const a=new Uint8Array(t[e]);i.set(a,n),n+=a.byteLength}return i},t.collectActions=function(t,a,r){const i=Object.create(null),n=h({dict:a,key:"AA",stopWhenFound:!1});if(n)for(let e=n.length-1;0<=e;e--){const o=n[e];if(o instanceof l.Dict)for(const a of o.getKeys()){const n=r[a];var s;n&&(s=[],d(o.getRaw(a),t,s,new l.RefSet),0<s.length)&&(i[n]=s)}}if(a.has("A")){const r=[];d(a.get("A"),t,r,new l.RefSet),0<r.length&&(i.Action=r)}return 0<(0,o.objectSize)(i)?i:null},t.encodeToXmlString=function(a){var r=[];let i=0;for(let e=0,t=a.length;e<t;e++){var n,s=a.codePointAt(e);32<=s&&s<=126?(n=f[s])&&(i<e&&r.push(a.substring(i,e)),r.push(n),i=e+1):(i<e&&r.push(a.substring(i,e)),r.push(`&#x${s.toString(16).toUpperCase()};`),55295<s&&(s<57344||65533<s)&&e++,i=e+1)}return 0===r.length?a:(i<a.length&&r.push(a.substring(i,a.length)),r.join(""))},t.escapePDFName=function(a){var r=[];let i=0;for(let e=0,t=a.length;e<t;e++){var n=a.charCodeAt(e);(n<33||126<n||35===n||40===n||41===n||60===n||62===n||91===n||93===n||123===n||125===n||47===n||37===n)&&(i<e&&r.push(a.substring(i,e)),r.push("#"+n.toString(16)),i=e+1)}return 0===r.length?a:(i<a.length&&r.push(a.substring(i,a.length)),r.join(""))},t.escapeString=function(e){return e.replaceAll(/([()\\\n\r])/g,e=>"\n"===e?"\\n":"\r"===e?"\\r":"\\"+e)},t.getInheritableProperty=h,t.getLookupTableFactory=function(e){let t;return function(){return e&&(t=Object.create(null),e(t),e=null),t}},t.getNewAnnotationsMap=function(e){if(!e)return null;var t,a,r=new Map;for([t,a]of e)if(t.startsWith(o.AnnotationEditorPrefix)){let e=r.get(a.pageIndex);e||(e=[],r.set(a.pageIndex,e)),e.push(a)}return 0<r.size?r:null},t.getRotationMatrix=function(e,t,a){switch(e){case 90:return[0,1,-1,0,t,0];case 180:return[-1,0,0,-1,t,a];case 270:return[0,-1,1,0,0,a];default:throw new Error("Invalid rotation")}},t.isAscii=function(e){return/^[\x00-\x7F]*$/.test(e)},t.isWhiteSpace=function(e){return 32===e||9===e||13===e||10===e},t.log2=function(e){return e<=0?0:Math.ceil(Math.log2(e))},t.numberToString=function(e){var t;return Number.isInteger(e)?e.toString():(t=Math.round(100*e))%100==0?(t/100).toString():t%10==0?e.toFixed(1):e.toFixed(2)},t.parseXFAPath=function(e){const a=/(.+)\[(\d+)\]$/;return e.split(".").map(e=>{var t=e.match(a);return t?{name:t[1],pos:parseInt(t[2],10)}:{name:e,pos:0}})},t.readInt8=function(e,t){return e[t]<<24>>24},t.readUint16=function(e,t){return e[t]<<8|e[t+1]},t.readUint32=function(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0},t.recoverJsURL=function(t){var a=new RegExp("^\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").replaceAll(".","\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec(t);if(a?.[2]){const t=a[2];let e=!1;return{url:t,newWindow:e="true"===a[3]&&"app.launchURL"===a[1]?!0:e}}return null},t.stringToUTF16HexString=function(a){var r=[];for(let e=0,t=a.length;e<t;e++){var i=a.charCodeAt(e);r.push((i>>8&255).toString(16).padStart(2,"0"),(255&i).toString(16).padStart(2,"0"))}return r.join("")},t.stringToUTF16String=function(a,e=!1){var r=[];e&&r.push("þÿ");for(let e=0,t=a.length;e<t;e++){var i=a.charCodeAt(e);r.push(String.fromCharCode(i>>8&255),String.fromCharCode(255&i))}return r.join("")},t.toRomanNumerals=function(e,t=!1){(0,o.assert)(Number.isInteger(e)&&0<e,"The number should be a positive integer.");for(var a=[];1e3<=e;)e-=1e3,a.push("M");r=e/100|0,e%=100,a.push(u[r]),r=e/10|0,e%=10,a.push(u[10+r]),a.push(u[20+e]);var r=a.join("");return t?r.toLowerCase():r},t.validateCSSFont=function(e){var t=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:a,fontWeight:r,italicAngle:i}=e;return!!g(a,!0)&&(a=r?r.toString():"",e.fontWeight=t.has(a)?a:"400",r=parseFloat(i),e.italicAngle=isNaN(r)||r<-90||90<r?"14":i.toString(),!0)},t.validateFontName=g;var o=a(2),l=a(4),n=a(5);t.PDF_VERSION_REGEXP=/^[1-9]\.\d$/;class r extends o.BaseException{constructor(e,t){super(`Missing data [${e}, ${t})`,"MissingDataException"),this.begin=e,this.end=t}}t.MissingDataException=r;class i extends o.BaseException{constructor(e){super(e,"ParserEOFException")}}t.ParserEOFException=i;class s extends o.BaseException{constructor(e){super(e,"XRefEntryException")}}t.XRefEntryException=s;class c extends o.BaseException{constructor(e){super(e,"XRefParseException")}}function h({dict:e,key:t,getArray:a=!1,stopWhenFound:r=!0}){let i;for(var n=new l.RefSet;e instanceof l.Dict&&(!e.objId||!n.has(e.objId));){e.objId&&n.put(e.objId);const l=a?e.getArray(t):e.get(t);if(void 0!==l){if(r)return l;(i||=[]).push(l)}e=e.get("Parent")}return i}t.XRefParseException=c;const u=["","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 d(t,a,r,i){if(t){let e=null;if(t instanceof l.Ref){if(i.has(t))return;e=t,i.put(e),t=a.fetch(t)}if(Array.isArray(t))for(const o of t)d(o,a,r,i);else if(t instanceof l.Dict){if((0,l.isName)(t.get("S"),"JavaScript")){const a=t.get("JS");let e;a instanceof n.BaseStream?e=a.getString():"string"==typeof a&&(e=a),(e&&=(0,o.stringToPDFString)(e).replaceAll("\0",""))&&r.push(e)}d(t.getRaw("Next"),a,r,i)}e&&i.remove(e)}}const f={60:"&lt;",62:"&gt;",38:"&amp;",34:"&quot;",39:"&apos;"};function g(e,t=!1){const a=/^("|').*("|')$/.exec(e);if(a&&a[1]===a[2]){if(new RegExp("[^\\\\]"+a[1]).test(e.slice(1,-1)))return t&&(0,o.warn)(`FontFamily contains unescaped ${a[1]}: ${e}.`),!1}else for(const a of e.split(/[ \t]+/))if(/^(\d|(-(\d|-)))/.test(a)||!/^[\w-\\]+$/.test(a))return t&&(0,o.warn)(`FontFamily contains invalid <custom-ident>: ${e}.`),!1;return!0}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RefSetCache=t.RefSet=t.Ref=t.Name=t.EOF=t.Dict=t.Cmd=t.CIRCULAR_REF=void 0,t.clearPrimitiveCaches=function(){i=Object.create(null),n=Object.create(null),s=Object.create(null)},t.isCmd=function(e,t){return e instanceof l&&(void 0===t||e.cmd===t)},t.isDict=function(e,t){return e instanceof h&&(void 0===t||g(e.get("Type"),t))},t.isName=g,t.isRefsEqual=function(e,t){return e.num===t.num&&e.gen===t.gen};var r=a(2),a=Symbol("CIRCULAR_REF"),a=(t.CIRCULAR_REF=a,Symbol("EOF"));t.EOF=a;let i=Object.create(null),n=Object.create(null),s=Object.create(null);class o{constructor(e){this.name=e}static get(e){return n[e]||=new o(e)}}t.Name=o;class l{constructor(e){this.cmd=e}static get(e){return i[e]||=new l(e)}}t.Cmd=l;const c=function(){return c};class h{constructor(e=null){this._map=Object.create(null),this.xref=e,this.objId=null,this.suppressEncryption=!1,this.__nonSerializable__=c}assignXref(e){this.xref=e}get size(){return Object.keys(this._map).length}get(e,t,a){let r=this._map[e];return(r=void 0===r&&void 0!==t&&void 0===(r=this._map[t])&&void 0!==a?this._map[a]:r)instanceof u&&this.xref?this.xref.fetch(r,this.suppressEncryption):r}async getAsync(e,t,a){let r=this._map[e];return(r=void 0===r&&void 0!==t&&void 0===(r=this._map[t])&&void 0!==a?this._map[a]:r)instanceof u&&this.xref?this.xref.fetchAsync(r,this.suppressEncryption):r}getArray(e,t,a){let r=this._map[e];if((r=void 0===r&&void 0!==t&&void 0===(r=this._map[t])&&void 0!==a?this._map[a]:r)instanceof u&&this.xref&&(r=this.xref.fetch(r,this.suppressEncryption)),Array.isArray(r))for(let e=0,t=(r=r.slice()).length;e<t;e++)r[e]instanceof u&&this.xref&&(r[e]=this.xref.fetch(r[e],this.suppressEncryption));return r}getRaw(e){return this._map[e]}getKeys(){return Object.keys(this._map)}getRawValues(){return Object.values(this._map)}set(e,t){this._map[e]=t}has(e){return void 0!==this._map[e]}forEach(e){for(const t in this._map)e(t,this.get(t))}static get empty(){var e=new h(null);return e.set=(e,t)=>{(0,r.unreachable)("Should not call `set` on the empty dictionary.")},(0,r.shadow)(this,"empty",e)}static merge({xref:e,dictArray:t,mergeSubDicts:a=!1}){const r=new h(e),i=new Map;for(const e of t)if(e instanceof h)for(const[t,r]of Object.entries(e._map)){let e=i.get(t);if(void 0===e)e=[],i.set(t,e);else if(!(a&&r instanceof h))continue;e.push(r)}for(const[t,a]of i)if(1!==a.length&&a[0]instanceof h){const i=new h(e);for(const e of a)for(const[t,a]of Object.entries(e._map))void 0===i._map[t]&&(i._map[t]=a);0<i.size&&(r._map[t]=i)}else r._map[t]=a[0];return i.clear(),0<r.size?r:h.empty}clone(){var e=new h(this.xref);for(const t of this.getKeys())e.set(t,this.getRaw(t));return e}}t.Dict=h;class u{constructor(e,t){this.num=e,this.gen=t}toString(){return 0===this.gen?this.num+"R":this.num+"R"+this.gen}static fromString(e){var t=s[e];return t||((t=/^(\d+)R(\d*)$/.exec(e))&&"0"!==t[1]?s[e]=new u(parseInt(t[1]),t[2]?parseInt(t[2]):0):null)}static get(e,t){var a=0===t?e+"R":e+"R"+t;return s[a]||=new u(e,t)}}t.Ref=u;class d{constructor(e=null){this._set=new Set(e?._set)}has(e){return this._set.has(e.toString())}put(e){this._set.add(e.toString())}remove(e){this._set.delete(e.toString())}[Symbol.iterator](){return this._set.values()}clear(){this._set.clear()}}t.RefSet=d;class f{constructor(){this._map=new Map}get size(){return this._map.size}get(e){return this._map.get(e.toString())}has(e){return this._map.has(e.toString())}put(e,t){this._map.set(e.toString(),t)}putAlias(e,t){this._map.set(e.toString(),this.get(t))}[Symbol.iterator](){return this._map.values()}clear(){this._map.clear()}}function g(e,t){return e instanceof o&&(void 0===t||e.name===t)}t.RefSetCache=f},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStream=void 0;var r=a(2);t.BaseStream=class i{constructor(){this.constructor===i&&(0,r.unreachable)("Cannot initialize BaseStream.")}get length(){(0,r.unreachable)("Abstract getter `length` accessed")}get isEmpty(){(0,r.unreachable)("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return(0,r.shadow)(this,"isDataLoaded",!0)}getByte(){(0,r.unreachable)("Abstract method `getByte` called")}getBytes(e){(0,r.unreachable)("Abstract method `getBytes` called")}peekByte(){var e=this.getByte();return-1!==e&&this.pos--,e}peekBytes(e){return e=this.getBytes(e),this.pos-=e.length,e}getUint16(){var e=this.getByte(),t=this.getByte();return-1===e||-1===t?-1:(e<<8)+t}getInt32(){return(this.getByte()<<24)+(this.getByte()<<16)+(this.getByte()<<8)+this.getByte()}getByteRange(e,t){(0,r.unreachable)("Abstract method `getByteRange` called")}getString(e){return(0,r.bytesToString)(this.getBytes(e))}skip(e){this.pos+=e||1}reset(){(0,r.unreachable)("Abstract method `reset` called")}moveStart(){(0,r.unreachable)("Abstract method `moveStart` called")}makeSubStream(e,t,a=0){(0,r.unreachable)("Abstract method `makeSubStream` called")}getBaseStreams(){return null}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkPdfManager=t.LocalPdfManager=void 0;var r=a(2),i=a(7),n=a(3),s=a(9),o=a(8);class l{constructor(e){this.constructor===l&&(0,r.unreachable)("Cannot initialize BasePdfManager."),this._docBaseUrl=function(e){if(e){var t=(0,r.createValidAbsoluteUrl)(e);if(t)return t.href;(0,r.warn)(`Invalid absolute docBaseUrl: "${e}".`)}return null}(e.docBaseUrl),this._docId=e.docId,this._password=e.password,this.enableXfa=e.enableXfa,e.evaluatorOptions.isOffscreenCanvasSupported&&=r.FeatureTest.isOffscreenCanvasSupported,this.evaluatorOptions=e.evaluatorOptions}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){return this._docBaseUrl}get catalog(){return this.pdfDocument.catalog}ensureDoc(e,t){return this.ensure(this.pdfDocument,e,t)}ensureXRef(e,t){return this.ensure(this.pdfDocument.xref,e,t)}ensureCatalog(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}getPage(e){return this.pdfDocument.getPage(e)}fontFallback(e,t){return this.pdfDocument.fontFallback(e,t)}loadXfaFonts(e,t){return this.pdfDocument.loadXfaFonts(e,t)}loadXfaImages(){return this.pdfDocument.loadXfaImages()}serializeXfaData(e){return this.pdfDocument.serializeXfaData(e)}cleanup(e=!1){return this.pdfDocument.cleanup(e)}async ensure(e,t,a){(0,r.unreachable)("Abstract method `ensure` called")}requestRange(e,t){(0,r.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(e=0){(0,r.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(e){(0,r.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(e){this._password=e}terminate(e){(0,r.unreachable)("Abstract method `terminate` called")}}t.LocalPdfManager=class extends l{constructor(e){super(e);e=new o.Stream(e.source);this.pdfDocument=new s.PDFDocument(this,e),this._loadedStreamPromise=Promise.resolve(e)}async ensure(e,t,a){t=e[t];return"function"==typeof t?t.apply(e,a):t}requestRange(e,t){return Promise.resolve()}requestLoadedStream(e=0){return this._loadedStreamPromise}terminate(e){}},t.NetworkPdfManager=class extends l{constructor(e){super(e),this.streamManager=new i.ChunkedStreamManager(e.source,{msgHandler:e.handler,length:e.length,disableAutoFetch:e.disableAutoFetch,rangeChunkSize:e.rangeChunkSize}),this.pdfDocument=new s.PDFDocument(this,this.streamManager.getStream())}async ensure(t,a,r){try{var e=t[a];return"function"==typeof e?e.apply(t,r):e}catch(e){if(e instanceof n.MissingDataException)return await this.requestRange(e.begin,e.end),this.ensure(t,a,r);throw e}}requestRange(e,t){return this.streamManager.requestRange(e,t)}requestLoadedStream(e=!1){return this.streamManager.requestAllChunks(e)}sendProgressiveData(e){this.streamManager.onReceiveData({chunk:e})}terminate(e){this.streamManager.abort(e)}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ChunkedStreamManager=t.ChunkedStream=void 0;var l=a(3),n=a(2);class r extends a(8).Stream{constructor(e,t,a){super(new Uint8Array(e),0,e,null),this.chunkSize=t,this._loadedChunks=new Set,this.numChunks=Math.ceil(e/t),this.manager=a,this.progressiveDataLength=0,this.lastSuccessfulEnsureByteChunk=-1}getMissingChunks(){var a=[];for(let e=0,t=this.numChunks;e<t;++e)this._loadedChunks.has(e)||a.push(e);return a}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(e,t){var a=this.chunkSize;if(e%a!=0)throw new Error("Bad begin offset: "+e);var r=e+t.byteLength;if(r%a!=0&&r!==this.bytes.length)throw new Error("Bad end offset: "+r);this.bytes.set(new Uint8Array(t),e);var t=Math.floor(e/a),i=Math.floor((r-1)/a)+1;for(let e=t;e<i;++e)this._loadedChunks.add(e)}onReceiveProgressiveData(e){var t=this.progressiveDataLength,a=Math.floor(t/this.chunkSize),r=(this.bytes.set(new Uint8Array(e),t),t+=e.byteLength,(this.progressiveDataLength=t)>=this.end?this.numChunks:Math.floor(t/this.chunkSize));for(let e=a;e<r;++e)this._loadedChunks.add(e)}ensureByte(e){if(!(e<this.progressiveDataLength)){var t=Math.floor(e/this.chunkSize);if(!(t>this.numChunks)&&t!==this.lastSuccessfulEnsureByteChunk){if(!this._loadedChunks.has(t))throw new l.MissingDataException(e,e+1);this.lastSuccessfulEnsureByteChunk=t}}}ensureRange(t,a){if(!(a<=t||a<=this.progressiveDataLength)){var r=Math.floor(t/this.chunkSize);if(!(r>this.numChunks)){var i=Math.min(Math.floor((a-1)/this.chunkSize)+1,this.numChunks);for(let e=r;e<i;++e)if(!this._loadedChunks.has(e))throw new l.MissingDataException(t,a)}}}nextEmptyChunk(t){var a=this.numChunks;for(let e=0;e<a;++e){var r=(t+e)%a;if(!this._loadedChunks.has(r))return r}return null}hasChunk(e){return this._loadedChunks.has(e)}getByte(){var e=this.pos;return e>=this.end?-1:(e>=this.progressiveDataLength&&this.ensureByte(e),this.bytes[this.pos++])}getBytes(e){var t=this.bytes,a=this.pos,r=this.end;if(!e)return r>this.progressiveDataLength&&this.ensureRange(a,r),t.subarray(a,r);let i=a+e;return(i=i>r?r:i)>this.progressiveDataLength&&this.ensureRange(a,i),this.pos=i,t.subarray(a,i)}getByteRange(e,t){return e<0&&(e=0),(t=t>this.end?this.end:t)>this.progressiveDataLength&&this.ensureRange(e,t),this.bytes.subarray(e,t)}makeSubStream(e,t,a=null){function r(){}t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e),(r.prototype=Object.create(this)).getMissingChunks=function(){var e=this.chunkSize,t=Math.floor(this.start/e),a=Math.floor((this.end-1)/e)+1,r=[];for(let e=t;e<a;++e)this._loadedChunks.has(e)||r.push(e);return r},Object.defineProperty(r.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length},configurable:!0});var i=new r;return i.pos=i.start=e,i.end=e+t||this.end,i.dict=a,i}getBaseStreams(){return[this]}}t.ChunkedStream=r,t.ChunkedStreamManager=class{constructor(e,t){this.length=t.length,this.chunkSize=t.rangeChunkSize,this.stream=new r(this.length,this.chunkSize,this),this.pdfNetworkStream=e,this.disableAutoFetch=t.disableAutoFetch,this.msgHandler=t.msgHandler,this.currRequestId=0,this._chunksNeededByRequest=new Map,this._requestsByChunk=new Map,this._promisesByRequest=new Map,this.progressiveDataLength=0,this.aborted=!1,this._loadedStreamCapability=new n.PromiseCapability}sendRequest(t,e){const n=this.pdfNetworkStream.getRangeReader(t,e);n.isStreamingSupported||(n.onProgress=this.onProgress.bind(this));let s=[],o=0;return new Promise((a,r)=>{const i=({value:e,done:t})=>{try{if(t){const r=(0,l.arrayBuffersToBytes)(s);s=null,void a(r)}else o+=e.byteLength,n.isStreamingSupported&&this.onProgress({loaded:o}),s.push(e),n.read().then(i,r)}catch(e){r(e)}};n.read().then(i,r)}).then(e=>{this.aborted||this.onReceiveData({chunk:e,begin:t})})}requestAllChunks(e=!1){if(!e){const e=this.stream.getMissingChunks();this._requestChunks(e)}return this._loadedStreamCapability.promise}_requestChunks(t){const a=this.currRequestId++,e=new Set;this._chunksNeededByRequest.set(a,e);for(const a of t)this.stream.hasChunk(a)||e.add(a);if(0===e.size)return Promise.resolve();var r=new n.PromiseCapability,i=(this._promisesByRequest.set(a,r),[]);for(const t of e){let e=this._requestsByChunk.get(t);e||(e=[],this._requestsByChunk.set(t,e),i.push(t)),e.push(a)}if(0<i.length){const t=this.groupChunks(i);for(const a of t){const t=a.beginChunk*this.chunkSize,e=Math.min(a.endChunk*this.chunkSize,this.length);this.sendRequest(t,e).catch(r.reject)}}return r.promise.catch(e=>{if(!this.aborted)throw e})}getStream(){return this.stream}requestRange(t,e){e=Math.min(e,this.length);var t=this.getBeginChunk(t),a=this.getEndChunk(e),r=[];for(let e=t;e<a;++e)r.push(e);return this._requestChunks(r)}requestRanges(t=[]){var a=[];for(const e of t){const t=this.getBeginChunk(e.begin),r=this.getEndChunk(e.end);for(let e=t;e<r;++e)a.includes(e)||a.push(e)}return a.sort(function(e,t){return e-t}),this._requestChunks(a)}groupChunks(a){var r=[];let i=-1,n=-1;for(let e=0,t=a.length;e<t;++e){var s=a[e];i<0&&(i=s),0<=n&&n+1!==s&&(r.push({beginChunk:i,endChunk:n+1}),i=s),e+1===a.length&&r.push({beginChunk:i,endChunk:s+1}),n=s}return r}onProgress(e){this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize+e.loaded,total:this.length})}onReceiveData(e){const t=e.chunk,a=void 0===e.begin,r=a?this.progressiveDataLength:e.begin,i=r+t.byteLength,n=Math.floor(r/this.chunkSize),s=i<this.length?Math.floor(i/this.chunkSize):Math.ceil(i/this.chunkSize);a?(this.stream.onReceiveProgressiveData(t),this.progressiveDataLength=i):this.stream.onReceiveData(r,t),this.stream.isDataLoaded&&this._loadedStreamCapability.resolve(this.stream);var o=[];for(let e=n;e<s;++e){const t=this._requestsByChunk.get(e);if(t){this._requestsByChunk.delete(e);for(const a of t){const t=this._chunksNeededByRequest.get(a);t.has(e)&&t.delete(e),0<t.size||o.push(a)}}}if(!this.disableAutoFetch&&0===this._requestsByChunk.size){let e;if(1===this.stream.numChunksLoaded){const t=this.stream.numChunks-1;this.stream.hasChunk(t)||(e=t)}else e=this.stream.nextEmptyChunk(s);Number.isInteger(e)&&this._requestChunks([e])}for(const e of o){const t=this._promisesByRequest.get(e);this._promisesByRequest.delete(e),t.resolve()}this.msgHandler.send("DocProgress",{loaded:this.stream.numChunksLoaded*this.chunkSize,total:this.length})}onError(e){this._loadedStreamCapability.reject(e)}getBeginChunk(e){return Math.floor(e/this.chunkSize)}getEndChunk(e){return Math.floor((e-1)/this.chunkSize)+1}abort(e){this.aborted=!0,this.pdfNetworkStream?.cancelAllRequests(e);for(const t of this._promisesByRequest.values())t.reject(e)}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StringStream=t.Stream=t.NullStream=void 0;var r=a(5),i=a(2);class n extends r.BaseStream{constructor(e,t,a,r){super(),this.bytes=e instanceof Uint8Array?e:new Uint8Array(e),this.start=t||0,this.pos=this.start,this.end=t+a||this.bytes.length,this.dict=r}get length(){return this.end-this.start}get isEmpty(){return 0===this.length}getByte(){return this.pos>=this.end?-1:this.bytes[this.pos++]}getBytes(e){var t=this.bytes,a=this.pos,r=this.end;if(!e)return t.subarray(a,r);let i=a+e;return i>r&&(i=r),this.pos=i,t.subarray(a,i)}getByteRange(e,t){return t>this.end&&(t=this.end),this.bytes.subarray(e=e<0?0:e,t)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(e,t,a=null){return new n(this.bytes.buffer,e,t,a)}}t.Stream=n,t.StringStream=class extends n{constructor(e){super((0,i.stringToBytes)(e))}},t.NullStream=class extends n{constructor(){super(new Uint8Array(0))}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Page=t.PDFDocument=void 0;var p=a(2),f=a(10),m=a(3),b=a(4),y=a(51),s=a(5),n=a(74),r=a(66),i=a(68),o=a(102),l=a(16),c=a(8),w=a(76),v=a(64),x=a(13),h=a(18),u=a(72),d=a(73),g=a(77),S=a(103);const A=[0,0,612,792];class k{constructor({pdfManager:e,xref:t,pageIndex:a,pageDict:r,ref:i,globalIdFactory:n,fontCache:s,builtInCMapCache:o,standardFontDataCache:l,globalImageCache:c,systemFontCache:h,nonBlendModesSet:u,xfaFactory:d}){this.pdfManager=e,this.pageIndex=a,this.pageDict=r,this.xref=t,this.ref=i,this.fontCache=s,this.builtInCMapCache=o,this.standardFontDataCache=l,this.globalImageCache=c,this.systemFontCache=h,this.nonBlendModesSet=u,this.evaluatorOptions=e.evaluatorOptions,this.resourcesPromise=null,this.xfaFactory=d;const f={obj:0};this._localIdFactory=class extends n{static createObjId(){return`p${a}_`+ ++f.obj}static getPageObjId(){return"p"+i.toString()}}}_getInheritableProperty(e,t=!1){e=(0,m.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(e)?1!==e.length&&e[0]instanceof b.Dict?b.Dict.merge({xref:this.xref,dictArray:e}):e[0]:e}get content(){return this.pageDict.getArray("Contents")}get resources(){var e=this._getInheritableProperty("Resources");return(0,p.shadow)(this,"resources",e instanceof b.Dict?e:b.Dict.empty)}_getBoundingBox(e){if(this.xfaData)return this.xfaData.bbox;var t=this._getInheritableProperty(e,!0);if(Array.isArray(t)&&4===t.length){if(0<(t=p.Util.normalizeRect(t))[2]-t[0]&&0<t[3]-t[1])return t;(0,p.warn)(`Empty, or invalid, /${e} entry.`)}return null}get mediaBox(){return(0,p.shadow)(this,"mediaBox",this._getBoundingBox("MediaBox")||A)}get cropBox(){return(0,p.shadow)(this,"cropBox",this._getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){let e=this.pageDict.get("UserUnit");return("number"!=typeof e||e<=0)&&(e=1),(0,p.shadow)(this,"userUnit",e)}get view(){var{cropBox:e,mediaBox:t}=this;if(e!==t&&!(0,p.isArrayEqual)(e,t)){e=p.Util.intersect(e,t);if(e&&0<e[2]-e[0]&&0<e[3]-e[1])return(0,p.shadow)(this,"view",e);(0,p.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,p.shadow)(this,"view",t)}get rotate(){let e=this._getInheritableProperty("Rotate")||0;return e%90!=0?e=0:360<=e?e%=360:e<0&&(e=(e%360+360)%360),(0,p.shadow)(this,"rotate",e)}_onSubStreamError(e,t){if(!this.evaluatorOptions.ignoreErrors)throw e;(0,p.warn)(`getContentStream - ignoring sub-stream (${t}): "${e}".`)}getContentStream(){return this.pdfManager.ensure(this,"content").then(e=>e instanceof s.BaseStream?e:Array.isArray(e)?new h.StreamsSequenceStream(e,this._onSubStreamError.bind(this)):new c.NullStream)}get xfaData(){return(0,p.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}#t(e,t,a){for(const r of e)if(r.id){const e=b.Ref.fromString(r.id);if(!e){(0,p.warn)("A non-linked annotation cannot be modified: "+r.id);continue}if(r.deleted){t.put(e);continue}a?.put(e),r.ref=e,delete r.id}}async saveNewAnnotations(e,t,a,r){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.");const i=new x.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),n=new b.RefSet,s=new b.RefSet;this.#t(a,n,s);var e=this.pageDict,o=this.annotations.filter(e=>!(e instanceof b.Ref&&n.has(e))),t=await f.AnnotationFactory.saveNewAnnotations(i,t,a,r);for(const{ref:e}of t.annotations)e instanceof b.Ref&&!s.has(e)&&o.push(e);a=e.get("Annots"),e.set("Annots",o),r=[],await(0,d.writeObject)(this.ref,e,r,this.xref),a&&e.set("Annots",a),e=t.dependencies;return e.push({ref:this.ref,data:r.join("")},...t.annotations),e}save(e,r,i){const n=new x.PartialEvaluator({xref:this.xref,handler:e,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(e){var t=[];for(const a of e)a.mustBePrinted(i)&&t.push(a.save(n,r,i).catch(function(e){return(0,p.warn)(`save - ignoring annotation data during "${r.name}" task: "${e}".`),null}));return Promise.all(t).then(function(e){return e.filter(e=>!!e)})})}loadResources(e){return this.resourcesPromise||(this.resourcesPromise=this.pdfManager.ensure(this,"resources")),this.resourcesPromise.then(()=>new w.ObjectLoader(this.resources,e,this.xref).load())}getOperatorList({handler:a,sink:r,task:l,intent:c,cacheKey:i,annotationStorage:h=null}){const e=this.getContentStream(),t=this.loadResources(["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"]),u=new x.PartialEvaluator({xref:this.xref,handler:a,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),n=this.xfaFactory?null:(0,m.getNewAnnotationsMap)(h);let d=null,s=Promise.resolve(null);if(n){const a=n.get(this.pageIndex);if(a){const r=this.pdfManager.ensureDoc("annotationGlobals");let t;const c=new Set;for(const{bitmapId:r,bitmap:l}of a)!r||l||c.has(r)||c.add(r);const i=this.evaluatorOptions["isOffscreenCanvasSupported"];if(0<c.size){const r=a.slice();for(const[a,l]of h)a.startsWith(p.AnnotationEditorPrefix)&&l.bitmap&&c.has(l.bitmapId)&&r.push(l);t=f.AnnotationFactory.generateImages(r,this.xref,i)}else t=f.AnnotationFactory.generateImages(a,this.xref,i);d=new b.RefSet,this.#t(a,d,null),s=r.then(e=>e?f.AnnotationFactory.printNewAnnotations(e,u,l,a,t):null)}}var o=Promise.all([e,t]).then(([e])=>{const t=new v.OperatorList(c,r);return a.send("StartRenderPage",{transparency:u.hasBlendModes(this.resources,this.nonBlendModesSet),pageIndex:this.pageIndex,cacheKey:i}),u.getOperatorList({stream:e,task:l,resources:this.resources,operatorList:t}).then(function(){return t})});return Promise.all([o,this._parsedAnnotations,s]).then(function([s,a,r]){if(r){a=a.filter(e=>!(e.ref&&d.has(e.ref)));for(let e=0,t=r.length;e<t;e++){const p=r[e];if(p.refToReplace){const i=a.findIndex(e=>e.ref&&(0,b.isRefsEqual)(e.ref,p.refToReplace));0<=i&&(a.splice(i,1,p),r.splice(e--,1),t--)}}a=a.concat(r)}if(0===a.length||c&p.RenderingIntentFlag.ANNOTATIONS_DISABLE)return s.flush(!0),{length:s.totalLength};const i=!!(c&p.RenderingIntentFlag.ANNOTATIONS_FORMS),e=!!(c&p.RenderingIntentFlag.ANY),t=!!(c&p.RenderingIntentFlag.DISPLAY),n=!!(c&p.RenderingIntentFlag.PRINT),o=[];for(const s of a)(e||t&&s.mustBeViewed(h,i)||n&&s.mustBePrinted(h))&&o.push(s.getOperatorList(u,l,c,i,h).catch(function(e){return(0,p.warn)(`getOperatorList - ignoring annotation data during "${l.name}" task: "${e}".`),{opList:null,separateForm:!1,separateCanvas:!1}}));return Promise.all(o).then(function(e){let t=!1,a=!1;for(var{opList:r,separateForm:i,separateCanvas:n}of e)s.addOpList(r),t||=i,a||=n;return s.flush(!0,{form:t,canvas:a}),{length:s.totalLength}})})}extractTextContent({handler:t,task:a,includeMarkedContent:r,disableNormalization:i,sink:n}){var e=this.getContentStream(),s=this.loadResources(["ExtGState","Font","Properties","XObject"]);return Promise.all([e,s]).then(([e])=>new x.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}).getTextContent({stream:e,task:a,resources:this.resources,includeMarkedContent:r,disableNormalization:i,sink:n,viewBox:this.view}))}async getStructTree(){var e=await this.pdfManager.ensureCatalog("structTreeRoot");return e?(await this._parsedAnnotations,(await this.pdfManager.ensure(this,"_parseStructTree",[e])).serializable):null}_parseStructTree(e){e=new u.StructTreePage(e,this.pageDict);return e.parse(this.ref),e}async getAnnotationsData(e,t,a){const r=await this._parsedAnnotations;if(0===r.length)return r;var i=[],n=[];let s;var o=!!(a&p.RenderingIntentFlag.ANY),l=!!(a&p.RenderingIntentFlag.DISPLAY),c=!!(a&p.RenderingIntentFlag.PRINT);for(const a of r){const r=o||l&&a.viewable;(r||c&&a.printable)&&i.push(a.data),a.hasTextContent&&r&&(s||=new x.PartialEvaluator({xref:this.xref,handler:e,pageIndex:this.pageIndex,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,standardFontDataCache:this.standardFontDataCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions}),n.push(a.extractTextContent(s,t,[-1/0,-1/0,1/0,1/0]).catch(function(e){(0,p.warn)(`getAnnotationsData - ignoring textContent during "${t.name}" task: "${e}".`)})))}return await Promise.all(n),i}get annotations(){var e=this._getInheritableProperty("Annots");return(0,p.shadow)(this,"annotations",Array.isArray(e)?e:[])}get _parsedAnnotations(){var e=this.pdfManager.ensure(this,"annotations").then(async e=>{if(0===e.length)return e;var t=await this.pdfManager.ensureDoc("annotationGlobals");if(!t)return[];var a=[];for(const r of e)a.push(f.AnnotationFactory.create(this.xref,r,t,this._localIdFactory,!1,this.ref).catch(function(e){return(0,p.warn)(`_parsedAnnotations: "${e}".`),null}));const r=[];let i;for(const e of await Promise.all(a))e&&(e instanceof f.PopupAnnotation?i||=[]:r).push(e);return i&&r.push(...i),r});return(0,p.shadow)(this,"_parsedAnnotations",e)}get jsActions(){var e=(0,m.collectActions)(this.xref,this.pageDict,p.PageActionEventType);return(0,p.shadow)(this,"jsActions",e)}}t.Page=k;const C=new Uint8Array([37,80,68,70,45]),F=new Uint8Array([115,116,97,114,116,120,114,101,102]),O=new Uint8Array([101,110,100,111,98,106]);function I(a,r,i=1024,e=!1){var n=r.length,s=a.peekBytes(i),o=s.length-n;if(!(o<=0))if(e){const i=n-1;let t=s.length-1;for(;t>=i;){let e=0;for(;e<n&&s[t-e]===r[i-e];)e++;if(e>=n)return a.pos+=t-i,!0;t--}}else{let t=0;for(;t<=o;){let e=0;for(;e<n&&s[t+e]===r[e];)e++;if(e>=n)return a.pos+=t,!0;t++}}return!1}t.PDFDocument=class{constructor(e,t){if(t.length<=0)throw new p.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=e,this.stream=t,this.xref=new S.XRef(t,e),this._pagePromises=new Map,this._version=null;const a={font:0};this._globalIdFactory=class{static getDocId(){return"g_"+e.docId}static createFontId(){return"f"+ ++a.font}static createObjId(){(0,p.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,p.unreachable)("Abstract method `getPageObjId` called.")}}}parse(e){this.xref.parse(e),this.catalog=new r.Catalog(this.pdfManager,this.xref)}get linearization(){let e=null;try{e=l.Linearization.create(this.stream)}catch(e){if(e instanceof m.MissingDataException)throw e;(0,p.info)(e)}return(0,p.shadow)(this,"linearization",e)}get startXRef(){var a=this.stream;let r=0;if(this.linearization)a.reset(),I(a,O)&&(r=a.pos+6-a.start);else{const p=F.length;let e=!1,t=a.end;for(;!e&&0<t;)(t-=1024-p)<0&&(t=0),a.pos=t,e=I(a,F,1024,!0);if(e){let e;for(a.skip(9);e=a.getByte(),(0,m.isWhiteSpace)(e););let t="";for(;32<=e&&e<=57;)t+=String.fromCharCode(e),e=a.getByte();r=parseInt(t,10),isNaN(r)&&(r=0)}}return(0,p.shadow)(this,"startXRef",r)}checkHeader(){var a=this.stream;if(a.reset(),I(a,C)){a.moveStart(),a.skip(C.length);let e,t="";for(;32<(e=a.getByte())&&t.length<7;)t+=String.fromCharCode(e);m.PDF_VERSION_REGEXP.test(t)?this._version=t:(0,p.warn)("Invalid PDF header version: "+t)}}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){var e=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():(this.linearization||this.catalog).numPages;return(0,p.shadow)(this,"numPages",e)}_hasOnlyDocumentSignatures(e,a=0){return!!Array.isArray(e)&&e.every(e=>{var t;return(e=this.xref.fetchIfRef(e))instanceof b.Dict&&(e.has("Kids")?10<++a?((0,p.warn)("_hasOnlyDocumentSignatures: maximum recursion depth reached"),!1):this._hasOnlyDocumentSignatures(e.get("Kids"),a):(t=(0,b.isName)(e.get("FT"),"Sig"),e=e.get("Rect"),e=Array.isArray(e)&&e.every(e=>0===e),t&&e))})}get _xfaStreams(){var e=this.catalog.acroForm;if(!e)return null;var a=e.get("XFA"),r={"xdp:xdp":"",template:"",datasets:"",config:"",connectionSet:"",localeSet:"",stylesheet:"","/xdp:xdp":""};if(a instanceof s.BaseStream&&!a.isEmpty)r["xdp:xdp"]=a;else{if(!Array.isArray(a)||0===a.length)return null;for(let e=0,t=a.length;e<t;e+=2){var i,n=0===e?"xdp:xdp":e===t-2?"/xdp:xdp":a[e];r.hasOwnProperty(n)&&((i=this.xref.fetchIfRef(a[e+1]))instanceof s.BaseStream&&!i.isEmpty&&(r[n]=i))}}return r}get xfaDatasets(){const e=this._xfaStreams;if(e)for(const a of["datasets","xdp:xdp"]){var t=e[a];if(t)try{const e={[a]:(0,p.stringToUTF8String)(t.getString())};return(0,p.shadow)(this,"xfaDatasets",new o.DatasetReader(e))}catch{(0,p.warn)("XFA - Invalid utf-8 string.");break}}return(0,p.shadow)(this,"xfaDatasets",null)}get xfaData(){var e=this._xfaStreams;if(!e)return null;var t,a,r=Object.create(null);for([t,a]of Object.entries(e))if(a)try{r[t]=(0,p.stringToUTF8String)(a.getString())}catch{return(0,p.warn)("XFA - Invalid utf-8 string."),null}return r}get xfaFactory(){let e;return this.pdfManager.enableXfa&&this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm&&(e=this.xfaData),(0,p.shadow)(this,"xfaFactory",e?new g.XFAFactory(e):null)}get isPureXfa(){return!!this.xfaFactory&&this.xfaFactory.isValid()}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}async loadXfaImages(){var e=await this.pdfManager.ensureCatalog("xfaImages");if(e){const a=e.getKeys(),r=new w.ObjectLoader(e,a,this.xref);await r.load();var t=new Map;for(const r of a){const a=e.get(r);a instanceof s.BaseStream&&t.set(r,a.getBytes())}this.xfaFactory.setImages(t)}}async loadXfaFonts(t,a){const e=await this.pdfManager.ensureCatalog("acroForm");if(e){var r=await e.getAsync("DR");if(r instanceof b.Dict){const l=new w.ObjectLoader(r,["Font"],this.xref),c=(await l.load(),r.get("Font"));if(c instanceof b.Dict){var i=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions);i.useSystemFonts=!1;const h=new x.PartialEvaluator({xref:this.xref,handler:t,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:this.catalog.fontCache,builtInCMapCache:this.catalog.builtInCMapCache,standardFontDataCache:this.catalog.standardFontDataCache,options:i}),u=new v.OperatorList,d=[],f={get font(){return d.at(-1)},set font(e){d.push(e)},clone(){return this}},g=new Map;c.forEach((e,t)=>{g.set(e,t)});var n=[];for(const[t,e]of g){const y=e.get("FontDescriptor");if(y instanceof b.Dict){let e=y.get("FontFamily");const c={fontFamily:e=e.replaceAll(/[ ]+(\d)/g,"$1"),fontWeight:y.get("FontWeight"),italicAngle:-y.get("ItalicAngle")};(0,m.validateCSSFont)(c)&&n.push(h.handleSetFont(r,[b.Name.get(t),1],null,u,a,f,null,c).catch(function(e){return(0,p.warn)(`loadXfaFonts: "${e}".`),null}))}}await Promise.all(n);var s=this.xfaFactory.setFonts(d);if(s){i.ignoreErrors=!0,n.length=0,d.length=0;var o=new Set;for(const t of s)(0,y.getXfaFontName)(t+"-Regular")||o.add(t);o.size&&s.push("PdfJS-Fallback");for(const t of s)if(!o.has(t))for(const e 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 m=t+"-"+e.name,l=(0,y.getXfaFontDict)(m);n.push(h.handleSetFont(r,[b.Name.get(m),1],null,u,a,f,l,{fontFamily:t,fontWeight:e.fontWeight,italicAngle:e.italicAngle}).catch(function(e){return(0,p.warn)(`loadXfaFonts: "${e}".`),null}))}await Promise.all(n),this.xfaFactory.appendFonts(d,o)}}}}}async serializeXfaData(e){return this.xfaFactory?this.xfaFactory.serializeData(e):null}get version(){return this.catalog.version||this._version}get formInfo(){var e={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},t=this.catalog.acroForm;if(t)try{const r=t.get("Fields"),p=Array.isArray(r)&&0<r.length;e.hasFields=p;var a=t.get("XFA");e.hasXfa=Array.isArray(a)&&0<a.length||a instanceof s.BaseStream&&!a.isEmpty;const m=!!(1&t.get("SigFlags")),i=m&&this._hasOnlyDocumentSignatures(r);e.hasAcroForm=p&&!i,e.hasSignatures=m}catch(e){if(e instanceof m.MissingDataException)throw e;(0,p.warn)(`Cannot fetch form information: "${e}".`)}return(0,p.shadow)(this,"formInfo",e)}get documentInfo(){var 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 m.MissingDataException)throw t;(0,p.info)("The document information dictionary is invalid.")}if(e instanceof b.Dict)for(const r of e.getKeys()){var a=e.get(r);switch(r){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"!=typeof a)break;t[r]=(0,p.stringToPDFString)(a);continue;case"Trapped":if(a instanceof b.Name){t[r]=a;continue}break;default:let e;switch(typeof a){case"string":e=(0,p.stringToPDFString)(a);break;case"number":case"boolean":e=a;break;default:a instanceof b.Name&&(e=a)}if(void 0===e){(0,p.warn)(`Bad value, for custom key "${r}", in Info: ${a}.`);continue}t.Custom||(t.Custom=Object.create(null)),t.Custom[r]=e;continue}(0,p.warn)(`Bad value, for key "${r}", in Info: ${a}.`)}return(0,p.shadow)(this,"documentInfo",t)}get fingerprints(){function e(e){return"string"==typeof e&&0<e.length&&"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"!==e}function t(e){var t=[];for(const a of e){const e=a.toString(16);t.push(e.padStart(2,"0"))}return t.join("")}var a=this.xref.trailer.get("ID");let r,i;return Array.isArray(a)&&e(a[0])?(r=(0,p.stringToBytes)(a[0]),a[1]!==a[0]&&e(a[1])&&(i=(0,p.stringToBytes)(a[1]))):r=(0,n.calculateMD5)(this.stream.getByteRange(0,1024),0,1024),(0,p.shadow)(this,"fingerprints",[t(r),i?t(i):null])}async _getLinearizationPage(t){var{catalog:a,linearization:e,xref:r}=this,i=b.Ref.get(e.objectNumberFirst,0);try{const t=await r.fetchAsync(i);if(t instanceof b.Dict){let e=t.getRaw("Type");if(e instanceof b.Ref&&(e=await r.fetchAsync(e)),(0,b.isName)(e,"Page")||!t.has("Type")&&!t.has("Kids"))return a.pageKidsCountCache.has(i)||a.pageKidsCountCache.put(i,1),a.pageIndexCache.has(i)||a.pageIndexCache.put(i,0),[t,i]}throw new p.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(e){return(0,p.warn)(`_getLinearizationPage: "${e.message}".`),a.getPageDict(t)}}getPage(a){var e=this._pagePromises.get(a);if(e)return e;const{catalog:r,linearization:t,xfaFactory:i}=this;let n;return n=(n=i?Promise.resolve([b.Dict.empty,null]):t?.pageFirst===a?this._getLinearizationPage(a):r.getPageDict(a)).then(([e,t])=>new k({pdfManager:this.pdfManager,xref:this.xref,pageIndex:a,pageDict:e,ref:t,globalIdFactory:this._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,systemFontCache:r.systemFontCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:i})),this._pagePromises.set(a,n),n}async checkFirstPage(e=!1){if(!e)try{await this.getPage(0)}catch(e){if(e instanceof m.XRefEntryException)throw this._pagePromises.delete(0),await this.cleanup(),new m.XRefParseException}}async checkLastPage(a=!1){var{catalog:r,pdfManager:i}=this;let n;r.setActualNumPages();try{if(await Promise.all([i.ensureDoc("xfaFactory"),i.ensureDoc("linearization"),i.ensureCatalog("numPages")]),!this.xfaFactory){if(n=(this.linearization||r).numPages,!Number.isInteger(n))throw new p.FormatError("Page count is not an integer.");n<=1||await this.getPage(n-1)}}catch(e){if(this._pagePromises.delete(n-1),await this.cleanup(),e instanceof m.XRefEntryException&&!a)throw new m.XRefParseException;let t;(0,p.warn)(`checkLastPage - invalid /Pages tree /Count: ${n}.`);try{t=await r.getAllPageDicts(a)}catch(i){if(i instanceof m.XRefEntryException&&!a)throw new m.XRefParseException;return void r.setActualNumPages(1)}for(const[a,[p,n]]of t){let e;p instanceof Error?(e=Promise.reject(p)).catch(()=>{}):e=Promise.resolve(new k({pdfManager:i,xref:this.xref,pageIndex:a,pageDict:p,ref:n,globalIdFactory:this._globalIdFactory,fontCache:r.fontCache,builtInCMapCache:r.builtInCMapCache,standardFontDataCache:r.standardFontDataCache,globalImageCache:r.globalImageCache,systemFontCache:r.systemFontCache,nonBlendModesSet:r.nonBlendModesSet,xfaFactory:null})),this._pagePromises.set(a,e)}r.setActualNumPages(t.size)}}fontFallback(e,t){return this.catalog.fontFallback(e,t)}async cleanup(e=!1){return this.catalog?this.catalog.cleanup(e):(0,i.clearGlobalCaches)()}#a(e,t,a,r){var i=this.xref.fetchIfRef(t);if(i.has("T")){const t=(0,p.stringToPDFString)(i.get("T"));e=""===e?t:e+"."+t}if(a.has(e)||a.set(e,[]),a.get(e).push(f.AnnotationFactory.create(this.xref,t,r,this._localIdFactory,!0,null).then(e=>e?.getFieldObject()).catch(function(e){return(0,p.warn)(`#collectFieldObjects: "${e}".`),null})),i.has("Kids"))for(const t of i.get("Kids"))this.#a(e,t,a,r)}get fieldObjects(){var e;return this.formInfo.hasFields?(e=this.pdfManager.ensureDoc("annotationGlobals").then(async t=>{if(!t)return null;const a=Object.create(null),e=new Map;for(const a of this.catalog.acroForm.get("Fields"))this.#a("",a,e,t);var r=[];for(const[t,i]of e)r.push(Promise.all(i).then(e=>{0<(e=e.filter(e=>!!e)).length&&(a[t]=e)}));return await Promise.all(r),a}),(0,p.shadow)(this,"fieldObjects",e)):(0,p.shadow)(this,"fieldObjects",Promise.resolve(null))}get hasJSActions(){var e=this.pdfManager.ensureDoc("_parseHasJSActions");return(0,p.shadow)(this,"hasJSActions",e)}async _parseHasJSActions(){var[e,t]=await Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]);return!!e||!!t&&Object.values(t).some(e=>e.some(e=>null!==e.actions))}get calculationOrderIds(){const e=this.catalog.acroForm;if(!e?.has("CO"))return(0,p.shadow)(this,"calculationOrderIds",null);var t=e.get("CO");if(!Array.isArray(t)||0===t.length)return(0,p.shadow)(this,"calculationOrderIds",null);var a=[];for(const e of t)e instanceof b.Ref&&a.push(e.toString());return 0===a.length?(0,p.shadow)(this,"calculationOrderIds",null):(0,p.shadow)(this,"calculationOrderIds",a)}get annotationGlobals(){return(0,p.shadow)(this,"annotationGlobals",f.AnnotationFactory.createGlobals(this.pdfManager))}}},(R,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PopupAnnotation=e.MarkupAnnotation=e.AnnotationFactory=e.AnnotationBorderStyle=e.Annotation=void 0,e.getQuadPoints=h;var F=t(2),O=t(3),I=t(11),T=t(4),M=t(8),i=t(5),a=t(60),r=t(66),n=t(12),s=t(69),c=t(26),o=t(76),d=t(64),f=t(73),l=t(77);function g(e,t=new Uint8ClampedArray(3)){if(!Array.isArray(e))return t;var a=t||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:return n.ColorSpace.singletons.gray.getRgbItem(e,0,a,0),a;case 3:return n.ColorSpace.singletons.rgb.getRgbItem(e,0,a,0),a;case 4:return n.ColorSpace.singletons.cmyk.getRgbItem(e,0,a,0),a;default:return t}}function p(e){return Array.from(e,e=>e/255)}function h(o,t){var l=o.getArray("QuadPoints");if(!Array.isArray(l)||0===l.length||0<l.length%8)return null;const c=[];for(let s=0,e=l.length/8;s<e;s++){let a=1/0,r=-1/0,i=1/0,n=-1/0;for(let e=8*s,t=8*s+8;e<t;e+=2){const o=l[e],c=l[e+1];a=Math.min(o,a),r=Math.max(o,r),i=Math.min(c,i),n=Math.max(c,n)}if(null!==t&&(a<t[0]||r>t[2]||i<t[1]||n>t[3]))return null;c.push([{x:a,y:n},{x:r,y:n},{x:a,y:i},{x:r,y:i}])}return c}function m(e,t,a){var[t,a,r,i]=F.Util.getAxialAlignedBoundingBox(t,a);return t===r||a===i?[1,0,0,1,e[0],e[1]]:[r=(e[2]-e[0])/(r-t),0,0,i=(e[3]-e[1])/(i-a),e[0]-t*r,e[1]-a*i]}e.AnnotationFactory=class{static createGlobals(n){return Promise.all([n.ensureCatalog("acroForm"),n.ensureDoc("xfaDatasets"),n.ensureCatalog("structTreeRoot"),n.ensureCatalog("baseUrl"),n.ensureCatalog("attachments")]).then(([e,t,a,r,i])=>({pdfManager:n,acroForm:e instanceof T.Dict?e:T.Dict.empty,xfaDatasets:t,structTreeRoot:a,baseUrl:r,attachments:i}),e=>((0,F.warn)(`createGlobals: "${e}".`),null))}static async create(e,t,a,r,i,n){var s=i?await this._getPageIndex(e,t,a.pdfManager):null;return a.pdfManager.ensure(this,"_create",[e,t,a,r,i,s,n])}static _create(e,t,a,r,i=!1,n=null,s=null){var o=e.fetchIfRef(t);if(o instanceof T.Dict){var{acroForm:l,pdfManager:c}=a,r=t instanceof T.Ref?t.toString():"annot_"+r.createObjId(),h=o.get("Subtype"),u={xref:e,ref:t,dict:o,subtype:h=h instanceof T.Name?h.name:null,id:r,annotationGlobals:a,collectFields:i,needAppearances:!i&&!0===l.get("NeedAppearances"),pageIndex:n,evaluatorOptions:c.evaluatorOptions,pageRef:s};switch(h){case"Link":return new L(u);case"Text":return new A(u);case"Widget":var d=(0,O.getInheritableProperty)({dict:o,key:"FT"});switch(d=d instanceof T.Name?d.name:null){case"Tx":return new w(u);case"Btn":return new v(u);case"Ch":return new x(u);case"Sig":return new S(u)}return(0,F.warn)(`Unimplemented widget field type "${d}", falling back to base field type.`),new P(u);case"Popup":return new k(u);case"FreeText":return new C(u);case"Line":return new $(u);case"Square":return new _(u);case"Circle":return new j(u);case"PolyLine":return new N(u);case"Polygon":return new E(u);case"Caret":return new U(u);case"Ink":return new D(u);case"Highlight":return new X(u);case"Underline":return new H(u);case"Squiggly":return new q(u);case"StrikeOut":return new z(u);case"Stamp":return new B(u);case"FileAttachment":return new G(u);default:return i||(h?(0,F.warn)(`Unimplemented annotation type "${h}", falling back to base annotation.`):(0,F.warn)("Annotation is missing the required /Subtype.")),new b(u)}}}static async _getPageIndex(e,t,a){try{var r=await e.fetchIfRefAsync(t);if(!(r instanceof T.Dict))return-1;var i=r.getRaw("P");if(i instanceof T.Ref)try{return await a.ensureCatalog("getPageIndex",[i])}catch(e){(0,F.info)(`_getPageIndex -- not a valid page reference: "${e}".`)}if(r.has("Kids"))return-1;var n=await a.ensureDoc("numPages");for(let e=0;e<n;e++){const F=await a.getPage(e),s=await a.ensure(F,"annotations");for(const a of s)if(a instanceof T.Ref&&(0,T.isRefsEqual)(a,t))return e}}catch(e){(0,F.warn)(`_getPageIndex: "${e}".`)}return-1}static generateImages(e,t,a){if(!a)return(0,F.warn)("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images."),null;let r;for(const{bitmapId:a,bitmap:F}of e)F&&(r||=new Map,r.set(a,B.createImage(F,t)));return r}static async saveNewAnnotations(e,t,a,r){var i=e.xref;let n;var s=[],o=[],l=e.options["isOffscreenCanvasSupported"];for(const c of a)if(!c.deleted)switch(c.annotationType){case F.AnnotationEditorType.FREETEXT:if(!n){const e=new T.Dict(i),t=(e.set("BaseFont",T.Name.get("Helvetica")),e.set("Type",T.Name.get("Font")),e.set("Subtype",T.Name.get("Type1")),e.set("Encoding",T.Name.get("WinAnsiEncoding")),[]);n=i.getNewTemporaryRef(),await(0,f.writeObject)(n,e,t,i),s.push({ref:n,data:t.join("")})}o.push(C.createNewAnnotation(i,c,s,{evaluator:e,task:t,baseFontRef:n}));break;case F.AnnotationEditorType.INK:o.push(D.createNewAnnotation(i,c,s));break;case F.AnnotationEditorType.STAMP:if(l){const a=await r.get(c.bitmapId);if(a.imageStream){const{imageStream:e,smaskStream:t}=a,F=[];if(t){const a=i.getNewTemporaryRef();await(0,f.writeObject)(a,t,F,i),s.push({ref:a,data:F.join("")}),e.dict.set("SMask",a),F.length=0}const r=a.imageRef=i.getNewTemporaryRef();await(0,f.writeObject)(r,e,F,i),s.push({ref:r,data:F.join("")}),a.imageStream=a.smaskStream=null}o.push(B.createNewAnnotation(i,c,s,{image:a}))}}return{annotations:await Promise.all(o),dependencies:s}}static async printNewAnnotations(e,t,a,r,i){if(!r)return null;var{options:n,xref:s}=t,o=[];for(const l of r)if(!l.deleted)switch(l.annotationType){case F.AnnotationEditorType.FREETEXT:o.push(C.createNewPrintAnnotation(e,s,l,{evaluator:t,task:a,evaluatorOptions:n}));break;case F.AnnotationEditorType.INK:o.push(D.createNewPrintAnnotation(e,s,l,{evaluatorOptions:n}));break;case F.AnnotationEditorType.STAMP:if(n.isOffscreenCanvasSupported){const r=await i.get(l.bitmapId);if(r.imageStream){const{imageStream:e,smaskStream:t}=r;t&&e.dict.set("SMask",t),r.imageRef=new c.JpegStream(e,e.length),r.imageStream=r.smaskStream=null}o.push(B.createNewPrintAnnotation(e,s,l,{image:r,evaluatorOptions:n}))}}return Promise.all(o)}};class b{constructor(e){const{dict:t,xref:a,annotationGlobals:r}=e;this.setTitle(t.get("T")),this.setContents(t.get("Contents")),this.setModificationDate(t.get("M")),this.setFlags(t.get("F")),this.setRectangle(t.getArray("Rect")),this.setColor(t.getArray("C")),this.setBorderStyle(t),this.setAppearance(t),this.setOptionalContent(t);var i,n=t.get("MK"),n=(this.setBorderAndBackgroundColors(n),this.setRotation(n,t),this.ref=e.ref instanceof T.Ref?e.ref:null,this._streams=[],this.appearance&&this._streams.push(this.appearance),!!(this.flags&F.AnnotationFlag.LOCKED)),s=!!(this.flags&F.AnnotationFlag.LOCKEDCONTENTS);if(r.structTreeRoot&&(i=t.get("StructParent"),i=Number.isInteger(i)&&0<=i?i:-1,r.structTreeRoot.addAnnotationIdToPage(e.pageRef,i)),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:e.id,modificationDate:this.modificationDate,rect:this.rectangle,subtype:e.subtype,hasOwnCanvas:!1,noRotate:!!(this.flags&F.AnnotationFlag.NOROTATE),noHTML:n&&s},e.collectFields){const r=t.get("Kids");if(Array.isArray(r)){const e=[];for(const t of r)t instanceof T.Ref&&e.push(t.toString());0!==e.length&&(this.data.kidIds=e)}this.data.actions=(0,O.collectActions)(a,t,F.AnnotationActionEventType),this.data.fieldName=this._constructFieldName(t),this.data.pageIndex=e.pageIndex}this._isOffscreenCanvasSupported=e.evaluatorOptions.isOffscreenCanvasSupported,this._fallbackFontDict=null,this._needAppearances=!1}_hasFlag(e,t){return!!(e&t)}_isViewable(e){return!this._hasFlag(e,F.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,F.AnnotationFlag.NOVIEW)}_isPrintable(e){return this._hasFlag(e,F.AnnotationFlag.PRINT)&&!this._hasFlag(e,F.AnnotationFlag.HIDDEN)&&!this._hasFlag(e,F.AnnotationFlag.INVISIBLE)}mustBeViewed(e,t){e=e?.get(this.data.id)?.noView;return void 0!==e?!e:this.viewable&&!this._hasFlag(this.flags,F.AnnotationFlag.HIDDEN)}mustBePrinted(e){e=e?.get(this.data.id)?.noPrint;return void 0!==e?!e:this.printable}get viewable(){return null!==this.data.quadPoints&&(0===this.flags||this._isViewable(this.flags))}get printable(){return null!==this.data.quadPoints&&0!==this.flags&&this._isPrintable(this.flags)}_parseStringHelper(e){e="string"==typeof e?(0,F.stringToPDFString)(e):"";return{str:e,dir:e&&"rtl"===(0,a.bidi)(e).dir?"rtl":"ltr"}}setDefaultAppearance(e){var{dict:e,annotationGlobals:t}=e,e=(0,O.getInheritableProperty)({dict:e,key:"DA"})||t.acroForm.get("DA");this._defaultAppearance="string"==typeof e?e:"",this.data.defaultAppearanceData=(0,I.parseDefaultAppearance)(this._defaultAppearance)}setTitle(e){this._title=this._parseStringHelper(e)}setContents(e){this._contents=this._parseStringHelper(e)}setModificationDate(e){this.modificationDate="string"==typeof e?e:null}setFlags(e){this.flags=Number.isInteger(e)&&0<e?e:0}hasFlag(e){return this._hasFlag(this.flags,e)}setRectangle(e){this.rectangle=Array.isArray(e)&&4===e.length?F.Util.normalizeRect(e):[0,0,0,0]}setColor(e){this.color=g(e)}setLineEndings(t){if(this.lineEndings=["None","None"],Array.isArray(t)&&2===t.length)for(let e=0;e<2;e++){var a=t[e];if(a instanceof T.Name)switch(a.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]=a.name;continue}(0,F.warn)("Ignoring invalid lineEnding: "+a)}}setRotation(e,t){this.rotation=0;let a=e instanceof T.Dict?e.get("R")||0:t.get("Rotate")||0;Number.isInteger(a)&&0!==a&&((a%=360)<0&&(a+=360),a%90==0)&&(this.rotation=a)}setBorderAndBackgroundColors(e){e instanceof T.Dict?(this.borderColor=g(e.getArray("BC"),null),this.backgroundColor=g(e.getArray("BG"),null)):this.borderColor=this.backgroundColor=null}setBorderStyle(e){var t,a;this.borderStyle=new u,e instanceof T.Dict&&(e.has("BS")?(a=(t=e.get("BS")).get("Type"))&&!(0,T.isName)(a,"Border")||(this.borderStyle.setWidth(t.get("W"),this.rectangle),this.borderStyle.setStyle(t.get("S")),this.borderStyle.setDashArray(t.getArray("D"))):e.has("Border")?(a=e.getArray("Border"),Array.isArray(a)&&3<=a.length&&(this.borderStyle.setHorizontalCornerRadius(a[0]),this.borderStyle.setVerticalCornerRadius(a[1]),this.borderStyle.setWidth(a[2],this.rectangle),4===a.length)&&this.borderStyle.setDashArray(a[3],!0)):this.borderStyle.setWidth(0))}setAppearance(e){this.appearance=null;var t=e.get("AP");t instanceof T.Dict&&((t=t.get("N"))instanceof i.BaseStream?this.appearance=t:t instanceof T.Dict&&(e=e.get("AS"))instanceof T.Name&&t.has(e.name)&&(t=t.get(e.name))instanceof i.BaseStream&&(this.appearance=t))}setOptionalContent(e){this.oc=null;e=e.get("OC");e instanceof T.Name?(0,F.warn)("setOptionalContent: Support for /Name-entry is not implemented."):e instanceof T.Dict&&(this.oc=e)}loadResources(t,e){return e.dict.getAsync("Resources").then(e=>{if(e)return new o.ObjectLoader(e,t,e.xref).load().then(function(){return e})})}async getOperatorList(e,t,a,r,i){var n=this.data;let s=this.appearance;a=!!(this.data.hasOwnCanvas&&a&F.RenderingIntentFlag.DISPLAY);if(!s){if(!a)return{opList:new d.OperatorList,separateForm:!1,separateCanvas:!1};(s=new M.StringStream("")).dict=new T.Dict}var o=s.dict,l=await this.loadResources(["ExtGState","ColorSpace","Pattern","Shading","XObject","Font"],s),c=o.getArray("BBox")||[0,0,1,1],o=o.getArray("Matrix")||[1,0,0,1,0,0],c=m(n.rect,c,o),h=new d.OperatorList;let u;return void 0!==(u=this.oc?await e.parseMarkedContentProps(this.oc,null):u)&&h.addOp(F.OPS.beginMarkedContentProps,["OC",u]),h.addOp(F.OPS.beginAnnotation,[n.id,n.rect,c,o,a]),await e.getOperatorList({stream:s,task:t,resources:l,operatorList:h,fallbackFontDict:this._fallbackFontDict}),h.addOp(F.OPS.endAnnotation,[]),void 0!==u&&h.addOp(F.OPS.endMarkedContent,[]),this.reset(),{opList:h,separateForm:!1,separateCanvas:a}}async save(e,t,a){return null}get hasTextContent(){return!1}async extractTextContent(e,t,r){if(this.appearance){const n=await this.loadResources(["ExtGState","Font","Properties","XObject"],this.appearance),s=[],o=[];let a=null;var i={desiredSize:Math.Infinity,ready:!0,enqueue(e,t){for(const t of e.items)void 0!==t.str&&(a||=t.transform.slice(-2),o.push(t.str),t.hasEOL)&&(s.push(o.join("")),o.length=0)}};if(await e.getTextContent({stream:this.appearance,task:t,resources:n,includeMarkedContent:!0,sink:i,viewBox:r}),this.reset(),o.length&&s.push(o.join("")),1<s.length||s[0]){const e=this.appearance.dict,t=e.getArray("BBox")||[0,0,1,1],r=e.getArray("Matrix")||[1,0,0,1,0,0],n=this.data.rect,o=m(n,t,r);o[4]-=n[0],o[5]-=n[1],a=F.Util.applyTransform(a,o),a=F.Util.applyTransform(a,r),this.data.textPosition=a,this.data.textContent=s}}}getFieldObject(){return this.data.kidIds?{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}:null}reset(){for(const e of this._streams)e.reset()}_constructFieldName(e){if(!e.has("T")&&!e.has("Parent"))return(0,F.warn)("Unknown field name, falling back to empty field name."),"";if(!e.has("Parent"))return(0,F.stringToPDFString)(e.get("T"));var t=[];e.has("T")&&t.unshift((0,F.stringToPDFString)(e.get("T")));let a=e;var r=new T.RefSet;for(e.objId&&r.put(e.objId);a.has("Parent")&&(a=a.get("Parent"))instanceof T.Dict&&(!a.objId||!r.has(a.objId));)a.objId&&r.put(a.objId),a.has("T")&&t.unshift((0,F.stringToPDFString)(a.get("T")));return t.join(".")}}e.Annotation=b;class u{constructor(){this.width=1,this.style=F.AnnotationBorderStyleType.SOLID,this.dashArray=[3],this.horizontalCornerRadius=0,this.verticalCornerRadius=0}setWidth(e,t=[0,0,0,0]){var a;e instanceof T.Name?this.width=0:"number"==typeof e&&(0<e&&(a=(t[2]-t[0])/2,t=(t[3]-t[1])/2,0<a)&&0<t&&(a<e||t<e)&&((0,F.warn)("AnnotationBorderStyle.setWidth - ignoring width: "+e),e=1),this.width=e)}setStyle(e){if(e instanceof T.Name)switch(e.name){case"S":this.style=F.AnnotationBorderStyleType.SOLID;break;case"D":this.style=F.AnnotationBorderStyleType.DASHED;break;case"B":this.style=F.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=F.AnnotationBorderStyleType.INSET;break;case"U":this.style=F.AnnotationBorderStyleType.UNDERLINE}}setDashArray(a,r=!1){if(Array.isArray(a)&&0<a.length){let e=!0,t=!0;for(const r of a){if(!(0<=+r)){e=!1;break}0<r&&(t=!1)}e&&!t?(this.dashArray=a,r&&this.setStyle(T.Name.get("D"))):this.width=0}else a&&(this.width=0)}setHorizontalCornerRadius(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}setVerticalCornerRadius(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}e.AnnotationBorderStyle=u;class y extends b{constructor(e){super(e);var t=e["dict"];if(t.has("IRT")){const e=t.getRaw("IRT"),a=(this.data.inReplyTo=e instanceof T.Ref?e.toString():null,t.get("RT"));this.data.replyType=a instanceof T.Name?a.name:F.AnnotationReplyType.REPLY}let a=null;if(this.data.replyType===F.AnnotationReplyType.GROUP){const e=t.get("IRT");this.setTitle(e.get("T")),this.data.titleObj=this._title,this.setContents(e.get("Contents")),this.data.contentsObj=this._contents,e.has("CreationDate")?(this.setCreationDate(e.get("CreationDate")),this.data.creationDate=this.creationDate):this.data.creationDate=null,e.has("M")?(this.setModificationDate(e.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,a=e.getRaw("Popup"),e.has("C")?(this.setColor(e.getArray("C")),this.data.color=this.color):this.data.color=null}else this.data.titleObj=this._title,this.setCreationDate(t.get("CreationDate")),this.data.creationDate=this.creationDate,a=t.getRaw("Popup"),t.has("C")||(this.data.color=null);this.data.popupRef=a instanceof T.Ref?a.toString():null,t.has("RC")&&(this.data.richText=l.XFAFactory.getRichTextAsHtml(t.get("RC")))}setCreationDate(e){this.creationDate="string"==typeof e?e:null}_setDefaultAppearance({xref:e,extra:t,strokeColor:a,fillColor:r,blendMode:i,strokeAlpha:n,fillAlpha:s,pointsCallback:o}){let l=Number.MAX_VALUE,c=Number.MAX_VALUE,h=Number.MIN_VALUE,u=Number.MIN_VALUE;var d=["q"];t&&d.push(t),a&&d.push(`${a[0]} ${a[1]} ${a[2]} RG`),r&&d.push(`${r[0]} ${r[1]} ${r[2]} rg`);let f=this.data.quadPoints;for(const e of f=f||[[{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]}]]){const[t,a,r,i]=o(d,e);l=Math.min(l,t),h=Math.max(h,a),c=Math.min(c,r),u=Math.max(u,i)}d.push("Q");t=new T.Dict(e),a=new T.Dict(e),a.set("Subtype",T.Name.get("Form")),r=new M.StringStream(d.join(" ")),r.dict=a,t.set("Fm0",r),a=new T.Dict(e),i&&a.set("BM",T.Name.get(i)),"number"==typeof n&&a.set("CA",n),"number"==typeof s&&a.set("ca",s),i=new T.Dict(e),i.set("GS0",a),n=new T.Dict(e),n.set("ExtGState",i),n.set("XObject",t),s=new T.Dict(e),s.set("Resources",n),a=this.data.rect=[l,c,h,u];s.set("BBox",a),this.appearance=new M.StringStream("/GS0 gs /Fm0 Do"),this.appearance.dict=s,this._streams.push(this.appearance,r)}static async createNewAnnotation(e,t,a,r){var i=t.ref||=e.getNewTemporaryRef(),n=await this.createNewAppearanceStream(t,e,r),s=[];let o;if(n){const r=e.getNewTemporaryRef();o=this.createNewDict(t,e,{apRef:r}),await(0,f.writeObject)(r,n,s,e),a.push({ref:r,data:s.join("")})}else o=this.createNewDict(t,e,{});return Number.isInteger(t.parentTreeId)&&o.set("StructParent",t.parentTreeId),await(s.length=0,f.writeObject)(i,o,s,e),{ref:i,data:s.join("")}}static async createNewPrintAnnotation(e,t,a,r){var i=await this.createNewAppearanceStream(a,t,r),i=this.createNewDict(a,t,{ap:i}),i=new this.prototype.constructor({dict:i,xref:t,annotationGlobals:e,evaluatorOptions:r.evaluatorOptions});return a.ref&&(i.ref=i.refToReplace=a.ref),i}}e.MarkupAnnotation=y;class P extends b{constructor(e){super(e);var{dict:t,xref:a,annotationGlobals:r}=e,i=this.data;this._needAppearances=e.needAppearances,i.annotationType=F.AnnotationType.WIDGET,void 0===i.fieldName&&(i.fieldName=this._constructFieldName(t)),void 0===i.actions&&(i.actions=(0,O.collectActions)(a,t,F.AnnotationActionEventType));let n=(0,O.getInheritableProperty)({dict:t,key:"V",getArray:!0});i.fieldValue=this._decodeFormValue(n);var s=(0,O.getInheritableProperty)({dict:t,key:"DV",getArray:!0});if(i.defaultFieldValue=this._decodeFormValue(s),void 0===n&&r.xfaDatasets){const e=this._title.str;e&&(this._hasValueFromXFA=!0,i.fieldValue=n=r.xfaDatasets.getValue(e))}void 0===n&&null!==i.defaultFieldValue&&(i.fieldValue=i.defaultFieldValue),i.alternativeText=(0,F.stringToPDFString)(t.get("TU")||""),this.setDefaultAppearance(e),i.hasAppearance||=this._needAppearances&&void 0!==i.fieldValue&&null!==i.fieldValue;s=(0,O.getInheritableProperty)({dict:t,key:"FT"}),i.fieldType=s instanceof T.Name?s.name:null,e=(0,O.getInheritableProperty)({dict:t,key:"DR"}),s=r.acroForm.get("DR"),r=this.appearance?.dict.get("Resources");this._fieldResources={localResources:e,acroFormResources:s,appearanceResources:r,mergedResources:T.Dict.merge({xref:a,dictArray:[e,r,s],mergeSubDicts:!0})},i.fieldFlags=(0,O.getInheritableProperty)({dict:t,key:"Ff"}),(!Number.isInteger(i.fieldFlags)||i.fieldFlags<0)&&(i.fieldFlags=0),i.readOnly=this.hasFieldFlag(F.AnnotationFieldFlag.READONLY),i.required=this.hasFieldFlag(F.AnnotationFieldFlag.REQUIRED),i.hidden=this._hasFlag(i.annotationFlags,F.AnnotationFlag.HIDDEN)||this._hasFlag(i.annotationFlags,F.AnnotationFlag.NOVIEW)}_decodeFormValue(e){return Array.isArray(e)?e.filter(e=>"string"==typeof e).map(e=>(0,F.stringToPDFString)(e)):e instanceof T.Name?(0,F.stringToPDFString)(e.name):"string"==typeof e?(0,F.stringToPDFString)(e):null}hasFieldFlag(e){return!!(this.data.fieldFlags&e)}_isViewable(e){return!this._hasFlag(e,F.AnnotationFlag.INVISIBLE)}mustBeViewed(e,t){return t?this.viewable:super.mustBeViewed(e,t)&&!this._hasFlag(this.flags,F.AnnotationFlag.NOVIEW)}getRotationMatrix(e){let t=e?.get(this.data.id)?.rotation;var a;return 0===(t=void 0===t?this.rotation:t)?F.IDENTITY_MATRIX:(e=this.data.rect[2]-this.data.rect[0],a=this.data.rect[3]-this.data.rect[1],(0,O.getRotationMatrix)(t,e,a))}getBorderAndBackgroundAppearances(e){let t=e?.get(this.data.id)?.rotation;if(void 0===t&&(t=this.rotation),!this.backgroundColor&&!this.borderColor)return"";var e=this.data.rect[2]-this.data.rect[0],a=this.data.rect[3]-this.data.rect[1],a=0===t||180===t?`0 0 ${e} ${a} re`:`0 0 ${a} ${e} re`;let r="";return this.backgroundColor&&(r=(0,I.getPdfColor)(this.backgroundColor,!0)+` ${a} f `),this.borderColor&&(r+=`${this.borderStyle.width||1} w ${(0,I.getPdfColor)(this.borderColor,!1)} ${a} S `),r}async getOperatorList(e,t,a,r,i){if(r&&!(this instanceof S)&&!this.data.noHTML&&!this.data.hasOwnCanvas)return{opList:new d.OperatorList,separateForm:!0,separateCanvas:!1};if(!this._hasText)return super.getOperatorList(e,t,a,r,i);var n=await this._getAppearance(e,t,a,i);if(this.appearance&&null===n)return super.getOperatorList(e,t,a,r,i);r=new d.OperatorList;if(!this._defaultAppearance||null===n)return{opList:r,separateForm:!1,separateCanvas:!1};var a=!!(this.data.hasOwnCanvas&&a&F.RenderingIntentFlag.DISPLAY),s=[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]],s=m(this.data.rect,s,[1,0,0,1,0,0]);let o;void 0!==(o=this.oc?await e.parseMarkedContentProps(this.oc,null):o)&&r.addOp(F.OPS.beginMarkedContentProps,["OC",o]),r.addOp(F.OPS.beginAnnotation,[this.data.id,this.data.rect,s,this.getRotationMatrix(i),a]);s=new M.StringStream(n);return await e.getOperatorList({stream:s,task:t,resources:this._fieldResources.mergedResources,operatorList:r}),r.addOp(F.OPS.endAnnotation,[]),void 0!==o&&r.addOp(F.OPS.endMarkedContent,[]),{opList:r,separateForm:!1,separateCanvas:a}}_getMKDict(e){var t=new T.Dict(null);return e&&t.set("R",e),this.borderColor&&t.set("BC",p(this.borderColor)),this.backgroundColor&&t.set("BG",p(this.backgroundColor)),0<t.size?t:null}amendSavedDict(e,t){}async save(e,t,a){const r=a?.get(this.data.id);let i=r?.value,n=r?.rotation;if(i===this.data.fieldValue||void 0===i){if(!this._hasValueFromXFA&&void 0===n)return null;i||=this.data.fieldValue}if(void 0===n&&!this._hasValueFromXFA&&Array.isArray(i)&&Array.isArray(this.data.fieldValue)&&i.length===this.data.fieldValue.length&&i.every((e,t)=>e===this.data.fieldValue[t]))return null;void 0===n&&(n=this.rotation);let s=null;if(!this._needAppearances&&null===(s=await this._getAppearance(e,t,F.RenderingIntentFlag.SAVE,a)))return null;let o=!1;s?.needAppearances&&(o=!0,s=null);var l=e["xref"],c=l.fetchIfRef(this.ref);if(!(c instanceof T.Dict))return null;var h=new T.Dict(l);for(const e of c.getKeys())"AP"!==e&&h.set(e,c.getRaw(e));var t={path:this.data.fieldName,value:i},e=e=>(0,O.isAscii)(e)?e:(0,O.stringToUTF16String)(e,!0),e=(h.set("V",Array.isArray(i)?i.map(e):e(i)),this.amendSavedDict(a,h),this._getMKDict(n)),u=(e&&h.set("MK",e),[]),d=[{ref:this.ref,data:"",xfa:t,needAppearances:o}];if(null!==s){const e=l.getNewTemporaryRef(),t=new T.Dict(l),O=(h.set("AP",t),t.set("N",e),this._getSaveFieldResources(l)),r=new M.StringStream(s),i=r.dict=new T.Dict(l),n=(i.set("Subtype",T.Name.get("Form")),i.set("Resources",O),i.set("BBox",[0,0,this.data.rect[2]-this.data.rect[0],this.data.rect[3]-this.data.rect[1]]),this.getRotationMatrix(a));n!==F.IDENTITY_MATRIX&&i.set("Matrix",n),await(0,f.writeObject)(e,r,u,l),d.push({ref:e,data:u.join(""),xfa:null,needAppearances:!1}),u.length=0}return h.set("M","D:"+(0,F.getModificationDate)()),await(0,f.writeObject)(this.ref,h,u,l),d[0].data=u.join(""),d}async _getAppearance(e,t,a,r){if(this.hasFieldFlag(F.AnnotationFieldFlag.PASSWORD))return null;const i=r?.get(this.data.id);let n,s;if(i&&(n=i.formattedValue||i.value,s=i.rotation),void 0===s&&void 0===n&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;const o=this.getBorderAndBackgroundAppearances(r);if(void 0===n&&!(n=this.data.fieldValue))return`/Tx BMC q ${o}Q EMC`;if(Array.isArray(n)&&1===n.length&&(n=n[0]),(0,F.assert)("string"==typeof n,"Expected `value` to be a string."),n=n.trim(),this.data.combo){const e=this.data.options.find(({exportValue:e})=>n===e);n=e?.displayValue||n}if(""===n)return`/Tx BMC q ${o}Q EMC`;void 0===s&&(s=this.rotation);let l,c=-1,h=(this.data.multiLine?(l=n.split(/\r\n?|\n/).map(e=>e.normalize("NFC")),c=l.length):l=[n.replace(/\r\n?|\n/,"").normalize("NFC")],this.data.rect[3]-this.data.rect[1]),u=this.data.rect[2]-this.data.rect[0];90!==s&&270!==s||([u,h]=[h,u]),this._defaultAppearance||(this.data.defaultAppearanceData=(0,I.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));let d,f,g,p=await P._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources);var m=[];let b=!1;for(const e of l){const t=p.encodeString(e);1<t.length&&(b=!0),m.push(t.join(""))}if(b&&a&F.RenderingIntentFlag.SAVE)return{needAppearances:!0};if(b&&this._isOffscreenCanvasSupported){const a=this.data.comb?"monospace":"sans-serif",F=new I.FakeUnicodeFont(e.xref,a),r=F.createFontResources(l.join("")),i=r.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){const e=this._fieldResources.mergedResources.get("Font");for(const t of i.getKeys())e.set(t,i.getRaw(t))}else this._fieldResources.mergedResources.set("Font",i);const s=F.fontName.name;p=await P._getFontData(e,t,{fontName:s,fontSize:0},r);for(let e=0,t=m.length;e<t;e++)m[e]=(0,O.stringToUTF16String)(l[e]);const o=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0,this.data.defaultAppearanceData.fontName=s,[d,f,g]=this._computeFontSize(h-2,u-4,n,p,c),this.data.defaultAppearanceData=o}else this._isOffscreenCanvasSupported||(0,F.warn)("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly."),[d,f,g]=this._computeFontSize(h-2,u-4,n,p,c);a=p.descent,a=isNaN(a)?F.BASELINE_FACTOR*g:Math.max(F.BASELINE_FACTOR*g,Math.abs(a)*f),e=Math.min(Math.floor((h-f)/2),1),t=this.data.textAlignment;return this.data.multiLine?this._getMultilineAppearance(d,m,p,f,u,h,t,2,e,a,g,r):this.data.comb?this._getCombAppearance(d,p,m[0],f,u,h,2,e,a,g,r):(r=e+a,0===t||2<t?`/Tx BMC q ${o}BT `+d+` 1 0 0 1 ${(0,O.numberToString)(2)} ${(0,O.numberToString)(r)} Tm (${(0,O.escapeString)(m[0])}) Tj ET Q EMC`:`/Tx BMC q ${o}BT `+d+` 1 0 0 1 0 0 Tm ${this._renderText(m[0],p,f,u,t,{shift:0},2,r)} ET Q EMC`)}static async _getFontData(e,t,a,r){var i=new d.OperatorList,n={font:null,clone(){return this}},{fontName:a,fontSize:s}=a;return await e.handleSetFont(r,[a&&T.Name.get(a),s],null,i,t,n,null),n.font}_getTextWidth(e,t){return t.charsToGlyphs(e).reduce((e,t)=>e+t.width,0)/1e3}_computeFontSize(r,i,e,n,t){let a=this.data.defaultAppearanceData["fontSize"],s=(a||12)*F.LINE_FACTOR,o=Math.round(r/s);if(!a){var l=e=>Math.floor(100*e)/100;if(-1===t){const I=this._getTextWidth(e,n);a=l(Math.min(r/F.LINE_FACTOR,I>i?i/I:1/0)),o=1}else{const I=e.split(/\r\n?|\n/),h=[];for(const r of I){const i=n.encodeString(r).join(""),e=n.charsToGlyphs(i),F=n.getCharPositions(i);h.push({line:i,glyphs:e,positions:F})}var c=e=>{let t=0;for(const a of h)if(t+=this._splitLine(null,n,e,i,a).length*e,t>r)return!0;return!1};for(o=Math.max(o,t);s=r/o,c(a=l(s/F.LINE_FACTOR));)o++}var{fontName:e,fontColor:t}=this.data.defaultAppearanceData;this._defaultAppearance=(0,I.createDefaultAppearance)({fontSize:a,fontName:e,fontColor:t})}return[this._defaultAppearance,a,r/o]}_renderText(e,t,a,r,i,n,s,o){i=1===i?(r-this._getTextWidth(e,t)*a)/2:2===i?r-this._getTextWidth(e,t)*a-s:s,r=(0,O.numberToString)(i-n.shift);return n.shift=i,`${r} ${o=(0,O.numberToString)(o)} Td (${(0,O.escapeString)(e)}) Tj`}_getSaveFieldResources(e){const{localResources:t,appearanceResources:a,acroFormResources:r}=this._fieldResources,i=this.data.defaultAppearanceData?.fontName;if(i){for(const e of[t,a])if(e instanceof T.Dict){const t=e.get("Font");if(t instanceof T.Dict&&t.has(i))return e}if(r instanceof T.Dict){const a=r.get("Font");if(a instanceof T.Dict&&a.has(i)){const r=new T.Dict(e);r.set(i,a.getRaw(i));var n=new T.Dict(e);return n.set("Font",r),T.Dict.merge({xref:e,dictArray:[n,t],mergeSubDicts:!0})}}}return t||T.Dict.empty}getFieldObject(){return null}}class w extends P{constructor(e){super(e),this.data.hasOwnCanvas=this.data.readOnly&&!this.data.noHTML,this._hasText=!0;e=e.dict;"string"!=typeof this.data.fieldValue&&(this.data.fieldValue="");let t=(0,O.getInheritableProperty)({dict:e,key:"Q"}),a=((!Number.isInteger(t)||t<0||2<t)&&(t=null),this.data.textAlignment=t,(0,O.getInheritableProperty)({dict:e,key:"MaxLen"}));(!Number.isInteger(a)||a<0)&&(a=0),this.data.maxLen=a,this.data.multiLine=this.hasFieldFlag(F.AnnotationFieldFlag.MULTILINE),this.data.comb=this.hasFieldFlag(F.AnnotationFieldFlag.COMB)&&!this.hasFieldFlag(F.AnnotationFieldFlag.MULTILINE)&&!this.hasFieldFlag(F.AnnotationFieldFlag.PASSWORD)&&!this.hasFieldFlag(F.AnnotationFieldFlag.FILESELECT)&&0!==this.data.maxLen,this.data.doNotScroll=this.hasFieldFlag(F.AnnotationFieldFlag.DONOTSCROLL)}get hasTextContent(){return!!this.appearance&&!this._needAppearances}_getCombAppearance(e,t,a,r,i,n,s,o,l,c,h){var i=i/this.data.maxLen,h=this.getBorderAndBackgroundAppearances(h),u=[],d=t.getCharPositions(a);for(const[e,t]of d)u.push(`(${(0,O.escapeString)(a.substring(e,t))}) Tj`);t=u.join(` ${(0,O.numberToString)(i)} 0 Td `);return`/Tx BMC q ${h}BT `+e+` 1 0 0 1 ${(0,O.numberToString)(s)} ${(0,O.numberToString)(o+l)} Tm ${t} ET Q EMC`}_getMultilineAppearance(e,t,r,i,n,s,o,l,c,h,u,d){var f=[],g=n-2*l,p={shift:0};for(let a=0,e=t.length;a<e;a++){const O=t[a],s=this._splitLine(O,r,i,g);for(let e=0,t=s.length;e<t;e++){const O=s[e],d=0===a&&0===e?-c-(u-h):-u;f.push(this._renderText(O,r,i,n,o,p,l,d))}}var d=this.getBorderAndBackgroundAppearances(d),a=f.join("\n");return`/Tx BMC q ${d}BT `+e+` 1 0 0 1 0 ${(0,O.numberToString)(s)} Tm ${a} ET Q EMC`}_splitLine(a,e,r,i,n={}){a=n.line||a;var s=n.glyphs||e.charsToGlyphs(a);if(s.length<=1)return[a];var o=n.positions||e.getCharPositions(a),l=r/1e3,c=[];let h=-1,u=-1,d=-1,f=0,g=0;for(let e=0,t=s.length;e<t;e++){const[r,n]=o[e],p=s[e],m=p.width*l;" "===p.unicode?d=g+m>i?(c.push(a.substring(f,r)),f=r,g=m,h=-1):(g+=m,h=r,u=n,e):g+m>i?g=-1!==h?(c.push(a.substring(f,u)),f=u,e=d+1,h=-1,0):(c.push(a.substring(f,r)),f=r,m):g+=m}return f<a.length&&c.push(a.substring(f,a.length)),c}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.hasFieldFlag(F.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 v extends P{constructor(e){super(e),this.checkedAppearance=null,this.uncheckedAppearance=null,this.data.checkBox=!this.hasFieldFlag(F.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(F.AnnotationFieldFlag.PUSHBUTTON),this.data.radioButton=this.hasFieldFlag(F.AnnotationFieldFlag.RADIO)&&!this.hasFieldFlag(F.AnnotationFieldFlag.PUSHBUTTON),this.data.pushButton=this.hasFieldFlag(F.AnnotationFieldFlag.PUSHBUTTON),this.data.isTooltipOnly=!1,this.data.checkBox?this._processCheckBox(e):this.data.radioButton?this._processRadioButton(e):this.data.pushButton?(this.data.hasOwnCanvas=!0,this._processPushButton(e)):(0,F.warn)("Invalid field flags for button widget annotation")}async getOperatorList(e,t,a,r,i){if(this.data.pushButton)return super.getOperatorList(e,t,a,!1,i);let n=null,s=null;if(i){const e=i.get(this.data.id);n=e?e.value:null,s=e?e.rotation:null}if(null===n&&this.appearance)return super.getOperatorList(e,t,a,r,i);var o=(n=null==n?this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue:n)?this.checkedAppearance:this.uncheckedAppearance;if(o){const n=this.appearance,l=o.dict.getArray("Matrix")||F.IDENTITY_MATRIX;s&&o.dict.set("Matrix",this.getRotationMatrix(i)),this.appearance=o;e=super.getOperatorList(e,t,a,r,i);return this.appearance=n,o.dict.set("Matrix",l),e}return{opList:new d.OperatorList,separateForm:!1,separateCanvas:!1}}async save(e,t,a){return this.data.checkBox?this._saveCheckbox(e,t,a):this.data.radioButton?this._saveRadioButton(e,t,a):null}async _saveCheckbox(e,t,a){if(!a)return null;a=a.get(this.data.id);let r=a?.rotation,i=a?.value;if(void 0===r){if(void 0===i)return null;if(this.data.fieldValue===this.data.exportValue===i)return null}a=e.xref.fetchIfRef(this.ref);if(!(a instanceof T.Dict))return null;void 0===r&&(r=this.rotation),void 0===i&&(i=this.data.fieldValue===this.data.exportValue);var n={path:this.data.fieldName,value:i?this.data.exportValue:""},s=T.Name.get(i?this.data.exportValue:"Off"),s=(a.set("V",s),a.set("AS",s),a.set("M","D:"+(0,F.getModificationDate)()),this._getMKDict(r)),s=(s&&a.set("MK",s),[]);return await(0,f.writeObject)(this.ref,a,s,e.xref),[{ref:this.ref,data:s.join(""),xfa:n}]}async _saveRadioButton(e,t,a){if(!a)return null;a=a.get(this.data.id);let r=a?.rotation,i=a?.value;if(void 0===r){if(void 0===i)return null;if(this.data.fieldValue===this.data.buttonValue===i)return null}a=e.xref.fetchIfRef(this.ref);if(!(a instanceof T.Dict))return null;void 0===i&&(i=this.data.fieldValue===this.data.buttonValue),void 0===r&&(r=this.rotation);var n={path:this.data.fieldName,value:i?this.data.buttonValue:""},s=T.Name.get(i?this.data.buttonValue:"Off"),o=[];let l=null;if(i)if(this.parent instanceof T.Ref){const t=e.xref.fetch(this.parent);t.set("V",s),await(0,f.writeObject)(this.parent,t,o,e.xref),l=o.join(""),o.length=0}else this.parent instanceof T.Dict&&this.parent.set("V",s);a.set("AS",s),a.set("M","D:"+(0,F.getModificationDate)());s=this._getMKDict(r),s&&a.set("MK",s),await(0,f.writeObject)(this.ref,a,o,e.xref),s=[{ref:this.ref,data:o.join(""),xfa:n}];return l&&s.push({ref:this.parent,data:l,xfa:null}),s}_getDefaultCheckedAppearance(e,t){var a=this.data.rect[2]-this.data.rect[0],r=this.data.rect[3]-this.data.rect[1],i=[0,0,a,r],n=.8*Math.min(a,r);let s,o;"check"===t?(s={width:.755*n,height:.705*n},o="3"):"disc"===t?(s={width:.791*n,height:.705*n},o="l"):(0,F.unreachable)("_getDefaultCheckedAppearance - unsupported type: "+t);t=`q BT /PdfJsZaDb ${n} Tf 0 g ${(0,O.numberToString)((a-s.width)/2)} ${(0,O.numberToString)((r-s.height)/2)} Td (${o}) Tj ET Q`,n=new T.Dict(e.xref),n.set("FormType",1),n.set("Subtype",T.Name.get("Form")),n.set("Type",T.Name.get("XObject")),n.set("BBox",i),n.set("Matrix",[1,0,0,1,0,0]),n.set("Length",t.length),a=new T.Dict(e.xref),r=new T.Dict(e.xref);r.set("PdfJsZaDb",this.fallbackFontDict),a.set("Font",r),n.set("Resources",a),this.checkedAppearance=new M.StringStream(t),this.checkedAppearance.dict=n,this._streams.push(this.checkedAppearance)}_processCheckBox(e){var t=e.dict.get("AP");if(t instanceof T.Dict){t=t.get("N");if(t instanceof T.Dict){var a=this._decodeFormValue(e.dict.get("AS")),a=("string"==typeof a&&(this.data.fieldValue=a),null!==this.data.fieldValue&&"Off"!==this.data.fieldValue?this.data.fieldValue:"Yes"),r=t.getKeys();if(0===r.length)r.push("Off",a);else if(1===r.length)"Off"===r[0]?r.push(a):r.unshift("Off");else if(r.includes(a))r.length=0,r.push("Off",a);else{const e=r.find(e=>"Off"!==e);r.length=0,r.push("Off",e)}r.includes(this.data.fieldValue)||(this.data.fieldValue="Off"),this.data.exportValue=r[1];a=t.get(this.data.exportValue),r=(this.checkedAppearance=a instanceof i.BaseStream?a:null,t.get("Off"));this.uncheckedAppearance=r instanceof i.BaseStream?r:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"check"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}}}_processRadioButton(e){this.data.fieldValue=this.data.buttonValue=null;var t=e.dict.get("Parent");if(t instanceof T.Dict){this.parent=e.dict.getRaw("Parent");const a=t.get("V");a instanceof T.Name&&(this.data.fieldValue=this._decodeFormValue(a))}const a=e.dict.get("AP");if(a instanceof T.Dict){t=a.get("N");if(t instanceof T.Dict){for(const e of t.getKeys())if("Off"!==e){this.data.buttonValue=this._decodeFormValue(e);break}var r=t.get(this.data.buttonValue),r=(this.checkedAppearance=r instanceof i.BaseStream?r:null,t.get("Off"));this.uncheckedAppearance=r instanceof i.BaseStream?r:null,this.checkedAppearance?this._streams.push(this.checkedAppearance):this._getDefaultCheckedAppearance(e,"disc"),this.uncheckedAppearance&&this._streams.push(this.uncheckedAppearance),this._fallbackFontDict=this.fallbackFontDict,null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}}}_processPushButton(e){var{dict:e,annotationGlobals:t}=e;e.has("A")||e.has("AA")||this.data.alternativeText?(this.data.isTooltipOnly=!e.has("A")&&!e.has("AA"),r.Catalog.parseDestDictionary({destDict:e,resultObj:this.data,docBaseUrl:t.baseUrl,docAttachments:t.attachments})):(0,F.warn)("Push buttons without action dictionaries are not supported")}getFieldObject(){let e,t="button";return this.data.checkBox?(t="checkbox",e=this.data.exportValue):this.data.radioButton&&(t="radiobutton",e=this.data.buttonValue),{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(){var e=new T.Dict;return e.set("BaseFont",T.Name.get("ZapfDingbats")),e.set("Type",T.Name.get("FallbackType")),e.set("Subtype",T.Name.get("FallbackType")),e.set("Encoding",T.Name.get("ZapfDingbatsEncoding")),(0,F.shadow)(this,"fallbackFontDict",e)}}class x extends P{constructor(e){super(e);const{dict:a,xref:r}=e;this.indices=a.getArray("I"),this.hasIndices=Array.isArray(this.indices)&&0<this.indices.length,this.data.options=[];var i=(0,O.getInheritableProperty)({dict:a,key:"Opt"});if(Array.isArray(i))for(let e=0,t=i.length;e<t;e++){const a=r.fetchIfRef(i[e]),F=Array.isArray(a);this.data.options[e]={exportValue:this._decodeFormValue(F?r.fetchIfRef(a[0]):a),displayValue:this._decodeFormValue(F?r.fetchIfRef(a[1]):a)}}if(this.hasIndices){this.data.fieldValue=[];const e=this.data.options.length;for(const a of this.indices)Number.isInteger(a)&&0<=a&&a<e&&this.data.fieldValue.push(this.data.options[a].exportValue)}else"string"==typeof this.data.fieldValue?this.data.fieldValue=[this.data.fieldValue]:this.data.fieldValue||(this.data.fieldValue=[]);this.data.combo=this.hasFieldFlag(F.AnnotationFieldFlag.COMBO),this.data.multiSelect=this.hasFieldFlag(F.AnnotationFieldFlag.MULTISELECT),this._hasText=!0}getFieldObject(){var e=this.data.combo?"combobox":"listbox",t=0<this.data.fieldValue.length?this.data.fieldValue[0]:null;return{id:this.data.id,value:t,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:e}}amendSavedDict(e,t){if(this.hasIndices){let r=e?.get(this.data.id)?.value;Array.isArray(r)||(r=[r]);var i=[],n=this.data["options"];for(let e=0,t=0,a=n.length;e<a;e++)n[e].exportValue===r[t]&&(i.push(e),t+=1);t.set("I",i)}}async _getAppearance(a,t,r,e){if(this.data.combo)return super._getAppearance(a,t,r,e);let i,n;r=e?.get(this.data.id);if(r&&(n=r.rotation,i=r.value),void 0===n&&void 0===i&&!this._needAppearances)return null;void 0===i?i=this.data.fieldValue:Array.isArray(i)||(i=[i]);let s=this.data.rect[3]-this.data.rect[1],o=this.data.rect[2]-this.data.rect[0];90!==n&&270!==n||([o,s]=[s,o]);var l=this.data.options.length,c=[];for(let e=0;e<l;e++){const t=this.data.options[e]["exportValue"];i.includes(t)&&c.push(e)}this._defaultAppearance||(this.data.defaultAppearanceData=(0,I.parseDefaultAppearance)(this._defaultAppearance="/Helvetica 0 Tf 0 g"));var h=await P._getFontData(a,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources);let u,d=this.data.defaultAppearanceData["fontSize"];if(d)u=this._defaultAppearance;else{const a=(s-1)/l;let e,t=-1;for(const{displayValue:a}of this.data.options){const F=this._getTextWidth(a,h);F>t&&(t=F,e=a)}[u,d]=this._computeFontSize(a,o-4,e,h,-1)}var f=d*F.LINE_FACTOR,g=(f-d)/2,e=Math.floor(s/f);let p=0;if(0<c.length){const a=Math.min(...c),t=Math.max(...c);(p=Math.max(0,t-e+1))>a&&(p=a)}var m=Math.min(p+e+1,l),b=["/Tx BMC q",`1 1 ${o} ${s} re W n`];if(c.length){b.push("0.600006 0.756866 0.854904 rg");for(const a of c)p<=a&&a<m&&b.push(`1 ${s-(a-p+1)*f} ${o} ${f} re f`)}b.push("BT",u,`1 0 0 1 0 ${s} Tm`);var y={shift:0};for(let e=p;e<m;e++){const t=this.data.options[e]["displayValue"],r=e===p?g:0;b.push(this._renderText(t,h,d,o,0,y,2,-f+r))}return b.push("ET Q EMC"),b.join("\n")}}class S extends P{constructor(e){super(e),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 A extends y{constructor(e){super(e),this.data.noRotate=!0,this.data.hasOwnCanvas=this.data.noRotate;e=e.dict;this.data.annotationType=F.AnnotationType.TEXT,this.data.hasAppearance?this.data.name="NoIcon":(this.data.rect[1]=this.data.rect[3]-22,this.data.rect[2]=this.data.rect[0]+22,this.data.name=e.has("Name")?e.get("Name").name:"Note"),e.has("State")?(this.data.state=e.get("State")||null,this.data.stateModel=e.get("StateModel")||null):(this.data.state=null,this.data.stateModel=null)}}class L extends b{constructor(e){super(e);var{dict:e,annotationGlobals:t}=e,a=(this.data.annotationType=F.AnnotationType.LINK,h(e,this.rectangle));a&&(this.data.quadPoints=a),this.data.borderColor||=this.data.color,r.Catalog.parseDestDictionary({destDict:e,resultObj:this.data,docBaseUrl:t.baseUrl,docAttachments:t.attachments})}}class k extends b{constructor(e){super(e);e=e.dict;this.data.annotationType=F.AnnotationType.POPUP,this.data.rect[0]!==this.data.rect[2]&&this.data.rect[1]!==this.data.rect[3]||(this.data.rect=null);let t=e.get("Parent");if(t){var a=t.getArray("Rect"),a=(this.data.parentRect=Array.isArray(a)&&4===a.length?F.Util.normalizeRect(a):null,t.get("RT"));if((t=(0,T.isName)(a,F.AnnotationReplyType.GROUP)?t.get("IRT"):t).has("M")?(this.setModificationDate(t.get("M")),this.data.modificationDate=this.modificationDate):this.data.modificationDate=null,t.has("C")?(this.setColor(t.getArray("C")),this.data.color=this.color):this.data.color=null,!this.viewable){const e=t.get("F");this._isViewable(e)&&this.setFlags(e)}this.setTitle(t.get("T")),this.data.titleObj=this._title,this.setContents(t.get("Contents")),this.data.contentsObj=this._contents,t.has("RC")&&(this.data.richText=l.XFAFactory.getRichTextAsHtml(t.get("RC"))),this.data.open=!!e.get("Open")}else(0,F.warn)("Popup annotation has a missing or invalid parent annotation.")}}e.PopupAnnotation=k;class C extends y{constructor(e){super(e),this.data.hasOwnCanvas=!0;const{evaluatorOptions:t,xref:a}=e;if(this.data.annotationType=F.AnnotationType.FREETEXT,this.setDefaultAppearance(e),this.appearance){const{fontColor:e,fontSize:F}=(0,I.parseAppearanceStream)(this.appearance,t,a);this.data.defaultAppearanceData.fontColor=e,this.data.defaultAppearanceData.fontSize=F||10}else if(this._isOffscreenCanvasSupported){const t=e.dict.get("CA"),F=new I.FakeUnicodeFont(a,"sans-serif");this.data.defaultAppearanceData.fontSize||=10;var{fontColor:e,fontSize:r}=this.data.defaultAppearanceData;this.appearance=F.createAppearance(this._contents.str,this.rectangle,this.rotation,r,e,t),this._streams.push(this.appearance,I.FakeUnicodeFont.toUnicodeStream)}else(0,F.warn)("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}get hasTextContent(){return!!this.appearance}static createNewDict(e,t,{apRef:a,ap:r}){var{color:e,fontSize:i,rect:n,rotation:s,user:o,value:l}=e,c=new T.Dict(t),n=(c.set("Type",T.Name.get("Annot")),c.set("Subtype",T.Name.get("FreeText")),c.set("CreationDate","D:"+(0,F.getModificationDate)()),c.set("Rect",n),`/Helv ${i} Tf `+(0,I.getPdfColor)(e,!0));if(c.set("DA",n),c.set("Contents",(0,O.isAscii)(l)?l:(0,O.stringToUTF16String)(l,!0)),c.set("F",4),c.set("Border",[0,0,0]),c.set("Rotate",s),o&&c.set("T",(0,O.isAscii)(o)?o:(0,O.stringToUTF16String)(o,!0)),a||r){const e=new T.Dict(t);c.set("AP",e),a?e.set("N",a):e.set("N",r)}return c}static async createNewAppearanceStream(t,a,e){var{baseFontRef:e,evaluator:r,task:i}=e,{color:t,fontSize:n,rect:s,rotation:o,value:l}=t,c=new T.Dict(a),h=new T.Dict(a);if(e)h.set("Helv",e);else{const t=new T.Dict(a);t.set("BaseFont",T.Name.get("Helvetica")),t.set("Type",T.Name.get("Font")),t.set("Subtype",T.Name.get("Type1")),t.set("Encoding",T.Name.get("WinAnsiEncoding")),h.set("Helv",t)}c.set("Font",h);var u=await P._getFontData(r,i,{fontName:"Helv",fontSize:n},c),[e,h,r,i]=s;let d=r-e,f=i-h;o%180!=0&&([d,f]=[f,d]);var r=l.split("\n"),g=n/1e3;let p=-1/0;var m,b=[];for(m of r){const a=u.encodeString(m);if(1<a.length)return null;m=a.join(""),b.push(m);let e=0;const F=u.charsToGlyphs(m);for(const t of F)e+=t.width*g;p=Math.max(p,e)}let y=1,w=(p>d&&(y=d/p),1);var e=F.LINE_FACTOR*n,v=(F.LINE_FACTOR-F.LINE_DESCENT_FACTOR)*n,i=e*r.length,h=(i>f&&(w=f/i),n*Math.min(y,w));let x,S,A;switch(o){case 0:A=[1,0,0,1],S=[s[0],s[1],d,f],x=[s[0],s[3]-v];break;case 90:A=[0,1,-1,0],S=[s[1],-s[2],d,f],x=[s[1],-s[0]-v];break;case 180:A=[-1,0,0,-1],S=[-s[2],-s[3],d,f],x=[-s[2],-s[1]-v];break;case 270:A=[0,-1,1,0],S=[-s[3],s[0],d,f],x=[-s[3],s[2]-v]}var k=["q",A.join(" ")+" 0 0 cm",S.join(" ")+" re W n","BT",""+(0,I.getPdfColor)(t,!0),`0 Tc /Helv ${(0,O.numberToString)(h)} Tf`],C=(k.push(`${x.join(" ")} Td (${(0,O.escapeString)(b[0])}) Tj`),(0,O.numberToString)(e));for(let e=1,t=b.length;e<t;e++){const a=b[e];k.push(`0 -${C} Td (${(0,O.escapeString)(a)}) Tj`)}k.push("ET","Q");l=k.join("\n"),r=new T.Dict(a),r.set("FormType",1),r.set("Subtype",T.Name.get("Form")),r.set("Type",T.Name.get("XObject")),r.set("BBox",s),r.set("Resources",c),r.set("Matrix",[1,0,0,1,-s[0],-s[1]]),i=new M.StringStream(l);return i.dict=r,i}}class $ extends y{constructor(e){super(e);var{dict:t,xref:a}=e;this.data.annotationType=F.AnnotationType.LINE,this.data.hasOwnCanvas=this.data.noRotate;const r=t.getArray("L");if(this.data.lineCoordinates=F.Util.normalizeRect(r),this.setLineEndings(t.getArray("LE")),this.data.lineEndings=this.lineEndings,!this.appearance){const e=this.color?p(this.color):[0,0,0],i=t.get("CA"),n=g(t.getArray("IC"),null),s=n?p(n):null,o=s?i:null,l=this.borderStyle.width||1,c=2*l,h=[this.data.lineCoordinates[0]-c,this.data.lineCoordinates[1]-c,this.data.lineCoordinates[2]+c,this.data.lineCoordinates[3]+c];F.Util.intersect(this.rectangle,h)||(this.rectangle=h),this._setDefaultAppearance({xref:a,extra:l+" w",strokeColor:e,fillColor:s,strokeAlpha:i,fillAlpha:o,pointsCallback:(e,t)=>(e.push(`${r[0]} ${r[1]} m`,`${r[2]} ${r[3]} l`,"S"),[t[0].x-l,t[1].x+l,t[3].y-l,t[1].y+l])})}}}class _ extends y{constructor(e){super(e);var{dict:t,xref:a}=e;if(this.data.annotationType=F.AnnotationType.SQUARE,this.data.hasOwnCanvas=this.data.noRotate,!this.appearance){const e=this.color?p(this.color):[0,0,0],F=t.get("CA"),r=g(t.getArray("IC"),null),s=r?p(r):null,i=s?F:null;0===this.borderStyle.width&&!s||this._setDefaultAppearance({xref:a,extra:this.borderStyle.width+" w",strokeColor:e,fillColor:s,strokeAlpha:F,fillAlpha:i,pointsCallback:(e,t)=>{var a=t[2].x+this.borderStyle.width/2,r=t[2].y+this.borderStyle.width/2,i=t[3].x-t[2].x-this.borderStyle.width,n=t[1].y-t[3].y-this.borderStyle.width;return e.push(a+` ${r} ${i} ${n} re`),s?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}class j extends y{constructor(e){super(e);var{dict:t,xref:a}=e;if(this.data.annotationType=F.AnnotationType.CIRCLE,!this.appearance){const e=this.color?p(this.color):[0,0,0],F=t.get("CA"),r=g(t.getArray("IC"),null),h=r?p(r):null,i=h?F:null;if(0!==this.borderStyle.width||h){const u=4/3*Math.tan(Math.PI/8);this._setDefaultAppearance({xref:a,extra:this.borderStyle.width+" w",strokeColor:e,fillColor:h,strokeAlpha:F,fillAlpha:i,pointsCallback:(e,t)=>{var a=t[0].x+this.borderStyle.width/2,r=t[0].y-this.borderStyle.width/2,i=t[3].x-this.borderStyle.width/2,n=t[3].y+this.borderStyle.width/2,s=a+(i-a)/2,o=r+(n-r)/2,l=(i-a)/2*u,c=(n-r)/2*u;return e.push(s+` ${n} m`,s+l+` ${n} ${i} ${o+c} ${i} ${o} c`,i+` ${o-c} ${s+l} ${r} ${s} ${r} c`,s-l+` ${r} ${a} ${o-c} ${a} ${o} c`,a+` ${o+c} ${s-l} ${n} ${s} ${n} c`,"h"),h?e.push("B"):e.push("S"),[t[0].x,t[1].x,t[3].y,t[1].y]}})}}}}class N extends y{constructor(e){super(e);var{dict:t,xref:a}=e;this.data.annotationType=F.AnnotationType.POLYLINE,this.data.hasOwnCanvas=this.data.noRotate,this.data.vertices=[],this instanceof E||(this.setLineEndings(t.getArray("LE")),this.data.lineEndings=this.lineEndings);const r=t.getArray("Vertices");if(Array.isArray(r)){for(let e=0,t=r.length;e<t;e+=2)this.data.vertices.push({x:r[e],y:r[e+1]});if(!this.appearance){const e=this.color?p(this.color):[0,0,0],r=t.get("CA"),i=this.borderStyle.width||1,n=2*i,s=[1/0,1/0,-1/0,-1/0];for(const e of this.data.vertices)s[0]=Math.min(s[0],e.x-n),s[1]=Math.min(s[1],e.y-n),s[2]=Math.max(s[2],e.x+n),s[3]=Math.max(s[3],e.y+n);F.Util.intersect(this.rectangle,s)||(this.rectangle=s),this._setDefaultAppearance({xref:a,extra:i+" w",strokeColor:e,strokeAlpha:r,pointsCallback:(a,e)=>{var r=this.data.vertices;for(let e=0,t=r.length;e<t;e++)a.push(`${r[e].x} ${r[e].y} `+(0===e?"m":"l"));return a.push("S"),[e[0].x,e[1].x,e[3].y,e[1].y]}})}}}}class E extends N{constructor(e){super(e),this.data.annotationType=F.AnnotationType.POLYGON}}class U extends y{constructor(e){super(e),this.data.annotationType=F.AnnotationType.CARET}}class D extends y{constructor(e){super(e),this.data.hasOwnCanvas=this.data.noRotate;const{dict:t,xref:r}=e,i=(this.data.annotationType=F.AnnotationType.INK,this.data.inkLists=[],t.getArray("InkList"));if(Array.isArray(i)){for(let a=0,e=i.length;a<e;++a){this.data.inkLists.push([]);for(let e=0,t=i[a].length;e<t;e+=2)this.data.inkLists[a].push({x:r.fetchIfRef(i[a][e]),y:r.fetchIfRef(i[a][e+1])})}if(!this.appearance){const e=this.color?p(this.color):[0,0,0],i=t.get("CA"),a=this.borderStyle.width||1,n=2*a,s=[1/0,1/0,-1/0,-1/0];for(const e of this.data.inkLists)for(const t of e)s[0]=Math.min(s[0],t.x-n),s[1]=Math.min(s[1],t.y-n),s[2]=Math.max(s[2],t.x+n),s[3]=Math.max(s[3],t.y+n);F.Util.intersect(this.rectangle,s)||(this.rectangle=s),this._setDefaultAppearance({xref:r,extra:a+" w",strokeColor:e,strokeAlpha:i,pointsCallback:(a,r)=>{for(const r of this.data.inkLists){for(let e=0,t=r.length;e<t;e++)a.push(`${r[e].x} ${r[e].y} `+(0===e?"m":"l"));a.push("S")}return[r[0].x,r[1].x,r[3].y,r[1].y]}})}}}static createNewDict(e,t,{apRef:a,ap:r}){var{color:e,opacity:i,paths:n,rect:s,rotation:o,thickness:l}=e,c=new T.Dict(t),s=(c.set("Type",T.Name.get("Annot")),c.set("Subtype",T.Name.get("Ink")),c.set("CreationDate","D:"+(0,F.getModificationDate)()),c.set("Rect",s),c.set("InkList",n.map(e=>e.points)),c.set("F",4),c.set("Rotate",o),new T.Dict(t)),n=(c.set("BS",s),s.set("W",l),c.set("C",Array.from(e,e=>e/255)),c.set("CA",i),new T.Dict(t));return c.set("AP",n),a?n.set("N",a):n.set("N",r),c}static async createNewAppearanceStream(a,e,r){const{color:t,rect:i,paths:n,thickness:s,opacity:o}=a,l=[s+" w 1 J 1 j",""+(0,I.getPdfColor)(t,!1)];1!==o&&l.push("/R0 gs");var c=[];for(const{bezier:a}of n){c.length=0,c.push(`${(0,O.numberToString)(a[0])} ${(0,O.numberToString)(a[1])} m`);for(let e=2,t=a.length;e<t;e+=6){const r=a.slice(e,e+6).map(O.numberToString).join(" ");c.push(r+" c")}c.push("S"),l.push(c.join("\n"))}var a=l.join("\n"),h=new T.Dict(e);if(h.set("FormType",1),h.set("Subtype",T.Name.get("Form")),h.set("Type",T.Name.get("XObject")),h.set("BBox",i),h.set("Length",a.length),1!==o){const a=new T.Dict(e),r=new T.Dict(e),t=new T.Dict(e);t.set("CA",o),t.set("Type",T.Name.get("ExtGState")),r.set("R0",t),a.set("ExtGState",r),h.set("Resources",a)}e=new M.StringStream(a);return e.dict=h,e}}class X extends y{constructor(e){super(e);var{dict:t,xref:a}=e;if(this.data.annotationType=F.AnnotationType.HIGHLIGHT,this.data.quadPoints=h(t,null)){const e=this.appearance?.dict.get("Resources");if(!this.appearance||!e?.has("ExtGState")){this.appearance&&(0,F.warn)("HighlightAnnotation - ignoring built-in appearance stream.");const e=this.color?p(this.color):[1,1,0],r=t.get("CA");this._setDefaultAppearance({xref:a,fillColor:e,blendMode:"Multiply",fillAlpha:r,pointsCallback:(e,t)=>(e.push(`${t[0].x} ${t[0].y} m`,`${t[1].x} ${t[1].y} l`,`${t[3].x} ${t[3].y} l`,`${t[2].x} ${t[2].y} l`,"f"),[t[0].x,t[1].x,t[3].y,t[1].y])})}}else this.data.popupRef=null}}class H extends y{constructor(e){super(e);var{dict:t,xref:a}=e;if(this.data.annotationType=F.AnnotationType.UNDERLINE,this.data.quadPoints=h(t,null)){if(!this.appearance){const e=this.color?p(this.color):[0,0,0],F=t.get("CA");this._setDefaultAppearance({xref:a,extra:"[] 0 d 0.571 w",strokeColor:e,strokeAlpha:F,pointsCallback:(e,t)=>(e.push(`${t[2].x} ${t[2].y+1.3} m`,`${t[3].x} ${t[3].y+1.3} l`,"S"),[t[0].x,t[1].x,t[3].y,t[1].y])})}}else this.data.popupRef=null}}class q extends y{constructor(e){super(e);var{dict:t,xref:a}=e;if(this.data.annotationType=F.AnnotationType.SQUIGGLY,this.data.quadPoints=h(t,null)){if(!this.appearance){const e=this.color?p(this.color):[0,0,0],F=t.get("CA");this._setDefaultAppearance({xref:a,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:F,pointsCallback:(e,t)=>{var a=(t[0].y-t[2].y)/6;let r=a,i=t[2].x;var n=t[2].y,s=t[3].x;for(e.push(`${i} ${n+r} m`);i+=2,r=0===r?a:0,e.push(`${i} ${n+r} l`),i<s;);return e.push("S"),[t[2].x,s,n-2*a,n+2*a]}})}}else this.data.popupRef=null}}class z extends y{constructor(e){super(e);var{dict:t,xref:a}=e;if(this.data.annotationType=F.AnnotationType.STRIKEOUT,this.data.quadPoints=h(t,null)){if(!this.appearance){const e=this.color?p(this.color):[0,0,0],F=t.get("CA");this._setDefaultAppearance({xref:a,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:F,pointsCallback:(e,t)=>(e.push((t[0].x+t[2].x)/2+" "+(t[0].y+t[2].y)/2+" m",(t[1].x+t[3].x)/2+" "+(t[1].y+t[3].y)/2+" l","S"),[t[0].x,t[1].x,t[3].y,t[1].y])})}}else this.data.popupRef=null}}class B extends y{constructor(e){super(e),this.data.annotationType=F.AnnotationType.STAMP,this.data.hasOwnCanvas=this.data.noRotate}static async createImage(a,e){const{width:t,height:r}=a,i=new OffscreenCanvas(t,r),n=i.getContext("2d",{alpha:!0});n.drawImage(a,0,0);var s=n.getImageData(0,0,t,r).data,o=new Uint32Array(s.buffer),s=o.some(F.FeatureTest.isLittleEndian?e=>e>>>24!=255:e=>255!=(255&e)),a=(s&&(n.fillStyle="white",n.fillRect(0,0,t,r),n.drawImage(a,0,0)),i.convertToBlob({type:"image/jpeg",quality:1}).then(e=>e.arrayBuffer())),l=T.Name.get("XObject"),c=T.Name.get("Image"),h=new T.Dict(e);h.set("Type",l),h.set("Subtype",c),h.set("BitsPerComponent",8),h.set("ColorSpace",T.Name.get("DeviceRGB")),h.set("Filter",T.Name.get("DCTDecode")),h.set("BBox",[0,0,t,r]),h.set("Width",t),h.set("Height",r);let u=null;if(s){const a=new Uint8Array(o.length);if(F.FeatureTest.isLittleEndian)for(let e=0,t=o.length;e<t;e++)a[e]=o[e]>>>24;else for(let e=0,t=o.length;e<t;e++)a[e]=255&o[e];const i=new T.Dict(e);i.set("Type",l),i.set("Subtype",c),i.set("BitsPerComponent",8),i.set("ColorSpace",T.Name.get("DeviceGray")),i.set("Width",t),i.set("Height",r),u=new M.Stream(a,0,0,i)}return{imageStream:new M.Stream(await a,0,0,h),smaskStream:u,width:t,height:r}}static createNewDict(e,t,{apRef:a,ap:r}){var{rect:e,rotation:i,user:n}=e,s=new T.Dict(t);if(s.set("Type",T.Name.get("Annot")),s.set("Subtype",T.Name.get("Stamp")),s.set("CreationDate","D:"+(0,F.getModificationDate)()),s.set("Rect",e),s.set("F",4),s.set("Border",[0,0,0]),s.set("Rotate",i),n&&s.set("T",(0,O.isAscii)(n)?n:(0,O.stringToUTF16String)(n,!0)),a||r){const e=new T.Dict(t);s.set("AP",e),a?e.set("N",a):e.set("N",r)}return s}static async createNewAppearanceStream(e,t,a){var r=e["rotation"],{imageRef:e,width:a,height:i}=a.image,n=new T.Dict(t),s=new T.Dict(t),s=(n.set("XObject",s),s.set("Im0",e),`q ${a} 0 0 ${i} 0 0 cm /Im0 Do Q`),t=new T.Dict(t);if(t.set("FormType",1),t.set("Subtype",T.Name.get("Form")),t.set("Type",T.Name.get("XObject")),t.set("BBox",[0,0,a,i]),t.set("Resources",n),r){const e=(0,O.getRotationMatrix)(r,a,i);t.set("Matrix",e)}e=new M.StringStream(s);return e.dict=t,e}}class G extends y{constructor(e){super(e);var{dict:e,xref:t}=e,t=new s.FileSpec(e.get("FS"),t),t=(this.data.annotationType=F.AnnotationType.FILEATTACHMENT,this.data.hasOwnCanvas=this.data.noRotate,this.data.file=t.serializable,e.get("Name")),t=(this.data.name=t instanceof T.Name?(0,F.stringToPDFString)(t.name):"PushPin",e.get("ca"));this.data.fillAlpha="number"==typeof t&&0<=t&&t<=1?t:null}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FakeUnicodeFont=void 0,t.createDefaultAppearance=function({fontSize:e,fontName:t,fontColor:a}){return`/${(0,w.escapePDFName)(t)} ${e} Tf `+S(a,!0)},t.getPdfColor=S,t.parseAppearanceStream=function(e,t,a){return new l(e,t,a).parse()},t.parseDefaultAppearance=function(e){return new o(e).parse()};var y=a(4),w=a(3),v=a(2),s=a(12),r=a(13),i=a(59),n=a(57),x=a(8);class o extends r.EvaluatorPreprocessor{constructor(e){super(new x.StringStream(e))}parse(){const e={fn:0,args:[]},t={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;e.args.length=0,this.read(e);)if(0===this.savedStatesDepth){var a=e["args"];switch(0|r){case v.OPS.setFont:const[e,r]=a;e instanceof y.Name&&(t.fontName=e.name),"number"==typeof r&&0<r&&(t.fontSize=r);break;case v.OPS.setFillRGBColor:s.ColorSpace.singletons.rgb.getRgbItem(a,0,t.fontColor,0);break;case v.OPS.setFillGray:s.ColorSpace.singletons.gray.getRgbItem(a,0,t.fontColor,0);break;case v.OPS.setFillCMYKColor:s.ColorSpace.singletons.cmyk.getRgbItem(a,0,t.fontColor,0)}}}catch(e){(0,v.warn)(`parseDefaultAppearance - ignoring errors: "${e}".`)}return t}}class l extends r.EvaluatorPreprocessor{constructor(e,t,a){super(e),this.stream=e,this.evaluatorOptions=t,this.xref=a,this.resources=e.dict?.get("Resources")}parse(){const e={fn:0,args:[]};let t={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:s.ColorSpace.singletons.gray},a=!1;var r=[];try{for(;e.args.length=0,!a&&this.read(e);){var i=e["args"];switch(0|n){case v.OPS.save:r.push({scaleFactor:t.scaleFactor,fontSize:t.fontSize,fontName:t.fontName,fontColor:t.fontColor.slice(),fillColorSpace:t.fillColorSpace});break;case v.OPS.restore:t=r.pop()||t;break;case v.OPS.setTextMatrix:t.scaleFactor*=Math.hypot(i[0],i[1]);break;case v.OPS.setFont:const[e,n]=i;e instanceof y.Name&&(t.fontName=e.name),"number"==typeof n&&0<n&&(t.fontSize=n*t.scaleFactor);break;case v.OPS.setFillColorSpace:t.fillColorSpace=s.ColorSpace.parse({cs:i[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:this._localColorSpaceCache});break;case v.OPS.setFillColor:t.fillColorSpace.getRgbItem(i,0,t.fontColor,0);break;case v.OPS.setFillRGBColor:s.ColorSpace.singletons.rgb.getRgbItem(i,0,t.fontColor,0);break;case v.OPS.setFillGray:s.ColorSpace.singletons.gray.getRgbItem(i,0,t.fontColor,0);break;case v.OPS.setFillCMYKColor:s.ColorSpace.singletons.cmyk.getRgbItem(i,0,t.fontColor,0);break;case v.OPS.showText:case v.OPS.showSpacedText:case v.OPS.nextLineShowText:case v.OPS.nextLineSetSpacingShowText:a=!0}}}catch(e){(0,v.warn)(`parseAppearanceStream - ignoring errors: "${e}".`)}return this.stream.reset(),delete t.scaleFactor,delete t.fillColorSpace,t}get _localColorSpaceCache(){return(0,v.shadow)(this,"_localColorSpaceCache",new i.LocalColorSpaceCache)}get _pdfFunctionFactory(){var e=new n.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.evaluatorOptions.isEvalSupported});return(0,v.shadow)(this,"_pdfFunctionFactory",e)}}function S(e,t){var a;return e[0]===e[1]&&e[1]===e[2]?(a=e[0]/255,(0,w.numberToString)(a)+" "+(t?"g":"G")):Array.from(e,e=>(0,w.numberToString)(e/255)).join(" ")+" "+(t?"rg":"RG")}class c{constructor(e,t){this.xref=e,this.widths=null,this.firstChar=1/0,this.lastChar=-1/0,this.fontFamily=t;e=new OffscreenCanvas(1,1);this.ctxMeasure=e.getContext("2d"),c._fontNameId||(c._fontNameId=1),this.fontName=y.Name.get(`InvalidPDFjsFont_${t}_`+c._fontNameId++)}get toUnicodeRef(){var e,t,a;return c._toUnicodeRef||(e="/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",t=c.toUnicodeStream=new x.StringStream(e),a=new y.Dict(this.xref),(t.dict=a).set("Length",e.length),c._toUnicodeRef=this.xref.getNewPersistentRef(t)),c._toUnicodeRef}get fontDescriptorRef(){var e;return c._fontDescriptorRef||((e=new y.Dict(this.xref)).set("Type",y.Name.get("FontDescriptor")),e.set("FontName",this.fontName),e.set("FontFamily","MyriadPro Regular"),e.set("FontBBox",[0,0,0,0]),e.set("FontStretch",y.Name.get("Normal")),e.set("FontWeight",400),e.set("ItalicAngle",0),c._fontDescriptorRef=this.xref.getNewPersistentRef(e)),c._fontDescriptorRef}get descendantFontRef(){const e=new y.Dict(this.xref);e.set("BaseFont",this.fontName),e.set("Type",y.Name.get("Font")),e.set("Subtype",y.Name.get("CIDFontType0")),e.set("CIDToGIDMap",y.Name.get("Identity")),e.set("FirstChar",this.firstChar),e.set("LastChar",this.lastChar),e.set("FontDescriptor",this.fontDescriptorRef),e.set("DW",1e3);var t=[];let a=null,r=null;for(const[e,y]of[...this.widths.entries()].sort())a?e===a+r.length?r.push(y):(t.push(a,r),a=e,r=[y]):(a=e,r=[y]);a&&t.push(a,r),e.set("W",t);var i=new y.Dict(this.xref);return i.set("Ordering","Identity"),i.set("Registry","Adobe"),i.set("Supplement",0),e.set("CIDSystemInfo",i),this.xref.getNewPersistentRef(e)}get baseFontRef(){var e=new y.Dict(this.xref);return e.set("BaseFont",this.fontName),e.set("Type",y.Name.get("Font")),e.set("Subtype",y.Name.get("Type0")),e.set("Encoding",y.Name.get("Identity-H")),e.set("DescendantFonts",[this.descendantFontRef]),e.set("ToUnicode",this.toUnicodeRef),this.xref.getNewPersistentRef(e)}get resources(){var e=new y.Dict(this.xref),t=new y.Dict(this.xref);return t.set(this.fontName.name,this.baseFontRef),e.set("Font",t),e}_createContext(){return this.widths=new Map,this.ctxMeasure.font="1000px "+this.fontFamily,this.ctxMeasure}createFontResources(e){var t=this._createContext();for(const i of e.split(/\r\n?|\n/))for(const e of i.split("")){var a,r=e.charCodeAt(0);this.widths.has(r)||(a=t.measureText(e),a=Math.ceil(a.width),this.widths.set(r,a),this.firstChar=Math.min(r,this.firstChar),this.lastChar=Math.max(r,this.lastChar))}return this.resources}createAppearance(e,t,a,r,i,n){var s,o=this._createContext(),l=[];let c=-1/0;for(const t of e.split(/\r\n?|\n/)){l.push(t);const e=o.measureText(t).width;c=Math.max(c,e);for(const e of t.split("")){const t=e.charCodeAt(0);if(void 0===this.widths.get(t)){const y=o.measureText(e);s=Math.ceil(y.width),this.widths.set(t,s),this.firstChar=Math.min(t,this.firstChar),this.lastChar=Math.max(t,this.lastChar)}}}c*=r/1e3;var[e,t,h,u]=t;let d=h-e,f=u-t,g=(a%180!=0&&([d,f]=[f,d]),1),p=(c>d&&(g=d/c),1);var h=v.LINE_FACTOR*r,e=v.LINE_DESCENT_FACTOR*r,u=h*l.length,t=(u>f&&(p=f/u),r*Math.min(g,p)),m=["q",`0 0 ${(0,w.numberToString)(d)} ${(0,w.numberToString)(f)} re W n`,"BT",`1 0 0 1 0 ${(0,w.numberToString)(f+e)} Tm 0 Tc `+S(i,!0),`/${this.fontName.name} ${(0,w.numberToString)(t)} Tf`],u=this["resources"];if(1!==(n="number"==typeof n&&0<=n&&n<=1?n:1)){m.push("/R0 gs");const e=new y.Dict(this.xref),t=new y.Dict(this.xref);t.set("ca",n),t.set("CA",n),t.set("Type",y.Name.get("ExtGState")),e.set("R0",t),u.set("ExtGState",e)}var b=(0,w.numberToString)(h);for(const e of l)m.push(`0 -${b} Td <${(0,w.stringToUTF16HexString)(e)}> Tj`);m.push("ET","Q");r=m.join("\n"),i=new y.Dict(this.xref);if(i.set("Subtype",y.Name.get("Form")),i.set("Type",y.Name.get("XObject")),i.set("BBox",[0,0,d,f]),i.set("Length",r.length),i.set("Resources",u),a){const e=(0,w.getRotationMatrix)(a,d,f);i.set("Matrix",e)}e=new x.StringStream(r);return e.dict=i,e}}t.FakeUnicodeFont=c},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorSpace=void 0;var d=a(2),f=a(4),i=a(5),n=a(3);class r{constructor(e,t){this.constructor===r&&(0,d.unreachable)("Cannot initialize ColorSpace."),this.name=e,this.numComps=t}getRgb(e,t){var a=new Uint8ClampedArray(3);return this.getRgbItem(e,t,a,0),a}getRgbItem(e,t,a,r){(0,d.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(e,t,a,r,i,n,s){(0,d.unreachable)("Should not call ColorSpace.getRgbBuffer")}getOutputLength(e,t){(0,d.unreachable)("Should not call ColorSpace.getOutputLength")}isPassthrough(e){return!1}isDefaultDecode(e,t){return r.isDefaultDecode(e,this.numComps)}fillRgb(i,r,n,s,o,l,e,a,c){var h=r*n;let u=null;var t=1<<e,d=n!==o||r!==s;if(this.isPassthrough(e))u=a;else if(1===this.numComps&&t<h&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){const r=new(e<=8?Uint8Array:Uint16Array)(t);for(let e=0;e<t;e++)r[e]=e;const n=new Uint8ClampedArray(3*t);if(this.getRgbBuffer(r,0,t,n,0,e,0),d){u=new Uint8Array(3*h);let t=0;for(let e=0;e<h;++e){const s=3*a[e];u[t++]=n[s],u[t++]=n[1+s],u[t++]=n[2+s]}}else{let t=0;for(let e=0;e<h;++e){const o=3*a[e];i[t++]=n[o],i[t++]=n[1+o],i[t++]=n[2+o],t+=c}}}else d?(u=new Uint8ClampedArray(3*h),this.getRgbBuffer(a,0,h,u,0,e,0)):this.getRgbBuffer(a,0,s*l,i,0,e,c);if(u)if(d){var f=u;var g=i;e=r;var p=n;var m=s;var b=o;var y=void 0;y=1!==c?0:c;var w=e/m,v=p/b;let t,a=0;var x=new Uint16Array(m),S=3*e;for(let e=0;e<m;e++)x[e]=3*Math.floor(e*w);for(let e=0;e<b;e++){const p=Math.floor(e*v)*S;for(let e=0;e<m;e++)t=p+x[e],g[a++]=f[t++],g[a++]=f[t++],g[a++]=f[+t],a+=y}return}else{let a=0,r=0;for(let e=0,t=s*l;e<t;e++)i[a++]=u[r++],i[a++]=u[r++],i[a++]=u[r++],a+=c}}get usesZeroToOneRange(){return(0,d.shadow)(this,"usesZeroToOneRange",!0)}static _cache(e,t,a,r){if(!a)throw new Error('ColorSpace._cache - expected "localColorSpaceCache" argument.');if(!r)throw new Error('ColorSpace._cache - expected "parsedColorSpace" argument.');let i,n;e instanceof f.Ref&&(n=e,e=t.fetch(e)),((i=e instanceof f.Name?e.name:i)||n)&&a.set(i,n,r)}static getCached(e,t,a){if(!a)throw new Error('ColorSpace.getCached - expected "localColorSpaceCache" argument.');if(e instanceof f.Ref){var r=a.getByRef(e);if(r)return r;try{e=t.fetch(e)}catch(e){if(e instanceof n.MissingDataException)throw e}}if(e instanceof f.Name){const t=a.getByName(e.name);if(t)return t}return null}static async parseAsync({cs:e,xref:t,resources:a=null,pdfFunctionFactory:r,localColorSpaceCache:i}){a=this._parse(e,t,a,r);return this._cache(e,t,i,a),a}static parse({cs:e,xref:t,resources:a=null,pdfFunctionFactory:r,localColorSpaceCache:i}){var n=this.getCached(e,t,i);return n||(n=this._parse(e,t,a,r),this._cache(e,t,i,n),n)}static _parse(s,o,l=null,c){if((s=o.fetchIfRef(s))instanceof f.Name)switch(s.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 p(null);default:if(l instanceof f.Dict){const d=l.get("ColorSpace");if(d instanceof f.Dict){var e=d.get(s.name);if(e){if(e instanceof f.Name)return this._parse(e,o,l,c);s=e;break}}}throw new d.FormatError("Unrecognized ColorSpace: "+s.name)}if(Array.isArray(s)){const f=o.fetchIfRef(s[0]).name;let e,t,a,r,i,n;switch(f){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":return e=o.fetchIfRef(s[1]),r=e.getArray("WhitePoint"),i=e.getArray("BlackPoint"),n=e.get("Gamma"),new b(r,i,n);case"CalRGB":e=o.fetchIfRef(s[1]),r=e.getArray("WhitePoint"),i=e.getArray("BlackPoint"),n=e.getArray("Gamma");var h=e.getArray("Matrix");return new y(r,i,n,h);case"ICCBased":h=o.fetchIfRef(s[1]).dict,h=(t=h.get("N"),h.get("Alternate"));if(h){const s=this._parse(h,o,l,c);if(s.numComps===t)return s;(0,d.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===t)return this.singletons.gray;if(3===t)return this.singletons.rgb;if(4===t)return this.singletons.cmyk;break;case"Pattern":return a=(a=s[1]||null)&&this._parse(a,o,l,c),new p(a);case"I":case"Indexed":a=this._parse(s[1],o,l,c);var h=o.fetchIfRef(s[2])+1,u=o.fetchIfRef(s[3]);return new m(a,h,u);case"Separation":case"DeviceN":h=o.fetchIfRef(s[1]),u=(t=Array.isArray(h)?h.length:1,a=this._parse(s[2],o,l,c),c.create(s[3]));return new g(t,a,u);case"Lab":e=o.fetchIfRef(s[1]),r=e.getArray("WhitePoint"),i=e.getArray("BlackPoint");h=e.getArray("Range");return new w(r,i,h);default:throw new d.FormatError("Unimplemented ColorSpace object: "+f)}}throw new d.FormatError("Unrecognized ColorSpace object: "+s)}static isDefaultDecode(a,e){if(Array.isArray(a))if(2*e!==a.length)(0,d.warn)("The decode map is not the correct length");else for(let e=0,t=a.length;e<t;e+=2)if(0!==a[e]||1!==a[e+1])return!1;return!0}static get singletons(){return(0,d.shadow)(this,"singletons",{get gray(){return(0,d.shadow)(this,"gray",new s)},get rgb(){return(0,d.shadow)(this,"rgb",new o)},get cmyk(){return(0,d.shadow)(this,"cmyk",new l)}})}}class g extends(t.ColorSpace=r){constructor(e,t,a){super("Alternate",e),this.base=t,this.tintFn=a,this.tmpBuf=new Float32Array(t.numComps)}getRgbItem(e,t,a,r){var i=this.tmpBuf;this.tintFn(e,t,i,0),this.base.getRgbItem(i,0,a,r)}getRgbBuffer(e,t,a,r,i,n,s){var o=this.tintFn,l=this.base,c=1/((1<<n)-1),h=l.numComps,u=l.usesZeroToOneRange,n=(l.isPassthrough(8)||!u)&&0===s;let d=n?i:0;var f=n?r:new Uint8ClampedArray(h*a),g=this.numComps,p=new Float32Array(g),m=new Float32Array(h);let b,y;for(b=0;b<a;b++){for(y=0;y<g;y++)p[y]=e[t++]*c;if(o(p,0,m,0),u)for(y=0;y<h;y++)f[d++]=255*m[y];else l.getRgbItem(m,0,f,d),d+=h}n||l.getRgbBuffer(f,0,a,r,i,8,s)}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps/this.numComps,t)}}class p extends r{constructor(e){super("Pattern",null),this.base=e}isDefaultDecode(e,t){(0,d.unreachable)("Should not call PatternCS.isDefaultDecode")}}class m extends r{constructor(e,t,a){super("Indexed",1),this.base=e,this.highVal=t;var r=e.numComps*t;if(this.lookup=new Uint8Array(r),a instanceof i.BaseStream){const e=a.getBytes(r);this.lookup.set(e)}else{if("string"!=typeof a)throw new d.FormatError("IndexedCS - unrecognized lookup table: "+a);for(let e=0;e<r;++e)this.lookup[e]=255&a.charCodeAt(e)}}getRgbItem(e,t,a,r){var i=this.base.numComps,e=e[t]*i;this.base.getRgbBuffer(this.lookup,e,1,a,r,8,0)}getRgbBuffer(t,a,r,i,n,e,s){var o=this.base,l=o.numComps,c=o.getOutputLength(l,s),h=this.lookup;for(let e=0;e<r;++e){const r=t[a++]*l;o.getRgbBuffer(h,r,1,i,n,8,s),n+=c}}getOutputLength(e,t){return this.base.getOutputLength(e*this.base.numComps,t)}isDefaultDecode(e,t){return!Array.isArray(e)||(2!==e.length?((0,d.warn)("Decode map length is not correct"),!0):!Number.isInteger(t)||t<1?((0,d.warn)("Bits per component is not correct"),!0):0===e[0]&&e[1]===(1<<t)-1)}}class s extends r{constructor(){super("DeviceGray",1)}getRgbItem(e,t,a,r){e=255*e[t];a[r]=a[r+1]=a[r+2]=e}getRgbBuffer(t,a,r,i,e,n,s){var o=255/((1<<n)-1);let l=a,c=e;for(let e=0;e<r;++e){const a=o*t[l++];i[c++]=a,i[c++]=a,i[c++]=a,c+=s}}getOutputLength(e,t){return e*(3+t)}}class o extends r{constructor(){super("DeviceRGB",3)}getRgbItem(e,t,a,r){a[r]=255*e[t],a[r+1]=255*e[t+1],a[r+2]=255*e[t+2]}getRgbBuffer(r,e,i,n,s,o,l){if(8===o&&0===l)n.set(r.subarray(e,e+3*i),s);else{var c=255/((1<<o)-1);let t=e,a=s;for(let e=0;e<i;++e)n[a++]=c*r[t++],n[a++]=c*r[t++],n[a++]=c*r[t++],a+=l}}getOutputLength(e,t){return e*(3+t)/3|0}isPassthrough(e){return 8===e}}class l extends r{constructor(){super("DeviceCMYK",4)}#n(e,t,a,r,i){var n=e[t]*a,s=e[t+1]*a,o=e[t+2]*a,e=e[t+3]*a;r[i]=255+n*(-4.387332384609988*n+54.48615194189176*s+18.82290502165302*o+212.25662451639585*e-285.2331026137004)+s*(1.7149763477362134*s-5.6096736904047315*o+-17.873870861415444*e-5.497006427196366)+o*(-2.5217340131683033*o-21.248923337353073*e+17.5119270841813)+e*(-21.86122147463605*e-189.48180835922747),r[i+1]=255+n*(8.841041422036149*n+60.118027045597366*s+6.871425592049007*o+31.159100130055922*e-79.2970844816548)+s*(-15.310361306967817*s+17.575251261109482*o+131.35250912493976*e-190.9453302588951)+o*(4.444339102852739*o+9.8632861493405*e-24.86741582555878)+e*(-20.737325471181034*e-187.80453709719578),r[i+2]=255+n*(.8842522430003296*n+8.078677503112928*s+30.89978309703729*o-.23883238689178934*e-14.183576799673286)+s*(10.49593273432072*s+63.02378494754052*o+50.606957656360734*e-112.23884253719248)+o*(.03296041114873217*o+115.60384449646641*e-193.58209356861505)+e*(-22.33816807309886*e-180.12613974708367)}getRgbItem(e,t,a,r){this.#n(e,t,1,a,r)}getRgbBuffer(t,a,r,i,n,e,s){var o=1/((1<<e)-1);for(let e=0;e<r;e++)this.#n(t,a,o,i,n),a+=4,n+=3+s}getOutputLength(e,t){return e/4*(3+t)|0}}class b extends r{constructor(e,t,a){if(super("CalGray",1),!e)throw new d.FormatError("WhitePoint missing - required for color space CalGray");if([this.XW,this.YW,this.ZW]=e,[this.XB,this.YB,this.ZB]=t||[0,0,0],this.G=a||1,this.XW<0||this.ZW<0||1!==this.YW)throw new d.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(this.XB<0||this.YB<0||this.ZB<0)&&((0,d.info)(`Invalid BlackPoint for ${this.name}, falling back to default.`),this.XB=this.YB=this.ZB=0),0===this.XB&&0===this.YB&&0===this.ZB||(0,d.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`),this.G<1&&((0,d.info)(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`),this.G=1)}#n(e,t,a,r,i){e=(e[t]*i)**this.G,t=this.YW*e,i=Math.max(295.8*t**.3333333333333333-40.8,0);a[r]=i,a[r+1]=i,a[r+2]=i}getRgbItem(e,t,a,r){this.#n(e,t,a,r,1)}getRgbBuffer(t,a,r,i,n,e,s){var o=1/((1<<e)-1);for(let e=0;e<r;++e)this.#n(t,a,i,n,o),a+=1,n+=3+s}getOutputLength(e,t){return e*(3+t)}}class y extends r{static#r=new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296]);static#i=new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867]);static#s=new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252]);static#o=new Float32Array([1,1,1]);static#c=new Float32Array(3);static#l=new Float32Array(3);static#h=new Float32Array(3);static#u=(24/116)**3/8;constructor(e,t,a,r){if(super("CalRGB",3),!e)throw new d.FormatError("WhitePoint missing - required for color space CalRGB");var[e,i,n]=this.whitePoint=e,[t,s,o]=this.blackPoint=t||new Float32Array(3);if([this.GR,this.GG,this.GB]=a||new Float32Array([1,1,1]),[this.MXA,this.MYA,this.MZA,this.MXB,this.MYB,this.MZB,this.MXC,this.MYC,this.MZC]=r||new Float32Array([1,0,0,0,1,0,0,0,1]),e<0||n<0||1!==i)throw new d.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);(t<0||s<0||o<0)&&((0,d.info)(`Invalid BlackPoint for ${this.name} [${t}, ${s}, ${o}], falling back to default.`),this.blackPoint=new Float32Array(3)),(this.GR<0||this.GG<0||this.GB<0)&&((0,d.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`),this.GR=this.GG=this.GB=1)}#d(e,t,a){a[0]=e[0]*t[0]+e[1]*t[1]+e[2]*t[2],a[1]=e[3]*t[0]+e[4]*t[1]+e[5]*t[2],a[2]=e[6]*t[0]+e[7]*t[1]+e[8]*t[2]}#f(e,t,a){a[0]=+t[0]/e[0],a[1]=+t[1]/e[1],a[2]=+t[2]/e[2]}#g(e,t,a){a[0]=.95047*t[0]/e[0],a[1]=+t[1]/e[1],a[2]=1.08883*t[2]/e[2]}#p(e){return e<=.0031308?this.#m(0,1,12.92*e):.99554525<=e?1:this.#m(0,1,1.055*e**(1/2.4)-.055)}#m(e,t,a){return Math.max(e,Math.min(t,a))}#b(e){return e<0?-this.#b(-e):8<e?((e+16)/116)**3:e*y.#u}#y(e,t,a){var r,i,n,s,o;0===e[0]&&0===e[1]&&0===e[2]?(a[0]=t[0],a[1]=t[1],a[2]=t[2]):(i=1-(r=(1-(o=this.#b(0)))/(1-this.#b(e[0]))),s=1-(n=(1-o)/(1-this.#b(e[1]))),e=1-(o=(1-o)/(1-this.#b(e[2]))),a[0]=t[0]*r+i,a[1]=t[1]*n+s,a[2]=t[2]*o+e)}#w(e,t,a){var r;1===e[0]&&1===e[2]?(a[0]=t[0],a[1]=t[1],a[2]=t[2]):(r=a,this.#d(y.#r,t,r),t=y.#c,this.#f(e,r,t),this.#d(y.#i,t,a))}#x(e,t,a){var r=a,t=(this.#d(y.#r,t,r),y.#c);this.#g(e,r,t),this.#d(y.#i,t,a)}#n(e,t,a,r,i){var n=this.#m(0,1,e[t]*i),s=this.#m(0,1,e[t+1]*i),e=this.#m(0,1,e[t+2]*i),t=1===n?1:n**this.GR,i=1===s?1:s**this.GG,n=1===e?1:e**this.GB,s=this.MXA*t+this.MXB*i+this.MXC*n,e=this.MYA*t+this.MYB*i+this.MYC*n,t=this.MZA*t+this.MZB*i+this.MZC*n,i=y.#l,n=(i[0]=s,i[1]=e,i[2]=t,y.#h),s=(this.#w(this.whitePoint,i,n),y.#l),e=(this.#y(this.blackPoint,n,s),y.#h),t=(this.#x(y.#o,s,e),y.#l);this.#d(y.#s,e,t),a[r]=255*this.#p(t[0]),a[r+1]=255*this.#p(t[1]),a[r+2]=255*this.#p(t[2])}getRgbItem(e,t,a,r){this.#n(e,t,a,r,1)}getRgbBuffer(t,a,r,i,n,e,s){var o=1/((1<<e)-1);for(let e=0;e<r;++e)this.#n(t,a,i,n,o),a+=3,n+=3+s}getOutputLength(e,t){return e*(3+t)/3|0}}class w extends r{constructor(e,t,a){if(super("Lab",3),!e)throw new d.FormatError("WhitePoint missing - required for color space Lab");if([this.XW,this.YW,this.ZW]=e,[this.amin,this.amax,this.bmin,this.bmax]=a||[-100,100,-100,100],[this.XB,this.YB,this.ZB]=t||[0,0,0],this.XW<0||this.ZW<0||1!==this.YW)throw new d.FormatError("Invalid WhitePoint components, no fallback available");(this.XB<0||this.YB<0||this.ZB<0)&&((0,d.info)("Invalid BlackPoint, falling back to default"),this.XB=this.YB=this.ZB=0),(this.amin>this.amax||this.bmin>this.bmax)&&((0,d.info)("Invalid Range, falling back to defaults"),this.amin=-100,this.amax=100,this.bmin=-100,this.bmax=100)}#S(e){return 6/29<=e?e**3:108/841*(e-4/29)}#A(e,t,a,r){return a+e*(r-a)/t}#n(e,t,a,r,i){let n=e[t],s=e[t+1],o=e[t+2];!1!==a&&(n=this.#A(n,a,0,100),s=this.#A(s,a,this.amin,this.amax),o=this.#A(o,a,this.bmin,this.bmax)),s>this.amax?s=this.amax:s<this.amin&&(s=this.amin),o>this.bmax?o=this.bmax:o<this.bmin&&(o=this.bmin);e=(n+16)/116,t=e+s/500,a=e-o/200,t=this.XW*this.#S(t),e=this.YW*this.#S(e),a=this.ZW*this.#S(a);let l,c,h;h=this.ZW<1?(l=3.1339*t+-1.617*e+-.4906*a,c=-.9785*t+1.916*e+.0333*a,.072*t+-.229*e+1.4057*a):(l=3.2406*t+-1.5372*e+-.4986*a,c=-.9689*t+1.8758*e+.0415*a,.0557*t+-.204*e+1.057*a),r[i]=255*Math.sqrt(l),r[i+1]=255*Math.sqrt(c),r[i+2]=255*Math.sqrt(h)}getRgbItem(e,t,a,r){this.#n(e,t,!1,a,r)}getRgbBuffer(t,a,r,i,n,e,s){var o=(1<<e)-1;for(let e=0;e<r;e++)this.#n(t,a,o,i,n),a+=3,n+=3+s}getOutputLength(e,t){return e*(3+t)/3|0}isDefaultDecode(e,t){return!0}get usesZeroToOneRange(){return(0,d.shadow)(this,"usesZeroToOneRange",!1)}}},(v,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PartialEvaluator=e.EvaluatorPreprocessor=void 0;var H=t(2),A=t(14),q=t(4),k=t(34),h=t(37),C=t(41),d=t(50),F=t(51),o=t(42),c=t(57),r=t(16),z=t(59),O=t(8),G=t(5),n=t(60),D=t(12),m=t(18),I=t(38),T=t(61),l=t(39),s=t(45),u=t(40),f=t(62),x=t(63),g=t(64),b=t(65);const p=Object.freeze({maxImageSize:-1,disableFontFace:!1,ignoreErrors:!1,isEvalSupported:!0,isOffscreenCanvasSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,cMapUrl:null,standardFontDataUrl:null}),W=Promise.resolve();function B(e){e.fn===H.OPS.paintImageMaskXObject&&0<e.args[0]?.count&&e.args[0].count++}class a{static TIME_SLOT_DURATION_MS=20;static CHECK_TIME_EVERY=100;constructor(){this.reset()}check(){return!(++this.checked<a.CHECK_TIME_EVERY)&&(this.checked=0,this.endTime<=Date.now())}reset(){this.endTime=Date.now()+a.TIME_SLOT_DURATION_MS,this.checked=0}}class y{constructor({xref:e,handler:t,pageIndex:a,idFactory:r,fontCache:i,builtInCMapCache:n,standardFontDataCache:s,globalImageCache:o,systemFontCache:l,options:c=null}){this.xref=e,this.handler=t,this.pageIndex=a,this.idFactory=r,this.fontCache=i,this.builtInCMapCache=n,this.standardFontDataCache=s,this.globalImageCache=o,this.systemFontCache=l,this.options=c||p,this.parsingType3Font=!1,this._regionalImageCache=new z.RegionalImageCache,this._fetchBuiltInCMapBound=this.fetchBuiltInCMap.bind(this),f.ImageResizer.setMaxArea(this.options.canvasMaxAreaInBytes)}get _pdfFunctionFactory(){var e=new c.PDFFunctionFactory({xref:this.xref,isEvalSupported:this.options.isEvalSupported});return(0,H.shadow)(this,"_pdfFunctionFactory",e)}clone(e=null){var t=Object.create(this);return t.options=Object.assign(Object.create(null),this.options,e),t}hasBlendModes(e,t){if(e instanceof q.Dict&&(!e.objId||!t.has(e.objId))){for(var a=new q.RefSet(t),r=(e.objId&&a.put(e.objId),[e]),i=this.xref;r.length;){const e=r.shift(),t=e.get("ExtGState");if(t instanceof q.Dict)for(var n of t.getRawValues()){if(n instanceof q.Ref){if(a.has(n))continue;try{n=i.fetch(n)}catch(t){a.put(n),(0,H.info)(`hasBlendModes - ignoring ExtGState: "${t}".`);continue}}if(n instanceof q.Dict){n.objId&&a.put(n.objId);const t=n.get("BM");if(t instanceof q.Name){if("Normal"!==t.name)return!0}else if(void 0!==t&&Array.isArray(t))for(const e of t)if(e instanceof q.Name&&"Normal"!==e.name)return!0}}var s=e.get("XObject");if(s instanceof q.Dict)for(var o of s.getRawValues()){if(o instanceof q.Ref){if(a.has(o))continue;try{o=i.fetch(o)}catch(t){a.put(o),(0,H.info)(`hasBlendModes - ignoring XObject: "${t}".`);continue}}if(o instanceof G.BaseStream){o.dict.objId&&a.put(o.dict.objId);const t=o.dict.get("Resources");t instanceof q.Dict&&(t.objId&&a.has(t.objId)||(r.push(t),t.objId&&a.put(t.objId)))}}}for(const e of a)t.put(e)}return!1}async fetchBuiltInCMap(e){const t=this.builtInCMapCache.get(e);if(t)return t;let a;if(null!==this.options.cMapUrl){const t=""+this.options.cMapUrl+e+".bcmap",r=await fetch(t);if(!r.ok)throw new Error(`fetchBuiltInCMap: failed to fetch file "${t}" with "${r.statusText}".`);a={cMapData:new Uint8Array(await r.arrayBuffer()),compressionType:H.CMapCompressionType.BINARY}}else a=await this.handler.sendWithPromise("FetchBuiltInCMap",{name:e});return a.compressionType!==H.CMapCompressionType.NONE&&this.builtInCMapCache.set(e,a),a}async fetchStandardFontData(e){const t=this.standardFontDataCache.get(e);if(t)return new O.Stream(t);if(this.options.useSystemFonts&&"Symbol"!==e&&"ZapfDingbats"!==e)return null;var a=(0,C.getFontNameToFileMap)()[e];let r;if(null!==this.options.standardFontDataUrl){const e=""+this.options.standardFontDataUrl+a,t=await fetch(e);t.ok?r=await t.arrayBuffer():(0,H.warn)(`fetchStandardFontData: failed to fetch file "${e}" with "${t.statusText}".`)}else try{r=await this.handler.sendWithPromise("FetchStandardFontData",{filename:a})}catch(e){(0,H.warn)(`fetchStandardFontData: failed to fetch file "${a}" with "${e}".`)}return r?(this.standardFontDataCache.set(e,r),new O.Stream(r)):null}async buildFormXObject(t,a,r,i,e,n,s){var o=a.dict,l=o.getArray("Matrix");let c,h,u=o.getArray("BBox");u=Array.isArray(u)&&4===u.length?H.Util.normalizeRect(u):null,void 0!==(c=o.has("OC")?await this.parseMarkedContentProps(o.get("OC"),t):c)&&i.addOp(H.OPS.beginMarkedContentProps,["OC",c]);const d=o.get("Group");if(d){h={matrix:l,bbox:u,smask:r,isolated:!1,knockout:!1};const a=d.get("S");let e=null;if((0,q.isName)(a,"Transparency")&&(h.isolated=d.get("I")||!1,h.knockout=d.get("K")||!1,d.has("CS"))){const a=d.getRaw("CS");e=D.ColorSpace.getCached(a,this.xref,s)||await this.parseColorSpace({cs:a,resources:t,localColorSpaceCache:s})}r?.backdrop&&(e||=D.ColorSpace.singletons.rgb,r.backdrop=e.getRgb(r.backdrop,0)),i.addOp(H.OPS.beginGroup,[h])}s=d?[l,null]:[l,u];return i.addOp(H.OPS.paintFormXObjectBegin,s),this.getOperatorList({stream:a,task:e,resources:o.get("Resources")||t,operatorList:i,initialState:n}).then(function(){i.addOp(H.OPS.paintFormXObjectEnd,[]),d&&i.addOp(H.OPS.endGroup,[h]),void 0!==c&&i.addOp(H.OPS.endMarkedContent,[])})}_sendImgData(e,t,a=!1){var r=t?[t.bitmap||t.data.buffer]:null;return this.parsingType3Font||a?this.handler.send("commonobj",[e,"Image",t],r):this.handler.send("obj",[e,this.pageIndex,"Image",t],r)}async buildPaintImageXObject({resources:n,image:s,isInline:o=!1,operatorList:l,cacheKey:c,localImageCache:h,localColorSpaceCache:u}){const t=s.dict,d=t.objId,f=t.get("W","Width"),g=t.get("H","Height");if(f&&"number"==typeof f&&g&&"number"==typeof g){const a=this.options.maxImageSize;if(-1!==a&&f*g>a){const n="Image exceeded maximum allowed size and was removed.";if(this.options.ignoreErrors)return void(0,H.warn)(n);throw new Error(n)}let e,r,i;if(t.has("OC")&&(e=await this.parseMarkedContentProps(t.get("OC"),n)),t.get("IM","ImageMask")){const n=t.get("I","Interpolate"),o=f+7>>3,u=s.getBytes(o*g),a=t.getArray("D","Decode");if(this.parsingType3Font){if((r=b.PDFImage.createRawMask({imgArray:u,width:f,height:g,imageIsFromDecodeStream:s instanceof m.DecodeStream,inverseDecode:0<a?.[0],interpolate:n})).cached=!!c,i=[r],l.addImageOps(H.OPS.paintImageMaskXObject,i,e),c){const n={fn:H.OPS.paintImageMaskXObject,args:i,optionalContent:e};h.set(c,d,n),d&&this._regionalImageCache.set(null,d,n)}return}if((r=await b.PDFImage.createMask({imgArray:u,width:f,height:g,imageIsFromDecodeStream:s instanceof m.DecodeStream,inverseDecode:0<a?.[0],interpolate:n,isOffscreenCanvasSupported:this.options.isOffscreenCanvasSupported})).isSingleOpaquePixel){if(l.addImageOps(H.OPS.paintSolidColorImageMask,[],e),c){const n={fn:H.OPS.paintSolidColorImageMask,args:[],optionalContent:e};h.set(c,d,n),d&&this._regionalImageCache.set(null,d,n)}return}const p="mask_"+this.idFactory.createObjId();if(l.addDependency(p),this._sendImgData(p,r),i=[{data:p,width:r.width,height:r.height,interpolate:r.interpolate,count:1}],l.addImageOps(H.OPS.paintImageMaskXObject,i,e),c){const n={fn:H.OPS.paintImageMaskXObject,args:i,optionalContent:e};h.set(c,d,n),d&&this._regionalImageCache.set(null,d,n)}}else if(o&&!t.has("SMask")&&!t.has("Mask")&&f+g<200){const c=new b.PDFImage({xref:this.xref,res:n,image:s,isInline:o,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:u});r=await c.createImageData(!0,!1),l.isOffscreenCanvasSupported=this.options.isOffscreenCanvasSupported,void l.addImageOps(H.OPS.paintInlineImageXObject,[r],e)}else{let t="img_"+this.idFactory.createObjId(),a=!1;if(this.parsingType3Font?t=this.idFactory.getDocId()+"_type3_"+t:d&&(a=this.globalImageCache.shouldCache(d,this.pageIndex))&&(t=this.idFactory.getDocId()+"_"+t),l.addDependency(t),i=[t,f,g],b.PDFImage.buildImage({xref:this.xref,res:n,image:s,isInline:o,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:u}).then(async e=>{if(r=await e.createImageData(!1,this.options.isOffscreenCanvasSupported),c&&d&&a){const e=r.bitmap?r.width*r.height*4:r.data.length;this.globalImageCache.addByteSize(d,e)}return this._sendImgData(t,r,a)}).catch(e=>((0,H.warn)(`Unable to decode image "${t}": "${e}".`),this._sendImgData(t,null,a))),l.addImageOps(H.OPS.paintImageXObject,i,e),c){const n={fn:H.OPS.paintImageXObject,args:i,optionalContent:e};h.set(c,d,n),d&&(this._regionalImageCache.set(null,d,n),a)&&((0,H.assert)(!o,"Cannot cache an inline image globally."),this.globalImageCache.setData(d,{objId:t,fn:H.OPS.paintImageXObject,args:i,optionalContent:e,byteSize:0}))}}}else(0,H.warn)("Image dimensions are missing, or not numbers.")}handleSMask(t,a,r,e,i,n){var s=t.get("G"),o={subtype:t.get("S").name,backdrop:t.get("BC")},l=t.get("TR");if((0,c.isPDFFunction)(l)){const t=this._pdfFunctionFactory.create(l),a=new Uint8Array(256),r=new Float32Array(1);for(let e=0;e<256;e++)r[0]=e/255,t(r,0,r,0),a[e]=255*r[0]|0;o.transferMap=a}return this.buildFormXObject(a,s,o,r,e,i.state.clone(),n)}handleTransferFunction(e){let t;if(Array.isArray(e))t=e;else{if(!(0,c.isPDFFunction)(e))return null;t=[e]}var a=[];let r=0,i=0;for(const e of t){const t=this.xref.fetchIfRef(e);if(r++,(0,q.isName)(t,"Identity"))a.push(null);else{if(!(0,c.isPDFFunction)(t))return null;var n=this._pdfFunctionFactory.create(t),s=new Uint8Array(256),o=new Float32Array(1);for(let e=0;e<256;e++)o[0]=e/255,n(o,0,o,0),s[e]=255*o[0]|0;a.push(s),i++}}return 1!==r&&4!==r||0===i?null:a}handleTilingType(a,r,e,t,i,n,s,o){const l=new g.OperatorList,c=q.Dict.merge({xref:this.xref,dictArray:[i.get("Resources"),e]});return this.getOperatorList({stream:t,task:s,resources:c,operatorList:l}).then(function(){var e=l.getIR(),t=(0,d.getTilingPatternIR)(e,i,r);n.addDependencies(l.dependencies),n.addOp(a,t),i.objId&&o.set(null,i.objId,{operatorListIR:e,dict:i})}).catch(e=>{if(!(e instanceof H.AbortException)){if(!this.options.ignoreErrors)throw e;(0,H.warn)(`handleTilingType - ignoring pattern: "${e}".`)}})}handleSetFont(e,t,a,r,i,n,s=null,o=null){t=t?.[0]instanceof q.Name?t[0].name:null;return this.loadFont(t,a,e,s,o).then(t=>t.font.isType3Font?t.loadType3Data(this,e,i).then(function(){return r.addDependencies(t.type3Dependencies),t}).catch(e=>new w({loadedName:"g_font_error",font:new k.ErrorFont("Type3 font load error: "+e),dict:t.font,evaluatorOptions:this.options})):t).then(e=>(n.font=e.font,e.send(this.handler),e.loadedName))}handleText(e,t){var a=t.font,e=a.charsToGlyphs(e);return a.data&&(t.textRenderingMode&H.TextRenderingMode.ADD_TO_PATH_FLAG||"Pattern"===t.fillColorSpace.name||a.disableFontFace||this.options.disableFontFace)&&y.buildFontPaths(a,e,this.handler,this.options),e}ensureStateFont(e){if(!e.font){e=new H.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw e;(0,H.warn)(`ensureStateFont: "${e}".`)}}async setGState({resources:e,gState:t,operatorList:a,cacheKey:r,task:i,stateManager:n,localGStateCache:s,localColorSpaceCache:o}){const l=t.objId;let c=!0;const h=[];let u=Promise.resolve();for(const r of t.getKeys()){const s=t.get(r);switch(r){case"Type":break;case"LW":case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":h.push([r,s]);break;case"Font":c=!1,u=u.then(()=>this.handleSetFont(e,null,s[0],a,i,n.state).then(function(e){a.addDependency(e),h.push([r,[e,s[1]]])}));break;case"BM":h.push([r,function e(t,a=!1){if(Array.isArray(t)){for(const a of t){const t=e(a,!0);if(t)return t}return(0,H.warn)("Unsupported blend mode Array: "+t),"source-over"}if(!(t instanceof q.Name))return a?null:"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"}return a?null:((0,H.warn)("Unsupported blend mode: "+t.name),"source-over")}(s)]);break;case"SMask":(0,q.isName)(s,"None")?h.push([r,!1]):s instanceof q.Dict?(c=!1,u=u.then(()=>this.handleSMask(s,e,a,i,n,o)),h.push([r,!0])):(0,H.warn)("Unsupported SMask type");break;case"TR":const t=this.handleTransferFunction(s);h.push([r,t]);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,H.info)("graphic state operator "+r);break;default:(0,H.info)("Unknown graphic state operator "+r)}}return u.then(function(){0<h.length&&a.addOp(H.OPS.setGState,[h]),c&&s.set(r,l,h)})}loadFont(e,t,a,r=null,i=null){var n=async()=>new w({loadedName:"g_font_error",font:new k.ErrorFont(`Font "${e}" is not available.`),dict:t,evaluatorOptions:this.options});let s;if(t)t instanceof q.Ref&&(s=t);else{const t=a.get("Font");t&&(s=t.getRaw(e))}if(s){if(this.parsingType3Font&&this.type3FontRefs.has(s))return n();if(this.fontCache.has(s))return this.fontCache.get(s);t=this.xref.fetchIfRef(s)}if(!(t instanceof q.Dict)){if(!this.options.ignoreErrors&&!this.parsingType3Font)return(0,H.warn)(`Font "${e}" is not available.`),n();(0,H.warn)(`Font "${e}" is not available -- attempting to fallback to a default font.`),t=r||y.fallbackFontDict}if(t.cacheKey&&this.fontCache.has(t.cacheKey))return this.fontCache.get(t.cacheKey);const o=new H.PromiseCapability;let l;try{(l=this.preEvaluateFont(t)).cssFontInfo=i}catch(e){return(0,H.warn)(`loadFont - preEvaluateFont failed: "${e}".`),n()}var{descriptor:a,hash:r}=l,i=s instanceof q.Ref;let c;if(r&&a instanceof q.Dict){const e=a.fontAliases||=Object.create(null);if(e[r]){const t=e[r].aliasRef;if(i&&t&&this.fontCache.has(t))return this.fontCache.putAlias(s,t),this.fontCache.get(s)}else e[r]={fontID:this.idFactory.createFontId()};i&&(e[r].aliasRef=s),c=e[r].fontID}else c=this.idFactory.createFontId();return(0,H.assert)(c?.startsWith("f"),'The "fontID" must be (correctly) defined.'),i?this.fontCache.put(s,o.promise):(t.cacheKey="cacheKey_"+c,this.fontCache.put(t.cacheKey,o.promise)),t.loadedName=this.idFactory.getDocId()+"_"+c,this.translateFont(l).then(e=>{o.resolve(new w({loadedName:t.loadedName,font:e,dict:t,evaluatorOptions:this.options}))}).catch(e=>{(0,H.warn)(`loadFont - translateFont failed: "${e}".`),o.resolve(new w({loadedName:t.loadedName,font:new k.ErrorFont(e instanceof Error?e.message:e),dict:t,evaluatorOptions:this.options}))}),o.promise}buildPath(t,a,r,i=!1){var e=t.length-1;if(r=r||[],e<0||t.fnArray[e]!==H.OPS.constructPath){let e;switch(i&&((0,H.warn)(`Encountered path operator "${a}" inside of a text object.`),t.addOp(H.OPS.save,null)),a){case H.OPS.rectangle:const t=r[0]+r[2],a=r[1]+r[3];e=[Math.min(r[0],t),Math.max(r[0],t),Math.min(r[1],a),Math.max(r[1],a)];break;case H.OPS.moveTo:case H.OPS.lineTo:e=[r[0],r[0],r[1],r[1]];break;default:e=[1/0,-1/0,1/0,-1/0]}t.addOp(H.OPS.constructPath,[[a],r,e]),i&&t.addOp(H.OPS.restore,null)}else{const i=t.argsArray[e];i[0].push(a),i[1].push(...r);var n=i[2];switch(a){case H.OPS.rectangle:const t=r[0]+r[2],a=r[1]+r[3];n[0]=Math.min(n[0],r[0],t),n[1]=Math.max(n[1],r[0],t),n[2]=Math.min(n[2],r[1],a),n[3]=Math.max(n[3],r[1],a);break;case H.OPS.moveTo:case H.OPS.lineTo:n[0]=Math.min(n[0],r[0]),n[1]=Math.max(n[1],r[0]),n[2]=Math.min(n[2],r[1]),n[3]=Math.max(n[3],r[1])}}}parseColorSpace({cs:e,resources:t,localColorSpaceCache:a}){return D.ColorSpace.parseAsync({cs:e,xref:this.xref,resources:t,pdfFunctionFactory:this._pdfFunctionFactory,localColorSpaceCache:a}).catch(e=>{if(e instanceof H.AbortException)return null;if(this.options.ignoreErrors)return(0,H.warn)(`parseColorSpace - ignoring ColorSpace: "${e}".`),null;throw e})}parseShading({shading:e,resources:t,localColorSpaceCache:a,localShadingPatternCache:r}){let i=r.get(e);return i||(t=d.Pattern.parseShading(e,this.xref,t,this._pdfFunctionFactory,a).getIR(),i="pattern_"+this.idFactory.createObjId(),this.parsingType3Font&&(i=this.idFactory.getDocId()+"_type3_"+i),r.set(e,i),this.parsingType3Font?this.handler.send("commonobj",[i,"Pattern",t]):this.handler.send("obj",[i,this.pageIndex,"Pattern",t])),i}handleColorN(e,t,a,r,i,n,s,o,l,c){var h=a.pop();if(h instanceof q.Name){var i=i.getRaw(h.name),u=i instanceof q.Ref&&l.getByRef(i);if(u)try{const H=r.base?r.base.getRgb(a,0):null,q=(0,d.getTilingPatternIR)(u.operatorListIR,u.dict,H);return void e.addOp(t,q)}catch{}u=this.xref.fetchIfRef(i);if(u){const q=u instanceof G.BaseStream?u.dict:u,i=q.get("PatternType");if(1===i){const H=r.base?r.base.getRgb(a,0):null;return this.handleTilingType(t,H,n,u,q,e,s,l)}if(2!==i)throw new H.FormatError("Unknown PatternType: "+i);{const a=q.get("Shading"),H=q.getArray("Matrix"),r=this.parseShading({shading:a,resources:n,localColorSpaceCache:o,localShadingPatternCache:c});return void e.addOp(t,["Shading",r,H])}}}throw new H.FormatError("Unknown PatternName: "+h)}_parseVisibilityExpression(t,a,r){if(10<++a)(0,H.warn)("Visibility expression is too deeply nested");else{const i=t.length,n=this.xref.fetchIfRef(t[0]);if(!(i<2)&&n instanceof q.Name){switch(n.name){case"And":case"Or":case"Not":r.push(n.name);break;default:return void(0,H.warn)(`Invalid operator ${n.name} in visibility expression`)}for(let e=1;e<i;e++){const i=t[e],n=this.xref.fetchIfRef(i);if(Array.isArray(n)){const t=[];r.push(t),this._parseVisibilityExpression(n,a,t)}else i instanceof q.Ref&&r.push(i.toString())}}else(0,H.warn)("Invalid visibility expression")}}async parseMarkedContentProps(e,t){let a;if(e instanceof q.Name)a=t.get("Properties").get(e.name);else{if(!(e instanceof q.Dict))throw new H.FormatError("Optional content properties malformed.");a=e}var r=a.get("Type")?.name;if("OCG"===r)return{type:r,id:a.objId};if("OCMD"===r){const e=a.get("VE");if(Array.isArray(e)){const t=[];if(this._parseVisibilityExpression(e,0,t),0<t.length)return{type:"OCMD",expression:t}}const t=a.get("OCGs");if(Array.isArray(t)||t instanceof q.Dict){const e=[];if(Array.isArray(t))for(const a of t)e.push(a.toString());else e.push(t.objId);return{type:r,ids:e,policy:a.get("P")instanceof q.Name?a.get("P").name:null,expression:null}}if(t instanceof q.Ref)return{type:r,id:t.toString()}}return null}getOperatorList({stream:e,task:m,resources:b,operatorList:y,initialState:t=null,fallbackFontDict:w=null}){if(b||=q.Dict.empty,t||=new i,!y)throw new Error('getOperatorList: missing "operatorList" parameter');const v=this,x=this.xref;let S=!1;const A=new z.LocalImageCache,k=new z.LocalColorSpaceCache,C=new z.LocalGStateCache,F=new z.LocalTilingPatternCache,O=new Map,I=b.get("XObject")||q.Dict.empty,T=b.get("Pattern")||q.Dict.empty,M=new V(t),P=new K(e,x,M),N=new a;function E(){for(let e=0,t=P.savedStatesDepth;e<t;e++)y.addOp(H.OPS.restore,[])}return new Promise(function t(a,r){function i(e){Promise.all([e,y.ready]).then(function(){try{t(a,r)}catch(e){r(e)}},r)}m.ensureNotTerminated(),N.reset();var n={};let e,s,o,l,c,h;for(;!(e=N.check())&&(n.args=null,P.read(n));){let e=n.args,t=n.fn;switch(0|t){case H.OPS.paintXObject:if(h=e[0]instanceof q.Name,c=e[0].name,h){const m=A.getByName(c);if(m){y.addImageOps(m.fn,m.args,m.optionalContent),B(m),e=null;continue}}return void i(new Promise(function(e,t){if(!h)throw new H.FormatError("XObject must be referred to by name.");let a=I.getRaw(c);if(a instanceof q.Ref){const m=A.getByRef(a)||v._regionalImageCache.getByRef(a);if(m)return y.addImageOps(m.fn,m.args,m.optionalContent),B(m),void e();const b=v.globalImageCache.getData(a,v.pageIndex);if(b)return y.addDependency(b.objId),y.addImageOps(b.fn,b.args,b.optionalContent),void e();a=x.fetch(a)}if(!(a instanceof G.BaseStream))throw new H.FormatError("XObject should be a stream");var r=a.dict.get("Subtype");if(!(r instanceof q.Name))throw new H.FormatError("XObject should have a Name subtype");if("Form"===r.name)M.save(),v.buildFormXObject(b,a,null,y,m,M.state.clone(),k).then(function(){M.restore(),e()},t);else if("Image"!==r.name){if("PS"!==r.name)throw new H.FormatError("Unhandled XObject subtype "+r.name);(0,H.info)("Ignored XObject subtype PS"),e()}else v.buildPaintImageXObject({resources:b,image:a,operatorList:y,cacheKey:c,localImageCache:A,localColorSpaceCache:k}).then(e,t)}).catch(function(e){if(!(e instanceof H.AbortException)){if(!v.options.ignoreErrors)throw e;(0,H.warn)(`getOperatorList - ignoring XObject: "${e}".`)}}));case H.OPS.setFont:var u=e[1];return void i(v.handleSetFont(b,e,null,y,m,M.state,w).then(function(e){y.addDependency(e),y.addOp(H.OPS.setFont,[e,u])}));case H.OPS.beginText:S=!0;break;case H.OPS.endText:S=!1;break;case H.OPS.endInlineImage:var d=e[0].cacheKey;if(d){const m=A.getByName(d);if(m){y.addImageOps(m.fn,m.args,m.optionalContent),B(m),e=null;continue}}return void i(v.buildPaintImageXObject({resources:b,image:e[0],isInline:!0,operatorList:y,cacheKey:d,localImageCache:A,localColorSpaceCache:k}));case H.OPS.showText:if(!M.state.font){v.ensureStateFont(M.state);continue}e[0]=v.handleText(e[0],M.state);break;case H.OPS.showSpacedText:if(!M.state.font){v.ensureStateFont(M.state);continue}var f=[],g=M.state;for(const m of e[0])"string"==typeof m?f.push(...v.handleText(m,g)):"number"==typeof m&&f.push(m);e[0]=f,t=H.OPS.showText;break;case H.OPS.nextLineShowText:if(!M.state.font){v.ensureStateFont(M.state);continue}y.addOp(H.OPS.nextLine),e[0]=v.handleText(e[0],M.state),t=H.OPS.showText;break;case H.OPS.nextLineSetSpacingShowText:if(!M.state.font){v.ensureStateFont(M.state);continue}y.addOp(H.OPS.nextLine),y.addOp(H.OPS.setWordSpacing,[e.shift()]),y.addOp(H.OPS.setCharSpacing,[e.shift()]),e[0]=v.handleText(e[0],M.state),t=H.OPS.showText;break;case H.OPS.setTextRenderingMode:M.state.textRenderingMode=e[0];break;case H.OPS.setFillColorSpace:{const m=D.ColorSpace.getCached(e[0],x,k);if(m){M.state.fillColorSpace=m;continue}return void i(v.parseColorSpace({cs:e[0],resources:b,localColorSpaceCache:k}).then(function(e){e&&(M.state.fillColorSpace=e)}))}case H.OPS.setStrokeColorSpace:{const m=D.ColorSpace.getCached(e[0],x,k);if(m){M.state.strokeColorSpace=m;continue}return void i(v.parseColorSpace({cs:e[0],resources:b,localColorSpaceCache:k}).then(function(e){e&&(M.state.strokeColorSpace=e)}))}case H.OPS.setFillColor:l=M.state.fillColorSpace,e=l.getRgb(e,0),t=H.OPS.setFillRGBColor;break;case H.OPS.setStrokeColor:l=M.state.strokeColorSpace,e=l.getRgb(e,0),t=H.OPS.setStrokeRGBColor;break;case H.OPS.setFillGray:M.state.fillColorSpace=D.ColorSpace.singletons.gray,e=D.ColorSpace.singletons.gray.getRgb(e,0),t=H.OPS.setFillRGBColor;break;case H.OPS.setStrokeGray:M.state.strokeColorSpace=D.ColorSpace.singletons.gray,e=D.ColorSpace.singletons.gray.getRgb(e,0),t=H.OPS.setStrokeRGBColor;break;case H.OPS.setFillCMYKColor:M.state.fillColorSpace=D.ColorSpace.singletons.cmyk,e=D.ColorSpace.singletons.cmyk.getRgb(e,0),t=H.OPS.setFillRGBColor;break;case H.OPS.setStrokeCMYKColor:M.state.strokeColorSpace=D.ColorSpace.singletons.cmyk,e=D.ColorSpace.singletons.cmyk.getRgb(e,0),t=H.OPS.setStrokeRGBColor;break;case H.OPS.setFillRGBColor:M.state.fillColorSpace=D.ColorSpace.singletons.rgb,e=D.ColorSpace.singletons.rgb.getRgb(e,0);break;case H.OPS.setStrokeRGBColor:M.state.strokeColorSpace=D.ColorSpace.singletons.rgb,e=D.ColorSpace.singletons.rgb.getRgb(e,0);break;case H.OPS.setFillColorN:if("Pattern"===(l=M.state.fillColorSpace).name)return void i(v.handleColorN(y,H.OPS.setFillColorN,e,l,T,b,m,k,F,O));e=l.getRgb(e,0),t=H.OPS.setFillRGBColor;break;case H.OPS.setStrokeColorN:if("Pattern"===(l=M.state.strokeColorSpace).name)return void i(v.handleColorN(y,H.OPS.setStrokeColorN,e,l,T,b,m,k,F,O));e=l.getRgb(e,0),t=H.OPS.setStrokeRGBColor;break;case H.OPS.shadingFill:d=b.get("Shading");if(!d)throw new H.FormatError("No shading resource found");var p=d.get(e[0].name);if(!p)throw new H.FormatError("No shading object found");e=[v.parseShading({shading:p,resources:b,localColorSpaceCache:k,localShadingPatternCache:O})],t=H.OPS.shadingFill;break;case H.OPS.setGState:if(h=e[0]instanceof q.Name,c=e[0].name,h){const m=C.getByName(c);if(m){0<m.length&&y.addOp(H.OPS.setGState,[m]),e=null;continue}}return void i(new Promise(function(e,t){if(!h)throw new H.FormatError("GState must be referred to by name.");var a=b.get("ExtGState");if(!(a instanceof q.Dict))throw new H.FormatError("ExtGState should be a dictionary.");a=a.get(c);if(!(a instanceof q.Dict))throw new H.FormatError("GState should be a dictionary.");v.setGState({resources:b,gState:a,operatorList:y,cacheKey:c,task:m,stateManager:M,localGStateCache:C,localColorSpaceCache:k}).then(e,t)}).catch(function(e){if(!(e instanceof H.AbortException)){if(!v.options.ignoreErrors)throw e;(0,H.warn)(`getOperatorList - ignoring ExtGState: "${e}".`)}}));case H.OPS.moveTo:case H.OPS.lineTo:case H.OPS.curveTo:case H.OPS.curveTo2:case H.OPS.curveTo3:case H.OPS.closePath:case H.OPS.rectangle:v.buildPath(y,t,e,S);continue;case H.OPS.markPoint:case H.OPS.markPointProps:case H.OPS.beginCompat:case H.OPS.endCompat:continue;case H.OPS.beginMarkedContentProps:if(!(e[0]instanceof q.Name)){(0,H.warn)("Expected name for beginMarkedContentProps arg0="+e[0]);continue}if("OC"===e[0].name)return void i(v.parseMarkedContentProps(e[1],b).then(e=>{y.addOp(H.OPS.beginMarkedContentProps,["OC",e])}).catch(e=>{if(!(e instanceof H.AbortException)){if(!v.options.ignoreErrors)throw e;(0,H.warn)(`getOperatorList - ignoring beginMarkedContentProps: "${e}".`)}}));e=[e[0].name,e[1]instanceof q.Dict?e[1].get("MCID"):null];break;case H.OPS.beginMarkedContent:case H.OPS.endMarkedContent:default:if(null!==e){for(s=0,o=e.length;s<o&&!(e[s]instanceof q.Dict);s++);if(s<o){(0,H.warn)("getOperatorList - ignoring operator: "+t);continue}}}y.addOp(t,e)}e?i(W):(E(),a())}).catch(e=>{if(!(e instanceof H.AbortException)){if(!this.options.ignoreErrors)throw e;(0,H.warn)(`getOperatorList - ignoring errors during "${m.name}" task: "${e}".`),E()}})}getTextContent({stream:e,task:u,resources:d,stateManager:f=null,includeMarkedContent:g=!1,sink:p,seenStyles:m=new Set,viewBox:b,markedContentData:y=null,disableNormalization:w=!1}){d||=q.Dict.empty,f||=new V(new Y),g&&(y||={level:0});const v={items:[],styles:Object.create(null)},x={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},r=[" "," "];let i=0;function S(e){var t=(i+1)%2,a=" "!==r[i]&&" "===r[t];return r[i]=e,i=t,a}function A(){return" "!==r[i]&&" "===r[(i+1)%2]}function k(){r[0]=r[1]=" ",i=0}const C=this,F=this.xref,O=[];let I=null;const T=new z.LocalImageCache,M=new z.LocalGStateCache,P=new K(e,F,f);let N;function E({width:e=0,height:t=0,transform:a=x.prevTransform,fontName:r=x.fontName}){v.items.push({str:" ",dir:"ltr",width:e,height:t,transform:a,fontName:r,hasEOL:!1})}function D(){var e=N.font,t=[N.fontSize*N.textHScale,0,0,N.fontSize,0,N.textRise];return e.isType3Font&&(N.fontSize<=1||e.isCharBBox)&&!(0,H.isArrayEqual)(N.fontMatrix,H.FONT_IDENTITY_MATRIX)&&0<(e=e.bbox[3]-e.bbox[1])&&(t[3]*=e*N.fontMatrix[3]),H.Util.transform(N.ctm,H.Util.transform(N.textMatrix,t))}function B(e,t){return C.loadFont(e,t,d).then(function(e){return e.font.isType3Font?e.loadType3Data(C,d,u).catch(function(){}).then(function(){return e}):e}).then(function(e){N.loadedName=e.loadedName,N.font=e.font,N.fontMatrix=e.font.fontMatrix||H.FONT_IDENTITY_MATRIX})}function R(e,t,a){var r=Math.hypot(a[0],a[1]);return[(a[0]*e+a[1]*t)/r,(a[2]*e+a[3]*t)/r]}function L({chars:e,extraSpacing:n}){var s=N.font;if(!e){const e=N.charSpacing+n;return e&&(s.vertical?N.translateTextMatrix(0,-e):N.translateTextMatrix(e*N.textHScale,0))}var t=s.charsToGlyphs(e),o=N.fontMatrix[0]*N.fontSize;for(let r=0,i=t.length;r<i;r++){var l,c,h=t[r],u=h["category"];if(!u.isInvisibleFormatMark){let e=N.charSpacing+(r+1===i?n:0),t=h.width,a=(t=s.vertical?h.vmetric?h.vmetric[0]:-t:t)*o;u.isWhitespace?(s.vertical?(e+=-a+N.wordSpacing,N.translateTextMatrix(0,-e)):(e+=a+N.wordSpacing,N.translateTextMatrix(e*N.textHScale,0)),S(" ")):u.isZeroWidthDiacritic||function(r){const i=D();let n=i[4],s=i[5];if(N.font?.vertical){if(n<b[0]||n>b[2]||s+r<b[1]||s>b[3])return}else if(n+r<b[0]||n>b[2]||s<b[1]||s>b[3])return;if(N.font&&x.prevTransform){let t=x.prevTransform[4],a=x.prevTransform[5];if(t!==n||a!==s){let e=-1;switch(i[0]&&0===i[1]&&0===i[2]?e=0<i[0]?0:180:i[1]&&0===i[0]&&0===i[3]&&(e=0<i[1]?90:270),e){case 0:break;case 90:[n,s]=[s,n],[t,a]=[a,t];break;case 180:[n,s,t,a]=[-n,-s,-t,-a];break;case 270:[n,s]=[-s,-n],[t,a]=[-a,-t];break;default:[n,s]=R(n,s,i),[t,a]=R(t,a,x.prevTransform)}if(N.font.vertical){const r=(a-s)/x.textAdvanceScale,i=n-t,e=Math.sign(x.height);r<e*x.negativeSpaceMax?(Math.abs(i)>.5*x.width?$:(k(),j))():Math.abs(i)>x.width?$():(r<=e*x.notASpace&&k(),r<=e*x.trackingSpaceMin?A()?(k(),j(),E({height:Math.abs(r)})):x.height+=r:_(r,x.prevTransform,e)||(0===x.str.length?(k(),E({height:Math.abs(r)})):x.height+=r),Math.abs(i)>.25*x.width&&j())}else{var r=(n-t)/x.textAdvanceScale,o=s-a,l=Math.sign(x.width);r<l*x.negativeSpaceMax?(Math.abs(o)>.5*x.height?$:(k(),j))():Math.abs(o)>x.height?$():(r<=l*x.notASpace&&k(),r<=l*x.trackingSpaceMin?A()?(k(),j(),E({width:Math.abs(r)})):x.width+=r:_(r,x.prevTransform,l)||(0===x.str.length?(k(),E({width:Math.abs(r)})):x.width+=r),Math.abs(o)>.25*x.height&&j())}}}return 1}(a)?(c=l=void 0,x.initialized||({font:l,loadedName:c}=N,m.has(c)||(m.add(c),v.styles[c]={fontFamily:l.fallbackName,ascent:l.ascent,descent:l.descent,vertical:l.vertical}),x.fontName=c,c=x.transform=D(),l.vertical?(x.width=x.totalWidth=Math.hypot(c[0],c[1]),x.height=x.totalHeight=0,x.vertical=!0):(x.width=x.totalWidth=0,x.height=x.totalHeight=Math.hypot(c[2],c[3]),x.vertical=!1),l=Math.hypot(N.textLineMatrix[0],N.textLineMatrix[1]),c=Math.hypot(N.ctm[0],N.ctm[1]),c=(x.textAdvanceScale=c*l,N)["fontSize"],x.trackingSpaceMin=.102*c,x.notASpace=.03*c,x.negativeSpaceMax=-.2*c,x.spaceInFlowMin=.102*c,x.spaceInFlowMax=.6*c,x.hasEOL=!1,x.initialized=!0),l=x,u.isZeroWidthDiacritic&&(a=0),s.vertical?(N.translateTextMatrix(0,a),a=Math.abs(a),l.height+=a):(a*=N.textHScale,N.translateTextMatrix(a,0),l.width+=a),a&&(l.prevTransform=D()),S(c=h.unicode)&&l.str.push(" "),l.str.push(c),e&&(s.vertical?N.translateTextMatrix(0,-e):N.translateTextMatrix(e*N.textHScale,0))):s.vertical?N.translateTextMatrix(0,a):N.translateTextMatrix(a*N.textHScale,0)}}}function $(){k(),x.initialized?(x.hasEOL=!0,j()):v.items.push({str:"",dir:"ltr",width:0,height:0,transform:D(),fontName:N.loadedName,hasEOL:!0})}function _(e,t,a){if(a*x.spaceInFlowMin<=e&&e<=a*x.spaceInFlowMax)return x.initialized&&(k(),x.str.push(" ")),0;a=x.fontName;let r=0;return x.vertical&&(r=e,e=0),j(),k(),E({width:Math.abs(e),height:Math.abs(r),transform:t||D(),fontName:a}),1}function j(){x.initialized&&x.str&&(x.vertical?x.totalHeight+=x.height*x.textAdvanceScale:x.totalWidth+=x.width*x.textAdvanceScale,v.items.push(function(e){let t=e.str.join("");w||(t=(0,H.normalizeUnicode)(t));var a=(0,n.bidi)(t,-1,e.vertical);return{str:a.str,dir:a.dir,width:Math.abs(e.totalWidth),height:Math.abs(e.totalHeight),transform:e.transform,fontName:e.fontName,hasEOL:e.hasEOL}}(x)),x.initialized=!1,x.str.length=0)}function U(e=!1){var t=v.items.length;0===t||e&&t<10||(p.enqueue(v,t),v.items=[],v.styles=Object.create(null))}const X=new a;return new Promise(function a(r,i){function e(e){U(!0),Promise.all([e,p.ready]).then(function(){try{a(r,i)}catch(e){i(e)}},i)}u.ensureNotTerminated(),X.reset();var t={};let n,s=[];for(;!(n=X.check())&&(s.length=0,t.args=s,P.read(t));){const a=N,r=(N=f.state,t.fn);switch(s=t.args,0|r){case H.OPS.setFont:var o=s[0].name,l=s[1];if(N.font&&o===N.fontName&&l===N.fontSize)break;return j(),N.fontName=o,N.fontSize=l,void e(B(o,null));case H.OPS.setTextRise:N.textRise=s[0];break;case H.OPS.setHScale:N.textHScale=s[0]/100;break;case H.OPS.setLeading:N.leading=s[0];break;case H.OPS.moveText:N.translateTextLineMatrix(s[0],s[1]),N.textMatrix=N.textLineMatrix.slice();break;case H.OPS.setLeadingMoveText:N.leading=-s[1],N.translateTextLineMatrix(s[0],s[1]),N.textMatrix=N.textLineMatrix.slice();break;case H.OPS.nextLine:N.carriageReturn();break;case H.OPS.setTextMatrix:N.setTextMatrix(s[0],s[1],s[2],s[3],s[4],s[5]),N.setTextLineMatrix(s[0],s[1],s[2],s[3],s[4],s[5]),l=void 0,x.initialized&&(l=Math.hypot(N.textLineMatrix[0],N.textLineMatrix[1]),(l=Math.hypot(N.ctm[0],N.ctm[1])*l)!==x.textAdvanceScale)&&(x.vertical?(x.totalHeight+=x.height*x.textAdvanceScale,x.height=0):(x.totalWidth+=x.width*x.textAdvanceScale,x.width=0),x.textAdvanceScale=l);break;case H.OPS.setCharSpacing:N.charSpacing=s[0];break;case H.OPS.setWordSpacing:N.wordSpacing=s[0];break;case H.OPS.beginText:N.textMatrix=H.IDENTITY_MATRIX.slice(),N.textLineMatrix=H.IDENTITY_MATRIX.slice();break;case H.OPS.showSpacedText:if(!f.state.font){C.ensureStateFont(f.state);continue}const r=(N.font.vertical?1:-1)*N.fontSize/1e3,i=s[0];for(let e=0,t=i.length;e<t;e++){const u=i[e];if("string"==typeof u)O.push(u);else if("number"==typeof u&&0!==u){const a=O.join("");O.length=0,L({chars:a,extraSpacing:u*r})}}if(0<O.length){const a=O.join("");L({chars:a,extraSpacing:O.length=0})}break;case H.OPS.showText:if(!f.state.font){C.ensureStateFont(f.state);continue}L({chars:s[0],extraSpacing:0});break;case H.OPS.nextLineShowText:if(!f.state.font){C.ensureStateFont(f.state);continue}N.carriageReturn(),L({chars:s[0],extraSpacing:0});break;case H.OPS.nextLineSetSpacingShowText:if(!f.state.font){C.ensureStateFont(f.state);continue}N.wordSpacing=s[0],N.charSpacing=s[1],N.carriageReturn(),L({chars:s[2],extraSpacing:0});break;case H.OPS.paintXObject:j(),I=I||d.get("XObject")||q.Dict.empty;var c=s[0]instanceof q.Name,h=s[0].name;if(c&&T.getByName(h))break;return void e(new Promise(function(e,t){if(!c)throw new H.FormatError("XObject must be referred to by name.");let a=I.getRaw(h);if(a instanceof q.Ref){if(T.getByRef(a))return void e();if(C.globalImageCache.getData(a,C.pageIndex))return void e();a=F.fetch(a)}if(!(a instanceof G.BaseStream))throw new H.FormatError("XObject should be a stream");var r=a.dict.get("Subtype");if(!(r instanceof q.Name))throw new H.FormatError("XObject should have a Name subtype");if("Form"!==r.name)T.set(h,a.dict.objId,!0),e();else{var r=f.state.clone(),r=new V(r),i=a.dict.getArray("Matrix");Array.isArray(i)&&6===i.length&&r.transform(i),U();const n={enqueueInvoked:!1,enqueue(e,t){this.enqueueInvoked=!0,p.enqueue(e,t)},get desiredSize(){return p.desiredSize},get ready(){return p.ready}};C.getTextContent({stream:a,task:u,resources:a.dict.get("Resources")||d,stateManager:r,includeMarkedContent:g,sink:n,seenStyles:m,viewBox:b,markedContentData:y,disableNormalization:w}).then(function(){n.enqueueInvoked||T.set(h,a.dict.objId,!0),e()},t)}}).catch(function(e){if(!(e instanceof H.AbortException)){if(!C.options.ignoreErrors)throw e;(0,H.warn)(`getTextContent - ignoring XObject: "${e}".`)}}));case H.OPS.setGState:if(c=s[0]instanceof q.Name,h=s[0].name,c&&M.getByName(h))break;return void e(new Promise(function(e,t){if(!c)throw new H.FormatError("GState must be referred to by name.");var a=d.get("ExtGState");if(!(a instanceof q.Dict))throw new H.FormatError("ExtGState should be a dictionary.");a=a.get(h);if(!(a instanceof q.Dict))throw new H.FormatError("GState should be a dictionary.");var r=a.get("Font");r?(j(),N.fontName=null,N.fontSize=r[1],B(null,r[0]).then(e,t)):(M.set(h,a.objId,!0),e())}).catch(function(e){if(!(e instanceof H.AbortException)){if(!C.options.ignoreErrors)throw e;(0,H.warn)(`getTextContent - ignoring ExtGState: "${e}".`)}}));case H.OPS.beginMarkedContent:j(),g&&(y.level++,v.items.push({type:"beginMarkedContent",tag:s[0]instanceof q.Name?s[0].name:null}));break;case H.OPS.beginMarkedContentProps:if(j(),g){y.level++;let e=null;s[1]instanceof q.Dict&&(e=s[1].get("MCID")),v.items.push({type:"beginMarkedContentProps",id:Number.isInteger(e)?C.idFactory.getPageObjId()+"_mc"+e:null,tag:s[0]instanceof q.Name?s[0].name:null})}break;case H.OPS.endMarkedContent:if(j(),g){if(0===y.level)break;y.level--,v.items.push({type:"endMarkedContent"})}break;case H.OPS.restore:!a||a.font===N.font&&a.fontSize===N.fontSize&&a.fontName===N.fontName||j()}if(v.items.length>=p.desiredSize){n=!0;break}}n?e(W):(j(),U(),r())}).catch(e=>{if(!(e instanceof H.AbortException)){if(!this.options.ignoreErrors)throw e;(0,H.warn)(`getTextContent - ignoring errors during "${u.name}" task: "${e}".`),j(),U()}})}extractDataStructures(t,e,a){var r=this.xref;let i;e=this.readToUnicode(a.toUnicode||t.get("ToUnicode")||e.get("ToUnicode"));if(a.composite){const e=t.get("CIDSystemInfo");e instanceof q.Dict&&(a.cidSystemInfo={registry:(0,H.stringToPDFString)(e.get("Registry")),ordering:(0,H.stringToPDFString)(e.get("Ordering")),supplement:e.get("Supplement")});try{const e=t.get("CIDToGIDMap");e instanceof G.BaseStream&&(i=e.getBytes())}catch(t){if(!this.options.ignoreErrors)throw t;(0,H.warn)(`extractDataStructures - ignoring CIDToGIDMap data: "${t}".`)}}var n=[];let s,o=null;if(t.has("Encoding")){if((s=t.get("Encoding"))instanceof q.Dict){if(o=(o=s.get("BaseEncoding"))instanceof q.Name?o.name:null,s.has("Differences")){const t=s.get("Differences");let e=0;for(const a of t){const t=r.fetchIfRef(a);if("number"==typeof t)e=t;else{if(!(t instanceof q.Name))throw new H.FormatError("Invalid entry in 'Differences' array: "+t);n[e++]=t.name}}}}else if(s instanceof q.Name)o=s.name;else{const t="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new H.FormatError(t);(0,H.warn)(t)}"MacRomanEncoding"!==o&&"MacExpertEncoding"!==o&&"WinAnsiEncoding"!==o&&(o=null)}var l=!a.file||a.isInternalFont,c=(0,C.getSymbolsFonts)()[a.name];if(o=o&&l&&c?null:o)a.defaultEncoding=(0,h.getEncoding)(o);else{const t=!!(a.flags&I.FontFlags.Symbolic),e=!!(a.flags&I.FontFlags.Nonsymbolic);s=h.StandardEncoding,"TrueType"!==a.type||e||(s=h.WinAnsiEncoding),(t||c)&&(s=h.MacRomanEncoding,l)&&(/Symbol/i.test(a.name)?s=h.SymbolSetEncoding:/Dingbats/i.test(a.name)?s=h.ZapfDingbatsEncoding:/Wingdings/i.test(a.name)&&(s=h.WinAnsiEncoding)),a.defaultEncoding=s}return a.differences=n,a.baseEncodingName=o,a.hasEncoding=!!o||0<n.length,a.dict=t,e.then(e=>(a.toUnicode=e,this.buildToUnicode(a))).then(e=>(a.toUnicode=e,i&&(a.cidToGidMap=this.readCidToGidMap(i,e)),a))}_simpleFontToUnicode(a,r=!1){(0,H.assert)(!a.composite,"Must be a simple font.");const i=[],e=a.defaultEncoding.slice(),n=a.baseEncodingName,t=a.differences;for(const a in t){const r=t[a];".notdef"!==r&&(e[a]=r)}var s=(0,l.getGlyphsUnicode)();for(const H in e){let t=e[H];if(""!==t){var o=s[t];if(void 0!==o)i[H]=String.fromCharCode(o);else{let e=0;switch(t[0]){case"G":3===t.length&&(e=parseInt(t.substring(1),16));break;case"g":5===t.length&&(e=parseInt(t.substring(1),16));break;case"C":case"c":if(3<=t.length&&t.length<=4){const i=t.substring(1);if(r){e=parseInt(i,16);break}if(e=+i,Number.isNaN(e)&&Number.isInteger(parseInt(i,16)))return this._simpleFontToUnicode(a,!0)}break;case"u":-1!==(o=(0,u.getUnicodeForGlyph)(t,s))&&(e=o);break;default:switch(t){case"f_h":case"f_t":case"T_h":i[H]=t.replaceAll("_","");continue}}if(0<e&&e<=1114111&&Number.isInteger(e)){if(n&&e===+H){const a=(0,h.getEncoding)(n);if(a&&(t=a[H])){i[H]=String.fromCharCode(s[t]);continue}}i[H]=String.fromCodePoint(e)}}}}return i}async buildToUnicode(e){if(e.hasIncludedToUnicodeMap=0<e.toUnicode?.length,e.hasIncludedToUnicodeMap)return!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._simpleFontToUnicode(e)),e.toUnicode;if(!e.composite)return new o.ToUnicodeMap(this._simpleFontToUnicode(e));if(!e.composite||(!e.cMap.builtInCMap||e.cMap instanceof A.IdentityCMap)&&("Adobe"!==e.cidSystemInfo.registry||"GB1"!==e.cidSystemInfo.ordering&&"CNS1"!==e.cidSystemInfo.ordering&&"Japan1"!==e.cidSystemInfo.ordering&&"Korea1"!==e.cidSystemInfo.ordering))return new o.IdentityToUnicodeMap(e.firstChar,e.lastChar);{const{registry:t,ordering:a}=e.cidSystemInfo,r=q.Name.get(t+`-${a}-UCS2`),i=await A.CMapFactory.create({encoding:r,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),n=[],s=[];return e.cMap.forEach(function(e,t){if(65535<t)throw new H.FormatError("Max size of CID is 65,535");var a=i.lookup(t);if(a){for(let e=s.length=0,t=a.length;e<t;e+=2)s.push((a.charCodeAt(e)<<8)+a.charCodeAt(e+1));n[e]=String.fromCharCode(...s)}}),new o.ToUnicodeMap(n)}}readToUnicode(e){return e?e instanceof q.Name?A.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(e){return e instanceof A.IdentityCMap?new o.IdentityToUnicodeMap(0,65535):new o.ToUnicodeMap(e.getMap())}):e instanceof G.BaseStream?A.CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}).then(function(e){if(e instanceof A.IdentityCMap)return new o.IdentityToUnicodeMap(0,65535);const i=new Array(e.length);return e.forEach(function(e,t){if("number"==typeof t)i[e]=String.fromCodePoint(t);else{var a,r=[];for(let e=0;e<t.length;e+=2){const i=t.charCodeAt(e)<<8|t.charCodeAt(e+1);55296!=(63488&i)?r.push(i):(e+=2,a=t.charCodeAt(e)<<8|t.charCodeAt(e+1),r.push(((1023&i)<<10)+(1023&a)+65536))}i[e]=String.fromCodePoint(...r)}}),new o.ToUnicodeMap(i)},e=>{if(e instanceof H.AbortException)return null;if(this.options.ignoreErrors)return(0,H.warn)(`readToUnicode - ignoring ToUnicode data: "${e}".`),null;throw e}):Promise.resolve(null):Promise.resolve(null)}readCidToGidMap(a,r){var i=[];for(let e=0,t=a.length;e<t;e++){var n=a[e++]<<8|a[e],s=e>>1;0==n&&!r.has(s)||(i[s]=n)}return i}extractWidths(e,t,a){var r=this.xref;let i=[],n=0;const s=[];let o,l,c,h,u,d,f,g;if(a.composite){if(n=e.has("DW")?e.get("DW"):1e3,g=e.get("W"))for(l=0,c=g.length;l<c;l++)if(d=r.fetchIfRef(g[l++]),f=r.fetchIfRef(g[l]),Array.isArray(f))for(h=0,u=f.length;h<u;h++)i[d++]=r.fetchIfRef(f[h]);else{const e=r.fetchIfRef(g[++l]);for(h=d;h<=f;h++)i[h]=e}if(a.vertical){var p=e.getArray("DW2")||[880,-1e3];if(o=[p[1],.5*n,p[0]],p=e.get("W2"))for(l=0,c=p.length;l<c;l++)if(d=r.fetchIfRef(p[l++]),f=r.fetchIfRef(p[l]),Array.isArray(f))for(h=0,u=f.length;h<u;h++)s[d++]=[r.fetchIfRef(f[h++]),r.fetchIfRef(f[h++]),r.fetchIfRef(f[h])];else{const e=[r.fetchIfRef(p[++l]),r.fetchIfRef(p[++l]),r.fetchIfRef(p[++l])];for(h=d;h<=f;h++)s[h]=e}}}else{const s=a.firstChar;if(g=e.get("Widths")){for(h=s,l=0,c=g.length;l<c;l++)i[h++]=r.fetchIfRef(g[l]);n=parseFloat(t.get("MissingWidth"))||0}else{const t=e.get("BaseFont");if(t instanceof q.Name){const e=this.getBaseFontMetrics(t.name);i=this.buildCharCodeToWidth(e.widths,a),n=e.defaultWidth}}}let m=!0,b=n;for(const e in i){const t=i[e];if(t)if(b){if(b!==t){m=!1;break}}else b=t}m?a.flags|=I.FontFlags.FixedPitch:a.flags&=~I.FontFlags.FixedPitch,a.defaultWidth=n,a.widths=i,a.defaultVMetrics=o,a.vmetrics=s}isSerifFont(e){e=e.split("-")[0];return e in(0,C.getSerifFonts)()||/serif/gi.test(e)}getBaseFontMetrics(e){let t=0,a=Object.create(null),r=!1,i=(0,C.getStdFontMap)()[e]||e;var n=(0,s.getMetrics)(),n=n[i=i in n?i:this.isSerifFont(e)?"Times-Roman":"Helvetica"];return"number"==typeof n?(t=n,r=!0):a=n(),{defaultWidth:t,monospace:r,widths:a}}buildCharCodeToWidth(t,e){var a=Object.create(null),r=e.differences,i=e.defaultEncoding;for(let e=0;e<256;e++)e in r&&t[r[e]]?a[e]=t[r[e]]:e in i&&t[i[e]]&&(a[e]=t[i[e]]);return a}preEvaluateFont(t){const a=t;let r=t.get("Subtype");if(!(r instanceof q.Name))throw new H.FormatError("invalid font Subtype");let e,i,n=!1;if("Type0"===r.name){const a=t.get("DescendantFonts");if(!a)throw new H.FormatError("Descendant fonts are not specified");if(!((t=Array.isArray(a)?this.xref.fetchIfRef(a[0]):a)instanceof q.Dict))throw new H.FormatError("Descendant font is not a dictionary.");if(!((r=t.get("Subtype"))instanceof q.Name))throw new H.FormatError("invalid font Subtype");n=!0}var s=t.get("FirstChar")||0,o=t.get("LastChar")||(n?65535:255),l=t.get("FontDescriptor");if(l){e=new x.MurmurHash3_64;const r=a.getRaw("Encoding");if(r instanceof q.Name)e.update(r.name);else if(r instanceof q.Ref)e.update(r.toString());else if(r instanceof q.Dict)for(const t of r.getRawValues())if(t instanceof q.Name)e.update(t.name);else if(t instanceof q.Ref)e.update(t.toString());else if(Array.isArray(t)){const a=t.length,r=new Array(a);for(let e=0;e<a;e++){const a=t[e];a instanceof q.Name?r[e]=a.name:("number"==typeof a||a instanceof q.Ref)&&(r[e]=a.toString())}e.update(r.join())}if(e.update(s+"-"+o),(i=t.get("ToUnicode")||a.get("ToUnicode"))instanceof G.BaseStream){const t=i.str||i,a=t.buffer?new Uint8Array(t.buffer.buffer,0,t.bufferLength):new Uint8Array(t.bytes.buffer,t.start,t.end-t.start);e.update(a)}else i instanceof q.Name&&e.update(i.name);const H=t.get("Widths")||a.get("Widths");if(Array.isArray(H)){const t=[];for(const a of H)("number"==typeof a||a instanceof q.Ref)&&t.push(a.toString());e.update(t.join())}if(n){e.update("compositeFont");const r=t.get("W")||a.get("W");if(Array.isArray(r)){const t=[];for(const a of r)if("number"==typeof a||a instanceof q.Ref)t.push(a.toString());else if(Array.isArray(a)){const r=[];for(const t of a)("number"==typeof t||t instanceof q.Ref)&&r.push(t.toString());t.push(`[${r.join()}]`)}e.update(t.join())}const H=t.getRaw("CIDToGIDMap")||a.getRaw("CIDToGIDMap");H instanceof q.Name?e.update(H.name):H instanceof q.Ref?e.update(H.toString()):H instanceof G.BaseStream&&e.update(H.peekBytes())}}return{descriptor:l,dict:t,baseDict:a,composite:n,type:r.name,firstChar:s,lastChar:o,toUnicode:i,hash:e?e.hexdigest():""}}async translateFont({descriptor:t,dict:r,baseDict:i,composite:n,type:s,firstChar:o,lastChar:l,toUnicode:c,cssFontInfo:h}){var u="Type3"===s;let d;if(!t){if(!u){let a=r.get("BaseFont");if(!(a instanceof q.Name))throw new H.FormatError("Base font is not specified");a=a.name.replaceAll(/[,_]/g,"-");const A=this.getBaseFontMetrics(a),n=a.split("-")[0],F=(this.isSerifFont(n)?I.FontFlags.Serif:0)|(A.monospace?I.FontFlags.FixedPitch:0)|((0,C.getSymbolsFonts)()[n]?I.FontFlags.Symbolic:I.FontFlags.Nonsymbolic),h=(d={type:s,name:a,loadedName:i.loadedName,systemFontInfo:null,widths:A.widths,defaultWidth:A.defaultWidth,isSimulatedFlags:!0,flags:F,firstChar:o,lastChar:l,toUnicode:c,xHeight:0,capHeight:0,italicAngle:0,isType3Font:u},r.get("Widths")),O=(0,C.getStandardFontName)(a);let e=null;return O&&(e=await this.fetchStandardFontData(O),d.isInternalFont=!!e),!d.isInternalFont&&this.options.useSystemFonts&&(d.systemFontInfo=(0,T.getFontSubstitution)(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,a,O)),this.extractDataStructures(r,r,d).then(t=>{if(h){const a=[];let e=o;for(const t of h)a[e++]=this.xref.fetchIfRef(t);t.widths=a}else t.widths=this.buildCharCodeToWidth(A.widths,t);return new k.Font(a,e,t)})}(t=new q.Dict(null)).set("FontName",q.Name.get(s)),t.set("FontBBox",r.getArray("FontBBox")||[0,0,0,0])}let a=t.get("FontName"),e=r.get("BaseFont");"string"==typeof a&&(a=q.Name.get(a)),"string"==typeof e&&(e=q.Name.get(e));var f=a?.name,g=e?.name;if(u||f===g||((0,H.info)(`The FontDescriptor's FontName is "${f}" but should be the same as the Font's BaseFont "${g}".`),f&&g&&(g.startsWith(f)||!(0,C.isKnownFontName)(f)&&(0,C.isKnownFontName)(g))&&(a=null)),!((a||=e)instanceof q.Name))throw new H.FormatError("invalid font name");let p,m,b,y,w;try{p=t.get("FontFile","FontFile2","FontFile3")}catch(t){if(!this.options.ignoreErrors)throw t;(0,H.warn)(`translateFont - fetching "${a.name}" font file: "${t}".`),p=new O.NullStream}let v=!1,x=null,S=null;if(p){if(p.dict){const t=p.dict.get("Subtype");t instanceof q.Name&&(m=t.name),b=p.dict.get("Length1"),y=p.dict.get("Length2"),w=p.dict.get("Length3")}}else if(h){const t=(0,F.getXfaFontName)(a.name);t&&(h.fontFamily=h.fontFamily+"-PdfJS-XFA",h.metrics=t.metrics||null,x=t.factors||null,p=await this.fetchStandardFontData(t.name),v=!!p,i=r=(0,F.getXfaFontDict)(a.name),n=!0)}else if(!u){const t=(0,C.getStandardFontName)(a.name);t&&(p=await this.fetchStandardFontData(t),v=!!p),!v&&this.options.useSystemFonts&&(S=(0,T.getFontSubstitution)(this.systemFontCache,this.idFactory,this.options.standardFontDataUrl,a.name,t))}if(d={type:s,name:a.name,subtype:m,file:p,length1:b,length2:y,length3:w,isInternalFont:v,loadedName:i.loadedName,composite:n,fixedPitch:!1,fontMatrix:r.getArray("FontMatrix")||H.FONT_IDENTITY_MATRIX,firstChar:o,lastChar:l,toUnicode:c,bbox:t.getArray("FontBBox")||r.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:u,cssFontInfo:h,scaleFactors:x,systemFontInfo:S},n){const t=i.get("Encoding"),r=(t instanceof q.Name&&(d.cidEncoding=t.name),await A.CMapFactory.create({encoding:t,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}));d.cMap=r,d.vertical=d.cMap.vertical}return this.extractDataStructures(r,i,d).then(e=>(this.extractWidths(r,t,e),new k.Font(a.name,p,e)))}static buildFontPaths(a,e,r,i){function t(e){var t=a.loadedName+"_path_"+e;try{a.renderer.hasBuiltPath(e)||r.send("commonobj",[t,"FontPath",a.renderer.getPathJs(e)])}catch(e){if(i.ignoreErrors)return(0,H.warn)(`buildFontPaths - ignoring ${t} glyph: "${e}".`);throw e}}for(const a of e){t(a.fontChar);const e=a.accent;e?.fontChar&&t(e.fontChar)}}static get fallbackFontDict(){var e=new q.Dict;return e.set("BaseFont",q.Name.get("Helvetica")),e.set("Type",q.Name.get("FallbackType")),e.set("Subtype",q.Name.get("FallbackType")),e.set("Encoding",q.Name.get("WinAnsiEncoding")),(0,H.shadow)(this,"fallbackFontDict",e)}}e.PartialEvaluator=y;class w{constructor({loadedName:e,font:t,dict:a,evaluatorOptions:r}){this.loadedName=e,this.font=t,this.dict=a,this._evaluatorOptions=r||p,this.type3Loaded=null,this.type3Dependencies=t.isType3Font?new Set:null,this.sent=!1}send(e){this.sent||(this.sent=!0,e.send("commonobj",[this.loadedName,"Font",this.font.exportData(this._evaluatorOptions.fontExtraProperties)]))}fallback(e){this.font.data&&(this.font.disableFontFace=!0,y.buildFontPaths(this.font,this.font.glyphCacheValues,e,this._evaluatorOptions))}loadType3Data(a,t,r){if(!this.type3Loaded){if(!this.font.isType3Font)throw new Error("Must be a Type3 font.");const i=a.clone({ignoreErrors:!1});i.parsingType3Font=!0;a=new q.RefSet(a.type3FontRefs);this.dict.objId&&!a.has(this.dict.objId)&&a.put(this.dict.objId),i.type3FontRefs=a;const n=this.font,s=this.type3Dependencies;let e=Promise.resolve();const o=this.dict.get("CharProcs"),l=this.dict.get("Resources")||t,c=Object.create(null),h=H.Util.normalizeRect(n.bbox||[0,0,0,0]),u=h[2]-h[0],d=h[3]-h[1],f=Math.hypot(u,d);for(const a of o.getKeys())e=e.then(()=>{const e=o.get(a),t=new g.OperatorList;return i.getOperatorList({stream:e,task:r,resources:l,operatorList:t}).then(()=>{t.fnArray[0]===H.OPS.setCharWidthAndBounds&&this._removeType3ColorOperators(t,f),c[a]=t.getIR();for(const a of t.dependencies)s.add(a)}).catch(function(e){(0,H.warn)(`Type3 font resource "${a}" is not available.`);var t=new g.OperatorList;c[a]=t.getIR()})});this.type3Loaded=e.then(()=>{n.charProcOperatorList=c,this._bbox&&(n.isCharBBox=!0,n.bbox=this._bbox)})}return this.type3Loaded}_removeType3ColorOperators(a,r=NaN){var e=H.Util.normalizeRect(a.argsArray[0].slice(2)),t=e[2]-e[0],i=e[3]-e[1],n=Math.hypot(t,i);0==t||0==i?(a.fnArray.splice(0,1),a.argsArray.splice(0,1)):(0===r||10<=Math.round(n/r))&&(this._bbox||(this._bbox=[1/0,1/0,-1/0,-1/0]),this._bbox[0]=Math.min(this._bbox[0],e[0]),this._bbox[1]=Math.min(this._bbox[1],e[1]),this._bbox[2]=Math.max(this._bbox[2],e[2]),this._bbox[3]=Math.max(this._bbox[3],e[3]));let s=0,o=a.length;for(;s<o;){switch(a.fnArray[s]){case H.OPS.setCharWidthAndBounds:break;case H.OPS.setStrokeColorSpace:case H.OPS.setFillColorSpace:case H.OPS.setStrokeColor:case H.OPS.setStrokeColorN:case H.OPS.setFillColor:case H.OPS.setFillColorN:case H.OPS.setStrokeGray:case H.OPS.setFillGray:case H.OPS.setStrokeRGBColor:case H.OPS.setFillRGBColor:case H.OPS.setStrokeCMYKColor:case H.OPS.setFillCMYKColor:case H.OPS.shadingFill:case H.OPS.setRenderingIntent:a.fnArray.splice(s,1),a.argsArray.splice(s,1),o--;continue;case H.OPS.setGState:const[r]=a.argsArray[s];let e=0,t=r.length;for(;e<t;){const[a]=r[e];switch(a){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":r.splice(e,1),t--;continue}e++}}s++}}}class V{constructor(e=new i){this.state=e,this.stateStack=[]}save(){var e=this.state;this.stateStack.push(this.state),this.state=e.clone()}restore(){var e=this.stateStack.pop();e&&(this.state=e)}transform(e){this.state.ctm=H.Util.transform(this.state.ctm,e)}}class Y{constructor(){this.ctm=new Float32Array(H.IDENTITY_MATRIX),this.fontName=null,this.fontSize=0,this.loadedName=null,this.font=null,this.fontMatrix=H.FONT_IDENTITY_MATRIX,this.textMatrix=H.IDENTITY_MATRIX.slice(),this.textLineMatrix=H.IDENTITY_MATRIX.slice(),this.charSpacing=0,this.wordSpacing=0,this.leading=0,this.textHScale=1,this.textRise=0}setTextMatrix(e,t,a,r,i,n){var s=this.textMatrix;s[0]=e,s[1]=t,s[2]=a,s[3]=r,s[4]=i,s[5]=n}setTextLineMatrix(e,t,a,r,i,n){var s=this.textLineMatrix;s[0]=e,s[1]=t,s[2]=a,s[3]=r,s[4]=i,s[5]=n}translateTextMatrix(e,t){var a=this.textMatrix;a[4]=a[0]*e+a[2]*t+a[4],a[5]=a[1]*e+a[3]*t+a[5]}translateTextLineMatrix(e,t){var a=this.textLineMatrix;a[4]=a[0]*e+a[2]*t+a[4],a[5]=a[1]*e+a[3]*t+a[5]}carriageReturn(){this.translateTextLineMatrix(0,-this.leading),this.textMatrix=this.textLineMatrix.slice()}clone(){var e=Object.create(this);return e.textMatrix=this.textMatrix.slice(),e.textLineMatrix=this.textLineMatrix.slice(),e.fontMatrix=this.fontMatrix.slice(),e}}class i{constructor(){this.ctm=new Float32Array(H.IDENTITY_MATRIX),this.font=null,this.textRenderingMode=H.TextRenderingMode.FILL,this.fillColorSpace=D.ColorSpace.singletons.gray,this.strokeColorSpace=D.ColorSpace.singletons.gray}clone(){return Object.create(this)}}class K{static get opMap(){return(0,H.shadow)(this,"opMap",{w:{id:H.OPS.setLineWidth,numArgs:1,variableArgs:!1},J:{id:H.OPS.setLineCap,numArgs:1,variableArgs:!1},j:{id:H.OPS.setLineJoin,numArgs:1,variableArgs:!1},M:{id:H.OPS.setMiterLimit,numArgs:1,variableArgs:!1},d:{id:H.OPS.setDash,numArgs:2,variableArgs:!1},ri:{id:H.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},i:{id:H.OPS.setFlatness,numArgs:1,variableArgs:!1},gs:{id:H.OPS.setGState,numArgs:1,variableArgs:!1},q:{id:H.OPS.save,numArgs:0,variableArgs:!1},Q:{id:H.OPS.restore,numArgs:0,variableArgs:!1},cm:{id:H.OPS.transform,numArgs:6,variableArgs:!1},m:{id:H.OPS.moveTo,numArgs:2,variableArgs:!1},l:{id:H.OPS.lineTo,numArgs:2,variableArgs:!1},c:{id:H.OPS.curveTo,numArgs:6,variableArgs:!1},v:{id:H.OPS.curveTo2,numArgs:4,variableArgs:!1},y:{id:H.OPS.curveTo3,numArgs:4,variableArgs:!1},h:{id:H.OPS.closePath,numArgs:0,variableArgs:!1},re:{id:H.OPS.rectangle,numArgs:4,variableArgs:!1},S:{id:H.OPS.stroke,numArgs:0,variableArgs:!1},s:{id:H.OPS.closeStroke,numArgs:0,variableArgs:!1},f:{id:H.OPS.fill,numArgs:0,variableArgs:!1},F:{id:H.OPS.fill,numArgs:0,variableArgs:!1},"f*":{id:H.OPS.eoFill,numArgs:0,variableArgs:!1},B:{id:H.OPS.fillStroke,numArgs:0,variableArgs:!1},"B*":{id:H.OPS.eoFillStroke,numArgs:0,variableArgs:!1},b:{id:H.OPS.closeFillStroke,numArgs:0,variableArgs:!1},"b*":{id:H.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},n:{id:H.OPS.endPath,numArgs:0,variableArgs:!1},W:{id:H.OPS.clip,numArgs:0,variableArgs:!1},"W*":{id:H.OPS.eoClip,numArgs:0,variableArgs:!1},BT:{id:H.OPS.beginText,numArgs:0,variableArgs:!1},ET:{id:H.OPS.endText,numArgs:0,variableArgs:!1},Tc:{id:H.OPS.setCharSpacing,numArgs:1,variableArgs:!1},Tw:{id:H.OPS.setWordSpacing,numArgs:1,variableArgs:!1},Tz:{id:H.OPS.setHScale,numArgs:1,variableArgs:!1},TL:{id:H.OPS.setLeading,numArgs:1,variableArgs:!1},Tf:{id:H.OPS.setFont,numArgs:2,variableArgs:!1},Tr:{id:H.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},Ts:{id:H.OPS.setTextRise,numArgs:1,variableArgs:!1},Td:{id:H.OPS.moveText,numArgs:2,variableArgs:!1},TD:{id:H.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},Tm:{id:H.OPS.setTextMatrix,numArgs:6,variableArgs:!1},"T*":{id:H.OPS.nextLine,numArgs:0,variableArgs:!1},Tj:{id:H.OPS.showText,numArgs:1,variableArgs:!1},TJ:{id:H.OPS.showSpacedText,numArgs:1,variableArgs:!1},"'":{id:H.OPS.nextLineShowText,numArgs:1,variableArgs:!1},'"':{id:H.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},d0:{id:H.OPS.setCharWidth,numArgs:2,variableArgs:!1},d1:{id:H.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},CS:{id:H.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},cs:{id:H.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},SC:{id:H.OPS.setStrokeColor,numArgs:4,variableArgs:!0},SCN:{id:H.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},sc:{id:H.OPS.setFillColor,numArgs:4,variableArgs:!0},scn:{id:H.OPS.setFillColorN,numArgs:33,variableArgs:!0},G:{id:H.OPS.setStrokeGray,numArgs:1,variableArgs:!1},g:{id:H.OPS.setFillGray,numArgs:1,variableArgs:!1},RG:{id:H.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},rg:{id:H.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},K:{id:H.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},k:{id:H.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},sh:{id:H.OPS.shadingFill,numArgs:1,variableArgs:!1},BI:{id:H.OPS.beginInlineImage,numArgs:0,variableArgs:!1},ID:{id:H.OPS.beginImageData,numArgs:0,variableArgs:!1},EI:{id:H.OPS.endInlineImage,numArgs:1,variableArgs:!1},Do:{id:H.OPS.paintXObject,numArgs:1,variableArgs:!1},MP:{id:H.OPS.markPoint,numArgs:1,variableArgs:!1},DP:{id:H.OPS.markPointProps,numArgs:2,variableArgs:!1},BMC:{id:H.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},BDC:{id:H.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},EMC:{id:H.OPS.endMarkedContent,numArgs:0,variableArgs:!1},BX:{id:H.OPS.beginCompat,numArgs:0,variableArgs:!1},EX:{id:H.OPS.endCompat,numArgs:0,variableArgs:!1},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(e,t,a=new V){this.parser=new r.Parser({lexer:new r.Lexer(e,K.opMap),xref:t}),this.stateManager=a,this.nonProcessedArgs=[],this._isPathOp=!1,this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(t){let a=t.args;for(;;){var r=this.parser.getObj();if(r instanceof q.Cmd){const s=r.cmd,q=K.opMap[s];if(!q){(0,H.warn)(`Unknown command "${s}".`);continue}var i=q.id,n=q.numArgs;let e=null!==a?a.length:0;if(this._isPathOp||(this._numInvalidPathOPS=0),this._isPathOp=i>=H.OPS.moveTo&&i<=H.OPS.endPath,q.variableArgs)e>n&&(0,H.info)(`Command ${s}: expected [0, ${n}] args, but received ${e} args.`);else{if(e!==n){const t=this.nonProcessedArgs;for(;e>n;)t.push(a.shift()),e--;for(;e<n&&0!==t.length;)(a=null===a?[]:a).unshift(t.pop()),e++}if(e<n){const t=`command ${s}: expected ${n} args, but received ${e} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>K.MAX_INVALID_PATH_OPS)throw new H.FormatError("Invalid "+t);(0,H.warn)("Skipping "+t),null!==a&&(a.length=0);continue}}return this.preprocessCommand(i,a),t.fn=i,t.args=a,!0}if(r===q.EOF)return!1;if(null!==r&&((a=null===a?[]:a).push(r),33<a.length))throw new H.FormatError("Too many arguments")}}preprocessCommand(e,t){switch(0|e){case H.OPS.save:this.stateManager.save();break;case H.OPS.restore:this.stateManager.restore();break;case H.OPS.transform:this.stateManager.transform(t)}}}e.EvaluatorPreprocessor=K},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IdentityCMap=t.CMapFactory=t.CMap=void 0;var h=a(2),u=a(4),r=a(5),n=a(15),s=a(16),d=a(3),o=a(8);const l=["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"],c=2**24-1;class f{constructor(e=!1){this.codespaceRanges=[[],[],[],[]],this.numCodespaceRanges=0,this._map=[],this.name="",this.vertical=!1,this.useCMap=null,this.builtInCMap=e}addCodespaceRange(e,t,a){this.codespaceRanges[e-1].push(t,a),this.numCodespaceRanges++}mapCidRange(e,t,a){if(t-e>c)throw new Error("mapCidRange - ignoring data above MAX_MAP_RANGE.");for(;e<=t;)this._map[e++]=a++}mapBfRange(e,t,a){if(t-e>c)throw new Error("mapBfRange - ignoring data above MAX_MAP_RANGE.");for(var r=a.length-1;e<=t;){const t=(this._map[e++]=a).charCodeAt(r)+1;a=255<t?a.substring(0,r-1)+String.fromCharCode(a.charCodeAt(r-1)+1)+"\0":a.substring(0,r)+String.fromCharCode(t)}}mapBfRangeToArray(e,t,a){if(t-e>c)throw new Error("mapBfRangeToArray - ignoring data above MAX_MAP_RANGE.");var r=a.length;let i=0;for(;e<=t&&i<r;)this._map[e]=a[i++],++e}mapOne(e,t){this._map[e]=t}lookup(e){return this._map[e]}contains(e){return void 0!==this._map[e]}forEach(t){const a=this._map,r=a.length;if(r<=65536)for(let e=0;e<r;e++)void 0!==a[e]&&t(e,a[e]);else for(const r in a)t(r,a[r])}charCodeOf(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(const a in t)if(t[a]===e)return 0|a;return-1}getMap(){return this._map}readCharCode(t,r,i){let n=0;const s=this.codespaceRanges;for(let a=0,e=s.length;a<e;a++){n=(n<<8|t.charCodeAt(r+a))>>>0;var o=s[a];for(let e=0,t=o.length;e<t;){const r=o[e++],s=o[e++];if(n>=r&&n<=s)return i.charcode=n,void(i.length=a+1)}}i.charcode=0,i.length=1}getCharCodeLength(r){var t=this.codespaceRanges;for(let a=0,e=t.length;a<e;a++){var i=t[a];for(let e=0,t=i.length;e<t;){var n=i[e++],s=i[e++];if(n<=r&&r<=s)return a+1}}return 1}get length(){return this._map.length}get isIdentityCMap(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==this._map.length)return!1;for(let e=0;e<65536;e++)if(this._map[e]!==e)return!1;return!0}}class g extends(t.CMap=f){constructor(e,t){super(),this.vertical=e,this.addCodespaceRange(t,0,65535)}mapCidRange(e,t,a){(0,h.unreachable)("should not call mapCidRange")}mapBfRange(e,t,a){(0,h.unreachable)("should not call mapBfRange")}mapBfRangeToArray(e,t,a){(0,h.unreachable)("should not call mapBfRangeToArray")}mapOne(e,t){(0,h.unreachable)("should not call mapCidOne")}lookup(e){return Number.isInteger(e)&&e<=65535?e:void 0}contains(e){return Number.isInteger(e)&&e<=65535}forEach(t){for(let e=0;e<=65535;e++)t(e,e)}charCodeOf(e){return Number.isInteger(e)&&e<=65535?e:-1}getMap(){var t=new Array(65536);for(let e=0;e<=65535;e++)t[e]=e;return t}get length(){return 65536}get isIdentityCMap(){(0,h.unreachable)("should not access .isIdentityCMap")}}function p(t){let a=0;for(let e=0;e<t.length;e++)a=a<<8|t.charCodeAt(e);return a>>>0}function m(e){if("string"!=typeof e)throw new h.FormatError("Malformed CMap: expected string.")}function b(e){if(!Number.isInteger(e))throw new h.FormatError("Malformed CMap: expected int.")}async function y(e,t,a,r){let i,n;e:for(;;)try{const a=t.getObj();if(a===u.EOF)break;if(a instanceof u.Name)"WMode"===a.name?(l=e,c=(c=t).getObj(),Number.isInteger(c)&&(l.vertical=!!c)):"CMapName"===a.name&&(s=e,(o=(o=t).getObj())instanceof u.Name&&(s.name=o.name)),i=a;else if(a instanceof u.Cmd)switch(a.cmd){case"endcmap":break e;case"usecmap":i instanceof u.Name&&(n=i.name);break;case"begincodespacerange":!function(e,t){for(;;){var a=t.getObj();if(a===u.EOF)break;if((0,u.isCmd)(a,"endcodespacerange"))return;if("string"!=typeof a)break;const h=p(a);if("string"!=typeof(a=t.getObj()))break;var r=p(a);e.addCodespaceRange(a.length,h,r)}throw new h.FormatError("Invalid codespace range.")}(e,t);break;case"beginbfchar":!function(e,t){for(;;){var a=t.getObj();if(a===u.EOF)break;if((0,u.isCmd)(a,"endbfchar"))return;m(a);var r=p(a);m(a=t.getObj()),e.mapOne(r,a)}}(e,t);break;case"begincidchar":!function(e,t){for(;;){var a=t.getObj();if(a===u.EOF)break;if((0,u.isCmd)(a,"endcidchar"))return;m(a);var r=p(a);b(a=t.getObj()),e.mapOne(r,a)}}(e,t);break;case"beginbfrange":!function(t,a){for(;;){let e=a.getObj();if(e===u.EOF)break;if((0,u.isCmd)(e,"endbfrange"))return;m(e);const h=p(e);m(e=a.getObj());var r=p(e);if(e=a.getObj(),Number.isInteger(e)||"string"==typeof e){const a=Number.isInteger(e)?String.fromCharCode(e):e;t.mapBfRange(h,r,a)}else{if(!(0,u.isCmd)(e,"["))break;e=a.getObj();for(var i=[];!(0,u.isCmd)(e,"]")&&e!==u.EOF;)i.push(e),e=a.getObj();t.mapBfRangeToArray(h,r,i)}}throw new h.FormatError("Invalid bf range.")}(e,t);break;case"begincidrange":!function(e,t){for(;;){var a=t.getObj();if(a===u.EOF)break;if((0,u.isCmd)(a,"endcidrange"))return;m(a);var r=p(a),i=(m(a=t.getObj()),p(a));b(a=t.getObj());e.mapCidRange(r,i,a)}}(e,t)}}catch(e){if(e instanceof d.MissingDataException)throw e;(0,h.warn)("Invalid cMap data: "+e);continue}var s,o,l,c;return(r=!r&&n?n:r)?w(e,a,r):e}async function w(a,t,e){if(a.useCMap=await i(e,t),0===a.numCodespaceRanges){const t=a.useCMap.codespaceRanges;for(let e=0;e<t.length;e++)a.codespaceRanges[e]=t[e].slice();a.numCodespaceRanges=a.useCMap.numCodespaceRanges}return a.useCMap.forEach(function(e,t){a.contains(e)||a.mapOne(e,a.useCMap.lookup(e))}),a}async function i(e,t){if("Identity-H"===e)return new g(!1,2);if("Identity-V"===e)return new g(!0,2);if(!l.includes(e))throw new Error("Unknown CMap name: "+e);if(!t)throw new Error("Built-in CMap parameters are not provided.");const{cMapData:a,compressionType:r}=await t(e),i=new f(!0);if(r===h.CMapCompressionType.BINARY)return(new n.BinaryCMapReader).process(a,i,e=>w(i,t,e));if(r!==h.CMapCompressionType.NONE)throw new Error('Invalid CMap "compressionType" value: '+r);{const e=new s.Lexer(new o.Stream(a));return y(i,e,t,null)}}t.IdentityCMap=g,t.CMapFactory=class{static async create({encoding:e,fetchBuiltInCMap:t,useCMap:a}){if(e instanceof u.Name)return i(e.name,t);if(e instanceof r.BaseStream)return(e=await y(new f,new s.Lexer(e),t,a)).isIdentityCMap?i(e.name,t):e;throw new Error("Encoding required.")}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryCMapReader=void 0;var l=a(2);function g(t,a){let r=0;for(let e=0;e<=a;e++)r=r<<8|t[e];return r>>>0}function p(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):String.fromCharCode(...e.subarray(0,t+1))}function m(t,a,r){let i=0;for(let e=r;0<=e;e--)i+=t[e]+a[e],t[e]=255&i,i>>=8}function b(t,a){let r=1;for(let e=a;0<=e&&0<r;e--)r+=t[e],t[e]=255&r,r>>=8}class y{constructor(e){this.buffer=e,this.pos=0,this.end=e.length,this.tmpBuf=new Uint8Array(19)}readByte(){return this.pos>=this.end?-1:this.buffer[this.pos++]}readNumber(){let e,t=0;do{var a=this.readByte();if(a<0)throw new l.FormatError("unexpected EOF in bcmap");e=!(128&a),t=t<<7|127&a}while(!e);return t}readSigned(){var e=this.readNumber();return 1&e?~(e>>>1):e>>>1}readHex(e,t){e.set(this.buffer.subarray(this.pos,this.pos+t+1)),this.pos+=t+1}readHexNumber(e,t){var a,r=this.tmpBuf;let i=0;do{const e=this.readByte();if(e<0)throw new l.FormatError("unexpected EOF in bcmap");a=!(128&e),r[i++]=127&e}while(!a);let n=t,s=0,o=0;for(;0<=n;){for(;o<8&&0<r.length;)s|=r[--i]<<o,o+=7;e[n]=255&s,n--,s>>=8,o-=8}}readHexSigned(t,a){this.readHexNumber(t,a);var r=1&t[a]?255:0;let i=0;for(let e=0;e<=a;e++)i=(1&i)<<8|t[e],t[e]=i>>1^r}readString(){var t=this.readNumber(),a=new Array(t);for(let e=0;e<t;e++)a[e]=this.readNumber();return String.fromCharCode(...a)}}t.BinaryCMapReader=class{async process(e,t,a){const r=new y(e),i=r.readByte();t.vertical=!!(1&i);let n=null;var s=new Uint8Array(16),o=new Uint8Array(16),l=new Uint8Array(16),c=new Uint8Array(16),h=new Uint8Array(16);let u,d;for(;0<=(d=r.readByte());){const e=d>>5;if(7==e)switch(31&d){case 0:r.readString();break;case 1:n=r.readString()}else{const a=!!(16&d),y=15&d;if(16<1+y)throw new Error("BinaryCMapReader.process: Invalid dataSize.");const i=1,f=r.readNumber();switch(e){case 0:r.readHex(s,y),r.readHexNumber(o,y),m(o,s,y),t.addCodespaceRange(1+y,g(s,y),g(o,y));for(let e=1;e<f;e++)b(o,y),r.readHexNumber(s,y),m(s,o,y),r.readHexNumber(o,y),m(o,s,y),t.addCodespaceRange(1+y,g(s,y),g(o,y));break;case 1:r.readHex(s,y),r.readHexNumber(o,y),m(o,s,y),r.readNumber();for(let e=1;e<f;e++)b(o,y),r.readHexNumber(s,y),m(s,o,y),r.readHexNumber(o,y),m(o,s,y),r.readNumber();break;case 2:r.readHex(l,y),u=r.readNumber(),t.mapOne(g(l,y),u);for(let e=1;e<f;e++)b(l,y),a||(r.readHexNumber(h,y),m(l,h,y)),u=r.readSigned()+(u+1),t.mapOne(g(l,y),u);break;case 3:r.readHex(s,y),r.readHexNumber(o,y),m(o,s,y),u=r.readNumber(),t.mapCidRange(g(s,y),g(o,y),u);for(let e=1;e<f;e++)b(o,y),a?s.set(o):(r.readHexNumber(s,y),m(s,o,y)),r.readHexNumber(o,y),m(o,s,y),u=r.readNumber(),t.mapCidRange(g(s,y),g(o,y),u);break;case 4:r.readHex(l,1),r.readHex(c,y),t.mapOne(g(l,1),p(c,y));for(let e=1;e<f;e++)b(l,1),a||(r.readHexNumber(h,1),m(l,h,1)),b(c,y),r.readHexSigned(h,y),m(c,h,y),t.mapOne(g(l,1),p(c,y));break;case 5:r.readHex(s,1),r.readHexNumber(o,1),m(o,s,1),r.readHex(c,y),t.mapBfRange(g(s,1),g(o,1),p(c,y));for(let e=1;e<f;e++)b(o,1),a?s.set(o):(r.readHexNumber(s,1),m(s,o,1)),r.readHexNumber(o,1),m(o,s,1),r.readHex(c,y),t.mapBfRange(g(s,1),g(o,1),p(c,y));break;default:throw new Error("BinaryCMapReader.process - unknown type: "+e)}}}return n?a(n):t}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=t.Linearization=t.Lexer=void 0;var u=a(2),d=a(4),l=a(3),c=a(8),i=a(17),n=a(19),s=a(20),o=a(22),h=a(23),f=a(26),g=a(29),p=a(31),m=a(32),b=a(33);class y{constructor({lexer:e,xref:t,allowStreams:a=!1,recoveryMode:r=!1}){this.lexer=e,this.xref=t,this.allowStreams=a,this.recoveryMode=r,this.imageCache=Object.create(null),this._imageId=0,this.refill()}refill(){this.buf1=this.lexer.getObj(),this.buf2=this.lexer.getObj()}shift(){this.buf2 instanceof d.Cmd&&"ID"===this.buf2.cmd?(this.buf1=this.buf2,this.buf2=null):(this.buf1=this.buf2,this.buf2=this.lexer.getObj())}tryShift(){try{return this.shift(),!0}catch(e){if(e instanceof l.MissingDataException)throw e;return!1}}getObj(e=null){const t=this.buf1;if(this.shift(),t instanceof d.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":for(var a=[];!(0,d.isCmd)(this.buf1,"]")&&this.buf1!==d.EOF;)a.push(this.getObj(e));if(this.buf1!==d.EOF)return this.shift(),a;if(this.recoveryMode)return a;throw new l.ParserEOFException("End of file inside array.");case"<<":for(var r=new d.Dict(this.xref);!(0,d.isCmd)(this.buf1,">>")&&this.buf1!==d.EOF;)if(this.buf1 instanceof d.Name){const t=this.buf1.name;if(this.shift(),this.buf1===d.EOF)break;r.set(t,this.getObj(e))}else(0,u.info)("Malformed dictionary: key must be a name object"),this.shift();if(this.buf1!==d.EOF)return(0,d.isCmd)(this.buf2,"stream")?this.allowStreams?this.makeStream(r,e):r:(this.shift(),r);if(this.recoveryMode)return r;throw new l.ParserEOFException("End of file inside dictionary.");default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,d.isCmd)(this.buf2,"R")){const e=d.Ref.get(t,this.buf1);return this.shift(),this.shift(),e}return t}return"string"==typeof t&&e?e.decryptString(t):t}findDefaultInlineStreamEnd(t){const a=this.lexer["knownCommands"],r=t.pos;let i,n,s=0;for(;-1!==(i=t.getByte());)if(0===s)s=69===i?1:0;else if(1===s)s=73===i?2:0;else if(32===i||10===i||13===i){n=t.pos;const r=t.peekBytes(15),l=r.length;if(0===l)break;for(let e=0;e<l;e++)if((0!==(i=r[e])||0===r[e+1])&&10!==i&&13!==i&&(i<32||127<i)){s=0;break}if(2!==s)continue;if(!a){(0,u.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}const o=new x(new c.Stream(r.slice()),a);o._hexStringWarn=()=>{};let e=0;for(;;){const t=o.getObj();if(t===d.EOF){s=0;break}if(t instanceof d.Cmd){const r=a[t.cmd];if(!r){s=0;break}if(r.variableArgs?e<=r.numArgs:e===r.numArgs)break;e=0}else e++}if(2===s)break}else s=0;-1===i&&((0,u.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker"),n)&&((0,u.warn)('... trying to recover by using the last "EI" occurrence.'),t.skip(-(t.pos-n)));let o=4;return t.skip(-o),i=t.peekByte(),t.skip(o),(0,l.isWhiteSpace)(i)||o--,t.pos-o-r}findDCTDecodeInlineStreamEnd(e){var t=e.pos;let a,r,i=!1;for(;-1!==(a=e.getByte());)if(255===a){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:i=!0;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:2<(r=e.getUint16())?e.skip(r-2):e.skip(-2)}if(i)break}t=e.pos-t;return-1===a?((0,u.warn)("Inline DCTDecode image stream: EOI marker not found, searching for /EI/ instead."),e.skip(-t),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),t)}findASCII85DecodeInlineStreamEnd(e){const t=e.pos;let a;for(;-1!==(a=e.getByte());)if(126===a){const t=e.pos;for(a=e.peekByte();(0,l.isWhiteSpace)(a);)e.skip(),a=e.peekByte();if(62===a){e.skip();break}if(e.pos>t){const t=e.peekBytes(2);if(69===t[0]&&73===t[1])break}}var r=e.pos-t;return-1===a?((0,u.warn)("Inline ASCII85Decode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-r),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),r)}findASCIIHexDecodeInlineStreamEnd(e){var t=e.pos;let a;for(;-1!==(a=e.getByte())&&62!==a;);t=e.pos-t;return-1===a?((0,u.warn)("Inline ASCIIHexDecode image stream: EOD marker not found, searching for /EI/ instead."),e.skip(-t),this.findDefaultInlineStreamEnd(e)):(this.inlineStreamSkipEI(e),t)}inlineStreamSkipEI(e){let t,a=0;for(;-1!==(t=e.getByte());)if(0===a)a=69===t?1:0;else if(1===a)a=73===t?2:0;else if(2===a)break}makeInlineImage(e){const t=this.lexer,a=t.stream,r=Object.create(null);let i;for(;!(0,d.isCmd)(this.buf1,"ID")&&this.buf1!==d.EOF;){if(!(this.buf1 instanceof d.Name))throw new u.FormatError("Dictionary key must be a name object");const t=this.buf1.name;if(this.shift(),this.buf1===d.EOF)break;r[t]=this.getObj(e)}-1!==t.beginInlineImagePos&&(i=a.pos-t.beginInlineImagePos);var n=this.xref.fetchIfRef(r.F||r.Filter);let s;if(n instanceof d.Name)s=n.name;else if(Array.isArray(n)){const e=this.xref.fetchIfRef(n[0]);e instanceof d.Name&&(s=e.name)}n=a.pos;let o,l;switch(s){case"DCT":case"DCTDecode":o=this.findDCTDecodeInlineStreamEnd(a);break;case"A85":case"ASCII85Decode":o=this.findASCII85DecodeInlineStreamEnd(a);break;case"AHx":case"ASCIIHexDecode":o=this.findASCIIHexDecodeInlineStreamEnd(a);break;default:o=this.findDefaultInlineStreamEnd(a)}if(o<1e3&&0<i){const e=a.pos,u=(a.pos=t.beginInlineImagePos,l=function(e){var t=[],a=e.length;let r=0;for(;r<a-1;)t.push(e[r++]<<8|e[r++]);return r<a&&t.push(e[r]),a+"_"+String.fromCharCode.apply(null,t)}(a.getBytes(i+o)),a.pos=e,this.imageCache[l]);if(void 0!==u)return this.buf2=d.Cmd.get("EI"),this.shift(),u.reset(),u}var c=new d.Dict(this.xref);for(const e in r)c.set(e,r[e]);let h=a.makeSubStream(n,o,c);return e&&(h=e.createStream(h,o)),(h=this.filter(h,c,o)).dict=c,void 0!==l&&(h.cacheKey="inline_img_"+ ++this._imageId,this.imageCache[l]=h),this.buf2=d.Cmd.get("EI"),this.shift(),h}_findStreamLength(a,r){for(var i=this.lexer["stream"],n=(i.pos=a,r.length);i.pos<i.end;){var s=i.peekBytes(2048),e=s.length-n;if(e<=0)break;let t=0;for(;t<e;){let e=0;for(;e<n&&s[t+e]===r[e];)e++;if(e>=n)return i.pos+=t,i.pos-a;t++}i.pos+=e}return-1}makeStream(a,e){const r=this.lexer;let i=r.stream;r.skipToNextLine();var n=i.pos-1;let s=a.get("Length");if(Number.isInteger(s)||((0,u.info)(`Bad length "${s&&s.toString()}" in stream.`),s=0),i.pos=n+s,r.nextChar(),!this.tryShift()||!(0,d.isCmd)(this.buf2,"endstream")){const a=new Uint8Array([101,110,100,115,116,114,101,97,109]);let t=this._findStreamLength(n,a);if(t<0){const r=1;for(let e=1;e<=1;e++){const r=a.length-e,s=a.slice(0,r),o=this._findStreamLength(n,s);if(0<=o){const a=i.peekBytes(1+r)[r];if(!(0,l.isWhiteSpace)(a))break;(0,u.info)(`Found "${(0,u.bytesToString)(s)}" when searching for endstream command.`),t=o;break}}if(t<0)throw new u.FormatError("Missing endstream command.")}s=t,r.nextChar(),this.shift()}return this.shift(),this.shift(),i=i.makeSubStream(n,s,a),e&&(i=e.createStream(i,s)),(i=this.filter(i,a,s)).dict=a,i}filter(a,r,i){let n=r.get("F","Filter"),s=r.get("DP","DecodeParms");if(n instanceof d.Name)return Array.isArray(s)&&(0,u.warn)("/DecodeParms should not be an Array, when /Filter is a Name."),this.makeFilter(a,n.name,i,s);let o=i;if(Array.isArray(n)){const r=n,i=s;for(let e=0,t=r.length;e<t;++e){if(!((n=this.xref.fetchIfRef(r[e]))instanceof d.Name))throw new u.FormatError(`Bad filter name "${n}"`);s=null,Array.isArray(i)&&e in i&&(s=this.xref.fetchIfRef(i[e])),a=this.makeFilter(a,n.name,o,s),o=null}}return a}makeFilter(t,e,a,r){if(0===a)return(0,u.warn)(`Empty "${e}" stream.`),new c.NullStream;try{switch(e){case"Fl":case"FlateDecode":return r?new m.PredictorStream(new o.FlateStream(t,a),a,r):new o.FlateStream(t,a);case"LZW":case"LZWDecode":let e=1;return r?(r.has("EarlyChange")&&(e=r.get("EarlyChange")),new m.PredictorStream(new p.LZWStream(t,a,e),a,r)):new p.LZWStream(t,a,e);case"DCT":case"DCTDecode":return new f.JpegStream(t,a,r);case"JPX":case"JPXDecode":return new g.JpxStream(t,a,r);case"A85":case"ASCII85Decode":return new i.Ascii85Stream(t,a);case"AHx":case"ASCIIHexDecode":return new n.AsciiHexStream(t,a);case"CCF":case"CCITTFaxDecode":return new s.CCITTFaxStream(t,a,r);case"RL":case"RunLengthDecode":return new b.RunLengthStream(t,a);case"JBIG2Decode":return new h.Jbig2Stream(t,a,r)}return(0,u.warn)(`Filter "${e}" is not supported.`),t}catch(t){if(t instanceof l.MissingDataException)throw t;return(0,u.warn)(`Invalid stream: "${t}"`),new c.NullStream}}}t.Parser=y;const w=[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(e){return 48<=e&&e<=57?15&e:65<=e&&e<=70||97<=e&&e<=102?9+(15&e):-1}class x{constructor(e,t=null){this.stream=e,this.nextChar(),this.strBuf=[],this.knownCommands=t,this._hexStringNumWarn=0,this.beginInlineImagePos=-1}nextChar(){return this.currentChar=this.stream.getByte()}peekChar(){return this.stream.peekByte()}getNumber(){let e=this.currentChar,t=!1,a=0,r=1;if(45===e?(r=-1,45===(e=this.nextChar())&&(e=this.nextChar())):43===e&&(e=this.nextChar()),10===e||13===e)for(;10===(e=this.nextChar())||13===e;);if(46===e&&(a=10,e=this.nextChar()),e<48||57<e){const t=`Invalid number: ${String.fromCharCode(e)} (charCode ${e})`;if((0,l.isWhiteSpace)(e)||-1===e)return(0,u.info)(`Lexer.getNumber - "${t}".`),0;throw new u.FormatError(t)}let i=e-48,n=0,s=1;for(;0<=(e=this.nextChar());)if(48<=e&&e<=57){const u=e-48;t?n=10*n+u:(0!==a&&(a*=10),i=10*i+u)}else if(46===e){if(0!==a)break;a=1}else if(45===e)(0,u.warn)("Badly formatted number: minus sign in the middle");else{if(69!==e&&101!==e)break;if(43===(e=this.peekChar())||45===e)s=45===e?-1:1,this.nextChar();else if(e<48||57<e)break;t=!0}return 0!==a&&(i/=a),t&&(i*=10**(s*n)),r*i}getString(){let e=1,a=!1;var r=this.strBuf;r.length=0;let i=this.nextChar();for(;;){let t=!1;switch(0|i){case-1:(0,u.warn)("Unterminated string"),a=!0;break;case 40:++e,r.push("(");break;case 41:0==--e?(this.nextChar(),a=!0):r.push(")");break;case 92:switch(i=this.nextChar()){case-1:(0,u.warn)("Unterminated string"),a=!0;break;case 110:r.push("\n");break;case 114:r.push("\r");break;case 116:r.push("\t");break;case 98:r.push("\b");break;case 102:r.push("\f");break;case 92:case 40:case 41:r.push(String.fromCharCode(i));break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let e=15&i;i=this.nextChar(),t=!0,48<=i&&i<=55&&(e=(e<<3)+(15&i),48<=(i=this.nextChar()))&&i<=55&&(t=!1,e=(e<<3)+(15&i)),r.push(String.fromCharCode(e));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:r.push(String.fromCharCode(i))}break;default:r.push(String.fromCharCode(i))}if(a)break;t||(i=this.nextChar())}return r.join("")}getName(){let e,t;var a=this.strBuf;for(a.length=0;0<=(e=this.nextChar())&&!w[e];)if(35===e){if(e=this.nextChar(),w[e]){(0,u.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number."),a.push("#");break}const d=v(e);if(-1!==d){t=e;var r=v(e=this.nextChar());if(-1===r){if((0,u.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(e)}) in hexadecimal number.`),a.push("#",String.fromCharCode(t)),w[e])break;a.push(String.fromCharCode(e));continue}a.push(String.fromCharCode(d<<4|r))}else a.push("#",String.fromCharCode(e))}else a.push(String.fromCharCode(e));return 127<a.length&&(0,u.warn)("Name token is longer than allowed by the spec: "+a.length),d.Name.get(a.join(""))}_hexStringWarn(e){5!=this._hexStringNumWarn++?5<this._hexStringNumWarn||(0,u.warn)("getHexString - ignoring invalid character: "+e):(0,u.warn)("getHexString - ignoring additional invalid characters.")}getHexString(){var e=this.strBuf;e.length=0;let t,a,r=this.currentChar,i=!0;for(this._hexStringNumWarn=0;;){if(r<0){(0,u.warn)("Unterminated hex string");break}if(62===r){this.nextChar();break}if(1!==w[r]){if(i){if(-1===(t=v(r))){this._hexStringWarn(r),r=this.nextChar();continue}}else{if(-1===(a=v(r))){this._hexStringWarn(r),r=this.nextChar();continue}e.push(String.fromCharCode(t<<4|a))}i=!i}r=this.nextChar()}return e.join("")}getObj(){let e=!1,t=this.currentChar;for(;;){if(t<0)return d.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==w[t])break;t=this.nextChar()}switch(0|t){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:return this.nextChar(),d.Cmd.get("[");case 93:return this.nextChar(),d.Cmd.get("]");case 60:return 60===(t=this.nextChar())?(this.nextChar(),d.Cmd.get("<<")):this.getHexString();case 62:return 62===(t=this.nextChar())?(this.nextChar(),d.Cmd.get(">>")):d.Cmd.get(">");case 123:return this.nextChar(),d.Cmd.get("{");case 125:return this.nextChar(),d.Cmd.get("}");case 41:throw this.nextChar(),new u.FormatError("Illegal character: "+t)}let a=String.fromCharCode(t);if(t<32||127<t){const e=this.peekChar();if(32<=e&&e<=127)return this.nextChar(),d.Cmd.get(a)}var r=this.knownCommands;let i=void 0!==r?.[a];for(;0<=(t=this.nextChar())&&!w[t];){const e=a+String.fromCharCode(t);if(i&&void 0===r[e])break;if(128===a.length)throw new u.FormatError("Command token too long: "+a.length);a=e,i=void 0!==r?.[a]}return"true"===a||"false"!==a&&("null"===a?null:("BI"===a&&(this.beginInlineImagePos=this.stream.pos),d.Cmd.get(a)))}skipToNextLine(){let e=this.currentChar;for(;0<=e;){if(13===e){10===(e=this.nextChar())&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}t.Lexer=x,t.Linearization=class{static create(e){function t(e,t,a=!1){e=e.get(t);if(Number.isInteger(e)&&(a?0<=e:0<e))return e;throw new Error(`The "${t}" parameter in the linearization dictionary is invalid.`)}var a=new y({lexer:new x(e),xref:null}),r=a.getObj(),i=a.getObj(),n=a.getObj(),s=a.getObj();let o,l;if(!(Number.isInteger(r)&&Number.isInteger(i)&&(0,d.isCmd)(n,"obj")&&s instanceof d.Dict&&"number"==typeof(o=s.get("Linearized"))&&0<o))return null;if((l=t(s,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:l,hints:function(){var t=s.get("H");let a;if(!Array.isArray(t)||2!==(a=t.length)&&4!==a)throw new Error("Hint array in the linearization dictionary is invalid.");for(let e=0;e<a;e++){const a=t[e];if(!(Number.isInteger(a)&&0<a))throw new Error(`Hint (${e}) in the linearization dictionary is invalid.`)}return t}(),objectNumberFirst:t(s,"O"),endFirst:t(s,"E"),numPages:t(s,"N"),mainXRefEntriesOffset:t(s,"T"),pageFirst:s.has("P")?t(s,"P",!0):0}}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Ascii85Stream=void 0;var r=a(18),o=a(3);class i extends r.DecodeStream{constructor(e,t){t&&(t*=.8),super(t),this.str=e,this.dict=e.dict,this.input=new Uint8Array(5)}readBlock(){var r=this.str;let i=r.getByte();for(;(0,o.isWhiteSpace)(i);)i=r.getByte();if(-1===i||126===i)this.eof=!0;else{var n=this.bufferLength;let t,a;if(122===i){for(t=this.ensureBuffer(n+4),a=0;a<4;++a)t[n+a]=0;this.bufferLength+=4}else{var s=this.input;for(s[0]=i,a=1;a<5;++a){for(i=r.getByte();(0,o.isWhiteSpace)(i);)i=r.getByte();if(-1===(s[a]=i)||126===i)break}if(t=this.ensureBuffer(n+a-1),this.bufferLength+=a-1,a<5){for(;a<5;++a)s[a]=117;this.eof=!0}let e=0;for(a=0;a<5;++a)e=85*e+(s[a]-33);for(a=3;0<=a;--a)t[n+a]=255&e,e>>=8}}}}t.Ascii85Stream=i},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StreamsSequenceStream=t.DecodeStream=void 0;var r=a(5),i=a(8);const n=new Uint8Array(0);class s extends r.BaseStream{constructor(e){if(super(),this._rawMinBufferLength=e||0,this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=n,this.minBufferLength=512,e)for(;this.minBufferLength<e;)this.minBufferLength*=2}get isEmpty(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength}ensureBuffer(e){var t=this.buffer;if(e<=t.byteLength)return t;let a=this.minBufferLength;for(;a<e;)a*=2;var r=new Uint8Array(a);return r.set(t),this.buffer=r}getByte(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getBytes(e){var t=this.pos;let a;if(e){for(this.ensureBuffer(t+e),a=t+e;!this.eof&&this.bufferLength<a;)this.readBlock();e=this.bufferLength;a>e&&(a=e)}else{for(;!this.eof;)this.readBlock();a=this.bufferLength}return this.pos=a,this.buffer.subarray(t,a)}reset(){this.pos=0}makeSubStream(e,t,a=null){if(void 0===t)for(;!this.eof;)this.readBlock();else{const a=e+t;for(;this.bufferLength<=a&&!this.eof;)this.readBlock()}return new i.Stream(this.buffer,e,t,a)}getBaseStreams(){return this.str?this.str.getBaseStreams():null}}t.DecodeStream=s,t.StreamsSequenceStream=class extends s{constructor(e,t=null){let a=0;for(const t of e)a+=t instanceof s?t._rawMinBufferLength:t.length;super(a),this.streams=e,this._onError=t}readBlock(){var t=this.streams;if(0===t.length)this.eof=!0;else{var a=t.shift();let e;try{e=a.getBytes()}catch(t){if(this._onError)return void this._onError(t,a.dict?.objId);throw t}var a=this.bufferLength,r=a+e.length;this.ensureBuffer(r).set(e,a),this.bufferLength=r}}getBaseStreams(){var e=[];for(const a of this.streams){var t=a.getBaseStreams();t&&e.push(...t)}return 0<e.length?e:null}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AsciiHexStream=void 0;class r extends a(18).DecodeStream{constructor(e,t){t&&(t*=.5),super(t),this.str=e,this.dict=e.dict,this.firstDigit=-1}readBlock(){var e=this.str.getBytes(8e3);if(e.length){const r=e.length+1>>1,i=this.ensureBuffer(this.bufferLength+r);let t=this.bufferLength,a=this.firstDigit;for(const r of e){let e;if(48<=r&&r<=57)e=15&r;else{if(!(65<=r&&r<=70||97<=r&&r<=102)){if(62!==r)continue;this.eof=!0;break}e=9+(15&r)}a=a<0?e:(i[t++]=a<<4|e,-1)}0<=a&&this.eof&&(i[t++]=a<<4,a=-1),this.firstDigit=a,this.bufferLength=t}else this.eof=!0}}t.AsciiHexStream=r},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxStream=void 0;var r=a(21),i=a(18),n=a(4);class s extends i.DecodeStream{constructor(e,t,a){super(t),this.str=e,this.dict=e.dict,a instanceof n.Dict||(a=n.Dict.empty),this.ccittFaxDecoder=new r.CCITTFaxDecoder({next:()=>e.getByte()},{K:a.get("K"),EndOfLine:a.get("EndOfLine"),EncodedByteAlign:a.get("EncodedByteAlign"),Columns:a.get("Columns"),Rows:a.get("Rows"),EndOfBlock:a.get("EndOfBlock"),BlackIs1:a.get("BlackIs1")})}readBlock(){for(;!this.eof;){var e=this.ccittFaxDecoder.readNextChar();if(-1===e)return void(this.eof=!0);this.ensureBuffer(this.bufferLength+1),this.buffer[this.bufferLength++]=e}}}t.CCITTFaxStream=s},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CCITTFaxDecoder=void 0;var h=a(2);const r=[[-1,-1],[-1,-1],[7,8],[7,7],[6,6],[6,6],[6,5],[6,5],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[4,0],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[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],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,4],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[3,3],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]],i=[[-1,-1],[12,-2],[-1,-1],[-1,-1],[-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]],n=[[-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]],s=[[-1,-1],[-1,-1],[12,-2],[12,-2],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-1,-1],[-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]],o=[[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]],l=[[-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]];t.CCITTFaxDecoder=class{constructor(e,t={}){if(!e||"function"!=typeof e.next)throw new Error('CCITTFaxDecoder - invalid "source" parameter.');let a;for(this.source=e,this.eof=!1,this.encoding=t.K||0,this.eoline=t.EndOfLine||!1,this.byteAlign=t.EncodedByteAlign||!1,this.columns=t.Columns||1728,this.rows=t.Rows||0,this.eoblock=t.EndOfBlock??!0,this.black=t.BlackIs1||!1,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=!1;0===(a=this._lookBits(12));)this._eatBits(1);1===a&&this._eatBits(12),0<this.encoding&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1))}readNextChar(){if(this.eof)return-1;var i=this.refLine,n=this.codingLine,s=this.columns;let o,l,e,c,t;if(0===this.outputBits){if(this.rowsDone&&(this.eof=!0),this.eof)return-1;let e,t,a;if(this.err=!1,this.nextLine2D){for(c=0;n[c]<s;++c)i[c]=n[c];for(i[c++]=s,i[c]=s,n[0]=0,this.codingPos=0,o=0,l=0;n[this.codingPos]<s;)switch(e=this._getTwoDimCode(),e){case 0:this._addPixels(i[o+1],l),i[o+1]<s&&(o+=2);break;case 1:if(e=t=0,l){for(;e+=a=this._getBlackCode(),64<=a;);for(;t+=a=this._getWhiteCode(),64<=a;);}else{for(;e+=a=this._getWhiteCode(),64<=a;);for(;t+=a=this._getBlackCode(),64<=a;);}for(this._addPixels(n[this.codingPos]+e,l),n[this.codingPos]<s&&this._addPixels(n[this.codingPos]+t,1^l);i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case 7:if(this._addPixels(i[o]+3,l),l^=1,n[this.codingPos]<s)for(++o;i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case 5:if(this._addPixels(i[o]+2,l),l^=1,n[this.codingPos]<s)for(++o;i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case 3:if(this._addPixels(i[o]+1,l),l^=1,n[this.codingPos]<s)for(++o;i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case 2:if(this._addPixels(i[o],l),l^=1,n[this.codingPos]<s)for(++o;i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case 8:if(this._addPixelsNeg(i[o]-3,l),l^=1,n[this.codingPos]<s)for(0<o?--o:++o;i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case 6:if(this._addPixelsNeg(i[o]-2,l),l^=1,n[this.codingPos]<s)for(0<o?--o:++o;i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case 4:if(this._addPixelsNeg(i[o]-1,l),l^=1,n[this.codingPos]<s)for(0<o?--o:++o;i[o]<=n[this.codingPos]&&i[o]<s;)o+=2;break;case-1:this._addPixels(s,0),this.eof=!0;break;default:(0,h.info)("bad 2d code"),this._addPixels(s,0),this.err=!0}}else for(n[0]=0,this.codingPos=0,l=0;n[this.codingPos]<s;){if(e=0,l)for(;e+=a=this._getBlackCode(),64<=a;);else for(;e+=a=this._getWhiteCode(),64<=a;);this._addPixels(n[this.codingPos]+e,l),l^=1}let r=!1;if(this.byteAlign&&(this.inputBits&=-8),this.eoblock||this.row!==this.rows-1){if(e=this._lookBits(12),this.eoline)for(;-1!==e&&1!==e;)this._eatBits(1),e=this._lookBits(12);else for(;0===e;)this._eatBits(1),e=this._lookBits(12);1===e?(this._eatBits(12),r=!0):-1===e&&(this.eof=!0)}else this.rowsDone=!0;if(!this.eof&&0<this.encoding&&!this.rowsDone&&(this.nextLine2D=!this._lookBits(1),this._eatBits(1)),this.eoblock&&r&&this.byteAlign){if(1===(e=this._lookBits(12))){if(this._eatBits(12),0<this.encoding&&(this._lookBits(1),this._eatBits(1)),0<=this.encoding)for(c=0;c<4;++c)1!==(e=this._lookBits(12))&&(0,h.info)("bad rtc code: "+e),this._eatBits(12),0<this.encoding&&(this._lookBits(1),this._eatBits(1));this.eof=!0}}else if(this.err&&this.eoline){for(;;){if(-1===(e=this._lookBits(13)))return this.eof=!0,-1;if(e>>1==1)break;this._eatBits(1)}this._eatBits(12),0<this.encoding&&(this._eatBits(1),this.nextLine2D=!(1&e))}this.outputBits=0<n[0]?n[this.codingPos=0]:n[this.codingPos=1],this.row++}if(8<=this.outputBits)t=1&this.codingPos?0:255,this.outputBits-=8,0===this.outputBits&&n[this.codingPos]<s&&(this.codingPos++,this.outputBits=n[this.codingPos]-n[this.codingPos-1]);else{e=8,t=0;do{if("number"!=typeof this.outputBits)throw new h.FormatError('Invalid /CCITTFaxDecode data, "outputBits" must be a number.')}while(this.outputBits>e?(t<<=e,1&this.codingPos||(t|=255>>8-e),this.outputBits-=e,e=0):(t<<=this.outputBits,1&this.codingPos||(t|=255>>8-this.outputBits),e-=this.outputBits,this.outputBits=0,n[this.codingPos]<s?(this.codingPos++,this.outputBits=n[this.codingPos]-n[this.codingPos-1]):0<e&&(t<<=e,e=0)),e)}return this.black&&(t^=255),t}_addPixels(e,t){var a=this.codingLine;let r=this.codingPos;e>a[r]&&(e>this.columns&&((0,h.info)("row is wrong length"),this.err=!0,e=this.columns),1&r^t&&++r,a[r]=e),this.codingPos=r}_addPixelsNeg(e,t){var a=this.codingLine;let r=this.codingPos;if(e>a[r])e>this.columns&&((0,h.info)("row is wrong length"),this.err=!0,e=this.columns),1&r^t&&++r,a[r]=e;else if(e<a[r]){for(e<0&&((0,h.info)("invalid code"),this.err=!0,e=0);0<r&&e<a[r-1];)--r;a[r]=e}this.codingPos=r}_findTableCode(e,a,r,t){var i=t||0;for(let t=e;t<=a;++t){let e=this._lookBits(t);if(-1===e)return[!0,1,!1];if(t<a&&(e<<=a-t),!i||e>=i){const a=r[e-i];if(a[0]===t)return this._eatBits(t),[!0,a[1],!0]}}return[!1,0,!1]}_getTwoDimCode(){let e,t;if(this.eoblock){if(t=this._lookBits(7),0<(e=r[t])?.[0])return this._eatBits(e[0]),e[1]}else{const e=this._findTableCode(1,7,r);if(e[0]&&e[2])return e[1]}return(0,h.info)("Bad two dim code"),-1}_getWhiteCode(){if(this.eoblock){if(-1===(e=this._lookBits(12)))return 1;if(0<(e=e>>5==0?i[e]:n[e>>3])[0])return this._eatBits(e[0]),e[1]}else{var e=this._findTableCode(1,9,n);if(e[0])return e[1];if((e=this._findTableCode(11,12,i))[0])return e[1]}return(0,h.info)("bad white code"),this._eatBits(1),1}_getBlackCode(){if(this.eoblock){if(-1===(e=this._lookBits(13)))return 1;if(0<(e=e>>7==0?s[e]:e>>9==0&&e>>7!=0?o[(e>>1)-64]:l[e>>7])[0])return this._eatBits(e[0]),e[1]}else{var e=this._findTableCode(2,6,l);if(e[0])return e[1];if((e=this._findTableCode(7,12,o,64))[0])return e[1];if((e=this._findTableCode(10,13,s))[0])return e[1]}return(0,h.info)("bad black code"),this._eatBits(1),1}_lookBits(e){for(var t;this.inputBits<e;){if(-1===(t=this.source.next()))return 0===this.inputBits?-1:this.inputBuf<<e-this.inputBits&65535>>16-e;this.inputBuf=this.inputBuf<<8|t,this.inputBits+=8}return this.inputBuf>>this.inputBits-e&65535>>16-e}_eatBits(e){(this.inputBits-=e)<0&&(this.inputBits=0)}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FlateStream=void 0;var r=a(18),h=a(2);const u=new Int32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),d=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]),f=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]),g=[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],p=[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 i extends r.DecodeStream{constructor(e,t){super(t),this.str=e,this.dict=e.dict;t=e.getByte(),e=e.getByte();if(-1===t||-1===e)throw new h.FormatError(`Invalid header in flate stream: ${t}, `+e);if(8!=(15&t))throw new h.FormatError(`Unknown compression method in flate stream: ${t}, `+e);if(((t<<8)+e)%31!=0)throw new h.FormatError(`Bad FCHECK in flate stream: ${t}, `+e);if(32&e)throw new h.FormatError(`FDICT bit set in flate stream: ${t}, `+e);this.codeSize=0,this.codeBuf=0}getBits(e){var t=this.str;let a,r=this.codeSize,i=this.codeBuf;for(;r<e;){if(-1===(a=t.getByte()))throw new h.FormatError("Bad encoding in flate stream");i|=a<<r,r+=8}return a=i&(1<<e)-1,this.codeBuf=i>>e,this.codeSize=r-=e,a}getCode(e){var t=this.str,a=e[0],r=e[1];let i,n=this.codeSize,s=this.codeBuf;for(;n<r&&-1!==(i=t.getByte());)s|=i<<n,n+=8;e=a[s&(1<<r)-1],a=e>>16,e&=65535;if(a<1||n<a)throw new h.FormatError("Bad encoding in flate stream");return this.codeBuf=s>>a,this.codeSize=n-a,e}generateHuffmanTable(e){var t=e.length;let s,a=0;for(s=0;s<t;++s)e[s]>a&&(a=e[s]);var o=1<<a,l=new Int32Array(o);for(let r=1,i=0,n=2;r<=a;++r,i<<=1,n<<=1)for(let a=0;a<t;++a)if(e[a]===r){let e=0,t=i;for(s=0;s<r;++s)e=e<<1|1&t,t>>=1;for(s=e;s<o;s+=n)l[s]=r<<16|a;++i}return[l,a]}readBlock(){let n,s;const e=this.str;let o,l,c=this.getBits(3);if(1&c&&(this.eof=!0),0===(c>>=1)){var t;if(-1===(t=e.getByte()))throw new h.FormatError("Bad block header in flate stream");var a=t;if(-1===(t=e.getByte()))throw new h.FormatError("Bad block header in flate stream");if(a|=t<<8,-1===(t=e.getByte()))throw new h.FormatError("Bad block header in flate stream");var r=t;if(-1===(t=e.getByte()))throw new h.FormatError("Bad block header in flate stream");if((r|=t<<8)!=(65535&~a)&&(0!=a||0!=r))throw new h.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0,this.codeSize=0;const d=this.bufferLength,f=d+a;if(n=this.ensureBuffer(f),this.bufferLength=f,0==a)-1===e.peekByte()&&(this.eof=!0);else{const s=e.getBytes(a);n.set(s,d),s.length<a&&(this.eof=!0)}}else{if(1===c)o=g,l=p;else{if(2!==c)throw new h.FormatError("Unknown block type in flate stream");{const n=this.getBits(5)+257,e=this.getBits(5)+1,h=this.getBits(4)+4,d=new Uint8Array(u.length);let t;for(t=0;t<h;++t)d[u[t]]=this.getBits(3);const g=this.generateHuffmanTable(d),p=(s=0,t=0,n+e),c=new Uint8Array(p);let a,r,i;for(;t<p;){const n=this.getCode(g);if(16===n)a=2,r=3,i=s;else{if(17===n)a=3,r=3;else{if(18!==n){c[t++]=s=n;continue}a=7,r=11}i=s=0}let e=this.getBits(a)+r;for(;0<e--;)c[t++]=i}o=this.generateHuffmanTable(c.subarray(0,n)),l=this.generateHuffmanTable(c.subarray(n,p))}}let t=(n=this.buffer)?n.length:0,a=this.bufferLength;for(;;){var i=this.getCode(o);if(i<256)a+1>=t&&(n=this.ensureBuffer(a+1),t=n.length),n[a++]=i;else{if(256===i)return void(this.bufferLength=a);i-=257;let e=(i=d[i])>>16;0<e&&(e=this.getBits(e)),s=(65535&i)+e,i=this.getCode(l);const u=(65535&(i=f[i]))+(e=0<(e=i>>16)?this.getBits(e):e);a+s>=t&&(n=this.ensureBuffer(a+s),t=n.length);for(let e=0;e<s;++e,++a)n[a]=n[a-u]}}}}}t.FlateStream=i},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Stream=void 0;var i=a(5),r=a(18),n=a(4),s=a(24),o=a(2);class l extends r.DecodeStream{constructor(e,t,a){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=a}get bytes(){return(0,o.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(!this.eof){const e=new s.Jbig2Image,t=[];if(this.params instanceof n.Dict){const e=this.params.get("JBIG2Globals");if(e instanceof i.BaseStream){const a=e.getBytes();t.push({data:a,start:0,end:a.length})}}t.push({data:this.bytes,start:0,end:this.bytes.length});const a=e.parseChunks(t),r=a.length;for(let e=0;e<r;e++)a[e]^=255;this.buffer=a,this.bufferLength=r,this.eof=!0}}}t.Jbig2Stream=l},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Jbig2Image=void 0;var r=a(2),L=a(3),i=a(25),l=a(21);class $ extends r.BaseException{constructor(e){super("JBIG2 error: "+e,"Jbig2Error")}}class n{getContexts(e){return e in this?this[e]:this[e]=new Int8Array(65536)}}class u{constructor(e,t,a){this.data=e,this.start=t,this.end=a}get decoder(){var e=new i.ArithmeticDecoder(this.data,this.start,this.end);return(0,r.shadow)(this,"decoder",e)}get contextCache(){var e=new n;return(0,r.shadow)(this,"contextCache",e)}}const o=2**31-1,c=-(2**31);function R(e,t,r){const i=e.getContexts(t);let n=1;function a(t){let a=0;for(let e=0;e<t;e++){const t=r.readBit(i,n);n=n<256?n<<1|t:511&(n<<1|t)|256,a=a<<1|t}return a>>>0}e=a(1),t=a(1)?a(1)?a(1)?a(1)?a(1)?a(32)+4436:a(12)+340:a(8)+84:a(6)+20:a(4)+4:a(2);let s;return 0===e?s=t:0<t&&(s=-t),s>=c&&s<=o?s:null}function _(e,t,a){var r=e.getContexts("IAID");let i=1;for(let e=0;e<a;e++)i=i<<1|t.readBit(r,i);return a<31?i&(1<<a)-1:2147483647&i}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"],j=[[{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}]],C=[{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}]}],U=[39717,1941,229,405],F=[32,8];function X(o,g,p,m,b,y,w,v){if(o)return z(new q(v.data,v.start,v.end),g,p,!1);if(0!==m||y||b||4!==w.length||3!==w[0].x||-1!==w[0].y||-3!==w[1].x||-1!==w[1].y||2!==w[2].x||-2!==w[2].y||-2!==w[3].x||-2!==w[3].y){var x=!!y,S=j[m].concat(w),A=(S.sort(function(e,t){return e.y-t.y||e.x-t.x}),S.length),k=new Int8Array(A),C=new Int8Array(A),F=[];let e,t,a=0,r=0,i=0,n=0;for(t=0;t<A;t++)k[t]=S[t].x,C[t]=S[t].y,r=Math.min(r,S[t].x),i=Math.max(i,S[t].x),n=Math.min(n,S[t].y),t<A-1&&S[t].y===S[t+1].y&&S[t].x===S[t+1].x-1?a|=1<<A-1-t:F.push(t);var O=F.length,I=new Int8Array(O),T=new Int8Array(O),M=new Uint16Array(O);for(e=0;e<O;e++)t=F[e],I[e]=S[t].x,T[e]=S[t].y,M[e]=1<<A-1-t;var P=-r,N=-n,E=g-i,D=U[m];let s=new Uint8Array(g);var B=[],R=v.decoder,L=v.contextCache.getContexts("GB");let o,l,c,h,u,d=0,f=0;for(let e=0;e<p;e++)if(b&&(d^=R.readBit(L,D)))B.push(s);else for(s=new Uint8Array(s),B.push(s),o=0;o<g;o++)if(x&&y[e][o])s[o]=0;else{if(o>=P&&o<E&&e>=N)for(f=f<<1&a,t=0;t<O;t++)l=e+T[t],c=o+I[t],(h=B[l][c])&&(h=M[t],f|=h);else for(f=0,u=A-1,t=0;t<A;t++,u--)0<=(c=o+k[t])&&c<g&&0<=(l=e+C[t])&&(h=B[l][c])&&(f|=h<<u);const p=R.readBit(L,f);s[o]=p}return B}{var l=g,c=p,o=v,h=o.decoder,u=o.contextCache.getContexts("GB"),d=[];let e,t,a,r,i,n,s;for(t=0;t<c;t++)for(i=d[t]=new Uint8Array(l),n=t<1?i:d[t-1],s=t<2?i:d[t-2],e=s[0]<<13|s[1]<<12|s[2]<<11|n[0]<<7|n[1]<<6|n[2]<<5|n[3]<<4,a=0;a<l;a++)i[a]=r=h.readBit(u,e),e=(31735&e)<<1|(a+3<l?s[a+3]<<11:0)|(a+4<l?n[a+4]<<4:0)|r;return d}}function H(n,s,e,o,l,c,t,a,r){let h=C[e].coding;var u=(h=0===e?h.concat([a[0]]):h).length,d=new Int32Array(u),f=new Int32Array(u);let g;for(g=0;g<u;g++)d[g]=h[g].x,f[g]=h[g].y;let i=C[e].reference;var p=(i=0===e?i.concat([a[1]]):i).length,m=new Int32Array(p),b=new Int32Array(p);for(g=0;g<p;g++)m[g]=i[g].x,b[g]=i[g].y;var y=o[0].length,w=o.length,v=F[e],x=[],S=r.decoder,A=r.contextCache.getContexts("GR");let k=0;for(let i=0;i<s;i++){if(t&&(k^=S.readBit(A,v)))throw new $("prediction is not supported");const s=new Uint8Array(n);x.push(s);for(let r=0;r<n;r++){let e,t,a=0;for(g=0;g<u;g++)e=i+f[g],t=r+d[g],e<0||t<0||t>=n?a<<=1:a=a<<1|x[e][t];for(g=0;g<p;g++)e=i+b[g]-c,t=r+m[g]-l,e<0||e>=w||t<0||t>=y?a<<=1:a=a<<1|o[e][t];const h=S.readBit(A,a);s[r]=h}}return x}function O(l,c,h,e,t,u,d,f,g,p,m,b,y,w,v,x,S,A,k){if(l&&c)throw new $("refinement with Huffman is not supported");var C=[];let F,O;for(F=0;F<e;F++){if(O=new Uint8Array(h),t)for(let e=0;e<h;e++)O[e]=t;C.push(O)}var I=S.decoder,T=S.contextCache;let M=l?-w.tableDeltaT.decode(k):-R(T,"IADT",I),P=0;for(F=0;F<u;){M+=l?w.tableDeltaT.decode(k):R(T,"IADT",I);let o=P+=l?w.tableFirstS.decode(k):R(T,"IAFS",I);for(;;){let e=0;1<d&&(e=l?k.readBits(A):R(T,"IAIT",I));const u=d*M+e,P=l?w.symbolIDTable.decode(k):_(T,I,g),B=c&&(l?k.readBit():R(T,"IARI",I));let t=f[P],a=t[0].length,r=t.length;if(B){const l=R(T,"IARDW",I),c=R(T,"IARDH",I);a+=l,r+=c,t=H(a,r,v,t,(l>>1)+R(T,"IARDX",I),(c>>1)+R(T,"IARDY",I),!1,x,S)}var N=u-(1&b?0:r-1),E=o-(2&b?a-1:0);let i,n,s;if(p){for(i=0;i<r;i++)if(O=C[E+i]){s=t[i];const l=Math.min(h-N,a);switch(y){case 0:for(n=0;n<l;n++)O[N+n]|=s[n];break;case 2:for(n=0;n<l;n++)O[N+n]^=s[n];break;default:throw new $(`operator ${y} is not supported`)}}o+=r-1}else{for(n=0;n<r;n++)if(O=C[N+n])switch(s=t[n],y){case 0:for(i=0;i<a;i++)O[E+i]|=s[i];break;case 2:for(i=0;i<a;i++)O[E+i]^=s[i];break;default:throw new $(`operator ${y} is not supported`)}o+=a-1}F++;var D=l?w.tableDeltaS.decode(k):R(T,"IADS",I);if(null===D)break;o+=D+m}}return C}function s(e,t,a,r){var i=[];let n=a;for(;n<r;){const a=function(t,e){var a={};a.number=(0,L.readUint32)(t,e);const r=t[e+4],i=63&r;if(!p[i])throw new $("invalid segment type: "+i);a.type=i,a.typeName=p[i],a.deferredNonRetain=!!(128&r);var n=!!(64&r),s=t[e+5];let o=s>>5&7;var l=[31&s];let c=e+6;if(7===s){o=536870911&(0,L.readUint32)(t,c-1),c+=3;let e=o+7>>3;for(l[0]=t[c++];0<--e;)l.push(t[c++])}else if(5===s||6===s)throw new $("invalid referred-to flags");a.retainBits=l;let h=4;a.number<=256?h=1:a.number<=65536&&(h=2);var u=[];let d,f;for(d=0;d<o;d++){var g=1===h?t[c]:(2===h?(0,L.readUint16):(0,L.readUint32))(t,c);u.push(g),c+=h}if(a.referredTo=u,n?(a.pageAssociation=(0,L.readUint32)(t,c),c+=4):a.pageAssociation=t[c++],a.length=(0,L.readUint32)(t,c),c+=4,4294967295===a.length){if(38!==i)throw new $("invalid unknown segment length");{const e=m(t,c),r=!!(1&t[c+b]),L=6,i=new Uint8Array(6);for(r||(i[0]=255,i[1]=172),i[2]=e.height>>>24&255,i[3]=e.height>>16&255,i[4]=e.height>>8&255,i[5]=255&e.height,d=c,f=t.length;d<f;d++){let e=0;for(;e<6&&i[e]===t[d+e];)e++;if(6===e){a.length=d+6;break}}if(4294967295===a.length)throw new $("segment end was not found")}}return a.headerEnd=c,a}(t,n),r=(n=a.headerEnd,{header:a,data:t});if(e.randomAccess||(r.start=n,n+=a.length,r.end=n),i.push(r),51===a.type)break}if(e.randomAccess)for(let e=0,t=i.length;e<t;e++)i[e].start=n,n+=i[e].header.length,i[e].end=n;return i}function m(e,t){return{width:(0,L.readUint32)(e,t),height:(0,L.readUint32)(e,t+4),x:(0,L.readUint32)(e,t+8),y:(0,L.readUint32)(e,t+12),combinationOperator:7&e[t+16]}}const b=17;function h(s,o){for(let n=0,e=s.length;n<e;n++){l=void 0;c=void 0;h=void 0;u=void 0;d=void 0;f=void 0;g=void 0;var l=s[n];var c=o;var h=l.header,u=l.data,d=l.end;let e,t,a,r,i=l.start;switch(h.type){case 0:const l={},c=(0,L.readUint16)(u,i);if(l.huffman=!!(1&c),l.refinement=!!(2&c),l.huffmanDHSelector=c>>2&3,l.huffmanDWSelector=c>>4&3,l.bitmapSizeSelector=c>>6&1,l.aggregationInstancesSelector=c>>7&1,l.bitmapCodingContextUsed=!!(256&c),l.bitmapCodingContextRetained=!!(512&c),l.template=c>>10&3,l.refinementTemplate=c>>12&1,i+=2,!l.huffman){for(r=0===l.template?4:1,t=[],a=0;a<r;a++)t.push({x:(0,L.readInt8)(u,i),y:(0,L.readInt8)(u,i+1)}),i+=2;l.at=t}if(l.refinement&&!l.refinementTemplate){for(t=[],a=0;a<2;a++)t.push({x:(0,L.readInt8)(u,i),y:(0,L.readInt8)(u,i+1)}),i+=2;l.refinementAt=t}l.numberOfExportedSymbols=(0,L.readUint32)(u,i),i+=4,l.numberOfNewSymbols=(0,L.readUint32)(u,i),i+=4,e=[l,h.number,h.referredTo,u,i,d];break;case 6:case 7:const p={};p.info=m(u,i),i+=b;var f=(0,L.readUint16)(u,i);if(i+=2,p.huffman=!!(1&f),p.refinement=!!(2&f),p.logStripSize=f>>2&3,p.stripSize=1<<p.logStripSize,p.referenceCorner=f>>4&3,p.transposed=!!(64&f),p.combinationOperator=f>>7&3,p.defaultPixelValue=f>>9&1,p.dsOffset=f<<17>>27,p.refinementTemplate=f>>15&1,p.huffman){const l=(0,L.readUint16)(u,i);i+=2,p.huffmanFS=3&l,p.huffmanDS=l>>2&3,p.huffmanDT=l>>4&3,p.huffmanRefinementDW=l>>6&3,p.huffmanRefinementDH=l>>8&3,p.huffmanRefinementDX=l>>10&3,p.huffmanRefinementDY=l>>12&3,p.huffmanRefinementSizeSelector=!!(16384&l)}if(p.refinement&&!p.refinementTemplate){for(t=[],a=0;a<2;a++)t.push({x:(0,L.readInt8)(u,i),y:(0,L.readInt8)(u,i+1)}),i+=2;p.refinementAt=t}p.numberOfSymbolInstances=(0,L.readUint32)(u,i),i+=4,e=[p,h.referredTo,u,i,d];break;case 16:var f={},g=u[i++];f.mmr=!!(1&g),f.template=g>>1&3,f.patternWidth=u[i++],f.patternHeight=u[i++],f.maxPatternIndex=(0,L.readUint32)(u,i),i+=4,e=[f,h.number,u,i,d];break;case 22:case 23:g={},f=(g.info=m(u,i),i+=b,u[i++]);g.mmr=!!(1&f),g.template=f>>1&3,g.enableSkip=!!(8&f),g.combinationOperator=f>>4&7,g.defaultPixelValue=f>>7&1,g.gridWidth=(0,L.readUint32)(u,i),i+=4,g.gridHeight=(0,L.readUint32)(u,i),i+=4,g.gridOffsetX=4294967295&(0,L.readUint32)(u,i),i+=4,g.gridOffsetY=4294967295&(0,L.readUint32)(u,i),i+=4,g.gridVectorX=(0,L.readUint16)(u,i),i+=2,g.gridVectorY=(0,L.readUint16)(u,i),i+=2,e=[g,h.referredTo,u,i,d];break;case 38:case 39:f={},g=(f.info=m(u,i),i+=b,u[i++]);if(f.mmr=!!(1&g),f.template=g>>1&3,f.prediction=!!(8&g),!f.mmr){for(r=0===f.template?4:1,t=[],a=0;a<r;a++)t.push({x:(0,L.readInt8)(u,i),y:(0,L.readInt8)(u,i+1)}),i+=2;f.at=t}e=[f,u,i,d];break;case 48:g={width:(0,L.readUint32)(u,i),height:(0,L.readUint32)(u,i+4),resolutionX:(0,L.readUint32)(u,i+8),resolutionY:(0,L.readUint32)(u,i+12)},f=(4294967295===g.height&&delete g.height,u[i+16]);(0,L.readUint16)(u,i+17),g.lossless=!!(1&f),g.refinement=!!(2&f),g.defaultPixelValue=f>>2&1,g.combinationOperator=f>>3&3,g.requiresBuffer=!!(32&f),g.combinationOperatorOverride=!!(64&f),e=[g];break;case 49:case 50:case 51:case 62:break;case 53:e=[h.number,u,i,d];break;default:throw new $(`segment type ${h.typeName}(${h.type}) is not implemented`)}const p="on"+h.typeName;p in c&&c[p].apply(c,e)}}class d{onPageInformation(e){var t=(this.currentPageInfo=e).width+7>>3,t=new Uint8ClampedArray(t*e.height);e.defaultPixelValue&&t.fill(255),this.buffer=t}drawBitmap(e,t){var a=this.currentPageInfo,r=e.width,i=e.height,n=a.width+7>>3,s=(a.combinationOperatorOverride?e:a).combinationOperator,o=this.buffer,l=128>>(7&e.x);let c,h,u,d,f=e.y*n+(e.x>>3);switch(s){case 0:for(c=0;c<i;c++){for(u=l,d=f,h=0;h<r;h++)t[c][h]&&(o[d]|=u),(u>>=1)||(u=128,d++);f+=n}break;case 2:for(c=0;c<i;c++){for(u=l,d=f,h=0;h<r;h++)t[c][h]&&(o[d]^=u),(u>>=1)||(u=128,d++);f+=n}break;default:throw new $(`operator ${s} is not supported`)}}onImmediateGenericRegion(e,t,a,r){var i=e.info,t=new u(t,a,r),a=X(e.mmr,i.width,i.height,e.template,e.prediction,null,e.at,t);this.drawBitmap(i,a)}onImmediateLosslessGenericRegion(){this.onImmediateGenericRegion(...arguments)}onSymbolDictionary(e,t,a,r,i,n){let s,o,l=(e.huffman&&(s=function(e,t,a){let r,i,n,s,o=0;switch(e.huffmanDHSelector){case 0:case 1:r=I(e.huffmanDHSelector+4);break;case 3:r=v(o,t,a),o++;break;default:throw new $("invalid Huffman DH selector")}switch(e.huffmanDWSelector){case 0:case 1:i=I(e.huffmanDWSelector+2);break;case 3:i=v(o,t,a),o++;break;default:throw new $("invalid Huffman DW selector")}return e.bitmapSizeSelector?(n=v(o,t,a),o++):n=I(1),s=e.aggregationInstancesSelector?v(o,t,a):I(1),{tableDeltaHeight:r,tableDeltaWidth:i,tableBitmapSize:n,tableAggregateInstances:s}}(e,a,this.customTables),o=new q(r,i,n)),this.symbols);l||(this.symbols=l={});var c=[];for(const e of a){const t=l[e];t&&c.push(...t)}a=new u(r,i,n);l[t]=function(r,i,o,n,l,s,c,h,u,d,f){if(r&&i)throw new $("symbol refinement with Huffman is not supported");var g=[];let p=0,m=(0,L.log2)(o.length+n);var b=d.decoder,y=d.contextCache;let t,w;for(r&&(t=I(1),w=[],m=Math.max(m,1));g.length<n;){p+=r?l.tableDeltaHeight.decode(f):R(y,"IADH",b);let t=0,a=0;const k=r?w.length:0;for(;;){const k=r?l.tableDeltaWidth.decode(f):R(y,"IADW",b);if(null===k)break;let e;if(t+=k,a+=t,i){const L=R(y,"IAAI",b);if(1<L)e=O(r,i,t,p,0,L,1,o.concat(g),m,0,0,1,0,l,h,u,d,0,f);else{const r=_(y,b,m),i=R(y,"IARDX",b),L=R(y,"IARDY",b);e=H(t,p,h,r<o.length?o[r]:g[r-o.length],i,L,!1,u,d)}g.push(e)}else r?w.push(t):(e=X(!1,t,p,s,!1,null,c,d),g.push(e))}if(r&&!i){const r=l.tableBitmapSize.decode(f);let s;if(f.byteAlign(),0===r)s=function(t,a,r){var i=[];for(let e=0;e<r;e++){const r=new Uint8Array(a);i.push(r);for(let e=0;e<a;e++)r[e]=t.readBit();t.byteAlign()}return i}(f,a,p);else{const o=f.end,n=f.position+r;f.end=n,s=z(f,a,p,!1),f.end=o,f.position=n}const o=w.length;if(k===o-1)g.push(s);else{let e,t,a,r,i,n=0;for(e=k;e<o;e++){for(r=w[e],a=n+r,i=[],t=0;t<p;t++)i.push(s[t].subarray(n,a));g.push(i),n=a}}}}var a=[],v=[];let x,e,S=!1;for(var A=o.length+n;v.length<A;){let e=r?t.decode(f):R(y,"IAEX",b);for(;e--;)v.push(S);S=!S}for(x=0,e=o.length;x<e;x++)v[x]&&a.push(o[x]);for(let e=0;e<n;x++,e++)v[x]&&a.push(g[e]);return a}(e.huffman,e.refinement,c,e.numberOfNewSymbols,(e.numberOfExportedSymbols,s),e.template,e.at,e.refinementTemplate,e.refinementAt,a,o)}onImmediateTextRegion(e,t,a,r,i){var n=e.info;let s,o;var l=this.symbols,c=[];for(const e of t){const t=l[e];t&&c.push(...t)}var h=(0,L.log2)(c.length),t=(e.huffman&&(o=new q(a,r,i),s=function(e,i,t,a,n){var s=[];for(let e=0;e<=34;e++){const i=n.readBits(4);s.push(new f([e,i,0,0]))}var o=new y(s,!1);for(let r=s.length=0;r<a;){const i=o.decode(n);if(32<=i){let e,t,a;switch(i){case 32:if(0===r)throw new $("no previous value in symbol ID table");t=n.readBits(2)+3,e=s[r-1].prefixLength;break;case 33:t=n.readBits(3)+3,e=0;break;case 34:t=n.readBits(7)+11,e=0;break;default:throw new $("invalid code length in symbol ID table")}for(a=0;a<t;a++)s.push(new f([r,e,0,0])),r++}else s.push(new f([r,i,0,0])),r++}n.byteAlign();var r=new y(s,!1);let l,c,h,u=0;switch(e.huffmanFS){case 0:case 1:l=I(e.huffmanFS+6);break;case 3:l=v(u,i,t),u++;break;default:throw new $("invalid Huffman FS selector")}switch(e.huffmanDS){case 0:case 1:case 2:c=I(e.huffmanDS+8);break;case 3:c=v(u,i,t),u++;break;default:throw new $("invalid Huffman DS selector")}switch(e.huffmanDT){case 0:case 1:case 2:h=I(e.huffmanDT+11);break;case 3:h=v(u,i,t),u++;break;default:throw new $("invalid Huffman DT selector")}if(e.refinement)throw new $("refinement with Huffman is not supported");return{symbolIDTable:r,tableFirstS:l,tableDeltaS:c,tableDeltaT:h}}(e,t,this.customTables,c.length,o)),new u(a,r,i)),a=O(e.huffman,e.refinement,n.width,n.height,e.defaultPixelValue,e.numberOfSymbolInstances,e.stripSize,c,h,e.transposed,e.dsOffset,e.referenceCorner,e.combinationOperator,s,e.refinementTemplate,e.refinementAt,t,e.logStripSize,o);this.drawBitmap(n,a)}onImmediateLosslessTextRegion(){this.onImmediateTextRegion(...arguments)}onPatternDictionary(e,t,a,r,i){let n=this.patterns;n||(this.patterns=n={});a=new u(a,r,i);n[t]=function(e,t,a,r,i,n){var s=[],o=(e||(s.push({x:-t,y:0}),0===i&&s.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2})),X(e,(r+1)*t,a,i,!1,null,s,n)),l=[];for(let e=0;e<=r;e++){const r=[],i=t*e,n=i+t;for(let e=0;e<a;e++)r.push(o[e].subarray(i,n));l.push(r)}return l}(e.mmr,e.patternWidth,e.patternHeight,e.maxPatternIndex,e.template,a)}onImmediateHalftoneRegion(e,t,a,r,i){var t=this.patterns[t[0]],n=e.info,a=new u(a,r,i),r=function(e,t,a,r,i,n,s,o,l,c,h,R,u,d,f){if(s)throw new $("skip is not supported");if(0!==o)throw new $(`operator "${o}" is not supported in halftone region`);var g=[];let p,m,b;for(p=0;p<i;p++){if(b=new Uint8Array(r),n)for(m=0;m<r;m++)b[m]=n;g.push(b)}var y,w,s=t.length,o=t[0],v=o[0].length,x=o.length,S=(0,L.log2)(s),A=[],k=(e||(A.push({x:a<=1?3:2,y:-1}),0===a&&A.push({x:-3,y:-1},{x:2,y:-2},{x:-2,y:-2})),[]);let C,F,O,I,T,M,P,N,E,D,B;for(e&&(C=new q(f.data,f.start,f.end)),p=S-1;0<=p;p--)F=e?z(C,l,c,!0):X(!1,l,c,a,!1,null,A,f),k[p]=F;for(O=0;O<c;O++)for(I=0;I<l;I++){for(T=0,M=0,m=S-1;0<=m;m--)T^=k[m][O][I],M|=T<<m;if(P=t[M],N=h+O*d+I*u>>8,E=R+O*u-I*d>>8,0<=N&&N+v<=r&&0<=E&&E+x<=i)for(p=0;p<x;p++)for(B=g[E+p],D=P[p],m=0;m<v;m++)B[N+m]|=D[m];else for(p=0;p<x;p++)if(!((w=E+p)<0||i<=w))for(B=g[w],D=P[p],m=0;m<v;m++)0<=(y=N+m)&&y<r&&(B[y]|=D[m])}return g}(e.mmr,t,e.template,n.width,n.height,e.defaultPixelValue,e.enableSkip,e.combinationOperator,e.gridWidth,e.gridHeight,e.gridOffsetX,e.gridOffsetY,e.gridVectorX,e.gridVectorY,a);this.drawBitmap(n,r)}onImmediateLosslessHalftoneRegion(){this.onImmediateHalftoneRegion(...arguments)}onTables(e,t,a,r){let i=this.customTables;i||(this.customTables=i={}),i[e]=function(e,t,a){var r=e[t],i=4294967295&(0,L.readUint32)(e,t+1),n=4294967295&(0,L.readUint32)(e,t+5),s=new q(e,t+9,a),o=1+(r>>1&7),l=1+(r>>4&7),c=[];let h,u,d=i;for(;h=s.readBits(o),u=s.readBits(l),c.push(new f([d,h,u,0])),(d+=1<<u)<n;);return h=s.readBits(o),c.push(new f([i-1,h,32,0,"lower"])),h=s.readBits(o),c.push(new f([n,h,32,0])),1&r&&(h=s.readBits(o),c.push(new f([h,0]))),new y(c,!1)}(t,a,r)}}class f{constructor(e){2===e.length?(this.isOOB=!0,this.rangeLow=0,this.prefixLength=e[0],this.rangeLength=0,this.prefixCode=e[1],this.isLowerRange=!1):(this.isOOB=!1,this.rangeLow=e[0],this.prefixLength=e[1],this.rangeLength=e[2],this.prefixCode=e[3],this.isLowerRange="lower"===e[4])}}class g{constructor(e){this.children=[],e?(this.isLeaf=!0,this.rangeLength=e.rangeLength,this.rangeLow=e.rangeLow,this.isLowerRange=e.isLowerRange,this.isOOB=e.isOOB):this.isLeaf=!1}buildTree(t,a){var r=t.prefixCode>>a&1;if(a<=0)this.children[r]=new g(t);else{let e=this.children[r];e||(this.children[r]=e=new g(null)),e.buildTree(t,a-1)}}decodeNode(e){if(this.isLeaf){if(this.isOOB)return null;const t=e.readBits(this.rangeLength);return this.rangeLow+(this.isLowerRange?-t:t)}const t=this.children[e.readBit()];if(t)return t.decodeNode(e);throw new $("invalid Huffman data")}}class y{constructor(a,e){e||this.assignPrefixCodes(a),this.rootNode=new g(null);for(let e=0,t=a.length;e<t;e++){var r=a[e];0<r.prefixLength&&this.rootNode.buildTree(r,r.prefixLength-1)}}decode(e){return this.rootNode.decodeNode(e)}assignPrefixCodes(t){var a=t.length;let r=0;for(let e=0;e<a;e++)r=Math.max(r,t[e].prefixLength);var i=new Uint32Array(r+1);for(let e=0;e<a;e++)i[t[e].prefixLength]++;let e,n,s,o=1,l=0;for(i[0]=0;o<=r;){for(l=l+i[o-1]<<1,e=l,n=0;n<a;)(s=t[n]).prefixLength===o&&(s.prefixCode=e,e++),n++;o++}}}const w={};function I(e){let a,t=w[e];if(!t){switch(e){case 1:a=[[0,1,4,0],[16,2,8,2],[272,3,16,6],[65808,3,32,7]];break;case 2:a=[[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:a=[[-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:a=[[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:a=[[-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:a=[[-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:a=[[-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:a=[[-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:a=[[-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:a=[[-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:a=[[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:a=[[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:a=[[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:a=[[-2,3,0,4],[-1,3,0,5],[0,1,0,0],[1,3,0,6],[2,3,0,7]];break;case 15:a=[[-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 $(`standard table B.${e} does not exist`)}for(let e=0,t=a.length;e<t;e++)a[e]=new f(a[e]);t=new y(a,!0),w[e]=t}return t}class q{constructor(e,t,a){this.data=e,this.start=t,this.end=a,this.position=t,this.shift=-1,this.currentByte=0}readBit(){if(this.shift<0){if(this.position>=this.end)throw new $("end of data while reading bit");this.currentByte=this.data[this.position++],this.shift=7}var e=this.currentByte>>this.shift&1;return this.shift--,e}readBits(e){let t,a=0;for(t=e-1;0<=t;t--)a|=this.readBit()<<t;return a}byteAlign(){this.shift=-1}next(){return this.position>=this.end?-1:this.data[this.position++]}}function v(a,r,i){let n=0;for(let e=0,t=r.length;e<t;e++){var s=i[r[e]];if(s){if(a===n)return s;n++}}throw new $("can't find custom Huffman table")}function z(a,r,t,e){var i=new l.CCITTFaxDecoder(a,{K:-1,Columns:r,Rows:t,BlackIs1:!0,EndOfBlock:e}),n=[];let s,o=!1;for(let e=0;e<t;e++){const a=new Uint8Array(r);n.push(a);let t=-1;for(let e=0;e<r;e++)t<0&&(-1===(s=i.readNextChar())&&(s=0,o=!0),t=7),a[e]=s>>t&1,t--}if(e&&!o){const a=5;for(let e=0;e<5&&-1!==i.readNextChar();e++);}return n}t.Jbig2Image=class{parseChunks(e){var a=e,r=new d;for(let e=0,t=a.length;e<t;e++){var i=a[e];h(s({},i.data,i.start,i.end),r)}return r.buffer}parse(e){throw new Error("Not implemented: Jbig2Image.parse")}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArithmeticDecoder=void 0;const l=[{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}];t.ArithmeticDecoder=class{constructor(e,t,a){this.data=e,this.bp=t,this.dataEnd=a,this.chigh=e[t],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(){var e=this.data;let t=this.bp;255===e[t]?143<e[t+1]?(this.clow+=65280,this.ct=8):(t++,this.clow+=e[t]<<9,this.ct=7,this.bp=t):(t++,this.clow+=t<this.dataEnd?e[t]<<8:65280,this.ct=8,this.bp=t),65535<this.clow&&(this.chigh+=this.clow>>16,this.clow&=65535)}readBit(e,t){let a=e[t]>>1,r=1&e[t];var i=l[a],n=i.qe;let s,o=this.a-n;if(this.chigh<n)a=o<n?(o=n,s=r,i.nmps):(o=n,s=1^r,1===i.switchFlag&&(r=s),i.nlps);else{if(this.chigh-=n,0!=(32768&o))return this.a=o,r;a=o<n?(s=1^r,1===i.switchFlag&&(r=s),i.nlps):(s=r,i.nmps)}for(;0===this.ct&&this.byteIn(),o<<=1,this.chigh=this.chigh<<1&65535|this.clow>>15&1,this.clow=this.clow<<1&65535,this.ct--,0==(32768&o););return this.a=o,e[t]=a<<1|r,s}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JpegStream=void 0;var r=a(18),s=a(4),o=a(27),i=a(2);class n extends r.DecodeStream{constructor(e,t,a){for(var r;-1!==(r=e.getByte());)if(255===r){e.skip(-1);break}super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=a}get bytes(){return(0,i.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(!this.eof){const e={decodeTransform:void 0,colorTransform:void 0},r=this.dict.getArray("D","Decode");if((this.forceRGBA||this.forceRGB)&&Array.isArray(r)){const i=this.dict.get("BPC","BitsPerComponent")||8,n=r.length,s=new Int32Array(n);let t=!1;var a=(1<<i)-1;for(let e=0;e<n;e+=2)s[e]=256*(r[e+1]-r[e])|0,s[e+1]=r[e]*a|0,256===s[e]&&0===s[e+1]||(t=!0);t&&(e.decodeTransform=s)}if(this.params instanceof s.Dict){const r=this.params.get("ColorTransform");Number.isInteger(r)&&(e.colorTransform=r)}const i=new o.JpegImage(e),n=(i.parse(this.bytes),i.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB,isSourcePDF:!0}));this.buffer=n,this.bufferLength=n.length,this.eof=!0}}}t.JpegStream=n},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JpegImage=void 0;var H=a(2),n=a(28),q=a(3);class z extends H.BaseException{constructor(e){super("JPEG error: "+e,"JpegError")}}class G extends H.BaseException{constructor(e,t){super(e,"DNLMarkerError"),this.scanLines=t}}class W extends H.BaseException{constructor(e){super(e,"EOIMarkerError")}}const V=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]),F=4017,O=799,I=3406,T=2276,M=1567,P=3784,N=5793,E=2896;function K(e,t,a){return 64*((e.blocksPerLine+1)*t+a)}function D(a,r,i,e,t,l,c,n,h,s=!1){const o=i.mcusPerLine,R=i.progressive,L=r;let u=0,d=0;function f(){if(0<d)return d--,u>>d&1;if(255===(u=a[r++])){var e=a[r++];if(e){if(220===e&&s){r+=2;var t=(0,q.readUint16)(a,r);if(r+=2,0<t&&t!==i.scanLines)throw new G("Found DNL marker (0xFFDC) while parsing scan data",t)}else if(217===e){if(s){const a=v*(8===i.precision?8:0);if(0<a&&5<=Math.round(i.scanLines/a))throw new G("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",a)}throw new W("Found EOI marker (0xFFD9) while parsing scan data")}throw new z("unexpected marker "+(u<<8|e).toString(16))}}return d=7,u>>>7}function g(e){let t=e;for(;;){switch(typeof(t=t[f()])){case"number":return t;case"object":continue}throw new z("invalid huffman sequence")}}function p(e){let t=0;for(;0<e;)t=t<<1|f(),e--;return t}function m(e){var t;return 1===e?1===f()?1:-1:1<<e-1<=(t=p(e))?t:t+(-1<<e)+1}let b,y=0,w=0,v=0;var x=e.length;let S,A,k,C,F,O;O=R?0===l?0===n?function(e,t){var a=g(e.huffmanTableDC),a=0===a?0:m(a)<<h;e.blockData[t]=e.pred+=a}:function(e,t){e.blockData[t]|=f()<<h}:0===n?function(t,a){if(0<y)y--;else{let e=l;const i=c;for(;e<=i;){const i=g(t.huffmanTableAC),n=15&i,s=i>>4;if(0==n){if(s<15){y=p(s)+(1<<s)-1;break}e+=16}else{e+=s;var r=V[e];t.blockData[a+r]=m(n)*(1<<h),e++}}}}:function(e,t){let a=l;const r=c;let i,n,s=0;for(;a<=r;){const r=t+V[a],o=e.blockData[r]<0?-1:1;switch(w){case 0:if(i=15&(n=g(e.huffmanTableAC)),s=n>>4,0==i)w=s<15?(y=p(s)+(1<<s),4):(s=16,1);else{if(1!=i)throw new z("invalid ACn encoding");b=m(i),w=s?2:3}continue;case 1:case 2:e.blockData[r]?e.blockData[r]+=o*(f()<<h):0===--s&&(w=2===w?3:0);break;case 3:e.blockData[r]?e.blockData[r]+=o*(f()<<h):(e.blockData[r]=b<<h,w=0);break;case 4:e.blockData[r]&&(e.blockData[r]+=o*(f()<<h))}a++}4===w&&0===--y&&(w=0)}:function(e,t){const a=g(e.huffmanTableDC),r=0===a?0:m(a);e.blockData[t]=e.pred+=r;let i=1;for(;i<64;){const a=g(e.huffmanTableAC),r=15&a,s=a>>4;if(0==r){if(s<15)break;i+=16}else{i+=s;var n=V[i];e.blockData[t+n]=m(r),i++}}};let I,T=0;for(var $,_,M,P,j,U,N,E,X,D,B=1===x?e[0].blocksPerLine*e[0].blocksPerColumn:o*i.mcusPerColumn;T<=B;){const i=t?Math.min(B-T,t):B;if(0<i){for(A=0;A<x;A++)e[A].pred=0;if(y=0,1===x)for(S=e[0],F=0;F<i;F++)E=S,X=O,D=T,v=D/E.blocksPerLine|0,D%=E.blocksPerLine,X(E,K(E,v,D)),T++;else for(F=0;F<i;F++){for(A=0;A<x;A++)for($=(S=e[A]).h,_=S.v,k=0;k<_;k++)for(C=0;C<$;C++)M=S,P=T,j=k,U=C,N=void 0,N=P%o,v=(P/o|0)*M.v+j,P=N*M.h+U,O(M,K(M,v,P));T++}}if(d=0,!(I=Y(a,r)))break;if(I.invalid){const a=0<i?"unexpected":"excessive";(0,H.warn)(`decodeScan - ${a} MCU data, current marker is: `+I.invalid),r=I.offset}if(!(65488<=I.marker&&I.marker<=65495))break;r+=2}return r-L}function r(e,w){var t=w.blocksPerLine,a=w.blocksPerColumn,v=new Int16Array(64);for(let y=0;y<a;y++)for(let e=0;e<t;e++){x=void 0;S=void 0;A=void 0;k=void 0;C=void 0;var x=w;var S=K(w,y,e);var A=v;var k=x.quantizationTable,C=x.blockData;let t,a,r,i,n,s,o,l,c,h,u,d,f,g,p,m,b;if(!k)throw new z("missing required Quantization Table.");for(let e=0;e<64;e+=8)c=C[S+e],h=C[S+e+1],u=C[S+e+2],d=C[S+e+3],f=C[S+e+4],g=C[S+e+5],p=C[S+e+6],m=C[S+e+7],c*=k[e],0!=(h|u|d|f|g|p|m)?(h*=k[e+1],u*=k[e+2],d*=k[e+3],f*=k[e+4],g*=k[e+5],p*=k[e+6],m*=k[e+7],t=N*c+128>>8,a=N*f+128>>8,r=u,i=p,n=E*(h-m)+128>>8,l=E*(h+m)+128>>8,s=d<<4,o=g<<4,t=t+a+1>>1,a=t-a,b=r*P+i*M+128>>8,r=r*M-i*P+128>>8,i=b,n=n+o+1>>1,o=n-o,l=l+s+1>>1,s=l-s,t=t+i+1>>1,i=t-i,a=a+r+1>>1,r=a-r,b=n*T+l*I+2048>>12,n=n*I-l*T+2048>>12,l=b,b=s*O+o*F+2048>>12,s=s*F-o*O+2048>>12,o=b,A[e]=t+l,A[e+7]=t-l,A[e+1]=a+o,A[e+6]=a-o,A[e+2]=r+s,A[e+5]=r-s,A[e+3]=i+n,A[e+4]=i-n):(b=N*c+512>>10,A[e]=b,A[e+1]=b,A[e+2]=b,A[e+3]=b,A[e+4]=b,A[e+5]=b,A[e+6]=b,A[e+7]=b);for(let e=0;e<8;++e)c=A[e],h=A[e+8],u=A[e+16],d=A[e+24],f=A[e+32],g=A[e+40],p=A[e+48],m=A[e+56],0!=(h|u|d|f|g|p|m)?(t=N*c+2048>>12,a=N*f+2048>>12,r=u,i=p,n=E*(h-m)+2048>>12,l=E*(h+m)+2048>>12,s=d,o=g,t=4112+(t+a+1>>1),a=t-a,b=r*P+i*M+2048>>12,r=r*M-i*P+2048>>12,i=b,n=n+o+1>>1,o=n-o,l=l+s+1>>1,s=l-s,t=t+i+1>>1,i=t-i,a=a+r+1>>1,r=a-r,b=n*T+l*I+2048>>12,n=n*I-l*T+2048>>12,l=b,b=s*O+o*F+2048>>12,s=s*F-o*O+2048>>12,o=b,c=t+l,m=t-l,h=a+o,p=a-o,u=r+s,g=r-s,d=i+n,f=i-n,c<16?c=0:4080<=c?c=255:c>>=4,h<16?h=0:4080<=h?h=255:h>>=4,u<16?u=0:4080<=u?u=255:u>>=4,d<16?d=0:4080<=d?d=255:d>>=4,f<16?f=0:4080<=f?f=255:f>>=4,g<16?g=0:4080<=g?g=255:g>>=4,p<16?p=0:4080<=p?p=255:p>>=4,m<16?m=0:4080<=m?m=255:m>>=4,C[S+e]=c,C[S+e+8]=h,C[S+e+16]=u,C[S+e+24]=d,C[S+e+32]=f,C[S+e+40]=g,C[S+e+48]=p,C[S+e+56]=m):(b=(b=N*c+8192>>14)<-2040?0:2024<=b?255:b+2056>>4,C[S+e]=b,C[S+e+8]=b,C[S+e+16]=b,C[S+e+24]=b,C[S+e+32]=b,C[S+e+40]=b,C[S+e+48]=b,C[S+e+56]=b)}return w.blockData}function Y(e,t,a=t){var r=e.length-1;let i=a<t?a:t;if(r<=t)return null;a=(0,q.readUint16)(e,t);if(65472<=a&&a<=65534)return{invalid:null,marker:a,offset:t};let n=(0,q.readUint16)(e,i);for(;!(65472<=n&&n<=65534);){if(++i>=r)return null;n=(0,q.readUint16)(e,i)}return{invalid:a.toString(16),marker:n,offset:i}}t.JpegImage=class{constructor({decodeTransform:e=null,colorTransform:t=-1}={}){this._decodeTransform=e,this._colorTransform=t}parse(s,{dnlScanLines:o=null}={}){function l(){var e=(0,q.readUint16)(s,d);let t=(d+=2)+e-2;e=Y(s,t,d),e?.invalid&&((0,H.warn)("readDataBlock - incorrect length, current marker is: "+e.invalid),t=e.offset),e=s.subarray(d,t);return d+=e.length,e}function c(e){var t=Math.ceil(e.samplesPerLine/8/e.maxH),a=Math.ceil(e.scanLines/8/e.maxV);for(const s of e.components){var r=Math.ceil(Math.ceil(e.samplesPerLine/8)*s.h/e.maxH),i=Math.ceil(Math.ceil(e.scanLines/8)*s.v/e.maxV),n=t*s.h,n=a*s.v*64*(1+n);s.blockData=new Int16Array(n),s.blocksPerLine=r,s.blocksPerColumn=i}e.mcusPerLine=t,e.mcusPerColumn=a}let h,u,d=0,f=null,g=null,p=0;var m=[],b=[],y=[];let w=(0,q.readUint16)(s,d);if(d+=2,65496!==w)throw new z("SOI not found");w=(0,q.readUint16)(s,d),d+=2;e:for(;65497!==w;){let r,i,n;switch(w){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:var v=l();65504===w&&74===v[0]&&70===v[1]&&73===v[2]&&70===v[3]&&0===v[4]&&(f={version:{major:v[5],minor:v[6]},densityUnits:v[7],xDensity:v[8]<<8|v[9],yDensity:v[10]<<8|v[11],thumbWidth:v[12],thumbHeight:v[13],thumbData:v.subarray(14,14+3*v[12]*v[13])}),65518===w&&65===v[0]&&100===v[1]&&111===v[2]&&98===v[3]&&101===v[4]&&(g={version:v[5]<<8|v[6],flags0:v[7]<<8|v[8],flags1:v[9]<<8|v[10],transformCode:v[11]});break;case 65499:var x=(0,q.readUint16)(s,d)+(d+=2)-2;let e;for(;d<x;){const o=s[d++],l=new Uint16Array(64);if(o>>4==0)for(i=0;i<64;i++)e=V[i],l[e]=s[d++];else{if(o>>4!=1)throw new z("DQT - invalid table spec");for(i=0;i<64;i++)e=V[i],l[e]=(0,q.readUint16)(s,d),d+=2}m[15&o]=l}break;case 65472:case 65473:case 65474:if(h)throw new z("Only single frame JPEGs supported");d+=2,(h={}).extended=65473===w,h.progressive=65474===w,h.precision=s[d++];var v=(0,q.readUint16)(s,d),S=(d+=2,h.scanLines=o||v,h.samplesPerLine=(0,q.readUint16)(s,d),d+=2,h.components=[],h.componentIds={},s[d++]);let t=0,a=0;for(r=0;r<S;r++){const o=s[d],l=s[d+1]>>4,H=15&s[d+1],c=(t<l&&(t=l),a<H&&(a=H),s[d+2]);n=h.components.push({h:l,v:H,quantizationId:c,quantizationTable:null}),h.componentIds[o]=n-1,d+=3}h.maxH=t,h.maxV=a,c(h);break;case 65476:var A=(0,q.readUint16)(s,d);for(d+=2,r=2;r<A;){const o=s[d++],l=new Uint8Array(16);let e=0;for(i=0;i<16;i++,d++)e+=l[i]=s[d];const c=new Uint8Array(e);for(i=0;i<e;i++,d++)c[i]=s[d];r+=17+e,(o>>4==0?y:b)[15&o]=function(e,t){let a,r,i=0,n=16;for(;0<n&&!e[n-1];)n--;var s=[{children:[],index:0}];let o,l=s[0];for(a=0;a<n;a++){for(r=0;r<e[a];r++){for((l=s.pop()).children[l.index]=t[i];0<l.index;)l=s.pop();for(l.index++,s.push(l);s.length<=a;)s.push(o={children:[],index:0}),l.children[l.index]=o.children,l=o;i++}a+1<n&&(s.push(o={children:[],index:0}),l.children[l.index]=o.children,l=o)}return s[0].children}(l,c)}break;case 65501:d+=2,u=(0,q.readUint16)(s,d),d+=2;break;case 65498:var k=1==++p&&!o,C=(d+=2,s[d++]),F=[];for(r=0;r<C;r++){const o=s[d++],l=h.componentIds[o],H=h.components[l],c=(H.index=o,s[d++]);H.huffmanTableDC=y[c>>4],H.huffmanTableAC=b[15&c],F.push(H)}var O=s[d++],I=s[d++],T=s[d++];try{const o=D(s,d,h,F,u,O,I,T>>4,15&T,k);d+=o}catch(o){if(o instanceof G)return(0,H.warn)(o.message+" -- attempting to re-parse the JPEG image."),this.parse(s,{dnlScanLines:o.scanLines});if(o instanceof W){(0,H.warn)(o.message+" -- ignoring the rest of the image data.");break e}throw o}break;case 65500:d+=4;break;case 65535:255!==s[d]&&d--;break;default:O=Y(s,d-2,d-3);if(O?.invalid){(0,H.warn)("JpegImage.parse - unexpected data, current marker is: "+O.invalid),d=O.offset;break}if(!O||d>=s.length-1){(0,H.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new z("JpegImage.parse - unknown marker: "+w.toString(16))}w=(0,q.readUint16)(s,d),d+=2}this.width=h.samplesPerLine,this.height=h.scanLines,this.jfif=f,this.adobe=g,this.components=[];for(const s of h.components){const o=m[s.quantizationId];o&&(s.quantizationTable=o),this.components.push({index:s.index,output:r(0,s),scaleX:s.h/h.maxH,scaleY:s.v/h.maxV,blocksPerLine:s.blocksPerLine,blocksPerColumn:s.blocksPerColumn})}this.numComponents=this.components.length}_getLinearizedBlockData(e,t,a=!1){var r=this.width/e,i=this.height/t;let n,s,o,l,c,h,u,d,f,g,p,m=0;var b=this.components.length,y=e*t*b,w=new Uint8ClampedArray(y),v=new Uint32Array(e);let x;for(u=0;u<b;u++){if(s=(n=this.components[u]).scaleX*r,o=n.scaleY*i,m=u,p=n.output,l=n.blocksPerLine+1<<3,s!==x){for(c=0;c<e;c++)d=0|c*s,v[c]=(4294967288&d)<<3|7&d;x=s}for(h=0;h<t;h++)for(g=l*(4294967288&(d=0|h*o))|(7&d)<<3,c=0;c<e;c++)w[m]=p[g+v[c]],m+=b}let S=this._decodeTransform;if(S=a||4!==b?S:S||new Int32Array([-256,255,-256,255,-256,255,-256,255]))for(u=0;u<y;)for(d=0,f=0;d<b;d++,u++,f+=2)w[u]=(w[u]*S[f]>>8)+S[f+1];return w}get _isColorConversionNeeded(){return this.adobe?!!this.adobe.transformCode:3===this.numComponents?0!==this._colorTransform&&(82!==this.components[0].index||71!==this.components[1].index||66!==this.components[2].index):1===this._colorTransform}_convertYccToRgb(a){var r,i,n;for(let e=0,t=a.length;e<t;e+=3)r=a[e],i=a[e+1],n=a[e+2],a[e]=r-179.456+1.402*n,a[e+1]=r+135.459-.344*i-.714*n,a[e+2]=r-226.816+1.772*i;return a}_convertYccToRgba(r,i){for(let e=0,t=0,a=r.length;e<a;e+=3,t+=4){var n=r[e],s=r[e+1],o=r[e+2];i[t]=n-179.456+1.402*o,i[t+1]=n+135.459-.344*s-.714*o,i[t+2]=n-226.816+1.772*s,i[t+3]=255}return i}_convertYcckToRgb(a){let r,i,n,s,o=0;for(let e=0,t=a.length;e<t;e+=4)r=a[e],i=a[e+1],n=a[e+2],s=a[e+3],a[o++]=i*(-660635669420364e-19*i+.000437130475926232*n-54080610064599e-18*r+.00048449797120281*s-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*r-.00477271405408747*s+1.53380253221734)+r*(.000961250184130688*r-.00266257332283933*s+.48357088451265)+s*(-.000336197177618394*s+.484791561490776),a[o++]=107.268039397724+i*(219927104525741e-19*i-.000640992018297945*n+.000659397001245577*r+.000426105652938837*s-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*r+.000770482631801132*s-.151051492775562)+r*(.00126935368114843*r-.00265090189010898*s+.25802910206845)+s*(-.000318913117588328*s-.213742400323665),a[o++]=i*(-.000570115196973677*i-263409051004589e-19*n+.0020741088115012*r-.00288260236853442*s+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*r+.000560833691242812*s-.195152027534049)+r*(.00174418132927582*r-.00255243321439347*s+.116935020465145)+s*(-.000343531996510555*s+.24165260232407);return a.subarray(0,o)}_convertYcckToRgba(a){for(let e=0,t=a.length;e<t;e+=4){var r=a[e],i=a[e+1],n=a[e+2],s=a[e+3];a[e]=i*(-660635669420364e-19*i+.000437130475926232*n-54080610064599e-18*r+.00048449797120281*s-.154362151871126)-122.67195406894+n*(-.000957964378445773*n+.000817076911346625*r-.00477271405408747*s+1.53380253221734)+r*(.000961250184130688*r-.00266257332283933*s+.48357088451265)+s*(-.000336197177618394*s+.484791561490776),a[e+1]=107.268039397724+i*(219927104525741e-19*i-.000640992018297945*n+.000659397001245577*r+.000426105652938837*s-.176491792462875)+n*(-.000778269941513683*n+.00130872261408275*r+.000770482631801132*s-.151051492775562)+r*(.00126935368114843*r-.00265090189010898*s+.25802910206845)+s*(-.000318913117588328*s-.213742400323665),a[e+2]=i*(-.000570115196973677*i-263409051004589e-19*n+.0020741088115012*r-.00288260236853442*s+.814272968359295)-20.810012546947+n*(-153496057440975e-19*n-.000132689043961446*r+.000560833691242812*s-.195152027534049)+r*(.00174418132927582*r-.00255243321439347*s+.116935020465145)+s*(-.000343531996510555*s+.24165260232407),a[e+3]=255}return a}_convertYcckToCmyk(a){var r,i,n;for(let e=0,t=a.length;e<t;e+=4)r=a[e],i=a[e+1],n=a[e+2],a[e]=434.456-r-1.402*n,a[e+1]=119.541-r+.344*i+.714*n,a[e+2]=481.816-r-1.772*i;return a}_convertCmykToRgb(a){let r,i,n,s,o=0;for(let e=0,t=a.length;e<t;e+=4)r=a[e],i=a[e+1],n=a[e+2],s=a[e+3],a[o++]=255+r*(-6747147073602441e-20*r+.0008379262121013727*i+.0002894718188643294*n+.003264231057537806*s-1.1185611867203937)+i*(26374107616089405e-21*i-8626949158638572e-20*n-.0002748769067499491*s-.02155688794978967)+n*(-3878099212869363e-20*n-.0003267808279485286*s+.0686742238595345)-s*(.0003361971776183937*s+.7430659151342254),a[o++]=255+r*(.00013596372813588848*r+.000924537132573585*i+.00010567359618683593*n+.0004791864687436512*s-.3109689587515875)+i*(-.00023545346108370344*i+.0002702845253534714*n+.0020200308977307156*s-.7488052167015494)+n*(6834815998235662e-20*n+.00015168452363460973*s-.09751927774728933)-s*(.0003189131175883281*s+.7364883807733168),a[o++]=255+r*(13598650411385307e-21*r+.00012423956175490851*i+.0004751985097583589*n-36729317476630422e-22*s-.05562186980264034)+i*(.00016141380598724676*i+.0009692239130725186*n+.0007782692450036253*s-.44015232367526463)+n*(5.068882914068769e-7*n+.0017778369011375071*s-.7591454649749609)-s*(.0003435319965105553*s+.7063770186160144);return a.subarray(0,o)}_convertCmykToRgba(a){for(let e=0,t=a.length;e<t;e+=4){var r=a[e],i=a[e+1],n=a[e+2],s=a[e+3];a[e]=255+r*(-6747147073602441e-20*r+.0008379262121013727*i+.0002894718188643294*n+.003264231057537806*s-1.1185611867203937)+i*(26374107616089405e-21*i-8626949158638572e-20*n-.0002748769067499491*s-.02155688794978967)+n*(-3878099212869363e-20*n-.0003267808279485286*s+.0686742238595345)-s*(.0003361971776183937*s+.7430659151342254),a[e+1]=255+r*(.00013596372813588848*r+.000924537132573585*i+.00010567359618683593*n+.0004791864687436512*s-.3109689587515875)+i*(-.00023545346108370344*i+.0002702845253534714*n+.0020200308977307156*s-.7488052167015494)+n*(6834815998235662e-20*n+.00015168452363460973*s-.09751927774728933)-s*(.0003189131175883281*s+.7364883807733168),a[e+2]=255+r*(13598650411385307e-21*r+.00012423956175490851*i+.0004751985097583589*n-36729317476630422e-22*s-.05562186980264034)+i*(.00016141380598724676*i+.0009692239130725186*n+.0007782692450036253*s-.44015232367526463)+n*(5.068882914068769e-7*n+.0017778369011375071*s-.7591454649749609)-s*(.0003435319965105553*s+.7063770186160144),a[e+3]=255}return a}getData({width:t,height:a,forceRGBA:r=!1,forceRGB:e=!1,isSourcePDF:i=!1}){if(4<this.numComponents)throw new z("Unsupported color mode");i=this._getLinearizedBlockData(t,a,i);if(1===this.numComponents&&(r||e)){const t=i.length*(r?4:3),a=new Uint8ClampedArray(t);let e=0;if(r)(0,n.grayToRGBA)(i,new Uint32Array(a.buffer));else for(const t of i)a[e++]=t,a[e++]=t,a[e++]=t;return a}if(3===this.numComponents&&this._isColorConversionNeeded){if(r){const t=new Uint8ClampedArray(i.length/3*4);return this._convertYccToRgba(i,t)}return this._convertYccToRgb(i)}if(4===this.numComponents){if(this._isColorConversionNeeded)return r?this._convertYcckToRgba(i):e?this._convertYcckToRgb(i):this._convertYcckToCmyk(i);if(r)return this._convertCmykToRgba(i);if(e)return this._convertCmykToRgb(i)}return i}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.convertBlackAndWhiteToRGBA=l,t.convertToRGBA=function(e){switch(e.kind){case g.ImageKind.GRAYSCALE_1BPP:return l(e);case g.ImageKind.RGB_24BPP:{var[{src:r,srcPos:t=0,dest:i,destPos:n=0}]=[e];let a=0;var s=r.length>>2,o=new Uint32Array(r.buffer,t,s);if(g.FeatureTest.isLittleEndian){for(;a<s-2;a+=3,n+=4){const r=o[a],t=o[a+1],g=o[a+2];i[n]=4278190080|r,i[n+1]=r>>>24|t<<8|4278190080,i[n+2]=t>>>16|g<<16|4278190080,i[n+3]=g>>>8|4278190080}for(let e=4*a,t=r.length;e<t;e+=3)i[n++]=r[e]|r[e+1]<<8|r[e+2]<<16|4278190080}else{for(;a<s-2;a+=3,n+=4){const r=o[a],t=o[a+1],g=o[a+2];i[n]=255|r,i[n+1]=r<<24|t>>>8|255,i[n+2]=t<<16|g>>>16|255,i[n+3]=g<<8|255}for(let e=4*a,t=r.length;e<t;e+=3)i[n++]=r[e]<<24|r[e+1]<<16|r[e+2]<<8|255}return{srcPos:t,destPos:n};return}}return null},t.grayToRGBA=function(a,r){if(g.FeatureTest.isLittleEndian)for(let e=0,t=a.length;e<t;e++)r[e]=65793*a[e]|4278190080;else for(let e=0,t=a.length;e<t;e++)r[e]=16843008*a[e]|255};var g=a(2);function l({src:t,srcPos:a=0,dest:r,width:e,height:i,nonBlackColor:n=4294967295,inverseDecode:s=!1}){var o=g.FeatureTest.isLittleEndian?4278190080:255,[l,c]=s?[n,o]:[o,n],h=e>>3,u=7&e,d=t.length;r=new Uint32Array(r.buffer);let f=0;for(let e=0;e<i;e++){for(const g=a+h;a<g;a++){const g=a<d?t[a]:255;r[f++]=128&g?c:l,r[f++]=64&g?c:l,r[f++]=32&g?c:l,r[f++]=16&g?c:l,r[f++]=8&g?c:l,r[f++]=4&g?c:l,r[f++]=2&g?c:l,r[f++]=1&g?c:l}if(0!=u){const g=a<d?t[a++]:255;for(let e=0;e<u;e++)r[f++]=g&1<<7-e?c:l}}return{srcPos:a,destPos:f}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JpxStream=void 0;var r=a(18),g=a(30),i=a(2);class n extends r.DecodeStream{constructor(e,t,a){super(t),this.stream=e,this.dict=e.dict,this.maybeLength=t,this.params=a}get bytes(){return(0,i.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}readBlock(){if(!this.eof){const n=new g.JpxImage,s=(n.parse(this.bytes),n.width),e=n.height,o=n.componentsCount,l=n.tiles.length;if(1===l)this.buffer=n.tiles[0].items;else{const g=new Uint8ClampedArray(s*e*o);for(let e=0;e<l;e++){const l=n.tiles[e],c=l.width,h=l.height,u=l.left,d=l.top,f=l.items;let t=0,a=(s*d+u)*o;var r=s*o,i=c*o;for(let e=0;e<h;e++){const n=f.subarray(t,t+i);g.set(n,a),t+=i,a+=r}}this.buffer=g}this.bufferLength=this.buffer.length,this.eof=!0}}}t.JpxStream=n},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JpxImage=void 0;var B=a(2),R=a(3),z=a(25);class L extends B.BaseException{constructor(e){super("JPX error: "+e,"JpxError")}}const G={LL:0,LH:1,HL:1,HH:2};function m(e,t,a){var r=a.xcb_,a=a.ycb_,i=1<<r,n=1<<a,s=t.tbx0>>r,o=t.tby0>>a,l=t.tbx1+i-1>>r,c=t.tby1+n-1>>a,h=t.resolution.precinctParameters,u=[],d=[];let f,g,p,m;for(g=o;g<c;g++)for(f=s;f<l;f++)if((p={cbx:f,cby:g,tbx0:i*f,tby0:n*g,tbx1:i*(f+1),tby1:n*(g+1)}).tbx0_=Math.max(t.tbx0,p.tbx0),p.tby0_=Math.max(t.tby0,p.tby0),p.tbx1_=Math.min(t.tbx1,p.tbx1),p.tby1_=Math.min(t.tby1,p.tby1),m=Math.floor((p.tbx0_-t.tbx0)/h.precinctWidthInSubband)+Math.floor((p.tby0_-t.tby0)/h.precinctHeightInSubband)*h.numprecinctswide,p.precinctNumber=m,p.subbandType=t.type,p.Lblock=3,!(p.tbx1_<=p.tbx0_||p.tby1_<=p.tby0_)){u.push(p);let e=d[m];void 0!==e?(f<e.cbxMin?e.cbxMin=f:f>e.cbxMax&&(e.cbxMax=f),g<e.cbyMin?e.cbxMin=g:g>e.cbyMax&&(e.cbyMax=g)):d[m]=e={cbxMin:f,cbyMin:g,cbxMax:f,cbyMax:g},p.precinct=e}t.codeblockParameters={codeblockWidth:r,codeblockHeight:a,numcodeblockwide:l-s+1,numcodeblockhigh:c-o+1},t.codeblocks=u,t.precincts=d}function p(e,a,r){const i=[],n=e.subbands;for(let e=0,t=n.length;e<t;e++){const r=n[e].codeblocks;for(let e=0,t=r.length;e<t;e++){const n=r[e];n.precinctNumber===a&&i.push(n)}}return{layerNumber:r,codeblocks:i}}function b(e){const t=e.SIZ,a=e.currentTile.index,i=e.tiles[a],n=i.codingStyleDefaultParameters.layersCount,s=t.Csiz;let o=0;for(let e=0;e<s;e++)o=Math.max(o,i.components[e].codingStyleParameters.decompositionLevelsCount);let l=0,c=0,h=0,u=0;this.nextPacket=function(){for(;l<n;l++){for(;c<=o;c++){for(;h<s;h++){var e=i.components[h];if(!(c>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[c],a=t.precinctParameters.numprecincts;u<a;){var r=p(t,u,l);return u++,r}u=0}}h=0}c=0}throw new L("Out of packets")}}function y(e){const t=e.SIZ,a=e.currentTile.index,i=e.tiles[a],n=i.codingStyleDefaultParameters.layersCount,s=t.Csiz;let o=0;for(let e=0;e<s;e++)o=Math.max(o,i.components[e].codingStyleParameters.decompositionLevelsCount);let l=0,c=0,h=0,u=0;this.nextPacket=function(){for(;l<=o;l++){for(;c<n;c++){for(;h<s;h++){var e=i.components[h];if(!(l>e.codingStyleParameters.decompositionLevelsCount)){for(var t=e.resolutions[l],a=t.precinctParameters.numprecincts;u<a;){var r=p(t,u,c);return u++,r}u=0}}h=0}c=0}throw new L("Out of packets")}}function w(e){const t=e.SIZ,a=e.currentTile.index,r=e.tiles[a],i=r.codingStyleDefaultParameters.layersCount,n=t.Csiz;let s,o,l,c,h=0;for(l=0;l<n;l++){const e=r.components[l];h=Math.max(h,e.codingStyleParameters.decompositionLevelsCount)}const u=new Int32Array(h+1);for(o=0;o<=h;++o){let e=0;for(l=0;l<n;++l){const t=r.components[l].resolutions;o<t.length&&(e=Math.max(e,t[o].precinctParameters.numprecincts))}u[o]=e}s=0,o=0,l=0,c=0,this.nextPacket=function(){for(;o<=h;o++){for(;c<u[o];c++){for(;l<n;l++){var e=r.components[l];if(!(o>e.codingStyleParameters.decompositionLevelsCount)){var t=e.resolutions[o],e=t.precinctParameters.numprecincts;if(!(c>=e)){for(;s<i;){var a=p(t,c,s);return s++,a}s=0}}}l=0}c=0}throw new L("Out of packets")}}function v(e){const t=e.SIZ,a=e.currentTile.index,n=e.tiles[a],s=n.codingStyleDefaultParameters.layersCount,o=t.Csiz,l=r(n),c=l;let h=0,u=0,d=0,f=0,g=0;this.nextPacket=function(){for(;g<c.maxNumHigh;g++){for(;f<c.maxNumWide;f++){for(;d<o;d++){for(var e=n.components[d],t=e.codingStyleParameters.decompositionLevelsCount;u<=t;u++){const r=e.resolutions[u],i=l.components[d].resolutions[u],n=S(f,g,i,c,r);if(null!==n){for(;h<s;){var a=p(r,n,h);return h++,a}h=0}}u=0}d=0}f=0}throw new L("Out of packets")}}function x(e){const t=e.SIZ,a=e.currentTile.index,n=e.tiles[a],s=n.codingStyleDefaultParameters.layersCount,o=t.Csiz,l=r(n);let c=0,h=0,u=0,d=0,f=0;this.nextPacket=function(){for(;u<o;++u){for(var e=n.components[u],t=l.components[u],a=e.codingStyleParameters.decompositionLevelsCount;f<t.maxNumHigh;f++){for(;d<t.maxNumWide;d++){for(;h<=a;h++){const i=e.resolutions[h],n=t.resolutions[h],o=S(d,f,n,t,i);if(null!==o){for(;c<s;){var r=p(i,o,c);return c++,r}c=0}}h=0}d=0}f=0}throw new L("Out of packets")}}function S(e,t,a,r,i){e*=r.minWidth,t*=r.minHeight;return e%a.width!=0||t%a.height!=0?null:(r=t/a.width*i.precinctParameters.numprecinctswide,e/a.height+r)}function r(s){const o=s.components.length;let l=Number.MAX_VALUE,c=Number.MAX_VALUE,h=0,u=0;var d=new Array(o);for(let e=0;e<o;e++){const o=s.components[e],f=o.codingStyleParameters.decompositionLevelsCount,g=new Array(f+1);let t=Number.MAX_VALUE,a=Number.MAX_VALUE,r=0,i=0,n=1;for(let e=f;0<=e;--e){const l=o.resolutions[e],c=n*l.precinctParameters.precinctWidth,h=n*l.precinctParameters.precinctHeight;t=Math.min(t,c),a=Math.min(a,h),r=Math.max(r,l.precinctParameters.numprecinctswide),i=Math.max(i,l.precinctParameters.numprecinctshigh),g[e]={width:c,height:h},n<<=1}l=Math.min(l,t),c=Math.min(c,a),h=Math.max(h,r),u=Math.max(u,i),d[e]={resolutions:g,minWidth:t,minHeight:a,maxNumWide:r,maxNumHigh:i}}return{components:d,minWidth:l,minHeight:c,maxNumWide:h,maxNumHigh:u}}function $(e){const a=e.SIZ,r=e.currentTile.index,i=e.tiles[r],n=a.Csiz;for(let e=0;e<n;e++){const a=i.components[e],r=a.codingStyleParameters.decompositionLevelsCount,n=[],f=[];for(let t=0;t<=r;t++){h=a,u=t,d=void 0,h=h.codingStyleParameters,d={},h.entropyCoderWithCustomPrecincts?(d.PPx=h.precinctsSizes[u].PPx,d.PPy=h.precinctsSizes[u].PPy):(d.PPx=15,d.PPy=15),d.xcb_=0<u?Math.min(h.xcb,d.PPx-1):Math.min(h.xcb,d.PPx),d.ycb_=0<u?Math.min(h.ycb,d.PPy-1):Math.min(h.ycb,d.PPy);const i=d,L={},g=1<<r-t;let e;if(L.trx0=Math.ceil(a.tcx0/g),L.try0=Math.ceil(a.tcy0/g),L.trx1=Math.ceil(a.tcx1/g),L.try1=Math.ceil(a.tcy1/g),L.resLevel=t,u=L,h=i,c=o=l=o=s=d=void 0,d=1<<h.PPx,s=1<<h.PPy,o=0===u.resLevel,l=1<<h.PPx+(o?0:-1),h=1<<h.PPy+(o?0:-1),o=u.trx1>u.trx0?Math.ceil(u.trx1/d)-Math.floor(u.trx0/d):0,c=u.try1>u.try0?Math.ceil(u.try1/s)-Math.floor(u.try0/s):0,u.precinctParameters={precinctWidth:d,precinctHeight:s,numprecinctswide:o,numprecinctshigh:c,numprecincts:o*c,precinctWidthInSubband:l,precinctHeightInSubband:h},n.push(L),0===t)(e={}).type="LL",e.tbx0=Math.ceil(a.tcx0/g),e.tby0=Math.ceil(a.tcy0/g),e.tbx1=Math.ceil(a.tcx1/g),e.tby1=Math.ceil(a.tcy1/g),e.resolution=L,m(0,e,i),f.push(e),L.subbands=[e];else{const n=1<<r-t+1,p=[];(e={type:"HL"}).tbx0=Math.ceil(a.tcx0/n-.5),e.tby0=Math.ceil(a.tcy0/n),e.tbx1=Math.ceil(a.tcx1/n-.5),e.tby1=Math.ceil(a.tcy1/n),e.resolution=L,m(0,e,i),f.push(e),p.push(e),(e={type:"LH"}).tbx0=Math.ceil(a.tcx0/n),e.tby0=Math.ceil(a.tcy0/n-.5),e.tbx1=Math.ceil(a.tcx1/n),e.tby1=Math.ceil(a.tcy1/n-.5),e.resolution=L,m(0,e,i),f.push(e),p.push(e),(e={type:"HH"}).tbx0=Math.ceil(a.tcx0/n-.5),e.tby0=Math.ceil(a.tcy0/n-.5),e.tbx1=Math.ceil(a.tcx1/n-.5),e.tby1=Math.ceil(a.tcy1/n-.5),e.resolution=L,m(0,e,i),f.push(e),p.push(e),L.subbands=p}}a.resolutions=n,a.subbands=f}var s,o,l,c,h,u,d;const f=i.codingStyleDefaultParameters.progressionOrder;switch(f){case 0:i.packetsIterator=new b(e);break;case 1:i.packetsIterator=new y(e);break;case 2:i.packetsIterator=new w(e);break;case 3:i.packetsIterator=new v(e);break;case 4:i.packetsIterator=new x(e);break;default:throw new L("Unsupported progression order "+f)}}function _(o,l,t,c){let h,u=0,a=0,d=!1;function f(e){for(;a<e;){const e=l[t+u];u++,d?(h=h<<7|e,a+=7,d=!1):(h=h<<8|e,a+=8),255===e&&(d=!0)}return a-=e,h>>>a&(1<<e)-1}function e(e){return 255===l[t+u-1]&&l[t+u]===e?(r(1),!0):255===l[t+u]&&l[t+u+1]===e&&(r(2),!0)}function r(e){u+=e}function i(){a=0,d&&(u++,d=!1)}const n=o.currentTile.index,g=o.tiles[n],p=o.COD.sopMarkerUsed,m=o.COD.ephMarkerUsed,s=g.packetsIterator;for(;u<c;){i(),p&&e(145)&&r(4);const o=s.nextPacket();if(f(1)){const c=o.layerNumber,h=[];let s;for(let e=0,t=o.codeblocks.length;e<t;e++){let t=(s=o.codeblocks[e]).precinct;const u=s.cbx-t.cbxMin,d=s.cby-t.cbyMin;let a,r,i=!1,n=!1;if(void 0!==s.included)i=!!f(1);else{let e;if(void 0!==(t=s.precinct).inclusionTree)e=t.inclusionTree;else{const l=t.cbxMax-t.cbxMin+1,R=t.cbyMax-t.cbyMin+1;e=new k(l,R,c),r=new A(l,R),t.inclusionTree=e,t.zeroBitPlanesTree=r;for(let e=0;e<c;e++)if(0!==f(1))throw new L("Invalid tag tree")}if(e.reset(u,d,c))for(;;){if(!f(1)){e.incrementValue(c);break}if(a=!e.nextLevel()){s.included=!0,i=n=!0;break}}}if(i){if(n){for((r=t.zeroBitPlanesTree).reset(u,d);;)if(f(1)){if(a=!r.nextLevel())break}else r.incrementValue();s.zeroBitPlanes=r.value}b=void 0;const g=0===f(1)?1:0===f(1)?2:(b=f(2))<3?b+3:(b=f(5))<31?b+6:(b=f(7))+37;for(;f(1);)s.Lblock++;const p=(0,R.log2)(g),m=f((g<1<<p?p-1:p)+s.Lblock);h.push({codeblock:s,codingpasses:g,dataLength:m})}}for(i(),m&&e(146);0<h.length;){const o=h.shift();void 0===(s=o.codeblock).data&&(s.data=[]),s.data.push({data:l,start:t+u,end:t+u+o.dataLength,codingpasses:o.codingpasses}),u+=o.dataLength}}}var b;u}function j(a,i,n){const e=i.components[n],t=e.codingStyleParameters,s=e.quantizationParameters,$=t.decompositionLevelsCount,o=s.SPqcds,_=s.scalarExpounded,j=s.guardBits,U=t.segmentationSymbolUsed,X=t.resetContextProbabilities,H=a.components[n].precision,l=t.reversibleTransformation,c=new(l?K:V),h=[];let u=0;for(let r=0;r<=$;r++){const i=e.resolutions[r],n=i.trx1-i.trx0,t=i.try1-i.try0,s=new Float32Array(n*t);for(let a=0,e=i.subbands.length;a<e;a++){let e,t;_?(e=o[u].mu,t=o[u].epsilon,u++):(e=o[0].mu,t=o[0].epsilon+(0<r?1-r:0));const c=i.subbands[a],h=G[c.type];L=R=B=D=E=N=P=M=T=I=O=F=C=k=A=S=x=v=w=y=b=m=p=g=f=d=void 0;var d=s,f=n,g=c,p=l?1:2**(H+h-t)*(1+e/2048),m=j+t-1,b=l,y=U,w=X,v=g.tbx0,x=g.tby0,S=g.tbx1-g.tbx0,A=g.codeblocks,k="H"===g.type.charAt(0)?1:0,C="H"===g.type.charAt(1)?f:0;for(let e=0,t=A.length;e<t;++e){var F=A[e],O=F.tbx1_-F.tbx0_,I=F.tby1_-F.tby0_;if(0!=O&&0!=I&&void 0!==F.data){var T=new W(O,I,F.subbandType,F.zeroBitPlanes,m);let e=2;var M=F.data;let t,a,r,i=0,n=0;for(t=0,a=M.length;t<a;t++)r=M[t],i+=r.end-r.start,n+=r.codingpasses;var P=new Uint8Array(i);let s=0;for(t=0,a=M.length;t<a;t++){const d=(r=M[t]).data.subarray(r.start,r.end);P.set(d,s),s+=d.length}var N=new z.ArithmeticDecoder(P,0,i);for(T.setDecoder(N),t=0;t<n;t++){switch(e){case 0:T.runSignificancePropagationPass();break;case 1:T.runMagnitudeRefinementPass();break;case 2:T.runCleanupPass(),y&&T.checkSegmentationSymbol()}w&&T.reset(),e=(e+1)%3}let o=F.tbx0_-v+(F.tby0_-x)*S;var E=T.coefficentsSign,D=T.coefficentsMagnitude,B=T.bitsDecoded,R=b?0:.5;let l,c,h;s=0;var L="LL"!==g.type;for(t=0;t<I;t++){const q=2*(o/S|0)*(f-S)+k+C;for(l=0;l<O;l++)0!==(c=D[s])&&(c=(c+R)*p,0!==E[s]&&(c=-c),h=B[s],d[L?q+(o<<1):o]=b&&m<=h?c:c*(1<<m-h)),o++,s++;o+=S-O}}}}h.push({width:n,height:t,items:s})}i=c.calculate(h,e.tcx0,e.tcy0);return{left:e.tcx0,top:e.tcy0,width:i.width,height:i.height,items:i.items}}t.JpxImage=class{constructor(){this.failOnCorruptedImage=!1}parse(i){if(65359===(0,R.readUint16)(i,0))this.parseCodestream(i,0,i.length);else{const l=i.length;let r=0;for(;r<l;){let e=8,t=(0,R.readUint32)(i,r);var n=(0,R.readUint32)(i,r+4);if(r+=e,1===t&&(t=4294967296*(0,R.readUint32)(i,r)+(0,R.readUint32)(i,r+4),r+=8,e+=8),(t=0===t?l-r+e:t)<e)throw new L("Invalid box field size");var s=t-e;let a=!0;switch(n){case 1785737832:a=!1;break;case 1668246642:const l=i[r];if(1===l){const l=(0,R.readUint32)(i,r+3);switch(l){case 16:case 17:case 18:break;default:(0,B.warn)("Unknown colorspace "+l)}}else 2===l&&(0,B.info)("ICC profile not supported");break;case 1785737827:this.parseCodestream(i,r,r+s);break;case 1783636e3:218793738!==(0,R.readUint32)(i,r)&&(0,B.warn)("Invalid JP2 signature");break;case 1783634458:case 1718909296:case 1920099697:case 1919251232:case 1768449138:break;default:var o=String.fromCharCode(n>>24&255,n>>16&255,n>>8&255,255&n);(0,B.warn)(`Unsupported header type ${n} (${o}).`)}a&&(r+=s)}}}parseImageProperties(e){let t=e.getByte();for(;0<=t;)if(65361==(t<<8|(t=e.getByte()))){e.skip(4);const t=e.getInt32()>>>0,r=e.getInt32()>>>0,i=e.getInt32()>>>0,n=e.getInt32()>>>0;e.skip(16);var a=e.getUint16();return this.width=t-i,this.height=r-n,this.componentsCount=a,void(this.bitsPerComponent=8)}throw new L("No size marker found in JPX stream")}parseCodestream(c,h,e){var u,d,f={};let g=!1;try{let l=h;for(;l+1<e;){const h=(0,R.readUint16)(c,l);l+=2;let t,a,r,i,n,s,o=0;switch(h){case 65359:f.mainHeader=!0;break;case 65497:break;case 65361:o=(0,R.readUint16)(c,l);var p={},m=(p.Xsiz=(0,R.readUint32)(c,l+4),p.Ysiz=(0,R.readUint32)(c,l+8),p.XOsiz=(0,R.readUint32)(c,l+12),p.YOsiz=(0,R.readUint32)(c,l+16),p.XTsiz=(0,R.readUint32)(c,l+20),p.YTsiz=(0,R.readUint32)(c,l+24),p.XTOsiz=(0,R.readUint32)(c,l+28),p.YTOsiz=(0,R.readUint32)(c,l+32),(0,R.readUint16)(c,l+36)),b=(p.Csiz=m,[]);t=l+38;for(let e=0;e<m;e++){const h={precision:1+(127&c[t]),isSigned:!!(128&c[t]),XRsiz:c[t+1],YRsiz:c[t+2]};t+=3,u=h,d=p,u.x0=Math.ceil(d.XOsiz/u.XRsiz),u.x1=Math.ceil(d.Xsiz/u.XRsiz),u.y0=Math.ceil(d.YOsiz/u.YRsiz),u.y1=Math.ceil(d.Ysiz/u.YRsiz),u.width=u.x1-u.x0,u.height=u.y1-u.y0,b.push(h)}f.SIZ=p,f.components=b;{y=void 0;w=void 0;var y=f;var w=b;const I=y.SIZ,T=[];let r;const M=Math.ceil((I.Xsiz-I.XTOsiz)/I.XTsiz),P=Math.ceil((I.Ysiz-I.YTOsiz)/I.YTsiz);for(let t=0;t<P;t++)for(let e=0;e<M;e++)(r={}).tx0=Math.max(I.XTOsiz+e*I.XTsiz,I.XOsiz),r.ty0=Math.max(I.YTOsiz+t*I.YTsiz,I.YOsiz),r.tx1=Math.min(I.XTOsiz+(e+1)*I.XTsiz,I.Xsiz),r.ty1=Math.min(I.YTOsiz+(t+1)*I.YTsiz,I.Ysiz),r.width=r.tx1-r.tx0,r.height=r.ty1-r.ty0,r.components=[],T.push(r);y.tiles=T;for(let a=0,e=I.Csiz;a<e;a++){const I=w[a];for(let e=0,t=T.length;e<t;e++){const M={};r=T[e],M.tcx0=Math.ceil(r.tx0/I.XRsiz),M.tcy0=Math.ceil(r.ty0/I.YRsiz),M.tcx1=Math.ceil(r.tx1/I.XRsiz),M.tcy1=Math.ceil(r.ty1/I.YRsiz),M.width=M.tcx1-M.tcx0,M.height=M.tcy1-M.tcy0,r.components[a]=M}}}f.QCC=[],f.COC=[];break;case 65372:o=(0,R.readUint16)(c,l);var v={};switch(t=l+2,31&(a=c[t++])){case 0:i=8,n=!0;break;case 1:i=16,n=!1;break;case 2:i=16,n=!0;break;default:throw new Error("Invalid SQcd value "+a)}for(v.noQuantization=8===i,v.scalarExpounded=n,v.guardBits=a>>5,r=[];t<o+l;){const h={};8===i?(h.epsilon=c[t++]>>3,h.mu=0):(h.epsilon=c[t]>>3,h.mu=(7&c[t])<<8|c[t+1],t+=2),r.push(h)}v.SPqcds=r,f.mainHeader?f.QCD=v:(f.currentTile.QCD=v,f.currentTile.QCC=[]);break;case 65373:o=(0,R.readUint16)(c,l);var x={};let e;switch(t=l+2,f.SIZ.Csiz<257?e=c[t++]:(e=(0,R.readUint16)(c,t),t+=2),31&(a=c[t++])){case 0:i=8,n=!0;break;case 1:i=16,n=!1;break;case 2:i=16,n=!0;break;default:throw new Error("Invalid SQcd value "+a)}for(x.noQuantization=8===i,x.scalarExpounded=n,x.guardBits=a>>5,r=[];t<o+l;){const h={};8===i?(h.epsilon=c[t++]>>3,h.mu=0):(h.epsilon=c[t]>>3,h.mu=(7&c[t])<<8|c[t+1],t+=2),r.push(h)}x.SPqcds=r,f.mainHeader?f.QCC[e]=x:f.currentTile.QCC[e]=x;break;case 65362:o=(0,R.readUint16)(c,l);const j={};t=l+2;var S=c[t++],A=(j.entropyCoderWithCustomPrecincts=!!(1&S),j.sopMarkerUsed=!!(2&S),j.ephMarkerUsed=!!(4&S),j.progressionOrder=c[t++],j.layersCount=(0,R.readUint16)(c,t),t+=2,j.multipleComponentTransform=c[t++],j.decompositionLevelsCount=c[t++],j.xcb=2+(15&c[t++]),j.ycb=2+(15&c[t++]),c[t++]);if(j.selectiveArithmeticCodingBypass=!!(1&A),j.resetContextProbabilities=!!(2&A),j.terminationOnEachCodingPass=!!(4&A),j.verticallyStripe=!!(8&A),j.predictableTermination=!!(16&A),j.segmentationSymbolUsed=!!(32&A),j.reversibleTransformation=c[t++],j.entropyCoderWithCustomPrecincts){const h=[];for(;t<o+l;){const B=c[t++];h.push({PPx:15&B,PPy:B>>4})}j.precinctsSizes=h}var k=[];j.selectiveArithmeticCodingBypass&&k.push("selectiveArithmeticCodingBypass"),j.terminationOnEachCodingPass&&k.push("terminationOnEachCodingPass"),j.verticallyStripe&&k.push("verticallyStripe"),j.predictableTermination&&k.push("predictableTermination"),0<k.length&&(g=!0,(0,B.warn)(`JPX: Unsupported COD options (${k.join(", ")}).`)),f.mainHeader?f.COD=j:(f.currentTile.COD=j,f.currentTile.COC=[]);break;case 65424:o=(0,R.readUint16)(c,l),(s={}).index=(0,R.readUint16)(c,l+2),s.length=(0,R.readUint32)(c,l+4),s.dataEnd=s.length+l-2,s.partIndex=c[l+8],s.partsCount=c[l+9],f.mainHeader=!1,0===s.partIndex&&(s.COD=f.COD,s.COC=f.COC.slice(0),s.QCD=f.QCD,s.QCC=f.QCC.slice(0)),f.currentTile=s;break;case 65427:if(0===(s=f.currentTile).partIndex){{C=void 0;F=void 0;O=void 0;var C=f;var F=s.index;const N=C.SIZ.Csiz,E=C.tiles[F];for(let e=0;e<N;e++){const N=E.components[e],D=void 0!==C.currentTile.QCC[e]?C.currentTile.QCC[e]:C.currentTile.QCD;N.quantizationParameters=D;var O=void 0!==C.currentTile.COC[e]?C.currentTile.COC[e]:C.currentTile.COD;N.codingStyleParameters=O}E.codingStyleDefaultParameters=C.currentTile.COD}$(f)}o=s.dataEnd-l,_(f,c,l,o);break;case 65363:(0,B.warn)("JPX: Codestream code 0xFF53 (COC) is not implemented.");case 65365:case 65367:case 65368:case 65380:o=(0,R.readUint16)(c,l);break;default:throw new Error("Unknown codestream code: "+h.toString(16))}l+=o}}catch(c){if(g||this.failOnCorruptedImage)throw new L(c.message);(0,B.warn)(`JPX: Trying to recover from: "${c.message}".`)}this.tiles=function(c){const h=c.SIZ,u=c.components,d=h.Csiz,f=[];for(let l=0,e=c.tiles.length;l<e;l++){var g=c.tiles[l],p=[];for(let e=0;e<d;e++)p[e]=j(c,g,e);var m=p[0],b=new Uint8ClampedArray(m.items.length*d),m={left:m.left,top:m.top,width:m.width,height:m.height,items:b};let t,a,r,i,e,n,s,o=0;if(g.codingStyleDefaultParameters.multipleComponentTransform){const c=4===d,h=p[0].items,f=p[1].items,v=p[2].items,x=c?p[3].items:null;t=u[0].precision-8,a=.5+(128<<t);var y=g.components[0],w=d-3;if(i=h.length,y.codingStyleParameters.reversibleTransformation)for(r=0;r<i;r++,o+=w){e=h[r]+a,n=f[r],s=v[r];const c=e-(s+n>>2);b[o++]=c+s>>t,b[o++]=c>>t,b[o++]=c+n>>t}else for(r=0;r<i;r++,o+=w)e=h[r]+a,n=f[r],s=v[r],b[o++]=e+1.402*s>>t,b[o++]=e-.34413*n-.71414*s>>t,b[o++]=e+1.772*n>>t;if(c)for(r=0,o=3;r<i;r++,o+=4)b[o]=x[r]+a>>t}else for(let e=0;e<d;e++){const h=p[e].items;for(t=u[e].precision-8,a=.5+(128<<t),o=e,r=0,i=h.length;r<i;r++)b[o]=h[r]+a>>t,o+=d}f.push(m)}return f}(f),this.width=f.SIZ.Xsiz-f.SIZ.XOsiz,this.height=f.SIZ.Ysiz-f.SIZ.YOsiz,this.componentsCount=f.SIZ.Csiz}};class A{constructor(t,a){const r=(0,R.log2)(Math.max(t,a))+1;this.levels=[];for(let e=0;e<r;e++){const r={width:t,height:a,items:[]};this.levels.push(r),t=Math.ceil(t/2),a=Math.ceil(a/2)}}reset(e,t){let a,r=0,i=0;for(;r<this.levels.length;){var n=e+t*(a=this.levels[r]).width;if(void 0!==a.items[n]){i=a.items[n];break}a.index=n,e>>=1,t>>=1,r++}r--,(a=this.levels[r]).items[a.index]=i,this.currentLevel=r,delete this.value}incrementValue(){var e=this.levels[this.currentLevel];e.items[e.index]++}nextLevel(){var e=this.currentLevel,t=this.levels[e],a=t.items[t.index];return--e<0?(this.value=a,!1):(this.currentLevel=e,(t=this.levels[e]).items[t.index]=a,!0)}}class k{constructor(t,a,r){const i=(0,R.log2)(Math.max(t,a))+1;this.levels=[];for(let e=0;e<i;e++){const i=new Uint8Array(t*a);for(let e=0,t=i.length;e<t;e++)i[e]=r;const R={width:t,height:a,items:i};this.levels.push(R),t=Math.ceil(t/2),a=Math.ceil(a/2)}}reset(e,t,a){let r=0;for(;r<this.levels.length;){var i=this.levels[r],n=e+t*i.width,i=(i.index=n,i.items[n]);if(255===i)break;if(a<i)return this.currentLevel=r,this.propagateValues(),!1;e>>=1,t>>=1,r++}return this.currentLevel=r-1,!0}incrementValue(e){var t=this.levels[this.currentLevel];t.items[t.index]=e+1,this.propagateValues()}propagateValues(){let e=this.currentLevel,t=this.levels[e];for(var a=t.items[t.index];0<=--e;)(t=this.levels[e]).items[t.index]=a}nextLevel(){let e=this.currentLevel,t=this.levels[e];var a=t.items[t.index];return t.items[t.index]=255,!(--e<0||(this.currentLevel=e,(t=this.levels[e]).items[t.index]=a,0))}}class W{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(e,t,a,r,i){this.width=e,this.height=t,a="HH"===a?W.HHContextLabel:"HL"===a?W.HLContextLabel:W.LLAndLHContextsLabel,this.contextLabelTable=a;var n=e*t,s=(this.neighborsSignificance=new Uint8Array(n),this.coefficentsSign=new Uint8Array(n),a=new(14<i?Uint32Array:6<i?Uint16Array:Uint8Array)(n),this.coefficentsMagnitude=a,this.processingFlags=new Uint8Array(n),new Uint8Array(n));if(0!==r)for(let e=0;e<n;e++)s[e]=r;this.bitsDecoded=s,this.reset()}setDecoder(e){this.decoder=e}reset(){this.contexts=new Int8Array(19),this.contexts[0]=8,this.contexts[W.UNIFORM_CONTEXT]=92,this.contexts[W.RUNLENGTH_CONTEXT]=6}setNeighborsSignificance(e,t,a){var r=this.neighborsSignificance,i=this.width,n=this.height,s=0<t,t=t+1<i;let o;0<e&&(o=a-i,s&&(r[o-1]+=16),t&&(r[o+1]+=16),r[o]+=4),e+1<n&&(o=a+i,s&&(r[o-1]+=16),t&&(r[o+1]+=16),r[o]+=4),s&&(r[a-1]+=1),t&&(r[a+1]+=1),r[a]|=128}runSignificancePropagationPass(){const i=this.decoder,n=this.width,s=this.height,o=this.coefficentsMagnitude,l=this.coefficentsSign,c=this.neighborsSignificance,h=this.processingFlags,u=this.contexts,d=this.contextLabelTable,f=this.bitsDecoded;for(let r=0;r<s;r+=4)for(let a=0;a<n;a++){let t=r*n+a;for(let e=0;e<4;e++,t+=n){const n=r+e;if(n>=s)break;if(h[t]&=-2,!o[t]&&c[t]){var g=d[c[t]];if(i.readBit(u,g)){const i=this.decodeSignBit(n,a,t);l[t]=i,o[t]=1,this.setNeighborsSignificance(n,a,t),h[t]|=2}f[t]++,h[t]|=1}}}}decodeSignBit(e,t,a){var r=this.width,i=this.height,n=this.coefficentsMagnitude,s=this.coefficentsSign;let o,l,c,h,u,d;h=0<t&&0!==n[a-1];t=3*(o=t+1<r&&0!==n[a+1]?(c=s[a+1],h?(l=s[a-1],1-c-l):1-c-c):h?1-(l=s[a-1])-l:0);return h=0<e&&0!==n[a-r],o=e+1<i&&0!==n[a+r]?(c=s[a+r],h?(l=s[a-r],1-c-l+t):1-c-c+t):h?1-(l=s[a-r])-l+t:t,d=0<=o?(u=9+o,this.decoder.readBit(this.contexts,u)):(u=9-o,1^this.decoder.readBit(this.contexts,u))}runMagnitudeRefinementPass(){const i=this.decoder,n=this.width,s=this.height,o=this.coefficentsMagnitude,l=this.neighborsSignificance,c=this.contexts,h=this.bitsDecoded,u=this.processingFlags,e=n*s,t=4*n;for(let a,r=0;r<e;r=a){a=Math.min(e,r+t);for(let e=0;e<n;e++)for(let t=r+e;t<a;t+=n)if(o[t]&&0==(1&u[t])){let e=16;0!=(2&u[t])&&(u[t]^=2,e=0==(127&l[t])?15:14);const s=i.readBit(c,e);o[t]=o[t]<<1|s,h[t]++,u[t]|=1}}}runCleanupPass(){const s=this.decoder,o=this.width,e=this.height,l=this.neighborsSignificance,c=this.coefficentsMagnitude,h=this.coefficentsSign,u=this.contexts,d=this.contextLabelTable,f=this.bitsDecoded,g=this.processingFlags,p=o,m=2*o,b=3*o;for(let n=0;n<e;n=y){var y=Math.min(n+4,e),w=n*o,v=n+3<e;for(let i=0;i<o;i++){var x=w+i;let e,t=0,a=x,r=n;if(v&&0===g[x]&&0===g[x+p]&&0===g[x+m]&&0===g[x+b]&&0===l[x]&&0===l[x+p]&&0===l[x+m]&&0===l[x+b]){if(!s.readBit(u,W.RUNLENGTH_CONTEXT)){f[x]++,f[x+p]++,f[x+m]++,f[x+b]++;continue}0!==(t=s.readBit(u,W.UNIFORM_CONTEXT)<<1|s.readBit(u,W.UNIFORM_CONTEXT))&&(r=n+t,a+=t*o),e=this.decodeSignBit(r,i,a),h[a]=e,c[a]=1,this.setNeighborsSignificance(r,i,a),g[a]|=2,a=x;for(let e=n;e<=r;e++,a+=o)f[a]++;t++}for(r=n+t;r<y;r++,a+=o)if(!c[a]&&0==(1&g[a])){const o=d[l[a]];1===s.readBit(u,o)&&(e=this.decodeSignBit(r,i,a),h[a]=e,c[a]=1,this.setNeighborsSignificance(r,i,a),g[a]|=2),f[a]++}}}}checkSegmentationSymbol(){var e=this.decoder,t=this.contexts;if(10!=(e.readBit(t,W.UNIFORM_CONTEXT)<<3|e.readBit(t,W.UNIFORM_CONTEXT)<<2|e.readBit(t,W.UNIFORM_CONTEXT)<<1|e.readBit(t,W.UNIFORM_CONTEXT)))throw new L("Invalid segmentation symbol")}}class i{constructor(){this.constructor===i&&(0,B.unreachable)("Cannot initialize Transform.")}calculate(a,r,i){let n=a[0];for(let e=1,t=a.length;e<t;e++)n=this.iterate(n,a[e],r,i);return n}extend(e,t,a){var r=t-1,i=t+1,n=t+a-2,t=t+a;e[r--]=e[i++],e[t++]=e[n--],e[r--]=e[i++],e[t++]=e[n--],e[r--]=e[i++],e[t++]=e[n--],e[r]=e[i],e[t]=e[n]}filter(e,t,a){(0,B.unreachable)("Abstract method `filter` called")}iterate(e,t,a,r){var i=e.width,n=e.height;let s=e.items;var o=t.width,l=t.height,c=t.items;let h,u,d,f,g,p;for(d=0,h=0;h<n;h++)for(f=2*h*o,u=0;u<i;u++,d++,f+=2)c[f]=s[d];s=e.items=null;var m=new Float32Array(o+8);if(1===o){if(0!=(1&a))for(p=0,d=0;p<l;p++,d+=o)c[d]*=.5}else for(p=0,d=0;p<l;p++,d+=o)m.set(c.subarray(d,d+o),4),this.extend(m,4,o),this.filter(m,4,o),c.set(m.subarray(4,4+o),d);let b=16;var y=[];for(h=0;h<b;h++)y.push(new Float32Array(l+8));let w,v=0;if(e=4+l,1===l){if(0!=(1&r))for(g=0;g<o;g++)c[g]*=.5}else for(g=0;g<o;g++){if(0===v){for(b=Math.min(o-g,b),d=g,f=4;f<e;d+=o,f++)for(w=0;w<b;w++)y[w][f]=c[d+w];v=b}const t=y[--v];if(this.extend(t,4,l),this.filter(t,4,l),0===v)for(d=g-b+1,f=4;f<e;d+=o,f++)for(w=0;w<b;w++)c[d+w]=y[w][f]}return{width:o,height:l,items:c}}}class V extends i{filter(e,t,a){a>>=1;let r,i,n,s;var o=-1.586134342059924,l=-.052980118572961,c=.882911075530934,h=.443506852043971,u=1.230174104914001;for(r=(t|=0)-3,i=4+a;i--;r+=2)e[r]*=.8128930661159609;for(r=t-2,n=h*e[r-1],i=3+a;i--&&(s=h*e[r+1],e[r]=u*e[r]-n-s,i--);r+=2)r+=2,n=h*e[r+1],e[r]=u*e[r]-n-s;for(r=t-1,n=c*e[r-1],i=2+a;i--&&(s=c*e[r+1],e[r]-=n+s,i--);r+=2)r+=2,n=c*e[r+1],e[r]-=n+s;for(r=t,n=l*e[r-1],i=1+a;i--&&(s=l*e[r+1],e[r]-=n+s,i--);r+=2)r+=2,n=l*e[r+1],e[r]-=n+s;if(0!=a)for(r=t+1,n=o*e[r-1],i=a;i--&&(s=o*e[r+1],e[r]-=n+s,i--);r+=2)r+=2,n=o*e[r+1],e[r]-=n+s}}class K extends i{filter(e,t,a){a>>=1;let r,i;for(r=t|=0,i=1+a;i--;r+=2)e[r]-=e[r-1]+e[r+1]+2>>2;for(r=t+1,i=a;i--;r+=2)e[r]+=e[r-1]+e[r+1]>>1}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LZWStream=void 0;class r extends a(18).DecodeStream{constructor(e,t,a){super(t),this.str=e,this.dict=e.dict,this.cachedData=0,this.bitsCached=0;var r={earlyChange:a,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(4096),dictionaryLengths:new Uint16Array(4096),dictionaryPrevCodes:new Uint16Array(4096),currentSequence:new Uint8Array(4096),currentSequenceLength:0};for(let e=0;e<256;++e)r.dictionaryValues[e]=e,r.dictionaryLengths[e]=1;this.lzwState=r}readBits(e){let t=this.bitsCached,a=this.cachedData;for(;t<e;){const e=this.str.getByte();if(-1===e)return this.eof=!0,null;a=a<<8|e,t+=8}return this.bitsCached=t-=e,this.cachedData=a,this.lastCode=null,a>>>t&(1<<e)-1}readBlock(){let o,l,c,h=1024;const u=this.lzwState;if(u){var d=u.earlyChange;let e=u.nextCode;var f=u.dictionaryValues,g=u.dictionaryLengths,p=u.dictionaryPrevCodes;let t=u.codeLength,a=u.prevCode;var m=u.currentSequence;let r=u.currentSequenceLength,i=0,n=this.bufferLength,s=this.ensureBuffer(this.bufferLength+h);for(o=0;o<512;o++){const o=this.readBits(t),u=0<r;if(o<256)m[0]=o,r=1;else{if(!(258<=o)){if(256===o){t=9,e=258,r=0;continue}this.eof=!0,delete this.lzwState;break}if(o<e)for(r=g[o],l=r-1,c=o;0<=l;l--)m[l]=f[c],c=p[c];else m[r++]=m[0]}if(u&&(p[e]=a,g[e]=g[a]+1,f[e]=m[0],e++,t=e+d&e+d-1?t:0|Math.min(Math.log(e+d)/.6931471805599453+1,12)),a=o,i+=r,h<i){for(;(h+=512)<i;);s=this.ensureBuffer(this.bufferLength+h)}for(l=0;l<r;l++)s[n++]=m[l]}u.nextCode=e,u.codeLength=t,u.prevCode=a,u.currentSequenceLength=r,this.bufferLength=n}}}t.LZWStream=r},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PredictorStream=void 0;var r=a(18),i=a(4),g=a(2);class n extends r.DecodeStream{constructor(e,t,a){if(super(t),!(a instanceof i.Dict))return e;t=this.predictor=a.get("Predictor")||1;if(t<=1)return e;if(2!==t&&(t<10||15<t))throw new g.FormatError("Unsupported predictor: "+t);this.readBlock=2===t?this.readBlockTiff:this.readBlockPng,this.str=e,this.dict=e.dict;t=this.colors=a.get("Colors")||1,e=this.bits=a.get("BPC","BitsPerComponent")||8,a=this.columns=a.get("Columns")||1;return this.pixBytes=t*e+7>>3,this.rowBytes=a*t*e+7>>3,this}readBlockTiff(){const l=this.rowBytes,c=this.bufferLength,h=this.ensureBuffer(c+l),u=this.bits,d=this.colors,f=this.str.getBytes(l);if(this.eof=!f.length,!this.eof){let e,i=0,n=0,s=0,o=0,t=c;if(1===u&&1===d)for(e=0;e<l;++e){var a=f[e]^i,a=(a=(a^=a>>1)^a>>2)^a>>4;i=(1&a)<<7,h[t++]=a}else if(8===u){for(e=0;e<d;++e)h[t++]=f[e];for(;e<l;++e)h[t]=h[t-d]+f[e],t++}else if(16===u){const c=2*d;for(e=0;e<c;++e)h[t++]=f[e];for(;e<l;e+=2){const l=((255&f[e])<<8)+(255&f[e+1])+((255&h[t-c])<<8)+(255&h[t-c+1]);h[t++]=l>>8&255,h[t++]=255&l}}else{const l=new Uint8Array(d+1),t=(1<<u)-1;let a=0,r=c;var g=this.columns;for(e=0;e<g;++e)for(let e=0;e<d;++e)s<u&&(i=i<<8|255&f[a++],s+=8),l[e]=l[e]+(i>>s-u)&t,s-=u,n=n<<u|l[e],8<=(o+=u)&&(h[r++]=n>>o-8&255,o-=8);0<o&&(h[r++]=(n<<8-o)+(i&(1<<8-o)-1))}this.bufferLength+=l}}readBlockPng(){const l=this.rowBytes,c=this.pixBytes,h=this.str.getByte(),u=this.str.getBytes(l);if(this.eof=!u.length,!this.eof){const d=this.bufferLength,f=this.ensureBuffer(d+l);let r=f.subarray(d-l,d);0===r.length&&(r=new Uint8Array(l));let i,n,s,o=d;switch(h){case 0:for(i=0;i<l;++i)f[o++]=u[i];break;case 1:for(i=0;i<c;++i)f[o++]=u[i];for(;i<l;++i)f[o]=f[o-c]+u[i]&255,o++;break;case 2:for(i=0;i<l;++i)f[o++]=r[i]+u[i]&255;break;case 3:for(i=0;i<c;++i)f[o++]=(r[i]>>1)+u[i];for(;i<l;++i)f[o]=(r[i]+f[o-c]>>1)+u[i]&255,o++;break;case 4:for(i=0;i<c;++i)n=r[i],s=u[i],f[o++]=n+s;for(;i<l;++i){n=r[i];const l=r[i-c],h=f[o-c],d=h+n-l;let e=d-h,t=(e<0&&(e=-e),d-n),a=(t<0&&(t=-t),d-l);a<0&&(a=-a),s=u[i],f[o++]=e<=t&&e<=a?h+s:t<=a?n+s:l+s}break;default:throw new g.FormatError("Unsupported predictor: "+h)}this.bufferLength+=l}}}t.PredictorStream=n},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RunLengthStream=void 0;class r extends a(18).DecodeStream{constructor(e,t){super(t),this.str=e,this.dict=e.dict}readBlock(){const e=this.str.getBytes(2);if(!e||e.length<2||128===e[0])this.eof=!0;else{let t,a=this.bufferLength,r=e[0];if(r<128){if((t=this.ensureBuffer(a+r+1))[a++]=e[1],0<r){const e=this.str.getBytes(r);t.set(e,a),a+=r}}else{r=257-r;var i=e[1];t=this.ensureBuffer(a+r+1);for(let e=0;e<r;e++)t[a++]=i}this.bufferLength=a}}}t.RunLengthStream=r},(r,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Font=e.ErrorFont=void 0;var j=t(2),U=t(35),X=t(38),v=t(40),H=t(39),q=t(37),l=t(41),z=t(42),G=t(43),a=t(44),c=t(45),W=t(46),V=t(14),K=t(47),o=t(3),Y=t(8),f=t(48);const p=[[57344,63743],[1048576,1114109]],g=1e3,i=["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"],n=["cMap","defaultEncoding","differences","isMonospace","isSerifFont","isSymbolicFont","seacMap","toFontChar","toUnicode","vmetrics","widths"];function Z(e){if(e.fontMatrix&&e.fontMatrix[0]!==j.FONT_IDENTITY_MATRIX[0]){var t=.001/e.fontMatrix[0],a=e.widths;for(const e in a)a[e]*=t;e.defaultWidth*=t}}function h(e){if(e.fallbackToUnicode&&!(e.toUnicode instanceof z.IdentityToUnicodeMap)){var t=[];for(const a in e.fallbackToUnicode)e.toUnicode.has(a)||(t[a]=e.fallbackToUnicode[a]);0<t.length&&e.toUnicode.amend(t)}}class m{constructor(e,t,a,r,i,n,s,o,l){this.originalCharCode=e,this.fontChar=t,this.unicode=a,this.accent=r,this.width=i,this.vmetric=n,this.operatorListId=s,this.isSpace=o,this.isInFont=l}get category(){return(0,j.shadow)(this,"category",(0,v.getCharUnicodeCategory)(this.unicode),!0)}}function J(e,t,a){e[t+1]=a,e[t]=a>>>8}function Q(e,t){e=(e<<8)+t;return 32768&e?e-65536:e}function A(e){return String.fromCharCode(e>>8&255,255&e)}function x(e){return 32767<e?e=32767:e<-32768&&(e=-32768),String.fromCharCode(e>>8&255,255&e)}function ee(e){e=e.peekBytes(4);return"ttcf"===(0,j.bytesToString)(e)}function u(e,t){for(const a in t)e[+a]=t[a]}function d(a,r,e){var i=[];let n;for(let e=0,t=a.length;e<t;e++)-1!==(n=(0,v.getUnicodeForGlyph)(a[e],r))&&(i[e]=n);for(const a in e)n=(0,v.getUnicodeForGlyph)(e[a],r),-1!==n&&(i[+a]=n);return i}function te(e){return 3===e.platform&&1===e.encoding&&1033===e.language}function ae(e,t,a=!1){switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}e=`Unsupported CID string (charCode ${e}): "${t}".`;if(a)throw new j.FormatError(e);return(0,j.warn)(e),t}function re(e,a,r,i){var n,s,o=Object.create(null),l=new Map,c=[],h=new Set;let u=0,d=p[u][0],f=p[u][1];for(n in e){let t=e[n|=0];if(a(t)){if(d>f){if(++u>=p.length){(0,j.warn)("Ran out of space in font private use area.");break}d=p[u][0],f=p[u][1]}var g=d++;0===t&&(t=r);let e=i.get(n);!(e="string"==typeof e?e.codePointAt(0):e)||(s=e,p[0][0]<=s&&s<=p[0][1])||p[1][0]<=s&&s<=p[1][1]||h.has(t)||(l.set(e,t),h.add(t)),o[g]=t,c[n]=g}}return{toFontChar:c,charCodeToGlyphId:o,toUnicodeExtraMap:l,nextAvailableFontCharCode:d}}function ie(t,e,a){var r=function(e,a,r){var i=[];for(const a in e)e[a]>=r||i.push({fontCharCode:0|a,glyphId:e[a]});if(a)for(const[e,n]of a)n>=r||i.push({fontCharCode:e,glyphId:n});0===i.length&&i.push({fontCharCode:0,glyphId:0}),i.sort(function(e,t){return e.fontCharCode-t.fontCharCode});const n=[],s=i.length;for(let t=0;t<s;){const a=i[t].fontCharCode,r=[i[t].glyphId];++t;let e=a;for(;t<s&&e+1===i[t].fontCharCode&&(r.push(i[t].glyphId),++e,++t,65535!==e););n.push([a,e,r])}return n}(t,e,a),t=65535<r.at(-1)[1]?2:1;let i,n,s,o,l="\0\0"+A(t)+"\0\0"+(0,j.string32)(4+8*t);for(i=r.length-1;0<=i&&!(r[i][0]<=65535);--i);var e=i+1,a=(r[i][0]<65535&&65535===r[i][1]&&(r[i][1]=65534),r[i][1]<65535?1:0),c=e+a,h=K.OpenTypeFileBuilder.getSearchParams(c,2);let u,d,f,g,p="",m="",b="",y="",w="",v=0;for(i=0,n=e;i<n;i++){u=r[i],d=u[0],f=u[1],p+=A(d),m+=A(f),g=u[2];let e=!0;for(s=1,o=g.length;s<o;++s)if(g[s]!==g[s-1]+1){e=!1;break}if(e)b+=A(g[0]-d&65535),y+=A(0);else{const t=2*(c-i)+2*v;for(v+=f-d+1,b+=A(0),y+=A(t),s=0,o=g.length;s<o;++s)w+=A(g[s])}}0<a&&(m+="ÿÿ",p+="ÿÿ",b+="\0",y+="\0\0");e="\0\0"+A(2*c)+A(h.range)+A(h.entry)+A(h.rangeShift)+m+"\0\0"+p+b+y+w;let x="",S="";if(1<t){for(l+="\0\0\n"+(0,j.string32)(4+8*t+4+e.length),x="",i=0,n=r.length;i<n;i++){u=r[i],d=u[0];let e=(g=u[2])[0];for(s=1,o=g.length;s<o;++s)g[s]!==g[s-1]+1&&(f=u[0]+s-1,x+=(0,j.string32)(d)+(0,j.string32)(f)+(0,j.string32)(e),d=f+1,e=g[s]);x+=(0,j.string32)(d)+(0,j.string32)(u[1])+(0,j.string32)(e)}S="\0\f\0\0"+(0,j.string32)(x.length+16)+"\0\0\0\0"+(0,j.string32)(x.length/12)}return l+"\0"+A(e.length+4)+e+S+x}function ne(e,t,a){a||={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let r=0,i=0,n=0,s=0,o=null,l=0,c=-1;if(t){for(var h in t)if(h|=0,(o>h||!o)&&(o=h),l<h&&(l=h),c=(0,v.getUnicodeRangeFor)(h,c),c<32)r|=1<<c;else if(c<64)i|=1<<c-32;else if(c<96)n|=1<<c-64;else{if(!(c<123))throw new j.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");s|=1<<c-96}65535<l&&(l=65535)}else o=0,l=255;var t=e.bbox||[0,0,0,0],u=a.unitsPerEm||1/(e.fontMatrix||j.FONT_IDENTITY_MATRIX)[0],u=e.ascentScaled?1:u/g,d=a.ascent||Math.round(u*(e.ascent||t[3]));let f=a.descent||Math.round(u*(e.descent||t[1]));0<f&&0<e.descent&&t[1]<0&&(f=-f);u=a.yMax||d,t=-a.yMin||-f;return"\0$ô\0\0\0Š»\0\0\0ŒŠ»\0\0ß\x001\0\0\0\0"+String.fromCharCode(e.fixedPitch?9:0)+"\0\0\0\0\0\0"+(0,j.string32)(r)+(0,j.string32)(i)+(0,j.string32)(n)+(0,j.string32)(s)+"*21*"+A(e.italicAngle?1:0)+A(o||e.firstChar)+A(l||e.lastChar)+A(d)+A(f)+"\0d"+A(u)+A(t)+"\0\0\0\0\0\0\0\0"+A(e.xHeight)+A(e.capHeight)+A(0)+A(o||e.firstChar)+"\0"}function se(e){var t=Math.floor(65536*e.italicAngle);return"\0\0\0"+(0,j.string32)(t)+"\0\0\0\0"+(0,j.string32)(e.fixedPitch?1:0)+"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"}function oe(e,t){var a=[(t=t||[[],[]])[0][0]||"Original licence",t[0][1]||e,t[0][2]||"Unknown",t[0][3]||"uniqueID",t[0][4]||e,t[0][5]||"Version 0.11",t[0][6]||e.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],r=[];let i,n,s,o,l;for(i=0,n=a.length;i<n;i++){l=t[1][i]||a[i];const e=[];for(s=0,o=l.length;s<o;s++)e.push(A(l.charCodeAt(s)));r.push(e.join(""))}var c=[a,r],h=["\0","\0"],u=["\0\0","\0"],d=["\0\0","\t"],e=a.length*h.length;let f="\0\0"+A(e)+A(12*e+6),g=0;for(i=0,n=h.length;i<n;i++){const e=c[i];for(s=0,o=e.length;s<o;s++)l=e[s],f+=h[i]+u[i]+d[i]+A(s)+A(l.length)+A(g),g+=l.length}return f+=a.join("")+r.join("")}e.Font=class{constructor(t,a,r){this.name=t,this.psName=null,this.mimetype=null,this.disableFontFace=!1,this.loadedName=r.loadedName,this.isType3Font=r.isType3Font,this.missingFile=!1,this.cssFontInfo=r.cssFontInfo,this._charsCache=Object.create(null),this._glyphCache=Object.create(null);let i=!!(r.flags&X.FontFlags.Serif);if(!i&&!r.isSimulatedFlags){const a=t.replaceAll(/[,_]/g,"-").split("-")[0],r=(0,l.getSerifFonts)();for(const t of a.split("+"))if(r[t]){i=!0;break}}this.isSerifFont=i,this.isSymbolicFont=!!(r.flags&X.FontFlags.Symbolic),this.isMonospace=!!(r.flags&X.FontFlags.FixedPitch);let{type:n,subtype:s}=r;this.type=n,this.subtype=s,this.systemFontInfo=r.systemFontInfo;var e=t.match(/^InvalidPDFjsFont_(.*)_\d+$/);if(this.isInvalidPDFjsFont=!!e,this.isInvalidPDFjsFont?this.fallbackName=e[1]:this.isMonospace?this.fallbackName="monospace":this.isSerifFont?this.fallbackName="serif":this.fallbackName="sans-serif",this.systemFontInfo?.guessFallback&&(this.systemFontInfo.guessFallback=!1,this.systemFontInfo.css+=","+this.fallbackName),this.differences=r.differences,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.composite=r.composite,this.cMap=r.cMap,this.capHeight=r.capHeight/g,this.ascent=r.ascent/g,this.descent=r.descent/g,this.lineHeight=this.ascent-this.descent,this.fontMatrix=r.fontMatrix,this.bbox=r.bbox,this.defaultEncoding=r.defaultEncoding,this.toUnicode=r.toUnicode,this.toFontChar=[],"Type3"===r.type)for(let e=0;e<256;e++)this.toFontChar[e]=this.differences[e]||r.defaultEncoding[e];else if(this.cidEncoding=r.cidEncoding||"",this.vertical=!!r.vertical,this.vertical&&(this.vmetrics=r.vmetrics,this.defaultVMetrics=r.defaultVMetrics),!a||a.isEmpty)a&&(0,j.warn)('Font file is empty in "'+t+'" ('+this.loadedName+")"),this.fallbackToSystemFont(r);else{let e;[n,s]=function(e,{type:t,subtype:a,composite:r}){let i,n;return s=e.peekBytes(4),65536===(0,o.readUint32)(s,0)||"true"===(0,j.bytesToString)(s)||ee(e)?i=r?"CIDFontType2":"TrueType":(s=e.peekBytes(4),"OTTO"===(0,j.bytesToString)(s)?i=r?"CIDFontType2":"OpenType":37===(s=e.peekBytes(2))[0]&&33===s[1]||128===s[0]&&1===s[1]?i=r?"CIDFontType0":"MMType1"===t?"MMType1":"Type1":(s=e.peekBytes(4),n=1<=s[0]&&1<=s[3]&&s[3]<=4?r?(i="CIDFontType0","CIDFontType0C"):(i="MMType1"===t?"MMType1":"Type1","Type1C"):((0,j.warn)("getFontFileType: Unable to detect correct font file Type/Subtype."),i=t,a))),[i,n];var s}(a,r),n===this.type&&s===this.subtype||(0,j.info)(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${n}/${s}.`);try{switch(n){case"MMType1":(0,j.info)("MMType1 font ("+t+"), falling back to Type1.");case"Type1":case"CIDFontType0":this.mimetype="font/opentype";const i="Type1C"===s||"CIDFontType0C"===s?new G.CFFFont(a,r):new f.Type1Font(t,a,r);Z(r),e=this.convert(t,i,r);break;case"OpenType":case"TrueType":case"CIDFontType2":this.mimetype="font/opentype",e=this.checkAndRepair(t,a,r),this.isOpenType&&(Z(r),n="OpenType");break;default:throw new j.FormatError(`Font ${n} is not supported`)}}catch(t){return(0,j.warn)(t),void this.fallbackToSystemFont(r)}h(r),this.data=e,this.type=n,this.subtype=s,this.fontMatrix=r.fontMatrix,this.widths=r.widths,this.defaultWidth=r.defaultWidth,this.toUnicode=r.toUnicode,this.seacMap=r.seacMap}}get renderer(){var e=a.FontRendererFactory.create(this,X.SEAC_ANALYSIS_ENABLED);return(0,j.shadow)(this,"renderer",e)}exportData(e=!1){var e=e?[...i,...n]:i,t=Object.create(null);let a,r;for(a of e)r=this[a],void 0!==r&&(t[a]=r);return t}fallbackToSystemFont(r){this.missingFile=!0;const{name:e,type:i}=this;let n=(0,X.normalizeFontName)(e);var t=(0,l.getStdFontMap)(),a=(0,l.getNonStdFontMap)(),s=!!t[n],o=!(!a[n]||!t[a[n]]),t=(n=t[n]||a[n]||n,(0,c.getFontBasicMetrics)()[n]),a=(t&&(isNaN(this.ascent)&&(this.ascent=t.ascent/g),isNaN(this.descent)&&(this.descent=t.descent/g),isNaN(this.capHeight))&&(this.capHeight=t.capHeight/g),this.bold=/bold/gi.test(n),this.italic=/oblique|italic/gi.test(n),this.black=/Black/g.test(e),/Narrow/g.test(e));if(this.remeasure=(!s||a)&&0<Object.keys(this.widths).length,(s||o)&&"CIDFontType2"===i&&this.cidEncoding.startsWith("Identity-")){const i=r.cidToGidMap,n=[];if(u(n,(0,l.getGlyphMapForStandardFonts)()),/Arial-?Black/i.test(e)?u(n,(0,l.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(e)&&u(n,(0,l.getSupplementalGlyphMapForCalibri)()),i){for(const r in n){const e=n[r];void 0!==i[e]&&(n[+r]=i[e])}i.length!==this.toUnicode.length&&r.hasIncludedToUnicodeMap&&this.toUnicode instanceof z.IdentityToUnicodeMap&&this.toUnicode.forEach(function(e,t){var a=n[e];void 0===i[a]&&(n[+e]=t)})}this.toUnicode instanceof z.IdentityToUnicodeMap||this.toUnicode.forEach(function(e,t){n[+e]=t}),this.toFontChar=n,this.toUnicode=new z.ToUnicodeMap(n)}else if(/Symbol/i.test(n))this.toFontChar=d(q.SymbolSetEncoding,(0,H.getGlyphsUnicode)(),this.differences);else if(/Dingbats/i.test(n))this.toFontChar=d(q.ZapfDingbatsEncoding,(0,H.getDingbatsGlyphsUnicode)(),this.differences);else if(s){const r=d(this.defaultEncoding,(0,H.getGlyphsUnicode)(),this.differences);"CIDFontType2"!==i||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof z.IdentityToUnicodeMap||this.toUnicode.forEach(function(e,t){r[+e]=t}),this.toFontChar=r}else{const r=(0,H.getGlyphsUnicode)(),i=[];this.toUnicode.forEach((e,t)=>{if(!this.composite){const i=this.differences[e]||this.defaultEncoding[e],a=(0,v.getUnicodeForGlyph)(i,r);-1!==a&&(t=a)}i[+e]=t}),this.composite&&this.toUnicode instanceof z.IdentityToUnicodeMap&&/Tahoma|Verdana/i.test(e)&&u(i,(0,l.getGlyphMapForStandardFonts)()),this.toFontChar=i}h(r),this.loadedName=n.split("-")[0]}checkAndRepair(r,u,i){const d=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function f(t,a){var r,i,n,s,o,l,c,h=Object.create(null);h["OS/2"]=null,h.cmap=null,h.head=null,h.hhea=null,h.hmtx=null,h.maxp=null,h.name=null,h.post=null;for(let e=0;e<a;e++){c=l=o=s=n=i=void 0,i=(r=t).getString(4),n=r.getInt32()>>>0,s=r.getInt32()>>>0,o=r.getInt32()>>>0,l=r.pos,r.pos=r.start||0,r.skip(s),c=r.getBytes(o),r.pos=l,"head"===i&&(c[8]=c[9]=c[10]=c[11]=0,c[17]|=32);const a={tag:i,checksum:n,length:o,offset:s,data:c};d.includes(a.tag)&&0!==a.length&&(h[a.tag]=a)}return h}function t(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function a(r){var a,i=(u.start||0)+r.offset;u.pos=i;const n=[[],[]],s=[],o=r.length,l=i+o;if(!(0!==u.getUint16()||o<6)){const c=u.getUint16(),h=u.getUint16();let e,t;for(e=0;e<c&&u.pos+12<=l;e++){const r={platform:u.getUint16(),encoding:u.getUint16(),language:u.getUint16(),name:u.getUint16(),length:u.getUint16(),offset:u.getUint16()};(1===(a=r).platform&&0===a.encoding&&0===a.language||te(r))&&s.push(r)}for(e=0,t=s.length;e<t;e++){const r=s[e];if(!(r.length<=0)){const o=i+h+r.offset;if(!(o+r.length>l)){u.pos=o;const c=r.name;if(r.encoding){let a="";for(let e=0,t=r.length;e<t;e+=2)a+=String.fromCharCode(u.getUint16());n[1][c]=a}else n[0][c]=u.getString(r.length)}}}}return[n,s]}const R=[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 n(i,e){let t,a,r,n,s,o=i.data,l=0,c=0,h=0;var u=[],d=[],f=[];let g=e.tooComplexToFollowFunctions,p=!1,m=0,b=0;for(var y=o.length;l<y;){const i=o[l++];if(64===i)if(a=o[l++],p||b)l+=a;else for(t=0;t<a;t++)u.push(o[l++]);else if(65===i)if(a=o[l++],p||b)l+=2*a;else for(t=0;t<a;t++)r=o[l++],u.push(r<<8|o[l++]);else if(176==(248&i))if(a=i-176+1,p||b)l+=a;else for(t=0;t<a;t++)u.push(o[l++]);else if(184==(248&i))if(a=i-184+1,p||b)l+=2*a;else for(t=0;t<a;t++)r=o[l++],u.push(r<<8|o[l++]);else if(43!==i||g)if(44!==i||g){if(45===i)if(p)p=!1,c=l;else{if(!(s=d.pop()))return(0,j.warn)("TT: ENDF bad stack"),e.hintsValid=!1;n=f.pop(),o=s.data,l=s.i,e.functionsStackDeltas[n]=u.length-s.stackTop}else if(137===i)(p||b)&&((0,j.warn)("TT: nested IDEFs not allowed"),g=!0),p=!0,h=l;else if(88===i)++m;else if(27===i)b=m;else if(89===i)b===m&&(b=0),--m;else if(28===i&&!p&&!b){const i=u.at(-1);0<i&&(l+=i-1)}}else(p||b)&&((0,j.warn)("TT: nested FDEFs not allowed"),g=!0),p=!0,h=l,n=u.pop(),e.functionsDefined[n]={data:o,i:l};else if(!p&&!b)if(n=u.at(-1),isNaN(n))(0,j.info)("TT: CALL empty stack (or invalid entry).");else if(e.functionsUsed[n]=!0,n in e.functionsStackDeltas){const i=u.length+e.functionsStackDeltas[n];if(i<0)return(0,j.warn)("TT: CALL invalid functions stack delta."),e.hintsValid=!1;u.length=i}else if(n in e.functionsDefined&&!f.includes(n)){if(d.push({data:o,i:l,stackTop:u.length-1}),f.push(n),!(s=e.functionsDefined[n]))return(0,j.warn)("TT: CALL non-existent function"),e.hintsValid=!1;o=s.data,l=s.i}if(!p&&!b){let e=0;for(i<=142?e=R[i]:192<=i&&i<=223?e=-1:224<=i&&(e=-2),113<=i&&i<=117&&(a=u.pop(),isNaN(a)||(e=2*-a));e<0&&0<u.length;)u.pop(),e++;for(;0<e;)u.push(NaN),e--}}e.tooComplexToFollowFunctions=g;var w=[o],v=(l>o.length&&w.push(new Uint8Array(l-o.length)),h>c&&((0,j.warn)("TT: complementing a missing function tail"),w.push(new Uint8Array([34,45]))),w);if(1<v.length){let e,t,a=0;for(e=0,t=v.length;e<t;e++)a+=v[e].length;a=a+3&-4;var x=new Uint8Array(a);let r=0;for(e=0,t=v.length;e<t;e++)x.set(v[e],r),r+=v[e].length;i.data=x,i.length=a}}let e,s,o,l;if(ee(u=new Y.Stream(new Uint8Array(u.getBytes())))){const r=function(r,i){const{numFonts:n,offsetTable:s}=function(t){var e=t.getString(4),a=((0,j.assert)("ttcf"===e,"Must be a TrueType Collection font."),t.getUint16()),r=t.getUint16(),i=t.getInt32()>>>0,n=[];for(let e=0;e<i;e++)n.push(t.getInt32()>>>0);var s={ttcTag:e,majorVersion:a,minorVersion:r,numFonts:i,offsetTable:n};switch(a){case 1:return s;case 2:return s.dsigTag=t.getInt32()>>>0,s.dsigLength=t.getInt32()>>>0,s.dsigOffset=t.getInt32()>>>0,s}throw new j.FormatError(`Invalid TrueType Collection majorVersion: ${a}.`)}(r),o=i.split("+");let l;for(let e=0;e<n;e++){r.pos=(r.start||0)+s[e];const n=t(r),h=f(r,n.numTables);if(!h.name)throw new j.FormatError('TrueType Collection font must contain a "name" table.');var[c]=a(h.name);for(let a=0,e=c.length;a<e;a++)for(let e=0,t=c[a].length;e<t;e++){const s=c[a][e]?.replaceAll(/\s/g,"");if(s){if(s===i)return{header:n,tables:h};if(!(o.length<2))for(const r of o)s===r&&(l={name:r,header:n,tables:h})}}}if(l)return(0,j.warn)(`TrueType Collection does not contain "${i}" font, falling back to "${l.name}" font instead.`),{header:l.header,tables:l.tables};throw new j.FormatError(`TrueType Collection does not contain "${i}" font.`)}(u,this.name);e=r.header,s=r.tables}else e=t(u),s=f(u,e.numTables);var c=!s["CFF "];if(c){if(!s.loca)throw new j.FormatError('Required "loca" table is not found');s.glyf||((0,j.warn)('Required "glyf" table is not found -- trying to recover.'),s.glyf={tag:"glyf",data:new Uint8Array(0)}),this.isOpenType=!1}else{const u=i.composite&&(0<i.cidToGidMap?.length||!(i.cMap instanceof V.IdentityCMap));if("OTTO"===e.version&&!u||!s.head||!s.hhea||!s.maxp||!s.post)return l=new Y.Stream(s["CFF "].data),o=new G.CFFFont(l,i),Z(i),this.convert(r,o,i);delete s.glyf,delete s.loca,delete s.fpgm,delete s.prep,delete s["cvt "],this.isOpenType=!0}if(!s.maxp)throw new j.FormatError('Required "maxp" table is not found');u.pos=(u.start||0)+s.maxp.offset;const h=u.getInt32(),g=u.getUint16();if(i.scaleFactors?.length===g&&c){const r=i["scaleFactors"],u=(s.head.data[50]<<8)+s.head.data[51],j=new W.GlyfTable({glyfTable:s.glyf.data,isGlyphLocationsLong:u,locaTable:s.loca.data,numGlyphs:g}),{glyf:U,loca:X,isLocationLong:d}=(j.scale(r),j.write()),H=(s.glyf.data=U,s.loca.data=X,d!==!!u&&(s.head.data[50]=0,s.head.data[51]=d?1:0),s.hmtx.data);for(let e=0;e<g;e++){const i=4*e,j=Math.round(r[e]*((H[i]<<8)+H[1+i]));H[i]=j>>8&255,H[1+i]=255&j,J(H,2+i,Math.round(r[e]*Q(H[2+i],H[3+i])))}}let p=g+1,m=!0,b=(65535<p&&(m=!1,p=g,(0,j.warn)("Not enough space in glyfs to duplicate first glyph.")),0),y=0;65536<=h&&22<=s.maxp.length&&(u.pos+=8,2<u.getUint16()&&(s.maxp.data[14]=0,s.maxp.data[15]=2),u.pos+=4,b=u.getUint16(),u.pos+=4,y=u.getUint16()),s.maxp.data[4]=p>>8,s.maxp.data[5]=255&p;var w=function(e,t,a,r){var i={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};if(e&&n(e,i),t&&n(t,i),e&&function(a,r){if(!a.tooComplexToFollowFunctions){if(a.functionsDefined.length>r)return(0,j.warn)("TT: more functions defined than expected"),a.hintsValid=!1;for(let e=0,t=a.functionsUsed.length;e<t;e++){if(e>r)return(0,j.warn)("TT: invalid function id: "+e),a.hintsValid=!1;if(a.functionsUsed[e]&&!a.functionsDefined[e])return(0,j.warn)("TT: undefined function: "+e),a.hintsValid=!1}}}(i,r),a&&1&a.length){const e=new Uint8Array(a.length+1);e.set(a.data),a.data=e}return i.hintsValid}(s.fpgm,s.prep,s["cvt "],b);if(w||(delete s.fpgm,delete s.prep,delete s["cvt "]),function(e,t,a,r,i,n){if(!t)return a&&(a.data=null);e.pos=(e.start||0)+t.offset,e.pos+=4,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2,e.pos+=2;var s=e.getUint16();e.pos+=8,e.pos+=2;let o=e.getUint16();0===s||2&(r.data[44]<<8)+r.data[45]||(t.data[22]=0,t.data[23]=0),o>i&&((0,j.info)(`The numOfMetrics (${o}) should not be greater than the numGlyphs (${i}).`),o=i,t.data[34]=(65280&o)>>8,t.data[35]=255&o);s=i-o-(a.length-4*o>>1);if(0<s){const e=new Uint8Array(a.length+2*s);e.set(a.data),n&&(e[a.length]=a.data[2],e[a.length+1]=a.data[3]),a.data=e}}(u,s.hhea,s.hmtx,s.head,p,m),!s.head)throw new j.FormatError('Required "head" table is not found');var v=s.head,x=g,S=c?s.loca.length:0,A=v.data,v=(A[0]<<24)+(A[1]<<16)+(A[2]<<8)+A[3],k=(v>>16!=1&&((0,j.info)("Attempting to fix invalid version in head table: "+v),A[0]=0,A[1]=1,A[2]=0,A[3]=0),(A[50]<<8)+A[51]);if(k<0||1<k){(0,j.info)("Attempting to fix invalid indexToLocFormat in head table: "+k);const v=x+1;if(S===v<<1)A[50]=0,A[51]=0;else{if(S!==v<<2)throw new j.FormatError("Could not fix indexToLocFormat: "+k);A[50]=0,A[51]=1}}let C=Object.create(null);if(c){const r=(s.head.data[50]<<8)+s.head.data[51],u=function(e,t,a,r,i,n,s){let o,l,c;c=r?(o=4,l=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},function(e,t,a){e[t]=a>>>24&255,e[t+1]=a>>16&255,e[t+2]=a>>8&255,e[t+3]=255&a}):(o=2,l=function(e,t){return e[t]<<9|e[t+1]<<1},function(e,t,a){e[t]=a>>9&255,e[t+1]=a>>1&255});var h=n?a+1:a,r=o*(1+h),u=new Uint8Array(r),d=(u.set(e.data.subarray(0,r)),e.data=u,t.data),f=d.length,g=new Uint8Array(f);let p,m;var b=[];for(p=0,m=0;p<a+1;p++,m+=o){let e=l(u,m);e>f&&(e=f),b.push({index:p,offset:e,endOffset:0})}for(b.sort((e,t)=>e.offset-t.offset),p=0;p<a;p++)b[p].endOffset=b[p+1].offset;for(b.sort((e,t)=>e.index-t.index),p=0;p<a;p++){const{offset:e,endOffset:t}=b[p];if(0!==e||0!==t)break;const a=b[p+1].offset;if(0!==a){b[p].endOffset=a;break}}var y=Object.create(null);let w=0;for(c(u,0,w),p=0,m=o;p<a;p++,m+=o){const e=function(n,e,t,s,o,l){var c={length:0,sizeOfInstructions:0};if(!(e<0||e>=n.length||t>n.length||t-e<=12)){var h=n.subarray(e,t),n=Q(h[2],h[3]),e=Q(h[4],h[5]),t=Q(h[6],h[7]),u=Q(h[8],h[9]),d=(t<n&&(J(h,2,t),J(h,6,n)),u<e&&(J(h,4,u),J(h,8,e)),Q(h[0],h[1]));if(d<0)d<-1||(s.set(h,o),c.length=h.length);else{let a,r=10,e=0;for(a=0;a<d;a++)e=1+(h[r]<<8|h[r+1]),r+=2;t=r,n=h[r]<<8|h[r+1],u=(c.sizeOfInstructions=n,r+=2+n);let i=0;for(a=0;a<e;a++){const n=h[r++];192&n&&(h[r-1]=63&n);let e=2,t=(2&n?e=1:16&n&&(e=0),2);4&n?t=1:32&n&&(t=0);const s=e+t;if(i+=s,8&n){const n=h[r++];0===n&&(h[r-1]^=8),a+=n,i+=n*s}}if(0!==i){let e=r+i;e>h.length||(!l&&0<n?(s.set(h.subarray(0,t),o),s.set([0,0],o+t),s.set(h.subarray(u,e),o+t+2),e-=n,3<h.length-e&&(e=e+3&-4),c.length=e):3<h.length-e?(e=e+3&-4,s.set(h.subarray(0,e),o),c.length=e):(s.set(h,o),c.length=h.length))}}}return c}(d,b[p].offset,b[p].endOffset,g,w,i),t=e.length;0===t&&(y[p]=!0),e.sizeOfInstructions>s&&(s=e.sizeOfInstructions),w+=t,c(u,m,w)}if(0===w){const e=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);for(p=0,m=o;p<h;p++,m+=o)c(u,m,e.length);t.data=e}else if(n){const a=l(u,o);g.length>a+w?t.data=g.subarray(0,a+w):(t.data=new Uint8Array(a+w),t.data.set(g.subarray(0,w))),t.data.set(g.subarray(0,a),w),c(e.data,u.length-o,w+a)}else t.data=g.subarray(0,w);return{missingGlyphs:y,maxSizeOfInstructions:s}}(s.loca,s.glyf,g,r,w,m,y);C=u.missingGlyphs,65536<=h&&22<=s.maxp.length&&(s.maxp.data[26]=u.maxSizeOfInstructions>>8,s.maxp.data[27]=255&u.maxSizeOfInstructions)}if(!s.hhea)throw new j.FormatError('Required "hhea" table is not found');0===s.hhea.data[10]&&0===s.hhea.data[11]&&(s.hhea.data[10]=255,s.hhea.data[11]=255);v={unitsPerEm:(s.head.data[18]<<8)+s.head.data[19],yMax:Q(s.head.data[42],s.head.data[43]),yMin:Q(s.head.data[38],s.head.data[39]),ascent:Q(s.hhea.data[4],s.hhea.data[5]),descent:Q(s.hhea.data[6],s.hhea.data[7]),lineGap:Q(s.hhea.data[8],s.hhea.data[9])};if(this.ascent=v.ascent/v.unitsPerEm,this.descent=v.descent/v.unitsPerEm,this.lineGap=v.lineGap/v.unitsPerEm,this.cssFontInfo?.lineHeight?(this.lineHeight=this.cssFontInfo.metrics.lineHeight,this.lineGap=this.cssFontInfo.metrics.lineGap):this.lineHeight=this.ascent-this.descent+this.lineGap,s.post){var F=s.post,O=i,L=g;const B=(u.start||0)+F.offset;var $=(u.pos=B)+F.length,I=u.getInt32();let e;u.skip(28);let t,a=!0;switch(I){case 65536:e=X.MacStandardGlyphOrdering;break;case 131072:const F=u.getUint16();if(F!==L)a=!1;else{const B=[];for(t=0;t<F;++t){const F=u.getUint16();if(32768<=F){a=!1;break}B.push(F)}if(a){for(var T=[],M=[];u.pos<$;){const F=u.getByte();for(M.length=F,t=0;t<F;++t)M[t]=String.fromCharCode(u.getByte());T.push(M.join(""))}for(e=[],t=0;t<F;++t){const F=B[t];F<258?e.push(X.MacStandardGlyphOrdering[F]):e.push(T[F-258])}}}break;case 196608:break;default:(0,j.warn)("Unknown/unsupported post table version "+I),a=!1,O.defaultEncoding&&(e=O.defaultEncoding)}O.glyphNames=e}s.post={tag:"post",data:se(i)};const P=[];function N(e){return!C[e]}if(i.composite){const r=i.cidToGidMap||[],u=0===r.length;i.cMap.forEach(function(e,t){if(65535<(t="string"==typeof t?ae(e,t,!0):t))throw new j.FormatError("Max size of CID is 65,535");let a=-1;u?a=t:void 0!==r[t]&&(a=r[t]),0<=a&&a<g&&N(a)&&(P[e]=a)})}else{const r=function(r,i,n,s){if(!r)return(0,j.warn)("No cmap table available."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};let o,l=(i.start||0)+r.offset;i.pos=l,i.skip(2);var c=i.getUint16();let h,u=!1;for(let a=0;a<c;a++){const j=i.getUint16(),o=i.getUint16(),l=i.getInt32()>>>0;let t=!1;if(h?.platformId!==j||h?.encodingId!==o){if(0!==j||0!==o&&1!==o&&3!==o)if(1===j&&0===o)t=!0;else if(3!==j||1!==o||!s&&h){if(n&&3===j&&0===o){let e=t=!0;if(a<c-1){const r=i.peekBytes(2);(r[0]<<8)+r[1]<j&&(e=!1)}e&&(u=!0)}}else t=!0,n||(u=!0);else t=!0;if(t&&(h={platformId:j,encodingId:o,offset:l}),u)break}}if(h&&(i.pos=l+h.offset),!h||-1===i.peekByte())return(0,j.warn)("Could not find a preferred cmap table."),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};r=i.getUint16();let e=!1;var d=[];let f,g;if(0===r){for(i.skip(4),f=0;f<256;f++){const r=i.getByte();r&&d.push({charCode:f,glyphId:r})}e=!0}else if(2===r){i.skip(4);const r=[];let t=0;for(let e=0;e<256;e++){const j=i.getUint16()>>3;r.push(j),t=Math.max(j,t)}const j=[];for(let e=0;e<=t;e++)j.push({firstCode:i.getUint16(),entryCount:i.getUint16(),idDelta:Q(i.getByte(),i.getByte()),idRangePos:i.pos+i.getUint16()});for(let e=0;e<256;e++)if(0===r[e])i.pos=j[0].idRangePos+2*e,g=i.getUint16(),d.push({charCode:e,glyphId:g});else{const s=j[r[e]];for(f=0;f<s.entryCount;f++){const r=(e<<8)+f+s.firstCode;i.pos=s.idRangePos+2*f,0!==(g=i.getUint16())&&(g=(g+s.idDelta)%65536),d.push({charCode:r,glyphId:g})}}}else if(4===r){i.skip(4);const r=i.getUint16()>>1,n=(i.skip(6),[]);let e;for(e=0;e<r;e++)n.push({end:i.getUint16()});for(i.skip(2),e=0;e<r;e++)n[e].start=i.getUint16();for(e=0;e<r;e++)n[e].delta=i.getUint16();let t,a=0;for(e=0;e<r;e++){o=n[e];const l=i.getUint16();l?(t=(l>>1)-(r-e),o.offsetIndex=t,a=Math.max(a,t+o.end-o.start+1)):o.offsetIndex=-1}const h=[];for(f=0;f<a;f++)h.push(i.getUint16());for(e=0;e<r;e++){o=n[e],l=o.start;const r=o.end,i=o.delta;for(t=o.offsetIndex,f=l;f<=r;f++)65535!==f&&(g=(g=t<0?f:h[t+f-l])+i&65535,d.push({charCode:f,glyphId:g}))}}else if(6===r){i.skip(4);const r=i.getUint16(),n=i.getUint16();for(f=0;f<n;f++){g=i.getUint16();const n=r+f;d.push({charCode:n,glyphId:g})}}else{if(12!==r)return(0,j.warn)("cmap table has unsupported format: "+r),{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1};{i.skip(10);const r=i.getInt32()>>>0;for(f=0;f<r;f++){const r=i.getInt32()>>>0,n=i.getInt32()>>>0;let t=i.getInt32()>>>0;for(let e=r;e<=n;e++)d.push({charCode:e,glyphId:t++})}}}d.sort(function(e,t){return e.charCode-t.charCode});for(let e=1;e<d.length;e++)d[e-1].charCode===d[e].charCode&&(d.splice(e,1),e--);return{platformId:h.platformId,encodingId:h.encodingId,mappings:d,hasShortCmap:e}}(s.cmap,u,this.isSymbolicFont,i.hasEncoding),U=r.platformId,d=r.encodingId,f=r.mappings;let a=[],t=!1;if(!i.hasEncoding||"MacRomanEncoding"!==i.baseEncodingName&&"WinAnsiEncoding"!==i.baseEncodingName||(a=(0,q.getEncoding)(i.baseEncodingName)),i.hasEncoding&&!this.isSymbolicFont&&(3===U&&1===d||1===U&&0===d)){const r=(0,H.getGlyphsUnicode)();for(let t=0;t<256;t++){var E=(void 0!==this.differences[t]?this.differences:a.length&&""!==a[t]?a:q.StandardEncoding)[t];if(E){const H=(0,X.recoverGlyphName)(E,r);let e;if(3===U&&1===d?e=r[H]:1===U&&0===d&&(e=q.MacRomanEncoding.indexOf(H)),void 0===e){if(!i.glyphNames&&i.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof z.IdentityToUnicodeMap)){const r=this.toUnicode.get(t);r&&(e=r.codePointAt(0))}if(void 0===e)continue}for(const r of f)if(r.charCode===e){P[t]=r.glyphId;break}}}}else if(0===U){for(const r of f)P[r.charCode]=r.glyphId;t=!0}else for(const r of f){let e=r.charCode;3===U&&61440<=e&&e<=61695&&(e&=255),P[e]=r.glyphId}if(i.glyphNames&&(a.length||this.differences.length))for(let e=0;e<256;++e)if(t||void 0===P[e]){const u=this.differences[e]||a[e];if(u){const j=i.glyphNames.indexOf(u);0<j&&N(j)&&(P[e]=j)}}}0===P.length&&(P[0]=0);let D=p-1;if(m||(D=0),!i.cssFontInfo){const r=re(P,N,D,this.toUnicode);this.toFontChar=r.toFontChar,s.cmap={tag:"cmap",data:ie(r.charCodeToGlyphId,r.toUnicodeExtraMap,p)},!s["OS/2"]||(x=s["OS/2"],(S=u).pos=(S.start||0)+x.offset,k=S.getUint16(),S.skip(60),A=S.getUint16(),k<4&&768&A)||S.getUint16()>S.getUint16()||(S.skip(6),0===S.getUint16())?s["OS/2"]={tag:"OS/2",data:ne(i,r.charCodeToGlyphId,v)}:x.data[8]=x.data[9]=0}if(!c)try{l=new Y.Stream(s["CFF "].data),(o=new U.CFFParser(l,i,X.SEAC_ANALYSIS_ENABLED).parse()).duplicateFirstGlyph();const r=new U.CFFCompiler(o);s["CFF "].data=r.compile()}catch{(0,j.warn)("Failed to compile font "+i.loadedName)}if(s.name){const[u,j]=a(s.name);s.name.data=oe(r,u),this.psName=u[0][6]||null,i.composite||function(e,t,a){if(!e.isInternalFont&&!e.hasIncludedToUnicodeMap&&!e.hasEncoding&&!(e.toUnicode instanceof z.IdentityToUnicodeMap)&&t&&0!==a.length&&e.defaultEncoding!==q.WinAnsiEncoding){for(const e of a)if(!te(e))return;var r=q.WinAnsiEncoding,i=[],n=(0,H.getGlyphsUnicode)();for(const e in r){const t=r[e];if(""!==t){const a=n[t];void 0!==a&&(i[e]=String.fromCharCode(a))}}0<i.length&&e.toUnicode.amend(i)}}(i,this.isSymbolicFont,j)}else s.name={tag:"name",data:oe(this.name)};var _=new K.OpenTypeFileBuilder(e.version);for(const r in s)_.addTable(r,s[r].data);return _.toArray()}convert(e,t,a){if(a.fixedPitch=!1,a.builtInEncoding){var r=a,i=a.builtInEncoding;if(!r.isInternalFont&&!(r.hasIncludedToUnicodeMap||i===r.defaultEncoding||r.toUnicode instanceof z.IdentityToUnicodeMap)){var n=[],s=(0,H.getGlyphsUnicode)();for(const y in i)if(!r.hasEncoding||!r.baseEncodingName&&void 0===r.differences[y]){const w=i[y],H=(0,v.getUnicodeForGlyph)(w,s);-1!==H&&(n[y]=String.fromCharCode(H))}0<n.length&&r.toUnicode.amend(n)}}let o=1;t instanceof G.CFFFont&&(o=t.numGlyphs-1);var l=t.getGlyphMapping(a);let c=null,h=l,u=null;a.cssFontInfo||(c=re(l,t.hasGlyphId.bind(t),o,this.toUnicode),this.toFontChar=c.toFontChar,h=c.charCodeToGlyphId,u=c.toUnicodeExtraMap);const d=t.numGlyphs;function f(e,t){for(const a in e)if(t===e[a])return 0|a;return c.charCodeToGlyphId[c.nextAvailableFontCharCode]=t,c.nextAvailableFontCharCode++}var g=t.seacs;if(c&&X.SEAC_ANALYSIS_ENABLED&&g?.length){const e=a.fontMatrix||j.FONT_IDENTITY_MATRIX,o=t.getCharset(),X=Object.create(null);for(var p in g){const a=g[p|=0],j=q.StandardEncoding[a[2]],v=q.StandardEncoding[a[3]],H=o.indexOf(j),z=o.indexOf(v);if(!(H<0||z<0)){const G={x:a[0]*e[0]+a[1]*e[2]+e[4],y:a[0]*e[1]+a[1]*e[3]+e[5]},h=function(e,t){let a=null;for(const r in e)t===e[r]&&(a||=[]).push(0|r);return a}(l,p);if(h)for(const e of h){const t=c.charCodeToGlyphId,a=f(t,H),j=f(t,z);X[e]={baseFontCharCode:a,accentFontCharCode:j,accentOffset:G}}}}a.seacMap=X}var m=1/(a.fontMatrix||j.FONT_IDENTITY_MATRIX)[0],b=new K.OpenTypeFileBuilder("OTTO");return b.addTable("CFF ",t.data),b.addTable("OS/2",ne(a,h)),b.addTable("cmap",ie(h,u,d)),b.addTable("head","\0\0\0\0\0\0\0\0\0\0_<õ\0\0"+x(m)+"\0\0\0\0ž\v~'\0\0\0\0ž\v~'\0\0"+x(a.descent)+"ÿ"+x(a.ascent)+A(a.italicAngle?2:0)+"\0\0\0\0\0\0\0"),b.addTable("hhea","\0\0\0"+x(a.ascent)+x(a.descent)+"\0\0ÿÿ\0\0\0\0\0\0"+x(a.capHeight)+x(Math.tan(a.italicAngle)*a.xHeight)+"\0\0\0\0\0\0\0\0\0\0\0\0"+A(d)),b.addTable("hmtx",function(){const a=t.charstrings,r=t.cff?t.cff.widths:null;let i="\0\0\0\0";for(let t=1,e=d;t<e;t++){let e=0;if(a){const r=a[t-1];e="width"in r?r.width:0}else r&&(e=Math.ceil(r[t]||0));i+=A(e)+A(0)}return i}()),b.addTable("maxp","\0\0P\0"+A(d)),b.addTable("name",oe(e)),b.addTable("post",se(a)),b.toArray()}get spaceWidth(){const t=["space","minus","one","i","I"];let a;for(const r of t){if(r in this.widths){a=this.widths[r];break}const t=(0,H.getGlyphsUnicode)()[r];let e=0;if((e=!(e=this.composite&&this.cMap.contains(t)&&"string"==typeof(e=this.cMap.lookup(t))?ae(t,e):e)&&this.toUnicode?this.toUnicode.charCodeOf(t):e)<=0&&(e=t),a=this.widths[e])break}return(0,j.shadow)(this,"spaceWidth",a||this.defaultWidth)}_charToGlyph(e,t=!1){let a,r,i,n=this._glyphCache[e];if(n?.isSpace===t)return n;let s=e;this.cMap?.contains(e)&&"string"==typeof(s=this.cMap.lookup(e))&&(s=ae(e,s)),"number"!=typeof(r=this.widths[s])&&(r=this.defaultWidth);var o=this.vmetrics?.[s];let l=this.toUnicode.get(e)||e,c=("number"==typeof l&&(l=String.fromCharCode(l)),void 0!==this.toFontChar[e]);if(a=this.toFontChar[e]||e,this.missingFile){const t=this.differences[e]||this.defaultEncoding[e];".notdef"!==t&&""!==t||"Type1"!==this.type||(a=32),a=(0,v.mapSpecialUnicodeValues)(a)}this.isType3Font&&(i=a);let h=null;if(this.seacMap?.[e]){c=!0;const t=this.seacMap[e];a=t.baseFontCharCode,h={fontChar:String.fromCodePoint(t.accentFontCharCode),offset:t.accentOffset}}let u="";return"number"==typeof a&&(a<=1114111?u=String.fromCodePoint(a):(0,j.warn)("charToGlyph - invalid fontCharCode: "+a)),n=new m(e,u,l,h,r,o,i,t,c),this._glyphCache[e]=n}charsToGlyphs(a){var r=this._charsCache[a];if(r)return r;if(r=[],this.cMap){var t=Object.create(null),i=a.length;let e=0;for(;e<i;){this.cMap.readCharCode(a,e,t);var{charcode:n,length:s}=t,n=(e+=s,this._charToGlyph(n,1===s&&32===a.charCodeAt(e-1)));r.push(n)}}else for(let e=0,t=a.length;e<t;++e){var o=a.charCodeAt(e),o=this._charToGlyph(o,32===o);r.push(o)}return this._charsCache[a]=r}getCharPositions(a){var r=[];if(this.cMap){var t=Object.create(null);let e=0;for(;e<a.length;){this.cMap.readCharCode(a,e,t);var i=t.length;r.push([e,e+i]),e+=i}}else for(let e=0,t=a.length;e<t;++e)r.push([e,e+1]);return r}get glyphCacheValues(){return Object.values(this._glyphCache)}encodeString(a){const r=[],i=[],n=()=>r.length%2==1,s=this.toUnicode instanceof z.IdentityToUnicodeMap?e=>this.toUnicode.charCodeOf(e):e=>this.toUnicode.charCodeOf(String.fromCodePoint(e));for(let e=0,t=a.length;e<t;e++){var o=a.codePointAt(e);if(55295<o&&(o<57344||65533<o)&&e++,this.toUnicode){const a=s(o);if(-1!==a){n()&&(r.push(i.join("")),i.length=0);for(let e=(this.cMap?this.cMap.getCharCodeLength(a):1)-1;0<=e;e--)i.push(String.fromCharCode(a>>8*e&255));continue}}n()||(r.push(i.join("")),i.length=0),i.push(String.fromCodePoint(o))}return r.push(i.join("")),r}},e.ErrorFont=class{constructor(e){this.error=e,this.loadedName="g_font_error",this.missingFile=!0}charsToGlyphs(){return[]}encodeString(e){return[e]}exportData(e=0){return{error:this.error}}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CFFTopDict=t.CFFStrings=t.CFFStandardStrings=t.CFFPrivateDict=t.CFFParser=t.CFFIndex=t.CFFHeader=t.CFFFDSelect=t.CFFCompiler=t.CFFCharset=t.CFF=void 0;var g=a(2),d=a(36),f=a(37);const r=[".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"],h=(t.CFFStandardStrings=r,[null,{id:"hstem",min:2,stackClearing:!0,stem:!0},null,{id:"vstem",min:2,stackClearing:!0,stem:!0},{id:"vmoveto",min:1,stackClearing:!0},{id:"rlineto",min:2,resetStack:!0},{id:"hlineto",min:1,resetStack:!0},{id:"vlineto",min:1,resetStack:!0},{id:"rrcurveto",min:6,resetStack:!0},null,{id:"callsubr",min:1,undefStack:!0},{id:"return",min:0,undefStack:!0},null,null,{id:"endchar",min:0,stackClearing:!0},null,null,null,{id:"hstemhm",min:2,stackClearing:!0,stem:!0},{id:"hintmask",min:0,stackClearing:!0},{id:"cntrmask",min:0,stackClearing:!0},{id:"rmoveto",min:2,stackClearing:!0},{id:"hmoveto",min:1,stackClearing:!0},{id:"vstemhm",min:2,stackClearing:!0,stem:!0},{id:"rcurveline",min:8,resetStack:!0},{id:"rlinecurve",min:8,resetStack:!0},{id:"vvcurveto",min:4,resetStack:!0},{id:"hhcurveto",min:4,resetStack:!0},null,{id:"callgsubr",min:1,undefStack:!0},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}]),u=[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(e,t){e[t-2]=e[t-2]+e[t-1]}},{id:"sub",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]-e[t-1]}},{id:"div",min:2,stackDelta:-1,stackFn(e,t){e[t-2]=e[t-2]/e[t-1]}},null,{id:"neg",min:1,stackDelta:0,stackFn(e,t){e[t-1]=-e[t-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(e,t){e[t-2]=e[t-2]*e[t-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:!0},{id:"flex",min:13,resetStack:!0},{id:"hflex1",min:9,resetStack:!0},{id:"flex1",min:11,resetStack:!0}];t.CFFParser=class{constructor(e,t,a){this.bytes=e.getBytes(),this.properties=t,this.seacAnalysisEnabled=!!a}parse(){const a=this.properties,r=new p,e=(this.cff=r,this.parseHeader()),i=this.parseIndex(e.endPos),n=this.parseIndex(i.endPos),t=this.parseIndex(n.endPos),s=this.parseIndex(t.endPos),o=this.parseDict(n.obj.get(0)),l=this.createDict(m,o,r.strings);r.header=e.obj,r.names=this.parseNameIndex(i.obj),r.strings=this.parseStringIndex(t.obj),r.topDict=l,r.globalSubrIndex=s.obj,this.parsePrivateDict(r.topDict),r.isCIDFont=l.hasName("ROS");var c=l.getByName("CharStrings"),c=this.parseIndex(c).obj,h=l.getByName("FontMatrix"),h=(h&&(a.fontMatrix=h),l.getByName("FontBBox"));let u,d;if(h&&(a.ascent=Math.max(h[3],h[1]),a.descent=Math.min(h[1],h[3]),a.ascentScaled=!0),r.isCIDFont){const a=this.parseIndex(l.getByName("FDArray")).obj;for(let e=0,t=a.count;e<t;++e){const i=a.get(e),n=this.createDict(m,this.parseDict(i),r.strings);this.parsePrivateDict(n),r.fdArray.push(n)}d=null,u=this.parseCharsets(l.getByName("charset"),c.count,r.strings,!0),r.fdSelect=this.parseFDSelect(l.getByName("FDSelect"),c.count)}else u=this.parseCharsets(l.getByName("charset"),c.count,r.strings,!1),d=this.parseEncoding(l.getByName("Encoding"),a,r.strings,u.charset);r.charset=u,r.encoding=d;h=this.parseCharStrings({charStrings:c,localSubrIndex:l.privateDict.subrsIndex,globalSubrIndex:s.obj,fdSelect:r.fdSelect,fdArray:r.fdArray,privateDict:l.privateDict});return r.charStrings=h.charStrings,r.seacs=h.seacs,r.widths=h.widths,r}parseHeader(){let e=this.bytes;var t=e.length;let a=0;for(;a<t&&1!==e[a];)++a;if(a>=t)throw new g.FormatError("Invalid CFF header");0!==a&&((0,g.info)("cff data is shifted"),e=e.subarray(a),this.bytes=e);var r=e[0],i=e[1],n=e[2],s=e[3];return{obj:new o(r,i,n,s),endPos:n}}parseDict(n){let s=0;let t=[];for(var a=[],e=(s=0,n.length);s<e;){let e=n[s];e<=21?(12===e&&(e=e<<8|n[++s]),a.push([e,t]),t=[],++s):t.push(function(){let e=n[s++];if(30!==e)return 28===e?e=((e=n[s++])<<24|n[s++]<<16)>>16:29===e?e=(e=(e=(e=n[s++])<<8|n[s++])<<8|n[s++])<<8|n[s++]:32<=e&&e<=246?e-139:247<=e&&e<=250?256*(e-247)+n[s++]+108:251<=e&&e<=254?-256*(e-251)-n[s++]-108:((0,g.warn)('CFFParser_parseDict: "'+e+'" is a reserved command.'),NaN);{let e="";const t=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],a=n.length;for(;s<a;){const a=n[s++],r=a>>4,i=15&a;if(15==r)break;if(e+=t[r],15==i)break;e+=t[i]}return parseFloat(e)}}())}return a}parseIndex(a){const r=new c,i=this.bytes,e=i[a++]<<8|i[a++],n=[];let t,s,o=a;if(0!==e){const r=i[a++],l=a+(e+1)*r-1;for(t=0,s=e+1;t<s;++t){let t=0;for(let e=0;e<r;++e)t=(t<<=8)+i[a++];n.push(l+t)}o=n[e]}for(t=0,s=n.length-1;t<s;++t){const a=n[t],e=n[t+1];r.add(i.subarray(a,e))}return{obj:r,endPos:o}}parseNameIndex(a){var r=[];for(let e=0,t=a.count;e<t;++e){var i=a.get(e);r.push((0,g.bytesToString)(i))}return r}parseStringIndex(a){var r=new n;for(let e=0,t=a.count;e<t;++e){var i=a.get(e);r.add((0,g.bytesToString)(i))}return r}createDict(e,t,a){var r=new e(a);for(const[e,a]of t)r.setByKey(e,a);return r}parseCharString(a,r,i,n){if(!r||10<a.callDepth)return!1;let s=a.stackSize;var o=a.stack;let l=r.length;for(let e=0;e<l;){var c=r[e++];let t=null;if(12===c){const a=r[e++];0===a?(r[e-2]=139,r[e-1]=22,s=0):t=u[a]}else if(28===c)o[s]=(r[e]<<24|r[e+1]<<16)>>16,e+=2,s++;else if(14===c){if(4<=s&&(s-=4,this.seacAnalysisEnabled))return a.seac=o.slice(s,s+4),!1;t=h[c]}else if(32<=c&&c<=246)o[s]=c-139,s++;else if(247<=c&&c<=254)o[s]=c<251?(c-247<<8)+r[e]+108:-(c-251<<8)-r[e]-108,e++,s++;else if(255===c)o[s]=(r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3])/65536,e+=4,s++;else if(19===c||20===c){if(a.hints+=s>>1,0===a.hints){r.copyWithin(e-1,e,-1),--e,--l;continue}e+=a.hints+7>>3,s%=2,t=h[c]}else{if(10===c||29===c){const r=10===c?i:n;if(!r)return t=h[c],(0,g.warn)("Missing subrsIndex for "+t.id),!1;let e=32768;r.count<1240?e=107:r.count<33900&&(e=1131);const l=o[--s]+e;if(l<0||l>=r.count||isNaN(l))return t=h[c],(0,g.warn)("Out of bounds subrIndex for "+t.id),!1;if(a.stackSize=s,a.callDepth++,!this.parseCharString(a,r.get(l),i,n))return!1;a.callDepth--,s=a.stackSize;continue}if(11===c)return a.stackSize=s,!0;if(0===c&&e===r.length)r[e-1]=14,t=h[14];else{if(9===c){r.copyWithin(e-1,e,-1),--e,--l;continue}t=h[c]}}if(t){if(t.stem&&(a.hints+=s>>1,3===c||23===c?a.hasVStems=!0:!a.hasVStems||1!==c&&18!==c||((0,g.warn)("CFF stem hints are in wrong order"),r[e-1]=1===c?3:23)),"min"in t&&!a.undefStack&&s<t.min)return(0,g.warn)("Not enough parameters for "+t.id+"; actual: "+s+", expected: "+t.min),0===s&&(r[e-1]=14,!0);a.firstStackClearing&&t.stackClearing&&(a.firstStackClearing=!1,2<=(s-=t.min)&&t.stem?s%=2:1<s&&(0,g.warn)("Found too many parameters for stack-clearing command"),0<s)&&(a.width=o[s-1]),"stackDelta"in t?("stackFn"in t&&t.stackFn(o,s),s+=t.stackDelta):t.stackClearing?s=0:t.resetStack?(s=0,a.undefStack=!1):t.undefStack&&(s=0,a.undefStack=!0,a.firstStackClearing=!1)}}return l<r.length&&r.fill(14,l),a.stackSize=s,!0}parseCharStrings({charStrings:i,localSubrIndex:n,globalSubrIndex:s,fdSelect:o,fdArray:l,privateDict:c}){const h=[],u=[],d=i.count;for(let r=0;r<d;r++){const d=i.get(r),f={callDepth:0,stackSize:0,stack:[],undefStack:!0,hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1};let e=!0,t=null,a=c;if(o&&l.length){const i=o.getFDIndex(r);-1===i&&((0,g.warn)("Glyph index is not in fd select."),e=!1),i>=l.length&&((0,g.warn)("Invalid fd index for glyph index."),e=!1),e&&(a=l[i].privateDict,t=a.subrsIndex)}else n&&(t=n);if(e=e&&this.parseCharString(f,d,t,s),null!==f.width){const i=a.getByName("nominalWidthX");u[r]=i+f.width}else{const i=a.getByName("defaultWidthX");u[r]=i}null!==f.seac&&(h[r]=f.seac),e||i.set(r,new Uint8Array([14]))}return{charStrings:i,seacs:h,widths:u}}emptyPrivateDictionary(e){var t=this.createDict(b,[],e.strings);e.setByKey(18,[0,0]),e.privateDict=t}parsePrivateDict(e){var t,a,r;e.hasName("Private")?(r=e.getByName("Private"),Array.isArray(r)&&2===r.length?(t=r[0],r=r[1],0===t||r>=this.bytes.length?this.emptyPrivateDictionary(e):(t=this.bytes.subarray(r,r+t),t=this.parseDict(t),t=this.createDict(b,t,e.strings),0===(e.privateDict=t).getByName("ExpansionFactor")&&t.setByName("ExpansionFactor",.06),t.getByName("Subrs")&&(a=r+(r=t.getByName("Subrs")),0===r||a>=this.bytes.length?this.emptyPrivateDictionary(e):(r=this.parseIndex(a),t.subrsIndex=r.obj)))):e.removeByName("Private")):this.emptyPrivateDictionary(e)}parseCharsets(e,t,a,r){if(0===e)return new w(!0,y.ISO_ADOBE,d.ISOAdobeCharset);if(1===e)return new w(!0,y.EXPERT,d.ExpertCharset);if(2===e)return new w(!0,y.EXPERT_SUBSET,d.ExpertSubsetCharset);var i=this.bytes,n=e,s=i[e++],o=[r?0:".notdef"];let l,c,h;switch(--t,s){case 0:for(h=0;h<t;h++)l=i[e++]<<8|i[e++],o.push(r?l:a.get(l));break;case 1:for(;o.length<=t;)for(l=i[e++]<<8|i[e++],c=i[e++],h=0;h<=c;h++)o.push(r?l++:a.get(l++));break;case 2:for(;o.length<=t;)for(l=i[e++]<<8|i[e++],c=i[e++]<<8|i[e++],h=0;h<=c;h++)o.push(r?l++:a.get(l++));break;default:throw new g.FormatError("Unknown charset format")}var u=e,n=i.subarray(n,u);return new w(!1,s,o,n)}parseEncoding(e,a,r,t){const i=Object.create(null),n=this.bytes;let s,o,l,c=!1,h=null;if(0===e||1===e){c=!0;const a=(s=e)?f.ExpertEncoding:f.StandardEncoding;for(o=0,l=t.length;o<l;o++){const e=a.indexOf(t[o]);-1!==e&&(i[e]=o)}}else{const a=e;switch(127&(s=n[e++])){case 0:const a=n[e++];for(o=1;o<=a;o++)i[n[e++]]=o;break;case 1:const r=n[e++];let t=1;for(o=0;o<r;o++){const a=n[e++],r=n[e++];for(let e=a;e<=a+r;e++)i[e]=t++}break;default:throw new g.FormatError(`Unknown encoding format: ${s} in CFF`)}const f=e;if(128&s){n[a]&=127;{const u=n[e++];for(o=0;o<u;o++){const u=n[e++],d=(n[e++]<<8)+(255&n[e++]);i[u]=t.indexOf(r.get(d))}}}h=n.subarray(a,f)}return s&=127,new v(c,s,i,h)}parseFDSelect(e,t){const a=this.bytes,r=a[e++],i=[];let n;switch(r){case 0:for(n=0;n<t;++n){const t=a[e++];i.push(t)}break;case 3:var s=a[e++]<<8|a[e++];for(n=0;n<s;++n){let t=a[e++]<<8|a[e++];0===n&&0!==t&&((0,g.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover."),t=0);const r=a[e++],o=a[e]<<8|a[e+1];for(let e=t;e<o;++e)i.push(r)}e+=2;break;default:throw new g.FormatError(`parseFDSelect: Unknown format "${r}".`)}if(i.length!==t)throw new g.FormatError("parseFDSelect: Invalid font data.");return new x(r,i)}};class p{constructor(){this.header=null,this.names=[],this.topDict=null,this.strings=new n,this.globalSubrIndex=null,this.encoding=null,this.charset=null,this.charStrings=null,this.fdArray=[],this.fdSelect=null,this.isCIDFont=!1}duplicateFirstGlyph(){var e;65535<=this.charStrings.count?(0,g.warn)("Not enough space in charstrings to duplicate first glyph."):(e=this.charStrings.get(0),this.charStrings.add(e),this.isCIDFont&&this.fdSelect.fdSelect.push(this.fdSelect.fdSelect[0]))}hasGlyphId(e){return!(e<0||e>=this.charStrings.count)&&0<this.charStrings.get(e).length}}t.CFF=p;class o{constructor(e,t,a,r){this.major=e,this.minor=t,this.hdrSize=a,this.offSize=r}}t.CFFHeader=o;class n{constructor(){this.strings=[]}get(e){return 0<=e&&e<=390?r[e]:e-391<=this.strings.length?this.strings[e-391]:r[0]}getSID(e){var t=r.indexOf(e);return-1!==t?t:-1!==(t=this.strings.indexOf(e))?t+391:-1}add(e){this.strings.push(e)}get count(){return this.strings.length}}t.CFFStrings=n;class c{constructor(){this.objects=[],this.length=0}add(e){this.length+=e.length,this.objects.push(e)}set(e,t){this.length+=t.length-this.objects[e].length,this.objects[e]=t}get(e){return this.objects[e]}get count(){return this.objects.length}}t.CFFIndex=c;class i{constructor(e,t){this.keyToNameMap=e.keyToNameMap,this.nameToKeyMap=e.nameToKeyMap,this.defaults=e.defaults,this.types=e.types,this.opcodes=e.opcodes,this.order=e.order,this.strings=t,this.values=Object.create(null)}setByKey(e,t){if(!(e in this.keyToNameMap))return!1;if(0!==t.length){for(const a of t)if(isNaN(a))return(0,g.warn)(`Invalid CFFDict value: "${t}" for key "${e}".`),!0;const a=this.types[e];"num"!==a&&"sid"!==a&&"offset"!==a||(t=t[0]),this.values[e]=t}return!0}setByName(e,t){if(!(e in this.nameToKeyMap))throw new g.FormatError(`Invalid dictionary name "${e}"`);this.values[this.nameToKeyMap[e]]=t}hasName(e){return this.nameToKeyMap[e]in this.values}getByName(e){var t;if(e in this.nameToKeyMap)return((t=this.nameToKeyMap[e])in this.values?this.values:this.defaults)[t];throw new g.FormatError(`Invalid dictionary name ${e}"`)}removeByName(e){delete this.values[this.nameToKeyMap[e]]}static createTables(e){var t={keyToNameMap:{},nameToKeyMap:{},defaults:{},types:{},opcodes:{},order:[]};for(const a of e){const e=Array.isArray(a[0])?(a[0][0]<<8)+a[0][1]:a[0];t.keyToNameMap[e]=a[1],t.nameToKeyMap[a[1]]=e,t.types[e]=a[2],t.defaults[e]=a[3],t.opcodes[e]=Array.isArray(a[0])?a[0]:[a[0]],t.order.push(e)}return t}}const s=[[[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 m extends i{static get tables(){return(0,g.shadow)(this,"tables",this.createTables(s))}constructor(e){super(m.tables,e),this.privateDict=null}}t.CFFTopDict=m;const l=[[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 b extends i{static get tables(){return(0,g.shadow)(this,"tables",this.createTables(l))}constructor(e){super(b.tables,e),this.subrsIndex=null}}t.CFFPrivateDict=b;const y={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class w{constructor(e,t,a,r){this.predefined=e,this.format=t,this.charset=a,this.raw=r}}t.CFFCharset=w;class v{constructor(e,t,a,r){this.predefined=e,this.format=t,this.encoding=a,this.raw=r}}class x{constructor(e,t){this.format=e,this.fdSelect=t}getFDIndex(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}}t.CFFFDSelect=x;class S{constructor(){this.offsets=Object.create(null)}isTracking(e){return e in this.offsets}track(e,t){if(e in this.offsets)throw new g.FormatError("Already tracking location of "+e);this.offsets[e]=t}offset(e){for(const t in this.offsets)this.offsets[t]+=e}setEntryLocation(e,a,r){if(!(e in this.offsets))throw new g.FormatError("Not tracking location of "+e);var i=r.data,n=this.offsets[e];for(let e=0,t=a.length;e<t;++e){const r=5*e+n,o=r+1,l=r+2,c=r+3,h=r+4;if(29!==i[r]||0!==i[o]||0!==i[l]||0!==i[c]||0!==i[h])throw new g.FormatError("writing to an offset that is not empty");var s=a[e];i[r]=29,i[o]=s>>24&255,i[l]=s>>16&255,i[c]=s>>8&255,i[h]=255&s}}}class A{constructor(e){this.cff=e}compile(){const e=this.cff,t={data:[],length:0,add(e){try{this.data.push(...e)}catch{this.data=this.data.concat(e)}this.length=this.data.length}},a=this.compileHeader(e.header);t.add(a);var r=this.compileNameIndex(e.names);if(t.add(r),e.isCIDFont&&e.topDict.hasName("FontMatrix")){const t=e.topDict.getByName("FontMatrix");e.topDict.removeByName("FontMatrix");for(const a of e.fdArray){let e=t.slice(0);a.hasName("FontMatrix")&&(e=g.Util.transform(e,a.getByName("FontMatrix"))),a.setByName("FontMatrix",e)}}16<e.topDict.getByName("XUID")?.length&&e.topDict.removeByName("XUID"),e.topDict.setByName("charset",0);var r=this.compileTopDicts([e.topDict],t.length,e.isCIDFont),i=(t.add(r.output),r.trackers[0]),n=this.compileStringIndex(e.strings.strings),n=(t.add(n),this.compileIndex(e.globalSubrIndex));if(t.add(n),e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)i.setEntryLocation("Encoding",[e.encoding.format],t);else{const a=this.compileEncoding(e.encoding);i.setEntryLocation("Encoding",[t.length],t),t.add(a)}n=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont),i.setEntryLocation("charset",[t.length],t),t.add(n),n=this.compileCharStrings(e.charStrings);if(i.setEntryLocation("CharStrings",[t.length],t),t.add(n),e.isCIDFont){i.setEntryLocation("FDSelect",[t.length],t);const a=this.compileFDSelect(e.fdSelect),g=(t.add(a),r=this.compileTopDicts(e.fdArray,t.length,!0),i.setEntryLocation("FDArray",[t.length],t),t.add(r.output),r.trackers);this.compilePrivateDicts(e.fdArray,g,t)}return this.compilePrivateDicts([e.topDict],[i],t),t.add([0]),t.data}encodeNumber(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}static get EncodeFloatRegExp(){return(0,g.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(e){let t=e.toString();var a=A.EncodeFloatRegExp.exec(t);if(a){const r=parseFloat("1e"+((a[2]?+a[2]:0)+a[1].length));t=(Math.round(e*r)/r).toString()}let r,i,n="";for(r=0,i=t.length;r<i;++r){const e=t[r];n+="e"===e?"-"===t[++r]?"c":"b":"."===e?"a":"-"===e?"e":e}n+=1&n.length?"f":"ff";var s=[30];for(r=0,i=n.length;r<i;r+=2)s.push(parseInt(n.substring(r,r+2),16));return s}encodeInteger(e){return-107<=e&&e<=107?[e+139]:108<=e&&e<=1131?[247+((e-=108)>>8),255&e]:-1131<=e&&e<=-108?[251+((e=-e-108)>>8),255&e]:-32768<=e&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e]}compileHeader(e){return[e.major,e.minor,4,e.offSize]}compileNameIndex(e){var t=new c;for(const r of e){const e=Math.min(r.length,127);let a=new Array(e);for(let t=0;t<e;t++){let e=r[t];(e<"!"||"~"<e||"["===e||"]"===e||"("===e||")"===e||"{"===e||"}"===e||"<"===e||">"===e||"/"===e||"%"===e)&&(e="_"),a[t]=e}""===(a=a.join(""))&&(a="Bad_Font_Name"),t.add((0,g.stringToBytes)(a))}return this.compileIndex(t)}compileTopDicts(e,t,a){var r=[];let i=new c;for(const n of e){a&&(n.removeByName("CIDFontVersion"),n.removeByName("CIDFontRevision"),n.removeByName("CIDFontType"),n.removeByName("CIDCount"),n.removeByName("UIDBase"));const e=new S,s=this.compileDict(n,e);r.push(e),i.add(s),e.offset(t)}return{trackers:r,output:i=this.compileIndex(i,r)}}compilePrivateDicts(a,r,i){for(let t=0,e=a.length;t<e;++t){var n=a[t],s=n.privateDict;if(!s||!n.hasName("Private"))throw new g.FormatError("There must be a private dictionary.");var n=new S,o=this.compileDict(s,n);let e=i.length;if(n.offset(e),o.length||(e=0),r[t].setEntryLocation("Private",[o.length,e],i),i.add(o),s.subrsIndex&&s.hasName("Subrs")){const a=this.compileIndex(s.subrsIndex);n.setEntryLocation("Subrs",[o.length],i),i.add(a)}}}compileDict(i,n){var s=[];for(const h of i.order)if(h in i.values){let a=i.values[h],r=i.types[h];if(Array.isArray(r)||(r=[r]),0!==(a=Array.isArray(a)?a:[a]).length){for(let e=0,t=r.length;e<t;++e){var o=r[e],l=a[e];switch(o){case"num":case"sid":s.push(...this.encodeNumber(l));break;case"offset":var c=i.keyToNameMap[h];n.isTracking(c)||n.track(c,s.length),s.push(29,0,0,0,0);break;case"array":case"delta":s.push(...this.encodeNumber(l));for(let e=1,t=a.length;e<t;++e)s.push(...this.encodeNumber(a[e]));break;default:throw new g.FormatError("Unknown data type of "+o)}}s.push(...i.opcodes[h])}}return s}compileStringIndex(e){var t=new c;for(const a of e)t.add((0,g.stringToBytes)(a));return this.compileIndex(t)}compileCharStrings(t){var a=new c;for(let e=0;e<t.count;e++){var r=t.get(e);0!==r.length?a.add(r):a.add(new Uint8Array([139,14]))}return this.compileIndex(a)}compileCharset(i,e,n,s){let o;e-=1;if(s)o=new Uint8Array([2,0,0,e>>8&255,255&e]);else{let a=(o=new Uint8Array(1+2*e))[0]=0;const s=i.charset.length;let r=!1;for(let t=1;t<o.length;t+=2){let e=0;if(a<s){const s=i.charset[a++];-1===(e=n.getSID(s))&&(e=0,r||(r=!0,(0,g.warn)(`Couldn't find ${s} in CFF strings`)))}o[t]=e>>8&255,o[t+1]=255&e}}return this.compileTypedArray(o)}compileEncoding(e){return this.compileTypedArray(e.raw)}compileFDSelect(t){const a=t.format;let r,i;switch(a){case 0:for((r=new Uint8Array(1+t.fdSelect.length))[0]=a,i=0;i<t.fdSelect.length;i++)r[i+1]=t.fdSelect[i];break;case 3:let e=t.fdSelect[0];var n=[a,0,0,0,0,e];for(i=1;i<t.fdSelect.length;i++){const a=t.fdSelect[i];a!==e&&(n.push(i>>8&255,255&i,a),e=a)}var s=(n.length-3)/3;n[1]=s>>8&255,n[2]=255&s,n.push(i>>8&255,255&i),r=new Uint8Array(n)}return this.compileTypedArray(r)}compileTypedArray(e){return Array.from(e)}compileIndex(e,t=[]){var a=e.objects,r=a.length;if(0===r)return[0,0];var i=[r>>8&255,255&r];let n,s,o=1;for(n=0;n<r;++n)o+=a[n].length;s=o<256?1:o<65536?2:o<16777216?3:4,i.push(s);let l=1;for(n=0;n<r+1;n++)1==s?i.push(255&l):2==s?i.push(l>>8&255,255&l):3==s?i.push(l>>16&255,l>>8&255,255&l):i.push(l>>>24&255,l>>16&255,l>>8&255,255&l),a[n]&&(l+=a[n].length);for(n=0;n<r;n++)t[n]&&t[n].offset(i.length),i.push(...a[n]);return i}}t.CFFCompiler=A},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ISOAdobeCharset=t.ExpertSubsetCharset=t.ExpertCharset=void 0,t.ISOAdobeCharset=[".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"],t.ExpertCharset=[".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"],t.ExpertSubsetCharset=[".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,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ZapfDingbatsEncoding=t.WinAnsiEncoding=t.SymbolSetEncoding=t.StandardEncoding=t.MacRomanEncoding=t.ExpertEncoding=void 0,t.getEncoding=function(e){switch(e){case"WinAnsiEncoding":return s;case"StandardEncoding":return n;case"MacRomanEncoding":return i;case"SymbolSetEncoding":return o;case"ZapfDingbatsEncoding":return l;case"ExpertEncoding":return a;case"MacExpertEncoding":return r;default:return null}};const a=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],r=(t.ExpertEncoding=a,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""]),i=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],n=(t.MacRomanEncoding=i,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""]),s=(t.StandardEncoding=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","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"]),o=(t.WinAnsiEncoding=s,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""]),l=(t.SymbolSetEncoding=o,["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""]);t.ZapfDingbatsEncoding=l},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SEAC_ANALYSIS_ENABLED=t.MacStandardGlyphOrdering=t.FontFlags=void 0,t.normalizeFontName=function(e){return e.replaceAll(/[,_]/g,"-").replaceAll(/\s/g,"")},t.recoverGlyphName=f,t.type1FontGlyphMapping=function(e,t,a){var r=Object.create(null);let i,n,s;var o=!!(e.flags&d.Symbolic);if(e.isInternalFont)for(s=t,n=0;n<s.length;n++)i=a.indexOf(s[n]),r[n]=0<=i?i:0;else if(e.baseEncodingName)for(s=(0,h.getEncoding)(e.baseEncodingName),n=0;n<s.length;n++)i=a.indexOf(s[n]),r[n]=0<=i?i:0;else if(o)for(n in t)r[n]=t[n];else for(s=h.StandardEncoding,n=0;n<s.length;n++)i=a.indexOf(s[n]),r[n]=0<=i?i:0;var l=e.differences;let c;if(l)for(n in l){const e=l[n];if(-1===(i=a.indexOf(e))){const t=f(e,c=c||(0,u.getGlyphsUnicode)());t!==e&&(i=a.indexOf(t))}r[n]=0<=i?i:0}return r};var h=a(37),u=a(39),r=a(40),i=a(2);t.SEAC_ANALYSIS_ENABLED=!0;const d={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};function f(e,t){if(void 0===t[e]){var a=(0,r.getUnicodeForGlyph)(e,t);if(-1!==a)for(const e in t)if(t[e]===a)return e;(0,i.info)("Unable to recover a standard glyph name for: "+e)}return e}t.FontFlags=d,t.MacStandardGlyphOrdering=[".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,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getGlyphsUnicode=t.getDingbatsGlyphsUnicode=void 0;var a=a(3),r=(0,a.getLookupTableFactory)(function(e){e.A=65,e.AE=198,e.AEacute=508,e.AEmacron=482,e.AEsmall=63462,e.Aacute=193,e.Aacutesmall=63457,e.Abreve=258,e.Abreveacute=7854,e.Abrevecyrillic=1232,e.Abrevedotbelow=7862,e.Abrevegrave=7856,e.Abrevehookabove=7858,e.Abrevetilde=7860,e.Acaron=461,e.Acircle=9398,e.Acircumflex=194,e.Acircumflexacute=7844,e.Acircumflexdotbelow=7852,e.Acircumflexgrave=7846,e.Acircumflexhookabove=7848,e.Acircumflexsmall=63458,e.Acircumflextilde=7850,e.Acute=63177,e.Acutesmall=63412,e.Acyrillic=1040,e.Adblgrave=512,e.Adieresis=196,e.Adieresiscyrillic=1234,e.Adieresismacron=478,e.Adieresissmall=63460,e.Adotbelow=7840,e.Adotmacron=480,e.Agrave=192,e.Agravesmall=63456,e.Ahookabove=7842,e.Aiecyrillic=1236,e.Ainvertedbreve=514,e.Alpha=913,e.Alphatonos=902,e.Amacron=256,e.Amonospace=65313,e.Aogonek=260,e.Aring=197,e.Aringacute=506,e.Aringbelow=7680,e.Aringsmall=63461,e.Asmall=63329,e.Atilde=195,e.Atildesmall=63459,e.Aybarmenian=1329,e.B=66,e.Bcircle=9399,e.Bdotaccent=7682,e.Bdotbelow=7684,e.Becyrillic=1041,e.Benarmenian=1330,e.Beta=914,e.Bhook=385,e.Blinebelow=7686,e.Bmonospace=65314,e.Brevesmall=63220,e.Bsmall=63330,e.Btopbar=386,e.C=67,e.Caarmenian=1342,e.Cacute=262,e.Caron=63178,e.Caronsmall=63221,e.Ccaron=268,e.Ccedilla=199,e.Ccedillaacute=7688,e.Ccedillasmall=63463,e.Ccircle=9400,e.Ccircumflex=264,e.Cdot=266,e.Cdotaccent=266,e.Cedillasmall=63416,e.Chaarmenian=1353,e.Cheabkhasiancyrillic=1212,e.Checyrillic=1063,e.Chedescenderabkhasiancyrillic=1214,e.Chedescendercyrillic=1206,e.Chedieresiscyrillic=1268,e.Cheharmenian=1347,e.Chekhakassiancyrillic=1227,e.Cheverticalstrokecyrillic=1208,e.Chi=935,e.Chook=391,e.Circumflexsmall=63222,e.Cmonospace=65315,e.Coarmenian=1361,e.Csmall=63331,e.D=68,e.DZ=497,e.DZcaron=452,e.Daarmenian=1332,e.Dafrican=393,e.Dcaron=270,e.Dcedilla=7696,e.Dcircle=9401,e.Dcircumflexbelow=7698,e.Dcroat=272,e.Ddotaccent=7690,e.Ddotbelow=7692,e.Decyrillic=1044,e.Deicoptic=1006,e.Delta=8710,e.Deltagreek=916,e.Dhook=394,e.Dieresis=63179,e.DieresisAcute=63180,e.DieresisGrave=63181,e.Dieresissmall=63400,e.Digammagreek=988,e.Djecyrillic=1026,e.Dlinebelow=7694,e.Dmonospace=65316,e.Dotaccentsmall=63223,e.Dslash=272,e.Dsmall=63332,e.Dtopbar=395,e.Dz=498,e.Dzcaron=453,e.Dzeabkhasiancyrillic=1248,e.Dzecyrillic=1029,e.Dzhecyrillic=1039,e.E=69,e.Eacute=201,e.Eacutesmall=63465,e.Ebreve=276,e.Ecaron=282,e.Ecedillabreve=7708,e.Echarmenian=1333,e.Ecircle=9402,e.Ecircumflex=202,e.Ecircumflexacute=7870,e.Ecircumflexbelow=7704,e.Ecircumflexdotbelow=7878,e.Ecircumflexgrave=7872,e.Ecircumflexhookabove=7874,e.Ecircumflexsmall=63466,e.Ecircumflextilde=7876,e.Ecyrillic=1028,e.Edblgrave=516,e.Edieresis=203,e.Edieresissmall=63467,e.Edot=278,e.Edotaccent=278,e.Edotbelow=7864,e.Efcyrillic=1060,e.Egrave=200,e.Egravesmall=63464,e.Eharmenian=1335,e.Ehookabove=7866,e.Eightroman=8551,e.Einvertedbreve=518,e.Eiotifiedcyrillic=1124,e.Elcyrillic=1051,e.Elevenroman=8554,e.Emacron=274,e.Emacronacute=7702,e.Emacrongrave=7700,e.Emcyrillic=1052,e.Emonospace=65317,e.Encyrillic=1053,e.Endescendercyrillic=1186,e.Eng=330,e.Enghecyrillic=1188,e.Enhookcyrillic=1223,e.Eogonek=280,e.Eopen=400,e.Epsilon=917,e.Epsilontonos=904,e.Ercyrillic=1056,e.Ereversed=398,e.Ereversedcyrillic=1069,e.Escyrillic=1057,e.Esdescendercyrillic=1194,e.Esh=425,e.Esmall=63333,e.Eta=919,e.Etarmenian=1336,e.Etatonos=905,e.Eth=208,e.Ethsmall=63472,e.Etilde=7868,e.Etildebelow=7706,e.Euro=8364,e.Ezh=439,e.Ezhcaron=494,e.Ezhreversed=440,e.F=70,e.Fcircle=9403,e.Fdotaccent=7710,e.Feharmenian=1366,e.Feicoptic=996,e.Fhook=401,e.Fitacyrillic=1138,e.Fiveroman=8548,e.Fmonospace=65318,e.Fourroman=8547,e.Fsmall=63334,e.G=71,e.GBsquare=13191,e.Gacute=500,e.Gamma=915,e.Gammaafrican=404,e.Gangiacoptic=1002,e.Gbreve=286,e.Gcaron=486,e.Gcedilla=290,e.Gcircle=9404,e.Gcircumflex=284,e.Gcommaaccent=290,e.Gdot=288,e.Gdotaccent=288,e.Gecyrillic=1043,e.Ghadarmenian=1346,e.Ghemiddlehookcyrillic=1172,e.Ghestrokecyrillic=1170,e.Gheupturncyrillic=1168,e.Ghook=403,e.Gimarmenian=1331,e.Gjecyrillic=1027,e.Gmacron=7712,e.Gmonospace=65319,e.Grave=63182,e.Gravesmall=63328,e.Gsmall=63335,e.Gsmallhook=667,e.Gstroke=484,e.H=72,e.H18533=9679,e.H18543=9642,e.H18551=9643,e.H22073=9633,e.HPsquare=13259,e.Haabkhasiancyrillic=1192,e.Hadescendercyrillic=1202,e.Hardsigncyrillic=1066,e.Hbar=294,e.Hbrevebelow=7722,e.Hcedilla=7720,e.Hcircle=9405,e.Hcircumflex=292,e.Hdieresis=7718,e.Hdotaccent=7714,e.Hdotbelow=7716,e.Hmonospace=65320,e.Hoarmenian=1344,e.Horicoptic=1e3,e.Hsmall=63336,e.Hungarumlaut=63183,e.Hungarumlautsmall=63224,e.Hzsquare=13200,e.I=73,e.IAcyrillic=1071,e.IJ=306,e.IUcyrillic=1070,e.Iacute=205,e.Iacutesmall=63469,e.Ibreve=300,e.Icaron=463,e.Icircle=9406,e.Icircumflex=206,e.Icircumflexsmall=63470,e.Icyrillic=1030,e.Idblgrave=520,e.Idieresis=207,e.Idieresisacute=7726,e.Idieresiscyrillic=1252,e.Idieresissmall=63471,e.Idot=304,e.Idotaccent=304,e.Idotbelow=7882,e.Iebrevecyrillic=1238,e.Iecyrillic=1045,e.Ifraktur=8465,e.Igrave=204,e.Igravesmall=63468,e.Ihookabove=7880,e.Iicyrillic=1048,e.Iinvertedbreve=522,e.Iishortcyrillic=1049,e.Imacron=298,e.Imacroncyrillic=1250,e.Imonospace=65321,e.Iniarmenian=1339,e.Iocyrillic=1025,e.Iogonek=302,e.Iota=921,e.Iotaafrican=406,e.Iotadieresis=938,e.Iotatonos=906,e.Ismall=63337,e.Istroke=407,e.Itilde=296,e.Itildebelow=7724,e.Izhitsacyrillic=1140,e.Izhitsadblgravecyrillic=1142,e.J=74,e.Jaarmenian=1345,e.Jcircle=9407,e.Jcircumflex=308,e.Jecyrillic=1032,e.Jheharmenian=1355,e.Jmonospace=65322,e.Jsmall=63338,e.K=75,e.KBsquare=13189,e.KKsquare=13261,e.Kabashkircyrillic=1184,e.Kacute=7728,e.Kacyrillic=1050,e.Kadescendercyrillic=1178,e.Kahookcyrillic=1219,e.Kappa=922,e.Kastrokecyrillic=1182,e.Kaverticalstrokecyrillic=1180,e.Kcaron=488,e.Kcedilla=310,e.Kcircle=9408,e.Kcommaaccent=310,e.Kdotbelow=7730,e.Keharmenian=1364,e.Kenarmenian=1343,e.Khacyrillic=1061,e.Kheicoptic=998,e.Khook=408,e.Kjecyrillic=1036,e.Klinebelow=7732,e.Kmonospace=65323,e.Koppacyrillic=1152,e.Koppagreek=990,e.Ksicyrillic=1134,e.Ksmall=63339,e.L=76,e.LJ=455,e.LL=63167,e.Lacute=313,e.Lambda=923,e.Lcaron=317,e.Lcedilla=315,e.Lcircle=9409,e.Lcircumflexbelow=7740,e.Lcommaaccent=315,e.Ldot=319,e.Ldotaccent=319,e.Ldotbelow=7734,e.Ldotbelowmacron=7736,e.Liwnarmenian=1340,e.Lj=456,e.Ljecyrillic=1033,e.Llinebelow=7738,e.Lmonospace=65324,e.Lslash=321,e.Lslashsmall=63225,e.Lsmall=63340,e.M=77,e.MBsquare=13190,e.Macron=63184,e.Macronsmall=63407,e.Macute=7742,e.Mcircle=9410,e.Mdotaccent=7744,e.Mdotbelow=7746,e.Menarmenian=1348,e.Mmonospace=65325,e.Msmall=63341,e.Mturned=412,e.Mu=924,e.N=78,e.NJ=458,e.Nacute=323,e.Ncaron=327,e.Ncedilla=325,e.Ncircle=9411,e.Ncircumflexbelow=7754,e.Ncommaaccent=325,e.Ndotaccent=7748,e.Ndotbelow=7750,e.Nhookleft=413,e.Nineroman=8552,e.Nj=459,e.Njecyrillic=1034,e.Nlinebelow=7752,e.Nmonospace=65326,e.Nowarmenian=1350,e.Nsmall=63342,e.Ntilde=209,e.Ntildesmall=63473,e.Nu=925,e.O=79,e.OE=338,e.OEsmall=63226,e.Oacute=211,e.Oacutesmall=63475,e.Obarredcyrillic=1256,e.Obarreddieresiscyrillic=1258,e.Obreve=334,e.Ocaron=465,e.Ocenteredtilde=415,e.Ocircle=9412,e.Ocircumflex=212,e.Ocircumflexacute=7888,e.Ocircumflexdotbelow=7896,e.Ocircumflexgrave=7890,e.Ocircumflexhookabove=7892,e.Ocircumflexsmall=63476,e.Ocircumflextilde=7894,e.Ocyrillic=1054,e.Odblacute=336,e.Odblgrave=524,e.Odieresis=214,e.Odieresiscyrillic=1254,e.Odieresissmall=63478,e.Odotbelow=7884,e.Ogoneksmall=63227,e.Ograve=210,e.Ogravesmall=63474,e.Oharmenian=1365,e.Ohm=8486,e.Ohookabove=7886,e.Ohorn=416,e.Ohornacute=7898,e.Ohorndotbelow=7906,e.Ohorngrave=7900,e.Ohornhookabove=7902,e.Ohorntilde=7904,e.Ohungarumlaut=336,e.Oi=418,e.Oinvertedbreve=526,e.Omacron=332,e.Omacronacute=7762,e.Omacrongrave=7760,e.Omega=8486,e.Omegacyrillic=1120,e.Omegagreek=937,e.Omegaroundcyrillic=1146,e.Omegatitlocyrillic=1148,e.Omegatonos=911,e.Omicron=927,e.Omicrontonos=908,e.Omonospace=65327,e.Oneroman=8544,e.Oogonek=490,e.Oogonekmacron=492,e.Oopen=390,e.Oslash=216,e.Oslashacute=510,e.Oslashsmall=63480,e.Osmall=63343,e.Ostrokeacute=510,e.Otcyrillic=1150,e.Otilde=213,e.Otildeacute=7756,e.Otildedieresis=7758,e.Otildesmall=63477,e.P=80,e.Pacute=7764,e.Pcircle=9413,e.Pdotaccent=7766,e.Pecyrillic=1055,e.Peharmenian=1354,e.Pemiddlehookcyrillic=1190,e.Phi=934,e.Phook=420,e.Pi=928,e.Piwrarmenian=1363,e.Pmonospace=65328,e.Psi=936,e.Psicyrillic=1136,e.Psmall=63344,e.Q=81,e.Qcircle=9414,e.Qmonospace=65329,e.Qsmall=63345,e.R=82,e.Raarmenian=1356,e.Racute=340,e.Rcaron=344,e.Rcedilla=342,e.Rcircle=9415,e.Rcommaaccent=342,e.Rdblgrave=528,e.Rdotaccent=7768,e.Rdotbelow=7770,e.Rdotbelowmacron=7772,e.Reharmenian=1360,e.Rfraktur=8476,e.Rho=929,e.Ringsmall=63228,e.Rinvertedbreve=530,e.Rlinebelow=7774,e.Rmonospace=65330,e.Rsmall=63346,e.Rsmallinverted=641,e.Rsmallinvertedsuperior=694,e.S=83,e.SF010000=9484,e.SF020000=9492,e.SF030000=9488,e.SF040000=9496,e.SF050000=9532,e.SF060000=9516,e.SF070000=9524,e.SF080000=9500,e.SF090000=9508,e.SF100000=9472,e.SF110000=9474,e.SF190000=9569,e.SF200000=9570,e.SF210000=9558,e.SF220000=9557,e.SF230000=9571,e.SF240000=9553,e.SF250000=9559,e.SF260000=9565,e.SF270000=9564,e.SF280000=9563,e.SF360000=9566,e.SF370000=9567,e.SF380000=9562,e.SF390000=9556,e.SF400000=9577,e.SF410000=9574,e.SF420000=9568,e.SF430000=9552,e.SF440000=9580,e.SF450000=9575,e.SF460000=9576,e.SF470000=9572,e.SF480000=9573,e.SF490000=9561,e.SF500000=9560,e.SF510000=9554,e.SF520000=9555,e.SF530000=9579,e.SF540000=9578,e.Sacute=346,e.Sacutedotaccent=7780,e.Sampigreek=992,e.Scaron=352,e.Scarondotaccent=7782,e.Scaronsmall=63229,e.Scedilla=350,e.Schwa=399,e.Schwacyrillic=1240,e.Schwadieresiscyrillic=1242,e.Scircle=9416,e.Scircumflex=348,e.Scommaaccent=536,e.Sdotaccent=7776,e.Sdotbelow=7778,e.Sdotbelowdotaccent=7784,e.Seharmenian=1357,e.Sevenroman=8550,e.Shaarmenian=1351,e.Shacyrillic=1064,e.Shchacyrillic=1065,e.Sheicoptic=994,e.Shhacyrillic=1210,e.Shimacoptic=1004,e.Sigma=931,e.Sixroman=8549,e.Smonospace=65331,e.Softsigncyrillic=1068,e.Ssmall=63347,e.Stigmagreek=986,e.T=84,e.Tau=932,e.Tbar=358,e.Tcaron=356,e.Tcedilla=354,e.Tcircle=9417,e.Tcircumflexbelow=7792,e.Tcommaaccent=354,e.Tdotaccent=7786,e.Tdotbelow=7788,e.Tecyrillic=1058,e.Tedescendercyrillic=1196,e.Tenroman=8553,e.Tetsecyrillic=1204,e.Theta=920,e.Thook=428,e.Thorn=222,e.Thornsmall=63486,e.Threeroman=8546,e.Tildesmall=63230,e.Tiwnarmenian=1359,e.Tlinebelow=7790,e.Tmonospace=65332,e.Toarmenian=1337,e.Tonefive=444,e.Tonesix=388,e.Tonetwo=423,e.Tretroflexhook=430,e.Tsecyrillic=1062,e.Tshecyrillic=1035,e.Tsmall=63348,e.Twelveroman=8555,e.Tworoman=8545,e.U=85,e.Uacute=218,e.Uacutesmall=63482,e.Ubreve=364,e.Ucaron=467,e.Ucircle=9418,e.Ucircumflex=219,e.Ucircumflexbelow=7798,e.Ucircumflexsmall=63483,e.Ucyrillic=1059,e.Udblacute=368,e.Udblgrave=532,e.Udieresis=220,e.Udieresisacute=471,e.Udieresisbelow=7794,e.Udieresiscaron=473,e.Udieresiscyrillic=1264,e.Udieresisgrave=475,e.Udieresismacron=469,e.Udieresissmall=63484,e.Udotbelow=7908,e.Ugrave=217,e.Ugravesmall=63481,e.Uhookabove=7910,e.Uhorn=431,e.Uhornacute=7912,e.Uhorndotbelow=7920,e.Uhorngrave=7914,e.Uhornhookabove=7916,e.Uhorntilde=7918,e.Uhungarumlaut=368,e.Uhungarumlautcyrillic=1266,e.Uinvertedbreve=534,e.Ukcyrillic=1144,e.Umacron=362,e.Umacroncyrillic=1262,e.Umacrondieresis=7802,e.Umonospace=65333,e.Uogonek=370,e.Upsilon=933,e.Upsilon1=978,e.Upsilonacutehooksymbolgreek=979,e.Upsilonafrican=433,e.Upsilondieresis=939,e.Upsilondieresishooksymbolgreek=980,e.Upsilonhooksymbol=978,e.Upsilontonos=910,e.Uring=366,e.Ushortcyrillic=1038,e.Usmall=63349,e.Ustraightcyrillic=1198,e.Ustraightstrokecyrillic=1200,e.Utilde=360,e.Utildeacute=7800,e.Utildebelow=7796,e.V=86,e.Vcircle=9419,e.Vdotbelow=7806,e.Vecyrillic=1042,e.Vewarmenian=1358,e.Vhook=434,e.Vmonospace=65334,e.Voarmenian=1352,e.Vsmall=63350,e.Vtilde=7804,e.W=87,e.Wacute=7810,e.Wcircle=9420,e.Wcircumflex=372,e.Wdieresis=7812,e.Wdotaccent=7814,e.Wdotbelow=7816,e.Wgrave=7808,e.Wmonospace=65335,e.Wsmall=63351,e.X=88,e.Xcircle=9421,e.Xdieresis=7820,e.Xdotaccent=7818,e.Xeharmenian=1341,e.Xi=926,e.Xmonospace=65336,e.Xsmall=63352,e.Y=89,e.Yacute=221,e.Yacutesmall=63485,e.Yatcyrillic=1122,e.Ycircle=9422,e.Ycircumflex=374,e.Ydieresis=376,e.Ydieresissmall=63487,e.Ydotaccent=7822,e.Ydotbelow=7924,e.Yericyrillic=1067,e.Yerudieresiscyrillic=1272,e.Ygrave=7922,e.Yhook=435,e.Yhookabove=7926,e.Yiarmenian=1349,e.Yicyrillic=1031,e.Yiwnarmenian=1362,e.Ymonospace=65337,e.Ysmall=63353,e.Ytilde=7928,e.Yusbigcyrillic=1130,e.Yusbigiotifiedcyrillic=1132,e.Yuslittlecyrillic=1126,e.Yuslittleiotifiedcyrillic=1128,e.Z=90,e.Zaarmenian=1334,e.Zacute=377,e.Zcaron=381,e.Zcaronsmall=63231,e.Zcircle=9423,e.Zcircumflex=7824,e.Zdot=379,e.Zdotaccent=379,e.Zdotbelow=7826,e.Zecyrillic=1047,e.Zedescendercyrillic=1176,e.Zedieresiscyrillic=1246,e.Zeta=918,e.Zhearmenian=1338,e.Zhebrevecyrillic=1217,e.Zhecyrillic=1046,e.Zhedescendercyrillic=1174,e.Zhedieresiscyrillic=1244,e.Zlinebelow=7828,e.Zmonospace=65338,e.Zsmall=63354,e.Zstroke=437,e.a=97,e.aabengali=2438,e.aacute=225,e.aadeva=2310,e.aagujarati=2694,e.aagurmukhi=2566,e.aamatragurmukhi=2622,e.aarusquare=13059,e.aavowelsignbengali=2494,e.aavowelsigndeva=2366,e.aavowelsigngujarati=2750,e.abbreviationmarkarmenian=1375,e.abbreviationsigndeva=2416,e.abengali=2437,e.abopomofo=12570,e.abreve=259,e.abreveacute=7855,e.abrevecyrillic=1233,e.abrevedotbelow=7863,e.abrevegrave=7857,e.abrevehookabove=7859,e.abrevetilde=7861,e.acaron=462,e.acircle=9424,e.acircumflex=226,e.acircumflexacute=7845,e.acircumflexdotbelow=7853,e.acircumflexgrave=7847,e.acircumflexhookabove=7849,e.acircumflextilde=7851,e.acute=180,e.acutebelowcmb=791,e.acutecmb=769,e.acutecomb=769,e.acutedeva=2388,e.acutelowmod=719,e.acutetonecmb=833,e.acyrillic=1072,e.adblgrave=513,e.addakgurmukhi=2673,e.adeva=2309,e.adieresis=228,e.adieresiscyrillic=1235,e.adieresismacron=479,e.adotbelow=7841,e.adotmacron=481,e.ae=230,e.aeacute=509,e.aekorean=12624,e.aemacron=483,e.afii00208=8213,e.afii08941=8356,e.afii10017=1040,e.afii10018=1041,e.afii10019=1042,e.afii10020=1043,e.afii10021=1044,e.afii10022=1045,e.afii10023=1025,e.afii10024=1046,e.afii10025=1047,e.afii10026=1048,e.afii10027=1049,e.afii10028=1050,e.afii10029=1051,e.afii10030=1052;e.afii10031=1053,e.afii10032=1054,e.afii10033=1055,e.afii10034=1056,e.afii10035=1057,e.afii10036=1058,e.afii10037=1059,e.afii10038=1060,e.afii10039=1061,e.afii10040=1062,e.afii10041=1063,e.afii10042=1064,e.afii10043=1065,e.afii10044=1066,e.afii10045=1067,e.afii10046=1068,e.afii10047=1069,e.afii10048=1070,e.afii10049=1071,e.afii10050=1168,e.afii10051=1026,e.afii10052=1027,e.afii10053=1028,e.afii10054=1029,e.afii10055=1030,e.afii10056=1031,e.afii10057=1032,e.afii10058=1033,e.afii10059=1034,e.afii10060=1035,e.afii10061=1036,e.afii10062=1038,e.afii10063=63172,e.afii10064=63173,e.afii10065=1072,e.afii10066=1073,e.afii10067=1074,e.afii10068=1075,e.afii10069=1076,e.afii10070=1077,e.afii10071=1105,e.afii10072=1078,e.afii10073=1079,e.afii10074=1080,e.afii10075=1081,e.afii10076=1082,e.afii10077=1083,e.afii10078=1084,e.afii10079=1085,e.afii10080=1086,e.afii10081=1087,e.afii10082=1088,e.afii10083=1089,e.afii10084=1090,e.afii10085=1091,e.afii10086=1092,e.afii10087=1093,e.afii10088=1094,e.afii10089=1095,e.afii10090=1096,e.afii10091=1097,e.afii10092=1098,e.afii10093=1099,e.afii10094=1100,e.afii10095=1101,e.afii10096=1102,e.afii10097=1103,e.afii10098=1169,e.afii10099=1106,e.afii10100=1107,e.afii10101=1108,e.afii10102=1109,e.afii10103=1110,e.afii10104=1111,e.afii10105=1112,e.afii10106=1113,e.afii10107=1114,e.afii10108=1115,e.afii10109=1116,e.afii10110=1118,e.afii10145=1039,e.afii10146=1122,e.afii10147=1138,e.afii10148=1140,e.afii10192=63174,e.afii10193=1119,e.afii10194=1123,e.afii10195=1139,e.afii10196=1141,e.afii10831=63175,e.afii10832=63176,e.afii10846=1241,e.afii299=8206,e.afii300=8207,e.afii301=8205,e.afii57381=1642,e.afii57388=1548,e.afii57392=1632,e.afii57393=1633,e.afii57394=1634,e.afii57395=1635,e.afii57396=1636,e.afii57397=1637,e.afii57398=1638,e.afii57399=1639,e.afii57400=1640,e.afii57401=1641,e.afii57403=1563,e.afii57407=1567,e.afii57409=1569,e.afii57410=1570,e.afii57411=1571,e.afii57412=1572,e.afii57413=1573,e.afii57414=1574,e.afii57415=1575,e.afii57416=1576,e.afii57417=1577,e.afii57418=1578,e.afii57419=1579,e.afii57420=1580,e.afii57421=1581,e.afii57422=1582,e.afii57423=1583,e.afii57424=1584,e.afii57425=1585,e.afii57426=1586,e.afii57427=1587,e.afii57428=1588,e.afii57429=1589,e.afii57430=1590,e.afii57431=1591,e.afii57432=1592,e.afii57433=1593,e.afii57434=1594,e.afii57440=1600,e.afii57441=1601,e.afii57442=1602,e.afii57443=1603,e.afii57444=1604,e.afii57445=1605,e.afii57446=1606,e.afii57448=1608,e.afii57449=1609,e.afii57450=1610,e.afii57451=1611,e.afii57452=1612,e.afii57453=1613,e.afii57454=1614,e.afii57455=1615,e.afii57456=1616,e.afii57457=1617,e.afii57458=1618,e.afii57470=1607,e.afii57505=1700,e.afii57506=1662,e.afii57507=1670,e.afii57508=1688,e.afii57509=1711,e.afii57511=1657,e.afii57512=1672,e.afii57513=1681,e.afii57514=1722,e.afii57519=1746,e.afii57534=1749,e.afii57636=8362,e.afii57645=1470,e.afii57658=1475,e.afii57664=1488,e.afii57665=1489,e.afii57666=1490,e.afii57667=1491,e.afii57668=1492,e.afii57669=1493,e.afii57670=1494,e.afii57671=1495,e.afii57672=1496,e.afii57673=1497,e.afii57674=1498,e.afii57675=1499,e.afii57676=1500,e.afii57677=1501,e.afii57678=1502,e.afii57679=1503,e.afii57680=1504,e.afii57681=1505,e.afii57682=1506,e.afii57683=1507,e.afii57684=1508,e.afii57685=1509,e.afii57686=1510,e.afii57687=1511,e.afii57688=1512,e.afii57689=1513,e.afii57690=1514,e.afii57694=64298,e.afii57695=64299,e.afii57700=64331,e.afii57705=64287,e.afii57716=1520,e.afii57717=1521,e.afii57718=1522,e.afii57723=64309,e.afii57793=1460,e.afii57794=1461,e.afii57795=1462,e.afii57796=1467,e.afii57797=1464,e.afii57798=1463,e.afii57799=1456,e.afii57800=1458,e.afii57801=1457,e.afii57802=1459,e.afii57803=1474,e.afii57804=1473,e.afii57806=1465,e.afii57807=1468,e.afii57839=1469,e.afii57841=1471,e.afii57842=1472,e.afii57929=700,e.afii61248=8453,e.afii61289=8467,e.afii61352=8470,e.afii61573=8236,e.afii61574=8237,e.afii61575=8238,e.afii61664=8204,e.afii63167=1645,e.afii64937=701,e.agrave=224,e.agujarati=2693,e.agurmukhi=2565,e.ahiragana=12354,e.ahookabove=7843,e.aibengali=2448,e.aibopomofo=12574,e.aideva=2320,e.aiecyrillic=1237,e.aigujarati=2704,e.aigurmukhi=2576,e.aimatragurmukhi=2632,e.ainarabic=1593,e.ainfinalarabic=65226,e.aininitialarabic=65227,e.ainmedialarabic=65228,e.ainvertedbreve=515,e.aivowelsignbengali=2504,e.aivowelsigndeva=2376,e.aivowelsigngujarati=2760,e.akatakana=12450,e.akatakanahalfwidth=65393,e.akorean=12623,e.alef=1488,e.alefarabic=1575,e.alefdageshhebrew=64304,e.aleffinalarabic=65166,e.alefhamzaabovearabic=1571,e.alefhamzaabovefinalarabic=65156,e.alefhamzabelowarabic=1573,e.alefhamzabelowfinalarabic=65160,e.alefhebrew=1488,e.aleflamedhebrew=64335,e.alefmaddaabovearabic=1570,e.alefmaddaabovefinalarabic=65154,e.alefmaksuraarabic=1609,e.alefmaksurafinalarabic=65264,e.alefmaksurainitialarabic=65267,e.alefmaksuramedialarabic=65268,e.alefpatahhebrew=64302,e.alefqamatshebrew=64303,e.aleph=8501,e.allequal=8780,e.alpha=945,e.alphatonos=940,e.amacron=257,e.amonospace=65345,e.ampersand=38,e.ampersandmonospace=65286,e.ampersandsmall=63270,e.amsquare=13250,e.anbopomofo=12578,e.angbopomofo=12580,e.angbracketleft=12296,e.angbracketright=12297,e.angkhankhuthai=3674,e.angle=8736,e.anglebracketleft=12296,e.anglebracketleftvertical=65087,e.anglebracketright=12297,e.anglebracketrightvertical=65088,e.angleleft=9001,e.angleright=9002,e.angstrom=8491,e.anoteleia=903,e.anudattadeva=2386,e.anusvarabengali=2434,e.anusvaradeva=2306,e.anusvaragujarati=2690,e.aogonek=261,e.apaatosquare=13056,e.aparen=9372,e.apostrophearmenian=1370,e.apostrophemod=700,e.apple=63743,e.approaches=8784,e.approxequal=8776,e.approxequalorimage=8786,e.approximatelyequal=8773,e.araeaekorean=12686,e.araeakorean=12685,e.arc=8978,e.arighthalfring=7834,e.aring=229,e.aringacute=507,e.aringbelow=7681,e.arrowboth=8596,e.arrowdashdown=8675,e.arrowdashleft=8672,e.arrowdashright=8674,e.arrowdashup=8673,e.arrowdblboth=8660,e.arrowdbldown=8659,e.arrowdblleft=8656,e.arrowdblright=8658,e.arrowdblup=8657,e.arrowdown=8595,e.arrowdownleft=8601,e.arrowdownright=8600,e.arrowdownwhite=8681,e.arrowheaddownmod=709,e.arrowheadleftmod=706,e.arrowheadrightmod=707,e.arrowheadupmod=708,e.arrowhorizex=63719,e.arrowleft=8592,e.arrowleftdbl=8656,e.arrowleftdblstroke=8653,e.arrowleftoverright=8646,e.arrowleftwhite=8678,e.arrowright=8594,e.arrowrightdblstroke=8655,e.arrowrightheavy=10142,e.arrowrightoverleft=8644,e.arrowrightwhite=8680,e.arrowtableft=8676,e.arrowtabright=8677,e.arrowup=8593,e.arrowupdn=8597,e.arrowupdnbse=8616,e.arrowupdownbase=8616,e.arrowupleft=8598,e.arrowupleftofdown=8645,e.arrowupright=8599,e.arrowupwhite=8679,e.arrowvertex=63718,e.asciicircum=94,e.asciicircummonospace=65342,e.asciitilde=126,e.asciitildemonospace=65374,e.ascript=593,e.ascriptturned=594,e.asmallhiragana=12353,e.asmallkatakana=12449,e.asmallkatakanahalfwidth=65383,e.asterisk=42,e.asteriskaltonearabic=1645,e.asteriskarabic=1645,e.asteriskmath=8727,e.asteriskmonospace=65290,e.asterisksmall=65121,e.asterism=8258,e.asuperior=63209,e.asymptoticallyequal=8771,e.at=64,e.atilde=227,e.atmonospace=65312,e.atsmall=65131,e.aturned=592,e.aubengali=2452,e.aubopomofo=12576,e.audeva=2324,e.augujarati=2708,e.augurmukhi=2580,e.aulengthmarkbengali=2519,e.aumatragurmukhi=2636,e.auvowelsignbengali=2508,e.auvowelsigndeva=2380,e.auvowelsigngujarati=2764,e.avagrahadeva=2365,e.aybarmenian=1377,e.ayin=1506,e.ayinaltonehebrew=64288,e.ayinhebrew=1506,e.b=98,e.babengali=2476,e.backslash=92,e.backslashmonospace=65340,e.badeva=2348,e.bagujarati=2732,e.bagurmukhi=2604,e.bahiragana=12400,e.bahtthai=3647,e.bakatakana=12496,e.bar=124,e.barmonospace=65372,e.bbopomofo=12549,e.bcircle=9425,e.bdotaccent=7683,e.bdotbelow=7685,e.beamedsixteenthnotes=9836,e.because=8757,e.becyrillic=1073,e.beharabic=1576,e.behfinalarabic=65168,e.behinitialarabic=65169,e.behiragana=12409,e.behmedialarabic=65170,e.behmeeminitialarabic=64671,e.behmeemisolatedarabic=64520,e.behnoonfinalarabic=64621,e.bekatakana=12505,e.benarmenian=1378,e.bet=1489,e.beta=946,e.betasymbolgreek=976,e.betdagesh=64305,e.betdageshhebrew=64305,e.bethebrew=1489,e.betrafehebrew=64332,e.bhabengali=2477,e.bhadeva=2349,e.bhagujarati=2733,e.bhagurmukhi=2605,e.bhook=595,e.bihiragana=12403,e.bikatakana=12499,e.bilabialclick=664,e.bindigurmukhi=2562,e.birusquare=13105,e.blackcircle=9679,e.blackdiamond=9670,e.blackdownpointingtriangle=9660,e.blackleftpointingpointer=9668,e.blackleftpointingtriangle=9664,e.blacklenticularbracketleft=12304,e.blacklenticularbracketleftvertical=65083,e.blacklenticularbracketright=12305,e.blacklenticularbracketrightvertical=65084,e.blacklowerlefttriangle=9699,e.blacklowerrighttriangle=9698,e.blackrectangle=9644,e.blackrightpointingpointer=9658,e.blackrightpointingtriangle=9654,e.blacksmallsquare=9642,e.blacksmilingface=9787,e.blacksquare=9632,e.blackstar=9733,e.blackupperlefttriangle=9700,e.blackupperrighttriangle=9701,e.blackuppointingsmalltriangle=9652,e.blackuppointingtriangle=9650,e.blank=9251,e.blinebelow=7687,e.block=9608,e.bmonospace=65346,e.bobaimaithai=3610,e.bohiragana=12412,e.bokatakana=12508,e.bparen=9373,e.bqsquare=13251,e.braceex=63732,e.braceleft=123,e.braceleftbt=63731,e.braceleftmid=63730,e.braceleftmonospace=65371,e.braceleftsmall=65115,e.bracelefttp=63729,e.braceleftvertical=65079,e.braceright=125,e.bracerightbt=63742,e.bracerightmid=63741,e.bracerightmonospace=65373,e.bracerightsmall=65116,e.bracerighttp=63740,e.bracerightvertical=65080,e.bracketleft=91,e.bracketleftbt=63728,e.bracketleftex=63727,e.bracketleftmonospace=65339,e.bracketlefttp=63726,e.bracketright=93,e.bracketrightbt=63739,e.bracketrightex=63738,e.bracketrightmonospace=65341,e.bracketrighttp=63737,e.breve=728,e.brevebelowcmb=814,e.brevecmb=774,e.breveinvertedbelowcmb=815,e.breveinvertedcmb=785,e.breveinverteddoublecmb=865,e.bridgebelowcmb=810,e.bridgeinvertedbelowcmb=826,e.brokenbar=166,e.bstroke=384,e.bsuperior=63210,e.btopbar=387,e.buhiragana=12406,e.bukatakana=12502,e.bullet=8226,e.bulletinverse=9688,e.bulletoperator=8729,e.bullseye=9678,e.c=99,e.caarmenian=1390,e.cabengali=2458,e.cacute=263,e.cadeva=2330,e.cagujarati=2714,e.cagurmukhi=2586,e.calsquare=13192,e.candrabindubengali=2433,e.candrabinducmb=784,e.candrabindudeva=2305,e.candrabindugujarati=2689,e.capslock=8682,e.careof=8453,e.caron=711,e.caronbelowcmb=812,e.caroncmb=780,e.carriagereturn=8629,e.cbopomofo=12568,e.ccaron=269,e.ccedilla=231,e.ccedillaacute=7689,e.ccircle=9426,e.ccircumflex=265,e.ccurl=597,e.cdot=267,e.cdotaccent=267,e.cdsquare=13253,e.cedilla=184,e.cedillacmb=807,e.cent=162,e.centigrade=8451,e.centinferior=63199,e.centmonospace=65504,e.centoldstyle=63394,e.centsuperior=63200,e.chaarmenian=1401,e.chabengali=2459,e.chadeva=2331,e.chagujarati=2715,e.chagurmukhi=2587,e.chbopomofo=12564,e.cheabkhasiancyrillic=1213,e.checkmark=10003,e.checyrillic=1095,e.chedescenderabkhasiancyrillic=1215,e.chedescendercyrillic=1207,e.chedieresiscyrillic=1269,e.cheharmenian=1395,e.chekhakassiancyrillic=1228,e.cheverticalstrokecyrillic=1209,e.chi=967,e.chieuchacirclekorean=12919,e.chieuchaparenkorean=12823,e.chieuchcirclekorean=12905,e.chieuchkorean=12618,e.chieuchparenkorean=12809,e.chochangthai=3594,e.chochanthai=3592,e.chochingthai=3593,e.chochoethai=3596,e.chook=392,e.cieucacirclekorean=12918,e.cieucaparenkorean=12822,e.cieuccirclekorean=12904,e.cieuckorean=12616,e.cieucparenkorean=12808,e.cieucuparenkorean=12828,e.circle=9675,e.circlecopyrt=169,e.circlemultiply=8855,e.circleot=8857,e.circleplus=8853,e.circlepostalmark=12342,e.circlewithlefthalfblack=9680,e.circlewithrighthalfblack=9681,e.circumflex=710,e.circumflexbelowcmb=813,e.circumflexcmb=770,e.clear=8999,e.clickalveolar=450,e.clickdental=448,e.clicklateral=449,e.clickretroflex=451,e.club=9827,e.clubsuitblack=9827,e.clubsuitwhite=9831,e.cmcubedsquare=13220,e.cmonospace=65347,e.cmsquaredsquare=13216,e.coarmenian=1409,e.colon=58,e.colonmonetary=8353,e.colonmonospace=65306,e.colonsign=8353,e.colonsmall=65109,e.colontriangularhalfmod=721,e.colontriangularmod=720,e.comma=44,e.commaabovecmb=787,e.commaaboverightcmb=789,e.commaaccent=63171,e.commaarabic=1548,e.commaarmenian=1373,e.commainferior=63201,e.commamonospace=65292,e.commareversedabovecmb=788,e.commareversedmod=701,e.commasmall=65104,e.commasuperior=63202,e.commaturnedabovecmb=786,e.commaturnedmod=699,e.compass=9788,e.congruent=8773,e.contourintegral=8750,e.control=8963,e.controlACK=6,e.controlBEL=7,e.controlBS=8,e.controlCAN=24,e.controlCR=13,e.controlDC1=17,e.controlDC2=18,e.controlDC3=19,e.controlDC4=20,e.controlDEL=127,e.controlDLE=16,e.controlEM=25,e.controlENQ=5,e.controlEOT=4,e.controlESC=27,e.controlETB=23,e.controlETX=3,e.controlFF=12,e.controlFS=28,e.controlGS=29,e.controlHT=9,e.controlLF=10,e.controlNAK=21,e.controlNULL=0,e.controlRS=30,e.controlSI=15,e.controlSO=14,e.controlSOT=2,e.controlSTX=1,e.controlSUB=26,e.controlSYN=22,e.controlUS=31,e.controlVT=11,e.copyright=169,e.copyrightsans=63721,e.copyrightserif=63193,e.cornerbracketleft=12300,e.cornerbracketlefthalfwidth=65378,e.cornerbracketleftvertical=65089,e.cornerbracketright=12301,e.cornerbracketrighthalfwidth=65379,e.cornerbracketrightvertical=65090,e.corporationsquare=13183,e.cosquare=13255,e.coverkgsquare=13254,e.cparen=9374,e.cruzeiro=8354,e.cstretched=663,e.curlyand=8911,e.curlyor=8910,e.currency=164,e.cyrBreve=63185,e.cyrFlex=63186,e.cyrbreve=63188,e.cyrflex=63189,e.d=100,e.daarmenian=1380,e.dabengali=2470,e.dadarabic=1590,e.dadeva=2342,e.dadfinalarabic=65214,e.dadinitialarabic=65215,e.dadmedialarabic=65216,e.dagesh=1468,e.dageshhebrew=1468,e.dagger=8224,e.daggerdbl=8225,e.dagujarati=2726,e.dagurmukhi=2598,e.dahiragana=12384,e.dakatakana=12480,e.dalarabic=1583,e.dalet=1491,e.daletdagesh=64307,e.daletdageshhebrew=64307,e.dalethebrew=1491,e.dalfinalarabic=65194,e.dammaarabic=1615,e.dammalowarabic=1615,e.dammatanaltonearabic=1612,e.dammatanarabic=1612,e.danda=2404,e.dargahebrew=1447,e.dargalefthebrew=1447,e.dasiapneumatacyrilliccmb=1157,e.dblGrave=63187,e.dblanglebracketleft=12298,e.dblanglebracketleftvertical=65085,e.dblanglebracketright=12299,e.dblanglebracketrightvertical=65086,e.dblarchinvertedbelowcmb=811,e.dblarrowleft=8660,e.dblarrowright=8658,e.dbldanda=2405,e.dblgrave=63190,e.dblgravecmb=783,e.dblintegral=8748,e.dbllowline=8215,e.dbllowlinecmb=819,e.dbloverlinecmb=831,e.dblprimemod=698,e.dblverticalbar=8214,e.dblverticallineabovecmb=782,e.dbopomofo=12553,e.dbsquare=13256,e.dcaron=271,e.dcedilla=7697,e.dcircle=9427,e.dcircumflexbelow=7699,e.dcroat=273,e.ddabengali=2465,e.ddadeva=2337,e.ddagujarati=2721,e.ddagurmukhi=2593,e.ddalarabic=1672,e.ddalfinalarabic=64393,e.dddhadeva=2396,e.ddhabengali=2466,e.ddhadeva=2338,e.ddhagujarati=2722,e.ddhagurmukhi=2594,e.ddotaccent=7691,e.ddotbelow=7693,e.decimalseparatorarabic=1643,e.decimalseparatorpersian=1643,e.decyrillic=1076,e.degree=176,e.dehihebrew=1453,e.dehiragana=12391,e.deicoptic=1007,e.dekatakana=12487,e.deleteleft=9003,e.deleteright=8998,e.delta=948,e.deltaturned=397,e.denominatorminusonenumeratorbengali=2552,e.dezh=676,e.dhabengali=2471,e.dhadeva=2343,e.dhagujarati=2727,e.dhagurmukhi=2599,e.dhook=599,e.dialytikatonos=901,e.dialytikatonoscmb=836,e.diamond=9830,e.diamondsuitwhite=9826,e.dieresis=168,e.dieresisacute=63191,e.dieresisbelowcmb=804,e.dieresiscmb=776,e.dieresisgrave=63192,e.dieresistonos=901,e.dihiragana=12386,e.dikatakana=12482,e.dittomark=12291,e.divide=247,e.divides=8739,e.divisionslash=8725,e.djecyrillic=1106,e.dkshade=9619,e.dlinebelow=7695,e.dlsquare=13207,e.dmacron=273,e.dmonospace=65348,e.dnblock=9604,e.dochadathai=3598,e.dodekthai=3604,e.dohiragana=12393,e.dokatakana=12489,e.dollar=36;e.dollarinferior=63203,e.dollarmonospace=65284,e.dollaroldstyle=63268,e.dollarsmall=65129,e.dollarsuperior=63204,e.dong=8363,e.dorusquare=13094,e.dotaccent=729,e.dotaccentcmb=775,e.dotbelowcmb=803,e.dotbelowcomb=803,e.dotkatakana=12539,e.dotlessi=305,e.dotlessj=63166,e.dotlessjstrokehook=644,e.dotmath=8901,e.dottedcircle=9676,e.doubleyodpatah=64287,e.doubleyodpatahhebrew=64287,e.downtackbelowcmb=798,e.downtackmod=725,e.dparen=9375,e.dsuperior=63211,e.dtail=598,e.dtopbar=396,e.duhiragana=12389,e.dukatakana=12485,e.dz=499,e.dzaltone=675,e.dzcaron=454,e.dzcurl=677,e.dzeabkhasiancyrillic=1249,e.dzecyrillic=1109,e.dzhecyrillic=1119,e.e=101,e.eacute=233,e.earth=9793,e.ebengali=2447,e.ebopomofo=12572,e.ebreve=277,e.ecandradeva=2317,e.ecandragujarati=2701,e.ecandravowelsigndeva=2373,e.ecandravowelsigngujarati=2757,e.ecaron=283,e.ecedillabreve=7709,e.echarmenian=1381,e.echyiwnarmenian=1415,e.ecircle=9428,e.ecircumflex=234,e.ecircumflexacute=7871,e.ecircumflexbelow=7705,e.ecircumflexdotbelow=7879,e.ecircumflexgrave=7873,e.ecircumflexhookabove=7875,e.ecircumflextilde=7877,e.ecyrillic=1108,e.edblgrave=517,e.edeva=2319,e.edieresis=235,e.edot=279,e.edotaccent=279,e.edotbelow=7865,e.eegurmukhi=2575,e.eematragurmukhi=2631,e.efcyrillic=1092,e.egrave=232,e.egujarati=2703,e.eharmenian=1383,e.ehbopomofo=12573,e.ehiragana=12360,e.ehookabove=7867,e.eibopomofo=12575,e.eight=56,e.eightarabic=1640,e.eightbengali=2542,e.eightcircle=9319,e.eightcircleinversesansserif=10129,e.eightdeva=2414,e.eighteencircle=9329,e.eighteenparen=9349,e.eighteenperiod=9369,e.eightgujarati=2798,e.eightgurmukhi=2670,e.eighthackarabic=1640,e.eighthangzhou=12328,e.eighthnotebeamed=9835,e.eightideographicparen=12839,e.eightinferior=8328,e.eightmonospace=65304,e.eightoldstyle=63288,e.eightparen=9339,e.eightperiod=9359,e.eightpersian=1784,e.eightroman=8567,e.eightsuperior=8312,e.eightthai=3672,e.einvertedbreve=519,e.eiotifiedcyrillic=1125,e.ekatakana=12456,e.ekatakanahalfwidth=65396,e.ekonkargurmukhi=2676,e.ekorean=12628,e.elcyrillic=1083,e.element=8712,e.elevencircle=9322,e.elevenparen=9342,e.elevenperiod=9362,e.elevenroman=8570,e.ellipsis=8230,e.ellipsisvertical=8942,e.emacron=275,e.emacronacute=7703,e.emacrongrave=7701,e.emcyrillic=1084,e.emdash=8212,e.emdashvertical=65073,e.emonospace=65349,e.emphasismarkarmenian=1371,e.emptyset=8709,e.enbopomofo=12579,e.encyrillic=1085,e.endash=8211,e.endashvertical=65074,e.endescendercyrillic=1187,e.eng=331,e.engbopomofo=12581,e.enghecyrillic=1189,e.enhookcyrillic=1224,e.enspace=8194,e.eogonek=281,e.eokorean=12627,e.eopen=603,e.eopenclosed=666,e.eopenreversed=604,e.eopenreversedclosed=606,e.eopenreversedhook=605,e.eparen=9376,e.epsilon=949,e.epsilontonos=941,e.equal=61,e.equalmonospace=65309,e.equalsmall=65126,e.equalsuperior=8316,e.equivalence=8801,e.erbopomofo=12582,e.ercyrillic=1088,e.ereversed=600,e.ereversedcyrillic=1101,e.escyrillic=1089,e.esdescendercyrillic=1195,e.esh=643,e.eshcurl=646,e.eshortdeva=2318,e.eshortvowelsigndeva=2374,e.eshreversedloop=426,e.eshsquatreversed=645,e.esmallhiragana=12359,e.esmallkatakana=12455,e.esmallkatakanahalfwidth=65386,e.estimated=8494,e.esuperior=63212,e.eta=951,e.etarmenian=1384,e.etatonos=942,e.eth=240,e.etilde=7869,e.etildebelow=7707,e.etnahtafoukhhebrew=1425,e.etnahtafoukhlefthebrew=1425,e.etnahtahebrew=1425,e.etnahtalefthebrew=1425,e.eturned=477,e.eukorean=12641,e.euro=8364,e.evowelsignbengali=2503,e.evowelsigndeva=2375,e.evowelsigngujarati=2759,e.exclam=33,e.exclamarmenian=1372,e.exclamdbl=8252,e.exclamdown=161,e.exclamdownsmall=63393,e.exclammonospace=65281,e.exclamsmall=63265,e.existential=8707,e.ezh=658,e.ezhcaron=495,e.ezhcurl=659,e.ezhreversed=441,e.ezhtail=442,e.f=102,e.fadeva=2398,e.fagurmukhi=2654,e.fahrenheit=8457,e.fathaarabic=1614,e.fathalowarabic=1614,e.fathatanarabic=1611,e.fbopomofo=12552,e.fcircle=9429,e.fdotaccent=7711,e.feharabic=1601,e.feharmenian=1414,e.fehfinalarabic=65234,e.fehinitialarabic=65235,e.fehmedialarabic=65236,e.feicoptic=997,e.female=9792,e.ff=64256,e.f_f=64256,e.ffi=64259,e.f_f_i=64259,e.ffl=64260,e.f_f_l=64260,e.fi=64257,e.f_i=64257,e.fifteencircle=9326,e.fifteenparen=9346,e.fifteenperiod=9366,e.figuredash=8210,e.filledbox=9632,e.filledrect=9644,e.finalkaf=1498,e.finalkafdagesh=64314,e.finalkafdageshhebrew=64314,e.finalkafhebrew=1498,e.finalmem=1501,e.finalmemhebrew=1501,e.finalnun=1503,e.finalnunhebrew=1503,e.finalpe=1507,e.finalpehebrew=1507,e.finaltsadi=1509,e.finaltsadihebrew=1509,e.firsttonechinese=713,e.fisheye=9673,e.fitacyrillic=1139,e.five=53,e.fivearabic=1637,e.fivebengali=2539,e.fivecircle=9316,e.fivecircleinversesansserif=10126,e.fivedeva=2411,e.fiveeighths=8541,e.fivegujarati=2795,e.fivegurmukhi=2667,e.fivehackarabic=1637,e.fivehangzhou=12325,e.fiveideographicparen=12836,e.fiveinferior=8325,e.fivemonospace=65301,e.fiveoldstyle=63285,e.fiveparen=9336,e.fiveperiod=9356,e.fivepersian=1781,e.fiveroman=8564,e.fivesuperior=8309,e.fivethai=3669,e.fl=64258,e.f_l=64258,e.florin=402,e.fmonospace=65350,e.fmsquare=13209,e.fofanthai=3615,e.fofathai=3613,e.fongmanthai=3663,e.forall=8704,e.four=52,e.fourarabic=1636,e.fourbengali=2538,e.fourcircle=9315,e.fourcircleinversesansserif=10125,e.fourdeva=2410,e.fourgujarati=2794,e.fourgurmukhi=2666,e.fourhackarabic=1636,e.fourhangzhou=12324,e.fourideographicparen=12835,e.fourinferior=8324,e.fourmonospace=65300,e.fournumeratorbengali=2551,e.fouroldstyle=63284,e.fourparen=9335,e.fourperiod=9355,e.fourpersian=1780,e.fourroman=8563,e.foursuperior=8308,e.fourteencircle=9325,e.fourteenparen=9345,e.fourteenperiod=9365,e.fourthai=3668,e.fourthtonechinese=715,e.fparen=9377,e.fraction=8260,e.franc=8355,e.g=103,e.gabengali=2455,e.gacute=501,e.gadeva=2327,e.gafarabic=1711,e.gaffinalarabic=64403,e.gafinitialarabic=64404,e.gafmedialarabic=64405,e.gagujarati=2711,e.gagurmukhi=2583,e.gahiragana=12364,e.gakatakana=12460,e.gamma=947,e.gammalatinsmall=611,e.gammasuperior=736,e.gangiacoptic=1003,e.gbopomofo=12557,e.gbreve=287,e.gcaron=487,e.gcedilla=291,e.gcircle=9430,e.gcircumflex=285,e.gcommaaccent=291,e.gdot=289,e.gdotaccent=289,e.gecyrillic=1075,e.gehiragana=12370,e.gekatakana=12466,e.geometricallyequal=8785,e.gereshaccenthebrew=1436,e.gereshhebrew=1523,e.gereshmuqdamhebrew=1437,e.germandbls=223,e.gershayimaccenthebrew=1438,e.gershayimhebrew=1524,e.getamark=12307,e.ghabengali=2456,e.ghadarmenian=1394,e.ghadeva=2328,e.ghagujarati=2712,e.ghagurmukhi=2584,e.ghainarabic=1594,e.ghainfinalarabic=65230,e.ghaininitialarabic=65231,e.ghainmedialarabic=65232,e.ghemiddlehookcyrillic=1173,e.ghestrokecyrillic=1171,e.gheupturncyrillic=1169,e.ghhadeva=2394,e.ghhagurmukhi=2650,e.ghook=608,e.ghzsquare=13203,e.gihiragana=12366,e.gikatakana=12462,e.gimarmenian=1379,e.gimel=1490,e.gimeldagesh=64306,e.gimeldageshhebrew=64306,e.gimelhebrew=1490,e.gjecyrillic=1107,e.glottalinvertedstroke=446,e.glottalstop=660,e.glottalstopinverted=662,e.glottalstopmod=704,e.glottalstopreversed=661,e.glottalstopreversedmod=705,e.glottalstopreversedsuperior=740,e.glottalstopstroke=673,e.glottalstopstrokereversed=674,e.gmacron=7713,e.gmonospace=65351,e.gohiragana=12372,e.gokatakana=12468,e.gparen=9378,e.gpasquare=13228,e.gradient=8711,e.grave=96,e.gravebelowcmb=790,e.gravecmb=768,e.gravecomb=768,e.gravedeva=2387,e.gravelowmod=718,e.gravemonospace=65344,e.gravetonecmb=832,e.greater=62,e.greaterequal=8805,e.greaterequalorless=8923,e.greatermonospace=65310,e.greaterorequivalent=8819,e.greaterorless=8823,e.greateroverequal=8807,e.greatersmall=65125,e.gscript=609,e.gstroke=485,e.guhiragana=12368,e.guillemotleft=171,e.guillemotright=187,e.guilsinglleft=8249,e.guilsinglright=8250,e.gukatakana=12464,e.guramusquare=13080,e.gysquare=13257,e.h=104,e.haabkhasiancyrillic=1193,e.haaltonearabic=1729,e.habengali=2489,e.hadescendercyrillic=1203,e.hadeva=2361,e.hagujarati=2745,e.hagurmukhi=2617,e.haharabic=1581,e.hahfinalarabic=65186,e.hahinitialarabic=65187,e.hahiragana=12399,e.hahmedialarabic=65188,e.haitusquare=13098,e.hakatakana=12495,e.hakatakanahalfwidth=65418,e.halantgurmukhi=2637,e.hamzaarabic=1569,e.hamzalowarabic=1569,e.hangulfiller=12644,e.hardsigncyrillic=1098,e.harpoonleftbarbup=8636,e.harpoonrightbarbup=8640,e.hasquare=13258,e.hatafpatah=1458,e.hatafpatah16=1458,e.hatafpatah23=1458,e.hatafpatah2f=1458,e.hatafpatahhebrew=1458,e.hatafpatahnarrowhebrew=1458,e.hatafpatahquarterhebrew=1458,e.hatafpatahwidehebrew=1458,e.hatafqamats=1459,e.hatafqamats1b=1459,e.hatafqamats28=1459,e.hatafqamats34=1459,e.hatafqamatshebrew=1459,e.hatafqamatsnarrowhebrew=1459,e.hatafqamatsquarterhebrew=1459,e.hatafqamatswidehebrew=1459,e.hatafsegol=1457,e.hatafsegol17=1457,e.hatafsegol24=1457,e.hatafsegol30=1457,e.hatafsegolhebrew=1457,e.hatafsegolnarrowhebrew=1457,e.hatafsegolquarterhebrew=1457,e.hatafsegolwidehebrew=1457,e.hbar=295,e.hbopomofo=12559,e.hbrevebelow=7723,e.hcedilla=7721,e.hcircle=9431,e.hcircumflex=293,e.hdieresis=7719,e.hdotaccent=7715,e.hdotbelow=7717,e.he=1492,e.heart=9829,e.heartsuitblack=9829,e.heartsuitwhite=9825,e.hedagesh=64308,e.hedageshhebrew=64308,e.hehaltonearabic=1729,e.heharabic=1607,e.hehebrew=1492,e.hehfinalaltonearabic=64423,e.hehfinalalttwoarabic=65258,e.hehfinalarabic=65258,e.hehhamzaabovefinalarabic=64421,e.hehhamzaaboveisolatedarabic=64420,e.hehinitialaltonearabic=64424,e.hehinitialarabic=65259,e.hehiragana=12408,e.hehmedialaltonearabic=64425,e.hehmedialarabic=65260,e.heiseierasquare=13179,e.hekatakana=12504,e.hekatakanahalfwidth=65421,e.hekutaarusquare=13110,e.henghook=615,e.herutusquare=13113,e.het=1495,e.hethebrew=1495,e.hhook=614,e.hhooksuperior=689,e.hieuhacirclekorean=12923,e.hieuhaparenkorean=12827,e.hieuhcirclekorean=12909,e.hieuhkorean=12622,e.hieuhparenkorean=12813,e.hihiragana=12402,e.hikatakana=12498,e.hikatakanahalfwidth=65419,e.hiriq=1460,e.hiriq14=1460,e.hiriq21=1460,e.hiriq2d=1460,e.hiriqhebrew=1460,e.hiriqnarrowhebrew=1460,e.hiriqquarterhebrew=1460,e.hiriqwidehebrew=1460,e.hlinebelow=7830,e.hmonospace=65352,e.hoarmenian=1392,e.hohipthai=3627,e.hohiragana=12411,e.hokatakana=12507,e.hokatakanahalfwidth=65422,e.holam=1465,e.holam19=1465,e.holam26=1465,e.holam32=1465,e.holamhebrew=1465,e.holamnarrowhebrew=1465,e.holamquarterhebrew=1465,e.holamwidehebrew=1465,e.honokhukthai=3630,e.hookabovecomb=777,e.hookcmb=777,e.hookpalatalizedbelowcmb=801,e.hookretroflexbelowcmb=802,e.hoonsquare=13122,e.horicoptic=1001,e.horizontalbar=8213,e.horncmb=795,e.hotsprings=9832,e.house=8962,e.hparen=9379,e.hsuperior=688,e.hturned=613,e.huhiragana=12405,e.huiitosquare=13107,e.hukatakana=12501,e.hukatakanahalfwidth=65420,e.hungarumlaut=733,e.hungarumlautcmb=779,e.hv=405,e.hyphen=45,e.hypheninferior=63205,e.hyphenmonospace=65293,e.hyphensmall=65123,e.hyphensuperior=63206,e.hyphentwo=8208,e.i=105,e.iacute=237,e.iacyrillic=1103,e.ibengali=2439,e.ibopomofo=12583,e.ibreve=301,e.icaron=464,e.icircle=9432,e.icircumflex=238,e.icyrillic=1110,e.idblgrave=521,e.ideographearthcircle=12943,e.ideographfirecircle=12939,e.ideographicallianceparen=12863,e.ideographiccallparen=12858,e.ideographiccentrecircle=12965,e.ideographicclose=12294,e.ideographiccomma=12289,e.ideographiccommaleft=65380,e.ideographiccongratulationparen=12855,e.ideographiccorrectcircle=12963,e.ideographicearthparen=12847,e.ideographicenterpriseparen=12861,e.ideographicexcellentcircle=12957,e.ideographicfestivalparen=12864,e.ideographicfinancialcircle=12950,e.ideographicfinancialparen=12854,e.ideographicfireparen=12843,e.ideographichaveparen=12850,e.ideographichighcircle=12964,e.ideographiciterationmark=12293,e.ideographiclaborcircle=12952,e.ideographiclaborparen=12856,e.ideographicleftcircle=12967,e.ideographiclowcircle=12966,e.ideographicmedicinecircle=12969,e.ideographicmetalparen=12846,e.ideographicmoonparen=12842,e.ideographicnameparen=12852,e.ideographicperiod=12290,e.ideographicprintcircle=12958,e.ideographicreachparen=12867,e.ideographicrepresentparen=12857,e.ideographicresourceparen=12862,e.ideographicrightcircle=12968,e.ideographicsecretcircle=12953,e.ideographicselfparen=12866,e.ideographicsocietyparen=12851,e.ideographicspace=12288,e.ideographicspecialparen=12853,e.ideographicstockparen=12849,e.ideographicstudyparen=12859,e.ideographicsunparen=12848,e.ideographicsuperviseparen=12860,e.ideographicwaterparen=12844,e.ideographicwoodparen=12845,e.ideographiczero=12295,e.ideographmetalcircle=12942,e.ideographmooncircle=12938,e.ideographnamecircle=12948,e.ideographsuncircle=12944,e.ideographwatercircle=12940,e.ideographwoodcircle=12941,e.ideva=2311,e.idieresis=239,e.idieresisacute=7727,e.idieresiscyrillic=1253,e.idotbelow=7883,e.iebrevecyrillic=1239,e.iecyrillic=1077,e.ieungacirclekorean=12917,e.ieungaparenkorean=12821,e.ieungcirclekorean=12903,e.ieungkorean=12615,e.ieungparenkorean=12807,e.igrave=236,e.igujarati=2695,e.igurmukhi=2567,e.ihiragana=12356,e.ihookabove=7881,e.iibengali=2440,e.iicyrillic=1080,e.iideva=2312,e.iigujarati=2696,e.iigurmukhi=2568,e.iimatragurmukhi=2624,e.iinvertedbreve=523,e.iishortcyrillic=1081,e.iivowelsignbengali=2496,e.iivowelsigndeva=2368,e.iivowelsigngujarati=2752,e.ij=307,e.ikatakana=12452,e.ikatakanahalfwidth=65394,e.ikorean=12643,e.ilde=732,e.iluyhebrew=1452,e.imacron=299,e.imacroncyrillic=1251,e.imageorapproximatelyequal=8787,e.imatragurmukhi=2623,e.imonospace=65353,e.increment=8710,e.infinity=8734,e.iniarmenian=1387,e.integral=8747,e.integralbottom=8993,e.integralbt=8993,e.integralex=63733,e.integraltop=8992,e.integraltp=8992,e.intersection=8745,e.intisquare=13061,e.invbullet=9688,e.invcircle=9689,e.invsmileface=9787,e.iocyrillic=1105,e.iogonek=303,e.iota=953,e.iotadieresis=970,e.iotadieresistonos=912,e.iotalatin=617,e.iotatonos=943,e.iparen=9380,e.irigurmukhi=2674,e.ismallhiragana=12355,e.ismallkatakana=12451,e.ismallkatakanahalfwidth=65384,e.issharbengali=2554,e.istroke=616,e.isuperior=63213,e.iterationhiragana=12445,e.iterationkatakana=12541,e.itilde=297,e.itildebelow=7725,e.iubopomofo=12585,e.iucyrillic=1102,e.ivowelsignbengali=2495,e.ivowelsigndeva=2367,e.ivowelsigngujarati=2751,e.izhitsacyrillic=1141,e.izhitsadblgravecyrillic=1143,e.j=106,e.jaarmenian=1393,e.jabengali=2460,e.jadeva=2332,e.jagujarati=2716,e.jagurmukhi=2588,e.jbopomofo=12560,e.jcaron=496,e.jcircle=9433,e.jcircumflex=309,e.jcrossedtail=669,e.jdotlessstroke=607,e.jecyrillic=1112,e.jeemarabic=1580,e.jeemfinalarabic=65182,e.jeeminitialarabic=65183,e.jeemmedialarabic=65184,e.jeharabic=1688,e.jehfinalarabic=64395,e.jhabengali=2461,e.jhadeva=2333,e.jhagujarati=2717,e.jhagurmukhi=2589,e.jheharmenian=1403,e.jis=12292,e.jmonospace=65354,e.jparen=9381,e.jsuperior=690,e.k=107,e.kabashkircyrillic=1185,e.kabengali=2453,e.kacute=7729,e.kacyrillic=1082,e.kadescendercyrillic=1179,e.kadeva=2325,e.kaf=1499,e.kafarabic=1603,e.kafdagesh=64315,e.kafdageshhebrew=64315,e.kaffinalarabic=65242,e.kafhebrew=1499,e.kafinitialarabic=65243,e.kafmedialarabic=65244,e.kafrafehebrew=64333,e.kagujarati=2709,e.kagurmukhi=2581,e.kahiragana=12363,e.kahookcyrillic=1220,e.kakatakana=12459,e.kakatakanahalfwidth=65398,e.kappa=954,e.kappasymbolgreek=1008,e.kapyeounmieumkorean=12657,e.kapyeounphieuphkorean=12676,e.kapyeounpieupkorean=12664,e.kapyeounssangpieupkorean=12665,e.karoriisquare=13069,e.kashidaautoarabic=1600,e.kashidaautonosidebearingarabic=1600,e.kasmallkatakana=12533,e.kasquare=13188,e.kasraarabic=1616,e.kasratanarabic=1613,e.kastrokecyrillic=1183,e.katahiraprolongmarkhalfwidth=65392,e.kaverticalstrokecyrillic=1181,e.kbopomofo=12558,e.kcalsquare=13193,e.kcaron=489,e.kcedilla=311,e.kcircle=9434,e.kcommaaccent=311,e.kdotbelow=7731,e.keharmenian=1412,e.kehiragana=12369,e.kekatakana=12465,e.kekatakanahalfwidth=65401,e.kenarmenian=1391,e.kesmallkatakana=12534,e.kgreenlandic=312,e.khabengali=2454,e.khacyrillic=1093,e.khadeva=2326,e.khagujarati=2710,e.khagurmukhi=2582,e.khaharabic=1582,e.khahfinalarabic=65190,e.khahinitialarabic=65191,e.khahmedialarabic=65192,e.kheicoptic=999,e.khhadeva=2393,e.khhagurmukhi=2649,e.khieukhacirclekorean=12920,e.khieukhaparenkorean=12824,e.khieukhcirclekorean=12906,e.khieukhkorean=12619,e.khieukhparenkorean=12810,e.khokhaithai=3586,e.khokhonthai=3589,e.khokhuatthai=3587,e.khokhwaithai=3588,e.khomutthai=3675,e.khook=409,e.khorakhangthai=3590,e.khzsquare=13201,e.kihiragana=12365,e.kikatakana=12461,e.kikatakanahalfwidth=65399,e.kiroguramusquare=13077,e.kiromeetorusquare=13078,e.kirosquare=13076,e.kiyeokacirclekorean=12910,e.kiyeokaparenkorean=12814,e.kiyeokcirclekorean=12896,e.kiyeokkorean=12593,e.kiyeokparenkorean=12800,e.kiyeoksioskorean=12595;e.kjecyrillic=1116,e.klinebelow=7733,e.klsquare=13208,e.kmcubedsquare=13222,e.kmonospace=65355,e.kmsquaredsquare=13218,e.kohiragana=12371,e.kohmsquare=13248,e.kokaithai=3585,e.kokatakana=12467,e.kokatakanahalfwidth=65402,e.kooposquare=13086,e.koppacyrillic=1153,e.koreanstandardsymbol=12927,e.koroniscmb=835,e.kparen=9382,e.kpasquare=13226,e.ksicyrillic=1135,e.ktsquare=13263,e.kturned=670,e.kuhiragana=12367,e.kukatakana=12463,e.kukatakanahalfwidth=65400,e.kvsquare=13240,e.kwsquare=13246,e.l=108,e.labengali=2482,e.lacute=314,e.ladeva=2354,e.lagujarati=2738,e.lagurmukhi=2610,e.lakkhangyaothai=3653,e.lamaleffinalarabic=65276,e.lamalefhamzaabovefinalarabic=65272,e.lamalefhamzaaboveisolatedarabic=65271,e.lamalefhamzabelowfinalarabic=65274,e.lamalefhamzabelowisolatedarabic=65273,e.lamalefisolatedarabic=65275,e.lamalefmaddaabovefinalarabic=65270,e.lamalefmaddaaboveisolatedarabic=65269,e.lamarabic=1604,e.lambda=955,e.lambdastroke=411,e.lamed=1500,e.lameddagesh=64316,e.lameddageshhebrew=64316,e.lamedhebrew=1500,e.lamfinalarabic=65246,e.lamhahinitialarabic=64714,e.laminitialarabic=65247,e.lamjeeminitialarabic=64713,e.lamkhahinitialarabic=64715,e.lamlamhehisolatedarabic=65010,e.lammedialarabic=65248,e.lammeemhahinitialarabic=64904,e.lammeeminitialarabic=64716,e.largecircle=9711,e.lbar=410,e.lbelt=620,e.lbopomofo=12556,e.lcaron=318,e.lcedilla=316,e.lcircle=9435,e.lcircumflexbelow=7741,e.lcommaaccent=316,e.ldot=320,e.ldotaccent=320,e.ldotbelow=7735,e.ldotbelowmacron=7737,e.leftangleabovecmb=794,e.lefttackbelowcmb=792,e.less=60,e.lessequal=8804,e.lessequalorgreater=8922,e.lessmonospace=65308,e.lessorequivalent=8818,e.lessorgreater=8822,e.lessoverequal=8806,e.lesssmall=65124,e.lezh=622,e.lfblock=9612,e.lhookretroflex=621,e.lira=8356,e.liwnarmenian=1388,e.lj=457,e.ljecyrillic=1113,e.ll=63168,e.lladeva=2355,e.llagujarati=2739,e.llinebelow=7739,e.llladeva=2356,e.llvocalicbengali=2529,e.llvocalicdeva=2401,e.llvocalicvowelsignbengali=2531,e.llvocalicvowelsigndeva=2403,e.lmiddletilde=619,e.lmonospace=65356,e.lmsquare=13264,e.lochulathai=3628,e.logicaland=8743,e.logicalnot=172,e.logicalnotreversed=8976,e.logicalor=8744,e.lolingthai=3621,e.longs=383,e.lowlinecenterline=65102,e.lowlinecmb=818,e.lowlinedashed=65101,e.lozenge=9674,e.lparen=9383,e.lslash=322,e.lsquare=8467,e.lsuperior=63214,e.ltshade=9617,e.luthai=3622,e.lvocalicbengali=2444,e.lvocalicdeva=2316,e.lvocalicvowelsignbengali=2530,e.lvocalicvowelsigndeva=2402,e.lxsquare=13267,e.m=109,e.mabengali=2478,e.macron=175,e.macronbelowcmb=817,e.macroncmb=772,e.macronlowmod=717,e.macronmonospace=65507,e.macute=7743,e.madeva=2350,e.magujarati=2734,e.magurmukhi=2606,e.mahapakhhebrew=1444,e.mahapakhlefthebrew=1444,e.mahiragana=12414,e.maichattawalowleftthai=63637,e.maichattawalowrightthai=63636,e.maichattawathai=3659,e.maichattawaupperleftthai=63635,e.maieklowleftthai=63628,e.maieklowrightthai=63627,e.maiekthai=3656,e.maiekupperleftthai=63626,e.maihanakatleftthai=63620,e.maihanakatthai=3633,e.maitaikhuleftthai=63625,e.maitaikhuthai=3655,e.maitholowleftthai=63631,e.maitholowrightthai=63630,e.maithothai=3657,e.maithoupperleftthai=63629,e.maitrilowleftthai=63634,e.maitrilowrightthai=63633,e.maitrithai=3658,e.maitriupperleftthai=63632,e.maiyamokthai=3654,e.makatakana=12510,e.makatakanahalfwidth=65423,e.male=9794,e.mansyonsquare=13127,e.maqafhebrew=1470,e.mars=9794,e.masoracirclehebrew=1455,e.masquare=13187,e.mbopomofo=12551,e.mbsquare=13268,e.mcircle=9436,e.mcubedsquare=13221,e.mdotaccent=7745,e.mdotbelow=7747,e.meemarabic=1605,e.meemfinalarabic=65250,e.meeminitialarabic=65251,e.meemmedialarabic=65252,e.meemmeeminitialarabic=64721,e.meemmeemisolatedarabic=64584,e.meetorusquare=13133,e.mehiragana=12417,e.meizierasquare=13182,e.mekatakana=12513,e.mekatakanahalfwidth=65426,e.mem=1502,e.memdagesh=64318,e.memdageshhebrew=64318,e.memhebrew=1502,e.menarmenian=1396,e.merkhahebrew=1445,e.merkhakefulahebrew=1446,e.merkhakefulalefthebrew=1446,e.merkhalefthebrew=1445,e.mhook=625,e.mhzsquare=13202,e.middledotkatakanahalfwidth=65381,e.middot=183,e.mieumacirclekorean=12914,e.mieumaparenkorean=12818,e.mieumcirclekorean=12900,e.mieumkorean=12609,e.mieumpansioskorean=12656,e.mieumparenkorean=12804,e.mieumpieupkorean=12654,e.mieumsioskorean=12655,e.mihiragana=12415,e.mikatakana=12511,e.mikatakanahalfwidth=65424,e.minus=8722,e.minusbelowcmb=800,e.minuscircle=8854,e.minusmod=727,e.minusplus=8723,e.minute=8242,e.miribaarusquare=13130,e.mirisquare=13129,e.mlonglegturned=624,e.mlsquare=13206,e.mmcubedsquare=13219,e.mmonospace=65357,e.mmsquaredsquare=13215,e.mohiragana=12418,e.mohmsquare=13249,e.mokatakana=12514,e.mokatakanahalfwidth=65427,e.molsquare=13270,e.momathai=3617,e.moverssquare=13223,e.moverssquaredsquare=13224,e.mparen=9384,e.mpasquare=13227,e.mssquare=13235,e.msuperior=63215,e.mturned=623,e.mu=181,e.mu1=181,e.muasquare=13186,e.muchgreater=8811,e.muchless=8810,e.mufsquare=13196,e.mugreek=956,e.mugsquare=13197,e.muhiragana=12416,e.mukatakana=12512,e.mukatakanahalfwidth=65425,e.mulsquare=13205,e.multiply=215,e.mumsquare=13211,e.munahhebrew=1443,e.munahlefthebrew=1443,e.musicalnote=9834,e.musicalnotedbl=9835,e.musicflatsign=9837,e.musicsharpsign=9839,e.mussquare=13234,e.muvsquare=13238,e.muwsquare=13244,e.mvmegasquare=13241,e.mvsquare=13239,e.mwmegasquare=13247,e.mwsquare=13245,e.n=110,e.nabengali=2472,e.nabla=8711,e.nacute=324,e.nadeva=2344,e.nagujarati=2728,e.nagurmukhi=2600,e.nahiragana=12394,e.nakatakana=12490,e.nakatakanahalfwidth=65413,e.napostrophe=329,e.nasquare=13185,e.nbopomofo=12555,e.nbspace=160,e.ncaron=328,e.ncedilla=326,e.ncircle=9437,e.ncircumflexbelow=7755,e.ncommaaccent=326,e.ndotaccent=7749,e.ndotbelow=7751,e.nehiragana=12397,e.nekatakana=12493,e.nekatakanahalfwidth=65416,e.newsheqelsign=8362,e.nfsquare=13195,e.ngabengali=2457,e.ngadeva=2329,e.ngagujarati=2713,e.ngagurmukhi=2585,e.ngonguthai=3591,e.nhiragana=12435,e.nhookleft=626,e.nhookretroflex=627,e.nieunacirclekorean=12911,e.nieunaparenkorean=12815,e.nieuncieuckorean=12597,e.nieuncirclekorean=12897,e.nieunhieuhkorean=12598,e.nieunkorean=12596,e.nieunpansioskorean=12648,e.nieunparenkorean=12801,e.nieunsioskorean=12647,e.nieuntikeutkorean=12646,e.nihiragana=12395,e.nikatakana=12491,e.nikatakanahalfwidth=65414,e.nikhahitleftthai=63641,e.nikhahitthai=3661,e.nine=57,e.ninearabic=1641,e.ninebengali=2543,e.ninecircle=9320,e.ninecircleinversesansserif=10130,e.ninedeva=2415,e.ninegujarati=2799,e.ninegurmukhi=2671,e.ninehackarabic=1641,e.ninehangzhou=12329,e.nineideographicparen=12840,e.nineinferior=8329,e.ninemonospace=65305,e.nineoldstyle=63289,e.nineparen=9340,e.nineperiod=9360,e.ninepersian=1785,e.nineroman=8568,e.ninesuperior=8313,e.nineteencircle=9330,e.nineteenparen=9350,e.nineteenperiod=9370,e.ninethai=3673,e.nj=460,e.njecyrillic=1114,e.nkatakana=12531,e.nkatakanahalfwidth=65437,e.nlegrightlong=414,e.nlinebelow=7753,e.nmonospace=65358,e.nmsquare=13210,e.nnabengali=2467,e.nnadeva=2339,e.nnagujarati=2723,e.nnagurmukhi=2595,e.nnnadeva=2345,e.nohiragana=12398,e.nokatakana=12494,e.nokatakanahalfwidth=65417,e.nonbreakingspace=160,e.nonenthai=3603,e.nonuthai=3609,e.noonarabic=1606,e.noonfinalarabic=65254,e.noonghunnaarabic=1722,e.noonghunnafinalarabic=64415,e.nooninitialarabic=65255,e.noonjeeminitialarabic=64722,e.noonjeemisolatedarabic=64587,e.noonmedialarabic=65256,e.noonmeeminitialarabic=64725,e.noonmeemisolatedarabic=64590,e.noonnoonfinalarabic=64653,e.notcontains=8716,e.notelement=8713,e.notelementof=8713,e.notequal=8800,e.notgreater=8815,e.notgreaternorequal=8817,e.notgreaternorless=8825,e.notidentical=8802,e.notless=8814,e.notlessnorequal=8816,e.notparallel=8742,e.notprecedes=8832,e.notsubset=8836,e.notsucceeds=8833,e.notsuperset=8837,e.nowarmenian=1398,e.nparen=9385,e.nssquare=13233,e.nsuperior=8319,e.ntilde=241,e.nu=957,e.nuhiragana=12396,e.nukatakana=12492,e.nukatakanahalfwidth=65415,e.nuktabengali=2492,e.nuktadeva=2364,e.nuktagujarati=2748,e.nuktagurmukhi=2620,e.numbersign=35,e.numbersignmonospace=65283,e.numbersignsmall=65119,e.numeralsigngreek=884,e.numeralsignlowergreek=885,e.numero=8470,e.nun=1504,e.nundagesh=64320,e.nundageshhebrew=64320,e.nunhebrew=1504,e.nvsquare=13237,e.nwsquare=13243,e.nyabengali=2462,e.nyadeva=2334,e.nyagujarati=2718,e.nyagurmukhi=2590,e.o=111,e.oacute=243,e.oangthai=3629,e.obarred=629,e.obarredcyrillic=1257,e.obarreddieresiscyrillic=1259,e.obengali=2451,e.obopomofo=12571,e.obreve=335,e.ocandradeva=2321,e.ocandragujarati=2705,e.ocandravowelsigndeva=2377,e.ocandravowelsigngujarati=2761,e.ocaron=466,e.ocircle=9438,e.ocircumflex=244,e.ocircumflexacute=7889,e.ocircumflexdotbelow=7897,e.ocircumflexgrave=7891,e.ocircumflexhookabove=7893,e.ocircumflextilde=7895,e.ocyrillic=1086,e.odblacute=337,e.odblgrave=525,e.odeva=2323,e.odieresis=246,e.odieresiscyrillic=1255,e.odotbelow=7885,e.oe=339,e.oekorean=12634,e.ogonek=731,e.ogonekcmb=808,e.ograve=242,e.ogujarati=2707,e.oharmenian=1413,e.ohiragana=12362,e.ohookabove=7887,e.ohorn=417,e.ohornacute=7899,e.ohorndotbelow=7907,e.ohorngrave=7901,e.ohornhookabove=7903,e.ohorntilde=7905,e.ohungarumlaut=337,e.oi=419,e.oinvertedbreve=527,e.okatakana=12458,e.okatakanahalfwidth=65397,e.okorean=12631,e.olehebrew=1451,e.omacron=333,e.omacronacute=7763,e.omacrongrave=7761,e.omdeva=2384,e.omega=969,e.omega1=982,e.omegacyrillic=1121,e.omegalatinclosed=631,e.omegaroundcyrillic=1147,e.omegatitlocyrillic=1149,e.omegatonos=974,e.omgujarati=2768,e.omicron=959,e.omicrontonos=972,e.omonospace=65359,e.one=49,e.onearabic=1633,e.onebengali=2535,e.onecircle=9312,e.onecircleinversesansserif=10122,e.onedeva=2407,e.onedotenleader=8228,e.oneeighth=8539,e.onefitted=63196,e.onegujarati=2791,e.onegurmukhi=2663,e.onehackarabic=1633,e.onehalf=189,e.onehangzhou=12321,e.oneideographicparen=12832,e.oneinferior=8321,e.onemonospace=65297,e.onenumeratorbengali=2548,e.oneoldstyle=63281,e.oneparen=9332,e.oneperiod=9352,e.onepersian=1777,e.onequarter=188,e.oneroman=8560,e.onesuperior=185,e.onethai=3665,e.onethird=8531,e.oogonek=491,e.oogonekmacron=493,e.oogurmukhi=2579,e.oomatragurmukhi=2635,e.oopen=596,e.oparen=9386,e.openbullet=9702,e.option=8997,e.ordfeminine=170,e.ordmasculine=186,e.orthogonal=8735,e.oshortdeva=2322,e.oshortvowelsigndeva=2378,e.oslash=248,e.oslashacute=511,e.osmallhiragana=12361,e.osmallkatakana=12457,e.osmallkatakanahalfwidth=65387,e.ostrokeacute=511,e.osuperior=63216,e.otcyrillic=1151,e.otilde=245,e.otildeacute=7757,e.otildedieresis=7759,e.oubopomofo=12577,e.overline=8254,e.overlinecenterline=65098,e.overlinecmb=773,e.overlinedashed=65097,e.overlinedblwavy=65100,e.overlinewavy=65099,e.overscore=175,e.ovowelsignbengali=2507,e.ovowelsigndeva=2379,e.ovowelsigngujarati=2763,e.p=112,e.paampssquare=13184,e.paasentosquare=13099,e.pabengali=2474,e.pacute=7765,e.padeva=2346,e.pagedown=8671,e.pageup=8670,e.pagujarati=2730,e.pagurmukhi=2602,e.pahiragana=12401,e.paiyannoithai=3631,e.pakatakana=12497,e.palatalizationcyrilliccmb=1156,e.palochkacyrillic=1216,e.pansioskorean=12671,e.paragraph=182,e.parallel=8741,e.parenleft=40,e.parenleftaltonearabic=64830,e.parenleftbt=63725,e.parenleftex=63724,e.parenleftinferior=8333,e.parenleftmonospace=65288,e.parenleftsmall=65113,e.parenleftsuperior=8317,e.parenlefttp=63723,e.parenleftvertical=65077,e.parenright=41,e.parenrightaltonearabic=64831,e.parenrightbt=63736,e.parenrightex=63735,e.parenrightinferior=8334,e.parenrightmonospace=65289,e.parenrightsmall=65114,e.parenrightsuperior=8318,e.parenrighttp=63734,e.parenrightvertical=65078,e.partialdiff=8706,e.paseqhebrew=1472,e.pashtahebrew=1433,e.pasquare=13225,e.patah=1463,e.patah11=1463,e.patah1d=1463,e.patah2a=1463,e.patahhebrew=1463,e.patahnarrowhebrew=1463,e.patahquarterhebrew=1463,e.patahwidehebrew=1463,e.pazerhebrew=1441,e.pbopomofo=12550,e.pcircle=9439,e.pdotaccent=7767,e.pe=1508,e.pecyrillic=1087,e.pedagesh=64324,e.pedageshhebrew=64324,e.peezisquare=13115,e.pefinaldageshhebrew=64323,e.peharabic=1662,e.peharmenian=1402,e.pehebrew=1508,e.pehfinalarabic=64343,e.pehinitialarabic=64344,e.pehiragana=12410,e.pehmedialarabic=64345,e.pekatakana=12506,e.pemiddlehookcyrillic=1191,e.perafehebrew=64334,e.percent=37,e.percentarabic=1642,e.percentmonospace=65285,e.percentsmall=65130,e.period=46,e.periodarmenian=1417,e.periodcentered=183,e.periodhalfwidth=65377,e.periodinferior=63207,e.periodmonospace=65294,e.periodsmall=65106,e.periodsuperior=63208,e.perispomenigreekcmb=834,e.perpendicular=8869,e.perthousand=8240,e.peseta=8359,e.pfsquare=13194,e.phabengali=2475,e.phadeva=2347,e.phagujarati=2731,e.phagurmukhi=2603,e.phi=966,e.phi1=981,e.phieuphacirclekorean=12922,e.phieuphaparenkorean=12826,e.phieuphcirclekorean=12908,e.phieuphkorean=12621,e.phieuphparenkorean=12812,e.philatin=632,e.phinthuthai=3642,e.phisymbolgreek=981,e.phook=421,e.phophanthai=3614,e.phophungthai=3612,e.phosamphaothai=3616,e.pi=960,e.pieupacirclekorean=12915,e.pieupaparenkorean=12819,e.pieupcieuckorean=12662,e.pieupcirclekorean=12901,e.pieupkiyeokkorean=12658,e.pieupkorean=12610,e.pieupparenkorean=12805,e.pieupsioskiyeokkorean=12660,e.pieupsioskorean=12612,e.pieupsiostikeutkorean=12661,e.pieupthieuthkorean=12663,e.pieuptikeutkorean=12659,e.pihiragana=12404,e.pikatakana=12500,e.pisymbolgreek=982,e.piwrarmenian=1411,e.planckover2pi=8463,e.planckover2pi1=8463,e.plus=43,e.plusbelowcmb=799,e.pluscircle=8853,e.plusminus=177,e.plusmod=726,e.plusmonospace=65291,e.plussmall=65122,e.plussuperior=8314,e.pmonospace=65360,e.pmsquare=13272,e.pohiragana=12413,e.pointingindexdownwhite=9759,e.pointingindexleftwhite=9756,e.pointingindexrightwhite=9758,e.pointingindexupwhite=9757,e.pokatakana=12509,e.poplathai=3611,e.postalmark=12306,e.postalmarkface=12320,e.pparen=9387,e.precedes=8826,e.prescription=8478,e.primemod=697,e.primereversed=8245,e.product=8719,e.projective=8965,e.prolongedkana=12540,e.propellor=8984,e.propersubset=8834,e.propersuperset=8835,e.proportion=8759,e.proportional=8733,e.psi=968,e.psicyrillic=1137,e.psilipneumatacyrilliccmb=1158,e.pssquare=13232,e.puhiragana=12407,e.pukatakana=12503,e.pvsquare=13236,e.pwsquare=13242,e.q=113,e.qadeva=2392,e.qadmahebrew=1448,e.qafarabic=1602,e.qaffinalarabic=65238,e.qafinitialarabic=65239,e.qafmedialarabic=65240,e.qamats=1464,e.qamats10=1464,e.qamats1a=1464,e.qamats1c=1464,e.qamats27=1464,e.qamats29=1464,e.qamats33=1464,e.qamatsde=1464,e.qamatshebrew=1464,e.qamatsnarrowhebrew=1464,e.qamatsqatanhebrew=1464,e.qamatsqatannarrowhebrew=1464,e.qamatsqatanquarterhebrew=1464,e.qamatsqatanwidehebrew=1464,e.qamatsquarterhebrew=1464,e.qamatswidehebrew=1464,e.qarneyparahebrew=1439,e.qbopomofo=12561,e.qcircle=9440,e.qhook=672,e.qmonospace=65361,e.qof=1511,e.qofdagesh=64327,e.qofdageshhebrew=64327,e.qofhebrew=1511,e.qparen=9388,e.quarternote=9833,e.qubuts=1467,e.qubuts18=1467,e.qubuts25=1467,e.qubuts31=1467,e.qubutshebrew=1467,e.qubutsnarrowhebrew=1467,e.qubutsquarterhebrew=1467,e.qubutswidehebrew=1467,e.question=63,e.questionarabic=1567,e.questionarmenian=1374,e.questiondown=191,e.questiondownsmall=63423,e.questiongreek=894,e.questionmonospace=65311,e.questionsmall=63295,e.quotedbl=34,e.quotedblbase=8222,e.quotedblleft=8220,e.quotedblmonospace=65282,e.quotedblprime=12318,e.quotedblprimereversed=12317,e.quotedblright=8221,e.quoteleft=8216,e.quoteleftreversed=8219,e.quotereversed=8219,e.quoteright=8217,e.quoterightn=329,e.quotesinglbase=8218,e.quotesingle=39,e.quotesinglemonospace=65287,e.r=114,e.raarmenian=1404,e.rabengali=2480,e.racute=341,e.radeva=2352,e.radical=8730,e.radicalex=63717,e.radoverssquare=13230,e.radoverssquaredsquare=13231,e.radsquare=13229,e.rafe=1471,e.rafehebrew=1471,e.ragujarati=2736,e.ragurmukhi=2608,e.rahiragana=12425,e.rakatakana=12521,e.rakatakanahalfwidth=65431,e.ralowerdiagonalbengali=2545,e.ramiddlediagonalbengali=2544,e.ramshorn=612,e.ratio=8758,e.rbopomofo=12566,e.rcaron=345,e.rcedilla=343,e.rcircle=9441,e.rcommaaccent=343,e.rdblgrave=529,e.rdotaccent=7769,e.rdotbelow=7771,e.rdotbelowmacron=7773,e.referencemark=8251,e.reflexsubset=8838,e.reflexsuperset=8839,e.registered=174,e.registersans=63720,e.registerserif=63194,e.reharabic=1585,e.reharmenian=1408,e.rehfinalarabic=65198,e.rehiragana=12428,e.rekatakana=12524;e.rekatakanahalfwidth=65434,e.resh=1512,e.reshdageshhebrew=64328,e.reshhebrew=1512,e.reversedtilde=8765,e.reviahebrew=1431,e.reviamugrashhebrew=1431,e.revlogicalnot=8976,e.rfishhook=638,e.rfishhookreversed=639,e.rhabengali=2525,e.rhadeva=2397,e.rho=961,e.rhook=637,e.rhookturned=635,e.rhookturnedsuperior=693,e.rhosymbolgreek=1009,e.rhotichookmod=734,e.rieulacirclekorean=12913,e.rieulaparenkorean=12817,e.rieulcirclekorean=12899,e.rieulhieuhkorean=12608,e.rieulkiyeokkorean=12602,e.rieulkiyeoksioskorean=12649,e.rieulkorean=12601,e.rieulmieumkorean=12603,e.rieulpansioskorean=12652,e.rieulparenkorean=12803,e.rieulphieuphkorean=12607,e.rieulpieupkorean=12604,e.rieulpieupsioskorean=12651,e.rieulsioskorean=12605,e.rieulthieuthkorean=12606,e.rieultikeutkorean=12650,e.rieulyeorinhieuhkorean=12653,e.rightangle=8735,e.righttackbelowcmb=793,e.righttriangle=8895,e.rihiragana=12426,e.rikatakana=12522,e.rikatakanahalfwidth=65432,e.ring=730,e.ringbelowcmb=805,e.ringcmb=778,e.ringhalfleft=703,e.ringhalfleftarmenian=1369,e.ringhalfleftbelowcmb=796,e.ringhalfleftcentered=723,e.ringhalfright=702,e.ringhalfrightbelowcmb=825,e.ringhalfrightcentered=722,e.rinvertedbreve=531,e.rittorusquare=13137,e.rlinebelow=7775,e.rlongleg=636,e.rlonglegturned=634,e.rmonospace=65362,e.rohiragana=12429,e.rokatakana=12525,e.rokatakanahalfwidth=65435,e.roruathai=3619,e.rparen=9389,e.rrabengali=2524,e.rradeva=2353,e.rragurmukhi=2652,e.rreharabic=1681,e.rrehfinalarabic=64397,e.rrvocalicbengali=2528,e.rrvocalicdeva=2400,e.rrvocalicgujarati=2784,e.rrvocalicvowelsignbengali=2500,e.rrvocalicvowelsigndeva=2372,e.rrvocalicvowelsigngujarati=2756,e.rsuperior=63217,e.rtblock=9616,e.rturned=633,e.rturnedsuperior=692,e.ruhiragana=12427,e.rukatakana=12523,e.rukatakanahalfwidth=65433,e.rupeemarkbengali=2546,e.rupeesignbengali=2547,e.rupiah=63197,e.ruthai=3620,e.rvocalicbengali=2443,e.rvocalicdeva=2315,e.rvocalicgujarati=2699,e.rvocalicvowelsignbengali=2499,e.rvocalicvowelsigndeva=2371,e.rvocalicvowelsigngujarati=2755,e.s=115,e.sabengali=2488,e.sacute=347,e.sacutedotaccent=7781,e.sadarabic=1589,e.sadeva=2360,e.sadfinalarabic=65210,e.sadinitialarabic=65211,e.sadmedialarabic=65212,e.sagujarati=2744,e.sagurmukhi=2616,e.sahiragana=12373,e.sakatakana=12469,e.sakatakanahalfwidth=65403,e.sallallahoualayhewasallamarabic=65018,e.samekh=1505,e.samekhdagesh=64321,e.samekhdageshhebrew=64321,e.samekhhebrew=1505,e.saraaathai=3634,e.saraaethai=3649,e.saraaimaimalaithai=3652,e.saraaimaimuanthai=3651,e.saraamthai=3635,e.saraathai=3632,e.saraethai=3648,e.saraiileftthai=63622,e.saraiithai=3637,e.saraileftthai=63621,e.saraithai=3636,e.saraothai=3650,e.saraueeleftthai=63624,e.saraueethai=3639,e.saraueleftthai=63623,e.sarauethai=3638,e.sarauthai=3640,e.sarauuthai=3641,e.sbopomofo=12569,e.scaron=353,e.scarondotaccent=7783,e.scedilla=351,e.schwa=601,e.schwacyrillic=1241,e.schwadieresiscyrillic=1243,e.schwahook=602,e.scircle=9442,e.scircumflex=349,e.scommaaccent=537,e.sdotaccent=7777,e.sdotbelow=7779,e.sdotbelowdotaccent=7785,e.seagullbelowcmb=828,e.second=8243,e.secondtonechinese=714,e.section=167,e.seenarabic=1587,e.seenfinalarabic=65202,e.seeninitialarabic=65203,e.seenmedialarabic=65204,e.segol=1462,e.segol13=1462,e.segol1f=1462,e.segol2c=1462,e.segolhebrew=1462,e.segolnarrowhebrew=1462,e.segolquarterhebrew=1462,e.segoltahebrew=1426,e.segolwidehebrew=1462,e.seharmenian=1405,e.sehiragana=12379,e.sekatakana=12475,e.sekatakanahalfwidth=65406,e.semicolon=59,e.semicolonarabic=1563,e.semicolonmonospace=65307,e.semicolonsmall=65108,e.semivoicedmarkkana=12444,e.semivoicedmarkkanahalfwidth=65439,e.sentisquare=13090,e.sentosquare=13091,e.seven=55,e.sevenarabic=1639,e.sevenbengali=2541,e.sevencircle=9318,e.sevencircleinversesansserif=10128,e.sevendeva=2413,e.seveneighths=8542,e.sevengujarati=2797,e.sevengurmukhi=2669,e.sevenhackarabic=1639,e.sevenhangzhou=12327,e.sevenideographicparen=12838,e.seveninferior=8327,e.sevenmonospace=65303,e.sevenoldstyle=63287,e.sevenparen=9338,e.sevenperiod=9358,e.sevenpersian=1783,e.sevenroman=8566,e.sevensuperior=8311,e.seventeencircle=9328,e.seventeenparen=9348,e.seventeenperiod=9368,e.seventhai=3671,e.sfthyphen=173,e.shaarmenian=1399,e.shabengali=2486,e.shacyrillic=1096,e.shaddaarabic=1617,e.shaddadammaarabic=64609,e.shaddadammatanarabic=64606,e.shaddafathaarabic=64608,e.shaddakasraarabic=64610,e.shaddakasratanarabic=64607,e.shade=9618,e.shadedark=9619,e.shadelight=9617,e.shademedium=9618,e.shadeva=2358,e.shagujarati=2742,e.shagurmukhi=2614,e.shalshelethebrew=1427,e.shbopomofo=12565,e.shchacyrillic=1097,e.sheenarabic=1588,e.sheenfinalarabic=65206,e.sheeninitialarabic=65207,e.sheenmedialarabic=65208,e.sheicoptic=995,e.sheqel=8362,e.sheqelhebrew=8362,e.sheva=1456,e.sheva115=1456,e.sheva15=1456,e.sheva22=1456,e.sheva2e=1456,e.shevahebrew=1456,e.shevanarrowhebrew=1456,e.shevaquarterhebrew=1456,e.shevawidehebrew=1456,e.shhacyrillic=1211,e.shimacoptic=1005,e.shin=1513,e.shindagesh=64329,e.shindageshhebrew=64329,e.shindageshshindot=64300,e.shindageshshindothebrew=64300,e.shindageshsindot=64301,e.shindageshsindothebrew=64301,e.shindothebrew=1473,e.shinhebrew=1513,e.shinshindot=64298,e.shinshindothebrew=64298,e.shinsindot=64299,e.shinsindothebrew=64299,e.shook=642,e.sigma=963,e.sigma1=962,e.sigmafinal=962,e.sigmalunatesymbolgreek=1010,e.sihiragana=12375,e.sikatakana=12471,e.sikatakanahalfwidth=65404,e.siluqhebrew=1469,e.siluqlefthebrew=1469,e.similar=8764,e.sindothebrew=1474,e.siosacirclekorean=12916,e.siosaparenkorean=12820,e.sioscieuckorean=12670,e.sioscirclekorean=12902,e.sioskiyeokkorean=12666,e.sioskorean=12613,e.siosnieunkorean=12667,e.siosparenkorean=12806,e.siospieupkorean=12669,e.siostikeutkorean=12668,e.six=54,e.sixarabic=1638,e.sixbengali=2540,e.sixcircle=9317,e.sixcircleinversesansserif=10127,e.sixdeva=2412,e.sixgujarati=2796,e.sixgurmukhi=2668,e.sixhackarabic=1638,e.sixhangzhou=12326,e.sixideographicparen=12837,e.sixinferior=8326,e.sixmonospace=65302,e.sixoldstyle=63286,e.sixparen=9337,e.sixperiod=9357,e.sixpersian=1782,e.sixroman=8565,e.sixsuperior=8310,e.sixteencircle=9327,e.sixteencurrencydenominatorbengali=2553,e.sixteenparen=9347,e.sixteenperiod=9367,e.sixthai=3670,e.slash=47,e.slashmonospace=65295,e.slong=383,e.slongdotaccent=7835,e.smileface=9786,e.smonospace=65363,e.sofpasuqhebrew=1475,e.softhyphen=173,e.softsigncyrillic=1100,e.sohiragana=12381,e.sokatakana=12477,e.sokatakanahalfwidth=65407,e.soliduslongoverlaycmb=824,e.solidusshortoverlaycmb=823,e.sorusithai=3625,e.sosalathai=3624,e.sosothai=3595,e.sosuathai=3626,e.space=32,e.spacehackarabic=32,e.spade=9824,e.spadesuitblack=9824,e.spadesuitwhite=9828,e.sparen=9390,e.squarebelowcmb=827,e.squarecc=13252,e.squarecm=13213,e.squarediagonalcrosshatchfill=9641,e.squarehorizontalfill=9636,e.squarekg=13199,e.squarekm=13214,e.squarekmcapital=13262,e.squareln=13265,e.squarelog=13266,e.squaremg=13198,e.squaremil=13269,e.squaremm=13212,e.squaremsquared=13217,e.squareorthogonalcrosshatchfill=9638,e.squareupperlefttolowerrightfill=9639,e.squareupperrighttolowerleftfill=9640,e.squareverticalfill=9637,e.squarewhitewithsmallblack=9635,e.srsquare=13275,e.ssabengali=2487,e.ssadeva=2359,e.ssagujarati=2743,e.ssangcieuckorean=12617,e.ssanghieuhkorean=12677,e.ssangieungkorean=12672,e.ssangkiyeokkorean=12594,e.ssangnieunkorean=12645,e.ssangpieupkorean=12611,e.ssangsioskorean=12614,e.ssangtikeutkorean=12600,e.ssuperior=63218,e.sterling=163,e.sterlingmonospace=65505,e.strokelongoverlaycmb=822,e.strokeshortoverlaycmb=821,e.subset=8834,e.subsetnotequal=8842,e.subsetorequal=8838,e.succeeds=8827,e.suchthat=8715,e.suhiragana=12377,e.sukatakana=12473,e.sukatakanahalfwidth=65405,e.sukunarabic=1618,e.summation=8721,e.sun=9788,e.superset=8835,e.supersetnotequal=8843,e.supersetorequal=8839,e.svsquare=13276,e.syouwaerasquare=13180,e.t=116,e.tabengali=2468,e.tackdown=8868,e.tackleft=8867,e.tadeva=2340,e.tagujarati=2724,e.tagurmukhi=2596,e.taharabic=1591,e.tahfinalarabic=65218,e.tahinitialarabic=65219,e.tahiragana=12383,e.tahmedialarabic=65220,e.taisyouerasquare=13181,e.takatakana=12479,e.takatakanahalfwidth=65408,e.tatweelarabic=1600,e.tau=964,e.tav=1514,e.tavdages=64330,e.tavdagesh=64330,e.tavdageshhebrew=64330,e.tavhebrew=1514,e.tbar=359,e.tbopomofo=12554,e.tcaron=357,e.tccurl=680,e.tcedilla=355,e.tcheharabic=1670,e.tchehfinalarabic=64379,e.tchehinitialarabic=64380,e.tchehmedialarabic=64381,e.tcircle=9443,e.tcircumflexbelow=7793,e.tcommaaccent=355,e.tdieresis=7831,e.tdotaccent=7787,e.tdotbelow=7789,e.tecyrillic=1090,e.tedescendercyrillic=1197,e.teharabic=1578,e.tehfinalarabic=65174,e.tehhahinitialarabic=64674,e.tehhahisolatedarabic=64524,e.tehinitialarabic=65175,e.tehiragana=12390,e.tehjeeminitialarabic=64673,e.tehjeemisolatedarabic=64523,e.tehmarbutaarabic=1577,e.tehmarbutafinalarabic=65172,e.tehmedialarabic=65176,e.tehmeeminitialarabic=64676,e.tehmeemisolatedarabic=64526,e.tehnoonfinalarabic=64627,e.tekatakana=12486,e.tekatakanahalfwidth=65411,e.telephone=8481,e.telephoneblack=9742,e.telishagedolahebrew=1440,e.telishaqetanahebrew=1449,e.tencircle=9321,e.tenideographicparen=12841,e.tenparen=9341,e.tenperiod=9361,e.tenroman=8569,e.tesh=679,e.tet=1496,e.tetdagesh=64312,e.tetdageshhebrew=64312,e.tethebrew=1496,e.tetsecyrillic=1205,e.tevirhebrew=1435,e.tevirlefthebrew=1435,e.thabengali=2469,e.thadeva=2341,e.thagujarati=2725,e.thagurmukhi=2597,e.thalarabic=1584,e.thalfinalarabic=65196,e.thanthakhatlowleftthai=63640,e.thanthakhatlowrightthai=63639,e.thanthakhatthai=3660,e.thanthakhatupperleftthai=63638,e.theharabic=1579,e.thehfinalarabic=65178,e.thehinitialarabic=65179,e.thehmedialarabic=65180,e.thereexists=8707,e.therefore=8756,e.theta=952,e.theta1=977,e.thetasymbolgreek=977,e.thieuthacirclekorean=12921,e.thieuthaparenkorean=12825,e.thieuthcirclekorean=12907,e.thieuthkorean=12620,e.thieuthparenkorean=12811,e.thirteencircle=9324,e.thirteenparen=9344,e.thirteenperiod=9364,e.thonangmonthothai=3601,e.thook=429,e.thophuthaothai=3602,e.thorn=254,e.thothahanthai=3607,e.thothanthai=3600,e.thothongthai=3608,e.thothungthai=3606,e.thousandcyrillic=1154,e.thousandsseparatorarabic=1644,e.thousandsseparatorpersian=1644,e.three=51,e.threearabic=1635,e.threebengali=2537,e.threecircle=9314,e.threecircleinversesansserif=10124,e.threedeva=2409,e.threeeighths=8540,e.threegujarati=2793,e.threegurmukhi=2665,e.threehackarabic=1635,e.threehangzhou=12323,e.threeideographicparen=12834,e.threeinferior=8323,e.threemonospace=65299,e.threenumeratorbengali=2550,e.threeoldstyle=63283,e.threeparen=9334,e.threeperiod=9354,e.threepersian=1779,e.threequarters=190,e.threequartersemdash=63198,e.threeroman=8562,e.threesuperior=179,e.threethai=3667,e.thzsquare=13204,e.tihiragana=12385,e.tikatakana=12481,e.tikatakanahalfwidth=65409,e.tikeutacirclekorean=12912,e.tikeutaparenkorean=12816,e.tikeutcirclekorean=12898,e.tikeutkorean=12599,e.tikeutparenkorean=12802,e.tilde=732,e.tildebelowcmb=816,e.tildecmb=771,e.tildecomb=771,e.tildedoublecmb=864,e.tildeoperator=8764,e.tildeoverlaycmb=820,e.tildeverticalcmb=830,e.timescircle=8855,e.tipehahebrew=1430,e.tipehalefthebrew=1430,e.tippigurmukhi=2672,e.titlocyrilliccmb=1155,e.tiwnarmenian=1407,e.tlinebelow=7791,e.tmonospace=65364,e.toarmenian=1385,e.tohiragana=12392,e.tokatakana=12488,e.tokatakanahalfwidth=65412,e.tonebarextrahighmod=741,e.tonebarextralowmod=745,e.tonebarhighmod=742,e.tonebarlowmod=744,e.tonebarmidmod=743,e.tonefive=445,e.tonesix=389,e.tonetwo=424,e.tonos=900,e.tonsquare=13095,e.topatakthai=3599,e.tortoiseshellbracketleft=12308,e.tortoiseshellbracketleftsmall=65117,e.tortoiseshellbracketleftvertical=65081,e.tortoiseshellbracketright=12309,e.tortoiseshellbracketrightsmall=65118,e.tortoiseshellbracketrightvertical=65082,e.totaothai=3605,e.tpalatalhook=427,e.tparen=9391,e.trademark=8482,e.trademarksans=63722,e.trademarkserif=63195,e.tretroflexhook=648,e.triagdn=9660,e.triaglf=9668,e.triagrt=9658,e.triagup=9650,e.ts=678,e.tsadi=1510,e.tsadidagesh=64326,e.tsadidageshhebrew=64326,e.tsadihebrew=1510,e.tsecyrillic=1094,e.tsere=1461,e.tsere12=1461,e.tsere1e=1461,e.tsere2b=1461,e.tserehebrew=1461,e.tserenarrowhebrew=1461,e.tserequarterhebrew=1461,e.tserewidehebrew=1461,e.tshecyrillic=1115,e.tsuperior=63219,e.ttabengali=2463,e.ttadeva=2335,e.ttagujarati=2719,e.ttagurmukhi=2591,e.tteharabic=1657,e.ttehfinalarabic=64359,e.ttehinitialarabic=64360,e.ttehmedialarabic=64361,e.tthabengali=2464,e.tthadeva=2336,e.tthagujarati=2720,e.tthagurmukhi=2592,e.tturned=647,e.tuhiragana=12388,e.tukatakana=12484,e.tukatakanahalfwidth=65410,e.tusmallhiragana=12387,e.tusmallkatakana=12483,e.tusmallkatakanahalfwidth=65391,e.twelvecircle=9323,e.twelveparen=9343,e.twelveperiod=9363,e.twelveroman=8571,e.twentycircle=9331,e.twentyhangzhou=21316,e.twentyparen=9351,e.twentyperiod=9371,e.two=50,e.twoarabic=1634,e.twobengali=2536,e.twocircle=9313,e.twocircleinversesansserif=10123,e.twodeva=2408,e.twodotenleader=8229,e.twodotleader=8229,e.twodotleadervertical=65072,e.twogujarati=2792,e.twogurmukhi=2664,e.twohackarabic=1634,e.twohangzhou=12322,e.twoideographicparen=12833,e.twoinferior=8322,e.twomonospace=65298,e.twonumeratorbengali=2549,e.twooldstyle=63282,e.twoparen=9333,e.twoperiod=9353,e.twopersian=1778,e.tworoman=8561,e.twostroke=443,e.twosuperior=178,e.twothai=3666,e.twothirds=8532,e.u=117,e.uacute=250,e.ubar=649,e.ubengali=2441,e.ubopomofo=12584,e.ubreve=365,e.ucaron=468,e.ucircle=9444,e.ucircumflex=251,e.ucircumflexbelow=7799,e.ucyrillic=1091,e.udattadeva=2385,e.udblacute=369,e.udblgrave=533,e.udeva=2313,e.udieresis=252,e.udieresisacute=472,e.udieresisbelow=7795,e.udieresiscaron=474,e.udieresiscyrillic=1265,e.udieresisgrave=476,e.udieresismacron=470,e.udotbelow=7909,e.ugrave=249,e.ugujarati=2697,e.ugurmukhi=2569,e.uhiragana=12358,e.uhookabove=7911,e.uhorn=432,e.uhornacute=7913,e.uhorndotbelow=7921,e.uhorngrave=7915,e.uhornhookabove=7917,e.uhorntilde=7919,e.uhungarumlaut=369,e.uhungarumlautcyrillic=1267,e.uinvertedbreve=535,e.ukatakana=12454,e.ukatakanahalfwidth=65395,e.ukcyrillic=1145,e.ukorean=12636,e.umacron=363,e.umacroncyrillic=1263,e.umacrondieresis=7803,e.umatragurmukhi=2625,e.umonospace=65365,e.underscore=95,e.underscoredbl=8215,e.underscoremonospace=65343,e.underscorevertical=65075,e.underscorewavy=65103,e.union=8746,e.universal=8704,e.uogonek=371,e.uparen=9392,e.upblock=9600,e.upperdothebrew=1476,e.upsilon=965,e.upsilondieresis=971,e.upsilondieresistonos=944,e.upsilonlatin=650,e.upsilontonos=973,e.uptackbelowcmb=797,e.uptackmod=724,e.uragurmukhi=2675,e.uring=367,e.ushortcyrillic=1118,e.usmallhiragana=12357,e.usmallkatakana=12453,e.usmallkatakanahalfwidth=65385,e.ustraightcyrillic=1199,e.ustraightstrokecyrillic=1201,e.utilde=361,e.utildeacute=7801,e.utildebelow=7797,e.uubengali=2442,e.uudeva=2314,e.uugujarati=2698,e.uugurmukhi=2570,e.uumatragurmukhi=2626,e.uuvowelsignbengali=2498,e.uuvowelsigndeva=2370,e.uuvowelsigngujarati=2754,e.uvowelsignbengali=2497,e.uvowelsigndeva=2369,e.uvowelsigngujarati=2753,e.v=118,e.vadeva=2357,e.vagujarati=2741,e.vagurmukhi=2613,e.vakatakana=12535,e.vav=1493,e.vavdagesh=64309,e.vavdagesh65=64309,e.vavdageshhebrew=64309,e.vavhebrew=1493,e.vavholam=64331,e.vavholamhebrew=64331,e.vavvavhebrew=1520,e.vavyodhebrew=1521,e.vcircle=9445,e.vdotbelow=7807,e.vecyrillic=1074,e.veharabic=1700,e.vehfinalarabic=64363,e.vehinitialarabic=64364,e.vehmedialarabic=64365,e.vekatakana=12537,e.venus=9792,e.verticalbar=124,e.verticallineabovecmb=781,e.verticallinebelowcmb=809,e.verticallinelowmod=716,e.verticallinemod=712,e.vewarmenian=1406,e.vhook=651,e.vikatakana=12536,e.viramabengali=2509,e.viramadeva=2381,e.viramagujarati=2765,e.visargabengali=2435,e.visargadeva=2307,e.visargagujarati=2691,e.vmonospace=65366,e.voarmenian=1400,e.voicediterationhiragana=12446,e.voicediterationkatakana=12542,e.voicedmarkkana=12443,e.voicedmarkkanahalfwidth=65438,e.vokatakana=12538,e.vparen=9393,e.vtilde=7805,e.vturned=652,e.vuhiragana=12436,e.vukatakana=12532,e.w=119,e.wacute=7811,e.waekorean=12633,e.wahiragana=12431,e.wakatakana=12527,e.wakatakanahalfwidth=65436,e.wakorean=12632,e.wasmallhiragana=12430,e.wasmallkatakana=12526,e.wattosquare=13143,e.wavedash=12316,e.wavyunderscorevertical=65076,e.wawarabic=1608,e.wawfinalarabic=65262,e.wawhamzaabovearabic=1572,e.wawhamzaabovefinalarabic=65158,e.wbsquare=13277,e.wcircle=9446,e.wcircumflex=373,e.wdieresis=7813,e.wdotaccent=7815,e.wdotbelow=7817,e.wehiragana=12433,e.weierstrass=8472,e.wekatakana=12529,e.wekorean=12638,e.weokorean=12637,e.wgrave=7809,e.whitebullet=9702,e.whitecircle=9675,e.whitecircleinverse=9689,e.whitecornerbracketleft=12302,e.whitecornerbracketleftvertical=65091,e.whitecornerbracketright=12303,e.whitecornerbracketrightvertical=65092,e.whitediamond=9671,e.whitediamondcontainingblacksmalldiamond=9672,e.whitedownpointingsmalltriangle=9663;e.whitedownpointingtriangle=9661,e.whiteleftpointingsmalltriangle=9667,e.whiteleftpointingtriangle=9665,e.whitelenticularbracketleft=12310,e.whitelenticularbracketright=12311,e.whiterightpointingsmalltriangle=9657,e.whiterightpointingtriangle=9655,e.whitesmallsquare=9643,e.whitesmilingface=9786,e.whitesquare=9633,e.whitestar=9734,e.whitetelephone=9743,e.whitetortoiseshellbracketleft=12312,e.whitetortoiseshellbracketright=12313,e.whiteuppointingsmalltriangle=9653,e.whiteuppointingtriangle=9651,e.wihiragana=12432,e.wikatakana=12528,e.wikorean=12639,e.wmonospace=65367,e.wohiragana=12434,e.wokatakana=12530,e.wokatakanahalfwidth=65382,e.won=8361,e.wonmonospace=65510,e.wowaenthai=3623,e.wparen=9394,e.wring=7832,e.wsuperior=695,e.wturned=653,e.wynn=447,e.x=120,e.xabovecmb=829,e.xbopomofo=12562,e.xcircle=9447,e.xdieresis=7821,e.xdotaccent=7819,e.xeharmenian=1389,e.xi=958,e.xmonospace=65368,e.xparen=9395,e.xsuperior=739,e.y=121,e.yaadosquare=13134,e.yabengali=2479,e.yacute=253,e.yadeva=2351,e.yaekorean=12626,e.yagujarati=2735,e.yagurmukhi=2607,e.yahiragana=12420,e.yakatakana=12516,e.yakatakanahalfwidth=65428,e.yakorean=12625,e.yamakkanthai=3662,e.yasmallhiragana=12419,e.yasmallkatakana=12515,e.yasmallkatakanahalfwidth=65388,e.yatcyrillic=1123,e.ycircle=9448,e.ycircumflex=375,e.ydieresis=255,e.ydotaccent=7823,e.ydotbelow=7925,e.yeharabic=1610,e.yehbarreearabic=1746,e.yehbarreefinalarabic=64431,e.yehfinalarabic=65266,e.yehhamzaabovearabic=1574,e.yehhamzaabovefinalarabic=65162,e.yehhamzaaboveinitialarabic=65163,e.yehhamzaabovemedialarabic=65164,e.yehinitialarabic=65267,e.yehmedialarabic=65268,e.yehmeeminitialarabic=64733,e.yehmeemisolatedarabic=64600,e.yehnoonfinalarabic=64660,e.yehthreedotsbelowarabic=1745,e.yekorean=12630,e.yen=165,e.yenmonospace=65509,e.yeokorean=12629,e.yeorinhieuhkorean=12678,e.yerahbenyomohebrew=1450,e.yerahbenyomolefthebrew=1450,e.yericyrillic=1099,e.yerudieresiscyrillic=1273,e.yesieungkorean=12673,e.yesieungpansioskorean=12675,e.yesieungsioskorean=12674,e.yetivhebrew=1434,e.ygrave=7923,e.yhook=436,e.yhookabove=7927,e.yiarmenian=1397,e.yicyrillic=1111,e.yikorean=12642,e.yinyang=9775,e.yiwnarmenian=1410,e.ymonospace=65369,e.yod=1497,e.yoddagesh=64313,e.yoddageshhebrew=64313,e.yodhebrew=1497,e.yodyodhebrew=1522,e.yodyodpatahhebrew=64287,e.yohiragana=12424,e.yoikorean=12681,e.yokatakana=12520,e.yokatakanahalfwidth=65430,e.yokorean=12635,e.yosmallhiragana=12423,e.yosmallkatakana=12519,e.yosmallkatakanahalfwidth=65390,e.yotgreek=1011,e.yoyaekorean=12680,e.yoyakorean=12679,e.yoyakthai=3618,e.yoyingthai=3597,e.yparen=9396,e.ypogegrammeni=890,e.ypogegrammenigreekcmb=837,e.yr=422,e.yring=7833,e.ysuperior=696,e.ytilde=7929,e.yturned=654,e.yuhiragana=12422,e.yuikorean=12684,e.yukatakana=12518,e.yukatakanahalfwidth=65429,e.yukorean=12640,e.yusbigcyrillic=1131,e.yusbigiotifiedcyrillic=1133,e.yuslittlecyrillic=1127,e.yuslittleiotifiedcyrillic=1129,e.yusmallhiragana=12421,e.yusmallkatakana=12517,e.yusmallkatakanahalfwidth=65389,e.yuyekorean=12683,e.yuyeokorean=12682,e.yyabengali=2527,e.yyadeva=2399,e.z=122,e.zaarmenian=1382,e.zacute=378,e.zadeva=2395,e.zagurmukhi=2651,e.zaharabic=1592,e.zahfinalarabic=65222,e.zahinitialarabic=65223,e.zahiragana=12374,e.zahmedialarabic=65224,e.zainarabic=1586,e.zainfinalarabic=65200,e.zakatakana=12470,e.zaqefgadolhebrew=1429,e.zaqefqatanhebrew=1428,e.zarqahebrew=1432,e.zayin=1494,e.zayindagesh=64310,e.zayindageshhebrew=64310,e.zayinhebrew=1494,e.zbopomofo=12567,e.zcaron=382,e.zcircle=9449,e.zcircumflex=7825,e.zcurl=657,e.zdot=380,e.zdotaccent=380,e.zdotbelow=7827,e.zecyrillic=1079,e.zedescendercyrillic=1177,e.zedieresiscyrillic=1247,e.zehiragana=12380,e.zekatakana=12476,e.zero=48,e.zeroarabic=1632,e.zerobengali=2534,e.zerodeva=2406,e.zerogujarati=2790,e.zerogurmukhi=2662,e.zerohackarabic=1632,e.zeroinferior=8320,e.zeromonospace=65296,e.zerooldstyle=63280,e.zeropersian=1776,e.zerosuperior=8304,e.zerothai=3664,e.zerowidthjoiner=65279,e.zerowidthnonjoiner=8204,e.zerowidthspace=8203,e.zeta=950,e.zhbopomofo=12563,e.zhearmenian=1386,e.zhebrevecyrillic=1218,e.zhecyrillic=1078,e.zhedescendercyrillic=1175,e.zhedieresiscyrillic=1245,e.zihiragana=12376,e.zikatakana=12472,e.zinorhebrew=1454,e.zlinebelow=7829,e.zmonospace=65370,e.zohiragana=12382,e.zokatakana=12478,e.zparen=9397,e.zretroflexhook=656,e.zstroke=438,e.zuhiragana=12378,e.zukatakana=12474,e[".notdef"]=0,e.angbracketleftbig=9001,e.angbracketleftBig=9001,e.angbracketleftbigg=9001,e.angbracketleftBigg=9001,e.angbracketrightBig=9002,e.angbracketrightbig=9002,e.angbracketrightBigg=9002,e.angbracketrightbigg=9002,e.arrowhookleft=8618,e.arrowhookright=8617,e.arrowlefttophalf=8636,e.arrowleftbothalf=8637,e.arrownortheast=8599,e.arrownorthwest=8598,e.arrowrighttophalf=8640,e.arrowrightbothalf=8641,e.arrowsoutheast=8600,e.arrowsouthwest=8601,e.backslashbig=8726,e.backslashBig=8726,e.backslashBigg=8726,e.backslashbigg=8726,e.bardbl=8214,e.bracehtipdownleft=65079,e.bracehtipdownright=65079,e.bracehtipupleft=65080,e.bracehtipupright=65080,e.braceleftBig=123,e.braceleftbig=123,e.braceleftbigg=123,e.braceleftBigg=123,e.bracerightBig=125,e.bracerightbig=125,e.bracerightbigg=125,e.bracerightBigg=125,e.bracketleftbig=91,e.bracketleftBig=91,e.bracketleftbigg=91,e.bracketleftBigg=91,e.bracketrightBig=93,e.bracketrightbig=93,e.bracketrightbigg=93,e.bracketrightBigg=93,e.ceilingleftbig=8968,e.ceilingleftBig=8968,e.ceilingleftBigg=8968,e.ceilingleftbigg=8968,e.ceilingrightbig=8969,e.ceilingrightBig=8969,e.ceilingrightbigg=8969,e.ceilingrightBigg=8969,e.circledotdisplay=8857,e.circledottext=8857,e.circlemultiplydisplay=8855,e.circlemultiplytext=8855,e.circleplusdisplay=8853,e.circleplustext=8853,e.contintegraldisplay=8750,e.contintegraltext=8750,e.coproductdisplay=8720,e.coproducttext=8720,e.floorleftBig=8970,e.floorleftbig=8970,e.floorleftbigg=8970,e.floorleftBigg=8970,e.floorrightbig=8971,e.floorrightBig=8971,e.floorrightBigg=8971,e.floorrightbigg=8971,e.hatwide=770,e.hatwider=770,e.hatwidest=770,e.intercal=7488,e.integraldisplay=8747,e.integraltext=8747,e.intersectiondisplay=8898,e.intersectiontext=8898,e.logicalanddisplay=8743,e.logicalandtext=8743,e.logicalordisplay=8744,e.logicalortext=8744,e.parenleftBig=40,e.parenleftbig=40,e.parenleftBigg=40,e.parenleftbigg=40,e.parenrightBig=41,e.parenrightbig=41,e.parenrightBigg=41,e.parenrightbigg=41,e.prime=8242,e.productdisplay=8719,e.producttext=8719,e.radicalbig=8730,e.radicalBig=8730,e.radicalBigg=8730,e.radicalbigg=8730,e.radicalbt=8730,e.radicaltp=8730,e.radicalvertex=8730,e.slashbig=47,e.slashBig=47,e.slashBigg=47,e.slashbigg=47,e.summationdisplay=8721,e.summationtext=8721,e.tildewide=732,e.tildewider=732,e.tildewidest=732,e.uniondisplay=8899,e.unionmultidisplay=8846,e.unionmultitext=8846,e.unionsqdisplay=8852,e.unionsqtext=8852,e.uniontext=8899,e.vextenddouble=8741,e.vextendsingle=8739}),r=(t.getGlyphsUnicode=r,(0,a.getLookupTableFactory)(function(e){e.space=32,e.a1=9985,e.a2=9986,e.a202=9987,e.a3=9988,e.a4=9742,e.a5=9990,e.a119=9991,e.a118=9992,e.a117=9993,e.a11=9755,e.a12=9758,e.a13=9996,e.a14=9997,e.a15=9998,e.a16=9999,e.a105=1e4,e.a17=10001,e.a18=10002,e.a19=10003,e.a20=10004,e.a21=10005,e.a22=10006,e.a23=10007,e.a24=10008,e.a25=10009,e.a26=10010,e.a27=10011,e.a28=10012,e.a6=10013,e.a7=10014,e.a8=10015,e.a9=10016,e.a10=10017,e.a29=10018,e.a30=10019,e.a31=10020,e.a32=10021,e.a33=10022,e.a34=10023,e.a35=9733,e.a36=10025,e.a37=10026,e.a38=10027,e.a39=10028,e.a40=10029,e.a41=10030,e.a42=10031,e.a43=10032,e.a44=10033,e.a45=10034,e.a46=10035,e.a47=10036,e.a48=10037,e.a49=10038,e.a50=10039,e.a51=10040,e.a52=10041,e.a53=10042,e.a54=10043,e.a55=10044,e.a56=10045,e.a57=10046,e.a58=10047,e.a59=10048,e.a60=10049,e.a61=10050,e.a62=10051,e.a63=10052,e.a64=10053,e.a65=10054,e.a66=10055,e.a67=10056,e.a68=10057,e.a69=10058,e.a70=10059,e.a71=9679,e.a72=10061,e.a73=9632,e.a74=10063,e.a203=10064,e.a75=10065,e.a204=10066,e.a76=9650,e.a77=9660,e.a78=9670,e.a79=10070,e.a81=9687,e.a82=10072,e.a83=10073,e.a84=10074,e.a97=10075,e.a98=10076,e.a99=10077,e.a100=10078,e.a101=10081,e.a102=10082,e.a103=10083,e.a104=10084,e.a106=10085,e.a107=10086,e.a108=10087,e.a112=9827,e.a111=9830,e.a110=9829,e.a109=9824,e.a120=9312,e.a121=9313,e.a122=9314,e.a123=9315,e.a124=9316,e.a125=9317,e.a126=9318,e.a127=9319,e.a128=9320,e.a129=9321,e.a130=10102,e.a131=10103,e.a132=10104,e.a133=10105,e.a134=10106,e.a135=10107,e.a136=10108,e.a137=10109,e.a138=10110,e.a139=10111,e.a140=10112,e.a141=10113,e.a142=10114,e.a143=10115,e.a144=10116,e.a145=10117,e.a146=10118,e.a147=10119,e.a148=10120,e.a149=10121,e.a150=10122,e.a151=10123,e.a152=10124,e.a153=10125,e.a154=10126,e.a155=10127,e.a156=10128,e.a157=10129,e.a158=10130,e.a159=10131,e.a160=10132,e.a161=8594,e.a163=8596,e.a164=8597,e.a196=10136,e.a165=10137,e.a192=10138,e.a166=10139,e.a167=10140,e.a168=10141,e.a169=10142,e.a170=10143,e.a171=10144,e.a172=10145,e.a173=10146,e.a162=10147,e.a174=10148,e.a175=10149,e.a176=10150,e.a177=10151,e.a178=10152,e.a179=10153,e.a193=10154,e.a180=10155,e.a199=10156,e.a181=10157,e.a200=10158,e.a182=10159,e.a201=10161,e.a183=10162,e.a184=10163,e.a197=10164,e.a185=10165,e.a194=10166,e.a198=10167,e.a186=10168,e.a195=10169,e.a187=10170,e.a188=10171,e.a189=10172,e.a190=10173,e.a191=10174,e.a89=10088,e.a90=10089,e.a93=10090,e.a94=10091,e.a91=10092,e.a92=10093,e.a205=10094,e.a85=10095,e.a206=10096,e.a86=10097,e.a87=10098,e.a88=10099,e.a95=10100,e.a96=10101,e[".notdef"]=0}));t.getDingbatsGlyphsUnicode=r},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clearUnicodeCaches=function(){n.clear()},t.getCharUnicodeCategory=function(e){var t=n.get(e);return t||(t={isWhitespace:!!(t=e.match(i))?.[1],isZeroWidthDiacritic:!!t?.[2],isInvisibleFormatMark:!!t?.[3]},n.set(e,t),t)},t.getUnicodeForGlyph=function(t,a){let r=a[t];if(void 0!==r)return r;if(t&&"u"===t[0]){const a=t.length;let e;if(7===a&&"n"===t[1]&&"i"===t[2])e=t.substring(3);else{if(!(5<=a&&a<=7))return-1;e=t.substring(1)}if(e===e.toUpperCase()&&0<=(r=parseInt(e,16)))return r}return-1},t.getUnicodeRangeFor=function(r,a=-1){if(-1!==a){var i=s[a];for(let e=0,t=i.length;e<t;e+=2)if(r>=i[e]&&r<=i[e+1])return a}for(let a=0,e=s.length;a<e;a++){var n=s[a];for(let e=0,t=n.length;e<t;e+=2)if(r>=n[e]&&r<=n[e+1])return a}return-1},t.mapSpecialUnicodeValues=function(e){return 65520<=e&&e<=65535?0:62976<=e&&e<=63743?r()[e]||e:173===e?45:e};const r=(0,a(3).getLookupTableFactory)(function(e){e[63721]=169,e[63193]=169,e[63720]=174,e[63194]=174,e[63722]=8482,e[63195]=8482,e[63729]=9127,e[63730]=9128,e[63731]=9129,e[63740]=9131,e[63741]=9132,e[63742]=9133,e[63726]=9121,e[63727]=9122,e[63728]=9123,e[63737]=9124,e[63738]=9125,e[63739]=9126,e[63723]=9115,e[63724]=9116,e[63725]=9117,e[63734]=9118,e[63735]=9119,e[63736]=9120}),s=[[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]],i=new RegExp("^(\\s)|(\\p{Mn})|(\\p{Cf})$","u"),n=new Map},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getSerifFonts=t.getNonStdFontMap=t.getGlyphMapForStandardFonts=t.getFontNameToFileMap=void 0,t.getStandardFontName=function(e){e=(0,i.normalizeFontName)(e);return n()[e]},t.getSymbolsFonts=t.getSupplementalGlyphMapForCalibri=t.getSupplementalGlyphMapForArialBlack=t.getStdFontMap=void 0,t.isKnownFontName=function(e){e=(0,i.normalizeFontName)(e);return!!(n()[e]||s()[e]||o()[e]||l()[e])};var r=a(3),i=a(38);const n=(0,r.getLookupTableFactory)(function(e){e["Times-Roman"]="Times-Roman",e.Helvetica="Helvetica",e.Courier="Courier",e.Symbol="Symbol",e["Times-Bold"]="Times-Bold",e["Helvetica-Bold"]="Helvetica-Bold",e["Courier-Bold"]="Courier-Bold",e.ZapfDingbats="ZapfDingbats",e["Times-Italic"]="Times-Italic",e["Helvetica-Oblique"]="Helvetica-Oblique",e["Courier-Oblique"]="Courier-Oblique",e["Times-BoldItalic"]="Times-BoldItalic",e["Helvetica-BoldOblique"]="Helvetica-BoldOblique",e["Courier-BoldOblique"]="Courier-BoldOblique",e.ArialNarrow="Helvetica",e["ArialNarrow-Bold"]="Helvetica-Bold",e["ArialNarrow-BoldItalic"]="Helvetica-BoldOblique",e["ArialNarrow-Italic"]="Helvetica-Oblique",e.ArialBlack="Helvetica",e["ArialBlack-Bold"]="Helvetica-Bold",e["ArialBlack-BoldItalic"]="Helvetica-BoldOblique",e["ArialBlack-Italic"]="Helvetica-Oblique",e["Arial-Black"]="Helvetica",e["Arial-Black-Bold"]="Helvetica-Bold",e["Arial-Black-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Black-Italic"]="Helvetica-Oblique",e.Arial="Helvetica",e["Arial-Bold"]="Helvetica-Bold",e["Arial-BoldItalic"]="Helvetica-BoldOblique",e["Arial-Italic"]="Helvetica-Oblique",e.ArialMT="Helvetica",e["Arial-BoldItalicMT"]="Helvetica-BoldOblique",e["Arial-BoldMT"]="Helvetica-Bold",e["Arial-ItalicMT"]="Helvetica-Oblique",e["Arial-BoldItalicMT-BoldItalic"]="Helvetica-BoldOblique",e["Arial-BoldMT-Bold"]="Helvetica-Bold",e["Arial-ItalicMT-Italic"]="Helvetica-Oblique",e.ArialUnicodeMS="Helvetica",e["ArialUnicodeMS-Bold"]="Helvetica-Bold",e["ArialUnicodeMS-BoldItalic"]="Helvetica-BoldOblique",e["ArialUnicodeMS-Italic"]="Helvetica-Oblique",e["Courier-BoldItalic"]="Courier-BoldOblique",e["Courier-Italic"]="Courier-Oblique",e.CourierNew="Courier",e["CourierNew-Bold"]="Courier-Bold",e["CourierNew-BoldItalic"]="Courier-BoldOblique",e["CourierNew-Italic"]="Courier-Oblique",e["CourierNewPS-BoldItalicMT"]="Courier-BoldOblique",e["CourierNewPS-BoldMT"]="Courier-Bold",e["CourierNewPS-ItalicMT"]="Courier-Oblique",e.CourierNewPSMT="Courier",e["Helvetica-BoldItalic"]="Helvetica-BoldOblique",e["Helvetica-Italic"]="Helvetica-Oblique",e["Symbol-Bold"]="Symbol",e["Symbol-BoldItalic"]="Symbol",e["Symbol-Italic"]="Symbol",e.TimesNewRoman="Times-Roman",e["TimesNewRoman-Bold"]="Times-Bold",e["TimesNewRoman-BoldItalic"]="Times-BoldItalic",e["TimesNewRoman-Italic"]="Times-Italic",e.TimesNewRomanPS="Times-Roman",e["TimesNewRomanPS-Bold"]="Times-Bold",e["TimesNewRomanPS-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPS-BoldItalicMT"]="Times-BoldItalic",e["TimesNewRomanPS-BoldMT"]="Times-Bold",e["TimesNewRomanPS-Italic"]="Times-Italic",e["TimesNewRomanPS-ItalicMT"]="Times-Italic",e.TimesNewRomanPSMT="Times-Roman",e["TimesNewRomanPSMT-Bold"]="Times-Bold",e["TimesNewRomanPSMT-BoldItalic"]="Times-BoldItalic",e["TimesNewRomanPSMT-Italic"]="Times-Italic"});t.getStdFontMap=n;a=(0,r.getLookupTableFactory)(function(e){e.Courier="FoxitFixed.pfb",e["Courier-Bold"]="FoxitFixedBold.pfb",e["Courier-BoldOblique"]="FoxitFixedBoldItalic.pfb",e["Courier-Oblique"]="FoxitFixedItalic.pfb",e.Helvetica="LiberationSans-Regular.ttf",e["Helvetica-Bold"]="LiberationSans-Bold.ttf",e["Helvetica-BoldOblique"]="LiberationSans-BoldItalic.ttf",e["Helvetica-Oblique"]="LiberationSans-Italic.ttf",e["Times-Roman"]="FoxitSerif.pfb",e["Times-Bold"]="FoxitSerifBold.pfb",e["Times-BoldItalic"]="FoxitSerifBoldItalic.pfb",e["Times-Italic"]="FoxitSerifItalic.pfb",e.Symbol="FoxitSymbol.pfb",e.ZapfDingbats="FoxitDingbats.pfb",e["LiberationSans-Regular"]="LiberationSans-Regular.ttf",e["LiberationSans-Bold"]="LiberationSans-Bold.ttf",e["LiberationSans-Italic"]="LiberationSans-Italic.ttf",e["LiberationSans-BoldItalic"]="LiberationSans-BoldItalic.ttf"});t.getFontNameToFileMap=a;const s=(0,r.getLookupTableFactory)(function(e){e.Calibri="Helvetica",e["Calibri-Bold"]="Helvetica-Bold",e["Calibri-BoldItalic"]="Helvetica-BoldOblique",e["Calibri-Italic"]="Helvetica-Oblique",e.CenturyGothic="Helvetica",e["CenturyGothic-Bold"]="Helvetica-Bold",e["CenturyGothic-BoldItalic"]="Helvetica-BoldOblique",e["CenturyGothic-Italic"]="Helvetica-Oblique",e.ComicSansMS="Comic Sans MS",e["ComicSansMS-Bold"]="Comic Sans MS-Bold",e["ComicSansMS-BoldItalic"]="Comic Sans MS-BoldItalic",e["ComicSansMS-Italic"]="Comic Sans MS-Italic",e.Impact="Helvetica",e["ItcSymbol-Bold"]="Helvetica-Bold",e["ItcSymbol-BoldItalic"]="Helvetica-BoldOblique",e["ItcSymbol-Book"]="Helvetica",e["ItcSymbol-BookItalic"]="Helvetica-Oblique",e["ItcSymbol-Medium"]="Helvetica",e["ItcSymbol-MediumItalic"]="Helvetica-Oblique",e.LucidaConsole="Courier",e["LucidaConsole-Bold"]="Courier-Bold",e["LucidaConsole-BoldItalic"]="Courier-BoldOblique",e["LucidaConsole-Italic"]="Courier-Oblique",e["LucidaSans-Demi"]="Helvetica-Bold",e["MS-Gothic"]="MS Gothic",e["MS-Gothic-Bold"]="MS Gothic-Bold",e["MS-Gothic-BoldItalic"]="MS Gothic-BoldItalic",e["MS-Gothic-Italic"]="MS Gothic-Italic",e["MS-Mincho"]="MS Mincho",e["MS-Mincho-Bold"]="MS Mincho-Bold",e["MS-Mincho-BoldItalic"]="MS Mincho-BoldItalic",e["MS-Mincho-Italic"]="MS Mincho-Italic",e["MS-PGothic"]="MS PGothic",e["MS-PGothic-Bold"]="MS PGothic-Bold",e["MS-PGothic-BoldItalic"]="MS PGothic-BoldItalic",e["MS-PGothic-Italic"]="MS PGothic-Italic",e["MS-PMincho"]="MS PMincho",e["MS-PMincho-Bold"]="MS PMincho-Bold",e["MS-PMincho-BoldItalic"]="MS PMincho-BoldItalic",e["MS-PMincho-Italic"]="MS PMincho-Italic",e.NuptialScript="Times-Italic",e.SegoeUISymbol="Helvetica"}),o=(t.getNonStdFontMap=s,(0,r.getLookupTableFactory)(function(e){e["Adobe Jenson"]=!0,e["Adobe Text"]=!0,e.Albertus=!0,e.Aldus=!0,e.Alexandria=!0,e.Algerian=!0,e["American Typewriter"]=!0,e.Antiqua=!0,e.Apex=!0,e.Arno=!0,e.Aster=!0,e.Aurora=!0,e.Baskerville=!0,e.Bell=!0,e.Bembo=!0,e["Bembo Schoolbook"]=!0,e.Benguiat=!0,e["Berkeley Old Style"]=!0,e["Bernhard Modern"]=!0,e["Berthold City"]=!0,e.Bodoni=!0,e["Bauer Bodoni"]=!0,e["Book Antiqua"]=!0,e.Bookman=!0,e["Bordeaux Roman"]=!0,e["Californian FB"]=!0,e.Calisto=!0,e.Calvert=!0,e.Capitals=!0,e.Cambria=!0,e.Cartier=!0,e.Caslon=!0,e.Catull=!0,e.Centaur=!0,e["Century Old Style"]=!0,e["Century Schoolbook"]=!0,e.Chaparral=!0,e["Charis SIL"]=!0,e.Cheltenham=!0,e["Cholla Slab"]=!0,e.Clarendon=!0,e.Clearface=!0,e.Cochin=!0,e.Colonna=!0,e["Computer Modern"]=!0,e["Concrete Roman"]=!0,e.Constantia=!0,e["Cooper Black"]=!0,e.Corona=!0,e.Ecotype=!0,e.Egyptienne=!0,e.Elephant=!0,e.Excelsior=!0,e.Fairfield=!0,e["FF Scala"]=!0,e.Folkard=!0,e.Footlight=!0,e.FreeSerif=!0,e["Friz Quadrata"]=!0,e.Garamond=!0,e.Gentium=!0,e.Georgia=!0,e.Gloucester=!0,e["Goudy Old Style"]=!0,e["Goudy Schoolbook"]=!0,e["Goudy Pro Font"]=!0,e.Granjon=!0,e["Guardian Egyptian"]=!0,e.Heather=!0,e.Hercules=!0,e["High Tower Text"]=!0,e.Hiroshige=!0,e["Hoefler Text"]=!0,e["Humana Serif"]=!0,e.Imprint=!0,e["Ionic No. 5"]=!0,e.Janson=!0,e.Joanna=!0,e.Korinna=!0,e.Lexicon=!0,e.LiberationSerif=!0,e["Liberation Serif"]=!0,e["Linux Libertine"]=!0,e.Literaturnaya=!0,e.Lucida=!0,e["Lucida Bright"]=!0,e.Melior=!0,e.Memphis=!0,e.Miller=!0,e.Minion=!0,e.Modern=!0,e["Mona Lisa"]=!0,e["Mrs Eaves"]=!0,e["MS Serif"]=!0,e["Museo Slab"]=!0,e["New York"]=!0,e["Nimbus Roman"]=!0,e["NPS Rawlinson Roadway"]=!0,e.NuptialScript=!0,e.Palatino=!0,e.Perpetua=!0,e.Plantin=!0,e["Plantin Schoolbook"]=!0,e.Playbill=!0,e["Poor Richard"]=!0,e["Rawlinson Roadway"]=!0,e.Renault=!0,e.Requiem=!0,e.Rockwell=!0,e.Roman=!0,e["Rotis Serif"]=!0,e.Sabon=!0,e.Scala=!0,e.Seagull=!0,e.Sistina=!0,e.Souvenir=!0,e.STIX=!0,e["Stone Informal"]=!0,e["Stone Serif"]=!0,e.Sylfaen=!0,e.Times=!0,e.Trajan=!0,e["Trinité"]=!0,e["Trump Mediaeval"]=!0,e.Utopia=!0,e["Vale Type"]=!0,e["Bitstream Vera"]=!0,e["Vera Serif"]=!0,e.Versailles=!0,e.Wanted=!0,e.Weiss=!0,e["Wide Latin"]=!0,e.Windsor=!0,e.XITS=!0})),l=(t.getSerifFonts=o,(0,r.getLookupTableFactory)(function(e){e.Dingbats=!0,e.Symbol=!0,e.ZapfDingbats=!0,e.Wingdings=!0,e["Wingdings-Bold"]=!0,e["Wingdings-Regular"]=!0}));t.getSymbolsFonts=l;a=(0,r.getLookupTableFactory)(function(e){e[2]=10,e[3]=32,e[4]=33,e[5]=34,e[6]=35,e[7]=36,e[8]=37,e[9]=38,e[10]=39,e[11]=40,e[12]=41,e[13]=42,e[14]=43,e[15]=44,e[16]=45,e[17]=46,e[18]=47,e[19]=48,e[20]=49,e[21]=50,e[22]=51,e[23]=52,e[24]=53,e[25]=54,e[26]=55,e[27]=56,e[28]=57,e[29]=58,e[30]=894,e[31]=60,e[32]=61,e[33]=62,e[34]=63,e[35]=64,e[36]=65,e[37]=66,e[38]=67,e[39]=68,e[40]=69,e[41]=70,e[42]=71,e[43]=72,e[44]=73,e[45]=74,e[46]=75,e[47]=76,e[48]=77,e[49]=78,e[50]=79,e[51]=80,e[52]=81,e[53]=82,e[54]=83,e[55]=84,e[56]=85,e[57]=86,e[58]=87,e[59]=88,e[60]=89,e[61]=90,e[62]=91,e[63]=92,e[64]=93,e[65]=94,e[66]=95,e[67]=96,e[68]=97,e[69]=98,e[70]=99,e[71]=100,e[72]=101,e[73]=102,e[74]=103,e[75]=104,e[76]=105,e[77]=106,e[78]=107,e[79]=108,e[80]=109,e[81]=110,e[82]=111,e[83]=112,e[84]=113,e[85]=114,e[86]=115,e[87]=116,e[88]=117,e[89]=118,e[90]=119,e[91]=120,e[92]=121,e[93]=122,e[94]=123,e[95]=124,e[96]=125,e[97]=126,e[98]=196,e[99]=197,e[100]=199,e[101]=201,e[102]=209,e[103]=214,e[104]=220,e[105]=225,e[106]=224,e[107]=226,e[108]=228,e[109]=227,e[110]=229,e[111]=231,e[112]=233,e[113]=232,e[114]=234,e[115]=235,e[116]=237,e[117]=236,e[118]=238,e[119]=239,e[120]=241,e[121]=243,e[122]=242,e[123]=244,e[124]=246,e[125]=245,e[126]=250,e[127]=249,e[128]=251,e[129]=252,e[130]=8224,e[131]=176,e[132]=162,e[133]=163,e[134]=167,e[135]=8226,e[136]=182,e[137]=223,e[138]=174,e[139]=169,e[140]=8482,e[141]=180,e[142]=168,e[143]=8800,e[144]=198,e[145]=216,e[146]=8734,e[147]=177,e[148]=8804,e[149]=8805,e[150]=165,e[151]=181,e[152]=8706,e[153]=8721,e[154]=8719,e[156]=8747,e[157]=170,e[158]=186,e[159]=8486,e[160]=230,e[161]=248,e[162]=191,e[163]=161,e[164]=172,e[165]=8730,e[166]=402,e[167]=8776,e[168]=8710,e[169]=171,e[170]=187,e[171]=8230,e[179]=8220,e[180]=8221,e[181]=8216,e[182]=8217,e[200]=193,e[203]=205,e[207]=211,e[210]=218,e[223]=711,e[224]=321,e[225]=322,e[226]=352,e[227]=353,e[228]=381,e[229]=382,e[233]=221,e[234]=253,e[252]=263,e[253]=268,e[254]=269,e[258]=258,e[260]=260,e[261]=261,e[265]=280,e[266]=281,e[267]=282,e[268]=283,e[269]=313,e[275]=323,e[276]=324,e[278]=328,e[283]=344,e[284]=345,e[285]=346,e[286]=347,e[292]=367,e[295]=377,e[296]=378,e[298]=380,e[305]=963,e[306]=964,e[307]=966,e[308]=8215,e[309]=8252,e[310]=8319,e[311]=8359,e[312]=8592,e[313]=8593,e[337]=9552,e[493]=1039,e[494]=1040,e[672]=1488,e[673]=1489,e[674]=1490,e[675]=1491,e[676]=1492,e[677]=1493,e[678]=1494,e[679]=1495,e[680]=1496,e[681]=1497,e[682]=1498,e[683]=1499,e[684]=1500,e[685]=1501,e[686]=1502,e[687]=1503,e[688]=1504,e[689]=1505,e[690]=1506,e[691]=1507,e[692]=1508,e[693]=1509,e[694]=1510,e[695]=1511,e[696]=1512,e[697]=1513,e[698]=1514,e[705]=1524,e[706]=8362,e[710]=64288,e[711]=64298,e[759]=1617,e[761]=1776,e[763]=1778,e[775]=1652,e[777]=1764,e[778]=1780,e[779]=1781,e[780]=1782,e[782]=771,e[783]=64726,e[786]=8363,e[788]=8532,e[790]=768,e[791]=769,e[792]=768,e[795]=803,e[797]=64336,e[798]=64337,e[799]=64342,e[800]=64343,e[801]=64344,e[802]=64345,e[803]=64362,e[804]=64363,e[805]=64364,e[2424]=7821,e[2425]=7822,e[2426]=7823,e[2427]=7824,e[2428]=7825,e[2429]=7826,e[2430]=7827,e[2433]=7682,e[2678]=8045,e[2679]=8046,e[2830]=1552,e[2838]=686,e[2840]=751,e[2842]=753,e[2843]=754,e[2844]=755,e[2846]=757,e[2856]=767,e[2857]=848,e[2858]=849,e[2862]=853,e[2863]=854,e[2864]=855,e[2865]=861,e[2866]=862,e[2906]=7460,e[2908]=7462,e[2909]=7463,e[2910]=7464,e[2912]=7466,e[2913]=7467,e[2914]=7468,e[2916]=7470,e[2917]=7471,e[2918]=7472,e[2920]=7474,e[2921]=7475,e[2922]=7476,e[2924]=7478,e[2925]=7479,e[2926]=7480,e[2928]=7482,e[2929]=7483,e[2930]=7484,e[2932]=7486,e[2933]=7487,e[2934]=7488,e[2936]=7490,e[2937]=7491,e[2938]=7492,e[2940]=7494,e[2941]=7495,e[2942]=7496,e[2944]=7498,e[2946]=7500,e[2948]=7502,e[2950]=7504,e[2951]=7505,e[2952]=7506,e[2954]=7508,e[2955]=7509,e[2956]=7510,e[2958]=7512,e[2959]=7513,e[2960]=7514,e[2962]=7516,e[2963]=7517,e[2964]=7518,e[2966]=7520,e[2967]=7521,e[2968]=7522,e[2970]=7524,e[2971]=7525,e[2972]=7526,e[2974]=7528,e[2975]=7529,e[2976]=7530,e[2978]=1537,e[2979]=1538,e[2980]=1539,e[2982]=1549,e[2983]=1551,e[2984]=1552,e[2986]=1554,e[2987]=1555,e[2988]=1556,e[2990]=1623,e[2991]=1624,e[2995]=1775,e[2999]=1791,e[3002]=64290,e[3003]=64291,e[3004]=64292,e[3006]=64294,e[3007]=64295,e[3008]=64296,e[3011]=1900,e[3014]=8223,e[3015]=8244,e[3017]=7532,e[3018]=7533,e[3019]=7534,e[3075]=7590,e[3076]=7591,e[3079]=7594,e[3080]=7595,e[3083]=7598,e[3084]=7599,e[3087]=7602,e[3088]=7603,e[3091]=7606,e[3092]=7607,e[3095]=7610,e[3096]=7611,e[3099]=7614,e[3100]=7615,e[3103]=7618,e[3104]=7619,e[3107]=8337,e[3108]=8338,e[3116]=1884,e[3119]=1885,e[3120]=1885,e[3123]=1886,e[3124]=1886,e[3127]=1887,e[3128]=1887,e[3131]=1888,e[3132]=1888,e[3135]=1889,e[3136]=1889,e[3139]=1890,e[3140]=1890,e[3143]=1891,e[3144]=1891,e[3147]=1892,e[3148]=1892,e[3153]=580,e[3154]=581,e[3157]=584,e[3158]=585,e[3161]=588,e[3162]=589,e[3165]=891,e[3166]=892,e[3169]=1274,e[3170]=1275,e[3173]=1278,e[3174]=1279,e[3181]=7622,e[3182]=7623,e[3282]=11799,e[3316]=578,e[3379]=42785,e[3393]=1159,e[3416]=8377}),t.getGlyphMapForStandardFonts=a,a=(0,r.getLookupTableFactory)(function(e){e[227]=322,e[264]=261,e[291]=346}),t.getSupplementalGlyphMapForArialBlack=a,a=(0,r.getLookupTableFactory)(function(e){e[1]=32,e[4]=65,e[5]=192,e[6]=193,e[9]=196,e[17]=66,e[18]=67,e[21]=268,e[24]=68,e[28]=69,e[29]=200,e[30]=201,e[32]=282,e[38]=70,e[39]=71,e[44]=72,e[47]=73,e[48]=204,e[49]=205,e[58]=74,e[60]=75,e[62]=76,e[68]=77,e[69]=78,e[75]=79,e[76]=210,e[80]=214,e[87]=80,e[89]=81,e[90]=82,e[92]=344,e[94]=83,e[97]=352,e[100]=84,e[104]=85,e[109]=220,e[115]=86,e[116]=87,e[121]=88,e[122]=89,e[124]=221,e[127]=90,e[129]=381,e[258]=97,e[259]=224,e[260]=225,e[263]=228,e[268]=261,e[271]=98,e[272]=99,e[273]=263,e[275]=269,e[282]=100,e[286]=101,e[287]=232,e[288]=233,e[290]=283,e[295]=281,e[296]=102,e[336]=103,e[346]=104,e[349]=105,e[350]=236,e[351]=237,e[361]=106,e[364]=107,e[367]=108,e[371]=322,e[373]=109,e[374]=110,e[381]=111,e[382]=242,e[383]=243,e[386]=246,e[393]=112,e[395]=113,e[396]=114,e[398]=345,e[400]=115,e[401]=347,e[403]=353,e[410]=116,e[437]=117,e[442]=252,e[448]=118,e[449]=119,e[454]=120,e[455]=121,e[457]=253,e[460]=122,e[462]=382,e[463]=380,e[853]=44,e[855]=58,e[856]=46,e[876]=47,e[878]=45,e[882]=45,e[894]=40,e[895]=41,e[896]=91,e[897]=93,e[923]=64,e[1004]=48,e[1005]=49,e[1006]=50,e[1007]=51,e[1008]=52,e[1009]=53,e[1010]=54,e[1011]=55,e[1012]=56,e[1013]=57,e[1081]=37,e[1085]=43,e[1086]=45});t.getSupplementalGlyphMapForCalibri=a},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ToUnicodeMap=t.IdentityToUnicodeMap=void 0;var r=a(2);t.ToUnicodeMap=class{constructor(e=[]){this._map=e}get length(){return this._map.length}forEach(e){for(const t in this._map)e(t,this._map[t].charCodeAt(0))}has(e){return void 0!==this._map[e]}get(e){return this._map[e]}charCodeOf(e){var t=this._map;if(t.length<=65536)return t.indexOf(e);for(const a in t)if(t[a]===e)return 0|a;return-1}amend(e){for(const t in e)this._map[t]=e[t]}},t.IdentityToUnicodeMap=class{constructor(e,t){this.firstChar=e,this.lastChar=t}get length(){return this.lastChar+1-this.firstChar}forEach(a){for(let e=this.firstChar,t=this.lastChar;e<=t;e++)a(e,e)}has(e){return this.firstChar<=e&&e<=this.lastChar}get(e){if(this.firstChar<=e&&e<=this.lastChar)return String.fromCharCode(e)}charCodeOf(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}amend(e){(0,r.unreachable)("Should not call amend()")}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CFFFont=void 0;var r=a(35),l=a(38),i=a(2);t.CFFFont=class{constructor(e,t){this.properties=t;var a=new r.CFFParser(e,t,l.SEAC_ANALYSIS_ENABLED),a=(this.cff=a.parse(),this.cff.duplicateFirstGlyph(),new r.CFFCompiler(this.cff));this.seacs=this.cff.seacs;try{this.data=a.compile()}catch{(0,i.warn)("Failed to compile font "+t.loadedName),this.data=e}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const t=this.cff,a=this.properties,{cidToGidMap:r,cMap:i}=a,n=t.charset.charset;let s,o;if(a.composite){let a,e;if(0<r?.length){a=Object.create(null);for(let e=0,t=r.length;e<t;e++){const i=r[e];void 0!==i&&(a[i]=e)}}if(s=Object.create(null),t.isCIDFont)for(o=0;o<n.length;o++){const t=n[o];e=i.charCodeOf(t),void 0!==a?.[e]&&(e=a[e]),s[e]=o}else for(o=0;o<t.charStrings.count;o++)e=i.charCodeOf(o),s[e]=o}else{let e=t.encoding?t.encoding.encoding:null;a.isInternalFont&&(e=a.defaultEncoding),s=(0,l.type1FontGlyphMapping)(a,e,n)}return s}hasGlyphId(e){return this.cff.hasGlyphId(e)}_createBuiltInEncoding(){const{charset:e,encoding:t}=this.cff;if(e&&t){const a=e.charset,r=t.encoding,i=[];for(const e in r){const t=r[e];if(0<=t){const r=a[t];r&&(i[e]=r)}}0<i.length&&(this.properties.builtInEncoding=i)}}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontRendererFactory=void 0;var F=a(2),b=a(35),i=a(39),O=a(37),y=a(8);function w(e,t){return(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])>>>0}function v(e,t){return e[t]<<8|e[t+1]}function x(e,t){return(e[t]<<24|e[t+1]<<16)>>16}function S(e,t){return e[t]<<24>>24}function A(e,t){return x(e,t)/16384}function I(e){e=e.length;let t=32768;return e<1240?t=107:e<33900&&(t=1131),t}function T(e,t){var a=t.codePointAt(0);let r=0,i=0,n=e.length-1;for(;i<n;){const t=i+n+1>>1;a<e[t].start?n=t-1:i=t}return{charCode:a,glyphId:r=e[i].start<=a&&a<=e[i].end?e[i].idDelta+(e[i].ids?e[i].ids[a-e[i].start]:a)&65535:r}}const n=[];class r{constructor(e){this.constructor===r&&(0,F.unreachable)("Cannot initialize CompiledFont."),this.fontMatrix=e,this.compiledGlyphs=Object.create(null),this.compiledCharCodeToGlyphId=Object.create(null)}getPathJs(e){var{charCode:t,glyphId:a}=T(this.cmap,e);let r=this.compiledGlyphs[a];if(!r)try{r=this.compileGlyph(this.glyphs[a],a),this.compiledGlyphs[a]=r}catch(e){throw this.compiledGlyphs[a]=n,void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=a),e}return void 0===this.compiledCharCodeToGlyphId[t]&&(this.compiledCharCodeToGlyphId[t]=a),r}compileGlyph(e,t){if(!e||0===e.length||14===e[0])return n;let a=this.fontMatrix;if(this.isCFFCIDFont){const e=this.fdSelect.getFDIndex(t);0<=e&&e<this.fdArray.length?a=this.fdArray[e].getByName("FontMatrix")||F.FONT_IDENTITY_MATRIX:(0,F.warn)("Invalid fd index for glyph index.")}var r=[{cmd:"save"},{cmd:"transform",args:a.slice()},{cmd:"scale",args:["size","-size"]}];return this.compileGlyphImpl(e,r,t),r.push({cmd:"restore"}),r}compileGlyphImpl(){(0,F.unreachable)("Children classes should implement this.")}hasBuiltPath(e){var{charCode:e,glyphId:t}=T(this.cmap,e);return void 0!==this.compiledGlyphs[t]&&void 0!==this.compiledCharCodeToGlyphId[e]}}class k extends r{constructor(e,t,a){super(a||[488e-6,0,0,488e-6,0,0]),this.glyphs=e,this.cmap=t}compileGlyphImpl(e,t){!function s(o,l,c){function h(e,t){l.push({cmd:"moveTo",args:[e,t]})}function r(e,t){l.push({cmd:"lineTo",args:[e,t]})}function i(e,t,a,r){l.push({cmd:"quadraticCurveTo",args:[e,t,a,r]})}let u=0;const n=x(o,u);let d,f=0,g=0;if(u+=10,n<0)do{d=v(o,u);const h=v(o,u+2);let e,t,a=(u+=4,1&d?(t=(2&d?(e=x(o,u),x):(e=v(o,u),v))(o,u+2),u+=4):t=2&d?(e=S(o,u++),S(o,u++)):(e=o[u++],o[u++]),g=2&d?(f=e,t):f=0,1),r=1,i=0,n=0;8&d?(a=r=A(o,u),u+=2):64&d?(a=A(o,u),r=A(o,u+2),u+=4):128&d&&(a=A(o,u),i=A(o,u+2),n=A(o,u+4),r=A(o,u+6),u+=8);var p=c.glyphs[h];p&&(l.push({cmd:"save"},{cmd:"transform",args:[a,i,n,r,f,g]}),s(p,l,c),l.push({cmd:"restore"}))}while(32&d);else{const l=[];let e,t;for(e=0;e<n;e++)l.push(v(o,u)),u+=2;u+=2+v(o,u);const A=l.at(-1)+1,m=[];for(;m.length<A;){let e=1;for(8&(d=o[u++])&&(e+=o[u++]);0<e--;)m.push({flags:d})}for(e=0;e<A;e++){switch(18&m[e].flags){case 0:f+=x(o,u),u+=2;break;case 2:f-=o[u++];break;case 18:f+=o[u++]}m[e].x=f}for(e=0;e<A;e++){switch(36&m[e].flags){case 0:g+=x(o,u),u+=2;break;case 4:g-=o[u++];break;case 36:g+=o[u++]}m[e].y=g}let a=0;for(u=0;u<n;u++){const o=l[u],n=m.slice(a,o+1);if(1&n[0].flags)n.push(n[0]);else if(1&n.at(-1).flags)n.unshift(n.at(-1));else{const o={flags:1,x:(n[0].x+n.at(-1).x)/2,y:(n[0].y+n.at(-1).y)/2};n.unshift(o),n.push(o)}for(h(n[0].x,n[0].y),e=1,t=n.length;e<t;e++)1&n[e].flags?r(n[e].x,n[e].y):1&n[e+1].flags?(i(n[e].x,n[e].y,n[e+1].x,n[e+1].y),e++):i(n[e].x,n[e].y,(n[e].x+n[e+1].x)/2,(n[e].y+n[e+1].y)/2);a=o+1}}}(e,t,this)}}class C extends r{constructor(e,t,a,r){super(a||[.001,0,0,.001,0,0]),this.glyphs=e.glyphs,this.gsubrs=e.gsubrs||[],this.subrs=e.subrs||[],this.cmap=t,this.glyphNameMap=r||(0,i.getGlyphsUnicode)(),this.gsubrsBias=I(this.gsubrs),this.subrsBias=I(this.subrs),this.isCFFCIDFont=e.isCFFCIDFont,this.fdSelect=e.fdSelect,this.fdArray=e.fdArray}compileGlyphImpl(e,t,a){!function p(e,m,b,y){function w(e,t){m.push({cmd:"moveTo",args:[e,t]})}function v(e,t){m.push({cmd:"lineTo",args:[e,t]})}function x(e,t,a,r,i,n){m.push({cmd:"bezierCurveTo",args:[e,t,a,r,i,n]})}const S=[];let A=0,k=0,C=0;!function u(d){let f=0;for(;f<d.length;){let e,t,a,r,i,n,s,o,l,c=!1,h=d[f++];switch(h){case 1:case 3:case 18:case 23:C+=S.length>>1,c=!0;break;case 4:k+=S.pop(),w(A,k),c=!0;break;case 5:for(;0<S.length;)A+=S.shift(),k+=S.shift(),v(A,k);break;case 6:for(;0<S.length&&(v(A+=S.shift(),k),0!==S.length);)k+=S.shift(),v(A,k);break;case 7:for(;0<S.length&&(k+=S.shift(),v(A,k),0!==S.length);)v(A+=S.shift(),k);break;case 8:for(;0<S.length;)e=A+S.shift(),a=k+S.shift(),t=e+S.shift(),r=a+S.shift(),A=t+S.shift(),k=r+S.shift(),x(e,a,t,r,A,k);break;case 10:if(o=S.pop(),l=null,b.isCFFCIDFont){const u=b.fdSelect.getFDIndex(y);if(0<=u&&u<b.fdArray.length){const m=b.fdArray[u];let e;(e=m.privateDict?.subrsIndex?m.privateDict.subrsIndex.objects:e)&&(o+=I(e),l=e[o])}else(0,F.warn)("Invalid fd index for glyph index.")}else l=b.subrs[o+b.subrsBias];l&&u(l);break;case 11:return;case 12:switch(h=d[f++]){case 34:e=A+S.shift(),t=e+S.shift(),i=k+S.shift(),A=t+S.shift(),x(e,k,t,i,A,i),e=A+S.shift(),t=e+S.shift(),A=t+S.shift(),x(e,i,t,k,A,k);break;case 35:e=A+S.shift(),a=k+S.shift(),t=e+S.shift(),r=a+S.shift(),A=t+S.shift(),k=r+S.shift(),x(e,a,t,r,A,k),e=A+S.shift(),a=k+S.shift(),t=e+S.shift(),r=a+S.shift(),A=t+S.shift(),k=r+S.shift(),x(e,a,t,r,A,k),S.pop();break;case 36:e=A+S.shift(),i=k+S.shift(),t=e+S.shift(),n=i+S.shift(),A=t+S.shift(),x(e,i,t,n,A,n),e=A+S.shift(),t=e+S.shift(),s=n+S.shift(),A=t+S.shift(),x(e,n,t,s,A,k);break;case 37:const u=A,m=k;e=A+S.shift(),a=k+S.shift(),t=e+S.shift(),r=a+S.shift(),A=t+S.shift(),k=r+S.shift(),x(e,a,t,r,A,k),e=A+S.shift(),a=k+S.shift(),t=e+S.shift(),r=a+S.shift(),A=t,k=r,Math.abs(A-u)>Math.abs(k-m)?A+=S.shift():k+=S.shift(),x(e,a,t,r,A,k);break;default:throw new F.FormatError("unknown operator: 12 "+h)}break;case 14:if(4<=S.length){const u=S.pop(),F=S.pop();k=S.pop(),A=S.pop(),m.push({cmd:"save"},{cmd:"translate",args:[A,k]});var g=T(b.cmap,String.fromCharCode(b.glyphNameMap[O.StandardEncoding[u]]));p(b.glyphs[g.glyphId],m,b,g.glyphId),m.push({cmd:"restore"}),g=T(b.cmap,String.fromCharCode(b.glyphNameMap[O.StandardEncoding[F]])),p(b.glyphs[g.glyphId],m,b,g.glyphId)}return;case 19:case 20:C+=S.length>>1,f+=C+7>>3,c=!0;break;case 21:k+=S.pop(),w(A+=S.pop(),k),c=!0;break;case 22:w(A+=S.pop(),k),c=!0;break;case 24:for(;2<S.length;)e=A+S.shift(),a=k+S.shift(),t=e+S.shift(),r=a+S.shift(),A=t+S.shift(),k=r+S.shift(),x(e,a,t,r,A,k);A+=S.shift(),k+=S.shift(),v(A,k);break;case 25:for(;6<S.length;)A+=S.shift(),k+=S.shift(),v(A,k);e=A+S.shift(),a=k+S.shift(),t=e+S.shift(),r=a+S.shift(),A=t+S.shift(),k=r+S.shift(),x(e,a,t,r,A,k);break;case 26:for(S.length%2&&(A+=S.shift());0<S.length;)e=A,a=k+S.shift(),t=e+S.shift(),r=a+S.shift(),A=t,k=r+S.shift(),x(e,a,t,r,A,k);break;case 27:for(S.length%2&&(k+=S.shift());0<S.length;)e=A+S.shift(),a=k,t=e+S.shift(),r=a+S.shift(),A=t+S.shift(),k=r,x(e,a,t,r,A,k);break;case 28:S.push((d[f]<<24|d[f+1]<<16)>>16),f+=2;break;case 29:o=S.pop()+b.gsubrsBias,(l=b.gsubrs[o])&&u(l);break;case 30:for(;0<S.length&&(e=A,a=k+S.shift(),t=e+S.shift(),r=a+S.shift(),A=t+S.shift(),k=r+(1===S.length?S.shift():0),x(e,a,t,r,A,k),0!==S.length);)e=A+S.shift(),a=k,t=e+S.shift(),r=a+S.shift(),k=r+S.shift(),A=t+(1===S.length?S.shift():0),x(e,a,t,r,A,k);break;case 31:for(;0<S.length&&(e=A+S.shift(),a=k,t=e+S.shift(),r=a+S.shift(),k=r+S.shift(),A=t+(1===S.length?S.shift():0),x(e,a,t,r,A,k),0!==S.length);)e=A,a=k+S.shift(),t=e+S.shift(),r=a+S.shift(),A=t+S.shift(),k=r+(1===S.length?S.shift():0),x(e,a,t,r,A,k);break;default:if(h<32)throw new F.FormatError("unknown operator: "+h);h<247?S.push(h-139):h<251?S.push(256*(h-247)+d[f++]+108):h<255?S.push(256*-(h-251)-d[f++]-108):(S.push((d[f]<<24|d[f+1]<<16|d[f+2]<<8|d[f+3])/65536),f+=4)}c&&(S.length=0)}}(e)}(e,t,this,a)}}t.FontRendererFactory=class{static create(a,r){var i,n,s,o,l=new Uint8Array(a.data);let c,h,u,d,f,g;const p=v(l,4);for(let e=0,t=12;e<p;e++,t+=16){const a=(0,F.bytesToString)(l.subarray(t,t+4)),p=w(l,t+8),m=w(l,t+12);switch(a){case"cmap":c=function(r,e){var t=1===v(r,e+2)?w(r,e+8):w(r,e+16),a=v(r,e+t);let i,n,s;if(4===a){v(r,e+t+2);const o=v(r,e+t+6)>>1;for(n=e+t+14,i=[],s=0;s<o;s++,n+=2)i[s]={end:v(r,n)};for(n+=2,s=0;s<o;s++,n+=2)i[s].start=v(r,n);for(s=0;s<o;s++,n+=2)i[s].idDelta=v(r,n);for(s=0;s<o;s++,n+=2){let a=v(r,n);if(0!==a){i[s].ids=[];for(let e=0,t=i[s].end-i[s].start+1;e<t;e++)i[s].ids[e]=v(r,n+a),a+=2}}return i}if(12!==a)throw new F.FormatError("unsupported cmap: "+a);{const o=w(r,e+t+12);for(n=e+t+16,i=[],s=0;s<o;s++)e=w(r,n),i.push({start:e,end:w(r,n+4),idDelta:w(r,n+8)-e}),n+=12;return i}}(l,p);break;case"glyf":h=l.subarray(p,p+m);break;case"loca":u=l.subarray(p,p+m);break;case"head":g=v(l,p+18),f=v(l,p+50);break;case"CFF ":d=(i=l,n=p,s=p+m,o=r,{glyphs:(i=new b.CFFParser(new y.Stream(i,n,s-n),{},o).parse()).charStrings.objects,subrs:i.topDict.privateDict?.subrsIndex?.objects,gsubrs:i.globalSubrIndex?.objects,isCFFCIDFont:i.isCIDFont,fdSelect:i.fdSelect,fdArray:i.fdArray})}}if(h){const r=g?[1/g,0,0,1/g,0,0]:a.fontMatrix;return new k(function(t,a,e){let r,i;var n=[];let s=(i=e?(r=4,w):(r=2,(e,t)=>2*v(e,t)))(a,0);for(let e=r;e<a.length;e+=r){const r=i(a,e);n.push(t.subarray(s,r)),s=r}return n}(h,u,f),c,r)}return new C(d,c,a.fontMatrix,a.glyphNameMap)}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getMetrics=t.getFontBasicMetrics=void 0;var r=a(3),a=(0,r.getLookupTableFactory)(function(e){e.Courier=600,e["Courier-Bold"]=600,e["Courier-BoldOblique"]=600,e["Courier-Oblique"]=600,e.Helvetica=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-Bold"]=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-BoldOblique"]=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=333,e.quotedbl=474,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=722,e.quoteright=278,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=333,e.semicolon=333,e.less=584,e.equal=584,e.greater=584,e.question=611,e.at=975,e.A=722,e.B=722,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=556,e.K=722,e.L=611,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=584,e.underscore=556,e.quoteleft=278,e.a=556,e.b=611,e.c=556,e.d=611,e.e=556,e.f=333,e.g=611,e.h=611,e.i=278,e.j=278,e.k=556,e.l=278,e.m=889,e.n=611,e.o=611,e.p=611,e.q=611,e.r=389,e.s=556,e.t=333,e.u=611,e.v=556,e.w=778,e.x=556,e.y=556,e.z=500,e.braceleft=389,e.bar=280,e.braceright=389,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=238,e.quotedblleft=500,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=611,e.fl=611,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=556,e.bullet=350,e.quotesinglbase=278,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=611,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=278,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=611,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=722,e.aacute=556,e.Ucircumflex=722,e.yacute=556,e.scommaaccent=556,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=611,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=556,e.aring=556,e.Ncommaaccent=722,e.lacute=278,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=556,e.scedilla=556,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=611,e.acircumflex=556,e.Amacron=722,e.rcaron=389,e.ccedilla=556,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=743,e.Umacron=722,e.uring=611,e.threesuperior=333,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=584,e.uacute=611,e.Tcaron=611,e.partialdiff=494,e.ydieresis=556,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=556,e.nacute=611,e.umacron=611,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=280,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=611,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=389,e.eogonek=556,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=556,e.zacute=500,e.iogonek=278,e.Oacute=778,e.oacute=611,e.amacron=556,e.sacute=556,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=611,e.twosuperior=333,e.Odieresis=778,e.mu=611,e.igrave=278,e.ohungarumlaut=611,e.Eogonek=667,e.dcroat=611,e.threequarters=834,e.Scedilla=667,e.lcaron=400,e.Kcommaaccent=722,e.Lacute=611,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=611,e.onehalf=834,e.lessequal=549,e.ocircumflex=611,e.ntilde=611,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=611,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=611,e.Ccaron=722,e.ugrave=611,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=611,e.Rcommaaccent=722,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=556,e.minus=584,e.Icircumflex=278,e.ncaron=611,e.tcommaaccent=333,e.logicalnot=584,e.odieresis=611,e.udieresis=611,e.notequal=549,e.gcommaaccent=611,e.eth=611,e.zcaron=500,e.ncommaaccent=611,e.onesuperior=333,e.imacron=278,e.Euro=556}),e["Helvetica-Oblique"]=(0,r.getLookupTableFactory)(function(e){e.space=278,e.exclam=278,e.quotedbl=355,e.numbersign=556,e.dollar=556,e.percent=889,e.ampersand=667,e.quoteright=222,e.parenleft=333,e.parenright=333,e.asterisk=389,e.plus=584,e.comma=278,e.hyphen=333,e.period=278,e.slash=278,e.zero=556,e.one=556,e.two=556,e.three=556,e.four=556,e.five=556,e.six=556,e.seven=556,e.eight=556,e.nine=556,e.colon=278,e.semicolon=278,e.less=584,e.equal=584,e.greater=584,e.question=556,e.at=1015,e.A=667,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=722,e.I=278,e.J=500,e.K=667,e.L=556,e.M=833,e.N=722,e.O=778,e.P=667,e.Q=778,e.R=722,e.S=667,e.T=611,e.U=722,e.V=667,e.W=944,e.X=667,e.Y=667,e.Z=611,e.bracketleft=278,e.backslash=278,e.bracketright=278,e.asciicircum=469,e.underscore=556,e.quoteleft=222,e.a=556,e.b=556,e.c=500,e.d=556,e.e=556,e.f=278,e.g=556,e.h=556,e.i=222,e.j=222,e.k=500,e.l=222,e.m=833,e.n=556,e.o=556,e.p=556,e.q=556,e.r=333,e.s=500,e.t=278,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=500,e.braceleft=334,e.bar=260,e.braceright=334,e.asciitilde=584,e.exclamdown=333,e.cent=556,e.sterling=556,e.fraction=167,e.yen=556,e.florin=556,e.section=556,e.currency=556,e.quotesingle=191,e.quotedblleft=333,e.guillemotleft=556,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=556,e.dagger=556,e.daggerdbl=556,e.periodcentered=278,e.paragraph=537,e.bullet=350,e.quotesinglbase=222,e.quotedblbase=333,e.quotedblright=333,e.guillemotright=556,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=611,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=370,e.Lslash=556,e.Oslash=778,e.OE=1e3,e.ordmasculine=365,e.ae=889,e.dotlessi=278,e.lslash=222,e.oslash=611,e.oe=944,e.germandbls=611,e.Idieresis=278,e.eacute=556,e.abreve=556,e.uhungarumlaut=556,e.ecaron=556,e.Ydieresis=667,e.divide=584,e.Yacute=667,e.Acircumflex=667,e.aacute=556,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=500,e.ecircumflex=556,e.Uring=722,e.Udieresis=722,e.aogonek=556,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=737,e.Emacron=667,e.ccaron=500,e.aring=556,e.Ncommaaccent=722,e.lacute=222,e.agrave=556,e.Tcommaaccent=611,e.Cacute=722,e.atilde=556,e.Edotaccent=667,e.scaron=500,e.scedilla=500,e.iacute=278,e.lozenge=471,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=556,e.Amacron=667,e.rcaron=333,e.ccedilla=500,e.Zdotaccent=611,e.Thorn=667,e.Omacron=778,e.Racute=722,e.Sacute=667,e.dcaron=643,e.Umacron=722,e.uring=556,e.threesuperior=333,e.Ograve=778,e.Agrave=667,e.Abreve=667,e.multiply=584,e.uacute=556,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=556,e.edieresis=556,e.cacute=500,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=278,e.plusminus=584,e.brokenbar=260,e.registered=737,e.Gbreve=778,e.Idotaccent=278,e.summation=600,e.Egrave=667,e.racute=333,e.omacron=556,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=222,e.tcaron=317,e.eogonek=556,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=556,e.zacute=500,e.iogonek=222,e.Oacute=778,e.oacute=556,e.amacron=556,e.sacute=500,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=333,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=556,e.Eogonek=667,e.dcroat=556,e.threequarters=834,e.Scedilla=667,e.lcaron=299,e.Kcommaaccent=667,e.Lacute=556,e.trademark=1e3,e.edotaccent=556,e.Igrave=278,e.Imacron=278,e.Lcaron=556,e.onehalf=834,e.lessequal=549,e.ocircumflex=556,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=556,e.gbreve=556,e.onequarter=834,e.Scaron=667,e.Scommaaccent=667,e.Ohungarumlaut=778,e.degree=400,e.ograve=556,e.Ccaron=722,e.ugrave=556,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=556,e.Rcommaaccent=722,e.Lcommaaccent=556,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=778,e.zdotaccent=500,e.Ecaron=667,e.Iogonek=278,e.kcommaaccent=500,e.minus=584,e.Icircumflex=278,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=584,e.odieresis=556,e.udieresis=556,e.notequal=549,e.gcommaaccent=556,e.eth=556,e.zcaron=500,e.ncommaaccent=556,e.onesuperior=333,e.imacron=278,e.Euro=556}),e.Symbol=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.universal=713,e.numbersign=500,e.existential=549,e.percent=833,e.ampersand=778,e.suchthat=439,e.parenleft=333,e.parenright=333,e.asteriskmath=500,e.plus=549,e.comma=250,e.minus=549,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=549,e.equal=549,e.greater=549,e.question=444,e.congruent=549,e.Alpha=722,e.Beta=667,e.Chi=722,e.Delta=612,e.Epsilon=611,e.Phi=763,e.Gamma=603,e.Eta=722,e.Iota=333,e.theta1=631,e.Kappa=722,e.Lambda=686,e.Mu=889,e.Nu=722,e.Omicron=722,e.Pi=768,e.Theta=741,e.Rho=556,e.Sigma=592,e.Tau=611,e.Upsilon=690,e.sigma1=439,e.Omega=768,e.Xi=645,e.Psi=795,e.Zeta=611,e.bracketleft=333,e.therefore=863,e.bracketright=333,e.perpendicular=658,e.underscore=500,e.radicalex=500,e.alpha=631,e.beta=549,e.chi=549,e.delta=494,e.epsilon=439,e.phi=521,e.gamma=411,e.eta=603,e.iota=329,e.phi1=603,e.kappa=549,e.lambda=549,e.mu=576,e.nu=521,e.omicron=549,e.pi=549,e.theta=521,e.rho=549,e.sigma=603,e.tau=439,e.upsilon=576,e.omega1=713,e.omega=686,e.xi=493,e.psi=686,e.zeta=494,e.braceleft=480,e.bar=200,e.braceright=480,e.similar=549,e.Euro=750,e.Upsilon1=620,e.minute=247,e.lessequal=549,e.fraction=167,e.infinity=713,e.florin=500,e.club=753,e.diamond=753,e.heart=753,e.spade=753,e.arrowboth=1042,e.arrowleft=987,e.arrowup=603,e.arrowright=987,e.arrowdown=603,e.degree=400,e.plusminus=549,e.second=411,e.greaterequal=549,e.multiply=549,e.proportional=713,e.partialdiff=494,e.bullet=460,e.divide=549,e.notequal=549,e.equivalence=549,e.approxequal=549,e.ellipsis=1e3,e.arrowvertex=603,e.arrowhorizex=1e3,e.carriagereturn=658,e.aleph=823,e.Ifraktur=686,e.Rfraktur=795,e.weierstrass=987,e.circlemultiply=768,e.circleplus=768,e.emptyset=823,e.intersection=768,e.union=768,e.propersuperset=713,e.reflexsuperset=713,e.notsubset=713,e.propersubset=713,e.reflexsubset=713,e.element=713,e.notelement=713,e.angle=768,e.gradient=713,e.registerserif=790,e.copyrightserif=790,e.trademarkserif=890,e.product=823,e.radical=549,e.dotmath=250,e.logicalnot=713,e.logicaland=603,e.logicalor=603,e.arrowdblboth=1042,e.arrowdblleft=987,e.arrowdblup=603,e.arrowdblright=987,e.arrowdbldown=603,e.lozenge=494,e.angleleft=329,e.registersans=790,e.copyrightsans=790,e.trademarksans=786,e.summation=713,e.parenlefttp=384,e.parenleftex=384,e.parenleftbt=384,e.bracketlefttp=384,e.bracketleftex=384,e.bracketleftbt=384,e.bracelefttp=494,e.braceleftmid=494,e.braceleftbt=494,e.braceex=494,e.angleright=329,e.integral=274,e.integraltp=686,e.integralex=686,e.integralbt=686,e.parenrighttp=384,e.parenrightex=384,e.parenrightbt=384,e.bracketrighttp=384,e.bracketrightex=384,e.bracketrightbt=384,e.bracerighttp=494,e.bracerightmid=494,e.bracerightbt=494,e.apple=790}),e["Times-Roman"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=408,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=564,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=278,e.semicolon=278,e.less=564,e.equal=564,e.greater=564,e.question=444,e.at=921,e.A=722,e.B=667,e.C=667,e.D=722,e.E=611,e.F=556,e.G=722,e.H=722,e.I=333,e.J=389,e.K=722,e.L=611,e.M=889,e.N=722,e.O=722,e.P=556,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=722,e.W=944,e.X=722,e.Y=722,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=469,e.underscore=500,e.quoteleft=333,e.a=444,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=500,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=500,e.o=500,e.p=500,e.q=500,e.r=333,e.s=389,e.t=278,e.u=500,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=480,e.bar=200,e.braceright=480,e.asciitilde=541,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=180,e.quotedblleft=444,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=453,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=444,e.quotedblright=444,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=444,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=889,e.ordfeminine=276,e.Lslash=611,e.Oslash=722,e.OE=889,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=444,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=722,e.divide=564,e.Yacute=722,e.Acircumflex=722,e.aacute=444,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=444,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=444,e.Ncommaaccent=722,e.lacute=278,e.agrave=444,e.Tcommaaccent=611,e.Cacute=667,e.atilde=444,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=444,e.Amacron=722,e.rcaron=333,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=556,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=588,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=722,e.Abreve=722,e.multiply=564,e.uacute=500,e.Tcaron=611,e.partialdiff=476,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=444,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=722,e.Iacute=333,e.plusminus=564,e.brokenbar=200,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=333,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=326,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=444,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=344,e.Kcommaaccent=722,e.Lacute=611,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=333,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=722,e.zdotaccent=444,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=500,e.minus=564,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=564,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-Bold"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=1e3,e.ampersand=833,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=930,e.A=722,e.B=667,e.C=722,e.D=722,e.E=667,e.F=611,e.G=778,e.H=778,e.I=389,e.J=500,e.K=778,e.L=667,e.M=944,e.N=722,e.O=778,e.P=611,e.Q=778,e.R=722,e.S=556,e.T=667,e.U=722,e.V=722,e.W=1e3,e.X=722,e.Y=722,e.Z=667,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=581,e.underscore=500,e.quoteleft=333,e.a=500,e.b=556,e.c=444,e.d=556,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=333,e.k=556,e.l=278,e.m=833,e.n=556,e.o=500,e.p=556,e.q=556,e.r=444,e.s=389,e.t=333,e.u=556,e.v=500,e.w=722,e.x=500,e.y=500,e.z=444,e.braceleft=394,e.bar=220,e.braceright=394,e.asciitilde=520,e.exclamdown=333,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=540,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=1e3,e.ordfeminine=300,e.Lslash=667,e.Oslash=778,e.OE=1e3,e.ordmasculine=330,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=556,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=722,e.divide=570,e.Yacute=722,e.Acircumflex=722,e.aacute=500,e.Ucircumflex=722,e.yacute=500,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=667,e.Cacute=722,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=722,e.Gcommaaccent=778,e.ucircumflex=556,e.acircumflex=500,e.Amacron=722,e.rcaron=444,e.ccedilla=444,e.Zdotaccent=667,e.Thorn=611,e.Omacron=778,e.Racute=722,e.Sacute=556,e.dcaron=672,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=778,e.Agrave=722,e.Abreve=722,e.multiply=570,e.uacute=556,e.Tcaron=667,e.partialdiff=494,e.ydieresis=500,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=778,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=444,e.omacron=500,e.Zacute=667,e.Zcaron=667,e.greaterequal=549,e.Eth=722,e.Ccedilla=722,e.lcommaaccent=278,e.tcaron=416,e.eogonek=444,e.Uogonek=722,e.Aacute=722,e.Adieresis=722,e.egrave=444,e.zacute=444,e.iogonek=278,e.Oacute=778,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=778,e.Ugrave=722,e.Delta=612,e.thorn=556,e.twosuperior=300,e.Odieresis=778,e.mu=556,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=556,e.threequarters=750,e.Scedilla=556,e.lcaron=394,e.Kcommaaccent=778,e.Lacute=667,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=667,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=778,e.degree=400,e.ograve=500,e.Ccaron=722,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=444,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=722,e.Lcommaaccent=667,e.Atilde=722,e.Aogonek=722,e.Aring=722,e.Otilde=778,e.zdotaccent=444,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=556,e.minus=570,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=333,e.logicalnot=570,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=444,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-BoldItalic"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=389,e.quotedbl=555,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=570,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=570,e.equal=570,e.greater=570,e.question=500,e.at=832,e.A=667,e.B=667,e.C=667,e.D=722,e.E=667,e.F=667,e.G=722,e.H=778,e.I=389,e.J=500,e.K=667,e.L=611,e.M=889,e.N=722,e.O=722,e.P=611,e.Q=722,e.R=667,e.S=556,e.T=611,e.U=722,e.V=667,e.W=889,e.X=667,e.Y=611,e.Z=611,e.bracketleft=333,e.backslash=278,e.bracketright=333,e.asciicircum=570,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=333,e.g=500,e.h=556,e.i=278,e.j=278,e.k=500,e.l=278,e.m=778,e.n=556,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=556,e.v=444,e.w=667,e.x=500,e.y=444,e.z=389,e.braceleft=348,e.bar=220,e.braceright=348,e.asciitilde=570,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=278,e.quotedblleft=500,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=556,e.fl=556,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=500,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=500,e.quotedblright=500,e.guillemotright=500,e.ellipsis=1e3,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=1e3,e.AE=944,e.ordfeminine=266,e.Lslash=611,e.Oslash=722,e.OE=944,e.ordmasculine=300,e.ae=722,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=722,e.germandbls=500,e.Idieresis=389,e.eacute=444,e.abreve=500,e.uhungarumlaut=556,e.ecaron=444,e.Ydieresis=611,e.divide=570,e.Yacute=611,e.Acircumflex=667,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=556,e.Edieresis=667,e.Dcroat=722,e.commaaccent=250,e.copyright=747,e.Emacron=667,e.ccaron=444,e.aring=500,e.Ncommaaccent=722,e.lacute=278,e.agrave=500,e.Tcommaaccent=611,e.Cacute=667,e.atilde=500,e.Edotaccent=667,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=494,e.Rcaron=667,e.Gcommaaccent=722,e.ucircumflex=556,e.acircumflex=500,e.Amacron=667,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=611,e.Thorn=611,e.Omacron=722,e.Racute=667,e.Sacute=556,e.dcaron=608,e.Umacron=722,e.uring=556,e.threesuperior=300,e.Ograve=722,e.Agrave=667,e.Abreve=667,e.multiply=570,e.uacute=556,e.Tcaron=611,e.partialdiff=494,e.ydieresis=444,e.Nacute=722,e.icircumflex=278,e.Ecircumflex=667,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=556,e.umacron=556,e.Ncaron=722,e.Iacute=389,e.plusminus=570,e.brokenbar=220,e.registered=747,e.Gbreve=722,e.Idotaccent=389,e.summation=600,e.Egrave=667,e.racute=389,e.omacron=500,e.Zacute=611,e.Zcaron=611,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=366,e.eogonek=444,e.Uogonek=722,e.Aacute=667,e.Adieresis=667,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=576,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=667,e.dcroat=500,e.threequarters=750,e.Scedilla=556,e.lcaron=382,e.Kcommaaccent=667,e.Lacute=611,e.trademark=1e3,e.edotaccent=444,e.Igrave=389,e.Imacron=389,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=556,e.Uhungarumlaut=722,e.Eacute=667,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=556,e.Scommaaccent=556,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=556,e.radical=549,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=722,e.otilde=500,e.Rcommaaccent=667,e.Lcommaaccent=611,e.Atilde=667,e.Aogonek=667,e.Aring=667,e.Otilde=722,e.zdotaccent=389,e.Ecaron=667,e.Iogonek=389,e.kcommaaccent=500,e.minus=606,e.Icircumflex=389,e.ncaron=556,e.tcommaaccent=278,e.logicalnot=606,e.odieresis=500,e.udieresis=556,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=556,e.onesuperior=300,e.imacron=278,e.Euro=500}),e["Times-Italic"]=(0,r.getLookupTableFactory)(function(e){e.space=250,e.exclam=333,e.quotedbl=420,e.numbersign=500,e.dollar=500,e.percent=833,e.ampersand=778,e.quoteright=333,e.parenleft=333,e.parenright=333,e.asterisk=500,e.plus=675,e.comma=250,e.hyphen=333,e.period=250,e.slash=278,e.zero=500,e.one=500,e.two=500,e.three=500,e.four=500,e.five=500,e.six=500,e.seven=500,e.eight=500,e.nine=500,e.colon=333,e.semicolon=333,e.less=675,e.equal=675,e.greater=675,e.question=500,e.at=920,e.A=611,e.B=611,e.C=667,e.D=722,e.E=611,e.F=611,e.G=722,e.H=722,e.I=333,e.J=444,e.K=667,e.L=556,e.M=833,e.N=667,e.O=722,e.P=611,e.Q=722,e.R=611,e.S=500,e.T=556,e.U=722,e.V=611,e.W=833,e.X=611,e.Y=556,e.Z=556,e.bracketleft=389,e.backslash=278,e.bracketright=389,e.asciicircum=422,e.underscore=500,e.quoteleft=333,e.a=500,e.b=500,e.c=444,e.d=500,e.e=444,e.f=278,e.g=500,e.h=500,e.i=278,e.j=278,e.k=444,e.l=278,e.m=722,e.n=500,e.o=500,e.p=500,e.q=500,e.r=389,e.s=389,e.t=278,e.u=500,e.v=444,e.w=667,e.x=444,e.y=444,e.z=389,e.braceleft=400,e.bar=275,e.braceright=400,e.asciitilde=541,e.exclamdown=389,e.cent=500,e.sterling=500,e.fraction=167,e.yen=500,e.florin=500,e.section=500,e.currency=500,e.quotesingle=214,e.quotedblleft=556,e.guillemotleft=500,e.guilsinglleft=333,e.guilsinglright=333,e.fi=500,e.fl=500,e.endash=500,e.dagger=500,e.daggerdbl=500,e.periodcentered=250,e.paragraph=523,e.bullet=350,e.quotesinglbase=333,e.quotedblbase=556,e.quotedblright=556,e.guillemotright=500,e.ellipsis=889,e.perthousand=1e3,e.questiondown=500,e.grave=333,e.acute=333,e.circumflex=333,e.tilde=333,e.macron=333,e.breve=333,e.dotaccent=333,e.dieresis=333,e.ring=333,e.cedilla=333,e.hungarumlaut=333,e.ogonek=333,e.caron=333,e.emdash=889,e.AE=889,e.ordfeminine=276,e.Lslash=556,e.Oslash=722,e.OE=944,e.ordmasculine=310,e.ae=667,e.dotlessi=278,e.lslash=278,e.oslash=500,e.oe=667,e.germandbls=500,e.Idieresis=333,e.eacute=444,e.abreve=500,e.uhungarumlaut=500,e.ecaron=444,e.Ydieresis=556,e.divide=675,e.Yacute=556,e.Acircumflex=611,e.aacute=500,e.Ucircumflex=722,e.yacute=444,e.scommaaccent=389,e.ecircumflex=444,e.Uring=722,e.Udieresis=722,e.aogonek=500,e.Uacute=722,e.uogonek=500,e.Edieresis=611,e.Dcroat=722,e.commaaccent=250,e.copyright=760,e.Emacron=611,e.ccaron=444,e.aring=500,e.Ncommaaccent=667,e.lacute=278,e.agrave=500,e.Tcommaaccent=556,e.Cacute=667,e.atilde=500,e.Edotaccent=611,e.scaron=389,e.scedilla=389,e.iacute=278,e.lozenge=471,e.Rcaron=611,e.Gcommaaccent=722,e.ucircumflex=500,e.acircumflex=500,e.Amacron=611,e.rcaron=389,e.ccedilla=444,e.Zdotaccent=556,e.Thorn=611,e.Omacron=722,e.Racute=611,e.Sacute=500,e.dcaron=544,e.Umacron=722,e.uring=500,e.threesuperior=300,e.Ograve=722,e.Agrave=611,e.Abreve=611,e.multiply=675,e.uacute=500,e.Tcaron=556,e.partialdiff=476,e.ydieresis=444,e.Nacute=667,e.icircumflex=278,e.Ecircumflex=611,e.adieresis=500,e.edieresis=444,e.cacute=444,e.nacute=500,e.umacron=500,e.Ncaron=667,e.Iacute=333,e.plusminus=675,e.brokenbar=275,e.registered=760,e.Gbreve=722,e.Idotaccent=333,e.summation=600,e.Egrave=611,e.racute=389,e.omacron=500,e.Zacute=556,e.Zcaron=556,e.greaterequal=549,e.Eth=722,e.Ccedilla=667,e.lcommaaccent=278,e.tcaron=300,e.eogonek=444,e.Uogonek=722,e.Aacute=611,e.Adieresis=611,e.egrave=444,e.zacute=389,e.iogonek=278,e.Oacute=722,e.oacute=500,e.amacron=500,e.sacute=389,e.idieresis=278,e.Ocircumflex=722,e.Ugrave=722,e.Delta=612,e.thorn=500,e.twosuperior=300,e.Odieresis=722,e.mu=500,e.igrave=278,e.ohungarumlaut=500,e.Eogonek=611,e.dcroat=500,e.threequarters=750,e.Scedilla=500,e.lcaron=300,e.Kcommaaccent=667,e.Lacute=556,e.trademark=980,e.edotaccent=444,e.Igrave=333,e.Imacron=333,e.Lcaron=611,e.onehalf=750,e.lessequal=549,e.ocircumflex=500,e.ntilde=500,e.Uhungarumlaut=722,e.Eacute=611,e.emacron=444,e.gbreve=500,e.onequarter=750,e.Scaron=500,e.Scommaaccent=500,e.Ohungarumlaut=722,e.degree=400,e.ograve=500,e.Ccaron=667,e.ugrave=500,e.radical=453,e.Dcaron=722,e.rcommaaccent=389,e.Ntilde=667,e.otilde=500,e.Rcommaaccent=611,e.Lcommaaccent=556,e.Atilde=611,e.Aogonek=611,e.Aring=611,e.Otilde=722,e.zdotaccent=389,e.Ecaron=611,e.Iogonek=333,e.kcommaaccent=444,e.minus=675,e.Icircumflex=333,e.ncaron=500,e.tcommaaccent=278,e.logicalnot=675,e.odieresis=500,e.udieresis=500,e.notequal=549,e.gcommaaccent=500,e.eth=500,e.zcaron=389,e.ncommaaccent=500,e.onesuperior=300,e.imacron=278,e.Euro=500}),e.ZapfDingbats=(0,r.getLookupTableFactory)(function(e){e.space=278,e.a1=974,e.a2=961,e.a202=974,e.a3=980,e.a4=719,e.a5=789,e.a119=790,e.a118=791,e.a117=690,e.a11=960,e.a12=939,e.a13=549,e.a14=855,e.a15=911,e.a16=933,e.a105=911,e.a17=945,e.a18=974,e.a19=755,e.a20=846,e.a21=762,e.a22=761,e.a23=571,e.a24=677,e.a25=763,e.a26=760,e.a27=759,e.a28=754,e.a6=494,e.a7=552,e.a8=537,e.a9=577,e.a10=692,e.a29=786,e.a30=788,e.a31=788,e.a32=790,e.a33=793,e.a34=794,e.a35=816,e.a36=823,e.a37=789,e.a38=841,e.a39=823,e.a40=833,e.a41=816,e.a42=831,e.a43=923,e.a44=744,e.a45=723,e.a46=749,e.a47=790,e.a48=792,e.a49=695,e.a50=776,e.a51=768,e.a52=792,e.a53=759,e.a54=707,e.a55=708,e.a56=682,e.a57=701,e.a58=826,e.a59=815,e.a60=789,e.a61=789,e.a62=707,e.a63=687,e.a64=696,e.a65=689,e.a66=786,e.a67=787,e.a68=713,e.a69=791,e.a70=785,e.a71=791,e.a72=873,e.a73=761,e.a74=762,e.a203=762,e.a75=759,e.a204=759,e.a76=892,e.a77=892,e.a78=788,e.a79=784,e.a81=438,e.a82=138,e.a83=277,e.a84=415,e.a97=392,e.a98=392,e.a99=668,e.a100=668,e.a89=390,e.a90=390,e.a93=317,e.a94=317,e.a91=276,e.a92=276,e.a205=509,e.a85=509,e.a206=410,e.a86=410,e.a87=234,e.a88=234,e.a95=334,e.a96=334,e.a101=732,e.a102=544,e.a103=544,e.a104=910,e.a106=667,e.a107=760,e.a108=760,e.a112=776,e.a111=595,e.a110=694,e.a109=626,e.a120=788,e.a121=788,e.a122=788,e.a123=788,e.a124=788,e.a125=788,e.a126=788,e.a127=788,e.a128=788,e.a129=788,e.a130=788,e.a131=788,e.a132=788,e.a133=788,e.a134=788,e.a135=788,e.a136=788,e.a137=788,e.a138=788,e.a139=788,e.a140=788,e.a141=788,e.a142=788,e.a143=788,e.a144=788,e.a145=788,e.a146=788,e.a147=788,e.a148=788,e.a149=788,e.a150=788,e.a151=788,e.a152=788,e.a153=788,e.a154=788,e.a155=788,e.a156=788,e.a157=788,e.a158=788,e.a159=788,e.a160=894,e.a161=838,e.a163=1016,e.a164=458,e.a196=748,e.a165=924,e.a192=748,e.a166=918,e.a167=927,e.a168=928,e.a169=928,e.a170=834,e.a171=873,e.a172=828,e.a173=924,e.a162=924,e.a174=917,e.a175=930,e.a176=931,e.a177=463,e.a178=883,e.a179=836,e.a193=836,e.a180=867,e.a199=867,e.a181=696,e.a200=696,e.a182=874,e.a201=874,e.a183=760,e.a184=946,e.a197=771,e.a185=865,e.a194=771,e.a198=888,e.a186=967,e.a195=888,e.a187=831,e.a188=873,e.a189=927,e.a190=970,e.a191=918})}),a=(t.getMetrics=a,(0,r.getLookupTableFactory)(function(e){e.Courier={ascent:629,descent:-157,capHeight:562,xHeight:-426},e["Courier-Bold"]={ascent:629,descent:-157,capHeight:562,xHeight:439},e["Courier-Oblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e["Courier-BoldOblique"]={ascent:629,descent:-157,capHeight:562,xHeight:426},e.Helvetica={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-Bold"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Helvetica-Oblique"]={ascent:718,descent:-207,capHeight:718,xHeight:523},e["Helvetica-BoldOblique"]={ascent:718,descent:-207,capHeight:718,xHeight:532},e["Times-Roman"]={ascent:683,descent:-217,capHeight:662,xHeight:450},e["Times-Bold"]={ascent:683,descent:-217,capHeight:676,xHeight:461},e["Times-Italic"]={ascent:683,descent:-217,capHeight:653,xHeight:441},e["Times-BoldItalic"]={ascent:683,descent:-217,capHeight:669,xHeight:462},e.Symbol={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN},e.ZapfDingbats={ascent:Math.NaN,descent:Math.NaN,capHeight:Math.NaN,xHeight:Math.NaN}}));t.getFontBasicMetrics=a},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlyfTable=void 0,t.GlyfTable=class{constructor({glyfTable:t,isGlyphLocationsLong:a,locaTable:r,numGlyphs:i}){this.glyphs=[];var n=new DataView(r.buffer,r.byteOffset,r.byteLength),s=new DataView(t.buffer,t.byteOffset,t.byteLength),o=a?4:2;let l=a?n.getUint32(0):2*n.getUint16(0),c=0;for(let e=0;e<i;e++){c+=o;const t=a?n.getUint32(c):2*n.getUint16(c);if(t===l)this.glyphs.push(new h({}));else{const r=h.parse(l,s);this.glyphs.push(r),l=t}}}getSize(){return this.glyphs.reduce((e,t)=>e+(t.getSize()+3&-4),0)}write(){const e=this.getSize(),t=new DataView(new ArrayBuffer(e)),a=131070<e,r=a?4:2,i=new DataView(new ArrayBuffer((this.glyphs.length+1)*r));a?i.setUint32(0,0):i.setUint16(0,0);let n=0,s=0;for(const e of this.glyphs)n+=e.write(n,t),n=n+3&-4,s+=r,a?i.setUint32(s,n):i.setUint16(s,n>>1);return{isLocationLong:a,loca:new Uint8Array(i.buffer),glyf:new Uint8Array(t.buffer)}}scale(a){for(let e=0,t=this.glyphs.length;e<t;e++)this.glyphs[e].scale(a[e])}};class h{constructor({header:e=null,simple:t=null,composites:a=null}){this.header=e,this.simple=t,this.composites=a}static parse(e,t){const[a,r]=n.parse(e,t);if(e+=a,r.numberOfContours<0){const n=[];for(;;){const[h,a]=c.parse(e,t);if(e+=h,n.push(a),!(32&a.flags))break}return new h({header:r,composites:n})}var i=b.parse(e,t,r.numberOfContours);return new h({header:r,simple:i})}getSize(){var e;return this.header?(e=this.simple?this.simple.getSize():this.composites.reduce((e,t)=>e+t.getSize(),0),this.header.getSize()+e):0}write(e,t){if(!this.header)return 0;const a=e;if(e+=this.header.write(e,t),this.simple)e+=this.simple.write(e,t);else for(const a of this.composites)e+=a.write(e,t);return e-a}scale(e){if(this.header){var t=(this.header.xMin+this.header.xMax)/2;if(this.header.scale(t,e),this.simple)this.simple.scale(t,e);else for(const a of this.composites)a.scale(t,e)}}}class n{constructor({numberOfContours:e,xMin:t,yMin:a,xMax:r,yMax:i}){this.numberOfContours=e,this.xMin=t,this.yMin=a,this.xMax=r,this.yMax=i}static parse(e,t){return[10,new n({numberOfContours:t.getInt16(e),xMin:t.getInt16(e+2),yMin:t.getInt16(e+4),xMax:t.getInt16(e+6),yMax:t.getInt16(e+8)})]}getSize(){return 10}write(e,t){return t.setInt16(e,this.numberOfContours),t.setInt16(e+2,this.xMin),t.setInt16(e+4,this.yMin),t.setInt16(e+6,this.xMax),t.setInt16(e+8,this.yMax),10}scale(e,t){this.xMin=Math.round(e+(this.xMin-e)*t),this.xMax=Math.round(e+(this.xMax-e)*t)}}class m{constructor({flags:e,xCoordinates:t,yCoordinates:a}){this.xCoordinates=t,this.yCoordinates=a,this.flags=e}}class b{constructor({contours:e,instructions:t}){this.contours=e,this.instructions=t}static parse(t,a,r){var i=[];for(let e=0;e<r;e++){const r=a.getUint16(t);t+=2,i.push(r)}var n=i[r-1]+1,e=a.getUint16(t),s=(t+=2,new Uint8Array(a).slice(t,t+e)),o=(t+=e,[]);for(let e=0;e<n;t++,e++){var l=a.getUint8(t);if(o.push(l),8&l){const m=a.getUint8(++t);l^=8;for(let e=0;e<m;e++)o.push(l);e+=m}}var c=[];let h=[],u=[],d=[];var f=[];let g=0,p=0;for(let e=0;e<n;e++){const m=o[e];if(2&m){const r=a.getUint8(t++);p+=16&m?r:-r}else 16&m||(p+=a.getInt16(t),t+=2);h.push(p),i[g]===e&&(g++,c.push(h),h=[])}p=0;for(let e=g=0;e<n;e++){const b=o[e];if(4&b){const r=a.getUint8(t++);p+=32&b?r:-r}else 32&b||(p+=a.getInt16(t),t+=2);u.push(p),d.push(1&b|64&b),i[g]===e&&(h=c[g],g++,f.push(new m({flags:d,xCoordinates:h,yCoordinates:u})),u=[],d=[])}return new b({contours:f,instructions:s})}getSize(){let a=2*this.contours.length+2+this.instructions.length,r=0,i=0;for(const l of this.contours){a+=l.flags.length;for(let e=0,t=l.xCoordinates.length;e<t;e++){var n=l.xCoordinates[e],s=l.yCoordinates[e],o=Math.abs(n-r);255<o?a+=2:0<o&&(a+=1),r=n,255<(o=Math.abs(s-i))?a+=2:0<o&&(a+=1),i=s}}return a}write(a,r){const i=a,n=[],s=[],o=[];let l=0,c=0;for(const i of this.contours){for(let t=0,e=i.xCoordinates.length;t<e;t++){let e=i.flags[t];var h=i.xCoordinates[t],u=h-l;if(0==u)e|=16,n.push(0);else{const a=Math.abs(u);a<=255?(e|=0<=u?18:2,n.push(a)):n.push(u)}l=h;h=i.yCoordinates[t];if(0==(u=h-c))e|=32,s.push(0);else{const a=Math.abs(u);a<=255?(e|=0<=u?36:4,s.push(a)):s.push(u)}c=h,o.push(e)}r.setUint16(a,n.length-1),a+=2}r.setUint16(a,this.instructions.length),a+=2,this.instructions.length&&(new Uint8Array(r.buffer,0,r.buffer.byteLength).set(this.instructions,a),a+=this.instructions.length);for(const i of o)r.setUint8(a++,i);for(let e=0,t=n.length;e<t;e++){const s=n[e],l=o[e];2&l?r.setUint8(a++,s):16&l||(r.setInt16(a,s),a+=2)}for(let e=0,t=s.length;e<t;e++){const n=s[e],l=o[e];4&l?r.setUint8(a++,n):32&l||(r.setInt16(a,n),a+=2)}return a-i}scale(a,r){for(const i of this.contours)if(0!==i.xCoordinates.length)for(let e=0,t=i.xCoordinates.length;e<t;e++)i.xCoordinates[e]=Math.round(a+(i.xCoordinates[e]-a)*r)}}class c{constructor({flags:e,glyphIndex:t,argument1:a,argument2:r,transf:i,instructions:n}){this.flags=e,this.glyphIndex=t,this.argument1=a,this.argument2=r,this.transf=i,this.instructions=n}static parse(e,t){const a=e,r=[];let i=t.getUint16(e);var n=t.getUint16(e+2);let s,o,l=(e+=4,1&i?(o=2&i?(s=t.getInt16(e),t.getInt16(e+2)):(s=t.getUint16(e),t.getUint16(e+2)),e+=4,i^=1):(o=2&i?(s=t.getInt8(e),t.getInt8(e+1)):(s=t.getUint8(e),t.getUint8(e+1)),e+=2),8&i?(r.push(t.getUint16(e)),e+=2):64&i?(r.push(t.getUint16(e),t.getUint16(e+2)),e+=4):128&i&&(r.push(t.getUint16(e),t.getUint16(e+2),t.getUint16(e+4),t.getUint16(e+6)),e+=8),null);if(256&i){const a=t.getUint16(e);e+=2,l=new Uint8Array(t).slice(e,e+a),e+=a}return[e-a,new c({flags:i,glyphIndex:n,argument1:s,argument2:o,transf:r,instructions:l})]}getSize(){let e=4+2*this.transf.length;return 256&this.flags&&(e+=2+this.instructions.length),e+=2,2&this.flags?-128<=this.argument1&&this.argument1<=127&&-128<=this.argument2&&this.argument2<=127||(e+=2):0<=this.argument1&&this.argument1<=255&&0<=this.argument2&&this.argument2<=255||(e+=2),e}write(e,t){var a=e;return 2&this.flags?-128<=this.argument1&&this.argument1<=127&&-128<=this.argument2&&this.argument2<=127||(this.flags|=1):0<=this.argument1&&this.argument1<=255&&0<=this.argument2&&this.argument2<=255||(this.flags|=1),t.setUint16(e,this.flags),t.setUint16(e+2,this.glyphIndex),e+=4,1&this.flags?(2&this.flags?(t.setInt16(e,this.argument1),t.setInt16(e+2,this.argument2)):(t.setUint16(e,this.argument1),t.setUint16(e+2,this.argument2)),e+=4):(t.setUint8(e,this.argument1),t.setUint8(e+1,this.argument2),e+=2),256&this.flags&&(t.setUint16(e,this.instructions.length),e+=2,this.instructions.length)&&(new Uint8Array(t.buffer,0,t.buffer.byteLength).set(this.instructions,e),e+=this.instructions.length),e-a}scale(e,t){}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OpenTypeFileBuilder=void 0;var b=a(3),y=a(2);function w(e,t,a){e[t]=a>>8&255,e[t+1]=255&a}function v(e,t,a){e[t]=a>>24&255,e[t+1]=a>>16&255,e[t+2]=a>>8&255,e[t+3]=255&a}class x{constructor(e){this.sfnt=e,this.tables=Object.create(null)}static getSearchParams(e,t){let a=1,r=0;for(;(a^e)>a;)a<<=1,r++;var i=a*t;return{range:i,entry:r,rangeShift:t*e-i}}toArray(){let e=this.sfnt;var t=this.tables,a=Object.keys(t),r=(a.sort(),a.length);let i,n,s,o,l,c=12+16*r;var h=[c];for(i=0;i<r;i++)o=t[a[i]],c+=(o.length+3&-4)>>>0,h.push(c);var u=new Uint8Array(c);for(i=0;i<r;i++){o=t[a[i]];{d=void 0;f=void 0;g=void 0;var d=u;var f=h[i];var g=o;if(g instanceof Uint8Array)d.set(g,f);else if("string"==typeof g)for(let e=0,t=g.length;e<t;e++)d[f++]=255&g.charCodeAt(e);else for(const m of g)d[f++]=255&m}}"true"===e&&(e=(0,y.string32)(65536)),u[0]=255&e.charCodeAt(0),u[1]=255&e.charCodeAt(1),u[2]=255&e.charCodeAt(2),u[3]=255&e.charCodeAt(3),w(u,4,r);var p=x.getSearchParams(r,16);for(w(u,6,p.range),w(u,8,p.entry),w(u,10,p.rangeShift),c=12,i=0;i<r;i++){l=a[i],u[c]=255&l.charCodeAt(0),u[c+1]=255&l.charCodeAt(1),u[c+2]=255&l.charCodeAt(2),u[c+3]=255&l.charCodeAt(3);let e=0;for(n=h[i],s=h[i+1];n<s;n+=4)e=e+(0,b.readUint32)(u,n)>>>0;v(u,c+4,e),v(u,c+8,h[i]),v(u,c+12,t[l].length),c+=16}return u}addTable(e,t){if(e in this.tables)throw new Error("Table "+e+" already exists");this.tables[e]=t}}t.OpenTypeFileBuilder=x},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Font=void 0;var m=a(35),c=a(2),h=a(38),l=a(3),u=a(8),d=a(49);function f(t,a,e){var r=t.length,i=a.length,n=r-i;let s=e,o=!1;for(;s<n;){let e=0;for(;e<i&&t[s+e]===a[e];)e++;if(e>=i){for(s+=e;s<r&&(0,l.isWhiteSpace)(t[s]);)s++;o=!0;break}s++}return{found:o,length:s}}t.Type1Font=class{constructor(e,t,a){let r=a.length1,i=(a.length2,t.peekBytes(6));var n=128===i[0]&&1===i[1],s=(n&&(t.skip(6),r=i[5]<<24|i[4]<<16|i[3]<<8|i[2]),function(e,t){var a=[101,101,120,101,99],r=e.pos;let i,n,s,o;try{i=e.getBytes(t),n=i.length}catch{}if(n===t&&(s=f(i,a,t-2*a.length)).found&&s.length===t)return{stream:new u.Stream(i),length:t};for((0,c.warn)('Invalid "Length1" property in Type1 font -- trying to recover.'),e.pos=r;0!==(s=f(e.peekBytes(2048),a,0)).length;)if(e.pos+=s.length,s.found){o=e.pos-r;break}return e.pos=r,o?{stream:new u.Stream(e.getBytes(o)),length:o}:((0,c.warn)('Unable to recover "Length1" property in Type1 font -- using as is.'),{stream:new u.Stream(e.getBytes(t)),length:t})}(t,r)),s=(new d.Type1Parser(s.stream,!1,h.SEAC_ANALYSIS_ENABLED).extractFontHeader(a),n&&((i=t.getBytes(6))[5],i[4],i[3],i[2]),function(){var e=t.getBytes();if(0===e.length)throw new c.FormatError("getEexecBlock - no font program found.");return{stream:new u.Stream(e),length:e.length}}()),o=new d.Type1Parser(s.stream,!0,h.SEAC_ANALYSIS_ENABLED).extractFontProgram(a);for(const e in o.properties)a[e]=o.properties[e];var n=o.charstrings,s=this.getType2Charstrings(n),l=this.getType2Subrs(o.subrs);this.charstrings=n,this.data=this.wrap(e,s,this.charstrings,l,a),this.seacs=this.getSeacs(o.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){var e,t=[".notdef"];for({glyphName:e}of this.charstrings)t.push(e);return t}getGlyphMapping(a){var r=this.charstrings;if(a.composite){const i=Object.create(null);for(let e=0,t=r.length;e<t;e++)i[a.cMap.charCodeOf(e)]=e+1;return i}const i=[".notdef"];let e,t;for(t=0;t<r.length;t++)i.push(r[t].glyphName);var n=a.builtInEncoding;if(n){e=Object.create(null);for(const a in n)t=i.indexOf(n[a]),0<=t&&(e[a]=t)}return(0,h.type1FontGlyphMapping)(a,e,i)}hasGlyphId(e){return!(e<0||e>=this.numGlyphs)&&(0===e||0<this.charstrings[e-1].charstring.length)}getSeacs(a){var r=[];for(let e=0,t=a.length;e<t;e++){var i=a[e];i.seac&&(r[e+1]=i.seac)}return r}getType2Charstrings(e){var t=[];for(const a of e)t.push(a.charstring);return t}getType2Subrs(e){var t=e.length,a=t<1133?107:t<33769?1131:32768,r=[];let i;for(i=0;i<a;i++)r.push([11]);for(i=0;i<t;i++)r.push(e[i]);return r}wrap(e,t,a,r,i){var n=new m.CFF,s=(n.header=new m.CFFHeader(1,0,4,4),n.names=[e],new m.CFFTopDict),o=(s.setByName("version",391),s.setByName("Notice",392),s.setByName("FullName",393),s.setByName("FamilyName",394),s.setByName("Weight",395),s.setByName("Encoding",null),s.setByName("FontMatrix",i.fontMatrix),s.setByName("FontBBox",i.bbox),s.setByName("charset",null),s.setByName("CharStrings",null),s.setByName("Private",null),n.topDict=s,new m.CFFStrings),l=(o.add("Version 0.11"),o.add("See original notice"),o.add(e),o.add(e),o.add("Medium"),n.strings=o,n.globalSubrIndex=new m.CFFIndex,t.length),c=[".notdef"];let h,u;for(h=0;h<l;h++){const e=a[h].glyphName;-1===m.CFFStandardStrings.indexOf(e)&&o.add(e),c.push(e)}n.charset=new m.CFFCharset(!1,0,c);var d=new m.CFFIndex;for(d.add([139,14]),h=0;h<l;h++)d.add(t[h]);n.charStrings=d;var f=new m.CFFPrivateDict,g=(f.setByName("Subrs",null),["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"]);for(h=0,u=g.length;h<u;h++){const e=g[h];if(e in i.privateData){const t=i.privateData[e];if(Array.isArray(t))for(let e=t.length-1;0<e;e--)t[e]-=t[e-1];f.setByName(e,t)}}n.topDict.privateDict=f;var p=new m.CFFIndex;for(h=0,u=r.length;h<u;h++)p.add(r[h]);return f.subrsIndex=p,new m.CFFCompiler(n).compile()}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Type1Parser=void 0;var s=a(37),r=a(3),i=a(8),d=a(2);const f=[4],g=[5],p=[6],m=[7],b=[8],y=[12,35],w=[14],v=[21],x=[22],S=[30],A=[31];class h{constructor(){this.width=0,this.lsb=0,this.flexing=!1,this.output=[],this.stack=[]}convert(a,r,i){var e=a.length;let n,s,o,l=!1;for(let t=0;t<e;t++){let e=a[t];if(e<32){switch(e=12===e?(e<<8)+a[++h]:e){case 1:case 3:case 9:case 3072:case 3073:case 3074:case 3105:this.stack=[];break;case 4:if(this.flexing){if(this.stack.length<1){l=!0;break}const a=this.stack.pop();this.stack.push(0,a)}else l=this.executeCommand(1,f);break;case 5:l=this.executeCommand(2,g);break;case 6:l=this.executeCommand(1,p);break;case 7:l=this.executeCommand(1,m);break;case 8:l=this.executeCommand(6,b);break;case 10:this.stack.length<1?l=!0:l=!r[o=this.stack.pop()]||this.convert(r[o],r,i);break;case 11:return l;case 13:this.stack.length<2?l=!0:(n=this.stack.pop(),s=this.stack.pop(),this.lsb=s,this.width=n,this.stack.push(n,s),l=this.executeCommand(2,x));break;case 14:this.output.push(w[0]);break;case 21:this.flexing||(l=this.executeCommand(2,v));break;case 22:this.flexing?this.stack.push(0):l=this.executeCommand(1,x);break;case 30:l=this.executeCommand(4,S);break;case 31:l=this.executeCommand(4,A);break;case 3078:if(i){const a=this.stack.at(-5);this.seac=this.stack.splice(-4,4),this.seac[0]+=this.lsb-a,l=this.executeCommand(0,w)}else l=this.executeCommand(4,w);break;case 3079:if(this.stack.length<4){l=!0;break}this.stack.pop(),n=this.stack.pop();const a=this.stack.pop();s=this.stack.pop(),this.lsb=s,this.width=n,this.stack.push(n,s,a),l=this.executeCommand(3,v);break;case 3084:if(this.stack.length<2){l=!0;break}const h=this.stack.pop(),u=this.stack.pop();this.stack.push(u/h);break;case 3088:if(this.stack.length<2)l=!0;else{o=this.stack.pop();var c=this.stack.pop();if(0===o&&3===c){const a=this.stack.splice(-17,17);this.stack.push(a[2]+a[0],a[3]+a[1],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14]),l=this.executeCommand(13,y,!0),this.flexing=!1,this.stack.push(a[15],a[16])}else 1===o&&0===c&&(this.flexing=!0)}break;case 3089:break;default:(0,d.warn)('Unknown type 1 charstring command of "'+e+'"')}if(l)break}else e<=246?e-=139:e=e<=250?256*(e-247)+a[++t]+108:e<=254?-256*(e-251)-a[++t]-108:(255&a[++t])<<24|(255&a[++t])<<16|(255&a[++t])<<8|(255&a[++t])<<0,this.stack.push(e)}return l}executeCommand(e,t,a){var r=this.stack.length;if(r<e)return!0;var i=r-e;for(let e=i;e<r;e++){var n=this.stack[e];Number.isInteger(n)?this.output.push(28,n>>8&255,255&n):this.output.push(255,(n=65536*n|0)>>24&255,n>>16&255,n>>8&255,255&n)}return this.output.push(...t),a?this.stack.splice(i,e):this.stack.length=0,!1}}function l(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function n(e,t,a){if(a>=e.length)return new Uint8Array(0);let r,i,n=0|t;for(r=0;r<a;r++)n=52845*(e[r]+n)+22719&65535;var s=e.length-a,o=new Uint8Array(s);for(r=a,i=0;i<s;r++,i++){const t=e[r];o[i]=t^n>>8,n=52845*(t+n)+22719&65535}return o}function o(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}t.Type1Parser=class{constructor(e,t,a){if(t){const t=e.getBytes(),a=!((l(t[0])||(0,r.isWhiteSpace)(t[0]))&&l(t[1])&&l(t[2])&&l(t[3])&&l(t[4])&&l(t[5])&&l(t[6])&&l(t[7]));e=new i.Stream(a?n(t,55665,4):function(t){let a=55665;var r=t.length,i=new Uint8Array(r>>>1);let n,s;for(n=0,s=0;n<r;n++){const o=t[n];if(l(o)){let e;for(n++;n<r&&!l(e=t[n]);)n++;if(n<r){const t=parseInt(String.fromCharCode(o,e),16);i[s++]=t^a>>8,a=52845*(t+a)+22719&65535}}}return i.slice(4,s)}(t))}this.seacAnalysisEnabled=!!a,this.stream=e,this.nextChar()}readNumberArray(){this.getToken();for(var e=[];;){var t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e}readNumber(){var e=this.getToken();return parseFloat(e||0)}readInt(){var e=this.getToken();return 0|parseInt(e||0,10)}readBoolean(){return"true"===this.getToken()?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){return this.stream.skip(-2),this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(-1===t)return null;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,r.isWhiteSpace)(t))break;t=this.nextChar()}if(o(t))return this.nextChar(),String.fromCharCode(t);let a="";for(;a+=String.fromCharCode(t),0<=(t=this.nextChar())&&!(0,r.isWhiteSpace)(t)&&!o(t););return a}readCharStrings(e,t){return-1===t?e:n(e,4330,t)}extractFontProgram(t){const a=this.stream,r=[],i=[],n=Object.create(null);n.lenIV=4;var s={subrs:[],charstrings:[],properties:{privateData:n}};let o,e,l,c;for(;null!==(o=this.getToken());)if("/"===o)switch(o=this.getToken(),o){case"CharStrings":for(this.getToken(),this.getToken(),this.getToken(),this.getToken();null!==(o=this.getToken())&&"end"!==o;)if("/"===o){const t=this.getToken(),r=(e=this.readInt(),this.getToken(),l=0<e?a.getBytes(e):new Uint8Array(0),c=s.properties.privateData.lenIV,this.readCharStrings(l,c));this.nextChar(),"noaccess"===(o=this.getToken())?this.getToken():"/"===o&&this.prevChar(),i.push({glyph:t,encoded:r})}break;case"Subrs":for(this.readInt(),this.getToken();"dup"===this.getToken();){const t=this.readInt(),i=(e=this.readInt(),this.getToken(),l=0<e?a.getBytes(e):new Uint8Array(0),c=s.properties.privateData.lenIV,this.readCharStrings(l,c));this.nextChar(),"noaccess"===(o=this.getToken())&&this.getToken(),r[t]=i}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":const t=this.readNumberArray();0<t.length&&t.length;break;case"StemSnapH":case"StemSnapV":s.properties.privateData[o]=this.readNumberArray();break;case"StdHW":case"StdVW":s.properties.privateData[o]=this.readNumberArray()[0];break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":s.properties.privateData[o]=this.readNumber();break;case"ExpansionFactor":s.properties.privateData[o]=this.readNumber()||.06;break;case"ForceBold":s.properties.privateData[o]=this.readBoolean()}for(const{encoded:a,glyph:n}of i){const i=new h,o=i.convert(a,r,this.seacAnalysisEnabled);let e=i.output;o&&(e=[14]);const l={glyphName:n,charstring:e,width:i.width,lsb:i.lsb,seac:i.seac};if(".notdef"===n?s.charstrings.unshift(l):s.charstrings.push(l),t.builtInEncoding){const a=t.builtInEncoding.indexOf(n);-1<a&&void 0===t.widths[a]&&a>=t.firstChar&&a<=t.lastChar&&(t.widths[a]=i.width)}}return s}extractFontHeader(a){let r;for(;null!==(r=this.getToken());)if("/"===r)switch(r=this.getToken(),r){case"FontMatrix":var e=this.readNumberArray();a.fontMatrix=e;break;case"Encoding":e=this.getToken();let t;if(/^\d+$/.test(e)){t=[];const a=0|parseInt(e,10);this.getToken();for(let e=0;e<a;e++){for(r=this.getToken();"dup"!==r&&"def"!==r;)if(null===(r=this.getToken()))return;if("def"===r)break;const a=this.readInt();this.getToken();var i=this.getToken();t[a]=i,this.getToken()}}else t=(0,s.getEncoding)(e);a.builtInEncoding=t;break;case"FontBBox":var n=this.readNumberArray();a.ascent=Math.max(n[3],n[1]),a.descent=Math.min(n[1],n[3]),a.ascentScaled=!0}}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Pattern=void 0,t.clearPatternCaches=function(){r=Object.create(null)},t.getTilingPatternIR=function(e,t,a){var r=t.getArray("Matrix"),i=k.Util.normalizeRect(t.getArray("BBox")),n=t.get("XStep"),s=t.get("YStep"),o=t.get("PaintType"),t=t.get("TilingType");if(i[2]-i[0]==0||i[3]-i[1]==0)throw new k.FormatError(`Invalid getTilingPatternIR /BBox array: [${i}].`);return["TilingPattern",a,e,r,i,n,s,o,t]};var k=a(2),c=a(5),h=a(12),o=a(3);t.Pattern=class{constructor(){(0,k.unreachable)("Cannot initialize Pattern.")}static parseShading(e,t,a,r,i){var n=e instanceof c.BaseStream?e.dict:e,s=n.get("ShadingType");try{switch(s){case 2:case 3:return new l(n,t,a,r,i);case 4:case 5:case 6:case 7:return new F(e,t,a,r,i);default:throw new k.FormatError("Unsupported ShadingType: "+s)}}catch(e){if(e instanceof o.MissingDataException)throw e;return(0,k.warn)(e),new d}}};class C{static SMALL_NUMBER=1e-6;constructor(){this.constructor===C&&(0,k.unreachable)("Cannot initialize BaseShading.")}getIR(){(0,k.unreachable)("Abstract method `getIR` called.")}}class l extends C{constructor(d,f,e,t,g){super(),this.coordsArr=d.getArray("Coords"),this.shadingType=d.get("ShadingType");var p=h.ColorSpace.parse({cs:d.getRaw("CS")||d.getRaw("ColorSpace"),xref:f,resources:e,pdfFunctionFactory:t,localColorSpaceCache:g}),f=d.getArray("BBox");this.bbox=Array.isArray(f)&&4===f.length?k.Util.normalizeRect(f):null;let m=0,a=1;if(d.has("Domain")){const f=d.getArray("Domain");m=f[0],a=f[1]}let b=!1,y=!1;if(d.has("Extend")){const f=d.getArray("Extend");b=f[0],y=f[1]}if(!(3!==this.shadingType||b&&y)){const[d,f,e,t,h,g]=this.coordsArr,C=Math.hypot(d-t,f-h);e<=g+C&&g<=e+C&&(0,k.warn)("Unsupported radial gradient.")}this.extendStart=b,this.extendEnd=y;var e=d.getRaw("Function"),w=t.createFromArray(e),v=(a-m)/840,x=this.colorStops=[];if(m>=a||v<=0)(0,k.info)("Bad shading domain.");else{var S=new Float32Array(p.numComps),A=new Float32Array(1);let t,a=0,r=(A[0]=m,w(A,0,S,0),p.getRgb(S,0));g=k.Util.makeHexColor(r[0],r[1],r[2]);x.push([0,g]);let i=1,n=(A[0]=m+v,w(A,0,S,0),p.getRgb(S,0)),s=n[0]-r[0]+1,o=n[1]-r[1]+1,l=n[2]-r[2]+1,c=n[0]-r[0]-1,h=n[1]-r[1]-1,u=n[2]-r[2]-1;for(let e=2;e<840;e++){A[0]=m+e*v,w(A,0,S,0),t=p.getRgb(S,0);const f=e-a;if(s=Math.min(s,(t[0]-r[0]+1)/f),o=Math.min(o,(t[1]-r[1]+1)/f),l=Math.min(l,(t[2]-r[2]+1)/f),c=Math.max(c,(t[0]-r[0]-1)/f),h=Math.max(h,(t[1]-r[1]-1)/f),u=Math.max(u,(t[2]-r[2]-1)/f),!(c<=s&&h<=o&&u<=l)){const d=k.Util.makeHexColor(n[0],n[1],n[2]);x.push([i/840,d]),s=t[0]-n[0]+1,o=t[1]-n[1]+1,l=t[2]-n[2]+1,c=t[0]-n[0]-1,h=t[1]-n[1]-1,u=t[2]-n[2]-1,a=i,r=n}i=e,n=t}f=k.Util.makeHexColor(n[0],n[1],n[2]);x.push([1,f]);let e="transparent";d.has("Background")&&(t=p.getRgb(d.get("Background"),0),e=k.Util.makeHexColor(t[0],t[1],t[2])),b||(x.unshift([0,e]),x[1][0]+=C.SMALL_NUMBER),y||(x.at(-1)[0]-=C.SMALL_NUMBER,x.push([1,e])),this.colorStops=x}}getIR(){var e=this.coordsArr,t=this.shadingType;let a,r,i,n,s;return 2===t?(r=[e[0],e[1]],i=[e[2],e[3]],n=null,s=null,a="axial"):3===t?(r=[e[0],e[1]],i=[e[3],e[4]],n=e[2],s=e[5],a="radial"):(0,k.unreachable)("getPattern type unknown: "+t),["RadialAxial",a,this.bbox,this.colorStops,r,i,n,s]}}class u{constructor(e,t){this.stream=e,this.context=t,this.buffer=0,this.bufferLength=0;e=t.numComps,this.tmpCompsBuf=new Float32Array(e),e=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(e):this.tmpCompsBuf}get hasData(){var e;return this.stream.end?this.stream.pos<this.stream.end:0<this.bufferLength||!((e=this.stream.getByte())<0||(this.buffer=e,this.bufferLength=8,0))}readBits(e){let t=this.buffer,a=this.bufferLength;if(32===e){if(0===a)return(this.stream.getByte()<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte())>>>0;t=t<<24|this.stream.getByte()<<16|this.stream.getByte()<<8|this.stream.getByte();const e=this.stream.getByte();return this.buffer=e&(1<<a)-1,(t<<8-a|(255&e)>>a)>>>0}if(8===e&&0===a)return this.stream.getByte();for(;a<e;)t=t<<8|this.stream.getByte(),a+=8;return a-=e,this.bufferLength=a,this.buffer=t&(1<<a)-1,t>>a}align(){this.buffer=0,this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){var e=this.context.bitsPerCoordinate,t=this.readBits(e),a=this.readBits(e),r=this.context.decode,e=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[t*e*(r[1]-r[0])+r[0],a*e*(r[3]-r[2])+r[2]]}readComponents(){const a=this.context.numComps,r=this.context.bitsPerComponent,i=r<32?1/((1<<r)-1):2.3283064365386963e-10,n=this.context.decode,s=this.tmpCompsBuf;for(let e=0,t=4;e<a;e++,t+=2){const a=this.readBits(r);s[e]=a*i*(n[t+1]-n[t])+n[t]}var e=this.tmpCsCompsBuf;return this.context.colorFn&&this.context.colorFn(s,0,e,0),this.context.colorSpace.getRgb(e,0)}}let r=Object.create(null);function s(e){return r[e]||=function(t){var a=[];for(let e=0;e<=t;e++){var r=e/t,i=1-r;a.push(new Float32Array([i**3,3*r*i**2,3*r**2*i,r**3]))}return a}(e)}class F extends C{static MIN_SPLIT_PATCH_CHUNKS_AMOUNT=3;static MAX_SPLIT_PATCH_CHUNKS_AMOUNT=20;static TRIANGLE_DENSITY=20;constructor(e,t,a,r,i){if(super(),!(e instanceof c.BaseStream))throw new k.FormatError("Mesh data is not a stream");var n=e.dict,s=(this.shadingType=n.get("ShadingType"),n.getArray("BBox")),s=(this.bbox=Array.isArray(s)&&4===s.length?k.Util.normalizeRect(s):null,h.ColorSpace.parse({cs:n.getRaw("CS")||n.getRaw("ColorSpace"),xref:t,resources:a,pdfFunctionFactory:r,localColorSpaceCache:i})),t=(this.background=n.has("Background")?s.getRgb(n.get("Background"),0):null,n.getRaw("Function")),a=t?r.createFromArray(t):null,i=(this.coords=[],this.colors=[],this.figures=[],{bitsPerCoordinate:n.get("BitsPerCoordinate"),bitsPerComponent:n.get("BitsPerComponent"),bitsPerFlag:n.get("BitsPerFlag"),decode:n.getArray("Decode"),colorFn:a,colorSpace:s,numComps:a?1:s.numComps}),o=new u(e,i);let l=!1;switch(this.shadingType){case 4:this._decodeType4Shading(o);break;case 5:const e=0|n.get("VerticesPerRow");if(e<2)throw new k.FormatError("Invalid VerticesPerRow");this._decodeType5Shading(o,e);break;case 6:this._decodeType6Shading(o),l=!0;break;case 7:this._decodeType7Shading(o),l=!0;break;default:(0,k.unreachable)("Unsupported mesh type.")}if(l){this._updateBounds();for(let e=0,t=this.figures.length;e<t;e++)this._buildFigureFromPatch(e)}this._updateBounds(),this._packData()}_decodeType4Shading(e){var t=this.coords,a=this.colors,r=[],i=[];let n=0;for(;e.hasData;){var s=e.readFlag(),o=e.readCoordinate(),l=e.readComponents();if(0===n){if(!(0<=s&&s<=2))throw new k.FormatError("Unknown type4 flag");switch(s){case 0:n=3;break;case 1:i.push(i.at(-2),i.at(-1)),n=1;break;case 2:i.push(i.at(-3),i.at(-1)),n=1}r.push(s)}i.push(t.length),t.push(o),a.push(l),n--,e.align()}this.figures.push({type:"triangles",coords:new Int32Array(i),colors:new Int32Array(i)})}_decodeType5Shading(e,t){for(var a=this.coords,r=this.colors,i=[];e.hasData;){const t=e.readCoordinate(),n=e.readComponents();i.push(a.length),a.push(t),r.push(n)}this.figures.push({type:"lattice",coords:new Int32Array(i),colors:new Int32Array(i),verticesPerRow:t})}_decodeType6Shading(i){for(var n=this.coords,s=this.colors,o=new Int32Array(16),l=new Int32Array(4);i.hasData;){var c=i.readFlag();if(!(0<=c&&c<=3))throw new k.FormatError("Unknown type6 flag");var h=n.length;for(let e=0,t=0!==c?8:12;e<t;e++)n.push(i.readCoordinate());var u=s.length;for(let e=0,t=0!==c?2:4;e<t;e++)s.push(i.readComponents());let e,t,a,r;switch(c){case 0:o[12]=h+3,o[13]=h+4,o[14]=h+5,o[15]=h+6,o[8]=h+2,o[11]=h+7,o[4]=h+1,o[7]=h+8,o[0]=h,o[1]=h+11,o[2]=h+10,o[3]=h+9,l[2]=u+1,l[3]=u+2,l[0]=u,l[1]=u+3;break;case 1:e=o[12],t=o[13],a=o[14],r=o[15],o[12]=r,o[13]=h+0,o[14]=h+1,o[15]=h+2,o[8]=a,o[11]=h+3,o[4]=t,o[7]=h+4,o[0]=e,o[1]=h+7,o[2]=h+6,o[3]=h+5,e=l[2],t=l[3],l[2]=t,l[3]=u,l[0]=e,l[1]=u+1;break;case 2:e=o[15],t=o[11],o[12]=o[3],o[13]=h+0,o[14]=h+1,o[15]=h+2,o[8]=o[7],o[11]=h+3,o[4]=t,o[7]=h+4,o[0]=e,o[1]=h+7,o[2]=h+6,o[3]=h+5,e=l[3],l[2]=l[1],l[3]=u,l[0]=e,l[1]=u+1;break;case 3:o[12]=o[0],o[13]=h+0,o[14]=h+1,o[15]=h+2,o[8]=o[1],o[11]=h+3,o[4]=o[2],o[7]=h+4,o[0]=o[3],o[1]=h+7,o[2]=h+6,o[3]=h+5,l[2]=l[0],l[3]=u,l[0]=l[1],l[1]=u+1}o[5]=n.length,n.push([(-4*n[o[0]][0]-n[o[15]][0]+6*(n[o[4]][0]+n[o[1]][0])-2*(n[o[12]][0]+n[o[3]][0])+3*(n[o[13]][0]+n[o[7]][0]))/9,(-4*n[o[0]][1]-n[o[15]][1]+6*(n[o[4]][1]+n[o[1]][1])-2*(n[o[12]][1]+n[o[3]][1])+3*(n[o[13]][1]+n[o[7]][1]))/9]),o[6]=n.length,n.push([(-4*n[o[3]][0]-n[o[12]][0]+6*(n[o[2]][0]+n[o[7]][0])-2*(n[o[0]][0]+n[o[15]][0])+3*(n[o[4]][0]+n[o[14]][0]))/9,(-4*n[o[3]][1]-n[o[12]][1]+6*(n[o[2]][1]+n[o[7]][1])-2*(n[o[0]][1]+n[o[15]][1])+3*(n[o[4]][1]+n[o[14]][1]))/9]),o[9]=n.length,n.push([(-4*n[o[12]][0]-n[o[3]][0]+6*(n[o[8]][0]+n[o[13]][0])-2*(n[o[0]][0]+n[o[15]][0])+3*(n[o[11]][0]+n[o[1]][0]))/9,(-4*n[o[12]][1]-n[o[3]][1]+6*(n[o[8]][1]+n[o[13]][1])-2*(n[o[0]][1]+n[o[15]][1])+3*(n[o[11]][1]+n[o[1]][1]))/9]),o[10]=n.length,n.push([(-4*n[o[15]][0]-n[o[0]][0]+6*(n[o[11]][0]+n[o[14]][0])-2*(n[o[12]][0]+n[o[3]][0])+3*(n[o[2]][0]+n[o[8]][0]))/9,(-4*n[o[15]][1]-n[o[0]][1]+6*(n[o[11]][1]+n[o[14]][1])-2*(n[o[12]][1]+n[o[3]][1])+3*(n[o[2]][1]+n[o[8]][1]))/9]),this.figures.push({type:"patch",coords:new Int32Array(o),colors:new Int32Array(l)})}}_decodeType7Shading(i){for(var n=this.coords,s=this.colors,o=new Int32Array(16),l=new Int32Array(4);i.hasData;){var c=i.readFlag();if(!(0<=c&&c<=3))throw new k.FormatError("Unknown type7 flag");var h=n.length;for(let e=0,t=0!==c?12:16;e<t;e++)n.push(i.readCoordinate());var u=s.length;for(let e=0,t=0!==c?2:4;e<t;e++)s.push(i.readComponents());let e,t,a,r;switch(c){case 0:o[12]=h+3,o[13]=h+4,o[14]=h+5,o[15]=h+6,o[8]=h+2,o[9]=h+13,o[10]=h+14,o[11]=h+7,o[4]=h+1,o[5]=h+12,o[6]=h+15,o[7]=h+8,o[0]=h,o[1]=h+11,o[2]=h+10,o[3]=h+9,l[2]=u+1,l[3]=u+2,l[0]=u,l[1]=u+3;break;case 1:e=o[12],t=o[13],a=o[14],r=o[15],o[12]=r,o[13]=h+0,o[14]=h+1,o[15]=h+2,o[8]=a,o[9]=h+9,o[10]=h+10,o[11]=h+3,o[4]=t,o[5]=h+8,o[6]=h+11,o[7]=h+4,o[0]=e,o[1]=h+7,o[2]=h+6,o[3]=h+5,e=l[2],t=l[3],l[2]=t,l[3]=u,l[0]=e,l[1]=u+1;break;case 2:e=o[15],t=o[11],o[12]=o[3],o[13]=h+0,o[14]=h+1,o[15]=h+2,o[8]=o[7],o[9]=h+9,o[10]=h+10,o[11]=h+3,o[4]=t,o[5]=h+8,o[6]=h+11,o[7]=h+4,o[0]=e,o[1]=h+7,o[2]=h+6,o[3]=h+5,e=l[3],l[2]=l[1],l[3]=u,l[0]=e,l[1]=u+1;break;case 3:o[12]=o[0],o[13]=h+0,o[14]=h+1,o[15]=h+2,o[8]=o[1],o[9]=h+9,o[10]=h+10,o[11]=h+3,o[4]=o[2],o[5]=h+8,o[6]=h+11,o[7]=h+4,o[0]=o[3],o[1]=h+7,o[2]=h+6,o[3]=h+5,l[2]=l[0],l[3]=u,l[0]=l[1],l[1]=u+1}this.figures.push({type:"patch",coords:new Int32Array(o),colors:new Int32Array(l)})}}_buildFigureFromPatch(e){var t=this.figures[e];(0,k.assert)("patch"===t.type,"Unexpected patch mesh figure");const o=this.coords,l=this.colors,c=t.coords,a=t.colors,r=Math.min(o[c[0]][0],o[c[3]][0],o[c[12]][0],o[c[15]][0]),h=Math.min(o[c[0]][1],o[c[3]][1],o[c[12]][1],o[c[15]][1]),u=Math.max(o[c[0]][0],o[c[3]][0],o[c[12]][0],o[c[15]][0]),i=Math.max(o[c[0]][1],o[c[3]][1],o[c[12]][1],o[c[15]][1]);var d=Math.ceil((u-r)*F.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0])),d=Math.max(F.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(F.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,d)),f=Math.ceil((i-h)*F.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1])),f=Math.max(F.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,Math.min(F.MAX_SPLIT_PATCH_CHUNKS_AMOUNT,f)),t=d+1,g=new Int32Array((f+1)*t),p=new Int32Array((f+1)*t);let m=0;var b=new Uint8Array(3),y=new Uint8Array(3),n=l[a[0]],w=l[a[1]],v=l[a[2]],x=l[a[3]],S=s(f),A=s(d);for(let s=0;s<=f;s++){b[0]=(n[0]*(f-s)+v[0]*s)/f|0,b[1]=(n[1]*(f-s)+v[1]*s)/f|0,b[2]=(n[2]*(f-s)+v[2]*s)/f|0,y[0]=(w[0]*(f-s)+x[0]*s)/f|0,y[1]=(w[1]*(f-s)+x[1]*s)/f|0,y[2]=(w[2]*(f-s)+x[2]*s)/f|0;for(let n=0;n<=d;n++,m++)if(0!==s&&s!==f||0!==n&&n!==d){let a=0,r=0,i=0;for(let t=0;t<=3;t++)for(let e=0;e<=3;e++,i++){const u=S[s][t]*A[n][e];a+=o[c[i]][0]*u,r+=o[c[i]][1]*u}g[m]=o.length,o.push([a,r]),p[m]=l.length;const h=new Uint8Array(3);h[0]=(b[0]*(d-n)+y[0]*n)/d|0,h[1]=(b[1]*(d-n)+y[1]*n)/d|0,h[2]=(b[2]*(d-n)+y[2]*n)/d|0,l.push(h)}}g[0]=c[0],p[0]=a[0],g[d]=c[3],p[d]=a[1],g[t*f]=c[12],p[t*f]=a[2],g[t*f+d]=c[15],p[t*f+d]=a[3],this.figures[e]={type:"lattice",coords:g,colors:p,verticesPerRow:t}}_updateBounds(){let a=this.coords[0][0],r=this.coords[0][1],i=a,n=r;for(let e=1,t=this.coords.length;e<t;e++){var s=this.coords[e][0],o=this.coords[e][1];a=a>s?s:a,r=r>o?o:r,i=i<s?s:i,n=n<o?o:n}this.bounds=[a,r,i,n]}_packData(){let e,t,a,r;const i=this.coords,n=new Float32Array(2*i.length);for(e=0,a=0,t=i.length;e<t;e++){const t=i[e];n[a++]=t[0],n[a++]=t[1]}this.coords=n;var s=this.colors,o=new Uint8Array(3*s.length);for(e=0,a=0,t=s.length;e<t;e++){const t=s[e];o[a++]=t[0],o[a++]=t[1],o[a++]=t[2]}this.colors=o;var l=this.figures;for(e=0,t=l.length;e<t;e++){const t=l[e],i=t.coords,n=t.colors;for(a=0,r=i.length;a<r;a++)i[a]*=2,n[a]*=3}}getIR(){return["Mesh",this.shadingType,this.coords,this.colors,this.figures,this.bounds,this.bbox,this.background]}}class d extends C{getIR(){return["Dummy"]}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getXfaFontDict=function(e){var t=function(e){const t=u(e);if(!t)return null;const{baseWidths:a,baseMapping:r,factors:i}=t,n=i?a.map((e,t)=>e*i[t]):a;let s,o=-2;var l=[];for(const[e,t]of r.map((e,t)=>[e,t]).sort(([e],[t])=>e-t))-1!==e&&(e===o+1?(s.push(n[t]),o+=1):(o=e,s=[n[t]],l.push(e,s)));return l}(e),a=new i.Dict(null),e=(a.set("BaseFont",i.Name.get(e)),a.set("Type",i.Name.get("Font")),a.set("Subtype",i.Name.get("CIDFontType2")),a.set("Encoding",i.Name.get("Identity-H")),a.set("CIDToGIDMap",i.Name.get("Identity")),a.set("W",t),a.set("FirstChar",t[0]),a.set("LastChar",t.at(-2)+t.at(-1).length-1),new i.Dict(null)),t=(a.set("FontDescriptor",e),new i.Dict(null));return t.set("Ordering","Identity"),t.set("Registry","Adobe"),t.set("Supplement",0),a.set("CIDSystemInfo",t),a},t.getXfaFontName=u;var r=a(52),i=a(4),n=a(53),s=a(54),o=a(55),l=a(56),t=a(3),c=a(38);const h=(0,t.getLookupTableFactory)(function(e){e["MyriadPro-Regular"]=e["PdfJS-Fallback-Regular"]={name:"LiberationSans-Regular",factors:o.MyriadProRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:o.MyriadProRegularMetrics},e["MyriadPro-Bold"]=e["PdfJS-Fallback-Bold"]={name:"LiberationSans-Bold",factors:o.MyriadProBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:o.MyriadProBoldMetrics},e["MyriadPro-It"]=e["MyriadPro-Italic"]=e["PdfJS-Fallback-Italic"]={name:"LiberationSans-Italic",factors:o.MyriadProItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:o.MyriadProItalicMetrics},e["MyriadPro-BoldIt"]=e["MyriadPro-BoldItalic"]=e["PdfJS-Fallback-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:o.MyriadProBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:o.MyriadProBoldItalicMetrics},e.ArialMT=e.Arial=e["Arial-Regular"]={name:"LiberationSans-Regular",baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping},e["Arial-BoldMT"]=e["Arial-Bold"]={name:"LiberationSans-Bold",baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping},e["Arial-ItalicMT"]=e["Arial-Italic"]={name:"LiberationSans-Italic",baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping},e["Arial-BoldItalicMT"]=e["Arial-BoldItalic"]={name:"LiberationSans-BoldItalic",baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping},e["Calibri-Regular"]={name:"LiberationSans-Regular",factors:r.CalibriRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:r.CalibriRegularMetrics},e["Calibri-Bold"]={name:"LiberationSans-Bold",factors:r.CalibriBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:r.CalibriBoldMetrics},e["Calibri-Italic"]={name:"LiberationSans-Italic",factors:r.CalibriItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:r.CalibriItalicMetrics},e["Calibri-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:r.CalibriBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:r.CalibriBoldItalicMetrics},e["Segoeui-Regular"]={name:"LiberationSans-Regular",factors:l.SegoeuiRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:l.SegoeuiRegularMetrics},e["Segoeui-Bold"]={name:"LiberationSans-Bold",factors:l.SegoeuiBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:l.SegoeuiBoldMetrics},e["Segoeui-Italic"]={name:"LiberationSans-Italic",factors:l.SegoeuiItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:l.SegoeuiItalicMetrics},e["Segoeui-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:l.SegoeuiBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:l.SegoeuiBoldItalicMetrics},e["Helvetica-Regular"]=e.Helvetica={name:"LiberationSans-Regular",factors:n.HelveticaRegularFactors,baseWidths:s.LiberationSansRegularWidths,baseMapping:s.LiberationSansRegularMapping,metrics:n.HelveticaRegularMetrics},e["Helvetica-Bold"]={name:"LiberationSans-Bold",factors:n.HelveticaBoldFactors,baseWidths:s.LiberationSansBoldWidths,baseMapping:s.LiberationSansBoldMapping,metrics:n.HelveticaBoldMetrics},e["Helvetica-Italic"]={name:"LiberationSans-Italic",factors:n.HelveticaItalicFactors,baseWidths:s.LiberationSansItalicWidths,baseMapping:s.LiberationSansItalicMapping,metrics:n.HelveticaItalicMetrics},e["Helvetica-BoldItalic"]={name:"LiberationSans-BoldItalic",factors:n.HelveticaBoldItalicFactors,baseWidths:s.LiberationSansBoldItalicWidths,baseMapping:s.LiberationSansBoldItalicMapping,metrics:n.HelveticaBoldItalicMetrics}});function u(e){e=(0,c.normalizeFontName)(e);return h()[e]}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CalibriRegularMetrics=t.CalibriRegularFactors=t.CalibriItalicMetrics=t.CalibriItalicFactors=t.CalibriBoldMetrics=t.CalibriBoldItalicMetrics=t.CalibriBoldItalicFactors=t.CalibriBoldFactors=void 0,t.CalibriBoldFactors=[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],t.CalibriBoldMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriBoldItalicFactors=[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],t.CalibriBoldItalicMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriItalicFactors=[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],t.CalibriItalicMetrics={lineHeight:1.2207,lineGap:.2207},t.CalibriRegularFactors=[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],t.CalibriRegularMetrics={lineHeight:1.2207,lineGap:.2207}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HelveticaRegularMetrics=t.HelveticaRegularFactors=t.HelveticaItalicMetrics=t.HelveticaItalicFactors=t.HelveticaBoldMetrics=t.HelveticaBoldItalicMetrics=t.HelveticaBoldItalicFactors=t.HelveticaBoldFactors=void 0,t.HelveticaBoldFactors=[.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],t.HelveticaBoldMetrics={lineHeight:1.2,lineGap:.2},t.HelveticaBoldItalicFactors=[.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],t.HelveticaBoldItalicMetrics={lineHeight:1.35,lineGap:.2},t.HelveticaItalicFactors=[.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],t.HelveticaItalicMetrics={lineHeight:1.35,lineGap:.2},t.HelveticaRegularFactors=[.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],t.HelveticaRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LiberationSansRegularWidths=t.LiberationSansRegularMapping=t.LiberationSansItalicWidths=t.LiberationSansItalicMapping=t.LiberationSansBoldWidths=t.LiberationSansBoldMapping=t.LiberationSansBoldItalicWidths=t.LiberationSansBoldItalicMapping=void 0,t.LiberationSansBoldWidths=[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],t.LiberationSansBoldMapping=[-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],t.LiberationSansBoldItalicWidths=[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],t.LiberationSansBoldItalicMapping=[-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],t.LiberationSansItalicWidths=[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],t.LiberationSansItalicMapping=[-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],t.LiberationSansRegularWidths=[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],t.LiberationSansRegularMapping=[-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,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MyriadProRegularMetrics=t.MyriadProRegularFactors=t.MyriadProItalicMetrics=t.MyriadProItalicFactors=t.MyriadProBoldMetrics=t.MyriadProBoldItalicMetrics=t.MyriadProBoldItalicFactors=t.MyriadProBoldFactors=void 0,t.MyriadProBoldFactors=[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],t.MyriadProBoldMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProBoldItalicFactors=[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],t.MyriadProBoldItalicMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProItalicFactors=[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],t.MyriadProItalicMetrics={lineHeight:1.2,lineGap:.2},t.MyriadProRegularFactors=[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],t.MyriadProRegularMetrics={lineHeight:1.2,lineGap:.2}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SegoeuiRegularMetrics=t.SegoeuiRegularFactors=t.SegoeuiItalicMetrics=t.SegoeuiItalicFactors=t.SegoeuiBoldMetrics=t.SegoeuiBoldItalicMetrics=t.SegoeuiBoldItalicFactors=t.SegoeuiBoldFactors=void 0,t.SegoeuiBoldFactors=[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],t.SegoeuiBoldMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiBoldItalicFactors=[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],t.SegoeuiBoldItalicMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiItalicFactors=[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],t.SegoeuiItalicMetrics={lineHeight:1.33008,lineGap:0},t.SegoeuiRegularFactors=[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],t.SegoeuiRegularMetrics={lineHeight:1.33008,lineGap:0}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptEvaluator=t.PostScriptCompiler=t.PDFFunctionFactory=void 0,t.isPDFFunction=function(e){let t;if(e instanceof r.Dict)t=e;else{if(!(e instanceof i.BaseStream))return!1;t=e.dict}return t.has("FunctionType")};var r=a(4),l=a(2),n=a(58),i=a(5),s=a(59);function c(t){if(!Array.isArray(t))return null;var a=t.length;for(let e=0;e<a;e++)if("number"!=typeof t[e]){var r=new Array(a);for(let e=0;e<a;e++)r[e]=+t[e];return r}return t}t.PDFFunctionFactory=class{constructor({xref:e,isEvalSupported:t=!0}){this.xref=e,this.isEvalSupported=!1!==t}create(e){var t=this.getCached(e);return t||(t=o.parse({xref:this.xref,isEvalSupported:this.isEvalSupported,fn:e instanceof r.Ref?this.xref.fetch(e):e}),this._cache(e,t),t)}createFromArray(e){var t=this.getCached(e);return t||(t=o.parseArray({xref:this.xref,isEvalSupported:this.isEvalSupported,fnObj:e instanceof r.Ref?this.xref.fetch(e):e}),this._cache(e,t),t)}getCached(e){let t;if(e instanceof r.Ref?t=e:e instanceof r.Dict?t=e.objId:e instanceof i.BaseStream&&(t=e.dict?.objId),t){const e=this._localFunctionCache.getByRef(t);if(e)return e}return null}_cache(e,t){if(!t)throw new Error('PDFFunctionFactory._cache - expected "parsedFunction" argument.');let a;e instanceof r.Ref?a=e:e instanceof r.Dict?a=e.objId:e instanceof i.BaseStream&&(a=e.dict?.objId),a&&this._localFunctionCache.set(null,a,t)}get _localFunctionCache(){return(0,l.shadow)(this,"_localFunctionCache",new s.LocalFunctionCache)}};class o{static getSampleArray(e,t,a,r){let i,n,s=1;for(i=0,n=e.length;i<n;i++)s*=e[i];s*=t;var o=new Array(s);let l=0,c=0;var h=1/(2**a-1),u=r.getBytes((s*a+7)/8);let d=0;for(i=0;i<s;i++){for(;l<a;)c=(c<<=8)|u[d++],l+=8;l-=a,o[i]=(c>>l)*h,c&=(1<<l)-1}return o}static parse({xref:e,isEvalSupported:t,fn:a}){var r=a.dict||a;switch(r.get("FunctionType")){case 0:return this.constructSampled({xref:e,isEvalSupported:t,fn:a,dict:r});case 1:break;case 2:return this.constructInterpolated({xref:e,isEvalSupported:t,dict:r});case 3:return this.constructStiched({xref:e,isEvalSupported:t,dict:r});case 4:return this.constructPostScript({xref:e,isEvalSupported:t,fn:a,dict:r})}throw new l.FormatError("Unknown type of function")}static parseArray({xref:e,isEvalSupported:t,fnObj:a}){if(!Array.isArray(a))return this.parse({xref:e,isEvalSupported:t,fn:a});const s=[];for(const r of a)s.push(this.parse({xref:e,isEvalSupported:t,fn:e.fetchIfRef(r)}));return function(a,r,i,n){for(let e=0,t=s.length;e<t;e++)s[e](a,r,i,n+e)}}static constructSampled({fn:e,dict:t}){function a(t){var a=t.length,r=[];let i=0;for(let e=0;e<a;e+=2)r[i++]=[t[e],t[e+1]];return r}function g(e,t,a,r,i){return r+(i-r)/(a-t)*(e-t)}let p=c(t.getArray("Domain")),m=c(t.getArray("Range"));if(!p||!m)throw new l.FormatError("No domain or range");const b=p.length/2,y=m.length/2,w=(p=a(p),m=a(m),c(t.getArray("Size"))),r=t.get("BitsPerSample"),i=t.get("Order")||1;1!==i&&(0,l.info)("No support for cubic spline interpolation: "+i);let v=c(t.getArray("Encode"));if(v)v=a(v);else{v=[];for(let e=0;e<b;++e)v.push([0,w[e]-1])}let x=c(t.getArray("Decode"));x=x?a(x):m;const S=this.getSampleArray(w,y,r,e);return function(e,t,a,r){var i=1<<b,n=new Float64Array(i),s=new Uint32Array(i);let o,l;for(l=0;l<i;l++)n[l]=1;let c=y,h=1;for(o=0;o<b;++o){const a=p[o][0],r=p[o][1];var u=g(Math.min(Math.max(e[t+o],a),r),a,r,v[o][0],v[o][1]);const b=w[o],y=(u=Math.min(Math.max(u,0),b-1))<b-1?Math.floor(u):u-1,x=y+1-u,S=u-y,d=y*c,f=d+c;for(l=0;l<i;l++)l&h?(n[l]*=S,s[l]+=f):(n[l]*=x,s[l]+=d);c*=b,h<<=1}for(l=0;l<y;++l){let e=0;for(o=0;o<i;o++)e+=S[s[o]+l]*n[o];e=g(e,0,1,x[l][0],x[l][1]),a[r+l]=Math.min(Math.max(e,m[l][0]),m[l][1])}}}static constructInterpolated({dict:e}){const n=c(e.getArray("C0"))||[0],a=c(e.getArray("C1"))||[1],s=e.get("N"),o=[];for(let e=0,t=n.length;e<t;++e)o.push(a[e]-n[e]);const l=o.length;return function(e,t,a,r){var i=1===s?e[t]:e[t]**s;for(let e=0;e<l;++e)a[r+e]=n[e]+i*o[e]}}static constructStiched({xref:e,isEvalSupported:t,dict:a}){const h=c(a.getArray("Domain"));if(!h)throw new l.FormatError("No domain");if(1!=h.length/2)throw new l.FormatError("Bad domain for stiched function");const u=[];for(const h of a.get("Functions"))u.push(this.parse({xref:e,isEvalSupported:t,fn:e.fetchIfRef(h)}));const d=c(a.getArray("Bounds")),f=c(a.getArray("Encode")),g=new Float32Array(1);return function(e,t,a,r){e=e[t],t=h[0],(c=h[1])<e?e=c:e<t&&(e=t);var i=e,n=d.length;let s;for(s=0;s<n&&!(i<d[s]);++s);let o=h[0],l=(0<s&&(o=d[s-1]),h[1]);s<d.length&&(l=d[s]);var c=f[2*s],t=f[2*s+1];g[0]=o===l?c:c+(i-o)*(t-c)/(l-o),u[s](g,0,a,r)}}static constructPostScript({isEvalSupported:e,fn:t,dict:a}){const r=c(a.getArray("Domain")),f=c(a.getArray("Range"));if(!r)throw new l.FormatError("No domain.");if(!f)throw new l.FormatError("No range.");a=new n.PostScriptLexer(t),t=new n.PostScriptParser(a).parse();if(e&&l.FeatureTest.isEvalSupported){const i=(new v).compile(t,r,f);if(i)return new Function("src","srcOffset","dest","destOffset",i)}(0,l.info)("Unable to compile PS function");const g=f.length>>1,p=r.length>>1,m=new u(t),b=Object.create(null);let y=8192;const w=new Float32Array(p);return function(e,t,a,r){let i,n,s="";var o=w;for(i=0;i<p;i++)n=e[t+i],o[i]=n,s+=n+"_";var l=b[s];if(void 0!==l)a.set(l,r);else{var c=new Float32Array(g),h=m.execute(o),u=h.length-g;for(i=0;i<g;i++){n=h[u+i];var d=f[2*i];(n<d||(d=f[2*i+1],n>d))&&(n=d),c[i]=n}0<y&&(y--,b[s]=c),a.set(c,r)}}}}class h{static MAX_STACK_SIZE=100;constructor(e){this.stack=e?Array.from(e):[]}push(e){if(this.stack.length>=h.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");this.stack.push(e)}pop(){if(this.stack.length<=0)throw new Error("PostScript function stack underflow.");return this.stack.pop()}copy(a){if(this.stack.length+a>=h.MAX_STACK_SIZE)throw new Error("PostScript function stack overflow.");var r=this.stack;for(let e=r.length-a,t=a-1;0<=t;t--,e++)r.push(r[e])}index(e){this.push(this.stack[this.stack.length-e-1])}roll(e,t){const a=this.stack,r=a.length-e,i=a.length-1,n=r+(t-Math.floor(t/e)*e);for(let e=r,t=i;e<t;e++,t--){const r=a[e];a[e]=a[t],a[t]=r}for(let e=r,t=n-1;e<t;e++,t--){const r=a[e];a[e]=a[t],a[t]=r}for(let e=n,t=i;e<t;e++,t--){const r=a[e];a[e]=a[t],a[t]=r}}}class u{constructor(e){this.operators=e}execute(e){var t=new h(e);let a=0;var r=this.operators,i=r.length;let n,s,o;for(;a<i;)if("number"!=typeof(n=r[a++]))switch(n){case"jz":o=t.pop(),(s=t.pop())||(a=o);break;case"j":s=t.pop(),a=s;break;case"abs":s=t.pop(),t.push(Math.abs(s));break;case"add":o=t.pop(),s=t.pop(),t.push(s+o);break;case"and":o=t.pop(),"boolean"==typeof(s=t.pop())&&"boolean"==typeof o?t.push(s&&o):t.push(s&o);break;case"atan":o=t.pop(),s=t.pop(),(s=Math.atan2(s,o)/Math.PI*180)<0&&(s+=360),t.push(s);break;case"bitshift":o=t.pop(),0<(s=t.pop())?t.push(s<<o):t.push(s>>o);break;case"ceiling":s=t.pop(),t.push(Math.ceil(s));break;case"copy":s=t.pop(),t.copy(s);break;case"cos":s=t.pop(),t.push(Math.cos(s%360/180*Math.PI));break;case"cvi":s=0|t.pop(),t.push(s);break;case"cvr":break;case"div":o=t.pop(),s=t.pop(),t.push(s/o);break;case"dup":t.copy(1);break;case"eq":o=t.pop(),s=t.pop(),t.push(s===o);break;case"exch":t.roll(2,1);break;case"exp":o=t.pop(),s=t.pop(),t.push(s**o);break;case"false":t.push(!1);break;case"floor":s=t.pop(),t.push(Math.floor(s));break;case"ge":o=t.pop(),s=t.pop(),t.push(s>=o);break;case"gt":o=t.pop(),s=t.pop(),t.push(s>o);break;case"idiv":o=t.pop(),s=t.pop(),t.push(s/o|0);break;case"index":s=t.pop(),t.index(s);break;case"le":o=t.pop(),s=t.pop(),t.push(s<=o);break;case"ln":s=t.pop(),t.push(Math.log(s));break;case"log":s=t.pop(),t.push(Math.log10(s));break;case"lt":o=t.pop(),s=t.pop(),t.push(s<o);break;case"mod":o=t.pop(),s=t.pop(),t.push(s%o);break;case"mul":o=t.pop(),s=t.pop(),t.push(s*o);break;case"ne":o=t.pop(),s=t.pop(),t.push(s!==o);break;case"neg":s=t.pop(),t.push(-s);break;case"not":"boolean"==typeof(s=t.pop())?t.push(!s):t.push(~s);break;case"or":o=t.pop(),"boolean"==typeof(s=t.pop())&&"boolean"==typeof o?t.push(s||o):t.push(s|o);break;case"pop":t.pop();break;case"roll":o=t.pop(),s=t.pop(),t.roll(s,o);break;case"round":s=t.pop(),t.push(Math.round(s));break;case"sin":s=t.pop(),t.push(Math.sin(s%360/180*Math.PI));break;case"sqrt":s=t.pop(),t.push(Math.sqrt(s));break;case"sub":o=t.pop(),s=t.pop(),t.push(s-o);break;case"true":t.push(!0);break;case"truncate":s=(s=t.pop())<0?Math.ceil(s):Math.floor(s),t.push(s);break;case"xor":o=t.pop(),"boolean"==typeof(s=t.pop())&&"boolean"==typeof o?t.push(s!==o):t.push(s^o);break;default:throw new l.FormatError("Unknown operator "+n)}else t.push(n);return t.stack}}t.PostScriptEvaluator=u;class d{constructor(e){this.type=e}visit(e){(0,l.unreachable)("abstract method")}}class x extends d{constructor(e,t,a){super("args"),this.index=e,this.min=t,this.max=a}visit(e){e.visitArgument(this)}}class S extends d{constructor(e){super("literal"),this.number=e,this.min=e,this.max=e}visit(e){e.visitLiteral(this)}}class A extends d{constructor(e,t,a,r,i){super("binary"),this.op=e,this.arg1=t,this.arg2=a,this.min=r,this.max=i}visit(e){e.visitBinaryOperation(this)}}class k extends d{constructor(e,t){super("max"),this.arg=e,this.min=e.min,this.max=t}visit(e){e.visitMin(this)}}class C extends d{constructor(e,t,a){super("var"),this.index=e,this.min=t,this.max=a}visit(e){e.visitVariable(this)}}class F extends d{constructor(e,t){super("definition"),this.variable=e,this.arg=t}visit(e){e.visitVariableDefinition(this)}}class O{constructor(){this.parts=[]}visitArgument(e){this.parts.push("Math.max(",e.min,", Math.min(",e.max,", src[srcOffset + ",e.index,"]))")}visitVariable(e){this.parts.push("v",e.index)}visitLiteral(e){this.parts.push(e.number)}visitBinaryOperation(e){this.parts.push("("),e.arg1.visit(this),this.parts.push(" ",e.op," "),e.arg2.visit(this),this.parts.push(")")}visitVariableDefinition(e){this.parts.push("var "),e.variable.visit(this),this.parts.push(" = "),e.arg.visit(this),this.parts.push(";")}visitMin(e){this.parts.push("Math.min("),e.arg.visit(this),this.parts.push(", ",e.max,")")}toString(){return this.parts.join("")}}class v{compile(a,r,i){const n=[],s=[],o=r.length>>1,l=i.length>>1;let c,h,u,d,f,g,p,m,b=0;for(let e=0;e<o;e++)n.push(new x(e,r[2*e],r[2*e+1]));for(let e=0,t=a.length;e<t;e++)if("number"!=typeof(m=a[e]))switch(m){case"add":if(n.length<2)return null;d=n.pop(),u=n.pop(),n.push((y=u,"literal"===(w=d).type&&0===w.number?y:"literal"===y.type&&0===y.number?w:"literal"===w.type&&"literal"===y.type?new S(y.number+w.number):new A("+",y,w,y.min+w.min,y.max+w.max)));break;case"cvr":if(n.length<1)return null;break;case"mul":if(n.length<2)return null;d=n.pop(),u=n.pop(),n.push(function(e,t){if("literal"===t.type){if(0===t.number)return new S(0);if(1===t.number)return e;if("literal"===e.type)return new S(e.number*t.number)}if("literal"===e.type){if(0===e.number)return new S(0);if(1===e.number)return t}var a=Math.min(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max),r=Math.max(e.min*t.min,e.min*t.max,e.max*t.min,e.max*t.max);return new A("*",e,t,a,r)}(u,d));break;case"sub":if(n.length<2)return null;d=n.pop(),u=n.pop(),n.push(function(e,t){if("literal"===t.type){if(0===t.number)return e;if("literal"===e.type)return new S(e.number-t.number)}return"binary"===t.type&&"-"===t.op&&"literal"===e.type&&1===e.number&&"literal"===t.arg1.type&&1===t.arg1.number?t.arg2:new A("-",e,t,e.min-t.max,e.max-t.min)}(u,d));break;case"exch":if(n.length<2)return null;f=n.pop(),g=n.pop(),n.push(f,g);break;case"pop":if(n.length<1)return null;n.pop();break;case"index":if(n.length<1)return null;if("literal"!==(u=n.pop()).type)return null;if((c=u.number)<0||!Number.isInteger(c)||n.length<c)return null;"literal"===(f=n[n.length-c-1]).type||"var"===f.type?n.push(f):(p=new C(b++,f.min,f.max),n[n.length-c-1]=p,n.push(p),s.push(new F(p,f)));break;case"dup":if(n.length<1)return null;"number"==typeof a[e+1]&&"gt"===a[e+2]&&a[e+3]===e+7&&"jz"===a[e+4]&&"pop"===a[e+5]&&a[e+6]===a[e+1]?(u=n.pop(),n.push((y=u,w=a[e+1],y.min>=w?new S(w):y.max<=w?y:new k(y,w))),e+=6):"literal"===(f=n.at(-1)).type||"var"===f.type?n.push(f):(p=new C(b++,f.min,f.max),n[n.length-1]=p,n.push(p),s.push(new F(p,f)));break;case"roll":if(n.length<2)return null;if(d=n.pop(),u=n.pop(),"literal"!==d.type||"literal"!==u.type)return null;if(h=d.number,(c=u.number)<=0||!Number.isInteger(c)||!Number.isInteger(h)||n.length<c)return null;0!=(h=(h%c+c)%c)&&n.push(...n.splice(n.length-c,c-h));break;default:return null}else n.push(new S(m));var y,w;if(n.length!==l)return null;var v=[];for(const a of s){const r=new O;a.visit(r),v.push(r.toString())}for(let e=0,t=n.length;e<t;e++){const r=n[e],s=new O,o=(r.visit(s),i[2*e]),l=i[2*e+1],c=[s.toString()];o>r.min&&(c.unshift("Math.max(",o,", "),c.push(")")),l<r.max&&(c.unshift("Math.min(",l,", "),c.push(")")),c.unshift("dest[destOffset + ",e,"] = "),c.push(";"),v.push(c.join(""))}return v.join("\n")}}t.PostScriptCompiler=v},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PostScriptParser=t.PostScriptLexer=void 0;var r=a(2),i=a(4),n=a(3);t.PostScriptParser=class{constructor(e){this.lexer=e,this.operators=[],this.token=null,this.prev=null}nextToken(){this.prev=this.token,this.token=this.lexer.getToken()}accept(e){return this.token.type===e&&(this.nextToken(),!0)}expect(e){if(this.accept(e))return!0;throw new r.FormatError(`Unexpected symbol: found ${this.token.type} expected ${e}.`)}parse(){return this.nextToken(),this.expect(s.LBRACE),this.parseBlock(),this.expect(s.RBRACE),this.operators}parseBlock(){for(;;)if(this.accept(s.NUMBER))this.operators.push(this.prev.value);else if(this.accept(s.OPERATOR))this.operators.push(this.prev.value);else{if(!this.accept(s.LBRACE))return;this.parseCondition()}}parseCondition(){var e=this.operators.length;if(this.operators.push(null,null),this.parseBlock(),this.expect(s.RBRACE),this.accept(s.IF))this.operators[e]=this.operators.length;else{if(!this.accept(s.LBRACE))throw new r.FormatError("PS Function: error parsing conditional.");var t=this.operators.length,a=(this.operators.push(null,null),this.operators.length);this.parseBlock(),this.expect(s.RBRACE),this.expect(s.IFELSE),this.operators[t]=this.operators.length,this.operators[t+1]="j",this.operators[e]=a}this.operators[e+1]="jz"}};const s={LBRACE:0,RBRACE:1,NUMBER:2,OPERATOR:3,IF:4,IFELSE:5};class o{static get opCache(){return(0,r.shadow)(this,"opCache",Object.create(null))}constructor(e,t){this.type=e,this.value=t}static getOperator(e){return o.opCache[e]||=new o(s.OPERATOR,e)}static get LBRACE(){return(0,r.shadow)(this,"LBRACE",new o(s.LBRACE,"{"))}static get RBRACE(){return(0,r.shadow)(this,"RBRACE",new o(s.RBRACE,"}"))}static get IF(){return(0,r.shadow)(this,"IF",new o(s.IF,"IF"))}static get IFELSE(){return(0,r.shadow)(this,"IFELSE",new o(s.IFELSE,"IFELSE"))}}t.PostScriptLexer=class{constructor(e){this.stream=e,this.nextChar(),this.strBuf=[]}nextChar(){return this.currentChar=this.stream.getByte()}getToken(){let e=!1,t=this.currentChar;for(;;){if(t<0)return i.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(!(0,n.isWhiteSpace)(t))break;t=this.nextChar()}switch(0|t){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 o(s.NUMBER,this.getNumber());case 123:return this.nextChar(),o.LBRACE;case 125:return this.nextChar(),o.RBRACE}var a=this.strBuf;for(a.length=0,a[0]=String.fromCharCode(t);0<=(t=this.nextChar())&&(65<=t&&t<=90||97<=t&&t<=122);)a.push(String.fromCharCode(t));var r=a.join("");switch(r.toLowerCase()){case"if":return o.IF;case"ifelse":return o.IFELSE;default:return o.getOperator(r)}}getNumber(){var e=this.currentChar,t=this.strBuf;for(t.length=0,t[0]=String.fromCharCode(e);0<=(e=this.nextChar())&&(48<=e&&e<=57||45===e||46===e);)t.push(String.fromCharCode(e));var a=parseFloat(t.join(""));if(isNaN(a))throw new r.FormatError("Invalid floating point number: "+a);return a}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RegionalImageCache=t.LocalTilingPatternCache=t.LocalImageCache=t.LocalGStateCache=t.LocalFunctionCache=t.LocalColorSpaceCache=t.GlobalImageCache=void 0;var r=a(2),i=a(4);class n{constructor(e){this.constructor===n&&(0,r.unreachable)("Cannot initialize BaseLocalCache."),this._onlyRefs=!0===e?.onlyRefs,this._onlyRefs||(this._nameRefMap=new Map,this._imageMap=new Map),this._imageCache=new i.RefSetCache}getByName(e){this._onlyRefs&&(0,r.unreachable)("Should not call `getByName` method.");var t=this._nameRefMap.get(e);return t?this.getByRef(t):this._imageMap.get(e)||null}getByRef(e){return this._imageCache.get(e)||null}set(e,t,a){(0,r.unreachable)("Abstract method `set` called.")}}t.LocalImageCache=class extends n{set(e,t=null,a){if("string"!=typeof e)throw new Error('LocalImageCache.set - expected "name" argument.');if(t)return this._imageCache.has(t)?void 0:(this._nameRefMap.set(e,t),void this._imageCache.put(t,a));this._imageMap.has(e)||this._imageMap.set(e,a)}},t.LocalColorSpaceCache=class extends n{set(e=null,t=null,a){if("string"!=typeof e&&!t)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(t)return this._imageCache.has(t)?void 0:(null!==e&&this._nameRefMap.set(e,t),void this._imageCache.put(t,a));this._imageMap.has(e)||this._imageMap.set(e,a)}},t.LocalFunctionCache=class extends n{constructor(e){super({onlyRefs:!0})}set(e=0,t,a){if(!t)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,a)}},t.LocalGStateCache=class extends n{set(e,t=null,a){if("string"!=typeof e)throw new Error('LocalGStateCache.set - expected "name" argument.');if(t)return this._imageCache.has(t)?void 0:(this._nameRefMap.set(e,t),void this._imageCache.put(t,a));this._imageMap.has(e)||this._imageMap.set(e,a)}},t.LocalTilingPatternCache=class extends n{constructor(e){super({onlyRefs:!0})}set(e=0,t,a){if(!t)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,a)}},t.RegionalImageCache=class extends n{constructor(e){super({onlyRefs:!0})}set(e=0,t,a){if(!t)throw new Error('RegionalImageCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,a)}};class s{static NUM_PAGES_THRESHOLD=2;static MIN_IMAGES_TO_CACHE=10;static MAX_BYTE_SIZE=5*r.MAX_IMAGE_SIZE_TO_CACHE;constructor(){this._refCache=new i.RefSetCache,this._imageCache=new i.RefSetCache}get _byteSize(){let e=0;for(const t of this._imageCache)e+=t.byteSize;return e}get _cacheLimitReached(){return!(this._imageCache.size<s.MIN_IMAGES_TO_CACHE||this._byteSize<s.MAX_BYTE_SIZE)}shouldCache(e,t){let a=this._refCache.get(e);return a||(a=new Set,this._refCache.put(e,a)),a.add(t),!(a.size<s.NUM_PAGES_THRESHOLD||!this._imageCache.has(e)&&this._cacheLimitReached)}addByteSize(e,t){e=this._imageCache.get(e);e&&!e.byteSize&&(e.byteSize=t)}getData(e,t){var a=this._refCache.get(e);return a&&!(a.size<s.NUM_PAGES_THRESHOLD)&&(e=this._imageCache.get(e))?(a.add(t),e):null}setData(e,t){if(!this._refCache.has(e))throw new Error('GlobalImageCache.setData - expected "shouldCache" to have been called.');this._imageCache.has(e)||(this._cacheLimitReached?(0,r.warn)("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(e,t))}clear(e=!1){e||this._refCache.clear(),this._imageCache.clear()}}t.GlobalImageCache=s},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.bidi=function(a,t=-1,e=!1){let r=!0;var i=a.length;if(0===i||e)return F(a,r,e);O.length=i,I.length=i;let n,s,o=0;for(n=0;n<i;++n){O[n]=a.charAt(n);const t=a.charCodeAt(n);let e="L";t<=255?e=S[t]:1424<=t&&t<=1524?e="R":1536<=t&&t<=1791?(e=A[255&t])||(0,x.warn)("Bidi: invalid Unicode character "+t.toString(16)):(1792<=t&&t<=2220||64336<=t&&t<=65023||65136<=t&&t<=65279)&&(e="AL"),"R"!==e&&"AL"!==e&&"AN"!==e||o++,I[n]=e}if(0===o)return F(a,r=!0);-1===t&&(t=o/i<.3&&4<i?(r=!0,0):(r=!1,1));var l=[];for(n=0;n<i;++n)l[n]=t;var c=k(t)?"R":"L",h=c,u=h;let d,f=h;for(n=0;n<i;++n)"NSM"===I[n]?I[n]=f:f=I[n];for(f=h,n=0;n<i;++n)"EN"===(d=I[n])?I[n]="AL"===f?"AN":"EN":"R"!==d&&"L"!==d&&"AL"!==d||(f=d);for(n=0;n<i;++n)"AL"===(d=I[n])&&(I[n]="R");for(n=1;n<i-1;++n)"ES"===I[n]&&"EN"===I[n-1]&&"EN"===I[n+1]&&(I[n]="EN"),"CS"!==I[n]||"EN"!==I[n-1]&&"AN"!==I[n-1]||I[n+1]!==I[n-1]||(I[n]=I[n-1]);for(n=0;n<i;++n)if("EN"===I[n]){for(let e=n-1;0<=e&&"ET"===I[e];--e)I[e]="EN";for(let e=n+1;e<i&&"ET"===I[e];++e)I[e]="EN"}for(n=0;n<i;++n)"WS"!==(d=I[n])&&"ES"!==d&&"ET"!==d&&"CS"!==d||(I[n]="ON");for(f=h,n=0;n<i;++n)"EN"===(d=I[n])?I[n]="L"===f?"L":"EN":"R"!==d&&"L"!==d||(f=d);for(n=0;n<i;++n)if("ON"===I[n]){const a=function(e,t,a){let r,i;for(r=t,i=e.length;r<i;++r)if(e[r]!==a)return r;return r}(I,n+1,"ON");let e=h,t=(0<n&&(e=I[n-1]),u);if(a+1<i&&(t=I[a+1]),"L"!==e&&(e="R"),"L"!==t&&(t="R"),e===t){g=void 0;p=void 0;m=void 0;b=void 0;var g=I;var p=n;var m=a;var b=e;for(let e=p;e<m;++e)g[e]=b}n=a-1}for(n=0;n<i;++n)"ON"===I[n]&&(I[n]=c);for(n=0;n<i;++n)d=I[n],0==(1&l[n])?"R"===d?l[n]+=1:"AN"!==d&&"EN"!==d||(l[n]+=2):"L"!==d&&"AN"!==d&&"EN"!==d||(l[n]+=1);let y,w=-1,v=99;for(n=0,s=l.length;n<s;++n)y=l[n],w<y&&(w=y),v>y&&k(y)&&(v=y);for(y=w;y>=v;--y){let e=-1;for(n=0,s=l.length;n<s;++n)l[n]<y?0<=e&&(C(O,e,n),e=-1):e<0&&(e=n);0<=e&&C(O,e,l.length)}for(n=0,s=O.length;n<s;++n){const a=O[n];"<"!==a&&">"!==a||(O[n]="")}return F(O.join(""),r)};var x=a(2);const S=["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"],A=["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 k(e){return 0!=(1&e)}function C(a,r,i){for(let e=r,t=i-1;e<t;++e,--t){const r=a[e];a[e]=a[t],a[t]=r}}function F(e,t,a=!1){let r="ltr";return a?r="ttb":t||(r="rtl"),{str:e,dir:r}}const O=[],I=[]},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFontSubstitution=function(a,r,i,n,s){var o=n=(0,u.normalizeFontName)(n);let l=a.get(o);if(!l){let e=b.get(n);if(!e)for(const[a,r]of y)if(n.startsWith(a)){n=""+r+n.substring(a.length),e=b.get(n);break}let t=!1;e||(e=b.get(s),t=!0);s=r.getDocId()+"_s"+r.createFontId();if(e){var r=[],{style:i,ultimate:c}=(t&&(0,d.validateFontName)(n)&&r.push(`local(${n})`),function e({alias:t,local:a,path:r,fallback:i,style:n,ultimate:s},o,l,c=!0,h=!0,u=""){const d={style:null,ultimate:null};if(a){const t=u?" "+u:"";for(const r of a)o.push(`local(${r}${t})`)}if(t){const a=b.get(t),s=u||function(e){switch(e){case g:return"Bold";case p:return"Italic";case m:return"Bold Italic";default:if("bold"===e?.weight)return"Bold";if("italic"===e?.style)return"Italic"}return""}(n);Object.assign(d,e(a,o,l,c&&!i,h&&!r,s))}if(n&&(d.style=n),s&&(d.ultimate=s),c&&i){const t=b.get(i),a=e(t,o,l,c,h&&!r,u)["ultimate"];d.ultimate||=a}return h&&r&&l&&o.push(`url(${l}${r})`),d}(e,r,i)),h=null===c;l={css:s+(h?"":","+c),guessFallback:h,loadedName:s,baseFontName:n,src:r.join(","),style:i}}else{if(!(0,d.validateFontName)(n))return a.set(o,null),null;const r=/bold/gi.test(n),i=/oblique|italic/gi.test(n);l={css:s,guessFallback:!0,loadedName:s,baseFontName:n,src:`local(${n})`,style:r&&i&&m||r&&g||i&&p||f}}a.set(o,l)}return l};var u=a(38),d=a(3);const f={style:"normal",weight:"normal"},g={style:"normal",weight:"bold"},p={style:"italic",weight:"normal"},m={style:"italic",weight:"bold"},b=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:f,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:g,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:p,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:m,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:f,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",path:"LiberationSans-Bold.ttf",style:g,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",path:"LiberationSans-Italic.ttf",style:p,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",path:"LiberationSans-BoldItalic.ttf",style:m,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono"],style:f,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:g,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:p,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:m,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:f,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:g,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:p,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:m,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:f,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:g,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:p,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:m,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:f}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}]]),y=new Map([["Arial-Black","ArialBlack"]])},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ImageResizer=void 0;var f=a(2);class m{constructor(e,t){this._imgData=e,this._isMask=t}static needsToBeResized(e,t){var a,r;return!(e<=this._goodSquareLength&&t<=this._goodSquareLength)&&(a=this["MAX_DIM"],a<e||a<t||(r=e*t,this._hasMaxArea?r>this.MAX_AREA:!(r<this._goodSquareLength**2)&&(this._areGoodDims(e,t)?(this._goodSquareLength=Math.max(this._goodSquareLength,Math.floor(Math.sqrt(e*t))),!1):(this._goodSquareLength=this._guessMax(this._goodSquareLength,a,128,0),r>(this.MAX_AREA=this._goodSquareLength**2)))))}static get MAX_DIM(){return(0,f.shadow)(this,"MAX_DIM",this._guessMax(2048,65537,0,1))}static get MAX_AREA(){return this._hasMaxArea=!0,(0,f.shadow)(this,"MAX_AREA",this._guessMax(m._goodSquareLength,this.MAX_DIM,128,0)**2)}static set MAX_AREA(e){0<=e&&(this._hasMaxArea=!0,(0,f.shadow)(this,"MAX_AREA",e))}static setMaxArea(e){this._hasMaxArea||(this.MAX_AREA=e>>2)}static _areGoodDims(e,t){try{var a=new OffscreenCanvas(e,t),r=a.getContext("2d"),i=(r.fillRect(0,0,1,1),r.getImageData(0,0,1,1).data[3]);return a.width=a.height=1,0!==i}catch{return!1}}static _guessMax(e,t,a,r){for(;e+a+1<t;){const a=Math.floor((e+t)/2),i=r||a;this._areGoodDims(a,i)?e=a:t=a}return e}static async createImage(e,t=!1){return new m(e,t)._createImage()}async _createImage(){const e=this._encodeBMP(),t=new Blob([e.buffer],{type:"image/bmp"}),a=createImageBitmap(t),{MAX_AREA:r,MAX_DIM:i}=m,n=this["_imgData"],{width:s,height:o}=n,l=Math.max(s/i,o/i,Math.sqrt(s*o/r)),c=Math.max(l,2),h=Math.round(10*(l+1.25))/10/c,u=Math.floor(Math.log2(h)),d=new Array(u+2).fill(2);d[0]=c,d.splice(-1,1,h/(1<<u));let f=s,g=o,p=await a;for(const e of d){const t=f,a=g,r=(f=Math.floor(f/e)-1,g=Math.floor(g/e)-1,new OffscreenCanvas(f,g));r.getContext("2d").drawImage(p,0,0,t,a,0,0,f,g),p=r.transferToImageBitmap()}return n.data=null,n.bitmap=p,n.width=f,n.height=g,n}_encodeBMP(){const{width:r,height:i}=this._imgData;let n,s=this._imgData.data,o=new Uint8Array(0),e=o,t=0;switch(d){case f.ImageKind.GRAYSCALE_1BPP:{n=1,o=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);const d=r+7>>3,f=3+d&-4;if(d!=f){const r=new Uint8Array(f*i);let a=0;for(let e=0,t=i*d;e<t;e+=d,a+=f)r.set(s.subarray(e,e+d),a);s=r}break}case f.ImageKind.RGB_24BPP:if(n=24,3&r){const d=3*r,f=3+d&-4,n=f-d,o=new Uint8Array(f*i);let a=0;for(let e=0,t=i*d;e<t;e+=d){const i=s.subarray(e,e+d);for(let e=0;e<d;e+=3)o[a++]=i[e+2],o[a++]=i[e+1],o[a++]=i[e];a+=n}s=o}else for(let e=0,t=s.length;e<t;e+=3){const i=s[e];s[e]=s[e+2],s[e+2]=i}break;case f.ImageKind.RGBA_32BPP:n=32,t=3,e=new Uint8Array(68);const d=new DataView(e.buffer);f.FeatureTest.isLittleEndian?(d.setUint32(0,255,!0),d.setUint32(4,65280,!0),d.setUint32(8,16711680,!0),d.setUint32(12,4278190080,!0)):(d.setUint32(0,4278190080,!0),d.setUint32(4,16711680,!0),d.setUint32(8,65280,!0),d.setUint32(12,255,!0));break;default:throw new Error("invalid format")}var a=0,l=40+e.length,c=14+l+o.length+s.length,h=new Uint8Array(c),u=new DataView(h.buffer);return u.setUint16(0,19778,!0),a+=2,u.setUint32(2,c,!0),a+=4,u.setUint32(6,0,!0),a+=4,u.setUint32(10,14+l+o.length,!0),a+=4,u.setUint32(14,l,!0),a+=4,u.setInt32(18,r,!0),a+=4,u.setInt32(22,-i,!0),a+=4,u.setUint16(26,1,!0),a+=2,u.setUint16(28,n,!0),a+=2,u.setUint32(30,t,!0),a+=4,u.setUint32(34,0,!0),a+=4,u.setInt32(38,0,!0),a+=4,u.setInt32(42,0,!0),a+=4,u.setUint32(46,o.length/4,!0),a+=4,u.setUint32(50,0,!0),a+=4,h.set(e,54),a+=e.length,h.set(o,a),a+=o.length,h.set(s,a),h}}(t.ImageResizer=m)._goodSquareLength=2048},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var d=a(2);const f=4294901760,g=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:3285377520,this.h2=e?4294967295&e:3285377520}update(a){let r,i;if("string"==typeof a){r=new Uint8Array(2*a.length);for(let e=i=0,t=a.length;e<t;e++){const n=a.charCodeAt(e);n<=255?r[i++]=n:(r[i++]=n>>>8,r[i++]=255&n)}}else{if(!(0,d.isArrayBuffer)(a))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");r=a.slice(),i=r.byteLength}const n=i>>2,e=i-4*n,t=new Uint32Array(r.buffer,0,n);let s=0,o,l=this.h1,c=this.h2;var h=3432918353,u=461845907;for(let e=0;e<n;e++)1&e?(s=(s=(s=(s=t[e])*h&f|11601*s&g)<<15|s>>>17)*u&f|13715*s&g,l=5*(l=(l^=s)<<13|l>>>19)+3864292196):(o=(o=(o=(o=t[e])*h&f|11601*o&g)<<15|o>>>17)*u&f|13715*o&g,c=5*(c=(c^=o)<<13|c>>>19)+3864292196);switch(s=0,e){case 3:s^=r[4*n+2]<<16;case 2:s^=r[4*n+1]<<8;case 1:s=(s=(s=(s^=r[4*n])*h&f|11601*s&g)<<15|s>>>17)*u&f|13715*s&g,1&n?l^=s:c^=s}this.h1=l,this.h2=c}hexdigest(){var e=this.h1,t=this.h2,e=3981806797*(e^=t>>>1)&f|36045*e&g;return e=444984403*(e^=(t=4283543511*t&f|(2950163797*(t<<16|e>>>16)&f)>>>16)>>>1)&f|60499*e&g,((e^=(t=3301882366*t&f|(3120437893*(t<<16|e>>>16)&f)>>>16)>>>1)>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OperatorList=void 0;var y=a(2);function r(e,a,r,t,i){let n=e;for(let e=0,t=a.length-1;e<t;e++){const r=a[e];n=n[r]||=[]}n[a.at(-1)]={checkFn:r,iterateFn:t,processFn:i}}const s=[];r(s,[y.OPS.save,y.OPS.transform,y.OPS.paintInlineImageXObject,y.OPS.restore],null,function(e,t){var a=e.fnArray,e=(t-(e.iCurr-3))%4;switch(e){case 0:return a[t]===y.OPS.save;case 1:return a[t]===y.OPS.transform;case 2:return a[t]===y.OPS.paintInlineImageXObject;case 3:return a[t]===y.OPS.restore}throw new Error("iterateInlineImageGroup - invalid pos: "+e)},function(e,n){const s=e.fnArray,t=e.argsArray,a=e.iCurr,r=a-3,i=a-2,o=a-1,l=Math.min(Math.floor((n-r)/4),200);if(l<10)return n-(n-r)%4;let c=0;var h=[];let u=0,d=1,f=1;for(let e=0;e<l;e++){const n=t[i+(e<<2)],s=t[o+(e<<2)][0];1e3<d+s.width&&(c=Math.max(c,d),f+=u+2,d=0,u=0),h.push({transform:n,x:d,y:f,w:s.width,h:s.height}),d+=s.width+2,u=Math.max(u,s.height)}var g=Math.max(c,d)+1,n=f+u+1,p=new Uint8Array(g*n*4),m=g<<2;for(let i=0;i<l;i++){const n=t[o+(i<<2)][0].data,s=h[i].w<<2;let a=0,r=h[i].x+h[i].y*g<<2;p.set(n.subarray(0,s),r-m);for(let e=0,t=h[i].h;e<t;e++)p.set(n.subarray(a,a+s),r),a+=s,r+=m;for(p.set(n.subarray(a-s,a),r);0<=r;)n[r-4]=n[r],n[r-3]=n[r+1],n[r-2]=n[r+2],n[r-1]=n[r+3],n[r+s]=n[r+s-4],n[r+s+1]=n[r+s-3],n[r+s+2]=n[r+s-2],n[r+s+3]=n[r+s-1],r-=m}var b={width:g,height:n};if(e.isOffscreenCanvasSupported){const e=new OffscreenCanvas(g,n);e.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(p.buffer),g,n),0,0),b.bitmap=e.transferToImageBitmap(),b.data=null}else b.kind=y.ImageKind.RGBA_32BPP,b.data=p;return s.splice(r,4*l,y.OPS.paintInlineImageXObjectGroup),t.splice(r,4*l,[b,h]),1+r}),r(s,[y.OPS.save,y.OPS.transform,y.OPS.paintImageMaskXObject,y.OPS.restore],null,function(e,t){var a=e.fnArray,e=(t-(e.iCurr-3))%4;switch(e){case 0:return a[t]===y.OPS.save;case 1:return a[t]===y.OPS.transform;case 2:return a[t]===y.OPS.paintImageMaskXObject;case 3:return a[t]===y.OPS.restore}throw new Error("iterateImageMaskGroup - invalid pos: "+e)},function(t,e){const a=t.fnArray,r=t.argsArray,i=t.iCurr,n=i-3,s=i-2,o=i-1;let l=Math.floor((e-n)/4);if(l<10)return e-(e-n)%4;let c,h,u=!1;var d=r[o][0],f=r[s][0],g=r[s][1],p=r[s][2],m=r[s][3];if(g===p){u=!0,c=4+s;let t=4+o;for(let e=1;e<l;e++,c+=4,t+=4)if(h=r[c],r[t][0]!==d||h[0]!==f||h[1]!==g||h[2]!==p||h[3]!==m){e<10?u=!1:l=e;break}}if(u){l=Math.min(l,1e3);const t=new Float32Array(2*l);c=s;for(let e=0;e<l;e++,c+=4)h=r[c],t[e<<1]=h[4],t[1+(e<<1)]=h[5];a.splice(n,4*l,y.OPS.paintImageMaskXObjectRepeat),r.splice(n,4*l,[d,f,g,p,m,t])}else{l=Math.min(l,100);const t=[];for(let e=0;e<l;e++){h=r[s+(e<<2)];const a=r[o+(e<<2)][0];t.push({data:a.data,width:a.width,height:a.height,interpolate:a.interpolate,count:a.count,transform:h})}a.splice(n,4*l,y.OPS.paintImageMaskXObjectGroup),r.splice(n,4*l,[t])}return 1+n}),r(s,[y.OPS.save,y.OPS.transform,y.OPS.paintImageXObject,y.OPS.restore],function(e){var t=e.argsArray,e=e.iCurr-2;return 0===t[e][1]&&0===t[e][2]},function(e,t){const a=e.fnArray,r=e.argsArray,i=(t-(e.iCurr-3))%4;switch(i){case 0:return a[t]===y.OPS.save;case 1:if(a[t]!==y.OPS.transform)return!1;const i=e.iCurr-2,s=r[i][0],o=r[i][3];return r[t][0]===s&&0===r[t][1]&&0===r[t][2]&&r[t][3]===o;case 2:var n;return a[t]!==y.OPS.paintImageXObject?!1:(n=r[e.iCurr-1][0],r[t][0]===n);case 3:return a[t]===y.OPS.restore}throw new Error("iterateImageGroup - invalid pos: "+i)},function(e,t){var a=e.fnArray,r=e.argsArray,e=e.iCurr,i=e-3,n=e-2,e=r[e-1][0],s=r[n][0],o=r[n][3],l=Math.min(Math.floor((t-i)/4),1e3);if(l<3)return t-(t-i)%4;var c=new Float32Array(2*l);let h=n;for(let e=0;e<l;e++,h+=4){const t=r[h];c[e<<1]=t[4],c[1+(e<<1)]=t[5]}t=[e,s,o,c];return a.splice(i,4*l,y.OPS.paintImageXObjectRepeat),r.splice(i,4*l,t),1+i}),r(s,[y.OPS.beginText,y.OPS.setFont,y.OPS.setTextMatrix,y.OPS.showText,y.OPS.endText],null,function(e,t){const a=e.fnArray,r=e.argsArray,i=(t-(e.iCurr-4))%5;switch(i){case 0:return a[t]===y.OPS.beginText;case 1:return a[t]===y.OPS.setFont;case 2:return a[t]===y.OPS.setTextMatrix;case 3:if(a[t]!==y.OPS.showText)return!1;const i=e.iCurr-3,n=r[i][0],s=r[i][1];return r[t][0]===n&&r[t][1]===s;case 4:return a[t]===y.OPS.endText}throw new Error("iterateShowTextGroup - invalid pos: "+i)},function(e,t){var a=e.fnArray,r=e.argsArray,e=e.iCurr,i=e-4,n=e-3,s=e-2,o=e-1,l=r[n][0],c=r[n][1];let h=Math.min(Math.floor((t-i)/5),1e3);if(h<3)return t-(t-i)%5;let u=i,d=(4<=i&&a[i-4]===a[n]&&a[i-3]===a[s]&&a[i-2]===a[o]&&a[i-1]===a[e]&&r[i-4][0]===l&&r[i-4][1]===c&&(h++,u-=5),u+4);for(let e=1;e<h;e++)a.splice(d,3),r.splice(d,3),d+=2;return d+1});class i{constructor(e){this.queue=e}_optimize(){}push(e,t){this.queue.fnArray.push(e),this.queue.argsArray.push(t),this._optimize()}flush(){}reset(){}}class n extends i{constructor(e){super(e),this.state=null,this.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray,isOffscreenCanvasSupported:!1},this.match=null,this.lastProcessed=0}set isOffscreenCanvasSupported(e){this.context.isOffscreenCanvasSupported=e}_optimize(){var e=this.queue.fnArray;let t=this.lastProcessed,a=e.length,r=this.state,i=this.match;if(r||i||t+1!==a||s[e[t]]){for(var n=this.context;t<a;){if(i){if((0,i.iterateFn)(n,t)){t++;continue}if(t=(0,i.processFn)(n,t+1),a=e.length,i=null,r=null,t>=a)break}(r=(r||s)[e[t]])&&!Array.isArray(r)?(n.iCurr=t,t++,r=((!r.checkFn||(0,r.checkFn)(n))&&(i=r),null)):t++}this.state=r,this.match=i,this.lastProcessed=t}else this.lastProcessed=a}flush(){for(;this.match;){var e=this.queue.fnArray.length;this.lastProcessed=(0,this.match.processFn)(this.context,e),this.match=null,this.state=null,this._optimize()}}reset(){this.state=null,this.match=null,this.lastProcessed=0}}class o{static CHUNK_SIZE=1e3;static CHUNK_SIZE_ABOUT=this.CHUNK_SIZE-5;constructor(e=0,t){this._streamSink=t,this.fnArray=[],this.argsArray=[],this.optimizer=new(!t||e&y.RenderingIntentFlag.OPLIST?i:n)(this),this.dependencies=new Set,this._totalLength=0,this.weight=0,this._resolved=t?null:Promise.resolve()}set isOffscreenCanvasSupported(e){this.optimizer.isOffscreenCanvasSupported=e}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}get totalLength(){return this._totalLength+this.length}addOp(e,t){this.optimizer.push(e,t),this.weight++,this._streamSink&&(this.weight>=o.CHUNK_SIZE||this.weight>=o.CHUNK_SIZE_ABOUT&&(e===y.OPS.restore||e===y.OPS.endText))&&this.flush()}addImageOps(e,t,a){void 0!==a&&this.addOp(y.OPS.beginMarkedContentProps,["OC",a]),this.addOp(e,t),void 0!==a&&this.addOp(y.OPS.endMarkedContent,[])}addDependency(e){this.dependencies.has(e)||(this.dependencies.add(e),this.addOp(y.OPS.dependency,[e]))}addDependencies(e){for(const t of e)this.addDependency(t)}addOpList(a){if(a instanceof o){for(const e of a.dependencies)this.dependencies.add(e);for(let e=0,t=a.length;e<t;e++)this.addOp(a.fnArray[e],a.argsArray[e])}else(0,y.warn)('addOpList - ignoring invalid "opList" parameter.')}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){const t=[],{argsArray:a,length:r}=this;for(let e=0;e<r;e++)switch(i[e]){case y.OPS.paintInlineImageXObject:case y.OPS.paintInlineImageXObjectGroup:case y.OPS.paintImageMaskXObject:const i=a[e][0];!i.cached&&i.data?.buffer instanceof ArrayBuffer&&t.push(i.data.buffer)}return t}flush(e=!1,t=null){this.optimizer.flush();var a=this.length;this._totalLength+=a,this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:a},1,this._transfers),this.dependencies.clear(),this.fnArray.length=0,this.argsArray.length=0,this.weight=0,this.optimizer.reset()}}t.OperatorList=o},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFImage=void 0;var w=a(2),l=a(28),p=a(5),m=a(12),s=a(18),v=a(62),x=a(26),b=a(30),y=a(4);function f(e,t,a,r,i,n){var s=i*n,o=new(t<=8?Uint8Array:t<=16?Uint16Array:Uint32Array)(s),l=a/i,c=r/n;let h,u,d,f,g=0;var p=new Uint16Array(i),m=a;for(h=0;h<i;h++)p[h]=Math.floor(h*l);for(h=0;h<n;h++)for(d=Math.floor(h*c)*m,u=0;u<i;u++)f=d+p[u],o[g++]=e[f];return o}t.PDFImage=class S{constructor({xref:a,res:r,image:t,isInline:i=!1,smask:e=null,mask:n=null,isMask:s=!1,pdfFunctionFactory:o,localColorSpaceCache:l}){var c=(this.image=t).dict,h=c.get("F","Filter");let u;if(h instanceof y.Name)u=h.name;else if(Array.isArray(h)){const r=a.fetchIfRef(h[0]);r instanceof y.Name&&(u=r.name)}switch(u){case"JPXDecode":const a=new b.JpxImage;a.parseImageProperties(t.stream),t.stream.reset(),t.width=a.width,t.height=a.height,t.bitsPerComponent=a.bitsPerComponent,t.numComps=a.componentsCount;break;case"JBIG2Decode":t.bitsPerComponent=1,t.numComps=1}let d=c.get("W","Width"),f=c.get("H","Height");if(Number.isInteger(t.width)&&0<t.width&&Number.isInteger(t.height)&&0<t.height&&(t.width!==d||t.height!==f)&&((0,w.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary."),d=t.width,f=t.height),d<1||f<1)throw new w.FormatError(`Invalid image width: ${d} or height: `+f);this.width=d,this.height=f,this.interpolate=c.get("I","Interpolate"),this.imageMask=c.get("IM","ImageMask")||!1,this.matte=c.get("Matte")||!1;let g=t.bitsPerComponent;if(!g&&!(g=c.get("BPC","BitsPerComponent"))){if(!this.imageMask)throw new w.FormatError("Bits per component missing in image: "+this.imageMask);g=1}if(this.bpc=g,!this.imageMask){let e=c.getRaw("CS")||c.getRaw("ColorSpace");if(!e)switch((0,w.info)("JPX images (which do not require color spaces)"),t.numComps){case 1:e=y.Name.get("DeviceGray");break;case 3:e=y.Name.get("DeviceRGB");break;case 4:e=y.Name.get("DeviceCMYK");break;default:throw new Error(`JPX images with ${t.numComps} color components not supported.`)}this.colorSpace=m.ColorSpace.parse({cs:e,xref:a,resources:i?r:null,pdfFunctionFactory:o,localColorSpaceCache:l}),this.numComps=this.colorSpace.numComps}if(this.decode=c.getArray("D","Decode"),this.needsDecode=!1,this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,g)||s&&!m.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;const a=(1<<g)-1,r=(this.decodeCoefficients=[],this.decodeAddends=[],"Indexed"===this.colorSpace?.name);for(let e=0,t=0;e<this.decode.length;e+=2,++t){const i=this.decode[e],p=this.decode[e+1];this.decodeCoefficients[t]=r?(p-i)/a:p-i,this.decodeAddends[t]=r?i:a*i}}e?this.smask=new S({xref:a,res:r,image:e,isInline:i,pdfFunctionFactory:o,localColorSpaceCache:l}):n&&(n instanceof p.BaseStream?n.dict.get("IM","ImageMask")?this.mask=new S({xref:a,res:r,image:n,isInline:i,isMask:!0,pdfFunctionFactory:o,localColorSpaceCache:l}):(0,w.warn)("Ignoring /Mask in image without /ImageMask."):this.mask=n)}static async buildImage({xref:e,res:t,image:a,isInline:r=!1,pdfFunctionFactory:i,localColorSpaceCache:n}){var s=a;let o=null,l=null;var c=a.dict.get("SMask"),a=a.dict.get("Mask");return c?c instanceof p.BaseStream?o=c:(0,w.warn)("Unsupported /SMask format."):a&&(a instanceof p.BaseStream||Array.isArray(a)?l=a:(0,w.warn)("Unsupported /Mask format.")),new S({xref:e,res:t,image:s,isInline:r,smask:o,mask:l,pdfFunctionFactory:i,localColorSpaceCache:n})}static createRawMask({imgArray:e,width:t,height:a,imageIsFromDecodeStream:r,inverseDecode:i,interpolate:n}){var s=(t+7>>3)*a,o=e.byteLength;let l,c;if(!r||i&&s!==o?i?((l=new Uint8Array(s)).set(e),l.fill(255,o)):l=new Uint8Array(e):l=e,i)for(c=0;c<o;c++)l[c]^=255;return{data:l,width:t,height:a,interpolate:n}}static async createMask({imgArray:e,width:t,height:a,imageIsFromDecodeStream:r,inverseDecode:i,interpolate:n,isOffscreenCanvasSupported:s=!1}){const o=1===t&&1===a&&i===(0===e.length||!!(128&e[0]));if(o)return{isSingleOpaquePixel:o};if(s){if(v.ImageResizer.needsToBeResized(t,a)){const r=new Uint8ClampedArray(t*a*4);return(0,l.convertBlackAndWhiteToRGBA)({src:e,dest:r,width:t,height:a,nonBlackColor:0,inverseDecode:i}),v.ImageResizer.createImage({kind:w.ImageKind.RGBA_32BPP,data:r,width:t,height:a,interpolate:n})}const r=new OffscreenCanvas(t,a),s=r.getContext("2d"),o=s.createImageData(t,a);return(0,l.convertBlackAndWhiteToRGBA)({src:e,dest:o.data,width:t,height:a,nonBlackColor:0,inverseDecode:i}),s.putImageData(o,0,0),{data:null,width:t,height:a,interpolate:n,bitmap:r.transferToImageBitmap()}}return this.createRawMask({imgArray:e,width:t,height:a,inverseDecode:i,imageIsFromDecodeStream:r,interpolate:n})}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(a){var r,i,n,s,e=this.bpc,o=this.numComps,l=this.decodeAddends,c=this.decodeCoefficients,h=(1<<e)-1;let u,d;if(1===e)for(u=0,d=a.length;u<d;u++)a[u]=+!a[u];else{let t=0;for(u=0,d=this.width*this.height;u<d;u++)for(let e=0;e<o;e++)a[t]=(r=a[t],i=l[e],n=c[e],s=h,(r=i+r*n)<0?r=0:s<r&&(r=s),r),t++}}getComponents(i){var a=this.bpc;if(8===a)return i;const e=this.width,n=this.height,t=this.numComps,r=e*n*t;let s,o=0;s=new(a<=8?Uint8Array:a<=16?Uint16Array:Uint32Array)(r);var l=e*t,c=(1<<a)-1;let h,u,d=0;if(1===a){let t,a,r;for(let e=0;e<n;e++){for(a=d+(-8&l),r=d+l;d<a;)u=i[o++],s[d]=u>>7&1,s[d+1]=u>>6&1,s[d+2]=u>>5&1,s[d+3]=u>>4&1,s[d+4]=u>>3&1,s[d+5]=u>>2&1,s[d+6]=u>>1&1,s[d+7]=1&u,d+=8;if(d<r)for(u=i[o++],t=128;d<r;)s[d++]=+!!(u&t),t>>=1}}else{let t=0;for(u=0,d=0,h=r;d<h;++d){for(d%l==0&&(u=0,t=0);t<a;)u=u<<8|i[o++],t+=8;const n=t-a;let e=u>>n;e<0?e=0:e>c&&(e=c),s[d]=e,u&=(1<<n)-1,t=n}}return s}fillOpacity(t,e,a,r,i){var n=this.smask,s=this.mask;let o,l,c,h,u,d;if(n)l=n.width,c=n.height,o=new Uint8ClampedArray(l*c),n.fillGrayBuffer(o),l===e&&c===a||(o=f(o,n.bpc,l,c,e,a));else if(s)if(s instanceof S){for(l=s.width,c=s.height,o=new Uint8ClampedArray(l*c),s.numComps=1,s.fillGrayBuffer(o),h=0,u=l*c;h<u;++h)o[h]=255-o[h];l===e&&c===a||(o=f(o,s.bpc,l,c,e,a))}else{if(!Array.isArray(s))throw new w.FormatError("Unknown mask format.");{o=new Uint8ClampedArray(e*a);const t=this.numComps;for(h=0,u=e*a;h<u;++h){let e=0;const a=h*t;for(d=0;d<t;++d){const t=i[a+d],w=2*d;if(t<s[w]||t>s[1+w]){e=255;break}}o[h]=e}}}if(o)for(h=0,d=3,u=e*r;h<u;++h,d+=4)t[d]=o[h];else for(h=0,d=3,u=e*r;h<u;++h,d+=4)t[d]=255}undoPreblend(t,e,a){const r=this.smask?.matte;if(r){var i=this.colorSpace.getRgb(r,0),n=i[0],s=i[1],o=i[2],l=e*a*4;for(let e=0;e<l;e+=4){const a=t[e+3];if(0===a)t[e]=255,t[e+1]=255,t[e+2]=255;else{const r=255/a;t[e]=(t[e]-n)*r+n,t[e+1]=(t[e+1]-s)*r+s,t[e+2]=(t[e+2]-o)*r+o}}}}async createImageData(e=!1,a=!1){const r=this.drawWidth,i=this.drawHeight,n={width:r,height:i,interpolate:this.interpolate,kind:0,data:null},t=this.numComps,s=this.width,o=this.height,l=this.bpc,c=s*t*l+7>>3,h=a&&v.ImageResizer.needsToBeResized(r,i);if(!e){let e;if("DeviceGray"===this.colorSpace.name&&1===l?e=w.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==l||this.needsDecode||(e=w.ImageKind.RGB_24BPP),e&&!this.smask&&!this.mask&&r===s&&i===o){const t=this.getImageBytes(o*c,{});if(a)return h?v.ImageResizer.createImage({data:t,kind:e,width:r,height:i,interpolate:this.interpolate},this.needsDecode):this.createBitmap(e,s,o,t);if(n.kind=e,n.data=t,this.needsDecode){(0,w.assert)(e===w.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");const a=n.data;for(let e=0,t=a.length;e<t;e++)a[e]^=255}return n}if(this.image instanceof x.JpegStream&&!this.smask&&!this.mask&&!this.needsDecode){let t=o*c;if(a&&!h){let e=!1;switch(this.colorSpace.name){case"DeviceGray":t*=4,e=!0;break;case"DeviceRGB":t=t/3*4,e=!0;break;case"DeviceCMYK":e=!0}if(e){const a=this.getImageBytes(t,{drawWidth:r,drawHeight:i,forceRGBA:!0});return this.createBitmap(w.ImageKind.RGBA_32BPP,r,i,a)}}else switch(this.colorSpace.name){case"DeviceGray":t*=3;case"DeviceRGB":case"DeviceCMYK":return n.kind=w.ImageKind.RGB_24BPP,n.data=this.getImageBytes(t,{drawWidth:r,drawHeight:i,forceRGB:!0}),h?v.ImageResizer.createImage(n):n}}}var u=0|(d=this.getImageBytes(o*c,{internal:!0})).length/c*i/o,d=this.getComponents(d);let f,g,p,m,b,y;return a&&!h&&(p=new OffscreenCanvas(r,i),m=p.getContext("2d"),b=m.createImageData(r,i),y=b.data),n.kind=w.ImageKind.RGBA_32BPP,e||this.smask||this.mask?(a&&!h||(y=new Uint8ClampedArray(r*i*4)),f=1,g=!0,this.fillOpacity(y,r,i,u,d)):(f=!a||h?(n.kind=w.ImageKind.RGB_24BPP,y=new Uint8ClampedArray(r*i*3),0):(new Uint32Array(y.buffer).fill(w.FeatureTest.isLittleEndian?4278190080:255),1),g=!1),this.needsDecode&&this.decodeBuffer(d),this.colorSpace.fillRgb(y,s,o,r,i,u,l,d,f),g&&this.undoPreblend(y,r,u),a&&!h?(m.putImageData(b,0,0),{data:null,width:r,height:i,bitmap:p.transferToImageBitmap(),interpolate:this.interpolate}):(n.data=y,h?v.ImageResizer.createImage(n):n)}fillGrayBuffer(e){if(1!==(i=this.numComps))throw new w.FormatError("Reading gray scale from a color image: "+i);var t=this.width,a=this.height,r=this.bpc,i=this.getImageBytes(a*(t*i*r+7>>3),{internal:!0}),n=this.getComponents(i);let s,o;if(1===r)if(o=t*a,this.needsDecode)for(s=0;s<o;++s)e[s]=n[s]-1&255;else for(s=0;s<o;++s)e[s]=255&-n[s];else{this.needsDecode&&this.decodeBuffer(n),o=t*a;var l=255/((1<<r)-1);for(s=0;s<o;++s)e[s]=l*n[s]}}createBitmap(e,t,a,r){var i=new OffscreenCanvas(t,a),n=i.getContext("2d");let s;return e===w.ImageKind.RGBA_32BPP?s=new ImageData(r,t,a):(s=n.createImageData(t,a),(0,l.convertToRGBA)({kind:e,src:r,dest:new Uint32Array(s.data.buffer),width:t,height:a,inverseDecode:this.needsDecode})),n.putImageData(s,0,0),{data:null,width:t,height:a,bitmap:i.transferToImageBitmap(),interpolate:this.interpolate}}getImageBytes(e,{drawWidth:t,drawHeight:a,forceRGBA:r=!1,forceRGB:i=!1,internal:n=!1}){return this.image.reset(),this.image.drawWidth=t||this.width,this.image.drawHeight=a||this.height,this.image.forceRGBA=!!r,this.image.forceRGB=!!i,t=this.image.getBytes(e),n||this.image instanceof s.DecodeStream?t:((0,w.assert)(t instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.'),new Uint8Array(t))}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Catalog=void 0;var m=a(3),b=a(2),y=a(4),c=a(67),w=a(5),r=a(68),d=a(12),n=a(69),i=a(59),s=a(70),o=a(72);function l(e){return e instanceof y.Dict&&(e=e.get("D")),Array.isArray(e)?e:null}class f{constructor(e,t){if(this.pdfManager=e,this.xref=t,this._catDict=t.getCatalogObj(),!(this._catDict instanceof y.Dict))throw new b.FormatError("Catalog object is not a dictionary.");this.toplevelPagesDict,this._actualNumPages=null,this.fontCache=new y.RefSetCache,this.builtInCMapCache=new Map,this.standardFontDataCache=new Map,this.globalImageCache=new i.GlobalImageCache,this.pageKidsCountCache=new y.RefSetCache,this.pageIndexCache=new y.RefSetCache,this.nonBlendModesSet=new y.RefSet,this.systemFontCache=new Map}cloneDict(){return this._catDict.clone()}get version(){var e=this._catDict.get("Version");if(e instanceof y.Name){if(m.PDF_VERSION_REGEXP.test(e.name))return(0,b.shadow)(this,"version",e.name);(0,b.warn)("Invalid PDF catalog version: "+e.name)}return(0,b.shadow)(this,"version",null)}get lang(){var e=this._catDict.get("Lang");return(0,b.shadow)(this,"lang","string"==typeof e?(0,b.stringToPDFString)(e):null)}get needsRendering(){var e=this._catDict.get("NeedsRendering");return(0,b.shadow)(this,"needsRendering","boolean"==typeof e&&e)}get collection(){let e=null;try{var t=this._catDict.get("Collection");t instanceof y.Dict&&0<t.size&&(e=t)}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,b.shadow)(this,"collection",e)}get acroForm(){let e=null;try{var t=this._catDict.get("AcroForm");t instanceof y.Dict&&0<t.size&&(e=t)}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,b.shadow)(this,"acroForm",e)}get acroFormRef(){var e=this._catDict.getRaw("AcroForm");return(0,b.shadow)(this,"acroFormRef",e instanceof y.Ref?e:null)}get metadata(){const e=this._catDict.getRaw("Metadata");if(!(e instanceof y.Ref))return(0,b.shadow)(this,"metadata",null);let t=null;try{var a=this.xref.fetch(e,!this.xref.encrypt?.encryptMetadata);if(a instanceof w.BaseStream&&a.dict instanceof y.Dict){const e=a.dict.get("Type"),m=a.dict.get("Subtype");if((0,y.isName)(e,"Metadata")&&(0,y.isName)(m,"XML")){const e=(0,b.stringToUTF8String)(a.getString());e&&(t=new s.MetadataParser(e).serializable)}}}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.info)(`Skipping invalid Metadata: "${e}".`)}return(0,b.shadow)(this,"metadata",t)}get markInfo(){let e=null;try{e=this._readMarkInfo()}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.warn)("Unable to read mark info.")}return(0,b.shadow)(this,"markInfo",e)}_readMarkInfo(){var e=this._catDict.get("MarkInfo");if(!(e instanceof y.Dict))return null;var t={Marked:!1,UserProperties:!1,Suspects:!1};for(const r in t){var a=e.get(r);"boolean"==typeof a&&(t[r]=a)}return t}get structTreeRoot(){let e=null;try{e=this._readStructTreeRoot()}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.warn)("Unable read to structTreeRoot info.")}return(0,b.shadow)(this,"structTreeRoot",e)}_readStructTreeRoot(){var e=this._catDict.getRaw("StructTreeRoot"),t=this.xref.fetchIfRef(e);return t instanceof y.Dict?((t=new o.StructTreeRoot(t,e)).init(),t):null}get toplevelPagesDict(){var e=this._catDict.get("Pages");if(e instanceof y.Dict)return(0,b.shadow)(this,"toplevelPagesDict",e);throw new b.FormatError("Invalid top-level pages dictionary.")}get documentOutline(){let e=null;try{e=this._readDocumentOutline()}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.warn)("Unable to read document outline.")}return(0,b.shadow)(this,"documentOutline",e)}_readDocumentOutline(){let t=this._catDict.get("Outlines");if(!(t instanceof y.Dict))return null;if(!((t=t.getRaw("First"))instanceof y.Ref))return null;const a={items:[]},r=[{obj:t,parent:a}],i=new y.RefSet;i.put(t);for(var e=this.xref,n=new Uint8ClampedArray(3);0<r.length;){const a=r.shift(),u=e.fetchIfRef(a.obj);if(null!==u){if(!u.has("Title"))throw new b.FormatError("Invalid outline item encountered.");var s={url:null,dest:null,action:null},o=(f.parseDestDictionary({destDict:u,resultObj:s,docBaseUrl:this.baseUrl,docAttachments:this.attachments}),u.get("Title")),l=u.get("F")||0,c=u.getArray("C"),h=u.get("Count");let e=n;!Array.isArray(c)||3!==c.length||0===c[0]&&0===c[1]&&0===c[2]||(e=d.ColorSpace.singletons.rgb.getRgb(c,0));c={action:s.action,attachment:s.attachment,dest:s.dest,url:s.url,unsafeUrl:s.unsafeUrl,newWindow:s.newWindow,setOCGState:s.setOCGState,title:(0,b.stringToPDFString)(o),color:e,count:Number.isInteger(h)?h:void 0,bold:!!(2&l),italic:!!(1&l),items:[]};a.parent.items.push(c),(t=u.getRaw("First"))instanceof y.Ref&&!i.has(t)&&(r.push({obj:t,parent:c}),i.put(t)),(t=u.getRaw("Next"))instanceof y.Ref&&!i.has(t)&&(r.push({obj:t,parent:a.parent}),i.put(t))}}return 0<a.items.length?a.items:null}get permissions(){let e=null;try{e=this._readPermissions()}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.warn)("Unable to read permissions.")}return(0,b.shadow)(this,"permissions",e)}_readPermissions(){const e=this.xref.trailer.get("Encrypt");if(!(e instanceof y.Dict))return null;var t=e.get("P");if("number"!=typeof t)return null;t+=2**32;var a=[];for(const e in b.PermissionFlag){var r=b.PermissionFlag[e];t&r&&a.push(r)}return a}get optionalContentConfig(){let e=null;try{var t=this._catDict.get("OCProperties");if(!t)return(0,b.shadow)(this,"optionalContentConfig",null);var a=t.get("D");if(!a)return(0,b.shadow)(this,"optionalContentConfig",null);const m=t.get("OCGs");if(!Array.isArray(m))return(0,b.shadow)(this,"optionalContentConfig",null);var r,i=[],n=[];for(const e of m)e instanceof y.Ref&&(n.push(e),r=this.xref.fetchIfRef(e),i.push({id:e.toString(),name:"string"==typeof r.get("Name")?(0,b.stringToPDFString)(r.get("Name")):null,intent:"string"==typeof r.get("Intent")?(0,b.stringToPDFString)(r.get("Intent")):null}));(e=this._readOptionalContentConfig(a,n)).groups=i}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.warn)("Unable to read optional content config: "+e)}return(0,b.shadow)(this,"optionalContentConfig",e)}_readOptionalContentConfig(e,i){function t(e){var t=[];if(Array.isArray(e))for(const a of e)a instanceof y.Ref&&i.includes(a)&&t.push(a.toString());return t}function n(e,t=0){if(!Array.isArray(e))return null;var a=[];for(const r of e)if(r instanceof y.Ref&&i.includes(r))o.put(r),a.push(r.toString());else{const e=function(e,t){if(++t>l)return(0,b.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS."),null;e=s.fetchIfRef(e);if(!Array.isArray(e))return null;var a=s.fetchIfRef(e[0]);if("string"!=typeof a)return null;e=n(e.slice(1),t);return e&&e.length?{name:(0,b.stringToPDFString)(a),order:e}:null}(r,t);e&&a.push(e)}if(!(0<t)){const r=[];for(const e of i)o.has(e)||r.push(e.toString());r.length&&a.push({name:null,order:r})}return a}const s=this.xref,o=new y.RefSet,l=10;return{name:"string"==typeof e.get("Name")?(0,b.stringToPDFString)(e.get("Name")):null,creator:"string"==typeof e.get("Creator")?(0,b.stringToPDFString)(e.get("Creator")):null,baseState:e.get("BaseState")instanceof y.Name?e.get("BaseState").name:null,on:t(e.get("ON")),off:t(e.get("OFF")),order:n(e.get("Order")),groups:null}}setActualNumPages(e=null){this._actualNumPages=e}get hasActualNumPages(){return null!==this._actualNumPages}get _pagesCount(){var e=this.toplevelPagesDict.get("Count");if(Number.isInteger(e))return(0,b.shadow)(this,"_pagesCount",e);throw new b.FormatError("Page count in top-level pages dictionary is not an integer.")}get numPages(){return this.hasActualNumPages?this._actualNumPages:this._pagesCount}get destinations(){const e=this._readDests(),a=Object.create(null);if(e instanceof c.NameTree)for(var[t,r]of e.getAll()){const e=l(r);e&&(a[(0,b.stringToPDFString)(t)]=e)}else e instanceof y.Dict&&e.forEach(function(e,t){t=l(t);t&&(a[e]=t)});return(0,b.shadow)(this,"destinations",a)}getDestination(e){var t=this._readDests();if(t instanceof c.NameTree){var a=l(t.get(e));if(a)return a;a=this.destinations[e];if(a)return(0,b.warn)(`Found "${e}" at an incorrect position in the NameTree.`),a}else if(t instanceof y.Dict){a=l(t.get(e));if(a)return a}return null}_readDests(){var e=this._catDict.get("Names");return e?.has("Dests")?new c.NameTree(e.getRaw("Dests"),this.xref):this._catDict.has("Dests")?this._catDict.get("Dests"):void 0}get pageLabels(){let e=null;try{e=this._readPageLabels()}catch(e){if(e instanceof m.MissingDataException)throw e;(0,b.warn)("Unable to read page labels.")}return(0,b.shadow)(this,"pageLabels",e)}_readPageLabels(){const a=this._catDict.getRaw("PageLabels");if(!a)return null;const r=new Array(this.numPages);let i=null,n="";var s=new c.NumberTree(a,this.xref).getAll();let o="",l=1;for(let e=0,t=this.numPages;e<t;e++){const c=s.get(e);if(void 0!==c){if(!(c instanceof y.Dict))throw new b.FormatError("PageLabel is not a dictionary.");if(c.has("Type")&&!(0,y.isName)(c.get("Type"),"PageLabel"))throw new b.FormatError("Invalid type in PageLabel dictionary.");if(c.has("S")){const a=c.get("S");if(!(a instanceof y.Name))throw new b.FormatError("Invalid style in PageLabel dictionary.");i=a.name}else i=null;if(c.has("P")){const a=c.get("P");if("string"!=typeof a)throw new b.FormatError("Invalid prefix in PageLabel dictionary.");n=(0,b.stringToPDFString)(a)}else n="";if(c.has("St")){const a=c.get("St");if(!(Number.isInteger(a)&&1<=a))throw new b.FormatError("Invalid start in PageLabel dictionary.");l=a}else l=1}switch(i){case"D":o=l;break;case"R":case"r":o=(0,m.toRomanNumerals)(l,"r"===i);break;case"A":case"a":const a=26,r="a"===i?97:65,y=l-1;o=String.fromCharCode(r+y%26).repeat(Math.floor(y/26)+1);break;default:if(i)throw new b.FormatError(`Invalid style "${i}" in PageLabel dictionary.`);o=""}r[e]=n+o,l++}return r}get pageLayout(){var e=this._catDict.get("PageLayout");let t="";if(e instanceof y.Name)switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,b.shadow)(this,"pageLayout",t)}get pageMode(){var e=this._catDict.get("PageMode");let t="UseNone";if(e instanceof y.Name)switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,b.shadow)(this,"pageMode",t)}get viewerPreferences(){var t=this._catDict.get("ViewerPreferences");if(!(t instanceof y.Dict))return(0,b.shadow)(this,"viewerPreferences",null);let a=null;for(const i of t.getKeys()){var r=t.get(i);let e;switch(i){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"==typeof r&&(e=r);break;case"NonFullScreenPageMode":if(r instanceof y.Name)switch(r.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":e=r.name;break;default:e="UseNone"}break;case"Direction":if(r instanceof y.Name)switch(r.name){case"L2R":case"R2L":e=r.name;break;default:e="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(r instanceof y.Name)switch(r.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":e=r.name;break;default:e="CropBox"}break;case"PrintScaling":if(r instanceof y.Name)switch(r.name){case"None":case"AppDefault":e=r.name;break;default:e="AppDefault"}break;case"Duplex":if(r instanceof y.Name)switch(r.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":e=r.name;break;default:e="None"}break;case"PrintPageRange":Array.isArray(r)&&r.length%2==0&&r.every((e,t,a)=>Number.isInteger(e)&&0<e&&(0===t||e>=a[t-1])&&e<=this.numPages)&&(e=r);break;case"NumCopies":Number.isInteger(r)&&0<r&&(e=r);break;default:(0,b.warn)(`Ignoring non-standard key in ViewerPreferences: ${i}.`);continue}void 0!==e?(a=a||Object.create(null))[i]=e:(0,b.warn)(`Bad value, for key "${i}", in ViewerPreferences: ${r}.`)}return(0,b.shadow)(this,"viewerPreferences",a)}get openAction(){var e,t,a=this._catDict.get("OpenAction"),r=Object.create(null);return a instanceof y.Dict?((e=new y.Dict(this.xref)).set("A",a),t={url:null,dest:null,action:null},f.parseDestDictionary({destDict:e,resultObj:t}),Array.isArray(t.dest)?r.dest=t.dest:t.action&&(r.action=t.action)):Array.isArray(a)&&(r.dest=a),(0,b.shadow)(this,"openAction",0<(0,b.objectSize)(r)?r:null)}get attachments(){const e=this._catDict.get("Names");let t=null;if(e instanceof y.Dict&&e.has("EmbeddedFiles")){var a=new c.NameTree(e.getRaw("EmbeddedFiles"),this.xref);for(const[e,i]of a.getAll()){var r=new n.FileSpec(i,this.xref);(t=t||Object.create(null))[(0,b.stringToPDFString)(e)]=r.serializable}}return(0,b.shadow)(this,"attachments",t)}get xfaImages(){const e=this._catDict.get("Names");let t=null;if(e instanceof y.Dict&&e.has("XFAImages")){var a=new c.NameTree(e.getRaw("XFAImages"),this.xref);for(const[e,r]of a.getAll())t=t||new y.Dict(this.xref),t.set((0,b.stringToPDFString)(e),r)}return(0,b.shadow)(this,"xfaImages",t)}_collectJavaScript(){const e=this._catDict.get("Names");let r=null;function t(t,a){if(a instanceof y.Dict&&(0,y.isName)(a.get("S"),"JavaScript")){let e=a.get("JS");if(e instanceof w.BaseStream)e=e.getString();else if("string"!=typeof e)return;(e=(0,b.stringToPDFString)(e).replaceAll("\0",""))&&(r||=new Map).set(t,e)}}if(e instanceof y.Dict&&e.has("JavaScript")){const r=new c.NameTree(e.getRaw("JavaScript"),this.xref);for(const[e,a]of r.getAll())t((0,b.stringToPDFString)(e),a)}const a=this._catDict.get("OpenAction");return a&&t("OpenAction",a),r}get jsActions(){var e=this._collectJavaScript();let t=(0,m.collectActions)(this.xref,this._catDict,b.DocumentActionEventType);if(e){t||=Object.create(null);for(const[a,m]of e)a in t?t[a].push(m):t[a]=[m]}return(0,b.shadow)(this,"jsActions",t)}async fontFallback(e,t){for(const a of await Promise.all(this.fontCache))if(a.loadedName===e)return void a.fallback(t)}async cleanup(e=!1){(0,r.clearGlobalCaches)(),this.globalImageCache.clear(e),this.pageKidsCountCache.clear(),this.pageIndexCache.clear(),this.nonBlendModesSet.clear();for(const{dict:e}of await Promise.all(this.fontCache))delete e.cacheKey;this.fontCache.clear(),this.builtInCMapCache.clear(),this.standardFontDataCache.clear(),this.systemFontCache.clear()}async getPageDict(a){const r=[this.toplevelPagesDict],e=new y.RefSet,i=this._catDict.getRaw("Pages");i instanceof y.Ref&&e.put(i);var n=this.xref,t=this.pageKidsCountCache,s=this.pageIndexCache;let o=0;for(;r.length;){const i=r.pop();if(i instanceof y.Ref){var l=t.get(i);if(0<=l&&o+l<=a)o+=l;else{if(e.has(i))throw new b.FormatError("Pages tree contains circular reference.");e.put(i);l=await n.fetchAsync(i);if(l instanceof y.Dict){let e=l.getRaw("Type");if(e instanceof y.Ref&&(e=await n.fetchAsync(e)),(0,y.isName)(e,"Page")||!l.has("Kids")){if(t.has(i)||t.put(i,1),s.has(i)||s.put(i,o),o===a)return[l,i];o++;continue}}r.push(l)}}else{if(!(i instanceof y.Dict))throw new b.FormatError("Page dictionary kid reference points to wrong type of object.");l=i["objId"];let e=i.getRaw("Count");if(e instanceof y.Ref&&(e=await n.fetchAsync(e)),Number.isInteger(e)&&0<=e&&(l&&!t.has(l)&&t.put(l,e),o+e<=a))o+=e;else{let t=i.getRaw("Kids");if(t instanceof y.Ref&&(t=await n.fetchAsync(t)),Array.isArray(t))for(let e=t.length-1;0<=e;e--)r.push(t[e]);else{let e=i.getRaw("Type");if(e instanceof y.Ref&&(e=await n.fetchAsync(e)),!(0,y.isName)(e,"Page")&&i.has("Kids"))throw new b.FormatError("Page dictionary kids object is not an array.");if(o===a)return[i,null];o++}}}}throw new Error(`Page index ${a} not found.`)}async getAllPageDicts(r=!1){const t=this.pdfManager.evaluatorOptions["ignoreErrors"],i=[{currentNode:this.toplevelPagesDict,posInKids:0}],n=new y.RefSet,e=this._catDict.getRaw("Pages"),s=(e instanceof y.Ref&&n.put(e),new Map),o=this.xref,l=this.pageIndexCache;let c=0;function h(e){if(e instanceof m.XRefEntryException&&!r)throw e;r&&t&&0===c&&((0,b.warn)(`getAllPageDicts - Skipping invalid first page: "${e}".`),e=y.Dict.empty),s.set(c++,[e,null])}for(;0<i.length;){const r=i.at(-1),{currentNode:t,posInKids:m}=r;let a=t.getRaw("Kids");if(a instanceof y.Ref)try{a=await o.fetchAsync(a)}catch(r){h(r);break}if(!Array.isArray(a)){h(new b.FormatError("Page dictionary kids object is not an array."));break}if(m>=a.length)i.pop();else{var u=a[m];let e;if(u instanceof y.Ref){if(n.has(u)){h(new b.FormatError("Pages tree contains circular reference."));break}n.put(u);try{e=await o.fetchAsync(u)}catch(r){h(r);break}}else e=u;if(!(e instanceof y.Dict)){h(new b.FormatError("Page dictionary kid reference points to wrong type of object."));break}let t=e.getRaw("Type");if(t instanceof y.Ref)try{t=await o.fetchAsync(t)}catch(r){h(r);break}(0,y.isName)(t,"Page")||!e.has("Kids")?(d=e,(u=u instanceof y.Ref?u:null)&&!l.has(u)&&l.put(u,c),s.set(c++,[d,u])):i.push({currentNode:e,posInKids:0}),r.posInKids++}}var d;return s}getPageIndex(a){var e=this.pageIndexCache.get(a);if(void 0!==e)return Promise.resolve(e);const s=this.xref;let r=0;const i=e=>function(r){let i,n=0;return s.fetchAsync(r).then(function(e){if((0,y.isRefsEqual)(r,a)&&!(0,y.isDict)(e,"Page")&&!(e instanceof y.Dict&&!e.has("Type")&&e.has("Contents")))throw new b.FormatError("The reference does not point to a /Page dictionary.");if(!e)return null;if(e instanceof y.Dict)return i=e.getRaw("Parent"),e.getAsync("Parent");throw new b.FormatError("Node must be a dictionary.")}).then(function(e){if(!e)return null;if(e instanceof y.Dict)return e.getAsync("Kids");throw new b.FormatError("Parent must be a dictionary.")}).then(function(e){if(!e)return null;var t=[];let a=!1;for(const i of e){if(!(i instanceof y.Ref))throw new b.FormatError("Kid must be a reference.");if((0,y.isRefsEqual)(i,r)){a=!0;break}t.push(s.fetchAsync(i).then(function(e){if(!(e instanceof y.Dict))throw new b.FormatError("Kid node must be a dictionary.");e.has("Count")?n+=e.get("Count"):n++}))}if(a)return Promise.all(t).then(function(){return[n,i]});throw new b.FormatError("Kid reference not found in parent's kids.")})}(e).then(e=>{var t;return e?([e,t]=e,r+=e,i(t)):(this.pageIndexCache.put(a,r),r)});return i(a)}get baseUrl(){const e=this._catDict.get("URI");if(e instanceof y.Dict){var t=e.get("Base");if("string"==typeof t){const e=(0,b.createValidAbsoluteUrl)(t,null,{tryConvertEncoding:!0});if(e)return(0,b.shadow)(this,"baseUrl",e.href)}}return(0,b.shadow)(this,"baseUrl",this.pdfManager.docBaseUrl)}static parseDestDictionary({destDict:s,resultObj:o,docBaseUrl:l=null,docAttachments:c=null}){if(s instanceof y.Dict){let r,i,n=s.get("A");if(n instanceof y.Dict||(s.has("Dest")?n=s.get("Dest"):(n=s.get("AA"))instanceof y.Dict&&(n.has("D")?n=n.get("D"):n.has("U")&&(n=n.get("U")))),n instanceof y.Dict){const s=n.get("S");if(!(s instanceof y.Name))return void(0,b.warn)("parseDestDictionary: Invalid type in Action dictionary.");const l=s.name;switch(l){case"ResetForm":const s=n.get("Flags"),f=0==(1&("number"==typeof s?s:0)),g=[],p=[];for(const s of n.get("Fields")||[])s instanceof y.Ref?p.push(s.toString()):"string"==typeof s&&g.push((0,b.stringToPDFString)(s));o.resetForm={fields:g,refs:p,include:f};break;case"URI":(r=n.get("URI"))instanceof y.Name&&(r="/"+r.name);break;case"GoTo":i=n.get("D");break;case"Launch":case"GoToR":var h=n.get("F");h instanceof y.Dict?r=h.get("F")||null:"string"==typeof h&&(r=h);let e=n.get("D");if(e&&(e instanceof y.Name&&(e=e.name),"string"==typeof r)){const s=r.split("#")[0];"string"==typeof e?r=s+"#"+e:Array.isArray(e)&&(r=s+"#"+JSON.stringify(e))}h=n.get("NewWindow");"boolean"==typeof h&&(o.newWindow=h);break;case"GoToE":h=n.get("T");let t;if(c&&h instanceof y.Dict){const s=h.get("R"),o=h.get("N");(0,y.isName)(s,"C")&&"string"==typeof o&&(t=c[(0,b.stringToPDFString)(o)])}t?o.attachment=t:(0,b.warn)('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":h=n.get("N");h instanceof y.Name&&(o.action=h.name);break;case"SetOCGState":var h=n.get("State"),u=n.get("PreserveRB");if(Array.isArray(h)&&0!==h.length){var d=[];for(const s of h)if(s instanceof y.Name)switch(s.name){case"ON":case"OFF":case"Toggle":d.push(s.name)}else s instanceof y.Ref&&d.push(s.toString());d.length===h.length&&(o.setOCGState={state:d,preserveRB:"boolean"!=typeof u||u})}break;case"JavaScript":h=n.get("JS");let a;h instanceof w.BaseStream?a=h.getString():"string"==typeof h&&(a=h);u=a&&(0,m.recoverJsURL)((0,b.stringToPDFString)(a));if(u){r=u.url,o.newWindow=u.newWindow;break}default:"JavaScript"!==l&&"SubmitForm"!==l&&(0,b.warn)(`parseDestDictionary - unsupported action: "${l}".`)}}else s.has("Dest")&&(i=s.get("Dest"));if("string"==typeof r){const s=(0,b.createValidAbsoluteUrl)(r,l,{addDefaultProtocol:!0,tryConvertEncoding:!0});s&&(o.url=s.href),o.unsafeUrl=r}i&&("string"==typeof(i=i instanceof y.Name?i.name:i)?o.dest=(0,b.stringToPDFString)(i):Array.isArray(i)&&(o.dest=i))}else(0,b.warn)("parseDestDictionary: `destDict` must be a dictionary.")}}t.Catalog=f},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NumberTree=t.NameTree=void 0;var s=a(4),c=a(2);class r{constructor(e,t,a){this.constructor===r&&(0,c.unreachable)("Cannot initialize NameOrNumberTree."),this.root=e,this.xref=t,this._type=a}getAll(){const a=new Map;if(this.root){const i=this.xref,n=new s.RefSet;n.put(this.root);for(var e=[this.root];0<e.length;){var t=i.fetchIfRef(e.shift());if(t instanceof s.Dict)if(t.has("Kids")){const a=t.get("Kids");if(!Array.isArray(a))continue;for(const i of a){if(n.has(i))throw new c.FormatError(`Duplicate entry in "${this._type}" tree.`);e.push(i),n.put(i)}}else{var r=t.get(this._type);if(Array.isArray(r))for(let e=0,t=r.length;e<t;e+=2)a.set(i.fetchIfRef(r[e]),i.fetchIfRef(r[e+1]))}}}return a}get(i){if(this.root){var n=this.xref;let r=n.fetchIfRef(this.root),e=0;for(;r.has("Kids");){if(10<++e)return(0,c.warn)(`Search depth limit reached for "${this._type}" tree.`),null;const s=r.get("Kids");if(!Array.isArray(s))return null;let t=0,a=s.length-1;for(;t<=a;){const e=t+a>>1,c=n.fetchIfRef(s[e]),o=c.get("Limits");if(i<n.fetchIfRef(o[0]))a=e-1;else{if(!(i>n.fetchIfRef(o[1]))){r=c;break}t=1+e}}if(t>a)return null}const s=r.get(this._type);if(Array.isArray(s)){let e=0,t=s.length-2;for(;e<=t;){const c=e+t>>1,a=c+(1&c),l=n.fetchIfRef(s[a]);if(i<l)t=a-2;else{if(!(l<i))return n.fetchIfRef(s[1+a]);e=2+a}}}}return null}}t.NameTree=class extends r{constructor(e,t){super(e,t,"Names")}},t.NumberTree=class extends r{constructor(e,t){super(e,t,"Nums")}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clearGlobalCaches=function(){(0,r.clearPatternCaches)(),(0,i.clearPrimitiveCaches)(),(0,n.clearUnicodeCaches)()};var r=a(50),i=a(4),n=a(40)},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FileSpec=void 0;var r=a(2),i=a(5),n=a(4);function s(e){return e.has("UF")?e.get("UF"):e.has("F")?e.get("F"):e.has("Unix")?e.get("Unix"):e.has("Mac")?e.get("Mac"):e.has("DOS")?e.get("DOS"):null}t.FileSpec=class{constructor(e,t){e instanceof n.Dict&&(this.xref=t,(this.root=e).has("FS")&&(this.fs=e.get("FS")),this.description=e.has("Desc")?(0,r.stringToPDFString)(e.get("Desc")):"",e.has("RF")&&(0,r.warn)("Related file specifications are not supported"),this.contentAvailable=!0,e.has("EF")||(this.contentAvailable=!1,r.warn)("Non-embedded file specifications are not supported"))}get filename(){var e;return!this._filename&&this.root&&(e=s(this.root)||"unnamed",this._filename=(0,r.stringToPDFString)(e).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/")),this._filename}get content(){if(!this.contentAvailable)return null;!this.contentRef&&this.root&&(this.contentRef=s(this.root.get("EF")));let e=null;var t;return this.contentRef?(t=this.xref.fetchIfRef(this.contentRef))instanceof i.BaseStream?e=t.getBytes():(0,r.warn)("Embedded file specification points to non-existing/invalid content"):(0,r.warn)("Embedded file specification does not have a content"),e}get serializable(){return{filename:this.filename,content:this.content}}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataParser=void 0;var r=a(71);t.MetadataParser=class{constructor(e){e=this._repair(e);var t=new r.SimpleXMLParser({lowerCaseName:!0}).parseFromString(e);this._metadataMap=new Map,this._data=e,t&&this._parse(t)}_repair(e){return e.replace(/^[^<]+/,"").replaceAll(/>\\376\\377([^<]+)/g,function(e,a){var r=a.replaceAll(/\\([0-3])([0-7])([0-7])/g,function(e,t,a,r){return String.fromCharCode(64*t+8*a+ +r)}).replaceAll(/&(amp|apos|gt|lt|quot);/g,function(e,t){switch(t){case"amp":return"&";case"apos":return"'";case"gt":return">";case"lt":return"<";case"quot":return'"'}throw new Error(`_repair: ${t} isn't defined.`)}),i=[">"];for(let e=0,t=r.length;e<t;e+=2){const a=256*r.charCodeAt(e)+r.charCodeAt(e+1);32<=a&&a<127&&60!==a&&62!==a&&38!==a?i.push(String.fromCharCode(a)):i.push("&#x"+(65536+a).toString(16).substring(1)+";")}return i.join("")})}_getSequence(e){var t=e.nodeName;return"rdf:bag"!==t&&"rdf:seq"!==t&&"rdf:alt"!==t?null:e.childNodes.filter(e=>"rdf:li"===e.nodeName)}_parseArray(e){var t;e.hasChildNodes()&&([t]=e.childNodes,t=this._getSequence(t)||[],this._metadataMap.set(e.nodeName,t.map(e=>e.textContent.trim())))}_parse(e){let t=e.documentElement;if("rdf:rdf"!==t.nodeName)for(t=t.firstChild;t&&"rdf:rdf"!==t.nodeName;)t=t.nextSibling;if(t&&"rdf:rdf"===t.nodeName&&t.hasChildNodes())for(const e of t.childNodes)if("rdf:description"===e.nodeName)for(const t of e.childNodes){const e=t.nodeName;switch(e){case"#text":continue;case"dc:creator":case"dc:subject":this._parseArray(t);continue}this._metadataMap.set(e,t.textContent.trim())}}get serializable(){return{parsedData:this._metadataMap,rawData:this._data}}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XMLParserErrorCode=t.XMLParserBase=t.SimpleXMLParser=t.SimpleDOMNode=void 0;var r=a(3);const s={NoError:0,EndOfDocument:-1,UnterminatedCdat:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function o(e,t){e=e[t];return" "===e||"\n"===e||"\r"===e||"\t"===e}t.XMLParserErrorCode=s;class i{_resolveEntities(e){return e.replaceAll(/&([^;]+);/g,(e,t)=>{if("#x"===t.substring(0,2))return String.fromCodePoint(parseInt(t.substring(2),16));if("#"===t.substring(0,1))return String.fromCodePoint(parseInt(t.substring(1),10));switch(t){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(t)})}_parseContent(a,e){var r=[];let i=e;function n(){for(;i<a.length&&o(a,i);)++i}for(;i<a.length&&!o(a,i)&&">"!==a[i]&&"/"!==a[i];)++i;var t=a.substring(e,i);for(n();i<a.length&&">"!==a[i]&&"/"!==a[i]&&"?"!==a[i];){n();let e="",t;for(;i<a.length&&!o(a,i)&&"="!==a[i];)e+=a[i],++i;if(n(),"="!==a[i])return null;++i,n();var s=a[i];if('"'!==s&&"'"!==s)return null;s=a.indexOf(s,++i);if(s<0)return null;t=a.substring(i,s),r.push({name:e,value:this._resolveEntities(t)}),i=s+1,n()}return{name:t,attributes:r,parsed:i-e}}_parseProcessingInstruction(e,t){let a=t;for(;a<e.length&&!o(e,a)&&">"!==e[a]&&"?"!==e[a]&&"/"!==e[a];)++a;for(var r=e.substring(t,a);a<e.length&&o(e,a);)++a;for(var i=a;a<e.length&&("?"!==e[a]||">"!==e[a+1]);)++a;return{name:r,value:e.substring(i,a),parsed:a-t}}parseXml(r){let e=0;for(;e<r.length;){let a=e;if("<"===r[e]){let t;switch(r[++a]){case"/":if(++a,(t=r.indexOf(">",a))<0)return void this.onError(s.UnterminatedElement);this.onEndElement(r.substring(a,t)),a=t+1;break;case"?":++a;var i=this._parseProcessingInstruction(r,a);if("?>"!==r.substring(a+i.parsed,a+i.parsed+2))return void this.onError(s.UnterminatedXmlDeclaration);this.onPi(i.name,i.value),a+=i.parsed+2;break;case"!":if("--"===r.substring(a+1,a+3)){if((t=r.indexOf("--\x3e",a+3))<0)return void this.onError(s.UnterminatedComment);this.onComment(r.substring(a+3,t)),a=t+3}else if("[CDATA["===r.substring(a+1,a+8)){if((t=r.indexOf("]]>",a+8))<0)return void this.onError(s.UnterminatedCdat);this.onCdata(r.substring(a+8,t)),a=t+3}else{if("DOCTYPE"!==r.substring(a+1,a+8))return void this.onError(s.MalformedElement);{i=r.indexOf("[",a+8);let e=!1;if((t=r.indexOf(">",a+8))<0)return void this.onError(s.UnterminatedDoctypeDeclaration);if(0<i&&t>i){if((t=r.indexOf("]>",a+8))<0)return void this.onError(s.UnterminatedDoctypeDeclaration);e=!0}var n=r.substring(a+8,t+(e?1:0));this.onDoctype(n),a=t+(e?2:1)}}break;default:n=this._parseContent(r,a);if(null===n)return void this.onError(s.MalformedElement);let e=!1;if("/>"===r.substring(a+n.parsed,a+n.parsed+2))e=!0;else if(">"!==r.substring(a+n.parsed,a+n.parsed+1))return void this.onError(s.UnterminatedElement);this.onBeginElement(n.name,n.attributes,e),a+=n.parsed+(e?2:1)}}else{for(;a<r.length&&"<"!==r[a];)a++;var t=r.substring(e,a);this.onText(this._resolveEntities(t))}e=a}}onResolveEntity(e){return`&${e};`}onPi(e,t){}onComment(e){}onCdata(e){}onDoctype(e){}onText(e){}onBeginElement(e,t,a){}onEndElement(e){}onError(e){}}t.XMLParserBase=i;class n{constructor(e,t){this.nodeName=e,this.nodeValue=t,Object.defineProperty(this,"parentNode",{value:null,writable:!0})}get firstChild(){return this.childNodes?.[0]}get nextSibling(){var e,t=this.parentNode.childNodes;return t&&-1!==(e=t.indexOf(this))?t[e+1]:void 0}get textContent(){return this.childNodes?this.childNodes.map(function(e){return e.textContent}).join(""):this.nodeValue||""}get children(){return this.childNodes||[]}hasChildNodes(){return 0<this.childNodes?.length}searchNode(t,a){if(a>=t.length)return this;const r=t[a];if(r.name.startsWith("#")&&a<t.length-1)return this.searchNode(t,a+1);const i=[];let n=this;for(;;){if(r.name===n.nodeName){if(0!==r.pos){if(0===i.length)return null;{var[s]=i.pop();let e=0;for(const i of s.childNodes)if(r.name===i.nodeName){if(e===r.pos)return i.searchNode(t,a+1);e++}return n.searchNode(t,a+1)}}{const r=n.searchNode(t,a+1);if(null!==r)return r}}if(0<n.childNodes?.length)i.push([n,0]),n=n.childNodes[0];else{if(0===i.length)return null;for(;0!==i.length;){const[t,a]=i.pop(),r=a+1;if(r<t.childNodes.length){i.push([t,r]),n=t.childNodes[r];break}}if(0===i.length)return null}}}dump(e){if("#text"!==this.nodeName){if(e.push("<"+this.nodeName),this.attributes)for(const t of this.attributes)e.push(` ${t.name}="${(0,r.encodeToXmlString)(t.value)}"`);if(this.hasChildNodes()){e.push(">");for(const a of this.childNodes)a.dump(e);e.push(`</${this.nodeName}>`)}else this.nodeValue?e.push(`>${(0,r.encodeToXmlString)(this.nodeValue)}</${this.nodeName}>`):e.push("/>")}else e.push((0,r.encodeToXmlString)(this.nodeValue))}}t.SimpleDOMNode=n,t.SimpleXMLParser=class extends i{constructor({hasAttributes:e=!1,lowerCaseName:t=!1}){super(),this._currentFragment=null,this._stack=null,this._errorCode=s.NoError,this._hasAttributes=e,this._lowerCaseName=t}parseFromString(e){if(this._currentFragment=[],this._stack=[],this._errorCode=s.NoError,this.parseXml(e),this._errorCode===s.NoError)return[e]=this._currentFragment,e?{documentElement:e}:void 0}onText(e){!function(a){for(let e=0,t=a.length;e<t;e++)if(!o(a,e))return;return 1}(e)&&(e=new n("#text",e),this._currentFragment.push(e))}onCdata(e){e=new n("#text",e);this._currentFragment.push(e)}onBeginElement(e,t,a){this._lowerCaseName&&(e=e.toLowerCase());e=new n(e);e.childNodes=[],this._hasAttributes&&(e.attributes=t),this._currentFragment.push(e),a||(this._stack.push(this._currentFragment),this._currentFragment=e.childNodes)}onEndElement(e){this._currentFragment=this._stack.pop()||[];var t=this._currentFragment.at(-1);if(!t)return null;for(const e of t.childNodes)e.parentNode=t;return t}onError(e){this._errorCode=e}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeRoot=t.StructTreePage=void 0;var d=a(2),A=a(4),o=a(67),k=a(73);class f{constructor(e,t){this.dict=e,this.ref=t instanceof A.Ref?t:null,this.roleMap=new Map,this.structParentIds=null}init(){this.readRoleMap()}#k(t,a,r){if(t instanceof A.Ref&&!(a<0)){this.structParentIds||=new A.RefSetCache;let e=this.structParentIds.get(t);e||(e=[],this.structParentIds.put(t,e)),e.push([a,r])}}addAnnotationIdToPage(e,t){this.#k(e,t,4)}readRoleMap(){var e=this.dict.get("RoleMap");e instanceof A.Dict&&e.forEach((e,t)=>{t instanceof A.Name&&this.roleMap.set(e,t.name)})}static async canCreateStructureTree({catalogRef:e,pdfManager:t,newAnnotationsByPage:a}){if(!(e instanceof A.Ref))return(0,d.warn)("Cannot save the struct tree: no catalog reference."),!1;let r=0,i=!0;for(const[e,n]of a){const a=(await t.getPage(e))["ref"];if(!(a instanceof A.Ref)){(0,d.warn)(`Cannot save the struct tree: page ${e} has no ref.`),i=!0;break}for(const e of n)e.accessibilityData?.type&&(e.parentTreeId=r++,i=!1)}if(i){for(const e of a.values())for(const t of e)delete t.parentTreeId;return!1}return!0}static async createStructureTree({newAnnotationsByPage:e,xref:t,catalogRef:a,pdfManager:r,newRefs:i}){var n=r.catalog.cloneDict(),s=t.getNewTemporaryRef(),o=(n.set("StructTreeRoot",s),[]),n=(await(0,k.writeObject)(a,n,o,t),i.push({ref:a,data:o.join("")}),new A.Dict(t)),a=(n.set("Type",A.Name.get("StructTreeRoot")),t.getNewTemporaryRef()),l=(n.set("ParentTree",a),[]),c=(n.set("K",l),new A.Dict(t)),h=[],e=(c.set("Nums",h),await this.#v({newAnnotationsByPage:e,structTreeRootRef:s,kids:l,nums:h,xref:t,pdfManager:r,newRefs:i,buffer:o}));n.set("ParentTreeNextKey",e),await(o.length=0,k.writeObject)(a,c,o,t),i.push({ref:a,data:o.join("")}),await(o.length=0,k.writeObject)(s,n,o,t),i.push({ref:s,data:o.join("")})}async canUpdateStructTree({pdfManager:e,newAnnotationsByPage:t}){if(!this.ref)return(0,d.warn)("Cannot update the struct tree: no root reference."),!1;let a=this.dict.get("ParentTreeNextKey");if(!Number.isInteger(a)||a<0)return(0,d.warn)("Cannot update the struct tree: invalid next key."),!1;const r=this.dict.get("ParentTree");if(!(r instanceof A.Dict))return(0,d.warn)("Cannot update the struct tree: ParentTree isn't a dict."),!1;const i=r.get("Nums");if(!Array.isArray(i))return(0,d.warn)("Cannot update the struct tree: nums isn't an array."),!1;var n=e.catalog["numPages"];for(const a of t.keys()){const{pageDict:t,ref:r}=await e.getPage(a);if(!(r instanceof A.Ref))return(0,d.warn)(`Cannot save the struct tree: page ${a} has no ref.`),!1;const i=t.get("StructParents");if(!Number.isInteger(i)||i<0||i>=n)return(0,d.warn)(`Cannot save the struct tree: page ${a} has no id.`),!1}let s=!0;for(const[d,A]of t){const t=(await e.getPage(d))["pageDict"];f.#C({elements:A,xref:this.dict.xref,pageDict:t,parentTree:r});for(const e of A)e.accessibilityData?.type&&(e.parentTreeId=a++,s=!1)}if(s){for(const e of t.values())for(const t of e)delete t.parentTreeId,delete t.structTreeParent;return!1}return!0}async updateStructureTree({newAnnotationsByPage:e,pdfManager:t,newRefs:a}){var r=this.dict.xref,i=this.dict.clone(),n=this.ref;let s,o=i.getRaw("ParentTree"),l=(o instanceof A.Ref?s=r.fetch(o):(s=o,o=r.getNewTemporaryRef(),i.set("ParentTree",o)),(s=s.clone()).getRaw("Nums")),c=null,h=(l instanceof A.Ref&&(c=l,l=r.fetch(c)),l=l.slice(),c||s.set("Nums",l),i.getRaw("K")),u=null;h instanceof A.Ref?(u=h,h=r.fetch(u)):(u=r.getNewTemporaryRef(),i.set("K",u)),h=Array.isArray(h)?h.slice():[h];var d=[],e=await f.#v({newAnnotationsByPage:e,structTreeRootRef:n,kids:h,nums:l,xref:r,pdfManager:t,newRefs:a,buffer:d});i.set("ParentTreeNextKey",e),await(d.length=0,k.writeObject)(u,h,d,r),a.push({ref:u,data:d.join("")}),c&&(await(d.length=0,k.writeObject)(c,l,d,r),a.push({ref:c,data:d.join("")})),await(d.length=0,k.writeObject)(o,s,d,r),a.push({ref:o,data:d.join("")}),await(d.length=0,k.writeObject)(n,i,d,r),a.push({ref:n,data:d.join("")})}static async#v({newAnnotationsByPage:e,structTreeRootRef:t,kids:a,nums:r,xref:i,pdfManager:n,newRefs:s,buffer:o}){var l,c,h=A.Name.get("OBJR");let u=-1/0;for([l,c]of e){const e=(await n.getPage(l))["ref"];for(const{accessibilityData:{type:n,title:p,lang:m,alt:b,expanded:y,actualText:w},ref:v,parentTreeId:x,structTreeParent:S}of c){u=Math.max(u,x);var d=i.getNewTemporaryRef(),f=new A.Dict(i),g=(f.set("S",A.Name.get(n)),p&&f.set("T",p),m&&f.set("Lang",m),b&&f.set("Alt",b),y&&f.set("E",y),w&&f.set("ActualText",w),S?await this.#F({structTreeParent:S,tagDict:f,newTagRef:d,fallbackRef:t,xref:i,newRefs:s,buffer:o}):f.set("P",t),new A.Dict(i));f.set("K",g),g.set("Type",h),g.set("Pg",e),g.set("Obj",v),await(o.length=0,k.writeObject)(d,f,o,i),s.push({ref:d,data:o.join("")}),r.push(x,d),a.push(d)}}return u+1}static#C({elements:e,xref:i,pageDict:t,parentTree:a}){const n=new Map;for(const i of e)if(i.structTreeParentId){const e=parseInt(i.structTreeParentId.split("_mc")[1],10);n.set(e,i)}e=t.get("StructParents"),t=new o.NumberTree(a,i).get(e);if(Array.isArray(t)){var r=(e,t,a)=>{var r=n.get(e);if(r){const e=t.getRaw("P"),n=i.fetchIfRef(e);return e instanceof A.Ref&&n instanceof A.Dict&&(r.structTreeParent={ref:a,dict:t}),!0}return!1};for(const e of t)if(e instanceof A.Ref){const t=i.fetch(e),a=t.get("K");if(Number.isInteger(a))r(a,t,e);else if(Array.isArray(a))for(var s of a)if(s=i.fetchIfRef(s),Number.isInteger(s)&&r(s,t,e))break}}}static async#F({structTreeParent:{ref:e,dict:t},tagDict:a,newTagRef:r,fallbackRef:i,xref:n,newRefs:s,buffer:o}){t=t.getRaw("P");let l=n.fetchIfRef(t);a.set("P",t);let c,h=!1,u=l.getRaw("K");if(u instanceof A.Ref?c=n.fetch(u):(c=u,u=n.getNewTemporaryRef(),(l=l.clone()).set("K",u),h=!0),Array.isArray(c)){const t=c.indexOf(e);if(!(0<=t))return(0,d.warn)("Cannot update the struct tree: parent kid not found."),void a.set("P",i);(c=c.slice()).splice(t+1,0,r)}else c instanceof A.Dict&&(c=[u,r],u=n.getNewTemporaryRef(),l.set("K",u),h=!0);await(o.length=0,k.writeObject)(u,c,o,n),s.push({ref:u,data:o.join("")}),h&&(await(o.length=0,k.writeObject)(t,l,o,n),s.push({ref:t,data:o.join("")}))}}t.StructTreeRoot=f;class n{constructor(e,t){this.tree=e,this.dict=t,this.kids=[],this.parseKids()}get role(){var e=this.dict.get("S"),e=e instanceof A.Name?e.name:"",t=this.tree["root"];return t.roleMap.has(e)?t.roleMap.get(e):e}parseKids(){let e=null;const t=this.dict.getRaw("Pg"),a=(t instanceof A.Ref&&(e=t.toString()),this.dict.get("K"));if(Array.isArray(a))for(const t of a){const a=this.parseKid(e,t);a&&this.kids.push(a)}else{const t=this.parseKid(e,a);t&&this.kids.push(t)}}parseKid(e,t){if(Number.isInteger(t))return this.tree.pageDict.objId!==e?null:new r({type:1,mcid:t,pageObjId:e});let a=null;if(t instanceof A.Ref?a=this.dict.xref.fetch(t):t instanceof A.Dict&&(a=t),!a)return null;t=a.getRaw("Pg"),t instanceof A.Ref&&(e=t.toString()),t=a.get("Type")instanceof A.Name?a.get("Type").name:null;if("MCR"===t){if(this.tree.pageDict.objId!==e)return null;const t=a.getRaw("Stm");return new r({type:2,refObjId:t instanceof A.Ref?t.toString():null,pageObjId:e,mcid:a.get("MCID")})}if("OBJR"!==t)return new r({type:5,dict:a});{if(this.tree.pageDict.objId!==e)return null;const t=a.getRaw("Obj");return new r({type:3,refObjId:t instanceof A.Ref?t.toString():null,pageObjId:e})}}}class r{constructor({type:e,dict:t=null,mcid:a=null,pageObjId:r=null,refObjId:i=null}){this.type=e,this.dict=t,this.mcid=a,this.pageObjId=r,this.refObjId=i,this.parentNode=null}}t.StructTreePage=class{constructor(e,t){this.root=e,this.rootDict=e?e.dict:null,this.pageDict=t,this.nodes=[]}parse(e){if(this.root&&this.rootDict){const r=this.rootDict.get("ParentTree");if(r){const i=this.pageDict.get("StructParents"),n=e instanceof A.Ref&&this.root.structParentIds?.get(e);if(Number.isInteger(i)||n){var t=new Map,a=new o.NumberTree(r,this.rootDict.xref);if(Number.isInteger(i)){const e=a.get(i);if(Array.isArray(e))for(const r of e)r instanceof A.Ref&&this.addNode(this.rootDict.xref.fetch(r),t)}if(n)for(const[e,r]of n){const i=a.get(e);if(i){const e=this.addNode(this.rootDict.xref.fetchIfRef(i),t);1===e?.kids?.length&&3===e.kids[0].type&&(e.kids[0].type=r)}}}}}}addNode(t,a,e=0){if(40<e)return(0,d.warn)("StructTree MAX_DEPTH reached."),null;if(a.has(t))return a.get(t);var r=new n(this,t),i=(a.set(t,r),t.get("P"));if(!i||(0,A.isName)(i.get("Type"),"StructTreeRoot"))this.addTopLevelNode(t,r)||a.delete(t);else{i=this.addNode(i,a,e+1);if(i){let e=!1;for(const a of i.kids)5===a.type&&a.dict===t&&(a.parentNode=r,e=!0);e||a.delete(t)}}return r}addTopLevelNode(t,a){var r=this.rootDict.get("K");if(!r)return!1;if(r instanceof A.Dict)return r.objId===t.objId&&(this.nodes[0]=a,!0);if(!Array.isArray(r))return!0;let i=!1;for(let e=0;e<r.length;e++)r[e]?.toString()===t.objId&&(this.nodes[e]=a,i=!0);return i}get serializable(){var e=Object.create(null);e.children=[],e.role="Root";for(const t of this.nodes)t&&function e(t,a,r=0){if(40<r)return(0,d.warn)("StructTree too deep to be fully serialized.");var i=Object.create(null),a=(i.role=t.role,i.children=[],a.children.push(i),t.dict.get("Alt")),a=("string"==typeof a&&(i.alt=(0,d.stringToPDFString)(a)),t.dict.get("Lang"));"string"==typeof a&&(i.lang=(0,d.stringToPDFString)(a));for(const a of t.kids){const t=5===a.type?a.parentNode:null;t?e(t,i,r+1):1===a.type||2===a.type?i.children.push({type:"content",id:`p${a.pageObjId}_mc`+a.mcid}):3===a.type?i.children.push({type:"object",id:a.refObjId}):4===a.type&&i.children.push({type:"annotation",id:""+d.AnnotationPrefix+a.refObjId})}}(t,e);return e}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.incrementalUpdate=async function({originalData:e,xrefInfo:t,newRefs:a,xref:r=null,hasXfa:i=!1,xfaDatasetsRef:n=null,hasXfaDatasetsEntry:s=!1,needAppearances:o,acroFormRef:l=null,acroForm:c=null,xfaData:h=null}){var{xref:u,acroForm:c,acroFormRef:l,hasXfa:s,hasXfaDatasetsEntry:o,xfaDatasetsRef:d,needAppearances:f,newRefs:g}={xref:r,acroForm:c,acroFormRef:l,hasXfa:i,hasXfaDatasetsEntry:s,xfaDatasetsRef:n,needAppearances:o,newRefs:a};if(!s||o||d||(0,k.warn)("XFA - Cannot save it"),f||s&&d&&!o){var p=c.clone();if(s&&!o){const u=c.get("XFA").slice();u.splice(2,0,"datasets"),u.splice(3,0,d),p.set("XFA",u)}f&&p.set("NeedAppearances",!0);s=[];await T(l,p,s,u),g.push({ref:l,data:s.join("")})}{var o,c,d,f;await 0,i&&({xfaData:o,xfaDatasetsRef:c,newRefs:d,xref:f}={xfaData:h,xfaDatasetsRef:n,newRefs:a,xref:r},null===o&&(o=function(e,t){var a=new O.SimpleXMLParser({hasAttributes:!0}).parseFromString(e);for(const{xfa:e}of t)if(e){const{path:t,value:i}=e;if(t){var r=(0,F.parseXFAPath)(t);let e=a.documentElement.searchNode(r,0);(e=!e&&1<r.length?a.documentElement.searchNode([r.at(-1)],0):e)?e.childNodes=Array.isArray(i)?i.map(e=>new O.SimpleDOMNode("value",e)):[new O.SimpleDOMNode("#text",i)]:(0,k.warn)("Node not found for path: "+t)}}const i=[];return a.documentElement.dump(i),i.join("")}(f.fetchIfRef(c).getString(),d)),(f=f.encrypt)&&(o=f.createCipherTransform(c.num,c.gen).encryptString(o)),f=""+c.num+` ${c.gen} obj
2
- << /Type /EmbeddedFile /Length ${o.length}>>
3
- stream
4
- `+o+"\nendstream\nendobj\n",d.push({ref:c,data:f}))}p=new C.Dict(null),u=t.newRef;let m,b;var g=e.at(-1),y=(b=10===g||13===g?(m=[],e.length):(m=["\n"],e.length+1),p.set("Size",u.num+1),p.set("Prev",t.startXRef),p.set("Type",C.Name.get("XRef")),null!==t.rootRef&&p.set("Root",t.rootRef),null!==t.infoRef&&p.set("Info",t.infoRef),null!==t.encryptRef&&p.set("Encrypt",t.encryptRef),a.push({ref:u,data:""}),[[0,1,65535]]),w=[0,1];let v=0;for(const{ref:e,data:t}of a=a.sort((e,t)=>e.ref.num-t.ref.num))v=Math.max(v,b),y.push([1,b,Math.min(e.gen,65535)]),b+=t.length,w.push(e.num,1),m.push(t);if(p.set("Index",w),Array.isArray(t.fileIds)&&0<t.fileIds.length){const e=function(e,t){var a=Math.floor(Date.now()/1e3),r=t.filename||"",i=[a.toString(),r,e.toString()];let n=i.reduce((e,t)=>e+t.length,0);for(const e of Object.values(t.info))i.push(e),n+=e.length;var s=new Uint8Array(n);let o=0;for(const e of i)N(e,o,s),o+=e.length;return(0,k.bytesToString)((0,I.calculateMD5)(s))}(b,t);p.set("ID",[t.fileIds[0],e])}var x=[1,Math.ceil(Math.log2(v)/8),2],l=(x[0]+x[1]+x[2])*y.length,s=(p.set("W",x),p.set("Length",l),m.push(`${u.num} ${u.gen} obj\n`),await M(p,m,null),m.push(" stream\n"),m.reduce((e,t)=>e+t.length,0)),i=`
5
- endstream
6
- endobj
7
- startxref
8
- ${b}
9
- %%EOF
10
- `,S=new Uint8Array(e.length+s+l+i.length);S.set(e);let A=e.length;for(const e of m)N(e,A,S),A+=e.length;for(const[e,t,a]of y)A=P(e,x[0],A,S),A=P(t,x[1],A,S),A=P(a,x[2],A,S);return N(i,A,S),S},t.writeDict=M,t.writeObject=T;var k=a(2),C=a(4),F=a(3),O=a(71),i=a(5),I=a(74);async function T(e,t,a,{encrypt:r=null}){r=r?.createCipherTransform(e.num,e.gen);a.push(`${e.num} ${e.gen} obj\n`),t instanceof C.Dict?await M(t,a,r):t instanceof i.BaseStream?await n(t,a,r):Array.isArray(t)&&await s(t,a,r),a.push("\nendobj\n")}async function M(e,t,a){t.push("<<");for(const r of e.getKeys())t.push(` /${(0,F.escapePDFName)(r)} `),await o(e.getRaw(r),t,a);t.push(">>")}async function n(a,r,i){let n=a.getString();const s=a["dict"],[o,l]=await Promise.all([s.getAsync("Filter"),s.getAsync("DecodeParms")]),c=Array.isArray(o)?await s.xref.fetchIfRefAsync(o[0]):o,h=(0,C.isName)(c,"FlateDecode");if("undefined"!=typeof CompressionStream&&(256<=n.length||h))try{const a=(0,k.stringToBytes)(n),r=new CompressionStream("deflate"),i=r.writable.getWriter(),c=(i.write(a),i.close(),await new Response(r.readable).arrayBuffer());let e,t;n=(0,k.bytesToString)(new Uint8Array(c)),o?h||(e=Array.isArray(o)?[C.Name.get("FlateDecode"),...o]:[C.Name.get("FlateDecode"),o],l&&(t=Array.isArray(l)?[null,...l]:[null,l])):e=C.Name.get("FlateDecode"),e&&s.set("Filter",e),t&&s.set("DecodeParms",t)}catch(a){(0,k.info)(`writeStream - cannot compress data: "${a}".`)}i&&(n=i.encryptString(n)),s.set("Length",n.length),await M(s,r,i),r.push(" stream\n",n,"\nendstream")}async function s(e,t,a){t.push("[");let r=!0;for(const i of e)r?r=!1:t.push(" "),await o(i,t,a);t.push("]")}async function o(e,t,a){e instanceof C.Name?t.push("/"+(0,F.escapePDFName)(e.name)):e instanceof C.Ref?t.push(`${e.num} ${e.gen} R`):Array.isArray(e)?await s(e,t,a):"string"==typeof e?(a&&(e=a.encryptString(e)),t.push(`(${(0,F.escapeString)(e)})`)):"number"==typeof e?t.push((0,F.numberToString)(e)):"boolean"==typeof e?t.push(e.toString()):e instanceof C.Dict?await M(e,t,a):e instanceof i.BaseStream?await n(e,t,a):null===e?t.push("null"):(0,k.warn)(`Unhandled value in writer: ${typeof e}, please file a bug.`)}function P(t,a,r,i){for(let e=a+r-1;e>r-1;e--)i[e]=255&t,t>>=8;return r+a}function N(a,r,i){for(let e=0,t=a.length;e<t;e++)i[r+e]=255&a.charCodeAt(e)}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.calculateSHA256=t.calculateMD5=t.PDF20=t.PDF17=t.CipherTransformFactory=t.ARCFourCipher=t.AES256Cipher=t.AES128Cipher=void 0,t.calculateSHA384=u,t.calculateSHA512=void 0;var p=a(2),m=a(4),r=a(75);class y{constructor(a){this.a=0,this.b=0;var r=new Uint8Array(256),i=a.length;for(let e=0;e<256;++e)r[e]=e;for(let e=0,t=0;e<256;++e){var n=r[e];t=t+n+a[e%i]&255,r[e]=r[t],r[t]=n}this.s=r}encryptBlock(t){let a=this.a,r=this.b;const i=this.s,n=t.length,s=new Uint8Array(n);for(let e=0;e<n;++e){a=a+1&255;const n=i[a];r=r+n&255;var o=i[r];i[a]=o,i[r]=n,s[e]=t[e]^i[n+o&255]}return this.a=a,this.b=r,s}decryptBlock(e){return this.encryptBlock(e)}encrypt(e){return this.encryptBlock(e)}}t.ARCFourCipher=y;const w=function(){const g=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]),p=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]);return function(e,t,a){let s=1732584193,o=-271733879,l=-1732584194,c=271733878;var r=a+72&-64,h=new Uint8Array(r);let u,d;for(u=0;u<a;++u)h[u]=e[t++];h[u++]=128;for(var i=r-8;u<i;)h[u++]=0;h[u++]=a<<3&255,h[u++]=a>>5&255,h[u++]=a>>13&255,h[u++]=a>>21&255,h[u++]=a>>>29&255,h[u++]=0,h[u++]=0,h[u++]=0;var f=new Int32Array(16);for(u=0;u<r;){for(d=0;d<16;++d,u+=4)f[d]=h[u]|h[u+1]<<8|h[u+2]<<16|h[u+3]<<24;let e,t,a=s,r=o,i=l,n=c;for(d=0;d<64;++d){t=d<16?(e=r&i|~r&n,d):d<32?(e=n&r|~n&i,5*d+1&15):d<48?(e=r^i^n,3*d+5&15):(e=i^(r|~n),7*d&15);const s=n,o=a+e+p[d]+f[t]|0,l=g[d];n=i,r=(i=r)+(o<<l|o>>>32-l)|0,a=s}s=s+a|0,o=o+r|0,l=l+i|0,c=c+n|0}return new Uint8Array([255&s,s>>8&255,s>>16&255,s>>>24&255,255&o,o>>8&255,o>>16&255,o>>>24&255,255&l,l>>8&255,l>>16&255,l>>>24&255,255&c,c>>8&255,c>>16&255,c>>>24&255])}}();t.calculateMD5=w;class U{constructor(e,t){this.high=0|e,this.low=0|t}and(e){this.high&=e.high,this.low&=e.low}xor(e){this.high^=e.high,this.low^=e.low}or(e){this.high|=e.high,this.low|=e.low}shiftRight(e){32<=e?(this.low=this.high>>>e-32|0,this.high=0):(this.low=this.low>>>e|this.high<<32-e,this.high=this.high>>>e|0)}shiftLeft(e){32<=e?(this.high=this.low<<e-32,this.low=0):(this.high=this.high<<e|this.low>>>32-e,this.low<<=e)}rotateRight(e){let t,a;32&e?(a=this.low,t=this.high):(t=this.low,a=this.high),e&=31,this.low=t>>>e|a<<32-e,this.high=a>>>e|t<<32-e}not(){this.high=~this.high,this.low=~this.low}add(e){var t=(this.low>>>0)+(e.low>>>0);let a=(this.high>>>0)+(e.high>>>0);4294967295<t&&(a+=1),this.low=0|t,this.high=0|a}copyTo(e,t){e[t]=this.high>>>24&255,e[t+1]=this.high>>16&255,e[t+2]=this.high>>8&255,e[t+3]=255&this.high,e[t+4]=this.low>>>24&255,e[t+5]=this.low>>16&255,e[t+6]=this.low>>8&255,e[t+7]=255&this.low}assign(e){this.high=e.high,this.low=e.low}}const c=function(){function F(e,t){return e>>>t|e<<32-t}const O=[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];return function(e,t,a){let h=1779033703,u=3144134277,d=1013904242,f=2773480762,g=1359893119,p=2600822924,m=528734635,b=1541459225;var r=64*Math.ceil((a+9)/64),y=new Uint8Array(r);let w,v;for(w=0;w<a;++w)y[w]=e[t++];y[w++]=128;for(var i=r-8;w<i;)y[w++]=0;y[w++]=0,y[w++]=0,y[w++]=0,y[w++]=a>>>29&255,y[w++]=a>>21&255,y[w++]=a>>13&255,y[w++]=a>>5&255,y[w++]=a<<3&255;var x,S,A,k,C=new Uint32Array(64);for(w=0;w<r;){for(v=0;v<16;++v)C[v]=y[w]<<24|y[w+1]<<16|y[w+2]<<8|y[w+3],w+=4;for(v=16;v<64;++v)C[v]=0|(F(k=C[v-2],17)^F(k,19)^k>>>10)+C[v-7]+(F(k=C[v-15],7)^F(k,18)^k>>>3)+C[v-16];let e,t,a=h,r=u,i=d,n=f,s=g,o=p,l=m,c=b;for(v=0;v<64;++v)e=c+(F(A=s,6)^F(A,11)^F(A,25))+(A=s,x=o,S=l,A&x^~A&S)+O[v]+C[v],t=(F(x=a,2)^F(x,13)^F(x,22))+(A=a,S=r,x=i,A&S^A&x^S&x),c=l,l=o,o=s,s=n+e|0,n=i,i=r,r=a,a=e+t|0;h=h+a|0,u=u+r|0,d=d+i|0,f=f+n|0,g=g+s|0,p=p+o|0,m=m+l|0,b=b+c|0}return new Uint8Array([h>>24&255,h>>16&255,h>>8&255,255&h,u>>24&255,u>>16&255,u>>8&255,255&u,d>>24&255,d>>16&255,d>>8&255,255&d,f>>24&255,f>>16&255,f>>8&255,255&f,g>>24&255,g>>16&255,g>>8&255,255&g,p>>24&255,p>>16&255,p>>8&255,255&p,m>>24&255,m>>16&255,m>>8&255,255&m,b>>24&255,b>>16&255,b>>8&255,255&b])}}(),h=(t.calculateSHA256=c,function(){const j=[new U(1116352408,3609767458),new U(1899447441,602891725),new U(3049323471,3964484399),new U(3921009573,2173295548),new U(961987163,4081628472),new U(1508970993,3053834265),new U(2453635748,2937671579),new U(2870763221,3664609560),new U(3624381080,2734883394),new U(310598401,1164996542),new U(607225278,1323610764),new U(1426881987,3590304994),new U(1925078388,4068182383),new U(2162078206,991336113),new U(2614888103,633803317),new U(3248222580,3479774868),new U(3835390401,2666613458),new U(4022224774,944711139),new U(264347078,2341262773),new U(604807628,2007800933),new U(770255983,1495990901),new U(1249150122,1856431235),new U(1555081692,3175218132),new U(1996064986,2198950837),new U(2554220882,3999719339),new U(2821834349,766784016),new U(2952996808,2566594879),new U(3210313671,3203337956),new U(3336571891,1034457026),new U(3584528711,2466948901),new U(113926993,3758326383),new U(338241895,168717936),new U(666307205,1188179964),new U(773529912,1546045734),new U(1294757372,1522805485),new U(1396182291,2643833823),new U(1695183700,2343527390),new U(1986661051,1014477480),new U(2177026350,1206759142),new U(2456956037,344077627),new U(2730485921,1290863460),new U(2820302411,3158454273),new U(3259730800,3505952657),new U(3345764771,106217008),new U(3516065817,3606008344),new U(3600352804,1432725776),new U(4094571909,1467031594),new U(275423344,851169720),new U(430227734,3100823752),new U(506948616,1363258195),new U(659060556,3750685593),new U(883997877,3785050280),new U(958139571,3318307427),new U(1322822218,3812723403),new U(1537002063,2003034995),new U(1747873779,3602036899),new U(1955562222,1575990012),new U(2024104815,1125592928),new U(2227730452,2716904306),new U(2361852424,442776044),new U(2428436474,593698344),new U(2756734187,3733110249),new U(3204031479,2999351573),new U(3329325298,3815920427),new U(3391569614,3928383900),new U(3515267271,566280711),new U(3940187606,3454069534),new U(4118630271,4000239992),new U(116418474,1914138554),new U(174292421,2731055270),new U(289380356,3203993006),new U(460393269,320620315),new U(685471733,587496836),new U(852142971,1086792851),new U(1017036298,365543100),new U(1126000580,2618297676),new U(1288033470,3409855158),new U(1501505948,4234509866),new U(1607167915,987167468),new U(1816402316,1246189591)];return function(R,L,e,$=!1){let t,a,r,i,n,s,o,l;l=$?(t=new U(3418070365,3238371032),a=new U(1654270250,914150663),r=new U(2438529370,812702999),i=new U(355462360,4144912697),n=new U(1731405415,4290775857),s=new U(2394180231,1750603025),o=new U(3675008525,1694076839),new U(1203062813,3204075428)):(t=new U(1779033703,4089235720),a=new U(3144134277,2227873595),r=new U(1013904242,4271175723),i=new U(2773480762,1595750129),n=new U(1359893119,2917565137),s=new U(2600822924,725511199),o=new U(528734635,4215389547),new U(1541459225,327033209));var c=128*Math.ceil((e+17)/128),h=new Uint8Array(c);let u,d;for(u=0;u<e;++u)h[u]=R[L++];h[u++]=128;for(var _=c-16;u<_;)h[u++]=0;h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=0,h[u++]=e>>>29&255,h[u++]=e>>21&255,h[u++]=e>>13&255,h[u++]=e>>5&255,h[u++]=e<<3&255;var f=new Array(80);for(u=0;u<80;u++)f[u]=new U(0,0);let g=new U(0,0),p=new U(0,0),m=new U(0,0),b=new U(0,0),y=new U(0,0),w=new U(0,0),v=new U(0,0),x=new U(0,0);var S,A,k,C,F,O,I,T,M=new U(0,0),P=new U(0,0),N=new U(0,0),E=new U(0,0);let D,B;for(u=0;u<c;){for(d=0;d<16;++d)f[d].high=h[u]<<24|h[u+1]<<16|h[u+2]<<8|h[u+3],f[d].low=h[u+4]<<24|h[u+5]<<16|h[u+6]<<8|h[u+7],u+=8;for(d=16;d<80;++d)D=f[d],O=D,I=f[d-2],T=E,O.assign(I),O.rotateRight(19),T.assign(I),T.rotateRight(61),O.xor(T),T.assign(I),T.shiftRight(6),O.xor(T),D.add(f[d-7]),I=N,O=f[d-15],T=E,I.assign(O),I.rotateRight(1),T.assign(O),T.rotateRight(8),I.xor(T),T.assign(O),T.shiftRight(7),I.xor(T),D.add(N),D.add(f[d-16]);for(g.assign(t),p.assign(a),m.assign(r),b.assign(i),y.assign(n),w.assign(s),v.assign(o),x.assign(l),d=0;d<80;++d)M.assign(x),k=N,C=y,F=E,k.assign(C),k.rotateRight(14),F.assign(C),F.rotateRight(18),k.xor(F),F.assign(C),F.rotateRight(41),k.xor(F),M.add(N),C=N,k=y,F=w,S=v,A=E,C.assign(k),C.and(F),A.assign(k),A.not(),A.and(S),C.xor(A),M.add(N),M.add(j[d]),M.add(f[d]),F=P,k=g,S=E,F.assign(k),F.rotateRight(28),S.assign(k),S.rotateRight(34),F.xor(S),S.assign(k),S.rotateRight(39),F.xor(S),C=N,A=g,k=p,F=m,S=E,C.assign(A),C.and(k),S.assign(A),S.and(F),C.xor(S),S.assign(k),S.and(F),C.xor(S),P.add(N),D=x,x=v,v=w,w=y,b.add(M),y=b,b=m,m=p,p=g,D.assign(M),D.add(P),g=D;t.add(g),a.add(p),r.add(m),i.add(b),n.add(y),s.add(w),o.add(v),l.add(x)}return $?(B=new Uint8Array(48),t.copyTo(B,0),a.copyTo(B,8),r.copyTo(B,16),i.copyTo(B,24),n.copyTo(B,32),s.copyTo(B,40)):(B=new Uint8Array(64),t.copyTo(B,0),a.copyTo(B,8),r.copyTo(B,16),i.copyTo(B,24),n.copyTo(B,32),s.copyTo(B,40),o.copyTo(B,48),l.copyTo(B,56)),B}}());function u(e,t,a){return h(e,t,a,!0)}t.calculateSHA512=h;class l{decryptBlock(e){return e}encrypt(e){return e}}class s{constructor(){this.constructor===s&&(0,p.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 e=0;e<256;e++)this._mixCol[e]=e<128?e<<1:e<<1^27;this.buffer=new Uint8Array(16),this.bufferPosition=0}_expandKey(e){(0,p.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(e,r){let t,i,n;var s=new Uint8Array(16);s.set(e);for(let e=0,t=this._keySize;e<16;++e,++t)s[e]^=r[t];for(let a=this._cyclesOfRepetition-1;1<=a;--a){t=s[13],s[13]=s[9],s[9]=s[5],s[5]=s[1],s[1]=t,t=s[14],i=s[10],s[14]=s[6],s[10]=s[2],s[6]=t,s[2]=i,t=s[15],i=s[11],n=s[7],s[15]=s[3],s[11]=t,s[7]=i,s[3]=n;for(let e=0;e<16;++e)s[e]=this._inv_s[s[e]];for(let e=0,t=16*a;e<16;++e,++t)s[e]^=r[t];for(let e=0;e<16;e+=4){const r=this._mix[s[e]],i=this._mix[s[e+1]],n=this._mix[s[e+2]],o=this._mix[s[e+3]];t=r^i>>>8^i<<24^n>>>16^n<<16^o>>>24^o<<8,s[e]=t>>>24&255,s[e+1]=t>>16&255,s[e+2]=t>>8&255,s[e+3]=255&t}}t=s[13],s[13]=s[9],s[9]=s[5],s[5]=s[1],s[1]=t,t=s[14],i=s[10],s[14]=s[6],s[10]=s[2],s[6]=t,s[2]=i,t=s[15],i=s[11],n=s[7],s[15]=s[3],s[11]=t,s[7]=i,s[3]=n;for(let e=0;e<16;++e)s[e]=this._inv_s[s[e]],s[e]^=r[e];return s}_encrypt(e,r){const t=this._s;let i,n,s;var o=new Uint8Array(16);o.set(e);for(let e=0;e<16;++e)o[e]^=r[e];for(let a=1;a<this._cyclesOfRepetition;a++){for(let e=0;e<16;++e)o[e]=t[o[e]];s=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=s,s=o[2],n=o[6],o[2]=o[10],o[6]=o[14],o[10]=s,o[14]=n,s=o[3],n=o[7],i=o[11],o[3]=o[15],o[7]=s,o[11]=n,o[15]=i;for(let e=0;e<16;e+=4){const r=o[e+0],t=o[e+1],n=o[e+2],s=o[e+3];i=r^t^n^s,o[e+0]^=i^this._mixCol[r^t],o[e+1]^=i^this._mixCol[t^n],o[e+2]^=i^this._mixCol[n^s],o[e+3]^=i^this._mixCol[s^r]}for(let e=0,t=16*a;e<16;++e,++t)o[e]^=r[t]}for(let e=0;e<16;++e)o[e]=t[o[e]];s=o[1],o[1]=o[5],o[5]=o[9],o[9]=o[13],o[13]=s,s=o[2],n=o[6],o[2]=o[10],o[6]=o[14],o[10]=s,o[14]=n,s=o[3],n=o[7],i=o[11],o[3]=o[15],o[7]=s,o[11]=n,o[15]=i;for(let e=0,t=this._keySize;e<16;++e,++t)o[e]^=r[t];return o}_decryptBlock2(r,e){const t=r.length;let a=this.buffer,i=this.bufferPosition;var n=[];let s=this.iv;for(let e=0;e<t;++e)if(a[i]=r[e],!(++i<16)){const t=this._decrypt(a,this._key);for(let e=0;e<16;++e)t[e]^=s[e];s=a,n.push(t),a=new Uint8Array(16),i=0}if(this.buffer=a,this.bufferLength=i,this.iv=s,0===n.length)return new Uint8Array(0);let o=16*n.length;if(e){const r=n.at(-1);let a=r[15];if(a<=16){for(let e=15,t=16-a;e>=t;--e)if(r[e]!==a){a=0;break}o-=a,n[n.length-1]=r.subarray(0,16-a)}}var l=new Uint8Array(o);for(let e=0,t=0,a=n.length;e<a;++e,t+=16)l.set(n[e],t);return l}decryptBlock(t,e,a=null){var r=t.length,i=this.buffer;let n=this.bufferPosition;if(a)this.iv=a;else{for(let e=0;n<16&&e<r;++e,++n)i[n]=t[e];if(n<16)return this.bufferLength=n,new Uint8Array(0);this.iv=i,t=t.subarray(16)}return this.buffer=new Uint8Array(16),this.bufferLength=0,this.decryptBlock=this._decryptBlock2,this.decryptBlock(t,e)}encrypt(t,a){const r=t.length;let i=this.buffer,n=this.bufferPosition;var s=[];a=a||new Uint8Array(16);for(let e=0;e<r;++e)if(i[n]=t[e],!(++n<16)){for(let e=0;e<16;++e)i[e]^=a[e];const r=this._encrypt(i,this._key);a=r,s.push(r),i=new Uint8Array(16),n=0}if(this.buffer=i,this.bufferLength=n,this.iv=a,0===s.length)return new Uint8Array(0);var o=new Uint8Array(16*s.length);for(let e=0,t=0,a=s.length;e<a;++e,t+=16)o.set(s[e],t);return o}}class d extends s{constructor(e){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(e)}_expandKey(e){var s=this._s,o=this._rcon,l=new Uint8Array(176);l.set(e);for(let n=16,e=1;n<176;++e){let t=l[n-3],a=l[n-2],r=l[n-1],i=l[n-4];t=s[t],a=s[a],r=s[r],i=s[i],t^=o[e];for(let e=0;e<4;++e)l[n]=t^=l[n-16],l[++n]=a^=l[n-16],l[++n]=r^=l[n-16],l[++n]=i^=l[n-16],n++}return l}}t.AES128Cipher=d;class f extends s{constructor(e){super(),this._cyclesOfRepetition=14,this._keySize=224,this._key=this._expandKey(e)}_expandKey(e){var a=this._s,r=new Uint8Array(240);r.set(e);let i,n,s,o,l=1;for(let t=32,e=1;t<240;++e){t%32==16?(i=a[i],n=a[n],s=a[s],o=a[o]):t%32==0&&(i=r[t-3],n=r[t-2],s=r[t-1],o=r[t-4],i=a[i],n=a[n],s=a[s],o=a[o],i^=l,256<=(l<<=1))&&(l=255&(27^l));for(let e=0;e<4;++e)r[t]=i^=r[t-32],r[++t]=n^=r[t-32],r[++t]=s^=r[t-32],r[++t]=o^=r[t-32],t++}return r}}t.AES256Cipher=f;class g{checkOwnerPassword(e,t,a,r){var i=new Uint8Array(e.length+56),a=(i.set(e,0),i.set(t,e.length),i.set(a,e.length+t.length),c(i,0,i.length));return(0,p.isArrayEqual)(a,r)}checkUserPassword(e,t,a){var r=new Uint8Array(e.length+8),t=(r.set(e,0),r.set(t,e.length),c(r,0,r.length));return(0,p.isArrayEqual)(t,a)}getOwnerKey(e,t,a,r){var i=new Uint8Array(e.length+56),a=(i.set(e,0),i.set(t,e.length),i.set(a,e.length+t.length),c(i,0,i.length));return new f(a).decryptBlock(r,!1,new Uint8Array(16))}getUserKey(e,t,a){var r=new Uint8Array(e.length+8),t=(r.set(e,0),r.set(t,e.length),c(r,0,r.length));return new f(t).decryptBlock(a,!1,new Uint8Array(16))}}t.PDF17=g;class b{_hash(e,a,t){let r=c(a,0,a.length).subarray(0,32),i=[0],n=0;for(;n<64||i.at(-1)>n-32;){const a=e.length+r.length+t.length,l=new Uint8Array(a);var s=0,o=(l.set(e,0),s+=e.length,l.set(r,s),s+=r.length,l.set(t,s),new Uint8Array(64*a));for(let e=0,t=0;e<64;e++,t+=a)o.set(l,t);s=(i=new d(r.subarray(0,16)).encrypt(o,r.subarray(16,32))).slice(0,16).reduce((e,t)=>e+t,0)%3;0==s?r=c(i,0,i.length):1==s?r=u(i,0,i.length):2==s&&(r=h(i,0,i.length)),n++}return r.subarray(0,32)}checkOwnerPassword(e,t,a,r){var i=new Uint8Array(e.length+56),t=(i.set(e,0),i.set(t,e.length),i.set(a,e.length+t.length),this._hash(e,i,a));return(0,p.isArrayEqual)(t,r)}checkUserPassword(e,t,a){var r=new Uint8Array(e.length+8),t=(r.set(e,0),r.set(t,e.length),this._hash(e,r,[]));return(0,p.isArrayEqual)(t,a)}getOwnerKey(e,t,a,r){var i=new Uint8Array(e.length+56),t=(i.set(e,0),i.set(t,e.length),i.set(a,e.length+t.length),this._hash(e,i,a));return new f(t).decryptBlock(r,!1,new Uint8Array(16))}getUserKey(e,t,a){var r=new Uint8Array(e.length+8),t=(r.set(e,0),r.set(t,e.length),this._hash(e,r,[]));return new f(t).decryptBlock(a,!1,new Uint8Array(16))}}t.PDF20=b;class i{constructor(e,t){this.StringCipherConstructor=e,this.StreamCipherConstructor=t}createStream(e,t){const a=new this.StreamCipherConstructor;return new r.DecryptStream(e,t,function(e,t){return a.decryptBlock(e,t)})}decryptString(e){var t=new this.StringCipherConstructor,e=(0,p.stringToBytes)(e),e=t.decryptBlock(e,!0);return(0,p.bytesToString)(e)}encryptString(e){var t=new this.StringCipherConstructor;if(t instanceof s){const n=16-e.length%16;e+=String.fromCharCode(n).repeat(n);var a=new Uint8Array(16);if("undefined"!=typeof crypto)crypto.getRandomValues(a);else for(let e=0;e<16;e++)a[e]=Math.floor(256*Math.random());var r=(0,p.stringToBytes)(e),r=t.encrypt(r,a),i=new Uint8Array(16+r.length);return i.set(a),i.set(r,16),(0,p.bytesToString)(i)}let n=(0,p.stringToBytes)(e);return n=t.encrypt(n),(0,p.bytesToString)(n)}}class v{static#O=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]);#I(e,t,a,r,i,n,s,o,l,c,h,u){if(t){const e=Math.min(127,t.length);t=t.subarray(0,e)}else t=[];e=new(6===e?b:g);return e.checkUserPassword(t,o,s)?e.getUserKey(t,l,h):t.length&&e.checkOwnerPassword(t,r,n,a)?e.getOwnerKey(t,i,n,c):null}#T(e,t,a,r,i,n,s,o){var l=40+a.length+e.length,c=new Uint8Array(l);let h,u,d=0;if(t)for(u=Math.min(32,t.length);d<u;++d)c[d]=t[d];for(h=0;d<32;)c[d++]=v.#O[h++];for(h=0,u=a.length;h<u;++h)c[d++]=a[h];for(c[d++]=255&i,c[d++]=i>>8&255,c[d++]=i>>16&255,c[d++]=i>>>24&255,h=0,u=e.length;h<u;++h)c[d++]=e[h];4<=n&&!o&&(c[d++]=255,c[d++]=255,c[d++]=255,c[d++]=255);let f=w(c,0,d);var g=s>>3;if(3<=n)for(h=0;h<50;++h)f=w(f,0,g);var p=f.subarray(0,g);let m,b;if(3<=n){for(d=0;d<32;++d)c[d]=v.#O[d];for(h=0,u=e.length;h<u;++h)c[d++]=e[h];m=new y(p),b=m.encryptBlock(w(c,0,d)),u=p.length;const t=new Uint8Array(u);for(h=1;h<=19;++h){for(let e=0;e<u;++e)t[e]=p[e]^h;m=new y(t),b=m.encryptBlock(b)}for(h=0,u=b.length;h<u;++h)if(r[h]!==b[h])return null}else for(m=new y(p),b=m.encryptBlock(v.#O),h=0,u=b.length;h<u;++h)if(r[h]!==b[h])return null;return p}#M(t,e,a,r){var i=new Uint8Array(32);let n=0;for(var s=Math.min(32,t.length);n<s;++n)i[n]=t[n];let o=0;for(;n<32;)i[n++]=v.#O[o++];let l=w(i,0,n);var c=r>>3;if(3<=a)for(o=0;o<50;++o)l=w(l,0,l.length);let h,u;if(3<=a){u=e;const t=new Uint8Array(c);for(o=19;0<=o;o--){for(let e=0;e<c;++e)t[e]=l[e]^o;h=new y(t),u=h.encryptBlock(u)}}else h=new y(l.subarray(0,c)),u=h.encryptBlock(e);return u}#P(e,t,a,r=!1){var i=new Uint8Array(a.length+9),n=a.length;let s;for(s=0;s<n;++s)i[s]=a[s];return i[s++]=255&e,i[s++]=e>>8&255,i[s++]=e>>16&255,i[s++]=255&t,i[s++]=t>>8&255,r&&(i[s++]=115,i[s++]=65,i[s++]=108,i[s++]=84),w(i,0,s).subarray(0,Math.min(a.length+5,16))}#N(e,t,a,r,i){if(!(t instanceof m.Name))throw new p.FormatError("Invalid crypt filter name.");const n=this,s=e.get(t.name),o=s?.get("CFM");if(!o||"None"===o.name)return function(){return new l};if("V2"===o.name)return function(){return new y(n.#P(a,r,i,!1))};if("AESV2"===o.name)return function(){return new d(n.#P(a,r,i,!0))};if("AESV3"===o.name)return function(){return new f(i)};throw new p.FormatError("Unknown crypto method")}constructor(e,t,a){const r=e.get("Filter");if(!(0,m.isName)(r,"Standard"))throw new p.FormatError("unknown encryption method");this.filterName=r.name;const i=(this.dict=e).get("V");if(!Number.isInteger(i)||1!==i&&2!==i&&4!==i&&5!==i)throw new p.FormatError("unsupported encryption algorithm");this.algorithm=i;let n=e.get("Length");if(!n)if(i<=3)n=40;else{const t=e.get("CF"),a=e.get("StmF");if(t instanceof m.Dict&&a instanceof m.Name){t.suppressEncryption=!0;const e=t.get(a.name);(n=e?.get("Length")||128)<40&&(n<<=3)}}if(!Number.isInteger(n)||n<40||n%8!=0)throw new p.FormatError("invalid key length");const s=(0,p.stringToBytes)(e.get("O")),o=(0,p.stringToBytes)(e.get("U")),l=s.subarray(0,32),c=o.subarray(0,32),h=e.get("P"),u=e.get("R"),d=(4===i||5===i)&&!1!==e.get("EncryptMetadata");this.encryptMetadata=d;t=(0,p.stringToBytes)(t);let f,g;if(a){if(6===u)try{a=(0,p.utf8StringToString)(a)}catch{(0,p.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}f=(0,p.stringToBytes)(a)}if(5!==i)g=this.#T(t,f,l,c,h,u,n,d);else{const t=s.subarray(32,40),a=s.subarray(40,48),m=o.subarray(0,48),r=o.subarray(32,40),i=o.subarray(40,48),n=(0,p.stringToBytes)(e.get("OE")),h=(0,p.stringToBytes)(e.get("UE")),d=(0,p.stringToBytes)(e.get("Perms"));g=this.#I(u,f,l,t,a,m,c,r,i,n,h,d)}if(!g&&!a)throw new p.PasswordException("No password given",p.PasswordResponses.NEED_PASSWORD);if(!g&&a){const e=this.#M(f,l,u,n);g=this.#T(t,e,l,c,h,u,n,d)}if(!g)throw new p.PasswordException("Incorrect Password",p.PasswordResponses.INCORRECT_PASSWORD);if(this.encryptionKey=g,4<=i){const t=e.get("CF");t instanceof m.Dict&&(t.suppressEncryption=!0),this.cf=t,this.stmf=e.get("StmF")||m.Name.get("Identity"),this.strf=e.get("StrF")||m.Name.get("Identity"),this.eff=e.get("EFF")||this.stmf}}createCipherTransform(e,t){if(4===this.algorithm||5===this.algorithm)return new i(this.#N(this.cf,this.strf,e,t,this.encryptionKey),this.#N(this.cf,this.stmf,e,t,this.encryptionKey));function a(){return new y(r)}const r=this.#P(e,t,this.encryptionKey,!1);return new i(a,a)}}t.CipherTransformFactory=v},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DecryptStream=void 0;class r extends a(18).DecodeStream{constructor(e,t,a){super(t),this.str=e,this.dict=e.dict,this.decrypt=a,this.nextChunk=null,this.initialized=!1}readBlock(){let e;var t,a;this.initialized?e=this.nextChunk:(e=this.str.getBytes(512),this.initialized=!0),e&&0!==e.length?(this.nextChunk=this.str.getBytes(512),t=0<this.nextChunk?.length,e=(0,this.decrypt)(e,!t),a=(t=this.bufferLength)+e.length,this.ensureBuffer(a).set(e,t),this.bufferLength=a):this.eof=!0}}t.DecryptStream=r},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectLoader=void 0;var n=a(4),s=a(5),o=a(3),l=a(2);t.ObjectLoader=class{constructor(e,t,a){this.dict=e,this.keys=t,this.xref=a,this.refSet=null}async load(){if(!this.xref.stream.isDataLoaded){const{keys:t,dict:a}=this;this.refSet=new n.RefSet;var e=[];for(const n of t){const t=a.getRaw(n);void 0!==t&&e.push(t)}return this._walk(e)}}async _walk(a){const r=[],i=[];for(;a.length;){let t=a.pop();if(t instanceof n.Ref){if(this.refSet.has(t))continue;try{this.refSet.put(t),t=this.xref.fetch(t)}catch(a){if(!(a instanceof o.MissingDataException)){(0,l.warn)(`ObjectLoader._walk - requesting all data: "${a}".`),this.refSet=null;const r=this.xref.stream["manager"];return r.requestAllChunks()}r.push(t),i.push({begin:a.begin,end:a.end})}}if(t instanceof s.BaseStream){const a=t.getBaseStreams();if(a){let e=!1;for(const r of a)r.isDataLoaded||(e=!0,i.push({begin:r.start,end:r.end}));e&&r.push(t)}}!function(e,t){if(e instanceof n.Dict)e=e.getRawValues();else if(e instanceof s.BaseStream)e=e.dict.getRawValues();else if(!Array.isArray(e))return;for(const r of e)((a=r)instanceof n.Ref||a instanceof n.Dict||a instanceof s.BaseStream||Array.isArray(a))&&t.push(r);var a}(t,a)}if(i.length){await this.xref.stream.manager.requestRanges(i);for(const a of r)a instanceof n.Ref&&this.refSet.remove(a);return this._walk(r)}this.refSet=null}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XFAFactory=void 0;var n=a(78),r=a(79),i=a(89),s=a(85),o=a(84),l=a(2),c=a(90),h=a(100);class u{constructor(e){try{this.root=(new c.XFAParser).parse(u._createDocument(e));var t=new r.Binder(this.root);this.form=t.bind(),this.dataHandler=new i.DataHandler(this.root,t.getData()),this.form[n.$globalData].template=this.form}catch(e){(0,l.warn)("XFA - an error occurred during parsing and binding: "+e)}}isValid(){return this.root&&this.form}_createPagesHelper(){const r=this.form[n.$toPages]();return new Promise((e,t)=>{const a=()=>{try{const t=r.next();t.done?e(t.value):setTimeout(a,0)}catch(e){t(e)}};setTimeout(a,0)})}async _createPages(){try{this.pages=await this._createPagesHelper(),this.dims=this.pages.children.map(e=>{var{width:e,height:t}=e.attributes.style;return[0,0,parseInt(e),parseInt(t)]})}catch(e){(0,l.warn)("XFA - an error occurred during layout: "+e)}}getBoundingBox(e){return this.dims[e]}async getNumPages(){return this.pages||await this._createPages(),this.dims.length}setImages(e){this.form[n.$globalData].images=e}setFonts(e){this.form[n.$globalData].fontFinder=new s.FontFinder(e);var t,a=[];for(t of this.form[n.$globalData].usedTypefaces)t=(0,o.stripQuotes)(t),this.form[n.$globalData].fontFinder.find(t)||a.push(t);return 0<a.length?a:null}appendFonts(e,t){this.form[n.$globalData].fontFinder.add(e,t)}async getPages(){this.pages||await this._createPages();var e=this.pages;return this.pages=null,e}serializeData(e){return this.dataHandler.serialize(e)}static _createDocument(e){return e["/xdp:xdp"]?Object.values(e).join(""):e["xdp:xdp"]}static getRichTextAsHtml(t){if(t&&"string"==typeof t)try{let e=new c.XFAParser(h.XhtmlNamespace,!0).parse(t);if(!["body","xhtml"].includes(e[n.$nodeName])){const t=h.XhtmlNamespace.body({});t[n.$appendChild](e),e=t}var a,r,i=e[n.$toHTML]();return i.success?(a=i["html"],r=a["attributes"],r&&(r.class&&(r.class=r.class.filter(e=>!e.startsWith("xfa"))),r.dir="auto"),{html:a,str:e[n.$text]()}):null}catch(t){(0,l.warn)("XFA - an error occurred during parsing of rich text: "+t)}return null}}t.XFAFactory=u},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.$uid=t.$toStyle=t.$toString=t.$toPages=t.$toHTML=t.$text=t.$tabIndex=t.$setValue=t.$setSetAttributes=t.$setId=t.$searchNode=t.$root=t.$resolvePrototypes=t.$removeChild=t.$pushPara=t.$pushGlyphs=t.$popPara=t.$onText=t.$onChildCheck=t.$onChild=t.$nsAttributes=t.$nodeName=t.$namespaceId=t.$lastAttribute=t.$isUsable=t.$isTransparent=t.$isThereMoreWidth=t.$isSplittable=t.$isNsAgnostic=t.$isDescendent=t.$isDataValue=t.$isCDATAXml=t.$isBindable=t.$insertAt=t.$indexOf=t.$ids=t.$hasSettableValue=t.$globalData=t.$getTemplateRoot=t.$getSubformParent=t.$getRealChildrenByNameIt=t.$getParent=t.$getNextPage=t.$getExtra=t.$getDataValue=t.$getContainedChildren=t.$getChildrenByNameIt=t.$getChildrenByName=t.$getChildrenByClass=t.$getChildren=t.$getAvailableSpace=t.$getAttributes=t.$getAttributeIt=t.$flushHTML=t.$finalize=t.$extra=t.$dump=t.$data=t.$content=t.$consumed=t.$clone=t.$cleanup=t.$cleanPage=t.$clean=t.$childrenToHTML=t.$appendChild=t.$addHTML=t.$acceptWhitespace=void 0;var a=Symbol(),a=(t.$acceptWhitespace=a,Symbol()),a=(t.$addHTML=a,Symbol()),a=(t.$appendChild=a,Symbol()),a=(t.$childrenToHTML=a,Symbol()),a=(t.$clean=a,Symbol()),a=(t.$cleanPage=a,Symbol()),a=(t.$cleanup=a,Symbol()),a=(t.$clone=a,Symbol()),a=(t.$consumed=a,Symbol("content")),a=(t.$content=a,Symbol("data")),a=(t.$data=a,Symbol()),a=(t.$dump=a,Symbol("extra")),a=(t.$extra=a,Symbol()),a=(t.$finalize=a,Symbol()),a=(t.$flushHTML=a,Symbol()),a=(t.$getAttributeIt=a,Symbol()),a=(t.$getAttributes=a,Symbol()),a=(t.$getAvailableSpace=a,Symbol()),a=(t.$getChildrenByClass=a,Symbol()),a=(t.$getChildrenByName=a,Symbol()),a=(t.$getChildrenByNameIt=a,Symbol()),a=(t.$getDataValue=a,Symbol()),a=(t.$getExtra=a,Symbol()),a=(t.$getRealChildrenByNameIt=a,Symbol()),a=(t.$getChildren=a,Symbol()),a=(t.$getContainedChildren=a,Symbol()),a=(t.$getNextPage=a,Symbol()),a=(t.$getSubformParent=a,Symbol()),a=(t.$getParent=a,Symbol()),a=(t.$getTemplateRoot=a,Symbol()),a=(t.$globalData=a,Symbol()),a=(t.$hasSettableValue=a,Symbol()),a=(t.$ids=a,Symbol()),a=(t.$indexOf=a,Symbol()),a=(t.$insertAt=a,Symbol()),a=(t.$isCDATAXml=a,Symbol()),a=(t.$isBindable=a,Symbol()),a=(t.$isDataValue=a,Symbol()),a=(t.$isDescendent=a,Symbol()),a=(t.$isNsAgnostic=a,Symbol()),a=(t.$isSplittable=a,Symbol()),a=(t.$isThereMoreWidth=a,Symbol()),a=(t.$isTransparent=a,Symbol()),a=(t.$isUsable=a,Symbol()),a=(t.$lastAttribute=a,Symbol("namespaceId")),a=(t.$namespaceId=a,Symbol("nodeName")),a=(t.$nodeName=a,Symbol()),a=(t.$nsAttributes=a,Symbol()),a=(t.$onChild=a,Symbol()),a=(t.$onChildCheck=a,Symbol()),a=(t.$onText=a,Symbol()),a=(t.$pushGlyphs=a,Symbol()),a=(t.$popPara=a,Symbol()),a=(t.$pushPara=a,Symbol()),a=(t.$removeChild=a,Symbol("root")),a=(t.$root=a,Symbol()),a=(t.$resolvePrototypes=a,Symbol()),a=(t.$searchNode=a,Symbol()),a=(t.$setId=a,Symbol()),a=(t.$setSetAttributes=a,Symbol()),a=(t.$setValue=a,Symbol()),a=(t.$tabIndex=a,Symbol()),a=(t.$text=a,Symbol()),a=(t.$toPages=a,Symbol()),a=(t.$toHTML=a,Symbol()),a=(t.$toString=a,Symbol()),a=(t.$toStyle=a,Symbol("uid"));t.$uid=a},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Binder=void 0;var h=a(78),c=a(80),u=a(88),d=a(87),s=a(81),f=a(2);const g=s.NamespaceIds.datasets.id;function p(e){var t=new c.Text({});return t[h.$content]=e,t}t.Binder=class{constructor(e){this.root=e,this.datasets=e.datasets,this.data=e.datasets?.data||new d.XmlObject(s.NamespaceIds.datasets.id,"data"),this.emptyMerge=0===this.data[h.$getChildren]().length,this.root.form=this.form=e.template[h.$clone]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){return this._bindElement(this.form,this.data),this.form}getData(){return this.data}_bindValue(e,t,a){if(e[h.$data]=t,e[h.$hasSettableValue]())if(t[h.$isDataValue]()){const a=t[h.$getDataValue]();e[h.$setValue](p(a))}else if(e instanceof c.Field&&"multiSelect"===e.ui?.choiceList?.open){const a=t[h.$getChildren]().map(e=>e[h.$content].trim()).join("\n");e[h.$setValue](p(a))}else this._isConsumeData()&&(0,f.warn)("XFA - Nodes haven't the same type.");else!t[h.$isDataValue]()||this._isMatchTemplate()?this._bindElement(e,t):(0,f.warn)("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(t,a,r,e){if(!t)return null;let i,n;for(let e=0;e<3;e++){for(i=r[h.$getRealChildrenByNameIt](t,!1,!0);n=i.next().value;)if(a===n[h.$isDataValue]())return n;if(r[h.$namespaceId]===s.NamespaceIds.datasets.id&&"data"===r[h.$nodeName])break;r=r[h.$getParent]()}return e?(i=this.data[h.$getRealChildrenByNameIt](t,!0,!1),(n=i.next().value)||(i=this.data[h.$getAttributeIt](t,!0),(n=i.next().value)?.[h.$isDataValue]()?n:null)):null}_setProperties(e,t){if(e.hasOwnProperty("setProperty"))for(var{ref:a,target:r,connection:i}of e.setProperty.children)if(!i&&a){i=(0,u.searchNode)(this.root,t,a,!1,!1);if(i){var[i]=i;if(i[h.$isDescendent](this.data)){var n=(0,u.searchNode)(this.root,e,r,!1,!1);if(n){var[n]=n;if(n[h.$isDescendent](e)){var s=n[h.$getParent]();if(n instanceof c.SetProperty||s instanceof c.SetProperty)(0,f.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");else if(n instanceof c.BindItems||s instanceof c.BindItems)(0,f.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");else{var o=i[h.$text](),l=n[h.$nodeName];if(n instanceof d.XFAAttribute){const e=Object.create(null),t=(e[l]=o,Reflect.construct(Object.getPrototypeOf(s).constructor,[e]));s[l]=t[l]}else n.hasOwnProperty(h.$content)?(n[h.$data]=i,n[h.$content]=o,n[h.$finalize]()):(0,f.warn)("XFA - Invalid node to use in setProperty")}}else(0,f.warn)("XFA - Invalid target: must be a property or subproperty.")}else(0,f.warn)(`XFA - Invalid target: ${r}.`)}else(0,f.warn)("XFA - Invalid node: must be a data node.")}else(0,f.warn)(`XFA - Invalid reference: ${a}.`)}}_bindItems(e,t){if(e.hasOwnProperty("items")&&e.hasOwnProperty("bindItems")&&!e.bindItems.isEmpty()){for(const t of e.items.children)e[h.$removeChild](t);e.items.clear();var a,r,i=new c.Items({}),n=new c.Items({});e[h.$appendChild](i),e.items.push(i),e[h.$appendChild](n),e.items.push(n);for(const{ref:c,labelRef:s,valueRef:o,connection:l}of e.bindItems.children)if(!l&&c){const e=(0,u.searchNode)(this.root,t,c,!1,!1);if(e)for(const t of e)if(t[h.$isDescendent](this.datasets)){const e=(0,u.searchNode)(this.root,t,s,!0,!1);e?([a]=e,a[h.$isDescendent](this.datasets)?(r=(0,u.searchNode)(this.root,t,o,!0,!1))?([r]=r,r[h.$isDescendent](this.datasets)?(a=p(a[h.$text]()),r=p(r[h.$text]()),i[h.$appendChild](a),i.text.push(a),n[h.$appendChild](r),n.text.push(r)):(0,f.warn)("XFA - Invalid value: must be a datasets child.")):(0,f.warn)(`XFA - Invalid value: ${o}.`):(0,f.warn)("XFA - Invalid label: must be a datasets child.")):(0,f.warn)(`XFA - Invalid label: ${s}.`)}else(0,f.warn)(`XFA - Invalid ref (${c}): must be a datasets child.`);else(0,f.warn)(`XFA - Invalid reference: ${c}.`)}}}_bindOccurrences(e,a,r){let i;if(1<a.length&&((i=e[h.$clone]())[h.$removeChild](i.occur),i.occur=null),this._bindValue(e,a[0],r),this._setProperties(e,a[0]),this._bindItems(e,a[0]),1!==a.length){var n=e[h.$getParent](),s=e[h.$nodeName],o=n[h.$indexOf](e);for(let e=1,t=a.length;e<t;e++){var l=a[e],c=i[h.$clone]();n[s].push(c),n[h.$insertAt](o+e,c),this._bindValue(c,l,r),this._setProperties(c,l),this._bindItems(c,l)}}}_createOccurrences(t){if(this.emptyMerge){const s=t["occur"];if(s&&!(s.initial<=1)){var a=t[h.$getParent](),r=t[h.$nodeName];if(a[r]instanceof d.XFAObjectArray){let e;e=(t.name?a[r].children.filter(e=>e.name===t.name):a[r].children).length;var i=a[h.$indexOf](t)+1,n=s.initial-e;if(n){const s=t[h.$clone]();s[h.$removeChild](s.occur),s.occur=null,a[r].push(s),a[h.$insertAt](i,s);for(let t=1;t<n;t++){const e=s[h.$clone]();a[r].push(e),a[h.$insertAt](i+t,e)}}}}}}_getOccurInfo(e){var{name:e,occur:t}=e;return t&&e?(e=-1===t.max?1/0:t.max,[t.min,e]):[1,1]}_setAndBind(e,t){this._setProperties(e,t),this._bindItems(e,t),this._bindElement(e,t)}_bindElement(i,n){const s=[];this._createOccurrences(i);for(const c of i[h.$getChildren]())if(!c[h.$data])if(void 0===this._mergeMode&&"subform"===c[h.$nodeName]){this._mergeMode="consumeData"===c.mergeMode;const i=n[h.$getChildren]();if(0<i.length)this._bindOccurrences(c,[i[0]],null);else if(this.emptyMerge){const i=n[h.$namespaceId]===g?-1:n[h.$namespaceId],s=c[h.$data]=new d.XmlObject(i,c.name||"root");n[h.$appendChild](s),this._bindElement(c,s)}}else if(c[h.$isBindable]()){let e=!1,t=null,a=null,r=null;if(c.bind){switch(c.bind.match){case"none":this._setAndBind(c,n);continue;case"global":e=!0;break;case"dataRef":if(!c.bind.ref){(0,f.warn)(`XFA - ref is empty in node ${c[h.$nodeName]}.`),this._setAndBind(c,n);continue}a=c.bind.ref}c.bind.picture&&(t=c.bind.picture[h.$content])}var[o,l]=this._getOccurInfo(c);if(a){if(null===(r=(0,u.searchNode)(this.root,n,a,!0,!1))){if(!(r=(0,u.createDataNode)(this.data,n,a)))continue;this._isConsumeData()&&(r[h.$consumed]=!0),this._setAndBind(c,r);continue}(r=this._isConsumeData()?r.filter(e=>!e[h.$consumed]):r).length>l?r=r.slice(0,l):0===r.length&&(r=null),r&&this._isConsumeData()&&r.forEach(e=>{e[h.$consumed]=!0})}else{if(!c.name){this._setAndBind(c,n);continue}if(this._isConsumeData()){const s=[];for(;s.length<l;){const u=this._findDataByNameToConsume(c.name,c[h.$hasSettableValue](),n,e);if(!u)break;u[h.$consumed]=!0,s.push(u)}r=0<s.length?s:null}else{if(!(r=n[h.$getRealChildrenByNameIt](c.name,!1,this.emptyMerge).next().value)){if(0===o){s.push(c);continue}const i=n[h.$namespaceId]===g?-1:n[h.$namespaceId];r=c[h.$data]=new d.XmlObject(i,c.name),this.emptyMerge&&(r[h.$consumed]=!0),n[h.$appendChild](r),this._setAndBind(c,r);continue}this.emptyMerge&&(r[h.$consumed]=!0),r=[r]}}r?this._bindOccurrences(c,r,t):0<o?this._setAndBind(c,n):s.push(c)}s.forEach(e=>e[h.$getParent]()[h.$removeChild](e))}}},(R,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Value=e.Text=e.TemplateNamespace=e.Template=e.SetProperty=e.Items=e.Field=e.BindItems=void 0;var g=t(78),a=t(81),p=t(82),m=t(83),s=t(87),b=t(84),y=t(2),L=t(85),$=t(3),_=t(88);const r=a.NamespaceIds.template.id,h="http://www.w3.org/2000/svg",j=/^H(\d+)$/,U=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"]),X=[[[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 w(e){return e&&e.border&&(e=e.border[g.$getExtra]())?{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]}:{w:0,h:0}}function u(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function i(e,t){if(!e.value){const t=new D({});e[g.$appendChild](t),e.value=t}e.value[g.$setValue](t)}function*n(e){for(const t of e[g.$getChildren]())t instanceof P?yield*t[g.$getContainedChildren]():yield t}function d(e){return"error"===e.validate?.nullTest}function v(t){for(;t;){if(!t.traversal)return t[g.$tabIndex]=t[g.$getParent]()[g.$tabIndex];if(t[g.$tabIndex])return;let e=null;for(const r of t.traversal[g.$getChildren]())if("next"===r.operation){e=r;break}if(!e||!e.ref)return t[g.$tabIndex]=t[g.$getParent]()[g.$tabIndex];var a=t[g.$getTemplateRoot](),a=(t[g.$tabIndex]=++a[g.$tabIndex],a[g.$searchNode](e.ref,t));if(!a)return;t=a[0]}}function x(e,t){const a=e.assist;if(a){const e=a[g.$toHTML]();e&&(t.title=e);var r=a.role.match(j);if(r){const e="heading",a=r[1];t.role="heading",t["aria-level"]=a}}if("table"===e.layout)t.role="table";else if("row"===e.layout)t.role="row";else{const a=e[g.$getParent]();"row"===a.layout&&(t.role="TH"===a.assist?.role?"columnheader":"cell")}}function f(e){return e.assist?(e=e.assist).speak&&""!==e.speak[g.$content]?e.speak[g.$content]:e.toolTip?e.toolTip[g.$content]:null:null}function o(e){return b.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:e}]})}function S(e){var t=e[g.$getTemplateRoot]();null===t[g.$extra].firstUnsplittable&&(t[g.$extra].firstUnsplittable=e,t[g.$extra].noLayoutFailure=!0)}function A(e){var t=e[g.$getTemplateRoot]();t[g.$extra].firstUnsplittable===e&&(t[g.$extra].noLayoutFailure=!1)}function k(r){if(!r[g.$extra]&&(r[g.$extra]=Object.create(null),"auto"!==r.targetType)){const o=r[g.$getTemplateRoot]();let e=null;if(r.target){if(!(e=o[g.$searchNode](r.target,r[g.$getParent]())))return;e=e[0]}var{currentPageArea:i,currentContentArea:n}=o[g.$extra];if("pageArea"===r.targetType)return e instanceof T||(e=null),r.startNew?(r[g.$extra].target=e||i,1):e&&e!==i&&(r[g.$extra].target=e,1);var s=(e=e instanceof F?e:null)&&e[g.$getParent]();let t,a=s;if(r.startNew)if(e){const r=s.contentArea.children,o=r.indexOf(n),g=r.indexOf(e);-1!==o&&o<g&&(a=null),t=g-1}else t=i.contentArea.children.indexOf(n);else{if(!e||e===n)return;t=s.contentArea.children.indexOf(e)-1,a=s===i?null:s}return r[g.$extra].target=a,r[g.$extra].index=t,1}}function C(e,t,a){var r=e[g.$getTemplateRoot](),i=r[g.$extra].noLayoutFailure,n=t[g.$getSubformParent],a=(t[g.$getSubformParent]=()=>e,r[g.$extra].noLayoutFailure=!0,t[g.$toHTML](a));e[g.$addHTML](a.html,a.bbox),r[g.$extra].noLayoutFailure=i,t[g.$getSubformParent]=n}class H extends s.StringObject{constructor(e){super(r,"appearanceFilter"),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class l extends s.XFAObject{constructor(e){super(r,"arc",!0),this.circular=(0,b.getInteger)({data:e.circular,defaultValue:0,validate:e=>1===e}),this.hand=(0,b.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.startAngle=(0,b.getFloat)({data:e.startAngle,defaultValue:0,validate:e=>!0}),this.sweepAngle=(0,b.getFloat)({data:e.sweepAngle,defaultValue:360,validate:e=>!0}),this.use=e.use||"",this.usehref=e.usehref||"",this.edge=null,this.fill=null}[g.$toHTML](){const e=this.edge||new O({}),t=e[g.$toStyle](),a=Object.create(null);let r;"visible"===this.fill?.presence?Object.assign(a,this.fill[g.$toStyle]()):a.fill="transparent",a.strokeWidth=(0,m.measureToString)("visible"===e.presence?e.thickness:0),a.stroke=t.color;var i={xmlns:h,style:{width:"100%",height:"100%",overflow:"visible"}};if(360===this.sweepAngle)r={name:"ellipse",attributes:{xmlns:h,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:a}};else{const e=this.startAngle*Math.PI/180,t=this.sweepAngle*Math.PI/180,g=180<this.sweepAngle?1:0,[m,n,b,s]=[50*(1+Math.cos(e)),50*(1-Math.sin(e)),50*(1+Math.cos(e+t)),50*(1-Math.sin(e+t))];r={name:"path",attributes:{xmlns:h,d:`M ${m} ${n} A 50 50 0 ${g} 0 ${b} `+s,vectorEffect:"non-scaling-stroke",style:a}},Object.assign(i,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const n={name:"svg",children:[r],attributes:i};return u(this[g.$getParent]()[g.$getParent]())?b.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[n]}):(n.attributes.style.position="absolute",b.HTMLResult.success(n))}}class q extends s.XFAObject{constructor(e){super(r,"area",!0),this.colSpan=(0,b.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>1<=e||-1===e}),this.id=e.id||"",this.name=e.name||"",this.relevant=(0,b.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.x=(0,b.getMeasurement)(e.x,"0pt"),this.y=(0,b.getMeasurement)(e.y,"0pt"),this.desc=null,this.extras=null,this.area=new s.XFAObjectArray,this.draw=new s.XFAObjectArray,this.exObject=new s.XFAObjectArray,this.exclGroup=new s.XFAObjectArray,this.field=new s.XFAObjectArray,this.subform=new s.XFAObjectArray,this.subformSet=new s.XFAObjectArray}*[g.$getContainedChildren](){yield*n(this)}[g.$isTransparent](){return!0}[g.$isBindable](){return!0}[g.$addHTML](e,t){var[t,a,r,i]=t;this[g.$extra].width=Math.max(this[g.$extra].width,t+r),this[g.$extra].height=Math.max(this[g.$extra].height,a+i),this[g.$extra].children.push(e)}[g.$getAvailableSpace](){return this[g.$extra].availableSpace}[g.$toHTML](e){var t=(0,m.toStyle)(this,"position"),a={style:t,id:this[g.$uid],class:["xfaArea"]},r=((0,m.isPrintOnly)(this)&&a.class.push("xfaPrintOnly"),this.name&&(a.xfaName=this.name),[]),e=(this[g.$extra]={children:r,width:0,height:0,availableSpace:e},this[g.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0}));if(!e.success)return e.isBreak()?e:(delete this[g.$extra],b.HTMLResult.FAILURE);t.width=(0,m.measureToString)(this[g.$extra].width),t.height=(0,m.measureToString)(this[g.$extra].height);e={name:"div",attributes:a,children:r},t=[this.x,this.y,this[g.$extra].width,this[g.$extra].height];return delete this[g.$extra],b.HTMLResult.success(e,t)}}class z extends s.XFAObject{constructor(e){super(r,"assist",!0),this.id=e.id||"",this.role=e.role||"",this.use=e.use||"",this.usehref=e.usehref||"",this.speak=null,this.toolTip=null}[g.$toHTML](){return this.toolTip?.[g.$content]||null}}class G extends s.XFAObject{constructor(e){super(r,"barcode",!0),this.charEncoding=(0,b.getKeyword)({data:e.charEncoding?e.charEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}),this.checksum=(0,b.getStringOption)(e.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]),this.dataColumnCount=(0,b.getInteger)({data:e.dataColumnCount,defaultValue:-1,validate:e=>0<=e}),this.dataLength=(0,b.getInteger)({data:e.dataLength,defaultValue:-1,validate:e=>0<=e}),this.dataPrep=(0,b.getStringOption)(e.dataPrep,["none","flateCompress"]),this.dataRowCount=(0,b.getInteger)({data:e.dataRowCount,defaultValue:-1,validate:e=>0<=e}),this.endChar=e.endChar||"",this.errorCorrectionLevel=(0,b.getInteger)({data:e.errorCorrectionLevel,defaultValue:-1,validate:e=>0<=e&&e<=8}),this.id=e.id||"",this.moduleHeight=(0,b.getMeasurement)(e.moduleHeight,"5mm"),this.moduleWidth=(0,b.getMeasurement)(e.moduleWidth,"0.25mm"),this.printCheckDigit=(0,b.getInteger)({data:e.printCheckDigit,defaultValue:0,validate:e=>1===e}),this.rowColumnRatio=(0,b.getRatio)(e.rowColumnRatio),this.startChar=e.startChar||"",this.textLocation=(0,b.getStringOption)(e.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]),this.truncate=(0,b.getInteger)({data:e.truncate,defaultValue:0,validate:e=>1===e}),this.type=(0,b.getStringOption)(e.type?e.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,b.getStringOption)(e.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]),this.use=e.use||"",this.usehref=e.usehref||"",this.wideNarrowRatio=(0,b.getRatio)(e.wideNarrowRatio),this.encrypt=null,this.extras=null}}class W extends s.XFAObject{constructor(e){super(r,"bind",!0),this.match=(0,b.getStringOption)(e.match,["once","dataRef","global","none"]),this.ref=e.ref||"",this.picture=null}}class c extends s.XFAObject{constructor(e){super(r,"bindItems"),this.connection=e.connection||"",this.labelRef=e.labelRef||"",this.ref=e.ref||"",this.valueRef=e.valueRef||""}}e.BindItems=c;class V extends s.XFAObject{constructor(e){super(r,"bookend"),this.id=e.id||"",this.leader=e.leader||"",this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||""}}class K extends s.Option01{constructor(e){super(r,"boolean"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[g.$toHTML](e){return o(1===this[g.$content]?"1":"0")}}class Y extends s.XFAObject{constructor(e){super(r,"border",!0),this.break=(0,b.getStringOption)(e.break,["close","open"]),this.hand=(0,b.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.presence=(0,b.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,b.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.corner=new s.XFAObjectArray(4),this.edge=new s.XFAObjectArray(4),this.extras=null,this.fill=null,this.margin=null}[g.$getExtra](){if(!this[g.$extra]){var t=this.edge.children.slice();if(t.length<4){var a=t.at(-1)||new O({});for(let e=t.length;e<4;e++)t.push(a)}var e=t.map(e=>e.thickness),r=[0,0,0,0];this.margin&&(r[0]=this.margin.topInset,r[1]=this.margin.rightInset,r[2]=this.margin.bottomInset,r[3]=this.margin.leftInset),this[g.$extra]={widths:e,insets:r,edges:t}}return this[g.$extra]}[g.$toStyle](){const t=this[g.$getExtra]()["edges"],a=t.map(e=>{e=e[g.$toStyle]();return e.color||="#000000",e}),e=Object.create(null);if(this.margin&&Object.assign(e,this.margin[g.$toStyle]()),"visible"===this.fill?.presence&&Object.assign(e,this.fill[g.$toStyle]()),this.corner.children.some(e=>0!==e.radius)){const t=this.corner.children.map(e=>e[g.$toStyle]());if(2===t.length||3===t.length){const a=t.at(-1);for(let e=t.length;e<4;e++)t.push(a)}e.borderRadius=t.map(e=>e.radius).join(" ")}switch(this.presence){case"invisible":case"hidden":e.borderStyle="";break;case"inactive":e.borderStyle="none";break;default:e.borderStyle=a.map(e=>e.style).join(" ")}return e.borderWidth=a.map(e=>e.width).join(" "),e.borderColor=a.map(e=>e.color).join(" "),e}}class Z extends s.XFAObject{constructor(e){super(r,"break",!0),this.after=(0,b.getStringOption)(e.after,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.afterTarget=e.afterTarget||"",this.before=(0,b.getStringOption)(e.before,["auto","contentArea","pageArea","pageEven","pageOdd"]),this.beforeTarget=e.beforeTarget||"",this.bookendLeader=e.bookendLeader||"",this.bookendTrailer=e.bookendTrailer||"",this.id=e.id||"",this.overflowLeader=e.overflowLeader||"",this.overflowTarget=e.overflowTarget||"",this.overflowTrailer=e.overflowTrailer||"",this.startNew=(0,b.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class J extends s.XFAObject{constructor(e){super(r,"breakAfter",!0),this.id=e.id||"",this.leader=e.leader||"",this.startNew=(0,b.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.target=e.target||"",this.targetType=(0,b.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||"",this.script=null}}class Q extends s.XFAObject{constructor(e){super(r,"breakBefore",!0),this.id=e.id||"",this.leader=e.leader||"",this.startNew=(0,b.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e}),this.target=e.target||"",this.targetType=(0,b.getStringOption)(e.targetType,["auto","contentArea","pageArea"]),this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||"",this.script=null}[g.$toHTML](e){return this[g.$extra]={},b.HTMLResult.FAILURE}}class ee extends s.XFAObject{constructor(e){super(r,"button",!0),this.highlight=(0,b.getStringOption)(e.highlight,["inverted","none","outline","push"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[g.$toHTML](e){const t=this[g.$getParent]()[g.$getParent](),a={name:"button",attributes:{id:this[g.$uid],class:["xfaButton"],style:{}},children:[]};for(const e of t.event.children)if("click"===e.activity&&e.script){const t=(0,$.recoverJsURL)(e.script[g.$content]);var r;t&&(r=(0,m.fixURL)(t.url))&&a.children.push({name:"a",attributes:{id:"link"+this[g.$uid],href:r,newWindow:t.newWindow,class:["xfaLink"],style:{}},children:[]})}return b.HTMLResult.success(a)}}class te extends s.XFAObject{constructor(e){super(r,"calculate",!0),this.id=e.id||"",this.override=(0,b.getStringOption)(e.override,["disabled","error","ignore","warning"]),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.message=null,this.script=null}}class ae extends s.XFAObject{constructor(e){super(r,"caption",!0),this.id=e.id||"",this.placement=(0,b.getStringOption)(e.placement,["left","bottom","inline","right","top"]),this.presence=(0,b.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.reserve=Math.ceil((0,b.getMeasurement)(e.reserve)),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.font=null,this.margin=null,this.para=null,this.value=null}[g.$setValue](e){i(this,e)}[g.$getExtra](a){if(!this[g.$extra]){let{width:e,height:t}=a;switch(this.placement){case"left":case"right":case"inline":e=this.reserve<=0?e:this.reserve;break;case"top":case"bottom":t=this.reserve<=0?t:this.reserve}this[g.$extra]=(0,m.layoutNode)(this,{width:e,height:t})}return this[g.$extra]}[g.$toHTML](e){if(!this.value)return b.HTMLResult.EMPTY;this[g.$pushPara]();const t=this.value[g.$toHTML](e).html;if(!t)return this[g.$popPara](),b.HTMLResult.EMPTY;const a=this.reserve;if(this.reserve<=0){const{w:t,h:a}=this[g.$getExtra](e);switch(this.placement){case"left":case"right":case"inline":this.reserve=t;break;case"top":case"bottom":this.reserve=a}}var e=[],r=("string"==typeof t?e.push({name:"#text",value:t}):e.push(t),(0,m.toStyle)(this,"font","margin","visibility"));switch(this.placement){case"left":case"right":0<this.reserve&&(r.width=(0,m.measureToString)(this.reserve));break;case"top":case"bottom":0<this.reserve&&(r.height=(0,m.measureToString)(this.reserve))}return(0,m.setPara)(this,null,t),this[g.$popPara](),this.reserve=a,b.HTMLResult.success({name:"div",attributes:{style:r,class:["xfaCaption"]},children:e})}}class re extends s.StringObject{constructor(e){super(r,"certificate"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class ie extends s.XFAObject{constructor(e){super(r,"certificates",!0),this.credentialServerPolicy=(0,b.getStringOption)(e.credentialServerPolicy,["optional","required"]),this.id=e.id||"",this.url=e.url||"",this.urlPolicy=e.urlPolicy||"",this.use=e.use||"",this.usehref=e.usehref||"",this.encryption=null,this.issuers=null,this.keyUsage=null,this.oids=null,this.signing=null,this.subjectDNs=null}}class ne extends s.XFAObject{constructor(e){super(r,"checkButton",!0),this.id=e.id||"",this.mark=(0,b.getStringOption)(e.mark,["default","check","circle","cross","diamond","square","star"]),this.shape=(0,b.getStringOption)(e.shape,["square","round"]),this.size=(0,b.getMeasurement)(e.size,"10pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[g.$toHTML](e){var t=(0,m.toStyle)("margin"),a=(0,m.measureToString)(this.size);let r,i,n;t.width=t.height=a;var a=this[g.$getParent]()[g.$getParent](),s=a.items.children.length&&a.items.children[0][g.$toHTML]().html||[],s={on:(void 0!==s[0]?s[0]:"on").toString(),off:(void 0!==s[1]?s[1]:"off").toString()},o=(a.value?.[g.$text]()||"off")===s.on||void 0,l=a[g.$getSubformParent](),c=a[g.$uid];let h;h=l instanceof Me?(n=l[g.$uid],r="radio",i="xfaRadio",l[g.$data]?.[g.$uid]||l[g.$uid]):(r="checkbox",i="xfaCheckbox",a[g.$data]?.[g.$uid]||a[g.$uid]);l={name:"input",attributes:{class:[i],style:t,fieldId:c,dataId:h,type:r,checked:o,xfaOn:s.on,xfaOff:s.off,"aria-label":f(a),"aria-required":!1}};return n&&(l.attributes.name=n),d(a)&&(l.attributes["aria-required"]=!0,l.attributes.required=!0),b.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[l]})}}class se extends s.XFAObject{constructor(e){super(r,"choiceList",!0),this.commitOn=(0,b.getStringOption)(e.commitOn,["select","exit"]),this.id=e.id||"",this.open=(0,b.getStringOption)(e.open,["userControl","always","multiSelect","onEntry"]),this.textEntry=(0,b.getInteger)({data:e.textEntry,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[g.$toHTML](r){const i=(0,m.toStyle)(this,"border","margin"),n=this[g.$getParent]()[g.$getParent](),s={fontSize:`calc(${n.font?.size||10}px * var(--scale-factor))`},o=[];if(0<n.items.children.length){const r=n.items;let e=0,t=0;2===r.children.length&&(e=r.children[0].save,t=1-e);const c=r.children[e][g.$toHTML]().html,b=r.children[t][g.$toHTML]().html;let a=!1;var l=n.value?.[g.$text]()||"";for(let e=0,t=c.length;e<t;e++){const i={name:"option",attributes:{value:b[e]||c[e],style:s},value:c[e]};b[e]===l&&(i.attributes.selected=a=!0),o.push(i)}a||o.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}const c={class:["xfaSelect"],fieldId:n[g.$uid],dataId:n[g.$data]?.[g.$uid]||n[g.$uid],style:i,"aria-label":f(n),"aria-required":!1};return d(n)&&(c["aria-required"]=!0,c.required=!0),"multiSelect"===this.open&&(c.multiple=!0),b.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:o,attributes:c}]})}}class oe extends s.XFAObject{constructor(e){super(r,"color",!0),this.cSpace=(0,b.getStringOption)(e.cSpace,["SRGB"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.value=e.value?(0,b.getColor)(e.value):"",this.extras=null}[g.$hasSettableValue](){return!1}[g.$toStyle](){return this.value?y.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}class le extends s.XFAObject{constructor(e){super(r,"comb"),this.id=e.id||"",this.numberOfCells=(0,b.getInteger)({data:e.numberOfCells,defaultValue:0,validate:e=>0<=e}),this.use=e.use||"",this.usehref=e.usehref||""}}class ce extends s.XFAObject{constructor(e){super(r,"connect",!0),this.connection=e.connection||"",this.id=e.id||"",this.ref=e.ref||"",this.usage=(0,b.getStringOption)(e.usage,["exportAndImport","exportOnly","importOnly"]),this.use=e.use||"",this.usehref=e.usehref||"",this.picture=null}}class F extends s.XFAObject{constructor(e){super(r,"contentArea",!0),this.h=(0,b.getMeasurement)(e.h),this.id=e.id||"",this.name=e.name||"",this.relevant=(0,b.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.w=(0,b.getMeasurement)(e.w),this.x=(0,b.getMeasurement)(e.x,"0pt"),this.y=(0,b.getMeasurement)(e.y,"0pt"),this.desc=null,this.extras=null}[g.$toHTML](e){var t={left:(0,m.measureToString)(this.x),top:(0,m.measureToString)(this.y),width:(0,m.measureToString)(this.w),height:(0,m.measureToString)(this.h)},a=["xfaContentarea"];return(0,m.isPrintOnly)(this)&&a.push("xfaPrintOnly"),b.HTMLResult.success({name:"div",children:[],attributes:{style:t,class:a,id:this[g.$uid]}})}}class he extends s.XFAObject{constructor(e){super(r,"corner",!0),this.id=e.id||"",this.inverted=(0,b.getInteger)({data:e.inverted,defaultValue:0,validate:e=>1===e}),this.join=(0,b.getStringOption)(e.join,["square","round"]),this.presence=(0,b.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.radius=(0,b.getMeasurement)(e.radius),this.stroke=(0,b.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,b.getMeasurement)(e.thickness,"0.5pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[g.$toStyle](){var e=(0,m.toStyle)(this,"visibility");return e.radius=(0,m.measureToString)("square"===this.join?0:this.radius),e}}class ue extends s.ContentObject{constructor(e){super(r,"date"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[g.$finalize](){var e=this[g.$content].trim();this[g.$content]=e?new Date(e):null}[g.$toHTML](e){return o(this[g.$content]?this[g.$content].toString():"")}}class de extends s.ContentObject{constructor(e){super(r,"dateTime"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[g.$finalize](){var e=this[g.$content].trim();this[g.$content]=e?new Date(e):null}[g.$toHTML](e){return o(this[g.$content]?this[g.$content].toString():"")}}class fe extends s.XFAObject{constructor(e){super(r,"dateTimeEdit",!0),this.hScrollPolicy=(0,b.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.picker=(0,b.getStringOption)(e.picker,["host","none"]),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[g.$toHTML](e){var t=(0,m.toStyle)(this,"border","font","margin"),a=this[g.$getParent]()[g.$getParent](),t={name:"input",attributes:{type:"text",fieldId:a[g.$uid],dataId:a[g.$data]?.[g.$uid]||a[g.$uid],class:["xfaTextfield"],style:t,"aria-label":f(a),"aria-required":!1}};return d(a)&&(t.attributes["aria-required"]=!0,t.attributes.required=!0),b.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[t]})}}class ge extends s.ContentObject{constructor(e){super(r,"decimal"),this.fracDigits=(0,b.getInteger)({data:e.fracDigits,defaultValue:2,validate:e=>!0}),this.id=e.id||"",this.leadDigits=(0,b.getInteger)({data:e.leadDigits,defaultValue:-1,validate:e=>!0}),this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[g.$finalize](){var e=parseFloat(this[g.$content].trim());this[g.$content]=isNaN(e)?null:e}[g.$toHTML](e){return o(null!==this[g.$content]?this[g.$content].toString():"")}}class pe extends s.XFAObject{constructor(e){super(r,"defaultUi",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class me extends s.XFAObject{constructor(e){super(r,"desc",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new s.XFAObjectArray,this.date=new s.XFAObjectArray,this.dateTime=new s.XFAObjectArray,this.decimal=new s.XFAObjectArray,this.exData=new s.XFAObjectArray,this.float=new s.XFAObjectArray,this.image=new s.XFAObjectArray,this.integer=new s.XFAObjectArray,this.text=new s.XFAObjectArray,this.time=new s.XFAObjectArray}}class be extends s.OptionObject{constructor(e){super(r,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class ye extends s.XFAObject{constructor(e){super(r,"digestMethods",!0),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.digestMethod=new s.XFAObjectArray}}class we extends s.XFAObject{constructor(e){super(r,"draw",!0),this.anchorType=(0,b.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,b.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>1<=e||-1===e}),this.h=e.h?(0,b.getMeasurement)(e.h):"",this.hAlign=(0,b.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.locale=e.locale||"",this.maxH=(0,b.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,b.getMeasurement)(e.maxW,"0pt"),this.minH=(0,b.getMeasurement)(e.minH,"0pt"),this.minW=(0,b.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,b.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,b.getRelevant)(e.relevant),this.rotate=(0,b.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90==0}),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,b.getMeasurement)(e.w):"",this.x=(0,b.getMeasurement)(e.x,"0pt"),this.y=(0,b.getMeasurement)(e.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 s.XFAObjectArray}[g.$setValue](e){i(this,e)}[g.$toHTML](e){if(v(this),"hidden"===this.presence||"inactive"===this.presence)return b.HTMLResult.EMPTY;(0,m.fixDimensions)(this),this[g.$pushPara]();var t=this.w,a=this.h,{w:r,h:i,isBroken:n}=(0,m.layoutNode)(this,e);if(r&&""===this.w){if(n&&this[g.$getSubformParent]()[g.$isThereMoreWidth]())return this[g.$popPara](),b.HTMLResult.FAILURE;this.w=r}if(i&&""===this.h&&(this.h=i),S(this),!(0,p.checkDimensions)(this,e))return this.w=t,this.h=a,this[g.$popPara](),b.HTMLResult.FAILURE;A(this);n=(0,m.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin"),(0,m.setMinMaxDimensions)(this,n),n.margin&&(n.padding=n.margin,delete n.margin),r=["xfaDraw"],this.font&&r.push("xfaFont"),(0,m.isPrintOnly)(this)&&r.push("xfaPrintOnly"),i={style:n,id:this[g.$uid],class:r},this.name&&(i.xfaName=this.name),r={name:"div",attributes:i,children:[]},x(this,i),i=(0,m.computeBbox)(this,r,e),e=this.value?this.value[g.$toHTML](e).html:null;return null===e||(r.children.push(e),(0,m.setPara)(this,n,e)),this.w=t,this.h=a,this[g.$popPara](),b.HTMLResult.success((0,m.createWrapper)(this,r),i)}}class O extends s.XFAObject{constructor(e){super(r,"edge",!0),this.cap=(0,b.getStringOption)(e.cap,["square","butt","round"]),this.id=e.id||"",this.presence=(0,b.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.stroke=(0,b.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]),this.thickness=(0,b.getMeasurement)(e.thickness,"0.5pt"),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[g.$toStyle](){var e=(0,m.toStyle)(this,"visibility");if(Object.assign(e,{linecap:this.cap,width:(0,m.measureToString)(this.thickness),color:this.color?this.color[g.$toStyle]():"#000000",style:""}),"visible"!==this.presence)e.style="none";else switch(this.stroke){case"solid":e.style="solid";break;case"dashDot":case"dashDotDot":case"dashed":e.style="dashed";break;case"dotted":e.style="dotted";break;case"embossed":e.style="ridge";break;case"etched":e.style="groove";break;case"lowered":e.style="inset";break;case"raised":e.style="outset"}return e}}class ve extends s.OptionObject{constructor(e){super(r,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class xe extends s.XFAObject{constructor(e){super(r,"encodings",!0),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.encoding=new s.XFAObjectArray}}class Se extends s.XFAObject{constructor(e){super(r,"encrypt",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=null}}class Ae extends s.XFAObject{constructor(e){super(r,"encryptData",!0),this.id=e.id||"",this.operation=(0,b.getStringOption)(e.operation,["encrypt","decrypt"]),this.target=e.target||"",this.use=e.use||"",this.usehref=e.usehref||"",this.filter=null,this.manifest=null}}class ke extends s.XFAObject{constructor(e){super(r,"encryption",!0),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new s.XFAObjectArray}}class Ce extends s.OptionObject{constructor(e){super(r,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class Fe extends s.XFAObject{constructor(e){super(r,"encryptionMethods",!0),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.encryptionMethod=new s.XFAObjectArray}}class Oe extends s.XFAObject{constructor(e){super(r,"event",!0),this.activity=(0,b.getStringOption)(e.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=e.id||"",this.listen=(0,b.getStringOption)(e.listen,["refOnly","refAndDescendents"]),this.name=e.name||"",this.ref=e.ref||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.encryptData=null,this.execute=null,this.script=null,this.signData=null,this.submit=null}}class Ie extends s.ContentObject{constructor(e){super(r,"exData"),this.contentType=e.contentType||"",this.href=e.href||"",this.id=e.id||"",this.maxLength=(0,b.getInteger)({data:e.maxLength,defaultValue:-1,validate:e=>-1<=e}),this.name=e.name||"",this.rid=e.rid||"",this.transferEncoding=(0,b.getStringOption)(e.transferEncoding,["none","base64","package"]),this.use=e.use||"",this.usehref=e.usehref||""}[g.$isCDATAXml](){return"text/html"===this.contentType}[g.$onChild](e){return("text/html"===this.contentType&&e[g.$namespaceId]===a.NamespaceIds.xhtml.id||"text/xml"===this.contentType)&&(this[g.$content]=e,!0)}[g.$toHTML](e){return"text/html"===this.contentType&&this[g.$content]?this[g.$content][g.$toHTML](e):b.HTMLResult.EMPTY}}class Te extends s.XFAObject{constructor(e){super(r,"exObject",!0),this.archive=e.archive||"",this.classId=e.classId||"",this.codeBase=e.codeBase||"",this.codeType=e.codeType||"",this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.boolean=new s.XFAObjectArray,this.date=new s.XFAObjectArray,this.dateTime=new s.XFAObjectArray,this.decimal=new s.XFAObjectArray,this.exData=new s.XFAObjectArray,this.exObject=new s.XFAObjectArray,this.float=new s.XFAObjectArray,this.image=new s.XFAObjectArray,this.integer=new s.XFAObjectArray,this.text=new s.XFAObjectArray,this.time=new s.XFAObjectArray}}class Me extends s.XFAObject{constructor(e){super(r,"exclGroup",!0),this.access=(0,b.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=e.accessKey||"",this.anchorType=(0,b.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,b.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>1<=e||-1===e}),this.h=e.h?(0,b.getMeasurement)(e.h):"",this.hAlign=(0,b.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.layout=(0,b.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.maxH=(0,b.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,b.getMeasurement)(e.maxW,"0pt"),this.minH=(0,b.getMeasurement)(e.minH,"0pt"),this.minW=(0,b.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,b.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,b.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,b.getMeasurement)(e.w):"",this.x=(0,b.getMeasurement)(e.x,"0pt"),this.y=(0,b.getMeasurement)(e.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 s.XFAObjectArray,this.event=new s.XFAObjectArray,this.field=new s.XFAObjectArray,this.setProperty=new s.XFAObjectArray}[g.$isBindable](){return!0}[g.$hasSettableValue](){return!0}[g.$setValue](e){for(const t of this.field.children){if(!t.value){const e=new D({});t[g.$appendChild](e),t.value=e}t.value[g.$setValue](e)}}[g.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[g.$extra].attempt&&0<this[g.$extra].numberInLine||this[g.$getParent]()[g.$isThereMoreWidth]()}[g.$isSplittable](){var e=this[g.$getSubformParent]();return!!e[g.$isSplittable]()&&(void 0!==this[g.$extra]._isSplittable?this[g.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")?this[g.$extra]._isSplittable=!1:!(e.layout?.endsWith("-tb")&&0!==e[g.$extra].numberInLine||(this[g.$extra]._isSplittable=!0,0)))}[g.$flushHTML](){return(0,p.flushHTML)(this)}[g.$addHTML](e,t){(0,p.addHTML)(this,e,t)}[g.$getAvailableSpace](){return(0,p.getAvailableSpace)(this)}[g.$toHTML](e){if(v(this),"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return b.HTMLResult.EMPTY;(0,m.fixDimensions)(this);var t=[],a={id:this[g.$uid],class:[]},r=((0,m.setAccess)(this,a.class),this[g.$extra]||(this[g.$extra]=Object.create(null)),Object.assign(this[g.$extra],{children:t,attributes:a,attempt:0,line:null,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0}),this[g.$isSplittable]());if(r||S(this),!(0,p.checkDimensions)(this,e))return b.HTMLResult.FAILURE;var i=new Set(["field"]);if(this.layout.includes("row")){const e=this[g.$getSubformParent]().columnWidths;Array.isArray(e)&&0<e.length&&(this[g.$extra].columnWidths=e,this[g.$extra].currentColumn=0)}for(var e=(0,m.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),n=["xfaExclgroup"],s=(0,m.layoutClass)(this),o=(s&&n.push(s),(0,m.isPrintOnly)(this)&&n.push("xfaPrintOnly"),a.style=e,a.class=n,this.name&&(a.xfaName=this.name),this[g.$pushPara](),"lr-tb"===this.layout||"rl-tb"===this.layout),l=o?2:1;this[g.$extra].attempt<l;this[g.$extra].attempt++){o&&1===this[g.$extra].attempt&&(this[g.$extra].numberInLine=0);const e=this[g.$childrenToHTML]({filter:i,include:!0});if(e.success)break;if(e.isBreak())return this[g.$popPara](),e;if(o&&0===this[g.$extra].attempt&&0===this[g.$extra].numberInLine&&!this[g.$getTemplateRoot]()[g.$extra].noLayoutFailure){this[g.$extra].attempt=l;break}}if(this[g.$popPara](),r||A(this),this[g.$extra].attempt===l)return r||delete this[g.$extra],b.HTMLResult.FAILURE;let c=0,h=0;this.margin&&(c=this.margin.leftInset+this.margin.rightInset,h=this.margin.topInset+this.margin.bottomInset);s=Math.max(this[g.$extra].width+c,this.w||0),n=Math.max(this[g.$extra].height+h,this.h||0),r=[this.x,this.y,s,n],""===this.w&&(e.width=(0,m.measureToString)(s)),""===this.h&&(e.height=(0,m.measureToString)(n)),s={name:"div",attributes:a,children:t};return x(this,a),delete this[g.$extra],b.HTMLResult.success((0,m.createWrapper)(this,s),r)}}class Pe extends s.XFAObject{constructor(e){super(r,"execute"),this.connection=e.connection||"",this.executeType=(0,b.getStringOption)(e.executeType,["import","remerge"]),this.id=e.id||"",this.runAt=(0,b.getStringOption)(e.runAt,["client","both","server"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Ne extends s.XFAObject{constructor(e){super(r,"extras",!0),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new s.XFAObjectArray,this.date=new s.XFAObjectArray,this.dateTime=new s.XFAObjectArray,this.decimal=new s.XFAObjectArray,this.exData=new s.XFAObjectArray,this.extras=new s.XFAObjectArray,this.float=new s.XFAObjectArray,this.image=new s.XFAObjectArray,this.integer=new s.XFAObjectArray,this.text=new s.XFAObjectArray,this.time=new s.XFAObjectArray}}class I extends s.XFAObject{constructor(e){super(r,"field",!0),this.access=(0,b.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.accessKey=e.accessKey||"",this.anchorType=(0,b.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,b.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>1<=e||-1===e}),this.h=e.h?(0,b.getMeasurement)(e.h):"",this.hAlign=(0,b.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.locale=e.locale||"",this.maxH=(0,b.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,b.getMeasurement)(e.maxW,"0pt"),this.minH=(0,b.getMeasurement)(e.minH,"0pt"),this.minW=(0,b.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,b.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,b.getRelevant)(e.relevant),this.rotate=(0,b.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90==0}),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,b.getMeasurement)(e.w):"",this.x=(0,b.getMeasurement)(e.x,"0pt"),this.y=(0,b.getMeasurement)(e.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 s.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 s.XFAObjectArray,this.connect=new s.XFAObjectArray,this.event=new s.XFAObjectArray,this.setProperty=new s.XFAObjectArray}[g.$isBindable](){return!0}[g.$setValue](e){i(this,e)}[g.$toHTML](i){if(v(this),!this.ui){let e;switch(this.ui=new E({}),this.ui[g.$globalData]=this[g.$globalData],this[g.$appendChild](this.ui),this.items.children.length){case 0:e=new Tt({}),this.ui.textEdit=e;break;case 1:e=new ne({}),this.ui.checkButton=e;break;case 2:e=new se({}),this.ui.choiceList=e}this.ui[g.$appendChild](e)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return b.HTMLResult.EMPTY;this.caption&&delete this.caption[g.$extra],this[g.$pushPara]();const n=this.caption?this.caption[g.$toHTML](i).html:null,s=this.w,t=this.h;let o=0,l=0,c=(this.margin&&(o=this.margin.leftInset+this.margin.rightInset,l=this.margin.topInset+this.margin.bottomInset),null);if(""===this.w||""===this.h){let e=null,t=null,a=0,r=0;if(this.ui.checkButton)a=r=this.ui.checkButton.size;else{const{w:n,h:s}=(0,m.layoutNode)(this,i);r=null!==n?(a=n,s):(0,L.getMetrics)(this.font,!0).lineNoGap}if(c=w(this.ui[g.$getExtra]()),a+=c.w,r+=c.h,this.caption){const{w:m,h:o,isBroken:l}=this.caption[g.$getExtra](i);if(l&&this[g.$getSubformParent]()[g.$isThereMoreWidth]())return this[g.$popPara](),b.HTMLResult.FAILURE;switch(e=m,t=o,this.caption.placement){case"left":case"right":case"inline":e+=a;break;case"top":case"bottom":t+=r}}else e=a,t=r;e&&""===this.w&&(e+=o,this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<e?e:this.minW)),t&&""===this.h&&(t+=l,this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<t?t:this.minH))}if(this[g.$popPara](),(0,m.fixDimensions)(this),S(this),!(0,p.checkDimensions)(this,i))return this.w=s,this.h=t,this[g.$popPara](),b.HTMLResult.FAILURE;A(this);var a=(0,m.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign"),r=((0,m.setMinMaxDimensions)(this,a),["xfaField"]),h=(this.font&&r.push("xfaFont"),(0,m.isPrintOnly)(this)&&r.push("xfaPrintOnly"),{style:a,id:this[g.$uid],class:r}),r=(a.margin&&(a.padding=a.margin,delete a.margin),(0,m.setAccess)(this,r),this.name&&(h.xfaName=this.name),[]),u={name:"div",attributes:h,children:r},h=(x(this,h),this.border?this.border[g.$toStyle]():null),d=(0,m.computeBbox)(this,u,i),f=this.ui[g.$toHTML]().html;if(f){this[g.$tabIndex]&&(f.children?.[0]?f.children[0].attributes.tabindex=this[g.$tabIndex]:f.attributes.tabindex=this[g.$tabIndex]),f.attributes.style||(f.attributes.style=Object.create(null));let e=null;if(this.ui.button?(1===f.children.length&&([e]=f.children.splice(0,1)),Object.assign(f.attributes.style,h)):Object.assign(a,h),r.push(f),this.value)if(this.ui.imageEdit)f.children.push(this.value[g.$toHTML]().html);else if(!this.ui.button){let e="";if(this.value.exData)e=this.value.exData[g.$text]();else if(this.value.text)e=this.value.text[g.$getExtra]();else{const n=this.value[g.$toHTML]().html;null!==n&&(e=n.children[0].value)}this.ui.textEdit&&this.value.text?.maxChars&&(f.children[0].attributes.maxLength=this.value.text.maxChars),e&&(this.ui.numericEdit&&(e=parseFloat(e),e=isNaN(e)?"":e.toString()),"textarea"===f.children[0].name?f.children[0].attributes.textContent=e:f.children[0].attributes.value=e)}if(!this.ui.imageEdit&&f.children?.[0]&&this.h){c=c||w(this.ui[g.$getExtra]());let e=0;if(this.caption&&["top","bottom"].includes(this.caption.placement)){(e=this.caption.reserve)<=0&&(e=this.caption[g.$getExtra](i).h);const s=this.h-e-l-c.h;f.children[0].attributes.style.height=(0,m.measureToString)(s)}else f.children[0].attributes.style.height="100%"}if(e&&f.children.push(e),n){if(this.ui.button)return a.padding&&delete a.padding,"div"===n.name&&(n.name="span"),f.children.push(n),b.HTMLResult.success(u,d);switch(this.ui.checkButton&&(n.attributes.class[0]="xfaCaptionForCheckButton"),f.attributes.class||(f.attributes.class=[]),f.children.splice(0,0,n),this.caption.placement){case"left":case"inline":f.attributes.class.push("xfaLeft");break;case"right":f.attributes.class.push("xfaRight");break;case"top":f.attributes.class.push("xfaTop");break;case"bottom":f.attributes.class.push("xfaBottom")}}else f.attributes.class&&f.attributes.class.push("xfaLeft");this.w=s,this.h=t}else Object.assign(a,h);return b.HTMLResult.success((0,m.createWrapper)(this,u),d)}}e.Field=I;class Ee extends s.XFAObject{constructor(e){super(r,"fill",!0),this.id=e.id||"",this.presence=(0,b.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null,this.linear=null,this.pattern=null,this.radial=null,this.solid=null,this.stipple=null}[g.$toStyle](){const e=this[g.$getParent](),t=e[g.$getParent]()[g.$getParent](),a=Object.create(null);let r="color",i=r;e instanceof Y&&(r="background-color",i="background",t instanceof E)&&(a.backgroundColor="white"),(e instanceof gt||e instanceof l)&&(r=i="fill",a.fill="white");for(const e of Object.getOwnPropertyNames(this))if("extras"!==e&&"color"!==e){const t=this[e];var n;if(t instanceof s.XFAObject)return(n=t[g.$toStyle](this.color))&&(a[n.startsWith("#")?r:i]=n),a}if(this.color?.value){const e=this.color[g.$toStyle]();a[e.startsWith("#")?r:i]=e}return a}}class De extends s.XFAObject{constructor(e){super(r,"filter",!0),this.addRevocationInfo=(0,b.getStringOption)(e.addRevocationInfo,["","required","optional","none"]),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.version=(0,b.getInteger)({data:this.version,defaultValue:5,validate:e=>1<=e&&e<=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 Be extends s.ContentObject{constructor(e){super(r,"float"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[g.$finalize](){var e=parseFloat(this[g.$content].trim());this[g.$content]=isNaN(e)?null:e}[g.$toHTML](e){return o(null!==this[g.$content]?this[g.$content].toString():"")}}class Re extends s.XFAObject{constructor(e){super(r,"font",!0),this.baselineShift=(0,b.getMeasurement)(e.baselineShift),this.fontHorizontalScale=(0,b.getFloat)({data:e.fontHorizontalScale,defaultValue:100,validate:e=>0<=e}),this.fontVerticalScale=(0,b.getFloat)({data:e.fontVerticalScale,defaultValue:100,validate:e=>0<=e}),this.id=e.id||"",this.kerningMode=(0,b.getStringOption)(e.kerningMode,["none","pair"]),this.letterSpacing=(0,b.getMeasurement)(e.letterSpacing,"0"),this.lineThrough=(0,b.getInteger)({data:e.lineThrough,defaultValue:0,validate:e=>1===e||2===e}),this.lineThroughPeriod=(0,b.getStringOption)(e.lineThroughPeriod,["all","word"]),this.overline=(0,b.getInteger)({data:e.overline,defaultValue:0,validate:e=>1===e||2===e}),this.overlinePeriod=(0,b.getStringOption)(e.overlinePeriod,["all","word"]),this.posture=(0,b.getStringOption)(e.posture,["normal","italic"]),this.size=(0,b.getMeasurement)(e.size,"10pt"),this.typeface=e.typeface||"Courier",this.underline=(0,b.getInteger)({data:e.underline,defaultValue:0,validate:e=>1===e||2===e}),this.underlinePeriod=(0,b.getStringOption)(e.underlinePeriod,["all","word"]),this.use=e.use||"",this.usehref=e.usehref||"",this.weight=(0,b.getStringOption)(e.weight,["normal","bold"]),this.extras=null,this.fill=null}[g.$clean](e){super[g.$clean](e),this[g.$globalData].usedTypefaces.add(this.typeface)}[g.$toStyle](){var e=(0,m.toStyle)(this,"fill"),t=e.color;return t&&("#000000"===t?delete e.color:t.startsWith("#")||(e.background=t,e.backgroundClip="text",e.color="transparent")),this.baselineShift&&(e.verticalAlign=(0,m.measureToString)(this.baselineShift)),e.fontKerning="none"===this.kerningMode?"none":"normal",e.letterSpacing=(0,m.measureToString)(this.letterSpacing),0!==this.lineThrough&&(e.textDecoration="line-through",2===this.lineThrough)&&(e.textDecorationStyle="double"),0!==this.overline&&(e.textDecoration="overline",2===this.overline)&&(e.textDecorationStyle="double"),e.fontStyle=this.posture,e.fontSize=(0,m.measureToString)(.99*this.size),(0,m.setFontFamily)(this,this,this[g.$globalData].fontFinder,e),0!==this.underline&&(e.textDecoration="underline",2===this.underline)&&(e.textDecorationStyle="double"),e.fontWeight=this.weight,e}}class Le extends s.XFAObject{constructor(e){super(r,"format",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.picture=null}}class $e extends s.StringObject{constructor(e){super(r,"handler"),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class _e extends s.XFAObject{constructor(e){super(r,"hyphenation"),this.excludeAllCaps=(0,b.getInteger)({data:e.excludeAllCaps,defaultValue:0,validate:e=>1===e}),this.excludeInitialCap=(0,b.getInteger)({data:e.excludeInitialCap,defaultValue:0,validate:e=>1===e}),this.hyphenate=(0,b.getInteger)({data:e.hyphenate,defaultValue:0,validate:e=>1===e}),this.id=e.id||"",this.pushCharacterCount=(0,b.getInteger)({data:e.pushCharacterCount,defaultValue:3,validate:e=>0<=e}),this.remainCharacterCount=(0,b.getInteger)({data:e.remainCharacterCount,defaultValue:3,validate:e=>0<=e}),this.use=e.use||"",this.usehref=e.usehref||"",this.wordCharacterCount=(0,b.getInteger)({data:e.wordCharacterCount,defaultValue:7,validate:e=>0<=e})}}class je extends s.StringObject{constructor(e){super(r,"image"),this.aspect=(0,b.getStringOption)(e.aspect,["fit","actual","height","none","width"]),this.contentType=e.contentType||"",this.href=e.href||"",this.id=e.id||"",this.name=e.name||"",this.transferEncoding=(0,b.getStringOption)(e.transferEncoding,["base64","none","package"]),this.use=e.use||"",this.usehref=e.usehref||""}[g.$toHTML](){if(this.contentType&&!U.has(this.contentType.toLowerCase()))return b.HTMLResult.EMPTY;let a=this[g.$globalData].images&&this[g.$globalData].images.get(this.href);if(!a&&(this.href||!this[g.$content]))return b.HTMLResult.EMPTY;if(!(a=a||"base64"!==this.transferEncoding?a:(0,y.stringToBytes)(atob(this[g.$content]))))return b.HTMLResult.EMPTY;if(!this.contentType){for(const[e,t]of X)if(a.length>e.length&&e.every((e,t)=>e===a[t])){this.contentType=t;break}if(!this.contentType)return b.HTMLResult.EMPTY}const e=new Blob([a],{type:this.contentType});let t;switch(this.aspect){case"fit":case"actual":break;case"height":t={height:"100%",objectFit:"fill"};break;case"none":t={width:"100%",height:"100%",objectFit:"fill"};break;case"width":t={width:"100%",objectFit:"fill"}}var r=this[g.$getParent]();return b.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:t,src:URL.createObjectURL(e),alt:r?f(r[g.$getParent]()):null}})}}class Ue extends s.XFAObject{constructor(e){super(r,"imageEdit",!0),this.data=(0,b.getStringOption)(e.data,["link","embed"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}[g.$toHTML](e){return"embed"===this.data?b.HTMLResult.success({name:"div",children:[],attributes:{}}):b.HTMLResult.EMPTY}}class Xe extends s.ContentObject{constructor(e){super(r,"integer"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[g.$finalize](){var e=parseInt(this[g.$content].trim(),10);this[g.$content]=isNaN(e)?null:e}[g.$toHTML](e){return o(null!==this[g.$content]?this[g.$content].toString():"")}}class He extends s.XFAObject{constructor(e){super(r,"issuers",!0),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new s.XFAObjectArray}}class qe extends s.XFAObject{constructor(e){super(r,"items",!0),this.id=e.id||"",this.name=e.name||"",this.presence=(0,b.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.ref=e.ref||"",this.save=(0,b.getInteger)({data:e.save,defaultValue:0,validate:e=>1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new s.XFAObjectArray,this.date=new s.XFAObjectArray,this.dateTime=new s.XFAObjectArray,this.decimal=new s.XFAObjectArray,this.exData=new s.XFAObjectArray,this.float=new s.XFAObjectArray,this.image=new s.XFAObjectArray,this.integer=new s.XFAObjectArray,this.text=new s.XFAObjectArray,this.time=new s.XFAObjectArray}[g.$toHTML](){var e=[];for(const t of this[g.$getChildren]())e.push(t[g.$text]());return b.HTMLResult.success(e)}}e.Items=qe;class ze extends s.XFAObject{constructor(e){super(r,"keep",!0),this.id=e.id||"";var t=["none","contentArea","pageArea"];this.intact=(0,b.getStringOption)(e.intact,t),this.next=(0,b.getStringOption)(e.next,t),this.previous=(0,b.getStringOption)(e.previous,t),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}}class Ge extends s.XFAObject{constructor(e){super(r,"keyUsage");var t=["","yes","no"];this.crlSign=(0,b.getStringOption)(e.crlSign,t),this.dataEncipherment=(0,b.getStringOption)(e.dataEncipherment,t),this.decipherOnly=(0,b.getStringOption)(e.decipherOnly,t),this.digitalSignature=(0,b.getStringOption)(e.digitalSignature,t),this.encipherOnly=(0,b.getStringOption)(e.encipherOnly,t),this.id=e.id||"",this.keyAgreement=(0,b.getStringOption)(e.keyAgreement,t),this.keyCertSign=(0,b.getStringOption)(e.keyCertSign,t),this.keyEncipherment=(0,b.getStringOption)(e.keyEncipherment,t),this.nonRepudiation=(0,b.getStringOption)(e.nonRepudiation,t),this.type=(0,b.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class We extends s.XFAObject{constructor(e){super(r,"line",!0),this.hand=(0,b.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.slope=(0,b.getStringOption)(e.slope,["\\","/"]),this.use=e.use||"",this.usehref=e.usehref||"",this.edge=null}[g.$toHTML](){var e=this[g.$getParent]()[g.$getParent](),t=this.edge||new O({}),a=t[g.$toStyle](),r=Object.create(null),t="visible"===t.presence?t.thickness:0;let i,n,s,o,l=(r.strokeWidth=(0,m.measureToString)(t),r.stroke=a.color,"100%"),c="100%";e.w<=t?([i,n,s,o]=["50%",0,"50%","100%"],l=r.strokeWidth):e.h<=t?([i,n,s,o]=[0,"50%","100%","50%"],c=r.strokeWidth):"\\"===this.slope?[i,n,s,o]=[0,0,"100%","100%"]:[i,n,s,o]=[0,"100%","100%",0];a={name:"svg",children:[{name:"line",attributes:{xmlns:h,x1:i,y1:n,x2:s,y2:o,style:r}}],attributes:{xmlns:h,width:l,height:c,style:{overflow:"visible"}}};return u(e)?b.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[a]}):(a.attributes.style.position="absolute",b.HTMLResult.success(a))}}class Ve extends s.XFAObject{constructor(e){super(r,"linear",!0),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["toRight","toBottom","toLeft","toTop"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[g.$toStyle](e){return e=e?e[g.$toStyle]():"#FFFFFF",`linear-gradient(${this.type.replace(/([RBLT])/," $1").toLowerCase()}, ${e}, ${this.color?this.color[g.$toStyle]():"#000000"})`}}class Ke extends s.ContentObject{constructor(e){super(r,"lockDocument"),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}[g.$finalize](){this[g.$content]=(0,b.getStringOption)(this[g.$content],["auto","0","1"])}}class Ye extends s.XFAObject{constructor(e){super(r,"manifest",!0),this.action=(0,b.getStringOption)(e.action,["include","all","exclude"]),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.ref=new s.XFAObjectArray}}class Ze extends s.XFAObject{constructor(e){super(r,"margin",!0),this.bottomInset=(0,b.getMeasurement)(e.bottomInset,"0"),this.id=e.id||"",this.leftInset=(0,b.getMeasurement)(e.leftInset,"0"),this.rightInset=(0,b.getMeasurement)(e.rightInset,"0"),this.topInset=(0,b.getMeasurement)(e.topInset,"0"),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[g.$toStyle](){return{margin:(0,m.measureToString)(this.topInset)+" "+(0,m.measureToString)(this.rightInset)+" "+(0,m.measureToString)(this.bottomInset)+" "+(0,m.measureToString)(this.leftInset)}}}class Je extends s.XFAObject{constructor(e){super(r,"mdp"),this.id=e.id||"",this.permissions=(0,b.getInteger)({data:e.permissions,defaultValue:2,validate:e=>1===e||3===e}),this.signatureType=(0,b.getStringOption)(e.signatureType,["filler","author"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Qe extends s.XFAObject{constructor(e){super(r,"medium"),this.id=e.id||"",this.imagingBBox=(0,b.getBBox)(e.imagingBBox),this.long=(0,b.getMeasurement)(e.long),this.orientation=(0,b.getStringOption)(e.orientation,["portrait","landscape"]),this.short=(0,b.getMeasurement)(e.short),this.stock=e.stock||"",this.trayIn=(0,b.getStringOption)(e.trayIn,["auto","delegate","pageFront"]),this.trayOut=(0,b.getStringOption)(e.trayOut,["auto","delegate"]),this.use=e.use||"",this.usehref=e.usehref||""}}class et extends s.XFAObject{constructor(e){super(r,"message",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.text=new s.XFAObjectArray}}class tt extends s.XFAObject{constructor(e){super(r,"numericEdit",!0),this.hScrollPolicy=(0,b.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.comb=null,this.extras=null,this.margin=null}[g.$toHTML](e){var t=(0,m.toStyle)(this,"border","font","margin"),a=this[g.$getParent]()[g.$getParent](),t={name:"input",attributes:{type:"text",fieldId:a[g.$uid],dataId:a[g.$data]?.[g.$uid]||a[g.$uid],class:["xfaTextfield"],style:t,"aria-label":f(a),"aria-required":!1}};return d(a)&&(t.attributes["aria-required"]=!0,t.attributes.required=!0),b.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[t]})}}class at extends s.XFAObject{constructor(e){super(r,"occur",!0),this.id=e.id||"",this.initial=""!==e.initial?(0,b.getInteger)({data:e.initial,defaultValue:"",validate:e=>!0}):"",this.max=""!==e.max?(0,b.getInteger)({data:e.max,defaultValue:1,validate:e=>!0}):"",this.min=""!==e.min?(0,b.getInteger)({data:e.min,defaultValue:1,validate:e=>!0}):"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[g.$clean](){var e=this[g.$getParent](),t=this.min;""===this.min&&(this.min=e instanceof T||e instanceof M?0:1),""===this.max&&(this.max=""===t?e instanceof T||e instanceof M?-1:1:this.min),-1!==this.max&&this.max<this.min&&(this.max=this.min),""===this.initial&&(this.initial=e instanceof N?1:this.min)}}class rt extends s.StringObject{constructor(e){super(r,"oid"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class it extends s.XFAObject{constructor(e){super(r,"oids",!0),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.oid=new s.XFAObjectArray}}class nt extends s.XFAObject{constructor(e){super(r,"overflow"),this.id=e.id||"",this.leader=e.leader||"",this.target=e.target||"",this.trailer=e.trailer||"",this.use=e.use||"",this.usehref=e.usehref||""}[g.$getExtra](){var e,t,a,r;return this[g.$extra]||(e=this[g.$getParent](),t=(r=this[g.$getTemplateRoot]())[g.$searchNode](this.target,e),a=r[g.$searchNode](this.leader,e),r=r[g.$searchNode](this.trailer,e),this[g.$extra]={target:t?.[0]||null,leader:a?.[0]||null,trailer:r?.[0]||null,addLeader:!1,addTrailer:!1}),this[g.$extra]}}class T extends s.XFAObject{constructor(e){super(r,"pageArea",!0),this.blankOrNotBlank=(0,b.getStringOption)(e.blankOrNotBlank,["any","blank","notBlank"]),this.id=e.id||"",this.initialNumber=(0,b.getInteger)({data:e.initialNumber,defaultValue:1,validate:e=>!0}),this.name=e.name||"",this.numbered=(0,b.getInteger)({data:e.numbered,defaultValue:1,validate:e=>!0}),this.oddOrEven=(0,b.getStringOption)(e.oddOrEven,["any","even","odd"]),this.pagePosition=(0,b.getStringOption)(e.pagePosition,["any","first","last","only","rest"]),this.relevant=(0,b.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.desc=null,this.extras=null,this.medium=null,this.occur=null,this.area=new s.XFAObjectArray,this.contentArea=new s.XFAObjectArray,this.draw=new s.XFAObjectArray,this.exclGroup=new s.XFAObjectArray,this.field=new s.XFAObjectArray,this.subform=new s.XFAObjectArray}[g.$isUsable](){return this[g.$extra]?!this.occur||-1===this.occur.max||this[g.$extra].numberOfUse<this.occur.max:(this[g.$extra]={numberOfUse:0},!0)}[g.$cleanPage](){delete this[g.$extra]}[g.$getNextPage](){this[g.$extra]||(this[g.$extra]={numberOfUse:0});var e=this[g.$getParent]();return"orderedOccurrence"===e.relation&&this[g.$isUsable]()?(this[g.$extra].numberOfUse+=1,this):e[g.$getNextPage]()}[g.$getAvailableSpace](){return this[g.$extra].space||{width:0,height:0}}[g.$toHTML](){this[g.$extra]||(this[g.$extra]={numberOfUse:1});const e=[];this[g.$extra].children=e;var t=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){if(t.width=(0,m.measureToString)(this.medium.short),t.height=(0,m.measureToString)(this.medium.long),this[g.$extra].space={width:this.medium.short,height:this.medium.long},"landscape"===this.medium.orientation){const e=t.width;t.width=t.height,t.height=e,this[g.$extra].space={width:this.medium.long,height:this.medium.short}}}else(0,y.warn)("XFA - No medium specified in pageArea: please file a bug.");return this[g.$childrenToHTML]({filter:new Set(["area","draw","field","subform"]),include:!0}),this[g.$childrenToHTML]({filter:new Set(["contentArea"]),include:!0}),b.HTMLResult.success({name:"div",children:e,attributes:{class:["xfaPage"],id:this[g.$uid],style:t,xfaName:this.name}})}}class M extends s.XFAObject{constructor(e){super(r,"pageSet",!0),this.duplexImposition=(0,b.getStringOption)(e.duplexImposition,["longEdge","shortEdge"]),this.id=e.id||"",this.name=e.name||"",this.relation=(0,b.getStringOption)(e.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]),this.relevant=(0,b.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.occur=null,this.pageArea=new s.XFAObjectArray,this.pageSet=new s.XFAObjectArray}[g.$cleanPage](){for(const e of this.pageArea.children)e[g.$cleanPage]();for(const t of this.pageSet.children)t[g.$cleanPage]()}[g.$isUsable](){return!this.occur||-1===this.occur.max||this[g.$extra].numberOfUse<this.occur.max}[g.$getNextPage](){if(this[g.$extra]||(this[g.$extra]={numberOfUse:1,pageIndex:-1,pageSetIndex:-1}),"orderedOccurrence"===this.relation){if(this[g.$extra].pageIndex+1<this.pageArea.children.length)return this[g.$extra].pageIndex+=1,this.pageArea.children[this[g.$extra].pageIndex][g.$getNextPage]();if(this[g.$extra].pageSetIndex+1<this.pageSet.children.length)return this[g.$extra].pageSetIndex+=1,this.pageSet.children[this[g.$extra].pageSetIndex][g.$getNextPage]();if(this[g.$isUsable]())return this[g.$extra].numberOfUse+=1,this[g.$extra].pageIndex=-1,this[g.$extra].pageSetIndex=-1,this[g.$getNextPage]();const e=this[g.$getParent]();return(e instanceof M?e:(this[g.$cleanPage](),this))[g.$getNextPage]()}const e=this[g.$getTemplateRoot]()[g.$extra].pageNumber,t=e%2==0?"even":"odd",a=0===e?"first":"rest";return this.pageArea.children.find(e=>e.oddOrEven===t&&e.pagePosition===a)||this.pageArea.children.find(e=>"any"===e.oddOrEven&&e.pagePosition===a)||this.pageArea.children.find(e=>"any"===e.oddOrEven&&"any"===e.pagePosition)||this.pageArea.children[0]}}class st extends s.XFAObject{constructor(e){super(r,"para",!0),this.hAlign=(0,b.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.lineHeight=e.lineHeight?(0,b.getMeasurement)(e.lineHeight,"0pt"):"",this.marginLeft=e.marginLeft?(0,b.getMeasurement)(e.marginLeft,"0pt"):"",this.marginRight=e.marginRight?(0,b.getMeasurement)(e.marginRight,"0pt"):"",this.orphans=(0,b.getInteger)({data:e.orphans,defaultValue:0,validate:e=>0<=e}),this.preserve=e.preserve||"",this.radixOffset=e.radixOffset?(0,b.getMeasurement)(e.radixOffset,"0pt"):"",this.spaceAbove=e.spaceAbove?(0,b.getMeasurement)(e.spaceAbove,"0pt"):"",this.spaceBelow=e.spaceBelow?(0,b.getMeasurement)(e.spaceBelow,"0pt"):"",this.tabDefault=e.tabDefault?(0,b.getMeasurement)(this.tabDefault):"",this.tabStops=(e.tabStops||"").trim().split(/\s+/).map((e,t)=>t%2==1?(0,b.getMeasurement)(e):e),this.textIndent=e.textIndent?(0,b.getMeasurement)(e.textIndent,"0pt"):"",this.use=e.use||"",this.usehref=e.usehref||"",this.vAlign=(0,b.getStringOption)(e.vAlign,["top","bottom","middle"]),this.widows=(0,b.getInteger)({data:e.widows,defaultValue:0,validate:e=>0<=e}),this.hyphenation=null}[g.$toStyle](){var e=(0,m.toStyle)(this,"hAlign");return""!==this.marginLeft&&(e.paddingLeft=(0,m.measureToString)(this.marginLeft)),""!==this.marginRight&&(e.paddingight=(0,m.measureToString)(this.marginRight)),""!==this.spaceAbove&&(e.paddingTop=(0,m.measureToString)(this.spaceAbove)),""!==this.spaceBelow&&(e.paddingBottom=(0,m.measureToString)(this.spaceBelow)),""!==this.textIndent&&(e.textIndent=(0,m.measureToString)(this.textIndent),(0,m.fixTextIndent)(e)),0<this.lineHeight&&(e.lineHeight=(0,m.measureToString)(this.lineHeight)),""!==this.tabDefault&&(e.tabSize=(0,m.measureToString)(this.tabDefault)),this.tabStops.length,this.hyphenatation&&Object.assign(e,this.hyphenatation[g.$toStyle]()),e}}class ot extends s.XFAObject{constructor(e){super(r,"passwordEdit",!0),this.hScrollPolicy=(0,b.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.passwordChar=e.passwordChar||"*",this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.margin=null}}class lt extends s.XFAObject{constructor(e){super(r,"pattern",!0),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[g.$toStyle](e){e=e?e[g.$toStyle]():"#FFFFFF";var t=this.color?this.color[g.$toStyle]():"#000000",a="repeating-linear-gradient",r=e+`,${e} 5px,${t} 5px,${t} 10px`;switch(this.type){case"crossHatch":return a+`(to top,${r}) ${a}(to right,${r})`;case"crossDiagonal":return a+`(45deg,${r}) ${a}(-45deg,${r})`;case"diagonalLeft":return a+`(45deg,${r})`;case"diagonalRight":return a+`(-45deg,${r})`;case"horizontal":return a+`(to top,${r})`;case"vertical":return a+`(to right,${r})`}return""}}class ct extends s.StringObject{constructor(e){super(r,"picture"),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class ht extends s.XFAObject{constructor(e){super(r,"proto",!0),this.appearanceFilter=new s.XFAObjectArray,this.arc=new s.XFAObjectArray,this.area=new s.XFAObjectArray,this.assist=new s.XFAObjectArray,this.barcode=new s.XFAObjectArray,this.bindItems=new s.XFAObjectArray,this.bookend=new s.XFAObjectArray,this.boolean=new s.XFAObjectArray,this.border=new s.XFAObjectArray,this.break=new s.XFAObjectArray,this.breakAfter=new s.XFAObjectArray,this.breakBefore=new s.XFAObjectArray,this.button=new s.XFAObjectArray,this.calculate=new s.XFAObjectArray,this.caption=new s.XFAObjectArray,this.certificate=new s.XFAObjectArray,this.certificates=new s.XFAObjectArray,this.checkButton=new s.XFAObjectArray,this.choiceList=new s.XFAObjectArray,this.color=new s.XFAObjectArray,this.comb=new s.XFAObjectArray,this.connect=new s.XFAObjectArray,this.contentArea=new s.XFAObjectArray,this.corner=new s.XFAObjectArray,this.date=new s.XFAObjectArray,this.dateTime=new s.XFAObjectArray,this.dateTimeEdit=new s.XFAObjectArray,this.decimal=new s.XFAObjectArray,this.defaultUi=new s.XFAObjectArray,this.desc=new s.XFAObjectArray,this.digestMethod=new s.XFAObjectArray,this.digestMethods=new s.XFAObjectArray,this.draw=new s.XFAObjectArray,this.edge=new s.XFAObjectArray,this.encoding=new s.XFAObjectArray,this.encodings=new s.XFAObjectArray,this.encrypt=new s.XFAObjectArray,this.encryptData=new s.XFAObjectArray,this.encryption=new s.XFAObjectArray,this.encryptionMethod=new s.XFAObjectArray,this.encryptionMethods=new s.XFAObjectArray,this.event=new s.XFAObjectArray,this.exData=new s.XFAObjectArray,this.exObject=new s.XFAObjectArray,this.exclGroup=new s.XFAObjectArray,this.execute=new s.XFAObjectArray,this.extras=new s.XFAObjectArray,this.field=new s.XFAObjectArray,this.fill=new s.XFAObjectArray,this.filter=new s.XFAObjectArray,this.float=new s.XFAObjectArray,this.font=new s.XFAObjectArray,this.format=new s.XFAObjectArray,this.handler=new s.XFAObjectArray,this.hyphenation=new s.XFAObjectArray,this.image=new s.XFAObjectArray,this.imageEdit=new s.XFAObjectArray,this.integer=new s.XFAObjectArray,this.issuers=new s.XFAObjectArray,this.items=new s.XFAObjectArray,this.keep=new s.XFAObjectArray,this.keyUsage=new s.XFAObjectArray,this.line=new s.XFAObjectArray,this.linear=new s.XFAObjectArray,this.lockDocument=new s.XFAObjectArray,this.manifest=new s.XFAObjectArray,this.margin=new s.XFAObjectArray,this.mdp=new s.XFAObjectArray,this.medium=new s.XFAObjectArray,this.message=new s.XFAObjectArray,this.numericEdit=new s.XFAObjectArray,this.occur=new s.XFAObjectArray,this.oid=new s.XFAObjectArray,this.oids=new s.XFAObjectArray,this.overflow=new s.XFAObjectArray,this.pageArea=new s.XFAObjectArray,this.pageSet=new s.XFAObjectArray,this.para=new s.XFAObjectArray,this.passwordEdit=new s.XFAObjectArray,this.pattern=new s.XFAObjectArray,this.picture=new s.XFAObjectArray,this.radial=new s.XFAObjectArray,this.reason=new s.XFAObjectArray,this.reasons=new s.XFAObjectArray,this.rectangle=new s.XFAObjectArray,this.ref=new s.XFAObjectArray,this.script=new s.XFAObjectArray,this.setProperty=new s.XFAObjectArray,this.signData=new s.XFAObjectArray,this.signature=new s.XFAObjectArray,this.signing=new s.XFAObjectArray,this.solid=new s.XFAObjectArray,this.speak=new s.XFAObjectArray,this.stipple=new s.XFAObjectArray,this.subform=new s.XFAObjectArray,this.subformSet=new s.XFAObjectArray,this.subjectDN=new s.XFAObjectArray,this.subjectDNs=new s.XFAObjectArray,this.submit=new s.XFAObjectArray,this.text=new s.XFAObjectArray,this.textEdit=new s.XFAObjectArray,this.time=new s.XFAObjectArray,this.timeStamp=new s.XFAObjectArray,this.toolTip=new s.XFAObjectArray,this.traversal=new s.XFAObjectArray,this.traverse=new s.XFAObjectArray,this.ui=new s.XFAObjectArray,this.validate=new s.XFAObjectArray,this.value=new s.XFAObjectArray,this.variables=new s.XFAObjectArray}}class ut extends s.XFAObject{constructor(e){super(r,"radial",!0),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["toEdge","toCenter"]),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[g.$toStyle](e){e=e?e[g.$toStyle]():"#FFFFFF";var t=this.color?this.color[g.$toStyle]():"#000000";return`radial-gradient(circle at center, ${"toEdge"===this.type?e+","+t:t+","+e})`}}class dt extends s.StringObject{constructor(e){super(r,"reason"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class ft extends s.XFAObject{constructor(e){super(r,"reasons",!0),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.reason=new s.XFAObjectArray}}class gt extends s.XFAObject{constructor(e){super(r,"rectangle",!0),this.hand=(0,b.getStringOption)(e.hand,["even","left","right"]),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.corner=new s.XFAObjectArray(4),this.edge=new s.XFAObjectArray(4),this.fill=null}[g.$toHTML](){var e=this.edge.children.length?this.edge.children[0]:new O({}),t=e[g.$toStyle](),a=Object.create(null),e=("visible"===this.fill?.presence?Object.assign(a,this.fill[g.$toStyle]()):a.fill="transparent",a.strokeWidth=(0,m.measureToString)("visible"===e.presence?e.thickness:0),a.stroke=t.color,(this.corner.children.length?this.corner.children[0]:new he({}))[g.$toStyle]()),t={name:"svg",children:[{name:"rect",attributes:{xmlns:h,width:"100%",height:"100%",x:0,y:0,rx:e.radius,ry:e.radius,style:a}}],attributes:{xmlns:h,style:{overflow:"visible"},width:"100%",height:"100%"}};return u(this[g.$getParent]()[g.$getParent]())?b.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[t]}):(t.attributes.style.position="absolute",b.HTMLResult.success(t))}}class pt extends s.StringObject{constructor(e){super(r,"ref"),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||""}}class mt extends s.StringObject{constructor(e){super(r,"script"),this.binding=e.binding||"",this.contentType=e.contentType||"",this.id=e.id||"",this.name=e.name||"",this.runAt=(0,b.getStringOption)(e.runAt,["client","both","server"]),this.use=e.use||"",this.usehref=e.usehref||""}}class bt extends s.XFAObject{constructor(e){super(r,"setProperty"),this.connection=e.connection||"",this.ref=e.ref||"",this.target=e.target||""}}e.SetProperty=bt;class yt extends s.XFAObject{constructor(e){super(r,"signData",!0),this.id=e.id||"",this.operation=(0,b.getStringOption)(e.operation,["sign","clear","verify"]),this.ref=e.ref||"",this.target=e.target||"",this.use=e.use||"",this.usehref=e.usehref||"",this.filter=null,this.manifest=null}}class wt extends s.XFAObject{constructor(e){super(r,"signature",!0),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["PDF1.3","PDF1.6"]),this.use=e.use||"",this.usehref=e.usehref||"",this.border=null,this.extras=null,this.filter=null,this.manifest=null,this.margin=null}}class vt extends s.XFAObject{constructor(e){super(r,"signing",!0),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.certificate=new s.XFAObjectArray}}class xt extends s.XFAObject{constructor(e){super(r,"solid",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null}[g.$toStyle](e){return e?e[g.$toStyle]():"#FFFFFF"}}class St extends s.StringObject{constructor(e){super(r,"speak"),this.disable=(0,b.getInteger)({data:e.disable,defaultValue:0,validate:e=>1===e}),this.id=e.id||"",this.priority=(0,b.getStringOption)(e.priority,["custom","caption","name","toolTip"]),this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}}class At extends s.XFAObject{constructor(e){super(r,"stipple",!0),this.id=e.id||"",this.rate=(0,b.getInteger)({data:e.rate,defaultValue:50,validate:e=>0<=e&&e<=100}),this.use=e.use||"",this.usehref=e.usehref||"",this.color=null,this.extras=null}[g.$toStyle](e){var t=this.rate/100;return y.Util.makeHexColor(Math.round(e.value.r*(1-t)+this.value.r*t),Math.round(e.value.g*(1-t)+this.value.g*t),Math.round(e.value.b*(1-t)+this.value.b*t))}}class kt extends s.XFAObject{constructor(e){super(r,"subform",!0),this.access=(0,b.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]),this.allowMacro=(0,b.getInteger)({data:e.allowMacro,defaultValue:0,validate:e=>1===e}),this.anchorType=(0,b.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]),this.colSpan=(0,b.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>1<=e||-1===e}),this.columnWidths=(e.columnWidths||"").trim().split(/\s+/).map(e=>"-1"===e?-1:(0,b.getMeasurement)(e)),this.h=e.h?(0,b.getMeasurement)(e.h):"",this.hAlign=(0,b.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]),this.id=e.id||"",this.layout=(0,b.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]),this.locale=e.locale||"",this.maxH=(0,b.getMeasurement)(e.maxH,"0pt"),this.maxW=(0,b.getMeasurement)(e.maxW,"0pt"),this.mergeMode=(0,b.getStringOption)(e.mergeMode,["consumeData","matchTemplate"]),this.minH=(0,b.getMeasurement)(e.minH,"0pt"),this.minW=(0,b.getMeasurement)(e.minW,"0pt"),this.name=e.name||"",this.presence=(0,b.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]),this.relevant=(0,b.getRelevant)(e.relevant),this.restoreState=(0,b.getStringOption)(e.restoreState,["manual","auto"]),this.scope=(0,b.getStringOption)(e.scope,["name","none"]),this.use=e.use||"",this.usehref=e.usehref||"",this.w=e.w?(0,b.getMeasurement)(e.w):"",this.x=(0,b.getMeasurement)(e.x,"0pt"),this.y=(0,b.getMeasurement)(e.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 s.XFAObjectArray,this.breakAfter=new s.XFAObjectArray,this.breakBefore=new s.XFAObjectArray,this.connect=new s.XFAObjectArray,this.draw=new s.XFAObjectArray,this.event=new s.XFAObjectArray,this.exObject=new s.XFAObjectArray,this.exclGroup=new s.XFAObjectArray,this.field=new s.XFAObjectArray,this.proto=new s.XFAObjectArray,this.setProperty=new s.XFAObjectArray,this.subform=new s.XFAObjectArray,this.subformSet=new s.XFAObjectArray}[g.$getSubformParent](){var e=this[g.$getParent]();return e instanceof P?e[g.$getSubformParent]():e}[g.$isBindable](){return!0}[g.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[g.$extra].attempt&&0<this[g.$extra].numberInLine||this[g.$getParent]()[g.$isThereMoreWidth]()}*[g.$getContainedChildren](){yield*n(this)}[g.$flushHTML](){return(0,p.flushHTML)(this)}[g.$addHTML](e,t){(0,p.addHTML)(this,e,t)}[g.$getAvailableSpace](){return(0,p.getAvailableSpace)(this)}[g.$isSplittable](){var e=this[g.$getSubformParent]();return!!e[g.$isSplittable]()&&(void 0!==this[g.$extra]._isSplittable?this[g.$extra]._isSplittable:"position"===this.layout||this.layout.includes("row")||this.keep&&"none"!==this.keep.intact?this[g.$extra]._isSplittable=!1:!(e.layout?.endsWith("-tb")&&0!==e[g.$extra].numberInLine||(this[g.$extra]._isSplittable=!0,0)))}[g.$toHTML](e){if(v(this),this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){const e=new J({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});e[g.$globalData]=this[g.$globalData],this[g.$appendChild](e),this.breakAfter.push(e)}if("auto"!==this.break.before||""!==this.break.beforeTarget){const e=new Q({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});e[g.$globalData]=this[g.$globalData],this[g.$appendChild](e),this.breakBefore.push(e)}if(""!==this.break.overflowTarget){const e=new nt({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});e[g.$globalData]=this[g.$globalData],this[g.$appendChild](e),this.overflow.push(e)}this[g.$removeChild](this.break),this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return b.HTMLResult.EMPTY;if((1<this.breakBefore.children.length||1<this.breakAfter.children.length)&&(0,y.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug."),1<=this.breakBefore.children.length){const e=this.breakBefore.children[0];if(k(e))return b.HTMLResult.breakNode(e)}if(this[g.$extra]?.afterBreakAfter)return b.HTMLResult.EMPTY;(0,m.fixDimensions)(this);const t=[],a={id:this[g.$uid],class:[]};(0,m.setAccess)(this,a.class),this[g.$extra]||(this[g.$extra]=Object.create(null)),Object.assign(this[g.$extra],{children:t,line:null,attributes:a,attempt:0,numberInLine:0,availableSpace:{width:Math.min(this.w||1/0,e.width),height:Math.min(this.h||1/0,e.height)},width:0,height:0,prevHeight:0,currentWidth:0});var r=this[g.$getTemplateRoot](),i=r[g.$extra].noLayoutFailure,n=this[g.$isSplittable]();if(n||S(this),!(0,p.checkDimensions)(this,e))return b.HTMLResult.FAILURE;var s=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){const e=this[g.$getSubformParent]().columnWidths;Array.isArray(e)&&0<e.length&&(this[g.$extra].columnWidths=e,this[g.$extra].currentColumn=0)}var o=(0,m.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),l=["xfaSubform"],c=(0,m.layoutClass)(this);if(c&&l.push(c),a.style=o,a.class=l,this.name&&(a.xfaName=this.name),this.overflow){const t=this.overflow[g.$getExtra]();t.addLeader&&(t.addLeader=!1,C(this,t.leader,e))}this[g.$pushPara]();for(var h="lr-tb"===this.layout||"rl-tb"===this.layout,u=h?2:1;this[g.$extra].attempt<u;this[g.$extra].attempt++){h&&1===this[g.$extra].attempt&&(this[g.$extra].numberInLine=0);const e=this[g.$childrenToHTML]({filter:s,include:!0});if(e.success)break;if(e.isBreak())return this[g.$popPara](),e;if(h&&0===this[g.$extra].attempt&&0===this[g.$extra].numberInLine&&!r[g.$extra].noLayoutFailure){this[g.$extra].attempt=u;break}}if(this[g.$popPara](),n||A(this),r[g.$extra].noLayoutFailure=i,this[g.$extra].attempt===u)return this.overflow&&(this[g.$getTemplateRoot]()[g.$extra].overflowNode=this.overflow),n||delete this[g.$extra],b.HTMLResult.FAILURE;if(this.overflow){const t=this.overflow[g.$getExtra]();t.addTrailer&&(t.addTrailer=!1,C(this,t.trailer,e))}let d=0,f=0;this.margin&&(d=this.margin.leftInset+this.margin.rightInset,f=this.margin.topInset+this.margin.bottomInset);c=Math.max(this[g.$extra].width+d,this.w||0),l=Math.max(this[g.$extra].height+f,this.h||0),i=[this.x,this.y,c,l];if(""===this.w&&(o.width=(0,m.measureToString)(c)),""===this.h&&(o.height=(0,m.measureToString)(l)),("0px"===o.width||"0px"===o.height)&&0===t.length)return b.HTMLResult.EMPTY;n={name:"div",attributes:a,children:t},x(this,a),c=b.HTMLResult.success((0,m.createWrapper)(this,n),i);if(1<=this.breakAfter.children.length){const e=this.breakAfter.children[0];if(k(e))return this[g.$extra].afterBreakAfter=c,b.HTMLResult.breakNode(e)}return delete this[g.$extra],c}}class P extends s.XFAObject{constructor(e){super(r,"subformSet",!0),this.id=e.id||"",this.name=e.name||"",this.relation=(0,b.getStringOption)(e.relation,["ordered","choice","unordered"]),this.relevant=(0,b.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.usehref||"",this.bookend=null,this.break=null,this.desc=null,this.extras=null,this.occur=null,this.overflow=null,this.breakAfter=new s.XFAObjectArray,this.breakBefore=new s.XFAObjectArray,this.subform=new s.XFAObjectArray,this.subformSet=new s.XFAObjectArray}*[g.$getContainedChildren](){yield*n(this)}[g.$getSubformParent](){let e=this[g.$getParent]();for(;!(e instanceof kt);)e=e[g.$getParent]();return e}[g.$isBindable](){return!0}}class Ct extends s.ContentObject{constructor(e){super(r,"subjectDN"),this.delimiter=e.delimiter||",",this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[g.$finalize](){this[g.$content]=new Map(this[g.$content].split(this.delimiter).map(e=>((e=e.split("=",2))[0]=e[0].trim(),e)))}}class Ft extends s.XFAObject{constructor(e){super(r,"subjectDNs",!0),this.id=e.id||"",this.type=(0,b.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||"",this.subjectDN=new s.XFAObjectArray}}class Ot extends s.XFAObject{constructor(e){super(r,"submit",!0),this.embedPDF=(0,b.getInteger)({data:e.embedPDF,defaultValue:0,validate:e=>1===e}),this.format=(0,b.getStringOption)(e.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]),this.id=e.id||"",this.target=e.target||"",this.textEncoding=(0,b.getKeyword)({data:e.textEncoding?e.textEncoding.toLowerCase():"",defaultValue:"",validate:e=>["utf-8","big-five","fontspecific","gbk","gb-18030","gb-2312","ksc-5601","none","shift-jis","ucs-2","utf-16"].includes(e)||e.match(/iso-8859-\d{2}/)}),this.use=e.use||"",this.usehref=e.usehref||"",this.xdpContent=e.xdpContent||"",this.encrypt=null,this.encryptData=new s.XFAObjectArray,this.signData=new s.XFAObjectArray}}class N extends s.XFAObject{constructor(e){super(r,"template",!0),this.baseProfile=(0,b.getStringOption)(e.baseProfile,["full","interactiveForms"]),this.extras=null,this.subform=new s.XFAObjectArray}[g.$finalize](){0===this.subform.children.length&&(0,y.warn)("XFA - No subforms in template node."),2<=this.subform.children.length&&(0,y.warn)("XFA - Several subforms in template node: please file a bug."),this[g.$tabIndex]=5e3}[g.$isSplittable](){return!0}[g.$searchNode](e,t){return e.startsWith("#")?[this[g.$ids].get(e.slice(1))]:(0,_.searchNode)(this,t,e,!0,!0)}*[g.$toPages](){if(!this.subform.children.length)return b.HTMLResult.success({name:"div",children:[]});this[g.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};const a=this.subform.children[0],e=(a.pageSet[g.$cleanPage](),a.pageSet.pageArea.children),r={name:"div",children:[]};let i=null,n=null,s=null;if(1<=a.breakBefore.children.length?(n=a.breakBefore.children[0],s=n.target):1<=a.subform.children.length&&1<=a.subform.children[0].breakBefore.children.length?(n=a.subform.children[0].breakBefore.children[0],s=n.target):a.break?.beforeTarget?(n=a.break,s=n.beforeTarget):1<=a.subform.children.length&&a.subform.children[0].break?.beforeTarget&&(n=a.subform.children[0].break,s=n.beforeTarget),n){const a=this[g.$searchNode](s,n[g.$getParent]());a instanceof T&&(i=a,n[g.$extra]={})}(i=i||e[0])[g.$extra]={numberOfUse:1};const o=i[g.$getParent]();let l,c=(o[g.$extra]={numberOfUse:1,pageIndex:o.pageArea.children.indexOf(i),pageSetIndex:0},null),h=null,u=!0,t=0,d=0;for(;;){if(u)t=0;else if(r.children.pop(),3==++t)return(0,y.warn)("XFA - Something goes wrong: please file a bug."),r;l=null;const e=(this[g.$extra].currentPageArea=i)[g.$toHTML]().html,n=(r.children.push(e),c&&(this[g.$extra].noLayoutFailure=!0,e.children.push(c[g.$toHTML](i[g.$extra].space).html),c=null),h&&(this[g.$extra].noLayoutFailure=!0,e.children.push(h[g.$toHTML](i[g.$extra].space).html),h=null),i.contentArea.children),s=e.children.filter(e=>e.attributes.class.includes("xfaContentarea")),o=(u=!1,this[g.$extra].firstUnsplittable=null,this[g.$extra].noLayoutFailure=!1,e=>{var t=a[g.$flushHTML]();t&&(u||=0<t.children?.length,s[e].children.push(t))});for(let e=d,t=n.length;e<t;e++){const i=this[g.$extra].currentContentArea=n[e],b={width:i.w,height:i.h},y=(d=0,c&&(s[e].children.push(c[g.$toHTML](b).html),c=null),h&&(s[e].children.push(h[g.$toHTML](b).html),h=null),a[g.$toHTML](b));if(y.success)return y.html?(u||=0<y.html.children?.length,s[e].children.push(y.html)):!u&&1<r.children.length&&r.children.pop(),r;if(y.isBreak()){const a=y.breakNode;o(e),"auto"!==a.targetType&&(a.leader&&(c=(c=this[g.$searchNode](a.leader,a[g.$getParent]()))?c[0]:null),a.trailer&&(h=(h=this[g.$searchNode](a.trailer,a[g.$getParent]()))?h[0]:null),e="pageArea"===a.targetType?(l=a[g.$extra].target,1/0):a[g.$extra].target?(l=a[g.$extra].target,d=a[g.$extra].index+1,1/0):a[g.$extra].index)}else if(this[g.$extra].overflowNode){const a=this[g.$extra].overflowNode,r=(this[g.$extra].overflowNode=null,a[g.$getExtra]()),i=r.target,s=(r.addLeader=null!==r.leader,r.addTrailer=null!==r.trailer,o(e),e);if(e=1/0,i instanceof T)l=i;else if(i instanceof F){const a=n.indexOf(i);-1!==a?a>s?e=a-1:d=a:(l=i[g.$getParent](),d=l.contentArea.children.indexOf(i))}}else o(e)}this[g.$extra].pageNumber+=1,l&&(l[g.$isUsable]()?l[g.$extra].numberOfUse+=1:l=null),i=l||i[g.$getNextPage](),yield null}}}e.Template=N;class It extends s.ContentObject{constructor(e){super(r,"text"),this.id=e.id||"",this.maxChars=(0,b.getInteger)({data:e.maxChars,defaultValue:0,validate:e=>0<=e}),this.name=e.name||"",this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}[g.$acceptWhitespace](){return!0}[g.$onChild](e){return e[g.$namespaceId]===a.NamespaceIds.xhtml.id?(this[g.$content]=e,!0):((0,y.warn)(`XFA - Invalid content in Text: ${e[g.$nodeName]}.`),!1)}[g.$onText](e){this[g.$content]instanceof s.XFAObject||super[g.$onText](e)}[g.$finalize](){"string"==typeof this[g.$content]&&(this[g.$content]=this[g.$content].replaceAll("\r\n","\n"))}[g.$getExtra](){return"string"==typeof this[g.$content]?this[g.$content].split(/[\u2029\u2028\n]/).reduce((e,t)=>(t&&e.push(t),e),[]).join("\n"):this[g.$content][g.$text]()}[g.$toHTML](t){if("string"!=typeof this[g.$content])return this[g.$content][g.$toHTML](t);{const t=o(this[g.$content]).html;return this[g.$content].includes("\u2029")?(t.name="div",t.children=[],this[g.$content].split("\u2029").map(e=>e.split(/[\u2028\n]/).reduce((e,t)=>(e.push({name:"span",value:t},{name:"br"}),e),[])).forEach(e=>{t.children.push({name:"p",children:e})})):/[\u2028\n]/.test(this[g.$content])&&(t.name="div",t.children=[],this[g.$content].split(/[\u2028\n]/).forEach(e=>{t.children.push({name:"span",value:e},{name:"br"})})),b.HTMLResult.success(t)}}}e.Text=It;class Tt extends s.XFAObject{constructor(e){super(r,"textEdit",!0),this.allowRichText=(0,b.getInteger)({data:e.allowRichText,defaultValue:0,validate:e=>1===e}),this.hScrollPolicy=(0,b.getStringOption)(e.hScrollPolicy,["auto","off","on"]),this.id=e.id||"",this.multiLine=(0,b.getInteger)({data:e.multiLine,defaultValue:"",validate:e=>0===e||1===e}),this.use=e.use||"",this.usehref=e.usehref||"",this.vScrollPolicy=(0,b.getStringOption)(e.vScrollPolicy,["auto","off","on"]),this.border=null,this.comb=null,this.extras=null,this.margin=null}[g.$toHTML](e){var t=(0,m.toStyle)(this,"border","font","margin"),a=this[g.$getParent]()[g.$getParent]();return""===this.multiLine&&(this.multiLine=a instanceof we?1:0),t=1===this.multiLine?{name:"textarea",attributes:{dataId:a[g.$data]?.[g.$uid]||a[g.$uid],fieldId:a[g.$uid],class:["xfaTextfield"],style:t,"aria-label":f(a),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:a[g.$data]?.[g.$uid]||a[g.$uid],fieldId:a[g.$uid],class:["xfaTextfield"],style:t,"aria-label":f(a),"aria-required":!1}},d(a)&&(t.attributes["aria-required"]=!0,t.attributes.required=!0),b.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[t]})}}class Mt extends s.StringObject{constructor(e){super(r,"time"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}[g.$finalize](){var e=this[g.$content].trim();this[g.$content]=e?new Date(e):null}[g.$toHTML](e){return o(this[g.$content]?this[g.$content].toString():"")}}class Pt extends s.XFAObject{constructor(e){super(r,"timeStamp"),this.id=e.id||"",this.server=e.server||"",this.type=(0,b.getStringOption)(e.type,["optional","required"]),this.use=e.use||"",this.usehref=e.usehref||""}}class Nt extends s.StringObject{constructor(e){super(r,"toolTip"),this.id=e.id||"",this.rid=e.rid||"",this.use=e.use||"",this.usehref=e.usehref||""}}class Et extends s.XFAObject{constructor(e){super(r,"traversal",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.traverse=new s.XFAObjectArray}}class Dt extends s.XFAObject{constructor(e){super(r,"traverse",!0),this.id=e.id||"",this.operation=(0,b.getStringOption)(e.operation,["next","back","down","first","left","right","up"]),this.ref=e.ref||"",this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.script=null}get name(){return this.operation}[g.$isTransparent](){return!1}}class E extends s.XFAObject{constructor(e){super(r,"ui",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.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}[g.$getExtra](){if(void 0===this[g.$extra]){for(const t of Object.getOwnPropertyNames(this))if("extras"!==t&&"picture"!==t){var e=this[t];if(e instanceof s.XFAObject)return this[g.$extra]=e}this[g.$extra]=null}return this[g.$extra]}[g.$toHTML](e){var t=this[g.$getExtra]();return t?t[g.$toHTML](e):b.HTMLResult.EMPTY}}class Bt extends s.XFAObject{constructor(e){super(r,"validate",!0),this.formatTest=(0,b.getStringOption)(e.formatTest,["warning","disabled","error"]),this.id=e.id||"",this.nullTest=(0,b.getStringOption)(e.nullTest,["disabled","error","warning"]),this.scriptTest=(0,b.getStringOption)(e.scriptTest,["error","disabled","warning"]),this.use=e.use||"",this.usehref=e.usehref||"",this.extras=null,this.message=null,this.picture=null,this.script=null}}class D extends s.XFAObject{constructor(e){super(r,"value",!0),this.id=e.id||"",this.override=(0,b.getInteger)({data:e.override,defaultValue:0,validate:e=>1===e}),this.relevant=(0,b.getRelevant)(e.relevant),this.use=e.use||"",this.usehref=e.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}[g.$setValue](e){const t=this[g.$getParent]();if(t instanceof I&&t.ui?.imageEdit)this.image||(this.image=new je({}),this[g.$appendChild](this.image)),this.image[g.$content]=e[g.$content];else{var a=e[g.$nodeName];if(null===this[a]){for(const e of Object.getOwnPropertyNames(this)){const t=this[e];t instanceof s.XFAObject&&(this[e]=null,this[g.$removeChild](t))}this[e[g.$nodeName]]=e,this[g.$appendChild](e)}else this[a][g.$content]=e[g.$content]}}[g.$text](){if(this.exData)return("string"==typeof this.exData[g.$content]?this.exData[g.$content]:this.exData[g.$content][g.$text]()).trim();for(const t of Object.getOwnPropertyNames(this))if("image"!==t){var e=this[t];if(e instanceof s.XFAObject)return(e[g.$content]||"").toString().trim()}return null}[g.$toHTML](e){for(const a of Object.getOwnPropertyNames(this)){var t=this[a];if(t instanceof s.XFAObject)return t[g.$toHTML](e)}return b.HTMLResult.EMPTY}}e.Value=D;class Rt extends s.XFAObject{constructor(e){super(r,"variables",!0),this.id=e.id||"",this.use=e.use||"",this.usehref=e.usehref||"",this.boolean=new s.XFAObjectArray,this.date=new s.XFAObjectArray,this.dateTime=new s.XFAObjectArray,this.decimal=new s.XFAObjectArray,this.exData=new s.XFAObjectArray,this.float=new s.XFAObjectArray,this.image=new s.XFAObjectArray,this.integer=new s.XFAObjectArray,this.manifest=new s.XFAObjectArray,this.script=new s.XFAObjectArray,this.text=new s.XFAObjectArray,this.time=new s.XFAObjectArray}[g.$isTransparent](){return!0}}class B{static[a.$buildXFAObject](e,t){if(B.hasOwnProperty(e))return(e=B[e](t))[g.$setSetAttributes](t),e}static appearanceFilter(e){return new H(e)}static arc(e){return new l(e)}static area(e){return new q(e)}static assist(e){return new z(e)}static barcode(e){return new G(e)}static bind(e){return new W(e)}static bindItems(e){return new c(e)}static bookend(e){return new V(e)}static boolean(e){return new K(e)}static border(e){return new Y(e)}static break(e){return new Z(e)}static breakAfter(e){return new J(e)}static breakBefore(e){return new Q(e)}static button(e){return new ee(e)}static calculate(e){return new te(e)}static caption(e){return new ae(e)}static certificate(e){return new re(e)}static certificates(e){return new ie(e)}static checkButton(e){return new ne(e)}static choiceList(e){return new se(e)}static color(e){return new oe(e)}static comb(e){return new le(e)}static connect(e){return new ce(e)}static contentArea(e){return new F(e)}static corner(e){return new he(e)}static date(e){return new ue(e)}static dateTime(e){return new de(e)}static dateTimeEdit(e){return new fe(e)}static decimal(e){return new ge(e)}static defaultUi(e){return new pe(e)}static desc(e){return new me(e)}static digestMethod(e){return new be(e)}static digestMethods(e){return new ye(e)}static draw(e){return new we(e)}static edge(e){return new O(e)}static encoding(e){return new ve(e)}static encodings(e){return new xe(e)}static encrypt(e){return new Se(e)}static encryptData(e){return new Ae(e)}static encryption(e){return new ke(e)}static encryptionMethod(e){return new Ce(e)}static encryptionMethods(e){return new Fe(e)}static event(e){return new Oe(e)}static exData(e){return new Ie(e)}static exObject(e){return new Te(e)}static exclGroup(e){return new Me(e)}static execute(e){return new Pe(e)}static extras(e){return new Ne(e)}static field(e){return new I(e)}static fill(e){return new Ee(e)}static filter(e){return new De(e)}static float(e){return new Be(e)}static font(e){return new Re(e)}static format(e){return new Le(e)}static handler(e){return new $e(e)}static hyphenation(e){return new _e(e)}static image(e){return new je(e)}static imageEdit(e){return new Ue(e)}static integer(e){return new Xe(e)}static issuers(e){return new He(e)}static items(e){return new qe(e)}static keep(e){return new ze(e)}static keyUsage(e){return new Ge(e)}static line(e){return new We(e)}static linear(e){return new Ve(e)}static lockDocument(e){return new Ke(e)}static manifest(e){return new Ye(e)}static margin(e){return new Ze(e)}static mdp(e){return new Je(e)}static medium(e){return new Qe(e)}static message(e){return new et(e)}static numericEdit(e){return new tt(e)}static occur(e){return new at(e)}static oid(e){return new rt(e)}static oids(e){return new it(e)}static overflow(e){return new nt(e)}static pageArea(e){return new T(e)}static pageSet(e){return new M(e)}static para(e){return new st(e)}static passwordEdit(e){return new ot(e)}static pattern(e){return new lt(e)}static picture(e){return new ct(e)}static proto(e){return new ht(e)}static radial(e){return new ut(e)}static reason(e){return new dt(e)}static reasons(e){return new ft(e)}static rectangle(e){return new gt(e)}static ref(e){return new pt(e)}static script(e){return new mt(e)}static setProperty(e){return new bt(e)}static signData(e){return new yt(e)}static signature(e){return new wt(e)}static signing(e){return new vt(e)}static solid(e){return new xt(e)}static speak(e){return new St(e)}static stipple(e){return new At(e)}static subform(e){return new kt(e)}static subformSet(e){return new P(e)}static subjectDN(e){return new Ct(e)}static subjectDNs(e){return new Ft(e)}static submit(e){return new Ot(e)}static template(e){return new N(e)}static text(e){return new It(e)}static textEdit(e){return new Tt(e)}static time(e){return new Mt(e)}static timeStamp(e){return new Pt(e)}static toolTip(e){return new Nt(e)}static traversal(e){return new Et(e)}static traverse(e){return new Dt(e)}static ui(e){return new E(e)}static validate(e){return new Bt(e)}static value(e){return new D(e)}static variables(e){return new Rt(e)}}e.TemplateNamespace=B},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceIds=t.$buildXFAObject=void 0;var a=Symbol();t.$buildXFAObject=a,t.NamespaceIds={config:{id:0,check:e=>e.startsWith("http://www.xfa.org/schema/xci/")},connectionSet:{id:1,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-connection-set/")},datasets:{id:2,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-data/")},form:{id:3,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-form/")},localeSet:{id:4,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-locale-set/")},pdf:{id:5,check:e=>"http://ns.adobe.com/xdp/pdf/"===e},signature:{id:6,check:e=>"http://www.w3.org/2000/09/xmldsig#"===e},sourceSet:{id:7,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-source-set/")},stylesheet:{id:8,check:e=>"http://www.w3.org/1999/XSL/Transform"===e},template:{id:9,check:e=>e.startsWith("http://www.xfa.org/schema/xfa-template/")},xdc:{id:10,check:e=>e.startsWith("http://www.xfa.org/schema/xdc/")},xdp:{id:11,check:e=>"http://ns.adobe.com/xdp/"===e},xfdf:{id:12,check:e=>"http://ns.adobe.com/xfdf/"===e},xhtml:{id:13,check:e=>"http://www.w3.org/1999/xhtml"===e},xmpmeta:{id:14,check:e=>"http://ns.adobe.com/xmpmeta/"===e}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addHTML=function(e,t,a){var r=e[c.$extra],i=r.availableSpace,[n,s,o,l]=a;switch(e.layout){case"position":r.width=Math.max(r.width,n+o),r.height=Math.max(r.height,s+l),r.children.push(t);break;case"lr-tb":case"rl-tb":r.line&&1!==r.attempt||(r.line=u(e,[]),r.children.push(r.line),r.numberInLine=0),r.numberInLine+=1,r.line.children.push(t),0===r.attempt?(r.currentWidth+=o,r.height=Math.max(r.height,r.prevHeight+l)):(r.currentWidth=o,r.prevHeight=r.height,r.height+=l,r.attempt=0),r.width=Math.max(r.width,r.currentWidth);break;case"rl-row":case"row":{r.children.push(t),r.width+=o,r.height=Math.max(r.height,l);const e=(0,h.measureToString)(r.height);for(const t of r.children)t.attributes.style.height=e;break}case"table":case"tb":r.width=Math.min(i.width,Math.max(r.width,o)),r.height+=l,r.children.push(t)}},t.checkDimensions=function(e,t){if(null===e[c.$getTemplateRoot]()[c.$extra].firstUnsplittable)return!0;if(0===e.w||0===e.h)return!0;var a=e[c.$getSubformParent](),r=a[c.$extra]?.attempt||0,[,i,n,s]=function(e){let t,a,r=""===e.w?NaN:e.w,i=""===e.h?NaN:e.h,[n,s]=[0,0];switch(e.anchorType||""){case"bottomCenter":[n,s]=[r/2,i];break;case"bottomLeft":[n,s]=[0,i];break;case"bottomRight":[n,s]=[r,i];break;case"middleCenter":[n,s]=[r/2,i/2];break;case"middleLeft":[n,s]=[0,i/2];break;case"middleRight":[n,s]=[r,i/2];break;case"topCenter":[n,s]=[r/2,0];break;case"topRight":[n,s]=[r,0]}switch(e.rotate||0){case 0:[t,a]=[-n,-s];break;case 90:[t,a]=[-s,n],[r,i]=[i,-r];break;case 180:[t,a]=[n,s],[r,i]=[-r,-i];break;case 270:[t,a]=[s,-n],[r,i]=[-i,r]}return[e.x+t+Math.min(0,r),e.y+a+Math.min(0,i),Math.abs(r),Math.abs(i)]}(e);switch(a.layout){case"lr-tb":case"rl-tb":return 0===r?e[c.$getTemplateRoot]()[c.$extra].noLayoutFailure?""!==e.w?Math.round(n-t.width)<=2:2<t.width:!(""!==e.h&&2<Math.round(s-t.height))&&(""!==e.w?Math.round(n-t.width)<=2||0===a[c.$extra].numberInLine&&2<t.height:2<t.width):!!e[c.$getTemplateRoot]()[c.$extra].noLayoutFailure||!(""!==e.h&&2<Math.round(s-t.height))&&(""===e.w||Math.round(n-t.width)<=2||!a[c.$isThereMoreWidth]())&&2<t.height;case"table":case"tb":return!!e[c.$getTemplateRoot]()[c.$extra].noLayoutFailure||(""===e.h||e[c.$isSplittable]()?(""===e.w||Math.round(n-t.width)<=2||!a[c.$isThereMoreWidth]())&&2<t.height:Math.round(s-t.height)<=2);case"position":return!!e[c.$getTemplateRoot]()[c.$extra].noLayoutFailure||""===e.h||Math.round(s+i-t.height)<=2||s+i>e[c.$getTemplateRoot]()[c.$extra].currentContentArea.h;case"rl-row":case"row":return!!e[c.$getTemplateRoot]()[c.$extra].noLayoutFailure||""===e.h||Math.round(s-t.height)<=2;default:return!0}},t.flushHTML=function(e){var t,a;return!e[c.$extra]||(t={name:"div",attributes:e[c.$extra].attributes,children:e[c.$extra].children},e[c.$extra].failingNode&&(a=e[c.$extra].failingNode[c.$flushHTML]())&&(e.layout.endsWith("-tb")?t.children.push(u(e,[a])):t.children.push(a)),0===t.children.length)?null:t},t.getAvailableSpace=function(e){var t=e[c.$extra].availableSpace,a=e.margin?e.margin.topInset+e.margin.bottomInset:0,r=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case"lr-tb":case"rl-tb":return 0===e[c.$extra].attempt?{width:t.width-r-e[c.$extra].currentWidth,height:t.height-a-e[c.$extra].prevHeight}:{width:t.width-r,height:t.height-a-e[c.$extra].height};case"rl-row":case"row":return{width:e[c.$extra].columnWidths.slice(e[c.$extra].currentColumn).reduce((e,t)=>e+t),height:t.height-r};case"table":case"tb":return{width:t.width-r,height:t.height-a-e[c.$extra].height};default:return t}};var c=a(78),h=a(83);function u(e,t){return{name:"div",attributes:{class:["lr-tb"===e.layout?"xfaLr":"xfaRl"]},children:t}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.computeBbox=function(a,r,i){let n;if(""!==a.w&&""!==a.h)n=[a.x,a.y,a.w,a.h];else{if(!i)return null;let e=a.w;if(""===e){if(0===a.maxW){const r=a[g.$getSubformParent]();e="position"===r.layout&&""!==r.w?0:a.minW}else e=Math.min(a.maxW,i.width);r.attributes.style.width=c(e)}let t=a.h;if(""===t){if(0===a.maxH){const r=a[g.$getSubformParent]();t="position"===r.layout&&""!==r.h?0:a.minH}else t=Math.min(a.maxH,i.height);r.attributes.style.height=c(t)}n=[a.x,a.y,e,t]}return n},t.createWrapper=function(i,n){const s=n["attributes"],o=s["style"],l={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};if(s.class.push("xfaWrapped"),i.border){const{widths:s,insets:f}=i.border[g.$extra];let e,t,a=f[0],r=f[3];var c=f[0]+f[2],h=f[1]+f[3];switch(i.border.hand){case"even":a-=s[0]/2,r-=s[3]/2,e=`calc(100% + ${(s[1]+s[3])/2-h}px)`,t=`calc(100% + ${(s[0]+s[2])/2-c}px)`;break;case"left":a-=s[0],r-=s[3],e=`calc(100% + ${s[1]+s[3]-h}px)`,t=`calc(100% + ${s[0]+s[2]-c}px)`;break;case"right":e=h?`calc(100% - ${h}px)`:"100%",t=c?`calc(100% - ${c}px)`:"100%"}var u=["xfaBorder"],d=(p(i.border)&&u.push("xfaPrintOnly"),{name:"div",attributes:{class:u,style:{top:a+"px",left:r+"px",width:e,height:t}},children:[]});for(const i of["border","borderWidth","borderColor","borderRadius","borderStyle"])void 0!==o[i]&&(d.attributes.style[i]=o[i],delete o[i]);l.children.push(d,n)}else l.children.push(n);for(const i of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])void 0!==o[i]&&(l.attributes.style[i]=o[i],delete o[i]);return l.attributes.style.position="absolute"===o.position?"absolute":"relative",delete o.position,o.alignSelf&&(l.attributes.style.alignSelf=o.alignSelf,delete o.alignSelf),l},t.fixDimensions=function(e){var t,a,r=e[g.$getSubformParent]();r.layout?.includes("row")&&(a=r[g.$extra],a=-1===(t=e.colSpan)?a.columnWidths.slice(a.currentColumn).reduce((e,t)=>e+t,0):a.columnWidths.slice(a.currentColumn,a.currentColumn+t).reduce((e,t)=>e+t,0),isNaN(a)||(e.w=a)),r.layout&&"position"!==r.layout&&(e.x=e.y=0),"table"===e.layout&&""===e.w&&Array.isArray(e.columnWidths)&&(e.w=e.columnWidths.reduce((e,t)=>e+t,0))},t.fixTextIndent=function(e){var t,a,r=(0,s.getMeasurement)(e.textIndent,"0px");0<=r||(t="padding"+("left"==("right"===e.textAlign?"right":"left")?"Left":"Right"),a=(0,s.getMeasurement)(e[t],"0px"),e[t]=a-r+"px")},t.fixURL=function(e){e=(0,i.createValidAbsoluteUrl)(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return e?e.href:null},t.isPrintOnly=p,t.layoutClass=function(e){switch(e.layout){case"position":default: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"}},t.layoutNode=function(n,s){let o=null,l=null,c=!1;if((!n.w||!n.h)&&n.value){let e=0,t=0,a=(n.margin&&(e=n.margin.leftInset+n.margin.rightInset,t=n.margin.topInset+n.margin.bottomInset),null),r=null,i=(n.para&&(r=Object.create(null),a=""===n.para.lineHeight?null:n.para.lineHeight,r.top=""===n.para.spaceAbove?0:n.para.spaceAbove,r.bottom=""===n.para.spaceBelow?0:n.para.spaceBelow,r.left=""===n.para.marginLeft?0:n.para.marginLeft,r.right=""===n.para.marginRight?0:n.para.marginRight),n.font);if(!i){const s=n[g.$getTemplateRoot]();let e=n[g.$getParent]();for(;e&&e!==s;){if(e.font){i=e.font;break}e=e[g.$getParent]()}}var h=(n.w||s.width)-e,u=n[g.$globalData].fontFinder;if(n.value.exData&&n.value.exData[g.$content]&&"text/html"===n.value.exData.contentType){const s=d(n.value.exData[g.$content],i,r,a,u,h);l=s.width,o=s.height,c=s.isBroken}else{const s=n.value[g.$text]();if(s){const n=d(s,i,r,a,u,h);l=n.width,o=n.height,c=n.isBroken}}null===l||n.w||(l+=e),null===o||n.h||(o+=t)}return{w:l,h:o,isBroken:c}},t.measureToString=c,t.setAccess=function(e,t){switch(e.access){case"nonInteractive":t.push("xfaNonInteractive");break;case"readOnly":t.push("xfaReadOnly");break;case"protected":t.push("xfaDisabled")}},t.setFontFamily=function(e,t,a,r){if(a){var i=(0,s.stripQuotes)(e.typeface),n=(r.fontFamily=`"${i}"`,a.find(i));if(n){const a=n.regular.cssFontInfo["fontFamily"],s=(a!==i&&(r.fontFamily=`"${a}"`),u(t));s&&""!==s.lineHeight||r.lineHeight||(i=(0,o.selectFont)(e,n))&&(r.lineHeight=Math.max(1.2,i.lineHeight))}}else delete r.fontFamily},t.setMinMaxDimensions=function(e,t){"position"===e[g.$getSubformParent]().layout&&(0<e.minW&&(t.minWidth=c(e.minW)),0<e.maxW&&(t.maxWidth=c(e.maxW)),0<e.minH&&(t.minHeight=c(e.minH)),0<e.maxH)&&(t.maxHeight=c(e.maxH))},t.setPara=function(e,t,a){if(a.attributes.class?.includes("xfaRich")){t&&(""===e.h&&(t.height="auto"),""===e.w)&&(t.width="auto");var r=u(e);if(r){const e=a.attributes.style;switch(e.display="flex",e.flexDirection="column",r.vAlign){case"top":e.justifyContent="start";break;case"bottom":e.justifyContent="end";break;case"middle":e.justifyContent="center"}const t=r[g.$toStyle]();for(const[a,g]of Object.entries(t))a in e||(e[a]=g)}}},t.toStyle=function(e,...t){var a=Object.create(null);for(const r of t){const t=e[r];if(null!==t)if(h.hasOwnProperty(r))h[r](e,a);else if(t instanceof n.XFAObject){const e=t[g.$toStyle]();e?Object.assign(a,e):(0,i.warn)(`(DEBUG) - XFA - style for ${r} not implemented yet`)}}return a};var g=a(78),i=a(2),s=a(84),o=a(85),l=a(86),n=a(87);function c(e){return"string"==typeof e?"0px":Number.isInteger(e)?e+"px":e.toFixed(2)+"px"}const h={anchorType(e,t){var a=e[g.$getSubformParent]();if(a&&(!a.layout||"position"===a.layout))switch("transform"in t||(t.transform=""),e.anchorType){case"bottomCenter":t.transform+="translate(-50%, -100%)";break;case"bottomLeft":t.transform+="translate(0,-100%)";break;case"bottomRight":t.transform+="translate(-100%,-100%)";break;case"middleCenter":t.transform+="translate(-50%,-50%)";break;case"middleLeft":t.transform+="translate(0,-50%)";break;case"middleRight":t.transform+="translate(-100%,-50%)";break;case"topCenter":t.transform+="translate(-50%,0)";break;case"topRight":t.transform+="translate(-100%,0)"}},dimensions(t,a){var r=t[g.$getSubformParent]();let i=t.w;const n=t.h;if(r.layout?.includes("row")){const a=r[g.$extra],n=t.colSpan;let e;-1===n?(e=a.columnWidths.slice(a.currentColumn).reduce((e,t)=>e+t,0),a.currentColumn=0):(e=a.columnWidths.slice(a.currentColumn,a.currentColumn+n).reduce((e,t)=>e+t,0),a.currentColumn=(a.currentColumn+t.colSpan)%a.columnWidths.length),isNaN(e)||(i=t.w=e)}a.width=""!==i?c(i):"auto",a.height=""!==n?c(n):"auto"},position(e,t){var a=e[g.$getSubformParent]();a?.layout&&"position"!==a.layout||(t.position="absolute",t.left=c(e.x),t.top=c(e.y))},rotate(e,t){e.rotate&&("transform"in t||(t.transform=""),t.transform+=`rotate(-${e.rotate}deg)`,t.transformOrigin="top left")},presence(e,t){switch(e.presence){case"invisible":t.visibility="hidden";break;case"hidden":case"inactive":t.display="none"}},hAlign(e,t){if("para"===e[g.$nodeName])switch(e.hAlign){case"justifyAll":t.textAlign="justify-all";break;case"radix":t.textAlign="left";break;default:t.textAlign=e.hAlign}else switch(e.hAlign){case"left":t.alignSelf="start";break;case"center":t.alignSelf="center";break;case"right":t.alignSelf="end"}},margin(e,t){e.margin&&(t.margin=e.margin[g.$toStyle]().margin)}};function d(e,t,a,r,i,n){t=new l.TextMeasure(t,a,r,i);return"string"==typeof e?t.addString(e):e[g.$pushGlyphs](t),t.compute(n)}function p(e){return 0<e.relevant.length&&!e.relevant[0].excluded&&"print"===e.relevant[0].viewname}function u(e){e=e[g.$getTemplateRoot]()[g.$extra].paraStack;return e.length?e.at(-1):null}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLResult=void 0,t.getBBox=function(e){var t,a,r;return!e||(e=e.trim().split(/\s*,\s*/).map(e=>o(e,"-1"))).length<4||e[2]<0||e[3]<0?{x:-1,y:-1,width:-1,height:-1}:([e,t,a,r]=e,{x:e,y:t,width:a,height:r})},t.getColor=function(e,t=[0,0,0]){let[a,r,i]=t;return!e||(t=e.trim().split(/\s*,\s*/).map(e=>Math.min(Math.max(0,parseInt(e.trim(),10)),255)).map(e=>isNaN(e)?0:e)).length<3||([a,r,i]=t),{r:a,g:r,b:i}},t.getFloat=function({data:e,defaultValue:t,validate:a}){if(!e)return t;e=e.trim();e=parseFloat(e);return!isNaN(e)&&a(e)?e:t},t.getInteger=function({data:e,defaultValue:t,validate:a}){if(!e)return t;e=e.trim();e=parseInt(e,10);return!isNaN(e)&&a(e)?e:t},t.getKeyword=s,t.getMeasurement=o,t.getRatio=function(e){var t;return!e||(1===(e=e.trim().split(/\s*:\s*/).map(e=>parseFloat(e)).filter(e=>!isNaN(e))).length&&e.push(1),0===e.length)?{num:1,den:1}:([e,t]=e,{num:e,den:t})},t.getRelevant=function(e){return e?e.trim().split(/\s+/).map(e=>({excluded:"-"===e[0],viewname:e.substring(1)})):[]},t.getStringOption=function(e,t){return s({data:e,defaultValue:t[0],validate:e=>t.includes(e)})},t.stripQuotes=function(e){return e.startsWith("'")||e.startsWith('"')?e.slice(1,-1):e};var r=a(2);const i={pt:e=>e,cm:e=>e/2.54*72,mm:e=>e/25.4*72,in:e=>72*e,px:e=>e},n=/([+-]?\d+\.?\d*)(.*)/;function s({data:e,defaultValue:t,validate:a}){return e&&a(e=e.trim())?e:t}function o(e,t="0"){var a;return t||="0",!e||!(e=e.trim().match(n))||([,e,a]=e,e=parseFloat(e),isNaN(e))?o(t):0===e?0:(a=i[a])?a(e):e}t.HTMLResult=class l{static get FAILURE(){return(0,r.shadow)(this,"FAILURE",new l(!1,null,null,null))}static get EMPTY(){return(0,r.shadow)(this,"EMPTY",new l(!0,null,null,null))}constructor(e,t,a,r){this.success=e,this.html=t,this.bbox=a,this.breakNode=r}isBreak(){return!!this.breakNode}static breakNode(e){return new l(!1,null,null,e)}static success(e,t=null){return new l(!0,e,t,null)}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontFinder=void 0,t.getMetrics=function(e,t=!1){let a=null;if(e){const t=(0,o.stripQuotes)(e.typeface),r=e[s.$globalData].fontFinder.find(t);a=c(e,r)}if(!a)return{lineHeight:12,lineGap:2,lineNoGap:10};const r=e.size||10,i=a.lineHeight?Math.max(t?0:1.2,a.lineHeight):1.2,n=void 0===a.lineGap?.2:a.lineGap;return{lineHeight:i*r,lineGap:n*r,lineNoGap:Math.max(1,i-n)*r}},t.selectFont=c;var s=a(78),o=a(84),l=a(2);function c(e,t){return"italic"===e.posture?"bold"===e.weight?t.bolditalic:t.italic:"bold"===e.weight?t.bold:t.regular}t.FontFinder=class{constructor(e){this.fonts=new Map,this.cache=new Map,this.warned=new Set,this.defaultFont=null,this.add(e)}add(e,t=null){for(const t of e)this.addPdfFont(t);for(const e of this.fonts.values())e.regular||(e.regular=e.italic||e.bold||e.bolditalic);if(t&&0!==t.size){var a=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const e of t)this.fonts.set(e,a)}}addPdfFont(e){var t=e.cssFontInfo,a=t.fontFamily;let r=this.fonts.get(a),i=(r||(r=Object.create(null),this.fonts.set(a,r),this.defaultFont)||(this.defaultFont=r),"");a=parseFloat(t.fontWeight);0!==parseFloat(t.italicAngle)?i=700<=a?"bolditalic":"italic":700<=a&&(i="bold"),!i&&((e.name.includes("Bold")||e.psName?.includes("Bold"))&&(i="bold"),e.name.includes("Italic")||e.name.endsWith("It")||e.psName?.includes("Italic")||e.psName?.endsWith("It"))&&(i+="italic"),i=i||"regular",r[i]=e}getDefault(){return this.defaultFont}find(e,t=!0){var a=this.fonts.get(e)||this.cache.get(e);if(a)return a;var r=/,|-|_| |bolditalic|bold|italic|regular|it/gi;let i=e.replaceAll(r,"");if(a=this.fonts.get(i))return this.cache.set(e,a),a;i=i.toLowerCase();var n=[];for(const[e,t]of this.fonts.entries())e.replaceAll(r,"").toLowerCase().startsWith(i)&&n.push(t);if(0===n.length)for(const[,e]of this.fonts.entries())e.regular.name?.replaceAll(r,"").toLowerCase().startsWith(i)&&n.push(e);if(0===n.length){i=i.replaceAll(/psmt|mt/gi,"");for(const[e,t]of this.fonts.entries())e.replaceAll(r,"").toLowerCase().startsWith(i)&&n.push(t)}if(0===n.length)for(const e of this.fonts.values())e.regular.name?.replaceAll(r,"").toLowerCase().startsWith(i)&&n.push(e);return 1<=n.length?(1!==n.length&&t&&(0,l.warn)("XFA - Too many choices to guess the correct font: "+e),this.cache.set(e,n[0]),n[0]):(t&&!this.warned.has(e)&&(this.warned.add(e),(0,l.warn)("XFA - Cannot find the font: "+e)),null)}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextMeasure=void 0;var i=a(85);class n{constructor(e,t,a,r){this.lineHeight=a,this.paraMargin=t||{top:0,bottom:0,left:0,right:0},e&&(this.xfaFont={typeface:e.typeface,posture:e.posture,weight:e.weight,size:e.size,letterSpacing:e.letterSpacing},a=r.find(e.typeface))&&(this.pdfFont=(0,i.selectFont)(e,a),this.pdfFont)||([this.pdfFont,this.xfaFont]=this.defaultFont(r))}defaultFont(e){var t=e.find("Helvetica",!1)||e.find("Myriad Pro",!1)||e.find("Arial",!1)||e.getDefault();if(t?.regular){const e=t.regular;return[e,{typeface:e.cssFontInfo.fontFamily,posture:"normal",weight:"normal",size:10,letterSpacing:0}]}return[null,{typeface:"Courier",posture:"normal",weight:"normal",size:10,letterSpacing:0}]}}class s{constructor(e,t,a,r){this.fontFinder=r,this.stack=[new n(e,t,a,r)]}pushData(e,t,a){var r=this.stack.at(-1);for(const t of["typeface","posture","weight","size","letterSpacing"])e[t]||(e[t]=r.xfaFont[t]);for(const e of["top","bottom","left","right"])isNaN(t[e])&&(t[e]=r.paraMargin[e]);a=new n(e,t,a||r.lineHeight,this.fontFinder);a.pdfFont||(a.pdfFont=r.pdfFont),this.stack.push(a)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}t.TextMeasure=class{constructor(e,t,a,r){this.glyphs=[],this.fontSelector=new s(e,t,a,r),this.extraHeight=0}pushData(e,t,a){this.fontSelector.pushData(e,t,a)}popFont(e){return this.fontSelector.popFont()}addPara(){var e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}addString(e){if(e){const l=this.fontSelector.topFont(),c=l.xfaFont.size;if(l.pdfFont){var t=l.xfaFont.letterSpacing,a=l.pdfFont,r=a.lineHeight||1.2,i=l.lineHeight||Math.max(1.2,r)*c,r=r-(void 0===a.lineGap?.2:a.lineGap),n=Math.max(1,r)*c,s=c/1e3,o=a.defaultWidth||a.charsToGlyphs(" ")[0].width;for(const l of e.split(/[\u2029\n]/)){const e=a.encodeString(l).join(""),c=a.charsToGlyphs(e);for(const e of c){const l=e.width||o;this.glyphs.push([l*s+t,i,n,e.unicode,!1])}this.glyphs.push([0,0,0,"\n",!0])}}else for(const l of e.split(/[\u2029\n]/)){for(const e of l.split(""))this.glyphs.push([c,1.2*c,c,e,!1]);this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop()}}compute(a){let r=-1,i=0,n=0,s=0,o=0,l=0,c=!1,h=!0;for(let e=0,t=this.glyphs.length;e<t;e++){var[u,d,f,g,p]=this.glyphs[e],g=" "===g,f=h?f:d;p?(n=Math.max(n,o),o=0,s+=l,l=f,r=-1,i=0,h=!1):g?o+u>a?(n=Math.max(n,o),o=0,s+=l,l=f,r=-1,i=0,c=!0,h=!1):(l=Math.max(f,l),i=o,o+=u,r=e):o+u>a?(s+=l,l=f,-1!==r?(e=r,n=Math.max(n,i),o=0,r=-1,i=0):(n=Math.max(n,o),o=u),c=!0,h=!1):(o+=u,l=Math.max(f,l))}return n=Math.max(n,o),s+=l+this.extraHeight,{width:1.02*n,height:s,isBroken:c}}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XmlObject=t.XFAObjectArray=t.XFAObject=t.XFAAttribute=t.StringObject=t.OptionObject=t.Option10=t.Option01=t.IntegerObject=t.ContentObject=void 0;var l=a(78),r=a(84),c=a(2),i=a(3),n=a(81),h=a(88);const u=Symbol(),s=Symbol(),o=Symbol(),d=Symbol("_children"),f=Symbol(),g=Symbol(),p=Symbol(),m=Symbol(),b=Symbol(),y=Symbol(),w=Symbol(),v=Symbol(),x=Symbol(),S=Symbol("parent"),A=Symbol(),k=Symbol(),C=Symbol();let F=0;const O=n.NamespaceIds.datasets.id;class I{constructor(e,t,a=!1){this[l.$namespaceId]=e,this[l.$nodeName]=t,this[w]=a,this[S]=null,this[d]=[],this[l.$uid]=""+t+F++,this[l.$globalData]=null}get isXFAObject(){return!0}get isXFAObjectArray(){return!1}createNodes(a){let r=this,i=null;for(var{name:n,index:s}of a){for(let e=0,t=isFinite(s)?s:0;e<=t;e++){const a=r[l.$namespaceId]===O?-1:r[l.$namespaceId];i=new P(a,n),r[l.$appendChild](i)}r=i}return i}[l.$onChild](t){if(this[w]&&this[l.$onChildCheck](t)){var a=t[l.$nodeName],r=this[a];if(!(r instanceof T))return null!==r&&this[l.$removeChild](r),this[a]=t,this[l.$appendChild](t),!0;if(r.push(t))return this[l.$appendChild](t),!0;let e="";this.id?e=` (id: ${this.id})`:this.name&&(e=` (name: ${this.name} ${this.h.value})`),(0,c.warn)(`XFA - node "${this[l.$nodeName]}"${e} has already enough "${a}"!`)}return!1}[l.$onChildCheck](e){return this.hasOwnProperty(e[l.$nodeName])&&e[l.$namespaceId]===this[l.$namespaceId]}[l.$isNsAgnostic](){return!1}[l.$acceptWhitespace](){return!1}[l.$isCDATAXml](){return!1}[l.$isBindable](){return!1}[l.$popPara](){this.para&&this[l.$getTemplateRoot]()[l.$extra].paraStack.pop()}[l.$pushPara](){this[l.$getTemplateRoot]()[l.$extra].paraStack.push(this.para)}[l.$setId](e){this.id&&this[l.$namespaceId]===n.NamespaceIds.template.id&&e.set(this.id,this)}[l.$getTemplateRoot](){return this[l.$globalData].template}[l.$isSplittable](){return!1}[l.$isThereMoreWidth](){return!1}[l.$appendChild](e){(e[S]=this)[d].push(e),!e[l.$globalData]&&this[l.$globalData]&&(e[l.$globalData]=this[l.$globalData])}[l.$removeChild](e){e=this[d].indexOf(e);this[d].splice(e,1)}[l.$hasSettableValue](){return this.hasOwnProperty("value")}[l.$setValue](e){}[l.$onText](e){}[l.$finalize](){}[l.$clean](e){delete this[w],this[l.$cleanup]&&(e.clean(this[l.$cleanup]),delete this[l.$cleanup])}[l.$indexOf](e){return this[d].indexOf(e)}[l.$insertAt](e,t){(t[S]=this)[d].splice(e,0,t),!t[l.$globalData]&&this[l.$globalData]&&(t[l.$globalData]=this[l.$globalData])}[l.$isTransparent](){return!this.name}[l.$lastAttribute](){return""}[l.$text](){return 0===this[d].length?this[l.$content]:this[d].map(e=>e[l.$text]()).join("")}get[o](){const e=Object.getPrototypeOf(this);if(!e._attributes){var t=e._attributes=new Set;for(const e of Object.getOwnPropertyNames(this)){if(null===this[e]||this[e]instanceof I||this[e]instanceof T)break;t.add(e)}}return(0,c.shadow)(this,o,e._attributes)}[l.$isDescendent](e){let t=this;for(;t;){if(t===e)return!0;t=t[l.$getParent]()}return!1}[l.$getParent](){return this[S]}[l.$getSubformParent](){return this[l.$getParent]()}[l.$getChildren](e=null){return e?this[e]:this[d]}[l.$dump](){var e=Object.create(null);this[l.$content]&&(e.$content=this[l.$content]);for(const a of Object.getOwnPropertyNames(this)){var t=this[a];null!==t&&(t instanceof I?e[a]=t[l.$dump]():t instanceof T?t.isEmpty()||(e[a]=t.dump()):e[a]=t)}return e}[l.$toStyle](){return null}[l.$toHTML](){return r.HTMLResult.EMPTY}*[l.$getContainedChildren](){for(const e of this[l.$getChildren]())yield e}*[m](e,t){for(const a of this[l.$getContainedChildren]())if(!e||t===e.has(a[l.$nodeName])){const e=this[l.$getAvailableSpace](),t=a[l.$toHTML](e);t.success||(this[l.$extra].failingNode=a),yield t}}[l.$flushHTML](){return null}[l.$addHTML](e,t){this[l.$extra].children.push(e)}[l.$getAvailableSpace](){}[l.$childrenToHTML]({filter:e=null,include:t=!0}){if(this[l.$extra].generator){const e=this[l.$getAvailableSpace](),t=this[l.$extra].failingNode[l.$toHTML](e);if(!t.success)return t;t.html&&this[l.$addHTML](t.html,t.bbox),delete this[l.$extra].failingNode}else this[l.$extra].generator=this[m](e,t);for(;;){const e=this[l.$extra].generator.next();if(e.done)break;const t=e.value;if(!t.success)return t;t.html&&this[l.$addHTML](t.html,t.bbox)}return this[l.$extra].generator=null,r.HTMLResult.EMPTY}[l.$setSetAttributes](e){this[k]=new Set(Object.keys(e))}[y](e){const t=this[o],a=this[k];return[...e].filter(e=>t.has(e)&&!a.has(e))}[l.$resolvePrototypes](e,t=new Set){for(const a of this[d])a[A](e,t)}[A](e,t){var a=this[b](e,t);a?this[u](a,e,t):this[l.$resolvePrototypes](e,t)}[b](e,t){var{use:a,usehref:r}=this;if(!a&&!r)return null;let i=null,n=null,s=null,o=a;if(r?(o=r).startsWith("#som(")&&r.endsWith(")")?n=r.slice(5,-1):r.startsWith(".#som(")&&r.endsWith(")")?n=r.slice(6,-1):r.startsWith("#")?s=r.slice(1):r.startsWith(".#")&&(s=r.slice(2)):a.startsWith("#")?s=a.slice(1):n=a,this.use=this.usehref="",!(i=s?e.get(s):(i=(0,h.searchNode)(e.get(l.$root),this,n,!0,!1))&&i[0]))return(0,c.warn)(`XFA - Invalid prototype reference: ${o}.`),null;if(i[l.$nodeName]!==this[l.$nodeName])return(0,c.warn)(`XFA - Incompatible prototype: ${i[l.$nodeName]} !== ${this[l.$nodeName]}.`),null;if(t.has(i))return(0,c.warn)("XFA - Cycle detected in prototypes use."),null;t.add(i);r=i[b](e,t);return r&&i[u](r,e,t),i[l.$resolvePrototypes](e,t),t.delete(i),i}[u](a,r,i){if(i.has(a))(0,c.warn)("XFA - Cycle detected in prototypes use.");else{!this[l.$content]&&a[l.$content]&&(this[l.$content]=a[l.$content]),new Set(i).add(a);for(const r of this[y](a[k]))this[r]=a[r],this[k]&&this[k].add(r);for(const e of Object.getOwnPropertyNames(this))if(!this[o].has(e)){const c=this[e],s=a[e];if(c instanceof T){for(const a of c[d])a[A](r,i);for(let e=c[d].length,t=s[d].length;e<t;e++){var n=a[d][e][l.$clone]();if(!c.push(n))break;(n[S]=this)[d].push(n),n[A](r,i)}}else if(null===c){if(null!==s){const a=s[l.$clone]();(a[S]=this)[e]=a,this[d].push(a),a[A](r,i)}}else c[l.$resolvePrototypes](r,i),s&&c[u](s,r,i)}}}static[f](e){return Array.isArray(e)?e.map(e=>I[f](e)):"object"==typeof e&&null!==e?Object.assign({},e):e}[l.$clone](){var e,t=Object.create(Object.getPrototypeOf(this));for(const i of Object.getOwnPropertySymbols(this))try{t[i]=this[i]}catch{(0,c.shadow)(t,i,this[i])}t[l.$uid]=""+t[l.$nodeName]+F++,t[d]=[];for(const n of Object.getOwnPropertyNames(this))this[o].has(n)?t[n]=I[f](this[n]):(e=this[n],t[n]=e instanceof T?new T(e[v]):null);for(const s of this[d]){var a=s[l.$nodeName],r=s[l.$clone]();t[d].push(r),null===(r[S]=t)[a]?t[a]=r:t[a][d].push(r)}return t}[l.$getChildren](t=null){return t?this[d].filter(e=>e[l.$nodeName]===t):this[d]}[l.$getChildrenByClass](e){return this[e]}[l.$getChildrenByName](e,t,a=!0){return Array.from(this[l.$getChildrenByNameIt](e,t,a))}*[l.$getChildrenByNameIt](e,t,a=!0){if("parent"!==e){for(const a of this[d])a[l.$nodeName]===e&&(yield a),a.name===e&&(yield a),(t||a[l.$isTransparent]())&&(yield*a[l.$getChildrenByNameIt](e,t,!1));a&&this[o].has(e)&&(yield new M(this,e,this[e]))}else yield this[S]}}t.XFAObject=I;class T{constructor(e=1/0){this[v]=e,this[d]=[]}get isXFAObject(){return!1}get isXFAObjectArray(){return!0}push(e){return this[d].length<=this[v]?(this[d].push(e),!0):((0,c.warn)(`XFA - node "${e[l.$nodeName]}" accepts no more than ${this[v]} children`),!1)}isEmpty(){return 0===this[d].length}dump(){return 1===this[d].length?this[d][0][l.$dump]():this[d].map(e=>e[l.$dump]())}[l.$clone](){var e=new T(this[v]);return e[d]=this[d].map(e=>e[l.$clone]()),e}get children(){return this[d]}clear(){this[d].length=0}}t.XFAObjectArray=T;class M{constructor(e,t,a){this[S]=e,this[l.$nodeName]=t,this[l.$content]=a,this[l.$consumed]=!1,this[l.$uid]="attribute"+F++}[l.$getParent](){return this[S]}[l.$isDataValue](){return!0}[l.$getDataValue](){return this[l.$content].trim()}[l.$setValue](e){e=e.value||"",this[l.$content]=e.toString()}[l.$text](){return this[l.$content]}[l.$isDescendent](e){return this[S]===e||this[S][l.$isDescendent](e)}}t.XFAAttribute=M;class P extends I{constructor(e,t,a={}){if(super(e,t),this[l.$content]="",this[g]=null,"#text"!==t){const e=new Map;this[s]=e;for(const[t,l]of Object.entries(a))e.set(t,new M(this,t,l));if(a.hasOwnProperty(l.$nsAttributes)){const e=a[l.$nsAttributes].xfa.dataNode;void 0!==e&&("dataGroup"===e?this[g]=!1:"dataValue"===e&&(this[g]=!0))}}this[l.$consumed]=!1}[l.$toString](e){const t=this[l.$nodeName];if("#text"===t)e.push((0,i.encodeToXmlString)(this[l.$content]));else{const a=(0,c.utf8StringToString)(t),r=this[l.$namespaceId]===O?"xfa:":"";e.push("<"+r+a);for(const[t,a]of this[s].entries()){const r=(0,c.utf8StringToString)(t);e.push(` ${r}="${(0,i.encodeToXmlString)(a[l.$content])}"`)}if(null!==this[g]&&(this[g]?e.push(' xfa:dataNode="dataValue"'):e.push(' xfa:dataNode="dataGroup"')),this[l.$content]||0!==this[d].length){if(e.push(">"),this[l.$content])"string"==typeof this[l.$content]?e.push((0,i.encodeToXmlString)(this[l.$content])):this[l.$content][l.$toString](e);else for(const t of this[d])t[l.$toString](e);e.push(`</${r}${a}>`)}else e.push("/>")}}[l.$onChild](e){if(this[l.$content]){const e=new P(this[l.$namespaceId],"#text");this[l.$appendChild](e),e[l.$content]=this[l.$content],this[l.$content]=""}return this[l.$appendChild](e),!0}[l.$onText](e){this[l.$content]+=e}[l.$finalize](){var e;this[l.$content]&&0<this[d].length&&(e=new P(this[l.$namespaceId],"#text"),this[l.$appendChild](e),e[l.$content]=this[l.$content],delete this[l.$content])}[l.$toHTML](){return"#text"===this[l.$nodeName]?r.HTMLResult.success({name:"#text",value:this[l.$content]}):r.HTMLResult.EMPTY}[l.$getChildren](t=null){return t?this[d].filter(e=>e[l.$nodeName]===t):this[d]}[l.$getAttributes](){return this[s]}[l.$getChildrenByClass](e){var t=this[s].get(e);return void 0!==t?t:this[l.$getChildren](e)}*[l.$getChildrenByNameIt](e,t){const a=this[s].get(e);a&&(yield a);for(const a of this[d])a[l.$nodeName]===e&&(yield a),t&&(yield*a[l.$getChildrenByNameIt](e,t))}*[l.$getAttributeIt](e,t){const a=this[s].get(e);!a||t&&a[l.$consumed]||(yield a);for(const a of this[d])yield*a[l.$getAttributeIt](e,t)}*[l.$getRealChildrenByNameIt](e,t,a){for(const r of this[d])r[l.$nodeName]!==e||a&&r[l.$consumed]||(yield r),t&&(yield*r[l.$getRealChildrenByNameIt](e,t,a))}[l.$isDataValue](){return null===this[g]?0===this[d].length||this[d][0][l.$namespaceId]===n.NamespaceIds.xhtml.id:this[g]}[l.$getDataValue](){return null!==this[g]||0===this[d].length?this[l.$content].trim():this[d][0][l.$namespaceId]===n.NamespaceIds.xhtml.id?this[d][0][l.$text]().trim():null}[l.$setValue](e){e=e.value||"",this[l.$content]=e.toString()}[l.$dump](e=!1){var t=Object.create(null);e&&(t.$ns=this[l.$namespaceId]),this[l.$content]&&(t.$content=this[l.$content]),t.$name=this[l.$nodeName],t.children=[];for(const a of this[d])t.children.push(a[l.$dump](e));t.attributes=Object.create(null);for(const[e,r]of this[s])t.attributes[e]=r[l.$content];return t}}t.XmlObject=P;class N extends I{constructor(e,t){super(e,t),this[l.$content]=""}[l.$onText](e){this[l.$content]+=e}[l.$finalize](){}}class E extends(t.ContentObject=N){constructor(e,t,a){super(e,t),this[x]=a}[l.$finalize](){this[l.$content]=(0,r.getKeyword)({data:this[l.$content],defaultValue:this[x][0],validate:e=>this[x].includes(e)})}[l.$clean](e){super[l.$clean](e),delete this[x]}}t.OptionObject=E;class D extends N{[l.$finalize](){this[l.$content]=this[l.$content].trim()}}t.StringObject=D;class B extends N{constructor(e,t,a,r){super(e,t),this[p]=a,this[C]=r}[l.$finalize](){this[l.$content]=(0,r.getInteger)({data:this[l.$content],defaultValue:this[p],validate:this[C]})}[l.$clean](e){super[l.$clean](e),delete this[p],delete this[C]}}t.IntegerObject=B,t.Option01=class extends B{constructor(e,t){super(e,t,0,e=>1===e)}},t.Option10=class extends B{constructor(e,t){super(e,t,1,e=>0===e)}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createDataNode=function(a,r,i){var n=m(i);if(n&&!n.some(e=>e.operator===f.dotDot)){const s=g.get(n[0].name);let t=0;s?(a=s(a,r),t=1):a=r||a;for(var e=n.length;t<e;t++){const{name:r,operator:i,index:s}=n[t];if(!isFinite(s))return n[t].index=0,a.createNodes(n.slice(t));let e;switch(i){case f.dot:e=a[h.$getChildrenByName](r,!1);break;case f.dotDot:e=a[h.$getChildrenByName](r,!0);break;case f.dotHash:e=(e=a[h.$getChildrenByClass](r)).isXFAObjectArray?e.children:[e]}if(0===e.length)return a.createNodes(n.slice(t));if(!(s<e.length))return n[t].index=s-e.length,a.createNodes(n.slice(t));{const r=e[s];if(!r.isXFAObject)return(0,c.warn)("XFA - Cannot create a node."),null;a=r}}}return null},t.searchNode=function(e,a,r,i=!0,n=!0){var t=m(r,i);if(!t)return null;const s=g.get(t[0].name);let o,l=0;s?(o=!0,e=[s(e,a)],l=1):(o=null===a,e=[a||e]);for(var c=t.length;l<c;l++){const{name:r,cacheName:i,operator:g,index:m}=t[l],s=[];for(const a of e)if(a.isXFAObject){let e,t;if(n&&((t=p.get(a))||(t=new Map,p.set(a,t)),e=t.get(i)),!e){switch(g){case f.dot:e=a[h.$getChildrenByName](r,!1);break;case f.dotDot:e=a[h.$getChildrenByName](r,!0);break;case f.dotHash:e=(e=a[h.$getChildrenByClass](r)).isXFAObjectArray?e.children:[e]}n&&t.set(i,e)}0<e.length&&s.push(e)}if(0!==s.length||o||0!==l)e=isFinite(m)?s.filter(e=>m<e.length).map(e=>e[m]):s.flat();else{const r=a[h.$getParent]();if(!(a=r))return null;l=-1,e=[a]}}return 0===e.length?null:e};var h=a(78),c=a(2);const u=/^[^.[]+/,d=/^[^\]]+/,f={dot:0,dotDot:1,dotHash:2,dotBracket:3,dotParen:4},g=new Map([["$data",(e,t)=>e.datasets?e.datasets.data:e],["$record",(e,t)=>(e.datasets?e.datasets.data:e)[h.$getChildren]()[0]],["$template",(e,t)=>e.template],["$connectionSet",(e,t)=>e.connectionSet],["$form",(e,t)=>e.form],["$layout",(e,t)=>e.layout],["$host",(e,t)=>e.host],["$dataWindow",(e,t)=>e.dataWindow],["$event",(e,t)=>e.event],["!",(e,t)=>e.datasets],["$xfa",(e,t)=>e],["xfa",(e,t)=>e],["$",(e,t)=>t]]),p=new WeakMap;function m(t,a,r=!0){let i=t.match(u);if(!i)return null;var e,[n]=i,s=[{name:n,cacheName:"."+n,index:0,js:null,formCalc:null,operator:f.dot}];let o=n.length;for(;o<t.length;){var l=o;if("["===t.charAt(o++)){if(!(i=t.slice(o).match(d)))return(0,c.warn)("XFA - Invalid index in SOM expression"),null;s.at(-1).index="*"===(e=(e=i[0]).trim())?1/0:parseInt(e,10)||0,o+=i[0].length+1}else{let e;switch(t.charAt(o)){case".":if(!a)return null;o++,e=f.dotDot;break;case"#":o++,e=f.dotHash;break;case"[":if(r)return(0,c.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now."),null;e=f.dotBracket;break;case"(":if(r)return(0,c.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now."),null;e=f.dotParen;break;default:e=f.dot}if(!(i=t.slice(o).match(u)))break;[n]=i,o+=n.length,s.push({name:n,cacheName:t.slice(l,o),operator:e,index:0,js:null,formCalc:null})}}return s}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DataHandler=void 0;var o=a(78);t.DataHandler=class{constructor(e,t){this.data=t,this.dataset=e.datasets||null}serialize(e){const t=[[-1,this.data[o.$getChildren]()]];for(;0<t.length;){const i=t.at(-1),[n,s]=i;if(n+1===s.length)t.pop();else{var a=s[++i[0]],r=e.get(a[o.$uid]);if(r)a[o.$setValue](r);else{const t=a[o.$getAttributes]();for(const i of t.values()){const t=e.get(i[o.$uid]);if(t){i[o.$setValue](t);break}}}r=a[o.$getChildren]();0<r.length&&t.push([-1,r])}}const i=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset)for(const e of this.dataset[o.$getChildren]())"data"!==e[o.$nodeName]&&e[o.$toString](i);return this.data[o.$toString](i),i.push("</xfa:datasets>"),i.join("")}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XFAParser=void 0;var o=a(78),r=a(71),i=a(91),l=a(2);class n extends r.XMLParserBase{constructor(e=null,t=!1){super(),this._builder=new i.Builder(e),this._stack=[],this._globalData={usedTypefaces:new Set},this._ids=new Map,this._current=this._builder.buildRoot(this._ids),this._errorCode=r.XMLParserErrorCode.NoError,this._whiteRegex=/^\s+$/,this._nbsps=/\xa0+/g,this._richText=t}parse(e){if(this.parseXml(e),this._errorCode===r.XMLParserErrorCode.NoError)return this._current[o.$finalize](),this._current.element}onText(e){e=e.replace(this._nbsps,e=>e.slice(1)+" "),this._richText||this._current[o.$acceptWhitespace]()?this._current[o.$onText](e,this._richText):this._whiteRegex.test(e)||this._current[o.$onText](e.trim())}onCdata(e){this._current[o.$onText](e)}_mkAttributes(t,e){let a=null,r=null;var i,n,s=Object.create({});for({name:i,value:n}of t)if("xmlns"===i)a?(0,l.warn)(`XFA - multiple namespace definition in <${e}>`):a=n;else if(i.startsWith("xmlns:")){const t=i.substring(6);(r=r||[]).push({prefix:t,value:n})}else{const t=i.indexOf(":");if(-1===t)s[i]=n;else{let e=s[o.$nsAttributes];e=e||(s[o.$nsAttributes]=Object.create(null));const[a,r]=[i.slice(0,t),i.slice(t+1)];(e[a]||=Object.create(null))[r]=n}}return[a,r,s]}_getNameAndPrefix(e,t){var a=e.indexOf(":");return-1===a?[e,null]:[e.substring(a+1),t?"":e.substring(0,a)]}onBeginElement(e,t,a){var[t,r,i]=this._mkAttributes(t,e),[e,n]=this._getNameAndPrefix(e,this._builder.isNsAgnostic()),n=this._builder.build({nsPrefix:n,name:e,attributes:i,namespace:t,prefixes:r});n[o.$globalData]=this._globalData,a?(n[o.$finalize](),this._current[o.$onChild](n)&&n[o.$setId](this._ids),n[o.$clean](this._builder)):(this._stack.push(this._current),this._current=n)}onEndElement(e){var t=this._current;if(t[o.$isCDATAXml]()&&"string"==typeof t[o.$content]){const e=new n;e._globalData=this._globalData;var a=e.parse(t[o.$content]);t[o.$content]=null,t[o.$onChild](a)}t[o.$finalize](),this._current=this._stack.pop(),this._current[o.$onChild](t)&&t[o.$setId](this._ids),t[o.$clean](this._builder)}onError(e){this._errorCode=e}}t.XFAParser=n},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Builder=void 0;var s=a(81),o=a(78),l=a(92),r=a(80),i=a(101),n=a(2),a=a(87);class c extends a.XFAObject{constructor(e){super(-1,"root",Object.create(null)),this.element=null,this[o.$ids]=e}[o.$onChild](e){return this.element=e,!0}[o.$finalize](){super[o.$finalize](),this.element.template instanceof r.Template&&(this[o.$ids].set(o.$root,this.element),this.element.template[o.$resolvePrototypes](this[o.$ids]),this.element.template[o.$ids]=this[o.$ids])}}class h extends a.XFAObject{constructor(){super(-1,"",Object.create(null))}[o.$onChild](e){return!1}}t.Builder=class{constructor(e=null){this._namespaceStack=[],this._nsAgnosticLevel=0,this._namespacePrefixes=new Map,this._namespaces=new Map,this._nextNsId=Math.max(...Object.values(s.NamespaceIds).map(({id:e})=>e)),this._currentNamespace=e||new i.UnknownNamespace(++this._nextNsId)}buildRoot(e){return new c(e)}build({nsPrefix:t,name:a,attributes:r,namespace:e,prefixes:i}){var n=null!==e;if(n&&(this._namespaceStack.push(this._currentNamespace),this._currentNamespace=this._searchNamespace(e)),i&&this._addNamespacePrefix(i),r.hasOwnProperty(o.$nsAttributes)){const t=l.NamespaceSetUp.datasets,a=r[o.$nsAttributes];let e=null;for(const[r,o]of Object.entries(a))if(this._getNamespaceToUse(r)===t){e={xfa:o};break}e?r[o.$nsAttributes]=e:delete r[o.$nsAttributes]}e=this._getNamespaceToUse(t)?.[s.$buildXFAObject](a,r)||new h;return e[o.$isNsAgnostic]()&&this._nsAgnosticLevel++,(n||i||e[o.$isNsAgnostic]())&&(e[o.$cleanup]={hasNamespace:n,prefixes:i,nsAgnostic:e[o.$isNsAgnostic]()}),e}isNsAgnostic(){return 0<this._nsAgnosticLevel}_searchNamespace(e){let t=this._namespaces.get(e);if(!t){for(var[a,{check:r}]of Object.entries(s.NamespaceIds))if(r(e)){if(t=l.NamespaceSetUp[a])return this._namespaces.set(e,t),t;break}t=new i.UnknownNamespace(++this._nextNsId),this._namespaces.set(e,t)}return t}_addNamespacePrefix(t){for(var{prefix:a,value:r}of t){const t=this._searchNamespace(r);let e=this._namespacePrefixes.get(a);e||(e=[],this._namespacePrefixes.set(a,e)),e.push(t)}}_getNamespaceToUse(e){var t;return e?0<(t=this._namespacePrefixes.get(e))?.length?t.at(-1):((0,n.warn)(`Unknown namespace prefix: ${e}.`),null):this._currentNamespace}clean(e){var{hasNamespace:e,prefixes:t,nsAgnostic:a}=e;e&&(this._currentNamespace=this._namespaceStack.pop()),t&&t.forEach(({prefix:e})=>{this._namespacePrefixes.get(e).pop()}),a&&this._nsAgnosticLevel--}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NamespaceSetUp=void 0;var r=a(93),i=a(94),n=a(95),s=a(96),o=a(97),l=a(98),c=a(80),h=a(99),a=a(100),r={config:r.ConfigNamespace,connection:i.ConnectionSetNamespace,datasets:n.DatasetsNamespace,localeSet:s.LocaleSetNamespace,signature:o.SignatureNamespace,stylesheet:l.StylesheetNamespace,template:c.TemplateNamespace,xdp:h.XdpNamespace,xhtml:a.XhtmlNamespace};t.NamespaceSetUp=r},(R,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ConfigNamespace=void 0;var a=t(81),i=t(78),r=t(87),n=t(84),s=t(2);const o=a.NamespaceIds.config.id;class l extends r.XFAObject{constructor(e){super(o,"acrobat",!0),this.acrobat7=null,this.autoSave=null,this.common=null,this.validate=null,this.validateApprovalSignatures=null,this.submitUrl=new r.XFAObjectArray}}class c extends r.XFAObject{constructor(e){super(o,"acrobat7",!0),this.dynamicRender=null}}class h extends r.OptionObject{constructor(e){super(o,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class u extends r.OptionObject{constructor(e){super(o,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class d extends r.Option01{constructor(e){super(o,"addSilentPrint")}}class f extends r.Option01{constructor(e){super(o,"addViewerPreferences")}}class g extends r.Option10{constructor(e){super(o,"adjustData")}}class p extends r.IntegerObject{constructor(e){super(o,"adobeExtensionLevel",0,e=>1<=e&&e<=8)}}class m extends r.XFAObject{constructor(e){super(o,"agent",!0),this.name=e.name?e.name.trim():"",this.common=new r.XFAObjectArray}}class b extends r.ContentObject{constructor(e){super(o,"alwaysEmbed")}}class y extends r.StringObject{constructor(e){super(o,"amd")}}class w extends r.XFAObject{constructor(e){super(o,"area"),this.level=(0,n.getInteger)({data:e.level,defaultValue:0,validate:e=>1<=e&&e<=3}),this.name=(0,n.getStringOption)(e.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class v extends r.OptionObject{constructor(e){super(o,"attributes",["preserve","delegate","ignore"])}}class x extends r.OptionObject{constructor(e){super(o,"autoSave",["disabled","enabled"])}}class S extends r.StringObject{constructor(e){super(o,"base")}}class A extends r.XFAObject{constructor(e){super(o,"batchOutput"),this.format=(0,n.getStringOption)(e.format,["none","concat","zip","zipCompress"])}}class k extends r.ContentObject{constructor(e){super(o,"behaviorOverride")}[i.$finalize](){this[i.$content]=new Map(this[i.$content].trim().split(/\s+/).filter(e=>e.includes(":")).map(e=>e.split(":",2)))}}class C extends r.XFAObject{constructor(e){super(o,"cache",!0),this.templateCache=null}}class F extends r.Option01{constructor(e){super(o,"change")}}class O extends r.XFAObject{constructor(e){super(o,"common",!0),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 I extends r.XFAObject{constructor(e){super(o,"compress"),this.scope=(0,n.getStringOption)(e.scope,["imageOnly","document"])}}class T extends r.Option01{constructor(e){super(o,"compressLogicalStructure")}}class M extends r.Option10{constructor(e){super(o,"compressObjectStream")}}class P extends r.XFAObject{constructor(e){super(o,"compression",!0),this.compressLogicalStructure=null,this.compressObjectStream=null,this.level=null,this.type=null}}class N extends r.XFAObject{constructor(e){super(o,"config",!0),this.acrobat=null,this.present=null,this.trace=null,this.agent=new r.XFAObjectArray}}class E extends r.OptionObject{constructor(e){super(o,"conformance",["A","B"])}}class D extends r.Option01{constructor(e){super(o,"contentCopy")}}class L extends r.IntegerObject{constructor(e){super(o,"copies",1,e=>1<=e)}}class $ extends r.StringObject{constructor(e){super(o,"creator")}}class _ extends r.IntegerObject{constructor(e){super(o,"currentPage",0,e=>0<=e)}}class j extends r.XFAObject{constructor(e){super(o,"data",!0),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(e){super(o,"debug",!0),this.uri=null}}class X extends r.ContentObject{constructor(e){super(o,"defaultTypeface"),this.writingScript=(0,n.getStringOption)(e.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class H extends r.OptionObject{constructor(e){super(o,"destination",["pdf","pcl","ps","webClient","zpl"])}}class q extends r.Option01{constructor(e){super(o,"documentAssembly")}}class z extends r.XFAObject{constructor(e){super(o,"driver",!0),this.name=e.name?e.name.trim():"",this.fontInfo=null,this.xdc=null}}class G extends r.OptionObject{constructor(e){super(o,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class W extends r.OptionObject{constructor(e){super(o,"dynamicRender",["forbidden","required"])}}class V extends r.Option01{constructor(e){super(o,"embed")}}class K extends r.Option01{constructor(e){super(o,"encrypt")}}class Y extends r.XFAObject{constructor(e){super(o,"encryption",!0),this.encrypt=null,this.encryptionLevel=null,this.permissions=null}}class Z extends r.OptionObject{constructor(e){super(o,"encryptionLevel",["40bit","128bit"])}}class J extends r.StringObject{constructor(e){super(o,"enforce")}}class Q extends r.XFAObject{constructor(e){super(o,"equate"),this.force=(0,n.getInteger)({data:e.force,defaultValue:1,validate:e=>0===e}),this.from=e.from||"",this.to=e.to||""}}class ee extends r.XFAObject{constructor(e){super(o,"equateRange"),this.from=e.from||"",this.to=e.to||"",this._unicodeRange=e.unicodeRange||""}get unicodeRange(){const e=[],t=/U\+([0-9a-fA-F]+)/,a=this._unicodeRange;for(var r of a.split(",").map(e=>e.trim()).filter(e=>!!e))r=r.split("-",2).map(e=>{e=e.match(t);return e?parseInt(e[1],16):0}),1===r.length&&r.push(r[0]),e.push(r);return(0,s.shadow)(this,"unicodeRange",e)}}class te extends r.ContentObject{constructor(e){super(o,"exclude")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s+/).filter(e=>e&&["calculate","close","enter","exit","initialize","ready","validate"].includes(e))}}class ae extends r.StringObject{constructor(e){super(o,"excludeNS")}}class re extends r.OptionObject{constructor(e){super(o,"flipLabel",["usePrinterSetting","on","off"])}}class ie extends r.XFAObject{constructor(e){super(o,"fontInfo",!0),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 ne extends r.Option01{constructor(e){super(o,"formFieldFilling")}}class se extends r.StringObject{constructor(e){super(o,"groupParent")}}class oe extends r.OptionObject{constructor(e){super(o,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class le extends r.StringObject{constructor(e){super(o,"includeXDPContent")}}class ce extends r.OptionObject{constructor(e){super(o,"incrementalLoad",["none","forwardOnly"])}}class he extends r.Option01{constructor(e){super(o,"incrementalMerge")}}class ue extends r.Option01{constructor(e){super(o,"interactive")}}class de extends r.OptionObject{constructor(e){super(o,"jog",["usePrinterSetting","none","pageSet"])}}class fe extends r.XFAObject{constructor(e){super(o,"labelPrinter",!0),this.name=(0,n.getStringOption)(e.name,["zpl","dpl","ipl","tcpl"]),this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class ge extends r.OptionObject{constructor(e){super(o,"layout",["paginate","panel"])}}class pe extends r.IntegerObject{constructor(e){super(o,"level",0,e=>0<e)}}class me extends r.Option01{constructor(e){super(o,"linearized")}}class be extends r.StringObject{constructor(e){super(o,"locale")}}class ye extends r.StringObject{constructor(e){super(o,"localeSet")}}class we extends r.XFAObject{constructor(e){super(o,"log",!0),this.mode=null,this.threshold=null,this.to=null,this.uri=null}}class ve extends r.XFAObject{constructor(e){super(o,"map",!0),this.equate=new r.XFAObjectArray,this.equateRange=new r.XFAObjectArray}}class xe extends r.XFAObject{constructor(e){super(o,"mediumInfo",!0),this.map=null}}class Se extends r.XFAObject{constructor(e){super(o,"message",!0),this.msgId=null,this.severity=null}}class Ae extends r.XFAObject{constructor(e){super(o,"messaging",!0),this.message=new r.XFAObjectArray}}class ke extends r.OptionObject{constructor(e){super(o,"mode",["append","overwrite"])}}class Ce extends r.Option01{constructor(e){super(o,"modifyAnnots")}}class Fe extends r.IntegerObject{constructor(e){super(o,"msgId",1,e=>1<=e)}}class Oe extends r.StringObject{constructor(e){super(o,"nameAttr")}}class Ie extends r.ContentObject{constructor(e){super(o,"neverEmbed")}}class Te extends r.IntegerObject{constructor(e){super(o,"numberOfCopies",null,e=>2<=e&&e<=5)}}class Me extends r.XFAObject{constructor(e){super(o,"openAction",!0),this.destination=null}}class Pe extends r.XFAObject{constructor(e){super(o,"output",!0),this.to=null,this.type=null,this.uri=null}}class Ne extends r.StringObject{constructor(e){super(o,"outputBin")}}class Ee extends r.XFAObject{constructor(e){super(o,"outputXSL",!0),this.uri=null}}class De extends r.OptionObject{constructor(e){super(o,"overprint",["none","both","draw","field"])}}class Be extends r.StringObject{constructor(e){super(o,"packets")}[i.$finalize](){"*"!==this[i.$content]&&(this[i.$content]=this[i.$content].trim().split(/\s+/).filter(e=>["config","datasets","template","xfdf","xslt"].includes(e)))}}class Re extends r.XFAObject{constructor(e){super(o,"pageOffset"),this.x=(0,n.getInteger)({data:e.x,defaultValue:"useXDCSetting",validate:e=>!0}),this.y=(0,n.getInteger)({data:e.y,defaultValue:"useXDCSetting",validate:e=>!0})}}class Le extends r.StringObject{constructor(e){super(o,"pageRange")}[i.$finalize](){var a=this[i.$content].trim().split(/\s+/).map(e=>parseInt(e,10)),r=[];for(let e=0,t=a.length;e<t;e+=2)r.push(a.slice(e,e+2));this[i.$content]=r}}class $e extends r.OptionObject{constructor(e){super(o,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}}class _e extends r.OptionObject{constructor(e){super(o,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}}class je extends r.IntegerObject{constructor(e){super(o,"part",1,e=>!1)}}class Ue extends r.XFAObject{constructor(e){super(o,"pcl",!0),this.name=e.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 Xe extends r.XFAObject{constructor(e){super(o,"pdf",!0),this.name=e.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 He extends r.XFAObject{constructor(e){super(o,"pdfa",!0),this.amd=null,this.conformance=null,this.includeXDPContent=null,this.part=null}}class qe extends r.XFAObject{constructor(e){super(o,"permissions",!0),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 ze extends r.Option01{constructor(e){super(o,"pickTrayByPDFSize")}}class Ge extends r.StringObject{constructor(e){super(o,"picture")}}class We extends r.Option01{constructor(e){super(o,"plaintextMetadata")}}class Ve extends r.OptionObject{constructor(e){super(o,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class Ke extends r.XFAObject{constructor(e){super(o,"present",!0),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 Ye extends r.Option01{constructor(e){super(o,"print")}}class Ze extends r.Option01{constructor(e){super(o,"printHighQuality")}}class Je extends r.OptionObject{constructor(e){super(o,"printScaling",["appdefault","noScaling"])}}class Qe extends r.StringObject{constructor(e){super(o,"printerName")}}class et extends r.StringObject{constructor(e){super(o,"producer")}}class tt extends r.XFAObject{constructor(e){super(o,"ps",!0),this.name=e.name||"",this.batchOutput=null,this.fontInfo=null,this.jog=null,this.mediumInfo=null,this.outputBin=null,this.staple=null,this.xdc=null}}class at extends r.ContentObject{constructor(e){super(o,"range")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s*,\s*/,2).map(e=>e.split("-").map(e=>parseInt(e.trim(),10))).filter(e=>e.every(e=>!isNaN(e))).map(e=>(1===e.length&&e.push(e[0]),e))}}class rt extends r.ContentObject{constructor(e){super(o,"record")}[i.$finalize](){this[i.$content]=this[i.$content].trim();var e=parseInt(this[i.$content],10);!isNaN(e)&&0<=e&&(this[i.$content]=e)}}class it extends r.ContentObject{constructor(e){super(o,"relevant")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s+/)}}class nt extends r.ContentObject{constructor(e){super(o,"rename")}[i.$finalize](){this[i.$content]=this[i.$content].trim(),(this[i.$content].toLowerCase().startsWith("xml")||new RegExp("[\\p{L}_][\\p{L}\\d._\\p{M}-]*","u").test(this[i.$content]))&&(0,s.warn)("XFA - Rename: invalid XFA name")}}class st extends r.OptionObject{constructor(e){super(o,"renderPolicy",["server","client"])}}class ot extends r.OptionObject{constructor(e){super(o,"runScripts",["both","client","none","server"])}}class lt extends r.XFAObject{constructor(e){super(o,"script",!0),this.currentPage=null,this.exclude=null,this.runScripts=null}}class ct extends r.OptionObject{constructor(e){super(o,"scriptModel",["XFA","none"])}}class ht extends r.OptionObject{constructor(e){super(o,"severity",["ignore","error","information","trace","warning"])}}class ut extends r.XFAObject{constructor(e){super(o,"silentPrint",!0),this.addSilentPrint=null,this.printerName=null}}class dt extends r.XFAObject{constructor(e){super(o,"staple"),this.mode=(0,n.getStringOption)(e.mode,["usePrinterSetting","on","off"])}}class ft extends r.StringObject{constructor(e){super(o,"startNode")}}class gt extends r.IntegerObject{constructor(e){super(o,"startPage",0,e=>!0)}}class pt extends r.OptionObject{constructor(e){super(o,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class mt extends r.StringObject{constructor(e){super(o,"submitUrl")}}class bt extends r.IntegerObject{constructor(e){super(o,"subsetBelow",100,e=>0<=e&&e<=100)}}class yt extends r.Option01{constructor(e){super(o,"suppressBanner")}}class wt extends r.Option01{constructor(e){super(o,"tagged")}}class vt extends r.XFAObject{constructor(e){super(o,"template",!0),this.base=null,this.relevant=null,this.startPage=null,this.uri=null,this.xsl=null}}class xt extends r.OptionObject{constructor(e){super(o,"threshold",["trace","error","information","warning"])}}class St extends r.OptionObject{constructor(e){super(o,"to",["null","memory","stderr","stdout","system","uri"])}}class At extends r.XFAObject{constructor(e){super(o,"templateCache"),this.maxEntries=(0,n.getInteger)({data:e.maxEntries,defaultValue:5,validate:e=>0<=e})}}class kt extends r.XFAObject{constructor(e){super(o,"trace",!0),this.area=new r.XFAObjectArray}}class Ct extends r.XFAObject{constructor(e){super(o,"transform",!0),this.groupParent=null,this.ifEmpty=null,this.nameAttr=null,this.picture=null,this.presence=null,this.rename=null,this.whitespace=null}}class Ft extends r.OptionObject{constructor(e){super(o,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class Ot extends r.StringObject{constructor(e){super(o,"uri")}}class It extends r.OptionObject{constructor(e){super(o,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class Tt extends r.ContentObject{constructor(e){super(o,"validateApprovalSignatures")}[i.$finalize](){this[i.$content]=this[i.$content].trim().split(/\s+/).filter(e=>["docReady","postSign"].includes(e))}}class Mt extends r.OptionObject{constructor(e){super(o,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class Pt extends r.OptionObject{constructor(e){super(o,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class Nt extends r.XFAObject{constructor(e){super(o,"VersionControl"),this.outputBelow=(0,n.getStringOption)(e.outputBelow,["warn","error","update"]),this.sourceAbove=(0,n.getStringOption)(e.sourceAbove,["warn","error"]),this.sourceBelow=(0,n.getStringOption)(e.sourceBelow,["update","maintain"])}}class Et extends r.XFAObject{constructor(e){super(o,"viewerPreferences",!0),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 Dt extends r.XFAObject{constructor(e){super(o,"webClient",!0),this.name=e.name?e.name.trim():"",this.fontInfo=null,this.xdc=null}}class Bt extends r.OptionObject{constructor(e){super(o,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class Rt extends r.ContentObject{constructor(e){super(o,"window")}[i.$finalize](){var e=this[i.$content].trim().split(/\s*,\s*/,2).map(e=>parseInt(e,10));e.some(e=>isNaN(e))?this[i.$content]=[0,0]:(1===e.length&&e.push(e[0]),this[i.$content]=e)}}class Lt extends r.XFAObject{constructor(e){super(o,"xdc",!0),this.uri=new r.XFAObjectArray,this.xsl=new r.XFAObjectArray}}class $t extends r.XFAObject{constructor(e){super(o,"xdp",!0),this.packets=null}}class _t extends r.XFAObject{constructor(e){super(o,"xsl",!0),this.debug=null,this.uri=null}}class jt extends r.XFAObject{constructor(e){super(o,"zpl",!0),this.name=e.name?e.name.trim():"",this.batchOutput=null,this.flipLabel=null,this.fontInfo=null,this.xdc=null}}class B{static[a.$buildXFAObject](e,t){if(B.hasOwnProperty(e))return B[e](t)}static acrobat(e){return new l(e)}static acrobat7(e){return new c(e)}static ADBE_JSConsole(e){return new h(e)}static ADBE_JSDebugger(e){return new u(e)}static addSilentPrint(e){return new d(e)}static addViewerPreferences(e){return new f(e)}static adjustData(e){return new g(e)}static adobeExtensionLevel(e){return new p(e)}static agent(e){return new m(e)}static alwaysEmbed(e){return new b(e)}static amd(e){return new y(e)}static area(e){return new w(e)}static attributes(e){return new v(e)}static autoSave(e){return new x(e)}static base(e){return new S(e)}static batchOutput(e){return new A(e)}static behaviorOverride(e){return new k(e)}static cache(e){return new C(e)}static change(e){return new F(e)}static common(e){return new O(e)}static compress(e){return new I(e)}static compressLogicalStructure(e){return new T(e)}static compressObjectStream(e){return new M(e)}static compression(e){return new P(e)}static config(e){return new N(e)}static conformance(e){return new E(e)}static contentCopy(e){return new D(e)}static copies(e){return new L(e)}static creator(e){return new $(e)}static currentPage(e){return new _(e)}static data(e){return new j(e)}static debug(e){return new U(e)}static defaultTypeface(e){return new X(e)}static destination(e){return new H(e)}static documentAssembly(e){return new q(e)}static driver(e){return new z(e)}static duplexOption(e){return new G(e)}static dynamicRender(e){return new W(e)}static embed(e){return new V(e)}static encrypt(e){return new K(e)}static encryption(e){return new Y(e)}static encryptionLevel(e){return new Z(e)}static enforce(e){return new J(e)}static equate(e){return new Q(e)}static equateRange(e){return new ee(e)}static exclude(e){return new te(e)}static excludeNS(e){return new ae(e)}static flipLabel(e){return new re(e)}static fontInfo(e){return new ie(e)}static formFieldFilling(e){return new ne(e)}static groupParent(e){return new se(e)}static ifEmpty(e){return new oe(e)}static includeXDPContent(e){return new le(e)}static incrementalLoad(e){return new ce(e)}static incrementalMerge(e){return new he(e)}static interactive(e){return new ue(e)}static jog(e){return new de(e)}static labelPrinter(e){return new fe(e)}static layout(e){return new ge(e)}static level(e){return new pe(e)}static linearized(e){return new me(e)}static locale(e){return new be(e)}static localeSet(e){return new ye(e)}static log(e){return new we(e)}static map(e){return new ve(e)}static mediumInfo(e){return new xe(e)}static message(e){return new Se(e)}static messaging(e){return new Ae(e)}static mode(e){return new ke(e)}static modifyAnnots(e){return new Ce(e)}static msgId(e){return new Fe(e)}static nameAttr(e){return new Oe(e)}static neverEmbed(e){return new Ie(e)}static numberOfCopies(e){return new Te(e)}static openAction(e){return new Me(e)}static output(e){return new Pe(e)}static outputBin(e){return new Ne(e)}static outputXSL(e){return new Ee(e)}static overprint(e){return new De(e)}static packets(e){return new Be(e)}static pageOffset(e){return new Re(e)}static pageRange(e){return new Le(e)}static pagination(e){return new $e(e)}static paginationOverride(e){return new _e(e)}static part(e){return new je(e)}static pcl(e){return new Ue(e)}static pdf(e){return new Xe(e)}static pdfa(e){return new He(e)}static permissions(e){return new qe(e)}static pickTrayByPDFSize(e){return new ze(e)}static picture(e){return new Ge(e)}static plaintextMetadata(e){return new We(e)}static presence(e){return new Ve(e)}static present(e){return new Ke(e)}static print(e){return new Ye(e)}static printHighQuality(e){return new Ze(e)}static printScaling(e){return new Je(e)}static printerName(e){return new Qe(e)}static producer(e){return new et(e)}static ps(e){return new tt(e)}static range(e){return new at(e)}static record(e){return new rt(e)}static relevant(e){return new it(e)}static rename(e){return new nt(e)}static renderPolicy(e){return new st(e)}static runScripts(e){return new ot(e)}static script(e){return new lt(e)}static scriptModel(e){return new ct(e)}static severity(e){return new ht(e)}static silentPrint(e){return new ut(e)}static staple(e){return new dt(e)}static startNode(e){return new ft(e)}static startPage(e){return new gt(e)}static submitFormat(e){return new pt(e)}static submitUrl(e){return new mt(e)}static subsetBelow(e){return new bt(e)}static suppressBanner(e){return new yt(e)}static tagged(e){return new wt(e)}static template(e){return new vt(e)}static templateCache(e){return new At(e)}static threshold(e){return new xt(e)}static to(e){return new St(e)}static trace(e){return new kt(e)}static transform(e){return new Ct(e)}static type(e){return new Ft(e)}static uri(e){return new Ot(e)}static validate(e){return new It(e)}static validateApprovalSignatures(e){return new Tt(e)}static validationMessaging(e){return new Mt(e)}static version(e){return new Pt(e)}static versionControl(e){return new Nt(e)}static viewerPreferences(e){return new Et(e)}static webClient(e){return new Dt(e)}static whitespace(e){return new Bt(e)}static window(e){return new Rt(e)}static xdc(e){return new Lt(e)}static xdp(e){return new $t(e)}static xsl(e){return new _t(e)}static zpl(e){return new jt(e)}}e.ConfigNamespace=B},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectionSetNamespace=void 0;var r=a(81),i=a(87);const n=r.NamespaceIds.connectionSet.id;class s extends i.XFAObject{constructor(e){super(n,"connectionSet",!0),this.wsdlConnection=new i.XFAObjectArray,this.xmlConnection=new i.XFAObjectArray,this.xsdConnection=new i.XFAObjectArray}}class o extends i.XFAObject{constructor(e){super(n,"effectiveInputPolicy"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class l extends i.XFAObject{constructor(e){super(n,"effectiveOutputPolicy"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class c extends i.StringObject{constructor(e){super(n,"operation"),this.id=e.id||"",this.input=e.input||"",this.name=e.name||"",this.output=e.output||"",this.use=e.use||"",this.usehref=e.usehref||""}}class h extends i.StringObject{constructor(e){super(n,"rootElement"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class u extends i.StringObject{constructor(e){super(n,"soapAction"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class d extends i.StringObject{constructor(e){super(n,"soapAddress"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class f extends i.StringObject{constructor(e){super(n,"uri"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class g extends i.StringObject{constructor(e){super(n,"wsdlAddress"),this.id=e.id||"",this.name=e.name||"",this.use=e.use||"",this.usehref=e.usehref||""}}class p extends i.XFAObject{constructor(e){super(n,"wsdlConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.effectiveInputPolicy=null,this.effectiveOutputPolicy=null,this.operation=null,this.soapAction=null,this.soapAddress=null,this.wsdlAddress=null}}class m extends i.XFAObject{constructor(e){super(n,"xmlConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.uri=null}}class b extends i.XFAObject{constructor(e){super(n,"xsdConnection",!0),this.dataDescription=e.dataDescription||"",this.name=e.name||"",this.rootElement=null,this.uri=null}}class y{static[r.$buildXFAObject](e,t){if(y.hasOwnProperty(e))return y[e](t)}static connectionSet(e){return new s(e)}static effectiveInputPolicy(e){return new o(e)}static effectiveOutputPolicy(e){return new l(e)}static operation(e){return new c(e)}static rootElement(e){return new h(e)}static soapAction(e){return new u(e)}static soapAddress(e){return new d(e)}static uri(e){return new f(e)}static wsdlAddress(e){return new g(e)}static wsdlConnection(e){return new p(e)}static xmlConnection(e){return new m(e)}static xsdConnection(e){return new b(e)}}t.ConnectionSetNamespace=y},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetsNamespace=void 0;var r=a(78),i=a(81),a=a(87);const n=i.NamespaceIds.datasets.id;class s extends a.XmlObject{constructor(e){super(n,"data",e)}[r.$isNsAgnostic](){return!0}}class o extends a.XFAObject{constructor(e){super(n,"datasets",!0),this.data=null,this.Signature=null}[r.$onChild](e){var t=e[r.$nodeName];("data"===t&&e[r.$namespaceId]===n||"Signature"===t&&e[r.$namespaceId]===i.NamespaceIds.signature.id)&&(this[t]=e),this[r.$appendChild](e)}}class l{static[i.$buildXFAObject](e,t){if(l.hasOwnProperty(e))return l[e](t)}static datasets(e){return new o(e)}static data(e){return new s(e)}}t.DatasetsNamespace=l},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LocaleSetNamespace=void 0;var r=a(81),i=a(87),n=a(84);const s=r.NamespaceIds.localeSet.id;class o extends i.XFAObject{constructor(e){super(s,"calendarSymbols",!0),this.name="gregorian",this.dayNames=new i.XFAObjectArray(2),this.eraNames=null,this.meridiemNames=null,this.monthNames=new i.XFAObjectArray(2)}}class l extends i.StringObject{constructor(e){super(s,"currencySymbol"),this.name=(0,n.getStringOption)(e.name,["symbol","isoname","decimal"])}}class c extends i.XFAObject{constructor(e){super(s,"currencySymbols",!0),this.currencySymbol=new i.XFAObjectArray(3)}}class h extends i.StringObject{constructor(e){super(s,"datePattern"),this.name=(0,n.getStringOption)(e.name,["full","long","med","short"])}}class u extends i.XFAObject{constructor(e){super(s,"datePatterns",!0),this.datePattern=new i.XFAObjectArray(4)}}class d extends i.ContentObject{constructor(e){super(s,"dateTimeSymbols")}}class f extends i.StringObject{constructor(e){super(s,"day")}}class g extends i.XFAObject{constructor(e){super(s,"dayNames",!0),this.abbr=(0,n.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e}),this.day=new i.XFAObjectArray(7)}}class p extends i.StringObject{constructor(e){super(s,"era")}}class m extends i.XFAObject{constructor(e){super(s,"eraNames",!0),this.era=new i.XFAObjectArray(2)}}class b extends i.XFAObject{constructor(e){super(s,"locale",!0),this.desc=e.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 y extends i.XFAObject{constructor(e){super(s,"localeSet",!0),this.locale=new i.XFAObjectArray}}class w extends i.StringObject{constructor(e){super(s,"meridiem")}}class v extends i.XFAObject{constructor(e){super(s,"meridiemNames",!0),this.meridiem=new i.XFAObjectArray(2)}}class x extends i.StringObject{constructor(e){super(s,"month")}}class S extends i.XFAObject{constructor(e){super(s,"monthNames",!0),this.abbr=(0,n.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e}),this.month=new i.XFAObjectArray(12)}}class A extends i.StringObject{constructor(e){super(s,"numberPattern"),this.name=(0,n.getStringOption)(e.name,["full","long","med","short"])}}class k extends i.XFAObject{constructor(e){super(s,"numberPatterns",!0),this.numberPattern=new i.XFAObjectArray(4)}}class C extends i.StringObject{constructor(e){super(s,"numberSymbol"),this.name=(0,n.getStringOption)(e.name,["decimal","grouping","percent","minus","zero"])}}class F extends i.XFAObject{constructor(e){super(s,"numberSymbols",!0),this.numberSymbol=new i.XFAObjectArray(5)}}class O extends i.StringObject{constructor(e){super(s,"timePattern"),this.name=(0,n.getStringOption)(e.name,["full","long","med","short"])}}class I extends i.XFAObject{constructor(e){super(s,"timePatterns",!0),this.timePattern=new i.XFAObjectArray(4)}}class T extends i.XFAObject{constructor(e){super(s,"typeFace",!0),this.name=""|e.name}}class M extends i.XFAObject{constructor(e){super(s,"typeFaces",!0),this.typeFace=new i.XFAObjectArray}}class P{static[r.$buildXFAObject](e,t){if(P.hasOwnProperty(e))return P[e](t)}static calendarSymbols(e){return new o(e)}static currencySymbol(e){return new l(e)}static currencySymbols(e){return new c(e)}static datePattern(e){return new h(e)}static datePatterns(e){return new u(e)}static dateTimeSymbols(e){return new d(e)}static day(e){return new f(e)}static dayNames(e){return new g(e)}static era(e){return new p(e)}static eraNames(e){return new m(e)}static locale(e){return new b(e)}static localeSet(e){return new y(e)}static meridiem(e){return new w(e)}static meridiemNames(e){return new v(e)}static month(e){return new x(e)}static monthNames(e){return new S(e)}static numberPattern(e){return new A(e)}static numberPatterns(e){return new k(e)}static numberSymbol(e){return new C(e)}static numberSymbols(e){return new F(e)}static timePattern(e){return new O(e)}static timePatterns(e){return new I(e)}static typeFace(e){return new T(e)}static typeFaces(e){return new M(e)}}t.LocaleSetNamespace=P},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SignatureNamespace=void 0;var r=a(81),a=a(87);const i=r.NamespaceIds.signature.id;class n extends a.XFAObject{constructor(e){super(i,"signature",!0)}}class s{static[r.$buildXFAObject](e,t){if(s.hasOwnProperty(e))return s[e](t)}static signature(e){return new n(e)}}t.SignatureNamespace=s},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StylesheetNamespace=void 0;var r=a(81),a=a(87);const i=r.NamespaceIds.stylesheet.id;class n extends a.XFAObject{constructor(e){super(i,"stylesheet",!0)}}class s{static[r.$buildXFAObject](e,t){if(s.hasOwnProperty(e))return s[e](t)}static stylesheet(e){return new n(e)}}t.StylesheetNamespace=s},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XdpNamespace=void 0;var r=a(81),i=a(78),n=a(87);const s=r.NamespaceIds.xdp.id;class o extends n.XFAObject{constructor(e){super(s,"xdp",!0),this.uuid=e.uuid||"",this.timeStamp=e.timeStamp||"",this.config=null,this.connectionSet=null,this.datasets=null,this.localeSet=null,this.stylesheet=new n.XFAObjectArray,this.template=null}[i.$onChildCheck](e){var t=r.NamespaceIds[e[i.$nodeName]];return t&&e[i.$namespaceId]===t.id}}class l{static[r.$buildXFAObject](e,t){if(l.hasOwnProperty(e))return l[e](t)}static xdp(e){return new o(e)}}t.XdpNamespace=l},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XhtmlNamespace=void 0;var s=a(78),r=a(81),o=a(83),l=a(84),a=a(87);const i=r.NamespaceIds.xhtml.id,n=Symbol(),c=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"]),h=new Map([["page-break-after","breakAfter"],["page-break-before","breakBefore"],["page-break-inside","breakInside"],["kerning-mode",e=>"none"===e?"none":"normal"],["xfa-font-horizontal-scale",e=>`scaleX(${Math.max(0,Math.min(parseInt(e)/100)).toFixed(2)})`],["xfa-font-vertical-scale",e=>`scaleY(${Math.max(0,Math.min(parseInt(e)/100)).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(e,t)=>(e=t.fontSize=(0,l.getMeasurement)(e),(0,o.measureToString)(.99*e))],["letter-spacing",e=>(0,o.measureToString)((0,l.getMeasurement)(e))],["line-height",e=>(0,o.measureToString)((0,l.getMeasurement)(e))],["margin",e=>(0,o.measureToString)((0,l.getMeasurement)(e))],["margin-bottom",e=>(0,o.measureToString)((0,l.getMeasurement)(e))],["margin-left",e=>(0,o.measureToString)((0,l.getMeasurement)(e))],["margin-right",e=>(0,o.measureToString)((0,l.getMeasurement)(e))],["margin-top",e=>(0,o.measureToString)((0,l.getMeasurement)(e))],["text-indent",e=>(0,o.measureToString)((0,l.getMeasurement)(e))],["font-family",e=>e],["vertical-align",e=>(0,o.measureToString)((0,l.getMeasurement)(e))]]),u=/\s+/g,d=/[\r\n]+/g,f=/\r\n?/g;const g=new Set(["body","html"]);class p extends a.XmlObject{constructor(e,t){super(i,t),this[n]=!1,this.style=e.style||""}[s.$clean](e){var a;super[s.$clean](e),this.style=(a=this).style?a.style.trim().split(/\s*;\s*/).filter(e=>!!e).map(e=>e.split(/\s*:\s*/,2)).filter(([e,t])=>("font-family"===e&&a[s.$globalData].usedTypefaces.add(t),c.has(e))).map(e=>e.join(":")).join(";"):""}[s.$acceptWhitespace](){return!g.has(this[s.$nodeName])}[s.$onText](e,t=!1){t?this[n]=!0:(e=e.replaceAll(d,""),this.style.includes("xfa-spacerun:yes")||(e=e.replaceAll(u," "))),e&&(this[s.$content]+=e)}[s.$pushGlyphs](e,t=!0){var a=Object.create(null),r={top:NaN,bottom:NaN,left:NaN,right:NaN};let i=null;for(const[e,t]of this.style.split(";").map(e=>e.split(":",2)))switch(e){case"font-family":a.typeface=(0,l.stripQuotes)(t);break;case"font-size":a.size=(0,l.getMeasurement)(t);break;case"font-weight":a.weight=t;break;case"font-style":a.posture=t;break;case"letter-spacing":a.letterSpacing=(0,l.getMeasurement)(t);break;case"margin":const e=t.split(/ \t/).map(e=>(0,l.getMeasurement)(e));switch(e.length){case 1:r.top=r.bottom=r.left=r.right=e[0];break;case 2:r.top=r.bottom=e[0],r.left=r.right=e[1];break;case 3:r.top=e[0],r.bottom=e[2],r.left=r.right=e[1];break;case 4:r.top=e[0],r.left=e[1],r.bottom=e[2],r.right=e[3]}break;case"margin-top":r.top=(0,l.getMeasurement)(t);break;case"margin-bottom":r.bottom=(0,l.getMeasurement)(t);break;case"margin-left":r.left=(0,l.getMeasurement)(t);break;case"margin-right":r.right=(0,l.getMeasurement)(t);break;case"line-height":i=(0,l.getMeasurement)(t)}if(e.pushData(a,r,i),this[s.$content])e.addString(this[s.$content]);else for(const t of this[s.$getChildren]())"#text"!==t[s.$nodeName]?t[s.$pushGlyphs](e):e.addString(t[s.$content]);t&&e.popFont()}[s.$toHTML](e){var t,a=[];return this[s.$extra]={children:a},this[s.$childrenToHTML]({}),0!==a.length||this[s.$content]?(t=this[n]?this[s.$content]?this[s.$content].replaceAll(f,"\n"):void 0:this[s.$content]||void 0,l.HTMLResult.success({name:this[s.$nodeName],attributes:{href:this.href,style:function(t,a,r){var i=Object.create(null);if(t){var n=Object.create(null);for(const[a,r]of t.split(";").map(e=>e.split(":",2))){const t=h.get(a);if(""!==t){let e=r;t&&(e="string"==typeof t?t:t(r,n)),a.endsWith("scale")?i.transform=i.transform?i[a]+" "+e:e:i[a.replaceAll(/-([a-zA-Z])/g,(e,t)=>t.toUpperCase())]=e}}if(i.fontFamily&&(0,o.setFontFamily)({typeface:i.fontFamily,weight:i.fontWeight||"normal",posture:i.fontStyle||"normal",size:n.fontSize||0},a,a[s.$globalData].fontFinder,i),r&&i.verticalAlign&&"0px"!==i.verticalAlign&&i.fontSize){const t=.583,a=.333,r=(0,l.getMeasurement)(i.fontSize);i.fontSize=(0,o.measureToString)(.583*r),i.verticalAlign=(0,o.measureToString)(Math.sign((0,l.getMeasurement)(i.verticalAlign))*r*.333)}r&&i.fontSize&&(i.fontSize=`calc(${i.fontSize} * var(--scale-factor))`),(0,o.fixTextIndent)(i)}return i}(this.style,this,this[n])},children:a,value:t})):l.HTMLResult.EMPTY}}class m extends p{constructor(e){super(e,"a"),this.href=(0,o.fixURL)(e.href)||""}}class b extends p{constructor(e){super(e,"b")}[s.$pushGlyphs](e){e.pushFont({weight:"bold"}),super[s.$pushGlyphs](e),e.popFont()}}class y extends p{constructor(e){super(e,"body")}[s.$toHTML](e){var e=super[s.$toHTML](e),t=e["html"];return t?(t.name="div",t.attributes.class=["xfaRich"],e):l.HTMLResult.EMPTY}}class w extends p{constructor(e){super(e,"br")}[s.$text](){return"\n"}[s.$pushGlyphs](e){e.addString("\n")}[s.$toHTML](e){return l.HTMLResult.success({name:"br"})}}class v extends p{constructor(e){super(e,"html")}[s.$toHTML](e){var t=[];if(this[s.$extra]={children:t},this[s.$childrenToHTML]({}),0===t.length)return l.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[s.$content]||""});if(1===t.length){const e=t[0];if(e.attributes?.class.includes("xfaRich"))return l.HTMLResult.success(e)}return l.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:t})}}class x extends p{constructor(e){super(e,"i")}[s.$pushGlyphs](e){e.pushFont({posture:"italic"}),super[s.$pushGlyphs](e),e.popFont()}}class S extends p{constructor(e){super(e,"li")}}class A extends p{constructor(e){super(e,"ol")}}class k extends p{constructor(e){super(e,"p")}[s.$pushGlyphs](e){super[s.$pushGlyphs](e,!1),e.addString("\n"),e.addPara(),e.popFont()}[s.$text](){return this[s.$getParent]()[s.$getChildren]().at(-1)===this?super[s.$text]():super[s.$text]()+"\n"}}class C extends p{constructor(e){super(e,"span")}}class F extends p{constructor(e){super(e,"sub")}}class O extends p{constructor(e){super(e,"sup")}}class I extends p{constructor(e){super(e,"ul")}}class T{static[r.$buildXFAObject](e,t){if(T.hasOwnProperty(e))return T[e](t)}static a(e){return new m(e)}static b(e){return new b(e)}static body(e){return new y(e)}static br(e){return new w(e)}static html(e){return new v(e)}static i(e){return new x(e)}static li(e){return new S(e)}static ol(e){return new A(e)}static p(e){return new k(e)}static span(e){return new C(e)}static sub(e){return new F(e)}static sup(e){return new O(e)}static ul(e){return new I(e)}}t.XhtmlNamespace=T},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownNamespace=void 0;var r=a(81),i=a(87);class n{constructor(e){this.namespaceId=e}[r.$buildXFAObject](e,t){return new i.XmlObject(this.namespaceId,e,t)}}t.UnknownNamespace=n},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetReader=void 0;var r=a(2),i=a(3),n=a(71);function s(t){try{return(0,r.stringToUTF8String)(t)}catch(e){return(0,r.warn)(`UTF-8 decoding failed: "${e}".`),t}}class o extends n.SimpleXMLParser{constructor(e){super(e),this.node=null}onEndElement(e){var t=super.onEndElement(e);if(t&&"xfa:datasets"===e)throw this.node=t,new Error("Aborting DatasetXMLParser.")}}t.DatasetReader=class{constructor(e){if(e.datasets)this.node=new n.SimpleXMLParser({hasAttributes:!0}).parseFromString(e.datasets).documentElement;else{var t=new o({hasAttributes:!0});try{t.parseFromString(e["xdp:xdp"])}catch{}this.node=t.node}}getValue(e){return this.node&&(e=e&&this.node.searchNode((0,i.parseXFAPath)(e),0))?"value"===e.firstChild?.nodeName?e.children.map(e=>s(e.textContent)):s(e.textContent):""}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XRef=void 0;var x=a(2),S=a(4),A=a(16),k=a(3),d=a(5),i=a(74);t.XRef=class{#E=null;constructor(e,t){this.stream=e,this.pdfManager=t,this.entries=[],this._xrefStms=new Set,this._cacheMap=new Map,this._pendingRefs=new S.RefSet,this._newPersistentRefNum=null,this._newTemporaryRefNum=null}getNewPersistentRef(e){null===this._newPersistentRefNum&&(this._newPersistentRefNum=this.entries.length||1);var t=this._newPersistentRefNum++;return this._cacheMap.set(t,e),S.Ref.get(t,0)}getNewTemporaryRef(){return null===this._newTemporaryRefNum&&(this._newTemporaryRefNum=this.entries.length||1),S.Ref.get(this._newTemporaryRefNum++,0)}resetNewTemporaryRef(){this._newTemporaryRefNum=null}setStartXRef(e){this.startXRefQueue=[e]}parse(e=!1){let t,a,r;(t=e?((0,x.warn)("Indexing all PDF objects"),this.indexObjects()):this.readXRef()).assignXref(this),this.trailer=t;try{a=t.get("Encrypt")}catch(e){if(e instanceof k.MissingDataException)throw e;(0,x.warn)(`XRef.parse - Invalid "Encrypt" reference: "${e}".`)}if(a instanceof S.Dict){const e=t.get("ID"),x=e?.length?e[0]:"";a.suppressEncryption=!0,this.encrypt=new i.CipherTransformFactory(a,x,this.pdfManager.password)}try{r=t.get("Root")}catch(e){if(e instanceof k.MissingDataException)throw e;(0,x.warn)(`XRef.parse - Invalid "Root" reference: "${e}".`)}if(r instanceof S.Dict)try{if(r.get("Pages")instanceof S.Dict)return void(this.root=r)}catch(e){if(e instanceof k.MissingDataException)throw e;(0,x.warn)(`XRef.parse - Invalid "Pages" reference: "${e}".`)}if(e)throw new x.InvalidPDFException("Invalid Root reference.");throw new k.XRefParseException}processXRefTable(e){"tableState"in this||(this.tableState={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2});var t=this.readXRefTable(e);if(!(0,S.isCmd)(t,"trailer"))throw new x.FormatError("Invalid XRef table: could not find trailer dictionary");let a=e.getObj();if((a=a instanceof S.Dict||!a.dict?a:a.dict)instanceof S.Dict)return delete this.tableState,a;throw new x.FormatError("Invalid XRef table: could not parse trailer dictionary")}readXRefTable(a){var r=a.lexer.stream,i=this.tableState;let e;for(r.pos=i.streamPos,a.buf1=i.parserBuf1,a.buf2=i.parserBuf2;;){if(!("firstEntryNum"in i&&"entryCount"in i)){if((0,S.isCmd)(e=a.getObj(),"trailer"))break;i.firstEntryNum=e,i.entryCount=a.getObj()}let t=i.firstEntryNum;var n=i.entryCount;if(!Number.isInteger(t)||!Number.isInteger(n))throw new x.FormatError("Invalid XRef table: wrong types in subsection header");for(let e=i.entryNum;e<n;e++){i.streamPos=r.pos,i.entryNum=e,i.parserBuf1=a.buf1,i.parserBuf2=a.buf2;var s={},o=(s.offset=a.getObj(),s.gen=a.getObj(),a.getObj());if(o instanceof S.Cmd)switch(o.cmd){case"f":s.free=!0;break;case"n":s.uncompressed=!0}if(!Number.isInteger(s.offset)||!Number.isInteger(s.gen)||!s.free&&!s.uncompressed)throw new x.FormatError(`Invalid entry in XRef subsection: ${t}, `+n);0===e&&s.free&&1===t&&(t=0),this.entries[e+t]||(this.entries[e+t]=s)}i.entryNum=0,i.streamPos=r.pos,i.parserBuf1=a.buf1,i.parserBuf2=a.buf2,delete i.firstEntryNum,delete i.entryCount}if(this.entries[0]&&!this.entries[0].free)throw new x.FormatError("Invalid XRef table: unexpected first object");return e}processXRefStream(t){if(!("streamState"in this)){var a=t.dict,r=a.get("W");let e=a.get("Index");e=e||[0,a.get("Size")],this.streamState={entryRanges:e,byteWidths:r,entryNum:0,streamPos:t.pos}}return this.readXRefStream(t),delete this.streamState,t.dict}readXRefStream(i){const n=this.streamState;i.pos=n.streamPos;for(var[s,o,l]=n.byteWidths,e=n.entryRanges;0<e.length;){var[c,t]=e;if(!Number.isInteger(c)||!Number.isInteger(t))throw new x.FormatError(`Invalid XRef range fields: ${c}, `+t);if(!Number.isInteger(s)||!Number.isInteger(o)||!Number.isInteger(l))throw new x.FormatError(`Invalid XRef entry fields length: ${c}, `+t);for(let e=n.entryNum;e<t;++e){n.entryNum=e,n.streamPos=i.pos;let t=0,a=0,r=0;for(let e=0;e<s;++e){const n=i.getByte();if(-1===n)throw new x.FormatError("Invalid XRef byteWidths 'type'.");t=t<<8|n}0===s&&(t=1);for(let e=0;e<o;++e){const n=i.getByte();if(-1===n)throw new x.FormatError("Invalid XRef byteWidths 'offset'.");a=a<<8|n}for(let e=0;e<l;++e){const n=i.getByte();if(-1===n)throw new x.FormatError("Invalid XRef byteWidths 'generation'.");r=r<<8|n}var h={};switch(h.offset=a,h.gen=r,t){case 0:h.free=!0;break;case 1:h.uncompressed=!0;break;case 2:break;default:throw new x.FormatError("Invalid XRef entry type: "+t)}this.entries[c+e]||(this.entries[c+e]=h)}n.entryNum=0,n.streamPos=i.pos,e.splice(0,2)}}indexObjects(){function a(e,t){let a="",r=e[t];for(;10!==r&&13!==r&&60!==r&&!(++t>=e.length);)a+=String.fromCharCode(r),r=e[t];return a}function r(t,a,r){var i=r.length,e=t.length;let n=0;for(;a<e;){let e=0;for(;e<i&&t[a+e]===r[e];)++e;if(e>=i)break;a++,n++}return n}const i=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g,n=/\b(startxref|\d+\s+\d+\s+obj)\b/g,t=/^(\d+)\s+(\d+)\s+obj\b/,s=new Uint8Array([116,114,97,105,108,101,114]),o=new Uint8Array([115,116,97,114,116,120,114,101,102]),l=new Uint8Array([47,88,82,101,102]);this.entries.length=0,this._cacheMap.clear();var c,h=this.stream,u=(h.pos=0,h.getBytes()),d=(0,x.bytesToString)(u),f=u.length;let g=h.start;const p=[],m=[];for(;g<f;){let e=u[g];if(9===e||10===e||13===e||32===e)++g;else if(37===e)for(;!(++g>=f)&&10!==(e=u[g])&&13!==e;);else{const b=a(u,g);if(b.startsWith("xref")&&(4===b.length||/\s/.test(b[4])))g+=r(u,g,s),p.push(g),g+=r(u,g,o);else if(c=t.exec(b)){const a=0|c[1],S=0|c[2],n=g+b.length;let e,t=!1;if(this.entries[a]){if(this.entries[a].gen===S)try{new A.Parser({lexer:new A.Lexer(h.makeSubStream(n))}).getObj(),t=!0}catch(a){a instanceof k.ParserEOFException?(0,x.warn)(`indexObjects -- checking object (${b}): "${a}".`):t=!0}}else t=!0;t&&(this.entries[a]={offset:g-h.start,gen:S,uncompressed:!0}),i.lastIndex=n;const o=i.exec(d),p=(o?(e=i.lastIndex+1-g,"endobj"!==o[1]&&((0,x.warn)(`indexObjects: Found "${o[1]}" inside of another "obj", caused by missing "endobj" -- trying to recover.`),e-=o[1].length+1)):e=f-g,u.subarray(g,g+e)),w=r(p,0,l);w<e&&p[w+5]<64&&(m.push(g-h.start),this._xrefStms.add(g-h.start)),g+=e}else if(b.startsWith("trailer")&&(7===b.length||/\s/.test(b[7]))){p.push(g);const a=g+b.length;let e;n.lastIndex=a;const i=n.exec(d);i?(e=n.lastIndex+1-g,"startxref"!==i[1]&&((0,x.warn)(`indexObjects: Found "${i[1]}" after "trailer", caused by missing "startxref" -- trying to recover.`),e-=i[1].length+1)):e=f-g,g+=e}else g+=b.length+1}}for(const a of m)this.startXRefQueue.push(a),this.readXRef(!0);const b=[];let y,w,v=!1;for(const a of p){h.pos=a;const r=new A.Parser({lexer:new A.Lexer(h),xref:this,allowStreams:!0,recoveryMode:!0}),i=r.getObj();if((0,S.isCmd)(i,"trailer")){const x=r.getObj();x instanceof S.Dict&&(b.push(x),x.has("Encrypt"))&&(v=!0)}}for(const a of[...b,"genFallback",...b])if("genFallback"===a){if(!w)break;this._generationFallback=!0}else{let e=!1;try{const i=a.get("Root");if(!(i instanceof S.Dict))continue;const x=i.get("Pages");if(!(x instanceof S.Dict))continue;const A=x.get("Count");Number.isInteger(A)&&(e=!0)}catch(a){w=a;continue}if(e&&(!v||a.has("Encrypt"))&&a.has("ID"))return a;y=a}if(y)return y;if(this.topDict)return this.topDict;throw new x.InvalidPDFException("Invalid PDF structure.")}readXRef(a=!1){for(var r=this.stream,i=new Set;this.startXRefQueue.length;){try{const a=this.startXRefQueue[0];if(i.has(a)){(0,x.warn)("readXRef - skipping XRef table since it was already parsed."),this.startXRefQueue.shift();continue}i.add(a),r.pos=a+r.start;const k=new A.Parser({lexer:new A.Lexer(r),xref:this,allowStreams:!0});let e,t=k.getObj();if((0,S.isCmd)(t,"xref"))e=this.processXRefTable(k),this.topDict||(this.topDict=e),t=e.get("XRefStm"),Number.isInteger(t)&&!this._xrefStms.has(t)&&(this._xrefStms.add(t),this.startXRefQueue.push(t),this.#E??=t);else{if(!Number.isInteger(t))throw new x.FormatError("Invalid XRef stream header");if(!(Number.isInteger(k.getObj())&&(0,S.isCmd)(k.getObj(),"obj")&&(t=k.getObj())instanceof d.BaseStream))throw new x.FormatError("Invalid XRef stream");if(e=this.processXRefStream(t),this.topDict||(this.topDict=e),!e)throw new x.FormatError("Failed to read XRef stream")}t=e.get("Prev"),Number.isInteger(t)?this.startXRefQueue.push(t):t instanceof S.Ref&&this.startXRefQueue.push(t.num)}catch(a){if(a instanceof k.MissingDataException)throw a;(0,x.info)("(while reading XRef): "+a)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!a)throw new k.XRefParseException}get lastXRefStreamPos(){return this.#E??(0<this._xrefStms.size?Math.max(...this._xrefStms):null)}getEntry(e){e=this.entries[e];return e&&!e.free&&e.offset?e:null}fetchIfRef(e,t=!1){return e instanceof S.Ref?this.fetch(e,t):e}fetch(e,t=!1){if(!(e instanceof S.Ref))throw new Error("ref object is not a reference");var a=e.num,r=this._cacheMap.get(a);if(void 0!==r)return r instanceof S.Dict&&!r.objId&&(r.objId=e.toString()),r;let i=this.getEntry(a);if(null===i)this._cacheMap.set(a,i);else{if(this._pendingRefs.has(e))return this._pendingRefs.remove(e),(0,x.warn)(`Ignoring circular reference: ${e}.`),S.CIRCULAR_REF;this._pendingRefs.put(e);try{i=i.uncompressed?this.fetchUncompressed(e,i,t):this.fetchCompressed(e,i,t),this._pendingRefs.remove(e)}catch(t){throw this._pendingRefs.remove(e),t}i instanceof S.Dict?i.objId=e.toString():i instanceof d.BaseStream&&(i.dict.objId=e.toString())}return i}fetchUncompressed(e,t,a=!1){var r=e.gen;let i=e.num;if(t.gen!==r){const A="Inconsistent generation in XRef: "+e;if(this._generationFallback&&t.gen<r)return(0,x.warn)(A),this.fetchUncompressed(S.Ref.get(i,t.gen),t,a);throw new k.XRefEntryException(A)}var n=this.stream.makeSubStream(t.offset+this.stream.start),n=new A.Parser({lexer:new A.Lexer(n),xref:this,allowStreams:!0}),s=n.getObj(),o=n.getObj(),l=n.getObj();if(s===i&&o===r&&l instanceof S.Cmd){if("obj"===l.cmd)return(t=this.encrypt&&!a?n.getObj(this.encrypt.createCipherTransform(i,r)):n.getObj())instanceof d.BaseStream||this._cacheMap.set(i,t),t;if(l.cmd.startsWith("obj")&&(i=parseInt(l.cmd.substring(3),10),!Number.isNaN(i)))return i}throw new k.XRefEntryException("Bad (uncompressed) XRef entry: "+e)}fetchCompressed(e,t,a=0){var r=t.offset,i=this.fetch(S.Ref.get(r,0));if(!(i instanceof d.BaseStream))throw new x.FormatError("bad ObjStm stream");var n=i.dict.get("First"),s=i.dict.get("N");if(!Number.isInteger(n)||!Number.isInteger(s))throw new x.FormatError("invalid first and n parameters for ObjStm stream");let o=new A.Parser({lexer:new A.Lexer(i),xref:this,allowStreams:!0});var l=new Array(s),c=new Array(s);for(let e=0;e<s;++e){const t=o.getObj();if(!Number.isInteger(t))throw new x.FormatError("invalid object number in the ObjStm stream: "+t);const a=o.getObj();if(!Number.isInteger(a))throw new x.FormatError("invalid object offset in the ObjStm stream: "+a);l[e]=t,c[e]=a}var h=(i.start||0)+n,u=new Array(s);for(let e=0;e<s;++e){const t=e<s-1?c[e+1]-c[e]:void 0;if(t<0)throw new x.FormatError("Invalid offset in the ObjStm stream.");const a=(o=new A.Parser({lexer:new A.Lexer(i.makeSubStream(h+c[e],t,i.dict)),xref:this,allowStreams:!0})).getObj();if(!((u[e]=a)instanceof d.BaseStream)){const S=l[e],k=this.entries[S];k&&k.offset===r&&k.gen===e&&this._cacheMap.set(S,a)}}if(void 0===(t=u[t.gen]))throw new k.XRefEntryException("Bad (compressed) XRef entry: "+e);return t}async fetchIfRefAsync(e,t){return e instanceof S.Ref?this.fetchAsync(e,t):e}async fetchAsync(t,a){try{return this.fetch(t,a)}catch(e){if(e instanceof k.MissingDataException)return await this.pdfManager.requestRange(e.begin,e.end),this.fetchAsync(t,a);throw e}}getCatalogObj(){return this.root}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var c=a(2);function h(e){switch(e instanceof Error||"object"==typeof e&&null!==e||(0,c.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new c.AbortException(e.message);case"MissingPDFException":return new c.MissingPDFException(e.message);case"PasswordException":return new c.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new c.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new c.UnknownErrorException(e.message,e.details);default:return new c.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,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 a=t.data;if(a.targetName===this.sourceName)if(a.stream)this.#D(a);else if(a.callback){const t=a.callbackId,n=this.callbackCapabilities[t];if(!n)throw new Error("Cannot resolve callback "+t);if(delete this.callbackCapabilities[t],1===a.callback)n.resolve(a.data);else{if(2!==a.callback)throw new Error("Unexpected callback case");n.reject(h(a.reason))}}else{const r=this.actionHandler[a.action];if(!r)throw new Error("Unknown action from worker: "+a.action);if(a.callbackId){const t=this.sourceName,i=a.sourceName;new Promise(function(e){e(r(a.data))}).then(function(e){n.postMessage({sourceName:t,targetName:i,callback:1,callbackId:a.callbackId,data:e})},function(e){n.postMessage({sourceName:t,targetName:i,callback:2,callbackId:a.callbackId,reason:h(e)})})}else a.streamId?this.#R(a):r(a.data)}},n.addEventListener("message",this._onComObjOnMessage)}on(e,t){var a=this.actionHandler;if(a[e])throw new Error(`There is already an actionName called "${e}"`);a[e]=t}send(e,t,a){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},a)}sendWithPromise(e,t,a){var r=this.callbackId++,i=new c.PromiseCapability;this.callbackCapabilities[r]=i;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:r,data:t},a)}catch(e){i.reject(e)}return i.promise}sendWithStream(a,r,e,i){const n=this.streamId++,s=this.sourceName,o=this.targetName,l=this.comObj;return new ReadableStream({start:e=>{var t=new c.PromiseCapability;return this.streamControllers[n]={controller:e,startCall:t,pullCall:null,cancelCall:null,isClosed:!1},l.postMessage({sourceName:s,targetName:o,action:a,streamId:n,data:r,desiredSize:e.desiredSize},i),t.promise},pull:e=>{var t=new c.PromiseCapability;return this.streamControllers[n].pullCall=t,l.postMessage({sourceName:s,targetName:o,stream:6,streamId:n,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,c.assert)(e instanceof Error,"cancel must have a valid reason");var t=new c.PromiseCapability;return this.streamControllers[n].cancelCall=t,this.streamControllers[n].isClosed=!0,l.postMessage({sourceName:s,targetName:o,stream:1,streamId:n,reason:h(e)}),t.promise}},e)}#R(t){const i=t.streamId,n=this.sourceName,s=t.sourceName,o=this.comObj,e=this,a=this.actionHandler[t.action],r={enqueue(e,t=1,a){var r;this.isCancelled||(r=this.desiredSize,this.desiredSize-=t,0<r&&this.desiredSize<=0&&(this.sinkCapability=new c.PromiseCapability,this.ready=this.sinkCapability.promise),o.postMessage({sourceName:n,targetName:s,stream:4,streamId:i,chunk:e},a))},close(){this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:s,stream:3,streamId:i}),delete e.streamSinks[i])},error(e){(0,c.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,o.postMessage({sourceName:n,targetName:s,stream:5,streamId:i,reason:h(e)}))},sinkCapability:new c.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:t.desiredSize,ready:null};r.sinkCapability.resolve(),r.ready=r.sinkCapability.promise,this.streamSinks[i]=r,new Promise(function(e){e(a(t.data,r))}).then(function(){o.postMessage({sourceName:n,targetName:s,stream:8,streamId:i,success:!0})},function(e){o.postMessage({sourceName:n,targetName:s,stream:8,streamId:i,reason:h(e)})})}#D(t){const a=t.streamId,r=this.sourceName,i=t.sourceName,n=this.comObj,e=this.streamControllers[a],s=this.streamSinks[a];switch(t.stream){case 8:t.success?e.startCall.resolve():e.startCall.reject(h(t.reason));break;case 7:t.success?e.pullCall.resolve():e.pullCall.reject(h(t.reason));break;case 6:s?(s.desiredSize<=0&&0<t.desiredSize&&s.sinkCapability.resolve(),s.desiredSize=t.desiredSize,new Promise(function(e){e(s.onPull?.())}).then(function(){n.postMessage({sourceName:r,targetName:i,stream:7,streamId:a,success:!0})},function(e){n.postMessage({sourceName:r,targetName:i,stream:7,streamId:a,reason:h(e)})})):n.postMessage({sourceName:r,targetName:i,stream:7,streamId:a,success:!0});break;case 4:(0,c.assert)(e,"enqueue should have stream controller"),e.isClosed||e.controller.enqueue(t.chunk);break;case 3:(0,c.assert)(e,"close should have stream controller"),e.isClosed||(e.isClosed=!0,e.controller.close(),this.#B(e,a));break;case 5:(0,c.assert)(e,"error should have stream controller"),e.controller.error(h(t.reason)),this.#B(e,a);break;case 2:t.success?e.cancelCall.resolve():e.cancelCall.reject(h(t.reason)),this.#B(e,a);break;case 1:s&&(new Promise(function(e){e(s.onCancel?.(h(t.reason)))}).then(function(){n.postMessage({sourceName:r,targetName:i,stream:2,streamId:a,success:!0})},function(e){n.postMessage({sourceName:r,targetName:i,stream:2,streamId:a,reason:h(e)})}),s.sinkCapability.reject(h(t.reason)),s.isCancelled=!0,delete this.streamSinks[a]);break;default:throw new Error("Unexpected stream case")}}async#B(e,t){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]),delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,a)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFWorkerStream=void 0;var r=a(2);t.PDFWorkerStream=class{constructor(e){this._msgHandler=e,this._contentLength=null,this._fullRequestReader=null,this._rangeRequestReaders=[]}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFWorkerStream.getFullReader can only be called once."),this._fullRequestReader=new i(this._msgHandler),this._fullRequestReader}getRangeReader(e,t){e=new n(e,t,this._msgHandler);return this._rangeRequestReaders.push(e),e}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class i{constructor(e){this._msgHandler=e,this.onProgress=null,this._contentLength=null,this._isRangeSupported=!1,this._isStreamingSupported=!1;e=this._msgHandler.sendWithStream("GetReader");this._reader=e.getReader(),this._headersReady=this._msgHandler.sendWithPromise("ReaderHeadersReady").then(e=>{this._isStreamingSupported=e.isStreamingSupported,this._isRangeSupported=e.isRangeSupported,this._contentLength=e.contentLength})}get headersReady(){return this._headersReady}get contentLength(){return this._contentLength}get isStreamingSupported(){return this._isStreamingSupported}get isRangeSupported(){return this._isRangeSupported}async read(){var{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}class n{constructor(e,t,a){this._msgHandler=a,this.onProgress=null;a=this._msgHandler.sendWithStream("GetRangeReader",{begin:e,end:t});this._reader=a.getReader()}get isStreamingSupported(){return!1}async read(){var{value:e,done:t}=await this._reader.read();return t?{value:void 0,done:!0}:{value:e.buffer,done:!1}}cancel(e){this._reader.cancel(e)}}}],r={};function i(e){var t=r[e];return void 0!==t||(t=r[e]={exports:{}},a[e](t,t.exports,i)),t.exports}var e,t,n={};return e=n,Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WorkerMessageHandler",{enumerable:!0,get:function(){return t.WorkerMessageHandler}}),t=i(1),n})())()},490:e=>{"use strict";e.exports=s},536:e=>{"use strict";e.exports=o},811:e=>{"use strict";e.exports=l},816:e=>{"use strict";e.exports=c},445:e=>{"use strict";e.exports=h},142:e=>{"use strict";e.exports=u},21:e=>{"use strict";e.exports=d},987:e=>{"use strict";e.exports=f},789:e=>{"use strict";e.exports=g},233:e=>{"use strict";e.exports=p},895:e=>{"use strict";e.exports=m},954:e=>{"use strict";e.exports=b}},r={},n={},(()=>{"use strict";var e=n,t=(Object.defineProperty(e,"__esModule",{value:!0}),e.scrollToPage=e.currentPage=e.PDFViewer=void 0,i(464)),a=(Object.defineProperty(e,"PDFViewer",{enumerable:!0,get:function(){return t.PDFViewer}}),i(490)),r=(Object.defineProperty(e,"currentPage",{enumerable:!0,get:function(){return a.currentPage}}),i(490));e.scrollToPage=r.scrollToPage})(),n))}}});