vue-pdf-kit
Version:
A high-definition PDF preview component that supports both Vue 2 and Vue 3.
1 lines • 2.03 MB
JavaScript
(function(w,M){typeof exports=="object"&&typeof module!="undefined"?M(exports,require("vue-demi")):typeof define=="function"&&define.amd?define(["exports","vue-demi"],M):(w=typeof globalThis!="undefined"?globalThis:w||self,M(w.VuePdfKit={},w.vueDemi))})(this,function(exports,vueDemi){"use strict";var ec=Object.defineProperty,bc=Object.defineProperties;var nc=Object.getOwnPropertyDescriptors;var ii=Object.getOwnPropertySymbols;var mc=Object.prototype.hasOwnProperty,Wc=Object.prototype.propertyIsEnumerable;var _s=(w,M,l)=>M in w?ec(w,M,{enumerable:!0,configurable:!0,writable:!0,value:l}):w[M]=l,ns=(w,M)=>{for(var l in M||(M={}))mc.call(M,l)&&_s(w,l,M[l]);if(ii)for(var l of ii(M))Wc.call(M,l)&&_s(w,l,M[l]);return w},Ws=(w,M)=>bc(w,nc(M));var ss=(w,M,l)=>(_s(w,typeof M!="symbol"?M+"":M,l),l),qs=(w,M,l)=>{if(!M.has(w))throw TypeError("Cannot "+l)};var s=(w,M,l)=>(qs(w,M,"read from private field"),l?l.call(w):M.get(w)),K=(w,M,l)=>{if(M.has(w))throw TypeError("Cannot add the same private member more than once");M instanceof WeakSet?M.add(w):M.set(w,l)},Zl=(w,M,l,i)=>(qs(w,M,"write to private field"),i?i.call(w,l):M.set(w,l),l);var us=(w,M,l,i)=>({set _(e){Zl(w,M,e,l)},get _(){return s(w,M,i)}}),_=(w,M,l)=>(qs(w,M,"access private method"),l);String.prototype.replaceAll||Object.defineProperty(String.prototype,"replaceAll",{value:function(w,M){return this.replace(new RegExp(w,"g"),M)},writable:!0,enumerable:!1,configurable:!0});var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getAugmentedNamespace(w){if(w.__esModule)return w;var M=w.default;if(typeof M=="function"){var l=function i(){return this instanceof i?Reflect.construct(M,arguments,this.constructor):M.apply(this,arguments)};l.prototype=M.prototype}else l={};return Object.defineProperty(l,"__esModule",{value:!0}),Object.keys(w).forEach(function(i){var e=Object.getOwnPropertyDescriptor(w,i);Object.defineProperty(l,i,e.get?e:{enumerable:!0,get:function(){return w[i]}})}),l}function commonjsRequire(w){throw new Error('Could not dynamically require "'+w+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pdf={exports:{}};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$6=getAugmentedNamespace(__viteBrowserExternal$1);var path2dPolyfill_min={},hasRequiredPath2dPolyfill_min;function requirePath2dPolyfill_min(){return hasRequiredPath2dPolyfill_min||(hasRequiredPath2dPolyfill_min=1,String.prototype.replaceAll||Object.defineProperty(String.prototype,"replaceAll",{value:function(w,M){return this.replace(new RegExp(w,"g"),M)},writable:!0,enumerable:!1,configurable:!0}),function(){var w={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},M=/([astvzqmhlc])([^astvzqmhlc]*)/gi,l=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function i(a){const b=a.match(l);return b?b.map(Number):[]}function e(a){const b=[],n=String(a).trim();return n[0]!=="M"&&n[0]!=="m"||n.replace(M,(h,o,S)=>{const c=i(S);let t=o.toLowerCase(),R=o;if(t==="m"&&c.length>2&&(b.push([R,...c.splice(0,2)]),t="l",R=R==="m"?"l":"L"),c.length<w[t])return"";for(b.push([R,...c.splice(0,w[t])]);c.length>=w[t]&&c.length&&w[t];)b.push([R,...c.splice(0,w[t])]);return""}),b}function y(a,b){const n=a.x*Math.cos(b)-a.y*Math.sin(b),h=a.y*Math.cos(b)+a.x*Math.sin(b);a.x=n,a.y=h}function V(a,b,n){a.x+=b,a.y+=n}function u(a,b){a.x*=b,a.y*=b}var T=class $s{constructor(b){this.commands=[],b&&b instanceof $s?this.commands.push(...b.commands):b&&(this.commands=e(b))}addPath(b){b&&b instanceof $s&&this.commands.push(...b.commands)}moveTo(b,n){this.commands.push(["M",b,n])}lineTo(b,n){this.commands.push(["L",b,n])}arc(b,n,h,o,S,c){this.commands.push(["AC",b,n,h,o,S,!!c])}arcTo(b,n,h,o,S){this.commands.push(["AT",b,n,h,o,S])}ellipse(b,n,h,o,S,c,t,R){this.commands.push(["E",b,n,h,o,S,c,t,!!R])}closePath(){this.commands.push(["Z"])}bezierCurveTo(b,n,h,o,S,c){this.commands.push(["C",b,n,h,o,S,c])}quadraticCurveTo(b,n,h,o){this.commands.push(["Q",b,n,h,o])}rect(b,n,h,o){this.commands.push(["R",b,n,h,o])}roundRect(b,n,h,o,S){typeof S>"u"?this.commands.push(["RR",b,n,h,o,0]):this.commands.push(["RR",b,n,h,o,S])}};function Z(a,b){let n=0,h=0,o,S,c,t,R,p,Y,k,C,Q,tl,F,A,$,B,H,al,q,Tl,xl,E,G=null,I=null,W=null,x=null,z=null,j=null;a.beginPath();for(let P=0;P<b.length;++P){q=b[P][0],q!=="S"&&q!=="s"&&q!=="C"&&q!=="c"&&(G=null,I=null),q!=="T"&&q!=="t"&&q!=="Q"&&q!=="q"&&(W=null,x=null);let U;switch(q){case"m":case"M":U=b[P],q==="m"?(n+=U[1],h+=U[2]):(n=U[1],h=U[2]),(q==="M"||!z)&&(z={x:n,y:h}),a.moveTo(n,h);break;case"l":U=b[P],n+=U[1],h+=U[2],a.lineTo(n,h);break;case"L":U=b[P],n=U[1],h=U[2],a.lineTo(n,h);break;case"H":U=b[P],n=U[1],a.lineTo(n,h);break;case"h":U=b[P],n+=U[1],a.lineTo(n,h);break;case"V":U=b[P],h=U[1],a.lineTo(n,h);break;case"v":U=b[P],h+=U[1],a.lineTo(n,h);break;case"a":case"A":if(U=b[P],j===null)throw new Error("This should never happen");q==="a"?(n+=U[6],h+=U[7]):(n=U[6],h=U[7]),$=U[1],B=U[2],Y=U[3]*Math.PI/180,c=!!U[4],t=!!U[5],R={x:n,y:h},p={x:(j.x-R.x)/2,y:(j.y-R.y)/2},y(p,-Y),k=p.x*p.x/($*$)+p.y*p.y/(B*B),k>1&&(k=Math.sqrt(k),$*=k,B*=k),Tl={x:$*p.y/B,y:-(B*p.x)/$},C=$*$*B*B,Q=$*$*p.y*p.y+B*B*p.x*p.x,t!==c?u(Tl,Math.sqrt((C-Q)/Q)||0):u(Tl,-Math.sqrt((C-Q)/Q)||0),S=Math.atan2((p.y-Tl.y)/B,(p.x-Tl.x)/$),o=Math.atan2(-(p.y+Tl.y)/B,-(p.x+Tl.x)/$),y(Tl,Y),V(Tl,(R.x+j.x)/2,(R.y+j.y)/2),a.save(),a.translate(Tl.x,Tl.y),a.rotate(Y),a.scale($,B),a.arc(0,0,1,S,o,!t),a.restore();break;case"C":U=b[P],G=U[3],I=U[4],n=U[5],h=U[6],a.bezierCurveTo(U[1],U[2],G,I,n,h);break;case"c":U=b[P],a.bezierCurveTo(U[1]+n,U[2]+h,U[3]+n,U[4]+h,U[5]+n,U[6]+h),G=U[3]+n,I=U[4]+h,n+=U[5],h+=U[6];break;case"S":U=b[P],(G===null||I===null)&&(G=n,I=h),a.bezierCurveTo(2*n-G,2*h-I,U[1],U[2],U[3],U[4]),G=U[1],I=U[2],n=U[3],h=U[4];break;case"s":U=b[P],(G===null||I===null)&&(G=n,I=h),a.bezierCurveTo(2*n-G,2*h-I,U[1]+n,U[2]+h,U[3]+n,U[4]+h),G=U[1]+n,I=U[2]+h,n+=U[3],h+=U[4];break;case"Q":U=b[P],W=U[1],x=U[2],n=U[3],h=U[4],a.quadraticCurveTo(W,x,n,h);break;case"q":U=b[P],W=U[1]+n,x=U[2]+h,n+=U[3],h+=U[4],a.quadraticCurveTo(W,x,n,h);break;case"T":U=b[P],(W===null||x===null)&&(W=n,x=h),W=2*n-W,x=2*h-x,n=U[1],h=U[2],a.quadraticCurveTo(W,x,n,h);break;case"t":U=b[P],(W===null||x===null)&&(W=n,x=h),W=2*n-W,x=2*h-x,n+=U[1],h+=U[2],a.quadraticCurveTo(W,x,n,h);break;case"z":case"Z":z&&(n=z.x,h=z.y),z=null,a.closePath();break;case"AC":U=b[P],n=U[1],h=U[2],A=U[3],S=U[4],o=U[5],xl=U[6],a.arc(n,h,A,S,o,xl);break;case"AT":U=b[P],tl=U[1],F=U[2],n=U[3],h=U[4],A=U[5],a.arcTo(tl,F,n,h,A);break;case"E":U=b[P],n=U[1],h=U[2],$=U[3],B=U[4],Y=U[5],S=U[6],o=U[7],xl=U[8],a.save(),a.translate(n,h),a.rotate(Y),a.scale($,B),a.arc(0,0,1,S,o,xl),a.restore();break;case"R":U=b[P],n=U[1],h=U[2],H=U[3],al=U[4],z={x:n,y:h},a.rect(n,h,H,al);break;case"RR":U=b[P],n=U[1],h=U[2],H=U[3],al=U[4],E=U[5],z={x:n,y:h},a.roundRect(n,h,H,al,E);break;default:throw new Error("Invalid path command: ".concat(q))}j?(j.x=n,j.y=h):j={x:n,y:h}}}function d(a,b,n,h){let o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(typeof o=="number"&&(o=[o]),Array.isArray(o)){if(o.length===0||o.length>4)throw new RangeError("Failed to execute 'roundRect' on '".concat(this.constructor.name,"': ").concat(o.length," radii provided. Between one and four radii are necessary."));o.forEach(Y=>{if(Y<0)throw new RangeError("Failed to execute 'roundRect' on '".concat(this.constructor.name,"': Radius value ").concat(Y," is negative."))})}else return;if(o.length===1&&o[0]===0){this.rect(a,b,n,h);return}const S=Math.min(n,h)/2,c=Math.min(S,o[0]);let t=c,R=c,p=c;o.length===2&&(t=Math.min(S,o[1]),p=t),o.length===3&&(t=Math.min(S,o[1]),p=t,R=Math.min(S,o[2])),o.length===4&&(t=Math.min(S,o[1]),R=Math.min(S,o[2]),p=Math.min(S,o[3])),this.moveTo(a,b+h-p),this.arcTo(a,b,a+c,b,c),this.arcTo(a+n,b,a+n,b+t,t),this.arcTo(a+n,b+h,a+n-R,b+h,R),this.arcTo(a,b+h,a,b+h-p,p),this.moveTo(a,b)}function r(a){if(!a)return;const b=a.prototype.fill,n=a.prototype.stroke,h=a.prototype.isPointInPath;a.prototype.fill=function(){if((arguments.length<=0?void 0:arguments[0])instanceof T){const S=arguments.length<=0?void 0:arguments[0],c=(arguments.length<=1?void 0:arguments[1])||"nonzero";return Z(this,S.commands),b.apply(this,[c])}const o=(arguments.length<=0?void 0:arguments[0])||"nonzero";return b.apply(this,[o])},a.prototype.stroke=function(o){o&&Z(this,o.commands),n.apply(this)},a.prototype.isPointInPath=function(){for(var o=arguments.length,S=new Array(o),c=0;c<o;c++)S[c]=arguments[c];if(S[0]instanceof T){const t=S[0],R=S[1],p=S[2],Y=S[3]||"nonzero";return Z(this,t.commands),h.apply(this,[R,p,Y])}return h.apply(this,S)}}function N(a){a&&!a.prototype.roundRect&&(a.prototype.roundRect=d)}function L(a){a&&!a.prototype.roundRect&&(a.prototype.roundRect=d)}function m(){window&&(window.CanvasRenderingContext2D&&!window.Path2D&&(window.Path2D=T,r(window.CanvasRenderingContext2D)),L(window.Path2D),N(window.CanvasRenderingContext2D))}m()}()),path2dPolyfill_min}(function(module,exports){String.prototype.replaceAll||Object.defineProperty(String.prototype,"replaceAll",{value:function(w,M){return this.replace(new RegExp(w,"g"),M)},writable:!0,enumerable:!1,configurable:!0}),function(M,l){module.exports=M.pdfjsLib=l()}(globalThis,()=>(()=>{var __webpack_modules__=[,(w,M,l)=>{var Ql;Object.defineProperty(M,"__esModule",{value:!0}),M.VerbosityLevel=M.Util=M.UnknownErrorException=M.UnexpectedResponseException=M.TextRenderingMode=M.RenderingIntentFlag=M.PromiseCapability=M.PermissionFlag=M.PasswordResponses=M.PasswordException=M.PageActionEventType=M.OPS=M.MissingPDFException=M.MAX_IMAGE_SIZE_TO_CACHE=M.LINE_FACTOR=M.LINE_DESCENT_FACTOR=M.InvalidPDFException=M.ImageKind=M.IDENTITY_MATRIX=M.FormatError=M.FeatureTest=M.FONT_IDENTITY_MATRIX=M.DocumentActionEventType=M.CMapCompressionType=M.BaseException=M.BASELINE_FACTOR=M.AnnotationType=M.AnnotationReplyType=M.AnnotationPrefix=M.AnnotationMode=M.AnnotationFlag=M.AnnotationFieldFlag=M.AnnotationEditorType=M.AnnotationEditorPrefix=M.AnnotationEditorParamsType=M.AnnotationBorderStyleType=M.AnnotationActionEventType=M.AbortException=void 0,M.assert=q,M.bytesToString=hl,M.createValidAbsoluteUrl=xl,M.getModificationDate=jl,M.getUuid=Bl,M.getVerbosityLevel=$,M.info=B,M.isArrayBuffer=Sl,M.isArrayEqual=wl,M.isNodeJS=void 0,M.normalizeUnicode=Al,M.objectFromMap=ol,M.objectSize=el,M.setVerbosityLevel=A,M.shadow=E,M.string32=pl,M.stringToBytes=ul,M.stringToPDFString=bl,M.stringToUTF8String=cl,M.unreachable=al,M.utf8StringToString=Ml,M.warn=H,l(2),l(84),l(86),l(87),l(89),l(93),l(101),l(102),l(105),l(107),l(109),l(113),l(116),l(123);const i=typeof process=="object"&&process+""=="[object process]"&&!process.versions.nw&&!(process.versions.electron&&process.type&&process.type!=="browser");M.isNodeJS=i;const e=[1,0,0,1,0,0];M.IDENTITY_MATRIX=e;const y=[.001,0,0,.001,0,0];M.FONT_IDENTITY_MATRIX=y;const V=1e7;M.MAX_IMAGE_SIZE_TO_CACHE=V;const u=1.35;M.LINE_FACTOR=u;const T=.35;M.LINE_DESCENT_FACTOR=T;const Z=T/u;M.BASELINE_FACTOR=Z;const d={ANY:1,DISPLAY:2,PRINT:4,SAVE:8,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};M.RenderingIntentFlag=d;const r={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};M.AnnotationMode=r;const N="pdfjs_internal_editor_";M.AnnotationEditorPrefix=N;const L={DISABLE:-1,NONE:0,FREETEXT:3,STAMP:13,INK:15};M.AnnotationEditorType=L;const m={RESIZE:1,CREATE:2,FREETEXT_SIZE:11,FREETEXT_COLOR:12,FREETEXT_OPACITY:13,INK_COLOR:21,INK_THICKNESS:22,INK_OPACITY:23};M.AnnotationEditorParamsType=m;const a={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};M.PermissionFlag=a;const 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};M.TextRenderingMode=b;const n={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};M.ImageKind=n;const h={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};M.AnnotationType=h;const o={GROUP:"Group",REPLY:"R"};M.AnnotationReplyType=o;const S={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};M.AnnotationFlag=S;const c={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};M.AnnotationFieldFlag=c;const t={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};M.AnnotationBorderStyleType=t;const R={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"};M.AnnotationActionEventType=R;const p={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};M.DocumentActionEventType=p;const Y={O:"PageOpen",C:"PageClose"};M.PageActionEventType=Y;const k={ERRORS:0,WARNINGS:1,INFOS:5};M.VerbosityLevel=k;const C={NONE:0,BINARY:1};M.CMapCompressionType=C;const Q={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};M.OPS=Q;const tl={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};M.PasswordResponses=tl;let F=k.WARNINGS;function A(J){Number.isInteger(J)&&(F=J)}function $(){return F}function B(J){F>=k.INFOS&&console.log(`Info: ${J}`)}function H(J){F>=k.WARNINGS&&console.log(`Warning: ${J}`)}function al(J){throw new Error(J)}function q(J,g){J||al(g)}function Tl(J){switch(J==null?void 0:J.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function xl(J){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!J)return null;try{if(f&&typeof J=="string"){if(f.addDefaultProtocol&&J.startsWith("www.")){const Wl=J.match(/\./g);(Wl==null?void 0:Wl.length)>=2&&(J=`http://${J}`)}if(f.tryConvertEncoding)try{J=cl(J)}catch(Wl){}}const dl=g?new URL(J,g):new URL(J);if(Tl(dl))return dl}catch(dl){}return null}function E(J,g,f){let dl=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Object.defineProperty(J,g,{value:f,enumerable:!dl,configurable:!0,writable:!1}),f}const G=function(){function g(f,dl){this.constructor===g&&al("Cannot initialize BaseException."),this.message=f,this.name=dl}return g.prototype=new Error,g.constructor=g,g}();M.BaseException=G;class I extends G{constructor(g,f){super(g,"PasswordException"),this.code=f}}M.PasswordException=I;class W extends G{constructor(g,f){super(g,"UnknownErrorException"),this.details=f}}M.UnknownErrorException=W;class x extends G{constructor(g){super(g,"InvalidPDFException")}}M.InvalidPDFException=x;class z extends G{constructor(g){super(g,"MissingPDFException")}}M.MissingPDFException=z;class j extends G{constructor(g,f){super(g,"UnexpectedResponseException"),this.status=f}}M.UnexpectedResponseException=j;class P extends G{constructor(g){super(g,"FormatError")}}M.FormatError=P;class U extends G{constructor(g){super(g,"AbortException")}}M.AbortException=U;function hl(J){(typeof J!="object"||(J==null?void 0:J.length)===void 0)&&al("Invalid argument for bytesToString");const g=J.length,f=8192;if(g<f)return String.fromCharCode.apply(null,J);const dl=[];for(let Wl=0;Wl<g;Wl+=f){const v=Math.min(Wl+f,g),D=J.subarray(Wl,v);dl.push(String.fromCharCode.apply(null,D))}return dl.join("")}function ul(J){typeof J!="string"&&al("Invalid argument for stringToBytes");const g=J.length,f=new Uint8Array(g);for(let dl=0;dl<g;++dl)f[dl]=J.charCodeAt(dl)&255;return f}function pl(J){return String.fromCharCode(J>>24&255,J>>16&255,J>>8&255,J&255)}function el(J){return Object.keys(J).length}function ol(J){const g=Object.create(null);for(const[f,dl]of J)g[f]=dl;return g}function Nl(){const J=new Uint8Array(4);return J[0]=1,new Uint32Array(J.buffer,0,1)[0]===1}function zl(){try{return new Function(""),!0}catch(J){return!1}}class Cl{static get isLittleEndian(){return E(this,"isLittleEndian",Nl())}static get isEvalSupported(){return E(this,"isEvalSupported",zl())}static get isOffscreenCanvasSupported(){return E(this,"isOffscreenCanvasSupported",typeof OffscreenCanvas!="undefined")}static get platform(){return typeof navigator=="undefined"?E(this,"platform",{isWin:!1,isMac:!1}):E(this,"platform",{isWin:navigator.platform.includes("Win"),isMac:navigator.platform.includes("Mac")})}static get isCSSRoundSupported(){var g,f;return E(this,"isCSSRoundSupported",(f=(g=globalThis.CSS)==null?void 0:g.supports)==null?void 0:f.call(g,"width: round(1.5px, 1px)"))}}M.FeatureTest=Cl;const rl=[...Array(256).keys()].map(J=>J.toString(16).padStart(2,"0"));class Ll{static makeHexColor(g,f,dl){return`#${rl[g]}${rl[f]}${rl[dl]}`}static scaleMinMax(g,f){let dl;g[0]?(g[0]<0&&(dl=f[0],f[0]=f[1],f[1]=dl),f[0]*=g[0],f[1]*=g[0],g[3]<0&&(dl=f[2],f[2]=f[3],f[3]=dl),f[2]*=g[3],f[3]*=g[3]):(dl=f[0],f[0]=f[2],f[2]=dl,dl=f[1],f[1]=f[3],f[3]=dl,g[1]<0&&(dl=f[2],f[2]=f[3],f[3]=dl),f[2]*=g[1],f[3]*=g[1],g[2]<0&&(dl=f[0],f[0]=f[1],f[1]=dl),f[0]*=g[2],f[1]*=g[2]),f[0]+=g[4],f[1]+=g[4],f[2]+=g[5],f[3]+=g[5]}static transform(g,f){return[g[0]*f[0]+g[2]*f[1],g[1]*f[0]+g[3]*f[1],g[0]*f[2]+g[2]*f[3],g[1]*f[2]+g[3]*f[3],g[0]*f[4]+g[2]*f[5]+g[4],g[1]*f[4]+g[3]*f[5]+g[5]]}static applyTransform(g,f){const dl=g[0]*f[0]+g[1]*f[2]+f[4],Wl=g[0]*f[1]+g[1]*f[3]+f[5];return[dl,Wl]}static applyInverseTransform(g,f){const dl=f[0]*f[3]-f[1]*f[2],Wl=(g[0]*f[3]-g[1]*f[2]+f[2]*f[5]-f[4]*f[3])/dl,v=(-g[0]*f[1]+g[1]*f[0]+f[4]*f[1]-f[5]*f[0])/dl;return[Wl,v]}static getAxialAlignedBoundingBox(g,f){const dl=this.applyTransform(g,f),Wl=this.applyTransform(g.slice(2,4),f),v=this.applyTransform([g[0],g[3]],f),D=this.applyTransform([g[2],g[1]],f);return[Math.min(dl[0],Wl[0],v[0],D[0]),Math.min(dl[1],Wl[1],v[1],D[1]),Math.max(dl[0],Wl[0],v[0],D[0]),Math.max(dl[1],Wl[1],v[1],D[1])]}static inverseTransform(g){const f=g[0]*g[3]-g[1]*g[2];return[g[3]/f,-g[1]/f,-g[2]/f,g[0]/f,(g[2]*g[5]-g[4]*g[3])/f,(g[4]*g[1]-g[5]*g[0])/f]}static singularValueDecompose2dScale(g){const f=[g[0],g[2],g[1],g[3]],dl=g[0]*f[0]+g[1]*f[2],Wl=g[0]*f[1]+g[1]*f[3],v=g[2]*f[0]+g[3]*f[2],D=g[2]*f[1]+g[3]*f[3],il=(dl+D)/2,Xl=Math.sqrt((dl+D)**2-4*(dl*D-v*Wl))/2,Yl=il+Xl||1,Il=il-Xl||1;return[Math.sqrt(Yl),Math.sqrt(Il)]}static normalizeRect(g){const f=g.slice(0);return g[0]>g[2]&&(f[0]=g[2],f[2]=g[0]),g[1]>g[3]&&(f[1]=g[3],f[3]=g[1]),f}static intersect(g,f){const dl=Math.max(Math.min(g[0],g[2]),Math.min(f[0],f[2])),Wl=Math.min(Math.max(g[0],g[2]),Math.max(f[0],f[2]));if(dl>Wl)return null;const v=Math.max(Math.min(g[1],g[3]),Math.min(f[1],f[3])),D=Math.min(Math.max(g[1],g[3]),Math.max(f[1],f[3]));return v>D?null:[dl,v,Wl,D]}static bezierBoundingBox(g,f,dl,Wl,v,D,il,Xl){const Yl=[],Il=[[],[]];let Vl,Jl,Rl,Ul,Dl,sl,X,O;for(let yl=0;yl<2;++yl){if(yl===0?(Jl=6*g-12*dl+6*v,Vl=-3*g+9*dl-9*v+3*il,Rl=3*dl-3*g):(Jl=6*f-12*Wl+6*D,Vl=-3*f+9*Wl-9*D+3*Xl,Rl=3*Wl-3*f),Math.abs(Vl)<1e-12){if(Math.abs(Jl)<1e-12)continue;Ul=-Rl/Jl,0<Ul&&Ul<1&&Yl.push(Ul);continue}X=Jl*Jl-4*Rl*Vl,O=Math.sqrt(X),!(X<0)&&(Dl=(-Jl+O)/(2*Vl),0<Dl&&Dl<1&&Yl.push(Dl),sl=(-Jl-O)/(2*Vl),0<sl&&sl<1&&Yl.push(sl))}let ll=Yl.length,nl;const Gl=ll;for(;ll--;)Ul=Yl[ll],nl=1-Ul,Il[0][ll]=nl*nl*nl*g+3*nl*nl*Ul*dl+3*nl*Ul*Ul*v+Ul*Ul*Ul*il,Il[1][ll]=nl*nl*nl*f+3*nl*nl*Ul*Wl+3*nl*Ul*Ul*D+Ul*Ul*Ul*Xl;return Il[0][Gl]=g,Il[1][Gl]=f,Il[0][Gl+1]=il,Il[1][Gl+1]=Xl,Il[0].length=Il[1].length=Gl+2,[Math.min(...Il[0]),Math.min(...Il[1]),Math.max(...Il[0]),Math.max(...Il[1])]}}M.Util=Ll;const ml=[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 bl(J){if(J[0]>="ï"){let f;if(J[0]==="þ"&&J[1]==="ÿ"?f="utf-16be":J[0]==="ÿ"&&J[1]==="þ"?f="utf-16le":J[0]==="ï"&&J[1]==="»"&&J[2]==="¿"&&(f="utf-8"),f)try{const dl=new TextDecoder(f,{fatal:!0}),Wl=ul(J);return dl.decode(Wl)}catch(dl){H(`stringToPDFString: "${dl}".`)}}const g=[];for(let f=0,dl=J.length;f<dl;f++){const Wl=ml[J.charCodeAt(f)];g.push(Wl?String.fromCharCode(Wl):J.charAt(f))}return g.join("")}function cl(J){return decodeURIComponent(escape(J))}function Ml(J){return unescape(encodeURIComponent(J))}function Sl(J){return typeof J=="object"&&(J==null?void 0:J.byteLength)!==void 0}function wl(J,g){if(J.length!==g.length)return!1;for(let f=0,dl=J.length;f<dl;f++)if(J[f]!==g[f])return!1;return!0}function jl(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Date;return[J.getUTCFullYear().toString(),(J.getUTCMonth()+1).toString().padStart(2,"0"),J.getUTCDate().toString().padStart(2,"0"),J.getUTCHours().toString().padStart(2,"0"),J.getUTCMinutes().toString().padStart(2,"0"),J.getUTCSeconds().toString().padStart(2,"0")].join("")}class El{constructor(){K(this,Ql,!1);this.promise=new Promise((g,f)=>{this.resolve=dl=>{Zl(this,Ql,!0),g(dl)},this.reject=dl=>{Zl(this,Ql,!0),f(dl)}})}get settled(){return s(this,Ql)}}Ql=new WeakMap,M.PromiseCapability=El;let Ol=null,Kl=null;function Al(J){return Ol||(Ol=/([\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,Kl=new Map([["ſt","ſt"]])),J.replaceAll(Ol,(g,f,dl)=>f?f.normalize("NFKC"):Kl.get(dl))}function Bl(){if(typeof crypto!="undefined"&&typeof(crypto==null?void 0:crypto.randomUUID)=="function")return crypto.randomUUID();const J=new Uint8Array(32);if(typeof crypto!="undefined"&&typeof(crypto==null?void 0:crypto.getRandomValues)=="function")crypto.getRandomValues(J);else for(let g=0;g<32;g++)J[g]=Math.floor(Math.random()*255);return hl(J)}const _l="pdfjs_internal_id_";M.AnnotationPrefix=_l},(w,M,l)=>{var i=l(3),e=l(4),y=l(69),V=l(70),u="WebAssembly",T=e[u],Z=Error("e",{cause:7}).cause!==7,d=function(N,L){var m={};m[N]=V(N,L,Z),i({global:!0,constructor:!0,arity:1,forced:Z},m)},r=function(N,L){if(T&&T[N]){var m={};m[N]=V(u+"."+N,L,Z),i({target:u,stat:!0,constructor:!0,arity:1,forced:Z},m)}};d("Error",function(N){return function(m){return y(N,this,arguments)}}),d("EvalError",function(N){return function(m){return y(N,this,arguments)}}),d("RangeError",function(N){return function(m){return y(N,this,arguments)}}),d("ReferenceError",function(N){return function(m){return y(N,this,arguments)}}),d("SyntaxError",function(N){return function(m){return y(N,this,arguments)}}),d("TypeError",function(N){return function(m){return y(N,this,arguments)}}),d("URIError",function(N){return function(m){return y(N,this,arguments)}}),r("CompileError",function(N){return function(m){return y(N,this,arguments)}}),r("LinkError",function(N){return function(m){return y(N,this,arguments)}}),r("RuntimeError",function(N){return function(m){return y(N,this,arguments)}})},(w,M,l)=>{var i=l(4),e=l(5).f,y=l(44),V=l(48),u=l(38),T=l(56),Z=l(68);w.exports=function(d,r){var N=d.target,L=d.global,m=d.stat,a,b,n,h,o,S;if(L?b=i:m?b=i[N]||u(N,{}):b=(i[N]||{}).prototype,b)for(n in r){if(o=r[n],d.dontCallGetSet?(S=e(b,n),h=S&&S.value):h=b[n],a=Z(L?n:N+(m?".":"#")+n,d.forced),!a&&h!==void 0){if(typeof o==typeof h)continue;T(o,h)}(d.sham||h&&h.sham)&&y(o,"sham",!0),V(b,n,o,d)}}},function(w){var M=function(l){return l&&l.Math===Math&&l};w.exports=M(typeof globalThis=="object"&&globalThis)||M(typeof window=="object"&&window)||M(typeof self=="object"&&self)||M(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||this||Function("return this")()},(w,M,l)=>{var i=l(6),e=l(8),y=l(10),V=l(11),u=l(12),T=l(18),Z=l(39),d=l(42),r=Object.getOwnPropertyDescriptor;M.f=i?r:function(L,m){if(L=u(L),m=T(m),d)try{return r(L,m)}catch(a){}if(Z(L,m))return V(!e(y.f,L,m),L[m])}},(w,M,l)=>{var i=l(7);w.exports=!i(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})},w=>{w.exports=function(M){try{return!!M()}catch(l){return!0}}},(w,M,l)=>{var i=l(9),e=Function.prototype.call;w.exports=i?e.bind(e):function(){return e.apply(e,arguments)}},(w,M,l)=>{var i=l(7);w.exports=!i(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")})},(w,M)=>{var l={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,e=i&&!l.call({1:2},1);M.f=e?function(V){var u=i(this,V);return!!u&&u.enumerable}:l},w=>{w.exports=function(M,l){return{enumerable:!(M&1),configurable:!(M&2),writable:!(M&4),value:l}}},(w,M,l)=>{var i=l(13),e=l(16);w.exports=function(y){return i(e(y))}},(w,M,l)=>{var i=l(14),e=l(7),y=l(15),V=Object,u=i("".split);w.exports=e(function(){return!V("z").propertyIsEnumerable(0)})?function(T){return y(T)==="String"?u(T,""):V(T)}:V},(w,M,l)=>{var i=l(9),e=Function.prototype,y=e.call,V=i&&e.bind.bind(y,y);w.exports=i?V:function(u){return function(){return y.apply(u,arguments)}}},(w,M,l)=>{var i=l(14),e=i({}.toString),y=i("".slice);w.exports=function(V){return y(e(V),8,-1)}},(w,M,l)=>{var i=l(17),e=TypeError;w.exports=function(y){if(i(y))throw e("Can't call method on "+y);return y}},w=>{w.exports=function(M){return M==null}},(w,M,l)=>{var i=l(19),e=l(23);w.exports=function(y){var V=i(y,"string");return e(V)?V:V+""}},(w,M,l)=>{var i=l(8),e=l(20),y=l(23),V=l(30),u=l(33),T=l(34),Z=TypeError,d=T("toPrimitive");w.exports=function(r,N){if(!e(r)||y(r))return r;var L=V(r,d),m;if(L){if(N===void 0&&(N="default"),m=i(L,r,N),!e(m)||y(m))return m;throw Z("Can't convert object to primitive value")}return N===void 0&&(N="number"),u(r,N)}},(w,M,l)=>{var i=l(21),e=l(22),y=e.all;w.exports=e.IS_HTMLDDA?function(V){return typeof V=="object"?V!==null:i(V)||V===y}:function(V){return typeof V=="object"?V!==null:i(V)}},(w,M,l)=>{var i=l(22),e=i.all;w.exports=i.IS_HTMLDDA?function(y){return typeof y=="function"||y===e}:function(y){return typeof y=="function"}},w=>{var M=typeof document=="object"&&document.all,l=typeof M=="undefined"&&M!==void 0;w.exports={all:M,IS_HTMLDDA:l}},(w,M,l)=>{var i=l(24),e=l(21),y=l(25),V=l(26),u=Object;w.exports=V?function(T){return typeof T=="symbol"}:function(T){var Z=i("Symbol");return e(Z)&&y(Z.prototype,u(T))}},(w,M,l)=>{var i=l(4),e=l(21),y=function(V){return e(V)?V:void 0};w.exports=function(V,u){return arguments.length<2?y(i[V]):i[V]&&i[V][u]}},(w,M,l)=>{var i=l(14);w.exports=i({}.isPrototypeOf)},(w,M,l)=>{var i=l(27);w.exports=i&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},(w,M,l)=>{var i=l(28),e=l(7),y=l(4),V=y.String;w.exports=!!Object.getOwnPropertySymbols&&!e(function(){var u=Symbol("symbol detection");return!V(u)||!(Object(u)instanceof Symbol)||!Symbol.sham&&i&&i<41})},(w,M,l)=>{var i=l(4),e=l(29),y=i.process,V=i.Deno,u=y&&y.versions||V&&V.version,T=u&&u.v8,Z,d;T&&(Z=T.split("."),d=Z[0]>0&&Z[0]<4?1:+(Z[0]+Z[1])),!d&&e&&(Z=e.match(/Edge\/(\d+)/),(!Z||Z[1]>=74)&&(Z=e.match(/Chrome\/(\d+)/),Z&&(d=+Z[1]))),w.exports=d},w=>{w.exports=typeof navigator!="undefined"&&String(navigator.userAgent)||""},(w,M,l)=>{var i=l(31),e=l(17);w.exports=function(y,V){var u=y[V];return e(u)?void 0:i(u)}},(w,M,l)=>{var i=l(21),e=l(32),y=TypeError;w.exports=function(V){if(i(V))return V;throw y(e(V)+" is not a function")}},w=>{var M=String;w.exports=function(l){try{return M(l)}catch(i){return"Object"}}},(w,M,l)=>{var i=l(8),e=l(21),y=l(20),V=TypeError;w.exports=function(u,T){var Z,d;if(T==="string"&&e(Z=u.toString)&&!y(d=i(Z,u))||e(Z=u.valueOf)&&!y(d=i(Z,u))||T!=="string"&&e(Z=u.toString)&&!y(d=i(Z,u)))return d;throw V("Can't convert object to primitive value")}},(w,M,l)=>{var i=l(4),e=l(35),y=l(39),V=l(41),u=l(27),T=l(26),Z=i.Symbol,d=e("wks"),r=T?Z.for||Z:Z&&Z.withoutSetter||V;w.exports=function(N){return y(d,N)||(d[N]=u&&y(Z,N)?Z[N]:r("Symbol."+N)),d[N]}},(w,M,l)=>{var i=l(36),e=l(37);(w.exports=function(y,V){return e[y]||(e[y]=V!==void 0?V:{})})("versions",[]).push({version:"3.32.2",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"})},w=>{w.exports=!1},(w,M,l)=>{var i=l(4),e=l(38),y="__core-js_shared__",V=i[y]||e(y,{});w.exports=V},(w,M,l)=>{var i=l(4),e=Object.defineProperty;w.exports=function(y,V){try{e(i,y,{value:V,configurable:!0,writable:!0})}catch(u){i[y]=V}return V}},(w,M,l)=>{var i=l(14),e=l(40),y=i({}.hasOwnProperty);w.exports=Object.hasOwn||function(u,T){return y(e(u),T)}},(w,M,l)=>{var i=l(16),e=Object;w.exports=function(y){return e(i(y))}},(w,M,l)=>{var i=l(14),e=0,y=Math.random(),V=i(1 .toString);w.exports=function(u){return"Symbol("+(u===void 0?"":u)+")_"+V(++e+y,36)}},(w,M,l)=>{var i=l(6),e=l(7),y=l(43);w.exports=!i&&!e(function(){return Object.defineProperty(y("div"),"a",{get:function(){return 7}}).a!==7})},(w,M,l)=>{var i=l(4),e=l(20),y=i.document,V=e(y)&&e(y.createElement);w.exports=function(u){return V?y.createElement(u):{}}},(w,M,l)=>{var i=l(6),e=l(45),y=l(11);w.exports=i?function(V,u,T){return e.f(V,u,y(1,T))}:function(V,u,T){return V[u]=T,V}},(w,M,l)=>{var i=l(6),e=l(42),y=l(46),V=l(47),u=l(18),T=TypeError,Z=Object.defineProperty,d=Object.getOwnPropertyDescriptor,r="enumerable",N="configurable",L="writable";M.f=i?y?function(a,b,n){if(V(a),b=u(b),V(n),typeof a=="function"&&b==="prototype"&&"value"in n&&L in n&&!n[L]){var h=d(a,b);h&&h[L]&&(a[b]=n.value,n={configurable:N in n?n[N]:h[N],enumerable:r in n?n[r]:h[r],writable:!1})}return Z(a,b,n)}:Z:function(a,b,n){if(V(a),b=u(b),V(n),e)try{return Z(a,b,n)}catch(h){}if("get"in n||"set"in n)throw T("Accessors not supported");return"value"in n&&(a[b]=n.value),a}},(w,M,l)=>{var i=l(6),e=l(7);w.exports=i&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})},(w,M,l)=>{var i=l(20),e=String,y=TypeError;w.exports=function(V){if(i(V))return V;throw y(e(V)+" is not an object")}},(w,M,l)=>{var i=l(21),e=l(45),y=l(49),V=l(38);w.exports=function(u,T,Z,d){d||(d={});var r=d.enumerable,N=d.name!==void 0?d.name:T;if(i(Z)&&y(Z,N,d),d.global)r?u[T]=Z:V(T,Z);else{try{d.unsafe?u[T]&&(r=!0):delete u[T]}catch(L){}r?u[T]=Z:e.f(u,T,{value:Z,enumerable:!1,configurable:!d.nonConfigurable,writable:!d.nonWritable})}return u}},(w,M,l)=>{var i=l(14),e=l(7),y=l(21),V=l(39),u=l(6),T=l(50).CONFIGURABLE,Z=l(51),d=l(52),r=d.enforce,N=d.get,L=String,m=Object.defineProperty,a=i("".slice),b=i("".replace),n=i([].join),h=u&&!e(function(){return m(function(){},"length",{value:8}).length!==8}),o=String(String).split("String"),S=w.exports=function(c,t,R){a(L(t),0,7)==="Symbol("&&(t="["+b(L(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),R&&R.getter&&(t="get "+t),R&&R.setter&&(t="set "+t),(!V(c,"name")||T&&c.name!==t)&&(u?m(c,"name",{value:t,configurable:!0}):c.name=t),h&&R&&V(R,"arity")&&c.length!==R.arity&&m(c,"length",{value:R.arity});try{R&&V(R,"constructor")&&R.constructor?u&&m(c,"prototype",{writable:!1}):c.prototype&&(c.prototype=void 0)}catch(Y){}var p=r(c);return V(p,"source")||(p.source=n(o,typeof t=="string"?t:"")),c};Function.prototype.toString=S(function(){return y(this)&&N(this).source||Z(this)},"toString")},(w,M,l)=>{var i=l(6),e=l(39),y=Function.prototype,V=i&&Object.getOwnPropertyDescriptor,u=e(y,"name"),T=u&&function(){}.name==="something",Z=u&&(!i||i&&V(y,"name").configurable);w.exports={EXISTS:u,PROPER:T,CONFIGURABLE:Z}},(w,M,l)=>{var i=l(14),e=l(21),y=l(37),V=i(Function.toString);e(y.inspectSource)||(y.inspectSource=function(u){return V(u)}),w.exports=y.inspectSource},(w,M,l)=>{var i=l(53),e=l(4),y=l(20),V=l(44),u=l(39),T=l(37),Z=l(54),d=l(55),r="Object already initialized",N=e.TypeError,L=e.WeakMap,m,a,b,n=function(c){return b(c)?a(c):m(c,{})},h=function(c){return function(t){var R;if(!y(t)||(R=a(t)).type!==c)throw N("Incompatible receiver, "+c+" required");return R}};if(i||T.state){var o=T.state||(T.state=new L);o.get=o.get,o.has=o.has,o.set=o.set,m=function(c,t){if(o.has(c))throw N(r);return t.facade=c,o.set(c,t),t},a=function(c){return o.get(c)||{}},b=function(c){return o.has(c)}}else{var S=Z("state");d[S]=!0,m=function(c,t){if(u(c,S))throw N(r);return t.facade=c,V(c,S,t),t},a=function(c){return u(c,S)?c[S]:{}},b=function(c){return u(c,S)}}w.exports={set:m,get:a,has:b,enforce:n,getterFor:h}},(w,M,l)=>{var i=l(4),e=l(21),y=i.WeakMap;w.exports=e(y)&&/native code/.test(String(y))},(w,M,l)=>{var i=l(35),e=l(41),y=i("keys");w.exports=function(V){return y[V]||(y[V]=e(V))}},w=>{w.exports={}},(w,M,l)=>{var i=l(39),e=l(57),y=l(5),V=l(45);w.exports=function(u,T,Z){for(var d=e(T),r=V.f,N=y.f,L=0;L<d.length;L++){var m=d[L];!i(u,m)&&!(Z&&i(Z,m))&&r(u,m,N(T,m))}}},(w,M,l)=>{var i=l(24),e=l(14),y=l(58),V=l(67),u=l(47),T=e([].concat);w.exports=i("Reflect","ownKeys")||function(d){var r=y.f(u(d)),N=V.f;return N?T(r,N(d)):r}},(w,M,l)=>{var i=l(59),e=l(66),y=e.concat("length","prototype");M.f=Object.getOwnPropertyNames||function(u){return i(u,y)}},(w,M,l)=>{var i=l(14),e=l(39),y=l(12),V=l(60).indexOf,u=l(55),T=i([].push);w.exports=function(Z,d){var r=y(Z),N=0,L=[],m;for(m in r)!e(u,m)&&e(r,m)&&T(L,m);for(;d.length>N;)e(r,m=d[N++])&&(~V(L,m)||T(L,m));return L}},(w,M,l)=>{var i=l(12),e=l(61),y=l(64),V=function(u){return function(T,Z,d){var r=i(T),N=y(r),L=e(d,N),m;if(u&&Z!==Z){for(;N>L;)if(m=r[L++],m!==m)return!0}else for(;N>L;L++)if((u||L in r)&&r[L]===Z)return u||L||0;return!u&&-1}};w.exports={includes:V(!0),indexOf:V(!1)}},(w,M,l)=>{var i=l(62),e=Math.max,y=Math.min;w.exports=function(V,u){var T=i(V);return T<0?e(T+u,0):y(T,u)}},(w,M,l)=>{var i=l(63);w.exports=function(e){var y=+e;return y!==y||y===0?0:i(y)}},w=>{var M=Math.ceil,l=Math.floor;w.exports=Math.trunc||function(e){var y=+e;return(y>0?l:M)(y)}},(w,M,l)=>{var i=l(65);w.exports=function(e){return i(e.length)}},(w,M,l)=>{var i=l(62),e=Math.min;w.exports=function(y){return y>0?e(i(y),9007199254740991):0}},w=>{w.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(w,M)=>{M.f=Object.getOwnPropertySymbols},(w,M,l)=>{var i=l(7),e=l(21),y=/#|\.prototype\./,V=function(r,N){var L=T[u(r)];return L===d?!0:L===Z?!1:e(N)?i(N):!!N},u=V.normalize=function(r){return String(r).replace(y,".").toLowerCase()},T=V.data={},Z=V.NATIVE="N",d=V.POLYFILL="P";w.exports=V},(w,M,l)=>{var i=l(9),e=Function.prototype,y=e.apply,V=e.call;w.exports=typeof Reflect=="object"&&Reflect.apply||(i?V.bind(y):function(){return V.apply(y,arguments)})},(w,M,l)=>{var i=l(24),e=l(39),y=l(44),V=l(25),u=l(71),T=l(56),Z=l(74),d=l(75),r=l(76),N=l(80),L=l(81),m=l(6),a=l(36);w.exports=function(b,n,h,o){var S="stackTraceLimit",c=o?2:1,t=b.split("."),R=t[t.length-1],p=i.apply(null,t);if(p){var Y=p.prototype;if(!a&&e(Y,"cause")&&delete Y.cause,!h)return p;var k=i("Error"),C=n(function(Q,tl){var F=r(o?tl:Q,void 0),A=o?new p(Q):new p;return F!==void 0&&y(A,"message",F),L(A,C,A.stack,2),this&&V(Y,this)&&d(A,this,C),arguments.length>c&&N(A,arguments[c]),A});if(C.prototype=Y,R!=="Error"?u?u(C,k):T(C,k,{name:!0}):m&&S in p&&(Z(C,p,S),Z(C,p,"prepareStackTrace")),T(C,p),!a)try{Y.name!==R&&y(Y,"name",R),Y.constructor=C}catch(Q){}return C}}},(w,M,l)=>{var i=l(72),e=l(47),y=l(73);w.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var V=!1,u={},T;try{T=i(Object.prototype,"__proto__","set"),T(u,[]),V=u instanceof Array}catch(Z){}return function(d,r){return e(d),y(r),V?T(d,r):d.__proto__=r,d}}():void 0)},(w,M,l)=>{var i=l(14),e=l(31);w.exports=function(y,V,u){try{return i(e(Object.getOwnPropertyDescriptor(y,V)[u]))}catch(T){}}},(w,M,l)=>{var i=l(21),e=String,y=TypeError;w.exports=function(V){if(typeof V=="object"||i(V))return V;throw y("Can't set "+e(V)+" as a prototype")}},(w,M,l)=>{var i=l(45).f;w.exports=function(e,y,V){V in e||i(e,V,{configurable:!0,get:function(){return y[V]},set:function(u){y[V]=u}})}},(w,M,l)=>{var i=l(21),e=l(20),y=l(71);w.exports=function(V,u,T){var Z,d;return y&&i(Z=u.constructor)&&Z!==T&&e(d=Z.prototype)&&d!==T.prototype&&y(V,d),V}},(w,M,l)=>{var i=l(77);w.exports=function(e,y){return e===void 0?arguments.length<2?"":y:i(e)}},(w,M,l)=>{var i=l(78),e=String;w.exports=function(y){if(i(y)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return e(y)}},(w,M,l)=>{var i=l(79),e=l(21),y=l(15),V=l(34),u=V("toStringTag"),T=Object,Z=y(function(){return arguments}())==="Arguments",d=function(r,N){try{return r[N]}catch(L){}};w.exports=i?y:function(r){var N,L,m;return r===void 0?"Undefined":r===null?"Null":typeof(L=d(N=T(r),u))=="string"?L:Z?y(N):(m=y(N))==="Object"&&e(N.callee)?"Arguments":m}},(w,M,l)=>{var i=l(34),e=i("toStringTag"),y={};y[e]="z",w.exports=String(y)==="[object z]"},(w,M,l)=>{var i=l(20),e=l(44);w.exports=function(y,V){i(V)&&"cause"in V&&e(y,"cause",V.cause)}},(w,M,l)=>{var i=l(44),e=l(82),y=l(83),V=Error.captureStackTrace;w.exports=function(u,T,Z,d){y&&(V?V(u,T):i(u,"stack",e(Z,d)))}},(w,M,l)=>{var i=l(14),e=Error,y=i("".replace),V=function(Z){return String(e(Z).stack)}("zxcasd"),u=/\n\s*at [^:]*:[^\n]*/,T=u.test(V);w.exports=function(Z,d){if(T&&typeof Z=="string"&&!e.prepareStackTrace)for(;d--;)Z=y(Z,u,"");return Z}},(w,M,l)=>{var i=l(7),e=l(11);w.exports=!i(function(){var y=Error("a");return"stack"in y?(Object.defineProperty(y,"stack",e(1,7)),y.stack!==7):!0})},(w,M,l)=>{var i=l(48),e=l(14),y=l(77),V=l(85),u=URLSearchParams,T=u.prototype,Z=e(T.append),d=e(T.delete),r=e(T.forEach),N=e([].push),L=new u("a=1&a=2&b=3");L.delete("a",1),L.delete("b",void 0),L+""!="a=2"&&i(T,"delete",function(m){var a=arguments.length,b=a<2?void 0:arguments[1];if(a&&b===void 0)return d(this,m);var n=[];r(this,function(Y,k){N(n,{key:k,value:Y})}),V(a,1);for(var h=y(m),o=y(b),S=0,c=0,t=!1,R=n.length,p;S<R;)p=n[S++],t||p.key===h?(t=!0,d(this,p.key)):c++;for(;c<R;)p=n[c++],p.key===h&&p.value===o||Z(this,p.key,p.value)},{enumerable:!0,unsafe:!0})},w=>{var M=TypeError;w.exports=function(l,i){if(l<i)throw M("Not enough arguments");return l}},(w,M,l)=>{var i=l(48),e=l(14),y=l(77),V=l(85),u=URLSearchParams,T=u.prototype,Z=e(T.getAll),d=e(T.has),r=new u("a=1");(r.has("a",2)||!r.has("a",void 0))&&i(T,"has",function(L){var m=arguments.length,a=m<2?void 0:arguments[1];if(m&&a===void 0)return d(this,L);var b=Z(this,L);V(m,1);for(var n=y(a),h=0;h<b.length;)if(b[h++]===n)return!0;return!1},{enumerable:!0,unsafe:!0})},(w,M,l)=>{var i=l(6),e=l(14),y=l(88),V=URLSearchParams.prototype,u=e(V.forEach);i&&!("size"in V)&&y(V,"size",{get:function(){var Z=0;return u(this,function(){Z++}),Z},configurable:!0,enumerable:!0})},(w,M,l)=>{var i=l(49),e=l(45);w.exports=function(y,V,u){return u.get&&i(u.get,V,{getter:!0}),u.set&&i(u.set,V,{setter:!0}),e.f(y,V,u)}},(w,M,l)=>{var i=l(3),e=l(40),y=l(64),V=l(90),u=l(92),T=l(7),Z=T(function(){return[].push.call({length:4294967296},1)!==4294967297}),d=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(N){return N instanceof TypeError}},r=Z||!d();i({target:"Array",proto:!0,arity:1,forced:r},{push:function(L){var m=e(this),a=y(m),b=arguments.length;u(a+b);for(var n=0;n<b;n++)m[a]=arguments[n],a++;return V(m,a),a}})},(w,M,l)=>{var i=l(6),e=l(91),y=TypeError,V=Object.getOwnPropertyDescriptor,u=i&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(T){return T instanceof TypeError}}();w.exports=u?function(T,Z){if(e(T)&&!V(T,"length").writable)throw y("Cannot set read only .length");return T.length=Z}:function(T,Z){return T.length=Z}},(w,M,l)=>{var i=l(15);w.exports=Array.isArray||function(y){return i(y)==="Array"}},w=>{var M=TypeError,l=9007199254740991;w.exports=function(i){if(i>l)throw M("Maximum allowed index exceeded");return i}},(w,M,l)=>{var i=l(94),e=l(98).findLast,y=i.aTypedArray,V=i.exportTypedArrayMethod;V("findLast",function(T){return e(y(this),T,arguments.length>1?arguments[1]:void 0)})},(w,M,l)=>{var i=l(95),e=l(6),y=l(4),V=l(21),u=l(20),T=l(39),Z=l(78),d=l(32),r=l(44),N=l(48),L=l(88),m=l(25),a=l(96),b=l(71),n=l(34),h=l(41),o=l(52),S=o.enforce,c=o.get,t=y.Int8Array,R=t&&t.prototype,p=y.Uint8ClampedArray,Y=p&&p.prototype,k=t&&a(t),C=R&&a(R),Q=Object.prototype,tl=y.TypeError,F=n("toStringTag"),A=h("TYPED_ARRAY_TAG"),$="TypedArrayConstructor",B=i&&!!b&&Z(y.opera)!=="Opera",H=!1,al,q,Tl,xl={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},E={BigInt64Array:8,BigUint64Array:8},G=function(hl){if(!u(hl))return!1;var ul=Z(hl);return ul==="DataView"||T(xl,ul)||T(E,ul)},I=function(U){var hl=a(U);if(u(hl)){var ul=c(hl);return ul&&T(ul,$)?ul[$]:I(hl)}},W=function(U){if(!u(U))return!1;var hl=Z(U);return T(xl,hl)||T(E,hl)},x=function(U){if(W(U))return U;throw tl("Target is not a typed array")},z=function(U){if(V(U)&&(!b||m(k,U)))return U;throw tl(d(U)+" is not a typed array constructor")},j=function(U,hl,ul,pl){if(e){if(ul)for(var el in xl){var ol=y[el];if(ol&&T(ol.prototype,U))try{delete ol.prototype[U]}catch(Nl){try{ol.prototype[U]=hl}catch(zl){}}}(!C[U]||ul)&&N(C,U,ul?hl:B&&R[U]||hl,pl)}},P=function(U,hl,ul){var pl,el;if(e){if(b){if(ul){for(pl in xl)if(el=y[pl],el&&T(el,U))try{delete el[U]}catch(ol){}}if(!k[U]||ul)try{return N(k,U,ul?hl:B&&k[U]||hl)}catch(ol){}else return}for(pl in xl)el=y[pl],el&&(!el[U]||ul)&&N(el,U,hl)}};for(al in xl)q=y[al],Tl=q&&q.prototype,Tl?S(Tl)[$]=q:B=!1;for(al in E)q=y[al],Tl=q&&q.prototype,Tl&&(S(Tl)[$]=q);if((!B||!V(k)||k===Function.prototype)&&(k=function(){throw tl("Incorrect invocation")},B))for(al in xl)y[al]&&b(y[al],k);if((!B||!C||C===Q)&&(C=k.prototype,B))for(al in xl)y[al]&&b(y[al].prototype,C);if(B&&a(Y)!==C&&b(Y,C),e&&!T(C,F)){H=!0,L(C,F,{configurable:!0,get:function(){return u(this)?this[A]:void 0}});for(al in xl)y[al]&&r(y[al],A,al)}w.exports={NATIVE_ARRAY_BUFFER_VIEWS:B,TYPED_ARRAY_TAG:H&&A,aTypedArray:x,aTypedArrayConstructor:z,exportTypedArrayMethod:j,exportTypedArrayStaticMethod:P,getTypedArrayConstructor:I,isView:G,isTypedArray:W,TypedArray:k,TypedArrayPrototype:C}},w=>{w.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},(w,M,l)=>{var i=l(39),e=l(21),y=l(40),V=l(54),u=l(97),T=V("IE_PROTO"),Z=Object,d=Z.prototype;w.exports=u?Z.getPrototypeOf:function(r){var N=y(r);if(i(N,T))return N[T];var L=N.constructor;return e(L)&&N instanceof L?L.prototype:N instanceof Z?d:null}},(w,M,l)=>{var i=l(7);w.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},(w,M,l)=>{var i=l(99),e=l(13),y=l(40),V=l(64),u=function(T){var Z=T===1;return function(d,r,N){for(var L=y(d),m=e(L),a=i(r,N),b=V(m),n,h;b-- >0;)if(n=m[b],h=a(n,b,L),h)switch(T){case 0:return n;case 1:return b}return Z?-1:void 0}};w.exports={findLast:u(0),findLastIndex:u(1)}},(w,M,l)=>{var i=l(100),e=l(31),y=l(9),V=i(i.bind);w.exports=function(u,T){return e(u),T===void 0?u:y?V(u,T):function(){return u.apply(T,arguments)}}},(w,M,l)=>{var i=l(15),e=l(14);w.exports=function(y){if(i(y)==="Function")return e(y)}},(w,M,l)=>{var i=l(94),e=l(98).findLastIndex,y=i.aTypedArray,V=i.exportTypedArrayMethod;V("findLastIndex",function(T){return e(y(this),T,arguments.length>1?arguments[1]:void 0)})},(w,M,l)=>{var i=l(4),e=l(8),y=l(94),V=l(64),u=l(103),T=l(40),Z=l(7),d=i.RangeError,r=i.Int8Array,N=r&&r.prototype,L=N&&N.set,m=y.aTypedArray,a=y.exportTypedArrayMethod,b=!Z(function(){var h=new Uint8ClampedArray(2);return e(L,h,{length:1,0:3},1),h[1]!==3}),n=b&&y.NATIVE_ARRAY_BUFFER_VIEWS&&Z(function(){var h=new r(2);return h.set(1),h.set("2",1),h[0]!==0||h[1]!==2});a("set",function(o){m(this);var S=u(arguments.length>1?arguments[1]:void 0,1),c=T(o);if(b)return e(L,this,c,S);var t=this.length,R=V(c),p=0;if(R+S>t)throw d("Wrong length");for(;p<R;)this[S+p]=c[p++]},!b||n)},(w,M,l)=>{var i=l(104),e=RangeError;w.exports=function(y,V){var u=i(y);if(u%V)throw e("Wrong offset");return u}},(w,M,l)=>{var i=l(62),e=RangeError;w.exports=function(y){var V=i(y);if(V<0)throw e("The argument can't be less than 0");return V}},(w,M,l)=>{var i=l(106),e=l(94),y=e.aTypedArray,V=e.exportTypedArrayMethod,u=e.getTypedArrayConstructor;V("toReversed",function(){return i(y(this),u(this))})},(w,M,l)=>{var i=l(64);w.exports=function(e,y){for(var V=i(e),u=new y(V),T=0;T<V;T++)u[T]=e[V-T-1];return u}},(w,M,l)=>{var i=l(94),e=l(14),y=l(31),V=l(108),u=i.aTypedArray,T=i.getTypedArrayConstructor,Z=i.exportTypedArrayMethod,d=e(i.TypedArrayPrototype.sort);Z("toSorted",function(N){N!==void 0&&y(N);var L=u(this),m=V(T(L),L);return d(m,N)})},(w,M,l)=>{var i=l(64);w.exports=function(e,y){for(var V=0,u=i(y),T=new e(u);u>V;)T[V]=y[V++];return T}},(w,M,l)=>{var i=l(110),e=l(94),y=l(111),V=l(62),u=l(112),T=e.aTypedArray,Z=e.getTypedArrayConstructor,d=e.exportTypedArrayMethod,r=!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(N){return N===8}}();d("with",function(N,L){var m=T(this),a=V(N),b=y(m)?u(L):+L;return i(m,Z(m),a,b)},!r)},(w,M,l)=>{var i=l(64),e=l(62),y=RangeError;w.exports=function(V,u,T,Z){var d=i(V),r=e(T),N=r<0?d+r:r;if(N>=d||N<0)throw y("Incorrect index");for(var L=new u(d),m=0;m<d;m++)L[m]=m===N?Z:V[m];return L}},(w,M,l)=>{var i=l(78);w.exports=function(e){var y=i(e);return y==="BigInt64Array"||y==="BigUint64Array"}},(w,M,l)=>{var i=l(19),e=TypeError;w.exports=function(y){var V=i(y,"number");if(typeof V=="number")throw e("Can't convert number to bigint");return BigInt(V)}},(w,M,l)=>{var i=l(6),e=l(88),y=l(114),V=ArrayBuffer.prototype;i&&!("detached"in V)&&e(V,"detached",{configurable:!0,get:function(){return y(this)}})},(w,M,l)=>{var i=l(14),e=l(115),y=i(ArrayBuffer.prototype.slice);w.exports=function(V){if(e(V)!==0)return!1;try{return y(V,0,0),!1}catch(u){return!0}}},(w,M,l)=>{var i=l(72),e=l(15),y=TypeError;w.exports=i(ArrayBuffer.prototype,"byteLength","get")||function(V){if(e(V)!=="ArrayBuffer")throw y("ArrayBuffer expected");return V.byteLength}},(w,M,l)=>{var i=l(3),e=l(117);e&&i({target:"ArrayBuffer",proto:!0},{transfer:function(){return e(this,arguments.length?arguments[0]:void 0,!0)}})},(w,M,l)=>{var i=l(4),e=l(14),y=l(72),V=l(118),u=l(114),T=l(115),Z=l(119),d=i.TypeError,r=i.structuredClone,N=i.ArrayBuffer,L=i.DataView,m=Math.min,a=N.prototype,b=L.prototype,n=e(a.slice),h=y(a,"resizable","get"),o=y(a,"maxByteLength","get"),S=e(b.getInt8),c=e(b.setInt8);w.exports=Z&&function(t,R,p){var Y=T(t),k=R===void 0?Y:V(R),C=!h||!h(t);if(u(t))throw d("ArrayBuffer is detached");var Q=r(t,{transfer:[t]});if(Y===k&&(p||C))return Q;if(Y>=k&&(!p||C))return n(Q,0,k);for(var tl=p&&!C&&o?{maxByteLength:o(Q)}:void 0,F=new N(k,tl),A=new L(Q),$=new L(F),B=m(k,Y),H=0;H<B;H++)c($,H,S(A,H));return F}},(w,M,l)=>{var i=l(62),e=l(65),y=RangeError;w.exports=function(V){if(V===void 0)return 0;var u=i(V),T=e(u);if(u!==T)throw y("Wrong length or index");return T}},(w,M,l)=>{var i=l(4),e=l(7),y=l(28),V=l(120),u=l(121),T=l(122),Z=i.structuredClone;w.exports=!!Z&&!e(function(){if(u&&y>92||T&&y>94||V&&y>97)return!1;var d=new ArrayBuffer(8),r=Z(d,{transfer:[d]});return d.byteLength!==0||r.byteLength!==8})},(w,M,l)=>{var i=l(121),e=l(122);w.exports=!i&&!e&&typeof window=="object"&&typeof document=="object"},w=>{w.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},(w,M,l)=>{var i=l(4),e=l(15);w.exports=e(i.process)==="process"},(w,M,l)=>{var i=l(3),e=l(117);e&&i({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return e(this,arguments.length?arguments[0]:void 0,!1)}})},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{var w,l,i,e,hs,V,rs,T,Z,d,r,N,L,m,a,b,ws,h,o,lt,c,t;Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProp