1import{Z as _typeof,bW as getAugmentedNamespace,cc as requireUtil,bz as api$1,cd as requireShams,ce as requireCallBound$1,cf as requireEsObjectAtoms,cg as requireGetIntrinsic,ch as requireCallBind,ci as requireDefineDataProperty,cj as requireHasPropertyDescriptors,a5 as buffer,ck as streamBrowserify,c as commonjsGlobal,cl as require_stream_readable,cm as require_stream_writable,cn as require_stream_duplex,co as require_stream_transform,cp as require_stream_passthrough,cq as requireEndOfStream,cr as requirePipeline,cs as requireInherits_browser,g as getDefaultExportFromCjs,ct as requireType,r as reactExports,b0 as PropTypes,R as React,j as jsxRuntimeExports,L as LoadingIndicator,a as cx,k as LoadingView}from"./index-C7rVbH4G.js";import{c as commonjsRequire}from"./VideoFileViewer-H3DEznou.js";import{_ as _extends}from"./extends-DyJXIEqY.js";import{t as toPropertyKey,a as _slicedToArray,c as _toConsumableArray,_ as _defineProperty,b as _objectWithoutProperties}from"./objectWithoutProperties-BGuVqMwj.js";import{a as _assertThisInitialized,_ as _getPrototypeOf}from"./getPrototypeOf-CEsADKGa.js";import{_ as _setPrototypeOf}from"./inheritsLoose-DHEjEiea.js";import"./Slider-DJcxR1iX.js";import"./ArrowsExpandIcon-DpgRtelz.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new n.Error().stack;r&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[r]="f994ee28-3804-4fcd-b888-e06afe3b5d38",n._sentryDebugIdIdentifier="sentry-dbid-f994ee28-3804-4fcd-b888-e06afe3b5d38")}catch{}})();function _inherits(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),r&&_setPrototypeOf(n,r)}function _possibleConstructorReturn(n,r){if(r&&(_typeof(r)=="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(n)}function _classCallCheck(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(n,r){for(var t=0;t<r.length;t++){var e=r[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,toPropertyKey(e.key),e)}}function _createClass(n,r,t){return r&&_defineProperties(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n}var pdf={exports:{}},empty=null;const empty$1=Object.freeze(Object.defineProperty({__proto__:null,default:empty},Symbol.toStringTag,{value:"Module"})),require$$0$1=getAugmentedNamespace(empty$1),__viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$1$1=getAugmentedNamespace(__viteBrowserExternal$1);var lib$1={},binding={},assert={exports:{}},errors={},hasRequiredErrors;function requireErrors(){if(hasRequiredErrors)return errors;hasRequiredErrors=1;function n(S){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(N){return typeof N}:function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},n(S)}function r(S,N,y){return Object.defineProperty(S,"prototype",{writable:!1}),S}function t(S,N){if(!(S instanceof N))throw new TypeError("Cannot call a class as a function")}function e(S,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(N&&N.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),N&&a(S,N)}function a(S,N){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(d,h){return d.__proto__=h,d},a(S,N)}function o(S){var N=f();return function(){var d=w(S),h;if(N){var _=w(this).constructor;h=Reflect.construct(d,arguments,_)}else h=d.apply(this,arguments);return s(this,h)}}function s(S,N){if(N&&(n(N)==="object"||typeof N=="function"))return N;if(N!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return u(S)}function u(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function f(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}
vendor: 10,701 bytes, lines 1-34
1function w(S){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(y){return y.__proto__||Object.getPrototypeOf(y)},w(S)}var m={},k,x;function I(S,N,y){y||(y=Error);function d(_,R,g){return typeof N=="string"?N:N(_,R,g)}var h=function(_){e(g,_);var R=o(g);function g(M,H,P){var F;return t(this,g),F=R.call(this,d(M,H,P)),F.code=S,F}return r(g)}(y);m[S]=h}function D(S,N){if(Array.isArray(S)){var y=S.length;return S=S.map(function(d){return String(d)}),y>2?"one of ".concat(N," ").concat(S.slice(0,y-1).join(", "),", or ")+S[y-1]:y===2?"one of ".concat(N," ").concat(S[0]," or ").concat(S[1]):"of ".concat(N," ").concat(S[0])}else return"of ".concat(N," ").concat(String(S))}function q(S,N,y){return S.substr(0,N.length)===N}function O(S,N,y){return(y===void 0||y>S.length)&&(y=S.length),S.substring(y-N.length,y)===N}function B(S,N,y){return typeof y!="number"&&(y=0),y+N.length>S.length?!1:S.indexOf(N,y)!==-1}return I("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),I("ERR_INVALID_ARG_TYPE",function(S,N,y){k===void 0&&(k=requireAssert()),k(typeof S=="string","'name' must be a string");var d;typeof N=="string"&&q(N,"not ")?(d="must not be",N=N.replace(/^not /,"")):d="must be";var h;if(O(S," argument"))h="The ".concat(S," ").concat(d," ").concat(D(N,"type"));else{var _=B(S,".")?"property":"argument";h='The "'.concat(S,'" ').concat(_," ").concat(d," ").concat(D(N,"type"))}return h+=". Received type ".concat(n(y)),h},TypeError),I("ERR_INVALID_ARG_VALUE",function(S,N){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";x===void 0&&(x=requireUtil());var d=x.inspect(N);return d.length>128&&(d="".concat(d.slice(0,128),"...")),"The argument '".concat(S,"' ").concat(y,". Received ").concat(d)},TypeError),I("ERR_INVALID_RETURN_VALUE",function(S,N,y){var d;return y&&y.constructor&&y.constructor.name?d="instance of ".concat(y.constructor.name):d="type ".concat(n(y)),"Expected ".concat(S,' to be returned from the "').concat(N,'"')+" function but got ".concat(d,".")},TypeError),I("ERR_MISSING_ARGS",function(){for(var S=arguments.length,N=new Array(S),y=0;y<S;y++)N[y]=arguments[y];k===void 0&&(k=requireAssert()),k(N.length>0,"At least one arg needs to be specified");var d="The ",h=N.length;switch(N=N.map(function(_){return'"'.concat(_,'"')}),h){case 1:d+="".concat(N[0]," argument");break;case 2:d+="".concat(N[0]," and ").concat(N[1]," arguments");break;default:d+=N.slice(0,h-1).join(", "),d+=", and ".concat(N[h-1]," arguments");break}return"".concat(d," must be specified")},TypeError),errors.codes=m,errors}var assertion_error,hasRequiredAssertion_error;function requireAssertion_error(){if(hasRequiredAssertion_error)return assertion_error;hasRequiredAssertion_error=1;function n(X,T){var b=Object.keys(X);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(X);T&&(C=C.filter(function($){return Object.getOwnPropertyDescriptor(X,$).enumerable})),b.push.apply(b,C)}return b}function r(X){for(var T=1;T<arguments.length;T++){var b=arguments[T]!=null?arguments[T]:{};T%2?n(Object(b),!0).forEach(function(C){t(X,C,b[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(X,Object.getOwnPropertyDescriptors(b)):n(Object(b)).forEach(function(C){Object.defineProperty(X,C,Object.getOwnPropertyDescriptor(b,C))})}return X}function t(X,T,b){return T=s(T),T in X?Object.defineProperty(X,T,{value:b,enumerable:!0,configurable:!0,writable:!0}):X[T]=b,X}function e(X,T){if(!(X instanceof T))throw new TypeError("Cannot call a class as a function")}function a(X,T){for(var b=0;b<T.length;b++){var C=T[b];C.enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(X,s(C.key),C)}}function o(X,T,b){return T&&a(X.prototype,T),Object.defineProperty(X,"prototype",{writable:!1}),X}function s(X){var T=u(X,"string");return S(T)==="symbol"?T:String(T)}function u(X,T){if(S(X)!=="object"||X===null)return X;var b=X[Symbol.toPrimitive];if(b!==void 0){var C=b.call(X,T||"default");if(S(C)!=="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(X)}function f(X,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");X.prototype=Object.create(T&&T.prototype,{constructor:{value:X,writable:!0,configurable:!0}}),Object.defineProperty(X,"prototype",{writable:!1}),T&&O(X,T)}function w(X){var T=D();return function(){var C=B(X),$;if(T){var W=B(this).constructor;$=Reflect.construct(C,arguments,W)}else $=C.apply(this,arguments);return m(this,$)}}function m(X,T){if(T&&(S(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(X)}function k(X){if(X===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return X}function x(X){var T=typeof Map=="function"?new Map:void 0;return x=function(C){if(C===null||!q(C))return C;if(typeof C!="function")throw new TypeError("Super expression must either be null or a function");if(typeof T<"u"){if(T.has(C))return T.get(C);T.set(C,$)}function $(){return I(C,arguments,B(this).constructor)}return $.prototype=Object.create(C.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),O($,C)},x(X)}function I(X,T,b){return D()?I=Reflect.construct.bind():I=function($,W,V){var U=[null];U.push.apply(U,W);var de=Function.bind.apply($,U),pe=new de;return V&&O(pe,V.prototype),pe},I.apply(null,arguments)}function D(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function q(X){return Function.toString.call(X).indexOf("[native code]")!==-1}function O(X,T){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,$){return C.__proto__=$,C},O(X,T)}function B(X){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(b){return b.__proto__||Object.getPrototypeOf(b)},B(X)}function S(X){"@babel/helpers - typeof";return S=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},S(X)}var N=requireUtil(),y=N.inspect,d=requireErrors(),h=d.codes.ERR_INVALID_ARG_TYPE;function _(X,T,b){return(b===void 0||b>X.length)&&(b=X.length),X.substring(b-T.length,b)===T}function R(X,T){if(T=Math.floor(T),X.length==0||T==0)return"";var b=X.length*T;for(T=Math.floor(Math.log(T)/Math.log(2));T;)X+=X,T--;return X+=X.substring(0,b-X.length),X}var g="",M="",H="",P="",F={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},te=10;function ae(X){var T=Object.keys(X),b=Object.create(Object.getPrototypeOf(X));return T.forEach(function(C){b[C]=X[C]}),Object.defineProperty(b,"message",{value:X.message}),b}function ie(X){return y(X,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function se(X,T,b){var C="",$="",W=0,V="",U=!1,de=ie(X),pe=de.split(` 2`),Re=ie(T).split(` 3`),Z=0,z="";if(b==="strictEqual"&&S(X)==="object"&&S(T)==="object"&&X!==null&&T!==null&&(b="strictEqualObject"),pe.length===1&&Re.length===1&&pe[0]!==Re[0]){var A=pe[0].length+Re[0].length;if(A<=te){if((S(X)!=="object"||X===null)&&(S(T)!=="object"||T===null)&&(X!==0||T!==0))return"".concat(F[b],` 4 5`)+"".concat(pe[0]," !== ").concat(Re[0],` 6`)}else if(b!=="strictEqualObject"){var v=api$1.stderr&&api$1.stderr.isTTY?api$1.stderr.columns:80;if(A<v){for(;pe[0][Z]===Re[0][Z];)Z++;Z>2&&(z=` 7 `.concat(R(" ",Z),"^"),Z=0)}}}for(var L=pe[pe.length-1],J=Re[Re.length-1];L===J&&(Z++<2?V=` 8 `.concat(L).concat(V):C=L,pe.pop(),Re.pop(),!(pe.length===0||Re.length===0));)L=pe[pe.length-1],J=Re[Re.length-1];var ne=Math.max(pe.length,Re.length);if(ne===0){var oe=de.split(` 9`);if(oe.length>30)for(oe[26]="".concat(g,"...").concat(P);oe.length>27;)oe.pop();return"".concat(F.notIdentical,` 10 11`).concat(oe.join(` 12`),` 13`)}Z>3&&(V=` 14`.concat(g,"...").concat(P).concat(V),U=!0),C!==""&&(V=` 15 `.concat(C).concat(V),C="");var he=0,Te=F[b]+` 16`.concat(M,"+ actual").concat(P," ").concat(H,"- expected").concat(P),ke=" ".concat(g,"...").concat(P," Lines skipped");for(Z=0;Z<ne;Z++){var Ee=Z-W;if(pe.length<Z+1)Ee>1&&Z>2&&(Ee>4?($+=` 17`.concat(g,"...").concat(P),U=!0):Ee>3&&($+=` 18 `.concat(Re[Z-2]),he++),$+=` 19 `.concat(Re[Z-1]),he++),W=Z,C+=` 20`.concat(H,"-").concat(P," ").concat(Re[Z]),he++;else if(Re.length<Z+1)Ee>1&&Z>2&&(Ee>4?($+=` 21`.concat(g,"...").concat(P),U=!0):Ee>3&&($+=` 22 `.concat(pe[Z-2]),he++),$+=` 23 `.concat(pe[Z-1]),he++),W=Z,$+=` 24`.concat(M,"+").concat(P," ").concat(pe[Z]),he++;else{var Ie=Re[Z],Le=pe[Z],ce=Le!==Ie&&(!_(Le,",")||Le.slice(0,-1)!==Ie);ce&&_(Ie,",")&&Ie.slice(0,-1)===Le&&(ce=!1,Le+=","),ce?(Ee>1&&Z>2&&(Ee>4?($+=` 25`.concat(g,"...").concat(P),U=!0):Ee>3&&($+=` 26 `.concat(pe[Z-2]),he++),$+=` 27 `.concat(pe[Z-1]),he++),W=Z,$+=` 28`.concat(M,"+").concat(P," ").concat(Le),C+=` 29`.concat(H,"-").concat(P," ").concat(Ie),he+=2):($+=C,C="",(Ee===1||Z===0)&&($+=` 30 `.concat(Le),he++))}if(he>20&&Z<ne-2)return"".concat(Te).concat(ke,` 31`).concat($,` 32`).concat(g,"...").concat(P).concat(C,` 33`)+"".concat(g,"...").concat(P)}return"".concat(Te).concat(U?ke:"",` 34`).concat($).concat(C).concat(V).concat(z)}var re=function(X,T){f(C,X);var b=w(C);function C($){var W;if(e(this,C),S($)!=="object"||$===null)throw new h("options","Object",$);var V=$.message,U=$.operator,de=$.stackStartFn,pe=$.actual,Re=$.expected,Z=Error.stackTraceLimit;if(Error.stackTraceLimit=0,V!=null)W=b.call(this,String(V));else if(api$1.stderr&&api$1.stderr.isTTY&&(api$1.stderr&&api$1.stderr.getColorDepth&&api$1.stderr.getColorDepth()!==1?(g="\x1B[34m",M="\x1B[32m",P="\x1B[39m",H="\x1B[31m"):(g="",M="",P="",H="")),S(pe)==="object"&&pe!==null&&S(Re)==="object"&&Re!==null&&"stack"in pe&&pe instanceof Error&&"stack"in Re&&Re instanceof Error&&(pe=ae(pe),Re=ae(Re)),U==="deepStrictEqual"||U==="str
34ictEqual")W=b.call(this,se(pe,Re,U));else if(U==="notDeepStrictEqual"||U==="notStrictEqual"){var z=F[U],A=ie(pe).split(` 35`);if(U==="notStrictEqual"&&S(pe)==="object"&&pe!==null&&(z=F.notStrictEqualObject),A.length>30)for(A[26]="".concat(g,"...").concat(P);A.length>27;)A.pop();A.length===1?W=b.call(this,"".concat(z," ").concat(A[0])):W=b.call(this,"".concat(z,` 36 37`).concat(A.join(` 38`),` 39`))}else{var v=ie(pe),L="",J=F[U];U==="notDeepEqual"||U==="notEqual"?(v="".concat(F[U],` 40 41`).concat(v),v.length>1024&&(v="".concat(v.slice(0,1021),"..."))):(L="".concat(ie(Re)),v.length>512&&(v="".concat(v.slice(0,509),"...")),L.length>512&&(L="".concat(L.slice(0,509),"...")),U==="deepEqual"||U==="equal"?v="".concat(J,` 42 43`).concat(v,` 44 45should equal 46 47`):L=" ".concat(U," ").concat(L)),W=b.call(this,"".concat(v).concat(L))}return Error.stackTraceLimit=Z,W.generatedMessage=!V,Object.defineProperty(k(W),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),W.code="ERR_ASSERTION",W.actual=pe,W.expected=Re,W.operator=U,Error.captureStackTrace&&Error.captureStackTrace(k(W),de),W.stack,W.name="AssertionError",m(W)}return o(C,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:T,value:function(W,V){return y(this,r(r({},V),{},{customInspect:!1,depth:0}))}}]),C}(x(Error),y.custom);return assertion_error=re,assertion_error}var isArguments,hasRequiredIsArguments;function requireIsArguments(){if(hasRequiredIsArguments)return isArguments;hasRequiredIsArguments=1;var n=Object.prototype.toString;return isArguments=function(t){var e=n.call(t),a=e==="[object Arguments]";return a||(a=e!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&n.call(t.callee)==="[object Function]"),a},isArguments}var implementation$3,hasRequiredImplementation$3;function requireImplementation$3(){if(hasRequiredImplementation$3)return implementation$3;hasRequiredImplementation$3=1;var n;if(!Object.keys){var r=Object.prototype.hasOwnProperty,t=Object.prototype.toString,e=requireIsArguments(),a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),s=a.call(function(){},"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(x){var I=x.constructor;return I&&I.prototype===x},w={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},m=function(){if(typeof window>"u")return!1;for(var x in window)try{if(!w["$"+x]&&r.call(window,x)&&window[x]!==null&&typeof window[x]=="object")try{f(window[x])}catch{return!0}}catch{return!0}return!1}(),k=function(x){if(typeof window>"u"||!m)return f(x);try{return f(x)}catch{return!1}};n=function(I){var D=I!==null&&typeof I=="object",q=t.call(I)==="[object Function]",O=e(I),B=D&&t.call(I)==="[object String]",S=[];if(!D&&!q&&!O)throw new TypeError("Object.keys called on a non-object");var N=s&&q;if(B&&I.length>0&&!r.call(I,0))for(var y=0;y<I.length;++y)S.push(String(y));if(O&&I.length>0)for(var d=0;d<I.length;++d)S.push(String(d));else for(var h in I)!(N&&h==="prototype")&&r.call(I,h)&&S.push(String(h));if(o)for(var _=k(I),R=0;R<u.length;++R)!(_&&u[R]==="constructor")&&r.call(I,u[R])&&S.push(u[R]);return S}}return implementation$3=n,implementation$3}var objectKeys,hasRequiredObjectKeys;function requireObjectKeys(){if(hasRequiredObjectKeys)return objectKeys;hasRequiredObjectKeys=1;var n=Array.prototype.slice,r=requireIsArguments(),t=Object.keys,e=t?function(s){return t(s)}:requireImplementation$3(),a=Object.keys;return e.shim=function(){if(Object.keys){var s=function(){var u=Object.keys(arguments);return u&&u.length===arguments.length}(1,2);s||(Object.keys=function(f){return r(f)?a(n.call(f)):a(f)})}else Object.keys=e;return Object.keys||e},objectKeys=e,objectKeys}var implementation$2,hasRequiredImplementation$2;function requireImplementation$2(){if(hasRequiredImplementation$2)return implementation$2;hasRequiredImplementation$2=1;var n=requireObjectKeys(),r=requireShams()(),t=requireCallBound$1(),e=requireEsObjectAtoms(),a=t("Array.prototype.push"),o=t("Object.prototype.propertyIsEnumerable"),s=r?e.getOwnPropertySymbols:null;return implementation$2=function(f,w){if(f==null)throw new TypeError("target must be an object");var m=e(f);if(arguments.length===1)return m;for(var k=1;k<arguments.length;++k){var x=e(arguments[k]),I=n(x),D=r&&(e.getOwnPropertySymbols||s);if(D)for(var q=D(x),O=0;O<q.length;++O){var B=q[O];o(x,B)&&a(I,B)}for(var S=0;S<I.length;++S){var N=I[S];if(o(x,N)){var y=x[N];m[N]=y}}}return m},implementation$2}var polyfill$2,hasRequiredPolyfill$2;function requirePolyfill$2(){if(hasRequiredPolyfill$2)return polyfill$2;hasRequiredPolyfill$2=1;var n=requireImplementation$2(),r=function(){if(!Object.assign)return!1;for(var e="abcdefghijklmnopqrst",a=e.split(""),o={},s=0;s<a.length;++s)o[a[s]]=a[s];var u=Object.assign({},o),f="";for(var w in u)f+=w;return e!==f},t=function(){if(!Object.assign||!Object.preventExtensions)return!1;var e=Object.preventExtensions({1:2});try{Object.assign(e,"xy")}catch{return e[1]==="y"}return!1};return polyfill$2=function(){return!Object.assign||r()||t()?n:Object.assign},polyfill$2}var implementation$1,hasRequiredImplementation$1;function requireImplementation$1(){if(hasRequiredImplementation$1)return implementation$1;hasRequiredImplementation$1=1;var n=function(r){return r!==r};return implementation$1=function(t,e){return t===0&&e===0?1/t===1/e:!!(t===e||n(t)&&n(e))},implementation$1}var polyfill$1,hasRequiredPolyfill$1;function requirePolyfill$1(){if(hasRequiredPolyfill$1)return polyfill$1;hasRequiredPolyfill$1=1;var n=requireImplementation$1();return polyfill$1=function(){return typeof Object.is=="function"?Object.is:n},polyfill$1}var callBound$2,hasRequiredCallBound;function requireCallBound(){if(hasRequiredCallBound)return callBound$2;hasRequiredCallBound=1;var n=requireGetIntrinsic(),r=requireCallBind(),t=r(n("String.prototype.indexOf"));return callBound$2=function(a,o){var s=n(a,!!o);return typeof s=="function"&&t(a,".prototype.")>-1?r(s):s},callBound$2}var defineProperties_1,hasRequiredDefineProperties;function requireDefineProperties(){if(hasRequiredDefineProperties)return defineProperties_1;hasRequiredDefineProperties=1;var n=requireObjectKeys(),r=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",t=Object.prototype.toString,e=Array.prototype.concat,a=requireDefineDataProperty(),o=function(w){return typeof w=="function"&&t.call(w)==="[object Function]"},s=requireHasPropertyDescriptors()(),u=function(w,m,k,x){if(m in w){if(x===!0){if(w[m]===k)return}else if(!o(x)||!x())return}s?a(w,m,k,!0):a(w,m,k)},f=function(w,m){var k=arguments.length>2?arguments[2]:{},x=n(m);r&&(x=e.call(x,Object.getOwnPropertySymbols(m)));for(var I=0;I<x.length;I+=1)u(w,x[I],m[x[I]],k[x[I]])};return f.supportsDescriptors=!!s,defineProperties_1=f,defineProperties_1}var shim$1,hasRequiredShim$1;function requireShim$1(){if(hasRequiredShim$1)return shim$1;hasRequiredShim$1=1;var n=requirePolyfill$1(),r=requireDefineProperties();return shim$1=function(){var e=n();return r(Object,{is:e},{is:function(){return Object.is!==e}}),e},shim$1}var objectIs,hasRequiredObjectIs;function requireObjectIs(){if(hasRequiredObjectIs)return objectIs;hasRequiredObjectIs=1;var n=requireDefineProperties(),r=requireCallBind(),t=requireImplementation$1(),e=requirePolyfill$1(),a=requireShim$1(),o=r(e(),Object);return n(o,{getPolyfill:e,implementation:t,shim:a}),objectIs=o,objectIs}var implementation,hasRequiredImplementation;function requireImplementation(){return hasRequiredImplementation||(hasRequiredImplementation=1,implementation=function(r){return r!==r}),implementation}var polyfill,hasRequiredPolyfill;function requirePolyfill(){if(hasRequiredPolyfill)return polyfill;hasRequiredPolyfill=1;var n=requireImplementation();return polyfill=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:n},polyfill}var shim,hasRequiredShim;function requireShim(){if(hasRequiredShim)return shim;hasRequiredShim=1;var n=requireDefineProperties(),r=requirePolyfill();return shim=function(){var e=r();return n(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e},shim}var isNan,hasRequiredIsNan;function requireIsNan(){if(hasRequiredIsNan)return isNan;hasRequiredIsNan=1;var n=requireCallBind(),r=requireDefineProperties(),t=requireImplementation(),e=requirePolyfill(),a=requireShim(),o=n(e(),Number);return r(o,{getPolyfill:e,implementation:t,shim:a}),isNan=o,isNan}var comparisons,hasRequiredComparisons;function requireComparisons(){if(hasRequiredComparisons)return comparisons;hasRequiredComparisons=1;function n(ce,ge){return o(ce)||a(ce,ge)||t(ce,ge)||r()}
vendor: 17,307 bytes, lines 47-62
47function r(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 48In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t(ce,ge){if(ce){if(typeof ce=="string")return e(ce,ge);var Ce=Object.prototype.toString.call(ce).slice(8,-1);if(Ce==="Object"&&ce.constructor&&(Ce=ce.constructor.name),Ce==="Map"||Ce==="Set")return Array.from(ce);if(Ce==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ce))return e(ce,ge)}}function e(ce,ge){(ge==null||ge>ce.length)&&(ge=ce.length);for(var Ce=0,Be=new Array(ge);Ce<ge;Ce++)Be[Ce]=ce[Ce];return Be}function a(ce,ge){var Ce=ce==null?null:typeof Symbol<"u"&&ce[Symbol.iterator]||ce["@@iterator"];if(Ce!=null){var Be,Ne,ye,be,p=[],ee=!0,Q=!1;try{if(ye=(Ce=Ce.call(ce)).next,ge!==0)for(;!(ee=(Be=ye.call(Ce)).done)&&(p.push(Be.value),p.length!==ge);ee=!0);}catch(le){Q=!0,Ne=le}finally{try{if(!ee&&Ce.return!=null&&(be=Ce.return(),Object(be)!==be))return}finally{if(Q)throw Ne}}return p}}function o(ce){if(Array.isArray(ce))return ce}function s(ce){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(ge){return typeof ge}:function(ge){return ge&&typeof Symbol=="function"&&ge.constructor===Symbol&&ge!==Symbol.prototype?"symbol":typeof ge},s(ce)}var u=/a/g.flags!==void 0,f=function(ge){var Ce=[];return ge.forEach(function(Be){return Ce.push(Be)}),Ce},w=function(ge){var Ce=[];return ge.forEach(function(Be,Ne){return Ce.push([Ne,Be])}),Ce},m=Object.is?Object.is:requireObjectIs(),k=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},x=Number.isNaN?Number.isNaN:requireIsNan();function I(ce){return ce.call.bind(ce)}var D=I(Object.prototype.hasOwnProperty),q=I(Object.prototype.propertyIsEnumerable),O=I(Object.prototype.toString),B=requireUtil().types,S=B.isAnyArrayBuffer,N=B.isArrayBufferView,y=B.isDate,d=B.isMap,h=B.isRegExp,_=B.isSet,R=B.isNativeError,g=B.isBoxedPrimitive,M=B.isNumberObject,H=B.isStringObject,P=B.isBooleanObject,F=B.isBigIntObject,te=B.isSymbolObject,ae=B.isFloat32Array,ie=B.isFloat64Array;function se(ce){if(ce.length===0||ce.length>10)return!0;for(var ge=0;ge<ce.length;ge++){var Ce=ce.charCodeAt(ge);if(Ce<48||Ce>57)return!0}return ce.length===10&&ce>=Math.pow(2,32)}function re(ce){return Object.keys(ce).filter(se).concat(k(ce).filter(Object.prototype.propertyIsEnumerable.bind(ce)))}/*! 49 * The buffer module from node.js, for the browser. 50 * 51 * @author Feross Aboukhadijeh <[email protected]> <http://feross.org> 52 * @license MIT 53 */function X(ce,ge){if(ce===ge)return 0;for(var Ce=ce.length,Be=ge.length,Ne=0,ye=Math.min(Ce,Be);Ne<ye;++Ne)if(ce[Ne]!==ge[Ne]){Ce=ce[Ne],Be=ge[Ne];break}return Ce<Be?-1:Be<Ce?1:0}var T=!0,b=!1,C=0,$=1,W=2,V=3;function U(ce,ge){return u?ce.source===ge.source&&ce.flags===ge.flags:RegExp.prototype.toString.call(ce)===RegExp.prototype.toString.call(ge)}function de(ce,ge){if(ce.byteLength!==ge.byteLength)return!1;for(var Ce=0;Ce<ce.byteLength;Ce++)if(ce[Ce]!==ge[Ce])return!1;return!0}function pe(ce,ge){return ce.byteLength!==ge.byteLength?!1:X(new Uint8Array(ce.buffer,ce.byteOffset,ce.byteLength),new Uint8Array(ge.buffer,ge.byteOffset,ge.byteLength))===0}function Re(ce,ge){return ce.byteLength===ge.byteLength&&X(new Uint8Array(ce),new Uint8Array(ge))===0}function Z(ce,ge){return M(ce)?M(ge)&&m(Number.prototype.valueOf.call(ce),Number.prototype.valueOf.call(ge)):H(ce)?H(ge)&&String.prototype.valueOf.call(ce)===String.prototype.valueOf.call(ge):P(ce)?P(ge)&&Boolean.prototype.valueOf.call(ce)===Boolean.prototype.valueOf.call(ge):F(ce)?F(ge)&&BigInt.prototype.valueOf.call(ce)===BigInt.prototype.valueOf.call(ge):te(ge)&&Symbol.prototype.valueOf.call(ce)===Symbol.prototype.valueOf.call(ge)}function z(ce,ge,Ce,Be){if(ce===ge)return ce!==0?!0:Ce?m(ce,ge):!0;if(Ce){if(s(ce)!=="object")return typeof ce=="number"&&x(ce)&&x(ge);if(s(ge)!=="object"||ce===null||ge===null||Object.getPrototypeOf(ce)!==Object.getPrototypeOf(ge))return!1}else{if(ce===null||s(ce)!=="object")return ge===null||s(ge)!=="object"?ce==ge:!1;if(ge===null||s(ge)!=="object")return!1}var Ne=O(ce),ye=O(ge);if(Ne!==ye)return!1;if(Array.isArray(ce)){if(ce.length!==ge.length)return!1;var be=re(ce),p=re(ge);return be.length!==p.length?!1:v(ce,ge,Ce,Be,$,be)}if(Ne==="[object Object]"&&(!d(ce)&&d(ge)||!_(ce)&&_(ge)))return!1;if(y(ce)){if(!y(ge)||Date.prototype.getTime.call(ce)!==Date.prototype.getTime.call(ge))return!1}else if(h(ce)){if(!h(ge)||!U(ce,ge))return!1}else if(R(ce)||ce instanceof Error){if(ce.message!==ge.message||ce.name!==ge.name)return!1}else if(N(ce)){if(!Ce&&(ae(ce)||ie(ce))){if(!de(ce,ge))return!1}else if(!pe(ce,ge))return!1;var ee=re(ce),Q=re(ge);return ee.length!==Q.length?!1:v(ce,ge,Ce,Be,C,ee)}else{if(_(ce))return!_(ge)||ce.size!==ge.size?!1:v(ce,ge,Ce,Be,W);if(d(ce))return!d(ge)||ce.size!==ge.size?!1:v(ce,ge,Ce,Be,V);if(S(ce)){if(!Re(ce,ge))return!1}else if(g(ce)&&!Z(ce,ge))return!1}return v(ce,ge,Ce,Be,C)}function A(ce,ge){return ge.filter(function(Ce){return q(ce,Ce)})}function v(ce,ge,Ce,Be,Ne,ye){if(arguments.length===5){ye=Object.keys(ce);var be=Object.keys(ge);if(ye.length!==be.length)return!1}for(var p=0;p<ye.length;p++)if(!D(ge,ye[p]))return!1;if(Ce&&arguments.length===5){var ee=k(ce);if(ee.length!==0){var Q=0;for(p=0;p<ee.length;p++){var le=ee[p];if(q(ce,le)){if(!q(ge,le))return!1;ye.push(le),Q++}else if(q(ge,le))return!1}var G=k(ge);if(ee.length!==G.length&&A(ge,G).length!==Q)return!1}else{var Y=k(ge);if(Y.length!==0&&A(ge,Y).length!==0)return!1}}if(ye.length===0&&(Ne===C||Ne===$&&ce.length===0||ce.size===0))return!0;if(Be===void 0)Be={val1:new Map,val2:new Map,position:0};else{var E=Be.val1.get(ce);if(E!==void 0){var ue=Be.val2.get(ge);if(ue!==void 0)return E===ue}Be.position++}Be.val1.set(ce,Be.position),Be.val2.set(ge,Be.position);var Pe=Ee(ce,ge,Ce,ye,Be,Ne);return Be.val1.delete(ce),Be.val2.delete(ge),Pe}function L(ce,ge,Ce,Be){for(var Ne=f(ce),ye=0;ye<Ne.length;ye++){var be=Ne[ye];if(z(ge,be,Ce,Be))return ce.delete(be),!0}return!1}function J(ce){switch(s(ce)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":ce=+ce;case"number":if(x(ce))return!1}return!0}function ne(ce,ge,Ce){var Be=J(Ce);return Be??(ge.has(Be)&&!ce.has(Be))}function oe(ce,ge,Ce,Be,Ne){var ye=J(Ce);if(ye!=null)return ye;var be=ge.get(ye);return be===void 0&&!ge.has(ye)||!z(Be,be,!1,Ne)?!1:!ce.has(ye)&&z(Be,be,!1,Ne)}function he(ce,ge,Ce,Be){for(var Ne=null,ye=f(ce),be=0;be<ye.length;be++){var p=ye[be];if(s(p)==="object"&&p!==null)Ne===null&&(Ne=new Set),Ne.add(p);else if(!ge.has(p)){if(Ce||!ne(ce,ge,p))return!1;Ne===null&&(Ne=new Set),Ne.add(p)}}if(Ne!==null){for(var ee=f(ge),Q=0;Q<ee.length;Q++){var le=ee[Q];if(s(le)==="object"&&le!==null){if(!L(Ne,le,Ce,Be))return!1}else if(!Ce&&!ce.has(le)&&!L(Ne,le,Ce,Be))return!1}return Ne.size===0}return!0}function Te(ce,ge,Ce,Be,Ne,ye){for(var be=f(ce),p=0;p<be.length;p++){var ee=be[p];if(z(Ce,ee,Ne,ye)&&z(Be,ge.get(ee),Ne,ye))return ce.delete(ee),!0}return!1}function ke(ce,ge,Ce,Be){for(var Ne=null,ye=w(ce),be=0;be<ye.length;be++){var p=n(ye[be],2),ee=p[0],Q=p[1];if(s(ee)==="object"&&ee!==null)Ne===null&&(Ne=new Set),Ne.add(ee);else{var le=ge.get(ee);if(le===void 0&&!ge.has(ee)||!z(Q,le,Ce,Be)){if(Ce||!oe(ce,ge,ee,Q,Be))return!1;Ne===null&&(Ne=new Set),Ne.add(ee)}}}if(Ne!==null){for(var G=w(ge),Y=0;Y<G.length;Y++){var E=n(G[Y],2),ue=E[0],Pe=E[1];if(s(ue)==="object"&&ue!==null){if(!Te(Ne,ce,ue,Pe,Ce,Be))return!1}else if(!Ce&&(!ce.has(ue)||!z(ce.get(ue),Pe,!1,Be))&&!Te(Ne,ce,ue,Pe,!1,Be))return!1}return Ne.size===0}return!0}function Ee(ce,ge,Ce,Be,Ne,ye){var be=0;if(ye===W){if(!he(ce,ge,Ce,Ne))return!1}else if(ye===V){if(!ke(ce,ge,Ce,Ne))return!1}else if(ye===$)for(;be<ce.length;be++)if(D(ce,be)){if(!D(ge,be)||!z(ce[be],ge[be],Ce,Ne))return!1}else{if(D(ge,be))return!1;for(var p=Object.keys(ce);be<p.length;be++){var ee=p[be];if(!D(ge,ee)||!z(ce[ee],ge[ee],Ce,Ne))return!1}return p.length===Object.keys(ge).length}for(be=0;be<Be.length;be++){var Q=Be[be];if(!z(ce[Q],ge[Q],Ce,Ne))return!1}return!0}function Ie(ce,ge){return z(ce,ge,b)}function Le(ce,ge){return z(ce,ge,T)}return comparisons={isDeepEqual:Ie,isDeepStrictEqual:Le},comparisons}var hasRequiredAssert;function requireAssert(){if(hasRequiredAssert)return assert.exports;hasRequiredAssert=1;function n(W){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(V){return typeof V}:function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},n(W)}function r(W,V,U){return Object.defineProperty(W,"prototype",{writable:!1}),W}function t(W,V){if(!(W instanceof V))throw new TypeError("Cannot call a class as a function")}var e=requireErrors(),a=e.codes,o=a.ERR_AMBIGUOUS_ARGUMENT,s=a.ERR_INVALID_ARG_TYPE,u=a.ERR_INVALID_ARG_VALUE,f=a.ERR_INVALID_RETURN_VALUE,w=a.ERR_MISSING_ARGS,m=requireAssertion_error(),k=requireUtil(),x=k.inspect,I=requireUtil().types,D=I.isPromise,q=I.isRegExp,O=requirePolyfill$2()(),B=requirePolyfill$1()(),S=requireCallBound()("RegExp.prototype.test"),N,y;function d(){var W=requireComparisons();N=W.isDeepEqual,y=W.isDeepStrictEqual}var h=!1,_=assert.exports=P,R={};function g(W){throw W.message instanceof Error?W.message:new m(W)}function M(W,V,U,de,pe){var Re=arguments.length,Z;if(Re===0)Z="Failed";else if(Re===1)U=W,W=void 0;else{if(h===!1){h=!0;var z=api$1.emitWarning?api$1.emitWarning:console.warn.bind(console);z("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}Re===2&&(de="!=")}if(U instanceof Error)throw U;var A={actual:W,expected:V,operator:de===void 0?"fail":de,stackStartFn:pe||M};U!==void 0&&(A.message=U);var v=new m(A);throw Z&&(v.message=Z,v.generatedMessage=!0),v}_.fail=M,_.AssertionError=m;function H(W,V,U,de){if(!U){var pe=!1;if(V===0)pe=!0,de="No value argument passed to `assert.ok()`";else if(de instanceof Error)throw de;var Re=new m({actual:U,expected:!0,message:de,operator:"==",stackStartFn:W});throw Re.generatedMessage=pe,Re}}function P(){for(var W=arguments.length,V=new Array(W),U=0;U<W;U++)V[U]=arguments[U];H.apply(void 0,[P,V.length].concat(V))}_.ok=P,_.equal=function W(V,U,de){if(arguments.length<2)throw new w("actual","expected");V!=U&&g({actual:V,expected:U,message:de,operator:"==",stackStartFn:W})},_.notEqual=function W(V,U,de){if(arguments.length<2)throw new w("actual","expected");V==U&&g({actual:V,expected:U,message:de,operator:"!=",stackStartFn:W})},_.deepEqual=function W(V,U,de){if(arguments.length<2)throw new w("actual","expected");N===void 0&&d(),N(V,U)||g({actual:V,expected:U,message:de,operator:"deepEqual",stackStartFn:W})},_.notDeepEqual=function W(V,U,de){if(arguments.length<2)throw new w("actual","expected");N===void 0&&d(),N(V,U)&&g({actual:V,expected:U,message:de,operator:"notDeepEqual",stackStartFn:W})},_.deepStrictEqual=function W(V,U,de){if(arguments.length<2)throw new w("actual","expected");N===void 0&&d(),y(V,U)||g({actual:V,expected:U,message:de,operator:"deepStrictEqual",stackStartFn:W})},_.notDeepStrictEqual=F;function F(W,V,U){if(arguments.length<2)throw new w("actual","expected");N===void 0&&d(),y(W,V)&&g({actual:W,expected:V,message:U,operator:"notDeepStrictEqual",stackStartFn:F})}_.strictEqual=function W(V,U,de){if(arguments.length<2)throw new w("actual","expected");B(V,U)||g({actual:V,expected:U,message:de,operator:"strictEqual",stackStartFn:W})},_.notStrictEqual=function W(V,U,de){if(arguments.length<2)throw new w("actual","expected");B(V,U)&&g({actual:V,expected:U,message:de,operator:"notStrictEqual",stackStartFn:W})};var te=r(function W(V,U,de){var pe=this;t(this,W),U.forEach(function(Re){Re in V&&(de!==void 0&&typeof de[Re]=="string"&&q(V[Re])&&S(V[Re],de[Re])?pe[Re]=de[Re]:pe[Re]=V[Re])})});function ae(W,V,U,de,pe,Re){if(!(U in W)||!y(W[U],V[U])){if(!de){var Z=new te(W,pe),z=new te(V,pe,W),A=new m({actual:Z,expected:z,operator:"deepStrictEqual",stackStartFn:Re});throw A.actual=W,A.expected=V,A.operator=Re.name,A}g({actual:W,expected:V,message:de,operator:Re.name,stackStartFn:Re})}}function ie(W,V,U,de){if(typeof V!="function"){if(q(V))return S(V,W);if(arguments.length===2)throw new s("expected",["Function","RegExp"],V);if(n(W)!=="object"||W===null){var pe=new m({actual:W,expected:V,message:U,operator:"deepStrictEqual",stackStartFn:de});throw pe.operator=de.name,pe}var Re=Object.keys(V);if(V instanceof Error)Re.push("name","message");else if(Re.length===0)throw new u("error",V,"may not be an empty object");return N===void 0&&d(),Re.forEach(function(Z){typeof W[Z]=="string"&&q(V[Z])&&S(V[Z],W[Z])||ae(W,V,Z,U,Re,de)}),!0}return V.prototype!==void 0&&W instanceof V?!0:Error.isPrototypeOf(V)?!1:V.call({},W)===!0}function se(W){if(typeof W!="function")throw new s("fn","Function",W);try{W()}catch(V){return V}return R}function re(W){return D(W)||W!==null&&n(W)==="object"&&typeof W.then=="function"&&typeof W.catch=="function"}function X(W){return Promise.resolve().then(function(){var V;if(typeof W=="function"){if(V=W(),!re(V))throw new f("instance of Promise","promiseFn",V)}else if(re(W))V=W;else throw new s("promiseFn",["Function","Promise"],W);return Promise.resolve().then(function(){return V}).then(function(){return R}).catch(function(U){return U})})}function T(W,V,U,de){if(typeof U=="string"){if(arguments.length===4)throw new s("error",["Object","Error","Function","RegExp"],U);if(n(V)==="object"&&V!==null){if(V.message===U)throw new o("error/message",'The error message "'.concat(V.message,'" is identical to the message.'))}else if(V===U)throw new o("error/message",'The error "'.concat(V,'" is identical to the message.'));de=U,U=void 0}else if(U!=null&&n(U)!=="object"&&typeof U!="function")throw new s("error",["Object","Error","Function","RegExp"],U);if(V===R){var pe="";U&&U.name&&(pe+=" (".concat(U.name,")")),pe+=de?": ".concat(de):".";var Re=W.name==="rejects"?"rejection":"exception";g({actual:void 0,expected:U,operator:W.name,message:"Missing expected ".concat(Re).concat(pe),stackStartFn:W})}if(U&&!ie(V,U,de,W))throw V}function b(W,V,U,de){if(V!==R){if(typeof U=="string"&&(de=U,U=void 0),!U||ie(V,U)){var pe=de?": ".concat(de):".",Re=W.name==="doesNotReject"?"rejection":"exception";g({actual:V,expected:U,operator:W.name,message:"Got unwanted ".concat(Re).concat(pe,` 54`)+'Actual message: "'.concat(V&&V.message,'"'),stackStartFn:W})}throw V}}_.throws=function W(V){for(var U=arguments.length,de=new Array(U>1?U-1:0),pe=1;pe<U;pe++)de[pe-1]=arguments[pe];T.apply(void 0,[W,se(V)].concat(de))},_.rejects=function W(V){for(var U=arguments.length,de=new Array(U>1?U-1:0),pe=1;pe<U;pe++)de[pe-1]=arguments[pe];return X(V).then(function(Re){return T.apply(void 0,[W,Re].concat(de))})},_.doesNotThrow=function W(V){for(var U=arguments.length,de=new Array(U>1?U-1:0),pe=1;pe<U;pe++)de[pe-1]=arguments[pe];b.apply(void 0,[W,se(V)].concat(de))},_.doesNotReject=function W(V){for(var U=arguments.length,de=new Array(U>1?U-1:0),pe=1;pe<U;pe++)de[pe-1]=arguments[pe];return X(V).then(function(Re){return b.apply(void 0,[W,Re].concat(de))})},_.ifError=function W(V){if(V!=null){var U="ifError got unwanted exception: ";n(V)==="object"&&typeof V.message=="string"?V.message.length===0&&V.constructor?U+=V.constructor.name:U+=V.message:U+=x(V);var de=new m({actual:V,expected:null,operator:"ifError",message:U,stackStartFn:W}),pe=V.stack;if(typeof pe=="string"){var Re=pe.split(` 55`);Re.shift();for(var Z=de.stack.split(` 56`),z=0;z<Re.length;z++){var A=Z.indexOf(Re[z]);if(A!==-1){Z=Z.slice(0,A);break}}de.stack="".concat(Z.join(` 57`),` 58`).concat(Re.join(` 59`))}throw de}};function C(W,V,U,de,pe){if(!q(V))throw new s("regexp","RegExp",V);var Re=pe==="match";if(typeof W!="string"||S(V,W)!==Re){if(U instanceof Error)throw U;var Z=!U;U=U||(typeof W!="string"?'The "string" argument must be of type string. Received type '+"".concat(n(W)," (").concat(x(W),")"):(Re?"The input did not match the regular expression ":"The input was expected to not match the regular expression ")+"".concat(x(V),`. Input: 60 61`).concat(x(W),` 62`));var z=new m({actual:W,expected:V,message:U,operator:pe,stackStartFn:de});throw z.generatedMessage=Z,z}}_.match=function W(V,U,de){C(V,U,de,W,"match")},_.doesNotMatch=function W(V,U,de){C(V,U,de,W,"doesNotMatch")};function $(){for(var W=arguments.length,V=new Array(W),U=0;U<W;U++)V[U]=arguments[U];H.apply(void 0,[$,V.length].concat(V))}return _.strict=O($,_,{equal:_.strictEqual,deepEqual:_.deepStrictEqual,notEqual:_.notStrictEqual,notDeepEqual:_.notDeepStrictEqual}),_.strict.strict=_.strict,assert.exports}var zstream,hasRequiredZstream;function requireZstream(){if(hasRequiredZstream)return zstream;hasRequiredZstream=1;function n(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return zstream=n,zstream}var deflate={},common={},hasRequiredCommon;function requireCommon(){return hasRequiredCommon||(hasRequiredCommon=1,function(n){var r=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function t(o,s){return Object.prototype.hasOwnProperty.call(o,s)}n.assign=function(o){for(var s=Array.prototype.slice.call(arguments,1
vendor: 5,558 bytes, line 62
62);s.length;){var u=s.shift();if(u){if(typeof u!="object")throw new TypeError(u+"must be non-object");for(var f in u)t(u,f)&&(o[f]=u[f])}}return o},n.shrinkBuf=function(o,s){return o.length===s?o:o.subarray?o.subarray(0,s):(o.length=s,o)};var e={arraySet:function(o,s,u,f,w){if(s.subarray&&o.subarray){o.set(s.subarray(u,u+f),w);return}for(var m=0;m<f;m++)o[w+m]=s[u+m]},flattenChunks:function(o){var s,u,f,w,m,k;for(f=0,s=0,u=o.length;s<u;s++)f+=o[s].length;for(k=new Uint8Array(f),w=0,s=0,u=o.length;s<u;s++)m=o[s],k.set(m,w),w+=m.length;return k}},a={arraySet:function(o,s,u,f,w){for(var m=0;m<f;m++)o[w+m]=s[u+m]},flattenChunks:function(o){return[].concat.apply([],o)}};n.setTyped=function(o){o?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,e)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,a))},n.setTyped(r)}(common)),common}var trees={},hasRequiredTrees;function requireTrees(){if(hasRequiredTrees)return trees;hasRequiredTrees=1;var n=requireCommon(),r=4,t=0,e=1,a=2;function o(p){for(var ee=p.length;--ee>=0;)p[ee]=0}var s=0,u=1,f=2,w=3,m=258,k=29,x=256,I=x+1+k,D=30,q=19,O=2*I+1,B=15,S=16,N=7,y=256,d=16,h=17,_=18,R=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],g=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],P=512,F=new Array((I+2)*2);o(F);var te=new Array(D*2);o(te);var ae=new Array(P);o(ae);var ie=new Array(m-w+1);o(ie);var se=new Array(k);o(se);var re=new Array(D);o(re);function X(p,ee,Q,le,G){this.static_tree=p,this.extra_bits=ee,this.extra_base=Q,this.elems=le,this.max_length=G,this.has_stree=p&&p.length}var T,b,C;function $(p,ee){this.dyn_tree=p,this.max_code=0,this.stat_desc=ee}function W(p){return p<256?ae[p]:ae[256+(p>>>7)]}function V(p,ee){p.pending_buf[p.pending++]=ee&255,p.pending_buf[p.pending++]=ee>>>8&255}function U(p,ee,Q){p.bi_valid>S-Q?(p.bi_buf|=ee<<p.bi_valid&65535,V(p,p.bi_buf),p.bi_buf=ee>>S-p.bi_valid,p.bi_valid+=Q-S):(p.bi_buf|=ee<<p.bi_valid&65535,p.bi_valid+=Q)}function de(p,ee,Q){U(p,Q[ee*2],Q[ee*2+1])}function pe(p,ee){var Q=0;do Q|=p&1,p>>>=1,Q<<=1;while(--ee>0);return Q>>>1}function Re(p){p.bi_valid===16?(V(p,p.bi_buf),p.bi_buf=0,p.bi_valid=0):p.bi_valid>=8&&(p.pending_buf[p.pending++]=p.bi_buf&255,p.bi_buf>>=8,p.bi_valid-=8)}function Z(p,ee){var Q=ee.dyn_tree,le=ee.max_code,G=ee.stat_desc.static_tree,Y=ee.stat_desc.has_stree,E=ee.stat_desc.extra_bits,ue=ee.stat_desc.extra_base,Pe=ee.stat_desc.max_length,l,_e,Ae,j,fe,ve,Fe=0;for(j=0;j<=B;j++)p.bl_count[j]=0;for(Q[p.heap[p.heap_max]*2+1]=0,l=p.heap_max+1;l<O;l++)_e=p.heap[l],j=Q[Q[_e*2+1]*2+1]+1,j>Pe&&(j=Pe,Fe++),Q[_e*2+1]=j,!(_e>le)&&(p.bl_count[j]++,fe=0,_e>=ue&&(fe=E[_e-ue]),ve=Q[_e*2],p.opt_len+=ve*(j+fe),Y&&(p.static_len+=ve*(G[_e*2+1]+fe)));if(Fe!==0){do{for(j=Pe-1;p.bl_count[j]===0;)j--;p.bl_count[j]--,p.bl_count[j+1]+=2,p.bl_count[Pe]--,Fe-=2}while(Fe>0);for(j=Pe;j!==0;j--)for(_e=p.bl_count[j];_e!==0;)Ae=p.heap[--l],!(Ae>le)&&(Q[Ae*2+1]!==j&&(p.opt_len+=(j-Q[Ae*2+1])*Q[Ae*2],Q[Ae*2+1]=j),_e--)}}function z(p,ee,Q){var le=new Array(B+1),G=0,Y,E;for(Y=1;Y<=B;Y++)le[Y]=G=G+Q[Y-1]<<1;for(E=0;E<=ee;E++){var ue=p[E*2+1];ue!==0&&(p[E*2]=pe(le[ue]++,ue))}}function A(){var p,ee,Q,le,G,Y=new Array(B+1);for(Q=0,le=0;le<k-1;le++)for(se[le]=Q,p=0;p<1<<R[le];p++)ie[Q++]=le;for(ie[Q-1]=le,G=0,le=0;le<16;le++)for(re[le]=G,p=0;p<1<<g[le];p++)ae[G++]=le;for(G>>=7;le<D;le++)for(re[le]=G<<7,p=0;p<1<<g[le]-7;p++)ae[256+G++]=le;for(ee=0;ee<=B;ee++)Y[ee]=0;for(p=0;p<=143;)F[p*2+1]=8,p++,Y[8]++;for(;p<=255;)F[p*2+1]=9,p++,Y[9]++;for(;p<=279;)F[p*2+1]=7,p++,Y[7]++;for(;p<=287;)F[p*2+1]=8,p++,Y[8]++;for(z(F,I+1,Y),p=0;p<D;p++)te[p*2+1]=5,te[p*2]=pe(p,5);T=new X(F,R,x+1,I,B),b=new X(te,g,0,D,B),C=new X(new Array(0),M,0,q,N)}function v(p){var ee;for(ee=0;ee<I;ee++)p.dyn_ltree[ee*2]=0;for(ee=0;ee<D;ee++)p.dyn_dtree[ee*2]=0;for(ee=0;ee<q;ee++)p.bl_tree[ee*2]=0;p.dyn_ltree[y*2]=1,p.opt_len=p.static_len=0,p.last_lit=p.matches=0}function L(p){p.bi_valid>8?V(p,p.bi_buf):p.bi_valid>0&&(p.pending_buf[p.pending++]=p.bi_buf),p.bi_buf=0,p.bi_valid=0}function J(p,ee,Q,le){L(p),V(p,Q),V(p,~Q),n.arraySet(p.pending_buf,p.window,ee,Q,p.pending),p.pending+=Q}function ne(p,ee,Q,le){var G=ee*2,Y=Q*2;return p[G]<p[Y]||p[G]===p[Y]&&le[ee]<=le[Q]}function oe(p,ee,Q){for(var le=p.heap[Q],G=Q<<1;G<=p.heap_len&&(G<p.heap_len&&ne(ee,p.heap[G+1],p.heap[G],p.depth)&&G++,!ne(ee,le,p.heap[G],p.depth));)p.heap[Q]=p.heap[G],Q=G,G<<=1;p.heap[Q]=le}function he(p,ee,Q){var le,G,Y=0,E,ue;if(p.last_lit!==0)do le=p.pending_buf[p.d_buf+Y*2]<<8|p.pending_buf[p.d_buf+Y*2+1],G=p.pending_buf[p.l_buf+Y],Y++,le===0?de(p,G,ee):(E=ie[G],de(p,E+x+1,ee),ue=R[E],ue!==0&&(G-=se[E],U(p,G,ue)),le--,E=W(le),de(p,E,Q),ue=g[E],ue!==0&&(le-=re[E],U(p,le,ue)));while(Y<p.last_lit);de(p,y,ee)}function Te(p,ee){var Q=ee.dyn_tree,le=ee.stat_desc.static_tree,G=ee.stat_desc.has_stree,Y=ee.stat_desc.elems,E,ue,Pe=-1,l;for(p.heap_len=0,p.heap_max=O,E=0;E<Y;E++)Q[E*2]!==0?(p.heap[++p.heap_len]=Pe=E,p.depth[E]=0):Q[E*2+1]=0;for(;p.heap_len<2;)l=p.heap[++p.heap_len]=Pe<2?++Pe:0,Q[l*2]=1,p.depth[l]=0,p.opt_len--,G&&(p.static_len-=le[l*2+1]);for(ee.max_code=Pe,E=p.heap_len>>1;E>=1;E--)oe(p,Q,E);l=Y;do E=p.heap[1],p.heap[1]=p.heap[p.heap_len--],oe(p,Q,1),ue=p.heap[1],p.heap[--p.heap_max]=E,p.heap[--p.heap_max]=ue,Q[l*2]=Q[E*2]+Q[ue*2],p.depth[l]=(p.depth[E]>=p.depth[ue]?p.depth[E]:p.depth[ue])+1,Q[E*2+1]=Q[ue*2+1]=l,p.heap[1]=l++,oe(p,Q,1);while(p.heap_len>=2);p.heap[--p.heap_max]=p.heap[1],Z(p,ee),z(Q,Pe,p.bl_count)}
vendor: 6,648 bytes, line 62
62function ke(p,ee,Q){var le,G=-1,Y,E=ee[0*2+1],ue=0,Pe=7,l=4;for(E===0&&(Pe=138,l=3),ee[(Q+1)*2+1]=65535,le=0;le<=Q;le++)Y=E,E=ee[(le+1)*2+1],!(++ue<Pe&&Y===E)&&(ue<l?p.bl_tree[Y*2]+=ue:Y!==0?(Y!==G&&p.bl_tree[Y*2]++,p.bl_tree[d*2]++):ue<=10?p.bl_tree[h*2]++:p.bl_tree[_*2]++,ue=0,G=Y,E===0?(Pe=138,l=3):Y===E?(Pe=6,l=3):(Pe=7,l=4))}function Ee(p,ee,Q){var le,G=-1,Y,E=ee[0*2+1],ue=0,Pe=7,l=4;for(E===0&&(Pe=138,l=3),le=0;le<=Q;le++)if(Y=E,E=ee[(le+1)*2+1],!(++ue<Pe&&Y===E)){if(ue<l)do de(p,Y,p.bl_tree);while(--ue!==0);else Y!==0?(Y!==G&&(de(p,Y,p.bl_tree),ue--),de(p,d,p.bl_tree),U(p,ue-3,2)):ue<=10?(de(p,h,p.bl_tree),U(p,ue-3,3)):(de(p,_,p.bl_tree),U(p,ue-11,7));ue=0,G=Y,E===0?(Pe=138,l=3):Y===E?(Pe=6,l=3):(Pe=7,l=4)}}function Ie(p){var ee;for(ke(p,p.dyn_ltree,p.l_desc.max_code),ke(p,p.dyn_dtree,p.d_desc.max_code),Te(p,p.bl_desc),ee=q-1;ee>=3&&p.bl_tree[H[ee]*2+1]===0;ee--);return p.opt_len+=3*(ee+1)+5+5+4,ee}function Le(p,ee,Q,le){var G;for(U(p,ee-257,5),U(p,Q-1,5),U(p,le-4,4),G=0;G<le;G++)U(p,p.bl_tree[H[G]*2+1],3);Ee(p,p.dyn_ltree,ee-1),Ee(p,p.dyn_dtree,Q-1)}function ce(p){var ee=4093624447,Q;for(Q=0;Q<=31;Q++,ee>>>=1)if(ee&1&&p.dyn_ltree[Q*2]!==0)return t;if(p.dyn_ltree[9*2]!==0||p.dyn_ltree[10*2]!==0||p.dyn_ltree[13*2]!==0)return e;for(Q=32;Q<x;Q++)if(p.dyn_ltree[Q*2]!==0)return e;return t}var ge=!1;function Ce(p){ge||(A(),ge=!0),p.l_desc=new $(p.dyn_ltree,T),p.d_desc=new $(p.dyn_dtree,b),p.bl_desc=new $(p.bl_tree,C),p.bi_buf=0,p.bi_valid=0,v(p)}function Be(p,ee,Q,le){U(p,(s<<1)+(le?1:0),3),J(p,ee,Q)}function Ne(p){U(p,u<<1,3),de(p,y,F),Re(p)}function ye(p,ee,Q,le){var G,Y,E=0;p.level>0?(p.strm.data_type===a&&(p.strm.data_type=ce(p)),Te(p,p.l_desc),Te(p,p.d_desc),E=Ie(p),G=p.opt_len+3+7>>>3,Y=p.static_len+3+7>>>3,Y<=G&&(G=Y)):G=Y=Q+5,Q+4<=G&&ee!==-1?Be(p,ee,Q,le):p.strategy===r||Y===G?(U(p,(u<<1)+(le?1:0),3),he(p,F,te)):(U(p,(f<<1)+(le?1:0),3),Le(p,p.l_desc.max_code+1,p.d_desc.max_code+1,E+1),he(p,p.dyn_ltree,p.dyn_dtree)),v(p),le&&L(p)}function be(p,ee,Q){return p.pending_buf[p.d_buf+p.last_lit*2]=ee>>>8&255,p.pending_buf[p.d_buf+p.last_lit*2+1]=ee&255,p.pending_buf[p.l_buf+p.last_lit]=Q&255,p.last_lit++,ee===0?p.dyn_ltree[Q*2]++:(p.matches++,ee--,p.dyn_ltree[(ie[Q]+x+1)*2]++,p.dyn_dtree[W(ee)*2]++),p.last_lit===p.lit_bufsize-1}return trees._tr_init=Ce,trees._tr_stored_block=Be,trees._tr_flush_block=ye,trees._tr_tally=be,trees._tr_align=Ne,trees}var adler32_1,hasRequiredAdler32;function requireAdler32(){if(hasRequiredAdler32)return adler32_1;hasRequiredAdler32=1;function n(r,t,e,a){for(var o=r&65535|0,s=r>>>16&65535|0,u=0;e!==0;){u=e>2e3?2e3:e,e-=u;do o=o+t[a++]|0,s=s+o|0;while(--u);o%=65521,s%=65521}return o|s<<16|0}return adler32_1=n,adler32_1}var crc32_1,hasRequiredCrc32;function requireCrc32(){if(hasRequiredCrc32)return crc32_1;hasRequiredCrc32=1;function n(){for(var e,a=[],o=0;o<256;o++){e=o;for(var s=0;s<8;s++)e=e&1?3988292384^e>>>1:e>>>1;a[o]=e}return a}var r=n();function t(e,a,o,s){var u=r,f=s+o;e^=-1;for(var w=s;w<f;w++)e=e>>>8^u[(e^a[w])&255];return e^-1}return crc32_1=t,crc32_1}var messages,hasRequiredMessages;function requireMessages(){return hasRequiredMessages||(hasRequiredMessages=1,messages={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),messages}var hasRequiredDeflate;function requireDeflate(){if(hasRequiredDeflate)return deflate;hasRequiredDeflate=1;var n=requireCommon(),r=requireTrees(),t=requireAdler32(),e=requireCrc32(),a=requireMessages(),o=0,s=1,u=3,f=4,w=5,m=0,k=1,x=-2,I=-3,D=-5,q=-1,O=1,B=2,S=3,N=4,y=0,d=2,h=8,_=9,R=15,g=8,M=29,H=256,P=H+1+M,F=30,te=19,ae=2*P+1,ie=15,se=3,re=258,X=re+se+1,T=32,b=42,C=69,$=73,W=91,V=103,U=113,de=666,pe=1,Re=2,Z=3,z=4,A=3;function v(l,_e){return l.msg=a[_e],_e}function L(l){return(l<<1)-(l>4?9:0)}function J(l){for(var _e=l.length;--_e>=0;)l[_e]=0}function ne(l){var _e=l.state,Ae=_e.pending;Ae>l.avail_out&&(Ae=l.avail_out),Ae!==0&&(n.arraySet(l.output,_e.pending_buf,_e.pending_out,Ae,l.next_out),l.next_out+=Ae,_e.pending_out+=Ae,l.total_out+=Ae,l.avail_out-=Ae,_e.pending-=Ae,_e.pending===0&&(_e.pending_out=0))}function oe(l,_e){r._tr_flush_block(l,l.block_start>=0?l.block_start:-1,l.strstart-l.block_start,_e),l.block_start=l.strstart,ne(l.strm)}function he(l,_e){l.pending_buf[l.pending++]=_e}function Te(l,_e){l.pending_buf[l.pending++]=_e>>>8&255,l.pending_buf[l.pending++]=_e&255}function ke(l,_e,Ae,j){var fe=l.avail_in;return fe>j&&(fe=j),fe===0?0:(l.avail_in-=fe,n.arraySet(_e,l.input,l.next_in,fe,Ae),l.state.wrap===1?l.adler=t(l.adler,_e,fe,Ae):l.state.wrap===2&&(l.adler=e(l.adler,_e,fe,Ae)),l.next_in+=fe,l.total_in+=fe,fe)}function Ee(l,_e){var Ae=l.max_chain_length,j=l.strstart,fe,ve,Fe=l.prev_length,Me=l.nice_match,De=l.strstart>l.w_size-X?l.strstart-(l.w_size-X):0,We=l.window,Xe=l.w_mask,He=l.prev,Ve=l.strstart+re,Ze=We[j+Fe-1],at=We[j+Fe];l.prev_length>=l.good_match&&(Ae>>=2),Me>l.lookahead&&(Me=l.lookahead);do if(fe=_e,!(We[fe+Fe]!==at||We[fe+Fe-1]!==Ze||We[fe]!==We[j]||We[++fe]!==We[j+1])){j+=2,fe++;do;while(We[++j]===We[++fe]&&We[++j]===We[++fe]&&We[++j]===We[++fe]&&We[++j]===We[++fe]&&We[++j]===We[++fe]&&We[++j]===We[++fe]&&We[++j]===We[++fe]&&We[++j]===We[++fe]&&j<Ve);if(ve=re-(Ve-j),j=Ve-re,ve>Fe){if(l.match_start=_e,Fe=ve,ve>=Me)break;Ze=We[j+Fe-1],at=We[j+Fe]}}while((_e=He[_e&Xe])>De&&--Ae!==0);return Fe<=l.lookahead?Fe:l.lookahead}function Ie(l){var _e=l.w_size,Ae,j,fe,ve,Fe;do{if(ve=l.window_size-l.lookahead-l.strstart,l.strstart>=_e+(_e-X)){n.arraySet(l.window,l.window,_e,_e,0),l.match_start-=_e,l.strstart-=_e,l.block_start-=_e,j=l.hash_size,Ae=j;do fe=l.head[--Ae],l.head[Ae]=fe>=_e?fe-_e:0;while(--j);j=_e,Ae=j;do fe=l.prev[--Ae],l.prev[Ae]=fe>=_e?fe-_e:0;while(--j);ve+=_e}if(l.strm.avail_in===0)break;if(j=ke(l.strm,l.window,l.strstart+l.lookahead,ve),l.lookahead+=j,l.lookahead+l.insert>=se)for(Fe=l.strstart-l.insert,l.ins_h=l.window[Fe],l.ins_h=(l.ins_h<<l.hash_shift^l.window[Fe+1])&l.hash_mask;l.insert&&(l.ins_h=(l.ins_h<<l.hash_shift^l.window[Fe+se-1])&l.hash_mask,l.prev[Fe&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=Fe,Fe++,l.insert--,!(l.lookahead+l.insert<se)););}while(l.lookahead<X&&l.strm.avail_in!==0)}function Le(l,_e){var Ae=65535;for(Ae>l.pending_buf_size-5&&(Ae=l.pending_buf_size-5);;){if(l.lookahead<=1){if(Ie(l),l.lookahead===0&&_e===o)return pe;if(l.lookahead===0)break}l.strstart+=l.lookahead,l.lookahead=0;var j=l.block_start+Ae;if((l.strstart===0||l.strstart>=j)&&(l.lookahead=l.strstart-j,l.strstart=j,oe(l,!1),l.strm.avail_out===0)||l.strstart-l.block_start>=l.w_size-X&&(oe(l,!1),l.strm.avail_out===0))return pe}
vendor: 8,089 bytes, line 62
62return l.insert=0,_e===f?(oe(l,!0),l.strm.avail_out===0?Z:z):(l.strstart>l.block_start&&(oe(l,!1),l.strm.avail_out===0),pe)}function ce(l,_e){for(var Ae,j;;){if(l.lookahead<X){if(Ie(l),l.lookahead<X&&_e===o)return pe;if(l.lookahead===0)break}if(Ae=0,l.lookahead>=se&&(l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+se-1])&l.hash_mask,Ae=l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart),Ae!==0&&l.strstart-Ae<=l.w_size-X&&(l.match_length=Ee(l,Ae)),l.match_length>=se)if(j=r._tr_tally(l,l.strstart-l.match_start,l.match_length-se),l.lookahead-=l.match_length,l.match_length<=l.max_lazy_match&&l.lookahead>=se){l.match_length--;do l.strstart++,l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+se-1])&l.hash_mask,Ae=l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart;while(--l.match_length!==0);l.strstart++}else l.strstart+=l.match_length,l.match_length=0,l.ins_h=l.window[l.strstart],l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+1])&l.hash_mask;else j=r._tr_tally(l,0,l.window[l.strstart]),l.lookahead--,l.strstart++;if(j&&(oe(l,!1),l.strm.avail_out===0))return pe}return l.insert=l.strstart<se-1?l.strstart:se-1,_e===f?(oe(l,!0),l.strm.avail_out===0?Z:z):l.last_lit&&(oe(l,!1),l.strm.avail_out===0)?pe:Re}function ge(l,_e){for(var Ae,j,fe;;){if(l.lookahead<X){if(Ie(l),l.lookahead<X&&_e===o)return pe;if(l.lookahead===0)break}if(Ae=0,l.lookahead>=se&&(l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+se-1])&l.hash_mask,Ae=l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart),l.prev_length=l.match_length,l.prev_match=l.match_start,l.match_length=se-1,Ae!==0&&l.prev_length<l.max_lazy_match&&l.strstart-Ae<=l.w_size-X&&(l.match_length=Ee(l,Ae),l.match_length<=5&&(l.strategy===O||l.match_length===se&&l.strstart-l.match_start>4096)&&(l.match_length=se-1)),l.prev_length>=se&&l.match_length<=l.prev_length){fe=l.strstart+l.lookahead-se,j=r._tr_tally(l,l.strstart-1-l.prev_match,l.prev_length-se),l.lookahead-=l.prev_length-1,l.prev_length-=2;do++l.strstart<=fe&&(l.ins_h=(l.ins_h<<l.hash_shift^l.window[l.strstart+se-1])&l.hash_mask,Ae=l.prev[l.strstart&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=l.strstart);while(--l.prev_length!==0);if(l.match_available=0,l.match_length=se-1,l.strstart++,j&&(oe(l,!1),l.strm.avail_out===0))return pe}else if(l.match_available){if(j=r._tr_tally(l,0,l.window[l.strstart-1]),j&&oe(l,!1),l.strstart++,l.lookahead--,l.strm.avail_out===0)return pe}else l.match_available=1,l.strstart++,l.lookahead--}return l.match_available&&(j=r._tr_tally(l,0,l.window[l.strstart-1]),l.match_available=0),l.insert=l.strstart<se-1?l.strstart:se-1,_e===f?(oe(l,!0),l.strm.avail_out===0?Z:z):l.last_lit&&(oe(l,!1),l.strm.avail_out===0)?pe:Re}function Ce(l,_e){for(var Ae,j,fe,ve,Fe=l.window;;){if(l.lookahead<=re){if(Ie(l),l.lookahead<=re&&_e===o)return pe;if(l.lookahead===0)break}if(l.match_length=0,l.lookahead>=se&&l.strstart>0&&(fe=l.strstart-1,j=Fe[fe],j===Fe[++fe]&&j===Fe[++fe]&&j===Fe[++fe])){ve=l.strstart+re;do;while(j===Fe[++fe]&&j===Fe[++fe]&&j===Fe[++fe]&&j===Fe[++fe]&&j===Fe[++fe]&&j===Fe[++fe]&&j===Fe[++fe]&&j===Fe[++fe]&&fe<ve);l.match_length=re-(ve-fe),l.match_length>l.lookahead&&(l.match_length=l.lookahead)}if(l.match_length>=se?(Ae=r._tr_tally(l,1,l.match_length-se),l.lookahead-=l.match_length,l.strstart+=l.match_length,l.match_length=0):(Ae=r._tr_tally(l,0,l.window[l.strstart]),l.lookahead--,l.strstart++),Ae&&(oe(l,!1),l.strm.avail_out===0))return pe}return l.insert=0,_e===f?(oe(l,!0),l.strm.avail_out===0?Z:z):l.last_lit&&(oe(l,!1),l.strm.avail_out===0)?pe:Re}function Be(l,_e){for(var Ae;;){if(l.lookahead===0&&(Ie(l),l.lookahead===0)){if(_e===o)return pe;break}if(l.match_length=0,Ae=r._tr_tally(l,0,l.window[l.strstart]),l.lookahead--,l.strstart++,Ae&&(oe(l,!1),l.strm.avail_out===0))return pe}return l.insert=0,_e===f?(oe(l,!0),l.strm.avail_out===0?Z:z):l.last_lit&&(oe(l,!1),l.strm.avail_out===0)?pe:Re}function Ne(l,_e,Ae,j,fe){this.good_length=l,this.max_lazy=_e,this.nice_length=Ae,this.max_chain=j,this.func=fe}var ye;ye=[new Ne(0,0,0,0,Le),new Ne(4,4,8,4,ce),new Ne(4,5,16,8,ce),new Ne(4,6,32,32,ce),new Ne(4,4,16,16,ge),new Ne(8,16,32,32,ge),new Ne(8,16,128,128,ge),new Ne(8,32,128,256,ge),new Ne(32,128,258,1024,ge),new Ne(32,258,258,4096,ge)];function be(l){l.window_size=2*l.w_size,J(l.head),l.max_lazy_match=ye[l.level].max_lazy,l.good_match=ye[l.level].good_length,l.nice_match=ye[l.level].nice_length,l.max_chain_length=ye[l.level].max_chain,l.strstart=0,l.block_start=0,l.lookahead=0,l.insert=0,l.match_length=l.prev_length=se-1,l.match_available=0,l.ins_h=0}function p(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=h,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new n.Buf16(ae*2),this.dyn_dtree=new n.Buf16((2*F+1)*2),this.bl_tree=new n.Buf16((2*te+1)*2),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new n.Buf16(ie+1),this.heap=new n.Buf16(2*P+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new n.Buf16(2*P+1),J(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ee(l){var _e;return!l||!l.state?v(l,x):(l.total_in=l.total_out=0,l.data_type=d,_e=l.state,_e.pending=0,_e.pending_out=0,_e.wrap<0&&(_e.wrap=-_e.wrap),_e.status=_e.wrap?b:U,l.adler=_e.wrap===2?0:1,_e.last_flush=o,r._tr_init(_e),m)}function Q(l){var _e=ee(l);return _e===m&&be(l.state),_e}function le(l,_e){return!l||!l.state||l.state.wrap!==2?x:(l.state.gzhead=_e,m)}function G(l,_e,Ae,j,fe,ve){if(!l)return x;var Fe=1;if(_e===q&&(_e=6),j<0?(Fe=0,j=-j):j>15&&(Fe=2,j-=16),fe<1||fe>_||Ae!==h||j<8||j>15||_e<0||_e>9||ve<0||ve>N)return v(l,x);j===8&&(j=9);var Me=new p;return l.state=Me,Me.strm=l,Me.wrap=Fe,Me.gzhead=null,Me.w_bits=j,Me.w_size=1<<Me.w_bits,Me.w_mask=Me.w_size-1,Me.hash_bits=fe+7,Me.hash_size=1<<Me.hash_bits,Me.hash_mask=Me.hash_size-1,Me.hash_shift=~~((Me.hash_bits+se-1)/se),Me.window=new n.Buf8(Me.w_size*2),Me.head=new n.Buf16(Me.hash_size),Me.prev=new n.Buf16(Me.w_size),Me.lit_bufsize=1<<fe+6,Me.pending_buf_size=Me.lit_bufsize*4,Me.pending_buf=new n.Buf8(Me.pending_buf_size),Me.d_buf=1*Me.lit_bufsize,Me.l_buf=3*Me.lit_bufsize,Me.level=_e,Me.strategy=ve,Me.method=Ae,Q(l)}function Y(l,_e){return G(l,_e,h,R,g,y)}function E(l,_e){var Ae,j,fe,ve;if(!l||!l.state||_e>w||_e<0)return l?v(l,x):x;if(j=l.state,!l.output||!l.input&&l.avail_in!==0||j.status===de&&_e!==f)return v(l,l.avail_out===0?D:x);if(j.strm=l,Ae=j.last_flush,j.last_flush=_e,j.status===b)if(j.wrap===2)l.adler=0,he(j,31),he(j,139),he(j,8),j.gzhead?(he(j,(j.gzhead.text?1:0)+(j.gzhead.hcrc?2:0)+(j.gzhead.extra?4:0)+(j.gzhead.name?8:0)+(j.gzhead.comment?16:0)),he(j,j.gzhead.time&255),he(j,j.gzhead.time>>8&255),he(j,j.gzhead.time>>16&255),he(j,j.gzhead.time>>24&255),he(j,j.level===9?2:j.strategy>=B||j.level<2?4:0),he(j,j.gzhead.os&255),j.gzhead.extra&&j.gzhead.extra.length&&(he(j,j.gzhead.extra.length&255),he(j,j.gzhead.extra.length>>8&255)),j.gzhead.hcrc&&(l.adler=e(l.adler,j.pending_buf,j.pending,0)),j.gzindex=0,j.status=C):(he(j,0),he(j,0),he(j,0),he(j,0),he(j,0),he(j,j.level===9?2:j.strategy>=B||j.level<2?4:0),he(j,A),j.status=U);else{var Fe=h+(j.w_bits-8<<4)<<8,Me=-1;j.strategy>=B||j.level<2?Me=0:j.level<6?Me=1:j.level===6?Me=2:Me=3,Fe|=Me<<6,j.strstart!==0&&(Fe|=T),Fe+=31-Fe%31,j.status=U,Te(j,Fe),j.strstart!==0&&(Te(j,l.adler>>>16),Te(j,l.adler&65535)),l.adler=1}if(j.status===C)if(j.gzhead.extra){for(fe=j.pending;
vendor: 6,511 bytes, line 62
62j.gzindex<(j.gzhead.extra.length&65535)&&!(j.pending===j.pending_buf_size&&(j.gzhead.hcrc&&j.pending>fe&&(l.adler=e(l.adler,j.pending_buf,j.pending-fe,fe)),ne(l),fe=j.pending,j.pending===j.pending_buf_size));)he(j,j.gzhead.extra[j.gzindex]&255),j.gzindex++;j.gzhead.hcrc&&j.pending>fe&&(l.adler=e(l.adler,j.pending_buf,j.pending-fe,fe)),j.gzindex===j.gzhead.extra.length&&(j.gzindex=0,j.status=$)}else j.status=$;if(j.status===$)if(j.gzhead.name){fe=j.pending;do{if(j.pending===j.pending_buf_size&&(j.gzhead.hcrc&&j.pending>fe&&(l.adler=e(l.adler,j.pending_buf,j.pending-fe,fe)),ne(l),fe=j.pending,j.pending===j.pending_buf_size)){ve=1;break}j.gzindex<j.gzhead.name.length?ve=j.gzhead.name.charCodeAt(j.gzindex++)&255:ve=0,he(j,ve)}while(ve!==0);j.gzhead.hcrc&&j.pending>fe&&(l.adler=e(l.adler,j.pending_buf,j.pending-fe,fe)),ve===0&&(j.gzindex=0,j.status=W)}else j.status=W;if(j.status===W)if(j.gzhead.comment){fe=j.pending;do{if(j.pending===j.pending_buf_size&&(j.gzhead.hcrc&&j.pending>fe&&(l.adler=e(l.adler,j.pending_buf,j.pending-fe,fe)),ne(l),fe=j.pending,j.pending===j.pending_buf_size)){ve=1;break}j.gzindex<j.gzhead.comment.length?ve=j.gzhead.comment.charCodeAt(j.gzindex++)&255:ve=0,he(j,ve)}while(ve!==0);j.gzhead.hcrc&&j.pending>fe&&(l.adler=e(l.adler,j.pending_buf,j.pending-fe,fe)),ve===0&&(j.status=V)}else j.status=V;if(j.status===V&&(j.gzhead.hcrc?(j.pending+2>j.pending_buf_size&&ne(l),j.pending+2<=j.pending_buf_size&&(he(j,l.adler&255),he(j,l.adler>>8&255),l.adler=0,j.status=U)):j.status=U),j.pending!==0){if(ne(l),l.avail_out===0)return j.last_flush=-1,m}else if(l.avail_in===0&&L(_e)<=L(Ae)&&_e!==f)return v(l,D);if(j.status===de&&l.avail_in!==0)return v(l,D);if(l.avail_in!==0||j.lookahead!==0||_e!==o&&j.status!==de){var De=j.strategy===B?Be(j,_e):j.strategy===S?Ce(j,_e):ye[j.level].func(j,_e);if((De===Z||De===z)&&(j.status=de),De===pe||De===Z)return l.avail_out===0&&(j.last_flush=-1),m;if(De===Re&&(_e===s?r._tr_align(j):_e!==w&&(r._tr_stored_block(j,0,0,!1),_e===u&&(J(j.head),j.lookahead===0&&(j.strstart=0,j.block_start=0,j.insert=0))),ne(l),l.avail_out===0))return j.last_flush=-1,m}return _e!==f?m:j.wrap<=0?k:(j.wrap===2?(he(j,l.adler&255),he(j,l.adler>>8&255),he(j,l.adler>>16&255),he(j,l.adler>>24&255),he(j,l.total_in&255),he(j,l.total_in>>8&255),he(j,l.total_in>>16&255),he(j,l.total_in>>24&255)):(Te(j,l.adler>>>16),Te(j,l.adler&65535)),ne(l),j.wrap>0&&(j.wrap=-j.wrap),j.pending!==0?m:k)}function ue(l){var _e;return!l||!l.state?x:(_e=l.state.status,_e!==b&&_e!==C&&_e!==$&&_e!==W&&_e!==V&&_e!==U&&_e!==de?v(l,x):(l.state=null,_e===U?v(l,I):m))}function Pe(l,_e){var Ae=_e.length,j,fe,ve,Fe,Me,De,We,Xe;if(!l||!l.state||(j=l.state,Fe=j.wrap,Fe===2||Fe===1&&j.status!==b||j.lookahead))return x;for(Fe===1&&(l.adler=t(l.adler,_e,Ae,0)),j.wrap=0,Ae>=j.w_size&&(Fe===0&&(J(j.head),j.strstart=0,j.block_start=0,j.insert=0),Xe=new n.Buf8(j.w_size),n.arraySet(Xe,_e,Ae-j.w_size,j.w_size,0),_e=Xe,Ae=j.w_size),Me=l.avail_in,De=l.next_in,We=l.input,l.avail_in=Ae,l.next_in=0,l.input=_e,Ie(j);j.lookahead>=se;){fe=j.strstart,ve=j.lookahead-(se-1);do j.ins_h=(j.ins_h<<j.hash_shift^j.window[fe+se-1])&j.hash_mask,j.prev[fe&j.w_mask]=j.head[j.ins_h],j.head[j.ins_h]=fe,fe++;while(--ve);j.strstart=fe,j.lookahead=se-1,Ie(j)}return j.strstart+=j.lookahead,j.block_start=j.strstart,j.insert=j.lookahead,j.lookahead=0,j.match_length=j.prev_length=se-1,j.match_available=0,l.next_in=De,l.input=We,l.avail_in=Me,j.wrap=Fe,m}return deflate.deflateInit=Y,deflate.deflateInit2=G,deflate.deflateReset=Q,deflate.deflateResetKeep=ee,deflate.deflateSetHeader=le,deflate.deflate=E,deflate.deflateEnd=ue,deflate.deflateSetDictionary=Pe,deflate.deflateInfo="pako deflate (from Nodeca project)",deflate}var inflate={},inffast,hasRequiredInffast;function requireInffast(){if(hasRequiredInffast)return inffast;hasRequiredInffast=1;var n=30,r=12;return inffast=function(e,a){var o,s,u,f,w,m,k,x,I,D,q,O,B,S,N,y,d,h,_,R,g,M,H,P,F;o=e.state,s=e.next_in,P=e.input,u=s+(e.avail_in-5),f=e.next_out,F=e.output,w=f-(a-e.avail_out),m=f+(e.avail_out-257),k=o.dmax,x=o.wsize,I=o.whave,D=o.wnext,q=o.window,O=o.hold,B=o.bits,S=o.lencode,N=o.distcode,y=(1<<o.lenbits)-1,d=(1<<o.distbits)-1;e:do{B<15&&(O+=P[s++]<<B,B+=8,O+=P[s++]<<B,B+=8),h=S[O&y];t:for(;;){if(_=h>>>24,O>>>=_,B-=_,_=h>>>16&255,_===0)F[f++]=h&65535;else if(_&16){R=h&65535,_&=15,_&&(B<_&&(O+=P[s++]<<B,B+=8),R+=O&(1<<_)-1,O>>>=_,B-=_),B<15&&(O+=P[s++]<<B,B+=8,O+=P[s++]<<B,B+=8),h=N[O&d];r:for(;;){if(_=h>>>24,O>>>=_,B-=_,_=h>>>16&255,_&16){if(g=h&65535,_&=15,B<_&&(O+=P[s++]<<B,B+=8,B<_&&(O+=P[s++]<<B,B+=8)),g+=O&(1<<_)-1,g>k){e.msg="invalid distance too far back",o.mode=n;break e}if(O>>>=_,B-=_,_=f-w,g>_){if(_=g-_,_>I&&o.sane){e.msg="invalid distance too far back",o.mode=n;break e}if(M=0,H=q,D===0){if(M+=x-_,_<R){R-=_;do F[f++]=q[M++];while(--_);M=f-g,H=F}}else if(D<_){if(M+=x+D-_,_-=D,_<R){R-=_;do F[f++]=q[M++];while(--_);if(M=0,D<R){_=D,R-=_;do F[f++]=q[M++];while(--_);M=f-g,H=F}}}else if(M+=D-_,_<R){R-=_;do F[f++]=q[M++];while(--_);M=f-g,H=F}for(;R>2;)F[f++]=H[M++],F[f++]=H[M++],F[f++]=H[M++],R-=3;R&&(F[f++]=H[M++],R>1&&(F[f++]=H[M++]))}else{M=f-g;do F[f++]=F[M++],F[f++]=F[M++],F[f++]=F[M++],R-=3;while(R>2);R&&(F[f++]=F[M++],R>1&&(F[f++]=F[M++]))}}else if(_&64){e.msg="invalid distance code",o.mode=n;break e}else{h=N[(h&65535)+(O&(1<<_)-1)];continue r}break}}else if(_&64)if(_&32){o.mode=r;break e}else{e.msg="invalid literal/length code",o.mode=n;break e}else{h=S[(h&65535)+(O&(1<<_)-1)];continue t}break}}while(s<u&&f<m);R=B>>3,s-=R,B-=R<<3,O&=(1<<B)-1,e.next_in=s,e.next_out=f,e.avail_in=s<u?5+(u-s):5-(s-u),e.avail_out=f<m?257+(m-f):257-(f-m),o.hold=O,o.bits=B},inffast}var inftrees,hasRequiredInftrees;function requireInftrees(){if(hasRequiredInftrees)return inftrees;hasRequiredInftrees=1;var n=requireCommon(),r=15,t=852,e=592,a=0,o=1,s=2,u=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],w=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],m=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return inftrees=function(x,I,D,q,O,B,S,N){var y=N.bits,d=0,h=0,_=0,R=0,g=0,M=0,H=0,P=0,F=0,te=0,ae,ie,se,re,X,T=null,b=0,C,$=new n.Buf16(r+1),W=new n.Buf16(r+1),V=null,U=0,de,pe,Re;for(d=0;d<=r;d++)$[d]=0;for(h=0;h<q;h++)$[I[D+h]]++;for(g=y,R=r;R>=1&&$[R]===0;R--);if(g>
vendor: 4,763 bytes, line 62
62R&&(g=R),R===0)return O[B++]=1<<24|64<<16|0,O[B++]=1<<24|64<<16|0,N.bits=1,0;for(_=1;_<R&&$[_]===0;_++);for(g<_&&(g=_),P=1,d=1;d<=r;d++)if(P<<=1,P-=$[d],P<0)return-1;if(P>0&&(x===a||R!==1))return-1;for(W[1]=0,d=1;d<r;d++)W[d+1]=W[d]+$[d];for(h=0;h<q;h++)I[D+h]!==0&&(S[W[I[D+h]]++]=h);if(x===a?(T=V=S,C=19):x===o?(T=u,b-=257,V=f,U-=257,C=256):(T=w,V=m,C=-1),te=0,h=0,d=_,X=B,M=g,H=0,se=-1,F=1<<g,re=F-1,x===o&&F>t||x===s&&F>e)return 1;for(;;){de=d-H,S[h]<C?(pe=0,Re=S[h]):S[h]>C?(pe=V[U+S[h]],Re=T[b+S[h]]):(pe=96,Re=0),ae=1<<d-H,ie=1<<M,_=ie;do ie-=ae,O[X+(te>>H)+ie]=de<<24|pe<<16|Re|0;while(ie!==0);for(ae=1<<d-1;te&ae;)ae>>=1;if(ae!==0?(te&=ae-1,te+=ae):te=0,h++,--$[d]===0){if(d===R)break;d=I[D+S[h]]}if(d>g&&(te&re)!==se){for(H===0&&(H=g),X+=_,M=d-H,P=1<<M;M+H<R&&(P-=$[M+H],!(P<=0));)M++,P<<=1;if(F+=1<<M,x===o&&F>t||x===s&&F>e)return 1;se=te&re,O[se]=g<<24|M<<16|X-B|0}}return te!==0&&(O[X+te]=d-H<<24|64<<16|0),N.bits=g,0},inftrees}var hasRequiredInflate;function requireInflate(){if(hasRequiredInflate)return inflate;hasRequiredInflate=1;var n=requireCommon(),r=requireAdler32(),t=requireCrc32(),e=requireInffast(),a=requireInftrees(),o=0,s=1,u=2,f=4,w=5,m=6,k=0,x=1,I=2,D=-2,q=-3,O=-4,B=-5,S=8,N=1,y=2,d=3,h=4,_=5,R=6,g=7,M=8,H=9,P=10,F=11,te=12,ae=13,ie=14,se=15,re=16,X=17,T=18,b=19,C=20,$=21,W=22,V=23,U=24,de=25,pe=26,Re=27,Z=28,z=29,A=30,v=31,L=32,J=852,ne=592,oe=15,he=oe;function Te(G){return(G>>>24&255)+(G>>>8&65280)+((G&65280)<<8)+((G&255)<<24)}function ke(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Ee(G){var Y;return!G||!G.state?D:(Y=G.state,G.total_in=G.total_out=Y.total=0,G.msg="",Y.wrap&&(G.adler=Y.wrap&1),Y.mode=N,Y.last=0,Y.havedict=0,Y.dmax=32768,Y.head=null,Y.hold=0,Y.bits=0,Y.lencode=Y.lendyn=new n.Buf32(J),Y.distcode=Y.distdyn=new n.Buf32(ne),Y.sane=1,Y.back=-1,k)}function Ie(G){var Y;return!G||!G.state?D:(Y=G.state,Y.wsize=0,Y.whave=0,Y.wnext=0,Ee(G))}function Le(G,Y){var E,ue;return!G||!G.state||(ue=G.state,Y<0?(E=0,Y=-Y):(E=(Y>>4)+1,Y<48&&(Y&=15)),Y&&(Y<8||Y>15))?D:(ue.window!==null&&ue.wbits!==Y&&(ue.window=null),ue.wrap=E,ue.wbits=Y,Ie(G))}function ce(G,Y){var E,ue;return G?(ue=new ke,G.state=ue,ue.window=null,E=Le(G,Y),E!==k&&(G.state=null),E):D}function ge(G){return ce(G,he)}var Ce=!0,Be,Ne;function ye(G){if(Ce){var Y;for(Be=new n.Buf32(512),Ne=new n.Buf32(32),Y=0;Y<144;)G.lens[Y++]=8;for(;Y<256;)G.lens[Y++]=9;for(;Y<280;)G.lens[Y++]=7;for(;Y<288;)G.lens[Y++]=8;for(a(s,G.lens,0,288,Be,0,G.work,{bits:9}),Y=0;Y<32;)G.lens[Y++]=5;a(u,G.lens,0,32,Ne,0,G.work,{bits:5}),Ce=!1}G.lencode=Be,G.lenbits=9,G.distcode=Ne,G.distbits=5}function be(G,Y,E,ue){var Pe,l=G.state;return l.window===null&&(l.wsize=1<<l.wbits,l.wnext=0,l.whave=0,l.window=new n.Buf8(l.wsize)),ue>=l.wsize?(n.arraySet(l.window,Y,E-l.wsize,l.wsize,0),l.wnext=0,l.whave=l.wsize):(Pe=l.wsize-l.wnext,Pe>ue&&(Pe=ue),n.arraySet(l.window,Y,E-ue,Pe,l.wnext),ue-=Pe,ue?(n.arraySet(l.window,Y,E-ue,ue,0),l.wnext=ue,l.whave=l.wsize):(l.wnext+=Pe,l.wnext===l.wsize&&(l.wnext=0),l.whave<l.wsize&&(l.whave+=Pe))),0}function p(G,Y){var E,ue,Pe,l,_e,Ae,j,fe,ve,Fe,Me,De,We,Xe,He=0,Ve,Ze,at,it,_t,Tt,ot,ht,st=new n.Buf8(4),bt,pt,wt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!G||!G.state||!G.output||!G.input&&G.avail_in!==0)return D;E=G.state,E.mode===te&&(E.mode=ae),_e=G.next_out,Pe=G.output,j=G.avail_out,l=G.next_in,ue=G.input,Ae=G.avail_in,fe=E.hold,ve=E.bits,Fe=Ae,Me=j,ht=k;e:for(;;)switch(E.mode){case N:if(E.wrap===0){E.mode=ae;break}for(;ve<16;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}if(E.wrap&2&&fe===35615){E.check=0,st[0]=fe&255,st[1]=fe>>>8&255,E.check=t(E.check,st,2,0),fe=0,ve=0,E.mode=y;break}if(E.flags=0,E.head&&(E.head.done=!1),!(E.wrap&1)||(((fe&255)<<8)+(fe>>8))%31){G.msg="incorrect header check",E.mode=A;break}if((fe&15)!==S){G.msg="unknown compression method",E.mode=A;break}if(fe>>>=4,ve-=4,ot=(fe&15)+8,E.wbits===0)E.wbits=ot;else if(ot>E.wbits){G.msg="invalid window size",E.mode=A;break}E.dmax=1<<ot,G.adler=E.check=1,E.mode=fe&512?P:te,fe=0,ve=0;break;case y:for(;ve<16;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}if(E.flags=fe,(E.flags&255)!==S){G.msg="unknown compression method",E.mode=A;break}if(E.flags&57344){G.msg="unknown header flags set",E.mode=A;break}E.head&&(E.head.text=fe>>8&1),E.flags&512&&(st[0]=fe&255,st[1]=fe>>
vendor: 5,219 bytes, line 62
62>8&255,E.check=t(E.check,st,2,0)),fe=0,ve=0,E.mode=d;case d:for(;ve<32;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}E.head&&(E.head.time=fe),E.flags&512&&(st[0]=fe&255,st[1]=fe>>>8&255,st[2]=fe>>>16&255,st[3]=fe>>>24&255,E.check=t(E.check,st,4,0)),fe=0,ve=0,E.mode=h;case h:for(;ve<16;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}E.head&&(E.head.xflags=fe&255,E.head.os=fe>>8),E.flags&512&&(st[0]=fe&255,st[1]=fe>>>8&255,E.check=t(E.check,st,2,0)),fe=0,ve=0,E.mode=_;case _:if(E.flags&1024){for(;ve<16;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}E.length=fe,E.head&&(E.head.extra_len=fe),E.flags&512&&(st[0]=fe&255,st[1]=fe>>>8&255,E.check=t(E.check,st,2,0)),fe=0,ve=0}else E.head&&(E.head.extra=null);E.mode=R;case R:if(E.flags&1024&&(De=E.length,De>Ae&&(De=Ae),De&&(E.head&&(ot=E.head.extra_len-E.length,E.head.extra||(E.head.extra=new Array(E.head.extra_len)),n.arraySet(E.head.extra,ue,l,De,ot)),E.flags&512&&(E.check=t(E.check,ue,De,l)),Ae-=De,l+=De,E.length-=De),E.length))break e;E.length=0,E.mode=g;case g:if(E.flags&2048){if(Ae===0)break e;De=0;do ot=ue[l+De++],E.head&&ot&&E.length<65536&&(E.head.name+=String.fromCharCode(ot));while(ot&&De<Ae);if(E.flags&512&&(E.check=t(E.check,ue,De,l)),Ae-=De,l+=De,ot)break e}else E.head&&(E.head.name=null);E.length=0,E.mode=M;case M:if(E.flags&4096){if(Ae===0)break e;De=0;do ot=ue[l+De++],E.head&&ot&&E.length<65536&&(E.head.comment+=String.fromCharCode(ot));while(ot&&De<Ae);if(E.flags&512&&(E.check=t(E.check,ue,De,l)),Ae-=De,l+=De,ot)break e}else E.head&&(E.head.comment=null);E.mode=H;case H:if(E.flags&512){for(;ve<16;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}if(fe!==(E.check&65535)){G.msg="header crc mismatch",E.mode=A;break}fe=0,ve=0}E.head&&(E.head.hcrc=E.flags>>9&1,E.head.done=!0),G.adler=E.check=0,E.mode=te;break;case P:for(;ve<32;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}G.adler=E.check=Te(fe),fe=0,ve=0,E.mode=F;case F:if(E.havedict===0)return G.next_out=_e,G.avail_out=j,G.next_in=l,G.avail_in=Ae,E.hold=fe,E.bits=ve,I;G.adler=E.check=1,E.mode=te;case te:if(Y===w||Y===m)break e;case ae:if(E.last){fe>>>=ve&7,ve-=ve&7,E.mode=Re;break}for(;ve<3;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}switch(E.last=fe&1,fe>>>=1,ve-=1,fe&3){case 0:E.mode=ie;break;case 1:if(ye(E),E.mode=C,Y===m){fe>>>=2,ve-=2;break e}break;case 2:E.mode=X;break;case 3:G.msg="invalid block type",E.mode=A}fe>>>=2,ve-=2;break;case ie:for(fe>>>=ve&7,ve-=ve&7;ve<32;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}if((fe&65535)!==(fe>>>16^65535)){G.msg="invalid stored block lengths",E.mode=A;break}if(E.length=fe&65535,fe=0,ve=0,E.mode=se,Y===m)break e;case se:E.mode=re;case re:if(De=E.length,De){if(De>Ae&&(De=Ae),De>j&&(De=j),De===0)break e;n.arraySet(Pe,ue,l,De,_e),Ae-=De,l+=De,j-=De,_e+=De,E.length-=De;break}E.mode=te;break;case X:for(;ve<14;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}if(E.nlen=(fe&31)+257,fe>>>=5,ve-=5,E.ndist=(fe&31)+1,fe>>>=5,ve-=5,E.ncode=(fe&15)+4,fe>>>=4,ve-=4,E.nlen>286||E.ndist>30){G.msg="too many length or distance symbols",E.mode=A;break}E.have=0,E.mode=T;case T:for(;E.have<E.ncode;){for(;ve<3;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}E.lens[wt[E.have++]]=fe&7,fe>>>=3,ve-=3}for(;E.have<19;)E.lens[wt[E.have++]]=0;if(E.lencode=E.lendyn,E.lenbits=7,bt={bits:E.lenbits},ht=a(o,E.lens,0,19,E.lencode,0,E.work,bt),E.lenbits=bt.bits,ht){G.msg="invalid code lengths set",E.mode=A;break}E.have=0,E.mode=b;case b:for(;E.have<E.nlen+E.ndist;){for(;He=E.lencode[fe&(1<<E.lenbits)-1],Ve=He>>>24,Ze=He>>>16&255,at=He&65535,!(Ve<=ve);){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}if(at<16)fe>>>=Ve,ve-=Ve,E.lens[E.have++]=at;else{if(at===16){for(pt=Ve+2;ve<pt;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}if(fe>>>=Ve,ve-=Ve,E.have===0){G.msg="invalid bit length repeat",E.mode=A;break}ot=E.lens[E.have-1],De=3+(fe&3),fe>>>=2,ve-=2}else if(at===17){for(pt=Ve+3;ve<pt;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}fe>>>=Ve,ve-=Ve,ot=0,De=3+(fe&7),fe>>>=3,ve-=3}else{for(pt=Ve+7;ve<pt;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}fe>>>=Ve,ve-=Ve,ot=0,De=11+(fe&127),fe>>>=7,ve-=7}if(E.have+De>E.nlen+E.ndist){G.msg="invalid bit length repeat",E.mode=A;break}for(;De--;)E.lens[E.have++]=ot}}if(E.mode===A)break;if(E.lens[256]===0){G.msg="invalid code -- missing end-of-block",E.mode=A;break}if(E.lenbits=9,bt={bits:E.lenbits},ht=a(s,E.lens,0,E.nlen,E.lencode,0,E.work,bt),E.lenbits=bt.bits,ht){G.msg="invalid literal/lengths set",E.mode=A;break}if(E.distbits=6,E.distcode=E.distdyn,bt={bits:E.distbits},ht=a(u,E.lens,E.nlen,E.ndist,E.distcode,0,E.work,bt),E.distbits=bt.bits,ht){G.msg="invalid distances set",E.mode=A;break}if(E.mode=C,Y===m)break e;case C:E.mode=$;case $:if(Ae>=6&&j>=258){G.next_out=_e,G.avail_out=j,G.next_in=l,G.avail_in=Ae,E.hold=fe,E.bits=ve,e(G,Me),_e=G.next_out,Pe=G.output,j=G.avail_out,l=G.next_in,ue=G.input,Ae=G.avail_in,fe=E.hold,ve=E.bits,E.mode===te&&(E.back=-1);break}for(E.back=0;He=E.lencode[fe&(1<<E.lenbits)-1],Ve=He>>>24,Ze=He>>>16&255,at=He&65535,!(Ve<=ve);){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}if(Ze&&!(Ze&240)){for(it=Ve,_t=Ze,Tt=at;He=E.lencode[Tt+((fe&(1<<it+_t)-1)>>it)],Ve=He>>>24,Ze=He>>>16&255,at=He&65535,!(it+Ve<=ve);){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}fe>>
62>=it,ve-=it,E.back+=it}if(fe>>>=Ve,ve-=Ve,E.back+=Ve,E.length=at,Ze===0){E.mode=pe;break}if(Ze&32){E.back=-1,E.mode=te;break}if(Ze&64){G.msg="invalid literal/length code",E.mode=A;break}E.extra=Ze&15,E.mode=W;case W:if(E.extra){for(pt=E.extra;ve<pt;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}E.length+=fe&(1<<E.extra)-1,fe>>>=E.extra,ve-=E.extra,E.back+=E.extra}E.was=E.length,E.mode=V;case V:for(;He=E.distcode[fe&(1<<E.distbits)-1],Ve=He>>>24,Ze=He>>>16&255,at=He&65535,!(Ve<=ve);){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}if(!(Ze&240)){for(it=Ve,_t=Ze,Tt=at;He=E.distcode[Tt+((fe&(1<<it+_t)-1)>>it)],Ve=He>>>24,Ze=He>>>16&255,at=He&65535,!(it+Ve<=ve);){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}fe>>>=it,ve-=it,E.back+=it}if(fe>>>=Ve,ve-=Ve,E.back+=Ve,Ze&64){G.msg="invalid distance code",E.mode=A;break}E.offset=at,E.extra=Ze&15,E.mode=U;case U:if(E.extra){for(pt=E.extra;ve<pt;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}E.offset+=fe&(1<<E.extra)-1,fe>>>=E.extra,ve-=E.extra,E.back+=E.extra}if(E.offset>E.dmax){G.msg="invalid distance too far back",E.mode=A;break}E.mode=de;case de:if(j===0)break e;if(De=Me-j,E.offset>De){if(De=E.offset-De,De>E.whave&&E.sane){G.msg="invalid distance too far back",E.mode=A;break}De>E.wnext?(De-=E.wnext,We=E.wsize-De):We=E.wnext-De,De>E.length&&(De=E.length),Xe=E.window}else Xe=Pe,We=_e-E.offset,De=E.length;De>j&&(De=j),j-=De,E.length-=De;do Pe[_e++]=Xe[We++];while(--De);E.length===0&&(E.mode=$);break;case pe:if(j===0)break e;Pe[_e++]=E.length,j--,E.mode=$;break;case Re:if(E.wrap){for(;ve<32;){if(Ae===0)break e;Ae--,fe|=ue[l++]<<ve,ve+=8}if(Me-=j,G.total_out+=Me,E.total+=Me,Me&&(G.adler=E.check=E.flags?t(E.check,Pe,Me,_e-Me):r(E.check,Pe,Me,_e-Me)),Me=j,(E.flags?fe:Te(fe))!==E.check){G.msg="incorrect data check",E.mode=A;break}fe=0,ve=0}E.mode=Z;case Z:if(E.wrap&&E.flags){for(;ve<32;){if(Ae===0)break e;Ae--,fe+=ue[l++]<<ve,ve+=8}if(fe!==(E.total&4294967295)){G.msg="incorrect length check",E.mode=A;break}fe=0,ve=0}E.mode=z;case z:ht=x;break e;case A:ht=q;break e;case v:return O;case L:default:return D}return G.next_out=_e,G.avail_out=j,G.next_in=l,G.avail_in=Ae,E.hold=fe,E.bits=ve,(E.wsize||Me!==G.avail_out&&E.mode<A&&(E.mode<Re||Y!==f))&&be(G,G.output,G.next_out,Me-G.avail_out),Fe-=G.avail_in,Me-=G.avail_out,G.total_in+=Fe,G.total_out+=Me,E.total+=Me,E.wrap&&Me&&(G.adler=E.check=E.flags?t(E.check,Pe,Me,G.next_out-Me):r(E.check,Pe,Me,G.next_out-Me)),G.data_type=E.bits+(E.last?64:0)+(E.mode===te?128:0)+(E.mode===C||E.mode===se?256:0),(Fe===0&&Me===0||Y===f)&&ht===k&&(ht=B),ht}function ee(G){if(!G||!G.state)return D;var Y=G.state;return Y.window&&(Y.window=null),G.state=null,k}function Q(G,Y){var E;return!G||!G.state||(E=G.state,!(E.wrap&2))?D:(E.head=Y,Y.done=!1,k)}function le(G,Y){var E=Y.length,ue,Pe,l;return!G||!G.state||(ue=G.state,ue.wrap!==0&&ue.mode!==F)?D:ue.mode===F&&(Pe=1,Pe=r(Pe,Y,E,0),Pe!==ue.check)?q:(l=be(G,Y,E,E),l?(ue.mode=v,O):(ue.havedict=1,k))}return inflate.inflateReset=Ie,inflate.inflateReset2=Le,inflate.inflateResetKeep=Ee,inflate.inflateInit=ge,inflate.inflateInit2=ce,inflate.inflate=p,inflate.inflateEnd=ee,inflate.inflateGetHeader=Q,inflate.inflateSetDictionary=le,inflate.inflateInfo="pako inflate (from Nodeca project)",inflate}var constants,hasRequiredConstants;function requireConstants(){return hasRequiredConstants||(hasRequiredConstants=1,constants={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),constants}var hasRequiredBinding;function requireBinding(){return hasRequiredBinding||(hasRequiredBinding=1,function(n){var r=requireAssert(),t=requireZstream(),e=requireDeflate(),a=requireInflate(),o=requireConstants();for(var s in o)n[s]=o[s];n.NONE=0,n.DEFLATE=1,n.INFLATE=2,n.GZIP=3,n.GUNZIP=4,n.DEFLATERAW=5,n.INFLATERAW=6,n.UNZIP=7;var u=31,f=139;function w(m){if(typeof m!="number"||m<n.DEFLATE||m>n.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=m,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}w.prototype.close=function(){if(this.write_in_progress){this.pending_close=!0;return}this.pending_close=!1,r(this.init_done,"close before init"),r(this.mode<=n.UNZIP),this.mode===n.DEFLATE||this.mode===n.GZIP||this.mode===n.DEFLATERAW?e.deflateEnd(this.strm):(this.mode===n.INFLATE||this.mode===n.GUNZIP||this.mode===n.INFLATERAW||this.mode===n.UNZIP)&&a.inflateEnd(this.strm),this.mode=n.NONE,this.dictionary=null},w.prototype.write=function(m,k,x,I,D,q,O){return this._write(!0,m,k,x,I,D,q,O)},w.prototype.writeSync=function(m,k,x,I,D,q,O){return this._write(!1,m,k,x,I,D,q,O)},w.prototype._write=function(m,k,x,I,D,q,O,B){if(r.equal(arguments.length,8),r(this.init_done,"write before init"),r(this.mode!==n.NONE,"already finalized"),r.equal(!1,this.write_in_progress,"write already in progress"),r.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,r.equal(!1,k===void 0,"must provide flush value"),this.write_in_progress=!0,k!==n.Z_NO_FLUSH&&k!==n.Z_PARTIAL_FLUSH&&k!==n.Z_SYNC_FLUSH&&k!==n.Z_FULL_FLUSH&&k!==n.Z_FINISH&&k!==n.Z_BLOCK)throw new Error("Invalid flush value");if(x==null&&(x=buffer.Buffer.alloc(0),D=0,I=0),this.strm.avail_in=D,this.strm.input=x,this.strm.next_in=I,this.strm.avail_out=B,this.strm.output=q,this.strm.next_out=O,this.flush=k,!m)return this._process(),this._checkError()?this._afterSync():void 0;var S=this;return api$1.nextTick(function(){S._process(),S._after()}),this},w.prototype._afterSync=function(){var m=this.strm.avail_out,k=this.strm.avail_in;return this.write_in_progress=!1,[k,m]},w.prototype._process=function(){var m=null;switch(this.mode){case n.DEFLATE:case n.GZIP:case n.DEFLATERAW:this.err=e.deflate(this.strm,this.flush);break;case n.UNZIP:switch(this.strm.avail_in>0&&(m=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(m===null)break;
62if(this.strm.input[m]===u){if(this.gzip_id_bytes_read=1,m++,this.strm.avail_in===1)break}else{this.mode=n.INFLATE;break}case 1:if(m===null)break;this.strm.input[m]===f?(this.gzip_id_bytes_read=2,this.mode=n.GUNZIP):this.mode=n.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case n.INFLATE:case n.GUNZIP:case n.INFLATERAW:for(this.err=a.inflate(this.strm,this.flush),this.err===n.Z_NEED_DICT&&this.dictionary&&(this.err=a.inflateSetDictionary(this.strm,this.dictionary),this.err===n.Z_OK?this.err=a.inflate(this.strm,this.flush):this.err===n.Z_DATA_ERROR&&(this.err=n.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===n.GUNZIP&&this.err===n.Z_STREAM_END&&this.strm.next_in[0]!==0;)this.reset(),this.err=a.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},w.prototype._checkError=function(){switch(this.err){case n.Z_OK:case n.Z_BUF_ERROR:if(this.strm.avail_out!==0&&this.flush===n.Z_FINISH)return this._error("unexpected end of file"),!1;break;case n.Z_STREAM_END:break;case n.Z_NEED_DICT:return this.dictionary==null?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},w.prototype._after=function(){if(this._checkError()){var m=this.strm.avail_out,k=this.strm.avail_in;this.write_in_progress=!1,this.callback(k,m),this.pending_close&&this.close()}},w.prototype._error=function(m){this.strm.msg&&(m=this.strm.msg),this.onerror(m,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},w.prototype.init=function(m,k,x,I,D){r(arguments.length===4||arguments.length===5,"init(windowBits, level, memLevel, strategy, [dictionary])"),r(m>=8&&m<=15,"invalid windowBits"),r(k>=-1&&k<=9,"invalid compression level"),r(x>=1&&x<=9,"invalid memlevel"),r(I===n.Z_FILTERED||I===n.Z_HUFFMAN_ONLY||I===n.Z_RLE||I===n.Z_FIXED||I===n.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(k,m,x,I,D),this._setDictionary()},w.prototype.params=function(){throw new Error("deflateParams Not supported")},w.prototype.reset=function(){this._reset(),this._setDictionary()},w.prototype._init=function(m,k,x,I,D){switch(this.level=m,this.windowBits=k,this.memLevel=x,this.strategy=I,this.flush=n.Z_NO_FLUSH,this.err=n.Z_OK,(this.mode===n.GZIP||this.mode===n.GUNZIP)&&(this.windowBits+=16),this.mode===n.UNZIP&&(this.windowBits+=32),(this.mode===n.DEFLATERAW||this.mode===n.INFLATERAW)&&(this.windowBits=-1*this.windowBits),this.strm=new t,this.mode){case n.DEFLATE:case n.GZIP:case n.DEFLATERAW:this.err=e.deflateInit2(this.strm,this.level,n.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case n.INFLATE:case n.GUNZIP:case n.INFLATERAW:case n.UNZIP:this.err=a.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==n.Z_OK&&this._error("Init error"),this.dictionary=D,this.write_in_progress=!1,this.init_done=!0},w.prototype._setDictionary=function(){if(this.dictionary!=null){switch(this.err=n.Z_OK,this.mode){case n.DEFLATE:case n.DEFLATERAW:this.err=e.deflateSetDictionary(this.strm,this.dictionary);break}this.err!==n.Z_OK&&this._error("Failed to set dictionary")}},w.prototype._reset=function(){switch(this.err=n.Z_OK,this.mode){case n.DEFLATE:case n.DEFLATERAW:case n.GZIP:this.err=e.deflateReset(this.strm);break;case n.INFLATE:case n.INFLATERAW:case n.GUNZIP:this.err=a.inflateReset(this.strm);break}this.err!==n.Z_OK&&this._error("Failed to reset stream")},n.Zlib=w}(binding)),binding}var hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,function(n){var r=buffer.Buffer,t=streamBrowserify.Transform,e=requireBinding(),a=requireUtil(),o=requireAssert().ok,s=buffer.kMaxLength,u="Cannot create final Buffer. It would be larger than 0x"+s.toString(16)+" bytes";e.Z_MIN_WINDOWBITS=8,e.Z_MAX_WINDOWBITS=15,e.Z_DEFAULT_WINDOWBITS=15,e.Z_MIN_CHUNK=64,e.Z_MAX_CHUNK=1/0,e.Z_DEFAULT_CHUNK=16*1024,e.Z_MIN_MEMLEVEL=1,e.Z_MAX_MEMLEVEL=9,e.Z_DEFAULT_MEMLEVEL=8,e.Z_MIN_LEVEL=-1,e.Z_MAX_LEVEL=9,e.Z_DEFAULT_LEVEL=e.Z_DEFAULT_COMPRESSION;for(var f=Object.keys(e),w=0;w<f.length;w++){var m=f[w];m.match(/^Z/)&&Object.defineProperty(n,m,{enumerable:!0,value:e[m],writable:!1})}for(var k={Z_OK:e.Z_OK,Z_STREAM_END:e.Z_STREAM_END,Z_NEED_DICT:e.Z_NEED_DICT,Z_ERRNO:e.Z_ERRNO,Z_STREAM_ERROR:e.Z_STREAM_ERROR,Z_DATA_ERROR:e.Z_DATA_ERROR,Z_MEM_ERROR:e.Z_MEM_ERROR,Z_BUF_ER
62ROR:e.Z_BUF_ERROR,Z_VERSION_ERROR:e.Z_VERSION_ERROR},x=Object.keys(k),I=0;I<x.length;I++){var D=x[I];k[k[D]]=D}Object.defineProperty(n,"codes",{enumerable:!0,value:Object.freeze(k),writable:!1}),n.Deflate=B,n.Inflate=S,n.Gzip=N,n.Gunzip=y,n.DeflateRaw=d,n.InflateRaw=h,n.Unzip=_,n.createDeflate=function(P){return new B(P)},n.createInflate=function(P){return new S(P)},n.createDeflateRaw=function(P){return new d(P)},n.createInflateRaw=function(P){return new h(P)},n.createGzip=function(P){return new N(P)},n.createGunzip=function(P){return new y(P)},n.createUnzip=function(P){return new _(P)},n.deflate=function(P,F,te){return typeof F=="function"&&(te=F,F={}),q(new B(F),P,te)},n.deflateSync=function(P,F){return O(new B(F),P)},n.gzip=function(P,F,te){return typeof F=="function"&&(te=F,F={}),q(new N(F),P,te)},n.gzipSync=function(P,F){return O(new N(F),P)},n.deflateRaw=function(P,F,te){return typeof F=="function"&&(te=F,F={}),q(new d(F),P,te)},n.deflateRawSync=function(P,F){return O(new d(F),P)},n.unzip=function(P,F,te){return typeof F=="function"&&(te=F,F={}),q(new _(F),P,te)},n.unzipSync=function(P,F){return O(new _(F),P)},n.inflate=function(P,F,te){return typeof F=="function"&&(te=F,F={}),q(new S(F),P,te)},n.inflateSync=function(P,F){return O(new S(F),P)},n.gunzip=function(P,F,te){return typeof F=="function"&&(te=F,F={}),q(new y(F),P,te)},n.gunzipSync=function(P,F){return O(new y(F),P)},n.inflateRaw=function(P,F,te){return typeof F=="function"&&(te=F,F={}),q(new h(F),P,te)},n.inflateRawSync=function(P,F){return O(new h(F),P)};function q(P,F,te){var ae=[],ie=0;P.on("error",re),P.on("end",X),P.end(F),se();function se(){for(var T;(T=P.read())!==null;)ae.push(T),ie+=T.length;P.once("readable",se)}function re(T){P.removeListener("end",X),P.removeListener("readable",se),te(T)}function X(){var T,b=null;ie>=s?b=new RangeError(u):T=r.concat(ae,ie),ae=[],P.close(),te(b,T)}}function O(P,F){if(typeof F=="string"&&(F=r.from(F)),!r.isBuffer(F))throw new TypeError("Not a string or buffer");var te=P._finishFlushFlag;return P._processChunk(F,te)}function B(P){if(!(this instanceof B))return new B(P);g.call(this,P,e.DEFLATE)}function S(P){if(!(this instanceof S))return new S(P);g.call(this,P,e.INFLATE)}function N(P){if(!(this instanceof N))return new N(P);g.call(this,P,e.GZIP)}function y(P){if(!(this instanceof y))return new y(P);g.call(this,P,e.GUNZIP)}function d(P){if(!(this instanceof d))return new d(P);g.call(this,P,e.DEFLATERAW)}function h(P){if(!(this instanceof h))return new h(P);g.call(this,P,e.INFLATERAW)}function _(P){if(!(this instanceof _))return new _(P);g.call(this,P,e.UNZIP)}function R(P){return P===e.Z_NO_FLUSH||P===e.Z_PARTIAL_FLUSH||P===e.Z_SYNC_FLUSH||P===e.Z_FULL_FLUSH||P===e.Z_FINISH||P===e.Z_BLOCK}function g(P,F){var te=this;if(this._opts=P=P||{},this._chunkSize=P.chunkSize||n.Z_DEFAULT_CHUNK,t.call(this,P),P.flush&&!R(P.flush))throw new Error("Invalid flush flag: "+P.flush);if(P.finishFlush&&!R(P.finishFlush))throw new Error("Invalid flush flag: "+P.finishFlush);if(this._flushFlag=P.flush||e.Z_NO_FLUSH,this._finishFlushFlag=typeof P.finishFlush<"u"?P.finishFlush:e.Z_FINISH,P.chunkSize&&(P.chunkSize<n.Z_MIN_CHUNK||P.chunkSize>n.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+P.chunkSize);if(P.windowBits&&(P.windowBits<n.Z_MIN_WINDOWBITS||P.windowBits>n.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+P.windowBits);if(P.level&&(P.level<n.Z_MIN_LEVEL||P.level>n.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+P.level);if(P.memLevel&&(P.memLevel<n.Z_MIN_MEMLEVEL||P.memLevel>n.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+P.memLevel);if(P.strategy&&P.strategy!=n.Z_FILTERED&&P.strategy!=n.Z_HUFFMAN_ONLY&&P.strategy!=n.Z_RLE&&P.strategy!=n.Z_FIXED&&P.strategy!=n.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+P.strategy);if(P.dictionary&&!r.isBuffer(P.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new e.Zlib(F);var ae=this;this._hadError=!1,this._handle.onerror=function(re,X){M(ae),ae._hadError=!0;var T=new Error(re);T.errno=X,T.code=n.codes[X],ae.emit("error",T)};var ie=n.Z_DEFAULT_COMPRESSION;typeof P.level=="number"&&(ie=P.level);var se=n.Z_DEFAULT_STRATEGY;typeof P.strategy=="number"&&(se=P.strategy),this._handle.init(P.windowBits||n.Z_DEFAULT_WINDOWBITS,ie,P.memLevel||n.Z_DEFAULT_MEMLEVEL,se,P.dictionary),this._buffer=r.allocUnsafe(this._chunkSize),this._offset=0,this._level=ie,this._strategy=se,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!te._handle},configurable:!0,enumerable:!0})}a.inherits(g,t),g.prototype.params=function(P,F,te){if(P<n.Z_MIN_LEVEL||P>n.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+P);if(F!=n.Z_FILTERED&&F!=n.Z_HUFFMAN_ONLY&&F!=n.Z_RLE&&F!=n.Z_FIXED&&F!=n.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+F);if(this._level!==P||this._strategy!==F){var ae=this;this.flush(e.Z_SYNC_FLUSH,function(){o(ae._handle,"zlib binding closed"),ae._handle.params(P,F),ae._hadError||(ae._level=P,ae._strategy=F,te&&te())})}else api$1.nextTick(te)},g.prototype.reset=function(){return o(this._handle,"zlib binding closed"),this._handle.reset()},g.prototype._flush=function(P){this._transform(r.alloc(0),"",P)},g.prototype.flush=function(P,F){var te=this,ae=this._writableState;(typeof P=="function"||P===void 0&&!F)&&(F=P,P=e.Z_FULL_FLUSH),ae.ended?F&&api$1.nextTick(F):ae.ending?F&&this.once("end",F):ae.needDrain?F&&this.once("drain",function(){return te.flush(P,F)}):(this._flushFlag=P,this.write(r.alloc(0),"",F))},g.prototype.close=function(P){M(this,P),api$1.nextTick(H,this)};function M(P,F){F&&api$1.nextTick(F),P._handle&&(P._handle.close(),P._handle=null)}function H(P){P.emit("close")}g.prototype._transform=function(P,F,te){var ae,ie=this._writableState,se=ie.ending||ie.ended,re=se&&(!P||ie.length===P.length);if(P!==null&&!r.isBuffer(P))return te(new Error("invalid input"));if(!this._handle)return te(new Error("zlib binding closed"));re?ae=this._finishFlushFlag:(ae=this._flushFlag,P.length>=ie.length&&(this._flushFlag=this._opts.flush||e.Z_NO_FLUSH)),this._processChunk(P,ae,te)},g.prototype._processChunk=function(P,F,te){var ae=P&&P.length,ie=this._chunkSize-this._offset,se=0,re=this,X=typeof te=="function";if(!X){var T=[],b=0,C;this.on("error",function(de){C=de}),o(this._handle,"zlib binding closed");do var $=this._handle.writeSync(F,P,se,ae,this._buffer,this._offset,ie);while(!this._hadError&&U($[0],$[1]));if(this._hadError)throw C;if(b>=s)throw M(this),new RangeError(u);var W=r.concat(T,b);return M(this),W}o(this._handle,"zlib binding closed");var V=this._handle.write(F,P,se,ae,this._buffer,this._offset,ie);V.buffer=P,V.callback=U;function U(de,pe){if(this&&(this.buffer=null,this.callback=null),!re._hadError){var Re=ie-pe;if(o(Re>=0,"have should not go down"),Re>0){var Z=re._buffer.slice(re._offset,re._offset+Re);re._offset+=Re,X?re.push(Z):(T.push(Z),b+=Z.length)}if((pe===0||re._offset>=re._chunkSize)&&(ie=re._chunkSize,re._offset=0,re._buffer=r.allocUnsafe(re._chunkSize)),pe
62===0){if(se+=ae-de,ae=de,!X)return!0;var z=re._handle.write(F,P,se,ae,re._buffer,re._offset,re._chunkSize);z.callback=U,z.buffer=P;return}if(!X)return!1;te()}}},a.inherits(B,g),a.inherits(S,g),a.inherits(N,g),a.inherits(y,g),a.inherits(d,g),a.inherits(h,g),a.inherits(_,g)}(lib$1)),lib$1}var streamHttp={},request={exports:{}},capability={},hasRequiredCapability;function requireCapability(){return hasRequiredCapability||(hasRequiredCapability=1,function(n){n.fetch=a(commonjsGlobal.fetch)&&a(commonjsGlobal.ReadableStream),n.writableStream=a(commonjsGlobal.WritableStream),n.abortController=a(commonjsGlobal.AbortController);var r;function t(){if(r!==void 0)return r;if(commonjsGlobal.XMLHttpRequest){r=new commonjsGlobal.XMLHttpRequest;try{r.open("GET",commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{r=null}}else r=null;return r}function e(o){var s=t();if(!s)return!1;try{return s.responseType=o,s.responseType===o}catch{}return!1}n.arraybuffer=n.fetch||e("arraybuffer"),n.msstream=!n.fetch&&e("ms-stream"),n.mozchunkedarraybuffer=!n.fetch&&e("moz-chunked-arraybuffer"),n.overrideMimeType=n.fetch||(t()?a(t().overrideMimeType):!1);function a(o){return typeof o=="function"}r=null}(capability)),capability}var response={},readableBrowser={exports:{}},hasRequiredReadableBrowser;function requireReadableBrowser(){return hasRequiredReadableBrowser||(hasRequiredReadableBrowser=1,function(n,r){r=n.exports=require_stream_readable(),r.Stream=r,r.Readable=r,r.Writable=require_stream_writable(),r.Duplex=require_stream_duplex(),r.Transform=require_stream_transform(),r.PassThrough=require_stream_passthrough(),r.finished=requireEndOfStream(),r.pipeline=requirePipeline()}(readableBrowser,readableBrowser.exports)),readableBrowser.exports}var hasRequiredResponse;function requireResponse(){if(hasRequiredResponse)return response;hasRequiredResponse=1;var n=requireCapability(),r=requireInherits_browser(),t=requireReadableBrowser(),e=response.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},a=response.IncomingMessage=function(o,s,u,f){var w=this;if(t.Readable.call(w),w._mode=u,w.headers={},w.rawHeaders=[],w.trailers={},w.rawTrailers=[],w.on("end",function(){api$1.nextTick(function(){w.emit("close")})}),u==="fetch"){let q=function(){k.read().then(function(O){if(!w._destroyed){if(f(O.done),O.done){w.push(null);return}w.push(buffer.Buffer.from(O.value)),q()}}).catch(function(O){f(!0),w._destroyed||w.emit("error",O)})};if(w._fetchResponse=s,w.url=s.url,w.statusCode=s.status,w.statusMessage=s.statusText,s.headers.forEach(function(O,B){w.headers[B.toLowerCase()]=O,w.rawHeaders.push(B,O)}),n.writableStream){var m=new WritableStream({write:function(O){return f(!1),new Promise(function(B,S){w._destroyed?S():w.push(buffer.Buffer.from(O))?B():w._resumeFetch=B})},close:function(){f(!0),w._destroyed||w.push(null)},abort:function(O){f(!0),w._destroyed||w.emit("error",O)}});try{s.body.pipeTo(m).catch(function(O){f(!0),w._destroyed||w.emit("error",O)});return}catch{}}var k=s.body.getReader();q()}else{w._xhr=o,w._pos=0,w.url=o.responseURL,w.statusCode=o.status,w.statusMessage=o.statusText;var x=o.getAllResponseHeaders().split(/\r?\n/);if(x.forEach(function(q){var O=q.match(/^([^:]+):\s*(.*)/);if(O){var B=O[1].toLowerCase();B==="set-cookie"?(w.headers[B]===void 0&&(w.headers[B]=[]),w.headers[B].push(O[2])):w.headers[B]!==void 0?w.headers[B]+=", "+O[2]:w.headers[B]=O[2],w.rawHeaders.push(O[1],O[2])}}),w._charset="x-user-defined",!n.overrideMimeType){var I=w.rawHeaders["mime-type"];if(I){var D=I.match(/;\s*charset=([^;])(;|$)/);D&&(w._charset=D[1].toLowerCase())}w._charset||(w._charset="utf-8")}}};return r(a,t.Readable),a.prototype._read=function(){var o=this,s=o._resumeFetch;s&&(o._resumeFetch=null,s())},a.prototype._onXHRProgress=function(o){var s=this,u=s._xhr,f=null;switch(s._mode){case"text":if(f=u.responseText,f.length>s._pos){var w=f.substr(s._pos);if(s._charset==="x-user-defined"){for(var m=buffer.Buffer.alloc(w.length),k=0;k<w.length;k++)m[k]=w.charCodeAt(k)&255;s.push(m)}else s.push(w,s._charset);s._pos=f.length}break;case"arraybuffer":if(u.readyState!==e.DONE||!u.response)break;f=u.response,s.push(buffer.Buffer.from(new Uint8Array(f)));break;case"moz-chunked-arraybuffer":if(f=u.response,u.readyState!==e.LOADING||!f)break;s.push(buffer.Buffer.from(new Uint8Array(f)));break;case"ms-stream":if(f=u.response,u.readyState!==e.LOADING)break;var x=new commonjsGlobal.MSStreamReader;x.onprogress=function(){x.result.byteLength>s._pos&&(s.push(buffer.Buffer.from(new Uint8Array(x.result.slice(s._pos)))),s._pos=x.result.byteLength)},x.onload=function(){o(!0),s.push(null)},x.readAsArrayBuffer(f);break}s._xhr.readyState===e.DONE&&s._mode!=="ms-stream"&&(o(!0),s.push(null))},response}var hasRequiredRequest;function requireRequest(){if(hasRequiredRequest)return request.exports;hasRequiredRequest=1;var n=requireCapability(),r=requireInherits_browser(),t=requireResponse(),e=requireReadableBrowser(),a=t.IncomingMessage,o=t.readyStates;function s(m,k){return n.fetch&&k?"fetch":n.mozchunkedarraybuffer?"moz-chunked-arraybuffer":n.msstream?"ms-stream":n.arraybuffer&&m?"arraybuffer":"text"}var u=request.exports=function(m){var k=this;e.Writable.call(k),k._opts=m,k._body=[],k._headers={},m.auth&&k.setHeader("Authorization","Basic "+buffer.Buffer.from(m.auth).toString("base64")),Object.keys(m.headers).forEac
62h(function(D){k.setHeader(D,m.headers[D])});var x,I=!0;if(m.mode==="disable-fetch"||"requestTimeout"in m&&!n.abortController)I=!1,x=!0;else if(m.mode==="prefer-streaming")x=!1;else if(m.mode==="allow-wrong-content-type")x=!n.overrideMimeType;else if(!m.mode||m.mode==="default"||m.mode==="prefer-fast")x=!0;else throw new Error("Invalid value for opts.mode");k._mode=s(x,I),k._fetchTimer=null,k._socketTimeout=null,k._socketTimer=null,k.on("finish",function(){k._onFinish()})};r(u,e.Writable),u.prototype.setHeader=function(m,k){var x=this,I=m.toLowerCase();w.indexOf(I)===-1&&(x._headers[I]={name:m,value:k})},u.prototype.getHeader=function(m){var k=this._headers[m.toLowerCase()];return k?k.value:null},u.prototype.removeHeader=function(m){var k=this;delete k._headers[m.toLowerCase()]},u.prototype._onFinish=function(){var m=this;if(!m._destroyed){var k=m._opts;"timeout"in k&&k.timeout!==0&&m.setTimeout(k.timeout);var x=m._headers,I=null;k.method!=="GET"&&k.method!=="HEAD"&&(I=new Blob(m._body,{type:(x["content-type"]||{}).value||""}));var D=[];if(Object.keys(x).forEach(function(S){var N=x[S].name,y=x[S].value;Array.isArray(y)?y.forEach(function(d){D.push([N,d])}):D.push([N,y])}),m._mode==="fetch"){var q=null;if(n.abortController){var O=new AbortController;q=O.signal,m._fetchAbortController=O,"requestTimeout"in k&&k.requestTimeout!==0&&(m._fetchTimer=commonjsGlobal.setTimeout(function(){m.emit("requestTimeout"),m._fetchAbortController&&m._fetchAbortController.abort()},k.requestTimeout))}commonjsGlobal.fetch(m._opts.url,{method:m._opts.method,headers:D,body:I||void 0,mode:"cors",credentials:k.withCredentials?"include":"same-origin",signal:q}).then(function(S){m._fetchResponse=S,m._resetTimers(!1),m._connect()},function(S){m._resetTimers(!0),m._destroyed||m.emit("error",S)})}else{var B=m._xhr=new commonjsGlobal.XMLHttpRequest;try{B.open(m._opts.method,m._opts.url,!0)}catch(S){api$1.nextTick(function(){m.emit("error",S)});return}"responseType"in B&&(B.responseType=m._mode),"withCredentials"in B&&(B.withCredentials=!!k.withCredentials),m._mode==="text"&&"overrideMimeType"in B&&B.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in k&&(B.timeout=k.requestTimeout,B.ontimeout=function(){m.emit("requestTimeout")}),D.forEach(function(S){B.setRequestHeader(S[0],S[1])}),m._response=null,B.onreadystatechange=function(){switch(B.readyState){case o.LOADING:case o.DONE:m._onXHRProgress();break}},m._mode==="moz-chunked-arraybuffer"&&(B.onprogress=function(){m._onXHRProgress()}),B.onerror=function(){m._destroyed||(m._resetTimers(!0),m.emit("error",new Error("XHR error")))};try{B.send(I)}catch(S){api$1.nextTick(function(){m.emit("error",S)});return}}}};function f(m){try{var k=m.status;return k!==null&&k!==0}catch{return!1}}u.prototype._onXHRProgress=function(){var m=this;m._resetTimers(!1),!(!f(m._xhr)||m._destroyed)&&(m._response||m._connect(),m._response._onXHRProgress(m._resetTimers.bind(m)))},u.prototype._connect=function(){var m=this;m._destroyed||(m._response=new a(m._xhr,m._fetchResponse,m._mode,m._resetTimers.bind(m)),m._response.on("error",function(k){m.emit("error",k)}),m.emit("response",m._response))},u.prototype._write=function(m,k,x){var I=this;I._body.push(m),x()},u.prototype._resetTimers=function(m){var k=this;commonjsGlobal.clearTimeout(k._socketTimer),k._socketTimer=null,m?(commonjsGlobal.clearTimeout(k._fetchTimer),k._fetchTimer=null):k._socketTimeout&&(k._socketTimer=commonjsGlobal.setTimeout(function(){k.emit("timeout")},k._socketTimeout))},u.prototype.abort=u.prototype.destroy=function(m){var k=this;k._destroyed=!0,k._resetTimers(!0),k._response&&(k._response._destroyed=!0),k._xhr?k._xhr.abort():k._fetchAbortController&&k._fetchAbortController.abort(),m&&k.emit("error",m)},u.prototype.end=function(m,k,x){var I=this;typeof m=="function"&&(x=m,m=void 0),e.Writable.prototype.end.call(I,m,k,x)},u.prototype.setTimeout=function(m,k){var x=this;k&&x.once("timeout",k),x._socketTimeout=m,x._resetTimers(!1)},u.prototype.flushHeaders=function(){},u.prototype.setNoDelay=function(){},u.prototype.setSocketKeepAlive=function(){};var w=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return request.exports}var immutable,hasRequiredImmutable;function requireImmutable(){if(hasRequiredImmutable)return immutable;hasRequiredImmutable=1,immutable=r;var n=Object.prototype.hasOwnProperty;function r(){for(var t={},e=0;e<arguments.length;e++){var a=arguments[e];for(var o in a)n.call(a,o)&&(t[o]=a[o])}return t}return immutable}var browser,hasRequiredBrowser;function requireBrowser(){return hasRequiredBrowser||(hasRequiredBrowser=1,browser={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Parti
62al Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),browser}var punycode$1={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */punycode$1.exports;(function(n,r){(function(t){var e=r&&!r.nodeType&&r,a=n&&!n.nodeType&&n,o=typeof commonjsGlobal=="object"&&commonjsGlobal;(o.global===o||o.window===o||o.self===o)&&(t=o);var s,u=2147483647,f=36,w=1,m=26,k=38,x=700,I=72,D=128,q="-",O=/^xn--/,B=/[^\x20-\x7E]/,S=/[\x2E\u3002\uFF0E\uFF61]/g,N={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},y=f-w,d=Math.floor,h=String.fromCharCode,_;function R(T){throw new RangeError(N[T])}function g(T,b){for(var C=T.length,$=[];C--;)$[C]=b(T[C]);return $}function M(T,b){var C=T.split("@"),$="";C.length>1&&($=C[0]+"@",T=C[1]),T=T.replace(S,".");var W=T.split("."),V=g(W,b).join(".");return $+V}function H(T){for(var b=[],C=0,$=T.length,W,V;C<$;)W=T.charCodeAt(C++),W>=55296&&W<=56319&&C<$?(V=T.charCodeAt(C++),(V&64512)==56320?b.push(((W&1023)<<10)+(V&1023)+65536):(b.push(W),C--)):b.push(W);return b}function P(T){return g(T,function(b){var C="";return b>65535&&(b-=65536,C+=h(b>>>10&1023|55296),b=56320|b&1023),C+=h(b),C}).join("")}function F(T){return T-48<10?T-22:T-65<26?T-65:T-97<26?T-97:f}function te(T,b){return T+22+75*(T<26)-((b!=0)<<5)}function ae(T,b,C){var $=0;for(T=C?d(T/x):T>>1,T+=d(T/b);T>y*m>>1;$+=f)T=d(T/y);return d($+(y+1)*T/(T+k))}function ie(T){var b=[],C=T.length,$,W=0,V=D,U=I,de,pe,Re,Z,z,A,v,L,J;for(de=T.lastIndexOf(q),de<0&&(de=0),pe=0;pe<de;++pe)T.charCodeAt(pe)>=128&&R("not-basic"),b.push(T.charCodeAt(pe));for(Re=de>0?de+1:0;Re<C;){for(Z=W,z=1,A=f;Re>=C&&R("invalid-input"),v=F(T.charCodeAt(Re++)),(v>=f||v>d((u-W)/z))&&R("overflow"),W+=v*z,L=A<=U?w:A>=U+m?m:A-U,!(v<L);A+=f)J=f-L,z>d(u/J)&&R("overflow"),z*=J;$=b.length+1,U=ae(W-Z,$,Z==0),d(W/$)>u-V&&R("overflow"),V+=d(W/$),W%=$,b.splice(W++,0,V)}return P(b)}function se(T){var b,C,$,W,V,U,de,pe,Re,Z,z,A=[],v,L,J,ne;for(T=H(T),v=T.length,b=D,C=0,V=I,U=0;U<v;++U)z=T[U],z<128&&A.push(h(z));for($=W=A.length,W&&A.push(q);$<v;){for(de=u,U=0;U<v;++U)z=T[U],z>=b&&z<de&&(de=z);for(L=$+1,de-b>d((u-C)/L)&&R("overflow"),C+=(de-b)*L,b=de,U=0;U<v;++U)if(z=T[U],z<b&&++C>u&&R("overflow"),z==b){for(pe=C,Re=f;Z=Re<=V?w:Re>=V+m?m:Re-V,!(pe<Z);Re+=f)ne=pe-Z,J=f-Z,A.push(h(te(Z+ne%J,0))),pe=d(ne/J);A.push(h(te(pe,0))),V=ae(C,L,$==W),C=0,++$}++C,++b}return A.join("")}function re(T){return M(T,function(b){return O.test(b)?ie(b.slice(4).toLowerCase()):b})}function X(T){return M(T,function(b){return B.test(b)?"xn--"+se(b):b})}if(s={version:"1.4.1",ucs2:{decode:H,encode:P},decode:ie,encode:se,toASCII:X,toUnicode:re},e&&a)if(n.exports==e)a.exports=s;else for(_ in s)s.hasOwnProperty(_)&&(e[_]=s[_]);else t.punycode=s})(commonjsGlobal)})(punycode$1,punycode$1.exports);var punycodeExports=punycode$1.exports;const require$$0=getDefaultExportFromCjs(punycodeExports);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf
vendor: 11,949 bytes, lines 62-65
62=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||!0)?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function addNumericSeparator(n,r){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||$test.call(/e/,r))return r;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var e=n<0?-$floor(-n):$floor(n);if(e!==n){var a=String(e),o=$slice.call(r,a.length+1);return $replace.call(a,t,"$&_")+"."+$replace.call($replace.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(r,t,"$&_")}var utilInspect=require$$1$1,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,quotes={__proto__:null,double:'"',single:"'"},quoteREs={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},objectInspect=function n(r,t,e,a){var o=t||{};if(has$3(o,"quoteStyle")&&!has$3(quotes,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$3(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=has$3(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$3(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$3(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var u=o.numericSeparator;if(typeof r>"u")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return inspectString(r,o);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var f=String(r);return u?addNumericSeparator(r,f):f}if(typeof r=="bigint"){var w=String(r)+"n";return u?addNumericSeparator(r,w):w}var m=typeof o.depth>"u"?5:o.depth;if(typeof e>"u"&&(e=0),e>=m&&m>0&&typeof r=="object")return isArray$3(r)?"[Array]":"[Object]";var k=getIndent(o,e);if(typeof a>"u")a=[];else if(indexOf(a,r)>=0)return"[Circular]";function x(F,te,ae){if(te&&(a=$arrSlice.call(a),a.push(te)),ae){var ie={depth:o.depth};return has$3(o,"quoteStyle")&&(ie.quoteStyle=o.quoteStyle),n(F,ie,e+1,a)}return n(F,o,e+1,a)}if(typeof r=="function"&&!isRegExp$1(r)){var I=nameOf(r),D=arrObjKeys(r,x);return"[Function"+(I?": "+I:" (anonymous)")+"]"+(D.length>0?" { "+$join.call(D,", ")+" }":"")}if(isSymbol(r)){var q=hasShammedSymbols?$replace.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(r);return typeof r=="object"&&!hasShammedSymbols?markBoxed(q):q}if(isElement(r)){for(var O="<"+$toLowerCase.call(String(r.nodeName)),B=r.attributes||[],S=0;S<B.length;S++)O+=" "+B[S].name+"="+wrapQuotes(quote(B[S].value),"double",o);return O+=">",r.childNodes&&r.childNodes.length&&(O+="..."),O+="</"+$toLowerCase.call(String(r.nodeName))+">",O}if(isArray$3(r)){if(r.length===0)return"[]";var N=arrObjKeys(r,x);return k&&!singleLineValues(N)?"["+indentedJoin(N,k)+"]":"[ "+$join.call(N,", ")+" ]"}if(isError(r)){var y=arrObjKeys(r,x);return!("cause"in Error.prototype)&&"cause"in r&&!isEnumerable.call(r,"cause")?"{ ["+String(r)+"] "+$join.call($concat.call("[cause]: "+x(r.cause),y),", ")+" }":y.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+$join.call(y,", ")+" }"}if(typeof r=="object"&&s){if(inspectSymbol&&typeof r[inspectSymbol]=="function"&&utilInspect)return utilInspect(r,{depth:m-e});if(s!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(isMap(r)){var d=[];return mapForEach&&mapForEach.call(r,function(F,te){d.push(x(te,r,!0)+" => "+x(F,r))}),collectionOf("Map",mapSize.call(r),d,k)}if(isSet(r)){var h=[];return setForEach&&setForEach.call(r,function(F){h.push(x(F,r))}),collectionOf("Set",setSize.call(r),h,k)}if(isWeakMap(r))return weakCollectionOf("WeakMap");if(isWeakSet(r))return weakCollectionOf("WeakSet");if(isWeakRef(r))return weakCollectionOf("WeakRef");if(isNumber(r))return markBoxed(x(Number(r)));if(isBigInt(r))return markBoxed(x(bigIntValueOf.call(r)));if(isBoolean(r))return markBoxed(booleanValueOf.call(r));if(isString$1(r))return markBoxed(x(String(r)));if(typeof window<"u"&&r===window)return"{ [object Window] }";if(typeof globalThis<"u"&&r===globalThis||typeof commonjsGlobal<"u"&&r===commonjsGlobal)return"{ [object globalThis] }";if(!isDate(r)&&!isRegExp$1(r)){var _=arrObjKeys(r,x),R=gPO?gPO(r)===Object.prototype:r instanceof Object||r.constructor===Object,g=r instanceof Object?"":"null prototype",M=!R&&toStringTag&&Object(r)===r&&toStringTag in r?$slice.call(toStr(r),8,-1):g?"Object":"",H=R||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",P=H+(M||g?"["+$join.call($concat.call([],M||[],g||[]),": ")+"] ":"");return _.length===0?P+"{}":k?P+"{"+indentedJoin(_,k)+"}":P+"{ "+$join.call(_,", ")+" }"}return String(r)};function wrapQuotes(n,r,t){var e=t.quoteStyle||r,a=quotes[e];return a+n+a}function quote(n){return $replace.call(String(n),/"/g,""")}function isArray$3(n){return toStr(n)==="[object Array]"&&(!toStringTag||!(typeof n=="object"&&toStringTag in n))}function isDate(n){return toStr(n)==="[object Date]"&&(!toStringTag||!(typeof n=="object"&&toStringTag in n))}function isRegExp$1(n){return toStr(n)==="[object RegExp]"&&(!toStringTag||!(typeof n=="object"&&toStringTag in n))}function isError(n){return toStr(n)==="[object Error]"&&(!toStringTag||!(typeof n=="object"&&toStringTag in n))}function isString$1(n){return toStr(n)==="[object String]"&&(!toStringTag||!(typeof n=="object"&&toStringTag in n))}function isNumber(n){return toStr(n)==="[object Number]"&&(!toStringTag||!(typeof n=="object"&&toStringTag in n))}function isBoolean(n){return toStr(n)==="[object Boolean]"&&(!toStringTag||!(typeof n=="object"&&toStringTag in n))}function isSymbol(n){if(hasShammedSymbols)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!symToString)return!1;try{return symToString.call(n),!0}catch{}return!1}function isBigInt(n){if(!n||typeof n!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(n),!0}catch{}return!1}var hasOwn=Object.prototype.hasOwnProperty||function(n){return n in this};function has$3(n,r){return hasOwn.call(n,r)}function toStr(n){return objectToString.call(n)}function nameOf(n){if(n.name)return n.name;var r=$match.call(functionToString.call(n),/^function\s*([\w$]+)/);return r?r[1]:null}function indexOf(n,r){if(n.indexOf)return n.indexOf(r);for(var t=0,e=n.length;t<e;t++)if(n[t]===r)return t;return-1}function isMap(n){if(!mapSize||!n||typeof n!="object")return!1;try{mapSize.call(n);try{setSize.call(n)}catch{return!0}return n instanceof Map}catch{}return!1}function isWeakMap(n){if(!weakMapHas||!n||typeof n!="object")return!1;try{weakMapHas.call(n,weakMapHas);try{weakSetHas.call(n,weakSetHas)}catch{return!0}return n instanceof WeakMap}catch{}return!1}function isWeakRef(n){if(!weakRefDeref||!n||typeof n!="object")return!1;try{return weakRefDeref.call(n),!0}catch{}return!1}function isSet(n){if(!setSize||!n||typeof n!="object")return!1;try{setSize.call(n);try{mapSize.call(n)}catch{return!0}return n instanceof Set}catch{}return!1}function isWeakSet(n){if(!weakSetHas||!n||typeof n!="object")return!1;try{weakSetHas.call(n,weakSetHas);try{weakMapHas.call(n,weakMapHas)}catch{return!0}return n instanceof WeakSet}catch{}return!1}function isElement(n){return!n||typeof n!="object"?!1:typeof HTMLElement<"u"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function inspectString(n,r){if(n.length>r.maxStringLength){var t=n.length-r.maxStringLength,e="... "+t+" more character"+(t>1?"s":"");return inspectString($slice.call(n,0,r.maxStringLength),r)+e}var a=quoteREs[r.quoteStyle||"single"];a.lastIndex=0;var o=$replace.call($replace.call(n,a,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(o,"single",r)}function lowbyte(n){var r=n.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return t?"\\"+t:"\\x"+(r<16?"0":"")+$toUpperCase.call(r.toString(16))}function markBoxed(n){return"Object("+n+")"}function weakCollectionOf(n){return n+" { ? }"}function collectionOf(n,r,t,e){var a=e?indentedJoin(t,e):$join.call(t,", ");return n+" ("+r+") {"+a+"}"}function singleLineValues(n){for(var r=0;r<n.length;r++)if(indexOf(n[r],` 63`)>=0)return!1;return!0}function getIndent(n,r){var t;if(n.indent===" ")t=" ";else if(typeof n.indent=="number"&&n.indent>0)t=$join.call(Array(n.indent+1)," ");else return null;return{base:t,prev:$join.call(Array(r+1),t)}}function indentedJoin(n,r){if(n.length===0)return"";var t=` 64`+r.prev+r.base;return t+$join.call(n,","+t)+` 65`+r.prev}function arrObjKeys(n,r){var t=isArray$3(n),e=[];if(t){e.length=n.length;for(var a=0;a<n.length;a++)e[a]=has$3(n,a)?r(n[a],n):""}var o=typeof gOPS=="function"?gOPS(n):[],s;if(hasShammedSymbols){s={};for(var u=0;u<o.length;u++)s["$"+o[u]]=o[u]}for(var f in n)has$3(n,f)&&(t&&String(Number(f))===f&&f<n.length||hasShammedSymbols&&s["$"+f]instanceof Symbol||($test.call(/[^\w$]/,f)?e.push(r(f,n)+": "+r(n[f],n)):e.push(f+": "+r(n[f],n))));if(typeof gOPS=="function")for(var w=0;w<o.length;w++)isEnumerable.call(n,o[w])&&e.push("["+r(o[w])+"]: "+r(n[o[w]],n));return e}var inspect$3=objectInspect,$TypeError$3=requireType(),listGetNode=function(n,r,t){for(var e=n,a;(a=e.next)!=null;e=a)if(a.key===r)return e.next=a.next,t||(a.next=n.next,n.next=a),a},listGet=function(n,r){if(n){var t=listGetNode(n,r);return t&&t.value}},listSet=function(n,r,t){var e=listGetNode(n,r);e?e.value=t:n.next={key:r,next:n.next,value:t}},listHas=function(n,r){return n?!!listGetNode(n,r):!1},listDelete=function(n,r){if(n)return listGetNode(n,r,!0)},sideChannelList=function(){var r,t={assert:function(e){if(!t.has(e))throw new $TypeError$3("Side channel does not contain "+inspect$3(e))},delete:function(e){var a=r&&r.next,o=listDelete(r,e);return o&&a&&a===o&&(r=void 0),!!o},get:function(e){return listGet(r,e)},has:function(e){return listHas(r,e)},set:function(e,a){r||(r={next:void 0}),listSet(r,e,a)}};return t},GetIntrinsic$1=requireGetIntrinsic(),callBound$1=requireCallBound$1(),inspect$2=objectInspect,$TypeError$2=requireType(),$Map=GetIntrinsic$1("%Map%",!0),$mapGet=callBound$1("Map.prototype.get",!0),$mapSet=callBound$1("Map.prototype.set",!0),$mapHas=callBound$1("Map.prototype.has",!0),$mapDelete=callBound$1("Map.prototype.delete",!0),$mapSize=callBound$1("Map.prototype.size",!0),sideChannelMap=!!$Map&&function(){var r,t={assert:function(e){if(!t.has(e))throw new $TypeError$2("Side channel does not contain "+inspect$2(e))},delete:function(e){if(r){var a=$mapDelete(r,e);return $mapSize(r)===0&&(r=void 0),a}return!1},get:function(e){if(r)return $mapGet(r,e)},has:function(e){return r?$mapHas(r,e):!1},set:function(e,a){r||(r=new $Map),$mapSet(r,e,a)}};return t},GetIntrinsic=requireGetIntrinsic(),callBound=requireCallBound$1(),inspect$1=objectInspect,getSideChannelMap$1=sideChannelMap,$TypeError$1=requireType(),$WeakMap=GetIntrinsic("%WeakMap%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$weakMapDelete=callBound("WeakMap.prototype.delete",!0),sideChannelWeakmap=$WeakMap?function(){var r,t,e={assert:function(a){if
vendor: 4,457 bytes, line 65
65(!e.has(a))throw new $TypeError$1("Side channel does not contain "+inspect$1(a))},delete:function(a){if($WeakMap&&a&&(typeof a=="object"||typeof a=="function")){if(r)return $weakMapDelete(r,a)}else if(getSideChannelMap$1&&t)return t.delete(a);return!1},get:function(a){return $WeakMap&&a&&(typeof a=="object"||typeof a=="function")&&r?$weakMapGet(r,a):t&&t.get(a)},has:function(a){return $WeakMap&&a&&(typeof a=="object"||typeof a=="function")&&r?$weakMapHas(r,a):!!t&&t.has(a)},set:function(a,o){$WeakMap&&a&&(typeof a=="object"||typeof a=="function")?(r||(r=new $WeakMap),$weakMapSet(r,a,o)):getSideChannelMap$1&&(t||(t=getSideChannelMap$1()),t.set(a,o))}};return e}:getSideChannelMap$1,$TypeError=requireType(),inspect=objectInspect,getSideChannelList=sideChannelList,getSideChannelMap=sideChannelMap,getSideChannelWeakMap=sideChannelWeakmap,makeChannel=getSideChannelWeakMap||getSideChannelMap||getSideChannelList,sideChannel=function(){var r,t={assert:function(e){if(!t.has(e))throw new $TypeError("Side channel does not contain "+inspect(e))},delete:function(e){return!!r&&r.delete(e)},get:function(e){return r&&r.get(e)},has:function(e){return!!r&&r.has(e)},set:function(e,a){r||(r=makeChannel()),r.set(e,a)}};return t},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function(n){return replace.call(n,percentTwenties,"+")},RFC3986:function(n){return String(n)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$2=Object.prototype.hasOwnProperty,isArray$2=Array.isArray,hexTable=function(){for(var n=[],r=0;r<256;++r)n.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return n}(),compactQueue=function(r){for(;r.length>1;){var t=r.pop(),e=t.obj[t.prop];if(isArray$2(e)){for(var a=[],o=0;o<e.length;++o)typeof e[o]<"u"&&a.push(e[o]);t.obj[t.prop]=a}}},arrayToObject=function(r,t){for(var e=t&&t.plainObjects?{__proto__:null}:{},a=0;a<r.length;++a)typeof r[a]<"u"&&(e[a]=r[a]);return e},merge=function n(r,t,e){if(!t)return r;if(typeof t!="object"&&typeof t!="function"){if(isArray$2(r))r.push(t);else if(r&&typeof r=="object")(e&&(e.plainObjects||e.allowPrototypes)||!has$2.call(Object.prototype,t))&&(r[t]=!0);else return[r,t];return r}if(!r||typeof r!="object")return[r].concat(t);var a=r;return isArray$2(r)&&!isArray$2(t)&&(a=arrayToObject(r,e)),isArray$2(r)&&isArray$2(t)?(t.forEach(function(o,s){if(has$2.call(r,s)){var u=r[s];u&&typeof u=="object"&&o&&typeof o=="object"?r[s]=n(u,o,e):r.push(o)}else r[s]=o}),r):Object.keys(t).reduce(function(o,s){var u=t[s];return has$2.call(o,s)?o[s]=n(o[s],u,e):o[s]=u,o},a)},assign=function(r,t){return Object.keys(t).reduce(function(e,a){return e[a]=t[a],e},r)},decode=function(n,r,t){var e=n.replace(/\+/g," ");if(t==="iso-8859-1")return e.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(e)}catch{return e}},limit=1024,encode=function(r,t,e,a,o){if(r.length===0)return r;var s=r;if(typeof r=="symbol"?s=Symbol.prototype.toString.call(r):typeof r!="string"&&(s=String(r)),e==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(I){return"%26%23"+parseInt(I.slice(2),16)+"%3B"});for(var u="",f=0;f<s.length;f+=limit){for(var w=s.length>=limit?s.slice(f,f+limit):s,m=[],k=0;k<w.length;++k){var x=w.charCodeAt(k);if(x===45||x===46||x===95||x===126||x>=48&&x<=57||x>=65&&x<=90||x>=97&&x<=122||o===formats$2.RFC1738&&(x===40||x===41)){m[m.length]=w.charAt(k);continue}if(x<128){m[m.length]=hexTable[x];continue}if(x<2048){m[m.length]=hexTable[192|x>>6]+hexTable[128|x&63];continue}if(x<55296||x>=57344){m[m.length]=hexTable[224|x>>12]+hexTable[128|x>>6&63]+hexTable[128|x&63];continue}k+=1,x=65536+((x&1023)<<10|w.charCodeAt(k)&1023),m[m.length]=hexTable[240|x>>18]+hexTable[128|x>>12&63]+hexTable[128|x>>6&63]+hexTable[128|x&63]}u+=m.join("")}return u},compact=function(r){for(var t=[{obj:{o:r},prop:"o"}],e=[],a=0;a<t.length;++a)for(var o=t[a],s=o.obj[o.prop],u=Object.keys(s),f=0;f<u.length;++f){var w=u[f],m=s[w];typeof m=="object"&&m!==null&&e.indexOf(m)===-1&&(t.push({obj:s,prop:w}),e.push(m))}return compactQueue(t),r},isRegExp=function(r){return Object.prototype.toString.call(r)==="[object RegExp]"},isBuffer=function(r){return!r||typeof r!="object"?!1:!!(r.constructor&&r.constructor.isBuffer&&r.constructor.isBuffer(r))},combine=function(r,t){return[].concat(r,t)},maybeMap=function(r,t){if(isArray$2(r)){for(var e=[],a=0;a<r.length;
vendor: 4,954 bytes, line 65
65a+=1)e.push(t(r[a]));return e}return t(r)},utils$2={arrayToObject,assign,combine,compact,decode,encode,isBuffer,isRegExp,maybeMap,merge},getSideChannel=sideChannel,utils$1=utils$2,formats$1=formats$3,has$1=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(r){return r+"[]"},comma:"comma",indices:function(r,t){return r+"["+t+"]"},repeat:function(r){return r}},isArray$1=Array.isArray,push=Array.prototype.push,pushToArray=function(n,r){push.apply(n,isArray$1(r)?r:[r])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$1={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:utils$1.encode,encodeValuesOnly:!1,filter:void 0,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function(r){return toISO.call(r)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(r){return typeof r=="string"||typeof r=="number"||typeof r=="boolean"||typeof r=="symbol"||typeof r=="bigint"},sentinel={},stringify$1=function n(r,t,e,a,o,s,u,f,w,m,k,x,I,D,q,O,B,S){for(var N=r,y=S,d=0,h=!1;(y=y.get(sentinel))!==void 0&&!h;){var _=y.get(r);if(d+=1,typeof _<"u"){if(_===d)throw new RangeError("Cyclic object value");h=!0}typeof y.get(sentinel)>"u"&&(d=0)}if(typeof m=="function"?N=m(t,N):N instanceof Date?N=I(N):e==="comma"&&isArray$1(N)&&(N=utils$1.maybeMap(N,function(T){return T instanceof Date?I(T):T})),N===null){if(s)return w&&!O?w(t,defaults$1.encoder,B,"key",D):t;N=""}if(isNonNullishPrimitive(N)||utils$1.isBuffer(N)){if(w){var R=O?t:w(t,defaults$1.encoder,B,"key",D);return[q(R)+"="+q(w(N,defaults$1.encoder,B,"value",D))]}return[q(t)+"="+q(String(N))]}var g=[];if(typeof N>"u")return g;var M;if(e==="comma"&&isArray$1(N))O&&w&&(N=utils$1.maybeMap(N,w)),M=[{value:N.length>0?N.join(",")||null:void 0}];else if(isArray$1(m))M=m;else{var H=Object.keys(N);M=k?H.sort(k):H}var P=f?String(t).replace(/\./g,"%2E"):String(t),F=a&&isArray$1(N)&&N.length===1?P+"[]":P;if(o&&isArray$1(N)&&N.length===0)return F+"[]";for(var te=0;te<M.length;++te){var ae=M[te],ie=typeof ae=="object"&&ae&&typeof ae.value<"u"?ae.value:N[ae];if(!(u&&ie===null)){var se=x&&f?String(ae).replace(/\./g,"%2E"):String(ae),re=isArray$1(N)?typeof e=="function"?e(F,se):F:F+(x?"."+se:"["+se+"]");S.set(r,d);var X=getSideChannel();X.set(sentinel,S),pushToArray(g,n(ie,re,e,a,o,s,u,f,e==="comma"&&O&&isArray$1(N)?null:w,m,k,x,I,D,q,O,B,X))}}return g},normalizeStringifyOptions=function(r){if(!r)return defaults$1;if(typeof r.allowEmptyArrays<"u"&&typeof r.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof r.encodeDotInKeys<"u"&&typeof r.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(r.encoder!==null&&typeof r.encoder<"u"&&typeof r.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=r.charset||defaults$1.charset;if(typeof r.charset<"u"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=formats$1.default;if(typeof r.format<"u"){if(!has$1.call(formats$1.formatters,r.format))throw new TypeError("Unknown format option provided.");e=r.format}var a=formats$1.formatters[e],o=defaults$1.filter;(typeof r.filter=="function"||isArray$1(r.filter))&&(o=r.filter);var s;if(r.arrayFormat in arrayPrefixGenerators?s=r.arrayFormat:"indices"in r?s=r.indices?"indices":"repeat":s=defaults$1.arrayFormat,"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=typeof r.allowDots>"u"?r.encodeDotInKeys===!0?!0:defaults$1.allowDots:!!r.allowDots;return{addQueryPrefix:typeof r.addQueryPrefix=="boolean"?r.addQueryPrefix:defaults$1.addQueryPrefix,allowDots:u,allowEmptyArrays:typeof r.allowEmptyArrays=="boolean"?!!r.allowEmptyArrays:defaults$1.allowEmptyArrays,arrayFormat:s,charset:t,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:defaults$1.charsetSentinel,commaRoundTrip:!!r.commaRoundTrip,delimiter:typeof r.delimiter>"u"?defaults$1.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:defaults$1.encode,encodeDotInKeys:typeof r.encodeDotInKeys=="boolean"?r.encodeDotInKeys:defaults$1.encodeDotInKeys,encoder:typeof r.encoder=="function"?r.encoder:defaults$1.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:defaults$1.encodeValuesOnly,filter:o,format:e,formatter:a,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:defaults$1.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:defaults$1.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:defaults$1.str
vendor: 7,665 bytes, lines 65-66
65ictNullHandling}},stringify_1=function(n,r){var t=n,e=normalizeStringifyOptions(r),a,o;typeof e.filter=="function"?(o=e.filter,t=o("",t)):isArray$1(e.filter)&&(o=e.filter,a=o);var s=[];if(typeof t!="object"||t===null)return"";var u=arrayPrefixGenerators[e.arrayFormat],f=u==="comma"&&e.commaRoundTrip;a||(a=Object.keys(t)),e.sort&&a.sort(e.sort);for(var w=getSideChannel(),m=0;m<a.length;++m){var k=a[m],x=t[k];e.skipNulls&&x===null||pushToArray(s,stringify$1(x,k,u,f,e.allowEmptyArrays,e.strictNullHandling,e.skipNulls,e.encodeDotInKeys,e.encode?e.encoder:null,e.filter,e.sort,e.allowDots,e.serializeDate,e.format,e.formatter,e.encodeValuesOnly,e.charset,w))}var I=s.join(e.delimiter),D=e.addQueryPrefix===!0?"?":"";return e.charsetSentinel&&(e.charset==="iso-8859-1"?D+="utf8=%26%2310003%3B&":D+="utf8=%E2%9C%93&"),I.length>0?D+I:""},utils=utils$2,has=Object.prototype.hasOwnProperty,isArray=Array.isArray,defaults={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:utils.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},interpretNumericEntities=function(n){return n.replace(/&#(\d+);/g,function(r,t){return String.fromCharCode(parseInt(t,10))})},parseArrayValue=function(n,r){return n&&typeof n=="string"&&r.comma&&n.indexOf(",")>-1?n.split(","):n},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(r,t){var e={__proto__:null},a=t.ignoreQueryPrefix?r.replace(/^\?/,""):r;a=a.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=t.parameterLimit===1/0?void 0:t.parameterLimit,s=a.split(t.delimiter,o),u=-1,f,w=t.charset;if(t.charsetSentinel)for(f=0;f<s.length;++f)s[f].indexOf("utf8=")===0&&(s[f]===charsetSentinel?w="utf-8":s[f]===isoSentinel&&(w="iso-8859-1"),u=f,f=s.length);for(f=0;f<s.length;++f)if(f!==u){var m=s[f],k=m.indexOf("]="),x=k===-1?m.indexOf("="):k+1,I,D;x===-1?(I=t.decoder(m,defaults.decoder,w,"key"),D=t.strictNullHandling?null:""):(I=t.decoder(m.slice(0,x),defaults.decoder,w,"key"),D=utils.maybeMap(parseArrayValue(m.slice(x+1),t),function(O){return t.decoder(O,defaults.decoder,w,"value")})),D&&t.interpretNumericEntities&&w==="iso-8859-1"&&(D=interpretNumericEntities(String(D))),m.indexOf("[]=")>-1&&(D=isArray(D)?[D]:D);var q=has.call(e,I);q&&t.duplicates==="combine"?e[I]=utils.combine(e[I],D):(!q||t.duplicates==="last")&&(e[I]=D)}return e},parseObject=function(n,r,t,e){for(var a=e?r:parseArrayValue(r,t),o=n.length-1;o>=0;--o){var s,u=n[o];if(u==="[]"&&t.parseArrays)s=t.allowEmptyArrays&&(a===""||t.strictNullHandling&&a===null)?[]:[].concat(a);else{s=t.plainObjects?{__proto__:null}:{};var f=u.charAt(0)==="["&&u.charAt(u.length-1)==="]"?u.slice(1,-1):u,w=t.decodeDotInKeys?f.replace(/%2E/g,"."):f,m=parseInt(w,10);!t.parseArrays&&w===""?s={0:a}:!isNaN(m)&&u!==w&&String(m)===w&&m>=0&&t.parseArrays&&m<=t.arrayLimit?(s=[],s[m]=a):w!=="__proto__"&&(s[w]=a)}a=s}return a},parseKeys=function(r,t,e,a){if(r){var o=e.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,s=/(\[[^[\]]*])/,u=/(\[[^[\]]*])/g,f=e.depth>0&&s.exec(o),w=f?o.slice(0,f.index):o,m=[];if(w){if(!e.plainObjects&&has.call(Object.prototype,w)&&!e.allowPrototypes)return;m.push(w)}for(var k=0;e.depth>0&&(f=u.exec(o))!==null&&k<e.depth;){if(k+=1,!e.plainObjects&&has.call(Object.prototype,f[1].slice(1,-1))&&!e.allowPrototypes)return;m.push(f[1])}if(f){if(e.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+e.depth+" and strictDepth is true");m.push("["+o.slice(f.index)+"]")}return parseObject(m,t,e,a)}},normalizeParseOptions=function(r){if(!r)return defaults;if(typeof r.allowEmptyArrays<"u"&&typeof r.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof r.decodeDotInKeys<"u"&&typeof r.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(r.decoder!==null&&typeof r.decoder<"u"&&typeof r.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof r.charset<"u"&&r.charset!=="utf-8"&&r.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof r.charset>"u"?defaults.charset:r.charset,e=typeof r.duplicates>"u"?defaults.duplicates:r.duplicates;if(e!=="combine"&&e!=="first"&&e!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var a=typeof r.allowDots>"u"?r.decodeDotInKeys===!0?!0:defaults.allowDots:!!r.allowDots;return{allowDots:a,allowEmptyArrays:typeof r.allowEmptyArrays=="boolean"?!!r.allowEmptyArrays:defaults.allowEmptyArrays,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:defaults.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:defaults.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:defaults.arrayLimit,charset:t,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:defaults.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:defaults.comma,decodeDotInKeys:typeof r.decodeDotInKeys=="boolean"?r.decodeDotInKeys:defaults.decodeDotInKeys,decoder:typeof r.decoder=="function"?r.decoder:defaults.decoder,delimiter:typeof r.delimiter=="string"||utils.isRegExp(r.delimiter)?r.delimiter:defaults.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:defaults.depth,duplicates:e,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:defaults.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:defaults.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:defaults.plainObjects,strictDepth:typeof r.strictDepth=="boolean"?!!r.strictDepth:defaults.strictDepth,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:defaults.strictNullHandling}},parse$2=function(n,r){var t=normalizeParseOptions(r);if(n===""||n===null||typeof n>"u")return t.plainObjects?{__proto__:null}:{};for(var e=typeof n=="string"?parseValues(n,t):n,a=t.plainObjects?{__proto__:null}:{},o=Object.keys(e),s=0;s<o.length;++s){var u=o[s],f=parseKeys(u,e[u],t,typeof n=="string");a=utils.merge(a,f,t)}return t.allowSparse===!0?a:utils.compact(a)},stringify=stringify_1,parse$1=parse$2,formats=formats$3,lib={formats,parse:parse$1,stringify};const require$$1=getDefaultExportFromCjs(lib);var punycode=require$$0;function Url(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,simplePathPattern=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,delims=["<",">",'"',"`"," ","\r",` 66`," "],unwise=["{","}","|","\\","^","`"].concat(delims),autoEscape=["'"].concat(unwise),nonHostChars=["%","/","?",";","#"].concat(autoEscape),hostEndingChars=["/","?","#"],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,unsafeProtocol={javascript:!0,"javascript:":!0},hostlessProtocol={javascript:!0,"javascript:":!0},slashedProtocol={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},querystring=require$$1;function urlParse(n,r,t){if(n&&typeof n=="object"&&n instanceof Url)return n;var e=new Url;return e.parse(n,r,t),e}
vendor: 4,327 bytes, line 66
66Url.prototype.parse=function(n,r,t){if(typeof n!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof n);var e=n.indexOf("?"),a=e!==-1&&e<n.indexOf("#")?"?":"#",o=n.split(a),s=/\\/g;o[0]=o[0].replace(s,"/"),n=o.join(a);var u=n;if(u=u.trim(),!t&&n.split("#").length===1){var f=simplePathPattern.exec(u);if(f)return this.path=u,this.href=u,this.pathname=f[1],f[2]?(this.search=f[2],r?this.query=querystring.parse(this.search.substr(1)):this.query=this.search.substr(1)):r&&(this.search="",this.query={}),this}var w=protocolPattern.exec(u);if(w){w=w[0];var m=w.toLowerCase();this.protocol=m,u=u.substr(w.length)}if(t||w||u.match(/^\/\/[^@/]+@[^@/]+/)){var k=u.substr(0,2)==="//";k&&!(w&&hostlessProtocol[w])&&(u=u.substr(2),this.slashes=!0)}if(!hostlessProtocol[w]&&(k||w&&!slashedProtocol[w])){for(var x=-1,I=0;I<hostEndingChars.length;I++){var D=u.indexOf(hostEndingChars[I]);D!==-1&&(x===-1||D<x)&&(x=D)}var q,O;x===-1?O=u.lastIndexOf("@"):O=u.lastIndexOf("@",x),O!==-1&&(q=u.slice(0,O),u=u.slice(O+1),this.auth=decodeURIComponent(q)),x=-1;for(var I=0;I<nonHostChars.length;I++){var D=u.indexOf(nonHostChars[I]);D!==-1&&(x===-1||D<x)&&(x=D)}x===-1&&(x=u.length),this.host=u.slice(0,x),u=u.slice(x),this.parseHost(),this.hostname=this.hostname||"";var B=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!B)for(var S=this.hostname.split(/\./),I=0,N=S.length;I<N;I++){var y=S[I];if(y&&!y.match(hostnamePartPattern)){for(var d="",h=0,_=y.length;h<_;h++)y.charCodeAt(h)>127?d+="x":d+=y[h];if(!d.match(hostnamePartPattern)){var R=S.slice(0,I),g=S.slice(I+1),M=y.match(hostnamePartStart);M&&(R.push(M[1]),g.unshift(M[2])),g.length&&(u="/"+g.join(".")+u),this.hostname=R.join(".");break}}}this.hostname.length>hostnameMaxLen?this.hostname="":this.hostname=this.hostname.toLowerCase(),B||(this.hostname=punycode.toASCII(this.hostname));var H=this.port?":"+this.port:"",P=this.hostname||"";this.host=P+H,this.href+=this.host,B&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),u[0]!=="/"&&(u="/"+u))}if(!unsafeProtocol[m])for(var I=0,N=autoEscape.length;I<N;I++){var F=autoEscape[I];if(u.indexOf(F)!==-1){var te=encodeURIComponent(F);te===F&&(te=escape(F)),u=u.split(F).join(te)}}var ae=u.indexOf("#");ae!==-1&&(this.hash=u.substr(ae),u=u.slice(0,ae));var ie=u.indexOf("?");if(ie!==-1?(this.search=u.substr(ie),this.query=u.substr(ie+1),r&&(this.query=querystring.parse(this.query)),u=u.slice(0,ie)):r&&(this.search="",this.query={}),u&&(this.pathname=u),slashedProtocol[m]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var H=this.pathname||"",se=this.search||"";this.path=H+se}return this.href=this.format(),this};function urlFormat(n){return typeof n=="string"&&(n=urlParse(n)),n instanceof Url?n.format():Url.prototype.format.call(n)}Url.prototype.format=function(){var n=this.auth||"";n&&(n=encodeURIComponent(n),n=n.replace(/%3A/i,":"),n+="@");var r=this.protocol||"",t=this.pathname||"",e=this.hash||"",a=!1,o="";this.host?a=n+this.host:this.hostname&&(a=n+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(a+=":"+this.port)),this.query&&typeof this.query=="object"&&Object.keys(this.query).length&&(o=querystring.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var s=this.search||o&&"?"+o||"";return r&&r.substr(-1)!==":"&&(r+=":"),this.slashes||(!r||slashedProtocol[r])&&a!==!1?(a="//"+(a||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):a||(a=""),e&&e.charAt(0)!=="#"&&(e="#"+e),s&&s.charAt(0)!=="?"&&(s="?"+s),t=t.replace(/[?#]/g,function(u){return encodeURIComponent(u)}),s=s.replace("#","%23"),r+a+t+s+e};function urlResolve(n,r){return urlParse(n,!1,!0).resolve(r)}Url.prototype.resolve=function(n){return this.resolveObject(urlParse(n,!1,!0)).format()};function urlResolveObject(n,r){return n?urlParse(n,!1,!0).resolveObject(r):r}Url.prototype.resolveObject=function(n){if(typeof n=="string"){var r=new Url;r.parse(n,!1,!0),n=r}for(var t=new Url,e=Object.keys(this),a=0;a<e.length;a++){var o=e[a];t[o]=this[o]}if(t.hash=n.hash,n.href==="")return t.href=t.format(),t;if(n.slashes&&!n.protocol){for(var s=Object.keys(n),u=0;u<s.length;u++){var f=s[u];f!=="protocol"&&(t[f]=n[f])}return slashedProtocol[t.protocol]&&t.hostname&&!t.pathname&&(t.pathname="/",t.path=t.pathname),t.href=t.format(),t}
66if(n.protocol&&n.protocol!==t.protocol){if(!slashedProtocol[n.protocol]){for(var w=Object.keys(n),m=0;m<w.length;m++){var k=w[m];t[k]=n[k]}return t.href=t.format(),t}if(t.protocol=n.protocol,!n.host&&!hostlessProtocol[n.protocol]){for(var N=(n.pathname||"").split("/");N.length&&!(n.host=N.shift()););n.host||(n.host=""),n.hostname||(n.hostname=""),N[0]!==""&&N.unshift(""),N.length<2&&N.unshift(""),t.pathname=N.join("/")}else t.pathname=n.pathname;if(t.search=n.search,t.query=n.query,t.host=n.host||"",t.auth=n.auth,t.hostname=n.hostname||n.host,t.port=n.port,t.pathname||t.search){var x=t.pathname||"",I=t.search||"";t.path=x+I}return t.slashes=t.slashes||n.slashes,t.href=t.format(),t}var D=t.pathname&&t.pathname.charAt(0)==="/",q=n.host||n.pathname&&n.pathname.charAt(0)==="/",O=q||D||t.host&&n.pathname,B=O,S=t.pathname&&t.pathname.split("/")||[],N=n.pathname&&n.pathname.split("/")||[],y=t.protocol&&!slashedProtocol[t.protocol];if(y&&(t.hostname="",t.port=null,t.host&&(S[0]===""?S[0]=t.host:S.unshift(t.host)),t.host="",n.protocol&&(n.hostname=null,n.port=null,n.host&&(N[0]===""?N[0]=n.host:N.unshift(n.host)),n.host=null),O=O&&(N[0]===""||S[0]==="")),q)t.host=n.host||n.host===""?n.host:t.host,t.hostname=n.hostname||n.hostname===""?n.hostname:t.hostname,t.search=n.search,t.query=n.query,S=N;else if(N.length)S||(S=[]),S.pop(),S=S.concat(N),t.search=n.search,t.query=n.query;else if(n.search!=null){if(y){t.host=S.shift(),t.hostname=t.host;var d=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;d&&(t.auth=d.shift(),t.hostname=d.shift(),t.host=t.hostname)}return t.search=n.search,t.query=n.query,(t.pathname!==null||t.search!==null)&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!S.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var h=S.slice(-1)[0],_=(t.host||n.host||S.length>1)&&(h==="."||h==="..")||h==="",R=0,g=S.length;g>=0;g--)h=S[g],h==="."?S.splice(g,1):h===".."?(S.splice(g,1),R++):R&&(S.splice(g,1),R--);if(!O&&!B)for(;R--;R)S.unshift("..");O&&S[0]!==""&&(!S[0]||S[0].charAt(0)!=="/")&&S.unshift(""),_&&S.join("/").substr(-1)!=="/"&&S.push("");var M=S[0]===""||S[0]&&S[0].charAt(0)==="/";if(y){t.hostname=M?"":S.length?S.shift():"",t.host=t.hostname;var d=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;d&&(t.auth=d.shift(),t.hostname=d.shift(),t.host=t.hostname)}return O=O||t.host&&S.length,O&&!M&&S.unshift(""),S.length>0?t.pathname=S.join("/"):(t.pathname=null,t.path=null),(t.pathname!==null||t.search!==null)&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=n.auth||t.auth,t.slashes=t.slashes||n.slashes,t.href=t.format(),t};Url.prototype.parseHost=function(){var n=this.host,r=portPattern.exec(n);r&&(r=r[0],r!==":"&&(this.port=r.substr(1)),n=n.substr(0,n.length-r.length)),n&&(this.hostname=n)};var parse=urlParse,resolve$1=urlResolve,resolveObject=urlResolveObject,format=urlFormat,Url_1=Url;function normalizeArray(n,r){for(var t=0,e=n.length-1;e>=0;e--){var a=n[e];a==="."?n.splice(e,1):a===".."?(n.splice(e,1),t++):t&&(n.splice(e,1),t--)}if(r)for(;t--;t)n.unshift("..");return n}function resolve(){for(var n="",r=!1,t=arguments.length-1;t>=-1&&!r;t--){var e=t>=0?arguments[t]:"/";if(typeof e!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!e)continue;n=e+"/"+n,r=e.charAt(0)==="/"}return n=normalizeArray(filter(n.split("/"),function(a){return!!a}),!r).join("/"),(r?"/":"")+n||"."}function filter(n,r){if(n.filter)return n.filter(r);for(var t=[],e=0;e<n.length;e++)r(n[e],e,n)&&t.push(n[e]);return t}var _globalThis=function(n){function r(){var e=this||self;return delete n.prototype.__magic__,e}if(typeof globalThis=="object")return globalThis;if(this)return r();n.defineProperty(n.prototype,"__magic__",{configurable:!0,get:r});var t=__magic__;return t}(Object),formatImport=format,parseImport=parse,resolveImport=resolve$1,UrlImport=Url_1,URL$1=_globalThis.URL,URLSearchParams=_globalThis.URLSearchParams,percentRegEx=/%/g,backslashRegEx=/\\/g,newlineRegEx=/\n/g,carriageReturnRegEx=/\r/g,tabRegEx=/\t/g,CHAR_FORWARD_SLASH=47;function isURLInstance(n){var r=n??null;return!!(r!==null&&r?.href&&r?.origin)}function getPathFromURLPosix(n){if(n.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var r=n.pathname,t=0;t<r.length;t++)if(r[t]==="%"){var e=r.codePointAt(t+2)|32;if(r[t+1]==="2"&&e===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(r)}
66function encodePathChars(n){return n.includes("%")&&(n=n.replace(percentRegEx,"%25")),n.includes("\\")&&(n=n.replace(backslashRegEx,"%5C")),n.includes(` 67`)&&(n=n.replace(newlineRegEx,"%0A")),n.includes("\r")&&(n=n.replace(carriageReturnRegEx,"%0D")),n.includes(" ")&&(n=n.replace(tabRegEx,"%09")),n}var domainToASCII=function(r){if(typeof r>"u")throw new TypeError('The "domain" argument must be specified');return new URL$1("http://"+r).hostname},domainToUnicode=function(r){if(typeof r>"u")throw new TypeError('The "domain" argument must be specified');return new URL$1("http://"+r).hostname},pathToFileURL=function(r){var t=new URL$1("file://"),e=resolve(r),a=r.charCodeAt(r.length-1);return a===CHAR_FORWARD_SLASH&&e[e.length-1]!=="/"&&(e+="/"),t.pathname=encodePathChars(e),t},fileURLToPath=function(r){if(!isURLInstance(r)&&typeof r!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof r+" ("+r+")");var t=new URL$1(r);if(t.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return getPathFromURLPosix(t)},formatImportWithOverloads=function(r,t){var e,a,o,s;if(t===void 0&&(t={}),!(r instanceof URL$1))return formatImport(r);if(typeof t!="object"||t===null)throw new TypeError('The "options" argument must be of type object.');var u=(e=t.auth)!=null?e:!0,f=(a=t.fragment)!=null?a:!0,w=(o=t.search)!=null?o:!0;(s=t.unicode)!=null;var m=new URL$1(r.toString());return u||(m.username="",m.password=""),f||(m.hash=""),w||(m.search=""),m.toString()},api={format:formatImportWithOverloads,parse:parseImport,resolve:resolveImport,resolveObject,Url:UrlImport,URL:URL$1,URLSearchParams,domainToASCII,domainToUnicode,pathToFileURL,fileURLToPath};const url=Object.freeze(Object.defineProperty({__proto__:null,URL:URL$1,URLSearchParams,Url:UrlImport,default:api,domainToASCII,domainToUnicode,fileURLToPath,format:formatImportWithOverloads,parse:parseImport,pathToFileURL,resolve:resolveImport,resolveObject},Symbol.toStringTag,{value:"Module"})),require$$5=getAugmentedNamespace(url);var hasRequiredStreamHttp;function requireStreamHttp(){return hasRequiredStreamHttp||(hasRequiredStreamHttp=1,function(n){var r=requireRequest(),t=requireResponse(),e=requireImmutable(),a=requireBrowser(),o=require$$5,s=n;s.request=function(u,f){typeof u=="string"?u=o.parse(u):u=e(u);var w=commonjsGlobal.location.protocol.search(/^https?:$/)===-1?"http:":"",m=u.protocol||w,k=u.hostname||u.host,x=u.port,I=u.path||"/";k&&k.indexOf(":")!==-1&&(k="["+k+"]"),u.url=(k?m+"//"+k:"")+(x?":"+x:"")+I,u.method=(u.method||"GET").toUpperCase(),u.headers=u.headers||{};var D=new r(u);return f&&D.on("response",f),D},s.get=function(f,w){var m=s.request(f,w);return m.end(),m},s.ClientRequest=r,s.IncomingMessage=t.IncomingMessage,s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.globalAgent=new s.Agent,s.STATUS_CODES=a,s.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}(streamHttp)),streamHttp}var httpsBrowserify={exports:{}},hasRequiredHttpsBrowserify;function requireHttpsBrowserify(){return hasRequiredHttpsBrowserify||(hasRequiredHttpsBrowserify=1,function(n){var r=requireStreamHttp(),t=require$$5,e=n.exports;for(var a in r)r.hasOwnProperty(a)&&(e[a]=r[a]);e.request=function(s,u){return s=o(s),r.request.call(this,s,u)},e.get=function(s,u){return s=o(s),r.get.call(this,s,u)};function o(s){if(typeof s=="string"&&(s=t.parse(s)),s.protocol||(s.protocol="https:"),s.protocol!=="https:")throw new Error('Protocol "'+s.protocol+'" not supported. Expected "https:"');return s}}(httpsBrowserify)),httpsBrowserify.exports}(function(module,exports){(function(r,t){module.exports=t()})(commonjsGlobal,function(){return(()=>{var __webpack_modules__=[,(n,r,t)=>{function e(z){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(v){return typeof v}:e=function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},e(z)}
67Object.defineProperty(r,"__esModule",{value:!0}),r.StatTimer=r.RenderingCancelledException=r.PixelsPerInch=r.PageViewport=r.PDFDateString=r.LinkTarget=r.DOMStandardFontDataFactory=r.DOMSVGFactory=r.DOMCanvasFactory=r.DOMCMapReaderFactory=void 0,r.addLinkAttributes=X,r.deprecated=de,r.getFilenameFromUrl=C,r.getPdfFilenameFromUrl=$,r.getXfaPageViewport=Z,r.isDataScheme=T,r.isPdfFile=b,r.isValidFetchUrl=V,r.loadScript=U;var a=u(t(2)),o=t(4),s=t(135);function u(z){return z&&z.__esModule?z:{default:z}}function f(z,A){var v=typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(!v){if(Array.isArray(z)||(v=w(z))||A){v&&(z=v);var L=0,J=function(){};return{s:J,n:function(){return L>=z.length?{done:!0}:{done:!1,value:z[L++]}},e:function(ke){throw ke},f:J}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 68In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ne=!0,oe=!1,he;return{s:function(){v=v.call(z)},n:function(){var ke=v.next();return ne=ke.done,ke},e:function(ke){oe=!0,he=ke},f:function(){try{!ne&&v.return!=null&&v.return()}finally{if(oe)throw he}}}}function w(z,A){if(z){if(typeof z=="string")return m(z,A);var v=Object.prototype.toString.call(z).slice(8,-1);if(v==="Object"&&z.constructor&&(v=z.constructor.name),v==="Map"||v==="Set")return Array.from(z);if(v==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(v))return m(z,A)}}function m(z,A){(A==null||A>z.length)&&(A=z.length);for(var v=0,L=new Array(A);v<A;v++)L[v]=z[v];return L}function k(z,A,v,L,J,ne,oe){try{var he=z[ne](oe),Te=he.value}catch(ke){v(ke);return}he.done?A(Te):Promise.resolve(Te).then(L,J)}function x(z){return function(){var A=this,v=arguments;return new Promise(function(L,J){var ne=z.apply(A,v);function oe(Te){k(ne,L,J,oe,he,"next",Te)}function he(Te){k(ne,L,J,oe,he,"throw",Te)}oe(void 0)})}}function I(z,A){if(!(z instanceof A))throw new TypeError("Cannot call a class as a function")}function D(z,A){for(var v=0;v<A.length;v++){var L=A[v];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(z,L.key,L)}}function q(z,A,v){return A&&D(z.prototype,A),v&&D(z,v),z}function O(z,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(A&&A.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),A&&B(z,A)}function B(z,A){return B=Object.setPrototypeOf||function(L,J){return L.__proto__=J,L},B(z,A)}function S(z){var A=d();return function(){var L=h(z),J;if(A){var ne=h(this).constructor;J=Reflect.construct(L,arguments,ne)}else J=L.apply(this,arguments);return N(this,J)}}function N(z,A){if(A&&(e(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y(z)}function y(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}function d(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function h(z){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(v){return v.__proto__||Object.getPrototypeOf(v)},h(z)}var _="noopener noreferrer nofollow",R="http://www.w3.org/2000/svg",g={CSS:96,PDF:72,get PDF_TO_CSS_UNITS(){return(0,o.shadow)(this,"PDF_TO_CSS_UNITS",this.CSS/this.PDF)}};r.PixelsPerInch=g;var M=function(z){O(v,z);var A=S(v);function v(){var L,J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ne=J.ownerDocument,oe=ne===void 0?globalThis.document:ne;return I(this,v),L=A.call(this),L._document=oe,L}return q(v,[{key:"_createCanvas",value:function(J,ne){var oe=this._document.createElement("canvas");return oe.width=J,oe.height=ne,oe}}]),v}(s.BaseCanvasFactory);r.DOMCanvasFactory=M;function H(z){return P.apply(this,arguments)}function P(){return P=x(a.default.mark(function z(A){var v,L,J=arguments;return a.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(v=J.length>1&&J[1]!==void 0?J[1]:!1,!V(A,document.baseURI)){oe.next=21;break}return oe.next=4,fetch(A);case 4:if(L=oe.sent,L.ok){oe.next=7;break}throw new Error(L.statusText);case 7:if(!v){oe.next=15;break}return oe.t1=Uint8Array,oe.next=11,L.arrayBuffer();case 11:oe.t2=oe.sent,oe.t0=new oe.t1(oe.t2),oe.next=20;break;case 15:return oe.t3=o.stringToBytes,oe.next=18,L.text();case 18:oe.t4=oe.sent,oe.t0=(0,oe.t3)(oe.t4);case 20:return oe.abrupt("return",oe.t0);case 21:return oe.abrupt("return",new Promise(function(he,Te){var ke=new XMLHttpRequest;ke.open("GET",A,!0),v&&(ke.responseType="arraybuffer"),ke.onreadystatechange=function(){if(ke.readyState===XMLHttpRequest.DONE){if(ke.status===200||ke.status===0){var Ee;if(v&&ke.response?Ee=new Uint8Array(ke.response):!v&&ke.responseText&&(Ee=(0,o.stringToBytes)(ke.responseText)),Ee){he(Ee);return}}Te(new Error(ke.statusText))}},ke.send(null)}));case 22:case"end":return oe.stop()}},z)})),P.apply(this,arguments)}var F=function(z){O(v,z);var A=S(v);function v(){return I(this,v),A.apply(this,arguments)}return q(v,[{key:"_fetchData",value:function(J,ne){return H(J,this.isCompressed).then(function(oe){return{cMapData:oe,compressionType:ne}})}}]),v}(s.BaseCMapReaderFactory);r.DOMCMapReaderFactory=F;var te=function(z){O(v,z);var A=S(v);function v(){return I(this,v),A.apply(this,arguments)}return q(v,[{key:"_fetchData",value:function(J){return H(J,!0)}}]),v}(s.BaseStandardFontDataFactory);r.DOMStandardFontDataFactory=te;var ae=function(z){O(v,z);var A=S(v);function v(){return I(this,v),A.apply(this,arguments)}return q(v,[{key:"_createSVG",value:function(J){return document.createElementNS(R,J)}}]),v}(s.BaseSVGFactory);r.DOMSVGFactory=ae;var ie=function(){function z(A){var v=A.viewBox,L=A.scale,J=A.rotation,ne=A.offsetX,oe=ne===void 0?0:ne,he=A.offsetY,Te=he===void 0?0:he,ke=A.dontFlip,Ee=ke===void 0?!1:ke;I(this,z),this.viewBox=v,this.scale=L,this.rotation=J,this.offsetX=oe,this.offsetY=Te;var Ie=(v[2]+v[0])/2,Le=(v[3]+v[1])/2,ce,ge,Ce,Be;switch(J%=360,J<0&&(J+=360),J){case 180:ce=-1,ge=0,Ce=0,Be=1;break;case 90:ce=0,ge=1,Ce=1,Be=0;break;case 270:ce=0,ge=-1,Ce=-1,Be=0;break;case 0:ce=1,ge=0,Ce=0,Be=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}Ee&&(Ce=-Ce,Be=-Be);var Ne,ye,be,p;ce===0?(Ne=Math.abs(Le-v[1])*L+oe,ye=Math.abs(Ie-v[0])*L+Te,be=Math.abs(v[3]-v[1])*L,p=Math.abs(v[2]-v[0])*L):(Ne
68=Math.abs(Ie-v[0])*L+oe,ye=Math.abs(Le-v[1])*L+Te,be=Math.abs(v[2]-v[0])*L,p=Math.abs(v[3]-v[1])*L),this.transform=[ce*L,ge*L,Ce*L,Be*L,Ne-ce*L*Ie-Ce*L*Le,ye-ge*L*Ie-Be*L*Le],this.width=be,this.height=p}return q(z,[{key:"clone",value:function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=v.scale,J=L===void 0?this.scale:L,ne=v.rotation,oe=ne===void 0?this.rotation:ne,he=v.offsetX,Te=he===void 0?this.offsetX:he,ke=v.offsetY,Ee=ke===void 0?this.offsetY:ke,Ie=v.dontFlip,Le=Ie===void 0?!1:Ie;return new z({viewBox:this.viewBox.slice(),scale:J,rotation:oe,offsetX:Te,offsetY:Ee,dontFlip:Le})}},{key:"convertToViewportPoint",value:function(v,L){return o.Util.applyTransform([v,L],this.transform)}},{key:"convertToViewportRectangle",value:function(v){var L=o.Util.applyTransform([v[0],v[1]],this.transform),J=o.Util.applyTransform([v[2],v[3]],this.transform);return[L[0],L[1],J[0],J[1]]}},{key:"convertToPdfPoint",value:function(v,L){return o.Util.applyInverseTransform([v,L],this.transform)}}]),z}();r.PageViewport=ie;var se=function(z){O(v,z);var A=S(v);function v(L,J){var ne;return I(this,v),ne=A.call(this,L,"RenderingCancelledException"),ne.type=J,ne}return v}(o.BaseException);r.RenderingCancelledException=se;var re={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};r.LinkTarget=re;function X(z){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=A.url,L=A.target,J=A.rel,ne=A.enabled,oe=ne===void 0?!0:ne;(0,o.assert)(v&&typeof v=="string",'addLinkAttributes: A valid "url" parameter must provided.');var he=(0,o.removeNullCharacters)(v);oe?z.href=z.title=he:(z.href="",z.title="Disabled: ".concat(he),z.onclick=function(){return!1});var Te="";switch(L){case re.NONE:break;case re.SELF:Te="_self";break;case re.BLANK:Te="_blank";break;case re.PARENT:Te="_parent";break;case re.TOP:Te="_top";break}z.target=Te,z.rel=typeof J=="string"?J:_}function T(z){for(var A=z.length,v=0;v<A&&z[v].trim()==="";)v++;return z.substring(v,v+5).toLowerCase()==="data:"}function b(z){return typeof z=="string"&&/\.pdf$/i.test(z)}function C(z){var A=z.indexOf("#"),v=z.indexOf("?"),L=Math.min(A>0?A:z.length,v>0?v:z.length);return z.substring(z.lastIndexOf("/",L)+1,L)}function $(z){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"document.pdf";if(typeof z!="string")return A;if(T(z))return(0,o.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),A;var v=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/,L=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,J=v.exec(z),ne=L.exec(J[1])||L.exec(J[2])||L.exec(J[3]);if(ne&&(ne=ne[0],ne.includes("%")))try{ne=L.exec(decodeURIComponent(ne))[0]}catch{}return ne||A}var W=function(){function z(){I(this,z),this.started=Object.create(null),this.times=[]}return q(z,[{key:"time",value:function(v){v in this.started&&(0,o.warn)("Timer is already running for ".concat(v)),this.started[v]=Date.now()}},{key:"timeEnd",value:function(v){v in this.started||(0,o.warn)("Timer has not been started for ".concat(v)),this.times.push({name:v,start:this.started[v],end:Date.now()}),delete this.started[v]}},{key:"toString",value:function(){var v=[],L=0,J=f(this.times),ne;try{for(J.s();!(ne=J.n()).done;){var oe=ne.value,he=oe.name;he.length>L&&(L=he.length)}}catch(Le){J.e(Le)}finally{J.f()}var Te=f(this.times),ke;try{for(Te.s();!(ke=Te.n()).done;){var Ee=ke.value,Ie=Ee.end-Ee.start;v.push("".concat(Ee.name.padEnd(L)," ").concat(Ie,`ms 69`))}}catch(Le){Te.e(Le)}finally{Te.f()}return v.join("")}}]),z}();r.StatTimer=W;function V(z,A){try{var v=A?new URL(z,A):new URL(z),L=v.protocol;return L==="http:"||L==="https:"}catch{return!1}}function U(z){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return new Promise(function(v,L){var J=document.createElement("script");J.src=z,J.onload=function(ne){A&&J.remove(),v(ne)},J.onerror=function(){L(new Error("Cannot load script at: ".concat(J.src)))},(document.head||document.documentElement).appendChild(J)})}function de(z){console.log("Deprecated API usage: "+z)}var pe,Re=function(){function z(){I(this,z)}return q(z,null,[{key:"toDateObject",value:function(v){if(!v||!(0,o.isString)(v))return null;pe||(pe=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?"));var L=pe.exec(v);if(!L)return null;var J=parseInt(L[1],10),ne=parseInt(L[2],10);ne=ne>=1&&ne<=12?ne-1:0;var oe=parseInt(L[3],10);oe=oe>=1&&oe<=31?oe:1;var he=parseInt(L[4],10);he=he>=0&&he<=23?he:0;var Te=parseInt(L[5],10);Te=Te>=0&&Te<=59?Te:0;var ke=parseInt(L[6],10);ke=ke>=0&&ke<=59?ke:0;var Ee=L[7]||"Z",Ie=parseInt(L[8],10);Ie=Ie>=0&&Ie<=23?Ie:0;var Le=parseInt(L[9],10)||0;return Le=Le>=0&&Le<=59?Le:0,Ee==="-"?(he+=Ie,Te+=Le):Ee==="+"&&(he-=Ie,Te-=Le),new Date(Date.UTC(J,ne,oe,he,Te,ke))}}]),z}();r.PDFDateString=Re;function Z(z,A){var v=A.scale,L=v===void 0?1:v,J=A.rotation,ne=J===void 0?0:J,oe=z.attributes.style,he=oe.width,Te=oe.height,ke=[0,0,parseInt(he),parseInt(Te)];return new ie({viewBox:ke,scale:L,rotation:ne})}},(n,r,t)=>{n.exports=t(3)},(n,r,t)=>{n=t.nmd(n);function e(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(u){return typeof u}:e=function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},e(o)}var a=function(o){var s=Object.prototype,u=s.hasOwnProperty,f,w=typeof Symbol=="function"?Symbol:{},m=w.iterator||"@@iterator",k=w.asyncIterator||"@@asyncIterator",x=w.toStringTag||"@@toStringTag";function I(b,C,$){return Object.defineProperty(b,C,{value:$,enumerable:!0,configurable:!0,writable:!0}),b[C]}try{I({},"")}catch{I=function($,W,V){return $[W]=V}}function D(b,C,$,W){var V=C&&C.prototype instanceof d?C:d,U=Object.create(V.prototype),de=new re(W||[]);return U._invoke=te(b,$,de),U}o.wrap=D;function q(b,C,$){try{return{type:"normal",arg:b.call(C,$)}}catch(W){return{type:"throw",arg:W}}}var O="suspendedStart",B="suspendedYield",S="executing",N="completed",y={};function d(){}function h(){}function _(){}var R={};I(R,m,function(){return this});var g=Object.getPrototypeOf,M=g&&g(g(X([])));M&&M!==s&&u.call(M,m)&&(R=M);var H=_.prototype=d.prototype=Object.create(R);h.prototype=_,I(H,"constructor",_),I(_,"constructor",h),h.displayName=I(_,x,"GeneratorFunction");function P(b){["next","throw","return"].forEach(function(C){I(b,C,function($){return this._invoke(C,$)})})}o.isGeneratorFunction=function(b){var C=typeof b=="function"&&b.constructor;return C?C===h||(C.displayName||C.name)==="GeneratorFunction":!1},o.mark=function(b){return Object.setPrototypeOf?Object.setPrototypeOf(b,_):(b.__proto__=_,I(b,x,"GeneratorFunction")),b.prototype=Object.create(H),b},o.awrap=function(b){return{__await:b}};function F(b,C){function $(U,de,pe,Re){var Z=q(b[U],b,de);if(Z.type==="throw")Re(Z.arg);else{var z=Z.arg,A=z.value;return A&&e(A)==="object"&&u.call(A,"__await")?C.resolve(A.__await).then(function(v){$("next",v,pe,Re)},function(v){$("throw",v,pe,Re)}):C.resolve(A).then(function(v){z.value=v,pe(z)},function(v){return $("throw",v,pe,Re)})}}var W;function V(U,de){function pe(){return new C(function(Re,Z){$(U,de,Re,Z)})}return W=W?W.then(pe,pe):pe()}this._invoke=V}P(F.prototype),I(F.prototype,k,function(){return this}),o.AsyncIterator=F,o.async=function(b,C,$,W,V){V===void 0&&(V=Promise);var U=new F(D(b,C,$,W),V);return o.isGeneratorFunction(C)?U:U.next().then(function(de){return de.done?de.value:U.next()})};function te(b,C,$){var W=O;return function(U,de){if(W===S)throw new Error("Generator is already running");if(W===N){if(U==="throw")throw de;return T()}for($.method=U,$.arg=de;;){var pe=$.delegate;if(pe){var Re=ae(pe,$);if(Re){if(Re===y)continue;return Re}}if($.method==="next")$.sent=$._sent=$.arg;else if($.method==="throw"){if(W===O)throw W=N,$.arg;$.dispatchException($.arg)}else $.method==="return"&&$.abrupt("return",$.arg);W=S;var Z=q(b,C,$);
69if(Z.type==="normal"){if(W=$.done?N:B,Z.arg===y)continue;return{value:Z.arg,done:$.done}}else Z.type==="throw"&&(W=N,$.method="throw",$.arg=Z.arg)}}}function ae(b,C){var $=b.iterator[C.method];if($===f){if(C.delegate=null,C.method==="throw"){if(b.iterator.return&&(C.method="return",C.arg=f,ae(b,C),C.method==="throw"))return y;C.method="throw",C.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var W=q($,b.iterator,C.arg);if(W.type==="throw")return C.method="throw",C.arg=W.arg,C.delegate=null,y;var V=W.arg;if(!V)return C.method="throw",C.arg=new TypeError("iterator result is not an object"),C.delegate=null,y;if(V.done)C[b.resultName]=V.value,C.next=b.nextLoc,C.method!=="return"&&(C.method="next",C.arg=f);else return V;return C.delegate=null,y}P(H),I(H,x,"Generator"),I(H,m,function(){return this}),I(H,"toString",function(){return"[object Generator]"});function ie(b){var C={tryLoc:b[0]};1 in b&&(C.catchLoc=b[1]),2 in b&&(C.finallyLoc=b[2],C.afterLoc=b[3]),this.tryEntries.push(C)}function se(b){var C=b.completion||{};C.type="normal",delete C.arg,b.completion=C}function re(b){this.tryEntries=[{tryLoc:"root"}],b.forEach(ie,this),this.reset(!0)}o.keys=function(b){var C=[];for(var $ in b)C.push($);return C.reverse(),function W(){for(;C.length;){var V=C.pop();if(V in b)return W.value=V,W.done=!1,W}return W.done=!0,W}};function X(b){if(b){var C=b[m];if(C)return C.call(b);if(typeof b.next=="function")return b;if(!isNaN(b.length)){var $=-1,W=function V(){for(;++$<b.length;)if(u.call(b,$))return V.value=b[$],V.done=!1,V;return V.value=f,V.done=!0,V};return W.next=W}}return{next:T}}o.values=X;function T(){return{value:f,done:!0}}return re.prototype={constructor:re,reset:function(C){if(this.prev=0,this.next=0,this.sent=this._sent=f,this.done=!1,this.delegate=null,this.method="next",this.arg=f,this.tryEntries.forEach(se),!C)for(var $ in this)$.charAt(0)==="t"&&u.call(this,$)&&!isNaN(+$.slice(1))&&(this[$]=f)},stop:function(){this.done=!0;var C=this.tryEntries[0],$=C.completion;if($.type==="throw")throw $.arg;return this.rval},dispatchException:function(C){if(this.done)throw C;var $=this;function W(Z,z){return de.type="throw",de.arg=C,$.next=Z,z&&($.method="next",$.arg=f),!!z}for(var V=this.tryEntries.length-1;V>=0;--V){var U=this.tryEntries[V],de=U.completion;if(U.tryLoc==="root")return W("end");if(U.tryLoc<=this.prev){var pe=u.call(U,"catchLoc"),Re=u.call(U,"finallyLoc");if(pe&&Re){if(this.prev<U.catchLoc)return W(U.catchLoc,!0);if(this.prev<U.finallyLoc)return W(U.finallyLoc)}else if(pe){if(this.prev<U.catchLoc)return W(U.catchLoc,!0)}else if(Re){if(this.prev<U.finallyLoc)return W(U.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(C,$){for(var W=this.tryEntries.length-1;W>=0;--W){var V=this.tryEntries[W];if(V.tryLoc<=this.prev&&u.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var U=V;break}}U&&(C==="break"||C==="continue")&&U.tryLoc<=$&&$<=U.finallyLoc&&(U=null);var de=U?U.completion:{};return de.type=C,de.arg=$,U?(this.method="next",this.next=U.finallyLoc,y):this.complete(de)},complete:function(C,$){if(C.type==="throw")throw C.arg;return C.type==="break"||C.type==="continue"?this.next=C.arg:C.type==="return"?(this.rval=this.arg=C.arg,this.method="return",this.next="end"):C.type==="normal"&&$&&(this.next=$),y},finish:function(C){for(var $=this.tryEntries.length-1;$>=0;--$){var W=this.tryEntries[$];if(W.finallyLoc===C)return this.complete(W.completion,W.afterLoc),se(W),y}},catch:function(C){for(var $=this.tryEntries.length-1;$>=0;--$){var W=this.tryEntries[$];if(W.tryLoc===C){var V=W.completion;if(V.type==="throw"){var U=V.arg;se(W)}return U}}throw new Error("illegal catch attempt")},delegateYield:function(C,$,W){return this.delegate={iterator:X(C),resultName:$,nextLoc:W},this.method==="next"&&(this.arg=f),y}},o}(e(n)==="object"?n.exports:{});try{regeneratorRuntime=a}catch{(typeof globalThis>"u"?"undefined":e(globalThis))==="object"?globalThis.regeneratorRuntime=a:Function("r","regeneratorRuntime = r")(a)}},(n,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.VerbosityLevel=r.Util=r.UnknownErrorException=r.UnexpectedResponseException=r.UNSUPPORTED_FEATURES=r.TextRenderingMode=r.StreamType=r.RenderingIntentFlag=r.PermissionFlag=r.PasswordResponses=r.PasswordException=r.PageActionEventType=r.OPS=r.MissingPDFException=r.IsLittleEndianCached=r.IsEvalSupportedCached=r.InvalidPDFException=r.ImageKind=r.IDENTITY_MATRIX=r.FormatError=r.FontType=r.FONT_IDENTITY_MATRIX=r.DocumentActionEventType=r.CMapCompressionType=r.BaseException=r.AnnotationType=r.AnnotationStateModelType=r.AnnotationReviewState=r.AnnotationReplyType=r.AnnotationMode=r.AnnotationMarkedState=r.AnnotationFlag=r.AnnotationFieldFlag=r.AnnotationBorderStyleType=r.AnnotationActionEventType=r.AbortException=void 0,r.arrayByteLength=ue,r.arraysToBytes=Pe,r.assert=ke,r.bytesToString=Y,r.createObjectURL=wt,r.createPromiseCapability=pt,r.createValidAbsoluteUrl=Le,r.escapeString=He,r.getModificationDate=bt,r.getVerbosityLevel=ne,r.info=oe,r.isArrayBuffer=ht,r.isArrayEqual=st,r.isAscii=Ve,r.isBool=_t,r.isNum=Tt,r.isSameOrigin=Ee,r.isString=ot,r.objectFromMap=Ae,r.objectSize=_e,r.removeNullCharacters=G,r.setVerbosityLevel=J,r.shadow=ce,r.string32=l,r.stringToBytes=E,r.stringToPDFString=Xe,r.stringToUTF16BEString=Ze,r.stringToUTF8String=at,r.unreachable=Te,r.utf8StringToString=it,r.warn=he,t(5);function e(we,Ue){for(var Se=0;Se<Ue.length;Se++){var Oe=Ue[Se];Oe.enumerable=Oe.enumerable||!1,Oe.configurable=!0,"value"in Oe&&(Oe.writable=!0),Object.defineProperty(we,Oe.key,Oe)}}function a(we,Ue,Se){return Se&&e(we,Se),we}function o(we){return f(we)||u(we)||D(we)||s()}function s(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 70In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(we){if(typeof Symbol<"u"&&we[Symbol.iterator]!=null||we["@@iterator"]!=null)return Array.from(we)}function f(we){if(Array.isArray(we))return q(we)}function w(we,Ue){return x(we)||k(we,Ue)||D(we,Ue)||m()}
vendor: 8,354 bytes, lines 70-72
70function m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 71In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function k(we,Ue){var Se=we==null?null:typeof Symbol<"u"&&we[Symbol.iterator]||we["@@iterator"];if(Se!=null){var Oe=[],qe=!0,ze=!1,Ye,Qe;try{for(Se=Se.call(we);!(qe=(Ye=Se.next()).done)&&(Oe.push(Ye.value),!(Ue&&Oe.length===Ue));qe=!0);}catch(ut){ze=!0,Qe=ut}finally{try{!qe&&Se.return!=null&&Se.return()}finally{if(ze)throw Qe}}return Oe}}function x(we){if(Array.isArray(we))return we}function I(we,Ue){var Se=typeof Symbol<"u"&&we[Symbol.iterator]||we["@@iterator"];if(!Se){if(Array.isArray(we)||(Se=D(we))||Ue){Se&&(we=Se);var Oe=0,qe=function(){};return{s:qe,n:function(){return Oe>=we.length?{done:!0}:{done:!1,value:we[Oe++]}},e:function(ct){throw ct},f:qe}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 72In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ze=!0,Ye=!1,Qe;return{s:function(){Se=Se.call(we)},n:function(){var ct=Se.next();return ze=ct.done,ct},e:function(ct){Ye=!0,Qe=ct},f:function(){try{!ze&&Se.return!=null&&Se.return()}finally{if(Ye)throw Qe}}}}function D(we,Ue){if(we){if(typeof we=="string")return q(we,Ue);var Se=Object.prototype.toString.call(we).slice(8,-1);if(Se==="Object"&&we.constructor&&(Se=we.constructor.name),Se==="Map"||Se==="Set")return Array.from(we);if(Se==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Se))return q(we,Ue)}}function q(we,Ue){(Ue==null||Ue>we.length)&&(Ue=we.length);for(var Se=0,Oe=new Array(Ue);Se<Ue;Se++)Oe[Se]=we[Se];return Oe}function O(we){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?O=function(Se){return typeof Se}:O=function(Se){return Se&&typeof Symbol=="function"&&Se.constructor===Symbol&&Se!==Symbol.prototype?"symbol":typeof Se},O(we)}function B(we,Ue){if(!(we instanceof Ue))throw new TypeError("Cannot call a class as a function")}function S(we,Ue){if(typeof Ue!="function"&&Ue!==null)throw new TypeError("Super expression must either be null or a function");we.prototype=Object.create(Ue&&Ue.prototype,{constructor:{value:we,writable:!0,configurable:!0}}),Ue&&N(we,Ue)}function N(we,Ue){return N=Object.setPrototypeOf||function(Oe,qe){return Oe.__proto__=qe,Oe},N(we,Ue)}function y(we){var Ue=_();return function(){var Oe=R(we),qe;if(Ue){var ze=R(this).constructor;qe=Reflect.construct(Oe,arguments,ze)}else qe=Oe.apply(this,arguments);return d(this,qe)}}function d(we,Ue){if(Ue&&(O(Ue)==="object"||typeof Ue=="function"))return Ue;if(Ue!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(we)}function h(we){if(we===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return we}function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function R(we){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(Se){return Se.__proto__||Object.getPrototypeOf(Se)},R(we)}var g=[1,0,0,1,0,0];r.IDENTITY_MATRIX=g;var M=[.001,0,0,.001,0,0];r.FONT_IDENTITY_MATRIX=M;var H={ANY:1,DISPLAY:2,PRINT:4,ANNOTATIONS_FORMS:16,ANNOTATIONS_STORAGE:32,ANNOTATIONS_DISABLE:64,OPLIST:256};r.RenderingIntentFlag=H;var P={DISABLE:0,ENABLE:1,ENABLE_FORMS:2,ENABLE_STORAGE:3};r.AnnotationMode=P;var F={PRINT:4,MODIFY_CONTENTS:8,COPY:16,MODIFY_ANNOTATIONS:32,FILL_INTERACTIVE_FORMS:256,COPY_FOR_ACCESSIBILITY:512,ASSEMBLE:1024,PRINT_HIGH_QUALITY:2048};r.PermissionFlag=F;var te={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};r.TextRenderingMode=te;var ae={GRAYSCALE_1BPP:1,RGB_24BPP:2,RGBA_32BPP:3};r.ImageKind=ae;var ie={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};r.AnnotationType=ie;var se={MARKED:"Marked",REVIEW:"Review"};r.AnnotationStateModelType=se;var re={MARKED:"Marked",UNMARKED:"Unmarked"};r.AnnotationMarkedState=re;var X={ACCEPTED:"Accepted",REJECTED:"Rejected",CANCELLED:"Cancelled",COMPLETED:"Completed",NONE:"None"};r.AnnotationReviewState=X;var T={GROUP:"Group",REPLY:"R"};r.AnnotationReplyType=T;var b={INVISIBLE:1,HIDDEN:2,PRINT:4,NOZOOM:8,NOROTATE:16,NOVIEW:32,READONLY:64,LOCKED:128,TOGGLENOVIEW:256,LOCKEDCONTENTS:512};r.AnnotationFlag=b;var 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};r.AnnotationFieldFlag=C;var $={SOLID:1,DASHED:2,BEVELED:3,INSET:4,UNDERLINE:5};r.AnnotationBorderStyleType=$;var W={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"};r.AnnotationActionEventType=W;var V={WC:"WillClose",WS:"WillSave",DS:"DidSave",WP:"WillPrint",DP:"DidPrint"};r.DocumentActionEventType=V;var U={O:"PageOpen",C:"PageClose"};r.PageActionEventType=U;var de={UNKNOWN:"UNKNOWN",FLATE:"FLATE",LZW:"LZW",DCT:"DCT",JPX:"JPX",JBIG:"JBIG",A85:"A85",AHX:"AHX",CCF:"CCF",RLX:"RLX"};r.StreamType=de;var pe={UNKNOWN:"UNKNOWN",TYPE1:"TYPE1",TYPE1STANDARD:"TYPE1STANDARD",TYPE1C:"TYPE1C",CIDFONTTYPE0:"CIDFONTTYPE0",CIDFONTTYPE0C:"CIDFONTTYPE0C",TRUETYPE:"TRUETYPE",CIDFONTTYPE2:"CIDFONTTYPE2",TYPE3:"TYPE3",OPENTYPE:"OPENTYPE",TYPE0:"TYPE0",MMTYPE1:"MMTYPE1"};r.FontType=pe;var Re={ERRORS:0,WARNINGS:1,INFOS:5};r.VerbosityLevel=Re;var Z={NONE:0,BINARY:1,STREAM:2};r.CMapCompressionType=Z;var z={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,beginAnnotations:78,endAnnotations:79,beginAnnotation:80,endAnnotation:81,paintJpegXObject:82,paintImageMaskXObject:83,paintImageMaskXObjectGroup:84,paintImageXObject:85,paintInlineImageXObject:86,paintInlineImageXObjectGroup:87,paintImageXObjectRepeat:88,paintImageMaskXObjectRepeat:89,paintSolidColorImageMask:90,constructPath:91};r.OPS=z;var A={unknown:"unknown",forms:"forms",javaScript:"javaScript",signatures:"signatures",smask:"smask",shadingPattern:"shadingPattern",font:"font",errorTilingPattern:"errorTilingPattern",errorExtGState:"errorExtGState",errorXObject:"errorXObject",errorFontLoadType3:"errorFontLoadType3",errorFontState:"errorFontState",errorFontMissing:"errorFontMissing",errorFontTranslate:"errorFontTranslate",errorColorSpace:"errorColorSpace",errorOperatorList:"errorOperatorList",errorFontToUnicode:"errorFontToUnicode",errorFontLoadNative:"errorFontLoadNative",errorFontBuildPath:"errorFontBuildPath",errorFontGetPath:"errorFontGetPath",errorMarkedContent:"errorMarkedContent",errorContentSubStream:"errorContentSubStream"};
72r.UNSUPPORTED_FEATURES=A;var v={NEED_PASSWORD:1,INCORRECT_PASSWORD:2};r.PasswordResponses=v;var L=Re.WARNINGS;function J(we){Number.isInteger(we)&&(L=we)}function ne(){return L}function oe(we){L>=Re.INFOS&&console.log("Info: ".concat(we))}function he(we){L>=Re.WARNINGS&&console.log("Warning: ".concat(we))}function Te(we){throw new Error(we)}function ke(we,Ue){we||Te(Ue)}function Ee(we,Ue){var Se;try{if(Se=new URL(we),!Se.origin||Se.origin==="null")return!1}catch{return!1}var Oe=new URL(Ue,Se);return Se.origin===Oe.origin}function Ie(we){if(!we)return!1;switch(we.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}function Le(we){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!we)return null;try{if(Se&&typeof we=="string"){if(Se.addDefaultProtocol&&we.startsWith("www.")){var Oe=we.match(/\./g);Oe&&Oe.length>=2&&(we="http://".concat(we))}if(Se.tryConvertEncoding)try{we=at(we)}catch{}}var qe=Ue?new URL(we,Ue):new URL(we);if(Ie(qe))return qe}catch{}return null}function ce(we,Ue,Se){return Object.defineProperty(we,Ue,{value:Se,enumerable:!0,configurable:!0,writable:!1}),Se}var ge=function(){function Ue(Se,Oe){this.constructor===Ue&&Te("Cannot initialize BaseException."),this.message=Se,this.name=Oe}return Ue.prototype=new Error,Ue.constructor=Ue,Ue}();r.BaseException=ge;var Ce=function(we){S(Se,we);var Ue=y(Se);function Se(Oe,qe){var ze;return B(this,Se),ze=Ue.call(this,Oe,"PasswordException"),ze.code=qe,ze}return Se}(ge);r.PasswordException=Ce;var Be=function(we){S(Se,we);var Ue=y(Se);function Se(Oe,qe){var ze;return B(this,Se),ze=Ue.call(this,Oe,"UnknownErrorException"),ze.details=qe,ze}return Se}(ge);r.UnknownErrorException=Be;var Ne=function(we){S(Se,we);var Ue=y(Se);function Se(Oe){return B(this,Se),Ue.call(this,Oe,"InvalidPDFException")}return Se}(ge);r.InvalidPDFException=Ne;var ye=function(we){S(Se,we);var Ue=y(Se);function Se(Oe){return B(this,Se),Ue.call(this,Oe,"MissingPDFException")}return Se}(ge);r.MissingPDFException=ye;var be=function(we){S(Se,we);var Ue=y(Se);function Se(Oe,qe){var ze;return B(this,Se),ze=Ue.call(this,Oe,"UnexpectedResponseException"),ze.status=qe,ze}return Se}(ge);r.UnexpectedResponseException=be;var p=function(we){S(Se,we);var Ue=y(Se);function Se(Oe){return B(this,Se),Ue.call(this,Oe,"FormatError")}return Se}(ge);r.FormatError=p;var ee=function(we){S(Se,we);var Ue=y(Se);function Se(Oe){return B(this,Se),Ue.call(this,Oe,"AbortException")}return Se}(ge);r.AbortException=ee;var Q=/\x00+/g,le=/[\x01-\x1F]/g;function G(we){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return typeof we!="string"?(he("The argument for removeNullCharacters must be a string."),we):(Ue&&(we=we.replace(le," ")),we.replace(Q,""))}function Y(we){ke(we!==null&&O(we)==="object"&&we.length!==void 0,"Invalid argument for bytesToString");var Ue=we.length,Se=8192;if(Ue<Se)return String.fromCharCode.apply(null,we);for(var Oe=[],qe=0;qe<Ue;qe+=Se){var ze=Math.min(qe+Se,Ue),Ye=we.subarray(qe,ze);Oe.push(String.fromCharCode.apply(null,Ye))}return Oe.join("")}function E(we){ke(typeof we=="string","Invalid argument for stringToBytes");for(var Ue=we.length,Se=new Uint8Array(Ue),Oe=0;Oe<Ue;++Oe)Se[Oe]=we.charCodeAt(Oe)&255;return Se}function ue(we){return we.length!==void 0?we.length:(ke(we.byteLength!==void 0,"arrayByteLength - invalid argument."),we.byteLength)}function Pe(we){var Ue=we.length;if(Ue===1&&we[0]instanceof Uint8Array)return we[0];for(var Se=0,Oe=0;Oe<Ue;Oe++)Se+=ue(we[Oe]);for(var qe=0,ze=new Uint8Array(Se),Ye=0;Ye<Ue;Ye++){var Qe=we[Ye];Qe instanceof Uint8Array||(typeof Qe=="string"?Qe=E(Qe):Qe=new Uint8Array(Qe));var ut=Qe.byteLength;ze.set(Qe,qe),qe+=ut}return ze}function l(we){return String.fromCharCode(we>>24&255,we>>16&255,we>>8&255,we&255)}function _e(we){return Object.keys(we).length}function Ae(we){var Ue=Object.create(null),Se=I(we),Oe;try{for(Se.s();!(Oe=Se.n()).done;){var qe=w(Oe.value,2),ze=qe[0],Ye=qe[1];Ue[ze]=Ye}}catch(Qe){Se.e(Qe)}finally{Se.f()}return Ue}function j(){var we=new Uint8Array(4);we[0]=1;var Ue=new Uint32Array(we.buffer,0,1);return Ue[0]===1}var fe={get value(){return ce(this,"value",j())}};r.IsLittleEndianCached=fe;function ve(){try{return new Function(""),!0}catch{return!1}}var Fe={get value(){return ce(this,"value",ve())}};r.IsEvalSupportedCached=Fe;var Me=o(Array(256).keys()).map(function(we){return we.toString(16).padStart(2,"0")}),De=function(){function we(){B(this,we)}return a(we,null,[{key:"makeHexColor",value:function(Se,Oe,qe){return"#".concat(Me[Se]).concat(Me[Oe]).concat(Me[qe])}},{key:"transform",value:function(Se,Oe){return[Se[0]*Oe[0]+Se[2]*Oe[1],Se[1]*Oe[0]+Se[3]*Oe[1],Se[0]*Oe[2]+Se[2]*Oe[3],Se[1]*Oe[2]+Se[3]*Oe[3],Se[0]*Oe[4]+Se[2]*Oe[5]+Se[4],Se[1]*Oe[4]+Se[3]*Oe[5]+Se[5]]}},{key:"applyTransform",value:function(Se,Oe){var qe=Se[0]*Oe[0]+Se[1]*Oe[2]+Oe[4],ze=Se[0]*Oe[1]+Se[1]*Oe[3]+Oe[5];return[qe,ze]}},{key:"applyInverseTransform",value:function(Se,Oe){var qe=Oe[0]*Oe[3]-Oe[1]*Oe[2],ze=(Se[0]*Oe[3]-Se[1]*Oe[2]+Oe[2]*Oe[5]-Oe[4]*Oe[3])/qe,Ye=(-Se[0]*Oe[1]+Se[1]*Oe[0]+Oe[4]*Oe[1]-Oe[5]*Oe[0])/qe;return[ze,Ye]}},{key:"getAxialAlignedBoundingBox",value:function(Se,Oe){var qe=we.applyTransform(Se,Oe),ze=we.applyTransform(Se.slice(2,4),Oe),Ye=we.applyTransform([Se[0],Se[3]],Oe),Qe=we.applyTransform([Se[2],Se[1]],Oe);return[Math.min(qe[0],ze[0],Ye[0],Qe[0]),Math.min(qe[1],ze[1],Ye[1],Qe[1]),Math.max(qe[0],ze[0],Ye[0],Qe[0]),Math.max(qe[1],ze[1],Ye[1],Qe[1])]}},{key:"inverseTransform",value:function(Se){var Oe=Se[0]*Se[3]-Se[1]*Se[2];return[Se[3]/Oe,-Se[1]/Oe,-Se[2]/Oe,Se[0]/Oe,(Se[2]*Se[5]-Se[4]*Se[3])/Oe,(Se[4]*Se[1]-Se[5]*Se[0])/Oe]}},{key:"apply3dTransform",value:function(Se,Oe){return[Se[0]*Oe[0]+Se[1]*Oe[1]+Se[2]*Oe[2],Se[3]*Oe[0]+Se[4]*Oe[1]+Se[5]*Oe[2],Se[6]*Oe[0]+Se[7]*Oe[1]+Se[8]*Oe[2]]}},{key:"singularValueDecompose2dScale",value:function(Se){var Oe=[Se[0],Se[2],Se[1],Se[3]],qe=Se[0]*Oe[0]+Se[1]*Oe[2],ze=Se[0]*Oe[1]+Se[1]*Oe[3],Ye=Se[2]*Oe[0]+Se[3]*Oe[2],Qe=Se[2]*Oe[1]+Se[3]*Oe[3],ut=(qe+Qe)/2,ct=Math.sqrt(Math.pow(qe+Qe,2)-4*(qe*Qe-Ye*ze))/2,St=ut+ct||1,yt=ut-ct||1;return[Math.sqrt(St),Math.sqrt(yt)]}},{key:"normalizeRect",value:function(Se){var Oe=Se.slice(0);return Se[0]>Se[2]&&(Oe[0]=Se[2],Oe[2]=Se[0]),Se[1]>Se[3]&&(Oe[1]=Se[3],Oe[3]=Se[1]),Oe}},{key:"intersect",value:function(Se,Oe){function qe(ut,ct){return ut-ct}var ze=[Se[0],Se[2],Oe[0],Oe[2]].sort(qe),Ye=[Se[1],Se[3],Oe[1],Oe[3]].sort(qe),Qe=[];if(Se=we.normalizeRect(Se),Oe=we.normalizeRect(Oe),ze[0]===Se[0]&&ze[1]===Oe[0]||ze[0]===Oe[0]&&ze[1]===Se[0])Qe[0]=ze[1],Qe[2]=ze[2];else return null;if(Ye[0]===Se[1]&&Ye[1]===Oe[1]||Ye[0]===Oe[1]&&Ye[1]===Se[1])Qe[1]=Ye[1],Qe[3]=Ye[2];else return null;return Qe}},{key:"bezierBoundingBox",value:function(Se,Oe,qe,ze,Ye,Qe,ut,ct){for(var St=[],yt=[[],[]],Ct,Rt,Dt,lt,qt,zt,nr,Yt,Gt=0;Gt<2;++Gt){if(Gt===0?(Rt=6*Se-12*qe+6*Ye,Ct=-3*Se+9*qe-9*Ye+3*ut,Dt=3*qe-3*Se):(Rt=6*Oe-12*ze+6*Qe,Ct=-3*Oe+9*ze-9*Qe+3*ct,Dt=3*ze-3*Oe),Math.abs(Ct)<1e-12){if(Math.abs(Rt)<1e-12)continue;lt=-Dt/Rt,0<lt&<<1&&St.push(lt);continue}nr=Rt*Rt-4*Dt*Ct,Yt=Math.sqrt(nr),!(nr<0)&&(qt=(-Rt+Yt)/(2*Ct),0<qt&&qt<1&&St.push(qt),zt=(-Rt-Yt)/(2*Ct),0<zt&&zt<1&&St.push(zt))}for(var Et=St.length,vt,Lt=Et;Et--;)lt=St[Et],vt=1-lt,yt[0][Et]=vt*vt*vt*Se+3*vt*vt*lt*qe+3*vt*lt*lt*Ye+lt*lt*lt*ut,yt[1][Et]=vt*vt*vt*Oe+3*vt*vt*lt*ze+3*vt*lt*lt*Qe+lt*lt*lt*ct;return yt[0][Lt]=Se,yt[1][Lt]=Oe,yt[0][Lt+1]=ut,yt[1][Lt+1]=ct,yt[0].length=yt[1].length=Lt+2,[Math.min.apply(Math,o(yt[0])),Math.min.apply(Math,o(yt[1])),Math.max.apply(Math,o(yt[0])),Math.max.apply(Math,o(yt[1]))]}}]),we}();r.Util=De;var We=[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 Xe(we){var Ue=we.length,Se=[];if(we[0]==="þ"&&we[1]==="ÿ")for(var Oe=2;Oe<Ue;Oe+=2)Se.push(String.fromCharCode(we.charCodeAt(Oe)<<8|we.charCodeAt(Oe+1)));else if(we[0]==="ÿ"&&we[1]==="þ")for(var qe=2;qe<Ue;qe+=2)Se.push(String.fromCharCode(we.charCodeAt(qe+1)<<8|we.charCodeAt(qe)));else for(var ze=0;ze<Ue;++ze){var Ye=We[we.charCodeAt(ze)];Se.push(Ye?String.fromCharCode(Ye):we.charAt(ze))}return Se.join("")}function He(we){return we.replace(/([()\\\n\r])/g,function(Ue){return Ue===` 73`?"\\n":Ue==="\r"?"\\r":"\\".concat(Ue)})}function Ve(we){return/^[\x00-\x7F]*$/.test(we)}function Ze(we){for(var Ue=["þÿ"],Se=0,Oe=we.length;Se<Oe;Se++){var qe=we.charCodeAt(Se);Ue.push(String.fromCharCode(qe>>8&255),String.fromCharCode(qe&255))}return Ue.join("")}function at(we){return decodeURIComponent(escape(we))}function it(we){return unescape(encodeURIComponent(we))}function _t(we){return typeof we=="boolean"}function Tt(we){return typeof we=="number"}function ot(we){return typeof we=="string"}function ht(we){return O(we)==="object"&&we!==null&&we.byteLength!==void 0}function st(we,Ue){if(we.length!==Ue.length)return!1;for(var Se=0,Oe=we.length;Se<Oe;Se++)if(we[Se]!==Ue[Se])return!1;return!0}function bt(){var we=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Date,Ue=[we.getUTCFullYear().toString(),(we.getUTCMonth()+1).toString().padStart(2,"0"),we.getUTCDate().toString().padStart(2,"0"),we.getUTCHours().toString().padStart(2,"0"),we.getUTCMinutes().toString().padStart(2,"0"),we.getUTCSeconds().toString().padStart(2,"0")];return Ue.join("")}function pt(){var we=Object.create(null),Ue=!1;return Object.defineProperty(we,"settled",{get:function(){return Ue}}),we.promise=new Promise(function(Se,Oe){we.resolve=function(qe){Ue=!0,Se(qe)},we.reject=function(qe){Ue=!0,Oe(qe)}}),we}function wt(we){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",Se=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(URL.createObjectURL&&typeof Blob<"u"&&!Se)return URL.createObjectURL(new Blob([we],{type:Ue}));for(var Oe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
73+/=",qe="data:".concat(Ue,";base64,"),ze=0,Ye=we.length;ze<Ye;ze+=3){var Qe=we[ze]&255,ut=we[ze+1]&255,ct=we[ze+2]&255,St=Qe>>2,yt=(Qe&3)<<4|ut>>4,Ct=ze+1<Ye?(ut&15)<<2|ct>>6:64,Rt=ze+2<Ye?ct&63:64;qe+=Oe[St]+Oe[yt]+Oe[Ct]+Oe[Rt]}return qe}},(n,r,t)=>{var e=t(6);(typeof globalThis>"u"||!globalThis._pdfjsCompatibilityChecked)&&((typeof globalThis>"u"||globalThis.Math!==Math)&&(globalThis=t(7)),globalThis._pdfjsCompatibilityChecked=!0,function(){globalThis.btoa||!e.isNodeJS||(globalThis.btoa=function(o){return buffer.Buffer.from(o,"binary").toString("base64")})}(),function(){globalThis.atob||!e.isNodeJS||(globalThis.atob=function(o){return buffer.Buffer.from(o,"base64").toString("binary")})}(),function(){globalThis.DOMMatrix||!e.isNodeJS||(globalThis.DOMMatrix=t(69))}(),function(){Object.fromEntries||t(70)}(),function(){globalThis.Promise.allSettled||(globalThis.Promise=t(97))}(),function(){globalThis.ReadableStream||!e.isNodeJS||(globalThis.ReadableStream=t(134).ReadableStream)}())},(n,r)=>{Object.defineProperty(r,"__esMo
73dule",{value:!0}),r.isNodeJS=void 0;function t(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(s){return typeof s}:t=function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s},t(a)}var e=(typeof api$1>"u"?"undefined":t(api$1))==="object"&&api$1+""=="[object process]"&&!api$1.versions.nw&&!(api$1.versions.electron&&api$1.type&&api$1.type!=="browser");r.isNodeJS=e},(n,r,t)=>{t(8),n.exports=t(10)},(n,r,t)=>{var e=t(9),a=t(10);e({global:!0},{globalThis:a})},(n,r,t)=>{var e=t(10),a=t(11).f,o=t(47),s=t(50),u=t(41),f=t(57),w=t(68);n.exports=function(m,k){var x=m.target,I=m.global,D=m.stat,q,O,B,S,N,y;if(I?O=e:D?O=e[x]||u(x,{}):O=(e[x]||{}).prototype,O)for(B in k){if(N=k[B],m.noTargetGet?(y=a(O,B),S=y&&y.value):S=O[B],q=w(I?B:x+(D?".":"#")+B,m.forced),!q&&S!==void 0){if(typeof N==typeof S)continue;f(N,S)}(m.sham||S&&S.sham)&&o(N,"sham",!0),s(O,B,N,m)}}},n=>{var r=function(t){return t&&t.Math==Math&&t};n.exports=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof commonjsGlobal=="object"&&commonjsGlobal)||function(){return this}()||Function("return this")()},(n,r,t)=>{var e=t(12),a=t(14),o=t(15),s=t(16),u=t(17),f=t(22),w=t(42),m=t(45),k=Object.getOwnPropertyDescriptor;r.f=e?k:function(I,D){if(I=u(I),D=f(D),m)try{return k(I,D)}catch{}if(w(I,D))return s(!a(o.f,I,D),I[D])}},(n,r,t)=>{var e=t(13);n.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},n=>{n.exports=function(r){try{return!!r()}catch{return!0}}},n=>{var r=Function.prototype.call;n.exports=r.bind?r.bind(r):function(){return r.apply(r,arguments)}},(n,r)=>{var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,a=e&&!t.call({1:2},1);r.f=a?function(s){var u=e(this,s);return!!u&&u.enumerable}:t},n=>{n.exports=function(r,t){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:t}}},(n,r,t)=>{var e=t(18),a=t(21);n.exports=function(o){return e(a(o))}},(n,r,t)=>{var e=t(10),a=t(19),o=t(13),s=t(20),u=e.Object,f=a("".split);n.exports=o(function(){return!u("z").propertyIsEnumerable(0)})?function(w){return s(w)=="String"?f(w,""):u(w)}:u},n=>{var r=Function.prototype,t=r.bind,e=r.call,a=t&&t.bind(e);n.exports=t?function(o){return o&&a(e,o)}:function(o){return o&&function(){return e.apply(o,arguments)}}},(n,r,t)=>{var e=t(19),a=e({}.toString),o=e("".slice);n.exports=function(s){return o(a(s),8,-1)}},(n,r,t)=>{var e=t(10),a=e.TypeError;n.exports=function(o){if(o==null)throw a("Can't call method on "+o);return o}},(n,r,t)=>{var e=t(23),a=t(26);n.exports=function(o){var s=e(o,"string");return a(s)?s:s+""}},(n,r,t)=>{var e=t(10),a=t(14),o=t(24),s=t(26),u=t(33),f=t(36),w=t(37),m=e.TypeError,k=w("toPrimitive");n.exports=function(x,I){if(!o(x)||s(x))return x;var D=u(x,k),q;if(D){if(I===void 0&&(I="default"),q=a(D,x,I),!o(q)||s(q))return q;throw m("Can't convert object to primitive value")}return I===void 0&&(I="number"),f(x,I)}},(n,r,t)=>{var e=t(25);n.exports=function(a){return typeof a=="object"?a!==null:e(a)}},n=>{n.exports=function(r){return typeof r=="function"}},(n,r,t)=>{var e=t(10),a=t(27),o=t(25),s=t(28),u=t(29),f=e.Object;n.exports=u?function(w){return typeof w=="symbol"}:function(w){var m=a("Symbol");return o(m)&&s(m.prototype,f(w))}},(n,r,t)=>{var e=t(10),a=t(25),o=function(s){return a(s)?s:void 0};n.exports=function(s,u){return arguments.length<2?o(e[s]):e[s]&&e[s][u]}},(n,r,t)=>{var e=t(19);n.exports=e({}.isPrototypeOf)},(n,r,t)=>{var e=t(30);n.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},(n,r,t)=>{var e=t(31),a=t(13);n.exports=!!Object.getOwnPropertySymbols&&!a(function(){var o=Symbol();return!String(o)||!(Object(o)instanceof Symbol)||!Symbol.sham&&e&&e<41})},(n,r,t)=>{var e=t(10),a=t(32),o=e.process,s=e.Deno,u=o&&o.versions||s&&s.version,f=u&&u.v8,w,m;f&&(w=f.split("."),m=w[0]>0&&w[0]<4?1:+(w[0]+w[1])),!m&&a&&(w=a.match(/Edge\/(\d+)/),(!w||w[1]>=74)&&(w=a.match(/Chrome\/(\d+)/),w&&(m=+w[1]))),n.exports=m},(n,r,t)=>{var e=t(27);n.exports=e("navigator","userAgent")||""},(n,r,t)=>{var e=t(34);n.exports=function(a,o){var s=a[o];return s==null?void 0:e(s)}},(n,r,t)=>{var e=t(10),a=t(25),o=t(35),s=e.TypeError;n.exports=function(u){if(a(u))return u;throw s(o(u)+" is not a function")}},(n,r,t)=>{var e=t(10),a=e.String;n.exports=function(o){try{return a(o)}catch{return"Object"}}},(n,r,t)=>{var e=t(10),a=t(14),o=t(25),s=t(24),u=e.TypeError;n.exports=function(f,w){var m,k;if(w==="string"&&o(m=f.toString)&&!s(k=a(m,f))||o(m=f.valueOf)&&!s(k=a(m,f))||w!=="string"&&o(m=f.toString)&&!s(k=a(m,f)))return k;throw u("Can't convert object to primitive value")}},(n,r,t)=>{var e=t(10),a=t(38),o=t(42),s=t(44),u=t(30),f=t(29),w=a("wks"),m=e.Symbol,k=m&&m.for,x=f?m:m&&m.withoutSetter||s;n.exports=function(I){if(!o(w,I)||!(u||typeof w[I]=="string")){var D="Symbol."+I;u&&o(m,I)?w[I]=m[I]:f&&k?w[I]=k(D):w[I]=x(D)}return w[I]}},(n,r,t)=>{var e=t(39),a=t(40);(n.exports=function(o,s){return a[o]||(a[o]=s!==void 0?s:{})})("versions",[]).push({version:"3.19.3",mode:e?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},n=>{n.exports=!1},(n,r,t)=>
73{var e=t(10),a=t(41),o="__core-js_shared__",s=e[o]||a(o,{});n.exports=s},(n,r,t)=>{var e=t(10),a=Object.defineProperty;n.exports=function(o,s){try{a(e,o,{value:s,configurable:!0,writable:!0})}catch{e[o]=s}return s}},(n,r,t)=>{var e=t(19),a=t(43),o=e({}.hasOwnProperty);n.exports=Object.hasOwn||function(u,f){return o(a(u),f)}},(n,r,t)=>{var e=t(10),a=t(21),o=e.Object;n.exports=function(s){return o(a(s))}},(n,r,t)=>{var e=t(19),a=0,o=Math.random(),s=e(1 .toString);n.exports=function(u){return"Symbol("+(u===void 0?"":u)+")_"+s(++a+o,36)}},(n,r,t)=>{var e=t(12),a=t(13),o=t(46);n.exports=!e&&!a(function(){return Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a!=7})},(n,r,t)=>{var e=t(10),a=t(24),o=e.document,s=a(o)&&a(o.createElement);n.exports=function(u){return s?o.createElement(u):{}}},(n,r,t)=>{var e=t(12),a=t(48),o=t(16);n.exports=e?function(s,u,f){return a.f(s,u,o(1,f))}:function(s,u,f){return s[u]=f,s}},(n,r,t)=>{var e=t(10),a=t(12),o=t(45),s=t(49),u=t(22),f=e.TypeError,w=Object.defineProperty;r.f=a?w:function(k,x,I){if(s(k),x=u(x),s(I),o)try{return w(k,x,I)}catch{}if("get"in I||"set"in I)throw f("Accessors not supported");return"value"in I&&(k[x]=I.value),k}},(n,r,t)=>{var e=t(10),a=t(24),o=e.String,s=e.TypeError;n.exports=function(u){if(a(u))return u;throw s(o(u)+" is not an object")}},(n,r,t)=>{var e=t(10),a=t(25),o=t(42),s=t(47),u=t(41),f=t(51),w=t(52),m=t(56).CONFIGURABLE,k=w.get,x=w.enforce,I=String(String).split("String");(n.exports=function(D,q,O,B){var S=B?!!B.unsafe:!1,N=B?!!B.enumerable:!1,y=B?!!B.noTargetGet:!1,d=B&&B.name!==void 0?B.name:q,h;if(a(O)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(O,"name")||m&&O.name!==d)&&s(O,"name",d),h=x(O),h.source||(h.source=I.join(typeof d=="string"?d:""))),D===e){N?D[q]=O:u(q,O);return}else S?!y&&D[q]&&(N=!0):delete D[q];N?D[q]=O:s(D,q,O)})(Function.prototype,"toString",function(){return a(this)&&k(this).source||f(this)})},(n,r,t)=>{var e=t(19),a=t(25),o=t(40),s=e(Function.toString);a(o.inspectSource)||(o.inspectSource=function(u){return s(u)}),n.exports=o.inspectSource},(n,r,t)=>{var e=t(53),a=t(10),o=t(19),s=t(24),u=t(47),f=t(42),w=t(40),m=t(54),k=t(55),x="Object already initialized",I=a.TypeError,D=a.WeakMap,q,O,B,S=function(g){return B(g)?O(g):q(g,{})},N=function(g){return function(M){var H;if(!s(M)||(H=O(M)).type!==g)throw I("Incompatible receiver, "+g+" required");return H}};if(e||w.state){var y=w.state||(w.state=new D),d=o(y.get),h=o(y.has),_=o(y.set);q=function(g,M){if(h(y,g))throw new I(x);return M.facade=g,_(y,g,M),M},O=function(g){return d(y,g)||{}},B=function(g){return h(y,g)}}else{var R=m("state");k[R]=!0,q=function(g,M){if(f(g,R))throw new I(x);return M.facade=g,u(g,R,M),M},O=function(g){return f(g,R)?g[R]:{}},B=function(g){return f(g,R)}}n.exports={set:q,get:O,has:B,enforce:S,getterFor:N}},(n,r,t)=>{var e=t(10),a=t(25),o=t(51),s=e.WeakMap;n.exports=a(s)&&/native code/.test(o(s))},(n,r,t)=>{var e=t(38),a=t(44),o=e("keys");n.exports=function(s){return o[s]||(o[s]=a(s))}},n=>{n.exports={}},(n,r,t)=>{var e=t(12),a=t(42),o=Function.prototype,s=e&&Object.getOwnPropertyDescriptor,u=a(o,"name"),f=u&&function(){}.name==="something",w=u&&(!e||e&&s(o,"name").configurable);n.exports={EXISTS:u,PROPER:f,CONFIGURABLE:w}},(n,r,t)=>{var e=t(42),a=t(58),o=t(11),s=t(48);n.exports=function(u,f){for(var w=a(f),m=s.f,k=o.f,x=0;x<w.length;x++){var I=w[x];e(u,I)||m(u,I,k(f,I))}}},(n,r,t)=>{var e=t(27),a=t(19),o=t(59),s=t(67),u=t(49),f=a([].concat);n.exports=e("Reflect","ownKeys")||function(m){var k=o.f(u(m)),x=s.f;return x?f(k,x(m)):k}},(n,r,t)=>{var e=t(60),a=t(66),o=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(u){return e(u,o)}},(n,r,t)=>{var e=t(19),a=t(42),o=t(17),s=t(61).indexOf,u=t(55),f=e([].push);n.exports=function(w,m){var k=o(w),x=0,I=[],D;for(D in k)!a(u,D)&&a(k,D)&&f(I,D);for(;m.length>x;)a(k,D=m[x++])&&(~s(I,D)||f(I,D));return I}},(n,r,t)=>{var e=t(17),a=t(62),o=t(64),s=function(u){return function(f,w,m){var k=e(f),x=o(k),I=a(m,x),D;if(u&&w!=w){for(;x>I;)if(D=k[I++],D!=D)return!0}else for(;x>I;I++)if((u||I in k)&&k[I]===w)return u||I||0;return!u&&-1}};n.exports={includes:s(!0),indexOf:s(!1)}},(n,r,t)=>{var e=t(63),a=Math.max,o=Math.min;n.exports=function(s,u){var f=e(s);return f<0?a(f+u,0):o(f,u)}},n=>{var r=Math.ceil,t=Math.floor;n.exports=function(e){var a=+e;return a!==a||a===0?0:(a>0?t:r)(a)}},(n,r,t)=>{var e=t(65);n.exports=function(a){return e(a.length)}},(n,r,t)=>{var e=t(63),a=Math.min;n.exports=function(o){return o>0?a(e(o),9007199254740991):0}},n=>{n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
73ing","toString","valueOf"]},(n,r)=>{r.f=Object.getOwnPropertySymbols},(n,r,t)=>{var e=t(13),a=t(25),o=/#|\.prototype\./,s=function(k,x){var I=f[u(k)];return I==m?!0:I==w?!1:a(x)?e(x):!!x},u=s.normalize=function(k){return String(k).replace(o,".").toLowerCase()},f=s.data={},w=s.NATIVE="N",m=s.POLYFILL="P";n.exports=s},(n,r,t)=>{var e,a;function o(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o=function(f){return typeof f}:o=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},o(s)}(function(s,u){o(r)==="object"?n.exports=u():(e=u,a=typeof e=="function"?e.call(r,t,r,n):e,a!==void 0&&(n.exports=a))})(void 0,function(){function s(y){var d=new O,h=Array.from(y);if(!h.every(function(Re){return!Number.isNaN(Re)}))throw TypeError('CSSMatrix: "'+y+'" must only have numbers.');if(h.length===16){var _=h[0],R=h[1],g=h[2],M=h[3],H=h[4],P=h[5],F=h[6],te=h[7],ae=h[8],ie=h[9],se=h[10],re=h[11],X=h[12],T=h[13],b=h[14],C=h[15];d.m11=_,d.a=_,d.m21=H,d.c=H,d.m31=ae,d.m41=X,d.e=X,d.m12=R,d.b=R,d.m22=P,d.d=P,d.m32=ie,d.m42=T,d.f=T,d.m13=g,d.m23=F,d.m33=se,d.m43=b,d.m14=M,d.m24=te,d.m34=re,d.m44=C}else if(h.length===6){var $=h[0],W=h[1],V=h[2],U=h[3],de=h[4],pe=h[5];d.m11=$,d.a=$,d.m12=W,d.b=W,d.m21=V,d.c=V,d.m22=U,d.d=U,d.m41=de,d.e=de,d.m42=pe,d.f=pe}else throw new TypeError("CSSMatrix: expecting an Array of 6/16 values.");return d}function u(y){var d=Object.keys(new O);if(o(y)==="object"&&d.every(function(h){return h in y}))return s([y.m11,y.m12,y.m13,y.m14,y.m21,y.m22,y.m23,y.m24,y.m31,y.m32,y.m33,y.m34,y.m41,y.m42,y.m43,y.m44]);throw TypeError('CSSMatrix: "'+y+'" is not a DOMMatrix / CSSMatrix / JSON compatible object.')}function f(y){if(typeof y!="string")throw TypeError('CSSMatrix: "'+y+'" is not a string.');
73var d=String(y).replace(/\s/g,""),h=new O,_='CSSMatrix: invalid transform string "'+y+'"';return d.split(")").filter(function(R){return R}).forEach(function(R){var g=R.split("("),M=g[0],H=g[1];if(!H)throw TypeError(_);var P=H.split(",").map(function(U){return U.includes("rad")?parseFloat(U)*(180/Math.PI):parseFloat(U)}),F=P[0],te=P[1],ae=P[2],ie=P[3],se=[F,te,ae],re=[F,te,ae,ie];if(M==="perspective"&&F&&[te,ae].every(function(U){return U===void 0}))h.m34=-1/F;else if(M.includes("matrix")&&[6,16].includes(P.length)&&P.every(function(U){return!Number.isNaN(+U)})){var X=P.map(function(U){return Math.abs(U)<1e-6?0:U});h=h.multiply(s(X))}else if(M==="translate3d"&&se.every(function(U){return!Number.isNaN(+U)}))h=h.translate(F,te,ae);else if(M==="translate"&&F&&ae===void 0)h=h.translate(F,te||0,0);else if(M==="rotate3d"&&re.every(function(U){return!Number.isNaN(+U)})&&ie)h=h.rotateAxisAngle(F,te,ae,ie);else if(M==="rotate"&&F&&[te,ae].every(function(U){return U===void 0}))h=h.rotate(0,0,F);else if(M==="scale3d"&&se.every(function(U){return!Number.isNaN(+U)})&&se.some(function(U){return U!==1}))h=h.scale(F,te,ae);else if(M==="scale"&&!Number.isNaN(F)&&F!==1&&ae===void 0){var T=Number.isNaN(+te),b=T?F:te;h=h.scale(F,b,1)}else if(M==="skew"&&F&&ae===void 0)h=h.skewX(F),h=te?h.skewY(te):h;else if(/[XYZ]/.test(M)&&F&&[te,ae].every(function(U){return U===void 0})&&["translate","rotate","scale","skew"].some(function(U){return M.includes(U)}))if(["skewX","skewY"].includes(M))h=h[M](F);else{var C=M.replace(/[XYZ]/,""),$=M.replace(C,""),W=["X","Y","Z"].indexOf($),V=[W===0?F:0,W===1?F:0,W===2?F:0];h=h[C].apply(h,V)}else throw TypeError(_)}),h}function w(y,d,h){var _=new O;return _.m41=y,_.e=y,_.m42=d,_.f=d,_.m43=h,_}function m(y,d,h){var _=new O,R=Math.PI/180,g=y*R,M=d*R,H=h*R,P=Math.cos(g),F=-Math.sin(g),te=Math.cos(M),ae=-Math.sin(M),ie=Math.cos(H),se=-Math.sin(H),re=te*ie,X=-te*se;_.m11=re,_.a=re,_.m12=X,_.b=X,_.m13=ae;var T=F*ae*ie+P*se;_.m21=T,_.c=T;var b=P*ie-F*ae*se;return _.m22=b,_.d=b,_.m23=-F*te,_.m31=F*se-P*ae*ie,_.m32=F*ie+P*ae*se,_.m33=P*te,_}function k(y,d,h,_){var R=new O,g=_*(Math.PI/360),M=Math.sin(g),H=Math.cos(g),P=M*M,F=Math.sqrt(y*y+d*d+h*h),te=y,ae=d,ie=h;F===0?(te=0,ae=0,ie=1):(te/=F,ae/=F,ie/=F);var se=te*te,re=ae*ae,X=ie*ie,T=1-2*(re+X)*P;R.m11=T,R.a=T;var b=2*(te*ae*P+ie*M*H);R.m12=b,R.b=b,R.m13=2*(te*ie*P-ae*M*H);var C=2*(ae*te*P-ie*M*H);R.m21=C,R.c=C;var $=1-2*(X+se)*P;return R.m22=$,R.d=$,R.m23=2*(ae*ie*P+te*M*H),R.m31=2*(ie*te*P+ae*M*H),R.m32=2*(ie*ae*P-te*M*H),R.m33=1-2*(se+re)*P,R}function x(y,d,h){var _=new O;return _.m11=y,_.a=y,_.m22=d,_.d=d,_.m33=h,_}function I(y){var d=new O,h=y*Math.PI/180,_=Math.tan(h);return d.m21=_,d.c=_,d}function D(y){var d=new O,h=y*Math.PI/180,_=Math.tan(h);return d.m12=_,d.b=_,d}function q(y,d){var h=d.m11*y.m11+d.m12*y.m21+d.m13*y.m31+d.m14*y.m41,_=d.m11*y.m12+d.m12*y.m22+d.m13*y.m32+d.m14*y.m42,R=d.m11*y.m13+d.m12*y.m23+d.m13*y.m33+d.m14*y.m43,g=d.m11*y.m14+d.m12*y.m24+d.m13*y.m34+d.m14*y.m44,M=d.m21*y.m11+d.m22*y.m21+d.m23*y.m31+d.m24*y.m41,H=d.m21*y.m12+d.m22*y.m22+d.m23*y.m32+d.m24*y.m42,P=d.m21*y.m13+d.m22*y.m23+d.m23*y.m33+d.m24*y.m43,F=d.m21*y.m14+d.m22*y.m24+d.m23*y.m34+d.m24*y.m44,te=d.m31*y.m11+d.m32*y.m21+d.m33*y.m31+d.m34*y.m41,ae=d.m31*y.m12+d.m32*y.m22+d.m33*y.m32+d.m34*y.m42,ie=d.m31*y.m13+d.m32*y.m23+d.m33*y.m33+d.m34*y.m43,se=d.m31*y.m14+d.m32*y.m24+d.m33*y.m34+d.m34*y.m44,re=d.m41*y.m11+d.m42*y.m21+d.m43*y.m31+d.m44*y.m41,X=d.m41*y.m12+d.m42*y.m22+d.m43*y.m32+d.m44*y.m42,T=d.m41*y.m13+d.m42*y.m23+d.m43*y.m33+d.m44*y.m43,b=d.m41*y.m14+d.m42*y.m24+d.m43*y.m34+d.m44*y.m44;return s([h,_,R,g,M,H,P,F,te,ae,ie,se,re,X,T,b])}var O=function(){for(var d=[],h=arguments.length;h--;)d[h]=arguments[h];var _=this;if(_.a=1,_.b=0,_.c=0,_.d=1,_.e=0,_.f=0,_.m11=1,_.m12=0,_.m13=0,_.m14=0,_.m21=0,_.m22=1,_.m23=0,_.m24=0,_.m31=0,_.m32=0,_.m33=1,_.m34=0,_.m41=0,_.m42=0,_.m43=0,_.m44=1,d&&d.length){var R=[16,6].some(function(g){return g===d.length})?d:d[0];return _.setMatrixValue(R)}return _},B={isIdentity:{configurable:!0},is2D:{configurable:!0}};B.isIdentity.set=function(y){this.isIdentity=y},B.isIdentity.get=function(){var y=this;return y.m11===1&&y.m12===0&&y.m13===0&&y.m14===0&&y.m21===0&&y.m22===1&&y.m23===0&&y.m24===0&&y.m31===0&&y.m32===0&&y.m33===1&&y.m34===0&&y.m41===0&&y.m42===0&&y.m43===0&&y.m44===1},B.is2D.get=function(){var y=this;return y.m31===0&&y.m32===0&&y.m33===1&&y.m34===0&&y.m43===0&&y.m44===1},B.is2D.set=function(y){this.is2D=y}
73,O.prototype.setMatrixValue=function(d){var h=this;return[Array,Float64Array,Float32Array].some(function(_){return d instanceof _})?s(d):typeof d=="string"&&d.length&&d!=="none"?f(d):o(d)==="object"?u(d):h},O.prototype.toArray=function(){var d=this,h=Math.pow(10,6),_;return d.is2D?_=[d.a,d.b,d.c,d.d,d.e,d.f]:_=[d.m11,d.m12,d.m13,d.m14,d.m21,d.m22,d.m23,d.m24,d.m31,d.m32,d.m33,d.m34,d.m41,d.m42,d.m43,d.m44],_.map(function(R){return Math.abs(R)<1e-6?0:(R*h>>0)/h})},O.prototype.toString=function(){var d=this,h=d.toArray(),_=d.is2D?"matrix":"matrix3d";return _+"("+h+")"},O.prototype.toJSON=function(){var d=this,h=d.is2D,_=d.isIdentity;return Object.assign({},d,{is2D:h,isIdentity:_})},O.prototype.multiply=function(d){return q(this,d)},O.prototype.translate=function(d,h,_){var R=d,g=h,M=_;return M===void 0&&(M=0),g===void 0&&(g=0),q(this,w(R,g,M))},O.prototype.scale=function(d,h,_){var R=d,g=h,M=_;return g===void 0&&(g=d),M===void 0&&(M=1),q(this,x(R,g,M))},O.prototype.rotate=function(d,h,_){var R=d,g=h,M=_;return g===void 0&&(g=0),M===void 0&&(M=R,R=0),q(this,m(R,g,M))},O.prototype.rotateAxisAngle=function(d,h,_,R){if([d,h,_,R].some(function(g){return Number.isNaN(g)}))throw new TypeError("CSSMatrix: expecting 4 values");return q(this,k(d,h,_,R))},O.prototype.skewX=function(d){return q(this,I(d))},O.prototype.skewY=function(d){return q(this,D(d))},O.prototype.transformPoint=function(d){var h=this,_=w(d.x,d.y,d.z);return _.m44=d.w||1,_=h.multiply(_),{x:_.m41,y:_.m42,z:_.m43,w:_.m44}},O.prototype.transform=function(d){var h=this,_=h.m11*d.x+h.m12*d.y+h.m13*d.z+h.m14*d.w,R=h.m21*d.x+h.m22*d.y+h.m23*d.z+h.m24*d.w,g=h.m31*d.x+h.m32*d.y+h.m33*d.z+h.m34*d.w,M=h.m41*d.x+h.m42*d.y+h.m43*d.z+h.m44*d.w;return{x:_/M,y:R/M,z:g/M,w:M}},Object.defineProperties(O.prototype,B),Object.assign(O,{Translate:w,Rotate:m,RotateAxisAngle:k,Scale:x,SkewX:I,SkewY:D,Multiply:q,fromArray:s,fromMatrix:u,fromString:f});var S="0.0.24",N=S;return Object.assign(O,{Version:N}),O})},(n,r,t)=>{t(71),t(86);var e=t(96);n.exports=e.Object.fromEntries},(n,r,t)=>{var e=t(17),a=t(72),o=t(77),s=t(52),u=t(78),f="Array Iterator",w=s.set,m=s.getterFor(f);n.exports=u(Array,"Array",function(k,x){w(this,{type:f,target:e(k),index:0,kind:x})},function(){var k=m(this),x=k.target,I=k.kind,D=k.index++;return!x||D>=x.length?(k.target=void 0,{value:void 0,done:!0}):I=="keys"?{value:D,done:!1}:I=="values"?{value:x[D],done:!1}:{value:[D,x[D]],done:!1}},"values"),o.Arguments=o.Array,a("keys"),a("values"),a("entries")},(n,r,t)=>{var e=t(37),a=t(73),o=t(48),s=e("unscopables"),u=Array.prototype;u[s]==null&&o.f(u,s,{configurable:!0,value:a(null)}),n.exports=function(f){u[s][f]=!0}},(n,r,t)=>{var e=t(49),a=t(74),o=t(66),s=t(55),u=t(76),f=t(46),w=t(54),m=">",k="<",x="prototype",I="script",D=w("IE_PROTO"),q=function(){},O=function(d){return k+I+m+d+k+"/"+I+m},B=function(d){d.write(O("")),d.close();var h=d.parentWindow.Object;return d=null,h},S=function(){var d=f("iframe"),h="java"+I+":",_;return d.style.display="none",u.appendChild(d),d.src=String(h),_=d.contentWindow.document,_.open(),_.write(O("document.F=Object")),_.close(),_.F},N,y=function(){try{N=new ActiveXObject("htmlfile")}catch{}y=typeof document<"u"?document.domain&&N?B(N):S():B(N);for(var d=o.length;d--;)delete y[x][o[d]];return y()};s[D]=!0,n.exports=Object.create||function(h,_){var R;return h!==null?(q[x]=e(h),R=new q,q[x]=null,R[D]=h):R=y(),_===void 0?R:a(R,_)}},(n,r,t)=>{var e=t(12),a=t(48),o=t(49),s=t(17),u=t(75);n.exports=e?Object.defineProperties:function(w,m){o(w);for(var k=s(m),x=u(m),I=x.length,D=0,q;I>D;)a.f(w,q=x[D++],k[q]);return w}},(n,r,t)=>{var e=t(60),a=t(66);n.exports=Object.keys||function(s){return e(s,a)}},(n,r,t)=>{var e=t(27);n.exports=e("document","documentElement")},n=>{n.exports={}},(n,r,t)=>{var e=t(9),a=t(14),o=t(39),s=t(56),u=t(25),f=t(79),w=t(81),m=t(84),k=t(83),x=t(47),I=t(50),D=t(37),q=t(77),O=t(80),B=s.PROPER,S=s.CONFIGURABLE,N=O.IteratorPrototype,y=O.BUGGY_SAFARI_ITERATORS,d=D("iterator"),h="keys",_="values",R="entries",g=function(){return this};n.exports=function(M,H,P,F,te,ae,ie){f(P,H,F);var se=function(de){if(de===te&&C)return C;if(!y&&de in T)return T[de];switch(de){case h:return function(){return new P(this,de)};case _:return function(){return new P(this,de)};case R:return function(){return new P(this,de)}}return function(){return new P(this)}},re=H+" Iterator",X=!1,T=M.prototype,b=T[d]||T["@@iterator"]||te&&T[te],C=!y&&b||se(te),$=H=="Array"&&T.entries||b,W,V,U;if($&&(W=w($.call(new M)),W!==Object.prototype&&W.next&&(!o&&w(W)!==N&&(m?m(W,N):u(W[d])||I(W,d,g)),k(W,re,!0,!0),o&&(q[re]=g))),B&&te==_&&b&&b.name!==_&&(!o&&S?x(T,"name",_):(X=!0,C=function(){return a(b,this)})),te)if(V={values:se(_),keys:ae?C:se(h),entries:se(R)},ie)for(U in V)(y||X||!(U in T))&&I(T,U,V[U]);else e({target:H,proto:!0,forced:y||X},V);return(!o||ie)&&T[d]!==C&&I(T,d,C,{name:te}),q[H]=C,V}},(n,r,t)=>{var e=t(80).IteratorPrototype,a=t(73),o=t(16),s=t(83),u=t(77),f=function(){return this};n.exports=function(w,m,k,x){var I=m+" Iterator";return w.prototype=a(e,{next:o(+!x,k)}),s(w,I,!1,!0),u[I]=f,w}},(n,r,t)=>{var e=t(13),a=t(25),o=t(73),s=t(81),u=t(50),f=t(37),w=t(39),m=f("iterator"),k=!1,x,I,D;[].keys&&(D=[].keys(),"next"in D?(I=s(s(D)),I!==Object.prototype&&(x=I)):k=!0);var q=x==null||e(function(){var O={};return x[m].call(O)!==O});q?x={}:w&&(x=o(x)),a(x[m])||u(x,m,function(){return this}),n.exports={IteratorPrototype:x,BUGGY_SAFARI_ITERATORS:k}},(n,r,t)=>{var e=t(10),a=t(42),o=t(25),s=t(43),u=t(54),f=t(82),w=u("IE_PROTO"),m=e.Object,k=m.prototype;n.exports=f?m.getPrototypeOf:function(x){var I=s(x);if(a(I,w))return I[w];var D=I.constructor;return o(D)&&I instanceof D?D.prototype:I instanceof m?k:null}},(n,r,t)=>{var e=t(13);n.exports=!e(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},(n,r,t)=>{var e=t(48).f,a=t(42),o=t(37),s=o("toStringTag");n.exports=function(u,f,w){u&&!a(u=w?u:u.prototype,s)&&e(u,s,{configurable:!0,value:f})}},(n,r,t)=>{var e=t(19),a=t(49),o=t(85);
73n.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var s=!1,u={},f;try{f=e(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),f(u,[]),s=u instanceof Array}catch{}return function(m,k){return a(m),o(k),s?f(m,k):m.__proto__=k,m}}():void 0)},(n,r,t)=>{var e=t(10),a=t(25),o=e.String,s=e.TypeError;n.exports=function(u){if(typeof u=="object"||a(u))return u;throw s("Can't set "+o(u)+" as a prototype")}},(n,r,t)=>{var e=t(9),a=t(87),o=t(95);e({target:"Object",stat:!0},{fromEntries:function(u){var f={};return a(u,function(w,m){o(f,w,m)},{AS_ENTRIES:!0}),f}})},(n,r,t)=>{var e=t(10),a=t(88),o=t(14),s=t(49),u=t(35),f=t(89),w=t(64),m=t(28),k=t(90),x=t(91),I=t(94),D=e.TypeError,q=function(B,S){this.stopped=B,this.result=S},O=q.prototype;n.exports=function(B,S,N){var y=N&&N.that,d=!!(N&&N.AS_ENTRIES),h=!!(N&&N.IS_ITERATOR),_=!!(N&&N.INTERRUPTED),R=a(S,y),g,M,H,P,F,te,ae,ie=function(re){return g&&I(g,"normal",re),new q(!0,re)},se=function(re){return d?(s(re),_?R(re[0],re[1],ie):R(re[0],re[1])):_?R(re,ie):R(re)};if(h)g=B;else{if(M=x(B),!M)throw D(u(B)+" is not iterable");if(f(M)){for(H=0,P=w(B);P>H;H++)if(F=se(B[H]),F&&m(O,F))return F;return new q(!1)}g=k(B,M)}for(te=g.next;!(ae=o(te,g)).done;){try{F=se(ae.value)}catch(re){I(g,"throw",re)}if(typeof F=="object"&&F&&m(O,F))return F}return new q(!1)}},(n,r,t)=>{var e=t(19),a=t(34),o=e(e.bind);n.exports=function(s,u){return a(s),u===void 0?s:o?o(s,u):function(){return s.apply(u,arguments)}}},(n,r,t)=>{var e=t(37),a=t(77),o=e("iterator"),s=Array.prototype;n.exports=function(u){return u!==void 0&&(a.Array===u||s[o]===u)}},(n,r,t)=>{var e=t(10),a=t(14),o=t(34),s=t(49),u=t(35),f=t(91),w=e.TypeError;n.exports=function(m,k){var x=arguments.length<2?f(m):k;if(o(x))return s(a(x,m));throw w(u(m)+" is not iterable")}},(n,r,t)=>{var e=t(92),a=t(33),o=t(77),s=t(37),u=s("iterator");n.exports=function(f){if(f!=null)return a(f,u)||a(f,"@@iterator")||o[e(f)]}},(n,r,t)=>{var e=t(10),a=t(93),o=t(25),s=t(20),u=t(37),f=u("toStringTag"),w=e.Object,m=s(function(){return arguments}())=="Arguments",k=function(x,I){try{return x[I]}catch{}};n.exports=a?s:function(x){var I,D,q;return x===void 0?"Undefined":x===null?"Null":typeof(D=k(I=w(x),f))=="string"?D:m?s(I):(q=s(I))=="Object"&&o(I.callee)?"Arguments":q}},(n,r,t)=>{var e=t(37),a=e("toStringTag"),o={};o[a]="z",n.exports=String(o)==="[object z]"},(n,r,t)=>{var e=t(14),a=t(49),o=t(33);n.exports=function(s,u,f){var w,m;a(s);try{if(w=o(s,"return"),!w){if(u==="throw")throw f;return f}w=e(w,s)}catch(k){m=!0,w=k}if(u==="throw")throw f;if(m)throw w;return a(w),f}},(n,r,t)=>{var e=t(22),a=t(48),o=t(16);n.exports=function(s,u,f){var w=e(u);w in s?a.f(s,w,o(0,f)):s[w]=f}},(n,r,t)=>{var e=t(10);n.exports=e},(n,r,t)=>{t(98),t(71),t(105),t(107),t(129),t(130),t(131),t(132);var e=t(96);n.exports=e.Promise},(n,r,t)=>{var e=t(9),a=t(10),o=t(28),s=t(81),u=t(84),f=t(57),w=t(73),m=t(47),k=t(16),x=t(99),I=t(101),D=t(87),q=t(102),O=t(37),B=t(104),S=O("toStringTag"),N=a.Error,y=[].push,d=function(R,g){var M=arguments.length>2?arguments[2]:void 0,H=o(h,this),P;u?P=u(new N(void 0),H?s(this):h):(P=H?this:w(h),m(P,S,"Error")),m(P,"message",q(g,"")),B&&m(P,"stack",x(P.stack,1)),I(P,M);var F=[];return D(R,y,{that:F}),m(P,"errors",F),P};u?u(d,N):f(d,N);var h=d.prototype=w(N.prototype,{constructor:k(1,d),message:k(1,""),name:k(1,"AggregateError")});e({global:!0},{AggregateError:d})},(n,r,t)=>{var e=t(19),a=t(100),o=e("".replace),s=e("".split),u=e([].join),f=function(x){return String(Error(x).stack)}("zxcasd"),w=/\n\s*at [^:]*:[^\n]*/,m=w.test(f),k=/@[^\n]*\n/.test(f)&&!/zxcasd/.test(f);n.exports=function(x,I){if(typeof x!="string")return x;if(m)for(;I--;)x=o(x,w,"");else if(k)return u(a(s(x,` 74`),I),` 75`);return x}},(n,r,t)=>{var e=t(10),a=t(62),o=t(64),s=t(95),u=e.Array,f=Math.max;n.exports=function(w,m,k){for(var x=o(w),I=a(m,x),D=a(k===void 0?x:k,x),q=u(f(D-I,0)),O=0;I<D;I++,O++)s(q,O,w[I]);return q.length=O,q}},(n,r,t)=>{var e=t(24),a=t(47);n.exports=function(o,s){e(s)&&"cause"in s&&a(o,"cause",s.cause)}},(n,r,t)=>{var e=t(103);n.exports=function(a,o){return a===void 0?arguments.length<2?"":o:e(a)}},(n,r,t)=>{var e=t(10),a=t(92),o=e.String;n.exports=function(s){if(a(s)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return o(s)}},(n,r,t)=>{var e=t(13),a=t(16);n.exports=!e(function(){var o=Error("a");return"stack"in o?(Object.defineProperty(o,"stack",a(1,7)),o.stack!==7):!0})},(n,r,t)=>{var e=t(93),a=t(50),o=t(106);e||a(Object.prototype,"toString",o,{unsafe:!0})},(n,r,t)=>{var e=t(93),a=t(92);n.exports=e?{}.toString:function(){return"[object "+a(this)+"]"}},(n,r,t)=>{var e=t(9),a=t(39),o=t(10),s=t(27),u=t(14),f=t(108),w=t(50),m=t(109),k=t(84),x=t(83),I=t(110),D=t(34),q=t(25),O=t(24),B=t(111),S=t(51),N=t(87),y=t(112),d=t(113),h=t(116).set,_=t(121),R=t(124),g=t(126),M=t(125),H=t(127),P=t(52),F=t(68),te=t(37),ae=t(128),ie=t(120),se=t(31),re=te("species"),X="Promise",T=P.getterFor(X),b=P.set,C=P.getterFor(X),$=f&&f.prototype,W=f,V=$,U=o.TypeError,de=o.document,pe=o.process,Re=M.f,Z=Re,z=!!(de&&de.createEvent&&o.dispatchEvent),A=q(o.PromiseRejectionEvent),v="unhandledrejection",L="rejectionhandled",J=0,ne=1,oe=2,he=1,Te=2,ke=!1,Ee,Ie,Le,ce,ge=F(X,function(){var Y=S(W),E=Y!==String(W);if(!E&&se===66||a&&!V.finally)return!0;
vendor: 5,434 bytes, line 75
75if(se>=51&&/native code/.test(Y))return!1;var ue=new W(function(_e){_e(1)}),Pe=function(_e){_e(function(){},function(){})},l=ue.constructor={};return l[re]=Pe,ke=ue.then(function(){})instanceof Pe,ke?!E&&ae&&!A:!0}),Ce=ge||!y(function(Y){W.all(Y).catch(function(){})}),Be=function(Y){var E;return O(Y)&&q(E=Y.then)?E:!1},Ne=function(Y,E){if(!Y.notified){Y.notified=!0;var ue=Y.reactions;_(function(){for(var Pe=Y.value,l=Y.state==ne,_e=0;ue.length>_e;){var Ae=ue[_e++],j=l?Ae.ok:Ae.fail,fe=Ae.resolve,ve=Ae.reject,Fe=Ae.domain,Me,De,We;try{j?(l||(Y.rejection===Te&&ee(Y),Y.rejection=he),j===!0?Me=Pe:(Fe&&Fe.enter(),Me=j(Pe),Fe&&(Fe.exit(),We=!0)),Me===Ae.promise?ve(U("Promise-chain cycle")):(De=Be(Me))?u(De,Me,fe,ve):fe(Me)):ve(Pe)}catch(Xe){Fe&&!We&&Fe.exit(),ve(Xe)}}Y.reactions=[],Y.notified=!1,E&&!Y.rejection&&be(Y)})}},ye=function(Y,E,ue){var Pe,l;z?(Pe=de.createEvent("Event"),Pe.promise=E,Pe.reason=ue,Pe.initEvent(Y,!1,!0),o.dispatchEvent(Pe)):Pe={promise:E,reason:ue},!A&&(l=o["on"+Y])?l(Pe):Y===v&&g("Unhandled promise rejection",ue)},be=function(Y){u(h,o,function(){var E=Y.facade,ue=Y.value,Pe=p(Y),l;if(Pe&&(l=H(function(){ie?pe.emit("unhandledRejection",ue,E):ye(v,E,ue)}),Y.rejection=ie||p(Y)?Te:he,l.error))throw l.value})},p=function(Y){return Y.rejection!==he&&!Y.parent},ee=function(Y){u(h,o,function(){var E=Y.facade;ie?pe.emit("rejectionHandled",E):ye(L,E,Y.value)})},Q=function(Y,E,ue){return function(Pe){Y(E,Pe,ue)}},le=function(Y,E,ue){Y.done||(Y.done=!0,ue&&(Y=ue),Y.value=E,Y.state=oe,Ne(Y,!0))},G=function(Y,E,ue){if(!Y.done){Y.done=!0,ue&&(Y=ue);try{if(Y.facade===E)throw U("Promise can't be resolved itself");var Pe=Be(E);Pe?_(function(){var l={done:!1};try{u(Pe,E,Q(G,l,Y),Q(le,l,Y))}catch(_e){le(l,_e,Y)}}):(Y.value=E,Y.state=ne,Ne(Y,!1))}catch(l){le({done:!1},l,Y)}}};if(ge&&(W=function(E){B(this,V),D(E),u(Ee,this);var ue=T(this);try{E(Q(G,ue),Q(le,ue))}catch(Pe){le(ue,Pe)}},V=W.prototype,Ee=function(E){b(this,{type:X,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:J,value:void 0})},Ee.prototype=m(V,{then:function(E,ue){var Pe=C(this),l=Pe.reactions,_e=Re(d(this,W));return _e.ok=q(E)?E:!0,_e.fail=q(ue)&&ue,_e.domain=ie?pe.domain:void 0,Pe.parent=!0,l[l.length]=_e,Pe.state!=J&&Ne(Pe,!1),_e.promise},catch:function(Y){return this.then(void 0,Y)}}),Ie=function(){var Y=new Ee,E=T(Y);this.promise=Y,this.resolve=Q(G,E),this.reject=Q(le,E)},M.f=Re=function(Y){return Y===W||Y===Le?new Ie(Y):Z(Y)},!a&&q(f)&&$!==Object.prototype)){ce=$.then,ke||(w($,"then",function(E,ue){var Pe=this;return new W(function(l,_e){u(ce,Pe,l,_e)}).then(E,ue)},{unsafe:!0}),w($,"catch",V.catch,{unsafe:!0}));try{delete $.constructor}catch{}k&&k($,V)}e({global:!0,wrap:!0,forced:ge},{Promise:W}),x(W,X,!1,!0),I(X),Le=s(X),e({target:X,stat:!0,forced:ge},{reject:function(E){var ue=Re(this);return u(ue.reject,void 0,E),ue.promise}}),e({target:X,stat:!0,forced:a||ge},{resolve:function(E){return R(a&&this===Le?W:this,E)}}),e({target:X,stat:!0,forced:Ce},{all:function(E){var ue=this,Pe=Re(ue),l=Pe.resolve,_e=Pe.reject,Ae=H(function(){var j=D(ue.resolve),fe=[],ve=0,Fe=1;N(E,function(Me){var De=ve++,We=!1;Fe++,u(j,ue,Me).then(function(Xe){We||(We=!0,fe[De]=Xe,--Fe||l(fe))},_e)}),--Fe||l(fe)});return Ae.error&&_e(Ae.value),Pe.promise},race:function(E){var ue=this,Pe=Re(ue),l=Pe.reject,_e=H(function(){var Ae=D(ue.resolve);N(E,function(j){u(Ae,ue,j).then(Pe.resolve,l)})});return _e.error&&l(_e.value),Pe.promise}})},(n,r,t)=>{var e=t(10);n.exports=e.Promise},(n,r,t)=>{var e=t(50);n.exports=function(a,o,s){for(var u in o)e(a,u,o[u],s);return a}},(n,r,t)=>{var e=t(27),a=t(48),o=t(37),s=t(12),u=o("species");n.exports=function(f){var w=e(f),m=a.f;s&&w&&!w[u]&&m(w,u,{configurable:!0,get:function(){return this}})}},(n,r,t)=>{var e=t(10),a=t(28),o=e.TypeError;n.exports=function(s,u){if(a(u,s))return s;throw o("Incorrect invocation")}},(n,r,t)=>{var e=t(37),a=e("iterator"),o=!1;try{var s=0,u={next:function(){return{done:!!s++}},return:function(){o=!0}};u[a]=function(){return this},Array.from(u,function(){throw 2})}catch{}n.exports=function(f,w){if(!w&&!o)return!1;var m=!1;try{var k={};k[a]=function(){return{next:function(){return{done:m=!0}}}},f(k)}catch{}return m}},(n,r,t)=>{var e=t(49),a=t(114),o=t(37),s=o("species");n.exports=function(u,f){var w=e(u).constructor,m;return w===void 0||(m=e(w)[s])==null?f:a(m)}},(n,r,t)=>{var e=t(10),a=t(115),o=t(35),s=e.TypeError;n.exports=function(u){if(a(u))return u;throw s(o(u)+" is not a constructor")}},(n,r,t)=>{var e=t(19),a=t(13),o=t(25),s=t(92),u=t(27),f=t(51),w=function(){},m=[],k=u("Reflect","construct"),x=/^\s*(?:class|function)\b/,I=e(x.exec),D=!x.exec(w),q=function(B){if(!o(B))return!1;try{return k(w,m,B),!0}catch{return!1}},O=function(B){if(!o(B))return!1;switch(s(B)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return D||!!I(x,f(B))};n.exports=!k||a(function(){var B;return q(q.call)||!q(Object)||!q(function(){B=!0})||B})?O:q},(n,r,t)=>{var e=t(10),a=t(117),o=t(88),s=t(25),u=t(42),f=t(13),w=t(76),m=t(118),k=t(46),x=t(119),I=t(120),D=e.setImmediate,q=e.clearImmediate,O=e.process,B=e.Dispatch,S=e.Function,N=e.MessageChannel,y=e.String,d=0,h={},_="onreadystatechange",R,g,M,H;try{R=e.location}catch{}var P=function(ie){if(u(h,ie)){var se=h[ie];delete h[ie],se()}},F=function(ie){return function(){P(ie)}},te=function(ie){P(ie.data)},ae=function(ie){e.postMessage(y(ie),R.protocol+"//"+R.host)};
75(!D||!q)&&(D=function(se){var re=m(arguments,1);return h[++d]=function(){a(s(se)?se:S(se),void 0,re)},g(d),d},q=function(se){delete h[se]},I?g=function(ie){O.nextTick(F(ie))}:B&&B.now?g=function(ie){B.now(F(ie))}:N&&!x?(M=new N,H=M.port2,M.port1.onmessage=te,g=o(H.postMessage,H)):e.addEventListener&&s(e.postMessage)&&!e.importScripts&&R&&R.protocol!=="file:"&&!f(ae)?(g=ae,e.addEventListener("message",te,!1)):_ in k("script")?g=function(ie){w.appendChild(k("script"))[_]=function(){w.removeChild(this),P(ie)}}:g=function(ie){setTimeout(F(ie),0)}),n.exports={set:D,clear:q}},n=>{var r=Function.prototype,t=r.apply,e=r.bind,a=r.call;n.exports=typeof Reflect=="object"&&Reflect.apply||(e?a.bind(t):function(){return a.apply(t,arguments)})},(n,r,t)=>{var e=t(19);n.exports=e([].slice)},(n,r,t)=>{var e=t(32);n.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(e)},(n,r,t)=>{var e=t(20),a=t(10);n.exports=e(a.process)=="process"},(n,r,t)=>{var e=t(10),a=t(88),o=t(11).f,s=t(116).set,u=t(119),f=t(122),w=t(123),m=t(120),k=e.MutationObserver||e.WebKitMutationObserver,x=e.document,I=e.process,D=e.Promise,q=o(e,"queueMicrotask"),O=q&&q.value,B,S,N,y,d,h,_,R;O||(B=function(){var g,M;for(m&&(g=I.domain)&&g.exit();S;){M=S.fn,S=S.next;try{M()}catch(H){throw S?y():N=void 0,H}}N=void 0,g&&g.enter()},!u&&!m&&!w&&k&&x?(d=!0,h=x.createTextNode(""),new k(B).observe(h,{characterData:!0}),y=function(){h.data=d=!d}):!f&&D&&D.resolve?(_=D.resolve(void 0),_.constructor=D,R=a(_.then,_),y=function(){R(B)}):m?y=function(){I.nextTick(B)}:(s=a(s,e),y=function(){s(B)})),n.exports=O||function(g){var M={fn:g,next:void 0};N&&(N.next=M),S||(S=M,y()),N=M}},(n,r,t)=>{var e=t(32),a=t(10);n.exports=/ipad|iphone|ipod/i.test(e)&&a.Pebble!==void 0},(n,r,t)=>{var e=t(32);n.exports=/web0s(?!.*chrome)/i.test(e)},(n,r,t)=>{var e=t(49),a=t(24),o=t(125);n.exports=function(s,u){if(e(s),a(u)&&u.constructor===s)return u;var f=o.f(s),w=f.resolve;return w(u),f.promise}},(n,r,t)=>{var e=t(34),a=function(o){var s,u;this.promise=new o(function(f,w){if(s!==void 0||u!==void 0)throw TypeError("Bad Promise constructor");s=f,u=w}),this.resolve=e(s),this.reject=e(u)};n.exports.f=function(o){return new a(o)}},(n,r,t)=>{var e=t(10);n.exports=function(a,o){var s=e.console;s&&s.error&&(arguments.length==1?s.error(a):s.error(a,o))}},n=>{n.exports=function(r){try{return{error:!1,value:r()}}catch(t){return{error:!0,value:t}}}},n=>{n.exports=typeof window=="object"},(n,r,t)=>{var e=t(9),a=t(14),o=t(34),s=t(125),u=t(127),f=t(87);e({target:"Promise",stat:!0},{allSettled:function(m){var k=this,x=s.f(k),I=x.resolve,D=x.reject,q=u(function(){var O=o(k.resolve),B=[],S=0,N=1;f(m,function(y){var d=S++,h=!1;N++,a(O,k,y).then(function(_){h||(h=!0,B[d]={status:"fulfilled",value:_},--N||I(B))},function(_){h||(h=!0,B[d]={status:"rejected",reason:_},--N||I(B))})}),--N||I(B)});return q.error&&D(q.value),x.promise}})},(n,r,t)=>{var e=t(9),a=t(34),o=t(27),s=t(14),u=t(125),f=t(127),w=t(87),m="No one promise resolved";e({target:"Promise",stat:!0},{any:function(x){var I=this,D=o("AggregateError"),q=u.f(I),O=q.resolve,B=q.reject,S=f(function(){var N=a(I.resolve),y=[],d=0,h=1,_=!1;w(x,function(R){var g=d++,M=!1;h++,s(N,I,R).then(function(H){M||_||(_=!0,O(H))},function(H){M||_||(M=!0,y[g]=H,--h||B(new D(y,m)))})}),--h||B(new D(y,m))});return S.error&&B(S.value),q.promise}})},(n,r,t)=>{var e=t(9),a=t(39),o=t(108),s=t(13),u=t(27),f=t(25),w=t(113),m=t(124),k=t(50),x=!!o&&s(function(){o.prototype.finally.call({then:function(){}},function(){})});if(e({target:"Promise",proto:!0,real:!0,forced:x},{finally:function(D){var q=w(this,u("Promise")),O=f(D);return this.then(O?function(B){return m(q,D()).then(function(){return B})}:D,O?function(B){return m(q,D()).then(function(){throw B})}:D)}}),!a&&f(o)){var I=u("Promise").prototype.finally;o.prototype.finally!==I&&k(o.prototype,"finally",I,{unsafe:!0})}},(n,r,t)=>{var e=t(133).charAt,a=t(103),o=t(52),s=t(78),u="String Iterator",f=o.set,w=o.getterFor(u);s(String,"String",function(m){f(this,{type:u,string:a(m),index:0})},function(){var k=w(this),x=k.string,I=k.index,D;return I>=x.length?{value:void 0,done:!0}:(D=e(x,I),k.index+=D.length,{value:D,done:!1})})},(n,r,t)=>{var e=t(19),a=t(63),o=t(103),s=t(21),u=e("".charAt),f=e("".charCodeAt),w=e("".slice),m=function(k){return function(x,I){var D=o(s(x)),q=a(I),O=D.length,B,S;return q<0||q>=O?k?"":void 0:(B=f(D,q),B<55296||B>56319||q+1===O||(S=f(D,q+1))<56320||S>57343?k?u(D,q):B:k?w(D,q,q+2):(B-55296<<10)+(S-56320)+65536)}};n.exports={codeAt:m(!1),charAt:m(!0)}},function(n,r){(function(t,e){e(r)})(this,function(t){var e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol:function(i){return"Symbol("+i+")"};function a(){}function o(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof commonjsGlobal<"u")return commonjsGlobal}var s=o();function u(i){return typeof i=="object"&&i!==null||typeof i=="function"}var f=a,w=Promise,m=Promise.prototype.then,k=Promise.resolve.bind(w),x=Prom
75ise.reject.bind(w);function I(i){return new w(i)}function D(i){return k(i)}function q(i){return x(i)}function O(i,c,K){return m.call(i,c,K)}function B(i,c,K){O(O(i,c,K),void 0,f)}function S(i,c){B(i,c)}function N(i,c){B(i,void 0,c)}function y(i,c,K){return O(i,c,K)}function d(i){O(i,void 0,f)}var h=function(){var i=s&&s.queueMicrotask;if(typeof i=="function")return i;var c=D(void 0);return function(K){return O(c,K)}}();function _(i,c,K){if(typeof i!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(i,c,K)}function R(i,c,K){try{return D(_(i,c,K))}catch(me){return q(me)}}var g=16384,M=function(){function i(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}return Object.defineProperty(i.prototype,"length",{get:function(){return this._size},enumerable:!1,configurable:!0}),i.prototype.push=function(c){var K=this._back,me=K;K._elements.length===g-1&&(me={_elements:[],_next:void 0}),K._elements.push(c),me!==K&&(this._back=me,K._next=me),++this._size},i.prototype.shift=function(){var c=this._front,K=c,me=this._cursor,xe=me+1,$e=c._elements,je=$e[me];return xe===g&&(K=c._next,xe=0),--this._size,this._cursor=xe,c!==K&&(this._front=K),$e[me]=void 0,je},i.prototype.forEach=function(c){for(var K=this._cursor,me=this._front,xe=me._elements;(K!==xe.length||me._next!==void 0)&&!(K===xe.length&&(me=me._next,xe=me._elements,K=0,xe.length===0));)c(xe[K]),++K},i.prototype.peek=function(){var c=this._front,K=this._cursor;return c._elements[K]},i}();function H(i,c){i._ownerReadableStream=c,c._reader=i,c._state==="readable"?ae(i):c._state==="closed"?se(i):ie(i,c._storedError)}function P(i,c){var K=i._ownerReadableStream;return Pt(K,c)}function F(i){i._ownerReadableStream._state==="readable"?re(i,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):X(i,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),i._ownerReadableStream._reader=void 0,i._ownerReadableStream=void 0}function te(i){return new TypeError("Cannot "+i+" a stream using a released reader")}function ae(i){i._closedPromise=I(function(c,K){i._closedPromise_resolve=c,i._closedPromise_reject=K})}function ie(i,c){ae(i),re(i,c)}function se(i){ae(i),T(i)}function re(i,c){i._closedPromise_reject!==void 0&&(d(i._closedPromise),i._closedPromise_reject(c),i._closedPromise_resolve=void 0,i._closedPromise_reject=void 0)}function X(i,c){ie(i,c)}function T(i){i._closedPromise_resolve!==void 0&&(i._closedPromise_resolve(void 0),i._closedPromise_resolve=void 0,i._closedPromise_reject=void 0)}var b=e("[[AbortSteps]]"),C=e("[[ErrorSteps]]"),$=e("[[CancelSteps]]"),W=e("[[PullSteps]]"),V=Number.isFinite||function(i){return typeof i=="number"&&isFinite(i)},U=Math.trunc||function(i){return i<0?Math.ceil(i):Math.floor(i)};function de(i){return typeof i=="object"||typeof i=="function"}function pe(i,c){if(i!==void 0&&!de(i))throw new TypeError(c+" is not an object.")}function Re(i,c){if(typeof i!="function")throw new TypeError(c+" is not a function.")}function Z(i){return typeof i=="object"&&i!==null||typeof i=="function"}function z(i,c){if(!Z(i))throw new TypeError(c+" is not an object.")}function A(i,c,K){if(i===void 0)throw new TypeError("Parameter "+c+" is required in '"+K+"'.")}function v(i,c,K){if(i===void 0)throw new TypeError(c+" is required in '"+K+"'.")}function L(i){return Number(i)}function J(i){return i===0?0:i}function ne(i){return J(U(i))}function oe(i,c){var K=0,me=Number.MAX_SAFE_INTEGER,xe=Number(i);if(xe=J(xe),!V(xe))throw new TypeError(c+" is not a finite number");if(xe=ne(xe),xe<K||xe>me)throw new TypeError(c+" is outside the accepted range of "+K+" to "+me+", inclusive");return!V(xe)||xe===0?0:xe}function he(i,c){if(!Ut(i))throw new TypeError(c+" is not a ReadableStream.")}function Te(i){return new ce(i)}function ke(i,c){i._reader._readRequests.push(c)}function Ee(i,c,K){var me=i._reader,xe=me._readRequests.shift();K?xe._closeSteps():xe._chunkSteps(c)}function Ie(i){return i._reader._readRequests.length}function Le(i){var c=i._reader;return!(c===void 0||!ge(c))}var ce=function(){function i(c){if(A(c,1,"ReadableStreamDefaultReader"),he(c,"First parameter"),$t(c))throw new TypeError("This stream has already been locked for exclusive reading by another reader");H(this,c),this._readRequests=new M}return Object.defineProperty(i.prototype,"closed",{get:function(){return ge(this)?this._closedPromise:q(Be("closed"))}
75,enumerable:!1,configurable:!0}),i.prototype.cancel=function(c){return c===void 0&&(c=void 0),ge(this)?this._ownerReadableStream===void 0?q(te("cancel")):P(this,c):q(Be("cancel"))},i.prototype.read=function(){if(!ge(this))return q(Be("read"));if(this._ownerReadableStream===void 0)return q(te("read from"));var c,K,me=I(function($e,je){c=$e,K=je}),xe={_chunkSteps:function($e){return c({value:$e,done:!1})},_closeSteps:function(){return c({value:void 0,done:!0})},_errorSteps:function($e){return K($e)}};return Ce(this,xe),me},i.prototype.releaseLock=function(){if(!ge(this))throw Be("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");F(this)}},i}();Object.defineProperties(ce.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(ce.prototype,e.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});function ge(i){return!u(i)||!Object.prototype.hasOwnProperty.call(i,"_readRequests")?!1:i instanceof ce}function Ce(i,c){var K=i._ownerReadableStream;K._disturbed=!0,K._state==="closed"?c._closeSteps():K._state==="errored"?c._errorSteps(K._storedError):K._readableStreamController[W](c)}function Be(i){return new TypeError("ReadableStreamDefaultReader.prototype."+i+" can only be used on a ReadableStreamDefaultReader")}var Ne,ye;typeof e.asyncIterator=="symbol"&&(ye=(Ne={},Ne[e.asyncIterator]=function(){return this},Ne),Object.defineProperty(ye,e.asyncIterator,{enumerable:!1}));var be=function(){function i(c,K){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=c,this._preventCancel=K}return i.prototype.next=function(){var c=this,K=function(){return c._nextSteps()};return this._ongoingPromise=this._ongoingPromise?y(this._ongoingPromise,K,K):K(),this._ongoingPromise},i.prototype.return=function(c){var K=this,me=function(){return K._returnSteps(c)};return this._ongoingPromise?y(this._ongoingPromise,me,me):me()},i.prototype._nextSteps=function(){var c=this;if(this._isFinished)return Promise.resolve({value:void 0,done:!0});var K=this._reader;if(K._ownerReadableStream===void 0)return q(te("iterate"));var me,xe,$e=I(function(Ge,Je){me=Ge,xe=Je}),je={_chunkSteps:function(Ge){c._ongoingPromise=void 0,h(function(){return me({value:Ge,done:!1})})},_closeSteps:function(){c._ongoingPromise=void 0,c._isFinished=!0,F(K),me({value:void 0,done:!0})},_errorSteps:function(Ge){c._ongoingPromise=void 0,c._isFinished=!0,F(K),xe(Ge)}};return Ce(K,je),$e},i.prototype._returnSteps=function(c){if(this._isFinished)return Promise.resolve({value:c,done:!0});this._isFinished=!0;var K=this._reader;if(K._ownerReadableStream===void 0)return q(te("finish iterating"));if(!this._preventCancel){var me=P(K,c);return F(K),y(me,function(){return{value:c,done:!0}})}return F(K),D({value:c,done:!0})},i}(),p={next:function(){return Q(this)?this._asyncIteratorImpl.next():q(le("next"))},return:function(i){return Q(this)?this._asyncIteratorImpl.return(i):q(le("return"))}};ye!==void 0&&Object.setPrototypeOf(p,ye);function ee(i,c){var K=Te(i),me=new be(K,c),xe=Object.create(p);return xe._asyncIteratorImpl=me,xe}function Q(i){if(!u(i)||!Object.prototype.hasOwnProperty.call(i,"_asyncIteratorImpl"))return!1;try{return i._asyncIteratorImpl instanceof be}catch{return!1}}function le(i){return new TypeError("ReadableStreamAsyncIterator."+i+" can only be used on a ReadableSteamAsyncIterator")}var G=Number.isNaN||function(i){return i!==i};function Y(i){return i.slice()}function E(i,c,K,me,xe){new Uint8Array(i).set(new Uint8Array(K,me,xe),c)}function ue(i){return i}function Pe(i){return!1}function l(i,c,K){if(i.slice)return i.slice(c,K);var me=K-c,xe=new ArrayBuffer(me);return E(xe,0,i,c,me),xe}function _e(i){return!(typeof i!="number"||G(i)||i<0)}function Ae(i){var c=l(i.buffer,i.byteOffset,i.byteOffset+i.byteLength);return new Uint8Array(c)}function j(i){var c=i._queue.shift();return i._queueTotalSize-=c.size,i._queueTotalSize<0&&(i._queueTotalSize=0),c.value}function fe(i,c,K){if(!_e(K)||K===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");i._queue.push({value:c,size:K}),i._queueTotalSize+=K}function ve(i){var c=i._queue.peek();return c.value}function Fe(i){i._queue=new M,i._queueTotalSize=0}var Me=function(){function i(){throw new TypeError("Illegal constructor")}return Object.defineProperty(i.prototype,"view",{get:function(){if(!Xe(this))throw Dt("view");return this._view}
75,enumerable:!1,configurable:!0}),i.prototype.respond=function(c){if(!Xe(this))throw Dt("respond");if(A(c,1,"respond"),c=oe(c,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");Pe(this._view.buffer),ct(this._associatedReadableByteStreamController,c)},i.prototype.respondWithNewView=function(c){if(!Xe(this))throw Dt("respondWithNewView");if(A(c,1,"respondWithNewView"),!ArrayBuffer.isView(c))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");Pe(c.buffer),St(this._associatedReadableByteStreamController,c)},i}();Object.defineProperties(Me.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(Me.prototype,e.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});var De=function(){function i(){throw new TypeError("Illegal constructor")}return Object.defineProperty(i.prototype,"byobRequest",{get:function(){if(!We(this))throw lt("byobRequest");return Qe(this)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"desiredSize",{get:function(){if(!We(this))throw lt("desiredSize");return ut(this)},enumerable:!1,configurable:!0}),i.prototype.close=function(){if(!We(this))throw lt("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");var c=this._controlledReadableByteStream._state;if(c!=="readable")throw new TypeError("The stream (in "+c+" state) is not in the readable state and cannot be closed");qe(this)},i.prototype.enqueue=function(c){if(!We(this))throw lt("enqueue");if(A(c,1,"enqueue"),!ArrayBuffer.isView(c))throw new TypeError("chunk must be an array buffer view");if(c.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(c.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");var K=this._controlledReadableByteStream._state;if(K!=="readable")throw new TypeError("The stream (in "+K+" state) is not in the readable state and cannot be enqueued to");ze(this,c)},i.prototype.error=function(c){if(c===void 0&&(c=void 0),!We(this))throw lt("error");Ye(this,c)},i.prototype[$]=function(c){Ve(this),Fe(this);var K=this._cancelAlgorithm(c);return Oe(this),K},i.prototype[W]=function(c){var K=this._controlledReadableByteStream;if(this._queueTotalSize>0){var me=this._queue.shift();this._queueTotalSize-=me.byteLength,ot(this);var xe=new Uint8Array(me.buffer,me.byteOffset,me.byteLength);c._chunkSteps(xe);return}var $e=this._autoAllocateChunkSize;if($e!==void 0){var je=void 0;try{je=new ArrayBuffer($e)}catch(Je){c._errorSteps(Je);return}var Ge={buffer:je,bufferByteLength:$e,byteOffset:0,byteLength:$e,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(Ge)}ke(K,c),He(this)},i}();Object.defineProperties(De.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(De.prototype,e.toStringTag,{value:"ReadableByteStreamController",configurable:!0});function We(i){return!u(i)||!Object.prototype.hasOwnProperty.call(i,"_controlledReadableByteStream")?!1:i instanceof De}function Xe(i){return!u(i)||!Object.prototype.hasOwnProperty.call(i,"_associatedReadableByteStreamController")?!1:i instanceof Me}function He(i){var c=Se(i);if(c){if(i._pulling){i._pullAgain=!0;return}i._pulling=!0;var K=i._pullAlgorithm();B(K,function(){i._pulling=!1,i._pullAgain&&(i._pullAgain=!1,He(i))},function(me){Ye(i,me)})}}function Ve(i){ht(i),i._pendingPullIntos=new M}function Ze(i,c){var K=!1;i._state==="closed"&&(K=!0);var me=at(c);c.readerType==="default"?Ee(i,me,K):nr(i,me,K)}function at(i){var c=i.bytesFilled,K=i.elementSize;return new i.viewConstructor(i.buffer,i.byteOffset,c/K)}function it(i,c,K,me){i._queue.push({buffer:c,byteOffset:K,byteLength:me}),i._queueTotalSize+=me}function _t(i,c){var K=c.elementSize,me=c.bytesFilled-c.bytesFilled%K,xe=Math.min(i._queueTotalSize,c.byteLength-c.bytesFilled),$e=c.bytesFilled+xe,je=$e-$e%K,Ge=xe,Je=!1;je>me&&(Ge=je-c.bytesFilled,Je=!0);for(var et=i._queue;Ge>0;){var tt=et.peek(),rt=Math.min(Ge,tt.byteLength),gt=c.byteOffset+c.bytesFilled;E(c.buffer,gt,tt.buffer,tt.byteOffset,rt),tt.byteLength===rt?et.shift():(tt.byteOffset+=rt,tt.byteLength-=rt),i._queueTotalSize-=rt,Tt(i,rt,c),Ge-=rt}return Je}function Tt(i,c,K){K.bytesFilled+=c}function ot(i){i._queueTotalSize===0&&i._closeRequested?(Oe(i),cr(i._controlledReadableByteStream)):He(i)}function ht(i){i._byobRequest!==null&&(i._byobRequest._associatedReadableByteStreamController=void 0,i._byobRequest._view=null,i._byobRequest=null)}function st(i){for(;i._pendingPullIntos.length>0;){if(i._queueTotalSize===0)return;var c=i._pendingPullIntos.peek();
75_t(i,c)&&(Ue(i),Ze(i._controlledReadableByteStream,c))}}function bt(i,c,K){var me=i._controlledReadableByteStream,xe=1;c.constructor!==DataView&&(xe=c.constructor.BYTES_PER_ELEMENT);var $e=c.constructor,je=c.buffer,Ge={buffer:je,bufferByteLength:je.byteLength,byteOffset:c.byteOffset,byteLength:c.byteLength,bytesFilled:0,elementSize:xe,viewConstructor:$e,readerType:"byob"};if(i._pendingPullIntos.length>0){i._pendingPullIntos.push(Ge),zt(me,K);return}if(me._state==="closed"){var Je=new $e(Ge.buffer,Ge.byteOffset,0);K._closeSteps(Je);return}if(i._queueTotalSize>0){if(_t(i,Ge)){var et=at(Ge);ot(i),K._chunkSteps(et);return}if(i._closeRequested){var tt=new TypeError("Insufficient bytes to fill elements in the given buffer");Ye(i,tt),K._errorSteps(tt);return}}i._pendingPullIntos.push(Ge),zt(me,K),He(i)}function pt(i,c){var K=i._controlledReadableByteStream;if(Gt(K))for(;Yt(K)>0;){var me=Ue(i);Ze(K,me)}}function wt(i,c,K){if(Tt(i,c,K),!(K.bytesFilled<K.elementSize)){Ue(i);var me=K.bytesFilled%K.elementSize;if(me>0){var xe=K.byteOffset+K.bytesFilled,$e=l(K.buffer,xe-me,xe);it(i,$e,0,$e.byteLength)}K.bytesFilled-=me,Ze(i._controlledReadableByteStream,K),st(i)}}function we(i,c){var K=i._pendingPullIntos.peek();ht(i);var me=i._controlledReadableByteStream._state;me==="closed"?pt(i):wt(i,c,K),He(i)}function Ue(i){var c=i._pendingPullIntos.shift();return c}function Se(i){var c=i._controlledReadableByteStream;if(c._state!=="readable"||i._closeRequested||!i._started)return!1;if(Le(c)&&Ie(c)>0||Gt(c)&&Yt(c)>0)return!0;var K=ut(i);return K>0}function Oe(i){i._pullAlgorithm=void 0,i._cancelAlgorithm=void 0}function qe(i){var c=i._controlledReadableByteStream;if(!(i._closeRequested||c._state!=="readable")){if(i._queueTotalSize>0){i._closeRequested=!0;return}if(i._pendingPullIntos.length>0){var K=i._pendingPullIntos.peek();if(K.bytesFilled>0){var me=new TypeError("Insufficient bytes to fill elements in the given buffer");throw Ye(i,me),me}}Oe(i),cr(c)}}function ze(i,c){var K=i._controlledReadableByteStream;if(!(i._closeRequested||K._state!=="readable")){var me=c.buffer,xe=c.byteOffset,$e=c.byteLength,je=me;if(i._pendingPullIntos.length>0){var Ge=i._pendingPullIntos.peek();Pe(Ge.buffer),Ge.buffer=Ge.buffer}if(ht(i),Le(K))if(Ie(K)===0)it(i,je,xe,$e);else{i._pendingPullIntos.length>0&&Ue(i);var Je=new Uint8Array(je,xe,$e);Ee(K,Je,!1)}else Gt(K)?(it(i,je,xe,$e),st(i)):it(i,je,xe,$e);He(i)}}function Ye(i,c){var K=i._controlledReadableByteStream;K._state==="readable"&&(Ve(i),Fe(i),Oe(i),bn(K,c))}function Qe(i){if(i._byobRequest===null&&i._pendingPullIntos.length>0){var c=i._pendingPullIntos.peek(),K=new Uint8Array(c.buffer,c.byteOffset+c.bytesFilled,c.byteLength-c.bytesFilled),me=Object.create(Me.prototype);Rt(me,i,K),i._byobRequest=me}return i._byobRequest}function ut(i){var c=i._controlledReadableByteStream._state;return c==="errored"?null:c==="closed"?0:i._strategyHWM-i._queueTotalSize}function ct(i,c){var K=i._pendingPullIntos.peek(),me=i._controlledReadableByteStream._state;if(me==="closed"){if(c!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(c===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(K.bytesFilled+c>K.byteLength)throw new RangeError("bytesWritten out of range")}K.buffer=K.buffer,we(i,c)}function St(i,c){var K=i._pendingPullIntos.peek(),me=i._controlledReadableByteStream._state;if(me==="closed"){if(c.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(c.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(K.byteOffset+K.bytesFilled!==c.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(K.bufferByteLength!==c.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(K.bytesFilled+c.byteLength>K.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");var xe=c.byteLength;K.buffer=c.buffer,we(i,xe)}function yt(i,c,K,me,xe,$e,je){c._controlledReadableByteStream=i,c._pullAgain=!1,c._pulling=!1,c._byobRequest=null,c._queue=c._queueTotalSize=void 0,Fe(c),c._closeRequested=!1,c._started=!1,c._strategyHWM=$e,c._pullAlgorithm=me,c._cancelAlgorithm=xe,c._autoAllocateChunkSize=je,c._pendingPullIntos=new M,i._readableStreamController=c;var Ge=K();B(D(Ge),function(){c._started=!0,He(c)},function(Je){Ye(c,Je)})}function Ct(i,c,K){var me=Object.create(De.prototype),xe=function(){},$e=function(){return D(void 0)},je=function(){return D(void 0)};c.start!==void 0&&(xe=function(){return c.start(me)}),c.pull!==void 0&&($e=function(){return c.pull(me)}),c.cancel!==void 0&&(je=function(Je){return c.cancel(Je)});var Ge=c.autoAllocateChunkSize;if(Ge===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");yt(i,me,xe,$e,je,K,Ge)}function Rt(i,c,K){i._associatedReadableByteStreamController=c,i._view=K}function Dt(i){return new TypeError("ReadableStreamBYOBRequest.prototype."+i+" can only be used on a ReadableStreamBYOBRequest")}function lt(i){return new TypeError("ReadableByteStreamController.prototype."+i+" can only be used on a ReadableByteStreamController")}function qt(i){return new Et(i)}function zt(i,c){i._reader._readIntoRequests.push(c)}function nr(i,c,K){var me=i._reader,xe=me._readIntoRequests.shift();K?xe._closeSteps(c):xe._chunkSteps(c)}function Yt(i){return i._reader._readIntoRequests.length}function Gt(i){var c=i._reader;return!(c===void 0||!vt(c))}var Et=function(){function i(c){if(A(c,1,"ReadableStreamBYOBReader"),he(c,"First parameter"),$t(c))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!We(c._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");H(this,c),this._readIntoRequests=new M}return Object.defineProperty(i.prototype,"closed",{get:function(){return vt(this)?this._closedPromise:q(hr("closed"))}
75,enumerable:!1,configurable:!0}),i.prototype.cancel=function(c){return c===void 0&&(c=void 0),vt(this)?this._ownerReadableStream===void 0?q(te("cancel")):P(this,c):q(hr("cancel"))},i.prototype.read=function(c){if(!vt(this))return q(hr("read"));if(!ArrayBuffer.isView(c))return q(new TypeError("view must be an array buffer view"));if(c.byteLength===0)return q(new TypeError("view must have non-zero byteLength"));if(c.buffer.byteLength===0)return q(new TypeError("view's buffer must have non-zero byteLength"));if(Pe(c.buffer),this._ownerReadableStream===void 0)return q(te("read from"));var K,me,xe=I(function(je,Ge){K=je,me=Ge}),$e={_chunkSteps:function(je){return K({value:je,done:!1})},_closeSteps:function(je){return K({value:je,done:!0})},_errorSteps:function(je){return me(je)}};return Lt(this,c,$e),xe},i.prototype.releaseLock=function(){if(!vt(this))throw hr("releaseLock");if(this._ownerReadableStream!==void 0){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");F(this)}},i}();Object.defineProperties(Et.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(Et.prototype,e.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});function vt(i){return!u(i)||!Object.prototype.hasOwnProperty.call(i,"_readIntoRequests")?!1:i instanceof Et}function Lt(i,c,K){var me=i._ownerReadableStream;me._disturbed=!0,me._state==="errored"?K._errorSteps(me._storedError):bt(me._readableStreamController,c,K)}function hr(i){return new TypeError("ReadableStreamBYOBReader.prototype."+i+" can only be used on a ReadableStreamBYOBReader")}function ar(i,c){var K=i.highWaterMark;if(K===void 0)return c;if(G(K)||K<0)throw new RangeError("Invalid highWaterMark");return K}function pr(i){var c=i.size;return c||function(){return 1}}function vr(i,c){pe(i,c);var K=i?.highWaterMark,me=i?.size;return{highWaterMark:K===void 0?void 0:L(K),size:me===void 0?void 0:Fn(me,c+" has member 'size' that")}}function Fn(i,c){return Re(i,c),function(K){return L(i(K))}}function Mn(i,c){pe(i,c);var K=i?.abort,me=i?.close,xe=i?.start,$e=i?.type,je=i?.write;return{abort:K===void 0?void 0:Dn(K,i,c+" has member 'abort' that"),close:me===void 0?void 0:Ln(me,i,c+" has member 'close' that"),start:xe===void 0?void 0:Nn(xe,i,c+" has member 'start' that"),write:je===void 0?void 0:Bn(je,i,c+" has member 'write' that"),type:$e}}function Dn(i,c,K){return Re(i,K),function(me){return R(i,c,[me])}}function Ln(i,c,K){return Re(i,K),function(){return R(i,c,[])}}function Nn(i,c,K){return Re(i,K),function(me){return _(i,c,[me])}}function Bn(i,c,K){return Re(i,K),function(me,xe){return R(i,c,[me,xe])}}function Kr(i,c){if(!Kt(i))throw new TypeError(c+" is not a WritableStream.")}function Un(i){if(typeof i!="object"||i===null)return!1;try{return typeof i.aborted=="boolean"}catch{return!1}}var $n=typeof AbortController=="function";function jn(){if($n)return new AbortController}var ir=function(){function i(c,K){c===void 0&&(c={}),K===void 0&&(K={}),c===void 0?c=null:z(c,"First parameter");var me=vr(K,"Second parameter"),xe=Mn(c,"First parameter");Qr(this);var $e=xe.type;if($e!==void 0)throw new RangeError("Invalid type is specified");var je=pr(me),Ge=ar(me,1);ta(this,xe,Ge,je)}return Object.defineProperty(i.prototype,"locked",{get:function(){if(!Kt(this))throw _r("locked");return Zt(this)},enumerable:!1,configurable:!0}),i.prototype.abort=function(c){return c===void 0&&(c=void 0),Kt(this)?Zt(this)?q(new TypeError("Cannot abort a stream that already has a writer")):gr(this,c):q(_r("abort"))},i.prototype.close=function(){return Kt(this)?Zt(this)?q(new TypeError("Cannot close a stream that already has a writer")):Ot(this)?q(new TypeError("Cannot close an already-closing stream")):Jr(this):q(_r("close"))},i.prototype.getWriter=function(){if(!Kt(this))throw _r("getWriter");return Zr(this)},i}();Object.defineProperties(ir.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(ir.prototype,e.toStringTag,{value:"WritableStream",configurable:!0});function Zr(i){return new or(i)}function Wn(i,c,K,me,xe,$e){xe===void 0&&(xe=1),$e===void 0&&($e=function(){return 1});var je=Object.create(ir.prototype);Qr(je);var Ge=Object.create(Qt.prototype);return on(je,Ge,i,c,K,me,xe,$e),je}function Qr(i){i._state="writable",i._storedError=void 0,i._writer=void 0,i._writableStreamController=void 0,i._writeRequests=new M,i._inFlightWriteRequest=void 0,i._closeRequest=void 0,i._inFlightCloseRequest=void 0,i._pendingAbortRequest=void 0,i._backpressure=!1}function Kt(i){return!u(i)||!Object.prototype.hasOwnProperty.call(i,"_writableStreamController")?!1:i instanceof ir}function Zt(i){return i._writer!==void 0}function gr(i,c){var K;if(i._state==="closed"||i._state==="errored")return D(void 0);i._writableStreamController._abortReason=c,(K=i._writableStreamController._abortController)===null||K===void 0||K.abort();var me=i._state;if(me==="closed"||me==="errored")return D(void 0);if(i._pendingAbortRequest!==void 0)return i._pendingAbortRequest._promise;var xe=!1;me==="erroring"&&(xe=!0,c=void 0);var $e=I(function(je,Ge){i._pendingAbortRequest={_promise:void 0,_resolve:je,_reject:Ge,_reason:c,_wasAlreadyErroring:xe}});return i._pendingAbortRequest._promise=$e,xe||Lr(i,c),$e}function Jr(i){var c=i._state;if(c==="closed"||c==="errored")return q(new TypeError("The stream (in "+c+" state) is not in the writable state and cannot be closed"));var K=I(function(xe,$e){var je={_resolve:xe,_reject:$e};i._closeRequest=je}),me=i._writer;return me!==void 0&&i._backpressure&&c==="writable"&&Gr(me),ra(i._writableStreamController),K}function qn(i){var c=I(function(K,me){var xe={_resolve:K,_reject:me};i._writeRequests.push(xe)});return c}function Dr(i,c){var K=i._state;if(K==="writable"){Lr(i,c);return}Nr(i)}function Lr(i,c){var K=i._writableStreamController;i._state="erroring",i._storedError=c;var me=i._writer;me!==void 0&&tn(me,c),!Xn(i)&&K._started&&Nr(i)}function Nr(i){i._state="errored",i._writableStreamController[C]();var c=i._storedError;
75if(i._writeRequests.forEach(function(xe){xe._reject(c)}),i._writeRequests=new M,i._pendingAbortRequest===void 0){yr(i);return}var K=i._pendingAbortRequest;if(i._pendingAbortRequest=void 0,K._wasAlreadyErroring){K._reject(c),yr(i);return}var me=i._writableStreamController[b](K._reason);B(me,function(){K._resolve(),yr(i)},function(xe){K._reject(xe),yr(i)})}function zn(i){i._inFlightWriteRequest._resolve(void 0),i._inFlightWriteRequest=void 0}function Gn(i,c){i._inFlightWriteRequest._reject(c),i._inFlightWriteRequest=void 0,Dr(i,c)}function Hn(i){i._inFlightCloseRequest._resolve(void 0),i._inFlightCloseRequest=void 0;var c=i._state;c==="erroring"&&(i._storedError=void 0,i._pendingAbortRequest!==void 0&&(i._pendingAbortRequest._resolve(),i._pendingAbortRequest=void 0)),i._state="closed";var K=i._writer;K!==void 0&&cn(K)}function Vn(i,c){i._inFlightCloseRequest._reject(c),i._inFlightCloseRequest=void 0,i._pendingAbortRequest!==void 0&&(i._pendingAbortRequest._reject(c),i._pendingAbortRequest=void 0),Dr(i,c)}function Ot(i){return!(i._closeRequest===void 0&&i._inFlightCloseRequest===void 0)}function Xn(i){return!(i._inFlightWriteRequest===void 0&&i._inFlightCloseRequest===void 0)}function Yn(i){i._inFlightCloseRequest=i._closeRequest,i._closeRequest=void 0}function Kn(i){i._inFlightWriteRequest=i._writeRequests.shift()}function yr(i){i._closeRequest!==void 0&&(i._closeRequest._reject(i._storedError),i._closeRequest=void 0);var c=i._writer;c!==void 0&&qr(c,i._storedError)}function Br(i,c){var K=i._writer;K!==void 0&&c!==i._backpressure&&(c?la(K):Gr(K)),i._backpressure=c}var or=function(){function i(c){if(A(c,1,"WritableStreamDefaultWriter"),Kr(c,"First parameter"),Zt(c))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=c,c._writer=this;var K=c._state;if(K==="writable")!Ot(c)&&c._backpressure?Ar(this):fn(this),Sr(this);else if(K==="erroring")zr(this,c._storedError),Sr(this);else if(K==="closed")fn(this),sa(this);else{var me=c._storedError;zr(this,me),ln(this,me)}}return Object.defineProperty(i.prototype,"closed",{get:function(){return Ht(this)?this._closedPromise:q(Vt("closed"))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"desiredSize",{get:function(){if(!Ht(this))throw Vt("desiredSize");if(this._ownerWritableStream===void 0)throw sr("desiredSize");return ea(this)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"ready",{get:function(){return Ht(this)?this._readyPromise:q(Vt("ready"))},enumerable:!1,configurable:!0}),i.prototype.abort=function(c){return c===void 0&&(c=void 0),Ht(this)?this._ownerWritableStream===void 0?q(sr("abort")):Zn(this,c):q(Vt("abort"))},i.prototype.close=function(){if(!Ht(this))return q(Vt("close"));var c=this._ownerWritableStream;return c===void 0?q(sr("close")):Ot(c)?q(new TypeError("Cannot close an already-closing stream")):en(this)},i.prototype.releaseLock=function(){if(!Ht(this))throw Vt("releaseLock");var c=this._ownerWritableStream;c!==void 0&&rn(this)},i.prototype.write=function(c){return c===void 0&&(c=void 0),Ht(this)?this._ownerWritableStream===void 0?q(sr("write to")):nn(this,c):q(Vt("write"))},i}();Object.defineProperties(or.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(or.prototype,e.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});function Ht(i){return!u(i)||!Object.prototype.hasOwnProperty.call(i,"_ownerWritableStream")?!1:i instanceof or}function Zn(i,c){var K=i._ownerWritableStream;return gr(K,c)}function en(i){var c=i._ownerWritableStream;return Jr(c)}function Qn(i){var c=i._ownerWritableStream,K=c._state;return Ot(c)||K==="closed"?D(void 0):K==="errored"?q(c._storedError):en(i)}function Jn(i,c){i._closedPromiseState==="pending"?qr(i,c):ua(i,c)}function tn(i,c){i._readyPromiseState==="pending"?dn(i,c):ca(i,c)}function ea(i){var c=i._ownerWritableStream,K=c._state;return K==="errored"||K==="erroring"?null:K==="closed"?0:sn(c._writableStreamController)}function rn(i){var c=i._ownerWritableStream,K=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");tn(i,K),Jn(i,K),c._writer=void 0,i._ownerWritableStream=void 0}function nn(i,c){var K=i._ownerWritableStream,me=K._writableStreamController,xe=na(me,c);if(K!==i._ownerWritableStream)return q(sr("write to"));var $e=K._state;if($e==="errored")return q(K._storedError);if(Ot(K)||$e==="closed")return q(new TypeError("The stream is closing or closed and cannot be written to"));if($e==="erroring")return q(K._storedError);var je=qn(K);return aa(me,c,xe),je}var an={},Qt=function(){function i(){throw new TypeError("Illegal constructor")}return Object.defineProperty(i.prototype,"abortReason",{get:function(){if(!Ur(this))throw Wr("abortReason");return this._abortReason}
75,enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"signal",{get:function(){if(!Ur(this))throw Wr("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal},enumerable:!1,configurable:!0}),i.prototype.error=function(c){if(c===void 0&&(c=void 0),!Ur(this))throw Wr("error");var K=this._controlledWritableStream._state;K==="writable"&&un(this,c)},i.prototype[b]=function(c){var K=this._abortAlgorithm(c);return mr(this),K},i.prototype[C]=function(){Fe(this)},i}();Object.defineProperties(Qt.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(Qt.prototype,e.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});function Ur(i){return!u(i)||!Object.prototype.hasOwnProperty.call(i,"_controlledWritableStream")?!1:i instanceof Qt}function on(i,c,K,me,xe,$e,je,Ge){c._controlledWritableStream=i,i._writableStreamController=c,c._queue=void 0,c._queueTotalSize=void 0,Fe(c),c._abortReason=void 0,c._abortController=jn(),c._started=!1,c._strategySizeAlgorithm=Ge,c._strategyHWM=je,c._writeAlgorithm=me,c._closeAlgorithm=xe,c._abortAlgorithm=$e;var Je=jr(c);Br(i,Je);var et=K(),tt=D(et);B(tt,function(){c._started=!0,br(c)},function(rt){c._started=!0,Dr(i,rt)})}function ta(i,c,K,me){var xe=Object.create(Qt.prototype),$e=function(){},je=function(){return D(void 0)},Ge=function(){return D(void 0)},Je=function(){return D(void 0)};c.start!==void 0&&($e=function(){return c.start(xe)}),c.write!==void 0&&(je=function(et){return c.write(et,xe)}),c.close!==void 0&&(Ge=function(){return c.close()}),c.abort!==void 0&&(Je=function(et){return c.abort(et)}),on(i,xe,$e,je,Ge,Je,K,me)}function mr(i){i._writeAlgorithm=void 0,i._closeAlgorithm=void 0,i._abortAlgorithm=void 0,i._strategySizeAlgorithm=void 0}function ra(i){fe(i,an,0),br(i)}function na(i,c){try{return i._strategySizeAlgorithm(c)}catch(K){return $r(i,K),1}}function sn(i){return i._strategyHWM-i._queueTotalSize}function aa(i,c,K){try{fe(i,c,K)}catch($e){$r(i,$e);return}var me=i._controlledWritableStream;if(!Ot(me)&&me._state==="writable"){var xe=jr(i);Br(me,xe)}br(i)}function br(i){var c=i._controlledWritableStream;if(i._started&&c._inFlightWriteRequest===void 0){var K=c._state;if(K==="erroring"){Nr(c);return}if(i._queue.length!==0){var me=ve(i);me===an?ia(i):oa(i,me)}}}function $r(i,c){i._controlledWritableStream._state==="writable"&&un(i,c)}function ia(i){var c=i._controlledWritableStream;Yn(c),j(i);var K=i._closeAlgorithm();mr(i),B(K,function(){Hn(c)},function(me){Vn(c,me)})}function oa(i,c){var K=i._controlledWritableStream;Kn(K);var me=i._writeAlgorithm(c);B(me,function(){zn(K);var xe=K._state;if(j(i),!Ot(K)&&xe==="writable"){var $e=jr(i);Br(K,$e)}br(i)},function(xe){K._state==="writable"&&mr(i),Gn(K,xe)})}function jr(i){var c=sn(i);return c<=0}function un(i,c){var K=i._controlledWritableStream;mr(i),Lr(K,c)}function _r(i){return new TypeError("WritableStream.prototype."+i+" can only be used on a WritableStream")}function Wr(i){return new TypeError("WritableStreamDefaultController.prototype."+i+" can only be used on a WritableStreamDefaultController")}function Vt(i){return new TypeError("WritableStreamDefaultWriter.prototype."+i+" can only be used on a WritableStreamDefaultWriter")}function sr(i){return new TypeError("Cannot "+i+" a stream using a released writer")}function Sr(i){i._closedPromise=I(function(c,K){i._closedPromise_resolve=c,i._closedPromise_reject=K,i._closedPromiseState="pending"})}function ln(i,c){Sr(i),qr(i,c)}function sa(i){Sr(i),cn(i)}function qr(i,c){i._closedPromise_reject!==void 0&&(d(i._closedPromise),i._closedPromise_reject(c),i._closedPromise_resolve=void 0,i._closedPromise_reject=void 0,i._closedPromiseState="rejected")}function ua(i,c){ln(i,c)}function cn(i){i._closedPromise_resolve!==void 0&&(i._closedPromise_resolve(void 0),i._closedPromise_resolve=void 0,i._closedPromise_reject=void 0,i._closedPromiseState="resolved")}function Ar(i){i._readyPromise=I(function(c,K){i._readyPromise_resolve=c,i._readyPromise_reject=K}),i._readyPromiseState="pending"}function zr(i,c){Ar(i),dn(i,c)}function fn(i){Ar(i),Gr(i)}function dn(i,c){i._readyPromise_reject!==void 0&&(d(i._readyPromise),i._readyPromise_reject(c),i._readyPromise_resolve=void 0,i._readyPromise_reject=void 0,i._readyPromiseState="rejected")}function la(i){Ar(i)}function ca(i,c){zr(i,c)}function Gr(i){i._readyPromise_resolve!==void 0&&(i._readyPromise_resolve(void 0),i._readyPromise_resolve=void 0,i._readyPromise_reject=void 0,i._readyPromiseState="fulfilled")}var hn=typeof DOMException<"u"?DOMException:void 0;function fa(i){if(!(typeof i=="function"||typeof i=="object"))return!1;try{return new i,!0}catch{return!1}}function da(){var i=function(K,me){this.message=K||"",this.name=me||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return i.prototype=Object.create(Error.prototype),Object.defineProperty(i.prototype,"constructor",{value:i,writable:!0,configurable:!0}),i}var ha=fa(hn)?hn:da();function pn(i,c,K,me,xe,$e){var je=Te(i),Ge=Zr(c);i._disturbed=!0;var Je=!1,et=D(void 0);return I(function(tt,rt){var gt;if($e!==void 0){if(gt=function(){var Ke=new ha("Aborted","AbortError"),nt=[];me||nt.push(function(){return c._state==="writable"?gr(c,Ke):D(void 0)}),xe||nt.push(function(){return i._state==="readable"?Pt(i,Ke):D(void 0)}),At(function(){return Promise.all(nt.map(function(dt){return dt()}))},!0,Ke)},$e.aborted){gt();return}$e.addEventListener("abort",gt)}function kt(){return I(function(Ke,nt){function dt(Ft){Ft?Ke():O(tr(),dt,nt)}dt(!1)})}function tr(){return Je?D(!0):O(Ge._readyPromise,function(){return I(function(Ke,nt){Ce(je,{_chunkSteps:function(dt){et=O(nn(Ge,dt),void 0,a),Ke(!1)},_closeSteps:function(){return Ke(!0)},_errorSteps:nt})})})}
75if(mt(i,je._closedPromise,function(Ke){me?Mt(!0,Ke):At(function(){return gr(c,Ke)},!0,Ke)}),mt(c,Ge._closedPromise,function(Ke){xe?Mt(!0,Ke):At(function(){return Pt(i,Ke)},!0,Ke)}),It(i,je._closedPromise,function(){K?Mt():At(function(){return Qn(Ge)})}),Ot(c)||c._state==="closed"){var jt=new TypeError("the destination writable stream closed before all data could be piped to it");xe?Mt(!0,jt):At(function(){return Pt(i,jt)},!0,jt)}d(kt());function xt(){var Ke=et;return O(et,function(){return Ke!==et?xt():void 0})}function mt(Ke,nt,dt){Ke._state==="errored"?dt(Ke._storedError):N(nt,dt)}function It(Ke,nt,dt){Ke._state==="closed"?dt():S(nt,dt)}function At(Ke,nt,dt){if(Je)return;Je=!0,c._state==="writable"&&!Ot(c)?S(xt(),Ft):Ft();function Ft(){B(Ke(),function(){return ft(nt,dt)},function(Wt){return ft(!0,Wt)})}}function Mt(Ke,nt){Je||(Je=!0,c._state==="writable"&&!Ot(c)?S(xt(),function(){return ft(Ke,nt)}):ft(Ke,nt))}function ft(Ke,nt){rn(Ge),F(je),$e!==void 0&&$e.removeEventListener("abort",gt),Ke?rt(nt):tt(void 0)}})}var Jt=function(){function i(){throw new TypeError("Illegal constructor")}return Object.defineProperty(i.prototype,"desiredSize",{get:function(){if(!wr(this))throw Er("desiredSize");return Hr(this)},enumerable:!1,configurable:!0}),i.prototype.close=function(){if(!wr(this))throw Er("close");if(!er(this))throw new TypeError("The stream is not in a state that permits close");lr(this)},i.prototype.enqueue=function(c){if(c===void 0&&(c=void 0),!wr(this))throw Er("enqueue");if(!er(this))throw new TypeError("The stream is not in a state that permits enqueue");return Tr(this,c)},i.prototype.error=function(c){if(c===void 0&&(c=void 0),!wr(this))throw Er("error");Nt(this,c)},i.prototype[$]=function(c){Fe(this);var K=this._cancelAlgorithm(c);return Rr(this),K},i.prototype[W]=function(c){var K=this._controlledReadableStream;if(this._queue.length>0){var me=j(this);this._closeRequested&&this._queue.length===0?(Rr(this),cr(K)):ur(this),c._chunkSteps(me)}else ke(K,c),ur(this)},i}();Object.defineProperties(Jt.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(Jt.prototype,e.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});function wr(i){return!u(i)||!Object.prototype.hasOwnProperty.call(i,"_controlledReadableStream")?!1:i instanceof Jt}function ur(i){var c=vn(i);if(c){if(i._pulling){i._pullAgain=!0;return}i._pulling=!0;var K=i._pullAlgorithm();B(K,function(){i._pulling=!1,i._pullAgain&&(i._pullAgain=!1,ur(i))},function(me){Nt(i,me)})}}function vn(i){var c=i._controlledReadableStream;if(!er(i)||!i._started)return!1;if($t(c)&&Ie(c)>0)return!0;var K=Hr(i);return K>0}function Rr(i){i._pullAlgorithm=void 0,i._cancelAlgorithm=void 0,i._strategySizeAlgorithm=void 0}function lr(i){if(er(i)){var c=i._controlledReadableStream;i._closeRequested=!0,i._queue.length===0&&(Rr(i),cr(c))}}function Tr(i,c){if(er(i)){var K=i._controlledReadableStream;if($t(K)&&Ie(K)>0)Ee(K,c,!1);else{var me=void 0;try{me=i._strategySizeAlgorithm(c)}catch(xe){throw Nt(i,xe),xe}try{fe(i,c,me)}catch(xe){throw Nt(i,xe),xe}}ur(i)}}function Nt(i,c){var K=i._controlledReadableStream;K._state==="readable"&&(Fe(i),Rr(i),bn(K,c))}function Hr(i){var c=i._controlledReadableStream._state;return c==="errored"?null:c==="closed"?0:i._strategyHWM-i._queueTotalSize}function pa(i){return!vn(i)}function er(i){var c=i._controlledReadableStream._state;return!i._closeRequested&&c==="readable"}function gn(i,c,K,me,xe,$e,je){c._controlledReadableStream=i,c._queue=void 0,c._queueTotalSize=void 0,Fe(c),c._started=!1,c._closeRequested=!1,c._pullAgain=!1,c._pulling=!1,c._strategySizeAlgorithm=je,c._strategyHWM=$e,c._pullAlgorithm=me,c._cancelAlgorithm=xe,i._readableStreamController=c;var Ge=K();B(D(Ge),function(){c._started=!0,ur(c)},function(Je){Nt(c,Je)})}function va(i,c,K,me){var xe=Object.create(Jt.prototype),$e=function(){},je=function(){return D(void 0)},Ge=function(){return D(void 0)};c.start!==void 0&&($e=function(){return c.start(xe)}),c.pull!==void 0&&(je=function(){return c.pull(xe)}
75),c.cancel!==void 0&&(Ge=function(Je){return c.cancel(Je)}),gn(i,xe,$e,je,Ge,K,me)}function Er(i){return new TypeError("ReadableStreamDefaultController.prototype."+i+" can only be used on a ReadableStreamDefaultController")}function ga(i,c){return We(i._readableStreamController)?ma(i):ya(i)}function ya(i,c){var K=Te(i),me=!1,xe=!1,$e=!1,je=!1,Ge,Je,et,tt,rt,gt=I(function(mt){rt=mt});function kt(){if(me)return xe=!0,D(void 0);me=!0;var mt={_chunkSteps:function(It){h(function(){xe=!1;var At=It,Mt=It;$e||Tr(et._readableStreamController,At),je||Tr(tt._readableStreamController,Mt),me=!1,xe&&kt()})},_closeSteps:function(){me=!1,$e||lr(et._readableStreamController),je||lr(tt._readableStreamController),(!$e||!je)&&rt(void 0)},_errorSteps:function(){me=!1}};return Ce(K,mt),D(void 0)}function tr(mt){if($e=!0,Ge=mt,je){var It=Y([Ge,Je]),At=Pt(i,It);rt(At)}return gt}function jt(mt){if(je=!0,Je=mt,$e){var It=Y([Ge,Je]),At=Pt(i,It);rt(At)}return gt}function xt(){}return et=Vr(xt,kt,tr),tt=Vr(xt,kt,jt),N(K._closedPromise,function(mt){Nt(et._readableStreamController,mt),Nt(tt._readableStreamController,mt),(!$e||!je)&&rt(void 0)}),[et,tt]}function ma(i){var c=Te(i),K=!1,me=!1,xe=!1,$e=!1,je=!1,Ge,Je,et,tt,rt,gt=I(function(ft){rt=ft});function kt(ft){N(ft._closedPromise,function(Ke){ft===c&&(Ye(et._readableStreamController,Ke),Ye(tt._readableStreamController,Ke),(!$e||!je)&&rt(void 0))})}function tr(){vt(c)&&(F(c),c=Te(i),kt(c));var ft={_chunkSteps:function(Ke){h(function(){me=!1,xe=!1;var nt=Ke,dt=Ke;if(!$e&&!je)try{dt=Ae(Ke)}catch(Ft){Ye(et._readableStreamController,Ft),Ye(tt._readableStreamController,Ft),rt(Pt(i,Ft));return}$e||ze(et._readableStreamController,nt),je||ze(tt._readableStreamController,dt),K=!1,me?xt():xe&&mt()})},_closeSteps:function(){K=!1,$e||qe(et._readableStreamController),je||qe(tt._readableStreamController),et._readableStreamController._pendingPullIntos.length>0&&ct(et._readableStreamController,0),tt._readableStreamController._pendingPullIntos.length>0&&ct(tt._readableStreamController,0),(!$e||!je)&&rt(void 0)},_errorSteps:function(){K=!1}};Ce(c,ft)}function jt(ft,Ke){ge(c)&&(F(c),c=qt(i),kt(c));var nt=Ke?tt:et,dt=Ke?et:tt,Ft={_chunkSteps:function(Wt){h(function(){me=!1,xe=!1;var rr=Ke?je:$e,dr=Ke?$e:je;if(dr)rr||St(nt._readableStreamController,Wt);else{var In=void 0;try{In=Ae(Wt)}catch(Yr){Ye(nt._readableStreamController,Yr),Ye(dt._readableStreamController,Yr),rt(Pt(i,Yr));return}rr||St(nt._readableStreamController,Wt),ze(dt._readableStreamController,In)}K=!1,me?xt():xe&&mt()})},_closeSteps:function(Wt){K=!1;var rr=Ke?je:$e,dr=Ke?$e:je;rr||qe(nt._readableStreamController),dr||qe(dt._readableStreamController),Wt!==void 0&&(rr||St(nt._readableStreamController,Wt),!dr&&dt._readableStreamController._pendingPullIntos.length>0&&ct(dt._readableStreamController,0)),(!rr||!dr)&&rt(void 0)},_errorSteps:function(){K=!1}};Lt(c,ft,Ft)}function xt(){if(K)return me=!0,D(void 0);K=!0;var ft=Qe(et._readableStreamController);return ft===null?tr():jt(ft._view,!1),D(void 0)}function mt(){if(K)return xe=!0,D(void 0);K=!0;var ft=Qe(tt._readableStreamController);return ft===null?tr():jt(ft._view,!0),D(void 0)}function It(ft){if($e=!0,Ge=ft,je){var Ke=Y([Ge,Je]),nt=Pt(i,Ke);rt(nt)}return gt}function At(ft){if(je=!0,Je=ft,$e){var Ke=Y([Ge,Je]),nt=Pt(i,Ke);rt(nt)}return gt}function Mt(){}return et=mn(Mt,xt,It),tt=mn(Mt,mt,At),kt(c),[et,tt]}function ba(i,c){pe(i,c);var K=i,me=K?.autoAllocateChunkSize,xe=K?.cancel,$e=K?.pull,je=K?.start,Ge=K?.type;return{autoAllocateChunkSize:me===void 0?void 0:oe(me,c+" has member 'autoAllocateChunkSize' that"),cancel:xe===void 0?void 0:_a(xe,K,c+" has member 'cancel' that"),pull:$e===void 0?void 0:Sa($e,K,c+" has member 'pull' that"),start:je===void 0?void 0:Aa(je,K,c+" has member 'start' that"),type:Ge===void 0?void 0:wa(Ge,c+" has member 'type' that")}}function _a(i,c,K){return Re(i,K),function(me){return R(i,c,[me])}}function Sa(i,c,K){return Re(i,K),function(me){return R(i,c,[me])}}function Aa(i,c,K){return Re(i,K),function(me){return _(i,c,[me])}}function wa(i,c){if(i=""+i,i!=="bytes")throw new TypeError(c+" '"+i+"' is not a valid enumeration value for ReadableStreamType");return i}function Ra(i,c){pe(i,c);var K=i?.mode;return{mode:K===void 0?void 0:Ta(K,c+" has member 'mode' that")}}function Ta(i,c){if(i=""+i,i!=="byob")throw new TypeError(c+" '"+i+"' is not a valid enumeration value for ReadableStreamReaderMode");return i}function Ea(i,c){pe(i,c);var K=i?.preventCancel;return{preventCancel:!!K}}function yn(i,c){pe(i,c);var K=i?.preventAbort,me=i?.preventCancel,xe=i?.preventClose,$e=i?.signal;return $e!==void 0&&Pa($e,c+" has member 'signal' that"),{preventAbort:!!K,preventCancel:!!me,preventClose:!!xe,signal:$e}}function Pa(i,c){if(!Un(i))throw new TypeError(c+" is not an AbortSignal.")}function ka(i,c){pe(i,c);var K=i?.readable;v(K,"readable","ReadableWritablePair"),he(K,c+" has member 'readable' that");var me=i?.writable;return v(me,"writable","ReadableWritablePair"),Kr(me,c+" has member 'writable' that"),{readable:K,writable:me}}var Bt=function(){function i(c,K){c===void 0&&(c={}),K===void 0&&(K={}),c===void 0?c=null:z(c,"First parameter");var me=vr(K,"Second parameter"),xe=ba(c,"First parameter");if(Xr(this),xe.type==="bytes"){if(me.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");var $e=ar(me,0);Ct(this,xe,$e)}else{var je=pr(me),$e=ar(me,1);va(this,xe,$e,je)}}return Object.defineProperty(i.prototype,"locked",{get:function(){if(!Ut(this))throw Xt("locked");return $t(this)}
75,enumerable:!1,configurable:!0}),i.prototype.cancel=function(c){return c===void 0&&(c=void 0),Ut(this)?$t(this)?q(new TypeError("Cannot cancel a stream that already has a reader")):Pt(this,c):q(Xt("cancel"))},i.prototype.getReader=function(c){if(c===void 0&&(c=void 0),!Ut(this))throw Xt("getReader");var K=Ra(c,"First parameter");return K.mode===void 0?Te(this):qt(this)},i.prototype.pipeThrough=function(c,K){if(K===void 0&&(K={}),!Ut(this))throw Xt("pipeThrough");A(c,1,"pipeThrough");var me=ka(c,"First parameter"),xe=yn(K,"Second parameter");if($t(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(Zt(me.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");var $e=pn(this,me.writable,xe.preventClose,xe.preventAbort,xe.preventCancel,xe.signal);return d($e),me.readable},i.prototype.pipeTo=function(c,K){if(K===void 0&&(K={}),!Ut(this))return q(Xt("pipeTo"));if(c===void 0)return q("Parameter 1 is required in 'pipeTo'.");if(!Kt(c))return q(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));var me;try{me=yn(K,"Second parameter")}catch(xe){return q(xe)}return $t(this)?q(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):Zt(c)?q(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):pn(this,c,me.preventClose,me.preventAbort,me.preventCancel,me.signal)},i.prototype.tee=function(){if(!Ut(this))throw Xt("tee");var c=ga(this);return Y(c)},i.prototype.values=function(c){if(c===void 0&&(c=void 0),!Ut(this))throw Xt("values");var K=Ea(c,"First parameter");return ee(this,K.preventCancel)},i}();Object.defineProperties(Bt.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(Bt.prototype,e.toStringTag,{value:"ReadableStream",configurable:!0}),typeof e.asyncIterator=="symbol"&&Object.defineProperty(Bt.prototype,e.asyncIterator,{value:Bt.prototype.values,writable:!0,configurable:!0});function Vr(i,c,K,me,xe){me===void 0&&(me=1),xe===void 0&&(xe=function(){return 1});var $e=Object.create(Bt.prototype);Xr($e);var je=Object.create(Jt.prototype);return gn($e,je,i,c,K,me,xe),$e}function mn(i,c,K){var me=Object.create(Bt.prototype);Xr(me);var xe=Object.create(De.prototype);return yt(me,xe,i,c,K,0,void 0),me}function Xr(i){i._state="readable",i._reader=void 0,i._storedError=void 0,i._disturbed=!1}function Ut(i){return!u(i)||!Object.prototype.hasOwnProperty.call(i,"_readableStreamController")?!1:i instanceof Bt}function $t(i){return i._reader!==void 0}function Pt(i,c){if(i._disturbed=!0,i._state==="closed")return D(void 0);if(i._state==="errored")return q(i._storedError);cr(i);var K=i._reader;K!==void 0&&vt(K)&&(K._readIntoRequests.forEach(function(xe){xe._closeSteps(void 0)}),K._readIntoRequests=new M);var me=i._readableStreamController[$](c);return y(me,a)}function cr(i){i._state="closed";var c=i._reader;c!==void 0&&(T(c),ge(c)&&(c._readRequests.forEach(function(K){K._closeSteps()}),c._readRequests=new M))}function bn(i,c){i._state="errored",i._storedError=c;var K=i._reader;K!==void 0&&(re(K,c),ge(K)?(K._readRequests.forEach(function(me){me._errorSteps(c)}),K._readRequests=new M):(K._readIntoRequests.forEach(function(me){me._errorSteps(c)}),K._readIntoRequests=new M))}function Xt(i){return new TypeError("ReadableStream.prototype."+i+" can only be used on a ReadableStream")}function _n(i,c){pe(i,c);var K=i?.highWaterMark;return v(K,"highWaterMark","QueuingStrategyInit"),{highWaterMark:L(K)}}var Sn=function(i){return i.byteLength};Object.defineProperty(Sn,"name",{value:"size",configurable:!0});var Pr=function(){function i(c){A(c,1,"ByteLengthQueuingStrategy"),c=_n(c,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=c.highWaterMark}return Object.defineProperty(i.prototype,"highWaterMark",{get:function(){if(!wn(this))throw An("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}
75,enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"size",{get:function(){if(!wn(this))throw An("size");return Sn},enumerable:!1,configurable:!0}),i}();Object.defineProperties(Pr.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(Pr.prototype,e.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});function An(i){return new TypeError("ByteLengthQueuingStrategy.prototype."+i+" can only be used on a ByteLengthQueuingStrategy")}function wn(i){return!u(i)||!Object.prototype.hasOwnProperty.call(i,"_byteLengthQueuingStrategyHighWaterMark")?!1:i instanceof Pr}var Rn=function(){return 1};Object.defineProperty(Rn,"name",{value:"size",configurable:!0});var kr=function(){function i(c){A(c,1,"CountQueuingStrategy"),c=_n(c,"First parameter"),this._countQueuingStrategyHighWaterMark=c.highWaterMark}return Object.defineProperty(i.prototype,"highWaterMark",{get:function(){if(!En(this))throw Tn("highWaterMark");return this._countQueuingStrategyHighWaterMark},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"size",{get:function(){if(!En(this))throw Tn("size");return Rn},enumerable:!1,configurable:!0}),i}();Object.defineProperties(kr.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(kr.prototype,e.toStringTag,{value:"CountQueuingStrategy",configurable:!0});function Tn(i){return new TypeError("CountQueuingStrategy.prototype."+i+" can only be used on a CountQueuingStrategy")}function En(i){return!u(i)||!Object.prototype.hasOwnProperty.call(i,"_countQueuingStrategyHighWaterMark")?!1:i instanceof kr}function Ca(i,c){pe(i,c);var K=i?.flush,me=i?.readableType,xe=i?.start,$e=i?.transform,je=i?.writableType;return{flush:K===void 0?void 0:Oa(K,i,c+" has member 'flush' that"),readableType:me,start:xe===void 0?void 0:xa(xe,i,c+" has member 'start' that"),transform:$e===void 0?void 0:Ia($e,i,c+" has member 'transform' that"),writableType:je}}function Oa(i,c,K){return Re(i,K),function(me){return R(i,c,[me])}}function xa(i,c,K){return Re(i,K),function(me){return _(i,c,[me])}}function Ia(i,c,K){return Re(i,K),function(me,xe){return R(i,c,[me,xe])}}var Cr=function(){function i(c,K,me){c===void 0&&(c={}),K===void 0&&(K={}),me===void 0&&(me={}),c===void 0&&(c=null);var xe=vr(K,"Second parameter"),$e=vr(me,"Third parameter"),je=Ca(c,"First parameter");if(je.readableType!==void 0)throw new RangeError("Invalid readableType specified");if(je.writableType!==void 0)throw new RangeError("Invalid writableType specified");var Ge=ar($e,0),Je=pr($e),et=ar(xe,1),tt=pr(xe),rt,gt=I(function(kt){rt=kt});Fa(this,gt,et,tt,Ge,Je),Da(this,je),je.start!==void 0?rt(je.start(this._transformStreamController)):rt(void 0)}return Object.defineProperty(i.prototype,"readable",{get:function(){if(!Pn(this))throw xn("readable");return this._readable},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"writable",{get:function(){if(!Pn(this))throw xn("writable");return this._writable},enumerable:!1,configurable:!0}),i}();Object.defineProperties(Cr.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(Cr.prototype,e.toStringTag,{value:"TransformStream",configurable:!0});function Fa(i,c,K,me,xe,$e){function je(){return c}function Ge(gt){return Ba(i,gt)}function Je(gt){return Ua(i,gt)}function et(){return $a(i)}i._writable=Wn(je,Ge,et,Je,K,me);function tt(){return ja(i)}function rt(gt){return xr(i,gt),D(void 0)}i._readable=Vr(je,tt,rt,xe,$e),i._backpressure=void 0,i._backpressureChangePromise=void 0,i._backpressureChangePromise_resolve=void 0,Ir(i,!0),i._transformStreamController=void 0}function Pn(i){return!u(i)||!Object.prototype.hasOwnProperty.call(i,"_transformStreamController")?!1:i instanceof Cr}function Or(i,c){Nt(i._readable._readableStreamController,c),xr(i,c)}function xr(i,c){kn(i._transformStreamController),$r(i._writable._writableStreamController,c),i._backpressure&&Ir(i,!1)}function Ir(i,c){i._backpressureChangePromise!==void 0&&i._backpressureChangePromise_resolve(),i._backpressureChangePromise=I(function(K){i._backpressureChangePromise_resolve=K}),i._backpressure=c}var fr=function(){function i(){throw new TypeError("Illegal constructor")}return Object.defineProperty(i.prototype,"desiredSize",{get:function(){if(!Fr(this))throw Mr("desiredSize");var c=this._controlledTransformStream._readable._readableStreamController;return Hr(c)}
75,enumerable:!1,configurable:!0}),i.prototype.enqueue=function(c){if(c===void 0&&(c=void 0),!Fr(this))throw Mr("enqueue");Cn(this,c)},i.prototype.error=function(c){if(c===void 0&&(c=void 0),!Fr(this))throw Mr("error");La(this,c)},i.prototype.terminate=function(){if(!Fr(this))throw Mr("terminate");Na(this)},i}();Object.defineProperties(fr.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),typeof e.toStringTag=="symbol"&&Object.defineProperty(fr.prototype,e.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});function Fr(i){return!u(i)||!Object.prototype.hasOwnProperty.call(i,"_controlledTransformStream")?!1:i instanceof fr}function Ma(i,c,K,me){c._controlledTransformStream=i,i._transformStreamController=c,c._transformAlgorithm=K,c._flushAlgorithm=me}function Da(i,c){var K=Object.create(fr.prototype),me=function($e){try{return Cn(K,$e),D(void 0)}catch(je){return q(je)}},xe=function(){return D(void 0)};c.transform!==void 0&&(me=function($e){return c.transform($e,K)}),c.flush!==void 0&&(xe=function(){return c.flush(K)}),Ma(i,K,me,xe)}function kn(i){i._transformAlgorithm=void 0,i._flushAlgorithm=void 0}function Cn(i,c){var K=i._controlledTransformStream,me=K._readable._readableStreamController;if(!er(me))throw new TypeError("Readable side is not in a state that permits enqueue");try{Tr(me,c)}catch($e){throw xr(K,$e),K._readable._storedError}var xe=pa(me);xe!==K._backpressure&&Ir(K,!0)}function La(i,c){Or(i._controlledTransformStream,c)}function On(i,c){var K=i._transformAlgorithm(c);return y(K,void 0,function(me){throw Or(i._controlledTransformStream,me),me})}function Na(i){var c=i._controlledTransformStream,K=c._readable._readableStreamController;lr(K);var me=new TypeError("TransformStream terminated");xr(c,me)}function Ba(i,c){var K=i._transformStreamController;if(i._backpressure){var me=i._backpressureChangePromise;return y(me,function(){var xe=i._writable,$e=xe._state;if($e==="erroring")throw xe._storedError;return On(K,c)})}return On(K,c)}function Ua(i,c){return Or(i,c),D(void 0)}function $a(i){var c=i._readable,K=i._transformStreamController,me=K._flushAlgorithm();return kn(K),y(me,function(){if(c._state==="errored")throw c._storedError;lr(c._readableStreamController)},function(xe){throw Or(i,xe),c._storedError})}function ja(i){return Ir(i,!1),i._backpressureChangePromise}function Mr(i){return new TypeError("TransformStreamDefaultController.prototype."+i+" can only be used on a TransformStreamDefaultController")}function xn(i){return new TypeError("TransformStream.prototype."+i+" can only be used on a TransformStream")}t.ByteLengthQueuingStrategy=Pr,t.CountQueuingStrategy=kr,t.ReadableByteStreamController=De,t.ReadableStream=Bt,t.ReadableStreamBYOBReader=Et,t.ReadableStreamBYOBRequest=Me,t.ReadableStreamDefaultController=Jt,t.ReadableStreamDefaultReader=ce,t.TransformStream=Cr,t.TransformStreamDefaultController=fr,t.WritableStream=ir,t.WritableStreamDefaultController=Qt,t.WritableStreamDefaultWriter=or,Object.defineProperty(t,"__esModule",{value:!0})})},(n,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.BaseStandardFontDataFactory=r.BaseSVGFactory=r.BaseCanvasFactory=r.BaseCMapReaderFactory=void 0;var e=o(t(2)),a=t(4);
75function o(q){return q&&q.__esModule?q:{default:q}}function s(q,O,B,S,N,y,d){try{var h=q[y](d),_=h.value}catch(R){B(R);return}h.done?O(_):Promise.resolve(_).then(S,N)}function u(q){return function(){var O=this,B=arguments;return new Promise(function(S,N){var y=q.apply(O,B);function d(_){s(y,S,N,d,h,"next",_)}function h(_){s(y,S,N,d,h,"throw",_)}d(void 0)})}}function f(q,O){if(!(q instanceof O))throw new TypeError("Cannot call a class as a function")}function w(q,O){for(var B=0;B<O.length;B++){var S=O[B];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(q,S.key,S)}}function m(q,O,B){return O&&w(q.prototype,O),q}var k=function(){function q(){f(this,q),this.constructor===q&&(0,a.unreachable)("Cannot initialize BaseCanvasFactory.")}return m(q,[{key:"create",value:function(B,S){if(B<=0||S<=0)throw new Error("Invalid canvas size");var N=this._createCanvas(B,S);return{canvas:N,context:N.getContext("2d")}}},{key:"reset",value:function(B,S,N){if(!B.canvas)throw new Error("Canvas is not specified");if(S<=0||N<=0)throw new Error("Invalid canvas size");B.canvas.width=S,B.canvas.height=N}},{key:"destroy",value:function(B){if(!B.canvas)throw new Error("Canvas is not specified");B.canvas.width=0,B.canvas.height=0,B.canvas=null,B.context=null}},{key:"_createCanvas",value:function(B,S){(0,a.unreachable)("Abstract method `_createCanvas` called.")}}]),q}();r.BaseCanvasFactory=k;var x=function(){function q(O){var B=O.baseUrl,S=B===void 0?null:B,N=O.isCompressed,y=N===void 0?!1:N;f(this,q),this.constructor===q&&(0,a.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=S,this.isCompressed=y}return m(q,[{key:"fetch",value:function(){var O=u(e.default.mark(function S(N){var y=this,d,h,_;return e.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(d=N.name,this.baseUrl){g.next=3;break}throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');case 3:if(d){g.next=5;break}throw new Error("CMap name must be specified.");case 5:return h=this.baseUrl+d+(this.isCompressed?".bcmap":""),_=this.isCompressed?a.CMapCompressionType.BINARY:a.CMapCompressionType.NONE,g.abrupt("return",this._fetchData(h,_).catch(function(M){throw new Error("Unable to load ".concat(y.isCompressed?"binary ":"","CMap at: ").concat(h))}));case 8:case"end":return g.stop()}},S,this)}));function B(S){return O.apply(this,arguments)}return B}()},{key:"_fetchData",value:function(B,S){(0,a.unreachable)("Abstract method `_fetchData` called.")}}]),q}();r.BaseCMapReaderFactory=x;var I=function(){function q(O){var B=O.baseUrl,S=B===void 0?null:B;f(this,q),this.constructor===q&&(0,a.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=S}return m(q,[{key:"fetch",value:function(){var O=u(e.default.mark(function S(N){var y,d;return e.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(y=N.filename,this.baseUrl){_.next=3;break}throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');case 3:if(y){_.next=5;break}throw new Error("Font filename must be specified.");case 5:return d="".concat(this.baseUrl).concat(y),_.abrupt("return",this._fetchData(d).catch(function(R){throw new Error("Unable to load font data at: ".concat(d))}));case 7:case"end":return _.stop()}},S,this)}));function B(S){return O.apply(this,arguments)}return B}()},{key:"_fetchData",value:function(B){(0,a.unreachable)("Abstract method `_fetchData` called.")}}]),q}();r.BaseStandardFontDataFactory=I;var D=function(){function q(){f(this,q),this.constructor===q&&(0,a.unreachable)("Cannot initialize BaseSVGFactory.")}return m(q,[{key:"create",value:function(B,S){if(B<=0||S<=0)throw new Error("Invalid SVG dimensions");var N=this._createSVG("svg:svg");return N.setAttribute("version","1.1"),N.setAttribute("width","".concat(B,"px")),N.setAttribute("height","".concat(S,"px")),N.setAttribute("preserveAspectRatio","none"),N.setAttribute("viewBox","0 0 ".concat(B," ").concat(S)),N}},{key:"createElement",value:function(B){if(typeof B!="string")throw new Error("Invalid SVG element type");return this._createSVG(B)}},{key:"_createSVG",value:function(B){(0,a.unreachable)("Abstract method `_createSVG` called.")}}]),q}();r.BaseSVGFactory=D},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.build=exports.RenderTask=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,exports.getDocument=getDocument,exports.setPDFNetworkStreamFactory=setPDFNetworkStreamFactory,exports.version=void 0;var _regenerator=_interopRequireDefault(__w_pdfjs_require__(2)),_util=__w_pdfjs_require__(4),_display_utils=__w_pdfjs_require__(1),_font_loader=__w_pdfjs_require__(137),_node_utils=__w_pdfjs_require__(138),_annotation_storage=__w_pdfjs_require__(139),_canvas=__w_pdfjs_require__(140),_worker_options=__w_pdfjs_require__(142),_is_node=__w_pdfjs_require__(6),_message_handler=__w_pdfjs_require__(143),_metadata=__w_pdfjs_require__(144),_optional_content_config=__w_pdfjs_require__(145),_transport_stream=__w_pdfjs_require__(146),_xfa_text=__w_pdfjs_require__(147);function _interopRequireDefault(n){return n&&n.__esModule?n:{default:n}}function _classPrivateFieldInitSpec(n,r,t){_checkPrivateRedeclaration(n,r),r.set(n,t)}function _checkPrivateRedeclaration(n,r){if(r.has(n))throw new TypeError("Cannot initialize the same private elements twice on an object")}function _classPrivateFieldSet(n,r,t){var e=_classExtractFieldDescriptor(n,r,"set");return _classApplyDescriptorSet(n,e,t),t}function _classApplyDescriptorSet(n,r,t){if(r.set)r.set.call(n,t);else{if(!r.writable)throw new TypeError("attempted to set read only private field");r.value=t}}function _classPrivateFieldGet(n,r){var t=_classExtractFieldDescriptor(n,r,"get");return _classApplyDescriptorGet(n,t)}function _classExtractFieldDescriptor(n,r,t){if(!r.has(n))throw new TypeError("attempted to "+t+" private field on non-instance");return r.get(n)}function _classApplyDescriptorGet(n,r){return r.get?r.get.call(n):r.value}function _toConsumableArray(n){return _arrayWithoutHoles(n)||_iterableToArray(n)||_unsupportedIterableToArray(n)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 76In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function _arrayWithoutHoles(n){if(Array.isArray(n))return _arrayLikeToArray(n)}function _createForOfIteratorHelper(n,r){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=_unsupportedIterableToArray(n))||r){t&&(n=t);var e=0,a=function(){};return{s:a,n:function(){return e>=n.length?{done:!0}
76:{done:!1,value:n[e++]}},e:function(w){throw w},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 77In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,u;return{s:function(){t=t.call(n)},n:function(){var w=t.next();return o=w.done,w},e:function(w){s=!0,u=w},f:function(){try{!o&&t.return!=null&&t.return()}finally{if(s)throw u}}}}function _classCallCheck(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(n,r){for(var t=0;t<r.length;t++){var e=r[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function _createClass(n,r,t){return r&&_defineProperties(n.prototype,r),t&&_defineProperties(n,t),n}function asyncGeneratorStep(n,r,t,e,a,o,s){try{var u=n[o](s),f=u.value}catch(w){t(w);return}u.done?r(f):Promise.resolve(f).then(e,a)}function _asyncToGenerator(n){return function(){var r=this,t=arguments;return new Promise(function(e,a){var o=n.apply(r,t);function s(f){asyncGeneratorStep(o,e,a,s,u,"next",f)}function u(f){asyncGeneratorStep(o,e,a,s,u,"throw",f)}s(void 0)})}}function _slicedToArray(n,r){return _arrayWithHoles(n)||_iterableToArrayLimit(n,r)||_unsupportedIterableToArray(n,r)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 78In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(n,r){if(n){if(typeof n=="string")return _arrayLikeToArray(n,r);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _arrayLikeToArray(n,r)}}function _arrayLikeToArray(n,r){(r==null||r>n.length)&&(r=n.length);for(var t=0,e=new Array(r);t<r;t++)e[t]=n[t];return e}function _iterableToArrayLimit(n,r){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var e=[],a=!0,o=!1,s,u;try{for(t=t.call(n);!(a=(s=t.next()).done)&&(e.push(s.value),!(r&&e.length===r));a=!0);}catch(f){o=!0,u=f}finally{try{!a&&t.return!=null&&t.return()}finally{if(o)throw u}}return e}}function _arrayWithHoles(n){if(Array.isArray(n))return n}function _typeof(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(t){return typeof t}:_typeof=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(n)}var DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DefaultCanvasFactory=_is_node.isNodeJS?_node_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;var DefaultCMapReaderFactory=_is_node.isNodeJS?_node_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;var DefaultStandardFontDataFactory=_is_node.isNodeJS?_node_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;var createPDFNetworkStream;function setPDFNetworkStreamFactory(n){createPDFNetworkStream=n}function getDocument(n){var r=new PDFDocumentLoadingTask,t;if(typeof n=="string"||n instanceof URL)t={url:n};else if((0,_util.isArrayBuffer)(n))t={data:n};else if(n instanceof PDFDataRangeTransport)t={range:n};else{if(_typeof(n)!=="object")throw new Error("Invalid parameter in getDocument, need either string, URL, Uint8Array, or parameter object.");if(!n.url&&!n.data&&!n.range)throw new Error("Invalid parameter object: need either .data, .range or .url");t=n}var e=Object.create(null),a=null,o=null;for(var s in t){var u=t[s];switch(s){case"url":if(typeof window<"u")try{e[s]=new URL(u,window.location).href;continue}catch(m){(0,_util.warn)('Cannot create valid URL: "'.concat(m,'".'))}else if(typeof u=="string"||u instanceof URL){e[s]=u.toString();continue}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.");case"range":a=u;continue;case"worker":o=u;continue;case"data":if(_is_node.isNodeJS&&typeof buffer.Buffer<"u"&&u instanceof buffer.Buffer)e[s]=new Uint8Array(u);else{if(u instanceof Uint8Array)break;if(typeof u=="string")e[s]=(0,_util.stringToBytes)(u);else if(_typeof(u)==="object"&&u!==null&&!isNaN(u.length))e[s]=new Uint8Array(u);else if((0,_util.isArrayBuffer)(u))e[s]=new Uint8Array(u);else throw new Error("Invalid PDF binary data: either typed array, string, or array-like object is expected in the data property.")}continue}e[s]=u}if(e.rangeChunkSize=e.rangeChunkSize||DEFAULT_RANGE_CHUNK_SIZE,e.CMapReaderFactory=e.CMapReaderFactory||DefaultCMapReaderFactory,e.StandardFontDataFactory=e.StandardFontDataFactory||DefaultStandardFontDataFactory,e.ignoreErrors=e.stopAtErrors!==!0,e.fontE
78xtraProperties=e.fontExtraProperties===!0,e.pdfBug=e.pdfBug===!0,e.enableXfa=e.enableXfa===!0,(typeof e.docBaseUrl!="string"||(0,_display_utils.isDataScheme)(e.docBaseUrl))&&(e.docBaseUrl=null),Number.isInteger(e.maxImageSize)||(e.maxImageSize=-1),typeof e.useWorkerFetch!="boolean"&&(e.useWorkerFetch=e.CMapReaderFactory===_display_utils.DOMCMapReaderFactory&&e.StandardFontDataFactory===_display_utils.DOMStandardFontDataFactory),typeof e.isEvalSupported!="boolean"&&(e.isEvalSupported=!0),typeof e.disableFontFace!="boolean"&&(e.disableFontFace=_is_node.isNodeJS),typeof e.useSystemFonts!="boolean"&&(e.useSystemFonts=!_is_node.isNodeJS&&!e.disableFontFace),typeof e.ownerDocument>"u"&&(e.ownerDocument=globalThis.document),typeof e.disableRange!="boolean"&&(e.disableRange=!1),typeof e.disableStream!="boolean"&&(e.disableStream=!1),typeof e.disableAutoFetch!="boolean"&&(e.disableAutoFetch=!1),(0,_util.setVerbosityLevel)(e.verbosity),!o){var f={verbosity:e.verbosity,port:_worker_options.GlobalWorkerOptions.workerPort};o=f.port?PDFWorker.fromPort(f):new PDFWorker(f),r._worker=o}var w=r.docId;return o.promise.then(function(){if(r.destroyed)throw new Error("Loading aborted");var m=_fetchDocument(o,e,a,w),k=new Promise(function(x){var I;a?I=new _transport_stream.PDFDataTransportStream({length:e.length,initialData:e.initialData,progressiveDone:e.progressiveDone,contentDispositionFilename:e.contentDispositionFilename,disableRange:e.disableRange,disableStream:e.disableStream},a):e.data||(I=createPDFNetworkStream({url:e.url,length:e.length,httpHeaders:e.httpHeaders,withCredentials:e.withCredentials,rangeChunkSize:e.rangeChunkSize,disableRange:e.disableRange,disableStream:e.disableStream})),x(I)});return Promise.all([m,k]).then(function(x){var I=_slicedToArray(x,2),D=I[0],q=I[1];if(r.destroyed)throw new Error("Loading aborted");var O=new _message_handler.MessageHandler(w,D,o.port),B=new WorkerTransport(O,r,q,e);r._transport=B,O.send("Ready",null)})}).catch(r._capability.reject),r}function _fetchDocument(n,r,t,e){return _fetchDocument2.apply(this,arguments)}function _fetchDocument2(){return _fetchDocument2=_asyncToGenerator(_regenerator.default.mark(function n(r,t,e,a){var o;return _regenerator.default.wrap(function(u){for(;;)switch(u.prev=u.next){case 0:if(!r.destroyed){u.next=2;break}throw new Error("Worker was destroyed");case 2:return e&&(t.length=e.length,t.initialData=e.initialData,t.progressiveDone=e.progressiveDone,t.contentDispositionFilename=e.contentDispositionFilename),u.next=5,r.messageHandler.sendWithPromise("GetDocRequest",{docId:a,apiVersion:"2.12.313",source:{data:t.data,url:t.url,password:t.password,disableAutoFetch:t.disableAutoFetch,rangeChunkSize:t.rangeChunkSize,length:t.length},maxImageSize:t.maxImageSize,disableFontFace:t.disableFontFace,docBaseUrl:t.docBaseUrl,ignoreErrors:t.ignoreErrors,isEvalSupported:t.isEvalSupported,fontExtraProperties:t.fontE
78xtraProperties,enableXfa:t.enableXfa,useSystemFonts:t.useSystemFonts,cMapUrl:t.useWorkerFetch?t.cMapUrl:null,standardFontDataUrl:t.useWorkerFetch?t.standardFontDataUrl:null});case 5:if(o=u.sent,!r.destroyed){u.next=8;break}throw new Error("Worker was destroyed");case 8:return u.abrupt("return",o);case 9:case"end":return u.stop()}},n)})),_fetchDocument2.apply(this,arguments)}var PDFDocumentLoadingTask=function(){function n(){_classCallCheck(this,n),this._capability=(0,_util.createPromiseCapability)(),this._transport=null,this._worker=null,this.docId="d".concat(n.idCounters.doc++),this.destroyed=!1,this.onPassword=null,this.onProgress=null,this.onUnsupportedFeature=null}return _createClass(n,[{key:"promise",get:function(){return this._capability.promise}},{key:"destroy",value:function(){var r=_asyncToGenerator(_regenerator.default.mark(function e(){var a;return _regenerator.default.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return this.destroyed=!0,s.next=3,(a=this._transport)===null||a===void 0?void 0:a.destroy();case 3:this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null);case 5:case"end":return s.stop()}},e,this)}));function t(){return r.apply(this,arguments)}return t}()}],[{key:"idCounters",get:function(){return(0,_util.shadow)(this,"idCounters",{doc:0})}}]),n}();exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;var PDFDataRangeTransport=function(){function n(r,t){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;_classCallCheck(this,n),this.length=r,this.initialData=t,this.progressiveDone=e,this.contentDispositionFilename=a,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=(0,_util.createPromiseCapability)()}return _createClass(n,[{key:"addRangeListener",value:function(t){this._rangeListeners.push(t)}},{key:"addProgressListener",value:function(t){this._progressListeners.push(t)}},{key:"addProgressiveReadListener",value:function(t){this._progressiveReadListeners.push(t)}},{key:"addProgressiveDoneListener",value:function(t){this._progressiveDoneListeners.push(t)}},{key:"onDataRange",value:function(t,e){var a=_createForOfIteratorHelper(this._rangeListeners),o;try{for(a.s();!(o=a.n()).done;){var s=o.value;s(t,e)}}catch(u){a.e(u)}finally{a.f()}}},{key:"onDataProgress",value:function(t,e){var a=this;this._readyCapability.promise.then(function(){var o=_createForOfIteratorHelper(a._progressListeners),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;u(t,e)}}catch(f){o.e(f)}finally{o.f()}})}},{key:"onDataProgressiveRead",value:function(t){var e=this;this._readyCapability.promise.then(function(){var a=_createForOfIteratorHelper(e._progressiveReadListeners),o;try{for(a.s();!(o=a.n()).done;){var s=o.value;s(t)}}catch(u){a.e(u)}finally{a.f()}})}},{key:"onDataProgressiveDone",value:function(){var t=this;this._readyCapability.promise.then(function(){var e=_createForOfIteratorHelper(t._progressiveDoneListeners),a;try{for(e.s();!(a=e.n()).done;){var o=a.value;o()}}catch(s){e.e(s)}finally{e.f()}})}},{key:"transportReady",value:function(){this._readyCapability.resolve()}},{key:"requestDataRange",value:function(t,e){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}},{key:"abort",value:function(){}}]),n}();exports.PDFDataRangeTransport=PDFDataRangeTransport;var PDFDocumentProxy=function(){function n(r,t){var e=this;_classCallCheck(this,n),this._pdfInfo=r,this._transport=t,Object.defineProperty(this,"fingerprint",{get:function(){return(0,_display_utils.deprecated)("`PDFDocumentProxy.fingerprint`, please use `PDFDocumentProxy.fingerprints` instead."),this.fingerprints[0]}}),Object.defineProperty(this,"getStats",{value:function(){var a=_asyncToGenerator(_regenerator.default.mark(function s(){return _regenerator.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return(0,_display_utils.deprecated)("`PDFDocumentProxy.getStats`, please use the `PDFDocumentProxy.stats`-getter instead."),f.abrupt("return",e.stats||{streamTypes:{},fontTypes:{}});case 2:case"end":return f.stop()}},s)}));function o(){return a.apply(this,arguments)}return o}()})}return _createClass(n,[{key:"annotationStorage",get:function(){return this._transport.annotationStorage}},{key:"numPages",get:function(){return this._pdfInfo.numPages}},{key:"fingerprints",get:function(){return this._pdfInfo.fingerprints}},{key:"stats",get:function(){return this._transport.stats}},{key:"isPureXfa",get:function(){return!!this._transport._htmlForXfa}},{key:"allXfaHtml",get:function(){return this._transport._htmlForXfa}},{key:"getPage",value:function(t){return this._transport.getPage(t)}},{key:"getPageIndex",value:function(t){return this._transport.getPageIndex(t)}},{key:"getDestinations",value:function(){return this._transport.getDestinations()}},{key:"getDestination",value:function(t){return this._transport.getDestination(t)}},{key:"getPageLabels",value:function(){return this._transport.getPageLabels()}},{key:"getPageLayout",value:function(){return this._transport.getPageLayout()}},{key:"getPageMode",value:function(){return this._transport.getPageMode()}},{key:"getViewerPreferences",value:function(){return this._transport.getViewerPreferences()}},{key:"getOpenAction",value:function(){return this._transport.getOpenAction()}},{key:"getAttachments",value:function(){return this._transport.getAttachments()}},{key:"getJavaScript",value:function(){return this._transport.getJavaScript()}},{key:"getJSActions",value:function(){return this._transport.getDocJSActions()}},{key:"getOutline",value:function(){return this._transport.getOutline()}},{key:"getOptionalContentConfig",value:function(){return this._transport.getOptionalContentConfig()}},{key:"getPermissions",value:function(){return this._transport.getPermissions()}},{key:"getMetadata",value:function(){return this._transport.getMetadata()}},{key:"getMarkInfo",value:function(){return this._transport.getMarkInfo()}},{key:"getData",value:function(){return this._transport.getData()}},{key:"getDownloadInfo",value:function(){return this._transport.downloadInfoCapability.promise}},{key:"cleanup",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this._transport.startCleanup(t||this.isPureXfa)}},{key:"destroy",value:function(){return this.loadingTask.destroy()}},{key:"loadingParams",get:function(){return this._transport.loadingParams}},{key:"loadingTask",get:function(){return this._transport.loadingTask}},{key:"saveDocument",value:function(){return this._transport.annotationStorage.size<=0&&(0,_display_utils.deprecated)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead."),this._transport.saveDocument()}},{key:"getFieldObjects",value:function(){return this._transport.getFieldObjects()}},{key:"hasJSActions",value:function(){return this._transport.hasJSActions()}},{key:"getCalculationOrderIds",value:function(){return this._transport.getCalculationOrderIds()}}]),n}();exports.PDFDocumentProxy=PDFDocumentProxy;var PDFPageProxy=function(){function n(r,t,e,a){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;_classCallCheck(this,n),this._pageIndex=r,this._pageInfo=t,this._ownerDocument=a,this._transport=e,this._stats=o?new _display_utils.StatTimer:null,this._pdfBug=o,this.commonObjs=e.commonObjs,this.objs=new PDFObjects,this.cleanupAfterRender=!1,this.pendingCleanup=!1,this._intentStates=new Map,this._annotationPromises=new Map,this.destroyed=!1}return _createClass(n,[{key:"pageNumber",get:function(){return this._pageIndex+1}},{key:"rotate",get:function(){return this._pageInfo.rotate}},{key:"ref",get:function(){return this._pageInfo.ref}},{key:"userUnit",get:function(){return this._pageInfo.userUnit}},{key:"view",get:function(){return this._pageInfo.view}},{key:"getViewport",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.scale,a=t.rotation,o=a===void 0?this.rotate:a,s=t.offsetX,u=s===void 0?0:s,f=t.offsetY,w=f===void 0?0:f,m=t.dontFlip,k=m===void 0?!1:m;return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:o,offsetX:u,offsetY:w,dontFlip:k})}},{key:"getAnnotations",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.intent,a=e===void 0?"display":e,o=this._transport.getRenderingIntent
78(a),s=this._annotationPromises.get(o.cacheKey);return s||(s=this._transport.getAnnotations(this._pageIndex,o.renderingIntent),this._annotationPromises.set(o.cacheKey,s),s=s.then(function(u){var f=_createForOfIteratorHelper(u),w;try{var m=function(){var x=w.value;x.titleObj!==void 0&&Object.defineProperty(x,"title",{get:function(){return(0,_display_utils.deprecated)("`title`-property on annotation, please use `titleObj` instead."),x.titleObj.str}}),x.contentsObj!==void 0&&Object.defineProperty(x,"contents",{get:function(){return(0,_display_utils.deprecated)("`contents`-property on annotation, please use `contentsObj` instead."),x.contentsObj.str}})};for(f.s();!(w=f.n()).done;)m()}catch(k){f.e(k)}finally{f.f()}return u})),s}},{key:"getJSActions",value:function(){return this._jsActionsPromise||(this._jsActionsPromise=this._transport.getPageJSActions(this._pageIndex))}},{key:"getXfa",value:function(){var r=_asyncToGenerator(_regenerator.default.mark(function e(){var a;return _regenerator.default.wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",((a=this._transport._htmlForXfa)===null||a===void 0?void 0:a.children[this._pageIndex])||null);case 1:case"end":return s.stop()}},e,this)}));function t(){return r.apply(this,arguments)}return t}()},{key:"render",value:function(t){var e,a,o=this,s,u=t.canvasContext,f=t.viewport,w=t.intent,m=w===void 0?"display":w,k=t.annotationMode,x=k===void 0?_util.AnnotationMode.ENABLE:k,I=t.transform,D=I===void 0?null:I,q=t.imageLayer,O=q===void 0?null:q,B=t.canvasFactory,S=B===void 0?null:B,N=t.background,y=N===void 0?null:N,d=t.optionalContentConfigPromise,h=d===void 0?null:d,_=t.annotationCanvasMap,R=_===void 0?null:_;((e=arguments[0])===null||e===void 0?void 0:e.renderInteractiveForms)!==void 0&&((0,_display_utils.deprecated)("render no longer accepts the `renderInteractiveForms`-option, please use the `annotationMode`-option instead."),arguments[0].renderInteractiveForms===!0&&x===_util.AnnotationMode.ENABLE&&(x=_util.AnnotationMode.ENABLE_FORMS)),((a=arguments[0])===null||a===void 0?void 0:a.includeAnnotationStorage)!==void 0&&((0,_display_utils.deprecated)("render no longer accepts the `includeAnnotationStorage`-option, please use the `annotationMode`-option instead."),arguments[0].includeAnnotationStorage===!0&&x===_util.AnnotationMode.ENABLE&&(x=_util.AnnotationMode.ENABLE_STORAGE)),this._stats&&this._stats.time("Overall");var g=this._transport.getRenderingIntent(m,x);this.pendingCleanup=!1,h||(h=this._transport.getOptionalContentConfig());var M=this._intentStates.get(g.cacheKey);M||(M=Object.create(null),this._intentStates.set(g.cacheKey,M)),M.streamReaderCancelTimeout&&(clearTimeout(M.streamReaderCancelTimeout),M.streamReaderCancelTimeout=null);var H=S||new DefaultCanvasFactory({ownerDocument:this._ownerDocument}),P=!!(g.renderingIntent&_util.RenderingIntentFlag.PRINT);M.displayReadyCapability||(M.displayReadyCapability=(0,_util.createPromiseCapability)(),M.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(g));var F=function(se){M.renderTasks.delete(te),(o.cleanupAfterRender||P)&&(o.pendingCleanup=!0),o._tryCleanup(),se?(te.capability.reject(se),o._abortOperatorList({intentState:M,reason:se instanceof Error?se:new Error(se)})):te.capability.resolve(),o._stats&&(o._stats.timeEnd("Rendering"),o._stats.timeEnd("Overall"))},te=new InternalRenderTask({callback:F,params:{canvasContext:u,viewport:f,transform:D,imageLayer:O,background:y},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:R,operatorList:M.operatorList,pageIndex:this._pageIndex,canvasFactory:H,useRequestAnimationFrame:!P,pdfBug:this._pdfBug});((s=M).renderTasks||(s.renderTasks=new Set)).add(te);var ae=te.task;return Promise.all([M.displayReadyCapability.promise,h]).then(function(ie){var se=_slicedToArray(ie,2),re=se[0],X=se[1];if(o.pendingCleanup){F();return}o._stats&&o._stats.time("Rendering"),te.initializeGraphics({transparency:re,optionalContentConfig:X}),te.operatorListChanged()}).catch(F),ae}},{key:"getOperatorList",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.intent,a=e===void 0?"display":e,o=t.annotationMode,s=o===void 0?_util.AnnotationMode.ENABLE:o;function u(){w.operatorList.lastChunk&&(w.opListReadCapability.resolve(w.operatorList),w.renderTasks.delete(m))}
78var f=this._transport.getRenderingIntent(a,s,!0),w=this._intentStates.get(f.cacheKey);w||(w=Object.create(null),this._intentStates.set(f.cacheKey,w));var m;if(!w.opListReadCapability){var k;m=Object.create(null),m.operatorListChanged=u,w.opListReadCapability=(0,_util.createPromiseCapability)(),((k=w).renderTasks||(k.renderTasks=new Set)).add(m),w.operatorList={fnArray:[],argsArray:[],lastChunk:!1},this._stats&&this._stats.time("Page Request"),this._pumpOperatorList(f)}return w.opListReadCapability.promise}},{key:"streamTextContent",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.normalizeWhitespace,a=e===void 0?!1:e,o=t.disableCombineTextItems,s=o===void 0?!1:o,u=t.includeMarkedContent,f=u===void 0?!1:u,w=100;return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,normalizeWhitespace:a===!0,combineTextItems:s!==!0,includeMarkedContent:f===!0},{highWaterMark:w,size:function(k){return k.items.length}})}},{key:"getTextContent",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(this._transport._htmlForXfa)return this.getXfa().then(function(a){return _xfa_text.XfaText.textContent(a)});var e=this.streamTextContent(t);return new Promise(function(a,o){function s(){u.read().then(function(w){var m,k=w.value,x=w.done;if(x){a(f);return}Object.assign(f.styles,k.styles),(m=f.items).push.apply(m,_toConsumableArray(k.items)),s()},o)}var u=e.getReader(),f={items:[],styles:Object.create(null)};s()})}},{key:"getStructTree",value:function(){return this._structTreePromise||(this._structTreePromise=this._transport.getStructTree(this._pageIndex))}},{key:"_destroy",value:function(){this.destroyed=!0;var t=[],e=_createForOfIteratorHelper(this._intentStates.values()),a;try{for(e.s();!(a=e.n()).done;){var o=a.value;if(this._abortOperatorList({intentState:o,reason:new Error("Page was destroyed."),force:!0}),!o.opListReadCapability){var s=_createForOfIteratorHelper(o.renderTasks),u;try{for(s.s();!(u=s.n()).done;){var f=u.value;t.push(f.completed),f.cancel()}}catch(w){s.e(w)}finally{s.f()}}}}catch(w){e.e(w)}finally{e.f()}return this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,this.pendingCleanup=!1,Promise.all(t)}},{key:"cleanup",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return this.pendingCleanup=!0,this._tryCleanup(t)}},{key:"_tryCleanup",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.pendingCleanup)return!1;var e=_createForOfIteratorHelper(this._intentStates.values()),a;try{for(e.s();!(a=e.n()).done;){var o=a.value,s=o.renderTasks,u=o.operatorList;if(s.size>0||!u.lastChunk)return!1}}catch(f){e.e(f)}finally{e.f()}return this._intentStates.clear(),this.objs.clear(),this._annotationPromises.clear(),this._jsActionsPromise=null,this._structTreePromise=null,t&&this._stats&&(this._stats=new _display_utils.StatTimer),this.pendingCleanup=!1,!0}},{key:"_startRenderPage",value:function(t,e){var a=this._intentStates.get(e);a&&(this._stats&&this._stats.timeEnd("Page Request"),a.displayReadyCapability&&a.displayReadyCapability.resolve(t))}},{key:"_renderPageChunk",value:function(t,e){for(var a=0,o=t.length;a<o;a++)e.operatorList.fnArray.push(t.fnArray[a]),e.operatorList.argsArray.push(t.argsArray[a]);e.operatorList.lastChunk=t.lastChunk;var s=_createForOfIteratorHelper(e.renderTasks),u;try{for(s.s();!(u=s.n()).done;){var f=u.value;f.operatorListChanged()}}catch(w){s.e(w)}finally{s.f()}t.lastChunk&&this._tryCleanup()}},{key:"_pumpOperatorList",value:function(t){var e=this,a=t.renderingIntent,o=t.cacheKey,s=this._transport.messageHandler.sendWithStream("GetOperatorList",{pageIndex:this._pageIndex,intent:a,cacheKey:o,annotationStorage:a&_util.RenderingIntentFlag.ANNOTATIONS_STORAGE?this._transport.annotationStorage.serializable:null}),u=s.getReader(),f=this._intentStates.get(o);f.streamReader=u;var w=function m(){u.read().then(function(k){var x=k.value,I=k.done;if(I){f.streamReader=null;return}e._transport.destroyed||(e._renderPageChunk(x,f),m())}
78,function(k){if(f.streamReader=null,!e._transport.destroyed){if(f.operatorList){f.operatorList.lastChunk=!0;var x=_createForOfIteratorHelper(f.renderTasks),I;try{for(x.s();!(I=x.n()).done;){var D=I.value;D.operatorListChanged()}}catch(q){x.e(q)}finally{x.f()}e._tryCleanup()}if(f.displayReadyCapability)f.displayReadyCapability.reject(k);else if(f.opListReadCapability)f.opListReadCapability.reject(k);else throw k}})};w()}},{key:"_abortOperatorList",value:function(t){var e=this,a=t.intentState,o=t.reason,s=t.force,u=s===void 0?!1:s;if(a.streamReader){if(!u){if(a.renderTasks.size>0)return;if(o instanceof _display_utils.RenderingCancelledException){a.streamReaderCancelTimeout=setTimeout(function(){e._abortOperatorList({intentState:a,reason:o,force:!0}),a.streamReaderCancelTimeout=null},RENDERING_CANCELLED_TIMEOUT);return}}if(a.streamReader.cancel(new _util.AbortException(o.message)).catch(function(){}),a.streamReader=null,!this._transport.destroyed){var f=_createForOfIteratorHelper(this._intentStates),w;try{for(f.s();!(w=f.n()).done;){var m=_slicedToArray(w.value,2),k=m[0],x=m[1];if(x===a){this._intentStates.delete(k);break}}}catch(I){f.e(I)}finally{f.f()}this.cleanup()}}}},{key:"stats",get:function(){return this._stats}}]),n}();exports.PDFPageProxy=PDFPageProxy;var LoopbackPort=function(){function n(){_classCallCheck(this,n),this._listeners=[],this._deferred=Promise.resolve()}return _createClass(n,[{key:"postMessage",value:function(t,e){var a=this;function o(u){if(globalThis.structuredClone)return globalThis.structuredClone(u,e);function f(m){if(typeof m=="function"||_typeof(m)==="symbol"||m instanceof URL)throw new Error("LoopbackPort.postMessage - cannot clone: ".concat(m?.toString()));if(_typeof(m)!=="object"||m===null)return m;if(w.has(m))return w.get(m);var k,x;if((k=m.buffer)&&(0,_util.isArrayBuffer)(k))return e!=null&&e.includes(k)?x=new m.constructor(k,m.byteOffset,m.byteLength):x=new m.constructor(m),w.set(m,x),x;if(m instanceof Map){x=new Map,w.set(m,x);var I=_createForOfIteratorHelper(m),D;try{for(I.s();!(D=I.n()).done;){var q=_slicedToArray(D.value,2),O=q[0],B=q[1];x.set(O,f(B))}}catch(g){I.e(g)}finally{I.f()}return x}if(m instanceof Set){x=new Set,w.set(m,x);var S=_createForOfIteratorHelper(m),N;try{for(S.s();!(N=S.n()).done;){var y=N.value;x.add(f(y))}}catch(g){S.e(g)}finally{S.f()}return x}x=Array.isArray(m)?[]:Object.create(null),w.set(m,x);for(var d in m){for(var h,_=void 0,R=m;!(_=Object.getOwnPropertyDescriptor(R,d));)R=Object.getPrototypeOf(R);typeof _.value>"u"||typeof _.value=="function"&&!((h=m.hasOwnProperty)!==null&&h!==void 0&&h.call(m,d))||(x[d]=f(_.value))}return x}var w=new WeakMap;return f(u)}var s={data:o(t)};this._deferred.then(function(){var u=_createForOfIteratorHelper(a._listeners),f;try{for(u.s();!(f=u.n()).done;){var w=f.value;w.call(a,s)}}catch(m){u.e(m)}finally{u.f()}})}},{key:"addEventListener",value:function(t,e){this._listeners.push(e)}},{key:"removeEventListener",value:function(t,e){var a=this._listeners.indexOf(e);this._listeners.splice(a,1)}},{key:"terminate",value:function(){this._listeners.length=0}}]),n}();exports.LoopbackPort=LoopbackPort;var PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};{if(_is_node.isNodeJS&&typeof commonjsRequire=="function")PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if((typeof document>"u"?"undefined":_typeof(document))==="object"){var _document,_document$currentScri,pdfjsFilePath=(_document=document)===null||_document===void 0||(_document$currentScri=_document.currentScript)===null||_document$currentScri===void 0?void 0:_document$currentScri.src;pdfjsFilePath&&(PDFWorkerUtil.fallbackWorkerSrc=pdfjsFilePath.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.createCDNWrapper=function(n){var r='importScripts("'.concat(n,'");');return URL.createObjectURL(new Blob([r]))}}var PDFWorker=function(){function PDFWorker(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=n.name,t=r===void 0?null:r,e=n.port,a=e===void 0?null:e,o=n.verbosity,s=o===void 0?(0,_util.getVerbosityLevel)():o;if(_classCallCheck(this,PDFWorker),a&&PDFWorker._workerPorts.has(a))throw new Error("Cannot use more than one PDFWorker per port.");if(this.name=t,this.destroyed=!1,this.verbosity=s,this._readyCapability=(0,_util.createPromiseCapability)(),this._port=null,this._webWorker=null,this._messageHandler=null,a){PDFWorker._workerPorts.set(a,this),this._initializeFromPort(a);return}this._initialize()}return _createClass(PDFWorker,[{key:"promise",get:function(){return this._readyCapability.promise}},{key:"port",get:function(){return this._port}},{key:"messageHandler",get:function(){return this._messageHandler}},{key:"_initializeFromPort",value:function(r){this._port=r,this._messageHandler=new _message_handler.MessageHandler("main","worker",r),this._messageHandler.on("ready",function(){}),this._readyCapability.resolve()}},{key:"_initialize",value:function(){var r=this;if(typeof Worker<"u"&&!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){var t=PDFWorker.workerSrc;try{(0,_util.isSameOrigin)(window.location.href,t)||(t=PDFWorkerUtil.createCDNWrapper(new URL(t,window.location).href));var e=new Worker(t),a=new _message_handler.MessageHandler("main","worker",e),o=function(){e.removeEventListener("error",s),a.destroy(),e.terminate(),r.destroyed?r._readyCapability.reject(new Error("Worker was destroyed")):r._setupFakeWorker()},s=function(){r._webWorker||o()};e.addEventListener("error",s),a.on("test",function(f){if(e.removeEventListener("error",s),r.destroyed){o();return}f?(r._messageHandler=a,r._port=e,r._webWorker=e,r._readyCapability.resolve(),a.send("configure",{verbosity:r.verbosity})):(r._setupFakeWorker(),a.destroy(),e.terminate())}),a.on("ready",function(f){if(e.removeEventListener("error",s),r.destroyed){o();return}try{u()}catch{r._setupFakeWorker()}});var u=function(){var w=new Uint8Array([255]);try{a.send("test",w,[w.buffer])}catch{(0,_util.warn)("Cannot use postMessage transfers."),w[0]=0,a.send("test",w)}};
vendor: 6,215 bytes, line 78
78u();return}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}},{key:"_setupFakeWorker",value:function(){var r=this;PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then(function(t){if(r.destroyed){r._readyCapability.reject(new Error("Worker was destroyed"));return}var e=new LoopbackPort;r._port=e;var a="fake".concat(PDFWorkerUtil.fakeWorkerId++),o=new _message_handler.MessageHandler(a+"_worker",a,e);t.setup(o,e);var s=new _message_handler.MessageHandler(a,a+"_worker",e);r._messageHandler=s,r._readyCapability.resolve(),s.send("configure",{verbosity:r.verbosity})}).catch(function(t){r._readyCapability.reject(new Error('Setting up fake worker failed: "'.concat(t.message,'".')))})}},{key:"destroy",value:function(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker._workerPorts.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}}],[{key:"_workerPorts",get:function(){return(0,_util.shadow)(this,"_workerPorts",new WeakMap)}},{key:"fromPort",value:function(r){if(!(r!=null&&r.port))throw new Error("PDFWorker.fromPort - invalid method signature.");return this._workerPorts.has(r.port)?this._workerPorts.get(r.port):new PDFWorker(r)}},{key:"workerSrc",get:function(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(PDFWorkerUtil.fallbackWorkerSrc!==null)return _is_node.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}},{key:"_mainThreadWorkerMessageHandler",get:function(){try{var r;return((r=globalThis.pdfjsWorker)===null||r===void 0?void 0:r.WorkerMessageHandler)||null}catch{return null}}},{key:"_setupFakeWorkerGlobal",get:function get(){var _this11=this,loader=function(){var _ref15=_asyncToGenerator(_regenerator.default.mark(function _callee4(){var mainWorkerMessageHandler,worker;return _regenerator.default.wrap(function _callee4$(_context4){for(;;)switch(_context4.prev=_context4.next){case 0:if(mainWorkerMessageHandler=_this11._mainThreadWorkerMessageHandler,!mainWorkerMessageHandler){_context4.next=3;break}return _context4.abrupt("return",mainWorkerMessageHandler);case 3:if(!(_is_node.isNodeJS&&typeof commonjsRequire=="function")){_context4.next=6;break}return worker=eval("require")(_this11.workerSrc),_context4.abrupt("return",worker.WorkerMessageHandler);case 6:return _context4.next=8,(0,_display_utils.loadScript)(_this11.workerSrc);case 8:return _context4.abrupt("return",window.pdfjsWorker.WorkerMessageHandler);case 9:case"end":return _context4.stop()}},_callee4)}));return function n(){return _ref15.apply(this,arguments)}}();return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}]),PDFWorker}();exports.PDFWorker=PDFWorker,PDFWorker.getWorkerSrc=function(){return(0,_display_utils.deprecated)("`PDFWorker.getWorkerSrc()`, please use `PDFWorker.workerSrc` instead."),this.workerSrc};var _docStats=new WeakMap,_pageCache=new WeakMap,_pagePromises=new WeakMap,_metadataPromise=new WeakMap,WorkerTransport=function(){function n(r,t,e,a){_classCallCheck(this,n),_classPrivateFieldInitSpec(this,_docStats,{writable:!0,value:null}),_classPrivateFieldInitSpec(this,_pageCache,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_pagePromises,{writable:!0,value:new Map}),_classPrivateFieldInitSpec(this,_metadataPromise,{writable:!0,value:null}),this.messageHandler=r,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({docId:t.docId,onUnsupportedFeature:this._onUnsupportedFeature.bind(this),ownerDocument:a.ownerDocument,styleElement:a.styleElement}),this._params=a,a.useWorkerFetch||(this.CMapReaderFactory=new a.CMapReaderFactory({baseUrl:a.cMapUrl,isCompressed:a.cMapPacked}),this.StandardFontDataFactory=new a.StandardFontDataFactory({baseUrl:a.standardFontDataUrl})),this.destroyed=!1,this.destroyCapability=null,this._passwordCapability=null,this._networkStream=e,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=(0,_util.createPromiseCapability)(),this.setupMessageHandler()}return _createClass(n,[{key:"annotationStorage",get:function(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}},{key:"stats",get:function(){return _classPrivateFieldGet(this,_docStats)}},{key:"getRenderingIntent",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_util.AnnotationMode.ENABLE,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=_util.RenderingIntentFlag.DISPLAY,s="";switch(t){case"any":o=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":o=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)("getRenderingIntent - invalid intent: ".concat(t))}switch(e){case _util.AnnotationMode.DISABLE:o+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:o+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:o+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,s=this.annotationStorage.lastModified;break;default:(0,_util.warn)("getRenderingIntent - invalid annotationMode: ".concat(e))}return a&&(o+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:o,cacheKey:"".concat(o,"_").concat(s)}}},{key:"destroy",value:function(){var t=this;if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=(0,_util.createPromiseCapability)(),this._passwordCapability&&this._passwordCapability.reject(new Error("Worker was destroyed during onPassword callback"));var e=[],a=_createForOfIteratorHelper(_classPrivateFieldGet(this,_pageCache).values()),o;try{for(a.s();!(o=a.n()).done;){var s=o.value;e.push(s._destroy())}}catch(f){a.e(f)}finally{a.f()}_classPrivateFieldGet(this,_pageCache).clear(),_classPrivateFieldGet(this,_pagePromises).clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();
78var u=this.messageHandler.sendWithPromise("Terminate",null);return e.push(u),Promise.all(e).then(function(){t.commonObjs.clear(),t.fontLoader.clear(),_classPrivateFieldSet(t,_metadataPromise,null),t._getFieldObjectsPromise=null,t._hasJSActionsPromise=null,t._networkStream&&t._networkStream.cancelAllRequests(new _util.AbortException("Worker was terminated.")),t.messageHandler&&(t.messageHandler.destroy(),t.messageHandler=null),t.destroyCapability.resolve()},this.destroyCapability.reject),this.destroyCapability.promise}},{key:"setupMessageHandler",value:function(){var t=this,e=this.messageHandler,a=this.loadingTask;e.on("GetReader",function(o,s){(0,_util.assert)(t._networkStream,"GetReader - no `IPDFStream` instance available."),t._fullReader=t._networkStream.getFullReader(),t._fullReader.onProgress=function(u){t._lastProgress={loaded:u.loaded,total:u.total}},s.onPull=function(){t._fullReader.read().then(function(u){var f=u.value,w=u.done;if(w){s.close();return}(0,_util.assert)((0,_util.isArrayBuffer)(f),"GetReader - expected an ArrayBuffer."),s.enqueue(new Uint8Array(f),1,[f])}).catch(function(u){s.error(u)})},s.onCancel=function(u){t._fullReader.cancel(u),s.ready.catch(function(f){if(!t.destroyed)throw f})}}),e.on("ReaderHeadersReady",function(o){var s=(0,_util.createPromiseCapability)(),u=t._fullReader;return u.headersReady.then(function(){if(!u.isStreamingSupported||!u.isRangeSupported){if(t._lastProgress){var f;(f=a.onProgress)===null||f===void 0||f.call(a,t._lastProgress)}u.onProgress=function(w){var m;(m=a.onProgress)===null||m===void 0||m.call(a,{loaded:w.loaded,total:w.total})}}s.resolve({isStreamingSupported:u.isStreamingSupported,isRangeSupported:u.isRangeSupported,contentLength:u.contentLength})},s.reject),s.promise}),e.on("GetRangeReader",function(o,s){(0,_util.assert)(t._networkStream,"GetRangeReader - no `IPDFStream` instance available.");var u=t._networkStream.getRangeReader(o.begin,o.end);if(!u){s.close();return}s.onPull=function(){u.read().then(function(f){var w=f.value,m=f.done;if(m){s.close();return}(0,_util.assert)((0,_util.isArrayBuffer)(w),"GetRangeReader - expected an ArrayBuffer."),s.enqueue(new Uint8Array(w),1,[w])}).catch(function(f){s.error(f)})},s.onCancel=function(f){u.cancel(f),s.ready.catch(function(w){if(!t.destroyed)throw w})}}),e.on("GetDoc",function(o){var s=o.pdfInfo;t._numPages=s.numPages,t._htmlForXfa=s.htmlForXfa,delete s.htmlForXfa,a._capability.resolve(new PDFDocumentProxy(s,t))}),e.on("DocException",function(o){var s;switch(o.name){case"PasswordException":s=new _util.PasswordException(o.message,o.code);break;case"InvalidPDFException":s=new _util.InvalidPDFException(o.message);break;case"MissingPDFException":s=new _util.MissingPDFException(o.message);break;case"UnexpectedResponseException":s=new _util.UnexpectedResponseException(o.message,o.status);break;case"UnknownErrorException":s=new _util.UnknownErrorException(o.message,o.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}a._capability.reject(s)}),e.on("PasswordRequest",function(o){if(t._passwordCapability=(0,_util.createPromiseCapability)(),a.onPassword){var s=function(f){t._passwordCapability.resolve({password:f})};try{a.onPassword(s,o.code)}catch(u){t._passwordCapability.reject(u)}}else t._passwordCapability.reject(new _util.PasswordException(o.message,o.code));return t._passwordCapability.promise}),e.on("DataLoaded",function(o){var s;(s=a.onProgress)===null||s===void 0||s.call(a,{loaded:o.length,total:o.length}),t.downloadInfoCapability.resolve(o)}),e.on("StartRenderPage",function(o){if(!t.destroyed){var s=_classPrivateFieldGet(t,_pageCache).get(o.pageIndex);s._startRenderPage(o.transparency,o.cacheKey)}}),e.on("commonobj",function(o){var s,u=_slicedToArray(o,3),f=u[0],w=u[1],m=u[2];if(!t.destroyed&&!t.commonObjs.has(f))switch(w){case"Font":var k=t._params;if("error"in m){var x=m.error;(0,_util.warn)("Error during font loading: ".concat(x)),t.commonObjs.resolve(f,x);break}var I=null;k.pdfBug&&(s=globalThis.FontInspector)!==null&&s!==void 0&&s.enabled&&(I={registerFont:function(O,B){globalThis.FontInspector.fontAdded(O,B)}});var D=new _font_loader.FontFaceObject(m,{isEvalSupported:k.isEvalSupported,disableFontFace:k.disableFontFace,ignoreErrors:k.ignoreErrors,onUnsupportedFeature:t._onUnsupportedFeature.bind(t),fontRegistry:I});
78t.fontLoader.bind(D).catch(function(q){return e.sendWithPromise("FontFallback",{id:f})}).finally(function(){!k.fontExtraProperties&&D.data&&(D.data=null),t.commonObjs.resolve(f,D)});break;case"FontPath":case"Image":t.commonObjs.resolve(f,m);break;default:throw new Error("Got unknown common object type ".concat(w))}}),e.on("obj",function(o){var s,u=_slicedToArray(o,4),f=u[0],w=u[1],m=u[2],k=u[3];if(!t.destroyed){var x=_classPrivateFieldGet(t,_pageCache).get(w);if(!x.objs.has(f))switch(m){case"Image":x.objs.resolve(f,k);var I=8e6;(k==null||(s=k.data)===null||s===void 0?void 0:s.length)>I&&(x.cleanupAfterRender=!0);break;case"Pattern":x.objs.resolve(f,k);break;default:throw new Error("Got unknown object type ".concat(m))}}}),e.on("DocProgress",function(o){var s;t.destroyed||(s=a.onProgress)===null||s===void 0||s.call(a,{loaded:o.loaded,total:o.total})}),e.on("DocStats",function(o){t.destroyed||_classPrivateFieldSet(t,_docStats,Object.freeze({streamTypes:Object.freeze(o.streamTypes),fontTypes:Object.freeze(o.fontTypes)}))}),e.on("UnsupportedFeature",this._onUnsupportedFeature.bind(this)),e.on("FetchBuiltInCMap",function(o){return t.destroyed?Promise.reject(new Error("Worker was destroyed.")):t.CMapReaderFactory?t.CMapReaderFactory.fetch(o):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))}),e.on("FetchStandardFontData",function(o){return t.destroyed?Promise.reject(new Error("Worker was destroyed.")):t.StandardFontDataFactory?t.StandardFontDataFactory.fetch(o):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))})}},{key:"_onUnsupportedFeature",value:function(t){var e,a,o=t.featureId;this.destroyed||(e=(a=this.loadingTask).onUnsupportedFeature)===null||e===void 0||e.call(a,o)}},{key:"getData",value:function(){return this.messageHandler.sendWithPromise("GetData",null)}},{key:"getPage",value:function(t){var e=this;if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request"));var a=t-1,o=_classPrivateFieldGet(this,_pagePromises).get(a);if(o)return o;var s=this.messageHandler.sendWithPromise("GetPage",{pageIndex:a}).then(function(u){if(e.destroyed)throw new Error("Transport destroyed");var f=new PDFPageProxy(a,u,e,e._params.ownerDocument,e._params.pdfBug);return _classPrivateFieldGet(e,_pageCache).set(a,f),f});return _classPrivateFieldGet(this,_pagePromises).set(a,s),s}},{key:"getPageIndex",value:function(t){return this.messageHandler.sendWithPromise("GetPageIndex",{ref:t})}},{key:"getAnnotations",value:function(t,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:e})}},{key:"saveDocument",value:function(){var t,e,a=this;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:this.annotationStorage.serializable,filename:(t=(e=this._fullReader)===null||e===void 0?void 0:e.filename)!==null&&t!==void 0?t:null}).finally(function(){a.annotationStorage.resetModified()})}},{key:"getFieldObjects",value:function(){return this._getFieldObjectsPromise||(this._getFieldObjectsPromise=this.messageHandler.sendWithPromise("GetFieldObjects",null))}},{key:"hasJSActions",value:function(){return this._hasJSActionsPromise||(this._hasJSActionsPromise=this.messageHandler.sendWithPromise("HasJSActions",null))}},{key:"getCalculationOrderIds",value:function(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}},{key:"getDestinations",value:function(){return this.messageHandler.sendWithPromise("GetDestinations",null)}},{key:"getDestination",value:function(t){return typeof t!="string"?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}},{key:"getPageLabels",value:function(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}},{key:"getPageLayout",value:function(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}},{key:"getPageMode",value:function(){return this.messageHandler.sendWithPromise("GetPageMode",null)}},{key:"getViewerPreferences",value:function(){return this.messageHandler.sendWithProm
78ise("GetViewerPreferences",null)}},{key:"getOpenAction",value:function(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}},{key:"getAttachments",value:function(){return this.messageHandler.sendWithPromise("GetAttachments",null)}},{key:"getJavaScript",value:function(){return this.messageHandler.sendWithPromise("GetJavaScript",null)}},{key:"getDocJSActions",value:function(){return this.messageHandler.sendWithPromise("GetDocJSActions",null)}},{key:"getPageJSActions",value:function(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}},{key:"getStructTree",value:function(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}},{key:"getOutline",value:function(){return this.messageHandler.sendWithPromise("GetOutline",null)}},{key:"getOptionalContentConfig",value:function(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(function(t){return new _optional_content_config.OptionalContentConfig(t)})}},{key:"getPermissions",value:function(){return this.messageHandler.sendWithPromise("GetPermissions",null)}},{key:"getMetadata",value:function(){var t=this;return _classPrivateFieldGet(this,_metadataPromise)||_classPrivateFieldSet(this,_metadataPromise,this.messageHandler.sendWithPromise("GetMetadata",null).then(function(e){var a,o,s,u;return{info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:(a=(o=t._fullReader)===null||o===void 0?void 0:o.filename)!==null&&a!==void 0?a:null,contentLength:(s=(u=t._fullReader)===null||u===void 0?void 0:u.contentLength)!==null&&s!==void 0?s:null}}))}},{key:"getMarkInfo",value:function(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}},{key:"startCleanup",value:function(){var r=_asyncToGenerator(_regenerator.default.mark(function e(){var a,o,s,u,f,w=arguments;return _regenerator.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return a=w.length>0&&w[0]!==void 0?w[0]:!1,k.next=3,this.messageHandler.sendWithPromise("Cleanup",null);case 3:if(!this.destroyed){k.next=5;break}return k.abrupt("return");case 5:o=_createForOfIteratorHelper(_classPrivateFieldGet(this,_pageCache).values()),k.prev=6,o.s();case 8:if((s=o.n()).done){k.next=15;break}if(u=s.value,f=u.cleanup(),f){k.next=13;break}throw new Error("startCleanup: Page ".concat(u.pageNumber," is currently rendering."));case 13:k.next=8;break;case 15:k.next=20;break;case 17:k.prev=17,k.t0=k.catch(6),o.e(k.t0);case 20:return k.prev=20,o.f(),k.finish(20);case 23:this.commonObjs.clear(),a||this.fontLoader.clear(),_classPrivateFieldSet(this,_metadataPromise,null),this._getFieldObjectsPromise=null,this._hasJSActionsPromise=null;case 28:case"end":return k.stop()}},e,this,[[6,17,20,23]])}));function t(){return r.apply(this,arguments)}return t}()},{key:"loadingParams",get:function(){var t=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:t.disableAutoFetch,enableXfa:t.enableXfa})}}]),n}(),PDFObjects=function(){function n(){_classCallCheck(this,n),this._objs=Object.create(null)}return _createClass(n,[{key:"_ensureObj",value:function(t){return this._objs[t]?this._objs[t]:this._objs[t]={capability:(0,_util.createPromiseCapability)(),data:null,resolved:!1}}},{key:"get",value:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(e)return this._ensureObj(t).capability.promise.then(e),null;var a=this._objs[t];if(!a||!a.resolved)throw new Error("Requesting object that isn't resolved yet ".concat(t,"."));return a.data}},{key:"has",value:function(t){var e=this._objs[t];return e?.resolved||!1}},{key:"resolve",value:function(t,e){var a=this._ensureObj(t);a.resolved=!0,a.data=e,a.capability.resolve(e)}},{key:"clear",value:function(){this._objs=Object.create(null)}}]),n}(),RenderTask=function(){function n(r){_classCallCheck(this,n),this._internalRenderTask=r,this.onContinue=null}return _createClass(n,[{key:"promise",get:function(){return this._internalRenderTask.capability.promise}},{key:"cancel",value:function(){this._internalRenderTask.cancel()}}]),n}();exports.RenderTask=RenderTask;var InternalRenderTask=function(){function n(r){var t=r.callback,e=r.params,a=r.objs,o=r.commonObjs,s=r.annotationCanvasMap,u=r.operatorList,f=r.pageIndex,w=r.canvasFactory,m=r.useRequestAnimationFrame,k=m===void 0?!1:m,x=r.pdfBug,I=x===void 0?!1:x;_classCallCheck(this,n),this.callback=t,this.params=e,this.objs=a,this.commonObjs=o,this.annotationCanvasMap=s,this.operatorListIdx=null,this.operatorList=u,this._pageIndex=f,this.canvasFactory=w,this._pdfBug=I,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=k===!0&&typeof window<"u",this.cancelled=!1,this.capability=(0,_util.createPromiseCapability)(),this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=e.canvasContext.canvas}
78return _createClass(n,[{key:"completed",get:function(){return this.capability.promise.catch(function(){})}},{key:"initializeGraphics",value:function(t){var e,a=t.transparency,o=a===void 0?!1:a,s=t.optionalContentConfig;if(!this.cancelled){if(this._canvas){if(n.canvasInUse.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");n.canvasInUse.add(this._canvas)}this._pdfBug&&(e=globalThis.StepperManager)!==null&&e!==void 0&&e.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());var u=this.params,f=u.canvasContext,w=u.viewport,m=u.transform,k=u.imageLayer,x=u.background;this.gfx=new _canvas.CanvasGraphics(f,this.commonObjs,this.objs,this.canvasFactory,k,s,this.annotationCanvasMap),this.gfx.beginDrawing({transform:m,viewport:w,transparency:o,background:x}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback&&this.graphicsReadyCallback()}}},{key:"cancel",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;this.running=!1,this.cancelled=!0,this.gfx&&this.gfx.endDrawing(),this._canvas&&n.canvasInUse.delete(this._canvas),this.callback(t||new _display_utils.RenderingCancelledException("Rendering cancelled, page ".concat(this._pageIndex+1),"canvas"))}},{key:"operatorListChanged",value:function(){if(!this.graphicsReady){this.graphicsReadyCallback||(this.graphicsReadyCallback=this._continueBound);return}this.stepper&&this.stepper.updateOperatorList(this.operatorList),!this.running&&this._continue()}},{key:"_continue",value:function(){this.running=!0,!this.cancelled&&(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}},{key:"_scheduleNext",value:function(){var t=this;this._useRequestAnimationFrame?window.requestAnimationFrame(function(){t._nextBound().catch(t._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}},{key:"_next",value:function(){var r=_asyncToGenerator(_regenerator.default.mark(function e(){return _regenerator.default.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(!this.cancelled){o.next=2;break}return o.abrupt("return");case 2:this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),this._canvas&&n.canvasInUse.delete(this._canvas),this.callback()));case 4:case"end":return o.stop()}},e,this)}));function t(){return r.apply(this,arguments)}return t}()}],[{key:"canvasInUse",get:function(){return(0,_util.shadow)(this,"canvasInUse",new WeakSet)}}]),n}(),version="2.12.313";exports.version=version;var build="a2ae56f39";exports.build=build},(n,r,t)=>{function e(g){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(H){return typeof H}:e=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},e(g)}Object.defineProperty(r,"__esModule",{value:!0}),r.FontLoader=r.FontFaceObject=void 0;var a=s(t(2)),o=t(4);function s(g){return g&&g.__esModule?g:{default:g}}function u(g,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(M&&M.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),M&&f(g,M)}function f(g,M){return f=Object.setPrototypeOf||function(P,F){return P.__proto__=F,P},f(g,M)}function w(g){var M=x();return function(){var P=I(g),F;if(M){var te=I(this).constructor;F=Reflect.construct(P,arguments,te)}else F=P.apply(this,arguments);return m(this,F)}}function m(g,M){if(M&&(e(M)==="object"||typeof M=="function"))return M;if(M!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k(g)}function k(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}
78function I(g){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)},I(g)}function D(g,M,H,P,F,te,ae){try{var ie=g[te](ae),se=ie.value}catch(re){H(re);return}ie.done?M(se):Promise.resolve(se).then(P,F)}function q(g){return function(){var M=this,H=arguments;return new Promise(function(P,F){var te=g.apply(M,H);function ae(se){D(te,P,F,ae,ie,"next",se)}function ie(se){D(te,P,F,ae,ie,"throw",se)}ae(void 0)})}}function O(g,M){var H=typeof Symbol<"u"&&g[Symbol.iterator]||g["@@iterator"];if(!H){if(Array.isArray(g)||(H=B(g))||M){H&&(g=H);var P=0,F=function(){};return{s:F,n:function(){return P>=g.length?{done:!0}:{done:!1,value:g[P++]}},e:function(re){throw re},f:F}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 79In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var te=!0,ae=!1,ie;return{s:function(){H=H.call(g)},n:function(){var re=H.next();return te=re.done,re},e:function(re){ae=!0,ie=re},f:function(){try{!te&&H.return!=null&&H.return()}finally{if(ae)throw ie}}}}function B(g,M){if(g){if(typeof g=="string")return S(g,M);var H=Object.prototype.toString.call(g).slice(8,-1);if(H==="Object"&&g.constructor&&(H=g.constructor.name),H==="Map"||H==="Set")return Array.from(g);if(H==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(H))return S(g,M)}}function S(g,M){(M==null||M>g.length)&&(M=g.length);for(var H=0,P=new Array(M);H<M;H++)P[H]=g[H];return P}function N(g,M){if(!(g instanceof M))throw new TypeError("Cannot call a class as a function")}function y(g,M){for(var H=0;H<M.length;H++){var P=M[H];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(g,P.key,P)}}function d(g,M,H){return M&&y(g.prototype,M),g}var h=function(){function g(M){var H=M.docId,P=M.onUnsupportedFeature,F=M.ownerDocument,te=F===void 0?globalThis.document:F;M.styleElement,N(this,g),this.constructor===g&&(0,o.unreachable)("Cannot initialize BaseFontLoader."),this.docId=H,this._onUnsupportedFeature=P,this._document=te,this.nativeFontFaces=[],this.styleElement=null}return d(g,[{key:"addNativeFontFace",value:function(H){this.nativeFontFaces.push(H),this._document.fonts.add(H)}},{key:"insertRule",value:function(H){var P=this.styleElement;P||(P=this.styleElement=this._document.createElement("style"),P.id="PDFJS_FONT_STYLE_TAG_".concat(this.docId),this._document.documentElement.getElementsByTagName("head")[0].appendChild(P));var F=P.sheet;F.insertRule(H,F.cssRules.length)}},{key:"clear",value:function(){var H=O(this.nativeFontFaces),P;try{for(H.s();!(P=H.n()).done;){var F=P.value;this._document.fonts.delete(F)}}catch(te){H.e(te)}finally{H.f()}this.nativeFontFaces.length=0,this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}},{key:"bind",value:function(){var M=q(a.default.mark(function P(F){var te=this,ae,ie;return a.default.wrap(function(re){for(;;)switch(re.prev=re.next){case 0:if(!(F.attached||F.missingFile)){re.next=2;break}return re.abrupt("return");case 2:if(F.attached=!0,!this.isFontLoadingAPISupported){re.next=19;break}if(ae=F.createNativeFontFace(),!ae){re.next=18;break}
79return this.addNativeFontFace(ae),re.prev=7,re.next=10,ae.loaded;case 10:re.next=18;break;case 12:throw re.prev=12,re.t0=re.catch(7),this._onUnsupportedFeature({featureId:o.UNSUPPORTED_FEATURES.errorFontLoadNative}),(0,o.warn)("Failed to load font '".concat(ae.family,"': '").concat(re.t0,"'.")),F.disableFontFace=!0,re.t0;case 18:return re.abrupt("return");case 19:if(ie=F.createFontFaceRule(),!ie){re.next=26;break}if(this.insertRule(ie),!this.isSyncFontLoadingSupported){re.next=24;break}return re.abrupt("return");case 24:return re.next=26,new Promise(function(X){var T=te._queueLoadingCallback(X);te._prepareFontLoadEvent([ie],[F],T)});case 26:case"end":return re.stop()}},P,this,[[7,12]])}));function H(P){return M.apply(this,arguments)}return H}()},{key:"_queueLoadingCallback",value:function(H){(0,o.unreachable)("Abstract method `_queueLoadingCallback`.")}},{key:"isFontLoadingAPISupported",get:function(){var H,P=!!((H=this._document)!==null&&H!==void 0&&H.fonts);return(0,o.shadow)(this,"isFontLoadingAPISupported",P)}},{key:"isSyncFontLoadingSupported",get:function(){(0,o.unreachable)("Abstract method `isSyncFontLoadingSupported`.")}},{key:"_loadTestFont",get:function(){(0,o.unreachable)("Abstract method `_loadTestFont`.")}},{key:"_prepareFontLoadEvent",value:function(H,P,F){(0,o.unreachable)("Abstract method `_prepareFontLoadEvent`.")}}]),g}(),_;r.FontLoader=_,r.FontLoader=_=function(g){u(H,g);var M=w(H);function H(P){var F;return N(this,H),F=M.call(this,P),F.loadingContext={requests:[],nextRequestId:0},F.loadTestFontId=0,F}return d(H,[{key:"isSyncFontLoadingSupported",get:function(){var F=!1;if(typeof navigator>"u")F=!0;else{var te=/Mozilla\/5.0.*?rv:(\d+).*? Gecko/.exec(navigator.userAgent);te?.[1]>=14&&(F=!0)}return(0,o.shadow)(this,"isSyncFontLoadingSupported",F)}},{key:"_queueLoadingCallback",value:function(F){function te(){for((0,o.assert)(!ie.done,"completeRequest() cannot be called twice."),ie.done=!0;ae.requests.length>0&&ae.requests[0].done;){var se=ae.requests.shift();setTimeout(se.callback,0)}}var ae=this.loadingContext,ie={id:"pdfjs-font-loading-".concat(ae.nextRequestId++),done:!1,complete:te,callback:F};return ae.requests.push(ie),ie}},{key:"_loadTestFont",get:function(){var F=function(){return atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==")};return(0,o.shadow)(this,"_loadTestFont",F())}},{key:"_prepareFontLoadEvent",value:function(F,te,ae){function ie(Ee,Ie){return Ee.charCodeAt(Ie)<<24|Ee.charCodeAt(Ie+1)<<16|Ee.charCodeAt(Ie+2)<<8|Ee.charCodeAt(Ie+3)&255}function se(Ee,Ie,Le,ce){var ge=Ee.substring(0,Ie),Ce=Ee.substring(Ie+Le);return ge+ce+Ce}var re,X,T=this._document.createElement("canvas");T.width=1,T.height=1;var b=T.getContext("2d"),C=0;function $(Ee,Ie){if(C++,C>30){(0,o.warn)("Load test font never loaded."),Ie();return}b.font="30px "+Ee,b.fillText(".",0,20);var Le=b.getImageData(0,0,1,1);if(Le.data[3]>0){Ie();return}setTimeout($.bind(null,Ee,Ie))}var W="lt".concat(Date.now()).concat(this.loadTestFontId++),V=this._loadTestFont,U=976;V=se(V,U,W.length,W);var de=16,pe=1482184792,Re=ie(V,de);for(re=0,X=W.length-3;re<X;re+=4)Re=Re-pe+ie(W,re)|0;re<W.length&&(Re=Re-pe+ie(W+"XXX",re)|0),V=se(V,de,4,(0,o.string32)(Re));var Z="url(data:font/opentype;base64,".concat(btoa(V),");"),z='@font-face {font-family:"'.concat(W,'";src:').concat(Z,"}");this.insertRule(z);var A=[],v=O(te),L;try{for(v.s();!(L=v.n()).done;){var J=L.value;A.push(J.loadedName)}}catch(Ee){v.e(Ee)}finally{v.f()}A.push(W);var ne=this._document.createElement("div");ne.style.visibility="hidden",ne.style.width=ne.style.height="10px",ne.style.position="absolute",ne.style.top=ne.style.left="0px";for(var oe=0,he=A;oe<he.length;oe++){var Te=he[oe],ke=this._document.createElement("span");ke.textContent="Hi",ke.style.fontFamily=Te,ne.appendChild(ke)}this._document.body.appendChild(ne),$(W,function(){ne.remove(),ae.complete()})}}]),H}(h);var R=function(){function g(M,H){var P=H.isEvalSupported,F=P===void 0?!0:P,te=H.disableFontFace,ae=te===void 0?!1:te,ie=H.ignoreErrors,se=ie===void 0?!1:ie,re=H.onUnsupportedFeature,X=H.fontRegistry,T=X===void 0?null:X;N(this,g),this.compiledGlyphs=Object.create(null);for(var b in M)this[b]=M[b];this.isEvalSupported=F!==!1,this.disableFontFace=ae===!0,this.ignoreErrors=se===!0,this._onUnsupportedFeature=re,this.fontRegistry=T}return d(g,[{key:"createNativeFontFace",value:function(){if(!this.data||this.disableFontFace)return null;var H;if(!this.cssFontInfo)H=new FontFace(this.loadedName,this.data,{});else{var P={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(P.style="oblique ".concat(this.cssFontInfo.italicAngle,"deg")),H=new FontFace(this.cssFontInfo.fontFamily,this.data,P)}return this.fontRegistry&&this.fontRegistry.registerFont(this),H}},{key:"createFontFaceRule",value:function(){if(!this.data||this.disableFontFace)return null;var H=(0,o.bytesToString)(this.data),P="url(data:".concat(this.mimetype,";base64,").concat(btoa(H),");"),F;if(!this.cssFontInfo)F='@font-face {font-family:"'.concat(this.loadedName,'";src:').concat(P,"}");else{var te="font-weight: ".concat(this.cssFontInfo.fontWeight,";");this.cssFontInfo.italicAngle&&(te+="font-style: oblique ".concat(this.cssFontInfo.italicAngle,"deg;")),F='@font-face {font-family:"'.concat(this.cssFontInfo.fontFamily,'";').concat(te,"src:").concat(P,"}")}return this.fontRegistry&&this.fontRegistry.registerFont(this,P),F}},{key:"getPathGenerator",value:function(H,P){if(this.compiledGlyphs[P]!==void 0)return this.compiledGlyphs[P];var F;try{F=H.get(this.loadedName+"_path_"+P)}catch(X){if(!this.ignoreErrors)throw X;return this._onUnsupportedFeature({featureId:o.UNSUPPORTED_FEATURES.errorFontGetPath}),(0,o.warn)('getPathGenerator - ignoring character: "'.concat(X,'".')),this.compiledGlyphs[P]=function(T,b){}}if(this.isEvalSupported&&o.IsEvalSupportedCached.value){var te=[],ae=O(F),ie;try{for(ae.s();!(ie=ae.n()).done;){var se=ie.value,re=se.args!==void 0?se.args.join(","):"";te.push("c.",se.cmd,"(",re,`); 80`)}}catch(X){ae.e(X)}finally{ae.f()}return this.compiledGlyphs[P]=new Function("c","size",te.join(""))}return this.compiledGlyphs[P]=function(X,T){var b=O(F),C;try{for(b.s();!(C=b.n()).done;){var $=C.value;$.cmd==="scale"&&($.args=[T,-T]),X[$.cmd].apply(X,$.args)}}catch(W){b.e(W)}finally{b.f()}}}}]),g}();r.FontFaceObject=R},(n,r,t)=>{function e(d){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(_){return typeof _}:e=function(_){return _&&typeof Symbol=="function"&&_.constructor===Symbol&&_!==Symbol.prototype?"symbol":typeof _},e(d)}
80Object.defineProperty(r,"__esModule",{value:!0}),r.NodeStandardFontDataFactory=r.NodeCanvasFactory=r.NodeCMapReaderFactory=void 0;var a=t(135),o=t(6),s=t(4);function u(d,h){for(var _=0;_<h.length;_++){var R=h[_];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(d,R.key,R)}}function f(d,h,_){return h&&u(d.prototype,h),d}function w(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function");d.prototype=Object.create(h&&h.prototype,{constructor:{value:d,writable:!0,configurable:!0}}),h&&m(d,h)}function m(d,h){return m=Object.setPrototypeOf||function(R,g){return R.__proto__=g,R},m(d,h)}function k(d){var h=D();return function(){var R=q(d),g;if(h){var M=q(this).constructor;g=Reflect.construct(R,arguments,M)}else g=R.apply(this,arguments);return x(this,g)}}function x(d,h){if(h&&(e(h)==="object"||typeof h=="function"))return h;if(h!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return I(d)}function I(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function D(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function q(d){return q=Object.setPrototypeOf?Object.getPrototypeOf:function(_){return _.__proto__||Object.getPrototypeOf(_)},q(d)}function O(d,h){if(!(d instanceof h))throw new TypeError("Cannot call a class as a function")}var B=function d(){O(this,d),(0,s.unreachable)("Not implemented: NodeCanvasFactory")};r.NodeCanvasFactory=B;var S=function d(){O(this,d),(0,s.unreachable)("Not implemented: NodeCMapReaderFactory")};r.NodeCMapReaderFactory=S;var N=function d(){O(this,d),(0,s.unreachable)("Not implemented: NodeStandardFontDataFactory")};if(r.NodeStandardFontDataFactory=N,o.isNodeJS){var y=function(h){return new Promise(function(_,R){var g=require$$0$1;g.readFile(h,function(M,H){if(M||!H){R(new Error(M));return}_(new Uint8Array(H))})})};r.NodeCanvasFactory=B=function(d){w(_,d);var h=k(_);function _(){return O(this,_),h.apply(this,arguments)}return f(_,[{key:"_createCanvas",value:function(g,M){var H=require$$1$1;return H.createCanvas(g,M)}}]),_}(a.BaseCanvasFactory),r.NodeCMapReaderFactory=S=function(d){w(_,d);var h=k(_);function _(){return O(this,_),h.apply(this,arguments)}return f(_,[{key:"_fetchData",value:function(g,M){return y(g).then(function(H){return{cMapData:H,compressionType:M}})}}]),_}(a.BaseCMapReaderFactory),r.NodeStandardFontDataFactory=N=function(d){w(_,d);var h=k(_);function _(){return O(this,_),h.apply(this,arguments)}return f(_,[{key:"_fetchData",value:function(g){return y(g)}}]),_}(a.BaseStandardFontDataFactory)}},(n,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.AnnotationStorage=void 0;var e=t(4);function a(D,q){return w(D)||f(D,q)||s(D,q)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 81In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}
81function s(D,q){if(D){if(typeof D=="string")return u(D,q);var O=Object.prototype.toString.call(D).slice(8,-1);if(O==="Object"&&D.constructor&&(O=D.constructor.name),O==="Map"||O==="Set")return Array.from(D);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return u(D,q)}}function u(D,q){(q==null||q>D.length)&&(q=D.length);for(var O=0,B=new Array(q);O<q;O++)B[O]=D[O];return B}function f(D,q){var O=D==null?null:typeof Symbol<"u"&&D[Symbol.iterator]||D["@@iterator"];if(O!=null){var B=[],S=!0,N=!1,y,d;try{for(O=O.call(D);!(S=(y=O.next()).done)&&(B.push(y.value),!(q&&B.length===q));S=!0);}catch(h){N=!0,d=h}finally{try{!S&&O.return!=null&&O.return()}finally{if(N)throw d}}return B}}function w(D){if(Array.isArray(D))return D}function m(D,q){if(!(D instanceof q))throw new TypeError("Cannot call a class as a function")}function k(D,q){for(var O=0;O<q.length;O++){var B=q[O];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(D,B.key,B)}}function x(D,q,O){return q&&k(D.prototype,q),D}var I=function(){function D(){m(this,D),this._storage=new Map,this._timeStamp=Date.now(),this._modified=!1,this.onSetModified=null,this.onResetModified=null}return x(D,[{key:"getValue",value:function(O,B){var S=this._storage.get(O);return S===void 0?B:Object.assign(B,S)}},{key:"setValue",value:function(O,B){var S=this._storage.get(O),N=!1;if(S!==void 0)for(var y=0,d=Object.entries(B);y<d.length;y++){var h=a(d[y],2),_=h[0],R=h[1];S[_]!==R&&(N=!0,S[_]=R)}else N=!0,this._storage.set(O,B);N&&(this._timeStamp=Date.now(),this._setModified())}},{key:"getAll",value:function(){return this._storage.size>0?(0,e.objectFromMap)(this._storage):null}},{key:"size",get:function(){return this._storage.size}},{key:"_setModified",value:function(){this._modified||(this._modified=!0,typeof this.onSetModified=="function"&&this.onSetModified())}},{key:"resetModified",value:function(){this._modified&&(this._modified=!1,typeof this.onResetModified=="function"&&this.onResetModified())}},{key:"serializable",get:function(){return this._storage.size>0?this._storage:null}},{key:"lastModified",get:function(){return this._timeStamp.toString()}}]),D}();r.AnnotationStorage=I},(n,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.CanvasGraphics=void 0;var e=t(4),a=t(141),o=t(1);function s(Z){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s=function(A){return typeof A}:s=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},s(Z)}function u(Z,z){var A=typeof Symbol<"u"&&Z[Symbol.iterator]||Z["@@iterator"];if(!A){if(Array.isArray(Z)||(A=I(Z))||z){A&&(Z=A);var v=0,L=function(){};return{s:L,n:function(){return v>=Z.length?{done:!0}:{done:!1,value:Z[v++]}},e:function(Te){throw Te},f:L}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 82In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var J=!0,ne=!1,oe;return{s:function(){A=A.call(Z)},n:function(){var Te=A.next();return J=Te.done,Te},e:function(Te){ne=!0,oe=Te},f:function(){try{!J&&A.return!=null&&A.return()}finally{if(ne)throw oe}}}}function f(Z,z){if(!(Z instanceof z))throw new TypeError("Cannot call a class as a function")}function w(Z,z){for(var A=0;A<z.length;A++){var v=z[A];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(Z,v.key,v)}}function m(Z,z,A){return z&&w(Z.prototype,z),Z}function k(Z,z){return O(Z)||q(Z,z)||I(Z,z)||x()}function x(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 83In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I(Z,z){if(Z){if(typeof Z=="string")return D(Z,z);var A=Object.prototype.toString.call(Z).slice(8,-1);if(A==="Object"&&Z.constructor&&(A=Z.constructor.name),A==="Map"||A==="Set")return Array.from(Z);if(A==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(A))return D(Z,z)}}function D(Z,z){(z==null||z>Z.length)&&(z=Z.length);for(var A=0,v=new Array(z);A<z;A++)v[A]=Z[A];return v}function q(Z,z){var A=Z==null?null:typeof Symbol<"u"&&Z[Symbol.iterator]||Z["@@iterator"];if(A!=null){var v=[],L=!0,J=!1,ne,oe;try{for(A=A.call(Z);!(L=(ne=A.next()).done)&&(v.push(ne.value),!(z&&v.length===z));L=!0);}catch(he){J=!0,oe=he}finally{try{!L&&A.return!=null&&A.return()}finally{if(J)throw oe}}return v}}function O(Z){if(Array.isArray(Z))return Z}var B=16,S=100,N=4096,y=15,d=10,h=1e3,_=16,R=1.000001;function g(Z,z){if(Z._removeMirroring)throw new Error("Context is already forwarding operations.");Z.__originalSave=Z.save,Z.__originalRestore=Z.restore,Z.__originalRotate=Z.rotate,Z.__originalScale=Z.scale,Z.__originalTranslate=Z.translate,Z.__originalTransform=Z.transform,Z.__originalSetTransform=Z.setTransform,Z.__originalResetTransform=Z.resetTransform,Z.__originalClip=Z.clip,Z.__originalMoveTo=Z.moveTo,Z.__originalLineTo=Z.lineTo,Z.__originalBezierCurveTo=Z.bezierCurveTo,Z.__originalRect=Z.rect,Z.__originalClosePath=Z.closePath,Z.__originalBeginPath=Z.beginPath,Z._removeMirroring=function(){Z.save=Z.__originalSave,Z.restore=Z.__originalRestore,Z.rotate=Z.__originalRotate,Z.scale=Z.__originalScale,Z.translate=Z.__originalTranslate,Z.transform=Z.__originalTransform,Z.setTransform=Z.__originalSetTransform,Z.resetTransform=Z.__originalResetTransform,Z.clip=Z.__originalClip,Z.moveTo=Z.__originalMoveTo,Z.lineTo=Z.__originalLineTo,Z.bezierCurveTo=Z.__originalBezierCurveTo,Z.rect=Z.__originalRect,Z.closePath=Z.__originalClosePath,Z.beginPath=Z.__originalBeginPath,delete Z._removeMirroring},Z.save=function(){z.save(),this.__originalSave()}
83,Z.restore=function(){z.restore(),this.__originalRestore()},Z.translate=function(v,L){z.translate(v,L),this.__originalTranslate(v,L)},Z.scale=function(v,L){z.scale(v,L),this.__originalScale(v,L)},Z.transform=function(v,L,J,ne,oe,he){z.transform(v,L,J,ne,oe,he),this.__originalTransform(v,L,J,ne,oe,he)},Z.setTransform=function(v,L,J,ne,oe,he){z.setTransform(v,L,J,ne,oe,he),this.__originalSetTransform(v,L,J,ne,oe,he)},Z.resetTransform=function(){z.resetTransform(),this.__originalResetTransform()},Z.rotate=function(v){z.rotate(v),this.__originalRotate(v)},Z.clip=function(v){z.clip(v),this.__originalClip(v)},Z.moveTo=function(A,v){z.moveTo(A,v),this.__originalMoveTo(A,v)},Z.lineTo=function(A,v){z.lineTo(A,v),this.__originalLineTo(A,v)},Z.bezierCurveTo=function(A,v,L,J,ne,oe){z.bezierCurveTo(A,v,L,J,ne,oe),this.__originalBezierCurveTo(A,v,L,J,ne,oe)},Z.rect=function(A,v,L,J){z.rect(A,v,L,J),this.__originalRect(A,v,L,J)},Z.closePath=function(){z.closePath(),this.__originalClosePath()},Z.beginPath=function(){z.beginPath(),this.__originalBeginPath()}}function M(Z){if(!Z.mozCurrentTransform){Z._originalSave=Z.save,Z._originalRestore=Z.restore,Z._originalRotate=Z.rotate,Z._originalScale=Z.scale,Z._originalTranslate=Z.translate,Z._originalTransform=Z.transform,Z._originalSetTransform=Z.setTransform,Z._originalResetTransform=Z.resetTransform,Z._transformMatrix=Z._transformMatrix||[1,0,0,1,0,0],Z._transformStack=[];try{var z=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Z),"lineWidth");Z._setLineWidth=z.set,Z._getLineWidth=z.get,Object.defineProperty(Z,"lineWidth",{set:function(v){this._setLineWidth(v*R)},get:function(){return this._getLineWidth()}})}catch{}Object.defineProperty(Z,"mozCurrentTransform",{get:function(){return this._transformMatrix}}),Object.defineProperty(Z,"mozCurrentTransformInverse",{get:function(){var v=k(this._transformMatrix,6),L=v[0],J=v[1],ne=v[2],oe=v[3],he=v[4],Te=v[5],ke=L*oe-J*ne,Ee=J*ne-L*oe;return[oe/ke,J/Ee,ne/Ee,L/ke,(oe*he-ne*Te)/Ee,(J*he-L*Te)/ke]}}),Z.save=function(){var v=this._transformMatrix;this._transformStack.push(v),this._transformMatrix=v.slice(0,6),this._originalSave()},Z.restore=function(){var v=this._transformStack.pop();v&&(this._transformMatrix=v,this._originalRestore())},Z.translate=function(v,L){var J=this._transformMatrix;J[4]=J[0]*v+J[2]*L+J[4],J[5]=J[1]*v+J[3]*L+J[5],this._originalTranslate(v,L)},Z.scale=function(v,L){var J=this._transformMatrix;J[0]*=v,J[1]*=v,J[2]*=L,J[3]*=L,this._originalScale(v,L)},Z.transform=function(v,L,J,ne,oe,he){var Te=this._transformMatrix;this._transformMatrix=[Te[0]*v+Te[2]*L,Te[1]*v+Te[3]*L,Te[0]*J+Te[2]*ne,Te[1]*J+Te[3]*ne,Te[0]*oe+Te[2]*he+Te[4],Te[1]*oe+Te[3]*he+Te[5]],Z._originalTransform(v,L,J,ne,oe,he)},Z.setTransform=function(v,L,J,ne,oe,he){this._transformMatrix=[v,L,J,ne,oe,he],Z._originalSetTransform(v,L,J,ne,oe,he)},Z.resetTransform=function(){this._transformMatrix=[1,0,0,1,0,0],Z._originalResetTransform()},Z.rotate=function(v){var L=Math.cos(v),J=Math.sin(v),ne=this._transformMatrix;this._transformMatrix=[ne[0]*L+ne[2]*J,ne[1]*L+ne[3]*J,ne[0]*-J+ne[2]*L,ne[1]*-J+ne[3]*L,ne[4],ne[5]],this._originalRotate(v)}}}var H=function(){function Z(z){f(this,Z),this.canvasFactory=z,this.cache=Object.create(null)}return m(Z,[{key:"getCanvas",value:function(A,v,L,J){var ne;return this.cache[A]!==void 0?(ne=this.cache[A],this.canvasFactory.reset(ne,v,L),ne.context.setTransform(1,0,0,1,0,0)):(ne=this.canvasFactory.create(v,L),this.cache[A]=ne),J&&M(ne.context),ne}},{key:"clear",value:function(){for(var A in this.cache){var v=this.cache[A];this.canvasFactory.destroy(v),delete this.cache[A]}}}]),Z}();function P(Z){var z=1e3,A=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),v=Z.width,L=Z.height,J=v+1,ne,oe,he,Te,ke=new Uint8Array(J*(L+1)),Ee=v+7&-8,Ie=Z.data,Le=new Uint8Array(Ee*L),ce=0;for(ne=0,oe=Ie.length;ne<oe;ne++)for(var ge=Ie[ne],Ce=128;Ce>0;)Le[ce++]=ge&Ce?0:255,Ce>>=1;var Be=0;for(ce=0,Le[ce]!==0&&(ke[0]=1,++Be),he=1;he<v;he++)Le[ce]!==Le[ce+1]&&(ke[he]=Le[ce]?2:1,++Be),ce++;for(Le[ce]!==0&&(ke[he]=2,++Be),ne=1;ne<L;ne++){ce=ne*Ee,Te=ne*J,Le[ce-Ee]!==Le[ce]&&(ke[Te]=Le[ce]?1:8,++Be);var Ne=(Le[ce]?4:0)+(Le[ce-Ee]?8:0);for(he=1;he<v;he++)Ne=(Ne>>2)+(Le[ce+1]?4:0)+(Le[ce-Ee+1]?8:0),A[Ne]&&(ke[Te+he]=A[Ne],++Be),ce++;if(Le[ce-Ee]!==Le[ce]&&(ke[Te+he]=Le[ce]?2:4,++Be),Be>z)return null}for(ce=Ee*(L-1),Te=ne*J,Le[ce]!==0&&(ke[Te]=8,++Be),he=1;he<v;he++)Le[ce]!==Le[ce+1]&&(ke[Te+he]=Le[ce]?4:8,++Be),ce++;if(Le[ce]!==0&&(ke[Te+he]=4,++Be),Be>z)return null;var ye=new Int32Array([0,J,-1,0,-J,0,0,0,1]),be=[];for(ne=0;Be&&ne<=L;ne++){for(var p=ne*J,ee=p+v;p<ee&&!ke[p];)p++;if(p!==ee){var Q=[p%J,ne],le=p,G=ke[p];do{var Y=ye[G];do p+=Y;while(!ke[p]);var E=ke[p];E!==5&&E!==10?(G=E,ke[p]=0):(G=E&51*G>>4,ke[p]&=G>>2|G<<2),Q.push(p%J,p/J|0),ke[p]||--Be}while(le!==p);be.push(Q),--ne}}var ue=function(l){l.save(),l.scale(1/v,-1/L),l.translate(0,-L),l.beginPath();for(var _e=0,Ae=be.length;_e<Ae;
83_e++){var j=be[_e];l.moveTo(j[0],j[1]);for(var fe=2,ve=j.length;fe<ve;fe+=2)l.lineTo(j[fe],j[fe+1])}l.fill(),l.beginPath(),l.restore()};return ue}var F=function(){function Z(z,A){f(this,Z),this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=e.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=e.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=e.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps=null,this.startNewPathAndClipBox([0,0,z,A])}return m(Z,[{key:"clone",value:function(){var A=Object.create(this);return A.clipBox=this.clipBox.slice(),A}},{key:"setCurrentPoint",value:function(A,v){this.x=A,this.y=v}},{key:"updatePathMinMax",value:function(A,v,L){var J=e.Util.applyTransform([v,L],A),ne=k(J,2);v=ne[0],L=ne[1],this.minX=Math.min(this.minX,v),this.minY=Math.min(this.minY,L),this.maxX=Math.max(this.maxX,v),this.maxY=Math.max(this.maxY,L)}},{key:"updateCurvePathMinMax",value:function(A,v,L,J,ne,oe,he,Te,ke){var Ee=e.Util.bezierBoundingBox(v,L,J,ne,oe,he,Te,ke);this.updatePathMinMax(A,Ee[0],Ee[1]),this.updatePathMinMax(A,Ee[2],Ee[3])}},{key:"getPathBoundingBox",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a.PathType.FILL,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,L=[this.minX,this.minY,this.maxX,this.maxY];if(A===a.PathType.STROKE){v||(0,e.unreachable)("Stroke bounding box must include transform.");var J=e.Util.singularValueDecompose2dScale(v),ne=J[0]*this.lineWidth/2,oe=J[1]*this.lineWidth/2;L[0]-=ne,L[1]-=oe,L[2]+=ne,L[3]+=oe}return L}},{key:"updateClipFromPath",value:function(){var A=e.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(A||[0,0,0,0])}},{key:"startNewPathAndClipBox",value:function(A){this.clipBox=A,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}},{key:"getClippedPathBoundingBox",value:function(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a.PathType.FILL,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e.Util.intersect(this.clipBox,this.getPathBoundingBox(A,v))}}]),Z}();function te(Z,z){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(typeof ImageData<"u"&&z instanceof ImageData){Z.putImageData(z,0,0);return}var v=z.height,L=z.width,J=v%_,ne=(v-J)/_,oe=J===0?ne:ne+1,he=Z.createImageData(L,_),Te=0,ke,Ee=z.data,Ie=he.data,Le,ce,ge,Ce,Be,Ne,ye,be;if(A)switch(A.length){case 1:Be=A[0],Ne=A[0],ye=A[0],be=A[0];break;case 4:Be=A[0],Ne=A[1],ye=A[2],be=A[3];break}if(z.kind===e.ImageKind.GRAYSCALE_1BPP){var p=Ee.byteLength,ee=new Uint32Array(Ie.buffer,0,Ie.byteLength>>2),Q=ee.length,le=L+7>>3,G=4294967295,Y=e.IsLittleEndianCached.value?4278190080:255;if(be&&be[0]===255&&be[255]===0){var E=[Y,G];G=E[0],Y=E[1]}for(Le=0;Le<oe;Le++){for(ge=Le<ne?_:J,ke=0,ce=0;ce<ge;ce++){for(var ue=p-Te,Pe=0,l=ue>le?L:ue*8-7,_e=l&-8,Ae=0,j=0;Pe<_e;Pe+=8)j=Ee[Te++],ee[ke++]=j&128?G:Y,ee[ke++]=j&64?G:Y,ee[ke++]=j&32?G:Y,ee[ke++]=j&16?G:Y,ee[ke++]=j&8?G:Y,ee[ke++]=j&4?G:Y,ee[ke++]=j&2?G:Y,ee[ke++]=j&1?G:Y;for(;Pe<l;Pe++)Ae===0&&(j=Ee[Te++],Ae=128),ee[ke++]=j&Ae?G:Y,Ae>>=1}for(;ke<Q;)ee[ke++]=0;Z.putImageData(he,0,Le*_)}}else if(z.kind===e.ImageKind.RGBA_32BPP){var fe=!!(Be||Ne||ye);for(ce=0,Ce=L*_*4,Le=0;Le<ne;Le++){if(Ie.set(Ee.subarray(Te,Te+Ce)),Te+=Ce,fe)for(var ve=0;ve<Ce;ve+=4)Be&&(Ie[ve+0]=Be[Ie[ve+0]]),Ne&&(Ie[ve+1]=Ne[Ie[ve+1]]),ye&&(Ie[ve+2]=ye[Ie[ve+2]]);Z.putImageData(he,0,ce),ce+=_}if(Le<oe){if(Ce=L*J*4,Ie.set(Ee.subarray(Te,Te+Ce)),fe)for(var Fe=0;Fe<Ce;Fe+=4)Be&&(Ie[Fe+0]=Be[Ie[Fe+0]]),Ne&&(Ie[Fe+1]=Ne[Ie[Fe+1]]),ye&&(Ie[Fe+2]=ye[Ie[Fe+2]]);Z.putImageData(he,0,ce)}}else if(z.kind===e.ImageKind.RGB_24BPP){var Me=!!(Be||Ne||ye);for(ge=_,Ce=L*ge,Le=0;Le<oe;Le++){for(Le>=ne&&(ge=J,Ce=L*ge),ke=0,ce=Ce;ce--;)Ie[ke++]=Ee[Te++],Ie[ke++]=Ee[Te++],Ie[ke++]=Ee[Te++],Ie[ke++]=255;if(Me)for(var De=0;De<ke;
83De+=4)Be&&(Ie[De+0]=Be[Ie[De+0]]),Ne&&(Ie[De+1]=Ne[Ie[De+1]]),ye&&(Ie[De+2]=ye[Ie[De+2]]);Z.putImageData(he,0,Le*_)}}else throw new Error("bad image kind: ".concat(z.kind))}function ae(Z,z){for(var A=z.height,v=z.width,L=A%_,J=(A-L)/_,ne=L===0?J:J+1,oe=Z.createImageData(v,_),he=0,Te=z.data,ke=oe.data,Ee=0;Ee<ne;Ee++){for(var Ie=Ee<J?_:L,Le=3,ce=0;ce<Ie;ce++)for(var ge=void 0,Ce=0,Be=0;Be<v;Be++)Ce||(ge=Te[he++],Ce=128),ke[Le]=ge&Ce?0:255,Le+=4,Ce>>=1;Z.putImageData(oe,0,Ee*_)}}function ie(Z,z){for(var A=["strokeStyle","fillStyle","fillRule","globalAlpha","lineWidth","lineCap","lineJoin","miterLimit","globalCompositeOperation","font"],v=0,L=A.length;v<L;v++){var J=A[v];Z[J]!==void 0&&(z[J]=Z[J])}Z.setLineDash!==void 0&&(z.setLineDash(Z.getLineDash()),z.lineDashOffset=Z.lineDashOffset)}function se(Z){Z.strokeStyle="#000000",Z.fillStyle="#000000",Z.fillRule="nonzero",Z.globalAlpha=1,Z.lineWidth=1,Z.lineCap="butt",Z.lineJoin="miter",Z.miterLimit=10,Z.globalCompositeOperation="source-over",Z.font="10px sans-serif",Z.setLineDash!==void 0&&(Z.setLineDash([]),Z.lineDashOffset=0)}function re(Z,z,A,v){for(var L=Z.length,J=3;J<L;J+=4){var ne=Z[J];if(ne===0)Z[J-3]=z,Z[J-2]=A,Z[J-1]=v;else if(ne<255){var oe=255-ne;Z[J-3]=Z[J-3]*ne+z*oe>>8,Z[J-2]=Z[J-2]*ne+A*oe>>8,Z[J-1]=Z[J-1]*ne+v*oe>>8}}}function X(Z,z,A){for(var v=Z.length,L=1/255,J=3;J<v;J+=4){var ne=A?A[Z[J]]:Z[J];z[J]=z[J]*ne*L|0}}function T(Z,z,A){for(var v=Z.length,L=3;L<v;L+=4){var J=Z[L-3]*77+Z[L-2]*152+Z[L-1]*28;z[L]=A?z[L]*A[J>>8]>>8:z[L]*J>>16}}function b(Z,z,A,v,L,J,ne,oe,he,Te,ke){var Ee=!!J,Ie=Ee?J[0]:0,Le=Ee?J[1]:0,ce=Ee?J[2]:0,ge;L==="Luminosity"?ge=T:ge=X;for(var Ce=1048576,Be=Math.min(v,Math.ceil(Ce/A)),Ne=0;Ne<v;Ne+=Be){var ye=Math.min(Be,v-Ne),be=Z.getImageData(oe-Te,Ne+(he-ke),A,ye),p=z.getImageData(oe,Ne+he,A,ye);Ee&&re(be.data,Ie,Le,ce),ge(be.data,p.data,ne),z.putImageData(p,oe,Ne+he)}}function C(Z,z,A,v){var L=v[0],J=v[1],ne=v[2]-L,oe=v[3]-J;ne===0||oe===0||(b(z.context,A,ne,oe,z.subtype,z.backdrop,z.transferMap,L,J,z.offsetX,z.offsetY),Z.save(),Z.globalAlpha=1,Z.globalCompositeOperation="source-over",Z.setTransform(1,0,0,1,0,0),Z.drawImage(A.canvas,0,0),Z.restore())}function $(Z,z){var A=e.Util.singularValueDecompose2dScale(Z);A[0]=Math.fround(A[0]),A[1]=Math.fround(A[1]);var v=Math.fround((globalThis.devicePixelRatio||1)*o.PixelsPerInch.PDF_TO_CSS_UNITS);return z!==void 0?z:A[0]<=v||A[1]<=v}var W=["butt","round","square"],V=["miter","round","bevel"],U={},de={},pe=function(){function Z(z,A,v,L,J,ne,oe){f(this,Z),this.ctx=z,this.current=new F(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=A,this.objs=v,this.canvasFactory=L,this.imageLayer=J,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=[],this.optionalContentConfig=ne,this.cachedCanvases=new H(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=oe,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,z&&M(z),this._cachedGetSinglePixelWidth=null}return m(Z,[{key:"beginDrawing",value:function(A){var v=A.transform,L=A.viewport,J=A.transparency,ne=J===void 0?!1:J,oe=A.background,he=oe===void 0?null:oe,Te=this.ctx.canvas.width,ke=this.ctx.canvas.height;if(this.ctx.save(),this.ctx.fillStyle=he||"rgb(255, 255, 255)",this.ctx.fillRect(0,0,Te,ke),this.ctx.restore(),ne){var Ee=this.cachedCanvases.getCanvas("transparent",Te,ke,!0);this.compositeCtx=this.ctx,this.transparentCanvas=Ee.canvas,this.ctx=Ee.context,this.ctx.save(),this.ctx.transform.apply(this.ctx,this.compositeCtx.mozCurrentTransform)}this.ctx.save(),se(this.ctx),v&&(this.ctx.transform.apply(this.ctx,v),this.outputScaleX=v[0],this.outputScaleY=v[0]),this.ctx.transform.apply(this.ctx,L.transform),this.viewportScale=L.scale,this.baseTransform=this.ctx.mozCurrentTransform.slice(),this._combinedScaleFactor=Math.hypot(this.baseTransform[0],this.baseTransform[2]),this.imageLayer&&this.imageLayer.beginLayout()}},{key:"executeOperatorList",value:function(A,v,L,J){var ne=A.argsArray,oe=A.fnArray,he=v||0,Te=ne.length;if(Te===he)return he;for(var ke=Te-he>d&&typeof L=="function",Ee=ke?Date.now()+y:0,Ie=0,Le=this.commonObjs,ce=this.objs,ge;;){if(J!==void 0&&he===J.nextBreakPoint)return J.breakIt(he,L),he;if(ge=oe[he],ge!==e.OPS.dependency)this[ge].apply(this,ne[he]);else{var Ce=u(ne[he]),Be;try{for(Ce.s();!(Be=Ce.n()).done;){var Ne=Be.value,ye=Ne.startsWith("g_")?Le:ce;if(!ye.has(Ne))return ye.get(Ne,L),he}}catch(be){Ce.e(be)}finally{Ce.f()}}if(he++,he===Te)return he;if(ke&&++Ie>
vendor: 4,658 bytes, line 83
83d){if(Date.now()>Ee)return L(),he;Ie=0}}}},{key:"endDrawing",value:function(){for(;this.stateStack.length||this.current.activeSMask!==null;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null),this.cachedCanvases.clear(),this.cachedPatterns.clear(),this.imageLayer&&this.imageLayer.endLayout()}},{key:"_scaleImage",value:function(A,v){for(var L=A.width,J=A.height,ne=Math.max(Math.hypot(v[0],v[1]),1),oe=Math.max(Math.hypot(v[2],v[3]),1),he=L,Te=J,ke="prescale1",Ee,Ie;ne>2&&he>1||oe>2&&Te>1;){var Le=he,ce=Te;ne>2&&he>1&&(Le=Math.ceil(he/2),ne/=he/Le),oe>2&&Te>1&&(ce=Math.ceil(Te/2),oe/=Te/ce),Ee=this.cachedCanvases.getCanvas(ke,Le,ce),Ie=Ee.context,Ie.clearRect(0,0,Le,ce),Ie.drawImage(A,0,0,he,Te,0,0,Le,ce),A=Ee.canvas,he=Le,Te=ce,ke=ke==="prescale1"?"prescale2":"prescale1"}return{img:A,paintWidth:he,paintHeight:Te}}},{key:"_createMaskCanvas",value:function(A){var v=this.ctx,L=A.width,J=A.height,ne=this.current.fillColor,oe=this.current.patternFill,he=this.cachedCanvases.getCanvas("maskCanvas",L,J),Te=he.context;ae(Te,A);var ke=v.mozCurrentTransform,Ee=e.Util.transform(ke,[1/L,0,0,-1/J,0,0]);Ee=e.Util.transform(Ee,[1,0,0,1,0,-J]);var Ie=e.Util.applyTransform([0,0],Ee),Le=e.Util.applyTransform([L,J],Ee),ce=e.Util.normalizeRect([Ie[0],Ie[1],Le[0],Le[1]]),ge=Math.ceil(ce[2]-ce[0]),Ce=Math.ceil(ce[3]-ce[1]),Be=this.cachedCanvases.getCanvas("fillCanvas",ge,Ce,!0),Ne=Be.context,ye=Math.min(Ie[0],Le[0]),be=Math.min(Ie[1],Le[1]);Ne.translate(-ye,-be),Ne.transform.apply(Ne,Ee);var p=this._scaleImage(he.canvas,Ne.mozCurrentTransformInverse);Ne.imageSmoothingEnabled=$(Ne.mozCurrentTransform,A.interpolate),Ne.drawImage(p.img,0,0,p.img.width,p.img.height,0,0,L,J),Ne.globalCompositeOperation="source-in";var ee=e.Util.transform(Ne.mozCurrentTransformInverse,[1,0,0,1,-ye,-be]);return Ne.fillStyle=oe?ne.getPattern(v,this,ee,a.PathType.FILL):ne,Ne.fillRect(0,0,L,J),{canvas:Be.canvas,offsetX:Math.round(ye),offsetY:Math.round(be)}}},{key:"setLineWidth",value:function(A){this.current.lineWidth=A,this.ctx.lineWidth=A}},{key:"setLineCap",value:function(A){this.ctx.lineCap=W[A]}},{key:"setLineJoin",value:function(A){this.ctx.lineJoin=V[A]}},{key:"setMiterLimit",value:function(A){this.ctx.miterLimit=A}},{key:"setDash",value:function(A,v){var L=this.ctx;L.setLineDash!==void 0&&(L.setLineDash(A),L.lineDashOffset=v)}},{key:"setRenderingIntent",value:function(A){}},{key:"setFlatness",value:function(A){}},{key:"setGState",value:function(A){for(var v=0,L=A.length;v<L;v++){var J=A[v],ne=J[0],oe=J[1];switch(ne){case"LW":this.setLineWidth(oe);break;case"LC":this.setLineCap(oe);break;case"LJ":this.setLineJoin(oe);break;case"ML":this.setMiterLimit(oe);break;case"D":this.setDash(oe[0],oe[1]);break;case"RI":this.setRenderingIntent(oe);break;case"FL":this.setFlatness(oe);break;case"Font":this.setFont(oe[0],oe[1]);break;case"CA":this.current.strokeAlpha=J[1];break;case"ca":this.current.fillAlpha=J[1],this.ctx.globalAlpha=J[1];break;case"BM":this.ctx.globalCompositeOperation=oe;break;case"SMask":this.current.activeSMask=oe?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.current.transferMaps=oe}}}},{key:"checkSMaskState",value:function(){var A=!!this.suspendedCtx;this.current.activeSMask&&!A?this.beginSMaskMode():!this.current.activeSMask&&A&&this.endSMaskMode()}},{key:"beginSMaskMode",value:function(){if(this.suspendedCtx)throw new Error("beginSMaskMode called while already in smask mode");var A=this.ctx.canvas.width,v=this.ctx.canvas.height,L="smaskGroupAt"+this.groupLevel,J=this.cachedCanvases.getCanvas(L,A,v,!0);this.suspendedCtx=this.ctx,this.ctx=J.context;var ne=this.ctx;ne.setTransform.apply(ne,this.suspendedCtx.mozCurrentTransform),ie(this.suspendedCtx,ne),g(ne,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}},{key:"endSMaskMode",value:function(){if(!this.suspendedCtx)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),ie(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.current.activeSMask=null,this.suspendedCtx=null}},{key:"compose",value:function(A){if(this.current.activeSMask){A?(A[0]=Math.floor(A[0]),A[1]=Math.floor(A[1]),A[2]=Math.ceil(A[2]),A[3]=Math.ceil(A[3])):A=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];var v=this.current.activeSMask,L=this.suspendedCtx;C(L,v,this.ctx,A),this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore(
83)}}},{key:"save",value:function(){this.ctx.save();var A=this.current;this.stateStack.push(A),this.current=A.clone()}},{key:"restore",value:function(){this.stateStack.length===0&&this.current.activeSMask&&this.endSMaskMode(),this.stateStack.length!==0&&(this.current=this.stateStack.pop(),this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedGetSinglePixelWidth=null)}},{key:"transform",value:function(A,v,L,J,ne,oe){this.ctx.transform(A,v,L,J,ne,oe),this._cachedGetSinglePixelWidth=null}},{key:"constructPath",value:function(A,v){for(var L=this.ctx,J=this.current,ne=J.x,oe=J.y,he,Te,ke=0,Ee=0,Ie=A.length;ke<Ie;ke++)switch(A[ke]|0){case e.OPS.rectangle:ne=v[Ee++],oe=v[Ee++];var Le=v[Ee++],ce=v[Ee++],ge=ne+Le,Ce=oe+ce;L.moveTo(ne,oe),Le===0||ce===0?L.lineTo(ge,Ce):(L.lineTo(ge,oe),L.lineTo(ge,Ce),L.lineTo(ne,Ce)),J.updatePathMinMax(L.mozCurrentTransform,ne,oe),J.updatePathMinMax(L.mozCurrentTransform,ge,Ce),L.closePath();break;case e.OPS.moveTo:ne=v[Ee++],oe=v[Ee++],L.moveTo(ne,oe),J.updatePathMinMax(L.mozCurrentTransform,ne,oe);break;case e.OPS.lineTo:ne=v[Ee++],oe=v[Ee++],L.lineTo(ne,oe),J.updatePathMinMax(L.mozCurrentTransform,ne,oe);break;case e.OPS.curveTo:he=ne,Te=oe,ne=v[Ee+4],oe=v[Ee+5],L.bezierCurveTo(v[Ee],v[Ee+1],v[Ee+2],v[Ee+3],ne,oe),J.updateCurvePathMinMax(L.mozCurrentTransform,he,Te,v[Ee],v[Ee+1],v[Ee+2],v[Ee+3],ne,oe),Ee+=6;break;case e.OPS.curveTo2:he=ne,Te=oe,L.bezierCurveTo(ne,oe,v[Ee],v[Ee+1],v[Ee+2],v[Ee+3]),J.updateCurvePathMinMax(L.mozCurrentTransform,he,Te,ne,oe,v[Ee],v[Ee+1],v[Ee+2],v[Ee+3]),ne=v[Ee+2],oe=v[Ee+3],Ee+=4;break;case e.OPS.curveTo3:he=ne,Te=oe,ne=v[Ee+2],oe=v[Ee+3],L.bezierCurveTo(v[Ee],v[Ee+1],ne,oe,ne,oe),J.updateCurvePathMinMax(L.mozCurrentTransform,he,Te,v[Ee],v[Ee+1],ne,oe,ne,oe),Ee+=4;break;case e.OPS.closePath:L.closePath();break}J.setCurrentPoint(ne,oe)}},{key:"closePath",value:function(){this.ctx.closePath()}},{key:"stroke",value:function(A){A=typeof A<"u"?A:!0;var v=this.ctx,L=this.current.strokeColor;if(v.globalAlpha=this.current.strokeAlpha,this.contentVisible)if(s(L)==="object"&&L!==null&&L!==void 0&&L.getPattern){var J=this.getSinglePixelWidth();v.save(),v.strokeStyle=L.getPattern(v,this,v.mozCurrentTransformInverse,a.PathType.STROKE),v.lineWidth=Math.max(J,this.current.lineWidth),v.stroke(),v.restore()}else{var ne=this.getSinglePixelWidth();ne<0&&-ne>=this.current.lineWidth?(v.save(),v.resetTransform(),v.lineWidth=Math.round(this._combinedScaleFactor),v.stroke(),v.restore()):(v.lineWidth=Math.max(ne,this.current.lineWidth),v.stroke())}A&&this.consumePath(this.current.getClippedPathBoundingBox()),v.globalAlpha=this.current.fillAlpha}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"fill",value:function(A){A=typeof A<"u"?A:!0;var v=this.ctx,L=this.current.fillColor,J=this.current.patternFill,ne=!1;J&&(v.save(),v.fillStyle=L.getPattern(v,this,v.mozCurrentTransformInverse,a.PathType.FILL),ne=!0);var oe=this.current.getClippedPathBoundingBox();this.contentVisible&&oe!==null&&(this.pendingEOFill?(v.fill("evenodd"),this.pendingEOFill=!1):v.fill()),ne&&v.restore(),A&&this.consumePath(oe)}},{key:"eoFill",value:function(){this.pendingEOFill=!0,this.fill()}},{key:"fillStroke",value:function(){this.fill(!1),this.stroke(!1),this.consumePath()}},{key:"eoFillStroke",value:function(){this.pendingEOFill=!0,this.fillStroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.pendingEOFill=!0,this.closePath(),this.fillStroke()}},{key:"endPath",value:function(){this.consumePath()}},{key:"clip",value:function(){this.pendingClip=U}},{key:"eoClip",value:function(){this.pendingClip=de}},{key:"beginText",value:function(){this.current.textMatrix=e.IDENTITY_MATRIX,this.current.textMatrixScale=1,this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"endText",value:function(){var A=this.pendingTextPaths,v=this.ctx;if(A===void 0){v.beginPath();return}v.save(),v.beginPath();for(var L=0;L<A.length;L++){var J=A[L];v.setTransform.apply(v,J.transform),v.translate(J.x,J.y),J.addToPath(v,J.fontSize)}
83v.restore(),v.clip(),v.beginPath(),delete this.pendingTextPaths}},{key:"setCharSpacing",value:function(A){this.current.charSpacing=A}},{key:"setWordSpacing",value:function(A){this.current.wordSpacing=A}},{key:"setHScale",value:function(A){this.current.textHScale=A/100}},{key:"setLeading",value:function(A){this.current.leading=-A}},{key:"setFont",value:function(A,v){var L=this.commonObjs.get(A),J=this.current;if(!L)throw new Error("Can't find font for ".concat(A));if(J.fontMatrix=L.fontMatrix||e.FONT_IDENTITY_MATRIX,(J.fontMatrix[0]===0||J.fontMatrix[3]===0)&&(0,e.warn)("Invalid font matrix for font "+A),v<0?(v=-v,J.fontDirection=-1):J.fontDirection=1,this.current.font=L,this.current.fontSize=v,!L.isType3Font){var ne=L.loadedName||"sans-serif",oe="normal";L.black?oe="900":L.bold&&(oe="bold");var he=L.italic?"italic":"normal",Te='"'.concat(ne,'", ').concat(L.fallbackName),ke=v;v<B?ke=B:v>S&&(ke=S),this.current.fontSizeScale=v/ke,this.ctx.font="".concat(he," ").concat(oe," ").concat(ke,"px ").concat(Te)}}},{key:"setTextRenderingMode",value:function(A){this.current.textRenderingMode=A}},{key:"setTextRise",value:function(A){this.current.textRise=A}},{key:"moveText",value:function(A,v){this.current.x=this.current.lineX+=A,this.current.y=this.current.lineY+=v}},{key:"setLeadingMoveText",value:function(A,v){this.setLeading(-v),this.moveText(A,v)}},{key:"setTextMatrix",value:function(A,v,L,J,ne,oe){this.current.textMatrix=[A,v,L,J,ne,oe],this.current.textMatrixScale=Math.hypot(A,v),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"paintChar",value:function(A,v,L,J,ne){var oe=this.ctx,he=this.current,Te=he.font,ke=he.textRenderingMode,Ee=he.fontSize/he.fontSizeScale,Ie=ke&e.TextRenderingMode.FILL_STROKE_MASK,Le=!!(ke&e.TextRenderingMode.ADD_TO_PATH_FLAG),ce=he.patternFill&&!Te.missingFile,ge;if((Te.disableFontFace||Le||ce)&&(ge=Te.getPathGenerator(this.commonObjs,A)),Te.disableFontFace||ce?(oe.save(),oe.translate(v,L),oe.beginPath(),ge(oe,Ee),J&&oe.setTransform.apply(oe,J),(Ie===e.TextRenderingMode.FILL||Ie===e.TextRenderingMode.FILL_STROKE)&&oe.fill(),(Ie===e.TextRenderingMode.STROKE||Ie===e.TextRenderingMode.FILL_STROKE)&&(ne&&(oe.resetTransform(),oe.lineWidth=Math.round(this._combinedScaleFactor)),oe.stroke()),oe.restore()):((Ie===e.TextRenderingMode.FILL||Ie===e.TextRenderingMode.FILL_STROKE)&&oe.fillText(A,v,L),(Ie===e.TextRenderingMode.STROKE||Ie===e.TextRenderingMode.FILL_STROKE)&&(ne?(oe.save(),oe.moveTo(v,L),oe.resetTransform(),oe.lineWidth=Math.round(this._combinedScaleFactor),oe.strokeText(A,0,0),oe.restore()):oe.strokeText(A,v,L))),Le){var Ce=this.pendingTextPaths||(this.pendingTextPaths=[]);Ce.push({transform:oe.mozCurrentTransform,x:v,y:L,fontSize:Ee,addToPath:ge})}}},{key:"isFontSubpixelAAEnabled",get:function(){var A=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10),v=A.context;v.scale(1.5,1),v.fillText("I",0,10);for(var L=v.getImageData(0,0,10,10).data,J=!1,ne=3;ne<L.length;ne+=4)if(L[ne]>0&&L[ne]<255){J=!0;break}return(0,e.shadow)(this,"isFontSubpixelAAEnabled",J)}},{key:"showText",value:function(A){var v=this.current,L=v.font;if(L.isType3Font)return this.showType3Text(A);var J=v.fontSize;if(J!==0){var ne=this.ctx,oe=v.fontSizeScale,he=v.charSpacing,Te=v.wordSpacing,ke=v.fontDirection,Ee=v.textHScale*ke,Ie=A.length,Le=L.vertical,ce=Le?1:-1,ge=L.defaultVMetrics,Ce=J*v.fontMatrix[0],Be=v.textRenderingMode===e.TextRenderingMode.FILL&&!L.disableFontFace&&!v.patternFill;ne.save(),ne.transform.apply(ne,v.textMatrix),ne.translate(v.x,v.y+v.textRise),ke>0?ne.scale(Ee,-1):ne.scale(Ee,1);var Ne;if(v.patternFill){ne.save();var ye=v.fillColor.getPattern(ne,this,ne.mozCurrentTransformInverse,a.PathType.FILL);Ne=ne.mozCurrentTransform,ne.restore(),ne.fillStyle=ye}var be=v.lineWidth,p=!1,ee=v.textMatrixScale;if(ee===0||be===0){var Q=v.textRenderingMode&e.TextRenderingMode.FILL_STROKE_MASK;(Q===e.TextRenderingMode.STROKE||Q===e.TextRenderingMode.FILL_STROKE)&&(this._cachedGetSinglePixelWidth=null,be=this.getSinglePixelWidth(),p=be<0)}else be/=ee;oe!==1&&(ne.scale(oe,oe),be/=oe),ne.lineWidth=be;var le=0,G;for(G=0;G<Ie;++G){var Y=A[G];if((0,e.isNum)(Y)){le+=ce*Y*J/1e3;continue}var E=!1,ue=(Y.isSpace?Te:0)+he,Pe=Y.fontChar,l=Y.accent,_e=void 0,Ae=void 0,j=Y.width;if(Le){var fe=Y.vmetric||ge,ve=-(Y.vmetric?fe[1]:j*.5)*Ce,Fe=fe[2]*Ce;j=fe?-fe[0]:j,_e=ve/oe,Ae=(le+Fe)/oe}else _e=le/oe,Ae=0;if(L.remeasure&&j>0){var Me=ne.measureText(Pe).width*1e3/J*oe;if(j<Me&&this.isFontSubpixelAAEnabled){var De=j/Me;E=!0,ne.save(),ne.scale(De,1),_e/=De}else j!==Me&&(_e+=(j-Me)/2e3*J/oe)}if(this.contentVisible&&(Y.isInFont||L.missingFile)){if(Be&&!l)ne.fillText(Pe,_e,Ae);else if(this.paintChar(Pe,_e,Ae,Ne,p),l){var We=_e+J*l.offset.x/oe,Xe=Ae-J*l.offset.y/oe;this.paintChar(l.fontChar,We,Xe,Ne,p)}}
83var He=void 0;Le?He=j*Ce-ue*ke:He=j*Ce+ue*ke,le+=He,E&&ne.restore()}Le?v.y-=le:v.x+=le*Ee,ne.restore(),this.compose()}}},{key:"showType3Text",value:function(A){var v=this.ctx,L=this.current,J=L.font,ne=L.fontSize,oe=L.fontDirection,he=J.vertical?1:-1,Te=L.charSpacing,ke=L.wordSpacing,Ee=L.textHScale*oe,Ie=L.fontMatrix||e.FONT_IDENTITY_MATRIX,Le=A.length,ce=L.textRenderingMode===e.TextRenderingMode.INVISIBLE,ge,Ce,Be,Ne;if(!(ce||ne===0)){for(this._cachedGetSinglePixelWidth=null,v.save(),v.transform.apply(v,L.textMatrix),v.translate(L.x,L.y),v.scale(Ee,oe),ge=0;ge<Le;++ge){if(Ce=A[ge],(0,e.isNum)(Ce)){Ne=he*Ce*ne/1e3,this.ctx.translate(Ne,0),L.x+=Ne*Ee;continue}var ye=(Ce.isSpace?ke:0)+Te,be=J.charProcOperatorList[Ce.operatorListId];if(!be){(0,e.warn)('Type3 character "'.concat(Ce.operatorListId,'" is not available.'));continue}this.contentVisible&&(this.processingType3=Ce,this.save(),v.scale(ne,ne),v.transform.apply(v,Ie),this.executeOperatorList(be),this.restore());var p=e.Util.applyTransform([Ce.width,0],Ie);Be=p[0]*ne+ye,v.translate(Be,0),L.x+=Be*Ee}v.restore(),this.processingType3=null}}},{key:"setCharWidth",value:function(A,v){}},{key:"setCharWidthAndBounds",value:function(A,v,L,J,ne,oe){this.ctx.rect(L,J,ne-L,oe-J),this.clip(),this.endPath()}},{key:"getColorN_Pattern",value:function(A){var v=this,L;if(A[0]==="TilingPattern"){var J=A[1],ne=this.baseTransform||this.ctx.mozCurrentTransform.slice(),oe={createCanvasGraphics:function(Te){return new Z(Te,v.commonObjs,v.objs,v.canvasFactory)}};L=new a.TilingPattern(A,J,this.ctx,oe,ne)}else L=this._getPattern(A[1],A[2]);return L}},{key:"setStrokeColorN",value:function(){this.current.strokeColor=this.getColorN_Pattern(arguments)}},{key:"setFillColorN",value:function(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}},{key:"setStrokeRGBColor",value:function(A,v,L){var J=e.Util.makeHexColor(A,v,L);this.ctx.strokeStyle=J,this.current.strokeColor=J}},{key:"setFillRGBColor",value:function(A,v,L){var J=e.Util.makeHexColor(A,v,L);this.ctx.fillStyle=J,this.current.fillColor=J,this.current.patternFill=!1}},{key:"_getPattern",value:function(A){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,L;return this.cachedPatterns.has(A)?L=this.cachedPatterns.get(A):(L=(0,a.getShadingPattern)(this.objs.get(A)),this.cachedPatterns.set(A,L)),v&&(L.matrix=v),L}},{key:"shadingFill",value:function(A){if(this.contentVisible){var v=this.ctx;this.save();var L=this._getPattern(A);v.fillStyle=L.getPattern(v,this,v.mozCurrentTransformInverse,a.PathType.SHADING);var J=v.mozCurrentTransformInverse;if(J){var ne=v.canvas,oe=ne.width,he=ne.height,Te=e.Util.applyTransform([0,0],J),ke=e.Util.applyTransform([0,he],J),Ee=e.Util.applyTransform([oe,0],J),Ie=e.
vendor: 4,248 bytes, line 83
83Util.applyTransform([oe,he],J),Le=Math.min(Te[0],ke[0],Ee[0],Ie[0]),ce=Math.min(Te[1],ke[1],Ee[1],Ie[1]),ge=Math.max(Te[0],ke[0],Ee[0],Ie[0]),Ce=Math.max(Te[1],ke[1],Ee[1],Ie[1]);this.ctx.fillRect(Le,ce,ge-Le,Ce-ce)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}}},{key:"beginInlineImage",value:function(){(0,e.unreachable)("Should not call beginInlineImage")}},{key:"beginImageData",value:function(){(0,e.unreachable)("Should not call beginImageData")}},{key:"paintFormXObjectBegin",value:function(A,v){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(A)&&A.length===6&&this.transform.apply(this,A),this.baseTransform=this.ctx.mozCurrentTransform,v)){var L=v[2]-v[0],J=v[3]-v[1];this.ctx.rect(v[0],v[1],L,J),this.current.updatePathMinMax(this.ctx.mozCurrentTransform,v[0],v[1]),this.current.updatePathMinMax(this.ctx.mozCurrentTransform,v[2],v[3]),this.clip(),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}},{key:"beginGroup",value:function(A){if(this.contentVisible){this.save();var v=this.suspendedCtx;this.current.activeSMask&&(this.suspendedCtx=null,this.current.activeSMask=null);var L=this.ctx;A.isolated||(0,e.info)("TODO: Support non-isolated groups."),A.knockout&&(0,e.warn)("Knockout groups not supported.");var J=L.mozCurrentTransform;if(A.matrix&&L.transform.apply(L,A.matrix),!A.bbox)throw new Error("Bounding box is required.");var ne=e.Util.getAxialAlignedBoundingBox(A.bbox,L.mozCurrentTransform),oe=[0,0,L.canvas.width,L.canvas.height];ne=e.Util.intersect(ne,oe)||[0,0,0,0];var he=Math.floor(ne[0]),Te=Math.floor(ne[1]),ke=Math.max(Math.ceil(ne[2])-he,1),Ee=Math.max(Math.ceil(ne[3])-Te,1),Ie=1,Le=1;ke>N&&(Ie=ke/N,ke=N),Ee>N&&(Le=Ee/N,Ee=N),this.current.startNewPathAndClipBox([0,0,ke,Ee]);var ce="groupAt"+this.groupLevel;A.smask&&(ce+="_smask_"+this.smaskCounter++%2);var ge=this.cachedCanvases.getCanvas(ce,ke,Ee,!0),Ce=ge.context;Ce.scale(1/Ie,1/Le),Ce.translate(-he,-Te),Ce.transform.apply(Ce,J),A.smask?this.smaskStack.push({canvas:ge.canvas,context:Ce,offsetX:he,offsetY:Te,scaleX:Ie,scaleY:Le,subtype:A.smask.subtype,backdrop:A.smask.backdrop,transferMap:A.smask.transferMap||null,startTransformInverse:null}):(L.setTransform(1,0,0,1,0,0),L.translate(he,Te),L.scale(Ie,Le),L.save()),ie(L,Ce),this.ctx=Ce,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push({ctx:L,suspendedCtx:v}),this.groupLevel++}}},{key:"endGroup",value:function(A){if(this.contentVisible){this.groupLevel--;var v=this.ctx,L=this.groupStack.pop(),J=L.ctx,ne=L.suspendedCtx;if(this.ctx=J,this.ctx.imageSmoothingEnabled=!1,ne&&(this.suspendedCtx=ne),A.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();var oe=this.ctx.mozCurrentTransform;this.restore(),this.ctx.save(),this.ctx.setTransform.apply(this.ctx,oe);var he=e.Util.getAxialAlignedBoundingBox([0,0,v.canvas.width,v.canvas.height],oe);this.ctx.drawImage(v.canvas,0,0),this.ctx.restore(),this.compose(he)}}}},{key:"beginAnnotations",value:function(){this.save(),this.baseTransform&&this.ctx.setTransform.apply(this.ctx,this.baseTransform)}},{key:"endAnnotations",value:function(){this.restore()}},{key:"beginAnnotation",value:function(A,v,L,J,ne){if(this.save(),Array.isArray(v)&&v.length===4){var oe=v[2]-v[0],he=v[3]-v[1];if(ne&&this.annotationCanvasMap){L=L.slice(),L[4]-=v[0],L[5]-=v[1],v=v.slice(),v[0]=v[1]=0,v[2]=oe,v[3]=he;var Te=e.Util.singularValueDecompose2dScale(this.ctx.mozCurrentTransform),ke=k(Te,2),Ee=ke[0],Ie=ke[1],Le=this.viewportScale,ce=Math.ceil(oe*this.outputScaleX*Le),ge=Math.ceil(he*this.outputScaleY*Le);this.annotationCanvas=this.canvasFactory.create(ce,ge);var Ce=this.annotationCanvas,Be=Ce.canvas,Ne=Ce.context;Be.style.width="calc(".concat(oe,"px * var(--viewport-scale-factor))"),Be.style.height="calc(".concat(he,"px * var(--viewport-scale-factor))"),this.annotationCanvasMap.set(A,Be),this.annotationCanvas.savedCtx=this.ctx,this.ctx=Ne,this.ctx.setTransform(Ee,0,0,-Ie,0,he*Ie),M(this.ctx),se(this.ctx)}else se(this.ctx),this.ctx.rect(v[0],v[1],oe,he),this.clip(),this.endPath()}
83this.current=new F(this.ctx.canvas.width,this.ctx.canvas.height),this.transform.apply(this,L),this.transform.apply(this,J)}},{key:"endAnnotation",value:function(){this.annotationCanvas&&(this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas),this.restore()}},{key:"paintImageMaskXObject",value:function(A){if(this.contentVisible){var v=this.ctx,L=A.width,J=A.height,ne=this.processingType3;if(ne&&ne.compiled===void 0&&(L<=h&&J<=h?ne.compiled=P({data:A.data,width:L,height:J}):ne.compiled=null),ne!=null&&ne.compiled){ne.compiled(v);return}var oe=this._createMaskCanvas(A),he=oe.canvas;v.save(),v.setTransform(1,0,0,1,0,0),v.drawImage(he,oe.offsetX,oe.offsetY),v.restore(),this.compose()}}},{key:"paintImageMaskXObjectRepeat",value:function(A,v){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,ne=arguments.length>4?arguments[4]:void 0,oe=arguments.length>5?arguments[5]:void 0;if(this.contentVisible){var he=this.ctx;he.save();var Te=he.mozCurrentTransform;he.transform(v,L,J,ne,0,0);var ke=this._createMaskCanvas(A);he.setTransform(1,0,0,1,0,0);for(var Ee=0,Ie=oe.length;Ee<Ie;Ee+=2){var Le=e.Util.transform(Te,[v,L,J,ne,oe[Ee],oe[Ee+1]]),ce=e.Util.applyTransform([0,0],Le),ge=k(ce,2),Ce=ge[0],Be=ge[1];he.drawImage(ke.canvas,Ce,Be)}he.restore(),this.compose()}}},{key:"paintImageMaskXObjectGroup",value:function(A){if(this.contentVisible){for(var v=this.ctx,L=this.current.fillColor,J=this.current.patternFill,ne=0,oe=A.length;ne<oe;ne++){var he=A[ne],Te=he.width,ke=he.height,Ee=this.cachedCanvases.getCanvas("maskCanvas",Te,ke),Ie=Ee.context;Ie.save(),ae(Ie,he),Ie.globalCompositeOperation="source-in",Ie.fillStyle=J?L.getPattern(Ie,this,v.mozCurrentTransformInverse,a.PathType.FILL):L,Ie.fillRect(0,0,Te,ke),Ie.restore(),v.save(),v.transform.apply(v,he.transform),v.scale(1,-1),v.drawImage(Ee.canvas,0,0,Te,ke,0,-1,1,1),v.restore()}this.compose()}}},{key:"paintImageXObject",value:function(A){if(this.contentVisible){var v=A.startsWith("g_")?this.commonObjs.get(A):this.objs.get(A);if(!v){(0,e.warn)("Dependent image isn't ready yet");return}this.paintInlineImageXObject(v)}}},{key:"paintImageXObjectRepeat",value:function(A,v,L,J){if(this.contentVisible){var ne=A.startsWith("g_")?this.commonObjs.get(A):this.objs.get(A);if(!ne){(0,e.warn)("Dependent image isn't ready yet");return}for(var oe=ne.width,he=ne.height,Te=[],ke=0,Ee=J.length;ke<Ee;ke+=2)Te.push({transform:[v,0,0,L,J[ke],J[ke+1]],x:0,y:0,w:oe,h:he});this.paintInlineImageXObjectGroup(ne,Te)}}},{key:"paintInlineImageXObject",value:function(A){if(this.contentVisible){var v=A.width,L=A.height,J=this.ctx;this.save(),J.scale(1/v,-1/L);var ne;if(typeof HTMLElement=="function"&&A instanceof HTMLElement||!A.data)ne=A;else{var oe=this.cachedCanvases.getCanvas("inlineImage",v,L),he=oe.context;te(he,A,this.current.transferMaps),ne=oe.canvas}var Te=this._scaleImage(ne,J.mozCurrentTransformInverse);if(J.imageSmoothingEnabled=$(J.mozCurrentTransform,A.interpolate),J.drawImage(Te.img,0,0,Te.paintWidth,Te.paintHeight,0,-L,v,L),this.imageLayer){var ke=this.getCanvasPosition(0,-L);this.imageLayer.appendImage({imgData:A,left:ke[0],top:ke[1],width:v/J.mozCurrentTransformInverse[0],height:L/J.mozCurrentTransformInverse[3]})}this.compose(),this.restore()}}},{key:"paintInlineImageXObjectGroup",value:function(A,v){if(this.contentVisible){var L=this.ctx,J=A.width,ne=A.height,oe=this.cachedCanvases.getCanvas("inlineImage",J,ne),he=oe.context;te(he,A,this.current.transferMaps);for(var Te=0,ke=v.length;Te<ke;Te++){var Ee=v[Te];if(L.save(),L.transform.apply(L,Ee.transform),L.scale(1,-1),L.drawImage(oe.canvas,Ee.x,Ee.y,Ee.w,Ee.h,0,-1,1,1),this.imageLayer){var Ie=this.getCanvasPosition(Ee.x,Ee.y);this.imageLayer.appendImage({imgData:A,left:Ie[0],top:Ie[1],width:J,height:ne})}L.restore()}this.compose()}}},{key:"paintSolidColorImageMask",value:function(){this.contentVisible&&(this.ctx.fillRect(0,0,1,1),this.compose())}},{key:"markPoint",value:function(A){}},{key:"markPointProps",value:function(A,v){}},{key:"beginMarkedContent",value:function(A){this.markedContentStack.push({visible:!0})}},{key:"beginMarkedContentProps",value:function(A,v){A==="OC"?this.markedContentStack.push({visible:this.optionalContentConfig.isVisible(v)}):this.markedContentStack.push({visible:!0}),this.contentVisible=this.isContentVisible()}},{key:"endMarkedContent",value:function(){this.markedContentStack.pop(),this.contentVisible=this.isContentVisible()}},{key:"beginCompat",value:function(){}},{key:"endCompat",value:function(){}},{key:"consumePath",value:function(A){this.pendingClip&&this.current.updateClipFromPath(),this.pendingClip||this.compose(A);var v=this.ctx;this.pendingClip&&(this.pendingClip===de?v.clip("evenodd"):v.clip(),this.pendingClip=null),this.current.startNewPathAndClipBox(this.current.clipBox),v.beginPath()}},{key:"getSinglePixelWidth",value:function(){if(this._cachedGetSinglePixelWidth===null){var A=this.ctx.mozCurrentTransform,v=Math.abs(A[0]*A[3]-A[2]*A[1]),L=Math.pow(A[0],2)+Math.pow(A[2],2),J=Math.pow(A[1],2)+Math.pow(A[3],2),ne=Math.sqrt(Math.max(L,J))/v;L!==J&&this._combinedScaleFactor*ne>1?this._cachedGetSinglePixelWidth=-(this._combinedScaleFactor*ne):v>Number.EPSILON?this._cachedGetSinglePixelWidth=ne:this._cachedGetSinglePixelWidth=1}return this._cachedGetSinglePixelWidth}},{key:"getCanvasPosition",value:function(A,v){var L=this.ctx.mozCurrentTransform;return[L[0]*A+L[2]*v+L[4],L[1]*A+L[3]*v+L[5]]}},{key:"isContentVisible",value:function(){for(var A=this.markedContentStack.length-1;A>=0;A--)if(!this.markedContentStack[A].visible)return!1;return!0}}]),Z}();r.CanvasGraphics=pe;for(var Re in e.OPS)pe.prototype[Re]!==void 0&&(pe.prototype[e.OPS[Re]]=pe.prototype[Re])},(n,r,t)=>{function e(F){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(ae){return typeof ae}:e=function(ae){return ae&&typeof Symbol=="function"&&ae.constructor===Symbol&&ae!==Symbol.prototype?"symbol":typeof ae},e(F)}
83Object.defineProperty(r,"__esModule",{value:!0}),r.TilingPattern=r.PathType=void 0,r.getShadingPattern=M;var a=t(4);function o(F,te){var ae=typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(!ae){if(Array.isArray(F)||(ae=s(F))||te){ae&&(F=ae);var ie=0,se=function(){};return{s:se,n:function(){return ie>=F.length?{done:!0}:{done:!1,value:F[ie++]}},e:function(C){throw C},f:se}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 84In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var re=!0,X=!1,T;return{s:function(){ae=ae.call(F)},n:function(){var C=ae.next();return re=C.done,C},e:function(C){X=!0,T=C},f:function(){try{!re&&ae.return!=null&&ae.return()}finally{if(X)throw T}}}}function s(F,te){if(F){if(typeof F=="string")return u(F,te);var ae=Object.prototype.toString.call(F).slice(8,-1);if(ae==="Object"&&F.constructor&&(ae=F.constructor.name),ae==="Map"||ae==="Set")return Array.from(F);if(ae==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(ae))return u(F,te)}}function u(F,te){(te==null||te>F.length)&&(te=F.length);for(var ae=0,ie=new Array(te);ae<te;ae++)ie[ae]=F[ae];return ie}function f(F,te){if(typeof te!="function"&&te!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(te&&te.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),te&&w(F,te)}function w(F,te){return w=Object.setPrototypeOf||function(ie,se){return ie.__proto__=se,ie},w(F,te)}function m(F){var te=I();return function(){var ie=D(F),se;if(te){var re=D(this).constructor;se=Reflect.construct(ie,arguments,re)}else se=ie.apply(this,arguments);return k(this,se)}}function k(F,te){if(te&&(e(te)==="object"||typeof te=="function"))return te;if(te!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x(F)}function x(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}function I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function D(F){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(ae){return ae.__proto__||Object.getPrototypeOf(ae)},D(F)}function q(F,te){if(!(F instanceof te))throw new TypeError("Cannot call a class as a function")}function O(F,te){for(var ae=0;ae<te.length;ae++){var ie=te[ae];ie.enumerable=ie.enumerable||!1,ie.configurable=!0,"value"in ie&&(ie.writable=!0),Object.defineProperty(F,ie.key,ie)}}function B(F,te,ae){return te&&O(F.prototype,te),ae&&O(F,ae),F}var S={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};r.PathType=S;function N(F,te){if(!(!te||typeof Path2D>"u")){var ae=te[2]-te[0],ie=te[3]-te[1],se=new Path2D;se.rect(te[0],te[1],ae,ie),F.clip(se)}}var y=function(){function F(){q(this,F),this.constructor===F&&(0,a.unreachable)("Cannot initialize BaseShadingPattern.")}return B(F,[{key:"getPattern",value:function(){(0,a.unreachable)("Abstract method `getPattern` called.")}}]),F}(),d=function(F){f(ae,F);var te=m(ae);function ae(ie){var se;return q(this,ae),se=te.call(this),se._type=ie[1],se._bbox=ie[2],se._colorStops=ie[3],se._p0=ie[4],se._p1=ie[5],se._r0=ie[6],se._r1=ie[7],se.matrix=null,se}return B(ae,[{key:"_createGradient",value:function(se){var re;this._type==="axial"?re=se.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):this._type==="radial"&&(re=se.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));var X=o(this._colorStops),T;try{for(X.s();!(T=X.n()).done;){var b=T.value;re.addColorStop(b[0],b[1])}}catch(C){X.e(C)}finally{X.f()}return re}},{key:"getPattern",value:function(se,re,X,T){var b;if(T===S.STROKE||T===S.FILL){var C=re.current.getClippedPathBoundingBox(T,se.mozCurrentTransform)||[0,0,0,0],$=Math.ceil(C[2]-C[0])||1,W=Math.ceil(C[3]-C[1])||1,V=re.cachedCanvases.getCanvas("pattern",$,W,!0),U=V.context;U.clearRect(0,0,U.canvas.width,U.canvas.height),U.beginPath(),U.rect(0,0,U.canvas.width,U.canvas.height),U.translate(-C[0],-C[1]),X=a.Util.transform(X,[1,0,0,1,C[0],C[1]]),U.transform.apply(U,re.baseTransform),this.matrix&&U.transform.apply(U,this.matrix
84),N(U,this._bbox),U.fillStyle=this._createGradient(U),U.fill(),b=se.createPattern(V.canvas,"no-repeat");var de=new DOMMatrix(X);try{b.setTransform(de)}catch(pe){(0,a.warn)('RadialAxialShadingPattern.getPattern: "'.concat(pe?.message,'".'))}}else N(se,this._bbox),b=this._createGradient(se);return b}}]),ae}(y);function h(F,te,ae,ie,se,re,X,T){var b=te.coords,C=te.colors,$=F.data,W=F.width*4,V;b[ae+1]>b[ie+1]&&(V=ae,ae=ie,ie=V,V=re,re=X,X=V),b[ie+1]>b[se+1]&&(V=ie,ie=se,se=V,V=X,X=T,T=V),b[ae+1]>b[ie+1]&&(V=ae,ae=ie,ie=V,V=re,re=X,X=V);var U=(b[ae]+te.offsetX)*te.scaleX,de=(b[ae+1]+te.offsetY)*te.scaleY,pe=(b[ie]+te.offsetX)*te.scaleX,Re=(b[ie+1]+te.offsetY)*te.scaleY,Z=(b[se]+te.offsetX)*te.scaleX,z=(b[se+1]+te.offsetY)*te.scaleY;if(!(de>=z))for(var A=C[re],v=C[re+1],L=C[re+2],J=C[X],ne=C[X+1],oe=C[X+2],he=C[T],Te=C[T+1],ke=C[T+2],Ee=Math.round(de),Ie=Math.round(z),Le,ce,ge,Ce,Be,Ne,ye,be,p=Ee;p<=Ie;p++){if(p<Re){var ee=void 0;p<de?ee=0:ee=(de-p)/(de-Re),Le=U-(U-pe)*ee,ce=A-(A-J)*ee,ge=v-(v-ne)*ee,Ce=L-(L-oe)*ee}else{var Q=void 0;p>z?Q=1:Re===z?Q=0:Q=(Re-p)/(Re-z),Le=pe-(pe-Z)*Q,ce=J-(J-he)*Q,ge=ne-(ne-Te)*Q,Ce=oe-(oe-ke)*Q}var le=void 0;p<de?le=0:p>z?le=1:le=(de-p)/(de-z),Be=U-(U-Z)*le,Ne=A-(A-he)*le,ye=v-(v-Te)*le,be=L-(L-ke)*le;for(var G=Math.round(Math.min(Le,Be)),Y=Math.round(Math.max(Le,Be)),E=W*p+G*4,ue=G;ue<=Y;ue++)le=(Le-ue)/(Le-Be),le<0?le=0:le>1&&(le=1),$[E++]=ce-(ce-Ne)*le|0,$[E++]=ge-(ge-ye)*le|0,$[E++]=Ce-(Ce-be)*le|0,$[E++]=255}}function _(F,te,ae){var ie=te.coords,se=te.colors,re,X;switch(te.type){case"lattice":var T=te.verticesPerRow,b=Math.floor(ie.length/T)-1,C=T-1;for(re=0;re<b;re++)for(var $=re*T,W=0;W<C;W++,$++)h(F,ae,ie[$],ie[$+1],ie[$+T],se[$],se[$+1],se[$+T]),h(F,ae,ie[$+T+1],ie[$+1],ie[$+T],se[$+T+1],se[$+1],se[$+T]);break;case"triangles":for(re=0,X=ie.length;re<X;re+=3)h(F,ae,ie[re],ie[re+1],ie[re+2],se[re],se[re+1],se[re+2]);break;default:throw new Error("illegal figure")}}var R=function(F){f(ae,F);var te=m(ae);function ae(ie){var se;return q(this,ae),se=te.call(this),se._coords=ie[2],se._colors=ie[3],se._figures=ie[4],se._bounds=ie[5],se._bbox=ie[7],se._background=ie[8],se.matrix=null,se}return B(ae,[{key:"_createMeshCanvas",value:function(se,re,X){var T=1.1,b=3e3,C=2,$=Math.floor(this._bounds[0]),W=Math.floor(this._bounds[1]),V=Math.ceil(this._bounds[2])-$,U=Math.ceil(this._bounds[3])-W,de=Math.min(Math.ceil(Math.abs(V*se[0]*T)),b),pe=Math.min(Math.ceil(Math.abs(U*se[1]*T)),b),Re=V/de,Z=U/pe,z={coords:this._coords,colors:this._colors,offsetX:-$,offsetY:-W,scaleX:1/Re,scaleY:1/Z},A=de+C*2,v=pe+C*2,L=X.getCanvas("mesh",A,v,!1),J=L.context,ne=J.createImageData(de,pe);if(re)for(var oe=ne.data,he=0,Te=oe.length;he<Te;he+=4)oe[he]=re[0],oe[he+1]=re[1],oe[he+2]=re[2],oe[he+3]=255;var ke=o(this._figures),Ee;try{for(ke.s();!(Ee=ke.n()).done;){var Ie=Ee.value;_(ne,Ie,z)}}catch(ce){ke.e(ce)}finally{ke.f()}J.putImageData(ne,C,C);var Le=L.canvas;return{canvas:Le,offsetX:$-C*Re,offsetY:W-C*Z,scaleX:Re,scaleY:Z}}},{key:"getPattern",value:function(se,re,X,T){N(se,this._bbox);var b;if(T===S.SHADING)b=a.Util.singularValueDecompose2dScale(se.mozCurrentTransform);else if(b=a.Util.singularValueDecompose2dScale(re.baseTransform),this.matrix){var C=a.Util.singularValueDecompose2dScale(this.matrix);b=[b[0]*C[0],b[1]*C[1]]}var $=this._createMeshCanvas(b,T===S.SHADING?null:this._background,re.cachedCanvases);return T!==S.SHADING&&(se.setTransform.apply(se,re.baseTransform),this.matrix&&se.transform.apply(se,this.matrix)),se.translate($.offsetX,$.offsetY),se.scale($.scaleX,$.scaleY),se.createPattern($.canvas,"no-repeat")}}]),ae}(y),g=function(F){f(ae,F);var te=m(ae);function ae(){return q(this,ae),te.apply(this,arguments)}return B(ae,[{key:"getPattern",value:function(){return"hotpink"}}]),ae}(y);function M(F){switch(F[0]){case"RadialAxial":return new d(F);case"Mesh":return new R(F);case"Dummy":return new g}throw new Error("Unknown IR type: ".concat(F[0]))}var H={COLORED:1,UNCOLORED:2},P=function(){function F(te,ae,ie,se,re){q(this,F),this.operatorList=te[2],this.matrix=te[3]||[1,0,0,1,0,0],this.bbox=te[4],this.xstep=te[5],this.ystep=te[6],this.paintType=te[7],this.tilingType=te[8],this.color=ae,this.ctx=ie,this.canvasGraphicsFactory=se,this.baseTransform=re}return B(F,[{key:"createPatternCanvas",value:function(ae){var ie=this.operatorList,se=this.bbox,re=this.xstep,X=this.ystep,T=this.paintType,b=this.tilingType,C=this.color,$=this.canvasGraphicsFactory;(0,a.info)("TilingType: "+b);var W=se[0],V=se[1],U=se[2],de=se[3],pe=a.Util.singularValueDecompose2dScale(this.matrix
84),Re=a.Util.singularValueDecompose2dScale(this.baseTransform),Z=[pe[0]*Re[0],pe[1]*Re[1]],z=this.getSizeAndScale(re,this.ctx.canvas.width,Z[0]),A=this.getSizeAndScale(X,this.ctx.canvas.height,Z[1]),v=ae.cachedCanvases.getCanvas("pattern",z.size,A.size,!0),L=v.context,J=$.createCanvasGraphics(L);J.groupLevel=ae.groupLevel,this.setFillAndStrokeStyleToContext(J,T,C);var ne=W,oe=V,he=U,Te=de;return W<0&&(ne=0,he+=Math.abs(W)),V<0&&(oe=0,Te+=Math.abs(V)),L.translate(-(z.scale*ne),-(A.scale*oe)),J.transform(z.scale,0,0,A.scale,0,0),this.clipBbox(J,ne,oe,he,Te),J.baseTransform=J.ctx.mozCurrentTransform.slice(),J.executeOperatorList(ie),J.endDrawing(),{canvas:v.canvas,scaleX:z.scale,scaleY:A.scale,offsetX:ne,offsetY:oe}}},{key:"getSizeAndScale",value:function(ae,ie,se){ae=Math.abs(ae);var re=Math.max(F.MAX_PATTERN_SIZE,ie),X=Math.ceil(ae*se);return X>=re?X=re:se=X/ae,{scale:se,size:X}}},{key:"clipBbox",value:function(ae,ie,se,re,X){var T=re-ie,b=X-se;ae.ctx.rect(ie,se,T,b),ae.clip(),ae.endPath()}},{key:"setFillAndStrokeStyleToContext",value:function(ae,ie,se){var re=ae.ctx,X=ae.current;switch(ie){case H.COLORED:var T=this.ctx;re.fillStyle=T.fillStyle,re.strokeStyle=T.strokeStyle,X.fillColor=T.fillStyle,X.strokeColor=T.strokeStyle;break;case H.UNCOLORED:var b=a.Util.makeHexColor(se[0],se[1],se[2]);re.fillStyle=b,re.strokeStyle=b,X.fillColor=b,X.strokeColor=b;break;default:throw new a.FormatError("Unsupported paint type: ".concat(ie))}}},{key:"getPattern",value:function(ae,ie,se,re){var X=se;re!==S.SHADING&&(X=a.Util.transform(X,ie.baseTransform),this.matrix&&(X=a.Util.transform(X,this.matrix)));var T=this.createPatternCanvas(ie),b=new DOMMatrix(X);b=b.translate(T.offsetX,T.offsetY),b=b.scale(1/T.scaleX,1/T.scaleY);var C=ae.createPattern(T.canvas,"repeat");try{C.setTransform(b)}catch($){(0,a.warn)('TilingPattern.getPattern: "'.concat($?.message,'".'))}return C}}],[{key:"MAX_PATTERN_SIZE",get:function(){return(0,a.shadow)(this,"MAX_PATTERN_SIZE",3e3)}}]),F}();r.TilingPattern=P},(n,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.GlobalWorkerOptions=void 0;var t=Object.create(null);r.GlobalWorkerOptions=t,t.workerPort=t.workerPort===void 0?null:t.workerPort,t.workerSrc=t.workerSrc===void 0?"":t.workerSrc},(n,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.MessageHandler=void 0;var e=o(t(2)),a=t(4);function o(O){return O&&O.__esModule?O:{default:O}}function s(O,B,S,N,y,d,h){try{var _=O[d](h),R=_.value}catch(g){S(g);return}_.done?B(R):Promise.resolve(R).then(N,y)}function u(O){return function(){var B=this,S=arguments;return new Promise(function(N,y){var d=O.apply(B,S);function h(R){s(d,N,y,h,_,"next",R)}function _(R){s(d,N,y,h,_,"throw",R)}h(void 0)})}}function f(O,B){if(!(O instanceof B))throw new TypeError("Cannot call a class as a function")}function w(O,B){for(var S=0;S<B.length;S++){var N=B[S];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(O,N.key,N)}}function m(O,B,S){return B&&w(O.prototype,B),O}function k(O){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?k=function(S){return typeof S}:k=function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},k(O)}var x={UNKNOWN:0,DATA:1,ERROR:2},I={UNKNOWN:0,CANCEL:1,CANCEL_COMPLETE:2,CLOSE:3,ENQUEUE:4,ERROR:5,PULL:6,PULL_COMPLETE:7,START_COMPLETE:8};function D(O){if(!(O instanceof Error||k(O)==="object"&&O!==null))return(0,a.warn)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),O;switch(O.name){case"AbortException":return new a.AbortException(O.message);case"MissingPDFException":return new a.MissingPDFException(O.message);case"PasswordException":return new a.PasswordException(O.message,O.code);case"UnexpectedResponseException":return new a.UnexpectedResponseException(O.message,O.status);case"UnknownErrorException":return new a.UnknownErrorException(O.message,O.details);default:return new a.UnknownErrorException(O.message,O.toString())}}var q=function(){function O(B,S,N){var y=this;f(this,O),this.sourceName=B,this.targetName=S,this.comObj=N,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=function(d){var h=d.data;if(h.targetName===y.sourceName){if(h.stream){y._processStreamMessage(h);return}if(h.callback){var _=h.callbackId,R=y.callbackCapabilities[_];if(!R)throw new Error("Cannot resolve callback ".concat(_));if(delete y.callbackCapabilities[_],h.callback===x.DATA)R.resolve(h.data);else if(h.callback===x.ERROR)R.reject(D(h.reason));else throw new Error("Unexpected callback case");return}var g=y.actionHandler[h.action];if(!g)throw new Error("Unknown action from worker: ".concat(h.action));if(h.callbackId){var M=y.sourceName,H=h.sourceName;new Promise(function(P){P(g(h.data))}).then(function(P){N.postMessage({sourceName:M,targetName:H,callback:x.DATA,callbackId:h.callbackId,data:P})},function(P){N.postMessage({sourceName:M,targetName:H,callback:x.ERROR,callbackId:h.callbackId,reason:D(P)})});return}if(h.streamId){y._createStreamSink(h);return}g(h.data)}},N.addEventListener("message",this._onComObjOnMessage)}
84return m(O,[{key:"on",value:function(S,N){var y=this.actionHandler;if(y[S])throw new Error('There is already an actionName called "'.concat(S,'"'));y[S]=N}},{key:"send",value:function(S,N,y){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:S,data:N},y)}},{key:"sendWithPromise",value:function(S,N,y){var d=this.callbackId++,h=(0,a.createPromiseCapability)();this.callbackCapabilities[d]=h;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:S,callbackId:d,data:N},y)}catch(_){h.reject(_)}return h.promise}},{key:"sendWithStream",value:function(S,N,y,d){var h=this,_=this.streamId++,R=this.sourceName,g=this.targetName,M=this.comObj;return new ReadableStream({start:function(P){var F=(0,a.createPromiseCapability)();return h.streamControllers[_]={controller:P,startCall:F,pullCall:null,cancelCall:null,isClosed:!1},M.postMessage({sourceName:R,targetName:g,action:S,streamId:_,data:N,desiredSize:P.desiredSize},d),F.promise},pull:function(P){var F=(0,a.createPromiseCapability)();return h.streamControllers[_].pullCall=F,M.postMessage({sourceName:R,targetName:g,stream:I.PULL,streamId:_,desiredSize:P.desiredSize}),F.promise},cancel:function(P){(0,a.assert)(P instanceof Error,"cancel must have a valid reason");var F=(0,a.createPromiseCapability)();return h.streamControllers[_].cancelCall=F,h.streamControllers[_].isClosed=!0,M.postMessage({sourceName:R,targetName:g,stream:I.CANCEL,streamId:_,reason:D(P)}),F.promise}},y)}},{key:"_createStreamSink",value:function(S){var N=S.streamId,y=this.sourceName,d=S.sourceName,h=this.comObj,_=this,R=this.actionHandler[S.action],g={enqueue:function(H){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,F=arguments.length>2?arguments[2]:void 0;if(!this.isCancelled){var te=this.desiredSize;this.desiredSize-=P,te>0&&this.desiredSize<=0&&(this.sinkCapability=(0,a.createPromiseCapability)(),this.ready=this.sinkCapability.promise),h.postMessage({sourceName:y,targetName:d,stream:I.ENQUEUE,streamId:N,chunk:H},F)}},close:function(){this.isCancelled||(this.isCancelled=!0,h.postMessage({sourceName:y,targetName:d,stream:I.CLOSE,streamId:N}),delete _.streamSinks[N])},error:function(H){(0,a.assert)(H instanceof Error,"error must have a valid reason"),!this.isCancelled&&(this.isCancelled=!0,h.postMessage({sourceName:y,targetName:d,stream:I.ERROR,streamId:N,reason:D(H)}))},sinkCapability:(0,a.createPromiseCapability)(),onPull:null,onCancel:null,isCancelled:!1,desiredSize:S.desiredSize,ready:null};g.sinkCapability.resolve(),g.ready=g.sinkCapability.promise,this.streamSinks[N]=g,new Promise(function(M){M(R(S.data,g))}).then(function(){h.postMessage({sourceName:y,targetName:d,stream:I.START_COMPLETE,streamId:N,success:!0})},function(M){h.postMessage({sourceName:y,targetName:d,stream:I.START_COMPLETE,streamId:N,reason:D(M)})})}},{key:"_processStreamMessage",value:function(S){var N=S.streamId,y=this.sourceName,d=S.sourceName,h=this.comObj,_=this.streamControllers[N],R=this.streamSinks[N];switch(S.stream){case I.START_COMPLETE:S.success?_.startCall.resolve():_.startCall.reject(D(S.reason));break;case I.PULL_COMPLETE:S.success?_.pullCall.resolve():_.pullCall.reject(D(S.reason));break;case I.PULL:if(!R){h.postMessage({sourceName:y,targetName:d,stream:I.PULL_COMPLETE,streamId:N,success:!0});break}R.desiredSize<=0&&S.desiredSize>0&&R.sinkCapability.resolve(),R.desiredSize=S.desiredSize,new Promise(function(g){g(R.onPull&&R.onPull())}).then(function(){h.postMessage({sourceName:y,targetName:d,stream:I.PULL_COMPLETE,streamId:N,success:!0})},function(g){h.postMessage({sourceName:y,targetName:d,stream:I.PULL_COMPLETE,streamId:N,reason:D(g)})});break;case I.ENQUEUE:if((0,a.assert)(_,"enqueue should have stream controller"),_.isClosed)break;_.controller.enqueue(S.chunk);break;case I.CLOSE:if((0,a.assert)(_,"close should have stream controller"),_.isClosed)break;_.isClosed=!0,_.controller.close(),this._deleteStreamController(_,N);break;case I.ERROR:(0,a.assert)(_,"error should have stream controller"),_.controller.error(D(S.reason)),this._deleteStreamController(_,N);break;case I.CANCEL_COMPLETE:S.success?_.cancelCall.resolve():_.cancelCall.reject(D(S.reason)),this._deleteStreamController(_,N);break;case I.CANCEL:if(!R)break;new Promise(function(g){g(R.onCancel&&R.onCancel(D(S.reason)))}).then(function(){h.postMessage({sourceName:y,targetName:d,stream:I.CANCEL_COMPLETE,streamId:N,success:!0})},function(g){h.postMessage({sourceName:y,targetName:d,stream:I.CANCEL_COMPLETE,streamId:N,reason:D(g)})}),R.sinkCapability.reject(D(S.reason)),R.isCancelled=!0,delete this.streamSinks[N];break;default:throw new Error("Unexpected stream case")}}},{key:"_deleteStreamController",value:function(){var B=u(e.default.mark(function N(y,d){return e.default.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,Promise.allSettled([y.startCall&&y.startCall.promise,y.pullCall&&y.pullCall.promise,y.c
84ancelCall&&y.cancelCall.promise]);case 2:delete this.streamControllers[d];case 3:case"end":return _.stop()}},N,this)}));function S(N,y){return B.apply(this,arguments)}return S}()},{key:"destroy",value:function(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}]),O}();r.MessageHandler=q},(n,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Metadata=void 0;var e=t(4);function a(B,S){if(!(B instanceof S))throw new TypeError("Cannot call a class as a function")}function o(B,S){for(var N=0;N<S.length;N++){var y=S[N];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(B,y.key,y)}}function s(B,S,N){return S&&o(B.prototype,S),B}function u(B,S,N){f(B,S),S.set(B,N)}function f(B,S){if(S.has(B))throw new TypeError("Cannot initialize the same private elements twice on an object")}function w(B,S){var N=x(B,S,"get");return m(B,N)}function m(B,S){return S.get?S.get.call(B):S.value}function k(B,S,N){var y=x(B,S,"set");return I(B,y,N),N}function x(B,S,N){if(!S.has(B))throw new TypeError("attempted to "+N+" private field on non-instance");return S.get(B)}function I(B,S,N){if(S.set)S.set.call(B,N);else{if(!S.writable)throw new TypeError("attempted to set read only private field");S.value=N}}var D=new WeakMap,q=new WeakMap,O=function(){function B(S){var N=S.parsedData,y=S.rawData;a(this,B),u(this,D,{writable:!0,value:void 0}),u(this,q,{writable:!0,value:void 0}),k(this,D,N),k(this,q,y)}return s(B,[{key:"getRaw",value:function(){return w(this,q)}},{key:"get",value:function(N){var y;return(y=w(this,D).get(N))!==null&&y!==void 0?y:null}},{key:"getAll",value:function(){return(0,e.objectFromMap)(w(this,D))}},{key:"has",value:function(N){return w(this,D).has(N)}}]),B}();r.Metadata=O},(n,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.OptionalContentConfig=void 0;var e=t(4);function a(x,I){var D=typeof Symbol<"u"&&x[Symbol.iterator]||x["@@iterator"];if(!D){if(Array.isArray(x)||(D=o(x))||I){D&&(x=D);var q=0,O=function(){};return{s:O,n:function(){return q>=x.length?{done:!0}:{done:!1,value:x[q++]}},e:function(d){throw d},f:O}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 85In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,S=!1,N;return{s:function(){D=D.call(x)},n:function(){var d=D.next();return B=d.done,d},e:function(d){S=!0,N=d},f:function(){try{!B&&D.return!=null&&D.return()}finally{if(S)throw N}}}}function o(x,I){if(x){if(typeof x=="string")return s(x,I);var D=Object.prototype.toString.call(x).slice(8,-1);if(D==="Object"&&x.constructor&&(D=x.constructor.name),D==="Map"||D==="Set")return Array.from(x);if(D==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(D))return s(x,I)}}function s(x,I){(I==null||I>x.length)&&(I=x.length);for(var D=0,q=new Array(I);D<I;D++)q[D]=x[D];return q}function u(x,I){for(var D=0;D<I.length;D++){var q=I[D];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(x,q.key,q)}}function f(x,I,D){return I&&u(x.prototype,I),x}function w(x,I){if(!(x instanceof I))throw new TypeError("Cannot call a class as a function")}var m=function x(I,D){w(this,x),this.visible=!0,this.name=I,this.intent=D},k=function(){function x(I){if(w(this,x),this.name=null,this.creator=null,this._order=null,this._groups=new Map,I!==null){this.name=I.name,this.creator=I.creator,this._order=I.order;var D=a(I.groups),q;try{for(D.s();!(q=D.n()).done;){var O=q.value;this._groups.set(O.id,new m(O.name,O.intent))}}catch(M){D.e(M)}finally{D.f()}if(I.baseState==="OFF"){var B=a(this._groups),S;try{for(B.s();!(S=B.n()).done;){var N=S.value;N.visible=!1}}catch(M){B.e(M)}finally{B.f()}}var y=a(I.on),d;try{for(y.s();!(d=y.n()).done;){var h=d.value;this._groups.get(h).visible=!0}}catch(M){y.e(M)}finally{y.f()}var _=a(I.off),R;try{for(_.s();!(R=_.n()).done;){var g=R.value;this._groups.get(g).visible=!1}}catch(M){_.e(M)}finally{_.f()}}}return f(x,[{key:"_evaluateVisibilityExpression",value:function(D){var q=D.length;if(q<2)return!0;for(var O=D[0],B=1;B<q;B++){var S=D[B],N=void 0;if(Array.isArray(S))N=this._evaluateVisibilityExpression(S);else if(this._groups.has(S))N=this._groups.get(S).visible;else return(0,e.warn)("Optional content group not found: ".concat(S)),!0;switch(O){case"And":if(!N)return!1;break;case"Or":if(N)return!0;break;case"Not":return!N;default:return!0}}return O==="And"}},{key:"isVisible",value:function(D){if(this._groups.size===0)return!0;
85if(!D)return(0,e.warn)("Optional content group not defined."),!0;if(D.type==="OCG")return this._groups.has(D.id)?this._groups.get(D.id).visible:((0,e.warn)("Optional content group not found: ".concat(D.id)),!0);if(D.type==="OCMD"){if(D.expression)return this._evaluateVisibilityExpression(D.expression);if(!D.policy||D.policy==="AnyOn"){var q=a(D.ids),O;try{for(q.s();!(O=q.n()).done;){var B=O.value;if(!this._groups.has(B))return(0,e.warn)("Optional content group not found: ".concat(B)),!0;if(this._groups.get(B).visible)return!0}}catch(H){q.e(H)}finally{q.f()}return!1}else if(D.policy==="AllOn"){var S=a(D.ids),N;try{for(S.s();!(N=S.n()).done;){var y=N.value;if(!this._groups.has(y))return(0,e.warn)("Optional content group not found: ".concat(y)),!0;if(!this._groups.get(y).visible)return!1}}catch(H){S.e(H)}finally{S.f()}return!0}else if(D.policy==="AnyOff"){var d=a(D.ids),h;try{for(d.s();!(h=d.n()).done;){var _=h.value;if(!this._groups.has(_))return(0,e.warn)("Optional content group not found: ".concat(_)),!0;if(!this._groups.get(_).visible)return!0}}catch(H){d.e(H)}finally{d.f()}return!1}else if(D.policy==="AllOff"){var R=a(D.ids),g;try{for(R.s();!(g=R.n()).done;){var M=g.value;if(!this._groups.has(M))return(0,e.warn)("Optional content group not found: ".concat(M)),!0;if(this._groups.get(M).visible)return!1}}catch(H){R.e(H)}finally{R.f()}return!0}return(0,e.warn)("Unknown optional content policy ".concat(D.policy,".")),!0}return(0,e.warn)("Unknown group type ".concat(D.type,".")),!0}},{key:"setVisibility",value:function(D){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!this._groups.has(D)){(0,e.warn)("Optional content group not found: ".concat(D));return}this._groups.get(D).visible=!!q}},{key:"getOrder",value:function(){return this._groups.size?this._order?this._order.slice():Array.from(this._groups.keys()):null}},{key:"getGroups",value:function(){return this._groups.size>0?(0,e.objectFromMap)(this._groups):null}},{key:"getGroup",value:function(D){return this._groups.get(D)||null}}]),x}();r.OptionalContentConfig=k},(n,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PDFDataTransportStream=void 0;var e=s(t(2)),a=t(4),o=t(1);function s(S){return S&&S.__esModule?S:{default:S}}function u(S,N,y,d,h,_,R){try{var g=S[_](R),M=g.value}catch(H){y(H);return}g.done?N(M):Promise.resolve(M).then(d,h)}function f(S){return function(){var N=this,y=arguments;return new Promise(function(d,h){var _=S.apply(N,y);function R(M){u(_,d,h,R,g,"next",M)}function g(M){u(_,d,h,R,g,"throw",M)}R(void 0)})}}function w(S,N){var y=typeof Symbol<"u"&&S[Symbol.iterator]||S["@@iterator"];if(!y){if(Array.isArray(S)||(y=m(S))||N){y&&(S=y);var d=0,h=function(){};return{s:h,n:function(){return d>=S.length?{done:!0}:{done:!1,value:S[d++]}},e:function(H){throw H},f:h}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 86In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var _=!0,R=!1,g;return{s:function(){y=y.call(S)},n:function(){var H=y.next();return _=H.done,H},e:function(H){R=!0,g=H},f:function(){try{!_&&y.return!=null&&y.return()}finally{if(R)throw g}}}}function m(S,N){if(S){if(typeof S=="string")return k(S,N);var y=Object.prototype.toString.call(S).slice(8,-1);if(y==="Object"&&S.constructor&&(y=S.constructor.name),y==="Map"||y==="Set")return Array.from(S);if(y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(y))return k(S,N)}}function k(S,N){(N==null||N>S.length)&&(N=S.length);for(var y=0,d=new Array(N);y<N;y++)d[y]=S[y];return d}function x(S,N){if(!(S instanceof N))throw new TypeError("Cannot call a class as a function")}function I(S,N){for(var y=0;y<N.length;y++){var d=N[y];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(S,d.key,d)}}function D(S,N,y){return N&&I(S.prototype,N),S}var q=function(){function S(N,y){var d=this;x(this,S),(0,a.assert)(y,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=N.progressiveDone||!1,this._contentDispositionFilename=N.contentDispositionFilename||null;var h=N.initialData;if(h?.length>0){var _=new Uint8Array(h).buffer;this._queuedChunks.push(_)}this._pdfDataRangeTransport=y,this._isStreamingSupported=!N.disableStream,this._isRangeSupported=!N.disableRange,this._contentLength=N.length,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(function(R,g){d._onReceiveData({begin:R,chunk:g})}),this._pdfDataRangeTransport.addProgressListener(function(R,g){d._onProgress({loaded:R,total:g})}),this._pdfDataRangeTransport.addProgressiveReadListener(function(R){d._onReceiveData({chunk:R})}),this._pdfDataRangeTransport.addProgressiveDoneListener(function(){d._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}return D(S,[{key:"_onReceiveData",value:function(y){var d=new Uint8Array(y.chunk).buffer;if(y.begin===void 0)this._fullRequestReader?this._fullRequestReader._enqueue(d):this._queuedChunks.push(d);else{var h=this._rangeReaders.some(function(_){return _._begin!==y.begin?!1:(_._enqueue(d),!0)});(0,a.assert)(h,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}},{key:"_progressiveDataLength",get:function(){var y,d;return(y=(d=this._fullRequestReader)===null||d===void 0?void 0:d._loaded)!==null&&y!==void 0?y:0}},{key:"_onProgress",value:function(y){if(y.total===void 0){var d=this._rangeReaders[0];d!=null&&d.onProgress&&d.onProgress({loaded:y.loaded})}else{var h=this._fullRequestReader;h!=null&&h.onProgress&&h.onProgress({loaded:y.loaded,total:y.total})}}},{key:"_onProgressiveDone",value:function(){this._fullRequestReader&&this._fullRequestReader.progressiveDone(),this._progressiveDone=!0}},{key:"_removeRangeReader",value:function(y){var d=this._rangeReaders.indexOf(y);d>=0&&this._rangeReaders.splice(d,1)}},{key:"getFullReader",value:function(){(0,a.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var y=this._queuedChunks;return this._queuedChunks=null,new O(this,y,this._progressiveDone,this._contentDispositionFilename)}},{key:"getRangeReader",value:function(y,d){if(d<=this._progressiveDataLength)return null;var h=new B(this,y,d);return this._pdfDataRangeTransport.requestDataRange(y,d),this._rangeReaders.push(h),h}},{key:"cancelAllRequests",value:function(y){this._fullRequestReader&&this._fullRequestReader.cancel(y);var d=w(this._rangeReaders.slice(0)),h;try{for(d.s();!(h=d.n()).done;){var _=h.value;_.cancel(y)}}catch(R){d.e(R)}finally{d.f()}this._pdfDataRangeTransport.abort()}}]),S}();r.PDFDataTransportStream=q;var O=function(){function S(N,y){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;x(this,S),this._stream=N,this._done=d||!1,this._filename=(0,o.isPdfFile)(h)?h:null,this._queuedChunks=y||[],this._loaded=0;var _=w(this._queuedChunks),R;try{for(_.s();!(R=_.n()).done;){var g=R.value;this._loaded+=g.byteLength}}catch(M){_.e(M)}finally{_.f()}
86this._requests=[],this._headersReady=Promise.resolve(),N._fullRequestReader=this,this.onProgress=null}return D(S,[{key:"_enqueue",value:function(y){if(!this._done){if(this._requests.length>0){var d=this._requests.shift();d.resolve({value:y,done:!1})}else this._queuedChunks.push(y);this._loaded+=y.byteLength}}},{key:"headersReady",get:function(){return this._headersReady}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._stream._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._stream._isStreamingSupported}},{key:"contentLength",get:function(){return this._stream._contentLength}},{key:"read",value:function(){var N=f(e.default.mark(function d(){var h,_;return e.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(!(this._queuedChunks.length>0)){g.next=3;break}return h=this._queuedChunks.shift(),g.abrupt("return",{value:h,done:!1});case 3:if(!this._done){g.next=5;break}return g.abrupt("return",{value:void 0,done:!0});case 5:return _=(0,a.createPromiseCapability)(),this._requests.push(_),g.abrupt("return",_.promise);case 8:case"end":return g.stop()}},d,this)}));function y(){return N.apply(this,arguments)}return y}()},{key:"cancel",value:function(y){this._done=!0;var d=w(this._requests),h;try{for(d.s();!(h=d.n()).done;){var _=h.value;_.resolve({value:void 0,done:!0})}}catch(R){d.e(R)}finally{d.f()}this._requests.length=0}},{key:"progressiveDone",value:function(){this._done||(this._done=!0)}}]),S}(),B=function(){function S(N,y,d){x(this,S),this._stream=N,this._begin=y,this._end=d,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}return D(S,[{key:"_enqueue",value:function(y){if(!this._done){if(this._requests.length===0)this._queuedChunk=y;else{var d=this._requests.shift();d.resolve({value:y,done:!1});var h=w(this._requests),_;try{for(h.s();!(_=h.n()).done;){var R=_.value;R.resolve({value:void 0,done:!0})}}catch(g){h.e(g)}finally{h.f()}this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:function(){var N=f(e.default.mark(function d(){var h,_;return e.default.wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if(!this._queuedChunk){g.next=4;break}return h=this._queuedChunk,this._queuedChunk=null,g.abrupt("return",{value:h,done:!1});case 4:if(!this._done){g.next=6;break}return g.abrupt("return",{value:void 0,done:!0});case 6:return _=(0,a.createPromiseCapability)(),this._requests.push(_),g.abrupt("return",_.promise);case 9:case"end":return g.stop()}},d,this)}));function y(){return N.apply(this,arguments)}return y}()},{key:"cancel",value:function(y){this._done=!0;var d=w(this._requests),h;try{for(d.s();!(h=d.n()).done;){var _=h.value;_.resolve({value:void 0,done:!0})}}catch(R){d.e(R)}finally{d.f()}this._requests.length=0,this._stream._removeRangeReader(this)}}]),S}()},(n,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.XfaText=void 0;function t(w,m){var k=typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(!k){if(Array.isArray(w)||(k=e(w))||m){k&&(w=k);var x=0,I=function(){};return{s:I,n:function(){return x>=w.length?{done:!0}:{done:!1,value:w[x++]}},e:function(S){throw S},f:I}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 87In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var D=!0,q=!1,O;return{s:function(){k=k.call(w)},n:function(){var S=k.next();return D=S.done,S},e:function(S){q=!0,O=S},f:function(){try{!D&&k.return!=null&&k.return()}finally{if(q)throw O}}}}function e(w,m){if(w){if(typeof w=="string")return a(w,m);var k=Object.prototype.toString.call(w).slice(8,-1);if(k==="Object"&&w.constructor&&(k=w.constructor.name),k==="Map"||k==="Set")return Array.from(w);if(k==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(k))return a(w,m)}}function a(w,m){(m==null||m>w.length)&&(m=w.length);for(var k=0,x=new Array(m);k<m;k++)x[k]=w[k];return x}function o(w,m){if(!(w instanceof m))throw new TypeError("Cannot call a class as a function")}function s(w,m){for(var k=0;k<m.length;k++){var x=m[k];
87x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(w,x.key,x)}}function u(w,m,k){return k&&s(w,k),w}var f=function(){function w(){o(this,w)}return u(w,null,[{key:"textContent",value:function(k){var x=[],I={items:x,styles:Object.create(null)};function D(q){var O;if(q){var B=null,S=q.name;if(S==="#text")B=q.value;else if(w.shouldBuildText(S))q!=null&&(O=q.attributes)!==null&&O!==void 0&&O.textContent?B=q.attributes.textContent:q.value&&(B=q.value);else return;if(B!==null&&x.push({str:B}),!!q.children){var N=t(q.children),y;try{for(N.s();!(y=N.n()).done;){var d=y.value;D(d)}}catch(h){N.e(h)}finally{N.f()}}}}return D(k),I}},{key:"shouldBuildText",value:function(k){return!(k==="textarea"||k==="input"||k==="option"||k==="select")}}]),w}();r.XfaText=f},(n,r,t)=>{function e(ye){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function(p){return typeof p}:e=function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},e(ye)}Object.defineProperty(r,"__esModule",{value:!0}),r.AnnotationLayer=void 0;var a=t(4),o=t(1),s=t(139),u=t(149),f=t(150);function w(ye,be,p){return m(ye,be),p}function m(ye,be){if(ye!==be)throw new TypeError("Private static access of wrong provenance")}function k(ye,be,p){return typeof Reflect<"u"&&Reflect.get?k=Reflect.get:k=function(Q,le,G){var Y=x(Q,le);if(Y){var E=Object.getOwnPropertyDescriptor(Y,le);return E.get?E.get.call(G):E.value}},k(ye,be,p||ye)}function x(ye,be){for(;!Object.prototype.hasOwnProperty.call(ye,be)&&(ye=R(ye),ye!==null););return ye}function I(ye,be,p){return be in ye?Object.defineProperty(ye,be,{value:p,enumerable:!0,configurable:!0,writable:!0}):ye[be]=p,ye}function D(ye){return B(ye)||O(ye)||P(ye)||q()}function q(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 88In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(ye){if(typeof Symbol<"u"&&ye[Symbol.iterator]!=null||ye["@@iterator"]!=null)return Array.from(ye)}function B(ye){if(Array.isArray(ye))return F(ye)}function S(ye,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function");ye.prototype=Object.create(be&&be.prototype,{constructor:{value:ye,writable:!0,configurable:!0}}),be&&N(ye,be)}function N(ye,be){return N=Object.setPrototypeOf||function(ee,Q){return ee.__proto__=Q,ee},N(ye,be)}function y(ye){var be=_();return function(){var ee=R(ye),Q;if(be){var le=R(this).constructor;Q=Reflect.construct(ee,arguments,le)}else Q=ee.apply(this,arguments);return d(this,Q)}}function d(ye,be){if(be&&(e(be)==="object"||typeof be=="function"))return be;if(be!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return h(ye)}function h(ye){if(ye===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ye}function _(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function R(ye){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(p){return p.__proto__||Object.getPrototypeOf(p)},R(ye)}function g(ye,be){var p=typeof Symbol<"u"&&ye[Symbol.iterator]||ye["@@iterator"];if(!p){if(Array.isArray(ye)||(p=P(ye))||be){p&&(ye=p);var ee=0,Q=function(){};return{s:Q,n:function(){return ee>=ye.length?{done:!0}:{done:!1,value:ye[ee++]}},e:function(ue){throw ue},f:Q}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 89In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var le=!0,G=!1,Y;return{s:function(){p=p.call(ye)},n:function(){var ue=p.next();return le=ue.done,ue},e:function(ue){G=!0,Y=ue},f:function(){try{!le&&p.return!=null&&p.return()}finally{if(G)throw Y}}}}function M(ye,be){return ae(ye)||te(ye,be)||P(ye,be)||H()}function H(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 90In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function P(ye,be){if(ye){if(typeof ye=="string")return F(ye,be);var p=Object.prototype.toString.call(ye).slice(8,-1);if(p==="Object"&&ye.constructor&&(p=ye.constructor.name),p==="Map"||p==="Set")return Array.from(ye);if(p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p))return F(ye,be)}}function F(ye,be){(be==null||be>ye.length)&&(be=ye.length);for(var p=0,ee=new Array(be);p<be;p++)ee[p]=ye[p];return ee}function te(ye,be){var p=ye==null?null:typeof Symbol<"u"&&ye[Symbol.iterator]||ye["@@iterator"];if(p!=null){var ee=[],Q=!0,le=!1,G,Y;try{for(p=p.call(ye);!(Q=(G=p.next()).done)&&(ee.push(G.value),!(be&&ee.length===be));Q=!0);}catch(E){le=!0,Y=E}finally{try{!Q&&p.return!=null&&p.return()}finally{if(le)throw Y}}return ee}}function ae(ye){if(Array.isArray(ye))return ye}function ie(ye,be){if(!(ye instanceof be))throw new TypeError("Cannot call a class as a function")}function se(ye,be){for(var p=0;p<be.length;p++){var ee=be[p];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(ye,ee.key,ee)}}function re(ye,be,p){return be&&se(ye.prototype,be),p&&se(ye,p),ye}var X=1e3,T=new WeakSet,b=function(){function ye(){ie(this,ye)}return re(ye,null,[{key:"create",value:function(p){var ee=p.data.annotationType;switch(ee){case a.AnnotationType.LINK:return new $(p);case a.AnnotationType.TEXT:return new W(p);case a.AnnotationType.WIDGET:var Q=p.data.fieldType;switch(Q){case"Tx":return new U(p);case"Btn":return p.data.radioButton?new pe(p):p.data.checkBox?new de(p):new Re(p);case"Ch":return new Z(p)}return new V(p);case a.AnnotationType.POPUP:return new z(p);case a.AnnotationType.FREETEXT:return new v(p);case a.AnnotationType.LINE:return new L(p);
90case a.AnnotationType.SQUARE:return new J(p);case a.AnnotationType.CIRCLE:return new ne(p);case a.AnnotationType.POLYLINE:return new oe(p);case a.AnnotationType.CARET:return new Te(p);case a.AnnotationType.INK:return new ke(p);case a.AnnotationType.POLYGON:return new he(p);case a.AnnotationType.HIGHLIGHT:return new Ee(p);case a.AnnotationType.UNDERLINE:return new Ie(p);case a.AnnotationType.SQUIGGLY:return new Le(p);case a.AnnotationType.STRIKEOUT:return new ce(p);case a.AnnotationType.STAMP:return new ge(p);case a.AnnotationType.FILEATTACHMENT:return new Ce(p);default:return new C(p)}}}]),ye}(),C=function(){function ye(be){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=p.isRenderable,Q=ee===void 0?!1:ee,le=p.ignoreBorder,G=le===void 0?!1:le,Y=p.createQuadrilaterals,E=Y===void 0?!1:Y;ie(this,ye),this.isRenderable=Q,this.data=be.data,this.layer=be.layer,this.page=be.page,this.viewport=be.viewport,this.linkService=be.linkService,this.downloadManager=be.downloadManager,this.imageResourcesPath=be.imageResourcesPath,this.renderForms=be.renderForms,this.svgFactory=be.svgFactory,this.annotationStorage=be.annotationStorage,this.enableScripting=be.enableScripting,this.hasJSActions=be.hasJSActions,this._fieldObjects=be.fieldObjects,this._mouseState=be.mouseState,Q&&(this.container=this._createContainer(G)),E&&(this.quadrilaterals=this._createQuadrilaterals(G))}return re(ye,[{key:"_createContainer",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,ee=this.data,Q=this.page,le=this.viewport,G=document.createElement("section"),Y=ee.rect[2]-ee.rect[0],E=ee.rect[3]-ee.rect[1];G.setAttribute("data-annotation-id",ee.id);var ue=a.Util.normalizeRect([ee.rect[0],Q.view[3]-ee.rect[1]+Q.view[1],ee.rect[2],Q.view[3]-ee.rect[3]+Q.view[1]]);if(ee.hasOwnCanvas){var Pe=le.transform.slice(),l=a.Util.singularValueDecompose2dScale(Pe),_e=M(l,2),Ae=_e[0],j=_e[1];Y=Math.ceil(Y*Ae),E=Math.ceil(E*j),ue[0]*=Ae,ue[1]*=j;for(var fe=0;fe<4;fe++)Pe[fe]=Math.sign(Pe[fe]);G.style.transform="matrix(".concat(Pe.join(","),")")}else G.style.transform="matrix(".concat(le.transform.join(","),")");if(G.style.transformOrigin="".concat(-ue[0],"px ").concat(-ue[1],"px"),!p&&ee.borderStyle.width>0){G.style.borderWidth="".concat(ee.borderStyle.width,"px"),ee.borderStyle.style!==a.AnnotationBorderStyleType.UNDERLINE&&(Y-=2*ee.borderStyle.width,E-=2*ee.borderStyle.width);var ve=ee.borderStyle.horizontalCornerRadius,Fe=ee.borderStyle.verticalCornerRadius;if(ve>0||Fe>0){var Me="".concat(ve,"px / ").concat(Fe,"px");G.style.borderRadius=Me}switch(ee.borderStyle.style){case a.AnnotationBorderStyleType.SOLID:G.style.borderStyle="solid";break;case a.AnnotationBorderStyleType.DASHED:G.style.borderStyle="dashed";break;case a.AnnotationBorderStyleType.BEVELED:(0,a.warn)("Unimplemented border style: beveled");break;case a.AnnotationBorderStyleType.INSET:(0,a.warn)("Unimplemented border style: inset");break;case a.AnnotationBorderStyleType.UNDERLINE:G.style.borderBottomStyle="solid";break}var De=ee.borderColor||ee.color||null;De?G.style.borderColor=a.Util.makeHexColor(ee.color[0]|0,ee.color[1]|0,ee.color[2]|0):G.style.borderWidth=0}return G.style.left="".concat(ue[0],"px"),G.style.top="".concat(ue[1],"px"),ee.hasOwnCanvas?G.style.width=G.style.height="auto":(G.style.width="".concat(Y,"px"),G.style.height="".concat(E,"px")),G}},{key:"_createQuadrilaterals",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!this.data.quadPoints)return null;var ee=[],Q=this.data.rect,le=g(this.data.quadPoints),G;try{for(le.s();!(G=le.n()).done;){var Y=G.value;this.data.rect=[Y[2].x,Y[2].y,Y[1].x,Y[1].y],ee.push(this._createContainer(p))}}catch(E){le.e(E)}finally{le.f()}return this.data.rect=Q,ee}},{key:"_createPopup",value:function(p,ee){var Q=this.container;this.quadrilaterals&&(p=p||this.quadrilaterals,Q=this.quadrilaterals[0]),p||(p=document.createElement("div"),p.style.height=Q.style.height,p.style.width=Q.style.width,Q.appendChild(p));var le=new A({container:Q,trigger:p,color:ee.color,titleObj:ee.titleObj,modificationDate:ee.modificationDate,contentsObj:ee.contentsObj,richText:ee.richText,hideWrapper:!0}),G=le.render();G.style.left=Q.style.width,Q.appendChild(G)}},{key:"_renderQuadrilaterals",value:function(p){var ee=g(this.quadrilaterals),Q;try{for(ee.s();!(Q=ee.n()).done;){var le=Q.value;le.className=p}}catch(G){ee.e(G)}finally{ee.f()}return this.quadrilaterals}},{key:"render",value:function(){(0,a.unreachable)("Abstract method `AnnotationElement.render` called")}},{key:"_getElementsByName",value:function(p){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,Q=[];if(this._fieldObjects){var le=this._fieldObjects[p];if(le){var G=g(le),Y;try{for(G.s();!(Y=G.n()).done;){var E=Y.value,ue=E.page,Pe=E.id,l=E.exportValues;if(ue!==-1&&Pe!==ee){var _e=typeof l=="string"?l:null,Ae=document.getElementById(Pe);if(Ae&&!T.has(Ae)){(0,a.warn)("_getElementsByName - element not allowed: ".concat(Pe));continue}Q.push({id:Pe,exportValue:_e,domElement:Ae})}}}catch(De){G.e(De)}finally{G.f()}}return Q}var j=g(document.getElementsByName(p)),fe;try{for(j.s();!(fe=j.n()).done;){var ve=fe.value,Fe=ve.id,Me=ve.exportValue;Fe!==ee&&T.has(ve)&&Q.push({id:Fe,exportValue:Me,domElement:ve})}}catch(De){j.e(De)}finally{j.f()}return Q}}],[{key:"platform",get:function(){var p=typeof navigator<"u"?navigator.platform:"";return(0,a.shadow)(this,"platform",{isWin:p.includes("Win"),isMac:p.includes("Mac")})}}]),ye}(),$=function(ye){S(p,ye);var be=y(p);function p(ee){var Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;ie(this,p);var le=!!(ee.data.url||ee.data.dest||ee.data.action||ee.data.isTooltipOnly||ee.data.resetForm||ee.data.actions&&(ee.data.actions.Action||ee.data.actions["Mouse Up"]||ee.data.actions["Mouse Down"]));return be.call(this,ee,{isRenderable:le,ignoreBorder:!!(Q!=null&&Q.ignoreBorder),createQuadrilaterals:!0})}return re(p,[{key:"render",value:function(){var Q=this.data,le=this.linkService,G=document.createElement("a");if(Q.url){var Y;le.addLinkAttributes||(0,a.warn)("LinkAnnotationElement.render - missing `addLinkAttributes`-method on the `linkService`-instance."),(Y=le.addLinkAttributes)===null||Y===void 0||Y.call(le,G,Q.url,Q.newWindow)}else if(Q.action)this._bindNamedAction(G,Q.action);else if(Q.dest)this._bindLink(G,Q.dest);else{var E=!1;Q.actions&&(Q.actions.Action||Q.actions["Mouse Up"]||Q.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(E=!0,this._bindJSAction(G,Q)),Q.resetForm?this._bindResetFormAction(G,Q.resetForm):E||this._bindLink(G,"")}
90return this.quadrilaterals?this._renderQuadrilaterals("linkAnnotation").map(function(ue,Pe){var l=Pe===0?G:G.cloneNode();return ue.appendChild(l),ue}):(this.container.className="linkAnnotation",this.container.appendChild(G),this.container)}},{key:"_bindLink",value:function(Q,le){var G=this;Q.href=this.linkService.getDestinationHash(le),Q.onclick=function(){return le&&G.linkService.goToDestination(le),!1},(le||le==="")&&(Q.className="internalLink")}},{key:"_bindNamedAction",value:function(Q,le){var G=this;Q.href=this.linkService.getAnchorUrl(""),Q.onclick=function(){return G.linkService.executeNamedAction(le),!1},Q.className="internalLink"}},{key:"_bindJSAction",value:function(Q,le){var G=this;Q.href=this.linkService.getAnchorUrl("");for(var Y=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]),E=function(){var Ae=Pe[ue],j=Y.get(Ae);if(!j)return"continue";Q[j]=function(){var fe;return(fe=G.linkService.eventBus)===null||fe===void 0||fe.dispatch("dispatcheventinsandbox",{source:G,detail:{id:le.id,name:Ae}}),!1}},ue=0,Pe=Object.keys(le.actions);ue<Pe.length;ue++)var l=E();Q.onclick||(Q.onclick=function(){return!1}),Q.className="internalLink"}},{key:"_bindResetFormAction",value:function(Q,le){var G=this,Y=Q.onclick;if(Y||(Q.href=this.linkService.getAnchorUrl("")),Q.className="internalLink",!this._fieldObjects){(0,a.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),Y||(Q.onclick=function(){return!1});return}Q.onclick=function(){Y&&Y();var E=le.fields,ue=le.refs,Pe=le.include,l=[];if(E.length!==0||ue.length!==0){var _e=new Set(ue),Ae=g(E),j;try{for(Ae.s();!(j=Ae.n()).done;){var fe=j.value,ve=G._fieldObjects[fe]||[],Fe=g(ve),Me;try{for(Fe.s();!(Me=Fe.n()).done;){var De=Me.value.id;_e.add(De)}}catch(ze){Fe.e(ze)}finally{Fe.f()}}}catch(ze){Ae.e(ze)}finally{Ae.f()}for(var We=0,Xe=Object.values(G._fieldObjects);We<Xe.length;We++){var He=Xe[We],Ve=g(He),Ze;try{for(Ve.s();!(Ze=Ve.n()).done;){var at=Ze.value;_e.has(at.id)===Pe&&l.push(at)}}catch(ze){Ve.e(ze)}finally{Ve.f()}}}else for(var it=0,_t=Object.values(G._fieldObjects);it<_t.length;it++){var Tt=_t[it];l.push.apply(l,D(Tt))}for(var ot=G.annotationStorage,ht=[],st=0,bt=l;st<bt.length;st++){var pt=bt[st],wt=pt.id;switch(ht.push(wt),pt.type){case"text":{var we=pt.defaultValue||"";ot.setValue(wt,{value:we,valueAsString:we});break}case"checkbox":case"radiobutton":{var Ue=pt.defaultValue===pt.exportValues;ot.setValue(wt,{value:Ue});break}case"combobox":case"listbox":{var Se=pt.defaultValue||"";ot.setValue(wt,{value:Se});break}default:continue}var Oe=document.getElementById(wt);!Oe||!T.has(Oe)||Oe.dispatchEvent(new Event("resetform"))}if(G.enableScripting){var qe;(qe=G.linkService.eventBus)===null||qe===void 0||qe.dispatch("dispatcheventinsandbox",{source:G,detail:{id:"app",ids:ht,name:"ResetForm"}})}return!1}}}]),p}(C),W=function(ye){S(p,ye);var be=y(p);function p(ee){var Q,le,G;ie(this,p);var Y=!!(ee.data.hasPopup||(Q=ee.data.titleObj)!==null&&Q!==void 0&&Q.str||(le=ee.data.contentsObj)!==null&&le!==void 0&&le.str||(G=ee.data.richText)!==null&&G!==void 0&&G.str);return be.call(this,ee,{isRenderable:Y})}return re(p,[{key:"render",value:function(){this.container.className="textAnnotation";var Q=document.createElement("img");return Q.style.height=this.container.style.height,Q.style.width=this.container.style.width,Q.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",Q.alt="[{{type}} Annotation]",Q.dataset.l10nId="text_annotation_type",Q.dataset.l10nArgs=JSON.stringify({type:this.data.name}),this.data.hasPopup||this._createPopup(Q,this.data),this.container.appendChild(Q),this.container}}]),p}(C),V=function(ye){S(p,ye);var be=y(p);function p(){return ie(this,p),be.apply(this,arguments)}return re(p,[{key:"render",value:function(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}},{key:"_getKeyModifier",value:function(Q){var le=C.platform,G=le.isWin,Y=le.isMac;return G&&Q.ctrlKey||Y&&Q.metaKey}},{key:"_setEventListener",value:function(Q,le,G,Y){var E=this;le.includes("mouse")?Q.addEventListener(le,function(ue){var Pe;(Pe=E.linkService.eventBus)===null||Pe===void 0||Pe.dispatch("dispatcheventinsandbox",{source:E,detail:{id:E.data.id,name:G,value:Y(ue),shift:ue.shiftKey,modifier:E._getKeyModifier(ue)}})}):Q.addEventListener(le,function(ue){var Pe;(Pe=E.linkService.eventBus)===null||Pe===void 0||Pe.dispatch("dispatcheventinsandbox",{source:E,detail:{id:E.data.id,name:G,value:ue.target.checked}})})}},{key:"_setEventListeners",value:function(Q,le,G){var Y=g(le),E;try{for(Y.s();!(E=Y.n()).done;){var ue,Pe=M(E.value,2),l=Pe[0],_e=Pe[1];(_e==="Action"||(ue=this.data.actions)!==null&&ue!==void 0&&ue[_e])&&this._setEventListener(Q,l,_e,G)}}catch(Ae){Y.e(Ae)}finally{Y.f()}}}
90,{key:"_setBackgroundColor",value:function(Q){var le=this.data.backgroundColor||null;Q.style.backgroundColor=le===null?"transparent":a.Util.makeHexColor(le[0],le[1],le[2])}},{key:"_dispatchEventFromSandbox",value:function(Q,le){for(var G=this,Y=function(j,fe,ve){var Fe=ve.detail[j];ve.target.style[fe]=u.ColorConverters["".concat(Fe[0],"_HTML")](Fe.slice(1))},E={display:function(j){var fe=j.detail.display%2===1;j.target.style.visibility=fe?"hidden":"visible",G.annotationStorage.setValue(G.data.id,{hidden:fe,print:j.detail.display===0||j.detail.display===3})},print:function(j){G.annotationStorage.setValue(G.data.id,{print:j.detail.print})},hidden:function(j){j.target.style.visibility=j.detail.hidden?"hidden":"visible",G.annotationStorage.setValue(G.data.id,{hidden:j.detail.hidden})},focus:function(j){setTimeout(function(){return j.target.focus({preventScroll:!1})},0)},userName:function(j){j.target.title=j.detail.userName},readonly:function(j){j.detail.readonly?j.target.setAttribute("readonly",""):j.target.removeAttribute("readonly")},required:function(j){j.detail.required?j.target.setAttribute("required",""):j.target.removeAttribute("required")},bgColor:function(j){Y("bgColor","backgroundColor",j)},fillColor:function(j){Y("fillColor","backgroundColor",j)},fgColor:function(j){Y("fgColor","color",j)},textColor:function(j){Y("textColor","color",j)},borderColor:function(j){Y("borderColor","borderColor",j)},strokeColor:function(j){Y("strokeColor","borderColor",j)}},ue=0,Pe=Object.keys(le.detail);ue<Pe.length;ue++){var l=Pe[ue],_e=Q[l]||E[l];_e&&_e(le)}}}]),p}(C),U=function(ye){S(p,ye);var be=y(p);function p(ee){ie(this,p);var Q=ee.renderForms||!ee.data.hasAppearance&&!!ee.data.fieldValue;return be.call(this,ee,{isRenderable:Q})}return re(p,[{key:"setPropertyOnSiblings",value:function(Q,le,G,Y){var E=this.annotationStorage,ue=g(this._getElementsByName(Q.name,Q.id)),Pe;try{for(ue.s();!(Pe=ue.n()).done;){var l=Pe.value;l.domElement&&(l.domElement[le]=G),E.setValue(l.id,I({},Y,G))}}catch(_e){ue.e(_e)}finally{ue.f()}}},{key:"render",value:function(){var Q=this,le=this.annotationStorage,G=this.data.id;this.container.className="textWidgetAnnotation";var Y=null;if(this.renderForms){var E=le.getValue(G,{value:this.data.fieldValue,valueAsString:this.data.fieldValue}),ue=E.valueAsString||E.value||"",Pe={userValue:null,formattedValue:null,beforeInputSelectionRange:null,beforeInputValue:null};this.data.multiLine?(Y=document.createElement("textarea"),Y.textContent=ue):(Y=document.createElement("input"),Y.type="text",Y.setAttribute("value",ue)),T.add(Y),Y.disabled=this.data.readOnly,Y.name=this.data.fieldName,Y.tabIndex=X,Pe.userValue=ue,Y.setAttribute("id",G),Y.addEventListener("input",function(ve){le.setValue(G,{value:ve.target.value}),Q.setPropertyOnSiblings(Y,"value",ve.target.value,"value")}),Y.addEventListener("resetform",function(ve){var Fe=Q.data.defaultFieldValue||"";Y.value=Pe.userValue=Fe,delete Pe.formattedValue});var l=function(Fe){Pe.formattedValue&&(Fe.target.value=Pe.formattedValue),Fe.target.scrollLeft=0,Pe.beforeInputSelectionRange=null};if(this.enableScripting&&this.hasJSActions){var _e;Y.addEventListener("focus",function(ve){Pe.userValue&&(ve.target.value=Pe.userValue)}),Y.addEventListener("updatefromsandbox",function(ve){var Fe={value:function(De){Pe.userValue=De.detail.value||"",le.setValue(G,{value:Pe.userValue.toString()}),Pe.formattedValue||(De.target.value=Pe.userValue)},valueAsString:function(De){Pe.formattedValue=De.detail.valueAsString||"",De.target!==document.activeElement&&(De.target.value=Pe.formattedValue),le.setValue(G,{formattedValue:Pe.formattedValue})},selRange:function(De){var We=M(De.detail.selRange,2),Xe=We[0],He=We[1];Xe>=0&&He<De.target.value.length&&De.target.setSelectionRange(Xe,He)}};Q._dispatchEventFromSandbox(Fe,ve)}),Y.addEventListener("keydown",function(ve){var Fe;Pe.beforeInputValue=ve.target.value;var Me=-1;ve.key==="Escape"?Me=0:ve.key==="Enter"?Me=2:ve.key==="Tab"&&(Me=3),Me!==-1&&(Pe.userValue=ve.target.value,(Fe=Q.linkService.eventBus)===null||Fe===void 0||Fe.dispatch("dispatcheventinsandbox",{source:Q,detail:{id:G,name:"Keystroke",value:ve.target.value,willC
90ommit:!0,commitKey:Me,selStart:ve.target.selectionStart,selEnd:ve.target.selectionEnd}}))});var Ae=l;l=null,Y.addEventListener("blur",function(ve){if(Q._mouseState.isDown){var Fe;Pe.userValue=ve.target.value,(Fe=Q.linkService.eventBus)===null||Fe===void 0||Fe.dispatch("dispatcheventinsandbox",{source:Q,detail:{id:G,name:"Keystroke",value:ve.target.value,willCommit:!0,commitKey:1,selStart:ve.target.selectionStart,selEnd:ve.target.selectionEnd}})}Ae(ve)}),Y.addEventListener("mousedown",function(ve){Pe.beforeInputValue=ve.target.value,Pe.beforeInputSelectionRange=null}),Y.addEventListener("keyup",function(ve){ve.target.selectionStart===ve.target.selectionEnd&&(Pe.beforeInputSelectionRange=null)}),Y.addEventListener("select",function(ve){Pe.beforeInputSelectionRange=[ve.target.selectionStart,ve.target.selectionEnd]}),(_e=this.data.actions)!==null&&_e!==void 0&&_e.Keystroke&&Y.addEventListener("input",function(ve){var Fe,Me=-1,De=-1;if(Pe.beforeInputSelectionRange){var We=M(Pe.beforeInputSelectionRange,2);Me=We[0],De=We[1]}(Fe=Q.linkService.eventBus)===null||Fe===void 0||Fe.dispatch("dispatcheventinsandbox",{source:Q,detail:{id:G,name:"Keystroke",value:Pe.beforeInputValue,change:ve.data,willCommit:!1,selStart:Me,selEnd:De}})}),this._setEventListeners(Y,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],function(ve){return ve.target.value})}if(l&&Y.addEventListener("blur",l),this.data.maxLen!==null&&(Y.maxLength=this.data.maxLen),this.data.comb){var j=this.data.rect[2]-this.data.rect[0],fe=j/this.data.maxLen;Y.classList.add("comb"),Y.style.letterSpacing="calc(".concat(fe,"px - 1ch)")}}else Y=document.createElement("div"),Y.textContent=this.data.fieldValue,Y.style.verticalAlign="middle",Y.style.display="table-cell";return this._setTextStyle(Y),this._setBackgroundColor(Y),this.container.appendChild(Y),this.container}},{key:"_setTextStyle",value:function(Q){var le=["left","center","right"],G=this.data.defaultAppearanceData,Y=G.fontSize,E=G.fontColor,ue=Q.style;Y&&(ue.fontSize="".concat(Y,"px")),ue.color=a.Util.makeHexColor(E[0],E[1],E[2]),this.data.textAlignment!==null&&(ue.textAlign=le[this.data.textAlignment])}}]),p}(V),de=function(ye){S(p,ye);var be=y(p);function p(ee){return ie(this,p),be.call(this,ee,{isRenderable:ee.renderForms})}return re(p,[{key:"render",value:function(){var Q=this,le=this.annotationStorage,G=this.data,Y=G.id,E=le.getValue(Y,{value:G.exportValue===G.fieldValue}).value;typeof E=="string"&&(E=E!=="Off",le.setValue(Y,{value:E})),this.container.className="buttonWidgetAnnotation checkBox";var ue=document.createElement("input");return T.add(ue),ue.disabled=G.readOnly,ue.type="checkbox",ue.name=G.fieldName,E&&ue.setAttribute("checked",!0),ue.setAttribute("id",Y),ue.setAttribute("exportValue",G.exportValue),ue.tabIndex=X,ue.addEventListener("change",function(Pe){var l=Pe.target,_e=l.name,Ae=l.checked,j=g(Q._getElementsByName(_e,Y)),fe;try{for(j.s();!(fe=j.n()).done;){var ve=fe.value,Fe=Ae&&ve.exportValue===G.exportValue;ve.domElement&&(ve.domElement.checked=Fe),le.setValue(ve.id,{value:Fe})}}catch(Me){j.e(Me)}finally{j.f()}le.setValue(Y,{value:Ae})}),ue.addEventListener("resetform",function(Pe){var l=G.defaultFieldValue||"Off";Pe.target.checked=l===G.exportValue}),this.enableScripting&&this.hasJSActions&&(ue.addEventListener("updatefromsandbox",function(Pe){var l={value:function(Ae){Ae.target.checked=Ae.detail.value!=="Off",le.setValue(Y,{value:Ae.target.checked})}};Q._dispatchEventFromSandbox(l,Pe)}),this._setEventListeners(ue,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],function(Pe){return Pe.target.checked})),this._setBackgroundColor(ue),this.container.appendChild(ue),this.container}}]),p}(V),pe=function(ye){S(p,ye);var be=y(p);function p(ee){return ie(this,p),be.call(this,ee,{isRenderable:ee.renderForms})}return re(p,[{key:"render",value:function(){var Q=this;this.container.className="buttonWidgetAnnotation radioButton";var le=this.annotationStorage,G=this.data,Y=G.id,E=le.getValue(Y,{value:G.fieldValue===G.buttonValue}).value;typeof E=="string"&&(E=E!==G.buttonValue,le.setValue(Y,{value:E}));var ue=document.createElement("input");if(T.add(ue),ue.disabled=G.readOnly,ue.type="radio",ue.name=G.fieldName,E&&ue.setAttribute("checked",!0),ue.setAttribute("id",Y),ue.tabIndex=X,ue.addEventListener("change",function(l){var _e=l.target,Ae=_e.name,j=_e.checked,fe=g(Q._getElementsByName(Ae,Y)),ve;
90try{for(fe.s();!(ve=fe.n()).done;){var Fe=ve.value;le.setValue(Fe.id,{value:!1})}}catch(Me){fe.e(Me)}finally{fe.f()}le.setValue(Y,{value:j})}),ue.addEventListener("resetform",function(l){var _e=G.defaultFieldValue;l.target.checked=_e!=null&&_e===G.buttonValue}),this.enableScripting&&this.hasJSActions){var Pe=G.buttonValue;ue.addEventListener("updatefromsandbox",function(l){var _e={value:function(j){var fe=Pe===j.detail.value,ve=g(Q._getElementsByName(j.target.name)),Fe;try{for(ve.s();!(Fe=ve.n()).done;){var Me=Fe.value,De=fe&&Me.id===Y;Me.domElement&&(Me.domElement.checked=De),le.setValue(Me.id,{value:De})}}catch(We){ve.e(We)}finally{ve.f()}}};Q._dispatchEventFromSandbox(_e,l)}),this._setEventListeners(ue,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],function(l){return l.target.checked})}return this._setBackgroundColor(ue),this.container.appendChild(ue),this.container}}]),p}(V),Re=function(ye){S(p,ye);var be=y(p);function p(ee){return ie(this,p),be.call(this,ee,{ignoreBorder:ee.data.hasAppearance})}return re(p,[{key:"render",value:function(){var Q=k(R(p.prototype),"render",this).call(this);return Q.className="buttonWidgetAnnotation pushButton",this.data.alternativeText&&(Q.title=this.data.alternativeText),Q}}]),p}($),Z=function(ye){S(p,ye);var be=y(p);function p(ee){return ie(this,p),be.call(this,ee,{isRenderable:ee.renderForms})}return re(p,[{key:"render",value:function(){var Q=this;this.container.className="choiceWidgetAnnotation";var le=this.annotationStorage,G=this.data.id;le.getValue(G,{value:this.data.fieldValue.length>0?this.data.fieldValue[0]:void 0});var Y=this.data.defaultAppearanceData.fontSize;Y||(Y=9);var E="calc(".concat(Y,"px * var(--zoom-factor))"),ue=document.createElement("select");T.add(ue),ue.disabled=this.data.readOnly,ue.name=this.data.fieldName,ue.setAttribute("id",G),ue.tabIndex=X,ue.style.fontSize="".concat(Y,"px"),this.data.combo||(ue.size=this.data.options.length,this.data.multiSelect&&(ue.multiple=!0)),ue.addEventListener("resetform",function(ve){var Fe=Q.data.defaultFieldValue,Me=g(ue.options),De;try{for(Me.s();!(De=Me.n()).done;){var We=De.value;We.selected=We.value===Fe}}catch(Xe){Me.e(Xe)}finally{Me.f()}});var Pe=g(this.data.options),l;try{for(Pe.s();!(l=Pe.n()).done;){var _e=l.value,Ae=document.createElement("option");Ae.textContent=_e.displayValue,Ae.value=_e.exportValue,this.data.combo&&(Ae.style.fontSize=E),this.data.fieldValue.includes(_e.exportValue)&&Ae.setAttribute("selected",!0),ue.appendChild(Ae)}}catch(ve){Pe.e(ve)}finally{Pe.f()}var j=function(Fe,Me){var De=Me?"value":"textContent",We=Fe.target.options;return Fe.target.multiple?Array.prototype.filter.call(We,function(Xe){return Xe.selected}).map(function(Xe){return Xe[De]}):We.selectedIndex===-1?null:We[We.selectedIndex][De]},fe=function(Fe){var Me=Fe.target.options;return Array.prototype.map.call(Me,function(De){return{displayValue:De.textContent,exportValue:De.value}})};return this.enableScripting&&this.hasJSActions?(ue.addEventListener("updatefromsandbox",function(ve){var Fe={value:function(De){var We=De.detail.value,Xe=new Set(Array.isArray(We)?We:[We]),He=g(ue.options),Ve;try{for(He.s();!(Ve=He.n()).done;){var Ze=Ve.value;Ze.selected=Xe.has(Ze.value)}}catch(at){He.e(at)}finally{He.f()}le.setValue(G,{value:j(De,!0)})},multipleSelection:function(De){ue.multiple=!0},remove:function(De){var We=ue.options,Xe=De.detail.remove;if(We[Xe].selected=!1,ue.remove(Xe),We.length>0){var He=Array.prototype.findIndex.call(We,function(Ve){return Ve.selected});He===-1&&(We[0].selected=!0)}le.setValue(G,{value:j(De,!0),items:fe(De)})},clear:function(De){for(;ue.length!==0;)ue.remove(0);le.setValue(G,{value:null,items:[]})},insert:function(De){var We=De.detail.insert,Xe=We.index,He=We.displayValue,Ve=We.exportValue,Ze=document.createElement("option");Ze.textContent=He,Ze.value=Ve,ue.insertBefore(Ze,ue.children[Xe]),le.setValue(G,{value:j(De,!0),items:fe(De)})},items:function(De){for(var We=De.detail.items;ue.length!==0;)ue.remove(0);var Xe=g(We),He;try{for(Xe.s();!(He=Xe.n()).done;){var Ve=He.value,Ze=Ve.displayValue,at=Ve.exportValue,it=document.createElement("option");
90it.textContent=Ze,it.value=at,ue.appendChild(it)}}catch(_t){Xe.e(_t)}finally{Xe.f()}ue.options.length>0&&(ue.options[0].selected=!0),le.setValue(G,{value:j(De,!0),items:fe(De)})},indices:function(De){var We=new Set(De.detail.indices),Xe=g(De.target.options),He;try{for(Xe.s();!(He=Xe.n()).done;){var Ve=He.value;Ve.selected=We.has(Ve.index)}}catch(Ze){Xe.e(Ze)}finally{Xe.f()}le.setValue(G,{value:j(De,!0)})},editable:function(De){De.target.disabled=!De.detail.editable}};Q._dispatchEventFromSandbox(Fe,ve)}),ue.addEventListener("input",function(ve){var Fe,Me=j(ve,!0),De=j(ve,!1);le.setValue(G,{value:Me}),(Fe=Q.linkService.eventBus)===null||Fe===void 0||Fe.dispatch("dispatcheventinsandbox",{source:Q,detail:{id:G,name:"Keystroke",value:De,changeEx:Me,willCommit:!0,commitKey:1,keyDown:!1}})}),this._setEventListeners(ue,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"]],function(ve){return ve.target.checked})):ue.addEventListener("input",function(ve){le.setValue(G,{value:j(ve)})}),this._setBackgroundColor(ue),this.container.appendChild(ue),this.container}}]),p}(V),z=function(ye){S(p,ye);var be=y(p);function p(ee){var Q,le,G;ie(this,p);var Y=!!((Q=ee.data.titleObj)!==null&&Q!==void 0&&Q.str||(le=ee.data.contentsObj)!==null&&le!==void 0&&le.str||(G=ee.data.richText)!==null&&G!==void 0&&G.str);return be.call(this,ee,{isRenderable:Y})}return re(p,[{key:"render",value:function(){var Q=["Line","Square","Circle","PolyLine","Polygon","Ink"];if(this.container.className="popupAnnotation",Q.includes(this.data.parentType))return this.container;var le='[data-annotation-id="'.concat(this.data.parentId,'"]'),G=this.layer.querySelectorAll(le);if(G.length===0)return this.container;var Y=new A({container:this.container,trigger:Array.from(G),color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText}),E=this.page,ue=a.Util.normalizeRect([this.data.parentRect[0],E.view[3]-this.data.parentRect[1]+E.view[1],this.data.parentRect[2],E.view[3]-this.data.parentRect[3]+E.view[1]]),Pe=ue[0]+this.data.parentRect[2]-this.data.parentRect[0],l=ue[1];return this.container.style.transformOrigin="".concat(-Pe,"px ").concat(-l,"px"),this.container.style.left="".concat(Pe,"px"),this.container.style.top="".concat(l,"px"),this.container.appendChild(Y.render()),this.container}}]),p}(C),A=function(){function ye(be){ie(this,ye),this.container=be.container,this.trigger=be.trigger,this.color=be.color,this.titleObj=be.titleObj,this.modificationDate=be.modificationDate,this.contentsObj=be.contentsObj,this.richText=be.richText,this.hideWrapper=be.hideWrapper||!1,this.pinned=!1}return re(ye,[{key:"render",value:function(){var p,ee,Q=.7,le=document.createElement("div");le.className="popupWrapper",this.hideElement=this.hideWrapper?le:this.container,this.hideElement.hidden=!0;var G=document.createElement("div");G.className="popup";var Y=this.color;if(Y){var E=Q*(255-Y[0])+Y[0],ue=Q*(255-Y[1])+Y[1],Pe=Q*(255-Y[2])+Y[2];G.style.backgroundColor=a.Util.makeHexColor(E|0,ue|0,Pe|0)}var l=document.createElement("h1");l.dir=this.titleObj.dir,l.textContent=this.titleObj.str,G.appendChild(l);var _e=o.PDFDateString.toDateObject(this.modificationDate);if(_e){var Ae=document.createElement("span");Ae.className="popupDate",Ae.textContent="{{date}}, {{time}}",Ae.dataset.l10nId="annotation_date_string",Ae.dataset.l10nArgs=JSON.stringify({date:_e.toLocaleDateString(),time:_e.toLocaleTimeString()}),G.appendChild(Ae)}if((p=this.richText)!==null&&p!==void 0&&p.str&&(!((ee=this.contentsObj)!==null&&ee!==void 0&&ee.str)||this.contentsObj.str===this.richText.str))f.XfaLayer.render({xfaHtml:this.richText.html,intent:"richText",div:G}),G.lastChild.className="richText popupContent";else{var j=this._formatContents(this.contentsObj);G.appendChild(j)}Array.isArray(this.trigger)||(this.trigger=[this.trigger]);var fe=g(this.trigger),ve;try{for(fe.s();!(ve=fe.n()).done;){var Fe=ve.value;Fe.addEventListener("click",this._toggle.bind(this)),Fe.addEventListener("mouseover",this._show.bind(this,!1)),Fe.addEventListener("mouseout",this._hide.bind(this,!1))}}catch(Me){fe.e(Me)}finally{fe.f()}return G.addEventListener("click",this._hide.bind(this,!0)),le.appendChild(G),le}},{key:"_formatContents",value:function(p){var ee=p.str,Q=p.dir,le=document.createElement("p");le.className="popupContent",le.dir=Q;for(var G=ee.split(/(?:\r\n?|\n)/),Y=0,E=G.length;Y<E;++Y){var ue=G[Y];le.appendChild(document.createTextNode(ue)),Y<E-1&&le.appendChild(document.createElement("br"))}return le}},{key:"_toggle",value:function(){this.pinned?this._hide(!0):this._show(!0)}},{key:"_show",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;p&&(this.pinned=!0),this.hideElement.hidden&&(this.hideElement.hidden=!1,this.container.style.zIndex+=1)}},{key:"_hide",value:function(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;p&&(this.pinned=!1),!this.hideElement.hidden&&!this.pinned&&(this.hideElement.hidden=!0,this.container.style.zIndex-=1)}}]),ye}(),v=function(ye){S(p,ye);var be=y(p);function p(ee){var Q,le,G;ie(this,p);var Y=!!(ee.data.hasPopup||(Q=ee.data.titleObj)!==null&&Q!==void 0&&Q.str||(le=ee.data.contentsObj)!==null&&le!==void 0&&le.str||(G=ee.data.r
vendor: 4,449 bytes, line 90
90ichText)!==null&&G!==void 0&&G.str);return be.call(this,ee,{isRenderable:Y,ignoreBorder:!0})}return re(p,[{key:"render",value:function(){return this.container.className="freeTextAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),p}(C),L=function(ye){S(p,ye);var be=y(p);function p(ee){var Q,le,G;ie(this,p);var Y=!!(ee.data.hasPopup||(Q=ee.data.titleObj)!==null&&Q!==void 0&&Q.str||(le=ee.data.contentsObj)!==null&&le!==void 0&&le.str||(G=ee.data.richText)!==null&&G!==void 0&&G.str);return be.call(this,ee,{isRenderable:Y,ignoreBorder:!0})}return re(p,[{key:"render",value:function(){this.container.className="lineAnnotation";var Q=this.data,le=Q.rect[2]-Q.rect[0],G=Q.rect[3]-Q.rect[1],Y=this.svgFactory.create(le,G),E=this.svgFactory.createElement("svg:line");return E.setAttribute("x1",Q.rect[2]-Q.lineCoordinates[0]),E.setAttribute("y1",Q.rect[3]-Q.lineCoordinates[1]),E.setAttribute("x2",Q.rect[2]-Q.lineCoordinates[2]),E.setAttribute("y2",Q.rect[3]-Q.lineCoordinates[3]),E.setAttribute("stroke-width",Q.borderStyle.width||1),E.setAttribute("stroke","transparent"),E.setAttribute("fill","transparent"),Y.appendChild(E),this.container.append(Y),this._createPopup(E,Q),this.container}}]),p}(C),J=function(ye){S(p,ye);var be=y(p);function p(ee){var Q,le,G;ie(this,p);var Y=!!(ee.data.hasPopup||(Q=ee.data.titleObj)!==null&&Q!==void 0&&Q.str||(le=ee.data.contentsObj)!==null&&le!==void 0&&le.str||(G=ee.data.richText)!==null&&G!==void 0&&G.str);return be.call(this,ee,{isRenderable:Y,ignoreBorder:!0})}return re(p,[{key:"render",value:function(){this.container.className="squareAnnotation";var Q=this.data,le=Q.rect[2]-Q.rect[0],G=Q.rect[3]-Q.rect[1],Y=this.svgFactory.create(le,G),E=Q.borderStyle.width,ue=this.svgFactory.createElement("svg:rect");return ue.setAttribute("x",E/2),ue.setAttribute("y",E/2),ue.setAttribute("width",le-E),ue.setAttribute("height",G-E),ue.setAttribute("stroke-width",E||1),ue.setAttribute("stroke","transparent"),ue.setAttribute("fill","transparent"),Y.appendChild(ue),this.container.append(Y),this._createPopup(ue,Q),this.container}}]),p}(C),ne=function(ye){S(p,ye);var be=y(p);function p(ee){var Q,le,G;ie(this,p);var Y=!!(ee.data.hasPopup||(Q=ee.data.titleObj)!==null&&Q!==void 0&&Q.str||(le=ee.data.contentsObj)!==null&&le!==void 0&&le.str||(G=ee.data.richText)!==null&&G!==void 0&&G.str);return be.call(this,ee,{isRenderable:Y,ignoreBorder:!0})}return re(p,[{key:"render",value:function(){this.container.className="circleAnnotation";var Q=this.data,le=Q.rect[2]-Q.rect[0],G=Q.rect[3]-Q.rect[1],Y=this.svgFactory.create(le,G),E=Q.borderStyle.width,ue=this.svgFactory.createElement("svg:ellipse");return ue.setAttribute("cx",le/2),ue.setAttribute("cy",G/2),ue.setAttribute("rx",le/2-E/2),ue.setAttribute("ry",G/2-E/2),ue.setAttribute("stroke-width",E||1),ue.setAttribute("stroke","transparent"),ue.setAttribute("fill","transparent"),Y.appendChild(ue),this.container.append(Y),this._createPopup(ue,Q),this.container}}]),p}(C),oe=function(ye){S(p,ye);var be=y(p);function p(ee){var Q,le,G,Y;ie(this,p);var E=!!(ee.data.hasPopup||(Q=ee.data.titleObj)!==null&&Q!==void 0&&Q.str||(le=ee.data.contentsObj)!==null&&le!==void 0&&le.str||(G=ee.data.richText)!==null&&G!==void 0&&G.str);return Y=be.call(this,ee,{isRenderable:E,ignoreBorder:!0}),Y.containerClassName="polylineAnnotation",Y.svgElementName="svg:polyline",Y}return re(p,[{key:"render",value:function(){this.container.className=this.containerClassName;var Q=this.data,le=Q.rect[2]-Q.rect[0],G=Q.rect[3]-Q.rect[1],Y=this.svgFactory.create(le,G),E=[],ue=g(Q.vertices),Pe;try{for(ue.s();!(Pe=ue.n()).done;){var l=Pe.value,_e=l.x-Q.rect[0],Ae=Q.rect[3]-l.y;E.push(_e+","+Ae)}}catch(fe){ue.e(fe)}finally{ue.f()}E=E.join(" ");var j=this.svgFactory.createElement(this.svgElementName);return j.setAttribute("points",E),j.setAttribute("stroke-width",Q.borderStyle.width||1),j.setAttribute("stroke","transparent"),j.setAttribute("fill","transparent"),Y.appendChild(j),this.container.append(Y),this._createPopup(j,Q),this.container}}]),p}(C),he=function(ye){S(p,ye);var be=y(p);function p(ee){var Q;return ie(this,p),Q=be.call(this,ee),Q.containerClassName="polygonAnnotation",Q.svgElementName="svg:polygon",Q}return p}(oe),Te=function(ye){S(p,ye);var be=y(p);function p(ee){var Q,le,G;ie(this,p);var Y=!!(ee.data.hasPopup||(Q=ee.data.titleObj)!==null&&Q!==void 0&&Q.str||(le=ee.data.contentsObj)!==null&&le!==void 0&&le.str||(G=ee.data.r
90ichText)!==null&&G!==void 0&&G.str);return be.call(this,ee,{isRenderable:Y,ignoreBorder:!0})}return re(p,[{key:"render",value:function(){return this.container.className="caretAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}]),p}(C),ke=function(ye){S(p,ye);var be=y(p);function p(ee){var Q,le,G,Y;ie(this,p);var E=!!(ee.data.hasPopup||(Q=ee.data.titleObj)!==null&&Q!==void 0&&Q.str||(le=ee.data.contentsObj)!==null&&le!==void 0&&le.str||(G=ee.data.richText)!==null&&G!==void 0&&G.str);return Y=be.call(this,ee,{isRenderable:E,ignoreBorder:!0}),Y.containerClassName="inkAnnotation",Y.svgElementName="svg:polyline",Y}return re(p,[{key:"render",value:function(){this.container.className=this.containerClassName;var Q=this.data,le=Q.rect[2]-Q.rect[0],G=Q.rect[3]-Q.rect[1],Y=this.svgFactory.create(le,G),E=g(Q.inkLists),ue;try{for(E.s();!(ue=E.n()).done;){var Pe=ue.value,l=[],_e=g(Pe),Ae;try{for(_e.s();!(Ae=_e.n()).done;){var j=Ae.value,fe=j.x-Q.rect[0],ve=Q.rect[3]-j.y;l.push("".concat(fe,",").concat(ve))}}catch(Me){_e.e(Me)}finally{_e.f()}l=l.join(" ");var Fe=this.svgFactory.createElement(this.svgElementName);Fe.setAttribute("points",l),Fe.setAttribute("stroke-width",Q.borderStyle.width||1),Fe.setAttribute("stroke","transparent"),Fe.setAttribute("fill","transparent"),this._createPopup(Fe,Q),Y.appendChild(Fe)}}catch(Me){E.e(Me)}finally{E.f()}return this.container.append(Y),this.container}}]),p}(C),Ee=function(ye){S(p,ye);var be=y(p);function p(ee){var Q,le,G;ie(this,p);var Y=!!(ee.data.hasPopup||(Q=ee.data.titleObj)!==null&&Q!==void 0&&Q.str||(le=ee.data.contentsObj)!==null&&le!==void 0&&le.str||(G=ee.data.richText)!==null&&G!==void 0&&G.str);return be.call(this,ee,{isRenderable:Y,ignoreBorder:!0,createQuadrilaterals:!0})}return re(p,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("highlightAnnotation"):(this.container.className="highlightAnnotation",this.container)}}]),p}(C),Ie=function(ye){S(p,ye);var be=y(p);function p(ee){var Q,le,G;ie(this,p);var Y=!!(ee.data.hasPopup||(Q=ee.data.titleObj)!==null&&Q!==void 0&&Q.str||(le=ee.data.contentsObj)!==null&&le!==void 0&&le.str||(G=ee.data.richText)!==null&&G!==void 0&&G.str);return be.call(this,ee,{isRenderable:Y,ignoreBorder:!0,createQuadrilaterals:!0})}return re(p,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("underlineAnnotation"):(this.container.className="underlineAnnotation",this.container)}}]),p}(C),Le=function(ye){S(p,ye);var be=y(p);function p(ee){var Q,le,G;ie(this,p);var Y=!!(ee.data.hasPopup||(Q=ee.data.titleObj)!==null&&Q!==void 0&&Q.str||(le=ee.data.contentsObj)!==null&&le!==void 0&&le.str||(G=ee.data.richText)!==null&&G!==void 0&&G.str);return be.call(this,ee,{isRenderable:Y,ignoreBorder:!0,createQuadrilaterals:!0})}return re(p,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("squigglyAnnotation"):(this.container.className="squigglyAnnotation",this.container)}}]),p}(C),ce=function(ye){S(p,ye);var be=y(p);function p(ee){var Q,le,G;ie(this,p);var Y=!!(ee.data.hasPopup||(Q=ee.data.titleObj)!==null&&Q!==void 0&&Q.str||(le=ee.data.contentsObj)!==null&&le!==void 0&&le.str||(G=ee.data.richText)!==null&&G!==void 0&&G.str);return be.call(this,ee,{isRenderable:Y,ignoreBorder:!0,createQuadrilaterals:!0})}return re(p,[{key:"render",value:function(){return this.data.hasPopup||this._createPopup(null,this.data),this.quadrilaterals?this._renderQuadrilaterals("strikeoutAnnotation"):(this.container.className="strikeoutAnnotation",this.container)}}]),p}(C),ge=function(ye){S(p,ye);var be=y(p);function p(ee){var Q,le,G;ie(this,p);var Y=!!(ee.data.hasPopup||(Q=ee.data.titleObj)!==null&&Q!==void 0&&Q.str||(le=ee.data.contentsObj)!==null&&le!==void 0&&le.str||(G=ee.data.richText)!==null&&G!==void 0&&G.str);return be.call(this,ee,{isRenderable:Y,ignoreBorder:!0})}return re(p,[{key:"render",value:function(){return this.container.className="stampAnnotation",this.data.hasPopup||this._createPopup(null,this.data),this.container}}
90]),p}(C),Ce=function(ye){S(p,ye);var be=y(p);function p(ee){var Q,le;ie(this,p),le=be.call(this,ee,{isRenderable:!0});var G=le.data.file,Y=G.filename,E=G.content;return le.filename=(0,o.getFilenameFromUrl)(Y),le.content=E,(Q=le.linkService.eventBus)===null||Q===void 0||Q.dispatch("fileattachmentannotation",{source:h(le),id:(0,a.stringToPDFString)(Y),filename:Y,content:E}),le}return re(p,[{key:"render",value:function(){var Q,le;this.container.className="fileAttachmentAnnotation";var G=document.createElement("div");return G.style.height=this.container.style.height,G.style.width=this.container.style.width,G.addEventListener("dblclick",this._download.bind(this)),!this.data.hasPopup&&((Q=this.data.titleObj)!==null&&Q!==void 0&&Q.str||(le=this.data.contentsObj)!==null&&le!==void 0&&le.str||this.data.richText)&&this._createPopup(G,this.data),this.container.appendChild(G),this.container}},{key:"_download",value:function(){var Q;(Q=this.downloadManager)===null||Q===void 0||Q.openOrDownloadData(this.container,this.content,this.filename)}}]),p}(C),Be=function(){function ye(){ie(this,ye)}return re(ye,null,[{key:"render",value:function(p){var ee=[],Q=[],le=g(p.annotations),G;try{for(le.s();!(G=le.n()).done;){var Y=G.value;if(Y){if(Y.annotationType===a.AnnotationType.POPUP){Q.push(Y);continue}ee.push(Y)}}}catch(Fe){le.e(Fe)}finally{le.f()}Q.length&&ee.push.apply(ee,Q);for(var E=p.div,ue=0,Pe=ee;ue<Pe.length;ue++){var l=Pe[ue],_e=b.create({data:l,layer:E,page:p.page,viewport:p.viewport,linkService:p.linkService,downloadManager:p.downloadManager,imageResourcesPath:p.imageResourcesPath||"",renderForms:p.renderForms!==!1,svgFactory:new o.DOMSVGFactory,annotationStorage:p.annotationStorage||new s.AnnotationStorage,enableScripting:p.enableScripting,hasJSActions:p.hasJSActions,fieldObjects:p.fieldObjects,mouseState:p.mouseState||{isDown:!1}});if(_e.isRenderable){var Ae=_e.render();if(l.hidden&&(Ae.style.visibility="hidden"),Array.isArray(Ae)){var j=g(Ae),fe;try{for(j.s();!(fe=j.n()).done;){var ve=fe.value;E.appendChild(ve)}}catch(Fe){j.e(Fe)}finally{j.f()}}else _e instanceof z?E.prepend(Ae):E.appendChild(Ae)}}w(this,ye,Ne).call(this,E,p.annotationCanvasMap)}},{key:"update",value:function(p){var ee=p.page,Q=p.viewport,le=p.annotations,G=p.annotationCanvasMap,Y=p.div,E=Q.transform,ue="matrix(".concat(E.join(","),")"),Pe,l,_e=g(le),Ae;try{for(_e.s();!(Ae=_e.n()).done;){var j=Ae.value,fe=Y.querySelectorAll('[data-annotation-id="'.concat(j.id,'"]'));if(fe){var ve=g(fe),Fe;try{for(ve.s();!(Fe=ve.n()).done;){var Me=Fe.value;if(j.hasOwnCanvas){var De=a.Util.normalizeRect([j.rect[0],ee.view[3]-j.rect[1]+ee.view[1],j.rect[2],ee.view[3]-j.rect[3]+ee.view[1]]);if(!l){Pe=Math.abs(E[0]||E[1]);for(var We=E.slice(),Xe=0;Xe<4;Xe++)We[Xe]=Math.sign(We[Xe]);l="matrix(".concat(We.join(","),")")}var He=De[0]*Pe,Ve=De[1]*Pe;Me.style.left="".concat(He,"px"),Me.style.top="".concat(Ve,"px"),Me.style.transformOrigin="".concat(-He,"px ").concat(-Ve,"px"),Me.style.transform=l}else Me.style.transform=ue}}catch(Ze){ve.e(Ze)}finally{ve.f()}}}}catch(Ze){_e.e(Ze)}finally{_e.f()}w(this,ye,Ne).call(this,Y,G),Y.hidden=!1}}]),ye}();r.AnnotationLayer=Be;function Ne(ye,be){if(be){var p=g(be),ee;try{for(p.s();!(ee=p.n()).done;){var Q=M(ee.value,2),le=Q[0],G=Q[1],Y=ye.querySelector('[data-annotation-id="'.concat(le,'"]'));if(Y){var E=Y.firstChild;E.nodeName==="CANVAS"?Y.replaceChild(G,E):Y.insertBefore(G,E)}}}catch(ue){p.e(ue)}finally{p.f()}be.clear()}}},(n,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.ColorConverters=void 0;function t(I,D){return u(I)||s(I,D)||a(I,D)||e()}function e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 91In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a(I,D){if(I){if(typeof I=="string")return o(I,D);var q=Object.prototype.toString.call(I).slice(8,-1);if(q==="Object"&&I.constructor&&(q=I.constructor.name),q==="Map"||q==="Set")return Array.from(I);if(q==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(q))return o(I,D)}}function o(I,D){(D==null||D>I.length)&&(D=I.length);for(var q=0,O=new Array(D);q<D;q++)O[q]=I[q];return O}function s(I,D){var q=I==null?null:typeof Symbol<"u"&&I[Symbol.iterator]||I["@@iterator"];if(q!=null){var O=[],B=!0,S=!1,N,y;try{for(q=q.call(I);!(B=(N=q.next()).done)&&(O.push(N.value),!(D&&O.length===D));B=!0);}catch(d){S=!0,y=d}finally{try{!B&&q.return!=null&&q.return()}finally{if(S)throw y}}return O}}function u(I){if(Array.isArray(I))return I}function f(I,D){if(!(I instanceof D))throw new TypeError("Cannot call a class as a function")}function w(I,D){for(var q=0;q<D.length;q++){var O=D[q];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(I,O.ke
91y,O)}}function m(I,D,q){return q&&w(I,q),I}function k(I){return Math.floor(Math.max(0,Math.min(1,I))*255).toString(16).padStart(2,"0")}var x=function(){function I(){f(this,I)}return m(I,null,[{key:"CMYK_G",value:function(q){var O=t(q,4),B=O[0],S=O[1],N=O[2],y=O[3];return["G",1-Math.min(1,.3*B+.59*N+.11*S+y)]}},{key:"G_CMYK",value:function(q){var O=t(q,1),B=O[0];return["CMYK",0,0,0,1-B]}},{key:"G_RGB",value:function(q){var O=t(q,1),B=O[0];return["RGB",B,B,B]}},{key:"G_HTML",value:function(q){var O=t(q,1),B=O[0],S=k(B);return"#".concat(S).concat(S).concat(S)}},{key:"RGB_G",value:function(q){var O=t(q,3),B=O[0],S=O[1],N=O[2];return["G",.3*B+.59*S+.11*N]}},{key:"RGB_HTML",value:function(q){var O=t(q,3),B=O[0],S=O[1],N=O[2],y=k(B),d=k(S),h=k(N);return"#".concat(y).concat(d).concat(h)}},{key:"T_HTML",value:function(){return"#00000000"}},{key:"CMYK_RGB",value:function(q){var O=t(q,4),B=O[0],S=O[1],N=O[2],y=O[3];return["RGB",1-Math.min(1,B+y),1-Math.min(1,N+y),1-Math.min(1,S+y)]}},{key:"CMYK_HTML",value:function(q){return this.RGB_HTML(this.CMYK_RGB(q))}},{key:"RGB_CMYK",value:function(q){var O=t(q,3),B=O[0],S=O[1],N=O[2],y=1-B,d=1-S,h=1-N,_=Math.min(y,d,h);return["CMYK",y,d,h,_]}}]),I}();r.ColorConverters=x},(n,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.XfaLayer=void 0;var e=t(4),a=t(147);function o(O,B){return f(O)||u(O,B)||m(O,B)||s()}function s(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 92In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function u(O,B){var S=O==null?null:typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(S!=null){var N=[],y=!0,d=!1,h,_;try{for(S=S.call(O);!(y=(h=S.next()).done)&&(N.push(h.value),!(B&&N.length===B));y=!0);}catch(R){d=!0,_=R}finally{try{!y&&S.return!=null&&S.return()}finally{if(d)throw _}}return N}}function f(O){if(Array.isArray(O))return O}function w(O,B){var S=typeof Symbol<"u"&&O[Symbol.iterator]||O["@@iterator"];if(!S){if(Array.isArray(O)||(S=m(O))||B){S&&(O=S);var N=0,y=function(){};return{s:y,n:function(){return N>=O.length?{done:!0}:{done:!1,value:O[N++]}},e:function(g){throw g},f:y}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 93In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var d=!0,h=!1,_;return{s:function(){S=S.call(O)},n:function(){var g=S.next();return d=g.done,g},e:function(g){h=!0,_=g},f:function(){try{!d&&S.return!=null&&S.return()}finally{if(h)throw _}}}}function m(O,B){if(O){if(typeof O=="string")return k(O,B);var S=Object.prototype.toString.call(O).slice(8,-1);if(S==="Object"&&O.constructor&&(S=O.constructor.name),S==="Map"||S==="Set")return Array.from(O);if(S==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(S))return k(O,B)}}function k(O,B){(B==null||B>O.length)&&(B=O.length);for(var S=0,N=new Array(B);S<B;S++)N[S]=O[S];return N}function x(O,B){if(!(O instanceof B))throw new TypeError("Cannot call a class as a function")}function I(O,B){for(var S=0;S<B.length;S++){var N=B[S];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(O,N.key,N)}}function D(O,B,S){return S&&I(O,S),O}var q=function(){function O(){x(this,O)}return D(O,null,[{key:"setupStorage",value:function(S,N,y,d,h){var _=d.getValue(N,{value:null});switch(y.name){case"textarea":if(_.value!==null&&(S.textContent=_.value),h==="print")break;S.addEventListener("input",function(H){d.setValue(N,{value:H.target.value})});break;case"input":if(y.attributes.type==="radio"||y.attributes.type==="checkbox"){if(_.value===y.attributes.xfaOn?S.setAttribute("checked",!0):_.value===y.attributes.xfaOff&&S.removeAttribute("checked"),h==="print")break;S.addEventListener("change",function(H){d.setValue(N,{value:H.target.checked?H.target.getAttribute("xfaOn"):H.target.getAttribute("xfaOff")})})}else{if(_.value!==null&&S.setAttribute("value",_.value),h==="print")break;S.addEventListener("input",function(H){d.setValue(N,{value:H.target.value})})}break;case"select":if(_.value!==null){var R=w(y.children),g;try{for(R.s();!(g=R.n()).done;){var M=g.value;M.attributes.value===_.value&&(M.attributes.selected=!0)}}catch(H){R.e(H)}finally{R.f()}}S.addEventListener("input",function(H){var P=H.target.options,F=P.selectedIndex===-1?"":P[P.selectedIndex].value;d.setValue(N,{value:F})});break}}},{key:"setAttributes",value:function(S){var N=S.html,y=S.element,d=S.storage,h=d===void 0?null:d,_=S.intent,R=S.linkService,g=y.attributes,M=N instanceof HTMLAnchorElement;g.type==="radio"&&(g.name="".concat(g.name,"-").concat(_));for(var H=0,P=Object.entries(g);H<P.length;H++){var F=o(P[H],2),te=F[0],ae=F[1];if(!(ae==null||te==="dataId"))if(te!=="style")if(te==="textContent")N.textContent=ae;else if(te==="class")ae.length&&N.setAttribute(te,ae.join(" "));else{if(M&&(te==="href"||te==="newWindow"))continue;N.setAttribute(te,ae)}else Object.assign(N.style,ae)}if(M){var ie;R.addLinkAttributes||(0,e.warn)("XfaLayer.setAttribute - missing `addLinkAttributes`-method on the `linkService`-instance."),(ie=R.addLinkAttributes)===null||ie===void 0||ie.call(
93R,N,g.href,g.newWindow)}h&&g.dataId&&this.setupStorage(N,g.dataId,y,h)}},{key:"render",value:function(S){var N=S.annotationStorage,y=S.linkService,d=S.xfaHtml,h=S.intent||"display",_=document.createElement(d.name);d.attributes&&this.setAttributes({html:_,element:d,intent:h,linkService:y});var R=[[d,-1,_]],g=S.div;if(g.appendChild(_),S.viewport){var M="matrix(".concat(S.viewport.transform.join(","),")");g.style.transform=M}h!=="richText"&&g.setAttribute("class","xfaLayer xfaFont");for(var H=[];R.length>0;){var P,F=o(R[R.length-1],3),te=F[0],ae=F[1],ie=F[2];if(ae+1===te.children.length){R.pop();continue}var se=te.children[++R[R.length-1][1]];if(se!==null){var re=se.name;if(re==="#text"){var X=document.createTextNode(se.value);H.push(X),ie.appendChild(X);continue}var T=void 0;if(se!=null&&(P=se.attributes)!==null&&P!==void 0&&P.xmlns?T=document.createElementNS(se.attributes.xmlns,re):T=document.createElement(re),ie.appendChild(T),se.attributes&&this.setAttributes({html:T,element:se,storage:N,intent:h,linkService:y}),se.children&&se.children.length>0)R.push([se,-1,T]);else if(se.value){var b=document.createTextNode(se.value);a.XfaText.shouldBuildText(re)&&H.push(b),T.appendChild(b)}}}var C=w(g.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea")),$;try{for(C.s();!($=C.n()).done;){var W=$.value;W.setAttribute("readOnly",!0)}}catch(V){C.e(V)}finally{C.f()}return{textDivs:H}}},{key:"update",value:function(S){var N="matrix(".concat(S.viewport.transform.join(","),")");S.div.style.transform=N,S.div.hidden=!1}}]),O}();r.XfaLayer=q},(n,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.renderTextLayer=_;var e=t(4);function a(R,g){if(!(R instanceof g))throw new TypeError("Cannot call a class as a function")}function o(R,g){for(var M=0;M<g.length;M++){var H=g[M];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(R,H.key,H)}}function s(R,g,M){return g&&o(R.prototype,g),R}function u(R,g){var M=typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(!M){if(Array.isArray(R)||(M=f(R))||g){M&&(R=M);var H=0,P=function(){};return{s:P,n:function(){return H>=R.length?{done:!0}:{done:!1,value:R[H++]}},e:function(se){throw se},f:P}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 94In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var F=!0,te=!1,ae;return{s:function(){M=M.call(R)},n:function(){var se=M.next();return F=se.done,se},e:function(se){te=!0,ae=se},f:function(){try{!F&&M.return!=null&&M.return()}finally{if(te)throw ae}}}}function f(R,g){if(R){if(typeof R=="string")return w(R,g);var M=Object.prototype.toString.call(R).slice(8,-1);if(M==="Object"&&R.constructor&&(M=R.constructor.name),M==="Map"||M==="Set")return Array.from(R);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return w(R,g)}}function w(R,g){(g==null||g>R.length)&&(g=R.length);for(var M=0,H=new Array(g);M<g;M++)H[M]=R[M];return H}var m=1e5,k=30,x=.8,I=new Map,D=/^\s+$/g;function q(R,g){var M=I.get(R);if(M)return M;g.save(),g.font="".concat(k,"px ").concat(R);var H=g.measureText(""),P=H.fontBoundingBoxAscent,F=Math.abs(H.fontBoundingBoxDescent);if(P){g.restore();var te=P/(P+F);return I.set(R,te),te}g.strokeStyle="red",g.clearRect(0,0,k,k),g.strokeText("g",0,0);var ae=g.getImageData(0,0,k,k).data;F=0;for(var ie=ae.length-1-3;ie>=0;ie-=4)if(ae[ie]>0){F=Math.ceil(ie/4/k);break}g.clearRect(0,0,k,k),g.strokeText("A",0,k),ae=g.getImageData(0,0,k,k).data,P=0;for(var se=0,re=ae.length;se<re;se+=4)if(ae[se]>0){P=k-Math.floor(se/4/k);break}if(g.restore(),P){var X=P/(P+F);return I.set(R,X),X}return I.set(R,x),x}function O(R,g,M,H){var P=document.createElement("span"),F=R._enhanceTextSelection?{angle:0,canvasWidth:0,hasText:g.str!=="",hasEOL:g.hasEOL,originalTransform:null,paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:0,scale:1}:{angle:0,canvasWidth:0,hasText:g.str!=="",hasEOL:g.hasEOL};R._textDivs.push(P);var te=e.Util.transform(R._viewport.transform,g.transform),ae=Math.atan2(te[1],te[0]),ie=M[g.fontName];ie.vertical&&(ae+=Math.PI/2);var se=Math.hypot(te[2],te[3]),re=se*q(ie.fontFamily,H),X,T;ae===0?(X=te[4],T=te[5]-re):(X=te[4]+re*Math.sin(ae),T=te[5]-re*Math.cos(ae)),P.style.left="".concat(X,"px"),P.style.top="".concat(T,"px"),P.style.fontSize="".concat(se,"px"),P.style.fontFamily=ie.fontFamily,P.setAttribute("role","presentation"),P.textContent=g.str,P.dir=g.dir,R._fontInspectorEnabled&&(P.dataset.fontName=g.fontName),ae!==0&&(F.angle=ae*(180/Math.PI));var b=!1;if(g.str.length>1||R._enhanceTextSelection&&D.test(g.str))b=!0;else if(g.str!==" "&&g.transform[0]!==g.transform[3]){var C=Math.abs(g.transform[0]),$=Math.abs(g.transform[3]);C!==$&&Math.max(C,$)/Math.min(C,$)>1.5&&(b=!0)}if(b&&(ie.vertical?F.canvasWidth=g.height*R._viewport.scale:F.canvasWidth=g.width*R._viewport.scale),R._textDivProperties.set(P,F),R._textContentStream&&R._layoutText(P),R._enhanceTextSelection&&F.hasText){var W=1,V=0;ae!==0&&(W=Math.cos(ae),V=Math.sin(ae));var U=(ie.vertical?g.height:g.width)*R._viewport.scale,de=se,pe,Re;ae!==0?(pe=[W,V,-V,W,X,T],Re=e.Util.getAxialAlignedBoundingBox([0,0,U,de],pe)):Re=[X,T,X+U,T+de],R._bounds.push({left:Re[0],top:Re[1],right:Re[2],bottom:Re[3],div:P,size:[U,de],m:pe})}}
94function B(R){if(!R._canceled){var g=R._textDivs,M=R._capability,H=g.length;if(H>m){R._renderingDone=!0,M.resolve();return}if(!R._textContentStream)for(var P=0;P<H;P++)R._layoutText(g[P]);R._renderingDone=!0,M.resolve()}}function S(R,g,M){for(var H=0,P=0;P<M;P++){var F=R[g++];F>0&&(H=H?Math.min(F,H):F)}return H}function N(R){for(var g=R._bounds,M=R._viewport,H=y(M.width,M.height,g),P=0;P<H.length;P++){var F=g[P].div,te=R._textDivProperties.get(F);if(te.angle===0){te.paddingLeft=g[P].left-H[P].left,te.paddingTop=g[P].top-H[P].top,te.paddingRight=H[P].right-g[P].right,te.paddingBottom=H[P].bottom-g[P].bottom,R._textDivProperties.set(F,te);continue}for(var ae=H[P],ie=g[P],se=ie.m,re=se[0],X=se[1],T=[[0,0],[0,ie.size[1]],[ie.size[0],0],ie.size],b=new Float64Array(64),C=0,$=T.length;C<$;C++){var W=e.Util.applyTransform(T[C],se);b[C+0]=re&&(ae.left-W[0])/re,b[C+4]=X&&(ae.top-W[1])/X,b[C+8]=re&&(ae.right-W[0])/re,b[C+12]=X&&(ae.bottom-W[1])/X,b[C+16]=X&&(ae.left-W[0])/-X,b[C+20]=re&&(ae.top-W[1])/re,b[C+24]=X&&(ae.right-W[0])/-X,b[C+28]=re&&(ae.bottom-W[1])/re,b[C+32]=re&&(ae.left-W[0])/-re,b[C+36]=X&&(ae.top-W[1])/-X,b[C+40]=re&&(ae.right-W[0])/-re,b[C+44]=X&&(ae.bottom-W[1])/-X,b[C+48]=X&&(ae.left-W[0])/X,b[C+52]=re&&(ae.top-W[1])/-re,b[C+56]=X&&(ae.right-W[0])/X,b[C+60]=re&&(ae.bottom-W[1])/-re}var V=1+Math.min(Math.abs(re),Math.abs(X));te.paddingLeft=S(b,32,16)/V,te.paddingTop=S(b,48,16)/V,te.paddingRight=S(b,0,16)/V,te.paddingBottom=S(b,16,16)/V,R._textDivProperties.set(F,te)}}function y(R,g,M){var H=M.map(function(b,C){return{x1:b.left,y1:b.top,x2:b.right,y2:b.bottom,index:C,x1New:void 0,x2New:void 0}});d(R,H);var P=new Array(M.length),F=u(H),te;try{for(F.s();!(te=F.n()).done;){var ae=te.value,ie=ae.index;P[ie]={left:ae.x1New,top:0,right:ae.x2New,bottom:0}}}catch(b){F.e(b)}finally{F.f()}M.map(function(b,C){var $=P[C],W=H[C];W.x1=b.top,W.y1=R-$.right,W.x2=b.bottom,W.y2=R-$.left,W.index=C,W.x1New=void 0,W.x2New=void 0}),d(g,H);var se=u(H),re;try{for(se.s();!(re=se.n()).done;){var X=re.value,T=X.index;P[T].top=X.x1New,P[T].bottom=X.x2New}}catch(b){se.e(b)}finally{se.f()}return P}function d(R,g){g.sort(function(z,A){return z.x1-A.x1||z.index-A.index});var M={x1:-1/0,y1:-1/0,x2:0,y2:1/0,index:-1,x1New:0,x2New:0},H=[{start:-1/0,end:1/0,boundary:M}],P=u(g),F;try{for(P.s();!(F=P.n()).done;){for(var te=F.value,ae=0;ae<H.length&&H[ae].end<=te.y1;)ae++;for(var ie=H.length-1;ie>=0&&H[ie].start>=te.y2;)ie--;var se=void 0,re=void 0,X=void 0,T=void 0,b=-1/0;for(X=ae;X<=ie;X++){se=H[X],re=se.boundary;var C=void 0;re.x2>te.x1?C=re.index>te.index?re.x1New:te.x1:re.x2New===void 0?C=(re.x2+te.x1)/2:C=re.x2New,C>b&&(b=C)}for(te.x1New=b,X=ae;X<=ie;X++)se=H[X],re=se.boundary,re.x2New===void 0?re.x2>te.x1?re.index>te.index&&(re.x2New=re.x2):re.x2New=b:re.x2New>b&&(re.x2New=Math.max(b,re.x2));var $=[],W=null;for(X=ae;X<=ie;X++){se=H[X],re=se.boundary;var V=re.x2>te.x2?re:te;W===V?$[$.length-1].end=se.end:($.push({start:se.start,end:se.end,boundary:V}),W=V)}for(H[ae].start<te.y1&&($[0].start=te.y1,$.unshift({start:H[ae].start,end:te.y1,boundary:H[ae].boundary})),te.y2<H[ie].end&&($[$.length-1].end=te.y2,$.push({start:te.y2,end:H[ie].end,boundary:H[ie].boundary})),X=ae;X<=ie;X++)if(se=H[X],re=se.boundary,re.x2New===void 0){var U=!1;for(T=ae-1;!U&&T>=0&&H[T].start>=re.y1;T--)U=H[T].boundary===re;for(T=ie+1;!U&&T<H.length&&H[T].end<=re.y2;T++)U=H[T].boundary===re;for(T=0;!U&&T<$.length;T++)U=$[T].boundary===re;U||(re.x2New=b)}Array.prototype.splice.apply(H,[ae,ie-ae+1].concat($))}}catch(z){P.e(z)}finally{P.f()}for(var de=0,pe=H;de<pe.length;de++){var Re=pe[de],Z=Re.boundary;Z.x2New===void 0&&(Z.x2New=Math.max(R,Z.x2))}}var h=function(){function R(g){var M,H=this,P=g.textContent,F=g.textContentStream,te=g.container,ae=g.viewport,ie=g.textDivs,se=g.textContentItemsStr,re=g.enhanceTextSelection;a(this,R),this._textContent=P,this._textContentStream=F,this._container=te,this._document=te.ownerDocument,this._viewport=ae,this._textDivs=ie||[],this._textContentItemsStr=se||[],this._enhanceTextSelection=!!re,this._fontInspectorEnabled=!!((M=globalThis.FontInspector)!==null&&M!==void 0&&M.enabled),this._reader=null,this._layoutTextLastFontSize=null,this._layoutTextLastFontFamily=null,this._layoutTextCtx=null,this._textDivProperties=new WeakMap,this._renderingDone=!1,this._canceled=!1,this._capability=(0,e.createPromiseCapability)(),this._renderTimer=null,this._bounds=[],this._capability.promise.finally(function(){H._enhanceTextSelection||(H._textDivProperties=null),H._layoutTextCtx&&(H._layoutTextCtx.canvas.width=0,H._layoutTextCtx.canvas.height=0,H._layoutTextCtx=null)}
94).catch(function(){})}return s(R,[{key:"promise",get:function(){return this._capability.promise}},{key:"cancel",value:function(){this._canceled=!0,this._reader&&(this._reader.cancel(new e.AbortException("TextLayer task cancelled.")).catch(function(){}),this._reader=null),this._renderTimer!==null&&(clearTimeout(this._renderTimer),this._renderTimer=null),this._capability.reject(new Error("TextLayer task cancelled."))}},{key:"_processItems",value:function(M,H){for(var P=0,F=M.length;P<F;P++){if(M[P].str===void 0){if(M[P].type==="beginMarkedContentProps"||M[P].type==="beginMarkedContent"){var te=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),M[P].id!==null&&this._container.setAttribute("id","".concat(M[P].id)),te.appendChild(this._container)}else M[P].type==="endMarkedContent"&&(this._container=this._container.parentNode);continue}this._textContentItemsStr.push(M[P].str),O(this,M[P],H,this._layoutTextCtx)}}},{key:"_layoutText",value:function(M){var H=this._textDivProperties.get(M),P="";if(H.canvasWidth!==0&&H.hasText){var F=M.style,te=F.fontSize,ae=F.fontFamily;(te!==this._layoutTextLastFontSize||ae!==this._layoutTextLastFontFamily)&&(this._layoutTextCtx.font="".concat(te," ").concat(ae),this._layoutTextLastFontSize=te,this._layoutTextLastFontFamily=ae);var ie=this._layoutTextCtx.measureText(M.textContent),se=ie.width;if(se>0){var re=H.canvasWidth/se;this._enhanceTextSelection&&(H.scale=re),P="scaleX(".concat(re,")")}}if(H.angle!==0&&(P="rotate(".concat(H.angle,"deg) ").concat(P)),P.length>0&&(this._enhanceTextSelection&&(H.originalTransform=P),M.style.transform=P),H.hasText&&this._container.appendChild(M),H.hasEOL){var X=document.createElement("br");X.setAttribute("role","presentation"),this._container.appendChild(X)}}},{key:"_render",value:function(){var M=this,H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,P=(0,e.createPromiseCapability)(),F=Object.create(null),te=this._document.createElement("canvas");if(te.height=te.width=k,te.mozOpaque=!0,this._layoutTextCtx=te.getContext("2d",{alpha:!1}),this._textContent){var ae=this._textContent.items,ie=this._textContent.styles;this._processItems(ae,ie),P.resolve()}else if(this._textContentStream){var se=function re(){M._reader.read().then(function(X){var T=X.value,b=X.done;if(b){P.resolve();return}Object.assign(F,T.styles),M._processItems(T.items,F),re()},P.reject)};this._reader=this._textContentStream.getReader(),se()}else throw new Error('Neither "textContent" nor "textContentStream" parameters specified.');P.promise.then(function(){F=null,H?M._renderTimer=setTimeout(function(){B(M),M._renderTimer=null},H):B(M)},this._capability.reject)}},{key:"expandTextDivs",value:function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!this._enhanceTextSelection||!this._renderingDone)){this._bounds!==null&&(N(this),this._bounds=null);for(var H=[],P=[],F=0,te=this._textDivs.length;F<te;F++){var ae=this._textDivs[F],ie=this._textDivProperties.get(ae);ie.hasText&&(M?(H.length=0,P.length=0,ie.originalTransform&&H.push(ie.originalTransform),ie.paddingTop>0?(P.push("".concat(ie.paddingTop,"px")),H.push("translateY(".concat(-ie.paddingTop,"px)"))):P.push(0),ie.paddingRight>0?P.push("".concat(ie.paddingRight/ie.scale,"px")):P.push(0),ie.paddingBottom>0?P.push("".concat(ie.paddingBottom,"px")):P.push(0),ie.paddingLeft>0?(P.push("".concat(ie.paddingLeft/ie.scale,"px")),H.push("translateX(".concat(-ie.paddingLeft/ie.scale,"px)"))):P.push(0),ae.style.padding=P.join(" "),H.length&&(ae.style.transform=H.join(" "))):(ae.style.padding=null,ae.style.transform=ie.originalTransform))}}}}]),R}();function _(R){var g=new h({textContent:R.textContent,textContentStream:R.textContentStream,container:R.container,viewport:R.viewport,textDivs:R.textDivs,textContentItemsStr:R.textContentItemsStr,enhanceTextSelection:R.enhanceTextSelection});return g._render(R.timeout),g}},(n,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.SVGGraphics=void 0;var e=t(4),a=t(1),o=t(6);function s(re){return w(re)||f(re)||q(re)||u()}function u(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 95In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(re){if(typeof Symbol<"u"&&re[Symbol.iterator]!=null||re["@@iterator"]!=null)return Array.from(re)}function w(re){if(Array.isArray(re))return O(re)}function m(re,X){return I(re)||x(re,X)||q(re,X)||k()}
95function k(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 96In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x(re,X){var T=re==null?null:typeof Symbol<"u"&&re[Symbol.iterator]||re["@@iterator"];if(T!=null){var b=[],C=!0,$=!1,W,V;try{for(T=T.call(re);!(C=(W=T.next()).done)&&(b.push(W.value),!(X&&b.length===X));C=!0);}catch(U){$=!0,V=U}finally{try{!C&&T.return!=null&&T.return()}finally{if($)throw V}}return b}}function I(re){if(Array.isArray(re))return re}function D(re,X){var T=typeof Symbol<"u"&&re[Symbol.iterator]||re["@@iterator"];if(!T){if(Array.isArray(re)||(T=q(re))||X){T&&(re=T);var b=0,C=function(){};return{s:C,n:function(){return b>=re.length?{done:!0}:{done:!1,value:re[b++]}},e:function(de){throw de},f:C}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 97In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var $=!0,W=!1,V;return{s:function(){T=T.call(re)},n:function(){var de=T.next();return $=de.done,de},e:function(de){W=!0,V=de},f:function(){try{!$&&T.return!=null&&T.return()}finally{if(W)throw V}}}}function q(re,X){if(re){if(typeof re=="string")return O(re,X);var T=Object.prototype.toString.call(re).slice(8,-1);if(T==="Object"&&re.constructor&&(T=re.constructor.name),T==="Map"||T==="Set")return Array.from(re);if(T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T))return O(re,X)}}function O(re,X){(X==null||X>re.length)&&(X=re.length);for(var T=0,b=new Array(X);T<X;T++)b[T]=re[T];return b}function B(re,X){for(var T=0;T<X.length;T++){var b=X[T];b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b&&(b.writable=!0),Object.defineProperty(re,b.key,b)}}function S(re,X,T){return X&&B(re.prototype,X),re}function N(re,X){if(!(re instanceof X))throw new TypeError("Cannot call a class as a function")}var y=function re(){N(this,re),(0,e.unreachable)("Not implemented: SVGGraphics")};r.SVGGraphics=y;{var d=function(X){var T=[],b=[],C=D(X),$;try{for(C.s();!($=C.n()).done;){var W=$.value;if(W.fn==="save"){T.push({fnId:92,fn:"group",items:[]}),b.push(T),T=T[T.length-1].items;continue}W.fn==="restore"?T=b.pop():T.push(W)}}catch(V){C.e(V)}finally{C.f()}return T},h=function(X){if(Number.isInteger(X))return X.toString();var T=X.toFixed(10),b=T.length-1;if(T[b]!=="0")return T;do b--;while(T[b]==="0");return T.substring(0,T[b]==="."?b:b+1)},_=function(X){if(X[4]===0&&X[5]===0){if(X[1]===0&&X[2]===0)return X[0]===1&&X[3]===1?"":"scale(".concat(h(X[0])," ").concat(h(X[3]),")");if(X[0]===X[3]&&X[1]===-X[2]){var T=Math.acos(X[0])*180/Math.PI;return"rotate(".concat(h(T),")")}}else if(X[0]===1&&X[1]===0&&X[2]===0&&X[3]===1)return"translate(".concat(h(X[4])," ").concat(h(X[5]),")");return"matrix(".concat(h(X[0])," ").concat(h(X[1])," ").concat(h(X[2])," ").concat(h(X[3])," ").concat(h(X[4])," ")+"".concat(h(X[5]),")")},R={fontStyle:"normal",fontWeight:"normal",fillColor:"#000000"},g="http://www.w3.org/XML/1998/namespace",M="http://www.w3.org/1999/xlink",H=["butt","round","square"],P=["miter","round","bevel"],F=function(){for(var re=new Uint8Array([137,80,78,71,13,10,26,10]),X=12,T=new Int32Array(256),b=0;b<256;b++){for(var C=b,$=0;$<8;$++)C&1?C=3988292384^C>>1&2147483647:C=C>>1&2147483647;T[b]=C}function W(Z,z,A){for(var v=-1,L=z;L<A;L++){var J=(v^Z[L])&255,ne=T[J];v=v>>>8^ne}return v^-1}function V(Z,z,A,v){var L=v,J=z.length;A[L]=J>>24&255,A[L+1]=J>>16&255,A[L+2]=J>>8&255,A[L+3]=J&255,L+=4,A[L]=Z.charCodeAt(0)&255,A[L+1]=Z.charCodeAt(1)&255,A[L+2]=Z.charCodeAt(2)&255,A[L+3]=Z.charCo
97deAt(3)&255,L+=4,A.set(z,L),L+=z.length;var ne=W(A,v+4,L);A[L]=ne>>24&255,A[L+1]=ne>>16&255,A[L+2]=ne>>8&255,A[L+3]=ne&255}function U(Z,z,A){for(var v=1,L=0,J=z;J<A;++J)v=(v+(Z[J]&255))%65521,L=(L+v)%65521;return L<<16|v}function de(Z){if(!o.isNodeJS)return pe(Z);try{var z;parseInt(api$1.versions.node)>=8?z=Z:z=buffer.Buffer.from(Z);var A=requireLib().deflateSync(z,{level:9});return A instanceof Uint8Array?A:new Uint8Array(A)}catch(v){(0,e.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+v)}return pe(Z)}function pe(Z){var z=Z.length,A=65535,v=Math.ceil(z/A),L=new Uint8Array(2+z+v*5+4),J=0;L[J++]=120,L[J++]=156;for(var ne=0;z>A;)L[J++]=0,L[J++]=255,L[J++]=255,L[J++]=0,L[J++]=0,L.set(Z.subarray(ne,ne+A),J),J+=A,ne+=A,z-=A;L[J++]=1,L[J++]=z&255,L[J++]=z>>8&255,L[J++]=~z&65535&255,L[J++]=(~z&65535)>>8&255,L.set(Z.subarray(ne),J),J+=Z.length-ne;var oe=U(Z,0,Z.length);return L[J++]=oe>>24&255,L[J++]=oe>>16&255,L[J++]=oe>>8&255,L[J++]=oe&255,L}function Re(Z,z,A,v){var L=Z.width,J=Z.height,ne,oe,he,Te=Z.data;switch(z){case e.ImageKind.GRAYSCALE_1BPP:oe=0,ne=1,he=L+7>>3;break;case e.ImageKind.RGB_24BPP:oe=2,ne=8,he=L*3;break;case e.ImageKind.RGBA_32BPP:oe=6,ne=8,he=L*4;break;default:throw new Error("invalid format")}for(var ke=new Uint8Array((1+he)*J),Ee=0,Ie=0,Le=0;Le<J;++Le)ke[Ee++]=0,ke.set(Te.subarray(Ie,Ie+he),Ee),Ie+=he,Ee+=he;if(z===e.ImageKind.GRAYSCALE_1BPP&&v){Ee=0;for(var ce=0;ce<J;ce++){Ee++;for(var ge=0;ge<he;ge++)ke[Ee++]^=255}}var Ce=new Uint8Array([L>>24&255,L>>16&255,L>>8&255,L&255,J>>24&255,J>>16&255,J>>8&255,J&255,ne,oe,0,0,0]),Be=de(ke),Ne=re.length+X*3+Ce.length+Be.length,ye=new Uint8Array(Ne),be=0;return ye.set(re,be),be+=re.length,V("IHDR",Ce,ye,be),be+=X+Ce.length,V("IDATA",Be,ye,be),be+=X+Be.length,V("IEND",new Uint8Array(0),ye,be),(0,e.createObjectURL)(ye,"image/png",A)}return function(z,A,v){var L=z.kind===void 0?e.ImageKind.GRAYSCALE_1BPP:z.kind;return Re(z,L,A,v)}}(),te=function(){function re(){N(this,re),this.fontSizeScale=1,this.fontWeight=R.fontWeight,this.fontSize=0,this.textMatrix=e.IDENTITY_MATRIX,this.fontMatrix=e.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=e.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=R.fillColor,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}return S(re,[{key:"clone",value:function(){return Object.create(this)}},{key:"setCurrentPoint",value:function(T,b){this.x=T,this.y=b}}]),re}(),ae=0,ie=0,se=0;r.SVGGraphics=y=function(){function re(X,T){var b=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;N(this,re),this.svgFactory=new a.DOMSVGFactory,this.current=new te,this.transformMatrix=e.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=X,this.objs=T,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!b,this._operatorIdMapping=[];for(var C in e.OPS)this._operatorIdMapping[e.OPS[C]]=C}return S(re,[{key:"save",value:function(){this.transformStack.push(this.transformMatrix);var T=this.current;this.extraStack.push(T),this.current=T.clone()}},{key:"restore",value:function(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}},{key:"group",value:function(T){this.save(),this.executeOpTree(T),this.restore()}},{key:"loadDependencies",value:function(T){for(var b=this,C=T.fnArray,$=T.argsArray,W=0,V=C.length;W<V;W++)if(C[W]===e.OPS.dependency){var U=D($[W]),de;try{var pe=function(){var Z=de.value,z=Z.startsWith("g_")?b.commonObjs:b.objs,A=new Promise(function(v){z.get(Z,v)});b.current.dependencies.push(A)};for(U.s();!(de=U.n()).done;)pe()}catch(Re){U.e(Re)}finally{U.f()}}return Promise.all(this.current.dependencies)}},{key:"transform",value:function(T,b,C,$,W,V){var U=[T,b,C,$,W,V];this.transformMatrix=e.Util.transform(this.transformMatrix,U),this.tgrp=null}}
97,{key:"getSVG",value:function(T,b){var C=this;this.viewport=b;var $=this._initialize(b);return this.loadDependencies(T).then(function(){return C.transformMatrix=e.IDENTITY_MATRIX,C.executeOpTree(C.convertOpList(T)),$})}},{key:"convertOpList",value:function(T){for(var b=this._operatorIdMapping,C=T.argsArray,$=T.fnArray,W=[],V=0,U=$.length;V<U;V++){var de=$[V];W.push({fnId:de,fn:b[de],args:C[V]})}return d(W)}},{key:"executeOpTree",value:function(T){var b=D(T),C;try{for(b.s();!(C=b.n()).done;){var $=C.value,W=$.fn,V=$.fnId,U=$.args;switch(V|0){case e.OPS.beginText:this.beginText();break;case e.OPS.dependency:break;case e.OPS.setLeading:this.setLeading(U);break;case e.OPS.setLeadingMoveText:this.setLeadingMoveText(U[0],U[1]);break;case e.OPS.setFont:this.setFont(U);break;case e.OPS.showText:this.showText(U[0]);break;case e.OPS.showSpacedText:this.showText(U[0]);break;case e.OPS.endText:this.endText();break;case e.OPS.moveText:this.moveText(U[0],U[1]);break;case e.OPS.setCharSpacing:this.setCharSpacing(U[0]);break;case e.OPS.setWordSpacing:this.setWordSpacing(U[0]);break;case e.OPS.setHScale:this.setHScale(U[0]);break;case e.OPS.setTextMatrix:this.setTextMatrix(U[0],U[1],U[2],U[3],U[4],U[5]);break;case e.OPS.setTextRise:this.setTextRise(U[0]);break;case e.OPS.setTextRenderingMode:this.setTextRenderingMode(U[0]);break;case e.OPS.setLineWidth:this.setLineWidth(U[0]);break;case e.OPS.setLineJoin:this.setLineJoin(U[0]);break;case e.OPS.setLineCap:this.setLineCap(U[0]);break;case e.OPS.setMiterLimit:this.setMiterLimit(U[0]);break;case e.OPS.setFillRGBColor:this.setFillRGBColor(U[0],U[1],U[2]);break;case e.OPS.setStrokeRGBColor:this.setStrokeRGBColor(U[0],U[1],U[2]);break;case e.OPS.setStrokeColorN:this.setStrokeColorN(U);break;case e.OPS.setFillColorN:this.setFillColorN(U);break;case e.OPS.shadingFill:this.shadingFill(U[0]);break;case e.OPS.setDash:this.setDash(U[0],U[1]);break;case e.OPS.setRenderingIntent:this.setRenderingIntent(U[0]);break;case e.OPS.setFlatness:this.setFlatness(U[0]);break;case e.OPS.setGState:this.setGState(U[0]);break;case e.OPS.fill:this.fill();break;case e.OPS.eoFill:this.eoFill();break;case e.OPS.stroke:this.stroke();break;case e.OPS.fillStroke:this.fillStroke();break;case e.OPS.eoFillStroke:this.eoFillStroke();break;case e.OPS.clip:this.clip("nonzero");break;case e.OPS.eoClip:this.clip("evenodd");break;case e.OPS.paintSolidColorImageMask:this.paintSolidColorImageMask();break;case e.OPS.paintImageXObject:this.paintImageXObject(U[0]);break;case e.OPS.paintInlineImageXObject:this.paintInlineImageXObject(U[0]);break;case e.OPS.paintImageMaskXObject:this.paintImageMaskXObject(U[0]);break;case e.OPS.paintFormXObjectBegin:this.paintFormXObjectBegin(U[0],U[1]);break;case e.OPS.paintFormXObjectEnd:this.paintFormXObjectEnd();break;case e.OPS.closePath:this.closePath();break;case e.OPS.closeStroke:this.closeStroke();break;case e.OPS.closeFillStroke:this.closeFillStroke();break;case e.OPS.closeEOFillStroke:this.closeEOFillStroke();break;case e.OPS.nextLine:this.nextLine();break;case e.OPS.transform:this.transform(U[0],U[1],U[2],U[3],U[4],U[5]);break;case e.OPS.constructPath:this.constructPath(U[0],U[1]);break;case e.OPS.endPath:this.endPath();break;case 92:this.group($.items);break;default:(0,e.warn)("Unimplemented operator ".concat(W));break}}}catch(de){b.e(de)}finally{b.f()}}},{key:"setWordSpacing",value:function(T){this.current.wordSpacing=T}},{key:"setCharSpacing",value:function(T){this.current.charSpacing=T}},{key:"nextLine",value:function(){this.moveText(0,this.current.leading)}},{key:"setTextMatrix",value:function(T,b,C,$,W,V){var U=this.current;U.textMatrix=U.lineMatrix=[T,b,C,$,W,V],U.textMatrixScale=Math.hypot(T,b),U.x=U.lineX=0,U.y=U.lineY=0,U.xcoords=[],U.ycoords=[],U.tspan=this.svgFactory.createElement("svg:tspan"),U.tspan.setAttributeNS(null,"font-family",U.fontFamily),U.tspan.setAttributeNS(null,"font-size","".concat(h(U.fontSize),"px")),U.tspan.setAttributeNS(null,"y",h(-U.y)),U.txtElement=this.svgFactory.createElement("svg:text"),U.txtElement.appendChild(U.tspan)}},{key:"beginText",value:function(){var T=this.current;T.x=T.lineX=0,T.y=T.lineY=0,T.textMatrix=e.IDENTITY_MATRIX,T.lineMatrix=e.IDENTITY_MATRIX,T.textMatrixScale=1,T.tspan=this.svgFactory.createElement("svg:tspan"),T.txtElement=this.svgFactory.createElement("svg:text"),T.txtgrp=this.svgFactory.createElement("svg:g"),T.xcoords=[],T.ycoords=[]}}
97,{key:"moveText",value:function(T,b){var C=this.current;C.x=C.lineX+=T,C.y=C.lineY+=b,C.xcoords=[],C.ycoords=[],C.tspan=this.svgFactory.createElement("svg:tspan"),C.tspan.setAttributeNS(null,"font-family",C.fontFamily),C.tspan.setAttributeNS(null,"font-size","".concat(h(C.fontSize),"px")),C.tspan.setAttributeNS(null,"y",h(-C.y))}},{key:"showText",value:function(T){var b=this.current,C=b.font,$=b.fontSize;if($!==0){var W=b.fontSizeScale,V=b.charSpacing,U=b.wordSpacing,de=b.fontDirection,pe=b.textHScale*de,Re=C.vertical,Z=Re?1:-1,z=C.defaultVMetrics,A=$*b.fontMatrix[0],v=0,L=D(T),J;try{for(L.s();!(J=L.n()).done;){var ne=J.value;if(ne===null){v+=de*U;continue}else if((0,e.isNum)(ne)){v+=Z*ne*$/1e3;continue}var oe=(ne.isSpace?U:0)+V,he=ne.fontChar,Te=void 0,ke=void 0,Ee=ne.width;if(Re){var Ie=void 0,Le=ne.vmetric||z;Ie=ne.vmetric?Le[1]:Ee*.5,Ie=-Ie*A;var ce=Le[2]*A;Ee=Le?-Le[0]:Ee,Te=Ie/W,ke=(v+ce)/W}else Te=v/W,ke=0;(ne.isInFont||C.missingFile)&&(b.xcoords.push(b.x+Te),Re&&b.ycoords.push(-b.y+ke),b.tspan.textContent+=he);var ge=void 0;Re?ge=Ee*A-oe*de:ge=Ee*A+oe*de,v+=ge}}catch(ye){L.e(ye)}finally{L.f()}b.tspan.setAttributeNS(null,"x",b.xcoords.map(h).join(" ")),Re?b.tspan.setAttributeNS(null,"y",b.
vendor: 4,722 bytes, lines 97-98
97ycoords.map(h).join(" ")):b.tspan.setAttributeNS(null,"y",h(-b.y)),Re?b.y-=v:b.x+=v*pe,b.tspan.setAttributeNS(null,"font-family",b.fontFamily),b.tspan.setAttributeNS(null,"font-size","".concat(h(b.fontSize),"px")),b.fontStyle!==R.fontStyle&&b.tspan.setAttributeNS(null,"font-style",b.fontStyle),b.fontWeight!==R.fontWeight&&b.tspan.setAttributeNS(null,"font-weight",b.fontWeight);var Ce=b.textRenderingMode&e.TextRenderingMode.FILL_STROKE_MASK;if(Ce===e.TextRenderingMode.FILL||Ce===e.TextRenderingMode.FILL_STROKE?(b.fillColor!==R.fillColor&&b.tspan.setAttributeNS(null,"fill",b.fillColor),b.fillAlpha<1&&b.tspan.setAttributeNS(null,"fill-opacity",b.fillAlpha)):b.textRenderingMode===e.TextRenderingMode.ADD_TO_PATH?b.tspan.setAttributeNS(null,"fill","transparent"):b.tspan.setAttributeNS(null,"fill","none"),Ce===e.TextRenderingMode.STROKE||Ce===e.TextRenderingMode.FILL_STROKE){var Be=1/(b.textMatrixScale||1);this._setStrokeAttributes(b.tspan,Be)}var Ne=b.textMatrix;b.textRise!==0&&(Ne=Ne.slice(),Ne[5]+=b.textRise),b.txtElement.setAttributeNS(null,"transform","".concat(_(Ne)," scale(").concat(h(pe),", -1)")),b.txtElement.setAttributeNS(g,"xml:space","preserve"),b.txtElement.appendChild(b.tspan),b.txtgrp.appendChild(b.txtElement),this._ensureTransformGroup().appendChild(b.txtElement)}}},{key:"setLeadingMoveText",value:function(T,b){this.setLeading(-b),this.moveText(T,b)}},{key:"addFontStyle",value:function(T){if(!T.data)throw new Error('addFontStyle: No font data available, ensure that the "fontExtraProperties" API parameter is set.');this.cssStyle||(this.cssStyle=this.svgFactory.createElement("svg:style"),this.cssStyle.setAttributeNS(null,"type","text/css"),this.defs.appendChild(this.cssStyle));var b=(0,e.createObjectURL)(T.data,T.mimetype,this.forceDataSchema);this.cssStyle.textContent+='@font-face { font-family: "'.concat(T.loadedName,'";')+" src: url(".concat(b,`); } 98`)}},{key:"setFont",value:function(T){var b=this.current,C=this.commonObjs.get(T[0]),$=T[1];b.font=C,this.embedFonts&&!C.missingFile&&!this.embeddedFonts[C.loadedName]&&(this.addFontStyle(C),this.embeddedFonts[C.loadedName]=C),b.fontMatrix=C.fontMatrix||e.FONT_IDENTITY_MATRIX;var W="normal";C.black?W="900":C.bold&&(W="bold");var V=C.italic?"italic":"normal";$<0?($=-$,b.fontDirection=-1):b.fontDirection=1,b.fontSize=$,b.fontFamily=C.loadedName,b.fontWeight=W,b.fontStyle=V,b.tspan=this.svgFactory.createElement("svg:tspan"),b.tspan.setAttributeNS(null,"y",h(-b.y)),b.xcoords=[],b.ycoords=[]}},{key:"endText",value:function(){var T,b=this.current;b.textRenderingMode&e.TextRenderingMode.ADD_TO_PATH_FLAG&&(T=b.txtElement)!==null&&T!==void 0&&T.hasChildNodes()&&(b.element=b.txtElement,this.clip("nonzero"),this.endPath())}},{key:"setLineWidth",value:function(T){T>0&&(this.current.lineWidth=T)}},{key:"setLineCap",value:function(T){this.current.lineCap=H[T]}},{key:"setLineJoin",value:function(T){this.current.lineJoin=P[T]}},{key:"setMiterLimit",value:function(T){this.current.miterLimit=T}},{key:"setStrokeAlpha",value:function(T){this.current.strokeAlpha=T}},{key:"setStrokeRGBColor",value:function(T,b,C){this.current.strokeColor=e.Util.makeHexColor(T,b,C)}},{key:"setFillAlpha",value:function(T){this.current.fillAlpha=T}},{key:"setFillRGBColor",value:function(T,b,C){this.current.fillColor=e.Util.makeHexColor(T,b,C),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}},{key:"setStrokeColorN",value:function(T){this.current.strokeColor=this._makeColorN_Pattern(T)}},{key:"setFillColorN",value:function(T){this.current.fillColor=this._makeColorN_Pattern(T)}},{key:"shadingFill",value:function(T){var b=this.viewport.width,C=this.viewport.height,$=e.Util.inverseTransform(this.transformMatrix),W=e.Util.applyTransform([0,0],$),V=e.Util.applyTransform([0,C],$),U=e.Util.applyTransform([b,0],$),de=e.Util.applyTransform([b,C],$),pe=Math.min(W[0],V[0],U[0],de[0]),Re=Math.min(W[1],V[1],U[1],de[1]),Z=Math.max(W[0],V[0],U[0],de[0]),z=Math.max(W[1],V[1],U[1],de[1]),A=this.svgFactory.createElement("svg:rect");A.setAttributeNS(null,"x",pe),A.setAttributeNS(null,"y",Re),A.setAttributeNS(null,"width",Z-pe),A.setAttributeNS(null,"height",z-Re),A.setAttributeNS(null,"fill",this._makeShadingPattern(T)),this.current.fillAlpha<1&&A.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().appendChild(A)}},{key:"_makeColorN_Pattern",value:function(T){return T[0]==="TilingPattern"?this._makeTilingPattern(T):this._makeShadingPattern(T)}},{key:"_makeTilingPattern",value:function(T){var b=T[1],C=T[2],$=T[3]||e.IDENTITY_MATRIX,W=m(T[4],4),V=W[0],U=W[1],de=W[2],pe=W[3],Re=T[5],Z=T[6],z=T[7],A="shading".concat(se++),v=e.Util.normalizeRect([].
98concat(s(e.Util.applyTransform([V,U],$)),s(e.Util.applyTransform([de,pe],$)))),L=m(v,4),J=L[0],ne=L[1],oe=L[2],he=L[3],Te=e.Util.singularValueDecompose2dScale($),ke=m(Te,2),Ee=ke[0],Ie=ke[1],Le=Re*Ee,ce=Z*Ie,ge=this.svgFactory.createElement("svg:pattern");ge.setAttributeNS(null,"id",A),ge.setAttributeNS(null,"patternUnits","userSpaceOnUse"),ge.setAttributeNS(null,"width",Le),ge.setAttributeNS(null,"height",ce),ge.setAttributeNS(null,"x","".concat(J)),ge.setAttributeNS(null,"y","".concat(ne));var Ce=this.svg,Be=this.transformMatrix,Ne=this.current.fillColor,ye=this.current.strokeColor,be=this.svgFactory.create(oe-J,he-ne);if(this.svg=be,this.transformMatrix=$,z===2){var p=e.Util.makeHexColor.apply(e.Util,s(b));this.current.fillColor=p,this.current.strokeColor=p}return this.executeOpTree(this.convertOpList(C)),this.svg=Ce,this.transformMatrix=Be,this.current.fillColor=Ne,this.current.strokeColor=ye,ge.appendChild(be.childNodes[0]),this.defs.appendChild(ge),"url(#".concat(A,")")}},{key:"_makeShadingPattern",value:function(T){switch(typeof T=="string"&&(T=this.objs.get(T)),T[0]){case"RadialAxial":var b="shading".concat(se++),C=T[3],$;switch(T[1]){case"axial":var W=T[4],V=T[5];$=this.svgFactory.createElement("svg:linearGradient"),$.setAttributeNS(null,"id",b),$.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),$.setAttributeNS(null,"x1",W[0]),$.setAttributeNS(null,"y1",W[1]),$.setAttributeNS(null,"x2",V[0]),$.setAttributeNS(null,"y2",V[1]);break;case"radial":var U=T[4],de=T[5],pe=T[6],Re=T[7];$=this.svgFactory.createElement("svg:radialGradient"),$.setAttributeNS(null,"id",b),$.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),$.setAttributeNS(null,"cx",de[0]),$.setAttributeNS(null,"cy",de[1]),$.setAttributeNS(null,"r",Re),$.setAttributeNS(null,"fx",U[0]),$.setAttributeNS(null,"fy",U[1]),$.setAttributeNS(null,"fr",pe);break;default:throw new Error("Unknown RadialAxial type: ".concat(T[1]))}var Z=D(C),z;try{for(Z.s();!(z=Z.n()).done;){var A=z.value,v=this.svgFactory.createElement("svg:stop");v.setAttributeNS(null,"offset",A[0]),v.setAttributeNS(null,"stop-color",A[1]),$.appendChild(v)}}catch(L){Z.e(L)}finally{Z.f()}return this.defs.appendChild($),"url(#".concat(b,")");case"Mesh":return(0,e.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error("Unknown IR type: ".concat(T[0]))}}},{key:"setDash",value:function(T,b){this.current.dashArray=T,this.current.dashPhase=b}},{key:"constructPath",value:function(T,b){var C=this.current,$=C.x,W=C.y,V=[],U=0,de=D(T),pe;try{for(de.s();!(pe=de.n()).done;){var Re=pe.value;switch(Re|0){case e.OPS.rectangle:$=b[U++],W=b[U++];var Z=b[U++],z=b[U++],A=$+Z,v=W+z;V.push("M",h($),h(W),"L",h(A),h(W),"L",h(A),h(v),"L",h($),h(v),"Z");break;case e.OPS.moveTo:$=b[U++],W=b[U++],V.push("M",h($),h(W));break;case e.OPS.lineTo:$=b[U++],W=b[U++],V.push("L",h($),h(W));break;case e.OPS.curveTo:$=b[U+4],W=b[U+5],V.push("C",h(b[U]),h(b[U+1]),h(b[U+2]),h(b[U+3]),h($),h(W)),U+=6;break;case e.OPS.curveTo2:V.push("C",h($),h(W),h(b[U]),h(b[U+1]),h(b[U+2]),h(b[U+3])),$=b[U+2],W=b[U+3],U+=4;break;case e.OPS.curveTo3:$=b[U+2],W=b[U+3],V.push("C",h(b[U]),h(b[U+1]),h($),h(W),h($),h(W)),U+=4;break;case e.OPS.closePath:V.push("Z");break}}}catch(L){de.e(L)}finally{de.f()}V=V.join(" "),C.path&&T.length>0&&T[0]!==e.OPS.rectangle&&T[0]!==e.OPS.moveTo?V=C.path.getAttributeNS(null,"d")+V:(C.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().appendChild(C.path)),C.path.setAttributeNS(null,"d",V),C.path.setAttributeNS(null,"fill","none"),C.element=C.path,C.setCurrentPoint($,W)}},{key:"endPath",value:function(){var T=this.current;if(T.path=null,!!this.pendingClip){if(!T.element){this.pendingClip=null;return}var b="clippath".concat(ae++),C=this.svgFactory.createElement("svg:clipPath");C.setAttributeNS(null,"id",b),C.setAttributeNS(null,"transform",_(this.transformMatrix));var $=T.element.cloneNode(!0);if(this.pendingClip==="evenodd"?$.setAttributeNS(null,"clip-rule","evenodd"):$.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,C.appendChild($),this.defs.appendChild(C),T.activeClipUrl){T.clipGroup=null;var W=D(this.extraStack),V;try{for(W.s();!(V=W.n()).done;){var U=V.value;U.clipGroup=null}}catch(de){W.e(de)}finally{W.f()}C.setAttributeNS(null,"clip-path",T.activeClipUrl)}T.activeClipUrl="url(#".concat(b,")"),this.tgrp=null}}},{key:"clip",value:function(T){this.pendingClip=T}},{key:"closePath",value:function(){var T=this.current;if(T.path){var b="".concat(T.path.getAttributeNS(null,"d"),"Z");T.path.setAttributeNS(null,"d",b)}}},{key:"setLeading",value:function(T){this.current.leading=-T}},{key:"setTextRise",value:function(T){this.current.textRise=T}},{key:"setTextRenderingMode",value:function(T){this.current.textRenderingMode=T}},{key:"setHScale",value:function(T){this.current.textHScale=T/100}},{key:"setRenderingIntent",value:function(T){}},{key:"setFlatness",value:function(T){}},{key:"setGState",value:function(T){var b=D(T),C;try{for(b.s();!(C=b.n()).done;){var $=m(C.value,2),W=$[0],V=$[1];switch(W){case"LW":this.setLineWidth(V);break;case"LC":this.setLineCap(V);break;case"LJ":this.setLineJoin(V);break;case"ML":this.setMiterLimit(V);break;case"D":this.setDash(V[0],V[1]);break;
vendor: 5,294 bytes, line 98
98case"RI":this.setRenderingIntent(V);break;case"FL":this.setFlatness(V);break;case"Font":this.setFont(V);break;case"CA":this.setStrokeAlpha(V);break;case"ca":this.setFillAlpha(V);break;default:(0,e.warn)("Unimplemented graphic state operator ".concat(W));break}}}catch(U){b.e(U)}finally{b.f()}}},{key:"fill",value:function(){var T=this.current;T.element&&(T.element.setAttributeNS(null,"fill",T.fillColor),T.element.setAttributeNS(null,"fill-opacity",T.fillAlpha),this.endPath())}},{key:"stroke",value:function(){var T=this.current;T.element&&(this._setStrokeAttributes(T.element),T.element.setAttributeNS(null,"fill","none"),this.endPath())}},{key:"_setStrokeAttributes",value:function(T){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,C=this.current,$=C.dashArray;b!==1&&$.length>0&&($=$.map(function(W){return b*W})),T.setAttributeNS(null,"stroke",C.strokeColor),T.setAttributeNS(null,"stroke-opacity",C.strokeAlpha),T.setAttributeNS(null,"stroke-miterlimit",h(C.miterLimit)),T.setAttributeNS(null,"stroke-linecap",C.lineCap),T.setAttributeNS(null,"stroke-linejoin",C.lineJoin),T.setAttributeNS(null,"stroke-width",h(b*C.lineWidth)+"px"),T.setAttributeNS(null,"stroke-dasharray",$.map(h).join(" ")),T.setAttributeNS(null,"stroke-dashoffset",h(b*C.dashPhase)+"px")}},{key:"eoFill",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}},{key:"fillStroke",value:function(){this.stroke(),this.fill()}},{key:"eoFillStroke",value:function(){this.current.element&&this.current.element.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}},{key:"closeStroke",value:function(){this.closePath(),this.stroke()}},{key:"closeFillStroke",value:function(){this.closePath(),this.fillStroke()}},{key:"closeEOFillStroke",value:function(){this.closePath(),this.eoFillStroke()}},{key:"paintSolidColorImageMask",value:function(){var T=this.svgFactory.createElement("svg:rect");T.setAttributeNS(null,"x","0"),T.setAttributeNS(null,"y","0"),T.setAttributeNS(null,"width","1px"),T.setAttributeNS(null,"height","1px"),T.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().appendChild(T)}},{key:"paintImageXObject",value:function(T){var b=T.startsWith("g_")?this.commonObjs.get(T):this.objs.get(T);if(!b){(0,e.warn)("Dependent image with object ID ".concat(T," is not ready yet"));return}this.paintInlineImageXObject(b)}},{key:"paintInlineImageXObject",value:function(T,b){var C=T.width,$=T.height,W=F(T,this.forceDataSchema,!!b),V=this.svgFactory.createElement("svg:rect");V.setAttributeNS(null,"x","0"),V.setAttributeNS(null,"y","0"),V.setAttributeNS(null,"width",h(C)),V.setAttributeNS(null,"height",h($)),this.current.element=V,this.clip("nonzero");var U=this.svgFactory.createElement("svg:image");U.setAttributeNS(M,"xlink:href",W),U.setAttributeNS(null,"x","0"),U.setAttributeNS(null,"y",h(-$)),U.setAttributeNS(null,"width",h(C)+"px"),U.setAttributeNS(null,"height",h($)+"px"),U.setAttributeNS(null,"transform","scale(".concat(h(1/C)," ").concat(h(-1/$),")")),b?b.appendChild(U):this._ensureTransformGroup().appendChild(U)}},{key:"paintImageMaskXObject",value:function(T){var b=this.current,C=T.width,$=T.height,W=b.fillColor;b.maskId="mask".concat(ie++);var V=this.svgFactory.createElement("svg:mask");V.setAttributeNS(null,"id",b.maskId);var U=this.svgFactory.createElement("svg:rect");U.setAttributeNS(null,"x","0"),U.setAttributeNS(null,"y","0"),U.setAttributeNS(null,"width",h(C)),U.setAttributeNS(null,"height",h($)),U.setAttributeNS(null,"fill",W),U.setAttributeNS(null,"mask","url(#".concat(b.maskId,")")),this.defs.appendChild(V),this._ensureTransformGroup().appendChild(U),this.paintInlineImageXObject(T,V)}},{key:"paintFormXObjectBegin",value:function(T,b){if(Array.isArray(T)&&T.length===6&&this.transform(T[0],T[1],T[2],T[3],T[4],T[5]),b){var C=b[2]-b[0],$=b[3]-b[1],W=this.svgFactory.createElement("svg:rect");W.setAttributeNS(null,"x",b[0]),W.setAttributeNS(null,"y",b[1]),W.setAttributeNS(null,"width",h(C)),W.setAttributeNS(null,"height",h($)),this.current.element=W,this.clip("nonzero"),this.endPath()}}},{key:"paintFormXObjectEnd",value:function(){}},{key:"_initialize",value:function(T){var b=this.svgFactory.create(T.width,T.height),C=this.svgFactory.createElement("svg:defs");b.appendChild(C),this.defs=C;var $=this.svgFactory.createElement("svg:g");return $.setAttributeNS(null,"transform",_(T.transform)),b.appendChild($),this.svg=$,b}},{key:"_ensureClipGroup",value:function(){if(!this.current.clipGroup){var T=this.svgFactory.createElement("svg:g");T.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.appendChild(T),this.current.clipGroup=T}return this.current.clipGroup}},{key:"_ensureTransformGroup",value:function(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",_(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().appendChild(this.tgrp):this.svg.appendChild(this.tgrp)),this.tgrp}}]),re}()}},(n,r,t)=>{function e(b){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?e=function($){return typeof $}:e=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},e(b)}
98Object.defineProperty(r,"__esModule",{value:!0}),r.PDFNodeStream=void 0;var a=u(t(2)),o=t(4),s=t(154);function u(b){return b&&b.__esModule?b:{default:b}}function f(b,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function");b.prototype=Object.create(C&&C.prototype,{constructor:{value:b,writable:!0,configurable:!0}}),C&&w(b,C)}function w(b,C){return w=Object.setPrototypeOf||function(W,V){return W.__proto__=V,W},w(b,C)}function m(b){var C=I();return function(){var W=D(b),V;if(C){var U=D(this).constructor;V=Reflect.construct(W,arguments,U)}else V=W.apply(this,arguments);return k(this,V)}}function k(b,C){if(C&&(e(C)==="object"||typeof C=="function"))return C;if(C!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return x(b)}function x(b){if(b===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b}function I(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function D(b){return D=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},D(b)}function q(b,C,$,W,V,U,de){try{var pe=b[U](de),Re=pe.value}catch(Z){$(Z);return}pe.done?C(Re):Promise.resolve(Re).then(W,V)}function O(b){return function(){var C=this,$=arguments;return new Promise(function(W,V){var U=b.apply(C,$);function de(Re){q(U,W,V,de,pe,"next",Re)}function pe(Re){q(U,W,V,de,pe,"throw",Re)}de(void 0)})}}function B(b,C){var $=typeof Symbol<"u"&&b[Symbol.iterator]||b["@@iterator"];if(!$){if(Array.isArray(b)||($=S(b))||C){$&&(b=$);var W=0,V=function(){};return{s:V,n:function(){return W>=b.length?{done:!0}:{done:!1,value:b[W++]}},e:function(Z){throw Z},f:V}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 99In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var U=!0,de=!1,pe;return{s:function(){$=$.call(b)},n:function(){var Z=$.next();return U=Z.done,Z},e:function(Z){de=!0,pe=Z},f:function(){try{!U&&$.return!=null&&$.return()}finally{if(de)throw pe}}}}function S(b,C){if(b){if(typeof b=="string")return N(b,C);var $=Object.prototype.toString.call(b).slice(8,-1);if($==="Object"&&b.constructor&&($=b.constructor.name),$==="Map"||$==="Set")return Array.from(b);if($==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($))return N(b,C)}}function N(b,C){(C==null||C>b.length)&&(C=b.length);for(var $=0,W=new Array(C);$<C;$++)W[$]=b[$];return W}function y(b,C){if(!(b instanceof C))throw new TypeError("Cannot call a class as a function")}function d(b,C){for(var $=0;$<C.length;$++){var W=C[$];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(b,W.key,W)}}function h(b,C,$){return C&&d(b.prototype,C),b}var _=require$$0$1,R=requireStreamHttp(),g=requireHttpsBrowserify(),M=require$$5,H=/^file:\/\/\/[a-zA-Z]:\//;function P(b){var C=M.parse(b);return C.protocol==="file:"||C.host?C:/^[a-z]:[/\\]/i.test(b)?M.parse("file:///".concat(b)):(C.host||(C.protocol="file:"),C)}var F=function(){function b(C){y(this,b),this.source=C,this.url=P(C.url),this.isHttp=this.url.protocol==="http:"||this.url.protocol==="https:",this.isFsUrl=this.url.protocol==="file:",this.httpHeaders=this.isHttp&&C.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return h(b,[{key:"_progressiveDataLength",get:function(){var $,W;return($=(W=this._fullRequestReader)===null||W===void 0?void 0:W._loaded)!==null&&$!==void 0?$:0}},{key:"getFullReader",value:function(){return(0,o.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new X(this):new se(this),this._fullRequestReader}},{key:"getRangeReader",value:function($,W){if(W<=this._progressiveDataLength)return null;var V=this.isFsUrl?new T(this,$,W):new re(this,$,W);return this._rangeRequestReaders.push(V),V}},{key:"cancelAllRequests",value:function($){this._fullRequestReader&&this._fullRequestReader.cancel($);var W=B(this._rangeRequestReaders.slice(0)),V;try{for(W.s();!(V=W.n()).done;){var U=V.value;U.cancel($)}}catch(de){W.e(de)}finally{W.f()}}}]),b}();r.PDFNodeStream=F;var te=function(){function b(C){y(this,b),this._url=C.url,this._done=!1,this._storedError=null,this.onProgress=null;var $=C.source;this._contentLength=$.length,this._loaded=0,this._filename=null,this._disableRange=$.disableRange||!1,this._rangeChunkSize=$.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!$.disableStream,this._isRangeSupported=!$.disableRange,this._readableStream=null,this._readCapability=(0,o.createPromiseCapability)(),this._headersCapability=(0,o.createPromiseCapability)()}
99return h(b,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var C=O(a.default.mark(function W(){var V,U;return a.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,this._readCapability.promise;case 2:if(!this._done){pe.next=4;break}return pe.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){pe.next=6;break}throw this._storedError;case 6:if(V=this._readableStream.read(),V!==null){pe.next=10;break}return this._readCapability=(0,o.createPromiseCapability)(),pe.abrupt("return",this.read());case 10:return this._loaded+=V.length,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),U=new Uint8Array(V).buffer,pe.abrupt("return",{value:U,done:!1});case 14:case"end":return pe.stop()}},W,this)}));function $(){return C.apply(this,arguments)}return $}()},{key:"cancel",value:function($){if(!this._readableStream){this._error($);return}this._readableStream.destroy($)}},{key:"_error",value:function($){this._storedError=$,this._readCapability.resolve()}},{key:"_setReadableStream",value:function($){var W=this;this._readableStream=$,$.on("readable",function(){W._readCapability.resolve()}),$.on("end",function(){$.destroy(),W._done=!0,W._readCapability.resolve()}),$.on("error",function(V){W._error(V)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new o.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}]),b}(),ae=function(){function b(C){y(this,b),this._url=C.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=(0,o.createPromiseCapability)();var $=C.source;this._isStreamingSupported=!$.disableStream}return h(b,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var C=O(a.default.mark(function W(){var V,U;return a.default.wrap(function(pe){for(;;)switch(pe.prev=pe.next){case 0:return pe.next=2,this._readCapability.promise;case 2:if(!this._done){pe.next=4;break}return pe.abrupt("return",{value:void 0,done:!0});case 4:if(!this._storedError){pe.next=6;break}throw this._storedError;case 6:if(V=this._readableStream.read(),V!==null){pe.next=10;break}return this._readCapability=(0,o.createPromiseCapability)(),pe.abrupt("return",this.read());case 10:return this._loaded+=V.length,this.onProgress&&this.onProgress({loaded:this._loaded}),U=new Uint8Array(V).buffer,pe.abrupt("return",{value:U,done:!1});case 14:case"end":return pe.stop()}},W,this)}));function $(){return C.apply(this,arguments)}return $}()},{key:"cancel",value:function($){if(!this._readableStream){this._error($);return}this._readableStream.destroy($)}},{key:"_error",value:function($){this._storedError=$,this._readCapability.resolve()}},{key:"_setReadableStream",value:function($){var W=this;this._readableStream=$,$.on("readable",function(){W._readCapability.resolve()}),$.on("end",function(){$.destroy(),W._done=!0,W._readCapability.resolve()}),$.on("error",function(V){W._error(V)}),this._storedError&&this._readableStream.destroy(this._storedError)}}]),b}();function ie(b,C){return{protocol:b.protocol,auth:b.auth,host:b.hostname,port:b.port,path:b.path,method:"GET",headers:C}}var se=function(b){f($,b);var C=m($);function $(W){var V;y(this,$),V=C.call(this,W);var U=function(pe){if(pe.statusCode===404){var Re=new o.MissingPDFException('Missing PDF "'.concat(V._url,'".'));V._storedError=Re,V._headersCapability.reject(Re);return}V._headersCapability.resolve(),V._setReadableStream(pe);var Z=function(J){return V._readableStream.headers[J.toLowerCase()]},z=(0,s.validateRangeRequestCapabilities)({getResponseHeader:Z,isHttp:W.isHttp,rangeChunkSize:V._rangeChunkSize,disableRange:V._disableRange}),A=z.allowRangeRequests,v=z.suggestedLength;V._isRangeSupported=A,V._contentLength=v||V._contentLength,V._filename=(0,s.extractFilenameFromHeader)(Z)};return V._request=null,V._url.protocol==="http:"?V._request=R.request(ie(V._url,W.httpHeaders),U):V._request=g.request(ie(V._url,W.httpHeaders),U),V._request.on("error",function(de){V._storedError=de,V._headersCapability.reject(de)}),V._request.end(),V}return $}(te),re=function(b){f($,b);var C=m($);function $(W,V,U){var de;y(this,$),de=C.call(this,W),de._httpHeaders={};for(var pe in W.httpHeaders){var Re=W.httpHeaders[pe];typeof Re>"u"||(de._httpHeaders[pe]=Re)}de._httpHeaders.Range="bytes=".concat(V,"-").concat(U-1);var Z=function(A){if(A.statusCode===404){var v=new o.MissingPDFException('Missing PDF "'.concat(de._url,'".'));de._storedError=v;return}de._setReadableStream(A)};return de._request=null,de._url.protocol==="http:"?de._request=R.request(ie(de._url,de._httpHeaders),Z):de._request=g.request(ie(de._url,de._httpHeaders),Z),de._request.on("error",function(z){de._storedError=z}),de._request.end(),de}return $}(ae),X=function(b){f($,b);var C=m($);function $(W){var V;y(this,$),V=C.call(this,W);var U=decodeURIComponent(V._url.path);return H.test(V._url.href)&&(U=U.replace(/^\//,"")),_.lstat(U,function(de,pe){if(de){de.code==="ENOENT"&&(de=new o.MissingPDFException('Missing PDF "'.concat(U,'".'))),V._storedError=de,V._headersCapability.reject(de);return}V._contentLength=pe.size,V._setReadableStream(_.createReadStream(U)),V._headersCapability.resolve()}),V}return $}(te),T=function(b){f($,b);var C=m($);function $(W,V,U){var de;y(this,$),de=C.call(this,W);var pe=decodeURIComponent(de._url.path);return H.test(de._url.href)&&(pe=pe.replace(/^\//,"")),de._setReadableStream(_.createReadStream(pe,{start:V,end:U-1})),de}return $}(ae)},(n,r,t)=>
99{Object.defineProperty(r,"__esModule",{value:!0}),r.createResponseStatusError=f,r.extractFilenameFromHeader=u,r.validateRangeRequestCapabilities=s,r.validateResponseStatus=w;var e=t(4),a=t(155),o=t(1);function s(m){var k=m.getResponseHeader,x=m.isHttp,I=m.rangeChunkSize,D=m.disableRange;(0,e.assert)(I>0,"Range chunk size must be larger than zero");var q={allowRangeRequests:!1,suggestedLength:void 0},O=parseInt(k("Content-Length"),10);if(!Number.isInteger(O)||(q.suggestedLength=O,O<=2*I)||D||!x||k("Accept-Ranges")!=="bytes")return q;var B=k("Content-Encoding")||"identity";return B!=="identity"||(q.allowRangeRequests=!0),q}function u(m){var k=m("Content-Disposition");if(k){var x=(0,a.getFilenameFromContentDispositionHeader)(k);if(x.includes("%"))try{x=decodeURIComponent(x)}catch{}if((0,o.isPdfFile)(x))return x}return null}function f(m,k){return m===404||m===0&&k.startsWith("file:")?new e.MissingPDFException('Missing PDF "'+k+'".'):new e.UnexpectedResponseException("Unexpected server response (".concat(m,') while retrieving PDF "').concat(k,'".'),m)}function w(m){return m===200||m===206}},(n,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.getFilenameFromContentDispositionHeader=m;var e=t(4);function a(k,x){return w(k)||f(k,x)||s(k,x)||o()}function o(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 100In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s(k,x){if(k){if(typeof k=="string")return u(k,x);var I=Object.prototype.toString.call(k).slice(8,-1);if(I==="Object"&&k.constructor&&(I=k.constructor.name),I==="Map"||I==="Set")return Array.from(k);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return u(k,x)}}function u(k,x){(x==null||x>k.length)&&(x=k.length);for(var I=0,D=new Array(x);I<x;I++)D[I]=k[I];return D}function f(k,x){var I=k==null?null:typeof Symbol<"u"&&k[Symbol.iterator]||k["@@iterator"];if(I!=null){var D=[],q=!0,O=!1,B,S;try{for(I=I.call(k);!(q=(B=I.next()).done)&&(D.push(B.value),!(x&&D.length===x));q=!0);}catch(N){O=!0,S=N}finally{try{!q&&I.return!=null&&I.return()}finally{if(O)throw S}}return D}}function w(k){if(Array.isArray(k))return k}function m(k){var x=!0,I=B("filename\\*","i").exec(k);if(I){I=I[1];var D=d(I);return D=unescape(D),D=h(D),D=_(D),N(D)}if(I=y(k),I){var q=_(I);return N(q)}if(I=B("filename","i").exec(k),I){I=I[1];var O=d(I);return O=_(O),N(O)}function B(R,g){return new RegExp("(?:^|;)\\s*"+R+'\\s*=\\s*([^";\\s][^;\\s]*|"(?:[^"\\\\]|\\\\"?)+"?)',g)}function S(R,g){if(R){if(!/^[\x00-\xFF]+$/.test(g))return g;try{var M=new TextDecoder(R,{fatal:!0}),H=(0,e.stringToBytes)(g);g=M.decode(H),x=!1}catch{if(/^utf-?8$/i.test(R))try{g=decodeURIComponent(escape(g)),x=!1}catch{}}}return g}function N(R){return x&&/[\x80-\xff]/.test(R)&&(R=S("utf-8",R),x&&(R=S("iso-8859-1",R))),R}function y(R){for(var g=[],M,H=B("filename\\*((?!0\\d)\\d+)(\\*?)","ig");(M=H.exec(R))!==null;){var P=M,F=a(P,4),te=F[1],ae=F[2],ie=F[3];if(te=parseInt(te,10),te in g){if(te===0)break;continue}g[te]=[ae,ie]}for(var se=[],re=0;re<g.length&&re in g;++re){var X=a(g[re],2),T=X[0],b=X[1];b=d(b),T&&(b=unescape(b),re===0&&(b=h(b))),se.push(b)}return se.join("")}function d(R){if(R.startsWith('"')){for(var g=R.slice(1).split('\\"'),M=0;M<g.length;++M){var H=g[M].indexOf('"');H!==-1&&(g[M]=g[M].slice(0,H),g.length=M+1),g[M]=g[M].replace(/\\(.)/g,"$1")}R=g.join('"')}return R}function h(R){var g=R.indexOf("'");if(g===-1)return R;var M=R.slice(0,g),H=R.slice(g+1),P=H.replace(/^[^']*'/,"");return S(M,P)}function _(R){return!R.startsWith("=?")||/[\x00-\x19\x80-\xff]/.test(R)?R:R.replace(/=\?([\w-]*)\?([QqBb])\?((?:[^?]|\?(?!=))*)\?=/g,function(g,M,H,P){if(H==="q"||H==="Q")return P=P.replace(/_/g," "),P=P.replace(/=([0-9a-fA-F]{2})/g,function(F,te){return String.fromCharCode(parseInt(te,16))}),S(M,P);try{P=atob(P)}catch{}return S(M,P)})}return""}},(n,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PDFNetworkStream=void 0;var e=s(t(2)),a=t(4),o=t(154);function s(h){return h&&h.__esModule?h:{default:h}}function u(h,_,R,g,M,H,P){try{var F=h[H](P),te=F.value}catch(ae){R(ae);return}F.done?_(te):Promise.resolve(te).then(g,M)}function f(h){return function(){var _=this,R=arguments;return new Promise(function(g,M){var H=h.apply(_,R);function P(te){u(H,g,M,P,F,"next",te)}function F(te){u(H,g,M,P,F,"throw",te)}P(void 0)})}}function w(h,_){var R=typeof Symbol<"u"&&h[Symbol.iterator]||h["@@iterator"];if(!R){if(Array.isArray(h)||(R=m(h))||_){R&&(h=R);var g=0,M=function(){};return{s:M,n:function(){return g>=h.length?{done:!0}:{done:!1,value:h[g++]}},e:function(ae){throw ae},f:M}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 101In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var H=!0,P=!1,F;return{s:function(){R=R.call(h)},n:function(){var ae=R.next();return H=ae.done,ae},e:function(ae){P=!0,F=ae},f:function(){try{!H&&R.return!=null&&R.return()}finally{if(P)throw F}}}}function m(h,_){if(h){if(typeof h=="string")return k(h,_);var R=Object.prototype.toString.call(h).slice(8,-1);if(R==="Object"&&h.constructor&&(R=h.constructor.name),R==="Map"||R==="Set")return Array.from(h);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return k(h,_)}}function k(h,_){(_==null||_>h.length)&&(_=h.length);for(var R=0,g=new Array(_);R<_;R++)g[R]=h[R];return g}function x(h,_){if(!(h instanceof _))throw new TypeError("Cannot call a class as a function")}function I(h,_){for(var R=0;R<_.length;R++){var g=_[R];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(h,g.key,g)}}function D(h,_,R){return _&&I(h.prototype,_),h}var q=200,O=206;function B(h){var _=h.response;if(typeof _!="string")return _;var R=(0,a.stringToBytes)(_);return R.buffer}var S=function(){function h(_){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x(this,h),this.url=_,this.isHttp=/^https?:/i.test(_),this.httpHeaders=this.isHttp&&R.httpHeaders||Object.create(null),this.withCredentials=R.withCredentials||!1,this.getXhr=R.getXhr||function(){return new XMLHttpRequest},this.currXhrId=0,this.pendingRequests=Object.create(null)}return D(h,[{key:"requestRange",value:function(R,g,M){var H={begin:R,end:g};for(var P in M)H[P]=M[P];return this.request(H)}},{key:"requestFull",value:function(R){return this.request(R)}},{key:"request",value:function(R){var g=this.getXhr(),M=this.currXhrId++,H=this.pendingRequests[M]={xhr:g};g.open("GET",this.url),g.withCredentials=this.withCredentials;for(var P in this.httpHeaders){var F=this.httpHeaders[P];typeof F>"u"||g.setRequestHeader(P,F)}return this.isHttp&&"begin"in R&&"end"in R?(g.setRequestHeader("Range","bytes=".concat(R.begin,"-").concat(R.end-1)),H.expectedStatus=O):H.expectedStatus=q,g.responseType="arraybuffer",R.onError&&(g.onerror=function(te){R.onError(g.status)}),g.onreadystatechange=this.onStateChange.bind(this,M),g.onprogress=this.onProgress.bind(this,M),H.onHeadersReceived=R.onHeadersReceived,H.onDone=R.onDone,H.onError=R.onError,H.onProgress=R.onProgress,g.send(null),M}},{key:"onProgress",value:function(R,g){var M,H=this.pendingRequests[R];H&&((M=H.onProgress)===null||M===void 0||M.call(H,g))}},{key:"onStateChange",value:function(R,g){var M=this.pendingRequests[R];if(M){var H=M.xhr;if(H.readyState>=2&&M.onHeadersReceived&&(M.onHeadersReceived(),delete M.onHeadersReceived),H.readyState===4&&R in this.pendingRequests){if(delete this.pendingRequests[R],H.status===0&&this.isHttp){var P;(P=M.onError)===null||P===void 0||P.call(M,H.status);return}var F=H.status||q,te=F===q&&M.expectedStatus===O;if(!te&&F!==M.expectedStatus){var ae;(ae=M.onError)===null||ae===void 0||ae.call(M,H.status);return}var ie=B(H);if(F===O){var se=H.getResponseHeader("Content-Range"),re=/bytes (\d+)-(\d+)\/(\d+)/.exec(se);M.onDone({begin:parseInt(re[1],10),chunk:ie})}else if(ie)M.onDone({begin:0,chunk:ie});else{var X;(X=M.onError)===null||X===void 0||X.call(M,H.status)}}}}},{key:"getRequestXhr",value:function(R){return this.pendingRequests[R].xhr}},{key:"isPendingRequest",value:function(R){return R in this.pendingRequests}},{key:"abortRequest",value:function(R){var g=this.pendingRequests[R].xhr;delete this.pendingRequests[R],g.abort()}}]),h}(),N=function(){function h(_){x(this,h),this._source=_,this._manager=new S(_.url,{httpHeaders:_.httpHeaders,withCredentials:_.withCredentials}),this._rangeChunkSize=_.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}return D(h,[{key:"_onRangeRequestReaderClosed",value:function(R){var g=this._rangeRequestReaders.indexOf(R);g>=0&&this._rangeRequestReaders.splice(g,1)}},{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new y(this._manager,this._source),this._fullRequestReader}},{key:"getRangeReader",value:function(R,g){var M=new d(this._manager,R,g);return M.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(M),M}},{key:"cancelAllRequests",value:function(R){var g;(g=this._fullRequestReader)===null||g===void 0||g.cancel(R);var M=w(this._rangeRequestReaders.slice(0)),H;try{for(M.s();!(H=M.n()).done;){var P=H.value;P.cancel(R)}}catch(F){M.e(F)}finally{M.f()}}}]),h}();r.PDFNetworkStream=N;var y=function(){function h(_,R){x(this,h),this._manager=_;var g={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=R.url,this._fullRequestId=_.requestFull(g),this._headersReceivedCapability=(0,a.createPromiseCapability)(),this._disableRange=R.disableRange||!1,this._contentLength=R.length,this._rangeChunkSize=R.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}return D(h,[{key:"_onHeadersReceived",value:function(){var R=this._fullRequestId,g=this._manager.getRequestXhr(R),M=function(ae){return g.getResponseHeader(ae)},H=(0,o.validateRangeRequestCapabilities)({getResponseHeader:M,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange}),P=H.allowRangeRequests,F=H.suggestedLength;P&&(this._isRangeSupported=!0),this._contentLength=F||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(M),this._isRangeSupported&&this._manager.abortRequest
101(R),this._headersReceivedCapability.resolve()}},{key:"_onDone",value:function(R){if(R)if(this._requests.length>0){var g=this._requests.shift();g.resolve({value:R.chunk,done:!1})}else this._cachedChunks.push(R.chunk);if(this._done=!0,!(this._cachedChunks.length>0)){var M=w(this._requests),H;try{for(M.s();!(H=M.n()).done;){var P=H.value;P.resolve({value:void 0,done:!0})}}catch(F){M.e(F)}finally{M.f()}this._requests.length=0}}},{key:"_onError",value:function(R){this._storedError=(0,o.createResponseStatusError)(R,this._url),this._headersReceivedCapability.reject(this._storedError);var g=w(this._requests),M;try{for(g.s();!(M=g.n()).done;){var H=M.value;H.reject(this._storedError)}}catch(P){g.e(P)}finally{g.f()}this._requests.length=0,this._cachedChunks.length=0}},{key:"_onProgress",value:function(R){var g;(g=this.onProgress)===null||g===void 0||g.call(this,{loaded:R.loaded,total:R.lengthComputable?R.total:this._contentLength})}},{key:"filename",get:function(){return this._filename}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"contentLength",get:function(){return this._contentLength}},{key:"headersReady",get:function(){return this._headersReceivedCapability.promise}},{key:"read",value:function(){var _=f(e.default.mark(function g(){var M,H;return e.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(!this._storedError){F.next=2;break}throw this._storedError;case 2:if(!(this._cachedChunks.length>0)){F.next=5;break}return M=this._cachedChunks.shift(),F.abrupt("return",{value:M,done:!1});case 5:if(!this._done){F.next=7;break}return F.abrupt("return",{value:void 0,done:!0});case 7:return H=(0,a.createPromiseCapability)(),this._requests.push(H),F.abrupt("return",H.promise);case 10:case"end":return F.stop()}},g,this)}));function R(){return _.apply(this,arguments)}return R}()},{key:"cancel",value:function(R){this._done=!0,this._headersReceivedCapability.reject(R);var g=w(this._requests),M;try{for(g.s();!(M=g.n()).done;){var H=M.value;H.resolve({value:void 0,done:!0})}}catch(P){g.e(P)}finally{g.f()}this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}]),h}(),d=function(){function h(_,R,g){x(this,h),this._manager=_;var M={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=_.url,this._requestId=_.requestRange(R,g,M),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}return D(h,[{key:"_close",value:function(){var R;(R=this.onClosed)===null||R===void 0||R.call(this,this)}},{key:"_onDone",value:function(R){var g=R.chunk;if(this._requests.length>0){var M=this._requests.shift();M.resolve({value:g,done:!1})}else this._queuedChunk=g;this._done=!0;var H=w(this._requests),P;try{for(H.s();!(P=H.n()).done;){var F=P.value;F.resolve({value:void 0,done:!0})}}catch(te){H.e(te)}finally{H.f()}this._requests.length=0,this._close()}},{key:"_onError",value:function(R){this._storedError=(0,o.createResponseStatusError)(R,this._url);var g=w(this._requests),M;try{for(g.s();!(M=g.n()).done;){var H=M.value;H.reject(this._storedError)}}catch(P){g.e(P)}finally{g.f()}this._requests.length=0,this._queuedChunk=null}},{key:"_onProgress",value:function(R){if(!this.isStreamingSupported){var g;(g=this.onProgress)===null||g===void 0||g.call(this,{loaded:R.loaded})}}},{key:"isStreamingSupported",get:function(){return!1}},{key:"read",value:function(){var _=f(e.default.mark(function g(){var M,H;return e.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:if(!this._storedError){F.next=2;break}throw this._storedError;case 2:if(this._queuedChunk===null){F.next=6;break}return M=this._queuedChunk,this._queuedChunk=null,F.abrupt("return",{value:M,done:!1});case 6:if(!this._done){F.next=8;break}return F.abrupt("return",{value:void 0,done:!0});case 8:return H=(0,a.createPromiseCapability)(),this._requests.push(H),F.abrupt("return",H.promise);case 11:case"end":return F.stop()}},g,this)}));function R(){return _.apply(this,arguments)}return R}()},{key:"cancel",value:function(R){this._done=!0;var g=w(this._requests),M;try{for(g.s();!(M=g.n()).done;){var H=M.value;H.resolve({value:void 0,done:!0})}}catch(P){g.e(P)}finally{g.f()}this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest
101(this._requestId),this._close()}}]),h}()},(n,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.PDFFetchStream=void 0;var e=s(t(2)),a=t(4),o=t(154);function s(y){return y&&y.__esModule?y:{default:y}}function u(y,d,h,_,R,g,M){try{var H=y[g](M),P=H.value}catch(F){h(F);return}H.done?d(P):Promise.resolve(P).then(_,R)}function f(y){return function(){var d=this,h=arguments;return new Promise(function(_,R){var g=y.apply(d,h);function M(P){u(g,_,R,M,H,"next",P)}function H(P){u(g,_,R,M,H,"throw",P)}M(void 0)})}}function w(y,d){var h=typeof Symbol<"u"&&y[Symbol.iterator]||y["@@iterator"];if(!h){if(Array.isArray(y)||(h=m(y))||d){h&&(y=h);var _=0,R=function(){};return{s:R,n:function(){return _>=y.length?{done:!0}:{done:!1,value:y[_++]}},e:function(F){throw F},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 102In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var g=!0,M=!1,H;return{s:function(){h=h.call(y)},n:function(){var F=h.next();return g=F.done,F},e:function(F){M=!0,H=F},f:function(){try{!g&&h.return!=null&&h.return()}finally{if(M)throw H}}}}function m(y,d){if(y){if(typeof y=="string")return k(y,d);var h=Object.prototype.toString.call(y).slice(8,-1);if(h==="Object"&&y.constructor&&(h=y.constructor.name),h==="Map"||h==="Set")return Array.from(y);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return k(y,d)}}function k(y,d){(d==null||d>y.length)&&(d=y.length);for(var h=0,_=new Array(d);h<d;h++)_[h]=y[h];return _}function x(y,d){if(!(y instanceof d))throw new TypeError("Cannot call a class as a function")}function I(y,d){for(var h=0;h<d.length;h++){var _=d[h];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(y,_.key,_)}}function D(y,d,h){return d&&I(y.prototype,d),y}function q(y,d,h){return{method:"GET",headers:y,signal:h?.signal,mode:"cors",credentials:d?"include":"same-origin",redirect:"follow"}}function O(y){var d=new Headers;for(var h in y){var _=y[h];typeof _>"u"||d.append(h,_)}return d}var B=function(){function y(d){x(this,y),this.source=d,this.isHttp=/^https?:/i.test(d.url),this.httpHeaders=this.isHttp&&d.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}return D(y,[{key:"_progressiveDataLength",get:function(){var h,_;return(h=(_=this._fullRequestReader)===null||_===void 0?void 0:_._loaded)!==null&&h!==void 0?h:0}},{key:"getFullReader",value:function(){return(0,a.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new S(this),this._fullRequestReader}},{key:"getRangeReader",value:function(h,_){if(_<=this._progressiveDataLength)return null;var R=new N(this,h,_);return this._rangeRequestReaders.push(R),R}},{key:"cancelAllRequests",value:function(h){this._fullRequestReader&&this._fullRequestReader.cancel(h);var _=w(this._rangeRequestReaders.slice(0)),R;try{for(_.s();!(R=_.n()).done;){var g=R.value;g.cancel(h)}}catch(M){_.e(M)}finally{_.f()}}}]),y}();r.PDFFetchStream=B;var S=function(){function y(d){var h=this;x(this,y),this._stream=d,this._reader=null,this._loaded=0,this._filename=null;var _=d.source;this._withCredentials=_.withCredentials||!1,this._contentLength=_.length,this._headersCapability=(0,a.createPromiseCapability)(),this._disableRange=_.disableRange||!1,this._rangeChunkSize=_.rangeChunkSize,!this._rangeChunkSize&&!this._disableRange&&(this._disableRange=!0),typeof AbortController<"u"&&(this._abortController=new AbortController),this._isStreamingSupported=!_.disableStream,this._isRangeSupported=!_.disableRange,this._headers=O(this._stream.httpHeaders);var R=_.url;fetch(R,q(this._headers,this._withCredentials,this._abortController)).then(function(g){if(!(0,o.validateResponseStatus)(g.status))throw(0,o.createResponseStatusError)(g.status,R);h._reader=g.body.getReader(),h._headersCapability.resolve();var M=function(ae){return g.headers.get(ae)},H=(0,o.validateRangeRequestCapabilities)({getResponseHeader:M,isHttp:h._stream.isHttp,rangeChunkSize:h._rangeChunkSize,disableRange:h._disableRange}),P=H.allowRangeRequests,F=H.suggestedLength;h._isRangeSupported=P,h._contentLength=F||h._contentLength,h._filename=(0,o.extractFilenameFromHeader)(M),!h._isStreamingSupported&&h._isRangeSupported&&h.cancel(new a.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}return D(y,[{key:"headersReady",get:function(){return this._headersCapability.promise}},{key:"filename",get:function(){return this._filename}},{key:"contentLength",get:function(){return this._contentLength}},{key:"isRangeSupported",get:function(){return this._isRangeSupported}},{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var d=f(e.default.mark(function _(){var R,g,M,H;return e.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,this._headersCapability.promise;case 2:return F.next=4,this._reader.read();case 4:if(R=F.sent,g=R.value,M=R.done,!M){F.next=9;break}return F.abrupt("return",{value:g,done:M});case 9:return this._loaded+=g.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded,total:this._contentLength}),H=new Uint8Array(g).buffer,F.abrupt("return",{value:H,done:!1});case 13:case"end":return F.stop()}},_,this)}));function h(){return d.apply(this,arguments)}return h}()},{key:"cancel",value:function(h){this._reader&&this._reader.cancel(h),this._abortController&&this._abortController.abort()}}]),y}(),N=function(){function y(d,h,_){var R=this;x(this,y),this._stream=d,this._reader=null,this._loaded=0;var g=d.source;this._withCredentials=g.withCredentials||!1,this._readCapability=(0,a.createPromiseCapability)(),this._isStreamingSupported=!g.disableStream,typeof AbortController<"u"&&(this._abortController=new AbortController),this._headers=O(this._stream.httpHeaders),this._headers.append("Range","bytes=".concat(h,"-").concat(_-1));var M=g.url;fetch(M,q(this._headers,this._withCredentials,this._abortController)).then(function(H){if(!(0,o.validateResponseStatus)(H.status))throw(0,o.createResponseStatusError)(H.status,M);R._readCapability.resolve(),R._reader=H.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}return D(y,[{key:"isStreamingSupported",get:function(){return this._isStreamingSupported}},{key:"read",value:function(){var d=f(e.default.mark(function _(){var R,g,M,H;return e.default.wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.next=2,this._readCapability.promise;case 2:return F.next=4,this._reader.read();case 4:if(R=F.sent,g=R.value,M=R.done,!M){F.next=9;break}return F.abrupt("return",{value:g,done:M});case 9:return this._loaded+=g.byteLength,this.onProgress&&this.onProgress({loaded:this._loaded}),H=new Uint8Array(g).buffer,F.abrupt("return",{value:H,done:!1});case 13:case"end":return F.stop()}},_,this)}));function h(){return d.apply(this,arguments)}return h}()},{key:"cancel",value:function(h){this._reader&&this._reader.cancel(h),this._abortController&&this._abortController.abort()}}]),y}()}],__webpack_module_cache__={};function __w_pdfjs_require__(n){var r=__webpack_module_cache__[n];
102if(r!==void 0)return r.exports;var t=__webpack_module_cache__[n]={id:n,loaded:!1,exports:{}};return __webpack_modules__[n].call(t.exports,t,t.exports,__w_pdfjs_require__),t.loaded=!0,t.exports}__w_pdfjs_require__.nmd=n=>(n.paths=[],n.children||(n.children=[]),n);var __webpack_exports__={};return(()=>{var n=__webpack_exports__;Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(n,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(n,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(n,"GlobalWorkerOptions",{enumerable:!0,get:function(){return o.GlobalWorkerOptions}}),Object.defineProperty(n,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(n,"LinkTarget",{enumerable:!0,get:function(){return r.LinkTarget}}),Object.defineProperty(n,"LoopbackPort",{enumerable:!0,get:function(){return e.LoopbackPort}}),Object.defineProperty(n,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(n,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(n,"PDFDataRangeTransport",{enumerable:!0,get:function(){return e.PDFDataRangeTransport}}),Object.defineProperty(n,"PDFDateString",{enumerable:!0,get:function(){return r.PDFDateString}}),Object.defineProperty(n,"PDFWorker",{enumerable:!0,get:function(){return e.PDFWorker}}),Object.defineProperty(n,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(n,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(n,"PixelsPerInch",{enumerable:!0,get:function(){return r.PixelsPerInch}}),Object.defineProperty(n,"RenderingCancelledException",{enumerable:!0,get:function(){return r.RenderingCancelledException}}),Object.defineProperty(n,"SVGGraphics",{enumerable:!0,get:function(){return f.SVGGraphics}}),Object.defineProperty(n,"UNSUPPORTED_FEATURES",{enumerable:!0,get:function(){return t.UNSUPPORTED_FEATURES}}),Object.defineProperty(n,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(n,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(n,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(n,"XfaLayer",{enumerable:!0,get:function(){return w.XfaLayer}}),Object.defineProperty(n,"addLinkAttributes",{enumerable:!0,get:function(){return r.addLinkAttributes}}),Object.defineProperty(n,"build",{enumerable:!0,get:function(){return e.build}}),Object.defineProperty(n,"createObjectURL",{enumerable:!0,get:function(){return t.createObjectURL}}),Object.defineProperty(n,"createPromiseCapability",{enumerable:!0,get:function(){return t.createPromiseCapability}}),Object.defineProperty(n,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(n,"getDocument",{enumerable:!0,get:function(){return e.getDocument}}),Object.defineProperty(n,"getFilenameFromUrl",{enumerable:!0,get:function(){return r.getFilenameFromUrl}}),Object.defineProperty(n,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return r.getPdfFilenameFromUrl}}),Object.defineProperty(n,"getXfaPageViewport",{enumerable:!0,get:function(){return r.getXfaPageViewport}}),Object.defineProperty(n,"isPdfFile",{enumerable:!0,get:function(){return r.isPdfFile}}),Object.defineProperty(n,"loadScript",{enumerable:!0,get:function(){return r.loadScript}}),Object.defineProperty(n,"removeNullCharacters",{enumerable:!0,get:function(){return t.removeNullCharacters}}),Object.defineProperty(n,"renderTextLayer",{enumerable:!0,get:function(){return u.renderTextLayer}}),Object.defineProperty(n,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(n,"version",{enumerable:!0,get:function(){return e.version}});var r=__w_pdfjs_require__(1),t=__w_pdfjs_require__(4),e=__w_pdfjs_require__(136),a=__w_pdfjs_require__(148),o=__w_pdfjs_require__(142),s=__w_pdfjs_require__(6),u=__w_pdfjs_require__(151),f=__w_pdfjs_require__(152),w=__w_pdfjs_require__(150);if(s.isNodeJS){var m=__w_pdfjs_require__(153),k=m.PDFNodeStream;(0,e.setPDFNetworkStreamFactory)(function(O){return new k(O)})}else{var x=__w_pdfjs_require__(156),I=x.PDFNetworkStream,D=__w_pdfjs_require__(157),q=D.PDFFetchStream;(0,e.setPDFNetworkStreamFactory)(function(O){return(0,r.isValidFetchUrl)(O.url)?new q(O):new I(O)})}})(),__webpack_exports__})()})})(pdf);var pdfExports=pdf.exports,__spreadArray=function(n,r,t){if(t||arguments.length===2)for(var e=0,a=r.length,o;e<a;e++)(o||!(e in r))&&(o||(o=Array.prototype.slice.call(r,0,e)),o[e]=r[e]);return n.concat(o||Array.prototype.slice.call(r))},clipboardEvents=["onCopy","onCut","onPaste"],compositionEvents=["onCompositionEnd","onCompositionStart","onCompositionUpdate"],focusEvents=["onFocus","onBlur"],formEvents=["onInput","onInvalid","onReset","onSubmit"],imageEvents=["onLoad","onError"],keyboardEvents=["onKeyDown","onKeyPress","onKeyUp"],mediaEvents=["onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting"],mou
102seEvents=["onClick","onContextMenu","onDoubleClick","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp"],dragEvents=["onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop"],selectionEvents=["onSelect"],touchEvents=["onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"],pointerEvents=["onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut"],uiEvents=["onScroll"],wheelEvents=["onWheel"],animationEvents=["onAnimationStart","onAnimationEnd","onAnimationIteration"],transitionEvents=["onTransitionEnd"],otherEvents=["onToggle"],changeEvents=["onChange"],allEvents=__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([],clipboardEvents,!0),compositionEvents,!0),focusEvents,!0),formEvents,!0),imageEvents,!0),keyboardEvents,!0),mediaEvents,!0),mouseEvents,!0),dragEvents,!0),selectionEvents,!0),touchEvents,!0),pointerEvents,!0),uiEvents,!0),wheelEvents,!0),animationEvents,!0),transitionEvents,!0),changeEvents,!0),otherEvents,!0);function makeEventProps(n,r){var t={};return allEvents.forEach(function(e){var a=n[e];a&&(r?t[e]=function(o){return a(o,r(e))}:t[e]=a)}),t}function makeCancellablePromise(n){var r=!1,t=new Promise(function(e,a){n.then(function(o){return!r&&e(o)}).catch(function(o){return!r&&a(o)})});return{promise:t,cancel:function(){r=!0}}}function mergeClassNames(){return Array.prototype.slice.call(arguments).reduce(function(n,r){return n.concat(r)},[]).filter(function(n){return typeof n=="string"}).join(" ")}var prefix="Invariant failed";function invariant(n,r){if(!n)throw new Error(prefix)}const DocumentContext=reactExports.createContext(null);function Message(n){var r=n.children,t=n.type;return React.createElement("div",{className:"react-pdf__message react-pdf__message--".concat(t)},r)}Message.propTypes={children:PropTypes.node,type:PropTypes.oneOf(["error","loading","no-data"]).isRequired};var DEFAULT_LINK_REL="noopener noreferrer nofollow",LinkService=function(){function n(){_classCallCheck(this,n),this.externalLinkTarget=null,this.externalLinkRel=null}return _createClass(n,[{key:"setDocument",value:function(t){this.pdfDocument=t}},{key:"setViewer",value:function(t){this.pdfViewer=t}},{key:"setExternalLinkRel",value:function(t){this.externalLinkRel=t}},{key:"setExternalLinkTarget",value:function(t){this.externalLinkTarget=t}},{key:"setHistory",value:function(){}},{key:"pagesCount",get:function(){return this.pdfDocument?this.pdfDocument.numPages:0}},{key:"page",get:function(){return this.pdfViewer.currentPageNumber},set:function(t){this.pdfViewer.currentPageNumber=t}},{key:"rotation",get:function(){return 0},set:function(t){}},{key:"goToDestination",value:function(t){var e=this;new Promise(function(a){typeof t=="string"?e.pdfDocument.getDestination(t).then(a):Array.isArray(t)?a(t):t.then(a)}).then(function(a){invariant(Array.isArray(a));var o=a[0];new Promise(function(s){o instanceof Object?e.pdfDocument.getPageIndex(o).then(function(u){s(u)}).catch(function(){invariant(!1)}):typeof o=="number"?s(o):invariant(!1)}).then(function(s){var u=s+1;invariant(u>=1&&u<=e.pagesCount),e.pdfViewer.scrollPageIntoView({dest:t,pageIndex:s,pageNumber:u})})})}},{key:"navigateTo",value:function(t){this.goToDestination(t)}},{key:"goToPage",value:function(){}},{key:"addLinkAttributes",value:function(t,e,a){t.href=e,t.rel=this.externalLinkRel||DEFAULT_LINK_REL,t.target=a?"_blank":this.externalLinkTarget||""}},{key:"getDestinationHash",value:function(){return"#"}},{key:"getAnchorUrl",value:function(){return"#"}},{key:"setHash",value:function(){}},{key:"executeNamedAction",value:function(){}},{key:"cachePageRef",value:function(){}},{key:"isPageVisible",value:function(){return!0}},{key:"isPageCached",value:function(){return!0}}]),n}(),PasswordResponses={NEED_PASSWORD:1,INCORRECT_PASSWORD:2},isBrowser=typeof window<"u";function isDefined(n){return typeof n<"u"}function isProvided(n){return isDefined(n)&&n!==null}function isString(n){return typeof n=="string"}function isArrayBuffer(n){return n instanceof ArrayBuffer}function isBlob(n){return invariant(isBrowser),n instanceof Blob}function isFile$1(n){return invariant(isBrowser),n instanceof File}function isDataURI(n){return isString(n)&&/^data:/.test(n)}function dataURItoByteString(n){invariant(isDataURI(n));var r=n.split(","),t=_slicedToArray(r,2),e=t[0],a=t[1],o=e.split(";");
102return o.indexOf("base64")!==-1?atob(a):unescape(a)}function getPixelRatio(){return isBrowser&&window.devicePixelRatio||1}function cancelRunningTask(n){n&&n.cancel&&n.cancel()}function makePageCallback(n,r){return Object.defineProperty(n,"width",{get:function(){return this.view[2]*r},configurable:!0}),Object.defineProperty(n,"height",{get:function(){return this.view[3]*r},configurable:!0}),Object.defineProperty(n,"originalWidth",{get:function(){return this.view[2]},configurable:!0}),Object.defineProperty(n,"originalHeight",{get:function(){return this.view[3]},configurable:!0}),n}function isCancelException(n){return n.name==="RenderingCancelledException"}function loadFromFile(n){return new Promise(function(r,t){var e=new FileReader;return e.onload=function(){return r(new Uint8Array(e.result))},e.onerror=function(a){switch(a.target.error.code){case a.target.error.NOT_FOUND_ERR:return t(new Error("Error while reading a file: File not found."));case a.target.error.NOT_READABLE_ERR:return t(new Error("Error while reading a file: File not readable."));case a.target.error.SECURITY_ERR:return t(new Error("Error while reading a file: Security error."));case a.target.error.ABORT_ERR:return t(new Error("Error while reading a file: Aborted."));default:return t(new Error("Error while reading a file."))}},e.readAsArrayBuffer(n),null})}var eventProps=function(){var n={};return[].concat(_toConsumableArray(mouseEvents),_toConsumableArray(touchEvents),_toConsumableArray(keyboardEvents)).forEach(function(r){n[r]=PropTypes.func}),n}(),fileTypes=[PropTypes.string,PropTypes.instanceOf(ArrayBuffer),PropTypes.shape({data:PropTypes.oneOfType([PropTypes.object,PropTypes.string]),httpHeaders:PropTypes.object,range:PropTypes.object,url:PropTypes.string,withCredentials:PropTypes.bool})];typeof File<"u"&&fileTypes.push(PropTypes.instanceOf(File));typeof Blob<"u"&&fileTypes.push(PropTypes.instanceOf(Blob));var isClassName=PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.string)]),isFile=PropTypes.oneOfType(fileTypes),isLinkService=PropTypes.instanceOf(LinkService);PropTypes.oneOf(["_self","_blank","_parent","_top"]);var isPage=PropTypes.shape({_transport:PropTypes.shape({fontLoader:PropTypes.object.isRequired}).isRequired,commonObjs:PropTypes.shape({_objs:PropTypes.object.isRequired}).isRequired,getAnnotations:PropTypes.func.isRequired,getTextContent:PropTypes.func.isRequired,getViewport:PropTypes.func.isRequired,render:PropTypes.func.isRequired}),isPageIndex=function n(r,t,e){var a=r[t],o=r.pageNumber,s=r.pdf;if(!isDefined(s))return null;if(isDefined(a)){if(typeof a!="number")return new Error("`".concat(t,"` of type `").concat(_typeof(a),"` supplied to `").concat(e,"`, expected `number`."));if(a<0)return new Error("Expected `".concat(t,"` to be greater or equal to 0."));var u=s.numPages;if(a+1>u)return new Error("Expected `".concat(t,"` to be less or equal to ").concat(u-1,"."))}else if(!isDefined(o))return new Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(e,"`."));return null},isPageNumber=function n(r,t,e){var a=r[t],o=r.pageIndex,s=r.pdf;if(!isDefined(s))return null;if(isDefined(a)){if(typeof a!="number")return new Error("`".concat(t,"` of type `").concat(_typeof(a),"` supplied to `").concat(e,"`, expected `number`."));if(a<1)return new Error("Expected `".concat(t,"` to be greater or equal to 1."));var u=s.numPages;if(a>u)return new Error("Expected `".concat(t,"` to be less or equal to ").concat(u,"."))}else if(!isDefined(o))return new Error("`".concat(t,"` not supplied. Either pageIndex or pageNumber must be supplied to `").concat(e,"`."));return null},isPdf=PropTypes.oneOfType([PropTypes.shape({getDestination:PropTypes.func.isRequired,getOutline:PropTypes.func.isRequired,getPage:PropTypes.func.isRequired,numPages:PropTypes.number.isRequired}),PropTypes.bool]),isRef=PropTypes.oneOfType([PropTypes.func,PropTypes.shape({current:PropTypes.any})]),isRenderMode=PropTypes.oneOf(["canvas","none","svg"]),isRotate=PropTypes.oneOf([0,90,180,270]),_excluded=["url"];function ownKeys$2(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$2(n){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};
102r%2?ownKeys$2(Object(t),!0).forEach(function(e){_defineProperty(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$2(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _createSuper$6(n){var r=_isNativeReflectConstruct$6();return function(){var e=_getPrototypeOf(n),a;if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(e,arguments,o)}else a=e.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _isNativeReflectConstruct$6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var PDFDataRangeTransport=pdfExports.PDFDataRangeTransport,Document=function(n){_inherits(t,n);var r=_createSuper$6(t);function t(){var e;_classCallCheck(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return e=r.call.apply(r,[this].concat(o)),_defineProperty(_assertThisInitialized(e),"state",{pdf:null}),_defineProperty(_assertThisInitialized(e),"viewer",{scrollPageIntoView:function(f){var w=f.dest,m=f.pageIndex,k=f.pageNumber,x=e.props.onItemClick;if(x){x({dest:w,pageIndex:m,pageNumber:k});return}var I=e.pages[m];if(I){I.scrollIntoView();return}}}),_defineProperty(_assertThisInitialized(e),"linkService",new LinkService),_defineProperty(_assertThisInitialized(e),"loadDocument",function(){cancelRunningTask(e.runningTask),e.loadingTask&&e.loadingTask.destroy();var u=makeCancellablePromise(e.findDocumentSource());e.runningTask=u,u.promise.then(function(f){if(e.onSourceSuccess(),!!f){e.setState(function(D){return D.pdf?{pdf:null}:null});var w=e.props,m=w.options,k=w.onLoadProgress,x=w.onPassword;e.loadingTask=pdfExports.getDocument(_objectSpread$2(_objectSpread$2({},f),m)),e.loadingTask.onPassword=x,k&&(e.loadingTask.onProgress=k);var I=makeCancellablePromise(e.loadingTask.promise);e.runningTask=I,I.promise.then(function(D){e.setState(function(q){return q.pdf&&q.pdf.fingerprint===D.fingerprint?null:{pdf:D}},e.onLoadSuccess)}).catch(function(D){e.onLoadError(D)})}}).catch(function(f){e.onSourceError(f)})}),_defineProperty(_assertThisInitialized(e),"setupLinkService",function(){var u=e.props,f=u.externalLinkRel,w=u.externalLinkTarget;e.linkService.setViewer(e.viewer),e.linkService.setExternalLinkRel(f),e.linkService.setExternalLinkTarget(w)}),_defineProperty(_assertThisInitialized(e),"onSourceSuccess",function(){var u=e.props.onSourceSuccess;u&&u()}),_defineProperty(_assertThisInitialized(e),"onSourceError",function(u){var f=e.props.onSourceError;f&&f(u)}),_defineProperty(_assertThisInitialized(e),"onLoadSuccess",function(){var u=e.props.onLoadSuccess,f=e.state.pdf;u&&u(f),e.pages=new Array(f.numPages),e.linkService.setDocument(f)}),_defineProperty(_assertThisInitialized(e),"onLoadError",function(u){e.setState({pdf:!1});var f=e.props.onLoadError;f&&f(u)}),_defineProperty(_assertThisInitialized(e),"findDocumentSource",function(){return new Promise(function(u){var f=e.props.file;if(f||u(null),typeof f=="string"){if(isDataURI(f)){var w=dataURItoByteString(f);u({data:w})}u({url:f})}if(f instanceof PDFDataRangeTransport&&u({range:f}),isArrayBuffer(f)&&u({data:f}),isBrowser&&(isBlob(f)||isFile$1(f))){loadFromFile(f).then(function(I){u({data:I})});return}if(invariant(_typeof(f)==="object"),invariant(f.url||f.data||f.range),typeof f.url=="string"&&isDataURI(f.url)){var m=f.url,k=_objectWithoutProperties(f,_excluded),x=dataURItoByteString(m);u(_objectSpread$2({data:x},k))}u(f)})}),_defineProperty(_assertThisInitialized(e),"registerPage",function(u,f){e.pages[u]=f}),_defineProperty(_assertThisInitialized(e),"unregisterPage",function(u){delete e.pages[u]}),e}
102return _createClass(t,[{key:"componentDidMount",value:function(){this.loadDocument(),this.setupLinkService()}},{key:"componentDidUpdate",value:function(a){var o=this.props.file;o!==a.file&&this.loadDocument()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask),this.loadingTask&&this.loadingTask.destroy()}},{key:"childContext",get:function(){var a=this.linkService,o=this.registerPage,s=this.unregisterPage,u=this.props,f=u.imageResourcesPath,w=u.renderMode,m=u.rotate,k=this.state.pdf;return{imageResourcesPath:f,linkService:a,pdf:k,registerPage:o,renderMode:w,rotate:m,unregisterPage:s}}},{key:"eventProps",get:function(){var a=this;return makeEventProps(this.props,function(){return a.state.pdf})}},{key:"renderChildren",value:function(){var a=this.props.children;return React.createElement(DocumentContext.Provider,{value:this.childContext},a)}},{key:"renderContent",value:function(){var a=this.props.file,o=this.state.pdf;if(!a){var s=this.props.noData;return React.createElement(Message,{type:"no-data"},typeof s=="function"?s():s)}if(o===null){var u=this.props.loading;return React.createElement(Message,{type:"loading"},typeof u=="function"?u():u)}if(o===!1){var f=this.props.error;return React.createElement(Message,{type:"error"},typeof f=="function"?f():f)}return this.renderChildren()}},{key:"render",value:function(){var a=this.props,o=a.className,s=a.inputRef;return React.createElement("div",_extends({className:mergeClassNames("react-pdf__Document",o),ref:s},this.eventProps),this.renderContent())}}]),t}(reactExports.PureComponent);Document.defaultProps={error:"Failed to load PDF file.",loading:"Loading PDFâ¦",noData:"No PDF file specified.",onPassword:function n(r,t){switch(t){case PasswordResponses.NEED_PASSWORD:{var e=prompt("Enter the password to open this PDF file.");r(e);break}case PasswordResponses.INCORRECT_PASSWORD:{var a=prompt("Invalid password. Please try again.");r(a);break}}}};var isFunctionOrNode$1=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);Document.propTypes=_objectSpread$2(_objectSpread$2({},eventProps),{},{children:PropTypes.node,className:isClassName,error:isFunctionOrNode$1,externalLinkRel:PropTypes.string,externalLinkTarget:PropTypes.string,file:isFile,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode$1,noData:isFunctionOrNode$1,onItemClick:PropTypes.func,onLoadError:PropTypes.func,onLoadProgress:PropTypes.func,onLoadSuccess:PropTypes.func,onPassword:PropTypes.func,onSourceError:PropTypes.func,onSourceSuccess:PropTypes.func,rotate:PropTypes.number});var isDestination=PropTypes.oneOfType([PropTypes.string,PropTypes.arrayOf(PropTypes.any)]);PropTypes.shape({dest:isDestination,items:PropTypes.arrayOf(PropTypes.shape({dest:isDestination,title:PropTypes.string})),title:PropTypes.string}).isRequired,PropTypes.func,isPdf.isRequired;function ownKeys$1(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,e)}return t}function _objectSpread$1(n){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ownKeys$1(Object(t),!0).forEach(function(e){_defineProperty(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys$1(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}_objectSpread$1({className:isClassName,inputRef:isRef,onItemClick:PropTypes.func,onLoadError:PropTypes.func,onLoadSuccess:PropTypes.func,pdf:isPdf},eventProps);function mergeRefs(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var t=n.filter(Boolean);if(t.length<=1){var e=t[0];return e||null}return function(o){t.forEach(function(s){typeof s=="function"?s(o):s&&(s.current=o)})}}const PageContext=reactExports.createContext(null);function _createSuper$5(n){var r=_isNativeReflectConstruct$5();return function(){var e=_getPrototypeOf(n),a;if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(e,arguments,o)}else a=e.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _isNativeReflectConstruct$5(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var ANNOTATION_MODE=pdfExports.AnnotationMode,PageCanvasInternal=function(n){_inherits(t,n);var r=_createSuper$5(t);function t(){var e;_classCallCheck(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return e=r.call.apply(r,[this].concat(o)),_defineProperty(_assertThisInitialized(e),"canvasElement",reactExports.createRef()),_defineProperty(_assertThisInitialized(e),"onRenderSuccess",function(){e.renderer=null;var u=e.props,f=u.onRenderSuccess,w=u.page,m=u.scale;f&&f(makePageCallback(w,m))}),_defineProperty(_assertThisInitialized(e),"onRenderError",function(u){if(!isCancelException(u)){var f=e.props.onRenderError;f&&f(u)}}),_defineProperty(_assertThisInitialized(e),"drawPageOnCanvas",function(){var u=e.canvasElement.current;if(!u)return null;var f=_assertThisInitialized(e),w=f.renderViewport,m=f.viewport,k=e.props,x=k.canvasBackgroun
102d,I=k.page,D=k.renderForms;u.width=w.width,u.height=w.height,u.style.width="".concat(Math.floor(m.width),"px"),u.style.height="".concat(Math.floor(m.height),"px");var q={annotationMode:D?ANNOTATION_MODE.ENABLE_FORMS:ANNOTATION_MODE.ENABLE,get canvasContext(){return u.getContext("2d")},viewport:w};return x&&(q.background=x),e.cancelRenderingTask(),e.renderer=I.render(q),e.renderer.promise.then(e.onRenderSuccess).catch(e.onRenderError)}),e}return _createClass(t,[{key:"componentDidMount",value:function(){this.drawPageOnCanvas()}},{key:"componentDidUpdate",value:function(a){var o=this.props,s=o.canvasBackground,u=o.page,f=o.renderForms;(s!==a.canvasBackground||f!==a.renderForms)&&(u.cleanup(),this.drawPageOnCanvas())}},{key:"componentWillUnmount",value:function(){this.cancelRenderingTask();var a=this.canvasElement.current;a&&(a.width=0,a.height=0)}},{key:"cancelRenderingTask",value:function(){this.renderer&&(this.renderer.cancel(),this.renderer=null)}},{key:"renderViewport",get:function(){var a=this.props,o=a.page,s=a.rotate,u=a.scale,f=getPixelRatio();return o.getViewport({scale:u*f,rotation:s})}},{key:"viewport",get:function(){var a=this.props,o=a.page,s=a.rotate,u=a.scale;return o.getViewport({scale:u,rotation:s})}},{key:"render",value:function(){var a=this.props.canvasRef;return React.createElement("canvas",{className:"react-pdf__Page__canvas",dir:"ltr",ref:mergeRefs(a,this.canvasElement),style:{display:"block",userSelect:"none"}})}}]),t}(reactExports.PureComponent);PageCanvasInternal.propTypes={canvasBackground:PropTypes.string,canvasRef:isRef,onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,page:isPage.isRequired,renderForms:PropTypes.bool,rotate:isRotate,scale:PropTypes.number.isRequired};function PageCanvas(n){return React.createElement(PageContext.Consumer,null,function(r){return React.createElement(PageCanvasInternal,_extends({},r,n))})}function _createSuper$4(n){var r=_isNativeReflectConstruct$4();return function(){var e=_getPrototypeOf(n),a;if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(e,arguments,o)}else a=e.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _isNativeReflectConstruct$4(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var PageSVGInternal=function(n){_inherits(t,n);var r=_createSuper$4(t);function t(){var e;_classCallCheck(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return e=r.call.apply(r,[this].concat(o)),_defineProperty(_assertThisInitialized(e),"state",{svg:null}),_defineProperty(_assertThisInitialized(e),"onRenderSuccess",function(){e.renderer=null;var u=e.props,f=u.onRenderSuccess,w=u.page,m=u.scale;f&&f(makePageCallback(w,m))}),_defineProperty(_assertThisInitialized(e),"onRenderError",function(u){if(!isCancelException(u)){var f=e.props.onRenderError;f&&f(u)}}),_defineProperty(_assertThisInitialized(e),"renderSVG",function(){var u=e.props.page;return e.renderer=u.getOperatorList(),e.renderer.then(function(f){var w=new pdfExports.SVGGraphics(u.commonObjs,u.objs);e.renderer=w.getSVG(f,e.viewport).then(function(m){e.setState({svg:m},e.onRenderSuccess)}).catch(e.onRenderError)}).catch(e.onRenderError)}),_defineProperty(_assertThisInitialized(e),"drawPageOnContainer",function(u){var f=e.state.svg;if(!(!u||!f)){u.firstElementChild||u.appendChild(f);var w=e.viewport,m=w.width,k=w.height;f.setAttribute("width",m),f.setAttribute("height",k)}}),e}
102return _createClass(t,[{key:"componentDidMount",value:function(){this.renderSVG()}},{key:"viewport",get:function(){var a=this.props,o=a.page,s=a.rotate,u=a.scale;return o.getViewport({scale:u,rotation:s})}},{key:"render",value:function(){var a=this,o=this.viewport,s=o.width,u=o.height;return React.createElement("div",{className:"react-pdf__Page__svg",ref:function(w){return a.drawPageOnContainer(w)},style:{display:"block",backgroundColor:"white",overflow:"hidden",width:s,height:u,userSelect:"none"}})}}]),t}(reactExports.PureComponent);PageSVGInternal.propTypes={onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number.isRequired};function PageSVG(n){return React.createElement(PageContext.Consumer,null,function(r){return React.createElement(PageSVGInternal,_extends({},r,n))})}function _createSuper$3(n){var r=_isNativeReflectConstruct$3();return function(){var e=_getPrototypeOf(n),a;if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(e,arguments,o)}else a=e.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _isNativeReflectConstruct$3(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var TextLayerItemInternal=function(n){_inherits(t,n);var r=_createSuper$3(t);function t(){var e;_classCallCheck(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return e=r.call.apply(r,[this].concat(o)),_defineProperty(_assertThisInitialized(e),"itemElement",reactExports.createRef()),_defineProperty(_assertThisInitialized(e),"getElementWidth",function(u){var f=_assertThisInitialized(e),w=f.sideways;return u.getBoundingClientRect()[w?"height":"width"]}),e}
102return _createClass(t,[{key:"componentDidMount",value:function(){this.alignTextItem()}},{key:"componentDidUpdate",value:function(){this.alignTextItem()}},{key:"unrotatedViewport",get:function(){var a=this.props,o=a.page,s=a.scale;return o.getViewport({scale:s})}},{key:"rotate",get:function(){var a=this.props,o=a.page,s=a.rotate;return s-o.rotate}},{key:"sideways",get:function(){var a=this.rotate;return a%180!==0}},{key:"defaultSideways",get:function(){var a=this.unrotatedViewport.rotation;return a%180!==0}},{key:"fontSize",get:function(){var a=this.props.transform,o=this.defaultSideways,s=_slicedToArray(a,2),u=s[0],f=s[1];return o?f:u}},{key:"top",get:function(){var a=this.props.transform,o=this.unrotatedViewport,s=this.defaultSideways,u=_slicedToArray(a,6),f=u[2],w=u[3],m=u[4],k=u[5],x=_slicedToArray(o.viewBox,4),I=x[1],D=x[3];return s?m+f+I:D-(k+w)}},{key:"left",get:function(){var a=this.props.transform,o=this.unrotatedViewport,s=this.defaultSideways,u=_slicedToArray(a,6),f=u[4],w=u[5],m=_slicedToArray(o.viewBox,1),k=m[0];return s?w-k:f-k}},{key:"getFontData",value:function(a){var o=this.props.page;return new Promise(function(s){o.commonObjs.get(a,s)})}},{key:"alignTextItem",value:function(){var a=this,o=this.itemElement.current;if(o){o.style.transform="";var s=this.props,u=s.fontName,f=s.scale,w=s.width;o.style.fontFamily="".concat(u,", sans-serif"),this.getFontData(u).then(function(m){var k=m?m.fallbackName:"sans-serif";o.style.fontFamily="".concat(u,", ").concat(k);var x=w*f,I=a.getElementWidth(o),D="scaleX(".concat(x/I,")"),q=m?m.ascent:0;q&&(D+=" translateY(".concat((1-q)*100,"%)")),o.style.transform=D,o.style.WebkitTransform=D})}}},{key:"render",value:function(){var a=this.fontSize,o=this.top,s=this.left,u=this.props,f=u.customTextRenderer,w=u.scale,m=u.str;return React.createElement("span",{ref:this.itemElement,style:{height:"1em",fontFamily:"sans-serif",fontSize:"".concat(a*w,"px"),position:"absolute",top:"".concat(o*w,"px"),left:"".concat(s*w,"px"),transformOrigin:"left bottom",whiteSpace:"pre",pointerEvents:"all"}},f?f(this.props):m)}}]),t}(reactExports.PureComponent);TextLayerItemInternal.propTypes={customTextRenderer:PropTypes.func,fontName:PropTypes.string.isRequired,itemIndex:PropTypes.number.isRequired,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number,str:PropTypes.string.isRequired,transform:PropTypes.arrayOf(PropTypes.number).isRequired,width:PropTypes.number.isRequired};function TextLayerItem(n){return React.createElement(PageContext.Consumer,null,function(r){return React.createElement(TextLayerItemInternal,_extends({},r,n))})}function _createSuper$2(n){var r=_isNativeReflectConstruct$2();return function(){var e=_getPrototypeOf(n),a;if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(e,arguments,o)}else a=e.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _isNativeReflectConstruct$2(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var TextLayerInternal=function(n){_inherits(t,n);var r=_createSuper$2(t);function t(){var e;_classCallCheck(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return e=r.call.apply(r,[this].concat(o)),_defineProperty(_assertThisInitialized(e),"state",{textItems:null}),_defineProperty(_assertThisInitialized(e),"loadTextItems",function(){var u=e.props.page,f=makeCancellablePromise(u.getTextContent());e.runningTask=f,f.promise.then(function(w){var m=w.items;e.setState({textItems:m},e.onLoadSuccess)}).catch(function(w){e.onLoadError(w)})}),_defineProperty(_assertThisInitialized(e),"onLoadSuccess",function(){var u=e.props.onGetTextSuccess,f=e.state.textItems;u&&u(f)}),_defineProperty(_assertThisInitialized(e),"onLoadError",function(u){e.setState({textItems:!1});var f=e.props.onGetTextError;f&&f(u)}),e}
102return _createClass(t,[{key:"componentDidMount",value:function(){var a=this.props.page;invariant(a),this.loadTextItems()}},{key:"componentDidUpdate",value:function(a){var o=this.props.page;a.page&&o!==a.page&&this.loadTextItems()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask)}},{key:"unrotatedViewport",get:function(){var a=this.props,o=a.page,s=a.scale;return o.getViewport({scale:s})}},{key:"rotate",get:function(){var a=this.props,o=a.page,s=a.rotate;return s-o.rotate}},{key:"renderTextItems",value:function(){var a=this.state.textItems;return a?a.map(function(o,s){return React.createElement(TextLayerItem,_extends({key:s,itemIndex:s},o))}):null}},{key:"render",value:function(){var a=this.unrotatedViewport,o=this.rotate;return React.createElement("div",{className:"react-pdf__Page__textContent",style:{position:"absolute",top:"50%",left:"50%",width:"".concat(a.width,"px"),height:"".concat(a.height,"px"),color:"transparent",transform:"translate(-50%, -50%) rotate(".concat(o,"deg)"),WebkitTransform:"translate(-50%, -50%) rotate(".concat(o,"deg)"),pointerEvents:"none"}},this.renderTextItems())}}]),t}(reactExports.PureComponent);TextLayerInternal.propTypes={onGetTextError:PropTypes.func,onGetTextSuccess:PropTypes.func,page:isPage.isRequired,rotate:isRotate,scale:PropTypes.number};function TextLayer(n){return React.createElement(PageContext.Consumer,null,function(r){return React.createElement(TextLayerInternal,_extends({},r,n))})}function _createSuper$1(n){var r=_isNativeReflectConstruct$1();return function(){var e=_getPrototypeOf(n),a;if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(e,arguments,o)}else a=e.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _isNativeReflectConstruct$1(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var AnnotationLayerInternal=function(n){_inherits(t,n);var r=_createSuper$1(t);function t(){var e;_classCallCheck(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return e=r.call.apply(r,[this].concat(o)),_defineProperty(_assertThisInitialized(e),"state",{annotations:null}),_defineProperty(_assertThisInitialized(e),"layerElement",reactExports.createRef()),_defineProperty(_assertThisInitialized(e),"loadAnnotations",function(){var u=e.props.page,f=makeCancellablePromise(u.getAnnotations());e.runningTask=f,f.promise.then(function(w){e.setState({annotations:w},e.onLoadSuccess)}).catch(function(w){e.onLoadError(w)})}),_defineProperty(_assertThisInitialized(e),"onLoadSuccess",function(){var u=e.props.onGetAnnotationsSuccess,f=e.state.annotations;u&&u(f)}),_defineProperty(_assertThisInitialized(e),"onLoadError",function(u){e.setState({annotations:!1});var f=e.props.onGetAnnotationsError;f&&f(u)}),_defineProperty(_assertThisInitialized(e),"onRenderSuccess",function(){var u=e.props.onRenderAnnotationLayerSuccess;u&&u()}),_defineProperty(_assertThisInitialized(e),"onRenderError",function(u){var f=e.props.onRenderAnnotationLayerError;f&&f(u)}),e}
102return _createClass(t,[{key:"componentDidMount",value:function(){var a=this.props.page;invariant(a),this.loadAnnotations()}},{key:"componentDidUpdate",value:function(a){var o=this.props,s=o.page,u=o.renderForms;(a.page&&s!==a.page||u!==a.renderForms)&&this.loadAnnotations()}},{key:"componentWillUnmount",value:function(){cancelRunningTask(this.runningTask)}},{key:"viewport",get:function(){var a=this.props,o=a.page,s=a.rotate,u=a.scale;return o.getViewport({scale:u,rotation:s})}},{key:"renderAnnotationLayer",value:function(){var a=this.state.annotations;if(a){var o=this.props,s=o.imageResourcesPath,u=o.linkService,f=o.page,w=o.renderForms,m=this.viewport.clone({dontFlip:!0}),k={annotations:a,div:this.layerElement.current,imageResourcesPath:s,linkService:u,page:f,renderForms:w,viewport:m};this.layerElement.current.innerHTML="";try{pdfExports.AnnotationLayer.render(k),this.onRenderSuccess()}catch(x){this.onRenderError(x)}}}},{key:"render",value:function(){return React.createElement("div",{className:"react-pdf__Page__annotations annotationLayer",ref:this.layerElement},this.renderAnnotationLayer())}}]),t}(reactExports.PureComponent);AnnotationLayerInternal.propTypes={imageResourcesPath:PropTypes.string,linkService:isLinkService.isRequired,onGetAnnotationsError:PropTypes.func,onGetAnnotationsSuccess:PropTypes.func,onRenderAnnotationLayerError:PropTypes.func,onRenderAnnotationLayerSuccess:PropTypes.func,page:isPage,renderForms:PropTypes.bool,rotate:isRotate,scale:PropTypes.number};var AnnotationLayer=function n(r){return React.createElement(DocumentContext.Consumer,null,function(t){return React.createElement(PageContext.Consumer,null,function(e){return React.createElement(AnnotationLayerInternal,_extends({},t,e,r))})})};function ownKeys(n,r){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(n);r&&(e=e.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,e)}return t}function _objectSpread(n){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(e){_defineProperty(n,e,t[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(t,e))})}return n}function _createSuper(n){var r=_isNativeReflectConstruct();return function(){var e=_getPrototypeOf(n),a;if(r){var o=_getPrototypeOf(this).constructor;a=Reflect.construct(e,arguments,o)}else a=e.apply(this,arguments);return _possibleConstructorReturn(this,a)}}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}var defaultScale=1,PageInternal=function(n){_inherits(t,n);var r=_createSuper(t);function t(){var e;_classCallCheck(this,t);for(var a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return e=r.call.apply(r,[this].concat(o)),_defineProperty(_assertThisInitialized(e),"state",{page:null}),_defineProperty(_assertThisInitialized(e),"pageElement",reactExports.createRef()),_defineProperty(_assertThisInitialized(e),"onLoadSuccess",function(){var u=e.props,f=u.onLoadSuccess,w=u.registerPage,m=e.state.page;f&&f(makePageCallback(m,e.scale)),w&&w(e.pageIndex,e.pageElement.current)}),_defineProperty(_assertThisInitialized(e),"onLoadError",function(u){e.setState({page:!1});var f=e.props.onLoadError;f&&f(u)}),_defineProperty(_assertThisInitialized(e),"loadPage",function(){var u=e.props.pdf,f=e.getPageNumber();if(f){e.setState(function(m){return m.page?{page:null}:null});var w=makeCancellablePromise(u.getPage(f));e.runningTask=w,w.promise.then(function(m){e.setState({page:m},e.onLoadSuccess)}).catch(function(m){e.onLoadError(m)})}}),e}
102return _createClass(t,[{key:"componentDidMount",value:function(){var a=this.props.pdf;invariant(a),this.loadPage()}},{key:"componentDidUpdate",value:function(a){var o=this.props.pdf;if(a.pdf&&o!==a.pdf||this.getPageNumber()!==this.getPageNumber(a)){var s=this.props.unregisterPage;s&&s(this.getPageIndex(a)),this.loadPage()}}},{key:"componentWillUnmount",value:function(){var a=this.props.unregisterPage;a&&a(this.pageIndex),cancelRunningTask(this.runningTask)}},{key:"childContext",get:function(){var a=this.state.page;if(!a)return{};var o=this.props,s=o.canvasBackground,u=o.customTextRenderer,f=o.onGetAnnotationsError,w=o.onGetAnnotationsSuccess,m=o.onGetTextError,k=o.onGetTextSuccess,x=o.onRenderAnnotationLayerError,I=o.onRenderAnnotationLayerSuccess,D=o.onRenderError,q=o.onRenderSuccess,O=o.renderForms,B=o.renderInteractiveForms;return{canvasBackground:s,customTextRenderer:u,onGetAnnotationsError:f,onGetAnnotationsSuccess:w,onGetTextError:m,onGetTextSuccess:k,onRenderAnnotationLayerError:x,onRenderAnnotationLayerSuccess:I,onRenderError:D,onRenderSuccess:q,page:a,renderForms:O??B,rotate:this.rotate,scale:this.scale}}},{key:"getPageIndex",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return isProvided(a.pageNumber)?a.pageNumber-1:isProvided(a.pageIndex)?a.pageIndex:null}},{key:"getPageNumber",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return isProvided(a.pageNumber)?a.pageNumber:isProvided(a.pageIndex)?a.pageIndex+1:null}},{key:"pageIndex",get:function(){return this.getPageIndex()}},{key:"pageNumber",get:function(){return this.getPageNumber()}},{key:"rotate",get:function(){var a=this.props.rotate;if(isProvided(a))return a;var o=this.state.page;return o?o.rotate:null}},{key:"scale",get:function(){var a=this.state.page;if(!a)return null;var o=this.props,s=o.scale,u=o.width,f=o.height,w=this.rotate,m=1,k=s===null?defaultScale:s;if(u||f){var x=a.getViewport({scale:1,rotation:w});m=u?u/x.width:f/x.height}return k*m}},{key:"eventProps",get:function(){var a=this;return makeEventProps(this.props,function(){var o=a.state.page;return o&&makePageCallback(o,a.scale)})}},{key:"pageKey",get:function(){var a=this.state.page;return"".concat(a.pageIndex,"@").concat(this.scale,"/").concat(this.rotate)}},{key:"pageKeyNoScale",get:function(){var a=this.state.page;return"".concat(a.pageIndex,"/").concat(this.rotate)}},{key:"renderMainLayer",value:function(){var a=this.props,o=a.canvasRef,s=a.renderMode;switch(s){case"none":return null;case"svg":return React.createElement(PageSVG,{key:"".concat(this.pageKeyNoScale,"_svg")});case"canvas":default:return React.createElement(PageCanvas,{key:"".concat(this.pageKey,"_canvas"),canvasRef:o})}}},{key:"renderTextLayer",value:function(){var a=this.props.renderTextLayer;return a?React.createElement(TextLayer,{key:"".concat(this.pageKey,"_text")}):null}},{key:"renderAnnotationLayer",value:function(){var a=this.props.renderAnnotationLayer;return a?React.createElement(AnnotationLayer,{key:"".concat(this.pageKey,"_annotations")}):null}},{key:"renderChildren",value:function(){var a=this.props.children;return React.createElement(PageContext.Provider,{value:this.childContext},this.renderMainLayer(),this.renderTextLayer(),this.renderAnnotationLayer(),a)}},{key:"renderContent",value:function(){var a=this.pageNumber,o=this.props.pdf,s=this.state.page;if(!a){var u=this.props.noData;return React.createElement(Message,{type:"no-data"},typeof u=="function"?u():u)}if(o===null||s===null){var f=this.props.loading;return React.createElement(Message,{type:"loading"},typeof f=="function"?f():f)}if(o===!1||s===!1){var w=this.props.error;return React.createElement(Message,{type:"error"},typeof w=="function"?w():w)}return this.renderChildren()}},{key:"render",value:function(){var a=this.pageNumber,o=this.props,s=o.className,u=o.inputRef;return React.createElement("div",_extends({className:mergeClassNames("react-pdf__Page",s),"data-page-number":a,ref:mergeRefs(u,this.pageElement),style:{position:"relative"}},this.eventProps),this.renderContent())}}]),t}(reactExports.PureComponent);PageInternal.defaultProps={error:"Failed to load the page.",loading:"Loading pageâ¦",noData:"No page specified.",renderAnnotationLayer:!0,renderForms:!1,renderMode:"canvas",renderTextLayer:!0,scale:defaultScale};var isFunctionOrNode=PropTypes.oneOfType([PropTypes.func,PropTypes.node]);
102PageInternal.propTypes=_objectSpread(_objectSpread({},eventProps),{},{canvasBackground:PropTypes.string,children:PropTypes.node,className:isClassName,customTextRenderer:PropTypes.func,error:isFunctionOrNode,height:PropTypes.number,imageResourcesPath:PropTypes.string,inputRef:isRef,loading:isFunctionOrNode,noData:isFunctionOrNode,onGetTextError:PropTypes.func,onGetTextSuccess:PropTypes.func,onLoadError:PropTypes.func,onLoadSuccess:PropTypes.func,onRenderError:PropTypes.func,onRenderSuccess:PropTypes.func,pageIndex:isPageIndex,pageNumber:isPageNumber,pdf:isPdf,registerPage:PropTypes.func,renderAnnotationLayer:PropTypes.bool,renderForms:PropTypes.bool,renderInteractiveForms:PropTypes.bool,renderMode:isRenderMode,renderTextLayer:PropTypes.bool,rotate:isRotate,scale:PropTypes.number,unregisterPage:PropTypes.func,width:PropTypes.number});function Page(n,r){return React.createElement(DocumentContext.Consumer,null,function(t){return React.createElement(PageInternal,_extends({ref:r},t,n))})}const Page$1=React.forwardRef(Page);pdfExports.GlobalWorkerOptions.workerSrc="pdf.worker.js";pdfExports.GlobalWorkerOptions.workerSrc=`//unpkg.com/pdfjs-dist@${pdfExports.version}/legacy/build/pdf.worker.min.js`;function PDFViewer(n){const{url:r,page:t,onLocationChanged:e,fontSize:a=100}=n,[o,s]=reactExports.useState(),[u,f]=reactExports.useState(""),[w,m]=reactExports.useState(0),k=reactExports.useRef(null),x=({numPages:O})=>{s(O),k.current&&m(k.current?.clientWidth)},[I,D]=reactExports.useState(0),q=!!(o&&I<o);return u?jsxRuntimeExports.jsx("div",{className:"text-red-500",children:u}):jsxRuntimeExports.jsxs("div",{className:"mx-auto flex w-full max-w-screen-lg items-center justify-center space-x-2 sm:px-4",children:[q&&jsxRuntimeExports.jsxs("div",{className:"mt-4 flex w-full flex-col items-center",children:[jsxRuntimeExports.jsx(LoadingIndicator,{className:"mb-1"}),jsxRuntimeExports.jsxs("div",{children:["Loading ",I,"/",o," pages"]})]}),jsxRuntimeExports.jsx("div",{ref:k,className:"w-full",children:jsxRuntimeExports.jsx(Document,{className:`flex flex-col items-center space-y-4 ${cx({hidden:q})}`,file:r,onLoadSuccess:x,onLoadError:O=>f(O.message),onSourceError:O=>f(O.message),loading:jsxRuntimeExports.jsx(LoadingView,{}),children:o&&Array.from(new Array(o),(O,B)=>jsxRuntimeExports.jsx(Page$1,{width:w,className:"w-full",onLoadSuccess:()=>D(B+1),pageNumber:B+1,scale:a/100},r+B))})})]})}export{PDFViewer as default}; 103//# sourceMappingURL=PDFViewer-CS6t5b4y.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.