UNPKG

pdfjs-dist

Version:

Generic build of Mozilla's PDF.js library.

22 lines 1.12 MB
/** * @licstart The following is the entire license notice for the * JavaScript code in this page * * Copyright 2023 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 */ !function webpackUniversalModuleDefinition(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf.worker",[],t):"object"==typeof exports?exports["pdfjs-dist/build/pdf.worker"]=t():e["pdfjs-dist/build/pdf.worker"]=e.pdfjsWorker=t()}(globalThis,(()=>(()=>{var e=[,(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.WorkerTask=t.WorkerMessageHandler=void 0;var r=a(2),n=a(139),i=a(140),s=a(142),o=a(208),c=a(202),l=a(4),h=a(239),u=a(240);class WorkerTask{constructor(e){this.name=e;this.terminated=!1;this._capability=new r.PromiseCapability}get finished(){return this._capability.promise}finish(){this._capability.resolve()}terminate(){this.terminated=!0}ensureNotTerminated(){if(this.terminated)throw new Error("Worker task was terminated")}}t.WorkerTask=WorkerTask;class WorkerMessageHandler{static setup(e,t){let a=!1;e.on("test",(function(t){if(!a){a=!0;e.send("test",t instanceof Uint8Array)}}));e.on("configure",(function(e){(0,r.setVerbosityLevel)(e.verbosity)}));e.on("GetDocRequest",(function(e){return WorkerMessageHandler.createDocumentHandler(e,t)}))}static createDocumentHandler(e,t){let a,l=!1,d=null;const f=new Set,g=(0,r.getVerbosityLevel)(),{docId:p,apiVersion:m}=e,b="3.7.107";if(m!==b)throw new Error(`The API version "${m}" does not match the Worker version "${b}".`);const y=[];for(const e in[])y.push(e);if(y.length)throw new Error("The `Array.prototype` contains unexpected enumerable properties: "+y.join(", ")+"; thus breaking e.g. `for...in` iteration of `Array`s.");const w=p+"_worker";let S=new h.MessageHandler(w,p,t);function ensureNotTerminated(){if(l)throw new Error("Worker was terminated")}function startWorkerTask(e){f.add(e)}function finishWorkerTask(e){e.finish();f.delete(e)}async function loadDocument(e){await a.ensureDoc("checkHeader");await a.ensureDoc("parseStartXRef");await a.ensureDoc("parse",[e]);await a.ensureDoc("checkFirstPage",[e]);await a.ensureDoc("checkLastPage",[e]);const t=await a.ensureDoc("isPureXfa");if(t){const e=new WorkerTask("loadXfaFonts");startWorkerTask(e);await Promise.all([a.loadXfaFonts(S,e).catch((e=>{})).then((()=>finishWorkerTask(e))),a.loadXfaImages()])}const[r,n]=await Promise.all([a.ensureDoc("numPages"),a.ensureDoc("fingerprints")]);return{numPages:r,fingerprints:n,htmlForXfa:t?await a.ensureDoc("htmlForXfa"):null}}function getPdfManager(e){let{data:t,password:a,disableAutoFetch:i,rangeChunkSize:o,length:c,docBaseUrl:l,enableXfa:h,evaluatorOptions:f}=e;const g={source:null,disableAutoFetch:i,docBaseUrl:l,docId:p,enableXfa:h,evaluatorOptions:f,handler:S,length:c,password:a,rangeChunkSize:o},m=new r.PromiseCapability;let b;if(t){try{g.source=t;b=new s.LocalPdfManager(g);m.resolve(b)}catch(e){m.reject(e)}return m.promise}let y,w=[];try{y=new u.PDFWorkerStream(S)}catch(e){m.reject(e);return m.promise}const x=y.getFullReader();x.headersReady.then((function(){if(x.isRangeSupported){g.source=y;g.length=x.contentLength;g.disableAutoFetch||=x.isStreamingSupported;b=new s.NetworkPdfManager(g);for(const e of w)b.sendProgressiveData(e);w=[];m.resolve(b);d=null}})).catch((function(e){m.reject(e);d=null}));let v=0;new Promise((function(e,t){const readChunk=function(e){let{value:a,done:i}=e;try{ensureNotTerminated();if(i){b||function(){const e=(0,n.arrayBuffersToBytes)(w);c&&e.length!==c&&(0,r.warn)("reported HTTP length is different from actual");try{g.source=e;b=new s.LocalPdfManager(g);m.resolve(b)}catch(e){m.reject(e)}w=[]}();d=null;return}v+=a.byteLength;x.isStreamingSupported||S.send("DocProgress",{loaded:v,total:Math.max(v,x.contentLength||0)});b?b.sendProgressiveData(a):w.push(a);x.read().then(readChunk,t)}catch(e){t(e)}};x.read().then(readChunk,t)})).catch((function(e){m.reject(e);d=null}));d=function(e){y.cancelAllRequests(e)};return m.promise}S.on("GetPage",(function(e){return a.getPage(e.pageIndex).then((function(e){return Promise.all([a.ensure(e,"rotate"),a.ensure(e,"ref"),a.ensure(e,"userUnit"),a.ensure(e,"view")]).then((function(e){let[t,a,r,n]=e;return{rotate:t,ref:a,userUnit:r,view:n}}))}))}));S.on("GetPageIndex",(function(e){const t=i.Ref.get(e.num,e.gen);return a.ensureCatalog("getPageIndex",[t])}));S.on("GetDestinations",(function(e){return a.ensureCatalog("destinations")}));S.on("GetDestination",(function(e){return a.ensureCatalog("getDestination",[e.id])}));S.on("GetPageLabels",(function(e){return a.ensureCatalog("pageLabels")}));S.on("GetPageLayout",(function(e){return a.ensureCatalog("pageLayout")}));S.on("GetPageMode",(function(e){return a.ensureCatalog("pageMode")}));S.on("GetViewerPreferences",(function(e){return a.ensureCatalog("viewerPreferences")}));S.on("GetOpenAction",(function(e){return a.ensureCatalog("openAction")}));S.on("GetAttachments",(function(e){return a.ensureCatalog("attachments")}));S.on("GetJavaScript",(function(e){return a.ensureCatalog("javaScript")}));S.on("GetDocJSActions",(function(e){return a.ensureCatalog("jsActions")}));S.on("GetPageJSActions",(function(e){let{pageIndex:t}=e;return a.getPage(t).then((function(e){return a.ensure(e,"jsActions")}))}));S.on("GetOutline",(function(e){return a.ensureCatalog("documentOutline")}));S.on("GetOptionalContentConfig",(function(e){return a.ensureCatalog("optionalContentConfig")}));S.on("GetPermissions",(function(e){return a.ensureCatalog("permissions")}));S.on("GetMetadata",(function(e){return Promise.all([a.ensureDoc("documentInfo"),a.ensureCatalog("metadata")])}));S.on("GetMarkInfo",(function(e){return a.ensureCatalog("markInfo")}));S.on("GetData",(function(e){return a.requestLoadedStream().then((function(e){return e.bytes}))}));S.on("GetAnnotations",(function(e){let{pageIndex:t,intent:r}=e;return a.getPage(t).then((function(e){const a=new WorkerTask(`GetAnnotations: page ${t}`);startWorkerTask(a);return e.getAnnotationsData(S,a,r).then((e=>{finishWorkerTask(a);return e}),(e=>{finishWorkerTask(a);throw e}))}))}));S.on("GetFieldObjects",(function(e){return a.ensureDoc("fieldObjects")}));S.on("HasJSActions",(function(e){return a.ensureDoc("hasJSActions")}));S.on("GetCalculationOrderIds",(function(e){return a.ensureDoc("calculationOrderIds")}));S.on("SaveDocument",(function(e){let{isPureXfa:t,numPages:s,annotationStorage:o,filename:l}=e;const h=[a.requestLoadedStream(),a.ensureCatalog("acroForm"),a.ensureCatalog("acroFormRef"),a.ensureDoc("xref"),a.ensureDoc("startXRef")],u=t?null:(0,n.getNewAnnotationsMap)(o);if(u)for(const[e,t]of u)h.push(a.getPage(e).then((a=>{const r=new WorkerTask(`Save (editor): page ${e}`);return a.saveNewAnnotations(S,r,t).finally((function(){finishWorkerTask(r)}))})));if(t)h.push(a.serializeXfaData(o));else for(let e=0;e<s;e++)h.push(a.getPage(e).then((function(t){const a=new WorkerTask(`Save: page ${e}`);return t.save(S,a,o).finally((function(){finishWorkerTask(a)}))})));return Promise.all(h).then((function(e){let[a,n,s,o,h,...u]=e,d=[],f=null;if(t){f=u[0];if(!f)return a.bytes}else{d=u.flat(2);if(0===d.length)return a.bytes}const g=s&&n instanceof i.Dict&&d.some((e=>e.needAppearances)),p=n instanceof i.Dict&&n.get("XFA")||null;let m=null,b=!1;if(Array.isArray(p)){for(let e=0,t=p.length;e<t;e+=2)if("datasets"===p[e]){m=p[e+1];b=!0}null===m&&(m=o.getNewTemporaryRef())}else p&&(0,r.warn)("Unsupported XFA type.");let y=Object.create(null);if(o.trailer){const e=Object.create(null),t=o.trailer.get("Info")||null;t instanceof i.Dict&&t.forEach(((t,a)=>{"string"==typeof a&&(e[t]=(0,r.stringToPDFString)(a))}));y={rootRef:o.trailer.getRaw("Root")||null,encryptRef:o.trailer.getRaw("Encrypt")||null,newRef:o.getNewTemporaryRef(),infoRef:o.trailer.getRaw("Info")||null,info:e,fileIds:o.trailer.get("ID")||null,startXRef:o.lastXRefStreamPos??h,filename:l}}try{return(0,c.incrementalUpdate)({originalData:a.bytes,xrefInfo:y,newRefs:d,xref:o,hasXfa:!!p,xfaDatasetsRef:m,hasXfaDatasetsEntry:b,needAppearances:g,acroFormRef:s,acroForm:n,xfaData:f})}finally{o.resetNewTemporaryRef()}}))}));S.on("GetOperatorList",(function(e,t){const n=e.pageIndex;a.getPage(n).then((function(a){const i=new WorkerTask(`GetOperatorList: page ${n}`);startWorkerTask(i);const s=g>=r.VerbosityLevel.INFOS?Date.now():0;a.getOperatorList({handler:S,sink:t,task:i,intent:e.intent,cacheKey:e.cacheKey,annotationStorage:e.annotationStorage}).then((function(e){finishWorkerTask(i);s&&(0,r.info)(`page=${n+1} - getOperatorList: time=${Date.now()-s}ms, len=${e.length}`);t.close()}),(function(e){finishWorkerTask(i);i.terminated||t.error(e)}))}))}));S.on("GetTextContent",(function(e,t){const{pageIndex:n,includeMarkedContent:i,disableNormalization:s}=e;a.getPage(n).then((function(e){const a=new WorkerTask("GetTextContent: page "+n);startWorkerTask(a);const o=g>=r.VerbosityLevel.INFOS?Date.now():0;e.extractTextContent({handler:S,task:a,sink:t,includeMarkedContent:i,disableNormalization:s}).then((function(){finishWorkerTask(a);o&&(0,r.info)(`page=${n+1} - getTextContent: time=`+(Date.now()-o)+"ms");t.close()}),(function(e){finishWorkerTask(a);a.terminated||t.error(e)}))}))}));S.on("GetStructTree",(function(e){return a.getPage(e.pageIndex).then((function(e){return a.ensure(e,"getStructTree")}))}));S.on("FontFallback",(function(e){return a.fontFallback(e.id,S)}));S.on("Cleanup",(function(e){return a.cleanup(!0)}));S.on("Terminate",(function(e){l=!0;const t=[];if(a){a.terminate(new r.AbortException("Worker was terminated."));const e=a.cleanup();t.push(e);a=null}else(0,o.clearGlobalCaches)();d&&d(new r.AbortException("Worker was terminated."));for(const e of f){t.push(e.finished);e.terminate()}return Promise.all(t).then((function(){S.destroy();S=null}))}));S.on("Ready",(function(t){!function setupDoc(e){function onSuccess(e){ensureNotTerminated();S.send("GetDoc",{pdfInfo:e})}function onFailure(e){ensureNotTerminated();if(e instanceof r.PasswordException){const t=new WorkerTask(`PasswordException: response ${e.code}`);startWorkerTask(t);S.sendWithPromise("PasswordRequest",e).then((function(e){let{password:r}=e;finishWorkerTask(t);a.updatePassword(r);pdfManagerReady()})).catch((function(){finishWorkerTask(t);S.send("DocException",e)}))}else e instanceof r.InvalidPDFException||e instanceof r.MissingPDFException||e instanceof r.UnexpectedResponseException||e instanceof r.UnknownErrorException?S.send("DocException",e):S.send("DocException",new r.UnknownErrorException(e.message,e.toString()))}function pdfManagerReady(){ensureNotTerminated();loadDocument(!1).then(onSuccess,(function(e){ensureNotTerminated();e instanceof n.XRefParseException?a.requestLoadedStream().then((function(){ensureNotTerminated();loadDocument(!0).then(onSuccess,onFailure)})):onFailure(e)}))}ensureNotTerminated();getPdfManager(e).then((function(e){if(l){e.terminate(new r.AbortException("Worker was terminated."));throw new Error("Worker was terminated")}a=e;a.requestLoadedStream(!0).then((e=>{S.send("DataLoaded",{length:e.bytes.byteLength})}))})).then(pdfManagerReady,onFailure)}(e);e=null}));return w}static initializeFromPort(e){const t=new h.MessageHandler("worker","main",e);WorkerMessageHandler.setup(t,e);t.send("ready",null)}}t.WorkerMessageHandler=WorkerMessageHandler;"undefined"==typeof window&&!l.isNodeJS&&"undefined"!=typeof self&&function isMessagePort(e){return"function"==typeof e.postMessage&&"onmessage"in e}(self)&&WorkerMessageHandler.initializeFromPort(self)},(e,t,a)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PromiseCapability=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationStateModelType=t.AnnotationReviewState=t.AnnotationReplyType=t.AnnotationMode=t.AnnotationMarkedState=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0;t.assert=function assert(e,t){e||unreachable(t)};t.bytesToString=function bytesToString(e){"object"==typeof e&&void 0!==(null==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 r=[];for(let n=0;n<t;n+=a){const i=Math.min(n+a,t),s=e.subarray(n,i);r.push(String.fromCharCode.apply(null,s))}return r.join("")};t.createValidAbsoluteUrl=function createValidAbsoluteUrl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return null;try{if(a&&"string"==typeof e){if(a.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);(null==t?void 0:t.length)>=2&&(e=`http://${e}`)}if(a.tryConvertEncoding)try{e=stringToUTF8String(e)}catch(e){}}const r=t?new URL(e,t):new URL(e);if(function _isValidProtocol(e){switch(null==e?void 0:e.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(r))return r}catch(e){}return null};t.getModificationDate=function getModificationDate(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")};t.getVerbosityLevel=function getVerbosityLevel(){return n};t.info=function info(e){n>=r.INFOS&&console.log(`Info: ${e}`)};t.isArrayBuffer=function isArrayBuffer(e){return"object"==typeof e&&void 0!==(null==e?void 0:e.byteLength)};t.isArrayEqual=function isArrayEqual(e,t){if(e.length!==t.length)return!1;for(let a=0,r=e.length;a<r;a++)if(e[a]!==t[a])return!1;return!0};t.normalizeUnicode=function normalizeUnicode(e){if(!c){c=/([\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;l=new Map([["ſt","ſt"]])}return e.replaceAll(c,((e,t,a)=>t?t.normalize("NFKC"):l.get(a)))};t.objectFromMap=function objectFromMap(e){const t=Object.create(null);for(const[a,r]of e)t[a]=r;return t};t.objectSize=function objectSize(e){return Object.keys(e).length};t.setVerbosityLevel=function setVerbosityLevel(e){Number.isInteger(e)&&(n=e)};t.shadow=shadow;t.string32=function string32(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)};t.stringToBytes=stringToBytes;t.stringToPDFString=function stringToPDFString(e){if(e[0]>="ï"){let t;"þ"===e[0]&&"ÿ"===e[1]?t="utf-16be":"ÿ"===e[0]&&"þ"===e[1]?t="utf-16le":"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8");if(t)try{const a=new TextDecoder(t,{fatal:!0}),r=stringToBytes(e);return a.decode(r)}catch(e){warn(`stringToPDFString: "${e}".`)}}const t=[];for(let a=0,r=e.length;a<r;a++){const r=o[e.charCodeAt(a)];t.push(r?String.fromCharCode(r):e.charAt(a))}return t.join("")};t.stringToUTF8String=stringToUTF8String;t.unreachable=unreachable;t.utf8StringToString=function utf8StringToString(e){return unescape(encodeURIComponent(e))};t.warn=warn;if(!globalThis._pdfjsCompatibilityChecked){globalThis._pdfjsCompatibilityChecked=!0;a(3)}t.IDENTITY_MATRIX=[1,0,0,1,0,0];t.FONT_IDENTITY_MATRIX=[.001,0,0,.001,0,0];t.MAX_IMAGE_SIZE_TO_CACHE=1e7;t.LINE_FACTOR=1.35;t.LINE_DESCENT_FACTOR=.35;t.BASELINE_FACTOR=.25925925925925924;t.RenderingIntentFlag={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};t.AnnotationMode={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};t.AnnotationEditorPrefix="pdfjs_internal_editor_";t.AnnotationEditorType={DISABLE:-1,NONE:0,FREETEXT:3,INK:15};t.AnnotationEditorParamsType={FREETEXT_SIZE:1,FREETEXT_COLOR:2,FREETEXT_OPACITY:3,INK_COLOR:11,INK_THICKNESS:12,INK_OPACITY:13};t.PermissionFlag={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};t.TextRenderingMode={FILL:0,STROKE:1,FILL_STROKE:2,INVISIBLE:3,FILL_ADD_TO_PATH:4,STROKE_ADD_TO_PATH:5,FILL_STROKE_ADD_TO_PATH:6,ADD_TO_PATH:7,FILL_STROKE_MASK:3,ADD_TO_PATH_FLAG:4};t.ImageKind={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};t.AnnotationType={TEXT:1,LINK:2,FREETEXT:3,LINE:4,SQUARE:5,CIRCLE:6,POLYGON:7,POLYLINE:8,HIGHLIGHT:9,UNDERLINE:10,SQUIGGLY:11,STRIKEOUT:12,STAMP:13,CARET:14,INK:15,POPUP:16,FILEATTACHMENT:17,SOUND:18,MOVIE:19,WIDGET:20,SCREEN:21,PRINTERMARK:22,TRAPNET:23,WATERMARK:24,THREED:25,REDACT:26};t.AnnotationStateModelType={MARKED:"Marked",REVIEW:"Review"};t.AnnotationMarkedState={MARKED:"Marked",UNMARKED:"Unmarked"};t.AnnotationReviewState={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};t.AnnotationReplyType={GROUP:"Group",REPLY:"R"};t.AnnotationFlag={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};t.AnnotationFieldFlag={READONLY:1,REQUIRED:2,NOEXPORT:4,MULTILINE:4096,PASSWORD:8192,NOTOGGLETOOFF:16384,RADIO:32768,PUSHBUTTON:65536,COMBO:131072,EDIT:262144,SORT:524288,FILESELECT:1048576,MULTISELECT:2097152,DONOTSPELLCHECK:4194304,DONOTSCROLL:8388608,COMB:16777216,RICHTEXT:33554432,RADIOSINUNISON:33554432,COMMITONSELCHANGE:67108864};t.AnnotationBorderStyleType={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};t.AnnotationActionEventType={E:"Mouse Enter",X:"Mouse Exit",D:"Mouse Down",U:"Mouse Up",Fo:"Focus",Bl:"Blur",PO:"PageOpen",PC:"PageClose",PV:"PageVisible",PI:"PageInvisible",K:"Keystroke",F:"Format",V:"Validate",C:"Calculate"};t.DocumentActionEventType={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};t.PageActionEventType={O:"PageOpen",C:"PageClose"};const r={ERRORS:0,WARNINGS:1,INFOS:5};t.VerbosityLevel=r;t.CMapCompressionType={NONE:0,BINARY:1};t.OPS={dependency:1,setLineWidth:2,setLineCap:3,setLineJoin:4,setMiterLimit:5,setDash:6,setRenderingIntent:7,setFlatness:8,setGState:9,save:10,restore:11,transform:12,moveTo:13,lineTo:14,curveTo:15,curveTo2:16,curveTo3:17,closePath:18,rectangle:19,stroke:20,closeStroke:21,fill:22,eoFill:23,fillStroke:24,eoFillStroke:25,closeFillStroke:26,closeEOFillStroke:27,endPath:28,clip:29,eoClip:30,beginText:31,endText:32,setCharSpacing:33,setWordSpacing:34,setHScale:35,setLeading:36,setFont:37,setTextRenderingMode:38,setTextRise:39,moveText:40,setLeadingMoveText:41,setTextMatrix:42,nextLine:43,showText:44,showSpacedText:45,nextLineShowText:46,nextLineSetSpacingShowText:47,setCharWidth:48,setCharWidthAndBounds:49,setStrokeColorSpace:50,setFillColorSpace:51,setStrokeColor:52,setStrokeColorN:53,setFillColor:54,setFillColorN:55,setStrokeGray:56,setFillGray:57,setStrokeRGBColor:58,setFillRGBColor:59,setStrokeCMYKColor:60,setFillCMYKColor:61,shadingFill:62,beginInlineImage:63,beginImageData:64,endInlineImage:65,paintXObject:66,markPoint:67,markPointProps:68,beginMarkedContent:69,beginMarkedContentProps:70,endMarkedContent:71,beginCompat:72,endCompat:73,paintFormXObjectBegin:74,paintFormXObjectEnd:75,beginGroup:76,endGroup:77,beginAnnotation:80,endAnnotation:81,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};t.PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};let n=r.WARNINGS;function warn(e){n>=r.WARNINGS&&console.log(`Warning: ${e}`)}function unreachable(e){throw new Error(e)}function shadow(e,t,a){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];Object.defineProperty(e,t,{value:a,enumerable:!r,configurable:!0,writable:!1});return a}const i=function BaseExceptionClosure(){function BaseException(e,t){this.constructor===BaseException&&unreachable("Cannot initialize BaseException.");this.message=e;this.name=t}BaseException.prototype=new Error;BaseException.constructor=BaseException;return BaseException}();t.BaseException=i;t.PasswordException=class PasswordException extends i{constructor(e,t){super(e,"PasswordException");this.code=t}};t.UnknownErrorException=class UnknownErrorException extends i{constructor(e,t){super(e,"UnknownErrorException");this.details=t}};t.InvalidPDFException=class InvalidPDFException extends i{constructor(e){super(e,"InvalidPDFException")}};t.MissingPDFException=class MissingPDFException extends i{constructor(e){super(e,"MissingPDFException")}};t.UnexpectedResponseException=class UnexpectedResponseException extends i{constructor(e,t){super(e,"UnexpectedResponseException");this.status=t}};t.FormatError=class FormatError extends i{constructor(e){super(e,"FormatError")}};t.AbortException=class AbortException extends i{constructor(e){super(e,"AbortException")}};function stringToBytes(e){"string"!=typeof e&&unreachable("Invalid argument for stringToBytes");const t=e.length,a=new Uint8Array(t);for(let r=0;r<t;++r)a[r]=255&e.charCodeAt(r);return a}t.FeatureTest=class FeatureTest{static get isLittleEndian(){return shadow(this,"isLittleEndian",function isLittleEndian(){const e=new Uint8Array(4);e[0]=1;return 1===new Uint32Array(e.buffer,0,1)[0]}())}static get isEvalSupported(){return shadow(this,"isEvalSupported",function isEvalSupported(){try{new Function("");return!0}catch(e){return!1}}())}static get isOffscreenCanvasSupported(){return shadow(this,"isOffscreenCanvasSupported","undefined"!=typeof OffscreenCanvas)}static get platform(){return"undefined"==typeof navigator?shadow(this,"platform",{isWin:!1,isMac:!1}):shadow(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}};const s=[...Array(256).keys()].map((e=>e.toString(16).padStart(2,"0")));class Util{static makeHexColor(e,t,a){return`#${s[e]}${s[t]}${s[a]}`}static scaleMinMax(e,t){let a;if(e[0]){if(e[0]<0){a=t[0];t[0]=t[1];t[1]=a}t[0]*=e[0];t[1]*=e[0];if(e[3]<0){a=t[2];t[2]=t[3];t[3]=a}t[2]*=e[3];t[3]*=e[3]}else{a=t[0];t[0]=t[2];t[2]=a;a=t[1];t[1]=t[3];t[3]=a;if(e[1]<0){a=t[2];t[2]=t[3];t[3]=a}t[2]*=e[1];t[3]*=e[1];if(e[2]<0){a=t[0];t[0]=t[1];t[1]=a}t[0]*=e[2];t[1]*=e[2]}t[0]+=e[4];t[1]+=e[4];t[2]+=e[5];t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const a=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/a,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/a]}static getAxialAlignedBoundingBox(e,t){const a=Util.applyTransform(e,t),r=Util.applyTransform(e.slice(2,4),t),n=Util.applyTransform([e[0],e[3]],t),i=Util.applyTransform([e[2],e[1]],t);return[Math.min(a[0],r[0],n[0],i[0]),Math.min(a[1],r[1],n[1],i[1]),Math.max(a[0],r[0],n[0],i[0]),Math.max(a[1],r[1],n[1],i[1])]}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){const t=[e[0],e[2],e[1],e[3]],a=e[0]*t[0]+e[1]*t[2],r=e[0]*t[1]+e[1]*t[3],n=e[2]*t[0]+e[3]*t[2],i=e[2]*t[1]+e[3]*t[3],s=(a+i)/2,o=Math.sqrt((a+i)**2-4*(a*i-n*r))/2,c=s+o||1,l=s-o||1;return[Math.sqrt(c),Math.sqrt(l)]}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])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(a>r)return null;const n=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),i=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return n>i?null:[a,n,r,i]}static bezierBoundingBox(e,t,a,r,n,i,s,o){const c=[],l=[[],[]];let h,u,d,f,g,p,m,b;for(let l=0;l<2;++l){if(0===l){u=6*e-12*a+6*n;h=-3*e+9*a-9*n+3*s;d=3*a-3*e}else{u=6*t-12*r+6*i;h=-3*t+9*r-9*i+3*o;d=3*r-3*t}if(Math.abs(h)<1e-12){if(Math.abs(u)<1e-12)continue;f=-d/u;0<f&&f<1&&c.push(f)}else{m=u*u-4*d*h;b=Math.sqrt(m);if(!(m<0)){g=(-u+b)/(2*h);0<g&&g<1&&c.push(g);p=(-u-b)/(2*h);0<p&&p<1&&c.push(p)}}}let y,w=c.length;const S=w;for(;w--;){f=c[w];y=1-f;l[0][w]=y*y*y*e+3*y*y*f*a+3*y*f*f*n+f*f*f*s;l[1][w]=y*y*y*t+3*y*y*f*r+3*y*f*f*i+f*f*f*o}l[0][S]=e;l[1][S]=t;l[0][S+1]=s;l[1][S+1]=o;l[0].length=l[1].length=S+2;return[Math.min(...l[0]),Math.min(...l[1]),Math.max(...l[0]),Math.max(...l[1])]}}t.Util=Util;const o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,728,711,710,729,733,731,730,732,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8226,8224,8225,8230,8212,8211,402,8260,8249,8250,8722,8240,8222,8220,8221,8216,8217,8218,8482,64257,64258,321,338,352,376,381,305,322,339,353,382,0,8364];function stringToUTF8String(e){return decodeURIComponent(escape(e))}t.PromiseCapability=class PromiseCapability{#e=!1;constructor(){this.promise=new Promise(((e,t)=>{this.resolve=t=>{this.#e=!0;e(t)};this.reject=e=>{this.#e=!0;t(e)}}))}get settled(){return this.#e}};let c=null,l=null},(e,t,a)=>{"use strict";var r=a(4);!function checkDOMMatrix(){!globalThis.DOMMatrix&&r.isNodeJS&&(globalThis.DOMMatrix=require("canvas").DOMMatrix)}();!function checkPath2D(){if(globalThis.Path2D||!r.isNodeJS)return;const{CanvasRenderingContext2D:e}=require("canvas"),{polyfillPath2D:t}=require("path2d-polyfill");globalThis.CanvasRenderingContext2D=e;t(globalThis)}();!function checkArrayAt(){Array.prototype.at||a(5)}();!function checkTypedArrayAt(){Uint8Array.prototype.at||a(79)}();!function checkStructuredClone(){globalThis.structuredClone||a(91)}()},(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.isNodeJS=void 0;const a=!("object"!=typeof process||process+""!="[object process]"||process.versions.nw||process.versions.electron&&process.type&&"browser"!==process.type);t.isNodeJS=a},(e,t,a)=>{a(6);var r=a(78);e.exports=r("Array","at")},(e,t,a)=>{"use strict";var r=a(7),n=a(44),i=a(68),s=a(66),o=a(73);r({target:"Array",proto:!0},{at:function at(e){var t=n(this),a=i(t),r=s(e),o=r>=0?r:a+r;return o<0||o>=a?void 0:t[o]}});o("at")},(e,t,a)=>{var r=a(8),n=a(9).f,i=a(48),s=a(52),o=a(42),c=a(60),l=a(72);e.exports=function(e,t){var a,h,u,d,f,g=e.target,p=e.global,m=e.stat;if(a=p?r:m?r[g]||o(g,{}):(r[g]||{}).prototype)for(h in t){d=t[h];u=e.dontCallGetSet?(f=n(a,h))&&f.value:a[h];if(!l(p?h:g+(m?".":"#")+h,e.forced)&&void 0!==u){if(typeof d==typeof u)continue;c(d,u)}(e.sham||u&&u.sham)&&i(d,"sham",!0);s(a,h,d,e)}}},function(e){var check=function(e){return e&&e.Math==Math&&e};e.exports=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},(e,t,a)=>{var r=a(10),n=a(12),i=a(14),s=a(15),o=a(16),c=a(22),l=a(43),h=a(46),u=Object.getOwnPropertyDescriptor;t.f=r?u:function getOwnPropertyDescriptor(e,t){e=o(e);t=c(t);if(h)try{return u(e,t)}catch(e){}if(l(e,t))return s(!n(i.f,e,t),e[t])}},(e,t,a)=>{var r=a(11);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,a)=>{var r=a(13),n=Function.prototype.call;e.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},(e,t,a)=>{var r=a(11);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},(e,t)=>{"use strict";var a={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!a.call({1:2},1);t.f=n?function propertyIsEnumerable(e){var t=r(this,e);return!!t&&t.enumerable}:a},e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,a)=>{var r=a(17),n=a(20);e.exports=function(e){return r(n(e))}},(e,t,a)=>{var r=a(18),n=a(11),i=a(19),s=Object,o=r("".split);e.exports=n((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o(e,""):s(e)}:s},(e,t,a)=>{var r=a(13),n=Function.prototype,i=n.call,s=r&&n.bind.bind(i,i);e.exports=r?s:function(e){return function(){return i.apply(e,arguments)}}},(e,t,a)=>{var r=a(18),n=r({}.toString),i=r("".slice);e.exports=function(e){return i(n(e),8,-1)}},(e,t,a)=>{var r=a(21),n=TypeError;e.exports=function(e){if(r(e))throw n("Can't call method on "+e);return e}},e=>{e.exports=function(e){return null==e}},(e,t,a)=>{var r=a(23),n=a(27);e.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}},(e,t,a)=>{var r=a(12),n=a(24),i=a(27),s=a(34),o=a(37),c=a(38),l=TypeError,h=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var a,c=s(e,h);if(c){void 0===t&&(t="default");a=r(c,e,t);if(!n(a)||i(a))return a;throw l("Can't convert object to primitive value")}void 0===t&&(t="number");return o(e,t)}},(e,t,a)=>{var r=a(25),n=a(26),i=n.all;e.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:r(e)||e===i}:function(e){return"object"==typeof e?null!==e:r(e)}},(e,t,a)=>{var r=a(26),n=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}},e=>{var t="object"==typeof document&&document.all,a=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:a}},(e,t,a)=>{var r=a(28),n=a(25),i=a(29),s=a(30),o=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&i(t.prototype,o(e))}},(e,t,a)=>{var r=a(8),n=a(25);e.exports=function(e,t){return arguments.length<2?(a=r[e],n(a)?a:void 0):r[e]&&r[e][t];var a}},(e,t,a)=>{var r=a(18);e.exports=r({}.isPrototypeOf)},(e,t,a)=>{var r=a(31);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,a)=>{var r=a(32),n=a(11),i=a(8).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},(e,t,a)=>{var r,n,i=a(8),s=a(33),o=i.process,c=i.Deno,l=o&&o.versions||c&&c.version,h=l&&l.v8;h&&(n=(r=h.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1]));!n&&s&&(!(r=s.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=s.match(/Chrome\/(\d+)/))&&(n=+r[1]);e.exports=n},e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},(e,t,a)=>{var r=a(35),n=a(21);e.exports=function(e,t){var a=e[t];return n(a)?void 0:r(a)}},(e,t,a)=>{var r=a(25),n=a(36),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(n(e)+" is not a function")}},e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},(e,t,a)=>{var r=a(12),n=a(25),i=a(24),s=TypeError;e.exports=function(e,t){var a,o;if("string"===t&&n(a=e.toString)&&!i(o=r(a,e)))return o;if(n(a=e.valueOf)&&!i(o=r(a,e)))return o;if("string"!==t&&n(a=e.toString)&&!i(o=r(a,e)))return o;throw s("Can't convert object to primitive value")}},(e,t,a)=>{var r=a(8),n=a(39),i=a(43),s=a(45),o=a(31),c=a(30),l=r.Symbol,h=n("wks"),u=c?l.for||l:l&&l.withoutSetter||s;e.exports=function(e){i(h,e)||(h[e]=o&&i(l,e)?l[e]:u("Symbol."+e));return h[e]}},(e,t,a)=>{var r=a(40),n=a(41);(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},e=>{e.exports=!1},(e,t,a)=>{var r=a(8),n=a(42),i="__core-js_shared__",s=r[i]||n(i,{});e.exports=s},(e,t,a)=>{var r=a(8),n=Object.defineProperty;e.exports=function(e,t){try{n(r,e,{value:t,configurable:!0,writable:!0})}catch(a){r[e]=t}return t}},(e,t,a)=>{var r=a(18),n=a(44),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function hasOwn(e,t){return i(n(e),t)}},(e,t,a)=>{var r=a(20),n=Object;e.exports=function(e){return n(r(e))}},(e,t,a)=>{var r=a(18),n=0,i=Math.random(),s=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++n+i,36)}},(e,t,a)=>{var r=a(10),n=a(11),i=a(47);e.exports=!r&&!n((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},(e,t,a)=>{var r=a(8),n=a(24),i=r.document,s=n(i)&&n(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},(e,t,a)=>{var r=a(10),n=a(49),i=a(15);e.exports=r?function(e,t,a){return n.f(e,t,i(1,a))}:function(e,t,a){e[t]=a;return e}},(e,t,a)=>{var r=a(10),n=a(46),i=a(50),s=a(51),o=a(22),c=TypeError,l=Object.defineProperty,h=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",f="writable";t.f=r?i?function defineProperty(e,t,a){s(e);t=o(t);s(a);if("function"==typeof e&&"prototype"===t&&"value"in a&&f in a&&!a[f]){var r=h(e,t);if(r&&r[f]){e[t]=a.value;a={configurable:d in a?a[d]:r[d],enumerable:u in a?a[u]:r[u],writable:!1}}}return l(e,t,a)}:l:function defineProperty(e,t,a){s(e);t=o(t);s(a);if(n)try{return l(e,t,a)}catch(e){}if("get"in a||"set"in a)throw c("Accessors not supported");"value"in a&&(e[t]=a.value);return e}},(e,t,a)=>{var r=a(10),n=a(11);e.exports=r&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},(e,t,a)=>{var r=a(24),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(n(e)+" is not an object")}},(e,t,a)=>{var r=a(25),n=a(49),i=a(53),s=a(42);e.exports=function(e,t,a,o){o||(o={});var c=o.enumerable,l=void 0!==o.name?o.name:t;r(a)&&i(a,l,o);if(o.global)c?e[t]=a:s(t,a);else{try{o.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=a:n.f(e,t,{value:a,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},(e,t,a)=>{var r=a(18),n=a(11),i=a(25),s=a(43),o=a(10),c=a(54).CONFIGURABLE,l=a(55),h=a(56),u=h.enforce,d=h.get,f=String,g=Object.defineProperty,p=r("".slice),m=r("".replace),b=r([].join),y=o&&!n((function(){return 8!==g((function(){}),"length",{value:8}).length})),w=String(String).split("String"),S=e.exports=function(e,t,a){"Symbol("===p(f(t),0,7)&&(t="["+m(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]");a&&a.getter&&(t="get "+t);a&&a.setter&&(t="set "+t);(!s(e,"name")||c&&e.name!==t)&&(o?g(e,"name",{value:t,configurable:!0}):e.name=t);y&&a&&s(a,"arity")&&e.length!==a.arity&&g(e,"length",{value:a.arity});try{a&&s(a,"constructor")&&a.constructor?o&&g(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=u(e);s(r,"source")||(r.source=b(w,"string"==typeof t?t:""));return e};Function.prototype.toString=S((function toString(){return i(this)&&d(this).source||l(this)}),"toString")},(e,t,a)=>{var r=a(10),n=a(43),i=Function.prototype,s=r&&Object.getOwnPropertyDescriptor,o=n(i,"name"),c=o&&"something"===function something(){}.name,l=o&&(!r||r&&s(i,"name").configurable);e.exports={EXISTS:o,PROPER:c,CONFIGURABLE:l}},(e,t,a)=>{var r=a(18),n=a(25),i=a(41),s=r(Function.toString);n(i.inspectSource)||(i.inspectSource=function(e){return s(e)});e.exports=i.inspectSource},(e,t,a)=>{var r,n,i,s=a(57),o=a(8),c=a(24),l=a(48),h=a(43),u=a(41),d=a(58),f=a(59),g="Object already initialized",p=o.TypeError,m=o.WeakMap;if(s||u.state){var b=u.state||(u.state=new m);b.get=b.get;b.has=b.has;b.set=b.set;r=function(e,t){if(b.has(e))throw p(g);t.facade=e;b.set(e,t);return t};n=function(e){return b.get(e)||{}};i=function(e){return b.has(e)}}else{var y=d("state");f[y]=!0;r=function(e,t){if(h(e,y))throw p(g);t.facade=e;l(e,y,t);return t};n=function(e){return h(e,y)?e[y]:{}};i=function(e){return h(e,y)}}e.exports={set:r,get:n,has:i,enforce:function(e){return i(e)?n(e):r(e,{})},getterFor:function(e){return function(t){var a;if(!c(t)||(a=n(t)).type!==e)throw p("Incompatible receiver, "+e+" required");return a}}}},(e,t,a)=>{var r=a(8),n=a(25),i=r.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},(e,t,a)=>{var r=a(39),n=a(45),i=r("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},e=>{e.exports={}},(e,t,a)=>{var r=a(43),n=a(61),i=a(9),s=a(49);e.exports=function(e,t,a){for(var o=n(t),c=s.f,l=i.f,h=0;h<o.length;h++){var u=o[h];r(e,u)||a&&r(a,u)||c(e,u,l(t,u))}}},(e,t,a)=>{var r=a(28),n=a(18),i=a(62),s=a(71),o=a(51),c=n([].concat);e.exports=r("Reflect","ownKeys")||function ownKeys(e){var t=i.f(o(e)),a=s.f;return a?c(t,a(e)):t}},(e,t,a)=>{var r=a(63),n=a(70).concat("length","prototype");t.f=Object.getOwnPropertyNames||function getOwnPropertyNames(e){return r(e,n)}},(e,t,a)=>{var r=a(18),n=a(43),i=a(16),s=a(64).indexOf,o=a(59),c=r([].push);e.exports=function(e,t){var a,r=i(e),l=0,h=[];for(a in r)!n(o,a)&&n(r,a)&&c(h,a);for(;t.length>l;)n(r,a=t[l++])&&(~s(h,a)||c(h,a));return h}},(e,t,a)=>{var r=a(16),n=a(65),i=a(68),createMethod=function(e){return function(t,a,s){var o,c=r(t),l=i(c),h=n(s,l);if(e&&a!=a){for(;l>h;)if((o=c[h++])!=o)return!0}else for(;l>h;h++)if((e||h in c)&&c[h]===a)return e||h||0;return!e&&-1}};e.exports={includes:createMethod(!0),indexOf:createMethod(!1)}},(e,t,a)=>{var r=a(66),n=Math.max,i=Math.min;e.exports=function(e,t){var a=r(e);return a<0?n(a+t,0):i(a,t)}},(e,t,a)=>{var r=a(67);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},e=>{var t=Math.ceil,a=Math.floor;e.exports=Math.trunc||function trunc(e){var r=+e;return(r>0?a:t)(r)}},(e,t,a)=>{var r=a(69);e.exports=function(e){return r(e.length)}},(e,t,a)=>{var r=a(66),n=Math.min;e.exports=function(e){return e>0?n(r(e),9007199254740991):0}},e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(e,t)=>{t.f=Object.getOwnPropertySymbols},(e,t,a)=>{var r=a(11),n=a(25),i=/#|\.prototype\./,isForced=function(e,t){var a=o[s(e)];return a==l||a!=c&&(n(t)?r(t):!!t)},s=isForced.normalize=function(e){return String(e).replace(i,".").toLowerCase()},o=isForced.data={},c=isForced.NATIVE="N",l=isForced.POLYFILL="P";e.exports=isForced},(e,t,a)=>{var r=a(38),n=a(74),i=a(49).f,s=r("unscopables"),o=Array.prototype;null==o[s]&&i(o,s,{configurable:!0,value:n(null)});e.exports=function(e){o[s][e]=!0}},(e,t,a)=>{var r,n=a(51),i=a(75),s=a(70),o=a(59),c=a(77),l=a(47),h=a(58),u="prototype",d="script",f=h("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(e){return"<"+d+">"+e+"</"+d+">"},NullProtoObjectViaActiveX=function(e){e.write(scriptTag(""));e.close();var t=e.parentWindow.Object;e=null;return t},NullProtoObject=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}NullProtoObject="undefined"!=typeof document?document.domain&&r?NullProtoObjectViaActiveX(r):function(){var e,t=l("iframe"),a="java"+d+":";t.style.display="none";c.appendChild(t);t.src=String(a);(e=t.contentWindow.document).open();e.write(scriptTag("document.F=Object"));e.close();return e.F}():NullProtoObjectViaActiveX(r);for(var e=s.length;e--;)delete NullProtoObject[u][s[e]];return NullProtoObject()};o[f]=!0;e.exports=Object.create||function create(e,t){var a;if(null!==e){EmptyConstructor[u]=n(e);a=new EmptyConstructor;EmptyConstructor[u]=null;a[f]=e}else a=NullProtoObject();return void 0===t?a:i.f(a,t)}},(e,t,a)=>{var r=a(10),n=a(50),i=a(49),s=a(51),o=a(16),c=a(76);t.f=r&&!n?Object.defineProperties:function defineProperties(e,t){s(e);for(var a,r=o(t),n=c(t),l=n.length,h=0;l>h;)i.f(e,a=n[h++],r[a]);return e}},(e,t,a)=>{var r=a(63),n=a(70);e.exports=Object.keys||function keys(e){return r(e,n)}},(e,t,a)=>{var r=a(28);e.exports=r("document","documentElement")},(e,t,a)=>{var r=a(8),n=a(18);e.exports=function(e,t){return n(r[e].prototype[t])}},(e,t,a)=>{a(80)},(e,t,a)=>{"use strict";var r=a(81),n=a(68),i=a(66),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function at(e){var t=s(this),a=n(t),r=i(e),o=r>=0?r:a+r;return o<0||o>=a?void 0:t[o]}))},(e,t,a)=>{"use strict";var r,n,i,s=a(82),o=a(10),c=a(8),l=a(25),h=a(24),u=a(43),d=a(83),f=a(36),g=a(48),p=a(52),m=a(85),b=a(29),y=a(86),w=a(88),S=a(38),x=a(45),v=a(56),C=v.enforce,k=v.get,O=c.Int8Array,T=O&&O.prototype,M=c.Uint8ClampedArray,E=M&&M.prototype,D=O&&y(O),N=T&&y(T),R=Object.prototype,L=c.TypeError,j=S("toStringTag"),_=x("TYPED_ARRAY_TAG"),$="TypedArrayConstructor",U=s&&!!w&&"Opera"!==d(c.opera),X=!1,H={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},q={BigInt64Array:8,BigUint64Array:8},getTypedArrayConstructor=function(e){var t=y(e);if(h(t)){var a=k(t);return a&&u(a,$)?a[$]:getTypedArrayConstructor(t)}},isTypedArray=function(e){if(!h(e))return!1;var t=d(e);return u(H,t)||u(q,t)};for(r in H)(i=(n=c[r])&&n.prototype)?C(i)[$]=n:U=!1;for(r in q)(i=(n=c[r])&&n.prototype)&&(C(i)[$]=n);if(!U||!l(D)||D===Function.prototype){D=function TypedArray(){throw L("Incorrect invocation")};if(U)for(r in H)c[r]&&w(c[r],D)}if(!U||!N||N===R){N=D.prototype;if(U)for(r in H)c[r]&&w(c[r].prototype,N)}U&&y(E)!==N&&w(E,N);if(o&&!u(N,j)){X=!0;m(N,j,{configurable:!0,get:function(){return h(this)?this[_]:void 0}});for(r in H)c[r]&&g(c[r],_,r)}e.exports={NATIVE_ARRAY_BUFFER_VIEWS:U,TYPED_ARRAY_TAG:X&&_,aTypedArray:function(e){if(isTypedArray(e))return e;throw L("Target is not a typed array")},aTypedArrayConstructor:function(e){if(l(e)&&(!w||b(D,e)))return e;throw L(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,a,r){if(o){if(a)for(var n in H){var i=c[n];if(i&&u(i.prototype,e))try{delete i.prototype[e]}catch(a){try{i.prototype[e]=t}catch(e){}}}N[e]&&!a||p(N,e,a?t:U&&T[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,a){var r,n;if(o){if(w){if(a)for(r in H)if((n=c[r])&&u(n,e))try{delete n[e]}catch(e){}if(D[e]&&!a)return;try{return p(D,e,a?t:U&&D[e]||t)}catch(e){}}for(r in H)!(n=c[r])||n[e]&&!a||p(n,e,t)}},getTypedArrayConstructor:getTypedArrayConstructor,isView:function isView(e){if(!h(e))return!1;var t=d(e);return"DataView"===t||u(H,t)||u(q,t)},isTypedArray:isTypedArray,TypedArray:D,TypedArrayPrototype:N}},e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},(e,t,a)=>{var r=a(84),n=a(25),i=a(19),s=a(38)("toStringTag"),o=Object,c="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,a,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=function(e,t){try{return e[t]}catch(e){}}(t=o(e),s))?a:c?i(t):"Object"==(r=i(t))&&n(t.callee)?"Arguments":r}},(e,t,a)=>{var r={};r[a(38)("toStringTag")]="z";e.exports="[object z]"===String(r)},(e,t,a)=>{var r=a(53),n=a(49);e.exports=function(e,t,a){a.get&&r(a.get,t,{getter:!0});a.set&&r(a.set,t,{setter:!0});return n.f(e,t,a)}},(e,t,a)=>{var r=a(43),n=a(25),i=a(44),s=a(58),o=a(87),c=s("IE_PROTO"),l=Object,h=l.prototype;e.exports=o?l.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var a=t.constructor;return n(a)&&t instanceof a?a.prototype:t instanceof l?h:null}},(e,t,a)=>{var r=a(11);e.exports=!r((function(){function F(){}F.prototype.constructor=null;return Object.getPrototypeOf(new F)!==F.prototype}))},(e,t,a)=>{var r=a(89),n=a(51),i=a(90);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,a={};try{(e=r(Object.prototype,"__proto__","set"))(a,[]);t=a instanceof Array}catch(e){}return function setPrototypeOf(a,r){n(a);i(r);t?e(a,r):a.__proto__=r;return a}}():void 0)},(e,t,a)=>{var r=a(18),n=a(35);e.exports=function(e,t,a){try{return r(n(Object.getOwnPropertyDescriptor(e,t)[a]))}catch(e){}}},(e,t,a)=>{var r=a(25),n=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+n(e)+" as a prototype")}},(e,t,a)=>{a(92);a(99);a(101);a(124);a(126);var r=a(138);e.exports=r.structuredClone},(e,t,a)=>{"use strict";var r=a(16),n=a(73),i=a(93),s=a(56),o=a(49).f,c=a(94),l=a(98),h=a(40),u=a(10),d="Array Iterator",f=s.set,g=s.getterFor(d);e.exports=c(Array,"Array",(function(e,t){f(this,{type:d,target:r(e),index:0,kind:t})}),(function(){var e=g(this),t=e.target,a=e.kind,r=e.index++;if(!t||r>=t.length){e.target=void 0;return l(void 0,!0)}return l("keys"==a?r:"values"==a?t[r]:[r,t[r]],!1)}),"values");var p=i.Arguments=i.Array;n("keys");n("values");n("entries");if(!h&&u&&"values"!==p.name)try{o(p,"name",{value:"values"})}catch(e){}},e=>{e.exports={}},(e,t,a)=>{"use strict";var r=a(7),n=a(12),i=a(40),s=a(54),o=a(25),c=a(95),l=a(86),h=a(88),u=a(97),d=a(48),f=a(52),g=a(38),p=a(93),m=a(96),b=s.PROPER,y=s.CONFIGURABLE,w=m.IteratorPrototype,S=m.BUGGY_SAFARI_ITERATORS,x=g("iterator"),v="keys",C="values",k="entries",returnThis=function(){return this};e.exports=function(e,t,a,s,g,m,O){c(a,t,s);var T,M,E,getIterationMethod=function(e){if(e===g&&j)return j;if(!S&&e in R)return R[e];switch(e){case v:return function keys(){return new a(this,e)};case C:return function values(){return new a(this,e)};case k:return function entries(){return new a(this,e)}}return function(){return new a(this)}},D=t+" Iterator",N=!1,R=e.prototype,L=R[x]||R["@@iterator"]||g&&R[g],j=!S&&L||getIterationMethod(g),_="Array"==t&&R.entries||L;if(_&&(T=l(_.call(new e)))!==Object.prototype&&T.next){i||l(T)===w||(h?h(T,w):o(T[x])||f(T,x,returnThis));u(T,D,!0,!0);i&&(p[D]=returnThis)}if(b&&g==C&&L&&L.name!==C)if(!i&&y)d(R,"name",C);else{N=!0;j=function values(){return n(L,this)}}if(g){M={values:getIterationMethod(C),keys:m?j:getIterationMethod(v),entries:getIterationMethod(k)};if(O)for(E in M)(S||N||!(E in R))&&f(R,E,M[E]);else r({target:t,proto:!0,forced:S||N},M)}i&&!O||R[x]===j||f(R,x,j,{name:g});p[t]=j;return M}},(e,t,a)=>{"use strict";var r=a(96).IteratorPrototype,n=a(74),i=a(15),s=a(97),o=a(93),returnThis=function(){return this};e.exports=function(e,t,a,c){var l=t+" Iterator";e.prototype=n(r,{next:i(+!c,a)});s(e,l,!1,!0);o[l]=returnThis;return e}},(e,t,a)=>{"use strict";var r,n,i,s=a(11),o=a(25),c=a(24),l=a(74),h=a(86),u=a(52),d=a(38),f=a(40),g=d("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(n=h(h(i)))!==Object.prototype&&(r=n):p=!0);!c(r)||s((function(){var e={};return r[g].call(e)!==e}))?r={}:f&&(r=l(r));o(r[g])||u(r,g,(function(){return this}));e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:p}},(e,t,a)=>{var r=a(49).f,n=a(43),i=a(38)("toStringTag");e.exports=function(e,t,a){e&&!a&&(e=e.prototype);e&&!n(e,i)&&r(e,i,{configurable:!0,value:t})}},e=>{e.exports=function(e,t){return{value:e,done:t}}},(e,t,a)=>{var r=a(84),n=a(52),i=a(100);r||n(Object.prototype,"toString",i,{unsafe:!0})},(e,t,a)=>{"use strict";var r=a(84),n=a(83);e.exports=r?{}.toString:function toString(){return"[object "+n(this)+"]"}},(e,t,a)=>{a(102)},(e,t,a)=>{"use strict";a(103)("Map",(function(e){return function Map(){return e(this,arguments.length?arguments[0]:void 0)}}),a(121))},(e,t,a)=>{"use strict";var r=a(7),n=a(8),i=a(18),s=a(72),o=a(52),c=a(104),l=a(111),h=a(118),u=a(25),d=a(21),f=a(24),g=a(11),p=a(119),m=a(97),b=a(120);e.exports=function(e,t,a){var y=-1!==e.indexOf("Map"),w=-1!==e.indexOf("Weak"),S=y?"set":"add",x=n[e],v=x&&x.prototype,C=x,k={},fixMethod=function(e){var t=i(v[e]);o(v,e,"add"==e?function add(e){t(this,0===e?0:e);return this}:"delete"==e?function(e){return!(w&&!f(e))&&t(this,0===e?0:e)}:"get"==e?function get(e){return w&&!f(e)?void 0:t(this,0===e?0:e)}:"has"==e?function has(e){return!(w&&!f(e))&&t(this,0===e?0:e)}:function set(e,a){t(this,0===e?0:e,a);return this})};if(s(e,!u(x)||!(w||v.forEach&&!g((function(){(new x).entries().next()}))))){C=a.getConstructor(t,e,y,S);c.enable()}else if(s(e,!0)){var O=new C,T=O[S](w?{}:-0,1)!=O,M=g((function(){O.has(1)})),E=p((function(e){new x(e)})),D=!w&&g((function(){for(var e=new x,t=5;t--;)e[S](t,t);return!e.has(-0)}));if(!E){(C=t((function(e,t){h(e,v);var a=b(new x,e,C);d(t)||l(t,a[S],{that:a,AS_ENTRIES:y});return a}))).prototype=v;v.constructor=C}if(M||D){fixMethod("delete");fixMethod("has");y&&fixMethod("get")}(D||T)&&fixMethod(S);w&&v.clear&&delete v.clear}k[e]=C;r({global:!0,constructor:!0,forced:C!=x},k);m(C,e);w||a.setStrong(C,e,y);return C}},(e,t,a)=>{var r=a(7),n=a(18),i=a(59),s=a(24),o=a(43),c=a(49).f,l=a(62),h=a(105),u=a(108),d=a(45),f=a(110),g=!1,p=d("meta"),m=0,setMetadata=function(e){c(e,p,{value:{objectID:"O"+m++,weakData:{}}})},b=e.exports={enable:function(){b.enable=function(){};g=!0;var e=l.f,t=n([].splice),a={};a[p]=1;if(e(a).length){l.f=function(a){for(var r=e(a),n=0,i=r.length;n<i;n++)if(r[n]===p){t(r,n,1);break}return r};r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:h.f})}},fastKey:function(e,t){if(!s(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,p)){if(!u(e))return"F";if(!t)return"E";setMetadata(e)}return e[p].objectID},getWeakData:function(e,t){if(!o(e,p)){if(!u(e))return!0;if(!t)return!1;setMetadata(e)}return e[p].weakData},onFreeze:function(e){f&&g&&u(e)&&!o(e,p)&&setMetadata(e);return e}};i[p]=!0},(e,t,a)=>{var r=a(19),n=a(16),i=a(62).f,s=a(106),o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function getOwnPropertyNames(e){return o&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return s(o)}}(e):i(n(e))}},(e,t,a)=>{var r=a(65),n=a(68),i=a(107),s=Array,o=Math.max;e.exports=function(e,t,a){for(var c=n(e),l=r(t,c),h=r(void 0===a?c:a,c),u=s(o(h-l,0)),d=0;l<h;l++,d++)i(u,d,e[l]);u.length=d;return u}},(e,t,a)=>{"use strict";var r=a(22),