ngx-extended-pdf-viewer
Version:
Embedding PDF files in your Angular application. Highly configurable viewer including the toolbar, sidebar, and all the features you're used to.
27 lines • 1.46 MB
JavaScript
/**
* @licstart The following is the entire license notice for the
* JavaScript code in this page
*
* Copyright 2024 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* @licend The above is the entire license notice for the
* JavaScript code in this page
*/
/**
* pdfjsVersion = 7.0.1323
* pdfjsBuild = a80ab7c59
*/var e={2708(e,t,a){a.r(t);function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const n=async function JBig2(e={}){var t=e,quit_=(e,t)=>{throw t},a=import.meta.url;try{new URL(".",a).href}catch{}0;console.log.bind(console);var n,s,r=console.error.bind(console),i=!1;function updateMemoryViews(){if(!s?.buffer?.resizable){var e=function getMemoryBuffer(){return m.buffer}();s=new Int8Array(e);o=new Uint8Array(e)}}class ExitStatus{constructor(e){_defineProperty(this,"name","ExitStatus");this.message=`Program terminated with exit(${e})`;this.status=e}}var o,callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(t)},l=[],c=[],f=!0,h=0,u={},handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return n;quit_(0,e)},keepRuntimeAlive=()=>f||h>0,_proc_exit=e=>{n=e;if(!keepRuntimeAlive()){t.onExit?.(e);i=!0}quit_(0,new ExitStatus(e))},_exit=(e,t)=>{n=e;_proc_exit(e)},callUserCallback=e=>{if(!i)try{return e()}catch(e){handleException(e)}finally{(()=>{if(!keepRuntimeAlive())try{_exit(n)}catch(e){handleException(e)}})()}},alignMemory=(e,t)=>Math.ceil(e/t)*t,growMemory=e=>{var t=(e-m.buffer.byteLength+65535)/65536|0;try{m.grow(t);updateMemoryViews();return 1}catch(e){}};t.noExitRuntime&&(f=t.noExitRuntime);t.print&&t.print;t.printErr&&(r=t.printErr);t.arguments&&t.arguments;t.thisProgram&&t.thisProgram;var d,m,g=t.preInit;if(g){"function"==typeof g&&(t.preInit=g=[g]);for(;g.length>0;)g.shift()()}t.writeArrayToMemory=(e,t)=>{s.set(e,t)};var b,w={e:()=>function abort(e){t.onAbort?.(e);r(e=`Aborted(${e})`);i=!0;e+=". Build with -sASSERTIONS for more info.";throw new WebAssembly.RuntimeError(e)}(""),d:()=>{f=!1;h=0},a:(e,t)=>{if(u[e]){clearTimeout(u[e].id);delete u[e]}if(!t)return 0;var a=setTimeout(()=>{delete u[e];callUserCallback(()=>d(e,performance.now()))},t);u[e]={id:a,timeout_ms:t};return 0},g:function _createImageData(e){t.imageData=new Uint8Array(e)},b:e=>{var t=o.length,a=2147483648;if((e>>>=0)>a)return!1;for(var n=1;n<=4;n*=2){var s=t*(1+.2/n);s=Math.min(s,e+100663296);var r=Math.min(a,alignMemory(Math.max(e,s),65536));if(growMemory(r))return!0}return!1},c:_proc_exit,h:function _setImageData(e,a,n,s){if(n===a){t.imageData=new Uint8ClampedArray(o.subarray(e,e+n*s));return}const r=a*s,i=t.imageData=new Uint8ClampedArray(r);for(let t=e,s=0;s<r;t+=n,s+=a)i.set(o.subarray(t,t+a),s)},f:function _setLineData(e,a,n){t.imageData.set(o.subarray(e,e+a),n)}};b=await async function createWasm(){function receiveInstance(e){!function assignWasmExports(e){t._malloc=e.k;t._free=e.l;t._jbig2_decode=e.m;t._ccitt_decode=e.n;d=e.o;m=e.i;e.__indirect_function_table}(b=e.exports);updateMemoryViews();return b}var e=function getWasmImports(){return{a:w}}(),a=t.instantiateWasm;return new Promise(t=>{a(e,e=>t(receiveInstance(e)))})}();await async function run(){!function preRun(){var e=t.preRun;if(e){"function"==typeof e&&(e=[e]);c.push(...e)}callRuntimeCallbacks(c)}();var e=t.setStatus;if(e){e("Running...");await new Promise(e=>setTimeout(e,1));setTimeout(e,1,"")}if(!i){!function initRuntime(){0;b.j()}();t.onRuntimeInitialized?.();!function postRun(){var e=t.postRun;if(e){"function"==typeof e&&(e=[e]);l.push(...e)}callRuntimeCallbacks(l)}()}}();return t};a.d(t,["default",0,n])},3530(e,t,a){a.r(t);const n=async function OpenJPEG(e={}){var t=e,a=import.meta.url;try{new URL(".",a).href}catch{}0;var n,s=console.log.bind(console),r=console.error.bind(console);function updateMemoryViews(){if(!n?.buffer?.resizable){var e=function getMemoryBuffer(){return d.buffer}();n=new Int8Array(e);o=new Uint8Array(e);i=new Int32Array(e);l=new Uint32Array(e)}}var i,o,l,callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(t)},c=[],f=[],alignMemory=(e,t)=>Math.ceil(e/t)*t,growMemory=e=>{var t=(e-d.buffer.byteLength+65535)/65536|0;try{d.grow(t);updateMemoryViews();return 1}catch(e){}},h=[null,[],[]],u=globalThis.TextDecoder&&new TextDecoder,UTF8ArrayToString=(e,t=0,a,n)=>{var s=((e,t,a,n)=>{var s=t+a;if(n)return s;for(;e[t]&&!(t>=s);)++t;return t})(e,t,a,n);if(s-t>16&&e.buffer&&u)return u.decode(e.subarray(t,s));for(var r="";t<s;){var i=e[t++];if(128&i){var o=63&e[t++];if(192!=(224&i)){var l=63&e[t++];if((i=224==(240&i)?(15&i)<<12|o<<6|l:(7&i)<<18|o<<12|l<<6|63&e[t++])<65536)r+=String.fromCharCode(i);else{var c=i-65536;r+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else r+=String.fromCharCode((31&i)<<6|o)}else r+=String.fromCharCode(i)}return r},printChar=(e,t)=>{var a=h[e];if(t&&10!==t)a.push(t);else{(1===e?s:r)(UTF8ArrayToString(a));a.length=0}},UTF8ToString=(e,t,a)=>e?UTF8ArrayToString(o,e,t,a):"";t.noExitRuntime&&t.noExitRuntime;t.print&&(s=t.print);t.printErr&&(r=t.printErr);t.arguments&&t.arguments;t.thisProgram&&t.thisProgram;var d,m=t.preInit;if(m){"function"==typeof m&&(t.preInit=m=[m]);for(;m.length>0;)m.shift()()}t.writeArrayToMemory=(e,t)=>{n.set(e,t)};var g,b={g:function _copy_component(e,a,n,s){e>>=2;const r=t.imageData,o=i.subarray(e,e+s);for(let e=0,t=a;e<s;e++,t+=n)r[t]=o[e]},c:e=>{var t=o.length,a=2147483648;if((e>>>=0)>a)return!1;for(var n=1;n<=4;n*=2){var s=t*(1+.2/n);s=Math.min(s,e+100663296);var r=Math.min(a,alignMemory(Math.max(e,s),65536));if(growMemory(r))return!0}return!1},d:function _fd_seek(e,t,a,n){t=(s=t)<-9007199254740992||s>9007199254740992?NaN:Number(s);var s;return 70},b:(e,t,a,n)=>{for(var s=0,r=0;r<a;r++){var i=l[t>>2],c=l[t+4>>2];t+=8;for(var f=0;f<c;f++)printChar(e,o[i+f]);s+=c}l[n>>2]=s;return 0},h:function _init_pixels(e){t.imageData=new Uint8ClampedArray(e)},e:function _jsPrintWarning(e){const a=UTF8ToString(e);(t.warn||console.warn)(`OpenJPEG: ${a}`)},f:function _setImageData(e,a){t.imageData=new Uint8ClampedArray(o.slice(e,e+a).buffer)},a:function _storeErrorMessage(e){const a=UTF8ToString(e);t.errorMessages?t.errorMessages+="\n"+a:t.errorMessages=a}};g=await async function createWasm(){function receiveInstance(e){!function assignWasmExports(e){t._malloc=e.k;t._free=e.l;t._jp2_decode=e.m;d=e.i;e.__indirect_function_table}(g=e.exports);updateMemoryViews();return g}var e=function getWasmImports(){return{a:b}}(),a=t.instantiateWasm;return new Promise(t=>{a(e,e=>t(receiveInstance(e)))})}();await async function run(){!function preRun(){var e=t.preRun;if(e){"function"==typeof e&&(e=[e]);f.push(...e)}callRuntimeCallbacks(f)}();var e=t.setStatus;if(e){e("Running...");await new Promise(e=>setTimeout(e,1));setTimeout(e,1,"")}false;!function initRuntime(){0;g.j()}();t.onRuntimeInitialized?.();!function postRun(){var e=t.postRun;if(e){"function"==typeof e&&(e=[e]);c.push(...e)}callRuntimeCallbacks(c)}()}();return t};a.d(t,["default",0,n])},3738(e,t,a){a.d(t,{AnnotationFactory:()=>AnnotationFactory,PopupAnnotation:()=>PopupAnnotation,WidgetAnnotation:()=>WidgetAnnotation,getTransformMatrix:()=>getTransformMatrix});var n=a(1723),s=a(5399),r=a(5632),i=a(4106),o=a(5719),l=a(9285),c=a(4907),f=a(4950),h=a(5389);class DefaultAppearanceEvaluator extends l.EvaluatorPreprocessor{constructor(e){super(new i.StringStream(e))}parse(){const e={fn:0,args:[]},t={fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3)};try{for(;;){e.args.length=0;if(!this.read(e))break;if(0!==this.savedStatesDepth)continue;const{fn:a,args:s}=e;switch(0|a){case n.OPS.setFont:const[e,a]=s;e instanceof r.Name&&(t.fontName=e.name);"number"==typeof a&&a>0&&(t.fontSize=a);break;case n.OPS.setFillRGBColor:o.ColorSpaceUtils.rgb.getRgbItem(s,0,t.fontColor,0);break;case n.OPS.setFillGray:o.ColorSpaceUtils.gray.getRgbItem(s,0,t.fontColor,0);break;case n.OPS.setFillCMYKColor:o.ColorSpaceUtils.cmyk.getRgbItem(s,0,t.fontColor,0)}}}catch(e){(0,n.warn)(`parseDefaultAppearance - ignoring errors: "${e}".`)}return t}}function parseDefaultAppearance(e){return new DefaultAppearanceEvaluator(e).parse()}class AppearanceStreamEvaluator extends l.EvaluatorPreprocessor{constructor(e,t,a){let s;try{s=e.getBytes()}catch(e){(0,n.warn)(`parseAppearanceStream - ignoring errors: "${e}".`);s=new Uint8Array(0)}e.reset();super(new i.Stream(s,0,s.length,e.dict));this.xref=t;this.globalColorSpaceCache=a;this.resources=e.dict?.get("Resources")}async parse(){const e={fn:0,args:[]};let t={scaleFactor:1,fontSize:0,fontName:"",fontColor:new Uint8ClampedArray(3),fillColorSpace:o.ColorSpaceUtils.gray},a=!1;const s=[];try{for(;;){e.args.length=0;if(a||!this.read(e))break;const{fn:i,args:l}=e;switch(0|i){case n.OPS.save:s.push({scaleFactor:t.scaleFactor,fontSize:t.fontSize,fontName:t.fontName,fontColor:t.fontColor.slice(),fillColorSpace:t.fillColorSpace});break;case n.OPS.restore:t=s.pop()||t;break;case n.OPS.setTextMatrix:const e=n.Util.transform(this.stateManager.state.ctm,l);t.scaleFactor*=Math.hypot(e[0],e[1]);break;case n.OPS.setFont:const[i,c]=l;i instanceof r.Name&&(t.fontName=i.name);"number"==typeof c&&c>0&&(t.fontSize=c);break;case n.OPS.setFillColorSpace:t.fillColorSpace=await o.ColorSpaceUtils.parse({cs:l[0],xref:this.xref,resources:this.resources,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:this._localColorSpaceCache});break;case n.OPS.setFillColor:t.fillColorSpace.getRgbItem(l,0,t.fontColor,0);break;case n.OPS.setFillRGBColor:o.ColorSpaceUtils.rgb.getRgbItem(l,0,t.fontColor,0);break;case n.OPS.setFillGray:o.ColorSpaceUtils.gray.getRgbItem(l,0,t.fontColor,0);break;case n.OPS.setFillCMYKColor:o.ColorSpaceUtils.cmyk.getRgbItem(l,0,t.fontColor,0);break;case n.OPS.showText:case n.OPS.showSpacedText:case n.OPS.nextLineShowText:case n.OPS.nextLineSetSpacingShowText:t.fontSize*=t.scaleFactor;a=!0}}}catch(e){(0,n.warn)(`parseAppearanceStream - ignoring errors: "${e}".`)}delete t.scaleFactor;delete t.fillColorSpace;return t}get _localColorSpaceCache(){return(0,n.shadow)(this,"_localColorSpaceCache",new c.LocalColorSpaceCache)}get _pdfFunctionFactory(){return(0,n.shadow)(this,"_pdfFunctionFactory",new f.PDFFunctionFactory({xref:this.xref}))}}function getPdfColor(e,t){if(e[0]===e[1]&&e[1]===e[2]){const a=e[0]/255;return`${(0,s.numberToString)(a)} ${t?"g":"G"}`}return Array.from(e,e=>(0,s.numberToString)(e/255)).join(" ")+" "+(t?"rg":"RG")}class FakeUnicodeFont{constructor(e,t){var a,n;this.xref=e;this.widths=null;this.firstChar=1/0;this.lastChar=-1/0;this.fontFamily=t;const s=new OffscreenCanvas(1,1);this.ctxMeasure=s.getContext("2d",{willReadFrequently:!0});this.fontName=r.Name.get(`InvalidPDFjsFont_${t}_${u._=(a=u._,n=a++,a),n}`)}get fontDescriptorRef(){if(!FakeUnicodeFont._fontDescriptorRef){const e=new r.Dict(this.xref);e.setIfName("Type","FontDescriptor");e.set("FontName",this.fontName);e.set("FontFamily","MyriadPro Regular");e.set("FontBBox",[0,0,0,0]);e.setIfName("FontStretch","Normal");e.set("FontWeight",400);e.set("ItalicAngle",0);FakeUnicodeFont._fontDescriptorRef=this.xref.getNewPersistentRef(e)}return FakeUnicodeFont._fontDescriptorRef}get descendantFontRef(){const e=new r.Dict(this.xref);e.set("BaseFont",this.fontName);e.setIfName("Type","Font");e.setIfName("Subtype","CIDFontType0");e.setIfName("CIDToGIDMap","Identity");e.set("FirstChar",this.firstChar);e.set("LastChar",this.lastChar);e.set("FontDescriptor",this.fontDescriptorRef);e.set("DW",1e3);const t=[],a=[...this.widths].sort();let n=null,s=null;for(const[e,r]of a)if(n)if(e===n+s.length)s.push(r);else{t.push(n,s);n=e;s=[r]}else{n=e;s=[r]}n&&t.push(n,s);e.set("W",t);const i=new r.Dict(this.xref);i.set("Ordering","Identity");i.set("Registry","Adobe");i.set("Supplement",0);e.set("CIDSystemInfo",i);return this.xref.getNewPersistentRef(e)}get baseFontRef(){const e=new r.Dict(this.xref);e.set("BaseFont",this.fontName);e.setIfName("Type","Font");e.setIfName("Subtype","Type0");e.setIfName("Encoding","Identity-H");e.set("DescendantFonts",[this.descendantFontRef]);e.setIfName("ToUnicode","Identity-H");return this.xref.getNewPersistentRef(e)}get resources(){const e=new r.Dict(this.xref),t=new r.Dict(this.xref);t.set(this.fontName.name,this.baseFontRef);e.set("Font",t);return e}_createContext(){this.widths=new Map;this.ctxMeasure.font=`1000px ${this.fontFamily}`;return this.ctxMeasure}createFontResources(e){const t=this._createContext();for(const a of e.split(/\r\n?|\n/))for(const e of a.split("")){const a=e.charCodeAt(0);if(this.widths.has(a))continue;const n=t.measureText(e),s=Math.ceil(n.width);this.widths.set(a,s);this.firstChar=Math.min(a,this.firstChar);this.lastChar=Math.max(a,this.lastChar)}return this.resources}static getFirstPositionInfo(e,t,a){const[n,r,i,o]=e;let l=i-n,c=o-r;t%180!=0&&([l,c]=[c,l]);const f=1.35*a;return{coords:[0,c+.35*a-f],bbox:[0,0,l,c],matrix:0!==t?(0,s.getRotationMatrix)(t,c,f):void 0}}createAppearance(e,t,a,n,o,l){const c=this._createContext(),f=[];let u=-1/0;for(const t of e.split(/\r\n?|\n/)){f.push(t);const e=c.measureText(t).width;u=Math.max(u,e);for(const e of(0,s.codePointIter)(t)){const t=String.fromCodePoint(e);let a=this.widths.get(e);if(void 0===a){const n=c.measureText(t);a=Math.ceil(n.width);this.widths.set(e,a);this.firstChar=Math.min(e,this.firstChar);this.lastChar=Math.max(e,this.lastChar)}}}u*=n/1e3;const[d,m,g,b]=t;let w=g-d,j=b-m;a%180!=0&&([w,j]=[j,w]);const y=u>w?w/u:1;let v=1;const k=1.35*n,q=.35*n,S=k*f.length;S>j&&(v=j/S);const _=n*Math.min(y,v),C=["q",`0 0 ${(0,s.numberToString)(w)} ${(0,s.numberToString)(j)} re W n`,"BT",`1 0 0 1 0 ${(0,s.numberToString)(j+q)} Tm 0 Tc ${getPdfColor(o,!0)}`,`/${this.fontName.name} ${(0,s.numberToString)(_)} Tf`],{resources:F}=this;if(1!==(l="number"==typeof l&&l>=0&&l<=1?l:1)){C.push("/R0 gs");const e=new r.Dict(this.xref),t=new r.Dict(this.xref);t.set("ca",l);t.set("CA",l);t.setIfName("Type","ExtGState");e.set("R0",t);F.set("ExtGState",e)}const x=(0,s.numberToString)(k);for(const e of f)C.push(`0 -${x} Td <${(0,h.stringToUTF16HexString)(e)}> Tj`);C.push("ET","Q");const T=C.join("\n"),O=new r.Dict(this.xref);O.setIfName("Subtype","Form");O.setIfName("Type","XObject");O.set("BBox",[0,0,w,j]);O.set("Length",T.length);O.set("Resources",F);if(a){const e=(0,s.getRotationMatrix)(a,w,j);O.set("Matrix",e)}return new i.StringStream(T,O)}}var u={_:1};const d=["m/d","m/d/yy","mm/dd/yy","mm/yy","d-mmm","d-mmm-yy","dd-mmm-yy","yy-mm-dd","mmm-yy","mmmm-yy","mmm d, yyyy","mmmm d, yyyy","m/d/yy h:MM tt","m/d/yy HH:MM"],m=["HH:MM","h:MM tt","HH:MM:ss","h:MM:ss tt"];var g,b,w=a(1834),j=a(7092),y=a(6484),v=a(3571),k=a(3944),q=a(629),S=a(5919),_=a(5495),C=a(4566),F=a(3047),x=a(8857),T=a(5275),O=a(8294);function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,a){var n=function _superPropBase(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}(e,t);if(n){var s=Object.getOwnPropertyDescriptor(n,t);return s.get?s.get.call(arguments.length<3?e:a):s.value}},_get.apply(null,arguments)}function _getPrototypeOf(e){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf(e)}function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a)}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}class AnnotationFactory{static createGlobals(e){return Promise.all([e.ensureCatalog("acroForm"),e.ensureDoc("xfaDatasets"),e.ensureCatalog("structTreeRoot"),e.ensureCatalog("baseUrl"),e.ensureCatalog("attachments"),e.ensureCatalog("globalColorSpaceCache")]).then(([t,a,n,s,i,o])=>({pdfManager:e,catalog:e.pdfDocument.catalog,acroForm:t instanceof r.Dict?t:r.Dict.empty,xfaDatasets:a,structTreeRoot:n,baseUrl:s,attachments:i,globalColorSpaceCache:o}),e=>{(0,n.warn)(`createGlobals: "${e}".`);return null})}static async create(e,t,n,s,r,i,o,l){const c=r?await this._getPageIndex(e,t,n.pdfManager):null,f=await n.pdfManager.ensure(this,"_create",[e,t,n,s,r,i,o,c,l]);f instanceof FreeTextAnnotation&&f.hasTextContent&&await n.pdfManager.ensure(f,"setAppearanceData",[e,n.globalColorSpaceCache]);const h=f?.data;if(h&&Object.hasOwn(h,"richText")){const{richText:e}=h;if(e&&"string"==typeof e){const{getRichTextAsHtml:t}=await Promise.resolve().then(()=>a(3874));h.richText=t(e)}else h.richText=null}return f}static _create(e,t,a,i,o=!1,l=null,c=null,f=null,h=null){const u=e.fetchIfRef(t);if(!(u instanceof r.Dict))return;let d=u.get("Subtype");d=d instanceof r.Name?d.name:null;if(c&&!c.has(n.AnnotationType[d?.toUpperCase()]))return null;const{acroForm:m,pdfManager:g}=a,b=t instanceof r.Ref?t.toString():`annot_${i.createObjId()}`,w={xref:e,ref:t,dict:u,subtype:d,id:b,annotationGlobals:a,collectFields:o,orphanFields:l,needAppearances:!o&&!0===m.get("NeedAppearances"),pageIndex:f,evaluatorOptions:g.evaluatorOptions,pageRef:h,eventBus:g.eventBus};switch(d){case"Link":return new LinkAnnotation(w);case"Text":return new TextAnnotation(w);case"Widget":let e=(0,s.getInheritableProperty)({dict:u,key:"FT"});e=e instanceof r.Name?e.name:null;switch(e){case"Tx":return new TextWidgetAnnotation(w);case"Btn":return new ButtonWidgetAnnotation(w);case"Ch":return new ChoiceWidgetAnnotation(w);case"Sig":if(self.showUnverifiedSignatures){(0,n.info)("The PDF file contains a signature. Please take into account that it can't be verified yet. ngx-extended-pdf-viewer also displays forged signatures, so use this feature only if you're sure what you're doing.");return new SignatureWidgetAnnotation(w)}}(0,n.warn)(`Unimplemented widget field type "${e}", falling back to base field type.`);return new WidgetAnnotation(w);case"Popup":return new PopupAnnotation(w);case"FreeText":return new FreeTextAnnotation(w);case"Line":return new LineAnnotation(w);case"Square":return new SquareAnnotation(w);case"Circle":return new CircleAnnotation(w);case"PolyLine":return new PolylineAnnotation(w);case"Polygon":return new PolygonAnnotation(w);case"Caret":return new CaretAnnotation(w);case"Ink":return new InkAnnotation(w);case"Highlight":return new HighlightAnnotation(w);case"Underline":return new UnderlineAnnotation(w);case"Squiggly":return new SquigglyAnnotation(w);case"StrikeOut":return new StrikeOutAnnotation(w);case"Stamp":return new StampAnnotation(w);case"FileAttachment":return new FileAttachmentAnnotation(w);case"RichMedia":return new RichMediaAnnotation(w);case"Screen":return new ScreenAnnotation(w);case"Sound":return new SoundAnnotation(w);default:o||(d?(0,n.warn)(`Unimplemented annotation type "${d}", falling back to base annotation.`):(0,n.warn)("Annotation is missing the required /Subtype."));return new Annotation(w)}}static async _getPageIndex(e,t,a){try{const s=await e.fetchIfRefAsync(t);if(!(s instanceof r.Dict))return-1;const i=s.getRaw("P");if(i instanceof r.Ref)try{return await a.ensureCatalog("getPageIndex",[i])}catch(e){(0,n.info)(`_getPageIndex -- not a valid page reference: "${e}".`)}if(s.has("Kids"))return-1;const o=await a.ensureDoc("numPages");for(let e=0;e<o;e++){const n=await a.getPage(e),s=await a.ensure(n,"annotations");for(const a of s)if(a instanceof r.Ref&&(0,r.isRefsEqual)(a,t))return e}}catch(e){(0,n.warn)(`_getPageIndex: "${e}".`)}return-1}static generateImages(e,t,a){if(!a){(0,n.warn)("generateImages: OffscreenCanvas is not supported, cannot save or print some annotations with images.");return null}let s;for(const{bitmapId:a,bitmap:n}of e)if(n){s||=new Map;s.set(a,(0,v.createImage)(n,t))}return s}static getPrintData(e){throw new Error("Not implemented: getPrintData")}static async saveNewAnnotations(e,t,a,s,i,o){let l;const c=[],{isOffscreenCanvasSupported:f}=e.options;for(const h of s)if(!h.deleted)switch(h.annotationType){case n.AnnotationEditorType.FREETEXT:if(!h.appearanceRef&&!l){const e=new r.Dict(t);e.setIfName("BaseFont","Helvetica");e.setIfName("Type","Font");e.setIfName("Subtype","Type1");e.setIfName("Encoding","WinAnsiEncoding");l=t.getNewTemporaryRef();o.put(l,{data:e})}c.push(FreeTextAnnotation.createNewAnnotation(t,h,o,{evaluator:e,task:a,baseFontRef:l}));break;case n.AnnotationEditorType.HIGHLIGHT:h.quadPoints?c.push(HighlightAnnotation.createNewAnnotation(t,h,o)):c.push(InkAnnotation.createNewAnnotation(t,h,o));break;case n.AnnotationEditorType.INK:c.push(InkAnnotation.createNewAnnotation(t,h,o));break;case n.AnnotationEditorType.STAMP:const s=f?await(i?.get(h.bitmapId)):null;if(s?.imageStream){const{imageStream:e,smaskStream:a}=s;if(a){const n=t.getNewTemporaryRef();o.put(n,{data:a});e.dict.set("SMask",n)}const n=s.imageRef=t.getNewTemporaryRef();o.put(n,{data:e});s.imageStream=null;s.imageRenderStream=null;s.smaskStream=null;s.smaskRenderStream=null}c.push(StampAnnotation.createNewAnnotation(t,h,o,{image:s}));break;case n.AnnotationEditorType.SIGNATURE:c.push(StampAnnotation.createNewAnnotation(t,h,o,{}))}return{annotations:(await Promise.all(c)).flat()}}static async printNewAnnotations(e,t,a,s,r){if(!s)return null;const{options:i,xref:o}=t,l=[];for(const c of s)if(!c.deleted)switch(c.annotationType){case n.AnnotationEditorType.FREETEXT:l.push(FreeTextAnnotation.createNewPrintAnnotation(e,o,c,{evaluator:t,task:a,evaluatorOptions:i}));break;case n.AnnotationEditorType.HIGHLIGHT:c.quadPoints?l.push(HighlightAnnotation.createNewPrintAnnotation(e,o,c,{evaluatorOptions:i})):l.push(InkAnnotation.createNewPrintAnnotation(e,o,c,{evaluatorOptions:i}));break;case n.AnnotationEditorType.INK:l.push(InkAnnotation.createNewPrintAnnotation(e,o,c,{evaluatorOptions:i}));break;case n.AnnotationEditorType.STAMP:const s=i.isOffscreenCanvasSupported?await(r?.get(c.bitmapId)):null;if(s?.imageStream){const{imageStream:e,imageRenderStream:t,smaskStream:a,smaskRenderStream:n}=s,r=t||new _.JpegStream(e,e.length);(a||n)&&r.dict.set("SMask",n||a);s.imageRef=r;s.imageStream=null;s.imageRenderStream=null;s.smaskStream=null;s.smaskRenderStream=null}l.push(StampAnnotation.createNewPrintAnnotation(e,o,c,{image:s,evaluatorOptions:i}));break;case n.AnnotationEditorType.SIGNATURE:l.push(StampAnnotation.createNewPrintAnnotation(e,o,c,{evaluatorOptions:i}))}return Promise.all(l)}}function getRgbColor(e,t=new Uint8ClampedArray(3)){if(!Array.isArray(e))return t;const a=t||new Uint8ClampedArray(3);switch(e.length){case 0:return null;case 1:o.ColorSpaceUtils.gray.getRgbItem(e,0,a,0);return a;case 3:o.ColorSpaceUtils.rgb.getRgbItem(e,0,a,0);return a;case 4:o.ColorSpaceUtils.cmyk.getRgbItem(e,0,a,0);return a;default:return t}}function getPdfColorArray(e,t=null){return e&&Array.from(e,e=>e/255)||t}function getQuadPoints(e,t){const a=e.getArray("QuadPoints");if(!(0,s.isNumberArray)(a,null)||0===a.length||a.length%8>0)return null;const n=new Float32Array(a.length);for(let e=0,s=a.length;e<s;e+=8){const[s,r,i,o,l,c,f,h]=a.slice(e,e+8),u=Math.min(s,i,l,f),d=Math.max(s,i,l,f),m=Math.min(r,o,c,h),g=Math.max(r,o,c,h);if(null!==t&&(u<t[0]||d>t[2]||m<t[1]||g>t[3]))return null;n.set([u,g,d,g,u,m,d,m],e)}return n}function getTransformMatrix(e,t,a){const s=n.F32_BBOX_INIT.slice();n.Util.axialAlignedBoundingBox(t,a,s);const[r,i,o,l]=s;if(r===o||i===l)return[1,0,0,1,e[0],e[1]];const c=(e[2]-e[0])/(o-r),f=(e[3]-e[1])/(l-i);return[c,0,0,f,e[0]-r*c,e[1]-i*f]}function writeLineToCurveToAppearance(e,t,a=!1){t.push(`${(0,s.numberToString)(e[4])} ${(0,s.numberToString)(e[5])} m`);for(let a=6,n=e.length;a<n;a+=6)if(isNaN(e[a]))t.push(`${(0,s.numberToString)(e[a+4])} ${(0,s.numberToString)(e[a+5])} l`);else{const n=e.slice(a,a+6);t.push(`${n.map(s.numberToString).join(" ")} c`)}a&&6===e.length&&t.push(`${(0,s.numberToString)(e[4])} ${(0,s.numberToString)(e[5])} l`)}var M=new WeakSet;class Annotation{constructor(e){_classPrivateMethodInitSpec(this,M);_defineProperty(this,"appearance",null);_defineProperty(this,"_oc",void 0);const{annotationGlobals:t,dict:a,orphanFields:i,ref:o,subtype:l,xref:c}=e,f=i?.get(o);f&&a.set("Parent",f);this.setTitle(a.get("T"));this.setContents(a.get("Contents"));this.setModificationDate(a.get("M"));this.setFlags(a.get("F"));this.setRectangle(a.getArray("Rect"));this.setColor(a.getArray("C"));this.setBorderStyle(a);this.setAppearance(a);_assertClassBrand(M,this,_setOptionalContent).call(this,c,a);const h=a.get("MK");this.setBorderAndBackgroundColors(h);this.setRotation(h,a);this.ref=e.ref instanceof r.Ref?e.ref:null;this._streams=[];this.appearance&&this._streams.push(this.appearance);const u=!!(this.flags&n.AnnotationFlag.LOCKED),d=!!(this.flags&n.AnnotationFlag.LOCKEDCONTENTS);this.data={annotationType:n.AnnotationType[l?.toUpperCase()],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,oc:this._oc,rect:this.rectangle,subtype:l,hasOwnCanvas:!1,noRotate:!!(this.flags&n.AnnotationFlag.NOROTATE),noHTML:u&&d,isEditable:!1,structParent:-1};if(t.structTreeRoot){let n=a.get("StructParent");this.data.structParent=n=Number.isInteger(n)&&n>=0?n:-1;t.structTreeRoot.addAnnotationIdToPage(e.pageRef,n,this.ref)}if(e.collectFields){const t=a.get("Kids");if(Array.isArray(t)){const e=[];for(const a of t)a instanceof r.Ref&&e.push(a.toString());0!==e.length&&(this.data.kidIds=e)}this.data.actions=(0,s.collectActions)(c,a,n.AnnotationActionEventType);this.data.fieldName=this._constructFieldName(a);this.data.pageIndex=e.pageIndex}const m=a.get("IT");m instanceof r.Name&&(this.data.it=m.name);this._isOffscreenCanvasSupported=e.evaluatorOptions.isOffscreenCanvasSupported;this._fallbackFontDict=null;this._needAppearances=!1}_getOperatorListNoAppearance(){return{opList:new x.OperatorList,separateForm:!1,separateCanvas:!1}}_hasFlag(e,t){return!!(e&t)}_buildFlags(e,t){let{flags:a}=this;if(void 0===e){if(void 0===t)return;return t?a&~n.AnnotationFlag.PRINT:a&~n.AnnotationFlag.HIDDEN|n.AnnotationFlag.PRINT}if(e){a|=n.AnnotationFlag.PRINT;return t?a&~n.AnnotationFlag.NOVIEW|n.AnnotationFlag.HIDDEN:a&~n.AnnotationFlag.HIDDEN|n.AnnotationFlag.NOVIEW}a&=~(n.AnnotationFlag.HIDDEN|n.AnnotationFlag.NOVIEW);return t?a&~n.AnnotationFlag.PRINT:a|n.AnnotationFlag.PRINT}_isViewable(e){return!this._hasFlag(e,n.AnnotationFlag.INVISIBLE)&&!this._hasFlag(e,n.AnnotationFlag.NOVIEW)}_isPrintable(e){return this._hasFlag(e,n.AnnotationFlag.PRINT)&&!this._hasFlag(e,n.AnnotationFlag.HIDDEN)&&!this._hasFlag(e,n.AnnotationFlag.INVISIBLE)}mustBeViewed(e,t){const a=e?.get(this.data.id)?.noView;return void 0!==a?!a:this.viewable&&!this._hasFlag(this.flags,n.AnnotationFlag.HIDDEN)}mustBePrinted(e){const t=e?.get(this.data.id)?.noPrint;return void 0!==t?!t:this.printable}mustBeViewedWhenEditing(e,t=null){return e?!this.data.isEditable:!t?.has(this.data.id)}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){const t="string"==typeof e?(0,h.stringToPDFString)(e):"";return{str:t,dir:t&&"rtl"===(0,j.bidi)(t).dir?"rtl":"ltr"}}setDefaultAppearance(e){const{dict:t,annotationGlobals:a}=e,n=(0,s.getInheritableProperty)({dict:t,key:"DA"})||a.acroForm.get("DA");this._defaultAppearance="string"==typeof n?n:"";this.data.defaultAppearanceData=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)&&e>0?e:0;this.flags&n.AnnotationFlag.INVISIBLE&&"Annotation"!==this.constructor.name&&(this.flags^=n.AnnotationFlag.INVISIBLE)}hasFlag(e){return this._hasFlag(this.flags,e)}setRectangle(e){this.rectangle=(0,s.lookupNormalRect)(e,[0,0,0,0])}setColor(e){this.color=getRgbColor(e)}setLineEndings(e){this.lineEndings=["None","None"];if(Array.isArray(e)&&2===e.length)for(let t=0;t<2;t++){const a=e[t];if(a instanceof r.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[t]=a.name;continue}(0,n.warn)(`Ignoring invalid lineEnding: ${a}`)}}setRotation(e,t){this.rotation=0;let a=e instanceof r.Dict?e.get("R")||0:t.get("Rotate")||0;if(Number.isInteger(a)&&0!==a){a%=360;a<0&&(a+=360);a%90==0&&(this.rotation=a)}}setBorderAndBackgroundColors(e){if(e instanceof r.Dict){this.borderColor=getRgbColor(e.getArray("BC"),null);this.backgroundColor=getRgbColor(e.getArray("BG"),null)}else this.borderColor=this.backgroundColor=null}setBorderStyle(e){this.borderStyle=new AnnotationBorderStyle;if(e instanceof r.Dict)if(e.has("BS")){const t=e.get("BS");if(t instanceof r.Dict){const e=t.get("Type");if(!e||(0,r.isName)(e,"Border")){this.borderStyle.setWidth(t.get("W"),this.rectangle);this.borderStyle.setStyle(t.get("S"));this.borderStyle.setDashArray(t.getArray("D"))}}}else if(e.has("Border")){const t=e.getArray("Border");if(Array.isArray(t))if(t.length>=3){this.borderStyle.setHorizontalCornerRadius(t[0]);this.borderStyle.setVerticalCornerRadius(t[1]);this.borderStyle.setWidth(t[2],this.rectangle);4===t.length&&this.borderStyle.setDashArray(t[3],!0)}else 0===t.length&&this.borderStyle.setWidth(0)}else{this.borderStyle.setWidth(0);this._noBorderEntries=!0}}setAppearance(e){const t=e.get("AP");if(!(t instanceof r.Dict))return;const a=t.get("N");if(a instanceof w.BaseStream){this.appearance=a;return}if(!(a instanceof r.Dict))return;const n=e.get("AS");if(!(n instanceof r.Name))return;const s=a.get(n.name);s instanceof w.BaseStream&&(this.appearance=s)}async loadResources(e,t){const a=await t.dict.getAsync("Resources");a&&await F.ObjectLoader.load(a,e,a.xref);return a}get _ownCanvasRequiresForms(){return!1}async getOperatorList(e,t,a,o){const{hasOwnCanvas:l,id:c,rect:f}=this.data;let h=this.appearance;const u=!!(l&&a&n.RenderingIntentFlag.DISPLAY&&(!this._ownCanvasRequiresForms||a&n.RenderingIntentFlag.ANNOTATIONS_FORMS));if(u&&!this._hasCanvasSize){this.data.hasOwnCanvas=!1;return this._getOperatorListNoAppearance()}if(!h){if(!u)return this._getOperatorListNoAppearance();h=new i.StringStream("",new r.Dict)}const d=h.dict,m=await this.loadResources(s.RESOURCES_KEYS_OPERATOR_LIST,h),g=(0,s.lookupRect)(d.getArray("BBox"),[0,0,this.width,this.height]),b=(0,s.lookupMatrix)(d.getArray("Matrix"),s.IDENTITY_MATRIX),w=getTransformMatrix(f,g,b),j=new x.OperatorList,y=this._oc;void 0!==y&&j.addOp(n.OPS.beginMarkedContentProps,["OC",y]);j.addOp(n.OPS.beginAnnotation,[c,f,w,b,u]);await e.getOperatorList({stream:h,task:t,resources:m,operatorList:j,fallbackFontDict:this._fallbackFontDict});j.addOp(n.OPS.endAnnotation,[]);void 0!==y&&j.addOp(n.OPS.endMarkedContent,[]);this.reset();return{opList:j,separateForm:!1,separateCanvas:u}}async save(e,t,a,n){return null}get overlaysTextContent(){return!1}get hasTextContent(){return!1}async extractTextContent(e,t,a){if(!this.appearance)return;const n=await this.loadResources(s.RESOURCES_KEYS_TEXT_CONTENT,this.appearance),r=[],i=[];let o=1/0,l=1/0,c=null;const f={desiredSize:Math.Infinity,ready:!0,enqueue(e,t){for(const t of e.items)if(void 0!==t.str){o=Math.min(o,t.transform[4]);l=Math.min(l,t.transform[5]);i.push(t.str);if(t.hasEOL){r.push(i.join("").trimEnd());i.length=0}}}};await e.getTextContent({stream:this.appearance,task:t,resources:n,includeMarkedContent:!0,keepWhiteSpace:!0,sink:f,viewBox:a});this.reset();o!==1/0&&(c=[o,l]);i.length&&r.push(i.join("").trimEnd());if(r.length>1||r[0]){const e=this.appearance.dict,t=(0,s.lookupRect)(e.getArray("BBox"),null),a=(0,s.lookupMatrix)(e.getArray("Matrix"),null);this.data.textPosition=this._transformPoint(c,t,a);this.data.textContent=r}}_transformPoint(e,t,a){const{rect:s}=this.data;t||=[0,0,1,1];a||=[1,0,0,1,0,0];const r=getTransformMatrix(s,t,a);r[4]-=s[0];r[5]-=s[1];const i=e.slice();n.Util.applyTransform(i,r);n.Util.applyTransform(i,a);return i}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")){(0,n.warn)("Unknown field name, falling back to empty field name.");return""}if(!e.has("Parent"))return(0,h.stringToPDFString)(e.get("T"));const t=[];e.has("T")&&t.unshift((0,h.stringToPDFString)(e.get("T")));let a=e;const s=new r.RefSet;e.objId&&s.put(e.objId);for(;a.has("Parent");){a=a.get("Parent");if(!(a instanceof r.Dict)||a.objId&&s.has(a.objId))break;a.objId&&s.put(a.objId);a.has("T")&&t.unshift((0,h.stringToPDFString)(a.get("T")))}return t.join(".")}_getAttachmentId(e,t,a,n=!1){if(e instanceof r.Dict){t instanceof r.Ref||(t=k.FileSpec.pickPlatformItem(e.get("EF"),!0));return t instanceof r.Ref?a.catalog.getAttachmentIdForAnnotation(t,n):void 0}}get width(){return this.data.rect[2]-this.data.rect[0]}get height(){return this.data.rect[3]-this.data.rect[1]}get _hasCanvasSize(){const{width:e,height:t}=this;return e>0&&t>0&&Number.isFinite(e+t)}}function _setOptionalContent(e,t){if(t.has("OC"))try{this._oc=(0,T.parseMarkedContentProps)(e,t.get("OC"),null)}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.warn)(`#setOptionalContent: ${e}`)}}class AnnotationBorderStyle{constructor(){_defineProperty(this,"width",1);_defineProperty(this,"rawWidth",1);_defineProperty(this,"style",n.AnnotationBorderStyleType.SOLID);_defineProperty(this,"dashArray",[3]);_defineProperty(this,"horizontalCornerRadius",0);_defineProperty(this,"verticalCornerRadius",0)}setWidth(e,t=[0,0,0,0]){if(e instanceof r.Name)this.width=0;else if("number"==typeof e){if(e>0){this.rawWidth=e;const a=(t[2]-t[0])/2,s=(t[3]-t[1])/2;if(a>0&&s>0&&(e>a||e>s)){(0,n.warn)(`AnnotationBorderStyle.setWidth - ignoring width: ${e}`);e=1}}this.width=e}}setStyle(e){if(e instanceof r.Name)switch(e.name){case"S":this.style=n.AnnotationBorderStyleType.SOLID;break;case"D":this.style=n.AnnotationBorderStyleType.DASHED;break;case"B":this.style=n.AnnotationBorderStyleType.BEVELED;break;case"I":this.style=n.AnnotationBorderStyleType.INSET;break;case"U":this.style=n.AnnotationBorderStyleType.UNDERLINE}}setDashArray(e,t=!1){if(Array.isArray(e)){let a=!0,n=!0;for(const t of e){if(!(+t>=0)){a=!1;break}t>0&&(n=!1)}if(0===e.length||a&&!n){this.dashArray=e;t&&this.setStyle(r.Name.get("D"))}else this.width=0}else e&&(this.width=0)}setHorizontalCornerRadius(e){Number.isInteger(e)&&(this.horizontalCornerRadius=e)}setVerticalCornerRadius(e){Number.isInteger(e)&&(this.verticalCornerRadius=e)}}class MarkupAnnotation extends Annotation{constructor(e){super(e);const{dict:t}=e;if(t.has("IRT")){const e=t.getRaw("IRT");this.data.inReplyTo=e instanceof r.Ref?e.toString():null;const a=t.get("RT");this.data.replyType=a instanceof r.Name?a.name:n.AnnotationReplyType.REPLY}let a=null;if(this.data.replyType===n.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;if(e.has("CreationDate")){this.setCreationDate(e.get("CreationDate"));this.data.creationDate=this.creationDate}else this.data.creationDate=null;if(e.has("M")){this.setModificationDate(e.get("M"));this.data.modificationDate=this.modificationDate}else this.data.modificationDate=null;a=e.getRaw("Popup");if(e.has("C")){this.setColor(e.getArray("C"));this.data.color=this.color}else 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 r.Ref?a.toString():null;t.has("RC")&&(this.data.richText=t.get("RC"))}setCreationDate(e){this.creationDate="string"==typeof e?e:null}_setDefaultAppearance({xref:e,extra:t,strokeColor:a,fillColor:s,blendMode:o,strokeAlpha:l,fillAlpha:c,pointsCallback:f}){const h=this.data.rect=n.BBOX_INIT.slice(),u=["q"];t&&u.push(t);a&&u.push(`${a[0]} ${a[1]} ${a[2]} RG`);s&&u.push(`${s[0]} ${s[1]} ${s[2]} rg`);const d=this.data.quadPoints||Float32Array.from([this.rectangle[0],this.rectangle[3],this.rectangle[2],this.rectangle[3],this.rectangle[0],this.rectangle[1],this.rectangle[2],this.rectangle[1]]);for(let e=0,t=d.length;e<t;e+=8){const t=f(u,d.subarray(e,e+8));n.Util.rectBoundingBox(...t,h)}u.push("Q");const m=new r.Dict(e),g=new r.Dict(e);g.setIfName("Subtype","Form");const b=new i.StringStream(u.join(" "),g);m.set("Fm0",b);const w=new r.Dict(e);o&&w.setIfName("BM",o);w.setIfNumber("CA",l);w.setIfNumber("ca",c);const j=new r.Dict(e);j.set("GS0",w);const y=new r.Dict(e);y.set("ExtGState",j);y.set("XObject",m);const v=new r.Dict(e);v.set("Resources",y);v.set("BBox",h);this.appearance=new i.StringStream("/GS0 gs /Fm0 Do",v);this._streams.push(this.appearance,b)}static async createNewAnnotation(e,t,a,n){const s=t.ref||=e.getNewTemporaryRef(),r=await this.createNewAppearanceStream(t,e,n);let i=t.appearanceRef??null;r&&a.put(i=e.getNewTemporaryRef(),{data:r});const o=this.createNewDict(t,e,{apRef:i});Number.isInteger(t.parentTreeId)&&o.set("StructParent",t.parentTreeId);a.put(s,{data:o});const l={ref:s},{popup:c}=t;if(c){if(c.deleted){o.delete("Popup");o.delete("Contents");o.delete("RC");return l}const t=c.ref||=e.getNewTemporaryRef();c.parent=s;const n=PopupAnnotation.createNewDict(c,e);a.put(t,{data:n});o.setIfDefined("Contents",(0,h.stringToAsciiOrUTF16BE)(c.contents));o.set("Popup",t);return[l,{ref:t}]}return l}static async createNewPrintAnnotation(e,t,a,n){const s=await this.createNewAppearanceStream(a,t,n),r=this.createNewDict(a,t,s?{ap:s}:{}),i=new this.prototype.constructor({dict:r,xref:t,annotationGlobals:e,evaluatorOptions:n.evaluatorOptions});a.ref&&(i.ref=i.refToReplace=a.ref);return i}}var R=new WeakSet;class WidgetAnnotation extends Annotation{constructor(e){super(e);_classPrivateMethodInitSpec(this,R);const{dict:t,xref:a,annotationGlobals:i}=e,o=this.data;this._needAppearances=e.needAppearances;void 0===o.fieldName&&(o.fieldName=this._constructFieldName(t));void 0===o.actions&&(o.actions=(0,s.collectActions)(a,t,n.AnnotationActionEventType));let l=(0,s.getInheritableProperty)({dict:t,key:"V",getArray:!0});o.fieldValue=this._decodeFormValue(l);const c=(0,s.getInheritableProperty)({dict:t,key:"DV",getArray:!0});o.defaultFieldValue=this._decodeFormValue(c);if(void 0===l&&i.xfaDatasets){const e=this._title.str;if(e){this._hasValueFromXFA=!0;o.fieldValue=l=i.xfaDatasets.getValue(e)}}void 0===l&&null!==o.defaultFieldValue&&(o.fieldValue=o.defaultFieldValue);o.alternativeText=(0,h.stringToPDFString)((0,s.getInheritableProperty)({dict:t,key:"TU"})||"");this.setDefaultAppearance(e);o.hasAppearance||=this._needAppearances&&void 0!==o.fieldValue&&null!==o.fieldValue;const f=(0,s.getInheritableProperty)({dict:t,key:"FT"});o.fieldType=f instanceof r.Name?f.name:null;const u=(0,s.getInheritableProperty)({dict:t,key:"DR"}),d=i.acroForm.get("DR"),m=this.appearance?.dict.get("Resources");this._fieldResources={localResources:u,acroFormResources:d,appearanceResources:m,mergedResources:r.Dict.merge({xref:a,dictArray:[u,m,d],mergeSubDicts:!0})};o.fieldFlags=(0,s.getInheritableProperty)({dict:t,key:"Ff"});(!Number.isInteger(o.fieldFlags)||o.fieldFlags<0)&&(o.fieldFlags=0);o.password=this.hasFieldFlag(n.AnnotationFieldFlag.PASSWORD);o.readOnly=this.hasFieldFlag(n.AnnotationFieldFlag.READONLY);o.required=this.hasFieldFlag(n.AnnotationFieldFlag.REQUIRED);o.hidden=this._hasFlag(o.annotationFlags,n.AnnotationFlag.HIDDEN)||this._hasFlag(o.annotationFlags,n.AnnotationFlag.NOVIEW);if("Sig"===o.fieldType&&!self.showUnverifiedSignatures){this.setFlags(n.AnnotationFlag.HIDDEN);(0,n.info)("The PDF file contains a signature. Please take into account that it can't be verified yet. By default, ngx-extended-pdf-viewer hides signatures until you configure it otherwise.")}}_decodeFormValue(e){if(Array.isArray(e)){const t=e.map(e=>this._decodeFormValue(e)).filter(e=>null!==e);return t.length>0?t:null}return e instanceof r.Name?e.name:"string"==typeof e?(0,h.stringToPDFString)(e):null}hasFieldFlag(e){return!!(this.data.fieldFlags&e)}_isViewable(e){return!0}mustBeViewed(e,t){if(t)return this.viewable;const a=e?.get(this.data.id)?.noView;return void 0!==a?!a:super.mustBeViewed(e,t)&&!this._hasFlag(this.flags,n.AnnotationFlag.NOVIEW)}getRotationMatrix(e){let t=e?.get(this.data.id)?.rotation;void 0===t&&(t=this.rotation);return 0===t?s.IDENTITY_MATRIX:(0,s.getRotationMatrix)(t,this.width,this.height)}getBorderAndBackgroundAppearances(e,t=!1){let a=e?.get(this.data.id)?.rotation;void 0===a&&(a=this.rotation);if(!this.backgroundColor&&!this.borderColor)return"";const[n,r]=0===a||180===a?[this.width,this.height]:[this.height,this.width],i=this.borderColor?this.borderStyle.width||(this._noBorderEntries?1:0):0;let o;if(t){const e=(Math.min(n,r)-i)/2,t=e*(4/3)*Math.tan(Math.PI/8),a=n/2,l=r/2,p=(e,t)=>`${(0,s.numberToString)(e)} ${(0,s.numberToString)(t)}`;o=`${p(a+e,l)} m ${p(a+e,l+t)} ${p(a+t,l+e)} ${p(a,l+e)} c ${p(a-t,l+e)} ${p(a-e,l+t)} ${p(a-e,l)} c ${p(a-e,l-t)} ${p(a-t,l-e)} ${p(a,l-e)} c ${p(a+t,l-e)} ${p(a+e,l-t)} ${p(a+e,l)} c h`}else o=`0 0 ${n} ${r} re`;let l="";this.backgroundColor&&(l=`${getPdfColor(this.backgroundColor,!0)} ${o} f `);i>0&&(l+=`${i} w ${getPdfColor(this.borderColor,!1)} ${o} S `);return l}async getOperatorList(e,t,a,s){if(a&n.RenderingIntentFlag.ANNOTATIONS_FORMS&&!(this instanceof SignatureWidgetAnnotation)&&!this.data.noHTML&&!this.data.hasOwnCanvas){const e=this._getOperatorListNoAppearance();e.separateForm=!0;return e}if(!this._hasText)return super.getOperatorList(e,t,a,s);const r=!!(this.data.hasOwnCanvas&&a&n.RenderingIntentFlag.DISPLAY);if(r&&!this._hasCanvasSize){this.data.hasOwnCanvas=!1;return this._getOperatorListNoAppearance()}const o=await this._getAppearance(e,t,a,s);if(this.appearance&&null===o)return super.getOperatorList(e,t,a,s);const l=new x.OperatorList;if(!this._defaultAppearance||null===o)return{opList:l,separateForm:!1,separateCanvas:!1};const c=[0,0,this.width,this.height],f=getTransformMatrix(this.data.rect,c,[1,0,0,1,0,0]),h=this._oc;void 0!==h&&l.addOp(n.OPS.beginMarkedContentProps,["OC",h]);l.addOp(n.OPS.beginAnnotation,[this.data.id,this.data.rect,f,this.getRotationMatrix(s),r]);const u=new i.StringStream(o);await e.getOperatorList({stream:u,task:t,resources:this._fieldResources.mergedResources,operatorList:l});l.addOp(n.OPS.endAnnotation,[]);void 0!==h&&l.addOp(n.OPS.endMarkedContent,[]);return{opList:l,separateForm:!1,separateCanvas:r}}_setMKDict(e,t){const a=e.get("MK"),n=a instanceof r.Dict?a.clone():new r.Dict(null);t?n.set("R",t):n.delete("R");n.setIfArray("BC",getPdfColorArray(this.borderColor));n.setIfArray("BG",getPdfColorArray(this.backgroundColor));n.size>0?e.set("MK",n):e.delete("MK")}amendSavedDict(e,t){}setValue(e,t,a,n){const{dict:r,ref:i}=(0,s.getParentToUpdate)(e,this.ref,a);if(r){if(!n.has(i)){const e=r.clone();e.set("V",t);n.put(i,{data:e});return e}}else e.set("V",t);return null}async save(e,t,a,i){const o=a?.get(this.data.id),l=this._buildFlags(o?.noView,o?.noPrint);let c=o?.value,f=o?.rotation;if(c===this.data.fieldValue||void 0===c){if(!this._hasValueFromXFA&&void 0===f&&void 0===l)return;c||=this.data.fieldValue}if(void 0===f&&!this._hasValueFromXFA&&Array.isArray(c)&&Array.isArray(this.data.fieldValue)&&(0,n.isArrayEqual)(c,this.data.fieldValue)&&void 0===l)return;void 0===f&&(f=this.rotation);let u=null;if(!this._needAppearances){u=await this._getAppearance(e,t,n.RenderingIntentFlag.SAVE,a);if(null===u&&void 0===l)return}let d=!1;if(u?.needAppearances){d=!0;u=null}const{xref:m}=e,g=m.fetchIfRef(this.ref);if(!(g instanceof r.Dict))return;const b=new r.Dict(m);for(const[e,t]of g.getRawEntries())"AP"!==e&&b.set(e,t);if(void 0!==l){b.set("F",l);if(null===u&&!d){const e=g.getRaw("AP");e&&b.set("AP",e)}}const w={path:this.data.fieldName,value:c},j=this.setValue(b,Array.isArray(c)?c.map(h.stringToAsciiOrUTF16BE):(0,h.stringToAsciiOrUTF16BE)(c),m,i);this.amendSavedDict(a,j||b);this._setMKDict(b,f);i.put(this.ref,{data:b,xfa:w,needAppearances:d});if(null!==u){const e=m.getNewTemporaryRef(),t=new r.Dict(m);b.set("AP",t);t.set("N",e);i.put(e,{data:_assertClassBrand(R,this,_createAppearanceStream).call(this,u,m,a,f),xfa:null,needAppearances:!1})}b.set("M",`D:${(0,s.getModificationDate)()}`)}async getFlattenedAppearance(e,t,a,s){if(!this._hasText)return null;const r=await this._getAppearance(e,t,s|n.RenderingIntentFlag.SAVE,a);if(null===r)return null;if("string"!=typeof r)return!1;const i=a?.get(this.data.id)?.rotation??this.rotation;return _assertClassBrand(R,this,_createAppearanceStream).call(this,r,e.xref,a,i)}async _getAppearance(e,t,a,r){if(this.data.password)return null;const i=r?.get(this.data.id);let o,l;if(i){o=i.formattedValue||i.value;l=i.rotation}if(void 0===l&&void 0===o&&!this._needAppearances&&(!this._hasValueFromXFA||this.appearance))return null;const c=this.getBorderAndBackgroundAppearances(r);if(void 0===o){o=this.data.fieldValue;if(!o)return`/Tx BMC q ${c}Q EMC`}Array.isArray(o)&&1===o.length&&(o=o[0]);(0,n.assert)("string"==typeof o,"Expected `value` to be a string.");o=o.trimEnd();if(this.data.combo){const e=this.data.options.find(({exportValue:e})=>o===e);o=e?.displayValue||o}if(""===o)return`/Tx BMC q ${c}Q EMC`;void 0===l&&(l=this.rotation);let f,u=-1;if(this.data.multiLine){f=o.split(/\r\n?|\n/).map(e=>e.normalize("NFC"));u=f.length}else f=[o.replace(/\r\n?|\n/,"").normalize("NFC")];let{width:d,height:m}=this;90!==l&&270!==l||([d,m]=[m,d]);this._defaultAppearance||(this.data.defaultAppearanceData=parseDefaultAppearance(this._defaultAppearance="/Helvetica 0 Tf 0 g"));if(!this.data.defaultAppearanceData.fontSize&&(d<=4||m<=2))return`/Tx BMC q ${c}Q EMC`;let g,b,w,y=await WidgetAnnotation._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources);const v=[];let k=!1;for(const e of f){const t=y.encodeString(e);t.length>1&&(k=!0);v.push(t.join(""))}if(k&&a&n.RenderingIntentFlag.SAVE)return{needAppearances:!0};if(k&&this._isOffscreenCanvasSupported){const a=this.data.comb?"monospace":"sans-serif",n=new FakeUnicodeFont(e.xref,a),s=n.createFontResources(f.join("")),r=s.getRaw("Font");if(this._fieldResources.mergedResources.has("Font")){const e=this._fieldResources.mergedResources.get("Font");for(const[t,a]of r.getRawEntries())e.set(t,a)}else this._fieldResources.mergedResources.set("Font",r);const i=n.fontName.name;y=await WidgetAnnotation._getFontData(e,t,{fontName:i,fontSize:0},s);for(let e=0,t=v.length;e<t;e++)v[e]=(0,h.stringToUTF16String)(f[e]);const l=Object.assign(Object.create(null),this.data.defaultAppearanceData);this.data.defaultAppearanceData.fontSize=0;this.data.defaultAppearanceData.fontName=i;[g,b,w]=this._computeFontSize(m-2,d-4,o,y,u,d-2);this.data.defaultAppearanceData=l}else{this._isOffscreenCanvasSupported||(0,n.warn)("_getAppearance: OffscreenCanvas is not supported, annotation may not render correctly.");[g,b,w]=this._computeFontSize(m-2,d-4,o,y,u,d-2)}let q=y.descent;q=isNaN(q)?n.BASELINE_FACTOR*w:Math.max(n.BASELINE_FACTOR*w,Math.abs(q)*b);const S=Math.min(Math.floor((m-b)/2),1),_=this.data.textAlignment;let{ascent:C,descent:F}=y;if(isNaN(C)||isNaN(F)||!C&&!F){C=1;F=.35}else F=Math.abs(F);const x=(m-(C+F)*b)/2+F*b;if(this.data.multiLine)return this._getMultilineAppearance(g,v,y,b,d,m,_,2,S,q,w,r);if(this.data.comb)return this._getCombAppearance(g,y,v[0],b,d,x,_,"rtl"===(0,j.bidi)(f[0]).dir,r);const T=x;if(0===_||_>2)return`/Tx BMC q ${c}BT `+g+` 1 0 0 1 ${(0,s.numberToString)(2)} ${(0,s.numberToString)(T)} Tm (${(0,s.escapeString)(v[0])}) Tj ET Q EMC`;return`/Tx BMC q ${c}BT `+g+` 1 0 0 1 0 0 Tm ${this._renderText(v[0],y,b,d,_,{shift:0},2,T)} ET Q EMC`}static async _getFontData(e,t,a,n){const{font:s}=await e.loadFont(a.fontName||null,null,n,t);return s}_getTextWidth(e,t){return Math.sumPrecise(t.charsToGlyphs(e).map(e=>e.width))/1e3}_computeFontSize(e,t,a,n,r,i){let{fontSize:o}=this.data.defaultAppearanceData;const l=1.35*(o||12);let c=Math.round(e/l);if(!o){const roundWithTwoDigits=e=>Math.floor(100*e)/100;if(-1===r){const s=this._getTextWidth(a,n);o=roundWithTwoDigits(Math.min(e/1.35,t/s));c=1}else{const s=a.split(/\r\n?|\n/),l=[];for(const e of s){const t=n.encodeString(e).join(""),a=n.charsToGlyphs(t),s=n.getCharPositions(t);l.push({line:t,glyphs:a,positions:s})}const isTooBig=a=>{let s=0;for(const r of l){s+=this._splitLine(null,n,a,t,i,r).length*a;if(s>e)return!0}return!1};c=Math.max(c,r);const getFontSize=t=>roundWithTwoDigits(e/t/1.35);if(e>0&&isTooBig(getFontSize(c))){let e=c,t=2*c;for(;isTooBig(getFontSize(t));){e=t;t*=2}for(;t-e>1;){const a=Math.floor((e+t)/2);isTooBig(getFontSize(a))?e=a:t=a}c=t}o=getFontSize(c)}const{fontName:l,fontColor:f}=this.data.defaultAppearanceData;this._defaultAppearance=function createDefaultAppearance({fontSize:e,fontName:t,fontColor:a}){return`/${(0,s.escapePDFName)(t)} ${e} Tf ${getPdfColor(a,!0)}`}({fontSize:o,fontName:l,fontColor:f})}return[this._defaultAppearance,o,e/c]}_renderText(e,t,a,n,r,i,o,l){let c;if(1===r){c=(n-this._getTextWidth(e,t)*a)/2}else if(2===r){c=n-this._getTextWidth(e,t)*a-o}else c=o;const f=(0,s.numberToString)(c-i.shift);i.shift=c;return`${f} ${l=(0,s.numberToString)(l)} Td (${(0,s.escapeString)(e)}) Tj`}_getSaveFieldResources(e){const{localResources:t,appearanceResources:a,acroFormResources:n}=this._fieldResources,s=this.data.defaultAppearanceData?.fontName;if(!s)return t||r.Dict.empty;for(const e of[t,a])if(e instanceof r.Dict){const t=e.get("Font");if(t instanceof r.Dict&&t.has(s))return e}if(n instanceof r.Dict){const a=n.get("Font");if(a instanceof r.Dict&&a.has(s)){const n=new r.Dict(e);n.set(s,a.getRaw(s));const i=new r.Dict(e);i.set("Font",n);return r.Dict.merge({xref:e,dictArray:[i,t],mergeSubDicts:!0})}}return t||r.Dict.empty}getFieldObject(){return null}}function _createAppearanceStream(e,t,a,n){const o=this._getSaveFieldResources(t),l=new r.Dict(t);l.setIfName("Subtype","Form");l.set("Resources",o);const c=n%180==0?[0,0,this.width,this.height]:[0,0,this.height,this.width];l.set("BBox",c);const f=new i.StringStream(e,l),h=this.getRotationMatrix(a);h!==s.IDENTITY_MATRIX&&l.set("Matrix",h);return f}class TextWidgetAnnotation extends WidgetAnnotation{constructor(e){super(e);const{annotationGlobals:t,dict:a}=e;if(a.has("PMD")){this.flags|=n.AnnotationFlag.HIDDEN;this.data.hidden=!0;(0,n.warn)("Barcodes are not supported")}this.data.hasOwnCanvas=this.data.readOnly&&!this.data.noHTML;this._hasText=!0;"string"!=typeof this.data.fieldValue&&(this.data.fieldValue="");const getAlignment=e=>Number.isInteger(e)&&e>=0&&e<=2?e:null;this.data.textAlignment=getAlignment((0,s.getInheritableProperty)({dict:a,key:"Q"}))??getAlignment(t.acroForm.get("Q"))??null;let r=(0,s.getInheritableProperty)({dict:a,key:"MaxLen"});(!Number.isInteger(r)||r<0)&&(r=0);this.data.maxLen=r;this.data.multiLine=this.hasFieldFlag(n.AnnotationFieldFlag.MULTILINE);this.data.comb=this.hasFieldFlag(n.AnnotationFieldFlag.COMB)&&!this.data.multiLine&&!this.data.password&&!this.hasFieldFlag(n.AnnotationFieldFlag.FILESELECT)&&0!==this.data.maxLen;this.data.doNotScroll=this.hasFieldFlag(n.AnnotationFieldFlag.DONOTSCROLL);const{actions:i}=this.data;if(!i)return;const o=/^AF(Date|Time)_(?:Keystroke|Format)(?:Ex)?\(['"]?([^'"]+)['"]?\);$/;let l=!1;const c=i.get("Format"),f=i.get("Keystroke");(1===c?.length&&1===f?.length&&o.test(c[0])&&o.test(f[0])||0===c?.length&&1===f?.length&&o.test(f[0])||0===f?.length&&1===c?.length&&o.test(c[0]))&&(l=!0);const h=[];c&&h.push(...c);f&&h.push(...f);if(l){i.delete("Keystroke");i.set("Format",h)}for(const e of h){const t=e.match(o);if(!t)continue;const a="Date"===t[1];let n=t[2];const s=parseInt(n,10);isNaN(s)||Math.floor(Math.log10(s))+1!==t[2].length||(n=(a?d:m)[s]??n);this.data.datetimeFormat=n;if(!l)break;if(a){if(/HH|MM|ss|h/.test(n)){this.data.datetimeType="datetime-local";this.data.timeStep=/ss/.test(n)?1:60}else this.data.datetimeType="date";break}this.data.datetimeType="time";this.data.timeStep=/ss/.test(n)?1:60;break}}get hasTextContent(){return!!this.appearance&&!this._needAppearances}_getCombAppearance(e,t,a,n,r,i,o,l,c){const f=r/this.data.maxLen,h=this.getBorderAndBackgroundAppearances(c),u=t.getCharPositions(a).map(([e,s])=>{const r=a.substring(e,s);return{glyph:r,width:this._getTextWidth(r,t)*n}});l&&u.reverse();const d=f*u.length;let m=0;1===o?m+=Math.floor((r-d)/(2*f))*f:2===o&&(m+=r-d);const g=[];let b=0;for(let e=0,t=u.length;e<t;e++){const{glyph:t,width:a}=u[e],n=0===e?(f-a)/2:f+(b-a)/2;g.push(`${(0,s.numberToString)(n)} 0 Td (${(0,s.escapeString)(t)}) Tj`);b=a}const w=g.join(" ");return`/Tx BMC q ${h}BT `+e+` 1 0 0 1 ${(0,s.numberToString)(m)} ${(0,s.numberToString)(i)} Tm ${w} ET Q EMC`}_getMultilineAppearance(e,t,a,n,r,i,o,l,c,f,h,u){const d=[],m=r-2*l,g={shift:0};for(let e=0,s=t.length;e<s;e++){const s=t[e],i=this._splitLine(s,a,n,m,r-l),u=1===i.length&&this._getTextWidth(s,a)*n>m?l/2:l;for(let t=0,s=i.length;t<s;t++){const s=i[t],l=0===e&&0===t?-c-(h-f):-h;d.push(this._renderText(s,a,n,r,o,g,u,l))}}const b=this.getBorderAndBackgroundAppearances(u),w=d.join("\n");return`/Tx BMC q ${b}BT `+e+` 1 0 0 1 0 ${(0,s.numberToString)(i)} Tm ${w} ET Q EMC`}_splitLine(e,t,a,n,s,r={}){e=r.line||e;const i=r.glyphs||t.charsToGlyphs(e);if(i.length<=1)return[e];const o=a/1e3;if(Math.sumPrecise(i.map(e=>e.width))*o<=s)return[e];const l=r.positions||t.getCharPositions(e),c=[];let f=-1,h=-1,u=-1,d=0,m=0;for(let t=0,a=i.length;t<a;t++){const[a,s]=l[t],r=i[t],g=r.width*o;if(" "===r.unicode)if(m+g>n){c.push(e.substring(d,a));d=a;m=g;f=-1;u=-1}else{m+=g;f=a;h=s;u=t}else if(m+g>n)if(-1!==f){c.push(e.substring(d,h));d=h;t=u+1;f=-1;m=0}else{c.push(e.substring(d,a));d=a;m=g}else m+=g}d<e.length&&c.push(e.substring(d));return c}async extractTextContent(e,t,a){await super.extractTextContent(e,t,a);const n=this.data.textContent;if(!n)return;const s=n.join("\n");if(s===this.data.fieldValue)return;const r=s.replaceAll(/([.*+?^${}()|[\]\\])|(\s+)/g,(e,t)=>t?`\\${t}`:"\\s+");new RegExp(`^\\s*${r}\\s*$`).test(this.data.fieldValue)&&(this.data.textContent=this.data.fieldValue.split("\n"))}getFieldObject(){return{id:this.data.id,value:this.data.fieldValue,defaultValue:this.data.defaultFieldValue||"",multiline:this.data.multiLine,password:this.data.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,datetimeFormat:this.data.datetimeFormat,hasDatetimeHTML:!!this.data.datetimeType,type:"text"}}}var D=new WeakMap,H=new WeakSet;class ButtonWidgetAnnotation extends WidgetAnnotation{constructor(e){super(e);_classPrivateMethodInitSpec(this,H);_classPrivateFieldInitSpec(this,D,new Set);this.checkedAppearance=null;this.uncheckedAppearance=null;const t=this.hasFieldFlag(n.AnnotationFieldFlag.RADIO),a=this.hasFieldFlag(n.AnnotationFieldFlag.PUSHBUTTON);this.data.checkBox=!t&&!a;this.data.radioButton=t&&!a;this.data.pushButton=a;this.data.isTooltipOnly=!1;this.data.hasOwnCanvas=a;this.data.noHTML=!1;this.data.checkBox?this._processCheckBox(e):this.data.radioButton?this._processRadioButton(e):this.data.pushButton?this._processPushButton(e):(0,n.warn)("Invalid field flags for button widget annotation")}get _ownCanvasRequiresForms(){return this.data.checkBox||this.data.radioButton}async getOperatorList(e,t,a,s){if(this.data.pushButton)return super.getOperatorList(e,t,a,s);if(a&n.RenderingIntentFlag.DISPLAY&&a&n.RenderingIntentFlag.ANNOTATIONS_FORMS&&(this.data.checkBox||this.data.radioButton)){const setCanvasName=(e,t)=>{const a=e.fnArray.indexOf(n.OPS.beginAnnotation);-1!==a&&e.argsArray[a].push(t)},r=await _assertClassBrand(H,this,_getOperatorListForAppearance).call(this,e,t,a,s,null,this.checkedAppearance);setCanvasName(r.opList,"checked");const i=await _assertClassBrand(H,this,_getOperatorListForAppearance).call(this,e,t,a,s,null,this.uncheckedAppearance);setCanvasName(i.opList,"unchecked");r.opList.addOpList(i.opList);r.separateForm||=i.separateForm;r.separateCanvas||=i.separateCanvas;return r}const r=_assertClassBrand(H,this,_getAppearanceValue).call(this,s);return null===r?super.getOperatorList(e,t,a,s):_assertClassBrand(H,this,_getOperatorListForAppearance).call(this,e,t,a,s,s?.get(this.data.id)?.rotation,r?this.checkedAppearance:this.uncheckedAppearance)}async getFlattenedAppearance(e,t,a){if(this.data.pushButton)return null;const n=_assertClassBrand(H,this,_getAppearanceValue).call(this,a);if(null===n)return null;const s=n?this.checkedAppearance:this.uncheckedAppearance,{xref:o}=e;if(!s){const e=new r.Dict(o);e.setIfName("Subtype","Form");e.set("BBox",[0,0,this.width,this.height]);return new i.StringStream("",e)}if(!_classPrivateFieldGet(D,this).has(s))return s;const l=s.dict.clone(),c=new r.Dict(o);c.setIfName("Type","Font");c.setIfName("Subtype","Type1");c.setIfName("BaseFont","ZapfDingbats");const f=new r.Dict(o);f.set("PdfJsZaDb",c);const h=new r.Dict(o);h.set("Font",f);l.set("Resources",h);s.reset();const u=s.getString();s.reset();return new i.StringStream(u,l)}async save(e,t,a,n){this.data.checkBox?this._saveCheckbox(e,t,a,n):this.data.radioButton&&this._saveRadioButton(e,t,a,n)}async _saveCheckbox(e,t,a,n){if(!a)return;const i=a.get(this.data.id),o=this._buildFlags(i?.noView,i?.noPrint);let l=i?.rotation,c=i?.value;if(void 0===l&&void 0===o){if(void 0===c)return;if(this.data.fieldValue===this.data.exportValue===c)return}let f=e.xref.fetchIfRef(this.ref);if(!(f instanceof r.Dict))return;f=f.clone();void 0===l&&(l=this.rotation);void 0===c&&(c=this.data.fieldValue===this.data.exportValue);const h={path:this.data.fieldName,value:c?this.data.exportValue:""},u=r.Name.get(c?this._onStateName:"Off");this.setValue(f,u,e.xref,n);f.set("AS",u);f.set("M",`D:${(0,s.getModificationDate)()}`);void 0!==o&&f.set("F",o);this._setMKDict(f,l);n.put(this.ref,{data:f,xfa:h,needAppearances:!1})}async _saveRadioButton(e,t,a,n){if(!a)return;const i=a.get(this.data.id),o=this._buildFlags(i?.noView,i?.noPrint);let l=i?.rotation,c=i?.value;if(void 0===l&&void 0===o){if(void 0===c)return;if(this.data.fieldValue===this.data.buttonValue===c)return}let f=e.xref.fetchIfRef(this.ref);if(!(f instanceof r.Dict))return;f=f.clone();void 0===c&&(c=this.data.fieldValue===this.data.buttonValue);void 0===l&&(l=this.rotation);const h={path:this.data.fieldName,value:c?this.data.buttonValue:""},u=r.Name.get(c?this._onStateName:"Off");c&&this.setValue(f,u,e.xref,n);f.set("AS",u);f.set("M",`D:${(0,s.getModificationDate)()}`);void 0!==o&&f.set("F",o);this._setMKDict(f,l);n.put(this.ref,{data:f,xfa:h,needAppearances:!1})}_getOnStateName(e){const t=e.get("AP");if(!(t instanceof r.Dict))return null;const a=t.get("N");if(!(a instanceof r.Dict))return null;for(const e of a.getKeys())if("Off"!==e)return e;return null}_getExportValueForOptIndex(e,t,a){if(Number.isInteger(e)&&e>=0&&e<t.length){const n=this._decodeFormValue(a.fetchIfRef(t[e]));if("string"==typeof n)return n}return null}_getOptInfo(e,t,a,n){if(!Array.isArray(a))return null;const s=new Map;let i=null;const o=e.get("Parent"),l=o instanceof r.Dict?o.get("Kids"):null;if(Array.isArray(l))for(let t=0,o=Math.min(l.length,a.length);t<o;t++){const a=l[t];a instanceof r.Ref&&(0,r.isRefsEqual)(a,this.ref)&&(i=t);const o=n.fetchIfRef(a);if(!(o instanceof r.Dict))continue;o===e&&(i=t);const c=this._getOnStateName(o);"string"!=typeof c||s.has(c)||s.set(c,t)}else if(1===a.length&&"string"==typeof t){i=0;s.set(t,0)}return{currentIndex:i,opt:a,stateToIndex:s}}_getExportValue(e,t,a){if(!t||"string"!=typeof e||"Off"===e)return e;if(e===this._onStateName){const e=this._getExportValueForOptIndex(t.currentIndex,t.opt,a);if(null!==e)return e}if(t.stateToIndex.has(e)){const n=this._getExportValueForOptIndex(t.stateToIndex.get(e),t.opt,a);if(null!==n)return n}const n=parseInt(e,10);return Number.isInteger(n)&&String(n)===e&&this._getExportValueForOptIndex(n,t.opt,a)||e}_processCheckBox(e){const t=e.dict.get("AP");let a=t instanceof r.Dict?t.get("N"):null;a instanceof r.Dict||(a=null);const n=this._decodeFormValue(e.dict.get("AS"));"string"==typeof n&&(this.data.fieldValue=n);const i=null!==this.data.fieldValue&&"Off"!==this.data.fieldValue?this.data.fieldValue:"Yes",o=a?[...a.getKeys()]:[];if(0===o.length)o.push("Off",i);else if(1===o.length)"Off"===o[0]?o.push(i):o.unshift("Off");else if(o.includes(i)){o.length=0;o.push("Off",i)}else{const e=o.find(e=>"Off"!==e);o.length=0;o.push("Off",e)}const l=o[1];this._onStateName=l;const c=(0,s.getInheritableProperty)({dict:e.dict,key:"Opt"}),f=this._getOptInfo(e.dict,l,c,e.xref);this.data.exportValue=this._getExportValue(l,f,e.xref);o.includes(this.data.fieldValue)||this.data.fieldValue===this.data.exportValue||(this.data.fieldValue="Off");this.data.fieldValue=this._getExportValue(this.data.fieldValue,f,e.xref);this.data.defaultFieldValue=this._getExportValue(this.data.defaultFieldValue,f,e.xref);_assertClassBrand(H,this,_setAppearances).call(this,e,a?.get(l),a?.get("Off"),"3");this._fallbackFontDict=this.fallbackFontDict;null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}_processRadioButton(e){this.data.buttonValue=null;const t=e.dict.get("Parent");if(t instanceof r.Dict){this.parent=e.dict.getRaw("Parent");const a=t.get("V");a instanceof r.Name&&(this.data.fieldValue=this._decodeFormValue(a))}const a=e.dict.get("AP");if(!(a instanceof r.Dict))return;const n=a.get("N");if(!(n instanceof r.Dict))return;let i=null;for(const e of n.getKeys())if("Off"!==e){i=e;break}this._onStateName=i;const o=(0,s.getInheritableProperty)({dict:e.dict,key:"Opt"}),l=this._getOptInfo(e.dict,i,o,e.xref);this.data.buttonValue=this._getExportValue(i,l,e.xref);this.data.fieldValue=this._getExportValue(this.data.fieldValue,l,e.xref);this.data.defaultFieldValue=this._getExportValue(this.data.defaultFieldValue,l,e.xref);_assertClassBrand(H,this,_setAppearances).call(this,e,n.get(i),n.get("Off"),"l");this._fallbackFontDict=this.fallbackFontDict;null===this.data.defaultFieldValue&&(this.data.defaultFieldValue="Off")}_processPushButton(e){const{dict:t,annotationGlobals:a}=e;if(t.has("A")||t.has("AA")||this.data.alternativeText){this.data.isTooltipOnly=!t.has("A")&&!t.has("AA");y.Catalog.parseDestDictionary({destDict:t,resultObj:this.data,docBaseUrl:a.baseUrl,docAttachments:a.attachments})}else(0,n.warn)("Push buttons without action dictionaries are not supported")}getFieldObject(){let e,t="button";if(this.data.checkBox){t="checkbox";e=this.data.exportValue}else if(this.data.radioButton){t="radiobutton";e=this.data.buttonValue}return{id:this.data.id,value:this.data.fieldValue||"Off",defaultValue:this.data.defaultFieldValue,exportValues:e,editable:!this.data.readOnly,name:this.data.fieldName,rect:this.data.rect,hidden:this.data.hidden,actions:this.data.actions,page:this.data.pageIndex,strokeColor:this.data.borderColor,fillColor:this.data.backgroundColor,rotation:this.rotation,type:t}}get fallbackFontDict(){const e=new r.Dict;e.setIfName("BaseFont","ZapfDingbats");e.setIfName("Type","FallbackType");e.setIfName("Subtype","FallbackType");e.setIfName("Encoding","ZapfDingbatsEncoding");return(0,n.shadow)(this,"fallbackFontDict",e)}}g=ButtonWidgetAnnotation;function _getAppearanceValue(e){const t=e?.get(this.data.id),a=t?t.value:null;return null===a&&this.appearance?null:a??(this.data.checkBox?this.data.fieldValue===this.data.exportValue:this.data.fieldValue===this.data.buttonValue)}function _getOperatorListForAppearance(e,t,a,n,r,i){if(!i)return this._getOperatorListNoAppearance();const o=this.appearance,l=(0,s.lookupMatrix)(i.dict.getArray("Matrix"),s.IDENTITY_MATRIX);r&&i.dict.set("Matrix",this.getRotationMatrix(n));this.appearance=i;const c=function _superPropGet(e,t,a,n){var s=_get(_getPrototypeOf(1&n?e.prototype:e),t,a);return 2&n&&"function"==typeof s?function(e){return s.apply(a,e)}:s}(g.prototype,"getOperatorList",this,2)([e,t,a,n]);this.appearance=o;i.dict.set("Matrix",l);return c}function _getZapfDingbatsWidth(e){const t=O.ZapfDingbatsEncoding[e.charCodeAt(0)];return(0,q.getMetrics)().ZapfDingbats()[t]}function _getCaptionMark(e){const t=e.get("MK"),a=t instanceof r.Dict?t.get("CA"):null;if("string"!=typeof a)return null;const n=(0,h.stringToPDFString)(a)[0];return n&&_assertClassBrand(H,this,_getZapfDingbatsWidth).call(this,n)?n:null}function _setAppearances(e,t,a,n){if(this._needAppearances){this.appearance=null;t=a=null}const s=t instanceof w.BaseStream,r=_assertClassBrand(H,this,_getCaptionMark).call(this,e.dict)??n;this.checkedAppearance=s?t:_assertClassBrand(H,this,_createAppearance).call(this,e.xref,r,!0);this.uncheckedAppearance=a instanceof w.BaseStream?a:null;s||(this.uncheckedAppearance??=_assertClassBrand(H,this,_createAppearance).call(this,e.xref,r,!1));for(const e of[this.checkedAppearance,this.uncheckedAppearance])e&&this._streams.push(e)}function _createAppearance(e,t,a){const{rotation:n}=this,[o,l]=n%180==0?[this.width,this.height]:[this.height,this.width],c=this.data.radioButton&&"l"===t;let f=this.getBorderAndBackgroundAppearances(null,c);if(a){const{fontColor:e,fontSize:a}=this.data.defaultAppearanceData,n=.8,r=a||Math.min(o,l)*n,i=_assertClassBrand(H,this,_getZapfDingbatsWidth).call(this,t)/1e3*r,c=(0,s.numberToString)((o-i)/2),h=(0,s.numberToString)((l-.705*r)/2);f+=`BT /PdfJsZaDb ${r} Tf ${getPdfColor(e,!0)} ${c} ${h} Td (${(0,s.escapeString)(t)}) Tj ET`}else if(!f)return null;f=`q ${f} Q`;const h=new r.Dict(e);h.set("FormType",1);h.setIfName("Subtype","Form");h.setIfName("Type","XObject");h.set("BBox",[0,0,o,l]);h.set("Matrix",this.getRotationMatrix());h.set("Length",f.length);const u=new r.Dict(e),d=new r.Dict(e);d.set("PdfJsZaDb",this.fallbackFontDict);u.set("Font",d);h.set("Resources",u);const m=new i.StringStream(f,h);_classPrivateFieldGet(D,this).add(m);return m}class ChoiceWidgetAnnotation extends WidgetAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.indices=t.getArray("I");this.hasIndices=Array.isArray(this.indices)&&this.indices.length>0;this.data.options=[];const r=(0,s.getInheritableProperty)({dict:t,key:"Opt"});if(Array.isArray(r))for(let e=0,t=r.length;e<t;e++){const t=a.fetchIfRef(r[e]),n=Array.isArray(t);this.data.options[e]={exportValue:this._decodeFormValue(n?a.fetchIfRef(t[0]):t),displayValue:this._decodeFormValue(n?a.fetchIfRef(t[1]):t)}}if(this.hasIndices){this.data.fieldValue=[];const e=this.data.options.length;for(const t of this.indices)Number.isInteger(t)&&t>=0&&t<e&&this.data.fieldValue.push(this.data.options[t].exportValue)}else"string"==typeof this.data.fieldValue?this.data.fieldValue=[this.data.fieldValue]:this.data.fieldValue||=[];0===this.data.options.length&&this.data.fieldValue.length>0&&(this.data.options=this.data.fieldValue.map(e=>({exportValue:e,displayValue:e})));this.data.combo=this.hasFieldFlag(n.AnnotationFieldFlag.COMBO);this.data.multiSelect=this.hasFieldFlag(n.AnnotationFieldFlag.MULTISELECT);this._hasText=!0}getFieldObject(){const e=this.data.combo?"combobox":"listbox",t=this.data.fieldValue.length>0?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)return;let a=e?.get(this.data.id)?.value;Array.isArray(a)||(a=[a]);const n=[],{options:s}=this.data;for(let e=0,t=0,r=s.length;e<r;e++)if(s[e].exportValue===a[t]){n.push(e);t+=1}t.set("I",n)}async _getAppearance(e,t,a,n){if(this.data.combo)return super._getAppearance(e,t,a,n);let s,r;const i=n?.get(this.data.id);if(i){r=i.rotation;s=i.value}if(void 0===r&&void 0===s&&!this._needAppearances)return null;void 0===s?s=this.data.fieldValue:Array.isArray(s)||(s=[s]);let{width:o,height:l}=this;90!==r&&270!==r||([o,l]=[l,o]);const c=this.data.options.length,f=[];for(let e=0;e<c;e++){const{exportValue:t}=this.data.options[e];s.includes(t)&&f.push(e)}this._defaultAppearance||(this.data.defaultAppearanceData=parseDefaultAppearance(this._defaultAppearance="/Helvetica 0 Tf 0 g"));const h=await WidgetAnnotation._getFontData(e,t,this.data.defaultAppearanceData,this._fieldResources.mergedResources);let u,{fontSize:d}=this.data.defaultAppearanceData;if(d)u=this._defaultAppearance;else{const e=(l-1)/c;let t,a=-1;for(const{displayValue:e}of this.data.options){const n=this._getTextWidth(e,h);if(n>a){a=n;t=e}}[u,d]=this._computeFontSize(e,o-4,t,h,-1)}const m=1.35*d,g=(m-d)/2,b=Math.floor(l/m);let w=0;if(f.length>0){const e=Math.min(...f),t=Math.max(...f);w=(0,C.MathClamp)(t-b+1,0,e)}const j=Math.min(w+b+1,c),y=["/Tx BMC q",`1 1 ${o} ${l} re W n`];if(f.length){y.push("0.600006 0.756866 0.854904 rg");for(const e of f)w<=e&&e<j&&y.push(`1 ${l-(e-w+1)*m} ${o} ${m} re f`)}y.push("BT",u,`1 0 0 1 0 ${l} Tm`);const v={shift:0};for(let e=w;e<j;e++){const{displayValue:t}=this.data.options[e],a=e===w?g:0;y.push(this._renderText(t,h,d,o,0,v,2,-m+a))}y.push("ET Q EMC");return y.join("\n")}}class SignatureWidgetAnnotation extends WidgetAnnotation{constructor(e){super(e);_defineProperty(this,"_hasValueFromXFA",!1);this.data.fieldValue=null;this.data.hasOwnCanvas=this.data.noRotate;this.data.noHTML=!this.data.hasOwnCanvas}getFieldObject(){return{id:this.data.id,value:null,page:this.data.pageIndex,type:"signature"}}}class TextAnnotation extends MarkupAnnotation{constructor(e){super(e);this.data.noRotate=!0;this.data.hasOwnCanvas=this.data.noRotate;this.data.noHTML=!1;const{dict:t}=e;if(this.data.hasAppearance)this.data.name="NoIcon";else{this.data.rect[1]=this.data.rect[3]-22;this.data.rect[2]=this.data.rect[0]+22;this.data.name=t.has("Name")?t.get("Name").name:"Note"}if(t.has("State")){this.data.state=t.get("State")||null;this.data.stateModel=t.get("StateModel")||null}else{this.data.state=null;this.data.stateModel=null}}}class LinkAnnotation extends Annotation{constructor(e){super(e);const{dict:t,annotationGlobals:a}=e;this.data.noHTML=!1;const n=getQuadPoints(t,this.rectangle);n&&(this.data.quadPoints=n);this.data.borderColor||=this.data.color;y.Catalog.parseDestDictionary({destDict:t,resultObj:this.data,docBaseUrl:a.baseUrl,docAttachments:a.attachments})}get overlaysTextContent(){return!0}}class PopupAnnotation extends Annotation{constructor(e){super(e);const{dict:t}=e;this.data.noHTML=!1;0!==this.width&&0!==this.height||(this.data.rect=null);let a=t.get("Parent");if(!a){(0,n.warn)("Popup annotation has a missing or invalid parent annotation.");return}this.data.parentRect=(0,s.lookupNormalRect)(a.getArray("Rect"),null);this.data.creationDate=a.get("CreationDate")||"";const i=a.get("RT");(0,r.isName)(i,n.AnnotationReplyType.GROUP)&&(a=a.get("IRT"));if(a.has("M")){this.setModificationDate(a.get("M"));this.data.modificationDate=this.modificationDate}else this.data.modificationDate=null;if(a.has("C")){this.setColor(a.getArray("C"));this.data.color=this.color}else this.data.color=null;if(!this.viewable){const e=a.get("F");this._isViewable(e)&&this.setFlags(e)}this.setTitle(a.get("T"));this.data.titleObj=this._title;this.setContents(a.get("Contents"));this.data.contentsObj=this._contents;a.has("RC")&&(this.data.richText=a.get("RC"));this.data.open=!!t.get("Open")}static createNewDict(e,t,a){const{oldAnnotation:n,rect:s,parent:i}=e,o=n||new r.Dict(t);o.setIfNotExists("Type",r.Name.get("Annot"));o.setIfNotExists("Subtype",r.Name.get("Popup"));o.setIfNotExists("Open",!1);o.setIfArray("Rect",s);o.set("Parent",i);return o}static async createNewAppearanceStream(e,t,a){return null}}class FreeTextAnnotation extends MarkupAnnotation{constructor(e){super(e);this.data.hasOwnCanvas=this.data.noRotate;this.data.isEditable=!this.data.noHTML;this.data.noHTML=!1;const{xref:t}=e;this.setDefaultAppearance(e);this._hasAppearance=!!this.appearance;if(!this._hasAppearance){this.data.defaultAppearanceData.fontSize||=10;const{fontColor:a,fontSize:s}=this.data.defaultAppearanceData;if(this._contents.str){this.data.textContent=this._contents.str.split(/\r\n?|\n/).map(e=>e.trimEnd());const{coords:e,bbox:t,matrix:a}=FakeUnicodeFont.getFirstPositionInfo(this.rectangle,this.rotation,s);this.data.textPosition=this._transformPoint(e,t,a)}if(this._isOffscreenCanvasSupported){const n=e.dict.get("CA"),r=new FakeUnicodeFont(t,"sans-serif");this.appearance=r.createAppearance(this._contents.str,this.rectangle,this.rotation,s,a,n);this._streams.push(this.appearance)}else(0,n.warn)("FreeTextAnnotation: OffscreenCanvas is not supported, annotation may not render correctly.")}}async setAppearanceData(e,t){const{fontColor:a,fontSize:n}=await function parseAppearanceStream(e,t,a){return new AppearanceStreamEvaluator(e,t,a).parse()}(this.appearance,e,t);this.data.defaultAppearanceData.fontColor=a;this.data.defaultAppearanceData.fontSize=n||10}get hasTextContent(){return this._hasAppearance}static createNewDict(e,t,{apRef:a,ap:n}){const{color:i,date:o,fontSize:l,oldAnnotation:c,rect:f,rotation:u,user:d,value:m}=e,g=c||new r.Dict(t);g.setIfNotExists("Type",r.Name.get("Annot"));g.setIfNotExists("Subtype",r.Name.get("FreeText"));g.set(c?"M":"CreationDate",`D:${(0,s.getModificationDate)(o)}`);c&&g.delete("RC");g.setIfArray("Rect",f);const b=`/Helv ${l} Tf ${getPdfColor(i,!0)}`;g.set("DA",b);g.setIfDefined("Contents",(0,h.stringToAsciiOrUTF16BE)(m));g.setIfNotExists("F",4);g.setIfNotExists("Border",[0,0,0]);g.setIfNumber("Rotate",u);g.setIfDefined("T",(0,h.stringToAsciiOrUTF16BE)(d));if(a||n){const e=new r.Dict(t);g.set("AP",e);e.set("N",a||n)}return g}static getPrintData({color:e,fontSize:t,rect:a,rotation:n,value:s}){throw new Error("Not implemented: getPrintData")}static async createNewAppearanceStream(e,t,a){const{baseFontRef:n,evaluator:o,task:l}=a,{color:c,fontSize:f,rect:h,rotation:u,value:d}=e;if(!c)return null;const m=new r.Dict(t),g=new r.Dict(t);if(n)g.set("Helv",n);else{const e=new r.Dict(t);e.setIfName("BaseFont","Helvetica");e.setIfName("Type","Font");e.setIfName("Subtype","Type1");e.setIfName("Encoding","WinAnsiEncoding");g.set("Helv",e)}m.set("Font",g);const b=await WidgetAnnotation._getFontData(o,l,{fontName:"Helv",fontSize:f},m),[w,j,y,v]=h;let k=y-w,q=v-j;u%180!=0&&([k,q]=[q,k]);const S=d.split("\n"),_=f/1e3;let C=-1/0;const F=[];for(let e of S){const t=b.encodeString(e);if(t.length>1)return null;e=t.join("");F.push(e);let a=0;const n=b.charsToGlyphs(e);for(const e of n)a+=e.width*_;C=Math.max(C,a)}const x=C>k?k/C:1;let T=1;const O=1.35*f,M=1*f,R=O*S.length;R>q&&(T=q/R);const D=f*Math.min(x,T);let H,N,E;switch(u){case 0:E=[1,0,0,1];N=[h[0],h[1],k,q];H=[h[0],h[3]-M];break;case 90:E=[0,1,-1,0];N=[h[1],-h[2],k,q];H=[h[1],-h[0]-M];break;case 180:E=[-1,0,0,-1];N=[-h[2],-h[3],k,q];H=[-h[2],-h[1]-M];break;case 270:E=[0,-1,1,0];N=[-h[3],h[0],k,q];H=[-h[3],h[2]-M]}const z=["q",`${E.join(" ")} 0 0 cm`,`${N.join(" ")} re W n`,"BT",`${getPdfColor(c,!0)}`,`0 Tc /Helv ${(0,s.numberToString)(D)} Tf`];z.push(`${H.join(" ")} Td (${(0,s.escapeString)(F[0])}) Tj`);const L=(0,s.numberToString)(O);for(let e=1,t=F.length;e<t;e++){const t=F[e];z.push(`0 -${L} Td (${(0,s.escapeString)(t)}) Tj`)}z.push("ET","Q");const $=z.join("\n"),U=new r.Dict(t);U.set("FormType",1);U.setIfName("Subtype","Form");U.setIfName("Type","XObject");U.set("BBox",h);U.set("Resources",m);U.set("Matrix",[1,0,0,1,-h[0],-h[1]]);return new i.StringStream($,U)}}class LineAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.hasOwnCanvas=this.data.noRotate;this.data.noHTML=!1;const r=(0,s.lookupRect)(t.getArray("L"),[0,0,0,0]);this.data.lineCoordinates=n.Util.normalizeRect(r);this.setLineEndings(t.getArray("LE"));this.data.lineEndings=this.lineEndings;if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),s=t.get("CA"),i=getPdfColorArray(getRgbColor(t.getArray("IC"),null)),o=i?s:null,l=this.borderStyle.width||1,c=2*l,f=[this.data.lineCoordinates[0]-c,this.data.lineCoordinates[1]-c,this.data.lineCoordinates[2]+c,this.data.lineCoordinates[3]+c];n.Util.intersect(this.rectangle,f)||(this.rectangle=f);this._setDefaultAppearance({xref:a,extra:`${l} w`,strokeColor:e,fillColor:i,strokeAlpha:s,fillAlpha:o,pointsCallback:(e,t)=>{e.push(`${r[0]} ${r[1]} m`,`${r[2]} ${r[3]} l`,"S");return[t[0]-l,t[7]-l,t[2]+l,t[3]+l]}})}}}class SquareAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.hasOwnCanvas=this.data.noRotate;this.data.noHTML=!1;if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),n=t.get("CA"),s=getPdfColorArray(getRgbColor(t.getArray("IC"),null)),r=s?n:null;if(0===this.borderStyle.width&&!s)return;this._setDefaultAppearance({xref:a,extra:`${this.borderStyle.width} w`,strokeColor:e,fillColor:s,strokeAlpha:n,fillAlpha:r,pointsCallback:(e,t)=>{const a=t[4]+this.borderStyle.width/2,n=t[5]+this.borderStyle.width/2,r=t[6]-t[4]-this.borderStyle.width,i=t[3]-t[7]-this.borderStyle.width;e.push(`${a} ${n} ${r} ${i} re`);s?e.push("B"):e.push("S");return[t[0],t[7],t[2],t[3]]}})}}}class CircleAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),n=t.get("CA"),s=getPdfColorArray(getRgbColor(t.getArray("IC"),null)),r=s?n:null;if(0===this.borderStyle.width&&!s)return;const i=4/3*Math.tan(Math.PI/8);this._setDefaultAppearance({xref:a,extra:`${this.borderStyle.width} w`,strokeColor:e,fillColor:s,strokeAlpha:n,fillAlpha:r,pointsCallback:(e,t)=>{const a=t[0]+this.borderStyle.width/2,n=t[1]-this.borderStyle.width/2,r=t[6]-this.borderStyle.width/2,o=t[7]+this.borderStyle.width/2,l=a+(r-a)/2,c=n+(o-n)/2,f=(r-a)/2*i,h=(o-n)/2*i;e.push(`${l} ${o} m`,`${l+f} ${o} ${r} ${c+h} ${r} ${c} c`,`${r} ${c-h} ${l+f} ${n} ${l} ${n} c`,`${l-f} ${n} ${a} ${c-h} ${a} ${c} c`,`${a} ${c+h} ${l-f} ${o} ${l} ${o} c`,"h");s?e.push("B"):e.push("S");return[t[0],t[7],t[2],t[3]]}})}}}class PolylineAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.hasOwnCanvas=this.data.noRotate;this.data.noHTML=!1;this.data.vertices=null;if(!(this instanceof PolygonAnnotation)){this.setLineEndings(t.getArray("LE"));this.data.lineEndings=this.lineEndings}const r=t.getArray("Vertices");if(!(0,s.isNumberArray)(r,null))return;const i=this.data.vertices=Float32Array.from(r);if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),s=t.get("CA");let r,o=getRgbColor(t.getArray("IC"),null);o&&=getPdfColorArray(o);r=o?this.color?o.every((t,a)=>t===e[a])?"f":"B":"f":"S";const l=this.borderStyle.width||1,c=2*l,f=n.BBOX_INIT.slice();for(let e=0,t=i.length;e<t;e+=2)n.Util.rectBoundingBox(i[e]-c,i[e+1]-c,i[e]+c,i[e+1]+c,f);n.Util.intersect(this.rectangle,f)||(this.rectangle=f);this._setDefaultAppearance({xref:a,extra:`${l} w`,strokeColor:e,strokeAlpha:s,fillColor:o,fillAlpha:o?s:null,pointsCallback:(e,t)=>{for(let t=0,a=i.length;t<a;t+=2)e.push(`${i[t]} ${i[t+1]} ${0===t?"m":"l"}`);e.push(r);return[t[0],t[7],t[2],t[3]]}})}}}class PolygonAnnotation extends PolylineAnnotation{}class CaretAnnotation extends MarkupAnnotation{}class InkAnnotation extends MarkupAnnotation{constructor(e){super(e);this.data.hasOwnCanvas=this.data.noRotate;this.data.noHTML=!1;const{dict:t,xref:a}=e;this.data.inkLists=[];this.data.isEditable=!this.data.noHTML;this.data.noHTML=!1;this.data.opacity=t.get("CA")||1;const s=t.getArray("InkList");if(Array.isArray(s)){for(const e of s){if(!Array.isArray(e))continue;const t=new Float32Array(e.length);this.data.inkLists.push(t);for(let n=0,s=e.length;n<s;n+=2){const s=a.fetchIfRef(e[n]),r=a.fetchIfRef(e[n+1]);if("number"==typeof s&&"number"==typeof r){t[n]=s;t[n+1]=r}}}if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),s=t.get("CA"),r=this.borderStyle.width||1,i=2*r,o=n.BBOX_INIT.slice();for(const e of this.data.inkLists)for(let t=0,a=e.length;t<a;t+=2)n.Util.rectBoundingBox(e[t]-i,e[t+1]-i,e[t]+i,e[t+1]+i,o);n.Util.intersect(this.rectangle,o)||(this.rectangle=o);this._setDefaultAppearance({xref:a,extra:`${r} w`,strokeColor:e,strokeAlpha:s,pointsCallback:(e,t)=>{for(const t of this.data.inkLists){for(let a=0,n=t.length;a<n;a+=2)e.push(`${t[a]} ${t[a+1]} ${0===a?"m":"l"}`);e.push("S")}return[t[0],t[7],t[2],t[3]]}})}}}static createNewDict(e,t,{apRef:a,ap:n}){const{oldAnnotation:i,color:o,date:l,opacity:c,paths:f,outlines:u,rect:d,rotation:m,thickness:g,user:b}=e,w=i||new r.Dict(t);w.setIfNotExists("Type",r.Name.get("Annot"));w.setIfNotExists("Subtype",r.Name.get("Ink"));w.set(i?"M":"CreationDate",`D:${(0,s.getModificationDate)(l)}`);w.setIfArray("Rect",d);w.setIfArray("InkList",u?.points||f?.points);w.setIfNotExists("F",4);w.setIfNumber("Rotate",m);w.setIfDefined("T",(0,h.stringToAsciiOrUTF16BE)(b));u&&w.setIfName("IT","InkHighlight");if(g>0){const e=new r.Dict(t);w.set("BS",e);e.set("W",g)}w.setIfArray("C",getPdfColorArray(o));w.setIfNumber("CA",c);if(n||a){const e=new r.Dict(t);w.set("AP",e);e.set("N",a||n)}return w}static async createNewAppearanceStream(e,t,a){if(e.outlines)return this.createNewAppearanceStreamForHighlight(e,t,a);const{color:n,rect:s,paths:o,thickness:l,opacity:c}=e;if(!n)return null;const f=[`${l} w 1 J 1 j`,`${getPdfColor(n,!1)}`];1!==c&&f.push("/R0 gs");for(const e of o.lines)writeLineToCurveToAppearance(e,f,!0);f.push("S");const h=f.join("\n"),u=new r.Dict(t);u.set("FormType",1);u.setIfName("Subtype","Form");u.setIfName("Type","XObject");u.set("BBox",s);u.set("Length",h.length);if(1!==c){const e=new r.Dict(t),a=new r.Dict(t),n=new r.Dict(t);n.set("CA",c);n.setIfName("Type","ExtGState");a.set("R0",n);e.set("ExtGState",a);u.set("Resources",e)}return new i.StringStream(h,u)}static async createNewAppearanceStreamForHighlight(e,t,a){const{color:n,rect:s,outlines:{outline:o},opacity:l}=e;if(!n)return null;const c=[`${getPdfColor(n,!0)}`,"/R0 gs"];writeLineToCurveToAppearance(o,c);c.push("h f");const f=c.join("\n"),h=new r.Dict(t);h.set("FormType",1);h.setIfName("Subtype","Form");h.setIfName("Type","XObject");h.set("BBox",s);h.set("Length",f.length);const u=new r.Dict(t),d=new r.Dict(t);u.set("ExtGState",d);h.set("Resources",u);const m=new r.Dict(t);d.set("R0",m);m.setIfName("BM","Multiply");if(1!==l){m.set("ca",l);m.setIfName("Type","ExtGState")}return new i.StringStream(f,h)}}class HighlightAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;this.data.isEditable=!this.data.noHTML;this.data.noHTML=!1;this.data.opacity=t.get("CA")||1;if(this.data.quadPoints=getQuadPoints(t,null)){if(!this.appearance){const e=getPdfColorArray(this.color,[1,1,0]),n=t.get("CA");this._setDefaultAppearance({xref:a,fillColor:e,blendMode:"Multiply",fillAlpha:n,pointsCallback:(e,t)=>{e.push(`${t[0]} ${t[1]} m`,`${t[2]} ${t[3]} l`,`${t[6]} ${t[7]} l`,`${t[4]} ${t[5]} l`,"f");return[t[0],t[7],t[2],t[3]]}})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}static createNewDict(e,t,{apRef:a,ap:n}){const{color:i,date:o,oldAnnotation:l,opacity:c,rect:f,rotation:u,user:d,quadPoints:m}=e,g=l||new r.Dict(t);g.setIfNotExists("Type",r.Name.get("Annot"));g.setIfNotExists("Subtype",r.Name.get("Highlight"));g.set(l?"M":"CreationDate",`D:${(0,s.getModificationDate)(o)}`);g.setIfArray("Rect",f);g.setIfNotExists("F",4);g.setIfNotExists("Border",[0,0,0]);g.setIfNumber("Rotate",u);g.setIfArray("QuadPoints",m);g.setIfArray("C",getPdfColorArray(i));g.setIfNumber("CA",c);g.setIfDefined("T",(0,h.stringToAsciiOrUTF16BE)(d));if(a||n){const e=new r.Dict(t);g.set("AP",e);e.set("N",a||n)}return g}static async createNewAppearanceStream(e,t,a){const{color:n,rect:o,outlines:l,opacity:c}=e;if(!n)return null;const f=[`${getPdfColor(n,!0)}`,"/R0 gs"],h=[];for(const e of l){h.length=0;h.push(`${(0,s.numberToString)(e[0])} ${(0,s.numberToString)(e[1])} m`);for(let t=2,a=e.length;t<a;t+=2)h.push(`${(0,s.numberToString)(e[t])} ${(0,s.numberToString)(e[t+1])} l`);h.push("h");f.push(h.join("\n"))}f.push("f*");const u=f.join("\n"),d=new r.Dict(t);d.set("FormType",1);d.setIfName("Subtype","Form");d.setIfName("Type","XObject");d.set("BBox",o);d.set("Length",u.length);const m=new r.Dict(t),g=new r.Dict(t);m.set("ExtGState",g);d.set("Resources",m);const b=new r.Dict(t);g.set("R0",b);b.setIfName("BM","Multiply");if(1!==c){b.set("ca",c);b.setIfName("Type","ExtGState")}return new i.StringStream(u,d)}}class UnderlineAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;if(this.data.quadPoints=getQuadPoints(t,null)){if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),n=t.get("CA");this._setDefaultAppearance({xref:a,extra:"[] 0 d 0.571 w",strokeColor:e,strokeAlpha:n,pointsCallback:(e,t)=>{e.push(`${t[4]} ${t[5]+1.3} m`,`${t[6]} ${t[7]+1.3} l`,"S");return[t[0],t[7],t[2],t[3]]}})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}}class SquigglyAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;if(this.data.quadPoints=getQuadPoints(t,null)){if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),n=t.get("CA");this._setDefaultAppearance({xref:a,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:n,pointsCallback:(e,t)=>{const a=(t[1]-t[5])/6;let n=a,s=t[4];const r=t[5],i=t[6];e.push(`${s} ${r+n} m`);do{s+=2;n=0===n?a:0;e.push(`${s} ${r+n} l`)}while(s<i);e.push("S");return[t[4],r-2*a,i,r+2*a]}})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}}class StrikeOutAnnotation extends MarkupAnnotation{constructor(e){super(e);const{dict:t,xref:a}=e;if(this.data.quadPoints=getQuadPoints(t,null)){if(!this.appearance){const e=getPdfColorArray(this.color,[0,0,0]),n=t.get("CA");this._setDefaultAppearance({xref:a,extra:"[] 0 d 1 w",strokeColor:e,strokeAlpha:n,pointsCallback:(e,t)=>{e.push((t[0]+t[4])/2+" "+(t[1]+t[5])/2+" m",(t[2]+t[6])/2+" "+(t[3]+t[7])/2+" l","S");return[t[0],t[7],t[2],t[3]]}})}}else this.data.popupRef=null}get overlaysTextContent(){return!0}}var N=new WeakMap;class StampAnnotation extends MarkupAnnotation{constructor(e){super(e);_classPrivateFieldInitSpec(this,N,null);this.data.hasOwnCanvas=this.data.noRotate;this.data.isEditable=!this.data.noHTML;this.data.noHTML=!1}mustBeViewedWhenEditing(e,t=null){if(e){if(!this.data.isEditable)return!0;_classPrivateFieldGet(N,this)??_classPrivateFieldSet(N,this,this.data.hasOwnCanvas);this.data.hasOwnCanvas=!0;return!0}if(null!==_classPrivateFieldGet(N,this)){this.data.hasOwnCanvas=_classPrivateFieldGet(N,this);_classPrivateFieldSet(N,this,null)}return!t?.has(this.data.id)}static createNewDict(e,t,{apRef:a,ap:n}){const{date:i,oldAnnotation:o,rect:l,rotation:c,user:f}=e,u=o||new r.Dict(t);u.setIfNotExists("Type",r.Name.get("Annot"));u.setIfNotExists("Subtype",r.Name.get("Stamp"));u.set(o?"M":"CreationDate",`D:${(0,s.getModificationDate)(i)}`);u.setIfArray("Rect",l);u.setIfNotExists("F",4);u.setIfNotExists("Border",[0,0,0]);u.setIfNumber("Rotate",c);u.setIfDefined("T",(0,h.stringToAsciiOrUTF16BE)(f));if(a||n){const e=new r.Dict(t);u.set("AP",e);e.set("N",a||n)}return u}static async createNewAppearanceStream(e,t,a){if(e.oldAnnotation)return null;if(e.isSignature)return _assertClassBrand(StampAnnotation,this,_createNewAppearanceStreamForDrawing).call(this,e,t);const{rotation:n}=e,{imageRef:o,width:l,height:c}=a.image,f=new r.Dict(t),h=new r.Dict(t);f.set("XObject",h);h.set("Im0",o);const u=`q ${l} 0 0 ${c} 0 0 cm /Im0 Do Q`,d=new r.Dict(t);d.set("FormType",1);d.setIfName("Subtype","Form");d.setIfName("Type","XObject");d.set("BBox",[0,0,l,c]);d.set("Resources",f);if(n){const e=(0,s.getRotationMatrix)(n,l,c);d.set("Matrix",e)}return new i.StringStream(u,d)}}async function _createNewAppearanceStreamForDrawing(e,t){const{areContours:a,color:n,rect:s,lines:o,thickness:l}=e;if(!n)return null;const c=[`${l} w 1 J 1 j`,`${getPdfColor(n,a)}`];for(const e of o)writeLineToCurveToAppearance(e,c,!0);c.push(a?"F":"S");const f=c.join("\n"),h=new r.Dict(t);h.set("FormType",1);h.setIfName("Subtype","Form");h.setIfName("Type","XObject");h.set("BBox",s);h.set("Length",f.length);return new i.StringStream(f,h)}class FileAttachmentAnnotation extends MarkupAnnotation{constructor(e){super(e);const{annotationGlobals:t,dict:a}=e,n=a.get("FS");this.data.hasOwnCanvas=this.data.noRotate;this.data.noHTML=!1;this.data.fileId=this._getAttachmentId(n,a.getRaw("FS"),t);this.data.file=new k.FileSpec(n).serializable;const s=a.get("Name");this.data.name=s instanceof r.Name?(0,h.stringToPDFString)(s.name):"PushPin";const i=a.get("ca");this.data.fillAlpha="number"==typeof i&&i>=0&&i<=1?i:null}}class MediaAnnotation extends Annotation{constructor(e){super(e);this.data.noHTML=!0}_setMediaData({assetRef:e,assetDict:t,filename:a,contentType:n,wrapSound:s=!1},r){this.data.noHTML=!1;this.data.richMedia={fileId:this._getAttachmentId(t,e,r,s),filename:a,contentType:n}}static _getContentType(e,t,a=null,n=!1){if("string"==typeof a&&(n?E._:z._).test(a))return a;const s=k.FileSpec.pickPlatformItem(e.get("EF")),i=s instanceof w.BaseStream?s.dict?.get("Subtype"):null;if(i instanceof r.Name&&E._.test(i.name))return i.name;const o=t.lastIndexOf(".")+1;switch(o>0&&t.substring(o).toLowerCase()){case"mp4":case"m4v":return"video/mp4";case"webm":return"video/webm";case"ogv":return"video/ogg";case"mov":return"video/quicktime";case"mp3":return"audio/mpeg";case"m4a":return"audio/mp4";case"wav":return"audio/wav";case"oga":case"ogg":return"audio/ogg";default:return null}}}var E={_:/^(?:video|audio)\/[a-z0-9][\w!#$&^.+-]{0,126}$/i},z={_:/^(?:video|audio)\/[a-z0-9][\w!#$&^.+-]{0,126}(?: *; *[a-z0-9][\w!#$&^.+-]{0,126} *= *(?:[-!#$%&'*+.^\x60{|}~\w]+|"(?:[\x20\x21\x23-\x5b\x5d-\x7e]|\\[\x20-\x7e])*"))* *$/i};class RichMediaAnnotation extends MediaAnnotation{constructor(e){super(e);const{dict:t,xref:a,annotationGlobals:s}=e,i=t.get("RichMediaContent");if(!(i instanceof r.Dict))return;const o=_findAsset.call(RichMediaAnnotation,i,a);o?this._setMediaData(o,s):(0,n.warn)("RichMedia annotation has no playable asset.")}}function _findAsset(e,t){const a=e.get("Configurations");if(!Array.isArray(a))return null;for(const e of a){const a=t.fetchIfRef(e);if(!(a instanceof r.Dict))continue;const n=a.get("Instances");if(Array.isArray(n))for(const e of n){const a=t.fetchIfRef(e);if(!(a instanceof r.Dict))continue;if((0,r.isName)(a.get("Subtype"),"Flash"))continue;const n=a.getRaw("Asset"),s=t.fetchIfRef(n);if(!(s instanceof r.Dict))continue;if(!k.FileSpec.hasEmbeddedFile(s))continue;const{filename:i}=new k.FileSpec(s).serializable,o=MediaAnnotation._getContentType(s,i);if(o)return{assetRef:n instanceof r.Ref?n:null,assetDict:s,filename:i,contentType:o}}}return null}class ScreenAnnotation extends MediaAnnotation{constructor(e){super(e);const{dict:t,xref:a,annotationGlobals:n}=e,s=_findAsset3.call(ScreenAnnotation,t,a);s&&this._setMediaData(s,n)}}b=ScreenAnnotation;function _findAsset3(e,t){for(const a of _assertClassBrand(b,this,_renditionActions).call(this,e)){const e=_assertClassBrand(b,this,_findRenditionAsset).call(this,a.get("R"),t,new r.RefSet);if(e)return e}return null}function*_renditionActions(e){const t=e.get("A");_assertClassBrand(b,this,_isPlayAction).call(this,t)&&(yield t);const a=e.get("AA");if(a instanceof r.Dict)for(const[,e]of a)_assertClassBrand(b,this,_isPlayAction).call(this,e)&&(yield e)}function _isPlayAction(e){if(!(e instanceof r.Dict&&(0,r.isName)(e.get("S"),"Rendition")))return!1;const t=e.get("OP");return void 0===t||t===n.AnnotationRenditionOperation.PLAY_OR_RESUME||t===n.AnnotationRenditionOperation.PLAY}function _findRenditionAsset(e,t,a){if(!(e instanceof r.Dict))return null;const n=e.get("S");if((0,r.isName)(n,"MR"))return _assertClassBrand(b,this,_findClipAsset).call(this,e.get("C"),t);if((0,r.isName)(n,"SR")){const n=e.get("R");if(Array.isArray(n))for(const e of n){if(e instanceof r.Ref){if(a.has(e))continue;a.put(e)}const n=_assertClassBrand(b,this,_findRenditionAsset).call(this,t.fetchIfRef(e),t,a);if(n)return n}}return null}function _findClipAsset(e,t){if(!(e instanceof r.Dict&&(0,r.isName)(e.get("S"),"MCD")))return null;const a=e.getRaw("D"),n=t.fetchIfRef(a),s=e.get("CT");let i,o,l="string"==typeof s?s:null,c=!1;if(n instanceof w.BaseStream){i=n.dict;const t=e.get("N");o="string"==typeof t?(0,h.stringToPDFString)(t):"";if(!l){const e=n.dict.get("Subtype");if(e instanceof r.Name){l=e.name;c=!0}}}else{if(!(n instanceof r.Dict))return null;if(!k.FileSpec.hasEmbeddedFile(n))return null;i=n;({filename:o}=new k.FileSpec(n).serializable)}const f=MediaAnnotation._getContentType(i,o,l,c);return f?{assetRef:a instanceof r.Ref?a:null,assetDict:i,filename:o,contentType:f}:null}class SoundAnnotation extends MediaAnnotation{constructor(e){super(e);const{dict:t,xref:a,annotationGlobals:i}=e,o=t.getRaw("Sound");if(!(o instanceof r.Ref))return;let l;try{l=a.fetch(o)}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.warn)(`SoundAnnotation: "${e}".`);return}l instanceof w.BaseStream&&(0,S.getSoundFormat)(l.dict)&&this._setMediaData({assetRef:o,assetDict:l.dict,filename:"sound.wav",contentType:"audio/wav",wrapSound:!0},i)}}},1834(e,t,a){a.d(t,{BaseStream:()=>BaseStream});var n=a(1723);class BaseStream{get length(){(0,n.unreachable)("Abstract getter `length` accessed")}get isEmpty(){(0,n.unreachable)("Abstract getter `isEmpty` accessed")}get isDataLoaded(){return(0,n.shadow)(this,"isDataLoaded",!0)}getByte(){(0,n.unreachable)("Abstract method `getByte` called")}getBytes(e){(0,n.unreachable)("Abstract method `getBytes` called")}async getImageData(e,t){return this.getBytes(e,t)}async asyncGetBytes(){(0,n.unreachable)("Abstract method `asyncGetBytes` called")}get isAsync(){return!1}get isAsyncDecoder(){return!1}get isImageStream(){return!1}get canAsyncDecodeImageFromBuffer(){return!1}async getTransferableImage(e,t){return null}peekByte(){const e=this.getByte();-1!==e&&this.pos--;return e}peekBytes(e){const t=this.getBytes(e);this.pos-=t.length;return t}getUint16(){const 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,n.unreachable)("Abstract method `getByteRange` called")}getString(e){return(0,n.bytesToString)(this.getBytes(e))}skip(e){this.pos+=e||1}reset(){(0,n.unreachable)("Abstract method `reset` called")}moveStart(){(0,n.unreachable)("Abstract method `moveStart` called")}makeSubStream(e,t,a=null){(0,n.unreachable)("Abstract method `makeSubStream` called")}clone(){(0,n.unreachable)("Abstract method `clone` called")}getBaseStreams(){return null}getOriginalStream(){return this.stream?.getOriginalStream()||this}}},7092(e,t,a){a.d(t,{bidi:()=>bidi});var n=a(1723);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"],r=["AN","AN","AN","AN","AN","AN","ON","ON","AL","ET","ET","AL","CS","AL","ON","ON","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","ON","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","ON","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL"],i=/[\p{Mn}\p{Me}]/u;function isOdd(e){return!!(1&e)}function isEven(e){return!(1&e)}function findUnequal(e,t,a,n=e.length){for(let s=t;s<n;++s)if(e[s]!==a)return s;return n}function reverseValues(e,t,a){for(let n=t,s=a-1;n<s;++n,--s){const t=e[n];e[n]=e[s];e[s]=t}}function createBidiText(e,t,a=!1){let n="ltr";a?n="ttb":t||(n="rtl");return{str:e,dir:n}}const o=[],l=[];function bidi(e,t=-1,a=!1){let c=!0;const f=Array.isArray(e)?e:null,h=f?f.join(""):e,u=h.length;if(0===u||a)return createBidiText(h,c,a);o.length=u;l.length=u;let d,m,g=0;for(d=0;d<u;++d){o[d]=h.charAt(d);const e=h.charCodeAt(d);let t="L";if(e<=255)t=s[e];else if(1424<=e&&e<=1524)t="R";else if(1536<=e&&e<=1791){t=r[255&e];t||(0,n.warn)("Bidi: invalid Unicode character "+e.toString(16))}else(1792<=e&&e<=2220||64336<=e&&e<=65023||65136<=e&&e<=65279)&&(t="AL");"R"!==t&&"AL"!==t&&"AN"!==t||g++;l[d]=t}if(0===g){c=!0;return createBidiText(h,c)}if(-1===t)if(g/u<.3&&u>4){c=!0;t=0}else{c=!1;t=1}const b=new Array(u).fill(t),w=isOdd(t)?"R":"L",j=w,y=j;let v,k=j;for(d=0;d<u;++d)"NSM"===l[d]||"L"===l[d]&&h.charCodeAt(d)>=768&&i.test(o[d])?l[d]=k:k=l[d];k=j;for(d=0;d<u;++d){v=l[d];"EN"===v?l[d]="AL"===k?"AN":"EN":"R"!==v&&"L"!==v&&"AL"!==v||(k=v)}for(d=0;d<u;++d){v=l[d];"AL"===v&&(l[d]="R")}for(d=1;d<u-1;++d){"ES"===l[d]&&"EN"===l[d-1]&&"EN"===l[d+1]&&(l[d]="EN");"CS"!==l[d]||"EN"!==l[d-1]&&"AN"!==l[d-1]||l[d+1]!==l[d-1]||(l[d]=l[d-1])}for(d=0;d<u;++d)if("EN"===l[d]){for(let e=d-1;e>=0&&"ET"===l[e];--e)l[e]="EN";for(let e=d+1;e<u&&"ET"===l[e];++e)l[e]="EN"}for(d=0;d<u;++d){v=l[d];"WS"!==v&&"ES"!==v&&"ET"!==v&&"CS"!==v||(l[d]="ON")}k=j;for(d=0;d<u;++d){v=l[d];"EN"===v?l[d]="L"===k?"L":"EN":"R"!==v&&"L"!==v||(k=v)}for(d=0;d<u;++d)if("ON"===l[d]){const e=findUnequal(l,d+1,"ON");let t=j;for(let e=d-1;e>=0;e--){const a=l[e];if("L"===a){t="L";break}if("R"===a||"EN"===a||"AN"===a){t="R";break}}let a=y;for(let t=e;t<u;t++){const e=l[t];if("L"===e){a="L";break}if("R"===e||"EN"===e||"AN"===e){a="R";break}}t===a&&l.fill(t,d,e);d=e-1}for(d=0;d<u;++d)"ON"===l[d]&&(l[d]=w);for(d=0;d<u;++d){v=l[d];isEven(b[d])?"R"===v?b[d]+=1:"AN"!==v&&"EN"!==v||(b[d]+=2):"L"!==v&&"AN"!==v&&"EN"!==v||(b[d]+=1)}let q,S=-1,_=99;for(d=0,m=b.length;d<m;++d){q=b[d];S<q&&(S=q);_>q&&isOdd(q)&&(_=q)}if(f){let e=0;for(const t of f){const a=e+t.length;if(t.length>1&&findUnequal(b,e+1,b[e],a)===a){o[e]=t;o.fill("",e+1,a)}e=a}}for(q=S;q>=_;--q){let e=-1;for(d=0,m=b.length;d<m;++d)if(b[d]<q){if(e>=0){reverseValues(o,e,d);e=-1}}else e<0&&(e=d);e>=0&&reverseValues(o,e,b.length)}return createBidiText(o.join("").replaceAll(/[<>]/g,""),c)}},6170(e,t,a){a.d(t,{BrotliStream:()=>BrotliStream});var n=a(4563);let makeBrotliDecode=()=>{const e=Int32Array.from([256,402,436,468,500,534,566,598,630,662,694,726,758,790,822,854,886,920,952,984,1016,1048,1080]),t=Int32Array.from([1,2,3,4,0,5,17,6,16,7,8,9,10,11,12,13,14,15]),a=Int32Array.from([0,3,2,1,0,0,0,0,0,0,3,3,3,3,3,3]),n=Int32Array.from([0,0,0,0,-1,1,-2,2,-3,3,-1,1,-2,2,-3,3]),s=Int32Array.from([131072,131076,131075,196610,131072,131076,131075,262145,131072,131076,131075,196610,131072,131076,131075,262149]),r=Int32Array.from([1,5,9,13,17,25,33,41,49,65,81,97,113,145,177,209,241,305,369,497,753,1265,2289,4337,8433,16625]),i=Int32Array.from([2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,6,6,7,8,9,10,11,12,13,24]),o=Int16Array.from([0,0,0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,7,8,9,10,12,14,24]),l=Int16Array.from([0,0,0,0,0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,7,8,9,10,24]),c=new Int16Array(2816);!function unpackCommandLookupTable(e){const t=new Int32Array(24),a=new Int32Array(24);a[0]=2;for(let e=0;e<23;++e){t[e+1]=t[e]+(1<<o[e]);a[e+1]=a[e]+(1<<l[e])}for(let n=0;n<704;++n){let s=n>>6,r=-4;if(s>=2){s-=2;r=0}const i=(170064>>2*s&3)<<3|n>>3&7,c=(156228>>2*s&3)<<3|7&n,f=a[c],h=r+Math.min(f,5)-2,u=4*n;e[u]=o[i]|l[c]<<8;e[u+1]=t[i];e[u+2]=a[c];e[u+3]=h}}(c);function log2floor(e){let t=-1,a=16,n=e;for(;a>0;){let e=n>>a;if(0!==e){t+=a;n=e}a>>=1}return t+n}function calculateDistanceAlphabetSize(e,t,a){return 16+t+2*(a<<e)}function calculateDistanceAlphabetLimit(e,t,a,n){if(t<n+(2<<a))return makeError(e,-23);const s=4+(t-n>>a),r=log2floor(s)-1;return((r-1<<1|s>>r&1)-1<<a)+(1<<a)+n+16}function initState(e){if(0!==e.runningState)return makeError(e,-26);e.blockTrees=new Int32Array(3091);e.blockTrees[0]=7;e.distRbIdx=3;let t=calculateDistanceAlphabetLimit(e,2147483644,3,120);if(t<0)return t;const a=t;e.distExtraBits=new Int8Array(a);e.distOffset=new Int32Array(a);t=function initBitReader(e){e.byteBuffer=new Int8Array(4160);e.accumulator32=0;e.shortBuffer=new Int16Array(2080);e.bitOffset=32;e.halfOffset=2048;e.endOfStreamReached=0;return prepare(e)}(e);if(t<0)return t;e.runningState=1;return 0}function decodeVarLenUnsignedByte(e){if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}if(0!==readFewBits(e,1)){const t=readFewBits(e,3);return 0===t?1:readFewBits(e,t)+(1<<t)}return 0}function readSymbol(e,t,a){let n=e[t];const s=a.accumulator32>>>a.bitOffset;n+=255&s;const r=e[n]>>16,i=65535&e[n];if(r<=8){a.bitOffset+=r;return i}n+=i;n+=(s&(1<<r)-1)>>>8;a.bitOffset+=8+(e[n]>>16);return 65535&e[n]}function readBlockLength(e,t,a){if(a.bitOffset>=16){a.accumulator32=a.shortBuffer[a.halfOffset++]<<16|a.accumulator32>>>16;a.bitOffset-=16}const n=readSymbol(e,t,a),s=i[n];if(a.bitOffset>=16){a.accumulator32=a.shortBuffer[a.halfOffset++]<<16|a.accumulator32>>>16;a.bitOffset-=16}return r[n]+(s<=16?readFewBits(a,s):readManyBits(a,s))}function moveToFront(e,t){let a=t;const n=e[a];for(;a>0;){e[a]=e[a-1];a--}e[0]=n}function readSimpleHuffmanCode(e,t,a,n,s){const r=new Int32Array(t),i=new Int32Array(4),o=1+log2floor(e-1),l=readFewBits(s,2)+1;for(let e=0;e<l;++e){if(s.bitOffset>=16){s.accumulator32=s.shortBuffer[s.halfOffset++]<<16|s.accumulator32>>>16;s.bitOffset-=16}const a=readFewBits(s,o);if(a>=t)return makeError(s,-15);i[e]=a}const c=function checkDupes(e,t,a){for(let n=0;n<a-1;++n)for(let s=n+1;s<a;++s)if(t[n]===t[s])return makeError(e,-7);return 0}(s,i,l);if(c<0)return c;let f=l;4===l&&(f+=readFewBits(s,1));switch(f){case 1:r[i[0]]=1;break;case 2:r[i[0]]=1;r[i[1]]=1;break;case 3:r[i[0]]=1;r[i[1]]=2;r[i[2]]=2;break;case 4:r[i[0]]=2;r[i[1]]=2;r[i[2]]=2;r[i[3]]=2;break;case 5:r[i[0]]=1;r[i[1]]=2;r[i[2]]=3;r[i[3]]=3}return buildHuffmanTable(a,n,8,r,t)}function readComplexHuffmanCode(e,a,n,r,i){const o=new Int32Array(e),l=new Int32Array(18);let c=32,f=0;for(let e=a;e<18;++e){const a=t[e];if(i.bitOffset>=16){i.accumulator32=i.shortBuffer[i.halfOffset++]<<16|i.accumulator32>>>16;i.bitOffset-=16}const n=i.accumulator32>>>i.bitOffset&15;i.bitOffset+=s[n]>>16;const r=65535&s[n];l[a]=r;if(0!==r){c-=32>>r;f++;if(c<=0)break}}if(0!==c&&1!==f)return makeError(i,-4);const h=function readHuffmanCodeLengths(e,t,a,n){let s=0,r=8,i=0,o=0,l=32768;const c=new Int32Array(33);buildHuffmanTable(c,c.length-1,5,e,18);for(;s<t&&l>0;){if(n.halfOffset>2030){const e=readMoreInput(n);if(e<0)return e}if(n.bitOffset>=16){n.accumulator32=n.shortBuffer[n.halfOffset++]<<16|n.accumulator32>>>16;n.bitOffset-=16}const e=n.accumulator32>>>n.bitOffset&31;n.bitOffset+=c[e]>>16;const f=65535&c[e];if(f<16){i=0;a[s++]=f;if(0!==f){r=f;l-=32768>>f}}else{const e=f-14;let c=0;16===f&&(c=r);if(o!==c){i=0;o=c}const h=i;if(i>0){i-=2;i<<=e}if(n.bitOffset>=16){n.accumulator32=n.shortBuffer[n.halfOffset++]<<16|n.accumulator32>>>16;n.bitOffset-=16}i+=readFewBits(n,e)+3;const u=i-h;if(s+u>t)return makeError(n,-2);for(let e=0;e<u;++e)a[s++]=o;0!==o&&(l-=u<<15-o)}}if(0!==l)return makeError(n,-18);a.fill(0,s,t);return 0}(l,e,o,i);return h<0?h:buildHuffmanTable(n,r,8,o,e)}function readHuffmanCode(e,t,a,n,s){if(s.halfOffset>2030){const e=readMoreInput(s);if(e<0)return e}if(s.bitOffset>=16){s.accumulator32=s.shortBuffer[s.halfOffset++]<<16|s.accumulator32>>>16;s.bitOffset-=16}const r=readFewBits(s,2);return 1===r?readSimpleHuffmanCode(e,t,a,n,s):readComplexHuffmanCode(t,r,a,n,s)}function decodeContextMap(t,a,n){let s;if(n.halfOffset>2030){s=readMoreInput(n);if(s<0)return s}const r=decodeVarLenUnsignedByte(n)+1;if(1===r){a.fill(0,0,t);return r}if(n.bitOffset>=16){n.accumulator32=n.shortBuffer[n.halfOffset++]<<16|n.accumulator32>>>16;n.bitOffset-=16}let i=0;0!==readFewBits(n,1)&&(i=readFewBits(n,4)+1);const o=r+i,l=e[o+31>>5],c=new Int32Array(l+1),f=c.length-1;s=readHuffmanCode(o,o,c,f,n);if(s<0)return s;let h=0;for(;h<t;){if(n.halfOffset>2030){s=readMoreInput(n);if(s<0)return s}if(n.bitOffset>=16){n.accumulator32=n.shortBuffer[n.halfOffset++]<<16|n.accumulator32>>>16;n.bitOffset-=16}const e=readSymbol(c,f,n);if(0===e){a[h]=0;h++}else if(e<=i){if(n.bitOffset>=16){n.accumulator32=n.shortBuffer[n.halfOffset++]<<16|n.accumulator32>>>16;n.bitOffset-=16}let s=(1<<e)+readFewBits(n,e);for(;0!==s;){if(h>=t)return makeError(n,-3);a[h]=0;h++;s--}}else{a[h]=e-i;h++}}if(n.bitOffset>=16){n.accumulator32=n.shortBuffer[n.halfOffset++]<<16|n.accumulator32>>>16;n.bitOffset-=16}1===readFewBits(n,1)&&function inverseMoveToFrontTransform(e,t){const a=new Int32Array(256);for(let e=0;e<256;++e)a[e]=e;for(let n=0;n<t;++n){const t=255&e[n];e[n]=a[t];0!==t&&moveToFront(a,t)}}(a,t);return r}function decodeBlockTypeAndLength(e,t,a){const n=e.rings,s=4+2*t;if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}let r=readSymbol(e.blockTrees,2*t,e);const i=readBlockLength(e.blockTrees,2*t+1,e);1===r?r=n[s+1]+1:0===r?r=n[s]:r-=2;r>=a&&(r-=a);n[s]=n[s+1];n[s+1]=r;return i}function decodeLiteralBlockSwitch(e){e.literalBlockLength=decodeBlockTypeAndLength(e,0,e.numLiteralBlockTypes);const t=e.rings[5];e.contextMapSlice=t<<6;e.literalTreeIdx=255&e.contextMap[e.contextMapSlice];const a=e.contextModes[t];e.contextLookupOffset1=a<<9;e.contextLookupOffset2=e.contextLookupOffset1+256}function decodeCommandBlockSwitch(e){e.commandBlockLength=decodeBlockTypeAndLength(e,1,e.numCommandBlockTypes);e.commandTreeIdx=e.rings[7]}function decodeDistanceBlockSwitch(e){e.distanceBlockLength=decodeBlockTypeAndLength(e,2,e.numDistanceBlockTypes);e.distContextMapSlice=e.rings[9]<<2}function readNextMetablockHeader(e){if(0!==e.inputEnd){e.nextRunningState=10;e.runningState=12;return 0}e.literalTreeGroup=new Int32Array(0);e.commandTreeGroup=new Int32Array(0);e.distanceTreeGroup=new Int32Array(0);let t;if(e.halfOffset>2030){t=readMoreInput(e);if(t<0)return t}t=function decodeMetaBlockLength(e){if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}e.inputEnd=readFewBits(e,1);e.metaBlockLength=0;e.isUncompressed=0;e.isMetadata=0;if(0!==e.inputEnd&&0!==readFewBits(e,1))return 0;const t=readFewBits(e,2)+4;if(7===t){e.isMetadata=1;if(0!==readFewBits(e,1))return makeError(e,-6);const t=readFewBits(e,2);if(0===t)return 0;for(let a=0;a<t;++a){if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}const n=readFewBits(e,8);if(0===n&&a+1===t&&t>1)return makeError(e,-8);e.metaBlockLength+=n<<8*a}}else for(let a=0;a<t;++a){if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}const n=readFewBits(e,4);if(0===n&&a+1===t&&t>4)return makeError(e,-8);e.metaBlockLength+=n<<4*a}e.metaBlockLength++;0===e.inputEnd&&(e.isUncompressed=readFewBits(e,1));return 0}(e);if(t<0)return t;if(0===e.metaBlockLength&&0===e.isMetadata)return 0;if(0!==e.isUncompressed||0!==e.isMetadata){t=jumpToByteBoundary(e);if(t<0)return t;0===e.isMetadata?e.runningState=6:e.runningState=5}else e.runningState=3;if(0!==e.isMetadata)return 0;e.expectedTotalSize+=e.metaBlockLength;e.expectedTotalSize>1<<30&&(e.expectedTotalSize=1<<30);e.ringBufferSize<e.maxRingBufferSize&&function maybeReallocateRingBuffer(e){let t=e.maxRingBufferSize;if(t>e.expectedTotalSize){const a=e.expectedTotalSize;for(;t>>1>a;)t>>=1;0===e.inputEnd&&t<16384&&e.maxRingBufferSize>=16384&&(t=16384)}if(t<=e.ringBufferSize)return;const a=new Int8Array(t+37),n=e.ringBuffer;0!==n.length&&a.set(n.subarray(0,e.ringBufferSize),0);e.ringBuffer=a;e.ringBufferSize=t}(e);return 0}function readMetablockPartition(e,t,a){let n=e.blockTrees[2*t];if(a<=1){e.blockTrees[2*t+1]=n;e.blockTrees[2*t+2]=n;return 1<<28}const s=a+2;let r=readHuffmanCode(s,s,e.blockTrees,2*t,e);if(r<0)return r;n+=r;e.blockTrees[2*t+1]=n;r=readHuffmanCode(26,26,e.blockTrees,2*t+1,e);if(r<0)return r;n+=r;e.blockTrees[2*t+2]=n;return readBlockLength(e.blockTrees,2*t+1,e)}function readMetablockHuffmanCodesAndContextMaps(e){e.numLiteralBlockTypes=decodeVarLenUnsignedByte(e)+1;let t=readMetablockPartition(e,0,e.numLiteralBlockTypes);if(t<0)return t;e.literalBlockLength=t;e.numCommandBlockTypes=decodeVarLenUnsignedByte(e)+1;t=readMetablockPartition(e,1,e.numCommandBlockTypes);if(t<0)return t;e.commandBlockLength=t;e.numDistanceBlockTypes=decodeVarLenUnsignedByte(e)+1;t=readMetablockPartition(e,2,e.numDistanceBlockTypes);if(t<0)return t;e.distanceBlockLength=t;if(e.halfOffset>2030){t=readMoreInput(e);if(t<0)return t}if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}e.distancePostfixBits=readFewBits(e,2);e.numDirectDistanceCodes=readFewBits(e,4)<<e.distancePostfixBits;e.contextModes=new Int8Array(e.numLiteralBlockTypes);let a=0;for(;a<e.numLiteralBlockTypes;){const n=Math.min(a+96,e.numLiteralBlockTypes);for(;a<n;){if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}e.contextModes[a]=readFewBits(e,2);a++}if(e.halfOffset>2030){t=readMoreInput(e);if(t<0)return t}}const n=e.numLiteralBlockTypes<<6;e.contextMap=new Int8Array(n);t=decodeContextMap(n,e.contextMap,e);if(t<0)return t;const s=t;e.trivialLiteralContext=1;for(let t=0;t<n;++t)if(e.contextMap[t]!==t>>6){e.trivialLiteralContext=0;break}e.distContextMap=new Int8Array(e.numDistanceBlockTypes<<2);t=decodeContextMap(e.numDistanceBlockTypes<<2,e.distContextMap,e);if(t<0)return t;const r=t;e.literalTreeGroup=new Int32Array(huffmanTreeGroupAllocSize(256,s));t=decodeHuffmanTreeGroup(256,256,s,e,e.literalTreeGroup);if(t<0)return t;e.commandTreeGroup=new Int32Array(huffmanTreeGroupAllocSize(704,e.numCommandBlockTypes));t=decodeHuffmanTreeGroup(704,704,e.numCommandBlockTypes,e,e.commandTreeGroup);if(t<0)return t;let i=calculateDistanceAlphabetSize(e.distancePostfixBits,e.numDirectDistanceCodes,24),o=i;if(1===e.isLargeWindow){i=calculateDistanceAlphabetSize(e.distancePostfixBits,e.numDirectDistanceCodes,62);t=calculateDistanceAlphabetLimit(e,2147483644,e.distancePostfixBits,e.numDirectDistanceCodes);if(t<0)return t;o=t}e.distanceTreeGroup=new Int32Array(huffmanTreeGroupAllocSize(o,r));t=decodeHuffmanTreeGroup(i,o,r,e,e.distanceTreeGroup);if(t<0)return t;!function calculateDistanceLut(e,t){const a=e.distExtraBits,n=e.distOffset,s=e.distancePostfixBits,r=e.numDirectDistanceCodes,i=1<<s;let o=1,l=0,c=16;for(let e=0;e<r;++e){a[c]=0;n[c]=e+1;++c}for(;c<t;){const e=r+((2+l<<o)-4<<s)+1;for(let t=0;t<i;++t){a[c]=o;n[c]=e+t;++c}o+=l;l^=1}}(e,o);e.contextMapSlice=0;e.distContextMapSlice=0;e.contextLookupOffset1=512*e.contextModes[0];e.contextLookupOffset2=e.contextLookupOffset1+256;e.literalTreeIdx=0;e.commandTreeIdx=0;e.rings[4]=1;e.rings[5]=0;e.rings[6]=1;e.rings[7]=0;e.rings[8]=1;e.rings[9]=0;return 0}function copyUncompressedData(e){const t=e.ringBuffer;let a;if(e.metaBlockLength<=0){a=reload(e);if(a<0)return a;e.runningState=2;return 0}const n=Math.min(e.ringBufferSize-e.pos,e.metaBlockLength);a=function copyRawBytes(e,t,a,n){let s=a,r=n;if(7&e.bitOffset)return makeError(e,-30);for(;32!==e.bitOffset&&0!==r;){t[s++]=e.accumulator32>>>e.bitOffset;e.bitOffset+=8;r--}if(0===r)return 0;const i=Math.min(halfAvailable(e),r>>1);if(i>0){const a=e.halfOffset<<1,n=i<<1;t.set(e.byteBuffer.subarray(a,a+n),s);s+=n;r-=n;e.halfOffset+=i}if(0===r)return 0;if(halfAvailable(e)>0){if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}for(;0!==r;){t[s++]=e.accumulator32>>>e.bitOffset;e.bitOffset+=8;r--}return checkHealth(e,0)}for(;r>0;){const a=readInput(e,t,s,r);if(a<-1)return a;if(a<=0)return makeError(e,-16);s+=a;r-=a}return 0}(e,t,e.pos,n);if(a<0)return a;e.metaBlockLength-=n;e.pos+=n;if(e.pos===e.ringBufferSize){e.nextRunningState=6;e.runningState=12;return 0}a=reload(e);if(a<0)return a;e.runningState=2;return 0}function writeRingBuffer(e){const t=Math.min(e.outputLength-e.outputUsed,e.ringBufferBytesReady-e.ringBufferBytesWritten);if(0!==t){e.output.set(e.ringBuffer.subarray(e.ringBufferBytesWritten,e.ringBufferBytesWritten+t),e.outputOffset+e.outputUsed);e.outputUsed+=t;e.ringBufferBytesWritten+=t}return e.outputUsed<e.outputLength?0:2}function huffmanTreeGroupAllocSize(t,a){return a+a*e[t+31>>5]}function decodeHuffmanTreeGroup(e,t,a,n,s){let r=a;for(let i=0;i<a;++i){s[i]=r;const a=readHuffmanCode(e,t,s,i,n);if(a<0)return a;r+=a}return 0}function calculateFence(e){let t=e.ringBufferSize;0!==e.isEager&&(t=Math.min(t,e.ringBufferBytesWritten+e.outputLength-e.outputUsed));return t}function doUseDictionary(e,t){if(e.distance>2147483644)return makeError(e,-9);const a=e.distance-e.maxDistance-1-e.cdTotalSize;if(a<0){const t=function initializeCompoundDictionaryCopy(e,t,a){-1===e.cdBlockBits&&function initializeCompoundDictionary(e){e.cdBlockMap=new Int8Array(256);let t=8;for(;e.cdTotalSize-1>>t;)t++;t-=8;e.cdBlockBits=t;let a=0,n=0;for(;a<e.cdTotalSize;){for(;e.cdChunkOffsets[n+1]<a;)n++;e.cdBlockMap[a>>t]=n;a+=1<<t}}(e);let n=e.cdBlockMap[t>>e.cdBlockBits];for(;t>=e.cdChunkOffsets[n+1];)n++;if(e.cdTotalSize>t+a)return makeError(e,-9);e.distRbIdx=e.distRbIdx+1&3;e.rings[e.distRbIdx]=e.distance;e.metaBlockLength-=a;e.cdBrIndex=n;e.cdBrOffset=t-e.cdChunkOffsets[n];e.cdBrLength=a;e.cdBrCopied=0;return 0}(e,-a-1,e.copyLength);if(t<0)return t;e.runningState=14}else{const n=u,s=e.copyLength;if(s>31)return makeError(e,-9);const r=m[s];if(0===r)return makeError(e,-9);let i=d[s];const o=a>>r;i+=(a&(1<<r)-1)*s;const l=f;if(o>=l.numTransforms)return makeError(e,-9);const c=function transformDictionaryWord(e,t,a,n,s,r,i){let o=t;const l=r.triplets,c=r.prefixSuffixStorage,f=r.prefixSuffixHeads,h=3*i,u=l[h],d=l[h+1],m=l[h+2];let g=f[u];const b=f[u+1];let w=f[m];const j=f[m+1];let y=d-11,v=d;(y<1||y>9)&&(y=0);(v<1||v>9)&&(v=0);for(;g!==b;)e[o++]=c[g++];let k=s;y>k&&(y=k);let q=n+y;k-=y;k-=v;let S=k;for(;S>0;){e[o++]=a[q++];S--}if(10===d||11===d){let t=o-k;10===d&&(k=1);for(;k>0;){const a=255&e[t];if(a<192){a>=97&&a<=122&&(e[t]=32^e[t]);t+=1;k-=1}else if(a<224){e[t+1]=32^e[t+1];t+=2;k-=2}else{e[t+2]=5^e[t+2];t+=3;k-=3}}}else if(21===d||22===d){let t=o-k;const a=r.params[i];let n=16777216-(32768&a)+(32767&a);for(;k>0;){let a=1;const s=255&e[t];if(s<128){n+=s;e[t]=127&n}else if(s<192);else if(s<224)if(k>=2){const r=e[t+1];n+=63&r|(31&s)<<6;e[t]=192|n>>6&31;e[t+1]=192&r|63&n;a=2}else a=k;else if(s<240)if(k>=3){const r=e[t+1],i=e[t+2];n+=63&i|(63&r)<<6|(15&s)<<12;e[t]=224|n>>12&15;e[t+1]=192&r|n>>6&63;e[t+2]=192&i|63&n;a=3}else a=k;else if(s<248)if(k>=4){const r=e[t+1],i=e[t+2],o=e[t+3];n+=63&o|(63&i)<<6|(63&r)<<12|(7&s)<<18;e[t]=240|n>>18&7;e[t+1]=192&r|n>>12&63;e[t+2]=192&i|n>>6&63;e[t+3]=192&o|63&n;a=4}else a=k;t+=a;k-=a;21===d&&(k=0)}}for(;w!==j;)e[o++]=c[w++];return o-t}(e.ringBuffer,e.pos,n,i,s,l,o);e.pos+=c;e.metaBlockLength-=c;if(e.pos>=t){e.nextRunningState=4;e.runningState=12;return 0}e.runningState=4}return 0}function copyFromCompoundDictionary(e,t){let a=e.pos;const n=a;for(;e.cdBrLength!==e.cdBrCopied;){const n=t-a,s=e.cdChunkOffsets[e.cdBrIndex+1]-e.cdChunkOffsets[e.cdBrIndex]-e.cdBrOffset;let r=e.cdBrLength-e.cdBrCopied;r>s&&(r=s);r>n&&(r=n);e.ringBuffer.set(e.cdChunks[e.cdBrIndex].subarray(e.cdBrOffset,e.cdBrOffset+r),a);a+=r;e.cdBrOffset+=r;e.cdBrCopied+=r;if(r===s){e.cdBrIndex++;e.cdBrOffset=0}if(a>=t)break}return a-n}function decompress(e){let t;if(0===e.runningState)return makeError(e,-25);if(e.runningState<0)return makeError(e,-28);if(11===e.runningState)return makeError(e,-22);if(1===e.runningState){const t=function decodeWindowBits(e){const t=e.isLargeWindow;e.isLargeWindow=0;if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}if(0===readFewBits(e,1))return 16;let a=readFewBits(e,3);if(0!==a)return 17+a;a=readFewBits(e,3);if(0!==a){if(1===a){if(0===t)return-1;e.isLargeWindow=1;if(1===readFewBits(e,1))return-1;a=readFewBits(e,6);return a<10||a>30?-1:a}return 8+a}return 17}(e);if(-1===t)return makeError(e,-11);e.maxRingBufferSize=1<<t;e.maxBackwardDistance=e.maxRingBufferSize-16;e.runningState=2}let s=calculateFence(e),r=e.ringBufferSize-1,i=e.ringBuffer;for(;10!==e.runningState;)switch(e.runningState){case 2:if(e.metaBlockLength<0)return makeError(e,-10);t=readNextMetablockHeader(e);if(t<0)return t;s=calculateFence(e);r=e.ringBufferSize-1;i=e.ringBuffer;continue;case 3:t=readMetablockHuffmanCodesAndContextMaps(e);if(t<0)return t;e.runningState=4;continue;case 4:if(e.metaBlockLength<=0){e.runningState=2;continue}if(e.halfOffset>2030){t=readMoreInput(e);if(t<0)return t}0===e.commandBlockLength&&decodeCommandBlockSwitch(e);e.commandBlockLength--;if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}const o=readSymbol(e.commandTreeGroup,e.commandTreeIdx,e)<<2,l=c[o],f=c[o+1],u=c[o+2];e.distanceCode=c[o+3];if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}const d=255&l;e.insertLength=f+(d<=16?readFewBits(e,d):readManyBits(e,d));if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}const m=l>>8;e.copyLength=u+(m<=16?readFewBits(e,m):readManyBits(e,m));e.j=0;e.runningState=7;continue;case 7:if(0!==e.trivialLiteralContext)for(;e.j<e.insertLength;){if(e.halfOffset>2030){t=readMoreInput(e);if(t<0)return t}0===e.literalBlockLength&&decodeLiteralBlockSwitch(e);e.literalBlockLength--;if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}i[e.pos]=readSymbol(e.literalTreeGroup,e.literalTreeIdx,e);e.pos++;e.j++;if(e.pos>=s){e.nextRunningState=7;e.runningState=12;break}}else{let a=255&i[e.pos-1&r],n=255&i[e.pos-2&r];for(;e.j<e.insertLength;){if(e.halfOffset>2030){t=readMoreInput(e);if(t<0)return t}0===e.literalBlockLength&&decodeLiteralBlockSwitch(e);const r=h[e.contextLookupOffset1+a]|h[e.contextLookupOffset2+n],o=255&e.contextMap[e.contextMapSlice+r];e.literalBlockLength--;n=a;if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}a=readSymbol(e.literalTreeGroup,o,e);i[e.pos]=a;e.pos++;e.j++;if(e.pos>=s){e.nextRunningState=7;e.runningState=12;break}}}if(7!==e.runningState)continue;e.metaBlockLength-=e.insertLength;if(e.metaBlockLength<=0){e.runningState=4;continue}let g=e.distanceCode;if(g<0)e.distance=e.rings[e.distRbIdx];else{if(e.halfOffset>2030){t=readMoreInput(e);if(t<0)return t}0===e.distanceBlockLength&&decodeDistanceBlockSwitch(e);e.distanceBlockLength--;if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}const s=255&e.distContextMap[e.distContextMapSlice+g];g=readSymbol(e.distanceTreeGroup,s,e);if(g<16){const t=e.distRbIdx+a[g]&3;e.distance=e.rings[t]+n[g];if(e.distance<0)return makeError(e,-12)}else{const t=e.distExtraBits[g];let a;if(e.bitOffset+t<=32)a=readFewBits(e,t);else{if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}a=t<=16?readFewBits(e,t):readManyBits(e,t)}e.distance=e.distOffset[g]+(a<<e.distancePostfixBits)}}e.maxDistance!==e.maxBackwardDistance&&e.pos<e.maxBackwardDistance?e.maxDistance=e.pos:e.maxDistance=e.maxBackwardDistance;if(e.distance>e.maxDistance){e.runningState=9;continue}if(g>0){e.distRbIdx=e.distRbIdx+1&3;e.rings[e.distRbIdx]=e.distance}if(e.copyLength>e.metaBlockLength)return makeError(e,-9);e.j=0;e.runningState=8;continue;case 8:let b=e.pos-e.distance&r,w=e.pos;const j=e.copyLength-e.j,y=b+j,v=w+j;if(y<r&&v<r){if(j<12||y>w&&v>b){const e=j+3>>2;for(let t=0;t<e;++t){i[w++]=i[b++];i[w++]=i[b++];i[w++]=i[b++];i[w++]=i[b++]}}else i.copyWithin(w,b,y);e.j+=j;e.metaBlockLength-=j;e.pos+=j}else for(;e.j<e.copyLength;){i[e.pos]=i[e.pos-e.distance&r];e.metaBlockLength--;e.pos++;e.j++;if(e.pos>=s){e.nextRunningState=8;e.runningState=12;break}}8===e.runningState&&(e.runningState=4);continue;case 9:t=doUseDictionary(e,s);if(t<0)return t;continue;case 14:e.pos+=copyFromCompoundDictionary(e,s);if(e.pos>=s){e.nextRunningState=14;e.runningState=12;return 2}e.runningState=4;continue;case 5:for(;e.metaBlockLength>0;){if(e.halfOffset>2030){t=readMoreInput(e);if(t<0)return t}if(e.bitOffset>=16){e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16}readFewBits(e,8);e.metaBlockLength--}e.runningState=2;continue;case 6:t=copyUncompressedData(e);if(t<0)return t;continue;case 12:e.ringBufferBytesReady=Math.min(e.pos,e.ringBufferSize);e.runningState=13;continue;case 13:t=writeRingBuffer(e);if(0!==t)return t;e.pos>=e.maxBackwardDistance&&(e.maxDistance=e.maxBackwardDistance);if(e.pos>=e.ringBufferSize){e.pos>e.ringBufferSize&&i.copyWithin(0,e.ringBufferSize,e.pos);e.pos=e.pos&r;e.ringBufferBytesWritten=0}e.runningState=e.nextRunningState;continue;default:return makeError(e,-28)}if(10!==e.runningState)return makeError(e,-29);if(e.metaBlockLength<0)return makeError(e,-10);t=jumpToByteBoundary(e);if(0!==t)return t;t=checkHealth(e,1);return 0!==t?t:1}const f=new function Transforms(e,t,a){this.numTransforms=0;this.triplets=new Int32Array(0);this.prefixSuffixStorage=new Int8Array(0);this.prefixSuffixHeads=new Int32Array(0);this.params=new Int16Array(0);this.numTransforms=e;this.triplets=new Int32Array(3*e);this.params=new Int16Array(e);this.prefixSuffixStorage=new Int8Array(t);this.prefixSuffixHeads=new Int32Array(a+1)}(121,167,50);!function unpackTransforms(e,t,a,n,s){const r=toUtf8Runes(n),i=r.length;let o=1,l=0;for(let a=0;a<i;++a){const n=r[a];35===n?t[o++]=l:e[l++]=n}for(let e=0;e<363;++e)a[e]=s.charCodeAt(e)-32}(f.prefixSuffixStorage,f.prefixSuffixHeads,f.triplets,'# #s #, #e #.# the #.com/#Â # of # and # in # to #"#">#\n#]# for # a # that #. # with #\'# from # by #. The # on # as # is #ing #\n\t#:#ed #(# at #ly #="# of the #. This #,# not #er #al #=\'#ful #ive #less #est #ize #ous #'," !! ! , *! &! \" ! ) * * - ! # ! #!*! + ,$ ! - % . / # 0 1 . \" 2 3!* 4% ! # / 5 6 7 8 0 1 & $ 9 + : ; < ' != > ?! 4 @ 4 2 & A *# ( B C& ) % ) !*# *-% A +! *. D! %' & E *6 F G% ! *A *% H! D I!+! J!+ K +- *4! A L!*4 M N +6 O!*% +.! K *G P +%( ! G *D +D Q +# *K!*G!+D!+# +G +A +4!+% +K!+4!*D!+K!*K");function getNextKey(e,t){let a=1<<t-1;for(;0!==(e&a);)a>>=1;return(e&a-1)+a}function replicateValue(e,t,a,n,s){let r=n;for(;r>0;){r-=a;e[t+r]=s}}function nextTableBitSize(e,t,a){let n=t,s=1<<n-a;for(;n<15;){s-=e[n];if(s<=0)break;n++;s<<=1}return n-a}function buildHuffmanTable(e,t,a,n,s){const r=e[t],i=new Int32Array(s),o=new Int32Array(16),l=new Int32Array(16);for(let e=0;e<s;++e)o[n[e]]++;l[1]=0;for(let e=1;e<15;++e)l[e+1]=l[e]+o[e];for(let e=0;e<s;++e)0!==n[e]&&(i[l[n[e]]++]=e);let c=a,f=1<<c,h=f;if(1===l[15]){for(let t=0;t<h;++t)e[r+t]=i[0];return h}let u=0,d=0,m=1;for(let t=1;t<=a;++t){m<<=1;for(;o[t]>0;){replicateValue(e,r+u,m,f,t<<16|i[d++]);u=getNextKey(u,t);o[t]--}}const g=h-1;let b=-1,w=r;m=1;for(let t=a+1;t<=15;++t){m<<=1;for(;o[t]>0;){if((u&g)!==b){w+=f;c=nextTableBitSize(o,t,a);f=1<<c;h+=f;b=u&g;e[r+b]=c+a<<16|w-r-b}replicateValue(e,w+(u>>a),m,f,t-a<<16|i[d++]);u=getNextKey(u,t);o[t]--}}return h}function readMoreInput(e){if(0!==e.endOfStreamReached)return halfAvailable(e)>=-2?0:makeError(e,-16);const t=e.halfOffset<<1;let a=4096-t;e.byteBuffer.copyWithin(0,t,4096);e.halfOffset=0;for(;a<4096;){const t=4096-a,n=readInput(e,e.byteBuffer,a,t);if(n<-1)return n;if(n<=0){e.endOfStreamReached=1;e.tailBytes=a;a+=1;break}a+=n}!function bytesToNibbles(e,t){const a=e.byteBuffer,n=t>>1,s=e.shortBuffer;for(let e=0;e<n;++e)s[e]=255&a[2*e]|(255&a[2*e+1])<<8}(e,a);return 0}function checkHealth(e,t){if(0===e.endOfStreamReached)return 0;const a=(e.halfOffset<<1)+(e.bitOffset+7>>3)-4;return a>e.tailBytes?makeError(e,-13):0!==t&&a!==e.tailBytes?makeError(e,-17):0}function readFewBits(e,t){const a=e.accumulator32>>>e.bitOffset&(1<<t)-1;e.bitOffset+=t;return a}function readManyBits(e,t){const a=readFewBits(e,16);e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16;return a|readFewBits(e,t-16)<<16}function prepare(e){if(e.halfOffset>2030){const t=readMoreInput(e);if(0!==t)return t}let t=checkHealth(e,0);if(0!==t)return t;e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16;e.accumulator32=e.shortBuffer[e.halfOffset++]<<16|e.accumulator32>>>16;e.bitOffset-=16;return 0}function reload(e){return 32===e.bitOffset?prepare(e):0}function jumpToByteBoundary(e){const t=32-e.bitOffset&7;if(0!==t){if(0!==readFewBits(e,t))return makeError(e,-5)}return 0}function halfAvailable(e){let t=2048;0!==e.endOfStreamReached&&(t=e.tailBytes+1>>1);return t-e.halfOffset}const h=new Int32Array(2048);!function unpackLookupTable(e,t,a){for(let t=0;t<256;++t){e[t]=63&t;e[512+t]=t>>2;e[1792+t]=2+(t>>6)}for(let a=0;a<128;++a)e[1024+a]=4*(t.charCodeAt(a)-32);for(let t=0;t<64;++t){e[1152+t]=1&t;e[1216+t]=2+(1&t)}let n=1280;for(let t=0;t<19;++t){const s=3&t,r=a.charCodeAt(t)-32;for(let t=0;t<r;++t)e[n++]=s}for(let t=0;t<16;++t){e[1792+t]=1;e[2032+t]=6}e[1792]=0;e[2047]=7;for(let t=0;t<256;++t)e[1536+t]=e[1792+t]<<3}(h," !! ! \"#$##%#$&'##(#)#++++++++++((&*'##,---,---,-----,-----,-----&#'###.///.///./////./////./////&#'# ","A/* ': & : $ @");function State(){this.ringBuffer=new Int8Array(0);this.contextModes=new Int8Array(0);this.contextMap=new Int8Array(0);this.distContextMap=new Int8Array(0);this.distExtraBits=new Int8Array(0);this.output=new Int8Array(0);this.byteBuffer=new Int8Array(0);this.shortBuffer=new Int16Array(0);this.intBuffer=new Int32Array(0);this.rings=new Int32Array(0);this.blockTrees=new Int32Array(0);this.literalTreeGroup=new Int32Array(0);this.commandTreeGroup=new Int32Array(0);this.distanceTreeGroup=new Int32Array(0);this.distOffset=new Int32Array(0);this.accumulator64=0;this.runningState=0;this.nextRunningState=0;this.accumulator32=0;this.bitOffset=0;this.halfOffset=0;this.tailBytes=0;this.endOfStreamReached=0;this.metaBlockLength=0;this.inputEnd=0;this.isUncompressed=0;this.isMetadata=0;this.literalBlockLength=0;this.numLiteralBlockTypes=0;this.commandBlockLength=0;this.numCommandBlockTypes=0;this.distanceBlockLength=0;this.numDistanceBlockTypes=0;this.pos=0;this.maxDistance=0;this.distRbIdx=0;this.trivialLiteralContext=0;this.literalTreeIdx=0;this.commandTreeIdx=0;this.j=0;this.insertLength=0;this.contextMapSlice=0;this.distContextMapSlice=0;this.contextLookupOffset1=0;this.contextLookupOffset2=0;this.distanceCode=0;this.numDirectDistanceCodes=0;this.distancePostfixBits=0;this.distance=0;this.copyLength=0;this.maxBackwardDistance=0;this.maxRingBufferSize=0;this.ringBufferSize=0;this.expectedTotalSize=0;this.outputOffset=0;this.outputLength=0;this.outputUsed=0;this.ringBufferBytesWritten=0;this.ringBufferBytesReady=0;this.isEager=0;this.isLargeWindow=0;this.cdNumChunks=0;this.cdTotalSize=0;this.cdBrIndex=0;this.cdBrOffset=0;this.cdBrLength=0;this.cdBrCopied=0;this.cdChunks=new Array(0);this.cdChunkOffsets=new Int32Array(0);this.cdBlockBits=0;this.cdBlockMap=new Int8Array(0);this.input=new InputStream(new Int8Array(0));this.ringBuffer=new Int8Array(0);this.rings=new Int32Array(10);this.rings[0]=16;this.rings[1]=15;this.rings[2]=11;this.rings[3]=4}let u=new Int8Array(0);const d=new Int32Array(32),m=new Int32Array(32);const g=new Int8Array(122784),b=new Int32Array(25);!function unpackDictionaryData(e,t,a,n,s,r){const i=function toUsAsciiBytes(e){const t=e.length,a=new Int8Array(t);for(let n=0;n<t;++n)a[n]=e.charCodeAt(n);return a}(t+a),o=toUtf8Runes(n);let l=0;const c=o.length>>1;for(let e=0;e<c;++e){const t=o[2*e]-36,a=o[2*e+1]-36;for(let e=0;e<t;++e){i[l]=3^i[l];l++}for(let e=0;e<a;++e){i[l]=236^i[l];l++}}for(let e=0;e<r.length;++e)s[e]=r.charCodeAt(e)-65;e.set(i)}(g,'wjnfgltmojefofewab`h`lgfgbwbpkltlmozpjwf`jwzlsfmivpwojhfeqfftlqhwf{wzfbqlufqalgzolufelqnallhsobzojufojmfkfosklnfpjgfnlqftlqgolmdwkfnujftejmgsbdfgbzpevookfbgwfqnfb`kbqfbeqlnwqvfnbqhbaofvslmkjdkgbwfobmgmftpfufmmf{w`bpfalwkslpwvpfgnbgfkbmgkfqftkbwmbnfOjmhaoldpjyfabpfkfognbhfnbjmvpfq$*#(klogfmgptjwkMftpqfbgtfqfpjdmwbhfkbufdbnfpffm`boosbwktfoosovpnfmvejonsbqwiljmwkjpojpwdllgmffgtbzptfpwilapnjmgboploldlqj`kvpfpobpwwfbnbqnzellghjmdtjoofbpwtbqgafpwejqfSbdfhmltbtbz-smdnlufwkbmolbgdjufpfoemlwfnv`keffgnbmzql`hj`lmlm`follhkjgfgjfgKlnfqvofklpwbib{jmel`ovaobtpofppkboeplnfpv`kylmf233&lmfp`bqfWjnfqb`faovfelvqtffheb`fklsfdbufkbqgolpwtkfmsbqhhfswsbpppkjsqllnKWNOsobmWzsfglmfpbufhffseobdojmhplogejufwllhqbwfwltmivnswkvpgbqh`bqgejofefbqpwbzhjoowkbweboobvwlfufq-`lnwbohpklsulwfgffsnlgfqfpwwvqmalqmabmgefooqlpfvqo+phjmqlof`lnfb`wpbdfpnffwdlog-isdjwfnubqzefowwkfmpfmggqlsUjft`lsz2-3!?,b=pwlsfopfojfpwlvqsb`h-djesbpw`pp<dqbznfbm%dw8qjgfpklwobwfpbjgqlbgubq#effoilkmqj`hslqwebpw$VB.gfbg?,a=sllqajoowzsfV-P-tllgnvpw1s{8JmelqbmhtjgftbmwtbooofbgX3^8sbvotbufpvqf\'+$ tbjwnbppbqnpdlfpdbjmobmdsbjg"..#ol`hvmjwqllwtbohejqntjef{no!plmdwfpw13s{hjmgqltpwlloelmwnbjopbefpwbqnbsp`lqfqbjmeoltabazpsbmpbzp7s{85s{8bqwpellwqfbotjhjkfbwpwfswqjslqd,obhftfbhwlogElqn`bpwebmpabmhufqzqvmpivozwbph2s{8dlbodqftpoltfgdfjg>!pfwp6s{8-ip<73s{je#+pllmpfbwmlmfwvafyfqlpfmwqffgeb`wjmwldjewkbqn2;s{`bnfkjooalogyllnuljgfbpzqjmdejoosfbhjmjw`lpw0s{8ib`hwbdpajwpqloofgjwhmftmfbq?"..dqltIPLMgvwzMbnfpbofzlv#olwpsbjmibyy`logfzfpejpkttt-qjphwbapsqfu23s{qjpf16s{Aovfgjmd033/abooelqgfbqmtjogal{-ebjqob`hufqpsbjqivmfwf`kje+"sj`hfujo\'+! tbqnolqgglfpsvoo/333jgfbgqbtkvdfpslwevmgavqmkqfe`foohfzpwj`hklvqolppevfo21s{pvjwgfboQPP!bdfgdqfzDFW!fbpfbjnpdjqobjgp;s{8mbuzdqjgwjsp :::tbqpobgz`bqp*8#~sks<kfoowbootklnyk9\t),\t#233kboo-\t\tB4s{8svpk`kbw3s{8`qft),?,kbpk46s{eobwqbqf#%%#wfoo`bnslmwlobjgnjppphjswfmwejmfnbofdfwpsolw733/\t\t`lloeffw-sks?aq=fqj`nlpwdvjgafoogfp`kbjqnbwkbwln,jnd% ;1ov`h`fmw3338wjmzdlmfkwnopfoogqvdEQFFmlgfmj`h<jg>olpfmvooubpwtjmgQPP#tfbqqfozaffmpbnfgvhfmbpb`bsftjpkdvoeW109kjwppolwdbwfhj`haovqwkfz26s{$$*8*8!=npjftjmpajqgplqwafwbpffhW2;9lqgpwqffnboo53s{ebqnlupalzpX3^-$*8!SLPWafbqhjgp*8~~nbqzwfmg+VH*rvbgyk9\n.pjy....sqls$*8ojewW2:9uj`fbmgzgfaw=QPPsllomf`haoltW259gllqfuboW249ofwpebjolqbosloomlub`lopdfmf#lxplewqlnfwjooqlpp?k0=slvqebgfsjmh?wq=njmj*"+njmfyk9abqpkfbq33*8njoh#..=jqlmeqfggjphtfmwpljosvwp,ip,klozW119JPAMW139bgbnpffp?k1=iplm$/#$`lmwW129#QPPollsbpjbnllm?,s=plvoOJMFelqw`bqwW279?k2=;3s{"..?:s{8W379njhf975Ymj`fjm`kZlqhqj`fyk9\b$**8svqfnbdfsbqbwlmfalmg904Y\\le\\$^*8333/yk9\vwbmhzbqgaltoavpk965YIbub03s{\t~\t&@0&907YifeeF[SJ`bpkujpbdloepmltyk9rvfq-`pppj`hnfbwnjm-ajmggfookjqfsj`pqfmw905YKWWS.132elwltloeFMG#{al{967YALGZgj`h8\t~\tf{jw906Yubqpafbw$~*8gjfw:::8bmmf~~?,Xj^-Obmdhn.^tjqfwlzpbggppfbobof{8\t\n~f`klmjmf-lqd336*wlmziftppbmgofdpqlle333*#133tjmfdfbqgldpallwdbqz`vwpwzofwfnswjlm-{no`l`hdbmd\'+$-63s{Sk-Gnjp`bobmolbmgfphnjofqzbmvmj{gjp`*8~\tgvpw`ojs*-\t\t43s{.133GUGp4^=?wbsfgfnlj((*tbdffvqlskjolswpklofEBRpbpjm.15WobapsfwpVQO#avoh`llh8~\tKFBGX3^*baaqivbm+2:;ofpkwtjm?,j=plmzdvzpev`hsjsf.\t"331*mgltX2^8X^8\tOld#pbow\t\n\nabmdwqjnabwk*x\t33s{\t~*8hl9\0effpbg=p9,,#X^8wloosovd+*x\tx\t#-ip$133sgvboalbw-ISD*8\t~rvlw*8\t\t$*8\t\t~1327132613251324132;132:13131312131113101317131613151314131;131:130313021301130013071306130513041320132113221323133:133;133413351336133713301331133213332:::2::;2::42::52::62::72::02::12::22::32:;:2:;;2:;42:;52:;62:;72:;02:;12:;22:;32:4:2:4;2:442:452:462:472:402:412:422:432:5:2:5;2:542:552:562:572:502:512:522:532:6:2:6;2:642:652:662:672:602:612:622:632333231720:73333::::`lnln/Mpfpwffpwbsfqlwlglkb`f`bgbb/]lajfmg/Abbp/Aujgb`bpllwqlelqlplollwqb`vbogjilpjgldqbmwjslwfnbgfafbodlrv/Efpwlmbgbwqfpsl`l`bpbabilwlgbpjmlbdvbsvfpvmlpbmwfgj`fovjpfoobnbzlylmbbnlqsjpllaqb`oj`foolgjlpklqb`bpj<[<\\<Q<\\<R<P=l<\\=l=o=n<\\<Q<Y<S<R<R=n<T<[<Q<R<X<R=n<R<Z<Y<R<Q<T=i<q<\\<Y<Y<]=g<P=g<~=g=m<R<^=g<^<R<q<R<R<]<s<R<W<T<Q<T<L<H<q<Y<p=g=n=g<r<Q<T<P<X<\\<{<\\<x<\\<q=o<r<]=n<Y<t<[<Y<U<Q=o<P<P<N=g=o<Z5m5f4O5j5i4K5i4U5o5h4O5d4]4C5f4K5m5e5k5d5h5i5h5o4K5d5h5k4D4_4K5h4I5j5k5f4O5f5n4C5k5h4G5i4D5k5h5d5h5f4D5h4K5f4D5o4X5f4K5i4O5i5j4F4D5f5h5j4A4D5k5i5i4X5d4Xejqpwujgflojdkwtlqognfgjbtkjwf`olpfaob`hqjdkwpnbooallhpsob`fnvpj`ejfoglqgfqsljmwubovfofufowbaofalbqgklvpfdqlvstlqhpzfbqppwbwfwlgbztbwfqpwbqwpwzofgfbwksltfqsklmfmjdkwfqqlqjmsvwbalvwwfqnpwjwofwllopfufmwol`bowjnfpobqdftlqgpdbnfppklqwpsb`fel`vp`ofbqnlgfoaol`hdvjgfqbgjlpkbqftlnfmbdbjmnlmfzjnbdfmbnfpzlvmdojmfpobwfq`lolqdqffmeqlmw%bns8tbw`kelq`fsqj`fqvofpafdjmbewfqujpjwjppvfbqfbpafoltjmgf{wlwboklvqpobafosqjmwsqfppavjowojmhppsffgpwvgzwqbgfelvmgpfmpfvmgfqpkltmelqnpqbmdfbggfgpwjoonlufgwbhfmbalufeobpkej{fglewfmlwkfqujftp`kf`hofdboqjufqjwfnprvj`hpkbsfkvnbmf{jpwdljmdnlujfwkjqgabpj`sfb`fpwbdftjgwkoldjmjgfbptqlwfsbdfpvpfqpgqjufpwlqfaqfbhplvwkulj`fpjwfpnlmwktkfqfavjogtkj`kfbqwkelqvnwkqffpslqwsbqwz@oj`holtfqojufp`obppobzfqfmwqzpwlqzvpbdfplvmg`lvqwzlvq#ajqwkslsvswzsfpbssozJnbdfafjmdvssfqmlwfpfufqzpkltpnfbmpf{wqbnbw`kwqb`hhmltmfbqozafdbmpvsfqsbsfqmlqwkofbqmdjufmmbnfgfmgfgWfqnpsbqwpDqlvsaqbmgvpjmdtlnbmebopfqfbgzbvgjlwbhfptkjof-`ln,ojufg`bpfpgbjoz`kjogdqfbwivgdfwklpfvmjwpmfufqaqlbg`lbpw`lufqbssofejofp`z`ofp`fmfsobmp`oj`htqjwfrvffmsjf`ffnbjoeqbnflogfqsklwlojnjw`b`kf`jujop`boffmwfqwkfnfwkfqfwlv`kalvmgqlzbobphfgtklofpjm`fpwl`h#mbnfebjwkkfbqwfnswzleefqp`lsfltmfgnjdkwboavnwkjmhaollgbqqbznbilqwqvpw`bmlmvmjlm`lvmwubojgpwlmfPwzofOldjmkbsszl``vqofew9eqfpkrvjwfejonpdqbgfmffgpvqabmejdkwabpjpklufqbvwl8qlvwf-kwnonj{fgejmboZlvq#pojgfwlsj`aqltmbolmfgqbtmpsojwqfb`kQjdkwgbwfpnbq`krvlwfdllgpOjmhpglvawbpzm`wkvnaboolt`kjfezlvwkmlufo23s{8pfqufvmwjokbmgp@kf`hPsb`frvfqzibnfpfrvbowtj`f3/333Pwbqwsbmfoplmdpqlvmgfjdkwpkjewtlqwkslpwpofbgptffhpbuljgwkfpfnjofpsobmfpnbqwboskbsobmwnbqhpqbwfpsobzp`objnpbofpwf{wppwbqptqlmd?,k0=wkjmd-lqd,nvowjkfbqgSltfqpwbmgwlhfmplojg+wkjpaqjmdpkjsppwbeewqjfg`boopevoozeb`wpbdfmwWkjp#,,..=bgnjmfdzswFufmw26s{8Fnbjowqvf!`qlpppsfmwaoldpal{!=mlwfgofbuf`kjmbpjyfpdvfpw?,k7=qlalwkfbuzwqvf/pfufmdqbmg`qjnfpjdmpbtbqfgbm`fskbpf=?"..fm\\VP% 0:8133s{\\mbnfobwjmfmilzbib{-bwjlmpnjwkV-P-#klogpsfwfqjmgjbmbu!=`kbjmp`lqf`lnfpgljmdsqjlqPkbqf2::3pqlnbmojpwpibsbmeboopwqjboltmfqbdqff?,k1=bavpfbofqwlsfqb!.,,T`bqgpkjoopwfbnpSklwlwqvwk`ofbm-sks<pbjmwnfwboolvjpnfbmwsqlleaqjfeqlt!=dfmqfwqv`hollhpUbovfEqbnf-mfw,..=\t?wqz#x\tubq#nbhfp`lpwpsobjmbgvowrvfpwwqbjmobalqkfosp`bvpfnbdj`nlwlqwkfjq163s{ofbpwpwfsp@lvmw`lvogdobpppjgfpevmgpklwfobtbqgnlvwknlufpsbqjpdjufpgvw`kwf{bpeqvjwmvoo/X^8wls!=\t?"..SLPW!l`fbm?aq,=eollqpsfbhgfswk#pjyfabmhp`bw`k`kbqw13s{8bojdmgfboptlvog63s{8vqo>!sbqhpnlvpfNlpw#---?,bnlmdaqbjmalgz#mlmf8abpfg`bqqzgqbewqfefqsbdf\\klnf-nfwfqgfobzgqfbnsqlufiljmw?,wq=gqvdp?"..#bsqjojgfboboofmf{b`welqwk`lgfpoldj`Ujft#pffnpaobmhslqwp#+133pbufg\\ojmhdlbopdqbmwdqffhklnfpqjmdpqbwfg03s{8tklpfsbqpf+*8!#Aol`hojmv{ilmfpsj{fo$*8!=*8je+.ofewgbujgklqpfEl`vpqbjpfal{fpWqb`hfnfmw?,fn=abq!=-pq`>wltfqbow>!`baofkfmqz17s{8pfwvsjwbozpkbqsnjmlqwbpwftbmwpwkjp-qfpfwtkffodjqop,`pp,233&8`ovappwveeajaofulwfp#2333hlqfb~*8\tabmgprvfvf>#x~8;3s{8`hjmdx\t\n\nbkfbg`ol`hjqjpkojhf#qbwjlpwbwpElqn!zbkll*X3^8Balvwejmgp?,k2=gfavdwbphpVQO#>`foop~*+*821s{8sqjnfwfoopwvqmp3{533-isd!psbjmafb`kwb{fpnj`qlbmdfo..=?,djewppwfuf.ojmhalgz-~*8\t\nnlvmw#+2::EBR?,qldfqeqbmh@obpp1;s{8effgp?k2=?p`lwwwfpwp11s{8gqjmh*##oftjppkboo 30:8#elq#olufgtbpwf33s{8ib9npjnlm?elmwqfsoznffwpvmwfq`kfbswjdkwAqbmg*#">#gqfpp`ojspqllnplmhfznlajonbjm-Mbnf#sobwfevmmzwqffp`ln,!2-isdtnlgfsbqbnPWBQWofew#jggfm/#132*8\t~\telqn-ujqvp`kbjqwqbmptlqpwSbdfpjwjlmsbw`k?"..\tl.`b`ejqnpwlvqp/333#bpjbmj((*xbglaf$*X3^jg>23alwk8nfmv#-1-nj-smd!hfujm`lb`k@kjogaqv`f1-isdVQO*(-isdpvjwfpoj`fkbqqz213!#ptffwwq=\tmbnf>gjfdlsbdf#ptjpp..=\t\t eee8!=Old-`ln!wqfbwpkffw*#%%#27s{8poffsmwfmwejofgib9ojg>!`Mbnf!tlqpfpklwp.al{.gfowb\t%ow8afbqp97;Y?gbwb.qvqbo?,b=#psfmgabhfqpklsp>#!!8sks!=`wjlm20s{8aqjbmkfoolpjyf>l>&1E#iljmnbzaf?jnd#jnd!=/#eipjnd!#!*X3^NWlsAWzsf!mftozGbmph`yf`kwqbjohmltp?,k6=ebr!=yk.`m23*8\t.2!*8wzsf>aovfpwqvozgbujp-ip$8=\t?"pwffo#zlv#k1=\telqn#ifpvp233&#nfmv-\t\n\ttbofpqjphpvnfmwggjmda.ojhwfb`kdje!#ufdbpgbmphffpwjpkrjspvlnjplaqfgfpgffmwqfwlglpsvfgfb/]lpfpw/Mwjfmfkbpwblwqlpsbqwfglmgfmvfulkb`fqelqnbnjpnlnfilqnvmglbrv/Ag/Abpp/_olbzvgbef`kbwlgbpwbmwlnfmlpgbwlplwqbppjwjlnv`klbklqbovdbqnbzlqfpwlpklqbpwfmfqbmwfpelwlpfpwbpsb/Apmvfubpbovgelqlpnfgjlrvjfmnfpfpslgfq`kjofpfq/Muf`fpgf`jqilp/Efpwbqufmwbdqvslkf`klfoolpwfmdlbnjdl`lpbpmjufodfmwfnjpnbbjqfpivojlwfnbpkb`jbebulqivmjlojaqfsvmwlavfmlbvwlqbaqjoavfmbwf{wlnbqylpbafqojpwbovfdl`/_nlfmfqlivfdlsfq/Vkbafqfpwlzmvm`bnvifqubolqevfqbojaqldvpwbjdvboulwlp`bplpdv/Absvfglplnlpbujplvpwfggfafmml`kfavp`bebowbfvqlppfqjfgj`kl`vqpl`obuf`bpbpof/_msobylobqdllaqbpujpwbbslzlivmwlwqbwbujpwl`qfbq`bnslkfnlp`jm`l`bqdlsjplplqgfmkb`fm/Mqfbgjp`lsfgql`fq`bsvfgbsbsfonfmlq/Vwjo`obqlilqdf`boofslmfqwbqgfmbgjfnbq`bpjdvffoobppjdol`l`kfnlwlpnbgqf`obpfqfpwlmj/]lrvfgbsbpbqabm`lkjilpujbifsbaol/Epwfujfmfqfjmlgfibqelmgl`bmbomlqwfofwqb`bvpbwlnbqnbmlpovmfpbvwlpujoobufmglsfpbqwjslpwfmdbnbq`loofubsbgqfvmjglubnlpylmbpbnalpabmgbnbqjbbavplnv`kbpvajqqjlibujujqdqbgl`kj`bboo/Ailufmgj`kbfpwbmwbofppbojqpvfolsfplpejmfpoobnbavp`l/Epwboofdbmfdqlsobybkvnlqsbdbqivmwbglaofjpobpalopbab/]lkbaobov`kb/mqfbgj`fmivdbqmlwbpuboofboo/M`bqdbglolqbabilfpw/Edvpwlnfmwfnbqjlejqnb`lpwlej`kbsobwbkldbqbqwfpofzfpbrvfonvpflabpfpsl`lpnjwbg`jfol`kj`lnjfgldbmbqpbmwlfwbsbgfafpsobzbqfgfppjfwf`lqwf`lqfbgvgbpgfpflujfilgfpfbbdvbp%rvlw8glnbjm`lnnlmpwbwvpfufmwpnbpwfqpzpwfnb`wjlmabmmfqqfnlufp`qloovsgbwfdolabonfgjvnejowfqmvnafq`kbmdfqfpvowsvaoj`p`qffm`kllpfmlqnbowqbufojppvfpplvq`fwbqdfwpsqjmdnlgvofnlajofptjw`ksklwlpalqgfqqfdjlmjwpfoepl`jbob`wjuf`lovnmqf`lqgelooltwjwof=fjwkfqofmdwkebnjozeqjfmgobzlvwbvwklq`qfbwfqfujftpvnnfqpfqufqsobzfgsobzfqf{sbmgsloj`zelqnbwglvaofsljmwppfqjfpsfqplmojujmdgfpjdmnlmwkpelq`fpvmjrvftfjdkwsflsoffmfqdzmbwvqfpfbq`kejdvqfkbujmd`vpwlnleepfwofwwfqtjmgltpvanjwqfmgfqdqlvspvsolbgkfbowknfwklgujgflpp`klloevwvqfpkbgltgfabwfubovfpLaif`wlwkfqpqjdkwpofbdvf`kqlnfpjnsofmlwj`fpkbqfgfmgjmdpfbplmqfslqwlmojmfprvbqfavwwlmjnbdfpfmbaofnlujmdobwfpwtjmwfqEqbm`fsfqjlgpwqlmdqfsfbwOlmglmgfwbjoelqnfggfnbmgpf`vqfsbppfgwlddofsob`fpgfuj`fpwbwj``jwjfppwqfbnzfooltbwwb`hpwqffweojdkwkjggfmjmel!=lsfmfgvpfevouboofz`bvpfpofbgfqpf`qfwpf`lmggbnbdfpslqwpf{`fswqbwjmdpjdmfgwkjmdpfeef`wejfogppwbwfpleej`fujpvbofgjwlqulovnfQfslqwnvpfvnnlujfpsbqfmwb``fppnlpwoznlwkfq!#jg>!nbqhfwdqlvmg`kbm`fpvqufzafelqfpznalonlnfmwpsff`knlwjlmjmpjgfnbwwfq@fmwfqlaif`wf{jpwpnjggofFvqlsfdqltwkofdb`znbmmfqfmlvdk`bqffqbmptfqlqjdjmslqwbo`ojfmwpfof`wqbmgln`olpfgwlsj`p`lnjmdebwkfqlswjlmpjnsozqbjpfgfp`bsf`klpfm`kvq`kgfejmfqfbplm`lqmfqlvwsvwnfnlqzjeqbnfsloj`fnlgfopMvnafqgvqjmdleefqppwzofphjoofgojpwfg`boofgpjoufqnbqdjmgfofwfafwwfqaqltpfojnjwpDolabopjmdoftjgdfw`fmwfqavgdfwmltqbs`qfgjw`objnpfmdjmfpbefwz`klj`fpsjqjw.pwzofpsqfbgnbhjmdmffgfgqvppjbsofbpff{wfmwP`qjswaqlhfmbooltp`kbqdfgjujgfeb`wlqnfnafq.abpfgwkflqz`lmejdbqlvmgtlqhfgkfosfg@kvq`kjnsb`wpklvogbotbzpoldl!#alwwlnojpw!=*xubq#sqfej{lqbmdfKfbgfq-svpk+`lvsofdbqgfmaqjgdfobvm`kQfujftwbhjmdujpjlmojwwofgbwjmdAvwwlmafbvwzwkfnfpelqdlwPfbq`kbm`klqbonlpwolbgfg@kbmdfqfwvqmpwqjmdqfolbgNlajofjm`lnfpvssozPlvq`flqgfqpujftfg%maps8`lvqpfBalvw#jpobmg?kwno#`llhjfmbnf>!bnbylmnlgfqmbguj`fjm?,b=9#Wkf#gjboldklvpfpAFDJM#Nf{j`lpwbqwp`fmwqfkfjdkwbggjmdJpobmgbppfwpFnsjqfP`kllofeelqwgjqf`wmfbqoznbmvboPfof`w-\t\tLmfiljmfgnfmv!=SkjojsbtbqgpkbmgofjnslqwLeej`fqfdbqgphjoopmbwjlmPslqwpgfdqfftffhoz#+f-d-afkjmggl`wlqolddfgvmjwfg?,a=?,afdjmpsobmwpbppjpwbqwjpwjppvfg033s{`bmbgbbdfm`zp`kfnfqfnbjmAqbyjopbnsofoldl!=afzlmg.p`bofb``fswpfqufgnbqjmfEllwfq`bnfqb?,k2=\t\\elqn!ofbufppwqfpp!#,=\t-dje!#lmolbgolbgfqL{elqgpjpwfqpvqujuojpwfmefnbofGfpjdmpjyf>!bssfbowf{w!=ofufopwkbmhpkjdkfqelq`fgbmjnbobmzlmfBeqj`bbdqffgqf`fmwSflsof?aq#,=tlmgfqsqj`fpwvqmfg#x~8nbjm!=jmojmfpvmgbztqbs!=ebjofg`fmpvpnjmvwfafb`lmrvlwfp263s{fpwbwfqfnlwffnbjo!ojmhfgqjdkw8pjdmboelqnbo2-kwnopjdmvssqjm`feolbw9-smd!#elqvn-B``fppsbsfqpplvmgpf{wfmgKfjdkwpojgfqVWE.;!%bns8#Afelqf-#TjwkpwvgjlltmfqpnbmbdfsqlejwiRvfqzbmmvbosbqbnpalvdkwebnlvpdlldofolmdfqj((*#xjpqbfopbzjmdgf`jgfklnf!=kfbgfqfmpvqfaqbm`ksjf`fpaol`h8pwbwfgwls!=?qb`jmdqfpjyf..%dw8sb`jwzpf{vboavqfbv-isd!#23/333lawbjmwjwofpbnlvmw/#Jm`-`lnfgznfmv!#ozqj`pwlgbz-jmgffg`lvmwz\\oldl-EbnjozollhfgNbqhfwopf#jeSobzfqwvqhfz*8ubq#elqfpwdjujmdfqqlqpGlnbjm~fopfxjmpfqwAold?,ellwfqoldjm-ebpwfqbdfmwp?algz#23s{#3sqbdnbeqjgbzivmjlqgloobqsob`fg`lufqpsovdjm6/333#sbdf!=alpwlm-wfpw+bubwbqwfpwfg\\`lvmwelqvnpp`kfnbjmgf{/ejoofgpkbqfpqfbgfqbofqw+bssfbqPvanjwojmf!=algz!=\t)#WkfWklvdkpffjmdifqpfzMftp?,ufqjezf{sfqwjmivqztjgwk>@llhjfPWBQW#b`qlpp\\jnbdfwkqfbgmbwjufsl`hfwal{!=\tPzpwfn#Gbujg`bm`fqwbaofpsqlufgBsqjo#qfboozgqjufqjwfn!=nlqf!=albqgp`lolqp`bnsvpejqpw##X^8nfgjb-dvjwbqejmjpktjgwk9pkltfgLwkfq#-sks!#bppvnfobzfqptjoplmpwlqfpqfojfeptfgfm@vpwlnfbpjoz#zlvq#Pwqjmd\t\tTkjowbzolq`ofbq9qfplqweqfm`kwklvdk!*#(#!?algz=avzjmdaqbmgpNfnafqmbnf!=lssjmdpf`wlq6s{8!=upsb`fslpwfqnbilq#`leeffnbqwjmnbwvqfkbssfm?,mbu=hbmpbpojmh!=Jnbdfp>ebopftkjof#kpsb`f3%bns8#\t\tJm##sltfqSlophj.`lolqilqgbmAlwwlnPwbqw#.`lvmw1-kwnomftp!=32-isdLmojmf.qjdkwnjoofqpfmjlqJPAM#33/333#dvjgfpubovf*f`wjlmqfsbjq-{no!##qjdkwp-kwno.aol`hqfdF{s9klufqtjwkjmujqdjmsklmfp?,wq=vpjmd#\t\nubq#=$*8\t\n?,wg=\t?,wq=\tabkbpbaqbpjodbofdlnbdzbqslophjpqsphj4]4C5d\bTA\nzk\vBl\bQ\vUmGx\bSM\nmC\bTA\twQ\nd}\bW@\bTl\bTF\ti@\tcT\vBM\v|jBV\tqw\tcC\bWI\npa\tfM\n{Z{X\bTF\bVV\bVK\tmkF\t[]\bPm\bTv\nsI\vpg\t[I\bQpmx\v_W\n^M\npe\vQ}\vGu\nel\npeChBV\bTA\tSo\nzk\vGL\vxD\nd[JzMY\bQpli\nfl\npC{BNt\vwT\ti_\bTgQQ\n|p\vXN\bQS\vxDQC\bWZ\tpD\vVS\bTWNtYh\nzuKjN}\twr\tHa\n_D\tj`\vQ}\vWp\nxZ{c\tji\tBU\nbDa|\tTn\tpV\nZd\nmC\vEV{X\tc}\tTo\bWl\bUd\tIQ\tcg\vxs\nXW\twR\vek\tc}\t]y\tJn\nrp\neg\npV\nz\\{W\npl\nz\\\nzU\tPc\t`{\bV@\nc|\bRw\ti_\bVb\nwX\tHvSu\bTF\v_W\vWs\vsIm\nTT\ndc\tUS\t}f\tiZ\bWz\tc}MD\tBe\tiD\v@@\bTl\bPv\t}tSwM`\vnU\tkW\ved\nqo\vxY\tA|\bTz\vy`BRBM\tiaXU\nyun^\tfL\tiI\nXW\tfD\bWz\bW@\tyj\tm\tav\tBN\vb\\\tpD\bTf\nY[\tJn\bQy\t[^\vWc\vyuDlCJ\vWj\vHR\t`V\vuW\tQy\np@\vGuplJm\bW[\nLP\nxC\n`m\twQuiR\nbI\twQ\tBZ\tWVBR\npg\tcgtiCW\n_y\tRg\bQa\vQB\vWc\nYble\ngESu\nL[\tQ\tea\tdj\v]W\nb~M`\twL\bTV\bVH\nt\npl\t|bs_\bU|\bTaoQlvSkM`\bTv\vK}\nfl\tcCoQBR\tHk\t|d\bQp\tHK\tBZ\vHR\bPv\vLx\vEZ\bT\bTv\tiDoDMU\vwBSuk`St\ntC\tPl\tKg\noi\tjY\vxYh}\nzk\bWZ\tm\ve`\tTB\tfE\nzk\t`zYh\nV|\tHK\tAJ\tAJ\bUL\tp\\\tql\nYcKd\nfyYh\t[I\vDgJm\n]n\nlb\bUd\n{Z\tlu\tfsoQ\bTWJm\vwB\teaYhBC\tsb\tTn\nzU\n_y\vxY\tQ]\ngwmt\tO\\\ntb\bWW\bQy\tmI\tV[\ny\\\naB\vRb\twQ\n]QQJ\bWg\vWa\bQj\ntC\bVH\nYm\vxs\bVK\nel\bWI\vxYCq\ntR\vHV\bTl\bVw\tay\bQa\bVV\t}t\tdj\nr|\tp\\\twR\n{i\nTT\t[I\ti[\tAJ\vxs\v_W\td{\vQ}\tcg\tTz\tA|\tCj\vLmN}m\nbK\tdZ\tp\\\t`V\tsV\np@\tiD\twQ\vQ}\bTfkaJm\v@@\bV`\tzp\n@NSw\tiI\tcg\noiSu\bVwloCy\tc}\vb\\\tsUBA\bWI\bTf\nxS\tVp\nd|\bTV\vbC\tNoJu\nTC\t|`\n{Z\tD]\bU|\tc}lm\bTl\tBv\tPl\tc}\bQp\tm\nLk\tkj\n@NSbKO\tj_\tp\\\nzU\bTl\bTg\bWI\tcfXO\bWW\ndzli\tBN\nd[\bWOMD\vKC\tdj\tI_\bVV\ny\\\vLmxl\txB\tkV\vb\\\vJW\vVS\tVx\vxD\td{MD\bTa\t|`\vPzR}\vWsBM\nsICN\bTaJm\npe\ti_\npV\nrh\tRd\tHv\n~A\nxR\vWh\vWk\nxS\vAz\vwX\nbIoQ\tfw\nqI\nV|\nunz\vpg\td\\\voA{D\ti_xB\bT\t`Vqr\tTTg]CA\vuR\tVJ\tT`\npw\vRb\tI_\nCxRo\vsICjKh\tBv\tWVBBoD{D\nhcKm\v^R\tQE\n{I\np@\nc|Gt\tc}Dl\nzUqN\tsVk}\tHh\v|j\nqou|\tQ]\vekZM`St\npe\tdj\bVG\veE\tm\vWc|I\n[W\tfL\bT\tBZSu\vKaCqNtY[\nqI\bTv\tfM\ti@\t}fB\\\tQy\vBl\bWgXDkc\vx[\bVV\tQ]\ta\tPy\vxD\nfI\t}foD\tdj\tSGls\t~DCN\n{Z\t\\v\n_D\nhc\vx_C[\tAJ\nLM\tVxCI\tbj\tc^\tcF\ntCSx\twrXA\bU\\\t|a\vK\\\bTV\bVj\nd|\tfsCX\ntb\bRw\tVx\tAE\tA|\bTNt\vDg\tVc\bTld@\npo\tM\tcF\npe\tiZ\tBo\bSq\nfHl`\bTx\bWf\tHE\vF{\tcO\tfD\nlm\vfZ\nlm\veU\tdGBH\bTV\tSiMW\nwX\nz\\\t\\cCX\nd}\tl}\bQp\bTV\tF~\bQ\t`i\ng@nO\bUd\bTl\nL[\twQ\tji\ntC\t|J\nLU\naB\vxYKj\tAJuN\ti[\npeSk\vDg\vx]\bVb\bVV\nea\tkV\nqI\bTaSk\nAO\tpD\ntb\nts\nyi\bVg\ti_\v_W\nLkNt\tyj\tfMR\tiI\bTl\vwX\tsV\vMl\nyu\tAJ\bVjKO\tWV\vA}\vW\nrp\tiD\v|olv\vsIBM\td~\tCU\bVbeV\npC\vwT\tj`\tc}\vxs\vps\vvh\tWV\vGg\vAe\vVK\v]W\trg\vWcF`\tBr\vb\\\tdZ\bQp\nqIkF\nLk\vAR\bWI\bTg\tbs\tdw\n{L\n_y\tiZ\bTA\tlg\bVV\bTl\tdk\n`k\ta{\ti_{Awj\twN\v@@\bTe\ti_\n_D\twL\nAH\viK\vek\n[]\tp_\tyj\bTv\tUS\t[r\n{I\npsGt\vVK\nplS}\vWP\t|dMD\vHV\bTR}M`\bTV\bVHlvCh\bW[Ke\tR{\v^R\tab\tBZ\tVA\tB`\nd|\nhsKe\tBeOi\tR{\td\\nB\bWZ\tdZ\tVJOs\tmuQ\vhZQ@QQ\nfI\bW[B\\li\nzU\nMdM`\nxS\bVV\n\\}\vxD\tm\bTpIS\nc|\tkVi~\tV{\vhZ\t|b\bWt\n@R\voA\vnU\bWI\tea\tB`\tiD\tc}\tTzBR\vQBNj\tCP\t[I\bTv\t`WuN\vpg\vpg\vWc\tiT\tbs\twL\tU_\tc\\\t|h\vKa\tNr\tfL\nq|\nzu\nz\\\tNr\bUg\t|bm`\bTv\nyd\nrp\bWf\tUXBV\nzk\nd}\twQ\t}fCe\ved\bTW\bSB\nxU\tcn\bTb\ne\ta\\\tSG\bU|\npV\nN\\Kn\vnU\tAt\tpD\v^R\vIrb[\tR{\tdE\vxD\vWK\vWA\bQL\bW@Su\bUd\nDM\tPcCADloQ\tHswiub\na\bQpOb\nLP\bTlY[\vK}\tAJ\bQn^\vsA\bSM\nqM\bWZ\n^W\vz{S|\tfD\bVK\bTv\bPvBB\tCPdF\tid\vxsmx\vws\tcC\ntC\tycM`\vW\nrh\bQp\vxD\\o\nsI_k\nzukF\tfDXsXO\tjp\bTvBS{B\tBr\nzQ\nbI\tc{BDBVnO\bTF\tcaJd\tfL\tPV\tI_\nlK`o\twX\npa\tgu\bP}{^\bWf\n{I\tBN\npaKl\vpg\tcn\tfL\vvhCq\bTl\vnU\bSqCm\twR\bUJ\npe\nyd\nYgCy\vKW\tfD\neaoQ\tj_\tBvnM\vID\bTa\nzApl\n]n\bTa\tR{\tfr\n_y\bUg{Xkk\vxD|Ixl\nfyCe\vwB\nLk\vd]\noi\n}h\tQ]\npe\bVwHkOQ\nzk\tAJ\npV\bPv\ny\\\tA{Oi\bSBXA\veE\tjp\nq}\tiDqN\v^R\tm\tiZ\tBr\bVg\noi\n\\X\tU_\nc|\vHV\bTf\tTn\\N\\N\nuBlv\nyu\tTd\bTf\bPL\v]W\tdG\nA`\nw^\ngI\npe\tdw\nz\\ia\bWZ\tcFJm\n{Z\bWO_kDfRR\td\\\bVV\vxsBNtilm\tTd\t]y\vHV\tSo\v|jXX\tA|\vZ^\vGu\bTWM`kF\vhZ\vVK\tdG\vBl\tay\nxUqEnO\bVw\nqICX\ne\tPl\bWO\vLm\tdLuHCm\tdTfn\vwBka\vnU\n@M\nyT\tHv\t\\}Kh\td~Yhk}\neR\td\\\bWI\t|b\tHK\tiD\bTWMY\npl\bQ_\twr\vAx\tHE\bTg\bSqvp\vb\\\bWO\nOl\nsI\nfy\vID\t\\c\n{Z\n^~\npe\nAO\tTT\vxvk_\bWO\v|j\vwB\tQy\ti@\tPl\tHa\tdZk}ra\tUT\vJc\ved\np@\tQN\nd|\tkj\tHkM`\noi\twr\td\\\nlq\no_\nlb\nL[\tacBBBHCm\npl\tIQ\bVK\vxs\n`e\viK\npaOi\tUS\bTp\tfD\nPGkkXA\nz\\\neg\vWh\twRqN\nqS\tcnlo\nxS\n^W\tBU\nt\tHE\tp\\\tfF\tfw\bVV\bW@\tak\vVKls\tVJ\bVV\veE\\o\nyX\nYmM`lL\nd|\nzk\tA{sE\twQXT\nt\tPl\t]y\vwT{pMD\vb\\\tQ]Kj\tJn\nAH\vRb\tBU\tHK\t\\c\nfIm\nqM\n@R\tSo\noiBT\tHv\n_yKh\tBZ\t]i\bUJ\tV{Sr\nbI\vGg\ta_\bTR\nfI\nfl\t[K\tIIS|\vuW\tiI\bWI\nqI\v|jBV\bVg\bWZkF\vx]\bTA\tab\tfr\ti@\tJd\tJd\vps\nAO\bTaxu\tiD\nzk\t|d\t|`\bW[\tlP\tdG\bVV\vw}\vqO\ti[\bQ\bTz\vVF\twNts\tdw\bTv\neS\ngi\tNryS\npe\bVV\bSq\n`m\tyj\tBZ\vWX\bSB\tc\\\nUR\t[J\tc_nM\bWQ\vAx\nMd\tBrui\vxY\bSM\vWc\v|j\vxs\t}Q\tBO\bPL\bWW\tfM\nAO\tPc\veUe^\bTg\nqI\tac\bPv\tcFoQ\tQ\vhZka\nz\\\tiK\tBU\n`k\tCPS|M`\n{I\tS{_O\tBZZiSk\tps\tp\\\nYu\n]s\nxC\bWt\nbD\tkV\vGuyS\nqA\t[r\neKM`\tdZlL\bUg\bTl\nbD\tUS\vb\\\tpV\nccS\\\tct\t`z\bPL\vWs\nA`\neg\bSquECR\vDg\t`W\vz{\vWcSkSk\tbW\bUg\tea\nxZ\tiI\tUX\tVJ\nqn\tS{\vRb\bTQ\nplGt\vuWuj\npF\nqI\tfL\t[I\tiaXO\nyu\vDg\ved\tq{VG\bQka\tVj\tkV\txB\nd|\np@\tQN\tPc\tps]j\tkV\toU\bTp\nzUnB\vB]\ta{\bV@\n]nm`\tcz\tR{m`\bQa\vwT\bSMMYqN\tdj~s\vQ}MY\vMB\tBv\twR\bRg\vQ}\tql\vKC\nrmxuCC\vwB\vvh\tBqXq\npV\ti_ObuE\nbd\nqo\v{i\nC~\tBL\veEuH\bVjEyGz\vzR\v{i\tcf\n{Z\n]nXA\vGu\vnU\thS\vGI\nCc\tHE\bTA\tHBBHCj\nCc\bTF\tHE\nXI\tA{\bQ\tc\\\vmO\vWX\nfH\np@MY\bTF\nlK\tBt\nzU\tTTKm\vwT\npV\ndt\vyI\tVx\tQ\tRg\tTd\nzU\bRS\nLM\twAnM\tTn\ndS\t]g\nLc\vwB\t}t\t[I\tCPkX\vFm\vhZm\ti[\np@\vQ}\vW\t|d\nMO\nMd\tf_\tfD\tcJ\tHz\vRb\tio\tPyY[\nxU\tct\v@@\tww\bPvBMFF\ntbv|\vKm\tBq\tBqKh`o\nZdXU\ti]\t|`\tStB\\\bQ\v_W\tTJ\nqI\t|a\tA{\vuPMD\tPl\nxR\tfL\vws\tc{\td\\\bV`\neg\tHKkc\nd|\bVV\ny\\kc\ti]\bVG\t`V\tss\tI_\tAE\tbs\tdu\nel\tpD\vW\nqslv\bSMZi\vVKia\vQB\tQ\n{Z\bPt\vKl\nlK\nhs\ndS\bVKmf\nd^\tkV\tcO\nc|\bVH\t\\]\bTv\bSq\tmI\vDg\tVJ\tcn\ny\\\bVg\bTv\nyX\bTF\t]]\bTp\noi\nhs\veU\nBf\tdjMr\n|p\t\\g\t]r\bVb{D\nd[XN\tfM\tO\\s_\tcf\tiZXN\vWc\tqv\n`m\tU^oD\nd|\vGg\tdE\vwflou}\nd|oQ\t`iOi\vxD\ndZ\nCxYw\nzk\ntb\ngw\tyj\tB`\nyX\vps\ntC\vpP\vqw\bPu\bPX\tDm\npwNj\tss\taG\vxs\bPt\noLGz\tOk\ti@\ti]eC\tIQ\tii\tdj\v@J\t|duh\bWZ\veU\vnU\bTa\tcCg]\nzkYh\bVK\nLU\np@\ntb\ntR\tCj\vNP\ti@\bP{\n\\}\n{c\nwX\tfL\bVG\tc{\t|`\tAJ\t|C\tfDln\t|d\tbs\nqI{B\vAx\np@\nzk\vRbOs\vWSe^\vD_\tBv\vWd\bVb\vxs\veE\bRw\n]n\n|p\vg|\tfwkc\bTIka\n\\TSp\tju\vps\npeu|\vGr\bVe\tCU]MXU\vxD\bTa\tIQ\vWq\tCU\tam\tdj\bSoSw\vnUCh\tQ]s_\bPt\tfS\bTa\t\\}\n@OYc\tUZ\bTx\npe\vnU\nzU\t|}\tiD\nz\\\bSM\vxDBR\nzQ\tQN]MYh\nLP\vFm\vLXvc\vqlka\tHK\bVb\ntC\nCy\bTv\nuVoQ\t`z\t[I\tB`\vRb\tyj\tsb\vWs\bTl\tkV\ved\nelL\vxN\tm\nJn\tjY\vxD\bVb\bSq\vyu\twL\vXL\bTA\tpg\tAt\tnDXX\twR\npl\nhwyS\nps\tcO\bW[\v|jXN\tsV\tp\\\tBe\nb~\nAJ\n]ek`qN\tdw\tWV\tHE\vEVJz\tid\tB`\tzhE]\tfD\bTgqN\bTa\tjaCv\bSM\nhc\bUet_\tieg]\twQ\nPn\bVB\tjw\bVg\vbE\tBZ\vRH\bP{\tjp\n\\}\ta_\tcC\t|a\vD]\tBZ\ti[\tfD\vxW\no_\td\\\n_D\ntb\t\\c\tAJ\nlKoQlo\vLx\vM@\bWZKn\vpg\nTi\nIv\n|r\v@}JzLmWhk}ln\vxD\n]sgc\vps\tBr\bTW\vBMtZ\nBYDW\tjf\vSWC}\nqo\tdE\tmv\tIQ\bPP\bUblvBC\nzQ\t[I\vgl\nig\bUsBT\vbC\bSq\tsU\tiW\nJn\tSY\tHK\trg\npV\vID\v|jKO\t`S\t|a`vbmglfmujbqnbgqjgavp`bqjmj`jlwjfnslslqrvf`vfmwbfpwbglsvfgfmivfdlp`lmwqbfpw/Mmmlnaqfwjfmfmsfqejonbmfqbbnjdlp`jvgbg`fmwqlbvmrvfsvfgfpgfmwqlsqjnfqsqf`jlpfd/Vmavfmlpuloufqsvmwlppfnbmbkba/Abbdlpwlmvfulpvmjglp`bqolpfrvjslmj/]lpnv`klpbodvmb`lqqfljnbdfmsbqwjqbqqjabnbq/Abklnaqffnsoflufqgbg`bnajlnv`kbpevfqlmsbpbglo/Amfbsbqf`fmvfubp`vqplpfpwbabrvjfqlojaqlp`vbmwlb``fplnjdvfoubqjlp`vbwqlwjfmfpdqvslppfq/Mmfvqlsbnfgjlpeqfmwfb`fq`bgfn/Mplefqwb`l`kfpnlgfoljwbojbofwqbpbod/Vm`lnsqb`vbofpf{jpwf`vfqslpjfmglsqfmpboofdbqujbifpgjmfqlnvq`jbslgq/Msvfpwlgjbqjlsvfaolrvjfqfnbmvfosqlsjl`qjpjp`jfqwlpfdvqlnvfqwfevfmwf`fqqbqdqbmgffef`wlsbqwfpnfgjgbsqlsjbleqf`fwjfqqbf.nbjoubqjbpelqnbpevwvqllaifwlpfdvjqqjfpdlmlqnbpnjpnlp/Vmj`l`bnjmlpjwjlpqby/_mgfajglsqvfabwlofglwfm/Abifp/Vpfpsfql`l`jmblqjdfmwjfmgb`jfmwl`/Mgjykbaobqpfq/Abobwjmbevfqybfpwjoldvfqqbfmwqbq/E{jwlo/_sfybdfmgbu/Agflfujwbqsbdjmbnfwqlpibujfqsbgqfpe/M`jo`bafyb/Mqfbppbojgbfmu/Alibs/_mbavplpajfmfpwf{wlpoofubqsvfgbmevfqwf`ln/Vm`obpfpkvnbmlwfmjglajoablvmjgbgfpw/Mpfgjwbq`qfbgl<X<W=c=k=n<R<V<\\<V<T<W<T=a=n<R<^=m<Y<Y<_<R<S=l<T=n<\\<V<Y=e<Y=o<Z<Y<v<\\<V<]<Y<[<]=g<W<R<Q<T<~=m<Y<S<R<X<A=n<R=n<R<P=k<Y<P<Q<Y=n<W<Y=n=l<\\<[<R<Q<\\<_<X<Y<P<Q<Y<x<W=c<s=l<T<Q<\\=m<Q<T=i=n<Y<P<V=n<R<_<R<X<^<R=n=n<\\<P<M<D<|<P<\\=c<K=n<R<^<\\=m<^<\\<P<Y<P=o<N<\\<V<X<^<\\<Q<\\<P=a=n<T=a=n=o<~<\\<P=n<Y=i<S=l<R=n=o=n<Q<\\<X<X<Q=c<~<R=n=n=l<T<Q<Y<U<~<\\=m<Q<T<P=m<\\<P=n<R=n=l=o<]<r<Q<T<P<T=l<Q<Y<Y<r<r<r<W<T=j=a=n<\\<r<Q<\\<Q<Y<P<X<R<P<P<R<U<X<^<Y<R<Q<R=m=o<X\fHy\fIk\fHU\fId\fHy\fIl\fHT\fIk\fHy\fHR\fHy\fIg\fHx\fH\\\fHF\fH\\\fHD\fIk\fHc\fHy\fHy\fHS\fHA\fIl\fHk\fHT\fHy\fH\\\fHH\fIg\fHU\fIg\fHj\fHF\fHU\fIl\fHC\fHU\fHC\fHR\fHH\fHy\fHI\fHRibdqbm\fHj\fHp\fHp\fIg\fHi\fH@\fHJ\fIg\fH{\fHd\fHp\fHR\fH{\fHc\fHU\fHB\fHk\fHD\fHY\fHU\fHC\fIk\fHI\fIk\fHI\fIl\fHt\fH\\\fHp\fH@\fHJ\fIl\fHy\fHd\fHp\fIl\fHY\fIk\fHD\fHd\fHD\fHc\fHU\fH\\\fHe\fHT\fHB\fIk\fHy\fHB\fHY\fIg\fH^\fIk\fHT\fH@\fHB\fHd\fHJ\fIk\fH\fH\\\fHj\fHB\fH@\fHT\fHA\fH\\\fH@\fHD\fHv\fH^\fHB\fHD\fHj\fH{\fHT\fIl\fH^\fIl4U5h5e4I5h5e5k4\\4K4N4B4]4U4C4C4K5h5e5k4\\5k4Y5d4]4V5f4]5o4K5j5d5h4K4D5f5j4U4]4Z4\\5h5o5k5j4K5f5d5i5n4K5h4U5h5f4K5j4K5h5o5j4A4F5e5n4D5h5d4A4E4K4B4]5m5n4[4U4D4C4]5o5j4I4\\4K5o5i4K4K4A4C4I5h4K5m5f5k4D4U4Z5o5f5m4D4A4G5d5i5j5d5k5d4O5j4K4@4C4K5h5k4K4_5h5i4U5j4C5h5f4_4U4D4]4Y5h5e5i5j4\\4D5k4K4O5j5k5i4G5h5o5j4F4K5h4K4A5f4G5i4Y4]4X4]4A4A5d5h5d5m5f4K4\\4K5h5o5h5i4]4E4K5j4F4K5h5m4O4D5d4B4K4Y4O5j4F4K5j5k4K5h5f4U4Z5d5d5n4C4K4D5j4B5f4]4D5j4F5h5o5i4X4K4M5d5k5f4K4D5d5n4Y4Y5d5i4K4]5n5i4O4A4C5j4A5j4U4C5i4]4O5f4K4A4E5o4F4D4C5d5j5f4@4D5i5j5k4F4A4F4@5k4E4_5j4E5f4F5i5o4]4E4V4^4E5j5m4_4D5f4F5h5h5k5h5j4K4F5h5o5n5h4D5h5i4K4U5j5k4O5d5h4X5f4M5j5d4]4O5i4K5m5f5o4D5o5h4\\4K4F4]4F4D4D4O5j5k5i4_4K5j5o4D5f4U5m5n4C4A4_5j5h5k5i4X4U4]4O5k5h4X5k4]5n4[4]4[5h4Dsqlejofpfquj`fgfebvowkjnpfoegfwbjop`lmwfmwpvsslqwpwbqwfgnfppbdfpv``fppebpkjlm?wjwof=`lvmwqzb``lvmw`qfbwfgpwlqjfpqfpvowpqvmmjmdsql`fpptqjwjmdlaif`wpujpjaoftfo`lnfbqwj`ofvmhmltmmfwtlqh`lnsbmzgzmbnj`aqltpfqsqjub`zsqlaofnPfquj`fqfpsf`wgjpsobzqfrvfpwqfpfquftfapjwfkjpwlqzeqjfmgplswjlmptlqhjmdufqpjlmnjoojlm`kbmmfotjmglt-bggqfppujpjwfgtfbwkfq`lqqf`wsqlgv`wfgjqf`welqtbqgzlv#`bmqfnlufgpvaif`w`lmwqlobq`kjuf`vqqfmwqfbgjmdojaqbqzojnjwfgnbmbdfqevqwkfqpvnnbqznb`kjmfnjmvwfpsqjubwf`lmwf{wsqldqbnpl`jfwzmvnafqptqjwwfmfmbaofgwqjddfqplvq`fpolbgjmdfofnfmwsbqwmfqejmboozsfqef`wnfbmjmdpzpwfnphffsjmd`vowvqf%rvlw8/ilvqmbosqlif`wpvqeb`fp%rvlw8f{sjqfpqfujftpabobm`fFmdojpk@lmwfmwwkqlvdkSofbpf#lsjmjlm`lmwb`wbufqbdfsqjnbqzujoobdfPsbmjpkdboofqzgf`ojmfnffwjmdnjppjlmslsvobqrvbojwznfbpvqfdfmfqbopsf`jfppfppjlmpf`wjlmtqjwfqp`lvmwfqjmjwjboqfslqwpejdvqfpnfnafqpklogjmdgjpsvwffbqojfqf{sqfppgjdjwbosj`wvqfBmlwkfqnbqqjfgwqbeej`ofbgjmd`kbmdfg`fmwqbouj`wlqzjnbdfp,qfbplmppwvgjfpefbwvqfojpwjmdnvpw#afp`kllopUfqpjlmvpvboozfsjplgfsobzjmddqltjmdlaujlvplufqobzsqfpfmwb`wjlmp?,vo=\ttqbssfqboqfbgz`fqwbjmqfbojwzpwlqbdfbmlwkfqgfphwlsleefqfgsbwwfqmvmvpvboGjdjwbo`bsjwboTfapjwfebjovqf`lmmf`wqfgv`fgBmgqljggf`bgfpqfdvobq#%bns8#bmjnbopqfofbpfBvwlnbwdfwwjmdnfwklgpmlwkjmdSlsvobq`bswjlmofwwfqp`bswvqfp`jfm`foj`fmpf`kbmdfpFmdobmg>2%bns8Kjpwlqz#>#mft#@fmwqbovsgbwfgPsf`jboMfwtlqhqfrvjqf`lnnfmwtbqmjmd@loofdfwlloabqqfnbjmpaf`bvpffof`wfgGfvwp`kejmbm`ftlqhfqprvj`hozafwtffmf{b`wozpfwwjmdgjpfbpfPl`jfwztfbslmpf{kjajw%ow8"..@lmwqlo`obppfp`lufqfglvwojmfbwwb`hpgfuj`fp+tjmgltsvqslpfwjwof>!Nlajof#hjoojmdpkltjmdJwbojbmgqlssfgkfbujozfeef`wp.2$^*8\t`lmejqn@vqqfmwbgubm`fpkbqjmdlsfmjmdgqbtjmdajoojlmlqgfqfgDfqnbmzqfobwfg?,elqn=jm`ovgftkfwkfqgfejmfgP`jfm`f`bwboldBqwj`ofavwwlmpobqdfpwvmjelqnilvqmfzpjgfabq@kj`bdlklojgbzDfmfqbosbppbdf/%rvlw8bmjnbwfeffojmdbqqjufgsbppjmdmbwvqboqlvdkoz-\t\tWkf#avw#mlwgfmpjwzAqjwbjm@kjmfpfob`h#lewqjavwfJqfobmg!#gbwb.eb`wlqpqf`fjufwkbw#jpOjaqbqzkvpabmgjm#eb`wbeebjqp@kbqofpqbgj`boaqlvdkwejmgjmdobmgjmd9obmd>!qfwvqm#ofbgfqpsobmmfgsqfnjvnsb`hbdfBnfqj`bFgjwjlm^%rvlw8Nfppbdfmffg#wlubovf>!`lnsof{ollhjmdpwbwjlmafojfufpnboofq.nlajofqf`lqgptbmw#wlhjmg#leEjqfel{zlv#bqfpjnjobqpwvgjfgnb{jnvnkfbgjmdqbsjgoz`ojnbwfhjmdglnfnfqdfgbnlvmwpelvmgfgsjlmffqelqnvobgzmbpwzklt#wl#Pvsslqwqfufmvff`lmlnzQfpvowpaqlwkfqplogjfqobqdfoz`boojmd-%rvlw8B``lvmwFgtbqg#pfdnfmwQlafqw#feelqwpSb`jej`ofbqmfgvs#tjwkkfjdkw9tf#kbufBmdfofpmbwjlmp\\pfbq`kbssojfgb`rvjqfnbppjufdqbmwfg9#ebopfwqfbwfgajddfpwafmfejwgqjujmdPwvgjfpnjmjnvnsfqkbspnlqmjmdpfoojmdjp#vpfgqfufqpfubqjbmw#qlof>!njppjmdb`kjfufsqlnlwfpwvgfmwplnflmff{wqfnfqfpwlqfalwwln9fuloufgboo#wkfpjwfnbsfmdojpktbz#wl##Bvdvpwpznalop@lnsbmznbwwfqpnvpj`bobdbjmpwpfqujmd~*+*8\tsbznfmwwqlvaof`lm`fsw`lnsbqfsbqfmwpsobzfqpqfdjlmpnlmjwlq#$$Wkf#tjmmjmdf{solqfbgbswfgDboofqzsqlgv`fbajojwzfmkbm`f`bqffqp*-#Wkf#`loof`wPfbq`k#bm`jfmwf{jpwfgellwfq#kbmgofqsqjmwfg`lmplofFbpwfqmf{slqwptjmgltp@kbmmfojoofdbomfvwqbopvddfpw\\kfbgfqpjdmjmd-kwno!=pfwwofgtfpwfqm`bvpjmd.tfahjw`objnfgIvpwj`f`kbswfquj`wjnpWklnbp#nlyjoobsqlnjpfsbqwjfpfgjwjlmlvwpjgf9ebopf/kvmgqfgLoznsj`\\avwwlmbvwklqpqfb`kfg`kqlmj`gfnbmgppf`lmgpsqlwf`wbglswfgsqfsbqfmfjwkfqdqfbwozdqfbwfqlufqboojnsqluf`lnnbmgpsf`jbopfbq`k-tlqpkjsevmgjmdwklvdkwkjdkfpwjmpwfbgvwjojwzrvbqwfq@vowvqfwfpwjmd`ofbqozf{slpfgAqltpfqojafqbo~#`bw`kSqlif`wf{bnsofkjgf+*8EolqjgbbmptfqpbooltfgFnsfqlqgfefmpfpfqjlvpeqffglnPfufqbo.avwwlmEvqwkfqlvw#le#">#mvoowqbjmfgGfmnbqhuljg+3*,boo-ipsqfufmwQfrvfpwPwfskfm\t\tTkfm#lapfquf?,k1=\tNlgfqm#sqlujgf!#bow>!alqgfqp-\t\tElq#\t\tNbmz#bqwjpwpsltfqfgsfqelqnej`wjlmwzsf#lenfgj`bowj`hfwplsslpfg@lvm`jotjwmfppivpwj`fDflqdf#Afodjvn---?,b=wtjwwfqmlwbaoztbjwjmdtbqebqf#Lwkfq#qbmhjmdskqbpfpnfmwjlmpvqujufp`klobq?,s=\t#@lvmwqzjdmlqfgolpp#leivpw#bpDflqdjbpwqbmdf?kfbg=?pwlssfg2$^*8\tjpobmgpmlwbaofalqgfq9ojpw#le`bqqjfg233/333?,k0=\t#pfufqboaf`lnfppfof`w#tfggjmd33-kwnonlmbq`klee#wkfwfb`kfqkjdkoz#ajloldzojef#lelq#fufmqjpf#le%qbrvl8sovplmfkvmwjmd+wklvdkGlvdobpiljmjmd`jq`ofpElq#wkfBm`jfmwUjfwmbnufkj`ofpv`k#bp`qzpwboubovf#>Tjmgltpfmilzfgb#pnboobppvnfg?b#jg>!elqfjdm#Boo#qjklt#wkfGjpsobzqfwjqfgkltfufqkjggfm8abwwofppffhjmd`bajmfwtbp#mlwollh#bw`lmgv`wdfw#wkfIbmvbqzkbssfmpwvqmjmdb9klufqLmojmf#Eqfm`k#ob`hjmdwzsj`bof{wqb`wfmfnjfpfufm#jedfmfqbwgf`jgfgbqf#mlw,pfbq`kafojfep.jnbdf9ol`bwfgpwbwj`-oldjm!=`lmufqwujlofmwfmwfqfgejqpw!=`jq`vjwEjmobmg`kfnjpwpkf#tbp23s{8!=bp#pv`kgjujgfg?,psbm=tjoo#afojmf#leb#dqfbwnzpwfqz,jmgf{-eboojmdgvf#wl#qbjotbz`loofdfnlmpwfqgfp`fmwjw#tjwkmv`ofbqIftjpk#sqlwfpwAqjwjpkeoltfqpsqfgj`wqfelqnpavwwlm#tkl#tbpof`wvqfjmpwbmwpvj`jgfdfmfqj`sfqjlgpnbqhfwpPl`jbo#ejpkjmd`lnajmfdqbskj`tjmmfqp?aq#,=?az#wkf#MbwvqboSqjub`z`llhjfplvw`lnfqfploufPtfgjpkaqjfeozSfqpjbmpl#nv`k@fmwvqzgfsj`wp`lovnmpklvpjmdp`qjswpmf{w#wlafbqjmdnbssjmdqfujpfgiRvfqz+.tjgwk9wjwof!=wllowjsPf`wjlmgfpjdmpWvqhjpkzlvmdfq-nbw`k+~*+*8\t\tavqmjmdlsfqbwfgfdqffpplvq`f>Qj`kbqg`olpfozsobpwj`fmwqjfp?,wq=\t`lolq9 vo#jg>!slppfppqloojmdskzpj`pebjojmdf{f`vwf`lmwfpwojmh#wlGfebvow?aq#,=\t9#wqvf/`kbqwfqwlvqjpn`obppj`sql`ffgf{sobjm?,k2=\tlmojmf-<{no#ufkfosjmdgjbnlmgvpf#wkfbjqojmffmg#..=*-bwwq+qfbgfqpklpwjmd eeeeeeqfbojyfUjm`fmwpjdmbop#pq`>!,Sqlgv`wgfpsjwfgjufqpfwfoojmdSvaoj`#kfog#jmIlpfsk#wkfbwqfbeef`wp?pwzof=b#obqdfglfpm$wobwfq/#Fofnfmwebuj`lm`qfbwlqKvmdbqzBjqslqwpff#wkfpl#wkbwNj`kbfoPzpwfnpSqldqbnp/#bmg##tjgwk>f%rvlw8wqbgjmdofew!=\tsfqplmpDlogfm#Beebjqpdqbnnbqelqnjmdgfpwqlzjgfb#le`bpf#lelogfpw#wkjp#jp-pq`#>#`bqwllmqfdjpwq@lnnlmpNvpojnpTkbw#jpjm#nbmznbqhjmdqfufbopJmgffg/frvbooz,pklt\\blvwgllqfp`bsf+Bvpwqjbdfmfwj`pzpwfn/Jm#wkf#pjwwjmdKf#boplJpobmgpB`bgfnz\t\n\n?"..Gbmjfo#ajmgjmdaol`h!=jnslpfgvwjojyfBaqbkbn+f{`fswxtjgwk9svwwjmd*-kwno+#X^8\tGBWBX#)hjw`kfmnlvmwfgb`wvbo#gjbof`wnbjmoz#\\aobmh$jmpwboof{sfqwpje+wzsfJw#bopl%`lsz8#!=Wfqnpalqm#jmLswjlmpfbpwfqmwbohjmd`lm`fqmdbjmfg#lmdljmdivpwjez`qjwj`peb`wlqzjwp#ltmbppbvowjmujwfgobpwjmdkjp#ltmkqfe>!,!#qfo>!gfufols`lm`fqwgjbdqbngloobqp`ovpwfqsks<jg>bo`lklo*8~*+*8vpjmd#b=?psbm=ufppfopqfujuboBggqfppbnbwfvqbmgqljgboofdfgjoomfpptbohjmd`fmwfqprvbojeznbw`kfpvmjejfgf{wjm`wGfefmpfgjfg#jm\t\n?"..#`vpwlnpojmhjmdOjwwof#Allh#lefufmjmdnjm-ip<bqf#wkfhlmwbhwwlgbz$p-kwno!#wbqdfw>tfbqjmdBoo#Qjd8\t~*+*8qbjpjmd#Bopl/#`qv`jbobalvw!=gf`obqf..=\t?p`ejqfel{bp#nv`kbssojfpjmgf{/#p/#avw#wzsf#>#\t\t?"..wltbqgpQf`lqgpSqjubwfElqfjdmSqfnjfq`klj`fpUjqwvboqfwvqmp@lnnfmwSltfqfgjmojmf8slufqwz`kbnafqOjujmd#ulovnfpBmwklmzoldjm!#QfobwfgF`lmlnzqfb`kfp`vwwjmddqbujwzojef#jm@kbswfq.pkbgltMlwbaof?,wg=\t#qfwvqmpwbgjvntjgdfwpubqzjmdwqbufopkfog#aztkl#bqftlqh#jmeb`vowzbmdvobqtkl#kbgbjqslqwwltm#le\t\tPlnf#$`oj`h$`kbqdfphfztlqgjw#tjoo`jwz#le+wkjp*8Bmgqft#vmjrvf#`kf`hfglq#nlqf033s{8#qfwvqm8qpjlm>!sovdjmptjwkjm#kfqpfoePwbwjlmEfgfqboufmwvqfsvaojpkpfmw#wlwfmpjlmb`wqfpp`lnf#wlejmdfqpGvhf#lesflsof/f{soljwtkbw#jpkbqnlmzb#nbilq!9!kwwsjm#kjp#nfmv!=\tnlmwkozleej`fq`lvm`jodbjmjmdfufm#jmPvnnbqzgbwf#leolzbowzejwmfppbmg#tbpfnsfqlqpvsqfnfPf`lmg#kfbqjmdQvppjbmolmdfpwBoafqwbobwfqbopfw#le#pnboo!=-bssfmggl#tjwkefgfqboabmh#leafmfbwkGfpsjwf@bsjwbodqlvmgp*/#bmg#sfq`fmwjw#eqln`olpjmd`lmwbjmJmpwfbgejewffmbp#tfoo-zbkll-qfpslmgejdkwfqlap`vqfqfeof`wlqdbmj`>#Nbwk-fgjwjmdlmojmf#sbggjmdb#tkloflmfqqlqzfbq#lefmg#le#abqqjfqtkfm#jwkfbgfq#klnf#leqfpvnfgqfmbnfgpwqlmd=kfbwjmdqfwbjmp`olvgeqtbz#le#Nbq`k#2hmltjmdjm#sbqwAfwtffmofpplmp`olpfpwujqwvboojmhp!=`qlppfgFMG#..=ebnlvp#btbqgfgOj`fmpfKfbowk#ebjqoz#tfbowkznjmjnboBeqj`bm`lnsfwfobafo!=pjmdjmdebqnfqpAqbpjo*gjp`vppqfsob`fDqfdlqzelmw#`lsvqpvfgbssfbqpnbhf#vsqlvmgfgalwk#leaol`hfgpbt#wkfleej`fp`lolvqpje+gl`vtkfm#kffmelq`fsvpk+evBvdvpw#VWE.;!=Ebmwbpzjm#nlpwjmivqfgVpvboozebqnjmd`olpvqflaif`w#gfefm`fvpf#le#Nfgj`bo?algz=\tfujgfmwaf#vpfghfz@lgfpj{wffmJpobnj` 333333fmwjqf#tjgfoz#b`wjuf#+wzsflelmf#`bm`lolq#>psfbhfqf{wfmgpSkzpj`pwfqqbjm?walgz=evmfqboujftjmdnjggof#`qj`hfwsqlskfwpkjewfggl`wlqpQvppfoo#wbqdfw`lnsb`wbodfaqbpl`jbo.avoh#lenbm#bmg?,wg=\t#kf#ofew*-ubo+*ebopf*8oldj`boabmhjmdklnf#wlmbnjmd#Bqjylmb`qfgjwp*8\t~*8\telvmgfqjm#wvqm@loojmpafelqf#Avw#wkf`kbqdfgWjwof!=@bswbjmpsfoofgdlggfppWbd#..=Bggjmd9avw#tbpQf`fmw#sbwjfmwab`h#jm>ebopf%Ojm`lomtf#hmlt@lvmwfqIvgbjpnp`qjsw#bowfqfg$^*8\t##kbp#wkfvm`ofbqFufmw$/alwk#jmmlw#boo\t\t?"..#sob`jmdkbqg#wl#`fmwfqplqw#le`ojfmwppwqffwpAfqmbqgbppfqwpwfmg#wlebmwbpzgltm#jmkbqalvqEqffglniftfoqz,balvw--pfbq`kofdfmgpjp#nbgfnlgfqm#lmoz#lmlmoz#wljnbdf!#ojmfbq#sbjmwfqbmg#mlwqbqfoz#b`qlmzngfojufqpklqwfq33%bns8bp#nbmztjgwk>!,)#?"X@wjwof#>le#wkf#oltfpw#sj`hfg#fp`bsfgvpfp#lesflsofp#Svaoj`Nbwwkftwb`wj`pgbnbdfgtbz#elqobtp#lefbpz#wl#tjmgltpwqlmd##pjnsof~`bw`k+pfufmwkjmelal{tfmw#wlsbjmwfg`jwjyfmJ#glm$wqfwqfbw-#Plnf#tt-!*8\talnajmdnbjowl9nbgf#jm-#Nbmz#`bqqjfpx~8tjtlqh#lepzmlmzngfefbwpebulqfglswj`bosbdfWqbvmofpp#pfmgjmdofew!=?`lnP`lqBoo#wkfiRvfqz-wlvqjpw@obppj`ebopf!#Tjokfonpvavqapdfmvjmfajpklsp-psojw+dolabo#elooltpalgz#lemlnjmbo@lmwb`wpf`vobqofew#wl`kjfeoz.kjggfm.abmmfq?,oj=\t\t-#Tkfm#jm#alwkgjpnjppF{solqfbotbzp#ujb#wkfpsb/]lotfoebqfqvojmd#bqqbmdf`bswbjmkjp#plmqvof#lekf#wllhjwpfoe/>3%bns8+`boofgpbnsofpwl#nbhf`ln,sbdNbqwjm#Hfmmfgzb``fswpevoo#lekbmgofgAfpjgfp,,..=?,baof#wlwbqdfwpfppfm`fkjn#wl#jwp#az#`lnnlm-njmfqbowl#wbhftbzp#wlp-lqd,obgujpfgsfmbowzpjnsof9je#wkfzOfwwfqpb#pklqwKfqafqwpwqjhfp#dqlvsp-ofmdwkeojdkwplufqobspoltoz#ofppfq#pl`jbo#?,s=\t\n\njw#jmwlqbmhfg#qbwf#levo=\t##bwwfnswsbjq#lenbhf#jwHlmwbhwBmwlmjlkbujmd#qbwjmdp#b`wjufpwqfbnpwqbssfg!*-`pp+klpwjofofbg#wlojwwof#dqlvsp/Sj`wvqf..=\t\t#qltp>!#laif`wjmufqpf?ellwfq@vpwlnU=?_,p`qploujmd@kbnafqpobufqztlvmgfgtkfqfbp">#$vmgelq#boosbqwoz#.qjdkw9Bqbajbmab`hfg#`fmwvqzvmjw#lenlajof.Fvqlsf/jp#klnfqjph#legfpjqfg@ojmwlm`lpw#lebdf#le#af`lnf#mlmf#les%rvlw8Njggof#fbg$*X3@qjwj`ppwvgjlp=%`lsz8dqlvs!=bppfnaonbhjmd#sqfppfgtjgdfw-sp9!#<#qfavjowaz#plnfElqnfq#fgjwlqpgfobzfg@bmlmj`kbg#wkfsvpkjmd`obpp>!avw#bqfsbqwjboAbazolmalwwln#`bqqjfq@lnnbmgjwp#vpfBp#tjwk`lvqpfpb#wkjqggfmlwfpbopl#jmKlvpwlm13s{8!=b``vpfgglvaof#dlbo#leEbnlvp#*-ajmg+sqjfpwp#Lmojmfjm#Ivozpw#(#!d`lmpvowgf`jnbokfosevoqfujufgjp#ufqzq$($jswolpjmd#efnbofpjp#boplpwqjmdpgbzp#lebqqjuboevwvqf#?laif`welq`jmdPwqjmd+!#,=\t\n\nkfqf#jpfm`lgfg-##Wkf#aboollmglmf#az,`lnnlmad`lolqobt#le#Jmgjbmbbuljgfgavw#wkf1s{#0s{irvfqz-bewfq#bsloj`z-nfm#bmgellwfq.>#wqvf8elq#vpfp`qffm-Jmgjbm#jnbdf#>ebnjoz/kwws9,,#%maps8gqjufqpfwfqmbopbnf#bpmlwj`fgujftfqp~*+*8\t#jp#nlqfpfbplmpelqnfq#wkf#mftjp#ivpw`lmpfmw#Pfbq`ktbp#wkftkz#wkfpkjssfgaq=?aq=tjgwk9#kfjdkw>nbgf#le`vjpjmfjp#wkbwb#ufqz#Bgnjqbo#ej{fg8mlqnbo#NjppjlmSqfpp/#lmwbqjl`kbqpfwwqz#wl#jmubgfg>!wqvf!psb`jmdjp#nlpwb#nlqf#wlwboozeboo#le~*8\t##jnnfmpfwjnf#jmpfw#lvwpbwjpezwl#ejmggltm#wlolw#le#Sobzfqpjm#Ivmfrvbmwvnmlw#wkfwjnf#wlgjpwbmwEjmmjpkpq`#>#+pjmdof#kfos#leDfqnbm#obt#bmgobafofgelqfpwp`llhjmdpsb`f!=kfbgfq.tfoo#bpPwbmofzaqjgdfp,dolabo@qlbwjb#Balvw#X3^8\t##jw/#bmgdqlvsfgafjmd#b*xwkqltkf#nbgfojdkwfqfwkj`boEEEEEE!alwwln!ojhf#b#fnsolzpojuf#jmbp#pffmsqjmwfqnlpw#leva.ojmhqfif`wpbmg#vpfjnbdf!=pv``ffgeffgjmdMv`ofbqjmelqnbwl#kfosTlnfm$pMfjwkfqNf{j`bmsqlwfjm?wbaof#az#nbmzkfbowkzobtpvjwgfujpfg-svpk+xpfoofqppjnsoz#Wkqlvdk-`llhjf#Jnbdf+logfq!=vp-ip!=#Pjm`f#vmjufqpobqdfq#lsfm#wl"..#fmgojfp#jm$^*8\t##nbqhfwtkl#jp#+!GLN@lnbmbdfglmf#elqwzsfle#Hjmdglnsqlejwpsqlslpfwl#pklt`fmwfq8nbgf#jwgqfppfgtfqf#jmnj{wvqfsqf`jpfbqjpjmdpq`#>#$nbhf#b#pf`vqfgAbswjpwulwjmd#\t\n\nubq#Nbq`k#1dqft#vs@ojnbwf-qfnlufphjoofgtbz#wkf?,kfbg=eb`f#leb`wjmd#qjdkw!=wl#tlqhqfgv`fpkbp#kbgfqf`wfgpklt+*8b`wjlm>allh#lebm#bqfb>>#!kww?kfbgfq\t?kwno=`lmelqneb`jmd#`llhjf-qfoz#lmklpwfg#-`vpwlnkf#tfmwavw#elqpsqfbg#Ebnjoz#b#nfbmplvw#wkfelqvnp-ellwbdf!=Nlajo@ofnfmwp!#jg>!bp#kjdkjmwfmpf..=?"..efnbof#jp#pffmjnsojfgpfw#wkfb#pwbwfbmg#kjpebpwfpwafpjgfpavwwlm\\alvmgfg!=?jnd#Jmelal{fufmwp/b#zlvmdbmg#bqfMbwjuf#`kfbsfqWjnflvwbmg#kbpfmdjmfptlm#wkf+nlpwozqjdkw9#ejmg#b#.alwwlnSqjm`f#bqfb#lenlqf#lepfbq`k\\mbwvqf/ofdboozsfqjlg/obmg#lelq#tjwkjmgv`fgsqlujmdnjppjofol`boozBdbjmpwwkf#tbzh%rvlw8s{8!=\tsvpkfg#babmglmmvnfqbo@fqwbjmJm#wkjpnlqf#jmlq#plnfmbnf#jpbmg/#jm`qltmfgJPAM#3.`qfbwfpL`wlafqnbz#mlw`fmwfq#obwf#jmGfefm`ffmb`wfgtjpk#wlaqlbgoz`llojmdlmolbg>jw-#Wkfqf`lufqNfnafqpkfjdkw#bppvnfp?kwno=\tsflsof-jm#lmf#>tjmgltellwfq\\b#dllg#qfhobnblwkfqp/wl#wkjp\\`llhjfsbmfo!=Olmglm/gfejmfp`qvpkfgabswjpn`lbpwbopwbwvp#wjwof!#nluf#wlolpw#jmafwwfq#jnsojfpqjuboqzpfqufqp#PzpwfnSfqkbspfp#bmg#`lmwfmgeoltjmdobpwfg#qjpf#jmDfmfpjpujft#leqjpjmd#pffn#wlavw#jm#ab`hjmdkf#tjoodjufm#bdjujmd#`jwjfp-eolt#le#Obwfq#boo#avwKjdktbzlmoz#azpjdm#lekf#glfpgjeefqpabwwfqz%bns8obpjmdofpwkqfbwpjmwfdfqwbhf#lmqfevpfg`boofg#>VP%bnsPff#wkfmbwjufpaz#wkjppzpwfn-kfbg#le9klufq/ofpajbmpvqmbnfbmg#boo`lnnlm,kfbgfq\\\\sbqbnpKbqubqg,sj{fo-qfnlubopl#olmdqlof#leiljmwozphzp`qbVmj`lgfaq#,=\tBwobmwbmv`ofvp@lvmwz/svqfoz#`lvmw!=fbpjoz#avjog#blm`oj`hb#djufmsljmwfqk%rvlw8fufmwp#fopf#x\tgjwjlmpmlt#wkf/#tjwk#nbm#tkllqd,Tfalmf#bmg`buboqzKf#gjfgpfbwwof33/333#xtjmgltkbuf#wlje+tjmgbmg#jwpplofoz#n%rvlw8qfmftfgGfwqljwbnlmdpwfjwkfq#wkfn#jmPfmbwlqVp?,b=?Hjmd#leEqbm`jp.sqlgv`kf#vpfgbqw#bmgkjn#bmgvpfg#azp`lqjmdbw#klnfwl#kbufqfobwfpjajojwzeb`wjlmAveebolojmh!=?tkbw#kfeqff#wl@jwz#le`lnf#jmpf`wlqp`lvmwfglmf#gbzmfqulvpprvbqf#~8je+dljm#tkbwjnd!#bojp#lmozpfbq`k,wvfpgbzollpfozPlolnlmpf{vbo#.#?b#kqnfgjvn!GL#MLW#Eqbm`f/tjwk#b#tbq#bmgpf`lmg#wbhf#b#=\t\t\tnbqhfw-kjdktbzglmf#jm`wjujwz!obpw!=laojdfgqjpf#wl!vmgfejnbgf#wl#Fbqoz#sqbjpfgjm#jwp#elq#kjpbwkofwfIvsjwfqZbkll"#wfqnfg#pl#nbmzqfbooz#p-#Wkf#b#tlnbm<ubovf>gjqf`w#qjdkw!#aj`z`ofb`jmd>!gbz#bmgpwbwjmdQbwkfq/kjdkfq#Leej`f#bqf#mltwjnfp/#tkfm#b#sbz#elqlm#wkjp.ojmh!=8alqgfqbqlvmg#bmmvbo#wkf#Mftsvw#wkf-`ln!#wbhjm#wlb#aqjfe+jm#wkfdqlvsp-8#tjgwkfmyznfppjnsof#jm#obwfxqfwvqmwkfqbszb#sljmwabmmjmdjmhp!=\t+*8!#qfb#sob`f_v330@bbalvw#bwq=\t\n\n``lvmw#djufp#b?P@QJSWQbjotbzwkfnfp,wlloal{AzJg+!{kvnbmp/tbw`kfpjm#plnf#je#+tj`lnjmd#elqnbwp#Vmgfq#avw#kbpkbmgfg#nbgf#azwkbm#jmefbq#legfmlwfg,jeqbnfofew#jmulowbdfjm#fb`kb%rvlw8abpf#leJm#nbmzvmgfqdlqfdjnfpb`wjlm#?,s=\t?vpwlnUb8%dw8?,jnslqwplq#wkbwnlpwoz#%bns8qf#pjyf>!?,b=?,kb#`obppsbppjufKlpw#>#TkfwkfqefqwjofUbqjlvp>X^8+ev`bnfqbp,=?,wg=b`wp#bpJm#plnf=\t\t?"lqdbmjp#?aq#,=Afjijmd`bwbo/Lgfvwp`kfvqlsfvfvphbqbdbfjodfpufmphbfpsb/]bnfmpbifvpvbqjlwqbabiln/E{j`ls/Mdjmbpjfnsqfpjpwfnbl`wvaqfgvqbmwfb/]bgjqfnsqfpbnlnfmwlmvfpwqlsqjnfqbwqbu/Epdqb`jbpmvfpwqbsql`fplfpwbglp`bojgbgsfqplmbm/Vnfqlb`vfqgln/Vpj`bnjfnaqllefqwbpbodvmlpsb/Apfpfifnsolgfqf`klbgfn/Mpsqjubglbdqfdbqfmob`fpslpjaofklwfofppfujoobsqjnfql/Vowjnlfufmwlpbq`kjul`vowvqbnvifqfpfmwqbgbbmvm`jlfnabqdlnfq`bgldqbmgfpfpwvgjlnfilqfpefaqfqlgjpf/]lwvqjpnl`/_gjdlslqwbgbfpsb`jlebnjojbbmwlmjlsfqnjwfdvbqgbqbodvmbpsqf`jlpbodvjfmpfmwjglujpjwbpw/Awvol`lml`fqpfdvmgl`lmpfileqbm`jbnjmvwlppfdvmgbwfmfnlpfef`wlpn/Mobdbpfpj/_mqfujpwbdqbmbgb`lnsqbqjmdqfpldbq`/Abb``j/_mf`vbglqrvjfmfpjm`ovplgfafq/Mnbwfqjbklnaqfpnvfpwqbslgq/Abnb/]bmb/Vowjnbfpwbnlplej`jbowbnajfmmjmd/Vmpbovglpslgfnlpnfilqbqslpjwjlmavpjmfppklnfsbdfpf`vqjwzobmdvbdfpwbmgbqg`bnsbjdmefbwvqfp`bwfdlqzf{wfqmbo`kjogqfmqfpfqufgqfpfbq`kf{`kbmdfebulqjwfwfnsobwfnjojwbqzjmgvpwqzpfquj`fpnbwfqjbosqlgv`wpy.jmgf{9`lnnfmwpplewtbqf`lnsofwf`bofmgbqsobwelqnbqwj`ofpqfrvjqfgnlufnfmwrvfpwjlmavjogjmdslojwj`pslppjaofqfojdjlmskzpj`boeffgab`hqfdjpwfqsj`wvqfpgjpbaofgsqlwl`lobvgjfm`fpfwwjmdpb`wjujwzfofnfmwpofbqmjmdbmzwkjmdbapwqb`wsqldqfpplufqujftnbdbyjmff`lmlnj`wqbjmjmdsqfppvqfubqjlvp#?pwqlmd=sqlsfqwzpklssjmdwldfwkfqbgubm`fgafkbujlqgltmolbgefbwvqfgellwaboopfof`wfgObmdvbdfgjpwbm`fqfnfnafqwqb`hjmdsbpptlqgnlgjejfgpwvgfmwpgjqf`wozejdkwjmdmlqwkfqmgbwbabpfefpwjuboaqfbhjmdol`bwjlmjmwfqmfwgqlsgltmsqb`wj`ffujgfm`fevm`wjlmnbqqjbdfqfpslmpfsqlaofnpmfdbwjufsqldqbnpbmbozpjpqfofbpfgabmmfq!=svq`kbpfsloj`jfpqfdjlmbo`qfbwjufbqdvnfmwallhnbqhqfefqqfq`kfnj`bogjujpjlm`booab`hpfsbqbwfsqlif`wp`lmeoj`wkbqgtbqfjmwfqfpwgfojufqznlvmwbjmlawbjmfg>#ebopf8elq+ubq#b``fswfg`bsb`jwz`lnsvwfqjgfmwjwzbjq`qbewfnsolzfgsqlslpfgglnfpwj`jm`ovgfpsqlujgfgklpsjwboufqwj`bo`loobspfbssqlb`ksbqwmfqpoldl!=?bgbvdkwfqbvwklq!#`vowvqboebnjojfp,jnbdfp,bppfnaozsltfqevowfb`kjmdejmjpkfggjpwqj`w`qjwj`bo`dj.ajm,svqslpfpqfrvjqfpfof`wjlmaf`lnjmdsqlujgfpb`bgfnj`f{fq`jpfb`wvbooznfgj`jmf`lmpwbmwb``jgfmwNbdbyjmfgl`vnfmwpwbqwjmdalwwln!=lapfqufg9#%rvlw8f{wfmgfgsqfujlvpPlewtbqf`vpwlnfqgf`jpjlmpwqfmdwkgfwbjofgpojdkwozsobmmjmdwf{wbqfb`vqqfm`zfufqzlmfpwqbjdkwwqbmpefqslpjwjufsqlgv`fgkfqjwbdfpkjssjmdbaplovwfqf`fjufgqfofubmwavwwlm!#ujlofm`fbmztkfqfafmfejwpobvm`kfgqf`fmwozboojbm`felooltfgnvowjsofavoofwjmjm`ovgfgl``vqqfgjmwfqmbo\'+wkjp*-qfsvaoj`=?wq=?wg`lmdqfppqf`lqgfgvowjnbwfplovwjlm?vo#jg>!gjp`lufqKlnf?,b=tfapjwfpmfwtlqhpbowklvdkfmwjqfoznfnlqjbonfppbdfp`lmwjmvfb`wjuf!=plnftkbwuj`wlqjbTfpwfqm##wjwof>!Ol`bwjlm`lmwqb`wujpjwlqpGltmolbgtjwklvw#qjdkw!=\tnfbpvqfptjgwk#>#ubqjbaofjmuloufgujqdjmjbmlqnboozkbssfmfgb``lvmwppwbmgjmdmbwjlmboQfdjpwfqsqfsbqfg`lmwqlopb``vqbwfajqwkgbzpwqbwfdzleej`jbodqbskj`p`qjnjmboslppjaoz`lmpvnfqSfqplmbopsfbhjmdubojgbwfb`kjfufg-isd!#,=nb`kjmfp?,k1=\t##hfztlqgpeqjfmgozaqlwkfqp`lnajmfglqjdjmbo`lnslpfgf{sf`wfgbgfrvbwfsbhjpwbmeloolt!#ubovbaof?,obafo=qfobwjufaqjmdjmdjm`qfbpfdlufqmlqsovdjmp,Ojpw#le#Kfbgfq!=!#mbnf>!#+%rvlw8dqbgvbwf?,kfbg=\t`lnnfq`fnbobzpjbgjqf`wlqnbjmwbjm8kfjdkw9p`kfgvof`kbmdjmdab`h#wl#`bwkloj`sbwwfqmp`lolq9# dqfbwfpwpvssojfpqfojbaof?,vo=\t\n\n?pfof`w#`jwjyfmp`olwkjmdtbw`kjmd?oj#jg>!psf`jej``bqqzjmdpfmwfm`f?`fmwfq=`lmwqbpwwkjmhjmd`bw`k+f*plvwkfqmNj`kbfo#nfq`kbmw`bqlvpfosbggjmd9jmwfqjlq-psojw+!ojybwjlmL`wlafq#*xqfwvqmjnsqlufg..%dw8\t\t`lufqbdf`kbjqnbm-smd!#,=pvaif`wpQj`kbqg#tkbwfufqsqlabaozqf`lufqzabpfabooivgdnfmw`lmmf`w--`pp!#,=#tfapjwfqfslqwfggfebvow!,=?,b=\tfof`wqj`p`lwobmg`qfbwjlmrvbmwjwz-#JPAM#3gjg#mlw#jmpwbm`f.pfbq`k.!#obmd>!psfbhfqp@lnsvwfq`lmwbjmpbq`kjufpnjmjpwfqqfb`wjlmgjp`lvmwJwbojbml`qjwfqjbpwqlmdoz9#$kwws9$p`qjsw$`lufqjmdleefqjmdbssfbqfgAqjwjpk#jgfmwjezEb`fallhmvnfqlvpufkj`ofp`lm`fqmpBnfqj`bmkbmgojmdgju#jg>!Tjoojbn#sqlujgfq\\`lmwfmwb``vqb`zpf`wjlm#bmgfqplmeof{jaof@bwfdlqzobtqfm`f?p`qjsw=obzlvw>!bssqlufg#nb{jnvnkfbgfq!=?,wbaof=Pfquj`fpkbnjowlm`vqqfmw#`bmbgjbm`kbmmfop,wkfnfp,,bqwj`oflswjlmboslqwvdboubovf>!!jmwfqubotjqfofppfmwjwofgbdfm`jfpPfbq`k!#nfbpvqfgwklvpbmgpsfmgjmd%kfoojs8mft#Gbwf!#pjyf>!sbdfMbnfnjggof!#!#,=?,b=kjggfm!=pfrvfm`fsfqplmbolufqeoltlsjmjlmpjoojmljpojmhp!=\t\n?wjwof=ufqpjlmppbwvqgbzwfqnjmbojwfnsqlsfmdjmffqpf`wjlmpgfpjdmfqsqlslpbo>!ebopf!Fpsb/]loqfofbpfppvanjw!#fq%rvlw8bggjwjlmpznswlnplqjfmwfgqfplvq`fqjdkw!=?sofbpvqfpwbwjlmpkjpwlqz-ofbujmd##alqgfq>`lmwfmwp`fmwfq!=-\t\tPlnf#gjqf`wfgpvjwbaofavodbqjb-pklt+*8gfpjdmfgDfmfqbo#`lm`fswpF{bnsofptjoojbnpLqjdjmbo!=?psbm=pfbq`k!=lsfqbwlqqfrvfpwpb#%rvlw8booltjmdGl`vnfmwqfujpjlm-#\t\tWkf#zlvqpfoe@lmwb`w#nj`kjdbmFmdojpk#`lovnajbsqjlqjwzsqjmwjmdgqjmhjmdeb`jojwzqfwvqmfg@lmwfmw#leej`fqpQvppjbm#dfmfqbwf.;;6:.2!jmgj`bwfebnjojbq#rvbojwznbqdjm93#`lmwfmwujftslqw`lmwb`wp.wjwof!=slqwbaof-ofmdwk#fojdjaofjmuloufpbwobmwj`lmolbg>!gfebvow-pvssojfgsbznfmwpdolppbqz\t\tBewfq#dvjgbm`f?,wg=?wgfm`lgjmdnjggof!=`bnf#wl#gjpsobzpp`lwwjpkilmbwkbmnbilqjwztjgdfwp-`ojmj`bowkbjobmgwfb`kfqp?kfbg=\t\nbeef`wfgpvsslqwpsljmwfq8wlPwqjmd?,pnboo=lhobklnbtjoo#af#jmufpwlq3!#bow>!klojgbzpQfplvq`foj`fmpfg#+tkj`k#-#Bewfq#`lmpjgfqujpjwjmdf{solqfqsqjnbqz#pfbq`k!#bmgqljg!rvj`hoz#nffwjmdpfpwjnbwf8qfwvqm#8`lolq9 #kfjdkw>bssqlubo/#%rvlw8#`kf`hfg-njm-ip!nbdmfwj`=?,b=?,kelqf`bpw-#Tkjof#wkvqpgbzgufqwjpf%fb`vwf8kbp@obppfubovbwflqgfqjmdf{jpwjmdsbwjfmwp#Lmojmf#`lolqbglLswjlmp!`bnsafoo?"..#fmg?,psbm=??aq#,=\t\\slsvspp`jfm`fp/%rvlw8#rvbojwz#Tjmgltp#bppjdmfgkfjdkw9#?a#`obppof%rvlw8#ubovf>!#@lnsbmzf{bnsofp?jeqbnf#afojfufpsqfpfmwpnbqpkboosbqw#le#sqlsfqoz*-\t\tWkf#wb{lmlnznv`k#le#?,psbm=\t!#gbwb.pqwvdv/Fpp`qlooWl#sqlif`w?kfbg=\tbwwlqmfzfnskbpjppslmplqpebm`zal{tlqog$p#tjogojef`kf`hfg>pfppjlmpsqldqbnns{8elmw.#Sqlif`wilvqmbopafojfufgub`bwjlmwklnsplmojdkwjmdbmg#wkf#psf`jbo#alqgfq>3`kf`hjmd?,walgz=?avwwlm#@lnsofwf`ofbqej{\t?kfbg=\tbqwj`of#?pf`wjlmejmgjmdpqlof#jm#slsvobq##L`wlafqtfapjwf#f{slpvqfvpfg#wl##`kbmdfplsfqbwfg`oj`hjmdfmwfqjmd`lnnbmgpjmelqnfg#mvnafqp##?,gju=`qfbwjmdlmPvanjwnbqzobmg`loofdfpbmbozwj`ojpwjmdp`lmwb`w-olddfgJmbgujplqzpjaojmdp`lmwfmw!p%rvlw8*p-#Wkjp#sb`hbdfp`kf`hal{pvddfpwpsqfdmbmwwlnlqqltpsb`jmd>j`lm-smdibsbmfpf`lgfabpfavwwlm!=dbnaojmdpv`k#bp#/#tkjof#?,psbm=#njpplvqjpslqwjmdwls92s{#-?,psbm=wfmpjlmptjgwk>!1obyzolbgmlufnafqvpfg#jm#kfjdkw>!`qjsw!=\t%maps8?,?wq=?wg#kfjdkw91,sqlgv`w`lvmwqz#jm`ovgf#ellwfq!#%ow8"..#wjwof!=?,irvfqz-?,elqn=\t+\vBl\bQ*+\vUmGx*kqubwphjjwbojbmlqln/Nm(ow/Pqh/Kf4K4]4C5dwbnaj/Emmlwj`jbpnfmpbifpsfqplmbpgfqf`klpmb`jlmbopfquj`jl`lmwb`wlvpvbqjlpsqldqbnbdlajfqmlfnsqfpbpbmvm`jlpubofm`jb`lolnajbgfpsv/Epgfslqwfpsqlzf`wlsqlgv`wls/Vaoj`lmlplwqlpkjpwlqjbsqfpfmwfnjoolmfpnfgjbmwfsqfdvmwbbmwfqjlqqf`vqplpsqlaofnbpbmwjbdlmvfpwqlplsjmj/_mjnsqjnjqnjfmwqbpbn/Eqj`bufmgfglqpl`jfgbgqfpsf`wlqfbojybqqfdjpwqlsbobaqbpjmwfq/Epfmwlm`fpfpsf`jbonjfnaqlpqfbojgbg`/_qglabybqbdlybs/Mdjmbppl`jbofpaolrvfbqdfpwj/_mborvjofqpjpwfnbp`jfm`jbp`lnsofwlufqpj/_m`lnsofwbfpwvgjlps/Vaoj`blaifwjulboj`bmwfavp`bglq`bmwjgbgfmwqbgbpb``jlmfpbq`kjulppvsfqjlqnbzlq/Abbofnbmjbevm`j/_m/Vowjnlpkb`jfmglbrvfoolpfgj`j/_mefqmbmglbnajfmwfeb`fallhmvfpwqbp`ojfmwfpsql`fplpabpwbmwfsqfpfmwbqfslqwbq`lmdqfplsvaoj`bq`lnfq`jl`lmwqbwli/_ufmfpgjpwqjwlw/E`mj`b`lmivmwlfmfqd/Abwqbabibqbpwvqjbpqf`jfmwfvwjojybqalofw/Ampboubglq`lqqf`wbwqbabilpsqjnfqlpmfdl`jlpojafqwbggfwboofpsbmwboobsq/_{jnlbonfq/Abbmjnbofprvj/Emfp`lqby/_mpf``j/_mavp`bmglls`jlmfpf{wfqjlq`lm`fswlwlgbu/Abdbofq/Abfp`qjajqnfgj`jmboj`fm`jb`lmpvowbbpsf`wlp`q/Awj`bg/_obqfpivpwj`jbgfafq/Mmsfq/Alglmf`fpjwbnbmwfmfqsfrvf/]lqf`jajgbwqjavmbowfmfqjef`bm`j/_m`bmbqjbpgfp`bqdbgjufqplpnboolq`bqfrvjfqfw/E`mj`lgfafq/Abujujfmgbejmbmybpbgfobmwfevm`jlmb`lmpfilpgje/A`jo`jvgbgfpbmwjdvbpbubmybgbw/Eqnjmlvmjgbgfpp/Mm`kfy`bnsb/]bplewlmj`qfujpwbp`lmwjfmfpf`wlqfpnlnfmwlpeb`vowbg`q/Egjwlgjufqpbppvsvfpwleb`wlqfppfdvmglpsfrvf/]b<_<R<X<\\<Y=m<W<T<Y=m=n=`<]=g<W<R<]=g=n=`=a=n<R<P<y=m<W<T=n<R<_<R<P<Y<Q=c<^=m<Y=i=a=n<R<U<X<\\<Z<Y<]=g<W<T<_<R<X=o<X<Y<Q=`=a=n<R=n<]=g<W<\\=m<Y<]=c<R<X<T<Q=m<Y<]<Y<Q<\\<X<R=m<\\<U=n=h<R=n<R<Q<Y<_<R=m<^<R<T=m<^<R<U<T<_=l=g=n<R<Z<Y<^=m<Y<P=m<^<R=b<W<T=d=`=a=n<T=i<S<R<V<\\<X<Q<Y<U<X<R<P<\\<P<T=l<\\<W<T<]<R=n<Y<P=o=i<R=n=c<X<^=o=i=m<Y=n<T<W=b<X<T<X<Y<W<R<P<T=l<Y=n<Y<]=c=m<^<R<Y<^<T<X<Y=k<Y<_<R=a=n<T<P=m=k<Y=n=n<Y<P=g=j<Y<Q=g=m=n<\\<W<^<Y<X=`=n<Y<P<Y<^<R<X=g=n<Y<]<Y<^=g=d<Y<Q<\\<P<T=n<T<S<\\=n<R<P=o<S=l<\\<^<W<T=j<\\<R<X<Q<\\<_<R<X=g<[<Q<\\=b<P<R<_=o<X=l=o<_<^=m<Y<U<T<X<Y=n<V<T<Q<R<R<X<Q<R<X<Y<W<\\<X<Y<W<Y=m=l<R<V<T=b<Q=c<^<Y=m=`<y=m=n=`=l<\\<[<\\<Q<\\=d<T4K5h5h5k4K5h4F5f4@5i5f4U4B4K4Y4E4K5h4\\5f4U5h5f5k4@4C5f4C4K5h4N5j4K5h4]4C4F4A5o5i4Y5m4A4E5o4K5j4F4K5h5h5f5f5o5d5j4X4D5o4E5m5f5k4K4D5j4K4F4A5d4K4M4O5o4G4]4B5h4K5h4K5h4A4D4C5h5f5h4C4]5d4_4K4Z4V4[4F5o5d5j5k5j4K5o4_4K4A4E5j4K4C5f4K5h4[4D4U5h5f5o4X5o4]4K5f5i5o5j5i5j5k4K4X4]5o4E4]4J5f4_5j4X5f4[5i4K4\\4K4K5h5m5j4X4D4K4D4F4U4D4]4]4A5i4E5o4K5m4E5f5n5d5h5i4]5o4^5o5h5i4E4O4A5i4C5n5h4D5f5f4U5j5f4Y5d4]4E4[4]5f5n4X4K4]5o4@5d4K5h4O4B4]5e5i4U5j4K4K4D4A4G4U4]5d4Z4D4X5o5h5i4_4@5h4D5j4K5j4B4K5h4C5o4F4K4D5o5h5f4E4D4C5d5j4O5f4Z4K5f5d4@4C5m4]5f5n5o4F4D4F4O5m4Z5h5i4[4D4B4K5o4G4]4D4K4]5o4K5m4Z5h4K4A5h5e5j5m4_5k4O5f4K5i4]4C5d4C4O5j5k4K4C5f5j4K4K5h4K5j5i4U4]4Z4F4U5h5i4C4K4B5h5i5i5o5j\0\0\v\n\t\b\r\f\f\r\b\t\n\v\0\v\v\v\v\0qfplvq`fp`lvmwqjfprvfpwjlmpfrvjsnfmw`lnnvmjwzbubjobaofkjdkojdkwGWG,{kwnonbqhfwjmdhmltofgdfplnfwkjmd`lmwbjmfqgjqf`wjlmpvap`qjafbgufqwjpf`kbqb`wfq!#ubovf>!?,pfof`w=Bvpwqbojb!#`obpp>!pjwvbwjlmbvwklqjwzelooltjmdsqjnbqjozlsfqbwjlm`kboofmdfgfufolsfgbmlmznlvpevm`wjlm#evm`wjlmp`lnsbmjfppwqv`wvqfbdqffnfmw!#wjwof>!slwfmwjbofgv`bwjlmbqdvnfmwppf`lmgbqz`lszqjdkwobmdvbdfpf{`ovpjuf`lmgjwjlm?,elqn=\tpwbwfnfmwbwwfmwjlmAjldqbskz~#fopf#x\tplovwjlmptkfm#wkf#Bmbozwj`pwfnsobwfpgbmdfqlvppbwfoojwfgl`vnfmwpsvaojpkfqjnslqwbmwsqlwlwzsfjmeovfm`f%qbrvl8?,feef`wjufdfmfqboozwqbmpelqnafbvwjevowqbmpslqwlqdbmjyfgsvaojpkfgsqlnjmfmwvmwjo#wkfwkvnambjoMbwjlmbo#-el`vp+*8lufq#wkf#njdqbwjlmbmmlvm`fgellwfq!=\tf{`fswjlmofpp#wkbmf{sfmpjufelqnbwjlmeqbnftlqhwfqqjwlqzmgj`bwjlm`vqqfmwoz`obppMbnf`qjwj`jpnwqbgjwjlmfopftkfqfBof{bmgfqbssljmwfgnbwfqjbopaqlbg`bpwnfmwjlmfgbeejojbwf?,lswjlm=wqfbwnfmwgjeefqfmw,gfebvow-Sqfpjgfmwlm`oj`h>!ajldqbskzlwkfqtjpfsfqnbmfmwEqbm/KbjpKlooztllgf{sbmpjlmpwbmgbqgp?,pwzof=\tqfgv`wjlmGf`fnafq#sqfefqqfg@bnaqjgdflsslmfmwpAvpjmfpp#`lmevpjlm=\t?wjwof=sqfpfmwfgf{sobjmfgglfp#mlw#tlqogtjgfjmwfqeb`fslpjwjlmpmftpsbsfq?,wbaof=\tnlvmwbjmpojhf#wkf#fppfmwjboejmbm`jbopfof`wjlmb`wjlm>!,babmglmfgFgv`bwjlmsbqpfJmw+pwbajojwzvmbaof#wl?,wjwof=\tqfobwjlmpMlwf#wkbwfeej`jfmwsfqelqnfgwtl#zfbqpPjm`f#wkfwkfqfelqftqbssfq!=bowfqmbwfjm`qfbpfgAbwwof#lesfq`fjufgwqzjmd#wlmf`fppbqzslqwqbzfgfof`wjlmpFojybafwk?,jeqbnf=gjp`lufqzjmpvqbm`fp-ofmdwk8ofdfmgbqzDfldqbskz`bmgjgbwf`lqslqbwfplnfwjnfppfquj`fp-jmkfqjwfg?,pwqlmd=@lnnvmjwzqfojdjlvpol`bwjlmp@lnnjwwffavjogjmdpwkf#tlqogml#olmdfqafdjmmjmdqfefqfm`f`bmmlw#afeqfrvfm`zwzsj`boozjmwl#wkf#qfobwjuf8qf`lqgjmdsqfpjgfmwjmjwjboozwf`kmjrvfwkf#lwkfqjw#`bm#aff{jpwfm`fvmgfqojmfwkjp#wjnfwfofsklmfjwfnp`lsfsqb`wj`fpbgubmwbdf*8qfwvqm#Elq#lwkfqsqlujgjmdgfnl`qb`zalwk#wkf#f{wfmpjufpveefqjmdpvsslqwfg`lnsvwfqp#evm`wjlmsqb`wj`bopbjg#wkbwjw#nbz#afFmdojpk?,eqln#wkf#p`kfgvofggltmolbgp?,obafo=\tpvpsf`wfgnbqdjm9#3psjqjwvbo?,kfbg=\t\tnj`qlplewdqbgvboozgjp`vppfgkf#af`bnff{f`vwjufirvfqz-ipklvpfklog`lmejqnfgsvq`kbpfgojwfqboozgfpwqlzfgvs#wl#wkfubqjbwjlmqfnbjmjmdjw#jp#mlw`fmwvqjfpIbsbmfpf#bnlmd#wkf`lnsofwfgbodlqjwknjmwfqfpwpqfafoojlmvmgfejmfgfm`lvqbdfqfpjybaofjmuloujmdpfmpjwjufvmjufqpbosqlujpjlm+bowklvdkefbwvqjmd`lmgv`wfg*/#tkj`k#`lmwjmvfg.kfbgfq!=Efaqvbqz#mvnfqlvp#lufqeolt9`lnslmfmweqbdnfmwpf{`foofmw`lopsbm>!wf`kmj`bomfbq#wkf#Bgubm`fg#plvq`f#lef{sqfppfgKlmd#Hlmd#Eb`fallhnvowjsof#nf`kbmjpnfofubwjlmleefmpjuf?,elqn=\t\npslmplqfggl`vnfmw-lq#%rvlw8wkfqf#bqfwklpf#tklnlufnfmwpsql`fppfpgjeej`vowpvanjwwfgqf`lnnfmg`lmujm`fgsqlnlwjmd!#tjgwk>!-qfsob`f+`obppj`bo`lbojwjlmkjp#ejqpwgf`jpjlmpbppjpwbmwjmgj`bwfgfulovwjlm.tqbssfq!fmlvdk#wlbolmd#wkfgfojufqfg..=\t?"..Bnfqj`bm#sqlwf`wfgMlufnafq#?,pwzof=?evqmjwvqfJmwfqmfw##lmaovq>!pvpsfmgfgqf`jsjfmwabpfg#lm#Nlqflufq/balojpkfg`loof`wfgtfqf#nbgffnlwjlmbofnfqdfm`zmbqqbwjufbgul`bwfps{8alqgfq`lnnjwwfggjq>!owq!fnsolzffpqfpfbq`k-#pfof`wfgpv``fpplq`vpwlnfqpgjpsobzfgPfswfnafqbgg@obpp+Eb`fallh#pvddfpwfgbmg#obwfqlsfqbwjmdfobalqbwfPlnfwjnfpJmpwjwvwf`fqwbjmozjmpwboofgelooltfqpIfqvpbofnwkfz#kbuf`lnsvwjmddfmfqbwfgsqlujm`fpdvbqbmwffbqajwqbqzqf`ldmjyftbmwfg#wls{8tjgwk9wkflqz#leafkbujlvqTkjof#wkffpwjnbwfgafdbm#wl#jw#af`bnfnbdmjwvgfnvpw#kbufnlqf#wkbmGjqf`wlqzf{wfmpjlmpf`qfwbqzmbwvqboozl``vqqjmdubqjbaofpdjufm#wkfsobwelqn-?,obafo=?ebjofg#wl`lnslvmgphjmgp#le#pl`jfwjfpbolmdpjgf#..%dw8\t\tplvwktfpwwkf#qjdkwqbgjbwjlmnbz#kbuf#vmfp`bsf+pslhfm#jm!#kqfe>!,sqldqbnnflmoz#wkf#`lnf#eqlngjqf`wlqzavqjfg#jmb#pjnjobqwkfz#tfqf?,elmw=?,Mlqtfdjbmpsf`jejfgsqlgv`jmdsbppfmdfq+mft#Gbwfwfnslqbqzej`wjlmboBewfq#wkffrvbwjlmpgltmolbg-qfdvobqozgfufolsfqbaluf#wkfojmhfg#wlskfmlnfmbsfqjlg#lewllowjs!=pvapwbm`fbvwlnbwj`bpsf`w#leBnlmd#wkf`lmmf`wfgfpwjnbwfpBjq#Elq`fpzpwfn#lelaif`wjufjnnfgjbwfnbhjmd#jwsbjmwjmdp`lmrvfqfgbqf#pwjoosql`fgvqfdqltwk#lekfbgfg#azFvqlsfbm#gjujpjlmpnlof`vofpeqbm`kjpfjmwfmwjlmbwwqb`wfg`kjogkllgbopl#vpfggfgj`bwfgpjmdbslqfgfdqff#leebwkfq#le`lmeoj`wp?,b=?,s=\t`bnf#eqlntfqf#vpfgmlwf#wkbwqf`fjujmdF{f`vwjuffufm#nlqfb``fpp#wl`lnnbmgfqSlojwj`bonvpj`jbmpgfoj`jlvpsqjplmfqpbgufmw#leVWE.;!#,=?"X@GBWBX!=@lmwb`wPlvwkfqm#ad`lolq>!pfqjfp#le-#Jw#tbp#jm#Fvqlsfsfqnjwwfgubojgbwf-bssfbqjmdleej`jboppfqjlvpoz.obmdvbdfjmjwjbwfgf{wfmgjmdolmd.wfqnjmeobwjlmpv`k#wkbwdfw@llhjfnbqhfg#az?,avwwlm=jnsofnfmwavw#jw#jpjm`qfbpfpgltm#wkf#qfrvjqjmdgfsfmgfmw..=\t?"..#jmwfqujftTjwk#wkf#`lsjfp#le`lmpfmpvptbp#avjowUfmfyvfob+elqnfqozwkf#pwbwfsfqplmmfopwqbwfdj`ebulvq#lejmufmwjlmTjhjsfgjb`lmwjmfmwujqwvbooztkj`k#tbpsqjm`jsof@lnsofwf#jgfmwj`bopklt#wkbwsqjnjwjufbtbz#eqlnnlof`vobqsqf`jpfozgjpploufgVmgfq#wkfufqpjlm>!=%maps8?,Jw#jp#wkf#Wkjp#jp#tjoo#kbuflqdbmjpnpplnf#wjnfEqjfgqj`ktbp#ejqpwwkf#lmoz#eb`w#wkbwelqn#jg>!sqf`fgjmdWf`kmj`boskzpj`jpwl``vqp#jmmbujdbwlqpf`wjlm!=psbm#jg>!plvdkw#wlafolt#wkfpvqujujmd~?,pwzof=kjp#gfbwkbp#jm#wkf`bvpfg#azsbqwjboozf{jpwjmd#vpjmd#wkftbp#djufmb#ojpw#leofufop#lemlwjlm#leLeej`jbo#gjpnjppfgp`jfmwjpwqfpfnaofpgvsoj`bwff{solpjufqf`lufqfgboo#lwkfqdboofqjfpxsbggjmd9sflsof#leqfdjlm#lebggqfppfpbppl`jbwfjnd#bow>!jm#nlgfqmpklvog#afnfwklg#leqfslqwjmdwjnfpwbnsmffgfg#wlwkf#Dqfbwqfdbqgjmdpffnfg#wlujftfg#bpjnsb`w#lmjgfb#wkbwwkf#Tlqogkfjdkw#lef{sbmgjmdWkfpf#bqf`vqqfmw!=`bqfevooznbjmwbjmp`kbqdf#le@obppj`bobggqfppfgsqfgj`wfgltmfqpkjs?gju#jg>!qjdkw!=\tqfpjgfm`fofbuf#wkf`lmwfmw!=bqf#lewfm##~*+*8\tsqlabaoz#Sqlefpplq.avwwlm!#qfpslmgfgpbzp#wkbwkbg#wl#afsob`fg#jmKvmdbqjbmpwbwvp#lepfqufp#bpVmjufqpbof{f`vwjlmbddqfdbwfelq#tkj`kjmef`wjlmbdqffg#wlkltfufq/#slsvobq!=sob`fg#lm`lmpwqv`wfof`wlqbopznalo#lejm`ovgjmdqfwvqm#wlbq`kjwf`w@kqjpwjbmsqfujlvp#ojujmd#jmfbpjfq#wlsqlefpplq\t%ow8"..#feef`w#lebmbozwj`ptbp#wbhfmtkfqf#wkfwllh#lufqafojfe#jmBeqjhbbmpbp#ebq#bpsqfufmwfgtlqh#tjwkb#psf`jbo?ejfogpfw@kqjpwnbpQfwqjfufg\t\tJm#wkf#ab`h#jmwlmlqwkfbpwnbdbyjmfp=?pwqlmd=`lnnjwwffdlufqmjmddqlvsp#lepwlqfg#jmfpwbaojpkb#dfmfqbojwp#ejqpwwkfjq#ltmslsvobwfgbm#laif`w@bqjaafbmboolt#wkfgjpwqj`wptjp`lmpjmol`bwjlm-8#tjgwk9#jmkbajwfgPl`jbojpwIbmvbqz#2?,ellwfq=pjnjobqoz`klj`f#lewkf#pbnf#psf`jej`#avpjmfpp#Wkf#ejqpw-ofmdwk8#gfpjqf#wlgfbo#tjwkpjm`f#wkfvpfqBdfmw`lm`fjufgjmgf{-sksbp#%rvlw8fmdbdf#jmqf`fmwoz/eft#zfbqptfqf#bopl\t?kfbg=\t?fgjwfg#azbqf#hmltm`jwjfp#jmb``fpphfz`lmgfnmfgbopl#kbufpfquj`fp/ebnjoz#leP`kllo#le`lmufqwfgmbwvqf#le#obmdvbdfnjmjpwfqp?,laif`w=wkfqf#jp#b#slsvobqpfrvfm`fpbgul`bwfgWkfz#tfqfbmz#lwkfqol`bwjlm>fmwfq#wkfnv`k#nlqfqfeof`wfgtbp#mbnfglqjdjmbo#b#wzsj`botkfm#wkfzfmdjmffqp`lvog#mlwqfpjgfmwptfgmfpgbzwkf#wkjqg#sqlgv`wpIbmvbqz#1tkbw#wkfzb#`fqwbjmqfb`wjlmpsql`fpplqbewfq#kjpwkf#obpw#`lmwbjmfg!=?,gju=\t?,b=?,wg=gfsfmg#lmpfbq`k!=\tsjf`fp#le`lnsfwjmdQfefqfm`fwfmmfppfftkj`k#kbp#ufqpjlm>?,psbm=#??,kfbgfq=djufp#wkfkjpwlqjbmubovf>!!=sbggjmd93ujft#wkbwwldfwkfq/wkf#nlpw#tbp#elvmgpvapfw#lebwwb`h#lm`kjogqfm/sljmwp#lesfqplmbo#slpjwjlm9boofdfgoz@ofufobmgtbp#obwfqbmg#bewfqbqf#djufmtbp#pwjoop`qloojmdgfpjdm#lenbhfp#wkfnv`k#ofppBnfqj`bmp-\t\tBewfq#/#avw#wkfNvpfvn#leolvjpjbmb+eqln#wkfnjmmfplwbsbqwj`ofpb#sql`fppGlnjmj`bmulovnf#leqfwvqmjmdgfefmpjuf33s{qjdknbgf#eqlnnlvpflufq!#pwzof>!pwbwfp#le+tkj`k#jp`lmwjmvfpEqbm`jp`lavjogjmd#tjwklvw#btjwk#plnftkl#tlvogb#elqn#leb#sbqw#leafelqf#jwhmltm#bp##Pfquj`fpol`bwjlm#bmg#lewfmnfbpvqjmdbmg#jw#jpsbsfqab`hubovfp#le\t?wjwof=>#tjmglt-gfwfqnjmffq%rvlw8#sobzfg#azbmg#fbqoz?,`fmwfq=eqln#wkjpwkf#wkqffsltfq#bmgle#%rvlw8jmmfqKWNO?b#kqfe>!z9jmojmf8@kvq`k#lewkf#fufmwufqz#kjdkleej`jbo#.kfjdkw9#`lmwfmw>!,`dj.ajm,wl#`qfbwfbeqjhbbmpfpsfqbmwleqbm/Kbjpobwujf)Mvojfwvuj)_(`f)Mwjmb(af)Mwjmb\fUh\fT{\fTN\n{I\np@Fr\vBl\bQ\tA{\vUmGx\tA{ypYA\0zX\bTV\bWl\bUdBM\vB{\npV\v@xB\\\np@DbGz\tal\npa\tfM\tuD\bV~mx\vQ}\ndS\tp\\\bVK\bS]\bU|oD\tkV\ved\vHR\nb~M`\nJpoD|Q\nLPSw\bTl\nAI\nxC\bWt\tBqF`Cm\vLm\tKx\t}t\bPv\ny\\\naB\tV\nZdXUli\tfr\ti@\tBHBDBV\t`V\n[]\tp_\tTn\n~A\nxR\tuD\t`{\bV@\tTn\tHK\tAJ\vxsZf\nqIZf\vBM\v|j\t}t\bSM\nmC\vQ}pfquj`jlpbqw/A`volbqdfmwjmbabq`folmb`vborvjfqsvaoj`bglsqlgv`wlpslo/Awj`bqfpsvfpwbtjhjsfgjbpjdvjfmwfa/Vprvfgb`lnvmjgbgpfdvqjgbgsqjm`jsbosqfdvmwbp`lmwfmjglqfpslmgfqufmfyvfobsqlaofnbpgj`jfnaqfqfob`j/_mmlujfnaqfpjnjobqfpsqlzf`wlpsqldqbnbpjmpwjwvwlb`wjujgbgfm`vfmwqbf`lmln/Abjn/Mdfmfp`lmwb`wbqgfp`bqdbqmf`fpbqjlbwfm`j/_mwfo/Eelml`lnjpj/_m`bm`jlmfp`bsb`jgbgfm`lmwqbqbm/Mojpjpebulqjwlpw/Eqnjmlpsqlujm`jbfwjrvfwbpfofnfmwlpevm`jlmfpqfpvowbgl`bq/M`wfqsqlsjfgbgsqjm`jsjlmf`fpjgbgnvmj`jsbo`qfb`j/_mgfp`bqdbpsqfpfm`jb`lnfq`jbolsjmjlmfpfifq`j`jlfgjwlqjbopbobnbm`bdlmy/Mofygl`vnfmwlsfo/A`vobqf`jfmwfpdfmfqbofpwbqqbdlmbsq/M`wj`bmlufgbgfpsqlsvfpwbsb`jfmwfpw/E`mj`bplaifwjulp`lmwb`wlp\fHB\fIk\fHn\fH^\fHS\fHc\fHU\fId\fHn\fH{\fHC\fHR\fHT\fHR\fHI\fHc\fHY\fHn\fH\\\fHU\fIk\fHy\fIg\fHd\fHy\fIm\fHw\fH\\\fHU\fHR\fH@\fHR\fHJ\fHy\fHU\fHR\fHT\fHA\fIl\fHU\fIm\fHc\fH\\\fHU\fIl\fHB\fId\fHn\fHJ\fHS\fHD\fH@\fHR\fHHgjsolgl`p\fHT\fHB\fHC\fH\\\fIn\fHF\fHD\fHR\fHB\fHF\fHH\fHR\fHG\fHS\fH\\\fHx\fHT\fHH\fHH\fH\\\fHU\fH^\fIg\fH{\fHU\fIm\fHj\fH@\fHR\fH\\\fHJ\fIk\fHZ\fHU\fIm\fHd\fHz\fIk\fH^\fHC\fHJ\fHS\fHy\fHR\fHB\fHY\fIk\fH@\fHH\fIl\fHD\fH@\fIl\fHv\fHB\fI`\fHH\fHT\fHR\fH^\fH^\fIk\fHz\fHp\fIe\fH@\fHB\fHJ\fHJ\fHH\fHI\fHR\fHD\fHU\fIl\fHZ\fHU\fH\\\fHi\fH^\fH{\fHy\fHA\fIl\fHD\fH{\fH\\\fHF\fHR\fHT\fH\\\fHR\fHH\fHy\fHS\fHc\fHe\fHT\fIk\fH{\fHC\fIl\fHU\fIn\fHm\fHj\fH{\fIk\fHs\fIl\fHB\fHz\fIg\fHp\fHy\fHR\fH\\\fHi\fHA\fIl\fH{\fHC\fIk\fHH\fIm\fHB\fHY\fIg\fHs\fHJ\fIk\fHn\fHi\fH{\fH\\\fH|\fHT\fIk\fHB\fIk\fH^\fH^\fH{\fHR\fHU\fHR\fH^\fHf\fHF\fH\\\fHv\fHR\fH\\\fH|\fHT\fHR\fHJ\fIk\fH\\\fHp\fHS\fHT\fHJ\fHS\fH^\fH@\fHn\fHJ\fH@\fHD\fHR\fHU\fIn\fHn\fH^\fHR\fHz\fHp\fIl\fHH\fH@\fHs\fHD\fHB\fHS\fH^\fHk\fHT\fIk\fHj\fHD\fIk\fHD\fHC\fHR\fHy\fIm\fH^\fH^\fIe\fH{\fHA\fHR\fH{\fH\\\fIk\fH^\fHp\fH{\fHU\fH\\\fHR\fHB\fH^\fH{\fIk\fHF\fIk\fHp\fHU\fHR\fHI\fHk\fHT\fIl\fHT\fHU\fIl\fHy\fH^\fHR\fHL\fIl\fHy\fHU\fHR\fHm\fHJ\fIn\fH\\\fHH\fHU\fHH\fHT\fHR\fHH\fHC\fHR\fHJ\fHj\fHC\fHR\fHF\fHR\fHy\fHy\fI`\fHD\fHZ\fHR\fHB\fHJ\fIk\fHz\fHC\fHU\fIl\fH\\\fHR\fHC\fHz\fIm\fHJ\fH^\fH{\fIl`bwfdlqjfpf{sfqjfm`f?,wjwof=\t@lszqjdkw#ibubp`qjsw`lmgjwjlmpfufqzwkjmd?s#`obpp>!wf`kmloldzab`hdqlvmg?b#`obpp>!nbmbdfnfmw%`lsz8#132ibubP`qjsw`kbqb`wfqpaqfbg`qvnawkfnpfoufpklqjylmwbodlufqmnfmw@bojelqmjbb`wjujwjfpgjp`lufqfgMbujdbwjlmwqbmpjwjlm`lmmf`wjlmmbujdbwjlmbssfbqbm`f?,wjwof=?n`kf`hal{!#wf`kmjrvfpsqlwf`wjlmbssbqfmwozbp#tfoo#bpvmw$/#$VB.qfplovwjlmlsfqbwjlmpwfofujpjlmwqbmpobwfgTbpkjmdwlmmbujdbwlq-#>#tjmglt-jnsqfppjlm%ow8aq%dw8ojwfqbwvqfslsvobwjlmad`lolq>! fpsf`jbooz#`lmwfmw>!sqlgv`wjlmmftpofwwfqsqlsfqwjfpgfejmjwjlmofbgfqpkjsWf`kmloldzSbqojbnfmw`lnsbqjplmvo#`obpp>!-jmgf{Le+!`lm`ovpjlmgjp`vppjlm`lnslmfmwpajloldj`boQfulovwjlm\\`lmwbjmfqvmgfqpwllgmlp`qjsw=?sfqnjppjlmfb`k#lwkfqbwnlpskfqf#lmel`vp>!?elqn#jg>!sql`fppjmdwkjp-ubovfdfmfqbwjlm@lmefqfm`fpvapfrvfmwtfoo.hmltmubqjbwjlmpqfsvwbwjlmskfmlnfmlmgjp`jsojmfoldl-smd!#+gl`vnfmw/alvmgbqjfpf{sqfppjlmpfwwofnfmwAb`hdqlvmglvw#le#wkffmwfqsqjpf+!kwwsp9!#vmfp`bsf+!sbpptlqg!#gfnl`qbwj`?b#kqfe>!,tqbssfq!=\tnfnafqpkjsojmdvjpwj`s{8sbggjmdskjolplskzbppjpwbm`fvmjufqpjwzeb`jojwjfpqf`ldmjyfgsqfefqfm`fje#+wzsflenbjmwbjmfgul`bavobqzkzslwkfpjp-pvanjw+*8%bns8maps8bmmlwbwjlmafkjmg#wkfElvmgbwjlmsvaojpkfq!bppvnswjlmjmwqlgv`fg`lqqvswjlmp`jfmwjpwpf{soj`jwozjmpwfbg#legjnfmpjlmp#lm@oj`h>!`lmpjgfqfggfsbqwnfmwl``vsbwjlmpllm#bewfqjmufpwnfmwsqlmlvm`fgjgfmwjejfgf{sfqjnfmwNbmbdfnfmwdfldqbskj`!#kfjdkw>!ojmh#qfo>!-qfsob`f+,gfsqfppjlm`lmefqfm`fsvmjpknfmwfojnjmbwfgqfpjpwbm`fbgbswbwjlmlsslpjwjlmtfoo#hmltmpvssofnfmwgfwfqnjmfgk2#`obpp>!3s{8nbqdjmnf`kbmj`bopwbwjpwj`p`fofaqbwfgDlufqmnfmw\t\tGvqjmd#wgfufolsfqpbqwjej`jbofrvjubofmwlqjdjmbwfg@lnnjppjlmbwwb`knfmw?psbm#jg>!wkfqf#tfqfMfgfqobmgpafzlmg#wkfqfdjpwfqfgilvqmbojpweqfrvfmwozboo#le#wkfobmd>!fm!#?,pwzof=\tbaplovwf8#pvsslqwjmdf{wqfnfoz#nbjmpwqfbn?,pwqlmd=#slsvobqjwzfnsolznfmw?,wbaof=\t#`lopsbm>!?,elqn=\t##`lmufqpjlmbalvw#wkf#?,s=?,gju=jmwfdqbwfg!#obmd>!fmSlqwvdvfpfpvapwjwvwfjmgjujgvbojnslppjaofnvowjnfgjbbonlpw#boos{#plojg# bsbqw#eqlnpvaif`w#wljm#Fmdojpk`qjwj`jyfgf{`fsw#elqdvjgfojmfplqjdjmboozqfnbqhbaofwkf#pf`lmgk1#`obpp>!?b#wjwof>!+jm`ovgjmdsbqbnfwfqpsqlkjajwfg>#!kwws9,,gj`wjlmbqzsfq`fswjlmqfulovwjlmelvmgbwjlms{8kfjdkw9pv``fppevopvsslqwfqpnjoofmmjvnkjp#ebwkfqwkf#%rvlw8ml.qfsfbw8`lnnfq`jbojmgvpwqjbofm`lvqbdfgbnlvmw#le#vmleej`jbofeej`jfm`zQfefqfm`fp`llqgjmbwfgjp`objnfqf{sfgjwjlmgfufolsjmd`bo`vobwfgpjnsojejfgofdjwjnbwfpvapwqjmd+3!#`obpp>!`lnsofwfozjoovpwqbwfejuf#zfbqpjmpwqvnfmwSvaojpkjmd2!#`obpp>!spz`kloldz`lmejgfm`fmvnafq#le#bapfm`f#leel`vpfg#lmiljmfg#wkfpwqv`wvqfpsqfujlvpoz=?,jeqbnf=lm`f#bdbjmavw#qbwkfqjnnjdqbmwple#`lvqpf/b#dqlvs#leOjwfqbwvqfVmojhf#wkf?,b=%maps8\tevm`wjlm#jw#tbp#wkf@lmufmwjlmbvwlnlajofSqlwfpwbmwbddqfppjufbewfq#wkf#Pjnjobqoz/!#,=?,gju=`loof`wjlm\tevm`wjlmujpjajojwzwkf#vpf#leulovmwffqpbwwqb`wjlmvmgfq#wkf#wkqfbwfmfg)?"X@GBWBXjnslqwbm`fjm#dfmfqbowkf#obwwfq?,elqn=\t?,-jmgf{Le+$j#>#38#j#?gjeefqfm`fgfulwfg#wlwqbgjwjlmppfbq`k#elqvowjnbwfozwlvqmbnfmwbwwqjavwfppl.`boofg#~\t?,pwzof=fubovbwjlmfnskbpjyfgb``fppjaof?,pf`wjlm=pv``fppjlmbolmd#tjwkNfbmtkjof/jmgvpwqjfp?,b=?aq#,=kbp#af`lnfbpsf`wp#leWfofujpjlmpveej`jfmwabphfwabooalwk#pjgfp`lmwjmvjmdbm#bqwj`of?jnd#bow>!bgufmwvqfpkjp#nlwkfqnbm`kfpwfqsqjm`jsofpsbqwj`vobq`lnnfmwbqzfeef`wp#legf`jgfg#wl!=?pwqlmd=svaojpkfqpIlvqmbo#legjeej`vowzeb`jojwbwfb``fswbaofpwzof-`pp!\nevm`wjlm#jmmlubwjlm=@lszqjdkwpjwvbwjlmptlvog#kbufavpjmfppfpGj`wjlmbqzpwbwfnfmwplewfm#vpfgsfqpjpwfmwjm#Ibmvbqz`lnsqjpjmd?,wjwof=\t\ngjsolnbwj``lmwbjmjmdsfqelqnjmdf{wfmpjlmpnbz#mlw#af`lm`fsw#le#lm`oj`h>!Jw#jp#boplejmbm`jbo#nbhjmd#wkfOv{fnalvqdbggjwjlmbobqf#`boofgfmdbdfg#jm!p`qjsw!*8avw#jw#tbpfof`wqlmj`lmpvanjw>!\t?"..#Fmg#fof`wqj`boleej`jboozpvddfpwjlmwls#le#wkfvmojhf#wkfBvpwqbojbmLqjdjmboozqfefqfm`fp\t?,kfbg=\tqf`ldmjpfgjmjwjbojyfojnjwfg#wlBof{bmgqjbqfwjqfnfmwBgufmwvqfpelvq#zfbqp\t\t%ow8"..#jm`qfbpjmdgf`lqbwjlmk0#`obpp>!lqjdjmp#lelaojdbwjlmqfdvobwjlm`obppjejfg+evm`wjlm+bgubmwbdfpafjmd#wkf#kjpwlqjbmp?abpf#kqfeqfsfbwfgoztjoojmd#wl`lnsbqbaofgfpjdmbwfgmlnjmbwjlmevm`wjlmbojmpjgf#wkfqfufobwjlmfmg#le#wkfp#elq#wkf#bvwklqjyfgqfevpfg#wlwbhf#sob`fbvwlmlnlvp`lnsqlnjpfslojwj`bo#qfpwbvqbmwwtl#le#wkfEfaqvbqz#1rvbojwz#leptelaif`w-vmgfqpwbmgmfbqoz#bootqjwwfm#azjmwfqujftp!#tjgwk>!2tjwkgqbtboeolbw9ofewjp#vpvbooz`bmgjgbwfpmftpsbsfqpnzpwfqjlvpGfsbqwnfmwafpw#hmltmsbqojbnfmwpvssqfppfg`lmufmjfmwqfnfnafqfggjeefqfmw#pzpwfnbwj`kbp#ofg#wlsqlsbdbmgb`lmwqloofgjmeovfm`fp`fqfnlmjbosql`objnfgSqlwf`wjlmoj#`obpp>!P`jfmwjej``obpp>!ml.wqbgfnbqhpnlqf#wkbm#tjgfpsqfbgOjafqbwjlmwllh#sob`fgbz#le#wkfbp#olmd#bpjnsqjplmfgBggjwjlmbo\t?kfbg=\t?nObalqbwlqzMlufnafq#1f{`fswjlmpJmgvpwqjboubqjfwz#leeolbw9#ofeGvqjmd#wkfbppfppnfmwkbuf#affm#gfbop#tjwkPwbwjpwj`pl``vqqfm`f,vo=?,gju=`ofbqej{!=wkf#svaoj`nbmz#zfbqptkj`k#tfqflufq#wjnf/pzmlmznlvp`lmwfmw!=\tsqfpvnbaozkjp#ebnjozvpfqBdfmw-vmf{sf`wfgjm`ovgjmd#`kboofmdfgb#njmlqjwzvmgfejmfg!afolmdp#wlwbhfm#eqlnjm#L`wlafqslpjwjlm9#pbjg#wl#afqfojdjlvp#Efgfqbwjlm#qltpsbm>!lmoz#b#eftnfbmw#wkbwofg#wl#wkf..=\t?gju#?ejfogpfw=Bq`kajpkls#`obpp>!mlafjmd#vpfgbssqlb`kfpsqjujofdfpmlp`qjsw=\tqfpvowp#jmnbz#af#wkfFbpwfq#fddnf`kbmjpnpqfbplmbaofSlsvobwjlm@loof`wjlmpfof`wfg!=mlp`qjsw=,jmgf{-sksbqqjubo#le.ippgh$**8nbmbdfg#wljm`lnsofwf`bpvbowjfp`lnsofwjlm@kqjpwjbmpPfswfnafq#bqjwknfwj`sql`fgvqfpnjdkw#kbufSqlgv`wjlmjw#bssfbqpSkjolplskzeqjfmgpkjsofbgjmd#wldjujmd#wkfwltbqg#wkfdvbqbmwffggl`vnfmwfg`lolq9 333ujgfl#dbnf`lnnjppjlmqfeof`wjmd`kbmdf#wkfbppl`jbwfgpbmp.pfqjelmhfzsqfpp8#sbggjmd9Kf#tbp#wkfvmgfqozjmdwzsj`booz#/#bmg#wkf#pq`Fofnfmwpv``fppjufpjm`f#wkf#pklvog#af#mfwtlqhjmdb``lvmwjmdvpf#le#wkfoltfq#wkbmpkltp#wkbw?,psbm=\t\n\n`lnsobjmwp`lmwjmvlvprvbmwjwjfpbpwqlmlnfqkf#gjg#mlwgvf#wl#jwpbssojfg#wlbm#bufqbdffeelqwp#wlwkf#evwvqfbwwfnsw#wlWkfqfelqf/`bsbajojwzQfsvaoj`bmtbp#elqnfgFof`wqlmj`hjolnfwfqp`kboofmdfpsvaojpkjmdwkf#elqnfqjmgjdfmlvpgjqf`wjlmppvapjgjbqz`lmpsjqb`zgfwbjop#lebmg#jm#wkfbeelqgbaofpvapwbm`fpqfbplm#elq`lmufmwjlmjwfnwzsf>!baplovwfozpvsslpfgozqfnbjmfg#bbwwqb`wjufwqbufoojmdpfsbqbwfozel`vpfp#lmfofnfmwbqzbssoj`baofelvmg#wkbwpwzofpkffwnbmvp`qjswpwbmgp#elq#ml.qfsfbw+plnfwjnfp@lnnfq`jbojm#Bnfqj`bvmgfqwbhfmrvbqwfq#lebm#f{bnsofsfqplmboozjmgf{-sks<?,avwwlm=\tsfq`fmwbdfafpw.hmltm`qfbwjmd#b!#gjq>!owqOjfvwfmbmw\t?gju#jg>!wkfz#tlvogbajojwz#lenbgf#vs#lemlwfg#wkbw`ofbq#wkbwbqdvf#wkbwwl#bmlwkfq`kjogqfm$psvqslpf#leelqnvobwfgabpfg#vslmwkf#qfdjlmpvaif`w#lesbppfmdfqpslppfppjlm-\t\tJm#wkf#Afelqf#wkfbewfqtbqgp`vqqfmwoz#b`qlpp#wkfp`jfmwjej``lnnvmjwz-`bsjwbojpnjm#Dfqnbmzqjdkw.tjmdwkf#pzpwfnPl`jfwz#leslojwj`jbmgjqf`wjlm9tfmw#lm#wlqfnlubo#le#Mft#Zlqh#bsbqwnfmwpjmgj`bwjlmgvqjmd#wkfvmofpp#wkfkjpwlqj`bokbg#affm#bgfejmjwjufjmdqfgjfmwbwwfmgbm`f@fmwfq#elqsqlnjmfm`fqfbgzPwbwfpwqbwfdjfpavw#jm#wkfbp#sbqw#le`lmpwjwvwf`objn#wkbwobalqbwlqz`lnsbwjaofebjovqf#le/#pv`k#bp#afdbm#tjwkvpjmd#wkf#wl#sqlujgfefbwvqf#leeqln#tkj`k,!#`obpp>!dfloldj`bopfufqbo#legfojafqbwfjnslqwbmw#klogp#wkbwjmd%rvlw8#ubojdm>wlswkf#Dfqnbmlvwpjgf#lemfdlwjbwfgkjp#`bqffqpfsbqbwjlmjg>!pfbq`ktbp#`boofgwkf#elvqwkqf`qfbwjlmlwkfq#wkbmsqfufmwjlmtkjof#wkf#fgv`bwjlm/`lmmf`wjmdb``vqbwfoztfqf#avjowtbp#hjoofgbdqffnfmwpnv`k#nlqf#Gvf#wl#wkftjgwk9#233plnf#lwkfqHjmdgln#lewkf#fmwjqfebnlvp#elqwl#`lmmf`wlaif`wjufpwkf#Eqfm`ksflsof#bmgefbwvqfg!=jp#pbjg#wlpwqv`wvqboqfefqfmgvnnlpw#lewfmb#pfsbqbwf.=\t?gju#jg#Leej`jbo#tlqogtjgf-bqjb.obafowkf#sobmfwbmg#jw#tbpg!#ubovf>!ollhjmd#bwafmfej`jbobqf#jm#wkfnlmjwlqjmdqfslqwfgozwkf#nlgfqmtlqhjmd#lmbooltfg#wltkfqf#wkf#jmmlubwjuf?,b=?,gju=plvmgwqb`hpfbq`kElqnwfmg#wl#afjmsvw#jg>!lsfmjmd#leqfpwqj`wfgbglswfg#azbggqfppjmdwkfloldjbmnfwklgp#leubqjbmw#le@kqjpwjbm#ufqz#obqdfbvwlnlwjufaz#ebq#wkfqbmdf#eqlnsvqpvjw#leeloolt#wkfaqlvdkw#wljm#Fmdobmgbdqff#wkbwb``vpfg#le`lnfp#eqlnsqfufmwjmdgju#pwzof>kjp#lq#kfqwqfnfmglvpeqffgln#le`lm`fqmjmd3#2fn#2fn8Abphfwaboo,pwzof-`ppbm#fbqojfqfufm#bewfq,!#wjwof>!-`ln,jmgf{wbhjmd#wkfsjwwpavqdk`lmwfmw!=?p`qjsw=+ewvqmfg#lvwkbujmd#wkf?,psbm=\t#l``bpjlmboaf`bvpf#jwpwbqwfg#wlskzpj`booz=?,gju=\t##`qfbwfg#az@vqqfmwoz/#ad`lolq>!wbajmgf{>!gjpbpwqlvpBmbozwj`p#bopl#kbp#b=?gju#jg>!?,pwzof=\t?`boofg#elqpjmdfq#bmg-pq`#>#!,,ujlobwjlmpwkjp#sljmw`lmpwbmwozjp#ol`bwfgqf`lqgjmdpg#eqln#wkfmfgfqobmgpslqwvdv/Fp;N;};D;u;F5m4K4]4_7`gfpbqqlool`lnfmwbqjlfgv`b`j/_mpfswjfnaqfqfdjpwqbglgjqf``j/_mvaj`b`j/_msvaoj`jgbgqfpsvfpwbpqfpvowbglpjnslqwbmwfqfpfqubglpbqw/A`volpgjefqfmwfppjdvjfmwfpqfs/Vaoj`bpjwvb`j/_mnjmjpwfqjlsqjub`jgbggjqf`wlqjlelqnb`j/_mslaob`j/_msqfpjgfmwf`lmw','fmjglpb``fplqjlpwf`kmlqbwjsfqplmbofp`bwfdlq/Abfpsf`jbofpgjpslmjaofb`wvbojgbgqfefqfm`jbuboobglojgajaojlwf`bqfob`jlmfp`bofmgbqjlslo/Awj`bpbmwfqjlqfpgl`vnfmwlpmbwvqbofybnbwfqjbofpgjefqfm`jbf`lm/_nj`bwqbmpslqwfqlgq/Advfysbqwj`jsbqfm`vfmwqbmgjp`vpj/_mfpwqv`wvqbevmgb`j/_meqf`vfmwfpsfqnbmfmwfwlwbonfmwf<P<R<Z<Q<R<]=o<X<Y=n<P<R<Z<Y=n<^=l<Y<P=c=n<\\<V<Z<Y=k=n<R<]=g<]<R<W<Y<Y<R=k<Y<Q=`=a=n<R<_<R<V<R<_<X<\\<S<R=m<W<Y<^=m<Y<_<R=m<\\<U=n<Y=k<Y=l<Y<[<P<R<_=o=n=m<\\<U=n<\\<Z<T<[<Q<T<P<Y<Z<X=o<]=o<X=o=n<s<R<T=m<V<[<X<Y=m=`<^<T<X<Y<R=m<^=c<[<T<Q=o<Z<Q<R=m<^<R<Y<U<W=b<X<Y<U<S<R=l<Q<R<P<Q<R<_<R<X<Y=n<Y<U=m<^<R<T=i<S=l<\\<^<\\=n<\\<V<R<U<P<Y=m=n<R<T<P<Y<Y=n<Z<T<[<Q=`<R<X<Q<R<U<W=o=k=d<Y<S<Y=l<Y<X=k<\\=m=n<T=k<\\=m=n=`=l<\\<]<R=n<Q<R<^=g=i<S=l<\\<^<R=m<R<]<R<U<S<R=n<R<P<P<Y<Q<Y<Y=k<T=m<W<Y<Q<R<^=g<Y=o=m<W=o<_<R<V<R<W<R<Q<\\<[<\\<X=n<\\<V<R<Y=n<R<_<X<\\<S<R=k=n<T<s<R=m<W<Y=n<\\<V<T<Y<Q<R<^=g<U=m=n<R<T=n=n<\\<V<T=i=m=l<\\<[=o<M<\\<Q<V=n=h<R=l=o<P<v<R<_<X<\\<V<Q<T<_<T=m<W<R<^<\\<Q<\\=d<Y<U<Q<\\<U=n<T=m<^<R<T<P=m<^=c<[=`<W=b<]<R<U=k<\\=m=n<R=m=l<Y<X<T<v=l<R<P<Y<H<R=l=o<P=l=g<Q<V<Y=m=n<\\<W<T<S<R<T=m<V=n=g=m=c=k<P<Y=m=c=j=j<Y<Q=n=l=n=l=o<X<\\=m<\\<P=g=i=l=g<Q<V<\\<q<R<^=g<U=k<\\=m<R<^<P<Y=m=n<\\=h<T<W=`<P<P<\\=l=n<\\=m=n=l<\\<Q<P<Y=m=n<Y=n<Y<V=m=n<Q<\\=d<T=i<P<T<Q=o=n<T<P<Y<Q<T<T<P<Y=b=n<Q<R<P<Y=l<_<R=l<R<X=m<\\<P<R<P=a=n<R<P=o<V<R<Q=j<Y=m<^<R<Y<P<V<\\<V<R<U<|=l=i<T<^5i5j4F4C5e4I4]4_4K5h4]4_4K5h4E4K5h4U4K5i5o4F4D5k4K4D4]4K5i4@4K5h5f5d5i4K5h4Y5d4]4@4C5f4C4E4K5h4U4Z5d4I4Z4K5m4E4K5h5n4_5i4K5h4U4K4D4F4A5i5f5h5i5h5m4K4F5i5h4F5n5e4F4U4C5f5h4K5h4X4U4]4O4B4D4K4]4F4[5d5f4]4U5h5f5o5i4I4]5m4K5n4[5h4D4K4F4K5h5h4V4E4F4]4F5f4D4K5h5j4K4_4K5h4X5f4B5i5j4F4C5f4K5h4U4]4D4K5h5n4Y4Y4K5m5h4K5i4U5h5f5k4K4F4A4C5f4G4K5h5h5k5i4K5h4U5i5h5i5o4F4D4E5f5i5o5j5o4K5h4[5m5h5m5f4C5f5d4I4C4K4]4E4F4K4]5f4B4K5h4Y4A4E4F4_4@5f5h4K5h5d5n4F4U5j4C5i4K5i4C5f5j4E4F4Y5i5f5i4O4]4X5f5m4K5h4\\5f5j4U4]4D5f4E4D5d4K4D4E4O5h4U4K4D4K5h4_5m4]5i4X4K5o5h4F4U4K5h5e4K5h4O5d5h4K5h4_5j4E4@4K5i4U4E4K5h4Y4A5m4K5h4C5f5j5o5h5i4K4F4K5h4B4K4Y4K5h5i5h5m4O4U4Z4K4M5o4F4K4D4E4K5h4B5f4]4]4_4K4J5h4K5h5n5h4D4K5h4O4C4D5i5n4K4[4U5i4]4K4_5h5i5j4[5n4E4K5h5o4F4D4K5h4]4@5h4K4X4F4]5o4K5h5n4C5i5f4U4[5f5opAzWbdMbnf+-isd!#bow>!2s{#plojg# -dje!#bow>!wqbmpsbqfmwjmelqnbwjlmbssoj`bwjlm!#lm`oj`h>!fpwbaojpkfgbgufqwjpjmd-smd!#bow>!fmujqlmnfmwsfqelqnbm`fbssqlsqjbwf%bns8ngbpk8jnnfgjbwfoz?,pwqlmd=?,qbwkfq#wkbmwfnsfqbwvqfgfufolsnfmw`lnsfwjwjlmsob`fklogfqujpjajojwz9`lszqjdkw!=3!#kfjdkw>!fufm#wklvdkqfsob`fnfmwgfpwjmbwjlm@lqslqbwjlm?vo#`obpp>!Bppl`jbwjlmjmgjujgvbopsfqpsf`wjufpfwWjnflvw+vqo+kwws9,,nbwkfnbwj`pnbqdjm.wls9fufmwvbooz#gfp`qjswjlm*#ml.qfsfbw`loof`wjlmp-ISDwkvnasbqwj`jsbwf,kfbg=?algzeolbw9ofew8?oj#`obpp>!kvmgqfgp#le\t\tKltfufq/#`lnslpjwjlm`ofbq9alwk8`llsfqbwjlmtjwkjm#wkf#obafo#elq>!alqgfq.wls9Mft#Yfbobmgqf`lnnfmgfgsklwldqbskzjmwfqfpwjmd%ow8pvs%dw8`lmwqlufqpzMfwkfqobmgpbowfqmbwjufnb{ofmdwk>!ptjwyfqobmgGfufolsnfmwfppfmwjbooz\t\tBowklvdk#?,wf{wbqfb=wkvmgfqajqgqfsqfpfmwfg%bns8mgbpk8psf`vobwjlm`lnnvmjwjfpofdjpobwjlmfof`wqlmj`p\t\n?gju#jg>!joovpwqbwfgfmdjmffqjmdwfqqjwlqjfpbvwklqjwjfpgjpwqjavwfg5!#kfjdkw>!pbmp.pfqje8`bsbaof#le#gjpbssfbqfgjmwfqb`wjufollhjmd#elqjw#tlvog#afBedkbmjpwbmtbp#`qfbwfgNbwk-eollq+pvqqlvmgjmd`bm#bopl#aflapfqubwjlmnbjmwfmbm`ffm`lvmwfqfg?k1#`obpp>!nlqf#qf`fmwjw#kbp#affmjmubpjlm#le*-dfwWjnf+*evmgbnfmwboGfpsjwf#wkf!=?gju#jg>!jmpsjqbwjlmf{bnjmbwjlmsqfsbqbwjlmf{sobmbwjlm?jmsvw#jg>!?,b=?,psbm=ufqpjlmp#lejmpwqvnfmwpafelqf#wkf##>#$kwws9,,Gfp`qjswjlmqfobwjufoz#-pvapwqjmd+fb`k#le#wkff{sfqjnfmwpjmeovfmwjbojmwfdqbwjlmnbmz#sflsofgvf#wl#wkf#`lnajmbwjlmgl#mlw#kbufNjggof#Fbpw?mlp`qjsw=?`lszqjdkw!#sfqkbsp#wkfjmpwjwvwjlmjm#Gf`fnafqbqqbmdfnfmwnlpw#ebnlvpsfqplmbojwz`qfbwjlm#leojnjwbwjlmpf{`ovpjufozplufqfjdmwz.`lmwfmw!=\t?wg#`obpp>!vmgfqdqlvmgsbqboofo#wlgl`wqjmf#lel``vsjfg#azwfqnjmloldzQfmbjppbm`fb#mvnafq#lepvsslqw#elqf{solqbwjlmqf`ldmjwjlmsqfgf`fpplq?jnd#pq`>!,?k2#`obpp>!svaoj`bwjlmnbz#bopl#afpsf`jbojyfg?,ejfogpfw=sqldqfppjufnjoojlmp#lepwbwfp#wkbwfmelq`fnfmwbqlvmg#wkf#lmf#bmlwkfq-sbqfmwMlgfbdqj`vowvqfBowfqmbwjufqfpfbq`kfqpwltbqgp#wkfNlpw#le#wkfnbmz#lwkfq#+fpsf`jbooz?wg#tjgwk>!8tjgwk9233&jmgfsfmgfmw?k0#`obpp>!#lm`kbmdf>!*-bgg@obpp+jmwfqb`wjlmLmf#le#wkf#gbvdkwfq#leb``fpplqjfpaqbm`kfp#le\t?gju#jg>!wkf#obqdfpwgf`obqbwjlmqfdvobwjlmpJmelqnbwjlmwqbmpobwjlmgl`vnfmwbqzjm#lqgfq#wl!=\t?kfbg=\t?!#kfjdkw>!2b`qlpp#wkf#lqjfmwbwjlm*8?,p`qjsw=jnsofnfmwfg`bm#af#pffmwkfqf#tbp#bgfnlmpwqbwf`lmwbjmfq!=`lmmf`wjlmpwkf#Aqjwjpktbp#tqjwwfm"jnslqwbmw8s{8#nbqdjm.elooltfg#azbajojwz#wl#`lnsoj`bwfggvqjmd#wkf#jnnjdqbwjlmbopl#`boofg?k7#`obpp>!gjpwjm`wjlmqfsob`fg#azdlufqmnfmwpol`bwjlm#lejm#Mlufnafqtkfwkfq#wkf?,s=\t?,gju=b`rvjpjwjlm`boofg#wkf#sfqpf`vwjlmgfpjdmbwjlmxelmw.pjyf9bssfbqfg#jmjmufpwjdbwff{sfqjfm`fgnlpw#ojhfoztjgfoz#vpfggjp`vppjlmpsqfpfm`f#le#+gl`vnfmw-f{wfmpjufozJw#kbp#affmjw#glfp#mlw`lmwqbqz#wljmkbajwbmwpjnsqlufnfmwp`klobqpkjs`lmpvnswjlmjmpwqv`wjlmelq#f{bnsoflmf#lq#nlqfs{8#sbggjmdwkf#`vqqfmwb#pfqjfp#lebqf#vpvboozqlof#jm#wkfsqfujlvpoz#gfqjubwjufpfujgfm`f#lef{sfqjfm`fp`lolqp`kfnfpwbwfg#wkbw`fqwjej`bwf?,b=?,gju=\t#pfof`wfg>!kjdk#p`klloqfpslmpf#wl`lnelqwbaofbglswjlm#lewkqff#zfbqpwkf#`lvmwqzjm#Efaqvbqzpl#wkbw#wkfsflsof#tkl#sqlujgfg#az?sbqbn#mbnfbeef`wfg#azjm#wfqnp#lebssljmwnfmwJPL.;;6:.2!tbp#alqm#jmkjpwlqj`bo#qfdbqgfg#bpnfbpvqfnfmwjp#abpfg#lm#bmg#lwkfq#9#evm`wjlm+pjdmjej`bmw`fofaqbwjlmwqbmpnjwwfg,ip,irvfqz-jp#hmltm#bpwkflqfwj`bo#wbajmgf{>!jw#`lvog#af?mlp`qjsw=\tkbujmd#affm\t?kfbg=\t?#%rvlw8Wkf#`lnsjobwjlmkf#kbg#affmsqlgv`fg#azskjolplskfq`lmpwqv`wfgjmwfmgfg#wlbnlmd#lwkfq`lnsbqfg#wlwl#pbz#wkbwFmdjmffqjmdb#gjeefqfmwqfefqqfg#wlgjeefqfm`fpafojfe#wkbwsklwldqbskpjgfmwjezjmdKjpwlqz#le#Qfsvaoj`#lemf`fppbqjozsqlabajojwzwf`kmj`boozofbujmd#wkfpsf`wb`vobqeqb`wjlm#lefof`wqj`jwzkfbg#le#wkfqfpwbvqbmwpsbqwmfqpkjsfnskbpjp#lmnlpw#qf`fmwpkbqf#tjwk#pbzjmd#wkbwejoofg#tjwkgfpjdmfg#wljw#jp#lewfm!=?,jeqbnf=bp#elooltp9nfqdfg#tjwkwkqlvdk#wkf`lnnfq`jbo#sljmwfg#lvwlsslqwvmjwzujft#le#wkfqfrvjqfnfmwgjujpjlm#lesqldqbnnjmdkf#qf`fjufgpfwJmwfqubo!=?,psbm=?,jm#Mft#Zlqhbggjwjlmbo#`lnsqfppjlm\t\t?gju#jg>!jm`lqslqbwf8?,p`qjsw=?bwwb`kFufmwaf`bnf#wkf#!#wbqdfw>!\\`bqqjfg#lvwPlnf#le#wkfp`jfm`f#bmgwkf#wjnf#le@lmwbjmfq!=nbjmwbjmjmd@kqjpwlskfqNv`k#le#wkftqjwjmdp#le!#kfjdkw>!1pjyf#le#wkfufqpjlm#le#nj{wvqf#le#afwtffm#wkfF{bnsofp#lefgv`bwjlmbo`lnsfwjwjuf#lmpvanjw>!gjqf`wlq#legjpwjm`wjuf,GWG#[KWNO#qfobwjmd#wlwfmgfm`z#wlsqlujm`f#letkj`k#tlvoggfpsjwf#wkfp`jfmwjej`#ofdjpobwvqf-jmmfqKWNO#boofdbwjlmpBdqj`vowvqftbp#vpfg#jmbssqlb`k#wljmwfoojdfmwzfbqp#obwfq/pbmp.pfqjegfwfqnjmjmdSfqelqnbm`fbssfbqbm`fp/#tkj`k#jp#elvmgbwjlmpbaaqfujbwfgkjdkfq#wkbmp#eqln#wkf#jmgjujgvbo#`lnslpfg#lepvsslpfg#wl`objnp#wkbwbwwqjavwjlmelmw.pjyf92fofnfmwp#leKjpwlqj`bo#kjp#aqlwkfqbw#wkf#wjnfbmmjufqpbqzdlufqmfg#azqfobwfg#wl#vowjnbwfoz#jmmlubwjlmpjw#jp#pwjoo`bm#lmoz#afgfejmjwjlmpwlDNWPwqjmdB#mvnafq#lejnd#`obpp>!Fufmwvbooz/tbp#`kbmdfgl``vqqfg#jmmfjdkalqjmdgjpwjmdvjpktkfm#kf#tbpjmwqlgv`jmdwfqqfpwqjboNbmz#le#wkfbqdvfp#wkbwbm#Bnfqj`bm`lmrvfpw#letjgfpsqfbg#tfqf#hjoofgp`qffm#bmg#Jm#lqgfq#wlf{sf`wfg#wlgfp`fmgbmwpbqf#ol`bwfgofdjpobwjufdfmfqbwjlmp#ab`hdqlvmgnlpw#sflsofzfbqp#bewfqwkfqf#jp#mlwkf#kjdkfpweqfrvfmwoz#wkfz#gl#mlwbqdvfg#wkbwpkltfg#wkbwsqfglnjmbmwwkfloldj`boaz#wkf#wjnf`lmpjgfqjmdpklqw.ojufg?,psbm=?,b=`bm#af#vpfgufqz#ojwwoflmf#le#wkf#kbg#boqfbgzjmwfqsqfwfg`lnnvmj`bwfefbwvqfp#ledlufqmnfmw/?,mlp`qjsw=fmwfqfg#wkf!#kfjdkw>!0Jmgfsfmgfmwslsvobwjlmpobqdf.p`bof-#Bowklvdk#vpfg#jm#wkfgfpwqv`wjlmslppjajojwzpwbqwjmd#jmwtl#lq#nlqff{sqfppjlmppvalqgjmbwfobqdfq#wkbmkjpwlqz#bmg?,lswjlm=\t@lmwjmfmwbofojnjmbwjmdtjoo#mlw#afsqb`wj`f#lejm#eqlmw#lepjwf#le#wkffmpvqf#wkbwwl#`qfbwf#bnjppjppjssjslwfmwjboozlvwpwbmgjmdafwwfq#wkbmtkbw#jp#mltpjwvbwfg#jmnfwb#mbnf>!WqbgjwjlmbopvddfpwjlmpWqbmpobwjlmwkf#elqn#lebwnlpskfqj`jgfloldj`bofmwfqsqjpfp`bo`vobwjmdfbpw#le#wkfqfnmbmwp#lesovdjmpsbdf,jmgf{-sks<qfnbjmfg#jmwqbmpelqnfgKf#tbp#bopltbp#boqfbgzpwbwjpwj`bojm#ebulq#leNjmjpwqz#lenlufnfmw#leelqnvobwjlmjp#qfrvjqfg?ojmh#qfo>!Wkjp#jp#wkf#?b#kqfe>!,slsvobqjyfgjmuloufg#jmbqf#vpfg#wlbmg#pfufqbonbgf#az#wkfpffnp#wl#afojhfoz#wkbwSbofpwjmjbmmbnfg#bewfqjw#kbg#affmnlpw#`lnnlmwl#qfefq#wlavw#wkjp#jp`lmpf`vwjufwfnslqbqjozJm#dfmfqbo/`lmufmwjlmpwbhfp#sob`fpvagjujpjlmwfqqjwlqjbolsfqbwjlmbosfqnbmfmwoztbp#obqdfozlvwaqfbh#lejm#wkf#sbpwelooltjmd#b#{nomp9ld>!=?b#`obpp>!`obpp>!wf{w@lmufqpjlm#nbz#af#vpfgnbmveb`wvqfbewfq#afjmd`ofbqej{!=\trvfpwjlm#letbp#fof`wfgwl#af`lnf#baf`bvpf#le#plnf#sflsofjmpsjqfg#azpv``fppevo#b#wjnf#tkfmnlqf#`lnnlmbnlmdpw#wkfbm#leej`jbotjgwk9233&8wf`kmloldz/tbp#bglswfgwl#hffs#wkfpfwwofnfmwpojuf#ajqwkpjmgf{-kwno!@lmmf`wj`vwbppjdmfg#wl%bns8wjnfp8b``lvmw#elqbojdm>qjdkwwkf#`lnsbmzbotbzp#affmqfwvqmfg#wljmuloufnfmwAf`bvpf#wkfwkjp#sfqjlg!#mbnf>!r!#`lmejmfg#wlb#qfpvow#leubovf>!!#,=jp#b`wvboozFmujqlmnfmw\t?,kfbg=\t@lmufqpfoz/=\t?gju#jg>!3!#tjgwk>!2jp#sqlabaozkbuf#af`lnf`lmwqloojmdwkf#sqlaofn`jwjyfmp#leslojwj`jbmpqfb`kfg#wkfbp#fbqoz#bp9mlmf8#lufq?wbaof#`fooubojgjwz#legjqf`woz#wllmnlvpfgltmtkfqf#jw#jptkfm#jw#tbpnfnafqp#le#qfobwjlm#wlb``lnnlgbwfbolmd#tjwk#Jm#wkf#obwfwkf#Fmdojpkgfoj`jlvp!=wkjp#jp#mlwwkf#sqfpfmwje#wkfz#bqfbmg#ejmboozb#nbwwfq#le\t\n?,gju=\t\t?,p`qjsw=ebpwfq#wkbmnbilqjwz#lebewfq#tkj`k`lnsbqbwjufwl#nbjmwbjmjnsqluf#wkfbtbqgfg#wkffq!#`obpp>!eqbnfalqgfqqfpwlqbwjlmjm#wkf#pbnfbmbozpjp#lewkfjq#ejqpwGvqjmd#wkf#`lmwjmfmwbopfrvfm`f#leevm`wjlm+*xelmw.pjyf9#tlqh#lm#wkf?,p`qjsw=\t?afdjmp#tjwkibubp`qjsw9`lmpwjwvfmwtbp#elvmgfgfrvjojaqjvnbppvnf#wkbwjp#djufm#azmffgp#wl#af`llqgjmbwfpwkf#ubqjlvpbqf#sbqw#lelmoz#jm#wkfpf`wjlmp#lejp#b#`lnnlmwkflqjfp#legjp`lufqjfpbppl`jbwjlmfgdf#le#wkfpwqfmdwk#leslpjwjlm#jmsqfpfmw.gbzvmjufqpboozwl#elqn#wkfavw#jmpwfbg`lqslqbwjlmbwwb`kfg#wljp#`lnnlmozqfbplmp#elq#%rvlw8wkf#`bm#af#nbgftbp#baof#wltkj`k#nfbmpavw#gjg#mlwlmNlvpfLufqbp#slppjaoflsfqbwfg#az`lnjmd#eqlnwkf#sqjnbqzbggjwjlm#leelq#pfufqbowqbmpefqqfgb#sfqjlg#lebqf#baof#wlkltfufq/#jwpklvog#kbufnv`k#obqdfq\t\n?,p`qjsw=bglswfg#wkfsqlsfqwz#legjqf`wfg#azfeef`wjufoztbp#aqlvdkw`kjogqfm#leSqldqbnnjmdolmdfq#wkbmnbmvp`qjswptbq#bdbjmpwaz#nfbmp#lebmg#nlpw#lepjnjobq#wl#sqlsqjfwbqzlqjdjmbwjmdsqfpwjdjlvpdqbnnbwj`bof{sfqjfm`f-wl#nbhf#wkfJw#tbp#bopljp#elvmg#jm`lnsfwjwlqpjm#wkf#V-P-qfsob`f#wkfaqlvdkw#wkf`bo`vobwjlmeboo#le#wkfwkf#dfmfqbosqb`wj`boozjm#klmlq#leqfofbpfg#jmqfpjgfmwjbobmg#plnf#lehjmd#le#wkfqfb`wjlm#wl2pw#Fbqo#le`vowvqf#bmgsqjm`jsbooz?,wjwof=\t##wkfz#`bm#afab`h#wl#wkfplnf#le#kjpf{slpvqf#wlbqf#pjnjobqelqn#le#wkfbggEbulqjwf`jwjyfmpkjssbqw#jm#wkfsflsof#tjwkjm#sqb`wj`fwl#`lmwjmvf%bns8njmvp8bssqlufg#az#wkf#ejqpw#booltfg#wkfbmg#elq#wkfevm`wjlmjmdsobzjmd#wkfplovwjlm#wlkfjdkw>!3!#jm#kjp#allhnlqf#wkbm#belooltp#wkf`qfbwfg#wkfsqfpfm`f#jm%maps8?,wg=mbwjlmbojpwwkf#jgfb#leb#`kbqb`wfqtfqf#elq`fg#`obpp>!awmgbzp#le#wkfefbwvqfg#jmpkltjmd#wkfjmwfqfpw#jmjm#sob`f#lewvqm#le#wkfwkf#kfbg#leOlqg#le#wkfslojwj`boozkbp#jwp#ltmFgv`bwjlmbobssqlubo#leplnf#le#wkffb`k#lwkfq/afkbujlq#lebmg#af`bvpfbmg#bmlwkfqbssfbqfg#lmqf`lqgfg#jmaob`h%rvlw8nbz#jm`ovgfwkf#tlqog$p`bm#ofbg#wlqfefqp#wl#balqgfq>!3!#dlufqmnfmw#tjmmjmd#wkfqfpvowfg#jm#tkjof#wkf#Tbpkjmdwlm/wkf#pvaif`w`jwz#jm#wkf=?,gju=\t\n\nqfeof`w#wkfwl#`lnsofwfaf`bnf#nlqfqbgjlb`wjufqfif`wfg#aztjwklvw#bmzkjp#ebwkfq/tkj`k#`lvog`lsz#le#wkfwl#jmgj`bwfb#slojwj`bob``lvmwp#le`lmpwjwvwfptlqhfg#tjwkfq?,b=?,oj=le#kjp#ojefb``lnsbmjfg`ojfmwTjgwksqfufmw#wkfOfdjpobwjufgjeefqfmwozwldfwkfq#jmkbp#pfufqboelq#bmlwkfqwf{w#le#wkfelvmgfg#wkff#tjwk#wkf#jp#vpfg#elq`kbmdfg#wkfvpvbooz#wkfsob`f#tkfqftkfqfbp#wkf=#?b#kqfe>!!=?b#kqfe>!wkfnpfoufp/bowklvdk#kfwkbw#`bm#afwqbgjwjlmboqlof#le#wkfbp#b#qfpvowqfnluf@kjoggfpjdmfg#aztfpw#le#wkfPlnf#sflsofsqlgv`wjlm/pjgf#le#wkfmftpofwwfqpvpfg#az#wkfgltm#wl#wkfb``fswfg#azojuf#jm#wkfbwwfnswp#wllvwpjgf#wkfeqfrvfm`jfpKltfufq/#jmsqldqbnnfqpbw#ofbpw#jmbssql{jnbwfbowklvdk#jwtbp#sbqw#lebmg#ubqjlvpDlufqmlq#lewkf#bqwj`ofwvqmfg#jmwl=?b#kqfe>!,wkf#f`lmlnzjp#wkf#nlpwnlpw#tjgfoztlvog#obwfqbmg#sfqkbspqjpf#wl#wkfl``vqp#tkfmvmgfq#tkj`k`lmgjwjlmp-wkf#tfpwfqmwkflqz#wkbwjp#sqlgv`fgwkf#`jwz#lejm#tkj`k#kfpffm#jm#wkfwkf#`fmwqboavjogjmd#lenbmz#le#kjpbqfb#le#wkfjp#wkf#lmoznlpw#le#wkfnbmz#le#wkfwkf#TfpwfqmWkfqf#jp#mlf{wfmgfg#wlPwbwjpwj`bo`lopsbm>1#pklqw#pwlqzslppjaof#wlwlsloldj`bo`qjwj`bo#leqfslqwfg#wlb#@kqjpwjbmgf`jpjlm#wljp#frvbo#wlsqlaofnp#leWkjp#`bm#afnfq`kbmgjpfelq#nlpw#leml#fujgfm`ffgjwjlmp#lefofnfmwp#jm%rvlw8-#Wkf`ln,jnbdfp,tkj`k#nbhfpwkf#sql`fppqfnbjmp#wkfojwfqbwvqf/jp#b#nfnafqwkf#slsvobqwkf#bm`jfmwsqlaofnp#jmwjnf#le#wkfgfefbwfg#azalgz#le#wkfb#eft#zfbqpnv`k#le#wkfwkf#tlqh#le@bojelqmjb/pfqufg#bp#bdlufqmnfmw-`lm`fswp#lenlufnfmw#jm\n\n?gju#jg>!jw!#ubovf>!obmdvbdf#lebp#wkfz#bqfsqlgv`fg#jmjp#wkbw#wkff{sobjm#wkfgju=?,gju=\tKltfufq#wkfofbg#wl#wkf\n?b#kqfe>!,tbp#dqbmwfgsflsof#kbuf`lmwjmvbooztbp#pffm#bpbmg#qfobwfgwkf#qlof#lesqlslpfg#azle#wkf#afpwfb`k#lwkfq-@lmpwbmwjmfsflsof#eqlngjbof`wp#lewl#qfujpjlmtbp#qfmbnfgb#plvq`f#lewkf#jmjwjboobvm`kfg#jmsqlujgf#wkfwl#wkf#tfpwtkfqf#wkfqfbmg#pjnjobqafwtffm#wtljp#bopl#wkfFmdojpk#bmg`lmgjwjlmp/wkbw#jw#tbpfmwjwofg#wlwkfnpfoufp-rvbmwjwz#leqbmpsbqfm`zwkf#pbnf#bpwl#iljm#wkf`lvmwqz#bmgwkjp#jp#wkfWkjp#ofg#wlb#pwbwfnfmw`lmwqbpw#wlobpwJmgf{Lewkqlvdk#kjpjp#gfpjdmfgwkf#wfqn#jpjp#sqlujgfgsqlwf`w#wkfmd?,b=?,oj=Wkf#`vqqfmwwkf#pjwf#lepvapwbmwjbof{sfqjfm`f/jm#wkf#Tfpwwkfz#pklvogpolufm(ajmb`lnfmwbqjlpvmjufqpjgbg`lmgj`jlmfpb`wjujgbgfpf{sfqjfm`jbwf`mlold/Absqlgv``j/_msvmwvb`j/_mbsoj`b`j/_m`lmwqbpf/]b`bwfdlq/Abpqfdjpwqbqpfsqlefpjlmbowqbwbnjfmwlqfd/Apwqbwfpf`qfwbq/Absqjm`jsbofpsqlwf``j/_mjnslqwbmwfpjnslqwbm`jbslpjajojgbgjmwfqfpbmwf`qf`jnjfmwlmf`fpjgbgfppvp`qjajqpfbpl`jb`j/_mgjpslmjaofpfubovb`j/_mfpwvgjbmwfpqfpslmpbaofqfplov`j/_mdvbgbobibqbqfdjpwqbglplslqwvmjgbg`lnfq`jbofpelwldqbe/Abbvwlqjgbgfpjmdfmjfq/Abwfofujpj/_m`lnsfwfm`jblsfqb`jlmfpfpwbaof`jglpjnsofnfmwfb`wvbonfmwfmbufdb`j/_m`lmelqnjgbgojmf.kfjdkw9elmw.ebnjoz9!#9#!kwws9,,bssoj`bwjlmpojmh!#kqfe>!psf`jej`booz,,?"X@GBWBX\tLqdbmjybwjlmgjpwqjavwjlm3s{8#kfjdkw9qfobwjlmpkjsgfuj`f.tjgwk?gju#`obpp>!?obafo#elq>!qfdjpwqbwjlm?,mlp`qjsw=\t,jmgf{-kwno!tjmglt-lsfm+#"jnslqwbmw8bssoj`bwjlm,jmgfsfmgfm`f,,ttt-dlldoflqdbmjybwjlmbvwl`lnsofwfqfrvjqfnfmwp`lmpfqubwjuf?elqn#mbnf>!jmwfoof`wvbonbqdjm.ofew92;wk#`fmwvqzbm#jnslqwbmwjmpwjwvwjlmpbaaqfujbwjlm?jnd#`obpp>!lqdbmjpbwjlm`jujojybwjlm2:wk#`fmwvqzbq`kjwf`wvqfjm`lqslqbwfg13wk#`fmwvqz.`lmwbjmfq!=nlpw#mlwbaoz,=?,b=?,gju=mlwjej`bwjlm$vmgfejmfg$*Evqwkfqnlqf/afojfuf#wkbwjmmfqKWNO#>#sqjlq#wl#wkfgqbnbwj`boozqfefqqjmd#wlmfdlwjbwjlmpkfbgrvbqwfqpPlvwk#Beqj`bvmpv``fppevoSfmmpzoubmjbBp#b#qfpvow/?kwno#obmd>!%ow8,pvs%dw8gfbojmd#tjwkskjobgfoskjbkjpwlqj`booz*8?,p`qjsw=\tsbggjmd.wls9f{sfqjnfmwbodfwBwwqjavwfjmpwqv`wjlmpwf`kmloldjfpsbqw#le#wkf#>evm`wjlm+*xpvap`qjswjlmo-gwg!=\t?kwdfldqbskj`bo@lmpwjwvwjlm$/#evm`wjlm+pvsslqwfg#azbdqj`vowvqbo`lmpwqv`wjlmsvaoj`bwjlmpelmw.pjyf9#2b#ubqjfwz#le?gju#pwzof>!Fm`z`olsfgjbjeqbnf#pq`>!gfnlmpwqbwfgb``lnsojpkfgvmjufqpjwjfpGfnldqbskj`p*8?,p`qjsw=?gfgj`bwfg#wlhmltofgdf#lepbwjpeb`wjlmsbqwj`vobqoz?,gju=?,gju=Fmdojpk#+VP*bssfmg@kjog+wqbmpnjppjlmp-#Kltfufq/#jmwfoojdfm`f!#wbajmgf{>!eolbw9qjdkw8@lnnlmtfbowkqbmdjmd#eqlnjm#tkj`k#wkfbw#ofbpw#lmfqfsqlgv`wjlmfm`z`olsfgjb8elmw.pjyf92ivqjpgj`wjlmbw#wkbw#wjnf!=?b#`obpp>!Jm#bggjwjlm/gfp`qjswjlm(`lmufqpbwjlm`lmwb`w#tjwkjp#dfmfqboozq!#`lmwfmw>!qfsqfpfmwjmd%ow8nbwk%dw8sqfpfmwbwjlml``bpjlmbooz?jnd#tjgwk>!mbujdbwjlm!=`lnsfmpbwjlm`kbnsjlmpkjsnfgjb>!boo!#ujlobwjlm#leqfefqfm`f#wlqfwvqm#wqvf8Pwqj`w,,FM!#wqbmpb`wjlmpjmwfqufmwjlmufqjej`bwjlmJmelqnbwjlm#gjeej`vowjfp@kbnsjlmpkjs`bsbajojwjfp?"Xfmgje^..=~\t?,p`qjsw=\t@kqjpwjbmjwzelq#f{bnsof/Sqlefppjlmboqfpwqj`wjlmppvddfpw#wkbwtbp#qfofbpfg+pv`k#bp#wkfqfnluf@obpp+vmfnsolznfmwwkf#Bnfqj`bmpwqv`wvqf#le,jmgf{-kwno#svaojpkfg#jmpsbm#`obpp>!!=?b#kqfe>!,jmwqlgv`wjlmafolmdjmd#wl`objnfg#wkbw`lmpfrvfm`fp?nfwb#mbnf>!Dvjgf#wl#wkflufqtkfonjmdbdbjmpw#wkf#`lm`fmwqbwfg/\t-mlmwlv`k#lapfqubwjlmp?,b=\t?,gju=\te#+gl`vnfmw-alqgfq9#2s{#xelmw.pjyf92wqfbwnfmw#le3!#kfjdkw>!2nlgjej`bwjlmJmgfsfmgfm`fgjujgfg#jmwldqfbwfq#wkbmb`kjfufnfmwpfpwbaojpkjmdIbubP`qjsw!#mfufqwkfofpppjdmjej`bm`fAqlbg`bpwjmd=%maps8?,wg=`lmwbjmfq!=\tpv`k#bp#wkf#jmeovfm`f#leb#sbqwj`vobqpq`>$kwws9,,mbujdbwjlm!#kboe#le#wkf#pvapwbmwjbo#%maps8?,gju=bgubmwbdf#legjp`lufqz#leevmgbnfmwbo#nfwqlslojwbmwkf#lsslpjwf!#{no9obmd>!gfojafqbwfozbojdm>`fmwfqfulovwjlm#lesqfpfqubwjlmjnsqlufnfmwpafdjmmjmd#jmIfpvp#@kqjpwSvaoj`bwjlmpgjpbdqffnfmwwf{w.bojdm9q/#evm`wjlm+*pjnjobqjwjfpalgz=?,kwno=jp#`vqqfmwozboskbafwj`bojp#plnfwjnfpwzsf>!jnbdf,nbmz#le#wkf#eolt9kjggfm8bubjobaof#jmgfp`qjaf#wkff{jpwfm`f#leboo#lufq#wkfwkf#Jmwfqmfw\n?vo#`obpp>!jmpwboobwjlmmfjdkalqkllgbqnfg#elq`fpqfgv`jmd#wkf`lmwjmvfp#wlMlmfwkfofpp/wfnsfqbwvqfp\t\n\n?b#kqfe>!`olpf#wl#wkff{bnsofp#le#jp#balvw#wkf+pff#afolt*-!#jg>!pfbq`ksqlefppjlmbojp#bubjobaofwkf#leej`jbo\n\n?,p`qjsw=\t\t\n\n?gju#jg>!b``fofqbwjlmwkqlvdk#wkf#Kboo#le#Ebnfgfp`qjswjlmpwqbmpobwjlmpjmwfqefqfm`f#wzsf>$wf{w,qf`fmw#zfbqpjm#wkf#tlqogufqz#slsvobqxab`hdqlvmg9wqbgjwjlmbo#plnf#le#wkf#`lmmf`wfg#wlf{soljwbwjlmfnfqdfm`f#le`lmpwjwvwjlmB#Kjpwlqz#lepjdmjej`bmw#nbmveb`wvqfgf{sf`wbwjlmp=?mlp`qjsw=?`bm#af#elvmgaf`bvpf#wkf#kbp#mlw#affmmfjdkalvqjmdtjwklvw#wkf#bggfg#wl#wkf\n?oj#`obpp>!jmpwqvnfmwboPlujfw#Vmjlmb`hmltofgdfgtkj`k#`bm#afmbnf#elq#wkfbwwfmwjlm#wlbwwfnswp#wl#gfufolsnfmwpJm#eb`w/#wkf?oj#`obpp>!bjnsoj`bwjlmppvjwbaof#elqnv`k#le#wkf#`lolmjybwjlmsqfpjgfmwjbo`bm`foAvaaof#Jmelqnbwjlmnlpw#le#wkf#jp#gfp`qjafgqfpw#le#wkf#nlqf#lq#ofppjm#PfswfnafqJmwfoojdfm`fpq`>!kwws9,,s{8#kfjdkw9#bubjobaof#wlnbmveb`wvqfqkvnbm#qjdkwpojmh#kqfe>!,bubjobajojwzsqlslqwjlmbolvwpjgf#wkf#bpwqlmlnj`bokvnbm#afjmdpmbnf#le#wkf#bqf#elvmg#jmbqf#abpfg#lmpnboofq#wkbmb#sfqplm#tklf{sbmpjlm#lebqdvjmd#wkbwmlt#hmltm#bpJm#wkf#fbqozjmwfqnfgjbwfgfqjufg#eqlnP`bmgjmbujbm?,b=?,gju=\t`lmpjgfq#wkfbm#fpwjnbwfgwkf#Mbwjlmbo?gju#jg>!sbdqfpvowjmd#jm`lnnjppjlmfgbmboldlvp#wlbqf#qfrvjqfg,vo=\t?,gju=\ttbp#abpfg#lmbmg#af`bnf#b%maps8%maps8w!#ubovf>!!#tbp#`bswvqfgml#nlqf#wkbmqfpsf`wjufoz`lmwjmvf#wl#=\t?kfbg=\t?tfqf#`qfbwfgnlqf#dfmfqbojmelqnbwjlm#vpfg#elq#wkfjmgfsfmgfmw#wkf#Jnsfqjbo`lnslmfmw#lewl#wkf#mlqwkjm`ovgf#wkf#@lmpwqv`wjlmpjgf#le#wkf#tlvog#mlw#afelq#jmpwbm`fjmufmwjlm#lenlqf#`lnsof{`loof`wjufozab`hdqlvmg9#wf{w.bojdm9#jwp#lqjdjmbojmwl#b``lvmwwkjp#sql`fppbm#f{wfmpjufkltfufq/#wkfwkfz#bqf#mlwqfif`wfg#wkf`qjwj`jpn#legvqjmd#tkj`ksqlabaoz#wkfwkjp#bqwj`of+evm`wjlm+*xJw#pklvog#afbm#bdqffnfmwb``jgfmwboozgjeefqp#eqlnBq`kjwf`wvqfafwwfq#hmltmbqqbmdfnfmwpjmeovfm`f#lmbwwfmgfg#wkfjgfmwj`bo#wlplvwk#le#wkfsbpp#wkqlvdk{no!#wjwof>!tfjdkw9alog8`qfbwjmd#wkfgjpsobz9mlmfqfsob`fg#wkf?jnd#pq`>!,jkwwsp9,,ttt-Tlqog#Tbq#JJwfpwjnlmjbopelvmg#jm#wkfqfrvjqfg#wl#bmg#wkbw#wkfafwtffm#wkf#tbp#gfpjdmfg`lmpjpwp#le#`lmpjgfqbaozsvaojpkfg#azwkf#obmdvbdf@lmpfqubwjlm`lmpjpwfg#leqfefq#wl#wkfab`h#wl#wkf#`pp!#nfgjb>!Sflsof#eqln#bubjobaof#lmsqlufg#wl#afpvddfpwjlmp!tbp#hmltm#bpubqjfwjfp#leojhfoz#wl#af`lnsqjpfg#lepvsslqw#wkf#kbmgp#le#wkf`lvsofg#tjwk`lmmf`w#bmg#alqgfq9mlmf8sfqelqnbm`fpafelqf#afjmdobwfq#af`bnf`bo`vobwjlmplewfm#`boofgqfpjgfmwp#lenfbmjmd#wkbw=?oj#`obpp>!fujgfm`f#elqf{sobmbwjlmpfmujqlmnfmwp!=?,b=?,gju=tkj`k#booltpJmwqlgv`wjlmgfufolsfg#azb#tjgf#qbmdflm#afkboe#leubojdm>!wls!sqjm`jsof#lebw#wkf#wjnf/?,mlp`qjsw=pbjg#wl#kbufjm#wkf#ejqpwtkjof#lwkfqpkzslwkfwj`boskjolplskfqpsltfq#le#wkf`lmwbjmfg#jmsfqelqnfg#azjmbajojwz#wltfqf#tqjwwfmpsbm#pwzof>!jmsvw#mbnf>!wkf#rvfpwjlmjmwfmgfg#elqqfif`wjlm#lejnsojfp#wkbwjmufmwfg#wkfwkf#pwbmgbqgtbp#sqlabaozojmh#afwtffmsqlefpplq#lejmwfqb`wjlmp`kbmdjmd#wkfJmgjbm#L`fbm#`obpp>!obpwtlqhjmd#tjwk$kwws9,,ttt-zfbqp#afelqfWkjp#tbp#wkfqf`qfbwjlmbofmwfqjmd#wkfnfbpvqfnfmwpbm#f{wqfnfozubovf#le#wkfpwbqw#le#wkf\t?,p`qjsw=\t\tbm#feelqw#wljm`qfbpf#wkfwl#wkf#plvwkpsb`jmd>!3!=pveej`jfmwozwkf#Fvqlsfbm`lmufqwfg#wl`ofbqWjnflvwgjg#mlw#kbuf`lmpfrvfmwozelq#wkf#mf{wf{wfmpjlm#lef`lmlnj`#bmgbowklvdk#wkfbqf#sqlgv`fgbmg#tjwk#wkfjmpveej`jfmwdjufm#az#wkfpwbwjmd#wkbwf{sfmgjwvqfp?,psbm=?,b=\twklvdkw#wkbwlm#wkf#abpjp`foosbggjmd>jnbdf#le#wkfqfwvqmjmd#wljmelqnbwjlm/pfsbqbwfg#azbppbppjmbwfgp!#`lmwfmw>!bvwklqjwz#lemlqwktfpwfqm?,gju=\t?gju#!=?,gju=\t##`lmpvowbwjlm`lnnvmjwz#lewkf#mbwjlmbojw#pklvog#afsbqwj`jsbmwp#bojdm>!ofewwkf#dqfbwfpwpfof`wjlm#lepvsfqmbwvqbogfsfmgfmw#lmjp#nfmwjlmfgbooltjmd#wkftbp#jmufmwfgb``lnsbmzjmdkjp#sfqplmbobubjobaof#bwpwvgz#le#wkflm#wkf#lwkfqf{f`vwjlm#leKvnbm#Qjdkwpwfqnp#le#wkfbppl`jbwjlmpqfpfbq`k#bmgpv``ffgfg#azgfefbwfg#wkfbmg#eqln#wkfavw#wkfz#bqf`lnnbmgfq#lepwbwf#le#wkfzfbqp#le#bdfwkf#pwvgz#le?vo#`obpp>!psob`f#jm#wkftkfqf#kf#tbp?oj#`obpp>!ewkfqf#bqf#mltkj`k#af`bnfkf#svaojpkfgf{sqfppfg#jmwl#tkj`k#wkf`lnnjppjlmfqelmw.tfjdkw9wfqqjwlqz#lef{wfmpjlmp!=Qlnbm#Fnsjqffrvbo#wl#wkfJm#`lmwqbpw/kltfufq/#bmgjp#wzsj`boozbmg#kjp#tjef+bopl#`boofg=?vo#`obpp>!feef`wjufoz#fuloufg#jmwlpffn#wl#kbuftkj`k#jp#wkfwkfqf#tbp#mlbm#f{`foofmwboo#le#wkfpfgfp`qjafg#azJm#sqb`wj`f/aqlbg`bpwjmd`kbqdfg#tjwkqfeof`wfg#jmpvaif`wfg#wlnjojwbqz#bmgwl#wkf#sljmwf`lmlnj`boozpfwWbqdfwjmdbqf#b`wvboozuj`wlqz#lufq+*8?,p`qjsw=`lmwjmvlvpozqfrvjqfg#elqfulovwjlmbqzbm#feef`wjufmlqwk#le#wkf/#tkj`k#tbp#eqlmw#le#wkflq#lwkfqtjpfplnf#elqn#lekbg#mlw#affmdfmfqbwfg#azjmelqnbwjlm-sfqnjwwfg#wljm`ovgfp#wkfgfufolsnfmw/fmwfqfg#jmwlwkf#sqfujlvp`lmpjpwfmwozbqf#hmltm#bpwkf#ejfog#lewkjp#wzsf#ledjufm#wl#wkfwkf#wjwof#le`lmwbjmp#wkfjmpwbm`fp#lejm#wkf#mlqwkgvf#wl#wkfjqbqf#gfpjdmfg`lqslqbwjlmptbp#wkbw#wkflmf#le#wkfpfnlqf#slsvobqpv``ffgfg#jmpvsslqw#eqlnjm#gjeefqfmwglnjmbwfg#azgfpjdmfg#elqltmfqpkjs#lebmg#slppjaozpwbmgbqgjyfgqfpslmpfWf{wtbp#jmwfmgfgqf`fjufg#wkfbppvnfg#wkbwbqfbp#le#wkfsqjnbqjoz#jmwkf#abpjp#lejm#wkf#pfmpfb``lvmwp#elqgfpwqlzfg#azbw#ofbpw#wtltbp#gf`obqfg`lvog#mlw#afPf`qfwbqz#lebssfbq#wl#afnbqdjm.wls92,]_p(_p(\',df*xwkqlt#f~8wkf#pwbqw#lewtl#pfsbqbwfobmdvbdf#bmgtkl#kbg#affmlsfqbwjlm#legfbwk#le#wkfqfbo#mvnafqp\n?ojmh#qfo>!sqlujgfg#wkfwkf#pwlqz#le`lnsfwjwjlmpfmdojpk#+VH*fmdojpk#+VP*<p<R<Q<_<R<W<M=l<S=m<V<T=m=l<S=m<V<T=m=l<S=m<V<R5h4U4]4D5f4E\nAOGx\bTA\nzk\vBl\bQ\bTA\nzk\vUm\bQ\bTA\nzk\npeu|\ti@\tcT\bVV\n\\}\nxS\tVptSk`\t[X\t[X\vHR\bPv\bTW\bUe\na\bQp\v_W\vWs\nxS\vAz\n_yKhjmelqnb`j/_mkfqqbnjfmwbpfof`wq/_mj`lgfp`qjs`j/_m`obpjej`bglp`lml`jnjfmwlsvaoj`b`j/_mqfob`jlmbgbpjmelqn/Mwj`bqfob`jlmbglpgfsbqwbnfmwlwqbabibglqfpgjqf`wbnfmwfbzvmwbnjfmwlnfq`bglOjaqf`lmw/M`wfmlpkbajwb`jlmfp`vnsojnjfmwlqfpwbvqbmwfpgjpslpj`j/_m`lmpf`vfm`jbfof`wq/_mj`bbsoj`b`jlmfpgfp`lmf`wbgljmpwbob`j/_mqfbojyb`j/_mvwjojyb`j/_mfm`j`olsfgjbfmefqnfgbgfpjmpwqvnfmwlpf{sfqjfm`jbpjmpwjwv`j/_msbqwj`vobqfppva`bwfdlqjb=n<R<W=`<V<R<L<R=m=m<T<T=l<\\<]<R=n=g<]<R<W=`=d<Y<S=l<R=m=n<R<P<R<Z<Y=n<Y<X=l=o<_<T=i=m<W=o=k<\\<Y=m<Y<U=k<\\=m<^=m<Y<_<X<\\<L<R=m=m<T=c<p<R=m<V<^<Y<X=l=o<_<T<Y<_<R=l<R<X<\\<^<R<S=l<R=m<X<\\<Q<Q=g=i<X<R<W<Z<Q=g<T<P<Y<Q<Q<R<p<R=m<V<^=g=l=o<]<W<Y<U<p<R=m<V<^<\\=m=n=l<\\<Q=g<Q<T=k<Y<_<R=l<\\<]<R=n<Y<X<R<W<Z<Y<Q=o=m<W=o<_<T=n<Y<S<Y=l=`<r<X<Q<\\<V<R<S<R=n<R<P=o=l<\\<]<R=n=o<\\<S=l<Y<W=c<^<R<R<]=e<Y<R<X<Q<R<_<R=m<^<R<Y<_<R=m=n<\\=n=`<T<X=l=o<_<R<U=h<R=l=o<P<Y=i<R=l<R=d<R<S=l<R=n<T<^=m=m=g<W<V<\\<V<\\<Z<X=g<U<^<W<\\=m=n<T<_=l=o<S<S=g<^<P<Y=m=n<Y=l<\\<]<R=n<\\=m<V<\\<[<\\<W<S<Y=l<^=g<U<X<Y<W<\\=n=`<X<Y<Q=`<_<T<S<Y=l<T<R<X<]<T<[<Q<Y=m<R=m<Q<R<^<Y<P<R<P<Y<Q=n<V=o<S<T=n=`<X<R<W<Z<Q<\\=l<\\<P<V<\\=i<Q<\\=k<\\<W<R<L<\\<]<R=n<\\<N<R<W=`<V<R=m<R<^=m<Y<P<^=n<R=l<R<U<Q<\\=k<\\<W<\\=m<S<T=m<R<V=m<W=o<Z<]=g=m<T=m=n<Y<P<S<Y=k<\\=n<T<Q<R<^<R<_<R<S<R<P<R=e<T=m<\\<U=n<R<^<S<R=k<Y<P=o<S<R<P<R=e=`<X<R<W<Z<Q<R=m=m=g<W<V<T<]=g=m=n=l<R<X<\\<Q<Q=g<Y<P<Q<R<_<T<Y<S=l<R<Y<V=n<M<Y<U=k<\\=m<P<R<X<Y<W<T=n<\\<V<R<_<R<R<Q<W<\\<U<Q<_<R=l<R<X<Y<^<Y=l=m<T=c=m=n=l<\\<Q<Y=h<T<W=`<P=g=o=l<R<^<Q=c=l<\\<[<Q=g=i<T=m<V<\\=n=`<Q<Y<X<Y<W=b=c<Q<^<\\=l=c<P<Y<Q=`=d<Y<P<Q<R<_<T=i<X<\\<Q<Q<R<U<[<Q<\\=k<T=n<Q<Y<W=`<[=c=h<R=l=o<P<\\<N<Y<S<Y=l=`<P<Y=m=c=j<\\<[<\\=e<T=n=g<w=o=k=d<T<Y\fHD\fHU\fIl\fHn\fHy\fH\\\fHD\fIk\fHi\fHF\fHD\fIk\fHy\fHS\fHC\fHR\fHy\fH\\\fIk\fHn\fHi\fHD\fIa\fHC\fHy\fIa\fHC\fHR\fH{\fHR\fHk\fHM\fH@\fHR\fH\\\fIk\fHy\fHS\fHT\fIl\fHJ\fHS\fHC\fHR\fHF\fHU\fH^\fIk\fHT\fHS\fHn\fHU\fHA\fHR\fH\\\fHH\fHi\fHF\fHD\fIl\fHY\fHR\fH^\fIk\fHT\fIk\fHY\fHR\fHy\fH\\\fHH\fIk\fHB\fIk\fH\\\fIk\fHU\fIg\fHD\fIk\fHT\fHy\fHH\fIk\fH@\fHU\fIm\fHH\fHT\fHR\fHk\fHs\fHU\fIg\fH{\fHR\fHp\fHR\fHD\fIk\fHB\fHS\fHD\fHs\fHy\fH\\\fHH\fHR\fHy\fH\\\fHD\fHR\fHe\fHD\fHy\fIk\fHC\fHU\fHR\fHm\fHT\fH@\fHT\fIk\fHA\fHR\fH[\fHR\fHj\fHF\fHy\fIk\fH^\fHS\fHC\fIk\fHZ\fIm\fH\\\fIn\fHk\fHT\fHy\fIk\fHt\fHn\fHs\fIk\fHB\fIk\fH\\\fIl\fHT\fHy\fHH\fHR\fHB\fIk\fH\\\fHR\fH^\fIk\fHy\fH\\\fHi\fHK\fHS\fHy\fHi\fHF\fHD\fHR\fHT\fHB\fHR\fHp\fHB\fIm\fHq\fIk\fHy\fHR\fH\\\fHO\fHU\fIg\fHH\fHR\fHy\fHM\fHP\fIl\fHC\fHU\fHR\fHn\fHU\fIg\fHs\fH^\fHZ\fH@\fIa\fHJ\fH^\fHS\fHC\fHR\fHp\fIl\fHY\fHD\fHp\fHR\fHH\fHR\fHy\fId\fHT\fIk\fHj\fHF\fHy\fHR\fHY\fHR\fH^\fIl\fHJ\fIk\fHD\fIk\fHF\fIn\fH\\\fIl\fHF\fHR\fHD\fIl\fHe\fHT\fHy\fIk\fHU\fIg\fH{\fIl\fH@\fId\fHL\fHy\fHj\fHF\fHy\fIl\fHY\fH\\\fIa\fH[\fH{\fHR\fHn\fHY\fHj\fHF\fHy\fIg\fHp\fHS\fH^\fHR\fHp\fHR\fHD\fHR\fHT\fHU\fHB\fHH\fHU\fHB\fIk\fHn\fHe\fHD\fHy\fIl\fHC\fHR\fHU\fIn\fHJ\fH\\\fIa\fHp\fHT\fIn\fHv\fIl\fHF\fHT\fHn\fHJ\fHT\fHY\fHR\fH^\fHU\fIg\fHD\fHR\fHU\fIg\fHH\fIl\fHp\fId\fHT\fIk\fHY\fHR\fHF\fHT\fHp\fHD\fHH\fHR\fHD\fIk\fHH\fHR\fHp\fHR\fH\\\fIl\fHt\fHR\fHC\fH^\fHp\fHS\fH^\fIk\fHD\fIl\fHv\fIk\fHp\fHR\fHn\fHv\fHF\fHH\fIa\fH\\\fH{\fIn\fH{\fH^\fHp\fHR\fHH\fIk\fH@\fHR\fHU\fH\\\fHj\fHF\fHD\fIk\fHY\fHR\fHU\fHD\fHk\fHT\fHy\fHR\fHT\fIm\fH@\fHU\fH\\\fHU\fHD\fIk\fHk\fHT\fHT\fIk\fHT\fHU\fHS\fHH\fH@\fHM\fHP\fIk\fHt\fHs\fHD\fHR\fHH\fH^\fHR\fHZ\fHF\fHR\fHn\fHv\fHZ\fIa\fH\\\fIl\fH@\fHM\fHP\fIl\fHU\fIg\fHH\fIk\fHT\fHR\fHd\fHs\fHZ\fHR\fHC\fHJ\fHT\fHy\fHH\fIl\fHp\fHR\fHH\fIl\fHY\fHR\fH^\fHR\fHU\fHp\fHR\fH\\\fHF\fHs\fHD\fHR\fH\\\fHz\fHD\fIk\fHT\fHM\fHP\fHy\fHB\fHS\fH^\fHR\fHe\fHT\fHy\fIl\fHy\fIk\fHY\fH^\fH^\fH{\fHH\fHR\fHz\fHR\fHD\fHR\fHi\fH\\\fIa\fHI\fHp\fHU\fHR\fHn\fHJ\fIk\fHz\fHR\fHF\fHU\fH^\fIl\fHD\fHS\fHC\fHB\fH@\fHS\fHD\fHR\fH@\fId\fHn\fHy\fHy\fHU\fIl\fHn\fHy\fHU\fHD\fHR\fHJ\fIk\fHH\fHR\fHU\fHB\fH^\fIk\fHy\fHR\fHG\fIl\fHp\fH@\fHy\fHS\fHH\fIm\fH\\\fHH\fHB\fHR\fHn\fH{\fHY\fHU\fIl\fHn\fH\\\fIg\fHp\fHP\fHB\fHS\fH^\fIl\fHj\fH\\\fIg\fHF\fHT\fIk\fHD\fHR\fHC\fHR\fHJ\fHY\fH^\fIk\fHD\fIk\fHz\fHR\fHH\fHR\fHy\fH\\\fIl\fH@\fHe\fHD\fHy\fHR\fHp\fHY\fHR\fH@\fHF\fIn\fH\\\fHR\fH@\fHM\fHP\fHR\fHT\fI`\fHJ\fHR\fHZ\fIk\fHC\fH\\\fHy\fHS\fHC\fIk\fHy\fHU\fHR\fHn\fHi\fHy\fHT\fH\\\fH@\fHD\fHR\fHc\fHY\fHU\fHR\fHn\fHT\fIa\fHI\fH^\fHB\fHS\fH^\fIk\fH^\fIk\fHz\fHy\fHY\fHS\fH[\fHC\fHy\fIa\fH\\\fHn\fHT\fHB\fIn\fHU\fHI\fHR\fHD\fHR4F4_4F4[5f4U5i4X4K4]5o4E4D5d4K4_4[4E4K5h4Y5m4A4E5i5d4K4Z5f4U4K5h4B4K4Y4E4K5h5i4^5f4C4K5h4U4K5i4E4K5h5o4K4F4D4K5h4]4C5d4C4D4]5j4K5i4@4K5h4C5d5h4E4K5h4U4K5h5i4K5h5i5d5n4U4K5h4U4]4D5f4K5h4_4]5f4U4K5h4@5d4K5h4K5h4\\5k4K4D4K5h4A5f4K4E4K5h4A5n5d5n4K5h5o4]5f5i4K5h4U4]4K5n5i4A5m5d4T4E4K5h4G4K5j5f5i4X4K5k4C4E4K5h5i4]4O4E4K5h5n4]4N5j4K5h4X4D4K4D4K5h4A5d4K4]4K5h4@4C5f4C4K5h4O4_4]4E4K5h4U5h5d5i5i4@5i5d4U4E4K5h4]4A5i5j4K5h5j5n4K4[5m5h4_4[5f5j4K5h5o5d5f4F4K5h4C5j5f4K4D4]5o4K4F5k4K5h4]5f4K4Z4F4A5f4K4F5f4D4F5d5n5f4F4K5h4O5d5h5e4K5h4D4]5f4C4K5h5o5h4K5i4K5h4]4K4D4[4K5h4X4B4Y5f4_5f4K4]4K4F4K5h4G4K5h4G4K5h4Y5h4K4E4K5h4A4C5f4G4K5h4^5d4K4]4K5h4B5h5f4@4K5h4@5i5f4U4K5h4U4K5i5k4K5h4@5i4K5h4K5h4_4K4U4E5i4X4K5k4C5k4K5h4]4J5f4_4K5h4C4B5d5h4K5h5m5j5f4E4K5h5o4F4K4D4K5h4C5d4]5f4K5h4C4]5d4_4K4_4F4V4]5n4F4Y4K5i5f5i4K5h4D5j4K4F4K5h4U4T5f5ifmwfqwbjmnfmwvmgfqpwbmgjmd#>#evm`wjlm+*-isd!#tjgwk>!`lmejdvqbwjlm-smd!#tjgwk>!?algz#`obpp>!Nbwk-qbmgln+*`lmwfnslqbqz#Vmjwfg#Pwbwfp`jq`vnpwbm`fp-bssfmg@kjog+lqdbmjybwjlmp?psbm#`obpp>!!=?jnd#pq`>!,gjpwjmdvjpkfgwklvpbmgp#le#`lnnvmj`bwjlm`ofbq!=?,gju=jmufpwjdbwjlmebuj`lm-j`l!#nbqdjm.qjdkw9abpfg#lm#wkf#Nbppb`kvpfwwpwbaof#alqgfq>jmwfqmbwjlmbobopl#hmltm#bpsqlmvm`jbwjlmab`hdqlvmg9 esbggjmd.ofew9Elq#f{bnsof/#njp`foobmflvp%ow8,nbwk%dw8spz`kloldj`bojm#sbqwj`vobqfbq`k!#wzsf>!elqn#nfwklg>!bp#lsslpfg#wlPvsqfnf#@lvqwl``bpjlmbooz#Bggjwjlmbooz/Mlqwk#Bnfqj`bs{8ab`hdqlvmglsslqwvmjwjfpFmwfqwbjmnfmw-wlOltfq@bpf+nbmveb`wvqjmdsqlefppjlmbo#`lnajmfg#tjwkElq#jmpwbm`f/`lmpjpwjmd#le!#nb{ofmdwk>!qfwvqm#ebopf8`lmp`jlvpmfppNfgjwfqqbmfbmf{wqblqgjmbqzbppbppjmbwjlmpvapfrvfmwoz#avwwlm#wzsf>!wkf#mvnafq#lewkf#lqjdjmbo#`lnsqfkfmpjufqfefqp#wl#wkf?,vo=\t?,gju=\tskjolplskj`bool`bwjlm-kqfetbp#svaojpkfgPbm#Eqbm`jp`l+evm`wjlm+*x\t?gju#jg>!nbjmplskjpwj`bwfgnbwkfnbwj`bo#,kfbg=\t?algzpvddfpwp#wkbwgl`vnfmwbwjlm`lm`fmwqbwjlmqfobwjlmpkjspnbz#kbuf#affm+elq#f{bnsof/Wkjp#bqwj`of#jm#plnf#`bpfpsbqwp#le#wkf#gfejmjwjlm#leDqfbw#Aqjwbjm#`foosbggjmd>frvjubofmw#wlsob`fklogfq>!8#elmw.pjyf9#ivpwjej`bwjlmafojfufg#wkbwpveefqfg#eqlnbwwfnswfg#wl#ofbgfq#le#wkf`qjsw!#pq`>!,+evm`wjlm+*#xbqf#bubjobaof\t\n?ojmh#qfo>!#pq`>$kwws9,,jmwfqfpwfg#jm`lmufmwjlmbo#!#bow>!!#,=?,bqf#dfmfqboozkbp#bopl#affmnlpw#slsvobq#`lqqfpslmgjmd`qfgjwfg#tjwkwzof>!alqgfq9?,b=?,psbm=?,-dje!#tjgwk>!?jeqbnf#pq`>!wbaof#`obpp>!jmojmf.aol`h8b``lqgjmd#wl#wldfwkfq#tjwkbssql{jnbwfozsbqojbnfmwbqznlqf#bmg#nlqfgjpsobz9mlmf8wqbgjwjlmboozsqfglnjmbmwoz%maps8%maps8%maps8?,psbm=#`foopsb`jmd>?jmsvw#mbnf>!lq!#`lmwfmw>!`lmwqlufqpjbosqlsfqwz>!ld9,{.pkl`htbuf.gfnlmpwqbwjlmpvqqlvmgfg#azMfufqwkfofpp/tbp#wkf#ejqpw`lmpjgfqbaof#Bowklvdk#wkf#`loobalqbwjlmpklvog#mlw#afsqlslqwjlm#le?psbm#pwzof>!hmltm#bp#wkf#pklqwoz#bewfqelq#jmpwbm`f/gfp`qjafg#bp#,kfbg=\t?algz#pwbqwjmd#tjwkjm`qfbpjmdoz#wkf#eb`w#wkbwgjp`vppjlm#lenjggof#le#wkfbm#jmgjujgvbogjeej`vow#wl#sljmw#le#ujftklnlpf{vbojwzb``fswbm`f#le?,psbm=?,gju=nbmveb`wvqfqplqjdjm#le#wkf`lnnlmoz#vpfgjnslqwbm`f#legfmlnjmbwjlmpab`hdqlvmg9# ofmdwk#le#wkfgfwfqnjmbwjlmb#pjdmjej`bmw!#alqgfq>!3!=qfulovwjlmbqzsqjm`jsofp#lejp#`lmpjgfqfgtbp#gfufolsfgJmgl.Fvqlsfbmuvomfqbaof#wlsqlslmfmwp#lebqf#plnfwjnfp`olpfq#wl#wkfMft#Zlqh#@jwz#mbnf>!pfbq`kbwwqjavwfg#wl`lvqpf#le#wkfnbwkfnbwj`jbmaz#wkf#fmg#lebw#wkf#fmg#le!#alqgfq>!3!#wf`kmloldj`bo-qfnluf@obpp+aqbm`k#le#wkffujgfm`f#wkbw"Xfmgje^..=\tJmpwjwvwf#le#jmwl#b#pjmdofqfpsf`wjufoz-bmg#wkfqfelqfsqlsfqwjfp#lejp#ol`bwfg#jmplnf#le#tkj`kWkfqf#jp#bopl`lmwjmvfg#wl#bssfbqbm`f#le#%bns8mgbpk8#gfp`qjafp#wkf`lmpjgfqbwjlmbvwklq#le#wkfjmgfsfmgfmwozfrvjssfg#tjwkglfp#mlw#kbuf?,b=?b#kqfe>!`lmevpfg#tjwk?ojmh#kqfe>!,bw#wkf#bdf#lebssfbq#jm#wkfWkfpf#jm`ovgfqfdbqgofpp#le`lvog#af#vpfg#pwzof>%rvlw8pfufqbo#wjnfpqfsqfpfmw#wkfalgz=\t?,kwno=wklvdkw#wl#afslsvobwjlm#leslppjajojwjfpsfq`fmwbdf#leb``fpp#wl#wkfbm#bwwfnsw#wlsqlgv`wjlm#leirvfqz,irvfqzwtl#gjeefqfmwafolmd#wl#wkffpwbaojpknfmwqfsob`jmd#wkfgfp`qjswjlm!#gfwfqnjmf#wkfbubjobaof#elqB``lqgjmd#wl#tjgf#qbmdf#le\n?gju#`obpp>!nlqf#`lnnlmozlqdbmjpbwjlmpevm`wjlmbojwztbp#`lnsofwfg#%bns8ngbpk8#sbqwj`jsbwjlmwkf#`kbqb`wfqbm#bggjwjlmbobssfbqp#wl#afeb`w#wkbw#wkfbm#f{bnsof#lepjdmjej`bmwozlmnlvpflufq>!af`bvpf#wkfz#bpzm`#>#wqvf8sqlaofnp#tjwkpffnp#wl#kbufwkf#qfpvow#le#pq`>!kwws9,,ebnjojbq#tjwkslppfppjlm#leevm`wjlm#+*#xwllh#sob`f#jmbmg#plnfwjnfppvapwbmwjbooz?psbm=?,psbm=jp#lewfm#vpfgjm#bm#bwwfnswdqfbw#gfbo#leFmujqlmnfmwbopv``fppevooz#ujqwvbooz#boo13wk#`fmwvqz/sqlefppjlmbopmf`fppbqz#wl#gfwfqnjmfg#az`lnsbwjajojwzaf`bvpf#jw#jpGj`wjlmbqz#lenlgjej`bwjlmpWkf#elooltjmdnbz#qfefq#wl9@lmpfrvfmwoz/Jmwfqmbwjlmbobowklvdk#plnfwkbw#tlvog#aftlqog$p#ejqpw`obppjejfg#bpalwwln#le#wkf+sbqwj`vobqozbojdm>!ofew!#nlpw#`lnnlmozabpjp#elq#wkfelvmgbwjlm#le`lmwqjavwjlmpslsvobqjwz#le`fmwfq#le#wkfwl#qfgv`f#wkfivqjpgj`wjlmpbssql{jnbwjlm#lmnlvpflvw>!Mft#Wfpwbnfmw`loof`wjlm#le?,psbm=?,b=?,jm#wkf#Vmjwfgejon#gjqf`wlq.pwqj`w-gwg!=kbp#affm#vpfgqfwvqm#wl#wkfbowklvdk#wkjp`kbmdf#jm#wkfpfufqbo#lwkfqavw#wkfqf#bqfvmsqf`fgfmwfgjp#pjnjobq#wlfpsf`jbooz#jmtfjdkw9#alog8jp#`boofg#wkf`lnsvwbwjlmbojmgj`bwf#wkbwqfpwqj`wfg#wl\n?nfwb#mbnf>!bqf#wzsj`booz`lmeoj`w#tjwkKltfufq/#wkf#Bm#f{bnsof#le`lnsbqfg#tjwkrvbmwjwjfp#leqbwkfq#wkbm#b`lmpwfoobwjlmmf`fppbqz#elqqfslqwfg#wkbwpsf`jej`bwjlmslojwj`bo#bmg%maps8%maps8?qfefqfm`fp#wlwkf#pbnf#zfbqDlufqmnfmw#ledfmfqbwjlm#lekbuf#mlw#affmpfufqbo#zfbqp`lnnjwnfmw#wl\n\n?vo#`obpp>!ujpvbojybwjlm2:wk#`fmwvqz/sqb`wjwjlmfqpwkbw#kf#tlvogbmg#`lmwjmvfgl``vsbwjlm#lejp#gfejmfg#bp`fmwqf#le#wkfwkf#bnlvmw#le=?gju#pwzof>!frvjubofmw#legjeefqfmwjbwfaqlvdkw#balvwnbqdjm.ofew9#bvwlnbwj`boozwklvdkw#le#bpPlnf#le#wkfpf\t?gju#`obpp>!jmsvw#`obpp>!qfsob`fg#tjwkjp#lmf#le#wkffgv`bwjlm#bmgjmeovfm`fg#azqfsvwbwjlm#bp\t?nfwb#mbnf>!b``lnnlgbwjlm?,gju=\t?,gju=obqdf#sbqw#leJmpwjwvwf#elqwkf#pl.`boofg#bdbjmpw#wkf#Jm#wkjp#`bpf/tbp#bssljmwfg`objnfg#wl#afKltfufq/#wkjpGfsbqwnfmw#lewkf#qfnbjmjmdfeef`w#lm#wkfsbqwj`vobqoz#gfbo#tjwk#wkf\t?gju#pwzof>!bonlpw#botbzpbqf#`vqqfmwozf{sqfppjlm#leskjolplskz#leelq#nlqf#wkbm`jujojybwjlmplm#wkf#jpobmgpfof`wfgJmgf{`bm#qfpvow#jm!#ubovf>!!#,=wkf#pwqv`wvqf#,=?,b=?,gju=Nbmz#le#wkfpf`bvpfg#az#wkfle#wkf#Vmjwfgpsbm#`obpp>!n`bm#af#wqb`fgjp#qfobwfg#wlaf`bnf#lmf#lejp#eqfrvfmwozojujmd#jm#wkfwkflqfwj`boozElooltjmd#wkfQfulovwjlmbqzdlufqmnfmw#jmjp#gfwfqnjmfgwkf#slojwj`bojmwqlgv`fg#jmpveej`jfmw#wlgfp`qjswjlm!=pklqw#pwlqjfppfsbqbwjlm#lebp#wl#tkfwkfqhmltm#elq#jwptbp#jmjwjboozgjpsobz9aol`hjp#bm#f{bnsofwkf#sqjm`jsbo`lmpjpwp#le#bqf`ldmjyfg#bp,algz=?,kwno=b#pvapwbmwjboqf`lmpwqv`wfgkfbg#le#pwbwfqfpjpwbm`f#wlvmgfqdqbgvbwfWkfqf#bqf#wtldqbujwbwjlmbobqf#gfp`qjafgjmwfmwjlmboozpfqufg#bp#wkf`obpp>!kfbgfqlsslpjwjlm#wlevmgbnfmwboozglnjmbwfg#wkfbmg#wkf#lwkfqboojbm`f#tjwktbp#elq`fg#wlqfpsf`wjufoz/bmg#slojwj`bojm#pvsslqw#lesflsof#jm#wkf13wk#`fmwvqz-bmg#svaojpkfgolbg@kbqwafbwwl#vmgfqpwbmgnfnafq#pwbwfpfmujqlmnfmwboejqpw#kboe#le`lvmwqjfp#bmgbq`kjwf`wvqboaf#`lmpjgfqfg`kbqb`wfqjyfg`ofbqJmwfqubobvwklqjwbwjufEfgfqbwjlm#letbp#pv``ffgfgbmg#wkfqf#bqfb#`lmpfrvfm`fwkf#Sqfpjgfmwbopl#jm`ovgfgeqff#plewtbqfpv``fppjlm#legfufolsfg#wkftbp#gfpwqlzfgbtbz#eqln#wkf8\t?,p`qjsw=\t?bowklvdk#wkfzelooltfg#az#bnlqf#sltfqevoqfpvowfg#jm#bVmjufqpjwz#leKltfufq/#nbmzwkf#sqfpjgfmwKltfufq/#plnfjp#wklvdkw#wlvmwjo#wkf#fmgtbp#bmmlvm`fgbqf#jnslqwbmwbopl#jm`ovgfp=?jmsvw#wzsf>wkf#`fmwfq#le#GL#MLW#BOWFQvpfg#wl#qfefqwkfnfp,<plqw>wkbw#kbg#affmwkf#abpjp#elqkbp#gfufolsfgjm#wkf#pvnnfq`lnsbqbwjufozgfp`qjafg#wkfpv`k#bp#wklpfwkf#qfpvowjmdjp#jnslppjaofubqjlvp#lwkfqPlvwk#Beqj`bmkbuf#wkf#pbnffeef`wjufmfppjm#tkj`k#`bpf8#wf{w.bojdm9pwqv`wvqf#bmg8#ab`hdqlvmg9qfdbqgjmd#wkfpvsslqwfg#wkfjp#bopl#hmltmpwzof>!nbqdjmjm`ovgjmd#wkfabkbpb#Nfobzvmlqph#alhn/Iomlqph#mzmlqphpolufm)M(ajmbjmwfqmb`jlmbo`bojej`b`j/_m`lnvmj`b`j/_m`lmpwqv``j/_m!=?gju#`obpp>!gjpbnajdvbwjlmGlnbjmMbnf$/#$bgnjmjpwqbwjlmpjnvowbmflvpozwqbmpslqwbwjlmJmwfqmbwjlmbo#nbqdjm.alwwln9qfpslmpjajojwz?"Xfmgje^..=\t?,=?nfwb#mbnf>!jnsofnfmwbwjlmjmeqbpwqv`wvqfqfsqfpfmwbwjlmalqgfq.alwwln9?,kfbg=\t?algz=>kwws&0B&1E&1E?elqn#nfwklg>!nfwklg>!slpw!#,ebuj`lm-j`l!#~*8\t?,p`qjsw=\t-pfwBwwqjavwf+Bgnjmjpwqbwjlm>#mft#Bqqbz+*8?"Xfmgje^..=\tgjpsobz9aol`h8Vmelqwvmbwfoz/!=%maps8?,gju=,ebuj`lm-j`l!=>$pwzofpkffw$#jgfmwjej`bwjlm/#elq#f{bnsof/?oj=?b#kqfe>!,bm#bowfqmbwjufbp#b#qfpvow#lesw!=?,p`qjsw=\twzsf>!pvanjw!#\t+evm`wjlm+*#xqf`lnnfmgbwjlmelqn#b`wjlm>!,wqbmpelqnbwjlmqf`lmpwqv`wjlm-pwzof-gjpsobz#B``lqgjmd#wl#kjggfm!#mbnf>!bolmd#tjwk#wkfgl`vnfmw-algz-bssql{jnbwfoz#@lnnvmj`bwjlmpslpw!#b`wjlm>!nfbmjmd#%rvlw8..?"Xfmgje^..=Sqjnf#Njmjpwfq`kbqb`wfqjpwj`?,b=#?b#`obpp>wkf#kjpwlqz#le#lmnlvpflufq>!wkf#dlufqmnfmwkqfe>!kwwsp9,,tbp#lqjdjmbooztbp#jmwqlgv`fg`obppjej`bwjlmqfsqfpfmwbwjufbqf#`lmpjgfqfg?"Xfmgje^..=\t\tgfsfmgp#lm#wkfVmjufqpjwz#le#jm#`lmwqbpw#wl#sob`fklogfq>!jm#wkf#`bpf#lejmwfqmbwjlmbo#`lmpwjwvwjlmbopwzof>!alqgfq.9#evm`wjlm+*#xAf`bvpf#le#wkf.pwqj`w-gwg!=\t?wbaof#`obpp>!b``lnsbmjfg#azb``lvmw#le#wkf?p`qjsw#pq`>!,mbwvqf#le#wkf#wkf#sflsof#jm#jm#bggjwjlm#wlp*8#ip-jg#>#jg!#tjgwk>!233&!qfdbqgjmd#wkf#Qlnbm#@bwkloj`bm#jmgfsfmgfmwelooltjmd#wkf#-dje!#tjgwk>!2wkf#elooltjmd#gjp`qjnjmbwjlmbq`kbfloldj`bosqjnf#njmjpwfq-ip!=?,p`qjsw=`lnajmbwjlm#le#nbqdjmtjgwk>!`qfbwfFofnfmw+t-bwwb`kFufmw+?,b=?,wg=?,wq=pq`>!kwwsp9,,bJm#sbqwj`vobq/#bojdm>!ofew!#@yf`k#Qfsvaoj`Vmjwfg#Hjmdgln`lqqfpslmgfm`f`lm`ovgfg#wkbw-kwno!#wjwof>!+evm`wjlm#+*#x`lnfp#eqln#wkfbssoj`bwjlm#le?psbm#`obpp>!pafojfufg#wl#affnfmw+$p`qjsw$?,b=\t?,oj=\t?ojufqz#gjeefqfmw=?psbm#`obpp>!lswjlm#ubovf>!+bopl#hmltm#bp\n?oj=?b#kqfe>!=?jmsvw#mbnf>!pfsbqbwfg#eqlnqfefqqfg#wl#bp#ubojdm>!wls!=elvmgfq#le#wkfbwwfnswjmd#wl#`bqalm#gjl{jgf\t\t?gju#`obpp>!`obpp>!pfbq`k.,algz=\t?,kwno=lsslqwvmjwz#wl`lnnvmj`bwjlmp?,kfbg=\t?algz#pwzof>!tjgwk9Wj\rVSmd#Uj\rWkw`kbmdfp#jm#wkfalqgfq.`lolq9 3!#alqgfq>!3!#?,psbm=?,gju=?tbp#gjp`lufqfg!#wzsf>!wf{w!#*8\t?,p`qjsw=\t\tGfsbqwnfmw#le#f``ofpjbpwj`bowkfqf#kbp#affmqfpvowjmd#eqln?,algz=?,kwno=kbp#mfufq#affmwkf#ejqpw#wjnfjm#qfpslmpf#wlbvwlnbwj`booz#?,gju=\t\t?gju#jtbp#`lmpjgfqfgsfq`fmw#le#wkf!#,=?,b=?,gju=`loof`wjlm#le#gfp`fmgfg#eqlnpf`wjlm#le#wkfb``fsw.`kbqpfwwl#af#`lmevpfgnfnafq#le#wkf#sbggjmd.qjdkw9wqbmpobwjlm#lejmwfqsqfwbwjlm#kqfe>$kwws9,,tkfwkfq#lq#mlwWkfqf#bqf#boplwkfqf#bqf#nbmzb#pnboo#mvnafqlwkfq#sbqwp#lejnslppjaof#wl##`obpp>!avwwlmol`bwfg#jm#wkf-#Kltfufq/#wkfbmg#fufmwvboozBw#wkf#fmg#le#af`bvpf#le#jwpqfsqfpfmwp#wkf?elqn#b`wjlm>!#nfwklg>!slpw!jw#jp#slppjaofnlqf#ojhfoz#wlbm#jm`qfbpf#jmkbuf#bopl#affm`lqqfpslmgp#wlbmmlvm`fg#wkbwbojdm>!qjdkw!=nbmz#`lvmwqjfpelq#nbmz#zfbqpfbqojfpw#hmltmaf`bvpf#jw#tbpsw!=?,p`qjsw=#ubojdm>!wls!#jmkbajwbmwp#leelooltjmd#zfbq\t?gju#`obpp>!njoojlm#sflsof`lmwqlufqpjbo#`lm`fqmjmd#wkfbqdvf#wkbw#wkfdlufqmnfmw#bmgb#qfefqfm`f#wlwqbmpefqqfg#wlgfp`qjajmd#wkf#pwzof>!`lolq9bowklvdk#wkfqfafpw#hmltm#elqpvanjw!#mbnf>!nvowjsoj`bwjlmnlqf#wkbm#lmf#qf`ldmjwjlm#le@lvm`jo#le#wkffgjwjlm#le#wkf##?nfwb#mbnf>!Fmwfqwbjmnfmw#btbz#eqln#wkf#8nbqdjm.qjdkw9bw#wkf#wjnf#lejmufpwjdbwjlmp`lmmf`wfg#tjwkbmg#nbmz#lwkfqbowklvdk#jw#jpafdjmmjmd#tjwk#?psbm#`obpp>!gfp`fmgbmwp#le?psbm#`obpp>!j#bojdm>!qjdkw!?,kfbg=\t?algz#bpsf`wp#le#wkfkbp#pjm`f#affmFvqlsfbm#Vmjlmqfnjmjp`fmw#lenlqf#gjeej`vowUj`f#Sqfpjgfmw`lnslpjwjlm#lesbppfg#wkqlvdknlqf#jnslqwbmwelmw.pjyf922s{f{sobmbwjlm#lewkf#`lm`fsw#letqjwwfm#jm#wkf\n?psbm#`obpp>!jp#lmf#le#wkf#qfpfnaobm`f#wllm#wkf#dqlvmgptkj`k#`lmwbjmpjm`ovgjmd#wkf#gfejmfg#az#wkfsvaoj`bwjlm#lenfbmp#wkbw#wkflvwpjgf#le#wkfpvsslqw#le#wkf?jmsvw#`obpp>!?psbm#`obpp>!w+Nbwk-qbmgln+*nlpw#sqlnjmfmwgfp`qjswjlm#le@lmpwbmwjmlsoftfqf#svaojpkfg?gju#`obpp>!pfbssfbqp#jm#wkf2!#kfjdkw>!2!#nlpw#jnslqwbmwtkj`k#jm`ovgfptkj`k#kbg#affmgfpwqv`wjlm#lewkf#slsvobwjlm\t\n?gju#`obpp>!slppjajojwz#leplnfwjnfp#vpfgbssfbq#wl#kbufpv``fpp#le#wkfjmwfmgfg#wl#afsqfpfmw#jm#wkfpwzof>!`ofbq9a\t?,p`qjsw=\t?tbp#elvmgfg#jmjmwfqujft#tjwk\\jg!#`lmwfmw>!`bsjwbo#le#wkf\t?ojmh#qfo>!pqfofbpf#le#wkfsljmw#lvw#wkbw{NOKwwsQfrvfpwbmg#pvapfrvfmwpf`lmg#obqdfpwufqz#jnslqwbmwpsf`jej`bwjlmppvqeb`f#le#wkfbssojfg#wl#wkfelqfjdm#sloj`z\\pfwGlnbjmMbnffpwbaojpkfg#jmjp#afojfufg#wlJm#bggjwjlm#wlnfbmjmd#le#wkfjp#mbnfg#bewfqwl#sqlwf`w#wkfjp#qfsqfpfmwfgGf`obqbwjlm#lenlqf#feej`jfmw@obppjej`bwjlmlwkfq#elqnp#lekf#qfwvqmfg#wl?psbm#`obpp>!`sfqelqnbm`f#le+evm`wjlm+*#xje#bmg#lmoz#jeqfdjlmp#le#wkfofbgjmd#wl#wkfqfobwjlmp#tjwkVmjwfg#Mbwjlmppwzof>!kfjdkw9lwkfq#wkbm#wkfzsf!#`lmwfmw>!Bppl`jbwjlm#le\t?,kfbg=\t?algzol`bwfg#lm#wkfjp#qfefqqfg#wl+jm`ovgjmd#wkf`lm`fmwqbwjlmpwkf#jmgjujgvbobnlmd#wkf#nlpwwkbm#bmz#lwkfq,=\t?ojmh#qfo>!#qfwvqm#ebopf8wkf#svqslpf#lewkf#bajojwz#wl8`lolq9 eee~\t-\t?psbm#`obpp>!wkf#pvaif`w#legfejmjwjlmp#le=\t?ojmh#qfo>!`objn#wkbw#wkfkbuf#gfufolsfg?wbaof#tjgwk>!`fofaqbwjlm#leElooltjmd#wkf#wl#gjpwjmdvjpk?psbm#`obpp>!awbhfp#sob`f#jmvmgfq#wkf#mbnfmlwfg#wkbw#wkf=?"Xfmgje^..=\tpwzof>!nbqdjm.jmpwfbg#le#wkfjmwqlgv`fg#wkfwkf#sql`fpp#lejm`qfbpjmd#wkfgjeefqfm`fp#jmfpwjnbwfg#wkbwfpsf`jbooz#wkf,gju=?gju#jg>!tbp#fufmwvboozwkqlvdklvw#kjpwkf#gjeefqfm`fplnfwkjmd#wkbwpsbm=?,psbm=?,pjdmjej`bmwoz#=?,p`qjsw=\t\tfmujqlmnfmwbo#wl#sqfufmw#wkfkbuf#affm#vpfgfpsf`jbooz#elqvmgfqpwbmg#wkfjp#fppfmwjbooztfqf#wkf#ejqpwjp#wkf#obqdfpwkbuf#affm#nbgf!#pq`>!kwws9,,jmwfqsqfwfg#bppf`lmg#kboe#le`qloojmd>!ml!#jp#`lnslpfg#leJJ/#Kloz#Qlnbmjp#f{sf`wfg#wlkbuf#wkfjq#ltmgfejmfg#bp#wkfwqbgjwjlmbooz#kbuf#gjeefqfmwbqf#lewfm#vpfgwl#fmpvqf#wkbwbdqffnfmw#tjwk`lmwbjmjmd#wkfbqf#eqfrvfmwozjmelqnbwjlm#lmf{bnsof#jp#wkfqfpvowjmd#jm#b?,b=?,oj=?,vo=#`obpp>!ellwfqbmg#fpsf`jboozwzsf>!avwwlm!#?,psbm=?,psbm=tkj`k#jm`ovgfg=\t?nfwb#mbnf>!`lmpjgfqfg#wkf`bqqjfg#lvw#azKltfufq/#jw#jpaf`bnf#sbqw#lejm#qfobwjlm#wlslsvobq#jm#wkfwkf#`bsjwbo#letbp#leej`jbooztkj`k#kbp#affmwkf#Kjpwlqz#lebowfqmbwjuf#wlgjeefqfmw#eqlnwl#pvsslqw#wkfpvddfpwfg#wkbwjm#wkf#sql`fpp##?gju#`obpp>!wkf#elvmgbwjlmaf`bvpf#le#kjp`lm`fqmfg#tjwkwkf#vmjufqpjwzlsslpfg#wl#wkfwkf#`lmwf{w#le?psbm#`obpp>!swf{w!#mbnf>!r!\n\n?gju#`obpp>!wkf#p`jfmwjej`qfsqfpfmwfg#aznbwkfnbwj`jbmpfof`wfg#az#wkfwkbw#kbuf#affm=?gju#`obpp>!`gju#jg>!kfbgfqjm#sbqwj`vobq/`lmufqwfg#jmwl*8\t?,p`qjsw=\t?skjolplskj`bo#pqsphlkqubwphjwj\rVSmd#Uj\rWkw<L=o=m=m<V<T<U=l=o=m=m<V<T<Ujmufpwjdb`j/_msbqwj`jsb`j/_m<V<R=n<R=l=g<Y<R<]<W<\\=m=n<T<V<R=n<R=l=g<U=k<Y<W<R<^<Y<V=m<T=m=n<Y<P=g<q<R<^<R=m=n<T<V<R=n<R=l=g=i<R<]<W<\\=m=n=`<^=l<Y<P<Y<Q<T<V<R=n<R=l<\\=c=m<Y<_<R<X<Q=c=m<V<\\=k<\\=n=`<Q<R<^<R=m=n<T<O<V=l<\\<T<Q=g<^<R<S=l<R=m=g<V<R=n<R=l<R<U=m<X<Y<W<\\=n=`<S<R<P<R=e=`=b=m=l<Y<X=m=n<^<R<]=l<\\<[<R<P=m=n<R=l<R<Q=g=o=k<\\=m=n<T<Y=n<Y=k<Y<Q<T<Y<<W<\\<^<Q<\\=c<T=m=n<R=l<T<T=m<T=m=n<Y<P<\\=l<Y=d<Y<Q<T=c<M<V<\\=k<\\=n=`<S<R=a=n<R<P=o=m<W<Y<X=o<Y=n=m<V<\\<[<\\=n=`=n<R<^<\\=l<R<^<V<R<Q<Y=k<Q<R=l<Y=d<Y<Q<T<Y<V<R=n<R=l<R<Y<R=l<_<\\<Q<R<^<V<R=n<R=l<R<P<L<Y<V<W<\\<P<\\4K5h5i5j4F4C5e5i5j4F4C5f4K4F4K5h5i5d4Z5d4U4K5h4D4]4K5i4@4K5h5i5d4K5n4U4K5h4]4_4K4J5h5i4X4K4]5o4K4F4K5h4O4U4Z4K4M4K5h4]5f4K4Z4E4K5h4F4Y5i5f5i4K5h4K4U4Z4K4M4K5h5j4F4K4J4@4K5h4O5h4U4K4D4K5h4F4_4@5f5h4K5h4O5n4_4K5i4K5h4Z4V4[4K4F4K5h5m5f4C5f5d4K5h4F4]4A5f4D4K5h4@4C5f4C4E4K5h4F4U5h5f5i4K5h4O4B4D4K4]4K5h4K5m5h4K5i4K5h4O5m5h4K5i4K5h4F4K4]5f4B4K5h4F5n5j5f4E4K5h4K5h4U4K4D4K5h4B5d4K4[4]4K5h5i4@4F5i4U4K5h4C5f5o5d4]4K5h4_5f4K4A4E4U4D4C4K5h5h5k4K5h4F4]4D5f4E4K5h4]5d4K4D4[4K5h4O4C4D5f4E4K5h4K4B4D4K4]4K5h5i4F4A4C4E4K5h4K4V4K5j5f`vqplq9sljmwfq8?,wjwof=\t?nfwb#!#kqfe>!kwws9,,!=?psbm#`obpp>!nfnafqp#le#wkf#tjmglt-ol`bwjlmufqwj`bo.bojdm9,b=##?b#kqfe>!?"gl`wzsf#kwno=nfgjb>!p`qffm!#?lswjlm#ubovf>!ebuj`lm-j`l!#,=\t\n\n?gju#`obpp>!`kbqb`wfqjpwj`p!#nfwklg>!dfw!#,algz=\t?,kwno=\tpklqw`vw#j`lm!#gl`vnfmw-tqjwf+sbggjmd.alwwln9qfsqfpfmwbwjufppvanjw!#ubovf>!bojdm>!`fmwfq!#wkqlvdklvw#wkf#p`jfm`f#ej`wjlm\t##?gju#`obpp>!pvanjw!#`obpp>!lmf#le#wkf#nlpw#ubojdm>!wls!=?tbp#fpwbaojpkfg*8\t?,p`qjsw=\tqfwvqm#ebopf8!=*-pwzof-gjpsobzaf`bvpf#le#wkf#gl`vnfmw-`llhjf?elqn#b`wjlm>!,~algzxnbqdjm938Fm`z`olsfgjb#leufqpjlm#le#wkf#-`qfbwfFofnfmw+mbnf!#`lmwfmw>!?,gju=\t?,gju=\t\tbgnjmjpwqbwjuf#?,algz=\t?,kwno=kjpwlqz#le#wkf#!=?jmsvw#wzsf>!slqwjlm#le#wkf#bp#sbqw#le#wkf#%maps8?b#kqfe>!lwkfq#`lvmwqjfp!=\t?gju#`obpp>!?,psbm=?,psbm=?Jm#lwkfq#tlqgp/gjpsobz9#aol`h8`lmwqlo#le#wkf#jmwqlgv`wjlm#le,=\t?nfwb#mbnf>!bp#tfoo#bp#wkf#jm#qf`fmw#zfbqp\t\n?gju#`obpp>!?,gju=\t\n?,gju=\tjmpsjqfg#az#wkfwkf#fmg#le#wkf#`lnsbwjaof#tjwkaf`bnf#hmltm#bp#pwzof>!nbqdjm9-ip!=?,p`qjsw=?#Jmwfqmbwjlmbo#wkfqf#kbuf#affmDfqnbm#obmdvbdf#pwzof>!`lolq9 @lnnvmjpw#Sbqwz`lmpjpwfmw#tjwkalqgfq>!3!#`foo#nbqdjmkfjdkw>!wkf#nbilqjwz#le!#bojdm>!`fmwfqqfobwfg#wl#wkf#nbmz#gjeefqfmw#Lqwklgl{#@kvq`kpjnjobq#wl#wkf#,=\t?ojmh#qfo>!ptbp#lmf#le#wkf#vmwjo#kjp#gfbwk~*+*8\t?,p`qjsw=lwkfq#obmdvbdfp`lnsbqfg#wl#wkfslqwjlmp#le#wkfwkf#Mfwkfqobmgpwkf#nlpw#`lnnlmab`hdqlvmg9vqo+bqdvfg#wkbw#wkfp`qloojmd>!ml!#jm`ovgfg#jm#wkfMlqwk#Bnfqj`bm#wkf#mbnf#le#wkfjmwfqsqfwbwjlmpwkf#wqbgjwjlmbogfufolsnfmw#le#eqfrvfmwoz#vpfgb#`loof`wjlm#leufqz#pjnjobq#wlpvqqlvmgjmd#wkff{bnsof#le#wkjpbojdm>!`fmwfq!=tlvog#kbuf#affmjnbdf\\`bswjlm#>bwwb`kfg#wl#wkfpvddfpwjmd#wkbwjm#wkf#elqn#le#jmuloufg#jm#wkfjp#gfqjufg#eqlnmbnfg#bewfq#wkfJmwqlgv`wjlm#wlqfpwqj`wjlmp#lm#pwzof>!tjgwk9#`bm#af#vpfg#wl#wkf#`qfbwjlm#lenlpw#jnslqwbmw#jmelqnbwjlm#bmgqfpvowfg#jm#wkf`loobspf#le#wkfWkjp#nfbmp#wkbwfofnfmwp#le#wkftbp#qfsob`fg#azbmbozpjp#le#wkfjmpsjqbwjlm#elqqfdbqgfg#bp#wkfnlpw#pv``fppevohmltm#bp#%rvlw8b#`lnsqfkfmpjufKjpwlqz#le#wkf#tfqf#`lmpjgfqfgqfwvqmfg#wl#wkfbqf#qfefqqfg#wlVmplvq`fg#jnbdf=\t\n?gju#`obpp>!`lmpjpwp#le#wkfpwlsSqlsbdbwjlmjmwfqfpw#jm#wkfbubjobajojwz#lebssfbqp#wl#kbuffof`wqlnbdmfwj`fmbaofPfquj`fp+evm`wjlm#le#wkfJw#jp#jnslqwbmw?,p`qjsw=?,gju=evm`wjlm+*xubq#qfobwjuf#wl#wkfbp#b#qfpvow#le#wkf#slpjwjlm#leElq#f{bnsof/#jm#nfwklg>!slpw!#tbp#elooltfg#az%bns8ngbpk8#wkfwkf#bssoj`bwjlmip!=?,p`qjsw=\tvo=?,gju=?,gju=bewfq#wkf#gfbwktjwk#qfpsf`w#wlpwzof>!sbggjmd9jp#sbqwj`vobqozgjpsobz9jmojmf8#wzsf>!pvanjw!#jp#gjujgfg#jmwl\bTA\nzk#+\vBl\bQ*qfpslmpbajojgbgbgnjmjpwqb`j/_mjmwfqmb`jlmbofp`lqqfpslmgjfmwf\fHe\fHF\fHC\fIg\fH{\fHF\fIn\fH\\\fIa\fHY\fHU\fHB\fHR\fH\\\fIk\fH^\fIg\fH{\fIg\fHn\fHv\fIm\fHD\fHR\fHY\fH^\fIk\fHy\fHS\fHD\fHT\fH\\\fHy\fHR\fH\\\fHF\fIm\fH^\fHS\fHT\fHz\fIg\fHp\fIk\fHn\fHv\fHR\fHU\fHS\fHc\fHA\fIk\fHp\fIk\fHn\fHZ\fHR\fHB\fHS\fH^\fHU\fHB\fHR\fH\\\fIl\fHp\fHR\fH{\fH\\\fHO\fH@\fHD\fHR\fHD\fIk\fHy\fIm\fHB\fHR\fH\\\fH@\fIa\fH^\fIe\fH{\fHB\fHR\fH^\fHS\fHy\fHB\fHU\fHS\fH^\fHR\fHF\fIo\fH[\fIa\fHL\fH@\fHN\fHP\fHH\fIk\fHA\fHR\fHp\fHF\fHR\fHy\fIa\fH^\fHS\fHy\fHs\fIa\fH\\\fIk\fHD\fHz\fHS\fH^\fHR\fHG\fHJ\fI`\fH\\\fHR\fHD\fHB\fHR\fHB\fH^\fIk\fHB\fHH\fHJ\fHR\fHD\fH@\fHR\fHp\fHR\fH\\\fHY\fHS\fHy\fHR\fHT\fHy\fIa\fHC\fIg\fHn\fHv\fHR\fHU\fHH\fIk\fHF\fHU\fIm\fHm\fHv\fH@\fHH\fHR\fHC\fHR\fHT\fHn\fHY\fHR\fHJ\fHJ\fIk\fHz\fHD\fIk\fHF\fHS\fHw\fH^\fIk\fHY\fHS\fHZ\fIk\fH[\fH\\\fHR\fHp\fIa\fHC\fHe\fHH\fIa\fHH\fH\\\fHB\fIm\fHn\fH@\fHd\fHJ\fIg\fHD\fIg\fHn\fHe\fHF\fHy\fH\\\fHO\fHF\fHN\fHP\fIk\fHn\fHT\fIa\fHI\fHS\fHH\fHG\fHS\fH^\fIa\fHB\fHB\fIm\fHz\fIa\fHC\fHi\fHv\fIa\fHw\fHR\fHw\fIn\fHs\fHH\fIl\fHT\fHn\fH{\fIl\fHH\fHp\fHR\fHc\fH{\fHR\fHY\fHS\fHA\fHR\fH{\fHt\fHO\fIa\fHs\fIk\fHJ\fIn\fHT\fH\\\fIk\fHJ\fHS\fHD\fIg\fHn\fHU\fHH\fIa\fHC\fHR\fHT\fIk\fHy\fIa\fHT\fH{\fHR\fHn\fHK\fIl\fHY\fHS\fHZ\fIa\fHY\fH\\\fHR\fHH\fIk\fHn\fHJ\fId\fHs\fIa\fHT\fHD\fHy\fIa\fHZ\fHR\fHT\fHR\fHB\fHD\fIk\fHi\fHJ\fHR\fH^\fHH\fH@\fHS\fHp\fH^\fIl\fHF\fIm\fH\\\fIn\fH[\fHU\fHS\fHn\fHJ\fIl\fHB\fHS\fHH\fIa\fH\\\fHy\fHY\fHS\fHH\fHR\fH\\\fIm\fHF\fHC\fIk\fHT\fIa\fHI\fHR\fHD\fHy\fH\\\fIg\fHM\fHP\fHB\fIm\fHy\fIa\fHH\fHC\fIg\fHp\fHD\fHR\fHy\fIo\fHF\fHC\fHR\fHF\fIg\fHT\fIa\fHs\fHt\fH\\\fIk\fH^\fIn\fHy\fHR\fH\\\fIa\fHC\fHY\fHS\fHv\fHR\fH\\\fHT\fIn\fHv\fHD\fHR\fHB\fIn\fH^\fIa\fHC\fHJ\fIk\fHz\fIk\fHn\fHU\fHB\fIk\fHZ\fHR\fHT\fIa\fHy\fIn\fH^\fHB\fId\fHn\fHD\fIk\fHH\fId\fHC\fHR\fH\\\fHp\fHS\fHT\fHy\fIkqpp({no!#wjwof>!.wzsf!#`lmwfmw>!wjwof!#`lmwfmw>!bw#wkf#pbnf#wjnf-ip!=?,p`qjsw=\t?!#nfwklg>!slpw!#?,psbm=?,b=?,oj=ufqwj`bo.bojdm9w,irvfqz-njm-ip!=-`oj`h+evm`wjlm+#pwzof>!sbggjmd.~*+*8\t?,p`qjsw=\t?,psbm=?b#kqfe>!?b#kqfe>!kwws9,,*8#qfwvqm#ebopf8wf{w.gf`lqbwjlm9#p`qloojmd>!ml!#alqgfq.`loobspf9bppl`jbwfg#tjwk#Abkbpb#JmglmfpjbFmdojpk#obmdvbdf?wf{w#{no9psb`f>-dje!#alqgfq>!3!?,algz=\t?,kwno=\tlufqeolt9kjggfm8jnd#pq`>!kwws9,,bggFufmwOjpwfmfqqfpslmpjaof#elq#p-ip!=?,p`qjsw=\t,ebuj`lm-j`l!#,=lsfqbwjmd#pzpwfn!#pwzof>!tjgwk92wbqdfw>!\\aobmh!=Pwbwf#Vmjufqpjwzwf{w.bojdm9ofew8\tgl`vnfmw-tqjwf+/#jm`ovgjmd#wkf#bqlvmg#wkf#tlqog*8\t?,p`qjsw=\t?!#pwzof>!kfjdkw98lufqeolt9kjggfmnlqf#jmelqnbwjlmbm#jmwfqmbwjlmbob#nfnafq#le#wkf#lmf#le#wkf#ejqpw`bm#af#elvmg#jm#?,gju=\t\n\n?,gju=\tgjpsobz9#mlmf8!=!#,=\t?ojmh#qfo>!\t##+evm`wjlm+*#xwkf#26wk#`fmwvqz-sqfufmwGfebvow+obqdf#mvnafq#le#Azybmwjmf#Fnsjqf-isdwkvnaofewubpw#nbilqjwz#lenbilqjwz#le#wkf##bojdm>!`fmwfq!=Vmjufqpjwz#Sqfppglnjmbwfg#az#wkfPf`lmg#Tlqog#Tbqgjpwqjavwjlm#le#pwzof>!slpjwjlm9wkf#qfpw#le#wkf#`kbqb`wfqjyfg#az#qfo>!mleloolt!=gfqjufp#eqln#wkfqbwkfq#wkbm#wkf#b#`lnajmbwjlm#lepwzof>!tjgwk9233Fmdojpk.psfbhjmd`lnsvwfq#p`jfm`falqgfq>!3!#bow>!wkf#f{jpwfm`f#leGfnl`qbwj`#Sbqwz!#pwzof>!nbqdjm.Elq#wkjp#qfbplm/-ip!=?,p`qjsw=\t\npAzWbdMbnf+p*X3^ip!=?,p`qjsw=\t?-ip!=?,p`qjsw=\tojmh#qfo>!j`lm!#$#bow>$$#`obpp>$elqnbwjlm#le#wkfufqpjlmp#le#wkf#?,b=?,gju=?,gju=,sbdf=\t##?sbdf=\t?gju#`obpp>!`lmwaf`bnf#wkf#ejqpwabkbpb#Jmglmfpjbfmdojpk#+pjnsof*"y"W"W"["Q"U"V"@=i=l<^<\\=n=m<V<T<V<R<P<S<\\<Q<T<T=c<^<W=c<Y=n=m=c<x<R<]<\\<^<T=n=`=k<Y<W<R<^<Y<V<\\=l<\\<[<^<T=n<T=c<t<Q=n<Y=l<Q<Y=n<r=n<^<Y=n<T=n=`<Q<\\<S=l<T<P<Y=l<T<Q=n<Y=l<Q<Y=n<V<R=n<R=l<R<_<R=m=n=l<\\<Q<T=j=g<V<\\=k<Y=m=n<^<Y=o=m<W<R<^<T=c=i<S=l<R<]<W<Y<P=g<S<R<W=o=k<T=n=`=c<^<W=c=b=n=m=c<Q<\\<T<]<R<W<Y<Y<V<R<P<S<\\<Q<T=c<^<Q<T<P<\\<Q<T<Y=m=l<Y<X=m=n<^<\\4K5h5i5d4K4Z5f4U4K5h4]4J5f4_5f4E4K5h4K5j4F5n4K5h5i4X4K4]5o4K4F5o4K5h4_5f4K4]4K4F4K5h5i5o4F5d4D4E4K5h4_4U5d4C5f4E4K4A4Y4K4J5f4K4F4K5h4U4K5h5i5f4E4K5h4Y5d4F5f4K4F4K5h4K5j4F4]5j4F4K5h4F4Y4K5i5f5i4K5h4I4_5h4K5i5f4K5h5i4X4K4]5o4E4K5h5i4]4J5f4K4Fqlalwp!#`lmwfmw>!?gju#jg>!ellwfq!=wkf#Vmjwfg#Pwbwfp?jnd#pq`>!kwws9,,-isdqjdkwwkvna-ip!=?,p`qjsw=\t?ol`bwjlm-sqlwl`loeqbnfalqgfq>!3!#p!#,=\t?nfwb#mbnf>!?,b=?,gju=?,gju=?elmw.tfjdkw9alog8%rvlw8#bmg#%rvlw8gfsfmgjmd#lm#wkf#nbqdjm938sbggjmd9!#qfo>!mleloolt!#Sqfpjgfmw#le#wkf#wtfmwjfwk#`fmwvqzfujpjlm=\t##?,sbdfJmwfqmfw#F{solqfqb-bpzm`#>#wqvf8\tjmelqnbwjlm#balvw?gju#jg>!kfbgfq!=!#b`wjlm>!kwws9,,?b#kqfe>!kwwsp9,,?gju#jg>!`lmwfmw!?,gju=\t?,gju=\t?gfqjufg#eqln#wkf#?jnd#pq`>$kwws9,,b``lqgjmd#wl#wkf#\t?,algz=\t?,kwno=\tpwzof>!elmw.pjyf9p`qjsw#obmdvbdf>!Bqjbo/#Kfoufwj`b/?,b=?psbm#`obpp>!?,p`qjsw=?p`qjsw#slojwj`bo#sbqwjfpwg=?,wq=?,wbaof=?kqfe>!kwws9,,ttt-jmwfqsqfwbwjlm#leqfo>!pwzofpkffw!#gl`vnfmw-tqjwf+$?`kbqpfw>!vwe.;!=\tafdjmmjmd#le#wkf#qfufbofg#wkbw#wkfwfofujpjlm#pfqjfp!#qfo>!mleloolt!=#wbqdfw>!\\aobmh!=`objnjmd#wkbw#wkfkwws&0B&1E&1Ettt-nbmjefpwbwjlmp#leSqjnf#Njmjpwfq#lejmeovfm`fg#az#wkf`obpp>!`ofbqej{!=,gju=\t?,gju=\t\twkqff.gjnfmpjlmbo@kvq`k#le#Fmdobmgle#Mlqwk#@bqlojmbprvbqf#hjolnfwqfp-bggFufmwOjpwfmfqgjpwjm`w#eqln#wkf`lnnlmoz#hmltm#bpSklmfwj`#Boskbafwgf`obqfg#wkbw#wkf`lmwqloofg#az#wkfAfmibnjm#Eqbmhojmqlof.sobzjmd#dbnfwkf#Vmjufqpjwz#lejm#Tfpwfqm#Fvqlsfsfqplmbo#`lnsvwfqSqlif`w#Dvwfmafqdqfdbqgofpp#le#wkfkbp#affm#sqlslpfgwldfwkfq#tjwk#wkf=?,oj=?oj#`obpp>!jm#plnf#`lvmwqjfpnjm-ip!=?,p`qjsw=le#wkf#slsvobwjlmleej`jbo#obmdvbdf?jnd#pq`>!jnbdfp,jgfmwjejfg#az#wkfmbwvqbo#qfplvq`fp`obppjej`bwjlm#le`bm#af#`lmpjgfqfgrvbmwvn#nf`kbmj`pMfufqwkfofpp/#wkfnjoojlm#zfbqp#bdl?,algz=\t?,kwno="y"W"W"["Q"U"V"@\twbhf#bgubmwbdf#lebmg/#b``lqgjmd#wlbwwqjavwfg#wl#wkfNj`qlplew#Tjmgltpwkf#ejqpw#`fmwvqzvmgfq#wkf#`lmwqlogju#`obpp>!kfbgfqpklqwoz#bewfq#wkfmlwbaof#f{`fswjlmwfmp#le#wklvpbmgppfufqbo#gjeefqfmwbqlvmg#wkf#tlqog-qfb`kjmd#njojwbqzjplobwfg#eqln#wkflsslpjwjlm#wl#wkfwkf#Log#WfpwbnfmwBeqj`bm#Bnfqj`bmpjmpfqwfg#jmwl#wkfpfsbqbwf#eqln#wkfnfwqlslojwbm#bqfbnbhfp#jw#slppjaofb`hmltofgdfg#wkbwbqdvbaoz#wkf#nlpwwzsf>!wf{w,`pp!=\twkf#JmwfqmbwjlmboB``lqgjmd#wl#wkf#sf>!wf{w,`pp!#,=\t`ljm`jgf#tjwk#wkfwtl.wkjqgp#le#wkfGvqjmd#wkjp#wjnf/gvqjmd#wkf#sfqjlgbmmlvm`fg#wkbw#kfwkf#jmwfqmbwjlmbobmg#nlqf#qf`fmwozafojfufg#wkbw#wkf`lmp`jlvpmfpp#bmgelqnfqoz#hmltm#bppvqqlvmgfg#az#wkfejqpw#bssfbqfg#jml``bpjlmbooz#vpfgslpjwjlm9baplovwf8!#wbqdfw>!\\aobmh!#slpjwjlm9qfobwjuf8wf{w.bojdm9`fmwfq8ib{,ojap,irvfqz,2-ab`hdqlvmg.`lolq9 wzsf>!bssoj`bwjlm,bmdvbdf!#`lmwfmw>!?nfwb#kwws.frvju>!Sqjub`z#Sloj`z?,b=f+!&0@p`qjsw#pq`>$!#wbqdfw>!\\aobmh!=Lm#wkf#lwkfq#kbmg/-isdwkvnaqjdkw1?,gju=?gju#`obpp>!?gju#pwzof>!eolbw9mjmfwffmwk#`fmwvqz?,algz=\t?,kwno=\t?jnd#pq`>!kwws9,,p8wf{w.bojdm9`fmwfqelmw.tfjdkw9#alog8#B``lqgjmd#wl#wkf#gjeefqfm`f#afwtffm!#eqbnfalqgfq>!3!#!#pwzof>!slpjwjlm9ojmh#kqfe>!kwws9,,kwno7,ollpf-gwg!=\tgvqjmd#wkjp#sfqjlg?,wg=?,wq=?,wbaof=`olpfoz#qfobwfg#wlelq#wkf#ejqpw#wjnf8elmw.tfjdkw9alog8jmsvw#wzsf>!wf{w!#?psbm#pwzof>!elmw.lmqfbgzpwbwf`kbmdf\n?gju#`obpp>!`ofbqgl`vnfmw-ol`bwjlm-#Elq#f{bnsof/#wkf#b#tjgf#ubqjfwz#le#?"GL@WZSF#kwno=\t?%maps8%maps8%maps8!=?b#kqfe>!kwws9,,pwzof>!eolbw9ofew8`lm`fqmfg#tjwk#wkf>kwws&0B&1E&1Ettt-jm#slsvobq#`vowvqfwzsf>!wf{w,`pp!#,=jw#jp#slppjaof#wl#Kbqubqg#Vmjufqpjwzwzofpkffw!#kqfe>!,wkf#nbjm#`kbqb`wfqL{elqg#Vmjufqpjwz##mbnf>!hfztlqgp!#`pwzof>!wf{w.bojdm9wkf#Vmjwfg#Hjmdglnefgfqbo#dlufqmnfmw?gju#pwzof>!nbqdjm#gfsfmgjmd#lm#wkf#gfp`qjswjlm#le#wkf?gju#`obpp>!kfbgfq-njm-ip!=?,p`qjsw=gfpwqv`wjlm#le#wkfpojdkwoz#gjeefqfmwjm#b``lqgbm`f#tjwkwfof`lnnvmj`bwjlmpjmgj`bwfp#wkbw#wkfpklqwoz#wkfqfbewfqfpsf`jbooz#jm#wkf#Fvqlsfbm#`lvmwqjfpKltfufq/#wkfqf#bqfpq`>!kwws9,,pwbwj`pvddfpwfg#wkbw#wkf!#pq`>!kwws9,,ttt-b#obqdf#mvnafq#le#Wfof`lnnvmj`bwjlmp!#qfo>!mleloolt!#wKloz#Qlnbm#Fnsfqlqbonlpw#f{`ovpjufoz!#alqgfq>!3!#bow>!Pf`qfwbqz#le#Pwbwf`vonjmbwjmd#jm#wkf@JB#Tlqog#Eb`wallhwkf#nlpw#jnslqwbmwbmmjufqpbqz#le#wkfpwzof>!ab`hdqlvmg.?oj=?fn=?b#kqfe>!,wkf#Bwobmwj`#L`fbmpwqj`woz#psfbhjmd/pklqwoz#afelqf#wkfgjeefqfmw#wzsfp#lewkf#Lwwlnbm#Fnsjqf=?jnd#pq`>!kwws9,,Bm#Jmwqlgv`wjlm#wl`lmpfrvfm`f#le#wkfgfsbqwvqf#eqln#wkf@lmefgfqbwf#Pwbwfpjmgjdfmlvp#sflsofpSql`ffgjmdp#le#wkfjmelqnbwjlm#lm#wkfwkflqjfp#kbuf#affmjmuloufnfmw#jm#wkfgjujgfg#jmwl#wkqffbgib`fmw#`lvmwqjfpjp#qfpslmpjaof#elqgjpplovwjlm#le#wkf`loobalqbwjlm#tjwktjgfoz#qfdbqgfg#bpkjp#`lmwfnslqbqjfpelvmgjmd#nfnafq#leGlnjmj`bm#Qfsvaoj`dfmfqbooz#b``fswfgwkf#slppjajojwz#lebqf#bopl#bubjobaofvmgfq#`lmpwqv`wjlmqfpwlqbwjlm#le#wkfwkf#dfmfqbo#svaoj`jp#bonlpw#fmwjqfozsbppfp#wkqlvdk#wkfkbp#affm#pvddfpwfg`lnsvwfq#bmg#ujgflDfqnbmj`#obmdvbdfp#b``lqgjmd#wl#wkf#gjeefqfmw#eqln#wkfpklqwoz#bewfqtbqgpkqfe>!kwwsp9,,ttt-qf`fmw#gfufolsnfmwAlbqg#le#Gjqf`wlqp?gju#`obpp>!pfbq`k#?b#kqfe>!kwws9,,Jm#sbqwj`vobq/#wkfNvowjsof#ellwmlwfplq#lwkfq#pvapwbm`fwklvpbmgp#le#zfbqpwqbmpobwjlm#le#wkf?,gju=\t?,gju=\t\t?b#kqfe>!jmgf{-skstbp#fpwbaojpkfg#jmnjm-ip!=?,p`qjsw=\tsbqwj`jsbwf#jm#wkfb#pwqlmd#jmeovfm`fpwzof>!nbqdjm.wls9qfsqfpfmwfg#az#wkfdqbgvbwfg#eqln#wkfWqbgjwjlmbooz/#wkfFofnfmw+!p`qjsw!*8Kltfufq/#pjm`f#wkf,gju=\t?,gju=\t?gju#ofew8#nbqdjm.ofew9sqlwf`wjlm#bdbjmpw38#ufqwj`bo.bojdm9Vmelqwvmbwfoz/#wkfwzsf>!jnbdf,{.j`lm,gju=\t?gju#`obpp>!#`obpp>!`ofbqej{!=?gju#`obpp>!ellwfq\n\n?,gju=\t\n\n?,gju=\twkf#nlwjlm#sj`wvqf<}=f<W<_<\\=l=m<V<T<]=f<W<_<\\=l=m<V<T<H<Y<X<Y=l<\\=j<T<T<Q<Y=m<V<R<W=`<V<R=m<R<R<]=e<Y<Q<T<Y=m<R<R<]=e<Y<Q<T=c<S=l<R<_=l<\\<P<P=g<r=n<S=l<\\<^<T=n=`<]<Y=m<S<W<\\=n<Q<R<P<\\=n<Y=l<T<\\<W=g<S<R<[<^<R<W=c<Y=n<S<R=m<W<Y<X<Q<T<Y=l<\\<[<W<T=k<Q=g=i<S=l<R<X=o<V=j<T<T<S=l<R<_=l<\\<P<P<\\<S<R<W<Q<R=m=n=`=b<Q<\\=i<R<X<T=n=m=c<T<[<]=l<\\<Q<Q<R<Y<Q<\\=m<Y<W<Y<Q<T=c<T<[<P<Y<Q<Y<Q<T=c<V<\\=n<Y<_<R=l<T<T<|<W<Y<V=m<\\<Q<X=l\fHJ\fIa\fHY\fHR\fH\\\fHR\fHB\fId\fHD\fIm\fHi\fH^\fHF\fIa\fH\\\fHJ\fHR\fHD\fHA\fHR\fH\\\fHH\fIl\fHC\fHi\fHD\fIm\fHJ\fIk\fHZ\fHU\fHS\fHD\fIa\fHJ\fIl\fHk\fHn\fHM\fHS\fHC\fHR\fHJ\fHS\fH^\fIa\fH^\fIl\fHi\fHK\fHS\fHy\fHR\fH\\\fHY\fIl\fHM\fHS\fHC\fIg\fHv\fHS\fHs\fIa\fHL\fIk\fHT\fHB\fHR\fHv\fHR\fH\\\fHp\fHn\fHy\fIa\fHZ\fHD\fHJ\fIm\fHD\fHS\fHC\fHR\fHF\fIa\fH\\\fHC\fIg\fH{\fHi\fHD\fIm\fHT\fHR\fH\\\fH}\fHD\fH^\fHR\fHk\fHD\fHF\fHR\fH\\\fIa\fHs\fIl\fHZ\fH\\\fIa\fHH\fIg\fHn\fH^\fIg\fHy\fHT\fHA\fHR\fHG\fHP\fIa\fH^\fId\fHZ\fHZ\fH\\\fIa\fHH\fIk\fHn\fHF\fIa\fH\\\fHJ\fIk\fHZ\fHF\fIa\fH^\fIk\fHC\fH\\\fHy\fIk\fHn\fHJ\fIa\fH\\\fHT\fIa\fHI\fHS\fHH\fHS\fHe\fHH\fIa\fHF\fHR\fHJ\fHe\fHD\fIa\fHU\fIk\fHn\fHv\fHS\fHs\fIa\fHL\fHR\fHC\fHR\fHH\fIa\fH\\\fHR\fHp\fIa\fHC\fHR\fHJ\fHR\fHF\fIm\fH\\\fHR\fHD\fIk\fHp\fIg\fHM\fHP\fIk\fHn\fHi\fHD\fIm\fHY\fHR\fHJ\fHZ\fIa\fH\\\fIk\fHO\fIl\fHZ\fHS\fHy\fIa\fH[\fHR\fHT\fH\\\fHy\fHR\fH\\\fIl\fHT\fHn\fH{\fIa\fH\\\fHU\fHF\fH\\\fHS\fHO\fHR\fHB\fH@\fIa\fH\\\fHR\fHn\fHM\fH@\fHv\fIa\fHv\fIg\fHn\fHe\fHF\fH^\fH@\fIa\fHK\fHB\fHn\fHH\fIa\fH\\\fIl\fHT\fHn\fHF\fH\\\fIa\fHy\fHe\fHB\fIa\fHB\fIl\fHJ\fHB\fHR\fHK\fIa\fHC\fHB\fHT\fHU\fHR\fHC\fHH\fHR\fHZ\fH@\fIa\fHJ\fIg\fHn\fHB\fIl\fHM\fHS\fHC\fHR\fHj\fHd\fHF\fIl\fHc\fH^\fHB\fIg\fH@\fHR\fHk\fH^\fHT\fHn\fHz\fIa\fHC\fHR\fHj\fHF\fH\\\fIk\fHZ\fHD\fHi\fHD\fIm\fH@\fHn\fHK\fH@\fHR\fHp\fHP\fHR\fH\\\fHD\fHY\fIl\fHD\fHH\fHB\fHF\fIa\fH\\\fHB\fIm\fHz\fHF\fIa\fH\\\fHZ\fIa\fHD\fHF\fH\\\fHS\fHY\fHR\fH\\\fHD\fIm\fHy\fHT\fHR\fHD\fHT\fHB\fH\\\fIa\fHI\fHD\fHj\fHC\fIg\fHp\fHS\fHH\fHT\fIg\fHB\fHY\fHR\fH\\4K5h5i4X4K4]5o4K4F4K5h5i5j4F4C5f4K4F4K5h5o5i4D5f5d4F4]4K5h5i4X4K5k4C4K4F4U4C4C4K5h4^5d4K4]4U4C4C4K5h4]4C5d4C4K5h4I4_5h4K5i5f4E4K5h5m5d4F5d4X5d4D4K5h5i4_4K4D5n4K4F4K5h5i4U5h5d5i4K4F4K5h5i4_5h4_5h4K4F4K5h4@4]4K5m5f5o4_4K5h4K4_5h4K5i5f4E4K5h4K4F4Y4K5h4K4Fhfztlqgp!#`lmwfmw>!t0-lqd,2:::,{kwno!=?b#wbqdfw>!\\aobmh!#wf{w,kwno8#`kbqpfw>!#wbqdfw>!\\aobmh!=?wbaof#`foosbggjmd>!bvwl`lnsofwf>!lee!#wf{w.bojdm9#`fmwfq8wl#obpw#ufqpjlm#az#ab`hdqlvmg.`lolq9# !#kqfe>!kwws9,,ttt-,gju=?,gju=?gju#jg>?b#kqfe>! !#`obpp>!!=?jnd#pq`>!kwws9,,`qjsw!#pq`>!kwws9,,\t?p`qjsw#obmdvbdf>!,,FM!#!kwws9,,ttt-tfm`lgfVQJ@lnslmfmw+!#kqfe>!ibubp`qjsw9?gju#`obpp>!`lmwfmwgl`vnfmw-tqjwf+$?p`slpjwjlm9#baplovwf8p`qjsw#pq`>!kwws9,,#pwzof>!nbqdjm.wls9-njm-ip!=?,p`qjsw=\t?,gju=\t?gju#`obpp>!t0-lqd,2:::,{kwno!#\t\t?,algz=\t?,kwno=gjpwjm`wjlm#afwtffm,!#wbqdfw>!\\aobmh!=?ojmh#kqfe>!kwws9,,fm`lgjmd>!vwe.;!<=\tt-bggFufmwOjpwfmfq<b`wjlm>!kwws9,,ttt-j`lm!#kqfe>!kwws9,,#pwzof>!ab`hdqlvmg9wzsf>!wf{w,`pp!#,=\tnfwb#sqlsfqwz>!ld9w?jmsvw#wzsf>!wf{w!##pwzof>!wf{w.bojdm9wkf#gfufolsnfmw#le#wzofpkffw!#wzsf>!wfkwno8#`kbqpfw>vwe.;jp#`lmpjgfqfg#wl#afwbaof#tjgwk>!233&!#Jm#bggjwjlm#wl#wkf#`lmwqjavwfg#wl#wkf#gjeefqfm`fp#afwtffmgfufolsnfmw#le#wkf#Jw#jp#jnslqwbmw#wl#?,p`qjsw=\t\t?p`qjsw##pwzof>!elmw.pjyf92=?,psbm=?psbm#jg>daOjaqbqz#le#@lmdqfpp?jnd#pq`>!kwws9,,jnFmdojpk#wqbmpobwjlmB`bgfnz#le#P`jfm`fpgju#pwzof>!gjpsobz9`lmpwqv`wjlm#le#wkf-dfwFofnfmwAzJg+jg*jm#`lmivm`wjlm#tjwkFofnfmw+$p`qjsw$*8#?nfwb#sqlsfqwz>!ld9<}=f<W<_<\\=l=m<V<T\t#wzsf>!wf{w!#mbnf>!=Sqjub`z#Sloj`z?,b=bgnjmjpwfqfg#az#wkffmbaofPjmdofQfrvfpwpwzof>%rvlw8nbqdjm9?,gju=?,gju=?,gju=?=?jnd#pq`>!kwws9,,j#pwzof>%rvlw8eolbw9qfefqqfg#wl#bp#wkf#wlwbo#slsvobwjlm#lejm#Tbpkjmdwlm/#G-@-#pwzof>!ab`hdqlvmg.bnlmd#lwkfq#wkjmdp/lqdbmjybwjlm#le#wkfsbqwj`jsbwfg#jm#wkfwkf#jmwqlgv`wjlm#lejgfmwjejfg#tjwk#wkfej`wjlmbo#`kbqb`wfq#L{elqg#Vmjufqpjwz#njpvmgfqpwbmgjmd#leWkfqf#bqf/#kltfufq/pwzofpkffw!#kqfe>!,@lovnajb#Vmjufqpjwzf{sbmgfg#wl#jm`ovgfvpvbooz#qfefqqfg#wljmgj`bwjmd#wkbw#wkfkbuf#pvddfpwfg#wkbwbeejojbwfg#tjwk#wkf`lqqfobwjlm#afwtffmmvnafq#le#gjeefqfmw=?,wg=?,wq=?,wbaof=Qfsvaoj`#le#Jqfobmg\t?,p`qjsw=\t?p`qjsw#vmgfq#wkf#jmeovfm`f`lmwqjavwjlm#wl#wkfLeej`jbo#tfapjwf#lekfbgrvbqwfqp#le#wkf`fmwfqfg#bqlvmg#wkfjnsoj`bwjlmp#le#wkfkbuf#affm#gfufolsfgEfgfqbo#Qfsvaoj`#leaf`bnf#jm`qfbpjmdoz`lmwjmvbwjlm#le#wkfMlwf/#kltfufq/#wkbwpjnjobq#wl#wkbw#le#`bsbajojwjfp#le#wkfb``lqgbm`f#tjwk#wkfsbqwj`jsbmwp#jm#wkfevqwkfq#gfufolsnfmwvmgfq#wkf#gjqf`wjlmjp#lewfm#`lmpjgfqfgkjp#zlvmdfq#aqlwkfq?,wg=?,wq=?,wbaof=?b#kwws.frvju>![.VB.skzpj`bo#sqlsfqwjfple#Aqjwjpk#@lovnajbkbp#affm#`qjwj`jyfg+tjwk#wkf#f{`fswjlmrvfpwjlmp#balvw#wkfsbppjmd#wkqlvdk#wkf3!#`foosbggjmd>!3!#wklvpbmgp#le#sflsofqfgjqf`wp#kfqf-#Elqkbuf#`kjogqfm#vmgfq&0F&0@,p`qjsw&0F!**8?b#kqfe>!kwws9,,ttt-?oj=?b#kqfe>!kwws9,,pjwf\\mbnf!#`lmwfmw>!wf{w.gf`lqbwjlm9mlmfpwzof>!gjpsobz9#mlmf?nfwb#kwws.frvju>![.mft#Gbwf+*-dfwWjnf+*#wzsf>!jnbdf,{.j`lm!?,psbm=?psbm#`obpp>!obmdvbdf>!ibubp`qjswtjmglt-ol`bwjlm-kqfe?b#kqfe>!ibubp`qjsw9..=\t?p`qjsw#wzsf>!w?b#kqfe>$kwws9,,ttt-klqw`vw#j`lm!#kqfe>!?,gju=\t?gju#`obpp>!?p`qjsw#pq`>!kwws9,,!#qfo>!pwzofpkffw!#w?,gju=\t?p`qjsw#wzsf>,b=#?b#kqfe>!kwws9,,#booltWqbmpsbqfm`z>![.VB.@lnsbwjaof!#`lmqfobwjlmpkjs#afwtffm\t?,p`qjsw=\t?p`qjsw#?,b=?,oj=?,vo=?,gju=bppl`jbwfg#tjwk#wkf#sqldqbnnjmd#obmdvbdf?,b=?b#kqfe>!kwws9,,?,b=?,oj=?oj#`obpp>!elqn#b`wjlm>!kwws9,,?gju#pwzof>!gjpsobz9wzsf>!wf{w!#mbnf>!r!?wbaof#tjgwk>!233&!#ab`hdqlvmg.slpjwjlm9!#alqgfq>!3!#tjgwk>!qfo>!pklqw`vw#j`lm!#k5=?vo=?oj=?b#kqfe>!##?nfwb#kwws.frvju>!`pp!#nfgjb>!p`qffm!#qfpslmpjaof#elq#wkf#!#wzsf>!bssoj`bwjlm,!#pwzof>!ab`hdqlvmg.kwno8#`kbqpfw>vwe.;!#booltwqbmpsbqfm`z>!pwzofpkffw!#wzsf>!wf\t?nfwb#kwws.frvju>!=?,psbm=?psbm#`obpp>!3!#`foopsb`jmd>!3!=8\t?,p`qjsw=\t?p`qjsw#plnfwjnfp#`boofg#wkfglfp#mlw#mf`fppbqjozElq#nlqf#jmelqnbwjlmbw#wkf#afdjmmjmd#le#?"GL@WZSF#kwno=?kwnosbqwj`vobqoz#jm#wkf#wzsf>!kjggfm!#mbnf>!ibubp`qjsw9uljg+3*8!feef`wjufmfpp#le#wkf#bvwl`lnsofwf>!lee!#dfmfqbooz#`lmpjgfqfg=?jmsvw#wzsf>!wf{w!#!=?,p`qjsw=\t?p`qjswwkqlvdklvw#wkf#tlqog`lnnlm#njp`lm`fswjlmbppl`jbwjlm#tjwk#wkf?,gju=\t?,gju=\t?gju#`gvqjmd#kjp#ojefwjnf/`lqqfpslmgjmd#wl#wkfwzsf>!jnbdf,{.j`lm!#bm#jm`qfbpjmd#mvnafqgjsolnbwj`#qfobwjlmpbqf#lewfm#`lmpjgfqfgnfwb#`kbqpfw>!vwe.;!#?jmsvw#wzsf>!wf{w!#f{bnsofp#jm`ovgf#wkf!=?jnd#pq`>!kwws9,,jsbqwj`jsbwjlm#jm#wkfwkf#fpwbaojpknfmw#le\t?,gju=\t?gju#`obpp>!%bns8maps8%bns8maps8wl#gfwfqnjmf#tkfwkfqrvjwf#gjeefqfmw#eqlnnbqhfg#wkf#afdjmmjmdgjpwbm`f#afwtffm#wkf`lmwqjavwjlmp#wl#wkf`lmeoj`w#afwtffm#wkftjgfoz#`lmpjgfqfg#wltbp#lmf#le#wkf#ejqpwtjwk#ubqzjmd#gfdqffpkbuf#psf`vobwfg#wkbw+gl`vnfmw-dfwFofnfmwsbqwj`jsbwjmd#jm#wkflqjdjmbooz#gfufolsfgfwb#`kbqpfw>!vwe.;!=#wzsf>!wf{w,`pp!#,=\tjmwfq`kbmdfbaoz#tjwknlqf#`olpfoz#qfobwfgpl`jbo#bmg#slojwj`bowkbw#tlvog#lwkfqtjpfsfqsfmgj`vobq#wl#wkfpwzof#wzsf>!wf{w,`ppwzsf>!pvanjw!#mbnf>!ebnjojfp#qfpjgjmd#jmgfufolsjmd#`lvmwqjfp`lnsvwfq#sqldqbnnjmdf`lmlnj`#gfufolsnfmwgfwfqnjmbwjlm#le#wkfelq#nlqf#jmelqnbwjlmlm#pfufqbo#l``bpjlmpslqwvdv/Fp#+Fvqlsfv*<O<V=l<\\={<Q=m=`<V<\\=o<V=l<\\={<Q=m=`<V<\\<L<R=m=m<T<U=m<V<R<U<P<\\=n<Y=l<T<\\<W<R<^<T<Q=h<R=l<P<\\=j<T<T=o<S=l<\\<^<W<Y<Q<T=c<Q<Y<R<]=i<R<X<T<P<R<T<Q=h<R=l<P<\\=j<T=c<t<Q=h<R=l<P<\\=j<T=c<L<Y=m<S=o<]<W<T<V<T<V<R<W<T=k<Y=m=n<^<R<T<Q=h<R=l<P<\\=j<T=b=n<Y=l=l<T=n<R=l<T<T<X<R=m=n<\\=n<R=k<Q<R4K5h5i4F5d4K4@4C5d5j4K5h4K4X4F4]4K5o4K4F4K5h4K5n4F4]4K4A4K4Fkwno8#`kbqpfw>VWE.;!#pfwWjnflvw+evm`wjlm+*gjpsobz9jmojmf.aol`h8?jmsvw#wzsf>!pvanjw!#wzsf#>#$wf{w,ibubp`qj?jnd#pq`>!kwws9,,ttt-!#!kwws9,,ttt-t0-lqd,pklqw`vw#j`lm!#kqfe>!!#bvwl`lnsofwf>!lee!#?,b=?,gju=?gju#`obpp>?,b=?,oj=\t?oj#`obpp>!`pp!#wzsf>!wf{w,`pp!#?elqn#b`wjlm>!kwws9,,{w,`pp!#kqfe>!kwws9,,ojmh#qfo>!bowfqmbwf!#\t?p`qjsw#wzsf>!wf{w,#lm`oj`h>!ibubp`qjsw9+mft#Gbwf*-dfwWjnf+*~kfjdkw>!2!#tjgwk>!2!#Sflsof$p#Qfsvaoj`#le##?b#kqfe>!kwws9,,ttt-wf{w.gf`lqbwjlm9vmgfqwkf#afdjmmjmd#le#wkf#?,gju=\t?,gju=\t?,gju=\tfpwbaojpknfmw#le#wkf#?,gju=?,gju=?,gju=?,g ujftslqwxnjm.kfjdkw9\t?p`qjsw#pq`>!kwws9,,lswjlm=?lswjlm#ubovf>lewfm#qfefqqfg#wl#bp#,lswjlm=\t?lswjlm#ubov?"GL@WZSF#kwno=\t?"..XJmwfqmbwjlmbo#Bjqslqw=\t?b#kqfe>!kwws9,,ttt?,b=?b#kqfe>!kwws9,,t\fTL\fT^\fTE\fT^\fUh\fT{\fTN\roI\ro|\roL\ro{\roO\rov\rot\nAOGx\bTA\nzk#+\vUmGx*\fHD\fHS\fH\\\fIa\fHJ\fIk\fHZ\fHM\fHR\fHe\fHD\fH^\fIg\fHM\fHy\fIa\fH[\fIk\fHH\fIa\fH\\\fHp\fHR\fHD\fHy\fHR\fH\\\fIl\fHT\fHn\fH@\fHn\fHK\fHS\fHH\fHT\fIa\fHI\fHR\fHF\fHD\fHR\fHT\fIa\fHY\fIl\fHy\fHR\fH\\\fHT\fHn\fHT\fIa\fHy\fH\\\fHO\fHT\fHR\fHB\fH{\fIa\fH\\\fIl\fHv\fHS\fHs\fIa\fHL\fIg\fHn\fHY\fHS\fHp\fIa\fHr\fHR\fHD\fHi\fHB\fIk\fH\\\fHS\fHy\fHR\fHY\fHS\fHA\fHS\fHD\fIa\fHD\fH{\fHR\fHM\fHS\fHC\fHR\fHm\fHy\fIa\fHC\fIg\fHn\fHy\fHS\fHT\fIm\fH\\\fHy\fIa\fH[\fHR\fHF\fHU\fIm\fHm\fHv\fHH\fIl\fHF\fIa\fH\\\fH@\fHn\fHK\fHD\fHs\fHS\fHF\fIa\fHF\fHO\fIl\fHy\fIa\fH\\\fHS\fHy\fIk\fHs\fHF\fIa\fH\\\fHR\fH\\\fHn\fHA\fHF\fIa\fH\\\fHR\fHF\fIa\fHH\fHB\fHR\fH^\fHS\fHy\fIg\fHn\fH\\\fHG\fHP\fIa\fHH\fHR\fH\\\fHD\fHS\fH\\\fIa\fHB\fHR\fHO\fH^\fHS\fHB\fHS\fHs\fIk\fHMgfp`qjswjlm!#`lmwfmw>!gl`vnfmw-ol`bwjlm-sqlw-dfwFofnfmwpAzWbdMbnf+?"GL@WZSF#kwno=\t?kwno#?nfwb#`kbqpfw>!vwe.;!=9vqo!#`lmwfmw>!kwws9,,-`pp!#qfo>!pwzofpkffw!pwzof#wzsf>!wf{w,`pp!=wzsf>!wf{w,`pp!#kqfe>!t0-lqd,2:::,{kwno!#{nowzsf>!wf{w,ibubp`qjsw!#nfwklg>!dfw!#b`wjlm>!ojmh#qfo>!pwzofpkffw!##>#gl`vnfmw-dfwFofnfmwwzsf>!jnbdf,{.j`lm!#,=`foosbggjmd>!3!#`foops-`pp!#wzsf>!wf{w,`pp!#?,b=?,oj=?oj=?b#kqfe>!!#tjgwk>!2!#kfjdkw>!2!!=?b#kqfe>!kwws9,,ttt-pwzof>!gjpsobz9mlmf8!=bowfqmbwf!#wzsf>!bssoj.,,T0@,,GWG#[KWNO#2-3#foopsb`jmd>!3!#`foosbg#wzsf>!kjggfm!#ubovf>!,b=%maps8?psbm#qlof>!p\t?jmsvw#wzsf>!kjggfm!#obmdvbdf>!IbubP`qjsw!##gl`vnfmw-dfwFofnfmwpAd>!3!#`foopsb`jmd>!3!#zsf>!wf{w,`pp!#nfgjb>!wzsf>$wf{w,ibubp`qjsw$tjwk#wkf#f{`fswjlm#le#zsf>!wf{w,`pp!#qfo>!pw#kfjdkw>!2!#tjgwk>!2!#>$(fm`lgfVQJ@lnslmfmw+?ojmh#qfo>!bowfqmbwf!#\talgz/#wq/#jmsvw/#wf{wnfwb#mbnf>!qlalwp!#`lmnfwklg>!slpw!#b`wjlm>!=\t?b#kqfe>!kwws9,,ttt-`pp!#qfo>!pwzofpkffw!#?,gju=?,gju=?gju#`obppobmdvbdf>!ibubp`qjsw!=bqjb.kjggfm>!wqvf!=.[?qjsw!#wzsf>!wf{w,ibubpo>38~*+*8\t+evm`wjlm+*xab`hdqlvmg.jnbdf9#vqo+,b=?,oj=?oj=?b#kqfe>!k\n\n?oj=?b#kqfe>!kwws9,,bwlq!#bqjb.kjggfm>!wqv=#?b#kqfe>!kwws9,,ttt-obmdvbdf>!ibubp`qjsw!#,lswjlm=\t?lswjlm#ubovf,gju=?,gju=?gju#`obpp>qbwlq!#bqjb.kjggfm>!wqf>+mft#Gbwf*-dfwWjnf+*slqwvdv/Fp#+gl#Aqbpjo*<R=l<_<\\<Q<T<[<\\=j<T<T<^<R<[<P<R<Z<Q<R=m=n=`<R<]=l<\\<[<R<^<\\<Q<T=c=l<Y<_<T=m=n=l<\\=j<T<T<^<R<[<P<R<Z<Q<R=m=n<T<R<]=c<[<\\=n<Y<W=`<Q<\\?"GL@WZSF#kwno#SVAOJ@#!mw.Wzsf!#`lmwfmw>!wf{w,?nfwb#kwws.frvju>!@lmwfqbmpjwjlmbo,,FM!#!kwws9?kwno#{nomp>!kwws9,,ttt.,,T0@,,GWG#[KWNO#2-3#WGWG,{kwno2.wqbmpjwjlmbo,,ttt-t0-lqd,WQ,{kwno2,sf#>#$wf{w,ibubp`qjsw$8?nfwb#mbnf>!gfp`qjswjlmsbqfmwMlgf-jmpfqwAfelqf?jmsvw#wzsf>!kjggfm!#mbip!#wzsf>!wf{w,ibubp`qj+gl`vnfmw*-qfbgz+evm`wjp`qjsw#wzsf>!wf{w,ibubpjnbdf!#`lmwfmw>!kwws9,,VB.@lnsbwjaof!#`lmwfmw>wno8#`kbqpfw>vwe.;!#,=\tojmh#qfo>!pklqw`vw#j`lm?ojmh#qfo>!pwzofpkffw!#?,p`qjsw=\t?p`qjsw#wzsf>>#gl`vnfmw-`qfbwfFofnfm?b#wbqdfw>!\\aobmh!#kqfe>#gl`vnfmw-dfwFofnfmwpAjmsvw#wzsf>!wf{w!#mbnf>b-wzsf#>#$wf{w,ibubp`qjmsvw#wzsf>!kjggfm!#mbnfkwno8#`kbqpfw>vwe.;!#,=gwg!=\t?kwno#{nomp>!kwws.,,T0@,,GWG#KWNO#7-32#WfmwpAzWbdMbnf+$p`qjsw$*jmsvw#wzsf>!kjggfm!#mbn?p`qjsw#wzsf>!wf{w,ibubp!#pwzof>!gjpsobz9mlmf8!=gl`vnfmw-dfwFofnfmwAzJg+>gl`vnfmw-`qfbwfFofnfmw+$#wzsf>$wf{w,ibubp`qjsw$jmsvw#wzsf>!wf{w!#mbnf>!g-dfwFofnfmwpAzWbdMbnf+pmj`bo!#kqfe>!kwws9,,ttt-@,,GWG#KWNO#7-32#Wqbmpjw?pwzof#wzsf>!wf{w,`pp!=\t\t?pwzof#wzsf>!wf{w,`pp!=jlmbo-gwg!=\t?kwno#{nomp>kwws.frvju>!@lmwfmw.Wzsfgjmd>!3!#`foopsb`jmd>!3!kwno8#`kbqpfw>vwe.;!#,=\t#pwzof>!gjpsobz9mlmf8!=??oj=?b#kqfe>!kwws9,,ttt-#wzsf>$wf{w,ibubp`qjsw$=<X<Y=c=n<Y<W=`<Q<R=m=n<T=m<R<R=n<^<Y=n=m=n<^<T<T<S=l<R<T<[<^<R<X=m=n<^<\\<]<Y<[<R<S<\\=m<Q<R=m=n<T\fHF\fIm\fHT\fIa\fHH\fHS\fHy\fHR\fHy\fHR\fHn\fH{\fIa\fH\\\fIk\fHT\fHe\fHD\fIa\fHU\fIg\fHn\fHD\fIk\fHY\fHS\fHK\fHR\fHD\fHT\fHA\fHR\fHG\fHS\fHy\fIa\fHT\fHS\fHn\fH{\fHT\fIm\fH\\\fHy\fIa\fH[\fHS\fHH\fHy\fIe\fHF\fIl\fH\\\fHR\fHk\fHs\fHY\fHS\fHp\fIa\fHr\fHR\fHF\fHD\fHy\fHR\fH\\\fIa\fH\\\fHY\fHR\fHd\fHT\fHy\fIa\fH\\\fHS\fHC\fHH\fHR',"۷%ƌ'T%
'W%×%O%g%¦&Ɠ%ǥ&>&*&'&^&Ÿా&ƭ&ƒ&)&^&%&'&&P&1&±&3&]&m&u&E&t&C&Ï&V&V&/&>&6&ྲྀo&p&@&E&M&P&x&@&F&e&Ì&7&:&(&D&0&C&)&.&F&-&1&(&L&F&1ɞ*Ϫ⇳&፲&K&;&)&E&H&P&0&?&9&V&&-&v&a&,&E&)&?&=&'&'&B&മ&ԃ&̖*&*8&%&%&&&%,)&&>&&7&]&F&2&>&J&6&n&2&%&?&&2&6&J&g&-&0&,&*&J&*&O&)&6&(&<&B&N&.&P&@&2&.&W&M&%Լ(,(<&,&Ϛ&ᣇ&-&,(%&(&%&(Ļ0&X&D&&j&'&J&(&.&B&3&Z&R&h&3&E&E&<Æ-͠ỳ&%8?&@&,&Z&@&0&J&,&^&x&_&6&C&6&Cܬ⨥&f&-&-&-&-&,&J&2&8&z&8&C&Y&8&-&d&ṸÌ-&7&1&F&7&t&W&7&I&.&.&^&=ྜ᧓&8(>&/&/&ݻ')'ၥ')'%@/&0&%оী*&*@&CԽהɴ4ܚӑ6&/Ÿ̃Z&*%ɆϿ&Ĵ&1¨ҴŴ",b,"AAAAKKLLKKKKKJJIHHIHHGGFF");!function setData(e,t){const a=d,n=m;for(let e=0;e<t.length;++e)n[e]=t[e];let s=0;for(let e=0;e<t.length;++e){a[e]=s;const t=n[e];0!==t&&(s+=e<<(31&t))}for(let e=t.length;e<32;++e)a[e]=s;u=e}(g,b);function InputStream(e){this.data=new Int8Array(0);this.offset=0;this.data=e}function readInput(e,t,a,n){if(null===e.input)return-1;const s=e.input,r=Math.min(s.offset+n,s.data.length),i=r-s.offset;t.set(s.data.subarray(s.offset,r),a);s.offset+=i;return i}function toUtf8Runes(e){const t=e.length,a=new Int32Array(t);for(let n=0;n<t;++n)a[n]=e.charCodeAt(n);return a}function makeError(e,t){if(t>=0)return t;e.runningState>=0&&(e.runningState=t);throw new Error("Brotli error code: "+t)}return function decode(e,t){let a=new State;a.input=new InputStream(e);initState(a);!function enableLargeWindow(e){if(1!==e.runningState)return makeError(e,-24);e.isLargeWindow=1;return 0}(a);if(t){let e=t.customDictionary;e&&function attachDictionaryChunk(e,t){if(1!==e.runningState)return makeError(e,-24);if(0===e.cdNumChunks){e.cdChunks=new Array(16);e.cdChunkOffsets=new Int32Array(16);e.cdBlockBits=-1}if(15===e.cdNumChunks)return makeError(e,-27);e.cdChunks[e.cdNumChunks]=t;e.cdNumChunks++;e.cdTotalSize+=t.length;e.cdChunkOffsets[e.cdNumChunks]=e.cdTotalSize;return 0}(a,e)}let n=0,s=[];for(;;){let e=new Int8Array(16384);s.push(e);a.output=e;a.outputOffset=0;a.outputLength=16384;a.outputUsed=0;decompress(a);n+=a.outputUsed;if(a.outputUsed<16384)break}!function close(e){if(0===e.runningState)return makeError(e,-25);e.runningState>0&&(e.runningState=11);return 0}(a);!function closeInput(e){e.input=new InputStream(new Int8Array(0))}(a);let r=new Int8Array(n),i=0;for(let e=0;e<s.length;++e){let t=s[e],a=Math.min(n,i+16384)-i;a<16384?r.set(t.subarray(0,a),i):r.set(t,i);i+=a}return r}};var s=a(4106);function _classPrivateFieldInitSpec(e,t,a){(function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,a)}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var r=new WeakMap;class BrotliStream extends n.DecodeStream{constructor(e,t){super(t);_classPrivateFieldInitSpec(this,r,!0);this.stream=e;this.dict=e.dict}readBlock(){const e=this.stream.getBytes();i._??(i._=makeBrotliDecode());const t=i._.call(BrotliStream,new Int8Array(e.buffer,e.byteOffset,e.length));this.buffer=new Uint8Array(t.buffer,t.byteOffset,t.length);this.bufferLength=this.buffer.length;this.eof=!0}async getImageData(e,t){const a=await this.asyncGetBytes();return a?a.length<=e?a:a.subarray(0,e):this.getBytes(e)}async asyncGetBytes(){const{decompressed:e,compressed:t}=await this.asyncGetBytesFromDecompressionStream("brotli");if(e)return e;!function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}(r,this,!1);this.stream=new s.Stream(t,0,t.length,this.stream.dict);this.reset();return null}get isAsync(){return function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}(r,this)}}var i={_:null}},3343(e,t,a){a.d(t,{calculateMD5:()=>calculateMD5});var n=a(1723);const s={get r(){return(0,n.shadow)(this,"r",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]))},get k(){return(0,n.shadow)(this,"k",new Int32Array([-680876936,-389564586,606105819,-1044525330,-176418897,1200080426,-1473231341,-45705983,1770035416,-1958414417,-42063,-1990404162,1804603682,-40341101,-1502002290,1236535329,-165796510,-1069501632,643717713,-373897302,-701558691,38016083,-660478335,-405537848,568446438,-1019803690,-187363961,1163531501,-1444681467,-51403784,1735328473,-1926607734,-378558,-2022574463,1839030562,-35309556,-1530992060,1272893353,-155497632,-1094730640,681279174,-358537222,-722521979,76029189,-640364487,-421815835,530742520,-995338651,-198630844,1126891415,-1416354905,-57434055,1700485571,-1894986606,-1051523,-2054922799,1873313359,-30611744,-1560198380,1309151649,-145523070,-1120210379,718787259,-343485551]))}};function calculateMD5(e,t,a){let n=1732584193,r=-271733879,i=-1732584194,o=271733878;const l=a+72&-64,c=new Uint8Array(l),f=new DataView(c.buffer);let h,u=0;if(a>0){c.set(e.subarray(t,t+a),u);u+=a}c[u++]=128;const d=l-8;u<d&&(u=d);c[u++]=a<<3;c[u++]=a>>5;c[u++]=a>>13;c[u++]=a>>21;c[u++]=a>>>29;u+=3;const m=new Int32Array(16),{k:g,r:b}=s;for(u=0;u<l;){for(h=0;h<16;++h,u+=4)m[h]=f.getInt32(u,!0);let e,t,a=n,s=r,l=i,c=o;for(h=0;h<64;++h){if(h<16){e=s&l|~s&c;t=h}else if(h<32){e=c&s|~c&l;t=5*h+1&15}else if(h<48){e=s^l^c;t=3*h+5&15}else{e=l^(s|~c);t=7*h&15}const n=c,r=a+e+g[h]+m[t]|0,i=b[h];c=l;l=s;s=s+(r<<i|r>>>32-i)|0;a=n}n=n+a|0;r=r+s|0;i=i+l|0;o=o+c|0}return new Uint8Array([n,n>>8,n>>16,n>>>24,r,r>>8,r>>16,r>>>24,i,i>>8,i>>16,i>>>24,o,o>>8,o>>16,o>>>24])}},6484(e,t,a){a.d(t,{Catalog:()=>Catalog});var n=a(1723),s=a(5399),r=a(5632),i=a(4907),o=a(1740),l=a(1834),c=a(3447),f=a(5719),h=a(3944),u=a(3103);class MetadataParser{constructor(e){e=this._repair(e);const t=new u.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,t){const a=t.replaceAll(/\\([0-3])([0-7])([0-7])/g,(e,t,a,n)=>String.fromCharCode(64*t+8*a+1*n)).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.`)}),n=[">"];for(let e=0,t=a.length;e<t;e+=2){const t=256*a.charCodeAt(e)+a.charCodeAt(e+1);t>=32&&t<127&&60!==t&&62!==t&&38!==t?n.push(String.fromCharCode(t)):n.push("&#x"+(65536+t).toString(16).substring(1)+";")}return n.join("")})}_getSequence(e){const t=e.nodeName;return"rdf:bag"!==t&&"rdf:seq"!==t&&"rdf:alt"!==t?null:e.childNodes.filter(e=>"rdf:li"===e.nodeName)}_parseArray(e){if(!e.hasChildNodes())return;const[t]=e.childNodes,a=this._getSequence(t)||[];this._metadataMap.set(e.nodeName,a.map(e=>e.textContent.trim()))}_parse(e){let t=e.documentElement;if("rdf:rdf"!==t.nodeName){t=t.firstChild;for(;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}}}var d,m=a(5919),g=a(5389),b=a(8802);function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const w=n._isValidExplicitDest.bind(null,e=>e instanceof r.Ref,r.isName);function fetchDest(e){e instanceof r.Dict&&(e=e.get("D"));return w(e)?e:null}function fetchRemoteDest(e){let t=e.get("D");if(t){t instanceof r.Name&&(t=t.name);if("string"==typeof t)return(0,g.stringToPDFString)(t,!0);if(w(t))return JSON.stringify(t)}return null}var j=new WeakMap,y=new WeakMap,v=new WeakMap,k=new WeakMap,q=new WeakMap,S=new WeakSet;class Catalog{constructor(e,t,a={}){!function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}(this,S);_classPrivateFieldInitSpec(this,j,null);_classPrivateFieldInitSpec(this,y,new r.RefMap);_classPrivateFieldInitSpec(this,v,new Map);_classPrivateFieldInitSpec(this,k,new Set);_classPrivateFieldInitSpec(this,q,null);_defineProperty(this,"builtInCMapCache",new Map);_defineProperty(this,"fontCache",new r.RefMap);_defineProperty(this,"globalColorSpaceCache",new i.GlobalColorSpaceCache);_defineProperty(this,"globalImageCache",new i.GlobalImageCache);_defineProperty(this,"nonBlendModesSet",new r.RefSet);_defineProperty(this,"pageDictCache",new r.RefMap);_defineProperty(this,"pageIndexCache",new r.RefMap);_defineProperty(this,"pageKidsCountCache",new r.RefMap);_defineProperty(this,"systemFontCache",new Map);this.pdfManager=e;this.xref=t;_classPrivateFieldSet(q,this,t.getCatalogObj());if(!(_classPrivateFieldGet(q,this)instanceof r.Dict))throw new n.FormatError("Catalog object is not a dictionary.");this.enableOpenActionJavaScript=!!a.enableOpenActionJavaScript;this.enableCatalogAAJavaScript=!!a.enableCatalogAAJavaScript;_assertClassBrand(S,this,_sanitizeOpenAction).call(this);_assertClassBrand(S,this,_sanitizeCatalogAA).call(this);this.toplevelPagesDict}cloneDict(){return _classPrivateFieldGet(q,this).clone()}getAttachmentIdForAnnotation(e,t=!1){let a=_classPrivateFieldGet(y,this).get(e);if(!a){const t=`attachmentRef:${e.toString()}`;a=t;let n=1;for(;_classPrivateFieldGet(v,this).has(a)||this.attachments?.has(a);)a=`${t}-${n++}`;_classPrivateFieldGet(y,this).put(e,a);_classPrivateFieldGet(v,this).set(a,e)}t&&_classPrivateFieldGet(k,this).add(a);return a}get version(){const e=_classPrivateFieldGet(q,this).get("Version");if(e instanceof r.Name){if(s.PDF_VERSION_REGEXP.test(e.name))return(0,n.shadow)(this,"version",e.name);(0,n.warn)(`Invalid PDF catalog version: ${e.name}`)}return(0,n.shadow)(this,"version",null)}get lang(){const e=_classPrivateFieldGet(q,this).get("Lang");return(0,n.shadow)(this,"lang",e&&"string"==typeof e?(0,g.stringToPDFString)(e):null)}get needsRendering(){const e=_classPrivateFieldGet(q,this).get("NeedsRendering");return(0,n.shadow)(this,"needsRendering",!0===e)}get collection(){let e=null;try{const t=_classPrivateFieldGet(q,this).get("Collection");t instanceof r.Dict&&t.size>0&&(e=t)}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.info)("Cannot fetch Collection entry; assuming no collection is present.")}return(0,n.shadow)(this,"collection",e)}get acroForm(){let e=null;try{const t=_classPrivateFieldGet(q,this).get("AcroForm");t instanceof r.Dict&&t.size>0&&(e=t)}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.info)("Cannot fetch AcroForm entry; assuming no forms are present.")}return(0,n.shadow)(this,"acroForm",e)}get acroFormRef(){const e=_classPrivateFieldGet(q,this).getRaw("AcroForm");return(0,n.shadow)(this,"acroFormRef",e instanceof r.Ref?e:null)}get metadata(){const e=_classPrivateFieldGet(q,this).getRaw("Metadata");if(!(e instanceof r.Ref))return(0,n.shadow)(this,"metadata",null);let t=null;try{const a=this.xref.fetch(e,!this.xref.encrypt?.encryptMetadata);if(a instanceof l.BaseStream&&(0,r.isDict)(a.dict,"Metadata")&&(0,r.isName)(a.dict.get("Subtype"),"XML")){const e=(0,n.stringToUTF8String)(a.getString());e&&(t=new MetadataParser(e).serializable)}}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.info)(`Skipping invalid Metadata: "${e}".`)}return(0,n.shadow)(this,"metadata",t)}get markInfo(){let e=null;try{e=_assertClassBrand(S,this,_readMarkInfo).call(this)}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.warn)("Unable to read mark info.")}return(0,n.shadow)(this,"markInfo",e)}get hasStructTree(){return _classPrivateFieldGet(q,this).has("StructTreeRoot")}get structTreeRoot(){let e=null;try{e=_assertClassBrand(S,this,_readStructTreeRoot).call(this)}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.warn)("Unable read to structTreeRoot info.")}return(0,n.shadow)(this,"structTreeRoot",e)}get toplevelPagesDict(){const e=_classPrivateFieldGet(q,this).get("Pages");if(!(e instanceof r.Dict))throw new n.FormatError("Invalid top-level pages dictionary.");return(0,n.shadow)(this,"toplevelPagesDict",e)}get documentOutline(){let e=null;try{e=_assertClassBrand(S,this,_readDocumentOutline).call(this)}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.warn)("Unable to read document outline.")}return(0,n.shadow)(this,"documentOutline",e)}get documentOutlineForEditor(){let e=null;try{e=_assertClassBrand(S,this,_readDocumentOutline).call(this,{keepRawDict:!0})}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.warn)("Unable to read document outline.")}return(0,n.shadow)(this,"documentOutlineForEditor",e)}get permissions(){let e=null;try{e=_assertClassBrand(S,this,_readPermissions).call(this)}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.warn)("Unable to read permissions.")}return(0,n.shadow)(this,"permissions",e)}get optionalContentConfig(){let e=null;try{const t=_classPrivateFieldGet(q,this).get("OCProperties");if(!t)return(0,n.shadow)(this,"optionalContentConfig",null);const a=t.get("D");if(!a)return(0,n.shadow)(this,"optionalContentConfig",null);const s=t.get("OCGs");if(!Array.isArray(s))return(0,n.shadow)(this,"optionalContentConfig",null);const i=new r.RefMap;for(const e of s)e instanceof r.Ref&&!i.has(e)&&i.put(e,_assertClassBrand(S,this,_readOptionalContentGroup).call(this,e));e=_assertClassBrand(S,this,_readOptionalContentConfig).call(this,a,i)}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.warn)(`Unable to read optional content config: ${e}`)}return(0,n.shadow)(this,"optionalContentConfig",e)}setActualNumPages(e=null){_classPrivateFieldSet(j,this,e)}get hasActualNumPages(){return null!==_classPrivateFieldGet(j,this)}get _pagesCount(){const e=this.toplevelPagesDict.get("Count");if(!Number.isInteger(e))throw new n.FormatError("Page count in top-level pages dictionary is not an integer.");return(0,n.shadow)(this,"_pagesCount",e)}get numPages(){return _classPrivateFieldGet(j,this)??this._pagesCount}get destinations(){const e=new Map;for(const t of _assertClassBrand(S,this,_readDests).call(this))if(t instanceof o.NameTree)for(const[a,n]of t.getAll()){const t=fetchDest(n);t&&e.set((0,g.stringToPDFString)(a,!0),t)}else if(t instanceof r.Dict)for(const[a,n]of t){const t=fetchDest(n);t&&e.getOrInsert((0,g.stringToPDFString)(a,!0),t)}return(0,n.shadow)(this,"destinations",e)}getDestination(e){if(Object.hasOwn(this,"destinations"))return this.destinations.get(e)??null;for(const t of _assertClassBrand(S,this,_readDests).call(this))if(t instanceof o.NameTree||t instanceof r.Dict){const a=fetchDest(t.get(e));if(a)return a}return this.destinations.get(e)??null}get rawPageLabels(){const e=_classPrivateFieldGet(q,this).getRaw("PageLabels");if(!e)return null;return new o.NumberTree(e,this.xref).getAll()}get pageLabels(){let e=null;try{e=_assertClassBrand(S,this,_readPageLabels).call(this)}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.warn)("Unable to read page labels.")}return(0,n.shadow)(this,"pageLabels",e)}get pageLayout(){const e=_classPrivateFieldGet(q,this).get("PageLayout");let t="";if(e instanceof r.Name)switch(e.name){case"SinglePage":case"OneColumn":case"TwoColumnLeft":case"TwoColumnRight":case"TwoPageLeft":case"TwoPageRight":t=e.name}return(0,n.shadow)(this,"pageLayout",t)}get pageMode(){const e=_classPrivateFieldGet(q,this).get("PageMode");let t="UseNone";if(e instanceof r.Name)switch(e.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"FullScreen":case"UseOC":case"UseAttachments":t=e.name}return(0,n.shadow)(this,"pageMode",t)}get viewerPreferences(){const e=_classPrivateFieldGet(q,this).get("ViewerPreferences");if(!(e instanceof r.Dict))return(0,n.shadow)(this,"viewerPreferences",null);let t=null;for(const[a,s]of e){let e;switch(a){case"HideToolbar":case"HideMenubar":case"HideWindowUI":case"FitWindow":case"CenterWindow":case"DisplayDocTitle":case"PickTrayByPDFSize":"boolean"==typeof s&&(e=s);break;case"NonFullScreenPageMode":if(s instanceof r.Name)switch(s.name){case"UseNone":case"UseOutlines":case"UseThumbs":case"UseOC":e=s.name;break;default:e="UseNone"}break;case"Direction":if(s instanceof r.Name)switch(s.name){case"L2R":case"R2L":e=s.name;break;default:e="L2R"}break;case"ViewArea":case"ViewClip":case"PrintArea":case"PrintClip":if(s instanceof r.Name)switch(s.name){case"MediaBox":case"CropBox":case"BleedBox":case"TrimBox":case"ArtBox":e=s.name;break;default:e="CropBox"}break;case"PrintScaling":if(s instanceof r.Name)switch(s.name){case"None":case"AppDefault":e=s.name;break;default:e="AppDefault"}break;case"Duplex":if(s instanceof r.Name)switch(s.name){case"Simplex":case"DuplexFlipShortEdge":case"DuplexFlipLongEdge":e=s.name;break;default:e="None"}break;case"PrintPageRange":Array.isArray(s)&&s.length%2==0&&s.every((e,t,a)=>Number.isInteger(e)&&e>0&&(0===t||e>=a[t-1])&&e<=this.numPages)&&(e=s);break;case"NumCopies":Number.isInteger(s)&&s>0&&(e=s);break;default:(0,n.warn)(`Ignoring non-standard key in ViewerPreferences: ${a}.`);continue}void 0!==e?(t??=new Map).set(a,e):(0,n.warn)(`Bad value, for key "${a}", in ViewerPreferences: ${s}.`)}return(0,n.shadow)(this,"viewerPreferences",t)}get openAction(){const e=_classPrivateFieldGet(q,this).get("OpenAction"),t=new Map;if(e instanceof r.Dict){const a=new r.Dict(this.xref);a.set("A",e);const n={url:null,dest:null,action:null};Catalog.parseDestDictionary({destDict:a,resultObj:n});Array.isArray(n.dest)?t.set("dest",n.dest):n.action&&t.set("action",n.action)}else w(e)&&t.set("dest",e);return(0,n.shadow)(this,"openAction",t.size?t:null)}get attachments(){const e=_classPrivateFieldGet(q,this).get("Names");let t=null;if(e instanceof r.Dict&&e.has("EmbeddedFiles")){const a=new o.NameTree(e.getRaw("EmbeddedFiles"),this.xref);for(const[e,n]of a.getAll())(t??=new Map).set((0,g.stringToPDFString)(e,!0),new h.FileSpec(n).serializable)}return(0,n.shadow)(this,"attachments",t)}attachmentContent(e){const t=_assertClassBrand(S,this,_attachmentContentByName).call(this,e);if(void 0!==t)return t;const a=_classPrivateFieldGet(v,this).get(e);if(a){const t=this.xref.fetch(a);if(t instanceof l.BaseStream){const a=h.FileSpec.readStreamContent(t);return _classPrivateFieldGet(k,this).has(e)?(0,m.soundStreamToWav)(t,a)??a:a}return t instanceof r.Dict?h.FileSpec.readContent(t):null}return null}get rawEmbeddedFiles(){const e=_classPrivateFieldGet(q,this).get("Names");if(!(e instanceof r.Dict&&e.has("EmbeddedFiles")))return null;return new o.NameTree(e.getRaw("EmbeddedFiles"),this.xref).getAll(!0)}get xfaImages(){const e=_classPrivateFieldGet(q,this).get("Names");let t=null;if(e instanceof r.Dict&&e.has("XFAImages")){const a=new o.NameTree(e.getRaw("XFAImages"),this.xref);for(const[e,n]of a.getAll())if(n instanceof l.BaseStream){t??=new Map;t.set((0,g.stringToPDFString)(e,!0),n.getBytes())}}return(0,n.shadow)(this,"xfaImages",t)}get jsActions(){const e=_assertClassBrand(S,this,_collectJavaScript).call(this);let t=(0,s.collectActions)(this.xref,_classPrivateFieldGet(q,this),n.DocumentActionEventType);if(e){t??=new Map;for(const[a,s]of e)t.getOrInsertComputed(a,n.makeArr).push(s)}return(0,n.shadow)(this,"jsActions",t)}async cleanup(e=!1){(0,c.clearGlobalCaches)();this.globalColorSpaceCache.clear();this.globalImageCache.clear(e);this.pageKidsCountCache.clear();this.pageIndexCache.clear();this.pageDictCache.clear();this.nonBlendModesSet.clear();for(const{dict:e}of await Promise.all(this.fontCache))delete e.cacheKey;this.fontCache.clear();this.builtInCMapCache.clear();this.systemFontCache.clear()}async getPageDict(e){const t=[this.toplevelPagesDict],a=new r.RefSet,s=_classPrivateFieldGet(q,this).getRaw("Pages");s instanceof r.Ref&&a.put(s);const i=this.xref,o=this.pageKidsCountCache,l=this.pageIndexCache,c=this.pageDictCache;let f=0;for(;t.length;){const s=t.pop();if(s instanceof r.Ref){const h=o.get(s);if(h>=0&&f+h<=e){f+=h;continue}if(a.has(s))throw new n.FormatError("Pages tree contains circular reference.");a.put(s);const u=await(c.get(s)||i.fetchAsync(s));if(u instanceof r.Dict){let t=u.getRaw("Type");t instanceof r.Ref&&(t=await i.fetchAsync(t));if((0,r.isName)(t,"Page")||!u.has("Kids")){o.has(s)||o.put(s,1);l.has(s)||l.put(s,f);if(f===e)return[u,s];f++;continue}}t.push(u);continue}if(!(s instanceof r.Dict))throw new n.FormatError("Page dictionary kid reference points to wrong type of object.");const{objId:h}=s;let u=s.getRaw("Count");u instanceof r.Ref&&(u=await i.fetchAsync(u));if(Number.isInteger(u)&&u>=0){h&&!o.has(h)&&o.put(h,u);if(f+u<=e){f+=u;continue}}let d=s.getRaw("Kids");d instanceof r.Ref&&(d=await i.fetchAsync(d));if(!Array.isArray(d)){let t=s.getRaw("Type");t instanceof r.Ref&&(t=await i.fetchAsync(t));if((0,r.isName)(t,"Page")||!s.has("Kids")){if(f===e)return[s,null];f++;continue}throw new n.FormatError("Page dictionary kids object is not an array.")}for(let e=d.length-1;e>=0;e--){const a=d[e];t.push(a);s===this.toplevelPagesDict&&a instanceof r.Ref&&!c.has(a)&&c.put(a,i.fetchAsync(a))}}throw new Error(`Page index ${e} not found.`)}async getAllPageDicts(e=!1){const{ignoreErrors:t}=this.pdfManager.evaluatorOptions,a=[{currentNode:this.toplevelPagesDict,posInKids:0}],i=new r.RefSet,o=_classPrivateFieldGet(q,this).getRaw("Pages");o instanceof r.Ref&&i.put(o);const l=new Map,c=this.xref,f=this.pageIndexCache;let h=0;function addPageDict(e,t){t&&!f.has(t)&&f.put(t,h);l.set(h++,[e,t])}function addPageError(a){if(a instanceof s.XRefEntryException&&!e)throw a;if(e&&t&&0===h){(0,n.warn)(`getAllPageDicts - Skipping invalid first page: "${a}".`);a=r.Dict.empty}l.set(h++,[a,null])}for(;a.length>0;){const e=a.at(-1),{currentNode:t,posInKids:s}=e;let o=t.getRaw("Kids");if(o instanceof r.Ref)try{o=await c.fetchAsync(o)}catch(e){addPageError(e);break}if(!Array.isArray(o)){let e=t.getRaw("Type");if(e instanceof r.Ref)try{e=await c.fetchAsync(e)}catch(e){addPageError(e);break}if((0,r.isName)(e,"Page")||!t.has("Kids")){addPageDict(t,null);break}addPageError(new n.FormatError("Page dictionary kids object is not an array."));break}if(s>=o.length){a.pop();continue}const l=o[s];let f;if(l instanceof r.Ref){if(i.has(l)){addPageError(new n.FormatError("Pages tree contains circular reference."));break}i.put(l);try{f=await c.fetchAsync(l)}catch(t){addPageError(t);e.posInKids++;continue}}else f=l;if(!(f instanceof r.Dict)){addPageError(new n.FormatError("Page dictionary kid reference points to wrong type of object."));break}let h=f.getRaw("Type");if(h instanceof r.Ref)try{h=await c.fetchAsync(h)}catch(e){addPageError(e);break}(0,r.isName)(h,"Page")||!f.has("Kids")?addPageDict(f,l instanceof r.Ref?l:null):a.push({currentNode:f,posInKids:0});e.posInKids++}return l}async getPageIndex(e){const t=this.pageIndexCache.get(e);if(void 0!==t)return t;const a=this.xref;let s=0,i=e;const o=new r.RefSet;o.put(e);for(;;){const t=await a.fetchAsync(i);if((0,r.isRefsEqual)(i,e)&&!(0,r.isDict)(t,"Page")&&!(t instanceof r.Dict&&!t.has("Type")&&t.has("Contents")))throw new n.FormatError("The reference does not point to a /Page dictionary.");if(!t)break;if(!(t instanceof r.Dict))throw new n.FormatError("Node must be a dictionary.");const l=t.getRaw("Parent");if(l instanceof r.Ref){if(o.has(l))throw new n.FormatError("Pages tree contains circular reference.");o.put(l)}const c=await t.getAsync("Parent");if(!c)break;if(!(c instanceof r.Dict))throw new n.FormatError("Parent must be a dictionary.");const f=await c.getAsync("Kids");if(!f)break;if(!Array.isArray(f))throw new n.FormatError("Kids must be an array.");const h=[];let u=!1;for(const e of f){if(!(e instanceof r.Ref))throw new n.FormatError("Kid must be a reference.");if((0,r.isRefsEqual)(e,i)){u=!0;break}h.push(a.fetchAsync(e).then(e=>{if(!(e instanceof r.Dict))throw new n.FormatError("Kid node must be a dictionary.");if(e.has("Count")){const t=e.get("Count");if(Number.isInteger(t)&&t>=0){s+=t;return}throw new n.FormatError("Count must be a (positive) integer.")}s++}))}if(!u)throw new n.FormatError("Kid reference not found in parent's kids.");await Promise.all(h);i=l}this.pageIndexCache.put(e,s);return s}get baseUrl(){const e=_classPrivateFieldGet(q,this).get("URI");if(e instanceof r.Dict){const t=e.get("Base");if("string"==typeof t){const e=(0,n.createValidAbsoluteUrl)(t,null,{tryConvertEncoding:!0});if(e)return(0,n.shadow)(this,"baseUrl",e.href)}}return(0,n.shadow)(this,"baseUrl",this.pdfManager.docBaseUrl)}static parseDestDictionary({destDict:e,resultObj:t,docBaseUrl:a=null,docAttachments:i=null}){if(!(e instanceof r.Dict)){(0,n.warn)("parseDestDictionary: `destDict` must be a dictionary.");return}let o,c,f=e.get("A");if(!(f instanceof r.Dict))if(e.has("Dest"))f=e.get("Dest");else{f=e.get("AA");f instanceof r.Dict&&(f.has("D")?f=f.get("D"):f.has("U")&&(f=f.get("U")))}if(f instanceof r.Dict){const e=f.get("S");if(!(e instanceof r.Name)){(0,n.warn)("parseDestDictionary: Invalid type in Action dictionary.");return}const a=e.name;switch(a){case"ResetForm":const e=f.get("Flags"),u=!(1&("number"==typeof e?e:0)),d=[],m=[];for(const e of f.get("Fields")||[])e instanceof r.Ref?m.push(e.toString()):"string"==typeof e&&d.push((0,g.stringToPDFString)(e));t.resetForm={fields:d,refs:m,include:u};break;case"URI":o=f.get("URI");o instanceof r.Name&&(o="/"+o.name);break;case"GoTo":c=f.get("D");break;case"Launch":case"GoToR":const b=f.get("F");if(b instanceof r.Dict)o=new h.FileSpec(b).filename;else{if("string"!=typeof b)break;o=b}const w=fetchRemoteDest(f);w&&(o=o.split("#",1)[0]+"#"+w);const j=f.get("NewWindow");"boolean"==typeof j&&(t.newWindow=j);break;case"GoToE":const y=f.get("T");let v=null;if(y instanceof r.Dict){const e=y.get("R"),t=y.get("N");(0,r.isName)(e,"C")&&"string"==typeof t&&(v=(0,g.stringToPDFString)(t,!0))}if(i&&v){t.attachmentId=v;t.attachment=i.get(v);const e=fetchRemoteDest(f);e&&(t.attachmentDest=e)}else(0,n.warn)('parseDestDictionary - unimplemented "GoToE" action.');break;case"Named":const k=f.get("N");k instanceof r.Name&&(t.action=k.name);break;case"SetOCGState":const q=f.get("State"),S=f.get("PreserveRB");if(!Array.isArray(q)||0===q.length)break;const _=[];for(const e of q)if(e instanceof r.Name)switch(e.name){case"ON":case"OFF":case"Toggle":_.push(e.name)}else e instanceof r.Ref&&_.push(e.toString());if(_.length!==q.length)break;t.setOCGState={state:_,preserveRB:!1!==S};break;case"JavaScript":const C=f.get("JS");let F;C instanceof l.BaseStream?F=C.getString():"string"==typeof C&&(F=C);const x=F&&(0,s.recoverJsURL)((0,g.stringToPDFString)(F,!0));if(x){o=x.url;t.newWindow=x.newWindow;break}default:if("JavaScript"===a||"SubmitForm"===a)break;(0,n.warn)(`parseDestDictionary - unsupported action: "${a}".`)}}else e.has("Dest")&&(c=e.get("Dest"));if("string"==typeof o){const e=(0,n.createValidAbsoluteUrl)(o,a,{addDefaultProtocol:!0,tryConvertEncoding:!0});e&&(t.url=e.href);t.unsafeUrl=o}if(c){c instanceof r.Name&&(c=c.name);"string"==typeof c?t.dest=(0,g.stringToPDFString)(c,!0):w(c)&&(t.dest=c)}if(!(t.dest||t.url||t.action||t.attachment||t.setOCGState||t.resetForm)){const a=e.getRaw("SE");if(a instanceof r.Ref)try{const n=_getDestFromStructElement.call(Catalog,e.xref,a);n&&(t.dest=n)}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.info)("SE parsing failed.")}}}}d=Catalog;function _readMarkInfo(){const e=_classPrivateFieldGet(q,this).get("MarkInfo");if(!(e instanceof r.Dict))return null;const t=new Map;for(const a of["Marked","UserProperties","Suspects"]){const n=e.get(a);t.set(a,!0===n)}return t}function _readStructTreeRoot(){const e=_classPrivateFieldGet(q,this).getRaw("StructTreeRoot"),t=this.xref.fetchIfRef(e);return t instanceof r.Dict?new b.StructTreeRoot(this.xref,t,e):null}function _readDocumentOutline(e={}){let t=_classPrivateFieldGet(q,this).get("Outlines");if(!(t instanceof r.Dict))return null;t=t.getRaw("First");if(!(t instanceof r.Ref))return null;const a={items:[]},i=[{obj:t,parent:a}],o=new r.RefSet;o.put(t);const l=this.xref,c=new Uint8ClampedArray(3);for(;i.length>0;){const a=i.shift(),h=l.fetchIfRef(a.obj);if(null===h)continue;h.has("Title")||(0,n.warn)("Invalid outline item encountered.");const u={url:null,dest:null,action:null};d.parseDestDictionary({destDict:h,resultObj:u,docBaseUrl:this.baseUrl,docAttachments:this.attachments});const m=h.get("Title"),b=h.get("F")||0,w=h.getArray("C"),j=h.get("Count");let y=c;!(0,s.isNumberArray)(w,3)||0===w[0]&&0===w[1]&&0===w[2]||(y=f.ColorSpaceUtils.rgb.getRgb(w,0));const v={action:u.action,attachmentId:u.attachmentId,attachment:u.attachment,dest:u.dest,url:u.url,unsafeUrl:u.unsafeUrl,newWindow:u.newWindow,setOCGState:u.setOCGState,title:"string"==typeof m?(0,g.stringToPDFString)(m):"",color:y,count:Number.isInteger(j)?j:void 0,bold:!!(2&b),italic:!!(1&b),items:[]};e.keepRawDict&&(v.rawDict=h);a.parent.items.push(v);t=h.getRaw("First");if(t instanceof r.Ref&&!o.has(t)){i.push({obj:t,parent:v});o.put(t)}t=h.getRaw("Next");if(t instanceof r.Ref&&!o.has(t)){i.push({obj:t,parent:a.parent});o.put(t)}}return a.items.length>0?a.items:null}function _readPermissions(){const e=this.xref.trailer.get("Encrypt");if(!(e instanceof r.Dict))return null;let t=e.get("P");if("number"!=typeof t)return null;t+=2**32;const a=new Set;for(const e of Object.values(n.PermissionFlag))t&e&&a.add(e);return a}function _readOptionalContentGroup(e){const t=this.xref.fetch(e),a={id:e.toString(),name:null,intent:null,usage:{print:null,view:null},rbGroups:[]},n=t.get("Name");"string"==typeof n&&(a.name=(0,g.stringToPDFString)(n));let s=t.getArray("Intent");Array.isArray(s)||(s=[s]);s.every(e=>e instanceof r.Name)&&(a.intent=s.map(e=>e.name));const i=t.get("Usage");if(!(i instanceof r.Dict))return a;const o=a.usage,l=i.get("Print");if(l instanceof r.Dict){const e=l.get("PrintState");if(e instanceof r.Name)switch(e.name){case"ON":case"OFF":o.print={printState:e.name}}}const c=i.get("View");if(c instanceof r.Dict){const e=c.get("ViewState");if(e instanceof r.Name)switch(e.name){case"ON":case"OFF":o.view={viewState:e.name}}}return a}function _readOptionalContentConfig(e,t){function parseOnOff(e){const a=[];if(Array.isArray(e))for(const n of e)n instanceof r.Ref&&t.has(n)&&a.push(n.toString());return a}function parseOrder(e,a=0){if(!Array.isArray(e))return null;const n=[];for(const i of e){if(i instanceof r.Ref&&t.has(i)){s.put(i);n.push(i.toString());continue}const e=parseNestedOrder(i,a);e&&n.push(e)}if(a>0)return n;const i=[];for(const[e]of t.items())s.has(e)||i.push(e.toString());i.length&&n.push({name:null,order:i});return n}function parseNestedOrder(e,t){if(++t>i){(0,n.warn)("parseNestedOrder - reached MAX_NESTED_LEVELS.");return null}const s=a.fetchIfRef(e);if(!Array.isArray(s))return null;const r=a.fetchIfRef(s[0]);if("string"!=typeof r)return null;const o=parseOrder(s.slice(1),t);return o?.length?{name:(0,g.stringToPDFString)(r),order:o}:null}const a=this.xref,s=new r.RefSet,i=10;!function parseRBGroups(e){if(Array.isArray(e))for(const n of e){const e=a.fetchIfRef(n);if(!Array.isArray(e)||!e.length)continue;const s=new Set;for(const a of e)if(a instanceof r.Ref&&t.has(a)&&!s.has(a.toString())){s.add(a.toString());t.get(a).rbGroups.push(s)}}}(e.get("RBGroups"));return{name:"string"==typeof e.get("Name")?(0,g.stringToPDFString)(e.get("Name")):null,creator:"string"==typeof e.get("Creator")?(0,g.stringToPDFString)(e.get("Creator")):null,baseState:e.get("BaseState")instanceof r.Name?e.get("BaseState").name:null,on:parseOnOff(e.get("ON")),off:parseOnOff(e.get("OFF")),order:parseOrder(e.get("Order")),groups:[...t]}}function _readDests(){const e=_classPrivateFieldGet(q,this).get("Names"),t=[];e?.has("Dests")&&t.push(new o.NameTree(e.getRaw("Dests"),this.xref));_classPrivateFieldGet(q,this).has("Dests")&&t.push(_classPrivateFieldGet(q,this).get("Dests"));return t}function _readPageLabels(){const e=this.rawPageLabels;if(!e)return null;const t=new Array(this.numPages);let a=null,i="",o="",l=1;for(let c=0,f=this.numPages;c<f;c++){const f=e.get(c);if(void 0!==f){if(!(f instanceof r.Dict))throw new n.FormatError("PageLabel is not a dictionary.");if(f.has("Type")&&!(0,r.isName)(f.get("Type"),"PageLabel"))throw new n.FormatError("Invalid type in PageLabel dictionary.");if(f.has("S")){const e=f.get("S");if(!(e instanceof r.Name))throw new n.FormatError("Invalid style in PageLabel dictionary.");a=e.name}else a=null;if(f.has("P")){const e=f.get("P");if("string"!=typeof e)throw new n.FormatError("Invalid prefix in PageLabel dictionary.");i=(0,g.stringToPDFString)(e)}else i="";if(f.has("St")){const e=f.get("St");if(!(Number.isInteger(e)&&e>=1))throw new n.FormatError("Invalid start in PageLabel dictionary.");l=e}else l=1}switch(a){case"D":o=l;break;case"R":case"r":o=(0,s.toRomanNumerals)(l,"r"===a);break;case"A":case"a":const e=26,t=l-1;o=String.fromCharCode(a.charCodeAt(0)+t%e).repeat(Math.floor(t/e)+1);break;default:if(a)throw new n.FormatError(`Invalid style "${a}" in PageLabel dictionary.`);o=""}t[c]=i+o;l++}return t}function _attachmentContentByName(e){const t=_classPrivateFieldGet(q,this).get("Names");if(t instanceof r.Dict&&t.has("EmbeddedFiles")){const a=new o.NameTree(t.getRaw("EmbeddedFiles"),this.xref);for(const[t,n]of a.getAll())if((0,g.stringToPDFString)(t,!0)===e)return h.FileSpec.readContent(n)}}function _collectJavaScript(){const e=_classPrivateFieldGet(q,this).get("Names");let t=null;function appendIfJavaScriptDict(e,a){if(!(a instanceof r.Dict&&(0,r.isName)(a.get("S"),"JavaScript")))return;let n=a.get("JS");if(n instanceof l.BaseStream)n=n.getString();else if("string"!=typeof n)return;n=(0,g.stringToPDFString)(n,!0).replaceAll("\0","");n&&(t??=new Map).set(e,n)}if(e instanceof r.Dict&&e.has("JavaScript")){const t=new o.NameTree(e.getRaw("JavaScript"),this.xref);for(const[e,a]of t.getAll())appendIfJavaScriptDict((0,g.stringToPDFString)(e,!0),a)}const a=_classPrivateFieldGet(q,this).get("OpenAction");a&&appendIfJavaScriptDict("OpenAction",a);return t}function _getDestFromStructElement(e,t){const a=e.fetchIfRef(t);if(!(a instanceof r.Dict))return null;let n=null;const i=a.getRaw("Pg");i instanceof r.Ref&&(n=i);if(!n){const s=[a],i=new r.RefSet;i.put(t);for(;s.length>0&&!n;){let t,a=s.shift().getRaw("K");if(a instanceof r.Ref){if(i.has(a))continue;i.put(a);a=e.fetch(a)}if(Array.isArray(a))t=a;else{if(!a)continue;t=[a]}for(const a of t){if(a instanceof r.Ref){if(i.has(a))continue;i.put(a)}const t=e.fetchIfRef(a);if(!(t instanceof r.Dict))continue;const o=t.getRaw("Pg");if(o instanceof r.Ref){n=o;break}s.push(t)}}}if(!n){const t=40;let s=a;for(let a=0;a<t;a++){const t=s.getRaw("P");if(!(t instanceof r.Ref))break;const a=e.fetch(t);if(!(a instanceof r.Dict)||(0,r.isName)(a.get("Type"),"StructTreeRoot"))break;const i=a.getRaw("Pg");if(i instanceof r.Ref){n=i;break}s=a}}if(!n)return null;let o=null,l=null;const c=a.get("A");if(c instanceof r.Dict){const e=(0,s.lookupRect)(c.getArray("BBox"),null);if(e){o=e[0];l=e[3]}}return[n,{name:"XYZ"},o,l,null]}function _fetchIfRef(e){try{return e instanceof r.Ref?this.xref.fetch(e):e}catch{return e}}function _chainContainsJavaScriptAction(e){const t=[e];for(;t.length;){let e=t.pop();e=_assertClassBrand(S,this,_fetchIfRef).call(this,e);if(!(e instanceof r.Dict))continue;const a=_assertClassBrand(S,this,_fetchIfRef).call(this,e.get("S"));if(a instanceof r.Name&&"JavaScript"===a.name)return!0;const n=_assertClassBrand(S,this,_fetchIfRef).call(this,e.get("Next"));if(n instanceof r.Dict)t.push(n);else if(Array.isArray(n))for(const e of n)t.push(_assertClassBrand(S,this,_fetchIfRef).call(this,e))}return!1}function _stripJavaScriptActionsInAADict(e){const t=e.getKeys?e.getKeys():[];for(const a of t){const t=e.get(a),n=_assertClassBrand(S,this,_fetchIfRef).call(this,t);if(n instanceof r.Dict)_assertClassBrand(S,this,_chainContainsJavaScriptAction).call(this,n)&&("function"==typeof e.delete?e.delete(a):e.set(a,null));else if(Array.isArray(n)){const t=[];for(let e of n){e=_assertClassBrand(S,this,_fetchIfRef).call(this,e);e instanceof r.Dict&&!_assertClassBrand(S,this,_chainContainsJavaScriptAction).call(this,e)&&t.push(e)}t.length?e.set(a,t):"function"==typeof e.delete?e.delete(a):e.set(a,null)}}}function _sanitizeOpenAction(){if(this.enableOpenActionJavaScript)return;const e=_classPrivateFieldGet(q,this).get("OpenAction");e instanceof r.Dict&&_assertClassBrand(S,this,_chainContainsJavaScriptAction).call(this,e)&&_classPrivateFieldGet(q,this).delete("OpenAction")}function _sanitizeCatalogAA(){if(this.enableCatalogAAJavaScript)return;const e=_classPrivateFieldGet(q,this).get("AA");if(e instanceof r.Dict){_assertClassBrand(S,this,_stripJavaScriptActionsInAADict).call(this,e);try{!!e.getKeys&&0===e.getKeys().length&&_classPrivateFieldGet(q,this).delete("AA")}catch{}}}},6457(e,t,a){a.d(t,{CharCodeMap:()=>CharCodeMap});function _classPrivateFieldInitSpec(e,t,a){(function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,a)}function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var n=new WeakMap,s=new WeakMap,r=new WeakMap,i=new WeakMap,o=new WeakMap;class CharCodeMap{constructor(){_classPrivateFieldInitSpec(this,n,[]);_classPrivateFieldInitSpec(this,s,[]);_classPrivateFieldInitSpec(this,r,null);_classPrivateFieldInitSpec(this,i,null);_classPrivateFieldInitSpec(this,o,0)}get size(){return _classPrivateFieldGet(n,this).length}get(e){return(65535&e)===e?_classPrivateFieldGet(s,this)[e]:_classPrivateFieldGet(i,this)?.get(e)}has(e){return void 0!==this.get(e)}set(e,t){_classPrivateFieldSet(r,this,null);if((65535&e)!==e){_classPrivateFieldGet(i,this)??_classPrivateFieldSet(i,this,new Map);_classPrivateFieldGet(i,this).has(e)||_classPrivateFieldGet(n,this).push(e);_classPrivateFieldGet(i,this).set(e,t)}else{void 0===_classPrivateFieldGet(s,this)[e]&&_classPrivateFieldGet(n,this).push(e);_classPrivateFieldGet(s,this)[e]=t}}forEach(e){const t=_classPrivateFieldGet(n,this),a=_classPrivateFieldGet(s,this),r=_classPrivateFieldGet(i,this);for(let n=0,s=t.length;n<s;n++){const s=t[n];e(s,(65535&s)===s?a[s]:r.get(s))}}charCodeOf(e){if(!_classPrivateFieldGet(r,this)&&_classPrivateFieldGet(o,this)>32*this.size){const e=_classPrivateFieldSet(r,this,new Map);this.forEach((t,a)=>{e.has(a)||e.set(a,t)})}if(_classPrivateFieldGet(r,this))return _classPrivateFieldGet(r,this).get(e)??-1;const t=_classPrivateFieldGet(n,this);for(let a=0,n=t.length;a<n;a++)if(this.get(t[a])===e){_classPrivateFieldSet(o,this,_classPrivateFieldGet(o,this)+(a+1));return t[a]}_classPrivateFieldSet(o,this,_classPrivateFieldGet(o,this)+t.length);return-1}clone(){const e=new CharCodeMap;_classPrivateFieldSet(n,e,_classPrivateFieldGet(n,this).slice());_classPrivateFieldSet(s,e,_classPrivateFieldGet(s,this).slice());_classPrivateFieldSet(i,e,_classPrivateFieldGet(i,this)&&new Map(_classPrivateFieldGet(i,this)));return e}}},3447(e,t,a){a.d(t,{clearGlobalCaches:()=>clearGlobalCaches});var n=a(918),s=a(5632),r=a(115),i=a(5412);function clearGlobalCaches(){(0,n.clearPatternCaches)();(0,s.clearPrimitiveCaches)();(0,r.clearUnicodeCaches)();i.WasmImage.cleanup()}},3069(e,t,a){a.d(t,{AlternateCS:()=>AlternateCS,CalGrayCS:()=>CalGrayCS,CalRGBCS:()=>CalRGBCS,ColorSpace:()=>ColorSpace,DeviceCmykCS:()=>DeviceCmykCS,DeviceGrayCS:()=>DeviceGrayCS,DeviceRgbCS:()=>DeviceRgbCS,DeviceRgbaCS:()=>DeviceRgbaCS,IndexedCS:()=>IndexedCS,LabCS:()=>LabCS,PatternCS:()=>PatternCS});var n=a(1723),s=a(1834),r=a(4566);function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}function isDefaultDecodeHelper(e,t){if(!Array.isArray(e))return!0;const a=e.length;if(a<t){(0,n.warn)("Decode map length is too short.");return!0}if(a>t){(0,n.info)("Truncating too long decode map.");e.length=t}return!1}class ColorSpace{constructor(e,t){this.name=e;this.numComps=t}getRgb(e,t,a=new Uint8ClampedArray(3)){this.getRgbItem(e,t,a,0);return a}getRgbHex(e,t){const a=this.getRgb(e,t,i._);return n.Util.makeHexColor(a[0],a[1],a[2])}getRgbItem(e,t,a,s){(0,n.unreachable)("Should not call ColorSpace.getRgbItem")}getRgbBuffer(e,t,a,s,r,i,o){(0,n.unreachable)("Should not call ColorSpace.getRgbBuffer")}getRgbItems(e,t,a,n,s){const{numComps:r}=this;for(let i=0,o=0;i<t;i++,o+=r){this.getRgbItem(e,o,a,n);n+=3+s}}isPassthrough(e){return!1}getColorMap(e){const t=1<<e,a=e<=8?new Uint8Array(t):new Uint16Array(t);for(let e=0;e<t;e++)a[e]=e;const n=new Uint8ClampedArray(3*t);this.getRgbBuffer(a,0,t,n,0,e,0);return n}isDefaultDecode(e,t){return ColorSpace.isDefaultDecode(e,this.numComps)}fillRgb(e,t,a,n,s,r,i,o,l){const c=t*a;let f=null;const h=1<<i,u=a!==s||t!==n;if(this.isPassthrough(i))f=o;else if(1===this.numComps&&c>h&&"DeviceGray"!==this.name&&"DeviceRGB"!==this.name){const t=this.getColorMap(i);if(u){f=new Uint8Array(3*c);let e=0;for(let a=0;a<c;++a){const n=3*o[a];f[e++]=t[n];f[e++]=t[n+1];f[e++]=t[n+2]}}else{let a=0;for(let n=0;n<c;++n){const s=3*o[n];e[a++]=t[s];e[a++]=t[s+1];e[a++]=t[s+2];a+=l}}}else if(u){f=new Uint8ClampedArray(3*c);this.getRgbBuffer(o,0,c,f,0,i,0)}else this.getRgbBuffer(o,0,n*r,e,0,i,l);if(f)if(u)!function resizeRgbImage(e,t,a,n,s,r,i){i=1!==i?0:i;const o=a/s,l=n/r;let c,f=0;const h=new Uint32Array(s),u=3*a;for(let e=0;e<s;e++)h[e]=3*Math.floor(e*o);for(let a=0;a<r;a++){const n=Math.floor(a*l)*u;for(let a=0;a<s;a++){c=n+h[a];t[f++]=e[c++];t[f++]=e[c++];t[f++]=e[c++];f+=i}}}(f,e,t,a,n,s,l);else{let t=0,a=0;for(let s=0,i=n*r;s<i;s++){e[t++]=f[a++];e[t++]=f[a++];e[t++]=f[a++];t+=l}}}get usesZeroToOneRange(){return(0,n.shadow)(this,"usesZeroToOneRange",!0)}static isDefaultDecode(e,t){if(isDefaultDecodeHelper(e,2*t))return!0;for(let t=0,a=e.length;t<a;t+=2)if(0!==e[t]||1!==e[t+1])return!1;return!0}}var i={_:new Uint8ClampedArray(3)};class AlternateCS extends ColorSpace{constructor(e,t,a){super("Alternate",e);this.base=t;this.tintFn=a;this.tmpBuf=new Float32Array(t.numComps)}getRgbItem(e,t,a,n){const s=this.tmpBuf;this.tintFn(e,t,s,0);this.base.getRgbItem(s,0,a,n)}getRgbItems(e,t,a,n,s){const{base:r,numComps:i,tintFn:o}=this,l=r.numComps,c=new Float32Array(t*l);for(let a=0,n=0,s=0;a<t;a++){o(e,n,c,s);n+=i;s+=l}r.getRgbItems(c,t,a,n,s)}getRgbBuffer(e,t,a,n,s,r,i){const o=this.tintFn,l=this.base,c=1/((1<<r)-1),f=l.numComps,h=l.usesZeroToOneRange,u=(l.isPassthrough(8)||!h)&&0===i;let d=u?s:0;const m=u?n:new Uint8ClampedArray(f*a),g=this.numComps,b=new Float32Array(g),w=new Float32Array(f);let j,y;for(j=0;j<a;j++){for(y=0;y<g;y++)b[y]=e[t++]*c;o(b,0,w,0);if(h)for(y=0;y<f;y++)m[d++]=255*w[y];else{l.getRgbItem(w,0,m,d);d+=f}}u||l.getRgbBuffer(m,0,a,n,s,8,i)}}class PatternCS extends ColorSpace{constructor(e){super("Pattern",null);this.base=e}isDefaultDecode(e,t){(0,n.unreachable)("Should not call PatternCS.isDefaultDecode")}}var o=new WeakMap;class IndexedCS extends ColorSpace{constructor(e,t,a){super("Indexed",1);!function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a)}(this,o,void 0);this.highVal=t;const r=t+1,i=e.numComps*r,l=new Uint8Array(i);if(a instanceof s.BaseStream)l.set(a.getBytes(i));else{if("string"!=typeof a)throw new n.FormatError(`IndexedCS - unrecognized lookup table: ${a}`);for(let e=0;e<i;++e)l[e]=a.charCodeAt(e)}!function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}(o,this,new Uint8ClampedArray(3*r));e.getRgbBuffer(l,0,r,_classPrivateFieldGet(o,this),0,8,0)}getRgbItem(e,t,a,n){const s=_classPrivateFieldGet(o,this),i=3*(0,r.MathClamp)(Math.round(e[t]),0,this.highVal);a[n]=s[i];a[n+1]=s[i+1];a[n+2]=s[i+2]}getRgbBuffer(e,t,a,n,s,i,l){const{highVal:c}=this,f=_classPrivateFieldGet(o,this);for(let i=0;i<a;++i){const a=3*(0,r.MathClamp)(Math.round(e[t++]),0,c);n[s++]=f[a];n[s++]=f[a+1];n[s++]=f[a+2];s+=l}}isDefaultDecode(e,t){if(isDefaultDecodeHelper(e,2))return!0;if(!Number.isInteger(t)||t<1){(0,n.warn)("Bits per component is not correct");return!0}return 0===e[0]&&e[1]===(1<<t)-1}}class DeviceGrayCS extends ColorSpace{constructor(){super("DeviceGray",1)}getRgbItem(e,t,a,n){const s=255*e[t];a[n]=a[n+1]=a[n+2]=s}getRgbBuffer(e,t,a,n,s,r,i){const o=255/((1<<r)-1);let l=t,c=s;for(let t=0;t<a;++t){const t=o*e[l++];n[c++]=t;n[c++]=t;n[c++]=t;c+=i}}}class DeviceRgbCS extends ColorSpace{constructor(){super("DeviceRGB",3)}getRgbItem(e,t,a,n){a[n]=255*e[t];a[n+1]=255*e[t+1];a[n+2]=255*e[t+2]}getRgbBuffer(e,t,a,n,s,r,i){if(8===r&&0===i){n.set(e.subarray(t,t+3*a),s);return}const o=255/((1<<r)-1);let l=t,c=s;for(let t=0;t<a;++t){n[c++]=o*e[l++];n[c++]=o*e[l++];n[c++]=o*e[l++];c+=i}}isPassthrough(e){return 8===e}}class DeviceRgbaCS extends ColorSpace{constructor(){super("DeviceRGBA",4)}isPassthrough(e){return 8===e}fillRgb(e,t,a,s,r,i,o,l,c){a!==r||t!==s?function resizeRgbaImage(e,t,a,s,r,i,o){const l=a/r,c=s/i;let f=0;const h=new Uint32Array(r);if(1===o){for(let e=0;e<r;e++)h[e]=Math.floor(e*l);const s=new Uint32Array(e.buffer),o=new Uint32Array(t.buffer),u=n.FeatureTest.isLittleEndian?16777215:4294967040;for(let e=0;e<i;e++){const t=s.subarray(Math.floor(e*c)*a);for(let e=0;e<r;e++)o[f++]|=t[h[e]]&u}}else{const n=4,s=a*n;for(let e=0;e<r;e++)h[e]=Math.floor(e*l)*n;for(let a=0;a<i;a++){const n=e.subarray(Math.floor(a*c)*s);for(let e=0;e<r;e++){const a=h[e];t[f++]=n[a];t[f++]=n[a+1];t[f++]=n[a+2]}}}}(l,e,t,a,s,r,c):function copyRgbaImage(e,t,a){if(1===a){const a=new Uint32Array(e.buffer),s=new Uint32Array(t.buffer),r=n.FeatureTest.isLittleEndian?16777215:4294967040;for(let e=0,t=a.length;e<t;e++)s[e]|=a[e]&r}else{let a=0;for(let n=0,s=e.length;n<s;n+=4){t[a++]=e[n];t[a++]=e[n+1];t[a++]=e[n+2]}}}(l,e,c)}}var l=new WeakSet;class DeviceCmykCS extends ColorSpace{constructor(){super("DeviceCMYK",4);_classPrivateMethodInitSpec(this,l)}getRgbItem(e,t,a,n){_assertClassBrand(l,this,_toRgb).call(this,e,t,1,a,n)}getRgbBuffer(e,t,a,n,s,r,i){const o=1/((1<<r)-1);for(let r=0;r<a;r++){_assertClassBrand(l,this,_toRgb).call(this,e,t,o,n,s);t+=4;s+=3+i}}}function _toRgb(e,t,a,n,s){const r=e[t]*a,i=e[t+1]*a,o=e[t+2]*a,l=e[t+3]*a;n[s]=255+r*(-4.387332384609988*r+54.48615194189176*i+18.82290502165302*o+212.25662451639585*l-285.2331026137004)+i*(1.7149763477362134*i-5.6096736904047315*o+-17.873870861415444*l-5.497006427196366)+o*(-2.5217340131683033*o-21.248923337353073*l+17.5119270841813)+l*(-21.86122147463605*l-189.48180835922747);n[s+1]=255+r*(8.841041422036149*r+60.118027045597366*i+6.871425592049007*o+31.159100130055922*l-79.2970844816548)+i*(-15.310361306967817*i+17.575251261109482*o+131.35250912493976*l-190.9453302588951)+o*(4.444339102852739*o+9.8632861493405*l-24.86741582555878)+l*(-20.737325471181034*l-187.80453709719578);n[s+2]=255+r*(.8842522430003296*r+8.078677503112928*i+30.89978309703729*o-.23883238689178934*l-14.183576799673286)+i*(10.49593273432072*i+63.02378494754052*o+50.606957656360734*l-112.23884253719248)+o*(.03296041114873217*o+115.60384449646641*l-193.58209356861505)+l*(-22.33816807309886*l-180.12613974708367)}var c=new WeakSet;class CalGrayCS extends ColorSpace{constructor(e,t,a){super("CalGray",1);_classPrivateMethodInitSpec(this,c);if(!e)throw new n.FormatError("WhitePoint missing - required for color space CalGray");[this.XW,this.YW,this.ZW]=e;[this.XB,this.YB,this.ZB]=t||[0,0,0];this.G=a||1;if(this.XW<0||this.ZW<0||1!==this.YW)throw new n.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);if(this.XB<0||this.YB<0||this.ZB<0){(0,n.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,n.warn)(`${this.name}, BlackPoint: XB: ${this.XB}, YB: ${this.YB}, ZB: ${this.ZB}, only default values are supported.`);if(this.G<1){(0,n.info)(`Invalid Gamma: ${this.G} for ${this.name}, falling back to default.`);this.G=1}}getRgbItem(e,t,a,n){_assertClassBrand(c,this,_toRgb2).call(this,e,t,a,n,1)}getRgbBuffer(e,t,a,n,s,r,i){const o=1/((1<<r)-1);for(let r=0;r<a;++r){_assertClassBrand(c,this,_toRgb2).call(this,e,t,n,s,o);t+=1;s+=3+i}}}function _toRgb2(e,t,a,n,s){const r=(e[t]*s)**this.G,i=this.YW*r,o=Math.max(295.8*i**.3333333333333333-40.8,0);a[n]=o;a[n+1]=o;a[n+2]=o}var f=new WeakSet;class CalRGBCS extends ColorSpace{constructor(e,t,a,s){super("CalRGB",3);_classPrivateMethodInitSpec(this,f);if(!e)throw new n.FormatError("WhitePoint missing - required for color space CalRGB");const[r,i,o]=this.whitePoint=e,[l,c,h]=this.blackPoint=t||new Float32Array(3);[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]=s||new Float32Array([1,0,0,0,1,0,0,0,1]);if(r<0||o<0||1!==i)throw new n.FormatError(`Invalid WhitePoint components for ${this.name}, no fallback available`);if(l<0||c<0||h<0){(0,n.info)(`Invalid BlackPoint for ${this.name} [${l}, ${c}, ${h}], falling back to default.`);this.blackPoint=new Float32Array(3)}if(this.GR<0||this.GG<0||this.GB<0){(0,n.info)(`Invalid Gamma [${this.GR}, ${this.GG}, ${this.GB}] for ${this.name}, falling back to default.`);this.GR=this.GG=this.GB=1}}getRgbItem(e,t,a,n){_assertClassBrand(f,this,_toRgb3).call(this,e,t,a,n,1)}getRgbBuffer(e,t,a,n,s,r,i){const o=1/((1<<r)-1);for(let r=0;r<a;++r){_assertClassBrand(f,this,_toRgb3).call(this,e,t,n,s,o);t+=3;s+=3+i}}}function _matrixProduct(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]}function _toFlat(e,t,a){a[0]=1*t[0]/e[0];a[1]=1*t[1]/e[1];a[2]=1*t[2]/e[2]}function _toD(e,t,a){a[0]=.95047*t[0]/e[0];a[1]=1*t[1]/e[1];a[2]=1.08883*t[2]/e[2]}function _sRGBTransferFunction(e){return e<=.0031308?(0,r.MathClamp)(12.92*e,0,1):e>=.99554525?1:(0,r.MathClamp)(1.055*e**(1/2.4)-.055,0,1)}function _decodeL(e){return e<0?-_assertClassBrand(f,this,_decodeL).call(this,-e):e>8?((e+16)/116)**3:e*j._}function _compensateBlackPoint(e,t,a){if(0===e[0]&&0===e[1]&&0===e[2]){a[0]=t[0];a[1]=t[1];a[2]=t[2];return}const n=_assertClassBrand(f,this,_decodeL).call(this,0),s=(1-n)/(1-_assertClassBrand(f,this,_decodeL).call(this,e[0])),r=1-s,i=(1-n)/(1-_assertClassBrand(f,this,_decodeL).call(this,e[1])),o=1-i,l=(1-n)/(1-_assertClassBrand(f,this,_decodeL).call(this,e[2])),c=1-l;a[0]=t[0]*s+r;a[1]=t[1]*i+o;a[2]=t[2]*l+c}function _normalizeWhitePointToFlat(e,t,a){if(1===e[0]&&1===e[2]){a[0]=t[0];a[1]=t[1];a[2]=t[2];return}const n=a;_assertClassBrand(f,this,_matrixProduct).call(this,h._,t,n);const s=g._;_assertClassBrand(f,this,_toFlat).call(this,e,n,s);_assertClassBrand(f,this,_matrixProduct).call(this,u._,s,a)}function _normalizeWhitePointToD(e,t,a){const n=a;_assertClassBrand(f,this,_matrixProduct).call(this,h._,t,n);const s=g._;_assertClassBrand(f,this,_toD).call(this,e,n,s);_assertClassBrand(f,this,_matrixProduct).call(this,u._,s,a)}function _toRgb3(e,t,a,n,s){const i=(0,r.MathClamp)(e[t]*s,0,1),o=(0,r.MathClamp)(e[t+1]*s,0,1),l=(0,r.MathClamp)(e[t+2]*s,0,1),c=1===i?1:i**this.GR,h=1===o?1:o**this.GG,u=1===l?1:l**this.GB,g=this.MXA*c+this.MXB*h+this.MXC*u,j=this.MYA*c+this.MYB*h+this.MYC*u,y=this.MZA*c+this.MZB*h+this.MZC*u,v=b._;v[0]=g;v[1]=j;v[2]=y;const k=w._;_assertClassBrand(f,this,_normalizeWhitePointToFlat).call(this,this.whitePoint,v,k);const q=b._;_assertClassBrand(f,this,_compensateBlackPoint).call(this,this.blackPoint,k,q);const S=w._;_assertClassBrand(f,this,_normalizeWhitePointToD).call(this,m._,q,S);const _=b._;_assertClassBrand(f,this,_matrixProduct).call(this,d._,S,_);a[n]=255*_assertClassBrand(f,this,_sRGBTransferFunction).call(this,_[0]);a[n+1]=255*_assertClassBrand(f,this,_sRGBTransferFunction).call(this,_[1]);a[n+2]=255*_assertClassBrand(f,this,_sRGBTransferFunction).call(this,_[2])}var h={_:new Float32Array([.8951,.2664,-.1614,-.7502,1.7135,.0367,.0389,-.0685,1.0296])},u={_:new Float32Array([.9869929,-.1470543,.1599627,.4323053,.5183603,.0492912,-.0085287,.0400428,.9684867])},d={_:new Float32Array([3.2404542,-1.5371385,-.4985314,-.969266,1.8760108,.041556,.0556434,-.2040259,1.0572252])},m={_:new Float32Array([1,1,1])},g={_:new Float32Array(3)},b={_:new Float32Array(3)},w={_:new Float32Array(3)},j={_:(24/116)**3/8},y=new WeakSet;class LabCS extends ColorSpace{constructor(e,t,a){super("Lab",3);_classPrivateMethodInitSpec(this,y);if(!e)throw new n.FormatError("WhitePoint missing - required for color space Lab");[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];if(this.XW<0||this.ZW<0||1!==this.YW)throw new n.FormatError("Invalid WhitePoint components, no fallback available");if(this.XB<0||this.YB<0||this.ZB<0){(0,n.info)("Invalid BlackPoint, falling back to default");this.XB=this.YB=this.ZB=0}if(this.amin>this.amax||this.bmin>this.bmax){(0,n.info)("Invalid Range, falling back to defaults");this.amin=-100;this.amax=100;this.bmin=-100;this.bmax=100}}getRgbItem(e,t,a,n){_assertClassBrand(y,this,_toRgb4).call(this,e,t,!1,a,n)}getRgbBuffer(e,t,a,n,s,r,i){const o=(1<<r)-1;for(let r=0;r<a;r++){_assertClassBrand(y,this,_toRgb4).call(this,e,t,o,n,s);t+=3;s+=3+i}}isDefaultDecode(e,t){return!0}get usesZeroToOneRange(){return(0,n.shadow)(this,"usesZeroToOneRange",!1)}}function _fn_g(e){return e>=6/29?e**3:108/841*(e-4/29)}function _decode(e,t,a,n){return a+e*(n-a)/t}function _toRgb4(e,t,a,n,s){let r=e[t],i=e[t+1],o=e[t+2];if(!1!==a){r=_assertClassBrand(y,this,_decode).call(this,r,a,0,100);i=_assertClassBrand(y,this,_decode).call(this,i,a,this.amin,this.amax);o=_assertClassBrand(y,this,_decode).call(this,o,a,this.bmin,this.bmax)}i>this.amax?i=this.amax:i<this.amin&&(i=this.amin);o>this.bmax?o=this.bmax:o<this.bmin&&(o=this.bmin);const l=(r+16)/116,c=l+i/500,f=l-o/200,h=this.XW*_assertClassBrand(y,this,_fn_g).call(this,c),u=this.YW*_assertClassBrand(y,this,_fn_g).call(this,l),d=this.ZW*_assertClassBrand(y,this,_fn_g).call(this,f);let m,g,b;if(this.ZW<1){m=3.1339*h+-1.617*u+-.4906*d;g=-.9785*h+1.916*u+.0333*d;b=.072*h+-.229*u+1.4057*d}else{m=3.2406*h+-1.5372*u+-.4986*d;g=-.9689*h+1.8758*u+.0415*d;b=.0557*h+-.204*u+1.057*d}n[s]=255*Math.sqrt(m);n[s+1]=255*Math.sqrt(g);n[s+2]=255*Math.sqrt(b)}},5719(e,t,a){a.d(t,{ColorSpaceUtils:()=>ColorSpaceUtils});var n,s=a(3069),r=a(3141),i=a(5632),o=a(1723),l=a(4566),c=a(5399);function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}class ColorSpaceUtils{static parse({cs:e,xref:t,resources:a=null,pdfFunctionFactory:n,globalColorSpaceCache:s,localColorSpaceCache:r}){const o={xref:t,resources:a,pdfFunctionFactory:n,globalColorSpaceCache:s};let l,c;if(e instanceof i.Ref){c=e;const a=s.getByRef(c)||r.getByRef(c);if(a)return a;e=t.fetch(e)}if(e instanceof i.Name){l=e.name;const t=r.getByName(l);if(t)return t}return(c?_assertClassBrand(ColorSpaceUtils,this,_parseAndCacheGlobally).call(this,e,c,o):_assertClassBrand(ColorSpaceUtils,this,_parse).call(this,e,o)).then(e=>{(l||c)&&r.set(l,c,e);return e})}static get gray(){return(0,o.shadow)(this,"gray",new s.DeviceGrayCS)}static get rgb(){return(0,o.shadow)(this,"rgb",new s.DeviceRgbCS)}static get rgba(){return(0,o.shadow)(this,"rgba",new s.DeviceRgbaCS)}static get cmyk(){if(r.CmykICCBasedCS.isUsable)try{return(0,o.shadow)(this,"cmyk",new r.CmykICCBasedCS)}catch{(0,o.warn)("CMYK fallback: DeviceCMYK")}return(0,o.shadow)(this,"cmyk",new s.DeviceCmykCS)}}n=ColorSpaceUtils;async function _parseAndCacheGlobally(e,t,a){const s=await _assertClassBrand(n,this,_parse).call(this,e,a);a.globalColorSpaceCache.set(null,t,s);return s}function _subParse(e,t){return e instanceof i.Ref?t.globalColorSpaceCache.getByRef(e)||_assertClassBrand(n,this,_parseAndCacheGlobally).call(this,e,e,t):_assertClassBrand(n,this,_parse).call(this,e,t)}async function _parse(e,t){const{xref:a,resources:f,pdfFunctionFactory:h,globalColorSpaceCache:u}=t;if((e=a.fetchIfRef(e))instanceof i.Name)switch(e.name){case"G":case"DeviceGray":return this.gray;case"RGB":case"DeviceRGB":return this.rgb;case"DeviceRGBA":return this.rgba;case"CMYK":case"DeviceCMYK":return this.cmyk;case"Pattern":return new s.PatternCS(null);default:if(f instanceof i.Dict){const a=f.get("ColorSpace");if(a instanceof i.Dict){const s=a.get(e.name);if(s){if(s instanceof i.Name)return _assertClassBrand(n,this,_parse).call(this,s,t);e=s;break}}}(0,o.warn)(`Unrecognized ColorSpace: ${e.name}`);return this.gray}if(Array.isArray(e)){const f=a.fetchIfRef(e[0]).name;let d,m,g,b,w,j;switch(f){case"G":case"DeviceGray":return this.gray;case"RGB":case"DeviceRGB":return this.rgb;case"CMYK":case"DeviceCMYK":return this.cmyk;case"CalGray":d=a.fetchIfRef(e[1]);b=d.getArray("WhitePoint");w=d.getArray("BlackPoint");j=d.get("Gamma");return new s.CalGrayCS(b,w,j);case"CalRGB":d=a.fetchIfRef(e[1]);b=d.getArray("WhitePoint");w=d.getArray("BlackPoint");j=d.getArray("Gamma");const y=d.getArray("Matrix");return new s.CalRGBCS(b,w,j,y);case"ICCBased":const v=e[1]instanceof i.Ref;if(v){const t=u.getByRef(e[1]);if(t)return t}const k=a.fetchIfRef(e[1]),q=k.dict;m=q.get("N");if(r.IccColorSpace.isUsable)try{const t=new r.IccColorSpace(k.getBytes(),"ICCBased",m);v&&u.set(null,e[1],t);return t}catch(t){if(t instanceof c.MissingDataException)throw t;(0,o.warn)(`ICCBased color space (${e[1]}): "${t}".`)}const S=q.getRaw("Alternate");if(S){const e=await _assertClassBrand(n,this,_subParse).call(this,S,t);if(e.numComps===m)return e;(0,o.warn)("ICCBased color space: Ignoring incorrect /Alternate entry.")}if(1===m)return this.gray;if(3===m)return this.rgb;if(4===m)return this.cmyk;break;case"Pattern":return new s.PatternCS(e[1]?await _assertClassBrand(n,this,_subParse).call(this,e[1],t):null);case"I":case"Indexed":g=await _assertClassBrand(n,this,_subParse).call(this,e[1],t);const _=(0,l.MathClamp)(a.fetchIfRef(e[2]),0,255),C=a.fetchIfRef(e[3]);return new s.IndexedCS(g,_,C);case"Separation":case"DeviceN":const F=a.fetchIfRef(e[1]);m=Array.isArray(F)?F.length:1;g=await _assertClassBrand(n,this,_subParse).call(this,e[2],t);const x=await h.create(e[3]);return new s.AlternateCS(m,g,x);case"Lab":d=a.fetchIfRef(e[1]);b=d.getArray("WhitePoint");w=d.getArray("BlackPoint");const T=d.getArray("Range");return new s.LabCS(b,w,T);default:(0,o.warn)(`Unimplemented ColorSpace object: ${f}`);return this.gray}}(0,o.warn)(`Unrecognized ColorSpace object: ${e}`);return this.gray}},5399(e,t,a){a.d(t,{ChangesXRefWrapper:()=>ChangesXRefWrapper,MissingDataException:()=>MissingDataException,ParserEOFException:()=>ParserEOFException,XRefEntryException:()=>XRefEntryException,XRefParseException:()=>XRefParseException,arrayBuffersToBytes:()=>arrayBuffersToBytes,codePointIter:()=>codePointIter,collectActions:()=>collectActions,deepCompare:()=>deepCompare,encodeToXmlString:()=>encodeToXmlString,escapePDFName:()=>escapePDFName,escapeString:()=>escapeString,getInheritableProperty:()=>getInheritableProperty,getLookupTableFactory:()=>getLookupTableFactory,getModificationDate:()=>getModificationDate,getNewAnnotationsMap:()=>getNewAnnotationsMap,getParentToUpdate:()=>getParentToUpdate,getRotationMatrix:()=>getRotationMatrix,getSizeInBytes:()=>getSizeInBytes,isBooleanArray:()=>isBooleanArray,isNumberArray:()=>isNumberArray,isWhiteSpace:()=>isWhiteSpace,lookupMatrix:()=>lookupMatrix,lookupNormalRect:()=>lookupNormalRect,lookupRect:()=>lookupRect,normalizeCSSFontFamily:()=>normalizeCSSFontFamily,numberToString:()=>numberToString,parseXFAPath:()=>parseXFAPath,recoverJsURL:()=>recoverJsURL,toRomanNumerals:()=>toRomanNumerals,validateCSSFont:()=>validateCSSFont,validateFontName:()=>validateFontName});var n=a(1723),s=a(5632),r=a(1834),i=a(5075),o=a(5389);function _classPrivateFieldInitSpec(e,t,a){(function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,a)}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}function getLookupTableFactory(e,t=!1){let a;return function(){if(e){a=t?[]:Object.create(null);e(a);e=null}return a}}class MissingDataException extends n.BaseException{constructor(e,t){super(`Missing data [${e}, ${t})`,"MissingDataException");this.begin=e;this.end=t}}class ParserEOFException extends n.BaseException{constructor(e){super(e,"ParserEOFException")}}class XRefEntryException extends n.BaseException{constructor(e){super(e,"XRefEntryException")}}class XRefParseException extends n.BaseException{constructor(e){super(e,"XRefParseException")}}function arrayBuffersToBytes(e){const t=e.length;if(0===t)return new Uint8Array(0);if(1===t)return new Uint8Array(e[0]);let a=0;for(let n=0;n<t;n++)a+=e[n].byteLength;const n=new Uint8Array(a);let s=0;for(let a=0;a<t;a++){const t=new Uint8Array(e[a]);n.set(t,s);s+=t.byteLength}return n}function getInheritableProperty({dict:e,key:t,getArray:a=!1,stopWhenFound:n=!0}){let r;const i=new s.RefSet;for(;e instanceof s.Dict&&(!e.objId||!i.has(e.objId));){e.objId&&i.put(e.objId);const s=a?e.getArray(t):e.get(t);if(void 0!==s){if(n)return s;(r||=[]).push(s)}e=e.get("Parent")}return r}function getParentToUpdate(e,t,a){const n=new s.RefSet,r=e,i={dict:null,ref:null};for(;e instanceof s.Dict&&!n.has(t);){n.put(t);if(e.has("T"))break;if(!((t=e.getRaw("Parent"))instanceof s.Ref))return i;e=a.fetch(t)}if(e instanceof s.Dict&&e!==r){i.dict=e;i.ref=t}return i}function deepCompare(e,t){if(e===t)return!0;if(e instanceof s.Ref&&t instanceof s.Ref)return(0,s.isRefsEqual)(e,t);if(e instanceof s.Name&&t instanceof s.Name)return e.name===t.name;if(e instanceof s.Dict&&t instanceof s.Dict){if(e.size!==t.size)return!1;for(const[a,n]of e.getRawEntries()){const e=t.getRaw(a);if(void 0===e||!deepCompare(n,e))return!1}return!0}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let a=0,n=e.length;a<n;a++)if(!deepCompare(e[a],t[a]))return!1;return!0}return!1}const l=["","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 toRomanNumerals(e,t=!1){(0,n.assert)(Number.isInteger(e)&&e>0,"The number should be a positive integer.");const a="M".repeat(e/1e3|0)+l[e%1e3/100|0]+l[10+(e%100/10|0)]+l[20+e%10];return t?a.toLowerCase():a}function isWhiteSpace(e){return 32===e||9===e||13===e||10===e}function isBooleanArray(e,t){return Array.isArray(e)&&(null===t||e.length===t)&&e.every(e=>"boolean"==typeof e)}function isNumberArray(e,t){return Array.isArray(e)?(null===t||e.length===t)&&e.every(e=>"number"==typeof e):ArrayBuffer.isView(e)&&!(e instanceof BigInt64Array||e instanceof BigUint64Array)&&(null===t||e.length===t)}function lookupMatrix(e,t){return isNumberArray(e,6)?e:t}function lookupRect(e,t){return isNumberArray(e,4)?e:t}function lookupNormalRect(e,t){return isNumberArray(e,4)?n.Util.normalizeRect(e):t}function parseXFAPath(e){const t=/^(.+)\[(\d+)\]$/;return e.split(".").map(e=>{const a=e.match(t);return a?{name:a[1],pos:parseInt(a[2],10)}:{name:e,pos:0}})}function escapePDFName(e){const t=[];let a=0;for(let n=0,s=e.length;n<s;n++){const s=e.charCodeAt(n);if(s<33||s>126||35===s||40===s||41===s||60===s||62===s||91===s||93===s||123===s||125===s||47===s||37===s){a<n&&t.push(e.substring(a,n));t.push(`#${s.toString(16).padStart(2,"0")}`);a=n+1}}if(0===t.length)return e;a<e.length&&t.push(e.substring(a));return t.join("")}function escapeString(e){return e.replaceAll(/([()\\\n\r])/g,e=>"\n"===e?"\\n":"\r"===e?"\\r":`\\${e}`)}function _collectJS(e,t,a,n){if(!e)return;let i=null;if(e instanceof s.Ref){if(n.has(e))return;i=e;n.put(i);e=t.fetch(e)}if(Array.isArray(e))for(const s of e)_collectJS(s,t,a,n);else if(e instanceof s.Dict){if((0,s.isName)(e.get("S"),"JavaScript")){const t=e.get("JS");let n;t instanceof r.BaseStream?n=t.getString():"string"==typeof t&&(n=t);n&&=(0,o.stringToPDFString)(n,!0).replaceAll("\0","");n&&a.push(n.trim())}_collectJS(e.getRaw("Next"),t,a,n)}i&&n.remove(i)}function _collectAction(e,t,a,n){const r=[];_collectJS(e,a,r,new s.RefSet);r.length&&n.set(t,r)}function collectActions(e,t,a){const n=new Map,r=getInheritableProperty({dict:t,key:"AA",stopWhenFound:!1});if(r)for(let t=r.length-1;t>=0;t--){const i=r[t];if(i instanceof s.Dict)for(const[t,s]of i.getRawEntries()){const r=a[t];r&&_collectAction(s,r,e,n)}}t.has("A")&&_collectAction(t.get("A"),"Action",e,n);return n.size?n:null}const c={60:"<",62:">",38:"&",34:""",39:"'"};function*codePointIter(e){for(let t=0,a=e.length;t<a;t++){const a=e.codePointAt(t);a>55295&&(a<57344||a>65533)&&t++;yield a}}function encodeToXmlString(e){const t=[];let a=0;for(let n=0,s=e.length;n<s;n++){const s=e.codePointAt(n);if(32<=s&&s<=126){const r=c[s];if(r){a<n&&t.push(e.substring(a,n));t.push(r);a=n+1}}else{a<n&&t.push(e.substring(a,n));t.push(`&#x${s.toString(16).toUpperCase()};`);s>65535&&n++;a=n+1}}if(0===t.length)return e;a<e.length&&t.push(e.substring(a));return t.join("")}function validateFontName(e,t=!1){const a=/^("|').*("|')$/.exec(e);if(a&&a[1]===a[2]){if(new RegExp(`[^\\\\]${a[1]}`).test(e.slice(1,-1))){t&&(0,n.warn)(`FontFamily contains unescaped ${a[1]}: ${e}.`);return!1}if(i.CONTROL_CHAR_REGEXP.test(e)){t&&(0,n.warn)(`FontFamily contains control characters: ${e}.`);return!1}}else for(const a of e.split(/[ \t]+/))if(/^(?:\d|-[\d-])/.test(a)||!/^[\w\\-]+$/.test(a)){t&&(0,n.warn)(`FontFamily contains invalid <custom-ident>: ${e}.`);return!1}return!0}function normalizeCSSFontFamily(e){return e.replaceAll(/( +)(\d)?/g,(e,t,a)=>a??" ")}function validateCSSFont(e){const t=new Set(["100","200","300","400","500","600","700","800","900","1000","normal","bold","bolder","lighter"]),{fontFamily:a,fontWeight:n,italicAngle:s}=e;if(!validateFontName(a,!0))return!1;const r=n?n.toString():"";e.fontWeight=t.has(r)?r:"400";const i=parseFloat(s);e.italicAngle=isNaN(i)||i<-90||i>90?"14":s.toString();return!0}function recoverJsURL(e){const t=new RegExp("^\\s*("+["app.launchURL","window.open","xfa.host.gotoURL"].join("|").replaceAll(".","\\.")+")\\((?:'|\")([^'\"]*)(?:'|\")(?:,\\s*(\\w+)\\)|\\))","i").exec(e);return t?.[2]?{url:t[2],newWindow:"app.launchURL"===t[1]&&"true"===t[3]}:null}function numberToString(e){if(Number.isInteger(e))return e.toString();const t=Math.round(100*e);return t%100==0?(t/100).toString():t%10==0?e.toFixed(1):e.toFixed(2)}function getNewAnnotationsMap(e){if(!e)return null;const t=new Map;for(const[a,s]of e)a.startsWith(n.AnnotationEditorPrefix)&&t.getOrInsertComputed(s.pageIndex,n.makeArr).push(s);return t.size>0?t:null}function getModificationDate(e=new Date){e instanceof Date||(e=new Date(e));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("")}function getRotationMatrix(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")}}function getSizeInBytes(e){return Math.ceil(Math.ceil(Math.log2(1+e))/8)}var f=new WeakMap,h=new WeakMap;class ChangesXRefWrapper{constructor(e,t){_classPrivateFieldInitSpec(this,f,void 0);_classPrivateFieldInitSpec(this,h,void 0);_classPrivateFieldSet(f,this,e);_classPrivateFieldSet(h,this,t)}getNewTemporaryRef(){return _classPrivateFieldGet(h,this).getNewTemporaryRef()}fetch(e){return _classPrivateFieldGet(f,this).has(e)?_classPrivateFieldGet(f,this).get(e).data:_classPrivateFieldGet(h,this).fetch(e)}fetchIfRef(e){return e instanceof s.Ref?this.fetch(e):e}async fetchAsync(e){return _classPrivateFieldGet(f,this).has(e)?_classPrivateFieldGet(f,this).get(e).data:_classPrivateFieldGet(h,this).fetchAsync(e)}async fetchIfRefAsync(e){return e instanceof s.Ref?this.fetchAsync(e):e}}a.d(t,["IDENTITY_MATRIX",0,[1,0,0,1,0,0],"MAX_INT_32",0,2**31-1,"PDF_VERSION_REGEXP",0,/^[1-9]\.\d$/,"RESOURCES_KEYS_OPERATOR_LIST",0,["ColorSpace","ExtGState","Font","Pattern","Properties","Shading","XObject"],"RESOURCES_KEYS_TEXT_CONTENT",0,["ExtGState","Font","Properties","XObject"]])},5350(e,t,a){a.d(t,{CipherTransformFactory:()=>CipherTransformFactory});var n=a(1723);class Word64{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}shiftRight(e){this.low=this.low>>>e|this.high<<32-e;this.high=this.high>>>e|0}rotateRight(e){let t,a;if(32&e){a=this.low;t=this.high}else{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){const t=(this.low>>>0)+(e.low>>>0);let a=(this.high>>>0)+(e.high>>>0);t>4294967295&&(a+=1);this.low=0|t;this.high=0|a}copyTo(e,t){e.setUint32(t,this.high);e.setUint32(t+4,this.low)}assign(e){this.high=e.high;this.low=e.low}}const s={get k(){return(0,n.shadow)(this,"k",[new Word64(1116352408,3609767458),new Word64(1899447441,602891725),new Word64(3049323471,3964484399),new Word64(3921009573,2173295548),new Word64(961987163,4081628472),new Word64(1508970993,3053834265),new Word64(2453635748,2937671579),new Word64(2870763221,3664609560),new Word64(3624381080,2734883394),new Word64(310598401,1164996542),new Word64(607225278,1323610764),new Word64(1426881987,3590304994),new Word64(1925078388,4068182383),new Word64(2162078206,991336113),new Word64(2614888103,633803317),new Word64(3248222580,3479774868),new Word64(3835390401,2666613458),new Word64(4022224774,944711139),new Word64(264347078,2341262773),new Word64(604807628,2007800933),new Word64(770255983,1495990901),new Word64(1249150122,1856431235),new Word64(1555081692,3175218132),new Word64(1996064986,2198950837),new Word64(2554220882,3999719339),new Word64(2821834349,766784016),new Word64(2952996808,2566594879),new Word64(3210313671,3203337956),new Word64(3336571891,1034457026),new Word64(3584528711,2466948901),new Word64(113926993,3758326383),new Word64(338241895,168717936),new Word64(666307205,1188179964),new Word64(773529912,1546045734),new Word64(1294757372,1522805485),new Word64(1396182291,2643833823),new Word64(1695183700,2343527390),new Word64(1986661051,1014477480),new Word64(2177026350,1206759142),new Word64(2456956037,344077627),new Word64(2730485921,1290863460),new Word64(2820302411,3158454273),new Word64(3259730800,3505952657),new Word64(3345764771,106217008),new Word64(3516065817,3606008344),new Word64(3600352804,1432725776),new Word64(4094571909,1467031594),new Word64(275423344,851169720),new Word64(430227734,3100823752),new Word64(506948616,1363258195),new Word64(659060556,3750685593),new Word64(883997877,3785050280),new Word64(958139571,3318307427),new Word64(1322822218,3812723403),new Word64(1537002063,2003034995),new Word64(1747873779,3602036899),new Word64(1955562222,1575990012),new Word64(2024104815,1125592928),new Word64(2227730452,2716904306),new Word64(2361852424,442776044),new Word64(2428436474,593698344),new Word64(2756734187,3733110249),new Word64(3204031479,2999351573),new Word64(3329325298,3815920427),new Word64(3391569614,3928383900),new Word64(3515267271,566280711),new Word64(3940187606,3454069534),new Word64(4118630271,4000239992),new Word64(116418474,1914138554),new Word64(174292421,2731055270),new Word64(289380356,3203993006),new Word64(460393269,320620315),new Word64(685471733,587496836),new Word64(852142971,1086792851),new Word64(1017036298,365543100),new Word64(1126000580,2618297676),new Word64(1288033470,3409855158),new Word64(1501505948,4234509866),new Word64(1607167915,987167468),new Word64(1816402316,1246189591)])}};function ch(e,t,a,n,s){e.assign(t);e.and(a);s.assign(t);s.not();s.and(n);e.xor(s)}function maj(e,t,a,n,s){e.assign(t);e.and(a);s.assign(t);s.and(n);e.xor(s);s.assign(a);s.and(n);e.xor(s)}function sigma(e,t,a){e.assign(t);e.rotateRight(28);a.assign(t);a.rotateRight(34);e.xor(a);a.assign(t);a.rotateRight(39);e.xor(a)}function sigmaPrime(e,t,a){e.assign(t);e.rotateRight(14);a.assign(t);a.rotateRight(18);e.xor(a);a.assign(t);a.rotateRight(41);e.xor(a)}function littleSigma(e,t,a){e.assign(t);e.rotateRight(1);a.assign(t);a.rotateRight(8);e.xor(a);a.assign(t);a.shiftRight(7);e.xor(a)}function littleSigmaPrime(e,t,a){e.assign(t);e.rotateRight(19);a.assign(t);a.rotateRight(61);e.xor(a);a.assign(t);a.shiftRight(6);e.xor(a)}function calculateSHA512(e,t,a,n=!1){let r,i,o,l,c,f,h,u;if(n){r=new Word64(3418070365,3238371032);i=new Word64(1654270250,914150663);o=new Word64(2438529370,812702999);l=new Word64(355462360,4144912697);c=new Word64(1731405415,4290775857);f=new Word64(2394180231,1750603025);h=new Word64(3675008525,1694076839);u=new Word64(1203062813,3204075428)}else{r=new Word64(1779033703,4089235720);i=new Word64(3144134277,2227873595);o=new Word64(1013904242,4271175723);l=new Word64(2773480762,1595750129);c=new Word64(1359893119,2917565137);f=new Word64(2600822924,725511199);h=new Word64(528734635,4215389547);u=new Word64(1541459225,327033209)}const d=128*Math.ceil((a+17)/128),m=new Uint8Array(d),g=new DataView(m.buffer);let b,w=0;if(a>0){m.set(e.subarray(t,t+a),w);w+=a}m[w++]=128;const j=d-16;w<j&&(w=j);w+=11;m[w++]=a>>>29;m[w++]=a>>21;m[w++]=a>>13;m[w++]=a>>5;m[w++]=a<<3;const y=new Array(80);for(w=0;w<80;w++)y[w]=new Word64(0,0);const{k:v}=s;let k=new Word64(0,0),q=new Word64(0,0),S=new Word64(0,0),_=new Word64(0,0),C=new Word64(0,0),F=new Word64(0,0),x=new Word64(0,0),T=new Word64(0,0);const O=new Word64(0,0),M=new Word64(0,0),R=new Word64(0,0),D=new Word64(0,0);let H,N;for(w=0;w<d;){for(b=0;b<16;++b,w+=8){y[b].high=g.getInt32(w);y[b].low=g.getInt32(w+4)}for(b=16;b<80;++b){H=y[b];littleSigmaPrime(H,y[b-2],D);H.add(y[b-7]);littleSigma(R,y[b-15],D);H.add(R);H.add(y[b-16])}k.assign(r);q.assign(i);S.assign(o);_.assign(l);C.assign(c);F.assign(f);x.assign(h);T.assign(u);for(b=0;b<80;++b){O.assign(T);sigmaPrime(R,C,D);O.add(R);ch(R,C,F,x,D);O.add(R);O.add(v[b]);O.add(y[b]);sigma(M,k,D);maj(R,k,q,S,D);M.add(R);H=T;T=x;x=F;F=C;_.add(O);C=_;_=S;S=q;q=k;H.assign(O);H.add(M);k=H}r.add(k);i.add(q);o.add(S);l.add(_);c.add(C);f.add(F);h.add(x);u.add(T)}if(n){N=new Uint8Array(48);const e=new DataView(N.buffer);r.copyTo(e,0);i.copyTo(e,8);o.copyTo(e,16);l.copyTo(e,24);c.copyTo(e,32);f.copyTo(e,40)}else{N=new Uint8Array(64);const e=new DataView(N.buffer);r.copyTo(e,0);i.copyTo(e,8);o.copyTo(e,16);l.copyTo(e,24);c.copyTo(e,32);f.copyTo(e,40);h.copyTo(e,48);u.copyTo(e,56)}return N}function calculateSHA384(e,t,a){return calculateSHA512(e,t,a,!0)}var r=a(5632),i=a(3343);const o={get k(){return(0,n.shadow)(this,"k",[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298])}};function rotr(e,t){return e>>>t|e<<32-t}function calculate_sha256_ch(e,t,a){return e&t^~e&a}function calculate_sha256_maj(e,t,a){return e&t^e&a^t&a}function calculate_sha256_sigma(e){return rotr(e,2)^rotr(e,13)^rotr(e,22)}function calculate_sha256_sigmaPrime(e){return rotr(e,6)^rotr(e,11)^rotr(e,25)}function calculate_sha256_littleSigma(e){return rotr(e,7)^rotr(e,18)^e>>>3}function calculate_sha256_littleSigmaPrime(e){return rotr(e,17)^rotr(e,19)^e>>>10}function calculateSHA256(e,t,a){let n=1779033703,s=3144134277,r=1013904242,i=2773480762,l=1359893119,c=2600822924,f=528734635,h=1541459225;const u=64*Math.ceil((a+9)/64),d=new Uint8Array(u),m=new DataView(d.buffer);let g,b=0;if(a>0){d.set(e.subarray(t,t+a),b);b+=a}d[b++]=128;const w=u-8;b<w&&(b=w);b+=3;d[b++]=a>>>29;d[b++]=a>>21;d[b++]=a>>13;d[b++]=a>>5;d[b++]=a<<3;const j=new Uint32Array(64),{k:y}=o;for(b=0;b<u;){for(g=0;g<16;++g,b+=4)j[g]=m.getInt32(b);for(g=16;g<64;++g)j[g]=calculate_sha256_littleSigmaPrime(j[g-2])+j[g-7]+calculate_sha256_littleSigma(j[g-15])+j[g-16]|0;let e,t,a=n,o=s,u=r,d=i,w=l,v=c,k=f,q=h;for(g=0;g<64;++g){e=q+calculate_sha256_sigmaPrime(w)+calculate_sha256_ch(w,v,k)+y[g]+j[g];t=calculate_sha256_sigma(a)+calculate_sha256_maj(a,o,u);q=k;k=v;v=w;w=d+e|0;d=u;u=o;o=a;a=e+t|0}n=n+a|0;s=s+o|0;r=r+u|0;i=i+d|0;l=l+w|0;c=c+v|0;f=f+k|0;h=h+q|0}return new Uint8Array([n>>24,n>>16,n>>8,n,s>>24,s>>16,s>>8,s,r>>24,r>>16,r>>8,r,i>>24,i>>16,i>>8,i,l>>24,l>>16,l>>8,l,c>>24,c>>16,c>>8,c,f>>24,f>>16,f>>8,f,h>>24,h>>16,h>>8,h])}var l=a(4563);function _classPrivateFieldInitSpec(e,t,a){(function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,a)}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var c=new WeakMap;class DecryptStream extends l.DecodeStream{constructor(e,t,a){super(t);_classPrivateFieldInitSpec(this,c,null);this.stream=e;this.dict=e.dict;this.decrypt=a}readBlock(){let e=_classPrivateFieldGet(c,this)??this.stream.getBytes(512);if(!e.length){this.eof=!0;return}!function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}(c,this,this.stream.getBytes(512));const t=_classPrivateFieldGet(c,this).length>0;e=(0,this.decrypt)(e,!t);const a=this.bufferLength,n=a+e.length;this.ensureBuffer(n).set(e,a);this.bufferLength=n}getOriginalStream(){return this}}const f=new Set([160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8239,8287,12288]),h=new Set([173,847,6150,6155,6156,6157,8203,8204,8205,8288,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279]);var u;function _classPrivateMethodInitSpec(e,t){crypto_checkPrivateRedeclaration(e,t),t.add(e)}function crypto_classPrivateFieldInitSpec(e,t,a){crypto_checkPrivateRedeclaration(e,t),t.set(e,a)}function crypto_checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function crypto_classPrivateFieldGet(e,t){return e.get(crypto_assertClassBrand(e,t))}function crypto_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}class ARCFourCipher{constructor(e){_defineProperty(this,"a",0);_defineProperty(this,"b",0);const t=n.Util.identity0to256Map.slice(),a=e.length;for(let n=0,s=0;n<256;++n){const r=t[n];s=s+r+e[n%a]&255;t[n]=t[s];t[s]=r}this.s=t}encryptBlock(e){let t=this.a,a=this.b;const n=this.s,s=e.length,r=new Uint8Array(s);for(let i=0;i<s;++i){t=t+1&255;const s=n[t];a=a+s&255;const o=n[a];n[t]=o;n[a]=s;r[i]=e[i]^n[s+o&255]}this.a=t;this.b=a;return r}decryptBlock(e){return this.encryptBlock(e)}encrypt(e){return this.encryptBlock(e)}}class NullCipher{decryptBlock(e){return e}encrypt(e){return e}}class AESBaseCipher{constructor(){_defineProperty(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]));_defineProperty(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]));_defineProperty(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]));_defineProperty(this,"_mixCol",Uint8Array.from({length:256},(e,t)=>t<128?t<<1:t<<1^27));this.buffer=new Uint8Array(16);this.bufferPosition=0}_expandKey(e){(0,n.unreachable)("Cannot call `_expandKey` on the base class")}_decrypt(e,t){let a,n,s;const r=new Uint8Array(16);r.set(e);for(let e=0,a=this._keySize;e<16;++e,++a)r[e]^=t[a];for(let e=this._cyclesOfRepetition-1;e>=1;--e){a=r[13];r[13]=r[9];r[9]=r[5];r[5]=r[1];r[1]=a;a=r[14];n=r[10];r[14]=r[6];r[10]=r[2];r[6]=a;r[2]=n;a=r[15];n=r[11];s=r[7];r[15]=r[3];r[11]=a;r[7]=n;r[3]=s;for(let e=0;e<16;++e)r[e]=this._inv_s[r[e]];for(let a=0,n=16*e;a<16;++a,++n)r[a]^=t[n];for(let e=0;e<16;e+=4){const t=this._mix[r[e]],n=this._mix[r[e+1]],s=this._mix[r[e+2]],i=this._mix[r[e+3]];a=t^n>>>8^n<<24^s>>>16^s<<16^i>>>24^i<<8;r[e]=a>>>24&255;r[e+1]=a>>16&255;r[e+2]=a>>8&255;r[e+3]=255&a}}a=r[13];r[13]=r[9];r[9]=r[5];r[5]=r[1];r[1]=a;a=r[14];n=r[10];r[14]=r[6];r[10]=r[2];r[6]=a;r[2]=n;a=r[15];n=r[11];s=r[7];r[15]=r[3];r[11]=a;r[7]=n;r[3]=s;for(let e=0;e<16;++e){r[e]=this._inv_s[r[e]];r[e]^=t[e]}return r}_encrypt(e,t){const a=this._s;let n,s,r;const i=new Uint8Array(16);i.set(e);for(let e=0;e<16;++e)i[e]^=t[e];for(let e=1;e<this._cyclesOfRepetition;e++){for(let e=0;e<16;++e)i[e]=a[i[e]];r=i[1];i[1]=i[5];i[5]=i[9];i[9]=i[13];i[13]=r;r=i[2];s=i[6];i[2]=i[10];i[6]=i[14];i[10]=r;i[14]=s;r=i[3];s=i[7];n=i[11];i[3]=i[15];i[7]=r;i[11]=s;i[15]=n;for(let e=0;e<16;e+=4){const t=i[e],a=i[e+1],s=i[e+2],r=i[e+3];n=t^a^s^r;i[e]^=n^this._mixCol[t^a];i[e+1]^=n^this._mixCol[a^s];i[e+2]^=n^this._mixCol[s^r];i[e+3]^=n^this._mixCol[r^t]}for(let a=0,n=16*e;a<16;++a,++n)i[a]^=t[n]}for(let e=0;e<16;++e)i[e]=a[i[e]];r=i[1];i[1]=i[5];i[5]=i[9];i[9]=i[13];i[13]=r;r=i[2];s=i[6];i[2]=i[10];i[6]=i[14];i[10]=r;i[14]=s;r=i[3];s=i[7];n=i[11];i[3]=i[15];i[7]=r;i[11]=s;i[15]=n;for(let e=0,a=this._keySize;e<16;++e,++a)i[e]^=t[a];return i}_decryptBlock2(e,t){const a=e.length;let n=this.buffer,s=this.bufferPosition;const r=[];let i=this.iv;for(let t=0;t<a;++t){n[s]=e[t];++s;if(s<16)continue;const a=this._decrypt(n,this._key);for(let e=0;e<16;++e)a[e]^=i[e];i=n;r.push(a);n=new Uint8Array(16);s=0}this.buffer=n;this.bufferLength=s;this.iv=i;if(0===r.length)return new Uint8Array(0);let o=16*r.length;if(t){const e=r.at(-1);let t=e[15];if(t<=16){for(let a=15,n=16-t;a>=n;--a)if(e[a]!==t){t=0;break}o-=t;r[r.length-1]=e.subarray(0,16-t)}}const l=new Uint8Array(o);for(let e=0,t=0,a=r.length;e<a;++e,t+=16)l.set(r[e],t);return l}decryptBlock(e,t,a=null){const n=e.length,s=this.buffer;let r=this.bufferPosition;if(a)this.iv=a;else{for(let t=0;r<16&&t<n;++t,++r)s[r]=e[t];if(r<16){this.bufferLength=r;return new Uint8Array(0)}this.iv=s;e=e.subarray(16)}this.buffer=new Uint8Array(16);this.bufferLength=0;this.decryptBlock=this._decryptBlock2;return this.decryptBlock(e,t)}encrypt(e,t){const a=e.length;let n=this.buffer,s=this.bufferPosition;const r=[];t||=new Uint8Array(16);for(let i=0;i<a;++i){n[s]=e[i];++s;if(s<16)continue;for(let e=0;e<16;++e)n[e]^=t[e];const a=this._encrypt(n,this._key);t=a;r.push(a);n=new Uint8Array(16);s=0}this.buffer=n;this.bufferLength=s;this.iv=t;if(0===r.length)return new Uint8Array(0);const i=16*r.length,o=new Uint8Array(i);for(let e=0,t=0,a=r.length;e<a;++e,t+=16)o.set(r[e],t);return o}}class AES128Cipher extends AESBaseCipher{constructor(e){super();_defineProperty(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._cyclesOfRepetition=10;this._keySize=160;this._key=this._expandKey(e)}_expandKey(e){const t=this._s,a=this._rcon,n=new Uint8Array(176);n.set(e);for(let e=16,s=1;e<176;++s){let r=n[e-3],i=n[e-2],o=n[e-1],l=n[e-4];r=t[r];i=t[i];o=t[o];l=t[l];r^=a[s];for(let t=0;t<4;++t){n[e]=r^=n[e-16];e++;n[e]=i^=n[e-16];e++;n[e]=o^=n[e-16];e++;n[e]=l^=n[e-16];e++}}return n}}class AES256Cipher extends AESBaseCipher{constructor(e){super();this._cyclesOfRepetition=14;this._keySize=224;this._key=this._expandKey(e)}_expandKey(e){const t=this._s,a=new Uint8Array(240);a.set(e);let n,s,r,i,o=1;for(let e=32,l=1;e<240;++l){if(e%32==16){n=t[n];s=t[s];r=t[r];i=t[i]}else if(e%32==0){n=a[e-3];s=a[e-2];r=a[e-1];i=a[e-4];n=t[n];s=t[s];r=t[r];i=t[i];n^=o;(o<<=1)>=256&&(o=255&(27^o))}for(let t=0;t<4;++t){a[e]=n^=a[e-32];e++;a[e]=s^=a[e-32];e++;a[e]=r^=a[e-32];e++;a[e]=i^=a[e-32];e++}}return a}}class PDFBase{_hash(e,t,a){(0,n.unreachable)("Abstract method `_hash` called")}checkOwnerPassword(e,t,a,s){const r=new Uint8Array(e.length+56);r.set(e,0);r.set(t,e.length);r.set(a,e.length+t.length);const i=this._hash(e,r,a);return(0,n.isArrayEqual)(i,s)}checkUserPassword(e,t,a){const s=new Uint8Array(e.length+8);s.set(e,0);s.set(t,e.length);const r=this._hash(e,s,[]);return(0,n.isArrayEqual)(r,a)}getOwnerKey(e,t,a,n){const s=new Uint8Array(e.length+56);s.set(e,0);s.set(t,e.length);s.set(a,e.length+t.length);const r=this._hash(e,s,a);return new AES256Cipher(r).decryptBlock(n,!1,new Uint8Array(16))}getUserKey(e,t,a){const n=new Uint8Array(e.length+8);n.set(e,0);n.set(t,e.length);const s=this._hash(e,n,[]);return new AES256Cipher(s).decryptBlock(a,!1,new Uint8Array(16))}}class PDF17 extends PDFBase{_hash(e,t,a){return calculateSHA256(t,0,t.length)}}class PDF20 extends PDFBase{_hash(e,t,a){let n=calculateSHA256(t,0,t.length).subarray(0,32),s=[0],r=0;for(;r<64||s.at(-1)>r-32;){const t=e.length+n.length+a.length,i=new Uint8Array(t);let o=0;i.set(e,o);o+=e.length;i.set(n,o);o+=n.length;i.set(a,o);const l=new Uint8Array(64*t);for(let e=0,a=0;e<64;e++,a+=t)l.set(i,a);s=new AES128Cipher(n.subarray(0,16)).encrypt(l,n.subarray(16,32));const c=Math.sumPrecise(s.slice(0,16))%3;0===c?n=calculateSHA256(s,0,s.length):1===c?n=calculateSHA384(s,0,s.length):2===c&&(n=calculateSHA512(s,0,s.length));r++}return n.subarray(0,32)}}var d=new WeakMap,m=new WeakSet;class CipherTransform{constructor(e,t=null,a=null){_classPrivateMethodInitSpec(this,m);crypto_classPrivateFieldInitSpec(this,d,new Map);_defineProperty(this,"embeddedFilterName",null);this.resolveCipher=e;this.streamFilterName=a;this.stringFilterName=t}createStream(e,t,a=null){const n=new(crypto_assertClassBrand(m,this,_getCipher).call(this,a||crypto_assertClassBrand(m,this,_getStreamFilterName).call(this,e.dict)));return new DecryptStream(e,t,function cipherTransformDecryptStream(e,t){return n.decryptBlock(e,t)})}decryptString(e){const t=new(crypto_assertClassBrand(m,this,_getCipher).call(this,this.stringFilterName));let a=(0,n.stringToBytes)(e);a=t.decryptBlock(a,!0);return(0,n.bytesToString)(a)}encryptString(e){return crypto_assertClassBrand(m,this,_encrypt).call(this,e,this.stringFilterName)}encryptStream(e,t,a=null){return crypto_assertClassBrand(m,this,_encrypt).call(this,e,a||crypto_assertClassBrand(m,this,_getStreamFilterName).call(this,t))}}function _getCipher(e=null){const t=e instanceof r.Name?e.name:"__default__";return crypto_classPrivateFieldGet(d,this).getOrInsertComputed(t,()=>this.resolveCipher(e))}function _getStreamFilterName(e){return this.embeddedFilterName&&(0,r.isDict)(e,"EmbeddedFile")?this.embeddedFilterName:this.streamFilterName}function _encrypt(e,t){const a=new(crypto_assertClassBrand(m,this,_getCipher).call(this,t));if(a instanceof AESBaseCipher){const t=16-e.length%16;e+=String.fromCharCode(t).repeat(t);const s=new Uint8Array(16);crypto.getRandomValues(s);let r=(0,n.stringToBytes)(e);r=a.encrypt(r,s);const i=new Uint8Array(16+r.length);i.set(s);i.set(r,16);return(0,n.bytesToString)(i)}let s=(0,n.stringToBytes)(e);s=a.encrypt(s);return(0,n.bytesToString)(s)}function utf8PasswordToBytes(e){try{e=(0,n.utf8StringToString)(e)}catch{(0,n.warn)("CipherTransformFactory: Unable to convert UTF8 encoded password.")}return(0,n.stringToBytes)(e)}var g=new WeakMap,b=new WeakSet;class CipherTransformFactory{static get _defaultPasswordBytes(){return(0,n.shadow)(this,"_defaultPasswordBytes",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]))}constructor(e,t,a){_classPrivateMethodInitSpec(this,b);crypto_classPrivateFieldInitSpec(this,g,void 0);const s=e.get("Filter");if(!(0,r.isName)(s,"Standard"))throw new n.FormatError("unknown encryption method");this.filterName=s.name;this.dict=e;!function crypto_classPrivateFieldSet(e,t,a){return e.set(crypto_assertClassBrand(e,t),a),a}(g,this,t);const i=e.get("V");if(!Number.isInteger(i)||1!==i&&2!==i&&4!==i&&5!==i)throw new n.FormatError("unsupported encryption algorithm");this.algorithm=i;let o=e.get("Length");if(!o)if(i<=3)o=40;else{const t=e.get("CF"),a=e.get("StmF");if(t instanceof r.Dict&&a instanceof r.Name){t.suppressEncryption=!0;const e=t.get(a.name);o=e?.get("Length")||128;o<40&&(o<<=3)}}if(!Number.isInteger(o)||o<40||o%8!=0)throw new n.FormatError("invalid key length");let l=null,c=r.Name.get("Identity"),u=r.Name.get("Identity"),d=c;if(i>=4){const t=e.get("CF");if(t instanceof r.Dict){t.suppressEncryption=!0;l=t}c=e.get("StmF")||r.Name.get("Identity");u=e.get("StrF")||r.Name.get("Identity");d=e.get("EFF")||c}this.cf=l;this.stmf=c;this.strf=u;this.eff=d;const m=(0,n.stringToBytes)(e.get("O")),w=(0,n.stringToBytes)(e.get("U")),j=m.subarray(0,32),y=w.subarray(0,32),v=e.get("P"),k=e.get("R"),q=(4===i||5===i)&&!1!==e.get("EncryptMetadata");this.encryptMetadata=q||4!==i&&5!==i;const S=(0,n.stringToBytes)(t);let _,C,F;if(a)if(6===k){const e=function saslPrep(e){let t="";for(const a of e){const e=a.codePointAt(0);f.has(e)?t+=" ":h.has(e)||(t+=a)}return t.normalize("NFKC")}(a);_=utf8PasswordToBytes(e);e!==a&&(C=utf8PasswordToBytes(a))}else _=5===i?utf8PasswordToBytes(a):(0,n.stringToBytes)(a);if(5!==i)F=crypto_assertClassBrand(b,this,_prepareKeyData).call(this,S,_,j,y,v,k,o,q);else{const t=m.subarray(32,40),a=m.subarray(40,48),s=w.subarray(0,48),r=w.subarray(32,40),i=w.subarray(40,48),o=(0,n.stringToBytes)(e.get("OE")),l=(0,n.stringToBytes)(e.get("UE")),c=(0,n.stringToBytes)(e.get("Perms"));for(const e of C?[_,C]:[_]){F=crypto_assertClassBrand(b,this,_createEncryptionKey).call(this,k,e,j,t,a,s,y,r,i,o,l,c);if(F)break}}if(!F){if(!a){if(this.algorithm>=4&&(0,r.isName)(this.stmf,"Identity")&&(0,r.isName)(this.strf,"Identity")){const e=this.cf?.get(this.eff.name),t=e?.get("AuthEvent");if((0,r.isName)(t,"EFOpen")){this.encryptionKey=null;return}}throw new n.PasswordException("No password given",n.PasswordResponses.NEED_PASSWORD)}const e=crypto_assertClassBrand(b,this,_decodeUserPassword).call(this,_,j,k,o);F=crypto_assertClassBrand(b,this,_prepareKeyData).call(this,S,e,j,y,v,k,o,q)}if(!F)throw new n.PasswordException("Incorrect Password",n.PasswordResponses.INCORRECT_PASSWORD);if(4===i&&F.length<16){this.encryptionKey=new Uint8Array(16);this.encryptionKey.set(F)}else this.encryptionKey=F}setPassword(e){const t=new CipherTransformFactory(this.dict,crypto_classPrivateFieldGet(g,this),e);this.encryptionKey=t.encryptionKey}createCipherTransform(e,t){if(4===this.algorithm||5===this.algorithm){const a=new CipherTransform(a=>{if(!(a instanceof r.Name))throw new n.FormatError("Invalid crypt filter name.");const s=this.cf?.get(a.name),i=s?.get("CFM");if(!i||"None"===i.name)return NullCipher;if(!this.encryptionKey)throw new n.PasswordException("No password given",n.PasswordResponses.NEED_PASSWORD);if(5===this.algorithm||"AESV3"===i.name)return AES256Cipher.bind(null,this.encryptionKey);if("V2"===i.name)return ARCFourCipher.bind(null,crypto_assertClassBrand(b,this,_buildObjectKey).call(this,e,t,this.encryptionKey,!1));if("AESV2"===i.name)return AES128Cipher.bind(null,crypto_assertClassBrand(b,this,_buildObjectKey).call(this,e,t,this.encryptionKey,!0));throw new n.FormatError("Unknown crypto method")},this.strf,this.stmf);a.embeddedFilterName=this.eff;return a}return new CipherTransform(()=>ARCFourCipher.bind(null,crypto_assertClassBrand(b,this,_buildObjectKey).call(this,e,t,this.encryptionKey,!1)))}}u=CipherTransformFactory;function _createEncryptionKey(e,t,a,n,s,r,i,o,l,c,f,h){if(t){const e=Math.min(127,t.length);t=t.subarray(0,e)}else t=[];const u=6===e?new PDF20:new PDF17;return u.checkUserPassword(t,o,i)?u.getUserKey(t,l,f):t.length&&u.checkOwnerPassword(t,n,r,a)?u.getOwnerKey(t,s,r,c):null}function _prepareKeyData(e,t,a,n,s,r,o,l){const c=40+a.length+e.length,f=new Uint8Array(c);let h,d,m=0;if(t){d=Math.min(32,t.length);for(;m<d;++m)f[m]=t[m]}h=0;for(;m<32;)f[m++]=u._defaultPasswordBytes[h++];f.set(a,m);m+=a.length;f[m++]=255&s;f[m++]=s>>8&255;f[m++]=s>>16&255;f[m++]=s>>>24&255;f.set(e,m);m+=e.length;if(r>=4&&!l){f.fill(255,m,m+4);m+=4}let g=(0,i.calculateMD5)(f,0,m);const b=o>>3;if(r>=3)for(h=0;h<50;++h)g=(0,i.calculateMD5)(g,0,b);const w=g.subarray(0,b);let j,y;if(r>=3){m=0;f.set(u._defaultPasswordBytes,m);m+=32;f.set(e,m);m+=e.length;j=new ARCFourCipher(w);y=j.encryptBlock((0,i.calculateMD5)(f,0,m));d=w.length;const t=new Uint8Array(d);for(h=1;h<=19;++h){for(let e=0;e<d;++e)t[e]=w[e]^h;j=new ARCFourCipher(t);y=j.encryptBlock(y)}}else{j=new ARCFourCipher(w);y=j.encryptBlock(u._defaultPasswordBytes)}return y.every((e,t)=>n[t]===e)?w:null}function _decodeUserPassword(e,t,a,n){const s=new Uint8Array(32);let r=0;const o=Math.min(32,e.length);for(;r<o;++r)s[r]=e[r];let l=0;for(;r<32;)s[r++]=u._defaultPasswordBytes[l++];let c=(0,i.calculateMD5)(s,0,r);const f=n>>3;if(a>=3)for(l=0;l<50;++l)c=(0,i.calculateMD5)(c,0,c.length);let h,d;if(a>=3){d=t;const e=new Uint8Array(f);for(l=19;l>=0;l--){for(let t=0;t<f;++t)e[t]=c[t]^l;h=new ARCFourCipher(e);d=h.encryptBlock(d)}}else{h=new ARCFourCipher(c.subarray(0,f));d=h.encryptBlock(t)}return d}function _buildObjectKey(e,t,a,n=!1){const s=a.length,r=new Uint8Array(s+9);r.set(a);let o=s;r[o++]=255&e;r[o++]=e>>8&255;r[o++]=e>>16&255;r[o++]=255&t;r[o++]=t>>8&255;if(n){r[o++]=115;r[o++]=65;r[o++]=108;r[o++]=84}return(0,i.calculateMD5)(r,0,o).subarray(0,Math.min(s+5,16))}},9230(e,t,a){a.d(t,{DataBuilder:()=>DataBuilder});a(1723);var n=a(4566);function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var s=new WeakMap,r=new WeakMap,i=new WeakMap,o=new WeakMap,l=new WeakMap,c=new WeakSet;class DataBuilder{constructor({exactLength:e=0,minLength:t=0}){!function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}(this,c);_classPrivateFieldInitSpec(this,s,void 0);_classPrivateFieldInitSpec(this,r,1024);_classPrivateFieldInitSpec(this,i,!1);_classPrivateFieldInitSpec(this,o,0);_classPrivateFieldInitSpec(this,l,void 0);_classPrivateFieldSet(i,this,!!e);_assertClassBrand(c,this,_initBuf).call(this,e||t)}get data(){return _classPrivateFieldGet(s,this).subarray(0,_classPrivateFieldGet(o,this))}get length(){return _classPrivateFieldGet(o,this)}skip(e){_classPrivateFieldSet(o,this,_classPrivateFieldGet(o,this)+e)}setArray(e){const t=_classPrivateFieldGet(o,this)+e.length;!_classPrivateFieldGet(i,this)&&t>_classPrivateFieldGet(r,this)&&_assertClassBrand(c,this,_initBuf).call(this,t);_classPrivateFieldGet(s,this).set(e,_classPrivateFieldGet(o,this));_classPrivateFieldSet(o,this,t)}setInt16(e){const t=_classPrivateFieldGet(o,this)+2;!_classPrivateFieldGet(i,this)&&t>_classPrivateFieldGet(r,this)&&_assertClassBrand(c,this,_initBuf).call(this,t);_classPrivateFieldGet(l,this).setInt16(_classPrivateFieldGet(o,this),e);_classPrivateFieldSet(o,this,t)}setSafeInt16(e){const t=_classPrivateFieldGet(o,this)+2;!_classPrivateFieldGet(i,this)&&t>_classPrivateFieldGet(r,this)&&_assertClassBrand(c,this,_initBuf).call(this,t);_classPrivateFieldGet(l,this).setInt16(_classPrivateFieldGet(o,this),(0,n.MathClamp)(e,-32768,32767));_classPrivateFieldSet(o,this,t)}setInt32(e){const t=_classPrivateFieldGet(o,this)+4;!_classPrivateFieldGet(i,this)&&t>_classPrivateFieldGet(r,this)&&_assertClassBrand(c,this,_initBuf).call(this,t);_classPrivateFieldGet(l,this).setInt32(_classPrivateFieldGet(o,this),e);_classPrivateFieldSet(o,this,t)}}function _initBuf(e){if(_classPrivateFieldGet(i,this))_classPrivateFieldSet(r,this,e);else for(;_classPrivateFieldGet(r,this)<e;)_classPrivateFieldSet(r,this,2*_classPrivateFieldGet(r,this));const t=new Uint8Array(_classPrivateFieldGet(r,this));_classPrivateFieldGet(s,this)&&t.set(_classPrivateFieldGet(s,this),0);_classPrivateFieldSet(s,this,t);_classPrivateFieldSet(l,this,new DataView(t.buffer))}},4563(e,t,a){a.d(t,{DecodeStream:()=>DecodeStream,StreamsSequenceStream:()=>StreamsSequenceStream});var n=a(1723),s=a(1834),r=a(4106);function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const i=new Uint8Array(0);class DecodeStream extends s.BaseStream{constructor(e){super();_defineProperty(this,"buffer",i);_defineProperty(this,"bufferLength",0);_defineProperty(this,"eof",!1);_defineProperty(this,"minBufferLength",512);_defineProperty(this,"pos",0);this._rawMinBufferLength=e||0;if(e)for(;this.minBufferLength<e;)this.minBufferLength*=2}readBlock(){(0,n.unreachable)("Abstract method `readBlock` called")}get isEmpty(){for(;!this.eof&&0===this.bufferLength;)this.readBlock();return 0===this.bufferLength}ensureBuffer(e){const t=this.buffer;if(e<=t.byteLength)return t;let a=this.minBufferLength;for(;a<e;)a*=2;const n=new Uint8Array(a);n.set(t);return this.buffer=n}getByte(){const e=this.pos;for(;this.bufferLength<=e;){if(this.eof)return-1;this.readBlock()}return this.buffer[this.pos++]}getBytes(e,t=null){const a=this.pos;let n;if(e){this.ensureBuffer(a+e);n=a+e;for(;!this.eof&&this.bufferLength<n;)this.readBlock(t);const s=this.bufferLength;n>s&&(n=s)}else{for(;!this.eof;)this.readBlock(t);n=this.bufferLength}this.pos=n;return this.buffer.subarray(a,n)}async getImageData(e,t){if(!this.canAsyncDecodeImageFromBuffer)return this.isAsyncDecoder?this.decodeImage(null,e,t):this.getBytes(e,t);const a=await this.stream.asyncGetBytes();return this.decodeImage(a,e,t)}async asyncGetBytesFromDecompressionStream(e){this.stream.reset();const t=this.stream.isAsync&&await this.stream.asyncGetBytes()||this.stream.getBytes();try{const{readable:a,writable:s}=new DecompressionStream(e),r=s.getWriter();r.write(t).catch(n.noopFn);r.close().catch(n.noopFn);const i=[];let o=0;const l=a.getReader();for(;;){const{value:e,done:t}=await l.read();if(t)break;i.push(e);o+=e.byteLength}if(1===i.length)return{decompressed:i[0],compressed:t};const c=new Uint8Array(o);let f=0;for(const e of i){c.set(e,f);f+=e.byteLength}return{decompressed:c,compressed:t}}catch{return{decompressed:null,compressed:t}}}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 r.Stream(this.buffer,e,t,a)}clone(){for(;!this.eof;)this.readBlock();return new r.Stream(this.buffer,0,this.bufferLength,this.dict?.clone())}getBaseStreams(){return this.stream?this.stream.getBaseStreams():null}}class StreamsSequenceStream extends DecodeStream{constructor(e,t=null){e=e.filter(e=>e instanceof s.BaseStream&&!e.isImageStream);let a=0;for(const t of e)a+=t instanceof DecodeStream?t._rawMinBufferLength:t.length;super(a);this.streams=e;this._onError=t}readBlock(){const e=this.streams;if(0===e.length){this.eof=!0;return}const t=e.shift();let a;try{a=t.getBytes()}catch(e){if(this._onError){this._onError(e,t.dict?.objId);return}throw e}const n=this.bufferLength,s=n+a.length+1,r=this.ensureBuffer(s);r.set(a,n);r[s-1]=10;this.bufferLength=s}getBaseStreams(){const e=[];for(const t of this.streams){const a=t.getBaseStreams();a&&e.push(...a)}return e.length>0?e:null}}},9397(e,t,a){a.d(t,{LETTER_SIZE_MEDIABOX:()=>be,PDFDocument:()=>PDFDocument});var n=a(1723),s=a(3738),r=a(5399),i=a(5632),o=(a(4950),a(4106)),l=a(1834),c=a(3343),f=a(6484),h=a(3447),u=a(3103);function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function decodeString(e){try{return(0,n.stringToUTF8String)(e)}catch(t){(0,n.warn)(`UTF-8 decoding failed: "${t}".`);return e}}class DatasetXMLParser extends u.SimpleXMLParser{constructor(...e){super(...e);_defineProperty(this,"node",null)}onEndElement(e){const t=super.onEndElement(e);if(t&&"xfa:datasets"===e){this.node=t;throw new Error("Aborting DatasetXMLParser.")}}}class DatasetReader{constructor(e){if(e.datasets)this.node=new u.SimpleXMLParser({hasAttributes:!0}).parseFromString(e.datasets).documentElement;else{const t=new DatasetXMLParser({hasAttributes:!0});try{t.parseFromString(e["xdp:xdp"])}catch{}this.node=t.node}}getValue(e){if(!this.node||!e)return"";const t=this.node.searchNode((0,r.parseXFAPath)(e),0);if(!t)return"";const a=t.firstChild;return"value"===a?.nodeName?t.children.map(e=>decodeString(e.textContent)):decodeString(t.textContent)}}function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}function intersector_defineProperty(e,t,a){return(t=function intersector_toPropertyKey(e){var t=function intersector_toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var d=new WeakMap,m=new WeakMap,g=new WeakMap,b=new WeakMap,w=new WeakMap,j=new WeakMap,y=new WeakMap,v=new WeakMap,k=new WeakMap,q=new WeakSet;class SingleIntersector{constructor(e){_classPrivateMethodInitSpec(this,q);_classPrivateFieldInitSpec(this,d,void 0);intersector_defineProperty(this,"minX",1/0);intersector_defineProperty(this,"minY",1/0);intersector_defineProperty(this,"maxX",-1/0);intersector_defineProperty(this,"maxY",-1/0);_classPrivateFieldInitSpec(this,m,null);_classPrivateFieldInitSpec(this,g,[]);_classPrivateFieldInitSpec(this,b,[]);_classPrivateFieldInitSpec(this,w,[]);_classPrivateFieldInitSpec(this,j,[]);_classPrivateFieldInitSpec(this,y,-1);_classPrivateFieldInitSpec(this,v,-1);_classPrivateFieldInitSpec(this,k,!1);_classPrivateFieldSet(d,this,e);const t=e.data.quadPoints;if(t){for(let e=0,a=t.length;e<a;e+=8){this.minX=Math.min(this.minX,t[e]);this.maxX=Math.max(this.maxX,t[e+2]);this.minY=Math.min(this.minY,t[e+5]);this.maxY=Math.max(this.maxY,t[e+1])}t.length>8&&_classPrivateFieldSet(m,this,t)}else[this.minX,this.minY,this.maxX,this.maxY]=e.data.rect}addGlyph(e,t,a){if(!_assertClassBrand(q,this,_intersects).call(this,e,t)){this.disableExtraChars();return!1}if(_classPrivateFieldGet(w,this).length>0){for(let e=0,t=_classPrivateFieldGet(w,this).length;e<t;e++){_classPrivateFieldGet(g,this).push(_classPrivateFieldGet(w,this)[e]);_classPrivateFieldGet(b,this).push(_classPrivateFieldGet(j,this)[e])}_classPrivateFieldGet(w,this).length=0;_classPrivateFieldGet(j,this).length=0}_classPrivateFieldGet(g,this).push(a);_classPrivateFieldGet(b,this).push(-1);_classPrivateFieldSet(k,this,!0);return!0}addExtraChar(e,t){if(_classPrivateFieldGet(k,this)){_classPrivateFieldGet(w,this).push(e);_classPrivateFieldGet(j,this).push(t);_classPrivateFieldSet(y,this,t)}}removeExtraChar(e){if(e>_classPrivateFieldGet(y,this))return;const t=_classPrivateFieldGet(j,this).lastIndexOf(e);if(t>=0){_classPrivateFieldGet(w,this).splice(t,1);_classPrivateFieldGet(j,this).splice(t,1);return}const a=_classPrivateFieldGet(b,this);for(let t=a.length-1;t>=0;t--){const n=a[t];if(n===e){_classPrivateFieldGet(g,this).splice(t,1);a.splice(t,1);return}if(n>=0&&n<e)return}}disableExtraChars(){if(_classPrivateFieldGet(k,this)){_classPrivateFieldSet(k,this,!1);_classPrivateFieldGet(w,this).length=0;_classPrivateFieldGet(j,this).length=0}}setText(){_classPrivateFieldGet(d,this).data.overlaidText=_classPrivateFieldGet(g,this).join("")}}function _intersects(e,t){if(this.minX>=e||this.maxX<=e||this.minY>=t||this.maxY<=t)return!1;const a=_classPrivateFieldGet(m,this);if(!a)return!0;if(_classPrivateFieldGet(v,this)>=0){const n=_classPrivateFieldGet(v,this);if(!(a[n]>=e||a[n+2]<=e||a[n+5]>=t||a[n+1]<=t))return!0;_classPrivateFieldSet(v,this,-1)}for(let n=0,s=a.length;n<s;n+=8)if(!(a[n]>=e||a[n+2]<=e||a[n+5]>=t||a[n+1]<=t)){_classPrivateFieldSet(v,this,n);return!0}return!1}const S=64;var _=new WeakMap,C=new WeakMap,F=new WeakMap,x=new WeakMap,T=new WeakMap,O=new WeakMap,M=new WeakMap,R=new WeakMap,D=new WeakMap,H=new WeakSet;class Intersector{constructor(e){_classPrivateMethodInitSpec(this,H);_classPrivateFieldInitSpec(this,_,[]);_classPrivateFieldInitSpec(this,C,[]);_classPrivateFieldInitSpec(this,F,0);_classPrivateFieldInitSpec(this,x,void 0);_classPrivateFieldInitSpec(this,T,void 0);_classPrivateFieldInitSpec(this,O,void 0);_classPrivateFieldInitSpec(this,M,void 0);_classPrivateFieldInitSpec(this,R,void 0);_classPrivateFieldInitSpec(this,D,void 0);let t=1/0,a=1/0,n=-1/0,s=-1/0;const r=_classPrivateFieldGet(_,this);for(const i of e){if(!i.data.quadPoints&&!i.data.rect)continue;const e=new SingleIntersector(i);r.push(e);t=Math.min(t,e.minX);a=Math.min(a,e.minY);n=Math.max(n,e.maxX);s=Math.max(s,e.maxY)}_classPrivateFieldSet(x,this,t);_classPrivateFieldSet(O,this,a);_classPrivateFieldSet(T,this,n);_classPrivateFieldSet(M,this,s);_classPrivateFieldSet(R,this,63/(n-t));_classPrivateFieldSet(D,this,63/(s-a));for(const e of r){const t=_assertClassBrand(H,this,_getGridIndex).call(this,e.minX,e.minY),a=_assertClassBrand(H,this,_getGridIndex).call(this,e.maxX,e.maxY),n=(a-t)%S,s=Math.floor((a-t)/S);for(let a=t;a<=t+s*S;a+=S)for(let t=0;t<=n;t++)(_classPrivateFieldGet(C,this)[a+t]??=[]).push(e)}}addGlyph(e,t,a,n){const s=e[4]+t/2,r=e[5]+a/2;if(s<_classPrivateFieldGet(x,this)||r<_classPrivateFieldGet(O,this)||s>_classPrivateFieldGet(T,this)||r>_classPrivateFieldGet(M,this))return;const i=_classPrivateFieldGet(C,this)[_assertClassBrand(H,this,_getGridIndex).call(this,s,r)];if(i)for(const e of i)e.addGlyph(s,r,n)}addExtraChar(e){var t,a;const n=(_classPrivateFieldSet(F,this,(t=_classPrivateFieldGet(F,this),a=t++,t)),a);for(const t of _classPrivateFieldGet(_,this))t.addExtraChar(e,n);return n}removeExtraChar(e){for(const t of _classPrivateFieldGet(_,this))t.removeExtraChar(e)}setText(){for(const e of _classPrivateFieldGet(_,this))e.setText()}}function _getGridIndex(e,t){return Math.floor((e-_classPrivateFieldGet(x,this))*_classPrivateFieldGet(R,this))+Math.floor((t-_classPrivateFieldGet(O,this))*_classPrivateFieldGet(D,this))*S}var N=a(1440),E=(a(4907),a(3047)),z=a(8857),L=a(9285),$=(a(8545),a(4563)),U=a(5389),G=a(8802),W=a(837),X=a(9230),K=a(615);function text_layer_font_defineProperty(e,t,a){return(t=function text_layer_font_toPropertyKey(e){var t=function text_layer_font_toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function text_layer_font_classPrivateFieldInitSpec(e,t,a){text_layer_font_checkPrivateRedeclaration(e,t),t.set(e,a)}function text_layer_font_checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function text_layer_font_classPrivateFieldGet(e,t){return e.get(text_layer_font_assertClassBrand(e,t))}function text_layer_font_classPrivateFieldSet(e,t,a){return e.set(text_layer_font_assertClassBrand(e,t),a),a}function text_layer_font_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const V=2048,Y=/^[\p{Mn}\p{Default_Ignorable_Code_Point}]$/u;let J,Q;function createStats(){return{advances:new Map,ligatures:new Map,spaceGaps:[]}}function addCount(e,t,a){const s=e.getOrInsertComputed(t,n.makeMap);s.set(a,(s.get(a)||0)+1)}function getMostFrequent(e){let t=NaN,a=0;for(const[n,s]of e)if(s>a){t=n;a=s}return t}function createBoxGlyph(e,t,a){const n=Math.min(e,32767),s=Math.min(80,Math.floor(n/4));if(0===s)return null;const r=[0,t,0,a,n,a,n,t,s,t+s,n-s,t+s,n-s,a-s,s,a-s],i=new Uint8Array(56),o=new DataView(i.buffer);o.setInt16(0,2);o.setInt16(4,t);o.setInt16(6,n);o.setInt16(8,a);o.setUint16(10,3);o.setUint16(12,7);i.fill(1,16,24);for(let e=0,t=0,a=0;e<8;e++){o.setInt16(24+2*e,r[2*e]-t);o.setInt16(40+2*e,r[2*e+1]-a);t=r[2*e];a=r[2*e+1]}return i}var Z=new WeakMap,ee=new WeakMap,te=new WeakMap,ae=new WeakMap,ne=new WeakMap,se=new WeakMap,re=new WeakMap,ie=new WeakSet;class TextLayerFonts{constructor(e,t,a=!1){!function text_layer_font_classPrivateMethodInitSpec(e,t){text_layer_font_checkPrivateRedeclaration(e,t),t.add(e)}(this,ie);text_layer_font_classPrivateFieldInitSpec(this,Z,text_layer_font_assertClassBrand(ie,this,_build).bind(this));text_layer_font_classPrivateFieldInitSpec(this,ee,[]);text_layer_font_classPrivateFieldInitSpec(this,te,void 0);text_layer_font_classPrivateFieldInitSpec(this,ae,void 0);text_layer_font_classPrivateFieldInitSpec(this,ne,new Map);text_layer_font_classPrivateFieldInitSpec(this,se,void 0);text_layer_font_classPrivateFieldInitSpec(this,re,new Map);text_layer_font_defineProperty(this,"desiredSize",1/0);text_layer_font_classPrivateFieldSet(se,this,e);text_layer_font_classPrivateFieldSet(ae,this,t);text_layer_font_classPrivateFieldSet(te,this,a)}get ready(){return text_layer_font_classPrivateFieldGet(se,this).isCancelled?Promise.reject(new n.AbortException("Text content stream cancelled.")):Promise.resolve()}enqueue(e){text_layer_font_classPrivateFieldGet(ee,this).push({...e})}addFont(e,t){text_layer_font_classPrivateFieldGet(ne,this).set(e,t)}addGlyph(e,t,a){if(!t)return;const n=text_layer_font_assertClassBrand(ie,this,_getStats).call(this,e),s=t.codePointAt(0);if(t.length===(s>65535?2:1)){(s<55296||s>57343)&&addCount(n.advances,s,Y.test(t)?0:a);return}const r=[];for(const e of t){const t=e.codePointAt(0);t>=55296&&t<=57343||(Y.test(e)?addCount(n.advances,t,0):r.push(e))}1===r.length?addCount(n.advances,r[0].codePointAt(0),a):r.length>1&&addCount(n.ligatures,r.join(""),a)}addSpaceGap(e,t){const a=text_layer_font_classPrivateFieldGet(ne,this).get(e);a&&Number.isFinite(t)&&text_layer_font_assertClassBrand(ie,this,_getStats).call(this,a).spaceGaps.push(t)}send(){const e=text_layer_font_classPrivateFieldGet(se,this);if(e.isCancelled)return;const t=new Map;for(const a of text_layer_font_classPrivateFieldGet(ee,this)){for(const[e,n]of Object.entries(a.styles)){const a=text_layer_font_classPrivateFieldGet(ne,this).get(e),s=t.getOrInsertComputed(a,text_layer_font_classPrivateFieldGet(Z,this));s&&(n.textLayerFont=s)}e.enqueue(a,a.items.length)}}}function _getStats(e){return text_layer_font_classPrivateFieldGet(re,this).getOrInsertComputed(e,createStats)}function _build(e){const t=text_layer_font_classPrivateFieldGet(re,this).get(e);if(!t)return null;const a=new Map;for(const[e,n]of t.advances)a.set(e,getMostFrequent(n));for(const[e,n]of t.ligatures){const t=Array.from(e,e=>e.codePointAt(0));let s=0,r=0;for(const e of t){const t=a.get(e);void 0===t?r++:s+=t}if(!r)continue;const i=Math.max(getMostFrequent(n)-s,0)/r;for(const e of t)a.getOrInsert(e,i)}if(!a.has(32)){const e=t.spaceGaps.sort((e,t)=>e-t);a.set(32,e.length>0?e[e.length>>1]:250)}const s=e.vertical?.5:function getAscentRatio({ascent:e,descent:t,bbox:a,fontMatrix:s,isType3Font:r}){const isValid=e=>e>.5&&e<.95;let i=e/(e+Math.abs(t));if(isValid(i))return i;if(a){let e=a[1],t=a[3];if(r&&s){const r=n.BBOX_INIT.slice();n.Util.axialAlignedBoundingBox(a,s,r);e=r[1];t=r[3]}i=t/(t-e);if(isValid(i))return i}return.8}(e),r=function buildTextLayerFont(e,t,a=!1){const n=[0],s=new Map,r=new Map;let i=0,o=0,l=65535,c=0;for(const[t,a]of e){if(!(a>=0&&a<=31999.51171875))return null;const e=Math.round(a*V/1e3);let f=s.get(e);if(void 0===f){f=n.push(e)-1;s.set(e,f);i+=e;o=Math.max(o,e)}r.set(t,f);const h=Math.min(t,65535);l=Math.min(l,h);c=Math.max(c,h)}const f=n.length,h=Math.round(t*V),u=h-V,d=new K.OpenTypeFileBuilder("true");function createTable(e,t){const a=new Uint8Array(t);d.addTable(e,a);return new DataView(a.buffer)}const m=createTable("head",54);m.setUint32(0,65536);m.setUint32(4,65536);m.setUint32(12,1594834165);m.setUint16(16,3);m.setUint16(18,V);m.setInt16(38,u);m.setInt16(42,h);m.setUint16(46,8);m.setInt16(48,2);const g=createTable("hhea",36);g.setUint32(0,65536);g.setInt16(4,h);g.setInt16(6,u);g.setUint16(10,o);g.setInt16(18,1);g.setUint16(34,f);const b=createTable("maxp",32);b.setUint32(0,65536);b.setUint16(4,f);b.setUint16(14,2);const w=createTable("OS/2",96);w.setUint16(0,4);w.setInt16(2,Math.round(i/(f-1)));w.setUint16(4,400);w.setUint16(6,5);w.setUint32(58,1346651722,!1);w.setUint16(62,192);w.setUint16(64,l);w.setUint16(66,c);w.setInt16(68,h);w.setInt16(70,u);w.setUint16(74,h);w.setUint16(76,-u);w.setUint16(92,32);w.setUint16(94,1);const j=createTable("hmtx",4*f);for(let e=0;e<f;e++)j.setUint16(4*e,n[e]);if(a){const e=createTable("loca",4*(f+1)),t=new X.DataBuilder({exactLength:56*f});for(let a=0;a<f;a++){const s=createBoxGlyph(n[a],u,h);s&&t.setArray(s);e.setUint32(4*(a+1),t.length)}t.length||t.skip(1);const a=Math.min(o,32767);m.setInt16(40,a);m.setInt16(50,1);g.setInt16(16,a);b.setUint16(6,8);b.setUint16(8,2);d.addTable("glyf",t.data)}else{d.addTable("loca",new Uint8Array(2*(f+1)));d.addTable("glyf",new Uint8Array(1))}d.addTable("cmap",(0,W.createCmapTable)(r,null,f));d.addTable("name",J??=(0,W.createNameTable)("PDFJSTextLayer"));d.addTable("post",Q??=(0,W.createPostTable)({italicAngle:0}));return d.toArray()}(a,s,text_layer_font_classPrivateFieldGet(te,this));return r?{name:`${text_layer_font_classPrivateFieldGet(ae,this).getDocId()}_t${text_layer_font_classPrivateFieldGet(ae,this).createFontId()}`,data:r,ascent:s}:null}function xref_classPrivateFieldInitSpec(e,t,a){(function xref_checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,a)}function xref_classPrivateFieldSet(e,t,a){return e.set(xref_assertClassBrand(e,t),a),a}function xref_classPrivateFieldGet(e,t){return e.get(xref_assertClassBrand(e,t))}function xref_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var oe=new WeakMap,le=new WeakMap,ce=new WeakMap,fe=new WeakMap,he=new WeakMap,ue=new WeakMap,de=new WeakMap,pe=new WeakMap,me=new WeakMap,ge=new WeakMap;class XRef{constructor(e,t){xref_classPrivateFieldInitSpec(this,oe,new Map);xref_classPrivateFieldInitSpec(this,le,[]);xref_classPrivateFieldInitSpec(this,ce,null);xref_classPrivateFieldInitSpec(this,fe,null);xref_classPrivateFieldInitSpec(this,he,!1);xref_classPrivateFieldInitSpec(this,ue,new i.RefSet);xref_classPrivateFieldInitSpec(this,de,null);xref_classPrivateFieldInitSpec(this,pe,new Set);xref_classPrivateFieldInitSpec(this,me,!0);xref_classPrivateFieldInitSpec(this,ge,new Set);this.stream=e;this.pdfManager=t}getNewPersistentRef(e){var t,a;null===xref_classPrivateFieldGet(ce,this)&&xref_classPrivateFieldSet(ce,this,xref_classPrivateFieldGet(le,this).length||1);const n=(xref_classPrivateFieldSet(ce,this,(t=xref_classPrivateFieldGet(ce,this),a=t++,t)),a);xref_classPrivateFieldGet(oe,this).set(n,e);return i.Ref.get(n,0)}getNewTemporaryRef(){var e,t;if(null===xref_classPrivateFieldGet(fe,this)){xref_classPrivateFieldSet(fe,this,xref_classPrivateFieldGet(le,this).length||1);if(xref_classPrivateFieldGet(ce,this)){xref_classPrivateFieldSet(de,this,new Map);for(let e=xref_classPrivateFieldGet(fe,this);e<xref_classPrivateFieldGet(ce,this);e++){xref_classPrivateFieldGet(de,this).set(e,xref_classPrivateFieldGet(oe,this).get(e));xref_classPrivateFieldGet(oe,this).delete(e)}}}return i.Ref.get((xref_classPrivateFieldSet(fe,this,(e=xref_classPrivateFieldGet(fe,this),t=e++,e)),t),0)}resetNewTemporaryRef(){xref_classPrivateFieldSet(fe,this,null);if(xref_classPrivateFieldGet(de,this))for(const[e,t]of xref_classPrivateFieldGet(de,this))xref_classPrivateFieldGet(oe,this).set(e,t);xref_classPrivateFieldSet(de,this,null)}setStartXRef(e){this.startXRefQueue=[e]}async parse(e=!1){xref_classPrivateFieldSet(he,this,e);let t,s,o;if(e){(0,n.warn)("Indexing all PDF objects");t=this.indexObjects()}else t=this.readXRef();t.assignXref(this);this.trailer=t;try{s=t.get("Encrypt")}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.warn)(`XRef.parse - Invalid "Encrypt" reference: "${e}".`)}if(s instanceof i.Dict){const e=t.get("ID"),n=e?.length?e[0]:"",{CipherTransformFactory:r}=await Promise.resolve().then(()=>a(5350));s.suppressEncryption=!0;this.encrypt=new r(s,n,this.pdfManager.password)}try{o=t.get("Root")}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.warn)(`XRef.parse - Invalid "Root" reference: "${e}".`)}if(o instanceof i.Dict)try{if(o.get("Pages")instanceof i.Dict){this.root=o;return}}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.warn)(`XRef.parse - Invalid "Pages" reference: "${e}".`)}if(!e)throw new r.XRefParseException;throw new n.InvalidPDFException("Invalid Root reference.")}processXRefTable(e){this._tableState??={entryNum:0,streamPos:e.lexer.stream.pos,parserBuf1:e.buf1,parserBuf2:e.buf2};const t=this.readXRefTable(e);if(!(0,i.isCmd)(t,"trailer"))throw new n.FormatError("Invalid XRef table: could not find trailer dictionary");let a=e.getObj();a instanceof l.BaseStream&&(a=a.dict);if(!(a instanceof i.Dict))throw new n.FormatError("Invalid XRef table: could not parse trailer dictionary");delete this._tableState;return a}readXRefTable(e){const t=e.lexer.stream,a=this._tableState;t.pos=a.streamPos;e.buf1=a.parserBuf1;e.buf2=a.parserBuf2;let s;for(;;){if(!("firstEntryNum"in a)||!("entryCount"in a)){if((0,i.isCmd)(s=e.getObj(),"trailer"))break;a.firstEntryNum=s;a.entryCount=e.getObj()}let r=a.firstEntryNum;const o=a.entryCount;if(!Number.isInteger(r)||!Number.isInteger(o))throw new n.FormatError("Invalid XRef table: wrong types in subsection header");for(let s=a.entryNum;s<o;s++){a.streamPos=t.pos;a.entryNum=s;a.parserBuf1=e.buf1;a.parserBuf2=e.buf2;const l={offset:e.getObj(),gen:e.getObj(),free:!1,uncompressed:!1},c=e.getObj();if(c instanceof i.Cmd)switch(c.cmd){case"f":l.free=!0;break;case"n":l.uncompressed=!0}if(!Number.isInteger(l.offset)||!Number.isInteger(l.gen)||!l.free&&!l.uncompressed)throw new n.FormatError(`Invalid entry in XRef subsection: ${r}, ${o}`);0===s&&l.free&&1===r&&(r=0);xref_classPrivateFieldGet(le,this)[r+s]??=l}a.entryNum=0;a.streamPos=t.pos;a.parserBuf1=e.buf1;a.parserBuf2=e.buf2;delete a.firstEntryNum;delete a.entryCount}if(xref_classPrivateFieldGet(le,this)[0]&&!xref_classPrivateFieldGet(le,this)[0].free)throw new n.FormatError("Invalid XRef table: unexpected first object");return s}processXRefStream(e){if(!("streamState"in this)){const{dict:t,pos:a}=e,n=t.get("W"),s=t.get("Index")||[0,t.get("Size")];this.streamState={entryRanges:s,byteWidths:n,entryNum:0,streamPos:a}}this.readXRefStream(e);delete this.streamState;return e.dict}readXRefStream(e){const t=this.streamState;e.pos=t.streamPos;const[a,s,r]=t.byteWidths;if(![a,s,r].every(e=>Number.isInteger(e)&&e>=0))throw new n.FormatError(`Invalid XRef entry fields length: ${t.byteWidths}`);if(a+s+r===0)return;const i=t.entryRanges;for(;i.length>0;){const[o,l]=i;if(!Number.isInteger(o)||!Number.isInteger(l))throw new n.FormatError(`Invalid XRef range fields: ${o}, ${l}`);for(let i=t.entryNum;i<l;++i){t.entryNum=i;t.streamPos=e.pos;let l=0,c=0,f=0;for(let t=0;t<a;++t){const t=e.getByte();if(-1===t)throw new n.FormatError("Invalid XRef byteWidths 'type'.");l=l<<8|t}0===a&&(l=1);for(let t=0;t<s;++t){const t=e.getByte();if(-1===t)throw new n.FormatError("Invalid XRef byteWidths 'offset'.");c=256*c+t}for(let t=0;t<r;++t){const t=e.getByte();if(-1===t)throw new n.FormatError("Invalid XRef byteWidths 'generation'.");f=f<<8|t}const h={offset:c,gen:f,free:!1,uncompressed:!1};switch(l){case 0:h.free=!0;break;case 1:h.uncompressed=!0;break;case 2:break;default:throw new n.FormatError(`Invalid XRef entry type: ${l}`)}xref_classPrivateFieldGet(le,this)[o+i]??=h}t.entryNum=0;t.streamPos=e.pos;i.splice(0,2)}}indexObjects(){function readToken(e,t){let a="",n=e[t];for(;10!==n&&13!==n&&60!==n&&!(++t>=e.length);){a+=String.fromCharCode(n);n=e[t]}return a}function skipUntil(e,t,a){const n=a.length,s=e.length;let r=0;for(;t<s;){let s=0;for(;s<n&&e[t+s]===a[s];)++s;if(s>=n)break;t++;r++}return r}const e=/\b(endobj|\d+\s+\d+\s+obj|xref|trailer\s*<<)\b/g,t=/\b(startxref|\d+\s+\d+\s+obj)\b/g,a=/^(\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]),c=new Uint8Array([47,88,82,101,102]);xref_classPrivateFieldGet(le,this).length=0;xref_classPrivateFieldGet(oe,this).clear();const f=this.stream;f.pos=0;const h=f.getBytes(),u=(0,n.bytesToString)(h),d=h.length;let m=f.start;const g=[],b=[];for(;m<d;){let i=h[m];if(9===i||10===i||13===i||32===i){++m;continue}if(37===i){do{++m;if(m>=d)break;i=h[m]}while(10!==i&&13!==i);continue}const l=readToken(h,m);let w;if(l.startsWith("xref")&&(4===l.length||/\s/.test(l[4]))){m+=skipUntil(h,m,s);g.push(m);m+=skipUntil(h,m,o)}else if(w=a.exec(l)){const t=0|w[1],a=0|w[2],s=m+l.length;let i,o=!1;if(xref_classPrivateFieldGet(le,this)[t]){if(xref_classPrivateFieldGet(le,this)[t].gen===a)try{new N.Parser({lexer:new N.Lexer(f.makeSubStream(s))}).getObj();o=!0}catch(e){e instanceof r.ParserEOFException?(0,n.warn)(`indexObjects -- checking object (${l}): "${e}".`):o=!0}}else o=!0;o&&(xref_classPrivateFieldGet(le,this)[t]={offset:m-f.start,gen:a,free:!1,uncompressed:!0});e.lastIndex=s;const g=e.exec(u);if(g){i=e.lastIndex+1-m;if("endobj"!==g[1]){(0,n.warn)(`indexObjects: Found "${g[1]}" inside of another "obj", caused by missing "endobj" -- trying to recover.`);i-=g[1].length+1}}else i=d-m;const j=h.subarray(m,m+i),y=skipUntil(j,0,c);if(y<i&&j[y+5]<64){b.push(m-f.start);xref_classPrivateFieldGet(ge,this).add(m-f.start)}m+=i}else if(l.startsWith("trailer")&&(7===l.length||/\s/.test(l[7]))){g.push(m);const e=m+l.length;let a;t.lastIndex=e;const s=t.exec(u);if(s){a=t.lastIndex+1-m;if("startxref"!==s[1]){(0,n.warn)(`indexObjects: Found "${s[1]}" after "trailer", caused by missing "startxref" -- trying to recover.`);a-=s[1].length+1}}else a=d-m;m+=a}else m+=l.length+1}for(const e of b){this.startXRefQueue.push(e);this.readXRef(!0)}const w=[];let j,y,v=!1;for(const e of g){f.pos=e;const t=new N.Parser({lexer:new N.Lexer(f),xref:this,allowStreams:!0,recoveryMode:!0}),a=t.getObj();if(!(0,i.isCmd)(a,"trailer"))continue;const n=t.getObj();if(n instanceof i.Dict){w.push(n);n.has("Encrypt")&&(v=!0)}}for(const e of[...w,"genFallback",...w]){if("genFallback"===e){if(!y)break;this._generationFallback=!0;continue}let t=!1;try{const a=e.get("Root");if(!(a instanceof i.Dict))continue;const n=a.get("Pages");if(!(n instanceof i.Dict))continue;const s=n.get("Count");Number.isInteger(s)&&(t=!0)}catch(e){y=e;continue}if(t&&(!v||e.has("Encrypt"))&&e.has("ID"))return e;j=e}if(j)return j;if(this.topDict)return this.topDict;if(!w.length)for(const e in xref_classPrivateFieldGet(le,this)){const t=xref_classPrivateFieldGet(le,this)[e];if(!t)continue;const a=i.Ref.get(parseInt(e,10),t.gen);let n;try{n=this.fetch(a)}catch{continue}n instanceof l.BaseStream&&(n=n.dict);if(n instanceof i.Dict&&n.has("Root"))return n}throw new n.InvalidPDFException("Invalid PDF structure.")}readXRef(e=!1){const t=this.stream,a=new Set;for(;this.startXRefQueue.length;){try{const e=this.startXRefQueue[0];if(a.has(e)){(0,n.warn)("readXRef - skipping XRef table since it was already parsed.");this.startXRefQueue.shift();continue}a.add(e);t.pos=e+t.start;const s=new N.Parser({lexer:new N.Lexer(t),xref:this,allowStreams:!0});let r,o=s.getObj();if((0,i.isCmd)(o,"xref")){r=this.processXRefTable(s);this.topDict||=r;o=r.get("XRefStm");if(Number.isInteger(o)&&!xref_classPrivateFieldGet(ge,this).has(o)){xref_classPrivateFieldGet(ge,this).add(o);this.startXRefQueue.push(o)}}else{if(!Number.isInteger(o))throw new n.FormatError("Invalid XRef stream header");if(!(Number.isInteger(s.getObj())&&(0,i.isCmd)(s.getObj(),"obj")&&(o=s.getObj())instanceof l.BaseStream))throw new n.FormatError("Invalid XRef stream");r=this.processXRefStream(o);this.topDict||=r;if(!r)throw new n.FormatError("Failed to read XRef stream")}xref_classPrivateFieldGet(pe,this).add(e);o=r.get("Prev");Number.isInteger(o)?this.startXRefQueue.push(o):o instanceof i.Ref&&this.startXRefQueue.push(o.num)}catch(e){if(e instanceof r.MissingDataException)throw e;delete this._tableState;delete this.streamState;xref_classPrivateFieldSet(me,this,!1);(0,n.info)("(while reading XRef): "+e)}this.startXRefQueue.shift()}if(this.topDict)return this.topDict;if(!e)throw new r.XRefParseException}countUpdatesAfter(e){if(xref_classPrivateFieldGet(he,this)||!xref_classPrivateFieldGet(me,this))return null;const t=e-this.stream.start;let a=0;for(const e of xref_classPrivateFieldGet(pe,this))e>=t&&!xref_classPrivateFieldGet(ge,this).has(e)&&a++;return a}getEntry(e){const t=xref_classPrivateFieldGet(le,this)[e];return t&&!t.free&&t.offset?t:null}fetchIfRef(e,t=!1){return e instanceof i.Ref?this.fetch(e,t):e}fetch(e,t=!1){if(!(e instanceof i.Ref))throw new Error("ref object is not a reference");const a=e.num,s=xref_classPrivateFieldGet(oe,this).get(a);if(void 0!==s){s instanceof i.Dict&&!s.objId&&(s.objId=e.toString());return s}let r=this.getEntry(a);if(null===r)return r;if(xref_classPrivateFieldGet(ue,this).has(e)){xref_classPrivateFieldGet(ue,this).remove(e);(0,n.warn)(`Ignoring circular reference: ${e}.`);return i.CIRCULAR_REF}xref_classPrivateFieldGet(ue,this).put(e);try{r=r.uncompressed?this.fetchUncompressed(e,r,t):this.fetchCompressed(e,r,t);xref_classPrivateFieldGet(ue,this).remove(e)}catch(t){xref_classPrivateFieldGet(ue,this).remove(e);throw t}r instanceof i.Dict?r.objId=e.toString():r instanceof l.BaseStream&&(r.dict.objId=e.toString());return r}fetchUncompressed(e,t,a=!1){const s=e.gen;let o=e.num;if(t.gen!==s){const l=`Inconsistent generation in XRef: ${e}`;if(this._generationFallback&&t.gen<s){(0,n.warn)(l);return this.fetchUncompressed(i.Ref.get(o,t.gen),t,a)}throw new r.XRefEntryException(l)}const c=this.stream.makeSubStream(t.offset+this.stream.start),f=new N.Parser({lexer:new N.Lexer(c),xref:this,allowStreams:!0}),h=f.getObj(),u=f.getObj(),d=f.getObj();if(h!==o||u!==s||!(d instanceof i.Cmd))throw new r.XRefEntryException(`Bad (uncompressed) XRef entry: ${e}`);if("obj"!==d.cmd){if(d.cmd.startsWith("obj")){o=parseInt(d.cmd.substring(3),10);if(!Number.isNaN(o))return o}throw new r.XRefEntryException(`Bad (uncompressed) XRef entry: ${e}`)}(t=this.encrypt&&!a?f.getObj(this.encrypt.createCipherTransform(o,s)):f.getObj())instanceof l.BaseStream||xref_classPrivateFieldGet(oe,this).set(o,t);return t}fetchCompressed(e,t,a=!1){const s=t.offset,o=this.fetch(i.Ref.get(s,0));if(!(o instanceof l.BaseStream))throw new n.FormatError("bad ObjStm stream");const c=o.dict.get("First"),f=o.dict.get("N");if(!Number.isInteger(c)||!Number.isInteger(f))throw new n.FormatError("invalid first and n parameters for ObjStm stream");let h=new N.Parser({lexer:new N.Lexer(o),xref:this,allowStreams:!0});const u=new Array(f),d=new Array(f);for(let e=0;e<f;++e){const t=h.getObj();if(!Number.isInteger(t))throw new n.FormatError(`invalid object number in the ObjStm stream: ${t}`);const a=h.getObj();if(!Number.isInteger(a))throw new n.FormatError(`invalid object offset in the ObjStm stream: ${a}`);u[e]=t;const r=this.getEntry(t);r?.offset===s&&r.gen!==e&&(r.gen=e);d[e]=a}const m=(o.start||0)+c,g=new Array(f);for(let e=0;e<f;++e){const t=e<f-1?d[e+1]-d[e]:void 0;if(t<0)throw new n.FormatError("Invalid offset in the ObjStm stream.");h=new N.Parser({lexer:new N.Lexer(o.makeSubStream(m+d[e],t,o.dict)),xref:this,allowStreams:!0});const a=h.getObj();g[e]=a;if(a instanceof l.BaseStream)continue;const r=u[e],i=xref_classPrivateFieldGet(le,this)[r];i&&i.offset===s&&i.gen===e&&xref_classPrivateFieldGet(oe,this).set(r,a)}if(void 0===(t=g[t.gen]))throw new r.XRefEntryException(`Bad (compressed) XRef entry: ${e}`);return t}async fetchIfRefAsync(e,t){return e instanceof i.Ref?this.fetchAsync(e,t):e}async fetchAsync(e,t){try{return this.fetch(e,t)}catch(a){if(!(a instanceof r.MissingDataException))throw a;await this.pdfManager.requestRange(a.begin,a.end);return this.fetchAsync(e,t)}}getCatalogObj(){return this.root}}function document_defineProperty(e,t,a){return(t=function document_toPropertyKey(e){var t=function document_toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function document_classPrivateMethodInitSpec(e,t){document_checkPrivateRedeclaration(e,t),t.add(e)}function document_classPrivateFieldInitSpec(e,t,a){document_checkPrivateRedeclaration(e,t),t.set(e,a)}function document_checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function document_classPrivateFieldSet(e,t,a){return e.set(document_assertClassBrand(e,t),a),a}function document_classPrivateFieldGet(e,t){return e.get(document_assertClassBrand(e,t))}function document_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const be=[0,0,612,792];var we=new WeakMap,je=new WeakSet;class Page{constructor({pdfManager:e,xref:t,pageIndex:a,pageDict:n,ref:s,globalIdFactory:r,fontCache:i,builtInCMapCache:o,globalColorSpaceCache:l,globalImageCache:c,systemFontCache:f,nonBlendModesSet:h,xfaFactory:u}){document_classPrivateMethodInitSpec(this,je);document_classPrivateFieldInitSpec(this,we,null);this.pdfManager=e;this.pageIndex=a;this.pageDict=n;this.xref=t;this.ref=s;this.fontCache=i;this.builtInCMapCache=o;this.globalColorSpaceCache=l;this.globalImageCache=c;this.systemFontCache=f;this.nonBlendModesSet=h;this.evaluatorOptions=e.evaluatorOptions;this.xfaFactory=u;const d={obj:0};this._localIdFactory=class extends r{static createObjId(){return`p${a}_${++d.obj}`}static getPageObjId(){return`p${s.toString()}`}}}_createPartialEvaluator(e,t=this.pageIndex,a=null){return new L.PartialEvaluator({xref:this.xref,handler:e,pageIndex:t,pageProxyId:a,idFactory:this._localIdFactory,fontCache:this.fontCache,builtInCMapCache:this.builtInCMapCache,globalColorSpaceCache:this.globalColorSpaceCache,globalImageCache:this.globalImageCache,systemFontCache:this.systemFontCache,options:this.evaluatorOptions})}get content(){return this.pageDict.getArray("Contents")}get resources(){const e=document_assertClassBrand(je,this,_getInheritableProperty).call(this,"Resources");return(0,n.shadow)(this,"resources",e instanceof i.Dict?e:i.Dict.empty)}getBoundingBox(e){if(this.xfaData)return this.xfaData.bbox;const t=(0,r.lookupNormalRect)(document_assertClassBrand(je,this,_getInheritableProperty).call(this,e,!0),null);if(t){if(t[2]-t[0]>0&&t[3]-t[1]>0)return t;(0,n.warn)(`Empty, or invalid, /${e} entry.`)}return null}get mediaBox(){return(0,n.shadow)(this,"mediaBox",this.getBoundingBox("MediaBox")||be)}get cropBox(){return(0,n.shadow)(this,"cropBox",this.getBoundingBox("CropBox")||this.mediaBox)}get userUnit(){const e=this.pageDict.get("UserUnit");return(0,n.shadow)(this,"userUnit","number"==typeof e&&e>0?e:1)}get view(){const{cropBox:e,mediaBox:t}=this;if(e!==t&&!(0,n.isArrayEqual)(e,t)){const a=n.Util.intersect(e,t);if(a&&a[2]-a[0]>0&&a[3]-a[1]>0)return(0,n.shadow)(this,"view",a);(0,n.warn)("Empty /CropBox and /MediaBox intersection.")}return(0,n.shadow)(this,"view",t)}get rotate(){let e=document_assertClassBrand(je,this,_getInheritableProperty).call(this,"Rotate")||0;e%90!=0?e=0:e>=360?e%=360:e<0&&(e=(e%360+360)%360);return(0,n.shadow)(this,"rotate",e)}async getContentStream(){const e=await this.pdfManager.ensure(this,"content");if(e instanceof l.BaseStream&&!e.isImageStream){if(e.isAsync){const t=await e.asyncGetBytes();if(t)return new o.Stream(t,0,t.length,e.dict)}return e}if(Array.isArray(e)){const t=[];for(let a=0,n=e.length;a<n;a++){const n=e[a];n instanceof l.BaseStream&&n.isAsync&&t.push(n.asyncGetBytes().then(t=>{t&&(e[a]=new o.Stream(t,0,t.length,n.dict))}))}t.length>0&&await Promise.all(t);return new $.StreamsSequenceStream(e,document_assertClassBrand(je,this,_onSubStreamError).bind(this))}return new o.NullStream}get xfaData(){return(0,n.shadow)(this,"xfaData",this.xfaFactory?{bbox:this.xfaFactory.getBoundingBox(this.pageIndex)}:null)}async saveNewAnnotations(e,t,a,n,r){if(this.xfaFactory)throw new Error("XFA: Cannot save new annotations.");const o=this._createPartialEvaluator(e),l=new i.RefSet,c=new i.RefSet;await document_assertClassBrand(je,this,_replaceIdByRef).call(this,a,l,c);const f=this.pageDict,h=this.annotations.filter(e=>!(e instanceof i.Ref&&l.has(e))),u=await s.AnnotationFactory.saveNewAnnotations(o,this.xref,t,a,n,r);for(const{ref:e}of u.annotations)e instanceof i.Ref&&!c.has(e)&&h.push(e);const d=f.clone();d.set("Annots",h);r.put(this.ref,{data:d});for(const e of l)r.put(e,{data:null})}async save(e,t,a,s){const r=this._createPartialEvaluator(e),i=await this._parsedAnnotations,o=[];for(const e of i)o.push(e.save(r,t,a,s).catch(e=>{(0,n.warn)(`save - ignoring annotation data during "${t.name}" task: "${e}".`);return null}));return Promise.all(o)}async flattenAnnotations(e,t,n){const{PageAnnotationFlattener:s}=await Promise.resolve().then(()=>a(2537));return new s({...n,page:this,getResources:e=>document_assertClassBrand(je,this,_getMergedResources).call(this,e,r.RESOURCES_KEYS_OPERATOR_LIST)}).flatten(e,t)}async loadResources(e){await(document_classPrivateFieldGet(we,this)??document_classPrivateFieldSet(we,this,this.pdfManager.ensure(this,"resources")));await E.ObjectLoader.load(this.resources,e,this.xref)}async getOperatorList({handler:e,sink:t,task:a,intent:o,cacheKey:l,pageIndex:c=this.pageIndex,pageProxyId:f=null,annotationStorage:h=null,modifiedIds:u=null}){const d=this.getContentStream(),m=this.loadResources(r.RESOURCES_KEYS_OPERATOR_LIST),g=this._createPartialEvaluator(e,c,f),b=this.xfaFactory?null:(0,r.getNewAnnotationsMap)(h),w=b?.get(this.pageIndex);let j=Promise.resolve(null),y=null;if(w){const e=this.pdfManager.ensureDoc("annotationGlobals");let t;const r=new Set;for(const{bitmapId:e,bitmap:t}of w)!e||t||r.has(e)||r.add(e);const{isOffscreenCanvasSupported:o}=this.evaluatorOptions;if(r.size>0){const e=w.slice();for(const[t,a]of h)t.startsWith(n.AnnotationEditorPrefix)&&a.bitmap&&r.has(a.bitmapId)&&e.push(a);t=s.AnnotationFactory.generateImages(e,this.xref,o)}else t=s.AnnotationFactory.generateImages(w,this.xref,o);y=new i.RefSet;j=Promise.all([e,document_assertClassBrand(je,this,_replaceIdByRef).call(this,w,y,null)]).then(([e])=>e?s.AnnotationFactory.printNewAnnotations(e,g,a,w,t):null)}const v=Promise.all([d,m]).then(async([n])=>{const s=await document_assertClassBrand(je,this,_getMergedResources).call(this,n.dict,r.RESOURCES_KEYS_OPERATOR_LIST),i=new z.OperatorList(o,t);e.send("StartRenderPage",{transparency:g.hasBlendModes(s,this.nonBlendModesSet),pageProxyId:f,cacheKey:l});await g.getOperatorList({stream:n,task:a,resources:s,operatorList:i});return i});let[k,q,S]=await Promise.all([v,this._parsedAnnotations,j]);if(S){q=q.filter(e=>!(e.ref&&y.has(e.ref)));for(let e=0,t=S.length;e<t;e++){const a=S[e];if(a.refToReplace){const n=q.findIndex(e=>e.ref&&(0,i.isRefsEqual)(e.ref,a.refToReplace));if(n>=0){q.splice(n,1,a);S.splice(e--,1);t--}}}q=q.concat(S)}if(0===q.length||o&n.RenderingIntentFlag.ANNOTATIONS_DISABLE){k.flush(!0);return}const _=!!(o&n.RenderingIntentFlag.ANNOTATIONS_FORMS),C=!!(o&n.RenderingIntentFlag.IS_EDITING),F=!!(o&n.RenderingIntentFlag.ANY),x=!!(o&n.RenderingIntentFlag.DISPLAY),T=!!(o&n.RenderingIntentFlag.PRINT),O=[];for(const e of q)(F||x&&e.mustBeViewed(h,_)&&e.mustBeViewedWhenEditing(C,u)||T&&e.mustBePrinted(h))&&O.push(e.getOperatorList(g,a,o,h).catch(e=>{(0,n.warn)(`getOperatorList - ignoring annotation data during "${a.name}" task: "${e}".`);return{opList:null,separateForm:!1,separateCanvas:!1}}));const M=await Promise.all(O);let R=!1,D=!1;for(const{opList:e,separateForm:t,separateCanvas:a}of M){k.addOpList(e);R||=t;D||=a}k.flush(!0,{form:R,canvas:D})}async extractTextContent({handler:e,task:t,includeMarkedContent:a,disableNormalization:n,includeTextLayerFonts:s=!1,debugTextLayerFonts:i=!1,sink:o,intersector:l=null}){const c=this.getContentStream(),f=this.loadResources(r.RESOURCES_KEYS_TEXT_CONTENT),h=this.pdfManager.ensureCatalog("lang"),[u,,d]=await Promise.all([c,f,h]),m=await document_assertClassBrand(je,this,_getMergedResources).call(this,u.dict,r.RESOURCES_KEYS_TEXT_CONTENT),g=this._createPartialEvaluator(e),b=s?new TextLayerFonts(o,this._localIdFactory,i):null;await g.getTextContent({stream:u,task:t,resources:m,includeMarkedContent:a,disableNormalization:n,textLayerFonts:b,sink:b??o,viewBox:this.view,lang:d,intersector:l});b?.send()}async getStructTree(){const e=await this.pdfManager.ensureCatalog("structTreeRoot");if(!e)return null;await this._parsedAnnotations;try{const t=await this.pdfManager.ensure(this,"_parseStructTree",[e]);return await this.pdfManager.ensure(t,"serializable")}catch(e){(0,n.warn)(`getStructTree: "${e}".`);return null}}_parseStructTree(e){const t=new G.StructTreePage(e,this.pageDict);t.parse(this.ref,this.resources);return t}async getAnnotationsData(e,t,a){const s=await this._parsedAnnotations;if(0===s.length)return s;const r=[],i=[];let o;const l=!!(a&n.RenderingIntentFlag.ANY),c=!!(a&n.RenderingIntentFlag.DISPLAY),f=!!(a&n.RenderingIntentFlag.PRINT),h=[];for(const a of s){const s=l||c&&a.viewable;(s||f&&a.printable)&&r.push(a.data);if(a.hasTextContent&&s){o??=this._createPartialEvaluator(e);i.push(a.extractTextContent(o,t,[-1/0,-1/0,1/0,1/0]).catch(e=>{(0,n.warn)(`getAnnotationsData - ignoring textContent during "${t.name}" task: "${e}".`)}))}else a.overlaysTextContent&&s&&h.push(a)}if(h.length>0){const a=new Intersector(h);i.push(this.extractTextContent({handler:e,task:t,includeMarkedContent:!1,disableNormalization:!1,sink:null,intersector:a}).then(()=>{a.setText()}))}await Promise.all(i);return r}get annotations(){const e=document_assertClassBrand(je,this,_getInheritableProperty).call(this,"Annots");return(0,n.shadow)(this,"annotations",Array.isArray(e)?e:[])}get _parsedAnnotations(){const e=this.pdfManager.ensure(this,"annotations").then(async e=>{if(0===e.length)return e;const[t,a]=await Promise.all([this.pdfManager.ensureDoc("annotationGlobals"),this.pdfManager.ensureDoc("fieldObjects")]);if(!t)return[];const r=a?.orphanFields,i=[];for(const a of e)i.push(s.AnnotationFactory.create(this.xref,a,t,this._localIdFactory,!1,r,null,this.ref).catch(e=>{(0,n.warn)(`_parsedAnnotations: "${e}".`);return null}));const o=[];let l,c;for(const e of await Promise.all(i))e&&(e instanceof s.WidgetAnnotation?(c||=[]).push(e):e instanceof s.PopupAnnotation?(l||=[]).push(e):o.push(e));c&&o.push(...c);l&&o.push(...l);return o});return(0,n.shadow)(this,"_parsedAnnotations",e)}get jsActions(){const e=(0,r.collectActions)(this.xref,this.pageDict,n.PageActionEventType);return(0,n.shadow)(this,"jsActions",e)}async collectAnnotationsByType(e,t,a,r,i){const{pageIndex:o}=this;if(Object.hasOwn(this,"_parsedAnnotations")){const e=await this._parsedAnnotations;for(const{data:t}of e)if(!a||a.has(t.annotationType)){t.pageIndex=o;r.push(Promise.resolve(t))}return}const l=await this.pdfManager.ensure(this,"annotations");let c;for(const f of l)r.push(s.AnnotationFactory.create(this.xref,f,i,this._localIdFactory,!1,null,a,this.ref).then(async a=>{if(!a)return null;a.data.pageIndex=o;if(a.hasTextContent&&a.viewable){c??=this._createPartialEvaluator(e);await a.extractTextContent(c,t,[-1/0,-1/0,1/0,1/0])}return a.data}).catch(e=>{(0,n.warn)(`collectAnnotationsByType: "${e}".`);return null}))}}function _getInheritableProperty(e,t=!1){const a=(0,r.getInheritableProperty)({dict:this.pageDict,key:e,getArray:t,stopWhenFound:!1});return Array.isArray(a)?1!==a.length&&a[0]instanceof i.Dict?i.Dict.merge({xref:this.xref,dictArray:a}):a[0]:a}function _onSubStreamError(e,t){if(!this.evaluatorOptions.ignoreErrors)throw e;(0,n.warn)(`getContentStream - ignoring sub-stream (${t}): "${e}".`)}async function _replaceIdByRef(e,t,a){const s=[];for(const r of e){if(!r.id)continue;const e=i.Ref.fromString(r.id);if(!e){(0,n.warn)(`A non-linked annotation cannot be modified: ${r.id}`);continue}if(r.deleted){t.put(e);if(r.popupRef){const e=i.Ref.fromString(r.popupRef);e&&t.put(e)}continue}const{popup:o}=r,l=o&&i.Ref.fromString(r.popupRef);if(l)if(o.deleted)t.put(l);else{a?.put(l);o.ref=l;s.push(document_assertClassBrand(je,this,_fetchOldAnnotation).call(this,o,l))}a?.put(e);r.ref=e;s.push(document_assertClassBrand(je,this,_fetchOldAnnotation).call(this,r,e));delete r.id}await Promise.all(s)}function _fetchOldAnnotation(e,t){return this.xref.fetchAsync(t).then(t=>{t instanceof i.Dict&&(e.oldAnnotation=t.clone())},()=>{(0,n.warn)(`Cannot fetch \`oldAnnotation\` for: ${t}.`)})}async function _getMergedResources(e,t){const a=e?.get("Resources");if(!(a instanceof i.Dict&&a.size))return this.resources;await E.ObjectLoader.load(a,t,this.xref);return i.Dict.merge({xref:this.xref,dictArray:[a,this.resources],mergeSubDicts:!0})}const ye=new Uint8Array([37,80,68,70,45]),ve=new Uint8Array([115,116,97,114,116,120,114,101,102]),ke=new Uint8Array([101,110,100,111,98,106]);function find(e,t,a=1024,n=!1){const s=t.length,r=e.peekBytes(a),i=r.length-s;if(i<=0)return!1;if(n){const a=s-1;let n=r.length-1;for(;n>=a;){let i=0;for(;i<s&&r[n-i]===t[a-i];)i++;if(i>=s){e.pos+=n-a;return!0}n--}}else{let a=0;for(;a<=i;){let n=0;for(;n<s&&r[a+n]===t[n];)n++;if(n>=s){e.pos+=a;return!0}a++}}return!1}var qe=new WeakMap,Se=new WeakMap,_e=new WeakMap,Ce=new WeakSet;class PDFDocument{constructor(e,t){document_classPrivateMethodInitSpec(this,Ce);document_classPrivateFieldInitSpec(this,qe,new Map);document_classPrivateFieldInitSpec(this,Se,null);document_classPrivateFieldInitSpec(this,_e,null);document_defineProperty(this,"xfaFactory",null);if(t.length<=0)throw new n.InvalidPDFException("The PDF file is empty, i.e. its size is zero bytes.");this.pdfManager=e;this.stream=t;this.xref=new XRef(t,e);const a={font:0};this._globalIdFactory=class{static getDocId(){return`g_${e.docId}`}static createFontId(){return"f"+ ++a.font}static createObjId(){(0,n.unreachable)("Abstract method `createObjId` called.")}static getPageObjId(){(0,n.unreachable)("Abstract method `getPageObjId` called.")}}}async parse(e){await this.xref.parse(e);this.catalog=new f.Catalog(this.pdfManager,this.xref,{enableOpenActionJavaScript:this.pdfManager.enableOpenActionJavaScript,enableCatalogAAJavaScript:this.pdfManager.enableCatalogAAJavaScript});this.xfaFactory=null}get linearization(){let e=null;try{e=N.Linearization.create(this.stream)}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.info)(e)}return(0,n.shadow)(this,"linearization",e)}get startXRef(){const e=this.stream;let t=0;if(this.linearization){e.reset();if(find(e,ke)){e.skip(6);let a=e.peekByte();for(;(0,r.isWhiteSpace)(a);){e.pos++;a=e.peekByte()}t=e.pos-e.start}}else{const a=1024,n=ve.length;let s=!1,i=e.end;for(;!s&&i>0;){i-=a-n;i<0&&(i=0);e.pos=i;s=find(e,ve,a,!0)}if(s){e.skip(9);let a;do{a=e.getByte()}while((0,r.isWhiteSpace)(a));let n="";for(;a>=32&&a<=57;){n+=String.fromCharCode(a);a=e.getByte()}t=parseInt(n,10);isNaN(t)&&(t=0)}}return(0,n.shadow)(this,"startXRef",t)}checkHeader(){const e=this.stream;e.reset();if(!find(e,ye))return;e.moveStart();e.skip(ye.length);let t,a="";for(;(t=e.getByte())>32&&a.length<7;)a+=String.fromCharCode(t);r.PDF_VERSION_REGEXP.test(a)?document_classPrivateFieldSet(_e,this,a):(0,n.warn)(`Invalid PDF header version: ${a}`)}parseStartXRef(){this.xref.setStartXRef(this.startXRef)}get numPages(){let e=0;e=this.catalog.hasActualNumPages?this.catalog.numPages:this.xfaFactory?this.xfaFactory.getNumPages():this.linearization?this.linearization.numPages:this.catalog.numPages;return(0,n.shadow)(this,"numPages",e)}get _xfaStreams(){const{acroForm:e}=this.catalog;if(!e)return null;const t=e.get("XFA"),a=new Map(["xdp:xdp","template","datasets","config","connectionSet","localeSet","stylesheet","/xdp:xdp"].map(e=>[e,null]));if(t instanceof l.BaseStream&&!t.isEmpty){a.set("xdp:xdp",t);return a}if(!Array.isArray(t)||0===t.length)return null;for(let e=0,n=t.length;e<n;e+=2){let s;s=0===e?"xdp:xdp":e===n-2?"/xdp:xdp":t[e];if(!a.has(s))continue;const r=this.xref.fetchIfRef(t[e+1]);r instanceof l.BaseStream&&!r.isEmpty&&a.set(s,r)}return a}get xfaDatasets(){const e=this._xfaStreams;if(!e)return(0,n.shadow)(this,"xfaDatasets",null);for(const t of["datasets","xdp:xdp"]){const a=e.get(t);if(a)try{const e=(0,n.stringToUTF8String)(a.getString()),s={[t]:e};return(0,n.shadow)(this,"xfaDatasets",new DatasetReader(s))}catch{(0,n.warn)("XFA - Invalid utf-8 string.");break}}return(0,n.shadow)(this,"xfaDatasets",null)}get xfaData(){const e=this._xfaStreams;if(!e)return null;const t=new Map;for(const[a,s]of e)if(s)try{t.set(a,(0,n.stringToUTF8String)(s.getString()))}catch{(0,n.warn)("XFA - Invalid utf-8 string.");return null}return t}get hasOnlyXfa(){return(0,n.shadow)(this,"hasOnlyXfa",this.catalog.needsRendering&&this.formInfo.hasXfa&&!this.formInfo.hasAcroForm)}async loadXfaFactory(){const e=this.hasOnlyXfa&&this.xfaData;if(e){const{XFAFactory:t}=await Promise.resolve().then(()=>a(7631));this.xfaFactory=new t(e)}}get isPureXfa(){return!!this.xfaFactory&&this.xfaFactory.isValid()}get htmlForXfa(){return this.xfaFactory?this.xfaFactory.getPages():null}loadXfaResources(e,t){return Promise.all([document_assertClassBrand(Ce,this,_loadXfaFonts).call(this,e,t).catch(n.noopFn),document_assertClassBrand(Ce,this,_loadXfaImages).call(this)])}serializeXfaData(e){return this.xfaFactory&&e?this.xfaFactory.serializeData(e):null}get version(){return this.catalog.version||document_classPrivateFieldGet(_e,this)}get formInfo(){const e={hasFields:!1,hasAcroForm:!1,hasXfa:!1,hasSignatures:!1},{acroForm:t}=this.catalog;if(!t)return(0,n.shadow)(this,"formInfo",e);try{const a=t.get("Fields"),n=Array.isArray(a)&&a.length>0;e.hasFields=n;const s=t.get("XFA");e.hasXfa=Array.isArray(s)&&s.length>0||s instanceof l.BaseStream&&!s.isEmpty;const r=!!(1&t.get("SigFlags")),i=r&&document_assertClassBrand(Ce,this,_hasOnlyDocumentSignatures).call(this,a);e.hasAcroForm=n&&!i;e.hasSignatures=r}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.warn)(`Cannot fetch form information: "${e}".`)}return(0,n.shadow)(this,"formInfo",e)}get documentInfo(){const{catalog:e,formInfo:t,xref:a}=this,s={PDFFormatVersion:this.version,Language:e.lang,EncryptFilterName:a.encrypt?.filterName??null,IsLinearized:!!this.linearization,IsAcroFormPresent:t.hasAcroForm,IsXFAPresent:t.hasXfa,IsCollectionPresent:!!e.collection,IsSignaturesPresent:t.hasSignatures};let o;try{o=a.trailer.get("Info")}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.info)("The document information dictionary is invalid.")}if(!(o instanceof i.Dict))return(0,n.shadow)(this,"documentInfo",s);for(const[e,t]of o){switch(e){case"Title":case"Author":case"Subject":case"Keywords":case"Creator":case"Producer":case"CreationDate":case"ModDate":if("string"==typeof t){s[e]=(0,U.stringToPDFString)(t);continue}break;case"Trapped":if(t instanceof i.Name){s[e]=t;continue}break;default:let a;switch(typeof t){case"string":a=(0,U.stringToPDFString)(t);break;case"number":case"boolean":a=t;break;default:if(t instanceof i.Name){a=t;break}(0,n.warn)(`Bad value, for custom key "${e}", in Info: ${t}.`);continue}(s.Custom??=new Map).set(e,a);continue}(0,n.warn)(`Bad value, for key "${e}", in Info: ${t}.`)}return(0,n.shadow)(this,"documentInfo",s)}get fingerprints(){const e="\0".repeat(16);function validate(t){return"string"==typeof t&&16===t.length&&t!==e}const t=this.xref.trailer.get("ID");let a,s;if(Array.isArray(t)&&validate(t[0])){a=(0,n.stringToBytes)(t[0]);t[1]!==t[0]&&validate(t[1])&&(s=(0,n.stringToBytes)(t[1]))}else a=(0,c.calculateMD5)(this.stream.getByteRange(0,1024),0,1024);return(0,n.shadow)(this,"fingerprints",[a.toHex(),s?.toHex()??null])}getPage(e){const t=document_classPrivateFieldGet(qe,this).get(e);if(t)return t;const{catalog:a,linearization:n,xfaFactory:s}=this;let r;r=s?Promise.resolve([i.Dict.empty,null]):n?.pageFirst===e?document_assertClassBrand(Ce,this,_getLinearizationPage).call(this,e):a.getPageDict(e);r=r.then(([t,a])=>document_assertClassBrand(Ce,this,_createPage).call(this,e,t,a));document_classPrivateFieldGet(qe,this).set(e,r);return r}async checkFirstPage(e=!1){if(!e)try{await this.getPage(0)}catch(e){if(e instanceof r.XRefEntryException){document_classPrivateFieldGet(qe,this).delete(0);await this.cleanup();throw new r.XRefParseException}}}async checkLastPage(e=!1){const{catalog:t,pdfManager:a}=this;t.setActualNumPages();let s;try{await Promise.all([a.ensureDoc("linearization"),a.ensureCatalog("numPages")]);if(this.xfaFactory)return;s=this.linearization?this.linearization.numPages:t.numPages;if(!Number.isInteger(s))throw new n.FormatError("Page count is not an integer.");if(s<=1)return;await this.getPage(s-1)}catch(a){document_classPrivateFieldGet(qe,this).delete(s-1);await this.cleanup();if(a instanceof r.XRefEntryException&&!e)throw new r.XRefParseException;(0,n.warn)(`checkLastPage - invalid /Pages tree /Count: ${s}.`);let i;try{i=await t.getAllPageDicts(e)}catch(a){if(a instanceof r.XRefEntryException&&!e)throw new r.XRefParseException;t.setActualNumPages(1);return}for(const[e,[t,a]]of i){const s=(0,n.createPromiseCapability)();document_classPrivateFieldGet(qe,this).set(e,s.promise);t instanceof Error?s.reject(t):s.resolve(document_assertClassBrand(Ce,this,_createPage).call(this,e,t,a))}t.setActualNumPages(i.size)}}async fontFallback(e,t){const{catalog:a,pdfManager:n}=this;for(const s of await Promise.all(a.fontCache))if(s.loadedName===e){s.fallback(t,n.evaluatorOptions);return}}async cleanup(e=!1){return this.catalog?this.catalog.cleanup(e):(0,h.clearGlobalCaches)()}get fieldObjects(){const e=this.pdfManager.ensureDoc("formInfo").then(async e=>{if(!e.hasFields)return null;const t=await this.annotationGlobals;if(!t)return null;const{acroForm:a}=t,n=new i.RefSet,s=new Map,r=new Map,o=new i.RefMap;for(const e of a.get("Fields"))await document_assertClassBrand(Ce,this,_collectFieldObjects).call(this,"",null,e,r,t,n,o);const l=[];for(const[e,t]of r)l.push(Promise.all(t).then(t=>{(t=t.filter(Boolean)).length>0&&s.set(e,t)}));await Promise.all(l);return{allFields:s.size?s:null,orphanFields:o}});return(0,n.shadow)(this,"fieldObjects",e)}get signatures(){const e=this.pdfManager.ensureDoc("formInfo").then(async e=>{if(!e.hasSignatures||!e.hasFields)return null;const t=await this.annotationGlobals;if(!t)return null;const a=t.acroForm.get("Fields"),n=[];await document_assertClassBrand(Ce,this,_collectSignatureFields).call(this,a,n,new i.RefSet);await Promise.all(n.map(async e=>{const t=e.byteRange[2]+e.byteRange[3];e.modificationsAfterSignature=this.xref.countUpdatesAfter(t);e.coversWholeDocument=await document_assertClassBrand(Ce,this,_coversWholeDocument).call(this,t,e.modificationsAfterSignature)}));n.sort((e,t)=>t.byteRange[2]+t.byteRange[3]-(e.byteRange[2]+e.byteRange[3]));for(let e=0,t=n.length;e<t;e++){const t=n[e];t.revisionIndex=e;for(let a=e-1;a>=0;a--){const e=n[a];if(e.byteRange[2]+e.byteRange[3]>t.byteRange[2]+t.byteRange[3]){t.parentId=e.id;break}}}const s=new Map,r=n.map(e=>{const{pkcs7:t,...a}=e;s.set(e.id,{byteRange:e.byteRange,pkcs7:t});return a});document_classPrivateFieldSet(Se,this,s);return r.length?r:null});return(0,n.shadow)(this,"signatures",e)}async getSignatureData(e){await this.signatures;const t=document_classPrivateFieldGet(Se,this)?.get(e);if(!t)return null;const{byteRange:a,pkcs7:n}=t,[s,r,i,o]=a;return{data:await Promise.all([document_assertClassBrand(Ce,this,_getByteRange).call(this,s,s+r),document_assertClassBrand(Ce,this,_getByteRange).call(this,i,i+o)]),pkcs7:n}}get hasJSActions(){const e=Promise.all([this.pdfManager.ensureCatalog("jsActions"),this.pdfManager.ensureDoc("fieldObjects")]).then(([e,t])=>!!e||!!t?.allFields&&t.allFields.values().some(e=>e.some(e=>null!==e.actions)));return(0,n.shadow)(this,"hasJSActions",e)}get calculationOrderIds(){const e=this.catalog.acroForm?.get("CO");let t=null;if(Array.isArray(e))for(const a of e)a instanceof i.Ref&&(t??=[]).push(a.toString());return(0,n.shadow)(this,"calculationOrderIds",t)}get annotationGlobals(){return(0,n.shadow)(this,"annotationGlobals",s.AnnotationFactory.createGlobals(this.pdfManager))}async toJSObject(e,t=!0){throw new Error("Not implemented: toJSObject")}}function _createPage(e,t,a){const{catalog:n,pdfManager:s,xfaFactory:r,xref:i}=this;return new Page({pdfManager:s,xref:i,pageIndex:e,pageDict:t,ref:a,globalIdFactory:this._globalIdFactory,fontCache:n.fontCache,builtInCMapCache:n.builtInCMapCache,globalColorSpaceCache:n.globalColorSpaceCache,globalImageCache:n.globalImageCache,systemFontCache:n.systemFontCache,nonBlendModesSet:n.nonBlendModesSet,xfaFactory:r})}function _hasOnlyDocumentSignatures(e,t=0){return!!Array.isArray(e)&&e.every(e=>{if(!((e=this.xref.fetchIfRef(e))instanceof i.Dict))return!1;if(e.has("Kids")){if(++t>10){(0,n.warn)("#hasOnlyDocumentSignatures: maximum recursion depth reached");return!1}return document_assertClassBrand(Ce,this,_hasOnlyDocumentSignatures).call(this,e.get("Kids"),t)}const a=(0,i.isName)((0,r.getInheritableProperty)({dict:e,key:"FT"}),"Sig"),s=e.get("Rect"),o=Array.isArray(s)&&s.every(e=>0===e);return a&&o})}async function _loadXfaImages(){const e=await this.pdfManager.ensureCatalog("xfaImages");e&&this.xfaFactory.setImages(e)}async function _loadXfaFonts(e,t){const s=await this.pdfManager.ensureCatalog("acroForm");if(!s)return;let o=await s.getAsync("DR");o instanceof i.Dict?await E.ObjectLoader.load(o,["Font"],this.xref):o=i.Dict.empty;let l=o.get("Font");l instanceof i.Dict||(l=i.Dict.empty);const c=Object.assign(Object.create(null),this.pdfManager.evaluatorOptions,{useSystemFonts:!1}),{builtInCMapCache:f,fontCache:h}=this.catalog,u=new L.PartialEvaluator({xref:this.xref,handler:e,pageIndex:-1,idFactory:this._globalIdFactory,fontCache:h,builtInCMapCache:f,options:c}),d=new z.OperatorList,m=[],g={get font(){return m.at(-1)},set font(e){m.push(e)},clone(){return this}},parseFont=(e,a,s)=>u.handleSetFont(o,[i.Name.get(e),1],null,d,t,g,a,s).catch(e=>{(0,n.warn)(`loadXfaFonts: "${e}".`);return null}),b=[];for(const[e,t]of l){const a=t.get("FontDescriptor");if(!(a instanceof i.Dict))continue;const n={fontFamily:(0,r.normalizeCSSFontFamily)(a.get("FontFamily")),fontWeight:a.get("FontWeight"),italicAngle:-a.get("ItalicAngle")};(0,r.validateCSSFont)(n)&&b.push(parseFont(e,null,n))}await Promise.all(b);const w=this.xfaFactory.setFonts(m);if(!w)return;const{getXfaFontDict:j,getXfaFontName:y}=await Promise.resolve().then(()=>a(7631));c.ignoreErrors=!0;b.length=0;m.length=0;const v=new Set;for(const e of w)y(`${e}-Regular`)||v.add(e);v.size&&w.push("PdfJS-Fallback");for(const e of w)if(!v.has(e))for(const t 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 a=`${e}-${t.name}`;b.push(parseFont(a,j(a),{fontFamily:e,fontWeight:t.fontWeight,italicAngle:t.italicAngle}))}await Promise.all(b);this.xfaFactory.appendFonts(m,v)}async function _getLinearizationPage(e){const{catalog:t,linearization:a,xref:s}=this,r=i.Ref.get(a.objectNumberFirst,0);try{const e=await s.fetchAsync(r);if(e instanceof i.Dict){let a=e.getRaw("Type");a instanceof i.Ref&&(a=await s.fetchAsync(a));if((0,i.isName)(a,"Page")||!e.has("Type")&&!e.has("Kids")&&e.has("Contents")){t.pageKidsCountCache.has(r)||t.pageKidsCountCache.put(r,1);t.pageIndexCache.has(r)||t.pageIndexCache.put(r,0);return[e,r]}}throw new n.FormatError("The Linearization dictionary doesn't point to a valid Page dictionary.")}catch(a){(0,n.warn)(`_getLinearizationPage: "${a.message}".`);return t.getPageDict(e)}}async function _collectFieldObjects(e,t,a,r,o,l,c){const{xref:f}=this;if(!(a instanceof i.Ref)||l.has(a))return;l.put(a);const h=await f.fetchAsync(a);if(!(h instanceof i.Dict))return;let u=await h.getAsync("Subtype");u=u instanceof i.Name?u.name:null;if("Link"===u)return;if(h.has("T")){const t=(0,U.stringToPDFString)(await h.getAsync("T"));e=""===e?t:`${e}.${t}`}else{let a=h;const n=new i.RefSet;for(;;){a=a.getRaw("Parent")||t;if(a instanceof i.Ref){if(l.has(a)||n.has(a))break;n.put(a);a=await f.fetchAsync(a)}if(!(a instanceof i.Dict))break;if(a.has("T")){const t=(0,U.stringToPDFString)(await a.getAsync("T"));e=""===e?t:`${e}.${t}`;break}}}t&&!h.has("Parent")&&(0,i.isName)(h.get("Subtype"),"Widget")&&c.put(a,t);r.getOrInsertComputed(e,n.makeArr).push(s.AnnotationFactory.create(f,a,o,null,!0,c,null,null).then(e=>e?.getFieldObject()).catch(e=>{(0,n.warn)(`#collectFieldObjects: "${e}".`);return null}));if(!h.has("Kids"))return;const d=await h.getAsync("Kids");if(Array.isArray(d))for(const t of d)await document_assertClassBrand(Ce,this,_collectFieldObjects).call(this,e,a,t,r,o,l,c)}async function _collectSignatureFields(e,t,a){if(Array.isArray(e))for(const n of e){if(n instanceof i.Ref){if(a.has(n))continue;a.put(n)}const e=await this.xref.fetchIfRefAsync(n);if(e instanceof i.Dict){if((0,i.isName)(await e.getAsync("FT"),"Sig")){const a=await e.getAsync("V");if(a instanceof i.Dict){const s=await document_assertClassBrand(Ce,this,_parseSignatureDict).call(this,e,a,n);s&&t.push(s)}}e.has("Kids")&&await document_assertClassBrand(Ce,this,_collectSignatureFields).call(this,await e.getAsync("Kids"),t,a)}}}async function _getByteRange(e,t){try{return this.stream.getByteRange(e,t)}catch(a){if(!(a instanceof r.MissingDataException))throw a;await this.pdfManager.requestRange(e,t);return document_assertClassBrand(Ce,this,_getByteRange).call(this,e,t)}}async function _coversWholeDocument(e,t){if(t>0)return!1;const a=this.stream.end;for(let t=e;t<a;t+=65536){const e=Math.min(t+65536,a),n=await document_assertClassBrand(Ce,this,_getByteRange).call(this,t,e);for(const e of n)if(0!==e&&9!==e&&10!==e&&12!==e&&13!==e&&32!==e)return!1}return!0}async function _parseSignatureDict(e,t,a){const s=await t.getAsync("ByteRange");if(!Array.isArray(s)||4!==s.length||s.some(e=>!Number.isInteger(e)||e<0))return null;const[r,o,l,c]=s,f=this.stream.end||0;if(0!==r||o<=0||r+o>l||l+c>f||0===f)return null;const h=await t.getAsync("Contents");if("string"!=typeof h||0===h.length)return null;const[u,d,m,g,b,w,j,y]=await Promise.all([t.getAsync("Filter"),t.getAsync("SubFilter"),e.getAsync("T"),t.getAsync("Name"),t.getAsync("Reason"),t.getAsync("Location"),t.getAsync("ContactInfo"),t.getAsync("M")]),v=u instanceof i.Name?u.name:null,k=d instanceof i.Name?d.name:null;let q=null;"adbe.pkcs7.detached"===k?q=0:"adbe.pkcs7.sha1"===k&&(q=1);return{id:`${a instanceof i.Ref?a.toString():"inline"}:${r}-${o}-${l}-${c}`,fieldName:"string"==typeof m?(0,U.stringToPDFString)(m):"",signerName:"string"==typeof g?(0,U.stringToPDFString)(g):null,reason:"string"==typeof b?(0,U.stringToPDFString)(b):null,location:"string"==typeof w?(0,U.stringToPDFString)(w):null,contactInfo:"string"==typeof j?(0,U.stringToPDFString)(j):null,signingTime:"string"==typeof y?y:null,filter:v,subFilter:k,signatureType:q,byteRange:s,pkcs7:(0,n.stringToBytes)(h),revisionIndex:0,parentId:null}}},3008(e,t,a){a.d(t,{PDFEditor:()=>PDFEditor});var n=a(5399),s=a(5632),r=a(6721),i=a(1723),o=a(1740),l=a(5389),c=a(3738),f=a(1834),h=a(3571),u=a(9397),d=a(7651),m=a(4106);function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const g=["GTS_PDFXVersion","GTS_PDFXConformance","ISO_PDFEVersion"];class PageData{constructor(e,t){this.page=e;this.documentData=t;this.annotations=null;this.pointingNamedDestinations=null;this.copyLevel=0;t.pagesMap.put(e.ref,this)}}class DocumentData{constructor(e){this.document=e;this.destinations=null;this.pageLabels=null;this.pagesMap=new s.RefMap;this.oldRefMapping=new s.RefMap;this.dedupNamedDestinations=new Map;this.usedNamedDestinations=new Set;this.postponedRefCopies=new s.RefMap;this.resourceStreamPromises=new Map;this.usedStructParents=new Set;this.oldStructParentMapping=new Map;this.structTreeRoot=null;this.parentTree=null;this.idTree=null;this.roleMap=null;this.classMap=null;this.namespaces=null;this.structTreeAF=null;this.structTreePronunciationLexicon=[];this.acroForm=null;this.acroFormDefaultAppearance="";this.acroFormDefaultResources=null;this.acroFormQ=0;this.hasSignatureAnnotations=!1;this.fieldToParent=new s.RefMap;this.outline=null;this.embeddedFiles=null}}class XRefWrapper{constructor(e,t){this.entries=e;this._getNewRef=t}getNewTemporaryRef(){return this._getNewRef()}countUpdatesAfter(e){return null}fetchIfRef(e){return e instanceof s.Ref?this.fetch(e):e}fetch(e){if(!(e instanceof s.Ref))throw new Error("ref object is not a reference");return this.entries[e.num]}async fetchIfRefAsync(e){return e instanceof s.Ref?this.fetchAsync(e):e}async fetchAsync(e){return this.fetch(e)}}var b=new WeakMap,w=new WeakMap,j=new WeakMap,y=new WeakMap,v=new WeakSet;class PDFEditor{constructor({useObjectStreams:e=!0,title:t="",author:a=""}={}){!function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}(this,v);_defineProperty(this,"isSingleFile",!1);_classPrivateFieldInitSpec(this,b,null);_classPrivateFieldInitSpec(this,w,null);_classPrivateFieldInitSpec(this,j,[]);_classPrivateFieldInitSpec(this,y,new Map);_defineProperty(this,"currentDocument",null);_defineProperty(this,"oldPages",[]);_defineProperty(this,"newPages",[]);_defineProperty(this,"xref",[null]);_defineProperty(this,"xrefWrapper",new XRefWrapper(this.xref,()=>this.newRef));_defineProperty(this,"newRefCount",1);_defineProperty(this,"namesDict",null);_defineProperty(this,"version","1.7");_defineProperty(this,"pageLabels",null);_defineProperty(this,"namedDestinations",new Map);_defineProperty(this,"parentTree",new Map);_defineProperty(this,"structTreeKids",[]);_defineProperty(this,"idTree",new Map);_defineProperty(this,"classMap",new s.Dict);_defineProperty(this,"roleMap",new s.Dict);_defineProperty(this,"namespaces",new Map);_defineProperty(this,"structTreeAF",[]);_defineProperty(this,"structTreePronunciationLexicon",[]);_defineProperty(this,"fields",[]);_defineProperty(this,"acroFormDefaultAppearance","");_defineProperty(this,"acroFormDefaultResources",null);_defineProperty(this,"acroFormNeedAppearances",!1);_defineProperty(this,"acroFormSigFlags",0);_defineProperty(this,"acroFormCalculationOrder",null);_defineProperty(this,"acroFormQ",0);_defineProperty(this,"outlineItems",null);_defineProperty(this,"embeddedFiles",new Map);[this.rootRef,this.rootDict]=this.newDict;[this.infoRef,this.infoDict]=this.newDict;[this.pagesRef,this.pagesDict]=this.newDict;this.useObjectStreams=e;this.objStreamRefs=e?new Set:null;this.title=t;this.author=a}get newRef(){return s.Ref.get(this.newRefCount++,0)}get newDict(){const e=this.newRef;return[e,this.xref[e.num]=new s.Dict]}cloneDict(e){const t=e.clone();t.xref=this.xrefWrapper;return t}async extractPages(e,t,a,s,r){_classPrivateFieldSet(w,this,a);e=_assertClassBrand(v,this,_resolveInsertAfterIndices).call(this,e);const i=[];let o=0;const reservePageSlot=e=>{if(!Number.isInteger(e)||e<0)throw new Error("extractPages: invalid page index.");if(void 0!==this.oldPages[e])throw new Error("extractPages: overlapping pageIndices.");this.oldPages[e]=null},l=[];t&&_classPrivateFieldSet(b,this,{handler:s,task:r,newAnnotationsByPage:(0,n.getNewAnnotationsMap)(t),imagesPromises:c.AnnotationFactory.generateImages(t.values(),this.xrefWrapper,!0)});const f=[];for(const t of e){const{document:e,image:n,includePages:s,excludePages:r,pageIndices:c}=t;if(n){if(c){o=-1;if(c.length>1)throw new Error("extractPages: too many pageIndices.")}let e;if(c?.length)e=c[0];else if(-1!==o)e=o++;else for(e=0;void 0!==this.oldPages[e];e++);reservePageSlot(e);f.push({image:n,slot:e});continue}if(!e)continue;c&&(o=-1);const h=_assertClassBrand(v,this,_getFilteredPageIndices).call(this,{document:e,includePages:s,excludePages:r});if(c&&c.length>h.length)throw new Error("extractPages: too many pageIndices.");const u=new DocumentData(e);l.push(u);e===a&&_classPrivateFieldGet(j,this).push(u.oldRefMapping);i.push(_assertClassBrand(v,this,_collectDocumentData).call(this,u));let d=0;for(const t of h){let a;c&&(a=c[d++]);if(void 0===a)if(-1!==o)a=o++;else for(a=0;void 0!==this.oldPages[a];a++);reservePageSlot(a);i.push(e.getPage(t).then(e=>{this.oldPages[a]=new PageData(e,u)}))}}await Promise.all(i);if(0===this.oldPages.length)throw new Error("extractPages: nothing to extract.");const h=new Map,u=new Set;for(let e=0,t=this.oldPages.length;e<t;e++){const t=this.oldPages[e];if(void 0===t)throw new Error("extractPages: sparse pageIndices.");if(t){const{page:e}=t,a=h.get(e)??0;h.set(e,a+1);t.copyLevel=a;u.add(t.documentData.document)}}this.isSingleFile=1===u.size;i.length=0;_assertClassBrand(v,this,_collectValidDestinations).call(this,l);_assertClassBrand(v,this,_collectOutlineDestinations).call(this,l);_assertClassBrand(v,this,_collectPageLabels).call(this);for(const e of this.oldPages)e&&i.push(_assertClassBrand(v,this,_postCollectPageData).call(this,e));await Promise.all(i);_assertClassBrand(v,this,_findDuplicateNamedDestinations).call(this);_assertClassBrand(v,this,_setPostponedRefCopies).call(this,l);const d=new Map;for(const e of f)d.set(e.slot,e);const m=d.size>0?_assertClassBrand(v,this,_modalPageSize).call(this):null;for(let e=0,t=this.oldPages.length;e<t;e++){const t=d.get(e);this.newPages[e]=t?await _assertClassBrand(v,this,_makeImagePage).call(this,t.image,m):await _assertClassBrand(v,this,_makePageCopy).call(this,e,null)}_assertClassBrand(v,this,_fixPostponedRefCopies).call(this,l);await _assertClassBrand(v,this,_mergeStructTrees).call(this,l);await _assertClassBrand(v,this,_mergeAcroForms).call(this,l);_assertClassBrand(v,this,_buildOutline).call(this,l);await _assertClassBrand(v,this,_collectEmbeddedFiles).call(this,l);return this.writePDF()}get password(){return _assertClassBrand(v,this,_getSingleDocumentData).call(this)?.document.pdfManager.password??null}getCopiedAnnotationStorage(e){const t=new Map;for(const[a,n]of e??[]){const e=s.Ref.fromString(a);if(e)for(const a of _classPrivateFieldGet(j,this)){const s=a.get(e);s&&t.set(s.toString(),n)}}return t.size>0?t:null}async writePDF(){await _assertClassBrand(v,this,_makeRoot).call(this);const e=_assertClassBrand(v,this,_makeInfo).call(this),[t,a,n]=await _assertClassBrand(v,this,_makeEncrypt).call(this),[s,o]=await _assertClassBrand(v,this,_createChanges).call(this,a,t),l=(0,i.stringToBytes)(`%PDF-${this.version}\n%úÞúÎ`);return(0,r.incrementalUpdate)({originalData:l,changes:s,xrefInfo:{startXRef:null,rootRef:this.rootRef,infoRef:this.infoRef,encryptRef:t,newRef:o,fileIds:n||[null,null],infoMap:e},useXrefStream:this.useObjectStreams,xref:{encrypt:a,encryptRef:t}})}}async function _cloneObject(e,t){const a=this.newRef;this.xref[a.num]=await _assertClassBrand(v,this,_collectDependencies).call(this,e,!0,t);return a}async function _collectDependencies(e,t,a,n=new s.RefSet){if(e instanceof s.Ref){const{currentDocument:{fieldToParent:t,oldRefMapping:r}}=this,i=r.get(e);if(i)return i;const o=e;e=await a.fetchAsync(o);const l=r.get(o);if(l)return l;if("number"==typeof e)return e;if(e instanceof f.BaseStream&&_assertClassBrand(v,this,_isResourceStream).call(this,e.dict))return _assertClassBrand(v,this,_collectResourceStream).call(this,o,e,a,n);const c=this.newRef;r.put(o,c);let h=!0;if(t.has(o)&&e instanceof s.Dict){(e=this.cloneDict(e)).delete("Parent");h=!1}this.xref[c.num]=await _assertClassBrand(v,this,_collectDependencies).call(this,e,h,a,n);return c}const r=[],{currentDocument:{postponedRefCopies:i}}=this;if(Array.isArray(e)){t&&(e=e.slice());for(let t=0,o=e.length;t<o;t++){const o=e[t]instanceof s.Ref&&i.get(e[t]);o?o.push(a=>e[t]=a):r.push(_assertClassBrand(v,this,_collectDependencies).call(this,e[t],!0,a,n).then(a=>e[t]=a))}await Promise.all(r);return e}let o;if(e instanceof f.BaseStream){({dict:o}=e=e.getOriginalStream().clone());o.xref=this.xrefWrapper}else if(e instanceof s.Dict){t&&((e=e.clone()).xref=this.xrefWrapper);o=e}if(o){for(const[e,t]of o.getRawEntries()){const l=t instanceof s.Ref&&i.get(t);l?l.push(t=>o.set(e,t)):r.push(_assertClassBrand(v,this,_collectDependencies).call(this,t,!0,a,n).then(t=>o.set(e,t)))}await Promise.all(r)}return e}function _isResourceStream(e){const t=e.get("Subtype");return(0,s.isName)(t,"Image")||e.has("Length1")||(0,s.isName)(t,"Type1C")||(0,s.isName)(t,"CIDFontType0C")||(0,s.isName)(t,"OpenType")}function _rawStreamBytes(e){const t=e.getOriginalStream();t.reset();return t.getBytes()}async function _serializeDict(e){const t=[];await(0,r.writeValue)(e,t,null);return t.join("")}function _resourceStreamKey(e,t){const a=256,{length:n}=t,s=new d.MurmurHash3_64;s.update(e);s.update(`#${n}`);if(n<=1024)s.update(t);else{const e=Math.floor((n-a)/3);for(let r=0;r<4;r++){const i=Math.min(r*e,n-a);s.update(t.subarray(i,i+a))}}return s.hexdigest()}async function _collectResourceStream(e,t,a,n){const{currentDocument:{oldRefMapping:r,resourceStreamPromises:i}}=this;if(n.has(e))return r.getOrPutComputed(e,()=>this.newRef);const o=e.toString(),l=i.get(o);if(l)return l;const c=new s.RefSet(n);c.put(e);const f=Promise.resolve().then(async()=>{const n=await _assertClassBrand(v,this,_collectDependencies).call(this,t,!0,a,c),s=r.get(e);if(s){this.xref[s.num]=n;return s}const i=await _assertClassBrand(v,this,_dedupResourceStream).call(this,n);r.put(e,i);return i});i.set(o,f);try{return await f}finally{i.get(o)===f&&i.delete(o)}}async function _dedupResourceStream(e){const t=await _assertClassBrand(v,this,_serializeDict).call(this,e.dict),a=_assertClassBrand(v,this,_rawStreamBytes).call(this,e),n=_assertClassBrand(v,this,_resourceStreamKey).call(this,t,a),s=_classPrivateFieldGet(y,this).getOrInsertComputed(n,i.makeArr);for(const e of s)if(e.dictStr===t&&(0,i.isArrayEqual)(_assertClassBrand(v,this,_rawStreamBytes).call(this,e.stream),a))return e.ref;const r=this.newRef;this.xref[r.num]=e;s.push({ref:r,dictStr:t,stream:e});return r}async function _resolveStructKids(e,t){if(e instanceof s.Ref){const a=await t.fetchAsync(e);return Array.isArray(a)?a:[e]}return Array.isArray(e)?e:[e]}async function _cloneStructTreeNode(e,t,a,n,r,i,o,c=new s.RefSet){const{currentDocument:{pagesMap:f,oldRefMapping:h}}=this,u=t.getRaw("Pg");if(u instanceof s.Ref&&!f.has(u))return null;const d=t.getRaw("K");if(d instanceof s.Ref&&c.has(d))return null;const m=await _assertClassBrand(v,this,_resolveStructKids).call(this,d,a),g=[],b=[];for(let t of m){const l=t instanceof s.Ref?t:null;if(l){if(c.has(l))continue;c.put(l);t=await a.fetchAsync(l)}if("number"==typeof t){g.push(t);continue}if(!(t instanceof s.Dict))continue;const u=t.getRaw("Pg");if(u instanceof s.Ref&&!f.has(u))continue;const d=t.get("Type");if(!d||(0,s.isName)(d,"StructElem")){let e=!1;if(l&&n.has(l)){if(!(0,s.isName)(t.get("S"),"Link"))continue;e=!0}const f=await _assertClassBrand(v,this,_cloneStructTreeNode).call(this,l,t,a,n,r,i,o,c);if(f){b.push(g.length);g.push(f);l&&h.put(l,f);e&&this.xref[f.num].setIfName("S","Span")}continue}if((0,s.isName)(d,"OBJR")){if(!l)continue;const n=t.getRaw("Obj");if(n instanceof s.Ref&&!h.get(n))continue;const r=h.get(l)||await _assertClassBrand(v,this,_collectDependencies).call(this,l,!0,a),i=this.xref[r.num].getRaw("Obj");if(i instanceof s.Ref){const t=this.xref[i.num];if(t instanceof s.Dict&&!t.has("StructParent")&&e){const a=this.parentTree.size;this.parentTree.set(a,[h,e]);t.set("StructParent",a)}}g.push(r);continue}if((0,s.isName)(d,"MCR")){const e=await _assertClassBrand(v,this,_collectDependencies).call(this,l||t,!0,a);g.push(e);continue}if(l){const e=await _assertClassBrand(v,this,_collectDependencies).call(this,l,!0,a);g.push(e)}}if(0!==m.length&&0===g.length)return null;const w=this.newRef,j=this.xref[w.num]=this.cloneDict(t);j.delete("ID");j.delete("C");j.delete("K");j.delete("P");j.delete("S");await _assertClassBrand(v,this,_collectDependencies).call(this,j,!1,a);const y=t.get("C");if(y instanceof s.Name){const e=i.get(y.name);j.set("C",e?s.Name.get(e):y)}else if(Array.isArray(y)){const e=[];for(const t of y)if(t instanceof s.Name){const a=i.get(t.name);e.push(a?s.Name.get(a):t)}j.set("C",e)}const k=t.get("S");if(k instanceof s.Name){const e=o.get(k.name);j.set("S",e?s.Name.get(e):k)}const q=t.get("ID");if("string"==typeof q){const e=(0,l.stringToPDFString)(q,!1),t=r.get(e);j.set("ID",t?(0,l.stringToAsciiOrUTF16BE)(t):q)}let S=j.get("A");if(S){Array.isArray(S)||(S=[S]);for(let e of S){e=this.xrefWrapper.fetchIfRef(e);if(e instanceof s.Dict&&((0,s.isName)(e.get("O"),"Table")&&e.has("Headers"))){const t=this.xrefWrapper.fetchIfRef(e.getRaw("Headers"));if(Array.isArray(t))for(let e=0,a=t.length;e<a;e++){const a=this.xrefWrapper.fetchIfRef(t[e]);if("string"!=typeof a)continue;const n=r.get((0,l.stringToPDFString)(a,!1));n&&(t[e]=n)}}}}for(const e of b){const t=g[e];this.xref[t.num].set("P",w)}1===g.length?j.set("K",g[0]):g.length>1&&j.set("K",g);return w}function _getFilteredPageIndices({document:e,includePages:t,excludePages:a}){if(!e)return[];const compile=e=>{if(!e?.length)return null;const t=new Set,a=[];for(const n of e)Array.isArray(n)?a.push(n):t.add(n);return{indices:t,ranges:a}},matches=(e,{indices:t,ranges:a})=>t.has(e)||a.some(([t,a])=>e>=t&&e<=a),n=compile(t),s=compile(a),r=[];for(let t=0,a=e.numPages;t<a;t++)s&&matches(t,s)||n&&!matches(t,n)||r.push(t);return r}function _resolveInsertAfterIndices(e){const t=new Array(e.length),a=[],n=[];for(let s=0;s<e.length;s++){const r=e[s];let i;if(r.image)i=t[s]=1;else{if(!r.document){t[s]=0;continue}i=t[s]=_assertClassBrand(v,this,_getFilteredPageIndices).call(this,r).length}if(!r.pageIndices)if(void 0===r.insertAfter)for(let e=0;e<i;e++)a.push(s);else n.push({i:s,insertAfter:r.insertAfter,count:i})}if(0===n.length)return e;const hasContent=e=>!(!e.document&&!e.image);for(let a=0;a<e.length;a++){const n=e[a];if(hasContent(n)&&n.pageIndices&&n.pageIndices.length<t[a])throw new Error("extractPages: partial pageIndices cannot be combined with insertAfter entries.")}n.sort((e,t)=>e.insertAfter-t.insertAfter||e.i-t.i);if(0===a.length&&e.some(e=>hasContent(e)&&e.pageIndices)){const t=e.slice();let a=-1;for(const t of e)if(hasContent(t)&&t.pageIndices)for(const e of t.pageIndices)e>a&&(a=e);let s=0;for(const{i:e,insertAfter:r,count:i}of n){const n=Math.min(Math.max(r,-1)+s,a);for(let e=0;e<t.length;e++){const a=t[e];hasContent(a)&&a.pageIndices&&!a.pageIndices.every(e=>e<=n)&&(t[e]={...a,pageIndices:a.pageIndices.map(e=>e>n?e+i:e)})}const o=[];for(let e=0;e<i;e++)o.push(n+1+e);const l={...t[e],pageIndices:o};delete l.insertAfter;t[e]=l;s+=i;a+=i}return t}let s=0;for(const{i:e,insertAfter:t,count:r}of n){const n=Math.max(t,-1)+1+s;a.splice(n,0,...new Array(r).fill(e));s+=r}const r=new Array(e.length);for(let e=0;e<a.length;e++){const t=a[e];(r[t]||=[]).push(e)}return e.map((e,t)=>{if(!hasContent(e)||e.pageIndices)return e;const a={...e,pageIndices:r[t]||[]};delete a.insertAfter;return a})}async function _collectDocumentData(e){const{document:{pdfManager:t,xref:a}}=e;await Promise.all([t.ensureCatalog("destinations").then(t=>e.destinations=t),t.ensureCatalog("rawPageLabels").then(t=>e.pageLabels=t),t.ensureCatalog("structTreeRoot").then(t=>e.structTreeRoot=t),t.ensureCatalog("acroForm").then(t=>e.acroForm=t),t.ensureCatalog("documentOutlineForEditor").then(t=>e.outline=t),t.ensureCatalog("rawEmbeddedFiles").then(t=>e.embeddedFiles=t)]);const n=e.structTreeRoot;if(n){const t=n.dict,s=t.get("ParentTree");if(s){const t=new o.NumberTree(s,a);e.parentTree=t.getAll(!0)}const r=t.get("IDTree");if(r){const t=new o.NameTree(r,a);e.idTree=t.getAll(!0)}e.roleMap=t.get("RoleMap")||null;e.classMap=t.get("ClassMap")||null;let i=t.get("Namespaces")||null;i&&!Array.isArray(i)&&(i=[i]);e.namespaces=i;e.structTreeAF=t.get("AF")||null;e.structTreePronunciationLexicon=t.get("PronunciationLexicon")||null}}async function _postCollectPageData(e){const{page:{xref:t,annotations:a},documentData:{pagesMap:r,destinations:i,usedNamedDestinations:o,fieldToParent:c}}=e;if(!a)return;const f=[];let h=[],u=0,{hasSignatureAnnotations:d}=e.documentData;for(const e of a){const a=u++;f.push(t.fetchIfRefAsync(e).then(async t=>{if(!(0,s.isName)(t.get("Subtype"),"Link")){if((0,s.isName)(t.get("Subtype"),"Widget")){d||=(0,s.isName)((0,n.getInheritableProperty)({dict:t,key:"FT"}),"Sig");const a=t.getRaw("Parent")||null;c.put(e,a)}h[a]=e;return}const f=t.get("A");if(f instanceof s.Dict&&!(0,s.isName)(f.get("S"),"GoTo")){h[a]=e;return}const u=f instanceof s.Dict?f.get("D"):t.get("Dest");if(u&&(!Array.isArray(u)||u[0]instanceof s.Ref&&!r.has(u[0]))){if(u instanceof s.Name||"string"==typeof u){const t=(0,l.stringToPDFString)(u instanceof s.Name?u.name:u,!0);if(i.has(t)){h[a]=e;o.add(t)}}}else h[a]=e}))}await Promise.all(f);h=h.filter(Boolean);e.annotations=h.length>0?h:null;e.documentData.hasSignatureAnnotations||=d}function _setPostponedRefCopies(e){for(const{postponedRefCopies:t,pagesMap:a}of e)for(const e of a.keys())t.put(e,[])}function _fixPostponedRefCopies(e){for(const{postponedRefCopies:t,oldRefMapping:a}of e){for(const[e,n]of t.items()){const t=a.get(e);for(const e of n)e(t)}t.clear()}}function _visitObject(e,t,a=new s.RefSet){if(e instanceof s.Ref){if(!a.has(e)){a.put(e);_assertClassBrand(v,this,_visitObject).call(this,this.xref[e.num],t,a)}return}if(Array.isArray(e)){for(const n of e)_assertClassBrand(v,this,_visitObject).call(this,n,t,a);return}let n;e instanceof f.BaseStream?({dict:n}=e):e instanceof s.Dict&&(n=e);if(n){t(n);for(const e of n.getRawValues())_assertClassBrand(v,this,_visitObject).call(this,e,t,a)}}async function _mergeStructTrees(e){let t=0;const{parentTree:a}=this;for(let e=0,n=this.newPages.length;e<n;e++){if(!this.oldPages[e])continue;const{documentData:{parentTree:n,oldRefMapping:r,oldStructParentMapping:i,usedStructParents:o,document:{xref:l}}}=this.oldPages[e];if(!n)continue;const c=this.newPages[e],f=this.xref[c.num],h=new s.RefSet;h.put(c);_assertClassBrand(v,this,_visitObject).call(this,f,e=>{const c=e.get("StructParent")??e.get("StructParents");if("number"!=typeof c)return;o.add(c);let f=n.get(c);const h=f instanceof s.Ref?f:null;if(h){const e=l.fetch(h);Array.isArray(e)&&(f=e)}Array.isArray(f)&&f.every(e=>null===e)&&(f=null);if(!f){e.has("StructParent")?e.delete("StructParent"):e.delete("StructParents");return}let u=i.get(c);if(void 0===u){u=t++;i.set(c,u);a.set(u,[r,f])}e.has("StructParent")?e.set("StructParent",u):e.set("StructParents",u)},h)}const{structTreeKids:n,idTree:r,classMap:i,roleMap:o,namespaces:c,structTreeAF:f,structTreePronunciationLexicon:h}=this;for(const t of e){const{document:{xref:e},oldRefMapping:a,parentTree:u,usedStructParents:d,structTreeRoot:m,idTree:g,classMap:b,roleMap:w,namespaces:j,structTreeAF:y,structTreePronunciationLexicon:k}=t;if(!m)continue;this.currentDocument=t;const q=new s.RefSet;for(const[e,t]of u||[])!d.has(e)&&t instanceof s.Ref&&q.put(t);const S=new Map;for(const[e,t]of g||[]){let a=e;if(r.has(e))for(let t=1;;t++){const n=`${e}_${t}`;if(!r.has(n)){S.set(e,n);a=n;break}}r.set(a,t)}const _=new Map;if(b?.size>0)for(let[t,a]of b){a=await _assertClassBrand(v,this,_collectDependencies).call(this,a,!0,e);if(i.has(t))for(let e=1;;e++){const a=`${t}_${e}`;if(!i.has(a)){_.set(t,a);t=a;break}}i.set(t,a)}const C=new Map;if(w?.size>0)for(const[e,t]of w){const a=o.get(e);if(a){if(a!==t)for(let a=1;;a++){const n=`${e}_${a}`;if(!o.has(n)){C.set(e,n);o.set(n,t);break}}}else o.set(e,t)}if(j?.length>0)for(const t of j){const a=await e.fetchIfRefAsync(t);let n=a.get("NS");if(!n||c.has(n))continue;n=(0,l.stringToPDFString)(n,!1);const s=await _assertClassBrand(v,this,_collectDependencies).call(this,a,!0,e);c.set(n,s)}if(y)for(const t of y)f.push(await _assertClassBrand(v,this,_collectDependencies).call(this,t,!0,e));if(k)for(const t of k)h.push(await _assertClassBrand(v,this,_collectDependencies).call(this,t,!0,e));const F=m.dict.getRaw("K");if(!F)continue;const x=await _assertClassBrand(v,this,_resolveStructKids).call(this,F,e);for(let t of x){const r=t instanceof s.Ref?t:null;t=await e.fetchIfRefAsync(t);if(!(t instanceof s.Dict))continue;let i=!1;if(r&&q.has(r)){if(!(0,s.isName)(t.get("S"),"Link"))continue;i=!0}const o=await _assertClassBrand(v,this,_cloneStructTreeNode).call(this,r,t,e,q,S,_,C);if(o){n.push(o);r&&a.put(r,o);i&&this.xref[o.num].setIfName("S","Span")}}for(const[e,t]of g||[]){const n=t instanceof s.Ref&&a.get(t),i=S.get(e)||e;n?r.set(i,n):r.delete(i)}}for(const[e,[t,n]]of a){if(!n){a.delete(e);continue}if(!Array.isArray(n)){const s=t.get(n);void 0===s?a.delete(e):a.set(e,s);continue}const r=n.map(e=>e instanceof s.Ref&&t.get(e)||null);0===r.length||r.every(e=>null===e)?a.delete(e):a.set(e,r)}this.currentDocument=null}function _collectValidDestinations(e){for(const t of e){if(!t.destinations)continue;const{destinations:e,pagesMap:a}=t,n=t.destinations=new Map;for(const[t,r]of e){const e=r[0],i=e instanceof s.Ref&&a.get(e);if(i){(i.pointingNamedDestinations||=new Set).add(t);n.set(t,r)}}}}function _findDuplicateNamedDestinations(){const{namedDestinations:e}=this,getUniqueDestinationName=t=>{if(!e.has(t))return t;for(let a=1;;a++){const n=`${t}_${a}`;if(!e.has(n))return n}};for(let t=0,a=this.oldPages.length;t<a;t++){const a=this.oldPages[t];if(!a)continue;const{documentData:{destinations:n,dedupNamedDestinations:s,usedNamedDestinations:r}}=a;let{pointingNamedDestinations:i}=a;if(i){a.pointingNamedDestinations=i=i.intersection(r);for(const a of i){if(!r.has(a))continue;const i=n.get(a).slice();if(!e.has(a)){e.set(a,i);continue}const o=getUniqueDestinationName(`${a}_p${t+1}`);s.set(a,o);e.set(o,i)}}}}function _fixNamedDestinations(e,t){if(0===t.size)return;const fixDestination=(e,a,n)=>{"string"==typeof n&&e.set(a,t.get((0,l.stringToPDFString)(n,!0))||n)};for(const t of e){const e=this.xref[t.num];if(!(0,s.isName)(e.get("Subtype"),"Link"))continue;const a=e.get("A");if(a instanceof s.Dict&&a.has("D")){const e=a.get("D");fixDestination(a,"D",e);continue}const n=e.get("Dest");fixDestination(e,"Dest",n)}}function _collectOutlineDestinations(e){const collect=(e,t,a)=>{for(const n of e){"string"==typeof n.dest&&t?.has(n.dest)&&a.add(n.dest);n.items.length>0&&collect(n.items,t,a)}};for(const t of e){const{outline:e,destinations:a,usedNamedDestinations:n}=t;e?.length&&collect(e,a,n)}}function _isValidOutlineDest(e,t){const{dest:a,action:n,url:r,unsafeUrl:i,attachment:o,setOCGState:l}=e;if(n||r||i||o||l)return!0;if(!a)return!1;if("string"==typeof a){const e=t.dedupNamedDestinations.get(a)||a;return this.namedDestinations.has(e)}return Array.isArray(a)&&a[0]instanceof s.Ref&&!!t.oldRefMapping.get(a[0])}function _filterOutlineItems(e,t){const a=[];for(const n of e){const e=_assertClassBrand(v,this,_filterOutlineItems).call(this,n.items,t),s=_assertClassBrand(v,this,_isValidOutlineDest).call(this,n,t);(s||e.length>0)&&a.push({...n,dest:s?n.dest:null,rawDict:s?n.rawDict:null,items:e,_documentData:t})}return a}function _buildOutline(e){const t=[];for(const a of e){const{outline:e}=a;e?.length&&t.push(..._assertClassBrand(v,this,_filterOutlineItems).call(this,e,a))}this.outlineItems=t.length>0?t:null}async function _setOutlineItemDest(e,t){const{dest:a,rawDict:n}=t,r=t._documentData;if(a){if("string"==typeof a){const t=r.dedupNamedDestinations.get(a)||a;e.set("Dest",(0,l.stringToAsciiOrUTF16BE)(t))}else if(Array.isArray(a)){const t=a.slice();t[0]instanceof s.Ref&&(t[0]=r.oldRefMapping.get(t[0])||t[0]);e.set("Dest",t)}return}const i=n?.get("A");if(i instanceof s.Dict){this.currentDocument=r;const t=await _assertClassBrand(v,this,_cloneObject).call(this,i,r.document.xref);this.currentDocument=null;e.set("A",t)}}async function _makeOutline(){const{outlineItems:e}=this;if(!e?.length)return;const[t,a]=this.newDict;a.setIfName("Type","Outlines");const assignRefs=e=>{for(const t of e){[t._ref]=this.newDict;t.items.length>0&&assignRefs(t.items)}};assignRefs(e);const fillItems=async(e,t)=>{let a=0;for(let n=0;n<e.length;n++){const s=e[n],r=this.xref[s._ref.num];r.set("Title",(0,l.stringToAsciiOrUTF16BE)(s.title));r.set("Parent",t);n>0&&r.set("Prev",e[n-1]._ref);n<e.length-1&&r.set("Next",e[n+1]._ref);if(s.items.length>0){r.set("First",s.items[0]._ref);r.set("Last",s.items.at(-1)._ref);const e=await fillItems(s.items,s._ref);void 0!==s.count&&r.set("Count",s.count<0?-e:e);a+=void 0!==s.count&&s.count<0?1:e+1}else a+=1;await _assertClassBrand(v,this,_setOutlineItemDest).call(this,r,s);const i=(s.bold?2:0)|(s.italic?1:0);0!==i&&r.set("F",i);!s.color||0===s.color[0]&&0===s.color[1]&&0===s.color[2]||r.set("C",[s.color[0]/255,s.color[1]/255,s.color[2]/255])}return a},n=await fillItems(e,t);a.set("First",e[0]._ref);a.set("Last",e.at(-1)._ref);a.set("Count",n);this.rootDict.set("Outlines",t)}async function _mergeAcroForms(e){_assertClassBrand(v,this,_setAcroFormDefaultBasicValues).call(this,e);_assertClassBrand(v,this,_setAcroFormDefaultAppearance).call(this,e);_assertClassBrand(v,this,_setAcroFormQ).call(this,e);await _assertClassBrand(v,this,_setAcroFormDefaultResources).call(this,e);const t=this.fields;for(const a of e){let e=a.acroForm?.get("Fields")||null;!e&&a.fieldToParent.size>0&&(e=_assertClassBrand(v,this,_fixFields).call(this,a.fieldToParent,a.document.xref));if(Array.isArray(e)&&e.length>0){this.currentDocument=a;await _assertClassBrand(v,this,_cloneFields).call(this,t,e);this.currentDocument=null}}_assertClassBrand(v,this,_setAcroFormCalculationOrder).call(this,e)}function _setAcroFormQ(e){let t=0,a=null;for(const n of e){const e=n.acroForm?.get("Q");if("number"==typeof e&&0!==e)if(a?.acroFormQ>0)n.acroFormQ=e;else if(0!==t){if(e!==t){a.acroFormQ||=t;n.acroFormQ=e;t=0}}else{t=e;a=n}}t>0&&(this.acroFormQ=t)}function _setAcroFormDefaultBasicValues(e){let t=0,a=!1;for(const n of e){if(!n.acroForm)continue;const e=n.acroForm.get("SigFlags");"number"==typeof e&&n.hasSignatureAnnotations&&(t|=e);!0===n.acroForm.get("NeedAppearances")&&(a=!0)}this.acroFormSigFlags=t;this.acroFormNeedAppearances=a}function _setAcroFormCalculationOrder(e){const t=[];for(const a of e){const e=a.acroForm?.get("CO")||null;if(!Array.isArray(e))continue;const{oldRefMapping:n}=a;for(const a of e){const e=a instanceof s.Ref&&n.get(a);e&&t.push(e)}}this.acroFormCalculationOrder=t.length>0?t:null}function _setAcroFormDefaultAppearance(e){let t=null,a=null;for(const n of e){const e=n.acroForm?.get("DA")||null;if(e&&"string"==typeof e)if(a?.acroFormDefaultAppearance)n.acroFormDefaultAppearance=e;else if(t){if(e!==t){a.acroFormDefaultAppearance||=t;n.acroFormDefaultAppearance=e;t=null}}else{t=e;a=n}}t&&(this.acroFormDefaultAppearance=t)}async function _setAcroFormDefaultResources(e){let t=null,a=null,r=null;for(const i of e){const e=i.acroForm?.get("DR")||null;if(e&&e instanceof s.Dict)if(r?.acroFormDefaultResources)i.acroFormDefaultResources=e;else if(t){if(!(0,n.deepCompare)(t,e)){r.acroFormDefaultResources||=t;i.acroFormDefaultResources=e;t=null;a=null}}else{t=e;a=i.acroForm.getRaw("DR");r=i}}if(t){this.currentDocument=r;this.acroFormDefaultResources=await _assertClassBrand(v,this,_collectDependencies).call(this,a,!0,r.document.xref);this.currentDocument=null}}function _fixFields(e,t){const a=[],n=new s.RefSet;for(const[r,i]of e.items()){if(!i){a.push(r);continue}let e=i,o=i;const l=new s.RefSet;for(;;){if(e instanceof s.Ref){if(l.has(e))break;l.put(e)}const a=t.fetchIfRef(e);if(!(a instanceof s.Dict))break;e=a.getRaw("Parent")||null;if(!e)break;o=e}if(o instanceof s.Ref&&!n.has(o)){a.push(o);n.put(o)}}return a}async function _cloneFields(e,t){const a=new s.RefSet,r=[{kids:t,newKids:e,pos:0,oldParentRef:null,parentRef:null,parent:null}],{document:{xref:i},oldRefMapping:o,fieldToParent:l,acroFormDefaultAppearance:c,acroFormDefaultResources:h,acroFormQ:u}=this.currentDocument,d=[],m=[];for(;r.length>0;){const e=r.at(-1),{kids:t,newKids:n,parent:f,pos:g}=e;if(g===t.length){r.pop();if(0===n.length||!f)continue;const t=this.xref[e.parentRef.num]=this.cloneDict(f);t.delete("Parent");t.delete("Kids");await _assertClassBrand(v,this,_collectDependencies).call(this,t,!1,i);t.set("Kids",n);if(r.length>0){const a=r.at(-1);if(!a.parentRef&&a.oldParentRef){const e=a.parentRef=this.newRef;t.set("Parent",e);o.put(a.oldParentRef,e)}a.newKids.push(e.parentRef)}continue}const b=t[e.pos++];if(!(b instanceof s.Ref)||a.has(b))continue;a.put(b);const w=i.fetchIfRef(b);if(!(w instanceof s.Dict))continue;if(w.has("Kids")){const e=w.get("Kids");if(!Array.isArray(e))continue;r.push({kids:e,newKids:[],pos:0,oldParentRef:b,parentRef:null,parent:w});continue}if(!l.has(b))continue;const j=o.get(b);if(!j)continue;n.push(j);if(!e.parentRef&&e.oldParentRef){e.parentRef=this.newRef;o.put(e.oldParentRef,e.parentRef)}const y=this.xref[j.num];e.parentRef&&y.set("Parent",e.parentRef);c&&!y.has("DA")&&d.push(y);h&&!y.has("Kids")&&y.get("AP")instanceof s.Dict&&m.push(y);u&&!y.has("Q")&&y.set("Q",u)}for(const e of d){const t=(0,n.getInheritableProperty)({dict:e,key:"FT"});if(!(0,s.isName)(t,"Tx"))continue;(0,n.getInheritableProperty)({dict:e,key:"DA"})||e.set("DA",c)}const g=new Map,fixAppearanceResources=async e=>{let t=e.dict.getRaw("Resources");t&&=this.xrefWrapper.fetchIfRef(t);if(!(t instanceof s.Dict)){const t=await g.getOrInsertComputed(h,()=>_assertClassBrand(v,this,_cloneObject).call(this,h,i));e.dict.set("Resources",t);return}for(const[e,a]of h.getRawEntries()){if(t.has(e))continue;let n=a;a instanceof s.Ref?n=await _assertClassBrand(v,this,_collectDependencies).call(this,a,!0,i):(a instanceof s.Dict||a instanceof f.BaseStream||Array.isArray(a))&&(n=await g.getOrInsertComputed(a,()=>_assertClassBrand(v,this,_cloneObject).call(this,a,i)));t.set(e,n)}};for(const e of m){const t=e.get("AP");for(const[,e]of t)if(e instanceof f.BaseStream)await fixAppearanceResources(e);else if(e instanceof s.Dict)for(const[,t]of e)t instanceof f.BaseStream&&await fixAppearanceResources(t)}}async function _collectPageLabels(){if(!this.isSingleFile)return;const e=this.oldPages.find(e=>!!e);if(!e)return;const{documentData:{document:t,pageLabels:a}}=e;if(!a)return;const n=t.numPages,r=new Map,i=new Set(this.oldPages.filter(Boolean).map(({page:{pageIndex:e}})=>e));let o=null,l=-1;for(let e=0;e<n;e++){const t=a.get(e);if(t){o=t;l=o.has("St")?e:-1}if(i.has(e)){if(-1!==l){const t=o.get("St");o=this.cloneDict(o);o.set("St",t+(e-l));l=-1}r.set(e,o)}}const defaultLabel=e=>{const t=new s.Dict;t.setIfName("S","D");t.set("St",e+1);return t};o=null;const c=this.pageLabels=[];for(let e=0,t=this.oldPages.length;e<t;e++){const t=this.oldPages[e],a=t&&r.get(t.page.pageIndex)||defaultLabel(e);if(a!==o){o=a;c.push([e,o])}}}async function _makePageCopy(e){const{page:t,documentData:a,annotations:n,pointingNamedDestinations:r,copyLevel:i}=this.oldPages[e];this.currentDocument=a;const{dedupNamedDestinations:o,oldRefMapping:l}=a,{xref:h,rotate:u,mediaBox:d,resources:m,ref:g}=t,j=this.newRef,y=this.xref[j.num]=this.cloneDict(t.pageDict);l.put(g,j);if(r)for(const e of r){const t=o.get(e)||e;this.namedDestinations.get(t)[0]=j}for(const e of["Rotate","MediaBox","CropBox","BleedBox","TrimBox","ArtBox","Resources","Annots","Parent","UserUnit"])y.delete(e);const k=this.newRefCount;await _assertClassBrand(v,this,_collectDependencies).call(this,y,!1,h);y.set("Rotate",u);y.set("MediaBox",d);for(const e of["CropBox","BleedBox","TrimBox","ArtBox"]){const a=t.getBoundingBox(e);a?.some((e,t)=>e!==d[t])&&y.set(e,a)}const q=t.userUnit;1!==q&&y.set("UserUnit",q);y.setIfDict("Resources",await _assertClassBrand(v,this,_collectDependencies).call(this,m,!0,h));const S=a.document===_classPrivateFieldGet(w,this)?_classPrivateFieldGet(b,this)?.newAnnotationsByPage?.get(t.pageIndex)?.filter(({copyLevel:e})=>(e??0)===i):null,_=new s.RefSet;for(const{id:e,deleted:t,popup:a,popupRef:n}of S||[])if(s.Ref.fromString(e)){t&&_.put(e);n&&(t||a?.deleted)&&_.put(n)}let C=null;if(n){const e=await _assertClassBrand(v,this,_collectDependencies).call(this,n.filter(e=>!(e instanceof s.Ref&&_.has(e))),!0,h);_assertClassBrand(v,this,_fixNamedDestinations).call(this,e,o);Array.isArray(e)&&e.length>0&&(C=e)}if(S?.length){const e=new s.RefSet,updateInPlace=(t,a)=>{const n=a&&l.get(a),r=n&&this.xref[n.num];if(!(r instanceof s.Dict))return!1;t.ref=n;t.oldAnnotation=r;e.put(n);return!0};for(const e of S){if(e.deleted||!updateInPlace(e,e.id))continue;delete e.id;const{popup:t}=e;t&&!t.deleted&&updateInPlace(t,e.popupRef)}const{handler:a,task:n,imagesPromises:r}=_classPrivateFieldGet(b,this),i=new s.RefMap,o=await c.AnnotationFactory.saveNewAnnotations(t._createPartialEvaluator(a),this.xrefWrapper,n,S,r,i);for(const[e,{data:t}]of i.items())this.xref[e.num]=t;C||=[];for(const{ref:t}of o.annotations)e.has(t)||C.push(t)}y.setIfArray("Annots",C);if(this.useObjectStreams){const e=this.newRefCount,t=[];for(let a=k;a<e;a++){this.xref[a]instanceof f.BaseStream||t.push(s.Ref.get(a,0))}for(let e=0;e<t.length;e+=65535){const a=this.newRef;this.objStreamRefs.add(a.num);this.xref[a.num]=t.slice(e,e+65535)}}this.currentDocument=null;return j}function _modalPageSize(){const e=new Map;for(const t of this.oldPages){if(!t)continue;const{page:a}=t,[n,s,r,i]=a.view;let o=r-n,l=i-s;if(o<=0||l<=0)continue;a.rotate%180!=0&&([o,l]=[l,o]);const c=`${o}x${l}`,f=e.get(c);f?f.count++:e.set(c,{width:o,height:l,count:1})}if(0===e.size){const[,,e,t]=u.LETTER_SIZE_MEDIABOX;return{width:e,height:t}}let t=null;for(const a of e.values())(!t||a.count>t.count||a.count===t.count&&a.width*a.height>t.width*t.height)&&(t=a);return{width:t.width,height:t.height}}async function _makeImagePage(e,t){const{width:a,height:r}=t,i=.1*a,o=Math.max(1,a-2*i),l=Math.max(1,r-2*i),c=this.newRefCount,{imageStream:u,smaskStream:d,width:g,height:b}=await(0,h.createImage)(e,this.xrefWrapper,{closeBitmap:!0}),w=Math.min(o/g,l/b),j=g*w,y=b*w,v=(a-j)/2,k=(r-y)/2;if(d){const e=this.newRef;this.xref[e.num]=d;u.dict.set("SMask",e)}const q=this.newRef;this.xref[q.num]=u;const S=new s.Dict(this.xrefWrapper);S.set("Im0",q);const _=new s.Dict(this.xrefWrapper);_.set("XObject",S);_.set("ProcSet",[s.Name.get("PDF"),s.Name.get("ImageC")]);const C=`q ${(0,n.numberToString)(j)} 0 0 ${(0,n.numberToString)(y)} ${(0,n.numberToString)(v)} ${(0,n.numberToString)(k)} cm /Im0 Do Q`,F=new m.StringStream(C,new s.Dict(this.xrefWrapper)),x=this.newRef;this.xref[x.num]=F;const T=this.newRef,O=this.xref[T.num]=new s.Dict(this.xrefWrapper);O.setIfName("Type","Page");O.set("MediaBox",[0,0,a,r]);O.set("Resources",_);O.set("Contents",x);if(this.useObjectStreams){const e=this.newRefCount,t=[];for(let a=c;a<e;a++){this.xref[a]instanceof f.BaseStream||t.push(s.Ref.get(a,0))}for(let e=0;e<t.length;e+=65535){const a=this.newRef;this.objStreamRefs.add(a.num);this.xref[a.num]=t.slice(e,e+65535)}}return T}function _makePageTree(){const{newPages:e,rootDict:t,pagesRef:a,pagesDict:n}=this;t.set("Pages",a);n.setIfName("Type","Pages");n.set("Count",e.length);const s=[{dict:n,kids:e,parentRef:a}];for(;s.length>0;){const{dict:e,kids:t,parentRef:a}=s.pop();if(t.length<=16){e.set("Kids",t);for(const e of t)this.xref[e.num].set("Parent",a);continue}const n=Math.max(16,Math.ceil(t.length/16)),r=[];for(let e=0;e<t.length;e+=n)r.push(t.slice(e,e+n));const i=[];e.set("Kids",i);for(const e of r){const[t,n]=this.newDict;i.push(t);n.setIfName("Type","Pages");n.set("Parent",a);n.set("Count",e.length);s.push({dict:n,kids:e,parentRef:t})}}}function _makeNameNumTree(e,t){const a=e.sort(t?([e],[t])=>e<t?-1:e>t?1:0:([e],[t])=>e-t),[n,s]=this.newDict,r=[{dict:s,entries:a,isRoot:!0}],i=t?"Names":"Nums";for(;r.length>0;){const{dict:e,entries:t,isRoot:a}=r.pop();if(t.length<=64){a||e.set("Limits",[t[0][0],t.at(-1)[0]]);e.set(i,t.flat());continue}const n=[],s=Math.max(64,Math.ceil(t.length/64));for(let e=0;e<t.length;e+=s)n.push(t.slice(e,e+s));const o=[];e.set("Kids",o);for(const e of n){const[t,a]=this.newDict;o.push(t);a.set("Limits",[e[0][0],e.at(-1)[0]]);r.push({dict:a,entries:e})}}return n}function _makePageLabelsTree(){const{pageLabels:e}=this;if(!e?.length)return;const{rootDict:t}=this,a=_assertClassBrand(v,this,_makeNameNumTree).call(this,this.pageLabels,!1);t.set("PageLabels",a)}async function _collectEmbeddedFiles(e){const{embeddedFiles:t}=this;for(const a of e){const{embeddedFiles:e,document:{xref:n}}=a;if(e?.size){this.currentDocument=a;for(const[a,s]of e){let e=a;if(t.has(e)){const n=(0,l.stringToPDFString)(a,!0);for(let a=1;;a++){const s=(0,l.stringToAsciiOrUTF16BE)(`${n}_${a}`);if(!t.has(s)){e=s;break}}}t.set(e,await _assertClassBrand(v,this,_collectDependencies).call(this,s,!0,n))}this.currentDocument=null}}}function _makeEmbeddedFilesTree(){const{embeddedFiles:e}=this;if(0!==e.size){if(!this.namesDict){[this.namesRef,this.namesDict]=this.newDict;this.rootDict.set("Names",this.namesRef)}this.namesDict.set("EmbeddedFiles",_assertClassBrand(v,this,_makeNameNumTree).call(this,Array.from(e.entries()),!0))}}function _makeDestinationsTree(){const{namedDestinations:e}=this;if(0!==e.size){if(!this.namesDict){[this.namesRef,this.namesDict]=this.newDict;this.rootDict.set("Names",this.namesRef)}this.namesDict.set("Dests",_assertClassBrand(v,this,_makeNameNumTree).call(this,Array.from(e,([e,t])=>[(0,l.stringToAsciiOrUTF16BE)(e),t]),!0))}}function _makeStructTree(){const{structTreeKids:e}=this;if(!e?.length)return;const{rootDict:t}=this,a=this.newRef,n=this.xref[a.num]=new s.Dict;n.setIfName("Type","StructTreeRoot");n.setIfArray("K",e);for(const t of e){const e=this.xref[t.num],n=e.get("Type");n&&!(0,s.isName)(n,"StructElem")||e.set("P",a)}if(this.parentTree.size>0){const e=_assertClassBrand(v,this,_makeNameNumTree).call(this,Array.from(this.parentTree.entries()),!1);this.xref[e.num].setIfName("Type","ParentTree");n.set("ParentTree",e);let t=0;for(const e of this.parentTree.keys())t=Math.max(t,e+1);n.set("ParentTreeNextKey",t)}if(this.idTree.size>0){const e=_assertClassBrand(v,this,_makeNameNumTree).call(this,Array.from(this.idTree.entries()),!0);this.xref[e.num].setIfName("Type","IDTree");n.set("IDTree",e)}if(this.classMap.size>0){const e=this.newRef;this.xref[e.num]=this.classMap;n.set("ClassMap",e)}if(this.roleMap.size>0){const e=this.newRef;this.xref[e.num]=this.roleMap;n.set("RoleMap",e)}if(this.namespaces.size>0){const e=this.newRef;this.xref[e.num]=Array.from(this.namespaces.values());n.set("Namespaces",e)}if(this.structTreeAF.length>0){const e=this.newRef;this.xref[e.num]=this.structTreeAF;n.set("AF",e)}if(this.structTreePronunciationLexicon.length>0){const e=this.newRef;this.xref[e.num]=this.structTreePronunciationLexicon;n.set("PronunciationLexicon",e)}t.set("StructTreeRoot",a)}function _makeAcroForm(){if(0===this.fields.length)return;const{rootDict:e}=this,t=this.newRef,a=this.xref[t.num]=new s.Dict;e.set("AcroForm",t);a.set("Fields",this.fields);this.acroFormNeedAppearances&&a.set("NeedAppearances",!0);this.acroFormSigFlags>0&&a.set("SigFlags",this.acroFormSigFlags);a.setIfArray("CO",this.acroFormCalculationOrder);a.setIfDefined("DR",this.acroFormDefaultResources);this.acroFormDefaultAppearance&&a.set("DA",this.acroFormDefaultAppearance);this.acroFormQ>0&&a.set("Q",this.acroFormQ)}async function _makeRoot(){const{rootDict:e}=this;e.setIfName("Type","Catalog");e.setIfName("Version",this.version);_assertClassBrand(v,this,_makeAcroForm).call(this);_assertClassBrand(v,this,_makePageTree).call(this);_assertClassBrand(v,this,_makePageLabelsTree).call(this);_assertClassBrand(v,this,_makeEmbeddedFilesTree).call(this);_assertClassBrand(v,this,_makeDestinationsTree).call(this);_assertClassBrand(v,this,_makeStructTree).call(this);await _assertClassBrand(v,this,_makeOutline).call(this)}function _makeInfo(){const e=new Map;if(this.isSingleFile){const t=this.oldPages.find(e=>!!e),{xref:{trailer:a}}=t.documentData.document,n=a.get("Info");for(const[t,a]of n||[])"string"==typeof a&&e.set(t,(0,l.stringToPDFString)(a));for(const t of g)e.delete(t)}e.delete("ModDate");e.set("CreationDate",(0,n.getModificationDate)());e.set("Creator","PDF.js");e.set("Producer","Firefox");this.author&&e.set("Author",this.author);this.title&&e.set("Title",this.title);for(const[t,a]of e)this.infoDict.set(t,(0,l.stringToAsciiOrUTF16BE)(a));return e}function _getSingleDocumentData(){return this.isSingleFile?this.oldPages.find(e=>!!e).documentData:null}async function _makeEncrypt(){const e=_assertClassBrand(v,this,_getSingleDocumentData).call(this);if(!e)return[null,null,null];const{document:{xref:{trailer:t,encrypt:a}}}=e;if(!t.has("Encrypt"))return[null,null,null];const n=t.get("Encrypt");if(!(n instanceof s.Dict))return[null,null,null];this.currentDocument=e;const r=[await _assertClassBrand(v,this,_cloneObject).call(this,n,t.xref),a,t.get("ID")];this.currentDocument=null;return r}async function _createChanges(e,t){const a=new s.RefMap;a.put(s.Ref.get(0,65535),{data:null});for(let n=1,i=this.xref.length;n<i;n++){const i=s.Ref.get(n,0),o=this.xref[n];if(this.objStreamRefs?.has(n))await _assertClassBrand(v,this,_createObjectStream).call(this,i,o,a);else if("string"==typeof o){const n=[];await(0,r.writeObject)(i,o,n,{encrypt:e,encryptRef:t});a.put(i,{data:n.join("")})}else a.put(i,{data:o})}return[a,this.newRef]}async function _createObjectStream(e,t,a){const n=[""],i=[];let o=0;const l=[];for(let s=0,c=t.length;s<c;s++){const c=t[s];a.put(c,{data:null,objStreamRef:e,index:s});i.push(`${c.num} ${o}`);const f=this.xref[c.num];await(0,r.writeValue)(f,l,null);const h=l.join("");l.length=0;n.push(h);o+=h.length+1}n[0]=i.join("\n");const c=new s.Dict;c.setIfName("Type","ObjStm");c.set("N",t.length);c.set("First",n[0].length+1);const f=new m.StringStream(n.join("\n"),c);a.put(e,{data:f})}},3571(e,t,a){a.d(t,{createImage:()=>createImage});var n=a(5632),s=a(1723),r=a(4106);function createImageDict(e,t,a,s){const r=new n.Dict(e);r.set("Type",n.Name.get("XObject"));r.set("Subtype",n.Name.get("Image"));r.set("BitsPerComponent",8);r.setIfName("ColorSpace",s);r.set("Width",t);r.set("Height",a);return r}function createRawImage(e,t){return new r.Stream(e,0,e.length,t)}function paethPredictor(e,t,a){const n=e+t-a,s=Math.abs(n-e),r=Math.abs(n-t),i=Math.abs(n-a);return s<=r&&s<=i?e:r<=i?t:a}async function createPNGLikeImage(e,t,a,r){const i=e.length/(t*a);let o;if("function"==typeof CompressionStream)try{const n=function applyPNGOptimumFilter(e,t,a,n){const s=t*n,r=new Uint8Array(a*(s+1)),i=[new Uint8Array(s),new Uint8Array(s),new Uint8Array(s),new Uint8Array(s),new Uint8Array(s)];for(let t=0;t<a;t++){const a=t*s,o=a-s,l=[0,0,0,0,0];for(let r=0;r<s;r++){const s=a+r,c=e[s],f=r>=n?e[s-n]:0,h=t>0?e[o+r]:0,u=t>0&&r>=n?e[o+r-n]:0;i[0][r]=c;i[1][r]=c-f&255;i[2][r]=c-h&255;i[3][r]=c-(f+h>>1)&255;i[4][r]=c-paethPredictor(f,h,u)&255;for(let e=0;e<5;e++){const t=i[e][r];l[e]+=t<128?t:256-t}}let c=0;for(let e=1;e<5;e++)l[e]<l[c]&&(c=e);const f=t*(s+1);r[f]=c;r.set(i[c],f+1)}return r}(e,t,a,i);o=await async function deflate(e){const t=new CompressionStream("deflate"),a=t.writable.getWriter(),n=(async()=>{try{await a.ready;await a.write(e);await a.ready;await a.close()}catch(e){await a.abort(e).catch(s.noopFn);throw e}})(),[r]=await Promise.all([new Response(t.readable).bytes(),n.then(()=>null)]);return r}(n)}catch{}if(!o)return createRawImage(e,r);r.setIfName("Filter","FlateDecode");const l=new n.Dict(r.xref);l.set("Predictor",15);l.set("Columns",t);l.set("Colors",i);l.set("BitsPerComponent",8);r.set("DecodeParms",l);return createRawImage(o,r)}async function createImage(e,t,{closeBitmap:a=!1}={}){const{width:n,height:r}=e;if(!Number.isInteger(n)||!Number.isInteger(r)||n<=0||r<=0){a&&e.close?.();throw new Error(`createImage: invalid bitmap dimensions ${n}x${r}`)}const i=new OffscreenCanvas(n,r),o=i.getContext("2d",{alpha:!0,willReadFrequently:!0});let l;try{o.drawImage(e,0,0);l=o.getImageData(0,0,n,r).data}finally{a&&e.close?.()}const c=new Uint32Array(l.buffer,l.byteOffset,l.byteLength>>2),f=s.FeatureTest.isLittleEndian,h=f?16777215:4294967040,u=new Set;let d=!1,m=!0;for(const e of c){if(255!=(f?e>>>24:255&e)){d=!0;break}if(m){u.add((e&h)>>>0);if(u.size>16384){m=!1;u.clear()}}}d&&(m=!0);const g=createImageDict(t,n,r,"DeviceRGB");let b,w=null;if(m){const e=new Uint8Array(n*r*3);for(let t=0,a=0,n=l.length;t<n;t+=4,a+=3){e[a]=l[t];e[a+1]=l[t+1];e[a+2]=l[t+2]}b=createPNGLikeImage(e,n,r,g);w=createRawImage(e,createImageDict(t,n,r,"DeviceRGB"))}else{g.setIfName("Filter","DCTDecode");b=i.convertToBlob({type:"image/jpeg",quality:1}).then(e=>e.bytes()).then(e=>createRawImage(e,g))}let j=Promise.resolve(null),y=null;if(d){const e=new Uint8Array(c.length);if(f)for(let t=0,a=c.length;t<a;t++)e[t]=c[t]>>>24;else for(let t=0,a=c.length;t<a;t++)e[t]=255&c[t];const a=createImageDict(t,n,r,"DeviceGray"),s=createImageDict(t,n,r,"DeviceGray");j=createPNGLikeImage(e,n,r,a);y=createRawImage(e,s)}const[v,k]=await Promise.all([b,j]);return{imageStream:v,imageRenderStream:w,smaskStream:k,smaskRenderStream:y,width:n,height:r}}},8294(e,t,a){a.d(t,{getEncoding:()=>getEncoding});const n=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],s=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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","","","",""],r=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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"],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","","","",""],o=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","bullet","Euro","bullet","quotesinglbase","florin","quotedblbase","ellipsis","dagger","daggerdbl","circumflex","perthousand","Scaron","guilsinglleft","OE","bullet","Zcaron","bullet","bullet","quoteleft","quoteright","quotedblleft","quotedblright","bullet","endash","emdash","tilde","trademark","scaron","guilsinglright","oe","bullet","zcaron","Ydieresis","space","exclamdown","cent","sterling","currency","yen","brokenbar","section","dieresis","copyright","ordfeminine","guillemotleft","logicalnot","hyphen","registered","macron","degree","plusminus","twosuperior","threesuperior","acute","mu","paragraph","periodcentered","cedilla","onesuperior","ordmasculine","guillemotright","onequarter","onehalf","threequarters","questiondown","Agrave","Aacute","Acircumflex","Atilde","Adieresis","Aring","AE","Ccedilla","Egrave","Eacute","Ecircumflex","Edieresis","Igrave","Iacute","Icircumflex","Idieresis","Eth","Ntilde","Ograve","Oacute","Ocircumflex","Otilde","Odieresis","multiply","Oslash","Ugrave","Uacute","Ucircumflex","Udieresis","Yacute","Thorn","germandbls","agrave","aacute","acircumflex","atilde","adieresis","aring","ae","ccedilla","egrave","eacute","ecircumflex","edieresis","igrave","iacute","icircumflex","idieresis","eth","ntilde","ograve","oacute","ocircumflex","otilde","odieresis","divide","oslash","ugrave","uacute","ucircumflex","udieresis","yacute","thorn","ydieresis"],l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","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",""],c=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","a1","a2","a202","a3","a4","a5","a119","a118","a117","a11","a12","a13","a14","a15","a16","a105","a17","a18","a19","a20","a21","a22","a23","a24","a25","a26","a27","a28","a6","a7","a8","a9","a10","a29","a30","a31","a32","a33","a34","a35","a36","a37","a38","a39","a40","a41","a42","a43","a44","a45","a46","a47","a48","a49","a50","a51","a52","a53","a54","a55","a56","a57","a58","a59","a60","a61","a62","a63","a64","a65","a66","a67","a68","a69","a70","a71","a72","a73","a74","a203","a75","a204","a76","a77","a78","a79","a81","a82","a83","a84","a97","a98","a99","a100","","a89","a90","a93","a94","a91","a92","a205","a85","a206","a86","a87","a88","a95","a96","","","","","","","","","","","","","","","","","","","","a101","a102","a103","a104","a106","a107","a108","a112","a111","a110","a109","a120","a121","a122","a123","a124","a125","a126","a127","a128","a129","a130","a131","a132","a133","a134","a135","a136","a137","a138","a139","a140","a141","a142","a143","a144","a145","a146","a147","a148","a149","a150","a151","a152","a153","a154","a155","a156","a157","a158","a159","a160","a161","a163","a164","a196","a165","a192","a166","a167","a168","a169","a170","a171","a172","a173","a162","a174","a175","a176","a177","a178","a179","a193","a180","a199","a181","a200","a182","","a201","a183","a184","a197","a185","a194","a198","a186","a195","a187","a188","a189","a190","a191",""];function getEncoding(e){switch(e){case"WinAnsiEncoding":return o;case"StandardEncoding":return i;case"MacRomanEncoding":return r;case"SymbolSetEncoding":return l;case"ZapfDingbatsEncoding":return c;case"ExpertEncoding":return n;case"MacExpertEncoding":return s;default:return null}}a.d(t,["ExpertEncoding",0,n,"MacRomanEncoding",0,r,"StandardEncoding",0,i,"SymbolSetEncoding",0,l,"WinAnsiEncoding",0,o,"ZapfDingbatsEncoding",0,c])},9285(e,t,a){a.d(t,{EvaluatorPreprocessor:()=>EvaluatorPreprocessor,PartialEvaluator:()=>PartialEvaluator});var n=a(1723),s=a(8857),r=a(5632),i=a(1834),o=a(4106);function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function hexToInt(e,t){let a=0;for(let n=0;n<=t;n++)a=a<<8|e[n];return a>>>0}function hexToStr(e,t){return 1===t?String.fromCharCode(e[0],e[1]):3===t?String.fromCharCode(e[0],e[1],e[2],e[3]):(0,n.bytesToString)(e.subarray(0,t+1))}function addHex(e,t,a){let n=0;for(let s=a;s>=0;s--){n+=e[s]+t[s];e[s]=255&n;n>>=8}}function incHex(e,t){let a=1;for(let n=t;n>=0&&a>0;n--){a+=e[n];e[n]=255&a;a>>=8}}const l=16;class BinaryCMapStream extends o.Stream{constructor(e){super(e,0,e.length,null);_defineProperty(this,"tmpBuf",new Uint8Array(19))}readNumber(){let e,t=0;do{const a=this.getByte();if(a<0)throw new n.FormatError("unexpected EOF in bcmap");e=!(128&a);t=t<<7|127&a}while(!e);return t}readSigned(){const e=this.readNumber();return 1&e?~(e>>>1):e>>>1}readHex(e,t){e.set(this.getBytes(t+1))}readHexNumber(e,t){let a;const s=this.tmpBuf;let r=0;do{const e=this.getByte();if(e<0)throw new n.FormatError("unexpected EOF in bcmap");a=!(128&e);s[r++]=127&e}while(!a);let i=t,o=0,l=0;for(;i>=0;){for(;l<8&&s.length>0;){o|=s[--r]<<l;l+=7}e[i]=255&o;i--;o>>=8;l-=8}}readHexSigned(e,t){this.readHexNumber(e,t);const a=1&e[t]?255:0;let n=0;for(let s=0;s<=t;s++){n=(1&n)<<8|e[s];e[s]=n>>1^a}}readString(e=!1){const t=this.readNumber();if(e){for(let e=0;e<t;e++)this.readNumber();return null}const a=Array.from({length:t},()=>this.readNumber());return(0,n.bytesToString)(a)}}class BinaryCMapReader{async process(e,t,a){const n=new BinaryCMapStream(e),s=n.getByte();t.vertical=!!(1&s);let r=null;const i=new Uint8Array(l),o=new Uint8Array(l),c=new Uint8Array(l),f=new Uint8Array(l),h=new Uint8Array(l);let u,d;for(;(d=n.getByte())>=0;){const e=d>>5;if(7===e){switch(31&d){case 0:n.readString(!0);break;case 1:r=n.readString()}continue}const a=!!(16&d),s=15&d;if(s+1>l)throw new Error("BinaryCMapReader.process: Invalid dataSize.");const m=1,g=n.readNumber();switch(e){case 0:n.readHex(i,s);n.readHexNumber(o,s);addHex(o,i,s);t.addCodespaceRange(s+1,hexToInt(i,s),hexToInt(o,s));for(let e=1;e<g;e++){incHex(o,s);n.readHexNumber(i,s);addHex(i,o,s);n.readHexNumber(o,s);addHex(o,i,s);t.addCodespaceRange(s+1,hexToInt(i,s),hexToInt(o,s))}break;case 1:n.readHex(i,s);n.readHexNumber(o,s);addHex(o,i,s);n.readNumber();for(let e=1;e<g;e++){incHex(o,s);n.readHexNumber(i,s);addHex(i,o,s);n.readHexNumber(o,s);addHex(o,i,s);n.readNumber()}break;case 2:n.readHex(c,s);u=n.readNumber();t.mapOne(hexToInt(c,s),u);for(let e=1;e<g;e++){incHex(c,s);if(!a){n.readHexNumber(h,s);addHex(c,h,s)}u=n.readSigned()+(u+1);t.mapOne(hexToInt(c,s),u)}break;case 3:n.readHex(i,s);n.readHexNumber(o,s);addHex(o,i,s);u=n.readNumber();t.mapCidRange(hexToInt(i,s),hexToInt(o,s),u);for(let e=1;e<g;e++){incHex(o,s);if(a)i.set(o);else{n.readHexNumber(i,s);addHex(i,o,s)}n.readHexNumber(o,s);addHex(o,i,s);u=n.readNumber();t.mapCidRange(hexToInt(i,s),hexToInt(o,s),u)}break;case 4:n.readHex(c,m);n.readHex(f,s);t.mapOne(hexToInt(c,m),hexToStr(f,s));for(let e=1;e<g;e++){incHex(c,m);if(!a){n.readHexNumber(h,m);addHex(c,h,m)}incHex(f,s);n.readHexSigned(h,s);addHex(f,h,s);t.mapOne(hexToInt(c,m),hexToStr(f,s))}break;case 5:n.readHex(i,m);n.readHexNumber(o,m);addHex(o,i,m);n.readHex(f,s);t.mapBfRange(hexToInt(i,m),hexToInt(o,m),hexToStr(f,s));for(let e=1;e<g;e++){incHex(o,m);if(a)i.set(o);else{n.readHexNumber(i,m);addHex(i,o,m)}n.readHexNumber(o,m);addHex(o,i,m);n.readHex(f,s);t.mapBfRange(hexToInt(i,m),hexToInt(o,m),hexToStr(f,s))}break;default:throw new Error(`BinaryCMapReader.process - unknown type: ${e}`)}}return r?a(r):t}}var c=a(6457),f=a(1440),h=a(5399);function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const u=new Set(["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"]);var d=new WeakMap,m=new WeakMap,g=new WeakSet;class CMap{constructor(e=!1){!function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}(this,g);_classPrivateFieldInitSpec(this,d,new c.CharCodeMap);_classPrivateFieldInitSpec(this,m,0);this.codespaceRanges=[[],[],[],[]];this.numCodespaceRanges=0;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){_assertClassBrand(g,this,_consumeBudget).call(this,t-e+1,"mapCidRange");for(;e<=t;)_classPrivateFieldGet(d,this).set(e++,a++)}mapBfRange(e,t,a){_assertClassBrand(g,this,_consumeBudget).call(this,t-e+1,"mapBfRange");const n=a.length-1;for(;e<=t;){_classPrivateFieldGet(d,this).set(e++,a);const t=a.charCodeAt(n)+1;t>255?a=a.substring(0,n-1)+String.fromCharCode(a.charCodeAt(n-1)+1)+"\0":a=a.substring(0,n)+String.fromCharCode(t)}}mapBfRangeToArray(e,t,a){const n=a.length;_assertClassBrand(g,this,_consumeBudget).call(this,Math.min(t-e+1,n),"mapBfRangeToArray");let s=0;for(;e<=t&&s<n;)_classPrivateFieldGet(d,this).set(e++,a[s++])}mapOne(e,t){_classPrivateFieldGet(d,this).set(e,t)}lookup(e){return _classPrivateFieldGet(d,this).get(e)}contains(e){return _classPrivateFieldGet(d,this).has(e)}forEach(e){_classPrivateFieldGet(d,this).forEach(e)}charCodeOf(e){return _classPrivateFieldGet(d,this).charCodeOf(e)}getMap(){return _classPrivateFieldGet(d,this).clone()}readCharCode(e,t,a){let n=0;const s=this.codespaceRanges;for(let r=0,i=s.length;r<i;r++){n=(n<<8|e.charCodeAt(t+r))>>>0;const i=s[r];for(let e=0,t=i.length;e<t;){const t=i[e++],s=i[e++];if(n>=t&&n<=s){a.charcode=n;a.length=r+1;return}}}a.charcode=0;a.length=1}getCharCodeLength(e){const t=this.codespaceRanges;for(let a=0,n=t.length;a<n;a++){const n=t[a];for(let t=0,s=n.length;t<s;){const s=n[t++],r=n[t++];if(e>=s&&e<=r)return a+1}}return 1}get size(){return _classPrivateFieldGet(d,this).size}get isIdentityCMap(){if("Identity-H"!==this.name&&"Identity-V"!==this.name)return!1;if(65536!==_classPrivateFieldGet(d,this).size)return!1;for(let e=0;e<65536;e++)if(_classPrivateFieldGet(d,this).get(e)!==e)return!1;return!0}}function _consumeBudget(e,t){if(!(e<=0)){if(_classPrivateFieldGet(m,this)+e>16777215)throw new Error(`${t} - ignoring data above MAX_MAP_RANGE.`);!function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}(m,this,_classPrivateFieldGet(m,this)+e)}}class IdentityCMap extends CMap{constructor(e,t){super();this.vertical=e;this.addCodespaceRange(t,0,65535)}mapCidRange(e,t,a){(0,n.unreachable)("should not call mapCidRange")}mapBfRange(e,t,a){(0,n.unreachable)("should not call mapBfRange")}mapBfRangeToArray(e,t,a){(0,n.unreachable)("should not call mapBfRangeToArray")}mapOne(e,t){(0,n.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(e){for(let t=0;t<=65535;t++)e(t,t)}charCodeOf(e){return Number.isInteger(e)&&e<=65535?e:-1}getMap(){(0,n.unreachable)("should not call getMap")}get size(){return 65536}get isIdentityCMap(){(0,n.unreachable)("should not access .isIdentityCMap")}}function strToInt(e){let t=0;for(let a=0;a<e.length;a++)t=t<<8|e.charCodeAt(a);return t>>>0}function expectString(e){if("string"!=typeof e)throw new n.FormatError("Malformed CMap: expected string.")}function expectInt(e){if(!Number.isInteger(e))throw new n.FormatError("Malformed CMap: expected int.")}function parseBfChar(e,t){for(;;){let a=t.getObj();if(a===r.EOF)break;if((0,r.isCmd)(a,"endbfchar"))return;expectString(a);const n=strToInt(a);a=t.getObj();expectString(a);const s=a;e.mapOne(n,s)}}function parseBfRange(e,t){for(;;){let a=t.getObj();if(a===r.EOF)break;if((0,r.isCmd)(a,"endbfrange"))return;expectString(a);const n=strToInt(a);a=t.getObj();expectString(a);const s=strToInt(a);a=t.getObj();if(Number.isInteger(a)||"string"==typeof a){const t=Number.isInteger(a)?String.fromCharCode(a):a;e.mapBfRange(n,s,t)}else{if(!(0,r.isCmd)(a,"["))break;{a=t.getObj();const i=[];for(;!(0,r.isCmd)(a,"]")&&a!==r.EOF;){i.push(a);a=t.getObj()}e.mapBfRangeToArray(n,s,i)}}}throw new n.FormatError("Invalid bf range.")}function parseCidChar(e,t){for(;;){let a=t.getObj();if(a===r.EOF)break;if((0,r.isCmd)(a,"endcidchar"))return;expectString(a);const n=strToInt(a);a=t.getObj();expectInt(a);const s=a;e.mapOne(n,s)}}function parseCidRange(e,t){for(;;){let a=t.getObj();if(a===r.EOF)break;if((0,r.isCmd)(a,"endcidrange"))return;expectString(a);const n=strToInt(a);a=t.getObj();expectString(a);const s=strToInt(a);a=t.getObj();expectInt(a);const i=a;e.mapCidRange(n,s,i)}}function parseCodespaceRange(e,t){for(;;){let a=t.getObj();if(a===r.EOF)break;if((0,r.isCmd)(a,"endcodespacerange"))return;if("string"!=typeof a)break;const n=strToInt(a);a=t.getObj();if("string"!=typeof a)break;const s=strToInt(a);e.addCodespaceRange(a.length,n,s)}throw new n.FormatError("Invalid codespace range.")}function parseWMode(e,t){const a=t.getObj();Number.isInteger(a)&&(e.vertical=!!a)}function parseCMapName(e,t){const a=t.getObj();a instanceof r.Name&&(e.name=a.name)}async function parseCMap(e,t,a,s){let i,o;e:for(;;)try{const a=t.getObj();if(a===r.EOF)break;if(a instanceof r.Name){"WMode"===a.name?parseWMode(e,t):"CMapName"===a.name&&parseCMapName(e,t);i=a}else if(a instanceof r.Cmd)switch(a.cmd){case"endcmap":break e;case"usecmap":i instanceof r.Name&&(o=i.name);break;case"begincodespacerange":parseCodespaceRange(e,t);break;case"beginbfchar":parseBfChar(e,t);break;case"begincidchar":parseCidChar(e,t);break;case"beginbfrange":parseBfRange(e,t);break;case"begincidrange":parseCidRange(e,t)}}catch(e){if(e instanceof h.MissingDataException)throw e;(0,n.warn)("Invalid cMap data: "+e);continue}!s&&o&&(s=o);return s?extendCMap(e,a,s):e}async function extendCMap(e,t,a){e.useCMap=await createBuiltInCMap(a,t);if(0===e.numCodespaceRanges){const t=e.useCMap.codespaceRanges;for(let a=0;a<t.length;a++)e.codespaceRanges[a]=t[a].slice();e.numCodespaceRanges=e.useCMap.numCodespaceRanges}e.useCMap.forEach((t,a)=>{e.contains(t)||e.mapOne(t,a)});return e}async function createBuiltInCMap(e,t){if("Identity-H"===e)return new IdentityCMap(!1,2);if("Identity-V"===e)return new IdentityCMap(!0,2);if(!u.has(e))throw new Error("Unknown CMap name: "+e);const{cMapData:a,cMapPacked:n}=await t(e),s=new CMap(!0);if(n)return(new BinaryCMapReader).process(a,s,e=>extendCMap(s,t,e));const r=new f.Lexer(new o.Stream(a));return parseCMap(s,r,t,null)}class CMapFactory{static async create({encoding:e,fetchBuiltInCMap:t,useCMap:a}){if(e instanceof r.Name)return createBuiltInCMap(e.name,t);if(e instanceof i.BaseStream){if(e.isAsync){const t=await e.asyncGetBytes();t&&(e=new o.Stream(t,0,t.length,e.dict))}const n=await parseCMap(new CMap,new f.Lexer(e),t,a);return n.isIdentityCMap?createBuiltInCMap(n.name,t):n}throw new Error("Encoding required.")}}var b=a(720),w=a(3070),j=a(837),y=a(8294),v=a(8262),k=a(918),q=a(2346),S=a(4950),_=a(4907),C=a(5275),F=a(7092),x=a(3069),T=a(5719),O=a(5709);const M={style:"normal",weight:"normal"},R={style:"normal",weight:"500"},D={style:"normal",weight:"bold"},H={style:"italic",weight:"normal"},N={style:"italic",weight:"bold"},E=new Map([["Times-Roman",{local:["Times New Roman","Times-Roman","Times","Liberation Serif","Nimbus Roman","Nimbus Roman L","Tinos","Thorndale","TeX Gyre Termes","FreeSerif","Linux Libertine O","Libertinus Serif","PT Astra Serif","DejaVu Serif","Bitstream Vera Serif","Ubuntu"],style:M,ultimate:"serif"}],["Times-Bold",{alias:"Times-Roman",style:D,ultimate:"serif"}],["Times-Italic",{alias:"Times-Roman",style:H,ultimate:"serif"}],["Times-BoldItalic",{alias:"Times-Roman",style:N,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"],style:M,ultimate:"sans-serif"}],["Helvetica-Bold",{alias:"Helvetica",style:D,ultimate:"sans-serif"}],["Helvetica-Oblique",{alias:"Helvetica",style:H,ultimate:"sans-serif"}],["Helvetica-BoldOblique",{alias:"Helvetica",style:N,ultimate:"sans-serif"}],["Courier",{local:["Courier","Courier New","Liberation Mono","Nimbus Mono","Nimbus Mono L","Cousine","Cumberland","TeX Gyre Cursor","FreeMono","Linux Libertine Mono O","Libertinus Mono"],style:M,ultimate:"monospace"}],["Courier-Bold",{alias:"Courier",style:D,ultimate:"monospace"}],["Courier-Oblique",{alias:"Courier",style:H,ultimate:"monospace"}],["Courier-BoldOblique",{alias:"Courier",style:N,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:M,fallback:"Helvetica"}],["ArialNarrow-Bold",{alias:"ArialNarrow",style:D,fallback:"Helvetica-Bold"}],["ArialNarrow-Italic",{alias:"ArialNarrow",style:H,fallback:"Helvetica-Oblique"}],["ArialNarrow-BoldItalic",{alias:"ArialNarrow",style:N,fallback:"Helvetica-BoldOblique"}],["Calibri",{local:["Calibri","Carlito"],style:M,fallback:"Helvetica"}],["Calibri-Bold",{alias:"Calibri",style:D,fallback:"Helvetica-Bold"}],["Calibri-Italic",{alias:"Calibri",style:H,fallback:"Helvetica-Oblique"}],["Calibri-BoldItalic",{alias:"Calibri",style:N,fallback:"Helvetica-BoldOblique"}],["Wingdings",{local:["Wingdings","URW Dingbats"],style:M}],["Wingdings-Regular",{alias:"Wingdings"}],["Wingdings-Bold",{alias:"Wingdings"}],["ËÎÌå",{local:["SimSun","SimSun Regular","NSimSun"],style:M,ultimate:"serif"}],["ºÚÌå",{local:["SimHei","SimHei Regular"],style:M,ultimate:"sans-serif"}],["¿¬Ìå",{local:["KaiTi","SimKai","SimKai Regular"],style:M,ultimate:"sans-serif"}],["·ÂËÎ",{local:["FangSong","SimFang","SimFang Regular"],style:M,ultimate:"serif"}],["¿¬Ìå_GB2312",{alias:"¿¬Ìå"}],["·ÂËÎ_GB2312",{alias:"·ÂËÎ"}],["Á¥Êé",{local:["SimLi","SimLi Regular"],style:M,ultimate:"serif"}],["ÐÂËÎ",{alias:"ËÎÌå"}],["HeiseiMin-W3",{local:["Hiragino Mincho ProN","Hiragino Mincho Pro","Yu Mincho","YuMincho","Source Han Serif JP","Noto Serif JP","Noto Serif CJK JP","IPAexMincho","IPAMincho","Takao Mincho","MS Mincho","MS PMincho"],style:M,ultimate:"serif"}],["HeiseiKakuGo-W5",{local:["Hiragino Kaku Gothic ProN","Hiragino Kaku Gothic Pro","Hiragino Sans","Yu Gothic","YuGothic","Source Han Sans JP","Noto Sans JP","Noto Sans CJK JP","IPAexGothic","IPAGothic","Takao Gothic","Meiryo","MS Gothic","MS PGothic"],style:R,ultimate:"sans-serif"}],["HeiseiMin-W3-Acro",{alias:"HeiseiMin-W3"}],["HeiseiKakuGo-W5-Acro",{alias:"HeiseiKakuGo-W5"}],["KozMinPro-Regular",{alias:"HeiseiMin-W3"}],["KozMinProVI-Regular",{alias:"HeiseiMin-W3"}],["KozMinPr6N-Regular",{alias:"HeiseiMin-W3"}],["KozGoPro-Regular",{alias:"HeiseiKakuGo-W5"}],["KozGoProVI-Regular",{alias:"HeiseiKakuGo-W5"}],["KozGoPr6N-Regular",{alias:"HeiseiKakuGo-W5"}],["STSong-Light",{local:["STSong","Songti SC","Source Han Serif SC","Source Han Serif CN","Noto Serif SC","Noto Serif CJK SC","AR PL UMing CN","SimSun","NSimSun"],style:M,ultimate:"serif"}],["STHeiti-Regular",{local:["STHeiti","Heiti SC","PingFang SC","Source Han Sans SC","Source Han Sans CN","Noto Sans SC","Noto Sans CJK SC","Microsoft YaHei","SimHei","WenQuanYi Zen Hei"],style:M,ultimate:"sans-serif"}],["STSongStd-Light",{alias:"STSong-Light"}],["AdobeSongStd-Light",{alias:"STSong-Light"}],["AdobeHeitiStd-Regular",{alias:"STHeiti-Regular"}],["AdobeKaitiStd-Regular",{alias:"¿¬Ìå"}],["AdobeFangsongStd-Regular",{alias:"·ÂËÎ"}],["MSung-Light",{local:["Songti TC","LiSong Pro","Source Han Serif TC","Source Han Serif TW","Noto Serif TC","Noto Serif CJK TC","AR PL UMing TW","PMingLiU","MingLiU","MingLiU_HKSCS"],style:M,ultimate:"serif"}],["MHei-Medium",{local:["Heiti TC","STHeiti","Source Han Sans TC","Source Han Sans TW","Noto Sans TC","Noto Sans CJK TC","PingFang TC","Microsoft JhengHei"],style:R,ultimate:"sans-serif"}],["MSungStd-Light",{alias:"MSung-Light"}],["AdobeMingStd-Light",{alias:"MSung-Light"}],["HYSMyeongJo-Medium",{local:["AppleMyungjo","Source Han Serif KR","Noto Serif KR","Noto Serif CJK KR","Nanum Myeongjo","Batang"],style:R,ultimate:"serif"}],["HYGoThic-Medium",{local:["Apple SD Gothic Neo","AppleGothic","Source Han Sans KR","Noto Sans KR","Noto Sans CJK KR","Nanum Gothic","Malgun Gothic","Dotum","Gulim"],style:R,ultimate:"sans-serif"}],["HYSMyeongJoStd-Medium",{alias:"HYSMyeongJo-Medium"}],["AdobeMyungjoStd-Medium",{alias:"HYSMyeongJo-Medium"}],["HYGoThic-Bold",{alias:"HYGoThic-Medium",style:D}],["AdobeGothicStd-Bold",{alias:"HYGoThic-Medium",style:D}]]),z=new Map([["Arial-Black","ArialBlack"]]);function getFamilyName(e){const t=new Set(["thin","extralight","ultralight","demilight","semilight","light","book","regular","normal","medium","demibold","semibold","bold","extrabold","ultrabold","black","heavy","extrablack","ultrablack","roman","italic","oblique","ultracondensed","extracondensed","condensed","semicondensed","normal","semiexpanded","expanded","extraexpanded","ultraexpanded","bolditalic"]);return e.split(/[- ,+]+/g).filter(e=>!t.has(e.toLowerCase())).join(" ")}function generateFont({alias:e,local:t,fallback:a,style:n,ultimate:s},r,i=!0,o=""){const l={style:null,ultimate:null};if(t){const e=o?` ${o}`:"";for(const a of t)r.push(`local(${a}${e})`)}if(e){const t=E.get(e),s=o||function getStyleToAppend(e){switch(e){case D:return"Bold";case H:return"Italic";case N:return"Bold Italic";default:if("bold"===e?.weight)return"Bold";if("italic"===e?.style)return"Italic"}return""}(n);Object.assign(l,generateFont(t,r,i&&!a,s))}n&&(l.style=n);s&&(l.ultimate=s);if(i&&a){const e=E.get(a),{ultimate:t}=generateFont(e,r,i,o);l.ultimate||=t}return l}function getFontSubstitution(e,t,a,s,r){if(a.startsWith("InvalidPDFjsFont_"))return null;"TrueType"!==r&&"Type1"!==r||!/^[A-Z]{6}\+/.test(a)||(a=a.slice(7));const i=a=(0,b.normalizeFontName)(a);let o=e.get(i);if(o)return o;let l=E.get(a);if(!l)for(const[e,t]of z)if(a.startsWith(e)){a=`${t}${a.substring(e.length)}`;l=E.get(a);break}let c=!1;if(!l){l=E.get(s);c=!0}const f=`${t.getDocId()}_s${t.createFontId()}`;if(!l){if(!(0,h.validateFontName)(a)){(0,n.warn)(`Cannot substitute the font because of its name: ${a}`);e.set(i,null);return null}const t=/bold/i.test(a),s=/oblique|italic/i.test(a),r=t&&s&&N||t&&D||s&&H||M;o={css:`"${getFamilyName(a)}",${f}`,guessFallback:!0,loadedName:f,baseFontName:a,src:`local(${a})`,style:r};e.set(i,o);return o}const u=[];c&&(0,h.validateFontName)(a)&&u.push(`local(${a})`);const{style:d,ultimate:m}=generateFont(l,u),g=null===m,w=g?"":`,${m}`;o={css:`"${getFamilyName(a)}",${f}${w}`,guessFallback:g,loadedName:f,baseFontName:a,src:u.join(","),style:d};e.set(i,o);return o}var L=a(8270),$=a(629),U=a(115);function font_data_files(e,t,a,n,s,r){try{const f=ne.__wbindgen_add_to_stack_pointer(-16);ne.font_data_files(f,e,t,a,n,s,r);var i=getDataViewMemory0().getInt32(f+0,!0),o=getDataViewMemory0().getInt32(f+4,!0),l=getDataViewMemory0().getInt32(f+8,!0);if(getDataViewMemory0().getInt32(f+12,!0))throw takeObject(l);var c=getArrayJsValueFromWasm0(i,o);ne.__wbindgen_free(i,4*o,4);return c}finally{ne.__wbindgen_add_to_stack_pointer(16)}}function generate_standard_font(e,t,a,n,s,r,i){try{const d=ne.__wbindgen_add_to_stack_pointer(-16),m=passArray32ToWasm0(e,ne.__wbindgen_malloc),g=se,b=passArray32ToWasm0(t,ne.__wbindgen_malloc),w=se,j=passArrayF64ToWasm0(a,ne.__wbindgen_malloc),y=se,v=passArray32ToWasm0(n,ne.__wbindgen_malloc),k=se,q=passStringToWasm0(s,ne.__wbindgen_malloc,ne.__wbindgen_realloc),S=se;var o=isLikeNone(i)?0:passArrayF64ToWasm0(i,ne.__wbindgen_malloc),l=se;ne.generate_standard_font(d,m,g,b,w,j,y,v,k,q,S,!isLikeNone(r),isLikeNone(r)?0:r,o,l);var c=getDataViewMemory0().getInt32(d+0,!0),f=getDataViewMemory0().getInt32(d+4,!0),h=getDataViewMemory0().getInt32(d+8,!0);if(getDataViewMemory0().getInt32(d+12,!0))throw takeObject(h);var u=getArrayU8FromWasm0(c,f).slice();ne.__wbindgen_free(c,1*f,1);return u}finally{ne.__wbindgen_add_to_stack_pointer(16)}}function has_data(e){const t=passStringToWasm0(e,ne.__wbindgen_malloc,ne.__wbindgen_realloc),a=se;return 0!==ne.has_data(t,a)}function set_data(e,t){try{const n=ne.__wbindgen_add_to_stack_pointer(-16),s=passStringToWasm0(e,ne.__wbindgen_malloc,ne.__wbindgen_realloc),r=se,i=function passArray8ToWasm0(e,t){const a=t(1*e.length,1)>>>0;getUint8ArrayMemory0().set(e,a/1);se=e.length;return a}(t,ne.__wbindgen_malloc),o=se;ne.set_data(n,s,r,i,o);var a=getDataViewMemory0().getInt32(n+0,!0);if(getDataViewMemory0().getInt32(n+4,!0))throw takeObject(a)}finally{ne.__wbindgen_add_to_stack_pointer(16)}}function standard_font_data_files(e){try{const r=ne.__wbindgen_add_to_stack_pointer(-16),i=passStringToWasm0(e,ne.__wbindgen_malloc,ne.__wbindgen_realloc),o=se;ne.standard_font_data_files(r,i,o);var t=getDataViewMemory0().getInt32(r+0,!0),a=getDataViewMemory0().getInt32(r+4,!0),n=getDataViewMemory0().getInt32(r+8,!0);if(getDataViewMemory0().getInt32(r+12,!0))throw takeObject(n);var s=getArrayJsValueFromWasm0(t,a);ne.__wbindgen_free(t,4*a,4);return s}finally{ne.__wbindgen_add_to_stack_pointer(16)}}function __wbg_get_imports(){return{__proto__:null,"./hellbox_bg.js":{__proto__:null,__wbg_Error_30c8987f7c2ed4e2:function(e,t){return addHeapObject(Error(getStringFromWasm0(e,t)))},__wbindgen_generic_0000000000000001:function(e,t){return addHeapObject(getStringFromWasm0(e,t))}}}}function addHeapObject(e){Y===V.length&&V.push(V.length+1);const t=Y;Y=V[t];V[t]=e;return t}function getArrayJsValueFromWasm0(e,t){e>>>=0;const a=getDataViewMemory0(),n=[];for(let s=e;s<e+4*t;s+=4)n.push(takeObject(a.getUint32(s,!0)));return n}function getArrayU32FromWasm0(e,t){e>>>=0;return getUint32ArrayMemory0().subarray(e/4,e/4+t)}function getArrayU8FromWasm0(e,t){e>>>=0;return getUint8ArrayMemory0().subarray(e/1,e/1+t)}let G=null;function getDataViewMemory0(){null!==G&&G.buffer===ne.memory.buffer||(G=new DataView(ne.memory.buffer));return G}let W=null;function getStringFromWasm0(e,t){return function decodeText(e,t){Z+=t;if(Z>=Q){J=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});J.decode();Z=t}return J.decode(getUint8ArrayMemory0().subarray(e,e+t))}(e>>>0,t)}let X=null;function getUint32ArrayMemory0(){null!==X&&X.buffer===ne.memory.buffer||(X=new Uint32Array(ne.memory.buffer));return X}let K=null;function getUint8ArrayMemory0(){null!==K&&K.buffer===ne.memory.buffer||(K=new Uint8Array(ne.memory.buffer));return K}let V=new Array(1024).fill(void 0);V.push(void 0,null,!0,!1);let Y=V.length;function isLikeNone(e){return null==e}function passArray32ToWasm0(e,t){const a=t(4*e.length,4)>>>0;getUint32ArrayMemory0().set(e,a/4);se=e.length;return a}function passArrayF64ToWasm0(e,t){const a=t(8*e.length,8)>>>0;(function getFloat64ArrayMemory0(){null!==W&&W.buffer===ne.memory.buffer||(W=new Float64Array(ne.memory.buffer));return W})().set(e,a/8);se=e.length;return a}function passStringToWasm0(e,t,a){if(void 0===a){const a=ee.encode(e),n=t(a.length,1)>>>0;getUint8ArrayMemory0().subarray(n,n+a.length).set(a);se=a.length;return n}let n=e.length,s=t(n,1)>>>0;const r=getUint8ArrayMemory0();let i=0;for(;i<n;i++){const t=e.charCodeAt(i);if(t>127)break;r[s+i]=t}if(i!==n){0!==i&&(e=e.slice(i));s=a(s,n,n=i+3*e.length,1)>>>0;const t=getUint8ArrayMemory0().subarray(s+i,s+n);i+=ee.encodeInto(e,t).written;s=a(s,n,i,1)>>>0}se=i;return s}function takeObject(e){const t=function getObject(e){return V[e]}(e);!function dropObject(e){if(!(e<1028)){V[e]=Y;Y=e}}(e);return t}let J=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});J.decode();const Q=2146435072;let Z=0;const ee=new TextEncoder;"encodeInto"in ee||(ee.encodeInto=function(e,t){const a=ee.encode(e);t.set(a);return{read:e.length,written:a.length}});let te,ae,ne,se=0;function __wbg_finalize_init(e,t){ae=e;ne=e.exports;te=t;G=null;W=null;X=null;K=null;return ne}var re;function hellbox_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const ie=new Map([["Courier",2],["Helvetica",0],["Times",1]]);class Hellbox{static async generate(e,t){const{standardFontName:a}=t;if(!a||t.vertical||t.cssFontInfo)return;const s=!t.systemFontInfo||"Symbol"===a||"ZapfDingbats"===a;if(e.options.disableFontFace&&!s)return;if(!await hellbox_assertClassBrand(Hellbox,this,_load).call(this,e))return;const r=t.black?900:0,i=r?ie.get(a.split("-",1)[0]):void 0,o=/Oblique|Italic/.test(a),l=t.getMissingFileGlyphs(s),c=Uint32Array.from(l,e=>e.codePoint),f=new Uint32Array(c.length).fill(1);try{const n=void 0===i?standard_font_data_files(a):[...font_data_files(i,!1,!1,0,0,0),...font_data_files(i,!1,o,r,0,0)];await hellbox_assertClassBrand(Hellbox,this,_loadData).call(this,e,n);const h=new Set(void 0===i?function missing_standard_glyphs(e,t,a){try{const o=ne.__wbindgen_add_to_stack_pointer(-16),l=passArray32ToWasm0(e,ne.__wbindgen_malloc),c=se,f=passArray32ToWasm0(t,ne.__wbindgen_malloc),h=se,u=passStringToWasm0(a,ne.__wbindgen_malloc,ne.__wbindgen_realloc),d=se;ne.missing_standard_glyphs(o,l,c,f,h,u,d);var n=getDataViewMemory0().getInt32(o+0,!0),s=getDataViewMemory0().getInt32(o+4,!0),r=getDataViewMemory0().getInt32(o+8,!0);if(getDataViewMemory0().getInt32(o+12,!0))throw takeObject(r);var i=getArrayU32FromWasm0(n,s).slice();ne.__wbindgen_free(n,4*s,4);return i}finally{ne.__wbindgen_add_to_stack_pointer(16)}}(c,f,a):function missing_glyphs(e,t,a){try{const o=ne.__wbindgen_add_to_stack_pointer(-16),l=passArray32ToWasm0(e,ne.__wbindgen_malloc),c=se,f=passArray32ToWasm0(t,ne.__wbindgen_malloc),h=se;ne.missing_glyphs(o,l,c,f,h,a);var n=getDataViewMemory0().getInt32(o+0,!0),s=getDataViewMemory0().getInt32(o+4,!0),r=getDataViewMemory0().getInt32(o+8,!0);if(getDataViewMemory0().getInt32(o+12,!0))throw takeObject(r);var i=getArrayU32FromWasm0(n,s).slice();ne.__wbindgen_free(n,4*s,4);return i}finally{ne.__wbindgen_add_to_stack_pointer(16)}}(c,f,i)),u=l.filter((e,t)=>!h.has(t)).slice(0,65534);if(0===u.length)return;const d=new Map,m=new Set;let g=983040;const b=Uint32Array.from(u,({codePoint:e,charCodes:t})=>{if(!m.has(e)){m.add(e);return e}for(const e of t)d.set(e,g);return g++}),w=[Uint32Array.from(u,e=>e.codePoint),f.subarray(0,u.length),Float64Array.from(u,e=>e.width??NaN),b],j=void 0===i?generate_standard_font(...w,a):function generate_font(e,t,a,n,s,r,i,o,l,c,f,h,u){try{const y=ne.__wbindgen_add_to_stack_pointer(-16),v=passArray32ToWasm0(e,ne.__wbindgen_malloc),k=se,q=passArray32ToWasm0(t,ne.__wbindgen_malloc),S=se,_=passArrayF64ToWasm0(a,ne.__wbindgen_malloc),C=se,F=passArray32ToWasm0(n,ne.__wbindgen_malloc),x=se;var d=isLikeNone(u)?0:passArrayF64ToWasm0(u,ne.__wbindgen_malloc),m=se;ne.generate_font(y,v,k,q,S,_,C,F,x,s,r,i,o,l,c,f,!isLikeNone(h),isLikeNone(h)?0:h,d,m);var g=getDataViewMemory0().getInt32(y+0,!0),b=getDataViewMemory0().getInt32(y+4,!0),w=getDataViewMemory0().getInt32(y+8,!0);if(getDataViewMemory0().getInt32(y+12,!0))throw takeObject(w);var j=getArrayU8FromWasm0(g,b).slice();ne.__wbindgen_free(g,1*b,1);return j}finally{ne.__wbindgen_add_to_stack_pointer(16)}}(...w,i,!1,o,r,0,0,0);t.setGeneratedFont({data:j,codePoints:b,toFontChar:d},s)}catch(e){(0,n.warn)(`Hellbox.generate - "${t.name}": "${e}".`)}}static async generateXfaFont(e,t,a){if(!await hellbox_assertClassBrand(Hellbox,this,_load).call(this,e))return null;try{await hellbox_assertClassBrand(Hellbox,this,_loadData).call(this,e,standard_font_data_files(t));const n=new Map;for(let e=0,t=a.length-1;e<t;e+=2){const t=a[e];for(const[s,r]of a[e+1].entries())n.set(t+s,r)}const s=function standard_font_codepoints(e){try{const r=ne.__wbindgen_add_to_stack_pointer(-16),i=passStringToWasm0(e,ne.__wbindgen_malloc,ne.__wbindgen_realloc),o=se;ne.standard_font_codepoints(r,i,o);var t=getDataViewMemory0().getInt32(r+0,!0),a=getDataViewMemory0().getInt32(r+4,!0),n=getDataViewMemory0().getInt32(r+8,!0);if(getDataViewMemory0().getInt32(r+12,!0))throw takeObject(n);var s=getArrayU32FromWasm0(t,a).slice();ne.__wbindgen_free(t,4*a,4);return s}finally{ne.__wbindgen_add_to_stack_pointer(16)}}(t);return generate_standard_font(s,new Uint32Array(s.length).fill(1),Float64Array.from(s,e=>n.get(e)??NaN),new Uint32Array(0),t)}catch(e){(0,n.warn)(`Hellbox.generateXfaFont - "${t}": "${e}".`);return null}}}re=Hellbox;async function _load(e){const{standardFontDataUrl:t,useWorkerFetch:a,wasmUrl:n}=e.options;return!!(!a||n&&t)&&(hellbox_assertClassBrand(re,this,oe)._||hellbox_assertClassBrand(re,this,le)._.getOrInsertComputed(e.handler,()=>w.WasmLoader.load(e,"hellbox_bg.wasm","hellbox_nowasm_fallback.js",e=>{!function initJs(e){return void 0!==ne?ne:__wbg_finalize_init({exports:e(__wbg_get_imports())},void 0)}(e);oe._=hellbox_assertClassBrand(re,this,!0)})))}function _loadData(e,t){const a=hellbox_assertClassBrand(re,this,ce)._.getOrInsertComputed(e.handler,n.makeMap);return Promise.all(t.map(t=>has_data(t)?null:a.getOrInsertComputed(t,()=>w.WasmLoader.fetch(e,"standardFontDataUrl",t).then(e=>{has_data(t)||set_data(t,e)}).finally(()=>a.delete(t)))))}var oe={_:!1},le={_:new WeakMap},ce={_:new WeakMap},fe=a(7651),he=a(8545),ue=a(5389);function evaluator_classPrivateFieldInitSpec(e,t,a){evaluator_checkPrivateRedeclaration(e,t),t.set(e,a)}function evaluator_classPrivateFieldSet(e,t,a){return e.set(evaluator_assertClassBrand(e,t),a),a}function evaluator_classPrivateFieldGet(e,t){return e.get(evaluator_assertClassBrand(e,t))}function evaluator_classPrivateMethodInitSpec(e,t){evaluator_checkPrivateRedeclaration(e,t),t.add(e)}function evaluator_checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function evaluator_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}function evaluator_defineProperty(e,t,a){return(t=function evaluator_toPropertyKey(e){var t=function evaluator_toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const de=Object.freeze({disableFontFace:!1,ignoreErrors:!1,isOffscreenCanvasSupported:!1,isImageDecoderSupported:!1,canvasMaxAreaInBytes:-1,fontExtraProperties:!1,useSystemFonts:!0,useWasm:!0,useWorkerFetch:!0,cMapUrl:null,cMapPacked:!0,iccUrl:null,standardFontDataUrl:null,wasmUrl:null}),pe=1,me=2,ge=Promise.resolve(),argIsDict=e=>e instanceof r.Dict;function normalizeBlendMode(e,t=!1){if(Array.isArray(e)){for(const t of e){const e=normalizeBlendMode(t,!0);if(e)return e}(0,n.warn)(`Unsupported blend mode Array: ${e}`);return"source-over"}if(e instanceof r.Name){switch(e.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"}(0,n.warn)(`Unsupported blend mode: ${e.name}`)}return t?null:"source-over"}function addCachedImageOps(e,{objId:t,fn:a,args:s,optionalContent:r,hasMask:i}){t&&e.addDependency(t);e.addImageOps(a,s,r,i);a===n.OPS.paintImageMaskXObject&&s[0]?.count>0&&s[0].count++}class TimeSlotManager{constructor(){this.reset()}check(){if(++this.checked<TimeSlotManager.CHECK_TIME_EVERY)return!1;this.checked=0;return this.endTime<=Date.now()}reset(){this.endTime=Date.now()+TimeSlotManager.TIME_SLOT_DURATION_MS;this.checked=0}}evaluator_defineProperty(TimeSlotManager,"TIME_SLOT_DURATION_MS",20);evaluator_defineProperty(TimeSlotManager,"CHECK_TIME_EVERY",100);var be=new WeakSet;class PartialEvaluator{constructor({xref:e,handler:t,pageIndex:a,pageProxyId:n=null,idFactory:s,fontCache:r,builtInCMapCache:i,globalColorSpaceCache:o,globalImageCache:l,systemFontCache:c,options:f=de}){evaluator_classPrivateMethodInitSpec(this,be);evaluator_defineProperty(this,"_regionalImageCache",new _.RegionalImageCache);evaluator_defineProperty(this,"type3FontRefs",null);this.xref=e;this.handler=t;this.pageIndex=a;this.pageProxyId=n;this.idFactory=s;this.fontCache=r;this.globalColorSpaceCache=o;this.globalImageCache=l;this.systemFontCache=c;this.options=f;const h=this.fetchBuiltInCMap.bind(this);this._fetchBuiltInCMapBound=e=>i.getOrInsertComputed(e,h)}get _pdfFunctionFactory(){return(0,n.shadow)(this,"_pdfFunctionFactory",new S.PDFFunctionFactory({xref:this.xref}))}get parsingType3Font(){return!!this.type3FontRefs}clone(e=null){const t=Object.create(this);t.options=Object.assign(Object.create(null),this.options,e);return t}hasBlendModes(e,t){if(!(e instanceof r.Dict))return!1;if(e.objId&&t.has(e.objId))return!1;const a=new r.RefSet(t);e.objId&&a.put(e.objId);const s=[e],o=this.xref;for(;s.length;){const e=s.shift(),t=e.get("ExtGState");if(t instanceof r.Dict)for(let e of t.getRawValues()){if(e instanceof r.Ref){if(a.has(e))continue;try{e=o.fetch(e)}catch(t){a.put(e);(0,n.info)(`hasBlendModes - ignoring ExtGState: "${t}".`);continue}}if(!(e instanceof r.Dict))continue;e.objId&&a.put(e.objId);const t=e.get("BM");if(t instanceof r.Name){if("Normal"!==t.name)return!0}else if(void 0!==t&&Array.isArray(t))for(const e of t)if(e instanceof r.Name&&"Normal"!==e.name)return!0}const l=e.get("XObject");if(l instanceof r.Dict)for(let e of l.getRawValues()){if(e instanceof r.Ref){if(a.has(e))continue;try{e=o.fetch(e)}catch(t){a.put(e);(0,n.info)(`hasBlendModes - ignoring XObject: "${t}".`);continue}}if(!(e instanceof i.BaseStream))continue;e.dict.objId&&a.put(e.dict.objId);const t=e.dict.get("Resources");if(t instanceof r.Dict&&(!t.objId||!a.has(t.objId))){s.push(t);t.objId&&a.put(t.objId)}}}for(const e of a)t.put(e);return!1}async fetchBuiltInCMap(e){const{cMapPacked:t,useWorkerFetch:a}=this.options;let{cMapUrl:n}=this.options;"function"==typeof n&&(n=n());let s=await w.WasmLoader.fetch({handler:this.handler,options:{cMapUrl:n,useWorkerFetch:a&&t}},"cMapUrl",`${e}${t?".bcmap.br":""}`);t&&(s=await(0,w.decodeBrotli)(s));return{cMapData:s,cMapPacked:t}}async buildFormXObject(e,t,a,i,o,l,c,f){const{dict:u}=t,d=(0,h.lookupMatrix)(u.getArray("Matrix"),null),m=(0,h.lookupNormalRect)(u.getArray("BBox"),null);let g,b,w=m&&new Float32Array(m);w?.some(e=>!isFinite(e))&&(w=null);u.has("OC")&&(g=await this.parseMarkedContentProps(u.get("OC"),e));void 0!==g&&i.addOp(n.OPS.beginMarkedContentProps,["OC",g]);const j=u.get("Group");let y;const v=[d&&new Float32Array(d),!j&&w||null],k=u.get("Resources");if(j){b={matrix:d,bbox:w,smask:a,isolated:!1,knockout:!1,needsIsolation:!1,hasSoftMask:!1,isGray:!1};const t=j.get("S");let n=null;if((0,r.isName)(t,"Transparency")){b.isolated=j.get("I")||!1;b.knockout=j.get("K")||!1;if(j.has("CS")){const t=this._getColorSpace(j.getRaw("CS"),e,c);n=t instanceof x.ColorSpace?t:await this._handleColorSpace(t)}}b.isGray=1===n?.numComps;if(a?.backdrop){n||=T.ColorSpaceUtils.rgb;a.backdrop=n.getRgbHex(a.backdrop,0)}else"Luminosity"===a?.subtype&&(a.backdrop="#000000");y=new s.CheckedOperatorList}else{y=i;i.addOp(n.OPS.paintFormXObjectBegin,v)}await this.getOperatorList({stream:t,task:o,resources:k instanceof r.Dict?k:e,operatorList:y,initialState:l,prevRefs:f});if(j){b.needsIsolation=y.needsIsolation||!!a;b.hasSoftMask=y.hasSoftMask||!!a;i.addOp(n.OPS.beginGroup,[b]);i.addOp(n.OPS.paintFormXObjectBegin,v);i.addOpList(y);i.addOp(n.OPS.paintFormXObjectEnd,[]);i.addOp(n.OPS.endGroup,[b])}else i.addOp(n.OPS.paintFormXObjectEnd,[]);void 0!==g&&i.addOp(n.OPS.endMarkedContent,[])}_sendImgData(e,t,a=!1){const n=t?[t.bitmap||t.data.buffer]:null;return this.parsingType3Font||a?this.handler.send("commonobj",[e,"Image",t],n):this.handler.send("obj",[e,this.pageProxyId,"Image",t],n)}async buildPaintImageXObject({resources:e,image:t,isInline:a=!1,operatorList:s,cacheKey:r,localImageCache:i,localColorSpaceCache:o}){const{ignoreErrors:l,isOffscreenCanvasSupported:c}=this.options,{dict:f}=t,h=f.objId,u=f.get("W","Width"),d=f.get("H","Height");if(!u||"number"!=typeof u||!d||"number"!=typeof d){(0,n.warn)("Image dimensions are missing, or not numbers.");return}let m;f.has("OC")&&(m=await this.parseMarkedContentProps(f.get("OC"),e));let g,w,j;if(f.get("IM","ImageMask")||!1){g=await he.PDFImage.createMask({image:t,isOffscreenCanvasSupported:c&&!this.parsingType3Font});if(g.isSingleOpaquePixel){w=n.OPS.paintSolidColorImageMask;j=[];s.addImageOps(w,j,m);if(r){const e={fn:w,args:j,optionalContent:m};i.set(r,h,e);h&&this._regionalImageCache.set(null,h,e)}return}if(this.parsingType3Font){j=(0,b.compileType3Glyph)(g);if(j){s.addImageOps(n.OPS.constructPath,j,m);return}(0,n.warn)("Cannot compile Type3 glyph.");s.addImageOps(n.OPS.paintImageMaskXObject,[g],m);return}const e=`mask_${this.idFactory.createObjId()}`;s.addDependency(e);g.dataLen=g.bitmap?g.width*g.height*4:g.data.length;this._sendImgData(e,g);w=n.OPS.paintImageMaskXObject;j=[{data:e,width:g.width,height:g.height,interpolate:g.interpolate,count:1}];s.addImageOps(w,j,m);if(r){const t={objId:e,fn:w,args:j,optionalContent:m};i.set(r,h,t);h&&this._regionalImageCache.set(null,h,t)}return}const y=f.has("SMask")||f.has("Mask");if(a&&u+d<200&&!y){try{const r=await he.PDFImage.buildImage({xref:this.xref,res:e,image:t,isInline:a,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:o});g=await r.createImageData(!0,!1);s.addImageOps(n.OPS.paintInlineImageXObject,[g],m)}catch(e){const t=`Unable to decode inline image: "${e}".`;if(!l)throw new Error(t);(0,n.warn)(t)}return}let v=`img_${this.idFactory.createObjId()}`,k=!1,q=!1,S=null;if(this.parsingType3Font)v=`${this.idFactory.getDocId()}_type3_${v}`;else if(r&&h){k=this.globalImageCache.shouldCache(h,this.pageIndex);if(k){(0,n.assert)(!a,"Cannot cache an inline image globally.");v=`${this.idFactory.getDocId()}_${v}`}else if(null!==this.pageProxyId){this.globalImageCache.startDecodedImage(h,this.pageProxyId);q=!0}}s.addDependency(v);w=n.OPS.paintImageXObject;j=[v,u,d];s.addImageOps(w,j,m,y);if(k){S={objId:v,fn:w,args:j,optionalContent:m,hasMask:y,byteSize:0};if(this.globalImageCache.hasDecodeFailed(h)){this.globalImageCache.setData(h,S);this._sendImgData(v,null,k);return}const e=this.globalImageCache.takeDecodedImage(h);if(e){this.globalImageCache.setData(h,S);this.globalImageCache.addByteSize(h,e.dataLen);this._sendImgData(v,e,k);return}if(u*d>25e4||y){const e=await this.handler.sendWithPromise("commonobj",[v,"CopyLocalImage",{imageRef:h}]);if(e){this.globalImageCache.setData(h,S);this.globalImageCache.addByteSize(h,e);return}}}he.PDFImage.buildImage({xref:this.xref,res:e,image:t,isInline:a,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:o}).then(async e=>{g=await e.createImageData(!1,c);g.dataLen=g.bitmap?g.width*g.height*4:g.data.length;g.ref=h;k?this.globalImageCache.addByteSize(h,g.dataLen):q&&this.globalImageCache.setDecodedImage(h,g);return this._sendImgData(v,g,k)}).catch(e=>{(0,n.warn)(`Unable to decode image "${v}": "${e}".`);h&&this.globalImageCache.addDecodeFailed(h);return this._sendImgData(v,null,k)});if(r){const e={objId:v,fn:w,args:j,optionalContent:m,hasMask:y};i.set(r,h,e);if(h){this._regionalImageCache.set(null,h,e);if(k){(0,n.assert)(S,"The global cache-data must be available.");this.globalImageCache.setData(h,S)}}}}async handleSMask(e,t,a,n,s,r,i){const o=e.get("G"),l={subtype:e.get("S").name,backdrop:e.get("BC")},c=e.get("TR");(0,S.isPDFFunction)(c)&&(l.transferMap=await evaluator_assertClassBrand(be,this,_createTransferMap).call(this,c));return this.buildFormXObject(t,o,l,a,n,s.state.clone({newPath:!0}),r,i)}async handleTransferFunction(e){let t;if(Array.isArray(e))t=e.length>1&&e.every(t=>t===e[0])?[e[0]]:e;else{if(!(0,S.isPDFFunction)(e))return null;t=[e]}const a=[];let n=0,s=0;for(const e of t){const t=this.xref.fetchIfRef(e);n++;if((0,r.isName)(t,"Identity"))a.push(null);else{if(!(0,S.isPDFFunction)(t))return null;a.push(await evaluator_assertClassBrand(be,this,_createTransferMap).call(this,t));s++}}return 1!==n&&4!==n||0===s?null:a}handleTilingType(e,t,a,i,o,l,c,f,h){const u=new s.CheckedOperatorList,d=r.Dict.merge({xref:this.xref,dictArray:[o.get("Resources"),a]});return this.getOperatorList({stream:i,task:c,resources:d,operatorList:u,prevRefs:h}).then(function(){const a=u.getIR(),{needsIsolation:n}=u,s=(0,k.getTilingPatternIR)(a,o,t,n);l.addDependencies(u.dependencies);l.addOp(e,s);o.objId&&f.set(null,o.objId,{operatorListIR:a,needsIsolation:n,dict:o})}).catch(e=>{if(!(e instanceof n.AbortException)){if(!this.options.ignoreErrors)throw e;(0,n.warn)(`handleTilingType - ignoring pattern: "${e}".`)}})}async handleSetFont(e,t,a,n,s,i,o=null,l=null,c=null){const f=t?.[0]instanceof r.Name?t[0].name:null,h=await this.loadFont(f,a,e,s,o,l,c);h.font.isType3Font&&n.addDependencies(h.type3Dependencies);i.font=h.font;h.send(this.handler);return h.loadedName}handleText(e,t){const a=t.font,s=a.charsToGlyphs(e);if(a.data&&!a.missingFile){(!!(t.textRenderingMode&n.TextRenderingMode.ADD_TO_PATH_FLAG)||"Pattern"===t.fillColorSpace.name||"Pattern"===t.strokeColorSpace.name||a.disableFontFace)&&PartialEvaluator.buildFontPaths(a,s,this.handler,this.options)}return s}ensureStateFont(e){if(e.font)return;const t=new n.FormatError("Missing setFont (Tf) operator before text rendering operator.");if(!this.options.ignoreErrors)throw t;(0,n.warn)(`ensureStateFont: "${t}".`)}async setGState({resources:e,gState:t,operatorList:a,cacheKey:s,task:i,stateManager:o,localGStateCache:l,localColorSpaceCache:c,seenRefs:f}){const h=t.objId;let u=!0;const d=[];let m=Promise.resolve();for(const[s,l]of t)switch(s){case"Type":break;case"LW":if("number"!=typeof l){(0,n.warn)(`Invalid LW (line width): ${l}`);break}d.push([s,Math.abs(l)]);break;case"LC":case"LJ":case"ML":case"D":case"RI":case"FL":case"CA":case"ca":d.push([s,l]);break;case"Font":u=!1;m=m.then(()=>this.handleSetFont(e,null,l[0],a,i,o.state,null,null,f).then(function(e){a.addDependency(e);d.push([s,[e,l[1]]])}));break;case"BM":d.push([s,normalizeBlendMode(l)]);break;case"SMask":if((0,r.isName)(l,"None")){d.push([s,!1]);break}if(l instanceof r.Dict){u=!1;m=m.then(()=>this.handleSMask(l,e,a,i,o,c,f));d.push([s,!0])}else(0,n.warn)("Unsupported SMask type");break;case"TR":if(t.has("TR2"))break;case"TR2":{const e=await this.handleTransferFunction(l);d.push(["TR",e]);break}case"OP":case"op":case"OPM":case"BG":case"BG2":case"UCR":case"UCR2":case"HT":case"SM":case"SA":case"AIS":case"TK":(0,n.info)("graphic state operator "+s);break;default:(0,n.info)("Unknown graphic state operator "+s)}await m;d.length>0&&a.addOp(n.OPS.setGState,[d]);u&&l.set(s,h,d)}loadFont(e,t,a,s,i=null,o=null,l=null){const errorFont=async()=>new TranslatedFont({loadedName:"g_font_error",font:new j.ErrorFont(`Font "${e}" is not available.`),dict:t});let c;if(t)t instanceof r.Ref&&(c=t);else{const t=a.get("Font");t&&(c=t.getRaw(e))}if(c){if(this.type3FontRefs?.has(c))return errorFont();if(this.fontCache.has(c))return this.fontCache.get(c);try{t=this.xref.fetchIfRef(c)}catch(e){(0,n.warn)(`loadFont - lookup failed: "${e}".`)}}if(!(t instanceof r.Dict)){if(!this.options.ignoreErrors&&!this.parsingType3Font){(0,n.warn)(`Font "${e}" is not available.`);return errorFont()}(0,n.warn)(`Font "${e}" is not available -- attempting to fallback to a default font.`);t=i||PartialEvaluator.fallbackFontDict}if(t.cacheKey&&this.fontCache.has(t.cacheKey))return this.fontCache.get(t.cacheKey);const{promise:f,resolve:h}=(0,n.createPromiseCapability)();let u;try{u=this.preEvaluateFont(t);u.cssFontInfo=o}catch(e){(0,n.warn)(`loadFont - preEvaluateFont failed: "${e}".`);return errorFont()}const{descriptor:d,hash:m}=u,g=c instanceof r.Ref;let b;if(m&&d instanceof r.Dict){const e=d.fontAliases||=Object.create(null);if(e[m]){const t=e[m].aliasRef;if(g&&t&&this.fontCache.has(t)){this.fontCache.putAlias(c,t);return this.fontCache.get(c)}}else e[m]={fontID:this.idFactory.createFontId()};g&&(e[m].aliasRef=c);b=e[m].fontID}else b=this.idFactory.createFontId();(0,n.assert)(b?.startsWith("f"),'The "fontID" must be (correctly) defined.');if(g)this.fontCache.put(c,f);else{t.cacheKey=`cacheKey_${b}`;this.fontCache.put(t.cacheKey,f)}const w=`${this.idFactory.getDocId()}_${b}`;this.translateFont(u,w).then(async e=>{const n=new TranslatedFont({loadedName:w,font:e,dict:t});if(e.isType3Font)try{await n.loadType3Data(this,a,s,l)}catch(e){throw new Error(`Type3 font load error: ${e}`)}h(n)}).catch(e=>{(0,n.warn)(`loadFont - translateFont failed: "${e}".`);h(new TranslatedFont({loadedName:w,font:new j.ErrorFont(e?.message),dict:t}))});return f}buildPath(e,t,a){const{pathMinMax:s,pathBuffer:r}=a;switch(0|e){case n.OPS.rectangle:{const e=a.currentPointX=t[0],i=a.currentPointY=t[1],o=t[2],l=t[3],c=e+o,f=i+l;0===o||0===l?r.push(n.DrawOPS.moveTo,e,i,n.DrawOPS.lineTo,c,f,n.DrawOPS.closePath):r.push(n.DrawOPS.moveTo,e,i,n.DrawOPS.lineTo,c,i,n.DrawOPS.lineTo,c,f,n.DrawOPS.lineTo,e,f,n.DrawOPS.closePath);n.Util.rectBoundingBox(e,i,c,f,s);break}case n.OPS.moveTo:{const e=a.currentPointX=t[0],i=a.currentPointY=t[1];r.push(n.DrawOPS.moveTo,e,i);n.Util.pointBoundingBox(e,i,s);break}case n.OPS.lineTo:{const e=a.currentPointX=t[0],i=a.currentPointY=t[1];r.push(n.DrawOPS.lineTo,e,i);n.Util.pointBoundingBox(e,i,s);break}case n.OPS.curveTo:{const e=a.currentPointX,i=a.currentPointY,[o,l,c,f,h,u]=t;a.currentPointX=h;a.currentPointY=u;r.push(n.DrawOPS.curveTo,o,l,c,f,h,u);n.Util.bezierBoundingBox(e,i,o,l,c,f,h,u,s);break}case n.OPS.curveTo2:{const e=a.currentPointX,i=a.currentPointY,[o,l,c,f]=t;a.currentPointX=c;a.currentPointY=f;r.push(n.DrawOPS.curveTo,e,i,o,l,c,f);n.Util.bezierBoundingBox(e,i,e,i,o,l,c,f,s);break}case n.OPS.curveTo3:{const e=a.currentPointX,i=a.currentPointY,[o,l,c,f]=t;a.currentPointX=c;a.currentPointY=f;r.push(n.DrawOPS.curveTo,o,l,c,f,c,f);n.Util.bezierBoundingBox(e,i,o,l,c,f,c,f,s);break}case n.OPS.closePath:r.push(n.DrawOPS.closePath)}}_getColorSpace(e,t,a){return T.ColorSpaceUtils.parse({cs:e,xref:this.xref,resources:t,pdfFunctionFactory:this._pdfFunctionFactory,globalColorSpaceCache:this.globalColorSpaceCache,localColorSpaceCache:a})}async _handleColorSpace(e){try{return await e}catch(e){if(e instanceof n.AbortException)return null;if(this.options.ignoreErrors){(0,n.warn)(`_handleColorSpace - ignoring ColorSpace: "${e}".`);return null}throw e}}async parseShading({shading:e,resources:t,localColorSpaceCache:a,localShadingPatternCache:s}){let r,i=s.get(e);if(i)return i;try{r=(await k.Pattern.parseShading(e,this.xref,t,this._pdfFunctionFactory,this.globalColorSpaceCache,a)).getIR()}catch(t){if(t instanceof n.AbortException)return null;if(this.options.ignoreErrors){(0,n.warn)(`parseShading - ignoring shading: "${t}".`);s.set(e,null);return null}throw t}i=`pattern_${this.idFactory.createObjId()}`;this.parsingType3Font&&(i=`${this.idFactory.getDocId()}_type3_${i}`);s.set(e,i);if(this.parsingType3Font){const e=(0,O.compilePatternInfo)(r);this.handler.send("commonobj",[i,"Pattern",e],[e])}else this.handler.send("obj",[i,this.pageProxyId,"Pattern",r]);return i}async handleColorN(e,t,a,s,o,l,c,f,u,d,m){const g=a.pop();if(g instanceof r.Name){const b=o.getRaw(g.name),w=b instanceof r.Ref&&u.getByRef(b);if(w)try{const n=s.base?s.base.getRgbHex(a,0):null,r=(0,k.getTilingPatternIR)(w.operatorListIR,w.dict,n,w.needsIsolation);e.addOp(t,r);return}catch{}const j=this.xref.fetchIfRef(b);if(j){const r=j instanceof i.BaseStream?j.dict:j,o=r.get("PatternType");if(o===pe){const n=s.base?s.base.getRgbHex(a,0):null;return this.handleTilingType(t,n,l,j,r,e,c,u,m)}if(o===me){const a=r.get("Shading"),n=await this.parseShading({shading:a,resources:l,localColorSpaceCache:f,localShadingPatternCache:d});if(n){const a=(0,h.lookupMatrix)(r.getArray("Matrix"),null);e.addOp(t,["Shading",n,a])}return}throw new n.FormatError(`Unknown PatternType: ${o}`)}}throw new n.FormatError(`Unknown PatternName: ${g}`)}async parseMarkedContentProps(e,t){return(0,C.parseMarkedContentProps)(this.xref,e,t)}async getOperatorList({stream:e,task:t,resources:a,operatorList:s,initialState:l=null,fallbackFontDict:c=null,prevRefs:f=null}){if(e.isAsync){const t=await e.asyncGetBytes();t&&(e=new o.Stream(t,0,t.length,e.dict))}const u=e.dict?.objId,d=new r.RefSet(f);if(u){if(f?.has(u))throw new Error(`getOperatorList - ignoring circular reference: ${u}`);d.put(u)}a||=r.Dict.empty;l||=new EvalState;if(!s)throw new Error('getOperatorList: missing "operatorList" parameter');const m=this,g=this.xref,b=new _.LocalImageCache,w=new _.LocalColorSpaceCache,j=new _.LocalGStateCache,y=new _.LocalTilingPatternCache,v=new Map,k=a.get("XObject")||r.Dict.empty,q=a.get("Pattern")||r.Dict.empty,S=new StateManager(l),C=new EvaluatorPreprocessor(e,g,S),F=new TimeSlotManager;let O=0;function closePendingRestoreOPS(){for(let e=0,t=C.savedStatesDepth;e<t;e++)s.addOp(n.OPS.restore,[])}function closePendingMarkedContentOPS(){for(;O>0;O--)s.addOp(n.OPS.endMarkedContent,[])}return new Promise(function promiseBody(e,o){const next=function(t){Promise.all([t,s.ready]).then(function(){try{promiseBody(e,o)}catch(e){o(e)}},o)};t.ensureNotTerminated();F.reset();const l={};let f,u,_,M;for(;!(f=F.check());){l.args=null;const e=C.savedStatesDepth;if(!C.read(l))break;let{args:o,fn:f}=l;switch(0|f){case n.OPS.restore:if(0===e)continue;break;case n.OPS.paintXObject:M=o[0]instanceof r.Name;_=o[0].name;if(M){const e=b.getByName(_);if(e){addCachedImageOps(s,e);o=null;continue}}next(new Promise(function(e,o){if(!M)throw new n.FormatError("XObject must be referred to by name.");let l=k.getRaw(_);if(l instanceof r.Ref){const t=b.getByRef(l)||m._regionalImageCache.getByRef(l)||m.globalImageCache.getData(l,m.pageIndex);if(t){addCachedImageOps(s,t);e();return}l=g.fetch(l)}if(!(l instanceof i.BaseStream))throw new n.FormatError("XObject should be a stream");const c=l.dict.get("Subtype");if(!(c instanceof r.Name))throw new n.FormatError("XObject should have a Name subtype");if("Form"!==c.name)if("Image"!==c.name){if("PS"!==c.name)throw new n.FormatError(`Unhandled XObject subtype ${c.name}`);(0,n.info)("Ignored XObject subtype PS");e()}else m.buildPaintImageXObject({resources:a,image:l,operatorList:s,cacheKey:_,localImageCache:b,localColorSpaceCache:w}).then(e,o);else{S.save();m.buildFormXObject(a,l,null,s,t,S.state.clone({newPath:!0}),w,d).then(function(){S.restore();e()},o)}}).catch(e=>{if(!(e instanceof n.AbortException)){if(!m.options.ignoreErrors)throw e;(0,n.warn)(`getOperatorList - ignoring XObject: "${e}".`)}}));return;case n.OPS.setFont:const l=o[1];next(m.handleSetFont(a,o,null,s,t,S.state,c,null,d).then(function(e){s.addDependency(e);s.addOp(n.OPS.setFont,[e,l])}));return;case n.OPS.endInlineImage:const C=o[0].cacheKey;if(C){const e=b.getByName(C);if(e){addCachedImageOps(s,e);o=null;continue}}next(m.buildPaintImageXObject({resources:a,image:o[0],isInline:!0,operatorList:s,cacheKey:C,localImageCache:b,localColorSpaceCache:w}));return;case n.OPS.showText:if(!S.state.font){m.ensureStateFont(S.state);continue}o[0]=m.handleText(o[0],S.state);break;case n.OPS.showSpacedText:if(!S.state.font){m.ensureStateFont(S.state);continue}const F=[],R=S.state;for(const e of o[0])"string"==typeof e?F.push(...m.handleText(e,R)):"number"==typeof e&&F.push(e);o[0]=F;f=n.OPS.showText;break;case n.OPS.nextLineShowText:if(!S.state.font){m.ensureStateFont(S.state);continue}s.addOp(n.OPS.nextLine);o[0]=m.handleText(o[0],S.state);f=n.OPS.showText;break;case n.OPS.nextLineSetSpacingShowText:if(!S.state.font){m.ensureStateFont(S.state);continue}s.addOp(n.OPS.nextLine);s.addOp(n.OPS.setWordSpacing,[o.shift()]);s.addOp(n.OPS.setCharSpacing,[o.shift()]);o[0]=m.handleText(o[0],S.state);f=n.OPS.showText;break;case n.OPS.setTextRenderingMode:S.state.textRenderingMode=o[0];break;case n.OPS.setFillColorSpace:{const e=m._getColorSpace(o[0],a,w);if(e instanceof x.ColorSpace){S.state.fillColorSpace=e;continue}next(m._handleColorSpace(e).then(e=>{S.state.fillColorSpace=e||T.ColorSpaceUtils.gray}));return}case n.OPS.setStrokeColorSpace:{const e=m._getColorSpace(o[0],a,w);if(e instanceof x.ColorSpace){S.state.strokeColorSpace=e;continue}next(m._handleColorSpace(e).then(e=>{S.state.strokeColorSpace=e||T.ColorSpaceUtils.gray}));return}case n.OPS.setFillColor:if(!(0,h.isNumberArray)(o,null))continue;u=S.state.fillColorSpace;o=[u.getRgbHex(o,0)];f=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeColor:if(!(0,h.isNumberArray)(o,null))continue;u=S.state.strokeColorSpace;o=[u.getRgbHex(o,0)];f=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillGray:if(!(0,h.isNumberArray)(o,null))continue;S.state.fillColorSpace=T.ColorSpaceUtils.gray;o=[T.ColorSpaceUtils.gray.getRgbHex(o,0)];f=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeGray:if(!(0,h.isNumberArray)(o,null))continue;S.state.strokeColorSpace=T.ColorSpaceUtils.gray;o=[T.ColorSpaceUtils.gray.getRgbHex(o,0)];f=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillCMYKColor:if(!(0,h.isNumberArray)(o,null))continue;S.state.fillColorSpace=T.ColorSpaceUtils.cmyk;o=[T.ColorSpaceUtils.cmyk.getRgbHex(o,0)];f=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeCMYKColor:if(!(0,h.isNumberArray)(o,null))continue;S.state.strokeColorSpace=T.ColorSpaceUtils.cmyk;o=[T.ColorSpaceUtils.cmyk.getRgbHex(o,0)];f=n.OPS.setStrokeRGBColor;break;case n.OPS.setFillRGBColor:if(!(0,h.isNumberArray)(o,null))continue;S.state.fillColorSpace=T.ColorSpaceUtils.rgb;o=[T.ColorSpaceUtils.rgb.getRgbHex(o,0)];break;case n.OPS.setStrokeRGBColor:if(!(0,h.isNumberArray)(o,null))continue;S.state.strokeColorSpace=T.ColorSpaceUtils.rgb;o=[T.ColorSpaceUtils.rgb.getRgbHex(o,0)];break;case n.OPS.setFillColorN:u=S.state.patternFillColorSpace;if(!u){if((0,h.isNumberArray)(o,null)){o=[T.ColorSpaceUtils.gray.getRgbHex(o,0)];f=n.OPS.setFillRGBColor;break}o=[];f=n.OPS.setFillTransparent;break}if("Pattern"===u.name){if(!Array.isArray(o))continue;next(m.handleColorN(s,n.OPS.setFillColorN,o,u,q,a,t,w,y,v,d));return}if(!(0,h.isNumberArray)(o,null))continue;o=[u.getRgbHex(o,0)];f=n.OPS.setFillRGBColor;break;case n.OPS.setStrokeColorN:u=S.state.patternStrokeColorSpace;if(!u){if((0,h.isNumberArray)(o,null)){o=[T.ColorSpaceUtils.gray.getRgbHex(o,0)];f=n.OPS.setStrokeRGBColor;break}o=[];f=n.OPS.setStrokeTransparent;break}if("Pattern"===u.name){if(!Array.isArray(o))continue;next(m.handleColorN(s,n.OPS.setStrokeColorN,o,u,q,a,t,w,y,v,d));return}if(!(0,h.isNumberArray)(o,null))continue;o=[u.getRgbHex(o,0)];f=n.OPS.setStrokeRGBColor;break;case n.OPS.shadingFill:let D;try{const e=a.get("Shading");if(!e)throw new n.FormatError("No shading resource found");D=e.get(o[0].name);if(!D)throw new n.FormatError("No shading object found")}catch(e){if(e instanceof n.AbortException)continue;if(m.options.ignoreErrors){(0,n.warn)(`getOperatorList - ignoring Shading: "${e}".`);continue}throw e}next(m.parseShading({shading:D,resources:a,localColorSpaceCache:w,localShadingPatternCache:v}).then(e=>{e&&s.addOp(n.OPS.shadingFill,[e])}));return;case n.OPS.setGState:M=o[0]instanceof r.Name;_=o[0].name;if(M){const e=j.getByName(_);if(e){e.length>0&&s.addOp(n.OPS.setGState,[e]);o=null;continue}}next(new Promise(function(e,i){if(!M)throw new n.FormatError("GState must be referred to by name.");const o=a.get("ExtGState");if(!(o instanceof r.Dict))throw new n.FormatError("ExtGState should be a dictionary.");const l=o.get(_);if(!(l instanceof r.Dict))throw new n.FormatError("GState should be a dictionary.");m.setGState({resources:a,gState:l,operatorList:s,cacheKey:_,task:t,stateManager:S,localGStateCache:j,localColorSpaceCache:w,seenRefs:d}).then(e,i)}).catch(e=>{if(!(e instanceof n.AbortException)){if(!m.options.ignoreErrors)throw e;(0,n.warn)(`getOperatorList - ignoring ExtGState: "${e}".`)}}));return;case n.OPS.setLineWidth:{const[e]=o;if("number"!=typeof e){(0,n.warn)(`Invalid setLineWidth: ${e}`);continue}o[0]=Math.abs(e);break}case n.OPS.setDash:{const e=o[1];if("number"!=typeof e){(0,n.warn)(`Invalid setDash: ${e}`);continue}const t=o[0];if(!Array.isArray(t)){(0,n.warn)(`Invalid setDash: ${t}`);continue}t.some(e=>"number"!=typeof e)&&(o[0]=t.filter(e=>"number"==typeof e));break}case n.OPS.moveTo:case n.OPS.lineTo:case n.OPS.curveTo:case n.OPS.curveTo2:case n.OPS.curveTo3:case n.OPS.closePath:case n.OPS.rectangle:m.buildPath(f,o,S.state);continue;case n.OPS.stroke:case n.OPS.closeStroke:case n.OPS.fill:case n.OPS.eoFill:case n.OPS.fillStroke:case n.OPS.eoFillStroke:case n.OPS.closeFillStroke:case n.OPS.closeEOFillStroke:case n.OPS.endPath:{const{state:{pathBuffer:e,pathMinMax:t}}=S;f!==n.OPS.closeStroke&&f!==n.OPS.closeFillStroke&&f!==n.OPS.closeEOFillStroke||e.push(n.DrawOPS.closePath);if(0===e.length)s.addOp(n.OPS.constructPath,[f,[null],null]);else{s.addOp(n.OPS.constructPath,[f,[new Float32Array(e)],t.slice()]);e.length=0;t.set(n.BBOX_INIT,0)}continue}case n.OPS.setTextMatrix:s.addOp(f,[new Float32Array(o)]);continue;case n.OPS.markPoint:case n.OPS.markPointProps:case n.OPS.beginCompat:case n.OPS.endCompat:continue;case n.OPS.beginMarkedContentProps:O++;if(!(o[0]instanceof r.Name)){(0,n.warn)(`Expected name for beginMarkedContentProps arg0=${o[0]}`);s.addOp(n.OPS.beginMarkedContentProps,["OC",null]);continue}if("OC"===o[0].name){next(m.parseMarkedContentProps(o[1],a).then(e=>{s.addOp(n.OPS.beginMarkedContentProps,["OC",e])}).catch(e=>{if(!(e instanceof n.AbortException)){if(!m.options.ignoreErrors)throw e;(0,n.warn)(`getOperatorList - ignoring beginMarkedContentProps: "${e}".`);s.addOp(n.OPS.beginMarkedContentProps,["OC",null])}}));return}o=[o[0].name,o[1]instanceof r.Dict?o[1].get("MCID"):null];break;case n.OPS.beginMarkedContent:if(o?.some(argIsDict)){(0,n.warn)(`getOperatorList - ignoring operator: ${f}`);continue}O++;break;case n.OPS.endMarkedContent:if(o?.some(argIsDict)){(0,n.warn)(`getOperatorList - ignoring operator: ${f}`);continue}if(0===O)continue;O--;break;default:if(o?.some(argIsDict)){(0,n.warn)(`getOperatorList - ignoring operator: ${f}`);continue}}s.addOp(f,o)}if(f)next(ge);else{closePendingMarkedContentOPS();closePendingRestoreOPS();e()}}).catch(e=>{if(!(e instanceof n.AbortException)){if(!this.options.ignoreErrors)throw e;(0,n.warn)(`getOperatorList - ignoring errors during "${t.name}" task: "${e}".`);closePendingMarkedContentOPS();closePendingRestoreOPS()}})}async getTextContent({stream:e,task:t,resources:a,stateManager:s=null,includeMarkedContent:l=!1,sink:c,seenStyles:f=new Set,viewBox:u,lang:d=null,disableNormalization:m=!1,textLayerFonts:g=null,keepWhiteSpace:b=!1,prevRefs:w=null,intersector:j=null,markedContentScope:y=""}){if(e.isAsync){const t=await e.asyncGetBytes();t&&(e=new o.Stream(t,0,t.length,e.dict))}c??=(0,C.textSinkWrapper)(null);const v=e.dict?.objId,k=new r.RefSet(w);if(v){if(w?.has(v))throw new Error(`getTextContent - ignoring circular reference: ${v}`);k.put(v)}a||=r.Dict.empty;s||=new StateManager(new TextState);let q=0,S=null;const x={items:[],styles:Object.create(null),lang:d},T={initialized:!1,str:[],totalWidth:0,totalHeight:0,width:0,height:0,vertical:!1,prevTransform:null,prevGlyphWidth:0,prevTextRise:0,textAdvanceScale:0,spaceInFlowMin:0,spaceInFlowMax:0,trackingSpaceMin:1/0,useCharWidthThreshold:!1,wideSpaceMax:1/0,minAdvance:1/0,pendingSpaceIndex:-1,pendingSpaceAdvance:0,pendingSpaceExtraCharId:-1,negativeSpaceMax:-1/0,notASpace:-1/0,transform:null,fontName:null,hasEOL:!1},O=[" "," "];let M=0;function saveLastChar(e){const t=(M+1)%2,a=" "!==O[M]&&" "===O[t];O[M]=e;M=t;return!b&&a}function shouldAddWhitepsace(){return!b&&" "!==O[M]&&" "===O[(M+1)%2]}function resetLastChars(){O[0]=O[1]=" ";M=0}const R=1/3,D=this,H=this.xref,N=[];let E=null;const z=new _.LocalImageCache,L=new _.LocalGStateCache,$=new EvaluatorPreprocessor(e,H,s);let U,G,W=-1;function getUnmirroredTransform([e,t,a,n,s,r],i){if(e*n-t*a>=0||n<=0)return null;const o=i/Math.hypot(e,t);return[-e,-t,a,n,s+e*o,r+t*o]}function pushWhitespace({width:e=0,height:t=0,transform:a=T.prevTransform,fontName:n=T.fontName}){j?.addExtraChar(" ");e&&(a=getUnmirroredTransform(a,e)||a);x.items.push({str:" ",dir:"ltr",width:e,height:t,transform:a,fontName:n,hasEOL:!1})}function getCurrentTextTransform(){const e=U.font,t=[U.fontSize*U.textHScale,0,0,U.fontSize,0,U.textRise];if(e.isType3Font&&(U.fontSize<=1||e.isCharBBox)&&!(0,n.isArrayEqual)(U.fontMatrix,n.FONT_IDENTITY_MATRIX)){const a=e.bbox[3]-e.bbox[1];a>0&&(t[3]*=a*U.fontMatrix[3])}return n.Util.transform(U.ctm,n.Util.transform(U.textMatrix,t))}function ensureTextContentItem(){if(T.initialized)return T;const{font:e,loadedName:t}=U;if(!f.has(t)){f.add(t);x.styles[t]={fontFamily:e.fallbackName,ascent:e.ascent,descent:e.descent,vertical:e.vertical};if(D.options.fontExtraProperties&&e.systemFontInfo){const a=x.styles[t];a.fontSubstitution=e.systemFontInfo.css;a.fontSubstitutionLoadedName=e.systemFontInfo.loadedName}g?.addFont(t,e)}T.fontName=t;const a=T.transform=getCurrentTextTransform();if(e.vertical){T.width=T.totalWidth=Math.hypot(a[0],a[1]);T.height=T.totalHeight=0;T.vertical=!0}else{T.width=T.totalWidth=0;T.height=T.totalHeight=Math.hypot(a[2],a[3]);T.vertical=!1}const n=Math.hypot(U.textLineMatrix[0],U.textLineMatrix[1]),s=Math.hypot(U.ctm[0],U.ctm[1]);T.textAdvanceScale=s*n;const{fontSize:r}=U;let i=.102;if(!e.isType3Font){const t=e.spaceWidth/1e3;t>0&&t<=R&&(i=Math.max(.5*t,.102))}T.trackingSpaceMin=r*i;T.useCharWidthThreshold=e.isType3Font;T.spaceInFlowMin=r*i;T.wideSpaceMax=.4*r;resetAdaptiveSpacing();T.notASpace=.03*r;T.negativeSpaceMax=-.2*r;T.spaceInFlowMax=.6*r;T.hasEOL=!1;T.initialized=!0;return T}function updateAdvanceScale(){if(!T.initialized)return;const e=Math.hypot(U.textLineMatrix[0],U.textLineMatrix[1]),t=Math.hypot(U.ctm[0],U.ctm[1])*e;if(t!==T.textAdvanceScale){if(T.vertical){T.totalHeight+=T.height*T.textAdvanceScale;T.height=0}else{T.totalWidth+=T.width*T.textAdvanceScale;T.width=0}T.textAdvanceScale=t}}async function handleSetFont(e,s){const r=await D.loadFont(e,s,a,t,null,null,k);U.loadedName=r.loadedName;U.font=r.font;U.fontMatrix=r.font.fontMatrix||n.FONT_IDENTITY_MATRIX}function applyInverseRotation(e,t,a){const n=Math.hypot(a[0],a[1]);return[(a[0]*e+a[1]*t)/n,(a[2]*e+a[3]*t)/n]}function getTrackingSpaceMin(e){if(T.useCharWidthThreshold&&e){const t=Math.abs(e*U.textHScale);return Math.sign(U.fontSize)*Math.min(t,Math.abs(T.prevGlyphWidth)||t)*.25}return T.trackingSpaceMin}function getSpaceThreshold(e){const{minAdvance:t,wideSpaceMax:a}=T;return t>e&&t<1.3*e?Math.min(1.3*t,a):e}function resetAdaptiveSpacing(){T.minAdvance=1/0;T.pendingSpaceIndex=-1;T.pendingSpaceAdvance=0;T.pendingSpaceExtraCharId=-1}function recordPendingSpace(e,t){if(!(T.useCharWidthThreshold||T.minAdvance<1/0)){T.pendingSpaceIndex=T.str.length-1;T.pendingSpaceAdvance=t*e;T.pendingSpaceExtraCharId=W}}function resolvePendingSpace(e,t,a,n,s){if(T.pendingSpaceIndex<0)return;const{pendingSpaceAdvance:r}=T,i=t*e,o=Math.min(r,i);if(!s&&o>a/1.3&&i<=n&&r<=n){T.str.splice(T.pendingSpaceIndex,1);T.pendingSpaceExtraCharId>=0&&j?.removeExtraChar(T.pendingSpaceExtraCharId)}T.pendingSpaceIndex=-1;T.pendingSpaceExtraCharId=-1}function recordMinAdvance(e,t,a){if(T.useCharWidthThreshold)return;const n=t*e;n>a&&n<T.minAdvance&&(T.minAdvance=n)}function compareWithLastPosition(e){const t=getCurrentTextTransform();let a=t[4],n=t[5];if(U.font?.vertical){if(a<u[0]||a>u[2]||n+e<u[1]||n>u[3])return!1}else if(a+e<u[0]||a>u[2]||n<u[1]||n>u[3])return!1;if(!U.font||!T.prevTransform)return!0;let s=T.prevTransform[4],r=T.prevTransform[5];if(s===a&&r===n){T.minAdvance=1/0;return!0}let i=-1;t[0]&&0===t[1]&&0===t[2]?i=t[0]>0?0:180:t[1]&&0===t[0]&&0===t[3]&&(i=t[1]>0?90:270);switch(i){case 0:break;case 90:[a,n]=[n,a];[s,r]=[r,s];break;case 180:[a,n,s,r]=[-a,-n,-s,-r];break;case 270:[a,n]=[-n,-a];[s,r]=[-r,-s];break;default:[a,n]=applyInverseRotation(a,n,t);[s,r]=applyInverseRotation(s,r,T.prevTransform)}if(U.font.vertical){const t=(r-n)/T.textAdvanceScale,i=a-s,o=Math.sign(T.height||T.totalHeight);if(t<o*T.negativeSpaceMax){if(Math.abs(i)>.5*T.width){appendEOL();return!0}resetLastChars();flushTextContentItem();return!0}if(Math.abs(i)>T.width){appendEOL();return!0}if(t<=o*T.notASpace){resetLastChars();T.minAdvance=1/0}const l=getTrackingSpaceMin(e),c=getSpaceThreshold(l),f=shouldAddWhitepsace();resolvePendingSpace(t,o,l,c,f);if(t<=o*c)if(shouldAddWhitepsace()){resetLastChars();flushTextContentItem();pushWhitespace({height:Math.abs(t)})}else T.height+=t;else if(!addFakeSpaces(t,T.prevTransform,o))if(0===T.str.length){resetLastChars();pushWhitespace({height:Math.abs(t)})}else{T.height+=t;f||recordPendingSpace(t,o)}f||recordMinAdvance(t,o,l);Math.abs(i)>.25*T.width&&flushTextContentItem();return!0}const o=(a-s)/T.textAdvanceScale,l=n-r,c=Math.sign(T.width||T.totalWidth);if(o<c*T.negativeSpaceMax){if(Math.abs(l)>.5*T.height){appendEOL();return!0}resetLastChars();flushTextContentItem();return!0}const f=U.textRise-T.prevTextRise,h=0===f?l:l-t[3]/U.fontSize*f;if(Math.abs(h)>T.height){appendEOL();return!0}if(o<=c*T.notASpace){resetLastChars();T.minAdvance=1/0}const d=getTrackingSpaceMin(e),m=getSpaceThreshold(d),g=shouldAddWhitepsace();resolvePendingSpace(o,c,d,m,g);if(o<=c*m)if(shouldAddWhitepsace()){resetLastChars();flushTextContentItem();pushWhitespace({width:Math.abs(o)})}else T.width+=o;else if(!addFakeSpaces(o,T.prevTransform,c))if(0===T.str.length){resetLastChars();pushWhitespace({width:Math.abs(o)})}else{T.width+=o;g||recordPendingSpace(o,c)}g||recordMinAdvance(o,c,d);Math.abs(l)>.25*T.height&&flushTextContentItem();return!0}function buildTextContentItem({chars:e,extraSpacing:t}){if(G!==U&&(G.fontSize!==U.fontSize||G.fontName!==U.fontName&&(G.font?.name!==U.font.name||G.font.vertical!==U.font.vertical))){flushTextContentItem();G=U.clone()}const a=U.font,n=a.vertical?-U.charSpacing:U.charSpacing;if(!e){const e=n+t;e&&(a.vertical?U.translateTextMatrix(0,-e):U.translateTextMatrix(e*U.textHScale,0));b&&compareWithLastPosition(0);return}const s=a.charsToGlyphs(e),r=U.fontMatrix[0]*U.fontSize,i=Math.abs(1e3*U.fontMatrix[0]);for(let e=0,o=s.length;e<o;e++){const l=s[e],{category:c}=l,f=a.vertical?l.vmetric[0]:l.width,{isInvisibleFormatMark:h,isZeroWidthDiacritic:u}=c;if(h&&!f)continue;let d=n+(e+1===o?t:0),w=f*r;l.isSpace&&(d+=U.wordSpacing);if(!b&&c.isWhitespace){g?.addGlyph(a," ",Math.abs(f)*i);if(a.vertical){d+=-w;U.translateTextMatrix(0,-d)}else{d+=w;U.translateTextMatrix(d*U.textHScale,0)}saveLastChar(" ");continue}if(!u&&!compareWithLastPosition(w)){a.vertical?U.translateTextMatrix(0,w):U.translateTextMatrix(w*U.textHScale,0);continue}const y=ensureTextContentItem();u&&(w=0);const v=h?"":l.unicode;if(a.vertical){j?.addGlyph(getCurrentTextTransform(),0,w,v);U.translateTextMatrix(0,w);w=Math.abs(w);y.height+=w}else{w*=U.textHScale;j?.addGlyph(getCurrentTextTransform(),w,0,v);U.translateTextMatrix(w,0);y.width+=w}if(w){y.prevTransform=getCurrentTextTransform();y.prevGlyphWidth=w;y.prevTextRise=U.textRise}if(!h){if(saveLastChar(v)){y.str.push(" ");j?.addExtraChar(" ")}const e=m?v:l.normalizedUnicode;j||y.str.push(e);g?.addGlyph(a,e,u?0:Math.abs(f)*i)}d&&(a.vertical?U.translateTextMatrix(0,-d):U.translateTextMatrix(d*U.textHScale,0))}}function appendEOL(){j?.addExtraChar("\n");resetLastChars();if(T.initialized){T.hasEOL=!0;flushTextContentItem()}else x.items.push({str:"",dir:"ltr",width:0,height:0,transform:getCurrentTextTransform(),fontName:U.loadedName,hasEOL:!0})}function addFakeSpaces(e,t,a){W=-1;if(a*T.spaceInFlowMin<=e&&e<=a*T.spaceInFlowMax){if(T.initialized){resetLastChars();T.str.push(" ");W=j?.addExtraChar(" ")??-1;if(g&&!T.vertical){const[,,t,a]=T.transform;g.addSpaceGap(T.fontName,1e3*Math.abs(e)*T.textAdvanceScale/Math.hypot(t,a))}}return!1}const n=T.fontName;let s=0;if(T.vertical){s=e;e=0}flushTextContentItem();resetLastChars();pushWhitespace({width:Math.abs(e),height:Math.abs(s),transform:t||getCurrentTextTransform(),fontName:n});return!0}function flushTextContentItem(){if(T.initialized&&T.str){T.vertical?T.totalHeight+=T.height*T.textAdvanceScale:T.totalWidth+=T.width*T.textAdvanceScale;x.items.push(function runBidiTransform(e){let{str:t,transform:a}=e;const n=Math.abs(e.totalWidth),s=!e.vertical&&getUnmirroredTransform(a,n);if(s){t=t.toReversed();a=s}const r=(0,F.bidi)(t,-1,e.vertical);return{str:r.str,dir:r.dir,width:n,height:Math.abs(e.totalHeight),transform:a,fontName:e.fontName,hasEOL:e.hasEOL}}(T));T.initialized=!1;resetAdaptiveSpacing();T.str.length=0}}function closePendingMarkedContentItems(e=0){if(l&&!(q<=e)){flushTextContentItem();for(;q>e;q--)x.items.push({type:"endMarkedContent"})}}function enqueueChunk(e=!1){const t=x.items.length;if(0!==t&&!(e&&t<10)){c.enqueue(x,t);x.items=[];x.styles=Object.create(null)}}const X=new TimeSlotManager;return new Promise(function promiseBody(e,o){const next=function(t){enqueueChunk(!0);Promise.all([t,c.ready]).then(function(){try{promiseBody(e,o)}catch(e){o(e)}},o)};t.ensureNotTerminated();X.reset();const w={};let j,v,_,F=[];for(;!(j=X.check());){F.length=0;w.args=F;if(!$.read(w))break;U=s.state;G||=U.clone();const e=w.fn;F=w.args;switch(0|e){case n.OPS.setFont:const e=F[0].name,o=F[1];if(U.font&&e===U.fontName&&o===U.fontSize)break;U.fontName=e;U.fontSize=o;next(handleSetFont(e,null));return;case n.OPS.setTextRise:U.textRise=F[0];break;case n.OPS.setHScale:if(U.textHScale!==F[0]/100){U.textHScale=F[0]/100;resetAdaptiveSpacing()}break;case n.OPS.setLeading:U.leading=F[0];break;case n.OPS.moveText:U.translateTextLineMatrix(F[0],F[1]);U.textMatrix=U.textLineMatrix.slice();resetAdaptiveSpacing();break;case n.OPS.setLeadingMoveText:U.leading=-F[1];U.translateTextLineMatrix(F[0],F[1]);U.textMatrix=U.textLineMatrix.slice();resetAdaptiveSpacing();break;case n.OPS.nextLine:U.carriageReturn();resetAdaptiveSpacing();break;case n.OPS.setTextMatrix:U.setTextMatrix(F[0],F[1],F[2],F[3],F[4],F[5]);U.setTextLineMatrix(F[0],F[1],F[2],F[3],F[4],F[5]);updateAdvanceScale();resetAdaptiveSpacing();break;case n.OPS.setCharSpacing:if(U.charSpacing!==F[0]){U.charSpacing=F[0];resetAdaptiveSpacing()}break;case n.OPS.setWordSpacing:if(U.wordSpacing!==F[0]){U.wordSpacing=F[0];resetAdaptiveSpacing()}break;case n.OPS.beginText:U.textMatrix=h.IDENTITY_MATRIX.slice();U.textLineMatrix=h.IDENTITY_MATRIX.slice();resetAdaptiveSpacing();S=q;break;case n.OPS.endText:if(null!==S){closePendingMarkedContentItems(S);S=null}break;case n.OPS.showSpacedText:if(!s.state.font){D.ensureStateFont(s.state);continue}const w=(U.font.vertical?1:-1)*U.fontSize/1e3;for(const e of F[0])if("string"==typeof e)N.push(e);else if("number"==typeof e&&0!==e){const t=N.join("");N.length=0;buildTextContentItem({chars:t,extraSpacing:e*w})}if(N.length>0){const e=N.join("");N.length=0;buildTextContentItem({chars:e,extraSpacing:0})}break;case n.OPS.showText:if(!s.state.font){D.ensureStateFont(s.state);continue}buildTextContentItem({chars:F[0],extraSpacing:0});break;case n.OPS.nextLineShowText:if(!s.state.font){D.ensureStateFont(s.state);continue}U.carriageReturn();resetAdaptiveSpacing();buildTextContentItem({chars:F[0],extraSpacing:0});break;case n.OPS.nextLineSetSpacingShowText:if(!s.state.font){D.ensureStateFont(s.state);continue}if(U.wordSpacing!==F[0]||U.charSpacing!==F[1]){U.wordSpacing=F[0];U.charSpacing=F[1];resetAdaptiveSpacing()}U.carriageReturn();resetAdaptiveSpacing();buildTextContentItem({chars:F[2],extraSpacing:0});break;case n.OPS.paintXObject:flushTextContentItem();E??=a.get("XObject")||r.Dict.empty;_=F[0]instanceof r.Name;v=F[0].name;if(_&&z.getByName(v))break;next(new Promise(function(e,o){if(!_)throw new n.FormatError("XObject must be referred to by name.");let w=E.getRaw(v);if(w instanceof r.Ref){if(z.getByRef(w)){e();return}if(D.globalImageCache.getData(w,D.pageIndex)){e();return}w=H.fetch(w)}if(!(w instanceof i.BaseStream))throw new n.FormatError("XObject should be a stream");const{dict:j}=w,q=j.get("Subtype");if(!(q instanceof r.Name))throw new n.FormatError("XObject should have a Name subtype");if("Form"!==q.name){z.set(v,j.objId,!0);e();return}const S=s.state.clone(),F=new StateManager(S),x=(0,h.lookupMatrix)(j.getArray("Matrix"),null);x&&F.transform(x);const T=j.get("Resources"),O=Number.isInteger(j.get("StructParents"))&&j.objId?`_x${j.objId}`:y;enqueueChunk();const M=(0,C.textSinkWrapper)(c);D.getTextContent({stream:w,task:t,resources:T instanceof r.Dict?T:a,stateManager:F,includeMarkedContent:l,sink:M,seenStyles:f,viewBox:u,lang:d,disableNormalization:m,textLayerFonts:g,keepWhiteSpace:b,prevRefs:k,markedContentScope:O}).then(function(){M.enqueueInvoked||z.set(v,j.objId,!0);e()},o)}).catch(e=>{if(!(e instanceof n.AbortException)){if(!D.options.ignoreErrors)throw e;(0,n.warn)(`getTextContent - ignoring XObject: "${e}".`)}}));return;case n.OPS.setGState:_=F[0]instanceof r.Name;v=F[0].name;if(_&&L.getByName(v))break;next(new Promise(function(e,t){if(!_)throw new n.FormatError("GState must be referred to by name.");const s=a.get("ExtGState");if(!(s instanceof r.Dict))throw new n.FormatError("ExtGState should be a dictionary.");const i=s.get(v);if(!(i instanceof r.Dict))throw new n.FormatError("GState should be a dictionary.");const o=i.get("Font");if(o){flushTextContentItem();U.fontName=null;U.fontSize=o[1];handleSetFont(null,o[0]).then(e,t)}else{L.set(v,i.objId,!0);e()}}).catch(e=>{if(!(e instanceof n.AbortException)){if(!D.options.ignoreErrors)throw e;(0,n.warn)(`getTextContent - ignoring ExtGState: "${e}".`)}}));return;case n.OPS.beginMarkedContent:flushTextContentItem();if(l){q++;x.items.push({type:"beginMarkedContent",tag:F[0]instanceof r.Name?F[0].name:null})}break;case n.OPS.beginMarkedContentProps:flushTextContentItem();if(l){q++;const e=F[1]instanceof r.Dict?F[1].get("MCID"):null;x.items.push({type:"beginMarkedContentProps",id:Number.isInteger(e)?`${D.idFactory.getPageObjId()}${y}_mc${e}`:null,tag:F[0]instanceof r.Name?F[0].name:null})}break;case n.OPS.endMarkedContent:flushTextContentItem();if(l){if(0===q)break;q--;x.items.push({type:"endMarkedContent"})}}if(x.items.length>=c.desiredSize){j=!0;break}}if(j)next(ge);else{flushTextContentItem();closePendingMarkedContentItems();enqueueChunk();e()}}).catch(e=>{if(!(e instanceof n.AbortException)){if(!this.options.ignoreErrors)throw e;(0,n.warn)(`getTextContent - ignoring errors during "${t.name}" task: "${e}".`);flushTextContentItem();closePendingMarkedContentItems();enqueueChunk()}})}async extractDataStructures(e,t){const a=this.xref;let s;const o=this.readToUnicode(t.toUnicode);if(t.composite){const a=e.get("CIDSystemInfo");a instanceof r.Dict&&!t.cidSystemInfo&&(t.cidSystemInfo={registry:(0,ue.stringToPDFString)(a.get("Registry")),ordering:(0,ue.stringToPDFString)(a.get("Ordering")),supplement:a.get("Supplement")});try{const t=e.get("CIDToGIDMap");t instanceof i.BaseStream&&(s=t.getBytes())}catch(e){if(!this.options.ignoreErrors)throw e;(0,n.warn)(`extractDataStructures - ignoring CIDToGIDMap data: "${e}".`)}}const l=new Map;let c,f=null;if(e.has("Encoding")){c=e.get("Encoding");if(c instanceof r.Dict){f=c.get("BaseEncoding");f=f instanceof r.Name?f.name:null;if(c.has("Differences")){const e=c.get("Differences");let t=0;for(const s of e){const e=a.fetchIfRef(s);if("number"==typeof e)t=e;else{if(!(e instanceof r.Name))throw new n.FormatError(`Invalid entry in 'Differences' array: ${e}`);l.set(t++,e.name)}}}}else if(c instanceof r.Name)f=c.name;else{const e="Encoding is not a Name nor a Dict";if(!this.options.ignoreErrors)throw new n.FormatError(e);(0,n.warn)(e)}"MacRomanEncoding"!==f&&"MacExpertEncoding"!==f&&"WinAnsiEncoding"!==f&&(f=null)}const h=!t.file,u=(0,v.getSymbolsFonts)()[t.name];f&&h&&u&&(f=null);if("WinAnsiEncoding"===f&&h&&t.name?.charCodeAt(0)>=183){const e=t.name;if(["ËÎÌå","ºÚÌå","¿¬Ìå","·ÂËÎ","¿¬Ìå_GB2312","·ÂËÎ_GB2312","Á¥Êé","ÐÂËÎ","·ÂËÎÌå","С±êËÎ"].includes(e)){f=null;t.defaultEncoding="Adobe-GB1-UCS2";t.composite=!0;t.cidEncoding=r.Name.get("GBK-EUC-H");const e=await CMapFactory.create({encoding:t.cidEncoding,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});t.cMap=e;t.vertical=t.cMap.vertical;t.cidSystemInfo={registry:"Adobe",ordering:"GB1",supplement:0}}}if(f)t.defaultEncoding=(0,y.getEncoding)(f);else{let e=!!(t.flags&b.FontFlags.Symbolic);const a=!!(t.flags&b.FontFlags.Nonsymbolic);if("TrueType"===t.type&&e&&a&&l.size){t.flags&=~b.FontFlags.Symbolic;e=!1}c=y.StandardEncoding;"TrueType"!==t.type||a||(c=y.WinAnsiEncoding);if(e||u){c=y.MacRomanEncoding;h&&(/Symbol/i.test(t.name)?c=y.SymbolSetEncoding:/Dingbats/i.test(t.name)?c=y.ZapfDingbatsEncoding:/Wingdings/i.test(t.name)&&(c=y.WinAnsiEncoding))}t.defaultEncoding=c}t.differences=l;t.baseEncodingName=f;t.hasEncoding=!!f||!!l.size;t.dict=e;t.toUnicode=await o;const d=await this.buildToUnicode(t);t.toUnicode=d;s&&(t.cidToGidMap=this.readCidToGidMap(s,d));return t}_simpleFontToUnicode(e,t=!1){(0,n.assert)(!e.composite,"Must be a simple font.");const a=new c.CharCodeMap,s=e.defaultEncoding.slice(),r=e.baseEncodingName;for(const[t,a]of e.differences)".notdef"!==a&&(s[t]=a);const i=(0,L.getGlyphsUnicode)();for(const n in s){let o=s[n];if(""===o)continue;let l=i[o];if(void 0!==l){a.set(+n,String.fromCharCode(l));continue}let c=0;switch(o[0]){case"G":3===o.length&&(c=parseInt(o.substring(1),16));break;case"g":5===o.length&&(c=parseInt(o.substring(1),16));break;case"C":case"c":if(o.length>=3&&o.length<=4){const a=o.substring(1);if(t){c=parseInt(a,16);break}c=+a;if(Number.isNaN(c)&&Number.isInteger(parseInt(a,16)))return this._simpleFontToUnicode(e,!0)}break;case"u":l=(0,U.getUnicodeForGlyph)(o,i);-1!==l&&(c=l);break;default:switch(o){case"f_h":case"f_t":case"T_h":a.set(+n,o.replaceAll("_",""));continue}}if(c>0&&c<=1114111&&Number.isInteger(c)){if(r&&c===+n){const e=(0,y.getEncoding)(r);if(e&&(o=e[n])){a.set(+n,String.fromCharCode(i[o]));continue}}a.set(+n,String.fromCodePoint(c))}}return a}async buildToUnicode(e){e.hasIncludedToUnicodeMap=!!e.toUnicode?.size;if(e.hasIncludedToUnicodeMap){!e.composite&&e.hasEncoding&&(e.fallbackToUnicode=this._simpleFontToUnicode(e));return e.toUnicode}if(!e.composite)return new q.ToUnicodeMap(this._simpleFontToUnicode(e));if(e.cMap.builtInCMap&&!(e.cMap instanceof IdentityCMap)||"Adobe"===e.cidSystemInfo?.registry&&("GB1"===e.cidSystemInfo.ordering||"CNS1"===e.cidSystemInfo.ordering||"Japan1"===e.cidSystemInfo.ordering||"Korea1"===e.cidSystemInfo.ordering)){const{registry:t,ordering:a}=e.cidSystemInfo,s=r.Name.get(`${t}-${a}-UCS2`),i=await CMapFactory.create({encoding:s,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null}),o=new c.CharCodeMap,l=[];e.cMap.forEach((e,t)=>{if(t>65535)throw new n.FormatError("Max size of CID is 65,535");const a=i.lookup(t);if(a){l.length=0;for(let e=0,t=a.length;e<t;e+=2)l.push((a.charCodeAt(e)<<8)+a.charCodeAt(e+1));o.set(e,String.fromCharCode(...l))}});return new q.ToUnicodeMap(o)}return new q.IdentityToUnicodeMap(e.firstChar,e.lastChar)}async readToUnicode(e){if(!e)return null;if(e instanceof r.Name){const t=await CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});return t instanceof IdentityCMap?new q.IdentityToUnicodeMap(0,65535):new q.ToUnicodeMap(t.getMap())}if(e instanceof i.BaseStream)try{const t=await CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});if(t instanceof IdentityCMap)return new q.IdentityToUnicodeMap(0,65535);const a=new c.CharCodeMap;t.forEach((e,t)=>{if("number"==typeof t){a.set(e,String.fromCodePoint(t));return}t.length%2!=0&&(t="\0"+t);const n=[];for(let e=0;e<t.length;e+=2){const a=t.charCodeAt(e)<<8|t.charCodeAt(e+1);if(55296!=(63488&a)){n.push(a);continue}e+=2;const s=t.charCodeAt(e)<<8|t.charCodeAt(e+1);n.push(((1023&a)<<10)+(1023&s)+65536)}a.set(e,String.fromCodePoint(...n))});return new q.ToUnicodeMap(a)}catch(e){if(e instanceof n.AbortException)return null;if(this.options.ignoreErrors){(0,n.warn)(`readToUnicode - ignoring ToUnicode data: "${e}".`);return null}throw e}return null}readCidToGidMap(e,t){const a=new c.CharCodeMap;for(let n=0,s=e.length;n<s;n++){const s=e[n++]<<8|e[n],r=n>>1;(0!==s||t.has(r))&&a.set(r,s)}return a}extractWidths(e,t,a){const n=this.xref;let s=[],i=0;const o=[];let l;if(a.composite){const t=e.get("DW");i="number"==typeof t?Math.ceil(t):1e3;const r=e.get("W");if(Array.isArray(r))for(let e=0,t=r.length;e<t;e++){let t=n.fetchIfRef(r[e++]);if(!Number.isInteger(t))break;const a=n.fetchIfRef(r[e]);if(Array.isArray(a))for(const e of a){const a=n.fetchIfRef(e);"number"==typeof a&&(s[t]=a);t++}else{if(!Number.isInteger(a))break;{const i=n.fetchIfRef(r[++e]);if("number"!=typeof i)continue;for(let e=t;e<=a;e++)s[e]=i}}}if(a.vertical){const t=e.getArray("DW2");let a=(0,h.isNumberArray)(t,2)?t:[880,-1e3];l=[a[1],.5*i,a[0]];a=e.get("W2");if(Array.isArray(a))for(let e=0,t=a.length;e<t;e++){let t=n.fetchIfRef(a[e++]);if(!Number.isInteger(t))break;const s=n.fetchIfRef(a[e]);if(Array.isArray(s))for(let e=0,a=s.length;e<a;e++){const a=[n.fetchIfRef(s[e++]),n.fetchIfRef(s[e++]),n.fetchIfRef(s[e])];(0,h.isNumberArray)(a,null)&&(o[t]=a);t++}else{if(!Number.isInteger(s))break;{const r=[n.fetchIfRef(a[++e]),n.fetchIfRef(a[++e]),n.fetchIfRef(a[++e])];if(!(0,h.isNumberArray)(r,null))continue;for(let e=t;e<=s;e++)o[e]=r}}}}}else{const o=e.get("Widths");if(Array.isArray(o)){let e=a.firstChar;for(const t of o){const a=n.fetchIfRef(t);"number"==typeof a&&(s[e]=a);e++}const r=t.get("MissingWidth");i="number"==typeof r?r:0}else{const t=e.get("BaseFont");if(t instanceof r.Name){const e=this.getBaseFontMetrics(t.name);s=this.buildCharCodeToWidth(e.widths,a);i=e.defaultWidth}}}let c=!0,f=i;for(const e in s){const t=s[e];if(t)if(f){if(f!==t){c=!1;break}}else f=t}c?a.flags|=b.FontFlags.FixedPitch:a.flags&=~b.FontFlags.FixedPitch;a.defaultWidth=i;a.widths=s;a.defaultVMetrics=l;a.vmetrics=o}isSerifFont(e){const t=e.split("-",1)[0];return t in(0,v.getSerifFonts)()||/serif/i.test(t)}getBaseFontMetrics(e){let t=0,a=Object.create(null),n=!1,s=(0,b.normalizeFontName)(e);s=(0,v.getStdFontMap)()[s]||s;const r=(0,$.getMetrics)(),i=r[s]??r[this.isSerifFont(e)?"Times-Roman":"Helvetica"];if("number"==typeof i){t=i;n=!0}else a=i();return{defaultWidth:t,monospace:n,widths:a}}buildCharCodeToWidth(e,t){const a=Object.create(null),n=t.differences,s=t.defaultEncoding;for(let t=0;t<256;t++){const r=n.has(t)&&e[n.get(t)]||t in s&&e[s[t]];r&&(a[t]=r)}return a}preEvaluateFont(e){const t=e;let a=e.get("Subtype");if(!(a instanceof r.Name))throw new n.FormatError("invalid font Subtype");let s,o=!1;if("Type0"===a.name){const t=e.get("DescendantFonts");if(!t)throw new n.FormatError("Descendant fonts are not specified");if(!((e=Array.isArray(t)?this.xref.fetchIfRef(t[0]):t)instanceof r.Dict))throw new n.FormatError("Descendant font is not a dictionary.");a=e.get("Subtype");if(!(a instanceof r.Name))throw new n.FormatError("invalid font Subtype");o=!0}let l=e.get("FirstChar");Number.isInteger(l)||(l=0);let c=e.get("LastChar");Number.isInteger(c)||(c=o?65535:255);const f=e.get("FontDescriptor"),h=e.get("ToUnicode")||t.get("ToUnicode");if(f){s=new fe.MurmurHash3_64;const n=t.getRaw("Encoding");if(n instanceof r.Name)s.update(n.name);else if(n instanceof r.Ref)s.update(n.toString());else if(n instanceof r.Dict)for(const e of n.getRawValues())if(e instanceof r.Name)s.update(e.name);else if(e instanceof r.Ref)s.update(e.toString());else if(Array.isArray(e)){const t=e.length,a=new Array(t);for(let n=0;n<t;n++){const t=e[n];t instanceof r.Name?a[n]=t.name:("number"==typeof t||t instanceof r.Ref)&&(a[n]=t.toString())}s.update(a.join())}s.update(`${l}-${c}`);if(h instanceof i.BaseStream){const e=h.stream||h,t=e.buffer?new Uint8Array(e.buffer.buffer,0,e.bufferLength):new Uint8Array(e.bytes.buffer,e.start,e.end-e.start);s.update(t)}else h instanceof r.Name&&s.update(h.name);const f=e.get("Widths")||t.get("Widths");if(Array.isArray(f)){const e=[];for(const t of f)("number"==typeof t||t instanceof r.Ref)&&e.push(t.toString());s.update(e.join())}if(o){s.update("compositeFont");const a=e.get("W")||t.get("W");if(Array.isArray(a)){const e=[];for(const t of a)if("number"==typeof t||t instanceof r.Ref)e.push(t.toString());else if(Array.isArray(t)){const a=[];for(const e of t)("number"==typeof e||e instanceof r.Ref)&&a.push(e.toString());e.push(`[${a.join()}]`)}s.update(e.join())}const n=e.getRaw("CIDToGIDMap")||t.getRaw("CIDToGIDMap");n instanceof r.Name?s.update(n.name):n instanceof r.Ref?s.update(n.toString()):n instanceof i.BaseStream&&s.update(n.peekBytes())}if("Type3"===a.name){const e=t.get("CharProcs");if(e instanceof r.Dict)for(const[t,a]of e.getRawEntries())s.update(a instanceof r.Ref?`${t}\0${a}`:t)}}return{descriptor:f,dict:e,baseDict:t,composite:o,type:a.name,firstChar:l,lastChar:c,toUnicode:h,hash:s?s.hexdigest():""}}async translateFont({descriptor:e,dict:t,baseDict:s,composite:l,type:c,firstChar:f,lastChar:u,toUnicode:d,cssFontInfo:m},g){const w="Type3"===c;if(!e)if(w)e=r.Dict.empty;else{if(!l){let e=t.get("BaseFont");if(!(e instanceof r.Name))throw new n.FormatError("Base font is not specified");e=(0,b.normalizeFontName)(e.name);const a=this.getBaseFontMetrics(e),s=e.split("-",1)[0],i=(this.isSerifFont(s)?b.FontFlags.Serif:0)|(a.monospace?b.FontFlags.FixedPitch:0)|((0,v.getSymbolsFonts)()[s]?b.FontFlags.Symbolic:b.FontFlags.Nonsymbolic),o={type:c,name:e,loadedName:g,systemFontInfo:null,widths:a.widths,defaultWidth:a.defaultWidth,isSimulatedFlags:!0,flags:i,firstChar:f,lastChar:u,toUnicode:d,xHeight:0,capHeight:0,italicAngle:0,isType3Font:w},l=t.get("Widths");this.options.useSystemFonts&&(o.systemFontInfo=getFontSubstitution(this.systemFontCache,this.idFactory,e,(0,v.getStandardFontName)(e),c));const h=await this.extractDataStructures(t,o);if(Array.isArray(l)){const e=[];let t=f;for(const a of l){const n=this.xref.fetchIfRef(a);"number"==typeof n&&(e[t]=n);t++}h.widths=e}else h.widths=this.buildCharCodeToWidth(a.widths,h);const m=new j.Font(e,null,h,this.options);await Hellbox.generate(this,m);return m}e=r.Dict.empty}let y=e.get("FontName"),k=t.get("BaseFont");"string"==typeof y&&(y=r.Name.get(y));"string"==typeof k&&(k=r.Name.get(k));const q=y?.name,S=k?.name;if(w)q||(y=r.Name.get(c));else if(q!==S){(0,n.info)(`The FontDescriptor's FontName is "${q}" but should be the same as the Font's BaseFont "${S}".`);q&&S&&(S.startsWith(q)||!(0,v.isKnownFontName)(q)&&(0,v.isKnownFontName)(S))&&(y=null);y||=k}if(!(y instanceof r.Name))throw new n.FormatError("invalid font name");let _,C,F,x,T,O;try{for(const t of["FontFile","FontFile2","FontFile3"]){_=e.get(t);if(_){C=t;break}}if(_){if(!(_ instanceof i.BaseStream))throw new n.FormatError("FontFile should be a stream");if(_.isAsync){const e=await _.asyncGetBytes();e&&(_=new o.Stream(e,0,e.length,_.dict))}if(_.isEmpty)throw new n.FormatError("FontFile is empty")}}catch(e){if(!this.options.ignoreErrors)throw e;(0,n.warn)(`translateFont - fetching "${y.name}" font file: "${e}".`);_=null}let M=null;if(_){if(_.dict){const e=_.dict.get("Subtype");e instanceof r.Name&&(F=e.name);x=_.dict.get("Length1");T=_.dict.get("Length2");O=_.dict.get("Length3")}}else if(m){const{getXfaFontDict:e,getXfaFontName:n}=await Promise.resolve().then(()=>a(7631)),r=n(y.name);if(r){m.fontFamily=`${m.fontFamily}-PdfJS-XFA`;m.metrics=r.metrics||null;s=t=e(y.name);l=!0;const a=await Hellbox.generateXfaFont(this,r.name,t.get("W"));a&&(_=new o.Stream(a))}}else!w&&this.options.useSystemFonts&&(M=getFontSubstitution(this.systemFontCache,this.idFactory,y.name,(0,v.getStandardFontName)(y.name),c));const R=(0,h.lookupMatrix)(t.getArray("FontMatrix"),n.FONT_IDENTITY_MATRIX),D=(0,h.lookupNormalRect)(e.getArray("FontBBox")||t.getArray("FontBBox"),w?[0,0,0,0]:void 0);let H=e.get("Ascent");"number"!=typeof H&&(H=void 0);let N=e.get("Descent");"number"!=typeof N&&(N=void 0);let E=e.get("XHeight");"number"!=typeof E&&(E=0);let z=e.get("CapHeight");"number"!=typeof z&&(z=0);let L=e.get("Flags");Number.isInteger(L)||(L=0);let $=e.get("ItalicAngle");"number"!=typeof $&&($=0);const U={type:c,name:y.name,subtype:F,file:_,fontFileN:C,length1:x,length2:T,length3:O,loadedName:g,composite:l,fixedPitch:!1,fontMatrix:R,firstChar:f,lastChar:u,toUnicode:d,bbox:D,ascent:H,descent:N,xHeight:E,capHeight:z,flags:L,italicAngle:$,isType3Font:w,cssFontInfo:m,systemFontInfo:M};if(l){const e=s.get("Encoding");e instanceof r.Name&&(U.cidEncoding=e.name);const t=await CMapFactory.create({encoding:e,fetchBuiltInCMap:this._fetchBuiltInCMapBound,useCMap:null});U.cMap=t;U.vertical=U.cMap.vertical}const G=await this.extractDataStructures(t,U);this.extractWidths(t,e,G);const W=new j.Font(y.name,_,G,this.options);if(W.missingFile&&!W.systemFontInfo&&!w&&this.options.useSystemFonts){const e=(0,v.getStandardFontName)(y.name),t=getFontSubstitution(this.systemFontCache,this.idFactory,y.name,e,c);if(t){if(t.guessFallback){t.guessFallback=!1;t.css+=`,${W.fallbackName}`}W.systemFontInfo=t}}await Hellbox.generate(this,W);return W}static buildFontPaths(e,t,a,s){function buildPath(t){const r=`${e.loadedName}_path_${t}`;try{const n=e.renderer.getPath(t);if(!n)return;a.send("commonobj",[r,"FontPath",n],[n])}catch(e){if(s.ignoreErrors){(0,n.warn)(`buildFontPaths - ignoring ${r} glyph: "${e}".`);return}throw e}}for(const e of t){buildPath(e.fontChar);const t=e.accent;t?.fontChar&&buildPath(t.fontChar)}}static get fallbackFontDict(){const e=new r.Dict;e.set("BaseFont",r.Name.get("Helvetica"));e.set("Type",r.Name.get("FallbackType"));e.set("Subtype",r.Name.get("FallbackType"));e.set("Encoding",r.Name.get("WinAnsiEncoding"));return(0,n.shadow)(this,"fallbackFontDict",e)}}async function _createTransferMap(e){const t=await this._pdfFunctionFactory.create(e),a=new Float32Array(1);return Uint8Array.from({length:256},(e,n)=>{a[0]=n/255;t(a,0,a,0);return 255*a[0]|0})}var we=new WeakMap,je=new WeakMap,ye=new WeakSet;class TranslatedFont{constructor({loadedName:e,font:t,dict:a}){evaluator_classPrivateMethodInitSpec(this,ye);evaluator_classPrivateFieldInitSpec(this,we,!1);evaluator_classPrivateFieldInitSpec(this,je,null);this.loadedName=e;this.font=t;this.dict=a;this.type3Dependencies=t.isType3Font?new Set:null}send(e){if(evaluator_classPrivateFieldGet(we,this))return;evaluator_classPrivateFieldSet(we,this,!0);const t=this.font.exportData(),a=t.buffer?[t.buffer]:null;e.send("commonobj",[this.loadedName,"Font",t],a)}fallback(e,t){if(this.font.data&&!this.font.missingFile){this.font.disableFontFace=!0;PartialEvaluator.buildFontPaths(this.font,this.font.glyphCacheValues,e,t)}}async loadType3Data(e,t,a,i=null){if(evaluator_classPrivateFieldGet(je,this))return evaluator_classPrivateFieldGet(je,this);const{dict:o,font:l,type3Dependencies:c}=this;(0,n.assert)(l.isType3Font,"Must be a Type3 font.");const{promise:f,resolve:h}=(0,n.createPromiseCapability)();evaluator_classPrivateFieldSet(je,this,f);const u=e.clone({ignoreErrors:!1}),d=new r.RefSet(e.type3FontRefs);o.objId&&d.put(o.objId);u.type3FontRefs=d;const m=o.get("CharProcs"),g=o.get("Resources")||t,b=new Map,[w,j,y,v]=l.bbox,k=Math.hypot(y-w,v-j);for(const e of m.getKeys())try{const t=new s.OperatorList;await u.getOperatorList({stream:m.get(e),task:a,resources:g,operatorList:t,prevRefs:i});switch(t.fnArray[0]){case n.OPS.setCharWidthAndBounds:evaluator_assertClassBrand(ye,this,_removeType3ColorOperators).call(this,t,k);break;case n.OPS.setCharWidth:k||evaluator_assertClassBrand(ye,this,_guessType3FontBBox).call(this,t);t.fnArray.splice(1,0,n.OPS.setGState);t.argsArray.splice(1,0,[[["ca",1],["CA",1]]])}b.set(e,t.getIR());for(const e of t.dependencies)c.add(e)}catch{(0,n.warn)(`Type3 font resource "${e}" is not available.`);b.set(e,(new s.OperatorList).getIR())}l.charProcOperatorList=b;if(this._bbox){l.isCharBBox=!0;l.bbox=this._bbox}h();return evaluator_classPrivateFieldGet(je,this)}}function _removeType3ColorOperators(e,t=NaN){const a=n.Util.normalizeRect(e.argsArray[0].slice(2)),s=a[2]-a[0],r=a[3]-a[1],i=Math.hypot(s,r);if(0===s||0===r){e.fnArray.splice(0,1);e.argsArray.splice(0,1)}else if(0===t||Math.round(i/t)>=10){this._bbox??=n.BBOX_INIT.slice();n.Util.rectBoundingBox(...a,this._bbox)}let o=0,l=e.length;for(;o<l;){switch(e.fnArray[o]){case n.OPS.setCharWidthAndBounds:break;case n.OPS.setStrokeColorSpace:case n.OPS.setFillColorSpace:case n.OPS.setStrokeColor:case n.OPS.setStrokeColorN:case n.OPS.setFillColor:case n.OPS.setFillColorN:case n.OPS.setStrokeGray:case n.OPS.setFillGray:case n.OPS.setStrokeRGBColor:case n.OPS.setFillRGBColor:case n.OPS.setStrokeCMYKColor:case n.OPS.setFillCMYKColor:case n.OPS.shadingFill:case n.OPS.setRenderingIntent:e.fnArray.splice(o,1);e.argsArray.splice(o,1);l--;continue;case n.OPS.setGState:const[t]=e.argsArray[o];let a=0,s=t.length;for(;a<s;){const[e]=t[a];switch(e){case"TR":case"TR2":case"HT":case"BG":case"BG2":case"UCR":case"UCR2":t.splice(a,1);s--;continue}a++}}o++}}function _guessType3FontBBox(e){let t=1;const a=e.length;for(;t<a;){if(e.fnArray[t]===n.OPS.constructPath){const a=e.argsArray[t][2];this._bbox??=n.BBOX_INIT.slice();n.Util.rectBoundingBox(...a,this._bbox)}t++}}class StateManager{constructor(e=new EvalState){this.state=e;this.stateStack=[]}save(){const e=this.state;this.stateStack.push(this.state);this.state=e.clone()}restore(){const e=this.stateStack.pop();e&&(this.state=e)}transform(e){this.state.ctm=n.Util.transform(this.state.ctm,e)}}class TextState{constructor(){evaluator_defineProperty(this,"ctm",new Float32Array(h.IDENTITY_MATRIX));evaluator_defineProperty(this,"fontName",null);evaluator_defineProperty(this,"fontSize",0);evaluator_defineProperty(this,"loadedName",null);evaluator_defineProperty(this,"font",null);evaluator_defineProperty(this,"fontMatrix",n.FONT_IDENTITY_MATRIX);evaluator_defineProperty(this,"textMatrix",h.IDENTITY_MATRIX.slice());evaluator_defineProperty(this,"textLineMatrix",h.IDENTITY_MATRIX.slice());evaluator_defineProperty(this,"charSpacing",0);evaluator_defineProperty(this,"wordSpacing",0);evaluator_defineProperty(this,"leading",0);evaluator_defineProperty(this,"textHScale",1);evaluator_defineProperty(this,"textRise",0)}setTextMatrix(e,t,a,n,s,r){const i=this.textMatrix;i[0]=e;i[1]=t;i[2]=a;i[3]=n;i[4]=s;i[5]=r}setTextLineMatrix(e,t,a,n,s,r){const i=this.textLineMatrix;i[0]=e;i[1]=t;i[2]=a;i[3]=n;i[4]=s;i[5]=r}translateTextMatrix(e,t){const 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){const 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(){const e=Object.assign(Object.create(this),this);e.textMatrix=this.textMatrix.slice();e.textLineMatrix=this.textLineMatrix.slice();e.fontMatrix=this.fontMatrix.slice();return e}}class EvalState{constructor(){evaluator_defineProperty(this,"ctm",new Float32Array(h.IDENTITY_MATRIX));evaluator_defineProperty(this,"font",null);evaluator_defineProperty(this,"textRenderingMode",n.TextRenderingMode.FILL);evaluator_defineProperty(this,"_fillColorSpace",T.ColorSpaceUtils.gray);evaluator_defineProperty(this,"_strokeColorSpace",T.ColorSpaceUtils.gray);evaluator_defineProperty(this,"patternFillColorSpace",null);evaluator_defineProperty(this,"patternStrokeColorSpace",null);evaluator_defineProperty(this,"currentPointX",0);evaluator_defineProperty(this,"currentPointY",0);evaluator_defineProperty(this,"pathMinMax",n.F32_BBOX_INIT.slice());evaluator_defineProperty(this,"pathBuffer",[])}get fillColorSpace(){return this._fillColorSpace}set fillColorSpace(e){this._fillColorSpace=this.patternFillColorSpace=e}get strokeColorSpace(){return this._strokeColorSpace}set strokeColorSpace(e){this._strokeColorSpace=this.patternStrokeColorSpace=e}clone({newPath:e=!1}={}){const t=Object.create(this);if(e){t.pathBuffer=[];t.pathMinMax=n.F32_BBOX_INIT.slice()}return t}}class EvaluatorPreprocessor{static get opMap(){return(0,n.shadow)(this,"opMap",Object.assign(Object.create(null),{w:{id:n.OPS.setLineWidth,numArgs:1,variableArgs:!1},J:{id:n.OPS.setLineCap,numArgs:1,variableArgs:!1},j:{id:n.OPS.setLineJoin,numArgs:1,variableArgs:!1},M:{id:n.OPS.setMiterLimit,numArgs:1,variableArgs:!1},d:{id:n.OPS.setDash,numArgs:2,variableArgs:!1},ri:{id:n.OPS.setRenderingIntent,numArgs:1,variableArgs:!1},i:{id:n.OPS.setFlatness,numArgs:1,variableArgs:!1},gs:{id:n.OPS.setGState,numArgs:1,variableArgs:!1},q:{id:n.OPS.save,numArgs:0,variableArgs:!1},Q:{id:n.OPS.restore,numArgs:0,variableArgs:!1},cm:{id:n.OPS.transform,numArgs:6,variableArgs:!1},m:{id:n.OPS.moveTo,numArgs:2,variableArgs:!1},l:{id:n.OPS.lineTo,numArgs:2,variableArgs:!1},c:{id:n.OPS.curveTo,numArgs:6,variableArgs:!1},v:{id:n.OPS.curveTo2,numArgs:4,variableArgs:!1},y:{id:n.OPS.curveTo3,numArgs:4,variableArgs:!1},h:{id:n.OPS.closePath,numArgs:0,variableArgs:!1},re:{id:n.OPS.rectangle,numArgs:4,variableArgs:!1},S:{id:n.OPS.stroke,numArgs:0,variableArgs:!1},s:{id:n.OPS.closeStroke,numArgs:0,variableArgs:!1},f:{id:n.OPS.fill,numArgs:0,variableArgs:!1},F:{id:n.OPS.fill,numArgs:0,variableArgs:!1},"f*":{id:n.OPS.eoFill,numArgs:0,variableArgs:!1},B:{id:n.OPS.fillStroke,numArgs:0,variableArgs:!1},"B*":{id:n.OPS.eoFillStroke,numArgs:0,variableArgs:!1},b:{id:n.OPS.closeFillStroke,numArgs:0,variableArgs:!1},"b*":{id:n.OPS.closeEOFillStroke,numArgs:0,variableArgs:!1},n:{id:n.OPS.endPath,numArgs:0,variableArgs:!1},W:{id:n.OPS.clip,numArgs:0,variableArgs:!1},"W*":{id:n.OPS.eoClip,numArgs:0,variableArgs:!1},BT:{id:n.OPS.beginText,numArgs:0,variableArgs:!1},ET:{id:n.OPS.endText,numArgs:0,variableArgs:!1},Tc:{id:n.OPS.setCharSpacing,numArgs:1,variableArgs:!1},Tw:{id:n.OPS.setWordSpacing,numArgs:1,variableArgs:!1},Tz:{id:n.OPS.setHScale,numArgs:1,variableArgs:!1},TL:{id:n.OPS.setLeading,numArgs:1,variableArgs:!1},Tf:{id:n.OPS.setFont,numArgs:2,variableArgs:!1},Tr:{id:n.OPS.setTextRenderingMode,numArgs:1,variableArgs:!1},Ts:{id:n.OPS.setTextRise,numArgs:1,variableArgs:!1},Td:{id:n.OPS.moveText,numArgs:2,variableArgs:!1},TD:{id:n.OPS.setLeadingMoveText,numArgs:2,variableArgs:!1},Tm:{id:n.OPS.setTextMatrix,numArgs:6,variableArgs:!1},"T*":{id:n.OPS.nextLine,numArgs:0,variableArgs:!1},Tj:{id:n.OPS.showText,numArgs:1,variableArgs:!1},TJ:{id:n.OPS.showSpacedText,numArgs:1,variableArgs:!1},"'":{id:n.OPS.nextLineShowText,numArgs:1,variableArgs:!1},'"':{id:n.OPS.nextLineSetSpacingShowText,numArgs:3,variableArgs:!1},d0:{id:n.OPS.setCharWidth,numArgs:2,variableArgs:!1},d1:{id:n.OPS.setCharWidthAndBounds,numArgs:6,variableArgs:!1},CS:{id:n.OPS.setStrokeColorSpace,numArgs:1,variableArgs:!1},cs:{id:n.OPS.setFillColorSpace,numArgs:1,variableArgs:!1},SC:{id:n.OPS.setStrokeColor,numArgs:4,variableArgs:!0},SCN:{id:n.OPS.setStrokeColorN,numArgs:33,variableArgs:!0},sc:{id:n.OPS.setFillColor,numArgs:4,variableArgs:!0},scn:{id:n.OPS.setFillColorN,numArgs:33,variableArgs:!0},G:{id:n.OPS.setStrokeGray,numArgs:1,variableArgs:!1},g:{id:n.OPS.setFillGray,numArgs:1,variableArgs:!1},RG:{id:n.OPS.setStrokeRGBColor,numArgs:3,variableArgs:!1},rg:{id:n.OPS.setFillRGBColor,numArgs:3,variableArgs:!1},K:{id:n.OPS.setStrokeCMYKColor,numArgs:4,variableArgs:!1},k:{id:n.OPS.setFillCMYKColor,numArgs:4,variableArgs:!1},sh:{id:n.OPS.shadingFill,numArgs:1,variableArgs:!1},BI:{id:n.OPS.beginInlineImage,numArgs:0,variableArgs:!1},ID:{id:n.OPS.beginImageData,numArgs:0,variableArgs:!1},EI:{id:n.OPS.endInlineImage,numArgs:1,variableArgs:!1},Do:{id:n.OPS.paintXObject,numArgs:1,variableArgs:!1},MP:{id:n.OPS.markPoint,numArgs:1,variableArgs:!1},DP:{id:n.OPS.markPointProps,numArgs:2,variableArgs:!1},BMC:{id:n.OPS.beginMarkedContent,numArgs:1,variableArgs:!1},BDC:{id:n.OPS.beginMarkedContentProps,numArgs:2,variableArgs:!1},EMC:{id:n.OPS.endMarkedContent,numArgs:0,variableArgs:!1},BX:{id:n.OPS.beginCompat,numArgs:0,variableArgs:!1},EX:{id:n.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}))}constructor(e,t,a=new StateManager){this.parser=new f.Parser({lexer:new f.Lexer(e,EvaluatorPreprocessor.opMap),xref:t});this.stateManager=a;this.nonProcessedArgs=[];this._isPathOp=!1;this._numInvalidPathOPS=0}get savedStatesDepth(){return this.stateManager.stateStack.length}read(e){let t=e.args;for(;;){const a=this.parser.getObj();if(a instanceof r.Cmd){const s=a.cmd,r=EvaluatorPreprocessor.opMap[s];if(!r){(0,n.warn)(`Unknown command "${s}".`);continue}const i=r.id,o=r.numArgs;let l=null!==t?t.length:0;this._isPathOp||(this._numInvalidPathOPS=0);this._isPathOp=i>=n.OPS.moveTo&&i<=n.OPS.endPath;if(r.variableArgs)l>o&&(0,n.info)(`Command ${s}: expected [0, ${o}] args, but received ${l} args.`);else{if(l!==o){const e=this.nonProcessedArgs;for(;l>o;){e.push(t.shift());l--}for(;l<o&&0!==e.length;){null===t&&(t=[]);t.unshift(e.pop());l++}}if(l<o){const e=`command ${s}: expected ${o} args, but received ${l} args.`;if(this._isPathOp&&++this._numInvalidPathOPS>EvaluatorPreprocessor.MAX_INVALID_PATH_OPS)throw new n.FormatError(`Invalid ${e}`);(0,n.warn)(`Skipping ${e}`);null!==t&&(t.length=0);continue}}this.preprocessCommand(i,t);e.fn=i;e.args=t;return!0}if(a===r.EOF)return!1;if(null!==a){null===t&&(t=[]);t.push(a);if(t.length>33)throw new n.FormatError("Too many arguments")}}}preprocessCommand(e,t){switch(0|e){case n.OPS.save:this.stateManager.save();break;case n.OPS.restore:this.stateManager.restore();break;case n.OPS.transform:this.stateManager.transform(t)}}}evaluator_defineProperty(EvaluatorPreprocessor,"MAX_INVALID_PATH_OPS",10)},5275(e,t,a){a.d(t,{parseMarkedContentProps:()=>parseMarkedContentProps,textSinkWrapper:()=>textSinkWrapper});var n=a(5632),s=a(1723);function textSinkWrapper(e){const t=e?null:Promise.resolve();return{enqueueInvoked:!1,enqueue(t,a){this.enqueueInvoked=!0;e?.enqueue(t,a)},get desiredSize(){return e?.desiredSize??100},get ready(){return e?.ready??t}}}function _parseVisibilityExpression(e,t,a,r){if(++a>10){(0,s.warn)("Visibility expression is too deeply nested");return}const i=t.length,o=e.fetchIfRef(t[0]);if(!(i<2)&&o instanceof n.Name){switch(o.name){case"And":case"Or":case"Not":r.push(o.name);break;default:(0,s.warn)(`Invalid operator ${o.name} in visibility expression`);return}for(let s=1;s<i;s++){const i=t[s],o=e.fetchIfRef(i);if(Array.isArray(o)){const t=[];r.push(t);_parseVisibilityExpression(e,o,a,t)}else i instanceof n.Ref&&r.push(i.toString())}}else(0,s.warn)("Invalid visibility expression")}function parseMarkedContentProps(e,t,a){let r;if(t instanceof n.Name){r=a.get("Properties").get(t.name)}else{if(!(t instanceof n.Dict))throw new s.FormatError("Optional content properties malformed.");r=t}const i=r.get("Type")?.name;if("OCG"===i)return{type:i,id:r.objId};if("OCMD"===i){const t=r.get("VE");if(Array.isArray(t)){const a=[];_parseVisibilityExpression(e,t,0,a);if(a.length>0)return{type:"OCMD",expression:a}}const a=r.get("OCGs");if(Array.isArray(a)||a instanceof n.Dict){const e=[];if(Array.isArray(a))for(const t of a)e.push(t.toString());else e.push(a.objId);const t=r.get("P");return{type:i,ids:e,policy:t instanceof n.Name?t.name:null,expression:null}}if(a instanceof n.Ref)return{type:i,id:a.toString()}}return null}},3944(e,t,a){a.d(t,{FileSpec:()=>FileSpec});var n=a(1723),s=a(1834),r=a(5632),i=a(5389);class FileSpec{constructor(e){if(e instanceof r.Dict){this.root=e;e.has("RF")&&(0,n.warn)("Related file specifications are not supported")}}get filename(){const e=FileSpec.pickPlatformItem(this.root);return e&&"string"==typeof e?(0,i.stringToPDFString)(e,!0).replaceAll("\\\\","\\").replaceAll("\\/","/").replaceAll("\\","/"):""}get description(){const e=this.root?.get("Desc");return e&&"string"==typeof e?(0,i.stringToPDFString)(e):""}get serializable(){const{filename:e,description:t}=this;return{rawFilename:e,filename:(0,n.stripPath)(e)||"unnamed",description:t}}static pickPlatformItem(e,t=!1){if(e instanceof r.Dict)for(const a of["UF","F","Unix","Mac","DOS"])if(e.has(a))return t?e.getRaw(a):e.get(a);return null}static hasEmbeddedFile(e){return this.pickPlatformItem(e.get("EF"))instanceof s.BaseStream}static readContent(e){if(!(e instanceof r.Dict))return null;const t=this.pickPlatformItem(e.get("EF"));if(!(t instanceof s.BaseStream)){(0,n.warn)("Embedded file specification points to non-existing/invalid content");return null}return this.readStreamContent(t)}static readStreamContent(e){const t=e.dict?.xref?.encrypt;if(null===t?.encryptionKey)throw new n.PasswordException("No password given",n.PasswordResponses.NEED_PASSWORD);return e.getBytes()}}},2537(e,t,a){a.d(t,{PageAnnotationFlattener:()=>PageAnnotationFlattener,StructTreeFlattener:()=>StructTreeFlattener,finalizeFlattening:()=>finalizeFlattening});var n=a(1723),s=a(5399),r=a(5632),i=a(3738),o=a(1440),l=a(4106),c=a(1834),f=a(9285),h=a(6721),u=a(1740);function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const d=new Set(["3D","FileAttachment","Link","Movie","RichMedia","Screen","Sound"]);var m=new WeakMap,g=new WeakMap,b=new WeakMap,w=new WeakMap,j=new WeakMap,y=new WeakMap,v=new WeakMap,k=new WeakMap,q=new WeakMap,S=new WeakMap,_=new WeakSet;class PageAnnotationFlattener{constructor({page:e,annotationStorage:t,changes:a,flattenForms:n,intent:r,structTree:i,getResources:o}){_classPrivateMethodInitSpec(this,_);_classPrivateFieldInitSpec(this,m,void 0);_classPrivateFieldInitSpec(this,g,void 0);_classPrivateFieldInitSpec(this,b,void 0);_classPrivateFieldInitSpec(this,w,void 0);_classPrivateFieldInitSpec(this,j,void 0);_classPrivateFieldInitSpec(this,y,void 0);_classPrivateFieldInitSpec(this,v,void 0);_classPrivateFieldInitSpec(this,k,void 0);_classPrivateFieldInitSpec(this,q,void 0);_classPrivateFieldInitSpec(this,S,void 0);_classPrivateFieldSet(k,this,e);_classPrivateFieldSet(m,this,t);_classPrivateFieldSet(g,this,a);_classPrivateFieldSet(b,this,new s.ChangesXRefWrapper(a,e.xref));_classPrivateFieldSet(j,this,n);_classPrivateFieldSet(v,this,r);_classPrivateFieldSet(q,this,i);_classPrivateFieldSet(y,this,o)}async flatten(e,t){const a=_classPrivateFieldGet(k,this),s=_classPrivateFieldGet(g,this),o=_classPrivateFieldGet(m,this),c=_classPrivateFieldGet(j,this),f=_classPrivateFieldGet(v,this),h=_classPrivateFieldGet(q,this),{xref:u}=a;if(!(a.ref instanceof r.Ref)){const e=(await a._parsedAnnotations).some(e=>e instanceof i.WidgetAnnotation);return{hadWidgets:e,hasWidgets:e,removed:null,tags:null}}const b=s.get(a.ref)?.data||a.pageDict.clone(),y=s.has(a.ref)?b.get("Annots"):a.annotations;if(!Array.isArray(y)||0===y.length)return{hadWidgets:!1,hasWidgets:!1,removed:null,tags:null};const C=new r.RefMap;for(const e of await a._parsedAnnotations)e.ref&&C.put(e.ref,e);_classPrivateFieldSet(w,this,a._createPartialEvaluator(e));_classPrivateFieldSet(S,this,t);const F=[],x=[],T=new r.RefSet,O=new r.RefSet,M=[],R=[];let D=!1,H=!1;for(const e of y){const t=await _assertClassBrand(_,this,_fetch).call(this,e);if(!(t instanceof r.Dict))continue;let a,i;try{a=t.get("Subtype");i=t.get("F")}catch(t){(0,n.warn)(`flattenAnnotations - ignoring annotation: "${t}".`);x.push({annotation:e});continue}const l=(0,r.isName)(a,"Widget");H||=l;if(l&&(!c||t.has("PMD"))){D=!0;x.push({annotation:e});continue}const u=e instanceof r.Ref?C.get(e):null,m=e instanceof r.Ref&&s.has(e);let g;g=!u||m&&!l?!((f&n.RenderingIntentFlag.PRINT?!(i&n.AnnotationFlag.PRINT):i&n.AnnotationFlag.NOVIEW)||i&n.AnnotationFlag.HIDDEN):f&n.RenderingIntentFlag.PRINT?u.mustBePrinted(o):u.mustBeViewed(o,!1);let b=null;if(g)try{b=await _assertClassBrand(_,this,_getAppearanceToFlatten).call(this,{dict:t,parsedAnnotation:u,isModified:m})}catch(e){(0,n.warn)(`flattenAnnotations - cannot get the appearance: "${e}".`)}if(a instanceof r.Name&&d.has(a.name)){if(b&&e instanceof r.Ref){F.push({appearance:b,oc:t.getRaw("OC"),tag:null});R.push({annotation:e,dict:t})}x.push({annotation:e});continue}if(!b&&(!l||g)){D||=l;const n=(0,r.isName)(a,"Popup");x.push({annotation:e,isPopup:n,parent:n?t.getRaw("Parent"):null});continue}let w=null;if(e instanceof r.Ref){T.put(e);const a=t.getRaw("Popup");a instanceof r.Ref&&O.put(a);w=h?.getTag(t)??null;if(w){w.annotation=e;M.push(w)}}b&&F.push({appearance:b,oc:t.getRaw("OC"),tag:w})}const N=[];for(const{annotation:e,isPopup:t,parent:a}of x)t&&(a instanceof r.Ref&&T.has(a)||e instanceof r.Ref&&O.has(e))?e instanceof r.Ref&&T.put(e):N.push(e);if(N.length===y.length&&0===F.length)return{hadWidgets:H,hasWidgets:D,removed:null,tags:null};if(F.length>0&&!await _assertClassBrand(_,this,_drawFlattenedAppearances).call(this,b,F))return{hadWidgets:H,hasWidgets:H,removed:null,tags:null};b.set("Annots",N);if(R.length>0){const e=new r.Dict(u);e.setIfName("Subtype","Form");e.set("BBox",[0,0,1,1]);const t=u.getNewTemporaryRef();s.put(t,{data:new l.StringStream("",e)});for(const{annotation:e,dict:a}of R){const n=new r.Dict(u);n.set("N",t);const i=a.clone();i.set("AP",n);i.delete("AS");s.put(e,{data:i})}}s.put(a.ref,{data:b});return{hadWidgets:H,hasWidgets:D,removed:T,tags:M}}}async function _fetch(e){try{return await _classPrivateFieldGet(b,this).fetchIfRefAsync(e)}catch(t){(0,n.warn)(`flattenAnnotations - cannot fetch "${e}": "${t}".`);return null}}async function _drawFlattenedAppearances(e,t){const{xref:a}=_classPrivateFieldGet(k,this),i=_classPrivateFieldGet(g,this),c=_classPrivateFieldGet(q,this);let u,d,m;try{u=await _classPrivateFieldGet(k,this).getContentStream();d=function getUnbalancedOperators(e,t){const a={saves:0,unmatchedRestores:0,markedContent:0,inText:!1,lastMCID:-1},s=new f.EvaluatorPreprocessor(e,t),i={fn:0,args:[]};for(;;){i.args.length=0;if(!s.read(i))break;switch(0|i.fn){case n.OPS.save:a.saves++;break;case n.OPS.restore:a.saves>0?a.saves--:a.unmatchedRestores++;break;case n.OPS.beginText:a.inText=!0;break;case n.OPS.endText:a.inText=!1;break;case n.OPS.beginMarkedContentProps:{const e=i.args[1],t=e instanceof r.Dict?e.get("MCID"):null;Number.isInteger(t)&&t>a.lastMCID&&(a.lastMCID=t);a.markedContent++;break}case n.OPS.beginMarkedContent:a.markedContent++;break;case n.OPS.endMarkedContent:a.markedContent>0&&a.markedContent--}}return a}(u,a);m=await _classPrivateFieldGet(y,this).call(this,u.dict)}catch(e){(0,n.warn)(`flattenAnnotations - cannot parse the page content: "${e}".`);return!1}const{saves:b,unmatchedRestores:w,markedContent:j,inText:v,lastMCID:S}=d;let C;if(w>0){const e=function removeUnmatchedRestores(e,t,a){try{e.reset();const n=e.getBytes().slice(),s=new o.Lexer(new l.Stream(n),f.EvaluatorPreprocessor.opMap);let i=0,c=0;for(let e=s.getObj();e!==r.EOF;e=s.getObj()){for(;(0,r.isCmd)(e,"BI");){const t=new o.Parser({lexer:s,xref:a});t.makeInlineImage(null);e=t.buf2}if(e instanceof r.Cmd)switch(e.cmd){case"[":case"<<":c++;break;case"]":case">>":c=Math.max(c-1,0);break;case"q":0===c&&i++;break;case"Q":if(c>0)break;if(i>0){i--;break}n[(s.currentChar<0?n.length:s.stream.pos-1)-1]=32;t--}}return 0===t?n:null}catch(e){(0,n.warn)(`flattenAnnotations - cannot remove the unmatched restores: "${e}".`);return null}}(u,w,a);if(!e)return!1;const t=a.getNewTemporaryRef();i.put(t,{data:new l.Stream(e,0,e.length,new r.Dict(a))});C=[t]}else{C=e.getRaw("Contents");if(C instanceof r.Ref){const e=await _assertClassBrand(_,this,_fetch).call(this,C);Array.isArray(e)&&(C=e)}Array.isArray(C)||(C=C?[C]:[])}m=m.clone();const F=new Map,x=new Map,addResource=(e,t,s)=>{const i=s instanceof r.Ref?`${e}_${s}`:null;if(i&&x.has(i))return x.get(i);let o=F.get(e);if(!o){let t=null;try{t=m.get(e)}catch(e){(0,n.warn)(`flattenAnnotations - cannot get the resources: "${e}".`)}o=t instanceof r.Dict?t.clone():new r.Dict(a);F.set(e,o)}let l=o.size;for(;o.has(`${t}${l}`);)l++;const c=`${t}${l}`;o.set(c,s);i&&x.set(i,c);return c},T=[];let O=c?.getNextMCID(e,S);for(const{appearance:e,oc:a,tag:n}of t){const t=e.transform.map(h.numberToPDFString).join(" "),r=addResource("XObject","FlatAnnot",e.ref),i=a?addResource("Properties","FlatOC",a):null;if(n?.type){n.mcid=O++;T.push(`/${(0,s.escapePDFName)(n.type)} <</MCID ${n.mcid}>> BDC`)}i&&T.push(`/OC /${i} BDC`);T.push(`q ${t} cm /${r} Do Q`);i&&T.push("EMC");n?.type&&T.push("EMC")}for(const[e,t]of F)m.set(e,t);e.set("Resources",m);const M=(v?"ET\n":"")+"EMC\n".repeat(j)+"Q\n".repeat(b+1),R=a.getNewTemporaryRef(),D=a.getNewTemporaryRef();i.put(R,{data:new l.StringStream("q\n",new r.Dict(a))});i.put(D,{data:new l.StringStream(`\n${M}${T.join("\n")}\n`,new r.Dict(a))});e.set("Contents",[R,...C,D]);return!0}async function _getAppearanceToFlatten({dict:e,parsedAnnotation:t,isModified:a}){let o=(0,s.lookupNormalRect)(e.getArray("Rect"),null),l=null,f=null;if(t instanceof i.WidgetAnnotation){f=await t.getFlattenedAppearance(_classPrivateFieldGet(w,this),_classPrivateFieldGet(S,this),_classPrivateFieldGet(m,this),_classPrivateFieldGet(v,this));if(!1===f)return null}if(!f){const n=await _assertClassBrand(_,this,_fetch).call(this,e.getRaw("AP"));if(n instanceof r.Dict){l=n.getRaw("N");f=await _assertClassBrand(_,this,_fetch).call(this,l);if(f instanceof r.Dict){const t=e.get("AS");l=t instanceof r.Name?f.getRaw(t.name):null;f=await _assertClassBrand(_,this,_fetch).call(this,l)}}else if(!a&&t?.appearance&&isSelfContained(t.appearance)){({appearance:f}=t);o=t.data.rect}}if(!(f instanceof c.BaseStream&&o))return null;const h=[0,0,o[2]-o[0],o[3]-o[1]],u=(0,s.lookupMatrix)(f.dict?.getArray("Matrix"),s.IDENTITY_MATRIX),d=(0,s.lookupRect)(f.dict?.getArray("BBox"),null);let b=d??h;const j=(0,i.getTransformMatrix)(o,b,u),y=n.BBOX_INIT.slice();n.Util.axialAlignedBoundingBox(b,u,y);if(y[0]===y[2]||y[1]===y[3]){b=n.BBOX_INIT.slice();n.Util.axialAlignedBoundingBox(h,n.Util.inverseTransform(u),b);b.every(Number.isFinite)||(b=h)}if(!j.every(Number.isFinite)||!b.every(Number.isFinite))return null;if(!(l instanceof r.Ref&&(0,r.isName)(f.dict?.get("Subtype"),"Form")&&b===d)){f=_assertClassBrand(_,this,_copyObject).call(this,f,b);f.dict.setIfName("Subtype","Form");f.dict.set("BBox",b);l=_classPrivateFieldGet(k,this).xref.getNewTemporaryRef();_classPrivateFieldGet(g,this).put(l,{data:f})}return{ref:l,transform:j}}function _copyObject(e,t){if(e instanceof c.BaseStream){t=(0,s.lookupRect)(e.dict?.getArray("BBox"),t);const a=e.dict?_assertClassBrand(_,this,_copyObject).call(this,e.dict,t):new r.Dict(_classPrivateFieldGet(k,this).xref);a.delete("Filter");a.delete("DecodeParms");a.delete("Length");(0,r.isName)(a.get("Subtype"),"Form")&&!(0,s.lookupRect)(a.getArray("BBox"),null)&&a.set("BBox",t);e.reset();const n=e.getBytes();e.reset();return new l.Stream(n,0,n.length,a)}const toIndirect=e=>{const a=_assertClassBrand(_,this,_copyObject).call(this,e,t);if(!(a instanceof c.BaseStream))return a;const n=_classPrivateFieldGet(k,this).xref.getNewTemporaryRef();_classPrivateFieldGet(g,this).put(n,{data:a});return n};if(e instanceof r.Dict){const t=new r.Dict(_classPrivateFieldGet(k,this).xref);for(const[a,n]of e.getRawEntries())t.set(a,toIndirect(n));return t}return Array.isArray(e)?e.map(toIndirect):e}function isSelfContained(e){return!(e instanceof r.Ref)&&(e instanceof c.BaseStream?!e.dict||isSelfContained(e.dict):e instanceof r.Dict?e.getRawValues().every(isSelfContained):!Array.isArray(e)||e.every(isSelfContained))}async function finalizeFlattening({results:e,structTree:t,manager:a,acroForm:n,acroFormRef:i,catalogRef:o,changes:l,xref:f,flattenForms:h}){const u=new s.ChangesXRefWrapper(l,f),getDict=e=>{try{const t=u.fetchIfRef(e);return t instanceof r.Dict?t:null}catch{return null}};if(t){for(const{pageRef:a,tags:n}of e)n?.length>0&&a instanceof r.Ref&&t.update({pageRef:a,tags:n});t.save()}const d=new r.RefSet;for(const t of e)for(const e of t.removed??[])d.put(e);const m=!h||!(o instanceof r.Ref)||!e.some(({hadWidgets:e})=>e)||e.some(({hasWidgets:e})=>e)||(await a.ensureDoc("formInfo")).hasSignatures;if(m)h&&n instanceof r.Dict&&(n=function pruneFields({acroForm:e,acroFormRef:t,catalogRef:a,changes:n,removed:i,getDict:o}){const l=new r.RefSet,pruneKids=e=>{const t=[];let a=!1;for(const c of e){const e=o(c);if(c instanceof r.Ref){if(i.has(c)&&(!e||!(0,r.isName)((0,s.getInheritableProperty)({dict:e,key:"FT"}),"Sig"))){a=!0;continue}if(l.has(c)){t.push(c);continue}l.put(c)}const f=e?.get("Kids"),h=Array.isArray(f)&&f.length>0?pruneKids(f):f;if(h===f){t.push(c);continue}a=!0;if(0===h.length){c instanceof r.Ref&&i.put(c);continue}const u=e.clone();u.set("Kids",h);if(c instanceof r.Ref){n.put(c,{...n.get(c),data:u});t.push(c)}else t.push(u)}return a?t:e},c=e.get("Fields");if(!Array.isArray(c))return e;const f=pruneKids(c),h=e.get("CO"),u=Array.isArray(h)?h.filter(e=>!(e instanceof r.Ref&&i.has(e))):h;if(f===c&&u?.length===h?.length)return e;e=e.clone();e.set("Fields",f);Array.isArray(u)&&e.set("CO",u);if(t)n.put(t,{data:e});else if(a instanceof r.Ref){const t=o(a);if(t instanceof r.Dict){const s=t.clone();s.set("AcroForm",e);n.put(a,{data:s})}}return e}({acroForm:n,acroFormRef:i,catalogRef:o,changes:l,removed:d,getDict}));else{const e=getDict(o);if(e instanceof r.Dict&&e.has("AcroForm")){const t=e.clone();t.delete("AcroForm");l.put(o,{data:t})}n=null}!function pruneChanges({changes:e,removed:t,removeFields:a,xref:n,getDict:s}){const i=new r.RefSet(t);if(a)for(const e of t)for(let t=s(r.Ref.fromString(e))?.getRaw("Parent");t instanceof r.Ref&&!i.has(t);t=s(t)?.getRaw("Parent"))i.put(t);for(const t of i)e.remove(t);const isNew=e=>!n.getEntry(e.num),o=new r.RefSet,visit=t=>{if(t instanceof r.Ref){if(isNew(t)&&e.has(t)&&!o.has(t)){o.put(t);visit(e.get(t).data)}}else if(t instanceof c.BaseStream)visit(t.dict);else if(t instanceof r.Dict)for(const e of t.getRawValues())visit(e);else if(Array.isArray(t))for(const e of t)visit(e)};for(const[t,{data:a}]of e.items())isNew(t)||visit(a);for(const t of e.keys())isNew(t)&&!o.has(t)&&e.remove(t)}({changes:l,removed:d,removeFields:!m,xref:f,getDict});return n}var C=new WeakMap,F=new WeakMap,x=new WeakMap,T=new WeakMap,O=new WeakMap,M=new WeakMap,R=new WeakMap,D=new WeakMap,H=new WeakMap,N=new WeakMap,E=new WeakSet;class StructTreeFlattener{constructor({changes:e,root:t,rootRef:a,xref:i}){_classPrivateMethodInitSpec(this,E);_classPrivateFieldInitSpec(this,C,void 0);_classPrivateFieldInitSpec(this,F,void 0);_classPrivateFieldInitSpec(this,x,null);_classPrivateFieldInitSpec(this,T,!1);_classPrivateFieldInitSpec(this,O,null);_classPrivateFieldInitSpec(this,M,null);_classPrivateFieldInitSpec(this,R,null);_classPrivateFieldInitSpec(this,D,void 0);_classPrivateFieldInitSpec(this,H,void 0);_classPrivateFieldInitSpec(this,N,void 0);_classPrivateFieldSet(C,this,e);_classPrivateFieldSet(F,this,new s.ChangesXRefWrapper(e,i));_classPrivateFieldSet(D,this,t);_classPrivateFieldSet(H,this,a);_classPrivateFieldSet(N,this,i);const o=t.getRaw("ParentTree"),l=_assertClassBrand(E,this,_fetch2).call(this,o);if(!(l instanceof r.Dict))return;const c=new u.NumberTree(o,_classPrivateFieldGet(F,this));try{_classPrivateFieldSet(x,this,c.getAll(!0))}catch(e){(0,n.warn)(`StructTreeFlattener: cannot read the parent tree: "${e}".`);_classPrivateFieldSet(O,this,c);return}for(const e of _classPrivateFieldGet(x,this).keys())Number.isInteger(e)||_classPrivateFieldGet(x,this).delete(e);_classPrivateFieldSet(M,this,l);_classPrivateFieldSet(R,this,o)}static create({catalogRef:e,changes:t,xref:a}){try{const n=new s.ChangesXRefWrapper(t,a),i=n.fetchIfRef(e)?.getRaw("StructTreeRoot"),o=n.fetchIfRef(i);return i instanceof r.Ref&&o instanceof r.Dict?new StructTreeFlattener({changes:t,root:o,rootRef:i,xref:a}):null}catch(e){(0,n.warn)(`StructTreeFlattener: "${e}".`);return null}}getTag(e){try{const t=e.get("StructParent");if(!Number.isInteger(t))return null;const a=_classPrivateFieldGet(x,this)?_classPrivateFieldGet(x,this).get(t):_classPrivateFieldGet(O,this)?.getRaw(t),n=_assertClassBrand(E,this,_fetch2).call(this,a);if(!(a instanceof r.Ref&&n instanceof r.Dict))return null;const s=n.get("S");return{ref:a,structParent:t,type:_classPrivateFieldGet(x,this)&&s instanceof r.Name?s.name:null}}catch(e){(0,n.warn)(`StructTreeFlattener.getTag: "${e}".`);return null}}getNextMCID(e,t){const a=_assertClassBrand(E,this,_fetch2).call(this,_classPrivateFieldGet(x,this)?.get(e.get("StructParents")));return Math.max(t+1,Array.isArray(a)?a.length:0)}update({pageRef:e,tags:t}){const a=_classPrivateFieldGet(N,this);let s=null;for(const{annotation:i,mcid:o,ref:l,structParent:c}of t)try{let t=null;if(_classPrivateFieldGet(x,this)&&Number.isInteger(o)){t=new r.Dict(a);t.set("Type",r.Name.get("MCR"));t.set("Pg",e);t.set("MCID",o);s??=_assertClassBrand(E,this,_getParents).call(this,e);for(;s.length<o;)s.push(null);s[o]=l}_assertClassBrand(E,this,_replaceObjectReference).call(this,l,i,t);_classPrivateFieldGet(x,this)?.delete(c)&&_classPrivateFieldSet(T,this,!0)}catch(e){(0,n.warn)(`StructTreeFlattener.update: "${e}".`)}}save(){if(!_classPrivateFieldGet(T,this))return;const e=_classPrivateFieldGet(N,this),t=[];for(const e of[..._classPrivateFieldGet(x,this).keys()].sort((e,t)=>e-t))t.push(e,_classPrivateFieldGet(x,this).get(e));const a=_classPrivateFieldGet(M,this).clone();a.delete("Kids");a.delete("Limits");a.set("Nums",t);let n=_classPrivateFieldGet(R,this);if(!(n instanceof r.Ref)){n=e.getNewTemporaryRef();_classPrivateFieldSet(D,this,_classPrivateFieldGet(D,this).clone());_classPrivateFieldGet(D,this).set("ParentTree",n)}_classPrivateFieldGet(C,this).put(n,{data:a});_classPrivateFieldGet(C,this).put(_classPrivateFieldGet(H,this),{data:_classPrivateFieldGet(D,this)})}}function _fetch2(e){return _classPrivateFieldGet(F,this).fetchIfRef(e)}function _getParents(e){const t=_classPrivateFieldGet(C,this).get(e).data;let a=t.get("StructParents"),n=_assertClassBrand(E,this,_fetch2).call(this,_classPrivateFieldGet(x,this).get(a));if(Number.isInteger(a)&&Array.isArray(n))n=n.slice();else{a=_classPrivateFieldGet(D,this).get("ParentTreeNextKey");(!Number.isInteger(a)||a<0)&&(a=0);for(const e of _classPrivateFieldGet(x,this).keys())a=Math.max(a,e+1);_classPrivateFieldSet(D,this,_classPrivateFieldGet(D,this).clone());_classPrivateFieldGet(D,this).set("ParentTreeNextKey",a+1);t.set("StructParents",a);n=[]}_classPrivateFieldGet(x,this).set(a,n);_classPrivateFieldSet(T,this,!0);return n}function _replaceObjectReference(e,t,a){const s=_assertClassBrand(E,this,_fetch2).call(this,e);if(!(s instanceof r.Dict))return;const i=s.getRaw("K"),o=_assertClassBrand(E,this,_fetch2).call(this,i),l=[];let c=!1;for(const e of Array.isArray(o)?o:[i]){let s;try{s=_assertClassBrand(E,this,_fetch2).call(this,e)}catch(e){(0,n.warn)(`StructTreeFlattener: cannot read a structure kid: "${e}".`)}const i=s instanceof r.Dict&&(0,r.isName)(s.get("Type"),"OBJR")?s.getRaw("Obj"):null;if(i instanceof r.Ref&&t instanceof r.Ref&&(0,r.isRefsEqual)(i,t)){c=!0;a&&l.push(a)}else l.push(e)}if(c){const t=s.clone();t.set("K",l);_classPrivateFieldGet(C,this).put(e,{data:t})}}},837(e,t,a){a.d(t,{ErrorFont:()=>ErrorFont,Font:()=>Font,createCmapTable:()=>createCmapTable,createNameTable:()=>createNameTable,createPostTable:()=>createPostTable});var n=a(1723);const s=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron"],r=[".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"],i=[".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"];var o=a(8294),l=a(9230),c=a(4566);function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}function removeCharStringBytes(e,t,a,n){const{readStart:s}=e;if(a>s){t.copyWithin(e.writePos,s,a);e.writePos+=a-s}e.readStart=n}function isEmptyCharString(e){const t=e[0];let a=0;28===t?a=3:t>=32&&t<=246?a=1:t>=247&&t<=254?a=2:255===t&&(a=5);return 14===e[a]}function looksLikeUnsigned16BitNegative(e){return e>32767&&e<=65535}function recoverSigned16BitBBox(e,t=!1){return n.Util.normalizeRect(e.map((e,a)=>(!t||a<2)&&looksLikeUnsigned16BitNegative(e)?e-65536:e))}const f=[".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=391,u=.039625,d=[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},{id:"return",min: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},{id:"vhcurveto",min:4,resetStack:!0},{id:"hvcurveto",min:4,resetStack:!0}],m=[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}];var g=new WeakMap,b=new WeakMap,w=new WeakMap,j=new WeakSet;class CFFParser{constructor(e,t,a){!function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}(this,j);_classPrivateFieldInitSpec(this,g,new Map);_classPrivateFieldInitSpec(this,b,0);_classPrivateFieldInitSpec(this,w,new Map);this.bytes=e.getBytes();this.properties=t;this.seacAnalysisEnabled=!!a}parse(e=!0){const t=this.properties,a=new CFF(this.bytes.length);this.cff=a;const s=this.parseHeader(),r=this.parseIndex(s.endPos),i=this.parseIndex(r.endPos),o=this.parseIndex(i.endPos),l=this.parseIndex(o.endPos),c=this.parseDict(i.obj.get(0)),f=this.createDict(CFFTopDict,c,a.strings);a.header=s.obj;a.names=this.parseNameIndex(r.obj);a.strings=this.parseStringIndex(o.obj);a.topDict=f;a.globalSubrIndex=l.obj;this.parsePrivateDict(a.topDict);a.isCIDFont=f.hasName("ROS");const h=f.getByName("CharStrings"),u=this.parseIndex(h).obj;a.charStringCount=u.count;const d=f.getByName("FontMatrix");d&&(t.fontMatrix=d);let m=f.getByName("FontBBox");const g=t.bbox?.some(e=>0!==e)?recoverSigned16BitBBox(t.bbox):null,b=m?.slice(0,2).some(looksLikeUnsigned16BitNegative),w=m?.some(looksLikeUnsigned16BitNegative);if(m?.every(e=>0===e)&&g){m=g;f.setByName("FontBBox",m)}else if(w){const e=recoverSigned16BitBBox(m),a=g&&t.bbox.some(e=>e<0)&&!t.bbox.some(looksLikeUnsigned16BitNegative)&&(0,n.isArrayEqual)(e,g);if(a||b){m=a?e:recoverSigned16BitBBox(m,!0);f.setByName("FontBBox",m)}}if(m?.some(e=>0!==e)){t.ascent=Math.max(m[3],m[1]);t.descent=Math.min(m[1],m[3]);t.ascentScaled=!0}let j,y;if(a.isCIDFont){const e=this.parseIndex(f.getByName("FDArray")).obj;let t=e.count;if(t>256){(0,n.warn)(`CFFParser.parse: too many FDArray entries (${t}).`);t=256}for(let n=0;n<t;++n){const t=e.get(n),s=this.createDict(CFFTopDict,this.parseDict(t),a.strings);this.parsePrivateDict(s);a.fdArray.push(s)}y=null;j=this.parseCharsets(f.getByName("charset"),u.count,a.strings,!0);a.fdSelect=this.parseFDSelect(f.getByName("FDSelect"),u.count)}else{j=this.parseCharsets(f.getByName("charset"),u.count,a.strings,!1);y=this.parseEncoding(f.getByName("Encoding"),t,a.strings,j.charset)}a.charset=j;a.encoding=y;if(!e){a.charStrings=u;return a}const v=this.parseCharStrings({charStrings:u,localSubrIndex:f.privateDict.subrsIndex,globalSubrIndex:l.obj,fdSelect:a.fdSelect,fdArray:a.fdArray,privateDict:f.privateDict});a.charStrings=v.charStrings;a.seacs=v.seacs;a.widths=v.widths;return a}parseHeader(){let e=this.bytes;const t=e.length;let a=0;for(;a<t&&1!==e[a];)++a;if(a>=t)throw new n.FormatError("Invalid CFF header");if(0!==a){(0,n.info)("cff data is shifted");e=e.subarray(a);this.bytes=e}const s=e[0],r=e[1],i=e[2],o=e[3];return{obj:new CFFHeader(s,r,i,o),endPos:i}}parseDict(e){const t=new DataView(e.buffer,e.byteOffset,e.bytesLength);let a=0;function parseOperand(){let s=e[a++];if(30===s)return function parseFloatOperand(){let t="";const n=15,s=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"],r=e.length;for(;a<r;){const r=e[a++],i=r>>4,o=15&r;if(i===n)break;t+=s[i];if(o===n)break;t+=s[o]}return parseFloat(t)}();if(28===s){s=t.getInt16(a);a+=2;return s}if(29===s){s=t.getInt32(a);a+=4;return s}if(s>=32&&s<=246)return s-139;if(s>=247&&s<=250)return 256*(s-247)+e[a++]+108;if(s>=251&&s<=254)return-256*(s-251)-e[a++]-108;(0,n.warn)(`CFFParser.parseDict: "${s}" is a reserved command.`);return NaN}let s=[];const r=[];a=0;const i=e.length;for(;a<i;){let t=e[a];if(t<=21){12===t&&(t=t<<8|e[++a]);r.push([t,s]);s=[];++a}else s.push(parseOperand())}return r}parseIndex(e){const t=new CFFIndex,a=this.bytes,s=a[e++]<<8|a[e++],r=[];let i,o,l=e;if(0!==s){const t=a[e++];if(t<1||t>4)throw new n.FormatError(`Invalid CFF INDEX offset size: ${t}`);const f=e+(s+1)*t-1,h=a.length;let u=f;for(i=0,o=s+1;i<o;++i){let n=0;for(let s=0;s<t;++s)n=n<<8|a[e++];u=(0,c.MathClamp)(f+n,u,h);r.push(u)}l=r[s]}for(i=0,o=r.length-1;i<o;++i){const e=r[i],n=r[i+1];t.add(a.subarray(e,n))}return{obj:t,endPos:l}}parseNameIndex(e){const t=[];for(let a=0,s=e.count;a<s;++a){const s=e.get(a);t.push((0,n.bytesToString)(s))}return t}parseStringIndex(e){const t=new CFFStrings;for(let a=0,s=e.count;a<s;++a){const s=e.get(a);t.add((0,n.bytesToString)(s))}return t}createDict(e,t,a){const n=new e(a);for(const[e,a]of t)n.setByKey(e,a);return n}parseCharString(e,t,a,n){if(!t||e.callDepth>10)return!1;const s={readStart:0,writePos:0};try{return _assertClassBrand(j,this,_parseCharString).call(this,e,t,a,n,s)}finally{const{readStart:e,writePos:a}=s;if(e>0){t.copyWithin(a,e);t.fill(14,t.length-e+a)}}}parseCharStrings({charStrings:e,localSubrIndex:t,globalSubrIndex:a,fdSelect:s,fdArray:r,privateDict:i}){const o=new Map,l=[],c=e.count;for(let f=0;f<c;f++){const c=e.get(f),h={callDepth:0,tokens:0,stackSize:0,stack:[],argStarts:[],hints:0,firstStackClearing:!0,seac:null,width:null,hasVStems:!1};let u=!0,d=null,m=i;if(s&&r.length){const e=s.getFDIndex(f);if(-1===e){(0,n.warn)("Glyph index is not in fd select.");u=!1}if(e>=r.length){(0,n.warn)("Invalid fd index for glyph index.");u=!1}if(u){m=r[e].privateDict;d=m.subrsIndex}}else t&&(d=t);u&&=this.parseCharString(h,c,d,a);if(null!==h.width){const e=m.getByName("nominalWidthX");l[f]=e+h.width}else{const e=m.getByName("defaultWidthX");l[f]=e}null!==h.seac&&o.set(f,h.seac);u||e.set(f,new Uint8Array([14]))}return{charStrings:e,seacs:o,widths:l}}emptyPrivateDictionary(e){const t=this.createDict(CFFPrivateDict,[],e.strings);e.setByKey(18,[0,0]);e.privateDict=t}parsePrivateDict(e){if(!e.hasName("Private")){this.emptyPrivateDictionary(e);return}const t=e.getByName("Private");if(!Array.isArray(t)||2!==t.length){e.removeByName("Private");return}const a=t[0],s=t[1];if(0===a||s>=this.bytes.length){this.emptyPrivateDictionary(e);return}if(s+a>this.bytes.length)throw new n.FormatError("CFF Private DICT extends past end of font");const r=`${s}_${a}`,i=_classPrivateFieldGet(g,this).get(r);if(i){e.privateDict=i;return}const o=s+a,l=this.bytes.subarray(s,o);_assertClassBrand(j,this,_addPrivateDataLength).call(this,l.length);const f=this.parseDict(l),h=this.createDict(CFFPrivateDict,f,e.strings);e.privateDict=h;_classPrivateFieldGet(g,this).set(r,h);const d=h.getByName("BlueScale"),m=h.getByName("BlueShift"),b=h.getByName("BlueFuzz"),y=h.getByName("ExpansionFactor");if(0===d&&0===m&&0===b&&0===y){h.setByName("BlueScale",u);h.setByName("BlueShift",7);h.setByName("BlueFuzz",1)}0===y&&h.setByName("ExpansionFactor",.06);if(d>0){let e=0;for(const t of[h.getByName("BlueValues"),h.getByName("OtherBlues")])if(t)for(let a=1;a<t.length;a+=2)t[a]>e&&(e=t[a]);if(e>0){const t=1e5,a=.5/e,n=a<=u?Math.ceil(a*t)/t:-1/0,s=Math.floor(t/e)/t,r=(0,c.MathClamp)(d,n,s);r!==d&&h.setByName("BlueScale",r)}}if(!h.getByName("Subrs"))return;const v=h.getByName("Subrs"),k=s+v;if(0===v||k>=this.bytes.length){this.emptyPrivateDictionary(e);_classPrivateFieldGet(g,this).set(r,e.privateDict)}else h.subrsIndex=_classPrivateFieldGet(w,this).getOrInsertComputed(k,()=>{const{obj:e,endPos:t}=this.parseIndex(k);_assertClassBrand(j,this,_addPrivateDataLength).call(this,Math.max(t-k,e.count));return e})}parseCharsets(e,t,a,o){if(0===e)return new CFFCharset(!0,k.ISO_ADOBE,s);if(1===e)return new CFFCharset(!0,k.EXPERT,r);if(2===e)return new CFFCharset(!0,k.EXPERT_SUBSET,i);const{bytes:l}=this,c=l[e++],f=[o?0:".notdef"];let h,u,d;t-=1;switch(c){case 0:for(d=0;d<t;d++){h=l[e++]<<8|l[e++];f.push(o?h:a.get(h))}break;case 1:for(;f.length<=t;){if(e+3>l.length){(0,n.warn)("parseCharsets: Truncated charset.");break}h=l[e++]<<8|l[e++];u=l[e++];for(d=0;d<=u;d++)f.push(o?h++:a.get(h++))}break;case 2:for(;f.length<=t;){h=l[e++]<<8|l[e++];u=l[e++]<<8|l[e++];for(d=0;d<=u;d++)f.push(o?h++:a.get(h++))}break;default:throw new n.FormatError("Unknown charset format")}return new CFFCharset(!1,c,f)}parseEncoding(e,t,a,s){const r=Object.create(null),i=this.bytes;let l,c,f,h=!1,u=null;if(0===e||1===e){h=!0;l=e;const t=e?o.ExpertEncoding:o.StandardEncoding;for(c=0,f=s.length;c<f;c++){const e=t.indexOf(s[c]);-1!==e&&(r[e]=c)}}else{const t=e;l=i[e++];switch(127&l){case 0:const t=i[e++];for(c=1;c<=t;c++)r[i[e++]]=c;break;case 1:const a=i[e++];let s=1;for(c=0;c<a;c++){const t=i[e++],a=i[e++];for(let e=t;e<=t+a;e++)r[e]=s++}break;default:throw new n.FormatError(`Unknown encoding format: ${l} in CFF`)}const o=e;if(128&l){i[t]&=127;!function readSupplement(){const t=i[e++];for(c=0;c<t;c++){const t=i[e++],n=(i[e++]<<8)+(255&i[e++]);r[t]=s.indexOf(a.get(n))}}()}u=i.subarray(t,o)}l&=127;return new CFFEncoding(h,l,r,u)}parseFDSelect(e,t){const a=this.bytes,s=a[e++],r=[];let i;switch(s){case 0:for(i=0;i<t;++i){const t=a[e++];r.push(t)}break;case 3:const o=a[e++]<<8|a[e++];for(i=0;i<o;++i){let s=a[e++]<<8|a[e++];if(0===i&&0!==s){(0,n.warn)("parseFDSelect: The first range must have a first GID of 0 -- trying to recover.");s=0}const o=a[e++],l=a[e]<<8|a[e+1];if(l-s>t-r.length)throw new n.FormatError("parseFDSelect: Invalid font data.");for(let e=s;e<l;++e)r.push(o)}e+=2;break;default:throw new n.FormatError(`parseFDSelect: Unknown format "${s}".`)}if(r.length!==t)throw new n.FormatError("parseFDSelect: Invalid font data.");return new CFFFDSelect(s,r)}}function _parseCharString(e,t,a,s,r){const i=new DataView(t.buffer,t.byteOffset,t.bytesLength);let o=e.stackSize;const{stack:l,argStarts:c}=e,f=t.length;for(let h=0;h<f;){c[o]=h;const f=t[h++];if(++e.tokens>67108864||o>48){(0,n.warn)("Charstring exceeds the execution limits.");return!1}let u=null;if(12===f){const e=t[h++];if(0===e){t[h-2]=139;t[h-1]=22;o=0}else u=m[e]}else if(28===f){l[o]=i.getInt16(h);h+=2;o++}else if(14===f){if(o>=4){o-=4;if(this.seacAnalysisEnabled){e.seac=l.slice(o,o+4);return!1}}u=d[f]}else if(f>=32&&f<=246){l[o]=f-139;o++}else if(f>=247&&f<=254){l[o]=f<251?(f-247<<8)+t[h]+108:-(f-251<<8)-t[h]-108;h++;o++}else if(255===f){l[o]=i.getInt32(h)/65536;h+=4;o++}else if(19===f||20===f){e.hints+=o>>1;if(0===e.hints){removeCharStringBytes(r,t,h-1,h);continue}h+=e.hints+7>>3;o%=2;u=d[f]}else{if(10===f||29===f){const t=10===f?a:s;if(!t){u=d[f];(0,n.warn)("Missing subrsIndex for "+u.id);return!1}let r=32768;t.count<1240?r=107:t.count<33900&&(r=1131);const i=l[--o]+r;if(i<0||i>=t.count||isNaN(i)){u=d[f];(0,n.warn)("Out of bounds subrIndex for "+u.id);return!1}e.stackSize=o;e.callDepth++;if(!this.parseCharString(e,t.get(i),a,s))return!1;e.callDepth--;o=e.stackSize;c[0]=-1;continue}if(11===f){e.stackSize=o;return!0}if(0===f&&h===t.length){t[h-1]=14;u=d[14]}else{if(9===f){removeCharStringBytes(r,t,h-1,h);continue}u=d[f]}}if(u){if(u.stem){e.hints+=o>>1;if(3===f||23===f)e.hasVStems=!0;else if(e.hasVStems&&(1===f||18===f)){(0,n.warn)("CFF stem hints are in wrong order");t[h-1]=1===f?3:23}}if(o<u.min){(0,n.warn)("Not enough parameters for "+u.id+"; actual: "+o+", expected: "+u.min);if(0===o){t[h-1]=14;return!0}return!1}if(u.stackClearing){let a=u.stem?o%2:o-u.min;e.firstStackClearing&&a>0&&(e.width=l[--a]);e.firstStackClearing=!1;a>0&&0===e.callDepth&&c[0]>=r.readStart&&removeCharStringBytes(r,t,c[0],c[a])}if("stackDelta"in u){"stackFn"in u&&u.stackFn(l,o);o+=u.stackDelta;c[0]=-1}else(u.stackClearing||u.resetStack)&&(o=0)}}e.stackSize=o;return!0}function _addPrivateDataLength(e){!function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}(b,this,_classPrivateFieldGet(b,this)+e);if(_classPrivateFieldGet(b,this)>this.bytes.length)throw new n.FormatError("CFF Private DICT data exceeds the font length")}class CFF{constructor(e=0){_defineProperty(this,"header",null);_defineProperty(this,"names",[]);_defineProperty(this,"topDict",null);_defineProperty(this,"strings",new CFFStrings);_defineProperty(this,"globalSubrIndex",null);_defineProperty(this,"encoding",null);_defineProperty(this,"charset",null);_defineProperty(this,"charStrings",null);_defineProperty(this,"fdArray",[]);_defineProperty(this,"fdSelect",null);_defineProperty(this,"isCIDFont",!1);_defineProperty(this,"charStringCount",0);this.rawFileLength=e}duplicateFirstGlyph(e=!1){const{charStrings:t,fdSelect:a}=this,s=t.get(0);let r=t.count;if(r<65535)t.add(s);else{r=e?r-1:0;for(;r>0&&(this.seacs.has(r)||!isEmptyCharString(t.get(r)));)r--;if(0===r){(0,n.warn)("Not enough space in charstrings to duplicate first glyph.");return 0}t.set(r,s)}this.widths[r]=this.widths[0];this.isCIDFont&&(a.fdSelect[r]=a.fdSelect[0]);return r}hasGlyphId(e){if(e<0||e>=this.charStrings.count)return!1;return this.charStrings.get(e).length>0}}class CFFHeader{constructor(e,t,a,n){this.major=e;this.minor=t;this.hdrSize=a;this.offSize=n}}class CFFStrings{constructor(){_defineProperty(this,"strings",[])}get(e){return e>=0&&e<=390?f[e]:e-h<=this.strings.length?this.strings[e-h]:f[0]}getSID(e){let t=f.indexOf(e);if(-1!==t)return t;t=this.strings.indexOf(e);return-1!==t?t+h:-1}add(e){this.strings.push(e)}get count(){return this.strings.length}}class CFFIndex{constructor(){_defineProperty(this,"objects",[]);_defineProperty(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}}class CFFDict{constructor(e,t){_defineProperty(this,"values",new Map);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}setByKey(e,t){if(!this.keyToNameMap.has(e))return!1;if(0===t.length)return!0;for(const a of t)if(isNaN(a)){(0,n.warn)(`Invalid CFFDict value: "${t}" for key "${e}".`);return!0}const a=this.types.get(e);"num"!==a&&"sid"!==a&&"offset"!==a||(t=t[0]);this.values.set(e,t);return!0}setByName(e,t){if(!this.nameToKeyMap.has(e))throw new n.FormatError(`Invalid dictionary name "${e}"`);const a=this.nameToKeyMap.get(e);this.values.set(a,t)}hasName(e){const t=this.nameToKeyMap.get(e);return this.values.has(t)}getByName(e){if(!this.nameToKeyMap.has(e))throw new n.FormatError(`Invalid dictionary name ${e}"`);const t=this.nameToKeyMap.get(e);return this.values.has(t)?this.values.get(t):this.defaults.get(t)}removeByName(e){const t=this.nameToKeyMap.get(e);this.values.delete(t)}static createTables(e){const t={keyToNameMap:new Map,nameToKeyMap:new Map,defaults:new Map,types:new Map,opcodes:new Map,order:[]};for(const a of e){const e=Array.isArray(a[0])?(a[0][0]<<8)+a[0][1]:a[0];t.keyToNameMap.set(e,a[1]);t.nameToKeyMap.set(a[1],e);t.types.set(e,a[2]);t.defaults.set(e,a[3]);t.opcodes.set(e,Array.isArray(a[0])?a[0]:[a[0]]);t.order.push(e)}return t}}const y=[[[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 CFFTopDict extends CFFDict{static get tables(){return(0,n.shadow)(this,"tables",this.createTables(y))}constructor(e){super(CFFTopDict.tables,e);_defineProperty(this,"privateDict",null)}}const v=[[6,"BlueValues","delta",null],[7,"OtherBlues","delta",null],[8,"FamilyBlues","delta",null],[9,"FamilyOtherBlues","delta",null],[[12,9],"BlueScale","num",u],[[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 CFFPrivateDict extends CFFDict{static get tables(){return(0,n.shadow)(this,"tables",this.createTables(v))}constructor(e){super(CFFPrivateDict.tables,e);_defineProperty(this,"subrsIndex",null)}}const k={ISO_ADOBE:0,EXPERT:1,EXPERT_SUBSET:2};class CFFCharset{constructor(e,t,a){this.predefined=e;this.format=t;this.charset=a}}class CFFEncoding{constructor(e,t,a,n){this.predefined=e;this.format=t;this.encoding=a;this.raw=n}}class CFFFDSelect{constructor(e,t){this.format=e;this.fdSelect=t}getFDIndex(e){return e<0||e>=this.fdSelect.length?-1:this.fdSelect[e]}}var q=new WeakMap;class CFFOffsetTracker{constructor(){_classPrivateFieldInitSpec(this,q,new Map)}isTracking(e){return _classPrivateFieldGet(q,this).has(e)}track(e,t){if(_classPrivateFieldGet(q,this).has(e))throw new n.FormatError(`Already tracking location of ${e}`);_classPrivateFieldGet(q,this).set(e,t)}offset(e){for(const[t,a]of _classPrivateFieldGet(q,this))_classPrivateFieldGet(q,this).set(t,a+e)}setEntryLocation(e,t,a){if(!_classPrivateFieldGet(q,this).has(e))throw new n.FormatError(`Not tracking location of ${e}`);const s=a.data,r=_classPrivateFieldGet(q,this).get(e);for(let e=0,a=t.length;e<a;++e){const a=5*e+r,i=a+1,o=a+2,l=a+3,c=a+4;if(29!==s[a]||0!==s[i]||0!==s[o]||0!==s[l]||0!==s[c])throw new n.FormatError("writing to an offset that is not empty");const f=t[e];s[a]=29;s[i]=f>>24&255;s[o]=f>>16&255;s[l]=f>>8&255;s[c]=255&f}}}class CFFCompiler{constructor(e){this.cff=e}compile(){const e=this.cff,t=new l.DataBuilder({minLength:e.rawFileLength}),a=this.compileHeader(e.header);t.setArray(a);const s=this.compileNameIndex(e.names);t.setArray(s);if(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=n.Util.transform(e,a.getByName("FontMatrix")));a.setByName("FontMatrix",e)}}const r=e.topDict.getByName("XUID");r?.length>16&&e.topDict.removeByName("XUID");e.topDict.setByName("charset",0);let i=this.compileTopDicts([e.topDict],t.length,e.isCIDFont);t.setArray(i.output);const o=i.trackers[0],c=this.compileStringIndex(e.strings.strings);t.setArray(c);const f=this.compileIndex(e.globalSubrIndex);t.setArray(f);if(e.encoding&&e.topDict.hasName("Encoding"))if(e.encoding.predefined)o.setEntryLocation("Encoding",[e.encoding.format],t);else{const a=this.compileEncoding(e.encoding);o.setEntryLocation("Encoding",[t.length],t);t.setArray(a)}const h=this.compileCharset(e.charset,e.charStrings.count,e.strings,e.isCIDFont);o.setEntryLocation("charset",[t.length],t);t.setArray(h);const u=this.compileCharStrings(e.charStrings);o.setEntryLocation("CharStrings",[t.length],t);t.setArray(u);if(e.isCIDFont){o.setEntryLocation("FDSelect",[t.length],t);const a=this.compileFDSelect(e.fdSelect);t.setArray(a);i=this.compileTopDicts(e.fdArray,t.length,!0);o.setEntryLocation("FDArray",[t.length],t);t.setArray(i.output);const n=i.trackers;this.compilePrivateDicts(e.fdArray,n,t)}this.compilePrivateDicts([e.topDict],[o],t);t.setArray([0]);return t.data}encodeNumber(e){return Number.isInteger(e)?this.encodeInteger(e):this.encodeFloat(e)}static get EncodeFloatRegExp(){return(0,n.shadow)(this,"EncodeFloatRegExp",/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/)}encodeFloat(e){let t=e.toString();const a=CFFCompiler.EncodeFloatRegExp.exec(t);if(a){const n=parseFloat("1e"+((a[2]?+a[2]:0)+a[1].length));t=(Math.round(e*n)/n).toString()}let n,s,r="";for(n=0,s=t.length;n<s;++n){const e=t[n];r+="e"===e?"-"===t[++n]?"c":"b":"."===e?"a":"-"===e?"e":e}r+=1&r.length?"f":"ff";const i=[30];for(n=0,s=r.length;n<s;n+=2)i.push(parseInt(r.substring(n,n+2),16));return i}encodeInteger(e){let t;t=e>=-107&&e<=107?[e+139]:e>=108&&e<=1131?[247+((e-=108)>>8),255&e]:e>=-1131&&e<=-108?[251+((e=-e-108)>>8),255&e]:e>=-32768&&e<=32767?[28,e>>8&255,255&e]:[29,e>>24&255,e>>16&255,e>>8&255,255&e];return t}compileHeader(e){return[e.major,e.minor,4,e.offSize]}compileNameIndex(e){const t=new CFFIndex;for(const a of e){const e=Math.min(a.length,127);let s=new Array(e);for(let t=0;t<e;t++){let e=a[t];(e<"!"||e>"~"||"["===e||"]"===e||"("===e||")"===e||"{"===e||"}"===e||"<"===e||">"===e||"/"===e||"%"===e)&&(e="_");s[t]=e}s=s.join("");""===s&&(s="Bad_Font_Name");t.add((0,n.stringToBytes)(s))}return this.compileIndex(t)}compileTopDicts(e,t,a){const n=[];let s=new CFFIndex;for(const r of e){if(a){r.removeByName("CIDFontVersion");r.removeByName("CIDFontRevision");r.removeByName("CIDFontType");r.removeByName("CIDCount");r.removeByName("UIDBase")}const e=new CFFOffsetTracker,i=this.compileDict(r,e);n.push(e);s.add(i);e.offset(t)}s=this.compileIndex(s,n);return{trackers:n,output:s}}compilePrivateDicts(e,t,a){const s=new Map,r=new Map;for(let i=0,o=e.length;i<o;++i){const o=e[i],l=o.privateDict;if(!l||!o.hasName("Private"))throw new n.FormatError("There must be a private dictionary.");let c=s.get(l);if(c){t[i].setEntryLocation("Private",c,a);continue}const f=new CFFOffsetTracker,h=this.compileDict(l,f);let u=a.length;f.offset(u);h.length||(u=0);c=[h.length,u];s.set(l,c);t[i].setEntryLocation("Private",c,a);a.setArray(h);l.subrsIndex&&l.hasName("Subrs")&&r.getOrInsertComputed(l.subrsIndex,n.makeArr).push([f,u])}for(const[e,t]of r){const n=a.length;for(const[e,s]of t)e.setEntryLocation("Subrs",[n-s],a);a.setArray(this.compileIndex(e))}}compileDict(e,t){const a=[];for(const s of e.order){if(!e.values.has(s))continue;let r=e.values.get(s),i=e.types.get(s);Array.isArray(i)||(i=[i]);Array.isArray(r)||(r=[r]);if(0!==r.length){for(let o=0,l=i.length;o<l;++o){const l=i[o],c=r[o];switch(l){case"num":case"sid":a.push(...this.encodeNumber(c));break;case"offset":const i=e.keyToNameMap.get(s);t.isTracking(i)||t.track(i,a.length);a.push(29,0,0,0,0);break;case"array":case"delta":a.push(...this.encodeNumber(c));for(let e=1,t=r.length;e<t;++e)a.push(...this.encodeNumber(r[e]));break;default:throw new n.FormatError(`Unknown data type of ${l}`)}}a.push(...e.opcodes.get(s))}}return a}compileStringIndex(e){const t=new CFFIndex;for(const a of e)t.add((0,n.stringToBytes)(a));return this.compileIndex(t)}compileCharStrings(e){const t=new CFFIndex;for(let a=0;a<e.count;a++){const n=e.get(a);0!==n.length?t.add(n):t.add(new Uint8Array([139,14]))}return this.compileIndex(t)}compileCharset(e,t,a,s){let r;const i=t-1;if(s){const e=i-1;r=new Uint8Array([2,0,1,e>>8&255,255&e])}else{r=new Uint8Array(1+2*i);let t=0;const s=e.charset.length;let o=!1;for(let i=1;i<r.length;i+=2){let l=0;if(t<s){const s=e.charset[t++];l=a.getSID(s);if(-1===l){l=0;if(!o){o=!0;(0,n.warn)(`Couldn't find ${s} in CFF strings`)}}}r[i]=l>>8&255;r[i+1]=255&l}}return r}compileEncoding(e){return e.raw}compileFDSelect(e){const t=e.format;let a,n;switch(t){case 0:a=new Uint8Array(1+e.fdSelect.length);a[0]=t;a.set(e.fdSelect,1);break;case 3:const s=0;let r=e.fdSelect[0];const i=[t,0,0,s>>8&255,255&s,r];for(n=1;n<e.fdSelect.length;n++){const t=e.fdSelect[n];if(t!==r){i.push(n>>8&255,255&n,t);r=t}}const o=(i.length-3)/3;i[1]=o>>8&255;i[2]=255&o;i.push(n>>8&255,255&n);a=new Uint8Array(i)}return a}compileIndex(e,t=[]){const a=e.objects,n=a.length;if(0===n)return new Uint8Array(2);let s,r,i=1;for(s=0;s<n;++s)i+=a[s].length;r=i<256?1:i<65536?2:i<16777216?3:4;const o=new Uint8Array(2+r*(n+1)+i);let l=0;o[l++]=n>>8&255;o[l++]=255&n;o[l++]=r;let c=1;for(s=0;s<n+1;s++){if(1===r)o[l++]=255&c;else if(2===r){o[l++]=c>>8&255;o[l++]=255&c}else if(3===r){o[l++]=c>>16&255;o[l++]=c>>8&255;o[l++]=255&c}else{o[l++]=c>>>24&255;o[l++]=c>>16&255;o[l++]=c>>8&255;o[l++]=255&c}a[s]&&(c+=a[s].length)}for(s=0;s<n;s++){t[s]?.offset(l);o.set(a[s],l);l+=a[s].length}return o}}var S=a(720),_=a(115),C=a(8270),F=a(8262),x=a(615);const T=["cpop","DFGirl-W6-WIN-BF","DFGothic-EB","DFGyoSho-Lt","DFHei","DFHSGothic-W5","DFHSMincho-W3","DFHSMincho-W7","DFKaiSho-SB","DFKaiShu","DFKai-SB","DFMing","DLC","HuaTianKaiTi?","HuaTianSongTi?","Ming(for ISO10646)","MingLiU","MingMedium","PMingLiU","MingLi43"],O=[["MingLiU",96268376,740,673397745,34756,2739184106,481],["MingLiU",96268376,740,673397745,34756,2739184107,481],["DFGothic-EB",314829746,848,3061902948,34727,3465778531,1880],["DFGyoSho-Lt",300280532,848,3461961449,48261,2188571670,69],["DFHei-Md-HK-BF",307751750,848,4137275744,29023,3525506408,956],["DFHSGothic-W5",308472654,848,3899284836,31040,2018572073,1535],["DFHSMincho-W3",304999178,848,1024864906,34203,2839528251,715],["DFHSMincho-W7",308276006,848,2779564418,32481,2425983382,1055],["DFKai-SB",300280532,848,1513146939,36963,329524738,126],["DFKaiShu",300280532,848,2800192513,35224,329524738,126],["DFKaiShu-Md-HK-BF",300280532,864,2645721778,49262,1407637450,130],["DFMing-Bd-HK-BF",306440984,848,3121253424,29869,4091032585,891],["DLCLiShu",131921222,776,1090419856,36394,1619096757,122],["DLCHayBold",3951628856,776,3538214100,26479,2393240211,952],["HuaTianKaiTi?",4294705148,8,2627619e3,48802,1879179538,8],["HuaTianSongTi?",4294705148,8,173671555,97337,1879179538,8],["MingLi43",1507331,96,3686019182,22698,3594733610,53],["DFHei-Bd-WIN-HK-BF",308931416,848,1557501306,27214,4149752378,896],["DFMing-Md-WIN-HK-BF",305130251,848,2131792282,28841,2094524343,604]];function getTrickyFontName(e){if(!e)return null;const t=e.replace(/^[A-Z]{6}\+/,""),a=T.find(e=>t.includes(e));return a?/^[\x20-\x7e]+$/.test(t)?t:a:null}var M=a(2346);function cff_font_defineProperty(e,t,a){return(t=function cff_font_toPropertyKey(e){var t=function cff_font_toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function cff_font_classPrivateFieldInitSpec(e,t,a){(function cff_font_checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,a)}function cff_font_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var R=new WeakMap;class CFFFont{constructor(e,t){cff_font_classPrivateFieldInitSpec(this,R,-1);cff_font_defineProperty(this,"isCompiled",!1);this.properties=t;const a=new CFFParser(e,t,!0);this.cff=a.parse();const{charStringCount:s}=this.cff;this.glyphZeroId=this.cff.duplicateFirstGlyph(!0);this.glyphZeroId>0&&this.glyphZeroId<s&&function cff_font_classPrivateFieldSet(e,t,a){return e.set(cff_font_assertClassBrand(e,t),a),a}(R,this,this.glyphZeroId);const r=new CFFCompiler(this.cff);this.seacs=this.cff.seacs;try{this.data=r.compile();this.isCompiled=!0}catch(a){(0,n.warn)(`Failed to compile font "${t.loadedName}": "${a}".`);e.reset();this.data=e.getBytes()}this._createBuiltInEncoding()}get numGlyphs(){return this.cff.charStrings.count}getCharset(){return this.cff.charset.charset}getGlyphMapping(){const e=this.cff,t=this.properties,{cidToGidMap:a,cMap:n}=t,s=e.charset.charset;if(t.composite){let t;if(a?.size){t=new Map;a.forEach((e,a)=>{t.set(a,e)})}const r=new Map;let i,o;if(e.isCIDFont)for(o=0;o<s.length;o++){const e=s[o];i=n.charCodeOf(e);t?.has(i)&&(i=t.get(i));r.set(i,o)}else for(o=0;o<e.charStrings.count;o++){i=n.charCodeOf(o);r.set(i,o)}return r}const r=(0,S.type1FontGlyphMapping)(t,e.encoding?.encoding,s),i=s.lastIndexOf(".notdef");if(i>0)for(const[e,t]of r)0===t&&r.set(e,i);return r}hasGlyphId(e){return e!==function cff_font_classPrivateFieldGet(e,t){return e.get(cff_font_assertClassBrand(e,t))}(R,this)&&this.cff.hasGlyphId(e)}_createBuiltInEncoding(){const{charset:e,encoding:t}=this.cff;if(!e||!t)return;const a=e.charset,n=t.encoding,s=[];for(const e in n){const t=n[e];if(t>=0){const n=a[t];n&&(s[e]=n)}}s.length>0&&(this.properties.builtInEncoding=s)}}var D=a(6457),H=a(5709),N=a(5399),E=a(4106);function font_renderer_classPrivateFieldInitSpec(e,t,a){(function font_renderer_checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,a)}function font_renderer_classPrivateFieldGet(e,t){return e.get(function font_renderer_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}(e,t))}function font_renderer_defineProperty(e,t,a){return(t=function font_renderer_toPropertyKey(e){var t=function font_renderer_toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function getFloat214(e,t){return e.getInt16(t)/16384}function getSubroutineBias(e){const t=e.length;return t>=33900?32768:t<1240?107:1131}function parseCmap(e,t,a){const s=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1===s.getUint16(t+2)?s.getUint32(t+8):s.getUint32(t+16),i=s.getUint16(t+r);let o,l,c;if(4===i){const e=s.getUint16(t+r+6)>>1;l=t+r+14;o=[];for(c=0;c<e;c++,l+=2)o[c]={end:s.getUint16(l)};l+=2;for(c=0;c<e;c++,l+=2)o[c].start=s.getUint16(l);for(c=0;c<e;c++,l+=2)o[c].idDelta=s.getUint16(l);for(c=0;c<e;c++,l+=2){let e=s.getUint16(l);if(0!==e){o[c].ids=[];for(let t=0,a=o[c].end-o[c].start+1;t<a;t++){o[c].ids[t]=s.getUint16(l+e);e+=2}}}return o}if(12===i){const e=s.getUint32(t+r+12);l=t+r+16;o=[];for(c=0;c<e;c++){t=s.getUint32(l);o.push({start:t,end:s.getUint32(l+4),idDelta:s.getUint32(l+8)-t});l+=12}return o}throw new n.FormatError(`unsupported cmap: ${i}`)}function parseCff(e,t,a,n,s){const r=new CFFParser(new E.Stream(e,t,a-t),{},n).parse(s);return{glyphs:r.charStrings.objects,subrs:r.topDict.privateDict?.subrsIndex?.objects,gsubrs:r.globalSubrIndex?.objects,isCFFCIDFont:r.isCIDFont,fdSelect:r.fdSelect,fdArray:r.fdArray}}function lookupCmap(e,t){const a=t.codePointAt(0);let n=0,s=0,r=e.length-1;for(;s<r;){const t=s+r+1>>1;a<e[t].start?r=t-1:s=t}e[s].start<=a&&a<=e[s].end&&(n=e[s].idDelta+(e[s].ids?e[s].ids[a-e[s].start]:a)&65535);return{charCode:a,glyphId:n}}function compileGlyf(e,t,a,s=new Set){if(!e?.length)return;if(s.has(e)){(0,n.warn)("compileGlyf: skipping recursive composite glyph reference.");return}s.add(e);function moveTo(e,a){c&&t.add(n.DrawOPS.lineTo,c);c=[e,a];t.add(n.DrawOPS.moveTo,[e,a])}function lineTo(e,a){t.add(n.DrawOPS.lineTo,[e,a])}function quadraticCurveTo(e,a,s,r){t.add(n.DrawOPS.quadraticCurveTo,[e,a,s,r])}const r=new DataView(e.buffer,e.byteOffset,e.byteLength);let i=0;const o=r.getInt16(i);let l,c=null,f=0,h=0;i+=10;if(o<0)do{l=r.getUint16(i);const n=r.getUint16(i+2);i+=4;let o,c;if(1&l){if(2&l){o=r.getInt16(i);c=r.getInt16(i+2)}else{o=r.getUint16(i);c=r.getUint16(i+2)}i+=4}else if(2&l){o=r.getInt8(i++);c=r.getInt8(i++)}else{o=e[i++];c=e[i++]}if(2&l){f=o;h=c}else{f=0;h=0}let u=1,d=1,m=0,g=0;if(8&l){u=d=getFloat214(r,i);i+=2}else if(64&l){u=getFloat214(r,i);d=getFloat214(r,i+2);i+=4}else if(128&l){u=getFloat214(r,i);m=getFloat214(r,i+2);g=getFloat214(r,i+4);d=getFloat214(r,i+6);i+=8}const b=a.glyphs[n];if(b){t.save();t.transform([u,m,g,d,f,h]);compileGlyf(b,t,a,s);t.restore()}}while(32&l);else{const t=[];let a,n;for(a=0;a<o;a++){t.push(r.getUint16(i));i+=2}i+=2+r.getUint16(i);const s=t.at(-1)+1,c=[];for(;c.length<s;){l=e[i++];let t=1;8&l&&(t+=e[i++]);for(;t-- >0;)c.push({flags:l})}for(a=0;a<s;a++){switch(18&c[a].flags){case 0:f+=r.getInt16(i);i+=2;break;case 2:f-=e[i++];break;case 18:f+=e[i++]}c[a].x=f}for(a=0;a<s;a++){switch(36&c[a].flags){case 0:h+=r.getInt16(i);i+=2;break;case 4:h-=e[i++];break;case 36:h+=e[i++]}c[a].y=h}let u=0;for(i=0;i<o;i++){const e=t[i],s=c.slice(u,e+1);if(1&s[0].flags)s.push(s[0]);else if(1&s.at(-1).flags)s.unshift(s.at(-1));else{const e={flags:1,x:(s[0].x+s.at(-1).x)/2,y:(s[0].y+s.at(-1).y)/2};s.unshift(e);s.push(e)}moveTo(s[0].x,s[0].y);for(a=1,n=s.length;a<n;a++)if(1&s[a].flags)lineTo(s[a].x,s[a].y);else if(1&s[a+1].flags){quadraticCurveTo(s[a].x,s[a].y,s[a+1].x,s[a+1].y);a++}else quadraticCurveTo(s[a].x,s[a].y,(s[a].x+s[a+1].x)/2,(s[a].y+s[a+1].y)/2);u=e+1}}s.delete(e)}function compileCharString(e,t,a,s){function moveTo(e,a){f&&t.add(n.DrawOPS.lineTo,f);f=[e,a];t.add(n.DrawOPS.moveTo,[e,a])}function lineTo(e,a){t.add(n.DrawOPS.lineTo,[e,a])}function bezierCurveTo(e,a,s,r,i,o){t.add(n.DrawOPS.curveTo,[e,a,s,r,i,o])}const r=[];let i=0,l=0,c=0,f=null;!function parse(e){const f=new DataView(e.buffer,e.byteOffset,e.byteLength);let h=0;for(;h<e.length;){let u,d,m,g,b,w,j,y,v,k=!1,q=e[h++];switch(q){case 1:case 3:case 18:case 23:c+=r.length>>1;k=!0;break;case 4:l+=r.pop();moveTo(i,l);k=!0;break;case 5:for(;r.length>0;){i+=r.shift();l+=r.shift();lineTo(i,l)}break;case 6:for(;r.length>0;){i+=r.shift();lineTo(i,l);if(0===r.length)break;l+=r.shift();lineTo(i,l)}break;case 7:for(;r.length>0;){l+=r.shift();lineTo(i,l);if(0===r.length)break;i+=r.shift();lineTo(i,l)}break;case 8:for(;r.length>0;){u=i+r.shift();m=l+r.shift();d=u+r.shift();g=m+r.shift();i=d+r.shift();l=g+r.shift();bezierCurveTo(u,m,d,g,i,l)}break;case 10:y=r.pop();v=null;if(a.isCFFCIDFont){const e=a.fdSelect.getFDIndex(s);if(e>=0&&e<a.fdArray.length){const t=a.fdArray[e];let n;t.privateDict?.subrsIndex&&(n=t.privateDict.subrsIndex.objects);if(n){y+=getSubroutineBias(n);v=n[y]}}else(0,n.warn)("Invalid fd index for glyph index.")}else v=a.subrs[y+a.subrsBias];v&&parse(v);break;case 11:return;case 12:q=e[h++];switch(q){case 34:u=i+r.shift();d=u+r.shift();b=l+r.shift();i=d+r.shift();bezierCurveTo(u,l,d,b,i,b);u=i+r.shift();d=u+r.shift();i=d+r.shift();bezierCurveTo(u,b,d,l,i,l);break;case 35:u=i+r.shift();m=l+r.shift();d=u+r.shift();g=m+r.shift();i=d+r.shift();l=g+r.shift();bezierCurveTo(u,m,d,g,i,l);u=i+r.shift();m=l+r.shift();d=u+r.shift();g=m+r.shift();i=d+r.shift();l=g+r.shift();bezierCurveTo(u,m,d,g,i,l);r.pop();break;case 36:u=i+r.shift();b=l+r.shift();d=u+r.shift();w=b+r.shift();i=d+r.shift();bezierCurveTo(u,b,d,w,i,w);u=i+r.shift();d=u+r.shift();j=w+r.shift();i=d+r.shift();bezierCurveTo(u,w,d,j,i,l);break;case 37:const e=i,t=l;u=i+r.shift();m=l+r.shift();d=u+r.shift();g=m+r.shift();i=d+r.shift();l=g+r.shift();bezierCurveTo(u,m,d,g,i,l);u=i+r.shift();m=l+r.shift();d=u+r.shift();g=m+r.shift();i=d;l=g;Math.abs(i-e)>Math.abs(l-t)?i+=r.shift():l+=r.shift();bezierCurveTo(u,m,d,g,i,l);break;default:throw new n.FormatError(`unknown operator: 12 ${q}`)}break;case 14:if(r.length>=4){const e=r.pop(),n=r.pop();l=r.pop();i=r.pop();t.save();t.translate(i,l);let s=lookupCmap(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[e]]));compileCharString(a.glyphs[s.glyphId],t,a,s.glyphId);t.restore();s=lookupCmap(a.cmap,String.fromCharCode(a.glyphNameMap[o.StandardEncoding[n]]));compileCharString(a.glyphs[s.glyphId],t,a,s.glyphId)}return;case 19:case 20:c+=r.length>>1;h+=c+7>>3;k=!0;break;case 21:l+=r.pop();i+=r.pop();moveTo(i,l);k=!0;break;case 22:i+=r.pop();moveTo(i,l);k=!0;break;case 24:for(;r.length>2;){u=i+r.shift();m=l+r.shift();d=u+r.shift();g=m+r.shift();i=d+r.shift();l=g+r.shift();bezierCurveTo(u,m,d,g,i,l)}i+=r.shift();l+=r.shift();lineTo(i,l);break;case 25:for(;r.length>6;){i+=r.shift();l+=r.shift();lineTo(i,l)}u=i+r.shift();m=l+r.shift();d=u+r.shift();g=m+r.shift();i=d+r.shift();l=g+r.shift();bezierCurveTo(u,m,d,g,i,l);break;case 26:r.length%2&&(i+=r.shift());for(;r.length>0;){u=i;m=l+r.shift();d=u+r.shift();g=m+r.shift();i=d;l=g+r.shift();bezierCurveTo(u,m,d,g,i,l)}break;case 27:r.length%2&&(l+=r.shift());for(;r.length>0;){u=i+r.shift();m=l;d=u+r.shift();g=m+r.shift();i=d+r.shift();l=g;bezierCurveTo(u,m,d,g,i,l)}break;case 28:r.push(f.getInt16(h));h+=2;break;case 29:y=r.pop()+a.gsubrsBias;v=a.gsubrs[y];v&&parse(v);break;case 30:for(;r.length>0;){u=i;m=l+r.shift();d=u+r.shift();g=m+r.shift();i=d+r.shift();l=g+(1===r.length?r.shift():0);bezierCurveTo(u,m,d,g,i,l);if(0===r.length)break;u=i+r.shift();m=l;d=u+r.shift();g=m+r.shift();l=g+r.shift();i=d+(1===r.length?r.shift():0);bezierCurveTo(u,m,d,g,i,l)}break;case 31:for(;r.length>0;){u=i+r.shift();m=l;d=u+r.shift();g=m+r.shift();l=g+r.shift();i=d+(1===r.length?r.shift():0);bezierCurveTo(u,m,d,g,i,l);if(0===r.length)break;u=i;m=l+r.shift();d=u+r.shift();g=m+r.shift();i=d+r.shift();l=g+(1===r.length?r.shift():0);bezierCurveTo(u,m,d,g,i,l)}break;default:if(q<32)throw new n.FormatError(`unknown operator: ${q}`);if(q<247)r.push(q-139);else if(q<251)r.push(256*(q-247)+e[h++]+108);else if(q<255)r.push(256*-(q-251)-e[h++]-108);else{r.push(f.getInt32(h)/65536);h+=4}}k&&(r.length=0)}}(e)}class Commands{constructor(){font_renderer_defineProperty(this,"cmds",[]);font_renderer_defineProperty(this,"transformStack",[]);font_renderer_defineProperty(this,"currentTransform",[1,0,0,1,0,0])}add(e,t){if(t){const{currentTransform:a}=this;for(let e=0,s=t.length;e<s;e+=2)n.Util.applyTransform(t,a,e);this.cmds.push(e,...t)}else this.cmds.push(e)}transform(e){this.currentTransform=n.Util.transform(this.currentTransform,e)}translate(e,t){this.transform([1,0,0,1,e,t])}save(){this.transformStack.push(this.currentTransform.slice())}restore(){this.currentTransform=this.transformStack.pop()||[1,0,0,1,0,0]}getPath(){return n.FeatureTest.isFloat16ArraySupported?new Float16Array(this.cmds):new Float32Array(this.cmds)}}var z=new WeakMap,L=new WeakMap;class CompiledFont{constructor(e){font_renderer_classPrivateFieldInitSpec(this,z,new Set);font_renderer_classPrivateFieldInitSpec(this,L,new Map);this.fontMatrix=e}static get NOOP(){return(0,n.shadow)(this,"NOOP",n.FeatureTest.isFloat16ArraySupported?new Float16Array(0):new Float32Array(0))}getPath(e){const{charCode:t,glyphId:a}=lookupCmap(this.cmap,e);if(font_renderer_classPrivateFieldGet(L,this).has(a)&&font_renderer_classPrivateFieldGet(z,this).has(t))return null;const n=font_renderer_classPrivateFieldGet(L,this).getOrInsertComputed(a,()=>{try{return this.compileGlyph(this.glyphs[a],a)}catch(e){return e}});font_renderer_classPrivateFieldGet(z,this).add(t);if(n instanceof Error)throw n;return(0,H.compileFontPathInfo)(n)}compileGlyph(e,t){if(!e?.length||14===e[0])return CompiledFont.NOOP;let a=this.fontMatrix;if(this.isCFFCIDFont){const e=this.fdSelect.getFDIndex(t);if(e>=0&&e<this.fdArray.length){a=this.fdArray[e].getByName("FontMatrix")||n.FONT_IDENTITY_MATRIX}else(0,n.warn)("Invalid fd index for glyph index.")}(0,n.assert)((0,N.isNumberArray)(a,6),"Expected a valid fontMatrix.");const s=new Commands;s.transform(a.slice());this.compileGlyphImpl(e,s,t);s.add(n.DrawOPS.closePath);return s.getPath()}compileGlyphImpl(){(0,n.unreachable)("Children classes should implement this.")}}class TrueTypeCompiled extends CompiledFont{constructor(e,t,a){super(a||[488e-6,0,0,488e-6,0,0]);this.glyphs=e;this.cmap=t}compileGlyphImpl(e,t){compileGlyf(e,t,this)}}class Type2Compiled extends CompiledFont{constructor(e,t,a){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=(0,C.getGlyphsUnicode)();this.gsubrsBias=getSubroutineBias(this.gsubrs);this.subrsBias=getSubroutineBias(this.subrs);this.isCFFCIDFont=e.isCFFCIDFont;this.fdSelect=e.fdSelect;this.fdArray=e.fdArray}compileGlyphImpl(e,t,a){compileCharString(e,t,this,a)}}class FontRendererFactory{static create(e,t,a=!0){const s=new Uint8Array(e.data),r=new DataView(s.buffer);let i,o,l,c,f,h;const u=r.getUint16(4);for(let e=0,d=12;e<u;e++,d+=16){const e=(0,n.bytesToString)(s.subarray(d,d+4)),u=r.getUint32(d+8),m=r.getUint32(d+12);switch(e){case"cmap":i=parseCmap(s,u);break;case"glyf":o=s.subarray(u,u+m);break;case"loca":l=s.subarray(u,u+m);break;case"head":h=r.getUint16(u+18);f=r.getUint16(u+50);break;case"CFF ":c=parseCff(s,u,u+m,t,a)}}if(o){const t=h?[1/h,0,0,1/h,0,0]:e.fontMatrix;return new TrueTypeCompiled(function parseGlyfTable(e,t,a){const n=new DataView(t.buffer,t.byteOffset,t.byteLength);let s,r;if(a){s=4;r=(e,t)=>e.getUint32(t)}else{s=2;r=(e,t)=>2*e.getUint16(t)}const i=[];let o=r(n,0);for(let a=s;a<t.length;a+=s){const t=r(n,a);i.push(e.subarray(o,t));o=t}return i}(o,l,f),i,t)}return new Type2Compiled(c,i,e.fontMatrix)}}var $=a(629);var U=a(1440);function type1_parser_defineProperty(e,t,a){return(t=function type1_parser_toPropertyKey(e){var t=function type1_parser_toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const G=[4],W=[5],X=[6],K=[7],V=[8],Y=[12,35],J=[14],Q=[21],Z=[22],ee=[30],te=[31];class Type1CharString{constructor(){type1_parser_defineProperty(this,"width",0);type1_parser_defineProperty(this,"lsb",0);type1_parser_defineProperty(this,"flexing",!1);type1_parser_defineProperty(this,"output",[]);type1_parser_defineProperty(this,"stack",[]);type1_parser_defineProperty(this,"tokens",0)}convert(e,t,a,s=0){if(s>16)return!0;const r=e.length;let i,o,l,c=!1;for(let f=0;f<r;f++){if(++this.tokens>67108864||this.stack.length>48)return!0;let r=e[f];if(r<32){12===r&&(r=(r<<8)+e[++f]);switch(r){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){c=!0;break}const e=this.stack.pop();this.stack.push(0,e);break}c=this.executeCommand(1,G);break;case 5:c=this.executeCommand(2,W);break;case 6:c=this.executeCommand(1,X);break;case 7:c=this.executeCommand(1,K);break;case 8:c=this.executeCommand(6,V);break;case 10:if(this.stack.length<1){c=!0;break}l=this.stack.pop();if(!t[l]){c=!0;break}c=this.convert(t[l],t,a,s+1);break;case 11:return c;case 13:if(this.stack.length<2){c=!0;break}i=this.stack.pop();o=this.stack.pop();this.lsb=o;this.width=i;this.stack.push(i,o);c=this.executeCommand(2,Z);break;case 14:this.output.push(J[0]);c=this.output.length>65535;break;case 21:if(this.flexing)break;c=this.executeCommand(2,Q);break;case 22:if(this.flexing){this.stack.push(0);break}c=this.executeCommand(1,Z);break;case 30:c=this.executeCommand(4,ee);break;case 31:c=this.executeCommand(4,te);break;case 3078:if(a){const e=this.stack.at(-5);this.seac=this.stack.splice(-4,4);this.seac[0]+=this.lsb-e;c=this.executeCommand(0,J)}else c=this.executeCommand(4,J);break;case 3079:if(this.stack.length<4){c=!0;break}this.stack.pop();i=this.stack.pop();const e=this.stack.pop();o=this.stack.pop();this.lsb=o;this.width=i;this.stack.push(i,o,e);c=this.executeCommand(3,Q);break;case 3084:if(this.stack.length<2){c=!0;break}const f=this.stack.pop(),h=this.stack.pop();this.stack.push(h/f);break;case 3088:if(this.stack.length<2){c=!0;break}l=this.stack.pop();const u=this.stack.pop();if(0===l&&3===u){const e=this.stack.splice(-17,17);this.stack.push(e[2]+e[0],e[3]+e[1],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14]);c=this.executeCommand(13,Y,!0);this.flexing=!1;this.stack.push(e[15],e[16])}else 1===l&&0===u&&(this.flexing=!0);break;case 3089:break;default:(0,n.warn)('Unknown type 1 charstring command of "'+r+'"')}if(c)break}else{r<=246?r-=139:r=r<=250?256*(r-247)+e[++f]+108:r<=254?-256*(r-251)-e[++f]-108:(255&e[++f])<<24|(255&e[++f])<<16|(255&e[++f])<<8|255&e[++f];this.stack.push(r)}}return c}executeCommand(e,t,a){const n=this.stack.length;if(e>n)return!0;const s=n-e;for(let e=s;e<n;e++){let t=this.stack[e];if(Number.isInteger(t))this.output.push(28,t>>8&255,255&t);else{t=65536*t|0;this.output.push(255,t>>24&255,t>>16&255,t>>8&255,255&t)}}this.output.push(...t);a?this.stack.splice(s,e):this.stack.length=0;return this.output.length>65535}}function isHexDigit(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function decrypt(e,t,a){if(a>=e.length)return new Uint8Array(0);let n,s,r=0|t;for(n=0;n<a;n++)r=52845*(e[n]+r)+22719&65535;const i=e.length-a,o=new Uint8Array(i);for(n=a,s=0;s<i;n++,s++){const t=e[n];o[s]=t^r>>8;r=52845*(t+r)+22719&65535}return o}function isSpecial(e){return 47===e||91===e||93===e||123===e||125===e||40===e||41===e}class Type1Parser{constructor(e,t,a){if(t){const t=e.getBytes(),a=!((isHexDigit(t[0])||(0,N.isWhiteSpace)(t[0]))&&isHexDigit(t[1])&&isHexDigit(t[2])&&isHexDigit(t[3])&&isHexDigit(t[4])&&isHexDigit(t[5])&&isHexDigit(t[6])&&isHexDigit(t[7]));e=new E.Stream(a?decrypt(t,55665,4):function decryptAscii(e,t,a){let n=0|t;const s=e.length,r=new Uint8Array(s>>>1);let i,o,l=-1;for(i=0,o=0;i<s;i++){const t=(0,U.toHexDigit)(e[i]);if(t<0)continue;if(l<0){l=t;continue}const a=l<<4|t;l=-1;r[o++]=a^n>>8;n=52845*(a+n)+22719&65535}return r.slice(a,o)}(t,55665,4))}this.seacAnalysisEnabled=!!a;this.stream=e;this.nextChar()}readNumberArray(){this.getToken();const e=[];for(;;){const t=this.getToken();if(null===t||"]"===t||"}"===t)break;e.push(parseFloat(t||0))}return e}readNumber(){const e=this.getToken();return parseFloat(e||0)}readInt(){const e=this.getToken();return 0|parseInt(e||0,10)}readBoolean(){return"true"===this.getToken()?1:0}nextChar(){return this.currentChar=this.stream.getByte()}prevChar(){this.stream.skip(-2);return 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,N.isWhiteSpace)(t))break;t=this.nextChar()}if(isSpecial(t)){this.nextChar();return String.fromCharCode(t)}let a="";do{a+=String.fromCharCode(t);t=this.nextChar()}while(t>=0&&!(0,N.isWhiteSpace)(t)&&!isSpecial(t));return a}readCharStrings(e,t){return-1===t?e:decrypt(e,4330,t)}extractFontProgram(e){const t=this.stream,a=[],n=[],s=new Map([["lenIV",4]]),r={subrs:[],charstrings:[],properties:{privateData:s}};let i,o,l,c=!1,f=!1;for(;null!==(i=this.getToken());)if("/"===i){i=this.getToken();switch(i){case"CharStrings":if(f)break;f=!0;this.getToken();this.getToken();this.getToken();this.getToken();for(;;){i=this.getToken();if(null===i||"end"===i)break;if("/"!==i)continue;const e=this.getToken();o=this.readInt();this.getToken();l=o>0?t.getBytes(o):new Uint8Array(0);const a=this.readCharStrings(l,s.get("lenIV"));this.nextChar();i=this.getToken();"noaccess"===i?this.getToken():"/"===i&&this.prevChar();n.push({glyph:e,encoded:a})}break;case"Subrs":if(c)break;c=!0;this.readInt();this.getToken();for(;"dup"===this.getToken();){const e=this.readInt();o=this.readInt();this.getToken();l=o>0?t.getBytes(o):new Uint8Array(0);const n=this.readCharStrings(l,s.get("lenIV"));this.nextChar();i=this.getToken();"noaccess"===i&&this.getToken();a[e]=n}break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":this.readNumberArray();0;break;case"StemSnapH":case"StemSnapV":s.set(i,this.readNumberArray());break;case"StdHW":case"StdVW":s.set(i,this.readNumberArray()[0]);break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":s.set(i,this.readNumber());break;case"ExpansionFactor":s.set(i,this.readNumber()||.06);break;case"ForceBold":s.set(i,this.readBoolean())}}for(const{encoded:t,glyph:s}of n){const n=new Type1CharString,i={glyphName:s,charstring:n.convert(t,a,this.seacAnalysisEnabled)?[14]:n.output,width:n.width,lsb:n.lsb,seac:n.seac};".notdef"===s?r.charstrings.unshift(i):r.charstrings.push(i);if(e.builtInEncoding){const t=e.builtInEncoding.indexOf(s);t>-1&&void 0===e.widths[t]&&t>=e.firstChar&&t<=e.lastChar&&(e.widths[t]=n.width)}}return r}extractCidKeyedFontProgram(e){const t=this.stream,a=new Map([["lenIV",4]]),n={subrs:[],charstrings:[],properties:{privateData:a}};let s=0,r=-1,i=1,o=0,l=-1,c=0,f=0,h=0,u=!1,d=!1;const m=[];function rememberToken(e){m.push(e);m.length>4&&m.shift()}let g;for(;null!==(g=this.getToken());){if("StartData"===g){const e=m.at(-3),t=m.at(-1);if("("!==m.at(-4)||")"!==m.at(-2)||"Binary"!==e&&"Hex"!==e||!/^\d+$/.test(t))return null;h=parseInt(t,10);if(h<=0)return null;u="Hex"===e;d=!0;break}rememberToken(g);if("/"===g){g=this.getToken();rememberToken(g);switch(g){case"FontMatrix":e.fontMatrix=this.readNumberArray();break;case"FontBBox":const t=this.readNumberArray();e.ascent=Math.max(t[3],t[1]);e.descent=Math.min(t[1],t[3]);e.ascentScaled=!0;break;case"CIDCount":s=this.readInt();break;case"CIDMapOffset":r=this.readInt();break;case"FDBytes":i=this.readInt();break;case"GDBytes":o=this.readInt();break;case"SubrMapOffset":l=this.readInt();break;case"SDBytes":c=this.readInt();break;case"SubrCount":f=this.readInt();break;case"BlueValues":case"OtherBlues":case"FamilyBlues":case"FamilyOtherBlues":this.readNumberArray();break;case"StemSnapH":case"StemSnapV":a.set(g,this.readNumberArray());break;case"StdHW":case"StdVW":a.set(g,this.readNumberArray()[0]);break;case"BlueShift":case"lenIV":case"BlueFuzz":case"BlueScale":case"LanguageGroup":a.set(g,this.readNumber());break;case"ExpansionFactor":a.set(g,this.readNumber()||.06);break;case"ForceBold":a.set(g,this.readBoolean())}}}if(!d||s<=0||r<0||i<0||i>4||o<1||o>4)return null;const b=t.end-t.pos;if(h>b)if(u){if(h>2*b)return null}else h=b;let w=t.getBytes(u?void 0:h);if(u){const e=new Uint8Array(h);let t=-1,a=0;for(let n=0,s=w.length;n<s&&a<h;n++){const s=(0,U.toHexDigit)(w[n]);if(!(s<0))if(t<0)t=s;else{e[a++]=t<<4|s;t=-1}}if(a!==h)return null;w=e}const j=a.get("lenIV"),y=i+o,v=[];function readUint(e,t){let a=0;for(let n=0;n<t;n++)a=a<<8|w[e+n];return a>>>0}if(r+(s+1)*y>w.length||f>0&&(l<0||c<1||c>4||l+(f+1)*c>w.length))return null;if(i>0)for(let e=0;e<s;e++)if(0!==readUint(r+e*y,i))return null;if(f>0){const e=new Array(f+1);for(let t=0;t<=f;t++)e[t]=readUint(l+t*c,c);for(let t=0;t<f;t++){const a=e[t],n=e[t+1];n>w.length||n<a?v[t]=new Uint8Array(0):v[t]=this.readCharStrings(w.subarray(a,n),j)}}const k=[];let q=readUint(r+i,o);for(let e=0;e<s;e++){const t=readUint(r+(e+1)*y+i,o),a=0===e?".notdef":`cid${e}`;if(t>q&&t<=w.length){const e=this.readCharStrings(w.subarray(q,t),j),n=new Type1CharString,s=n.convert(e,v,this.seacAnalysisEnabled);k.push({glyphName:a,charstring:s?[14]:n.output,width:n.width,lsb:n.lsb,seac:n.seac})}else{const e=k[0];k.push({glyphName:a,charstring:e?.charstring.slice()||[139,14],width:e?.width||0,lsb:e?.lsb||0})}q=t}n.subrs=v;n.charstrings=k;return n}extractFontHeader(e){let t;for(;null!==(t=this.getToken());)if("/"===t){t=this.getToken();switch(t){case"FontMatrix":const a=this.readNumberArray();e.fontMatrix=a;break;case"Encoding":const n=this.getToken();let s;if(/^\d+$/.test(n)){s=[];const e=0|parseInt(n,10);this.getToken();for(let a=0;a<e;a++){t=this.getToken();for(;"dup"!==t&&"def"!==t;){t=this.getToken();if(null===t)return}if("def"===t)break;const e=this.readInt();this.getToken();const a=this.getToken();s[e]=a;this.getToken()}}else s=(0,o.getEncoding)(n);e.builtInEncoding=s;break;case"FontBBox":const r=this.readNumberArray();e.ascent=Math.max(r[3],r[1]);e.descent=Math.min(r[1],r[3]);e.ascentScaled=!0}}}}function type1_font_defineProperty(e,t,a){return(t=function type1_font_toPropertyKey(e){var t=function type1_font_toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function type1_font_checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function type1_font_classPrivateFieldSet(e,t,a){return e.set(type1_font_assertClassBrand(e,t),a),a}function type1_font_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}function findBlock(e,t,a){const n=e.length,s=t.length,r=n-s;let i=a,o=!1;for(;i<r;){let a=0;for(;a<s&&e[i+a]===t[a];)a++;if(a>=s){i+=a;for(;i<n&&(0,N.isWhiteSpace)(e[i]);)i++;o=!0;break}i++}return{found:o,length:i}}var ae=new WeakMap,ne=new WeakSet;class Type1Font{constructor(e,t,a){!function type1_font_classPrivateMethodInitSpec(e,t){type1_font_checkPrivateRedeclaration(e,t),t.add(e)}(this,ne);!function type1_font_classPrivateFieldInitSpec(e,t,a){type1_font_checkPrivateRedeclaration(e,t),t.set(e,a)}(this,ae,void 0);type1_font_defineProperty(this,"isCompiled",!0);let s;a.composite&&function isCidKeyedType1File(e){const t=e.peekBytes(2048);if(t.length<2||37!==t[0]||33!==t[1])return!1;const a=(0,n.bytesToString)(t);return a.includes("Resource-CIDFont")||/\/CIDFontType\s+0\b/.test(a)}(t)&&(s=type1_font_assertClassBrand(ne,this,_parseCidKeyedType).call(this,t,a));s||=type1_font_assertClassBrand(ne,this,_parseType).call(this,t,a);for(const e in s.properties)a[e]=s.properties[e];const r=s.charstrings,i=this.getType2Charstrings(r),o=this.getType2Subrs(s.subrs);this.charstrings=r;this.data=this.wrap(e,i,this.charstrings,o,a);this.seacs=this.getSeacs(s.charstrings)}get numGlyphs(){return this.charstrings.length+1}getCharset(){const e=[".notdef"];for(const{glyphName:t}of this.charstrings)e.push(t);return e}getGlyphMapping(e){const t=this.charstrings;if(e.composite){const a=new Map;for(let n=0,s=t.length;n<s;n++){const t=e.cMap.charCodeOf(n);a.set(t,n+1)}return a}const a=[".notdef"];let n,s;for(s=0;s<t.length;s++)a.push(t[s].glyphName);const r=e.builtInEncoding;if(r){n=Object.create(null);for(const e in r){s=a.indexOf(r[e]);s>=0&&(n[e]=s)}}return(0,S.type1FontGlyphMapping)(e,n,a)}hasGlyphId(e){if(e<0||e>=this.numGlyphs)return!1;if(0===e)return!0;return this.charstrings[e-1].charstring.length>0}getSeacs(e){const t=new Map;for(let a=0,n=e.length;a<n;a++){const{seac:n}=e[a];n&&t.set(a+1,n)}return t}getType2Charstrings(e){const t=[];for(const a of e)t.push(a.charstring);return t}getType2Subrs(e){let t=0;const a=e.length;t=a<1133?107:a<33769?1131:32768;const n=[];let s;for(s=0;s<t;s++)n.push([11]);for(s=0;s<a;s++)n.push(e[s]);return n}wrap(e,t,a,n,s){const r=new CFF(function type1_font_classPrivateFieldGet(e,t){return e.get(type1_font_assertClassBrand(e,t))}(ae,this));r.header=new CFFHeader(1,0,4,4);r.names=[e];const i=new CFFTopDict;i.setByName("version",391);i.setByName("Notice",392);i.setByName("FullName",393);i.setByName("FamilyName",394);i.setByName("Weight",395);i.setByName("Encoding",null);i.setByName("FontMatrix",s.fontMatrix);i.setByName("FontBBox",s.bbox);i.setByName("charset",null);i.setByName("CharStrings",null);i.setByName("Private",null);r.topDict=i;const o=new CFFStrings;o.add("Version 0.11");o.add("See original notice");o.add(e);o.add(e);o.add("Medium");r.strings=o;r.globalSubrIndex=new CFFIndex;const l=t.length,c=[".notdef"];for(let e=0;e<l;e++){const{glyphName:t}=a[e];-1===f.indexOf(t)&&o.add(t);c.push(t)}r.charset=new CFFCharset(!1,0,c);const h=new CFFIndex;h.add([139,14]);for(let e=0;e<l;e++)h.add(t[e]);r.charStrings=h;const u=new CFFPrivateDict;u.setByName("Subrs",null);const d=["BlueValues","OtherBlues","FamilyBlues","FamilyOtherBlues","StemSnapH","StemSnapV","BlueShift","BlueFuzz","BlueScale","LanguageGroup","ExpansionFactor","ForceBold","StdHW","StdVW"];for(const e of d){if(!s.privateData.has(e))continue;const t=s.privateData.get(e);if(Array.isArray(t))for(let e=t.length-1;e>0;e--)t[e]-=t[e-1];u.setByName(e,t)}r.topDict.privateDict=u;const m=new CFFIndex;for(const e of n)m.add(e);u.subrsIndex=m;return new CFFCompiler(r).compile()}}function _parseType(e,t){let a=t.length1,s=t.length2,r=e.peekBytes(6);const i=128===r[0]&&1===r[1];if(i){e.skip(6);a=r[5]<<24|r[4]<<16|r[3]<<8|r[2]}const o=function getHeaderBlock(e,t){const a=[101,101,120,101,99],s=e.pos;let r,i,o,l;try{r=e.getBytes(t);i=r.length}catch{}if(i===t){o=findBlock(r,a,t-2*a.length);if(o.found&&o.length===t)return{stream:new E.Stream(r),length:t}}(0,n.warn)('Invalid "Length1" property in Type1 font -- trying to recover.');e.pos=s;for(;;){o=findBlock(e.peekBytes(2048),a,0);if(0===o.length)break;e.pos+=o.length;if(o.found){l=e.pos-s;break}}e.pos=s;if(l)return{stream:new E.Stream(e.getBytes(l)),length:l};(0,n.warn)('Unable to recover "Length1" property in Type1 font -- using as is.');return{stream:new E.Stream(e.getBytes(t)),length:t}}(e,a);new Type1Parser(o.stream,!1,!0).extractFontHeader(t);if(i){r=e.getBytes(6);s=r[5]<<24|r[4]<<16|r[3]<<8|r[2]}const l=function getEexecBlock(e,t){const a=e.getBytes();if(0===a.length)throw new n.FormatError("getEexecBlock - no font program found.");return{stream:new E.Stream(a),length:a.length}}(e),c=new Type1Parser(l.stream,!0,!0).extractFontProgram(t);type1_font_classPrivateFieldSet(ae,this,o.length+l.length);return c}function _parseCidKeyedType(e,t){const a=e.pos,s=e.end-a,r=new Type1Parser(e,!1,!0).extractCidKeyedFontProgram(t);if(!r){e.pos=a;(0,n.warn)("Type1Font: unable to parse CID-keyed Type 1 font.");return null}type1_font_classPrivateFieldSet(ae,this,s);return r}function fonts_defineProperty(e,t,a){return(t=function fonts_toPropertyKey(e){var t=function fonts_toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function fonts_classPrivateFieldInitSpec(e,t,a){fonts_checkPrivateRedeclaration(e,t),t.set(e,a)}function fonts_checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function fonts_classPrivateFieldGet(e,t){return e.get(fonts_assertClassBrand(e,t))}function fonts_classPrivateFieldSet(e,t,a){return e.set(fonts_assertClassBrand(e,t),a),a}function fonts_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const se=[[57344,63743],[1048576,1114109]],re=1e3,ie=["bbox","black","bold","cssFontInfo","data","disableFontFace","fallbackName","fontExtraProperties","fontMatrix","generatedFontName","isInvalidPDFjsFont","isType3Font","italic","loadedName","missingFile","remeasure","systemFontInfo","vertical"],oe=["ascent","composite","defaultEncoding","defaultVMetrics","defaultWidth","descent","differences","isMonospace","isSerifFont","isSymbolicFont","name","seacMap","subtype","toFontChar","type","vmetrics","widths"];function adjustWidths(e){if(!e.fontMatrix||e.fontMatrix[0]===n.FONT_IDENTITY_MATRIX[0])return;const t=.001/e.fontMatrix[0],a=e.widths;for(const e in a)a[e]*=t;e.defaultWidth*=t}function amendFallbackToUnicode(e){if(!e.fallbackToUnicode||e.toUnicode instanceof M.IdentityToUnicodeMap)return;const t=new D.CharCodeMap;e.fallbackToUnicode.forEach((a,n)=>{e.toUnicode.has(a)||t.set(a,n)});e.toUnicode.amend(t)}class Glyph{constructor(e,t,a,n,s,r,i,o,l,c,f){e&&(this.originalCharCode=t);this.fontChar=a;this.unicode=n;this.accent=s;this.width=r;this.vmetric=i;this.operatorListId=o;this.isSpace=l;this.isInFont=c;this.isRotated=f}get category(){return(0,n.shadow)(this,"category",(0,_.getCharUnicodeCategory)(this.unicode),!0)}get normalizedUnicode(){return(0,n.shadow)(this,"normalizedUnicode",(0,n.normalizeUnicode)(this.unicode),!0)}}function int16(e,t){return(e<<8)+t}function writeSignedInt16(e,t,a){e[t+1]=a;e[t]=a>>>8}function signedInt16(e,t){const a=(e<<8)+t;return 32768&a?a-65536:a}function writeUint32(e,t,a){e[t+3]=255&a;e[t+2]=a>>>8;e[t+1]=a>>>16;e[t]=a>>>24}function isTrueTypeCollectionFile(e){const t=e.peekBytes(4);return"ttcf"===(0,n.bytesToString)(t)}function getFontFileType(e,{type:t,subtype:a,composite:s}){let r,i;if(function isTrueTypeFile(e){const t=e.peekBytes(4),a=(0,n.bytesToString)(t);return"\0\0\0"===a||"true"===a}(e)||isTrueTypeCollectionFile(e))r=s?"CIDFontType2":"TrueType";else if(function isOpenTypeFile(e){const t=e.peekBytes(4);return"OTTO"===(0,n.bytesToString)(t)}(e))r=s?"CIDFontType2":"OpenType";else if(function isType1File(e){const t=e.peekBytes(2);return 37===t[0]&&33===t[1]||128===t[0]&&1===t[1]}(e))r=s?"CIDFontType0":"MMType1"===t?"MMType1":"Type1";else if(function isCFFFile(e){const t=e.peekBytes(4);return t[0]>=1&&t[3]>=1&&t[3]<=4}(e))if(s){r="CIDFontType0";i="CIDFontType0C"}else{r="MMType1"===t?"MMType1":"Type1";i="Type1C"}else{(0,n.warn)("getFontFileType: Unable to detect correct font file Type/Subtype.");r=t;i=a}return[r,i]}function applyStandardFontGlyphMap(e,t){for(const a in t)e.set(+a,t[a])}const le=(0,N.getLookupTableFactory)(e=>{let t=3;for(const[a,n]of[[32,126],[161,254]])for(let s=a;s<=n;s++)e[t++]=o.SymbolSetEncoding[s]},!0);function buildToFontChar(e,t,a){const n=new Map;let s;for(let a=0,r=e.length;a<r;a++){s=(0,_.getUnicodeForGlyph)(e[a],t);-1!==s&&n.set(a,s)}for(const[e,r]of a){s=(0,_.getUnicodeForGlyph)(r,t);-1!==s&&n.set(e,s)}return n}function isMacNameRecord(e){return 1===e.platform&&0===e.encoding&&0===e.language}function isWinNameRecord(e){return 3===e.platform&&1===e.encoding&&1033===e.language}function convertCidString(e,t,a=!1){switch(t.length){case 1:return t.charCodeAt(0);case 2:return t.charCodeAt(0)<<8|t.charCodeAt(1)}const s=`Unsupported CID string (charCode ${e}): "${t}".`;if(a)throw new n.FormatError(s);(0,n.warn)(s);return t}let ce;function adjustMapping(e,t,a,s){const r=new Map,i=new Map,o=new Map,l=new Set;let c=0;let f=se[c][0],h=se[c][1];const isInPrivateArea=e=>se[0][0]<=e&&e<=se[0][1]||se[1][0]<=e&&e<=se[1][1];for(const[u,d]of e){if(!t(d))continue;if(f>h){c++;if(c>=se.length){(0,n.warn)("Ran out of space in font private use area.");break}f=se[c][0];h=se[c][1]}const e=f++,m=0===d?a:d;let g=s.get(u);if("string"==typeof g)if(1===g.length)g=g.codePointAt(0);else{if(!ce){ce=new Map;for(let e=64256;e<=64335;e++){const t=String.fromCharCode(e).normalize("NFKD");t.length>1&&ce.set(t,e)}}g=ce.get(g)||g.codePointAt(0)}if(g&&!isInPrivateArea(g)&&!l.has(m)){i.set(g,m);l.add(m)}r.set(e,m);o.set(u,e)}return{toFontChar:o,charCodeToGlyphId:r,toUnicodeExtraMap:i,nextAvailableFontCharCode:f}}function createCmapTable(e,t,a){const n=function getRanges(e,t,a){const n=[];for(const[t,s]of e)s>=a||n.push({fontCharCode:t,glyphId:s});if(t)for(const[e,s]of t)s>=a||n.push({fontCharCode:e,glyphId:s});0===n.length&&n.push({fontCharCode:0,glyphId:0});n.sort((e,t)=>e.fontCharCode-t.fontCharCode);const s=[],r=n.length;for(let e=0;e<r;){const t=n[e].fontCharCode,a=[n[e].glyphId];++e;let i=t;for(;e<r&&i+1===n[e].fontCharCode;){a.push(n[e].glyphId);++i;++e;if(65535===i)break}s.push([t,i,a])}return s}(e,t,a),s=n.at(-1)[1]>65535;let r,i,o;for(r=n.length-1;r>=0&&!(n[r][0]<=65535);--r);const c=r+1;n[r][0]<65535&&65535===n[r][1]&&(n[r][1]=65534);const f=n[r][1]<65535?1:0,h=c+f,u=x.OpenTypeFileBuilder.getSearchParams(h,2),d=2*c+2*f,m=new l.DataBuilder({exactLength:d}),g=new l.DataBuilder({exactLength:d}),b=new l.DataBuilder({exactLength:d}),w=new l.DataBuilder({exactLength:d}),j=new l.DataBuilder({});let y=0,v=!1;for(r=0;r<c;r++){const[e,t,a]=n[r];m.setInt16(e);g.setInt16(t);let s=!0;for(i=1,o=a.length;i<o;++i)if(a[i]!==a[i-1]+1){s=!1;break}if(s){const t=a[0];b.setInt16(t-e&65535);w.skip(2)}else{const n=2*(h-r)+2*y;y+=t-e+1;b.skip(2);if(n>65535){v=!0;w.skip(2)}else w.setInt16(n);for(i=0,o=a.length;i<o;++i)j.setInt16(a[i])}}if(f>0){g.setArray([255,255]);m.setArray([255,255]);b.setArray([0,1]);w.skip(2)}const k=new l.DataBuilder({exactLength:12+m.length+g.length+b.length+w.length+j.length});k.skip(2);k.setInt16(2*h);k.setInt16(u.range);k.setInt16(u.entry);k.setInt16(u.rangeShift);k.setArray(g.data);k.skip(2);k.setArray(m.data);k.setArray(b.data);k.setArray(w.data);k.setArray(j.data);const q=!v&&k.length+4<=65535,S=s||!q,_=(q?1:0)+(S?1:0);let C=null,F=null;if(S){C=new l.DataBuilder({});for(const e of n){let t=e[0];const a=e[2];let n=a[0];for(i=1,o=a.length;i<o;++i)if(a[i]!==a[i-1]+1){const s=e[0]+i-1;C.setInt32(t);C.setInt32(s);C.setInt32(n);t=s+1;n=a[i]}C.setInt32(t);C.setInt32(e[1]);C.setInt32(n)}F=new l.DataBuilder({exactLength:16});F.setArray([0,12]);F.skip(2);F.setInt32(C.length+16);F.skip(4);F.setInt32(C.length/12)}const T=4+8*_,O=q?4+k.length:0,M=new l.DataBuilder({exactLength:T});M.skip(2);M.setInt16(_);let R=T;if(q){M.setArray([0,3]);M.setArray([0,1]);M.setInt32(R);R+=O}if(S){M.setArray([0,3]);M.setArray([0,10]);M.setInt32(R)}const D=new l.DataBuilder({exactLength:M.length+O+(F?.length??0)+(C?.length??0)});D.setArray(M.data);if(q){D.setArray([0,4]);D.setInt16(k.length+4);D.setArray(k.data)}if(S){D.setArray(F.data);D.setArray(C.data)}return D.data}function createOS2Table(e,t,a){a||={unitsPerEm:0,yMax:0,yMin:0,ascent:0,descent:0};let s=0,r=0,i=0,o=0,c=null,f=0,h=-1;if(t){for(const e of t.keys()){(c>e||!c)&&(c=e);f<e&&(f=e);h=(0,_.getUnicodeRangeFor)(e,h);if(h<32)s|=1<<h;else if(h<64)r|=1<<h-32;else if(h<96)i|=1<<h-64;else{if(!(h<123))throw new n.FormatError("Unicode ranges Bits > 123 are reserved for internal usage");o|=1<<h-96}}f>65535&&(f=65535)}else{c=0;f=255}const u=e.bbox||[0,0,0,0],d=a.unitsPerEm||(e.fontMatrix?1/Math.max(...e.fontMatrix.slice(0,4).map(Math.abs)):1e3),m=e.ascentScaled?1:d/re,g=a.ascent||Math.round(m*(e.ascent||u[3]));let b=a.descent||Math.round(m*(e.descent||u[1]));b>0&&e.descent>0&&u[1]<0&&(b=-b);const w=a.yMax||g,j=-a.yMin||-b,y=new l.DataBuilder({exactLength:96});y.setArray([0,3]);y.setArray([2,36]);y.setArray([1,244]);y.setArray([0,5]);y.skip(2);y.setArray([2,138]);y.setArray([2,187]);y.skip(2);y.setArray([0,140]);y.setArray([2,138]);y.setArray([2,187]);y.skip(2);y.setArray([1,223]);y.setArray([0,49]);y.setArray([1,2]);y.skip(2);y.setArray([0,0,6,e.fixedPitch?9:0,0,0,0,0,0,0]);y.setInt32(s);y.setInt32(r);y.setInt32(i);y.setInt32(o);y.setArray([42,50,49,42]);y.setInt16(e.italicAngle?1:0);y.setInt16(c||e.firstChar);y.setInt16(f||e.lastChar);y.setInt16(g);y.setInt16(b);y.setArray([0,100]);y.setInt16(w);y.setInt16(j);y.skip(8);y.setInt16(e.xHeight);y.setInt16(e.capHeight);y.skip(2);y.setInt16(c||e.firstChar);y.setArray([0,3]);return y.data}function createPostTable(e){const t=new l.DataBuilder({exactLength:32});t.setArray([0,3,0,0]);t.setInt32(Math.floor(65536*e.italicAngle));t.skip(4);t.setInt32(e.fixedPitch?1:0);t.skip(16);return t.data}function createPostscriptName(e){return e.replaceAll(/[^\x21-\x7E]|[[\](){}<>/%]/g,"").slice(0,63)}function createNameTable(e,t){t||=[[],[]];const a=[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]||createPostscriptName(e),t[0][7]||"Unknown",t[0][8]||"Unknown",t[0][9]||"Unknown"],s=a.map(n.stringToBytes),r=new Array(a.length);let i,o,c,f,h;for(i=0,o=a.length;i<o;i++){h=t[1][i]||a[i];const e=new l.DataBuilder({exactLength:2*h.length});for(c=0,f=h.length;c<f;c++)e.setInt16(h.charCodeAt(c));r[i]=e.data}const u=[s,r],d=[[0,1],[0,3]],m=[[0,0],[0,1]],g=[[0,0],[4,9]],b=[];let w=0;for(i=0,o=d.length;i<o;i++){const e=u[i];for(c=0,f=e.length;c<f;c++){h=e[c];const t=new l.DataBuilder({exactLength:6+d[i].length+m[i].length+g[i].length});t.setArray(d[i]);t.setArray(m[i]);t.setArray(g[i]);t.setInt16(c);t.setInt16(h.length);t.setInt16(w);b.push(t.data);w+=h.length}}const j=s.length*d.length,y=new l.DataBuilder({exactLength:6+Math.sumPrecise(b.map(e=>e.length))+Math.sumPrecise(s.map(e=>e.length))+Math.sumPrecise(r.map(e=>e.length))});y.skip(2);y.setInt16(j);y.setInt16(12*j+6);for(const e of b)y.setArray(e);for(const e of s)y.setArray(e);for(const e of r)y.setArray(e);return y.data}var fe=new WeakMap,he=new WeakMap,ue=new WeakMap,de=new WeakMap,pe=new WeakMap,me=new WeakMap,ge=new WeakSet;class Font{constructor(e,t,a,s){!function fonts_classPrivateMethodInitSpec(e,t){fonts_checkPrivateRedeclaration(e,t),t.add(e)}(this,ge);fonts_classPrivateFieldInitSpec(this,fe,new Map);fonts_classPrivateFieldInitSpec(this,he,new Map);fonts_classPrivateFieldInitSpec(this,ue,null);fonts_classPrivateFieldInitSpec(this,de,null);fonts_classPrivateFieldInitSpec(this,pe,!1);fonts_classPrivateFieldInitSpec(this,me,!1);fonts_defineProperty(this,"charProcOperatorList",void 0);fonts_defineProperty(this,"standardFontName",null);fonts_defineProperty(this,"toFontChar",new Map);this.name=e;this.psName=null;this.disableFontFace=s.disableFontFace;this.fontExtraProperties=s.fontExtraProperties;this.loadedName=fonts_classPrivateFieldSet(de,this,a.loadedName);this.isType3Font=a.isType3Font;this.missingFile=!1;this.cssFontInfo=a.cssFontInfo;let r=!!(a.flags&S.FontFlags.Serif);if(!r&&!a.isSimulatedFlags){const t=(0,F.getStdFontMap)(),a=(0,F.getNonStdFontMap)(),n=(0,F.getSerifFonts)();for(const s of e.split("+")){let e=(0,S.normalizeFontName)(s);e=t[e]||a[e]||e;e=e.split("-",1)[0];if(n[e]){r=!0;break}}}this.isSerifFont=r;this.isSymbolicFont=!!(a.flags&S.FontFlags.Symbolic);this.isMonospace=!!(a.flags&S.FontFlags.FixedPitch);let{type:i,subtype:o}=a;this.type=i;this.subtype=o;this.systemFontInfo=a.systemFontInfo;const l=e.match(/^InvalidPDFjsFont_(.*)_\d+$/);this.isInvalidPDFjsFont=!!l;this.isInvalidPDFjsFont?this.fallbackName=l[1]:this.isMonospace?this.fallbackName="monospace":this.isSerifFont?this.fallbackName="serif":this.fallbackName="sans-serif";if(this.systemFontInfo?.guessFallback){this.systemFontInfo.guessFallback=!1;this.systemFontInfo.css+=`,${this.fallbackName}`}this.differences=a.differences;this.widths=a.widths;this.defaultWidth=a.defaultWidth;this.composite=a.composite;this.cMap=a.cMap;this.capHeight=a.capHeight/re;this.ascent=a.ascent/re;this.descent=a.descent/re;this.lineHeight=this.ascent-this.descent;this.fontMatrix=a.fontMatrix;this.bbox=a.bbox;this.defaultEncoding=a.defaultEncoding;this.toUnicode=a.toUnicode;if("Type3"===a.type){for(let e=0;e<256;e++)this.toFontChar.set(e,this.differences.get(e)||a.defaultEncoding[e]);return}this.cidEncoding=a.cidEncoding||"";this.vertical=!!a.vertical;if(this.vertical){this.vmetrics=a.vmetrics;this.defaultVMetrics=a.defaultVMetrics}if(!t||t.isEmpty){t&&(0,n.warn)('Font file is empty in "'+e+'" ('+this.loadedName+")");this.fallbackToSystemFont(a);return}[i,o]=getFontFileType(t,a);i===this.type&&o===this.subtype||(0,n.info)(`Inconsistent font file Type/SubType, expected: ${this.type}/${this.subtype} but found: ${i}/${o}.`);let c;try{switch(i){case"MMType1":(0,n.info)("MMType1 font ("+e+"), falling back to Type1.");case"Type1":case"CIDFontType0":const s="Type1C"===o||"CIDFontType0C"===o?new CFFFont(t,a):new Type1Font(e,t,a);adjustWidths(a);c=this.convert(e,s,a);break;case"OpenType":case"TrueType":case"CIDFontType2":c=this.checkAndRepair(e,t,a);adjustWidths(a);this.isOpenType&&(i="OpenType");break;default:throw new n.FormatError(`Font ${i} is not supported`)}}catch(e){(0,n.warn)(e);this.fallbackToSystemFont(a);return}amendFallbackToUnicode(a);this.data=c;this.type=i;this.subtype=o;this.fontMatrix=a.fontMatrix;this.widths=a.widths;this.defaultWidth=a.defaultWidth;this.toUnicode=a.toUnicode;this.seacMap=a.seacMap}get renderer(){const e=FontRendererFactory.create(this,!0,!fonts_classPrivateFieldGet(pe,this));return(0,n.shadow)(this,"renderer",e)}exportData(){return{buffer:(0,H.compileFontInfo)(fonts_assertClassBrand(ge,this,_getExportData).call(this,ie)),charProcOperatorList:this.charProcOperatorList,extra:this.fontExtraProperties?fonts_assertClassBrand(ge,this,_getExportData).call(this,oe):void 0}}fallbackToSystemFont(e){this.missingFile=fonts_classPrivateFieldSet(me,this,!0);const{name:t,type:a}=this;let n=(0,S.normalizeFontName)(t);const s=(0,F.getStdFontMap)(),r=(0,F.getNonStdFontMap)(),i=!!s[n],l=!(!r[n]||!s[r[n]]);n=s[n]||r[n]||n;(i||l)&&(this.standardFontName=s[n]);const c=(0,$.getFontBasicMetrics)()[n];if(c){isNaN(this.ascent)&&(this.ascent=c.ascent/re);isNaN(this.descent)&&(this.descent=c.descent/re);isNaN(this.capHeight)&&(this.capHeight=c.capHeight/re)}this.bold=/bold/i.test(n);this.italic=/oblique|italic/i.test(n);this.black=/Black/.test(t);const f=/Narrow/.test(t);this.remeasure=(!i||f)&&Object.keys(this.widths).length>0;if((i||l)&&"CIDFontType2"===a&&this.cidEncoding.startsWith("Identity-")){const a=e.cidToGidMap,n=new Map;if(/Trebuchet/i.test(t)){applyStandardFontGlyphMap(n,(0,F.getGlyphMapForMacOrderedFonts)());applyStandardFontGlyphMap(n,(0,F.getSupplementalGlyphMapForTrebuchetMS)())}else{applyStandardFontGlyphMap(n,(0,F.getGlyphMapForStandardFonts)());/Arial-?Black/i.test(t)?applyStandardFontGlyphMap(n,(0,F.getSupplementalGlyphMapForArialBlack)()):/Calibri/i.test(t)&&applyStandardFontGlyphMap(n,(0,F.getSupplementalGlyphMapForCalibri)())}if(a){for(const[e,t]of n)a.has(t)&&n.set(e,a.get(t));if(a.size!==this.toUnicode.size&&e.hasIncludedToUnicodeMap&&this.toUnicode instanceof M.IdentityToUnicodeMap)for(const[e,t]of n)!a.has(t)&&this.toUnicode.has(e)&&n.delete(e)}this.toUnicode instanceof M.IdentityToUnicodeMap||this.toUnicode.forEach((e,t)=>{n.set(e,t)});this.toFontChar=n;const s=new D.CharCodeMap;for(const[e,t]of n)s.set(e,t);this.toUnicode=new M.ToUnicodeMap(s)}else if(/Symbol/i.test(n)){const e=this.composite&&this.cidEncoding.startsWith("Identity-");this.toFontChar=buildToFontChar(e?le():o.SymbolSetEncoding,(0,C.getGlyphsUnicode)(),this.differences)}else if(/Dingbats/i.test(n))this.toFontChar=buildToFontChar(o.ZapfDingbatsEncoding,(0,C.getDingbatsGlyphsUnicode)(),this.differences);else if(i||l){const e=buildToFontChar(this.defaultEncoding,(0,C.getGlyphsUnicode)(),this.differences);"CIDFontType2"!==a||this.cidEncoding.startsWith("Identity-")||this.toUnicode instanceof M.IdentityToUnicodeMap||this.toUnicode.forEach((t,a)=>{e.set(t,a)});this.toFontChar=e}else{const e=(0,C.getGlyphsUnicode)(),a=new Map;this.toUnicode.forEach((t,n)=>{if(!this.composite){const a=this.differences.get(t)||this.defaultEncoding[t],s=(0,_.getUnicodeForGlyph)(a,e);-1!==s&&(n=s)}a.set(t,n)});this.composite&&this.toUnicode instanceof M.IdentityToUnicodeMap&&/Tahoma|Verdana/i.test(t)&&applyStandardFontGlyphMap(a,(0,F.getGlyphMapForStandardFonts)());this.toFontChar=a}amendFallbackToUnicode(e);this.loadedName=n.split("-",1)[0]}getMissingFileGlyphs(e){const t=new Set(this.toFontChar.keys()),a=this.composite&&this.cidEncoding.startsWith("Identity-");if(!this.composite||a)for(const e of Object.keys(this.widths||{}))t.add(+e);if(a){const e=(0,C.getGlyphsUnicode)();for(const a of[o.StandardEncoding,o.WinAnsiEncoding,o.MacRomanEncoding])for(const n of a){const a=e[n];void 0!==a&&t.add(a)}}const n=new Map;for(const a of t){const{fontChar:t,width:s}=this._charToGlyph(a),r=t.codePointAt(0);if(void 0===r)continue;const i=e?`${r}_${s}`:r;let o=n.get(i);if(o)e||Object.is(o.width,s)||(o.width=NaN);else{o={codePoint:r,width:s,charCodes:[]};n.set(i,o)}o.charCodes.push(a)}return Array.from(n.values())}setGeneratedFont({data:e,codePoints:t,toFontChar:a},n){const s=`${fonts_classPrivateFieldGet(de,this)}_generated`;this.data=e;this.generatedFontName=s;fonts_classPrivateFieldSet(ue,this,new Set(t));for(const[e,t]of a)this.toFontChar.set(e,t);fonts_classPrivateFieldGet(he,this).clear();if(n){this.systemFontInfo=null;this.loadedName=s;this.missingFile=!1;this.remeasure=!1;return}const r=this.systemFontInfo.css.split(",");r.splice(2,0,`"${s}"`);this.systemFontInfo={...this.systemFontInfo,css:r.join(",")}}checkAndRepair(e,t,a){const s=["OS/2","cmap","head","hhea","hmtx","maxp","name","post","loca","glyf","fpgm","prep","cvt ","CFF "];function readTables(e,t){const a=Object.create(null);a["OS/2"]=null;a.cmap=null;a.head=null;a.hhea=null;a.hmtx=null;a.maxp=null;a.name=null;a.post=null;for(let n=0;n<t;n++){const t=readTableEntry(e);s.includes(t.tag)&&(0!==t.length&&(a[t.tag]=t))}return a}function readTableEntry(e){const t=e.getString(4),a=e.getInt32()>>>0,n=e.getInt32()>>>0,s=e.getInt32()>>>0,r=e.pos;e.pos=e.start||0;e.skip(n);const i=e.getBytes(s);e.pos=r;if("head"===t){i[8]=i[9]=i[10]=i[11]=0;i[17]|=32}return{tag:t,checksum:a,length:s,offset:n,data:i,view:"CFF "===t?null:new DataView(i.buffer,i.byteOffset,i.byteLength)}}function readOpenTypeHeader(e){return{version:e.getString(4),numTables:e.getUint16(),searchRange:e.getUint16(),entrySelector:e.getUint16(),rangeShift:e.getUint16()}}function sanitizeGlyph(e,t,a,n,s,r){const i={length:0,sizeOfInstructions:0};if(t<0||t>=e.length||a>e.length||a-t<=12)return i;const o=e.subarray(t,a),l=signedInt16(o[2],o[3]),c=signedInt16(o[4],o[5]),f=signedInt16(o[6],o[7]),h=signedInt16(o[8],o[9]);if(l>f){writeSignedInt16(o,2,f);writeSignedInt16(o,6,l)}if(c>h){writeSignedInt16(o,4,h);writeSignedInt16(o,8,c)}const u=signedInt16(o[0],o[1]);if(u<0){if(u<-1)return i;n.set(o,s);i.length=o.length;return i}let d,m=10,g=0;for(d=0;d<u;d++){g=(o[m]<<8|o[m+1])+1;m+=2}const b=m,w=o[m]<<8|o[m+1];i.sizeOfInstructions=w;m+=2+w;const j=m;let y=0;for(d=0;d<g;d++){const e=o[m++];192&e&&(o[m-1]=63&e);let t=2;2&e?t=1:16&e&&(t=0);let a=2;4&e?a=1:32&e&&(a=0);const n=t+a;y+=n;if(8&e){const e=o[m++];0===e&&(o[m-1]^=8);d+=e;y+=e*n}}if(0===y)return i;let v=m+y;if(v>o.length)return i;if(!r&&w>0){n.set(o.subarray(0,b),s);n.set([0,0],s+b);n.set(o.subarray(j,v),s+b+2);v-=w;o.length-v>3&&(v=v+3&-4);i.length=v;return i}if(o.length-v>3){v=v+3&-4;n.set(o.subarray(0,v),s);i.length=v;return i}n.set(o,s);i.length=o.length;return i}function readNameTable(e){const a=(t.start||0)+e.offset;t.pos=a;const n=[[],[]],s=[],r=e.length,i=a+r;if(0!==t.getUint16()||r<6)return[n,s];const o=t.getUint16(),l=t.getUint16();let c,f;for(c=0;c<o&&t.pos+12<=i;c++){const e={platform:t.getUint16(),encoding:t.getUint16(),language:t.getUint16(),name:t.getUint16(),length:t.getUint16(),offset:t.getUint16()};(isMacNameRecord(e)||isWinNameRecord(e))&&s.push(e)}for(c=0,f=s.length;c<f;c++){const e=s[c];if(e.length<=0)continue;const r=a+l+e.offset;if(r+e.length>i)continue;t.pos=r;const o=e.name;if(e.encoding){let a="";for(let n=0,s=e.length;n<s;n+=2)a+=String.fromCharCode(t.getUint16());n[1][o]=a}else n[0][o]=t.getString(e.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 sanitizeTTProgram(e,t){let a,s,i,o,l,c=e.data,f=0,h=0,u=0;const d=[],m=[],g=[];let b=t.tooComplexToFollowFunctions,w=!1,j=0,y=0;for(let e=c.length;f<e;){const e=c[f++];if(64===e){s=c[f++];if(w||y)f+=s;else for(a=0;a<s;a++)d.push(c[f++])}else if(65===e){s=c[f++];if(w||y)f+=2*s;else for(a=0;a<s;a++){i=c[f++];d.push(signedInt16(i,c[f++]))}}else if(176==(248&e)){s=e-176+1;if(w||y)f+=s;else for(a=0;a<s;a++)d.push(c[f++])}else if(184==(248&e)){s=e-184+1;if(w||y)f+=2*s;else for(a=0;a<s;a++){i=c[f++];d.push(signedInt16(i,c[f++]))}}else if(43!==e||b)if(44!==e||b){if(45===e)if(w){w=!1;h=f}else{l=m.pop();if(!l){(0,n.warn)("TT: ENDF bad stack");t.hintsValid=!1;return}o=g.pop();c=l.data;f=l.i;t.functionsStackDeltas[o]=d.length-l.stackTop}else if(137===e){if(w||y){(0,n.warn)("TT: nested IDEFs not allowed");b=!0}w=!0;u=f}else if(88===e)++j;else if(27===e)y=j;else if(89===e){y===j&&(y=0);--j}else if(28===e&&!w&&!y){const e=d.at(-1);e>0&&(f+=e-1)}}else{if(w||y){(0,n.warn)("TT: nested FDEFs not allowed");b=!0}w=!0;u=f;o=d.pop();t.functionsDefined[o]={data:c,i:f}}else if(!w&&!y){o=d.at(-1);if(isNaN(o))(0,n.info)("TT: CALL empty stack (or invalid entry).");else{t.functionsUsed[o]=!0;if(o in t.functionsStackDeltas){const e=d.length+t.functionsStackDeltas[o];if(e<0){(0,n.warn)("TT: CALL invalid functions stack delta.");t.hintsValid=!1;return}d.length=e}else if(o in t.functionsDefined&&!g.includes(o)){m.push({data:c,i:f,stackTop:d.length-1});g.push(o);l=t.functionsDefined[o];if(!l){(0,n.warn)("TT: CALL non-existent function");t.hintsValid=!1;return}c=l.data;f=l.i}}}if(!w&&!y){let t=0;e<=142?t=r[e]:e>=192&&e<=223?t=-1:e>=224&&(t=-2);if(e>=113&&e<=117){s=d.pop();isNaN(s)||(t=2*-s)}for(;t<0&&d.length>0;){d.pop();t++}for(;t>0;){d.push(NaN);t--}}}t.tooComplexToFollowFunctions=b;const v=[c];f>c.length&&v.push(new Uint8Array(f-c.length));if(u>h){(0,n.warn)("TT: complementing a missing function tail");v.push(new Uint8Array([34,45]))}!function foldTTTable(e,t){if(t.length>1){let a,n,s=0;for(a=0,n=t.length;a<n;a++)s+=t[a].length;s=s+3&-4;const r=new Uint8Array(s);let i=0;for(a=0,n=t.length;a<n;a++){r.set(t[a],i);i+=t[a].length}e.data=r;e.length=s}}(e,v)}let i,l;if(isTrueTypeCollectionFile(t=new E.Stream(new Uint8Array(t.getBytes())))){const e=function readTrueTypeCollectionData(e,t){const{numFonts:a,offsetTable:s}=function readTrueTypeCollectionHeader(e){const t=e.getString(4);(0,n.assert)("ttcf"===t,"Must be a TrueType Collection font.");const a=e.getUint16(),s=e.getUint16(),r=e.getInt32()>>>0,i=[];for(let t=0;t<r;t++)i.push(e.getInt32()>>>0);const o={ttcTag:t,majorVersion:a,minorVersion:s,numFonts:r,offsetTable:i};switch(a){case 1:return o;case 2:o.dsigTag=e.getInt32()>>>0;o.dsigLength=e.getInt32()>>>0;o.dsigOffset=e.getInt32()>>>0;return o}throw new n.FormatError(`Invalid TrueType Collection majorVersion: ${a}.`)}(e),r=t.split("+");let i;for(let o=0;o<a;o++){e.pos=(e.start||0)+s[o];const a=readOpenTypeHeader(e),l=readTables(e,a.numTables);if(!l.name)throw new n.FormatError('TrueType Collection font must contain a "name" table.');const[c]=readNameTable(l.name);for(const e of c)for(const n of e){const e=n?.replaceAll(/\s/g,"");if(e){if(e===t)return{header:a,tables:l};if(!(r.length<2))for(const t of r)e===t&&(i={name:t,header:a,tables:l})}}}if(i){(0,n.warn)(`TrueType Collection does not contain "${t}" font, falling back to "${i.name}" font instead.`);return{header:i.header,tables:i.tables}}throw new n.FormatError(`TrueType Collection does not contain "${t}" font.`)}(t,this.name);i=e.header;l=e.tables}else{i=readOpenTypeHeader(t);l=readTables(t,i.numTables)}const f=!l["CFF "];let h,u=null;if(f){if(!l.loca)throw new n.FormatError('Required "loca" table is not found');if(!l.glyf){(0,n.warn)('Required "glyf" table is not found -- trying to recover.');l.glyf={tag:"glyf",data:new Uint8Array(0)}}this.isOpenType=!1}else{try{u=new CFFParser(new E.Stream(l["CFF "].data),a,!0).parse()}catch{(0,n.warn)("Failed to parse font "+a.loadedName)}if("OTTO"===i.version&&(!a.composite||"FontFile3"===a.fontFileN&&u?.isCIDFont)||!l.head||!l.hhea||!l.maxp||!l.post)return this.convert(e,new CFFFont(new E.Stream(l["CFF "].data),a),a);delete l.glyf;delete l.loca;delete l.fpgm;delete l.prep;delete l["cvt "];this.isOpenType=!0}if(!l.maxp)throw new n.FormatError('Required "maxp" table is not found');if(u)try{u.duplicateFirstGlyph();l["CFF "].data=new CFFCompiler(u).compile();fonts_classPrivateFieldSet(pe,this,!0);h=u.charStringCount}catch{(0,n.warn)("Failed to compile font "+a.loadedName)}t.pos=(t.start||0)+l.maxp.offset;let d=t.getInt32();const m=h??t.getUint16();if(20480===d&&6!==l.maxp.length){l.maxp.data=l.maxp.data.subarray(0,6);l.maxp.length=6}if(65536!==d&&20480!==d){if(6===l.maxp.length)d=20480;else{if(!(l.maxp.length>=32))throw new n.FormatError('"maxp" table has a wrong version number');d=65536}writeUint32(l.maxp.data,0,d)}const g=int16(l.head.data[50],l.head.data[51]);if(l.loca){const e=g?4*(m+1):2*(m+1);if(l.loca.length!==e){(0,n.warn)("Incorrect 'loca' table length -- attempting to fix it.");const a=Object.values(l).filter(Boolean).sort((e,t)=>e.offset-t.offset),s=a.indexOf(l.loca),r=a[s+1]||null;if(r&&l.loca.offset+e<r.offset){const a=t.pos;t.pos=t.start||0;t.skip(l.loca.offset);l.loca.data=t.getBytes(e);l.loca.length=e;t.pos=a}}}let b=m+1,w=!0;if(b>65535){w=!1;b=m;(0,n.warn)("Not enough space in glyfs to duplicate first glyph.")}let j=0,y=0;if(d>=65536&&l.maxp.length>=32){t.pos+=8;if(t.getUint16()>2){l.maxp.data[14]=0;l.maxp.data[15]=2}t.pos+=4;j=t.getUint16();t.pos+=4;y=t.getUint16()}else if(f&&20480===d){const e=new Uint8Array(32);writeUint32(e,0,65536);e[4]=m>>8&255;e[5]=255&m;e.fill(255,6,14);e[15]=2;e[28]=255;e[29]=255;e[31]=16;l.maxp.data=e;l.maxp.length=32;d=65536}l.maxp.data[4]=b>>8;l.maxp.data[5]=255&b;const v=function getTrickyFontNameFromTables(e){const t=e["cvt "],{fpgm:a,prep:n}=e;if(!t||!a||!n)return null;let s=null;for(const[e,r,i,o,l,c,f]of O)if(i===t.length&&l===a.length&&f===n.length){s??=[t,a,n].map(({view:e})=>(0,x.computeOpenTypeChecksum)(e));if(r===s[0]&&o===s[1]&&c===s[2])return e}return null}(l),k=function sanitizeTTPrograms(e,t,a,s){const r={functionsDefined:[],functionsUsed:[],functionsStackDeltas:[],tooComplexToFollowFunctions:!1,hintsValid:!0};e&&sanitizeTTProgram(e,r);t&&sanitizeTTProgram(t,r);e&&function checkInvalidFunctions(e,t){if(!e.tooComplexToFollowFunctions)if(e.functionsDefined.length>t){(0,n.warn)("TT: more functions defined than expected");e.hintsValid=!1}else for(let a=0,s=e.functionsUsed.length;a<s;a++){if(a>t){(0,n.warn)("TT: invalid function id: "+a);e.hintsValid=!1;return}if(e.functionsUsed[a]&&!e.functionsDefined[a]){(0,n.warn)("TT: undefined function: "+a);e.hintsValid=!1;return}}}(r,s);if(a&&1&a.length){const e=new Uint8Array(a.length+1);e.set(a.data);a.data=e}return r.hintsValid}(l.fpgm,l.prep,l["cvt "],j);if(!k){delete l.fpgm;delete l.prep;delete l["cvt "]}!function sanitizeMetrics(e,t,a,s,r,i){if(!t){a&&(a.data=null);return}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;const o=e.getUint16();e.pos+=8;e.pos+=2;let l=e.getUint16();if(0!==o){if(!(2&int16(s.data[44],s.data[45]))){t.data[22]=0;t.data[23]=0}}if(l>r){(0,n.info)(`The numOfMetrics (${l}) should not be greater than the numGlyphs (${r}).`);l=r;t.data[34]=(65280&l)>>8;t.data[35]=255&l}const c=r-l-(a.length-4*l>>1);if(c>0){const e=new Uint8Array(a.length+2*c);e.set(a.data);if(i){e[a.length]=a.data[2];e[a.length+1]=a.data[3]}a.data=e}}(t,l.hhea,l.hmtx,l.head,b,w);if(!l.head)throw new n.FormatError('Required "head" table is not found');!function sanitizeHead(e,t,a){const{data:s,view:r}=e,i=r.getInt32(0);if(i>>16!=1){(0,n.info)("Attempting to fix invalid version in head table: "+i);r.setInt32(0,65536)}const o=signedInt16(s[50],s[51]);if(o<0||o>1){(0,n.info)("Attempting to fix invalid indexToLocFormat in head table: "+o);const e=t+1;if(a===e<<1){s[50]=0;s[51]=0}else{if(a!==e<<2)throw new n.FormatError("Could not fix indexToLocFormat: "+o);s[50]=0;s[51]=1}}}(l.head,m,f?l.loca.length:0);let q=null;if(f){const e=function sanitizeGlyphLocations(e,t,a,s,r,i,o,l){const c=r?4:2,f=r?(e,t)=>e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]:(e,t)=>e[t]<<9|e[t+1]<<1,h=o?s+1:s,u=e.data,d=t.data,m=d.length,g=new Uint8Array(m);let b,w;const j=[];for(b=0,w=0;b<s+1;b++,w+=c){let e=f(u,w);e>m&&(e=m);j.push({index:b,offset:e,endOffset:0})}j.sort((e,t)=>e.offset-t.offset);for(b=0;b<s;b++)j[b].endOffset=j[b+1].offset;j.sort((e,t)=>e.index-t.index);for(b=0;b<s;b++){const{offset:e,endOffset:t}=j[b];if(0!==e||0!==t)break;const a=j[b+1].offset;if(0!==a){j[b].endOffset=a;break}}const y=j.at(-2);0!==y.offset&&0===y.endOffset&&(y.endOffset=m);const v=function pruneCompositeGlyphCycles(e,t,a){const s=new DataView(e.buffer,e.byteOffset,e.byteLength),r=new Array(a);for(let e=0;e<a;e++){const a=t[e].offset,n=Math.min(t[e].endOffset,s.byteLength);if(n-a<=10||s.getInt16(a)>=0)continue;const i=[];let o=a+10;for(;o+4<=n;){const e=s.getUint16(o),t=s.getUint16(o+2);let a=4+(1&e?4:2);8&e?a+=2:64&e?a+=4:128&e&&(a+=8);i.push({gid:t,offset:o,size:a,flags:e});o+=a;if(!(32&e))break}i.length&&(r[e]=i)}const i=new Uint8Array(a),o=new Map;for(let e=0;e<a;e++){if(0!==i[e]||!r[e])continue;const t=[{node:e,idx:0}];i[e]=1;for(;t.length>0;){const e=t.at(-1),s=r[e.node];if(!s||e.idx>=s.length){i[e.node]=2;t.pop();continue}const l=e.idx++,c=s[l].gid;if(!(c>=a||2===i[c]))if(0!==i[c])o.getOrInsertComputed(e.node,n.makeSet).add(l);else{i[c]=1;t.push({node:c,idx:0})}}}const l=new Set;for(const[a,n]of o){const i=r[a],o=[];for(let e=0;e<i.length;e++)n.has(e)||o.push(i[e]);if(0===o.length){l.add(a);continue}const c=t[a].offset,f=Math.min(t[a].endOffset,s.byteLength);let h=c+10;for(let t=0;t<o.length;t++){const a=o[t],n=t===o.length-1;let r=-257&a.flags;r=n?-33&r:32|r;h!==a.offset&&e.copyWithin(h,a.offset,a.offset+a.size);s.setUint16(h,r);h+=a.size}h<f&&e.fill(0,h,f)}return l}(d,j,s),k=new Uint8Array(s),q=new Uint32Array(h+1);let S=0,_=r;for(b=0;b<s;b++){const e=v.has(b)?{length:0,sizeOfInstructions:0}:sanitizeGlyph(d,j[b].offset,j[b].endOffset,g,S,i),t=e.length;0===t&&(k[b]=1);e.sizeOfInstructions>l&&(l=e.sizeOfInstructions);S+=t;_||=!!(1&t);q[b+1]=S}if(0===S){const e=new Uint8Array([0,1,0,0,0,0,0,0,0,0,0,0,0,0,49,0]);q.fill(e.length,1);t.data=e}else if(o){const e=q[1];if(g.length>e+S)t.data=g.subarray(0,e+S);else{t.data=new Uint8Array(e+S);t.data.set(g.subarray(0,S))}t.data.set(g.subarray(0,e),S);q[h]=S+e}else t.data=g.subarray(0,S);_||=q[h]>131070;a.data[50]=0;a.data[51]=_?1:0;const C=q.length,F=new Uint8Array((_?4:2)*C);if(_)for(b=0,w=0;b<C;b++,w+=4){const e=q[b];F[w]=e>>>24;F[w+1]=e>>16;F[w+2]=e>>8;F[w+3]=e}else for(b=0,w=0;b<C;b++,w+=2){const e=q[b];F[w]=e>>9;F[w+1]=e>>1}e.data=F;return{missingGlyphs:k,maxSizeOfInstructions:l}}(l.loca,l.glyf,l.head,m,g,k,w,y);q=e.missingGlyphs;if(d>=65536&&l.maxp.length>=32){l.maxp.data[26]=e.maxSizeOfInstructions>>8;l.maxp.data[27]=255&e.maxSizeOfInstructions}}if(!l.hhea)throw new n.FormatError('Required "hhea" table is not found');if(0===l.hhea.data[10]&&0===l.hhea.data[11]){l.hhea.data[10]=255;l.hhea.data[11]=255}const _={unitsPerEm:int16(l.head.data[18],l.head.data[19]),yMax:signedInt16(l.head.data[42],l.head.data[43]),yMin:signedInt16(l.head.data[38],l.head.data[39]),ascent:signedInt16(l.hhea.data[4],l.hhea.data[5]),descent:signedInt16(l.hhea.data[6],l.hhea.data[7]),lineGap:signedInt16(l.hhea.data[8],l.hhea.data[9])},{unitsPerEm:F,ascent:T,descent:R,lineGap:H}=_;if(T>0&&R<=0&&T-R<=4*F){this.ascent=T/F;this.descent=R/F;this.lineGap=H/F}else this.lineGap=0;if(this.cssFontInfo?.lineHeight){this.lineHeight=this.cssFontInfo.metrics.lineHeight;this.lineGap=this.cssFontInfo.metrics.lineGap}else this.lineHeight=this.ascent-this.descent+this.lineGap;l.post&&function readPostScriptTable(e,a,s){const r=(t.start||0)+e.offset;t.pos=r;const i=r+e.length,o=t.getInt32();t.skip(28);let l,c,f=!0;switch(o){case 65536:l=S.MacStandardGlyphOrdering;break;case 131072:const e=t.getUint16();if(e!==s){f=!1;break}const r=[];for(c=0;c<e;++c){const e=t.getUint16();if(e>=32768){f=!1;break}r.push(e)}if(!f)break;const h=[];for(;t.pos<i;){const e=t.getByte(),a=t.getString(e);h.push(a)}l=[];for(c=0;c<e;++c){const e=r[c];e<258?l.push(S.MacStandardGlyphOrdering[e]):l.push(h[e-258])}break;case 196608:break;default:(0,n.warn)("Unknown/unsupported post table version "+o);f=!1;a.defaultEncoding&&(l=a.defaultEncoding)}a.glyphNames=l;return f}(l.post,a,m);l.post={tag:"post",data:createPostTable(a)};const N=new Map;function hasGlyph(e){return!q?.[e]}if(a.composite){const{cidToGidMap:e,cMap:t}=a,s=!e?.size;t.forEach((t,a)=>{"string"==typeof a&&(a=convertCidString(t,a,!0));if(a>65535)throw new n.FormatError("Max size of CID is 65,535");const r=s?a:e.get(a)??-1;r>=0&&r<m&&hasGlyph(r)&&N.set(t,r)})}else{const e=function readCmapTable(e,t,a,s,r){if(!e){(0,n.warn)("No cmap table available.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}let i,o=(t.start||0)+e.offset;t.pos=o;t.skip(2);const l=t.getUint16();let f,h=!1;for(let e=0;e<l;e++){const n=t.getUint16(),r=t.getUint16(),i=t.getInt32()>>>0;let o=!1;if(f?.platformId!==n||f?.encodingId!==r){if(0!==n||0!==r&&1!==r&&3!==r)if(1===n&&0===r)o=!0;else if(3!==n||1!==r||!s&&f){if(a&&3===n&&0===r){o=!0;let a=!0;if(e<l-1){const e=t.peekBytes(2);int16(e[0],e[1])<n&&(a=!1)}a&&(h=!0)}}else{o=!0;a||(h=!0)}else o=!0;o&&(f={platformId:n,encodingId:r,offset:i});if(h)break}}f&&(t.pos=o+f.offset);if(!f||-1===t.peekByte()){(0,n.warn)("Could not find a preferred cmap table.");return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}const u=t.getUint16();let d=!1;const m=[];let g,b;if(0===u){t.skip(4);for(g=0;g<256;g++){const e=t.getByte();e&&m.push({charCode:g,glyphId:e})}d=!0}else if(2===u){t.skip(4);const e=[];let a=0;for(let n=0;n<256;n++){const n=t.getUint16()>>3;e.push(n);a=Math.max(n,a)}const n=[];for(let e=0;e<=a;e++)n.push({firstCode:t.getUint16(),entryCount:t.getUint16(),idDelta:signedInt16(t.getByte(),t.getByte()),idRangePos:t.pos+t.getUint16()});for(let a=0;a<256;a++)if(0===e[a]){t.pos=n[0].idRangePos+2*a;b=t.getUint16();m.push({charCode:a,glyphId:b})}else{const s=n[e[a]];for(g=0;g<s.entryCount;g++){const e=(a<<8)+g+s.firstCode;t.pos=s.idRangePos+2*g;b=t.getUint16();0!==b&&(b=(b+s.idDelta)%65536);m.push({charCode:e,glyphId:b})}}}else if(4===u){t.skip(4);const e=t.getUint16()>>1;t.skip(6);const a=[];let n;for(n=0;n<e;n++)a.push({end:t.getUint16()});t.skip(2);for(n=0;n<e;n++)a[n].start=t.getUint16();for(n=0;n<e;n++)a[n].delta=t.getUint16();let s,r=0;for(n=0;n<e;n++){i=a[n];const o=t.getUint16();if(o){s=(o>>1)-(e-n);i.offsetIndex=s;r=Math.max(r,s+i.end-i.start+1)}else i.offsetIndex=-1}const l=[];for(g=0;g<r;g++)l.push(t.getUint16());for(n=0;n<e;n++){i=a[n];o=i.start;const e=i.end,t=i.delta;s=i.offsetIndex;for(g=o;g<=e;g++)if(65535!==g){b=s<0?g:l[s+g-o];b=b+t&65535;m.push({charCode:g,glyphId:b})}}}else if(6===u){t.skip(4);const e=t.getUint16(),a=t.getUint16();for(g=0;g<a;g++){b=t.getUint16();const a=e+g;m.push({charCode:a,glyphId:b})}}else{if(12!==u){(0,n.warn)("cmap table has unsupported format: "+u);return{platformId:-1,encodingId:-1,mappings:[],hasShortCmap:!1}}{t.skip(2);const e=t.getInt32()>>>0;t.skip(4);const a=(0,c.MathClamp)(t.getInt32()>>>0,0,Math.min((e-16)/12|0,(t.end-t.pos)/12|0));for(g=0;g<a&&m.length<=1114112;g++){const e=t.getInt32()>>>0,a=t.getInt32()>>>0;let n=t.getInt32()>>>0;const s=n<r?Math.min(a,e+(r-n-1),1114111):e-1;for(let t=e;t<=s;t++)m.push({charCode:t,glyphId:n++})}}}const w=[],j=new Set;for(const e of m){const{charCode:t}=e;if(!j.has(t)){j.add(t);w.push(e)}}return{platformId:f.platformId,encodingId:f.encodingId,mappings:w.sort((e,t)=>e.charCode-t.charCode),hasShortCmap:d}}(l.cmap,t,this.isSymbolicFont,a.hasEncoding,m),s=e.platformId,r=e.encodingId,i=e.mappings;let f=[],h=!1;!a.hasEncoding||"MacRomanEncoding"!==a.baseEncodingName&&"WinAnsiEncoding"!==a.baseEncodingName||(f=(0,o.getEncoding)(a.baseEncodingName));if(a.hasEncoding&&!this.isSymbolicFont&&(3===s&&1===r||1===s&&0===r)){const e=(0,C.getGlyphsUnicode)();for(let t=0;t<256;t++){let n;n=this.differences.has(t)?this.differences.get(t):f.length&&""!==f[t]?f[t]:o.StandardEncoding[t];if(!n)continue;const l=(0,S.recoverGlyphName)(n,e);let c;3===s&&1===r?c=e[l]:1===s&&0===r&&(c=o.MacRomanEncoding.indexOf(l));if(void 0===c){if(!a.glyphNames&&a.hasIncludedToUnicodeMap&&!(this.toUnicode instanceof M.IdentityToUnicodeMap)){const e=this.toUnicode.get(t);e&&(c=e.codePointAt(0))}if(void 0===c)continue}for(const e of i)if(e.charCode===c){N.set(t,e.glyphId);break}}}else if(0===s){for(const e of i)N.set(e.charCode,e.glyphId);h=!0}else if(3===s&&0===r)for(const e of i){let t=e.charCode;t>=61440&&t<=61695&&(t&=255);N.set(t,e.glyphId)}else for(const e of i)N.set(e.charCode,e.glyphId);if(a.glyphNames&&(f.length||this.differences.size))for(let e=0;e<256;++e){if(!h&&N.has(e))continue;const t=this.differences.get(e)||f[e];if(!t)continue;const n=a.glyphNames.indexOf(t);n>0&&hasGlyph(n)&&N.set(e,n)}!N.has(0)&&hasGlyph(0)&&N.set(0,0)}N.size||N.set(0,0);const z=w?b-1:0;if(!a.cssFontInfo){const e=adjustMapping(N,hasGlyph,z,this.toUnicode);this.toFontChar=e.toFontChar;l.cmap={tag:"cmap",data:createCmapTable(e.charCodeToGlyphId,e.toUnicodeExtraMap,b)};l["OS/2"]&&function validateOS2Table(e,t){t.pos=(t.start||0)+e.offset;const a=t.getUint16(),n=[78,86,96,96,96,100][a];if(void 0===n||e.length<n)return!1;t.skip(60);const s=t.getUint16();if(a<4&&768&s)return!1;if(t.getUint16()>t.getUint16())return!1;t.skip(6);if(0===t.getUint16())return!1;e.data[8]=e.data[9]=0;return!0}(l["OS/2"],t)||(l["OS/2"]={tag:"OS/2",data:createOS2Table(a,e.charCodeToGlyphId,_)})}const[L,$]=l.name?readNameTable(l.name):[[[],[]],null],[U,G]=L;if((l.fpgm||l.prep)&&!getTrickyFontName(U[1])){const t=getTrickyFontName(G[1])??getTrickyFontName(e)??v;t&&(U[1]=t)}const W=createNameTable(e,L);if(l.name){this.psName=U[6]||null;a.composite||function adjustTrueTypeToUnicode(e,t,a){if(e.hasIncludedToUnicodeMap)return;if(e.hasEncoding)return;if(e.toUnicode instanceof M.IdentityToUnicodeMap)return;if(!t)return;if(0===a.length)return;if(e.defaultEncoding===o.WinAnsiEncoding)return;for(const e of a)if(!isWinNameRecord(e))return;const n=o.WinAnsiEncoding,s=new D.CharCodeMap,r=(0,C.getGlyphsUnicode)();for(const e in n){const t=n[e];if(""===t)continue;const a=r[t];void 0!==a&&s.set(+e,String.fromCharCode(a))}e.toUnicode.amend(s)}(a,this.isSymbolicFont,$)}l.name={tag:"name",data:W};const X=new x.OpenTypeFileBuilder(i.version);for(const e in l)X.addTable(e,l[e].data);return X.toArray()}convert(e,t,a){fonts_classPrivateFieldSet(pe,this,t.isCompiled);a.fixedPitch=!1;a.builtInEncoding&&function adjustType1ToUnicode(e,t){if(e.hasIncludedToUnicodeMap)return;if(t===e.defaultEncoding)return;if(e.toUnicode instanceof M.IdentityToUnicodeMap)return;const a=new D.CharCodeMap,n=(0,C.getGlyphsUnicode)();for(const s in t){if(e.hasEncoding&&(e.baseEncodingName||e.differences.has(+s)))continue;const r=t[s],i=(0,_.getUnicodeForGlyph)(r,n);-1!==i&&a.set(+s,String.fromCharCode(i))}e.toUnicode.amend(a)}(a,a.builtInEncoding);const s=t instanceof CFFFont?t.glyphZeroId:1,r=t.getGlyphMapping(a);let i=null,c=r,f=null;if(!a.cssFontInfo){i=adjustMapping(r,t.hasGlyphId.bind(t),s,this.toUnicode);this.toFontChar=i.toFontChar;c=i.charCodeToGlyphId;f=i.toUnicodeExtraMap}const{numGlyphs:h,seacs:u}=t;function getCharCodes(e,t){let a=null;for(const[n,s]of e)t===s&&(a??=[]).push(n);return a}function createCharCode(e,t){for(const[a,n]of e)if(t===n)return a;i.charCodeToGlyphId.set(i.nextAvailableFontCharCode,t);return i.nextAvailableFontCharCode++}if(i&&u?.size){const e=a.fontMatrix||n.FONT_IDENTITY_MATRIX,s=t.getCharset(),l=new Map;for(const[t,a]of u){const n=o.StandardEncoding[a[2]],c=o.StandardEncoding[a[3]],f=s.indexOf(n),h=s.indexOf(c);if(f<0||h<0)continue;const u={x:a[0]*e[0]+a[1]*e[2]+e[4],y:a[0]*e[1]+a[1]*e[3]+e[5]},d=getCharCodes(r,t);if(d)for(const e of d){const{charCodeToGlyphId:t}=i,a=createCharCode(t,f),n=createCharCode(t,h);l.set(e,{baseFontCharCode:a,accentFontCharCode:n,accentOffset:u})}}a.seacMap=l}const d=a.fontMatrix?1/Math.max(...a.fontMatrix.slice(0,4).map(Math.abs)):1e3,m=new x.OpenTypeFileBuilder("OTTO");m.addTable("CFF ",t.data);m.addTable("OS/2",createOS2Table(a,c));m.addTable("cmap",createCmapTable(c,f,h));m.addTable("head",function fontTableHead(){const e=[0,0,0,0,158,11,126,39],n=t.cff?.topDict.getByName("FontBBox")??a.bbox,s=Math.min(Math.floor(n?.[0]||0),0),r=Math.max(Math.ceil(n?.[2]||0),4095),i=new l.DataBuilder({exactLength:54});i.setArray([0,1,0,0]);i.setArray([0,0,16,0]);i.skip(4);i.setArray([95,15,60,245]);i.skip(2);i.setSafeInt16(d);i.setArray(e);i.setArray(e);i.setSafeInt16(s);i.setSafeInt16(a.descent);i.setSafeInt16(r);i.setSafeInt16(a.ascent);i.setInt16(a.italicAngle?2:0);i.setArray([0,17]);i.skip(6);return i.data}());m.addTable("hhea",function fontTableHhea(){const e=new l.DataBuilder({exactLength:36});e.setArray([0,1,0,0]);e.setSafeInt16(a.ascent);e.setSafeInt16(a.descent);e.skip(2);e.setArray([255,255]);e.skip(6);e.setSafeInt16(a.capHeight);e.setSafeInt16(Math.tan(a.italicAngle)*a.xHeight);e.skip(12);e.setInt16(h);return e.data}());m.addTable("hmtx",function fontTableHmtx(){const e=t.charstrings,a=t.cff?.widths??null,n=new l.DataBuilder({exactLength:4*h});n.skip(4);for(let t=1;t<h;t++){let s=0;e?s=e[t-1].width||0:a&&(s=Math.ceil(a[t]||0));n.setInt16(s);n.skip(2)}return n.data}());m.addTable("maxp",function fontTableMaxp(){const e=new l.DataBuilder({exactLength:6});e.setArray([0,0,80,0]);e.setInt16(h);return e.data}());m.addTable("name",createNameTable(e));m.addTable("post",createPostTable(a));return m.toArray()}get spaceWidth(){const e=["space","minus","one","i","I"];let t;for(const a of e){if(a in this.widths){t=this.widths[a];break}const e=(0,C.getGlyphsUnicode)()[a];let n=0;if(this.composite&&this.cMap.contains(e)){n=this.cMap.lookup(e);"string"==typeof n&&(n=convertCidString(e,n))}!n&&this.toUnicode&&(n=this.toUnicode.charCodeOf(e));n<=0&&(n=e);t=this.widths[n];if(t)break}return(0,n.shadow)(this,"spaceWidth",t||this.defaultWidth)}_charToGlyph(e,t=!1){let a,s,r,i=fonts_classPrivateFieldGet(he,this).get(e);if(i?.isSpace===t)return i;let o=e;if(this.cMap?.contains(e)){o=this.cMap.lookup(e);"string"==typeof o&&(o=convertCidString(e,o))}s=this.widths[o];"number"!=typeof s&&(s=this.defaultWidth);let l=this.vmetrics?.[o];if(!l&&this.defaultVMetrics){const[e,,t]=this.defaultVMetrics;l=[e,.5*s,t]}let c=this.toUnicode.get(e)||e;"number"==typeof c&&(c=String.fromCharCode(c));let f=this.toFontChar.has(e);a=this.toFontChar.get(e)||e;if(fonts_classPrivateFieldGet(me,this)){const t=this.differences.get(e)||this.defaultEncoding[e];if((".notdef"===t||""===t)&&"Type1"===this.type){a=32;if(""===t){s||=this.spaceWidth;this.toUnicode.has(e)||(c=String.fromCharCode(a))}}a=(0,_.mapSpecialUnicodeValues)(a)}this.isType3Font&&(r=a);let h=null;const u=this.seacMap?.get(e);if(u){f=!0;a=u.baseFontCharCode;h={fontChar:String.fromCodePoint(u.accentFontCharCode),offset:u.accentOffset}}let d="";"number"==typeof a&&(a<=1114111?d=String.fromCodePoint(a):(0,n.warn)(`charToGlyph - invalid fontCharCode: ${a}`));fonts_classPrivateFieldGet(ue,this)?.has(d.codePointAt(0))&&(f=!0);let m=!1;if(fonts_classPrivateFieldGet(me,this)&&this.vertical&&1===d.length&&fonts_assertClassBrand(ge,this,_hasVerticalVariant).call(this,e)){const e=d.charCodeAt(0),t=(0,S.getVerticalPresentationForm)()[e];t?d=c=String.fromCharCode(t):m=S.VERTICAL_ROTATED_CHARS.has(e)}i=new Glyph(this.fontExtraProperties,e,d,c,h,s,l,r,t,f,m);fonts_classPrivateFieldGet(he,this).set(e,i);return i}charsToGlyphs(e){let t=fonts_classPrivateFieldGet(fe,this).get(e);if(t)return t;t=[];if(this.cMap){const a=Object.create(null),n=e.length;let s=0;for(;s<n;){this.cMap.readCharCode(e,s,a);const{charcode:n,length:r}=a;s+=r;const i=this._charToGlyph(n,1===r&&32===e.charCodeAt(s-1));t.push(i)}}else for(let a=0,n=e.length;a<n;++a){const n=e.charCodeAt(a),s=this._charToGlyph(n,32===n);t.push(s)}fonts_classPrivateFieldGet(fe,this).set(e,t);return t}getCharPositions(e){const t=[];if(this.cMap){const a=Object.create(null);let n=0;for(;n<e.length;){this.cMap.readCharCode(e,n,a);const s=a.length;t.push([n,n+s]);n+=s}}else for(let a=0,n=e.length;a<n;++a)t.push([a,a+1]);return t}get glyphCacheValues(){return fonts_classPrivateFieldGet(he,this).values()}encodeString(e){const t=[],a=[],hasCurrentBufErrors=()=>t.length%2==1,n=this.toUnicode instanceof M.IdentityToUnicodeMap?e=>this.toUnicode.charCodeOf(e):e=>this.toUnicode.charCodeOf(String.fromCodePoint(e));for(let s=0,r=e.length;s<r;s++){const r=e.codePointAt(s);r>65535&&s++;if(this.toUnicode){const e=n(r);if(-1!==e){if(hasCurrentBufErrors()){t.push(a.join(""));a.length=0}for(let t=(this.cMap?this.cMap.getCharCodeLength(e):1)-1;t>=0;t--)a.push(String.fromCharCode(e>>8*t&255));continue}}if(!hasCurrentBufErrors()){t.push(a.join(""));a.length=0}a.push(String.fromCodePoint(r))}t.push(a.join(""));return t}}function _getExportData(e){const t=Object.create(null);for(const a of e){const e=this[a];void 0!==e&&(t[a]=e)}return t}function _hasVerticalVariant(e){const{cMap:t}=this;if(!t?.builtInCMap)return!0;let{useCMap:a}=t;for(;a?.vertical;)a=a.useCMap;return!a||t.lookup(e)!==a.lookup(e)}class ErrorFont{constructor(e){this.error=e;this.loadedName="g_font_error";this.missingFile=!0}charsToGlyphs(){return[]}encodeString(e){return[e]}exportData(){return{error:this.error}}}},720(e,t,a){a.d(t,{compileType3Glyph:()=>compileType3Glyph,normalizeFontName:()=>normalizeFontName,recoverGlyphName:()=>recoverGlyphName,type1FontGlyphMapping:()=>type1FontGlyphMapping});var n=a(1723),s=a(8294),r=a(8270),i=a(5399),o=a(115);const l={FixedPitch:1,Serif:2,Symbolic:4,Script:8,Nonsymbolic:32,Italic:64,AllCap:65536,SmallCap:131072,ForceBold:262144};function recoverGlyphName(e,t){if(void 0!==t[e])return e;const a=(0,o.getUnicodeForGlyph)(e,t);if(-1!==a)for(const e in t)if(t[e]===a)return e;(0,n.info)("Unable to recover a standard glyph name for: "+e);return e}function buildMapping(e,t){const a=new Map,{length:n}=e;for(let s=0;s<n;s++){const n=t.indexOf(e[s]);a.set(s,n>=0?n:0)}return a}function type1FontGlyphMapping(e,t,a){let n,i;if(e.baseEncodingName)n=buildMapping((0,s.getEncoding)(e.baseEncodingName),a);else if(e.flags&l.Symbolic){n=new Map;for(const e in t)n.set(+e,t[e])}else n=buildMapping(s.StandardEncoding,a);if(e.differences)for(const[t,s]of e.differences){let e=a.indexOf(s);if(-1===e){i??=(0,r.getGlyphsUnicode)();const t=recoverGlyphName(s,i);t!==s&&(e=a.indexOf(t))}n.set(t,e>=0?e:0)}return n}function normalizeFontName(e){return e.replaceAll(/[,_]/g,"-").replaceAll(/\s/g,"")}const c=(0,i.getLookupTableFactory)(e=>{e[8211]=65074;e[8212]=65073;e[8229]=65072;e[8230]=65049;e[12289]=65041;e[12290]=65042;e[12296]=65087;e[12297]=65088;e[12298]=65085;e[12299]=65086;e[12300]=65089;e[12301]=65090;e[12302]=65091;e[12303]=65092;e[12304]=65083;e[12305]=65084;e[12308]=65081;e[12309]=65082;e[12310]=65047;e[12311]=65048;e[65103]=65076;e[65281]=65045;e[65288]=65077;e[65289]=65078;e[65292]=65040;e[65306]=65043;e[65307]=65044;e[65311]=65046;e[65339]=65095;e[65341]=65096;e[65343]=65075;e[65371]=65079;e[65373]=65080}),f=new Set([8208,8213,8214,12312,12313,12316,12448,12540,65309,65372,65374,65375,65376]);function compileType3Glyph({data:e,width:t,height:a}){if(t>1e3||a>1e3)return null;const s=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),r=t+1,i=new Uint8Array(r*(a+1));let o,l,c;const f=t+7&-8,h=new Uint8Array(f*a);let u=0;for(const t of e){let e=128;for(;e>0;){h[u++]=t&e?0:255;e>>=1}}let d=0;u=0;if(0!==h[u]){i[0]=1;++d}for(l=1;l<t;l++){if(h[u]!==h[u+1]){i[l]=h[u]?2:1;++d}u++}if(0!==h[u]){i[l]=2;++d}for(o=1;o<a;o++){u=o*f;c=o*r;if(h[u-f]!==h[u]){i[c]=h[u]?1:8;++d}let e=(h[u]?4:0)+(h[u-f]?8:0);for(l=1;l<t;l++){e=(e>>2)+(h[u+1]?4:0)+(h[u-f+1]?8:0);if(s[e]){i[c+l]=s[e];++d}u++}if(h[u-f]!==h[u]){i[c+l]=h[u]?2:4;++d}if(d>1e3)return null}u=f*(a-1);c=o*r;if(0!==h[u]){i[c]=8;++d}for(l=1;l<t;l++){if(h[u]!==h[u+1]){i[c+l]=h[u]?4:8;++d}u++}if(0!==h[u]){i[c+l]=4;++d}if(d>1e3)return null;const m=new Int32Array([0,r,-1,0,-r,0,0,0,1]),g=[],{a:b,b:w,c:j,d:y,e:v,f:k}=(new DOMMatrix).scaleSelf(1/t,-1/a).translateSelf(0,-a);for(o=0;d&&o<=a;o++){let e=o*r;const a=e+t;for(;e<a&&!i[e];)e++;if(e===a)continue;let s=e%r,l=o;g.push(n.DrawOPS.moveTo,b*s+j*l+v,w*s+y*l+k);const c=e;let f=i[e];do{const t=m[f];do{e+=t}while(!i[e]);const a=i[e];if(5!==a&&10!==a){f=a;i[e]=0}else{f=a&51*f>>4;i[e]&=f>>2|f<<2}s=e%r;l=e/r|0;g.push(n.DrawOPS.lineTo,b*s+j*l+v,w*s+y*l+k);i[e]||--d}while(c!==e);--o}return[n.OPS.rawFillPath,[new Float32Array(g)],new Float32Array([0,0,t,a])]}a.d(t,["FontFlags",0,l,"MacStandardGlyphOrdering",0,[".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"],"VERTICAL_ROTATED_CHARS",0,f,"getVerticalPresentationForm",0,c])},4950(e,t,a){a.d(t,{PDFFunctionFactory:()=>PDFFunctionFactory,isPDFFunction:()=>isPDFFunction});var n=a(1723),s=a(5632),r=a(1834),i=a(5399),o=a(4907),l=a(4566);const c=0,f=2,h=3,u=4;class PDFFunctionFactory{static setOptions({useWasm:e}){d._=function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}(PDFFunctionFactory,this,e)}constructor({xref:e}){this.xref=e}get useWasm(){return d._}async create(e,t=!1){let a,n;e instanceof s.Ref?a=e:e instanceof s.Dict?a=e.objId:e instanceof r.BaseStream&&(a=e.dict?.objId);if(a){const e=this._localFunctionCache.getByRef(a);if(e)return e}const i=this.xref.fetchIfRef(e);if(Array.isArray(i)){if(!t)throw new Error('PDFFunctionFactory.create - expected "parseArray" argument.');n=await PDFFunction.parseArray(this,i)}else n=await PDFFunction.parse(this,i);a&&this._localFunctionCache.set(null,a,n);return n}get _localFunctionCache(){return(0,n.shadow)(this,"_localFunctionCache",new o.LocalFunctionCache)}}var d={_:!0};function toNumberArray(e){return Array.isArray(e)?(0,i.isNumberArray)(e,null)?e:e.map(e=>+e):null}function setArity(e,t,a){e.numInputs=t;e.numOutputs=a;return e}function interpolate(e,t,a,n,s){return t===a?n:n+(s-n)/(a-t)*(e-t)}class PDFFunction{static getSampleArray(e,t,a,n){let s=t;for(const t of e)s*=t;const r=new Array(s);let i=0,o=0;const l=1/(2**a-1),c=n.peekBytes(Math.ceil(s*a/8));let f=0;for(let e=0;e<s;e++){for(;i<a;){o<<=8;o|=c[f++];i+=8}i-=a;r[e]=(o>>>i)*l;o&=(1<<i)-1}return r}static parse(e,t,a){const s=t.dict||t,r=s.get("FunctionType");switch(r){case c:return this.constructSampled(e,t,s);case f:return this.constructInterpolated(e,s);case h:return this.constructStitched(e,s,a);case u:return this.constructPostScript(e,t,s)}throw new n.FormatError(`Unknown function type: ${r}`)}static async parseArray(e,t){const{xref:a}=e,s=[];for(const n of t)s.push(await this.parse(e,a.fetchIfRef(n)));if(1===s.length)return s[0];const r=s[0]?.numInputs??0;if(s.some(e=>e.numInputs!==r||1!==e.numOutputs))throw new n.FormatError("Invalid array of functions.");return setArity(function(e,t,a,n){for(let r=0,i=s.length;r<i;r++)s[r](e,t,a,n+r)},r,s.length)}static constructSampled(e,t,a){const s=toNumberArray(a.getArray("Domain")),r=toNumberArray(a.getArray("Range"));if(!s||!r)throw new n.FormatError("No domain or range");const i=s.length/2,o=r.length/2,c=toNumberArray(a.getArray("Size")),f=a.get("BitsPerSample"),h=a.get("Order")||1;1!==h&&(0,n.info)("No support for cubic spline interpolation: "+h);let u=toNumberArray(a.getArray("Encode"));if(!u){u=[];for(let e=0;e<i;++e)u.push(0,c[e]-1)}const d=toNumberArray(a.getArray("Decode"))||r,m=this.getSampleArray(c,o,f,t),g=i>PDFFunction.MAX_MULTILINEAR_INPUTS,b=new Float64Array(i),w=new Float64Array(i),j=new Float64Array(i),y=g?new Uint32Array(i):null,v=g?i+1:1<<i,k=new Uint32Array(v),q=new Float64Array(v);return setArity(function constructSampledFn(e,t,a,n){let f=0,h=o,v=0;for(let a=0;a<i;++a){const n=s[2*a],r=s[2*a+1];let i=interpolate((0,l.MathClamp)(e[t+a],n,r),n,r,u[2*a],u[2*a+1]);const o=c[a];i=(0,l.MathClamp)(i,0,o-1);const d=Math.floor(i);f+=d*h;if(i!==d){b[v]=h;w[v]=d+1-i;j[v]=i-d;v++}h*=o}k[0]=f;q[0]=1;let S=1;if(g){if(v>0){for(let e=0;e<v;e++){const t=j[e];let a=e;for(;a>0&&j[y[a-1]]<t;a--)y[a]=y[a-1];y[a]=e}q[0]=w[y[0]];for(let e=0;e<v;e++){const t=y[e];k[e+1]=k[e]+b[t];q[e+1]=e+1<v?j[t]-j[y[e+1]]:j[t]}S=v+1}}else for(let e=0;e<v;e++){const t=b[e],a=w[e],n=j[e];for(let e=0;e<S;e++){k[S+e]=k[e]+t;q[S+e]=q[e]*n;q[e]*=a}S<<=1}for(let e=0;e<o;++e){let t=0;for(let a=0;a<S;a++)t+=m[k[a]+e]*q[a];t=interpolate(t,0,1,d[2*e],d[2*e+1]);a[n+e]=(0,l.MathClamp)(t,r[2*e],r[2*e+1])}},i,o)}static constructInterpolated(e,t){const a=toNumberArray(t.getArray("Domain")),n=toNumberArray(t.getArray("C0"))||[0],s=toNumberArray(t.getArray("C1"))||[1],r=t.get("N"),i=[];for(let e=0,t=n.length;e<t;++e)i.push(s[e]-n[e]);const o=i.length;return setArity(function constructInterpolatedFn(e,t,a,s){const l=1===r?e[t]:e[t]**r;for(let e=0;e<o;++e)a[s+e]=n[e]+l*i[e]},a?a.length/2:1,o)}static async constructStitched(e,t,a=new Set){const s=toNumberArray(t.getArray("Domain"));if(!s)throw new n.FormatError("No domain");const r=s.length/2;if(1!==r)throw new n.FormatError("Bad domain for stitched function");const{xref:i}=e,o=[];if(a.has(t))throw new n.FormatError("Circular stitched function");a.add(t);try{for(const n of t.get("Functions"))o.push(await this.parse(e,i.fetchIfRef(n),a))}finally{a.delete(t)}const c=o[0]?.numOutputs??0;if(0===o.length||o.some(e=>1!==e.numInputs||e.numOutputs!==c))throw new n.FormatError("Incompatible sub-functions for stitched function");const f=toNumberArray(t.getArray("Bounds")),h=toNumberArray(t.getArray("Encode")),u=new Float32Array(1);return setArity(function constructStitchedFn(e,t,a,n){const r=(0,l.MathClamp)(e[t],s[0],s[1]),i=f.length;let c;for(c=0;c<i&&!(r<f[c]);++c);const d=c>0?f[c-1]:s[0],m=c<i?f[c]:s[1];u[0]=interpolate(r,d,m,h[2*c],h[2*c+1]);o[c](u,0,a,n)},r,c)}static async constructPostScript(e,t,s){const r=toNumberArray(s.getArray("Domain")),i=toNumberArray(s.getArray("Range"));if(!r)throw new n.FormatError("No domain.");if(!i)throw new n.FormatError("No range.");const{buildPostScriptFunction:o}=await Promise.resolve().then(()=>a(6737)),l=(0,n.bytesToString)(t.peekBytes()),c=r.length/2,f=i.length/2;return setArity(o(l,r,i,e.useWasm),c,f)}}!function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}(PDFFunction,"MAX_MULTILINEAR_INPUTS",8);function isPDFFunction(e){let t;if(e instanceof s.Dict)t=e;else{if(!(e instanceof r.BaseStream))return!1;t=e.dict}return t.has("FunctionType")}},8270(e,t,a){var n=a(5399);const s=(0,n.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=(0,n.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});a.d(t,["getDingbatsGlyphsUnicode",0,r,"getGlyphsUnicode",0,s])},3141(e,t,a){a.d(t,{CmykICCBasedCS:()=>CmykICCBasedCS,IccColorSpace:()=>IccColorSpace});function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const n=1===new Uint8Array(new Uint32Array([1]).buffer)[0]?4278190080:255,s=~n;class QCMS{static get _memoryArray(){const e=_assertClassBrand(QCMS,this,r)._;return e?.byteLength?e:r._=_assertClassBrand(QCMS,this,new Uint8Array(this._memory.buffer))}}var r={_:null};_defineProperty(QCMS,"_memory",null);_defineProperty(QCMS,"_destBuffer",null);_defineProperty(QCMS,"_destOffset",0);_defineProperty(QCMS,"_keepAlpha",!1);const i=Object.freeze({RGB8:0,0:"RGB8",RGBA8:1,1:"RGBA8",BGRA8:2,2:"BGRA8",Gray8:3,3:"Gray8",GrayA8:4,4:"GrayA8",CMYK:5,5:"CMYK"}),o=Object.freeze({Perceptual:0,0:"Perceptual",RelativeColorimetric:1,1:"RelativeColorimetric",Saturation:2,2:"Saturation",AbsoluteColorimetric:3,3:"AbsoluteColorimetric"});function qcms_convert_array(e,t,a){const n=passArray8ToWasm0(t,m.__wbindgen_malloc),s=g;m.qcms_convert_array(e,n,s,a)}function __wbg_get_imports(){return{__proto__:null,"./qcms_bg.js":{__proto__:null,__wbg___wbindgen_throw_344f42d3211c4765:function(e,t){throw new Error(function getStringFromWasm0(e,t){return function decodeText(e,t){h+=t;if(h>=f){c=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});c.decode();h=t}return c.decode(getUint8ArrayMemory0().subarray(e,e+t))}(e>>>0,t)}(e,t))},__wbg_copy_result_0d15f3bf9d9012ae:function(e,t){!function copy_result(e,t){const{_destBuffer:a,_destOffset:r,_keepAlpha:i,_memoryArray:o}=QCMS;if(!i){a.set(o.subarray(e,e+t),r);return}const l=t>>2,c=a.byteOffset+r;if(!(3&(c|e))){const t=new Uint32Array(a.buffer,c,l),r=new Uint32Array(QCMS._memory.buffer,e,l);for(let e=0;e<l;e++)t[e]=t[e]&n|r[e]&s;return}for(let n=e,s=e+t,i=r;n<s;n+=4,i+=4){a[i]=o[n];a[i+1]=o[n+1];a[i+2]=o[n+2]}}(e>>>0,t>>>0)},__wbindgen_init_externref_table:function(){const e=m.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0);e.set(t+0,void 0);e.set(t+1,null);e.set(t+2,!0);e.set(t+3,!1)}}}}let l=null;function getUint8ArrayMemory0(){null!==l&&0!==l.byteLength||(l=new Uint8Array(m.memory.buffer));return l}function passArray8ToWasm0(e,t){const a=t(1*e.length,1)>>>0;getUint8ArrayMemory0().set(e,a/1);g=e.length;return a}let c=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});c.decode();const f=2146435072;let h=0;let u,d,m,g=0;function __wbg_finalize_init(e,t){d=e;m=e.exports;u=t;l=null;m.__wbindgen_start();return m}var b=a(1723),w=a(3069);function _classPrivateFieldInitSpec(e,t,a){(function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,a)}function _classPrivateFieldGet(e,t){return e.get(icc_colorspace_assertClassBrand(e,t))}function _classPrivateFieldSet(e,t,a){return e.set(icc_colorspace_assertClassBrand(e,t),a),a}function icc_colorspace_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}function fetchSync(e){const t=new XMLHttpRequest;t.open("GET",e,!1);t.responseType="arraybuffer";t.send(null);return t.response}var j=new WeakMap,y=new WeakMap;class IccColorSpace extends w.ColorSpace{constructor(e,t,a){if(!IccColorSpace.isUsable)throw new Error("No ICC color space support");super(t,a);_classPrivateFieldInitSpec(this,j,void 0);_classPrivateFieldInitSpec(this,y,void 0);let n;switch(a){case 1:n=i.Gray8;_classPrivateFieldSet(y,this,(e,t)=>function qcms_convert_one(e,t){return m.qcms_convert_one(e,t)>>>0}(_classPrivateFieldGet(j,this),255*e[t]));break;case 3:n=i.RGB8;_classPrivateFieldSet(y,this,(e,t)=>function qcms_convert_three(e,t,a,n){return m.qcms_convert_three(e,t,a,n)>>>0}(_classPrivateFieldGet(j,this),255*e[t],255*e[t+1],255*e[t+2]));break;case 4:n=i.CMYK;_classPrivateFieldSet(y,this,(e,t)=>function qcms_convert_four(e,t,a,n,s){return m.qcms_convert_four(e,t,a,n,s)>>>0}(_classPrivateFieldGet(j,this),255*e[t],255*e[t+1],255*e[t+2],255*e[t+3]));break;default:throw new Error(`Unsupported number of components: ${a}`)}_classPrivateFieldSet(j,this,function qcms_transformer_from_memory(e,t,a){const n=passArray8ToWasm0(e,m.__wbindgen_malloc),s=g;return m.qcms_transformer_from_memory(n,s,t,a)>>>0}(e,n,o.Perceptual));if(!_classPrivateFieldGet(j,this))throw new Error("Failed to create ICC color space");q._||(q._=new FinalizationRegistry(e=>{!function qcms_drop_transformer(e){m.qcms_drop_transformer(e)}(e)}));q._.register(this,_classPrivateFieldGet(j,this))}getRgbHex(e,t){const a=_classPrivateFieldGet(y,this).call(this,e,t);return b.Util.makeHexColor(a>>16,a>>8&255,255&a)}getRgbItem(e,t,a,n){const s=_classPrivateFieldGet(y,this).call(this,e,t);a[n]=s>>16;a[n+1]=s>>8&255;a[n+2]=255&s}getRgbItems(e,t,a,n,s){const{numComps:r}=this,i=t*r,o=new Uint8Array(i);for(let t=0;t<i;t++)o[t]=255*e[t];QCMS._destBuffer=a;QCMS._destOffset=n;QCMS._keepAlpha=1===s;qcms_convert_array(_classPrivateFieldGet(j,this),o,1===s);QCMS._destBuffer=null}getRgbBuffer(e,t,a,n,s,r,i){e=e.subarray(t,t+a*this.numComps);if(8!==r){const t=255/((1<<r)-1);for(let a=0,n=e.length;a<n;a++)e[a]*=t}QCMS._destBuffer=n;QCMS._destOffset=s;QCMS._keepAlpha=1===i&&n.buffer!==e.buffer;qcms_convert_array(_classPrivateFieldGet(j,this),e,1===i);QCMS._destBuffer=null}static setOptions({useWasm:e,useWorkerFetch:t,wasmUrl:a}){if(t){v._=icc_colorspace_assertClassBrand(IccColorSpace,this,e);k._=icc_colorspace_assertClassBrand(IccColorSpace,this,a)}else v._=icc_colorspace_assertClassBrand(IccColorSpace,this,!1)}static get isUsable(){let e=!1;if(icc_colorspace_assertClassBrand(IccColorSpace,this,v)._)if(icc_colorspace_assertClassBrand(IccColorSpace,this,k)._)try{this._module=function initSync(e){if(void 0!==m)return m;void 0!==e&&(Object.getPrototypeOf(e)===Object.prototype?({module:e}=e):console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));const t=__wbg_get_imports();e instanceof WebAssembly.Module||(e=new WebAssembly.Module(e));return __wbg_finalize_init(new WebAssembly.Instance(e,t),e)}({module:fetchSync(`${icc_colorspace_assertClassBrand(IccColorSpace,this,k)._}qcms_bg.wasm`)});e=!!this._module;QCMS._memory=this._module.memory}catch(e){(0,b.warn)(`ICCBased color space: "${e}".`)}else(0,b.warn)("No ICC color space support due to missing `wasmUrl` API option");return(0,b.shadow)(this,"isUsable",e)}}var v={_:!0},k={_:null},q={_:null};class CmykICCBasedCS extends IccColorSpace{constructor(){super(new Uint8Array(fetchSync(`${S._}CGATS001Compat-v2-micro.icc`)),"DeviceCMYK",4)}static setOptions({iccUrl:e}){S._=icc_colorspace_assertClassBrand(CmykICCBasedCS,this,e)}static get isUsable(){let e=!1;IccColorSpace.isUsable&&(icc_colorspace_assertClassBrand(CmykICCBasedCS,this,S)._?e=!0:(0,b.warn)("No CMYK ICC profile support due to missing `iccUrl` API option"));return(0,b.shadow)(this,"isUsable",e)}}var S={_:void 0}},8545(e,t,a){a.d(t,{PDFImage:()=>PDFImage});var n,s=a(1723),r=a(8609),i=a(1834),o=a(3069),l=a(5719),c=a(4563),f=a(2320),h=a(5495),u=a(4242),d=a(4566),m=a(5632);function _classPrivateMethodInitSpec(e,t){(function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}function sumOpaqueRow(e,t,a){for(let n=0,s=0,r=a.length;n<r;n++,s+=4){const r=a[n];e[s]+=t[r];e[s+1]+=t[r+1];e[s+2]+=t[r+2]}}function sumTransparentRow(e,t,a,n,s,r){for(let i=0,o=0,l=a.length;i<l;i++,o+=4){const l=n[s+r[i]];if(0!==l){const n=a[i];e[o]+=t[n]*l;e[o+1]+=t[n+1]*l;e[o+2]+=t[n+2]*l;e[o+3]+=l}}}function sumPreblendedRow(e,t,a,n,s,r,[i,o,l]){for(let c=0,f=0,h=a.length;c<h;c++,f+=4){const h=n[s+r[c]];if(0!==h){const n=a[c];e[f]+=(0,d.MathClamp)(255*(t[n]-i)+i*h,0,255*h);e[f+1]+=(0,d.MathClamp)(255*(t[n+1]-o)+o*h,0,255*h);e[f+2]+=(0,d.MathClamp)(255*(t[n+2]-l)+l*h,0,255*h);e[f+3]+=h}}}var g=new WeakSet;class PDFImage{constructor(){_classPrivateMethodInitSpec(this,g)}static async buildImage(e){var t;const{dict:a}=e.image;let n=a.get("SMask"),r=a.get("Mask");if(n){r=null;if(!(n instanceof i.BaseStream)){(0,s.warn)("Unsupported /SMask format.");n=null}}else if(r&&!(r instanceof i.BaseStream||Array.isArray(r))){(0,s.warn)("Unsupported /Mask format.");r=null}return _assertClassBrand(g,t=new PDFImage,_initialize).call(t,{...e,smask:n,mask:r})}static async createMask({image:e,isOffscreenCanvasSupported:t=!1}){const{dict:a}=e,n=a.get("W","Width"),i=a.get("H","Height"),o=a.get("I","Interpolate"),l=a.getArray("D","Decode"),h=l?.[0]>0,u=(n+7>>3)*i,d=await e.getImageData(u),m=1===n&&1===i&&h===(0===d.length||!!(128&d[0]));if(m)return{isSingleOpaquePixel:m};if(t){if(f.ImageResizer.needsToBeResized(n,i)){const e=new Uint8ClampedArray(n*i*4);(0,r.convertBlackAndWhiteToRGBA)({src:d,dest:e,width:n,height:i,nonBlackColor:0,inverseDecode:h});return f.ImageResizer.createImage({kind:s.ImageKind.RGBA_32BPP,data:e,width:n,height:i,interpolate:o})}const e=new OffscreenCanvas(n,i),t=e.getContext("2d"),a=t.createImageData(n,i);(0,r.convertBlackAndWhiteToRGBA)({src:d,dest:a.data,width:n,height:i,nonBlackColor:0,inverseDecode:h});t.putImageData(a,0,0);return{data:null,width:n,height:i,interpolate:o,bitmap:e.transferToImageBitmap()}}const g=d.byteLength,b=u===g;let w;if(e instanceof c.DecodeStream&&(!h||b))w=d;else if(h){w=new Uint8Array(u);w.set(d);w.fill(255,g)}else w=new Uint8Array(d);if(h)for(let e=0;e<g;e++)w[e]^=255;return{data:w,width:n,height:i,interpolate:o}}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(e){const t=this.bpc,a=this.numComps,n=this.decodeAddends,s=this.decodeCoefficients,r=(1<<t)-1;let i,o;if(1===t){for(i=0,o=e.length;i<o;i++)e[i]=+!e[i];return}let l=0;for(i=0,o=this.width*this.height;i<o;i++)for(let t=0;t<a;t++){e[l]=(0,d.MathClamp)(n[t]+e[l]*s[t],0,r);l++}}getComponents(e){const t=this.bpc;if(8===t)return e;const a=this.width,n=this.height,s=this.numComps,r=a*n*s;let i,o=0;i=t<=8?new Uint8Array(r):t<=16?new Uint16Array(r):new Uint32Array(r);const l=a*s,c=(1<<t)-1;let f,h=0;if(1===t){let t,a,s;for(let r=0;r<n;r++){a=h+(-8&l);s=h+l;for(;h<a;){f=e[o++];i[h]=f>>7&1;i[h+1]=f>>6&1;i[h+2]=f>>5&1;i[h+3]=f>>4&1;i[h+4]=f>>3&1;i[h+5]=f>>2&1;i[h+6]=f>>1&1;i[h+7]=1&f;h+=8}if(h<s){f=e[o++];t=128;for(;h<s;){i[h++]=+!!(f&t);t>>=1}}}}else{let a=0;f=0;for(h=0;h<r;++h){if(h%l===0){f=0;a=0}for(;a<t;){f=f<<8|e[o++];a+=8}const n=a-t;i[h]=(0,d.MathClamp)(f>>n,0,c);f&=(1<<n)-1;a=n}}return i}async fillOpacity(e,t,a,n,r){let i;if(this.smask)i=(e,n)=>this.smask.fillGrayBuffer(e,{...n,destWidth:t,destHeight:a});else if(this.mask)if(this.mask instanceof PDFImage)i=(e,n)=>this.mask.fillGrayBuffer(e,{...n,invertOutput:!0,destWidth:t,destHeight:a});else{if(!Array.isArray(this.mask))throw new s.FormatError("Unknown mask format.");i=(e,{maxRows:a,offset:n,stride:s})=>{for(let i=0,o=t*a;i<o;++i){let t=0;const a=i*this.numComps;for(let e=0;e<this.numComps;++e){const n=r[a+e],s=2*e;if(n<this.mask[s]||n>this.mask[s+1]){t=255;break}}e[i*s+n]=t}}}else i=(e,{maxRows:a,offset:n,stride:s})=>{for(let r=0,i=t*a;r<i;++r)e[r*s+n]=255};await i(e,{maxRows:n,offset:3,stride:4})}undoPreblend(e,t,a){const n=this.smask?.matte;if(!n)return;const s=this.colorSpace.getRgb(n,0);_undoPreblend.call(PDFImage,e,t*a*4,s[0],s[1],s[2])}async createImageData(e=!1,t=!1){const a=this.drawWidth,n=this.drawHeight,r={width:a,height:n,interpolate:this.interpolate,kind:0,data:null},i=this.numComps,o=this.width,l=this.height,c=this.bpc,u=o*i*c+7>>3,d=t&&f.ImageResizer.needsToBeResized(a,n);if(!this.smask&&!this.mask&&"DeviceRGBA"===this.colorSpace.name){r.kind=s.ImageKind.RGBA_32BPP;const e=r.data=await this.getImageBytes(l*o*4,{internal:t&&d});if(this.jpxPremultiplied){const t=this.preblendMatte;_undoPreblend.call(PDFImage,e,e.length,t?.[0]??0,t?.[1]??0,t?.[2]??0)}return t?d?f.ImageResizer.createImage(r,!1):this.createBitmap(s.ImageKind.RGBA_32BPP,a,n,e):r}if(!e&&!this.smask&&!this.mask){let e;"DeviceGray"===this.colorSpace.name&&1===c?e=s.ImageKind.GRAYSCALE_1BPP:"DeviceRGB"!==this.colorSpace.name||8!==c||this.needsDecode||(e=s.ImageKind.RGB_24BPP);if(e&&a===o&&n===l){const i=await _assertClassBrand(g,this,_getImage).call(this,o,l);if(i)return i;const c=await this.getImageBytes(l*u,{internal:t&&d});if(t)return d?f.ImageResizer.createImage({data:c,kind:e,width:a,height:n,interpolate:this.interpolate},this.needsDecode):this.createBitmap(e,o,l,c);r.kind=e;r.data=c;if(this.needsDecode){(0,s.assert)(e===s.ImageKind.GRAYSCALE_1BPP,"PDFImage.createImageData: The image must be grayscale.");const t=r.data;for(let e=0,a=t.length;e<a;e++)t[e]^=255}return r}if(this.image instanceof h.JpegStream&&!this.needsDecode){let e=!1;switch(this.colorSpace.name){case"DeviceGray":case"DeviceRGB":case"DeviceCMYK":e=!0}if(e){if(t){const e=await _assertClassBrand(g,this,_getImage).call(this,a,n);if(e)return e}let e=l*u;if(t&&!d){switch(this.colorSpace.name){case"DeviceGray":e*=4;break;case"DeviceRGB":e=e/3*4}const t=await this.getImageBytes(e,{drawWidth:a,drawHeight:n,forceRGBA:!0,internal:!0});return this.createBitmap(s.ImageKind.RGBA_32BPP,a,n,t)}"DeviceGray"===this.colorSpace.name&&(e*=3);r.kind=s.ImageKind.RGB_24BPP;r.data=await this.getImageBytes(e,{drawWidth:a,drawHeight:n,forceRGB:!0,internal:d});return d?f.ImageResizer.createImage(r):r}}}if(d&&!Array.isArray(this.mask)){const e=f.ImageResizer.getReducePower(a,n),t=Math.max(1,a>>e),r=Math.max(1,n>>e);if(!f.ImageResizer.needsToBeResized(t,r)){const e=new Uint8ClampedArray(t*r*4);await this._fillDownscaledRgba(e,t,r);return this.createBitmap(s.ImageKind.RGBA_32BPP,t,r,e)}}const m=await this.getImageBytes(l*u,{internal:!0}),b=0|m.length/u*n/l,w=this.getComponents(m);let j,y,v,k,q,S;if(t&&!d){v=new OffscreenCanvas(a,n);k=v.getContext("2d");q=k.createImageData(a,n);S=q.data}r.kind=s.ImageKind.RGBA_32BPP;if(e||this.smask||this.mask){t&&!d||(S=new Uint8ClampedArray(a*n*4));j=1;y=!0;await this.fillOpacity(S,a,n,b,w)}else{if(!t||d){r.kind=s.ImageKind.RGB_24BPP;S=new Uint8ClampedArray(a*n*3);j=0}else{new Uint32Array(S.buffer).fill(s.FeatureTest.isLittleEndian?4278190080:255);j=1}y=!1}this.needsDecode&&this.decodeBuffer(w);this.colorSpace.fillRgb(S,o,l,a,n,b,c,w,j);y&&this.undoPreblend(S,a,b);if(t&&!d){k.putImageData(q,0,0);return{data:null,width:a,height:n,bitmap:v.transferToImageBitmap(),interpolate:this.interpolate}}r.data=S;return d?f.ImageResizer.createImage(r):r}async fillGrayBuffer(e,{destWidth:t,destHeight:a,invertOutput:n,maxRows:r,offset:i=0,stride:o=1}={}){const l=this.numComps;if(1!==l)throw new s.FormatError(`Reading gray scale from a color image: ${l}`);const c=this.width,f=this.height,h=this.bpc,u=c*l*h+7>>3,d=await this.getImageBytes(f*u,{internal:!0}),m=this.getComponents(d),g=t??c,b=a??f,w=g!==c||b!==f,j=void 0===r?b:Math.min(b,r);let y=c,v=0,k=null;if(w){y=g;v=f/b;const e=c/g;k=new Uint32Array(g);for(let t=0;t<g;t++)k[t]=Math.floor(t*e)}const q=n?255:0;if(1===h){if(k){const t=k;let a=i;if(this.needsDecode)for(let n=0;n<j;n++){const s=Math.floor(n*v)*c;for(let n=0;n<y;n++){e[a]=m[s+t[n]]-1&255^q;a+=o}}else for(let n=0;n<j;n++){const s=Math.floor(n*v)*c;for(let n=0;n<y;n++){e[a]=255&-m[s+t[n]]^q;a+=o}}}else{const t=y*j;if(this.needsDecode)for(let a=0;a<t;++a)e[a*o+i]=m[a]-1&255^q;else for(let a=0;a<t;++a)e[a*o+i]=255&-m[a]^q}return}this.needsDecode&&this.decodeBuffer(m);const S=255/((1<<h)-1);if(k){const t=k;let a=i;for(let n=0;n<j;n++){const s=Math.floor(n*v)*c;for(let n=0;n<y;n++){e[a]=S*m[s+t[n]]^q;a+=o}}}else{const t=y*j;for(let a=0;a<t;++a)e[a*o+i]=S*m[a]^q}}async _fillDownscaledRgba(e,t,a){const{width:n,height:s,numComps:r,bpc:i,colorSpace:o}=this,l=this.drawWidth,c=this.drawHeight,f=n*r*i+7>>3,h=await this.getImageBytes(s*f,{internal:!0}),u=Math.min(a,h.length/f*a/s|0),d=this.getComponents(h);this.needsDecode&&this.decodeBuffer(d);if(!this.smask&&!this.mask&&1===r&&i<=8){_assertClassBrand(g,this,_fillDownscaledColorMapImage).call(this,e,d,t,a,u);return}const m=this.smask||this.mask;let b=null,w=0,j=0;if(m){({width:w,height:j}=m);b=new Uint8ClampedArray(w*j);await m.fillGrayBuffer(b,{invertOutput:!this.smask})}const y=this.smask?.matte,v=y?o.getRgb(y,0):null,k=new Uint32Array(l),q=new Uint32Array(b?l:0);for(let e=0;e<l;e++)k[e]=3*Math.floor(e*n/l);for(let e=0,t=q.length;e<t;e++)q[e]=Math.floor(e*w/l);const S=new Uint32Array(t+1);for(let e=0;e<=t;e++)S[e]=Math.floor(e*l/t);const _=n*r,C=Math.min(s,Math.ceil(2**20/n)),F=new Uint8ClampedArray(C*n*3);let x=0,T=0;const O=new Float64Array(4*l);let M=0;for(let r=0;r<u;r++){const l=Math.floor(r*c/a),f=Math.floor((r+1)*c/a);O.fill(0);for(let e=l;e<f;e++){const t=Math.floor(e*s/c);if(t>=T){x=t;T=Math.min(t+C,s);const e=T-x;o.fillRgb(F,n,e,n,e,e,i,d.subarray(x*_,T*_),0)}const a=F.subarray((t-x)*n*3);if(!b){sumOpaqueRow(O,a,k);continue}const r=Math.floor(e*j/c)*w;v?sumPreblendedRow(O,a,k,b,r,q,v):sumTransparentRow(O,a,k,b,r,q)}for(let a=0;a<t;a++,M+=4){const t=S[a],n=S[a+1];let s=0,r=0,i=0,o=0;for(let e=4*t,a=4*n;e<a;e+=4){s+=O[e];r+=O[e+1];i+=O[e+2];o+=O[e+3]}const c=(f-l)*(n-t);if(b){if(o>0){e[M]=s/o;e[M+1]=r/o;e[M+2]=i/o;e[M+3]=o/c}}else{e[M]=s/c;e[M+1]=r/c;e[M+2]=i/c;e[M+3]=255}}}}createBitmap(e,t,a,n){const i=new OffscreenCanvas(t,a),o=i.getContext("2d");let l;if(e===s.ImageKind.RGBA_32BPP)l=new ImageData(n,t,a);else{l=o.createImageData(t,a);(0,r.convertToRGBA)({kind:e,src:n,dest:new Uint32Array(l.data.buffer),width:t,height:a,inverseDecode:this.needsDecode})}o.putImageData(l,0,0);return{data:null,width:t,height:a,bitmap:i.transferToImageBitmap(),interpolate:this.interpolate}}async getImageBytes(e,{drawWidth:t,drawHeight:a,forceRGBA:n=!1,forceRGB:r=!1,internal:i=!1}){this.image.reset();this.image.drawWidth=t||this.width;this.image.drawHeight=a||this.height;this.image.forceRGBA=!!n;this.image.forceRGB=!!r;const o=await this.image.getImageData(e,this.jpxDecoderOptions);if(i||this.image instanceof c.DecodeStream)return o;(0,s.assert)(o instanceof Uint8Array,'PDFImage.getImageBytes: Unsupported "imageBytes" type.');return new Uint8Array(o)}}n=PDFImage;async function _initialize({xref:e,res:t,image:a,isInline:r=!1,smask:c=null,mask:h=null,isMask:d=!1,pdfFunctionFactory:b,globalColorSpaceCache:w,localColorSpaceCache:j}){this.image=a;const y=a.dict,v=y.get("F","Filter");let k;if(v instanceof m.Name)k=v.name;else if(Array.isArray(v)){const t=e.fetchIfRef(v.at(-1));t instanceof m.Name&&(k=t.name)}switch(k){case"JPXDecode":({width:a.width,height:a.height,componentsCount:a.numComps,bitsPerComponent:a.bitsPerComponent}=u.JpxImage.parseImageProperties(a.stream));a.stream.reset();const e=f.ImageResizer.getReducePowerForJPX(a.width,a.height,a.numComps);this.jpxDecoderOptions={numComponents:0,isIndexedColormap:!1,smaskInData:y.get("SMaskInData")>=1,reducePower:e};if(e){const t=2**e;a.width=Math.ceil(a.width/t);a.height=Math.ceil(a.height/t)}break;case"JBIG2Decode":a.bitsPerComponent=1;a.numComps=1}let q=y.get("W","Width"),S=y.get("H","Height");if(Number.isInteger(a.width)&&a.width>0&&Number.isInteger(a.height)&&a.height>0&&(a.width!==q||a.height!==S)){(0,s.warn)("PDFImage - using the Width/Height of the image data, rather than the image dictionary.");q=a.width;S=a.height}else{const e="number"==typeof q&&q>0,t="number"==typeof S&&S>0;if(!e||!t){if(!a.fallbackDims)throw new s.FormatError(`Invalid image width: ${q} or height: ${S}`);(0,s.warn)("PDFImage - using the Width/Height of the parent image, for SMask/Mask data.");e||(q=a.fallbackDims.width);t||(S=a.fallbackDims.height)}}this.width=q;this.height=S;this.interpolate=y.get("I","Interpolate");this.imageMask=y.get("IM","ImageMask")||!1;this.matte=y.get("Matte")||!1;let _=a.bitsPerComponent;if(!_){_=y.get("BPC","BitsPerComponent");if(!_){if(!this.imageMask)throw new s.FormatError(`Bits per component missing in image: ${this.imageMask}`);_=1}}this.bpc=_;if(this.imageMask)this.numComps=1;else{let n=y.getRaw("CS")||y.getRaw("ColorSpace");const s=!!n;if(this.jpxDecoderOptions?.smaskInData&&2===y.get("SMaskInData")){this.jpxPremultiplied=!0;if(this.matte){const a=await l.ColorSpaceUtils.parse({cs:s?n:m.Name.get("DeviceRGB"),xref:e,resources:r?t:null,pdfFunctionFactory:b,globalColorSpaceCache:w,localColorSpaceCache:j});this.preblendMatte=a.getRgb(this.matte,0)}}if(s)this.jpxDecoderOptions?.smaskInData&&(n=m.Name.get("DeviceRGBA"));else if(this.jpxDecoderOptions)n=m.Name.get("DeviceRGBA");else switch(a.numComps){case 1:n=m.Name.get("DeviceGray");break;case 3:n=m.Name.get("DeviceRGB");break;case 4:n=m.Name.get("DeviceCMYK");break;default:throw new Error(`Images with ${a.numComps} color components not supported.`)}this.colorSpace=await l.ColorSpaceUtils.parse({cs:n,xref:e,resources:r?t:null,pdfFunctionFactory:b,globalColorSpaceCache:w,localColorSpaceCache:j});this.numComps=this.colorSpace.numComps;if(this.jpxDecoderOptions){this.jpxDecoderOptions.numComponents="DeviceRGBA"===this.colorSpace.name?0:this.numComps;this.jpxDecoderOptions.isIndexedColormap="Indexed"===this.colorSpace.name}}this.decode=y.getArray("D","Decode");this.needsDecode=!1;if(this.decode&&(this.colorSpace&&!this.colorSpace.isDefaultDecode(this.decode,_)||d&&!o.ColorSpace.isDefaultDecode(this.decode,1))){this.needsDecode=!0;const e=(1<<_)-1;this.decodeCoefficients=[];this.decodeAddends=[];const t="Indexed"===this.colorSpace?.name;for(let a=0,n=0;a<this.decode.length;a+=2,++n){const s=this.decode[a],r=this.decode[a+1];this.decodeCoefficients[n]=t?(r-s)/e:r-s;this.decodeAddends[n]=t?s:e*s}}if(c){var C;c.fallbackDims??={width:q,height:S};this.smask=await _assertClassBrand(g,C=new n,_initialize).call(C,{xref:e,res:t,image:c,isInline:r,pdfFunctionFactory:b,globalColorSpaceCache:w,localColorSpaceCache:j})}else if(h)if(h instanceof i.BaseStream){if(h.dict.get("IM","ImageMask")){var F;h.fallbackDims??={width:q,height:S};this.mask=await _assertClassBrand(g,F=new n,_initialize).call(F,{xref:e,res:t,image:h,isInline:r,isMask:!0,pdfFunctionFactory:b,globalColorSpaceCache:w,localColorSpaceCache:j})}else(0,s.warn)("Ignoring /Mask in image without /ImageMask.")}else this.mask=h;return this}function _undoPreblend(e,t,a,n,s){for(let r=0;r<t;r+=4){const t=e[r+3];if(0===t){e[r]=255;e[r+1]=255;e[r+2]=255;continue}const i=255/t;e[r]=(e[r]-a)*i+a;e[r+1]=(e[r+1]-n)*i+n;e[r+2]=(e[r+2]-s)*i+s}}function _fillDownscaledColorMapImage(e,t,a,n,s){const{width:r,height:i,bpc:o,colorSpace:l}=this,c=l.getColorMap(o),f=new Uint32Array(a+1);for(let e=0;e<=a;e++)f[e]=Math.floor(e*r/a);let h=0;for(let o=0;o<s;o++){const s=Math.floor(o*i/n),l=Math.floor((o+1)*i/n);for(let n=0;n<a;n++,h+=4){const a=f[n],i=f[n+1];let o=0,u=0,d=0;for(let e=s;e<l;e++){const n=e*r;for(let e=n+a,s=n+i;e<s;e++){const a=3*t[e];o+=c[a];u+=c[a+1];d+=c[a+2]}}const m=(l-s)*(i-a);e[h]=o/m;e[h+1]=u/m;e[h+2]=d/m;e[h+3]=255}}}async function _getImage(e,t){const a=await this.image.getTransferableImage(e,t);return a?{data:null,width:a.displayWidth??e,height:a.displayHeight??t,bitmap:a,interpolate:this.interpolate}:null}},2320(e,t,a){a.d(t,{ImageResizer:()=>ImageResizer});var n=a(1723),s=a(8609),r=a(5399);function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}class ImageResizer{constructor(e,t){this._imgData=e;this._isMask=t}static get canUseImageDecoder(){return(0,n.shadow)(this,"canUseImageDecoder",_assertClassBrand(ImageResizer,this,o)._?ImageDecoder.isTypeSupported("image/bmp"):Promise.resolve(!1))}static needsToBeResized(e,t){if(e<=_assertClassBrand(ImageResizer,this,i)._&&t<=_assertClassBrand(ImageResizer,this,i)._)return!1;const{MAX_DIM:a}=this;if(e>a||t>a)return!0;const n=e*t;if(this._hasMaxArea)return n>this.MAX_AREA;if(n<_assertClassBrand(ImageResizer,this,i)._**2)return!1;if(this._areGoodDims(e,t)){i._=_assertClassBrand(ImageResizer,this,Math.max(_assertClassBrand(ImageResizer,this,i)._,Math.floor(Math.sqrt(e*t))));return!1}i._=_assertClassBrand(ImageResizer,this,this._guessMax(_assertClassBrand(ImageResizer,this,i)._,a,128,0));return n>(this.MAX_AREA=_assertClassBrand(ImageResizer,this,i)._**2)}static getReducePower(e,t,a=1/0){if(!Number.isInteger(e)||e<=0||!Number.isInteger(t)||t<=0)return 0;const n=e*t;if(!this.needsToBeResized(e,t))return n>a?Math.ceil(Math.log2(n/a)):0;const{MAX_DIM:s,MAX_AREA:r}=this,i=Math.max(e/s,t/s,Math.sqrt(n/Math.min(a,r)));return Math.max(0,Math.ceil(Math.log2(i)))}static getReducePowerForJPX(e,t,a){return this.getReducePower(e,t,2**30/(4*a))}static get MAX_DIM(){return(0,n.shadow)(this,"MAX_DIM",this._guessMax(2048,32768,0,1))}static get MAX_AREA(){this._hasMaxArea=!0;return(0,n.shadow)(this,"MAX_AREA",this._guessMax(_assertClassBrand(ImageResizer,this,i)._,this.MAX_DIM,128,0)**2)}static set MAX_AREA(e){if(e>=0){this._hasMaxArea=!0;(0,n.shadow)(this,"MAX_AREA",e)}}static setOptions({canvasMaxAreaInBytes:e=-1,isImageDecoderSupported:t=!1}){this._hasMaxArea||(this.MAX_AREA=e>>2);o._=_assertClassBrand(ImageResizer,this,t)}static _areGoodDims(e,t){try{const a=new OffscreenCanvas(e,t),n=a.getContext("2d");n.fillRect(0,0,1,1);const s=n.getImageData(0,0,1,1).data[3];a.width=a.height=1;return 0!==s}catch{return!1}}static _guessMax(e,t,a,n){for(;e+a+1<t;){const a=Math.floor((e+t)/2),s=n||a;this._areGoodDims(a,s)?e=a:t=a}return e}static async createImage(e,t=!1){return new ImageResizer(e,t)._createImage()}async _createImage(){const{_imgData:e}=this,{width:t,height:a}=e;if(t*a*4>r.MAX_INT_32){const e=this._rescaleImageData();if(e)return e}const s=this._encodeBMP();let i,o;if(await ImageResizer.canUseImageDecoder){i=new ImageDecoder({data:s,type:"image/bmp",preferAnimation:!1,transfer:[s.buffer]});o=i.decode().catch(e=>{(0,n.warn)(`BMP image decoding failed: ${e}`);return createImageBitmap(new Blob([this._encodeBMP().buffer],{type:"image/bmp"}))}).finally(()=>{i.close()})}else o=createImageBitmap(new Blob([s.buffer],{type:"image/bmp"}));const{MAX_AREA:l,MAX_DIM:c}=ImageResizer,f=Math.max(t/c,a/c,Math.sqrt(t*a/l)),h=Math.max(f,2),u=Math.round(10*(f+1.25))/10/h,d=Math.floor(Math.log2(u)),m=new Array(d+2).fill(2);m[0]=h;m.splice(-1,1,u/(1<<d));let g=t,b=a;const w=await o;let j=w.image||w;for(const e of m){const t=g,a=b;g=Math.floor(g/e);b=Math.floor(b/e);const n=new OffscreenCanvas(g,b);n.getContext("2d").drawImage(j,0,0,t,a,0,0,g,b);j.close();j=n.transferToImageBitmap()}e.data=null;e.bitmap=j;e.width=g;e.height=b;return e}_rescaleImageData(e=r.MAX_INT_32){const{_imgData:t}=this,{data:a,width:i,height:o,kind:l}=t,c=i*o*4,f=Math.ceil(Math.log2(c/e)),h=i>>f,u=o>>f;let d,m=o;try{d=new Uint8Array(c)}catch{let e=Math.floor(Math.log2(c+1));for(;;)try{d=new Uint8Array(2**e-1);break}catch{e-=1}m=Math.floor((2**e-1)/(4*i));if(0===m)return null;m>=4&&(m-=m%4);const t=i*m*4;t<d.length&&(d=new Uint8Array(t))}const g=new Uint32Array(d.buffer),b=new Uint32Array(h*u);let w=0,j=0;const y=u<<f;let v=0;for(let e=0;e<o;e+=m){const t=Math.min(m,o-e);({srcPos:w}=(0,s.convertToRGBA)({kind:l,src:a,dest:g,width:i,height:t,inverseDecode:this._isMask,srcPos:w}));for(const a=Math.min(e+t,y);v<a;v+=1<<f){const t=g.subarray((v-e)*i);for(let e=0;e<h;e++)b[j++]=t[e<<f]}}if(ImageResizer.needsToBeResized(h,u)){t.data=b;t.width=h;t.height=u;t.kind=n.ImageKind.RGBA_32BPP;return null}const k=new OffscreenCanvas(h,u);k.getContext("2d",{willReadFrequently:!0}).putImageData(new ImageData(new Uint8ClampedArray(b.buffer),h,u),0,0);t.data=null;t.bitmap=k.transferToImageBitmap();t.width=h;t.height=u;return t}_encodeBMP(){const{width:e,height:t,kind:a}=this._imgData;let s,r=this._imgData.data,i=new Uint8Array(0),o=i,l=0;switch(a){case n.ImageKind.GRAYSCALE_1BPP:{s=1;i=new Uint8Array(this._isMask?[255,255,255,255,0,0,0,0]:[0,0,0,0,255,255,255,255]);const a=e+7>>3,n=a+3&-4;if(a!==n){const e=new Uint8Array(n*t);let s=0;for(let i=0,o=t*a;i<o;i+=a,s+=n)e.set(r.subarray(i,i+a),s);r=e}break}case n.ImageKind.RGB_24BPP:s=24;if(3&e){const a=3*e,n=a+3&-4,s=n-a,i=new Uint8Array(n*t);let o=0;for(let e=0,n=t*a;e<n;e+=a){const t=r.subarray(e,e+a);for(let e=0;e<a;e+=3){i[o++]=t[e+2];i[o++]=t[e+1];i[o++]=t[e]}o+=s}r=i}else for(let e=0,t=r.length;e<t;e+=3){const t=r[e];r[e]=r[e+2];r[e+2]=t}break;case n.ImageKind.RGBA_32BPP:s=32;l=3;o=new Uint8Array(68);const a=new DataView(o.buffer);if(n.FeatureTest.isLittleEndian){a.setUint32(0,255,!0);a.setUint32(4,65280,!0);a.setUint32(8,16711680,!0);a.setUint32(12,4278190080,!0)}else{a.setUint32(0,4278190080,!0);a.setUint32(4,16711680,!0);a.setUint32(8,65280,!0);a.setUint32(12,255,!0)}break;default:throw new Error("invalid format")}let c=0;const f=40+o.length,h=14+f+i.length+r.length,u=new Uint8Array(h),d=new DataView(u.buffer);d.setUint16(c,19778,!0);c+=2;d.setUint32(c,h,!0);c+=4;d.setUint32(c,0,!0);c+=4;d.setUint32(c,14+f+i.length,!0);c+=4;d.setUint32(c,f,!0);c+=4;d.setInt32(c,e,!0);c+=4;d.setInt32(c,-t,!0);c+=4;d.setUint16(c,1,!0);c+=2;d.setUint16(c,s,!0);c+=2;d.setUint32(c,l,!0);c+=4;d.setUint32(c,0,!0);c+=4;d.setInt32(c,0,!0);c+=4;d.setInt32(c,0,!0);c+=4;d.setUint32(c,i.length/4,!0);c+=4;d.setUint32(c,0,!0);c+=4;u.set(o,c);c+=o.length;u.set(i,c);c+=i.length;u.set(r,c);return u}}var i={_:2048},o={_:n.FeatureTest.isImageDecoderSupported}},4907(e,t,a){a.d(t,{GlobalColorSpaceCache:()=>GlobalColorSpaceCache,GlobalImageCache:()=>GlobalImageCache,LocalColorSpaceCache:()=>LocalColorSpaceCache,LocalFunctionCache:()=>LocalFunctionCache,LocalGStateCache:()=>LocalGStateCache,LocalImageCache:()=>LocalImageCache,LocalTilingPatternCache:()=>LocalTilingPatternCache,RegionalImageCache:()=>RegionalImageCache});var n,s=a(1723),r=a(5632);function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _classPrivateGetter(e,t,a){return a(_assertClassBrand(e,t))}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}class BaseLocalCache{constructor(e){this._onlyRefs=!0===e?.onlyRefs;if(!this._onlyRefs){this._nameRefMap=new Map;this._imageMap=new Map}this._imageCache=new r.RefMap}getByName(e){this._onlyRefs&&(0,s.unreachable)("Should not call `getByName` method.");const 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,s.unreachable)("Abstract method `set` called.")}}class LocalImageCache extends BaseLocalCache{set(e,t=null,a){if("string"!=typeof e)throw new Error('LocalImageCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;this._nameRefMap.set(e,t);this._imageCache.put(t,a)}else this._imageMap.has(e)||this._imageMap.set(e,a)}}class LocalColorSpaceCache extends BaseLocalCache{set(e=null,t=null,a){if("string"!=typeof e&&!t)throw new Error('LocalColorSpaceCache.set - expected "name" and/or "ref" argument.');if(t){if(this._imageCache.has(t))return;null!==e&&this._nameRefMap.set(e,t);this._imageCache.put(t,a)}else this._imageMap.has(e)||this._imageMap.set(e,a)}}class LocalFunctionCache extends BaseLocalCache{constructor(e){super({onlyRefs:!0})}set(e=null,t,a){if(!t)throw new Error('LocalFunctionCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,a)}}class LocalGStateCache extends BaseLocalCache{set(e,t=null,a){if("string"!=typeof e)throw new Error('LocalGStateCache.set - expected "name" argument.');if(t){if(this._imageCache.has(t))return;this._nameRefMap.set(e,t);this._imageCache.put(t,a)}else this._imageMap.has(e)||this._imageMap.set(e,a)}}class LocalTilingPatternCache extends BaseLocalCache{constructor(e){super({onlyRefs:!0})}set(e=null,t,a){if(!t)throw new Error('LocalTilingPatternCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,a)}}class RegionalImageCache extends BaseLocalCache{constructor(e){super({onlyRefs:!0})}set(e=null,t,a){if(!t)throw new Error('RegionalImageCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,a)}}class GlobalColorSpaceCache extends BaseLocalCache{constructor(e){super({onlyRefs:!0})}set(e=null,t,a){if(!t)throw new Error('GlobalColorSpaceCache.set - expected "ref" argument.');this._imageCache.has(t)||this._imageCache.put(t,a)}clear(){this._imageCache.clear()}}var i=new WeakMap,o=new WeakMap,l=new WeakSet;class GlobalImageCache{constructor(){!function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}(this,l);_classPrivateFieldInitSpec(this,i,new r.RefSet);_classPrivateFieldInitSpec(this,o,new r.RefMap);this._refCache=new r.RefMap;this._imageCache=new r.RefMap}shouldCache(e,t){const a=this._refCache.getOrPutComputed(e,s.makeSet);a.add(t);return!(a.size<GlobalImageCache.NUM_PAGES_THRESHOLD)&&!(!this._imageCache.has(e)&&_classPrivateGetter(l,this,_get_cacheLimitReached))}addDecodeFailed(e){_classPrivateFieldGet(i,this).put(e)}hasDecodeFailed(e){return _classPrivateFieldGet(i,this).has(e)}startDecodedImage(e,t){if(s.FeatureTest.isVideoFrameSupported&&s.FeatureTest.platform.isFirefox){_classPrivateFieldGet(o,this).get(e)?.imgData?.bitmap.close();_classPrivateFieldGet(o,this).put(e,{pageProxyId:t,imgData:null})}}setDecodedImage(e,t){const a=_classPrivateFieldGet(o,this).get(e);if(!a||a.imgData)return;const{bitmap:n}=t;try{n instanceof ImageBitmap?a.imgData={...t,bitmap:new VideoFrame(n,{timestamp:0})}:n instanceof VideoFrame&&(a.imgData={...t,bitmap:n.clone()})}catch(e){(0,s.warn)(`GlobalImageCache.setDecodedImage - "${e}".`)}a.imgData||_classPrivateFieldGet(o,this).remove(e)}takeDecodedImage(e){const t=_classPrivateFieldGet(o,this).get(e)?.imgData;if(!t)return null;_classPrivateFieldGet(o,this).remove(e);return t}cleanupPage(e){for(const[t,a]of _classPrivateFieldGet(o,this).items())if(a.pageProxyId===e){a.imgData?.bitmap.close();_classPrivateFieldGet(o,this).remove(t)}}addByteSize(e,t){const a=this._imageCache.get(e);a&&(a.byteSize||(a.byteSize=t))}getData(e,t){const a=this._refCache.get(e);if(!a||a.size<GlobalImageCache.NUM_PAGES_THRESHOLD)return null;const n=this._imageCache.get(e);if(!n)return null;a.add(t);return n}setData(e,t){if(!this._refCache.has(e))throw new Error('GlobalImageCache.setData - expected "shouldCache" to have been called.');this._imageCache.has(e)||(_classPrivateGetter(l,this,_get_cacheLimitReached)?(0,s.warn)("GlobalImageCache.setData - cache limit reached."):this._imageCache.put(e,t))}clear(e=!1){if(!e){_classPrivateFieldGet(i,this).clear();this._refCache.clear()}this._imageCache.clear();for(const{imgData:e}of _classPrivateFieldGet(o,this).values())e?.bitmap.close();_classPrivateFieldGet(o,this).clear()}}n=GlobalImageCache;function _get_byteSize(e){let t=0;for(const a of e._imageCache)t+=a.byteSize;return t}function _get_cacheLimitReached(e){return e._imageCache.size>=n.MIN_IMAGES_TO_CACHE&&_classPrivateGetter(l,e,_get_byteSize)>=n.MAX_BYTE_SIZE}_defineProperty(GlobalImageCache,"NUM_PAGES_THRESHOLD",2);_defineProperty(GlobalImageCache,"MIN_IMAGES_TO_CACHE",10);_defineProperty(GlobalImageCache,"MAX_BYTE_SIZE",5e7)},5495(e,t,a){a.d(t,{JpegStream:()=>JpegStream});var n=a(1723),s=a(4563),r=a(5632),i=a(2478),o=a(2320);function _classPrivateMethodInitSpec(e,t){(function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var l=new WeakSet;class JpegStream extends s.DecodeStream{constructor(e,t,a){super(t);_classPrivateMethodInitSpec(this,l);this.stream=e;this.dict=e.dict;this.maybeLength=t;this.params=a}static get canUseImageDecoder(){return(0,n.shadow)(this,"canUseImageDecoder",_assertClassBrand(JpegStream,this,c)._?ImageDecoder.isTypeSupported("image/jpeg"):Promise.resolve(!1))}static setOptions({isImageDecoderSupported:e=!1}){c._=_assertClassBrand(JpegStream,this,e)}get bytes(){return(0,n.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}get isAsyncDecoder(){return!0}ensureBuffer(e){}get jpegOptions(){const e={colorTransform:void 0};if(this.params instanceof r.Dict){const t=this.params.get("ColorTransform");Number.isInteger(t)&&(e.colorTransform=t)}return(0,n.shadow)(this,"jpegOptions",e)}async getImageData(e,t){const a=await super.getImageData(e,t);return this.canAsyncDecodeImageFromBuffer?a:this.getBytes(e)}async decodeImage(e){if(this.eof)return this.buffer;e=_assertClassBrand(l,this,_skipUselessBytes).call(this,e||this.bytes);const{JpegImage:t}=await Promise.resolve().then(()=>a(1011)),n=new t(this.jpegOptions);n.parse(e);const s=n.getData({width:this.drawWidth,height:this.drawHeight,forceRGBA:this.forceRGBA,forceRGB:this.forceRGB});this.buffer=s;this.bufferLength=s.length;this.eof=!0;return this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}async getTransferableImage(e,t){if(!await JpegStream.canUseImageDecoder)return null;const a=this.jpegOptions;let s;try{const n=this.canAsyncDecodeImageFromBuffer&&await this.stream.asyncGetBytes()||this.bytes;if(!n)return null;let r=_assertClassBrand(l,this,_skipUselessBytes).call(this,n);const c=(0,i.getJpegImageInfo)(r,a.colorTransform);if(!c)return null;const{width:f,height:h,exifStart:u,exifEnd:d}=c,m=o.ImageResizer.getReducePower(f,h);if((f!==e||h!==t)&&(m||!h))return null;if(u){r=r.slice();r.fill(0,u,d)}const g={data:r,type:"image/jpeg",preferAnimation:!1};if(m){const e=2**m;g.desiredWidth=Math.ceil(f/e);g.desiredHeight=Math.ceil(h/e)}s=new ImageDecoder(g);return(await s.decode()).image}catch(e){(0,n.warn)(`getTransferableImage - failed: "${e}".`);return null}finally{s?.close()}}get isImageStream(){return!0}}function _skipUselessBytes(e){for(let t=0,a=e.length-1;t<a;t++)if(255===e[t]&&216===e[t+1]){t>0&&(e=e.subarray(t));break}return e}var c={_:n.FeatureTest.isImageDecoderSupported}},2478(e,t,a){a.d(t,{JpegError:()=>JpegError,findNextFileMarker:()=>findNextFileMarker,getJpegImageInfo:()=>getJpegImageInfo,readDataBlock:()=>readDataBlock});var n=a(1723);class JpegError extends n.BaseException{constructor(e){super(e,"JpegError")}}function findNextFileMarker(e,t,a,n=a){const s=e.length-1;let r=n<a?n:a;if(a>=s)return null;const i=t.getUint16(a);if(i>=65472&&i<=65534)return{invalid:null,marker:i,offset:a};let o=t.getUint16(r);for(;!(o>=65472&&o<=65534);){if(++r>=s)return null;o=t.getUint16(r)}return{invalid:i.toString(16),marker:o,offset:r}}function readDataBlock(e,t,a){const s=t.getUint16(a);let r=(a+=2)+s-2;const i=findNextFileMarker(e,t,r,a);if(i?.invalid){(0,n.warn)(`readDataBlock - incorrect length, current marker is: ${i.invalid}`);r=i.offset}const o=e.subarray(a,r);return{appData:o,oldOffset:a,newOffset:a+o.length}}function skipData(e,t,a){const n=t.getUint16(a),s=(a+=2)+n-2,r=findNextFileMarker(e,t,s,a);return r?.invalid?r.offset:s}function getJpegImageInfo(e,t=-1){const a=new DataView(e.buffer,e.byteOffset,e.byteLength),n={width:0,height:0,exifStart:0,exifEnd:0};let s=0,r=null,i=a.getUint16(s);s+=2;if(65496!==i)throw new JpegError("SOI not found");i=a.getUint16(s);s+=2;e:for(;65497!==i;){switch(i){case 65505:const{appData:t,oldOffset:o,newOffset:l}=readDataBlock(e,a,s);s=l;if(69===t[0]&&120===t[1]&&105===t[2]&&102===t[3]&&0===t[4]&&0===t[5]){if(n.exifStart)throw new JpegError("Duplicate EXIF-blocks found.");n.exifStart=o+6;n.exifEnd=l}i=a.getUint16(s);s+=2;continue;case 65472:case 65473:case 65474:n.height=a.getUint16(s+3);n.width=a.getUint16(s+5);r=e[s+7];break e;case 65535:255!==e[s]&&s--}s=skipData(e,a,s);i=a.getUint16(s);s+=2}return 4===r||3===r&&0===t?null:n}},1011(e,t,a){a.d(t,{JpegImage:()=>JpegImage});var n=a(1723),s=a(2478),r=a(5719),i=a(3069),o=a(8609);function _classPrivateMethodInitSpec(e,t){(function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}class DNLMarkerError extends n.BaseException{constructor(e,t){super(e,"DNLMarkerError");this.scanLines=t}}class EOIMarkerError extends n.BaseException{constructor(e){super(e,"EOIMarkerError")}}const l=new Uint8Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]),c=4017,f=799,h=3406,u=2276,d=1567,m=3784,g=5793,b=2896;function buildHuffmanTable(e,t){let a,n,s=0,r=16;for(;r>0&&!e[r-1];)r--;const i=[{children:[],index:0}];let o,l=i[0];for(a=0;a<r;a++){for(n=0;n<e[a];n++){l=i.pop();l.children[l.index]=t[s];for(;l.index>0;)l=i.pop();l.index++;i.push(l);for(;i.length<=a;){i.push(o={children:[],index:0});l.children[l.index]=o.children;l=o}s++}if(a+1<r){i.push(o={children:[],index:0});l.children[l.index]=o.children;l=o}}return i[0].children}function getBlockBufferOffset(e,t,a){return 64*((e.blocksPerLine+1)*t+a)}function decodeScan(e,t,a,r,i,o,c,f,h,u,d=!1){const m=r.mcusPerLine,g=r.progressive,b=a;let w=0,j=0;function readBit(){if(j>0){j--;return w>>j&1}w=e[a++];if(255===w){const n=e[a++];if(n){if(220===n&&d){a+=2;const e=t.getUint16(a);a+=2;if(e>0&&e!==r.scanLines)throw new DNLMarkerError("Found DNL marker (0xFFDC) while parsing scan data",e)}else if(217===n){if(d){const e=q*(8===r.precision?8:0);if(e>0&&Math.round(r.scanLines/e)>=5)throw new DNLMarkerError("Found EOI marker (0xFFD9) while parsing scan data, possibly caused by incorrect `scanLines` parameter",e)}throw new EOIMarkerError("Found EOI marker (0xFFD9) while parsing scan data")}throw new s.JpegError(`unexpected marker ${(w<<8|n).toString(16)}`)}}j=7;return w>>>7}function decodeHuffman(e){let t=e;for(;;){t=t[readBit()];switch(typeof t){case"number":return t;case"object":continue}throw new s.JpegError("invalid huffman sequence")}}function receive(e){let t=0;for(;e>0;){t=t<<1|readBit();e--}return t}function receiveAndExtend(e){if(1===e)return 1===readBit()?1:-1;const t=receive(e);return t>=1<<e-1?t:t+(-1<<e)+1}let y=0;let v,k=0;let q=0;function decodeMcu(e,t,a,n,s){const r=a%m;q=(a/m|0)*e.v+n;const i=r*e.h+s;t(e,getBlockBufferOffset(e,q,i))}function decodeBlock(e,t,a){q=a/e.blocksPerLine|0;const n=a%e.blocksPerLine;t(e,getBlockBufferOffset(e,q,n))}const S=i.length;let _,C,F,x,T,O;O=g?0===c?0===h?function decodeDCFirst(e,t){const a=decodeHuffman(e.huffmanTableDC),n=0===a?0:receiveAndExtend(a)<<u;e.blockData[t]=e.pred+=n}:function decodeDCSuccessive(e,t){e.blockData[t]|=readBit()<<u}:0===h?function decodeACFirst(e,t){if(y>0){y--;return}let a=c;const n=f;for(;a<=n;){const n=decodeHuffman(e.huffmanTableAC),s=15&n,r=n>>4;if(0===s){if(r<15){y=receive(r)+(1<<r)-1;break}a+=16;continue}a+=r;const i=l[a];e.blockData[t+i]=receiveAndExtend(s)*(1<<u);a++}}:function decodeACSuccessive(e,t){let a=c;const n=f;let r,i,o=0;for(;a<=n;){const n=t+l[a],c=e.blockData[n]<0?-1:1;switch(k){case 0:i=decodeHuffman(e.huffmanTableAC);r=15&i;o=i>>4;if(0===r)if(o<15){y=receive(o)+(1<<o);k=4}else{o=16;k=1}else{if(1!==r)throw new s.JpegError("invalid ACn encoding");v=receiveAndExtend(r);k=o?2:3}continue;case 1:case 2:if(e.blockData[n])e.blockData[n]+=c*(readBit()<<u);else{o--;0===o&&(k=2===k?3:0)}break;case 3:if(e.blockData[n])e.blockData[n]+=c*(readBit()<<u);else{e.blockData[n]=v<<u;k=0}break;case 4:e.blockData[n]&&(e.blockData[n]+=c*(readBit()<<u))}a++}if(4===k){y--;0===y&&(k=0)}}:function decodeBaseline(e,t){const a=decodeHuffman(e.huffmanTableDC),n=0===a?0:receiveAndExtend(a);e.blockData[t]=e.pred+=n;let s=1;for(;s<64;){const a=decodeHuffman(e.huffmanTableAC),n=15&a,r=a>>4;if(0===n){if(r<15)break;s+=16;continue}s+=r;const i=l[s];e.blockData[t+i]=receiveAndExtend(n);s++}};let M,R=0;const D=1===S?i[0].blocksPerLine*i[0].blocksPerColumn:m*r.mcusPerColumn;let H,N;for(;R<=D;){const r=o?Math.min(D-R,o):D;if(r>0){for(C=0;C<S;C++)i[C].pred=0;y=0;if(1===S){_=i[0];for(T=0;T<r;T++){decodeBlock(_,O,R);R++}}else for(T=0;T<r;T++){for(C=0;C<S;C++){_=i[C];H=_.h;N=_.v;for(F=0;F<N;F++)for(x=0;x<H;x++)decodeMcu(_,O,R,F,x)}R++}}j=0;M=(0,s.findNextFileMarker)(e,t,a);if(!M)break;if(M.invalid){const e=r>0?"unexpected":"excessive";(0,n.warn)(`decodeScan - ${e} MCU data, current marker is: ${M.invalid}`);a=M.offset}if(!(M.marker>=65488&&M.marker<=65495))break;a+=2}return a-b}function quantizeAndInverse(e,t,a){const n=e.quantizationTable,r=e.blockData;let i,o,l,w,j,y,v,k,q,S,_,C,F,x,T,O,M;if(!n)throw new s.JpegError("missing required Quantization Table.");for(let e=0;e<64;e+=8){q=r[t+e];S=r[t+e+1];_=r[t+e+2];C=r[t+e+3];F=r[t+e+4];x=r[t+e+5];T=r[t+e+6];O=r[t+e+7];q*=n[e];if(0!==(S|_|C|F|x|T|O)){S*=n[e+1];_*=n[e+2];C*=n[e+3];F*=n[e+4];x*=n[e+5];T*=n[e+6];O*=n[e+7];i=g*q+128>>8;o=g*F+128>>8;l=_;w=T;j=b*(S-O)+128>>8;k=b*(S+O)+128>>8;y=C<<4;v=x<<4;i=i+o+1>>1;o=i-o;M=l*m+w*d+128>>8;l=l*d-w*m+128>>8;w=M;j=j+v+1>>1;v=j-v;k=k+y+1>>1;y=k-y;i=i+w+1>>1;w=i-w;o=o+l+1>>1;l=o-l;M=j*u+k*h+2048>>12;j=j*h-k*u+2048>>12;k=M;M=y*f+v*c+2048>>12;y=y*c-v*f+2048>>12;v=M;a[e]=i+k;a[e+7]=i-k;a[e+1]=o+v;a[e+6]=o-v;a[e+2]=l+y;a[e+5]=l-y;a[e+3]=w+j;a[e+4]=w-j}else{M=g*q+512>>10;a[e]=M;a[e+1]=M;a[e+2]=M;a[e+3]=M;a[e+4]=M;a[e+5]=M;a[e+6]=M;a[e+7]=M}}for(let e=0;e<8;++e){q=a[e];S=a[e+8];_=a[e+16];C=a[e+24];F=a[e+32];x=a[e+40];T=a[e+48];O=a[e+56];if(0!==(S|_|C|F|x|T|O)){i=g*q+2048>>12;o=g*F+2048>>12;l=_;w=T;j=b*(S-O)+2048>>12;k=b*(S+O)+2048>>12;y=C;v=x;i=4112+(i+o+1>>1);o=i-o;M=l*m+w*d+2048>>12;l=l*d-w*m+2048>>12;w=M;j=j+v+1>>1;v=j-v;k=k+y+1>>1;y=k-y;i=i+w+1>>1;w=i-w;o=o+l+1>>1;l=o-l;M=j*u+k*h+2048>>12;j=j*h-k*u+2048>>12;k=M;M=y*f+v*c+2048>>12;y=y*c-v*f+2048>>12;v=M;q=i+k;O=i-k;S=o+v;T=o-v;_=l+y;x=l-y;C=w+j;F=w-j;q<16?q=0:q>=4080?q=255:q>>=4;S<16?S=0:S>=4080?S=255:S>>=4;_<16?_=0:_>=4080?_=255:_>>=4;C<16?C=0:C>=4080?C=255:C>>=4;F<16?F=0:F>=4080?F=255:F>>=4;x<16?x=0:x>=4080?x=255:x>>=4;T<16?T=0:T>=4080?T=255:T>>=4;O<16?O=0:O>=4080?O=255:O>>=4;r[t+e]=q;r[t+e+8]=S;r[t+e+16]=_;r[t+e+24]=C;r[t+e+32]=F;r[t+e+40]=x;r[t+e+48]=T;r[t+e+56]=O}else{M=g*q+8192>>14;M=M<-2040?0:M>=2024?255:M+2056>>4;r[t+e]=M;r[t+e+8]=M;r[t+e+16]=M;r[t+e+24]=M;r[t+e+32]=M;r[t+e+40]=M;r[t+e+48]=M;r[t+e+56]=M}}}function buildComponentData(e,t){const a=t.blocksPerLine,n=t.blocksPerColumn,s=new Int16Array(64);for(let e=0;e<n;e++)for(let n=0;n<a;n++){quantizeAndInverse(t,getBlockBufferOffset(t,e,n),s)}return t.blockData}function prepareComponents(e){const t=Math.ceil(e.samplesPerLine/8/e.maxH),a=Math.ceil(e.scanLines/8/e.maxV);for(const n of e.components){const s=Math.ceil(Math.ceil(e.samplesPerLine/8)*n.h/e.maxH),r=Math.ceil(Math.ceil(e.scanLines/8)*n.v/e.maxV),i=t*n.h,o=64*(a*n.v)*(i+1);n.blockData=new Int16Array(o);n.blocksPerLine=s;n.blocksPerColumn=r}e.mcusPerLine=t;e.mcusPerColumn=a}var w=new WeakSet;class JpegImage{constructor(e){_classPrivateMethodInitSpec(this,w);this._colorTransform=e?.colorTransform??-1}parse(e,{dnlScanLines:t=null}={}){const a=new DataView(e.buffer,e.byteOffset,e.byteLength),r=e.length-1;let i,o,c=0,f=null,h=null,u=0;const d=[],m=[],g=[];let b=a.getUint16(c);c+=2;if(65496!==b)throw new s.JpegError("SOI not found");b=a.getUint16(c);c+=2;e:for(;65497!==b;){let w,j,y;switch(b){case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:const{appData:v,newOffset:k}=(0,s.readDataBlock)(e,a,c);c=k;65504===b&&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===b&&65===v[0]&&100===v[1]&&111===v[2]&&98===v[3]&&101===v[4]&&(h={version:v[5]<<8|v[6],flags0:v[7]<<8|v[8],flags1:v[9]<<8|v[10],transformCode:v[11]});break;case 65499:const q=a.getUint16(c);c+=2;const S=q+c-2;let _;for(;c<S;){const t=e[c++],n=new Uint16Array(64);if(t>>4){if(t>>4!=1)throw new s.JpegError("DQT - invalid table spec");for(j=0;j<64;j++){_=l[j];n[_]=a.getUint16(c);c+=2}}else for(j=0;j<64;j++){_=l[j];n[_]=e[c++]}d[15&t]=n}break;case 65472:case 65473:case 65474:if(i)throw new s.JpegError("Only single frame JPEGs supported");c+=2;i={};i.extended=65473===b;i.progressive=65474===b;i.precision=e[c++];const C=a.getUint16(c);c+=2;i.scanLines=t||C;i.samplesPerLine=a.getUint16(c);c+=2;i.components=[];i.componentIds={};const F=e[c++];let x=0,T=0;for(w=0;w<F;w++){const t=e[c],a=e[c+1]>>4,n=15&e[c+1];x<a&&(x=a);T<n&&(T=n);const s=e[c+2];y=i.components.push({h:a,v:n,quantizationId:s,quantizationTable:null});i.componentIds[t]=y-1;c+=3}i.maxH=x;i.maxV=T;prepareComponents(i);break;case 65476:const O=a.getUint16(c);c+=2;for(w=2;w<O;){const t=e[c++],a=new Uint8Array(16);let n=0;for(j=0;j<16;j++,c++)n+=a[j]=e[c];const s=new Uint8Array(n);for(j=0;j<n;j++,c++)s[j]=e[c];w+=17+n;(t>>4?m:g)[15&t]=buildHuffmanTable(a,s)}break;case 65501:c+=2;o=a.getUint16(c);c+=2;break;case 65498:const M=1===++u&&!t;c+=2;const R=e[c++],D=[];for(w=0;w<R;w++){const t=e[c++],a=i.componentIds[t],n=i.components[a];n.index=t;const s=e[c++];n.huffmanTableDC=g[s>>4];n.huffmanTableAC=m[15&s];D.push(n)}const H=e[c++],N=e[c++],E=e[c++];try{c+=decodeScan(e,a,c,i,D,o,H,N,E>>4,15&E,M)}catch(t){if(t instanceof DNLMarkerError){(0,n.warn)(`${t.message} -- attempting to re-parse the JPEG image.`);return this.parse(e,{dnlScanLines:t.scanLines})}if(t instanceof EOIMarkerError){(0,n.warn)(`${t.message} -- ignoring the rest of the image data.`);break e}throw t}break;case 65500:c+=4;break;case 65535:255!==e[c]&&c--;break;default:const z=(0,s.findNextFileMarker)(e,a,c-2,c-3);if(z?.invalid){(0,n.warn)("JpegImage.parse - unexpected data, current marker is: "+z.invalid);c=z.offset;break}if(!z||c>=r){(0,n.warn)("JpegImage.parse - reached the end of the image data without finding an EOI marker (0xFFD9).");break e}throw new s.JpegError("JpegImage.parse - unknown marker: "+b.toString(16))}if(c<r){b=a.getUint16(c);c+=2}else b=0}if(!i)throw new s.JpegError("JpegImage.parse - no frame data found.");this.width=i.samplesPerLine;this.height=i.scanLines;this.jfif=f;this.adobe=h;this.components=[];for(const e of i.components){const t=d[e.quantizationId];t&&(e.quantizationTable=t);this.components.push({index:e.index,output:buildComponentData(0,e),scaleX:e.h/i.maxH,scaleY:e.v/i.maxV,blocksPerLine:e.blocksPerLine,blocksPerColumn:e.blocksPerColumn})}this.numComponents=this.components.length}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(e){let t,a,n;for(let s=0,r=e.length;s<r;s+=3){t=e[s];a=e[s+1];n=e[s+2];e[s]=t-179.456+1.402*n;e[s+1]=t+135.459-.344*a-.714*n;e[s+2]=t-226.816+1.772*a}return e}_convertYccToRgba(e,t){for(let a=0,n=0,s=e.length;a<s;a+=3,n+=4){const s=e[a],r=e[a+1],i=e[a+2];t[n]=s-179.456+1.402*i;t[n+1]=s+135.459-.344*r-.714*i;t[n+2]=s-226.816+1.772*r;t[n+3]=255}return t}_convertYcckToRgb(e){this._convertYcckToCmyk(e);return this._convertCmykToRgb(e)}_convertYcckToRgba(e){this._convertYcckToCmyk(e);return this._convertCmykToRgba(e)}_convertYcckToCmyk(e){let t,a,n;for(let s=0,r=e.length;s<r;s+=4){t=e[s];a=e[s+1];n=e[s+2];e[s]=434.456-t-1.402*n;e[s+1]=119.541-t+.344*a+.714*n;e[s+2]=481.816-t-1.772*a}return e}_convertCmykToRgb(e){const t=e.length/4;r.ColorSpaceUtils.cmyk.getRgbBuffer(e,0,t,e,0,8,0);return e.subarray(0,3*t)}_convertCmykToRgba(e){r.ColorSpaceUtils.cmyk.getRgbBuffer(e,0,e.length/4,e,0,8,1);if(r.ColorSpaceUtils.cmyk instanceof i.DeviceCmykCS)for(let t=3,a=e.length;t<a;t+=4)e[t]=255;return e}getData({width:e,height:t,forceRGBA:a=!1,forceRGB:n=!1}){if(this.numComponents>4)throw new s.JpegError("Unsupported color mode");const r=function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}(w,this,_getLinearizedBlockData).call(this,e,t);if(1===this.numComponents&&(a||n)){const e=r.length*(a?4:3),t=new Uint8ClampedArray(e);if(a)(0,o.grayToRGBA)(r,new Uint32Array(t.buffer));else{let e=0;for(const a of r){t[e++]=a;t[e++]=a;t[e++]=a}}return t}if(3===this.numComponents&&this._isColorConversionNeeded){if(a){const e=new Uint8ClampedArray(r.length/3*4);return this._convertYccToRgba(r,e)}return this._convertYccToRgb(r)}if(4===this.numComponents){if(this._isColorConversionNeeded)return a?this._convertYcckToRgba(r):n?this._convertYcckToRgb(r):this._convertYcckToCmyk(r);if(a)return this._convertCmykToRgba(r);if(n)return this._convertCmykToRgb(r)}return r}}function _getLinearizedBlockData(e,t){const a=this.width/e,n=this.height/t;let s,r,i,o,l,c,f,h,u=0;const d=this.components.length,m=new Uint8ClampedArray(e*t*d),g=new Uint32Array(e),b=4294967288;let w;for(f=0;f<d;f++){s=this.components[f];r=s.scaleX*a;i=s.scaleY*n;u=f;const j=s.output;o=s.blocksPerLine+1<<3;if(r!==w){for(l=0;l<e;l++){h=0|l*r;g[l]=(h&b)<<3|7&h}w=r}for(c=0;c<t;c++){h=0|c*i;const t=o*(h&b)|(7&h)<<3;for(l=0;l<e;l++){m[u]=j[t+g[l]];u+=d}}}return m}},4242(e,t,a){a.d(t,{JpxImage:()=>JpxImage});var n=a(1723),s=a(5412);class JpxError extends n.BaseException{constructor(e){super(e,"JpxError")}}class JpxImage extends s.WasmImage{static get instance(){return(0,n.shadow)(this,"instance",new JpxImage("openjpeg.wasm","openjpeg_nowasm_fallback.js"))}async decode(e,{numComponents:t,isIndexedColormap:n=!1,smaskInData:s=!1,reducePower:r=0}={}){const i=void 0!==t;t??=4;const o=await this._getModule(()=>Promise.resolve().then(()=>a(3530)));if(!o)throw new JpxError("OpenJPEG failed to initialize");let l;try{const a=e.length;l=o._malloc(a);o.writeArrayToMemory(e,l);if(o._jp2_decode(l,a,t>0?t:0,!!n,!!s,r,i)){const{errorMessages:e}=o;if(e){delete o.errorMessages;throw new JpxError(e)}throw new JpxError("Unknown error")}const{imageData:c}=o;return c}finally{l&&o._free(l);o.imageData=null}}static parseImageProperties(e){let t=e.getByte();for(;t>=0;){const a=t;t=e.getByte();if(65361===(a<<8|t)){e.skip(4);const t=e.getInt32()>>>0,a=e.getInt32()>>>0,n=e.getInt32()>>>0,s=e.getInt32()>>>0;e.skip(16);return{width:t-n,height:a-s,bitsPerComponent:8,componentsCount:e.getUint16()}}}throw new JpxError("No size marker found in JPX stream")}}},629(e,t,a){var n=a(5399);const s=(0,n.getLookupTableFactory)(function(e){e.Courier=600;e["Courier-Bold"]=600;e["Courier-BoldOblique"]=600;e["Courier-Oblique"]=600;e.Helvetica=(0,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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,n.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})}),r=(0,n.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}});a.d(t,["getFontBasicMetrics",0,r,"getMetrics",0,s])},1740(e,t,a){a.d(t,{NameTree:()=>NameTree,NumberTree:()=>NumberTree});var n=a(5632),s=a(1723);class NameOrNumberTree{constructor(e,t,a){this.root=e;this.xref=t;this._type=a}getAll(e=!1){const t=new Map;if(!this.root)return t;const a=this.xref,r=new n.RefSet;this.root instanceof n.Ref&&r.put(this.root);const i=[this.root];for(const o of i){const l=a.fetchIfRef(o);if(!(l instanceof n.Dict))continue;if(l.has("Kids")){const e=l.get("Kids");if(!Array.isArray(e))continue;for(const t of e){if(t instanceof n.Ref){if(r.has(t))throw new s.FormatError(`Duplicate entry in "${this._type}" tree.`);r.put(t)}i.push(t)}continue}const c=l.get(this._type);if(Array.isArray(c))for(let n=0,s=c.length;n<s;n+=2)t.set(e?c[n]:a.fetchIfRef(c[n]),e?c[n+1]:a.fetchIfRef(c[n+1]))}return t}getRaw(e){if(!this.root)return null;const t=this.xref;let a=t.fetchIfRef(this.root),n=0;for(;a.has("Kids");){if(++n>10){(0,s.warn)(`Search depth limit reached for "${this._type}" tree.`);return null}const r=a.get("Kids");if(!Array.isArray(r))return null;let i=0,o=r.length-1;for(;i<=o;){const n=i+o>>1,s=t.fetchIfRef(r[n]),l=s.get("Limits");if(e<t.fetchIfRef(l[0]))o=n-1;else{if(!(e>t.fetchIfRef(l[1]))){a=s;break}i=n+1}}if(i>o)return null}const r=a.get(this._type);if(Array.isArray(r)){let a=0,n=r.length-2;for(;a<=n;){const s=a+n>>1,i=s+(1&s),o=t.fetchIfRef(r[i]);if(e<o)n=i-2;else{if(!(e>o))return r[i+1];a=i+2}}}return null}get(e){return this.xref.fetchIfRef(this.getRaw(e))}}class NameTree extends NameOrNumberTree{constructor(e,t){super(e,t,"Names")}}class NumberTree extends NameOrNumberTree{constructor(e,t){super(e,t,"Nums")}}},5709(e,t,a){a.d(t,{compileFontInfo:()=>compileFontInfo,compileFontPathInfo:()=>compileFontPathInfo,compilePatternInfo:()=>compilePatternInfo});var n,s=a(1723);function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}class CSS_FONT_INFO{}_defineProperty(CSS_FONT_INFO,"strings",["fontFamily","fontWeight","italicAngle"]);class SYSTEM_FONT_INFO{}_defineProperty(SYSTEM_FONT_INFO,"strings",["css","loadedName","baseFontName","src"]);class FONT_INFO{}n=FONT_INFO;_defineProperty(FONT_INFO,"bools",["black","bold","disableFontFace","fontExtraProperties","isInvalidPDFjsFont","isType3Font","italic","missingFile","remeasure","vertical"]);_defineProperty(FONT_INFO,"strings",["fallbackName","generatedFontName","loadedName"]);_defineProperty(FONT_INFO,"OFFSET_BBOX",Math.ceil(2*n.bools.length/8));_defineProperty(FONT_INFO,"OFFSET_FONT_MATRIX",n.OFFSET_BBOX+1+8);_defineProperty(FONT_INFO,"OFFSET_STRINGS",n.OFFSET_FONT_MATRIX+1+48);class PATTERN_INFO{}_defineProperty(PATTERN_INFO,"KIND",0);_defineProperty(PATTERN_INFO,"HAS_BBOX",1);_defineProperty(PATTERN_INFO,"HAS_BACKGROUND",2);_defineProperty(PATTERN_INFO,"SHADING_TYPE",3);_defineProperty(PATTERN_INFO,"N_COORD",4);_defineProperty(PATTERN_INFO,"N_COLOR",8);_defineProperty(PATTERN_INFO,"N_STOP",12);_defineProperty(PATTERN_INFO,"N_FIGURES",16);class InfoUtils{static get decoder(){return(0,s.shadow)(this,"decoder",new TextDecoder)}static get encoder(){return(0,s.shadow)(this,"encoder",new TextEncoder)}}function encodeStrings(e,t){const{encoder:a}=InfoUtils,n=new Map;let s=0;for(const r of e){const e=a.encode(t[r]),i=e.length;n.set(e,i);s+=4+i}return{encodedStrings:n,stringsLength:s}}function writeStrings(e,t,a,n=0){for(const[s,r]of e){a.setUint32(n,r);t.set(s,n+4);n+=4+r}return n}function compileFontInfo(e){function writeArray(e,t,a,n){if(e){c.setUint8(f++,t);for(const t of e){c[a](f,t,!0);f+=n}}else{c.setUint8(f++,0);f+=n*t}}function writeBuffer(e,t){if(!e){c.setUint32(f,0);f+=4;return}const a=e.byteLength;c.setUint32(f,a);(0,s.assert)(f+4+a<=o.byteLength,`compileFontInfo: Buffer overflow at ${t}`);l.set(new Uint8Array(e),f+4);f+=4+a}const t=e.systemFontInfo?function compileSystemFontInfo(e){const{encodedStrings:t,stringsLength:a}=encodeStrings(SYSTEM_FONT_INFO.strings,e);let n,r=0;e.style&&({encodedStrings:n,stringsLength:r}=encodeStrings(["style","weight"],e.style));const i=new ArrayBuffer(4+a+r),o=new Uint8Array(i),l=new DataView(i);let c=0;l.setUint32(c,a);c=writeStrings(t,o,l,c+4);n&&(c=writeStrings(n,o,l,c));(0,s.assert)(c<=i.byteLength,"compileSystemFontInfo: Buffer overflow");return i.transferToFixedLength(c)}(e.systemFontInfo):null,a=e.cssFontInfo?function compileCssFontInfo(e){const{encodedStrings:t,stringsLength:a}=encodeStrings(CSS_FONT_INFO.strings,e),n=new ArrayBuffer(a),r=writeStrings(t,new Uint8Array(n),new DataView(n));(0,s.assert)(r===n.byteLength,"compileCssFontInfo: Buffer overflow");return n}(e.cssFontInfo):null,{encodedStrings:n,stringsLength:r}=encodeStrings(FONT_INFO.strings,e),i=FONT_INFO.OFFSET_STRINGS+4+r+4+(t?.byteLength??0)+4+(a?.byteLength??0)+4+(e.data?.length??0),o=new ArrayBuffer(i),l=new Uint8Array(o),c=new DataView(o);let f=0;const h=FONT_INFO.bools.length;let u=0,d=0;for(let t=0;t<h;t++){const a=e[FONT_INFO.bools[t]];u|=(void 0===a?0:a?2:1)<<d;d+=2;if(8===d||t===h-1){c.setUint8(f++,u);u=0;d=0}}(0,s.assert)(f===FONT_INFO.OFFSET_BBOX,"compileFontInfo: Boolean properties offset mismatch");writeArray(e.bbox,4,"setInt16",2);(0,s.assert)(f===FONT_INFO.OFFSET_FONT_MATRIX,"compileFontInfo: BBox properties offset mismatch");writeArray(e.fontMatrix,6,"setFloat64",8);(0,s.assert)(f===FONT_INFO.OFFSET_STRINGS,"compileFontInfo: FontMatrix properties offset mismatch");c.setUint32(f,r);f=writeStrings(n,l,c,f+4);writeBuffer(t,"systemFontInfo");writeBuffer(a,"cssFontInfo");if(void 0===e.data){c.setUint32(f,0);f+=4}else{c.setUint32(f,e.data.length);l.set(e.data,f+4);f+=4+e.data.length}(0,s.assert)(f<=o.byteLength,"compileFontInfo: Buffer overflow");return o.transferToFixedLength(f)}function compilePatternInfo(e){let t,a=null,n=[],s=[],r=[],i=null,o=null;switch(e[0]){case"RadialAxial":t="axial"===e[1]?1:2;a=e[2];r=e[3];1===t?n.push(...e[4],...e[5]):n.push(e[4][0],e[4][1],e[6],e[5][0],e[5][1],e[7]);break;case"Mesh":t=3;i=e[1];n=e[2];s=e[3];a=e[6];o=e[7];break;default:throw new Error(`Unsupported pattern type: ${e[0]}`)}const l=Math.floor(n.length/2),c=Math.floor(s.length/4),f=r.length,h=new ArrayBuffer(20+8*l+4*c+8*f+(a?16:0)+(o?3:0)),u=new DataView(h),d=new Uint8Array(h);u.setUint8(PATTERN_INFO.KIND,t);u.setUint8(PATTERN_INFO.HAS_BBOX,a?1:0);u.setUint8(PATTERN_INFO.HAS_BACKGROUND,o?1:0);u.setUint8(PATTERN_INFO.SHADING_TYPE,i);u.setUint32(PATTERN_INFO.N_COORD,l,!0);u.setUint32(PATTERN_INFO.N_COLOR,c,!0);u.setUint32(PATTERN_INFO.N_STOP,f,!0);u.setUint32(PATTERN_INFO.N_FIGURES,0,!0);let m=20;new Float32Array(h,m,2*l).set(n);m+=8*l;d.set(s,m);m+=4*c;for(const[e,t]of r){u.setFloat32(m,e,!0);m+=4;u.setUint32(m,parseInt(t.slice(1),16),!0);m+=4}if(a)for(const e of a){u.setFloat32(m,e,!0);m+=4}o&&d.set(o,m);return h}function compileFontPathInfo(e){return e.slice().buffer}},3047(e,t,a){a.d(t,{ObjectLoader:()=>ObjectLoader});var n=a(5632),s=a(1834),r=a(5399),i=a(1723);function _classPrivateMethodInitSpec(e,t){(function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}function mayHaveChildren(e){return e instanceof n.Ref||e instanceof n.Dict||e instanceof s.BaseStream||Array.isArray(e)}function addChildren(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 a of e)mayHaveChildren(a)&&t.push(a)}var o=new WeakSet;class ObjectLoader{constructor(e,t,a){_classPrivateMethodInitSpec(this,o);_defineProperty(this,"refSet",new n.RefSet);this.dict=e;this.keys=t;this.xref=a}async load(){const{keys:e,dict:t}=this,a=[];for(const n of e){const e=t.getRaw(n);void 0!==e&&a.push(e)}await _assertClassBrand(o,this,_walk).call(this,a);this.refSet=null}static async load(e,t,a){if(a.stream.isDataLoaded)return;const n=new ObjectLoader(e,t,a);await n.load()}}async function _walk(e){const t=[],a=[];for(;e.length;){let o=e.pop();if(o instanceof n.Ref){if(this.refSet.has(o))continue;try{this.refSet.put(o);o=this.xref.fetch(o)}catch(e){if(!(e instanceof r.MissingDataException)){(0,i.warn)(`ObjectLoader.#walk - requesting all data: "${e}".`);await this.xref.stream.manager.requestAllChunks();return}t.push(o);a.push({begin:e.begin,end:e.end})}}if(o instanceof s.BaseStream){const e=o.getBaseStreams();if(e){let n=!1;for(const t of e)if(!t.isDataLoaded){n=!0;a.push({begin:t.start,end:t.end})}n&&t.push(o)}}addChildren(o,e)}if(a.length){await this.xref.stream.manager.requestRanges(a);for(const e of t)e instanceof n.Ref&&this.refSet.remove(e);await _assertClassBrand(o,this,_walk).call(this,t)}}},615(e,t,a){a.d(t,{OpenTypeFileBuilder:()=>OpenTypeFileBuilder,computeOpenTypeChecksum:()=>computeOpenTypeChecksum});var n=a(1723);function _classPrivateFieldInitSpec(e,t,a){(function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,a)}function _classPrivateFieldGet(e,t){return e.get(function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}(e,t))}function computeOpenTypeChecksum(e,t=0,a=e.byteLength){let n=0,s=t;for(;s+4<=a;s+=4)n=n+e.getUint32(s)>>>0;for(let t=24;s<a;s++,t-=8)n+=e.getUint8(s)<<t;return n>>>0}var s=new WeakMap;class OpenTypeFileBuilder{constructor(e){_classPrivateFieldInitSpec(this,s,new Map);this.sfnt=e}static getSearchParams(e,t){let a=1,n=0;for(;(a^e)>a;){a<<=1;n++}const s=a*t;return{range:s,entry:n,rangeShift:t*e-s}}toArray(){let e=this.sfnt;const t=_classPrivateFieldGet(s,this),a=[...t.keys()].sort(),r=a.length;let i=12+16*r;const o=[i];for(let e=0;e<r;e++){i+=(t.get(a[e]).length+3&-4)>>>0;o.push(i)}const l=new Uint8Array(i),c=new DataView(l.buffer);for(let e=0;e<r;e++){const n=t.get(a[e]);l.set(n,o[e])}"true"===e&&(e="\0\0\0");l.set((0,n.stringToBytes)(e),0);c.setInt16(4,r);const f=OpenTypeFileBuilder.getSearchParams(r,16);c.setInt16(6,f.range);c.setInt16(8,f.entry);c.setInt16(10,f.rangeShift);i=12;for(let e=0;e<r;e++){const s=a[e];l.set((0,n.stringToBytes)(s),i);c.setInt32(i+4,computeOpenTypeChecksum(c,o[e],o[e+1]));c.setInt32(i+8,o[e]);c.setInt32(i+12,t.get(s).length);i+=16}_classPrivateFieldGet(s,this).clear();return l}addTable(e,t){if(_classPrivateFieldGet(s,this).has(e))throw new Error(`Table ${e} already exists`);_classPrivateFieldGet(s,this).set(e,t)}}},8857(e,t,a){a.d(t,{CheckedOperatorList:()=>CheckedOperatorList,OperatorList:()=>OperatorList});var n,s=a(1723);function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function addState(e,t,a,n,s){let r=e;for(let e=0,a=t.length-1;e<a;e++){const a=t[e];r=r[a]||=[]}r[t.at(-1)]={checkFn:a,iterateFn:n,processFn:s}}const r=[];addState(r,[s.OPS.save,s.OPS.transform,s.OPS.paintInlineImageXObject,s.OPS.restore],null,function iterateInlineImageGroup(e,t){const a=e.fnArray,n=(t-(e.iCurr-3))%4;switch(n){case 0:return a[t]===s.OPS.save;case 1:return a[t]===s.OPS.transform;case 2:return a[t]===s.OPS.paintInlineImageXObject;case 3:return a[t]===s.OPS.restore}throw new Error(`iterateInlineImageGroup - invalid pos: ${n}`)},function foundInlineImageGroup(e,t){const a=e.fnArray,n=e.argsArray,r=e.iCurr,i=r-3,o=r-2,l=r-1,c=Math.min(Math.floor((t-i)/4),200);if(c<10)return t-(t-i)%4;let f=0;const h=[];let u=0,d=1,m=1;for(let e=0;e<c;e++){const t=n[o+(e<<2)],a=n[l+(e<<2)][0];if(d+a.width>1e3){f=Math.max(f,d);m+=u+2;d=0;u=0}h.push({transform:t,x:d,y:m,w:a.width,h:a.height});d+=a.width+2;u=Math.max(u,a.height)}const g=Math.max(f,d)+1,b=m+u+1,w=new Uint8Array(g*b*4),j=g<<2;for(let e=0;e<c;e++){const t=n[l+(e<<2)][0].data,a=h[e].w<<2;let s=0,r=h[e].x+h[e].y*g<<2;w.set(t.subarray(0,a),r-j);for(let n=0,i=h[e].h;n<i;n++){w.set(t.subarray(s,s+a),r);s+=a;r+=j}w.set(t.subarray(s-a,s),r);for(;r>=0;){t[r-4]=t[r];t[r-3]=t[r+1];t[r-2]=t[r+2];t[r-1]=t[r+3];t[r+a]=t[r+a-4];t[r+a+1]=t[r+a-3];t[r+a+2]=t[r+a-2];t[r+a+3]=t[r+a-1];r-=j}}const y={width:g,height:b};if(e.isOffscreenCanvasSupported){const e=new OffscreenCanvas(g,b);e.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(w.buffer),g,b),0,0);y.bitmap=e.transferToImageBitmap();y.data=null}else{y.kind=s.ImageKind.RGBA_32BPP;y.data=w}a.splice(i,4*c,s.OPS.paintInlineImageXObjectGroup);n.splice(i,4*c,[y,h]);return i+1});addState(r,[s.OPS.save,s.OPS.transform,s.OPS.paintImageMaskXObject,s.OPS.restore],null,function iterateImageMaskGroup(e,t){const a=e.fnArray,n=(t-(e.iCurr-3))%4;switch(n){case 0:return a[t]===s.OPS.save;case 1:return a[t]===s.OPS.transform;case 2:return a[t]===s.OPS.paintImageMaskXObject;case 3:return a[t]===s.OPS.restore}throw new Error(`iterateImageMaskGroup - invalid pos: ${n}`)},function foundImageMaskGroup(e,t){const a=e.fnArray,n=e.argsArray,r=e.iCurr,i=r-3,o=r-2,l=r-1;let c=Math.floor((t-i)/4);if(c<10)return t-(t-i)%4;let f,h,u=!1;const d=n[l][0],m=n[o][0],g=n[o][1],b=n[o][2],w=n[o][3];if(g===b){u=!0;f=o+4;let e=l+4;for(let t=1;t<c;t++,f+=4,e+=4){h=n[f];if(n[e][0]!==d||h[0]!==m||h[1]!==g||h[2]!==b||h[3]!==w){t<10?u=!1:c=t;break}}}if(u){c=Math.min(c,1e3);const e=new Float32Array(2*c);f=o;for(let t=0;t<c;t++,f+=4){h=n[f];e[t<<1]=h[4];e[1+(t<<1)]=h[5]}a.splice(i,4*c,s.OPS.paintImageMaskXObjectRepeat);n.splice(i,4*c,[d,m,g,b,w,e])}else{c=Math.min(c,100);const e=[];for(let t=0;t<c;t++){h=n[o+(t<<2)];const a=n[l+(t<<2)][0];e.push({data:a.data,width:a.width,height:a.height,interpolate:a.interpolate,count:a.count,transform:h})}a.splice(i,4*c,s.OPS.paintImageMaskXObjectGroup);n.splice(i,4*c,[e])}return i+1});addState(r,[s.OPS.save,s.OPS.transform,s.OPS.paintImageXObject,s.OPS.restore],function(e){const t=e.argsArray,a=e.iCurr-2;return 0===t[a][1]&&0===t[a][2]},function iterateImageGroup(e,t){const a=e.fnArray,n=e.argsArray,r=(t-(e.iCurr-3))%4;switch(r){case 0:return a[t]===s.OPS.save;case 1:if(a[t]!==s.OPS.transform)return!1;const r=e.iCurr-2,i=n[r][0],o=n[r][3];return n[t][0]===i&&0===n[t][1]&&0===n[t][2]&&n[t][3]===o;case 2:if(a[t]!==s.OPS.paintImageXObject)return!1;const l=n[e.iCurr-1][0];return n[t][0]===l;case 3:return a[t]===s.OPS.restore}throw new Error(`iterateImageGroup - invalid pos: ${r}`)},function(e,t){const a=e.fnArray,n=e.argsArray,r=e.iCurr,i=r-3,o=r-2,l=n[r-1][0],c=n[o][0],f=n[o][3],h=Math.min(Math.floor((t-i)/4),1e3);if(h<3)return t-(t-i)%4;const u=new Float32Array(2*h);let d=o;for(let e=0;e<h;e++,d+=4){const t=n[d];u[e<<1]=t[4];u[1+(e<<1)]=t[5]}const m=[l,c,f,u];a.splice(i,4*h,s.OPS.paintImageXObjectRepeat);n.splice(i,4*h,m);return i+1});addState(r,[s.OPS.beginText,s.OPS.setFont,s.OPS.setTextMatrix,s.OPS.showText,s.OPS.endText],null,function iterateShowTextGroup(e,t){const a=e.fnArray,n=e.argsArray,r=(t-(e.iCurr-4))%5;switch(r){case 0:return a[t]===s.OPS.beginText;case 1:return a[t]===s.OPS.setFont;case 2:return a[t]===s.OPS.setTextMatrix;case 3:if(a[t]!==s.OPS.showText)return!1;const r=e.iCurr-3,i=n[r][0],o=n[r][1];return n[t][0]===i&&n[t][1]===o;case 4:return a[t]===s.OPS.endText}throw new Error(`iterateShowTextGroup - invalid pos: ${r}`)},function(e,t){const a=e.fnArray,n=e.argsArray,s=e.iCurr,r=s-4,i=s-3,o=s-2,l=s-1,c=s,f=n[i][0],h=n[i][1];let u=Math.min(Math.floor((t-r)/5),1e3);if(u<3)return t-(t-r)%5;let d=r;if(r>=4&&a[r-4]===a[i]&&a[r-3]===a[o]&&a[r-2]===a[l]&&a[r-1]===a[c]&&n[r-4][0]===f&&n[r-4][1]===h){u++;d-=5}let m=d+4;for(let e=1;e<u;e++){a.splice(m,3);n.splice(m,3);m+=2}return m+1});addState(r,[s.OPS.save,s.OPS.transform,s.OPS.constructPath,s.OPS.restore],e=>{const t=e.argsArray,a=t[e.iCurr-1][0];if(a!==s.OPS.stroke&&a!==s.OPS.closeStroke&&a!==s.OPS.fillStroke&&a!==s.OPS.eoFillStroke&&a!==s.OPS.closeFillStroke&&a!==s.OPS.closeEOFillStroke)return!0;const n=t[e.iCurr-2];return 1===n[0]&&0===n[1]&&0===n[2]&&1===n[3]},()=>!1,(e,t)=>{const{fnArray:a,argsArray:n}=e,r=e.iCurr,i=r-3,o=r-2,l=n[r-1],c=n[o],[,[f],h]=l;if(h){const e=s.F32_BBOX_INIT.slice();s.Util.axialAlignedBoundingBox(h,c,e);h.set(e);for(let e=0,t=f.length;e<t;)switch(f[e++]){case s.DrawOPS.moveTo:case s.DrawOPS.lineTo:s.Util.applyTransform(f,c,e);e+=2;break;case s.DrawOPS.curveTo:s.Util.applyTransformToBezier(f,c,e);e+=6}}a.splice(i,4,s.OPS.constructPath);n.splice(i,4,l);return i+1});class NullOptimizer{constructor(e){this.queue=e}_optimize(){}push(e,t){this.queue.fnArray.push(e);this.queue.argsArray.push(t);this._optimize()}flush(){}reset(){}}class QueueOptimizer extends NullOptimizer{constructor(e){super(e);this.state=null;this.context={iCurr:0,fnArray:e.fnArray,argsArray:e.argsArray,isOffscreenCanvasSupported:OperatorList.isOffscreenCanvasSupported};this.match=null;this.lastProcessed=0}_optimize(){const e=this.queue.fnArray;let t=this.lastProcessed,a=e.length,n=this.state,s=this.match;if(!n&&!s&&t+1===a&&!r[e[t]]){this.lastProcessed=a;return}const i=this.context;for(;t<a;){if(s){if((0,s.iterateFn)(i,t)){t++;continue}t=(0,s.processFn)(i,t+1);a=e.length;s=null;n=null;if(t>=a)break}n=(n||r)[e[t]];if(n&&!Array.isArray(n)){i.iCurr=t;t++;if(!n.checkFn||(0,n.checkFn)(i)){s=n;n=null}else n=null}else t++}this.state=n;this.match=s;this.lastProcessed=t}flush(){for(;this.match;){const 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 OperatorList{constructor(e=0,t){this._streamSink=t;this.fnArray=[];this.argsArray=[];this.optimizer=!t||e&s.RenderingIntentFlag.OPLIST?new NullOptimizer(this):new QueueOptimizer(this);this.dependencies=new Set;this.weight=0;this._resolved=t?null:Promise.resolve()}static setOptions({isOffscreenCanvasSupported:e}){this.isOffscreenCanvasSupported=e}get length(){return this.argsArray.length}get ready(){return this._resolved||this._streamSink.ready}addOp(e,t){this.optimizer.push(e,t);this.weight++;this._streamSink&&(this.weight>=OperatorList.CHUNK_SIZE||this.weight>=OperatorList.CHUNK_SIZE_ABOUT&&(e===s.OPS.restore||e===s.OPS.endText))&&this.flush()}addImageOps(e,t,a,n=!1){if(n){this.addOp(s.OPS.save);this.addOp(s.OPS.setGState,[[["SMask",!1]]])}void 0!==a&&this.addOp(s.OPS.beginMarkedContentProps,["OC",a]);this.addOp(e,t);void 0!==a&&this.addOp(s.OPS.endMarkedContent,[]);n&&this.addOp(s.OPS.restore)}addDependency(e){if(!this.dependencies.has(e)){this.dependencies.add(e);this.addOp(s.OPS.dependency,[e])}}addDependencies(e){for(const t of e)this.addDependency(t)}addOpList(e){if(e instanceof OperatorList){for(const t of e.dependencies)this.dependencies.add(t);for(let t=0,a=e.length;t<a;t++)this.addOp(e.fnArray[t],e.argsArray[t])}else(0,s.warn)('addOpList - ignoring invalid "opList" parameter.')}getIR(){return{fnArray:this.fnArray,argsArray:this.argsArray,length:this.length}}get _transfers(){const e=[],{fnArray:t,argsArray:a,length:n}=this;for(let r=0;r<n;r++)switch(t[r]){case s.OPS.paintInlineImageXObject:case s.OPS.paintInlineImageXObjectGroup:case s.OPS.paintImageMaskXObject:{const{bitmap:t,data:n}=a[r][0];(t||n?.buffer)&&e.push(t||n.buffer);break}case s.OPS.constructPath:{const[,[t],n]=a[r];t&&e.push(t.buffer,n.buffer);break}case s.OPS.paintFormXObjectBegin:const[t,n]=a[r];t&&e.push(t.buffer);n&&e.push(n.buffer);break;case s.OPS.setTextMatrix:e.push(a[r][0].buffer)}return e}flush(e=!1,t=null){this.optimizer.flush();this._streamSink.enqueue({fnArray:this.fnArray,argsArray:this.argsArray,lastChunk:e,separateAnnots:t,length:this.length},1,this._transfers);this.dependencies.clear();this.fnArray.length=0;this.argsArray.length=0;this.weight=0;this.optimizer.reset()}}n=OperatorList;_defineProperty(OperatorList,"CHUNK_SIZE",1e3);_defineProperty(OperatorList,"CHUNK_SIZE_ABOUT",n.CHUNK_SIZE-5);_defineProperty(OperatorList,"isOffscreenCanvasSupported",!1);class CheckedOperatorList extends OperatorList{constructor(...e){super(...e);_defineProperty(this,"needsIsolation",!1);_defineProperty(this,"hasSoftMask",!1)}addOp(e,t){if(!this.needsIsolation||!this.hasSoftMask)if(e===s.OPS.beginGroup){this.needsIsolation||=t[0].needsIsolation;this.hasSoftMask||=t[0].hasSoftMask}else if(e===s.OPS.setGState)for(const[e,a]of t[0])if("BM"===e&&"source-over"!==a)this.needsIsolation=!0;else if("SMask"===e&&!1!==a){this.needsIsolation=!0;this.hasSoftMask=!0}super.addOp(e,t)}}},1440(e,t,a){a.d(t,{Lexer:()=>Lexer,Linearization:()=>Linearization,Parser:()=>Parser,toHexDigit:()=>toHexDigit});var n=a(1723),s=a(5632),r=a(5399),i=a(4106),o=a(4563);function _classPrivateFieldInitSpec(e,t,a){(function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,a)}function _classPrivateFieldGet(e,t){return e.get(function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}(e,t))}var l=new WeakMap;class Ascii85Stream extends o.DecodeStream{constructor(e,t){t&&(t*=.8);super(t);_classPrivateFieldInitSpec(this,l,new Uint8Array(5));this.stream=e;this.dict=e.dict}readBlock(){const e=this.stream;let t=e.getByte();for(;(0,r.isWhiteSpace)(t);)t=e.getByte();if(-1===t||126===t){this.eof=!0;return}const a=this.bufferLength;let n,s;if(122===t){n=this.ensureBuffer(a+4);n.fill(0,a,a+4);this.bufferLength+=4}else{const i=_classPrivateFieldGet(l,this);i[0]=t;for(s=1;s<5;++s){t=e.getByte();for(;(0,r.isWhiteSpace)(t);)t=e.getByte();i[s]=t;if(-1===t||126===t)break}n=this.ensureBuffer(a+s-1);this.bufferLength+=s-1;if(s<5){i.fill(117,s,5);this.eof=!0}let o=0;for(s=0;s<5;++s)o=85*o+(i[s]-33);for(s=3;s>=0;--s){n[a+s]=255&o;o>>=8}}}}class AsciiHexStream extends o.DecodeStream{constructor(e,t){t&&(t*=.5);super(t);this.stream=e;this.dict=e.dict;this.firstDigit=-1}readBlock(){const e=this.stream.getBytes(8e3);if(!e.length){this.eof=!0;return}const t=e.length+1>>1,a=this.ensureBuffer(this.bufferLength+t);let n=this.bufferLength,s=this.firstDigit;for(const t of e){let e;if(t>=48&&t<=57)e=15&t;else{if(!(t>=65&&t<=70||t>=97&&t<=102)){if(62===t){this.eof=!0;break}continue}e=9+(15&t)}if(s<0)s=e;else{a[n++]=s<<4|e;s=-1}}if(s>=0&&this.eof){a[n++]=s<<4;s=-1}this.firstDigit=s;this.bufferLength=n}}var c=a(6170),f=a(5412);class Jbig2Error extends n.BaseException{constructor(e){super(e,"Jbig2Error")}}class JBig2CCITTFaxImage extends f.WasmImage{static get instance(){return(0,n.shadow)(this,"instance",new JBig2CCITTFaxImage("jbig2.wasm","jbig2_nowasm_fallback.js"))}async decode(e,t,n,s,r){const i=await this._getModule(()=>Promise.resolve().then(()=>a(2708)));if(!i)throw new Jbig2Error("JBig2 failed to initialize");let o,l;try{const a=e.length;o=i._malloc(a);i.writeArrayToMemory(e,o);if(r)i._ccitt_decode(o,a,t,n,r.K,r.EndOfLine?1:0,r.EncodedByteAlign?1:0,r.BlackIs1?1:0,r.Columns,r.Rows);else{const e=s?s.length:0;if(e>0){l=i._malloc(e);i.writeArrayToMemory(s,l)}i._jbig2_decode(o,a,t,n,l,e)}if(!i.imageData)throw new Jbig2Error("Unknown error");const{imageData:c}=i;return c}finally{o&&i._free(o);l&&i._free(l);i.imageData=null}}}class CCITTFaxStream extends o.DecodeStream{constructor(e,t,a){super(t);this.stream=e;this.maybeLength=t;this.dict=e.dict;a instanceof s.Dict||(a=s.Dict.empty);this.params={K:a.get("K")||0,EndOfLine:!!a.get("EndOfLine"),EncodedByteAlign:!!a.get("EncodedByteAlign"),Columns:a.get("Columns")||1728,Rows:a.get("Rows")||0,EndOfBlock:!!(a.get("EndOfBlock")??!0),BlackIs1:!!a.get("BlackIs1")}}get bytes(){return(0,n.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}get isImageStream(){return!0}get isAsyncDecoder(){return!0}async decodeImage(e,t,a){if(this.eof)return this.buffer;e??=this.stream.isAsync&&await this.stream.asyncGetBytes()||this.bytes;this.buffer=await JBig2CCITTFaxImage.instance.decode(e,this.dict.get("W","Width"),this.dict.get("H","Height"),null,this.params);this.bufferLength=this.buffer.length;this.eof=!0;return this.buffer}}function flate_stream_classPrivateFieldInitSpec(e,t,a){flate_stream_checkPrivateRedeclaration(e,t),t.set(e,a)}function flate_stream_checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function flate_stream_classPrivateFieldGet(e,t){return e.get(flate_stream_assertClassBrand(e,t))}function _classPrivateFieldSet(e,t,a){return e.set(flate_stream_assertClassBrand(e,t),a),a}function flate_stream_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const h=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),u=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]),d=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]),m=[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],g=[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];var b=new WeakMap,w=new WeakMap,j=new WeakSet;class FlateStream extends o.DecodeStream{constructor(e,t){super(t);!function _classPrivateMethodInitSpec(e,t){flate_stream_checkPrivateRedeclaration(e,t),t.add(e)}(this,j);flate_stream_classPrivateFieldInitSpec(this,b,!0);flate_stream_classPrivateFieldInitSpec(this,w,!1);this.stream=e;this.dict=e.dict;if(e instanceof i.Stream&&e.length<y._){(0,n.assert)(!e.isAsync,"Stream sub-classes are never asynchronous");_classPrivateFieldSet(w,this,!0)}const a=e.getByte(),s=e.getByte();if(-1===a||-1===s)throw new n.FormatError(`Invalid header in flate stream: ${a}, ${s}`);if(8!=(15&a))throw new n.FormatError(`Unknown compression method in flate stream: ${a}, ${s}`);if(((a<<8)+s)%31!=0)throw new n.FormatError(`Bad FCHECK in flate stream: ${a}, ${s}`);if(32&s)throw new n.FormatError(`FDICT bit set in flate stream: ${a}, ${s}`);this.codeSize=0;this.codeBuf=0}async getImageData(e,t){const a=await this.asyncGetBytes(e);return a?a.length<=e?a:a.subarray(0,e):this.getBytes(e)}async asyncGetBytes(e=0){if(!flate_stream_classPrivateFieldGet(b,this))return null;if(flate_stream_classPrivateFieldGet(w,this)&&(e<=v._||this.bufferLength>0||this.eof)){this.reset();return this.getBytes(e)}_classPrivateFieldSet(w,this,!1);const{decompressed:t,compressed:a}=await this.asyncGetBytesFromDecompressionStream("deflate");if(t)return t;_classPrivateFieldSet(b,this,!1);this.stream=new i.Stream(a,2,a.length-2,this.stream.dict);this.bufferLength=0;this.eof=!1;this.codeBuf=0;this.codeSize=0;this.reset();return null}get isAsync(){return flate_stream_classPrivateFieldGet(b,this)}getBits(e){const t=this.stream;let a,s=this.codeSize,r=this.codeBuf;for(;s<e;){if(-1===(a=t.getByte()))throw new n.FormatError("Bad encoding in flate stream");r|=a<<s;s+=8}a=r&(1<<e)-1;this.codeBuf=r>>e;this.codeSize=s-=e;return a}getCode(e){const t=this.stream,a=e[0],s=e[1];let r,i=this.codeSize,o=this.codeBuf;for(;i<s&&-1!==(r=t.getByte());){o|=r<<i;i+=8}const l=a[o&(1<<s)-1],c=l>>16,f=65535&l;if(c<1||i<c)throw new n.FormatError("Bad encoding in flate stream");this.codeBuf=o>>c;this.codeSize=i-c;return f}generateHuffmanTable(e){const t=e.length;let a,n=0;for(a=0;a<t;++a)e[a]>n&&(n=e[a]);const s=1<<n,r=new Int32Array(s);for(let i=1,o=0,l=2;i<=n;++i,o<<=1,l<<=1)for(let n=0;n<t;++n)if(e[n]===i){let e=0,t=o;for(a=0;a<i;++a){e=e<<1|1&t;t>>=1}const c=i<<16|n;for(a=e;a<s;a+=l)r[a]=c;++o}return[r,n]}readBlock(){try{flate_stream_assertClassBrand(j,this,_readBlock).call(this)}catch(e){if(!(e instanceof n.FormatError))throw e;(0,n.info)(e.message);this.eof=!0}}}function _readBlock(){let e,t;const a=this.stream;let s,r,i=this.getBits(3);1&i&&(this.eof=!0);i>>=1;if(0===i){const t=a.getBytes(4);if(t.length<4)throw new n.FormatError("Bad block header in flate stream");const s=t[0]|t[1]<<8,r=t[2]|t[3]<<8;if(r!==(65535&~s)&&(0!==s||0!==r))throw new n.FormatError("Bad uncompressed block length in flate stream");this.codeBuf=0;this.codeSize=0;if(0===s)-1===a.peekByte()&&(this.eof=!0);else{const t=a.getBytes(s),n=this.bufferLength,r=n+t.length;e=this.ensureBuffer(r);e.set(t,n);this.bufferLength=r;t.length<s&&(this.eof=!0)}return}if(1===i){s=m;r=g}else{if(2!==i)throw new n.FormatError("Unknown block type in flate stream");{const e=this.getBits(5)+257,a=this.getBits(5)+1,n=this.getBits(4)+4,i=new Uint8Array(h.length);let o;for(o=0;o<n;++o)i[h[o]]=this.getBits(3);const l=this.generateHuffmanTable(i);t=0;o=0;const c=e+a,f=new Uint8Array(c);let u,d,m;for(;o<c;){const e=this.getCode(l);if(16===e){u=2;d=3;m=t}else if(17===e){u=3;d=3;m=t=0}else{if(18!==e){f[o++]=t=e;continue}u=7;d=11;m=t=0}const a=this.getBits(u)+d;if(a>0){f.fill(m,o,o+a);o+=a}}s=this.generateHuffmanTable(f.subarray(0,e));r=this.generateHuffmanTable(f.subarray(e,c))}}e=this.buffer;let o=e?e.length:0,l=this.bufferLength;try{for(;;){let a=this.getCode(s);if(a<256){if(l+1>=o){e=this.ensureBuffer(l+1);o=e.length}e[l++]=a;continue}if(256===a){this.bufferLength=l;return}a-=257;a=u[a];let n=a>>16;n>0&&(n=this.getBits(n));t=(65535&a)+n;a=this.getCode(r);a=d[a];n=a>>16;n>0&&(n=this.getBits(n));const i=(65535&a)+n;if(l+t>=o){e=this.ensureBuffer(l+t);o=e.length}if(t<=i){const a=l-i;e.copyWithin(l,a,a+t);l+=t}else for(let a=0;a<t;++a,++l)e[l]=e[l-i]}}catch(e){this.bufferLength=l;throw e}}var y={_:1024},v={_:16384},k=a(1834);class Jbig2Stream extends o.DecodeStream{constructor(e,t,a){super(t);this.stream=e;this.dict=e.dict;this.maybeLength=t;this.params=a}get bytes(){return(0,n.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}get isAsyncDecoder(){return!0}get isImageStream(){return!0}static stripFileHeader(e){if(e.length>=9&&151===e[0]&&74===e[1]&&66===e[2]&&50===e[3]&&13===e[4]&&10===e[5]&&26===e[6]&&10===e[7]){const t=2&e[8]?9:13;return e.subarray(t)}return e}async decodeImage(e,t,a){if(this.eof)return this.buffer;e=Jbig2Stream.stripFileHeader(e||this.bytes);let n=null;if(this.params instanceof s.Dict){const e=this.params.get("JBIG2Globals");e instanceof k.BaseStream&&(n=Jbig2Stream.stripFileHeader(e.getBytes()))}this.buffer=await JBig2CCITTFaxImage.instance.decode(e,this.dict.get("Width"),this.dict.get("Height"),n);this.bufferLength=this.buffer.length;this.eof=!0;return this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}}var q=a(5495),S=a(4242);class JpxStream extends o.DecodeStream{constructor(e,t){super(t);this.stream=e;this.dict=e.dict;this.maybeLength=t}get bytes(){return(0,n.shadow)(this,"bytes",this.stream.getBytes(this.maybeLength))}ensureBuffer(e){}get isAsyncDecoder(){return!0}async decodeImage(e,t,a){if(this.eof)return this.buffer;e||=this.bytes;this.buffer=await S.JpxImage.instance.decode(e,a);this.bufferLength=this.buffer.length;this.eof=!0;return this.buffer}get canAsyncDecodeImageFromBuffer(){return this.stream.isAsync}get isImageStream(){return!0}}class LZWStream extends o.DecodeStream{constructor(e,t,a){super(t);this.stream=e;this.dict=e.dict;this.cachedData=0;this.bitsCached=0;const s=4096,r={earlyChange:a,codeLength:9,nextCode:258,dictionaryValues:new Uint8Array(s),dictionaryLengths:new Uint16Array(s).fill(1,0,256),dictionaryPrevCodes:new Uint16Array(s),currentSequence:new Uint8Array(s),currentSequenceLength:0};r.dictionaryValues.set(n.Util.identity0to256Map,0);this.lzwState=r}readBits(e){let t=this.bitsCached,a=this.cachedData;for(;t<e;){const e=this.stream.getByte();if(-1===e){this.eof=!0;return null}a=a<<8|e;t+=8}this.bitsCached=t-=e;this.cachedData=a;return a>>>t&(1<<e)-1}readBlock(){let e,t,a,n=1024;const{lzwState:s}=this,r=s.earlyChange;let i=s.nextCode;const o=s.dictionaryValues,l=s.dictionaryLengths,c=s.dictionaryPrevCodes;let f=s.codeLength,h=s.prevCode;const u=s.currentSequence;let d=s.currentSequenceLength,m=0,g=this.bufferLength,b=this.ensureBuffer(this.bufferLength+n);for(e=0;e<512;e++){const e=this.readBits(f),s=d>0;if(e<256){u[0]=e;d=1}else{if(!(e>=258)){if(256===e){f=9;i=258;d=0;continue}this.eof=!0;delete this.lzwState;break}if(e<i){d=l[e];for(t=d-1,a=e;t>=0;t--){u[t]=o[a];a=c[a]}}else u[d++]=u[0]}if(s){c[i]=h;l[i]=l[h]+1;o[i]=u[0];i++;f=i+r&i+r-1?f:0|Math.min(Math.log(i+r)/.6931471805599453+1,12)}h=e;m+=d;if(n<m){do{n+=512}while(n<m);b=this.ensureBuffer(this.bufferLength+n)}for(t=0;t<d;t++)b[g++]=u[t]}s.nextCode=i;s.codeLength=f;s.prevCode=h;s.currentSequenceLength=d;this.bufferLength=g}}class PredictorStream extends o.DecodeStream{constructor(e,t,a){super(t);if(!(a instanceof s.Dict))return e;const r=this.predictor=a.get("Predictor")||1;if(r<=1)return e;if(2!==r&&(r<10||r>15))throw new n.FormatError(`Unsupported predictor: ${r}`);this.readBlock=2===r?this.readBlockTiff:this.readBlockPng;this.stream=e;this.dict=e.dict;const i=this.colors=a.get("Colors")||1,o=this.bits=a.get("BPC","BitsPerComponent")||8,l=this.columns=a.get("Columns")||1;this.pixBytes=i*o+7>>3;this.rowBytes=l*i*o+7>>3;return this}readBlockTiff(){const e=this.rowBytes,t=this.bufferLength,a=this.ensureBuffer(t+e),n=this.bits,s=this.colors,r=this.stream.getBytes(e);this.eof=!r.length;if(this.eof)return;let i,o=0,l=0,c=0,f=0,h=t;if(1===n&&1===s)for(i=0;i<e;++i){let e=r[i]^o;e^=e>>1;e^=e>>2;e^=e>>4;o=(1&e)<<7;a[h++]=e}else if(8===n){for(i=0;i<s;++i)a[h++]=r[i];for(;i<e;++i){a[h]=a[h-s]+r[i];h++}}else if(16===n){const t=2*s;for(i=0;i<t;++i)a[h++]=r[i];for(;i<e;i+=2){const e=((255&r[i])<<8)+(255&r[i+1])+((255&a[h-t])<<8)+(255&a[h-t+1]);a[h++]=e>>8&255;a[h++]=255&e}}else{const e=new Uint8Array(s+1),h=(1<<n)-1;let u=0,d=t;const m=this.columns;for(i=0;i<m;++i)for(let t=0;t<s;++t){if(c<n){o=o<<8|255&r[u++];c+=8}e[t]=e[t]+(o>>c-n)&h;c-=n;l=l<<n|e[t];f+=n;if(f>=8){a[d++]=l>>f-8&255;f-=8}}f>0&&(a[d++]=(l<<8-f)+(o&(1<<8-f)-1))}this.bufferLength+=e}readBlockPng(){const e=this.rowBytes,t=this.pixBytes,a=this.stream.getByte(),s=this.stream.getBytes(e);this.eof=!s.length;if(this.eof)return;const r=this.bufferLength,i=this.ensureBuffer(r+e);let o=i.subarray(r-e,r);0===o.length&&(o=new Uint8Array(e));let l,c,f,h=r;switch(a){case 0:for(l=0;l<e;++l)i[h++]=s[l];break;case 1:for(l=0;l<t;++l)i[h++]=s[l];for(;l<e;++l){i[h]=i[h-t]+s[l]&255;h++}break;case 2:for(l=0;l<e;++l)i[h++]=o[l]+s[l]&255;break;case 3:for(l=0;l<t;++l)i[h++]=(o[l]>>1)+s[l];for(;l<e;++l){i[h]=(o[l]+i[h-t]>>1)+s[l]&255;h++}break;case 4:for(l=0;l<t;++l){c=o[l];f=s[l];i[h++]=c+f}for(;l<e;++l){c=o[l];const e=o[l-t],a=i[h-t],n=a+c-e;let r=n-a;r<0&&(r=-r);let u=n-c;u<0&&(u=-u);let d=n-e;d<0&&(d=-d);f=s[l];i[h++]=r<=u&&r<=d?a+f:u<=d?c+f:e+f}break;default:throw new n.FormatError(`Unsupported predictor: ${a}`)}this.bufferLength+=e}}class RunLengthStream extends o.DecodeStream{constructor(e,t){super(t);this.stream=e;this.dict=e.dict}readBlock(){const e=this.stream.getBytes(2);if(e.length<2||128===e[0]){this.eof=!0;return}let t,a=this.bufferLength,n=e[0];if(n<128){t=this.ensureBuffer(a+n+1);t[a++]=e[1];if(n>0){const e=this.stream.getBytes(n);t.set(e,a);a+=n}}else{n=257-n;t=this.ensureBuffer(a+n+1);t.fill(e[1],a,a+n);a+=n}this.bufferLength=a}}function parser_classPrivateFieldInitSpec(e,t,a){parser_checkPrivateRedeclaration(e,t),t.set(e,a)}function parser_checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function parser_classPrivateFieldSet(e,t,a){return e.set(parser_assertClassBrand(e,t),a),a}function parser_classPrivateFieldGet(e,t){return e.get(parser_assertClassBrand(e,t))}function parser_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var _=new WeakMap,C=new WeakMap,F=new WeakSet;class Parser{constructor({lexer:e,xref:t,allowStreams:a=!1,recoveryMode:n=!1}){!function parser_classPrivateMethodInitSpec(e,t){parser_checkPrivateRedeclaration(e,t),t.add(e)}(this,F);parser_classPrivateFieldInitSpec(this,_,null);parser_classPrivateFieldInitSpec(this,C,0);this.lexer=e;this.xref=t;this.allowStreams=a;this.recoveryMode=n;this.refill()}refill(){this.buf1=this.lexer.getObj();this.buf2=this.lexer.getObj()}shift(){if(this.buf2 instanceof s.Cmd&&"ID"===this.buf2.cmd){this.buf1=this.buf2;this.buf2=null}else{this.buf1=this.buf2;this.buf2=this.lexer.getObj()}}tryShift(){try{this.shift();return!0}catch(e){if(e instanceof r.MissingDataException)throw e;return!1}}getObj(e=null){const t=this.buf1;this.shift();if(t instanceof s.Cmd)switch(t.cmd){case"BI":return this.makeInlineImage(e);case"[":const a=[];for(;!(0,s.isCmd)(this.buf1,"]")&&this.buf1!==s.EOF;)a.push(this.getObj(e));if(this.buf1===s.EOF){if(this.recoveryMode)return a;throw new r.ParserEOFException("End of file inside array.")}this.shift();return a;case"<<":const i=new s.Dict(this.xref);for(;!(0,s.isCmd)(this.buf1,">>")&&this.buf1!==s.EOF;){if(!(this.buf1 instanceof s.Name)){(0,n.info)("Malformed dictionary: key must be a name object");this.shift();continue}const t=this.buf1.name;this.shift();if(this.buf1===s.EOF)break;i.set(t,this.getObj(e))}if(this.buf1===s.EOF){if(this.recoveryMode)return i;throw new r.ParserEOFException("End of file inside dictionary.")}if((0,s.isCmd)(this.buf2,"stream"))return this.allowStreams?this.makeStream(i,e):i;this.shift();return i;default:return t}if(Number.isInteger(t)){if(Number.isInteger(this.buf1)&&(0,s.isCmd)(this.buf2,"R")){const e=s.Ref.get(t,this.buf1);this.shift();this.shift();return e}return t}return"string"==typeof t&&e?e.decryptString(t):t}findDefaultInlineStreamEnd(e){const{knownCommands:t}=this.lexer,a=e.pos;let o,l,c=0;for(;-1!==(o=e.getByte());)if(0===c)c=69===o?1:0;else if(1===c)c=73===o?2:0;else if(32===o||10===o||13===o){l=e.pos;const a=e.peekBytes(15),r=a.length;if(0===r)break;for(let e=0;e<r;e++){o=a[e];if((0!==o||0===a[e+1])&&(10!==o&&13!==o&&(o<32||o>127))){c=0;break}}if(2!==c)continue;if(!t){(0,n.warn)("findDefaultInlineStreamEnd - `lexer.knownCommands` is undefined.");continue}const f=new Lexer(new i.Stream(e.peekBytes(75)),t);f._hexStringWarn=n.noopFn;let h=0;for(;;){const e=f.getObj();if(e===s.EOF){c=0;break}if(e instanceof s.Cmd){const a=t[e.cmd];if(!a){c=0;break}if(a.variableArgs?h<=a.numArgs:h===a.numArgs)break;h=0;continue}h++}if(2===c)break}else c=0;if(-1===o){(0,n.warn)("findDefaultInlineStreamEnd: Reached the end of the stream without finding a valid EI marker");if(l){(0,n.warn)('... trying to recover by using the last "EI" occurrence.');e.skip(-(e.pos-l))}}let f=4;e.skip(-f);o=e.peekByte();e.skip(f);(0,r.isWhiteSpace)(o)||f--;return e.pos-f-a}findDCTDecodeInlineStreamEnd(e){const t=e.pos;let a,n,s=!1;for(;-1!==(a=e.getByte());)if(255===a){switch(e.getByte()){case 0:break;case 255:e.skip(-1);break;case 217:s=!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:n=e.getUint16();n>2?e.skip(n-2):e.skip(-2)}if(s)break}return this.inlineStreamSkipEI(e,t,a,"DCTDecode")}findASCII85DecodeInlineStreamEnd(e){const t=e.pos;let a;for(;-1!==(a=e.getByte())&&126!==a;);return this.inlineStreamSkipEI(e,t,a,"ASCII85Decode")}findASCIIHexDecodeInlineStreamEnd(e){const t=e.pos;let a;for(;-1!==(a=e.getByte())&&62!==a;);return this.inlineStreamSkipEI(e,t,a,"ASCIIHexDecode")}inlineStreamSkipEI(e,t,a,s){const r=e.pos-t;if(-1===a){const t="DCTDecode"===s?"EOI":"EOD";(0,n.warn)(`Inline ${s} image stream: ${t} marker not found, searching for /EI/ instead.`);e.skip(-r);return this.findDefaultInlineStreamEnd(e)}let i=0;for(;-1!==(a=e.getByte());)if(0===i)i=69===a?1:0;else if(1===i)i=73===a?2:0;else if(2===i)break;return r}makeInlineImage(e){const t=this.lexer,a=t.stream,r=new s.Dict(this.xref);let i;for(;!(0,s.isCmd)(this.buf1,"ID")&&this.buf1!==s.EOF;){if(!(this.buf1 instanceof s.Name))throw new n.FormatError("Dictionary key must be a name object");const t=this.buf1.name;this.shift();if(this.buf1===s.EOF)break;r.set(t,this.getObj(e))}-1!==t.beginInlineImagePos&&(i=a.pos-t.beginInlineImagePos);const o=r.get("F","Filter");let l;if(o instanceof s.Name)l=o.name;else if(Array.isArray(o)){const e=parser_assertClassBrand(F,this,_fetchIfRef).call(this,o[0]);e instanceof s.Name&&(l=e.name)}const c=a.pos;let f,h;switch(l){case"DCT":case"DCTDecode":f=this.findDCTDecodeInlineStreamEnd(a);break;case"A85":case"ASCII85Decode":f=this.findASCII85DecodeInlineStreamEnd(a);break;case"AHx":case"ASCIIHexDecode":f=this.findASCIIHexDecodeInlineStreamEnd(a);break;default:f=this.findDefaultInlineStreamEnd(a)}if(f<1e3&&i>0){const e=a.pos;a.pos=t.beginInlineImagePos;h=function getInlineImageCacheKey(e){const t=[],a=e.length;let n=0;for(;n<a-1;)t.push(e[n++]<<8|e[n++]);n<a&&t.push(e[n]);return a+"_"+String.fromCharCode.apply(null,t)}(a.getBytes(i+f));a.pos=e;const n=parser_classPrivateFieldGet(_,this)?.get(h);if(n){this.buf2=s.Cmd.get("EI");this.shift();n.reset();return n}}let u=a.makeSubStream(c,f,r);e&&!parser_assertClassBrand(F,this,_hasCryptFilter).call(this,o)&&(u=e.createStream(u,f));u=this.filter(u,r,f,e);u.dict=r;if(h){var d;u.cacheKey=`inline_img_${parser_classPrivateFieldSet(C,this,(d=parser_classPrivateFieldGet(C,this),++d))}`;(parser_classPrivateFieldGet(_,this)??parser_classPrivateFieldSet(_,this,new Map)).set(h,u)}this.buf2=s.Cmd.get("EI");this.shift();return u}makeStream(e,t){const a=this.lexer;let r=a.stream;a.skipToNextLine();const i=r.pos-1;let o=e.get("Length");if(!Number.isInteger(o)){(0,n.info)(`Bad length "${o&&o.toString()}" in stream.`);o=0}r.pos=i+o;a.nextChar();if(this.tryShift()&&(0,s.isCmd)(this.buf2,"endstream"))this.shift();else{o=parser_assertClassBrand(F,this,_findStreamLength).call(this,i);if(o<0)throw new n.FormatError("Missing endstream command.");a.nextChar();this.shift();this.shift()}this.shift();r=r.makeSubStream(i,o,e);const l=e.get("F","Filter");t&&!parser_assertClassBrand(F,this,_hasCryptFilter).call(this,l)&&(r=t.createStream(r,o));r=this.filter(r,e,o,t);r.dict=e;return r}filter(e,t,a,r=null){let i=t.get("F","Filter"),o=t.get("DP","DecodeParms");if(i instanceof s.Name){Array.isArray(o)&&(0,n.warn)("/DecodeParms should not be an Array, when /Filter is a Name.");return this.makeFilter(e,i.name,a,o,r)}let l=a;if(Array.isArray(i)){const t=i,a=o;for(let c=0,f=t.length;c<f;++c){i=parser_assertClassBrand(F,this,_fetchIfRef).call(this,t[c]);if(!(i instanceof s.Name))throw new n.FormatError(`Bad filter name "${i}"`);o=null;Array.isArray(a)&&c in a&&(o=parser_assertClassBrand(F,this,_fetchIfRef).call(this,a[c]));e=this.makeFilter(e,i.name,l,o,r);l=null}}return e}makeFilter(e,t,a,o,l=null){if(0===a){(0,n.warn)(`Empty "${t}" stream.`);return new i.NullStream}try{switch(t){case"Fl":case"FlateDecode":return o?new PredictorStream(new FlateStream(e,a),a,o):new FlateStream(e,a);case"LZW":case"LZWDecode":let t=1;if(o){o.has("EarlyChange")&&(t=o.get("EarlyChange"));return new PredictorStream(new LZWStream(e,a,t),a,o)}return new LZWStream(e,a,t);case"DCT":case"DCTDecode":return new q.JpegStream(e,a,o);case"JPX":case"JPXDecode":return new JpxStream(e,a);case"A85":case"ASCII85Decode":return new Ascii85Stream(e,a);case"AHx":case"ASCIIHexDecode":return new AsciiHexStream(e,a);case"CCF":case"CCITTFaxDecode":return new CCITTFaxStream(e,a,o);case"RL":case"RunLengthDecode":return new RunLengthStream(e,a);case"JBIG2Decode":return new Jbig2Stream(e,a,o);case"BrotliDecode":return o?new PredictorStream(new c.BrotliStream(e,a),a,o):new c.BrotliStream(e,a);case"Crypt":{if(!l){(0,n.warn)('Filter "Crypt" is missing a cipher transform.');return e}const t=o instanceof s.Dict?o.get("Name"):null,r=t instanceof s.Name?t:s.Name.get("Identity");return l.createStream(e,a,r)}}(0,n.warn)(`Filter "${t}" is not supported.`);return e}catch(e){if(e instanceof r.MissingDataException)throw e;(0,n.warn)(`Invalid stream: "${e}"`);return new i.NullStream}}}function _fetchIfRef(e){return this.xref?this.xref.fetchIfRef(e):e}function _hasCryptFilter(e){return Array.isArray(e)?e.some(e=>(0,s.isName)(parser_assertClassBrand(F,this,_fetchIfRef).call(this,e),"Crypt")):(0,s.isName)(e,"Crypt")}function _findStreamLength(e){const{stream:t}=this.lexer;t.pos=e;const a=new Uint8Array([101,110,100]),s=a.length,i=[new Uint8Array([115,116,114,101,97,109]),new Uint8Array([115,116,101,97,109]),new Uint8Array([115,116,114,101,97])],o=9-s;for(;t.pos<t.end;){const l=t.peekBytes(2048),c=l.length-9;if(c<=0)break;let f=0;for(;f<c;){let c=0;for(;c<s&&l[f+c]===a[c];)c++;if(c>=s){let s=!1;for(const e of i){const t=e.length;let i=0;for(;i<t&&l[f+c+i]===e[i];)i++;if(i>=o){s=!0;break}if(i>=t){const t=l[f+c+i];if((0,r.isWhiteSpace)(t)){(0,n.info)(`Found "${(0,n.bytesToString)([...a,...e])}" when searching for endstream command.`);s=!0}break}}if(s){t.pos+=f;return t.pos-e}}f++}t.pos+=c}return-1}const x=[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 toHexDigit(e){return e>=48&&e<=57?15&e:e>=65&&e<=70||e>=97&&e<=102?9+(15&e):-1}class Lexer{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=0,a=1;if(45===e){a=-1;e=this.nextChar();45===e&&(e=this.nextChar())}else 43===e&&(e=this.nextChar());if(10===e||13===e)do{e=this.nextChar()}while(10===e||13===e);if(46===e){t=10;e=this.nextChar()}if(e<48||e>57){const t=`Invalid number: ${String.fromCharCode(e)} (charCode ${e})`;if((0,r.isWhiteSpace)(e)||40===e||60===e||-1===e){(0,n.info)(`Lexer.getNumber - "${t}".`);return 0}throw new n.FormatError(t)}let s=e-48;for(;(e=this.nextChar())>=0;)if(e>=48&&e<=57){0!==t&&(t*=10);s=10*s+(e-48)}else if(46===e){if(0!==t)break;t=1}else{if(45!==e)break;(0,n.warn)("Badly formatted number: minus sign in the middle")}0!==t&&(s/=t);return a*s}getString(){let e=1,t=!1;const a=this.strBuf;a.length=0;let s=this.nextChar();for(;;){let r=!1;switch(0|s){case-1:(0,n.warn)("Unterminated string");t=!0;break;case 40:++e;a.push("(");break;case 41:if(0===--e){this.nextChar();t=!0}else a.push(")");break;case 92:s=this.nextChar();switch(s){case-1:(0,n.warn)("Unterminated string");t=!0;break;case 110:a.push("\n");break;case 114:a.push("\r");break;case 116:a.push("\t");break;case 98:a.push("\b");break;case 102:a.push("\f");break;case 92:a.push("\\");break;case 40:a.push("(");break;case 41:a.push(")");break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:let e=15&s;s=this.nextChar();r=!0;if(s>=48&&s<=55){e=(e<<3)+(15&s);s=this.nextChar();if(s>=48&&s<=55){r=!1;e=(e<<3)+(15&s)}}a.push(String.fromCharCode(e));break;case 13:10===this.peekChar()&&this.nextChar();break;case 10:break;default:a.push(String.fromCharCode(s))}break;default:a.push(String.fromCharCode(s))}if(t)break;r||(s=this.nextChar())}return a.join("")}getName(){let e,t;const a=this.strBuf;a.length=0;for(;(e=this.nextChar())>=0&&!x[e];)if(35===e){e=this.nextChar();if(x[e]){(0,n.warn)("Lexer_getName: NUMBER SIGN (#) should be followed by a hexadecimal number.");a.push("#");break}const s=toHexDigit(e);if(-1!==s){t=e;e=this.nextChar();const r=toHexDigit(e);if(-1===r){(0,n.warn)(`Lexer_getName: Illegal digit (${String.fromCharCode(e)}) in hexadecimal number.`);a.push("#",String.fromCharCode(t));if(x[e])break;a.push(String.fromCharCode(e));continue}a.push(String.fromCharCode(s<<4|r))}else a.push("#",String.fromCharCode(e))}else a.push(String.fromCharCode(e));a.length>127&&(0,n.warn)(`Name token is longer than allowed by the spec: ${a.length}`);return s.Name.get(a.join(""))}_hexStringWarn(e){5!==this._hexStringNumWarn++?this._hexStringNumWarn>5||(0,n.warn)(`getHexString - ignoring invalid character: ${e}`):(0,n.warn)("getHexString - ignoring additional invalid characters.")}getHexString(){const e=this.strBuf;e.length=0;let t=this.currentChar,a=-1,s=-1;this._hexStringNumWarn=0;for(;;){if(t<0){(0,n.warn)("Unterminated hex string");break}if(62===t){this.nextChar();break}if(1!==x[t]){s=toHexDigit(t);if(-1===s)this._hexStringWarn(t);else if(-1===a)a=s;else{e.push(String.fromCharCode(a<<4|s));a=-1}t=this.nextChar()}else t=this.nextChar()}-1!==a&&e.push(String.fromCharCode(a<<4));return e.join("")}getObj(){let e=!1,t=this.currentChar;for(;;){if(t<0)return s.EOF;if(e)10!==t&&13!==t||(e=!1);else if(37===t)e=!0;else if(1!==x[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:this.nextChar();return s.Cmd.get("[");case 93:this.nextChar();return s.Cmd.get("]");case 60:t=this.nextChar();if(60===t){this.nextChar();return s.Cmd.get("<<")}return this.getHexString();case 62:t=this.nextChar();if(62===t){this.nextChar();return s.Cmd.get(">>")}return s.Cmd.get(">");case 123:this.nextChar();return s.Cmd.get("{");case 125:this.nextChar();return s.Cmd.get("}");case 41:this.nextChar();throw new n.FormatError(`Illegal character: ${t}`)}let a=String.fromCharCode(t);if(t<32||t>127){const e=this.peekChar();if(e>=32&&e<=127){this.nextChar();return s.Cmd.get(a)}}const r=this.knownCommands;let i=void 0!==r?.[a];for(;(t=this.nextChar())>=0&&!x[t];){const e=a+String.fromCharCode(t);if(i&&void 0===r[e])break;if(128===a.length)throw new n.FormatError(`Command token too long: ${a.length}`);a=e;i=void 0!==r?.[a]}if("true"===a)return!0;if("false"===a)return!1;if("null"===a)return null;"BI"===a&&(this.beginInlineImagePos=this.stream.pos);return s.Cmd.get(a)}skipToNextLine(){let e=this.currentChar;for(;e>=0;){if(13===e){e=this.nextChar();10===e&&this.nextChar();break}if(10===e){this.nextChar();break}e=this.nextChar()}}}class Linearization{static create(e){function getInt(e,t,a=!1){const n=e.get(t);if(Number.isInteger(n)&&(a?n>=0:n>0))return n;throw new Error(`The "${t}" parameter in the linearization dictionary is invalid.`)}const t=new Parser({lexer:new Lexer(e),xref:null}),a=t.getObj(),n=t.getObj(),r=t.getObj(),i=t.getObj();let o,l;if(!(Number.isInteger(a)&&Number.isInteger(n)&&(0,s.isCmd)(r,"obj")&&i instanceof s.Dict&&"number"==typeof(o=i.get("Linearized"))&&o>0))return null;if((l=getInt(i,"L"))!==e.length)throw new Error('The "L" parameter in the linearization dictionary does not equal the stream length.');return{length:l,hints:function getHints(e){const t=e.get("H");let a;if(Array.isArray(t)&&(2===(a=t.length)||4===a)){for(let e=0;e<a;e++){const a=t[e];if(!(Number.isInteger(a)&&a>0))throw new Error(`Hint (${e}) in the linearization dictionary is invalid.`)}return t}throw new Error("Hint array in the linearization dictionary is invalid.")}(i),objectNumberFirst:getInt(i,"O"),endFirst:getInt(i,"E"),numPages:getInt(i,"N"),mainXRefEntriesOffset:getInt(i,"T"),pageFirst:i.has("P")?getInt(i,"P",!0):0}}}},918(e,t,a){a.d(t,{Pattern:()=>Pattern,clearPatternCaches:()=>clearPatternCaches,getTilingPatternIR:()=>getTilingPatternIR});var n=a(1723),s=a(5399),r=a(1834),i=a(5719),o=a(4566);function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}const l=1,c=2,f=3,h=4,u=5,d=6,m=7;function getColorConversionBatchSize(e,t){return(0,o.MathClamp)(Math.floor(65536/t),1,e)}class Pattern{constructor(){(0,n.unreachable)("Cannot initialize Pattern.")}static async parseShading(e,t,a,o,c,f){const u=e instanceof r.BaseStream?e.dict:e,d=u.get("ShadingType");try{if(!Number.isInteger(d)||d<l||d>m)throw new n.FormatError("Unsupported ShadingType: "+d);const s=d>=h;if(s&&!(e instanceof r.BaseStream))throw new n.FormatError("Mesh data is not a stream");const g=await i.ColorSpaceUtils.parse({cs:u.getRaw("CS")||u.getRaw("ColorSpace"),xref:t,resources:a,pdfFunctionFactory:o,globalColorSpaceCache:c,localColorSpaceCache:f}),b=u.getRaw("Function"),w=d===l;if(w&&!b)throw new n.FormatError("FunctionBasedShading: missing /Function");const j=!s||b?await async function parseShadingFunction(e,t,a,s){const r=await t.create(e,!0);if(r.numInputs!==a||r.numOutputs!==s)throw new n.FormatError(`Invalid shading function: expected ${a}-in ${s}-out, got ${r.numInputs}-in ${r.numOutputs}-out.`);return r}(b,o,w?2:1,g.numComps):null;return w?new FunctionBasedShading(u,g,j):s?new MeshShading(e,g,j):new RadialAxialShading(u,g,j)}catch(e){if(e instanceof s.MissingDataException)throw e;(0,n.warn)(e);return new DummyShading}}}class BaseShading{getIR(){(0,n.unreachable)("Abstract method `getIR` called.")}}_defineProperty(BaseShading,"SMALL_NUMBER",1e-6);class RadialAxialShading extends BaseShading{constructor(e,t,a){super();this.shadingType=e.get("ShadingType");let r=0;this.shadingType===c?r=4:this.shadingType===f&&(r=6);this.coordsArr=e.getArray("Coords");if(!(0,s.isNumberArray)(this.coordsArr,r))throw new n.FormatError("RadialAxialShading: Invalid /Coords array.");this.bbox=(0,s.lookupNormalRect)(e.getArray("BBox"),null);const i=e.getArray("Domain"),[o,l]=(0,s.isNumberArray)(i,2)?i:[0,1],h=e.getArray("Extend"),[u,d]=(0,s.isBooleanArray)(h,2)?h:[!1,!1],m=840,g=(l-o)/m,b=this.colorStops=[];if(o>=l||g<=0){(0,n.info)("Bad shading domain.");return}const{numComps:w}=t,j=new Float32Array(1),y=getColorConversionBatchSize(m,w),v=new Float32Array(y*w),k=new Uint8ClampedArray(2520);for(let e=0;e<m;e+=y){const n=Math.min(y,m-e);for(let t=0,s=0;t<n;t++,s+=w){j[0]=o+(e+t)*g;a(j,0,v,s)}t.getRgbItems(v,n,k,3*e,0)}let q=0,S=k[0],_=k[1],C=k[2];b.push([0,n.Util.makeHexColor(S,_,C)]);let F=1,x=k[3],T=k[4],O=k[5],M=x-S+1,R=T-_+1,D=O-C+1,H=x-S-1,N=T-_-1,E=O-C-1;for(let e=2;e<m;e++){const t=3*e,a=k[t],s=k[t+1],r=k[t+2],i=e-q;M=Math.min(M,(a-S+1)/i);R=Math.min(R,(s-_+1)/i);D=Math.min(D,(r-C+1)/i);H=Math.max(H,(a-S-1)/i);N=Math.max(N,(s-_-1)/i);E=Math.max(E,(r-C-1)/i);if(!(H<=M&&N<=R&&E<=D)){const e=n.Util.makeHexColor(x,T,O);b.push([F/m,e]);M=a-x+1;R=s-T+1;D=r-O+1;H=a-x-1;N=s-T-1;E=r-O-1;q=F;S=x;_=T;C=O}F=e;x=a;T=s;O=r}b.push([1,n.Util.makeHexColor(x,T,O)]);const z=e.has("Background")?t.getRgbHex(e.get("Background"),0):"transparent";if(!u){b.unshift([0,z]);b[1][0]+=BaseShading.SMALL_NUMBER}if(!d){b.at(-1)[0]-=BaseShading.SMALL_NUMBER;b.push([1,z])}}getIR(){const{coordsArr:e,shadingType:t}=this;let a,s,r,i,o;if(t===c){s=[e[0],e[1]];r=[e[2],e[3]];i=null;o=null;a="axial"}else if(t===f){s=[e[0],e[1]];r=[e[3],e[4]];i=e[2];o=e[5];a="radial"}else(0,n.unreachable)(`getPattern type unknown: ${t}`);return["RadialAxial",a,this.bbox,this.colorStops,s,r,i,o]}}function buildMeshVertexData(e,t,a){let s=0;for(const e of a)if(e.type===n.MeshFigureType.TRIANGLES)s+=e.coords.length;else if(e.type===n.MeshFigureType.LATTICE){const t=e.verticesPerRow;s+=(Math.floor(e.coords.length/t)-1)*(t-1)*6}const r=new Float32Array(2*s),i=new Uint8Array(4*s);let o=0,l=0;const addVertex=(a,n)=>{r[o++]=e[2*a];r[o++]=e[2*a+1];i[l++]=t[4*n];i[l++]=t[4*n+1];i[l++]=t[4*n+2];l++};for(const e of a){const t=e.coords,a=e.colors;if(e.type===n.MeshFigureType.TRIANGLES)for(let e=0,n=t.length;e<n;e++)addVertex(t[e],a[e]);else if(e.type===n.MeshFigureType.LATTICE){const n=e.verticesPerRow,s=Math.floor(t.length/n)-1,r=n-1;for(let e=0;e<s;e++){let s=e*n;for(let e=0;e<r;e++,s++){addVertex(t[s],a[s]);addVertex(t[s+1],a[s+1]);addVertex(t[s+n],a[s+n]);addVertex(t[s+n+1],a[s+n+1]);addVertex(t[s+1],a[s+1]);addVertex(t[s+n],a[s+n])}}}}return{posData:r,colData:i,vertexCount:s}}class FunctionBasedShading extends BaseShading{constructor(e,t,a){super();this.bbox=(0,s.lookupNormalRect)(e.getArray("BBox"),null);this.background=e.has("Background")?t.getRgb(e.get("Background"),0):null;const[r,i,l,c]=(0,s.lookupRect)(e.getArray("Domain"),[0,1,0,1]),f=(0,s.lookupMatrix)(e.getArray("Matrix"),s.IDENTITY_MATRIX);this.bounds=n.BBOX_INIT.slice();n.Util.axialAlignedBoundingBox([r,l,i,c],f,this.bounds);const h=this.bounds[2]-this.bounds[0],u=this.bounds[3]-this.bounds[1],d=(0,o.MathClamp)(Math.ceil(h),1,FunctionBasedShading.MAX_STEP_COUNT),m=(0,o.MathClamp)(Math.ceil(u),1,FunctionBasedShading.MAX_STEP_COUNT),g=d+1,b=(m+1)*g,w=this.coords=new Float32Array(2*b),j=this.colors=new Uint8ClampedArray(4*b),{numComps:y}=t,v=new Float32Array(2),k=getColorConversionBatchSize(b,y),q=new Float32Array(k*y),S=(i-r)/d,_=(c-l)/m,C=S/2,F=_/2;let x=0,T=0,O=0,M=0;for(let e=0;e<=m;e++){const s=l+_*e;v[1]=e===m?s-F:s;for(let e=0;e<=d;e++){const i=r+S*e;v[0]=e===d?i-C:i;a(v,0,q,T);T+=y;O++;w[x]=i;w[x+1]=s;n.Util.applyTransform(w,f,x);x+=2;if(O===k){t.getRgbItems(q,O,j,M,1);M+=4*O;T=O=0}}}O>0&&t.getRgbItems(q,O,j,M,1);const R=new Uint32Array(b);for(let e=0;e<b;e++)R[e]=e;this.figures=[{type:n.MeshFigureType.LATTICE,coords:R,colors:new Uint32Array(R),verticesPerRow:g}]}getIR(){const{posData:e,colData:t,vertexCount:a}=buildMeshVertexData(this.coords,this.colors,this.figures);return["Mesh",l,e,t,a,this.bounds,this.bbox,this.background]}}_defineProperty(FunctionBasedShading,"MAX_STEP_COUNT",512);class MeshStreamReader{constructor(e,t){this.stream=e;this.context=t;this.buffer=0;this.bufferLength=0;const a=t.numComps;this.tmpCompsBuf=new Float32Array(a);const n=t.colorSpace.numComps;this.tmpCsCompsBuf=t.colorFn?new Float32Array(n):this.tmpCompsBuf}get hasData(){if(this.stream.end)return this.stream.pos<this.stream.end;if(this.bufferLength>0)return!0;const e=this.stream.getByte();if(e<0)return!1;this.buffer=e;this.bufferLength=8;return!0}readBits(e){const{stream:t}=this;let{buffer:a,bufferLength:n}=this;if(32===e){if(0===n)return t.getInt32()>>>0;a=a<<24|t.getByte()<<16|t.getByte()<<8|t.getByte();const e=t.getByte();this.buffer=e&(1<<n)-1;return(a<<8-n|(255&e)>>n)>>>0}if(8===e&&0===n)return t.getByte();for(;n<e;){a=a<<8|t.getByte();n+=8}n-=e;this.bufferLength=n;this.buffer=a&(1<<n)-1;return a>>n}align(){this.buffer=0;this.bufferLength=0}readFlag(){return this.readBits(this.context.bitsPerFlag)}readCoordinate(){const{bitsPerCoordinate:e,decode:t}=this.context,a=this.readBits(e),n=this.readBits(e),s=e<32?1/((1<<e)-1):2.3283064365386963e-10;return[a*s*(t[1]-t[0])+t[0],n*s*(t[3]-t[2])+t[2]]}readComponents(){const{bitsPerComponent:e,colorFn:t,colorSpace:a,decode:n,numComps:s}=this.context,r=e<32?1/((1<<e)-1):2.3283064365386963e-10,i=this.tmpCompsBuf;for(let t=0,a=4;t<s;t++,a+=2){const s=this.readBits(e);i[t]=s*r*(n[a+1]-n[a])+n[a]}const o=this.tmpCsCompsBuf;t?.(i,0,o,0);return a.getRgb(o,0)}}let g=null;function getB(e){return(g??=new Map).getOrInsertComputed(e,()=>Array.from({length:e+1},(t,a)=>{const n=a/e,s=1-n;return new Float32Array([s**3,3*n*s**2,3*n**2*s,n**3])}))}function clearPatternCaches(){g?.clear()}class MeshShading extends BaseShading{constructor(e,t,a){super();const r=e.dict;this.shadingType=r.get("ShadingType");this.bbox=(0,s.lookupNormalRect)(r.getArray("BBox"),null);this.background=r.has("Background")?t.getRgb(r.get("Background"),0):null;this.coords=[];this.colors=[];this.figures=[];const i={bitsPerCoordinate:r.get("BitsPerCoordinate"),bitsPerComponent:r.get("BitsPerComponent"),bitsPerFlag:r.get("BitsPerFlag"),decode:r.getArray("Decode"),colorFn:a,colorSpace:t,numComps:a?1:t.numComps},o=new MeshStreamReader(e,i);let l=!1;switch(this.shadingType){case h:this._decodeType4Shading(o);break;case u:const e=0|r.get("VerticesPerRow");if(e<2)throw new n.FormatError("Invalid VerticesPerRow");this._decodeType5Shading(o,e);break;case d:this._decodeType6Shading(o);l=!0;break;case m:this._decodeType7Shading(o);l=!0;break;default:(0,n.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){const t=this.coords,a=this.colors,s=[],r=[];let i=0;for(;e.hasData;){const o=e.readFlag(),l=e.readCoordinate(),c=e.readComponents();if(0===i){if(!(0<=o&&o<=2))throw new n.FormatError("Unknown type4 flag");switch(o){case 0:i=3;break;case 1:r.push(r.at(-2),r.at(-1));i=1;break;case 2:r.push(r.at(-3),r.at(-1));i=1}s.push(o)}r.push(t.length);t.push(l);a.push(c);i--;e.align()}this.figures.push({type:n.MeshFigureType.TRIANGLES,coords:new Int32Array(r),colors:new Int32Array(r)})}_decodeType5Shading(e,t){const a=this.coords,s=this.colors,r=[];for(;e.hasData;){const t=e.readCoordinate(),n=e.readComponents();r.push(a.length);a.push(t);s.push(n)}this.figures.push({type:n.MeshFigureType.LATTICE,coords:new Int32Array(r),colors:new Int32Array(r),verticesPerRow:t})}_decodeType6Shading(e){const t=this.coords,a=this.colors,s=new Int32Array(16),r=new Int32Array(4);for(;e.hasData;){const i=e.readFlag();if(!(0<=i&&i<=3))throw new n.FormatError("Unknown type6 flag");const o=t.length;for(let a=0,n=0!==i?8:12;a<n;a++)t.push(e.readCoordinate());const l=a.length;for(let t=0,n=0!==i?2:4;t<n;t++)a.push(e.readComponents());let c,f,h,u;switch(i){case 0:s[12]=o+3;s[13]=o+4;s[14]=o+5;s[15]=o+6;s[8]=o+2;s[11]=o+7;s[4]=o+1;s[7]=o+8;s[0]=o;s[1]=o+11;s[2]=o+10;s[3]=o+9;r[2]=l+1;r[3]=l+2;r[0]=l;r[1]=l+3;break;case 1:c=s[12];f=s[13];h=s[14];u=s[15];s[12]=u;s[13]=o+0;s[14]=o+1;s[15]=o+2;s[8]=h;s[11]=o+3;s[4]=f;s[7]=o+4;s[0]=c;s[1]=o+7;s[2]=o+6;s[3]=o+5;c=r[2];f=r[3];r[2]=f;r[3]=l;r[0]=c;r[1]=l+1;break;case 2:c=s[15];f=s[11];s[12]=s[3];s[13]=o+0;s[14]=o+1;s[15]=o+2;s[8]=s[7];s[11]=o+3;s[4]=f;s[7]=o+4;s[0]=c;s[1]=o+7;s[2]=o+6;s[3]=o+5;c=r[3];r[2]=r[1];r[3]=l;r[0]=c;r[1]=l+1;break;case 3:s[12]=s[0];s[13]=o+0;s[14]=o+1;s[15]=o+2;s[8]=s[1];s[11]=o+3;s[4]=s[2];s[7]=o+4;s[0]=s[3];s[1]=o+7;s[2]=o+6;s[3]=o+5;r[2]=r[0];r[3]=l;r[0]=r[1];r[1]=l+1}s[5]=t.length;t.push([(-4*t[s[0]][0]-t[s[15]][0]+6*(t[s[4]][0]+t[s[1]][0])-2*(t[s[12]][0]+t[s[3]][0])+3*(t[s[13]][0]+t[s[7]][0]))/9,(-4*t[s[0]][1]-t[s[15]][1]+6*(t[s[4]][1]+t[s[1]][1])-2*(t[s[12]][1]+t[s[3]][1])+3*(t[s[13]][1]+t[s[7]][1]))/9]);s[6]=t.length;t.push([(-4*t[s[3]][0]-t[s[12]][0]+6*(t[s[2]][0]+t[s[7]][0])-2*(t[s[0]][0]+t[s[15]][0])+3*(t[s[4]][0]+t[s[14]][0]))/9,(-4*t[s[3]][1]-t[s[12]][1]+6*(t[s[2]][1]+t[s[7]][1])-2*(t[s[0]][1]+t[s[15]][1])+3*(t[s[4]][1]+t[s[14]][1]))/9]);s[9]=t.length;t.push([(-4*t[s[12]][0]-t[s[3]][0]+6*(t[s[8]][0]+t[s[13]][0])-2*(t[s[0]][0]+t[s[15]][0])+3*(t[s[11]][0]+t[s[1]][0]))/9,(-4*t[s[12]][1]-t[s[3]][1]+6*(t[s[8]][1]+t[s[13]][1])-2*(t[s[0]][1]+t[s[15]][1])+3*(t[s[11]][1]+t[s[1]][1]))/9]);s[10]=t.length;t.push([(-4*t[s[15]][0]-t[s[0]][0]+6*(t[s[11]][0]+t[s[14]][0])-2*(t[s[12]][0]+t[s[3]][0])+3*(t[s[2]][0]+t[s[8]][0]))/9,(-4*t[s[15]][1]-t[s[0]][1]+6*(t[s[11]][1]+t[s[14]][1])-2*(t[s[12]][1]+t[s[3]][1])+3*(t[s[2]][1]+t[s[8]][1]))/9]);this.figures.push({type:n.MeshFigureType.PATCH,coords:new Int32Array(s),colors:new Int32Array(r)})}}_decodeType7Shading(e){const t=this.coords,a=this.colors,s=new Int32Array(16),r=new Int32Array(4);for(;e.hasData;){const i=e.readFlag();if(!(0<=i&&i<=3))throw new n.FormatError("Unknown type7 flag");const o=t.length;for(let a=0,n=0!==i?12:16;a<n;a++)t.push(e.readCoordinate());const l=a.length;for(let t=0,n=0!==i?2:4;t<n;t++)a.push(e.readComponents());let c,f,h,u;switch(i){case 0:s[12]=o+3;s[13]=o+4;s[14]=o+5;s[15]=o+6;s[8]=o+2;s[9]=o+13;s[10]=o+14;s[11]=o+7;s[4]=o+1;s[5]=o+12;s[6]=o+15;s[7]=o+8;s[0]=o;s[1]=o+11;s[2]=o+10;s[3]=o+9;r[2]=l+1;r[3]=l+2;r[0]=l;r[1]=l+3;break;case 1:c=s[12];f=s[13];h=s[14];u=s[15];s[12]=u;s[13]=o+0;s[14]=o+1;s[15]=o+2;s[8]=h;s[9]=o+9;s[10]=o+10;s[11]=o+3;s[4]=f;s[5]=o+8;s[6]=o+11;s[7]=o+4;s[0]=c;s[1]=o+7;s[2]=o+6;s[3]=o+5;c=r[2];f=r[3];r[2]=f;r[3]=l;r[0]=c;r[1]=l+1;break;case 2:c=s[15];f=s[11];s[12]=s[3];s[13]=o+0;s[14]=o+1;s[15]=o+2;s[8]=s[7];s[9]=o+9;s[10]=o+10;s[11]=o+3;s[4]=f;s[5]=o+8;s[6]=o+11;s[7]=o+4;s[0]=c;s[1]=o+7;s[2]=o+6;s[3]=o+5;c=r[3];r[2]=r[1];r[3]=l;r[0]=c;r[1]=l+1;break;case 3:s[12]=s[0];s[13]=o+0;s[14]=o+1;s[15]=o+2;s[8]=s[1];s[9]=o+9;s[10]=o+10;s[11]=o+3;s[4]=s[2];s[5]=o+8;s[6]=o+11;s[7]=o+4;s[0]=s[3];s[1]=o+7;s[2]=o+6;s[3]=o+5;r[2]=r[0];r[3]=l;r[0]=r[1];r[1]=l+1}this.figures.push({type:n.MeshFigureType.PATCH,coords:new Int32Array(s),colors:new Int32Array(r)})}}_buildFigureFromPatch(e){const t=this.figures[e];(0,n.assert)(t.type===n.MeshFigureType.PATCH,"Unexpected patch mesh figure");const a=this.coords,s=this.colors,r=t.coords,i=t.colors,l=Math.min(a[r[0]][0],a[r[3]][0],a[r[12]][0],a[r[15]][0]),c=Math.min(a[r[0]][1],a[r[3]][1],a[r[12]][1],a[r[15]][1]),f=Math.max(a[r[0]][0],a[r[3]][0],a[r[12]][0],a[r[15]][0]),h=Math.max(a[r[0]][1],a[r[3]][1],a[r[12]][1],a[r[15]][1]);let u=Math.ceil((f-l)*MeshShading.TRIANGLE_DENSITY/(this.bounds[2]-this.bounds[0]));u=(0,o.MathClamp)(u,MeshShading.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,MeshShading.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);let d=Math.ceil((h-c)*MeshShading.TRIANGLE_DENSITY/(this.bounds[3]-this.bounds[1]));d=(0,o.MathClamp)(d,MeshShading.MIN_SPLIT_PATCH_CHUNKS_AMOUNT,MeshShading.MAX_SPLIT_PATCH_CHUNKS_AMOUNT);const m=u+1,g=new Int32Array((d+1)*m),b=new Int32Array((d+1)*m);let w=0;const j=new Uint8Array(3),y=new Uint8Array(3),v=s[i[0]],k=s[i[1]],q=s[i[2]],S=s[i[3]],_=getB(d),C=getB(u);for(let e=0;e<=d;e++){j[0]=(v[0]*(d-e)+q[0]*e)/d|0;j[1]=(v[1]*(d-e)+q[1]*e)/d|0;j[2]=(v[2]*(d-e)+q[2]*e)/d|0;y[0]=(k[0]*(d-e)+S[0]*e)/d|0;y[1]=(k[1]*(d-e)+S[1]*e)/d|0;y[2]=(k[2]*(d-e)+S[2]*e)/d|0;for(let t=0;t<=u;t++,w++){if(!(0!==e&&e!==d||0!==t&&t!==u))continue;let n=0,i=0,o=0;for(let s=0;s<=3;s++)for(let l=0;l<=3;l++,o++){const c=_[e][s]*C[t][l];n+=a[r[o]][0]*c;i+=a[r[o]][1]*c}g[w]=a.length;a.push([n,i]);b[w]=s.length;const l=new Uint8Array(3);l[0]=(j[0]*(u-t)+y[0]*t)/u|0;l[1]=(j[1]*(u-t)+y[1]*t)/u|0;l[2]=(j[2]*(u-t)+y[2]*t)/u|0;s.push(l)}}g[0]=r[0];b[0]=i[0];g[u]=r[3];b[u]=i[1];g[m*d]=r[12];b[m*d]=i[2];g[m*d+u]=r[15];b[m*d+u]=i[3];this.figures[e]={type:n.MeshFigureType.LATTICE,coords:g,colors:b,verticesPerRow:m}}_updateBounds(){!function meshUpdateBounds(e){const t=e.coords,a=n.BBOX_INIT.slice();for(let e=0,s=t.length;e<s;e++)n.Util.pointBoundingBox(t[e][0],t[e][1],a);e.bounds=a}(this)}_packData(){!function meshPackData(e){const t=e.coords,a=new Float32Array(2*t.length);for(let e=0,n=t.length;e<n;e++)a.set(t[e],2*e);e.coords=a;const n=e.colors,s=new Uint8Array(4*n.length);for(let e=0,t=n.length;e<t;e++)s.set(n[e],4*e);e.colors=s;for(const t of e.figures){t.coords=new Uint32Array(t.coords);t.colors=new Uint32Array(t.colors)}}(this)}getIR(){const{posData:e,colData:t,vertexCount:a}=buildMeshVertexData(this.coords,this.colors,this.figures);return["Mesh",this.shadingType,e,t,a,this.bounds,this.bbox,this.background]}}_defineProperty(MeshShading,"MIN_SPLIT_PATCH_CHUNKS_AMOUNT",3);_defineProperty(MeshShading,"MAX_SPLIT_PATCH_CHUNKS_AMOUNT",20);_defineProperty(MeshShading,"TRIANGLE_DENSITY",20);class DummyShading extends BaseShading{getIR(){return["Dummy"]}}function getTilingPatternIR(e,t,a,r=!0){const i=(0,s.lookupMatrix)(t.getArray("Matrix"),s.IDENTITY_MATRIX),o=(0,s.lookupNormalRect)(t.getArray("BBox"),null);if(!o||o[2]-o[0]===0||o[3]-o[1]===0)throw new n.FormatError("Invalid getTilingPatternIR /BBox array.");const l=t.get("XStep");if("number"!=typeof l)throw new n.FormatError("Invalid getTilingPatternIR /XStep value.");const c=t.get("YStep");if("number"!=typeof c)throw new n.FormatError("Invalid getTilingPatternIR /YStep value.");const f=t.get("PaintType");if(!Number.isInteger(f))throw new n.FormatError("Invalid getTilingPatternIR /PaintType value.");const h=t.get("TilingType");if(!Number.isInteger(h))throw new n.FormatError("Invalid getTilingPatternIR /TilingType value.");return["TilingPattern",a,e,i,o,l,c,f,h,r]}},6737(e,t,a){a.d(t,{buildPostScriptFunction:()=>buildPostScriptFunction});var n,s=a(1723);function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const r={number:0,lbrace:1,rbrace:2,true:3,false:4,add:5,sub:6,mul:7,div:8,idiv:9,mod:10,exp:11,eq:12,ne:13,gt:14,ge:15,lt:16,le:17,and:18,or:19,xor:20,bitshift:21,abs:22,neg:23,ceiling:24,floor:25,round:26,truncate:27,not:28,sqrt:29,sin:30,cos:31,ln:32,log:33,atan:34,cvi:35,cvr:36,dup:37,exch:38,pop:39,copy:40,index:41,roll:42,if:43,ifelse:44,eof:45,min:46,max:47};class Token{constructor(e,t=null){this.id=e;this.value=t}}class Lexer{constructor(e){o._||_initSingletons.call(Lexer);this.data=e;this.pos=0;this.len=e.length;this._numberPattern=/[+-]?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?/iy;this._identifierPattern=/[a-z]+/y}_skipComment(){const e=this.data.indexOf("\n",this.pos),t=this.data.indexOf("\r",this.pos),a=Math.min(e<0?this.len:e,t<0?this.len:t);this.pos=Math.min(a+1,this.len)}_getNumber(){this._numberPattern.lastIndex=this.pos;const e=this._numberPattern.exec(this.data);if(!e){this.pos++;return new Token(r.number,0)}const t=parseFloat(e[0]);this.pos=this._numberPattern.lastIndex;return new Token(r.number,Number.isFinite(t)?t:0)}_getOperator(){this._identifierPattern.lastIndex=this.pos;const e=this._identifierPattern.exec(this.data);if(!e){this.pos++;return new Token(r.number,0)}this.pos=this._identifierPattern.lastIndex;const t=e[0];return l._[t]??new Token(r.number,0)}next(){for(;this.pos<this.len;){const e=this.data.charCodeAt(this.pos++);switch(e){case 0:case 9:case 10:case 12:case 13:case 32:break;case 37:this._skipComment();break;case 123:return o._.lbrace;case 125:return o._.rbrace;case 43:case 45:case 46:this.pos--;return this._getNumber();default:if(e>=48&&e<=57){this.pos--;return this._getNumber()}if(e>=97&&e<=122){this.pos--;return this._getOperator()}return new Token(r.number,0)}}return o._.eof}}n=Lexer;function _initSingletons(){const e=Object.create(null),t=Object.create(null);for(const[a,n]of Object.entries(r)){if("number"===a)continue;const s=n>=r.true&&n<=r.ifelse,i=new Token(n,s?a:null);e[a]=i;s&&(t[a]=i)}o._=_assertClassBrand(n,this,e);l._=_assertClassBrand(n,this,t)}var i,o={_:null},l={_:null};function ast_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const c=0,f=1,h=2,u=0,d=1,m=2,g=3,b=4,w=5,j=6,y=7,v=8,k=9,q=10;class PsNode{constructor(e){this.type=e}}class PsProgram extends PsNode{constructor(e){super(u);this.body=e}}class PsBlock extends PsNode{constructor(e){super(d);this.instructions=e}}class PsNumber extends PsNode{constructor(e){super(m);this.value=e}}class PsOperator extends PsNode{constructor(e){super(g);this.op=e}}class PsIf extends PsNode{constructor(e){super(b);this.then=e}}class PsIfElse extends PsNode{constructor(e,t){super(w);this.then=e;this.otherwise=t}}class PsArgNode extends PsNode{constructor(e){super(j);this.index=e;this.valueType=c;this.depth=0}}class PsConstNode extends PsNode{constructor(e){super(y);this.value=e;this.valueType="boolean"==typeof e?f:c;this.depth=0}}class PsUnaryNode extends PsNode{constructor(e,t,a=h){super(v);this.op=e;this.operand=t;this.valueType=a;this.depth=t.depth+1}}class PsBinaryNode extends PsNode{constructor(e,t,a,n=h){super(k);this.op=e;this.first=t;this.second=a;this.valueType=n;this.depth=Math.max(t.depth,a.depth)+1}}class PsTernaryNode extends PsNode{constructor(e,t,a,n=h){super(q);this.cond=e;this.then=t;this.otherwise=a;this.valueType=n;this.depth=Math.max(e.depth,t.depth,a.depth)+1}}class Parser{constructor(e){this.lexer=e;this._token=null;this._depth=0}static _isRegularOperator(e){return e>=r.true&&e<r.if}_advance(){this._token=this.lexer.next()}_expect(e){if(this._token.id!==e)throw new s.FormatError(`PostScript function: expected token id ${e}, got ${this._token.id}.`);const t=this._token;this._advance();return t}parse(){this._advance();this._expect(r.lbrace);const e=this._parseBlock();this._expect(r.rbrace);this._token.id!==r.eof&&(0,s.warn)("PostScript function: unexpected content after closing brace.");return new PsProgram(e)}_parseBlock(){const e=[];for(;;){const t=this._token;switch(t.id){case r.number:e.push(new PsNumber(t.value));this._advance();break;case r.lbrace:{if(++this._depth>1e3)throw new s.FormatError("PostScript function: procedures are nested too deeply.");this._advance();const t=this._parseBlock();this._expect(r.rbrace);if(this._token.id===r.if){this._advance();e.push(new PsIf(t))}else{if(this._token.id!==r.lbrace)throw new s.FormatError("PostScript function: a procedure block must be followed by 'if' or '{…} ifelse'.");{this._advance();const a=this._parseBlock();this._expect(r.rbrace);this._expect(r.ifelse);e.push(new PsIfElse(t,a))}}this._depth--;break}case r.rbrace:case r.eof:return new PsBlock(e);case r.if:case r.ifelse:throw new s.FormatError(`PostScript function: unexpected '${t.value}' operator.`);default:if(Parser._isRegularOperator(t.id)){e.push(new PsOperator(t.id));this._advance();break}throw new s.FormatError(`PostScript function: unexpected token id ${t.id}.`)}}}}function parsePostScriptFunction(e){return new Parser(new Lexer(e)).parse()}const S=100;class PSStackToTree{evaluate(e,t,a){C._||_init.call(PSStackToTree);this._failed=!1;this._work=0;this._forkDepth=0;if(t>S)return null;const n=[];for(let e=0;e<t;e++)n.push(new PsArgNode(e));this._evalBlock(e.body,n);if(this._failed)return null;if(void 0!==a){if(n.length<a)return null;n.splice(0,n.length-a)}_markShared.call(PSStackToTree,n);return n}_evalBlock(e,t){this._evalBlockFrom(e.instructions,0,t)}_evalBlockFrom(e,t,a){for(let n=t;n<e.length&&(!this._failed&&this._checkWorkLimit());n++){const t=e[n];switch(t.type){case m:a.push(new PsConstNode(t.value));a.length>S&&(this._failed=!0);break;case g:this._evalOp(t.op,a);break;case b:{if(a.length<1){this._failed=!0;break}const s=a.pop(),r=a.slice();this._evalBlock(t.then,a);if(this._failed)break;if(a.length===r.length)for(let e=0;e<a.length;e++)a[e]!==r[e]&&(a[e]=this._makeTernary(s,a[e],r[e]));else{if(a.length>r.length){if(s.type===y){if(!s.value){a.length=0;a.push(...r)}break}if(this._forkDepth>=1e3){this._failed=!0;break}this._forkDepth++;const t=a.slice();this._evalBlockFrom(e,n+1,t);if(this._failed)break;const i=r;this._evalBlockFrom(e,n+1,i);if(this._failed)break;this._forkDepth--;if(t.length!==i.length){const e=new PsConstNode(0);for(;t.length<i.length;)t.unshift(e);for(;i.length<t.length;)i.unshift(e)}a.length=0;for(let e=0;e<t.length;e++)a.push(this._makeTernary(s,t[e],i[e]));return}this._failed=!0}break}case w:{if(a.length<1){this._failed=!0;break}const e=a.pop(),n=a.slice(),s=n.slice();this._evalBlock(t.then,s);if(this._failed)break;const r=n.slice();this._evalBlock(t.otherwise,r);if(this._failed)break;if(s.length!==r.length){const e=new PsConstNode(0);for(;s.length<r.length;)s.unshift(e);for(;r.length<s.length;)r.unshift(e)}a.length=0;for(let t=0;t<s.length;t++)a.push(this._makeTernary(e,s[t],r[t]));break}}}}_evalOp(e,t){if(C._.has(e)){if(t.length<2){this._failed=!0;return}const a=t.pop(),n=t.pop();t.push(this._makeBinary(e,a,n));return}if(F._.has(e)){if(t.length<1){this._failed=!0;return}t.push(this._makeUnary(e,t.pop()))}else switch(e){case r.true:t.push(new PsConstNode(!0));t.length>S&&(this._failed=!0);break;case r.false:t.push(new PsConstNode(!1));t.length>S&&(this._failed=!0);break;case r.dup:if(t.length<1){this._failed=!0;break}t.push(t.at(-1));t.length>S&&(this._failed=!0);break;case r.exch:{if(t.length<2){this._failed=!0;break}const e=t.pop(),a=t.pop();t.push(e,a);break}case r.pop:if(t.length<1){this._failed=!0;break}t.pop();break;case r.copy:{if(t.length<1){this._failed=!0;break}const e=t.pop();if(e.type===y){const a=0|e.value;if(0===a);else if(a<0||a>t.length)this._failed=!0;else{t.push(...t.slice(-a));t.length>S&&(this._failed=!0)}}else this._failed=!0;break}case r.index:{if(t.length<1){this._failed=!0;break}const e=t.pop();if(e.type===y){const a=0|e.value;a<0||a>=t.length?this._failed=!0:t.push(t.at(-a-1))}else this._failed=!0;break}case r.roll:{if(t.length<2){this._failed=!0;break}const e=t.pop(),a=t.pop();if(a.type===y&&e.type===y){const n=0|a.value;if(0===n);else if(n<0||n>t.length)this._failed=!0;else{const a=((0|e.value)%n+n)%n;if(a>0){const e=t.splice(-n,n);t.push(...e.slice(n-a),...e.slice(0,n-a))}}}else this._failed=!0;break}default:this._failed=!0}}_checkWorkLimit(){if(++this._work>1e5){this._failed=!0;return!1}return!0}_checkDepth(e){e.depth>500&&(this._failed=!0);return e}_nodesEqual(e,t){if(e===t)return!0;if(e.type!==t.type||!this._checkWorkLimit())return!1;switch(e.type){case j:return e.index===t.index;case y:return e.value===t.value;case v:return e.op===t.op&&this._nodesEqual(e.operand,t.operand);case k:return e.op===t.op&&this._nodesEqual(e.first,t.first)&&this._nodesEqual(e.second,t.second);case q:return this._nodesEqual(e.cond,t.cond)&&this._nodesEqual(e.then,t.then)&&this._nodesEqual(e.otherwise,t.otherwise);default:return!1}}_makeBinary(e,t,a){if(t.type===y&&a.type===y){const n=function _evalBinaryConst(e,t,a){switch(e){case r.add:return t+a;case r.sub:return t-a;case r.mul:return t*a;case r.div:return 0!==a?t/a:0;case r.idiv:return 0!==a?Math.trunc(t/a):0;case r.mod:return 0!==a?t-Math.trunc(t/a)*a:0;case r.exp:{const e=t**a;return Number.isFinite(e)?e:void 0}case r.atan:{let e=Math.atan2(t,a)*(180/Math.PI);e<0&&(e+=360);return e}case r.eq:return t===a;case r.ne:return t!==a;case r.gt:return t>a;case r.ge:return t>=a;case r.lt:return t<a;case r.le:return t<=a;case r.and:return"boolean"==typeof t?t&&a:t&a|0;case r.or:return"boolean"==typeof t?t||a:t|a|0;case r.xor:return"boolean"==typeof t?t!==a:t^a|0;case r.bitshift:return a>=0?t<<a|0:t>>-a|0;case r.min:return Math.min(t,a);case r.max:return Math.max(t,a);default:return}}(e,a.value,t.value);if(void 0!==n)return new PsConstNode(n)}if(this._nodesEqual(t,a))switch(e){case r.sub:return new PsConstNode(0);case r.xor:return new PsConstNode(t.valueType!==f&&0);case r.and:case r.or:case r.min:case r.max:return t;case r.eq:case r.ge:case r.le:return new PsConstNode(!0);case r.ne:case r.gt:case r.lt:return new PsConstNode(!1)}if(e===r.eq||e===r.ne)if(t.valueType===h||a.valueType===h)this._failed=!0;else if(t.valueType!==a.valueType)return new PsConstNode(e===r.ne);if(t.type===y){const n=t.value;switch(e){case r.add:case r.sub:if(0===n)return a;break;case r.mul:if(1===n)return a;if(0===n)return t;if(-1===n)return this._makeUnary(r.neg,a);break;case r.div:if(0!==n)return this._makeBinary(r.mul,new PsConstNode(1/n),a);break;case r.idiv:if(1===n)return this._makeUnary(r.truncate,a);break;case r.exp:if(1===n)return a;if(.5===n)return this._makeUnary(r.sqrt,a);if(.25===n){const e=this._makeUnary(r.sqrt,a);return this._makeUnary(r.sqrt,e)}if(2===n)return this._makeBinary(r.mul,a,a);if(3===n)return this._makeBinary(r.mul,this._makeBinary(r.mul,a,a),a);if(4===n){const e=this._makeBinary(r.mul,a,a);return this._makeBinary(r.mul,e,e)}if(0===n)return new PsConstNode(1);break;case r.and:if(!0===n)return a;if(!1===n)return t;break;case r.or:if(!1===n)return a;if(!0===n)return t;break;case r.min:if(a.type===k&&a.op===r.max&&a.first.type===y&&a.first.value>=n)return t;break;case r.max:if(a.type===k&&a.op===r.min&&a.first.type===y&&a.first.value<=n)return t}}if(a.type===y){const n=a.value;switch(e){case r.add:if(0===n)return t;break;case r.sub:if(0===n)return this._makeUnary(r.neg,t);break;case r.mul:if(1===n)return t;if(0===n)return a;if(-1===n)return this._makeUnary(r.neg,t);break;case r.and:if(!0===n)return t;if(!1===n)return a;break;case r.or:if(!1===n)return t;if(!0===n)return a}}return this._checkDepth(new PsBinaryNode(e,t,a,function _binaryValueType(e,t,a){switch(e){case r.eq:case r.ne:case r.gt:case r.ge:case r.lt:case r.le:return f;case r.and:case r.or:case r.xor:return t===a&&t!==h?t:h;default:return c}}(e,t.valueType,a.valueType)))}_makeUnary(e,t){if(t.type===y){const a=function _evalUnaryConst(e,t){switch(e){case r.abs:return Math.abs(t);case r.neg:return-t;case r.ceiling:return Math.ceil(t);case r.floor:return Math.floor(t);case r.round:return Math.round(t);case r.truncate:return Math.trunc(t);case r.sqrt:{const e=Math.sqrt(t);return Number.isFinite(e)?e:void 0}case r.sin:return Math.sin(t%360*Math.PI/180);case r.cos:return Math.cos(t%360*Math.PI/180);case r.ln:{const e=Math.log(t);return Number.isFinite(e)?e:void 0}case r.log:{const e=Math.log10(t);return Number.isFinite(e)?e:void 0}case r.cvi:return 0|Math.trunc(t);case r.cvr:return t;case r.not:return"boolean"==typeof t?!t:~t;default:return}}(e,t.value);if(void 0!==a)return new PsConstNode(a)}if(e===r.not&&t.type===k){const e=T._.get(t.op);if(void 0!==e)return new PsBinaryNode(e,t.first,t.second,f)}if(e===r.neg&&t.type===k&&t.op===r.sub)return this._makeBinary(r.sub,t.second,t.first);if(t.type===v){if(e===r.neg&&t.op===r.neg||e===r.not&&t.op===r.not)return t.operand;if(e===r.abs&&t.op===r.neg)return this._makeUnary(r.abs,t.operand);if(x._.has(e)&&e===t.op)return t}return this._checkDepth(new PsUnaryNode(e,t,function _unaryValueType(e,t){return e===r.not?t:c}(e,t.valueType)))}_makeTernary(e,t,a){if(e.type===y)return e.value?t:a;if(this._nodesEqual(t,a))return t;if(t.type===y&&a.type===y){if(!0===t.value&&!1===a.value)return e;if(!1===t.value&&!0===a.value)return this._makeUnary(r.not,e)}if(e.type===k){const{op:n,first:s,second:i}=e;if(n===r.gt||n===r.ge){if(this._nodesEqual(t,s)&&this._nodesEqual(a,i))return this._makeBinary(r.min,s,i);if(this._nodesEqual(t,i)&&this._nodesEqual(a,s))return this._makeBinary(r.max,s,i)}else if(n===r.lt||n===r.le){if(this._nodesEqual(t,s)&&this._nodesEqual(a,i))return this._makeBinary(r.max,s,i);if(this._nodesEqual(t,i)&&this._nodesEqual(a,s))return this._makeBinary(r.min,s,i)}}return this._checkDepth(new PsTernaryNode(e,t,a,t.valueType===a.valueType?t.valueType:h))}}i=PSStackToTree;function _init(){C._=ast_assertClassBrand(i,this,new Set([r.add,r.sub,r.mul,r.div,r.idiv,r.mod,r.exp,r.atan,r.eq,r.ne,r.gt,r.ge,r.lt,r.le,r.and,r.or,r.xor,r.bitshift]));F._=ast_assertClassBrand(i,this,new Set([r.abs,r.neg,r.ceiling,r.floor,r.round,r.truncate,r.sqrt,r.sin,r.cos,r.ln,r.log,r.cvi,r.cvr,r.not]));x._=ast_assertClassBrand(i,this,new Set([r.abs,r.ceiling,r.cvi,r.cvr,r.floor,r.round,r.truncate]));T._=ast_assertClassBrand(i,this,new Map([[r.eq,r.ne],[r.ne,r.eq],[r.lt,r.ge],[r.le,r.gt],[r.gt,r.le],[r.ge,r.lt]]))}function _markShared(e){const t=new Map,visit=e=>{if(!e||e.type===j||e.type===y)return;const a=t.get(e)??0;t.set(e,a+1);if(!(a>0))switch(e.type){case v:visit(e.operand);break;case k:visit(e.first);visit(e.second);break;case q:visit(e.cond);visit(e.then);visit(e.otherwise)}};for(const t of e)visit(t);for(const[e,a]of t)if(a>1){e.shared=!0;e.sharedCount=a}}var _,C={_:null},F={_:null},x={_:null},T={_:null},O=a(4566);function js_evaluator_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const M=0,R=1,D=2,H=3,N=4,E=5,z=6,L=7,$=8,U=9,G=10,W=11,X=12,K=13,V=14,Y=15,J=16,Q=17,Z=18,ee=19,te=20,ae=21,ne=22,se=23,re=24,ie=25,oe=26,le=27,ce=28,fe=29,he=30,ue=31,de=32,pe=33,me=34,ge=35,be=36,we=37,je=38,ye=39,ve=40,ke=Math.PI/180,qe=180/Math.PI;class PsJsCompiler{constructor(e,t){this.nIn=e.length>>1;this.nOut=t.length>>1;this.range=t;this.ir=[];this._tmpMap=new Map;this._nextTmp=0}_compileNode(e){if(e.shared){const t=this._tmpMap.get(e);if(void 0!==t){this.ir.push(ve,t);return!0}if(!this._compileNodeImpl(e))return!1;const a=this._nextTmp++;this._tmpMap.set(e,a);this.ir.push(ye,a);return!0}return this._compileNodeImpl(e)}_compileNodeImpl(e){switch(e.type){case j:this.ir.push(M,e.index);return!0;case y:{const t=e.value;this.ir.push(R,"boolean"==typeof t?Number(t):t);return!0}case v:return this._compileUnary(e);case k:return this._compileBinary(e);case q:return this._compileTernary(e);default:return!1}}_compileUnary(e){const{op:t,operand:a,valueType:n}=e;if(t===r.cvr)return this._compileNode(a);if(!this._compileNode(a))return!1;switch(t){case r.abs:this.ir.push(E);break;case r.neg:this.ir.push(z);break;case r.ceiling:this.ir.push(L);break;case r.floor:this.ir.push($);break;case r.round:this.ir.push(U);break;case r.truncate:this.ir.push(G);break;case r.sqrt:this.ir.push(K);break;case r.sin:this.ir.push(V);break;case r.cos:this.ir.push(Y);break;case r.ln:this.ir.push(J);break;case r.log:this.ir.push(Q);break;case r.cvi:this.ir.push(Z);break;case r.not:if(n===f)this.ir.push(W);else{if(n!==c)return!1;this.ir.push(X)}break;default:return!1}return!0}_compileBinary(e){const{op:t,first:a,second:n}=e;if(t===r.bitshift){if(a.type!==y||!Number.isInteger(a.value)||!this._compileNode(n))return!1;this.ir.push(ee,a.value);return!0}if(!this._compileNode(n)||!this._compileNode(a))return!1;switch(t){case r.add:this.ir.push(te);break;case r.sub:this.ir.push(ae);break;case r.mul:this.ir.push(ne);break;case r.div:this.ir.push(se);break;case r.idiv:this.ir.push(re);break;case r.mod:this.ir.push(ie);break;case r.exp:this.ir.push(oe);break;case r.eq:this.ir.push(le);break;case r.ne:this.ir.push(ce);break;case r.gt:this.ir.push(fe);break;case r.ge:this.ir.push(he);break;case r.lt:this.ir.push(ue);break;case r.le:this.ir.push(de);break;case r.and:this.ir.push(pe);break;case r.or:this.ir.push(me);break;case r.xor:this.ir.push(ge);break;case r.atan:this.ir.push(be);break;case r.min:this.ir.push(we);break;case r.max:this.ir.push(je);break;default:return!1}return!0}_compileTernary(e){if(!this._compileNode(e.cond))return!1;this.ir.push(H,0);const t=this.ir.length-1;if(!this._compileNode(e.then))return!1;this.ir.push(N,0);const a=this.ir.length-1;this.ir[t]=this.ir.length;if(!this._compileNode(e.otherwise))return!1;this.ir[a]=this.ir.length;return!0}compile(e){const t=(new PSStackToTree).evaluate(e,this.nIn,this.nOut);if(!t)return null;for(let e=0;e<this.nOut;e++){if(!this._compileNode(t[e]))return null;const a=this.range[2*e],n=this.range[2*e+1];this.ir.push(D,e,a,n)}return new Float64Array(this.ir)}static execute(e,t,a,n,s){let r=0,i=0;const o=e.length,l=js_evaluator_assertClassBrand(PsJsCompiler,this,Se)._,c=js_evaluator_assertClassBrand(PsJsCompiler,this,_e)._;for(;r<o;)switch(0|e[r++]){case M:l[i++]=t[a+(0|e[r++])];break;case R:l[i++]=e[r++];break;case D:{const t=0|e[r++],a=e[r++],o=e[r++];n[s+t]=(0,O.MathClamp)(l[--i],a,o);break}case H:{const t=e[r++];0===l[--i]&&(r=t);break}case N:r=e[r];break;case E:l[i-1]=Math.abs(l[i-1]);break;case z:l[i-1]=-l[i-1];break;case L:l[i-1]=Math.ceil(l[i-1]);break;case $:l[i-1]=Math.floor(l[i-1]);break;case U:l[i-1]=Math.floor(l[i-1]+.5);break;case G:l[i-1]=Math.trunc(l[i-1]);break;case W:l[i-1]=0!==l[i-1]?0:1;break;case X:l[i-1]=~l[i-1];break;case K:l[i-1]=Math.sqrt(l[i-1]);break;case V:l[i-1]=Math.sin(l[i-1]%360*ke);break;case Y:l[i-1]=Math.cos(l[i-1]%360*ke);break;case J:l[i-1]=Math.log(l[i-1]);break;case Q:l[i-1]=Math.log10(l[i-1]);break;case Z:l[i-1]=0|Math.trunc(l[i-1]);break;case ee:{const t=e[r++],a=0|l[i-1];l[i-1]=t>0?a<<t:t<0?a>>-t:a;break}case te:{const e=l[--i];l[i-1]+=e;break}case ae:{const e=l[--i];l[i-1]-=e;break}case ne:{const e=l[--i];l[i-1]*=e;break}case se:{const e=l[--i];l[i-1]=0!==e?l[i-1]/e:0;break}case re:{const e=l[--i];l[i-1]=0!==e?Math.trunc(l[i-1]/e):0;break}case ie:{const e=l[--i];l[i-1]=0!==e?l[i-1]%e:0;break}case oe:{const e=l[--i];l[i-1]**=e;break}case le:{const e=l[--i];l[i-1]=l[i-1]===e?1:0;break}case ce:{const e=l[--i];l[i-1]=l[i-1]!==e?1:0;break}case fe:{const e=l[--i];l[i-1]=l[i-1]>e?1:0;break}case he:{const e=l[--i];l[i-1]=l[i-1]>=e?1:0;break}case ue:{const e=l[--i];l[i-1]=l[i-1]<e?1:0;break}case de:{const e=l[--i];l[i-1]=l[i-1]<=e?1:0;break}case pe:{const e=0|l[--i];l[i-1]=(0|l[i-1])&e;break}case me:{const e=0|l[--i];l[i-1]=0|l[i-1]|e;break}case ge:{const e=0|l[--i];l[i-1]=(0|l[i-1])^e;break}case be:{const e=l[--i],t=Math.atan2(l[i-1],e)*qe;l[i-1]=t<0?t+360:t;break}case we:{const e=l[--i];l[i-1]=Math.min(l[i-1],e);break}case je:{const e=l[--i];l[i-1]=Math.max(l[i-1],e);break}case ye:c[0|e[r++]]=l[i-1];break;case ve:l[i++]=c[0|e[r++]]}}}var Se={_:new Float64Array(64)},_e={_:new Float64Array(64)};class PSStackBasedInterpreter{static build(e,t,a){const n=t.length>>1,s=a.length>>1,{instructions:r}=e.body;return(e,t,i,o)=>{xe._=js_evaluator_assertClassBrand(PSStackBasedInterpreter,this,0);for(let a=0;a<n;a++)js_evaluator_assertClassBrand(PSStackBasedInterpreter,this,_push).call(this,e[t+a]);js_evaluator_assertClassBrand(PSStackBasedInterpreter,this,_execBlock).call(this,r);const l=js_evaluator_assertClassBrand(PSStackBasedInterpreter,this,xe)._-s;for(let e=0;e<s;e++){const t=l+e>=0?js_evaluator_assertClassBrand(PSStackBasedInterpreter,this,Ae)._[l+e]:0;i[o+e]=(0,O.MathClamp)(t,a[2*e],a[2*e+1])}}}}_=PSStackBasedInterpreter;function _push(e,t=0){if(js_evaluator_assertClassBrand(_,this,xe)._<js_evaluator_assertClassBrand(_,this,Ae)._.length){var a,n;js_evaluator_assertClassBrand(_,this,Fe)._[js_evaluator_assertClassBrand(_,this,xe)._]=t;js_evaluator_assertClassBrand(_,this,Ae)._[xe._=js_evaluator_assertClassBrand(_,this,(a=js_evaluator_assertClassBrand(_,this,xe)._,n=a++,a)),n]=e}}function _execOp(e){var t;const a=js_evaluator_assertClassBrand(_,this,Ae)._,n=js_evaluator_assertClassBrand(_,this,Fe)._;switch(e){case r.true:js_evaluator_assertClassBrand(_,this,_push).call(this,1,1);return;case r.false:js_evaluator_assertClassBrand(_,this,_push).call(this,0,1);return;case r.abs:a[js_evaluator_assertClassBrand(_,this,xe)._-1]=Math.abs(a[js_evaluator_assertClassBrand(_,this,xe)._-1]);break;case r.neg:a[js_evaluator_assertClassBrand(_,this,xe)._-1]=-a[js_evaluator_assertClassBrand(_,this,xe)._-1];break;case r.ceiling:a[js_evaluator_assertClassBrand(_,this,xe)._-1]=Math.ceil(a[js_evaluator_assertClassBrand(_,this,xe)._-1]);break;case r.floor:a[js_evaluator_assertClassBrand(_,this,xe)._-1]=Math.floor(a[js_evaluator_assertClassBrand(_,this,xe)._-1]);break;case r.round:a[js_evaluator_assertClassBrand(_,this,xe)._-1]=Math.floor(a[js_evaluator_assertClassBrand(_,this,xe)._-1]+.5);break;case r.truncate:a[js_evaluator_assertClassBrand(_,this,xe)._-1]=Math.trunc(a[js_evaluator_assertClassBrand(_,this,xe)._-1]);break;case r.sqrt:a[js_evaluator_assertClassBrand(_,this,xe)._-1]=Math.sqrt(a[js_evaluator_assertClassBrand(_,this,xe)._-1]);break;case r.sin:a[js_evaluator_assertClassBrand(_,this,xe)._-1]=Math.sin(a[js_evaluator_assertClassBrand(_,this,xe)._-1]%360*ke);break;case r.cos:a[js_evaluator_assertClassBrand(_,this,xe)._-1]=Math.cos(a[js_evaluator_assertClassBrand(_,this,xe)._-1]%360*ke);break;case r.ln:a[js_evaluator_assertClassBrand(_,this,xe)._-1]=Math.log(a[js_evaluator_assertClassBrand(_,this,xe)._-1]);break;case r.log:a[js_evaluator_assertClassBrand(_,this,xe)._-1]=Math.log10(a[js_evaluator_assertClassBrand(_,this,xe)._-1]);break;case r.cvi:a[js_evaluator_assertClassBrand(_,this,xe)._-1]=0|Math.trunc(a[js_evaluator_assertClassBrand(_,this,xe)._-1]);break;case r.cvr:break;case r.not:{const e=a[js_evaluator_assertClassBrand(_,this,xe)._-1];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=n[js_evaluator_assertClassBrand(_,this,xe)._-1]?1-e:~e;return}case r.add:{var s;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(s=js_evaluator_assertClassBrand(_,this,xe)._,--s))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]+=e;break}case r.sub:{var i;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(i=js_evaluator_assertClassBrand(_,this,xe)._,--i))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]-=e;break}case r.mul:{var o;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(o=js_evaluator_assertClassBrand(_,this,xe)._,--o))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]*=e;break}case r.div:{var l;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(l=js_evaluator_assertClassBrand(_,this,xe)._,--l))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=0!==e?a[js_evaluator_assertClassBrand(_,this,xe)._-1]/e:0;break}case r.idiv:{var c;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(c=js_evaluator_assertClassBrand(_,this,xe)._,--c))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=0!==e?Math.trunc(a[js_evaluator_assertClassBrand(_,this,xe)._-1]/e):0;break}case r.mod:{var f;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(f=js_evaluator_assertClassBrand(_,this,xe)._,--f))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=0!==e?a[js_evaluator_assertClassBrand(_,this,xe)._-1]%e:0;break}case r.exp:{var h;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(h=js_evaluator_assertClassBrand(_,this,xe)._,--h))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]**=e;break}case r.atan:{var u;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(u=js_evaluator_assertClassBrand(_,this,xe)._,--u))],t=Math.atan2(a[js_evaluator_assertClassBrand(_,this,xe)._-1],e)*qe;a[js_evaluator_assertClassBrand(_,this,xe)._-1]=t<0?t+360:t;break}case r.eq:{var d;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(d=js_evaluator_assertClassBrand(_,this,xe)._,--d))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=a[js_evaluator_assertClassBrand(_,this,xe)._-1]===e&&n[js_evaluator_assertClassBrand(_,this,xe)._-1]===n[js_evaluator_assertClassBrand(_,this,xe)._]?1:0;n[js_evaluator_assertClassBrand(_,this,xe)._-1]=1;return}case r.ne:{var m;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(m=js_evaluator_assertClassBrand(_,this,xe)._,--m))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=a[js_evaluator_assertClassBrand(_,this,xe)._-1]!==e||n[js_evaluator_assertClassBrand(_,this,xe)._-1]!==n[js_evaluator_assertClassBrand(_,this,xe)._]?1:0;n[js_evaluator_assertClassBrand(_,this,xe)._-1]=1;return}case r.gt:{var g;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(g=js_evaluator_assertClassBrand(_,this,xe)._,--g))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=a[js_evaluator_assertClassBrand(_,this,xe)._-1]>e?1:0;n[js_evaluator_assertClassBrand(_,this,xe)._-1]=1;return}case r.ge:{var b;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(b=js_evaluator_assertClassBrand(_,this,xe)._,--b))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=a[js_evaluator_assertClassBrand(_,this,xe)._-1]>=e?1:0;n[js_evaluator_assertClassBrand(_,this,xe)._-1]=1;return}case r.lt:{var w;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(w=js_evaluator_assertClassBrand(_,this,xe)._,--w))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=a[js_evaluator_assertClassBrand(_,this,xe)._-1]<e?1:0;n[js_evaluator_assertClassBrand(_,this,xe)._-1]=1;return}case r.le:{var j;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(j=js_evaluator_assertClassBrand(_,this,xe)._,--j))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=a[js_evaluator_assertClassBrand(_,this,xe)._-1]<=e?1:0;n[js_evaluator_assertClassBrand(_,this,xe)._-1]=1;return}case r.and:{var y;const e=0|a[xe._=js_evaluator_assertClassBrand(_,this,(y=js_evaluator_assertClassBrand(_,this,xe)._,--y))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=(0|a[js_evaluator_assertClassBrand(_,this,xe)._-1])&e;n[js_evaluator_assertClassBrand(_,this,xe)._-1]&=n[js_evaluator_assertClassBrand(_,this,xe)._];return}case r.or:{var v;const e=0|a[xe._=js_evaluator_assertClassBrand(_,this,(v=js_evaluator_assertClassBrand(_,this,xe)._,--v))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=0|a[js_evaluator_assertClassBrand(_,this,xe)._-1]|e;n[js_evaluator_assertClassBrand(_,this,xe)._-1]&=n[js_evaluator_assertClassBrand(_,this,xe)._];return}case r.xor:{var k;const e=0|a[xe._=js_evaluator_assertClassBrand(_,this,(k=js_evaluator_assertClassBrand(_,this,xe)._,--k))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=(0|a[js_evaluator_assertClassBrand(_,this,xe)._-1])^e;n[js_evaluator_assertClassBrand(_,this,xe)._-1]&=n[js_evaluator_assertClassBrand(_,this,xe)._];return}case r.bitshift:{var q;const e=0|a[xe._=js_evaluator_assertClassBrand(_,this,(q=js_evaluator_assertClassBrand(_,this,xe)._,--q))],t=0|a[js_evaluator_assertClassBrand(_,this,xe)._-1];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=e>0?t<<e:t>>-e;break}case r.min:{var S;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(S=js_evaluator_assertClassBrand(_,this,xe)._,--S))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=Math.min(a[js_evaluator_assertClassBrand(_,this,xe)._-1],e);break}case r.max:{var C;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(C=js_evaluator_assertClassBrand(_,this,xe)._,--C))];a[js_evaluator_assertClassBrand(_,this,xe)._-1]=Math.max(a[js_evaluator_assertClassBrand(_,this,xe)._-1],e);break}case r.dup:js_evaluator_assertClassBrand(_,this,_push).call(this,a[js_evaluator_assertClassBrand(_,this,xe)._-1],n[js_evaluator_assertClassBrand(_,this,xe)._-1]);return;case r.exch:{var F,x;const e=a[xe._=js_evaluator_assertClassBrand(_,this,(F=js_evaluator_assertClassBrand(_,this,xe)._,--F))],t=n[js_evaluator_assertClassBrand(_,this,xe)._],s=a[xe._=js_evaluator_assertClassBrand(_,this,(x=js_evaluator_assertClassBrand(_,this,xe)._,--x))],r=n[js_evaluator_assertClassBrand(_,this,xe)._];js_evaluator_assertClassBrand(_,this,_push).call(this,e,t);js_evaluator_assertClassBrand(_,this,_push).call(this,s,r);return}case r.pop:xe._=js_evaluator_assertClassBrand(_,this,(t=js_evaluator_assertClassBrand(_,this,xe)._,t--,t));return;case r.copy:{var T;const e=Math.trunc(a[xe._=js_evaluator_assertClassBrand(_,this,(T=js_evaluator_assertClassBrand(_,this,xe)._,--T))]),t=js_evaluator_assertClassBrand(_,this,xe)._-e;for(let s=0;s<e;s++)js_evaluator_assertClassBrand(_,this,_push).call(this,a[t+s],n[t+s]);return}case r.index:{var O;const e=Math.trunc(a[xe._=js_evaluator_assertClassBrand(_,this,(O=js_evaluator_assertClassBrand(_,this,xe)._,--O))]);js_evaluator_assertClassBrand(_,this,_push).call(this,a[js_evaluator_assertClassBrand(_,this,xe)._-1-e],n[js_evaluator_assertClassBrand(_,this,xe)._-1-e]);return}case r.roll:{var M,R;const e=Math.trunc(a[xe._=js_evaluator_assertClassBrand(_,this,(M=js_evaluator_assertClassBrand(_,this,xe)._,--M))]),t=Math.trunc(a[xe._=js_evaluator_assertClassBrand(_,this,(R=js_evaluator_assertClassBrand(_,this,xe)._,--R))]);if(t>1&&0!==e){const s=(e%t+t)%t;if(0!==s){const e=js_evaluator_assertClassBrand(_,this,xe)._-t,r=a.slice(e,js_evaluator_assertClassBrand(_,this,xe)._),i=n.slice(e,js_evaluator_assertClassBrand(_,this,xe)._);for(let o=0;o<t;o++){a[e+o]=r[(o-s+t)%t];n[e+o]=i[(o-s+t)%t]}}}return}}n[js_evaluator_assertClassBrand(_,this,xe)._-1]=0}function _execBlock(e){var t,a;for(const n of e)switch(n.type){case m:js_evaluator_assertClassBrand(_,this,_push).call(this,n.value);break;case g:js_evaluator_assertClassBrand(_,this,_execOp).call(this,n.op);break;case b:0!==js_evaluator_assertClassBrand(_,this,Ae)._[xe._=js_evaluator_assertClassBrand(_,this,(t=js_evaluator_assertClassBrand(_,this,xe)._,--t))]&&js_evaluator_assertClassBrand(_,this,_execBlock).call(this,n.then.instructions);break;case w:0!==js_evaluator_assertClassBrand(_,this,Ae)._[xe._=js_evaluator_assertClassBrand(_,this,(a=js_evaluator_assertClassBrand(_,this,xe)._,--a))]?js_evaluator_assertClassBrand(_,this,_execBlock).call(this,n.then.instructions):js_evaluator_assertClassBrand(_,this,_execBlock).call(this,n.otherwise.instructions)}}var Ce,Ae={_:new Float64Array(100)},Fe={_:new Uint8Array(100)},xe={_:0};function wasm_compiler_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const Pe=4,Ie=5,Te=11,Be=27,Oe=16,Me=32,Re=33,De=34,He=65,Ne=69,Ee=113,ze=114,Le=115,$e=116,Ue=117,Ge=170,We=68,Xe=97,Ke=98,Ve=99,Ye=100,Je=101,Qe=102,Ze=153,et=154,tt=155,at=156,nt=157,st=159,rt=160,it=161,ot=162,lt=163,ct=164,ft=165,ht=183,ut=57,dt=252,pt=3,mt=124,gt=1,bt=2,wt=3,jt=5,yt=7,vt=10;function unsignedLEB128(e){const t=[];do{let a=127&e;0!==(e>>>=7)&&(a|=128);t.push(a)}while(0!==e);return t}function encodeASCIIString(e){return[...unsignedLEB128(e.length),...(0,s.stringToBytes)(e)]}function section(e,t){return[e,...unsignedLEB128(t.length),...t]}function vec(e){const t=unsignedLEB128(e.length);for(const a of e)if("number"!=typeof a)for(const e of a)t.push(e);else t.push(a);return t}const kt=[["sin","Math","sin",[mt],[mt]],["cos","Math","cos",[mt],[mt]],["atan2","Math","atan2",[mt,mt],[mt]],["log","Math","log",[mt],[mt]],["log10","Math","log10",[mt],[mt]],["pow","Math","pow",[mt,mt],[mt]]],qt={Math:Object.fromEntries(kt.map(([e])=>[e,Math[e]]))};class PsWasmCompiler{constructor(e,t){St._||wasm_compiler_init.call(PsWasmCompiler);this._nIn=e.length>>1;this._nOut=t.length>>1;this._range=t;this._code=[];this._nextLocal=this._nIn;this._freeLocals=[];this._sharedLocals=new Map}_allocLocal(){return this._freeLocals.pop()??this._nextLocal++}_releaseLocal(e){this._freeLocals.push(e)}_emitULEB128(e){do{let t=127&e;0!==(e>>>=7)&&(t|=128);this._code.push(t)}while(0!==e)}_emitSLEB128(e){for(;;){const t=127&e;if(0===(e>>=7)&&!(64&t)||-1===e&&64&t){this._code.push(t);return}this._code.push(128|t)}}_emitF64Const(e){this._code.push(We);Mt._.setFloat64(0,e,!0);for(let e=0;e<8;e++)this._code.push(Rt._[e])}_emitLocalGet(e){this._code.push(Me);this._emitULEB128(e)}_emitLocalSet(e){this._code.push(Re);this._emitULEB128(e)}_emitLocalTee(e){this._code.push(De);this._emitULEB128(e)}_emitToInt32(){const e=this._code,t=this._allocLocal();e.push(nt);this._emitLocalTee(t);this._emitLocalGet(t);this._emitF64Const(2**-32);e.push(ot,at);this._emitF64Const(2**32);e.push(ot,it,dt,pt);this._releaseLocal(t)}_compileNode(e){if(e.shared){const t=this._sharedLocals.get(e);if(void 0!==t){this._emitLocalGet(t.local);0===--t.remaining&&this._releaseLocal(t.local);return!0}if(!this._compileNodeImpl(e))return!1;const a=this._allocLocal();this._sharedLocals.set(e,{local:a,remaining:e.sharedCount-1});this._emitLocalTee(a);return!0}return this._compileNodeImpl(e)}_compileNodeImpl(e){switch(e.type){case j:this._emitLocalGet(e.index);return!0;case y:{let t=e.value;"boolean"==typeof t&&(t=t?1:0);this._emitF64Const(t);return!0}case v:return this._compileUnaryNode(e);case k:return this._compileBinaryNode(e);case q:return this._compileTernaryNode(e);default:return!1}}_compileSinCosNode(e){const t=this._allocLocal();try{if(!this._compileNode(e.operand))return!1;const a=this._code;this._emitLocalSet(t);this._emitLocalGet(t);this._emitLocalGet(t);this._emitF64Const(360);a.push(lt,nt);this._emitF64Const(360);a.push(ot,it);this._emitF64Const(At._);a.push(ot,Oe);this._emitULEB128(Ct._[e.op===r.sin?"sin":"cos"]);return!0}finally{this._releaseLocal(t)}}_compileUnaryNode(e){const t=this._code;if(e.op===r.sin||e.op===r.cos)return this._compileSinCosNode(e);if(e.op===r.not){if(e.valueType===f){if(!this._compileNodeAsBoolI32(e.operand))return!1;t.push(Ne,ht);return!0}if(e.valueType===c){if(!this._compileNode(e.operand))return!1;this._emitToInt32();t.push(He,127,Le,ht);return!0}return!1}if(!this._compileNode(e.operand))return!1;switch(e.op){case r.abs:t.push(Ze);break;case r.neg:t.push(et);break;case r.sqrt:t.push(st);break;case r.floor:t.push(at);break;case r.ceiling:t.push(tt);break;case r.round:this._emitF64Const(.5);t.push(rt,at);break;case r.truncate:t.push(nt);break;case r.cvi:this._emitToInt32();t.push(ht);break;case r.cvr:break;case r.ln:t.push(Oe);this._emitULEB128(Ct._.log);break;case r.log:t.push(Oe);this._emitULEB128(Ct._.log10);break;default:return!1}return!0}_compileSafeDivNode(e,t){const a=this._allocLocal();try{if(!this._compileNode(t)||!this._compileNode(e))return!1;const n=this._code;this._emitLocalTee(a);n.push(lt);this._emitF64Const(0);this._emitLocalGet(a);this._emitF64Const(0);n.push(Ke,Be);return!0}finally{this._releaseLocal(a)}}_compileSafeIdivNode(e,t){const a=this._allocLocal();try{if(!this._compileNode(t)||!this._compileNode(e))return!1;const n=this._code;this._emitLocalTee(a);n.push(lt,nt);this._emitF64Const(0);this._emitLocalGet(a);this._emitF64Const(0);n.push(Ke,Be);return!0}finally{this._releaseLocal(a)}}_compileBitshiftNode(e,t){if(e.type!==y||!Number.isInteger(e.value)||!this._compileNode(t))return!1;const a=this._code;this._emitToInt32();const n=e.value;if(n>0){a.push(He);this._emitSLEB128(n);a.push($e)}else if(n<0){a.push(He);this._emitSLEB128(-n);a.push(Ue)}a.push(ht);return!0}_compileModNode(e,t){if(e.type===y&&0===e.value){this._emitF64Const(0);return!0}const a=this._allocLocal();try{if(!this._compileNode(t))return!1;this._emitLocalTee(a);const n=this._code;if(e.type===y){this._emitLocalGet(a);this._emitF64Const(e.value);n.push(lt,nt);this._emitF64Const(e.value);n.push(ot,it)}else{const t=this._allocLocal();try{if(!this._compileNode(e))return!1;this._emitLocalSet(t);this._emitLocalGet(a);this._emitLocalGet(t);n.push(lt,nt);this._emitLocalGet(t);n.push(ot,it);this._emitF64Const(0);this._emitLocalGet(t);this._emitF64Const(0);n.push(Ke,Be)}finally{this._releaseLocal(t)}}return!0}finally{this._releaseLocal(a)}}_compileAtanNode(e,t){const a=this._allocLocal();try{if(!this._compileNode(t)||!this._compileNode(e))return!1;const n=this._code;n.push(Oe);this._emitULEB128(Ct._.atan2);this._emitF64Const(Ft._);n.push(ot);this._emitLocalTee(a);this._emitF64Const(0);n.push(Ve,Pe,mt);this._emitLocalGet(a);this._emitF64Const(360);n.push(rt,Ie);this._emitLocalGet(a);n.push(Te);return!0}finally{this._releaseLocal(a)}}_compileBitwiseNode(e,t,a){if(!this._compileBitwiseOperandI32(a)||!this._compileBitwiseOperandI32(t))return!1;const n=this._code;switch(e){case r.and:n.push(Ee);break;case r.or:n.push(ze);break;case r.xor:n.push(Le);break;default:return!1}n.push(ht);return!0}_compileBitwiseOperandI32(e){if(e.valueType===f)return this._compileNodeAsBoolI32(e);if(!this._compileNode(e))return!1;this._emitToInt32();return!0}_compileStandardBinaryNode(e,t,a){if(t!==a||t.type===j||t.type===y||t.shared){if(!this._compileNode(a)||!this._compileNode(t))return!1}else{const e=this._allocLocal();try{if(!this._compileNode(t))return!1;this._emitLocalTee(e);this._emitLocalGet(e)}finally{this._releaseLocal(e)}}const n=this._code;switch(e){case r.add:n.push(rt);break;case r.sub:n.push(it);break;case r.mul:n.push(ot);break;case r.exp:n.push(Oe);this._emitULEB128(Ct._.pow);break;case r.eq:n.push(Xe,ht);break;case r.ne:n.push(Ke,ht);break;case r.lt:n.push(Ve,ht);break;case r.le:n.push(Je,ht);break;case r.gt:n.push(Ye,ht);break;case r.ge:n.push(Qe,ht);break;case r.min:n.push(ct);break;case r.max:n.push(ft);break;default:return!1}return!0}_compileBinaryNode(e){const{op:t,first:a,second:n}=e;return t===r.bitshift?this._compileBitshiftNode(a,n):t===r.div?this._compileSafeDivNode(a,n):t===r.idiv?this._compileSafeIdivNode(a,n):t===r.mod?this._compileModNode(a,n):t===r.atan?this._compileAtanNode(a,n):t===r.and||t===r.or||t===r.xor?this._compileBitwiseNode(t,a,n):this._compileStandardBinaryNode(t,a,n)}_compileNodeAsBoolI32(e){if(e.type===k){const t=_t._.get(e.op);if(void 0!==t){if(!this._compileNode(e.second)||!this._compileNode(e.first))return!1;this._code.push(t);return!0}if(e.valueType===f&&(e.op===r.and||e.op===r.or||e.op===r.xor)){if(!this._compileNodeAsBoolI32(e.second)||!this._compileNodeAsBoolI32(e.first))return!1;switch(e.op){case r.and:this._code.push(Ee);break;case r.or:this._code.push(ze);break;case r.xor:this._code.push(Le)}return!0}}if(e.type===v&&e.op===r.not&&e.valueType===f){if(!this._compileNodeAsBoolI32(e.operand))return!1;this._code.push(Ne);return!0}if(!this._compileNode(e))return!1;if(e.valueType===f)this._code.push(Ge);else{this._emitF64Const(0);this._code.push(Ke)}return!0}_compileTernaryNode(e){if(!this._compileNodeAsBoolI32(e.cond))return!1;this._code.push(Pe,mt);if(!this._compileNode(e.then))return!1;this._code.push(Ie);if(!this._compileNode(e.otherwise))return!1;this._code.push(Te);return!0}compile(e){const t=(new PSStackToTree).evaluate(e,this._nIn,this._nOut);if(!t)return null;const a=this._code;for(let e=0;e<this._nOut;e++){const n=this._range[2*e],s=this._range[2*e+1];a.push(He);this._emitSLEB128(8*e);if(!this._compileNode(t[e]))return null;this._emitF64Const(s);a.push(ct);this._emitF64Const(n);a.push(ft,ut,3,0)}a.push(Te);const n=this._nIn,s=this._nextLocal-n,r=[96,...vec(Array(n).fill(mt)),...vec([])],i=new Uint8Array(section(gt,vec([r,...xt._]))),o=vec(s>0?[[...unsignedLEB128(s),mt]]:[]),l=o.length+a.length,c=new Uint8Array(section(vt,vec([[...unsignedLEB128(l),...o,...a]]))),f=Ot._,h=Pt._,u=It._,d=Tt._,m=Bt._,g=f.length+i.length+h.length+u.length+d.length+m.length+c.length,b=new Uint8Array(g);let w=0;b.set(f,w);w+=f.length;b.set(i,w);w+=i.length;b.set(h,w);w+=h.length;b.set(u,w);w+=u.length;b.set(d,w);w+=d.length;b.set(m,w);w+=m.length;b.set(c,w);return b}}Ce=PsWasmCompiler;function wasm_compiler_init(){_t._=wasm_compiler_assertClassBrand(Ce,this,new Map([[r.eq,Xe],[r.ne,Ke],[r.lt,Ve],[r.le,Je],[r.gt,Ye],[r.ge,Qe]]));Ct._=wasm_compiler_assertClassBrand(Ce,this,Object.create(null));for(let e=0;e<kt.length;e++)wasm_compiler_assertClassBrand(Ce,this,Ct)._[kt[e][0]]=e;At._=wasm_compiler_assertClassBrand(Ce,this,Math.PI/180);Ft._=wasm_compiler_assertClassBrand(Ce,this,180/Math.PI);xt._=wasm_compiler_assertClassBrand(Ce,this,kt.map(([,,,e,t])=>[96,...vec(e),...vec(t)]));Pt._=wasm_compiler_assertClassBrand(Ce,this,new Uint8Array(section(bt,vec(kt.map(([,e,t],a)=>[...encodeASCIIString(e),...encodeASCIIString(t),0,...unsignedLEB128(a+1)])))));It._=wasm_compiler_assertClassBrand(Ce,this,new Uint8Array(section(wt,vec([[0]]))));Tt._=wasm_compiler_assertClassBrand(Ce,this,new Uint8Array(section(jt,vec([[0,1]]))));Bt._=wasm_compiler_assertClassBrand(Ce,this,new Uint8Array(section(yt,vec([[...encodeASCIIString("fn"),0,...unsignedLEB128(kt.length)],[...encodeASCIIString("mem"),2,0]]))));Ot._=wasm_compiler_assertClassBrand(Ce,this,new Uint8Array([0,97,115,109,1,0,0,0]));const e=new ArrayBuffer(8);Mt._=wasm_compiler_assertClassBrand(Ce,this,new DataView(e));Rt._=wasm_compiler_assertClassBrand(Ce,this,new Uint8Array(e));St._=wasm_compiler_assertClassBrand(Ce,this,!0)}var St={_:!1},_t={_:null},Ct={_:null},At={_:0},Ft={_:0},xt={_:null},Pt={_:null},It={_:null},Tt={_:null},Bt={_:null},Ot={_:null},Mt={_:null},Rt={_:null};function buildPostScriptWasmFunction(e,t,a){const n=function compilePostScriptToWasm(e,t,a){return new PsWasmCompiler(t,a).compile(parsePostScriptFunction(e))}(e,t,a);if(!n)return null;try{return function _makeWrapper(e,t,a){const{fn:n,mem:s}=e,r=new Float64Array(s.buffer,0,a);let i;switch(a){case 1:i=(e,t)=>{e[t]=r[0]};break;case 2:i=(e,t)=>{e[t]=r[0];e[t+1]=r[1]};break;case 3:i=(e,t)=>{e[t]=r[0];e[t+1]=r[1];e[t+2]=r[2]};break;case 4:i=(e,t)=>{e[t]=r[0];e[t+1]=r[1];e[t+2]=r[2];e[t+3]=r[3]};break;default:i=(e,t)=>{for(let n=0;n<a;n++)e[t+n]=r[n]}}switch(t){case 1:return(e,t,a,s)=>{n(e[t]);i(a,s)};case 2:return(e,t,a,s)=>{n(e[t],e[t+1]);i(a,s)};case 3:return(e,t,a,s)=>{n(e[t],e[t+1],e[t+2]);i(a,s)};case 4:return(e,t,a,s)=>{n(e[t],e[t+1],e[t+2],e[t+3]);i(a,s)};default:{const e=new Float64Array(t);return(a,s,r,o)=>{for(let n=0;n<t;n++)e[n]=a[s+n];n(...e);i(r,o)}}}}(new WebAssembly.Instance(new WebAssembly.Module(n),qt).exports,t.length>>1,a.length>>1)}catch{return null}}function buildPostScriptFunction(e,t,a,n){if(n)try{const n=buildPostScriptWasmFunction(e,t,a);if(n)return n}catch{}(0,s.warn)("Failed to compile PostScript function to wasm, falling back to JS");return function buildPostScriptJsFunction(e,t,a,n=!1){const s=parsePostScriptFunction(e),r=!n&&new PsJsCompiler(t,a).compile(s);return r?(e,t,a,n)=>{PsJsCompiler.execute(r,e,t,a,n)}:PSStackBasedInterpreter.build(s,t,a)}(e,t,a)}},5632(e,t,a){a.d(t,{Cmd:()=>Cmd,Dict:()=>Dict,Name:()=>Name,Ref:()=>Ref,RefMap:()=>RefMap,RefSet:()=>RefSet,clearPrimitiveCaches:()=>clearPrimitiveCaches,isCmd:()=>isCmd,isDict:()=>isDict,isName:()=>isName,isRefsEqual:()=>isRefsEqual});var n=a(1723);function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const s=Symbol("CIRCULAR_REF"),r=Symbol("EOF"),i=new Map,o=new Map,l=new Map;function clearPrimitiveCaches(){i.clear();o.clear();l.clear()}class Name{constructor(e){this.name=e}static get(e){let t=o.get(e);if(!t){t=new Name(e);o.set(e,t)}return t}}class Cmd{constructor(e){this.cmd=e}static get(e){let t=i.get(e);if(!t){t=new Cmd(e);i.set(e,t)}return t}}const nonSerializable=()=>nonSerializable;var c=new WeakMap,f=new WeakSet;class Dict{constructor(e=null){!function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}(this,f);_defineProperty(this,"__nonSerializable__",nonSerializable);_classPrivateFieldInitSpec(this,c,new Map);_defineProperty(this,"objId",null);_defineProperty(this,"suppressEncryption",!1);_defineProperty(this,"xref",void 0);this.xref=e}assignXref(e){this.xref=e}get size(){return _classPrivateFieldGet(c,this).size}get(e,t){return _assertClassBrand(f,this,_getValue).call(this,!1,e,t)}async getAsync(e,t){return _assertClassBrand(f,this,_getValue).call(this,!0,e,t)}getArray(e,t){let a=_assertClassBrand(f,this,_getValue).call(this,!1,e,t);if(Array.isArray(a)){a=a.slice();for(let e=0,t=a.length;e<t;e++)a[e]instanceof Ref&&this.xref&&(a[e]=this.xref.fetch(a[e],this.suppressEncryption))}return a}getRaw(e){return _classPrivateFieldGet(c,this).get(e)}getKeys(){return _classPrivateFieldGet(c,this).keys()}getRawValues(){return _classPrivateFieldGet(c,this).values()}getRawEntries(){return _classPrivateFieldGet(c,this).entries()}set(e,t){_classPrivateFieldGet(c,this).set(e,t)}setIfNotExists(e,t){this.has(e)||this.set(e,t)}setIfNumber(e,t){"number"==typeof t&&this.set(e,t)}setIfArray(e,t){(Array.isArray(t)||ArrayBuffer.isView(t))&&this.set(e,t)}setIfDefined(e,t){null!=t&&this.set(e,t)}setIfName(e,t){"string"==typeof t?this.set(e,Name.get(t)):t instanceof Name&&this.set(e,t)}setIfDict(e,t){t instanceof Dict&&this.set(e,t)}has(e){return _classPrivateFieldGet(c,this).has(e)}*[Symbol.iterator](){for(const[e,t]of _classPrivateFieldGet(c,this))yield[e,t instanceof Ref&&this.xref?this.xref.fetch(t,this.suppressEncryption):t]}static get empty(){const e=new Dict(null);e.set=(e,t)=>{(0,n.unreachable)("Should not call `set` on the empty dictionary.")};return(0,n.shadow)(this,"empty",e)}static merge({xref:e,dictArray:t,mergeSubDicts:a=!1}){const s=new Dict(e),r=new Map;for(const e of t)if(e instanceof Dict)for(const[t,s]of e.getRawEntries()){const e=r.getOrInsertComputed(t,n.makeArr);(!e.length||a&&s instanceof Dict)&&e.push(s)}for(const[t,a]of r){if(1===a.length||!(a[0]instanceof Dict)){s.set(t,a[0]);continue}const n=new Dict(e);for(const e of a)for(const[t,a]of e.getRawEntries())n.setIfNotExists(t,a);n.size>0&&s.set(t,n)}r.clear();return s.size>0?s:Dict.empty}clone(){const e=new Dict(this.xref);for(const[t,a]of _classPrivateFieldGet(c,this))e.set(t,a);return e}delete(e){_classPrivateFieldGet(c,this).delete(e)}}function _getValue(e,t,a){let n=_classPrivateFieldGet(c,this).get(t);void 0===n&&void 0!==a&&(n=_classPrivateFieldGet(c,this).get(a));return n instanceof Ref&&this.xref?e?this.xref.fetchAsync(n,this.suppressEncryption):this.xref.fetch(n,this.suppressEncryption):n}var h=new WeakMap;class Ref{constructor(e,t,a){_classPrivateFieldInitSpec(this,h,void 0);!function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}(h,this,e);this.num=t;this.gen=a}toString(){return _classPrivateFieldGet(h,this)}static fromString(e){let t=l.get(e);if(t)return t;const a=/^([1-9]\d*)R([1-9]\d*)?$/.exec(e);if(!a)return null;t=new Ref(e,parseInt(a[1],10),a[2]?parseInt(a[2],10):0);l.set(e,t);return t}static get(e,t){const a=0===t?`${e}R`:`${e}R${t}`;let n=l.get(a);if(!n){n=new Ref(a,e,t);l.set(a,n)}return n}}var u=new WeakMap;class RefSet{constructor(e=null){_classPrivateFieldInitSpec(this,u,new Set);if(e)for(const t of e)_classPrivateFieldGet(u,this).add(t)}has(e){return _classPrivateFieldGet(u,this).has(e.toString())}put(e){_classPrivateFieldGet(u,this).add(e.toString())}remove(e){_classPrivateFieldGet(u,this).delete(e.toString())}[Symbol.iterator](){return _classPrivateFieldGet(u,this).keys()}clear(){_classPrivateFieldGet(u,this).clear()}}var d=new WeakMap;class RefMap{constructor(){_classPrivateFieldInitSpec(this,d,new Map)}get size(){return _classPrivateFieldGet(d,this).size}get(e){return _classPrivateFieldGet(d,this).get(e.toString())}has(e){return _classPrivateFieldGet(d,this).has(e.toString())}put(e,t){_classPrivateFieldGet(d,this).set(e.toString(),t)}putAlias(e,t){_classPrivateFieldGet(d,this).set(e.toString(),this.get(t))}remove(e){_classPrivateFieldGet(d,this).delete(e.toString())}getOrPutComputed(e,t){const a=_classPrivateFieldGet(d,this),n=e.toString();a.has(n)||a.set(n,t(e));return a.get(n)}[Symbol.iterator](){return _classPrivateFieldGet(d,this).values()}clear(){_classPrivateFieldGet(d,this).clear()}*values(){yield*_classPrivateFieldGet(d,this).values()}*items(){for(const[e,t]of _classPrivateFieldGet(d,this))yield[Ref.fromString(e),t]}*keys(){for(const e of _classPrivateFieldGet(d,this).keys())yield Ref.fromString(e)}}function isName(e,t){return e instanceof Name&&(void 0===t||e.name===t)}function isCmd(e,t){return e instanceof Cmd&&(void 0===t||e.cmd===t)}function isDict(e,t){return e instanceof Dict&&(void 0===t||isName(e.get("Type"),t))}function isRefsEqual(e,t){return e.num===t.num&&e.gen===t.gen}a.d(t,["CIRCULAR_REF",0,s,"EOF",0,r])},5919(e,t,a){a.d(t,{getSoundFormat:()=>getSoundFormat,soundStreamToWav:()=>soundStreamToWav});var n=a(5632),s=a(1723);function getSoundFormat(e){if(!e||e.has("CO"))return null;const t=e.get("R");if(!Number.isInteger(t)||t<=0)return null;const a=e.get("C")??1;if(!Number.isInteger(a)||a<1||a>2)return null;const s=e.get("B")??8;if(8!==s&&16!==s)return null;const r=e.get("E");let i="Raw";void 0!==r&&(i=r instanceof n.Name?r.name:null);return"Raw"!==i&&"Signed"!==i?null:{channels:a,sampleRate:t,bitsPerSample:s,encoding:i}}function soundStreamToWav(e,t){const a=getSoundFormat(e.dict);if(!a)return null;const{channels:n,sampleRate:r,bitsPerSample:i,encoding:o}=a,l=n*(i>>3),c=t.length-t.length%l;if(0===c)return null;const f=new Uint8Array(44+c),h=new DataView(f.buffer);f.set((0,s.stringToBytes)("RIFF"),0);h.setUint32(4,36+c,!0);f.set((0,s.stringToBytes)("WAVE"),8);f.set((0,s.stringToBytes)("fmt "),12);h.setUint32(16,16,!0);h.setUint16(20,1,!0);h.setUint16(22,n,!0);h.setUint32(24,r,!0);h.setUint32(28,r*l,!0);h.setUint16(32,l,!0);h.setUint16(34,i,!0);f.set((0,s.stringToBytes)("data"),36);h.setUint32(40,c,!0);if(16===i){const e="Signed"===o;for(let a=0;a<c;a+=2){let n=t[a]<<8|t[a+1];e?n>=32768&&(n-=65536):n-=32768;h.setInt16(44+a,n,!0)}}else if("Signed"===o)for(let e=0;e<c;e++)f[44+e]=t[e]+128&255;else f.set(t.subarray(0,c),44);return f}},8262(e,t,a){a.d(t,{getStandardFontName:()=>getStandardFontName,isKnownFontName:()=>isKnownFontName});var n=a(720),s=a(8270),r=a(5399);const i=(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["HelveticaLTStd-Bold"]="Helvetica-Bold";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"}),o=(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.GillSansMT="Helvetica";e["GillSansMT-Bold"]="Helvetica-Bold";e["GillSansMT-BoldItalic"]="Helvetica-BoldOblique";e["GillSansMT-Italic"]="Helvetica-Oblique";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";e.TrebuchetMS="Helvetica";e["TrebuchetMS-Bold"]="Helvetica-Bold";e["TrebuchetMS-BoldItalic"]="Helvetica-BoldOblique";e["TrebuchetMS-Italic"]="Helvetica-Oblique"}),l=(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}),c=(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}),f=(0,r.getLookupTableFactory)(function(e){const t=(0,s.getGlyphsUnicode)();e[2]=10;for(let a=3;a<n.MacStandardGlyphOrdering.length;a++){const s=t[n.MacStandardGlyphOrdering[a]];void 0!==s&&(e[a]=s)}}),h=(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[570]=1040;e[571]=1041;e[572]=1042;e[573]=1043;e[574]=1044;e[575]=1045;e[576]=1046;e[577]=1047;e[578]=1048;e[579]=1049;e[580]=1050;e[581]=1051;e[582]=1052;e[583]=1053;e[584]=1054;e[585]=1055;e[586]=1056;e[587]=1057;e[588]=1058;e[589]=1059;e[590]=1060;e[591]=1061;e[592]=1062;e[593]=1063;e[594]=1064;e[595]=1065;e[596]=1066;e[597]=1067;e[598]=1068;e[599]=1069;e[600]=1070;e[601]=1071;e[602]=1072;e[603]=1073;e[604]=1074;e[605]=1075;e[606]=1076;e[607]=1077;e[608]=1078;e[609]=1079;e[610]=1080;e[611]=1081;e[612]=1082;e[613]=1083;e[614]=1084;e[615]=1085;e[616]=1086;e[617]=1087;e[618]=1088;e[619]=1089;e[620]=1090;e[621]=1091;e[622]=1092;e[623]=1093;e[624]=1094;e[625]=1095;e[626]=1096;e[627]=1097;e[628]=1098;e[629]=1099;e[630]=1100;e[631]=1101;e[632]=1102;e[633]=1103;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}),u=(0,r.getLookupTableFactory)(function(e){e[151]=956;e[159]=937;e[168]=916;e[189]=8364;e[195]=8729;e[218]=713;e[236]=222;e[237]=254;e[238]=8722;e[239]=185;e[240]=178;e[241]=179;e[242]=189;e[243]=188;e[244]=190;e[245]=181;e[246]=8486;e[247]=8710;e[248]=253;e[249]=215;e[250]=173;e[253]=8355;e[254]=286;e[255]=287;e[256]=304;e[257]=350;e[258]=351;e[259]=262;e[260]=263;e[261]=268;e[262]=269;e[263]=273;e[264]=175;e[266]=183;e[267]=258;e[268]=259;e[269]=260;e[270]=261;e[271]=270;e[272]=271;e[273]=272;e[274]=280;e[275]=281;e[276]=282;e[277]=283;e[278]=313;e[279]=314;e[280]=317;e[281]=318;e[282]=319;e[283]=320;e[284]=323;e[285]=324;e[286]=327;e[287]=328;e[288]=336;e[289]=337;e[290]=340;e[291]=341;e[292]=344;e[293]=345;e[294]=346;e[295]=347;e[296]=538;e[297]=539;e[298]=356;e[299]=357;e[300]=366;e[301]=367;e[302]=368;e[303]=369;e[304]=377;e[305]=378;e[306]=379;e[307]=380}),d=(0,r.getLookupTableFactory)(function(e){e[227]=322;e[264]=261;e[291]=346}),m=(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[940]=163;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});function getStandardFontName(e){const t=(0,n.normalizeFontName)(e);return i()[t]}function isKnownFontName(e){const t=(0,n.normalizeFontName)(e);return!!(i()[t]||o()[t]||l()[t]||c()[t])}a.d(t,["getGlyphMapForMacOrderedFonts",0,f,"getGlyphMapForStandardFonts",0,h,"getNonStdFontMap",0,o,"getSerifFonts",0,l,"getStdFontMap",0,i,"getSupplementalGlyphMapForArialBlack",0,d,"getSupplementalGlyphMapForCalibri",0,m,"getSupplementalGlyphMapForTrebuchetMS",0,u,"getSymbolsFonts",0,c])},4106(e,t,a){a.d(t,{NullStream:()=>NullStream,Stream:()=>Stream,StringStream:()=>StringStream});var n=a(1834),s=a(1723);class Stream extends n.BaseStream{constructor(e,t,a,n){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=n}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){const t=this.pos,a=e?Math.min(t+e,this.end):this.end;this.pos=a;return this.bytes.subarray(t,a)}getByteRange(e,t){e<0&&(e=0);t>this.end&&(t=this.end);return this.bytes.subarray(e,t)}reset(){this.pos=this.start}moveStart(){this.start=this.pos}makeSubStream(e,t,a=null){return new Stream(this.bytes.buffer,e,t,a)}clone(){return new Stream(this.bytes.buffer,this.start,this.length,this.dict?.clone())}}class StringStream extends Stream{constructor(e,t=null){super((0,s.stringToBytes)(e),NaN,NaN,t)}}class NullStream extends Stream{constructor(){super(new Uint8Array(0))}}},5389(e,t,a){a.d(t,{stringToAsciiOrUTF16BE:()=>stringToAsciiOrUTF16BE,stringToPDFString:()=>stringToPDFString,stringToUTF16HexString:()=>stringToUTF16HexString,stringToUTF16String:()=>stringToUTF16String});var n=a(1723);function stringToAsciiOrUTF16BE(e){return null==e||function isAscii(e){return"string"==typeof e&&(!e||/^[\x00-\x7F]*$/.test(e))}(e)?e:stringToUTF16String(e,!0)}function stringToUTF16HexString(e){const t=[];for(let a=0,s=e.length;a<s;a++){const s=e.charCodeAt(a);t.push(n.Util.hexNums[s>>8&255],n.Util.hexNums[255&s])}return t.join("")}function stringToUTF16String(e,t=!1){const a=[];t&&a.push("þÿ");for(let t=0,n=e.length;t<n;t++){const n=e.charCodeAt(t);a.push(String.fromCharCode(n>>8&255),String.fromCharCode(255&n))}return a.join("")}const s=[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],r=Object.create(null);function stringToPDFString(e,t=!1){if(e[0]>="ï"){let a;if("þ"===e[0]&&"ÿ"===e[1]){a="utf-16be";e.length%2==1&&(e=e.slice(0,-1))}else if("ÿ"===e[0]&&"þ"===e[1]){a="utf-16le";e.length%2==1&&(e=e.slice(0,-1))}else"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(a="utf-8");if(a)try{const s=r[a]??=new TextDecoder(a,{fatal:!0}),i=(0,n.stringToBytes)(e),o=s.decode(i);return t||!o.includes("")?o:o.replaceAll(/\x1b[^\x1b]*(?:\x1b|$)/g,"")}catch(e){(0,n.warn)(`stringToPDFString: "${e}".`)}}const a=[];for(let n=0,r=e.length;n<r;n++){const i=e.charCodeAt(n);if(!t&&27===i){for(;++n<r&&27!==e.charCodeAt(n););continue}const o=s[i];a.push(o?String.fromCharCode(o):e.charAt(n))}return a.join("")}},8802(e,t,a){a.d(t,{StructTreePage:()=>StructTreePage,StructTreeRoot:()=>StructTreeRoot});var n,s=a(1723),r=a(5632),i=a(5399),o=a(5389),l=a(1834),c=a(3944),f=a(1740);function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const h=[["RowSpan","rowSpan"],["ColSpan","colSpan"]],u=1,d=2,m=3,g=4,b=5;var w=new WeakMap,j=new WeakSet;class StructTreeRoot{constructor(e,t,a){_classPrivateMethodInitSpec(this,j);_defineProperty(this,"kidRefToPosition",void 0);_defineProperty(this,"parentTree",null);_defineProperty(this,"roleMap",new Map);_defineProperty(this,"structParentIds",null);_classPrivateFieldInitSpec(this,w,null);this.xref=e;this.dict=t;this.ref=a instanceof r.Ref?a:null;const n=t.get("RoleMap");if(n instanceof r.Dict)for(const[e,t]of n)t instanceof r.Name&&this.roleMap.set(e,t.name);const s=t.getRaw("ParentTree");s&&(this.parentTree=new f.NumberTree(s,e))}getKidPosition(e){if(void 0===this.kidRefToPosition){const e=this.dict.get("K");if(Array.isArray(e)){const t=this.kidRefToPosition=new Map;for(let a=0,n=e.length;a<n;a++){const n=e[a];n&&t.set(n.toString(),a)}}else e instanceof r.Dict?this.kidRefToPosition=new Map([[e.objId,0]]):this.kidRefToPosition=e?null:new Map}return this.kidRefToPosition?this.kidRefToPosition.get(e)??NaN:-1}getElementsForPage(e){if(!_classPrivateFieldGet(w,this)){const e=new r.RefMap,t=new Set,walk=(a,n)=>{if(!(a instanceof r.Dict)||t.has(a))return;if(n>40){(0,s.warn)("StructTree MAX_DEPTH reached.");return}t.add(a);const i=a.getRaw("Pg"),o=a.get("K");for(let t of Array.isArray(o)?o:[o]){t=this.xref.fetchIfRef(t);let o=i;if(t instanceof r.Dict){const e=t.get("Type");if(!(0,r.isName)(e,"MCR")&&!(0,r.isName)(e,"OBJR")){walk(t,n+1);continue}const a=t.getRaw("Pg");a instanceof r.Ref&&(o=a)}else if(!Number.isInteger(t))continue;if(!(o instanceof r.Ref))continue;const l=e.getOrPutComputed(o,s.makeArr);l.at(-1)!==a&&l.push(a)}},a=this.dict.get("K");for(const e of Array.isArray(a)?a:[a])walk(this.xref.fetchIfRef(e),0);!function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}(w,this,e)}return _classPrivateFieldGet(w,this).get(e)}addAnnotationIdToPage(e,t,a){_assertClassBrand(j,this,_addIdToPage).call(this,e,t,g,a instanceof r.Ref?a.toString():null)}static async canCreateStructureTree({catalogRef:e,pdfManager:t,newAnnotationsByPage:a}){if(!(e instanceof r.Ref)){(0,s.warn)("Cannot save the struct tree: no catalog reference.");return!1}let n=0,i=!0;for(const[e,o]of a){const{ref:a}=await t.getPage(e);if(!(a instanceof r.Ref)){(0,s.warn)(`Cannot save the struct tree: page ${e} has no ref.`);i=!0;break}for(const e of o)if(e.accessibilityData?.type){e.parentTreeId=n++;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:n,changes:s}){const i=await n.ensureCatalog("cloneDict"),o=new r.RefMap;o.put(a,i);const l=t.getNewTemporaryRef();i.set("StructTreeRoot",l);const c=new r.Dict(t);c.set("Type",r.Name.get("StructTreeRoot"));const f=t.getNewTemporaryRef();c.set("ParentTree",f);const h=[];c.set("K",h);o.put(l,c);const u=new r.Dict(t),d=[];u.set("Nums",d);const m=await _assertClassBrand(StructTreeRoot,this,_writeKids).call(this,{newAnnotationsByPage:e,structTreeRootRef:l,structTreeRoot:null,kids:h,nums:d,xref:t,pdfManager:n,changes:s,cache:o});c.set("ParentTreeNextKey",m);o.put(f,u);for(const[e,t]of o.items())s.put(e,{data:t})}async canUpdateStructTree({pdfManager:e,newAnnotationsByPage:t}){if(!this.ref){(0,s.warn)("Cannot update the struct tree: no root reference.");return!1}let a=this.dict.get("ParentTreeNextKey");if(!Number.isInteger(a)||a<0){(0,s.warn)("Cannot update the struct tree: invalid next key.");return!1}const n=this.dict.get("ParentTree");if(!(n instanceof r.Dict)){(0,s.warn)("Cannot update the struct tree: ParentTree isn't a dict.");return!1}const i=n.get("Nums");if(!Array.isArray(i)){(0,s.warn)("Cannot update the struct tree: nums isn't an array.");return!1}const o=new f.NumberTree(n,this.xref);for(const a of t.keys()){const{pageDict:t}=await e.getPage(a);if(!t.has("StructParents"))continue;const n=t.get("StructParents");if(!Number.isInteger(n)||!Array.isArray(o.get(n))){(0,s.warn)(`Cannot save the struct tree: page ${a} has a wrong id.`);return!1}}let l=!0;for(const[n,s]of t){const{pageDict:t}=await e.getPage(n);_collectParents.call(StructTreeRoot,{elements:s,xref:this.xref,pageDict:t,numberTree:o});for(const e of s)if(e.accessibilityData?.type){e.accessibilityData.structParent>=0||(e.parentTreeId=a++);l=!1}}if(l){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,changes:a}){const{ref:n,xref:s}=this,i=this.dict.clone(),o=new r.RefMap;o.put(n,i);let l,c=i.getRaw("ParentTree");if(c instanceof r.Ref)l=s.fetch(c);else{l=c;c=s.getNewTemporaryRef();i.set("ParentTree",c)}l=l.clone();o.put(c,l);let f=l.getRaw("Nums"),h=null;if(f instanceof r.Ref){h=f;f=s.fetch(h)}f=f.slice();h||l.set("Nums",f);const u=await _writeKids.call(StructTreeRoot,{newAnnotationsByPage:e,structTreeRootRef:n,structTreeRoot:this,kids:null,nums:f,xref:s,pdfManager:t,changes:a,cache:o});if(-1!==u){i.set("ParentTreeNextKey",u);h&&o.put(h,f);for(const[e,t]of o.items())a.put(e,{data:t})}}}n=StructTreeRoot;function _addIdToPage(e,t,a,n){e instanceof r.Ref&&!(t<0)&&(this.structParentIds??=new r.RefMap).getOrPutComputed(e,s.makeArr).push([t,a,n])}async function _writeKids({newAnnotationsByPage:e,structTreeRootRef:t,structTreeRoot:a,kids:s,nums:i,xref:o,pdfManager:l,changes:c,cache:f}){const h=r.Name.get("OBJR");let u,d=-1;for(const[m,g]of e){const e=await l.getPage(m),{ref:b}=e,w=b instanceof r.Ref;for(const{accessibilityData:l,ref:j,parentTreeId:y,structTreeParent:v}of g){if(!l?.type)continue;const{structParent:g}=l;if(a&&Number.isInteger(g)&&g>=0){let t=(u||=new Map).get(m);if(void 0===t){t=new StructTreePage(a,e.pageDict).collectObjects(b);u.set(m,t)}const s=t?.get(g);if(s){const e=o.fetch(s).clone();_writeProperties.call(n,e,l);if(!l.alt){e.delete("Alt");l.actualText||e.delete("ActualText")}c.put(s,{data:e});continue}}d=Math.max(d,y);const k=o.getNewTemporaryRef(),q=new r.Dict(o);_writeProperties.call(n,q,l);await _assertClassBrand(n,this,_updateParentTag).call(this,{structTreeParent:v,tagDict:q,newTagRef:k,structTreeRootRef:t,fallbackKids:s,xref:o,cache:f});const S=new r.Dict(o);q.set("K",S);S.set("Type",h);w&&S.set("Pg",b);S.set("Obj",j);f.put(k,q);i.push(y,k)}}return d+1}function _writeProperties(e,{type:t,title:a,lang:n,alt:s,expanded:i,actualText:l}){e.set("S",r.Name.get(t));a&&e.set("T",(0,o.stringToAsciiOrUTF16BE)(a));n&&e.set("Lang",(0,o.stringToAsciiOrUTF16BE)(n));s&&e.set("Alt",(0,o.stringToAsciiOrUTF16BE)(s));i&&e.set("E",(0,o.stringToAsciiOrUTF16BE)(i));l&&e.set("ActualText",(0,o.stringToAsciiOrUTF16BE)(l))}function _collectParents({elements:e,xref:t,pageDict:a,numberTree:s}){const i=new Map;for(const o of e){const e=o.structTreeParentId;if(!e)continue;const[c,f]=e.split("_mc",2),h=parseInt(f,10);if(!Number.isInteger(h))continue;const u=c.split("_x",2)[1]||"";if(!i.has(u)){let e=a;if(u){const a=r.Ref.fromString(u),n=a?t.fetch(a):null;if(!(n instanceof l.BaseStream&&(0,r.isName)(n.dict.get("Subtype"),"Form"))){i.set(u,null);continue}e=n.dict}const n=e.get("StructParents");i.set(u,Number.isInteger(n)?s.get(n):null)}const d=i.get(u);if(!Array.isArray(d))continue;const m=[d[h],...d];for(const e of m){if(!(e instanceof r.Ref))continue;const a=t.fetch(e);if(!(a instanceof r.Dict&&_hasMcid.call(n,a,h,u,t)))continue;const s=a.getRaw("P");s instanceof r.Ref&&t.fetch(s)instanceof r.Dict&&(o.structTreeParent={ref:e,dict:a});break}}}function _hasMcid(e,t,a,n){const s=e.get("K");for(let e of Array.isArray(s)?s:[s]){e=n.fetchIfRef(e);if(e===t&&!a)return!0;if(e instanceof r.Dict&&(0,r.isName)(e.get("Type"),"MCR")&&e.get("MCID")===t&&(!a||e.getRaw("Stm")?.toString()===a))return!0}return!1}async function _updateParentTag({structTreeParent:e,tagDict:t,newTagRef:a,structTreeRootRef:n,fallbackKids:s,xref:i,cache:o}){let l,c=null;if(e){({ref:c}=e);l=e.dict.getRaw("P")||n}else l=n;t.set("P",l);const f=i.fetchIfRef(l);if(!f){s.push(a);return}const h=o.getOrPutComputed(l,()=>f.clone()),u=h.getRaw("K");let d=u instanceof r.Ref?o.get(u):null;if(!d){d=i.fetchIfRef(u);d=Array.isArray(d)?d.slice():[u];const e=i.getNewTemporaryRef();h.set("K",e);o.put(e,d)}const m=d.indexOf(c);d.splice(m>=0?m+1:d.length,0,a)}var y=new WeakSet;class StructElementNode{constructor(e,t){_classPrivateMethodInitSpec(this,y);this.tree=e;this.xref=e.xref;this.dict=t;this.kids=[];this.parseKids()}get role(){const e=this.dict.get("S"),t=e instanceof r.Name?e.name:"",{root:a}=this.tree;return a.roleMap.get(t)??t}get mathML(){let e=this.dict.get("AF")||[];Array.isArray(e)||(e=[e]);for(let t of e){t=this.xref.fetchIfRef(t);if(!(0,r.isDict)(t,"Filespec")||!(0,r.isName)(t.get("AFRelationship"),"Supplement"))continue;const e=c.FileSpec.pickPlatformItem(t.get("EF"));if(e instanceof l.BaseStream&&(0,r.isDict)(e.dict,"EmbeddedFile")&&(0,r.isName)(e.dict.get("Subtype"),"application/mathml+xml"))return(0,s.stringToUTF8String)(e.getString())}for(const e of this.attributes)if((0,r.isName)(e.get("O"),"MSFT_Office")){const t=e.get("MSFT_MathML");return t?(0,o.stringToPDFString)(t):null}return null}get attributes(){const e=[],t=this.dict.getArray("C");if(void 0!==t){const a=this.tree.rootDict?.get("ClassMap");if(a instanceof r.Dict)for(const n of Array.isArray(t)?t:[t])n instanceof r.Name&&_assertClassBrand(y,this,_collectAttributes).call(this,a.getRaw(n.name),e)}_assertClassBrand(y,this,_collectAttributes).call(this,this.dict.getRaw("A"),e);return(0,s.shadow)(this,"attributes",e)}get tableAttributes(){const{role:e}=this;if("Table"!==e&&"TH"!==e&&"TD"!==e)return null;const t=new Map;for(const a of this.attributes)if((0,r.isName)(a.get("O"),"Table"))if("Table"!==e){for(const[e,n]of h){if(!a.has(e))continue;const s=a.get(e);Number.isInteger(s)&&s>1?t.set(n,s):t.delete(n)}if(a.has("Headers")){t.delete("headers");const e=a.getArray("Headers");if(Array.isArray(e)){const a=e.filter(e=>"string"==typeof e).map(o.stringToPDFString);a.length>0&&t.set("headers",a)}}if("TH"===e&&a.has("Scope")){t.delete("scope");const e=a.get("Scope");e instanceof r.Name&&["Row","Column","Both"].includes(e.name)&&t.set("scope",e.name)}if("TH"===e&&a.has("Short")){t.delete("short");const e=a.get("Short");"string"==typeof e&&e&&t.set("short",(0,o.stringToPDFString)(e))}}else if(a.has("Summary")){const e=a.get("Summary");"string"==typeof e&&e?t.set("summary",(0,o.stringToPDFString)(e)):t.delete("summary")}return t.size?t:null}parseKids(){let e=null;const t=this.dict.getRaw("Pg");t instanceof r.Ref&&(e=t.toString());const a=this.dict.get("K");if(Array.isArray(a))for(const t of a){const a=this.parseKid(e,this.xref.fetchIfRef(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 StructElement({type:u,mcid:t,pageObjId:e});if(!(t instanceof r.Dict))return null;const a=t.getRaw("Pg");a instanceof r.Ref&&(e=a.toString());const n=t.get("Type")instanceof r.Name?t.get("Type").name:null;if("MCR"===n){if(this.tree.pageDict.objId!==e)return null;const a=t.getRaw("Stm");return new StructElement({type:d,refObjId:a instanceof r.Ref?a.toString():null,pageObjId:e,mcid:t.get("MCID")})}if("OBJR"===n){if(this.tree.pageDict.objId!==e)return null;const a=t.getRaw("Obj");return new StructElement({type:m,refObjId:a instanceof r.Ref?a.toString():null,pageObjId:e})}return new StructElement({type:b,dict:t})}}function _collectAttributes(e,t){const a=[e],n=new r.RefSet;for(;a.length>0;){if((e=a.pop())instanceof r.Ref){if(n.has(e))continue;n.put(e);e=this.xref.fetch(e)}e instanceof l.BaseStream&&(e=e.dict);if(e instanceof r.Dict)t.push(e);else if(Array.isArray(e))for(let t=e.length-1;t>=0;t--)Number.isInteger(e[t])||a.push(e[t])}}class StructElement{constructor({type:e,dict:t=null,mcid:a=null,pageObjId:n=null,refObjId:s=null}){this.type=e;this.dict=t;this.mcid=a;this.pageObjId=n;this.refObjId=s;this.parentNode=null}}var v=new WeakMap,k=new WeakSet;class StructTreePage{constructor(e,t){_classPrivateMethodInitSpec(this,k);_classPrivateFieldInitSpec(this,v,new Map);this.root=e;this.xref=e?.xref??null;this.rootDict=e?.dict??null;this.pageDict=t;this.nodes=[]}collectObjects(e){if(!(this.root&&this.rootDict&&e instanceof r.Ref))return null;const t=this.rootDict.get("ParentTree");if(!t)return null;const a=this.root.structParentIds?.get(e);if(!a)return null;const n=new Map,s=new f.NumberTree(t,this.xref);for(const[e]of a){const t=s.getRaw(e);t instanceof r.Ref&&n.set(e,t)}return n}parse(e,t=null){if(!(this.root&&this.rootDict&&e instanceof r.Ref))return;_assertClassBrand(k,this,_collectFormStructParents).call(this,t);const{parentTree:a}=this.root;if(!a){_assertClassBrand(k,this,_parseWithoutParentTree).call(this,e);return}const n=this.pageDict.get("StructParents"),s=new Set(_classPrivateFieldGet(v,this).values());Number.isInteger(n)&&s.add(n);const i=new Map;for(const e of s){const t=a.get(e);if(Array.isArray(t))for(const a of t)a instanceof r.Ref&&this.addNode(this.xref.fetch(a),i,0,e!==n)}const o=this.root.structParentIds?.get(e);if(o)for(const[e,t,n]of o){const s=a.get(e);if(!s)continue;const r=this.addNode(this.xref.fetchIfRef(s),i);if(r&&n)for(const e of r.kids)e.type===m&&e.refObjId===n&&(e.type=t)}}addNode(e,t,a=0,n=!1){if(a>40){(0,s.warn)("StructTree MAX_DEPTH reached.");return null}if(!(e instanceof r.Dict))return null;if(t.has(e))return t.get(e);const i=new StructElementNode(this,e);if(n&&!i.kids.some(e=>e.type===u||e.type===d))return null;t.set(e,i);switch(i.role){case"L":case"LBody":case"LI":case"Table":case"THead":case"TBody":case"TFoot":case"TR":for(const e of i.kids)e.type===b&&this.addNode(e.dict,t,a-1)}const o=e.get("P");if(!(o instanceof r.Dict)||(0,r.isName)(o.get("Type"),"StructTreeRoot")){this.addTopLevelNode(e,i)||t.delete(e);return i}const l=this.addNode(o,t,a+1);if(!l)return i;let c=!1;for(const t of l.kids)if(t.type===b&&t.dict===e){t.parentNode=i;c=!0}c||t.delete(e);return i}addTopLevelNode(e,t){const a=this.root.getKidPosition(e.objId);if(isNaN(a))return!1;-1!==a&&(this.nodes[a]=t);return!0}get serializable(){const e=_classPrivateFieldGet(v,this);function nodeToSerializable(t,a,n=0){if(n>40){(0,s.warn)("StructTree too deep to be fully serialized.");return}const r=Object.create(null);r.role=t.role;r.children=[];a.children.push(r);let l=t.dict.get("Alt");"string"!=typeof l&&(l=t.dict.get("ActualText"));"string"==typeof l&&(r.alt=(0,o.stringToPDFString)(l));const c=t.dict.get("ID");"TH"===r.role&&"string"==typeof c&&c&&(r.structId=(0,o.stringToPDFString)(c));t.tableAttributes?.forEach((e,t)=>{r[t]=e});if("Formula"===r.role)try{const{mathML:e}=t;e&&(r.mathML=e)}catch(e){if(e instanceof i.MissingDataException)throw e;(0,s.warn)(`Ignoring mathML: "${e}".`)}let f=null,h=null;for(const e of t.attributes){f=(0,i.lookupNormalRect)(e.getArray("BBox"),f);const t=e.get("Width"),a=e.get("Height");"number"==typeof t&&t>0&&"number"==typeof a&&a>0&&(h=[0,0,t,a])}(f||h)&&(r.bbox=f??h);const w=t.dict.get("Lang");"string"==typeof w&&(r.lang=(0,o.stringToPDFString)(w));for(const a of t.kids){const t=a.type===b?a.parentNode:null;if(t)nodeToSerializable(t,r,n+1);else if(a.type===u||a.type===d){const t=e.has(a.refObjId)?`_x${a.refObjId}`:"";r.children.push({type:"content",id:`p${a.pageObjId}${t}_mc${a.mcid}`})}else a.type===m?r.children.push({type:"object",id:a.refObjId}):a.type===g&&r.children.push({type:"annotation",id:`${s.AnnotationPrefix}${a.refObjId}`})}}const t=Object.create(null);t.children=[];t.role="Root";for(const e of this.nodes)e&&nodeToSerializable(e,t);return t}}function _collectFormStructParents(e,t=new r.RefSet,a=0){if(!(e instanceof r.Dict))return;if(a>40){(0,s.warn)("StructTree MAX_DEPTH reached.");return}const n=e.get("XObject");if(n instanceof r.Dict)for(const e of n.getRawValues())if(e instanceof r.Ref&&!t.has(e)){t.put(e);try{const n=this.xref.fetch(e);if(!(n instanceof l.BaseStream&&(0,r.isName)(n.dict.get("Subtype"),"Form")))continue;const s=n.dict.get("StructParents");Number.isInteger(s)&&_classPrivateFieldGet(v,this).set(e.toString(),s);_assertClassBrand(k,this,_collectFormStructParents).call(this,n.dict.get("Resources"),t,a+1)}catch(t){if(t instanceof i.MissingDataException)throw t;(0,s.warn)(`StructTree: ignoring XObject ${e}: "${t}".`)}}}function _parseWithoutParentTree(e){const t=this.root.getElementsForPage(e);if(!t)return;const a=new r.RefSet,n=this.pageDict.get("Annots");if(Array.isArray(n))for(const e of n)e instanceof r.Ref&&a.put(e);const s=new Map;for(const e of t){const t=this.addNode(e,s);if(t)for(const e of t.kids)e.type===m&&e.refObjId&&a.has(e.refObjId)&&(e.type=g)}}},2346(e,t,a){a.d(t,{IdentityToUnicodeMap:()=>IdentityToUnicodeMap,ToUnicodeMap:()=>ToUnicodeMap});var n=a(1723);function _classPrivateFieldInitSpec(e,t,a){(function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,a)}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var s=new WeakMap;class ToUnicodeMap{constructor(e){_classPrivateFieldInitSpec(this,s,void 0);!function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}(s,this,e)}get size(){return _classPrivateFieldGet(s,this).size}forEach(e){_classPrivateFieldGet(s,this).forEach((t,a)=>{e(t,a.codePointAt(0))})}has(e){return _classPrivateFieldGet(s,this).has(e)}get(e){return _classPrivateFieldGet(s,this).get(e)}charCodeOf(e){return _classPrivateFieldGet(s,this).charCodeOf(e)}amend(e){e.forEach((e,t)=>{_classPrivateFieldGet(s,this).set(e,t)})}}class IdentityToUnicodeMap{constructor(e,t){this.firstChar=e;this.lastChar=t}get size(){return this.lastChar+1-this.firstChar}forEach(e){for(let t=this.firstChar,a=this.lastChar;t<=a;t++)e(t,t)}has(e){return this.firstChar<=e&&e<=this.lastChar}get(e){return this.firstChar<=e&&e<=this.lastChar?String.fromCharCode(e):void 0}charCodeOf(e){return Number.isInteger(e)&&e>=this.firstChar&&e<=this.lastChar?e:-1}amend(e){(0,n.unreachable)("Should not call amend()")}}},115(e,t,a){a.d(t,{clearUnicodeCaches:()=>clearUnicodeCaches,getCharUnicodeCategory:()=>getCharUnicodeCategory,getUnicodeForGlyph:()=>getUnicodeForGlyph,getUnicodeRangeFor:()=>getUnicodeRangeFor,mapSpecialUnicodeValues:()=>mapSpecialUnicodeValues});const n=(0,a(5399).getLookupTableFactory)(function(e){e[63721]=169;e[63193]=169;e[63720]=174;e[63194]=174;e[63722]=8482;e[63195]=8482;e[63717]=8254;e[63718]=9168;e[63719]=9135;e[63732]=9130;e[63733]=9134;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});function mapSpecialUnicodeValues(e){return e>=65520&&e<=65535?0:e>=62976&&e<=63743?n()[e]||e:173===e?45:e}function getUnicodeForGlyph(e,t){let a=t[e];if(void 0!==a)return a;if(!e)return-1;if("u"===e[0]){const t=e.length;let n;if(7===t&&"n"===e[1]&&"i"===e[2])n=e.substring(3);else{if(!(t>=5&&t<=7))return-1;n=e.substring(1)}if(n===n.toUpperCase()){a=parseInt(n,16);if(a>=0)return a}}return-1}const 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]];function getUnicodeRangeFor(e,t=-1){if(-1!==t){const a=s[t];for(let n=0,s=a.length;n<s;n+=2)if(e>=a[n]&&e<=a[n+1])return t}for(let t=0,a=s.length;t<a;t++){const a=s[t];for(let n=0,s=a.length;n<s;n+=2)if(e>=a[n]&&e<=a[n+1])return t}return-1}const r=/^(?:(\s+)|(\p{Mn}+)|(\p{Cf}+))$/u,i=new Map;function getCharUnicodeCategory(e){const t=i.get(e);if(t)return t;const a=e.match(r),n={isWhitespace:!!a?.[1],isZeroWidthDiacritic:!!a?.[2],isInvisibleFormatMark:!!a?.[3]};i.set(e,n);return n}function clearUnicodeCaches(){i.clear()}},5412(e,t,a){a.d(t,{WasmImage:()=>WasmImage});var n=a(1723),s=a(3070);function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var r=new WeakMap,i=new WeakSet;class WasmImage{static setOptions({getHandler:e,useWasm:t,useWorkerFetch:a,wasmUrl:n}){l._={getHandler:e,useWasm:t,useWorkerFetch:a,wasmUrl:n}}static get instance(){(0,n.unreachable)("Abstract getter `instance` accessed")}static cleanup(){for(const e of o._)_classPrivateFieldSet(r,e,null)}constructor(e,t){!function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}(this,i);!function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a)}(this,r,null);this._filename=e;this._noWasmFilename=t;o._.add(this)}_getModule(e){if(!_classPrivateFieldGet(r,this)){const{promise:t,resolve:a}=(0,n.createPromiseCapability)();_classPrivateFieldSet(r,this,Promise.race([t,e().then(({default:e})=>e({warn:n.warn,instantiateWasm:_assertClassBrand(i,this,_instantiateWasm).bind(this,a)}))]))}return _classPrivateFieldGet(r,this)}async decode(e,t){(0,n.unreachable)("Abstract method `decode` called")}}async function _instantiateWasm(e,t,a){await s.WasmLoader.load({handler:l._.getHandler?.(),options:l._},this._filename,this._noWasmFilename,e=>a({exports:e(t)}))||e(null)}var o={_:new Set},l={_:{useWasm:!0,useWorkerFetch:!0,wasmUrl:null}}},3070(e,t,a){a.d(t,{WasmLoader:()=>WasmLoader,decodeBrotli:()=>decodeBrotli});var n,s=a(6170),r=a(4106),i=a(1723);function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}async function decodeBrotli(e){const t=new s.BrotliStream(new r.Stream(e),e.length);return await t.asyncGetBytes()??t.getBytes()}class WasmLoader{static async fetch(e,t,a){const{handler:n,options:s}=e;if(!s.useWorkerFetch)return n.sendWithPromise("FetchBinaryData",{kind:t,filename:a});return(await _assertClassBrand(WasmLoader,this,_workerFetch).call(this,s[t],a)).bytes()}static async load(e,t,a,n){const{useWasm:s,wasmUrl:r}=e.options;if(s)try{const a=await _assertClassBrand(WasmLoader,this,_compile).call(this,e,t);n(e=>new WebAssembly.Instance(a,e).exports);return!0}catch(e){(0,i.warn)(`WasmLoader - "${t}": "${e}".`)}if(r)try{const{default:t}=await _assertClassBrand(WasmLoader,this,_importFallback).call(this,e,r,a);n(t);return!0}catch(e){(0,i.warn)(`WasmLoader - "${a}": "${e}".`)}return!1}}n=WasmLoader;async function _workerFetch(e,t){const a=`${e}${t}`,n=await fetch(a);if(!n.ok)throw new Error(`Failed to fetch file "${a}" with "${n.statusText}".`);return n}async function _fetchAndCompile(e,t){const{options:a}=e;if(!a.useWorkerFetch)return WebAssembly.compile(await this.fetch(e,"wasmUrl",t));const{body:s}=await _assertClassBrand(n,this,_workerFetch).call(this,a.wasmUrl,t);return WebAssembly.compileStreaming(new Response(s,{headers:{"Content-Type":"application/wasm"}}))}function _compile(e,t){const a=_assertClassBrand(n,this,o)._.get(t);if(a)return a.catch(()=>_assertClassBrand(n,this,_compile).call(this,e,t));const s=_assertClassBrand(n,this,_fetchAndCompile).call(this,e,t).catch(e=>{_assertClassBrand(n,this,o)._.delete(t);throw e});_assertClassBrand(n,this,o)._.set(t,s);return s}async function _importFallback(e,t,a){let n;const s=await this.fetch(e,"wasmUrl",`${a}.br`);n=await decodeBrotli(s);const r=await new Response(n,{headers:{"Content-Type":"text/javascript"}}).blob(),i=URL.createObjectURL(r);try{return await(import(
/*webpackIgnore: true*/
/*@vite-ignore*/
i))}finally{URL.revokeObjectURL(i)}}var o={_:new Map}},6721(e,t,a){a.d(t,{incrementalUpdate:()=>incrementalUpdate,numberToPDFString:()=>numberToPDFString,writeObject:()=>writeObject,writeValue:()=>writeValue});var n=a(1723),s=a(5632),r=a(5399),i=a(3103),o=a(4106),l=a(1834),c=a(3343);async function writeObject(e,t,a,{encrypt:n=null,encryptRef:s=null}){const r=n&&s!==e?n.createCipherTransform(e.num,e.gen):null;a.push(`${e.num} ${e.gen} obj\n`);await writeValue(t,a,r);a.push("\nendobj\n")}async function writeDict(e,t,a){t.push("<<");for(const[n,s]of e.getRawEntries()){t.push(` /${(0,r.escapePDFName)(n)} `);await writeValue(s,t,a)}t.push(">>")}function numberToPDFString(e){if(Number.isInteger(e)&&Math.abs(e)>=1e21)return BigInt(e).toString();const t=e.toFixed(10);let a=t.length;for(;"0"===t[a-1];)a--;"."===t[a-1]&&a--;return t.slice(0,a)}async function writeValue(e,t,a){if(e instanceof s.Name)t.push(`/${(0,r.escapePDFName)(e.name)}`);else if(e instanceof s.Ref)t.push(`${e.num} ${e.gen} R`);else if(Array.isArray(e)||ArrayBuffer.isView(e))await async function writeArray(e,t,a){t.push("[");for(let n=0,s=e.length;n<s;n++){await writeValue(e[n],t,a);n<s-1&&t.push(" ")}t.push("]")}(e,t,a);else if("string"==typeof e){a&&(e=a.encryptString(e));t.push(`(${(0,r.escapeString)(e)})`)}else"number"==typeof e?t.push(numberToPDFString(e)):"boolean"==typeof e?t.push(e.toString()):e instanceof s.Dict?await writeDict(e,t,a):e instanceof l.BaseStream?await async function writeStream(e,t,a){(e=e.getOriginalStream()).reset();let r=e.getBytes();const{dict:i}=e;let[o,l]=await Promise.all([i.getAsync("Filter"),i.getAsync("DecodeParms")]);const c=Array.isArray(o)?await Promise.all(o.map(e=>i.xref.fetchIfRefAsync(e))):[o];let f=null;const h=c.findIndex(e=>(0,s.isName)(e,"Crypt"));if(-1!==h)if(a){const e=Array.isArray(l)?await i.xref.fetchIfRefAsync(l[h]):l,t=e instanceof s.Dict?e.get("Name"):null;f=t instanceof s.Name?t:s.Name.get("Identity")}else{c.splice(h,1);if(0===c.length){o=l=void 0;i.delete("Filter");i.delete("DecodeParms")}else{o=o.toSpliced(h,1);i.set("Filter",o);if(Array.isArray(l)){l=l.toSpliced(h,1);i.set("DecodeParms",l)}}}const u=c[0],d=(0,s.isName)(u,"FlateDecode"),m=(0,s.isName)(u,"DCTDecode")||(0,s.isName)(u,"JPXDecode")||(0,s.isName)(u,"JBIG2Decode")||(0,s.isName)(u,"CCITTFaxDecode")||(0,s.isName)(u,"LZWDecode");if(!(d||m||(0,s.isName)(u,"BrotliDecode"))&&!f&&!(0,s.isDict)(i,"Metadata")&&r.length>=256)try{const e=new CompressionStream("deflate"),t=e.writable.getWriter();await t.ready;t.write(r).then(async()=>{await t.ready;await t.close()}).catch(n.noopFn);r=await new Response(e.readable).bytes();let a,c;if(o){if(!d){a=Array.isArray(o)?[s.Name.get("FlateDecode"),...o]:[s.Name.get("FlateDecode"),o];l&&(c=Array.isArray(l)?[null,...l]:[null,l])}}else a=s.Name.get("FlateDecode");a&&i.set("Filter",a);c&&i.set("DecodeParms",c)}catch(e){(0,n.info)(`writeStream - cannot compress data: "${e}".`)}let g=(0,n.bytesToString)(r);a&&(g=a.encryptStream(g,i,f));i.set("Length",g.length);await writeDict(i,t,a);t.push(" stream\n",g,"\nendstream")}(e,t,a):null===e?t.push("null"):(0,n.warn)(`Unhandled value in writer: ${typeof e}, please file a bug.`)}function writeInt(e,t,a,n){for(let s=t+a-1;s>a-1;s--){n[s]=255&e;e>>=8}return a+t}function writeString(e,t,a){const n=e.length;for(let s=0;s<n;s++)a[t+s]=255&e.charCodeAt(s);return t+n}function updateXFA({xfaData:e,xfaDatasetsRef:t,changes:a,xref:l}){if(null===e){e=function writeXFADataForAcroform(e,t){const a=new i.SimpleXMLParser({hasAttributes:!0}).parseFromString(e);for(const{xfa:e}of t){if(!e)continue;const{path:t,value:s}=e;if(!t||null===s)continue;const o=(0,r.parseXFAPath)(t);let l=a.documentElement.searchNode(o,0);!l&&o.length>1&&(l=a.documentElement.searchNode([o.at(-1)],0));l?l.childNodes=Array.isArray(s)?s.map(e=>new i.SimpleDOMNode("value",e)):[new i.SimpleDOMNode("#text",s)]:(0,n.warn)(`Node not found for path: ${t}`)}const s=[];a.documentElement.dump(s);return s.join("")}(l.fetchIfRef(t).getString(),a)}const c=new o.StringStream(e,new s.Dict(l));c.dict.setIfName("Type","EmbeddedFile");a.put(t,{data:c})}function getIndexes(e){const t=[];for(const{ref:a}of e)a.num===t.at(-2)+t.at(-1)?t[t.length-1]+=1:t.push(a.num,1);return t}function computeIDs(e,t,a){if(Array.isArray(t.fileIds)&&t.fileIds.length>0){const s=function computeMD5(e,t){const a=Math.floor(Date.now()/1e3),s=t.filename||"",r=[a.toString(),s,e.toString(),...t.infoMap.values()],i=Math.sumPrecise(r.map(e=>e.length)),o=new Uint8Array(i);let l=0;for(const e of r)l=writeString(e,l,o);return(0,n.bytesToString)((0,c.calculateMD5)(o,0,o.length))}(e,t);a.set("ID",[t.fileIds[0]||s,s])}}async function incrementalUpdate({originalData:e,xrefInfo:t,changes:a,xref:i=null,hasXfa:l=!1,xfaDatasetsRef:c=null,hasXfaDatasetsEntry:f=!1,needAppearances:h,acroFormRef:u=null,acroForm:d=null,xfaData:m=null,useXrefStream:g=!1}){await async function updateAcroform({xref:e,acroForm:t,acroFormRef:a,hasXfa:s,hasXfaDatasetsEntry:r,xfaDatasetsRef:i,needAppearances:o,changes:l}){!s||r||i||(0,n.warn)("XFA - Cannot save it");if(!o&&(!s||!i||r))return;const c=t.clone();if(s&&!r){const e=t.get("XFA").slice();e.splice(2,0,"datasets");e.splice(3,0,i);c.set("XFA",e)}o&&c.set("NeedAppearances",!0);l.put(a,{data:c})}({xref:i,acroForm:d,acroFormRef:u,hasXfa:l,hasXfaDatasetsEntry:f,xfaDatasetsRef:c,needAppearances:h,changes:a});l&&updateXFA({xfaData:m,xfaDatasetsRef:c,changes:a,xref:i});const b=function getTrailerDict(e,t,a){const n=new s.Dict(null);n.setIfDefined("Prev",e?.startXRef);const r=e.newRef;if(a){t.put(r,{data:""});n.set("Size",r.num+1);n.setIfName("Type","XRef")}else n.set("Size",r.num);n.setIfDefined("Root",e?.rootRef);n.setIfDefined("Info",e?.infoRef);n.setIfDefined("Encrypt",e?.encryptRef);return n}(t,a,g),w=[],j=await async function writeChanges(e,t,a=[]){const n=[];for(const[s,{data:r,objStreamRef:i,index:o}]of e.items())if(i)n.push({ref:s,data:r,objStreamRef:i,index:o});else if(null!==r&&"string"!=typeof r){await writeObject(s,r,a,t);n.push({ref:s,data:a.join("")});a.length=0}else n.push({ref:s,data:r});return n.sort((e,t)=>e.ref.num-t.ref.num)}(a,i,w);let y=e.length;const v=e.at(-1);if(10!==v&&13!==v){w.push("\n");y+=1}for(const{data:e}of j)null!==e&&w.push(e);await(g?async function getXRefStreamTable(e,t,a,n,s){const i=[];let l=0,c=0;for(const{ref:e,data:n,objStreamRef:s,index:r}of a){let a;l=Math.max(l,t);if(s){a=r;i.push([2,s.num,a])}else if(null!==n){a=Math.min(e.gen,65535);i.push([1,t,a]);t+=n.length}else{a=Math.min(e.gen+1,65535);i.push([0,0,a])}c=Math.max(c,a)}n.set("Index",getIndexes(a));const f=[1,(0,r.getSizeInBytes)(l),(0,r.getSizeInBytes)(c)];n.set("W",f);computeIDs(t,e,n);const h=Math.sumPrecise(f),u=new Uint8Array(h*i.length),d=new o.Stream(u);d.dict=n;let m=0;for(const[e,t,a]of i){m=writeInt(e,f[0],m,u);m=writeInt(t,f[1],m,u);m=writeInt(a,f[2],m,u)}await writeObject(e.newRef,d,s,{});s.push("startxref\n",t.toString(),"\n%%EOF\n")}(t,y,j,b,w):async function getXRefTable(e,t,a,n,s){s.push("xref\n");const r=getIndexes(a);let i=0;for(const{ref:e,data:n}of a){if(e.num===r[i]){s.push(`${r[i]} ${r[i+1]}\n`);i+=2}if(null!==n){s.push(`${t.toString().padStart(10,"0")} ${Math.min(e.gen,65535).toString().padStart(5,"0")} n\r\n`);t+=n.length}else s.push(`0000000000 ${Math.min(e.gen+1,65535).toString().padStart(5,"0")} f\r\n`)}computeIDs(t,e,n);s.push("trailer\n");await writeDict(n,s,null);s.push("\nstartxref\n",t.toString(),"\n%%EOF\n")}(t,y,j,b,w));const k=e.length+Math.sumPrecise(w.map(e=>e.length)),q=new Uint8Array(k);q.set(e);let S=e.length;for(const e of w)S=writeString(e,S,q);return q}},7631(e,t,a){a.d(t,{XFAFactory:()=>XFAFactory,getXfaFontDict:()=>getXfaFontDict,getXfaFontName:()=>getXfaFontName});var n=a(1318),s=a(7088),r=a(4566),i=a(1037);function createLine(e,t){return{name:"div",attributes:{class:["lr-tb"===e.layout?"xfaLr":"xfaRl"]},children:t}}function flushHTML(e){if(!e[n.$extra])return null;const t={name:"div",attributes:e[n.$extra].attributes,children:e[n.$extra].children};if(e[n.$extra].failingNode){const a=e[n.$extra].failingNode[n.$flushHTML]();a&&(e.layout.endsWith("-tb")?t.children.push(createLine(e,[a])):t.children.push(a))}return 0===t.children.length?null:t}function addHTML(e,t,a){const s=e[n.$extra],o=s.availableSpace,[l,c,f,h]=a;switch(e.layout){case"position":s.width=Math.max(s.width,l+f);s.height=Math.max(s.height,c+h);s.children.push(t);break;case"lr-tb":case"rl-tb":if(!s.line||1===s.attempt){s.line=createLine(e,[]);s.children.push(s.line);s.numberInLine=0}s.numberInLine+=1;s.line.children.push(t);if(0===s.attempt){s.currentWidth+=f;s.height=Math.max(s.height,s.prevHeight+h)}else{s.currentWidth=f;s.prevHeight=s.height;s.height+=h;s.attempt=0}s.width=Math.max(s.width,s.currentWidth);break;case"rl-row":case"row":{s.children.push(t);s.width+=f;s.height=Math.max(s.height,h);const e=(0,i.measureToString)(s.height);for(const t of s.children)t.attributes.style.height=e;break}case"table":case"tb":s.width=(0,r.MathClamp)(f,s.width,o.width);s.height+=h;s.children.push(t)}}function getAvailableSpace(e){const t=e[n.$extra].availableSpace,a=e.margin?e.margin.topInset+e.margin.bottomInset:0,s=e.margin?e.margin.leftInset+e.margin.rightInset:0;switch(e.layout){case"lr-tb":case"rl-tb":return 0===e[n.$extra].attempt?{width:t.width-s-e[n.$extra].currentWidth,height:t.height-a-e[n.$extra].prevHeight}:{width:t.width-s,height:t.height-a-e[n.$extra].height};case"rl-row":case"row":return{width:Math.sumPrecise(e[n.$extra].columnWidths.slice(e[n.$extra].currentColumn)),height:t.height-s};case"table":case"tb":return{width:t.width-s,height:t.height-a-e[n.$extra].height};default:return t}}function checkDimensions(e,t){if(null===e[n.$getTemplateRoot]()[n.$extra].firstUnsplittable||0===e.w||0===e.h)return!0;const a=e[n.$getSubformParent](),s=a[n.$extra]?.attempt||0,[,r,i,o]=function getTransformedBBox(e){let t,a,n=""===e.w?NaN:e.w,s=""===e.h?NaN:e.h,[r,i]=[0,0];switch(e.anchorType||""){case"bottomCenter":[r,i]=[n/2,s];break;case"bottomLeft":[r,i]=[0,s];break;case"bottomRight":[r,i]=[n,s];break;case"middleCenter":[r,i]=[n/2,s/2];break;case"middleLeft":[r,i]=[0,s/2];break;case"middleRight":[r,i]=[n,s/2];break;case"topCenter":[r,i]=[n/2,0];break;case"topRight":[r,i]=[n,0]}switch(e.rotate||0){case 0:[t,a]=[-r,-i];break;case 90:[t,a]=[-i,r];[n,s]=[s,-n];break;case 180:[t,a]=[r,i];[n,s]=[-n,-s];break;case 270:[t,a]=[i,-r];[n,s]=[-s,n]}return[e.x+t+Math.min(0,n),e.y+a+Math.min(0,s),Math.abs(n),Math.abs(s)]}(e);switch(a.layout){case"lr-tb":case"rl-tb":return 0===s?e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure?""!==e.w?Math.round(i-t.width)<=2:t.width>2:!(""!==e.h&&Math.round(o-t.height)>2)&&(""!==e.w?Math.round(i-t.width)<=2||0===a[n.$extra].numberInLine&&t.height>2:t.width>2):!!e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||!(""!==e.h&&Math.round(o-t.height)>2)&&((""===e.w||Math.round(i-t.width)<=2||!a[n.$isThereMoreWidth]())&&t.height>2);case"table":case"tb":return!!e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||(""===e.h||e[n.$isSplittable]()?(""===e.w||Math.round(i-t.width)<=2||!a[n.$isThereMoreWidth]())&&t.height>2:Math.round(o-t.height)<=2);case"position":if(e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||""===e.h||Math.round(o+r-t.height)<=2)return!0;return o+r>e[n.$getTemplateRoot]()[n.$extra].currentContentArea.h;case"rl-row":case"row":return!!e[n.$getTemplateRoot]()[n.$extra].noLayoutFailure||(""===e.h||Math.round(o-t.height)<=2);default:return!0}}var o=a(7485),l=a(8063),c=a(1723),f=a(4028),h=a(5399),u=a(4104);const d=s.NamespaceIds.template.id,m=/^H(\d+)$/,g=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"]),b=[[[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 getBorderDims(e){if(!e||!e.border)return{w:0,h:0};const t=e.border[n.$getExtra]();return t?{w:t.widths[0]+t.widths[2]+t.insets[0]+t.insets[2],h:t.widths[1]+t.widths[3]+t.insets[1]+t.insets[3]}:{w:0,h:0}}function hasMargin(e){return e.margin&&(e.margin.topInset||e.margin.rightInset||e.margin.bottomInset||e.margin.leftInset)}function _setValue(e,t){if(!e.value){const t=new Value({});e[n.$appendChild](t);e.value=t}e.value[n.$setValue](t)}function*getContainedChildren(e){for(const t of e[n.$getChildren]())t instanceof SubformSet?yield*t[n.$getContainedChildren]():yield t}function isRequired(e){return"error"===e.validate?.nullTest}function setTabIndex(e){for(;e;){if(!e.traversal){e[n.$tabIndex]=e[n.$getParent]()[n.$tabIndex];return}if(e[n.$tabIndex])return;let t=null;for(const a of e.traversal[n.$getChildren]())if("next"===a.operation){t=a;break}if(!t||!t.ref){e[n.$tabIndex]=e[n.$getParent]()[n.$tabIndex];return}const a=e[n.$getTemplateRoot]();e[n.$tabIndex]=++a[n.$tabIndex];const s=a[n.$searchNode](t.ref,e);if(!s)return;e=s[0]}}function applyAssist(e,t){const a=e.assist;if(a){const e=a[n.$toHTML]();e&&(t.title=e);const s=a.role.match(m);if(s){const e="heading",a=s[1];t.role=e;t["aria-level"]=a}}if("table"===e.layout)t.role="table";else if("row"===e.layout)t.role="row";else{const a=e[n.$getParent]();"row"===a.layout&&(t.role="TH"===a.assist?.role?"columnheader":"cell")}}function ariaLabel(e){if(!e.assist)return null;const t=e.assist;return t.speak&&""!==t.speak[n.$content]?t.speak[n.$content]:t.toolTip?t.toolTip[n.$content]:null}function valueToHtml(e){return l.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:Object.create(null)},children:[{name:"span",attributes:{style:Object.create(null)},value:e}]})}function setFirstUnsplittable(e){const t=e[n.$getTemplateRoot]();if(null===t[n.$extra].firstUnsplittable){t[n.$extra].firstUnsplittable=e;t[n.$extra].noLayoutFailure=!0}}function unsetFirstUnsplittable(e){const t=e[n.$getTemplateRoot]();t[n.$extra].firstUnsplittable===e&&(t[n.$extra].noLayoutFailure=!1)}function handleBreak(e){if(e[n.$extra])return!1;e[n.$extra]=Object.create(null);if("auto"===e.targetType)return!1;const t=e[n.$getTemplateRoot]();let a=null;if(e.target){a=t[n.$searchNode](e.target,e[n.$getParent]());if(!a)return!1;a=a[0]}const{currentPageArea:s,currentContentArea:r}=t[n.$extra];if("pageArea"===e.targetType){a instanceof PageArea||(a=null);if(e.startNew){e[n.$extra].target=a||s;return!0}if(a&&a!==s){e[n.$extra].target=a;return!0}return!1}a instanceof ContentArea||(a=null);const i=a&&a[n.$getParent]();let o,l=i;if(e.startNew)if(a){const e=i.contentArea.children,t=e.indexOf(r),n=e.indexOf(a);-1!==t&&t<n&&(l=null);o=n-1}else o=s.contentArea.children.indexOf(r);else{if(!a||a===r)return!1;o=i.contentArea.children.indexOf(a)-1;l=i===s?null:i}e[n.$extra].target=l;e[n.$extra].index=o;return!0}function handleOverflow(e,t,a){const s=e[n.$getTemplateRoot](),r=s[n.$extra].noLayoutFailure,i=t[n.$getSubformParent];t[n.$getSubformParent]=()=>e;s[n.$extra].noLayoutFailure=!0;const o=t[n.$toHTML](a);e[n.$addHTML](o.html,o.bbox);s[n.$extra].noLayoutFailure=r;t[n.$getSubformParent]=i}class AppearanceFilter extends o.StringObject{constructor(e){super(d,"appearanceFilter");this.id=e.id||"";this.type=(0,l.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Arc extends o.XFAObject{constructor(e){super(d,"arc",!0);this.circular=(0,l.getInteger)({data:e.circular,defaultValue:0,validate:e=>1===e});this.hand=(0,l.getStringOption)(e.hand,["even","left","right"]);this.id=e.id||"";this.startAngle=(0,l.getFloat)({data:e.startAngle,defaultValue:0,validate:e=>!0});this.sweepAngle=(0,l.getFloat)({data:e.sweepAngle,defaultValue:360,validate:e=>!0});this.use=e.use||"";this.usehref=e.usehref||"";this.edge=null;this.fill=null}[n.$toHTML](){const e=this.edge||new Edge({}),t=e[n.$toStyle](),a=Object.create(null);"visible"===this.fill?.presence?Object.assign(a,this.fill[n.$toStyle]()):a.fill="transparent";a.strokeWidth=(0,i.measureToString)("visible"===e.presence?e.thickness:0);a.stroke=t.color;let s;const r={xmlns:c.SVG_NS,style:{width:"100%",height:"100%",overflow:"visible"}};if(360===this.sweepAngle)s={name:"ellipse",attributes:{xmlns:c.SVG_NS,cx:"50%",cy:"50%",rx:"50%",ry:"50%",style:a}};else{const e=this.startAngle*Math.PI/180,t=this.sweepAngle*Math.PI/180,n=this.sweepAngle>180?1:0,[i,o,l,f]=[50*(1+Math.cos(e)),50*(1-Math.sin(e)),50*(1+Math.cos(e+t)),50*(1-Math.sin(e+t))];s={name:"path",attributes:{xmlns:c.SVG_NS,d:`M ${i} ${o} A 50 50 0 ${n} 0 ${l} ${f}`,vectorEffect:"non-scaling-stroke",style:a}};Object.assign(r,{viewBox:"0 0 100 100",preserveAspectRatio:"none"})}const o={name:"svg",children:[s],attributes:r};if(hasMargin(this[n.$getParent]()[n.$getParent]()))return l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[o]});o.attributes.style.position="absolute";return l.HTMLResult.success(o)}}class Area extends o.XFAObject{constructor(e){super(d,"area",!0);this.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e});this.id=e.id||"";this.name=e.name||"";this.relevant=(0,l.getRelevant)(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.x=(0,l.getMeasurement)(e.x,"0pt");this.y=(0,l.getMeasurement)(e.y,"0pt");this.desc=null;this.extras=null;this.area=new o.XFAObjectArray;this.draw=new o.XFAObjectArray;this.exObject=new o.XFAObjectArray;this.exclGroup=new o.XFAObjectArray;this.field=new o.XFAObjectArray;this.subform=new o.XFAObjectArray;this.subformSet=new o.XFAObjectArray}*[n.$getContainedChildren](){yield*getContainedChildren(this)}[n.$isTransparent](){return!0}[n.$isBindable](){return!0}[n.$addHTML](e,t){const[a,s,r,i]=t;this[n.$extra].width=Math.max(this[n.$extra].width,a+r);this[n.$extra].height=Math.max(this[n.$extra].height,s+i);this[n.$extra].children.push(e)}[n.$getAvailableSpace](){return this[n.$extra].availableSpace}[n.$toHTML](e){const t=(0,i.toStyle)(this,"position"),a={style:t,id:this[n.$uid],class:["xfaArea"]};(0,i.isPrintOnly)(this)&&a.class.push("xfaPrintOnly");this.name&&(a.xfaName=this.name);const s=[];this[n.$extra]={children:s,width:0,height:0,availableSpace:e};const r=this[n.$childrenToHTML]({filter:new Set(["area","draw","field","exclGroup","subform","subformSet"]),include:!0});if(!r.success){if(r.isBreak())return r;delete this[n.$extra];return l.HTMLResult.FAILURE}t.width=(0,i.measureToString)(this[n.$extra].width);t.height=(0,i.measureToString)(this[n.$extra].height);const o={name:"div",attributes:a,children:s},c=[this.x,this.y,this[n.$extra].width,this[n.$extra].height];delete this[n.$extra];return l.HTMLResult.success(o,c)}}class Assist extends o.XFAObject{constructor(e){super(d,"assist",!0);this.id=e.id||"";this.role=e.role||"";this.use=e.use||"";this.usehref=e.usehref||"";this.speak=null;this.toolTip=null}[n.$toHTML](){return this.toolTip?.[n.$content]||null}}class Barcode extends o.XFAObject{constructor(e){super(d,"barcode",!0);this.charEncoding=(0,l.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,l.getStringOption)(e.checksum,["none","1mod10","1mod10_1mod11","2mod10","auto"]);this.dataColumnCount=(0,l.getInteger)({data:e.dataColumnCount,defaultValue:-1,validate:e=>e>=0});this.dataLength=(0,l.getInteger)({data:e.dataLength,defaultValue:-1,validate:e=>e>=0});this.dataPrep=(0,l.getStringOption)(e.dataPrep,["none","flateCompress"]);this.dataRowCount=(0,l.getInteger)({data:e.dataRowCount,defaultValue:-1,validate:e=>e>=0});this.endChar=e.endChar||"";this.errorCorrectionLevel=(0,l.getInteger)({data:e.errorCorrectionLevel,defaultValue:-1,validate:e=>e>=0&&e<=8});this.id=e.id||"";this.moduleHeight=(0,l.getMeasurement)(e.moduleHeight,"5mm");this.moduleWidth=(0,l.getMeasurement)(e.moduleWidth,"0.25mm");this.printCheckDigit=(0,l.getInteger)({data:e.printCheckDigit,defaultValue:0,validate:e=>1===e});this.rowColumnRatio=(0,l.getRatio)(e.rowColumnRatio);this.startChar=e.startChar||"";this.textLocation=(0,l.getStringOption)(e.textLocation,["below","above","aboveEmbedded","belowEmbedded","none"]);this.truncate=(0,l.getInteger)({data:e.truncate,defaultValue:0,validate:e=>1===e});this.type=(0,l.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,l.getStringOption)(e.upsMode,["usCarrier","internationalCarrier","secureSymbol","standardSymbol"]);this.use=e.use||"";this.usehref=e.usehref||"";this.wideNarrowRatio=(0,l.getRatio)(e.wideNarrowRatio);this.encrypt=null;this.extras=null}}class Bind extends o.XFAObject{constructor(e){super(d,"bind",!0);this.match=(0,l.getStringOption)(e.match,["once","dataRef","global","none"]);this.ref=e.ref||"";this.picture=null}}class BindItems extends o.XFAObject{constructor(e){super(d,"bindItems");this.connection=e.connection||"";this.labelRef=e.labelRef||"";this.ref=e.ref||"";this.valueRef=e.valueRef||""}}class Bookend extends o.XFAObject{constructor(e){super(d,"bookend");this.id=e.id||"";this.leader=e.leader||"";this.trailer=e.trailer||"";this.use=e.use||"";this.usehref=e.usehref||""}}class BooleanElement extends o.Option01{constructor(e){super(d,"boolean");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[n.$toHTML](e){return valueToHtml(1===this[n.$content]?"1":"0")}}class Border extends o.XFAObject{constructor(e){super(d,"border",!0);this.break=(0,l.getStringOption)(e.break,["close","open"]);this.hand=(0,l.getStringOption)(e.hand,["even","left","right"]);this.id=e.id||"";this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,l.getRelevant)(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.corner=new o.XFAObjectArray(4);this.edge=new o.XFAObjectArray(4);this.extras=null;this.fill=null;this.margin=null}[n.$getExtra](){if(!this[n.$extra]){const e=this.edge.children.slice();if(e.length<4){const t=e.at(-1)||new Edge({});for(let a=e.length;a<4;a++)e.push(t)}const t=e.map(e=>e.thickness),a=[0,0,0,0];if(this.margin){a[0]=this.margin.topInset;a[1]=this.margin.rightInset;a[2]=this.margin.bottomInset;a[3]=this.margin.leftInset}this[n.$extra]={widths:t,insets:a,edges:e}}return this[n.$extra]}[n.$toStyle](){const{edges:e}=this[n.$getExtra](),t=e.map(e=>{const t=e[n.$toStyle]();t.color||="#000000";return t}),a=Object.create(null);this.margin&&Object.assign(a,this.margin[n.$toStyle]());"visible"===this.fill?.presence&&Object.assign(a,this.fill[n.$toStyle]());if(this.corner.children.some(e=>0!==e.radius)){const e=this.corner.children.map(e=>e[n.$toStyle]());if(2===e.length||3===e.length){const t=e.at(-1);for(let a=e.length;a<4;a++)e.push(t)}a.borderRadius=e.map(e=>e.radius).join(" ")}switch(this.presence){case"invisible":case"hidden":a.borderStyle="";break;case"inactive":a.borderStyle="none";break;default:a.borderStyle=t.map(e=>e.style).join(" ")}a.borderWidth=t.map(e=>e.width).join(" ");a.borderColor=t.map(e=>e.color).join(" ");return a}}class Break extends o.XFAObject{constructor(e){super(d,"break",!0);this.after=(0,l.getStringOption)(e.after,["auto","contentArea","pageArea","pageEven","pageOdd"]);this.afterTarget=e.afterTarget||"";this.before=(0,l.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,l.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e});this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}}class BreakAfter extends o.XFAObject{constructor(e){super(d,"breakAfter",!0);this.id=e.id||"";this.leader=e.leader||"";this.startNew=(0,l.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e});this.target=e.target||"";this.targetType=(0,l.getStringOption)(e.targetType,["auto","contentArea","pageArea"]);this.trailer=e.trailer||"";this.use=e.use||"";this.usehref=e.usehref||"";this.script=null}}class BreakBefore extends o.XFAObject{constructor(e){super(d,"breakBefore",!0);this.id=e.id||"";this.leader=e.leader||"";this.startNew=(0,l.getInteger)({data:e.startNew,defaultValue:0,validate:e=>1===e});this.target=e.target||"";this.targetType=(0,l.getStringOption)(e.targetType,["auto","contentArea","pageArea"]);this.trailer=e.trailer||"";this.use=e.use||"";this.usehref=e.usehref||"";this.script=null}[n.$toHTML](e){this[n.$extra]={};return l.HTMLResult.FAILURE}}class Button extends o.XFAObject{constructor(e){super(d,"button",!0);this.highlight=(0,l.getStringOption)(e.highlight,["inverted","none","outline","push"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}[n.$toHTML](e){const t=this[n.$getParent]()[n.$getParent](),a={name:"button",attributes:{id:this[n.$uid],class:["xfaButton"],style:{}},children:[]};for(const e of t.event.children){if("click"!==e.activity||!e.script)continue;const t=(0,h.recoverJsURL)(e.script[n.$content]);if(!t)continue;const s=(0,i.fixURL)(t.url);s&&a.children.push({name:"a",attributes:{id:"link"+this[n.$uid],href:s,newWindow:t.newWindow,class:["xfaLink"],style:{}},children:[]})}return l.HTMLResult.success(a)}}class Calculate extends o.XFAObject{constructor(e){super(d,"calculate",!0);this.id=e.id||"";this.override=(0,l.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 Caption extends o.XFAObject{constructor(e){super(d,"caption",!0);this.id=e.id||"";this.placement=(0,l.getStringOption)(e.placement,["left","bottom","inline","right","top"]);this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.reserve=Math.ceil((0,l.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}[n.$setValue](e){_setValue(this,e)}[n.$getExtra](e){if(!this[n.$extra]){let{width:t,height:a}=e;switch(this.placement){case"left":case"right":case"inline":t=this.reserve<=0?t:this.reserve;break;case"top":case"bottom":a=this.reserve<=0?a:this.reserve}this[n.$extra]=(0,i.layoutNode)(this,{width:t,height:a})}return this[n.$extra]}[n.$toHTML](e){if(!this.value)return l.HTMLResult.EMPTY;this[n.$pushPara]();const t=this.value[n.$toHTML](e).html;if(!t){this[n.$popPara]();return l.HTMLResult.EMPTY}const a=this.reserve;if(this.reserve<=0){const{w:t,h:a}=this[n.$getExtra](e);switch(this.placement){case"left":case"right":case"inline":this.reserve=t;break;case"top":case"bottom":this.reserve=a}}const s=[];"string"==typeof t?s.push({name:"#text",value:t}):s.push(t);const r=(0,i.toStyle)(this,"font","margin","visibility");switch(this.placement){case"left":case"right":this.reserve>0&&(r.width=(0,i.measureToString)(this.reserve));break;case"top":case"bottom":this.reserve>0&&(r.height=(0,i.measureToString)(this.reserve))}(0,i.setPara)(this,null,t);this[n.$popPara]();this.reserve=a;return l.HTMLResult.success({name:"div",attributes:{style:r,class:["xfaCaption"]},children:s})}}class Certificate extends o.StringObject{constructor(e){super(d,"certificate");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Certificates extends o.XFAObject{constructor(e){super(d,"certificates",!0);this.credentialServerPolicy=(0,l.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 CheckButton extends o.XFAObject{constructor(e){super(d,"checkButton",!0);this.id=e.id||"";this.mark=(0,l.getStringOption)(e.mark,["default","check","circle","cross","diamond","square","star"]);this.shape=(0,l.getStringOption)(e.shape,["square","round"]);this.size=(0,l.getMeasurement)(e.size,"10pt");this.use=e.use||"";this.usehref=e.usehref||"";this.border=null;this.extras=null;this.margin=null}[n.$toHTML](e){const t=(0,i.toStyle)(this,"margin"),a=(0,i.measureToString)(this.size);t.width=t.height=a;let s,r,o;const c=this[n.$getParent]()[n.$getParent](),f=c.items.children.length&&c.items.children[0][n.$toHTML]().html||[],h={on:(void 0!==f[0]?f[0]:"on").toString(),off:(void 0!==f[1]?f[1]:"off").toString()},u=(c.value?.[n.$text]()||"off")===h.on||void 0,d=c[n.$getSubformParent](),m=c[n.$uid];let g;if(d instanceof ExclGroup){o=d[n.$uid];s="radio";r="xfaRadio";g=d[n.$data]?.[n.$uid]||d[n.$uid]}else{s="checkbox";r="xfaCheckbox";g=c[n.$data]?.[n.$uid]||c[n.$uid]}const b={name:"input",attributes:{class:[r],style:t,fieldId:m,dataId:g,type:s,checked:u,xfaOn:h.on,xfaOff:h.off,"aria-label":ariaLabel(c),"aria-required":!1}};o&&(b.attributes.name=o);if(isRequired(c)){b.attributes["aria-required"]=!0;b.attributes.required=!0}return l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[b]})}}class ChoiceList extends o.XFAObject{constructor(e){super(d,"choiceList",!0);this.commitOn=(0,l.getStringOption)(e.commitOn,["select","exit"]);this.id=e.id||"";this.open=(0,l.getStringOption)(e.open,["userControl","always","multiSelect","onEntry"]);this.textEntry=(0,l.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}[n.$toHTML](e){const t=(0,i.toStyle)(this,"border","margin"),a=this[n.$getParent]()[n.$getParent](),s={fontSize:`calc(${a.font?.size||10}px * var(--total-scale-factor))`},r=[];if(a.items.children.length>0){const e=a.items;let t=0,i=0;if(2===e.children.length){t=e.children[0].save;i=1-t}const o=e.children[t][n.$toHTML]().html,l=e.children[i][n.$toHTML]().html;let c=!1;const f=a.value?.[n.$text]()||"";for(let e=0,t=o.length;e<t;e++){const t={name:"option",attributes:{value:l[e]||o[e],style:s},value:o[e]};l[e]===f&&(t.attributes.selected=c=!0);r.push(t)}c||r.splice(0,0,{name:"option",attributes:{hidden:!0,selected:!0},value:" "})}const o={class:["xfaSelect"],fieldId:a[n.$uid],dataId:a[n.$data]?.[n.$uid]||a[n.$uid],style:t,"aria-label":ariaLabel(a),"aria-required":!1};if(isRequired(a)){o["aria-required"]=!0;o.required=!0}"multiSelect"===this.open&&(o.multiple=!0);return l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[{name:"select",children:r,attributes:o}]})}}class Color extends o.XFAObject{constructor(e){super(d,"color",!0);this.cSpace=(0,l.getStringOption)(e.cSpace,["SRGB"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.value=e.value?(0,l.getColor)(e.value):"";this.extras=null}[n.$hasSettableValue](){return!1}[n.$toStyle](){return this.value?c.Util.makeHexColor(this.value.r,this.value.g,this.value.b):null}}class Comb extends o.XFAObject{constructor(e){super(d,"comb");this.id=e.id||"";this.numberOfCells=(0,l.getInteger)({data:e.numberOfCells,defaultValue:0,validate:e=>e>=0});this.use=e.use||"";this.usehref=e.usehref||""}}class Connect extends o.XFAObject{constructor(e){super(d,"connect",!0);this.connection=e.connection||"";this.id=e.id||"";this.ref=e.ref||"";this.usage=(0,l.getStringOption)(e.usage,["exportAndImport","exportOnly","importOnly"]);this.use=e.use||"";this.usehref=e.usehref||"";this.picture=null}}class ContentArea extends o.XFAObject{constructor(e){super(d,"contentArea",!0);this.h=(0,l.getMeasurement)(e.h);this.id=e.id||"";this.name=e.name||"";this.relevant=(0,l.getRelevant)(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.w=(0,l.getMeasurement)(e.w);this.x=(0,l.getMeasurement)(e.x,"0pt");this.y=(0,l.getMeasurement)(e.y,"0pt");this.desc=null;this.extras=null}[n.$toHTML](e){const t={left:(0,i.measureToString)(this.x),top:(0,i.measureToString)(this.y),width:(0,i.measureToString)(this.w),height:(0,i.measureToString)(this.h)},a=["xfaContentarea"];(0,i.isPrintOnly)(this)&&a.push("xfaPrintOnly");return l.HTMLResult.success({name:"div",children:[],attributes:{style:t,class:a,id:this[n.$uid]}})}}class Corner extends o.XFAObject{constructor(e){super(d,"corner",!0);this.id=e.id||"";this.inverted=(0,l.getInteger)({data:e.inverted,defaultValue:0,validate:e=>1===e});this.join=(0,l.getStringOption)(e.join,["square","round"]);this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.radius=(0,l.getMeasurement)(e.radius);this.stroke=(0,l.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);this.thickness=(0,l.getMeasurement)(e.thickness,"0.5pt");this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[n.$toStyle](){const e=(0,i.toStyle)(this,"visibility");e.radius=(0,i.measureToString)("square"===this.join?0:this.radius);return e}}class DateElement extends o.ContentObject{constructor(e){super(d,"date");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[n.$finalize](){const e=this[n.$content].trim();this[n.$content]=e?new Date(e):null}[n.$toHTML](e){return valueToHtml(this[n.$content]?this[n.$content].toString():"")}}class DateTime extends o.ContentObject{constructor(e){super(d,"dateTime");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[n.$finalize](){const e=this[n.$content].trim();this[n.$content]=e?new Date(e):null}[n.$toHTML](e){return valueToHtml(this[n.$content]?this[n.$content].toString():"")}}class DateTimeEdit extends o.XFAObject{constructor(e){super(d,"dateTimeEdit",!0);this.hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]);this.id=e.id||"";this.picker=(0,l.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}[n.$toHTML](e){const t=(0,i.toStyle)(this,"border","font","margin"),a=this[n.$getParent]()[n.$getParent](),s={name:"input",attributes:{type:"text",fieldId:a[n.$uid],dataId:a[n.$data]?.[n.$uid]||a[n.$uid],class:["xfaTextfield"],style:t,"aria-label":ariaLabel(a),"aria-required":!1}};if(isRequired(a)){s.attributes["aria-required"]=!0;s.attributes.required=!0}return l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[s]})}}class Decimal extends o.ContentObject{constructor(e){super(d,"decimal");this.fracDigits=(0,l.getInteger)({data:e.fracDigits,defaultValue:2,validate:e=>!0});this.id=e.id||"";this.leadDigits=(0,l.getInteger)({data:e.leadDigits,defaultValue:-1,validate:e=>!0});this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[n.$finalize](){const e=parseFloat(this[n.$content].trim());this[n.$content]=isNaN(e)?null:e}[n.$toHTML](e){return valueToHtml(null!==this[n.$content]?this[n.$content].toString():"")}}class DefaultUi extends o.XFAObject{constructor(e){super(d,"defaultUi",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}}class Desc extends o.XFAObject{constructor(e){super(d,"desc",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.boolean=new o.XFAObjectArray;this.date=new o.XFAObjectArray;this.dateTime=new o.XFAObjectArray;this.decimal=new o.XFAObjectArray;this.exData=new o.XFAObjectArray;this.float=new o.XFAObjectArray;this.image=new o.XFAObjectArray;this.integer=new o.XFAObjectArray;this.text=new o.XFAObjectArray;this.time=new o.XFAObjectArray}}class DigestMethod extends o.OptionObject{constructor(e){super(d,"digestMethod",["","SHA1","SHA256","SHA512","RIPEMD160"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||""}}class DigestMethods extends o.XFAObject{constructor(e){super(d,"digestMethods",!0);this.id=e.id||"";this.type=(0,l.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.digestMethod=new o.XFAObjectArray}}class Draw extends o.XFAObject{constructor(e){super(d,"draw",!0);this.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e});this.h=e.h?(0,l.getMeasurement)(e.h):"";this.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=e.id||"";this.locale=e.locale||"";this.maxH=(0,l.getMeasurement)(e.maxH,"0pt");this.maxW=(0,l.getMeasurement)(e.maxW,"0pt");this.minH=(0,l.getMeasurement)(e.minH,"0pt");this.minW=(0,l.getMeasurement)(e.minW,"0pt");this.name=e.name||"";this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,l.getRelevant)(e.relevant);this.rotate=(0,l.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90==0});this.use=e.use||"";this.usehref=e.usehref||"";this.w=e.w?(0,l.getMeasurement)(e.w):"";this.x=(0,l.getMeasurement)(e.x,"0pt");this.y=(0,l.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 o.XFAObjectArray}[n.$setValue](e){_setValue(this,e)}[n.$toHTML](e){setTabIndex(this);if("hidden"===this.presence||"inactive"===this.presence)return l.HTMLResult.EMPTY;(0,i.fixDimensions)(this);this[n.$pushPara]();const t=this.w,a=this.h,{w:s,h:r,isBroken:o}=(0,i.layoutNode)(this,e);if(s&&""===this.w){if(o&&this[n.$getSubformParent]()[n.$isThereMoreWidth]()){this[n.$popPara]();return l.HTMLResult.FAILURE}this.w=s}r&&""===this.h&&(this.h=r);setFirstUnsplittable(this);if(!checkDimensions(this,e)){this.w=t;this.h=a;this[n.$popPara]();return l.HTMLResult.FAILURE}unsetFirstUnsplittable(this);const c=(0,i.toStyle)(this,"font","hAlign","dimensions","position","presence","rotate","anchorType","border","margin");(0,i.setMinMaxDimensions)(this,c);if(c.margin){c.padding=c.margin;delete c.margin}const f=["xfaDraw"];this.font&&f.push("xfaFont");(0,i.isPrintOnly)(this)&&f.push("xfaPrintOnly");const h={style:c,id:this[n.$uid],class:f};this.name&&(h.xfaName=this.name);const u={name:"div",attributes:h,children:[]};applyAssist(this,h);const d=(0,i.computeBbox)(this,u,e),m=this.value?this.value[n.$toHTML](e).html:null;if(null===m){this.w=t;this.h=a;this[n.$popPara]();return l.HTMLResult.success((0,i.createWrapper)(this,u),d)}u.children.push(m);(0,i.setPara)(this,c,m);this.w=t;this.h=a;this[n.$popPara]();return l.HTMLResult.success((0,i.createWrapper)(this,u),d)}}class Edge extends o.XFAObject{constructor(e){super(d,"edge",!0);this.cap=(0,l.getStringOption)(e.cap,["square","butt","round"]);this.id=e.id||"";this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.stroke=(0,l.getStringOption)(e.stroke,["solid","dashDot","dashDotDot","dashed","dotted","embossed","etched","lowered","raised"]);this.thickness=(0,l.getMeasurement)(e.thickness,"0.5pt");this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[n.$toStyle](){const e=(0,i.toStyle)(this,"visibility");Object.assign(e,{linecap:this.cap,width:(0,i.measureToString)(this.thickness),color:this.color?this.color[n.$toStyle]():"#000000",style:""});if("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 Encoding extends o.OptionObject{constructor(e){super(d,"encoding",["adbe.x509.rsa_sha1","adbe.pkcs7.detached","adbe.pkcs7.sha1"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Encodings extends o.XFAObject{constructor(e){super(d,"encodings",!0);this.id=e.id||"";this.type=(0,l.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.encoding=new o.XFAObjectArray}}class Encrypt extends o.XFAObject{constructor(e){super(d,"encrypt",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.certificate=null}}class EncryptData extends o.XFAObject{constructor(e){super(d,"encryptData",!0);this.id=e.id||"";this.operation=(0,l.getStringOption)(e.operation,["encrypt","decrypt"]);this.target=e.target||"";this.use=e.use||"";this.usehref=e.usehref||"";this.filter=null;this.manifest=null}}class Encryption extends o.XFAObject{constructor(e){super(d,"encryption",!0);this.id=e.id||"";this.type=(0,l.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.certificate=new o.XFAObjectArray}}class EncryptionMethod extends o.OptionObject{constructor(e){super(d,"encryptionMethod",["","AES256-CBC","TRIPLEDES-CBC","AES128-CBC","AES192-CBC"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||""}}class EncryptionMethods extends o.XFAObject{constructor(e){super(d,"encryptionMethods",!0);this.id=e.id||"";this.type=(0,l.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.encryptionMethod=new o.XFAObjectArray}}class Event extends o.XFAObject{constructor(e){super(d,"event",!0);this.activity=(0,l.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,l.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 ExData extends o.ContentObject{constructor(e){super(d,"exData");this.contentType=e.contentType||"";this.href=e.href||"";this.id=e.id||"";this.maxLength=(0,l.getInteger)({data:e.maxLength,defaultValue:-1,validate:e=>e>=-1});this.name=e.name||"";this.rid=e.rid||"";this.transferEncoding=(0,l.getStringOption)(e.transferEncoding,["none","base64","package"]);this.use=e.use||"";this.usehref=e.usehref||""}[n.$isCDATAXml](){return"text/html"===this.contentType}[n.$onChild](e){if("text/html"===this.contentType&&e[n.$namespaceId]===s.NamespaceIds.xhtml.id){this[n.$content]=e;return!0}if("text/xml"===this.contentType){this[n.$content]=e;return!0}return!1}[n.$toHTML](e){return"text/html"===this.contentType&&this[n.$content]?this[n.$content][n.$toHTML](e):l.HTMLResult.EMPTY}}class ExObject extends o.XFAObject{constructor(e){super(d,"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 o.XFAObjectArray;this.date=new o.XFAObjectArray;this.dateTime=new o.XFAObjectArray;this.decimal=new o.XFAObjectArray;this.exData=new o.XFAObjectArray;this.exObject=new o.XFAObjectArray;this.float=new o.XFAObjectArray;this.image=new o.XFAObjectArray;this.integer=new o.XFAObjectArray;this.text=new o.XFAObjectArray;this.time=new o.XFAObjectArray}}class ExclGroup extends o.XFAObject{constructor(e){super(d,"exclGroup",!0);this.access=(0,l.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]);this.accessKey=e.accessKey||"";this.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e});this.h=e.h?(0,l.getMeasurement)(e.h):"";this.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=e.id||"";this.layout=(0,l.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);this.maxH=(0,l.getMeasurement)(e.maxH,"0pt");this.maxW=(0,l.getMeasurement)(e.maxW,"0pt");this.minH=(0,l.getMeasurement)(e.minH,"0pt");this.minW=(0,l.getMeasurement)(e.minW,"0pt");this.name=e.name||"";this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,l.getRelevant)(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.w=e.w?(0,l.getMeasurement)(e.w):"";this.x=(0,l.getMeasurement)(e.x,"0pt");this.y=(0,l.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 o.XFAObjectArray;this.event=new o.XFAObjectArray;this.field=new o.XFAObjectArray;this.setProperty=new o.XFAObjectArray}[n.$isBindable](){return!0}[n.$hasSettableValue](){return!0}[n.$setValue](e){for(const t of this.field.children){if(!t.value){const e=new Value({});t[n.$appendChild](e);t.value=e}t.value[n.$setValue](e)}}[n.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[n.$extra].attempt&&this[n.$extra].numberInLine>0||this[n.$getParent]()[n.$isThereMoreWidth]()}[n.$isSplittable](){const e=this[n.$getSubformParent]();if(!e[n.$isSplittable]())return!1;if(void 0!==this[n.$extra]._isSplittable)return this[n.$extra]._isSplittable;if("position"===this.layout||this.layout.includes("row")){this[n.$extra]._isSplittable=!1;return!1}if(e.layout?.endsWith("-tb")&&0!==e[n.$extra].numberInLine)return!1;this[n.$extra]._isSplittable=!0;return!0}[n.$flushHTML](){return flushHTML(this)}[n.$addHTML](e,t){addHTML(this,e,t)}[n.$getAvailableSpace](){return getAvailableSpace(this)}[n.$toHTML](e){setTabIndex(this);if("hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return l.HTMLResult.EMPTY;(0,i.fixDimensions)(this);const t=[],a={id:this[n.$uid],class:[]};(0,i.setAccess)(this,a.class);this[n.$extra]||=Object.create(null);Object.assign(this[n.$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});const s=this[n.$isSplittable]();s||setFirstUnsplittable(this);if(!checkDimensions(this,e))return l.HTMLResult.FAILURE;const r=new Set(["field"]);if(this.layout.includes("row")){const e=this[n.$getSubformParent]().columnWidths;if(Array.isArray(e)&&e.length>0){this[n.$extra].columnWidths=e;this[n.$extra].currentColumn=0}}const o=(0,i.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),c=["xfaExclgroup"],f=(0,i.layoutClass)(this);f&&c.push(f);(0,i.isPrintOnly)(this)&&c.push("xfaPrintOnly");a.style=o;a.class=c;this.name&&(a.xfaName=this.name);this[n.$pushPara]();const h="lr-tb"===this.layout||"rl-tb"===this.layout,u=h?2:1;for(;this[n.$extra].attempt<u;this[n.$extra].attempt++){h&&1===this[n.$extra].attempt&&(this[n.$extra].numberInLine=0);const e=this[n.$childrenToHTML]({filter:r,include:!0});if(e.success)break;if(e.isBreak()){this[n.$popPara]();return e}if(h&&0===this[n.$extra].attempt&&0===this[n.$extra].numberInLine&&!this[n.$getTemplateRoot]()[n.$extra].noLayoutFailure){this[n.$extra].attempt=u;break}}this[n.$popPara]();s||unsetFirstUnsplittable(this);if(this[n.$extra].attempt===u){s||delete this[n.$extra];return l.HTMLResult.FAILURE}let d=0,m=0;if(this.margin){d=this.margin.leftInset+this.margin.rightInset;m=this.margin.topInset+this.margin.bottomInset}const g=Math.max(this[n.$extra].width+d,this.w||0),b=Math.max(this[n.$extra].height+m,this.h||0),w=[this.x,this.y,g,b];""===this.w&&(o.width=(0,i.measureToString)(g));""===this.h&&(o.height=(0,i.measureToString)(b));const j={name:"div",attributes:a,children:t};applyAssist(this,a);delete this[n.$extra];return l.HTMLResult.success((0,i.createWrapper)(this,j),w)}}class Execute extends o.XFAObject{constructor(e){super(d,"execute");this.connection=e.connection||"";this.executeType=(0,l.getStringOption)(e.executeType,["import","remerge"]);this.id=e.id||"";this.runAt=(0,l.getStringOption)(e.runAt,["client","both","server"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Extras extends o.XFAObject{constructor(e){super(d,"extras",!0);this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||"";this.boolean=new o.XFAObjectArray;this.date=new o.XFAObjectArray;this.dateTime=new o.XFAObjectArray;this.decimal=new o.XFAObjectArray;this.exData=new o.XFAObjectArray;this.extras=new o.XFAObjectArray;this.float=new o.XFAObjectArray;this.image=new o.XFAObjectArray;this.integer=new o.XFAObjectArray;this.text=new o.XFAObjectArray;this.time=new o.XFAObjectArray}}class Field extends o.XFAObject{constructor(e){super(d,"field",!0);this.access=(0,l.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]);this.accessKey=e.accessKey||"";this.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e});this.h=e.h?(0,l.getMeasurement)(e.h):"";this.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=e.id||"";this.locale=e.locale||"";this.maxH=(0,l.getMeasurement)(e.maxH,"0pt");this.maxW=(0,l.getMeasurement)(e.maxW,"0pt");this.minH=(0,l.getMeasurement)(e.minH,"0pt");this.minW=(0,l.getMeasurement)(e.minW,"0pt");this.name=e.name||"";this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,l.getRelevant)(e.relevant);this.rotate=(0,l.getInteger)({data:e.rotate,defaultValue:0,validate:e=>e%90==0});this.use=e.use||"";this.usehref=e.usehref||"";this.w=e.w?(0,l.getMeasurement)(e.w):"";this.x=(0,l.getMeasurement)(e.x,"0pt");this.y=(0,l.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 o.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 o.XFAObjectArray;this.connect=new o.XFAObjectArray;this.event=new o.XFAObjectArray;this.setProperty=new o.XFAObjectArray}[n.$isBindable](){return!0}[n.$setValue](e){_setValue(this,e)}[n.$toHTML](e){setTabIndex(this);if(!this.ui){this.ui=new Ui({});this.ui[n.$globalData]=this[n.$globalData];this[n.$appendChild](this.ui);let e;switch(this.items.children.length){case 0:e=new TextEdit({});this.ui.textEdit=e;break;case 1:e=new CheckButton({});this.ui.checkButton=e;break;case 2:e=new ChoiceList({});this.ui.choiceList=e}this.ui[n.$appendChild](e)}if(!this.ui||"hidden"===this.presence||"inactive"===this.presence||0===this.h||0===this.w)return l.HTMLResult.EMPTY;this.caption&&delete this.caption[n.$extra];this[n.$pushPara]();const t=this.caption?this.caption[n.$toHTML](e).html:null,a=this.w,s=this.h;let r=0,o=0;if(this.margin){r=this.margin.leftInset+this.margin.rightInset;o=this.margin.topInset+this.margin.bottomInset}let c=null;if(""===this.w||""===this.h){let t=null,a=null,s=0,h=0;if(this.ui.checkButton)s=h=this.ui.checkButton.size;else{const{w:t,h:a}=(0,i.layoutNode)(this,e);if(null!==t){s=t;h=a}else h=(0,f.getMetrics)(this.font,!0).lineNoGap}c=getBorderDims(this.ui[n.$getExtra]());s+=c.w;h+=c.h;if(this.caption){const{w:r,h:i,isBroken:o}=this.caption[n.$getExtra](e);if(o&&this[n.$getSubformParent]()[n.$isThereMoreWidth]()){this[n.$popPara]();return l.HTMLResult.FAILURE}t=r;a=i;switch(this.caption.placement){case"left":case"right":case"inline":t+=s;break;case"top":case"bottom":a+=h}}else{t=s;a=h}if(t&&""===this.w){t+=r;this.w=Math.min(this.maxW<=0?1/0:this.maxW,this.minW+1<t?t:this.minW)}if(a&&""===this.h){a+=o;this.h=Math.min(this.maxH<=0?1/0:this.maxH,this.minH+1<a?a:this.minH)}}this[n.$popPara]();(0,i.fixDimensions)(this);setFirstUnsplittable(this);if(!checkDimensions(this,e)){this.w=a;this.h=s;this[n.$popPara]();return l.HTMLResult.FAILURE}unsetFirstUnsplittable(this);const h=(0,i.toStyle)(this,"font","dimensions","position","rotate","anchorType","presence","margin","hAlign");(0,i.setMinMaxDimensions)(this,h);const u=["xfaField"];this.font&&u.push("xfaFont");(0,i.isPrintOnly)(this)&&u.push("xfaPrintOnly");const d={style:h,id:this[n.$uid],class:u};if(h.margin){h.padding=h.margin;delete h.margin}(0,i.setAccess)(this,u);this.name&&(d.xfaName=this.name);const m=[],g={name:"div",attributes:d,children:m};applyAssist(this,d);const b=this.border?this.border[n.$toStyle]():null,w=(0,i.computeBbox)(this,g,e),j=this.ui[n.$toHTML]().html;if(!j){Object.assign(h,b);return l.HTMLResult.success((0,i.createWrapper)(this,g),w)}this[n.$tabIndex]&&(j.children?.[0]?j.children[0].attributes.tabindex=this[n.$tabIndex]:j.attributes.tabindex=this[n.$tabIndex]);j.attributes.style||=Object.create(null);let y=null;if(this.ui.button){1===j.children.length&&([y]=j.children.splice(0,1));Object.assign(j.attributes.style,b)}else Object.assign(h,b);m.push(j);if(this.value)if(this.ui.imageEdit)j.children.push(this.value[n.$toHTML]().html);else if(!this.ui.button){let e="";if(this.value.exData)e=this.value.exData[n.$text]();else if(this.value.text)e=this.value.text[n.$getExtra]();else{const t=this.value[n.$toHTML]().html;null!==t&&(e=t.children[0].value)}this.ui.textEdit&&this.value.text?.maxChars&&(j.children[0].attributes.maxLength=this.value.text.maxChars);if(e){if(this.ui.numericEdit){e=parseFloat(e);e=isNaN(e)?"":e.toString()}"textarea"===j.children[0].name?j.children[0].attributes.textContent=e:j.children[0].attributes.value=e}}if(!this.ui.imageEdit&&j.children?.[0]&&this.h){c||=getBorderDims(this.ui[n.$getExtra]());if(this.caption&&["top","bottom"].includes(this.caption.placement)){let t=this.caption.reserve;t<=0&&(t=this.caption[n.$getExtra](e).h);const a=this.h-t-o-c.h;j.children[0].attributes.style.height=(0,i.measureToString)(a)}else j.children[0].attributes.style.height="100%"}y&&j.children.push(y);if(!t){j.attributes.class&&j.attributes.class.push("xfaLeft");this.w=a;this.h=s;return l.HTMLResult.success((0,i.createWrapper)(this,g),w)}if(this.ui.button){h.padding&&delete h.padding;"div"===t.name&&(t.name="span");j.children.push(t);return l.HTMLResult.success(g,w)}this.ui.checkButton&&(t.attributes.class[0]="xfaCaptionForCheckButton");j.attributes.class||=[];j.children.splice(0,0,t);switch(this.caption.placement){case"left":case"inline":j.attributes.class.push("xfaLeft");break;case"right":j.attributes.class.push("xfaRight");break;case"top":j.attributes.class.push("xfaTop");break;case"bottom":j.attributes.class.push("xfaBottom")}this.w=a;this.h=s;return l.HTMLResult.success((0,i.createWrapper)(this,g),w)}}class Fill extends o.XFAObject{constructor(e){super(d,"fill",!0);this.id=e.id||"";this.presence=(0,l.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}[n.$toStyle](){const e=this[n.$getParent](),t=e[n.$getParent]()[n.$getParent](),a=Object.create(null);let s="color",r=s;if(e instanceof Border){s="background-color";r="background";t instanceof Ui&&(a.backgroundColor="white")}if(e instanceof Rectangle||e instanceof Arc){s=r="fill";a.fill="white"}for(const e of Object.getOwnPropertyNames(this)){if("extras"===e||"color"===e)continue;const t=this[e];if(!(t instanceof o.XFAObject))continue;const i=t[n.$toStyle](this.color);i&&(a[i.startsWith("#")?s:r]=i);return a}if(this.color?.value){const e=this.color[n.$toStyle]();a[e.startsWith("#")?s:r]=e}return a}}class Filter extends o.XFAObject{constructor(e){super(d,"filter",!0);this.addRevocationInfo=(0,l.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,l.getInteger)({data:this.version,defaultValue:5,validate:e=>e>=1&&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 Float extends o.ContentObject{constructor(e){super(d,"float");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[n.$finalize](){const e=parseFloat(this[n.$content].trim());this[n.$content]=isNaN(e)?null:e}[n.$toHTML](e){return valueToHtml(null!==this[n.$content]?this[n.$content].toString():"")}}class Font extends o.XFAObject{constructor(e){super(d,"font",!0);this.baselineShift=(0,l.getMeasurement)(e.baselineShift);this.fontHorizontalScale=(0,l.getFloat)({data:e.fontHorizontalScale,defaultValue:100,validate:e=>e>=0});this.fontVerticalScale=(0,l.getFloat)({data:e.fontVerticalScale,defaultValue:100,validate:e=>e>=0});this.id=e.id||"";this.kerningMode=(0,l.getStringOption)(e.kerningMode,["none","pair"]);this.letterSpacing=(0,l.getMeasurement)(e.letterSpacing,"0");this.lineThrough=(0,l.getInteger)({data:e.lineThrough,defaultValue:0,validate:e=>1===e||2===e});this.lineThroughPeriod=(0,l.getStringOption)(e.lineThroughPeriod,["all","word"]);this.overline=(0,l.getInteger)({data:e.overline,defaultValue:0,validate:e=>1===e||2===e});this.overlinePeriod=(0,l.getStringOption)(e.overlinePeriod,["all","word"]);this.posture=(0,l.getStringOption)(e.posture,["normal","italic"]);this.size=(0,l.getMeasurement)(e.size,"10pt");this.typeface=e.typeface||"Courier";this.underline=(0,l.getInteger)({data:e.underline,defaultValue:0,validate:e=>1===e||2===e});this.underlinePeriod=(0,l.getStringOption)(e.underlinePeriod,["all","word"]);this.use=e.use||"";this.usehref=e.usehref||"";this.weight=(0,l.getStringOption)(e.weight,["normal","bold"]);this.extras=null;this.fill=null}[n.$clean](e){super[n.$clean](e);this[n.$globalData].usedTypefaces.add(this.typeface)}[n.$toStyle](){const e=(0,i.toStyle)(this,"fill"),t=e.color;if(t)if("#000000"===t)delete e.color;else if(!t.startsWith("#")){e.background=t;e.backgroundClip="text";e.color="transparent"}this.baselineShift&&(e.verticalAlign=(0,i.measureToString)(this.baselineShift));e.fontKerning="none"===this.kerningMode?"none":"normal";e.letterSpacing=(0,i.measureToString)(this.letterSpacing);if(0!==this.lineThrough){e.textDecoration="line-through";2===this.lineThrough&&(e.textDecorationStyle="double")}if(0!==this.overline){e.textDecoration="overline";2===this.overline&&(e.textDecorationStyle="double")}e.fontStyle=this.posture;e.fontSize=(0,i.measureToString)(.99*this.size);(0,i.setFontFamily)(this,this,this[n.$globalData].fontFinder,e);if(0!==this.underline){e.textDecoration="underline";2===this.underline&&(e.textDecorationStyle="double")}e.fontWeight=this.weight;return e}}class Format extends o.XFAObject{constructor(e){super(d,"format",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.picture=null}}class Handler extends o.StringObject{constructor(e){super(d,"handler");this.id=e.id||"";this.type=(0,l.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Hyphenation extends o.XFAObject{constructor(e){super(d,"hyphenation");this.excludeAllCaps=(0,l.getInteger)({data:e.excludeAllCaps,defaultValue:0,validate:e=>1===e});this.excludeInitialCap=(0,l.getInteger)({data:e.excludeInitialCap,defaultValue:0,validate:e=>1===e});this.hyphenate=(0,l.getInteger)({data:e.hyphenate,defaultValue:0,validate:e=>1===e});this.id=e.id||"";this.pushCharacterCount=(0,l.getInteger)({data:e.pushCharacterCount,defaultValue:3,validate:e=>e>=0});this.remainCharacterCount=(0,l.getInteger)({data:e.remainCharacterCount,defaultValue:3,validate:e=>e>=0});this.use=e.use||"";this.usehref=e.usehref||"";this.wordCharacterCount=(0,l.getInteger)({data:e.wordCharacterCount,defaultValue:7,validate:e=>e>=0})}}class Image extends o.StringObject{constructor(e){super(d,"image");this.aspect=(0,l.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,l.getStringOption)(e.transferEncoding,["base64","none","package"]);this.use=e.use||"";this.usehref=e.usehref||""}[n.$toHTML](){if(this.contentType&&!g.has(this.contentType.toLowerCase()))return l.HTMLResult.EMPTY;let e=this[n.$globalData].images?.get(this.href);if(!e&&(this.href||!this[n.$content]))return l.HTMLResult.EMPTY;e||"base64"!==this.transferEncoding||(e=Uint8Array.fromBase64(this[n.$content]));if(!e)return l.HTMLResult.EMPTY;if(!this.contentType){for(const[t,a]of b)if(e.length>t.length&&t.every((t,a)=>t===e[a])){this.contentType=a;break}if(!this.contentType)return l.HTMLResult.EMPTY}const t=new Blob([e],{type:this.contentType});let a;switch(this.aspect){case"fit":case"actual":break;case"height":a={height:"100%",objectFit:"fill"};break;case"none":a={width:"100%",height:"100%",objectFit:"fill"};break;case"width":a={width:"100%",objectFit:"fill"}}const s=this[n.$getParent]();return l.HTMLResult.success({name:"img",attributes:{class:["xfaImage"],style:a,src:URL.createObjectURL(t),alt:s?ariaLabel(s[n.$getParent]()):null}})}}class ImageEdit extends o.XFAObject{constructor(e){super(d,"imageEdit",!0);this.data=(0,l.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}[n.$toHTML](e){return"embed"===this.data?l.HTMLResult.success({name:"div",children:[],attributes:{}}):l.HTMLResult.EMPTY}}class Integer extends o.ContentObject{constructor(e){super(d,"integer");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[n.$finalize](){const e=parseInt(this[n.$content].trim(),10);this[n.$content]=isNaN(e)?null:e}[n.$toHTML](e){return valueToHtml(null!==this[n.$content]?this[n.$content].toString():"")}}class Issuers extends o.XFAObject{constructor(e){super(d,"issuers",!0);this.id=e.id||"";this.type=(0,l.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.certificate=new o.XFAObjectArray}}class Items extends o.XFAObject{constructor(e){super(d,"items",!0);this.id=e.id||"";this.name=e.name||"";this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.ref=e.ref||"";this.save=(0,l.getInteger)({data:e.save,defaultValue:0,validate:e=>1===e});this.use=e.use||"";this.usehref=e.usehref||"";this.boolean=new o.XFAObjectArray;this.date=new o.XFAObjectArray;this.dateTime=new o.XFAObjectArray;this.decimal=new o.XFAObjectArray;this.exData=new o.XFAObjectArray;this.float=new o.XFAObjectArray;this.image=new o.XFAObjectArray;this.integer=new o.XFAObjectArray;this.text=new o.XFAObjectArray;this.time=new o.XFAObjectArray}[n.$toHTML](){const e=[];for(const t of this[n.$getChildren]())e.push(t[n.$text]());return l.HTMLResult.success(e)}}class Keep extends o.XFAObject{constructor(e){super(d,"keep",!0);this.id=e.id||"";const t=["none","contentArea","pageArea"];this.intact=(0,l.getStringOption)(e.intact,t);this.next=(0,l.getStringOption)(e.next,t);this.previous=(0,l.getStringOption)(e.previous,t);this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}}class KeyUsage extends o.XFAObject{constructor(e){super(d,"keyUsage");const t=["","yes","no"];this.crlSign=(0,l.getStringOption)(e.crlSign,t);this.dataEncipherment=(0,l.getStringOption)(e.dataEncipherment,t);this.decipherOnly=(0,l.getStringOption)(e.decipherOnly,t);this.digitalSignature=(0,l.getStringOption)(e.digitalSignature,t);this.encipherOnly=(0,l.getStringOption)(e.encipherOnly,t);this.id=e.id||"";this.keyAgreement=(0,l.getStringOption)(e.keyAgreement,t);this.keyCertSign=(0,l.getStringOption)(e.keyCertSign,t);this.keyEncipherment=(0,l.getStringOption)(e.keyEncipherment,t);this.nonRepudiation=(0,l.getStringOption)(e.nonRepudiation,t);this.type=(0,l.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Line extends o.XFAObject{constructor(e){super(d,"line",!0);this.hand=(0,l.getStringOption)(e.hand,["even","left","right"]);this.id=e.id||"";this.slope=(0,l.getStringOption)(e.slope,["\\","/"]);this.use=e.use||"";this.usehref=e.usehref||"";this.edge=null}[n.$toHTML](){const e=this[n.$getParent]()[n.$getParent](),t=this.edge||new Edge({}),a=t[n.$toStyle](),s=Object.create(null),r="visible"===t.presence?t.thickness:0;s.strokeWidth=(0,i.measureToString)(r);s.stroke=a.color;let o,f,h,u,d="100%",m="100%";if(e.w<=r){[o,f,h,u]=["50%",0,"50%","100%"];d=s.strokeWidth}else if(e.h<=r){[o,f,h,u]=[0,"50%","100%","50%"];m=s.strokeWidth}else"\\"===this.slope?[o,f,h,u]=[0,0,"100%","100%"]:[o,f,h,u]=[0,"100%","100%",0];const g={name:"svg",children:[{name:"line",attributes:{xmlns:c.SVG_NS,x1:o,y1:f,x2:h,y2:u,style:s}}],attributes:{xmlns:c.SVG_NS,width:d,height:m,style:{overflow:"visible"}}};if(hasMargin(e))return l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[g]});g.attributes.style.position="absolute";return l.HTMLResult.success(g)}}class Linear extends o.XFAObject{constructor(e){super(d,"linear",!0);this.id=e.id||"";this.type=(0,l.getStringOption)(e.type,["toRight","toBottom","toLeft","toTop"]);this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[n.$toStyle](e){e=e?e[n.$toStyle]():"#FFFFFF";return`linear-gradient(${this.type.replace(/([RBLT])/," $1").toLowerCase()}, ${e}, ${this.color?this.color[n.$toStyle]():"#000000"})`}}class LockDocument extends o.ContentObject{constructor(e){super(d,"lockDocument");this.id=e.id||"";this.type=(0,l.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||""}[n.$finalize](){this[n.$content]=(0,l.getStringOption)(this[n.$content],["auto","0","1"])}}class Manifest extends o.XFAObject{constructor(e){super(d,"manifest",!0);this.action=(0,l.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 o.XFAObjectArray}}class Margin extends o.XFAObject{constructor(e){super(d,"margin",!0);this.bottomInset=(0,l.getMeasurement)(e.bottomInset,"0");this.id=e.id||"";this.leftInset=(0,l.getMeasurement)(e.leftInset,"0");this.rightInset=(0,l.getMeasurement)(e.rightInset,"0");this.topInset=(0,l.getMeasurement)(e.topInset,"0");this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}[n.$toStyle](){return{margin:(0,i.measureToString)(this.topInset)+" "+(0,i.measureToString)(this.rightInset)+" "+(0,i.measureToString)(this.bottomInset)+" "+(0,i.measureToString)(this.leftInset)}}}class Mdp extends o.XFAObject{constructor(e){super(d,"mdp");this.id=e.id||"";this.permissions=(0,l.getInteger)({data:e.permissions,defaultValue:2,validate:e=>1===e||3===e});this.signatureType=(0,l.getStringOption)(e.signatureType,["filler","author"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Medium extends o.XFAObject{constructor(e){super(d,"medium");this.id=e.id||"";this.imagingBBox=(0,l.getBBox)(e.imagingBBox);this.long=(0,l.getMeasurement)(e.long);this.orientation=(0,l.getStringOption)(e.orientation,["portrait","landscape"]);this.short=(0,l.getMeasurement)(e.short);this.stock=e.stock||"";this.trayIn=(0,l.getStringOption)(e.trayIn,["auto","delegate","pageFront"]);this.trayOut=(0,l.getStringOption)(e.trayOut,["auto","delegate"]);this.use=e.use||"";this.usehref=e.usehref||""}}class Message extends o.XFAObject{constructor(e){super(d,"message",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.text=new o.XFAObjectArray}}class NumericEdit extends o.XFAObject{constructor(e){super(d,"numericEdit",!0);this.hScrollPolicy=(0,l.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}[n.$toHTML](e){const t=(0,i.toStyle)(this,"border","font","margin"),a=this[n.$getParent]()[n.$getParent](),s={name:"input",attributes:{type:"text",fieldId:a[n.$uid],dataId:a[n.$data]?.[n.$uid]||a[n.$uid],class:["xfaTextfield"],style:t,"aria-label":ariaLabel(a),"aria-required":!1}};if(isRequired(a)){s.attributes["aria-required"]=!0;s.attributes.required=!0}return l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[s]})}}class Occur extends o.XFAObject{constructor(e){super(d,"occur",!0);this.id=e.id||"";this.initial=""!==e.initial?(0,l.getInteger)({data:e.initial,defaultValue:"",validate:e=>!0}):"";this.max=""!==e.max?(0,l.getInteger)({data:e.max,defaultValue:-1,validate:e=>!0}):"";this.min=""!==e.min?(0,l.getInteger)({data:e.min,defaultValue:1,validate:e=>!0}):"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}[n.$clean](){const e=this[n.$getParent](),t=this.min;""===this.min&&(this.min=e instanceof PageArea||e instanceof PageSet?0:1);""===this.max&&(this.max=""===t?e instanceof PageArea||e instanceof PageSet?-1:1:this.min);-1!==this.max&&this.max<this.min&&(this.max=this.min);""===this.initial&&(this.initial=e instanceof Template?1:this.min)}}class Oid extends o.StringObject{constructor(e){super(d,"oid");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Oids extends o.XFAObject{constructor(e){super(d,"oids",!0);this.id=e.id||"";this.type=(0,l.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.oid=new o.XFAObjectArray}}class Overflow extends o.XFAObject{constructor(e){super(d,"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||""}[n.$getExtra](){if(!this[n.$extra]){const e=this[n.$getParent](),t=this[n.$getTemplateRoot](),a=t[n.$searchNode](this.target,e),s=t[n.$searchNode](this.leader,e),r=t[n.$searchNode](this.trailer,e);this[n.$extra]={target:a?.[0]||null,leader:s?.[0]||null,trailer:r?.[0]||null,addLeader:!1,addTrailer:!1}}return this[n.$extra]}}class PageArea extends o.XFAObject{constructor(e){super(d,"pageArea",!0);this.blankOrNotBlank=(0,l.getStringOption)(e.blankOrNotBlank,["any","blank","notBlank"]);this.id=e.id||"";this.initialNumber=(0,l.getInteger)({data:e.initialNumber,defaultValue:1,validate:e=>!0});this.name=e.name||"";this.numbered=(0,l.getInteger)({data:e.numbered,defaultValue:1,validate:e=>!0});this.oddOrEven=(0,l.getStringOption)(e.oddOrEven,["any","even","odd"]);this.pagePosition=(0,l.getStringOption)(e.pagePosition,["any","first","last","only","rest"]);this.relevant=(0,l.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 o.XFAObjectArray;this.contentArea=new o.XFAObjectArray;this.draw=new o.XFAObjectArray;this.exclGroup=new o.XFAObjectArray;this.field=new o.XFAObjectArray;this.subform=new o.XFAObjectArray}[n.$isUsable](){if(!this[n.$extra]){this[n.$extra]={numberOfUse:0};return!0}return!this.occur||-1===this.occur.max||this[n.$extra].numberOfUse<this.occur.max}[n.$cleanPage](){delete this[n.$extra]}[n.$getNextPage](){this[n.$extra]||={numberOfUse:0};const e=this[n.$getParent]();if("orderedOccurrence"===e.relation&&this[n.$isUsable]()){this[n.$extra].numberOfUse+=1;return this}return e[n.$getNextPage]()}[n.$getAvailableSpace](){return this[n.$extra].space||{width:0,height:0}}[n.$toHTML](){this[n.$extra]||={numberOfUse:1};const e=[];this[n.$extra].children=e;const t=Object.create(null);if(this.medium&&this.medium.short&&this.medium.long){t.width=(0,i.measureToString)(this.medium.short);t.height=(0,i.measureToString)(this.medium.long);this[n.$extra].space={width:this.medium.short,height:this.medium.long};if("landscape"===this.medium.orientation){const e=t.width;t.width=t.height;t.height=e;this[n.$extra].space={width:this.medium.long,height:this.medium.short}}}else(0,c.warn)("XFA - No medium specified in pageArea: please file a bug.");this[n.$childrenToHTML]({filter:new Set(["area","draw","field","subform"]),include:!0});this[n.$childrenToHTML]({filter:new Set(["contentArea"]),include:!0});return l.HTMLResult.success({name:"div",children:e,attributes:{class:["xfaPage"],id:this[n.$uid],style:t,xfaName:this.name}})}}class PageSet extends o.XFAObject{constructor(e){super(d,"pageSet",!0);this.duplexImposition=(0,l.getStringOption)(e.duplexImposition,["longEdge","shortEdge"]);this.id=e.id||"";this.name=e.name||"";this.relation=(0,l.getStringOption)(e.relation,["orderedOccurrence","duplexPaginated","simplexPaginated"]);this.relevant=(0,l.getRelevant)(e.relevant);this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.occur=null;this.pageArea=new o.XFAObjectArray;this.pageSet=new o.XFAObjectArray}[n.$cleanPage](){for(const e of this.pageArea.children)e[n.$cleanPage]();for(const e of this.pageSet.children)e[n.$cleanPage]()}[n.$isUsable](){return!this.occur||-1===this.occur.max||this[n.$extra].numberOfUse<this.occur.max}[n.$getNextPage](){this[n.$extra]||={numberOfUse:1,pageIndex:-1,pageSetIndex:-1};if("orderedOccurrence"===this.relation){if(this[n.$extra].pageIndex+1<this.pageArea.children.length){this[n.$extra].pageIndex+=1;return this.pageArea.children[this[n.$extra].pageIndex][n.$getNextPage]()}if(this[n.$extra].pageSetIndex+1<this.pageSet.children.length){this[n.$extra].pageSetIndex+=1;return this.pageSet.children[this[n.$extra].pageSetIndex][n.$getNextPage]()}if(this[n.$isUsable]()){this[n.$extra].numberOfUse+=1;this[n.$extra].pageIndex=-1;this[n.$extra].pageSetIndex=-1;return this[n.$getNextPage]()}const e=this[n.$getParent]();if(e instanceof PageSet)return e[n.$getNextPage]();this[n.$cleanPage]();return this[n.$getNextPage]()}const e=this[n.$getTemplateRoot]()[n.$extra].pageNumber,t=e%2==0?"even":"odd",a=0===e?"first":"rest";let s=this.pageArea.children.find(e=>e.oddOrEven===t&&e.pagePosition===a);if(s)return s;s=this.pageArea.children.find(e=>"any"===e.oddOrEven&&e.pagePosition===a);if(s)return s;s=this.pageArea.children.find(e=>"any"===e.oddOrEven&&"any"===e.pagePosition);return s??this.pageArea.children[0]}}class Para extends o.XFAObject{constructor(e){super(d,"para",!0);this.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=e.id||"";this.lineHeight=e.lineHeight?(0,l.getMeasurement)(e.lineHeight,"0pt"):"";this.marginLeft=e.marginLeft?(0,l.getMeasurement)(e.marginLeft,"0pt"):"";this.marginRight=e.marginRight?(0,l.getMeasurement)(e.marginRight,"0pt"):"";this.orphans=(0,l.getInteger)({data:e.orphans,defaultValue:0,validate:e=>e>=0});this.preserve=e.preserve||"";this.radixOffset=e.radixOffset?(0,l.getMeasurement)(e.radixOffset,"0pt"):"";this.spaceAbove=e.spaceAbove?(0,l.getMeasurement)(e.spaceAbove,"0pt"):"";this.spaceBelow=e.spaceBelow?(0,l.getMeasurement)(e.spaceBelow,"0pt"):"";this.tabDefault=e.tabDefault?(0,l.getMeasurement)(this.tabDefault):"";this.tabStops=(e.tabStops||"").trim().split(/\s+/).map((e,t)=>t%2==1?(0,l.getMeasurement)(e):e);this.textIndent=e.textIndent?(0,l.getMeasurement)(e.textIndent,"0pt"):"";this.use=e.use||"";this.usehref=e.usehref||"";this.vAlign=(0,l.getStringOption)(e.vAlign,["top","bottom","middle"]);this.widows=(0,l.getInteger)({data:e.widows,defaultValue:0,validate:e=>e>=0});this.hyphenation=null}[n.$toStyle](){const e=(0,i.toStyle)(this,"hAlign");""!==this.marginLeft&&(e.paddingLeft=(0,i.measureToString)(this.marginLeft));""!==this.marginRight&&(e.paddingRight=(0,i.measureToString)(this.marginRight));""!==this.spaceAbove&&(e.paddingTop=(0,i.measureToString)(this.spaceAbove));""!==this.spaceBelow&&(e.paddingBottom=(0,i.measureToString)(this.spaceBelow));if(""!==this.textIndent){e.textIndent=(0,i.measureToString)(this.textIndent);(0,i.fixTextIndent)(e)}this.lineHeight>0&&(e.lineHeight=(0,i.measureToString)(this.lineHeight));""!==this.tabDefault&&(e.tabSize=(0,i.measureToString)(this.tabDefault));this.tabStops.length;this.hyphenatation&&Object.assign(e,this.hyphenatation[n.$toStyle]());return e}}class PasswordEdit extends o.XFAObject{constructor(e){super(d,"passwordEdit",!0);this.hScrollPolicy=(0,l.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 Pattern extends o.XFAObject{constructor(e){super(d,"pattern",!0);this.id=e.id||"";this.type=(0,l.getStringOption)(e.type,["crossHatch","crossDiagonal","diagonalLeft","diagonalRight","horizontal","vertical"]);this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[n.$toStyle](e){e=e?e[n.$toStyle]():"#FFFFFF";const t=this.color?this.color[n.$toStyle]():"#000000",a="repeating-linear-gradient",s=`${e},${e} 5px,${t} 5px,${t} 10px`;switch(this.type){case"crossHatch":return`${a}(to top,${s}) ${a}(to right,${s})`;case"crossDiagonal":return`${a}(45deg,${s}) ${a}(-45deg,${s})`;case"diagonalLeft":return`${a}(45deg,${s})`;case"diagonalRight":return`${a}(-45deg,${s})`;case"horizontal":return`${a}(to top,${s})`;case"vertical":return`${a}(to right,${s})`}return""}}class Picture extends o.StringObject{constructor(e){super(d,"picture");this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Proto extends o.XFAObject{constructor(e){super(d,"proto",!0);this.appearanceFilter=new o.XFAObjectArray;this.arc=new o.XFAObjectArray;this.area=new o.XFAObjectArray;this.assist=new o.XFAObjectArray;this.barcode=new o.XFAObjectArray;this.bindItems=new o.XFAObjectArray;this.bookend=new o.XFAObjectArray;this.boolean=new o.XFAObjectArray;this.border=new o.XFAObjectArray;this.break=new o.XFAObjectArray;this.breakAfter=new o.XFAObjectArray;this.breakBefore=new o.XFAObjectArray;this.button=new o.XFAObjectArray;this.calculate=new o.XFAObjectArray;this.caption=new o.XFAObjectArray;this.certificate=new o.XFAObjectArray;this.certificates=new o.XFAObjectArray;this.checkButton=new o.XFAObjectArray;this.choiceList=new o.XFAObjectArray;this.color=new o.XFAObjectArray;this.comb=new o.XFAObjectArray;this.connect=new o.XFAObjectArray;this.contentArea=new o.XFAObjectArray;this.corner=new o.XFAObjectArray;this.date=new o.XFAObjectArray;this.dateTime=new o.XFAObjectArray;this.dateTimeEdit=new o.XFAObjectArray;this.decimal=new o.XFAObjectArray;this.defaultUi=new o.XFAObjectArray;this.desc=new o.XFAObjectArray;this.digestMethod=new o.XFAObjectArray;this.digestMethods=new o.XFAObjectArray;this.draw=new o.XFAObjectArray;this.edge=new o.XFAObjectArray;this.encoding=new o.XFAObjectArray;this.encodings=new o.XFAObjectArray;this.encrypt=new o.XFAObjectArray;this.encryptData=new o.XFAObjectArray;this.encryption=new o.XFAObjectArray;this.encryptionMethod=new o.XFAObjectArray;this.encryptionMethods=new o.XFAObjectArray;this.event=new o.XFAObjectArray;this.exData=new o.XFAObjectArray;this.exObject=new o.XFAObjectArray;this.exclGroup=new o.XFAObjectArray;this.execute=new o.XFAObjectArray;this.extras=new o.XFAObjectArray;this.field=new o.XFAObjectArray;this.fill=new o.XFAObjectArray;this.filter=new o.XFAObjectArray;this.float=new o.XFAObjectArray;this.font=new o.XFAObjectArray;this.format=new o.XFAObjectArray;this.handler=new o.XFAObjectArray;this.hyphenation=new o.XFAObjectArray;this.image=new o.XFAObjectArray;this.imageEdit=new o.XFAObjectArray;this.integer=new o.XFAObjectArray;this.issuers=new o.XFAObjectArray;this.items=new o.XFAObjectArray;this.keep=new o.XFAObjectArray;this.keyUsage=new o.XFAObjectArray;this.line=new o.XFAObjectArray;this.linear=new o.XFAObjectArray;this.lockDocument=new o.XFAObjectArray;this.manifest=new o.XFAObjectArray;this.margin=new o.XFAObjectArray;this.mdp=new o.XFAObjectArray;this.medium=new o.XFAObjectArray;this.message=new o.XFAObjectArray;this.numericEdit=new o.XFAObjectArray;this.occur=new o.XFAObjectArray;this.oid=new o.XFAObjectArray;this.oids=new o.XFAObjectArray;this.overflow=new o.XFAObjectArray;this.pageArea=new o.XFAObjectArray;this.pageSet=new o.XFAObjectArray;this.para=new o.XFAObjectArray;this.passwordEdit=new o.XFAObjectArray;this.pattern=new o.XFAObjectArray;this.picture=new o.XFAObjectArray;this.radial=new o.XFAObjectArray;this.reason=new o.XFAObjectArray;this.reasons=new o.XFAObjectArray;this.rectangle=new o.XFAObjectArray;this.ref=new o.XFAObjectArray;this.script=new o.XFAObjectArray;this.setProperty=new o.XFAObjectArray;this.signData=new o.XFAObjectArray;this.signature=new o.XFAObjectArray;this.signing=new o.XFAObjectArray;this.solid=new o.XFAObjectArray;this.speak=new o.XFAObjectArray;this.stipple=new o.XFAObjectArray;this.subform=new o.XFAObjectArray;this.subformSet=new o.XFAObjectArray;this.subjectDN=new o.XFAObjectArray;this.subjectDNs=new o.XFAObjectArray;this.submit=new o.XFAObjectArray;this.text=new o.XFAObjectArray;this.textEdit=new o.XFAObjectArray;this.time=new o.XFAObjectArray;this.timeStamp=new o.XFAObjectArray;this.toolTip=new o.XFAObjectArray;this.traversal=new o.XFAObjectArray;this.traverse=new o.XFAObjectArray;this.ui=new o.XFAObjectArray;this.validate=new o.XFAObjectArray;this.value=new o.XFAObjectArray;this.variables=new o.XFAObjectArray}}class Radial extends o.XFAObject{constructor(e){super(d,"radial",!0);this.id=e.id||"";this.type=(0,l.getStringOption)(e.type,["toEdge","toCenter"]);this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[n.$toStyle](e){e=e?e[n.$toStyle]():"#FFFFFF";const t=this.color?this.color[n.$toStyle]():"#000000";return`radial-gradient(circle at center, ${"toEdge"===this.type?`${e},${t}`:`${t},${e}`})`}}class Reason extends o.StringObject{constructor(e){super(d,"reason");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Reasons extends o.XFAObject{constructor(e){super(d,"reasons",!0);this.id=e.id||"";this.type=(0,l.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.reason=new o.XFAObjectArray}}class Rectangle extends o.XFAObject{constructor(e){super(d,"rectangle",!0);this.hand=(0,l.getStringOption)(e.hand,["even","left","right"]);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.corner=new o.XFAObjectArray(4);this.edge=new o.XFAObjectArray(4);this.fill=null}[n.$toHTML](){const e=this.edge.children.length?this.edge.children[0]:new Edge({}),t=e[n.$toStyle](),a=Object.create(null);"visible"===this.fill?.presence?Object.assign(a,this.fill[n.$toStyle]()):a.fill="transparent";a.strokeWidth=(0,i.measureToString)("visible"===e.presence?e.thickness:0);a.stroke=t.color;const s=(this.corner.children.length?this.corner.children[0]:new Corner({}))[n.$toStyle](),r={name:"svg",children:[{name:"rect",attributes:{xmlns:c.SVG_NS,width:"100%",height:"100%",x:0,y:0,rx:s.radius,ry:s.radius,style:a}}],attributes:{xmlns:c.SVG_NS,style:{overflow:"visible"},width:"100%",height:"100%"}};if(hasMargin(this[n.$getParent]()[n.$getParent]()))return l.HTMLResult.success({name:"div",attributes:{style:{display:"inline",width:"100%",height:"100%"}},children:[r]});r.attributes.style.position="absolute";return l.HTMLResult.success(r)}}class RefElement extends o.StringObject{constructor(e){super(d,"ref");this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Script extends o.StringObject{constructor(e){super(d,"script");this.binding=e.binding||"";this.contentType=e.contentType||"";this.id=e.id||"";this.name=e.name||"";this.runAt=(0,l.getStringOption)(e.runAt,["client","both","server"]);this.use=e.use||"";this.usehref=e.usehref||""}}class SetProperty extends o.XFAObject{constructor(e){super(d,"setProperty");this.connection=e.connection||"";this.ref=e.ref||"";this.target=e.target||""}}class SignData extends o.XFAObject{constructor(e){super(d,"signData",!0);this.id=e.id||"";this.operation=(0,l.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 Signature extends o.XFAObject{constructor(e){super(d,"signature",!0);this.id=e.id||"";this.type=(0,l.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 Signing extends o.XFAObject{constructor(e){super(d,"signing",!0);this.id=e.id||"";this.type=(0,l.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.certificate=new o.XFAObjectArray}}class Solid extends o.XFAObject{constructor(e){super(d,"solid",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null}[n.$toStyle](e){return e?e[n.$toStyle]():"#FFFFFF"}}class Speak extends o.StringObject{constructor(e){super(d,"speak");this.disable=(0,l.getInteger)({data:e.disable,defaultValue:0,validate:e=>1===e});this.id=e.id||"";this.priority=(0,l.getStringOption)(e.priority,["custom","caption","name","toolTip"]);this.rid=e.rid||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Stipple extends o.XFAObject{constructor(e){super(d,"stipple",!0);this.id=e.id||"";this.rate=(0,l.getInteger)({data:e.rate,defaultValue:50,validate:e=>e>=0&&e<=100});this.use=e.use||"";this.usehref=e.usehref||"";this.color=null;this.extras=null}[n.$toStyle](e){const t=this.rate/100;return c.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 Subform extends o.XFAObject{constructor(e){super(d,"subform",!0);this.access=(0,l.getStringOption)(e.access,["open","nonInteractive","protected","readOnly"]);this.allowMacro=(0,l.getInteger)({data:e.allowMacro,defaultValue:0,validate:e=>1===e});this.anchorType=(0,l.getStringOption)(e.anchorType,["topLeft","bottomCenter","bottomLeft","bottomRight","middleCenter","middleLeft","middleRight","topCenter","topRight"]);this.colSpan=(0,l.getInteger)({data:e.colSpan,defaultValue:1,validate:e=>e>=1||-1===e});this.columnWidths=(e.columnWidths||"").trim().split(/\s+/).map(e=>"-1"===e?-1:(0,l.getMeasurement)(e));this.h=e.h?(0,l.getMeasurement)(e.h):"";this.hAlign=(0,l.getStringOption)(e.hAlign,["left","center","justify","justifyAll","radix","right"]);this.id=e.id||"";this.layout=(0,l.getStringOption)(e.layout,["position","lr-tb","rl-row","rl-tb","row","table","tb"]);this.locale=e.locale||"";this.maxH=(0,l.getMeasurement)(e.maxH,"0pt");this.maxW=(0,l.getMeasurement)(e.maxW,"0pt");this.mergeMode=(0,l.getStringOption)(e.mergeMode,["consumeData","matchTemplate"]);this.minH=(0,l.getMeasurement)(e.minH,"0pt");this.minW=(0,l.getMeasurement)(e.minW,"0pt");this.name=e.name||"";this.presence=(0,l.getStringOption)(e.presence,["visible","hidden","inactive","invisible"]);this.relevant=(0,l.getRelevant)(e.relevant);this.restoreState=(0,l.getStringOption)(e.restoreState,["manual","auto"]);this.scope=(0,l.getStringOption)(e.scope,["name","none"]);this.use=e.use||"";this.usehref=e.usehref||"";this.w=e.w?(0,l.getMeasurement)(e.w):"";this.x=(0,l.getMeasurement)(e.x,"0pt");this.y=(0,l.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 o.XFAObjectArray;this.breakAfter=new o.XFAObjectArray;this.breakBefore=new o.XFAObjectArray;this.connect=new o.XFAObjectArray;this.draw=new o.XFAObjectArray;this.event=new o.XFAObjectArray;this.exObject=new o.XFAObjectArray;this.exclGroup=new o.XFAObjectArray;this.field=new o.XFAObjectArray;this.proto=new o.XFAObjectArray;this.setProperty=new o.XFAObjectArray;this.subform=new o.XFAObjectArray;this.subformSet=new o.XFAObjectArray}[n.$getSubformParent](){const e=this[n.$getParent]();return e instanceof SubformSet?e[n.$getSubformParent]():e}[n.$isBindable](){return!0}[n.$isThereMoreWidth](){return this.layout.endsWith("-tb")&&0===this[n.$extra].attempt&&this[n.$extra].numberInLine>0||this[n.$getParent]()[n.$isThereMoreWidth]()}*[n.$getContainedChildren](){yield*getContainedChildren(this)}[n.$flushHTML](){return flushHTML(this)}[n.$addHTML](e,t){addHTML(this,e,t)}[n.$getAvailableSpace](){return getAvailableSpace(this)}[n.$isSplittable](){const e=this[n.$getSubformParent]();if(!e[n.$isSplittable]())return!1;if(void 0!==this[n.$extra]._isSplittable)return this[n.$extra]._isSplittable;if("position"===this.layout||this.layout.includes("row")){this[n.$extra]._isSplittable=!1;return!1}if(this.keep&&"none"!==this.keep.intact){this[n.$extra]._isSplittable=!1;return!1}if(e.layout?.endsWith("-tb")&&0!==e[n.$extra].numberInLine)return!1;this[n.$extra]._isSplittable=!0;return!0}[n.$toHTML](e){setTabIndex(this);if(this.break){if("auto"!==this.break.after||""!==this.break.afterTarget){const e=new BreakAfter({targetType:this.break.after,target:this.break.afterTarget,startNew:this.break.startNew.toString()});e[n.$globalData]=this[n.$globalData];this[n.$appendChild](e);this.breakAfter.push(e)}if("auto"!==this.break.before||""!==this.break.beforeTarget){const e=new BreakBefore({targetType:this.break.before,target:this.break.beforeTarget,startNew:this.break.startNew.toString()});e[n.$globalData]=this[n.$globalData];this[n.$appendChild](e);this.breakBefore.push(e)}if(""!==this.break.overflowTarget){const e=new Overflow({target:this.break.overflowTarget,leader:this.break.overflowLeader,trailer:this.break.overflowTrailer});e[n.$globalData]=this[n.$globalData];this[n.$appendChild](e);this.overflow.push(e)}this[n.$removeChild](this.break);this.break=null}if("hidden"===this.presence||"inactive"===this.presence)return l.HTMLResult.EMPTY;(this.breakBefore.children.length>1||this.breakAfter.children.length>1)&&(0,c.warn)("XFA - Several breakBefore or breakAfter in subforms: please file a bug.");if(this.breakBefore.children.length>=1){const e=this.breakBefore.children[0];if(handleBreak(e))return l.HTMLResult.breakNode(e)}if(this[n.$extra]?.afterBreakAfter)return l.HTMLResult.EMPTY;(0,i.fixDimensions)(this);const t=[],a={id:this[n.$uid],class:[]};(0,i.setAccess)(this,a.class);this[n.$extra]||=Object.create(null);Object.assign(this[n.$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});const s=this[n.$getTemplateRoot](),r=s[n.$extra].noLayoutFailure,o=this[n.$isSplittable]();o||setFirstUnsplittable(this);if(!checkDimensions(this,e))return l.HTMLResult.FAILURE;const f=new Set(["area","draw","exclGroup","field","subform","subformSet"]);if(this.layout.includes("row")){const e=this[n.$getSubformParent]().columnWidths;if(Array.isArray(e)&&e.length>0){this[n.$extra].columnWidths=e;this[n.$extra].currentColumn=0}}const h=(0,i.toStyle)(this,"anchorType","dimensions","position","presence","border","margin","hAlign"),u=["xfaSubform"],d=(0,i.layoutClass)(this);d&&u.push(d);a.style=h;a.class=u;this.name&&(a.xfaName=this.name);if(this.overflow){const t=this.overflow[n.$getExtra]();if(t.addLeader){t.addLeader=!1;handleOverflow(this,t.leader,e)}}this[n.$pushPara]();const m="lr-tb"===this.layout||"rl-tb"===this.layout,g=m?2:1;for(;this[n.$extra].attempt<g;this[n.$extra].attempt++){m&&1===this[n.$extra].attempt&&(this[n.$extra].numberInLine=0);const e=this[n.$childrenToHTML]({filter:f,include:!0});if(e.success)break;if(e.isBreak()){this[n.$popPara]();return e}if(m&&0===this[n.$extra].attempt&&0===this[n.$extra].numberInLine&&!s[n.$extra].noLayoutFailure){this[n.$extra].attempt=g;break}}this[n.$popPara]();o||unsetFirstUnsplittable(this);s[n.$extra].noLayoutFailure=r;if(this[n.$extra].attempt===g){this.overflow&&(this[n.$getTemplateRoot]()[n.$extra].overflowNode=this.overflow);o||delete this[n.$extra];return l.HTMLResult.FAILURE}if(this.overflow){const t=this.overflow[n.$getExtra]();if(t.addTrailer){t.addTrailer=!1;handleOverflow(this,t.trailer,e)}}let b=0,w=0;if(this.margin){b=this.margin.leftInset+this.margin.rightInset;w=this.margin.topInset+this.margin.bottomInset}const j=Math.max(this[n.$extra].width+b,this.w||0),y=Math.max(this[n.$extra].height+w,this.h||0),v=[this.x,this.y,j,y];""===this.w&&(h.width=(0,i.measureToString)(j));""===this.h&&(h.height=(0,i.measureToString)(y));if(("0px"===h.width||"0px"===h.height)&&0===t.length)return l.HTMLResult.EMPTY;const k={name:"div",attributes:a,children:t};applyAssist(this,a);const q=l.HTMLResult.success((0,i.createWrapper)(this,k),v);if(this.breakAfter.children.length>=1){const e=this.breakAfter.children[0];if(handleBreak(e)){this[n.$extra].afterBreakAfter=q;return l.HTMLResult.breakNode(e)}}delete this[n.$extra];return q}}class SubformSet extends o.XFAObject{constructor(e){super(d,"subformSet",!0);this.id=e.id||"";this.name=e.name||"";this.relation=(0,l.getStringOption)(e.relation,["ordered","choice","unordered"]);this.relevant=(0,l.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 o.XFAObjectArray;this.breakBefore=new o.XFAObjectArray;this.subform=new o.XFAObjectArray;this.subformSet=new o.XFAObjectArray}*[n.$getContainedChildren](){yield*getContainedChildren(this)}[n.$getSubformParent](){let e=this[n.$getParent]();for(;!(e instanceof Subform);)e=e[n.$getParent]();return e}[n.$isBindable](){return!0}}class SubjectDN extends o.ContentObject{constructor(e){super(d,"subjectDN");this.delimiter=e.delimiter||",";this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[n.$finalize](){this[n.$content]=new Map(this[n.$content].split(this.delimiter).map(e=>{(e=e.split("=",2))[0]=e[0].trim();return e}))}}class SubjectDNs extends o.XFAObject{constructor(e){super(d,"subjectDNs",!0);this.id=e.id||"";this.type=(0,l.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||"";this.subjectDN=new o.XFAObjectArray}}class Submit extends o.XFAObject{constructor(e){super(d,"submit",!0);this.embedPDF=(0,l.getInteger)({data:e.embedPDF,defaultValue:0,validate:e=>1===e});this.format=(0,l.getStringOption)(e.format,["xdp","formdata","pdf","urlencoded","xfd","xml"]);this.id=e.id||"";this.target=e.target||"";this.textEncoding=(0,l.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 o.XFAObjectArray;this.signData=new o.XFAObjectArray}}class Template extends o.XFAObject{constructor(e){super(d,"template",!0);this.baseProfile=(0,l.getStringOption)(e.baseProfile,["full","interactiveForms"]);this.extras=null;this.subform=new o.XFAObjectArray}[n.$finalize](){0===this.subform.children.length&&(0,c.warn)("XFA - No subforms in template node.");this.subform.children.length>=2&&(0,c.warn)("XFA - Several subforms in template node: please file a bug.");this[n.$tabIndex]=5e3}[n.$isSplittable](){return!0}[n.$searchNode](e,t){return e.startsWith("#")?[this[n.$ids].get(e.slice(1))]:(0,u.searchNode)(this,t,e,!0,!0)}*[n.$toPages](){if(!this.subform.children.length)return l.HTMLResult.success({name:"div",children:[]});this[n.$extra]={overflowNode:null,firstUnsplittable:null,currentContentArea:null,currentPageArea:null,noLayoutFailure:!1,pageNumber:1,pagePosition:"first",oddOrEven:"odd",blankOrNotBlank:"nonBlank",paraStack:[]};const e=this.subform.children[0];e.pageSet[n.$cleanPage]();const t=e.pageSet.pageArea.children,a={name:"div",children:[]};let s=null,r=null,i=null;if(e.breakBefore.children.length>=1){r=e.breakBefore.children[0];i=r.target}else if(e.subform.children.length>=1&&e.subform.children[0].breakBefore.children.length>=1){r=e.subform.children[0].breakBefore.children[0];i=r.target}else if(e.break?.beforeTarget){r=e.break;i=r.beforeTarget}else if(e.subform.children.length>=1&&e.subform.children[0].break?.beforeTarget){r=e.subform.children[0].break;i=r.beforeTarget}if(r){const e=this[n.$searchNode](i,r[n.$getParent]());if(e instanceof PageArea){s=e;r[n.$extra]={}}}s||=t[0];s[n.$extra]={numberOfUse:1};const o=s[n.$getParent]();o[n.$extra]={numberOfUse:1,pageIndex:o.pageArea.children.indexOf(s),pageSetIndex:0};let f,h=null,u=null,d=!0,m=0,g=0;for(;;){if(d)m=0;else{a.children.pop();if(3===++m){(0,c.warn)("XFA - Something goes wrong: please file a bug.");return a}}f=null;this[n.$extra].currentPageArea=s;const t=s[n.$toHTML]().html;a.children.push(t);if(h){this[n.$extra].noLayoutFailure=!0;t.children.push(h[n.$toHTML](s[n.$extra].space).html);h=null}if(u){this[n.$extra].noLayoutFailure=!0;t.children.push(u[n.$toHTML](s[n.$extra].space).html);u=null}const r=s.contentArea.children,i=t.children.filter(e=>e.attributes.class.includes("xfaContentarea"));d=!1;this[n.$extra].firstUnsplittable=null;this[n.$extra].noLayoutFailure=!1;const flush=t=>{const a=e[n.$flushHTML]();if(a){d||=a.children?.length>0;i[t].children.push(a)}};for(let t=g,s=r.length;t<s;t++){const s=this[n.$extra].currentContentArea=r[t],o={width:s.w,height:s.h};g=0;if(h){i[t].children.push(h[n.$toHTML](o).html);h=null}if(u){i[t].children.push(u[n.$toHTML](o).html);u=null}const l=e[n.$toHTML](o);if(l.success){if(l.html){d||=l.html.children?.length>0;i[t].children.push(l.html)}else!d&&a.children.length>1&&a.children.pop();return a}if(l.isBreak()){const e=l.breakNode;flush(t);if("auto"===e.targetType)continue;if(e.leader){h=this[n.$searchNode](e.leader,e[n.$getParent]());h=h?h[0]:null}if(e.trailer){u=this[n.$searchNode](e.trailer,e[n.$getParent]());u=u?u[0]:null}if("pageArea"===e.targetType){f=e[n.$extra].target;t=1/0}else if(e[n.$extra].target){f=e[n.$extra].target;g=e[n.$extra].index+1;t=1/0}else t=e[n.$extra].index;continue}if(this[n.$extra].overflowNode){const e=this[n.$extra].overflowNode;this[n.$extra].overflowNode=null;const a=e[n.$getExtra](),s=a.target;a.addLeader=null!==a.leader;a.addTrailer=null!==a.trailer;flush(t);const i=t;t=1/0;if(s instanceof PageArea)f=s;else if(s instanceof ContentArea){const e=r.indexOf(s);if(-1!==e)e>i?t=e-1:g=e;else{f=s[n.$getParent]();g=f.contentArea.children.indexOf(s)}}continue}flush(t)}this[n.$extra].pageNumber+=1;f&&(f[n.$isUsable]()?f[n.$extra].numberOfUse+=1:f=null);s=f||s[n.$getNextPage]();yield null}}}class Text extends o.ContentObject{constructor(e){super(d,"text");this.id=e.id||"";this.maxChars=(0,l.getInteger)({data:e.maxChars,defaultValue:0,validate:e=>e>=0});this.name=e.name||"";this.rid=e.rid||"";this.use=e.use||"";this.usehref=e.usehref||""}[n.$acceptWhitespace](){return!0}[n.$onChild](e){if(e[n.$namespaceId]===s.NamespaceIds.xhtml.id){this[n.$content]=e;return!0}(0,c.warn)(`XFA - Invalid content in Text: ${e[n.$nodeName]}.`);return!1}[n.$onText](e){this[n.$content]instanceof o.XFAObject||super[n.$onText](e)}[n.$finalize](){"string"==typeof this[n.$content]&&(this[n.$content]=this[n.$content].replaceAll("\r\n","\n"))}[n.$getExtra](){return"string"==typeof this[n.$content]?this[n.$content].split(/[\u2029\u2028\n]/).filter(Boolean).join("\n"):this[n.$content][n.$text]()}[n.$toHTML](e){if("string"==typeof this[n.$content]){const e=valueToHtml(this[n.$content]).html;if(this[n.$content].includes("\u2029")){e.name="div";e.children=[];this[n.$content].split("\u2029").map(e=>e.split(/[\u2028\n]/).flatMap(e=>[{name:"span",value:e},{name:"br"}])).forEach(t=>{e.children.push({name:"p",children:t})})}else if(/[\u2028\n]/.test(this[n.$content])){e.name="div";e.children=[];this[n.$content].split(/[\u2028\n]/).forEach(t=>{e.children.push({name:"span",value:t},{name:"br"})})}return l.HTMLResult.success(e)}return this[n.$content][n.$toHTML](e)}}class TextEdit extends o.XFAObject{constructor(e){super(d,"textEdit",!0);this.allowRichText=(0,l.getInteger)({data:e.allowRichText,defaultValue:0,validate:e=>1===e});this.hScrollPolicy=(0,l.getStringOption)(e.hScrollPolicy,["auto","off","on"]);this.id=e.id||"";this.multiLine=(0,l.getInteger)({data:e.multiLine,defaultValue:"",validate:e=>0===e||1===e});this.use=e.use||"";this.usehref=e.usehref||"";this.vScrollPolicy=(0,l.getStringOption)(e.vScrollPolicy,["auto","off","on"]);this.border=null;this.comb=null;this.extras=null;this.margin=null}[n.$toHTML](e){const t=(0,i.toStyle)(this,"border","font","margin");let a;const s=this[n.$getParent]()[n.$getParent]();""===this.multiLine&&(this.multiLine=s instanceof Draw?1:0);a=1===this.multiLine?{name:"textarea",attributes:{dataId:s[n.$data]?.[n.$uid]||s[n.$uid],fieldId:s[n.$uid],class:["xfaTextfield"],style:t,"aria-label":ariaLabel(s),"aria-required":!1}}:{name:"input",attributes:{type:"text",dataId:s[n.$data]?.[n.$uid]||s[n.$uid],fieldId:s[n.$uid],class:["xfaTextfield"],style:t,"aria-label":ariaLabel(s),"aria-required":!1}};if(isRequired(s)){a.attributes["aria-required"]=!0;a.attributes.required=!0}return l.HTMLResult.success({name:"label",attributes:{class:["xfaLabel"]},children:[a]})}}class Time extends o.StringObject{constructor(e){super(d,"time");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}[n.$finalize](){const e=this[n.$content].trim();this[n.$content]=e?new Date(e):null}[n.$toHTML](e){return valueToHtml(this[n.$content]?this[n.$content].toString():"")}}class TimeStamp extends o.XFAObject{constructor(e){super(d,"timeStamp");this.id=e.id||"";this.server=e.server||"";this.type=(0,l.getStringOption)(e.type,["optional","required"]);this.use=e.use||"";this.usehref=e.usehref||""}}class ToolTip extends o.StringObject{constructor(e){super(d,"toolTip");this.id=e.id||"";this.rid=e.rid||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Traversal extends o.XFAObject{constructor(e){super(d,"traversal",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.extras=null;this.traverse=new o.XFAObjectArray}}class Traverse extends o.XFAObject{constructor(e){super(d,"traverse",!0);this.id=e.id||"";this.operation=(0,l.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}[n.$isTransparent](){return!1}}class Ui extends o.XFAObject{constructor(e){super(d,"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}[n.$getExtra](){if(void 0===this[n.$extra]){for(const e of Object.getOwnPropertyNames(this)){if("extras"===e||"picture"===e)continue;const t=this[e];if(t instanceof o.XFAObject){this[n.$extra]=t;return t}}this[n.$extra]=null}return this[n.$extra]}[n.$toHTML](e){const t=this[n.$getExtra]();return t?t[n.$toHTML](e):l.HTMLResult.EMPTY}}class Validate extends o.XFAObject{constructor(e){super(d,"validate",!0);this.formatTest=(0,l.getStringOption)(e.formatTest,["warning","disabled","error"]);this.id=e.id||"";this.nullTest=(0,l.getStringOption)(e.nullTest,["disabled","error","warning"]);this.scriptTest=(0,l.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 Value extends o.XFAObject{constructor(e){super(d,"value",!0);this.id=e.id||"";this.override=(0,l.getInteger)({data:e.override,defaultValue:0,validate:e=>1===e});this.relevant=(0,l.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}[n.$setValue](e){const t=this[n.$getParent]();if(t instanceof Field&&t.ui?.imageEdit){if(!this.image){this.image=new Image({});this[n.$appendChild](this.image)}this.image[n.$content]=e[n.$content];return}const a=e[n.$nodeName];if(null===this[a]){for(const e of Object.getOwnPropertyNames(this)){const t=this[e];if(t instanceof o.XFAObject){this[e]=null;this[n.$removeChild](t)}}this[e[n.$nodeName]]=e;this[n.$appendChild](e)}else this[a][n.$content]=e[n.$content]}[n.$text](){if(this.exData)return"string"==typeof this.exData[n.$content]?this.exData[n.$content].trim():this.exData[n.$content][n.$text]().trim();for(const e of Object.getOwnPropertyNames(this)){if("image"===e)continue;const t=this[e];if(t instanceof o.XFAObject)return(t[n.$content]||"").toString().trim()}return null}[n.$toHTML](e){for(const t of Object.getOwnPropertyNames(this)){const a=this[t];if(a instanceof o.XFAObject)return a[n.$toHTML](e)}return l.HTMLResult.EMPTY}}class Variables extends o.XFAObject{constructor(e){super(d,"variables",!0);this.id=e.id||"";this.use=e.use||"";this.usehref=e.usehref||"";this.boolean=new o.XFAObjectArray;this.date=new o.XFAObjectArray;this.dateTime=new o.XFAObjectArray;this.decimal=new o.XFAObjectArray;this.exData=new o.XFAObjectArray;this.float=new o.XFAObjectArray;this.image=new o.XFAObjectArray;this.integer=new o.XFAObjectArray;this.manifest=new o.XFAObjectArray;this.script=new o.XFAObjectArray;this.text=new o.XFAObjectArray;this.time=new o.XFAObjectArray}[n.$isTransparent](){return!0}}class TemplateNamespace{static[s.$buildXFAObject](e,t){if(Object.hasOwn(TemplateNamespace,e)){const a=TemplateNamespace[e](t);a[n.$setSetAttributes](t);return a}}static appearanceFilter(e){return new AppearanceFilter(e)}static arc(e){return new Arc(e)}static area(e){return new Area(e)}static assist(e){return new Assist(e)}static barcode(e){return new Barcode(e)}static bind(e){return new Bind(e)}static bindItems(e){return new BindItems(e)}static bookend(e){return new Bookend(e)}static boolean(e){return new BooleanElement(e)}static border(e){return new Border(e)}static break(e){return new Break(e)}static breakAfter(e){return new BreakAfter(e)}static breakBefore(e){return new BreakBefore(e)}static button(e){return new Button(e)}static calculate(e){return new Calculate(e)}static caption(e){return new Caption(e)}static certificate(e){return new Certificate(e)}static certificates(e){return new Certificates(e)}static checkButton(e){return new CheckButton(e)}static choiceList(e){return new ChoiceList(e)}static color(e){return new Color(e)}static comb(e){return new Comb(e)}static connect(e){return new Connect(e)}static contentArea(e){return new ContentArea(e)}static corner(e){return new Corner(e)}static date(e){return new DateElement(e)}static dateTime(e){return new DateTime(e)}static dateTimeEdit(e){return new DateTimeEdit(e)}static decimal(e){return new Decimal(e)}static defaultUi(e){return new DefaultUi(e)}static desc(e){return new Desc(e)}static digestMethod(e){return new DigestMethod(e)}static digestMethods(e){return new DigestMethods(e)}static draw(e){return new Draw(e)}static edge(e){return new Edge(e)}static encoding(e){return new Encoding(e)}static encodings(e){return new Encodings(e)}static encrypt(e){return new Encrypt(e)}static encryptData(e){return new EncryptData(e)}static encryption(e){return new Encryption(e)}static encryptionMethod(e){return new EncryptionMethod(e)}static encryptionMethods(e){return new EncryptionMethods(e)}static event(e){return new Event(e)}static exData(e){return new ExData(e)}static exObject(e){return new ExObject(e)}static exclGroup(e){return new ExclGroup(e)}static execute(e){return new Execute(e)}static extras(e){return new Extras(e)}static field(e){return new Field(e)}static fill(e){return new Fill(e)}static filter(e){return new Filter(e)}static float(e){return new Float(e)}static font(e){return new Font(e)}static format(e){return new Format(e)}static handler(e){return new Handler(e)}static hyphenation(e){return new Hyphenation(e)}static image(e){return new Image(e)}static imageEdit(e){return new ImageEdit(e)}static integer(e){return new Integer(e)}static issuers(e){return new Issuers(e)}static items(e){return new Items(e)}static keep(e){return new Keep(e)}static keyUsage(e){return new KeyUsage(e)}static line(e){return new Line(e)}static linear(e){return new Linear(e)}static lockDocument(e){return new LockDocument(e)}static manifest(e){return new Manifest(e)}static margin(e){return new Margin(e)}static mdp(e){return new Mdp(e)}static medium(e){return new Medium(e)}static message(e){return new Message(e)}static numericEdit(e){return new NumericEdit(e)}static occur(e){return new Occur(e)}static oid(e){return new Oid(e)}static oids(e){return new Oids(e)}static overflow(e){return new Overflow(e)}static pageArea(e){return new PageArea(e)}static pageSet(e){return new PageSet(e)}static para(e){return new Para(e)}static passwordEdit(e){return new PasswordEdit(e)}static pattern(e){return new Pattern(e)}static picture(e){return new Picture(e)}static proto(e){return new Proto(e)}static radial(e){return new Radial(e)}static reason(e){return new Reason(e)}static reasons(e){return new Reasons(e)}static rectangle(e){return new Rectangle(e)}static ref(e){return new RefElement(e)}static script(e){return new Script(e)}static setProperty(e){return new SetProperty(e)}static signData(e){return new SignData(e)}static signature(e){return new Signature(e)}static signing(e){return new Signing(e)}static solid(e){return new Solid(e)}static speak(e){return new Speak(e)}static stipple(e){return new Stipple(e)}static subform(e){return new Subform(e)}static subformSet(e){return new SubformSet(e)}static subjectDN(e){return new SubjectDN(e)}static subjectDNs(e){return new SubjectDNs(e)}static submit(e){return new Submit(e)}static template(e){return new Template(e)}static text(e){return new Text(e)}static textEdit(e){return new TextEdit(e)}static time(e){return new Time(e)}static timeStamp(e){return new TimeStamp(e)}static toolTip(e){return new ToolTip(e)}static traversal(e){return new Traversal(e)}static traverse(e){return new Traverse(e)}static ui(e){return new Ui(e)}static validate(e){return new Validate(e)}static value(e){return new Value(e)}static variables(e){return new Variables(e)}}const w=s.NamespaceIds.datasets.id;function createText(e){const t=new Text({});t[n.$content]=e;return t}class Binder{constructor(e){this.root=e;this.datasets=e.datasets;this.data=e.datasets?.data||new o.XmlObject(w,"data");this.emptyMerge=0===this.data[n.$getChildren]().length;this.root.form=this.form=e.template[n.$clone]()}_isConsumeData(){return!this.emptyMerge&&this._mergeMode}_isMatchTemplate(){return!this._isConsumeData()}bind(){this._bindElement(this.form,this.data);return this.form}getData(){return this.data}_bindValue(e,t,a){e[n.$data]=t;if(e[n.$hasSettableValue]())if(t[n.$isDataValue]()){const a=t[n.$getDataValue]();e[n.$setValue](createText(a))}else if(e instanceof Field&&"multiSelect"===e.ui?.choiceList?.open){const a=t[n.$getChildren]().map(e=>e[n.$content].trim()).join("\n");e[n.$setValue](createText(a))}else this._isConsumeData()&&(0,c.warn)("XFA - Nodes haven't the same type.");else!t[n.$isDataValue]()||this._isMatchTemplate()?this._bindElement(e,t):(0,c.warn)("XFA - Nodes haven't the same type.")}_findDataByNameToConsume(e,t,a,s){if(!e)return null;let r,i;for(let s=0;s<3;s++){r=a[n.$getRealChildrenByNameIt](e,!1,!0);for(;;){i=r.next().value;if(!i)break;if(t===i[n.$isDataValue]())return i}if(a[n.$namespaceId]===w&&"data"===a[n.$nodeName])break;a=a[n.$getParent]()}if(!s)return null;r=this.data[n.$getRealChildrenByNameIt](e,!0,!1);i=r.next().value;if(i)return i;r=this.data[n.$getAttributeIt](e,!0);i=r.next().value;return i?.[n.$isDataValue]()?i:null}_setProperties(e,t){if(Object.hasOwn(e,"setProperty"))for(const{ref:a,target:s,connection:r}of e.setProperty.children){if(r)continue;if(!a)continue;const i=(0,u.searchNode)(this.root,t,a,!1,!1);if(!i){(0,c.warn)(`XFA - Invalid reference: ${a}.`);continue}const[l]=i;if(!l[n.$isDescendent](this.data)){(0,c.warn)("XFA - Invalid node: must be a data node.");continue}const f=(0,u.searchNode)(this.root,e,s,!1,!1);if(!f){(0,c.warn)(`XFA - Invalid target: ${s}.`);continue}const[h]=f;if(!h[n.$isDescendent](e)){(0,c.warn)("XFA - Invalid target: must be a property or subproperty.");continue}const d=h[n.$getParent]();if(h instanceof SetProperty||d instanceof SetProperty){(0,c.warn)("XFA - Invalid target: cannot be a setProperty or one of its properties.");continue}if(h instanceof BindItems||d instanceof BindItems){(0,c.warn)("XFA - Invalid target: cannot be a bindItems or one of its properties.");continue}const m=l[n.$text](),g=h[n.$nodeName];if(h instanceof o.XFAAttribute){const e=Object.create(null);e[g]=m;const t=Reflect.construct(Object.getPrototypeOf(d).constructor,[e]);d[g]=t[g];continue}if(Object.hasOwn(h,n.$content)){h[n.$data]=l;h[n.$content]=m;h[n.$finalize]()}else(0,c.warn)("XFA - Invalid node to use in setProperty")}}_bindItems(e,t){if(!Object.hasOwn(e,"items")||!Object.hasOwn(e,"bindItems")||e.bindItems.isEmpty())return;for(const t of e.items.children)e[n.$removeChild](t);e.items.clear();const a=new Items({}),s=new Items({});e[n.$appendChild](a);e.items.push(a);e[n.$appendChild](s);e.items.push(s);for(const{ref:r,labelRef:i,valueRef:o,connection:l}of e.bindItems.children){if(l)continue;if(!r)continue;const e=(0,u.searchNode)(this.root,t,r,!1,!1);if(e)for(const t of e){if(!t[n.$isDescendent](this.datasets)){(0,c.warn)(`XFA - Invalid ref (${r}): must be a datasets child.`);continue}const e=(0,u.searchNode)(this.root,t,i,!0,!1);if(!e){(0,c.warn)(`XFA - Invalid label: ${i}.`);continue}const[l]=e;if(!l[n.$isDescendent](this.datasets)){(0,c.warn)("XFA - Invalid label: must be a datasets child.");continue}const f=(0,u.searchNode)(this.root,t,o,!0,!1);if(!f){(0,c.warn)(`XFA - Invalid value: ${o}.`);continue}const[h]=f;if(!h[n.$isDescendent](this.datasets)){(0,c.warn)("XFA - Invalid value: must be a datasets child.");continue}const d=createText(l[n.$text]()),m=createText(h[n.$text]());a[n.$appendChild](d);a.text.push(d);s[n.$appendChild](m);s.text.push(m)}else(0,c.warn)(`XFA - Invalid reference: ${r}.`)}}_bindOccurrences(e,t,a){let s;if(t.length>1){s=e[n.$clone]();s[n.$removeChild](s.occur);s.occur=null}this._bindValue(e,t[0],a);this._setProperties(e,t[0]);this._bindItems(e,t[0]);if(1===t.length)return;const r=e[n.$getParent](),i=e[n.$nodeName],o=r[n.$indexOf](e);for(let e=1,l=t.length;e<l;e++){const l=t[e],c=s[n.$clone]();r[i].push(c);r[n.$insertAt](o+e,c);this._bindValue(c,l,a);this._setProperties(c,l);this._bindItems(c,l)}}_createOccurrences(e){if(!this.emptyMerge)return;const{occur:t}=e;if(!t||t.initial<=1)return;const a=e[n.$getParent](),s=e[n.$nodeName];if(!(a[s]instanceof o.XFAObjectArray))return;let r;r=e.name?a[s].children.filter(t=>t.name===e.name).length:a[s].children.length;const i=a[n.$indexOf](e)+1,l=t.initial-r;if(l){const t=e[n.$clone]();t[n.$removeChild](t.occur);t.occur=null;a[s].push(t);a[n.$insertAt](i,t);for(let e=1;e<l;e++){const r=t[n.$clone]();a[s].push(r);a[n.$insertAt](i+e,r)}}}_getOccurInfo(e){const{name:t,occur:a}=e;if(!a||!t)return[1,1];const n=-1===a.max?1/0:a.max;return[a.min,n]}_setAndBind(e,t){this._setProperties(e,t);this._bindItems(e,t);this._bindElement(e,t)}_bindElement(e,t){const a=[];this._createOccurrences(e);for(const s of e[n.$getChildren]()){if(s[n.$data])continue;if(void 0===this._mergeMode&&"subform"===s[n.$nodeName]){this._mergeMode="consumeData"===s.mergeMode;const e=t[n.$getChildren]();if(e.length>0)this._bindOccurrences(s,[e[0]],null);else if(this.emptyMerge){const e=t[n.$namespaceId]===w?-1:t[n.$namespaceId],a=s[n.$data]=new o.XmlObject(e,s.name||"root");t[n.$appendChild](a);this._bindElement(s,a)}continue}if(!s[n.$isBindable]())continue;let e=!1,r=null,i=null,l=null;if(s.bind){switch(s.bind.match){case"none":this._setAndBind(s,t);continue;case"global":e=!0;break;case"dataRef":if(!s.bind.ref){(0,c.warn)(`XFA - ref is empty in node ${s[n.$nodeName]}.`);this._setAndBind(s,t);continue}i=s.bind.ref}s.bind.picture&&(r=s.bind.picture[n.$content])}const[f,h]=this._getOccurInfo(s);if(i){l=(0,u.searchNode)(this.root,t,i,!0,!1);if(null===l){l=(0,u.createDataNode)(this.data,t,i);if(!l)continue;this._isConsumeData()&&(l[n.$consumed]=!0);this._setAndBind(s,l);continue}this._isConsumeData()&&(l=l.filter(e=>!e[n.$consumed]));l.length>h?l=l.slice(0,h):0===l.length&&(l=null);l&&this._isConsumeData()&&l.forEach(e=>{e[n.$consumed]=!0})}else{if(!s.name){this._setAndBind(s,t);continue}if(this._isConsumeData()){const a=[];for(;a.length<h;){const r=this._findDataByNameToConsume(s.name,s[n.$hasSettableValue](),t,e);if(!r)break;r[n.$consumed]=!0;a.push(r)}l=a.length>0?a:null}else{l=t[n.$getRealChildrenByNameIt](s.name,!1,this.emptyMerge).next().value;if(!l){if(0===f){a.push(s);continue}const e=t[n.$namespaceId]===w?-1:t[n.$namespaceId];l=s[n.$data]=new o.XmlObject(e,s.name);this.emptyMerge&&(l[n.$consumed]=!0);t[n.$appendChild](l);this._setAndBind(s,l);continue}this.emptyMerge&&(l[n.$consumed]=!0);l=[l]}}l?this._bindOccurrences(s,l,r):f>0?this._setAndBind(s,t):a.push(s)}a.forEach(e=>e[n.$getParent]()[n.$removeChild](e))}}class DataHandler{constructor(e,t){this.data=t;this.dataset=e.datasets||null}serialize(e){const t=[[-1,this.data[n.$getChildren]()]];for(;t.length>0;){const a=t.at(-1),[s,r]=a;if(s+1===r.length){t.pop();continue}const i=r[++a[0]],o=e.get(i[n.$uid]);if(o)i[n.$setValue](o);else{const t=i[n.$getAttributes]();for(const a of t.values()){const t=e.get(a[n.$uid]);if(t){a[n.$setValue](t);break}}}const l=i[n.$getChildren]();l.length>0&&t.push([-1,l])}const a=['<xfa:datasets xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">'];if(this.dataset)for(const e of this.dataset[n.$getChildren]())"data"!==e[n.$nodeName]&&e[n.$toString](a);this.data[n.$toString](a);a.push("</xfa:datasets>");return a.join("")}}const j=s.NamespaceIds.config.id;class Acrobat extends o.XFAObject{constructor(e){super(j,"acrobat",!0);this.acrobat7=null;this.autoSave=null;this.common=null;this.validate=null;this.validateApprovalSignatures=null;this.submitUrl=new o.XFAObjectArray}}class Acrobat7 extends o.XFAObject{constructor(e){super(j,"acrobat7",!0);this.dynamicRender=null}}class ADBE_JSConsole extends o.OptionObject{constructor(e){super(j,"ADBE_JSConsole",["delegate","Enable","Disable"])}}class ADBE_JSDebugger extends o.OptionObject{constructor(e){super(j,"ADBE_JSDebugger",["delegate","Enable","Disable"])}}class AddSilentPrint extends o.Option01{constructor(e){super(j,"addSilentPrint")}}class AddViewerPreferences extends o.Option01{constructor(e){super(j,"addViewerPreferences")}}class AdjustData extends o.Option10{constructor(e){super(j,"adjustData")}}class AdobeExtensionLevel extends o.IntegerObject{constructor(e){super(j,"adobeExtensionLevel",0,e=>e>=1&&e<=8)}}class Agent extends o.XFAObject{constructor(e){super(j,"agent",!0);this.name=e.name?e.name.trim():"";this.common=new o.XFAObjectArray}}class AlwaysEmbed extends o.ContentObject{constructor(e){super(j,"alwaysEmbed")}}class Amd extends o.StringObject{constructor(e){super(j,"amd")}}class config_Area extends o.XFAObject{constructor(e){super(j,"area");this.level=(0,l.getInteger)({data:e.level,defaultValue:0,validate:e=>e>=1&&e<=3});this.name=(0,l.getStringOption)(e.name,["","barcode","coreinit","deviceDriver","font","general","layout","merge","script","signature","sourceSet","templateCache"])}}class Attributes extends o.OptionObject{constructor(e){super(j,"attributes",["preserve","delegate","ignore"])}}class AutoSave extends o.OptionObject{constructor(e){super(j,"autoSave",["disabled","enabled"])}}class Base extends o.StringObject{constructor(e){super(j,"base")}}class BatchOutput extends o.XFAObject{constructor(e){super(j,"batchOutput");this.format=(0,l.getStringOption)(e.format,["none","concat","zip","zipCompress"])}}class BehaviorOverride extends o.ContentObject{constructor(e){super(j,"behaviorOverride")}[n.$finalize](){this[n.$content]=new Map(this[n.$content].trim().split(/\s+/).filter(e=>e.includes(":")).map(e=>e.split(":",2)))}}class Cache extends o.XFAObject{constructor(e){super(j,"cache",!0);this.templateCache=null}}class Change extends o.Option01{constructor(e){super(j,"change")}}class Common extends o.XFAObject{constructor(e){super(j,"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 o.XFAObjectArray}}class Compress extends o.XFAObject{constructor(e){super(j,"compress");this.scope=(0,l.getStringOption)(e.scope,["imageOnly","document"])}}class CompressLogicalStructure extends o.Option01{constructor(e){super(j,"compressLogicalStructure")}}class CompressObjectStream extends o.Option10{constructor(e){super(j,"compressObjectStream")}}class Compression extends o.XFAObject{constructor(e){super(j,"compression",!0);this.compressLogicalStructure=null;this.compressObjectStream=null;this.level=null;this.type=null}}class Config extends o.XFAObject{constructor(e){super(j,"config",!0);this.acrobat=null;this.present=null;this.trace=null;this.agent=new o.XFAObjectArray}}class Conformance extends o.OptionObject{constructor(e){super(j,"conformance",["A","B"])}}class ContentCopy extends o.Option01{constructor(e){super(j,"contentCopy")}}class Copies extends o.IntegerObject{constructor(e){super(j,"copies",1,e=>e>=1)}}class Creator extends o.StringObject{constructor(e){super(j,"creator")}}class CurrentPage extends o.IntegerObject{constructor(e){super(j,"currentPage",0,e=>e>=0)}}class Data extends o.XFAObject{constructor(e){super(j,"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 o.XFAObjectArray;this.transform=new o.XFAObjectArray}}class Debug extends o.XFAObject{constructor(e){super(j,"debug",!0);this.uri=null}}class DefaultTypeface extends o.ContentObject{constructor(e){super(j,"defaultTypeface");this.writingScript=(0,l.getStringOption)(e.writingScript,["*","Arabic","Cyrillic","EastEuropeanRoman","Greek","Hebrew","Japanese","Korean","Roman","SimplifiedChinese","Thai","TraditionalChinese","Vietnamese"])}}class Destination extends o.OptionObject{constructor(e){super(j,"destination",["pdf","pcl","ps","webClient","zpl"])}}class DocumentAssembly extends o.Option01{constructor(e){super(j,"documentAssembly")}}class Driver extends o.XFAObject{constructor(e){super(j,"driver",!0);this.name=e.name?e.name.trim():"";this.fontInfo=null;this.xdc=null}}class DuplexOption extends o.OptionObject{constructor(e){super(j,"duplexOption",["simplex","duplexFlipLongEdge","duplexFlipShortEdge"])}}class DynamicRender extends o.OptionObject{constructor(e){super(j,"dynamicRender",["forbidden","required"])}}class Embed extends o.Option01{constructor(e){super(j,"embed")}}class config_Encrypt extends o.Option01{constructor(e){super(j,"encrypt")}}class config_Encryption extends o.XFAObject{constructor(e){super(j,"encryption",!0);this.encrypt=null;this.encryptionLevel=null;this.permissions=null}}class EncryptionLevel extends o.OptionObject{constructor(e){super(j,"encryptionLevel",["40bit","128bit"])}}class Enforce extends o.StringObject{constructor(e){super(j,"enforce")}}class Equate extends o.XFAObject{constructor(e){super(j,"equate");this.force=(0,l.getInteger)({data:e.force,defaultValue:1,validate:e=>0===e});this.from=e.from||"";this.to=e.to||""}}class EquateRange extends o.XFAObject{constructor(e){super(j,"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(let n of a.split(",").map(e=>e.trim()).filter(Boolean)){n=n.split("-",2).map(e=>{const a=e.match(t);return a?parseInt(a[1],16):0});1===n.length&&n.push(n[0]);e.push(n)}return(0,c.shadow)(this,"unicodeRange",e)}}class Exclude extends o.ContentObject{constructor(e){super(j,"exclude")}[n.$finalize](){this[n.$content]=this[n.$content].trim().split(/\s+/).filter(e=>e&&["calculate","close","enter","exit","initialize","ready","validate"].includes(e))}}class ExcludeNS extends o.StringObject{constructor(e){super(j,"excludeNS")}}class FlipLabel extends o.OptionObject{constructor(e){super(j,"flipLabel",["usePrinterSetting","on","off"])}}class FontInfo extends o.XFAObject{constructor(e){super(j,"fontInfo",!0);this.embed=null;this.map=null;this.subsetBelow=null;this.alwaysEmbed=new o.XFAObjectArray;this.defaultTypeface=new o.XFAObjectArray;this.neverEmbed=new o.XFAObjectArray}}class FormFieldFilling extends o.Option01{constructor(e){super(j,"formFieldFilling")}}class GroupParent extends o.StringObject{constructor(e){super(j,"groupParent")}}class IfEmpty extends o.OptionObject{constructor(e){super(j,"ifEmpty",["dataValue","dataGroup","ignore","remove"])}}class IncludeXDPContent extends o.StringObject{constructor(e){super(j,"includeXDPContent")}}class IncrementalLoad extends o.OptionObject{constructor(e){super(j,"incrementalLoad",["none","forwardOnly"])}}class IncrementalMerge extends o.Option01{constructor(e){super(j,"incrementalMerge")}}class Interactive extends o.Option01{constructor(e){super(j,"interactive")}}class Jog extends o.OptionObject{constructor(e){super(j,"jog",["usePrinterSetting","none","pageSet"])}}class LabelPrinter extends o.XFAObject{constructor(e){super(j,"labelPrinter",!0);this.name=(0,l.getStringOption)(e.name,["zpl","dpl","ipl","tcpl"]);this.batchOutput=null;this.flipLabel=null;this.fontInfo=null;this.xdc=null}}class Layout extends o.OptionObject{constructor(e){super(j,"layout",["paginate","panel"])}}class Level extends o.IntegerObject{constructor(e){super(j,"level",0,e=>e>0)}}class Linearized extends o.Option01{constructor(e){super(j,"linearized")}}class Locale extends o.StringObject{constructor(e){super(j,"locale")}}class LocaleSet extends o.StringObject{constructor(e){super(j,"localeSet")}}class Log extends o.XFAObject{constructor(e){super(j,"log",!0);this.mode=null;this.threshold=null;this.to=null;this.uri=null}}class MapElement extends o.XFAObject{constructor(e){super(j,"map",!0);this.equate=new o.XFAObjectArray;this.equateRange=new o.XFAObjectArray}}class MediumInfo extends o.XFAObject{constructor(e){super(j,"mediumInfo",!0);this.map=null}}class config_Message extends o.XFAObject{constructor(e){super(j,"message",!0);this.msgId=null;this.severity=null}}class Messaging extends o.XFAObject{constructor(e){super(j,"messaging",!0);this.message=new o.XFAObjectArray}}class Mode extends o.OptionObject{constructor(e){super(j,"mode",["append","overwrite"])}}class ModifyAnnots extends o.Option01{constructor(e){super(j,"modifyAnnots")}}class MsgId extends o.IntegerObject{constructor(e){super(j,"msgId",1,e=>e>=1)}}class NameAttr extends o.StringObject{constructor(e){super(j,"nameAttr")}}class NeverEmbed extends o.ContentObject{constructor(e){super(j,"neverEmbed")}}class NumberOfCopies extends o.IntegerObject{constructor(e){super(j,"numberOfCopies",null,e=>e>=2&&e<=5)}}class OpenAction extends o.XFAObject{constructor(e){super(j,"openAction",!0);this.destination=null}}class Output extends o.XFAObject{constructor(e){super(j,"output",!0);this.to=null;this.type=null;this.uri=null}}class OutputBin extends o.StringObject{constructor(e){super(j,"outputBin")}}class OutputXSL extends o.XFAObject{constructor(e){super(j,"outputXSL",!0);this.uri=null}}class Overprint extends o.OptionObject{constructor(e){super(j,"overprint",["none","both","draw","field"])}}class Packets extends o.StringObject{constructor(e){super(j,"packets")}[n.$finalize](){"*"!==this[n.$content]&&(this[n.$content]=this[n.$content].trim().split(/\s+/).filter(e=>["config","datasets","template","xfdf","xslt"].includes(e)))}}class PageOffset extends o.XFAObject{constructor(e){super(j,"pageOffset");this.x=(0,l.getInteger)({data:e.x,defaultValue:"useXDCSetting",validate:e=>!0});this.y=(0,l.getInteger)({data:e.y,defaultValue:"useXDCSetting",validate:e=>!0})}}class PageRange extends o.StringObject{constructor(e){super(j,"pageRange")}[n.$finalize](){const e=this[n.$content].trim().split(/\s+/).map(e=>parseInt(e,10)),t=[];for(let a=0,n=e.length;a<n;a+=2)t.push(e.slice(a,a+2));this[n.$content]=t}}class Pagination extends o.OptionObject{constructor(e){super(j,"pagination",["simplex","duplexShortEdge","duplexLongEdge"])}}class PaginationOverride extends o.OptionObject{constructor(e){super(j,"paginationOverride",["none","forceDuplex","forceDuplexLongEdge","forceDuplexShortEdge","forceSimplex"])}}class Part extends o.IntegerObject{constructor(e){super(j,"part",1,e=>!1)}}class Pcl extends o.XFAObject{constructor(e){super(j,"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 Pdf extends o.XFAObject{constructor(e){super(j,"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 Pdfa extends o.XFAObject{constructor(e){super(j,"pdfa",!0);this.amd=null;this.conformance=null;this.includeXDPContent=null;this.part=null}}class Permissions extends o.XFAObject{constructor(e){super(j,"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 PickTrayByPDFSize extends o.Option01{constructor(e){super(j,"pickTrayByPDFSize")}}class config_Picture extends o.StringObject{constructor(e){super(j,"picture")}}class PlaintextMetadata extends o.Option01{constructor(e){super(j,"plaintextMetadata")}}class Presence extends o.OptionObject{constructor(e){super(j,"presence",["preserve","dissolve","dissolveStructure","ignore","remove"])}}class Present extends o.XFAObject{constructor(e){super(j,"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 o.XFAObjectArray;this.labelPrinter=new o.XFAObjectArray;this.pcl=new o.XFAObjectArray;this.pdf=new o.XFAObjectArray;this.ps=new o.XFAObjectArray;this.submitUrl=new o.XFAObjectArray;this.webClient=new o.XFAObjectArray;this.zpl=new o.XFAObjectArray}}class Print extends o.Option01{constructor(e){super(j,"print")}}class PrintHighQuality extends o.Option01{constructor(e){super(j,"printHighQuality")}}class PrintScaling extends o.OptionObject{constructor(e){super(j,"printScaling",["appdefault","noScaling"])}}class PrinterName extends o.StringObject{constructor(e){super(j,"printerName")}}class Producer extends o.StringObject{constructor(e){super(j,"producer")}}class Ps extends o.XFAObject{constructor(e){super(j,"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 Range extends o.ContentObject{constructor(e){super(j,"range")}[n.$finalize](){this[n.$content]=this[n.$content].split(",",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]);return e})}}class Record extends o.ContentObject{constructor(e){super(j,"record")}[n.$finalize](){this[n.$content]=this[n.$content].trim();const e=parseInt(this[n.$content],10);!isNaN(e)&&e>=0&&(this[n.$content]=e)}}class Relevant extends o.ContentObject{constructor(e){super(j,"relevant")}[n.$finalize](){this[n.$content]=this[n.$content].trim().split(/\s+/)}}class Rename extends o.ContentObject{constructor(e){super(j,"rename")}[n.$finalize](){this[n.$content]=this[n.$content].trim();(this[n.$content].toLowerCase().startsWith("xml")||/[\p{L}_][\p{L}\d._\p{M}-]*/u.test(this[n.$content]))&&(0,c.warn)("XFA - Rename: invalid XFA name")}}class RenderPolicy extends o.OptionObject{constructor(e){super(j,"renderPolicy",["server","client"])}}class RunScripts extends o.OptionObject{constructor(e){super(j,"runScripts",["both","client","none","server"])}}class config_Script extends o.XFAObject{constructor(e){super(j,"script",!0);this.currentPage=null;this.exclude=null;this.runScripts=null}}class ScriptModel extends o.OptionObject{constructor(e){super(j,"scriptModel",["XFA","none"])}}class Severity extends o.OptionObject{constructor(e){super(j,"severity",["ignore","error","information","trace","warning"])}}class SilentPrint extends o.XFAObject{constructor(e){super(j,"silentPrint",!0);this.addSilentPrint=null;this.printerName=null}}class Staple extends o.XFAObject{constructor(e){super(j,"staple");this.mode=(0,l.getStringOption)(e.mode,["usePrinterSetting","on","off"])}}class StartNode extends o.StringObject{constructor(e){super(j,"startNode")}}class StartPage extends o.IntegerObject{constructor(e){super(j,"startPage",0,e=>!0)}}class SubmitFormat extends o.OptionObject{constructor(e){super(j,"submitFormat",["html","delegate","fdf","xml","pdf"])}}class SubmitUrl extends o.StringObject{constructor(e){super(j,"submitUrl")}}class SubsetBelow extends o.IntegerObject{constructor(e){super(j,"subsetBelow",100,e=>e>=0&&e<=100)}}class SuppressBanner extends o.Option01{constructor(e){super(j,"suppressBanner")}}class Tagged extends o.Option01{constructor(e){super(j,"tagged")}}class config_Template extends o.XFAObject{constructor(e){super(j,"template",!0);this.base=null;this.relevant=null;this.startPage=null;this.uri=null;this.xsl=null}}class Threshold extends o.OptionObject{constructor(e){super(j,"threshold",["trace","error","information","warning"])}}class To extends o.OptionObject{constructor(e){super(j,"to",["null","memory","stderr","stdout","system","uri"])}}class TemplateCache extends o.XFAObject{constructor(e){super(j,"templateCache");this.maxEntries=(0,l.getInteger)({data:e.maxEntries,defaultValue:5,validate:e=>e>=0})}}class Trace extends o.XFAObject{constructor(e){super(j,"trace",!0);this.area=new o.XFAObjectArray}}class Transform extends o.XFAObject{constructor(e){super(j,"transform",!0);this.groupParent=null;this.ifEmpty=null;this.nameAttr=null;this.picture=null;this.presence=null;this.rename=null;this.whitespace=null}}class Type extends o.OptionObject{constructor(e){super(j,"type",["none","ascii85","asciiHex","ccittfax","flate","lzw","runLength","native","xdp","mergedXDP"])}}class Uri extends o.StringObject{constructor(e){super(j,"uri")}}class config_Validate extends o.OptionObject{constructor(e){super(j,"validate",["preSubmit","prePrint","preExecute","preSave"])}}class ValidateApprovalSignatures extends o.ContentObject{constructor(e){super(j,"validateApprovalSignatures")}[n.$finalize](){this[n.$content]=this[n.$content].trim().split(/\s+/).filter(e=>["docReady","postSign"].includes(e))}}class ValidationMessaging extends o.OptionObject{constructor(e){super(j,"validationMessaging",["allMessagesIndividually","allMessagesTogether","firstMessageOnly","noMessages"])}}class Version extends o.OptionObject{constructor(e){super(j,"version",["1.7","1.6","1.5","1.4","1.3","1.2"])}}class VersionControl extends o.XFAObject{constructor(e){super(j,"VersionControl");this.outputBelow=(0,l.getStringOption)(e.outputBelow,["warn","error","update"]);this.sourceAbove=(0,l.getStringOption)(e.sourceAbove,["warn","error"]);this.sourceBelow=(0,l.getStringOption)(e.sourceBelow,["update","maintain"])}}class ViewerPreferences extends o.XFAObject{constructor(e){super(j,"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 WebClient extends o.XFAObject{constructor(e){super(j,"webClient",!0);this.name=e.name?e.name.trim():"";this.fontInfo=null;this.xdc=null}}class Whitespace extends o.OptionObject{constructor(e){super(j,"whitespace",["preserve","ltrim","normalize","rtrim","trim"])}}class Window extends o.ContentObject{constructor(e){super(j,"window")}[n.$finalize](){const e=this[n.$content].split(",",2).map(e=>parseInt(e.trim(),10));if(e.some(e=>isNaN(e)))this[n.$content]=[0,0];else{1===e.length&&e.push(e[0]);this[n.$content]=e}}}class Xdc extends o.XFAObject{constructor(e){super(j,"xdc",!0);this.uri=new o.XFAObjectArray;this.xsl=new o.XFAObjectArray}}class Xdp extends o.XFAObject{constructor(e){super(j,"xdp",!0);this.packets=null}}class Xsl extends o.XFAObject{constructor(e){super(j,"xsl",!0);this.debug=null;this.uri=null}}class Zpl extends o.XFAObject{constructor(e){super(j,"zpl",!0);this.name=e.name?e.name.trim():"";this.batchOutput=null;this.flipLabel=null;this.fontInfo=null;this.xdc=null}}class ConfigNamespace{static[s.$buildXFAObject](e,t){return Object.hasOwn(ConfigNamespace,e)?ConfigNamespace[e](t):void 0}static acrobat(e){return new Acrobat(e)}static acrobat7(e){return new Acrobat7(e)}static ADBE_JSConsole(e){return new ADBE_JSConsole(e)}static ADBE_JSDebugger(e){return new ADBE_JSDebugger(e)}static addSilentPrint(e){return new AddSilentPrint(e)}static addViewerPreferences(e){return new AddViewerPreferences(e)}static adjustData(e){return new AdjustData(e)}static adobeExtensionLevel(e){return new AdobeExtensionLevel(e)}static agent(e){return new Agent(e)}static alwaysEmbed(e){return new AlwaysEmbed(e)}static amd(e){return new Amd(e)}static area(e){return new config_Area(e)}static attributes(e){return new Attributes(e)}static autoSave(e){return new AutoSave(e)}static base(e){return new Base(e)}static batchOutput(e){return new BatchOutput(e)}static behaviorOverride(e){return new BehaviorOverride(e)}static cache(e){return new Cache(e)}static change(e){return new Change(e)}static common(e){return new Common(e)}static compress(e){return new Compress(e)}static compressLogicalStructure(e){return new CompressLogicalStructure(e)}static compressObjectStream(e){return new CompressObjectStream(e)}static compression(e){return new Compression(e)}static config(e){return new Config(e)}static conformance(e){return new Conformance(e)}static contentCopy(e){return new ContentCopy(e)}static copies(e){return new Copies(e)}static creator(e){return new Creator(e)}static currentPage(e){return new CurrentPage(e)}static data(e){return new Data(e)}static debug(e){return new Debug(e)}static defaultTypeface(e){return new DefaultTypeface(e)}static destination(e){return new Destination(e)}static documentAssembly(e){return new DocumentAssembly(e)}static driver(e){return new Driver(e)}static duplexOption(e){return new DuplexOption(e)}static dynamicRender(e){return new DynamicRender(e)}static embed(e){return new Embed(e)}static encrypt(e){return new config_Encrypt(e)}static encryption(e){return new config_Encryption(e)}static encryptionLevel(e){return new EncryptionLevel(e)}static enforce(e){return new Enforce(e)}static equate(e){return new Equate(e)}static equateRange(e){return new EquateRange(e)}static exclude(e){return new Exclude(e)}static excludeNS(e){return new ExcludeNS(e)}static flipLabel(e){return new FlipLabel(e)}static fontInfo(e){return new FontInfo(e)}static formFieldFilling(e){return new FormFieldFilling(e)}static groupParent(e){return new GroupParent(e)}static ifEmpty(e){return new IfEmpty(e)}static includeXDPContent(e){return new IncludeXDPContent(e)}static incrementalLoad(e){return new IncrementalLoad(e)}static incrementalMerge(e){return new IncrementalMerge(e)}static interactive(e){return new Interactive(e)}static jog(e){return new Jog(e)}static labelPrinter(e){return new LabelPrinter(e)}static layout(e){return new Layout(e)}static level(e){return new Level(e)}static linearized(e){return new Linearized(e)}static locale(e){return new Locale(e)}static localeSet(e){return new LocaleSet(e)}static log(e){return new Log(e)}static map(e){return new MapElement(e)}static mediumInfo(e){return new MediumInfo(e)}static message(e){return new config_Message(e)}static messaging(e){return new Messaging(e)}static mode(e){return new Mode(e)}static modifyAnnots(e){return new ModifyAnnots(e)}static msgId(e){return new MsgId(e)}static nameAttr(e){return new NameAttr(e)}static neverEmbed(e){return new NeverEmbed(e)}static numberOfCopies(e){return new NumberOfCopies(e)}static openAction(e){return new OpenAction(e)}static output(e){return new Output(e)}static outputBin(e){return new OutputBin(e)}static outputXSL(e){return new OutputXSL(e)}static overprint(e){return new Overprint(e)}static packets(e){return new Packets(e)}static pageOffset(e){return new PageOffset(e)}static pageRange(e){return new PageRange(e)}static pagination(e){return new Pagination(e)}static paginationOverride(e){return new PaginationOverride(e)}static part(e){return new Part(e)}static pcl(e){return new Pcl(e)}static pdf(e){return new Pdf(e)}static pdfa(e){return new Pdfa(e)}static permissions(e){return new Permissions(e)}static pickTrayByPDFSize(e){return new PickTrayByPDFSize(e)}static picture(e){return new config_Picture(e)}static plaintextMetadata(e){return new PlaintextMetadata(e)}static presence(e){return new Presence(e)}static present(e){return new Present(e)}static print(e){return new Print(e)}static printHighQuality(e){return new PrintHighQuality(e)}static printScaling(e){return new PrintScaling(e)}static printerName(e){return new PrinterName(e)}static producer(e){return new Producer(e)}static ps(e){return new Ps(e)}static range(e){return new Range(e)}static record(e){return new Record(e)}static relevant(e){return new Relevant(e)}static rename(e){return new Rename(e)}static renderPolicy(e){return new RenderPolicy(e)}static runScripts(e){return new RunScripts(e)}static script(e){return new config_Script(e)}static scriptModel(e){return new ScriptModel(e)}static severity(e){return new Severity(e)}static silentPrint(e){return new SilentPrint(e)}static staple(e){return new Staple(e)}static startNode(e){return new StartNode(e)}static startPage(e){return new StartPage(e)}static submitFormat(e){return new SubmitFormat(e)}static submitUrl(e){return new SubmitUrl(e)}static subsetBelow(e){return new SubsetBelow(e)}static suppressBanner(e){return new SuppressBanner(e)}static tagged(e){return new Tagged(e)}static template(e){return new config_Template(e)}static templateCache(e){return new TemplateCache(e)}static threshold(e){return new Threshold(e)}static to(e){return new To(e)}static trace(e){return new Trace(e)}static transform(e){return new Transform(e)}static type(e){return new Type(e)}static uri(e){return new Uri(e)}static validate(e){return new config_Validate(e)}static validateApprovalSignatures(e){return new ValidateApprovalSignatures(e)}static validationMessaging(e){return new ValidationMessaging(e)}static version(e){return new Version(e)}static versionControl(e){return new VersionControl(e)}static viewerPreferences(e){return new ViewerPreferences(e)}static webClient(e){return new WebClient(e)}static whitespace(e){return new Whitespace(e)}static window(e){return new Window(e)}static xdc(e){return new Xdc(e)}static xdp(e){return new Xdp(e)}static xsl(e){return new Xsl(e)}static zpl(e){return new Zpl(e)}}const y=s.NamespaceIds.connectionSet.id;class ConnectionSet extends o.XFAObject{constructor(e){super(y,"connectionSet",!0);this.wsdlConnection=new o.XFAObjectArray;this.xmlConnection=new o.XFAObjectArray;this.xsdConnection=new o.XFAObjectArray}}class EffectiveInputPolicy extends o.XFAObject{constructor(e){super(y,"effectiveInputPolicy");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class EffectiveOutputPolicy extends o.XFAObject{constructor(e){super(y,"effectiveOutputPolicy");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class Operation extends o.StringObject{constructor(e){super(y,"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 RootElement extends o.StringObject{constructor(e){super(y,"rootElement");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class SoapAction extends o.StringObject{constructor(e){super(y,"soapAction");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class SoapAddress extends o.StringObject{constructor(e){super(y,"soapAddress");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class connection_set_Uri extends o.StringObject{constructor(e){super(y,"uri");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class WsdlAddress extends o.StringObject{constructor(e){super(y,"wsdlAddress");this.id=e.id||"";this.name=e.name||"";this.use=e.use||"";this.usehref=e.usehref||""}}class WsdlConnection extends o.XFAObject{constructor(e){super(y,"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 XmlConnection extends o.XFAObject{constructor(e){super(y,"xmlConnection",!0);this.dataDescription=e.dataDescription||"";this.name=e.name||"";this.uri=null}}class XsdConnection extends o.XFAObject{constructor(e){super(y,"xsdConnection",!0);this.dataDescription=e.dataDescription||"";this.name=e.name||"";this.rootElement=null;this.uri=null}}class ConnectionSetNamespace{static[s.$buildXFAObject](e,t){return Object.hasOwn(ConnectionSetNamespace,e)?ConnectionSetNamespace[e](t):void 0}static connectionSet(e){return new ConnectionSet(e)}static effectiveInputPolicy(e){return new EffectiveInputPolicy(e)}static effectiveOutputPolicy(e){return new EffectiveOutputPolicy(e)}static operation(e){return new Operation(e)}static rootElement(e){return new RootElement(e)}static soapAction(e){return new SoapAction(e)}static soapAddress(e){return new SoapAddress(e)}static uri(e){return new connection_set_Uri(e)}static wsdlAddress(e){return new WsdlAddress(e)}static wsdlConnection(e){return new WsdlConnection(e)}static xmlConnection(e){return new XmlConnection(e)}static xsdConnection(e){return new XsdConnection(e)}}const v=s.NamespaceIds.datasets.id;class datasets_Data extends o.XmlObject{constructor(e){super(v,"data",e)}[n.$isNsAgnostic](){return!0}}class Datasets extends o.XFAObject{constructor(e){super(v,"datasets",!0);this.data=null;this.Signature=null}[n.$onChild](e){const t=e[n.$nodeName];("data"===t&&e[n.$namespaceId]===v||"Signature"===t&&e[n.$namespaceId]===s.NamespaceIds.signature.id)&&(this[t]=e);this[n.$appendChild](e)}}class DatasetsNamespace{static[s.$buildXFAObject](e,t){return Object.hasOwn(DatasetsNamespace,e)?DatasetsNamespace[e](t):void 0}static datasets(e){return new Datasets(e)}static data(e){return new datasets_Data(e)}}const k=s.NamespaceIds.localeSet.id;class CalendarSymbols extends o.XFAObject{constructor(e){super(k,"calendarSymbols",!0);this.name="gregorian";this.dayNames=new o.XFAObjectArray(2);this.eraNames=null;this.meridiemNames=null;this.monthNames=new o.XFAObjectArray(2)}}class CurrencySymbol extends o.StringObject{constructor(e){super(k,"currencySymbol");this.name=(0,l.getStringOption)(e.name,["symbol","isoname","decimal"])}}class CurrencySymbols extends o.XFAObject{constructor(e){super(k,"currencySymbols",!0);this.currencySymbol=new o.XFAObjectArray(3)}}class DatePattern extends o.StringObject{constructor(e){super(k,"datePattern");this.name=(0,l.getStringOption)(e.name,["full","long","med","short"])}}class DatePatterns extends o.XFAObject{constructor(e){super(k,"datePatterns",!0);this.datePattern=new o.XFAObjectArray(4)}}class DateTimeSymbols extends o.ContentObject{constructor(e){super(k,"dateTimeSymbols")}}class Day extends o.StringObject{constructor(e){super(k,"day")}}class DayNames extends o.XFAObject{constructor(e){super(k,"dayNames",!0);this.abbr=(0,l.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e});this.day=new o.XFAObjectArray(7)}}class Era extends o.StringObject{constructor(e){super(k,"era")}}class EraNames extends o.XFAObject{constructor(e){super(k,"eraNames",!0);this.era=new o.XFAObjectArray(2)}}class locale_set_Locale extends o.XFAObject{constructor(e){super(k,"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 locale_set_LocaleSet extends o.XFAObject{constructor(e){super(k,"localeSet",!0);this.locale=new o.XFAObjectArray}}class Meridiem extends o.StringObject{constructor(e){super(k,"meridiem")}}class MeridiemNames extends o.XFAObject{constructor(e){super(k,"meridiemNames",!0);this.meridiem=new o.XFAObjectArray(2)}}class Month extends o.StringObject{constructor(e){super(k,"month")}}class MonthNames extends o.XFAObject{constructor(e){super(k,"monthNames",!0);this.abbr=(0,l.getInteger)({data:e.abbr,defaultValue:0,validate:e=>1===e});this.month=new o.XFAObjectArray(12)}}class NumberPattern extends o.StringObject{constructor(e){super(k,"numberPattern");this.name=(0,l.getStringOption)(e.name,["full","long","med","short"])}}class NumberPatterns extends o.XFAObject{constructor(e){super(k,"numberPatterns",!0);this.numberPattern=new o.XFAObjectArray(4)}}class NumberSymbol extends o.StringObject{constructor(e){super(k,"numberSymbol");this.name=(0,l.getStringOption)(e.name,["decimal","grouping","percent","minus","zero"])}}class NumberSymbols extends o.XFAObject{constructor(e){super(k,"numberSymbols",!0);this.numberSymbol=new o.XFAObjectArray(5)}}class TimePattern extends o.StringObject{constructor(e){super(k,"timePattern");this.name=(0,l.getStringOption)(e.name,["full","long","med","short"])}}class TimePatterns extends o.XFAObject{constructor(e){super(k,"timePatterns",!0);this.timePattern=new o.XFAObjectArray(4)}}class TypeFace extends o.XFAObject{constructor(e){super(k,"typeFace",!0);this.name=""|e.name}}class TypeFaces extends o.XFAObject{constructor(e){super(k,"typeFaces",!0);this.typeFace=new o.XFAObjectArray}}class LocaleSetNamespace{static[s.$buildXFAObject](e,t){return Object.hasOwn(LocaleSetNamespace,e)?LocaleSetNamespace[e](t):void 0}static calendarSymbols(e){return new CalendarSymbols(e)}static currencySymbol(e){return new CurrencySymbol(e)}static currencySymbols(e){return new CurrencySymbols(e)}static datePattern(e){return new DatePattern(e)}static datePatterns(e){return new DatePatterns(e)}static dateTimeSymbols(e){return new DateTimeSymbols(e)}static day(e){return new Day(e)}static dayNames(e){return new DayNames(e)}static era(e){return new Era(e)}static eraNames(e){return new EraNames(e)}static locale(e){return new locale_set_Locale(e)}static localeSet(e){return new locale_set_LocaleSet(e)}static meridiem(e){return new Meridiem(e)}static meridiemNames(e){return new MeridiemNames(e)}static month(e){return new Month(e)}static monthNames(e){return new MonthNames(e)}static numberPattern(e){return new NumberPattern(e)}static numberPatterns(e){return new NumberPatterns(e)}static numberSymbol(e){return new NumberSymbol(e)}static numberSymbols(e){return new NumberSymbols(e)}static timePattern(e){return new TimePattern(e)}static timePatterns(e){return new TimePatterns(e)}static typeFace(e){return new TypeFace(e)}static typeFaces(e){return new TypeFaces(e)}}const q=s.NamespaceIds.signature.id;class signature_Signature extends o.XFAObject{constructor(e){super(q,"signature",!0)}}class SignatureNamespace{static[s.$buildXFAObject](e,t){return Object.hasOwn(SignatureNamespace,e)?SignatureNamespace[e](t):void 0}static signature(e){return new signature_Signature(e)}}const S=s.NamespaceIds.stylesheet.id;class Stylesheet extends o.XFAObject{constructor(e){super(S,"stylesheet",!0)}}class StylesheetNamespace{static[s.$buildXFAObject](e,t){return Object.hasOwn(StylesheetNamespace,e)?StylesheetNamespace[e](t):void 0}static stylesheet(e){return new Stylesheet(e)}}const _=s.NamespaceIds.xdp.id;class xdp_Xdp extends o.XFAObject{constructor(e){super(_,"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 o.XFAObjectArray;this.template=null}[n.$onChildCheck](e){const t=s.NamespaceIds[e[n.$nodeName]];return t&&e[n.$namespaceId]===t.id}}class XdpNamespace{static[s.$buildXFAObject](e,t){return Object.hasOwn(XdpNamespace,e)?XdpNamespace[e](t):void 0}static xdp(e){return new xdp_Xdp(e)}}var C=a(407);const F={config:ConfigNamespace,connection:ConnectionSetNamespace,datasets:DatasetsNamespace,localeSet:LocaleSetNamespace,signature:SignatureNamespace,stylesheet:StylesheetNamespace,template:TemplateNamespace,xdp:XdpNamespace,xhtml:C.XhtmlNamespace};var x=a(950);class XFAParser extends x.XFAParserBase{constructor(){super({namespaces:F,templateClass:Template})}}const T=[32,95,161,12,174,210,402,1,506,6,536,4,710,2,713,1,728,6,900,7,908,1,910,20,931,44,1024,96,1138,2,1168,2,7808,6,7922,2,8208,2,8211,3,8215,8,8224,3,8230,1,8240,1,8242,2,8249,2,8252,1,8254,1,8260,1,8319,1,8355,2,8359,1,8364,1,8453,1,8467,1,8470,1,8482,1,8486,1,8494,1,8539,4,8592,6,8616,1,8706,1,8710,1,8719,1,8721,2,8730,1,8734,2,8745,1,8747,1,8776,1,8800,2,8804,2,8962,1,8976,1,8992,2,9472,1,9474,1,9484,1,9488,1,9492,1,9496,1,9500,1,9508,1,9516,1,9524,1,9532,1,9552,29,9600,1,9604,1,9608,1,9612,1,9616,4,9632,2,9642,3,9650,1,9658,1,9660,1,9668,1,9674,2,9679,1,9688,2,9702,1,9786,3,9792,1,9794,1,9824,1,9827,1,9829,2,9834,3,61441,2,61445,1],O=[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],M=[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],R=[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],D=[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],H=[278,325.88,400.902,497.909,506.699,714.712,682.134,220.798,303.216,303.216,497.842,498.059,249.663,333,252.594,386.464,506.699,506.699,506.699,506.699,506.699,506.699,506.699,506.699,506.699,506.699,267.739,267.739,498.059,498.059,498.059,463.254,893.921,578.623,543.952,533.081,615.093,488.284,459.594,630.997,622.906,252.104,318.85,519.54,420.297,854.975,645.36,662.249,516.605,672.993,542.843,459.476,487.431,641.454,567.39,889.796,519.046,487.31,468.386,306.826,386.464,306.826,497.792,497.909,291.009,478.872,525.248,422.85,525.248,497.42,305.361,470.576,525.248,229.319,239.076,454.59,229.319,798.822,525.248,527.199,525.248,525.248,348.624,391.115,335.162,525.248,451.66,714.679,433.105,452.635,395.02,314.468,460.866,314.468,498.059,325.677,497.909,506.699,497.909,506.699,498.495,497.909,392.57,834.682,402.216,512.065,498.059,506.96,393.869,338.948,498.201,335.93,334.465,291.984,576,585.819,278,307.123,246.087,422.093,512.065,636.242,671.403,675.306,463.498,578.623,578.623,578.623,578.623,578.623,578.623,763.18,533.081,488.284,488.284,488.284,488.284,252.104,252.104,252.104,252.104,624.364,645.36,662.249,662.249,662.249,662.249,662.249,498.059,663.72,641.454,641.454,641.454,641.454,487.31,516.605,527.482,478.872,478.872,478.872,478.872,478.872,478.872,772.808,422.85,497.42,497.42,497.42,497.42,229.631,229.631,229.631,229.631,525.248,525.248,527.199,527.199,527.199,527.199,527.199,498.201,529.438,525.248,525.248,525.248,525.248,452.635,525.248,452.635,578.623,478.872,578.623,478.872,578.623,478.872,533.081,422.85,533.081,422.85,533.081,422.85,533.081,422.85,615.093,568.592,624.364,551.608,488.284,497.42,488.284,497.42,488.284,497.42,488.284,497.42,488.284,497.42,630.997,470.576,630.997,470.576,630.997,470.576,778,556,622.906,525.248,656.096,532.57,252.104,229.631,252.104,229.631,252.104,229.631,252.104,229.319,252.104,229.631,571.396,468.913,318.85,239.076,667,500,454.59,420.297,229.319,556,222,422.738,264.12,545.747,373.552,429.571,247.372,645.36,525.248,722,556,645.36,525.248,579.097,628.294,525.248,662.249,527.199,662.249,527.199,662.249,527.199,866.7,849.751,542.843,348.624,722,333,542.843,348.624,459.476,391.115,459.476,391.115,459.476,391.115,459.476,391.115,611,278,487.431,345.705,487.431,342.004,641.454,525.248,641.454,525.248,641.454,525.248,641.454,525.248,641.454,525.248,641.454,525.248,889.796,714.679,487.31,452.635,487.31,468.386,395.02,468.386,395.02,468.386,395.02,242.493,305.094,578.623,478.872,763.18,772.808,663.72,529.438,667,500,487.431,335.162,395.011,395.011,333,380.852,225.581,320.792,312.004,450.186,469.227,316.886,494.129,578.196,252.594,488.173,623.128,252.092,661.755,487.034,663.67,274.206,578.623,543.952,415.691,564.48,488.284,468.386,622.906,662.249,252.104,519.54,572.783,854.975,645.36,491.77,662.249,622.906,516.605,458.377,487.431,487.31,759.417,519.046,749.596,664.456,252.104,487.31,567.261,455.772,536.963,274.206,541.628,567.261,531.07,446.29,523.775,455.772,347.72,536.963,531.592,274.206,454.59,462.89,549.642,448.73,376.181,527.199,552.78,508.925,410.703,531.576,387.187,541.628,650.929,426.347,707.631,696.504,274.206,541.628,527.199,541.628,696.504,488.284,667,865,542,719,667,278,278,500,1057,1010,854,583,641.454,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,497.42,556,556,365,510,500,222,278,222,906,812,556,438,540.922,500,552,778,556,489,411,889.796,714.679,889.796,714.679,889.796,714.679,487.31,452.635,333,333,497.909,905.27,1e3,497.827,249.324,249.324,249.324,249.324,418.448,418.448,418.448,497.909,497.909,497.907,690.43,1038.09,188,354,338.861,338.861,557.615,498.035,336.442,362.558,459.345,506.699,922.089,506.699,885,323,1073,705.08,768,738.648,665.54,704.113,704.113,645.516,905.27,905.275,905.27,905.275,1288.09,777.345,472.17,532.562,612,799.084,541.096,498.059,498.201,853.162,683.587,701.902,365.823,498.201,498.201,497.625,498.201,498.201,875.48,498.059,540.036,540.036,499.65,500,499.65,499.65,499.65,499.65,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,353.511,353.511,1e3,990,990,990,990,510.598,549.803,604,604,604,353.511,1021,1052,917,750,750,531,656,594,510,500,750,750,529.295,529.295,333],N=[278,325.677,438.365,497.909,506.699,728.873,704.427,233.602,311.515,311.515,497.842,498.059,257.967,333,267.253,429.946,506.699,506.699,506.699,506.699,506.699,506.699,506.699,506.699,506.699,506.699,275.874,275.874,498.059,498.059,498.059,463.498,898.346,605.816,560.416,529.175,630.227,487.797,459.105,637.345,630.71,266.763,330.965,546.749,422.965,874.017,658.536,676.417,532.233,686.18,562.857,472.663,495.246,652.681,591.316,906.4,550.789,519.54,478.15,324.698,429.946,324.698,498.059,497.909,300.286,493.517,536.764,418.34,536.764,503.28,316.4,474.246,536.764,245.755,255.526,479.85,245.755,813.328,536.764,537.741,536.764,536.764,355.324,398.819,346.673,536.764,473.017,745.277,459.345,473.501,397.46,343.608,475.462,343.608,498.059,325.677,497.909,506.699,497.909,506.699,498.428,497.909,414.542,834.682,415.884,538.425,498.059,506.96,389.96,342.368,498.201,337.882,335.93,300.776,576,597.494,278,303.216,252.434,434.781,538.425,657.726,690.927,701.669,463.498,605.816,605.816,605.816,605.816,605.816,605.816,775.39,529.175,487.797,487.797,487.797,487.797,266.763,266.763,266.763,266.763,639.013,658.536,676.417,676.417,676.417,676.417,676.417,498.059,680.812,652.681,652.681,652.681,652.681,519.54,532.233,554.831,493.517,493.517,493.517,493.517,493.517,493.517,774.764,418.34,503.28,503.28,503.28,503.28,245.755,245.755,245.755,245.755,536.764,536.764,537.741,537.741,537.741,537.741,537.741,498.201,544.089,536.764,536.764,536.764,536.764,473.501,536.764,473.501,605.816,493.517,605.816,493.517,605.816,493.517,529.175,418.34,529.175,418.34,529.175,418.34,529.175,418.34,630.227,596.885,639.013,568.994,487.797,503.28,487.797,503.28,487.797,503.28,487.797,503.28,487.797,503.28,637.345,474.246,637.345,474.246,637.345,474.246,778,611,630.71,536.764,657.561,547.505,266.763,245.755,266.763,245.755,266.763,245.755,266.763,245.755,266.763,245.755,598.398,501.329,330.965,255.526,722,556,479.85,422.965,245.755,611,278,430.291,305.952,561.668,422.358,432.729,263.83,658.536,536.764,722,611,658.536,536.764,621.638,640.983,536.764,676.417,537.741,676.417,537.741,676.417,537.741,874.02,842.907,562.857,355.324,722,389,562.857,355.324,472.663,398.819,472.663,398.819,472.663,398.819,472.663,398.819,611,333,495.246,363.278,495.246,354.485,652.681,536.764,652.681,536.764,652.681,536.764,652.681,536.764,652.681,536.764,652.681,536.764,906.4,745.277,519.54,473.501,519.54,478.15,397.46,478.15,397.46,478.15,397.46,258.457,316.32,605.816,493.517,775.39,774.764,680.812,544.089,667,556,495.246,346.673,401.358,401.358,333,384.758,235.344,327.629,315.421,444.325,485.827,316.886,494.309,605.816,267.572,487.78,631.029,266.81,676.508,519.389,680.749,286.307,605.816,560.416,409.618,577.839,487.797,478.15,630.71,676.417,266.763,546.749,593.757,874.017,658.536,492.531,676.417,630.71,532.233,469.65,495.246,519.54,801.46,550.789,807.536,680.866,266.763,519.54,591.064,457.346,544.089,286.307,548.308,591.064,545.096,467.157,532.323,457.895,363.901,544.089,545.398,286.307,480.31,486.194,563.646,471.06,384.983,537.741,579.387,530.57,406.723,544.368,392.324,548.308,698.891,450.933,737.383,718.005,286.307,548.308,537.741,548.308,718.005,487.797,669,885,567,711,667,278,276,556,1094,1062,875,610,651.706,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,503.28,556,611,417,552,556,278,281,278,969,906,611,500,556.87,556,604,778,611,487,447,906.4,745.277,906.4,745.277,906.4,745.277,519.54,473.501,333,333,497.909,905.27,1e3,498.804,257.967,257.967,257.967,257.967,435.06,435.06,435.06,497.909,497.909,497.907,711.43,1061.52,240,479,344.229,344.229,586.913,498.035,380.877,371.587,463.737,506.699,920.131,506.699,885,489,1115,720.21,768,738.648,696.298,738.299,738.299,679.702,905.27,905.275,905.27,905.275,1310.06,768.555,472.17,536.958,612,781.998,550.379,498.059,498.201,838.017,683.587,701.495,375.591,498.201,498.201,497.625,498.201,498.201,875.48,498.059,540.036,540.036,499.65,500,499.65,499.65,499.65,499.65,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,353.511,353.511,1e3,990,990,990,990,533.54,549.803,604,604,604,353.511,1021,1052,917,750,750,531,656,594,510,500,750,750,554.342,554.342,333],E=[278,325.88,400.902,497.909,506.699,714.712,682.134,220.798,303.216,303.216,497.842,498.059,249.663,333,252.594,387.93,506.699,506.699,506.699,506.699,506.699,506.699,506.699,506.699,506.699,506.699,267.739,267.739,498.059,498.059,498.059,463.254,893.921,578.623,543.952,522.338,615.093,488.284,459.594,630.997,622.906,252.104,318.85,519.54,420.297,854.975,644.378,654.438,516.605,664.21,542.843,452.153,487.431,641.454,567.39,890.277,519.046,487.31,468.386,306.826,384.51,306.826,497.792,497.909,291.009,514.022,514.022,416.015,514.022,477.409,305.361,514.022,514.022,229.319,239.076,454.59,229.319,791.008,514.022,513.043,514.022,514.022,342.767,389.16,335.162,514.022,445.8,714.679,433.105,447.265,395.02,314.468,460.866,314.468,498.059,325.677,497.909,506.699,497.909,506.699,498.495,497.909,392.57,834.682,430.528,512.065,498.059,506.96,393.869,338.948,498.201,335.93,334.465,291.984,576,585.819,278,307.123,246.087,422.093,512.065,636.242,671.403,675.306,463.498,578.623,578.623,578.623,578.623,578.623,578.623,763.18,522.338,488.284,488.284,488.284,488.284,252.104,252.104,252.104,252.104,624.364,644.378,654.438,654.438,654.438,654.438,654.438,498.059,657.853,641.454,641.454,641.454,641.454,487.31,516.605,527.482,514.022,514.022,514.022,514.022,514.022,514.022,754.254,416.015,477.409,477.409,477.409,477.409,229.631,229.631,229.631,229.631,525.248,514.022,513.043,513.043,513.043,513.043,513.043,498.201,529.438,514.022,514.022,514.022,514.022,447.265,514.022,447.265,578.623,514.022,578.623,514.022,578.623,514.022,522.338,416.015,522.338,416.015,522.338,416.015,522.338,416.015,615.093,554.688,624.364,550.629,488.284,477.409,488.284,477.409,488.284,477.409,488.284,477.409,488.284,477.409,630.997,514.022,630.997,514.022,630.997,514.022,778,556,622.906,514.022,656.096,520.366,252.104,229.631,252.104,229.631,252.104,229.631,252.104,229.319,252.104,229.631,570.978,468.913,318.85,239.076,667,500,454.59,420.297,229.319,556,222,422.738,263.438,545.747,373.628,429.571,247.372,644.378,514.022,722,556,644.378,514.022,569.084,626.827,514.022,654.438,513.043,654.438,513.043,654.438,513.043,866.7,814.587,542.843,342.767,722,333,542.843,342.767,452.153,389.16,452.153,389.16,452.153,389.16,452.153,389.16,611,278,487.431,345.699,487.431,342.004,641.454,514.022,641.454,514.022,641.454,514.022,641.454,514.022,641.454,514.022,641.454,514.022,890.277,714.679,487.31,447.265,487.31,468.386,395.02,468.386,395.02,468.386,395.02,242.493,305.094,578.623,514.022,763.18,754.254,657.853,529.438,667,500,487.431,335.162,395.011,395.011,333,380.852,223.14,320.792,312.004,450.186,469.227,316.886,494.129,578.623,252.594,488.549,622.91,252.165,654.343,487.177,664.144,274.206,578.623,543.952,415.302,564.539,488.284,468.386,622.906,656.391,252.104,519.54,572.76,854.975,644.378,491.365,654.438,623.384,516.605,458.796,487.431,487.31,759.845,519.046,750.393,664.285,252.104,487.31,564.631,455.098,525.224,274.206,541.695,564.631,527.564,445.8,523.752,455.098,347.37,525.224,558.097,274.206,454.59,462.716,538.229,448.73,376.164,513.043,552.797,509.007,410.369,531.713,387.184,541.695,653.467,426.35,707.965,696.457,274.206,541.695,513.043,541.695,696.457,488.284,667,843,544,708,667,278,278,500,1066,982,844,589,641.305,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,477.409,556,556,378,496,500,222,222,222,910,828,556,472,513.771,500,556,778,556,492,339,890.277,714.679,890.277,714.679,890.277,714.679,487.31,447.265,333,333,497.909,905.27,1e3,497.827,249.324,249.324,249.324,249.324,418.448,418.448,418.448,497.909,497.909,497.907,689.94,1038.09,188,354,338.861,338.861,557.615,498.035,336.442,357.182,459.345,506.699,912.801,506.699,885,323,1083,705.08,768,738.648,665.54,704.113,704.113,645.516,905.72,905.275,905.675,905.275,1288.09,777.345,472.17,532.562,612,799.084,541.096,498.059,498.201,853.162,683.587,701.902,365.823,498.201,498.201,498.059,498.201,498.201,875.48,498.059,540.036,540.036,499.65,500,499.65,499.65,499.65,499.65,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,353.511,353.511,1e3,990,990,990,990,510.598,549.803,604,604,604,353.511,1021,1052,917,750,750,531,656,594,510,500,750,750,529.295,529.295,333],z=[278,325.677,438.365,497.909,506.699,728.873,704.427,233.602,311.515,311.515,497.842,498.059,257.967,333,267.253,434.344,506.699,506.699,506.699,506.699,506.699,506.699,506.699,506.699,506.699,506.699,275.874,275.874,498.059,498.059,498.059,463.498,898.346,605.816,560.416,518.432,630.227,487.797,459.105,637.345,630.71,266.763,330.965,546.749,422.965,874.017,656.096,668.598,532.233,677.389,562.857,465.339,495.246,652.681,591.316,906.882,550.789,519.54,478.15,324.698,425.062,324.698,498.059,497.909,300.286,527.688,527.971,411.507,527.971,491.076,316.4,527.971,527.482,245.755,255.526,479.85,245.755,803.567,527.482,527.482,527.971,527.971,351.905,393.937,346.673,527.482,469.108,745.277,459.345,470.087,397.46,343.608,475.462,343.608,498.059,325.677,497.909,506.699,497.909,506.699,498.428,497.909,414.542,834.682,440.777,538.425,498.059,506.96,389.96,342.368,498.201,337.882,335.93,300.776,576,597.494,278,303.216,252.434,434.781,538.425,657.726,690.927,701.669,463.498,605.816,605.816,605.816,605.816,605.816,605.816,775.39,518.432,487.797,487.797,487.797,487.797,266.763,266.763,266.763,266.763,639.013,656.096,668.598,668.598,668.598,668.598,668.598,498.059,677.389,652.681,652.681,652.681,652.681,519.54,532.233,554.831,527.688,527.688,527.688,527.688,527.688,527.688,763.535,411.507,491.076,491.076,491.076,491.076,245.755,245.755,245.755,245.755,536.764,527.482,527.482,527.482,527.482,527.482,527.482,498.201,544.089,527.482,527.482,527.482,527.482,470.087,527.971,470.087,605.816,527.688,605.816,527.688,605.816,527.688,518.432,411.507,518.432,411.507,518.432,411.507,518.432,411.507,630.227,588.581,639.013,566.556,487.797,491.076,487.797,491.076,487.797,491.076,487.797,491.076,487.797,491.076,637.345,527.971,637.345,527.971,637.345,527.971,778,611,630.71,527.482,657.561,536.275,266.763,245.755,266.763,245.755,266.763,245.755,266.763,245.755,266.763,245.755,597.972,501.329,330.965,255.526,722,556,479.85,422.965,245.755,611,278,430.291,306.156,561.668,422.358,432.729,263.83,656.096,527.482,722,611,656.096,527.482,615.294,637.079,527.482,668.598,527.482,668.598,527.482,668.598,527.482,874.02,817.023,562.857,351.905,722,389,562.857,351.905,465.339,393.937,465.339,393.937,465.339,393.937,465.339,393.937,611,333,495.246,363.278,495.246,354.485,652.681,527.482,652.681,527.482,652.681,527.482,652.681,527.482,652.681,527.482,652.681,527.482,906.882,745.277,519.54,470.087,519.54,478.15,397.46,478.15,397.46,478.15,397.46,258.457,316.32,605.816,527.688,775.39,763.535,677.389,544.089,667,556,495.246,346.673,401.358,401.358,333,384.758,233.393,327.629,315.421,444.325,485.827,316.886,494.129,605.816,267.572,487.788,631.029,266.521,668.271,519.433,680.531,286.307,605.816,560.416,409.761,577.302,487.797,478.15,630.71,672.511,266.763,546.749,593.757,874.017,656.096,492.021,668.598,631.057,532.233,469.463,495.246,519.54,801.014,550.789,807.993,680.868,266.763,519.54,584.362,457.981,534.808,286.307,548.052,584.362,542.822,467.157,532.408,457.981,364.479,534.808,570.215,286.307,480.047,486.194,553.687,471.06,385.506,527.482,579.169,529.865,406.565,544.785,392.873,548.052,699.6,450.967,737.844,717.365,286.307,548.052,527.482,548.052,717.365,487.797,667,886,614,719,667,278,278,556,1094,1042,854,622,651.637,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,491.076,556,611,469,563,556,278,278,278,969,906,611,507,527.227,556,611,778,611,575,467,906.882,745.277,906.882,745.277,906.882,745.277,519.54,470.087,333,333,497.909,905.27,1e3,498.804,257.967,257.967,257.967,249.663,435.06,435.06,435.06,497.909,497.909,497.907,710.94,1061.52,240,479,344.229,344.229,586.913,498.035,380.877,368.169,463.737,506.699,919.919,506.699,885,516,1146,720.21,768,738.648,696.298,738.299,738.299,679.702,905.254,905.275,905.27,905.275,1310.7,768.555,472.17,536.958,612,781.998,550.379,498.059,498.201,838.017,683.587,701.495,375.591,498.201,498.201,497.625,498.201,498.201,875.48,498.059,540.036,540.036,499.65,500,499.65,499.65,499.65,499.65,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,353.511,353.511,1e3,990,990,990,990,533.54,549.803,604,604,604,353.511,1021,1052,917,750,750,531,656,594,510,500,750,750,554.342,554.342,333],L=[278.167,278.167,355.021,555.85,555.85,888.84,667.007,191.082,332.993,332.993,388.841,584.018,278.167,332.993,278.167,278.167,555.85,555.85,555.85,555.85,555.85,555.85,555.85,555.85,555.85,555.85,278.167,278,584.018,584.018,584.018,555.85,1014.868,667.007,667.007,721.834,721.834,667.007,611.159,778.171,721.834,278.167,500,667.007,555.85,832.992,721.834,778.171,667.007,778.171,721.834,667.007,611.159,721.834,667.007,944.151,667.007,667.007,611.159,278.167,278.167,278.167,468.761,555.85,332.993,555.85,555.85,500,555.85,555.85,278.167,555.85,555.85,221.831,221.831,500,221.831,832.992,555.85,555.85,555.85,555.85,332.993,500,278.167,555.85,500,721.834,500,500,500,334.017,260.234,334.017,584.018,332.993,555.85,555.85,555.85,555.85,260.234,555.85,332.993,737.184,369.882,555.85,584.018,737.184,332.85,400.096,584.185,333,333,332.993,576,536.893,278.167,332.993,333,364.766,555.85,834.017,834.017,834.017,611.159,667.007,667.007,667.007,667.007,667.007,667.007,1e3,721.834,667.007,667.007,667.007,667.007,278.167,278.167,278.167,278.167,721.834,721.834,778.171,778.171,778.171,778.171,778.171,584.018,778.171,721.834,721.834,721.834,721.834,667.007,667.007,611.159,555.85,555.85,555.85,555.85,555.85,555.85,888.84,500,555.85,555.85,555.85,555.85,278.167,278.167,278.167,278.167,555.85,555.85,555.85,555.85,555.85,555.85,555.85,584.185,611.159,555.85,555.85,555.85,555.85,500,555.85,500,667.007,555.85,667.007,555.85,667.007,555.85,721.834,500,721.834,500,721.834,500,721.834,500,721.834,643.265,721.834,555.85,667.007,555.85,667.007,555.85,667.007,555.85,667.007,555.85,667.007,555.85,778.171,555.85,778.171,555.85,778.171,555.85,778.171,555.85,721.834,555.85,721.834,555.85,278.167,278.167,278.167,278.167,278.167,278.167,278.167,221.831,278.167,278.167,735.14,444.151,500,221.831,667.007,500,500,555.85,221.831,555.85,221.831,555.85,299.51,555.85,334.017,555.85,221.831,721.834,555.85,721.834,555.85,721.834,555.85,603.994,722.855,555.85,778.171,555.85,778.171,555.85,778.171,555.85,1e3,944.151,721.834,332.993,721.834,332.993,721.834,332.993,667.007,500,667.007,500,667.007,500,667.007,500,611.159,278.167,611.159,316.999,611.159,278.167,721.834,555.85,721.834,555.85,721.834,555.85,721.834,555.85,721.834,555.85,721.834,555.85,944.151,721.834,667.007,500,667.007,611.159,500,611.159,500,611.159,500,221.831,555.85,667.007,555.85,1e3,888.84,778.171,611.159,667.007,500,611.159,278.167,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,666.52,278,783.82,838.109,384.211,773.59,854.53,751.556,221.831,667.007,667.007,551.22,612.028,667.007,611.159,721.834,778.171,278.167,667.007,668.033,832.992,721.834,650.098,778.171,721.834,667.007,617.833,611.159,667.007,798.152,667.007,834.549,748,278.167,667.007,577.873,446.201,555.85,221.831,547.126,577.873,574.805,500,557.362,446.201,441.084,555.85,555.85,221.831,500,500,555.834,500,448.246,555.85,690.055,569.154,482,616.815,394.98,547.126,647.566,525.1,713.107,781.242,221.831,547.126,555.85,547.126,781.242,667.007,666.52,865.251,542.499,719.252,667.007,278.167,278.167,500,1056.873,1009.748,854,583.478,718.83,634.746,719.252,667.007,655.751,667.007,542.499,676.756,667.007,922.658,603.994,719.252,719.252,583.478,655.751,832.992,721.834,778.171,719.252,667.007,721.834,611.159,634.746,759.749,667.007,740.252,667.494,917.495,938.497,792.499,884.743,655.751,719.252,1009.748,721.834,555.85,573.246,530.75,365.256,582.504,555.85,669.054,457.505,559.408,559.408,438.499,582.504,688.502,551.752,555.85,542.499,555.85,500,457.991,500,823.247,500,573.246,521.005,801.751,823.247,625,719.252,521.005,509.745,750,542.499,555.85,555.85,555.85,365.256,509.745,500,221.831,278.167,221.831,905.746,812.503,555.85,438.499,559.408,500,551.752,778,556,489.23,410.868,944.151,721.834,944.151,721.834,944.151,721.834,667.007,500,333,333,555.85,1e3,1e3,551.752,221.831,221.831,221.831,221.831,332.993,332.993,332.993,555.85,555.85,349.902,1e3,1e3,188.502,353.996,332.993,332.993,500,332.993,278.013,365,555.85,555.85,1094.252,555.85,884.743,322.758,1073.247,1e3,767.931,599.904,834.017,834.017,834.017,834.017,1e3,500,1e3,500,1e3,500,500,475.865,612,995.707,996.154,584.018,453.145,713.107,979,719.252,274.074,549.17,549.17,582.504,549.17,549.17,603.994,584.018,603.994,603.994,999.3,1e3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,995.299,995.299,995.996,603.994,604,353.508,353.508,1e3,990.257,990.257,990.257,990.257,470.866,603.994,603.994,603.994,603.994,497.31,1021,1051.758,917.495,750,750,530.75,655.751,594.249,509.745,500,750,750,500,500,333],$=[278.167,332.993,473.877,555.85,555.85,888.84,721.834,238.207,332.993,332.993,388.841,584.018,278.167,332.993,278.167,278.167,555.85,555.85,555.85,555.85,555.85,555.85,555.85,555.85,555.85,555.85,332.993,333,584.018,584.018,584.018,611.159,974.903,721.834,721.834,721.834,721.834,667.007,611.159,778.171,721.834,278.167,555.85,721.834,611.159,832.992,721.834,778.171,667.007,778.171,721.834,667.007,611.159,721.834,667.007,944.151,667.007,667.007,611.159,332.993,278.167,332.993,584.018,555.85,332.993,555.85,611.159,555.85,611.159,555.85,332.993,611.159,611.159,278.167,278.167,555.85,278.167,888.84,611.159,611.159,611.159,611.159,388.841,555.85,332.993,611.159,555.85,778.171,555.85,555.85,500,388.841,280.216,388.841,584.018,332.993,555.85,555.85,555.85,555.85,280.216,555.85,332.993,737.184,369.882,555.85,584.018,737.184,332.85,400.096,584.185,333,333,332.993,576,555.85,278.167,332.993,333,364.766,555.85,834.017,834.017,834.017,611.159,721.834,721.834,721.834,721.834,721.834,721.834,1e3,721.834,667.007,667.007,667.007,667.007,278.167,278.167,278.167,278.167,721.834,721.834,778.171,778.171,778.171,778.171,778.171,584.018,778.171,721.834,721.834,721.834,721.834,667.007,667.007,611.159,555.85,555.85,555.85,555.85,555.85,555.85,888.84,555.85,555.85,555.85,555.85,555.85,278.167,278.167,278.167,278.167,611.159,611.159,611.159,611.159,611.159,611.159,611.159,584.185,611.159,611.159,611.159,611.159,611.159,555.85,611.159,555.85,721.834,555.85,721.834,555.85,721.834,555.85,721.834,555.85,721.834,555.85,721.834,555.85,721.834,555.85,721.834,743.259,721.834,611.159,667.007,555.85,667.007,555.85,667.007,555.85,667.007,555.85,667.007,555.85,778.171,611.159,778.171,611.159,778.171,611.159,778.171,611.159,721.834,611.159,721.834,611.159,278.167,278.167,278.167,278.167,278.167,278.167,278.167,278.167,278.167,278.167,785.33,555.85,555.85,278.167,721.834,555.85,555.85,611.159,278.167,611.159,278.167,611.159,399.738,611.159,478.995,611.159,278.167,721.834,611.159,721.834,611.159,721.834,611.159,707.504,722.855,611.159,778.171,611.159,778.171,611.159,778.171,611.159,1e3,944.151,721.834,388.841,721.834,388.841,721.834,388.841,667.007,555.85,667.007,555.85,667.007,555.85,667.007,555.85,611.159,332.993,611.159,388.996,611.159,332.993,721.834,611.159,721.834,611.159,721.834,611.159,721.834,611.159,721.834,611.159,721.834,611.159,944.151,778.171,667.007,555.85,667.007,611.159,500,611.159,500,611.159,500,278.167,555.85,721.834,555.85,1e3,888.84,778.171,611.159,667.007,555.85,611.159,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,465.158,721.834,333,852.974,906.236,474.37,825.297,926.75,838.109,278.167,721.834,721.834,600.928,612.214,667.007,611.159,721.834,778.171,278.167,721.834,667.007,832.992,721.834,644.444,778.171,721.834,667.007,599.904,611.159,667.007,821.197,667.007,808.919,802,278.167,667.007,615.252,450.829,611.159,278.167,581.971,615.252,609.646,555.85,605.558,475.39,459.549,611.159,541.471,278.167,558.385,555.85,611.186,555.85,444.689,611.159,766.375,619.347,520,683.918,445.71,581.971,714.671,576.317,752.586,845.27,278.167,581.971,611.159,581.971,845.27,667.007,669.054,884.743,567.108,710.573,667.007,278.167,276.121,555.85,1094.252,1062.499,875,609.646,718.83,621.932,719.252,721.834,719.252,721.834,567.108,711.601,667.007,904.19,625.537,719.252,719.252,609.646,702.337,832.992,721.834,778.171,719.252,667.007,721.834,611.159,621.932,854.487,667.007,729.533,703.366,1005.121,1018.959,870.374,979,719.252,710.573,1030.753,719.252,555.85,618.321,615.252,417.496,635.235,555.85,709.014,496.93,615.252,615.252,499.51,634.746,740.252,603.994,611.159,603.994,611.159,555.85,490.255,555.85,875,555.85,615.252,581.436,832.5,844.253,728.993,854,615.252,551.752,854,582.504,555.85,555.85,611.159,417.496,551.752,555.85,278.167,280.75,278.167,969.252,905.746,611.159,499.51,615.252,555.85,603.994,778,611,487.185,447.224,944.151,778.171,944.151,778.171,944.151,778.171,667.007,555.85,333,333,555.85,1e3,1e3,551.752,278.167,278.167,278.167,278.167,500,500,500,555.85,555.85,349.902,1e3,1e3,240.254,478.995,332.993,332.993,603.994,332.993,278.013,396,555.85,555.85,1094.252,555.85,884.743,489.23,1115.256,1e3,767.931,599.904,834.017,834.017,834.017,834.017,1e3,500,1e3,500,1e3,500,500,493.862,612,995.707,996.154,584.018,549.17,713.107,979,718.83,274.074,549.17,549.17,582.504,549.17,549.17,603.994,584.018,603.994,603.994,999.3,1e3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,995.299,995.299,995.996,603.994,604,353.508,353.508,1e3,990.257,990.257,990.257,990.257,493.862,603.994,603.994,603.994,603.994,497.31,1021,1051.758,917.495,750,750,530.75,655.751,594.249,509.745,500,750,750,611,611,333],U=[278.167,278.167,355.021,555.85,555.85,888.84,667.007,191.082,332.993,332.993,388.841,584.018,278.167,332.993,278.167,278.167,555.85,555.85,555.85,555.85,555.85,555.85,555.85,555.85,555.85,555.85,278.167,278,584.018,584.018,584.018,555.85,1014.868,667.007,667.007,721.834,721.834,667.007,611.159,778.171,721.834,278.167,500,667.007,555.85,832.992,721.834,778.171,667.007,778.171,721.834,667.007,611.159,721.834,667.007,944.151,667.007,667.007,611.159,278.167,278.167,278.167,468.761,555.85,332.993,555.85,555.85,500,555.85,555.85,278.167,555.85,555.85,221.831,221.831,500,221.831,832.992,555.85,555.85,555.85,555.85,332.993,500,278.167,555.85,500,721.834,500,500,500,334.017,260.234,334.017,584.018,332.993,555.85,555.85,555.85,555.85,260.234,555.85,332.993,737.184,369.882,555.85,584.018,737.184,332.85,400.096,584.185,333,333,332.993,576,536.893,278.167,332.993,333,364.766,555.85,834.017,834.017,834.017,611.159,667.007,667.007,667.007,667.007,667.007,667.007,1e3,721.834,667.007,667.007,667.007,667.007,278.167,278.167,278.167,278.167,721.834,721.834,778.171,778.171,778.171,778.171,778.171,584.018,778.171,721.834,721.834,721.834,721.834,667.007,667.007,611.159,555.85,555.85,555.85,555.85,555.85,555.85,888.84,500,555.85,555.85,555.85,555.85,278.167,278.167,278.167,278.167,555.85,555.85,555.85,555.85,555.85,555.85,555.85,584.185,611.159,555.85,555.85,555.85,555.85,500,555.85,500,667.007,555.85,667.007,555.85,667.007,555.85,721.834,500,721.834,500,721.834,500,721.834,500,721.834,643,721.834,555.85,667.007,555.85,667.007,555.85,667.007,555.85,667.007,555.85,667.007,555.85,778.171,555.85,778.171,555.85,778.171,555.85,778.171,555.85,721.834,555.85,721.834,555.85,278.167,278.167,278.167,278.167,278.167,278.167,278.167,221.831,278.167,278.167,732.604,444.151,500,221.831,667.007,500,500,555.85,221.831,555.85,221.831,555.85,298.734,555.85,400.096,555.85,221.831,721.834,555.85,721.834,555.85,721.834,555.85,615.252,722.855,555.85,778.171,555.85,778.171,555.85,778.171,555.85,1e3,944.151,721.834,332.993,721.834,332.993,721.834,332.993,667.007,500,667.007,500,667.007,500,667.007,500,611.159,278.167,611.159,316.996,611.159,278.167,721.834,555.85,721.834,555.85,721.834,555.85,721.834,555.85,721.834,555.85,721.834,555.85,944.151,721.834,667.007,500,667.007,611.159,500,611.159,500,611.159,500,221.831,555.85,667.007,555.85,1e3,888.84,778.171,611.159,667.007,500,611.159,278.167,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,667.007,278,789.426,845.805,389.327,794.056,864.766,775.101,221.831,667.007,667.007,569.687,612.093,667.007,611.159,721.834,778.171,278.167,667.007,667.007,832.992,721.834,647.566,778.171,725.392,667.007,600.39,611.159,667.007,837.084,667.007,831.432,761,278.167,667.007,569.687,438.548,554.822,221.831,550.198,569.687,570.709,500,556.334,438.548,462.62,554.822,541.518,221.831,500,491.813,556.149,500,447.224,555.85,670.08,573.246,486,602.97,373.978,550.198,651.654,546.104,728.459,779.195,221.831,550.198,555.85,550.198,779.195,667.007,667.007,843.228,544.054,708.481,667.007,278.167,278.167,500,1066.085,981.578,843.764,588.647,714.671,638.84,724.369,667.007,651.124,667.007,544.054,703.901,667.007,917.009,614.233,714.671,714.671,588.647,686.453,832.992,721.834,778.171,725.392,667.007,721.834,611.159,638.84,795.079,667.007,726.949,672.664,919.586,923.148,804.823,885.77,651.124,694.153,1021.54,682.361,555.85,562.5,522.026,492.837,553.265,555.85,688.014,465.158,555.85,555.85,471.83,564.034,686.453,549.709,555.85,549.851,555.85,500,374,500,834.549,500,572.223,518.425,829.925,850.923,620.907,736.162,526.121,492.3,752.045,533.818,555.85,555.85,555.85,378.072,496.397,500,221.831,221.831,221.831,909.845,828.364,555.85,471.83,555.576,500,555.85,778,556,491.813,338.644,944.151,721.834,944.151,721.834,944.151,721.834,667.007,500,333,333,555.85,1e3,1e3,551.752,221.831,221.831,221.831,221.831,332.993,332.993,332.993,555.85,555.85,349.902,1e3,1e3,188.502,353.996,332.993,332.993,500,332.993,278.013,365,555.85,555.85,1094.252,555.85,888.744,322.758,1082.989,1e3,767.931,599.904,834.017,834.017,834.017,834.017,1000.49,500,1000.445,500,1e3,500,500,475.865,612,995.707,996.154,584.018,453.145,713.107,979,719.252,274.074,549.17,549.17,584.018,549.17,549.17,603.994,584.018,603.994,603.994,999.3,1e3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,995.299,995.299,995.996,603.994,604,353.508,353.508,1e3,990.257,990.257,990.257,990.257,470.866,603.994,603.994,603.994,603.994,497.31,1021,1051.758,917.495,750,750,530.75,655.751,594.249,509.745,500,750,750,500,500,333],G=[278.167,332.993,473.877,555.85,555.85,888.84,721.834,238.207,332.993,332.993,388.841,584.018,278.167,332.993,278.167,278.167,555.85,555.85,555.85,555.85,555.85,555.85,555.85,555.85,555.85,555.85,332.993,333,584.018,584.018,584.018,611.159,974.903,721.834,721.834,721.834,721.834,667.007,611.159,778.171,721.834,278.167,555.85,721.834,611.159,832.992,721.834,778.171,667.007,778.171,721.834,667.007,611.159,721.834,667.007,944.151,667.007,667.007,611.159,332.993,278.167,332.993,584.018,555.85,332.993,555.85,611.159,555.85,611.159,555.85,332.993,611.159,611.159,278.167,278.167,555.85,278.167,888.84,611.159,611.159,611.159,611.159,388.841,555.85,332.993,611.159,555.85,778.171,555.85,555.85,500,388.841,280.216,388.841,584.018,332.993,555.85,555.85,555.85,555.85,280.216,555.85,332.993,737.184,369.882,555.85,584.018,737.184,332.85,400.096,584.185,333,333,332.993,576,555.85,278.167,332.993,333,364.766,555.85,834.017,834.017,834.017,611.159,721.834,721.834,721.834,721.834,721.834,721.834,1e3,721.834,667.007,667.007,667.007,667.007,278.167,278.167,278.167,278.167,721.834,721.834,778.171,778.171,778.171,778.171,778.171,584.018,778.171,721.834,721.834,721.834,721.834,667.007,667.007,611.159,555.85,555.85,555.85,555.85,555.85,555.85,888.84,555.85,555.85,555.85,555.85,555.85,278.167,278.167,278.167,278.167,611.159,611.159,611.159,611.159,611.159,611.159,611.159,584.185,611.159,611.159,611.159,611.159,611.159,555.85,611.159,555.85,721.834,555.85,721.834,555.85,721.834,555.85,721.834,555.85,721.834,555.85,721.834,555.85,721.834,555.85,721.834,743.256,721.834,611.159,667.007,555.85,667.007,555.85,667.007,555.85,667.007,555.85,667.007,555.85,778.171,611.159,778.171,611.159,778.171,611.159,778.171,611.159,721.834,611.159,721.834,611.159,278.167,278.167,278.167,278.167,278.167,278.167,278.167,278.167,278.167,278.167,781.773,555.85,555.85,278.167,721.834,555.85,555.85,611.159,278.167,611.159,278.167,611.159,400.004,611.159,478.995,611.159,278.167,721.834,611.159,721.834,611.159,721.834,611.159,707.504,722.855,611.159,778.171,611.159,778.171,611.159,778.171,611.159,1e3,944.151,721.834,388.841,721.834,388.841,721.834,388.841,667.007,555.85,667.007,555.85,667.007,555.85,667.007,555.85,611.159,332.993,611.159,388.996,611.159,332.993,721.834,611.159,721.834,611.159,721.834,611.159,721.834,611.159,721.834,611.159,721.834,611.159,944.151,778.171,667.007,555.85,667.007,611.159,500,611.159,500,611.159,500,278.167,555.85,721.834,555.85,1e3,888.84,778.171,611.159,667.007,555.85,611.159,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,332.993,721.834,333,854,906.236,472.853,843.764,929.823,846.831,278.167,721.834,721.834,610.134,611.65,667.007,611.159,721.834,778.171,278.167,721.834,667.007,832.992,721.834,656.777,778.171,718.23,667.007,589.67,611.159,667.007,821.737,667.007,829.39,781,278.167,667.007,619.882,479.484,611.159,278.167,590.693,619.882,621.397,555.85,609.646,479.484,492.3,611.159,558.385,278.167,566.079,555.85,610.972,555.85,450.293,611.159,712.085,604.534,532,664.425,409.311,590.693,704.387,578.364,773.054,833.525,278.167,590.693,611.159,590.693,833.525,667.007,667.007,886.257,614.233,719.252,667.007,278.167,278.167,555.85,1093.759,1042.01,854.487,621.932,718.763,676.756,718.763,721.834,707.993,721.834,614.233,721.834,667.007,926.75,643.424,718.763,718.763,615.252,686.986,832.992,721.834,778.171,718.763,667.007,721.834,611.159,676.756,781.242,667.007,728.993,707.993,979,989.227,854,1e3,707.993,719.252,1042.01,728.993,555.85,618.858,603.994,534.31,617.833,555.85,735.669,509.745,611.159,611.159,507.162,621.932,740.252,603.994,611.159,611.159,611.159,555.85,408.922,555.85,885.23,555.85,646.006,582.994,888.84,934.944,706.972,854,594.249,552.243,865.251,589.135,555.85,555.85,611.159,468.761,563.011,555.85,278.167,278.167,278.167,968.758,906.236,611.159,507.162,610.86,555.85,611.159,778,611,574.805,467.205,944.151,778.171,944.151,778.171,944.151,778.171,667.007,555.85,333,333,555.85,1e3,1e3,551.752,278.167,278.167,278.167,278.167,500,500,500,555.85,555.85,349.902,1e3,1e3,240.254,478.995,332.993,332.993,603.994,332.993,278.013,396,555.85,555.85,1104,555.85,884.743,515.886,1146,1e3,767.931,599.904,834.017,834.017,834.017,834.017,999.979,500,1e3,500,1000.49,500,500,493.862,612,995.707,996.154,584.018,549.17,713.107,979,718.83,274.074,549.17,549.17,582.504,549.17,549.17,603.994,584.018,603.994,603.994,999.3,1e3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,999.3,995.299,995.299,995.996,603.994,604,353.508,353.508,1e3,990.257,990.257,990.257,990.257,493.862,603.994,603.994,603.994,603.994,497.31,1021,1051.758,917.495,750,750,530.75,655.751,594.249,509.745,500,750,750,611,611,333],W=[212.128,230.14,337.019,496.864,512.86,791.859,605.009,188.082,283.992,283.992,414.83,596.019,207.124,306.993,207.124,343.208,512.86,512.86,512.86,512.86,512.86,512.86,512.86,512.86,512.86,512.86,207.124,207.124,596.019,596.019,596.019,405.891,736.9,612.006,542.004,579.867,665.843,492.006,487.126,646.137,651.85,239.144,370,542.004,471.872,803.995,657.85,689.152,532.006,689.152,537.876,493.006,497.128,646.847,558.006,846.136,571.005,541.004,553.144,284.172,341.206,284.172,595.696,499.861,299.993,481.869,568.844,448,563.845,500.861,292.175,558.847,554.849,233.824,242.817,469,235.822,833.991,554.849,548.85,568.844,562.844,326.993,396,331.201,550.851,481,735.826,463,471,428,284.014,239.216,284.014,596.019,229.993,512.86,512.86,512.86,512.86,239.216,518.859,299.993,677.17,345.891,418.885,596.019,419.102,299.868,318.076,596.187,333,333,299.993,576,511.895,207.124,299.993,333,354.773,418.885,759.015,759.015,759.015,406.107,612.006,612.006,612.006,612.006,612.006,612.006,788,579.867,492.006,492.006,492.006,492.006,239.144,239.144,239.144,239.144,670.846,657.85,689.152,689.152,689.152,689.152,689.152,596.019,689.152,646.847,646.847,646.847,646.847,541.004,531.005,548.146,481.869,481.869,481.869,481.869,481.869,481.869,772.861,448,500.861,500.861,500.861,500.861,234.143,234.143,234.143,234.143,540.855,554.849,548.85,548.85,548.85,548.85,548.85,596.187,549.142,550.851,550.851,550.851,550.851,471,568.844,471,612.006,481.869,612.006,481.869,612.006,481.869,579.867,448,579.867,448,579.867,448,579.867,448,665.843,574.238,670.846,563.845,492.006,500.861,492.006,500.861,492.006,500.861,492.006,500.861,492.006,500.861,646.137,558.847,646.137,558.847,646.137,558.847,778,556,651.85,554.849,656.847,554.849,239.144,234.143,239.144,234.143,239.144,234.143,239.144,233.824,239.144,234.143,609.117,477.162,370,242.817,667,500,469,471.872,235.822,556,222,471.872,244.416,471.872,272.013,475.869,241.818,657.85,554.849,722,556,657.85,554.849,554.997,657.865,554.849,689.152,548.85,689.152,548.85,689.152,548.85,894,863.137,537.876,326.993,722,333,537.876,326.993,493.006,396,493.006,396,667,500,493.006,396,611,278,497.128,339,497.128,331.201,646.847,550.851,646.847,550.851,646.847,550.851,646.847,550.851,646.847,550.851,646.847,550.851,846.136,735.826,541.004,471,541.004,553.144,428,553.144,428,553.144,428,222,512.86,612.006,481.869,788,772.861,689.152,549.142,667,500,497.128,331.201,299.993,299.993,299.993,299.993,299.993,299.993,299.993,299.993,299.993,300.992,345.99,614.56,217.132,560.874,722.096,309.17,727.614,705.614,741.562,235.822,612.006,542.004,451.181,620.031,492.006,553.144,651.85,689.152,239.144,542.004,609.029,803.995,657.85,540.079,689.152,633.851,532.006,551.855,497.128,588.007,718.136,571.005,684.633,705.416,239.144,588.007,550.88,440.198,554.849,235.822,524.119,550.88,559.809,464,546.35,440.198,409.076,554.849,533.855,235.822,493,472,552.833,469,433.238,548.85,555.05,563.151,482,553.832,412.98,524.119,641.565,457.086,655.097,694.215,235.822,524.119,548.85,524.119,694.215,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,846.136,735.826,846.136,735.826,846.136,735.826,541.004,471,306.993,333,499.861,1e3,1e3,552,206.844,206.844,206.844,222,353.992,353.992,355.99,499.861,499.861,281.922,1e3,1156,188,354,254.995,254.995,500,333,121.005,365,556,556,1094,512.86,885,323,1073,619,768,816.87,834,834,834,834,1e3,500,1e3,500,1e3,500,500,529.85,612,614.822,507.078,596.019,562.176,728.108,979,719,316.086,596.187,596.187,583,596.187,596.187,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,521.852,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333],X=[202.123,267.995,396.899,549.851,554.849,879.843,677.842,205.177,313.992,313.992,453.811,596.019,260.158,321.991,260.158,331.201,554.849,554.849,554.849,554.849,554.849,554.849,554.849,554.849,554.849,554.849,259.993,259.993,596.019,596.019,596.019,445.12,769.919,655.85,603.859,594.863,695.835,534.007,527.14,682.15,688.839,285.172,410.89,613.859,511.132,845.995,689.842,717.153,581.004,717.153,592.863,540.003,548.146,681.842,636.005,888.144,613.006,603.008,577.151,313.992,330.2,313.992,596.019,499.861,299.993,527.855,598.157,450.877,596.159,527.855,340.992,585.155,586.151,274.166,291.177,541.85,275.167,859.841,586.151,577.151,598.157,595.157,379.843,433.88,366.993,583.151,529.857,759.165,518.859,522.857,469,313.872,283.217,313.872,596.019,267.995,554.849,554.849,554.849,554.849,283.217,560.848,299.993,677.17,377.881,464.872,596.019,459.114,299.868,356.088,596.187,333,333,299.993,576,541.85,260.158,299.993,333,385.754,464.872,831.014,831.014,831.014,445.12,655.85,655.85,655.85,655.85,655.85,655.85,868,594.863,534.007,534.007,534.007,534.007,285.172,285.172,285.172,285.172,703.834,689.842,717.153,717.153,717.153,717.153,717.153,596.019,717.153,681.842,681.842,681.842,681.842,603.008,580.01,600.155,527.855,527.855,527.855,527.855,527.855,527.855,802.856,450.877,527.855,527.855,527.855,527.855,274.166,274.166,274.166,274.166,574.151,586.151,577.151,577.151,577.151,577.151,577.151,596.187,577.151,583.151,583.151,583.151,583.151,522.857,598.157,522.857,655.85,527.855,655.85,527.855,655.85,527.855,594.863,450.877,594.863,450.877,594.863,450.877,594.863,450.877,695.835,606.21,703.834,596.159,534.007,527.855,534.007,527.855,534.007,527.855,534.007,527.855,534.007,527.855,682.15,585.155,682.15,585.155,682.15,585.155,778,611,688.839,586.151,700.838,586.151,285.172,274.166,285.172,274.166,285.172,274.166,285.172,274.166,285.172,274.166,696.295,564.846,410.89,291.177,722,556,541.85,511.132,275.167,611,278,511.132,284.811,511.132,353.995,517.138,287.174,689.842,586.151,722,611,689.842,586.151,585.587,689.865,586.151,717.153,577.151,717.153,577.151,717.153,577.151,936,868.14,592.863,379.843,722,389,592.863,379.843,540.003,433.88,540.003,433.88,667,556,540.003,433.88,611,333,548.146,370.995,548.146,366.993,681.842,583.151,681.842,583.151,681.842,583.151,681.842,583.151,681.842,583.151,681.842,583.151,888.144,759.165,603.008,522.857,603.008,577.151,469,577.151,469,577.151,469,278,554.849,655.85,527.855,868,802.856,717.153,577.151,667,556,548.146,366.993,299.993,299.993,299.993,299.993,299.993,299.993,299.993,299.993,299.993,302.993,435.147,663.843,276.993,641.976,797.208,393.306,792.281,775.797,815.106,280.168,655.85,603.859,481.942,648.229,534.007,577.151,688.839,719.152,285.172,613.859,648.011,845.995,689.842,574.396,717.153,666.846,581.004,577.908,548.146,625.006,785.188,613.006,741.926,744.224,285.172,625.006,583.241,467.822,586.151,280.168,557.969,583.241,586.661,514.862,575.579,468.383,440.57,586.151,570.501,280.168,548.375,517.858,585.176,509.858,471.669,577.151,600.291,591.331,520,593.931,451.709,557.969,710.667,504.276,725.598,733.24,280.168,557.969,577.151,557.969,733.24,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,888.144,759.165,888.144,759.165,888.144,759.165,603.008,522.857,321.991,333,499.861,1e3,1e3,552,260.158,260.158,260.158,278,454,454,459,523.858,523.858,337.904,1e3,1285,240,479,269.993,269.993,604,333,125.006,396,556,556,1094,554.849,885,489,1115,650,768,816.87,834,834,834,834,1e3,500,1e3,500,1e3,500,500,578.835,612,662.803,543.085,596.019,589.187,752.115,979,722,358.096,596.187,596.187,583,596.187,596.187,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,573.835,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333],K=[182.109,236.142,304.018,491.865,491.865,772.861,589.008,166.071,283.992,283.992,413.83,596.019,211.127,306.993,211.127,326.197,491.865,491.865,491.865,491.865,491.865,491.865,491.865,491.865,491.865,491.865,211.127,211.127,596.019,596.019,596.019,383.896,719.899,568.004,519.006,554.871,646.847,470.008,465.124,623.131,626.855,233.142,364,515.004,441.881,779.996,631.851,668.146,507.007,668.146,522.88,466.006,474.124,620.855,539.009,829.134,521.007,517.005,523.138,284.172,329.199,284.172,595.696,499.861,382.99,521.856,524.858,423,524.858,452.879,283.171,523.858,533.855,228.827,226.829,456,228.827,807.993,533.855,521.856,524.858,524.858,317.992,373,313.189,525.854,455,706.838,441,441,415,284.014,217.196,284.014,596.019,235.994,491.865,491.865,491.865,491.865,217.196,500.861,382.99,675.166,349.891,408.888,596.019,395.098,382.829,318.076,596.187,333,333,382.99,576,493.9,211.127,382.99,333,344.779,407.887,751.017,751.017,751.017,384.099,568.004,568.004,568.004,568.004,568.004,568.004,773,554.871,470.008,470.008,470.008,470.008,233.142,233.142,233.142,233.142,653.85,631.851,668.146,668.146,668.146,668.146,668.146,596.019,667.143,620.855,620.855,620.855,620.855,517.005,507.007,538.138,521.856,521.856,521.856,521.856,521.856,521.856,717.868,423,452.879,452.879,452.879,452.879,229.139,229.139,229.139,229.139,515.857,533.855,521.856,521.856,521.856,521.856,521.856,596.187,523.138,525.854,525.854,525.854,525.854,441,525.854,441,568.004,521.856,568.004,521.856,568.004,521.856,554.871,423,554.871,423,554.871,423,554.871,423,646.847,534,653.85,524.858,470.008,452.879,470.008,452.879,470.008,452.879,470.008,452.879,470.008,452.879,623.131,523.858,623.131,523.858,623.131,523.858,778,556,626.855,533.855,626.855,533.855,233.142,229.139,233.142,229.139,233.142,229.139,233.142,228.827,233.142,229.139,596.677,456.157,364,226.829,667,500,456,441.881,228.827,556,222,441.881,235.79,441.881,265.064,447.875,236.821,631.851,533.855,722,556,631.851,533.855,534.22,631.873,533.855,668.146,521.856,668.146,521.856,668.146,521.856,867,800.125,522.88,317.992,722,333,522.88,317.992,466.006,373,466.006,373,667,500,466.006,373,611,278,474.124,312.996,474.124,313.189,620.855,525.854,620.855,525.854,620.855,525.854,620.855,525.854,620.855,525.854,620.855,525.854,829.134,706.838,517.005,441,517.005,523.138,415,523.138,415,523.138,415,222,491.865,568.004,521.856,773,717.868,667.143,523.138,667,500,474.124,313.189,382.99,382.99,382.99,382.99,382.99,383.992,382.99,382.99,382.99,359.993,345.99,568.004,214.13,491.263,646.852,254.215,683.046,600.838,697.089,228.827,568.004,519.006,435.759,596.09,470.008,523.138,626.855,668.146,233.142,515.004,569.004,779.996,631.851,533.641,668.146,621.332,507.007,534.348,474.124,544.005,691.069,521.007,647.341,680.227,233.142,544.005,540.702,405.583,533.832,228.827,501.177,540.702,532.732,439,522.318,405.583,391.679,533.832,515.545,228.827,461,436.832,525.143,440,418.209,521.856,528.061,537.233,486,537.979,387.976,501.177,612.678,423.079,624.398,676.164,228.827,501.177,521.856,501.177,676.164,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,829.134,706.838,829.134,706.838,829.134,706.838,517.005,441,306.993,333,499.861,1e3,1e3,552,193.853,193.853,193.853,222,341.991,341.991,341.991,482.869,482.869,276.924,1e3,1124,188,354,244.995,244.995,500,333,142.007,365,556,556,1094,491.865,885,323,1083,669,768,816.87,834,834,834,834,1e3,500,998,500,1e3,500,500,517.85,612,616.822,536.083,596.019,540.167,728.108,979,719,291.078,596.187,596.187,584,596.187,596.187,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,519.851,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,500,500,333],V=[184.111,268.994,386.903,540.855,540.855,868.846,665.843,198.173,313.992,313.992,451.816,596.019,260.158,321.991,260.158,326.197,540.855,540.855,540.855,540.855,540.855,540.855,540.855,540.855,540.855,540.855,259.993,259.993,596.019,596.019,596.019,437.116,748.927,617.859,581.867,582.863,680.839,517.005,511.132,673.149,665.843,274.166,398.891,589.86,487.126,820.988,665.843,705.156,559.006,705.156,582.863,510.008,527.14,654.847,611.005,864.138,569.004,570.005,553.144,313.992,337.203,313.992,596.019,499.861,394.991,553.848,560.146,434.881,560.146,500.861,328.991,558.149,563.146,265.159,275.167,529.857,265.159,830.851,563.146,559.144,562.144,560.146,369.85,415.888,347.992,560.146,511.859,733.156,497.865,496.864,450,313.872,240.184,313.872,596.019,268.994,540.855,540.855,540.855,540.855,240.184,555.85,394.991,673.168,399.874,460.874,596.019,409.101,394.824,356.088,596.187,333,333,394.991,576,537.852,260.158,394.991,333,382.754,459.873,826.019,826.019,826.019,437.116,617.859,617.859,617.859,617.859,617.859,617.859,845,582.863,517.005,517.005,517.005,517.005,274.166,274.166,274.166,274.166,692.838,665.843,705.156,705.156,705.156,705.156,705.156,596.019,702.153,654.847,654.847,654.847,654.847,570.005,558.006,580.151,553.848,553.848,553.848,553.848,553.848,553.848,762.86,434.881,500.861,500.861,500.861,500.861,265.159,265.159,265.159,265.159,558.149,563.146,559.144,559.144,559.144,559.144,559.144,596.187,560.146,560.146,560.146,560.146,560.146,496.864,564.149,496.864,617.859,553.848,617.859,553.848,617.859,553.848,582.863,434.881,582.863,434.881,582.863,434.881,582.863,434.881,680.839,568.194,692.838,560.146,517.005,500.861,517.005,500.861,517.005,500.861,517.005,500.861,517.005,500.861,673.149,558.149,673.149,558.149,673.149,558.149,778,611,665.843,563.146,665.843,563.146,274.166,265.159,274.166,265.159,274.166,265.159,274.166,265.159,274.166,265.159,672.802,539.854,398.891,275.167,722,556,529.857,487.126,265.159,611,278,487.126,273.002,487.126,355.998,499.132,278.167,665.843,563.146,722,611,665.843,563.146,562.605,665.869,563.146,705.156,559.144,705.156,559.144,705.156,559.144,909,826.132,582.863,369.85,722,389,582.863,369.85,510.008,415.888,510.008,415.888,667,556,510.008,415.888,611,333,527.14,347.998,527.14,347.992,654.847,560.146,654.847,560.146,654.847,560.146,654.847,560.146,654.847,560.146,654.847,560.146,864.138,733.156,570.005,496.864,570.005,553.144,450,553.144,450,553.144,450,278,540.855,617.859,553.848,845,762.86,702.153,560.146,667,556,527.14,347.992,394.991,394.991,394.991,394.991,394.991,394.991,394.991,394.991,394.991,335.994,434.991,617.859,266.993,571.001,718.186,327.898,743.792,673.869,759.852,265.159,617.859,581.867,476.105,635.632,517.005,553.144,665.843,705.156,274.166,589.86,618.009,820.988,665.843,560.809,705.156,653.208,559.006,557.686,527.14,557.005,765.751,569.004,691.32,721.222,274.166,557.005,575.893,437.442,563.146,265.159,535.718,575.893,562.359,482.869,550.684,437.442,427.263,563.146,555.383,265.159,522.078,474.868,558.975,482.869,452.295,559.144,573.067,565.56,532,585.376,430.325,535.718,685.379,471.295,691.047,716.598,265.159,535.718,559.144,535.718,716.598,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,864.138,733.156,864.138,733.156,864.138,733.156,570.005,496.864,321.991,333,499.861,1e3,1e3,552,255.154,255.154,255.154,278,448,448,448,518.859,518.859,335.906,1e3,1260,240,479,267.995,266.993,604,333,143.007,396,556,556,1104,540.855,885,516,1146,698,768,816.87,834,834,834,834,999,500,1e3,500,1e3,500,500,565.837,612,651.808,561.088,596.019,568.177,752.115,979,722,337.091,596.187,596.187,583,596.187,596.187,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,592.83,604,604,604,604,354,1021,1052,917,750,750,531,656,594,510,500,750,750,611,611,333],Y=[274.091,284.352,392.112,590.661,538.914,818.209,800.3,230.079,301.751,301.751,416.821,684.098,216.929,399.893,216.929,389.884,538.914,538.914,538.914,538.914,538.914,538.914,538.914,538.914,538.914,538.914,216.929,216.929,684.098,684.098,684.098,448.119,954.953,645.029,573.246,618.999,701.011,505.866,488.409,686.18,709.798,266.274,356.935,580.083,470.576,897.941,747.876,754.069,560.067,754.069,598.004,531.259,524.061,686.853,621.104,934.23,589.848,552.743,570.46,301.941,379.136,301.941,683.736,414.926,268.062,508.651,587.731,461.915,588.704,522.807,313.178,588.704,565.763,242.004,242.004,497.07,242.004,861.322,565.763,585.779,587.731,588.704,347.649,424.315,339.071,565.763,479.005,722.491,458.985,483.885,452.15,301.772,239.473,301.772,684.098,284.172,538.914,538.914,555.511,538.914,239.473,448.119,414.052,890.355,391.967,505.721,684.098,890.355,414.856,377.044,684.296,366.203,366.203,282.221,576,457.916,216.929,205.075,351.065,430.386,505.721,906.266,930.686,952.169,448.358,645.029,645.029,645.029,645.029,645.029,645.029,860.35,618.999,505.866,505.866,505.866,505.866,266.274,266.274,266.274,266.274,701.011,747.876,754.069,754.069,754.069,754.069,754.069,684.098,754.069,686.853,686.853,686.853,686.853,552.743,560.067,544.089,508.651,508.651,508.651,508.651,508.651,508.651,831.882,461.915,522.807,522.807,522.807,522.807,242.333,242.333,242.333,242.333,558.93,565.763,585.779,585.779,585.779,585.779,585.779,684.296,586.09,565.763,565.763,565.763,565.763,483.885,587.731,483.885,645.029,508.651,645.029,508.651,645.029,508.651,618.999,461.915,618.999,461.915,618.999,461.915,618.999,461.915,701.011,674.594,701.011,588.704,505.866,522.807,505.866,522.807,505.866,522.807,505.866,522.807,505.866,522.807,686.18,588.704,686.18,588.704,686.18,588.704,778,556,709.798,565.763,709.798,565.763,266.274,242.333,266.274,242.333,266.274,242.333,266.274,242.004,266.274,242.333,623.162,495.286,356.935,242.004,667,500,497.07,470.576,242.004,556,222,470.576,307.651,470.576,314.955,470.576,273.719,747.876,565.763,722,556,747.876,565.763,605.951,747.9,565.763,754.069,585.779,754.069,585.779,754.069,585.779,930.66,927.886,598.004,347.649,722,333,598.004,347.649,531.259,424.315,531.259,424.315,531.259,424.315,531.259,424.315,611,278,524.061,439.942,524.061,339.071,686.853,565.763,686.853,565.763,686.853,565.763,686.853,565.763,686.853,565.763,686.853,565.763,934.23,722.491,552.743,483.885,552.743,570.46,452.15,570.46,452.15,570.46,452.15,241.028,538.914,645.029,508.651,860.35,831.882,754.069,586.09,667,500,524.061,339.071,371.085,371.085,310.053,303.703,201.169,280.266,185.055,336.906,324.212,272.454,272.454,644.555,216.929,570.18,774.027,378.628,800.355,666.626,825.688,266.4,645.029,573.246,471.865,644.56,505.866,570.46,709.798,754.069,266.274,580.083,628.935,897.941,747.876,509.841,754.069,712.722,560.067,515.974,524.061,552.743,754.046,589.848,775.464,755.33,266.274,552.743,614.125,438.186,575.037,266.4,552.858,614.125,547.665,519.045,584.36,438.186,441.975,575.037,586.263,266.4,523.925,498.045,576.973,525.88,445.07,585.779,627.003,586.093,460.512,574.532,487.28,552.858,698.745,538.188,750.112,808.351,266.4,552.858,585.779,552.858,808.351,505.866,667,865,542,719,667,278,278,500,1057,1010,854,583,748.851,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,522.807,556,556,365,510,500,222,278,222,906,812,556,438,581.477,500,552,778,556,489,411,934.23,722.491,934.23,722.491,934.23,722.491,552.743,483.885,333,399.893,499.861,1e3,1e3,414.856,228.831,228.831,228.831,228.831,376.943,376.943,376.943,374.9,374.9,406.137,732.91,1209.96,229.614,376.95,315.91,315.91,479.98,415.028,167,392.364,488.146,538.914,1110.607,538.914,885,323,1073,772.95,768,600,921.895,921.895,928.726,892.105,862.79,472.17,862.79,472.17,861.82,500,500,535.002,612,753.687,616.795,684.098,650.104,817.02,683.587,701.902,539.698,685.273,685.273,683.498,685.273,685.273,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,861.322,604,353.511,353.511,1e3,861.548,861.548,861.548,861.548,583.33,861.322,604,861.322,861.322,353.511,1021,1052,917,750,750,684.247,684.306,684.858,684.231,500,750,750,554.69,554.69,333],J=[276.046,327.139,493.036,592.123,575.037,867.033,849.411,293.223,369.131,369.131,454.893,707.049,271.161,404.289,271.161,443.627,575.037,575.037,575.037,575.037,575.037,575.037,575.037,575.037,575.037,575.037,270.989,270.989,707.049,707.049,707.049,438.105,954.008,702.961,640.963,623.88,737.133,532.233,520.157,711.092,765.934,317.087,445.189,648.775,511.364,957.025,789.854,758.464,614.267,758.464,652.681,560.553,586.09,722.975,667,1005.048,655.281,606.943,607.096,369.131,436.299,369.131,707.049,414.926,313.959,537.941,620.281,479.85,619.303,540.866,383.293,619.303,602.208,284.352,284.352,558.93,284.352,915.848,605.141,611.489,620.281,619.303,397.784,439.818,389.15,605.141,541.844,797.536,552.097,537.941,479.005,368.99,326.421,368.99,707.049,327.139,575.037,575.037,556,575.037,326.421,485.221,461.904,874.244,410.027,580.898,707.049,874.244,414.856,379.976,707.255,404.289,404.289,303.216,576,509.14,271.161,215.328,394.032,455.761,580.898,952.169,965.347,979.024,438.105,702.961,702.961,702.961,702.961,702.961,702.961,935.06,623.88,532.233,532.233,532.233,532.233,317.087,317.087,317.087,317.087,737.133,789.854,757.974,757.974,757.974,757.974,757.974,707.049,758.464,722.975,722.975,722.975,722.975,606.943,614.267,628.096,537.941,537.941,537.941,537.941,537.941,537.941,827.979,479.85,540.866,540.866,540.866,540.866,284.352,284.352,284.352,284.352,593.415,605.141,611,611,611,611,611,707.255,611.489,605.141,605.141,605.141,605.141,537.941,620.281,537.941,702.961,537.941,702.961,537.941,702.961,537.941,623.88,479.85,623.88,479.85,623.88,479.85,623.88,479.85,737.133,740.98,737.133,632.489,532.233,540.866,532.233,540.866,532.233,540.866,532.233,540.866,532.233,540.866,711.092,619.303,711.092,619.303,711.092,619.303,778,611,765.934,602.208,765.934,616.371,317.087,284.352,317.087,284.352,317.087,284.352,317.087,284.352,317.087,284.352,762.533,604.328,445.189,284.352,722,556,558.93,511.364,284.352,611,278,511.364,364.018,511.364,433.102,511.364,314.154,789.854,605.141,722,611,789.854,605.141,684.579,789.885,605.141,758.464,611.489,758.464,611.489,758.464,611.489,939.94,924.469,652.681,397.784,722,389,652.681,397.784,560.553,439.818,560.553,439.818,560.553,439.818,560.553,439.818,611,333,586.09,512.693,586.09,389.15,722.975,605.141,722.975,605.141,722.975,605.141,722.975,605.141,722.975,605.141,722.975,605.141,1005.048,797.536,606.943,537.941,606.943,607.096,479.005,607.096,479.005,607.096,479.005,299.498,575.037,702.961,537.941,935.06,827.979,758.464,611.489,667,556,586.09,389.15,383.293,383.293,336.906,346.183,252.923,270.989,266.107,383.293,406.24,316.886,408.34,730.296,271.478,654.763,889.393,479.375,846.005,779.579,863.886,328.324,702.961,640.963,511.655,703.369,532.233,607.096,765.934,758.464,317.087,648.775,692.88,957.025,789.854,554.091,758.464,764.959,614.267,568.758,586.09,606.943,815.631,655.281,826.086,765.854,317.087,606.943,636.98,462.712,611.489,328.324,620.575,636.98,621.712,566.742,611.369,463.272,464.876,611.489,612.352,328.324,570.706,548.677,612.979,553.559,477.205,611.489,692.724,618.511,487.776,613.206,548.959,620.575,750.628,554.504,790.575,831.81,328.324,620.575,611.489,620.575,831.81,532.233,669,885,567,711,667,278,276,556,1094,1062,875,610,790.345,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,540.866,556,611,417,552,556,278,281,278,969,906,611,500,627.7,556,604,778,611,487,447,1005.048,797.536,1005.048,797.536,1005.048,797.536,606.943,537.941,333,404.289,499.861,1e3,1e3,414.856,290.215,290.215,290.215,290.215,493.165,493.165,493.165,406.141,406.141,422.247,912.11,1256.35,293.28,493.159,344.229,344.229,580.076,415.028,167,445.318,519.877,575.037,1309.376,575.037,885,489,1115,771,768,600,965.347,965.347,965.347,925.306,862.79,472.17,862.79,472.17,861.82,500,500,577.471,612,790.78,642.677,707.049,650.104,812.627,683.587,701.495,576.329,708.232,708.232,706.433,708.232,708.232,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,861.322,604,353.511,353.511,1e3,861.548,861.548,861.548,861.548,587.238,861.322,604,861.322,861.322,353.511,1021,1052,917,750,750,684.247,684.306,684.858,684.231,500,750,750,667.169,667.169,333],Q=[275.07,319.041,374.046,590.661,538.914,823.09,769.538,226.171,304.192,304.192,417.798,685.079,217.905,399.893,217.905,396.236,538.914,538.914,538.914,538.914,538.914,538.914,538.914,538.914,538.914,538.914,217.905,217.905,685.079,685.079,685.079,430.06,959.835,631.842,573.246,639.013,711.748,499.029,488.898,688.133,707.842,266.274,346.19,599.62,462.764,817.864,750.801,754.069,575.201,754.069,581.896,497.075,526.016,688.802,627.934,929.349,590.829,554.204,569.971,304.382,386.464,304.382,684.712,414.926,349.114,541.844,541.844,436.035,541.844,486.683,295.1,541.844,556.979,258.594,240.053,490.235,258.594,857.898,561.86,535.011,541.844,541.844,354.971,395.02,323.436,557.952,473.145,720.051,455.08,483.885,452.15,304.214,240.451,304.214,685.079,318.841,538.914,538.914,556,538.914,240.451,448.119,349.114,909.406,435.897,514.022,685.079,890.355,348.963,377.044,685.273,366.203,366.203,349.114,576,457.916,216.929,349.114,366.203,446.49,514.022,916.032,946.799,960.951,430.291,631.842,631.842,631.842,631.842,631.842,631.842,854.98,639.013,499.029,499.029,499.029,499.029,266.274,266.274,266.274,266.274,711.748,750.801,754.069,754.069,754.069,754.069,754.069,685.079,754.069,688.802,688.802,688.802,688.802,554.204,575.201,540.179,541.844,541.844,541.844,541.844,541.844,541.844,826.023,436.035,486.683,486.683,486.683,486.683,258.946,258.946,258.946,258.946,521.828,561.86,535.011,535.011,535.011,535.011,535.011,685.273,535.297,557.952,557.952,557.952,557.952,483.885,541.844,483.885,631.842,541.844,631.842,541.844,631.842,541.844,639.013,436.035,639.013,436.035,639.013,436.035,639.013,436.035,711.748,596.194,711.748,541.844,499.029,486.683,499.029,486.683,499.029,486.683,499.029,486.683,499.029,486.683,688.133,541.844,688.133,541.844,688.133,541.844,778,556,707.842,556.979,707.842,556.979,266.274,258.946,266.274,258.946,266.274,258.946,266.274,258.594,266.274,258.946,618.806,500.659,346.19,240.053,667,500,490.235,462.764,258.594,556,222,471.06,294.659,471.06,315.02,462.764,274.694,750.801,561.86,722,556,750.801,561.86,606.206,750.828,561.86,754.069,535.011,754.069,535.011,754.069,535.011,923.83,851.214,581.896,354.971,722,333,581.896,354.971,497.075,395.02,497.075,395.02,497.075,395.02,497.075,395.02,611,278,526.016,363.767,524.061,323.436,688.802,557.952,688.802,557.952,688.802,557.952,688.802,557.952,688.802,557.952,688.802,557.952,929.349,720.051,554.204,483.885,554.204,569.971,452.15,569.971,452.15,569.971,452.15,292.747,538.914,631.842,541.844,854.98,826.023,754.069,535.297,667,500,526.016,323.436,349.114,349.114,349.114,349.114,349.114,349.114,349.114,349.114,349.114,272.943,272.943,631.842,216.929,560.364,768.87,327.425,793.023,671.205,819.439,266.4,631.842,573.246,471.909,644.63,499.029,569.971,707.842,754.069,266.274,599.62,655.768,817.864,750.801,509.419,754.069,707.905,575.201,516.45,526.016,554.204,753.986,590.829,808.53,770.771,266.274,554.204,625.632,456.56,573.548,266.4,587.125,625.632,560.751,519.045,584.339,456.56,441.535,573.548,571.273,266.4,510.74,497.855,573.888,506.35,459.212,535.011,600.655,560.297,454.77,571.753,488.739,587.125,729.106,545.023,768.55,804.395,266.4,587.125,535.011,587.125,804.395,499.029,667,843,544,708,667,278,278,500,1066,982,844,589,741.841,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,486.683,556,556,378,496,500,222,222,222,910,828,556,472,557.683,500,556,778,556,492,339,929.349,720.051,929.349,720.051,929.349,720.051,554.204,483.885,333,399.893,499.861,1e3,1e3,414.856,210.778,210.778,210.778,210.778,374.016,374.016,374.016,375.873,375.873,404.674,735.84,1211.91,229.614,376.95,315.91,315.91,479.98,415.028,167,392.364,487.662,538.914,1110.115,538.914,885,323,1083,772.95,768,600,916.032,916.032,916.032,846.693,863.21,472.17,863.17,472.17,861.82,500,500,535.002,612,753.687,616.303,685.079,650.104,817.02,683.587,701.902,539.207,685.273,685.273,685.079,685.273,685.273,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,861.322,604,353.511,353.511,1e3,861.548,861.548,861.548,861.548,582.841,861.322,604,861.322,861.322,353.511,1021,1052,917,750,750,684.247,684.306,684.858,684.231,500,750,750,553.71,553.71,333],Z=[275.07,346.183,493.036,571.618,576.016,868.011,801.081,293.223,370.11,370.11,454.893,708.024,271.161,403.799,271.161,444.116,576.016,576.016,576.016,576.016,576.016,576.016,576.016,576.016,576.016,576.016,270.989,270.989,708.024,708.024,708.024,449.336,954.008,702.961,647.8,634.616,752.757,529.791,521.134,709.139,763.984,317.087,442.748,650.724,512.342,869.619,798.64,758.955,629.888,758.955,639.988,537.115,587.067,722.975,667,1007.975,654.794,607.917,607.096,370.11,437.275,370.11,708.024,414.926,438.954,592.613,592.927,461.786,592.927,519.877,374.991,592.927,598.303,317.576,262.855,561.86,317.576,910.967,598.303,575.348,592.927,592.927,399.736,438.845,374.991,598.303,533.059,795.093,547.699,537.941,485.84,369.966,326.421,369.966,708.024,346.183,576.016,576.016,556,576.016,326.421,485.705,438.954,875.217,469.09,585.779,708.024,874.244,438.768,379.976,708.232,413.077,413.077,438.954,576,508.651,271.161,438.954,377.922,455.761,585.779,950.21,963.887,979.024,449.336,702.961,702.961,702.961,702.961,702.961,702.961,943.85,634.616,529.791,529.791,529.791,529.791,317.087,317.087,317.087,317.087,752.757,798.64,758.955,758.955,758.955,758.955,758.955,708.024,758.955,722.975,722.975,722.975,722.975,607.917,629.888,603.185,592.613,592.613,592.613,592.613,592.613,592.613,859.707,461.786,519.877,519.877,519.877,519.877,317.576,317.576,317.576,317.576,568.994,598.303,575.348,575.348,575.348,575.348,575.348,708.232,575.348,598.303,598.303,598.303,598.303,537.941,592.927,537.941,702.961,592.613,702.961,592.613,702.961,592.613,634.616,461.786,634.616,461.786,634.616,461.786,634.616,461.786,752.757,742.442,752.757,592.927,529.791,519.877,529.791,519.877,529.791,519.877,529.791,519.877,529.791,519.877,709.139,592.927,709.139,592.927,709.139,592.927,778,611,763.984,598.303,763.984,598.303,317.087,317.576,317.087,317.576,317.087,317.576,317.087,317.576,317.087,317.576,761.989,579.919,442.748,282.398,722,556,561.86,512.342,317.576,611,278,512.342,432.135,512.342,433.102,512.342,332.232,798.64,598.303,722,611,798.64,598.303,715.321,798.669,598.303,758.955,575.348,758.955,575.348,758.955,575.348,916.02,868.301,639.988,399.736,722,389,639.988,399.736,537.115,438.845,537.115,438.845,537.115,438.845,537.115,438.845,611,333,587.067,504.88,586.09,389.15,722.975,598.303,722.975,598.303,722.975,598.303,722.975,598.303,722.975,598.303,722.975,598.303,1007.975,795.093,607.917,537.941,607.917,607.096,485.84,607.096,485.84,607.096,485.84,342.493,576.016,702.961,592.613,943.85,859.707,758.955,575.348,667,556,587.067,374.991,438.954,438.954,438.954,438.954,438.954,438.954,438.954,438.954,438.954,316.886,423.33,727.855,277.336,663.575,898.181,450.547,873.287,801.121,908.026,317.576,702.961,647.8,529.901,736.879,529.791,607.096,763.984,758.955,317.087,650.724,711.436,869.619,798.64,557.911,758.955,751.703,629.888,578.289,587.067,607.917,824.926,654.794,845.124,773.182,317.087,607.917,650.758,474.114,614.904,317.576,635.408,650.758,618.559,572.107,614.88,474.114,468.059,614.904,620.055,317.576,568.932,544.774,616.182,556,488.601,575.348,707.116,595.241,494.909,620.023,552.661,635.408,779.236,540.378,805.713,836.927,317.576,635.408,575.348,635.408,836.927,529.791,667,886,614,719,667,278,278,556,1094,1042,854,622,784.407,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,519.877,556,611,469,563,556,278,278,278,969,906,611,507,598.01,556,611,778,611,575,467,1007.975,795.093,1007.975,795.093,1007.975,795.093,607.917,537.941,333,403.799,499.861,1e3,1e3,414.856,291.191,291.191,291.191,290.215,493.165,493.165,493.165,405.652,405.652,421.757,914.06,1265.14,293.28,493.159,344.229,344.229,580.076,415.028,167,432.135,518.898,574.548,1286.613,576.016,885,516,1146,771,768,600,963.887,963.887,963.887,963.887,862.776,472.17,862.79,472.17,862.24,500,500,576.982,612,790.78,642.185,708.024,650.104,812.136,683.587,701.495,576.329,708.232,708.232,707.406,708.232,708.232,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,861.322,604,353.511,353.511,1e3,861.548,861.548,861.548,861.548,586.749,861.322,604,861.322,861.322,353.511,1021,1052,917,750,750,684.247,684.306,684.858,684.231,500,750,750,692.074,692.074,333];var ee=a(5632),te=a(720);const ae={lineHeight:1.2,lineGap:.2},ne={lineHeight:1.35,lineGap:.2},se=(0,h.getLookupTableFactory)(function(e){const t=[["Regular","Helvetica"],["Bold","Helvetica-Bold"],["Italic","Helvetica-Oblique"],["BoldItalic","Helvetica-BoldOblique"]];for(const[a,n,s]of[["Arial",[O,M,R,D],null],["Calibri",[H,N,E,z],{lineHeight:1.2207,lineGap:.2207}],["Helvetica",[L,$,U,G],ae],["MyriadPro",[W,X,K,V],ae],["Segoeui",[Y,J,Q,Z],{lineHeight:1.33008,lineGap:0}]])for(const[r,[i,o]]of t.entries()){const t={name:o,widths:n[r]};s&&(t.metrics="Helvetica"===a&&r>=2?ne:s);e[`${a}-${i}`]=t}for(const[a]of t)e[`PdfJS-Fallback-${a}`]=e[`MyriadPro-${a}`];e["MyriadPro-It"]=e["MyriadPro-Italic"];e["MyriadPro-BoldIt"]=e["MyriadPro-BoldItalic"];e.ArialMT=e.Arial=e["Arial-Regular"];e["Arial-BoldMT"]=e["Arial-Bold"];e["Arial-ItalicMT"]=e["Arial-Italic"];e["Arial-BoldItalicMT"]=e["Arial-BoldItalic"];e.Helvetica=e["Helvetica-Regular"]});function getXfaFontName(e){return se()[(0,te.normalizeFontName)(e)]}function getXfaFontDict(e){const{widths:t}=getXfaFontName(e),a=[];for(let e=0,n=0,s=T.length;e<s;e+=2){const s=T[e+1];a.push(T[e],t.slice(n,n+s));n+=s}const n=new ee.Dict(null);n.set("BaseFont",ee.Name.get(e));n.set("Type",ee.Name.get("Font"));n.set("Subtype",ee.Name.get("CIDFontType2"));n.set("Encoding",ee.Name.get("Identity-H"));n.set("CIDToGIDMap",ee.Name.get("Identity"));n.set("W",a);n.set("FirstChar",a[0]);n.set("LastChar",a.at(-2)+a.at(-1).length-1);const s=new ee.Dict(null);n.set("FontDescriptor",s);const r=new ee.Dict(null);r.set("Ordering","Identity");r.set("Registry","Adobe");r.set("Supplement",0);n.set("CIDSystemInfo",r);return n}class XFAFactory{constructor(e){try{this.root=(new XFAParser).parse(XFAFactory._createDocument(e));const t=new Binder(this.root);this.form=t.bind();this.dataHandler=new DataHandler(this.root,t.getData());this.form[n.$globalData].template=this.form}catch(e){(0,c.warn)(`XFA - an error occurred during parsing and binding: ${e}`)}}isValid(){return!(!this.root||!this.form)}_createPagesHelper(){const e=this.form[n.$toPages]();return new Promise((t,a)=>{const nextIteration=()=>{try{const a=e.next();a.done?t(a.value):setTimeout(nextIteration,0)}catch(e){a(e)}};setTimeout(nextIteration,0)})}async _createPages(){try{this.pages=await this._createPagesHelper();this.dims=this.pages.children.map(e=>{const{width:t,height:a}=e.attributes.style;return[0,0,parseInt(t,10),parseInt(a,10)]})}catch(e){(0,c.warn)(`XFA - an error occurred during layout: ${e}`)}}getBoundingBox(e){return this.dims[e]}async getNumPages(){this.pages||await this._createPages();return this.dims.length}setImages(e){this.form[n.$globalData].images=e}setFonts(e){this.form[n.$globalData].fontFinder=new f.FontFinder(e);const t=[];for(let e of this.form[n.$globalData].usedTypefaces){e=(0,l.stripQuotes)(e);this.form[n.$globalData].fontFinder.find(e)||t.push(e)}return t.length>0?t:null}appendFonts(e,t){this.form[n.$globalData].fontFinder.add(e,t)}async getPages(){this.pages||await this._createPages();const e=this.pages;this.pages=null;return e}serializeData(e){return this.dataHandler.serialize(e)}static _createDocument(e){return e.get("/xdp:xdp")?e.values().join(""):e.get("xdp:xdp")}}},4028(e,t,a){a.d(t,{FontFinder:()=>FontFinder,getMetrics:()=>getMetrics,selectFont:()=>selectFont});var n=a(1723),s=a(1318),r=a(8063);class FontFinder{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.italic||e.bold||e.bolditalic;if(!t||0===t.size)return;const a=this.fonts.get("PdfJS-Fallback-PdfJS-XFA");for(const e of t)this.fonts.set(e,a)}addPdfFont(e){const t=e.cssFontInfo,a=t.fontFamily,s=this.fonts.getOrInsertComputed(a,n.makeObj);this.defaultFont??=s;let r="";const i=parseFloat(t.fontWeight);0!==parseFloat(t.italicAngle)?r=i>=700?"bolditalic":"italic":i>=700&&(r="bold");if(!r){(e.name.includes("Bold")||e.psName?.includes("Bold"))&&(r="bold");(e.name.includes("Italic")||e.name.endsWith("It")||e.psName?.includes("Italic")||e.psName?.endsWith("It"))&&(r+="italic")}r||="regular";s[r]=e}getDefault(){return this.defaultFont}find(e,t=!0){let a=this.fonts.get(e)||this.cache.get(e);if(a)return a;const s=/[,\-_ ]|bolditalic|bold|italic|regular|it/gi;let r=e.replaceAll(s,"");a=this.fonts.get(r);if(a){this.cache.set(e,a);return a}r=r.toLowerCase();const i=[];for(const[e,t]of this.fonts)e.replaceAll(s,"").toLowerCase().startsWith(r)&&i.push(t);if(0===i.length)for(const e of this.fonts.values())e.regular.name?.replaceAll(s,"").toLowerCase().startsWith(r)&&i.push(e);if(0===i.length){r=r.replaceAll(/psmt|mt/gi,"");for(const[e,t]of this.fonts)e.replaceAll(s,"").toLowerCase().startsWith(r)&&i.push(t)}if(0===i.length)for(const e of this.fonts.values())e.regular.name?.replaceAll(s,"").toLowerCase().startsWith(r)&&i.push(e);if(i.length>=1){1!==i.length&&t&&(0,n.warn)(`XFA - Too many choices to guess the correct font: ${e}`);this.cache.set(e,i[0]);return i[0]}if(t&&!this.warned.has(e)){this.warned.add(e);(0,n.warn)(`XFA - Cannot find the font: ${e}`)}return null}}function selectFont(e,t){return"italic"===e.posture?"bold"===e.weight?t.bolditalic:t.italic:"bold"===e.weight?t.bold:t.regular}function getMetrics(e,t=!1){let a=null;if(e){const t=(0,r.stripQuotes)(e.typeface),n=e[s.$globalData].fontFinder.find(t);a=selectFont(e,n)}if(!a)return{lineHeight:12,lineGap:2,lineNoGap:10};const n=e.size||10,i=a.lineHeight?Math.max(t?0:1.2,a.lineHeight):1.2,o=void 0===a.lineGap?.2:a.lineGap;return{lineHeight:i*n,lineGap:o*n,lineNoGap:Math.max(1,i-o)*n}}},1037(e,t,a){a.d(t,{computeBbox:()=>computeBbox,createWrapper:()=>createWrapper,fixDimensions:()=>fixDimensions,fixTextIndent:()=>fixTextIndent,fixURL:()=>fixURL,isPrintOnly:()=>isPrintOnly,layoutClass:()=>layoutClass,layoutNode:()=>layoutNode,measureToString:()=>measureToString,setAccess:()=>setAccess,setFontFamily:()=>setFontFamily,setMinMaxDimensions:()=>setMinMaxDimensions,setPara:()=>setPara,toStyle:()=>toStyle});var n=a(1318),s=a(1723),r=a(8063),i=a(4028),o=a(5075);class FontInfo{constructor(e,t,a,n){this.lineHeight=a;this.paraMargin=t||{top:0,bottom:0,left:0,right:0};if(!e){[this.pdfFont,this.xfaFont]=this.defaultFont(n);return}this.xfaFont={typeface:e.typeface,posture:e.posture,weight:e.weight,size:e.size,letterSpacing:e.letterSpacing};const s=n.find(e.typeface);if(s){this.pdfFont=(0,i.selectFont)(e,s);this.pdfFont||([this.pdfFont,this.xfaFont]=this.defaultFont(n))}else[this.pdfFont,this.xfaFont]=this.defaultFont(n)}defaultFont(e){const 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 FontSelector{constructor(e,t,a,n){this.fontFinder=n;this.stack=[new FontInfo(e,t,a,n)]}pushData(e,t,a){const n=this.stack.at(-1);for(const t of["typeface","posture","weight","size","letterSpacing"])e[t]||=n.xfaFont[t];for(const e of["top","bottom","left","right"])isNaN(t[e])&&(t[e]=n.paraMargin[e]);const s=new FontInfo(e,t,a||n.lineHeight,this.fontFinder);s.pdfFont||=n.pdfFont;this.stack.push(s)}popFont(){this.stack.pop()}topFont(){return this.stack.at(-1)}}class TextMeasure{constructor(e,t,a,n){this.glyphs=[];this.fontSelector=new FontSelector(e,t,a,n);this.extraHeight=0}pushData(e,t,a){this.fontSelector.pushData(e,t,a)}popFont(e){return this.fontSelector.popFont()}addPara(){const e=this.fontSelector.topFont();this.extraHeight+=e.paraMargin.top+e.paraMargin.bottom}addString(e){if(!e)return;const t=this.fontSelector.topFont(),a=t.xfaFont.size;if(t.pdfFont){const n=t.xfaFont.letterSpacing,s=t.pdfFont,r=s.lineHeight||1.2,i=t.lineHeight||Math.max(1.2,r)*a,o=r-(void 0===s.lineGap?.2:s.lineGap),l=Math.max(1,o)*a,c=a/1e3,f=s.defaultWidth||s.charsToGlyphs(" ")[0].width;for(const t of e.split(/[\u2029\n]/)){const e=s.encodeString(t).join(""),a=s.charsToGlyphs(e);for(const e of a){const t=e.width||f;this.glyphs.push([t*c+n,i,l,e.unicode,!1])}this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop();return}for(const t of e.split(/[\u2029\n]/)){for(const e of t.split(""))this.glyphs.push([a,1.2*a,a,e,!1]);this.glyphs.push([0,0,0,"\n",!0])}this.glyphs.pop()}compute(e){let t=-1,a=0,n=0,s=0,r=0,i=0,o=!1,l=!0;for(let c=0,f=this.glyphs.length;c<f;c++){const[f,h,u,d,m]=this.glyphs[c],g=" "===d,b=l?u:h;if(m){n=Math.max(n,r);r=0;s+=i;i=b;t=-1;a=0;l=!1}else if(g)if(r+f>e){n=Math.max(n,r);r=0;s+=i;i=b;t=-1;a=0;o=!0;l=!1}else{i=Math.max(b,i);a=r;r+=f;t=c}else if(r+f>e){s+=i;i=b;if(-1!==t){c=t;n=Math.max(n,a);r=0;t=-1;a=0}else{n=Math.max(n,r);r=f}o=!0;l=!1}else{r+=f;i=Math.max(b,i)}}n=Math.max(n,r);s+=i+this.extraHeight;return{width:1.02*n,height:s,isBroken:o}}}var l=a(7485);function measureToString(e){return"string"==typeof e?"0px":Number.isInteger(e)?`${e}px`:`${e.toFixed(2)}px`}const c={anchorType(e,t){const a=e[n.$getSubformParent]();if(a&&(!a.layout||"position"===a.layout)){"transform"in t||(t.transform="");switch(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(e,t){const a=e[n.$getSubformParent]();let s=e.w;const r=e.h;if(a.layout?.includes("row")){const t=a[n.$extra],r=e.colSpan;let i;if(-1===r){i=Math.sumPrecise(t.columnWidths.slice(t.currentColumn));t.currentColumn=0}else{i=Math.sumPrecise(t.columnWidths.slice(t.currentColumn,t.currentColumn+r));t.currentColumn=(t.currentColumn+e.colSpan)%t.columnWidths.length}isNaN(i)||(s=e.w=i)}t.width=""!==s?measureToString(s):"auto";t.height=""!==r?measureToString(r):"auto"},position(e,t){const a=e[n.$getSubformParent]();if(!a?.layout||"position"===a.layout){t.position="absolute";t.left=measureToString(e.x);t.top=measureToString(e.y)}},rotate(e,t){if(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[n.$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[n.$toStyle]().margin)}};function setMinMaxDimensions(e,t){if("position"===e[n.$getSubformParent]().layout){e.minW>0&&(t.minWidth=measureToString(e.minW));e.maxW>0&&(t.maxWidth=measureToString(e.maxW));e.minH>0&&(t.minHeight=measureToString(e.minH));e.maxH>0&&(t.maxHeight=measureToString(e.maxH))}}function layoutText(e,t,a,s,r,i){const o=new TextMeasure(t,a,s,r);"string"==typeof e?o.addString(e):e[n.$pushGlyphs](o);return o.compute(i)}function layoutNode(e,t){let a=null,s=null,r=!1;if((!e.w||!e.h)&&e.value){let i=0,o=0;if(e.margin){i=e.margin.leftInset+e.margin.rightInset;o=e.margin.topInset+e.margin.bottomInset}let l=null,c=null;if(e.para){c=Object.create(null);l=""===e.para.lineHeight?null:e.para.lineHeight;c.top=""===e.para.spaceAbove?0:e.para.spaceAbove;c.bottom=""===e.para.spaceBelow?0:e.para.spaceBelow;c.left=""===e.para.marginLeft?0:e.para.marginLeft;c.right=""===e.para.marginRight?0:e.para.marginRight}let f=e.font;if(!f){const t=e[n.$getTemplateRoot]();let a=e[n.$getParent]();for(;a&&a!==t;){if(a.font){f=a.font;break}a=a[n.$getParent]()}}const h=(e.w||t.width)-i,u=e[n.$globalData].fontFinder;if(e.value.exData&&e.value.exData[n.$content]&&"text/html"===e.value.exData.contentType){const t=layoutText(e.value.exData[n.$content],f,c,l,u,h);s=t.width;a=t.height;r=t.isBroken}else{const t=e.value[n.$text]();if(t){const e=layoutText(t,f,c,l,u,h);s=e.width;a=e.height;r=e.isBroken}}null===s||e.w||(s+=i);null===a||e.h||(a+=o)}return{w:s,h:a,isBroken:r}}function computeBbox(e,t,a){let s;if(""!==e.w&&""!==e.h)s=[e.x,e.y,e.w,e.h];else{if(!a)return null;let r=e.w;if(""===r){if(0===e.maxW){const t=e[n.$getSubformParent]();r="position"===t.layout&&""!==t.w?0:e.minW}else r=Math.min(e.maxW,a.width);t.attributes.style.width=measureToString(r)}let i=e.h;if(""===i){if(0===e.maxH){const t=e[n.$getSubformParent]();i="position"===t.layout&&""!==t.h?0:e.minH}else i=Math.min(e.maxH,a.height);t.attributes.style.height=measureToString(i)}s=[e.x,e.y,r,i]}return s}function fixDimensions(e){const t=e[n.$getSubformParent]();if(t.layout?.includes("row")){const a=t[n.$extra],s=e.colSpan;let r;r=-1===s?Math.sumPrecise(a.columnWidths.slice(a.currentColumn)):Math.sumPrecise(a.columnWidths.slice(a.currentColumn,a.currentColumn+s));isNaN(r)||(e.w=r)}t.layout&&"position"!==t.layout&&(e.x=e.y=0);"table"===e.layout&&""===e.w&&Array.isArray(e.columnWidths)&&(e.w=Math.sumPrecise(e.columnWidths))}function layoutClass(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"}}function toStyle(e,...t){const a=Object.create(null);for(const r of t){const t=e[r];if(null!==t)if(Object.hasOwn(c,r))c[r](e,a);else if(t instanceof l.XFAObject){const e=t[n.$toStyle]();e?Object.assign(a,e):(0,s.warn)(`(DEBUG) - XFA - style for ${r} not implemented yet`)}}return a}function createWrapper(e,t){const{attributes:a}=t,{style:s}=a,r={name:"div",attributes:{class:["xfaWrapper"],style:Object.create(null)},children:[]};a.class.push("xfaWrapped");if(e.border){const{widths:a,insets:i}=e.border[n.$extra];let o,l,c=i[0],f=i[3];const h=i[0]+i[2],u=i[1]+i[3];switch(e.border.hand){case"even":c-=a[0]/2;f-=a[3]/2;o=`calc(100% + ${(a[1]+a[3])/2-u}px)`;l=`calc(100% + ${(a[0]+a[2])/2-h}px)`;break;case"left":c-=a[0];f-=a[3];o=`calc(100% + ${a[1]+a[3]-u}px)`;l=`calc(100% + ${a[0]+a[2]-h}px)`;break;case"right":o=u?`calc(100% - ${u}px)`:"100%";l=h?`calc(100% - ${h}px)`:"100%"}const d=["xfaBorder"];isPrintOnly(e.border)&&d.push("xfaPrintOnly");const m={name:"div",attributes:{class:d,style:{top:`${c}px`,left:`${f}px`,width:o,height:l}},children:[]};for(const e of["border","borderWidth","borderColor","borderRadius","borderStyle"])if(void 0!==s[e]){m.attributes.style[e]=s[e];delete s[e]}r.children.push(m,t)}else r.children.push(t);for(const e of["background","backgroundClip","top","left","width","height","minWidth","minHeight","maxWidth","maxHeight","transform","transformOrigin","visibility"])if(void 0!==s[e]){r.attributes.style[e]=s[e];delete s[e]}r.attributes.style.position="absolute"===s.position?"absolute":"relative";delete s.position;if(s.alignSelf){r.attributes.style.alignSelf=s.alignSelf;delete s.alignSelf}return r}function fixTextIndent(e){const t=(0,r.getMeasurement)(e.textIndent,"0px");if(t>=0)return;const a="padding"+("left"===("right"===e.textAlign?"right":"left")?"Left":"Right"),n=(0,r.getMeasurement)(e[a],"0px");e[a]=n-t+"px"}function setAccess(e,t){switch(e.access){case"nonInteractive":t.push("xfaNonInteractive");break;case"readOnly":t.push("xfaReadOnly");break;case"protected":t.push("xfaDisabled")}}function isPrintOnly(e){return e.relevant.length>0&&!e.relevant[0].excluded&&"print"===e.relevant[0].viewname}function getCurrentPara(e){const t=e[n.$getTemplateRoot]()[n.$extra].paraStack;return t.length?t.at(-1):null}function setPara(e,t,a){if(a.attributes.class?.includes("xfaRich")){if(t){""===e.h&&(t.height="auto");""===e.w&&(t.width="auto")}const s=getCurrentPara(e);if(s){const e=a.attributes.style;e.display="flex";e.flexDirection="column";switch(s.vAlign){case"top":e.justifyContent="start";break;case"bottom":e.justifyContent="end";break;case"middle":e.justifyContent="center"}const t=s[n.$toStyle]();for(const[a,n]of Object.entries(t))a in e||(e[a]=n)}}}function setFontFamily(e,t,a,n){if(!a){delete n.fontFamily;return}const s=(0,r.stripQuotes)(e.typeface);n.fontFamily=(0,o.serializeFontFamily)(s);const l=a.find(s);if(l){const{fontFamily:a}=l.regular.cssFontInfo;a!==s&&(n.fontFamily=(0,o.serializeFontFamily)(a));const r=getCurrentPara(t);if(r&&""!==r.lineHeight)return;if(n.lineHeight)return;const c=(0,i.selectFont)(e,l);c&&(n.lineHeight=Math.max(1.2,c.lineHeight))}}function fixURL(e){const t=(0,s.createValidAbsoluteUrl)(e,null,{addDefaultProtocol:!0,tryConvertEncoding:!0});return t?t.href:null}},7088(e,t,a){const n=Symbol();a.d(t,["$buildXFAObject",0,n,"NamespaceIds",0,{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}}])},950(e,t,a){a.d(t,{XFAParserBase:()=>XFAParserBase});var n=a(1318),s=a(3103),r=a(7088),i=a(1723),o=a(7485);class UnknownNamespace{constructor(e){this.namespaceId=e}[r.$buildXFAObject](e,t){return new o.XmlObject(this.namespaceId,e,t)}}class Empty extends o.XFAObject{constructor(){super(-1,"",Object.create(null))}[n.$onChild](e){return!1}}class Builder{constructor(e,t){this._namespaceSetup=e;this._namespaceStack=[];this._nsAgnosticLevel=0;this._namespacePrefixes=new Map;this._namespaces=new Map;this._nextNsId=Math.max(...Object.values(r.NamespaceIds).map(({id:e})=>e));this._currentNamespace=t||new UnknownNamespace(++this._nextNsId)}build({nsPrefix:e,name:t,attributes:a,namespace:s,prefixes:i}){const o=null!==s;if(o){this._namespaceStack.push(this._currentNamespace);this._currentNamespace=this._searchNamespace(s)}i&&this._addNamespacePrefix(i);if(Object.hasOwn(a,n.$nsAttributes)){const e=this._namespaceSetup.datasets,t=a[n.$nsAttributes];let s=null;for(const[a,n]of Object.entries(t)){const t=this._getNamespaceToUse(a);if(e&&t===e){s={xfa:n};break}}s?a[n.$nsAttributes]=s:delete a[n.$nsAttributes]}const l=this._getNamespaceToUse(e),c=l?.[r.$buildXFAObject](t,a)||new Empty;c[n.$isNsAgnostic]()&&this._nsAgnosticLevel++;(o||i||c[n.$isNsAgnostic]())&&(c[n.$cleanup]={hasNamespace:o,prefixes:i,nsAgnostic:c[n.$isNsAgnostic]()});return c}isNsAgnostic(){return this._nsAgnosticLevel>0}_searchNamespace(e){let t=this._namespaces.get(e);if(t)return t;for(const[a,{check:n}]of Object.entries(r.NamespaceIds))if(n(e)){t=this._namespaceSetup[a];if(t){this._namespaces.set(e,t);return t}break}t=new UnknownNamespace(++this._nextNsId);this._namespaces.set(e,t);return t}_addNamespacePrefix(e){for(const{prefix:t,value:a}of e){const e=this._searchNamespace(a);this._namespacePrefixes.getOrInsertComputed(t,i.makeArr).push(e)}}_getNamespaceToUse(e){if(!e)return this._currentNamespace;const t=this._namespacePrefixes.get(e);if(t?.length>0)return t.at(-1);(0,i.warn)(`Unknown namespace prefix: ${e}.`);return null}clean(e){const{hasNamespace:t,prefixes:a,nsAgnostic:n}=e;t&&(this._currentNamespace=this._namespaceStack.pop());a?.forEach(({prefix:e})=>{this._namespacePrefixes.get(e).pop()});n&&this._nsAgnosticLevel--}}function _classPrivateMethodInitSpec(e,t){(function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.add(e)}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}class Root extends o.XFAObject{constructor(){super(-1,"root",Object.create(null));this.element=null}[n.$onChild](e){this.element=e;return!0}}var l=new WeakSet;class XFAParserBase extends s.XMLParserBase{constructor({namespaces:e,templateClass:t,rootNamespace:a,richText:n=!1}){super();_classPrivateMethodInitSpec(this,l);this._xfaOptions={namespaces:e,templateClass:t};this._builder=new Builder(e,a);this._stack=[];this._globalData={usedTypefaces:new Set};this._ids=new Map;this._current=new Root;this._errorCode=s.XMLParserErrorCode.NoError;this._whiteRegex=/^\s+$/;this._nbsps=/\xa0+/g;this._richText=n}parse(e){this.parseXml(e);if(this._errorCode!==s.XMLParserErrorCode.NoError)return;const t=this._current.element,{templateClass:a}=this._xfaOptions;if(a&&t?.template instanceof a){this._ids.set(n.$root,t);t.template[n.$resolvePrototypes](this._ids);t.template[n.$ids]=this._ids}return t}onText(e){e=e.replace(this._nbsps,e=>e.slice(1)+" ");this._richText||this._current[n.$acceptWhitespace]()?this._current[n.$onText](e,this._richText):this._whiteRegex.test(e)||this._current[n.$onText](e.trim())}onCdata(e){this._current[n.$onText](e)}_mkAttributes(e,t){let a=null,s=null;const r=Object.create({});for(const{name:o,value:l}of e)if("xmlns"===o)a?(0,i.warn)(`XFA - multiple namespace definition in <${t}>`):a=l;else if(o.startsWith("xmlns:")){const e=o.substring(6);s??=[];s.push({prefix:e,value:l})}else{const e=o.indexOf(":");if(-1===e)r[o]=l;else{const t=r[n.$nsAttributes]??=Object.create(null),[a,s]=[o.slice(0,e),o.slice(e+1)];(t[a]||=Object.create(null))[s]=l}}return[a,s,r]}_getNameAndPrefix(e,t){const a=e.indexOf(":");return-1===a?[e,null]:[e.substring(a+1),t?"":e.substring(0,a)]}onBeginElement(e,t,a){const[s,r,i]=this._mkAttributes(t,e),[o,c]=this._getNameAndPrefix(e,this._builder.isNsAgnostic()),f=this._builder.build({nsPrefix:c,name:o,attributes:i,namespace:s,prefixes:r});f[n.$globalData]=this._globalData;if(a)_assertClassBrand(l,this,_appendNode).call(this,f);else{this._stack.push(this._current);this._current=f}}onEndElement(){const e=this._current;if(e[n.$isCDATAXml]()&&"string"==typeof e[n.$content]){const t=new XFAParserBase(this._xfaOptions);t._globalData=this._globalData;const a=t.parse(e[n.$content]);e[n.$content]=null;e[n.$onChild](a)}this._current=this._stack.pop();_assertClassBrand(l,this,_appendNode).call(this,e)}onError(e){this._errorCode=e}}function _appendNode(e){e[n.$finalize]();this._current[n.$onChild](e)&&e[n.$setId](this._ids);e[n.$clean](this._builder)}},3874(e,t,a){a.d(t,{getRichTextAsHtml:()=>getRichTextAsHtml});var n=a(1318),s=a(1723),r=a(950),i=a(407);function getRichTextAsHtml(e){try{let t=new r.XFAParserBase({namespaces:{xhtml:i.XhtmlNamespace},rootNamespace:i.XhtmlNamespace,richText:!0}).parse(e);if(!["body","xhtml"].includes(t[n.$nodeName])){const e=i.XhtmlNamespace.body({});e[n.$appendChild](t);t=e}const a=t[n.$toHTML]();if(!a.success)return null;const{html:s}=a,{attributes:o}=s;if(o){o.class&&=o.class.filter(e=>!e.startsWith("xfa"));o.dir="auto"}return{html:s,str:t[n.$text]()}}catch(e){(0,s.warn)(`XFA - an error occurred during parsing of rich text: ${e}`)}return null}},4104(e,t,a){a.d(t,{createDataNode:()=>createDataNode,searchNode:()=>searchNode});var n=a(1318),s=a(1723);const r=/^[^.[]+/,i=/^[^\]]+/,o=0,l=1,c=2,f=3,h=4,u=new Map([["$data",(e,t)=>e.datasets?e.datasets.data:e],["$record",(e,t)=>(e.datasets?e.datasets.data:e)[n.$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]]),d=new WeakMap;function parseIndex(e){return"*"===(e=e.trim())?1/0:parseInt(e,10)||0}function parseExpression(e,t,a=!0){let n=e.match(r);if(!n)return null;let[u]=n;const d=[{name:u,cacheName:"."+u,index:0,js:null,formCalc:null,operator:o}];let m=u.length;for(;m<e.length;){const g=m;if("["===e.charAt(m++)){n=e.slice(m).match(i);if(!n){(0,s.warn)("XFA - Invalid index in SOM expression");return null}d.at(-1).index=parseIndex(n[0]);m+=n[0].length+1;continue}let b;switch(e.charAt(m)){case".":if(!t)return null;m++;b=l;break;case"#":m++;b=c;break;case"[":if(a){(0,s.warn)("XFA - SOM expression contains a FormCalc subexpression which is not supported for now.");return null}b=f;break;case"(":if(a){(0,s.warn)("XFA - SOM expression contains a JavaScript subexpression which is not supported for now.");return null}b=h;break;default:b=o}n=e.slice(m).match(r);if(!n)break;[u]=n;m+=u.length;d.push({name:u,cacheName:e.slice(g,m),operator:b,index:0,js:null,formCalc:null})}return d}function searchNode(e,t,a,r=!0,i=!0){const f=parseExpression(a,r);if(!f)return null;const h=u.get(f[0].name);let m,g=0;if(h){m=!0;e=[h(e,t)];g=1}else{m=null===t;e=[t||e]}for(let a=f.length;g<a;g++){const{name:a,cacheName:r,operator:h,index:u}=f[g],b=[];for(const t of e){if(!t.isXFAObject)continue;let e,f;if(i){f=d.getOrInsertComputed(t,s.makeMap);e=f.get(r)}if(!e){switch(h){case o:e=t[n.$getChildrenByName](a,!1);break;case l:e=t[n.$getChildrenByName](a,!0);break;case c:e=t[n.$getChildrenByClass](a);e=e.isXFAObjectArray?e.children:[e]}i&&f.set(r,e)}e.length>0&&b.push(e)}if(0===b.length&&!m&&0===g){const a=t[n.$getParent]();if(!(t=a))return null;g=-1;e=[t];continue}e=isFinite(u)?b.filter(e=>u<e.length).map(e=>e[u]):b.flat()}return 0===e.length?null:e}function createDataNode(e,t,a){const r=parseExpression(a);if(!r||r.some(e=>e.operator===l))return null;const i=u.get(r[0].name);let f=0;if(i){e=i(e,t);f=1}else e=t||e;for(let t=r.length;f<t;f++){const{name:t,operator:a,index:i}=r[f];if(!isFinite(i)){r[f].index=0;return e.createNodes(r.slice(f))}let h;switch(a){case o:h=e[n.$getChildrenByName](t,!1);break;case l:h=e[n.$getChildrenByName](t,!0);break;case c:h=e[n.$getChildrenByClass](t);h=h.isXFAObjectArray?h.children:[h]}if(0===h.length)return e.createNodes(r.slice(f));if(!(i<h.length)){r[f].index=i-h.length;return e.createNodes(r.slice(f))}{const t=h[i];if(!t.isXFAObject){(0,s.warn)("XFA - Cannot create a node.");return null}e=t}}return null}},1318(e,t,a){const n=Symbol(),s=Symbol(),r=Symbol(),i=Symbol(),o=Symbol(),l=Symbol(),c=Symbol(),f=Symbol(),h=Symbol(),u=Symbol("content"),d=Symbol("data"),m=Symbol(),g=Symbol("extra"),b=Symbol(),w=Symbol(),j=Symbol(),y=Symbol(),v=Symbol(),k=Symbol(),q=Symbol(),S=Symbol(),_=Symbol(),C=Symbol(),F=Symbol(),x=Symbol(),T=Symbol(),O=Symbol(),M=Symbol(),R=Symbol(),D=Symbol(),H=Symbol(),N=Symbol(),E=Symbol(),z=Symbol(),L=Symbol(),$=Symbol(),U=Symbol(),G=Symbol(),W=Symbol(),X=Symbol(),K=Symbol(),V=Symbol(),Y=Symbol(),J=Symbol(),Q=Symbol(),Z=Symbol("namespaceId"),ee=Symbol("nodeName"),te=Symbol(),ae=Symbol(),ne=Symbol(),se=Symbol(),re=Symbol(),ie=Symbol(),oe=Symbol(),le=Symbol(),ce=Symbol("root"),fe=Symbol(),he=Symbol(),ue=Symbol(),de=Symbol(),pe=Symbol(),me=Symbol(),ge=Symbol(),be=Symbol(),we=Symbol(),je=Symbol(),ye=Symbol(),ve=Symbol("uid");a.d(t,["$acceptWhitespace",0,n,"$addHTML",0,s,"$appendChild",0,r,"$childrenToHTML",0,i,"$clean",0,o,"$cleanPage",0,l,"$cleanup",0,c,"$clone",0,f,"$consumed",0,h,"$content",0,u,"$data",0,d,"$dump",0,m,"$extra",0,g,"$finalize",0,b,"$flushHTML",0,w,"$getAttributeIt",0,j,"$getAttributes",0,y,"$getAvailableSpace",0,v,"$getChildren",0,x,"$getChildrenByClass",0,k,"$getChildrenByName",0,q,"$getChildrenByNameIt",0,S,"$getContainedChildren",0,T,"$getDataValue",0,_,"$getExtra",0,C,"$getNextPage",0,O,"$getParent",0,R,"$getRealChildrenByNameIt",0,F,"$getSubformParent",0,M,"$getTemplateRoot",0,D,"$globalData",0,H,"$hasSettableValue",0,N,"$ids",0,E,"$indexOf",0,z,"$insertAt",0,L,"$isBindable",0,U,"$isCDATAXml",0,$,"$isDataValue",0,G,"$isDescendent",0,W,"$isNsAgnostic",0,X,"$isSplittable",0,K,"$isThereMoreWidth",0,V,"$isTransparent",0,Y,"$isUsable",0,J,"$lastAttribute",0,Q,"$namespaceId",0,Z,"$nodeName",0,ee,"$nsAttributes",0,te,"$onChild",0,ae,"$onChildCheck",0,ne,"$onText",0,se,"$popPara",0,ie,"$pushGlyphs",0,re,"$pushPara",0,oe,"$removeChild",0,le,"$resolvePrototypes",0,fe,"$root",0,ce,"$searchNode",0,he,"$setId",0,ue,"$setSetAttributes",0,de,"$setValue",0,pe,"$tabIndex",0,me,"$text",0,ge,"$toHTML",0,we,"$toPages",0,be,"$toString",0,je,"$toStyle",0,ye,"$uid",0,ve])},8063(e,t,a){a.d(t,{HTMLResult:()=>HTMLResult,getBBox:()=>getBBox,getColor:()=>getColor,getFloat:()=>getFloat,getInteger:()=>getInteger,getKeyword:()=>getKeyword,getMeasurement:()=>getMeasurement,getRatio:()=>getRatio,getRelevant:()=>getRelevant,getStringOption:()=>getStringOption,stripQuotes:()=>stripQuotes});var n=a(4566),s=a(1723);const r={pt:e=>e,cm:e=>e/2.54*72,mm:e=>e/25.4*72,in:e=>72*e,px:e=>e},i=/([+-]?\d+\.?\d*)(.*)/;function stripQuotes(e){return e.startsWith("'")||e.startsWith('"')?e.slice(1,-1):e}function getInteger({data:e,defaultValue:t,validate:a}){if(!e)return t;e=e.trim();const n=parseInt(e,10);return!isNaN(n)&&a(n)?n:t}function getFloat({data:e,defaultValue:t,validate:a}){if(!e)return t;e=e.trim();const n=parseFloat(e);return!isNaN(n)&&a(n)?n:t}function getKeyword({data:e,defaultValue:t,validate:a}){return e&&a(e=e.trim())?e:t}function getStringOption(e,t){return getKeyword({data:e,defaultValue:t[0],validate:e=>t.includes(e)})}function getMeasurement(e,t="0"){t||="0";if(!e)return getMeasurement(t);const a=e.trim().match(i);if(!a)return getMeasurement(t);const[,n,s]=a,o=parseFloat(n);if(isNaN(o))return getMeasurement(t);if(0===o)return 0;const l=r[s];return l?l(o):o}function getRatio(e){if(!e)return{num:1,den:1};const t=e.split(":",2).map(e=>parseFloat(e.trim())).filter(e=>!isNaN(e));1===t.length&&t.push(1);if(0===t.length)return{num:1,den:1};const[a,n]=t;return{num:a,den:n}}function getRelevant(e){return e?e.trim().split(/\s+/).map(e=>({excluded:"-"===e[0],viewname:e.substring(1)})):[]}function getColor(e,t=[0,0,0]){let[a,s,r]=t;if(!e)return{r:a,g:s,b:r};const i=e.split(",",3).map(e=>{e=parseInt(e.trim(),10);return isNaN(e)?0:(0,n.MathClamp)(e,0,255)});if(i.length<3)return{r:a,g:s,b:r};[a,s,r]=i;return{r:a,g:s,b:r}}function getBBox(e){const t=-1;if(!e)return{x:t,y:t,width:t,height:t};const a=e.split(",",4).map(e=>getMeasurement(e.trim(),"-1"));if(a.length<4||a[2]<0||a[3]<0)return{x:t,y:t,width:t,height:t};const[n,s,r,i]=a;return{x:n,y:s,width:r,height:i}}class HTMLResult{static get FAILURE(){return(0,s.shadow)(this,"FAILURE",new HTMLResult(!1,null,null,null))}static get EMPTY(){return(0,s.shadow)(this,"EMPTY",new HTMLResult(!0,null,null,null))}constructor(e,t,a,n){this.success=e;this.html=t;this.bbox=a;this.breakNode=n}isBreak(){return!!this.breakNode}static breakNode(e){return new HTMLResult(!1,null,null,e)}static success(e,t=null){return new HTMLResult(!0,e,t,null)}}},7485(e,t,a){a.d(t,{ContentObject:()=>ContentObject,IntegerObject:()=>IntegerObject,Option01:()=>Option01,Option10:()=>Option10,OptionObject:()=>OptionObject,StringObject:()=>StringObject,XFAAttribute:()=>XFAAttribute,XFAObject:()=>XFAObject,XFAObjectArray:()=>XFAObjectArray,XmlObject:()=>XmlObject});var n=a(1318),s=a(8063),r=a(1723),i=a(5399),o=a(7088),l=a(4104);const c=Symbol(),f=Symbol(),h=Symbol(),u=Symbol("_children"),d=Symbol(),m=Symbol(),g=Symbol(),b=Symbol(),w=Symbol(),j=Symbol(),y=Symbol(),v=Symbol(),k=Symbol(),q=Symbol("parent"),S=Symbol(),_=Symbol(),C=Symbol();let F=0;const x=o.NamespaceIds.datasets.id;class XFAObject{constructor(e,t,a=!1){this[n.$namespaceId]=e;this[n.$nodeName]=t;this[y]=a;this[q]=null;this[u]=[];this[n.$uid]=`${t}${F++}`;this[n.$globalData]=null}get isXFAObject(){return!0}get isXFAObjectArray(){return!1}createNodes(e){let t=this,a=null;for(const{name:s,index:r}of e){for(let e=0,i=isFinite(r)?r:0;e<=i;e++){const e=t[n.$namespaceId]===x?-1:t[n.$namespaceId];a=new XmlObject(e,s);t[n.$appendChild](a)}t=a}return a}[n.$onChild](e){if(!this[y]||!this[n.$onChildCheck](e))return!1;const t=e[n.$nodeName],a=this[t];if(!(a instanceof XFAObjectArray)){null!==a&&this[n.$removeChild](a);this[t]=e;this[n.$appendChild](e);return!0}if(a.push(e)){this[n.$appendChild](e);return!0}let s="";this.id?s=` (id: ${this.id})`:this.name&&(s=` (name: ${this.name} ${this.h.value})`);(0,r.warn)(`XFA - node "${this[n.$nodeName]}"${s} has already enough "${t}"!`);return!1}[n.$onChildCheck](e){return Object.hasOwn(this,e[n.$nodeName])&&e[n.$namespaceId]===this[n.$namespaceId]}[n.$isNsAgnostic](){return!1}[n.$acceptWhitespace](){return!1}[n.$isCDATAXml](){return!1}[n.$isBindable](){return!1}[n.$popPara](){this.para&&this[n.$getTemplateRoot]()[n.$extra].paraStack.pop()}[n.$pushPara](){this[n.$getTemplateRoot]()[n.$extra].paraStack.push(this.para)}[n.$setId](e){this.id&&this[n.$namespaceId]===o.NamespaceIds.template.id&&e.set(this.id,this)}[n.$getTemplateRoot](){return this[n.$globalData].template}[n.$isSplittable](){return!1}[n.$isThereMoreWidth](){return!1}[n.$appendChild](e){e[q]=this;this[u].push(e);!e[n.$globalData]&&this[n.$globalData]&&(e[n.$globalData]=this[n.$globalData])}[n.$removeChild](e){const t=this[u].indexOf(e);this[u].splice(t,1)}[n.$hasSettableValue](){return Object.hasOwn(this,"value")}[n.$setValue](e){}[n.$onText](e){}[n.$finalize](){}[n.$clean](e){delete this[y];if(this[n.$cleanup]){e.clean(this[n.$cleanup]);delete this[n.$cleanup]}}[n.$indexOf](e){return this[u].indexOf(e)}[n.$insertAt](e,t){t[q]=this;this[u].splice(e,0,t);!t[n.$globalData]&&this[n.$globalData]&&(t[n.$globalData]=this[n.$globalData])}[n.$isTransparent](){return!this.name}[n.$lastAttribute](){return""}[n.$text](){return 0===this[u].length?this[n.$content]:this[u].map(e=>e[n.$text]()).join("")}get[h](){const e=Object.getPrototypeOf(this);if(!e._attributes){const t=e._attributes=new Set;for(const e of Object.getOwnPropertyNames(this)){if(null===this[e]||this[e]instanceof XFAObject||this[e]instanceof XFAObjectArray)break;t.add(e)}}return(0,r.shadow)(this,h,e._attributes)}[n.$isDescendent](e){let t=this;for(;t;){if(t===e)return!0;t=t[n.$getParent]()}return!1}[n.$getParent](){return this[q]}[n.$getSubformParent](){return this[n.$getParent]()}[n.$dump](){const e=Object.create(null);this[n.$content]&&(e.$content=this[n.$content]);for(const t of Object.getOwnPropertyNames(this)){const a=this[t];null!==a&&(a instanceof XFAObject?e[t]=a[n.$dump]():a instanceof XFAObjectArray?a.isEmpty()||(e[t]=a.dump()):e[t]=a)}return e}[n.$toStyle](){return null}[n.$toHTML](){return s.HTMLResult.EMPTY}*[n.$getContainedChildren](){for(const e of this[n.$getChildren]())yield e}*[b](e,t){for(const a of this[n.$getContainedChildren]())if(!e||t===e.has(a[n.$nodeName])){const e=this[n.$getAvailableSpace](),t=a[n.$toHTML](e);t.success||(this[n.$extra].failingNode=a);yield t}}[n.$flushHTML](){return null}[n.$addHTML](e,t){this[n.$extra].children.push(e)}[n.$getAvailableSpace](){}[n.$childrenToHTML]({filter:e=null,include:t=!0}){if(this[n.$extra].generator){const e=this[n.$getAvailableSpace](),t=this[n.$extra].failingNode[n.$toHTML](e);if(!t.success)return t;t.html&&this[n.$addHTML](t.html,t.bbox);delete this[n.$extra].failingNode}else this[n.$extra].generator=this[b](e,t);for(;;){const e=this[n.$extra].generator.next();if(e.done)break;const t=e.value;if(!t.success)return t;t.html&&this[n.$addHTML](t.html,t.bbox)}this[n.$extra].generator=null;return s.HTMLResult.EMPTY}[n.$setSetAttributes](e){this[_]=new Set(Object.keys(e))}[j](e){const t=this[h],a=this[_];return e.keys().filter(e=>t.has(e)&&!a.has(e)).toArray()}[n.$resolvePrototypes](e,t=new Set){for(const a of this[u])a[S](e,t)}[S](e,t){const a=this[w](e,t);a?this[c](a,e,t):this[n.$resolvePrototypes](e,t)}[w](e,t){const{use:a,usehref:s}=this;if(!a&&!s)return null;let i=null,o=null,f=null,h=a;if(s){h=s;s.startsWith("#som(")&&s.endsWith(")")?o=s.slice(5,-1):s.startsWith(".#som(")&&s.endsWith(")")?o=s.slice(6,-1):s.startsWith("#")?f=s.slice(1):s.startsWith(".#")&&(f=s.slice(2))}else a.startsWith("#")?f=a.slice(1):o=a;this.use=this.usehref="";if(f)i=e.get(f);else{i=(0,l.searchNode)(e.get(n.$root),this,o,!0,!1);i&&=i[0]}if(!i){(0,r.warn)(`XFA - Invalid prototype reference: ${h}.`);return null}if(i[n.$nodeName]!==this[n.$nodeName]){(0,r.warn)(`XFA - Incompatible prototype: ${i[n.$nodeName]} !== ${this[n.$nodeName]}.`);return null}if(t.has(i)){(0,r.warn)("XFA - Cycle detected in prototypes use.");return null}t.add(i);const u=i[w](e,t);u&&i[c](u,e,t);i[n.$resolvePrototypes](e,t);t.delete(i);return i}[c](e,t,a){if(a.has(e)){(0,r.warn)("XFA - Cycle detected in prototypes use.");return}!this[n.$content]&&e[n.$content]&&(this[n.$content]=e[n.$content]);new Set(a).add(e);for(const t of this[j](e[_])){this[t]=e[t];this[_]&&this[_].add(t)}for(const s of Object.getOwnPropertyNames(this)){if(this[h].has(s))continue;const r=this[s],i=e[s];if(r instanceof XFAObjectArray){for(const e of r[u])e[S](t,a);for(let s=r[u].length,o=i[u].length;s<o;s++){const i=e[u][s][n.$clone]();if(!r.push(i))break;i[q]=this;this[u].push(i);i[S](t,a)}}else if(null===r){if(null!==i){const e=i[n.$clone]();e[q]=this;this[s]=e;this[u].push(e);e[S](t,a)}}else{r[n.$resolvePrototypes](t,a);i&&r[c](i,t,a)}}}static[d](e){return Array.isArray(e)?e.map(e=>XFAObject[d](e)):"object"==typeof e&&null!==e?Object.assign({},e):e}[n.$clone](){const e=Object.create(Object.getPrototypeOf(this));for(const t of Object.getOwnPropertySymbols(this))try{e[t]=this[t]}catch{(0,r.shadow)(e,t,this[t])}e[n.$uid]=`${e[n.$nodeName]}${F++}`;e[u]=[];for(const t of Object.getOwnPropertyNames(this)){if(this[h].has(t)){e[t]=XFAObject[d](this[t]);continue}const a=this[t];e[t]=a instanceof XFAObjectArray?new XFAObjectArray(a[v]):null}for(const t of this[u]){const a=t[n.$nodeName],s=t[n.$clone]();e[u].push(s);s[q]=e;null===e[a]?e[a]=s:e[a][u].push(s)}return e}[n.$getChildren](e=null){return e?this[u].filter(t=>t[n.$nodeName]===e):this[u]}[n.$getChildrenByClass](e){return this[e]}[n.$getChildrenByName](e,t,a=!0){return Array.from(this[n.$getChildrenByNameIt](e,t,a))}*[n.$getChildrenByNameIt](e,t,a=!0){if("parent"!==e){for(const a of this[u]){a[n.$nodeName]===e&&(yield a);a.name===e&&(yield a);(t||a[n.$isTransparent]())&&(yield*a[n.$getChildrenByNameIt](e,t,!1))}a&&this[h].has(e)&&(yield new XFAAttribute(this,e,this[e]))}else yield this[q]}}class XFAObjectArray{constructor(e=1/0){this[v]=e;this[u]=[]}get isXFAObject(){return!1}get isXFAObjectArray(){return!0}push(e){if(this[u].length<=this[v]){this[u].push(e);return!0}(0,r.warn)(`XFA - node "${e[n.$nodeName]}" accepts no more than ${this[v]} children`);return!1}isEmpty(){return 0===this[u].length}dump(){return 1===this[u].length?this[u][0][n.$dump]():this[u].map(e=>e[n.$dump]())}[n.$clone](){const e=new XFAObjectArray(this[v]);e[u]=this[u].map(e=>e[n.$clone]());return e}get children(){return this[u]}clear(){this[u].length=0}}class XFAAttribute{constructor(e,t,a){this[q]=e;this[n.$nodeName]=t;this[n.$content]=a;this[n.$consumed]=!1;this[n.$uid]="attribute"+F++}[n.$getParent](){return this[q]}[n.$isDataValue](){return!0}[n.$getDataValue](){return this[n.$content].trim()}[n.$setValue](e){e=e.value||"";this[n.$content]=e.toString()}[n.$text](){return this[n.$content]}[n.$isDescendent](e){return this[q]===e||this[q][n.$isDescendent](e)}}class XmlObject extends XFAObject{constructor(e,t,a={}){super(e,t);this[n.$content]="";this[m]=null;if("#text"!==t){const e=new Map;this[f]=e;for(const[t,n]of Object.entries(a))e.set(t,new XFAAttribute(this,t,n));if(Object.hasOwn(a,n.$nsAttributes)){const e=a[n.$nsAttributes].xfa.dataNode;void 0!==e&&("dataGroup"===e?this[m]=!1:"dataValue"===e&&(this[m]=!0))}}this[n.$consumed]=!1}[n.$toString](e){const t=this[n.$nodeName];if("#text"===t){e.push((0,i.encodeToXmlString)(this[n.$content]));return}const a=(0,r.utf8StringToString)(t),s=this[n.$namespaceId]===x?"xfa:":"";e.push(`<${s}${a}`);for(const[t,a]of this[f]){const s=(0,r.utf8StringToString)(t);e.push(` ${s}="${(0,i.encodeToXmlString)(a[n.$content])}"`)}null!==this[m]&&(this[m]?e.push(' xfa:dataNode="dataValue"'):e.push(' xfa:dataNode="dataGroup"'));if(this[n.$content]||0!==this[u].length){e.push(">");if(this[n.$content])"string"==typeof this[n.$content]?e.push((0,i.encodeToXmlString)(this[n.$content])):this[n.$content][n.$toString](e);else for(const t of this[u])t[n.$toString](e);e.push(`</${s}${a}>`)}else e.push("/>")}[n.$onChild](e){if(this[n.$content]){const e=new XmlObject(this[n.$namespaceId],"#text");this[n.$appendChild](e);e[n.$content]=this[n.$content];this[n.$content]=""}this[n.$appendChild](e);return!0}[n.$onText](e){this[n.$content]+=e}[n.$finalize](){if(this[n.$content]&&this[u].length>0){const e=new XmlObject(this[n.$namespaceId],"#text");this[n.$appendChild](e);e[n.$content]=this[n.$content];delete this[n.$content]}}[n.$toHTML](){return"#text"===this[n.$nodeName]?s.HTMLResult.success({name:"#text",value:this[n.$content]}):s.HTMLResult.EMPTY}[n.$getAttributes](){return this[f]}[n.$getChildrenByClass](e){const t=this[f].get(e);return void 0!==t?t:this[n.$getChildren](e)}*[n.$getChildrenByNameIt](e,t){const a=this[f].get(e);a&&(yield a);for(const a of this[u]){a[n.$nodeName]===e&&(yield a);t&&(yield*a[n.$getChildrenByNameIt](e,t))}}*[n.$getAttributeIt](e,t){const a=this[f].get(e);!a||t&&a[n.$consumed]||(yield a);for(const a of this[u])yield*a[n.$getAttributeIt](e,t)}*[n.$getRealChildrenByNameIt](e,t,a){for(const s of this[u]){s[n.$nodeName]!==e||a&&s[n.$consumed]||(yield s);t&&(yield*s[n.$getRealChildrenByNameIt](e,t,a))}}[n.$isDataValue](){return null===this[m]?0===this[u].length||this[u][0][n.$namespaceId]===o.NamespaceIds.xhtml.id:this[m]}[n.$getDataValue](){return null===this[m]?0===this[u].length?this[n.$content].trim():this[u][0][n.$namespaceId]===o.NamespaceIds.xhtml.id?this[u][0][n.$text]().trim():null:this[n.$content].trim()}[n.$setValue](e){e=e.value||"";this[n.$content]=e.toString()}[n.$dump](e=!1){const t=Object.create(null);e&&(t.$ns=this[n.$namespaceId]);this[n.$content]&&(t.$content=this[n.$content]);t.$name=this[n.$nodeName];t.children=[];for(const a of this[u])t.children.push(a[n.$dump](e));t.attributes=Object.create(null);for(const[e,a]of this[f])t.attributes[e]=a[n.$content];return t}}class ContentObject extends XFAObject{constructor(e,t){super(e,t);this[n.$content]=""}[n.$onText](e){this[n.$content]+=e}[n.$finalize](){}}class OptionObject extends ContentObject{constructor(e,t,a){super(e,t);this[k]=a}[n.$finalize](){this[n.$content]=(0,s.getKeyword)({data:this[n.$content],defaultValue:this[k][0],validate:e=>this[k].includes(e)})}[n.$clean](e){super[n.$clean](e);delete this[k]}}class StringObject extends ContentObject{[n.$finalize](){this[n.$content]=this[n.$content].trim()}}class IntegerObject extends ContentObject{constructor(e,t,a,n){super(e,t);this[g]=a;this[C]=n}[n.$finalize](){this[n.$content]=(0,s.getInteger)({data:this[n.$content],defaultValue:this[g],validate:this[C]})}[n.$clean](e){super[n.$clean](e);delete this[g];delete this[C]}}class Option01 extends IntegerObject{constructor(e,t){super(e,t,0,e=>1===e)}}class Option10 extends IntegerObject{constructor(e,t){super(e,t,1,e=>0===e)}}},407(e,t,a){a.d(t,{XhtmlNamespace:()=>XhtmlNamespace});var n=a(1318),s=a(7088),r=a(1037),i=a(8063),o=a(7485);const l=s.NamespaceIds.xhtml.id,c=Symbol(),f=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,parseInt(e,10)/100).toFixed(2)})`],["xfa-font-vertical-scale",e=>`scaleY(${Math.max(0,parseInt(e,10)/100).toFixed(2)})`],["xfa-spacerun",""],["xfa-tab-stops",""],["font-size",(e,t)=>{e=t.fontSize=Math.abs((0,i.getMeasurement)(e));return(0,r.measureToString)(.99*e)}],["letter-spacing",e=>(0,r.measureToString)((0,i.getMeasurement)(e))],["line-height",e=>(0,r.measureToString)((0,i.getMeasurement)(e))],["margin",e=>(0,r.measureToString)((0,i.getMeasurement)(e))],["margin-bottom",e=>(0,r.measureToString)((0,i.getMeasurement)(e))],["margin-left",e=>(0,r.measureToString)((0,i.getMeasurement)(e))],["margin-right",e=>(0,r.measureToString)((0,i.getMeasurement)(e))],["margin-top",e=>(0,r.measureToString)((0,i.getMeasurement)(e))],["text-indent",e=>(0,r.measureToString)((0,i.getMeasurement)(e))],["font-family",e=>e],["vertical-align",e=>(0,r.measureToString)((0,i.getMeasurement)(e))]]),u=/\s+/g,d=/[\r\n]+/g,m=/\r\n?/g;function mapStyle(e,t,a){const s=Object.create(null);if(!e)return s;const o=Object.create(null);for(const[t,a]of e.split(";").map(e=>e.split(":",2))){const e=h.get(t);if(""===e)continue;let n=a;e&&(n="string"==typeof e?e:e(a,o));t.endsWith("scale")?s.transform=s.transform?`${s[t]} ${n}`:n:s[t.replaceAll(/-([a-z])/gi,(e,t)=>t.toUpperCase())]=n}s.fontFamily&&(0,r.setFontFamily)({typeface:s.fontFamily,weight:s.fontWeight||"normal",posture:s.fontStyle||"normal",size:o.fontSize||0},t,t[n.$globalData].fontFinder,s);if(a&&s.verticalAlign&&"0px"!==s.verticalAlign&&s.fontSize){const e=.583,t=.333,a=(0,i.getMeasurement)(s.fontSize);s.fontSize=(0,r.measureToString)(a*e);s.verticalAlign=(0,r.measureToString)(Math.sign((0,i.getMeasurement)(s.verticalAlign))*a*t)}a&&s.fontSize&&(s.fontSize=`calc(${s.fontSize} * var(--total-scale-factor))`);(0,r.fixTextIndent)(s);return s}const g=new Set(["body","html"]);class XhtmlObject extends o.XmlObject{constructor(e,t){super(l,t);this[c]=!1;this.style=e.style||""}[n.$clean](e){super[n.$clean](e);this.style=function checkStyle(e){return e.style?e.style.split(";").filter(e=>!!e.trim()).map(e=>e.split(":",2).map(e=>e.trim())).filter(([t,a])=>{"font-family"===t&&e[n.$globalData].usedTypefaces.add(a);return f.has(t)}).map(e=>e.join(":")).join(";"):""}(this)}[n.$acceptWhitespace](){return!g.has(this[n.$nodeName])}[n.$onText](e,t=!1){if(t)this[c]=!0;else{e=e.replaceAll(d,"");this.style.includes("xfa-spacerun:yes")||(e=e.replaceAll(u," "))}e&&(this[n.$content]+=e)}[n.$pushGlyphs](e,t=!0,a=Object.create(null)){const s={top:NaN,bottom:NaN,left:NaN,right:NaN};let r=null;for(const[e,t]of this.style.split(";").map(e=>e.split(":",2)))switch(e){case"font-family":a.typeface=(0,i.stripQuotes)(t);break;case"font-size":a.size=(0,i.getMeasurement)(t);break;case"font-weight":a.weight=t;break;case"font-style":a.posture=t;break;case"letter-spacing":a.letterSpacing=(0,i.getMeasurement)(t);break;case"margin":const e=t.split(/ \t/).map(i.getMeasurement);switch(e.length){case 1:s.top=s.bottom=s.left=s.right=e[0];break;case 2:s.top=s.bottom=e[0];s.left=s.right=e[1];break;case 3:s.top=e[0];s.bottom=e[2];s.left=s.right=e[1];break;case 4:s.top=e[0];s.left=e[1];s.bottom=e[2];s.right=e[3]}break;case"margin-top":s.top=(0,i.getMeasurement)(t);break;case"margin-bottom":s.bottom=(0,i.getMeasurement)(t);break;case"margin-left":s.left=(0,i.getMeasurement)(t);break;case"margin-right":s.right=(0,i.getMeasurement)(t);break;case"line-height":r=(0,i.getMeasurement)(t)}e.pushData(a,s,r);if(this[n.$content])e.addString(this[n.$content]);else for(const t of this[n.$getChildren]())"#text"!==t[n.$nodeName]?t[n.$pushGlyphs](e):e.addString(t[n.$content]);t&&e.popFont()}[n.$toHTML](e){const t=[];this[n.$extra]={children:t};this[n.$childrenToHTML]({});if(0===t.length&&!this[n.$content])return i.HTMLResult.EMPTY;let a;a=this[c]?this[n.$content]?this[n.$content].replaceAll(m,"\n"):void 0:this[n.$content]||void 0;return i.HTMLResult.success({name:this[n.$nodeName],attributes:{href:this.href,style:mapStyle(this.style,this,this[c])},children:t,value:a})}}class A extends XhtmlObject{constructor(e){super(e,"a");this.href=(0,r.fixURL)(e.href)||""}}class B extends XhtmlObject{constructor(e){super(e,"b")}[n.$pushGlyphs](e){super[n.$pushGlyphs](e,!0,{weight:"bold"})}}class Body extends XhtmlObject{constructor(e){super(e,"body")}[n.$toHTML](e){const t=super[n.$toHTML](e),{html:a}=t;if(!a)return i.HTMLResult.EMPTY;a.name="div";a.attributes.class=["xfaRich"];return t}}class Br extends XhtmlObject{constructor(e){super(e,"br")}[n.$text](){return"\n"}[n.$pushGlyphs](e){e.addString("\n")}[n.$toHTML](e){return i.HTMLResult.success({name:"br"})}}class Html extends XhtmlObject{constructor(e){super(e,"html")}[n.$toHTML](e){const t=[];this[n.$extra]={children:t};this[n.$childrenToHTML]({});if(0===t.length)return i.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},value:this[n.$content]||""});if(1===t.length){const e=t[0];if(e.attributes?.class.includes("xfaRich"))return i.HTMLResult.success(e)}return i.HTMLResult.success({name:"div",attributes:{class:["xfaRich"],style:{}},children:t})}}class I extends XhtmlObject{constructor(e){super(e,"i")}[n.$pushGlyphs](e){super[n.$pushGlyphs](e,!0,{posture:"italic"})}}class Li extends XhtmlObject{constructor(e){super(e,"li")}}class Ol extends XhtmlObject{constructor(e){super(e,"ol")}}class P extends XhtmlObject{constructor(e){super(e,"p")}[n.$pushGlyphs](e){super[n.$pushGlyphs](e,!1);e.addString("\n");e.addPara();e.popFont()}[n.$text](){return this[n.$getParent]()[n.$getChildren]().at(-1)===this?super[n.$text]():super[n.$text]()+"\n"}}class Span extends XhtmlObject{constructor(e){super(e,"span")}}class Sub extends XhtmlObject{constructor(e){super(e,"sub")}}class Sup extends XhtmlObject{constructor(e){super(e,"sup")}}class Ul extends XhtmlObject{constructor(e){super(e,"ul")}}class XhtmlNamespace{static[s.$buildXFAObject](e,t){return Object.hasOwn(XhtmlNamespace,e)?XhtmlNamespace[e](t):void 0}static a(e){return new A(e)}static b(e){return new B(e)}static body(e){return new Body(e)}static br(e){return new Br(e)}static html(e){return new Html(e)}static i(e){return new I(e)}static li(e){return new Li(e)}static ol(e){return new Ol(e)}static p(e){return new P(e)}static span(e){return new Span(e)}static sub(e){return new Sub(e)}static sup(e){return new Sup(e)}static ul(e){return new Ul(e)}}},3103(e,t,a){a.d(t,{SimpleDOMNode:()=>SimpleDOMNode,SimpleXMLParser:()=>SimpleXMLParser,XMLParserBase:()=>XMLParserBase});var n=a(5399),s=a(1723);const r={NoError:0,EndOfDocument:-1,UnterminatedCdata:-2,UnterminatedXmlDeclaration:-3,UnterminatedDoctypeDeclaration:-4,UnterminatedComment:-5,MalformedElement:-6,OutOfMemory:-7,UnterminatedAttributeValue:-8,UnterminatedElement:-9,ElementNeverBegun:-10};function isWhitespace(e,t){const a=e[t];return" "===a||"\n"===a||"\r"===a||"\t"===a}class XMLParserBase{static get _entityRegex(){return(0,s.shadow)(this,"_entityRegex",/&(?:#x([^;&]+)|#([^;&]+)|([^;&]+));/g)}_resolveEntities(e){return e.replaceAll(XMLParserBase._entityRegex,(e,t,a,n)=>{if(t||a){const n=t?parseInt(t,16):parseInt(a,10);return n>=0&&n<=1114111?String.fromCodePoint(n):e}switch(n){case"lt":return"<";case"gt":return">";case"amp":return"&";case"quot":return'"';case"apos":return"'"}return this.onResolveEntity(n)})}_parseContent(e,t){const a=[];let n=t;function skipWs(){for(;n<e.length&&isWhitespace(e,n);)++n}for(;n<e.length&&!isWhitespace(e,n)&&">"!==e[n]&&"/"!==e[n];)++n;const s=e.substring(t,n);skipWs();for(;n<e.length&&">"!==e[n]&&"/"!==e[n]&&"?"!==e[n];){skipWs();let t="",s="";for(;n<e.length&&!isWhitespace(e,n)&&"="!==e[n];){t+=e[n];++n}skipWs();if("="!==e[n])return null;++n;skipWs();const r=e[n];if('"'!==r&&"'"!==r)return null;const i=e.indexOf(r,++n);if(i<0)return null;s=e.substring(n,i);a.push({name:t,value:this._resolveEntities(s)});n=i+1;skipWs()}return{name:s,attributes:a,parsed:n-t}}_parseProcessingInstruction(e,t){let a=t;for(;a<e.length&&!isWhitespace(e,a)&&">"!==e[a]&&"?"!==e[a]&&"/"!==e[a];)++a;const n=e.substring(t,a);!function skipWs(){for(;a<e.length&&isWhitespace(e,a);)++a}();const s=a;for(;a<e.length&&("?"!==e[a]||">"!==e[a+1]);)++a;return{name:n,value:e.substring(s,a),parsed:a-t}}parseXml(e){let t=0;for(;t<e.length;){let a=t;if("<"===e[t]){++a;let t;switch(e[a]){case"/":++a;t=e.indexOf(">",a);if(t<0){this.onError(r.UnterminatedElement);return}this.onEndElement(e.substring(a,t));a=t+1;break;case"?":++a;const n=this._parseProcessingInstruction(e,a);if("?>"!==e.substring(a+n.parsed,a+n.parsed+2)){this.onError(r.UnterminatedXmlDeclaration);return}this.onPi(n.name,n.value);a+=n.parsed+2;break;case"!":if("--"===e.substring(a+1,a+3)){t=e.indexOf("--\x3e",a+3);if(t<0){this.onError(r.UnterminatedComment);return}this.onComment(e.substring(a+3,t));a=t+3}else if("[CDATA["===e.substring(a+1,a+8)){t=e.indexOf("]]>",a+8);if(t<0){this.onError(r.UnterminatedCdata);return}this.onCdata(e.substring(a+8,t));a=t+3}else{if("DOCTYPE"!==e.substring(a+1,a+8)){this.onError(r.MalformedElement);return}{const n=e.indexOf("[",a+8);let s=!1;t=e.indexOf(">",a+8);if(t<0){this.onError(r.UnterminatedDoctypeDeclaration);return}if(n>0&&t>n){t=e.indexOf("]>",a+8);if(t<0){this.onError(r.UnterminatedDoctypeDeclaration);return}s=!0}const i=e.substring(a+8,t+(s?1:0));this.onDoctype(i);a=t+(s?2:1)}}break;default:const s=this._parseContent(e,a);if(null===s){this.onError(r.MalformedElement);return}let i=!1;if("/>"===e.substring(a+s.parsed,a+s.parsed+2))i=!0;else if(">"!==e.substring(a+s.parsed,a+s.parsed+1)){this.onError(r.UnterminatedElement);return}this.onBeginElement(s.name,s.attributes,i);a+=s.parsed+(i?2:1)}}else{for(;a<e.length&&"<"!==e[a];)a++;const n=e.substring(t,a);this.onText(this._resolveEntities(n))}t=a}}onResolveEntity(e){return`&${e};`}onPi(e,t){}onComment(e){}onCdata(e){}onDoctype(e){}onText(e){}onBeginElement(e,t,a){}onEndElement(e){}onError(e){}}class SimpleDOMNode{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(){const e=this.parentNode.childNodes;if(!e)return;const t=e.indexOf(this);return-1===t?void 0:e[t+1]}get textContent(){return this.childNodes?this.childNodes.map(e=>e.textContent).join(""):this.nodeValue||""}get children(){return this.childNodes||[]}hasChildNodes(){return this.childNodes?.length>0}searchNode(e,t){if(t>=e.length)return this;const a=e[t];if(a.name.startsWith("#")&&t<e.length-1)return this.searchNode(e,t+1);const n=[];let s=this;for(;;){if(a.name===s.nodeName){if(0!==a.pos){if(0===n.length)return null;{const[r]=n.pop();let i=0;for(const n of r.childNodes)if(a.name===n.nodeName){if(i===a.pos)return n.searchNode(e,t+1);i++}return s.searchNode(e,t+1)}}{const a=s.searchNode(e,t+1);if(null!==a)return a}}if(s.childNodes?.length>0){n.push([s,0]);s=s.childNodes[0]}else{if(0===n.length)return null;for(;0!==n.length;){const[e,t]=n.pop(),a=t+1;if(a<e.childNodes.length){n.push([e,a]);s=e.childNodes[a];break}}if(0===n.length)return null}}}dump(e){if("#text"!==this.nodeName){e.push(`<${this.nodeName}`);if(this.attributes)for(const t of this.attributes)e.push(` ${t.name}="${(0,n.encodeToXmlString)(t.value)}"`);if(this.hasChildNodes()){e.push(">");for(const t of this.childNodes)t.dump(e);e.push(`</${this.nodeName}>`)}else this.nodeValue?e.push(`>${(0,n.encodeToXmlString)(this.nodeValue)}</${this.nodeName}>`):e.push("/>")}else e.push((0,n.encodeToXmlString)(this.nodeValue))}}class SimpleXMLParser extends XMLParserBase{constructor({hasAttributes:e=!1,lowerCaseName:t=!1}){super();this._currentFragment=null;this._stack=null;this._errorCode=r.NoError;this._hasAttributes=e;this._lowerCaseName=t}parseFromString(e){this._currentFragment=[];this._stack=[];this._errorCode=r.NoError;this.parseXml(e);if(this._errorCode!==r.NoError)return;const[t]=this._currentFragment;return t?{documentElement:t}:void 0}onText(e){if(function isWhitespaceString(e){for(let t=0,a=e.length;t<a;t++)if(!isWhitespace(e,t))return!1;return!0}(e))return;const t=new SimpleDOMNode("#text",e);this._currentFragment.push(t)}onCdata(e){const t=new SimpleDOMNode("#text",e);this._currentFragment.push(t)}onBeginElement(e,t,a){this._lowerCaseName&&(e=e.toLowerCase());const n=new SimpleDOMNode(e);n.childNodes=[];this._hasAttributes&&(n.attributes=t);this._currentFragment.push(n);if(!a){this._stack.push(this._currentFragment);this._currentFragment=n.childNodes}}onEndElement(e){this._currentFragment=this._stack.pop()||[];const 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}}a.d(t,["XMLParserErrorCode",0,r])},5075(e,t,a){a.d(t,{serializeFontFamily:()=>serializeFontFamily});const n=/\p{Cc}/u;function serializeFontFamily(e){if(function isCSSString(e){const t=e[0];if(e.length<2||'"'!==t&&"'"!==t||e.at(-1)!==t)return!1;const a=e.length-1;for(let s=1;s<a;s++){const r=e[s];if(r===t||n.test(r))return!1;if("\\"===r&&(++s>=a||n.test(e[s])))return!1}return!0}(e))return e;return`"${e.replaceAll(/["\\\p{Cc}]/gu,e=>'"'===e||"\\"===e?`\\${e}`:`\\${e.codePointAt(0).toString(16)} `)}"`}a.d(t,["CONTROL_CHAR_REGEXP",0,n])},8609(e,t,a){a.d(t,{convertBlackAndWhiteToRGBA:()=>convertBlackAndWhiteToRGBA,convertToRGBA:()=>convertToRGBA,grayToRGBA:()=>grayToRGBA});var n=a(1723),s=a(4566);function convertToRGBA(e){switch(e.kind){case n.ImageKind.GRAYSCALE_1BPP:return convertBlackAndWhiteToRGBA(e);case n.ImageKind.RGB_24BPP:return function convertRGBToRGBA({src:e,srcPos:t=0,dest:a,destPos:r=0,width:i,height:o}){let l=0;const c=i*o*3,f=e.byteOffset+t,h=f%4==0?Math.floor((0,s.MathClamp)(e.length-t,0,c)/4):0,u=h>0?new Uint32Array(e.buffer,f,h):null,d=n.FeatureTest.isLittleEndian?4278190080:255;if(n.FeatureTest.isLittleEndian){for(;l<h-2;l+=3,r+=4){const e=u[l],t=u[l+1],n=u[l+2];a[r]=e|d;a[r+1]=e>>>24|t<<8|d;a[r+2]=t>>>16|n<<16|d;a[r+3]=n>>>8|d}for(let n=t+4*l,s=t+c;n<s;n+=3)a[r++]=e[n]|e[n+1]<<8|e[n+2]<<16|d}else{for(;l<h-2;l+=3,r+=4){const e=u[l],t=u[l+1],n=u[l+2];a[r]=e|d;a[r+1]=e<<24|t>>>8|d;a[r+2]=t<<16|n>>>16|d;a[r+3]=n<<8|d}for(let n=t+4*l,s=t+c;n<s;n+=3)a[r++]=e[n]<<24|e[n+1]<<16|e[n+2]<<8|d}return{srcPos:t+c,destPos:r}}(e)}return null}function convertBlackAndWhiteToRGBA({src:e,srcPos:t=0,dest:a,width:s,height:r,nonBlackColor:i=4294967295,inverseDecode:o=!1}){const l=n.FeatureTest.isLittleEndian?4278190080:255,[c,f]=o?[i,l]:[l,i],h=s>>3,u=7&s,d=c^f,m=e.length;a=new Uint32Array(a.buffer);let g=0;for(let n=0;n<r;++n){for(const n=t+h;t<n;++t,g+=8){const n=e[t];a[g]=c^-(n>>7&1)&d;a[g+1]=c^-(n>>6&1)&d;a[g+2]=c^-(n>>5&1)&d;a[g+3]=c^-(n>>4&1)&d;a[g+4]=c^-(n>>3&1)&d;a[g+5]=c^-(n>>2&1)&d;a[g+6]=c^-(n>>1&1)&d;a[g+7]=c^-(1&n)&d}if(0===u)continue;const n=t<m?e[t++]:255;for(let e=0;e<u;++e,++g)a[g]=c^-(n>>7-e&1)&d}return{srcPos:t,destPos:g}}function grayToRGBA(e,t){if(n.FeatureTest.isLittleEndian)for(let a=0,n=e.length;a<n;a++)t[a]=65793*e[a]|4278190080;else for(let a=0,n=e.length;a<n;a++)t[a]=16843008*e[a]|255}},4566(e,t,a){a.d(t,{MathClamp:()=>MathClamp});function MathClamp(e,t,a){return Math.min(Math.max(e,t),a)}},7651(e,t,a){a.d(t,{MurmurHash3_64:()=>MurmurHash3_64});const n=3285377520,s=4294901760,r=65535;class MurmurHash3_64{constructor(e){this.h1=e?4294967295&e:n;this.h2=e?4294967295&e:n}update(e){let t,a;if("string"==typeof e){t=new Uint8Array(2*e.length);a=0;for(let n=0,s=e.length;n<s;n++){const s=e.charCodeAt(n);if(s<=255)t[a++]=s;else{t[a++]=s>>>8;t[a++]=255&s}}}else{if(!ArrayBuffer.isView(e))throw new Error("Invalid data format, must be a string or TypedArray.");t=e.slice();a=t.byteLength}const n=a>>2,i=a-4*n,o=new Uint32Array(t.buffer,0,n);let l=0,c=0,f=this.h1,h=this.h2;const u=3432918353,d=461845907,m=11601,g=13715;for(let e=0;e<n;e++)if(1&e){l=o[e];l=l*u&s|l*m&r;l=l<<15|l>>>17;l=l*d&s|l*g&r;f^=l;f=f<<13|f>>>19;f=5*f+3864292196}else{c=o[e];c=c*u&s|c*m&r;c=c<<15|c>>>17;c=c*d&s|c*g&r;h^=c;h=h<<13|h>>>19;h=5*h+3864292196}l=0;switch(i){case 3:l^=t[4*n+2]<<16;case 2:l^=t[4*n+1]<<8;case 1:l^=t[4*n];l=l*u&s|l*m&r;l=l<<15|l>>>17;l=l*d&s|l*g&r;1&n?f^=l:h^=l}this.h1=f;this.h2=h}hexdigest(){let e=this.h1,t=this.h2;e^=t>>>1;e=3981806797*e&s|36045*e&r;t=4283543511*t&s|(2950163797*(t<<16|e>>>16)&s)>>>16;e^=t>>>1;e=444984403*e&s|60499*e&r;t=3301882366*t&s|(3120437893*(t<<16|e>>>16)&s)>>>16;e^=t>>>1;return(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},1723(e,t,a){a.d(t,{AbortException:()=>AbortException,AnnotationActionEventType:()=>_,AnnotationBorderStyleType:()=>S,AnnotationEditorPrefix:()=>u,AnnotationEditorType:()=>d,AnnotationFieldFlag:()=>q,AnnotationFlag:()=>k,AnnotationPrefix:()=>h,AnnotationRenditionOperation:()=>v,AnnotationReplyType:()=>y,AnnotationType:()=>j,BASELINE_FACTOR:()=>l,BBOX_INIT:()=>r,BaseException:()=>H,DocumentActionEventType:()=>C,DrawOPS:()=>M,F32_BBOX_INIT:()=>i,FONT_IDENTITY_MATRIX:()=>o,FeatureTest:()=>FeatureTest,FormatError:()=>FormatError,ImageKind:()=>w,InvalidPDFException:()=>InvalidPDFException,MeshFigureType:()=>g,OPS:()=>O,PageActionEventType:()=>F,PasswordException:()=>PasswordException,PasswordResponses:()=>R,PermissionFlag:()=>m,RenderingIntentFlag:()=>f,ResponseException:()=>ResponseException,SVG_NS:()=>c,TextRenderingMode:()=>b,UnknownErrorException:()=>UnknownErrorException,Util:()=>Util,_isValidExplicitDest:()=>_isValidExplicitDest,assert:()=>assert,bytesToString:()=>bytesToString,createPromiseCapability:()=>createPromiseCapability,createValidAbsoluteUrl:()=>createValidAbsoluteUrl,info:()=>info,isArrayEqual:()=>isArrayEqual,isNodeJS:()=>s,makeArr:()=>makeArr,makeMap:()=>makeMap,makeObj:()=>makeObj,makeSet:()=>makeSet,noopFn:()=>noopFn,normalizeUnicode:()=>normalizeUnicode,setVerbosityLevel:()=>setVerbosityLevel,shadow:()=>shadow,stringToBytes:()=>stringToBytes,stringToUTF8String:()=>stringToUTF8String,stripPath:()=>stripPath,unreachable:()=>unreachable,utf8StringToString:()=>utf8StringToString,warn:()=>warn});class NgxConsole{static log(e,t){NgxConsole.ngxConsoleFilter("log",e)&&(void 0!==t?console.log("%s",e,t):console.log(e))}static error(e,t){NgxConsole.ngxConsoleFilter("error",e)&&(void 0!==t?console.error("%s",e,t):console.error(e))}static warn(e,t){NgxConsole.ngxConsoleFilter("warn",e)&&(void 0!==t?console.warn("%s",e,t):console.warn(e))}static debug(e,t){NgxConsole.ngxConsoleFilter("debug",e)&&(void 0!==t?console.warn("%s",e,t):console.warn(e))}get ngxConsoleFilter(){return NgxConsole.ngxConsoleFilter}set ngxConsoleFilter(e){NgxConsole.ngxConsoleFilter=e}reset(){NgxConsole.ngxConsoleFilter=(e,t)=>!0}}!function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}(NgxConsole,"ngxConsoleFilter",(e,t)=>!0);var n;function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const s=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type),r=[1/0,1/0,-1/0,-1/0],i=new Float32Array(r),o=[.001,0,0,.001,0,0],l=.35/1.35,c="http://www.w3.org/2000/svg",f={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,IS_EDITING:128,OPLIST:256},h="pdfjs_internal_id_",u="pdfjs_internal_editor_",d={DISABLE:-1,NONE:0,FREETEXT:3,HIGHLIGHT:9,STAMP:13,INK:15,POPUP:16,SIGNATURE:101,COMMENT:102,ERASER:103},m={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048},g={TRIANGLES:1,LATTICE:2,PATCH:3},b={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},w={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3},j={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,RICHMEDIA:27},y={GROUP:"Group",REPLY:"R"},v={PLAY_OR_RESUME:0,STOP:1,PAUSE:2,RESUME:3,PLAY:4},k={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512},q={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},S={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5},_={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"},C={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"},F={O:"PageOpen",C:"PageClose"},x=1,T=5,O={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,setStrokeTransparent:92,setFillTransparent:93,rawFillPath:94},M={moveTo:0,lineTo:1,curveTo:2,quadraticCurveTo:3,closePath:4},R={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let D=x;function setVerbosityLevel(e){Number.isInteger(e)&&(D=e)}function info(e){D>=T&&("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope||Window&&NgxConsole?NgxConsole.log(`Info: ${e}`):console.log(`Info: ${e}`))}function warn(e){D>=x&&("undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope||Window&&NgxConsole?NgxConsole.log(`Warning: ${e}`):console.log(`Warning: ${e}`))}function unreachable(e){throw new Error(e)}function assert(e,t){e||unreachable(t)}function createValidAbsoluteUrl(e,t=null,a=null){if(!e)return null;if(a&&"string"==typeof e){if(a.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t?.length>=2&&(e=`http://${e}`)}if(a.tryConvertEncoding)try{e=stringToUTF8String(e)}catch{}}const n=t?URL.parse(e,t):URL.parse(e);return function _isValidProtocol(e){switch(e?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":case"capacitor":return!0;default:return!1}}(n)?n:null}function stripPath(e){return e.substring(e.lastIndexOf("/")+1)}function shadow(e,t,a,n=!1){Object.defineProperty(e,t,{value:a,enumerable:!n,configurable:!0,writable:!1});return a}const H=function BaseExceptionClosure(){function BaseException(e,t){this.message=e;this.name=t}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();class PasswordException extends H{constructor(e,t){super(e,"PasswordException");this.code=t}}class UnknownErrorException extends H{constructor(e,t){super(e,"UnknownErrorException");this.details=t}}class InvalidPDFException extends H{constructor(e){super(e,"InvalidPDFException")}}class ResponseException extends H{constructor(e,t,a){super(e,"ResponseException");this.status=t;this.missing=a}}class FormatError extends H{constructor(e){super(e,"FormatError")}}class AbortException extends H{constructor(e){super(e,"AbortException")}}function bytesToString(e){"object"==typeof e&&void 0!==e?.length||unreachable("Invalid argument for bytesToString");const t=e.length,a=8192;if(t<a)return String.fromCharCode.apply(null,e);const n=[];for(let s=0;s<t;s+=a){const r=Math.min(s+a,t),i=e.subarray(s,r);n.push(String.fromCharCode.apply(null,i))}return n.join("")}function stringToBytes(e){"string"!=typeof e&&unreachable("Invalid argument for stringToBytes");const t=e.length,a=new Uint8Array(t);for(let n=0;n<t;++n)a[n]=255&e.charCodeAt(n);return a}class FeatureTest{static get isLittleEndian(){const e=new Uint8Array(4);e[0]=1;return shadow(this,"isLittleEndian",1===new Uint32Array(e.buffer,0,1)[0])}static get isOffscreenCanvasSupported(){return shadow(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}static get isImageDecoderSupported(){return shadow(this,"isImageDecoderSupported","undefined"!=typeof ImageDecoder)}static get isVideoFrameSupported(){return shadow(this,"isVideoFrameSupported","undefined"!=typeof VideoFrame)}static get isFloat16ArraySupported(){return shadow(this,"isFloat16ArraySupported","undefined"!=typeof Float16Array)}static get isSanitizerSupported(){return shadow(this,"isSanitizerSupported","undefined"!=typeof Sanitizer)}static get platform(){const{platform:e,userAgent:t}=navigator;return shadow(this,"platform",{isAndroid:t.includes("Android"),isLinux:e.includes("Linux"),isMac:e.includes("Mac"),isWindows:e.includes("Win"),isFirefox:t.includes("Firefox")})}static get isCanvasFilterSupported(){let e;this.isOffscreenCanvasSupported&&(e=new OffscreenCanvas(1,1).getContext("2d"));return shadow(this,"isCanvasFilterSupported",void 0!==e?.filter)}static get isAlphaColorInputSupported(){return shadow(this,"isAlphaColorInputSupported",!1)}static get isBackdropFilterSupported(){return shadow(this,"isBackdropFilterSupported","undefined"!=typeof CSS&&CSS.supports("backdrop-filter","blur(1px)"))}}class Util{static get hexNums(){return shadow(this,"hexNums",Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")))}static makeHexColor(e,t,a){return`#${this.hexNums[e]}${this.hexNums[t]}${this.hexNums[a]}`}static get identity0to256Map(){return shadow(this,"identity0to256Map",Uint8Array.from({length:256},(e,t)=>t))}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 multiplyByDOMMatrix(e,t){return[e[0]*t.a+e[2]*t.b,e[1]*t.a+e[3]*t.b,e[0]*t.c+e[2]*t.d,e[1]*t.c+e[3]*t.d,e[0]*t.e+e[2]*t.f+e[4],e[1]*t.e+e[3]*t.f+e[5]]}static applyTransform(e,t,a=0){const n=e[a],s=e[a+1];e[a]=n*t[0]+s*t[2]+t[4];e[a+1]=n*t[1]+s*t[3]+t[5]}static applyTransformToBezier(e,t,a=0){const n=t[0],s=t[1],r=t[2],i=t[3],o=t[4],l=t[5];for(let t=0;t<6;t+=2){const c=e[a+t],f=e[a+t+1];e[a+t]=c*n+f*r+o;e[a+t+1]=c*s+f*i+l}}static applyInverseTransform(e,t){const a=e[0],n=e[1],s=t[0]*t[3]-t[1]*t[2];e[0]=(a*t[3]-n*t[2]+t[2]*t[5]-t[4]*t[3])/s;e[1]=(-a*t[1]+n*t[0]+t[4]*t[1]-t[5]*t[0])/s}static axialAlignedBoundingBox(e,t,a){const n=t[0],s=t[1],r=t[2],i=t[3],o=t[4],l=t[5],c=e[0],f=e[1],h=e[2],u=e[3];let d=n*c+o,m=d,g=n*h+o,b=g,w=i*f+l,j=w,y=i*u+l,v=y;if(0!==s||0!==r){const e=s*c,t=s*h,a=r*f,n=r*u;d+=a;b+=a;g+=n;m+=n;w+=e;v+=e;y+=t;j+=t}a[0]=Math.min(a[0],d,g,Math.min(m,b));a[1]=Math.min(a[1],w,y,Math.min(j,v));a[2]=Math.max(a[2],d,g,Math.max(m,b));a[3]=Math.max(a[3],w,y,Math.max(j,v))}static inverseTransform(e){const 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,t){const a=e[0],n=e[1],s=e[2],r=e[3],i=a**2+n**2,o=a*s+n*r,l=s**2+r**2,c=(i+l)/2,f=Math.sqrt(c**2-(i*l-o**2));t[0]=Math.sqrt(c+f||1);t[1]=Math.sqrt(c-f||1)}static normalizeRect(e){const t=e.slice(0);if(e[0]>e[2]){t[0]=e[2];t[2]=e[0]}if(e[1]>e[3]){t[1]=e[3];t[3]=e[1]}return t}static intersect(e,t){const a=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),n=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(a>n)return null;const s=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),r=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return s>r?null:[a,s,n,r]}static pointBoundingBox(e,t,a){a[0]=Math.min(a[0],e);a[1]=Math.min(a[1],t);a[2]=Math.max(a[2],e);a[3]=Math.max(a[3],t)}static rectBoundingBox(e,t,a,n,s){s[0]=Math.min(s[0],e,a);s[1]=Math.min(s[1],t,n);s[2]=Math.max(s[2],e,a);s[3]=Math.max(s[3],t,n)}static bezierBoundingBox(e,t,a,n,s,r,i,o,l){l[0]=Math.min(l[0],e,i);l[1]=Math.min(l[1],t,o);l[2]=Math.max(l[2],e,i);l[3]=Math.max(l[3],t,o);_assertClassBrand(Util,this,_getExtremum).call(this,e,a,s,i,t,n,r,o,3*(3*(a-s)-e+i),6*(e-2*a+s),3*(a-e),l);_assertClassBrand(Util,this,_getExtremum).call(this,e,a,s,i,t,n,r,o,3*(3*(n-r)-t+o),6*(t-2*n+r),3*(n-t),l)}}n=Util;function _getExtremumOnCurve(e,t,a,n,s,r,i,o,l,c){if(l<=0||l>=1)return;const f=1-l,h=l*l,u=h*l,d=f*(f*(f*e+3*l*t)+3*h*a)+u*n,m=f*(f*(f*s+3*l*r)+3*h*i)+u*o;c[0]=Math.min(c[0],d);c[1]=Math.min(c[1],m);c[2]=Math.max(c[2],d);c[3]=Math.max(c[3],m)}function _getExtremum(e,t,a,s,r,i,o,l,c,f,h,u){if(Math.abs(c)<1e-12){Math.abs(f)>=1e-12&&_assertClassBrand(n,this,_getExtremumOnCurve).call(this,e,t,a,s,r,i,o,l,-h/f,u);return}const d=f**2-4*h*c;if(d<0)return;const m=Math.sqrt(d),g=2*c;_assertClassBrand(n,this,_getExtremumOnCurve).call(this,e,t,a,s,r,i,o,l,(-f+m)/g,u);_assertClassBrand(n,this,_getExtremumOnCurve).call(this,e,t,a,s,r,i,o,l,(-f-m)/g,u)}function stringToUTF8String(e){return decodeURIComponent(escape(e))}function utf8StringToString(e){return unescape(encodeURIComponent(e))}function isArrayEqual(e,t){if(e.length!==t.length)return!1;for(let a=0,n=e.length;a<n;a++)if(e[a]!==t[a])return!1;return!0}let N=null,E=null;function normalizeUnicode(e){if(!N){N=/([\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;E=new Map([["ſt","ſt"]])}return e.replaceAll(N,(e,t,a)=>t?t.normalize("NFKC"):E.get(a))}function _isValidExplicitDest(e,t,a){if(!Array.isArray(a)||a.length<2)return!1;const[n,s,...r]=a;if(!e(n)&&!Number.isInteger(n))return!1;if(!t(s))return!1;const i=r.length;let o=!0;switch(s.name){case"XYZ":if(i<2||i>3)return!1;break;case"Fit":case"FitB":return 0===i;case"FitH":case"FitBH":case"FitV":case"FitBV":if(i>1)return!1;break;case"FitR":if(4!==i)return!1;o=!1;break;default:return!1}for(const e of r)if(!("number"==typeof e||o&&null===e))return!1;return!0}function noopFn(){}function createPromiseCapability(){const e=Promise.withResolvers();e.promise.catch(noopFn);return e}const makeArr=()=>[],makeMap=()=>new Map,makeObj=()=>Object.create(null),makeSet=()=>new Set;"function"!=typeof Iterator.prototype.join&&(Iterator.prototype.join=function(e){return[...this].join(e)})}};const t={};function __webpack_require__(a){const n=t[a];if(void 0!==n)return n.exports;const s=t[a]={exports:{}};e[a](s,s.exports,__webpack_require__);return s.exports}__webpack_require__.d=(e,t)=>{if(Array.isArray(t))for(var a=0;a<t.length;){var n=t[a++],s=t[a++],r=0===s?{enumerable:!0,value:t[a++]}:{enumerable:!0,get:s};__webpack_require__.o(e,n)||Object.defineProperty(e,n,r)}else for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})};__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);__webpack_require__.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});Object.defineProperty(e,"__esModule",{value:!0})};"undefined"!=typeof AbortSignal&&"function"!=typeof AbortSignal.any&&(AbortSignal.any=function(e){const t=new AbortController;for(const a of e){if(a.aborted){t.abort(a.reason);return t.signal}a.addEventListener("abort",()=>t.abort(a.reason),{once:!0})}return t.signal});var a=__webpack_require__(1723),n=__webpack_require__(5399),s=__webpack_require__(5632),r=__webpack_require__(3141),i=__webpack_require__(4566),o=__webpack_require__(4106);function _classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a)}function _checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldSet(e,t,a){return e.set(_assertClassBrand(e,t),a),a}function _classPrivateFieldGet(e,t){return e.get(_assertClassBrand(e,t))}function _assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}function _defineProperty(e,t,a){return(t=function _toPropertyKey(e){var t=function _toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}class ChunkedStream extends o.Stream{constructor(e,t,a){super(new Uint8Array(e),0,e,null);_defineProperty(this,"progressiveDataLength",0);_defineProperty(this,"_lastSuccessfulEnsureByteChunk",-1);_defineProperty(this,"_loadedChunks",new Set);this.chunkSize=t;this.numChunks=Math.ceil(e/t);this.manager=a}getMissingChunks(){const e=[];for(let t=0,a=this.numChunks;t<a;++t)this._loadedChunks.has(t)||e.push(t);return e}get numChunksLoaded(){return this._loadedChunks.size}get isDataLoaded(){return this.numChunksLoaded===this.numChunks}onReceiveData(e,t){const a=this.chunkSize;if(e%a!==0)throw new Error(`Bad begin offset: ${e}`);const n=e+t.byteLength;if(n%a!==0&&n!==this.bytes.length)throw new Error(`Bad end offset: ${n}`);this.bytes.set(new Uint8Array(t),e);const s=Math.floor(e/a),r=Math.floor((n-1)/a)+1;for(let e=s;e<r;++e)this._loadedChunks.add(e)}onReceiveProgressiveData(e){let t=this.progressiveDataLength;const a=Math.floor(t/this.chunkSize);this.bytes.set(new Uint8Array(e),t);t+=e.byteLength;this.progressiveDataLength=t;const n=t>=this.end?this.numChunks:Math.floor(t/this.chunkSize);for(let e=a;e<n;++e)this._loadedChunks.add(e)}ensureByte(e){if(e<this.progressiveDataLength)return;const t=Math.floor(e/this.chunkSize);if(!(t>this.numChunks||t===this._lastSuccessfulEnsureByteChunk)){if(!this._loadedChunks.has(t))throw new n.MissingDataException(e,e+1);this._lastSuccessfulEnsureByteChunk=t}}ensureRange(e,t){if(e>=t||t<=this.progressiveDataLength)return;const a=Math.floor(e/this.chunkSize);if(a>this.numChunks)return;const s=Math.min(Math.floor((t-1)/this.chunkSize)+1,this.numChunks);for(let r=a;r<s;++r)if(!this._loadedChunks.has(r))throw new n.MissingDataException(e,t)}nextEmptyChunk(e){const t=this.numChunks;for(let a=0;a<t;++a){const n=(e+a)%t;if(!this._loadedChunks.has(n))return n}return null}hasChunk(e){return this._loadedChunks.has(e)}getByte(){const e=this.pos;if(e>=this.end)return-1;e>=this.progressiveDataLength&&this.ensureByte(e);return this.bytes[this.pos++]}getBytes(e){const t=this.pos,a=e?Math.min(t+e,this.end):this.end;a>this.progressiveDataLength&&this.ensureRange(t,a);this.pos=a;return this.bytes.subarray(t,a)}getByteRange(e,t){e<0&&(e=0);t>this.end&&(t=this.end);t>this.progressiveDataLength&&this.ensureRange(e,t);return this.bytes.subarray(e,t)}makeSubStream(e,t,a=null){t?e+t>this.progressiveDataLength&&this.ensureRange(e,e+t):e>=this.progressiveDataLength&&this.ensureByte(e);function ChunkedStreamSubstream(){}ChunkedStreamSubstream.prototype=Object.create(this);ChunkedStreamSubstream.prototype.getMissingChunks=function(){const e=this.chunkSize,t=Math.floor(this.start/e),a=Math.floor((this.end-1)/e)+1,n=[];for(let e=t;e<a;++e)this._loadedChunks.has(e)||n.push(e);return n};Object.defineProperty(ChunkedStreamSubstream.prototype,"isDataLoaded",{get(){return this.numChunksLoaded===this.numChunks||0===this.getMissingChunks().length},configurable:!0});const n=new ChunkedStreamSubstream;n.pos=n.start=e;n.end=e+t||this.end;n.dict=a;return n}getBaseStreams(){return[this]}}var l=new WeakMap,c=new WeakMap,f=new WeakMap,h=new WeakMap,u=new WeakSet;class ChunkedStreamManager{constructor(e,t){!function _classPrivateMethodInitSpec(e,t){_checkPrivateRedeclaration(e,t),t.add(e)}(this,u);_classPrivateFieldInitSpec(this,l,null);_classPrivateFieldInitSpec(this,c,0);_classPrivateFieldInitSpec(this,f,new Map);_classPrivateFieldInitSpec(this,h,(0,a.createPromiseCapability)());_defineProperty(this,"_promisesByRequest",new Map);_defineProperty(this,"_requestsByChunk",new Map);this.length=t.length;this.chunkSize=t.rangeChunkSize;this.stream=new ChunkedStream(this.length,this.chunkSize,this);this.pdfStream=e;this.disableAutoFetch=t.disableAutoFetch;this.msgHandler=t.msgHandler}async sendRequest(e,t){const a=this.pdfStream.getRangeReader(e,t);let s=[];for(;;){const{value:e,done:t}=await a.read();if(_classPrivateFieldGet(l,this)){s=null;return}if(t)break;s.push(e)}if(0===s.length&&this.disableAutoFetch)return;const r=(0,n.arrayBuffersToBytes)(s);s=null;this.onReceiveData({chunk:r.buffer,begin:e})}requestAllChunks(e=!1){if(!e&&!_classPrivateFieldGet(l,this)){const e=this.stream.getMissingChunks();_assertClassBrand(u,this,_requestChunks).call(this,e)}return _classPrivateFieldGet(h,this).promise}getStream(){return this.stream}requestRange(e,t){t=Math.min(t,this.length);const a=this.getBeginChunk(e),n=this.getEndChunk(t),s=[];for(let e=a;e<n;++e)s.push(e);return _assertClassBrand(u,this,_requestChunks).call(this,s)}requestRanges(e=[]){const t=[];for(const a of e){const e=this.getBeginChunk(a.begin),n=this.getEndChunk(a.end);for(let a=e;a<n;++a)t.includes(a)||t.push(a)}t.sort((e,t)=>e-t);return _assertClassBrand(u,this,_requestChunks).call(this,t)}groupChunks(e){const t=[];let a=-1,n=-1;for(let s=0,r=e.length;s<r;++s){const r=e[s];a<0&&(a=r);if(n>=0&&n+1!==r){t.push({beginChunk:a,endChunk:n+1});a=r}s+1===e.length&&t.push({beginChunk:a,endChunk:r+1});n=r}return t}onReceiveData(e){const{chunkSize:t,length:a,stream:n}=this,s=e.chunk,r=void 0===e.begin,o=r?n.progressiveDataLength:e.begin,c=o+s.byteLength,d=Math.floor(o/t),m=c<a?Math.floor(c/t):Math.ceil(c/t);r?n.onReceiveProgressiveData(s):n.onReceiveData(o,s);n.isDataLoaded&&_classPrivateFieldGet(h,this).resolve(n);const g=[];for(let e=d;e<m;++e){const t=this._requestsByChunk.get(e);if(t){this._requestsByChunk.delete(e);for(const a of t){const t=_classPrivateFieldGet(f,this).get(a);t.delete(e);t.size>0||g.push(a)}}}if(!this.disableAutoFetch&&!this._requestsByChunk.size&&!_classPrivateFieldGet(l,this)){let e;if(1===n.numChunksLoaded){const t=n.numChunks-1;n.hasChunk(t)||(e=t)}else e=n.nextEmptyChunk(m);Number.isInteger(e)&&_assertClassBrand(u,this,_requestChunks).call(this,[e])}for(const e of g){const t=this._promisesByRequest.get(e);this._promisesByRequest.delete(e);t.resolve()}this.msgHandler.send("DocProgress",{loaded:(0,i.MathClamp)(n.numChunksLoaded*t,n.progressiveDataLength,a),total:a})}getBeginChunk(e){return Math.floor(e/this.chunkSize)}getEndChunk(e){return Math.floor((e-1)/this.chunkSize)+1}abort(e){(0,a.assert)(e instanceof Error,"abort must have a valid reason");_classPrivateFieldSet(l,this,e);this.pdfStream?.cancelAllRequests(e);for(const t of this._promisesByRequest.values())t.reject(e);_classPrivateFieldGet(h,this).reject(e)}}function _requestChunks(e){var t,n;if(_classPrivateFieldGet(l,this))return Promise.reject(_classPrivateFieldGet(l,this));const s=new Set;for(const t of e)this.stream.hasChunk(t)||s.add(t);if(0===s.size)return Promise.resolve();const r=(_classPrivateFieldSet(c,this,(t=_classPrivateFieldGet(c,this),n=t++,t)),n);_classPrivateFieldGet(f,this).set(r,s);const i=(0,a.createPromiseCapability)();this._promisesByRequest.set(r,i);const o=[];for(const e of s){this._requestsByChunk.getOrInsertComputed(e,()=>{o.push(e);return[]}).push(r)}if(o.length>0){const e=this.groupChunks(o);for(const t of e){const e=t.beginChunk*this.chunkSize,a=Math.min(t.endChunk*this.chunkSize,this.length);this.sendRequest(e,a).catch(i.reject)}}return i.promise}var d=__webpack_require__(2320),m=__webpack_require__(5495),g=__webpack_require__(8857),b=__webpack_require__(9397),w=__webpack_require__(4950),j=__webpack_require__(5412);class BasePdfManager{constructor({docBaseUrl:e,docId:t,enableXfa:n,evaluatorOptions:s,handler:i,password:o,enableOpenActionJavaScript:l,enableCatalogAAJavaScript:c}){this._docBaseUrl=function parseDocBaseUrl(e){if(e){const t=(0,a.createValidAbsoluteUrl)(e);if(t)return t.href;(0,a.warn)(`Invalid absolute docBaseUrl: "${e}".`)}return null}(e);this._docId=t;this._password=o;this.enableXfa=n;this.enableOpenActionJavaScript=!!l;this.enableCatalogAAJavaScript=!!c;y._.set(this,i);s.isOffscreenCanvasSupported&&=a.FeatureTest.isOffscreenCanvasSupported;s.isImageDecoderSupported&&=a.FeatureTest.isImageDecoderSupported;this.evaluatorOptions=Object.freeze(s);d.ImageResizer.setOptions(s);m.JpegStream.setOptions(s);g.OperatorList.setOptions(s);const f={...s,getHandler:()=>y._.values().find(e=>!e.destroyed)};r.IccColorSpace.setOptions(f);r.CmykICCBasedCS.setOptions(f);w.PDFFunctionFactory.setOptions(f);j.WasmImage.setOptions(f)}get docId(){return this._docId}get password(){return this._password}get docBaseUrl(){return this._docBaseUrl}ensureDoc(e,t){return this.ensure(this.pdfDocument,e,t)}ensureCatalog(e,t){return this.ensure(this.pdfDocument.catalog,e,t)}async initDocument(e){await this.ensureDoc("checkHeader");await this.ensureDoc("parseStartXRef");await this.ensureDoc("parse",[e]);if(this.enableXfa)try{await this.ensureDoc("loadXfaFactory")}catch(t){if(t instanceof n.XRefEntryException&&!e){await this.cleanup();throw new n.XRefParseException}(0,a.warn)(`Cannot load XFA data: "${t}".`)}await this.ensureDoc("checkFirstPage",[e]);await this.ensureDoc("checkLastPage",[e])}getPage(e){return this.pdfDocument.getPage(e)}cleanup(e=!1){return this.pdfDocument.cleanup(e)}async ensure(e,t,n){(0,a.unreachable)("Abstract method `ensure` called")}requestRange(e,t){(0,a.unreachable)("Abstract method `requestRange` called")}requestLoadedStream(e=!1){(0,a.unreachable)("Abstract method `requestLoadedStream` called")}sendProgressiveData(e){(0,a.unreachable)("Abstract method `sendProgressiveData` called")}updatePassword(e){this._password=e;this.pdfDocument.xref.encrypt?.setPassword(e)}terminate(e){y._.delete(this)}}var y={_:new Map};class LocalPdfManager extends BasePdfManager{constructor(e){super(e);const t=new o.Stream(e.source);this.pdfDocument=new b.PDFDocument(this,t);this._loadedStreamPromise=Promise.resolve(t)}async ensure(e,t,a){const n=e[t];return"function"==typeof n?n.apply(e,a):n}requestLoadedStream(e=!1){return this._loadedStreamPromise}}class NetworkPdfManager extends BasePdfManager{constructor(e){super(e);this.streamManager=new ChunkedStreamManager(e.source,{msgHandler:e.handler,length:e.length,disableAutoFetch:e.disableAutoFetch,rangeChunkSize:e.rangeChunkSize});this.pdfDocument=new b.PDFDocument(this,this.streamManager.getStream())}async ensure(e,t,a){try{const n=e[t];return"function"==typeof n?await n.apply(e,a):n}catch(s){if(!(s instanceof n.MissingDataException))throw s;await this.requestRange(s.begin,s.end);return this.ensure(e,t,a)}}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){super.terminate(e);this.streamManager.abort(e)}}function message_handler_classPrivateFieldInitSpec(e,t,a){message_handler_checkPrivateRedeclaration(e,t),t.set(e,a)}function message_handler_checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function message_handler_classPrivateFieldGet(e,t){return e.get(message_handler_assertClassBrand(e,t))}function message_handler_classPrivateFieldSet(e,t,a){return e.set(message_handler_assertClassBrand(e,t),a),a}function message_handler_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}const v=1,k=2,q=1,S=2,_=3,C=4,F=5,x=6,T=7,O=8;function wrapReason(e){if(e instanceof a.AbortException||e instanceof a.InvalidPDFException||e instanceof a.PasswordException||e instanceof a.ResponseException||e instanceof a.UnknownErrorException)return e;if("object"!=typeof e||null===e)return new a.UnknownErrorException(String(e),String(e));switch(e.name){case"AbortException":return new a.AbortException(e.message);case"InvalidPDFException":return new a.InvalidPDFException(e.message);case"PasswordException":return new a.PasswordException(e.message,e.code);case"ResponseException":return new a.ResponseException(e.message,e.status,e.missing);case"UnknownErrorException":return new a.UnknownErrorException(e.message,e.details)}return new a.UnknownErrorException(e.message,e.toString())}var M=new WeakMap,R=new WeakMap,D=new WeakMap,H=new WeakMap,N=new WeakMap,E=new WeakMap,z=new WeakMap,L=new WeakMap,$=new WeakMap,U=new WeakMap,G=new WeakSet;class MessageHandler{constructor(e,t,a){!function message_handler_classPrivateMethodInitSpec(e,t){message_handler_checkPrivateRedeclaration(e,t),t.add(e)}(this,G);message_handler_classPrivateFieldInitSpec(this,M,new Map);message_handler_classPrivateFieldInitSpec(this,R,new Map);message_handler_classPrivateFieldInitSpec(this,D,1);message_handler_classPrivateFieldInitSpec(this,H,void 0);message_handler_classPrivateFieldInitSpec(this,N,new AbortController);message_handler_classPrivateFieldInitSpec(this,E,void 0);message_handler_classPrivateFieldInitSpec(this,z,new Map);message_handler_classPrivateFieldInitSpec(this,L,1);message_handler_classPrivateFieldInitSpec(this,$,new Map);message_handler_classPrivateFieldInitSpec(this,U,void 0);message_handler_classPrivateFieldSet(E,this,e);message_handler_classPrivateFieldSet(U,this,t);message_handler_classPrivateFieldSet(H,this,a);a.addEventListener("message",message_handler_assertClassBrand(G,this,_onMessage).bind(this),{signal:message_handler_classPrivateFieldGet(N,this).signal})}on(e,t){const a=message_handler_classPrivateFieldGet(M,this);if(a.has(e))throw new Error(`There is already a "${e}" handler.`);a.set(e,t)}send(e,t,a){message_handler_classPrivateFieldGet(H,this).postMessage({sourceName:message_handler_classPrivateFieldGet(E,this),targetName:message_handler_classPrivateFieldGet(U,this),action:e,data:t},a)}sendWithPromise(e,t,n){var s,r;const i=(message_handler_classPrivateFieldSet(D,this,(s=message_handler_classPrivateFieldGet(D,this),r=s++,s)),r),o=(0,a.createPromiseCapability)();message_handler_classPrivateFieldGet(R,this).set(i,o);try{message_handler_classPrivateFieldGet(H,this).postMessage({sourceName:message_handler_classPrivateFieldGet(E,this),targetName:message_handler_classPrivateFieldGet(U,this),action:e,callbackId:i,data:t},n)}catch(e){o.reject(e)}return o.promise}sendWithStream(e,t,n,s){var r,i;const o=(message_handler_classPrivateFieldSet(L,this,(r=message_handler_classPrivateFieldGet(L,this),i=r++,r)),i),l=message_handler_classPrivateFieldGet(E,this),c=message_handler_classPrivateFieldGet(U,this),f=message_handler_classPrivateFieldGet(H,this);return new ReadableStream({start:n=>{const r=(0,a.createPromiseCapability)();message_handler_classPrivateFieldGet(z,this).set(o,{controller:n,startCall:r,pullCall:null,cancelCall:null,isClosed:!1});f.postMessage({sourceName:l,targetName:c,action:e,streamId:o,data:t,desiredSize:n.desiredSize},s);return r.promise},pull:e=>{const t=(0,a.createPromiseCapability)();message_handler_classPrivateFieldGet(z,this).get(o).pullCall=t;f.postMessage({sourceName:l,targetName:c,stream:x,streamId:o,desiredSize:e.desiredSize});return t.promise},cancel:e=>{(0,a.assert)(e instanceof Error,"cancel must have a valid reason");const t=(0,a.createPromiseCapability)();message_handler_classPrivateFieldGet(z,this).get(o).cancelCall=t;message_handler_classPrivateFieldGet(z,this).get(o).isClosed=!0;f.postMessage({sourceName:l,targetName:c,stream:q,streamId:o,reason:wrapReason(e)});return t.promise}},n)}destroy(){message_handler_classPrivateFieldGet(N,this)?.abort();message_handler_classPrivateFieldSet(N,this,null)}get destroyed(){return!message_handler_classPrivateFieldGet(N,this)}}function _onMessage({data:e}){if(e.targetName!==message_handler_classPrivateFieldGet(E,this))return;if(e.stream){message_handler_assertClassBrand(G,this,_processStreamMessage).call(this,e);return}if(e.callback){const{callbackId:t,callback:a}=e,n=message_handler_classPrivateFieldGet(R,this).get(t);if(!n)throw new Error(`Cannot resolve callback ${t}`);message_handler_classPrivateFieldGet(R,this).delete(t);if(a===v)n.resolve(e.data);else{if(a!==k)throw new Error("Unexpected callback case");n.reject(wrapReason(e.reason))}return}const t=message_handler_classPrivateFieldGet(M,this).get(e.action);if(!t)throw new Error(`Unknown action from worker: ${e.action}`);if(e.callbackId){const a=message_handler_classPrivateFieldGet(E,this),n=e.sourceName,s=message_handler_classPrivateFieldGet(H,this);Promise.try(t,e.data).then(t=>{s.postMessage({sourceName:a,targetName:n,callback:v,callbackId:e.callbackId,data:t})}).catch(t=>{s.postMessage({sourceName:a,targetName:n,callback:k,callbackId:e.callbackId,reason:wrapReason(t)})});return}e.streamId?message_handler_assertClassBrand(G,this,_createStreamSink).call(this,e):t(e.data)}function _createStreamSink(e){const t=e.streamId,n=message_handler_classPrivateFieldGet(E,this),s=e.sourceName,r=message_handler_classPrivateFieldGet(H,this),i=message_handler_classPrivateFieldGet($,this),o=message_handler_classPrivateFieldGet(M,this).get(e.action),l={enqueue(e,i=1,o){if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=i;if(l>0&&this.desiredSize<=0){this.sinkCapability=(0,a.createPromiseCapability)();this.ready=this.sinkCapability.promise}r.postMessage({sourceName:n,targetName:s,stream:C,streamId:t,chunk:e},o)},close(){if(!this.isCancelled){this.isCancelled=!0;r.postMessage({sourceName:n,targetName:s,stream:_,streamId:t});i.delete(t)}},error(e){if(!this.isCancelled){this.isCancelled=!0;r.postMessage({sourceName:n,targetName:s,stream:F,streamId:t,reason:wrapReason(e)})}},sinkCapability:(0,a.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};l.sinkCapability.resolve();l.ready=l.sinkCapability.promise;i.set(t,l);Promise.try(o,e.data,l).then(()=>{r.postMessage({sourceName:n,targetName:s,stream:O,streamId:t,success:!0})},e=>{r.postMessage({sourceName:n,targetName:s,stream:O,streamId:t,reason:wrapReason(e)})})}function _processStreamMessage(e){const t=e.streamId,n=message_handler_classPrivateFieldGet(E,this),s=e.sourceName,r=message_handler_classPrivateFieldGet(H,this),i=message_handler_classPrivateFieldGet(z,this).get(t),o=message_handler_classPrivateFieldGet($,this).get(t);switch(e.stream){case O:e.success?i.startCall.resolve():i.startCall.reject(wrapReason(e.reason));break;case T:e.success?i.pullCall.resolve():i.pullCall.reject(wrapReason(e.reason));break;case x:if(!o){r.postMessage({sourceName:n,targetName:s,stream:T,streamId:t,success:!0});break}o.desiredSize<=0&&e.desiredSize>0&&o.sinkCapability.resolve();o.desiredSize=e.desiredSize;Promise.try(o.onPull||a.noopFn).then(()=>{r.postMessage({sourceName:n,targetName:s,stream:T,streamId:t,success:!0})},e=>{r.postMessage({sourceName:n,targetName:s,stream:T,streamId:t,reason:wrapReason(e)})});break;case C:(0,a.assert)(i,"enqueue should have stream controller");if(i.isClosed)break;i.controller.enqueue(e.chunk);break;case _:(0,a.assert)(i,"close should have stream controller");if(i.isClosed)break;i.isClosed=!0;i.controller.close();message_handler_assertClassBrand(G,this,_deleteStreamController).call(this,i,t);break;case F:(0,a.assert)(i,"error should have stream controller");i.controller.error(wrapReason(e.reason));message_handler_assertClassBrand(G,this,_deleteStreamController).call(this,i,t);break;case S:e.success?i.cancelCall.resolve():i.cancelCall.reject(wrapReason(e.reason));message_handler_assertClassBrand(G,this,_deleteStreamController).call(this,i,t);break;case q:if(!o)break;const l=wrapReason(e.reason);Promise.try(o.onCancel||a.noopFn,l).then(()=>{r.postMessage({sourceName:n,targetName:s,stream:S,streamId:t,success:!0})},e=>{r.postMessage({sourceName:n,targetName:s,stream:S,streamId:t,reason:wrapReason(e)})});o.sinkCapability.reject(l);o.isCancelled=!0;message_handler_classPrivateFieldGet($,this).delete(t);break;default:throw new Error("Unexpected stream case")}}async function _deleteStreamController(e,t){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]);message_handler_classPrivateFieldGet(z,this).delete(t)}var W=__webpack_require__(3738),X=__webpack_require__(3447);function base_pdf_stream_defineProperty(e,t,a){return(t=function base_pdf_stream_toPropertyKey(e){var t=function base_pdf_stream_toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function base_pdf_stream_classPrivateFieldInitSpec(e,t,a){(function base_pdf_stream_checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,a)}function base_pdf_stream_classPrivateFieldGet(e,t){return e.get(base_pdf_stream_assertClassBrand(e,t))}function base_pdf_stream_classPrivateFieldSet(e,t,a){return e.set(base_pdf_stream_assertClassBrand(e,t),a),a}function base_pdf_stream_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}var K=new WeakMap,V=new WeakMap;class BasePDFStream{constructor(e,t,a){base_pdf_stream_classPrivateFieldInitSpec(this,K,null);base_pdf_stream_classPrivateFieldInitSpec(this,V,null);base_pdf_stream_defineProperty(this,"_fullReader",null);base_pdf_stream_defineProperty(this,"_rangeReaders",new Set);base_pdf_stream_defineProperty(this,"_source",null);this._source=e;base_pdf_stream_classPrivateFieldSet(K,this,t);base_pdf_stream_classPrivateFieldSet(V,this,a)}get _progressiveDataLength(){return this._fullReader?._loaded??0}getFullReader(){(0,a.assert)(!this._fullReader,"BasePDFStream.getFullReader can only be called once.");return this._fullReader=new(base_pdf_stream_classPrivateFieldGet(K,this))(this)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const a=new(base_pdf_stream_classPrivateFieldGet(V,this))(this,e,t);this._rangeReaders.add(a);return a}cancelAllRequests(e){this._fullReader?.cancel(e);for(const t of new Set(this._rangeReaders))t.cancel(e)}}class BasePDFStreamReader{constructor(e){base_pdf_stream_defineProperty(this,"onProgress",null);base_pdf_stream_defineProperty(this,"_contentLength",0);base_pdf_stream_defineProperty(this,"_filename",null);base_pdf_stream_defineProperty(this,"_headersCapability",(0,a.createPromiseCapability)());base_pdf_stream_defineProperty(this,"_isRangeSupported",!1);base_pdf_stream_defineProperty(this,"_isStreamingSupported",!1);base_pdf_stream_defineProperty(this,"_loaded",0);base_pdf_stream_defineProperty(this,"_stream",null);this._stream=e}_callOnProgress(){this.onProgress?.({loaded:this._loaded,total:this._contentLength})}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){(0,a.unreachable)("Abstract method `read` called")}cancel(e){(0,a.unreachable)("Abstract method `cancel` called")}}class BasePDFStreamRangeReader{constructor(e,t,a){base_pdf_stream_defineProperty(this,"_stream",null);this._stream=e}async read(){(0,a.unreachable)("Abstract method `read` called")}cancel(e){(0,a.unreachable)("Abstract method `cancel` called")}}function worker_stream_defineProperty(e,t,a){return(t=function worker_stream_toPropertyKey(e){var t=function worker_stream_toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}class PDFWorkerStream extends BasePDFStream{constructor(e){super(e,PDFWorkerStreamReader,PDFWorkerStreamRangeReader)}}class PDFWorkerStreamReader extends BasePDFStreamReader{constructor(e){super(e);worker_stream_defineProperty(this,"_reader",null);const{msgHandler:t}=e._source,a=t.sendWithStream("GetReader");this._reader=a.getReader();t.sendWithPromise("ReaderHeadersReady").then(e=>{this._contentLength=e.contentLength;this._isStreamingSupported=e.isStreamingSupported;this._isRangeSupported=e.isRangeSupported;this._headersCapability.resolve()},this._headersCapability.reject)}async read(){const{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).catch(a.noopFn)}}class PDFWorkerStreamRangeReader extends BasePDFStreamRangeReader{constructor(e,t,a){super(e,t,a);worker_stream_defineProperty(this,"_reader",null);const{msgHandler:n}=e._source,s=n.sendWithStream("GetRangeReader",{begin:t,end:a});this._reader=s.getReader()}async read(){const{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).catch(a.noopFn)}}var Y,J=__webpack_require__(5389),Q=__webpack_require__(8802),Z=__webpack_require__(6484);function worker_defineProperty(e,t,a){return(t=function worker_toPropertyKey(e){var t=function worker_toPrimitive(e,t){if("object"!=typeof e||!e)return e;var a;if("undefined"!=typeof Symbol&&void 0!==(a=e[Symbol.toPrimitive])){var n=a.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function worker_classPrivateFieldInitSpec(e,t,a){(function worker_checkPrivateRedeclaration(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,a)}function worker_classPrivateFieldGet(e,t){return e.get(function worker_assertClassBrand(e,t,a){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}(e,t))}Promise.allSettled||(Promise.allSettled=function(e){const t=e.filter(e=>!!e).map(e=>e.then(e=>({status:"fulfilled",value:e})).catch(e=>({status:"rejected",reason:e})));return Promise.all(t)});var ee=new WeakMap;class WorkerTask{constructor(e){worker_classPrivateFieldInitSpec(this,ee,(0,a.createPromiseCapability)());worker_defineProperty(this,"terminated",!1);this.name=e}get finished(){return worker_classPrivateFieldGet(ee,this).promise}finish(){worker_classPrivateFieldGet(ee,this).resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}class WorkerMessageHandler{static setup(e,t){e.on("configure",e=>{(0,a.setVerbosityLevel)(e.verbosity)});e.on("GetDocRequest",e=>this.createDocumentHandler(e,t))}static createDocumentHandler(e,t){let r,i=!1,o=null;const l=new Set,{docId:c,apiVersion:f}=e,h="7.0.1323";if(f!==h)throw new Error(`The API version "${f}" does not match the Worker version "${h}".`);const buildMsg=(e,t)=>`The \`${e}.prototype\` contains unexpected enumerable property "${t}", thus breaking e.g. \`for...in\` iteration of ${e}s.`;for(const e in{})throw new Error(buildMsg("Object",e));for(const e in[])throw new Error(buildMsg("Array",e));const u=c+"_worker";let d=new MessageHandler(u,c,t);function ensureNotTerminated(){if(i)throw new Error("Worker was terminated")}function startWorkerTask(e){l.add(e)}function finishWorkerTask(e){e.finish();l.delete(e)}async function runPageTask(e,t,a,n){const s=await e.getPage(t),r=new WorkerTask(`${a}: page ${t}`);startWorkerTask(r);try{return await n(s,r)}finally{finishWorkerTask(r)}}async function loadDocument(e){await r.initDocument(e);const t=await r.ensureDoc("isPureXfa");if(t){const e=new WorkerTask("loadXfaResources");startWorkerTask(e);await r.ensureDoc("loadXfaResources",[d,e]);finishWorkerTask(e)}const[a,n]=await Promise.all([r.ensureDoc("numPages"),r.ensureDoc("fingerprints")]);return{numPages:a,fingerprints:n,htmlForXfa:t?await r.ensureDoc("htmlForXfa"):null}}async function getPassword(e){const t=new WorkerTask(`PasswordException: response ${e.code}`);startWorkerTask(t);try{return(await d.sendWithPromise("PasswordRequest",e)).password}finally{Promise.resolve().then(()=>{finishWorkerTask(t)})}}function setupDoc(e){function onSuccess(e){ensureNotTerminated();d.send("GetDoc",{pdfInfo:e})}function onFailure(e){i||(e instanceof a.PasswordException?getPassword(e).then(e=>{r.updatePassword(e);pdfManagerReady()}).catch(()=>{d.send("DocException",e)}):d.send("DocException",wrapReason(e)))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,function(e){ensureNotTerminated();e instanceof n.XRefParseException?r.requestLoadedStream().then(function(){ensureNotTerminated();loadDocument(!0).then(onSuccess,onFailure)},onFailure):onFailure(e)})}ensureNotTerminated();(async function getPdfManager({data:e,password:t,disableAutoFetch:s,rangeChunkSize:r,docBaseUrl:i,enableXfa:l,evaluatorOptions:f,enableOpenActionJavaScript:h,enableCatalogAAJavaScript:u}){const m={source:null,disableAutoFetch:s,docBaseUrl:i,docId:c,enableXfa:l,evaluatorOptions:f,handler:d,length:0,password:t,rangeChunkSize:r,enableOpenActionJavaScript:h=!!h,enableCatalogAAJavaScript:u=!!u};if(e){m.source=e;return new LocalPdfManager(m)}const g=new PDFWorkerStream({msgHandler:d}),b=g.getFullReader(),{promise:w,resolve:j,reject:y}=(0,a.createPromiseCapability)();let v,k=[];o=e=>g.cancelAllRequests(e);b.headersReady.then(()=>{if(b.isRangeSupported){m.source=g;m.length=b.contentLength;m.disableAutoFetch||=b.isStreamingSupported;v=new NetworkPdfManager(m);for(const e of k)v.sendProgressiveData(e);k=null;j(v);o=null}}).catch(e=>{y(e);o=null});(async function readData(){let e=0;for(;;){const{value:t,done:a}=await b.read();ensureNotTerminated();if(a)break;e+=t.byteLength;b.isStreamingSupported||d.send("DocProgress",{loaded:e,total:b.contentLength});v?v.sendProgressiveData(t):k.push(t)}if(!v){m.source=(0,n.arrayBuffersToBytes)(k);k=null;v=new LocalPdfManager(m);j(v)}o=null})().catch(e=>{y(e);o=null});return w})(e).then(function(e){if(i){e.terminate(new a.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}r=e;r.requestLoadedStream(!0).then(e=>{d.send("DataLoaded",{length:e.bytes.byteLength})},a.noopFn)}).then(pdfManagerReady,onFailure)}d.on("GetPage",async function({pageIndex:e}){const t=await r.getPage(e),[a,n,s,i]=await Promise.all([r.ensure(t,"rotate"),r.ensure(t,"ref"),r.ensure(t,"userUnit"),r.ensure(t,"view")]);return{rotate:a,ref:n,refStr:n?.toString()??null,userUnit:s,view:i}});d.on("GetPageIndex",function({num:e,gen:t}){return r.ensureCatalog("getPageIndex",[s.Ref.get(e,t)])});d.on("GetDestinations",function(){return r.ensureCatalog("destinations")});d.on("GetDestination",function({id:e}){return r.ensureCatalog("getDestination",[e])});d.on("GetPageLabels",function(){return r.ensureCatalog("pageLabels")});d.on("GetPageLayout",function(){return r.ensureCatalog("pageLayout")});d.on("GetPageMode",function(){return r.ensureCatalog("pageMode")});d.on("GetViewerPreferences",function(){return r.ensureCatalog("viewerPreferences")});d.on("GetOpenAction",function(){return r.ensureCatalog("openAction")});d.on("GetAttachments",function(){return r.ensureCatalog("attachments")});d.on("GetAttachmentContent",async function(e){let t;for(;;){const n=t?await getPassword(t):null;try{n&&r.updatePassword(n);return await r.ensureCatalog("attachmentContent",[e])}catch(e){if(e instanceof a.PasswordException){t=e;continue}throw e}}});d.on("GetDocJSActions",function(){return r.ensureCatalog("jsActions")});d.on("GetPageJSActions",async function({pageIndex:e}){const t=await r.getPage(e);return r.ensure(t,"jsActions")});d.on("GetAnnotationsByType",async function({types:e,pageIndexesToSkip:t}){const[a,n]=await Promise.all([r.ensureDoc("numPages"),r.ensureDoc("annotationGlobals")]);if(!n)return null;const s=[],i=[];let o=null;try{for(let l=0;l<a;l++)if(!t?.has(l)){if(!o){o=new WorkerTask("GetAnnotationsByType");startWorkerTask(o)}s.push(r.getPage(l).then(t=>t.collectAnnotationsByType(d,o,e,i,n)))}await Promise.all(s);return(await Promise.all(i)).filter(Boolean)}finally{o&&finishWorkerTask(o)}});d.on("GetOutline",function(){return r.ensureCatalog("documentOutline")});d.on("GetOptionalContentConfig",function(){return r.ensureCatalog("optionalContentConfig")});d.on("GetPermissions",function(){return r.ensureCatalog("permissions")});d.on("GetMetadata",function(){return Promise.all([r.ensureDoc("documentInfo"),r.ensureCatalog("metadata"),r.ensureCatalog("hasStructTree")])});d.on("GetMarkInfo",function(){return r.ensureCatalog("markInfo")});d.on("GetData",async function(){return(await r.requestLoadedStream()).bytes});d.on("GetAnnotations",function({pageIndex:e,intent:t}){return runPageTask(r,e,"GetAnnotations",(e,a)=>e.getAnnotationsData(d,a,t))});d.on("GetFieldObjects",async function(){const e=await r.ensureDoc("fieldObjects");return e?.allFields||null});d.on("GetSignatures",function(){return r.ensureDoc("signatures")});d.on("GetSignatureData",function(e){return r.ensureDoc("getSignatureData",[e])});d.on("HasJSActions",function(){return r.ensureDoc("hasJSActions")});d.on("GetCalculationOrderIds",function(){return r.ensureDoc("calculationOrderIds")});d.on("ExtractPages",async function({pageInfos:e,annotationStorage:t,flatten:s,intent:i}){if(!e){(0,a.warn)("extractPages: nothing to extract.");return null}Array.isArray(e)||(e=[e]);let o,l=null,f=0;for(const t of e)if(!t.image)if(null===t.document)t.document=r.pdfDocument;else if(ArrayBuffer.isView(t.document)){const e=new LocalPdfManager({source:t.document,docId:`${c}_extractPages_${f++}`,handler:d,password:t.password??null,evaluatorOptions:Object.assign({},r.evaluatorOptions)});(l??=[]).push(e);let s=!1,i=!0;for(;;)try{await e.requestLoadedStream();await e.initDocument(s);break}catch(t){if(t instanceof n.XRefParseException){if(!1===s){s=!0;continue}i=!1;(0,a.warn)("extractPages: XRefParseException.")}else if(t instanceof a.PasswordException)try{const a=await getPassword(t);e.updatePassword(a)}catch{i=!1;(0,a.warn)("extractPages: invalid password.")}else{i=!1;(0,a.warn)("extractPages: invalid document.")}if(!i)break}if(i)if(await e.ensureDoc("hasOnlyXfa")){t.document=null;(0,a.warn)("extractPages does not support pure XFA documents.")}else t.document=e.pdfDocument;else t.document=null}else{t.document=null;(0,a.warn)("extractPages: invalid document.")}try{const{PDFEditor:n}=await Promise.resolve().then(()=>__webpack_require__(3008)),l=new n;o=new WorkerTask(`ExtractPages: ${e.length} page(s)`);startWorkerTask(o);const f=await l.extractPages(e,t,r.pdfDocument,d,o);return f&&s?await async function flattenData({data:e,password:t,annotationStorage:n,flatten:s,intent:i,task:o}){const l=[],load=async e=>{const a=new LocalPdfManager({source:e,docId:`${c}_saved_${m++}`,handler:d,password:t,evaluatorOptions:{...r.evaluatorOptions}});l.push(a);await a.requestLoadedStream();await a.initDocument(!1);return a};try{let t=await load(e);const a=await saveDocument(t,{isPureXfa:!1,numPages:await t.ensureDoc("numPages"),annotationStorage:n,supportsPrintToPDF:!1,filename:null,flatten:s,intent:i});if(a===e)return e;t=await load(a);const{PDFEditor:r}=await Promise.resolve().then(()=>__webpack_require__(3008));return await(new r).extractPages([{document:t.pdfDocument}],null,t.pdfDocument,d,o)}finally{for(const e of l)e.terminate(new a.AbortException("ExtractPages was finished."))}}({data:f,password:l.password,annotationStorage:l.getCopiedAnnotationStorage(t),flatten:s,intent:i,task:o}):f}catch(e){(0,a.warn)(`extractPages: "${e}".`);return null}finally{o&&finishWorkerTask(o);l?.forEach(e=>e.terminate(new a.AbortException("ExtractPages was finished.")))}});let m=0;async function saveDocument(e,{isPureXfa:t,numPages:r,annotationStorage:i,supportsPrintToPDF:o,filename:l,flatten:c,intent:f,pageOrder:h=null}){t&&(c=!1);const u=[e.requestLoadedStream(),e.ensureCatalog("acroForm"),e.ensureCatalog("acroFormRef"),e.ensureDoc("startXRef"),e.ensureDoc("xref"),e.ensureCatalog("structTreeRoot")],m=new s.RefMap,g=[];if(Array.isArray(h)){const t=await e.ensureDoc("xref"),a=new Z.Catalog(e,t,{enableOpenActionJavaScript:e.enableOpenActionJavaScript,enableCatalogAAJavaScript:e.enableCatalogAAJavaScript}),n=await a.getAllPageDicts(),s=Array.from(n.entries()),r=a.cloneDict().getRaw("Pages"),i=(await t.fetchIfRefAsync(r)).clone(),o=h.map(e=>s[e-1][1][1]);i.set("Kids",o);for(const e of o){const a=await t.fetchIfRefAsync(e);a.set("Parent",r);m.put(e,{data:a})}m.put(r,{data:i})}const b=t?null:(0,n.getNewAnnotationsMap)(i),[w,j,y,v,k,q]=await Promise.all(u),S=k.trailer.getRaw("Root")||null;let _;if(b){q?await q.canUpdateStructTree({pdfManager:e,newAnnotationsByPage:b})&&(_=q):await Q.StructTreeRoot.canCreateStructureTree({catalogRef:S,pdfManager:e,newAnnotationsByPage:b})&&(_=null);const t=W.AnnotationFactory.generateImages(i.values(),k,e.evaluatorOptions.isOffscreenCanvasSupported),a=void 0===_?g:[];for(const[n,s]of b)a.push(runPageTask(e,n,"Save (editor)",(e,a)=>e.saveNewAnnotations(d,a,s,t,m)));null===_?g.push(Promise.all(a).then(()=>Q.StructTreeRoot.createStructureTree({newAnnotationsByPage:b,xref:k,catalogRef:S,pdfManager:e,changes:m}))):_&&g.push(Promise.all(a).then(()=>_.updateStructureTree({newAnnotationsByPage:b,pdfManager:e,changes:m})))}if(t)g.push(e.ensureDoc("serializeXfaData",[i]));else for(let t=0;t<r;t++)g.push(runPageTask(e,t,"Save",(e,t)=>e.save(d,t,i,m)));const C=await Promise.all(g),F=c?await async function flattenDocument({manager:e,numPages:t,annotationStorage:n,acroForm:s,acroFormRef:r,catalogRef:i,changes:o,xref:l,flattenForms:c,intent:f}){const{finalizeFlattening:h,StructTreeFlattener:u}=await Promise.resolve().then(()=>__webpack_require__(2537)),m=u.create({catalogRef:i,changes:o,xref:l}),g=[];for(let s=0;s<t;s++)g.push(runPageTask(e,s,"Flatten",async(e,t)=>{try{return{...await e.flattenAnnotations(d,t,{annotationStorage:n,changes:o,flattenForms:c,intent:f,structTree:m}),pageRef:e.ref}}catch(e){(0,a.warn)(`flattenDocument - ignoring page ${s}: "${e}".`);return{hadWidgets:!0,hasWidgets:!0}}}));return h({results:await Promise.all(g),structTree:m,manager:e,acroForm:s,acroFormRef:r,catalogRef:i,changes:o,xref:l,flattenForms:c})}({manager:e,numPages:r,annotationStorage:i,acroForm:j,acroFormRef:y,catalogRef:S,changes:m,xref:k,flattenForms:"non-forms"!==c,intent:f}):j;let x=null;if(t){x=C[0];if(!x)return w.bytes}else if(0===m.size)return w.bytes;const{incrementalUpdate:T}=await Promise.resolve().then(()=>__webpack_require__(6721)),O=F instanceof s.Dict,M=y&&O&&m.values().some(e=>e.needAppearances),R=O&&F.get("XFA")||null;let D=null,H=!1;if(Array.isArray(R)){for(let e=0,t=R.length;e<t;e+=2)if("datasets"===R[e]){D=R[e+1];H=!0}null===D&&(D=k.getNewTemporaryRef())}else R&&(0,a.warn)("Unsupported XFA type.");let N=Object.create(null);if(k.trailer){const e=new Map,t=k.trailer.get("Info")||null;if(t instanceof s.Dict)for(const[a,n]of t)"string"==typeof n&&e.set(a,(0,J.stringToPDFString)(n));N={rootRef:S,encryptRef:k.trailer.getRaw("Encrypt")||null,newRef:k.getNewTemporaryRef(),infoRef:k.trailer.getRaw("Info")||null,infoMap:e,fileIds:k.trailer.get("ID")||null,startXRef:v,filename:l}}return T({originalData:w.bytes,xrefInfo:N,changes:m,xref:k,hasXfa:!!R,xfaDatasetsRef:D,hasXfaDatasetsEntry:H,needAppearances:M,acroFormRef:y,acroForm:F,xfaData:x,useXrefStream:(0,s.isDict)(k.topDict,"XRef")}).finally(()=>{k.resetNewTemporaryRef()})}d.on("SaveDocument",e=>saveDocument(r,e));d.on("GetOperatorList",function({pageId:e,pageIndex:t,pageProxyId:a,intent:n,cacheKey:s,annotationStorage:i,modifiedIds:o},l){r.getPage(e).then(function(e){const r=new WorkerTask(`GetOperatorList: page ${t}`);startWorkerTask(r);e.getOperatorList({handler:d,sink:l,task:r,intent:n,cacheKey:s,annotationStorage:i,modifiedIds:o,pageIndex:t,pageProxyId:a}).then(()=>{l.close()},e=>{r.terminated||l.error(e)}).finally(()=>{finishWorkerTask(r)})})});d.on("GetTextContent",function({pageId:e,pageIndex:t,...a},n){r.getPage(e).then(function(e){const s=new WorkerTask("GetTextContent: page "+t);startWorkerTask(s);e.extractTextContent({...a,handler:d,task:s,sink:n}).then(()=>{n.close()},e=>{s.terminated||n.error(e)}).finally(()=>{finishWorkerTask(s)})})});d.on("GetStructTree",async function({pageIndex:e}){const t=await r.getPage(e);return r.ensure(t,"getStructTree")});d.on("FontFallback",function({id:e}){return r.ensureDoc("fontFallback",[e,d])});d.on("Cleanup",function(){return r.cleanup(!0)});d.on("CleanupPage",async function({pageProxyId:e}){(await r.ensureCatalog("globalImageCache")).cleanupPage(e)});d.on("Terminate",async function(){i=!0;const e=[];if(r){await r.terminate(new a.AbortException("Worker was terminated."));e.push(r.cleanup());r=null}else(0,X.clearGlobalCaches)();o?.(new a.AbortException("Worker was terminated."));for(const t of l){e.push(t.finished);t.terminate()}await Promise.all(e);d.destroy();d=null});d.on("Ready",function(){setupDoc(e);e=null});d.on("showUnverifiedSignatures",function wphReady(e){e&&(0,a.info)("showUnverifiedSignatures="+e+". This is an incompletely implemented feature. Signatures cannot be validated, so use it at own risk.");self.showUnverifiedSignatures=e});return u}static initializeFromPort(e){const t=new MessageHandler("worker","main",e);this.setup(t,e);const a=new Uint8Array;t.send("ready",a,[a.buffer])}}Y=WorkerMessageHandler;"undefined"==typeof window&&!a.isNodeJS&&"undefined"!=typeof self&&"function"==typeof self.postMessage&&"onmessage"in self&&Y.initializeFromPort(self);globalThis.pdfjsWorker={WorkerMessageHandler};export{WorkerMessageHandler};